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