import{h as r,g as b,$ as C,k as I,i as S,j as t,_ as m}from"./main.2.8.10.js";import{u as _,e as w,b as o}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.7BjcJK1j.js";import{S as D,I as N,s as y}from"./Integrations.BFhED4ck.js";import{h as F}from"./DripCommonFunc.CoteVUmk.js";import{D as k}from"./DripIntegLayout.Drw1xesK.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";function K({allIntegURL:d}){const l=_(),{id:E,formID:p}=w(),[s,e]=r(b),[i,c]=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:p,formFields:n,dripConf:s,setDripConf:e,loading:x,setLoading:h}),t.jsx(N,{edit:!0,saveConfig:()=>y({flow:i,setFlow:c,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{K as default};
