PageSourceSearch

https://www.appliancesonline.com.au/chunk-KHIWHVPS.js

js appliancesonline.com.au collected 2026-09-24 18:43:28 UTC 17,839 bytes, 4 lines download raw bytes

1import{c as Ee,h as ke,j as Le}from"./chunk-SZNE2PJH.js";import{S as M,o as I,q as P,v as A}from"./chunk-UT4GUAVS.js";import{a as _e,b as ye}from"./chunk-QN4J2Y6L.js";import{C as B,D as be,J as Se,N as Oe,g as $,h as K,u as Z}from"./chunk-2BH5IVPN.js";import{u as X}from"./chunk-PP3RVYQN.js";import{a as J}from"./chunk-TYDWO2VF.js";import{g as L,i as R}from"./chunk-LMRBZRJC.js";import{a as ve,f as we}from"./chunk-MN37C2HO.js";import{W as Ce}from"./chunk-R5SHGPGT.js";import{B as c,C as ue,Ea as h,Gc as u,Hc as b,I as pe,Ic as S,Ja as r,Jc as _,L as me,M as V,Mb as g,P as d,U as N,Ya as C,Zc as y,ad as fe,bc as w,bd as de,dd as O,ea as l,ed as E,f as ae,fd as k,g as Q,ha as q,kb as v,oa as he,od as F,qa as f,qd as H,t as le,ta as ge,u as m,ua as U,xa as te}from"./chunk-2NK6DEBJ.js";import{a as s,b as a,h as ce}from"./chunk-B4AJQJMI.js";var Re="reCaptchaV3OnloadCallback",oe=(()=>{class o{constructor(){this.scriptLoaderService=r(ye),this.windowRef=r(J),this.store=r(Z),this._window=this.windowRef.nativeWindow}get siteKey(){return this.store.selectSync(Oe.getSettingValueByName(Se.RecaptchaV3SiteKey))}requestTokenWhenReady(){return ce(this,null,function*(){let e={onload:Re,urlParam:`?render=${this.siteKey}&onload=${Re}`};yield this.scriptLoaderService.load(_e.Recaptcha,e).toPromise();let t=this.siteKey;if(!t)throw new Error("There is no Recaptcha V3 site key defined for this environment!!");return this._window.grecaptcha.execute(t,{action:"accounts"})})}getToken(){return le(this.requestTokenWhenReady())}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var G={headers:new ve({"Content-Type":"application/json"}),withCredentials:!0},W=(()=>{class o{constructor(){this.cookieService=r(X),this.httpClient=r(we),this.userService=r(ke),this.windowRef=r(J),this.recaptchaV3Service=r(oe),this.userAnalyticsService=r(Le),this.createAccountUrl="/api/account",this.forgotPasswordUrl="/api/account/forgot-password",this.logInUrl="/api/account/login",this.emailOptInUrl="/api/account/subscribe-emails",this.SUCCESS_URL="/accounts/welcome.aspx",this.FAILURE_URL="/accounts/p/externalloginerror.aspx",this._window=this.windowRef.nativeWindow}emailLogin({email:e,password:t,otpCode:i,authenticationMode:n,recaptchaToken:p}){this.clearLimbicCookie();let ee={email:e,provider:"AOL",password:t,otpCode:i,authenticationMode:n,recaptchaToken:p};return this.httpClient.post(this.logInUrl,ee,G)}addUserToLoginResponse(e){return this.userService.get().pipe(c(t=>a(s({},e),{user:t})))}forgotPassword(e){let t={email:e};return this.httpClient.post(this.forgotPasswordUrl,t,G)}signUp({email:e,password:t,recaptchaToken:i,firstName:n,lastName:p,isPrefillEnabled:ee}){let Te={email:e,provider:"AOL",password:t,recaptchaToken:i,fName:n,lName:p,isPrefillEnabled:ee};return this.httpClient.post(this.createAccountUrl,Te,G).pipe(U(z=>z.success&&!z.user?this.addUserToLoginResponse(z):m(z)))}associateOrder(e,t){this.httpClient.get(`/api/account/associateorder/${e}/${t}?redirect=false`,{withCredentials:!0}).subscribe()}optInToEmails(e=!0){let t={emailOptIn:e};return this.httpClient.post(this.emailOptInUrl,t,G).pipe(N(i=>(console.log(`Error encountered on the server when trying to subscribe a user to emails on account creation. Error: ${i} `),m({response:!1}))))}confirmOAuthEmail(e){let t={email:e};return this.httpClient.post("/api/account/email",t,G).pipe(N(i=>(console.log(`Error encountered on the server when trying to subscribe a user to emails on account creation. Error: ${i} `),m({hasApiError:!0}))))}getLoginOptions(e){return this.httpClient.post("/api/account/SignInOptions",e).pipe(N(t=>(console.error("Failed to retrieve login options.",t),m({hasAccount:!1,hasApiError:!0,isPrefillAllowed:!1}))))}getLoginOptionsIfHuman(e,t){return this.recaptchaV3Service.getToken().pipe(U(i=>this.getLoginOptions({email:e,recaptchaToken:i,isPrefillRequested:t})))}loginOAuth(e){this.clearLimbicCookie();let t=`/api/account/oauth-login?providerName=${e}`;return this.popupWindow=this._window.open(t,"windowname1","width=800, height=600"),this.popupWindowUrl="",V(this.loginNotificationFromPopupWindow(e),this.loginNotificationFromWindowStorageEvent()).pipe(q(),te(()=>{this.closePopupWindow()}),U(()=>this.userService.get()),te(i=>this.checkReturnedUser(i)),U(i=>{let n;return i.providedEmail?n=i.providedEmail:n=i.preferredEmail?i.preferredEmail
1:"",this.userAnalyticsService.signUpOrLogInSnowplowEvent(this.popupWindowUrl,n,i),i.providedEmail&&!i.preferredEmail?this.confirmOAuthEmail(i.providedEmail).pipe(c(()=>i)):m(i)}))}loginNotificationFromWindowStorageEvent(){return pe(this._window,"storage").pipe(d(e=>!!(e.key&&e.key==="loginEvent")),c(()=>!0),q())}loginNotificationFromPopupWindow(e){let t=this._window.location.host.indexOf("localhost")>-1?2e3:350;return me(t).pipe(c(()=>this.isReadyToCheckServerBasedOnPopupWindowStatus(e)),d(i=>!!i),q())}checkReturnedUser(e){if(!e)throw new Error("Surver check failed. No user details.");if(!e.loggedIn&&!e.name)throw new Error(`Server failed. User details were ${e}`)}isReadyToCheckServerBasedOnPopupWindowStatus(e){if(!this.popupWindow)return!0;let t;try{if(!this.popupWindow.document)return!1;t=this.popupWindow.document.URL}catch(i){return console.log(i),!1}if(t.toLowerCase().indexOf(this.SUCCESS_URL)>-1){this.popupWindowUrl=t;let i=new Date;i.setTime(i.getTime()+1*1800*1e3);let n=i.toUTCString();return this.cookieService.put("loginType",e.toLowerCase(),{expires:n}),!0}if(t.toLowerCase().indexOf(this.FAILURE_URL)>-1)throw new Error(`Error trying to log in, user probably reject app. ErrorUrl:${t}`);return!1}closePopupWindow(){setTimeout(()=>{this.popupWindow.close()},0)}clearLimbicCookie(){this.cookieService.remove("profile")}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})(),Y=(function(o){return o.email="AOL",o.google="Google",o.facebook="Facebook",o})(Y||{}),Ne=(function(o){return o.google="Google",o.facebook="Facebook",o})(Ne||{});var T=(function(o){return o.existingAccountUser="existingAccountUser",o.returningGuest="returningGuest",o.notRecognisedUser="notRecognisedUser",o.undetermined="undetermined",o})(T||{}),Ue=(function(o){return o.returningGuest="returningGuest",o})(Ue||{}),Fe=s(s({},Y),Ue),D={data:null,isLoading:!1,isError:!1},ie=$("New email to check",K()),Ie=$("New dud email",K()),Pe=$("Bypass email check"),Ae=$("Check email: Success",K()),Me=$("Check email: Failure"),xe=$("Dismiss recognized login view"),kt=(()=>{class o{constructor(){this.authorizationService=r(W),this.localActions$=new ae,this.reducer=be(D,B(ie,()=>a(s({},D),{isLoading:!0})),B(Ie,()=>D),B(Pe,e=>a(s({},e),{data:{hasAccount:!0,isPrefillAllowed:!1,signInOptions:[Y.email]},isLoading:!1})),B(Ae,(e,{response:t})=>a(s({},e),{data:t,isLoading:!1})),B(Me,e=>a(s({},e),{isLoading:!1,isError:!0})),B(xe,()=>D)),this.state$=this.localActions$.pipe(U(e=>{if(e.type!==ie.type)return m(e);let t=e.email,i=e.isPrefillRequested;return V(m(e),this.authorizationService.getLoginOptionsIfHuman(t,i).pipe(c(n=>Ae({response:n})),N(()=>m(Me()))))}),he((e,t)=>this.reducer(e,t),D),ge(D),f({refCount:!0,bufferSize:1})),this.isLoading$=this.state$.pipe(c(e=>e.isLoading),l(),f({refCount:!0,bufferSize:1})),this.firstName$=this.state$.pipe(c(e=>e.data&&e.data.firstName||null),l(),f({refCount:!0,bufferSize:1})),this.accountRecognized$=this.state$.pipe(c(({data:e})=>e?e.hasApiError?T.undetermined:e.hasAccount?T.existingAccountUser:e.isPrefillAllowed?T.returningGuest:T.notRecognisedUser:T.undetermined),l(),f({refCount:!0,bufferSize:1})),this.effectiveLoginOption$=ue([this.state$,this.accountRecognized$]).pipe(c(([e,t])=>t===T.returningGuest?Fe.returningGuest:e.data&&e.data.signInOptions&&e.data.signInOptions[0]||null),l(),f({refCount:!0,bufferSize:1})),this.shouldShowRecognizedLoginView$=this.effectiveLoginOption$.pipe(c(Boolean),l(),f({refCount:!0,bufferSize:1})),this.hasApiError$=this.state$.pipe(c(({data:e})=>e?.hasApiError||!1),l(),f({refCount:!0,bufferSize:1})),this.isPrefillAllowed$=this.state$.pipe(c(({data:e})=>(e&&e.isPrefillAllowed)??null),l(),f({refCount:!0,bufferSize:1}))}addEmailToCheck(e){this.localActions$.next(ie(e))}addEmailNoCheckNeeded(e){this.localActions$.next(Ie({email:e}))}addEmailToBypass(){this.localActions$.next(Pe())}dismissView(){this.localActions$.next(xe())}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac})}}return o}
1)();var It=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$/,We=(function(o){return o.OtpOnly="OtpOnly",o.Password="Password",o})(We||{});var $e={isLoginComplete:!1,isSending:!1,isShowingRecaptcha:!1,isShowingLimbicSurvey:!1,errorMessage:null},Ft=(()=>{class o{constructor(){this.authorizationService=r(W),this.store=r(Z),this.cookieService=r(X),this._state$=new Q($e),this.state$=this._state$.asObservable(),this.loadOrResetRecaptcha$=this._state$.pipe(c(e=>!e.isSending&&e.isShowingRecaptcha),l(),d(Boolean)),this.loginComplete$=this._state$.pipe(c(e=>e.isLoginComplete),l(),d(Boolean))}login(e){this._state$.next(a(s({},this._state$.value),{isSending:!0,errorMessage:null})),this.authorizationService.emailLogin(e).subscribe({next:t=>this.handleLoginResponse(t),error:t=>this.handleLoginHttpFailure(t)})}reset(){this._state$.next($e)}handleLoginResponse({success:e,user:t,isRecaptchaRequired:i,error:n}){e?(this.cookieService.put("loginType","email"),this._state$.next(a(s({},this._state$.value),{isSending:!1,errorMessage:null,isShowingRecaptcha:!1,isShowingLimbicSurvey:t?.profile==="Default"||t?.profile===0,isLoginComplete:!0})),this.store.dispatch(Ee.loginOrSignUpCompletion({user:t}))):this._state$.next(a(s({},this._state$.value),{isSending:!1,errorMessage:n,isShowingRecaptcha:i}))}handleLoginHttpFailure(e){this._state$.next(a(s({},this._state$.value),{isSending:!1,errorMessage:"An unexpected error occurred during login. Please try again later."}))}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac})}}return o})();var Be={passwordResetRequestComplete:!1,passwordResetAttempted:!1,isLoading:!1,errorMessage:null},qt=(()=>{class o{constructor(){this.authorizationService=r(W),this._state$=new Q(Be),this.state$=this._state$.asObservable(),this.forgotPasswordComplete$=this._state$.pipe(c(e=>e.passwordResetRequestComplete),l(),d(Boolean))}reset(){this._state$.next(Be)}requestPasswordReset(e){this._state$.next(a(s({},this._state$.value),{isLoading:!0,passwordResetAttempted:!0,errorMessage:null})),this.authorizationService.forgotPassword(e).subscribe(t=>this.handleForgotPasswordResponse(t),t=>this.handleForgotPasswordFailure(t))}handleForgotPasswordResponse({success:e,errorMessage:t}){e?this._state$.next(a(s({},this._state$.value),{isLoading:!1,errorMessage:null,passwordResetRequestComplete:!0})):this._state$.next(a(s({},this._state$.value),{isLoading:!1,errorMessage:t}))}handleForgotPasswordFailure(e){this._state$.next(a(s({},this._state$.value),{isLoading:!1,errorMessage:"An unexpected error occurred during request. Please try again later."}))}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac})}}return o})();var j="user-circled",ne="google-g",re="facebook-rounded-square";var De=["button"],je=(()=>{class o{constructor(){this.wuiButtonLevel=A,this.wuiColor=P,this.iconName=ne,this.isSignUpForm=!1,this.buttonClick=new C,this.svgIconService=r(I)}ngOnInit(){this.svgIconService.lazilyRegisterIcons([{name:ne,path:"/assets/aol/images/icons/google-g-logo.svg"}])}focus(){this.buttonRef&&this.buttonRef.nativeElement&&this.buttonRef.nativeElement.focus()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({type:o,selectors:[["aol-google-login-button"]],viewQuery:function(t,i){if(t&1&&O(De,5,v),t&2){let n;E(n=k())&&(i.buttonRef=n.first)}},inputs:{isSignUpForm:"isSignUpForm"},outputs:{buttonClick:"buttonClick"},decls:4,vars:6,consts:[["button",""],[3,"click","level","block","color","textColor"],[1,"icon",3,"name"]],template:function(t,i){t&1&&(b(0,"wui-button",1,0),y("click",function(p){return i.buttonClick.emit(p)}),_(2,"svg-icon",2),F(3),S()),t&2&&(u("level",i.wuiButtonLevel.secondary)("block",!0)("color",i.wuiColor.aolGrey)("textColor",i.wuiColor.aolLightDolphin),g(2),u("name",i.iconName),g(),H(" ",i.isSignUpForm?"Sign up":"Login",` with Google
2`))},dependencies:[R,L,M],styles:[".icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:12px}"],changeDetection:0})}}return o})();var Ge=["button"],ze=(()=>{class o{constructor(){this.wuiButtonLevel=A,this.wuiColor=P,this.iconName=re,this.isSignUpForm=!1,this.buttonClick=new C,this.svgIconService=r(I)}ngOnInit(){this.svgIconService.lazilyRegisterIcons([{name:re,path:"/assets/aol/images/icons/facebook-rounded-square-logo.svg"}])}focus(){this.buttonRef&&this.buttonRef.nativeElement&&this.buttonRef.nativeElement.focus()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({type:o,selectors:[["aol-facebook-login-button"]],viewQuery:function(t,i){if(t&1&&O(Ge,5,v),t&2){let n;E(n=k())&&(i.buttonRef=n.first)}},inputs:{isSignUpForm:"isSignUpForm"},outputs:{buttonClick:"buttonClick"},decls:4,vars:6,consts:[["button",""],[3,"click","level","block","color","textColor"],[1,"icon",3,"name"]],template:function(t,i){t&1&&(b(0,"wui-button",1,0),y("click",function(p){return i.buttonClick.emit(p)}),_(2,"svg-icon",2),F(3),S()),t&2&&(u("level",i.wuiButtonLevel.primary)("block",!0)("color","#4669b4")("textColor",i.wuiColor.aolWhite),g(2),u("name",i.iconName),g(),H(" ",i.isSignUpForm?"Sign up":"Login",` with Facebook
3`))},dependencies:[R,L,M],styles:[".icon[_ngcontent-%COMP%]{width:18px;height:18px;margin-right:12px}"],changeDetection:0})}}return o}
3)();var Qe=["button"],Ve=["*"],qe=(()=>{class o{constructor(){this.iconName=j,this.wuiButtonLevel=A,this.wuiColor=P,this.color="white",this.buttonClick=new C,this.svgIconService=r(I)}ngOnInit(){this.svgIconService.lazilyRegisterIcons([{name:j,path:"/assets/aol/images/icons/user-circled.svg"}])}focus(){this.buttonRef&&this.buttonRef.nativeElement&&this.buttonRef.nativeElement.focus()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({type:o,selectors:[["aol-email-login-button"]],viewQuery:function(t,i){if(t&1&&O(Qe,5,v),t&2){let n;E(n=k())&&(i.buttonRef=n.first)}},inputs:{color:"color",isCompact:"isCompact",isDisabled:"isDisabled"},outputs:{buttonClick:"buttonClick"},ngContentSelectors:Ve,decls:4,vars:7,consts:[["button",""],[1,"user-button",3,"click","ngClass","disabled","level","block","color","textColor"],[1,"user-icon",3,"name"]],template:function(t,i){t&1&&(fe(),b(0,"wui-button",1,0),y("click",function(p){return i.buttonClick.emit(p)}),_(2,"svg-icon",2),de(3),S()),t&2&&(u("ngClass",i.color)("disabled",i.isDisabled)("level",i.wuiButtonLevel.primary)("block",!0)("color",i.wuiColor.aolBlue)("textColor",i.wuiColor.aolWhite),g(2),u("name",i.iconName))},dependencies:[Ce,R,L,M],styles:["[_nghost-%COMP%]{display:block}.user-button[_ngcontent-%COMP%]{width:100%;height:50px;background-color:#00b5cc;border:none;color:var(--color-white)}.user-button[_ngcontent-%COMP%]   .user-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:12px}.user-button[_ngcontent-%COMP%]   .user-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;height:100%}.user-button.blue[_ngcontent-%COMP%]   .user-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .cut-out-circle[_ngcontent-%COMP%]{fill:#00b5cc}.user-button.blue[_ngcontent-%COMP%]   .user-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{fill:var(--color-white)}.user-button.white[_ngcontent-%COMP%]   .user-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .cut-out-circle[_ngcontent-%COMP%]{fill:var(--color-white)}.user-button.white[_ngcontent-%COMP%]   .user-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{fill:#00b5cc}.user-button[_ngcontent-%COMP%]:disabled{background-color:#d5d5d5}.user-button[_ngcontent-%COMP%]:disabled   .user-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{fill:#d5d5d5}"],changeDetection:0})}}return o})();var He=["button"],Ke=(()=>{class o{constructor(){this.iconName=j,this.wuiButtonLevel=A,this.wuiColor=P,this.buttonClick=new C,this.svgIconService=r(I)}ngOnInit(){this.svgIconService.lazilyRegisterIcons([{name:j,path:"/assets/aol/images/icons/user-circled.svg"}])}focus(){this.buttonRef&&this.buttonRef.nativeElement&&this.buttonRef.nativeElement.focus()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=w({type:o,selectors:[["aol-sign-up-button"]],viewQuery:function(t,i){if(t&1&&O(He,5,v),t&2){let n;E(n=k())&&(i.buttonRef=n.first)}},inputs:{isDisabled:"isDisabled"},outputs:{buttonClick:"buttonClick"},decls:4,vars:6,consts:[["button",""],[1,"sign-up-button",3,"click","disabled","level","block","color","textColor"],[1,"icon",3,"name"]],template:function(t,i){t&1&&(b(0,"wui-button",1,0),y("click",function(p){return i.buttonClick.emit(p)}),_(2,"svg-icon",2),F(3,` Create Account
4`),S()),t&2&&(u("disabled",i.isDisabled)("level",i.wuiButtonLevel.primary)("block",!0)("color",i.wuiColor.aolBlue)("textColor",i.wuiColor.aolWhite),g(2),u("name",i.iconName))},dependencies:[R,L,M],styles:["[_nghost-%COMP%]{display:block}.icon[_ngcontent-%COMP%]{display:flex;margin-right:12px;width:24px;height:24px}.icon[_ngcontent-%COMP%]   .cut-out-circle[_ngcontent-%COMP%]{fill:var(--color-white)}.icon[_ngcontent-%COMP%]   .user[_ngcontent-%COMP%]{fill:#00b5cc}.sign-up-button[_ngcontent-%COMP%]     button:disabled .icon svg .user{fill:#d5d5d5}"],changeDetection:0})}}return o})();export{W as a,Ne as b,It as c,We as d,Ft as e,qt as f,T as g,Fe as h,kt as i,je as j,ze as k,qe as l,Ke as m};

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.