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