1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9761],{36108:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/seller/[id]/account/verify/[token]",function(){return l(58585)}])},58585:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>_,default:()=>x,getVerifyAccountServerSideProps:()=>k});var r=l(50979),n=l(84614),c=l(8119),s=l(45625),o=l(49181),i=l(25963),a=l(92458),u=l(91993),d=l(62097);let y=e=>{let{t}=(0,n.Bd)(["account"]),l=(0,a.br)(),y=(0,o.useRouter)(),[f,h]=(0,i.useState)(!1),[v,_]=(0,i.useState)(!1),k=async()=>{c.Ay.start();let t=await u.A.verifyCustomer(e.token,e.seller._id).catch(e=>null);c.Ay.stop(),t?(h(!0),setTimeout(()=>{y.push((0,a.oU)(e.seller,l))},3e3)):(_(!0),setTimeout(()=>{y.push("".concat((0,a.oU)(e.seller,l),"/account/edit"))},3e3))};return(0,r.jsx)(d.v,{hideAccountPill:!0,children:(0,r.jsx)("div",{className:"main",children:(0,r.jsx)("div",{className:"container",children:(0,r.jsxs)(s.A,{title:t("account:verify.verifyAccount"),children:[!f&&!v&&(0,r.jsx)("p",{children:t("account:verify.clickToVerify")}),f&&(0,r.jsx)("p",{children:t("account:verify.verifySuccess")}),v&&(0,r.jsx)("p",{children:t("account:verify.verifyError")}),!f&&!v&&(0,r.jsx)("button",{type:"button",className:"btn default block mt-0",onClick:()=>k(),disabled:c.Ay.loading,children:t("account:verify.verifyAccount")})]})})})})};var f=l(81438),h=l(33792),v=l(92200),_=!0;let k=async(e,t,l)=>{var r,n;let c=null==(n=e.query)||null==(r=n.token)?void 0:r.toString();try{let r=await v.A.fetchSellerInfo(l,e.detectedLocale),n=(0,a.Wq)(t.domainCtx,r._id,r.orgId);return t.domainCtx=await n,{token:c,seller:r}}catch(e){}return{seller:null,organization:null}},x=e=>{let{t}=(0,n.Bd)(["auth"]);return e.token?e.seller?(0,r.jsx)(h.O3,{seller:e.seller,children:(0,r.jsx)(y,{token:e.token,seller:e.seller})}):(0,r.jsx)(f.M,{code:404,message:t("seller:sellerCouldNotBeFound")}):(0,r.jsx)(f.M,{code:404,message:t("auth:verifyAccount.pageNotFoundError")})}}},e=>{e.O(0,[7310,95,589,885,6878,8367,3407,7681,6707,6099,575,7314,636,6593,8792],()=>e(e.s=36108)),_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.