1import{c as _e,d as fe}from"./chunk-ILIGNJRC.js";import"./chunk-BYUXZABT.js";import{Ia as pe,Ob as ge,Pa as de,Y as I,Z as R,db as me,r as le,s as se}from"./chunk-CSKO464Y.js";import"./chunk-RFZ65DFT.js";import"./chunk-ZAELU3GP.js";import"./chunk-KCBWTIVH.js";import"./chunk-Q7LOV5U2.js";import"./chunk-ZS7OWNSY.js";import"./chunk-DIZWDXBB.js";import"./chunk-Q4MTVQC2.js";import{a as oe,b as ae,c as ce}from"./chunk-RRAYDVNW.js";import{Cb as ie,Na as C,Ob as ne,ab as L,lc as re,wb as f}from"./chunk-WGWIBZ2L.js";import{$b as v,$c as m,Fa as h,Fc as W,Ga as u,Ha as H,Ia as K,Ib as s,Kb as B,Ob as g,Oc as $,Oe as te,Pb as j,Qa as M,Qc as Q,Rb as U,Sb as q,Ta as S,Tb as a,Ub as c,Vb as p,Z as V,Zb as P,_c as Y,ac as d,ad as Z,db as z,gd as J,hb as r,pc as w,qc as b,qd as X,rc as D,tb as E,td as T,ya as x,ye as ee,zb as _}from"./chunk-6LP6WHZQ.js";import{a as F,b as k}from"./chunk-5KTCK5IS.js";function Pe(t,l){if(t&1){let e=P();a(0,"p-image",9),v("onImageError",function(n){h(e);let o=d();return u(o.handleImageError(n))}),c()}if(t&2){let e=d();s("src",e.content().image)("alt",e.content().description)("loading",e.imageLoading.LAZY)}}function ve(t,l){t&1&&p(0,"ppg-rich-text",8),t&2&&s("content",l)}var he=(()=>{class t{constructor(){this.content=M.required(),this.fallbackImage=M(ne),this.currentSiteState=x(re),this.imageLoading=L}handleImageError(e){let i=e.target;i.src=this.fallbackImage()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["ppg-article-list-item"]],inputs:{content:[1,"content"],fallbackImage:[1,"fallbackImage"]},decls:12,vars:9,consts:[[1,"article-content-card","flex","flex-column","lign-items-center","md:flex-row","md:gap-3",3,"href","target"],["imageClass","card-image",1,"card-image-container",3,"src","alt","loading"],[1,"text-container","flex","flex-column","flex-1","gap-2","align-items-stretch"],[1,"flex","align-items-start","justify-content-between","align-items-stretch"],[1,"card-type"],[1,"pi","pi-arrow-up-right","arrow-up-right","text-base"],[1,"card-type-description"],[1,"card-title","font-bold"],[1,"card-description","block","pt-3","md:pt-0",3,"content"],["imageClass","card-image",1,"card-image-container",3,"onImageError","src","alt","loading"]],template:function(i,n){if(i&1&&(a(0,"a",0),_(1,Pe,1,3,"p-image",1),a(2,"div",2)(3,"div",3)(4,"div",4),w(5),$(6,"date"),c(),p(7,"i",5),c(),a(8,"div",6)(9,"h5",7),w(10),c(),_(11,ve,1,1,"ppg-rich-text",8),c()()()),i&2){let o;s("href",n.content().pageUrl,z)("target","_blank"),r(),g(n.content().image?1:-1),r(4),b(Q(6,6,n.content().publishedDate,"EEEE, MMMM d, y")),r(5),b(n.content().title),r(),g((o=n.content().description)?11:-1,o)}},dependencies:[T,X,R,I,oe],styles:["[_nghost-%COMP%] .card-image{width:100%;height:192px;object-fit:cover;background:var(--color-neutral-25)}@media all and (min-width:768px){[_nghost-%COMP%] .card-image{width:281.75px;height:188px;border-radius:6px}}[_nghost-%COMP%] .pi-arrow-up-right{color:var(--p-pds-on-surface-primary-medium)}.article-content-card[_ngcontent-%COMP%]{border-radius:6px;border:1px solid var(--card-border-neutral-default, var(--color-light-gray-200));color:inherit;text-decoration:none}@media all and (min-width:768px){.article-content-card[_ngcontent-%COMP%]{padding:17.5px}}.article-content-card[_ngcontent-%COMP%] .card-image-container[_ngcontent-%COMP%]{width:100%;height:192px}@media all and (min-width:768px){.article-content-card[_ngcontent-%COMP%] .card-image-container[_ngcontent-%COMP%]{width:unset;height:188px}}.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{width:100%;align-self:stretch;padding:17.5px}@media all and (min-width:768px){.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{padding:0}.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-type-description[_ngcontent-%COMP%]{min-height:105.5px}}.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-type[_ngcontent-%COMP%]{color:var(--text-color-secondary);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis}.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{color:var(--p-pds-on-surface-primary-medium);margin:0}@media all and (min-width:768px){.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis}}.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-description[_ngcontent-%COMP%]{color:var(--p-pds-on-surface-neutral-extreme-strong)}@media all and (min-width:768px){.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-description[_ngcontent-%COMP%]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;text-overflow:ellipsis}}.article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-catalog[_ngcontent-%COMP%], .article-content-card[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .card-description[_ngcontent-%COMP%]{font-size:var(--font-size-xs)}"],changeDetection:0})}}return t})();var we=t=>({"page-section with-margin":t});function Oe(t,l){t&1&&(a(0,"section",0)(1,"h1"),w(2),c()()),t&2&&(r(2),b(l))}function Me(t,l){if(t&1&&(a(0,"section",1),p(1,"p-image",8),c()),t&2){let e=l,i=d();s("ngClass",W(4,we,!i.content().showFilterList)),r(),s("src",e.url)("alt",e.description)("loading",i.imageLoading.LAZY)}}function be(t,l){t&1&&(a(0,"section",2),p(1,"ppg-hero-banner",9),c()),t&2&&(r(),s("content",l.content))}function ye(t,l){if(t&1&&(a(0,"div",14),p(1,"i",18)(2,"ppg-resource-item",19),c()),t&2){let e=d(2);
1r(2),s("resourceKey",e.resourceItem.SEARCH_PAGE_NO_FILTERS_SELECTED)}}function Ae(t,l){if(t&1){let e=P();a(0,"div",15)(1,"button",20),v("click",function(){h(e);let n=d(2);return u(n.clearAllFilters())}),H(),a(2,"svg",21),p(3,"use",22),c(),K(),p(4,"ppg-resource-item",23),w(5),p(6,"ppg-resource-item",23),c()()}if(t&2){let e=d(2);r(4),s("resourceKey",e.resourceItem.SEARCH_PAGE_CLEAR_ALL_FILTERS),r(),D(" ",e.selectedFiltersNumber()," "),r(),s("resourceKey",e.resourceItem.SEARCH_PAGE_CLEAR_TOTAL_COUNT_SELECTED_FILTERS)}}function Se(t,l){if(t&1){let e=P();a(0,"section",10)(1,"h2",11),p(2,"ppg-resource-item",12),c(),a(3,"div",13),_(4,ye,3,1,"div",14)(5,Ae,7,3,"div",15),a(6,"ppg-filter-accordion",16),v("selectionChanged",function(n){h(e);let o=d();return u(o.toggleSelection(n))}),c()()(),p(7,"p-divider",17)}if(t&2){let e=d();r(2),s("resourceKey",e.resourceItem.SEARCH_PAGE_FILTERS),r(2),g(e.selectedFiltersNumber()?5:4),r(2),s("filterGroups",e.filterGroups())}}function Ee(t,l){if(t&1){let e=P();a(0,"section",26)(1,"ppg-filter-popover",27),v("selectionChanged",function(n){h(e);let o=d(2);return u(o.toggleSelection(n))})("clearSelection",function(){h(e);let n=d(2);return u(n.clearAllFilters())}),c()()}if(t&2){let e=d(2);r(),s("resources",e.filterPopoverResources())("filterGroups",e.filterGroups())}}function Te(t,l){if(t&1&&(a(0,"h2",24),w(1),p(2,"ppg-resource-item",25),c(),_(3,Ee,2,2,"section",26)),t&2){let e=d();r(),D(" ",l," "),r(),s("resourceKey",e.resourceItem.PAGINATION_RESULTS),r(),g(e.filtersVisible()?3:-1)}}function Le(t,l){if(t&1&&(a(0,"h2"),p(1,"ppg-resource-item",12),c()),t&2){let e=d();r(),s("resourceKey",e.resourceItem.PAGINATION_NO_RESULTS)}}function Ie(t,l){if(t&1&&p(0,"ppg-article-list-item",9),t&2){let e=l.$implicit;s("content",e.content)}}function Re(t,l){t&1&&U(0,Ie,1,1,"ppg-article-list-item",9,j),t&2&&q(l)}function Fe(t,l){if(t&1){let e=P();a(0,"section",7)(1,"p-paginator",28),v("onPageChange",function(n){h(e);let o=d();return u(o.paginate(n))}),c()()}if(t&2){let e=d();r(),s("first",e.first())("rows",e.rows())("totalRecords",e.filteredArticlesNumber())("rowsPerPageOptions",e.rowsPerPageOptions)("showCurrentPageReport",!0)("currentPageReportTemplate",e.currentPageReportTemplate())}}var lt=(()=>{class t{constructor(){this.pageContentClass=!0,this.content=M.required(),this.resourceService=x(ae),this.window=x(ie),this.route=x(ee),this.router=x(te),this.filters=S([]),this.filterGroups=m(()=>[{label:this.content().filterListTitle,value:this.content().filterListTitle,isSelectedTab:!1,filters:this.filters()}]),this.selectedFilters=m(()=>this.filters().filter(({checked:e})=>e).map(({value:e})=>e)),this.selectedFiltersNumber=m(()=>this.selectedFilters().length),this.filtersVisible=m(()=>this.content().showFilterList&&this.filters().length>1),this.first=S(f.first),this.rows=S(f.rows),this.end=m(()=>Math.min(this.first()+this.rows(),this.filteredArticlesNumber())),this.pageIndex=m(()=>Math.round(this.first()/this.rows())),this.rowsPerPageOptions=f.rowsPerPageOptions,this.articleList=m(()=>this.content().articleList.sort((e,i)=>new Date(i.content?.publishedDate||0).getTime()-new Date(e.content?.publishedDate||0).getTime())),this.filteredArticleList=m(()=>this.selectedFiltersNumber()?this.articleList().filter(e=>this.haveCommonItem(e.content.articleType,this.selectedFilters())):this.articleList()),this.filteredArticlesNumber=m(()=>this.filteredArticleList().length),this.articleListToDisplay=m(()=>this.filteredArticleList().slice(this.first(),this.end())),this.resourceItem=C,this.imageLoading=L,this.filtersText=m(()=>this.resourceService.getResourceByKey(C.SEARCH_PAGE_FILTERS)),this.clearAllFiltersText=m(()=>this.resourceService.getResourceByKey(C.SEARCH_PAGE_CLEAR_FILTERS_BUTTON)),this.currentPageReportTemplate=m(()=>{let e=this.resourceService.getResourceByKey(C.SEARCH_PAGE_SHOWING),i=this.resourceService.getResourceByKey(C.SEARCH_PAGE_TO),n=this.resourceService.getResourceByKey(C.SEARCH_PAGE_OF),o=this.resourceService.getResourceByKey(C.SEARCH_PAGE_ENTRIES);return`${e} {first} ${i} {last} ${n} {totalRecords} ${o}`}),this.filterPopoverResources=m(()=>({open:this.filtersText(),title:this.filtersText(),clear:this.clearAllFiltersText()})),Z(()=>{this.filters(),Y(()=>{this.first()===f.first&&this.rows()===f.rows&&this.paginate({first:f.first,rows:f.rows})})})}ngOnInit(){this.initializeFilters(),this.initializePaginationFromQueryParams()}paginate(e,i=!0){this.updatePaginationParams(e),i&&this.updateUrlWithPaginationParams()}toggleSelection({filter:e,checked:i}){this.filters.update(n=>n.map(o=>o.value===e?k(F({},o),{checked:i}):o))}clearAllFilters(){this.filters.update(e=>e.map(i=>k(F({},i),{checked:!1}
1)))}initializePaginationFromQueryParams(){this.route.queryParams.pipe(V(1)).subscribe(e=>{let i=e.index,n=e.size,o=parseInt(i,10)||0,O=parseInt(n,10)||f.rows,y=o*O,A=i===void 0&&n===void 0;this.paginate({first:y,rows:O},A)})}updatePaginationParams({first:e,rows:i}){this.first.set(e??f.first),this.rows.set(i??f.rows)}scrollToTop(){this.window.scrollTo({top:0,behavior:"smooth"})}updateUrlWithPaginationParams(){this.router.navigate([],{relativeTo:this.route,queryParams:{index:this.pageIndex(),size:this.rows()},queryParamsHandling:"merge"})}initializeFilters(){this.content().limitResultsToArticleType.forEach(e=>{let i=this.getCountPerType(e);i!==0&&this.filters.update(n=>[...n,{checked:!1,label:e,value:e,count:i}])})}getCountPerType(e){return this.articleList().filter(i=>i.content.articleType.includes(e)).length}haveCommonItem(e,i){let n=new Set(e);return i.some(o=>n.has(o))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["ppg-article-list"]],hostVars:2,hostBindings:function(i,n){i&2&&B("page-content",n.pageContentClass)},inputs:{content:[1,"content"]},decls:13,vars:7,consts:[[1,"page-section","page-section-x-padded"],[1,"hero-image-section",3,"ngClass"],[1,"hero-banner-section","w-full","max-w-full","overflow-hidden"],[1,"page-section","page-section-x-padded","flex","flex-column","lg:flex-row","gap-2"],[1,"article-list-results","flex","flex-column","flex-1"],[1,"article-divider","my-4"],[1,"flex","flex-column","flex-1","gap-4"],[1,"article-pagination"],["imageClass","hero-image",3,"src","alt","loading"],[3,"content"],[1,"hidden","lg:flex","flex-column"],[1,"article-filters-heading","m-0"],[3,"resourceKey"],[1,"filter-container"],[1,"no-filters","flex","align-items-center"],[1,"clear-filters","flex","align-items-center"],[3,"selectionChanged","filterGroups"],["layout","vertical","styleClass","gray-divider",1,"filters-divider","hidden","lg:block"],[1,"pi","pi-exclamation-circle","text-base"],[1,"no-filters-text","ml-1",3,"resourceKey"],[1,"clear-filters-text","flex","align-items-center",3,"click"],[1,"pds-icon","clear-all-icon"],["href","assets/pds-icons.svg#cancel",1,"clear-all-svg"],[1,"inline-block","px-1",3,"resourceKey"],[1,"m-0"],[1,"inline-block",3,"resourceKey"],[1,"dropdown-filters","mt-4","block","lg:hidden"],[3,"selectionChanged","clearSelection","resources","filterGroups"],[3,"onPageChange","first","rows","totalRecords","rowsPerPageOptions","showCurrentPageReport","currentPageReportTemplate"]],template:function(i,n){if(i&1&&(_(0,Oe,3,1,"section",0)(1,Me,2,6,"section",1)(2,be,2,1,"section",2),a(3,"section",3),_(4,Se,8,3),a(5,"section",4),_(6,Te,4,3)(7,Le,2,1,"h2"),p(8,"ppg-horizontal-divider",5),a(9,"section",6),_(10,Re,2,0),c(),p(11,"ppg-horizontal-divider",5),_(12,Fe,2,6,"section",7),c()()),i&2){let o,O,y,A,G,N;g((o=n.content().headline)?0:-1,o),r(),g((O=n.content().heroImage)?1:-1,O),r(),g((y=n.content().heroBanner)?2:-1,y),r(2),g(n.filtersVisible()?4:-1),r(2),g((A=n.filteredArticlesNumber())?6:7,A),r(4),g((G=n.articleListToDisplay())?10:-1,G),r(2),g((N=n.filteredArticlesNumber())?12:-1,N)}},dependencies:[T,J,fe,_e,he,pe,de,ce,se,le,me,R,I,ge],styles:[".with-no-breadcrumbs[_nghost-%COMP%] .hero-image-section[_ngcontent-%COMP%]:first-child, .with-no-breadcrumbs [_nghost-%COMP%] .hero-image-section[_ngcontent-%COMP%]:first-child, .with-no-breadcrumbs[_nghost-%COMP%] .hero-banner-section[_ngcontent-%COMP%]:first-child, .with-no-breadcrumbs [_nghost-%COMP%] .hero-banner-section[_ngcontent-%COMP%]:first-child, .hero-image-section[_ngcontent-%COMP%] + .hero-banner-section[_ngcontent-%COMP%]{margin-top:calc(0px - var(--p-pds-unit-1000))}[_nghost-%COMP%] .hero-image{width:100%;object-fit:cover;object-position:center}@media all and (max-width:1280px){[_nghost-%COMP%] .article-pagination .p-paginator-rpp-dropdown, [_nghost-%COMP%] .article-pagination .p-paginator-current{width:100%;text-align:center}}@media all and (max-width:1280px){[_nghost-%COMP%] .article-pagination .p-paginator-rpp-dropdown{margin-top:10px}}@media all and (max-width:1280px){[_nghost-%COMP%] .article-pagination .p-paginator{justify-content:center}}.hero-image-section[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.hero-image-section.with-margin[_ngcontent-%COMP%]{padding-left:var(--mobile-body-margin-left);padding-right:var(--mobile-body-margin-right)}@media all and (min-width:768px){.hero-image-section.with-margin[_ngcontent-%COMP%]{padding-left:var(--body-margin-left);padding-right:var(--body-margin-right)}}.article-list-results[_ngcontent-%COMP%]{color:var(--p-pds-on-surface-neutral-medium)}.filter-container[_ngcontent-%COMP%]{width:18rem}.no-filters[_ngcontent-%COMP%]{color:var(--p-pds-on-surface-neutral-medium);margin-bottom:10px}.no-filters[_ngcontent-%COMP%], .clear-filters-text[_ngcontent-%COMP%]{font-size:var(--font-size-xs)}.clear-all-icon[_ngcontent-%COMP%]{width:20px;height:20px}.clear-all-icon[_ngcontent-%COMP%] .clear-all-svg[_ngcontent-%COMP%]{fill:var
1(--p-pds-on-surface-primary-medium)}.filter-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:5px 0}.filter-item[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin-right:10px}.filter-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{flex-grow:1;cursor:pointer}.filter-count[_ngcontent-%COMP%]{background:var(--root-surface-ground);border-radius:20px;padding:2px 10px;font-size:12px;color:var(--global-text-color)}.article-filters[_ngcontent-%COMP%] .filter-checkbox[_ngcontent-%COMP%]{border:2px solid var(--color-light-gray-200)}.clear-filters[_ngcontent-%COMP%], .no-filters[_ngcontent-%COMP%]{padding:0;margin:14px 0}.clear-filters-text[_ngcontent-%COMP%]{background:transparent;border:none}.clear-filters-text[_ngcontent-%COMP%], .clear-filters[_ngcontent-%COMP%]{color:var(--p-pds-on-surface-primary-medium);cursor:pointer}.article-pagination[_ngcontent-%COMP%] .p-paginator{justify-content:center}@media all and (min-width:1280px){.article-pagination[_ngcontent-%COMP%] .p-paginator{justify-content:flex-end}}"],changeDetection:0})}}return t})();export{lt as ArticleListComponent};
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.