import{h as m,g as u,$ as h,k as j,i as b,j as s,_ as d}from"./main.2.8.10.js";import{u as C,e as I,b as c}from"./react-router.DMwpH23k.js";import{S as w}from"./SnackMsg.7BjcJK1j.js";import{S,I as _,s as v}from"./Integrations.BFhED4ck.js";import{h as M,M as N,c as k}from"./MailerPressIntegLayout.Bne6_cWf.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.js";import"./CopyIcn.BnhKHfEP.js";import"./Table.DSsAy4VI.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CtRYkgop.js";import"./TagifyInput.C4ilRm4k.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.Belqr4OT.js";function K({allIntegURL:l}){const p=C(),{id:y,formID:f}=I(),[t,a]=m(u),[i,F]=m(h),o=j(b),[n,r]=c.useState(!1),[x,e]=c.useState({show:!1});return s.jsxs("div",{style:{width:900},children:[s.jsx(w,{snack:x,setSnackbar:e}),s.jsxs("div",{className:"flx mt-3",children:[s.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),s.jsx("input",{className:"btcd-paper-inp w-5",onChange:g=>M(g,t,a),name:"name",value:t.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),s.jsx("br",{}),s.jsx(S,{entity:i.triggered_entity,setSnackbar:e}),s.jsx(N,{formID:f,formFields:o,mailerPressConf:t,setMailerPressConf:a,setSnackbar:e,setIsLoading:r,isLoading:n}),s.jsx(_,{edit:!0,saveConfig:()=>v({flow:i,allIntegURL:l,conf:t,navigate:p,edit:1,setIsLoading:r,setSnackbar:e}),disabled:!k(t),isLoading:n,dataConf:t,setDataConf:a,formFields:o}),s.jsx("br",{})]})}export{K as default};
