{"version":3,"sources":["webpack:///./src/views/Users/Dashboard.vue?641e","webpack:///./src/views/Users/Dashboard.vue","webpack:///./src/views/Users/Dashboard.vue?4aba","webpack:///./src/views/Users/Dashboard.vue?acd1","webpack:///./src/views/Users/Dashboard.vue?dd68","webpack:///./src/assets/icons/inspiratie.svg","webpack:///./src/assets/icons/strength.svg","webpack:///./src/assets/icons/files.svg","webpack:///./src/assets/icons/data.svg","webpack:///./src/assets/icons/action.svg"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","showBackButton","on","gotoUsers","_v","_s","currentUser","employeeDetails","firstName","subscriptionDetails","subscriptionStatus","_e","sportLocationName","name","params","id","$route","subscriptionNeedsSigning","query","test","$event","preventDefault","logout","apply","arguments","staticRenderFns","UserDashboard","_Vue","_inherits","_super","_createSuper","_this","_classCallCheck","SubscriptionStatus","_createClass","key","value","$router","push","Vue","__decorate","Component","components","Content","Logo","computed","$store","state","hasMultipleUsers","showTellAFriendPage","_currentUser$subscrip","_currentUser$subscrip2","_currentUser$subscrip3","subscription","Accepted","Active","Ending","projectInformation","showTellAFriendPageInPortal","showCashBackActionPage","_currentUser$subscrip4","showCashbackPageInPortal","showCampaignPage","_currentUser$projectI","showCampaignPageInPortal","subscriptionExpires","_currentUser$subscrip5","methods","path","component","module","exports"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,OAAO,CAACG,MAAM,CAAC,mBAAoB,EAAK,eAAiBP,EAAIQ,gBAAgBC,GAAG,CAAC,KAAOT,EAAIU,aAAcV,EAAe,YAAEI,EAAG,UAAU,CAACG,MAAM,CAAC,QAAS,IAAO,CAACH,EAAG,KAAK,CAACE,YAAY,SAAS,CAACN,EAAIW,GAAG,QAAQP,EAAG,SAAS,CAACJ,EAAIW,GAAGX,EAAIY,GAAG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AAgB,eAAAC,EACRzD,EAAcZ,KAAKoD,OAAOC,MAAMzC,YACtC,OAAkE,KAAnD,OAAXA,QAAW,IAAXA,GAA+B,QAApByD,EAAXzD,EAAamD,0BAAkB,IAAAM,OAApB,EAAXA,EAAiCC,2BAMvCC,oBAAmB,eAAAC,EACX5D,EAAcZ,KAAKoD,OAAOC,MAAMzC,YACtC,OAAOA,GAAwE,aAA9C,OAAXA,QAAW,IAAXA,GAAgC,QAArB4D,EAAX5D,EAAaG,2BAAmB,IAAAyD,OAArB,EAAXA,EAAkCxD,sBAG5DyD,QAAS,CACP7C,OAAM,WACJ5B,KAAK2C,QAAQC,KAAK,CAChB8B,KAAM,sBAKO1C,WC3IiY,I,wBCQlZ2C,EAAY,eACd,EACA7E,EACAiC,GACA,EACA,KACA,WACA,MAIa,aAAA4C,E,6CCnBf,W,gDCAAC,EAAOC,QAAU,IAA0B,+B,qBCA3CD,EAAOC,QAAU,IAA0B,6B,qBCA3CD,EAAOC,QAAU,IAA0B,0B,qBCA3CD,EAAOC,QAAU,IAA0B,yB,qBCA3CD,EAAOC,QAAU,IAA0B","file":"js/chunk-386c98d4.f751bbf9.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"view view--dashboard\"},[_c('Logo',{attrs:{\"hasCustomCallback\":true,\"showBackButton\":_vm.showBackButton},on:{\"back\":_vm.gotoUsers}}),(_vm.currentUser)?_c('Content',{attrs:{\"center\":true}},[_c('h2',{staticClass:\"font1\"},[_vm._v(\" Hi \"),_c('strong',[_vm._v(_vm._s(_vm.currentUser.employeeDetails.firstName))])]),_c('p',{staticClass:\"paragraph\"},[(_vm.currentUser.subscriptionDetails.subscriptionStatus === 'Active' || _vm.currentUser.subscriptionDetails.subscriptionStatus === 'Cancelled')?[_vm._v(\"Veel sportplezier bij\")]:_vm._e(),_vm._v(\" \"+_vm._s(_vm.currentUser.subscriptionDetails.sportLocationName)+\" \")],2),_c('div',{staticClass:\"tiles\"},[_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'detail', params: { id: _vm.$route.params.id } }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/data.svg\")}}),_c('span',[_vm._v(\"Mijn gegevens\")])]),(_vm.currentUser && !_vm.currentUser.subscriptionDetails.subscriptionNeedsSigning)?_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'employer' }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/files.svg\")}}),_c('span',[_vm._v(\"Mijn regeling\")])]):_vm._e(),(_vm.currentUser && _vm.currentUser.subscriptionDetails.subscriptionNeedsSigning)?_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'employer' }}},[_c('div',{staticClass:\"icon\"},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/files.svg\")}})]),_c('span',[_vm._v(\"Onderteken welkomstformulier\")])]):_vm._e(),_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'subscription' }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/strength.svg\")}}),(_vm.subscriptionExpires)?_c('div',{staticClass:\"tile--badge\"},[_c('div',{staticClass:\"icon\"},[_vm._v(\"1\")])]):_vm._e(),_c('span',[_vm._v(\"Mijn abonnement\")])]),(this.$route.query.test === 'true')?_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'inspiration' }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/inspiratie.svg\")}}),_c('span',[_vm._v(\"Mijn inspiratie\")])]):_vm._e(),(_vm.showTellAFriendPage)?_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'tellafriend' }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/action.svg\")}}),_c('span',[_vm._v(\"Mijn acties\")])]):_vm._e(),(_vm.showCashBackActionPage)?_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'cashback-action' }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/action.svg\")}}),_c('span',[_vm._v(\"Cashback actie\")])]):_vm._e(),(_vm.showCampaignPage)?_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'campaign' }}},[_c('img',{attrs:{\"src\":require(\"@/assets/icons/action.svg\")}}),_c('span',[_vm._v(\"Startweken actie\")])]):_vm._e()],1),_c('div',{staticClass:\"footer\"},[_c('router-link',{staticClass:\"tile\",attrs:{\"to\":{ name: 'changePassword' }}},[_c('span',[_vm._v(\"Wachtwoord wijzigen\")])]),_c('a',{staticClass:\"link\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.logout.apply(null, arguments)}}},[_vm._v(\" Uitloggen \")])],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport Vue from 'vue'\r\nimport Component from 'vue-class-component'\r\n\r\nimport Content from '@/components/Content.vue'\r\nimport Logo from '@/components/Layout/Logo.vue'\r\nimport { SubscriptionStatus } from '@/api'\r\n\r\n@Component({\r\n components: {\r\n Content,\r\n Logo\r\n },\r\n computed: {\r\n currentUser () {\r\n return this.$store.state.currentUser\r\n },\r\n\r\n showBackButton () {\r\n return this.$store.state.hasMultipleUsers\r\n },\r\n\r\n showTellAFriendPage () {\r\n const currentUser = this.$store.state.currentUser\r\n // Subscription needs to be \"active\", and project must allow it.\r\n if (currentUser?.subscription?.subscriptionStatus === SubscriptionStatus.Accepted || currentUser?.subscription?.subscriptionStatus === SubscriptionStatus.Active || currentUser?.subscription?.subscriptionStatus === SubscriptionStatus.Ending) {\r\n if (currentUser.projectInformation.showTellAFriendPageInPortal === true) {\r\n return true\r\n }\r\n }\r\n return false\r\n },\r\n\r\n showCashBackActionPage () {\r\n const currentUser = this.$store.state.currentUser\r\n if (currentUser?.subscriptionDetails?.showCashbackPageInPortal === true) {\r\n return true\r\n }\r\n return false\r\n },\r\n\r\n showCampaignPage () {\r\n const currentUser = this.$store.state.currentUser\r\n if (currentUser?.projectInformation?.showCampaignPageInPortal === true) {\r\n return true\r\n }\r\n return false\r\n },\r\n\r\n subscriptionExpires () {\r\n const currentUser = this.$store.state.currentUser\r\n return currentUser && currentUser?.subscriptionDetails?.subscriptionStatus === 'Expires'\r\n }\r\n },\r\n methods: {\r\n logout () {\r\n this.$router.push({\r\n path: '/auth/logout'\r\n })\r\n }\r\n }\r\n})\r\nexport default class UserDashboard extends Vue {\r\n public gotoUsers () {\r\n this.$router.push({\r\n name: 'users'\r\n })\r\n }\r\n\r\n SubscriptionStatus = SubscriptionStatus;\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Dashboard.vue?vue&type=template&id=038bcca4&scoped=true&\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=ts&\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Dashboard.vue?vue&type=style&index=0&id=038bcca4&prod&lang=scss&scoped=true&\"\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 \"038bcca4\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Dashboard.vue?vue&type=style&index=0&id=038bcca4&prod&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/inspiratie.0ac19cfe.svg\";","module.exports = __webpack_public_path__ + \"img/strength.c5fe0ab4.svg\";","module.exports = __webpack_public_path__ + \"img/files.4ae07550.svg\";","module.exports = __webpack_public_path__ + \"img/data.cfacb3ac.svg\";","module.exports = __webpack_public_path__ + \"img/action.6d2e06d9.svg\";"],"sourceRoot":""}