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