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