import{h as r,g as b,$ as C,k as I,i as S,j as t,_ as m}from"./main.2.9.0.js";import{u as _,e as w,b as o}from"./react-router.DMwpH23k.js";import{S as v}from"./SnackMsg.DYSD96P4.js";import{S as D,I as N,s as y}from"./Integrations.DL8wqGct.js";import{h as F}from"./DripCommonFunc.U3JxiS4r.js";import{D as k}from"./DripIntegLayout.B20TflCW.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.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};
