PageSourceSearch

https://mome.hu/en/chunk-WZK26TEO.js

js mome.hu collected 2026-09-24 09:16:13 UTC 2,462 bytes, 1 lines download raw bytes

1import{b as v}from"./chunk-DCE6HEZJ.js";import{i as m,j as b,p as h,q as l,s as p,u as f}from"./chunk-OGPFHN4Y.js";import{J as d,ia as n,k as o,oa as s,za as u}from"./chunk-ZMMCFEPT.js";var B=(()=>{class r{configService=s(v);document=s(u);title=s(b);meta=s(m);_title$=new o("");title$=this._title$.asObservable();titleBase="MOME | ";setCanonicalURL(t){let e=t??this.document.URL,i=this.document.createElement("link");i.setAttribute("rel","canonical"),this.document.head.appendChild(i),i.setAttribute("href",e);}setTitle(t){this.title.setTitle(this.titleBase+t),this._title$.next(this.title.getTitle());}setDescription(t){this.meta.updateTag({name:"description",content:t},"name=description");}setKeywords(t){this.meta.updateTag({name:"keywords",content:t.reduce((e,i)=>e+=`, ${i}`)},"name=keywords");}setOgImage(t){t=this.configService.imageServer+"/image/lg"+t,this.meta.updateTag({name:"og:image",content:t},"name=keywords");}handleMetaData(t){let e=t?.attributes?.seo??{},i=e?.title||t?.attributes?.title||"MOME",c=e?.description||t?.attributes?.description||t?.attributes?.teaser||"",a=(e?.keywords||"").split(" ");this.setTitle(i),this.setDescription(c),this.setKeywords(a),t?.attributes?.image?.data?.attributes?.url&&this.setOgImage(t?.attributes?.image?.data?.attributes?.url);}static ɵfac=function(e){return new(e||r)();};static ɵprov=n({token:r,factory:r.ɵfac,providedIn:"root"});}return r;})();var x=(()=>{class r{router=s(f);activatedRoute=s(p);breadcrumbs=[];_breadcrumbs$=new o([]);breadcrumbs$=this._breadcrumbs$.asObservable();initBreadcrumbs(){let t="Home";this.breadcrumbs=[],this.breadcrumbs.push({label:t,url:"/"});let e=this.activatedRoute.root.snapshot;for(;e.firstChild;)if(e=e.firstChild,e.outlet===h){let i=e.data.breadcrumb;if(i){let c=e.url.map(a=>a.path).join("/");for(let a of i)c===a.url&&(a.url="#"),this.breadcrumbs.push(a);}}this._breadcrumbs$.next(this.breadcrumbs);}constructor(){this.router.events.pipe(d(t=>t instanceof l)).subscribe(t=>{this.initBreadcrumbs();});}addBreadcrumb(t){this.breadcrumbs.push(t),this._breadcrumbs$.next(this.breadcrumbs);}addLastBreadcrumb(t){this.activatedRoute.root.snapshot?.firstChild&&(this.breadcrumbs.push({label:t,url:"#"}),this._breadcrumbs$.next(this.breadcrumbs));}static ɵfac=function(e){return new(e||r)();};static ɵprov=n({token:r,factory:r.ɵfac,providedIn:"root"});}return r;})();export{B as a,x as b};/**i18n:c6aefe5a470db0c2835d9acdc38103156c8e2d6951552de9a94049a7a4c5abe5*/

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.