1 line
8.3 KiB
JavaScript
1 line
8.3 KiB
JavaScript
"use strict";(self.webpackChunkangular_material_template=self.webpackChunkangular_material_template||[]).push([[184],{2184:(D,h,n)=>{n.r(h),n.d(h,{DashboardModule:()=>u});var p=n(1368),v=n(2992),t=n(3200),a=n(4496),M=n(4440),I=n(119),P=n(4476),s=n(2276),O=n(1560);const R=[{path:"",component:t.Y,children:[{path:"",component:(()=>{class e{constructor(c,o,d){this.notificationService=c,this.authService=o,this.titleService=d}ngOnInit(){this.currentUser=this.authService.getCurrentUser(),this.titleService.setTitle("Jucundus - Dashboard"),setTimeout(()=>{this.notificationService.openSnackBar("Welcome!")})}static#t=this.\u0275fac=function(o){return new(o||e)(a.GI1(M.g),a.GI1(I.A),a.GI1(P.OY))};static#n=this.\u0275cmp=a.In1({type:e,selectors:[["app-dashboard-home"]],decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","center none",1,"container"],["fxFlex","95%"],["fxFlex","50%",1,"text-center","no-records","animate"]],template:function(o,d){1&o&&(a.I0R(0,"div",0)(1,"div",1)(2,"div",0)(3,"h2"),a.OEk(4),a.C$Y()(),a.I0R(5,"div",0)(6,"div",2)(7,"mat-icon"),a.OEk(8,"dashboard"),a.C$Y(),a.I0R(9,"p"),a.OEk(10,"This is the dashboard."),a.C$Y()(),a.wR5(11,"mat-icon"),a.C$Y()()()),2&o&&(a.yG2(4),a.oRS("Welcome back, ",d.currentUser.fullName,"!"))},dependencies:[s.sZ,s.qG,s.CA,O.qL],styles:[".single-cards[_ngcontent-%COMP%]{margin:20px 0}.single-card[_ngcontent-%COMP%] .mat-card-avatar[_ngcontent-%COMP%]{width:50px;height:50px}.single-card[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:55px}.projects-card[_ngcontent-%COMP%] > mat-card-content[_ngcontent-%COMP%]{max-height:400px;overflow:auto}"]})}return e})()}]}];let f=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=a.a4G({type:e});static#a=this.\u0275inj=a.s3X({imports:[v.qQ.forChild(R),v.qQ]})}return e})();var g=n(9588);let u=(()=>{class e{static#t=this.\u0275fac=function(o){return new(o||e)};static#n=this.\u0275mod=a.a4G({type:e});static#a=this.\u0275inj=a.s3X({imports:[p.MD,f,g.k]})}return e})()},3200:(D,h,n)=>{n.d(h,{Y:()=>K});var p=n(4548),v=n(6928),t=n(4496),a=n(1216),M=n(3548),I=n(119),P=n(9920),s=n(2992),O=n(1368),_=n(9964),R=n(1560),f=n(964),g=n(7816),u=n(6664),e=n(3584),b=n(3576),c=n(9092),o=n(7500),d=n(6496),x=n(8156),Y=n(2978);function G(l,Q){1&l&&t.wR5(0,"mat-progress-bar",26)}const k=()=>["/"],y=()=>["/account/profile"],L=()=>["/auth/login"],A=()=>["/dashboard"],T=()=>["/sales"],$=()=>["/favorites"],U=()=>["/pictures"],B=()=>["/users"],W=()=>["/about"];let K=(()=>{class l{constructor(m,i,r,E,C){this.changeDetectorRef=m,this.media=i,this.spinnerService=r,this.authService=E,this.authGuard=C,this.showSpinner=!1,this.userName="",this.isAdmin=!1,this.autoLogoutSubscription=new v.wH,this.mobileQuery=this.media.matchMedia("(max-width: 1000px)"),this._mobileQueryListener=()=>m.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener)}ngOnInit(){const m=this.authService.getCurrentUser();this.isAdmin=m.isAdmin,this.userName=m.fullName;const i=(0,p.k)(2e3,5e3);this.autoLogoutSubscription=i.subscribe(()=>{this.authGuard.canActivate()})}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),this.autoLogoutSubscription.unsubscribe()}ngAfterViewInit(){this.changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(i){return new(i||l)(t.GI1(t.kD9),t.GI1(a.iG),t.GI1(M.m),t.GI1(I.A),t.GI1(P.Q))};static#n=this.\u0275cmp=t.In1({type:l,selectors:[["app-layout"]],decls:91,vars:35,consts:[[1,"navbar-container"],["color","primary",1,"navbar"],["mat-icon-button","",3,"click"],["matTooltip","Home",1,"navbar-brand",3,"routerLink"],[1,"navbar-spacer"],["mat-icon-button","",3,"matMenuTriggerFor"],["matBadge","2","matBadgeColor","accent"],["xPosition","before","yPosition","above",3,"overlapTrigger"],["notificationMenu","matMenu"],["mat-menu-item",""],["mat-button","",3,"matMenuTriggerFor"],["fxShow","","fxHide.xs",""],["userMenu","matMenu"],["mat-menu-item","",3,"routerLink"],[1,"navbar-sidenav-container"],["fixedTopGap","56",1,"sidenav",3,"opened","mode","fixedInViewport"],["snav",""],["mat-subheader",""],["mat-list-item","","routerLinkActive","active",3,"routerLink"],["matListItemIcon",""],["mat-line",""],["mat-list-item","",3,"routerLink"],["id","push-bottom","mat-list-item","","routerLinkActive","active",3,"routerLink"],[1,"sidenav-content"],[1,"progress-bar-container"],["color","accent","mode","indeterminate",4,"ngIf"],["color","accent","mode","indeterminate"]],template:function(i,r){if(1&i){const E=t.KQA();t.I0R(0,"div",0)(1,"mat-toolbar",1)(2,"button",2),t.qCj("click",function(){t.usT(E);const S=t.Gew(39);return t.CGJ(S.toggle())}),t.I0R(3,"mat-icon"),t.OEk(4,"menu"),t.C$Y()(),t.I0R(5,"a",3)(6,"h1"),t.OEk(7," Jucundus "),t.C$Y()(),t.wR5(8,"span",4),t.I0R(9,"button",5)(10,"mat-icon",6),t.OEk(11,"notifications"),t.C$Y()(),t.I0R(12,"mat-menu",7,8)(14,"a",9)(15,"span"),t.OEk(16,"You have new tasks"),t.C$Y()(),t.I0R(17,"a",9)(18,"span"),t.OEk(19,"You have a new message"),t.C$Y()()(),t.I0R(20,"button",10)(21,"mat-icon"),t.OEk(22,"person"),t.C$Y(),t.I0R(23,"span",11),t.OEk(24),t.C$Y()(),t.I0R(25,"mat-menu",7,12)(27,"a",13)(28,"mat-icon"),t.OEk(29,"person"),t.C$Y(),t.I0R(30,"span"),t.OEk(31,"Account"),t.C$Y()(),t.I0R(32,"a",13)(33,"mat-icon"),t.OEk(34,"exit_to_app"),t.C$Y(),t.I0R(35,"span"),t.OEk(36,"Log out"),t.C$Y()()()(),t.I0R(37,"mat-sidenav-container",14)(38,"mat-sidenav",15,16)(40,"mat-nav-list")(41,"h3",17),t.OEk(42,"Home"),t.C$Y(),t.I0R(43,"a",18)(44,"mat-icon",19),t.OEk(45," dashboard "),t.C$Y(),t.I0R(46,"p",20),t.OEk(47," Dashboard "),t.C$Y()(),t.I0R(48,"a",18)(49,"mat-icon",19),t.OEk(50," today "),t.C$Y(),t.I0R(51,"p",20),t.OEk(52," Sales "),t.C$Y()(),t.I0R(53,"a",18)(54,"mat-icon",19),t.OEk(55," bookmark "),t.C$Y(),t.I0R(56,"p",20),t.OEk(57," Favorites "),t.C$Y()(),t.I0R(58,"a",18)(59,"mat-icon",19),t.OEk(60," image "),t.C$Y(),t.I0R(61,"p",20),t.OEk(62," Pictures "),t.C$Y()(),t.I0R(63,"a",18)(64,"mat-icon",19),t.OEk(65," people "),t.C$Y(),t.I0R(66,"p",20),t.OEk(67," Users "),t.C$Y()(),t.wR5(68,"mat-divider"),t.I0R(69,"h3",17),t.OEk(70,"User"),t.C$Y(),t.I0R(71,"a",21)(72,"mat-icon",19),t.OEk(73,"person"),t.C$Y(),t.I0R(74,"p",20),t.OEk(75," Account "),t.C$Y()(),t.I0R(76,"a",21)(77,"mat-icon",19),t.OEk(78,"exit_to_app"),t.C$Y(),t.I0R(79,"p",20),t.OEk(80," Log out "),t.C$Y()(),t.I0R(81,"a",22)(82,"mat-icon",19),t.OEk(83," info_outline "),t.C$Y(),t.I0R(84,"p",20),t.OEk(85," About "),t.C$Y()()()(),t.I0R(86,"mat-sidenav-content",23)(87,"div",24),t.yuY(88,G,1,0,"mat-progress-bar",25),t.wVc(89,"async"),t.C$Y(),t.wR5(90,"router-outlet"),t.C$Y()()()}if(2&i){const E=t.Gew(13),C=t.Gew(26);t.eAK("example-is-mobile",r.mobileQuery.matches),t.yG2(5),t.E7m("routerLink",t.q4q(24,k)),t.yG2(4),t.E7m("matMenuTriggerFor",E),t.yG2(3),t.E7m("overlapTrigger",!1),t.yG2(8),t.E7m("matMenuTriggerFor",C),t.yG2(4),t.oRS(" ",r.userName," "),t.yG2(),t.E7m("overlapTrigger",!1),t.yG2(2),t.E7m("routerLink",t.q4q(25,y)),t.yG2(5),t.E7m("routerLink",t.q4q(26,L)),t.yG2(6),t.E7m("opened",!r.mobileQuery.matches)("mode",r.mobileQuery.matches?"over":"side")("fixedInViewport",r.mobileQuery.matches),t.yG2(5),t.E7m("routerLink",t.q4q(27,A)),t.yG2(5),t.E7m("routerLink",t.q4q(28,T)),t.yG2(5),t.E7m("routerLink",t.q4q(29,$)),t.yG2(5),t.E7m("routerLink",t.q4q(30,U)),t.yG2(5),t.E7m("routerLink",t.q4q(31,B)),t.yG2(8),t.E7m("routerLink",t.q4q(32,y)),t.yG2(5),t.E7m("routerLink",t.q4q(33,L)),t.yG2(5),t.E7m("routerLink",t.q4q(34,W)),t.yG2(7),t.E7m("ngIf",t.kDX(89,22,r.spinnerService.visibility))}},dependencies:[s.cP,s.ER,s.LC,O.u_,_.Ar,_.WS,_.Uq,R.qL,f.EZ,g.Gw,g.um,u.G2,u.g9,u.Y1,u.Qp,e.k,b.Cs,c.wx,o.aM,o.OQ,o.yG,d.a4,x.S,Y.s9,O.a],styles:[".navbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.navbar[_ngcontent-%COMP%]{z-index:2}.navbar-brand[_ngcontent-%COMP%]{text-decoration:none;color:#fff}.navbar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0}.navbar-is-mobile[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%]{position:fixed;z-index:2}.navbar-sidenav-container[_ngcontent-%COMP%]{flex:1}.navbar-is-mobile[_ngcontent-%COMP%] .navbar-sidenav-container[_ngcontent-%COMP%]{flex:1 0 auto}mat-sidenav[_ngcontent-%COMP%]{min-width:180px!important;border-right:1px solid #eee;box-shadow:6px 0 6px #0000001a}.progress-bar-container[_ngcontent-%COMP%]{height:5px}a.mat-list-item.active[_ngcontent-%COMP%]{background:#0000000a}#push-bottom[_ngcontent-%COMP%]{position:absolute;bottom:0}"]})}return l})()}}]); |