var S=Object.defineProperty;var p=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var x=(t,a,s)=>a in t?S(t,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[a]=s,b=(t,a)=>{for(var s in a||(a={}))k.call(a,s)&&x(t,s,a[s]);if(p)for(var s of p(a))_.call(a,s)&&x(t,s,a[s]);return t};import{j as e,_ as i}from"./main.2.9.0.js";import{b as g}from"./react-router.DMwpH23k.js";import{y as K,a9 as w}from"./Note.NSUdvR3c.js";import{T as U}from"./TutorialLink.CFG7bS5c.js";import{b as z}from"./BentoCommonFunc.CJLWv-Tr.js";import"./react-vendor.P7K3d6op.js";import"./CopyIcn.CEA_lFLo.js";function G({bentoConf:t,setBentoConf:a,step:s,setStep:y,loading:c,setLoading:j,isInfo:r}){const[o,N]=g.useState(!1),[l,m]=g.useState({publishable_key:"",secret_key:""}),v=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),t!=null&&t.default,y(2)},n=d=>{const h=b({},t),u=b({},l);u[d.target.name]="",h[d.target.name]=d.target.value,m(u),a(h)};return e.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"auto"},children:[e.jsx(U,{linkKey:"bento"}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Integration Name:","bit-integrations")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:n,name:"name",value:t.name,type:"text",placeholder:i("Integration Name...","bit-integrations"),disabled:r}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Publishable Key:","bit-integrations")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:n,name:"publishable_key",value:t.publishable_key,type:"text",placeholder:i("Publishable Key...","bit-integrations"),disabled:r}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:l.publishable_key}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Secret Key:","bit-integrations")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:n,name:"secret_key",value:t.secret_key,type:"text",placeholder:i("Secret Key...","bit-integrations"),disabled:r}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:l.secret_key}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:i("Site UUID:","bit-integrations")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:n,name:"site_uuid",value:t.site_uuid,type:"text",placeholder:i("Site UUID...","bit-integrations"),disabled:r}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:l.site_uuid}),e.jsxs("small",{className:"d-blk mt-3",children:[i("To Get Publishable Key, Secret Key & Site UUID, Please Visit","bit-integrations")," ",e.jsx("a",{className:"btcd-link",href:"https://app.bentonow.com/account/teams",target:"_blank",children:i("Bento team dashboard","bit-integrations")})]}),e.jsx("br",{}),!r&&e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>z(t,m,N,c,j),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:o||c.auth,children:[o?i("Authorized ✔","bit-integrations"):i("Authorize","bit-integrations"),c.auth&&e.jsx(K,{size:"20",clr:"#022217",className:"ml-2"})]}),e.jsx("br",{}),e.jsxs("button",{onClick:v,className:"btn ml-auto btcd-btn-lg purple sh-sm flx",type:"button",disabled:!o,children:[i("Next","bit-integrations"),e.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]}),e.jsx(w,{note:P})]})}const P=`
            <h4>${i("To Get Publishable Key, Secret Key & Site UUID","bit-integrations")}</h4>
            <ul>
                <li>${i("Navigate to the Bento team dashboard,.","bit-integrations")}</li>
                <li>${i('go to "Settings" and then "API Keys"',"bit-integrations")}</li>
                <li>${i("where you'll find your Publishable Key, Secret Key & Site UUID","bit-integrations")}</li>
            </ul>`;export{G as default};
