import{h as m,g as h,$ as j,k as b,i as y,j as t,_ as l}from"./main.2.9.0.js";import{u as C,e as I,b as d}from"./react-router.DMwpH23k.js";import{S as _}from"./SnackMsg.DYSD96P4.js";import{S as w,I as S,s as v}from"./Integrations.DL8wqGct.js";import{h as N}from"./MailifyCommonFunc.DfsYm7KV.js";import{M}from"./MailifyIntegLayout.COz5qwZp.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";function B({allIntegURL:f}){const c=C(),{id:k,formID:p}=I(),[e,a]=m(h),[i,g]=m(j),n=b(y),[o,r]=d.useState(!1),[x,s]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(_,{snack:x,setSnackbar:s}),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",onChange:u=>N(u,e,a),name:"name",value:e.name,type:"text",placeholder:l("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(w,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(M,{formID:p,formFields:n,mailifyConf:e,setMailifyConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(S,{edit:!0,saveConfig:()=>v({flow:i,setFlow:g,allIntegURL:f,navigate:c,conf:e,edit:1,setIsLoading:r,setSnackbar:s}),disabled:e.field_map.length<1,isLoading:o,dataConf:e,setDataConf:a,formFields:n}),t.jsx("br",{})]})}export{B as default};
