import{h as m,g as C,$ as h,k as j,i as b,j as t,_ as p}from"./main.2.9.0.js";import{u as I,e as _,b as d}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S,I as v,s as N}from"./Integrations.DL8wqGct.js";import{h as y}from"./CampaignMonitorCommonFunc.DqevWaHC.js";import{C as M}from"./CampaignMonitorIntegLayout.CdS3lHGS.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";function G({allIntegURL:c}){const l=I(),{formID:f}=_(),[a,s]=m(C),[o,g]=m(h),n=j(b),[i,r]=d.useState(!1),[x,e]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:e}),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,s),name:"name",value:a.name,type:"text",placeholder:p("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:o.triggered_entity,setSnackbar:e}),t.jsx(M,{formID:f,formFields:n,campaignMonitorConf:a,setCampaignMonitorConf:s,isLoading:i,setIsLoading:r,setSnackbar:e}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,setFlow:g,allIntegURL:c,navigate:l,conf:a,edit:1,setIsLoading:r,setSnackbar:e}),disabled:a.field_map.length<1,isLoading:i,dataConf:a,setDataConf:s,formFields:n}),t.jsx("br",{})]})}export{G as default};
