1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9771],{33582:function(e,t,n){n.d(t,{ae:function(){return o},dD:function(){return i},jY:function(){return l}});var r=n(32882),a=n(82849);let o=async(e,t)=>{var n;let o=a.Z.startTimer(),s=null!==(n=null==e?void 0:e.map(e=>e.id))&&void 0!==n?n:[],i="{\n featuredNews: pages(ids: [".concat(s.join(", "),"]) {\n id\n name\n url\n properties\n }\n }"),l=await (0,r.k)(t,i);return l.featuredNews.forEach(e=>{e.properties.overviewImage&&(e.properties.image=e.properties.overviewImage)}),o.done({message:"getGraphQLContent: getFeaturedNews",level:"debug"}),l.featuredNews},s=e=>Number(e)>0?Number(e):12,i=async(e,t,n,o,i)=>{let l=a.Z.startTimer(),u=e.map(e=>e.id),c=o?o.map(e=>'"|'.concat(e.uid,'|"')):[],p=c.length>0?' filter: [{alias: "searchableNewsCategoryType", values: ['.concat(c,"]}],"):"",d='{\n news: pageSearch(documentType: ["newsPage"], rootIds: ['.concat(u.join(", "),"],").concat(p," limit: ").concat(s(i),", offset: ").concat(s(i)*t,', orderDesc: "articleDateSortable", orderType: "Long") {\n totalCount\n pages {\n id\n url\n properties\n }\n }\n }'),g=await (0,r.k)(n,d);return g.news.pages.forEach(e=>{e.properties.overviewImage&&(e.properties.image=e.properties.overviewImage)}),l.done({message:"getGraphQLContent: getNews",level:"debug"}),g.news},l=async(e,t,n,o,s)=>{var i;let l=a.Z.startTimer(),u=null!==(i=null==e?void 0:e.map(e=>e.id))&&void 0!==i?i:[],c=s?s.map(e=>'"|'.concat(e.uid,'|"')):[],p=c.length>0?' filter: [{alias: "searchableNewsCategoryType", values: ['.concat(c,"]}],"):"",d='{\n news: pageSearch(documentType: ["newsPage"], rootIds: ['.concat(u.join(", "),"],").concat(p," limit: ").concat(4,", offset: ").concat(4*t,', orderDesc: "articleDateSortable", orderType: "Long") {\n totalCount\n pages {\n id\n url\n properties\n }\n }\n }'),g=await (0,r.k)(n,d);return l.done({message:"getGraphQLContent: getNewsLimited",level:"debug"}),g.news}},29771:function(e,t,n){n.r(t),n.d(t,{NewsListFeature:function(){return m}});var r=n(85893),a=n(27501),o=n(89835),s=n(33582),i=n(20641),l=n(82849),u=n(53316),c=n(67294),p=n(9473),d=n(8100),g=n(44593),v=n(14681),w=n(82926);let m=e=>{var t,n,m;let{content:f,settings:h}=e,{label:N,heading:b,featuredNews:C,rootFolders:y,itemsPerPage:T}=null!==(n=null==f?void 0:f.properties)&&void 0!==n?n:{},D=null!==(m=null==h?void 0:null===(t=h.properties)||void 0===t?void 0:t.categories)&&void 0!==m?m:[],L=(0,p.v9)(e=>e.page.previewData),j=(0,c.useContext)(o.D),k=(0,c.useContext)(a.ns),I="".concat(null==y?void 0:y.toString(),"-news"),{data:S,error:Z,size:x,setSize:E}=(0,g.ZP)(e=>[y,e,L,D,T],s.dD),{data:M,error:P}
1=(0,d.ZP)(C?[C,L,I]:null,s.ae);(0,c.useEffect)(()=>{let e=(0,u.p)("page");e&&E(parseInt(e))},[E]);let _=[],G=0;S&&(S.map(e=>e.pages.map(e=>_.push(e))),G=S[0].totalCount);let Q=_.length<G;Z&&l.Z.error(Z),P&&l.Z.error(P);let F=!S&&!Z,V=F||x>0&&S&&void 0===S[x-1];return F||V||_.length,(0,r.jsxs)(w.W,{width:"fluid",spacing:"lg",children:[(0,r.jsx)(v.p,{loadMoreLabel:k.getValue("News.ShowMore"),loadMoreEnabled:Q,loadMore:()=>{E(x+1),(0,u.r)({page:(x+1).toString()})},culture:j.culture,heading:b,label:N,news:_,featuredNews:M,dictionaryContext:k}),(F||V)&&(0,r.jsx)(i.a,{})]})}}}]);
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.