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