1import{mapState as a}from"./vuex.esm.browser.CyPgdje4.js";import{n as o}from"./_plugin-vue2_normalizer.D8LNvuNP.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"v3.302.1"};var i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="fcd5825d-e5c6-4689-8fb4-94aafba0c6f0",t._sentryDebugIdIdentifier="sentry-dbid-fcd5825d-e5c6-4689-8fb4-94aafba0c6f0")}catch{}})();const r={name:"AccountMenu",props:["isRightMenu","dashboardUrl"],data(){return{isMobile:window.site.isMobile,isOpen:!1,profileImageBG:`background: url(${this.user?this.user.profileImage:""}) no-repeat center center`}},computed:{...a("auth",{user:t=>t.user,menuItems:t=>t.userMenu,notificationCount:t=>t.notificationCount}),menuItemsWithDivider(){let t=0;return this.menuItems.map(i=>{let e;return e={...i,divider:i.group!==t},t=i.group,e})}},methods:{toggleMenu(){!this.isRightMenu&&!this.isMobile&&(window.location.href=this.dashboardUrl),this.isOpen=!this.isOpen,$("body").toggleClass("open-account-menu")}}};var l=function(){var i=this,e=i._self._c;return e("li",{staticClass:"menu-side__account"},[e("div",{staticClass:"my-account-profile",on:{click:function(n){return n.preventDefault(),i.toggleMenu.apply(null,arguments)}}},[e("span",{staticClass:"my-account-profile__title"},[e("i",{staticClass:"my-account-profile-img"}),i._v(" "+i._s(i.user.first_name)+" "),i.notificationCount?e("i",{class:{"notification-badge-li":!0,"head-menu-all-notification":!i.isRightMenu}},[i._v(i._s(i.notificationCount))]):i._e()]),e("i",{staticClass:"my-account-profile-icon"})]),e("div",{staticClass:"menu-side__account__inner"},i._l(i.menuItemsWithDivider,function(n,s){return e("a",{key:s,staticClass:"menu-side__account__item",class:{"user-menu-divider":n.divider,"premium-listing":n.key==="my-premium-listings"},attrs:{href:n.url,rel:"nofollow"}},[e("img",{staticClass:"menu-side__account__item__img",attrs:{src:n.img,alt:n.label,width:"17",height:"17",loading:"lazy"}}),e("span",[i._v(i._s(n.label))]),n.notification&&!i.isRightMenu?e("span",{class:["notification-badge-li",`head-menu-${n.key}-notification`]},[i._v(i._s(n.notification))]):i._e()])}),0)])},c=[],u=o(r,l,c,!1,null,null);const _=u.exports;export{_ 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.