1import{$t as ZC,Br as vb,Bt as Wg,Dn as gb,Fr as ub,H as Ji,Jt as Xw,M as ID,Vr as vh,er as oC,f as D,fr as qg,gr as rC,hn as dV,j as IC,pn as cw,qn as nC,s as Bl,x as Em,yn as eC}from"./chunk-DFujMvHX.js";import{c as dn,g as nr,s as cr}from"./chunk-C6t77vqJ.js";import"./chunk-Byi-0lGj.js";import{X as I$1,Y as G$1}from"./main-PT2455ZF.js";import{t as Z}from"./chunk-M90hlf6O.js";import{t as b}from"./chunk-C0LakJy7.js";import{n as he,r as ye,t as _e}from"./chunk-D0AIQBT0.js";var L=()=>[0,1,2,3,4];var z=()=>({width:`300px`,height:`390px`,borderRadius:`8px`,margin:`8px`});var I=(e,l)=>l?.id;function j(e,l){if(e&1&&(Ji(0,`a`,0),Wg(1,`app-card-article`,2),Bl()),e&2){let t=IC(2).$implicit;qg(`href`,IC(2).environment.configuration.urlApp,vh),ID(),qg(`article`,t)(`obscure`,!0)}}function q(e,l){if(e&1&&(Ji(0,`a`,1),Wg(1,`app-card-article`,3),Bl()),e&2){let t=IC(2).$implicit;qg(`href`,`/`+IC(2).basePath()+`/`+t.slug,vh),ID(),qg(`article`,t)}}function H(e,l){if(e&1&&Xw(0,j,2,3,`a`,0)(1,q,2,2,`a`,1),e&2){let t=IC(),i=t.$index,s=t.$count,k=IC(2);eC(i===s-1&&(k.articles()?.length??0)>1?0:1)}}function G(e,l){if(e&1&&Xw(0,H,2,1),e&2){let t=l.$implicit;eC(t&&(t==null?null:t.slug)!==null?0:-1)}}function U(e,l){if(e&1&&(Ji(0,`app-carousel`),rC(1,G,1,1,null,null,I),Bl()),e&2){let t=IC();ID(),oC(t.articles())}}function J(e,l){e&1&&Wg(0,`ngx-skeleton-loader`,4),e&2&&qg(`theme`,ub(1,z))}function W(e,l){e&1&&(Ji(0,`app-carousel`),rC(1,J,1,2,`ngx-skeleton-loader`,4,nC),Bl()),e&2&&(ID(),oC(ub(0,L)))}var F=(()=>{class e{constructor(){this.title=dV.required(),this.articles=dV.required(),this.basePath=dV.required(),this.environment=cr}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵcmp=cw({type:e,selectors:[[`app-news-category`]],inputs:{title:[1,`title`],articles:[1,`articles`],basePath:[1,`basePath`]},decls:6,vars:2,consts:[[`target`,`_blank`,3,`href`],[3,`href`],[3,`article`,`obscure`],[3,`article`],[3,`theme`]],template:function(i,s){i&1&&(Ji(0,`section`)(1,`header`)(2,`h2`),ZC(3),Bl()(),Xw(4,U,3,0,`app-carousel`)(5,W,3,1,`app-carousel`),Bl()),i&2&&(ID(3),Em(s.title()),ID(),eC(s.articles()?.length?4:5))},dependencies:[Z,_e,he,ye],styles:[`header[_ngcontent-%COMP%]{margin-bottom:1.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{display:inline-block;font-style:italic;font-weight:600;font-size:1.5rem;margin:0;color:var(--%NS%category-accent-color, var(--%NS%color-blue-hight))}a[_ngcontent-%COMP%]{display:flex}`]})}}return e})();var de=(()=>{class e{constructor(){this._searchResourceService=D(G$1),this.activitiesAndLeisure$=this._searchResourceService.getPublishedArticles(I$1.SearchActivitiesAndLeisure),this.event$=this._searchResourceService.getPublishedArticles(I$1.SearchEvents,{orderByField:`startDate`,orderDirection:`ASCENDING`}),this.gamesAndTraining$=this._searchResourceService.getPublishedArticles(I$1.SearchGamesAndTraining),this.safetyAndPrevention$=this._searchResourceService.getPublishedArticles(I$1.SearchSafetyAndPrevention),this.wellBeingAndHealth$=this._searchResourceService.getPublishedArticles(I$1.SearchWellBeingAndHealth)}static{this.ɵfac=function(i){return new(i||e)}}static{this.ɵcmp=cw({type:e,selectors:[[`app-news`]],decls:24,vars:20,consts:[[1,`container-banner`],[`ngSrc`,`assets/images/banner-news.webp`,`alt`,`Nos actualités`,`height`,`579`,`width`,`1878`,`priority`,``,1,`banner`],[1,`events`],[`basePath`,`evenements`,3,`title`,`articles`],[1,`activity-and-leisure`],[`basePath`,`activites-et-loisirs`,3,`title`,`articles`],[1,`game-and-training`],[`basePath`,`jeux-et-entrainement`,3,`title`,`articles`],[1,`security-and-prevention`],[`basePath`,`securite-et-prevention`,3,`title`,`articles`],[1,`well-being-and-health`],[`basePath`,`bien-etre-et-sante`,3,`title`,`articles`]],template:function(i,s){i&1&&(Ji(0,`main`)(1,`header`,0)(2,`div`)(3,`h1`),ZC(4,`Nos actualités`),Bl(),Ji(5,`p`),ZC(6,`Découvre nos articles incontournables sur la santé, le bien-être, la sécurité, la prévention, et reste à l'affût des événements à venir pour prendre soin de tes animaux avec passion !`),Bl()(),Wg(7,`img`,1),Bl(),Ji(8,`section`,2),Wg(9,`app-news-category`,3),gb(10,`async`),Bl(),Ji(11,`section`,4),Wg(12,`app-news-category`,5),gb(13,`async`),Bl(),Ji(14,`section`,6),Wg(15,`app-news-category`,7),gb(16,`async`),Bl(),Wg(17,`app-download-app`),Ji(18,`section`,8),Wg(19,`app-news-category`,9),gb(20,`async`),Bl(),Ji(21,`section`,10),Wg(22,`app-news-category`,11),gb(23,`async`),Bl()()),i&2&&(ID(9),qg(`title`,`Ãvènements`)(`articles`,vb(10,10,s.event$)),ID(3),qg(`title`,`Activités et Loisirs`)(`articles`,vb(13,12,s.activitiesAndLeisure$)),ID(3),qg(`title`,`Jeux et Entrainement`)(`articles`,vb(16,14,s.gamesAndTraining$)),ID(4),qg(`title`,`Sécurité et Prévention`)(`articles`,vb(20,16,s.safetyAndPrevention$)),ID(3),qg(`title`,`Bien-être et Santé`)(`articles`,vb(23,18,s.wellBeingAndHealth$)))},dependencies:[F,b,nr,dn],styles:[`.container-banner[_ngcontent-%COMP%]{position:relative;height:50vh;width:100%;overflow:hidden}.container-banner[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center}.container-banner[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:550px}.container-banner[_ngcontent-%COMP%] div[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.5rem}.container-banner[_ngcontent-%COMP%] .banner[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}section[_ngcontent-%COMP%]{max-width:90%;margin:2rem auto;padding:1rem}section.events[_ngcontent-%COMP%]{--%NS%category-accent-color: var(--%NS%color-pink-hight)}
1section.activity-and-leisure[_ngcontent-%COMP%]{--%NS%category-accent-color: #7C5CD9}section.game-and-training[_ngcontent-%COMP%]{--%NS%category-accent-color: var(--%NS%color-blue-hight)}section.security-and-prevention[_ngcontent-%COMP%]{--%NS%category-accent-color: var(--%NS%color-success)}section.well-being-and-health[_ngcontent-%COMP%]{--%NS%category-accent-color: var(--%NS%color-blue)}@media(max-width:768px){section[_ngcontent-%COMP%]{max-width:100%;padding:.3rem}}`]})}}return e})();export{de as NewsComponent};
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.