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