PageSourceSearch

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

js nypost.com collected 2026-09-24 07:34:17 UTC 2,986 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[125],{125:function(e,n,t){t.r(n),t.d(n,{CvvOnlyV2:function(){return p}});var o=t(1085),r=t(4041),s=t(3373),i=t.n(s),c=t(7309),u=t(7093),l=t(3486),a=t(4120),d=t(7682),f=t(4574),v=t(8188),y=function(e,n,t,o){return new(t||(t=Promise))(function(r,s){function i(e){try{u(o.next(e))}catch(e){s(e)}}function c(e){try{u(o.throw(e))}catch(e){s(e)}}function u(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(i,c)}u((o=o.apply(e,n||[])).next())})};const p=({onCancel:e=null,onSubmitSuccess:n=null,onSubmitError:t=null})=>{const[s,p]=(0,r.useState)(!1),[b,m]=(0,r.useState)(null),[h,x]=(0,r.useState)(null),C=(0,r.useRef)(!1),_=`bt-cvv-${(0,r.useId)().replace(/:/g,"")}`,{execute:S,ReCAPTCHA:j}=(0,a.Vq)(),E=(0,r.useMemo)(()=>({cvv:{selector:`#${_}`,placeholder:(0,c.__)("CVV","nypost")}}),[_]),{isReady:w,error:F,tokenize:k,on:g}=(0,a.cU)({authorization:s||"",fields:E,styles:v.nO}),I=(0,r.useCallback)(e=>{var n,t;if("code"in e)switch(e.code){case"HOSTED_FIELDS_FIELDS_EMPTY":return l.y.allFormFields();case"HOSTED_FIELDS_FIELDS_INVALID":{const o=(null!==(t=null===(n=e.details)||void 0===n?void 0:n.invalidFieldKeys)&&void 0!==t?t:[]).map(e=>v.KQ[e]||e);return l.y.invalidCreditCardFormFields(o)}default:return e.message||l.y.unknownError()}return e.message||l.y.unknownError()},[]),N=(0,r.useMemo)(()=>F?I(F):h,[F,h,I]);(0,r.useEffect)(()=>{y(void 0,void 0,void 0,function*(){const e=yield(0,u.gf)();p(e)})},[]),(0,r.useEffect)(()=>{w&&(g("focus",e=>{m(e.emittedBy),x(null)}),g("blur",()=>{m(null)}))},[w,g]);const D=()=>e&&"function"==typeof e;return(0,o.jsx)("div",{className:"braintree-form-container",children:s?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(o.Fragment,{children:[N?(0,o.jsx)(f.f,{message:N}):null,(0,o.jsx)(j,{}),(0,o.jsx)("div",{className:"braintree-form cvvonlyv2",children:(0,o.jsx)("div",{className:"input-wrapper",children:(0,o.jsx)("div",{id:_,className:i()("braintree-hosted-field",{focused:b===v.yr.CVV,"input-error":N})})})})]}),(0,o.jsxs)("div",{className:i()({footer:!0,"footer--with-cancel":D(),"footer--full-width-buttons":!D()}),children:[(0,o.jsx)("button",{className:"button button--solid button--solid--alt","data-testid":"restart-subscription-button",type:"button",onClick:()=>y(void 0,void 0,void 0,function*(){if(!C.current){try{yield S()}catch(e){return void x(e.message||"reCAPTCHA validation failed")}try{const{nonce:e}=yield k();n&&"function"==typeof n&&!C.current&&(n({nonce:e}),C.current=!0)}catch(e){const n=I(e);x(n),t&&"function"==typeof t&&t({error:n})}}}),disabled:!w,children:(0,c.__)("Restart Your Subscription","nypost")}),D()?(0,o.jsx)("button",{className:"button button--secondary","data-testid":"cancel-restart-subscription-button",onClick:e,type:"button",children:(0,c.__)("Cancel","nypost")}):null]})]}):(0,o.jsx)(d.Ip,{height:"75px"})})}}}]);
2//# sourceMappingURL=125.f6d5c2409501bf8efbe5.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.