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