import{h as m,g as h,$ as C,k as j,i as b,j as t,_ as f}from"./main.2.8.10.js";import{u as I,e as w,b as d}from"./react-router.DMwpH23k.js";import"./CopyIcn.BnhKHfEP.js";import{S}from"./SnackMsg.7BjcJK1j.js";import{S as _,I as v,s as R}from"./Integrations.BFhED4ck.js";import{h as M,c as N}from"./HefflCRMCommonFunc.AEI1d-dd.js";import{H as k}from"./HefflCRMIntegLayout.BL7MRrnh.js";import"./react-vendor.P7K3d6op.js";import"./Note.DalStCGz.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 O({allIntegURL:p}){const c=I(),{id:y,formID:l}=w(),[e,s]=m(h),[o,x]=m(C),i=j(b),[n,r]=d.useState(!1),[g,a]=d.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(S,{snack:g,setSnackbar:a}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:f("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:u=>M(u,e,s),name:"name",value:e.name,type:"text",placeholder:f("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(_,{entity:o.triggered_entity,setSnackbar:a}),t.jsx(k,{formID:l,formFields:i,hefflCRMConf:e,setHefflCRMConf:s,isLoading:n,setIsLoading:r}),t.jsx(v,{edit:!0,saveConfig:()=>R({flow:o,setFlow:x,allIntegURL:p,conf:e,navigate:c,edit:1,setIsLoading:r,setSnackbar:a}),disabled:!N(e),isLoading:n,dataConf:e,setDataConf:s,formFields:i}),t.jsx("br",{})]})}export{O as default};
