PageSourceSearch

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

js pagesix.com collected 2026-10-01 08:36:28 UTC 4,275 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[6634],{24:function(e,n,t){n.A=()=>window.location.pathname.startsWith("/account/"),t.dn(n.A)},6634:function(e,n,t){t.r(n),t.d(n,{DropdownMenuView:function(){return j}});var s=t(1085),i=(t(4041),t(9067)),a=t.n(i),o=t(7309),c=t(7682),l=t(1804),r=t(7351),u=t(1548),d=t(8862);const h=()=>{const{state:{availablePlans:e=[],data:{subscriptionStatus:n}={}}={}}=(0,r.QW)(),t=(0,r.pB)(),i=(0,r.ZQ)(),{hasTrial:a=!1}=(0,r.ow)()||{};return e.length?(0,d.gD)(n)?null:(0,s.jsx)("div",{className:"cta cta--sports-plus","data-testid":"sports-plus-cta",children:(0,s.jsx)(u.O,{href:t||i?"/account/subscribe":"/account/settings",children:(0,s.jsxs)("div",{className:"cta__content",children:[(0,s.jsx)(l.g,{showNew:!1,displayInline:!0}),(0,s.jsxs)("div",{className:"cta__offer",children:[i&&a?(0,s.jsx)("span",{className:"widget__text widget__text--arrow",children:(0,o.__)("Try it free","nypost")}):"",t||i&&!a?(0,s.jsx)("span",{className:"widget__text widget__text--arrow",children:(0,o.__)("Subscribe","nypost")}):""]})]})})}):null};var p=t(7661),m=t(2122),x=t(24),_=t(99);const b=({loadView:e})=>(0,s.jsxs)("ul",{className:"membership-menu__nav",children:[(0,s.jsxs)("li",{className:"nav-item",children:[(0,s.jsx)(m.A,{queries:{mobile:"(max-width: 989px)"},render:()=>(0,s.jsx)(_.A,{iconLeft:"gear",iconRight:"arrow-right-black",loadView:e,linkTo:"sidebar",text:(0,o.__)("Account Settings","nypost"),mobileNextView:"sidebarmenu"})}),(0,s.jsx)(m.A,{queries:{desktop:"(min-width: 990px)"},render:()=>(0,s.jsx)(_.A,{iconLeft:"gear",iconRight:"arrow-right-black",loadView:e,linkTo:(0,x.A)()?"settings":"/account/settings",text:(0,o.__)("Account Settings","nypost"),mobileNextView:"sidebarmenu"})})]}),(0,s.jsx)("li",{className:"nav-item",children:(0,s.jsx)(_.A,{external:!0,iconLeft:"help",iconRight:"arrow-right-black",linkTo:"https://nypost.com/customer-service/",text:(0,o.__)("Help","nypost")})})]});b.propTypes={loadView:a().func.isRequired};var w=b,g=t(3065);const j=({loadView:e=()=>null})=>{const{state:n}=(0,r.rR)(),{user:{profile:{fullName:t=""}={}}={}}=n,i=(0,p.Sh)(n);return(0,s.jsxs)("div",{className:"membership-menu membership-menu--dropdown",children:[(0,s.jsx)("h2",{className:"membership-menu__greeting sub-heading",children:t?(0,o.nv)((0,o.__)("Hello, %s!","nypost"),t):(0,o.__)("Hello!","nypost")}),(0,s.jsx)(w,{loadView:e}),(0,s.jsx)(c.uu,{children:(0,s.jsx)(h,{})}),(0,s.jsx)(g.Mu,{loggedIn:i})]})};j.propTypes={loadView:a().func}},99:function(e,n,t){var s=t(1085),i=(t(4041),t(9067)),a=t.n(i),o=t(3657),c=t(8690),l=t(2122),r=t(24),u=t(7351),d=t(3127);const h=({external:e=!1,hasSubNav:n=!1,linkTo:t="",loadView:i=()=>null,iconLeft:h="",iconRight:p="",mobileNextView:m="",onClick:x=null,text:_})=>{const{dispatch:b}=(0,u.QW)(),w=(0,c.zy)(),g=(0,s.jsx)("span",{className:`icon icon--left icon-${h}`}),j=(0,s.jsx)("span",{className:`icon icon--right icon-${p}`}),k=()=>{const{pathname:e}=w,n=new RegExp(`/account/${t}/?$`);return!!e.match(n)},N=()=>{b((0,d.k5)("")),b((0,d.zE)(""))},f=({children:i})=>x||n?(0,s.jsx)("button",{onClick:x,type:"button",className:"nav-item__link link--button","data-subnav":n,children:i}):e||!(0,r.A)()?(0,s.jsx)("a",{href:t,className:"nav-item__link",children:i}):(0,s.jsx)(o.N_,{className:"nav-item__link","data-to":`/account/${t}`,onClick:N,style:{pointerEvents:k()?"none":"auto"},to:`/account/${t}`,children:i});return f.propTypes={children:a().any.isRequired},(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.A,{queries:{mobile:"(max-width: 989px)"},render:()=>(0,s.jsxs)("button",{className:"nav-item__link link--button","data-to":t,onClick:n=>(n=>{N(),x?x(n):e?window.location.href=t:i(1,`${m}`)})(n),type:"button","data-subnav":n,children:[h&&g,_,p&&j]})}),(0,s.jsx)(l.A,{queries:{desktop:"(min-width: 990px)"},render:()=>(0,s.jsxs)(f,{className:"nav-item__link","data-to":`/account/${t}`,to:`/account/${t}`,href:e?t:`/account/${t}`,hasSubNav:n,children:[h&&g,_,p&&j]})})]})};h.propTypes={external:a().bool,hasSubNav:a().bool,linkTo:a().string,text:a().string.isRequired,iconLeft:a().string,iconRight:a().string,loadView:a().func,mobileNextView:a().string,onClick:a().func},n.A=h}}]);
2//# sourceMappingURL=6634.35438b8282825aefd42c.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.