import{F as k,ag as h,b8 as v,m as V,P as c,_ as r,R as s,a1 as a,Q as m,W as x,e as l,a5 as I,a6 as L,a2 as y,a0 as D,X as g}from"./vendor-D8NNcBCx.js";import{bM as w}from"./index-CiAiYnez.js";import{_ as C}from"./account-navigation-item.vue_vue_type_script_setup_true_lang-CvqHmD8v.js";const B={key:0,class:"link-lists__wrapper"},z=k({__name:"link-lists",props:{item:{}},setup(u){const t=h(),{lists:i,fetchWishlists:_}=w(),n=V(()=>["Lists","ListDetails"].includes(t.name));function p(o){return t.name==="ListDetails"&&t.params.listId===o}return v(async()=>{n.value&&await _()}),(o,M)=>{const d=c("VcIcon"),f=c("VcMenuItem");return s(),r(C,{class:"link-lists",item:u.item},{default:a(()=>[n.value&&l(i).length>0?(s(),m("div",B,[(s(!0),m(I,null,L(l(i),e=>(s(),r(f,{key:e.id,to:{name:"ListDetails",params:{listId:e.id}},active:p(e.id),class:"link-lists__item",size:"xs",color:"secondary"},{prepend:a(()=>[g(d,{size:"xs",name:"minus"})]),default:a(()=>[y(" "+D(e.name),1)]),_:2},1032,["to","active"]))),128))])):x("",!0)]),_:1},8,["item"])}}});export{z as default};
//# sourceMappingURL=link-lists-BIL1A-b0.js.map
