1import{f}from"./nqkBqyuV.js";import{i as g}from"./ojuZyYTy.js";import{S as l,a as A,x as h,v as D}from"./CeEiuf4C.js";import{u}from"./Bf2wCGDh.js";const{getImageWithSize:C}=g();function Y(){const n=D(),{$i18n:U}=l(),t=l(),p=A(),o=h();return{fetchArticles:(a,e,s,c)=>{const{data:m,error:d}=u(`${n.public.apiUrl}article/GetArticles`,{query:{count:a||3,page:s||1,isFrench:o,domainId:1,...e&&{search:e}},getCachedData(r){return t.payload.data[r]||t.static.data[r]},transform(r){return r.map(i=>({imgUrl:C(i.pictureUrl,"medium"),title:i.title,description:f(i.date,"DD MMMM YYYY",o?"fr":"en"),url:p({name:"articles-slug",params:{slug:i.encodedUrl}})}))}},"$fRC__yStjR");return{articleDatas:m,error:d}},fetchTotalArticles:a=>{const{data:e,error:s}=u(`${n.public.apiUrl}article/getTotalArticleCount`,{query:{isFrench:o,domainId:1,...a&&{search:a}},getCachedData(c){return t.payload.data[c]||t.static.data[c]}},"$RT_DDnv1fg");return{totalArticles:e,error:s}}}}export{Y as u};
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.