PageSourceSearch

https://static.newsela.com/lyceum/c0105355aa4bbd49a3945cf9824d4560…/email-verification-431feec4a900f9d0.js

js newsela.com collected 2026-09-24 08:40:28 UTC 15,448 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5902],{10140:(e,r,t)=>{"use strict";t.r(r),t.d(r,{__N_SSP:()=>z,default:()=>Q});var n=t(77328),i=t.n(n),o=t(42969),c=t(63857),a=t(27925),s=t(43081),l=t.n(s),u=t(14232),d=t(40636),p=t(69114),f=t(46794),h=t(82495),C=t(54990),m=t(59290),g=t(55904),b=t(46184),O=t(64307),y=t(16640),v=t(25563),w=t(64239),A=t(25583),j=t(77018),P=t(59860),_=t(18153),Y=["title","titleId"];function k(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function D(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?k(Object(t),!0).forEach(function(r){(0,o.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var H=(0,u.forwardRef)(function(e,r){var t=e.title,n=e.titleId,i=(0,P.A)(e,Y);return(0,_.FD)("svg",D(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 353 250",fill:"none",role:"img",ref:r,"aria-labelledby":n},i),{},{children:[t?(0,_.Y)("title",{id:n,children:t}):null,(0,_.FD)("g",{clipPath:"url(#clip0_3215_24189)",children:[(0,_.Y)("path",{d:"M22.7783 51.174C13.9132 67.0174 41.0975 91.8457 66.6546 102.178C93.18 113.849 114.534 111.453 124.897 105.493C135.868 98.6143 147.878 98.0852 162.374 96.5078C176.221 94.641 189.538 91.7059 187.591 73.8259C186.933 57.4135 176.24 34.4321 164.271 24.6785C152.041 13.7269 134.471 15.8134 122.002 21.9132C108.954 28.8615 97.0735 30.0794 77.0471 31.1976C58.8677 32.7849 29.3572 33.7333 22.7783 51.174Z",fill:"#85B7FC"}),(0,_.Y)("path",{d:"M165.269 145.615C168.394 187.745 221.345 223.175 241.111 217.065C263.883 214.35 266.678 194.184 277.291 183.632C287.114 173.858 297.726 169.256 307.25 161.309C314.558 155.209 330.95 141.642 331.709 111.453C331.51 79.8059 296.029 58.362 281.563 65.1106C265.221 69.6929 260.07 88.8807 248.998 94.2517C238.905 101.899 225.528 101.34 209.445 103.287C196.017 105.253 162.503 104.944 165.259 145.615H165.269Z",fill:"#C2DBFE"}),(0,_.Y)("path",{d:"M181.481 218.872C172.816 216.117 161.445 209.508 156.433 193.695C156.433 193.665 156.413 193.635 156.403 193.605C153.269 181.934 155.116 170.334 161.754 160.071C171.089 145.645 187.471 137.16 196.216 135.692C201.577 134.195 206.529 133.356 211.331 132.547C220.386 131.02 228.203 129.702 235.7 124.381C235.81 124.301 235.93 124.231 236.05 124.181C242.638 121.107 246.692 114.508 251.394 106.87C255.477 100.222 260.109 92.6942 267.287 86.305C273.317 78.8176 287.872 75.5031 302.807 78.2385C313.45 80.1853 339.336 88.3515 349.778 121.935C349.788 121.975 349.798 122.015 349.808 122.055C357.815 153.871 343.918 174.357 334.913 183.731C324.591 194.483 310.564 200.952 301.45 199.175C293.014 198.896 285.736 196.969 279.307 195.262C271.001 193.056 263.823 191.159 256.924 193.585C256.795 193.625 256.665 193.665 256.535 193.685C248.489 194.972 242.499 199.525 235.55 204.806C231.248 208.07 226.805 211.455 221.294 214.579C216.053 218.473 206.819 221.198 196.825 221.198C191.764 221.198 186.513 220.5 181.491 218.902L181.481 218.872ZM280.455 190.929C286.704 192.586 293.783 194.463 301.779 194.703C301.909 194.703 302.039 194.723 302.168 194.753C308.618 196.101 321.157 191.608 331.699 180.627C340.055 171.921 352.953 152.893 345.506 123.193C335.772 91.9854 311.852 84.4281 302.009 82.6212C286.974 79.8658 274.874 83.8491 270.681 89.2101C270.602 89.3199 270.502 89.4198 270.402 89.5096C263.633 95.4896 259.35 102.458 255.207 109.207C250.385 117.053 245.833 124.471 238.136 128.145C229.85 133.965 221.214 135.412 212.09 136.95C207.378 137.749 202.496 138.567 197.325 140.025C197.245 140.045 197.155 140.065 197.075 140.085C189.398 141.323 174.064 149.299 165.518 162.507C159.508 171.801 157.891 181.864 160.716 192.407C165.149 206.363 175.192 212.193 182.849 214.629C196.306 218.912 211.96 216.037 218.739 210.906C218.818 210.846 218.898 210.796 218.988 210.746C224.299 207.751 228.652 204.437 232.865 201.232C239.923 195.871 246.602 190.799 255.647 189.292C263.773 186.507 271.51 188.563 280.465 190.939L280.455 190.929Z",fill:"#005CDD"}),(0,_.Y)("path",{d:"M221.244 28.4322C229.096 28.4322 235.461 22.0675 235.461 14.2161C235.461 6.36477 229.096 0 221.244 0C213.393 0 207.028 6.36477 207.028 14.2161C207.028 22.0675 213.393 28.4322 221.244 28.4322Z",fill:"#4792FB"}),(0,_.Y)("path",{d:"M286.705 186.597V59.6598H176.769H66.834V186.597H176.769H286.705Z",fill:"#E7F0FE"}),(0,_.Y)("path",{d:"M286.705 186.597V59.6598L176.769 129.762L66.834 59.6598V186.597H176.769H286.705Z",fill:"#E7F0FE"}),(0,_.Y)("path",{d:"M286.705 186.597V59.6598H176.769H66.834V186.597H176.769H286.705Z",fill:"#E7F0FE"}),(0,_.Y)("path",{d:"M286.705 186.597V59.6598L176.769 129.762L66.834 59.6598V186.597H176.769H286.705Z",fill:"#E7F0FE"}),(0,_.Y)("path",{d:"M286.705 79.4765V59.6598L176.77 124.83L286.705 79.4765Z",fill:"#080717"}),(0,_.Y)("path",{d:"M286.704 188.563H66.8339C65.7457 188.563 64.8672 187.685 64.8672 186.596V59.6597C64.8672 58.5716 65.7457 57.6931 66.8339 57.6931H286.695C287.783 57.6931 288.661 58.5716 288.661 59.6597V186.596C288.661 187.685 287.783 188.563 286.695 188.563H286.704ZM68.8106 184.63H284.738V61.6264H68.8006V184.63H68.8106Z",fill:"#080717"}),(0,_.Y)("path",{d:"M176.769 126.797C176.419 126.797 176.07 126.707 175.761 126.517L65.8352 61.3569C65.0765 60.9077 64.7071 59.9992 64.9367 59.1406C65.1663 58.2821 65.945 57.6931 66.8335 57.6931H286.694C287.583 57.6931 288.361 58.2821 288.591 59.1406C288.821 59.9992 288.461 60.8977 287.692 61.3569L177.757 126.527C177.448 126.707 177.098 126.807 176.749 126.807L176.769 126.797ZM74.0115 61.6264L176.769 122.534L279.516 61.6264H74.0115Z",fill:"#080717"}),(0,_.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M117.169 191.808C117.169 207.242 111.04 222.037 100.128 232.949C89.2164 243.86 74.4112 249.99 58.9872 249.99C43.5631 249.99 28.7579 243.86 17.8463 232.949C6.92462 222.047 0.794922 207.242 0.794922 191.808C0.794922 176.374 6.92462 161.579 17.8363 
1150.667C28.748 139.755 43.5531 133.625 58.9772 133.625C74.4013 133.625 89.2064 139.755 100.118 150.667C111.03 161.579 117.159 176.384 117.159 191.808H117.169Z",fill:"#005CDD"}),(0,_.Y)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M82.7269 168.068L50.9403 199.854C50.1416 200.653 48.8338 200.653 48.0352 199.854L35.2367 187.056C32.6111 184.43 28.3582 184.43 25.7426 187.056C23.117 189.681 23.117 193.934 25.7426 196.55L39.9887 210.796L44.2815 215.089C47.1567 217.964 51.8088 217.964 54.684 215.089L58.9768 210.796L92.2209 177.552C94.8465 174.926 94.8465 170.673 92.2209 168.058C89.5954 165.432 85.3425 165.432 82.7269 168.058V168.068Z",fill:"white"})]}),(0,_.Y)("defs",{children:(0,_.Y)("clipPath",{id:"clip0_3215_24189",children:(0,_.Y)("rect",{width:"351.41",height:"250",fill:"white",transform:"translate(0.794922)"})})})]}))});function V(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}var E=(0,u.forwardRef)(function(e,r){return(0,_.Y)(j.A,function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?V(Object(t),!0).forEach(function(r){(0,o.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({ref:r,SvgComponent:H},e))}),B=f.AAV.breakpoints.BreakpointNames.sm,S=f.Xm3.mediaQuery,F=(0,o.A)({marginBottom:32},S.downTo(B),{marginBottom:40}),x=(0,o.A)({marginBottom:8},S.downTo(B),{marginBottom:16}),N=(0,o.A)({marginBottom:32},S.downTo(B),{marginBottom:40}),L={margin:"0 0 16px 0"},T=(0,o.A)({margin:"0 0 24px 0"},S.downTo(B),{margin:"0 0 16px 0"}),M={root:{textDecoration:"underline",color:"#0D64F2"}};function Z(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function R(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Z(Object(t),!0).forEach(function(r){(0,o.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var X=(0,d.YH)(f.$nd);let q=function(e){var r,t=e.user,n=(0,u.useRef)(),i=(0,p.useRouter)(),o=(0,h.A)(),s=(0,a.A)(o,1)[0],j=(r=(0,c.A)(l().mark(function e(){var r;return l().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return null==(r=n.current)||r.call(n),e.next=3,s(R(R({},t),{},{send_verification_email:!0}));case 3:if(!e.sent.error){e.next=7;break}return n.current=C.A.current.displayToast({children:"Oops. Something went wrong. Please try again.",statusColor:f.y8.statusColor.danger}),e.abrupt("return");case 7:i.push({pathname:"/registration/email-resent",query:(0,m.WX)(i.query)});case 8:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)});return(0,_.Y)(_.FK,{children:(0,_.Y)(g.A,{children:(0,_.FD)(b.A,{children:[(0,_.Y)(y.A,{__css:F,children:"Verify your email"}),(0,_.Y)(O.A,{__css:N,children:(0,_.Y)(E,{})}),(0,_.Y)(v.A,{__css:x,children:"You’re so close to getting started"}),(0,_.FD)(w.A,{as:"p",__css:L,children:["Click on the email sent to ",(0,_.Y)("b",{children:t.email})," to verify and activate your Newsela account."]}),(0,_.FD)(w.A,{as:"p",__css:T,children:["Didn’t receive an email? Check if it’s in your spam or"," ",(0,_.Y)(X,{__cssFor:M,onClick:j,flavor:f.$nd.flavors.incognito,dataProps:{"data-qa-selector":"email-verification-resend"},objectType:d.Bz.user,actionName:d.Bk.interact,streamProperties:{description:"User clicks to resend verification email."},childrenWrapperElement:"span",children:"resend verification."})]}),(0,_.Y)(A.A,{qaSelector:"email-verification-sign-out",streamProperties:{description:"User clicks to sign out from email verification screen."}})]})})})};var z=!0;let Q=function(e){var r=e.user;return(0,_.FD)(_.FK,{children:[(0,_.Y)(i(),{children:(0,_.Y)("title",{children:"Newsela | Verify You Email"})}),(0,_.Y)(q,{user:r})]})}},16640:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(42969),i=t(46794),o=i.AAV.colors.ui,c=i.AAV.breakpoints.BreakpointNames.sm,a=i.Xm3.mediaQuery,s=(0,n.A)({margin:"initial",textAlign:"center",color:o.neutral[600],fontWeight:700,fontSize:24,lineHeight:1.3},a.downTo(c),{fontSize:32,lineHeight:1.25}
1),l=t(18153);let u=function(e){var r=e.children,t=e.__css;return(0,l.Y)("h1",{css:[s,t,"",""],children:r})}},25563:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(42969),i=t(46794),o=i.AAV.colors.ui,c=i.AAV.breakpoints.BreakpointNames.sm,a=i.Xm3.mediaQuery,s=(0,n.A)({textAlign:"center",color:o.neutral[600],fontWeight:700,fontSize:20,lineHeight:1.2},a.downTo(c),{fontSize:24,lineHeight:1.3}),l=t(18153);let u=function(e){var r=e.children,t=e.__css;return(0,l.Y)("span",{css:[t,s,"",""],children:r})}},25583:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(42969),i=t(40636),o=t(46794),c=t(45546),a=t(18153);function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}var l=(0,i.YH)(o.$nd);let u=function(e){var r=e.qaSelector,t=e.streamProperties,u=(0,c.Rt)().signOut;return(0,a.Y)(l,{onClick:function(){return u()},flavor:o.$nd.flavors.secondary,objectType:i.Bz.user,actionName:i.Bk.signOut,streamProperties:function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}({},t),dataProps:{"data-qa-selector":r},isFullWidth:!0,children:"Sign out from this account"})}},29221:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/registration/email-verification",function(){return t(10140)}])},46184:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(42969),i=t(46794),o=i.AAV.colors.ui,c=i.AAV.breakpoints.BreakpointNames.sm,a=i.Xm3.mediaQuery,s=(0,n.A)({display:"flex",flexDirection:"column",flexGrow:0,backgroundColor:o.white[100],borderRadius:16,padding:"32px 16px 16px",width:288},a.downTo(c),{width:480,padding:32}),l=t(18153);let u=function(e){var r=e.children;return(0,l.Y)("div",{css:s,children:r})}},55904:(e,r,t)=>{"use strict";t.d(r,{A:()=>m});var n=t(42969),i=t(46794),o=t(48230),c=t.n(o),a=i.AAV.colors.ui,s=i.AAV.breakpoints.BreakpointNames.md,l=i.Xm3.mediaQuery,u={header:{minHeight:64,border:"none",display:"flex",justifyContent:"center",alignItems:"center"},main:{backgroundColor:a.core[25]}},d={root:{"& > svg":{display:"none"}}},p=(0,n.A)({paddingTop:32,paddingBottom:56,display:"flex",flexDirection:"column",alignItems:"center"},l.downTo(s),{paddingBottom:96}),f=t(18153);function h(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function C(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?h(Object(t),!0).forEach(function(r){(0,n.A)(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}let m=function(e){var r=e.children;return(0,f.Y)(i.CAB,{__css:u,__renderUtilityNav:function(e,r){return(0,f.Y)(r,C(C({},e),{},{children:(0,f.Y)(c(),{href:"/",passHref:!0,legacyBehavior:!0,children:(0,f.Y)(i.MzZ,{dataProps:{"data-qa-selector":"logo"},ariaProps:{"aria-label":"Go to Newsela homepage"},children:(0,f.Y)(i.guG,{__cssFor:d,ariaProps:{"aria-hidden":!0}})})})}))},mainContents:(0,f.Y)("div",{css:p,children:r})})}},64239:(e,r,t)=>{"use strict";t.d(r,{A:()=>u});var n=t(42969),i=t(46794),o=i.AAV.colors.ui,c=i.AAV.breakpoints.BreakpointNames.sm,a=i.Xm3.mediaQuery,s=(0,n.A)({wordWrap:"break-word",color:o.neutral[600],textAlign:"center",fontWeight:400,fontSize:16,lineHeight:1.5},a.downTo(c),{lineHeight:1.2}),l=t(18153);let u=function(e){var r=e.children,t=e.__css,n=e.as;return(0,l.Y)(void 0===n?"span":n,{css:[t,s,"",""],children:r})}},64307:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var n=t(42969),i=t(46794),o=i.AAV.breakpoints.BreakpointNames.sm,c=i.Xm3.mediaQuery,a=(0,n.A)({marginInline:"auto",width:150},c.downTo(o),{width:200}),s=t(18153);let l=function(e){var r=e.children,t=e.__css;return(0,s.Y)("div",{css:[t,a,"",""],children:r})}},82495:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});var n=t(59860),i=t(14232),o=t(10572),c=t(24115),a=["id"];let s=function(e){var r=(0,i.useCallback)(function(r){var t=r.id,i=void 0===t?e:t,c=(0,n.A)(r,a);
1return new Request("".concat(o.JR,"/api/v2/user/").concat(i?i+"/":""),{method:"POST",body:JSON.stringify(c),headers:{"Content-Type":"application/json"}})},[]);return(0,c.A)(r)}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=29221)),_N_E=e.O()}]);
2//# sourceMappingURL=email-verification-431feec4a900f9d0.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.