PageSourceSearch

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

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

1import"./chunk-5OL7ESMO.js";import{a as y,b as A}from"./chunk-LCXW5LNO.js";import"./chunk-4TNWM3BW.js";import"./chunk-4MNKQMVN.js";import{a as b}from"./chunk-5SOFVZN4.js";import"./chunk-PGU236GD.js";import"./chunk-A3JG6QVF.js";import{o as I}from"./chunk-55PPMEHR.js";import"./chunk-UYNTKKI7.js";import{a as E}from"./chunk-DGFWRZNC.js";import{c as T}from"./chunk-F434PH2L.js";import"./chunk-NLJRPEOT.js";import"./chunk-SVBLBSMH.js";import"./chunk-V6QZE2WI.js";import"./chunk-7CHYDYG6.js";import"./chunk-JLBNJQSA.js";import{Ba as L,E as P}from"./chunk-DCE6HEZJ.js";import"./chunk-NKFHCRAJ.js";import{s as M}from"./chunk-OGPFHN4Y.js";import{$b as p,Fb as f,Ub as _,Vb as S,Wc as C,_b as l,ac as c,bc as d,ic as v,oa as r,pb as a,rc as h,tc as u,ua as g,va as m}from"./chunk-ZMMCFEPT.js";var x=()=>["programmes"];function G(i,s){if(i&1){let t=v();d(0,"app-card-group",3),p(1,"app-pagination",4),h("valueChange",function(n){g(t);let o=u();return m(o.onPageChange(n));}),c();}if(i&2){let t=u();l("cards",t.cards),a(),l("value",t.pagination.page)("total",t.pagination.total);}}var H=(()=>{class i{route=r(M);i18nService=r(P);linkService=r(L);modulesService=r(I);filterService=r(y);cards;pagination={total:0,page:1,pageSize:12,pageCount:1};filter=void 0;getModules(t=void 0){this.modulesService.getModules({page:this.pagination.page,pageSize:this.pagination.pageSize},this.filter,[this.i18nService.localeId==="hu"?"title":"title_en"]).subscribe(e=>{this.pagination.total=e.meta.pagination.total,this.pagination.pageCount=e.meta.pagination.pageCount;let n=e.data.map(o=>({title:o.attributes?.title,description:O(o.attributes?.description,120),url:this.linkService.getUrl("module",o.attributes?.slug)}));this.cards=n;});}ngOnInit(){this.route.queryParams.subscribe(t=>{let e;try{e=JSON.parse(t.filter);}catch{}if(e){this.filterService.clearAll("module");let n=["programmes"];for(let o of n)if(e[o])for(let F of e[o])this.filterService.addFilter("module",o,F);}}),this.filterService.selectedFilterTagIds$.subscribe(t=>{let e=t?.module;e&&this.applyFilters(e),this.getModules();});}applyFilters(t){let e={};for(let[n,o]of Object.entries(t))o.length&&(e?.or||(e.or=[]),e.or.push({[n]:{id:{in:o}}}));this.filter=e;}onPageChange(t){this.pagination.page=t,this.getModules();}static ɵfac=function(e){return new(e||i)();};static ɵcmp=f({type:i,selectors:[["app-module-list-page"]],hostAttrs:[1,"list-page"],decls:4,vars:4,consts:()=>{let t;return t="Modules",[[1,"mome-container","rvspace-4"],["title",t],[3,"collection","filters"],[3,"cards"],[3,"valueChange","value","total"]];},template:function(e,n){e&1&&(p(0,"div",0),d(1,"app-heading",1)(2,"app-filter",2),_(3,G,2,3),c()),e&2&&(a(2),l("collection","module")("filters",C(3,x)),a(),S(n.cards?3:-1));},dependencies:[T,E,b,A],encapsulation:2});}return i;})();function O(i,s){return i?i.length>s?i.substring(0,s)+"...":i:void 0;}export{H as ModuleListPage};/**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.