import{F as O,ag as V,P as o,_ as F,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-Dd8T34zR.js";import{bH as R}from"./index-Vd7lvnU9.js";import{S as T}from"./orders-D9ZsbCWi.js";import{u as E}from"./useUserOrders-BqAK7VVI.js";import{_ as z}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-23N0gXiR.js";const A=["onClick"],D={class:"grow overflow-hidden text-ellipsis text-nowrap text-start"},W=O({__name:"link-orders",props:{item:{}},setup(u){const p=w(u,"item"),d=V(),{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(),F(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{W as default};
//# sourceMappingURL=link-orders-wyKrHfLv.js.map
