PageSourceSearch

https://www.virginactive.com.au/_next/static/chunks/pages/virginactivelite/recommit-fd688c5044b0d659.js

js virginactive.com.au collected 2026-09-25 20:49:14 UTC 7,876 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2716],{5916:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/virginactivelite/recommit",function(){return r(46059)}])},8762:e=>{e.exports={p3:"Hu5yuK4",p3Book:"lQbU3us"}},10409:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876),n=r(33939),s=r(93150);let i=e=>{let{label:t,loadingLabel:r,className:i="","data-testid":c,loading:l,onClickHandler:o,disabled:d=!1}=e;return(0,a.jsx)(s.A,{priority:"primary",disabled:l||d,onClick:o,className:i,label:l?r:t,"data-testid":c,children:l&&(0,a.jsx)(n.A,{"data-testid":"async-button-spinner",as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"me-1"})})}},12371:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876),n=r(78195),s=r(10409);let i=e=>{let{label:t,loadingLabel:r,onClick:i,className:c="","data-testid":l,disabled:o=!1}=e,d=(0,n.Y)({onClick:i});return(0,a.jsx)(s.A,{label:t,loadingLabel:r,className:c,"data-testid":l,disabled:o,...d})}},14591:(e,t,r)=>{"use strict";r.d(t,{qK:()=>n}),r(55248),r(84467),r(76959);var a=r(14232);function n(){let e=(0,a.useRef)(!0),t=(0,a.useRef)(()=>e.current);return(0,a.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}r(52964),new WeakMap},23309:e=>{e.exports={wrapper:"JlDz90W",heading:"_U87wM4",intro:"cCivL_o",grid:"DGQRkeG",option:"DdDDHnX",badge:"f4OGkHt",optionName:"UwFEAyI",price:"lghhjfm",description:"Q_lriv_",features:"exDaZFw",promotion:"__3duTmtX",selectBtn:"mxcuANq",confirmName:"sg93h0U",terms:"l9hNnXq",cancelBtn:"XvERxQ7",error:"yKD2PNw",card:"O8Jyzc6",icon:"xujuZQl",title:"ZUXmA1R",message:"__6CQdq_i",cta:"IPR43_C",confirmBtn:"YXGrQUm"}},26856:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(37876);r(14232);var n=r(8762),s=r.n(n);let i=e=>{let{children:t,className:r}=e;return(0,a.jsx)("p",{className:"".concat(s().p3," ").concat(r||""),children:t})}},33939:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(15039),n=r.n(a),s=r(14232),i=r(77346),c=r(37876);let l=s.forwardRef((e,t)=>{let{bsPrefix:r,variant:a,animation:s="border",size:l,as:o="div",className:d,...m}=e;r=(0,i.oU)(r,"spinner");let u="".concat(r,"-").concat(s);return(0,c.jsx)(o,{ref:t,...m,className:n()(d,u,l&&"".concat(u,"-").concat(l),a&&"text-".concat(a))})});l.displayName="Spinner";let o=l},46059:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>f,default:()=>y});var a=r(37876),n=r(14232),s=r(97373),i=r(34846),c=r(40462),l=r(23309),o=r.n(l),d=r(12371),m=r(26856),u=r(17958),p=r(38557);let h=e=>{let{options:t}=e,{t:r}
1=(0,i.Bd)("mylocker"),[s,l]=(0,n.useState)(null),[h,f]=(0,n.useState)(""),[y,N]=(0,n.useState)(!1),b=e=>{switch(e){case"MEMBER_IN_DEBT":return r("recommit.errors.memberInDebt",{defaultValue:"You have an outstanding balance on your account. Please settle it before renewing."});case"SUBSCRIPTION_FROZEN":return r("recommit.errors.subscriptionFrozen",{defaultValue:"Your membership is currently frozen, so it can’t be renewed online. Please contact your club."});case"NOT_ELIGIBLE_FOR_RECOMMIT":return r("recommit.errors.notEligible",{defaultValue:"Your membership isn’t eligible for renewal right now."});case"COMPANY_FUNDED_NOT_ALLOWED":return r("recommit.errors.companyFunded",{defaultValue:"Company-funded memberships can’t be renewed online. Please contact your club."});default:return r("recommit.error",{defaultValue:"Something went wrong. Please try again or contact your club."})}},x=e=>{let t=e.periodPrice?"$".concat(e.periodPrice):"",a=e.periodUnit?e.periodUnit.toLowerCase():"";return[t,e.periodLength&&a?"".concat(r("recommit.every",{defaultValue:"every"})," ").concat(e.periodLength," ").concat(a).concat(e.periodLength>1?"s":""):""].filter(Boolean).join(" ")},g=async()=>{if(s){f("");try{let e=await (0,u.MB)("/mylocker/recommit",{productId:s.productId,productCenter:s.productCenter,startDate:"",campaignCode:""});if(e.paymentRequired&&e.paymentUrl){window.location.href=e.paymentUrl;return}l(null),N(!0)}catch(n){var e,t,r,a;f(b((null==n||null==(t=n.response)||null==(e=t.data)?void 0:e.errorCode)||(null==n||null==(a=n.response)||null==(r=a.data)?void 0:r.ErrorCode)))}}};return y?(0,a.jsx)("div",{className:o().wrapper,children:(0,a.jsxs)("div",{className:o().card,"data-testid":"mylocker-recommit-done",children:[(0,a.jsx)("span",{className:o().icon,"aria-hidden":"true",children:"✓"}),(0,a.jsx)("h1",{className:o().title,children:r("recommit.success.title",{defaultValue:"Membership renewed"})}),(0,a.jsx)("p",{className:o().message,children:r("recommit.success.message",{defaultValue:"Your new membership term has been applied. The new terms take effect from your next direct debit."})}),(0,a.jsx)("a",{href:p.bq.account,className:o().cta,children:r("recommit.success.back",{defaultValue:"Back to my account"})})]})}):(0,a.jsxs)("div",{className:o().wrapper,"data-testid":"mylocker-recommit",children:[(0,a.jsx)("h1",{className:o().heading,children:r("recommit.heading",{defaultValue:"Renew your membership"})}),(0,a.jsx)("p",{className:o().intro,children:r("recommit.intro",{defaultValue:"Your commitment period is ending soon. Choose an option below to renew — no payment is taken now unless a joining or pro-rata fee applies."})}),(0,a.jsx)("div",{className:o().grid,children:t.map(e=>(0,a.jsxs)("div",{className:o().option,"data-testid":"mylocker-recommit-option",children:[e.isPopular&&(0,a.jsx)("span",{className:o().badge,children:r("recommit.popular",{defaultValue:"Most popular"})}),(0,a.jsx)("span",{className:o().optionName,children:e.heading||e.name}),(0,a.jsx)("span",{className:o().price,children:x(e)}),e.description&&(0,a.jsx)("p",{className:o().description,children:e.description}),e.features&&e.features.length>0&&(0,a.jsx)("ul",{className:o().features,children:e.features.map((e,t)=>(0,a.jsx)("li",{children:e},t))}),e.promotion&&(0,a.jsx)("p",{className:o().promotion,dangerouslySetInnerHTML:{__html:e.promotion}}),(0,a.jsx)("button",{type:"button",className:o().selectBtn,onClick:()=>{f(""),l(e)},"data-testid":"mylocker-recommit-select",children:r("recommit.select",{defaultValue:"Select"})})]},"".concat(e.productCenter,"-").concat(e.productId)))}),(0,a.jsxs)(c.A,{show:null!==s,onHide:()=>l(null),centered:!0,children:[(0,a.jsx)(c.A.Header,{closeButton:!0,children:(0,a.jsx)(c.A.Title,{children:r("recommit.terms.title",{defaultValue:"Confirm your renewal"})})}),(0,a.jsx)(c.A.Body,{children:s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:o().confirmName,children:[s.heading||s.name," —"," ",x(s)]}),(0,a.jsx)("p",{className:o().terms,children:r("recommit.terms.body",{defaultValue:"By continuing you agree to a new minimum commitment period on the selected membership. Your existing payment details carry over; the new price applies from your next direct debit. Any joining or pro-rata fee shown at payment is charged now."})}),h&&(0,a.jsx)("div",{role:"alert",children:(0,a.jsx)(m.A,{className:o().error,children:h})})]})}),(0,a.jsxs)(c.A.Footer,{children:[(0,a.jsx)("button",{type:"button",className:o().cancelBtn,onClick:()=>l(null),"data-testid":"mylocker-recommit-cancel",children:r("recommit.terms.cancel",{defaultValue:"Cancel"})}),(0,a.jsx)(d.A,{label:r("recommit.terms.agree",{defaultValue:"Agree & renew"}),loadingLabel:r("recommit.terms.processing",{defaultValue:"Processing…"}),onClick:g,className:o().confirmBtn,"data-testid":"mylocker-recommit-confirm"})]})]})]})};var f=!0;let y=e=>{let{memberInitials:t,memberName:r,memberEmail:n,options:i}=e;return(0,a.jsx)(s.A,{variant:"full",memberInitials:t,memberName:r,memberEmail:n,children:(0,a.jsx)(h,{options:i})})}},78195:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s});var a=r(14591),n=r(14232);let s=e=>{let{onClick:t}
1=e,r=(0,a.qK)(),[s,i]=(0,n.useState)(!1),c=async()=>{i(!0);try{await t()}finally{r()&&i(!1)}};return{loading:s,onClickHandler:()=>{c()}}}}},e=>{var t=t=>e(e.s=t);e.O(0,[1040,7373,636,6593,8792],()=>t(5916)),_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.