var f=Object.defineProperty;var m=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var d=(i,e,s)=>e in i?f(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s,u=(i,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(i,s,e[s]);if(m)for(var s of m(e))y.call(e,s)&&d(i,s,e[s]);return i};import{j as t,_ as a}from"./main.2.9.0.js";import{b}from"./react-router.DMwpH23k.js";import{a9 as z,y as k}from"./Note.NSUdvR3c.js";import{T as w}from"./TutorialLink.CFG7bS5c.js";import{f as A}from"./WeDocsCommonFunc.DFNWidWd.js";import"./react-vendor.P7K3d6op.js";import"./CopyIcn.CEA_lFLo.js";function K({weDocsConf:i,setWeDocsConf:e,step:s,nextPage:p,isLoading:r,setIsLoading:h,isInfo:o}){const[n,x]=b.useState(!1),[g,j]=b.useState({name:""}),N=l=>{const c=u({},i);c[l.target.name]=l.target.value,e(c)};return t.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"auto"},children:[t.jsx(w,{linkKey:"weDocs"}),t.jsx("div",{className:"mt-3",children:t.jsx("b",{children:a("Integration Name:","bit-integrations")})}),t.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}),t.jsx("div",{style:{color:"red",fontSize:"15px"},children:g.name}),t.jsx(z,{note:a("To use weDocs integration, make sure the weDocs plugin is installed and active on your site.","bit-integrations")}),!o&&t.jsxs(t.Fragment,{children:[t.jsxs("button",{onClick:()=>A(i,e,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&&t.jsx(k,{size:20,clr:"#022217",className:"ml-2"})]}),t.jsx("br",{}),t.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"),t.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]})]})}export{K as default};
