{"version":3,"sources":["webpack:///./src/assets/img/layout/diary_white.svg","webpack:///./src/assets/img/layout/discover_white.svg","webpack:///./src/assets/img/layout/diary_dark.svg","webpack:///./src/assets/img/layout/profile_dark.svg","webpack:///./src/assets/img/layout/notification_white.svg","webpack:///./src/assets/img/layout/profile_white.svg","webpack:///./src/assets/img/layout/discover_dark.svg","webpack:///./src/assets/img/layout/chat_dark.svg","webpack:///./src/assets/img/layout/notification_dark.svg","webpack:///./src/views/menuLayout.vue?44ab","webpack:///./src/views/menuLayout.vue?e804","webpack:///./src/views/menuLayout.vue","webpack:///./src/assets/img/layout/chat_white.svg"],"names":["module","exports","_hoisted_1","class","_hoisted_2","key","_hoisted_3","src","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","render","_ctx","_cache","$props","$setup","$data","$options","_component_router_view","_component_localized_text","_component_router_link","$route","meta","hideFooter","activeTab","to","onClick","$event","default","localizedKey","text","_","communitiesLink","hasNewChatMessages","$store","state","newNotificationCount","user","identifier","hasNewInvitation","profileCompleted","store","query","this","checkActiveTab","fullPath","url","indexOf","substring","newChatMessages","length","newInvitationCount","deep","__exports__"],"mappings":"mGAAAA,EAAOC,QAAU,IAA0B,gC,uBCA3CD,EAAOC,QAAU,IAA0B,mC,uBCA3CD,EAAOC,QAAU,IAA0B,+B,uBCA3CD,EAAOC,QAAU,IAA0B,iC,uBCA3CD,EAAOC,QAAU,IAA0B,uC,uBCA3CD,EAAOC,QAAU,IAA0B,kC,qBCA3CD,EAAOC,QAAU,IAA0B,kC,qBCA3CD,EAAOC,QAAU,IAA0B,8B,qBCA3CD,EAAOC,QAAU,IAA0B,sC,2QCa3C,MAAMC,EAAa,CAAEC,MAAO,UACtBC,EAAa,CACjBC,IAAK,EACLF,MAAO,oBAEHG,EAA0B,eAAa,MAAO,CAClDC,IAAK,IACLJ,MAAO,OACN,MAAO,GACJK,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MgB,mBAAqB,IApB5C,gBADC,eAAM,kBAAmB,CAAEC,MAAM,K,oCAxBjB,EAAU,gBAD9B,eAAQ,KACY,W,qBCLrB,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS1C,KAErD,gB,qBCPfpB,EAAOC,QAAU,IAA0B","file":"js/chunk-a4ea380ba73fc86532f8.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/diary_white.f02b36d4.svg\";","module.exports = __webpack_public_path__ + \"img/discover_white.54517964.svg\";","module.exports = __webpack_public_path__ + \"img/diary_dark.a7e87b2b.svg\";","module.exports = __webpack_public_path__ + \"img/profile_dark.c0440331.svg\";","module.exports = __webpack_public_path__ + \"img/notification_white.894aae41.svg\";","module.exports = __webpack_public_path__ + \"img/profile_white.d04f5175.svg\";","module.exports = __webpack_public_path__ + \"img/discover_dark.b4d93f65.svg\";","module.exports = __webpack_public_path__ + \"img/chat_dark.c6d39b53.svg\";","module.exports = __webpack_public_path__ + \"img/notification_dark.bfa84172.svg\";","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\"\nimport _imports_0 from '@/assets/img/layout/discover_dark.svg'\nimport _imports_1 from '@/assets/img/layout/discover_white.svg'\nimport _imports_2 from '@/assets/img/layout/diary_dark.svg'\nimport _imports_3 from '@/assets/img/layout/diary_white.svg'\nimport _imports_4 from '@/assets/img/layout/chat_dark.svg'\nimport _imports_5 from '@/assets/img/layout/chat_white.svg'\nimport _imports_6 from '@/assets/img/layout/notification_dark.svg'\nimport _imports_7 from '@/assets/img/layout/notification_white.svg'\nimport _imports_8 from '@/assets/img/layout/profile_dark.svg'\nimport _imports_9 from '@/assets/img/layout/profile_white.svg'\n\n\nconst _hoisted_1 = { class: \"layout\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"navigationFooter\"\n}\nconst _hoisted_3 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_0,\n class: \"off\"\n}, null, -1)\nconst _hoisted_4 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_1,\n class: \"on\"\n}, null, -1)\nconst _hoisted_5 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_2,\n class: \"off\"\n}, null, -1)\nconst _hoisted_6 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_3,\n class: \"on\"\n}, null, -1)\nconst _hoisted_7 = {\n key: 0,\n class: \"pallinoNotifiche\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_4,\n class: \"off\"\n}, null, -1)\nconst _hoisted_9 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_5,\n class: \"on\"\n}, null, -1)\nconst _hoisted_10 = {\n key: 0,\n class: \"pallinoNotifiche\"\n}\nconst _hoisted_11 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_6,\n class: \"off\"\n}, null, -1)\nconst _hoisted_12 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_7,\n class: \"on\"\n}, null, -1)\nconst _hoisted_13 = {\n key: 0,\n class: \"pallinoNotifiche\"\n}\nconst _hoisted_14 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_8,\n class: \"off\"\n}, null, -1)\nconst _hoisted_15 = /*#__PURE__*/_createVNode(\"img\", {\n src: _imports_9,\n class: \"on\"\n}, null, -1)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_router_view = _resolveComponent(\"router-view\")!\n const _component_localized_text = _resolveComponent(\"localized-text\")!\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createBlock(\"div\", _hoisted_1, [\n _createVNode(_component_router_view),\n (!_ctx.$route.meta.hideFooter)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_2, [\n _createVNode(\"div\", {\n class: [\"navItem\", _ctx.activeTab == 'home' ? 'active' : '']\n }, [\n _createVNode(_component_router_link, {\n to: \"/home\",\n class: _ctx.activeTab == 'home' ? 'router-link-active' : '',\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.activeTab = 'home'))\n }, {\n default: _withCtx(() => [\n _hoisted_3,\n _hoisted_4,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_discover\",\n text: \"Discover\",\n class: \"fs_11 spaceCadet\"\n })\n ]),\n _: 1\n }, 8, [\"class\"])\n ], 2),\n _createVNode(\"div\", {\n class: [\"navItem\", _ctx.activeTab == 'communities' ? 'active' : '']\n }, [\n _createVNode(_component_router_link, {\n to: _ctx.communitiesLink,\n class: _ctx.activeTab == 'communities' ? 'router-link-active' : '',\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.activeTab = 'communities'))\n }, {\n default: _withCtx(() => [\n _hoisted_5,\n _hoisted_6,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_myDiary\",\n text: \"My Diary\",\n class: \"fs_11 spaceCadet\"\n })\n ]),\n _: 1\n }, 8, [\"to\", \"class\"])\n ], 2),\n _createVNode(\"div\", {\n class: [\"navItem position-relative\", _ctx.activeTab == 'chats' ? 'active' : '']\n }, [\n _createVNode(_component_router_link, {\n to: \"/chats\",\n class: _ctx.activeTab == 'chats' ? 'router-link-active' : '',\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.activeTab = 'chats'))\n }, {\n default: _withCtx(() => [\n (_ctx.hasNewChatMessages)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_7))\n : _createCommentVNode(\"\", true),\n _hoisted_8,\n _hoisted_9,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_chat\",\n text: \"Chat\",\n class: \"fs_11 spaceCadet\"\n })\n ]),\n _: 1\n }, 8, [\"class\"])\n ], 2),\n _createVNode(\"div\", {\n class: [\"navItem position-relative\", _ctx.activeTab == 'notification' ? 'active' : '']\n }, [\n _createVNode(_component_router_link, {\n to: \"/notification\",\n class: _ctx.activeTab == 'notification' ? 'router-link-active' : '',\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.activeTab = 'notification'))\n }, {\n default: _withCtx(() => [\n (_ctx.$store.state.newNotificationCount)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_10))\n : _createCommentVNode(\"\", true),\n _hoisted_11,\n _hoisted_12,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_notification\",\n text: \"Notification\",\n class: \"fs_11 spaceCadet\"\n })\n ]),\n _: 1\n }, 8, [\"class\"])\n ], 2),\n (_ctx.$store.state.user)\n ? (_openBlock(), _createBlock(\"div\", {\n key: 0,\n class: [\"navItem position-relative\", _ctx.activeTab == 'profile' ? 'active' : '']\n }, [\n _createVNode(_component_router_link, {\n to: '/profile/' + _ctx.$store.state.user.identifier,\n class: _ctx.activeTab == 'profile' ? 'router-link-active' : '',\n onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.activeTab = 'profile'))\n }, {\n default: _withCtx(() => [\n (_ctx.hasNewInvitation || !_ctx.$store.state.user.profileCompleted)\n ? (_openBlock(), _createBlock(\"div\", _hoisted_13))\n : _createCommentVNode(\"\", true),\n _hoisted_14,\n _hoisted_15,\n _createVNode(_component_localized_text, {\n localizedKey: \"app_profile\",\n text: \"Profile\",\n class: \"fs_11 spaceCadet\"\n })\n ]),\n _: 1\n }, 8, [\"to\", \"class\"])\n ], 2))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}","\r\nimport { Options, Vue } from 'vue-class-component';\r\nimport { Watch } from 'vue-property-decorator';\r\nimport store from '@/store';\r\nimport { StorageServices } from '@/services/StorageServices';\r\nimport { LoginServices } from '@/services/LoginServices';\r\nimport { ConversationRoomClient, NotificationClient } from '@/services/Services';\r\nimport { MagiaClient } from '@/services/Services';\r\n\r\n@Options({})\r\nexport default class MenuLayout extends Vue {\r\n \r\n activeTab: string = \"\";\r\n communitiesLink = \"\";\r\n\r\n created() { \r\n // if(!store.state.user || !store.state.user.identifier){\r\n // LoginServices.logout();\r\n // return;\r\n // } // a che serviva? se chiama il troilo ci parla gian.\r\n\r\n if(store.state.query)\r\n this.checkActiveTab(store.state.query);\r\n else\r\n this.checkActiveTab(this.$route.fullPath);\r\n\r\n // var firstDiaryAccessDone = StorageServices.getFirstDiaryAccessDone();\r\n // if(firstDiaryAccessDone)\r\n // this.communitiesLink = \"/communities\";\r\n // else\r\n // this.communitiesLink = \"/communities-intro\";\r\n this.communitiesLink = \"/communities-feed\";\r\n }\r\n\r\n @Watch(\"$route.fullPath\", { deep: true })\r\n updateActiveTab() {\r\n this.checkActiveTab(this.$route.fullPath);\r\n }\r\n\r\n checkActiveTab(url: string) {\r\n if(url) {\r\n if(url.indexOf(\"profile\") != -1)\r\n this.activeTab = \"profile\";\r\n else if(url.indexOf(\"communities\") != -1)\r\n this.activeTab = \"communities\";\r\n else \r\n this.activeTab = url.substring(1);\r\n }\r\n }\r\n\r\n get hasNewChatMessages(){\r\n return store.state.newChatMessages.length > 0;\r\n }\r\n\r\n get hasNewInvitation(){\r\n return store.state.newInvitationCount > 0;\r\n }\r\n\r\n}\r\n\r\n","import { render } from \"./menuLayout.vue?vue&type=template&id=18e66bc0&ts=true\"\nimport script from \"./menuLayout.vue?vue&type=script&lang=ts\"\nexport * from \"./menuLayout.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\rekt\\\\source\\\\repos\\\\uose\\\\uoseapp_new\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/chat_white.897dc3f4.svg\";"],"sourceRoot":""}