import{K as g,ao as h,B as n,aP as S,P as w,T as l,M as s,L as i,a7 as F,O as N,N as T,S as c,V as m,U as u,aq as b,W as p,X as A}from"./vendor-bSWkQivH.js";import{aA as E,aB as R,aC as U}from"./index-Dqv5IkpS.js";import{_ as D}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-DTA7PgWI.js";const P=["onClick"],z={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},K=g({__name:"link-orders",props:{item:{}},setup(d){const _=h(d,"item"),f=S(),{facets:x}=E({}),v=n(()=>f.name==="Orders"),{filterData:a,applyFilters:C}=R(),O=n(()=>{var e;return(e=x.value)==null?void 0:e.find(o=>o.name===U)});function V(e){return a.value.statuses.indexOf(e)!==-1}function k(e){a.value.statuses=[e],C()}return(e,o)=>{const y=c("VcIcon"),B=c("VcBadge");return s(),w(D,{item:_.value},{default:l(()=>{var r;return[v.value?(s(!0),i(T,{key:0},N((r=O.value)==null?void 0:r.items,t=>(s(),i("div",{key:t.term,class:"flex items-center space-x-1 overflow-hidden text-ellipsis px-3 text-sm"},[m(y,{class:"flex-none fill-primary",size:"xs",name:"minus"}),u("button",{class:b([{"font-bold":V(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)},[u("span",z,p(t.label),1),m(B,{variant:"outline",rounded:""},{default:l(()=>[A(p(t.count),1)]),_:2},1024)],10,P)]))),128)):F("",!0)]}),_:1},8,["item"])}}});export{K as _};
//# sourceMappingURL=link-orders.vue_vue_type_script_setup_true_lang-4lhCE05q.js.map
