-
Notifications
You must be signed in to change notification settings - Fork 0
/
337.1d91a41553648769.js
1 lines (1 loc) · 2.64 KB
/
337.1d91a41553648769.js
1
"use strict";(self.webpackChunkmanniwatch=self.webpackChunkmanniwatch||[]).push([[337],{1337:(b,m,n)=>{n.r(m),n.d(m,{SearchModule:()=>y});var i=n(9462),u=n(3141),o=n(764),v=n(3581),p=n(8412),t=n(2093),d=n(3956);let h=(()=>{class e{stopService;constructor(a){this.stopService=a}resolve(a,s){return this.stopService.stopObservable.pipe((0,v.q)(1),(0,p.U)(c=>c.filter(l=>l.name.toLowerCase().includes(a.queryParams.q)).sort((l,M)=>l.name.localeCompare(M.name))))}static \u0275fac=function(s){return new(s||e)(t.LFG(d.g))};static \u0275prov=t.Yz7({token:e,factory:e.\u0275fac})}return e})();var r=n(4918),g=n(7222),f=n(4707);const S=e=>["/stop",e];function C(e,x){if(1&e&&(t.TgZ(0,"a",2)(1,"mat-list-item")(2,"mat-icon",3),t._uU(3,"place"),t.qZA(),t.TgZ(4,"h4",4),t._uU(5),t.qZA()()()),2&e){const a=x.$implicit;t.Q6J("routerLink",t.VKq(2,S,a.shortName)),t.xp6(5),t.Oqu(null==a?null:a.name)}}const O=[{component:(()=>{class e{activatedRoute;titleService;get results(){return this.resultObservable}data="";searchParamSubscription;resultObservable=g.C;constructor(a,s){this.activatedRoute=a,this.titleService=s}ngOnInit(){this.searchParamSubscription=this.activatedRoute.queryParams.subscribe(a=>{this.data=a.q||"",this.titleService.setTitle(`Search - "${this.data}"`)}),this.resultObservable=this.activatedRoute.data.pipe((0,p.U)(a=>a.results||[]))}ngOnDestroy(){this.searchParamSubscription&&this.searchParamSubscription.unsubscribe()}static \u0275fac=function(s){return new(s||e)(t.Y36(r.gz),t.Y36(f.Dx))};static \u0275cmp=t.Xpm({type:e,selectors:[["app-search"]],decls:3,vars:3,consts:[["role","navigation"],["role","listitem",3,"routerLink",4,"ngFor","ngForOf"],["role","listitem",3,"routerLink"],["mat-list-icon",""],["mat-line",""]],template:function(s,c){1&s&&(t.TgZ(0,"mat-nav-list",0),t.YNc(1,C,6,4,"a",1),t.ALo(2,"async"),t.qZA()),2&s&&(t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,c.results)))},dependencies:[i.sg,r.rH,u.Hw,o.Hk,o.Tg,i.Ov],styles:["[_nghost-%COMP%] > mat-nav-list[_ngcontent-%COMP%]{padding-top:100px}@media (max-width: 440px) and (min-width: 401px){[_nghost-%COMP%] > mat-nav-list[_ngcontent-%COMP%]{padding-top:calc(50px + 1.25*(100vw - 400px))}}@media (max-width: 400px){[_nghost-%COMP%] > mat-nav-list[_ngcontent-%COMP%]{padding-top:0}}"]})}return e})(),path:"",resolve:{results:h},runGuardsAndResolvers:"paramsOrQueryParamsChange"}];let P=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=t.oAB({type:e});static \u0275inj=t.cJS({imports:[r.Bz.forChild(O),r.Bz]})}return e})(),y=(()=>{class e{static \u0275fac=function(s){return new(s||e)};static \u0275mod=t.oAB({type:e});static \u0275inj=t.cJS({providers:[h],imports:[i.ez,P,u.Ps,o.ie]})}return e})()}}]);