import{b as m,h,$ as j,k as b,i as y,j as t,_ as d}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 S,s as v}from"./Integrations.D2bgBas2.js";import{h as N}from"./MailifyCommonFunc.CudAWY6J.js";import{M}from"./MailifyIntegLayout.bKd_cZiS.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";function z({allIntegURL:f}){const c=C(),{id:k,formID:p}=I(),[s,a]=m(h),[i,x]=m(j),n=b(y),[o,r]=l.useState(!1),[g,e]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:g,setSnackbar:e}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>N(u,s,a),name:"name",value:s.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(w,{entity:i.triggered_entity,setSnackbar:e}),t.jsx(M,{formID:p,formFields:n,mailifyConf:s,setMailifyConf:a,isLoading:o,setIsLoading:r,setSnackbar:e}),t.jsx(S,{edit:!0,saveConfig:()=>v({flow:i,setFlow:x,allIntegURL:f,navigate:c,conf:s,edit:1,setIsLoading:r,setSnackbar:e}),disabled:s.field_map.length<1,isLoading:o,dataConf:s,setDataConf:a,formFields:n}),t.jsx("br",{})]})}export{z as default};
