PageSourceSearch

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

js nypost.com collected 2026-09-24 07:34:19 UTC 1,795 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[593],{593:function(e,o,n){n.r(o),n.d(o,{PrivateProfileForm:function(){return g}});var t=n(1085),s=n(4041),r=n(7309),i=n(3373),a=n.n(i),c=n(9067),l=n.n(c),f=n(4120),h=n(7093),p=n(7661);const u=({state:e,onToggle:o})=>(0,t.jsx)("div",{className:a()("on-off-toggle",e&&"on-off-toggle--on"),children:(0,t.jsxs)("label",{className:"on-off-toggle__label",htmlFor:"on-off-toggle__checkbox",children:[(0,t.jsx)("input",{name:"on-off-toggle__checkbox",id:"on-off-toggle__checkbox",type:"checkbox",checked:e,onChange:o}),(0,t.jsxs)("div",{className:"on-off-toggle__text",children:[(0,t.jsx)("span",{className:"off",children:(0,r.__)("Off","nypost")}),(0,t.jsx)("span",{className:"on",children:(0,r.__)("On","nypost")})]}),(0,t.jsx)("div",{className:"on-off-toggle__switch"})]})});u.propTypes={state:l().bool.isRequired,onToggle:l().func.isRequired};const g=()=>{const{state:e,dispatch:o}=(0,f.rR)(),[n,i]=(0,s.useState)(""),{user:{profile:{privateProfile:a=!1}={}}={}}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u,{state:a,onToggle:()=>{return e=void 0,n=void 0,s=function*(){(yield(0,h.r7)({privateProfile:!a}))?(o((0,p.Uu)({privateProfile:!a})),i("")):i((0,r.__)("Sorry, there was an error updating the visibility of your profile.","nypost"))},new((t=void 0)||(t=Promise))(function(o,r){function i(e){try{c(s.next(e))}catch(e){r(e)}}function a(e){try{c(s.throw(e))}catch(e){r(e)}}function c(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(i,a)}c((s=s.apply(e,n||[])).next())});var e,n,t,s}}),""!==n&&(0,t.jsx)("div",{role:"alert",className:"error test",children:(0,t.jsx)("span",{children:n})})]})}}}]);
2//# sourceMappingURL=593.f2ef098cc36876eefe0f.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.