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