1import {i}from'./chunk-BJjos6l3.js';import {H}from'./chunk-COdltQzt.js';import {d as dI,c as aa,$ as $t,i as iD,s as sD,q as Gt,D as Di,J as JD,U as Uc,v as gw,G as Gp,x as xv,Y as fh,f as Wp,as as lw,y as yw,R as cD,T as TD,X as lD,z as aw,a5 as xf}from'./main-AZTI3MDG.js';var F=(e,r)=>["/news/",e,r];function z(e,r){if(e&1&&Gp(0,"img",2),e&2){let t=TD();Wp("src",t.newsIcon,xf);}}var O=(()=>{class e{constructor(){this.newsTitle="",this.newsTeaser="",this.newsIcon="";}ngOnInit(){console.log("NewsBoxComponent initialized"),this.newsTitle=this.truncateText(this.newsItem.title,23),this.newsItem.teaser!==null&&this.newsItem.teaser!==""&&(this.newsTeaser=this.truncateText(this.newsItem.teaser,45)),this.newsItem.category!==null&&this.newsItem.category!==""&&(this.newsIcon="assets/icons/news/Icon_"+this.newsItem.category+".svg");}truncateText(t,n){let _=n*3;if(t.length<=_)return t;let m=t.slice(0,_+1),S=m.lastIndexOf(" "),D=m.lastIndexOf("."),C=Math.max(S,D);return C>0&&(m=m.slice(0,C)),console.log("Truncated headline:",m),m+"..."}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=dI({type:e,selectors:[["app-news-box"]],inputs:{newsItem:"newsItem"},decls:12,vars:9,consts:[[1,"news-content-box"],[1,"news-content-box__title"],["width","31","height","31","alt","Alle News ansehen",3,"src"],[1,"news-content-box__text"],[1,"link-more",3,"routerLink"],["src","assets/icons/pfeil_mehr.svg","width","48","height","15","alt","Alle News ansehen"]],template:function(n,s){n&1&&(Di(0,"div",0)(1,"div",1),iD(2,z,1,1,"img",2),Di(3,"h3"),JD(4),Uc()(),Di(5,"div",3)(6,"p"),JD(7),Uc()(),Di(8,"a",4),gw(9,"encodeUrl"),JD(10,"Weiterlesen "),Gp(11,"img",5),Uc()()),n&2&&(xv(2),sD(s.newsIcon?2:-1),xv(2),fh(s.newsTitle),xv(3),fh(s.newsTeaser),xv(),Wp("routerLink",lw(6,F,yw(9,4,s.newsItem.title),s.newsItem.id)));},dependencies:[Gt,aa,$t,i],styles:['@charset "UTF-8";.news-content-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;overflow:hidden;text-decoration:none}.news-content-box[_ngcontent-%COMP%] .news-content-box__title[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;gap:2rem;margin-bottom:2rem}.news-content-box[_ngcontent-%COMP%] .news-content-box__title[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis;font-size:1.5rem;line-height:2rem;font-weight:600;margin:0;padding:0;word-wrap:break-word}.news-content-box[_ngcontent-%COMP%] .news-content-box__text[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;text-overflow:ellipsis;font-size:1rem;line-height:1.5rem;margin:0;padding:0;word-wrap:break-word;height:5rem;margin-bottom:2rem}@media(max-width:767px){.news-content-box[_ngcontent-%COMP%]{margin-bottom:4rem}}'],changeDetection:1});}}return e})();var A=()=>["/unternehmen/news"],R=(e,r)=>r.title;function U(e,r){if(e&1&&Gp(0,"app-headline",1),e&2){let t=TD(2);Wp("text",t.headline||"")("center",false);}}function j(e,r){if(e&1&&(Di(0,"div",4),Gp(1,"app-news-box",9),Uc()),e&2){let t=r.$implicit;xv(),Wp("newsItem",t);}}function $(e,r){if(e&1&&(Di(0,"div",0),iD(1,U,1,2,"app-headline",1),Di(2,"div",2)(3,"div",3),cD(4,j,2,1,"div",4,R),Uc(),Di(6,"div",5)(7,"div",6)(8,"a",7),JD(9,"Alle News ansehen "),Gp(10,"img",8),Uc()()()()()),e&2){let t=TD();xv(),sD((t.headline?.length||0)>0?1:-1),xv(3),lD(t.latestNews),xv(4),Wp("routerLink",aw(2,A));}}var X=(()=>{class e{constructor(){this.showMoreLink=true;}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=dI({type:e,selectors:[["app-latest-news"]],inputs:{latestNews:"latestNews",showMoreLink:"showMoreLink",headline:"headline"},decls:1,vars:1,consts:[[1,"section"],["variant","h2",3,"text","center"],[1,"container-xxl"],[1,"row"],[1,"col-lg-4","col-sm-6","col-12","d-flex"],[1,"row","mt-5"],[1,"col-12"],[1,"link-more",3,"routerLink"],["src","assets/icons/pfeil_mehr.svg","width","48","height","15","alt","Alle News ansehen"],[3,"newsItem"]],template:function(n,s){n&1&&iD(0,$,11,3,"div",0),n&2&&sD(s.latestNews&&s.latestNews.length>0?0:-1);},dependencies:[O,aa,$t,H],styles:[".link-more[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;margin-bottom:3rem;cursor:pointer}.link-more[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-left:.5rem}.link-more[_ngcontent-%COMP%]:hover, .link-more[_ngcontent-%COMP%]:focus{text-decoration:underline}"],changeDetection:1});}}return e})();export{X as LatestNews};
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.