1import M from"./BmZyZC9-.js";import N from"./M_vqbg6R.js";import{a4 as O,b as R,u as q,aA as H,e as I,K,aI as X,a8 as G,a_ as P,I as S,t as Q,x as J,s as U,m as t,o as a,c as l,k as _,bE as W,aa as y,aj as C,ad as h,a1 as L,ab as x,ac as B,af as b,a as u,bX as Y,ax as E,g as Z}from"./CnynpXua.js";import{d as ee}from"./COyVCX7c.js";import{F as te}from"./Br0kD01g.js";const ae={class:"cw-container max-w-[1011px] mx-auto px-5 flex flex-col gap-[30px]"},se=["innerHTML"],ne={class:"flex flex-wrap gap-[30px] items-center justify-center"},ie=["onClick"],oe={key:1,class:"grid relative grid-cols-1 sm:grid-cols-2 gap-[15px] md:grid-cols-3 md:gap-[20px] lg:gap-[30px]"},le=O({__name:"Liste",props:{item:{type:Object,required:!0},hideTitle:{type:Boolean,default:!1}},async setup(r){let d,v;const i=r;R();const T=q(),k=H("forceView",I(!1)),w=K(X(i,"item")),D=u(()=>({...Y(),filterConditions:[{filterQuery:"$.tag",filterType:te.Any,value:i.item.content.tag}]})),g=u(()=>i.item.content.tag),A={item:"dependance",children:[{item:"img:1"},{item:"tag"}]},{data:F,pending:re,execute:j}=([d,v]=G(()=>P(`blk_actualites_${i.item.id}`,()=>i.item.content.tag.length>0?T.queryList(S.actualite,Q(D),!0,A):T.ensureList(S.actualite,!0,A))),d=await d,v(),d),p=u(()=>(F.value?.item??[]).sort(E("content.date_shown",!0)).slice(0,i.item.content.nb??Number.MAX_SAFE_INTEGER)),z=u(()=>[...p.value.reduce((e,s)=>(s.content.tag.forEach(o=>{(g.value.some(f=>f==o)||g.value.length==0)&&e.add(o)}),e),new Set)].map(e=>Z(e)).sort(E("itmOrdre"))),c=J(`actuTagId_${i.item.id}`,()=>I([])),V=u(()=>p.value.filter(e=>c.value.length==0||e.content.tag.some(s=>c.value.some(o=>o==s))));function $(e){c.value=e?[e]:[]}return U(g,(e,s)=>{ee(e,s)||j()}),(e,s)=>{const o=M,f=N;return t(k)||e.$getTrad(t(w))&&t(p).length>0?(a(),l("section",{key:0,class:h([{"blk-disabled":t(k)&&!e.$getTrad(t(w))},"px-2 pt-[30px]"])},[_("div",ae,[!r.hideTitle&&e.$getDisplayText(r.item).length>0?(a(),l("h2",{key:0,class:"md:text-center toffset_mob mb-[60px] lg:mb-[90px] t2 tzebra md:leading-none",innerHTML:("sanitize"in e?e.sanitize:t(W))(e.$getDisplayText(r.item))},null,8,se)):y("",!0),_("div",ne,[_("div",{class:h(["cursor-pointer btninverted-secondary",{"border-secondary!":t(c).length==0}]),onClick:s[0]||(s[0]=C(n=>$(),["stop"]))},L(e.$t("Actualite.All")),3),(a(!0),l(x,null,B(t(z),n=>(a(),l("div",{class:h(["cursor-pointer btninverted-secondary",{"border-secondary!":t(c).some(m=>m==n.id)}]),onClick:C(m=>$(n.id),["stop"])},L(e.$getDisplayText(n)),11,ie))),256))]),t(p).length>0?(a(),l("div",oe,[(a(!0),l(x,null,B(t(V),(n,m)=>(a(),l(x,null,[m%14==0?(a(),b(o,{key:0,class:"col-span-full",item:n},null,8,["item"])):m%14==7?(a(),b(o,{key:1,reverse:"",class:"col-span-full",item:n},null,8,["item"])):(a(),b(f,{key:2,class:"w-full!",item:n,"img-height":345,"img-width":499,"img-contain":r.item.content.contain,"img-extend-height":""},null,8,["item","img-contain"]))],64))),256))])):y("",!0)])],2)):y("",!0)}}}),ge=Object.assign(le,{__name:"TplBlkActualitesListe"});export{ge 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.