import{u as h,k as j,d as m,h as b,r as l,j as t}from"./main-406.js";import{g as I,$ as C,h as _,d as w,_ as c,i as F,I as v,s as N}from"./bi.394.85.js";import{h as f}from"./bi.844.788.js";import{B as S}from"./bi.491.789.js";import"./bi.704.707.js";import"./bi.701.708.js";function D({allIntegURL:p}){const x=h(),{formID:g}=j(),[s,a]=m(I),[r,y]=m(C),d=b(_),[n,o]=l.useState(!1),[u,e]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:u,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:c("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:i=>f(i,s,a),name:"name",value:s.name,type:"text",placeholder:c("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(F,{entity:r.triggered_entity,setSnackbar:e}),t.jsx(S,{formID:g,formFields:d,handleInput:i=>f(i,s,a,o,e),bitFormConf:s,setBitFormConf:a,isLoading:n,setIsLoading:o,setSnackbar:e}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:r,allIntegURL:p,conf:s,navigate:x,edit:1,setIsLoading:o,setSnackbar:e}),disabled:s.field_map.length<2||n,isLoading:n,dataConf:s,setDataConf:a,formFields:d}),t.jsx("br",{})]})}export{D as default};
