1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="582049c8-586f-4148-aa8d-6f464d0cd823",t._sentryDebugIdIdentifier="sentry-dbid-582049c8-586f-4148-aa8d-6f464d0cd823")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9070],{13541:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify-email",function(){return i(24581)}])},24581:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return P}});var n=i(62364),o=i(67294),r=i(11163),a=i(15437),d=i(92729),l=i(47041),s=i(29496),c=i(39332),u=i(81517),f=i(61312),h=i(5810),v=i(85918),m=i(7877);let p=a.ZP.div.withConfig({componentId:"sc-25175258-0"})(["margin-top:3.2rem;margin-bottom:3.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;"]),g=(0,a.F4)(["from{opacity:0;}to{opacity:1;}"]),w=(0,a.F4)(["from{transform:translateY(20px);}to{transform:translateY(0);}"]),y=a.ZP.div.withConfig({componentId:"sc-25175258-1"})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,0.5);display:flex;justify-content:center;align-items:center;z-index:1000;animation:"," 0.3s ease-out;"],g),b=a.ZP.div.withConfig({componentId:"sc-25175258-2"})(["background:white;border-radius:12px;padding:2rem;width:90%;max-width:400px;box-shadow:0 10px 25px rgba(0,0,0,0.1);text-align:center;animation:"," 0.3s ease-out;"],w),Z=a.ZP.div.withConfig({componentId:"sc-25175258-3"})(["width:60px;height:60px;margin:0 auto 1rem;color:#ffa500;svg{width:100%;height:100%;}"]),x=a.ZP.h2.withConfig({componentId:"sc-25175258-4"})(["margin:0 0 1rem;color:#333;font-size:1.5rem;font-weight:600;"]),k=a.ZP.p.withConfig({componentId:"sc-25175258-5"})(["color:#666;margin-bottom:1.5rem;line-height:1.5;"]),C=a.ZP.div.withConfig({componentId:"sc-25175258-6"})(["width:60px;height:60px;margin:0 auto 1rem;color:#4bb543;svg{width:100%;height:100%;}"]),I=a.ZP.span.withConfig({componentId:"sc-25175258-7"})(["color:#465063;font-size:1.2rem;font-weight:200;"]),_=a.ZP.button.withConfig({componentId:"sc-25175258-8"})(["color:#465063;border:none;background:transparent;font-weight:700;cursor:pointer;"]);var P=t=>{let{}=t,e=(0,r.useRouter)(),i=(0,c.useSearchParams)().get("ref"),{fetchUserPurchaseData:a,getCartToLocalStorage:g}=(0,h.iQ)(),{setUser:w,getCustomerByFirebaseId:P}=(0,v.a)(),{token:E}=e.query,[L,j]=(0,o.useState)(!0),[B,S]=(0,o.useState)(!1),[M,N]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let t=async()=>{var t,e,i,n,o,r,a,c,f,h,v,p,g,w,y;try{let g=await d.Z.post("/api/customer/verify-email",{token:E});(null==g?void 0:g.status)?((0,l.deleteCookie)("verify_email"),localStorage.removeItem("verification_email"),(null==g?void 0:null===(e=g.data)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.email)&&(null==g?void 0:null===(n=g.data)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.password)?(await (0,u.e5)(m.I,null==g?void 0:null===(r=g.data)||void 0===r?void 0:null===(o=r.data)||void 0===o?void 0:o.email,null==g?void 0:null===(c=g.data)||void 0===c?void 0:null===(a=c.data)||void 0===a?void 0:a.password),S(!0),await T(null==g?void 0:null===(h=g.data)||void 0===h?void 0:null===(f=h.data)||void 0===f?void 0:f.firebase_id),await X()):(0,s.yv)("Please login again to continue",{variant:"success"})):(N(!0),(0,s.yv)(null!==(p=null==g?void 0:null===(v=g.data)||void 0===v?void 0:v.message)&&void 0!==p?p:"Email verification sent!",{variant:"success"}))}catch(t){S(!1),N(!0),(0,s.yv)(null!==(y=null==t?void 0:null===(w=t.response)||void 0===w?void 0:null===(g=w.data)||void 0===g?void 0:g.message)&&void 0!==y?y:"Email verification sent!",{variant:"error"})}finally{setTimeout(()=>{j(!1)},500)}};E&&t()},[E]);let T=async t=>{let e=await P();return await a(null),w(e),!0},X=async()=>{let t=await g();if("/login"===e.pathname||"/auth"===e.pathname&&"cart"===i&&t)e.push("/checkout");else{if("/video/[videoId]"===e.pathname||"/search"===e.pathname)return;e.push("/")}};return(0,n.tZ)(p,{children:L?(0,n.tZ)(f.Z,{}):(0,n.tZ)(y,{children:(0,n.BX)(b,{children:[B&&!1==M?(0,n.tZ)(C,{children:(0,n.BX)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.tZ)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeWidth:"2"}),(0,n.tZ)("path",{d:"M8 12L11 15L16 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}):(0,n.tZ)(Z,{children:(0,n.tZ)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.tZ)("path",{d:"M12 9V11M12 15H12.01M5.07183 19H18.9282C20.4678 19 21.4301 17.3333 20.6603 16L13.7321 4C12.9623 2.66667 11.0378 2.66667 10.268 4L3.33978 16C2.56998 17.3333 3.53223 19 5.07183 19Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.tZ)(x,{children:B&&!1==M?"Verification Success":"Token Expired"}),(0,n.tZ)(k,{children:B&&!1==M?"Email verfied successfully...":"Token expired. Pleaes try again!"}),M&&(0,n.tZ)(I,{children:(0,n.tZ)(_,{onClick:()=>{e.push("/")},children:"Goto Home"})})]})})})}}
1,61312:function(t,e,i){"use strict";i.d(e,{$:function(){return d}});var n=i(62364);i(67294);var o=i(15437),r=i(85717);let a=o.ZP.div.withConfig({componentId:"sc-617e4efa-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2rem;position:fixed;top:0;bottom:0;left:0;right:0;width:100vw;height:100vh;background-color:rgba( 255,255,255,0.8 );z-index:1000;",""],t=>t.styleObject&&(0,o.iv)(t.styleObject)),d=o.ZP.div.withConfig({componentId:"sc-617e4efa-1"})(["border:6px solid ",";border-top:6px solid ",";border-bottom:6px solid ",";border-radius:50%;width:50px;height:50px;animation:spin 2s linear infinite;@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],()=>r.Z.naviPink.main,()=>r.Z.naviBlue.main,()=>r.Z.naviPurple.main);e.Z=t=>{let{message:e,style:i}=t;return(0,n.BX)(a,{style:i,children:[(0,n.tZ)(d,{}),e&&(0,n.tZ)("span",{children:e})]})}}},function(t){t.O(0,[9332,2888,9774,179],function(){return t(t.s=13541)}),_N_E=t.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.