1import{I as N,u as S,c as g,a2 as z,q as V}from"./DiZhURkQ.js";import x from"./osxQiXZR.js";import{c as d,B as A,C as I,I as o,J as a,N as n,P as p,O as l,X as F,L as f,M as $,R as v,V as k,U as M,u as P,n as O}from"./wbHSvHwd.js";const T={class:"Filters__inner","data-lenis-prevent":""},U={class:"Filters__container"},q={key:0,class:"Filters__buttons"},D={key:1,class:"Filters__separator","aria-hidden":!0},E={key:2,class:"Filters__dropdowns"},J={class:"Filters__controls"},L={class:"Filters__controls__reset__count"},W={__name:"Filters",props:{activeCount:0},setup(i){const r=S(),{start:c,stop:w}=g(),s=d(!1),t=d(null),m=d(null),y=e=>{m.value=e},C=()=>{s.value?(s.value=!1,c()):(s.value=!0,r.$viewport.width.value<=480&&w())},b=()=>{r.$emit("reset-filters"),s.value=!1,c()},_=()=>{var e;r.$viewport.width.value>900&&(s.value=!1,c()),(e=t==null?void 0:t.value)==null||e.style.setProperty("--reset-width","0px"),O(()=>{var u;(u=t==null?void 0:t.value)==null||u.style.setProperty("--reset-width",m.value.$el.offsetWidth+"px")})};return A(()=>{_(),r.$on("resize-debounce",_)}),I(()=>{r.$off("resize-debounce",_)}),(e,u)=>{const B=z,h=V,R=x;return o(),a("div",{class:F(["Filters transition",{"Filters--open":P(s)}])},[n("div",T,[n("div",U,[e.$slots.buttons?(o(),a("div",q,[p(e.$slots,"buttons",{},void 0,!0)])):l("",!0),e.$slots.dropdowns&&e.$slots.buttons?(o(),a("div",D)):l("",!0),e.$slots.dropdowns?(o(),a("div",E,[p(e.$slots,"dropdowns",{},void 0,!0)])):l("",!0),e.$slots.reset?(o(),a("div",{key:3,ref_key:"reset",ref:t,class:F(["Filters__reset",{"Filters__reset--active":i.activeCount}])},[p(e.$slots,"reset",{setRef:y},void 0,!0)],2)):l("",!0)])]),n("div",J,[f(h,{onClick:k(C,["prevent"]),class:"Filters__controls__toggle"},{default:$(()=>[n("span",null,v(e.$translate("Filtres")),1),f(B,{"aria-hidden":!0})]),_:1}),i.activeCount?(o(),M(h,{key:0,onClick:k(b,["prevent"]),class:"Filters__controls__reset",linkStyle:"btn-secondary"},{default:$(()=>[n("span",L,v(i.activeCount),1),n("span",null,v(e.$translate("Réinitialiser")),1),f(R,{"aria-hidden":!0})]),_:1})):l("",!0)])],2)}}},H=N(W,[["__scopeId","data-v-a10aca9e"]]);export{H 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.