PageSourceSearch

https://www.virginactive.com.au/_next/static/chunks/5200-7d0a906c9c1baa16.js

js virginactive.com.au collected 2026-10-04 00:26:16 UTC 10,659 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5200],{1627:(e,t,r)=>{"use strict";r.d(t,{Ep:()=>l,uS:()=>n});var s=r(37876),a=r(14232);let i=(0,a.createContext)(1),n=e=>{let{level:t,children:r}=e;return(0,s.jsx)(i.Provider,{value:t,children:r})},l=()=>(0,a.useContext)(i)},3077:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);var a=r(5811);function i(e,t){let r=(0,a.PA)(e,t);return e=>(0,s.jsx)(r,{...e})}},17958:(e,t,r)=>{"use strict";r.d(t,{Fb:()=>n,MB:()=>i,iq:()=>a});let s=r(91040).A.create({baseURL:"/api"}),a=async(e,t)=>(await s.get(e,{params:t})).data,i=async(e,t)=>(await s.post(e,t)).data,n=async e=>(await s.delete(e)).data},21162:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var s=r(37876),a=r(49589),i=r(56970),n=r(37784);let l=e=>{let{children:t,...r}=e;return(0,s.jsx)(i.A,{className:"g-0",children:(0,s.jsx)(n.A,{children:(0,s.jsx)(a.A,{...r,children:t})})})}},23858:e=>{e.exports={textInput:"dKlAcLu"}},24329:(e,t,r)=>{"use strict";function s(e,t,r){let s=e.indexOf("?")>=0?"&":"?";return"".concat(e).concat(s).concat(t,"=").concat(encodeURIComponent(r))}r.d(t,{M:()=>i,m:()=>s});let a=e=>void 0===e?e:Array.isArray(e)?e.length>0?e[0]:void 0:e,i=e=>{let{query:t,key:r,caseSensitive:s}=e;if(s)return a(t[r]);for(let[e,s]of Object.entries(t))if(e.toLowerCase()===r.toLowerCase())return a(s)}},29077:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>p,m$:()=>n});var s=r(37876),a=r(86649),i=r(24329),n=function(e){return e[e.Auto=0]="Auto",e[e.Avoid=1]="Avoid",e}({});let l=e=>e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),c=e=>Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t}).map(e=>{let[t,r]=e;return"".concat(t.toLowerCase(),'="').concat(l(String(r)),'"')}).join(" "),o=e=>{let{optimization:t}=e,r=t.formatConversion||0,s=t.format;return 1!==r&&(s=s||"jpg"),s},d=e=>{let{src:t,optimization:r}=e,s=t+"";if(r&&!s.startsWith("data:")){r.w&&(s=(0,i.m)(s,"w",r.w));let e=o({optimization:r});if(e&&(s=(0,i.m)(s,"fm",e)),null!==r.quality){let e=r.quality||85;s=(0,i.m)(s,"q",e)}s=(0,i.m)(s,"auto","format")}return s},u=e=>{let{src:t,optimization:r,lazyLoad:s,alt:a,...i}=e,n=d({src:t,optimization:r}),l="box-sizing:border-box;display:block;overflow:hidden;width:".concat(e.width,";height:").concat(e.height,";background:none;opacity:1;border:0;margin:0;padding:0;");return'<div style="'.concat(l,'"><img ').concat(c({...i,alt:a,src:n}),' style="object-fit: cover" draggable="false" loading="').concat(!1===s?"eager":"lazy",'"/></div>')},p=e=>{let t=u(e);return(0,s.jsx)(s.Fragment,{children:(0,a.Ay)(t)})}},40559:e=>{e.exports={container:"rgE2pv5",textContainer:"__1HXXYT3",successContainer:"bAgbig7",emailInput:"kPOfXKU",inputContainer:"IRP3_Id"}},55413:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});let s=(0,r(14232).createContext)(null)},58385:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876),a=r(19670);let i=e=>{let{title:t}=e;return(0,s.jsx)("svg",{width:"38",height:"39",viewBox:"0 0 38 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",...(0,a.U)(t),children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.7812 19.5C33.7812 27.6635 27.1635 34.2812 19 34.2812C10.8365 34.2812 4.21875 27.6635 4.21875 19.5C4.21875 11.3365 10.8365 4.71875 19 4.71875C27.1635 4.71875 33.7812 11.3365 33.7812 19.5ZM37.8125 19.5C37.8125 29.8899 29.3899 38.3125 19 38.3125C8.61014 38.3125 0.1875 29.8899 0.1875 19.5C0.1875 9.11014 8.61014 0.6875 19 0.6875C29.3899 0.6875 37.8125 9.11014 37.8125 19.5ZM26.1715 12.6861L16.335 22.5227L11.8641 18.0518L9.01358 20.9023L14.9097 26.7984L16.335 28.2237L17.7602 26.7984L29.022 15.5367L26.1715 12.6861Z",fill:"#267E23"})})}},59158:(e,t,r)=>{"use strict";r.d(t,{j:()=>s});var s=function(e){return e.WEBSITE="website",e.ARTICLE="article",e}({})},60984:(e,t,r)=>{"use strict";r.d(t,{Y:()=>d});var s=r(37876),a=r(67204),i=r.n(a),n=r(82750),l=r(14232),c=r(55413);let o=e=>{let{id:t,errorMessage:r}=e,a=(0,l.useContext)(c.C),[o]=(0,l.useState)(()=>!(t&&(null==a?void 0:a.isSubmitting())));return(0,s.jsxs)("div",{id:t,role:o?"alert":void 0,"aria-live":o?void 0:"polite","data-field-error":t?"":void 0,className:i().errorMessage,children:[(0,s.jsx)("div",{className:i().errorIcon,"aria-hidden":"true",children:(0,s.jsx)(n.A,{})}),(0,s.jsx)("span",{children:r})]})},d=e=>{let{error:t,errorMessage:r,id:a}=e;return t&&r?(0,s.jsx)(o,{id:a,errorMessage:r}):null}},65399:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var s=r(37876),a=r(80035),i=r(3077),n=r(14232),l=r(34846),c=r(98097),o=r(98130),d=r(93150),u=r(49589),p=r(37784),m=r(40559),h=r.n(m),x=r(58385),g=r(82443);let v=(0,i.A)(e=>{let{state:t,onChangeEmail:r,onSubmit:a,t:i}=e;return(0,s.jsx)(u.A,{className:h().container,children:t.subscriptionSuccess?(0,s.jsxs)(p.A,{lg:12,className:h().successContainer,children:[(0,s.jsx)(x.A,{}),(0,s.jsx)("h3",{children:i("subscriptionBanner.successTitle")}),(0,s.jsx)("p",{children:i("subscriptionBanner.successBody")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.A,{sm:12,className:h().textContainer,children:[(0,s.jsx)("h2",{children:i("subscriptionBanner.title")}),(0,s.jsx)(c.A,{children:i("subscriptionBanner.body")})]}),(0,s.jsxs)(p.A,{sm:12,className:h().inputContainer,children:[(0,s.jsx)(o.A,{label:i("subscriptionBanner.input"),error:t.validations.email.status===g.Uf.Failed||!1===t.subscriptionSuccess,errorMessage:t.validations.email.error||i("subscriptionBanner.requestFailed")||"",onInput:e=>r(e),inputValue:t.email,className:h().emailInput}),(0,s.jsx)(d.A,{label:i("subscriptionBanner.cta"),onClick:()=>a()})]})]})})});var j=r(17958);class f{static getInitialState(){return{email:"",subscriptionSuccess:void 0,validations:{email:{}}}}validateEmail(e){let{t}=e;if(0===this.state.email.length){this.state.validations.email={status:g.Uf.Failed,error:t("validations.emailRequired")};return}(0,g.DT)(this.state.email)?this.state.validations.email={status:g.Uf.Passed}:this.state.validations.email={status:g.Uf.Failed,error:t("validations.emailInvalid")}}setEmail(e){this.state.email=e}*subscribeToBlog(e){let{t}=e;if(this.validateEmail({t}),this.state.validations.email.status!==g.Uf.Passed)return;let r={EmailAddress:this.state.email};try{let e=yield(0,j.MB)("/subscribeToBlog",r);200===e?this.state.subscriptionSuccess=!0:this.state.subscriptionSuccess=!1}catch(e){this.state.subscriptionSuccess=!1}}constructor(){this.state=f.getInitialState(),(0,a.l_)(this)}}let b=(0,i.A)(()=>{let{t:e}
1=(0,l.Bd)("blog"),[t]=(0,n.useState)(()=>new f),{state:r}=t;return(0,s.jsx)(v,{state:r,onChangeEmail:e=>t.setEmail(e),onSubmit:async()=>await (0,a.gP)(t.subscribeToBlog({t:e})),t:e})})},65845:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);var a=r(66482);let i=e=>{let{children:t,className:r,id:i,h:n}=e;return(0,s.jsx)(a.A,{h:n,id:i,className:"h1 primaryH ".concat(r||""),children:t})}},66482:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(37876);r(14232);var a=r(1627);let i=e=>{let{children:t,className:r,id:i,h:n="h2"}=e,l=(0,a.Ep)(),c=Math.min(Number(n.slice(1)),l+1,6);return(0,s.jsx)("h".concat(c),{id:i,className:r,children:t})}},67204:e=>{e.exports={errorMessage:"qjQVzUj",errorIcon:"BBzh3T3"}},76687:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var s=r(37876),a=r(95397),i=r.n(a);let n=()=>(0,s.jsx)("span",{"aria-hidden":"true",className:i().requiredMark,children:"*"})},79529:(e,t,r)=>{"use strict";r.d(t,{d:()=>s,s:()=>a});let s=(e,t)=>!!(e&&t),a=e=>{let{error:t,errorMessage:r,errorId:a,required:i,describedBy:n=[]}=e,l=[...n,s(t,r)&&a].filter(Boolean);return{"aria-invalid":!!t,"aria-describedby":l.length?l.join(" "):void 0,"aria-required":!!i||void 0}}},82443:(e,t,r)=>{"use strict";r.d(t,{DT:()=>o,Dc:()=>d,Dx:()=>m,FY:()=>u,JH:()=>p,Uf:()=>s,WU:()=>h});var s=function(e){return e[e.Passed=1]="Passed",e[e.Failed=2]="Failed",e[e.Skipped=3]="Skipped",e}({});let a=/^[a-zA-Z0-9._\-+]+@[a-zA-Z0-9.-]+\.[a-zA-Z]+$/,i=/^\+?\d{8,15}$/,n=/[\s\-()]/g,l=/^[4|5][0-9]{12,15}$/,c=/^[A-Za-z-'\s]*$/,o=e=>a.test(e),d=e=>e.replace(n,""),u=e=>i.test(d(e)),p=e=>l.test(e),m=e=>c.test(e),h=e=>{for(let t of Object.values(e))if(!t.status||2===t.status)return!1;return!0}},92026:(e,t,r)=>{"use strict";r.d(t,{A:()=>g});var s=r(37876);r(14232);var a=r(77328),i=r.n(a),n=r(59158),l=r(22154),c=r(89099),o=r(31709),d=r(646);let u=new Map([[l.cB.australia,"Australia"],[l.cB.singapore,"Singapore"],[l.cB.thailand,"Thailand"]]),p=e=>{let t=(0,l.zj)();return"".concat(t.publicConfig.siteUrl).concat(e)},m=(e,t)=>{let r=(t||"").trim();if(r.toLowerCase().indexOf("virgin")>=0)return r;let s=(0,l.zj)().region,a="Virgin Active ".concat(u.get(s)||"");return(e?[a,r]:[r,a]).filter(e=>e).join(" | ")},h=e=>{if(!e)return p("");let{asPath:t,locale:r,defaultLocale:s}=e,a=p((0,o.D)(t.split("/").filter(e=>e),r,{defaultLocale:s||d.y}));return a.endsWith("/")&&(a=a.slice(0,-1)),a},x=e=>{let{metaTitle:t,metaDescription:r,metaImage:a,metaKeywords:l,contentType:o=n.j.WEBSITE,prefixTitle:d}=e,u=m(d,t),p=h((0,c.useRouter)());return(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:u}),(0,s.jsx)("meta",{property:"twitter:title",content:u}),(0,s.jsx)("meta",{property:"og:title",content:u}),r&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{name:"description",content:r}),(0,s.jsx)("meta",{property:"twitter:description",content:r}),(0,s.jsx)("meta",{property:"og:description",content:r})]}),l&&(0,s.jsx)("meta",{name:"keywords",content:l}),(0,s.jsx)("meta",{property:"og:type",content:o}),(0,s.jsx)("link",{rel:"canonical",href:p}),(0,s.jsx)("meta",{property:"og:url",content:p}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(null==a?void 0:a.url)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{property:"og:image",content:a.url}),(0,s.jsx)("meta",{property:"twitter:image",content:a.url})]})]})};x.defaultProps={prefixTitle:!1};let g=x},95397:e=>{e.exports={requiredMark:"PR_c9FG"}},98130:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var s=r(37876);r(14232);var a=r(70564),i=r(23858),n=r.n(i),l=r(60984),c=r(79529),o=r(76687);let d=e=>{let{label:t,placeholder:r,error:i,errorMessage:d,onInput:u,inputValue:p,onBlur:m,className:h="",id:x,required:g,autoComplete:v,type:j="text",describedBy:f}=e,b=x||"text-input-".concat((t||"field").replace(/\s+/g,"-").toLowerCase()),A="".concat(b,"-error");return(0,s.jsxs)(a.A.Group,{className:"".concat(n().textInput," ").concat(h),children:[(0,s.jsxs)(a.A.Label,{htmlFor:b,children:[t,g&&(0,s.jsx)(o.A,{})]}),(0,s.jsx)(a.A.Control,{id:b,value:p,onChange:e=>{u(e.target.value)},className:i?"error-input":"",type:j,"data-testid":"text-input",onBlur:m,placeholder:r,autoComplete:v,...(0,c.s)({error:i,errorMessage:d,errorId:A,required:g,de
1scribedBy:[f]})}),(0,s.jsx)(l.Y,{id:A,error:i,errorMessage:d})]})}}}]);

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.