var L=Object.defineProperty;var x=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var h=(t,i,n)=>i in t?L(t,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[i]=n,d=(t,i)=>{for(var n in i||(i={}))f.call(i,n)&&h(t,n,i[n]);if(x)for(var n of x(i))z.call(i,n)&&h(t,n,i[n]);return t};import{j as e,_ as s}from"./main.2.8.1.js";import{d as g}from"./react-router-dom.9mCuUg3q.js";import{z as T}from"./Note.BeM7sN-p.js";import{s as w}from"./SureMembersCommonFunc.DBuWtYQU.js";import{t as E}from"./tutorialLinks.kMkIDzcD.js";import{T as j}from"./TutorialLink.BAFX--T3.js";import"./CopyIcn.3gZpHton.js";function F({sureMembersConf:t,setSureMembersConf:i,step:n,setStep:N,loading:o,setLoading:k,isInfo:m}){const[r,v]=g.useState(!1),[c,u]=g.useState({name:""}),{sureMembers:a}=E,y=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),t!=null&&t.default,N(2)},S=l=>{const p=d({},t),b=d({},c);b[l.target.name]="",p[l.target.name]=l.target.value,u(b),i(p)};return e.jsxs("div",{className:"btcd-stp-page",style:{width:n===1&&900,height:n===1&&"auto"},children:[e.jsx(j,{title:"SureMembers",youTubeLink:a==null?void 0:a.youTubeLink}),e.jsx(j,{title:"SureMembers",docLink:a==null?void 0:a.docLink}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:s("Integration Name:","bit-integrations")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:S,name:"name",value:t.name,type:"text",placeholder:s("Integration Name...","bit-integrations"),disabled:m}),c.name&&e.jsx("div",{style:{color:"red",fontSize:"15px"},children:c.name}),e.jsx("br",{}),!m&&e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>w(t,u,v,o,k),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:r||o.auth,children:[r?s("Connected ✔","bit-integrations"):s("Connect to SureMembers","bit-integrations"),o.auth&&e.jsx(T,{size:"20",clr:"#022217",className:"ml-2"})]}),e.jsx("br",{}),e.jsxs("button",{onClick:y,className:"btn ml-auto btcd-btn-lg purple sh-sm flx",type:"button",disabled:!r,children:[s("Next","bit-integrations"),e.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]})]})}export{F as default};
