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