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