import{b as m,h as u,$ as j,k as C,i as h,j as t,_ as c}from"./main.2.8.1.js";import{u as b,h as v,d as p}from"./react-router-dom.9mCuUg3q.js";import{S as I}from"./SnackMsg.S8DrwLlT.js";import"./Note.BeM7sN-p.js";import{S as w,I as S,s as _}from"./Integrations.D2bgBas2.js";import{h as N,P as y}from"./PropovoiceCrmIntegLayout.8fxtQZ1V.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./GlobalIntegrationHelper.CgnhJgll.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";function B({allIntegURL:d}){const l=b(),{formID:f}=v(),[e,o]=m(u),[i,P]=m(j),n=C(h),[a,r]=p.useState(!1),[x,s]=p.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:c("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:c("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{B as default};
