(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2482],{18142:(e,i,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login/Verified",function(){return l(32971)}])},32971:(e,i,l)=>{"use strict";l.r(i),l.d(i,{default:()=>o});var s=l(37876),r=l(14232),n=l(31777),t=l(89099),a=l(48230),d=l.n(a),c=l(64329),u=l(19519),f=l(1785);l(72232);let o=()=>{let e=(0,n.wA)(),i=(0,t.useRouter)(),l=(0,r.useRef)(null),{token:a}=i.query,[o,h]=(0,r.useState)({title:"Email verification is under process.",msg:"",verified:null}),m=(0,r.useCallback)(async()=>{if(!a)return;let i=await (0,f.R_)(e((0,u.FH)({email_verify:"yes",token:a})),"Validating...","Email verify successfully!");(null==i?void 0:i.error)?h({title:"Email not verified!",msg:"Your email address not verified.",verified:!1}):(h({title:"Email verified!",msg:"Your email address has been successfully verified.",verified:!0}),setTimeout(()=>{l.current&&l.current.click()},3e3))},[e,a]);return(0,r.useEffect)(()=>{m()},[m]),(0,s.jsx)("div",{className:"login-wrapper",children:(0,s.jsxs)("div",{className:"login-outer",style:{height:"400px",minHeight:"200px"},children:[(0,s.jsxs)("div",{className:"login-inner text-center align-align-items-center justify-content-center h-100 d-flex-column",style:{marginTop:"100px"},children:[(0,s.jsx)("div",{className:"login-logo",children:null===o.verified?null:o.verified?(0,s.jsx)(c.NS,{height:"100",width:"100px"}):(0,s.jsx)(c.VD,{height:"100",width:"100px"})}),(0,s.jsx)("span",{children:o.title}),(0,s.jsx)("p",{children:o.msg})]}),(0,s.jsx)(d(),{href:"/adminpanel",className:"d-none",ref:l,children:"Back To Login"})]})})}}},e=>{var i=i=>e(e.s=i);e.O(0,[636,6593,8792],()=>i(18142)),_N_E=e.O()}]);
//# sourceMappingURL=Verified-cb8dbb172a81d578.js.map