import{F as S,ag as g,P as r,_ as c,R as a,a1 as s,Q as i,W as B,m,a5 as N,a6 as R,a2 as l,a0 as u,X as d,aN as E}from"./vendor-D8NNcBCx.js";import{bH as I}from"./index-C3Ufbmof.js";import{S as T}from"./orders-D9ZsbCWi.js";import{u as h}from"./useUserOrders-Cp_q4TpB.js";import{_ as z}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-CvqHmD8v.js";const A={key:0,class:"link-orders__wrapper"},L=S({__name:"link-orders",props:{item:{}},setup(p){const _=E(p,"item"),f=g(),{facets:v}=h({}),k=m(()=>f.name==="Orders"),{filterData:o,applyFilters:V}=I(),n=m(()=>v.value?.find(e=>e.name===T));function x(e){return o.value.statuses.indexOf(e)!==-1}function O(e){o.value.statuses=[e],V()}return(e,M)=>{const y=r("VcIcon"),C=r("VcBadge"),F=r("VcMenuItem");return a(),c(z,{class:"link-orders",item:_.value},{default:s(()=>[k.value&&n.value?.items?(a(),i("div",A,[(a(!0),i(N,null,R(n.value.items,t=>(a(),c(F,{key:t.term,active:x(t.term),class:"link-orders__item",size:"xs",color:"secondary",onClick:U=>O(t.term)},{prepend:s(()=>[d(y,{size:"xs",name:"minus"})]),append:s(()=>[d(C,{variant:"outline",size:"xs",color:"secondary",rounded:""},{default:s(()=>[l(u(t.count),1)]),_:2},1024)]),default:s(()=>[l(" "+u(t.label)+" ",1)]),_:2},1032,["active","onClick"]))),128))])):B("",!0)]),_:1},8,["item"])}}});export{L as default};
//# sourceMappingURL=link-orders-CtHn6SXg.js.map
