import{b as d,h,$ as j,k as S,i as b,j as e,_ as m}from"./main.2.8.1.js";import{u as C,h as I,d as l}from"./react-router-dom.9mCuUg3q.js";import{S as _}from"./SnackMsg.S8DrwLlT.js";import{S as w,I as v,s as N}from"./Integrations.D2bgBas2.js";import{h as y}from"./SendPulseCommonFunc.C4cM2Iq2.js";import{S as P}from"./SendPulseIntegLayout.ZDW4NUys.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";function z({allIntegURL:c}){const f=C(),{id:k,formID:p}=I(),[t,a]=d(h),[n,u]=d(j),o=S(b),[i,r]=l.useState(!1),[x,s]=l.useState({show:!1});return e.jsxs("div",{style:{width:900},children:[e.jsx(_,{snack:x,setSnackbar:s}),e.jsxs("div",{className:"flx mt-3",children:[e.jsx("b",{className:"wdt-200 d-in-b",children:m("Integration Name:","bit-integrations")}),e.jsx("input",{className:"btcd-paper-inp w-5",onChange:g=>y(g,t,a),name:"name",value:t.name,type:"text",placeholder:m("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:u,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{z as default};
