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