1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[7302,9887],{4596:function(e,n,s){s.d(n,{I:function(){return m}});var t=s(1085),o=s(4041),l=s(3373),i=s.n(l),a=s(7309),r=s(4120),d=s(3811),c=s(7093);const m=({registration:e=!1})=>{const{state:n}=(0,r.rR)(),{pendingEmail:s=""}=n,[l,m]=(0,o.useState)(null);return(0,t.jsxs)("div",{className:"wrapper wrapper--border-top wrapper--thin",children:[(0,t.jsx)("h1",{className:"form-wrapper__heading headline headline--single",children:e?(0,a.__)("Thanks for registering!","nypost"):(0,a.__)("Check your email for the link","nypost")}),e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h2",{className:"form-wrapper__sub-heading sub-heading",children:(0,a.__)("Please verify your email.","nypost")}),(0,t.jsx)("p",{className:"body body--md m-bottom",children:(0,a.__)("Please verify your registration by clicking on the link sent to your email address. If you do not receive the email within the next 3 minutes, please check your spam or junk folder.","nypost")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.X,{tagName:"p",className:"body body--md m-bottom",html:(0,a.nv)((0,a.__)("Click on the %1$sone-time link%2$s in the email to automatically log you in. If you do not receive the email within the next 3 minutes, please check your spam or junk folder.","nypost"),"<strong>","</strong>")}),(0,t.jsx)("p",{className:"body body--md",children:(0,a.__)("Existing passwords still work.","nypost")})]}),window.location.hostname.endsWith(".test")?(0,t.jsxs)("p",{className:"body body--lg",children:[(0,t.jsx)("strong",{children:"Note to site developers:"}),(0,t.jsx)("br",{})," ","This passwordless authentication flow will not work on local environments because the cookie being set is against"," ",(0,t.jsx)("code",{children:"alley.ws"})," ","and not"," ",(0,t.jsx)("code",{children:"alley.test"}),"."]}):null,s?(0,t.jsxs)("button",{type:"button",className:i()("button button--secondary","m-bottom-half",{disabled:"sending"===l}),onClick:()=>{s&&(m("sending"),(0,c.Rv)({action:e?"register":"login",email:s,redirect:"/account"}).then(()=>{m("sent"),setTimeout(()=>m(null),1e4)}).catch(()=>m("error")))},disabled:null!==l,children:["sending"===l?(0,a.__)("Sending...","nypost"):null,"sent"===l?(0,a.__)("Sent!","nypost"):null,"error"===l?(0,a.__)("Error sending passwordless email.","nypost"):null,null===l?(0,a.__)("RESEND EMAIL","nypost"):null]}):null]})}},7302:function(e,n,s){s.r(n),s.d(n,{ContinuePasswordlessModal:function(){return i}});var t=s(1085),o=s(4596),l=s(2662);const i=({registration:e=!1})=>(0,t.jsx)(l.l,{children:(0,t.jsx)(o.I,{registration:e})})},9887:function(e,n,s){s.r(n),s.d(n,{Modal:function(){return m}});var t=s(1085),o=s(4041),l=s(7309),i=s(3373),a=s.n(i),r=s(9882),d=s(7682),c=s(4120);const m=({children:e,isOpen:n=!0,modalClass:s="",modalName:i="",disableOutsideClick:m=!1,onClose:u=()=>null})=>{const h=(0,o.useRef)(),[p,b]=(0,o.useState)(!1);if((0,o.useEffect)(()=>b(n),[n]),(0,c.jz)(h,()=>{m||u&&n&&u()}),(0,r.Q)({"membership-modal-open":p}),!e)return null;if(!p)return null;const y=()=>{window.location.search.includes("welcome=true")&&(window.history.replaceState({},document.title,window.location.pathname),window.location.reload()),b(!p),u&&"function"==typeof u&&u()},g=i?{"aria-label":i}:{"aria-labelledby":"modal-title"};return(0,t.jsx)(d.ZL,{portalRoot:document.body,children:(0,t.jsx)("div",{className:"membership-modal-overlay",children:(0,t.jsxs)("div",Object.assign({"aria-hidden":!p,"aria-modal":"true"},g,{className:a()("membership-modal",s),"data-testid":"membership-modal",ref:h,role:"dialog",children:[(0,t.jsx)(()=>(0,t.jsxs)("span",{className:"membership-modal__close","data-testid":"closeButton",role:"button",onClick:y,onKeyDown:y,tabIndex:0,"data-ga4-event":JSON.stringify({event_name:"ux_engagement",source_unit:"onboarding",event_action:`${i}_close`}),children:[(0,t.jsx)("span",{className:"icon close-button-black"}),(0,t.jsx)("span",{className:"screen-reader-text",children:(0,l.__)("Close modal","nypost")})]}),{}),(0,t.jsx)("div",{className:"membership-modal__content",children:e})]}))})})}},2662:function(e,n,s){s.d(n,{l:function(){return d}});var t=s(1085),o=s(8690),l=s(9089),i=s(1903),a=s(8357),r=s(9887);const d=({children:e,modalName:n="",disableOutsideClick:s=!1,onClose:d=()=>null})=>{const c=(0,o.Zp)(),{state:{redirect:m}}=(0,a.r)();return(0,t.jsx)(l.L,{children:(0,t.jsx)(r.Modal,{onClose:()=>{(0,i.A)()?window.location.href=m&&"/account/subscribe"!==m?m:"/sports-plus/":c("/"),d()},modalName:n,disableOutsideClick:s,children:e})})}}}]); 2//# sourceMappingURL=7302.dc099b0a2896c07ede59.bundle.min.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.