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