import{h as m,g as h,$ as j,k as S,i as b,j as e,_ as d}from"./main.2.8.10.js";import{u as C,e as I,b as l}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.7BjcJK1j.js";import{S as w,I as v,s as N}from"./Integrations.BFhED4ck.js";import{h as y}from"./SendPulseCommonFunc.CT4Iq455.js";import{S as P}from"./SendPulseIntegLayout.B-T2DyRI.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./react-vendor.P7K3d6op.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";function B({allIntegURL:c}){const f=C(),{id:k,formID:p}=I(),[t,a]=m(h),[n,g]=m(j),o=S(b),[i,r]=l.useState(!1),[u,s]=l.useState({show:!1});return e.jsxs("div",{style:{width:900},children:[e.jsx(_,{snack:u,setSnackbar:s}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:x=>y(x,t,a),name:"name",value:t.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),e.jsx("br",{}),e.jsx(w,{entity:n.triggered_entity,setSnackbar:s}),e.jsx(P,{formID:p,formFields:o,sendPulseConf:t,setSendPulseConf:a,isLoading:i,setIsLoading:r,setSnackbar:s}),e.jsx(v,{edit:!0,saveConfig:()=>N({flow:n,setFlow:g,allIntegURL:c,navigate:f,conf:t,edit:1,setIsLoading:r,setSnackbar:s}),disabled:t.field_map.length<1,isLoading:i,dataConf:t,setDataConf:a,formFields:o}),e.jsx("br",{})]})}export{B as default};
