import{h as m,g as C,$ as h,k as j,i as v,j as t,_ as p}from"./main.2.9.0.js";import{u as b,e as I,b as c}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.DYSD96P4.js";import{S as w,I as S,s as N}from"./Integrations.DL8wqGct.js";import{h as y}from"./ActiveCampaignCommonFunc.CHcF-bNJ.js";import{A}from"./ActiveCampaignIntegLayout.B8-zYGws.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 H({allIntegURL:d}){const l=b(),{id:k,formID:f}=I(),[e,s]=m(C),[i,g]=m(h),n=j(v),[o,r]=c.useState(!1),[x,a]=c.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:x,setSnackbar:a}),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,e,s),name:"name",value:e.name,type:"text",placeholder:p("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(w,{entity:i.triggered_entity,setSnackbar:a}),t.jsx(A,{formID:f,formFields:n,activeCampaingConf:e,setActiveCampaingConf:s,isLoading:o,setIsLoading:r,setSnackbar:a}),t.jsx(S,{edit:!0,saveConfig:()=>N({flow:i,setFlow:g,allIntegURL:d,navigate:l,conf:e,edit:1,setIsLoading:r,setSnackbar:a}),disabled:e.field_map.length<1,isLoading:o,dataConf:e,setDataConf:s,formFields:n}),t.jsx("br",{})]})}export{H as default};
