text: "use strict";(self.webpackChunk_lamnhan_nguix_dashboard=self.webpackChunk_lamnhan_nguix_dashboard||[]).push([[668],{7668:(P,u,c)=>{c.r(u),c.d(u,{AccountPageModule:()=>O});var s=c(8583),l=c(8394),r=c(4419),d=c(3342),n=c(7716),a=c(8848);function m(t,e){if(1&t){const o=n.EpF();n.TgZ(0,"div"),n.TgZ(1,"section",4),n.TgZ(2,"div",5),n._UZ(3,"img",6),n.qZA(),n.TgZ(4,"div",7),n.TgZ(5,"h3"),n._uU(6),n.qZA(),n.TgZ(7,"p",8),n.TgZ(8,"em"),n._uU(9),n.qZA(),n.qZA(),n.qZA(),n.qZA(),n.TgZ(10,"section",9),n.TgZ(11,"button",10),n.NdJ("click",function(){return n.CHM(o),n.oxw(2).signOut()}),n._uU(12,"Logout"),n.qZA(),n.qZA(),n.qZA()}if(2&t){const o=n.oxw(2);n.xp6(3),n.Q6J("src",o.user.data.photoURL,n.LSH)("alt",o.user.data.displayName),n.xp6(3),n.Oqu(o.user.data.displayName),n.xp6(3),n.Oqu(o.user.data.email)}}function h(t,e){if(1&t&&(n.TgZ(0,"div",2),n.YNc(1,m,13,4,"div",3),n.qZA()),2&t){const o=n.oxw();n.xp6(1),n.Q6J("ngIf",o.user.currentUser&&o.user.data)}}function p(t,e){1&t&&(n.TgZ(0,"div",11),n._uU(1,"Loading ..."),n.qZA())}const C=[{path:"",component:(()=>{class t{constructor(o,i,g,_,f){this.metaService=o,this.settingService=i,this.nav=g,this.auth=_,this.user=f,this.page$=this.settingService.onLocaleChanged.pipe((0,d.b)(A=>this.metaService.changePageMetas({title:"Account",description:"Manage my account"},!0)))}ngOnInit(){}signOut(){confirm("Sign out now?")&&(this.auth.signOut(),this.nav.navigate([""]))}}return t.\u0275fac=function(o){return new(o||t)(n.Y36(a.Rj),n.Y36(a.RC),n.Y36(a.tZ),n.Y36(a.e8),n.Y36(a.KD))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-account-page"]],decls:4,vars:4,consts:[["class","host",4,"ngIf","ngIfElse"],["loading",""],[1,"host"],[4,"ngIf"],[1,"head"],[1,"avatar"],[3,"src","alt"],[1,"info"],[1,"email"],[1,"foot"],[1,"button-outline",3,"click"],[1,"loading"]],template:function(o,i){if(1&o&&(n.YNc(0,h,2,1,"div",0),n.ALo(1,"async"),n.YNc(2,p,2,0,"ng-template",null,1,n.W1O)),2&o){const g=n.MAs(3);n.Q6J("ngIf",n.lcZ(1,2,i.page$))("ngIfElse",g)}},directives:[s.O5],pipes:[s.Ov],styles:[".host[_ngcontent-%COMP%]{padding:1rem;width:100%;max-width:768px;margin:auto}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-wrap:wrap;margin-top:1rem}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]{width:6rem;height:6rem;overflow:hidden;border-radius:100%}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{width:100%;margin-top:1rem;text-align:center}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:0}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]{margin-top:0;color:var(--app-color-medium)}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]   em[_ngcontent-%COMP%], .host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;font-style:normal}.host[_ngcontent-%COMP%]   .head[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .email[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-style:italic}.host[_ngcontent-%COMP%]   .foot[_ngcontent-%COMP%]{margin-top:1rem;text-align:center}.loading[_ngcontent-%COMP%]{padding:2rem;display:flex;justify-content:center}"]}),t})()}];let M=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[r.Bz.forChild(C)],r.Bz]}),t})(),O=(()=>{class t{}return t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[[s.ez,l.y4,M]]}),t})()}}]);