import{u,k as j,d as c,h as C,r as d,j as t}from"./main-406.js";import{g as h,$ as v,h as b,d as I,_ as m,i as w,I as _,s as N}from"./bi.394.85.js";import{h as S,P as y}from"./bi.596.880.js";import"./bi.968.816.js";import"./bi.704.707.js";import"./bi.701.708.js";function D({allIntegURL:l}){const p=u(),{formID:f}=j(),[e,a]=c(h),[n,P]=c(v),i=C(b),[o,r]=d.useState(!1),[x,s]=d.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:m("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:g=>S(g,e,a),name:"name",value:e.name,type:"text",placeholder:m("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),t.jsx(w,{entity:n.triggered_entity,setSnackbar:s}),t.jsx(y,{formID:f,formFields:i,propovoiceCrmConf:e,setPropovoiceCrmConf:a,isLoading:o,setIsLoading:r,setSnackbar:s}),t.jsx(_,{edit:!0,saveConfig:()=>N({flow:n,allIntegURL:l,conf:e,navigate:p,edit:1,setIsLoading:r,setSnackbar:s}),disabled:o,isLoading:o,dataConf:e,setDataConf:a,formFields:i}),t.jsx("br",{})]})}export{D as default};
