1import{a as j}from"./chunk-75EOQWLR.js";import{a as N}from"./chunk-44SEB3ER.js";import{a as q}from"./chunk-UWOXKIU6.js";import{a as O}from"./chunk-L73FVXHG.js";import{a as R}from"./chunk-M55VKBGM.js";import{a as z}from"./chunk-J57MIVZQ.js";import{a as w}from"./chunk-AWIXLUNX.js";import{a as H}from"./chunk-SGLWGTAN.js";import"./chunk-DCXY7E3F.js";import{c as A}from"./chunk-RQR54N7W.js";import"./chunk-X2UZMNUO.js";import"./chunk-E6WTVY4S.js";import{a as y}from"./chunk-37WAR7JQ.js";import"./chunk-RMRZZ5JT.js";import{h as F}from"./chunk-4BFU6EQM.js";import{c as $,d as M}from"./chunk-ZTJ3X3WW.js";import{a as S}from"./chunk-Q4GWLG4N.js";import{a as K}from"./chunk-OFCQ7IJR.js";import"./chunk-77MRWYHD.js";import"./chunk-GPVZEA7C.js";import"./chunk-BECF3HO5.js";import{$b as D,Cb as c,Kb as f,Lb as v,Mb as s,N as h,Nb as a,Ob as d,Oc as E,Wb as x,Xb as b,Y as u,Za as _,_b as T,db as n,gc as C,hc as g,ia as l,ic as L,la as P,nc as B,oc as k,uc as o,vc as p,wc as I}from"./chunk-OHYQORNL.js";var U=(i,m)=>m.id;function J(i,m){if(i&1&&d(0,"tab-item",2),i&2){let e=m.$implicit,t=b();c("item",e)("title",e.title[t.langService.activeLang()])}}function Q(i,m){if(i&1&&(s(0,"div",4)(1,"div",8)(2,"small",9),C(3),o(4,"customDate"),a(),s(5,"h4",10),C(6),a(),d(7,"p",11),o(8,"domParser"),o(9,"safeHtml"),d(10,"more-button",12),o(11,"translate"),a()()),i&2){let e,t=m.$implicit,r=b();n(3),g(I(4,8,t.actualDate,r.langService.activeLang())),n(2),c("lineClamp",3),n(),g(t.title[r.langService.activeLang()]),n(),c("lineClamp",3)("innerHTML",p(9,13,(e=p(8,11,t.description[r.langService.activeLang()]))==null?null:e.body.innerText),_),n(3),T("labelKey",p(11,15,"action.read")),D("routerLink","/main/about/press-center/view/",t.id,"")}}var fe=(()=>{class i{constructor(){this.itemsPerPage=3,this.langService=l(A),this.destroy$=l(y),this.cdr=l(E),this.sortByPipe=l(S),this.pressCenterService=l(j)}ngOnInit(){this.loadCategories()}onCategoryChange(e){this.selectedCategory=e,this.loadAll()}loadCategories(){this.pressCenterService.getCategories().pipe(u(this.destroy$),h(()=>this.cdr.markForCheck())).subscribe(e=>this.categories=this.sortByPipe.transform(e))}loadAll(){let e={size:this.itemsPerPage,sort:["actualDate,desc"],search:`pressCenter.active=true;pressCenterCategory.id=${this.selectedCategory.id}`};this.pressCenterService.getAll(e).pipe(u(this.destroy$),h(()=>this.cdr.markForCheck())).subscribe(t=>this.pressCenters=t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=P({type:i,selectors:[["press-center-short"]],inputs:{itemsPerPage:"itemsPerPage"},standalone:!0,features:[B([y]),k],decls:16,vars:10,consts:[[1,"mb-6"],[3,"itemChange"],[3,"item","title"],[1,"row","justify-content-center","mb-3","mb-lg-4"],["data-aos","fade",1,"col-md-6","col-lg-6","col-xl-4","mb-3","mb-lg-4"],[3,"items","searchText"],[1,"center"],["routerLink","/main/about/press-center",1,"hb-btn","hb-btn-primary","px-5","fw-700"],[1,"hb-card","d-flex","flex-column","hover","h-100"],[1,"description","mb-2","mb-lg-3"],[1,"mb-3",3,"lineClamp"],[1,"fs-18","mb-3",3,"lineClamp","innerHTML"],[1,"mt-auto",3,"labelKey","routerLink"]],template:function(t,r){t&1&&(s(0,"div",0)(1,"h2"),C(2),o(3,"translate"),a(),s(4,"tabs",1),x("itemChange",function(G){return r.onCategoryChange(G)}),f(5,J,1,2,"tab-item",2,U),a(),s(7,"div",3),f(8,Q,12,17,"div",4,U),o(10,"sortBy"),a(),d(11,"no-result-alert",5),s(12,"div",6)(13,"button",7),C(14),o(15,"translate"),a()()()),t&2&&(n(2),g(p(3,4,"about.pressCenter.title")),n(3),v(r.categories),n(3),v(p(10,6,r.pressCenters)),n(3),c("items",r.pressCenters)("searchText",r.selectedCategory==null?null:r.selectedCategory.title[r.langService.activeLang()]),n(3),L(" ",p(15,8,"about.pressCenter.all")," "))},dependencies:[K,S,q,z,F,R,M,$,N,w,H,O],encapsulation:2,changeDetection:0})}}return i})();export{fe as PressCenterShortComponent};
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.