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