PageSourceSearch

https://www.virginactive.com.au/_next/static/chunks/pages/subscrip…/[token]-c19c7014a98a16c7.js

js virginactive.com.au collected 2026-10-04 00:27:40 UTC 7,912 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1807],{2338:e=>{e.exports={header:"RIMFrCZ",logoLink:"HCFyla0"}},10409:(e,s,r)=>{"use strict";r.d(s,{A:()=>i});var t=r(37876),a=r(33939),c=r(93150);let i=e=>{let{label:s,loadingLabel:r,className:i="","data-testid":n,loading:l,onClickHandler:d,disabled:o=!1}=e;return(0,t.jsx)(c.A,{priority:"primary",disabled:l||o,onClick:d,className:i,label:l?r:s,"data-testid":n,children:l&&(0,t.jsx)(a.A,{"data-testid":"async-button-spinner",as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"me-1"})})}},12371:(e,s,r)=>{"use strict";r.d(s,{A:()=>i});var t=r(37876),a=r(78195),c=r(10409);let i=e=>{let{label:s,loadingLabel:r,onClick:i,className:n="","data-testid":l,disabled:d=!1}=e,o=(0,a.Y)({onClick:i});return(0,t.jsx)(c.A,{label:s,loadingLabel:r,className:n,"data-testid":l,disabled:d,...o})}},14591:(e,s,r)=>{"use strict";r.d(s,{qK:()=>a}),r(55248),r(84467),r(76959);var t=r(14232);function a(){let e=(0,t.useRef)(!0),s=(0,t.useRef)(()=>e.current);return(0,t.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),s.current}r(52964),new WeakMap},21172:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>_,default:()=>P});var t=r(37876),a=r(77328),c=r.n(a),i=r(34846),n=r(14232),l=r(49589),d=r(56970),o=r(37784),f=r(91040),u=r(12371),p=r(21379),h=r(80569),m=r.n(h);let x=e=>{let{token:s}=e,{t:r}=(0,i.Bd)(["common","subscriptionUpgradeOffer"]),[a,c]=(0,n.useState)("loading"),[h,x]=(0,n.useState)(null),[g,j]=(0,n.useState)(""),[b,N]=(0,n.useState)(!1);(0,n.useEffect)(()=>{window.history.replaceState(null,"","/subscription-upgrade-offer"),(async()=>{try{let e=await f.A.get("/api/subscription-upgrade-offer/".concat(s));x(e.data),c(e.data.alreadyAccepted?"alreadyAccepted":"offer")}catch(e){c("dead")}
1})()},[]);let A=async()=>{j("");try{await f.A.post("/api/subscription-upgrade-offer/".concat(s,"/accept")),c("acceptSuccess")}catch(t){var e;let s=null==(e=t.response)?void 0:e.status;if(404===s||410===s)return void c("dead");j(r("subscriptionUpgradeOffer:errors.acceptFailed"))}};if("loading"===a)return(0,t.jsx)(l.A,{className:m().container,children:(0,t.jsx)(d.A,{className:"justify-content-center ".concat(m().fullWidthRow),children:(0,t.jsx)(o.A,{xs:12,md:10,lg:8,children:(0,t.jsx)("p",{className:m().loadingText,children:r("subscriptionUpgradeOffer:loading.message")})})})});if("dead"===a)return(0,t.jsx)(l.A,{className:m().container,children:(0,t.jsx)(d.A,{className:"justify-content-center ".concat(m().fullWidthRow),children:(0,t.jsx)(o.A,{xs:12,md:10,lg:8,children:(0,t.jsxs)("div",{className:m().form,children:[(0,t.jsx)("h1",{className:m().title,children:r("subscriptionUpgradeOffer:dead.title")}),(0,t.jsx)("p",{className:m().subtitle,children:r("subscriptionUpgradeOffer:dead.message")})]})})})});let k=(null==h?void 0:h.memberName)?h.memberName.trim().split(/\s+/)[0]:r("subscriptionUpgradeOffer:offer.fallbackName");if("alreadyAccepted"===a)return(0,t.jsx)(l.A,{className:m().container,children:(0,t.jsx)(d.A,{className:"justify-content-center ".concat(m().fullWidthRow),children:(0,t.jsx)(o.A,{xs:12,md:10,lg:8,children:(0,t.jsxs)("div",{className:m().successMessage,children:[(0,t.jsx)("h2",{children:r("subscriptionUpgradeOffer:alreadyAccepted.title")}),(0,t.jsx)("p",{children:r("subscriptionUpgradeOffer:alreadyAccepted.message",{name:k})})]})})})});if("acceptSuccess"===a)return(0,t.jsx)(l.A,{className:m().container,children:(0,t.jsx)(d.A,{className:"justify-content-center ".concat(m().fullWidthRow),children:(0,t.jsx)(o.A,{xs:12,md:10,lg:8,children:(0,t.jsxs)("div",{className:m().successMessage,children:[(0,t.jsx)("h2",{children:r("subscriptionUpgradeOffer:success.title")}),(0,t.jsx)("p",{children:r("subscriptionUpgradeOffer:success.message",{name:k})})]})})})});let O=(null==h?void 0:h.currentProductName)||r("subscriptionUpgradeOffer:offer.fallbackProduct");return(0,t.jsx)(l.A,{className:m().container,children:(0,t.jsx)(d.A,{className:"justify-content-center ".concat(m().fullWidthRow),children:(0,t.jsx)(o.A,{xs:12,md:10,lg:8,children:(0,t.jsxs)("div",{className:m().form,children:[(0,t.jsx)("h1",{className:m().title,children:r("subscriptionUpgradeOffer:offer.title")}),(0,t.jsx)("p",{className:m().subtitle,children:r("subscriptionUpgradeOffer:offer.greeting",{name:k})}),(0,t.jsxs)("dl",{className:m().summaryList,children:[(0,t.jsx)("dt",{children:r("subscriptionUpgradeOffer:offer.currentPlan")}),(0,t.jsx)("dd",{children:O}),(null==h?void 0:h.currentPricePerWeek)!=null&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{children:r("subscriptionUpgradeOffer:offer.priceLabel")}),(0,t.jsxs)("dd",{children:[(0,p.S9)(h.currentPricePerWeek/2),r("subscriptionUpgradeOffer:offer.perWeek")]})]}),(null==h?void 0:h.newPricePerWeek)!=null&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("dt",{children:r("subscriptionUpgradeOffer:offer.newPriceLabel")}),(0,t.jsxs)("dd",{children:[(0,p.S9)(h.newPricePerWeek),r("subscriptionUpgradeOffer:offer.perWeek")]})]})]}),(0,t.jsx)("p",{className:m().lockInMessage,children:r("subscriptionUpgradeOffer:offer.lockInMessage")}),(0,t.jsx)("p",{className:m().detailsText,children:r("subscriptionUpgradeOffer:offer.detailsText")}),(0,t.jsx)("div",{className:m().termsCheckboxRow,children:(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{type:"checkbox",checked:b,onChange:e=>N(e.target.checked),"data-testid":"subscription-upgrade-offer-terms-checkbox"})," ",r("subscriptionUpgradeOffer:offer.termsCheckboxLabel")]})}),g&&(0,t.jsx)("p",{className:m().apiError,children:g}),(0,t.jsx)(u.A,{label:g?r("subscriptionUpgradeOffer:offer.retryAccept"):r("subscriptionUpgradeOffer:offer.accept"),loadingLabel:r("subscriptionUpgradeOffer:offer.accepting"),onClick:A,className:m().submitButton,"data-testid":"subscription-upgrade-offer-accept-button",disabled:!b})]})})})})};var g=r(54587),j=r.n(g),b=r(48230),N=r.n(b),A=r(80081),k=r(39136),O=r(2338),y=r.n(O);let w=()=>(0,t.jsx)("header",{className:y().header,children:(0,t.jsx)(N(),{href:k.Z.homepage(),className:y().logoLink,children:(0,t.jsx)(j(),{src:A.A,width:88,height:42,alt:"
1Virgin Active Home",unoptimized:!0})})});var v=r(14576),U=r(22154),_=!0;let P=e=>{let{token:s}=e,{t:r}=(0,i.Bd)(["footer"]),a=(0,U.zj)().region;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(c(),{children:[(0,t.jsx)("title",{children:"Subscription Upgrade Offer - Virgin Active"}),(0,t.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,t.jsx)(w,{}),(0,t.jsx)(x,{token:s}),(0,t.jsx)(v.A,{region:a,t:r})]})}},21379:(e,s,r)=>{"use strict";r.d(s,{S9:()=>n,Wi:()=>i});var t=r(22154);let a=e=>e%1==0,c=()=>{let e=(0,t.zj)().region;return"thailand"===e?"฿":"unitedKingdom"===e?"\xa3":"$"},i=e=>"".concat(c()).concat(a(e)?e:e.toFixed(2)),n=e=>"".concat(c()).concat(e.toFixed(2))},24834:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscription-upgrade-offer/[token]",function(){return r(21172)}])},33939:(e,s,r)=>{"use strict";r.d(s,{A:()=>d});var t=r(15039),a=r.n(t),c=r(14232),i=r(77346),n=r(37876);let l=c.forwardRef((e,s)=>{let{bsPrefix:r,variant:t,animation:c="border",size:l,as:d="div",className:o,...f}=e;r=(0,i.oU)(r,"spinner");let u="".concat(r,"-").concat(c);return(0,n.jsx)(d,{ref:s,...f,className:a()(o,u,l&&"".concat(u,"-").concat(l),t&&"text-".concat(t))})});l.displayName="Spinner";let d=l},78195:(e,s,r)=>{"use strict";r.d(s,{Y:()=>c});var t=r(14591),a=r(14232);let c=e=>{let{onClick:s}=e,r=(0,t.qK)(),[c,i]=(0,a.useState)(!1),n=async()=>{i(!0);try{await s()}finally{r()&&i(!1)}};return{loading:c,onClickHandler:()=>{n()}}}},80569:e=>{e.exports={container:"Xk8wPlH",fullWidthRow:"fdaNIfj",form:"kYMBpWq",title:"eenLkhL",subtitle:"__0NnMr3t",summaryList:"W6uPgmP",lockInMessage:"__8qzpQfH",detailsText:"__6j_bQvi",termsCheckboxRow:"lnn3O9O",submitButton:"O9ERNYz",apiError:"eeyaP1R",loadingText:"D63iTWm",successMessage:"Fpn0OYl"}}},e=>{var s=s=>e(e.s=s);e.O(0,[1040,636,6593,8792],()=>s(24834)),_N_E=e.O()}]);

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.