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