import{b as m,h,$ as j,k as b,i as C,j as t,_ as d}from"./main.2.8.1.js";import{u as I,h as _,d as l}from"./react-router-dom.9mCuUg3q.js";import{S as w}from"./SnackMsg.S8DrwLlT.js";import{S,I as v,s as N}from"./Integrations.D2bgBas2.js";import{h as y}from"./ZagoMailCommonFunc.0HoWlDEF.js";import{Z as M}from"./ZagoMailIntegLayout.BRQj7TsI.js";import"./Note.BeM7sN-p.js";import"./Table.DAL7rcPQ.js";import"./CopyIcn.3gZpHton.js";import"./index.wO-AxluA.js";function T({allIntegURL:c}){const f=I(),{id:k,formID:p}=_(),[a,e]=m(h),[o,g]=m(j),n=b(C),[i,r]=l.useState(!1),[x,s]=l.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(w,{snack:x,setSnackbar:s}),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=>y(u,a,e),name:"name",value:a.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:o.triggered_entity,setSnackbar:s}),t.jsx(M,{formID:p,formFields:n,zagoMailConf:a,setZagoMailConf:e,isLoading:i,setIsLoading:r,setSnackbar:s}),t.jsx(v,{edit:!0,saveConfig:()=>N({flow:o,setFlow:g,allIntegURL:c,navigate:f,conf:a,edit:1,setIsLoading:r,setSnackbar:s}),disabled:a.field_map.length<1,isLoading:i,dataConf:a,setDataConf:e,formFields:n}),t.jsx("br",{})]})}export{T as default};
