var v=Object.defineProperty;var p=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var x=(a,t,s)=>t in a?v(a,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[t]=s,l=(a,t)=>{for(var s in t||(t={}))z.call(t,s)&&x(a,s,t[s]);if(p)for(var s of p(t))_.call(t,s)&&x(a,s,t[s]);return a};import{r as j,j as e,_ as r}from"./main-343.js";import{t as b}from"./bf-974-82.js";import{a5 as f,a6 as y}from"./bf-659-81.js";import{h as T}from"./bf-164-177.js";function G({acumbamailConf:a,setAcumbamailConf:t,step:s,setstep:w,isLoading:k,setIsLoading:g,setSnackbar:E,isInfo:n,authorizedAction:A}){const[o,N]=j.useState(!1),[c,d]=j.useState({dataCenter:"",clientId:""}),m=i=>{const h=l({},a),u=l({},c);u[i.target.name]="",h[i.target.name]=i.target.value,d(u),t(h)};return o&&A(),e.jsxs("div",{className:"btcd-stp-page",style:{width:900,height:"auto"},children:[e.jsx(f,{title:b.acumbamail.title,youTubeLink:b.acumbamail.link}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Integration Name:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"name",value:a.name,type:"text",placeholder:r("Integration Name..."),disabled:n}),e.jsxs("small",{className:"d-blk mt-3",children:[r("To Get Auth token, Please Visit")," ",e.jsx("a",{className:"btcd-link",href:"https://acumbamail.com/en/apidoc/",target:"_blank",rel:"noreferrer",children:r("Acumbamail documentation")})]}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:r("Auth Token:")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:m,name:"auth_token",value:a.auth_token,type:"text",placeholder:r("Auth Token..."),disabled:n}),e.jsx("div",{style:{color:"red",fontSize:"15px"},children:c.auth_token}),!n&&e.jsxs(e.Fragment,{children:[e.jsx(y,{isAuthorized:o,isLoading:k,handleAuthorize:()=>T(a,t,d,N,g)}),e.jsx("br",{})]})]})}export{G as default};
