var f=Object.defineProperty,v=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var m=(s,t,e)=>t in s?f(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,c=(s,t)=>{for(var e in t||(t={}))y.call(t,e)&&m(s,e,t[e]);if(l)for(var e of l(t))z.call(t,e)&&m(s,e,t[e]);return s},b=(s,t)=>v(s,A(t));import{j as i,_ as a}from"./main.2.9.0.js";import{b as d}from"./react-router.DMwpH23k.js";import{y as k,a9 as w}from"./Note.NSUdvR3c.js";import{T as M}from"./TutorialLink.CFG7bS5c.js";import{u as C}from"./UserRegistrationMembershipCommonFunc.BC_aLMtu.js";import"./react-vendor.P7K3d6op.js";import"./CopyIcn.CEA_lFLo.js";function L({userRegistrationConf:s,setUserRegistrationConf:t,step:e,nextPage:r,isLoading:o,setIsLoading:u,setSnackbar:h}){const[n,p]=d.useState(!1),[x,g]=d.useState(!1),j=()=>{C(p,g,u,h,r)};return i.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"auto"},children:[i.jsx(M,{linkKey:"userRegistrationMembership"}),i.jsx("div",{className:"mt-3",children:i.jsx("b",{children:a("Integration Name:","bit-integrations")})}),i.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:N=>t(b(c({},s),{name:N.target.value})),name:"name",value:s.name,type:"text",placeholder:a("Integration Name...","bit-integrations"),disabled:n}),i.jsxs("button",{onClick:j,className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:n||o,children:[n?a("Connected ✔","bit-integrations"):a("Connect","bit-integrations"),o&&i.jsx(k,{size:20,clr:"#022217",className:"ml-2"})]}),i.jsx("br",{}),x&&n&&i.jsx("div",{className:"flx mt-4",children:i.jsxs("button",{onClick:()=>r(2),className:"btn f-right btcd-btn-lg purple sh-sm flx",type:"button",children:[a("Next","bit-integrations"),i.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})}),i.jsx(w,{note:a("Note: User Registration & Membership plugin must be installed and activated.","bit-integrations")})]})}export{L as default};
