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{ch as E,ci as R,cj as A}from"./index-B7qwhRTg.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"},K=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 O(e){return a.value.statuses.indexOf(e)!==-1}function V(e){a.value.statuses=[e],x()}return(e,I)=>{const g=r("VcIcon"),k=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(g,{class:"flex-none fill-primary",size:"xs",name:"minus"}),i("button",{class:b([{"font-bold":O(t.term)},"line-clamp-2 flex w-full cursor-pointer gap-1 py-0.5 hover:text-neutral-950"]),type:"button",onClick:M=>V(t.term)},[i("span",z,m(t.label),1),l(k,{variant:"outline",size:"sm",rounded:""},{default:n(()=>[w(m(t.count),1)]),_:2},1024)],10,U)]))),128)):F("",!0)]),_:1},8,["item"])}}});export{K as default};
//# sourceMappingURL=link-orders-BR0Oe0Z0.js.map
