import{F as O,aL as V,af as b,m as o,P as r,_ as F,R as s,a1 as n,Q as l,W as h,a6 as B,a7 as S,X as c,T as i,Z as w,a0 as m,a2 as N}from"./vendor-3e8OGtgt.js";import{bI as R,bG as T,bJ as E}from"./index-D8gWJXbr.js";import{_ as z}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-BoUOBAEZ.js";const A=["onClick"],D={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},J=O({__name:"link-orders",props:{item:{}},setup(u){const p=V(u,"item"),d=b(),{facets:_}=R({}),f=o(()=>d.name==="Orders"),{filterData:a,applyFilters:x}=T(),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,U)=>{const y=r("VcIcon"),C=r("VcBadge");return s(),F(z,{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(y,{class:"flex-none fill-primary",size:"xs",name:"minus"}),i("button",{class:w([{"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),c(C,{variant:"outline",size:"sm",rounded:""},{default:n(()=>[N(m(t.count),1)]),_:2},1024)],10,A)]))),128)):h("",!0)]),_:1},8,["item"])}}});export{J as default};
//# sourceMappingURL=link-orders-rQCJtmD8.js.map
