import{h as m,g as h,$ as C,k as j,i as b,j as t,_ as f}from"./main.2.9.0.js";import{u as I,e as w,b as d}from"./react-router.DMwpH23k.js";import"./CopyIcn.CEA_lFLo.js";import{S}from"./SnackMsg.DYSD96P4.js";import{S as _,I as v,s as R}from"./Integrations.DL8wqGct.js";import{h as M,c as N}from"./HefflCRMCommonFunc.CnwvFLUw.js";import{H as k}from"./HefflCRMIntegLayout.CgqjYAba.js";import"./react-vendor.P7K3d6op.js";import"./Note.NSUdvR3c.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./ProUtilHelpers.CHf_DzPf.js";import"./TagifyInput.KPPRQJ1B.js";import"./lodash.DCvQBX3r.js";import"./GlobalIntegrationHelper.B6YI8w_n.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};
