import{F,aL as O,ag as V,m as o,P as r,_ as b,R as s,a1 as n,Q as l,W as h,a5 as B,a6 as S,X as c,T as i,Z as w,a0 as m,a2 as E}from"./vendor-D0AQuxPe.js";import{bD as N,bE as R,bF as T}from"./index-BZGh_npj.js";import{_ as D}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-Cs99TA-_.js";const z=["onClick"],A={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},Q=F({__name:"link-orders",props:{item:{}},setup(u){const p=O(u,"item"),d=V(),{facets:_}=N({}),f=o(()=>d.name==="Orders"),{filterData:a,applyFilters:x}=R(),v=o(()=>_.value?.find(e=>e.name===T));function g(e){return a.value.statuses.indexOf(e)!==-1}function k(e){a.value.statuses=[e],x()}return(e,I)=>{const y=r("VcIcon"),C=r("VcBadge");return s(),b(D,{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",A,m(t.label),1),c(C,{variant:"outline",size:"sm",rounded:""},{default:n(()=>[E(m(t.count),1)]),_:2},1024)],10,z)]))),128)):h("",!0)]),_:1},8,["item"])}}});export{Q as default};
//# sourceMappingURL=link-orders-DSuAMWft.js.map
