PageSourceSearch

https://dailydot.com/_next/static/chunks/pages/_sites/[siteSlug]/token-368f7db2138582f7.js

js dailydot.com collected 2026-10-01 08:17:48 UTC 3,085 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9190],{5429:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[siteSlug]/token",function(){return n(87548)}])},33094:e=>{e.exports={pageWrapper:"token_pageWrapper__8BvZC",message:"token_message__TAhpq",redirect:"token_redirect__BXLZ1"}},69860:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(88876);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"email",t=(0,s.A)("login");return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t({method:e,...n})}}},87548:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>j,default:()=>x});var s=n(37876),r=n(37062);let i=async(e,t,n)=>(await fetch((0,r.c)("customer/verify/token"),{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({token:e,email:t,publisherId:n})})).json();var l=n(40880),a=n(14232),o=n(89099),c=n(33939),h=n(69860),u=n(48046);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{updateUserData:t}=(0,c.u)(),n=(0,h.A)(e),{push:s}=(0,o.useRouter)();return(0,a.useCallback)(function(r){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!i&&(t({type:u.A.USER_LOGIN,payload:r}),e&&n()),r.lastPath&&Date.now()<r.resumeSession?s(r.lastPath).then(()=>{t({lastPath:"",resumeSession:null})}):s("/")},[t,n,e,s])};var g=n(37036),p=n(12277),_=n(20884),m=n(33094),f=n.n(m),j=!0;let x=e=>{let{globalData:t}=e,{siteTitle:n}=t,{query:{token:r,email:h,publisherId:u}}=(0,o.useRouter)(),{userData:m}=(0,c.u)(),j=d("email"),{hydrated:x,lastPath:k,resumeSession:v,status:N}=m,w=Date.now()<v,[A,S]=(0,a.useState)(!1),[y,P]=(0,a.useState)(!1),[E,L]=(0,a.useState)(!1),b=N===g._.LoggedIn;return(0,a.useEffect)(()=>{!b&&!A&&x&&r&&h&&u&&(S(!0),i(r,h,u).then(e=>{let{token:t,validated:n}=e;if(n){L(!0),j({...t,validated:n,lastPath:k,resumeSession:v,notification:"login"},!1);return}P(!0)}).catch(e=>{(0,l.v)(e,{token:r,email:h,publisherId:u}),P(!0)}))},[b,j,x,k,r,h,u,A,v]),(0,s.jsx)(p.A,{...t,title:"".concat(n," | Login"),headerTheme:"simple",suppressPageView:!0,hideAds:!0,children:(0,s.jsx)("div",{className:f().pageWrapper,children:(0,s.jsxs)("div",{className:f().message,children:[(E||b||y)&&(!E||b||y)?null:(0,s.jsx)("p",{children:"Logging in..."}),E&&b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"You are now logged in."}),(0,s.jsx)("p",{className:f().redirect,children:k&&w?(0,s.jsxs)("p",{children:["Wait a moment to be redirected or",(0,s.jsx)("br",{}),(0,s.jsx)(_.A,{href:k,className:f().link,children:"return to the site now"})]}):(0,s.jsx)(_.A,{href:"/",className:f().link,children:"Check out the homepage"})})]}):null,!E&&b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"The login link used is invalid."}),(0,s.jsx)(_.A,{href:"/logout",children:"Log out and try again."})]}):null,y&&!b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"An error has occurred."}),(0,s.jsx)(_.A,{href:"/login",children:"Log in to try again."})]}):null]})})})}}},e=>{e.O(0,[1596,6511,2277,636,6593,8792],()=>e(e.s=5429)),_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.