PageSourceSearch

https://www.tabletmag.com/_next/static/chunks/pages/magic-link-login-56d8eddf30fa2092.js

js tabletmag.com collected 2026-10-01 08:38:42 UTC 3,238 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1332],{80220:function(n,i,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/magic-link-login",function(){return e(77926)}])},77926:function(n,i,e){"use strict";e.r(i),e.d(i,{__N_SSG:function(){return h}});var a=e(47568),r=e(828),s=e(97582),t=e(85893),o=e(11163),c=e(67294),l=e(60704),u=e(46672),g=e(43644),d=e(88513),_=e(47533),h=!0;i.default=function(){var n=(0,u.X)().loginWithMagicLink,i=(0,r.Z)((0,g._)("emailForSignIn",""),2),e=i[0],h=i[1],m=(0,o.useRouter)(),k=m.replace,L=m.isReady,f=(0,d.BF)().setPopup,p=(0,c.useState)("working"),w=p[0],N=p[1],v=(0,c.useState)(""),x=v[0],j=v[1],b=(0,c.useState)(""),M=b[0],E=b[1],y=(0,c.useCallback)(function(){var i=(0,a.Z)((function(i){var e;return(0,s.__generator)(this,(function(a){switch(a.label){case 0:return N("working"),E(""),[4,n(i,window.location.href)];case 1:return(null===(e=a.sent())||void 0===e?void 0:e.error)?(E(e.error),N("error"),[2]):(h(""),k("/"),[2])}}))}));return function(n){return i.apply(this,arguments)}}(),[n,k,h]);(0,c.useEffect)((function(){L&&((0,l.pR)(window.location.href)?e?y(e):N("needsEmail"):k("/"))}),[L]);var S=function(){var n=(0,_.oH)(x);n.correct?y(x):E(n.error||"")};return(0,t.jsx)("div",{className:"MagicLinkLogin__page",children:(0,t.jsxs)("div",{className:"MagicLinkLogin__content",children:["working"===w&&(0,t.jsx)("h6",{className:"MagicLinkLogin__subtitle",children:"Signing you in\u2026"}),"needsEmail"===w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h5",{className:"MagicLinkLogin__title",children:"Confirm your email address"}),(0,t.jsx)("h6",{className:"MagicLinkLogin__subtitle",children:"Enter the email address this link was sent to, and we'll sign you in."}),(0,t.jsxs)("div",{className:"MagicLinkLogin__form",children:[(0,t.jsxs)("div",{className:"MagicLinkLogin__inputs",children:[(0,t.jsx)("label",{htmlFor:"magic-link-login-email",style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0},children:"Email address"}),(0,t.jsx)("input",{id:"magic-link-login-email",className:"MagicLinkLogin__input",name:"email",type:"email",placeholder:"Email",value:x,onChange:function(n){return j(n.target.value)},onKeyDown:function(n){"Enter"===n.key&&S()}})]}),(0,t.jsx)("div",{className:"MagicLinkLogin__button-wrapper",children:(0,t.jsx)("button",{className:"MagicLinkLogin__button",onClick:S,children:"Continue"})}),M&&(0,t.jsx)("div",{className:"MagicLinkLogin__error",children:M})]})]}),"error"===w&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h5",{className:"MagicLinkLogin__title",children:"That link didn't work"}),(0,t.jsx)("h6",{className:"MagicLinkLogin__subtitle",children:M}),(0,t.jsx)("p",{className:"MagicLinkLogin__subtitle",children:"Sign-in links expire and can only be used once. Request a new one from the login window."}),(0,t.jsx)("div",{className:"MagicLinkLogin__button-wrapper",children:(0,t.jsx)("button",{className:"MagicLinkLogin__button",onClick:function(){f(d.sh.LOGIN),k("/")},children:"Back to login"})})]})]})})}}},function(n){n.O(0,[9774,2888,179],(function(){return i=80220,n(n.s=i);var i}));var i=n.O();_N_E=i}]);
2//# sourceMappingURL=magic-link-login-56d8eddf30fa2092.js.map

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.