import{b as m,h,$ as u,k as b,i as j,j as t,_ as d}from"./main.2.8.1.js";import{u as C,h as w,d as p}from"./react-router-dom.9mCuUg3q.js";import{S as I}from"./SnackMsg.S8DrwLlT.js";import{S,I as _,s as v}from"./Integrations.D2bgBas2.js";import{h as R,c as N}from"./UserRegistrationMembershipCommonFunc.H9RriRxj.js";import{U as k}from"./UserRegistrationMembershipIntegLayout.DUfCHLqA.js";import"./Note.BeM7sN-p.js";import"./CopyIcn.3gZpHton.js";import"./Table.DAL7rcPQ.js";import"./index.wO-AxluA.js";import"./ProUtilHelpers.fQlR3mWW.js";import"./TagifyInput.Cu0YIRbG.js";import"./tagify.YxUZd8Ix.js";import"./GlobalIntegrationHelper.CgnhJgll.js";function H({allIntegURL:c}){const l=C(),{id:y}=w(),[e,a]=m(h),[i,f]=m(u),o=b(j),[n,r]=p.useState(!1),[g,s]=p.useState({show:!1});return t.jsxs("div",{style:{width:900},children:[t.jsx(I,{snack:g,setSnackbar:s}),t.jsxs("div",{className:"flx mt-3",children:[t.jsx("b",{className:"wdt-200 d-in-b",children:d("Integration Name:","bit-integrations")}),t.jsx("input",{className:"btcd-paper-inp w-5",onChange:x=>R(x,e,a),name:"name",value:e.name,type:"text",placeholder:d("Integration Name...","bit-integrations")})]}),t.jsx("br",{}),t.jsx(S,{entity:i.triggered_entity,setSnackbar:s}),t.jsx(k,{formFields:o,userRegistrationConf:e,setUserRegistrationConf:a,setIsLoading:r,isLoading:n,setSnackbar:s}),t.jsx(_,{edit:!0,saveConfig:()=>v({flow:i,setFlow:f,allIntegURL:c,conf:e,navigate:l,edit:1,setIsLoading:r,setSnackbar:s}),disabled:!N(e),isLoading:n,dataConf:e,setDataConf:a,formFields:o}),t.jsx("br",{})]})}export{H as default};
