1import{b as L,a as x}from"./FsGQlEfV.js";import{_ as C}from"./X0iQLrTp.js";import{d as F,a8 as P,a9 as T,r as a,aE as k,Q as d,aB as u,i as o,o as _,h,a as s,l as q,b as l,w as E,bs as H,bt as M}from"./BiuSYKi9.js";const V={id:"carousel"},N={class:"flex justify-between",style:{"flex-wrap":"nowrap"}},S={class:"q-pr-md"},$=["innerHTML"],z=["innerHTML"],O={class:"flex items-center q-gutter-x-sm"},Q={key:0,class:"text-h6"},U={class:"full-width q-pt-md",style:{overflow:"hidden"}},A=F({__name:"carousel",props:{title:{},description:{},client:{},filters:{},showFilters:{type:Boolean,default:!0},hideWhenEmpty:{type:Boolean}},setup(m){const f=P(),y=T(),r=a(),w=k(),c=a(-1),p=a({...m.filters}),v=t=>{p.value={...t}},g=t=>{let e="/shop";(!t.type||t.type.toLowerCase()!=="any")&&(e+=`/category/${H(t.type)}`);const n=M(t);e+=`?${n}`,f.push(y(e))};return(t,e)=>{const n=L,b=x,B=C;return d((_(),h("section",V,[s("div",N,[s("div",S,[s("h3",{class:"text-h3 q-ma-none",innerHTML:t.title},null,8,$),s("div",{class:"text-general",innerHTML:t.description},null,8,z)]),d(s("div",O,[o(w).isLessThan("desktop")?q("",!0):(_(),h("div",Q,"Filter")),l(n,{onFilterChanged:v,"initial-filters":t.filters,variant:"homepage",onSearch:g,options:o(r)},null,8,["initial-filters","options"])],512),[[u,t.showFilters]])]),s("div",U,[l(B,{"with-button-scroll":"","aria-label":t.title||"Product listings"},{default:E(()=>[l(b,{style:{display:"contents"},filters:o(p),"horizontal-scroll":!0,onUpdatedPagination:e[0]||(e[0]=i=>c.value=i),onUpdateOptions:e[1]||(e[1]=i=>r.value=i),client:t.client},null,8,["filters","client"])]),_:1},8,["aria-label"])])],512)),[[u,!t.hideWhenEmpty||o(c)!=0]])}}});export{A 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.