PageSourceSearch

https://capjournal.org/_next/static/chunks/pages/verify-email-7fa6e0e5eca18633.js

js capjournal.org collected 2026-10-02 03:31:37 UTC 3,782 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1e3],{49216:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify-email",function(){return s(94987)}])},94987:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>m});var i=s(74848),a=s(96540),l=s(86715),n=s(83914),r=s(66188),c=s(74063),x=s(91106),o=s.n(x),d=s(37218);function m(){let[e,t]=(0,a.useState)(),s=(0,l.useRouter)(),{token:x}=s.query;return(0,a.useEffect)(()=>{if(!s.isReady)return;let e=async()=>{try{let e=await fetch("".concat(d.A,"/api/v1/verify-email?token=").concat(x)),s=await e.json();t(s.status)}catch(e){t("invalid")}};x?e():t("missing_token")},[s.isReady,x]),(0,i.jsxs)("div",{className:"min-h-screen flex items-center md:p-20 md:justify-start justify-center relative",style:{backgroundImage:"url(".concat(c.D,"/images/helix-nebula.jpg)"),backgroundSize:"cover",backgroundPosition:"center"},children:[!!e&&(0,i.jsxs)("div",{className:"glass rounded-lg max-w-md text-center space-y-4 w-full",children:["verified"===e&&(0,i.jsxs)("div",{className:"px-8 py-12 text-center space-y-4 w-full max-w-[350px] mx-auto flex flex-col items-center",children:[(0,i.jsx)(n.g,{icon:r.QRE,size:"2x"}),(0,i.jsx)("h1",{className:"text-white text-xl font-semibold",children:"Email verified"}),(0,i.jsx)("p",{className:"text-gray-100 pb-8",children:"Your account is ready."}),(0,i.jsx)(o(),{href:"/authors/login",className:"px-6 py-2 w-[250px] bg-[#3366CC] hover:bg-blue-950 justify-center flex-row rounded-full text-center align-middle items-center text-md transition duration-300 flex gap-4",children:"Go to Login"})]}),"already_verified"===e&&(0,i.jsxs)("div",{className:"px-8 py-12 text-center space-y-4 w-full max-w-[350px] mx-auto flex flex-col items-center",children:[(0,i.jsx)(n.g,{icon:r.QRE,size:"2x"}),(0,i.jsx)("h1",{className:"text-white text-xl font-semibold",children:"Email already confirmed"}),(0,i.jsx)(o(),{href:"/authors/login",className:"px-6 py-2 w-[250px] bg-[#3366CC] hover:bg-blue-950 justify-center flex-row rounded-full text-center align-middle items-center text-md transition duration-300 flex gap-4",children:"Go to Login"})]}),"invalid"===e&&(0,i.jsxs)("div",{className:"px-8 py-12 text-center space-y-4 w-full max-w-[350px] mx-auto flex flex-col items-center",children:[(0,i.jsx)(n.g,{icon:r.bnw,size:"2x"}),(0,i.jsx)("h1",{className:"text-white text-xl font-semibold",children:"Invalid token"}),(0,i.jsx)("p",{children:"The token is incorrect or has already been used."})]}),"missing_token"===e&&(0,i.jsxs)("div",{className:"px-8 py-12 text-center space-y-4 w-full max-w-[350px] mx-auto flex flex-col items-center",children:[(0,i.jsx)(n.g,{icon:r.bnw,size:"2x"}),(0,i.jsx)("h1",{className:"text-white text-xl font-semibold",children:"Missing token"}),(0,i.jsx)("p",{children:"The token is missing from the link."})]})]}),(0,i.jsx)("div",{className:"absolute bottom-3 right-2 text-end z-[1] md:w-2/3  w-fullpx-4",children:(0,i.jsxs)("div",{className:"relative group",children:[(0,i.jsx)("p",{className:"text-xs cursor-pointer text-white",children:(0,i.jsx)("span",{className:"max-w-5",children:(0,i.jsx)(n.g,{icon:r.mEO,size:"1x"})})}),(0,i.jsx)("div",{className:"absolute w-auto bottom-0 right-8 bg-[#9b9b9b54] text-gray-50 text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:(0,i.jsxs)("span",{className:"text-xs",children:["The Helix Nebula: ",(0,i.jsx)("br",{}),"This colour-composite image of the Helix Nebula (NGC 7293) was created from images obtained using the Wide Field Imager (WFI), an astronomical camera attached to the 2.2-metre Max-Planck Society/ESO telescope at the La Silla observatory in Chile. ",(0,i.jsx)("br",{})," Credit: ESO"]})})]})})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[636,6593,8792],()=>t(49216)),_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.