1 line
10 KiB
JavaScript
1 line
10 KiB
JavaScript
"use strict";(self.webpackChunkangular_material_template=self.webpackChunkangular_material_template||[]).push([[982],{982:(U,v,n)=>{n.r(v),n.d(v,{CustomersModule:()=>B});var b=n(1368),y=n(2992),t=n(3200),_=n(8059),r=n(8818),e=n(4496),P=n(4440),p=n(4476),C=n(2276),d=n(2080);function D(o,i){1&o&&(e.I0R(0,"th",11),e.OEk(1," No. "),e.C$Y())}function Y(o,i){if(1&o&&(e.I0R(0,"td",12),e.OEk(1),e.C$Y()),2&o){const a=i.$implicit;e.yG2(),e.oRS(" ",a.position," ")}}function f(o,i){1&o&&(e.I0R(0,"th",11),e.OEk(1," Name "),e.C$Y())}function E(o,i){if(1&o&&(e.I0R(0,"td",12),e.OEk(1),e.C$Y()),2&o){const a=i.$implicit;e.yG2(),e.oRS(" ",a.name," ")}}function G(o,i){1&o&&(e.I0R(0,"th",11),e.OEk(1," Weight "),e.C$Y())}function T(o,i){if(1&o&&(e.I0R(0,"td",12),e.OEk(1),e.C$Y()),2&o){const a=i.$implicit;e.yG2(),e.oRS(" ",a.weight," ")}}function $(o,i){1&o&&(e.I0R(0,"th",11),e.OEk(1," Symbol "),e.C$Y())}function g(o,i){if(1&o&&(e.I0R(0,"td",12),e.OEk(1),e.C$Y()),2&o){const a=i.$implicit;e.yG2(),e.oRS(" ",a.symbol," ")}}function k(o,i){1&o&&e.wR5(0,"tr",13)}function A(o,i){1&o&&e.wR5(0,"tr",14)}const x=[{position:1,name:"Hydrogen",weight:1.0079,symbol:"H"},{position:2,name:"Helium",weight:4.0026,symbol:"He"},{position:3,name:"Lithium",weight:6.941,symbol:"Li"},{position:4,name:"Beryllium",weight:9.0122,symbol:"Be"},{position:5,name:"Boron",weight:10.811,symbol:"B"},{position:6,name:"Carbon",weight:12.0107,symbol:"C"},{position:7,name:"Nitrogen",weight:14.0067,symbol:"N"},{position:8,name:"Oxygen",weight:15.9994,symbol:"O"},{position:9,name:"Fluorine",weight:18.9984,symbol:"F"},{position:10,name:"Neon",weight:20.1797,symbol:"Ne"}],w=[{path:"",component:t.Y,children:[{path:"",component:(()=>{class o{constructor(a,s){this.notificationService=a,this.titleService=s,this.displayedColumns=["position","name","weight","symbol"],this.dataSource=new r._c(x),this.sort=new _.E9}ngOnInit(){this.titleService.setTitle("Jucundus - Customers"),this.notificationService.openSnackBar("Customers loaded"),this.dataSource.sort=this.sort}static#t=this.\u0275fac=function(s){return new(s||o)(e.GI1(P.g),e.GI1(p.OY))};static#e=this.\u0275cmp=e.In1({type:o,selectors:[["app-customer-list"]],viewQuery:function(s,l){if(1&s&&e.CC$(_.E9,7),2&s){let L;e.wto(L=e.Gqi())&&(l.sort=L.first)}},decls:21,vars:3,consts:[["fxLayout","row","fxLayoutAlign","center none",1,"container"],["fxFlex","95%"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","position"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","weight"],["matColumnDef","symbol"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(s,l){1&s&&(e.I0R(0,"div",0)(1,"div",1)(2,"mat-card")(3,"mat-card-content")(4,"h2"),e.OEk(5,"Customers"),e.C$Y(),e.I0R(6,"table",2),e.SAx(7,3),e.yuY(8,D,2,0,"th",4)(9,Y,2,1,"td",5),e.k70(),e.SAx(10,6),e.yuY(11,f,2,0,"th",4)(12,E,2,1,"td",5),e.k70(),e.SAx(13,7),e.yuY(14,G,2,0,"th",4)(15,T,2,1,"td",5),e.k70(),e.SAx(16,8),e.yuY(17,$,2,0,"th",4)(18,g,2,1,"td",5),e.k70(),e.yuY(19,k,1,0,"tr",9)(20,A,1,0,"tr",10),e.C$Y()()()()()),2&s&&(e.yG2(6),e.E7m("dataSource",l.dataSource),e.yG2(13),e.E7m("matHeaderRowDef",l.displayedColumns),e.yG2(),e.E7m("matRowDefColumns",l.displayedColumns))},dependencies:[C.sZ,C.qG,C.CA,d.SM,d.WK,r.wL,r.ie,r.aG,r.Af,r.uc,r.gx,r.qC,r.cX,r.yC,r._I,_.E9,_.e6],styles:["table[_ngcontent-%COMP%]{width:100%}th.mat-sort-header-sorted[_ngcontent-%COMP%]{color:#000}"]})}return o})()}]}];let I=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#e=this.\u0275mod=e.a4G({type:o});static#o=this.\u0275inj=e.s3X({imports:[y.qQ.forChild(w),y.qQ]})}return o})();var R=n(9588);let B=(()=>{class o{static#t=this.\u0275fac=function(s){return new(s||o)};static#e=this.\u0275mod=e.a4G({type:o});static#o=this.\u0275inj=e.s3X({imports:[b.MD,I,R.k]})}return o})()},3200:(U,v,n)=>{n.d(v,{Y:()=>L});var b=n(4548),y=n(6928),t=n(4496),_=n(1216),r=n(3548),e=n(119),P=n(9920),p=n(2992),C=n(1368),d=n(9964),D=n(1560),Y=n(964),f=n(7816),E=n(6664),G=n(3584),T=n(3576),$=n(9092),g=n(7500),k=n(6496),A=n(8156),x=n(2978);function S(h,W){1&h&&t.wR5(0,"mat-progress-bar",26)}const w=()=>["/"],I=()=>["/account/profile"],R=()=>["/auth/login"],B=()=>["/dashboard"],o=()=>["/sales"],i=()=>["/favorites"],a=()=>["/pictures"],s=()=>["/users"],l=()=>["/about"];let L=(()=>{class h{constructor(u,m,c,O,M){this.changeDetectorRef=u,this.media=m,this.spinnerService=c,this.authService=O,this.authGuard=M,this.showSpinner=!1,this.userName="",this.isAdmin=!1,this.autoLogoutSubscription=new y.wH,this.mobileQuery=this.media.matchMedia("(max-width: 1000px)"),this._mobileQueryListener=()=>u.detectChanges(),this.mobileQuery.addListener(this._mobileQueryListener)}ngOnInit(){const u=this.authService.getCurrentUser();this.isAdmin=u.isAdmin,this.userName=u.fullName;const m=(0,b.k)(2e3,5e3);this.autoLogoutSubscription=m.subscribe(()=>{this.authGuard.canActivate()})}ngOnDestroy(){this.mobileQuery.removeListener(this._mobileQueryListener),this.autoLogoutSubscription.unsubscribe()}ngAfterViewInit(){this.changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(m){return new(m||h)(t.GI1(t.kD9),t.GI1(_.iG),t.GI1(r.m),t.GI1(e.A),t.GI1(P.Q))};static#e=this.\u0275cmp=t.In1({type:h,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(m,c){if(1&m){const O=t.KQA();t.I0R(0,"div",0)(1,"mat-toolbar",1)(2,"button",2),t.qCj("click",function(){t.usT(O);const K=t.Gew(39);return t.CGJ(K.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,S,1,0,"mat-progress-bar",25),t.wVc(89,"async"),t.C$Y(),t.wR5(90,"router-outlet"),t.C$Y()()()}if(2&m){const O=t.Gew(13),M=t.Gew(26);t.eAK("example-is-mobile",c.mobileQuery.matches),t.yG2(5),t.E7m("routerLink",t.q4q(24,w)),t.yG2(4),t.E7m("matMenuTriggerFor",O),t.yG2(3),t.E7m("overlapTrigger",!1),t.yG2(8),t.E7m("matMenuTriggerFor",M),t.yG2(4),t.oRS(" ",c.userName," "),t.yG2(),t.E7m("overlapTrigger",!1),t.yG2(2),t.E7m("routerLink",t.q4q(25,I)),t.yG2(5),t.E7m("routerLink",t.q4q(26,R)),t.yG2(6),t.E7m("opened",!c.mobileQuery.matches)("mode",c.mobileQuery.matches?"over":"side")("fixedInViewport",c.mobileQuery.matches),t.yG2(5),t.E7m("routerLink",t.q4q(27,B)),t.yG2(5),t.E7m("routerLink",t.q4q(28,o)),t.yG2(5),t.E7m("routerLink",t.q4q(29,i)),t.yG2(5),t.E7m("routerLink",t.q4q(30,a)),t.yG2(5),t.E7m("routerLink",t.q4q(31,s)),t.yG2(8),t.E7m("routerLink",t.q4q(32,I)),t.yG2(5),t.E7m("routerLink",t.q4q(33,R)),t.yG2(5),t.E7m("routerLink",t.q4q(34,l)),t.yG2(7),t.E7m("ngIf",t.kDX(89,22,c.spinnerService.visibility))}},dependencies:[p.cP,p.ER,p.LC,C.u_,d.Ar,d.WS,d.Uq,D.qL,Y.EZ,f.Gw,f.um,E.G2,E.g9,E.Y1,E.Qp,G.k,T.Cs,$.wx,g.aM,g.OQ,g.yG,k.a4,A.S,x.s9,C.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 h})()}}]); |