-
Notifications
You must be signed in to change notification settings - Fork 0
/
464.b4d0df7e25f1f9d1.js
1 lines (1 loc) · 2.84 KB
/
464.b4d0df7e25f1f9d1.js
1
"use strict";(self.webpackChunkmanniwatch=self.webpackChunkmanniwatch||[]).push([[464],{2464:(f,l,i)=>{i.r(l),i.d(l,{SettingsModule:()=>S});var r=i(9462),u=i(6108),m=i(3141),a=i(764),c=i(4918),h=i(2115),e=i(2093);const p=()=>["/settings","theme"];let g=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=e.Xpm({type:t,selectors:[["app-settings"]],decls:10,vars:2,consts:[["matSubheader",""],["mat-list-item","","role","navigation",3,"routerLink"],["matListIcon",""],["matLine",""]],template:function(n,o){1&n&&(e.TgZ(0,"mat-nav-list")(1,"h3",0),e._uU(2,"Appearance"),e.qZA(),e.TgZ(3,"a",1)(4,"mat-icon",2),e._uU(5,"color_lense"),e.qZA(),e.TgZ(6,"h4",3),e._uU(7,"Theme"),e.qZA(),e.TgZ(8,"p",3),e._uU(9,"Select your theme preference"),e.qZA()()()),2&n&&(e.xp6(3),e.Q6J("routerLink",e.DdM(1,p)))},dependencies:[c.rH,m.Hw,a.Hk,a.Tg,a.gs]})}return t})();var d=i(3769);const Z=[{component:(()=>{class t{settingsService;theme;themeSubscription;constructor(s){this.settingsService=s}selectTheme(s){this.settingsService.theme=s}onSelectionChange(s){this.settingsService.theme=s.options[0].value}ngOnInit(){this.themeSubscription=this.settingsService.themeObservable.subscribe({next:s=>{this.theme=s}})}ngOnDestroy(){this.themeSubscription&&this.themeSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)(e.Y36(d.gb))};static \u0275cmp=e.Xpm({type:t,selectors:[["app-theme-selector"]],decls:22,vars:8,consts:[["multiple","false",3,"selectionChange"],[3,"value","selected"],["matListIcon",""],["matLine",""]],template:function(n,o){1&n&&(e.TgZ(0,"mat-selection-list",0),e.NdJ("selectionChange",function(T){return o.onSelectionChange(T)}),e.TgZ(1,"mat-list-option",1)(2,"mat-icon",2),e._uU(3,"bedtime"),e.qZA(),e.TgZ(4,"h3",3),e._uU(5,"Dark"),e.qZA(),e.TgZ(6,"p",3),e._uU(7,"Applies a darker theme"),e.qZA()(),e.TgZ(8,"mat-list-option",1)(9,"mat-icon",2),e._uU(10,"wb_sunny"),e.qZA(),e.TgZ(11,"h3",3),e._uU(12,"Light"),e.qZA(),e.TgZ(13,"p",3),e._uU(14,"Applies a lighter theme"),e.qZA()(),e.TgZ(15,"mat-list-option",1)(16,"mat-icon",2),e._uU(17),e.qZA(),e.TgZ(18,"h3",3),e._uU(19),e.qZA(),e.TgZ(20,"p",3),e._uU(21,"Applies your system default theme."),e.qZA()()()),2&n&&(e.xp6(1),e.Q6J("value",1)("selected",1===o.theme),e.xp6(7),e.Q6J("value",2)("selected",2===o.theme),e.xp6(7),e.Q6J("value",0)("selected",0===o.theme),e.xp6(2),e.Oqu(1===o.theme?"bedtime":"wb_sunny"),e.xp6(2),e.hij("System Default (",1===o.theme?"Dark":"Light",")"))},dependencies:[m.Hw,a.Ub,a.vS]})}return t})(),path:"theme"},{component:g,path:""}];let v=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=e.oAB({type:t});static \u0275inj=e.cJS({imports:[c.Bz.forChild(Z),c.Bz]})}return t})(),S=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=e.oAB({type:t});static \u0275inj=e.cJS({imports:[v,r.ez,m.Ps,a.ie,h.G,u.Is,c.Bz]})}return t})()}}]);