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