1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2131],{28529:function(e,t,r){r.d(t,{JN:function(){return s},L9:function(){return o},Zz:function(){return l}});var n=r(32882),a=r(82849);let o=async(e,t)=>{var r;let o=null!==(r=null==e?void 0:e.map(e=>e.id))&&void 0!==r?r:[],i="{\n featuredArticles: pages(ids: [".concat(o.join(", "),"]) {\n id\n name\n url\n properties\n }\n }"),l=a.Z.startTimer(),s=await (0,n.k)(t,i);return l.done({message:"getGraphQLContent: getFeaturedArticles",level:"debug"}),s.featuredArticles},i=e=>Number(e)>0?Number(e):12,l=async(e,t,r,a)=>{let o=e.map(e=>e.id),l='{\n articles: pageSearch(documentType: ["articlePage"], rootIds: ['.concat(o.join(", "),"], limit: ").concat(i(a),", offset: ").concat(i(a)*t,', orderDesc: "articleDateSortable", orderType: "Long") {\n totalCount\n pages {\n id\n url\n properties\n }\n }\n }');return(await (0,n.k)(r,l)).articles},s=async(e,t,r)=>{var a;let o=null!==(a=null==e?void 0:e.map(e=>e.id))&&void 0!==a?a:[],i='{\n articles: pageSearch(documentType: ["articlePage"], rootIds: ['.concat(o.join(", "),"], limit: 3, offset: ").concat(3*t,', orderDesc: "articleDateSortable", orderType: "Long") {\n totalCount\n pages {\n id\n url\n properties\n }\n }\n }');return(await (0,n.k)(r,i)).articles}},12131:function(e,t,r){r.r(t),r.d(t,{ArticleListFeature:function(){return m}});var n=r(85893),a=r(27501),o=r(89835),i=r(28529),l=r(82849),s=r(53316),u=r(67294),c=r(9473),p=r(8100),d=r(44593),g=r(20641),f=r(14681),h=r(82926);let m=e=>{var t;let{content:r}=e,[m,v]=(0,u.useState)(0),[w,C]=(0,u.useState)([]),[b,S]=(0,u.useState)([]),{label:y,heading:D,featuredArticles:k,rootFolders:L,itemsPerPage:Z,showDates:j,hidePictures:x,sortAlphabetically:A}=null!==(t=null==r?void 0:r.properties)&&void 0!==t?t:{},N=(0,c.v9)(e=>e.page.previewData),E=(0,u.useContext)(o.D),P=(0,u.useContext)(a.ns),T="".concat(null==L?void 0:L.toString(),"-articles"),{data:I,error:M,size:_,setSize:z}=(0,d.ZP)(e=>[L,e,N,Z],i.Zz),{data:F,error:G}=(0,p.ZP)(k?[k,N,T]:null,i.L9);(0,u.useEffect)(()=>{let e=(0,s.p)("page");e&&z(parseInt(e))},[z]);let J=e=>e.sort((e,t)=>e.properties.heading.localeCompare(t.properties.heading)),Q=e=>({...e,properties:{...e.properties,overviewImage:e.properties.image,hideArticleDate:!1}});M&&l.Z.error(M),G&&l.Z.error(G),(0,u.useEffect)(()=>{I&&(e=>{let t=[];e.map(e=>e.pages.map(e=>t.push(Q(e)))),A?C(J(t)):C(t),m!==e[0].totalCount&&v(e[0].totalCount)})(I)},[I,m,L,A]),F&&(e=>{if(e.length!==b.length){let t=e.map(Q);A?S(J(t)):S(t)}})(F);let V=!I&&!M,W=V||_>0&&I&&void 0===I[_-1];return(0,n.jsxs)(h.W,{width:"fluid",spacing:"lg",children:[(0,n.jsx)(f.p,{loadMoreLabel:P.getValue("Articles.ShowMore"),loadMoreEnabled:w.length<m,loadMore:()=>{z(_+1),(0,s.r)({page:(_+1).toString()})},culture:E.culture,heading:D,label:y,news:w,showDates:j,showPictures:!x,featuredNews:b,dictionaryContext:P}),(V||W)&&(0,n.jsx)(g.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.