PageSourceSearch

https://www.virginactive.com.au/_next/static/chunks/8222-3d6e8c40ce13b9a8.js

js virginactive.com.au collected 2026-10-04 00:28:30 UTC 11,687 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8222],{18606:e=>{e.exports={userConsentContainer:"IFBb3hV"}},18910:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var r=a(37876),s=a(24832);a(87123),a(7854);var i=a(79711),l=a(84464),n=a.n(l),o=a(70564),c=a(98097),d=a(60984),u=a(76687),m=a(34846);let h=e=>{let{minDate:t,maxDate:a,value:l,label:h,subLabel:p,onSelectDate:v,error:b,errorMessage:f,id:x="membership-start-date",required:y}=e,{t:g}=(0,m.Bd)(["common"]),A="".concat(x,"-label");return(0,r.jsxs)("div",{role:"group","aria-labelledby":A,children:[(0,r.jsxs)(o.A.Label,{id:A,as:"p",children:[h,y&&(0,r.jsx)(u.A,{})]}),(0,r.jsx)(s.A,{id:x,value:l,disabled:null===t,className:n().input,clearIcon:null,calendarIcon:(0,r.jsx)(i.A,{}),calendarAriaLabel:g("common:form.chooseDate"),dayAriaLabel:g("common:form.day"),monthAriaLabel:g("common:form.month"),yearAriaLabel:g("common:form.year"),nativeInputAriaLabel:h,required:y,showLeadingZeros:!0,minDate:t||void 0,maxDate:a||void 0,onChange:e=>v(e instanceof Date?e:null),format:"dd/MM/yyyy"}),(0,r.jsx)(c.A,{className:n().subLabel,children:null===t?"".concat(g("loading")):"".concat(p)}),(0,r.jsx)(d.Y,{error:b,errorMessage:f})]})}},23958:e=>{e.exports={requiredFieldsHint:"yqMCWCg"}},24160:e=>{"use strict";e.exports={i18n:{localeDetection:!1,locales:["en"],defaultLocale:"en"}}},26274:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var r=a(37876);a(14232);var s=a(70564),i=a(81300),l=a.n(i),n=a(60984),o=a(79529),c=a(76687);let d=e=>{let{children:t,id:a,label:i,checked:d,onChange:u,error:m,errorMessage:h,className:p,"data-testid":v,required:b}=e,f="checkbox-".concat(a),x="".concat(f,"-error");return(0,r.jsxs)(s.A.Group,{className:l().inputGroup,children:[(0,r.jsxs)(s.A.Check,{id:f,type:"checkbox",name:a,className:"".concat(l().checkbox," ").concat(p||""),children:[(0,r.jsx)(s.A.Check.Input,{"data-testid":v||"checkbox-input",type:"checkbox",checked:d,onChange:e=>{u(e.target.checked)},...(0,o.s)({error:m,errorMessage:h,errorId:x,required:b})}),(0,r.jsxs)(s.A.Check.Label,{children:[i&&(0,r.jsx)(r.Fragment,{children:i}),t&&(0,r.jsx)(r.Fragment,{children:t}),b&&(0,r.jsx)(c.A,{})]})]}),(0,r.jsx)(n.Y,{id:x,error:m,errorMessage:h})]})}},26966:(e,t,a)=>{"use strict";a.d(t,{N:()=>s});var r=a(82443);class s{validateEmail(e){let{t}=e;if(this.state.email=this.state.email.trim(),!this.state.email){this.state.validations.email={status:r.Uf.Skipped};return}(0,r.DT)(this.state.email)?this.state.validations.email={status:r.Uf.Passed}:this.state.validations.email={status:r.Uf.Failed,error:t("validations.emailInvalid")}}validateEmailRequired(e){let{t}=e;if(this.state.email=this.state.email.trim(),!this.state.email){this.state.validations.email={status:r.Uf.Failed,error:t("validations.emailRequired")};return}(0,r.DT)(this.state.email)?this.state.validations.email={status:r.Uf.Passed}:this.state.validations.email={status:r.Uf.Failed,error:t("validations.emailInvalid")}}validatePhoneNumber(e){let{t}=e;if(this.state.phoneNumber=this.state.phoneNumber.replace(/\s/g,""),!this.state.phoneNumber){this.state.validations.phoneNumber={status:r.Uf.Skipped};return}(0,r.FY)(this.state.phoneNumber)?this.state.validations.phoneNumber={status:r.Uf.Passed}:this.state.validations.phoneNumber={status:r.Uf.Failed,error:t("validations.phoneNumberInvalid")}}validatePhoneNumberRequired(e){let{t}=e;if(this.state.phoneNumber=this.state.phoneNumber.replace(/\s/g,""),!this.state.phoneNumber){this.state.validations.phoneNumber={status:r.Uf.Failed,error:t("validations.phoneNumberRequired")};return}(0,r.FY)(this.state.phoneNumber)?this.state.validations.phoneNumber={status:r.Uf.Passed}:this.state.validations.phoneNumber={status:r.Uf.Failed,error:t("validations.phoneNumberInvalid")}}validateRegionSpecificPhoneNumberRequired(e){let{t,mobileRegionConfig:a}=e;this.validatePhoneNumberRequired({t:t}),this.state.validations.phoneNumber.status===r.Uf.Passed&&this.state.phoneNumber.replace(a.countryCode,a.shouldShowCountryCode?"":"0").length!=a.mobileNumberLength&&(this.state.validations.phoneNumber={status:r.Uf.Failed,error:t("validations.phoneNumberInvalid")})}validateEmailOrPhoneRequired(e){let{t}=e;this.state.email=this.state.email.trim(),this.state.phoneNumber=this.state.phoneNumber.trim(),this.state.email||this.state.phoneNumber||(this.state.validations.email={status:r.Uf.Failed,error:t("validations.emailOrPhoneRequired")},this.state.validations.phoneNumber={status:r.Uf.Failed,error:t("validations.emailOrPhoneRequired")})}constructor(e){this.state=e}}},30226:(e,t,a)=>{"use strict";a.d(t,{L:()=>s});var r=a(646);a(24160);let s=e=>{let t=e.locales||[r.y];return{locales:t,locale:e.locale||r.y,defaultLocale:e.defaultLocale||r.y,localesDefined:!!e.locales&&e.locales.length>1}}},37539:(e,t,a)=>{"use strict";a.d(t,{j:()=>n,y:()=>l});let r="input, select, textarea, button, [tabindex]",s=(e,t)=>e.getAttribute("aria-errormessage")===t||(e.getAttribute("aria-describedby")||"").split(/\s+/).includes(t),i=e=>e.matches(r)?e:e.querySelector(r),l=e=>{let t=Array.from(e.querySelectorAll("[aria-describedby], [aria-errormessage]")),a=new Set,r=[];
1return e.querySelectorAll("[data-field-error]").forEach(e=>{var l;let n=(null==(l=e.textContent)?void 0:l.trim())||"",o=t.find(t=>s(t,e.id)),c=o&&i(o);!n||!(null==c?void 0:c.id)||a.has(n)||(a.add(n),r.push({fieldId:c.id,message:n}))}),r},n=e=>{var t;let a=document.getElementById(e);a&&(a.focus({preventScroll:!0}),null==(t=a.scrollIntoView)||t.call(a,{block:"center"}))}},38360:(e,t,a)=>{"use strict";a.d(t,{A:()=>k});var r=a(37876),s=a(14232),i=a(5811),l=a(39136),n=a(37784),o=a(56970),c=a(40462),d=a(26274),u=a(86649),m=a(18606),h=a.n(m),p=a(82443),v=a(27912);let b=/\[([^\]]+)\]\(([^)\s]+)\)/g,f=["http:","https:","mailto:"],x=e=>{try{return f.includes(new URL(e).protocol)}catch(e){return!1}},y=e=>e.replace(b,(e,t,a)=>{if(!x(a))return e;let r=a.replace(/"/g,"&quot;");return'<a href="'.concat(r,'" target="_blank" rel="noopener noreferrer">').concat(t,"</a>")}),g=e=>y(e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").split(/\n{2,}/).map(e=>"<p>".concat(e.replace(/\n/g,"<br/>"),"</p>")).join(""),A=e=>"tag"===e.type&&"true"===e.attribs["data-special-terms"],N=e=>{let{path:t,label:a}=e;return'<a href="'.concat(t,'" target="_blank">').concat(a,"</a>")},j=(0,i.PA)(e=>{let{formValues:t,onChange:a,children:s}=e;return(0,r.jsx)(o.A,{children:(0,r.jsx)(n.A,{lg:12,children:(0,r.jsx)(d.A,{id:"termsConsent","data-testid":"termsConsent",checked:t.termsConsent,error:t.validations.termsConsent.status===p.Uf.Failed,errorMessage:t.validations.termsConsent.error||"",onChange:a,children:s})})})}),C=(0,i.PA)(e=>{let{formValues:t,onChange:a,children:s}=e;return(0,r.jsx)(o.A,{children:(0,r.jsx)(n.A,{lg:12,children:(0,r.jsx)(d.A,{id:"privacyPolicyConsent","data-testid":"privacyPolicyConsent",checked:t.privacyPolicyConsent,error:t.validations.privacyPolicyConsent.status===p.Uf.Failed,errorMessage:t.validations.privacyPolicyConsent.error||"",onChange:a,children:s})})})}),k=e=>{let{t,formActions:a,formValues:i}=e,{onChangeTermsConsent:n,onChangePrivacyPolicyConsent:o,termsAndConditionsPath:d,specialTermsPath:m,specialTermsMarkdown:p,specialTermsTitle:b}
1=a,[f,x]=(0,s.useState)(!1),y=void 0!==p,k=t("specialTerms"),P=y?'<a href="#special-terms" data-special-terms="true" data-testid="special-terms-link">'.concat(k,"</a>"):N({path:m,label:k}),_={replace:e=>{if(A(e))return(0,r.jsx)("a",{href:"#special-terms","data-testid":"special-terms-link",onClick:e=>{e.preventDefault(),x(!0)},children:(0,u.zd)(e.children,_)})}};return(0,r.jsxs)("div",{className:h().userConsentContainer,children:[i.splitConsentActions?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{formValues:i,onChange:n,children:(0,u.Ay)(t("termsAndConditionsAgreement",{_termsAndConditions_:N({path:d,label:t("termsAndConditions")}),_specialTerms_:P}),_)}),(0,r.jsx)(C,{formValues:i,onChange:o,children:(0,u.Ay)(t("privacyPolicyAgreement",{_privacyPolicy_:N({path:l.Z.legalPage(),label:t("privacyNotice")})}),_)})]}):(0,r.jsx)(j,{formValues:i,onChange:n,children:(0,u.Ay)(t("termsAndPrivacyPolicyAgreement",{_termsAndConditions_:N({path:d,label:t("termsAndConditions")}),_specialTerms_:P,_privacyPolicy_:N({path:l.Z.legalPage(),label:t("privacyPolicy")})}),_)}),(0,r.jsxs)(c.A,{show:f,onHide:()=>x(!1),scrollable:!0,children:[(0,r.jsx)(c.A.Header,{closeButton:!0,children:(0,r.jsx)(c.A.Title,{children:b||k})}),(0,r.jsx)(c.A.Body,{"data-testid":"special-terms-modal",children:p?(0,r.jsx)(v.A,{html:g(p)}):null})]})]})}},39980:e=>{e.exports={p1:"__7mkwqqg",p1Book:"wRipFZY",formHeader:"e_efIPq",names:"__0V9P2hq",locationName:"Wk1wqBW",p1Bold:"n7WiGm8","p1-link":"X830nk3",p2:"_JBuLYk","p2-book":"CzEgjeZ",pricePerWeek:"EElB3ug",subscriptionName:"mnvDdHB",priceValue:"JKeqsUQ",separator:"vhh5vZg"}},40116:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var r=a(37876),s=a(34846),i=a(85454),l=a.n(i),n=a(37539);let o=e=>{let{errors:t,attempt:a}=e,{t:i}=(0,s.Bd)(["common"]);return t.length?(0,r.jsxs)("div",{role:"alert",className:l().formErrorSummary,"data-testid":"form-error-summary",children:[(0,r.jsx)("p",{className:l().title,children:i("common:form.errorSummaryTitle")}),(0,r.jsx)("ul",{className:l().list,children:t.map(e=>{let{fieldId:t,message:a}=e;return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#".concat(t),onClick:e=>{e.preventDefault(),(0,n.j)(t)},children:a})},t)})})]},a):null}},41461:(e,t,a)=>{"use strict";a.d(t,{_:()=>i});var r=a(14232),s=a(37539);let i=e=>{let t=(0,r.useRef)(null),a=(0,r.useRef)(!1),[i,l]=(0,r.useState)(0),[n,o]=(0,r.useState)([]),c=(0,r.useCallback)(async()=>{a.current=!0;try{await e()}finally{l(e=>e+1)}},[e]);return(0,r.useEffect)(()=>{if(!i||!t.current)return;let e=(0,s.y)(t.current);a.current=!1,o(e),e.length&&(0,s.j)(e[0].fieldId)},[i]),{formRef:t,handleSubmit:c,context:(0,r.useMemo)(()=>({isSubmitting:()=>a.current}),[]),summary:{errors:n,attempt:i}}}},48204:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(37876);a(14232);var s=a(39980),i=a.n(s),l=a(17478),n=a(21379),o=a(66898);let c=e=>{let{subscriptionName:t,locationName:a,price:s,t:c,signupFee:d}=e,u=void 0!==d;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:i().formHeader,children:[(0,r.jsxs)("div",{className:"".concat(i().names),children:[(0,r.jsx)(o.A,{className:i().subscriptionName,children:t}),(0,r.jsx)("div",{className:i().locationName,children:a})]}),(0,r.jsxs)("div",{className:i().pricePerWeek,children:[(0,r.jsx)("span",{className:i().priceValue,children:u?(0,n.Wi)(parseFloat(d)):(0,n.Wi)(s)}),(0,r.jsx)(o.A,{children:c(u?"payment:paymentSummary:joiningFee":"perWeek")})]})]}),(0,r.jsx)(l.A,{className:i().separator})]})}},64311:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(37876),s=a(14232),i=a(98130),l=a(19100);let n=e=>{let{label:t,error:a,errorMessage:n,onInput:o,inputValue:c,onBlur:d,id:u,required:m,autoComplete:h}=e,[p,v]=(0,s.useState)("");return(0,s.useEffect)(()=>{v((0,l.$T)(c))},[c]),(0,r.jsx)(i.A,{label:t,placeholder:"DD/MM/YYYY",error:a,errorMessage:n,inputValue:p,onInput:e=>{v(e)},onBlur:()=>{let e=8===p.length?(0,l._U)((0,l.zn)(p)):(0,l._U)(p);v((0,l.$T)(e)),o(e),d&&d()},id:u,required:m,autoComplete:h})}},80904:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var r=a(37876),s=a(34846),i=a(23958),l=a.n(i);let n=e=>{let{className:t=""}=e,{t:a}=(0,s.Bd)(["common"]);return(0,r.jsx)("p",{className:"".concat(l().requiredFieldsHint," ").concat(t),children:a("common:form.requiredHint")})}},81300:e=>{e.exports={inputGroup:"HfXpMb9",checkbox:"K4JgR9D"}},84464:e=>{e.exports={input:"Rw7N5Pz",calender:"SIYDVw_",subLabel:"__4wOaIUi"}},85454:e=>{e.exports={formErrorSummary:"AeCJEC_",title:"uD3ySGm",list:"Yry5SfW"}}}]);

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.