import{h as r,$ as h,g as v,k as j,i as y,j as t,_ as l}from"./main.2.8.10.js";import{u as C,b as s}from"./react-router.DMwpH23k.js";import{S}from"./SnackMsg.7BjcJK1j.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import{S as _,I as b}from"./Integrations.BFhED4ck.js";import{e as w,s as I}from"./KlaviyoCommonFunc.VRejDTdZ.js";import{K as N}from"./KlaviyoIntegLayout.BN45jvmg.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";import"./ActionProFeatureLabels.BzMNdAoD.js";import"./ActionProFeatureComponent.ByowZIj8.js";function G({allIntegURL:m}){const d=C(),[p,i]=s.useState({show:!1}),[o,k]=r(h),[e,a]=r(v),n=j(y),[f,c]=s.useState(!1),[g,x]=s.useState({list:!1,field:!1,auth:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:p,setSnackbar:i}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:l("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",name:"name",onChange:u=>w(u,e,a),value:e.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("div",{className:"my-3",children:t.jsx(_,{entity:o.triggered_entity,setSnackbar:i})}),t.jsx(N,{formFields:n,klaviyoConf:e,setKlaviyoConf:a,loading:g,setLoading:x}),t.jsx(b,{edit:!0,saveConfig:()=>{I(o,m,e,d,{edit:1},c)},disabled:e.field_map.length<1,isLoading:f,dataConf:e,setDataConf:a,formFields:n})]})}export{G as default};
