PageSourceSearch

https://pagesix.com/wp-content/plugins/nyp-membership/build/8233.f352bd9b78abedc216fe.bundle.min.js

js pagesix.com collected 2026-09-24 08:27:41 UTC 6,263 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[8233],{24:function(e,t,s){t.A=()=>window.location.pathname.startsWith("/account/"),s.dn(t.A)},8233:function(e,t,s){s.r(t),s.d(t,{default:function(){return g}});var i=s(1085),n=s(4041),o=s(9067),l=s.n(o),a=s(7309),r=s(3373),c=s.n(r),m=s(1668),h=s(4120),u=s(99),x=s(7682),d=s(8188);const p=e=>window.location.pathname===e,w=(e="")=>c()({"nav-item":!0,active:p(`/account/${e}`)});function g({loadView:e=()=>!1}){const t=(0,n.useRef)(null),s=(0,n.useRef)(null),{isNypost:o}=(0,h.lr)(),l=o?"https://nypost.com/customer-service/":"https://pagesix.com/customer-service/",r="ca"===(0,h.Ep)()?"https://subscribe.californiapost.com":"https://subscribe.nypost.com";return(0,n.useEffect)(()=>{(()=>{const e=t.current;if(!e)return;const i=s.current.querySelector(".link--button"),n=e.querySelector(".active");window.innerWidth<=989&&e&&i&&(e.classList.remove("open"),i.classList.remove("subnav-open")),window.innerWidth>=990&&n&&e&&i&&(e.classList.add("open"),i.classList.add("subnav-open"))})()},[]),(0,i.jsxs)("div",{className:"membership-menu",children:[(0,i.jsxs)("ul",{className:"membership-menu__nav membership-menu__nav--account",children:[(0,i.jsx)("li",{className:w("settings"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Profile","nypost"),linkTo:"settings",iconRight:"arrow-right",mobileNextView:"profile"})},"profile"),(0,i.jsx)("li",{className:w("settings/display"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Community Settings","nypost"),linkTo:"settings/display",iconRight:"arrow-right",mobileNextView:"display"})},"display"),(0,i.jsx)("li",{className:c()(["nav-item",{"has-subnav":d.BJ,[w("settings/newsletters")]:!d.BJ}]),ref:s,children:d.BJ&&o?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Emails","nypost"),linkTo:"",iconRight:"arrow-right",mobileNextView:"",hasSubNav:!0,onClick:e=>{const t=e.target.nextSibling;t.classList.contains("membership-menu__sub-nav")&&(e.target.classList.toggle("subnav-open"),t.classList.toggle("open"))}}),(0,i.jsxs)("ul",{className:"membership-menu__sub-nav",ref:t,children:[(0,i.jsx)(x.UY,{children:(0,i.jsx)("li",{className:w("settings/exclusive-newsletters"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Post Sports+ Exclusives","nypost"),linkTo:"settings/exclusive-newsletters",iconRight:"arrow-right",mobileNextView:"exclusive-newsletters"})},"exclusive-newsletter")}),(0,i.jsx)("li",{className:w("settings/newsletters"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("New York Post Newsletters","nypost"),linkTo:"settings/newsletters",iconRight:"arrow-right",mobileNextView:"newsletters"})},"newsletter")]})]}):(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Newsletters","nypost"),linkTo:"settings/newsletters",iconRight:"arrow-right",mobileNextView:"newsletters"})},"emails"),(0,i.jsxs)(x.Y_,{children:[(0,i.jsx)(x.UY,{children:(0,i.jsx)("li",{className:w("settings/texts"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Texts","nypost"),linkTo:"settings/texts",iconRight:"arrow-right",mobileNextView:"texts"})},"texts")}),d.BJ&&d.Ku&&(0,i.jsx)("li",{id:"subscription-menu-item",className:w("settings/subscription"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Subscription Plan","nypost"),linkTo:"settings/subscription",iconRight:"arrow-right",mobileNextView:"membership"})},"membership"),(0,i.jsx)(x.Ie,{children:(0,i.jsx)("li",{className:w("settings/payment-method"),children:(0,i.jsx)(u.A,{loadView:e,text:(0,a.__)("Payment Method","nypost"),linkTo:"settings/payment-method",iconRight:"arrow-right",mobileNextView:"payment-method"})},"payment-method")})]})]}),(0,i.jsx)("hr",{}),(0,i.jsx)("ul",{className:"membership-menu__nav",children:(0,i.jsx)("li",{className:w("settings/community"),children:(0,i.jsx)(u.A,{onClick:()=>(0,m.oV)({},m.vw),text:(0,a.__)("Activity","nypost"),iconLeft:"community",iconRight:"arrow-right"})},"community")}),(0,i.jsx)("hr",{}),(0,i.jsxs)(x.uu,{children:[(0,i.jsx)("ul",{className:"membership-menu__nav",children:(0,i.jsx)("li",{className:w(),children:(0,i.jsx)(u.A,{external:!0,loadView:e,text:(0,a.__)("Home Delivery","nypost"),linkTo:r,iconLeft:"home-delivery",iconRight:"arrow-right"})},"home-delivery")}),(0,i.jsx)("hr",{})]}),(0,i.jsx)("ul",{className:"membership-menu__nav",children:(0,i.jsx)("li",{className:w(),children:(0,i.jsx)(u.A,{external:!0,loadView:e,text:(0,a.__)("Help","nypost"),linkTo:l,iconLeft:"help",iconRight:"arrow-right"})},"help")})]})}g.propTypes={loadView:l().func}},99:function(e,t,s){var i=s(1085),n=(s(4041),s(9067)),o=s.n(n),l=s(3657),a=s(8690),r=s(2122),c=s(24),m=s(4120),h=s(3127);const u=({external:e=!1,hasSubNav:t=!1,linkTo:s="",loadView:n=()=>null,iconLeft:u="",iconRight:x="",mobileNextView:d="",onClick:p=null,text:w})=>{const{dispatch:g}=(0,m.QW)(),b=(0,a.zy)(),_=(0,i.jsx)("span",{className:`icon icon--left icon-${u}`}),j=(0,i.jsx)("span",{className:`icon icon--right icon-${x}`}),v=()=>{const{pathname:e}=b,t=new RegExp(`/account/${s}/?$`);return!!e.match(t)},y=()=>{g((0,h.k5)("")),g((0,h.zE)(""))},N=({children:n})=>p||t?(0,i.jsx)("button",{onClick:p,type:"button",className:"nav-item__link link--button","data-subnav":t,children:n}):e||!(0,c.A)()?(0,i.jsx)("a",{href:s,className:"nav-item__link",children:n}):(0,i.jsx)(l.N_,{className:"nav-item__link","data-to":`/account/${s}`,onClick:y,style:{pointerEvents:v()?"none":"auto"},to:`/account/${s}`,children:n});return N.propTypes={children:o().any.isRequired},(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.A,{queries:{mobile:"(max-width: 989px)"},render:()=>(0,i.jsxs)("button",{className:"nav-item__link link--button","data-to":s,onClick:t=>(t=>{y(),p?p(t):e?window.location.href=s:n(1,`${d}`)})(t),type:"button","data-subnav":t,children:[u&&_,w,x&&j]})}),(0,i.jsx)(r.A,{queries:{desktop:"(min-width: 990px)"},render:()=>(0,i.jsxs)(N,{className:"nav-item__link","data-to":`/account/${s}`,to:`/account/${s}`,href:e?s:`/account/${s}`,hasSubNav:t,children:[u&&_,w,x&&j]})})]})};u.propTypes={external:o().bool,hasSubNav:o().bool,linkTo:o().string,text:o().string.isRequired,iconLeft:o().string,iconRight:o().string,loadView:o().func,mobileNextView:o().string,onClick:o().func},t.A=u}}
1]);
2//# sourceMappingURL=8233.f352bd9b78abedc216fe.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.