import{b as r,h as b,$ as C,k as I,i as S,j as t,_ as m}from"./main.2.8.1.js";import{u as _,h as w,d as o}from"./react-router-dom.9mCuUg3q.js";import{S as v}from"./SnackMsg.S8DrwLlT.js";import{S as D,I as N,s as y}from"./Integrations.D2bgBas2.js";import{h as F}from"./DripCommonFunc.B-uglCy0.js";import{D as k}from"./DripIntegLayout.Cvpf_Zjr.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function J({allIntegURL:d}){const l=_(),{id:E,formID:c}=w(),[s,e]=r(b),[i,p]=r(C),n=I(S),[f,g]=o.useState(!1),[u,a]=o.useState({show:!1}),[x,h]=o.useState({auth:!1,customFields:!1,accounts:!1,tags:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(v,{snack:u,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:j=>F(j,s,e),name:"name",value:s.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(D,{entity:i.triggered_entity,setSnackbar:a}),t.jsx(k,{formID:c,formFields:n,dripConf:s,setDripConf:e,loading:x,setLoading:h}),t.jsx(N,{edit:!0,saveConfig:()=>y({flow:i,setFlow:p,allIntegURL:d,navigate:l,conf:s,edit:1,setIsLoading:g,setSnackbar:a}),disabled:s.field_map.length<1,isLoading:f,dataConf:s,setDataConf:e,formFields:n}),t.jsx("br",{})]})}export{J as default};
