import{F as O,aL as V,ah as b,m as o,P as r,_ as h,R as s,a1 as n,Q as l,W as F,a5 as B,a6 as S,X as c,T as i,Z as w,a0 as m,a2 as E}from"./vendor-sJIIH5Cr.js";import{bC as N,bD as R,bE as T}from"./index-BGo1APpE.js";import{_ as D}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-Ds-NyWYn.js";const z=["onClick"],A={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},Q=O({__name:"link-orders",props:{item:{}},setup(u){const p=V(u,"item"),d=b(),{facets:_}=N({}),f=o(()=>d.name==="Orders"),{filterData:a,applyFilters:x}=R(),v=o(()=>_.value?.find(e=>e.name===T));function C(e){return a.value.statuses.indexOf(e)!==-1}function g(e){a.value.statuses=[e],x()}return(e,I)=>{const k=r("VcIcon"),y=r("VcBadge");return s(),h(D,{item:p.value},{default:n(()=>[f.value?(s(!0),l(B,{key:0},S(v.value?.items,t=>(s(),l("div",{key:t.term,class:"flex items-center gap-2 px-3 text-sm"},[c(k,{class:"flex-none fill-primary",size:"xs",name:"minus"}),i("button",{class:w([{"font-bold":C(t.term)},"line-clamp-2 flex w-full cursor-pointer gap-1 py-0.5 hover:text-neutral-950"]),type:"button",onClick:L=>g(t.term)},[i("span",A,m(t.label),1),c(y,{variant:"outline",size:"sm",rounded:""},{default:n(()=>[E(m(t.count),1)]),_:2},1024)],10,z)]))),128)):F("",!0)]),_:1},8,["item"])}}});export{Q as default};
//# sourceMappingURL=link-orders-Bpu0ufbP.js.map
