var f=Object.defineProperty;var m=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var d=(i,t,e)=>t in i?f(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,b=(i,t)=>{for(var e in t||(t={}))v.call(t,e)&&d(i,e,t[e]);if(m)for(var e of m(t))A.call(t,e)&&d(i,e,t[e]);return i};import{j as s,_ as a}from"./main.2.8.10.js";import{b as u}from"./react-router.DMwpH23k.js";import{a9 as y,y as z}from"./Note.DalStCGz.js";import{b as k}from"./AsgarosForumCommonFunc.B8Ec_x02.js";import"./react-vendor.P7K3d6op.js";import"./CopyIcn.BnhKHfEP.js";function R({asgarosForumConf:i,setAsgarosForumConf:t,step:e,nextPage:p,isLoading:r,setIsLoading:h,isInfo:o}){const[n,x]=u.useState(!1),[g,j]=u.useState({name:""}),N=l=>{const c=b({},i);c[l.target.name]=l.target.value,t(c)};return s.jsxs("div",{className:"btcd-stp-page",style:{width:e===1&&900,height:e===1&&"auto"},children:[s.jsx("div",{className:"mt-3",children:s.jsx("b",{children:a("Integration Name:","bit-integrations")})}),s.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:N,name:"name",value:i.name,type:"text",placeholder:a("Integration Name...","bit-integrations"),disabled:o}),s.jsx("div",{style:{color:"red",fontSize:"15px"},children:g.name}),s.jsx(y,{note:a("To use Asgaros Forum integration, make sure the Asgaros Forum plugin is installed and active on your site.","bit-integrations")}),!o&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>k(i,t,j,x,h),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:n||r,children:[n?a("Authorized ✔","bit-integrations"):a("Authorize","bit-integrations"),r&&s.jsx(z,{size:20,clr:"#022217",className:"ml-2"})]}),s.jsx("br",{}),s.jsxs("button",{onClick:()=>p(2),className:"btn f-right btcd-btn-lg purple sh-sm flx",type:"button",disabled:!n,children:[a("Next","bit-integrations"),s.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]})]})}export{R as default};
