1import{z as b,i as v,k as _,O as n,P as r,a7 as g,ab as k,R as s,S as i,u as l,_ as y,U as d,J as m,V as w,a1 as F,W as S}from"./QVWpw_zs.js";import{g as C}from"./BMBhfOlf.js";import"./qgBjhmh9.js";import"./CJZzuig_.js";const B={class:"pointer-events-none text-[18px] font-medium flex-auto"},R={key:0,class:"bg-brand-orange h-[25px] w-[25px] rounded-full text-white text-[16px] flex items-center justify-center mr-[25px]"},j={class:"flex flex-col"},I=["for"],V=["name","id","onChange","checked"],z={key:1,class:"ais-Highlight ml-1 text-[18px] font-medium"},D={class:"text-gray-400 text-xs ml-2"},J=b({__name:"SharedFilter",props:{activeFilter:{},items:{},name:{},refine:{},firstFilter:{type:Boolean},useInstantSearch:{type:Boolean}},emits:["filter-selected"],setup(u,{emit:p}){const e=u,f=p,h=v("activeFiltersState",{}),x=a=>{e.useInstantSearch?(e.refine(a.value),h.value[e.name]=o):e.refine(e.name,a.value)},o=_(()=>e.items.filter(a=>a.isRefined).length);return(a,c)=>(n(),r(m,null,[g(s("div",{class:d(["accordion filter arrow-bold items-center text-brand-dark py-3 border border-brand-gray border-t-solid w-full bg-white flex justify-end",{"expanded text-brand-orange":e.name===e.activeFilter,"border-t-none!":e.firstFilter}]),onClick:c[0]||(c[0]=t=>f("filter-selected",e.name))},[s("span",B,i(e.name),1),l(o)?(n(),r("span",R,i(l(o)),1)):y("",!0)],2),[[k,e.items.length>0]]),s("div",{class:d(["panel bg-white pb-4",{hidden:e.name!==e.activeFilter}])},[s("div",j,[(n(!0),r(m,null,w(e.items,t=>(n(),r("label",{for:t.value,class:"flex items-center mt-[15px]"},[s("input",{class:"bevco-checkbox border-black!",type:"checkbox",name:t.value,id:t.value,onChange:F(L=>{x(t)},["prevent"]),checked:t.isRefined},null,40,V),e.useInstantSearch?(n(),S(l(C),{key:0,attribute:"item",class:"ml-1 text-[18px] font-medium",hit:t},null,8,["hit"])):(n(),r("span",z,i(t.label),1)),s("span",D,"("+i(t.count.toLocaleString())+")",1)],8,I))),256))])],2)],64))}});export{J as _};
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.