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