{"version":3,"sources":["webpack:///./src/Nav/Toolbars/UserMenu.vue?682e","webpack:///./src/Nav/Toolbars/UserMenu.vue?e5ca","webpack:///src/Nav/Toolbars/UserMenu.vue","webpack:///./src/Nav/Toolbars/UserMenu.vue?445d","webpack:///./src/Nav/Toolbars/UserMenu.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","scopedSlots","_u","key","fn","ref","on","_g","staticClass","class","$vuetify","breakpoint","xsOnly","color","smAndUp","user","avatarUrl","fullname","_v","_s","_l","item","text","to","icon","click","_e","staticRenderFns","props","computed","userMenu","component","VAvatar","VBtn","VIcon","VList","VListItem","VListItemAction","VListItemContent","VListItemTitle","VMenu"],"mappings":"gHAAA,yBAAyf,EAAG,G,gECA5f,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,MAAM,CAAC,OAAS,GAAG,gBAAgB,GAAG,WAAW,IAAIC,YAAYP,EAAIQ,GAAG,CAAC,CAACC,IAAI,YAAYC,GAAG,SAASC,GACnN,IAAIC,EAAKD,EAAIC,GACb,MAAO,CAACR,EAAG,QAAQJ,EAAIa,GAAG,CAACC,YAAY,OAAOC,MAAM,CAAC,IAAOf,EAAIgB,SAASC,WAAWC,QAAQZ,MAAM,CAAC,KAAO,GAAG,MAAQN,EAAImB,OAAS,eAAeP,GAAI,CAACR,EAAG,WAAW,CAACU,YAAY,cAAcC,MAAM,CAAC,OAAQf,EAAIgB,SAASC,WAAWG,SAASd,MAAM,CAAC,KAAO,OAAO,CAAEN,EAAIqB,KAAc,UAAEjB,EAAG,MAAM,CAACE,MAAM,CAAC,IAAMN,EAAIqB,KAAKC,UAAU,IAAMtB,EAAIqB,KAAKE,YAAYnB,EAAG,SAAS,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACN,EAAIwB,GAAG,yBAAyB,GAAGpB,EAAG,OAAO,CAACU,YAAY,kBA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R,qBAAQ,KAAR,oBAAQ,GAAR,sBAAQ,MAAR,GACA,CAAQ,KAAR,cAAQ,KAAR,gBAAQ,GAAR,0BAAQ,KAAR,6BACA,CAAQ,KAAR,4BAAQ,KAAR,WAAQ,MAAR,8BAAQ,MAAR,KACA,yCCvEiW,I,6ICQ7VC,EAAY,eACd,EACAtC,EACAkC,GACA,EACA,KACA,WACA,MAIa,aAAAI,EAAiB,QAahC,IAAkBA,EAAW,CAACC,UAAA,KAAQC,OAAA,KAAKC,QAAA,KAAMC,QAAA,KAAMC,YAAA,KAAUC,kBAAA,KAAgBC,iBAAA,OAAiBC,eAAA,OAAeC,QAAA","file":"js/chunk-37a042c9.76eb687d.js","sourcesContent":["import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserMenu.vue?vue&type=style&index=0&id=81734d0a&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserMenu.vue?vue&type=style&index=0&id=81734d0a&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-menu',{attrs:{\"bottom\":\"\",\"open-on-hover\":\"\",\"offset-y\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({staticClass:\"pl-1\",class:{'noW': _vm.$vuetify.breakpoint.xsOnly},attrs:{\"text\":\"\",\"color\":_vm.color || 'color1Text'}},on),[_c('v-avatar',{staticClass:\"elevation-3\",class:{'mr-2': _vm.$vuetify.breakpoint.smAndUp},attrs:{\"size\":\"40\"}},[(_vm.user.avatarUrl)?_c('img',{attrs:{\"src\":_vm.user.avatarUrl,\"alt\":_vm.user.fullname}}):_c('v-icon',{attrs:{\"large\":\"\"}},[_vm._v(\"fas fa-user-circle\")])],1),_c('span',{staticClass:\"hidden-xs-only\"},[_vm._v(_vm._s(_vm.user.fullname))])],1)]}}])},[_c('v-list',{attrs:{\"dense\":\"\"}},[_vm._l((_vm.userMenu),function(item){return [(item.to)?_c('v-list-item',{key:item.text,attrs:{\"router\":\"\",\"to\":item.to}},[_c('v-list-item-action',{staticClass:\"mr-3\"},[_c('v-icon',[_vm._v(_vm._s(item.icon))])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" \"+_vm._s(item.text)+\" \")])],1)],1):(item.click)?_c('v-list-item',{key:item.text,on:{\"click\":item.click}},[_c('v-list-item-action',{staticClass:\"mr-3\"},[_c('v-icon',[_vm._v(_vm._s(item.icon))])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" \"+_vm._s(item.text)+\" \")])],1)],1):_vm._e()]})],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n  <v-menu bottom open-on-hover offset-y>\r\n    <template v-slot:activator=\"{ on }\">\r\n      <v-btn\r\n        text\r\n        v-on=\"on\"\r\n        class=\"pl-1\"\r\n        :class=\"{'noW': $vuetify.breakpoint.xsOnly}\"\r\n        :color=\"color || 'color1Text'\"\r\n      >\r\n        <v-avatar\r\n          size=\"40\"\r\n          :class=\"{'mr-2': $vuetify.breakpoint.smAndUp}\"\r\n          class=\"elevation-3\"\r\n        >\r\n          <img :src=\"user.avatarUrl\" :alt=\"user.fullname\" v-if=\"user.avatarUrl\">\r\n          <v-icon v-else large>fas fa-user-circle</v-icon>\r\n        </v-avatar>\r\n        <span class=\"hidden-xs-only\">{{ user.fullname }}</span>\r\n      </v-btn>\r\n    </template>\r\n    <!-- USER MENU -->\r\n    <v-list dense>\r\n      <template v-for=\"item in userMenu\">\r\n        <v-list-item v-if=\"item.to\" :key=\"item.text\" router :to=\"item.to\">\r\n          <v-list-item-action class=\"mr-3\">\r\n            <v-icon>{{ item.icon }}</v-icon>\r\n          </v-list-item-action>\r\n          <v-list-item-content>\r\n            <v-list-item-title>\r\n              {{ item.text }}\r\n            </v-list-item-title>\r\n          </v-list-item-content>\r\n        </v-list-item>\r\n        <v-list-item v-else-if=\"item.click\" :key=\"item.text\" @click=\"item.click\">\r\n          <v-list-item-action class=\"mr-3\">\r\n            <v-icon>{{ item.icon }}</v-icon>\r\n          </v-list-item-action>\r\n          <v-list-item-content>\r\n            <v-list-item-title>\r\n              {{ item.text }}\r\n            </v-list-item-title>\r\n          </v-list-item-content>\r\n        </v-list-item>\r\n      </template>\r\n    </v-list>\r\n  </v-menu>\r\n</template>\r\n\r\n<script>\r\nimport { mapGetters } from 'vuex'\r\n\r\nexport default {\r\n  props: ['color'],\r\n  computed: {\r\n    ...mapGetters(['user', 'auth']),\r\n    userMenu () {\r\n      return [\r\n        { icon: 'fas fa-user-circle fa-fw', text: 'My Account', to: { name: 'me' }, show: true },\r\n        ...this.user.profiles.map(p => {\r\n          return {\r\n            icon: 'fas fa-id-card',\r\n            text: p.relation === 'Self' ? 'My Player Profile' : `${p.profile.firstName}'s Player Profile`,\r\n            to: { name: 'player-profile', params: { playerProfileId: p.profile.id } },\r\n            show: true\r\n          }\r\n        }),\r\n        { icon: 'fas fa-history fa-fw', text: 'My Orders', to: { name: 'my-orders' }, show: true },\r\n        { icon: 'fas fa-heart fa-fw', text: 'Favorites & Notes', to: { name: 'my-bookmarks' }, show: true },\r\n        { icon: 'fas fa-bell', text: 'Notifications', to: { name: 'my-notifications' }, show: this.user && this.user.id === 1 },\r\n        { icon: 'fas fa-sign-out-alt fa-fw', text: 'Sign Out', click: () => { this.auth.logout(true) }, show: true }\r\n      ].filter(f => f.show)\r\n    }\r\n  }\r\n}\r\n</script>\r\n<style scoped>\r\n.noW {\r\n  padding-right: 0 !important;\r\n  min-width: 0 !important;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserMenu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserMenu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserMenu.vue?vue&type=template&id=81734d0a&scoped=true&\"\nimport script from \"./UserMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./UserMenu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UserMenu.vue?vue&type=style&index=0&id=81734d0a&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"81734d0a\",\n  null\n  \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAvatar } from 'vuetify/lib/components/VAvatar';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\ninstallComponents(component, {VAvatar,VBtn,VIcon,VList,VListItem,VListItemAction,VListItemContent,VListItemTitle,VMenu})\n"],"sourceRoot":""}