1import{q as p,u as m,T as h}from"./Cczw28iG.js";import{N as y}from"./TX1iPIsv.js";import{a as k,B,D as q}from"./CEzBCkTG.js";import{u as L}from"./BBGFqc5P.js";import{_ as C,d as D,e as g,f as N,c as f,a as T,u as s,b as o,g as $,F as V,r as x,h as E,s as R,o as l,i as U}from"./DWaM6xgD.js";const z={key:0,class:"page-news"},F={class:"news-list"},G={__name:"index",setup(P){const r=E(),a=D(),{locale:c,locales:I}=g(),u=N(),{t:d}=g();L(`/${a.params.division}/actualites`,{title:()=>`${d(`news_${a.params.division}`)} | Groupe Fenwick`,description:()=>d(`news_description_${a.params.division}`)});const v=p.stringify({locale:c.value,populate:"*",sort:"date:desc",pagination:{page:1,pageSize:100},filters:{division:{slug:{$eq:a.params.division}}}},{encodeValuesOnly:!0}),{data:_}=m(`page-${a.params.division}-${a.name}`,async()=>{const e=await $fetch(`/api/articles?${v}`,{baseURL:r.public.baseUrl,method:"GET"});return(e==null?void 0:e.data)||null},{server:!0}),w=p.stringify({locale:c.value,populate:"deep",filters:{slug:{$eq:a.params.division}}},{encodeValuesOnly:!0}),{data:t}=m(`division-${a.params.division}-${a.name}`,async()=>{var n;const e=await $fetch(`/api/divisions?${w}`,{baseURL:r.public.baseUrl,method:"GET"}),i=((n=e==null?void 0:e.data)==null?void 0:n[0])||null;return i||R({statusCode:404,statusMessage:"Page not found"}),i},{server:!0});return(e,i)=>s(t)?(l(),f("div",z,[o(k,{component:s(t).components[0]},null,8,["component"]),o(B,{component:{item:[{label:e.$t("Home"),link:s(u)("/")},{label:s(t).title,link:s(u)(`/${s(t).slug}`)},{label:e.$t(`news_${s(t).slug}`)}]}},null,8,["component"]),$("div",F,[o(h,{class:"title mb-[50px] mt-[50px]",component:{title:e.$t("news"),hn:"h1"}},null,8,["component"]),o(q,{title:e.$t(`news_${s(t).slug}`),color:s(t).color,class:"title mb-[50px]"},null,8,["title","color"]),$("div",null,[(l(!0),f(V,null,x(s(_),(n,b)=>(l(),U(y,{key:n.id,news:n,color:"fenwick",size:b===0?"large":"small"},null,8,["news","size"]))),128))])])])):T("",!0)}},j=C(G,[["__scopeId","data-v-568ae6cc"]]);export{j as default};
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.