1import{_ as i,d as s,g as o,r as a,o as t,c as r,l as c,n as l,b as u}from"./main-49d8887f.js";import{I as d}from"./icon-f6211e9a.js";import{m as h,a as p}from"./vuex.esm-bundler-d9eadbc0.js";const m=s({name:"WishlistMenu",components:{Icon:d},props:{url:{type:String,required:!0},icon:{type:String,default:"navigation-wishlist-menu"},action:{type:String,default:"Wishlist"},iconActive:{type:String,default:"navigation-wishlist-menu"}},setup(){var e;return{uid:(e=o())==null?void 0:e.uid}},data(){return{loading:!0}},computed:{...h({userId:"userId",related:"wishlistItems",reference:"reference",hasContext:"hasContext"}),isActive(){return!!this.count},count(){var e;return((e=this.related)==null?void 0:e.length)||""}},methods:{...p(["getUser","getWishlist"])},watch:{async hasContext(){var e;this.loading=!0,(e=this.related)!=null&&e.length||await this.getWishlist(this.reference),this.loading=!1}},created(){this.getUser(this.reference)}}),g=["href","disabled","data-loading"],f=["innerHTML"];function _(e,v,w,y,C,b){const n=a("icon");return t(),r("a",{href:e.url,disabled:!e.isActive||null,"data-loading":!e.hasContext||null,class:"menu-item--text menu-item-wishlist"},[e.icon?(t(),c(n,{key:`icon-${e.uid}-${e.icon}`,caption:e.isActive?String(e.count):"",icon:e.isActive?e.iconActive:e.icon},null,8,["caption","icon"])):l("",!0),u("span",{innerHTML:e.action},null,8,f)],8,g)}const M=i(m,[["render",_],["__scopeId","data-v-b1331b34"]]);export{M as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.