PageSourceSearch

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

js nypost.com collected 2026-10-01 07:54:42 UTC 2,564 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[7050],{7050:function(n,e,t){t.r(e),t.d(e,{ExchangePasswordlessTokenPage:function(){return b}});var s=t(1085),o=t(4041),i=t(4685),l=t(8690),r=t(7309),a=t(3373),c=t.n(a),u=t(7351),d=t(7093),p=t(8188),h=t(2773),m=t(7661),g=t(2628);const b=()=>{(0,u.QD)("membership-minimal-header");const n=(0,l.Zp)(),e=(0,u.pE)(),t=e.get("token"),a=e.get("action")||"login",[b,y]=(0,o.useState)(!0),[f,_]=(0,o.useState)(null),[w,v]=(0,o.useState)(null),{state:x}=(0,u.rR)(),{pendingEmail:k="",user:{profile:{passwordless:j=!1}={}}={}}=x,C=(0,m.Sh)(x),E=(0,u.US)(),S=(0,u.Ml)();return(0,o.useEffect)(()=>{var e,s,o,i;t?(e=void 0,s=void 0,i=function*(){const{session_id:n=null,tracking_id:e=null,message:s="Unknown error"}=yield(0,d.CX)(t);n&&e&&(yield E(n,e)),_(s),y(!1)},new((o=void 0)||(o=Promise))(function(n,t){function l(n){try{a(i.next(n))}catch(n){t(n)}}function r(n){try{a(i.throw(n))}catch(n){t(n)}}function a(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o(function(n){n(t)})).then(l,r)}a((i=i.apply(e,s||[])).next())})):n("/account/login")},[t]),(0,o.useEffect)(()=>{if(C){"register"===a&&(0,g.A)(j?"passwordless_method":"email");let e=S;"register"!==a||S.startsWith("/account/subscribe")||S.startsWith("/account/appsubscribe")||(e=p.iF),e.startsWith("/account")?n(e,{replace:!0}):window.location.href=e}},[C]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.mg,{children:(0,s.jsx)("title",{children:(0,r.nv)((0,r.__)("Continue - %s","nypost"),p.yy)})}),(0,s.jsxs)("div",{className:"form-wrapper",children:[f&&!b?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"body body--md",children:(0,r.nv)((0,r.__)("There was an error logging you in: %1$s","nypost"),f)}),(0,s.jsx)("button",{type:"button",className:"button button--secondary button--full",onClick:()=>n("/account/login"),children:(0,r.__)("Continue to Login","nypost")}),k?(0,s.jsxs)("button",{type:"button",className:c()({"button--solid button--full":!0,disabled:"sending"===w}),onClick:()=>{k&&(v("sending"),(0,d.Rv)({email:k,action:"login",redirect:"/account/continue"}).then(()=>{v("sent"),setTimeout(()=>v(null),1e4)}).catch(()=>v("error")))},disabled:null!==w,children:["sending"===w?(0,r.__)("Sending...","nypost"):null,"sent"===w?(0,r.__)("Sent!","nypost"):null,"error"===w?(0,r.__)("Error sending passwordless email.","nypost"):null,null===w?(0,r.__)("Resend Email","nypost"):null]}):null]}):null,b?(0,s.jsx)(h.I,{}):null]})]})}}}]);
2//# sourceMappingURL=7050.97293055d61316db0fde.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.