var z=Object.defineProperty;var x=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var h=(t,n,s)=>n in t?z(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,l=(t,n)=>{for(var s in n||(n={}))T.call(n,s)&&h(t,s,n[s]);if(x)for(var s of x(n))f.call(n,s)&&h(t,s,n[s]);return t};import{j as e,_ as a}from"./main.2.8.1.js";import{d as g}from"./react-router-dom.9mCuUg3q.js";import{z as w}from"./Note.BeM7sN-p.js";import{d as E}from"./MailsterCommonFunc.CkwfErOT.js";import{t as A}from"./tutorialLinks.kMkIDzcD.js";import{T as j}from"./TutorialLink.BAFX--T3.js";import"./CopyIcn.3gZpHton.js";function D({mailsterConf:t,setMailsterConf:n,step:s,setStep:N,loading:r,setLoading:k,isInfo:m}){const[o,v]=g.useState(!1),[c,u]=g.useState({name:""}),{mailster:i}=A,y=()=>{setTimeout(()=>{document.getElementById("btcd-settings-wrp").scrollTop=0},300),t!=null&&t.default,N(2)},L=d=>{const b=l({},t),p=l({},c);p[d.target.name]="",b[d.target.name]=d.target.value,u(p),n(b)};return e.jsxs("div",{className:"btcd-stp-page",style:{width:s===1&&900,height:s===1&&"auto"},children:[e.jsx(j,{title:"Mailster",youTubeLink:i==null?void 0:i.youTubeLink}),e.jsx(j,{title:"Mailster",docLink:i==null?void 0:i.docLink}),e.jsx("div",{className:"mt-3",children:e.jsx("b",{children:a("Integration Name:","bit-integrations")})}),e.jsx("input",{className:"btcd-paper-inp w-6 mt-1",onChange:L,name:"name",value:t.name,type:"text",placeholder:a("Integration Name...","bit-integrations"),disabled:m}),c.name&&e.jsx("div",{style:{color:"red",fontSize:"15px"},children:c.name}),e.jsx("br",{}),!m&&e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>E(t,n,u,v,r,k),className:"btn btcd-btn-lg purple sh-sm flx",type:"button",disabled:o||r.auth,children:[o?a("Connected ✔","bit-integrations"):a("Connect to Mailster","bit-integrations"),r.auth&&e.jsx(w,{size:"20",clr:"#022217",className:"ml-2"})]}),e.jsx("br",{}),e.jsxs("button",{onClick:y,className:"btn ml-auto btcd-btn-lg purple sh-sm flx",type:"button",disabled:!o,children:[a("Next","bit-integrations"),e.jsx("div",{className:"btcd-icn icn-arrow_back rev-icn d-in-b"})]})]})]})}export{D as default};
