PageSourceSearch

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

js pagesix.com collected 2026-10-01 08:34:35 UTC 8,203 bytes, 2 lines download raw bytes

1(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[3331],{7043:function(e,t,n){var i,o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\ud800-\\udfff",a="\\u0300-\\u036f\\ufe20-\\ufe23",c="\\u20d0-\\u20f0",u="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",f="\\ufe0e\\ufe0f",p="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",x="["+s+"]",m="["+p+"]",b="["+a+c+"]",h="\\d+",g="["+u+"]",y="["+l+"]",j="[^"+s+p+h+u+l+d+"]",v="\\ud83c[\\udffb-\\udfff]",_="[^"+s+"]",N="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",E="["+d+"]",O="\\u200d",k="(?:"+y+"|"+j+")",C="(?:"+E+"|"+j+")",R="(?:['’](?:d|ll|m|re|s|t|ve))?",L="(?:['’](?:D|LL|M|RE|S|T|VE))?",S="(?:"+b+"|"+v+")?",U="["+f+"]?",z=U+S+"(?:"+O+"(?:"+[_,N,A].join("|")+")"+U+S+")*",I="(?:"+[g,N,A].join("|")+")"+z,w="(?:"+[_+b+"?",b,N,A,x].join("|")+")",Z=RegExp("['’]","g"),T=RegExp(b,"g"),Y=RegExp(v+"(?="+v+")|"+w+z,"g"),$=RegExp([E+"?"+y+"+"+R+"(?="+[m,E,"$"].join("|")+")",C+"+"+L+"(?="+[m,E+k,"$"].join("|")+")",E+"?"+k+"+"+R,E+"+"+L,h,I].join("|"),"g"),M=RegExp("["+O+s+a+c+f+"]"),D=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,F="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,G="object"==typeof self&&self&&self.Object===Object&&self,P=F||G||Function("return this")(),V=(i={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==i?void 0:i[e]});function H(e){return M.test(e)}var J=Object.prototype.toString,q=P.Symbol,K=q?q.prototype:void 0,W=K?K.toString:void 0;function B(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==J.call(e)}(e))return W?W.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var Q,X=(Q=function(e,t,n){return t=t.toLowerCase(),e+(n?ee(B(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var i=-1,o=e?e.length:0;++i<o;)n=t(n,e[i],i,e);return n}(function(e,t){return e=B(e),void 0===t?function(e){return D.test(e)}(e)?function(e){return e.match($)||[]}(e):function(e){return e.match(o)||[]}(e):e.match(t)||[]}(function(e){return(e=B(e))&&e.replace(r,V).replace(T,"")}(e).replace(Z,"")),Q,"")}),ee=function(e){var t,n,i,o,r=H(e=B(e))?function(e){return H(e)?function(e){return e.match(Y)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,s=r?r[0]:e.charAt(0),a=r?(t=r,n=1,o=t.length,i=void 0===i?o:i,!n&&i>=o?t:function(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(o);++i<o;)r[i]=e[i+t];return r}(t,n,i)).join(""):e.slice(1);return s.toUpperCase()+a};e.exports=X},3331:function(e,t,n){"use strict";n.r(t),n.d(t,{EmailNotifications:function(){return g}});var i=n(1085),o=n(4041),r=n(7309),s=n(1924),a=n(6508),c=n(824),u=n(7043),l=n.n(u),d=n(7093),f=n(3486),p=n(7661),x=n(7682),m=n(7351);const b={"notification-mentioned":(0,r.__)("You're @mentioned in a post","nypost"),"notification-liked":(0,r.__)("Your post gets liked","nypost"),"notification-reply":(0,r.__)("Your post gets a reply","nypost")},h=()=>{const[e,t]=(0,o.useState)(!1),{state:n,dispatch:s}=(0,m.rR)(),{visible:u,setVisible:h}=(0,a.Yc)(),{user:{profile:g={}}={}}=n,{register:y,handleSubmit:j,setError:v,clearErrors:_,formState:{errors:N}}=(0,c.mN)({defaultValues:{notificationMentioned:g.notificationMentioned||!1,notificationLiked:g.notificationLiked||!1,notificationReply:g.notificationReply||!1}}),A=e?(0,r.__)("Loading...","nypost"):(0,r.__)("Update Notifications","nypost");return(0,i.jsxs)("form",{onSubmit:u?j(e=>{return n=void 0,i=void 0,r=function*(){_(),t(!0);const n={notificationMentioned:e.notificationMentioned||!1,notificationLiked:e.notificationLiked||!1,notificationReply:e.notificationReply||!1};(yield(0,d.r7)(n))?(s((0,p.Uu)(n)),h(!1)):v("zephr",{type:"zephr",message:f.y.updatingProfile()}),t(!1)},new((o=void 0)||(o=Promise))(function(e,t){function s(e){try{c(r.next(e))}catch(e){t(e)}}function a(e){try{c(r.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o(function(e){e(n)})).then(s,a)}c((r=r.apply(n,i||[])).next())});var n,i,o,r}):void 0,className:"member-display__form member-display__form--update-notifications",children:[(0,i.jsxs)("div",{className:"grid-container",children:[(0,i.jsx)("div",{className:"grid-col grid-col-8 grid-col-md-9 grid-col-lg-8",children:(0,i.jsx)("ul",{children:Object.keys(b).map(e=>(0,i.jsxs)("li",{children:[(0,i.jsx)("input",Object.assign({"data-testid":`checkbox-${l()(e)}`,disabled:u?"":"disabled",id:`notification-${e}
1`,name:l()(e)},y(l()(e)),{type:"checkbox"})),(0,i.jsx)("label",{"data-testid":`label-${l()(e)}`,htmlFor:`notification-${e}`,children:b[e]})]},e))})}),(0,i.jsx)("div",{className:"grid-col grid-col-2 grid-col-md-1 grid-col-lg-2",children:!1===u&&(0,i.jsx)("div",{className:"edit-button-container",children:(0,i.jsx)(a.lg,{})})})]}),!0===u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.dF,{errors:N}),(0,i.jsxs)("div",{className:"input-container input-container--submit",children:[(0,i.jsx)("button",{"data-testid":"notifications-save",className:"button button--solid button--solid--alt",type:"submit",disabled:e,children:A}),(0,i.jsx)("button",{className:"button button--secondary",onClick:()=>h(!1),type:"button",children:(0,r.__)("Cancel","nypost")})]})]})]})},g=()=>(0,i.jsx)(a.wn,{children:(0,i.jsxs)("section",{className:"member-display__section member-display__section--community-email",children:[(0,i.jsx)(s.A,{titleClasses:"member-display__heading sub-heading sub-heading--semi",title:(0,r.__)("Email Notification Preferences:","nypost")}),(0,i.jsx)("div",{className:"member-display__details",children:(0,i.jsx)(h,{})})]})})},1924:function(e,t,n){"use strict";var i=n(1085),o=(n(4041),n(9067)),r=n.n(o);const s=({headingTag:e="",title:t,children:n=null,titleClasses:o=""})=>{if(!t)return null;const r=e||"h4";return(0,i.jsxs)("header",{className:"member-section__header",children:[(0,i.jsx)(r,{className:o,children:t}),n&&(0,i.jsx)("div",{className:"member-section__description",children:n})]})};s.propTypes={children:r().node,headingTag:r().string,title:r().string.isRequired,titleClasses:r().string},t.A=s}}]);
2//# sourceMappingURL=3331.b4a8de22f7060319aab6.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.