1"use strict";(self.webpackChunkgw_core_sites_app=self.webpackChunkgw_core_sites_app||[]).push([["fund-press-releases"],{93872:(N,m,r)=>{r.r(m),r.d(m,{FundPressReleasesModule:()=>z});var p=r(53242),d=r(54364),o=r(3138),v=r(37668),e=r(2316),_=r(92612),g=r(68411),P=r(79441),u=r(22663),f=r(66237);function x(t,i){if(1&t&&(e.TgZ(0,"a",2),e._uU(1),e.ALo(2,"translate"),e._UZ(3,"eds-icon",3),e.qZA()),2&t){const s=e.oxw();e.Q6J("href",null==s.release?null:s.release.pdfLink,e.LSH)("noMargin",!0),e.xp6(1),e.hij(" ",e.lcZ(2,3,"products.press-releases_download-pdf")," ")}}function b(t,i){if(1&t&&(e.TgZ(0,"a",5),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&t){const s=e.oxw(2);e.Q6J("href",null==s.release?null:s.release.pageLink,e.LSH)("noMargin",!0),e.xp6(1),e.hij(" ",e.lcZ(2,3,"products.press-releases_view")," ")}}function T(t,i){if(1&t&&e.YNc(0,b,3,5,"a",4),2&t){const s=e.oxw();e.Q6J("ngIf",null==s.release?null:s.release.pageLink)}}const S=g.Y.getLogger("ActionCellRendererComponent");let w=(()=>{class t{agInit(s){S.debug(s),this.params=s,this.release=this.params.data}}return t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=e.Xpm({type:t,selectors:[["ft-action-cell-renderer"]],decls:3,vars:2,consts:[["edsButton","secondary","size","compact","target","_blank",3,"href","noMargin",4,"ngIf","ngIfElse"],["viewLink",""],["edsButton","secondary","size","compact","target","_blank",3,"href","noMargin"],["type","download","size","small","edsPadding","","edsPaddingLeft","xs"],["edsButton","secondary","size","compact",3,"href","noMargin",4,"ngIf"],["edsButton","secondary","size","compact",3,"href","noMargin"]],template:function(s,a){if(1&s&&(e.YNc(0,x,4,5,"a",0),e.YNc(1,T,1,1,"ng-template",null,1,e.W1O)),2&s){const n=e.MAs(2);e.Q6J("ngIf",null==a.release?null:a.release.pdfLink)("ngIfElse",n)}},directives:[d.O5,o.INY,o.Hq3,o.oJW,o.cph],pipes:[f.X],styles:[""]}),t})();var L=r(5974),F=r(97735),G=r(59278),D=r(27513);g.Y.getLogger("Fund Press Releases Service");let h=(()=>{class t{constructor(s,a,n){this.siteConfig=s,this.translateService=a,this.dateFormatter=n}getGridDefaultColDef(){return{headerComponentFramework:o.b_v,sortable:!0,flex:1,wrapText:!0,autoHeight:!0}}getGridColDefs(){return[{headerName:this.translateService.instant("products.press-releases_publication-date"),field:"publicationDateStd",valueFormatter:s=>s.data.publicationDate,sort:"desc",minWidth:90,comparator:(0,F.Wk)(L.yJ)},{headerName:this.translateService.instant("products.press-releases_name"),field:"releaseTitle",wrapText:!0,autoHeight:!0,flex:1,cellStyle:{"word-break":"break-word"}},{headerName:this.translateService.instant("products.press-releases_press-release"),field:"releaseType",cellStyle:{"word-break":"break-word"}},{headerName:this.translateService.instant("products.press-releases_action"),field:"pdfLink",sortable:!1,cellRenderer:"actionCellRendererComponent",cellRendererParams:{print:{hide:!0}},autoHeight:!0,minWidth:120}]}getGridRowData(s,a,n){return s.map(l=>{const C=l.date;return{publicationDate:this.dateFormatter.transform(C,this.siteConfig.common.dateFormat),publicationDateStd:C,releaseTitle:l.title,releaseType:this.translateService.instant(`products.press-releases_${l.type}`),pageLink:this.createDetailPageLink(l.path,a,n),pdfLink:this.extractPdfLink(l.pdfLink)}})}extractPdfLink(s){try{return JSON.parse(s).url||null}catch{return null}}createDetailPageLink(s,a,n){return"/"+a+s.substring(n.length,s.lastIndexOf("/"))}}return t.\u0275fac=function(s){return new(s||t)(e.LFG(G.r5),e.LFG(D.s),e.LFG(d.uU))},t.\u0275prov=e.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var y=r(93631);const R=["pressReleaseGrid"];function Z(t,i){if(1&t&&e._UZ(0,"eds-title",9),2&t){const s=e.oxw(2);e.Q6J("isLight",!0)("title",s.title)}}function A(t,i){if(1&t){const s=e.EpF();e.TgZ(0,"div",3),e.TgZ(1,"div",10),e.TgZ(2,"eds-pagination",11),e.NdJ("pageChanged",function(n){return e.CHM(s),e.oxw(2).goToPage(n)}),e.ALo(3,"translate"),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&t){const s=e.oxw(2);e.xp6(2),e.Q6J("pages",s.totalPages)("prevPageText",e.lcZ(3,4,"products.previous"))("prevPageText",e.lcZ(4,6,"products.next"))("ariaLabelGoToPage",e.lcZ(5,8,"products?.ariaLabelGoToPage"))}}function M(t,i){if(1&t){const s=e.EpF();e.TgZ(0,"div",1),e.TgZ(1,"div"),e.YNc(2,Z,1,2,"eds-title",2),e.TgZ(3,"div",3),e._UZ(4,"eds-proximal",4),e.TgZ(5,"ag-grid-angular",5,6),e.NdJ("sortChanged",function(){return e.CHM(s),e.oxw().onSortChanged()})("gridReady",function(){return e.CHM(s),e.oxw().onGridReady()})("columnResized",function(){return e.CHM(s),e.oxw().onColumnResized()}),e.qZA(),e._UZ(7,"eds-proximal",7),e.qZA(),e.YNc(8,A,6,10,"div",8),e.qZA(),e.qZA()}if(2&t){const s=e.oxw();e.Q6J("edsSpacing","auto"===s.spacingBottom?"xl":s.spacingBottom),e.xp6(1),e.Tol(s.containerClass),e.xp6(1),e.Q6J("ngIf",s.title),e.xp6(3),e.Q6J("columnDefs",s.colDefs)("defaultColDef",s.defaultColDef)("rowData",
1s.sortedTableRows)("frameworkComponents",s.frameworkComponents)("paginationPageSize",s.pageSize)("pagination",!0)("suppressPaginationPanel",!0)("suppressDragLeaveHidesColumns",!0)("enableCellTextSelection",!0),e.xp6(3),e.Q6J("ngIf",s.totalPages>0)}}const c=g.Y.getLogger("FundPressReleasesComponent");let k=(()=>{class t extends _.N{constructor(s,a,n,l){super(),this.pressReleasesService=s,this.debugService=a,this.agGridService=n,this.cdr=l,this.frameworkComponents={actionCellRendererComponent:w},this.sortedTableRows=[],this.totalPages=0,this.unsubscribe$=new P.xQ,this.pageSize=10,this.onSortChanged=()=>this.cdr.detectChanges(),this.pagedRecords=new o.B54(this.pageSize)}ngOnInit(){const s=this.component?.getModels();c.debug("pressReleasesDto",s);const a=this.component?.getParameters();this.title=a?.title,this.spacingBottom=a?.marginBottom,this.containerClass=a?.container,this.defaultColDef=this.pressReleasesService.getGridDefaultColDef(),c.debug("defaultColDef",this.defaultColDef),this.colDefs=this.pressReleasesService.getGridColDefs(),c.debug("colDefs",this.colDefs),this.sortedTableRows=this.pressReleasesService.getGridRowData(s.releases.releases,this.component.getModels()?.config?.detailPageRoot,this.component.getModels()?.config?.folder),c.debug("sortedTableRows",this.sortedTableRows),this.pagedRecords.numberOfPages$.pipe((0,u.R)(this.unsubscribe$)).subscribe(n=>{this.totalPages=n,this.paginationComponent?.updatePagination(n)}),this.pagedRecords.pageNumber$.pipe((0,u.R)(this.unsubscribe$)).subscribe(n=>{const l=this.pressReleaseGrid;l&&l.api.paginationGoToPage(n-1)}),this.pagedRecords.records=this.sortedTableRows,this.debugService.getExpandAllComponents$().pipe((0,u.R)(this.unsubscribe$)).subscribe(n=>{n&&(this.pageSize=this.pagedRecords.expandAll())})}onGridReady(){this.agGridService.registerGrid(this.pressReleaseGrid,this.pressReleaseEl),this.pressReleaseGrid.api.resetRowHeights()}onColumnResized(){this.pressReleaseGrid.api.resetRowHeights()}ngOnDestroy(){this.agGridService.removeGrid(this.pressReleaseGrid),this.unsubscribe$.next(),this.unsubscribe$.complete()}goToPage(s){this.pagedRecords&&"load"!==s.action&&(this.pagedRecords.pageNumber=s.page)}}return t.\u0275fac=function(s){return new(s||t)(e.Y36(h),e.Y36(y.r),e.Y36(o.Z8X),e.Y36(e.sBO))},t.\u0275cmp=e.Xpm({type:t,selectors:[["ft-fund-press-releases"]],viewQuery:function(s,a){if(1&s&&(e.Gf(R,5,p.N8),e.Gf(R,5,e.SBq),e.Gf(o.QtL,5)),2&s){let n;e.iGM(n=e.CRH())&&(a.pressReleaseGrid=n.first),e.iGM(n=e.CRH())&&(a.pressReleaseEl=n.first),e.iGM(n=e.CRH())&&(a.paginationComponent=n.first)}},features:[e.qOj],decls:1,vars:1,consts:[["edsGrid","",3,"edsSpacing",4,"ngIf"],["edsGrid","",3,"edsSpacing"],["edsSpacing","md","size","h2","theme","dark",3,"isLight","title",4,"ngIf"],["edsRow","","edsSpacing","lg"],["placement","PressReleaseProximalTop"],["domLayout","autoHeight",1,"ag-theme-frk","ag-theme-frk--dark",2,"width","100%","height","100%",3,"columnDefs","defaultColDef","rowData","frameworkComponents","paginationPageSize","pagination","suppressPaginationPanel","suppressDragLeaveHidesColumns","enableCellTextSelection","sortChanged","gridReady","columnResized"],["pressReleaseGrid",""],["placement","PressReleaseProximalBottom"],["edsRow","","edsSpacing","lg",4,"ngIf"],["edsSpacing","md","size","h2","theme","dark",3,"isLight","title"],["edsCol",""],[3,"pages","prevPageText","ariaLabelGoToPage","pageChanged"]],template:function(s,a){1&s&&e.YNc(0,M,9,14,"div",0),2&s&&e.Q6J("ngIf",(null==a.sortedTableRows?null:a.sortedTableRows.length)>0)},directives:[d.O5,o.ljP,o.OPD,o.vZ,o.JEP,p.N8,o.r3N,o.iKq,o.QtL],pipes:[f.X],styles:[""],changeDetection:0}),t})(),z=(()=>{class t{getComponentMapping(){return{"Fund Press Releases":k}}}return t.\u0275fac=function(s){return new(s||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({providers:[h],imports:[[p.sF.withComponents([o.b_v]),d.ez,v.m8]]}),t})()}}]); 2//# sourceMappingURL=fund-press-releases.55b914c678760b643dc8.js.map
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.