PageSourceSearch

https://nypost.com/wp-content/plugins/nyp-membership/build/4139.cdcc224fda4a812adf37.bundle.min.js

js nypost.com collected 2026-09-24 07:34:53 UTC 3,541 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[4139,9887],{9887:function(e,n,t){t.r(n),t.d(n,{Modal:function(){return u}});var o=t(1085),s=t(4041),a=t(7309),l=t(3373),i=t.n(l),r=t(9882),c=t(7682),d=t(4120);const u=({children:e,isOpen:n=!0,modalClass:t="",modalName:l="",disableOutsideClick:u=!1,onClose:m=()=>null})=>{const p=(0,s.useRef)(),[b,h]=(0,s.useState)(!1);if((0,s.useEffect)(()=>h(n),[n]),(0,d.jz)(p,()=>{u||m&&n&&m()}),(0,r.Q)({"membership-modal-open":b}),!e)return null;if(!b)return null;const _=()=>{window.location.search.includes("welcome=true")&&(window.history.replaceState({},document.title,window.location.pathname),window.location.reload()),h(!b),m&&"function"==typeof m&&m()},f=l?{"aria-label":l}:{"aria-labelledby":"modal-title"};return(0,o.jsx)(c.ZL,{portalRoot:document.body,children:(0,o.jsx)("div",{className:"membership-modal-overlay",children:(0,o.jsxs)("div",Object.assign({"aria-hidden":!b,"aria-modal":"true"},f,{className:i()("membership-modal",t),"data-testid":"membership-modal",ref:p,role:"dialog",children:[(0,o.jsx)(()=>(0,o.jsxs)("span",{className:"membership-modal__close","data-testid":"closeButton",role:"button",onClick:_,onKeyDown:_,tabIndex:0,"data-ga4-event":JSON.stringify({event_name:"ux_engagement",source_unit:"onboarding",event_action:`${l}_close`}),children:[(0,o.jsx)("span",{className:"icon close-button-black"}),(0,o.jsx)("span",{className:"screen-reader-text",children:(0,a.__)("Close modal","nypost")})]}),{}),(0,o.jsx)("div",{className:"membership-modal__content",children:e})]}))})})}},2662:function(e,n,t){t.d(n,{l:function(){return c}});var o=t(1085),s=t(8690),a=t(9089),l=t(1903),i=t(8357),r=t(9887);const c=({children:e,modalName:n="",disableOutsideClick:t=!1,onClose:c=()=>null})=>{const d=(0,s.Zp)(),{state:{redirect:u}}=(0,i.r)();return(0,o.jsx)(a.L,{children:(0,o.jsx)(r.Modal,{onClose:()=>{(0,l.A)()?window.location.href=u&&"/account/subscribe"!==u?u:"/sports-plus/":d("/"),c()},modalName:n,disableOutsideClick:t,children:e})})}},4139:function(e,n,t){t.r(n),t.d(n,{WelcomeModal:function(){return m}});var o=t(1085),s=t(7309),a=t(3657),l=t(2662),i=t(7682),r=t(4120),c=t(7093),d=t(7661),u=t(8188);const m=()=>{const{state:e,dispatch:n}=(0,r.rR)();let{redirect:t}=e;t||(t="/sports-plus/"),t.includes("/account")&&(t="/sports-plus/");let m="Continue reading article >",p="continue_reading_article";return"/sports-plus/"!==t&&t!==u.Li||(m="Go to Sports+",p="go_to_sports_plus"),(0,d.nA)(e)&&t?(window.location.href=t,null):(0,o.jsx)(l.l,{modalName:"set_preference",disableOutsideClick:!0,onClose:()=>{(0,c.r7)({onboarded:!0}),n((0,d.Uu)({onboarded:!0}))},children:(0,o.jsxs)(i.t8,{isModal:!0,innerContainerStyles:{background:"none",paddingTop:0},children:[(0,o.jsx)("h2",{className:"t-center",children:(0,s.__)("Welcome, you now have full access to sports content.","nypost")}),(0,o.jsx)(a.N_,{to:"/account/onboarding/newsletters",type:"button",className:"button button--solid button--set-preferences","data-ga4-event":JSON.stringify({event_name:"ux_engagement",source_unit:"onboarding",event_action:"set_preference"}),children:(0,s.__)("CUSTOMIZE SUBSCRIPTION","nypost")}),(0,o.jsx)("button",{type:"button",onClick:()=>{(0,c.r7)({onboarded:!0}),n((0,d.Uu)({onboarded:!0})),window.location.href=t},className:"continue-reading","data-ga4-event":JSON.stringify({event_name:"ux_engagement",source_unit:"onboarding",event_action:p}),children:(0,s.__)(m,"nypost")})]})})}}}]);
2//# sourceMappingURL=4139.cdcc224fda4a812adf37.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.