import{h as m,g as u,$ as j,k as C,i as b,j as t,_ as p}from"./main.2.9.0.js";import{u as h,e as v,b as c}from"./react-router.DMwpH23k.js";import{S as I}from"./SnackMsg.DYSD96P4.js";import"./Note.NSUdvR3c.js";import"./CopyIcn.CEA_lFLo.js";import{S as w,I as S,s as _}from"./Integrations.DL8wqGct.js";import{h as N,P as y}from"./PropovoiceCrmIntegLayout.DUIcZvo5.js";import"./react-vendor.P7K3d6op.js";import"./Table.BfF8RYFZ.js";import"./index.DpWdl9V1.js";import"./GlobalIntegrationHelper.B6YI8w_n.js";import"./TagifyInput.KPPRQJ1B.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};
