import{F,ag as O,P as o,_ as V,R as s,a1 as r,Q as n,W as S,m as i,a5 as h,a6 as B,X as l,T as c,Z as N,a0 as m,a2 as b,aN as w}from"./vendor-Di1tOLi3.js";import{bF as R}from"./index-BrdDZgk2.js";import{S as T}from"./orders-D9ZsbCWi.js";import{u as E}from"./useUserOrders-CkbIOfMl.js";import{_ as z}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-CCqwti8O.js";const A=["onClick"],D={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},X=F({__name:"link-orders",props:{item:{}},setup(u){const p=w(u,"item"),d=O(),{facets:_}=E({}),f=i(()=>d.name==="Orders"),{filterData:a,applyFilters:x}=R(),v=i(()=>_.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=o("VcIcon"),C=o("VcBadge");return s(),V(z,{item:p.value},{default:r(()=>[f.value?(s(!0),n(h,{key:0},B(v.value?.items,t=>(s(),n("div",{key:t.term,class:"flex items-center gap-2 px-3 text-sm"},[l(y,{class:"flex-none fill-primary",size:"xs",name:"minus"}),c("button",{class:N([{"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:P=>k(t.term)},[c("span",D,m(t.label),1),l(C,{variant:"outline",size:"sm",rounded:""},{default:r(()=>[b(m(t.count),1)]),_:2},1024)],10,A)]))),128)):S("",!0)]),_:1},8,["item"])}}});export{X as default};
//# sourceMappingURL=link-orders-CSbPeJej.js.map
