var P=Object.defineProperty;var g=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;var x=(e,i,s)=>i in e?P(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s,b=(e,i)=>{for(var s in i||(i={}))T.call(i,s)&&x(e,s,i[s]);if(g)for(var s of g(i))v.call(i,s)&&x(e,s,i[s]);return e};import{_ as a,j as t}from"./main.2.8.10.js";import{b as j}from"./react-router.DMwpH23k.js";import{y as S,a9 as _}from"./Note.DalStCGz.js";import{s as z,a as K,g as w}from"./SystemeIOCommonFunc.2ZaTIeGf.js";import{T as $}from"./TutorialLink.D6K_DiHL.js";import"./react-vendor.P7K3d6op.js";import"./CopyIcn.BnhKHfEP.js";function V({systemeIOConf:e,setSystemeIOConf:i,step:s,setStep:A,loading:r,setLoading:n,isInfo:l}){const[o,k]=j.useState(!1),[d,p]=j.useState({api_key:""}),y=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),K(e,i,n),w(e,i,n),e!=null&&e.default,A(2)},m=c=>{const h=b({},e),u=b({},d);u[c.target.name]="",h[c.target.name]=c.target.value,p(u),i(h)},N=`
            <h4>${a("To Get API Key & API Secret","bit-integrations")}</h4>
            <ul>
                <li>${a("First go to your SystemeIO dashboard.","bit-integrations")}</li>
                <li>${a('Click go to "Settings" from Right Top corner',"bit-integrations")}</li>
                <li>${a('Then Click "Public API Keys" from the "Settings Menu"',"bit-integrations")}</li>
                <li>${a('Then Click "Create Api key"',"bit-integrations")}</li>
                <li>${a('Then copy "API Token"',"bit-integrations")}</li>
            </ul>`;return t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"auto"},children:[t.jsx($,{linkKey:"systemeIO"}),t.jsx("div",{className:"mt-3",children:t.jsx("b",{children:a("Integration Name:","bit-integrations")})}),t.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"name",value:e.name,type:"text",placeholder:a("Integration Name...","bit-integrations"),disabled:l}),t.jsx("div",{className:"mt-3",children:t.jsx("b",{children:a("API Key:","bit-integrations")})}),t.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"api_key",value:e.api_key,type:"text",placeholder:a("API Key...","bit-integrations"),disabled:l}),t.jsx("div",{style:{color:"red",fontSize:"15px"},children:d.api_key}),t.jsxs("small",{className:"d-blk mt-3",children:[a("To Get API Key & API Secret, Please Visit","bit-integrations")," ",t.jsx("a",{className:"btcd-link",href:"https://systeme.io/dashboard/profile/public-api-settings",target:"_blank",children:a("SystemeIO API Key & Secret","bit-integrations")})]}),t.jsx("br",{}),t.jsx("br",{}),!l&&t.jsxs("div",{children:[t.jsxs("button",{onClick:()=>z(e,i,p,k,r,n),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:o||r.auth,children:[o?a("Authorized ✔","bit-integrations"):a("Authorize","bit-integrations"),r.auth&&t.jsx(S,{size:"20",clr:"#022217",className:"ml-2"})]}),t.jsx("br",{}),t.jsxs("button",{onClick:y,className:"btn ml-auto btcd-btn-lg purple sh-sm flx",type:"button",disabled:!o,children:[a("Next","bit-integrations"),t.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]}),t.jsx(_,{note:N})]})}export{V as default};
