https://www.virginactive.com.au/_next/static/chunks/pages/virginactivelite/login-49c62d4dc2888e0a.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3139],{5936:e=>{e.exports={wrapper:"__7CXIwPC"}},8762:e=>{e.exports={p3:"Hu5yuK4",p3Book:"lQbU3us"}},10409:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(37876),s=r(33939),l=r(93150);let n=e=>{let{label:t,loadingLabel:r,className:n="","data-testid":i,loading:o,onClickHandler:c,disabled:u=!1}=e;return(0,a.jsx)(l.A,{priority:"primary",disabled:o||u,onClick:c,className:n,label:o?r:t,"data-testid":i,children:o&&(0,a.jsx)(s.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:()=>n});var a=r(37876),s=r(78195),l=r(10409);let n=e=>{let{label:t,loadingLabel:r,onClick:n,className:i="","data-testid":o,disabled:c=!1}=e,u=(0,s.Y)({onClick:n});return(0,a.jsx)(l.A,{label:t,loadingLabel:r,className:i,"data-testid":o,disabled:c,...u})}},14591:(e,t,r)=>{"use strict";r.d(t,{qK:()=>s}),r(55248),r(84467),r(76959);var a=r(14232);function s(){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},23858:e=>{e.exports={textInput:"dKlAcLu"}},26856:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var a=r(37876);r(14232);var s=r(8762),l=r.n(s);let n=e=>{let{children:t,className:r}=e;return(0,a.jsx)("p",{className:"".concat(l().p3," ").concat(r||""),children:t})}},33939:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(15039),s=r.n(a),l=r(14232),n=r(77346),i=r(37876);let o=l.forwardRef((e,t)=>{let{bsPrefix:r,variant:a,animation:l="border",size:o,as:c="div",className:u,...d}=e;r=(0,n.oU)(r,"spinner");let p="".concat(r,"-").concat(l);return(0,i.jsx)(c,{ref:t,...d,className:s()(u,p,o&&"".concat(p,"-").concat(o),a&&"text-".concat(a))})});o.displayName="Spinner";let c=o},67242:e=>{e.exports={card:"m1UbRbt",title:"uOEJ2fq",error:"__67VLJcr",submit:"fkzmZ7w",forgot:"ZTevFPY"}},78195:(e,t,r)=>{"use strict";r.d(t,{Y:()=>l});var a=r(14591),s=r(14232);let l=e=>{let{onClick:t}=e,r=(0,a.qK)(),[l,n]=(0,s.useState)(!1),i=async()=>{n(!0);try{await t()}finally{r()&&n(!1)}};return{loading:l,onClickHandler:()=>{i()}}}},80266:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/virginactivelite/login",function(){return r(90948)}])},90948:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>j,default:()=>_});var a=r(37876),s=r(14232),l=r(97373),n=r(48230),i=r.n(n),o=r(89099),c=r(34846),u=r(67242),d=r.n(u),p=r(98130),m=r(94384),x=r(12371),g=r(26856),b=r(17958),f=r(38557);let h=()=>{let{t:e}=(0,c.Bd)("mylocker"),t=(0,o.useRouter)(),[r,l]=(0,s.useState)(""),[n,u]=(0,s.useState)(""),[h,v]=(0,s.useState)(!1),N=async()=>{if(v(!1),!r||!n)return void v(!0);try{await (0,b.MB)("/mylocker/login",{username:r,password:n}),t.push(f.bq.home)}catch(e){v(!0)}};return(0,a.jsxs)("div",{className:d().card,"data-testid":"mylocker-login-form",children:[(0,a.jsx)("h2",{className:d().title,children:e("login.title")}),(0,a.jsx)(p.A,{label:e("login.username"),inputValue:r,onInput:l,error:h,errorMessage:"",id:"mylocker-username"}),(0,a.jsx)(m.A,{label:e("login.password"),inputValue:n,onInput:u,error:h,errorMessage:"",id:"mylocker-password"}),h&&(0,a.jsx)(g.A,{className:d().error,children:e("login.error")}),(0,a.jsx)(x.A,{label:e("login.submit"),loadingLabel:e("login.loggingIn"),onClick:N,className:d().submit,"data-testid":"mylocker-login-submit"}),(0,a.jsx)(i(),{className:d().forgot,href:"/forgot-password",children:e("login.forgot")})]})};var v=r(5936),N=r.n(v),j=!0;let _=()=>(0,a.jsx)(l.A,{variant:"minimal",children:(0,a.jsx)("div",{className:N().wrapper,children:(0,a.jsx)(h,{})})})},98130:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(37876);r(14232);var s=r(70564),l=r(23858),n=r.n(l),i=r(60984);let o=e=>{let{label:t,placeholder:r,error:l,errorMessage:o,onInput:c,inputValue:u,onBlur:d,className:p="",id:m}=e,x=m||"text-input-".concat((t||"field").replace(/\s+/g,"-").toLowerCase());return(0,a.jsxs)(s.A.Group,{className:"".concat(n().textInput," ").concat(p),children:[(0,a.jsx)(s.A.Label,{htmlFor:x,children:t}),(0,a.jsx)(s.A.Control,{id:x,value:u,onChange:e=>{c(e.target.value)}
1,className:l?"error-input":"",type:"text","data-testid":"text-input",onBlur:d,placeholder:r}),(0,a.jsx)(i.Y,{error:l,errorMessage:o})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[1040,7373,4384,636,6593,8792],()=>t(80266)),_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.