1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5362],{20873:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/master-login",function(){return a(95836)}])},95836:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>h,default:()=>u});var l=a(31085),n=a(26535),t=a(823),r=a(20303),i=a(43597),c=a(14041),d=a(22297),o=a(65058),x=a(53533),p=a(56097);let m=()=>{let{data:e}=(0,x.M)(),{mutate:s}=(0,o.Q)();return async a=>{let{email:l,password:n}=a,t=await p.A.post(`/api/login?storeId=${e.storeConfigValue}&catalogId=10002&langId=-3`,{email:l,password:n});return s&&await s(),t.data}};var f=a(31242),h=!0;let u=()=>{let{t:e}=(0,d.Bd)("common"),{data:s,isLoading:a}=(0,o.Q)(),x=m(),p=(0,f.useRouter)(),[h,u]=(0,c.useState)(""),[j,N]=(0,c.useState)(""),[g,w]=(0,c.useState)(!1),[b,v]=(0,c.useState)("");(0,c.useEffect)(()=>{!a&&s&&setTimeout(()=>p.push("/"),3e3)},[a,s,p]);let y=async e=>{e.preventDefault();try{w(!0),v(""),await x({email:h,password:j}),w(!1),p.push("/")}catch(e){if(!(e instanceof Error))throw v("login requeset failed with error of uknown type"),w(!1),e;v(e.message),w(!1)}},_=()=>{window.open("mailto:[email protected]")};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mx-auto max-w-[947px] font-zfMain",children:(0,l.jsx)(n.Vm,{className:"pointer-events-none"})}),(0,l.jsx)(t.A,{className:"flex justify-center font-zfMain px-8 mt-12 mb-24",children:!a&&s?(0,l.jsx)("div",{className:"my-64",children:e("alreadyLoggedIn")}):(0,l.jsxs)("div",{className:"flex flex-col gap-12 max-w-[947px] px-8 md:px-24 py-12 border border-primary-500 ",children:[(0,l.jsxs)("div",{className:"max-w-[947px] flex flex-col gap-4",children:[(0,l.jsx)("span",{className:"text-xl font-bold uppercase",children:e("welcome")}),(0,l.jsx)("span",{className:"text-base-500 max-w-[547px]",children:e("securedShopIntro")})]}),(0,l.jsx)("form",{onSubmit:y,className:"flex flex-col justify-between grow-0 w-full",children:(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-14 lg:gap-20",children:[(0,l.jsx)("div",{id:"leftSide",className:"flex flex-col md:border-b-0 md:w-1/2",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("span",{className:"text-xl font-bold uppercase",children:e("loginNecessary")}),(0,l.jsx)("span",{className:"text-base-500",children:e("adminLoginNecessary")}),(0,l.jsx)("div",{children:(0,l.jsx)(r.A,{placeholder:e("username"),label:e("username"),onChange:u})}),(0,l.jsx)("div",{className:"pb-2",children:(0,l.jsx)(r.A,{type:"password",placeholder:e("signUpPassword"),label:e("signUpPassword"),onChange:N})}),b&&(0,l.jsx)("div",{className:"text-error-500 font-bold",children:(0,l.jsxs)("span",{className:"text-sm",children:[" ",e("loginIncorrect")]})}),(0,l.jsx)(i.A,{variant:"slim",type:"submit",loading:g,loadingStyle:"spinner",showLabelWhileLoading:!1,children:(0,l.jsx)("span",{className:"uppercase",children:e("login")})})]})}),(0,l.jsxs)("div",{id:"rightSide",className:"flex flex-col gap-4 md:w-1/2",children:[(0,l.jsx)("span",{className:"text-xl font-bold uppercase",children:e("contact")}),(0,l.jsx)("span",{className:"text-base-500",children:e("contactDescription")}),(0,l.jsx)(i.A,{onClick:e=>{e.preventDefault(),_()},className:"mt-8",variant:"slim",children:(0,l.jsx)("span",{className:"uppercase",children:e("contactSales")})})]})]})})]})}),(0,l.jsx)(n.wi,{})]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[636,6593,8792],()=>s(20873)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.