import{F as O,aL as V,af as F,m as o,P as r,_ as h,R as s,a1 as n,Q as c,W as B,a6 as S,a7 as w,X as l,T as i,Z as N,a0 as m,a2 as R}from"./vendor-d3O24IFR.js";import{cm as T,cn as b,co as E}from"./index-y0Q-tooC.js";import{_ as z}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-D5Vpy2rM.js";const A=["onClick"],D={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=F(),{facets:_}=T({}),f=o(()=>d.name==="Orders"),{filterData:a,applyFilters:x}=b(),v=o(()=>_.value?.find(e=>e.name===E));function g(e){return a.value.statuses.indexOf(e)!==-1}function k(e){a.value.statuses=[e],x()}return(e,I)=>{const y=r("VcIcon"),C=r("VcBadge");return s(),h(z,{item:p.value},{default:n(()=>[f.value?(s(!0),c(S,{key:0},w(v.value?.items,t=>(s(),c("div",{key:t.term,class:"flex items-center gap-2 px-3 text-sm"},[l(y,{class:"flex-none fill-primary",size:"xs",name:"minus"}),i("button",{class:N([{"font-bold":g(t.term)},"line-clamp-2 flex w-full cursor-pointer gap-1 py-0.5 hover:text-neutral-950"]),type:"button",onClick:L=>k(t.term)},[i("span",D,m(t.label),1),l(C,{variant:"outline",size:"sm",rounded:""},{default:n(()=>[R(m(t.count),1)]),_:2},1024)],10,A)]))),128)):B("",!0)]),_:1},8,["item"])}}});export{Q as default};
//# sourceMappingURL=link-orders-Dk-nM9Z6.js.map
