import{C as g,ak as h,q as n,aI as F,K as w,O as l,E as s,D as i,a3 as B,J as N,F as E,N as c,Q as m,P as u,am as R,R as p,S as T}from"./vendor-BGtMsOoo.js";import{aS as b,aT as D,aU as U}from"./index-CRze-aDK.js";import{_ as A}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-BXhNrOOe.js";const I=["onClick"],z={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},L=g({__name:"link-orders",props:{item:{}},setup(d){const _=h(d,"item"),f=F(),{facets:x}=b({}),v=n(()=>f.name==="Orders"),{filterData:a,applyFilters:k}=D(),C=n(()=>{var e;return(e=x.value)==null?void 0:e.find(o=>o.name===U)});function O(e){return a.value.statuses.indexOf(e)!==-1}function y(e){a.value.statuses=[e],k()}return(e,o)=>{const S=c("VcIcon"),V=c("VcBadge");return s(),w(A,{item:_.value},{default:l(()=>{var r;return[v.value?(s(!0),i(E,{key:0},N((r=C.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(S,{class:"flex-none fill-primary",size:"xs",name:"minus"}),u("button",{class:R([{"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:$=>y(t.term)},[u("span",z,p(t.label),1),m(V,{variant:"outline",rounded:""},{default:l(()=>[T(p(t.count),1)]),_:2},1024)],10,I)]))),128)):B("",!0)]}),_:1},8,["item"])}}});export{L as _};
//# sourceMappingURL=link-orders.vue_vue_type_script_setup_true_lang-DZc70qZd.js.map
