{"version":3,"sources":["webpack:///./src/renderer/modules/member/components/TournamentHistoryItem/TournamentHistoryItem.vue?6369","webpack:///./src/renderer/modules/member/views/TournamentHistory/TournamentHistory.vue?c32d","webpack:///./src/renderer/modules/member/views/TournamentHistory/TournamentHistory.vue?d39f","webpack:///./src/renderer/modules/member/components/TournamentHistoryItem/TournamentHistoryItem.vue?6b30","webpack:///./src/renderer/modules/member/components/TournamentHistoryItem/TournamentHistoryItem.vue","webpack:///./src/renderer/modules/member/components/TournamentHistoryItem/TournamentHistoryItem.vue?f36f","webpack:///./src/renderer/modules/member/components/TournamentHistoryItem/TournamentHistoryItem.vue?e1ed","webpack:///./src/renderer/modules/member/components/TournamentHistoryItem/index.ts","webpack:///./src/renderer/modules/member/views/TournamentHistory/TournamentHistory.vue","webpack:///./src/renderer/modules/member/views/TournamentHistory/TournamentHistory.vue?efcd","webpack:///./src/renderer/modules/member/views/TournamentHistory/TournamentHistory.vue?d650","webpack:///./src/renderer/modules/member/views/TournamentHistory/index.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$t","_e","$vuetify","breakpoint","mobile","games","model","value","callback","$$v","gameFilter","expression","ref","on","$event","scrollBehavior","tournamentHistoryItems","_l","historyItem","idx","key","tournament","tournamentId","detailBanner","detailLogo","name","tournamentTeam","logo","scheduleStartTime","stageName","groupNumber","standing","staticStyle","_v","_s","staticRenderFns","onTournamentHistoryItemClicked","tournamentBanner","tournamentLogo","domProps","tournamentName","standingStr","_f","tournamentTime","teamLogo","teamName","image","$router","push","params","match","substring","search","i","parseInt","j","k","required","components","TeamAvatar","filters","dateTime","component","VCard","VCol","VIcon","VImg","VParallax","VRow","memberModule","$store","All","isLoading","isInitializing","resetMemberTournamentHistory","fetchTournamentHistory","fetchMemberTournamentHistory","page","game","event","target","hasMorePage","tournamentHistory","tournamentHistoryCurrentPage","tournamentHistoryHasMorePage","gameTypes","text","map","gameType","code","default","TournamentHistoryItem","ProfileHeader","VContainer","VProgressCircular","VSelect","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AAA,KAAM6B,oBAAA,KAAkB1B,OAAA,KAAK2B,UAAA,KAAQC,UAAA,OC7BpE","file":"js/member-tournament-history.3ad0b61c.js","sourcesContent":["import mod 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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistoryItem.vue?vue&type=style&index=0&id=727a287a&lang=scss&scoped=true&\"; export default mod; 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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistoryItem.vue?vue&type=style&index=0&id=727a287a&lang=scss&scoped=true&\"","import mod 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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistory.vue?vue&type=style&index=0&id=917325aa&lang=scss&scoped=true&\"; export default mod; 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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistory.vue?vue&type=style&index=0&id=917325aa&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"px-10\",attrs:{\"fluid\":\"\"}},[(_vm.isDisplayHeader)?_c('ProfileHeader',{attrs:{\"header\":_vm.$t('TournamentHistory.TournamentHistory')}}):_vm._e(),_c('v-row',[_c('v-spacer'),_c('v-col',{staticClass:\"py-0 my-0\",attrs:{\"cols\":_vm.$vuetify.breakpoint.mobile ? 12 : 3}},[_c('v-select',{attrs:{\"items\":_vm.games},model:{value:(_vm.gameFilter),callback:function ($$v) {_vm.gameFilter=$$v},expression:\"gameFilter\"}})],1)],1),(_vm.isInitializing)?_c('v-row',[_c('v-progress-circular',{staticClass:\"mx-auto\",attrs:{\"color\":\"grey\",\"indeterminate\":\"\",\"size\":\"150\"}})],1):_c('v-row',{ref:\"tournamentHistoryList\",staticClass:\"tournament-history-wrapper\",on:{\"scroll\":function($event){return _vm.scrollBehavior($event)}}},[(_vm.tournamentHistoryItems.length)?_vm._l((_vm.tournamentHistoryItems),function(historyItem,idx){return _c('v-col',{key:(\"tournament-history-\" + idx),attrs:{\"cols\":_vm.$vuetify.breakpoint.mobile ? 12 : 4}},[_c('TournamentHistoryItem',{attrs:{\"tournamentId\":historyItem.tournament.tournamentId,\"tournamentBanner\":historyItem.tournament.detailBanner,\"tournamentLogo\":historyItem.tournament.detailLogo,\"tournamentName\":historyItem.tournament.name,\"teamName\":historyItem.tournamentTeam.name,\"teamLogo\":historyItem.tournamentTeam.logo,\"tournamentTime\":historyItem.tournament.scheduleStartTime,\"stageName\":historyItem.stageName,\"groupNumber\":historyItem.groupNumber,\"standing\":historyItem.standing}})],1)}):[_c('div',{staticClass:\"text-center my-10 mx-auto grey--text\"},[_c('v-icon',{staticStyle:{\"font-size\":\"8rem\",\"color\":\"grey\"}},[_vm._v(\"mdi-timer-sand-empty\")]),_c('div',{staticClass:\"my-5\"},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentHistory.NoTournamentsOfSelectedGames'))+\" \")])],1)]],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:\"tournament-history-item\",attrs:{\"color\":\"#353535\"},on:{\"click\":_vm.onTournamentHistoryItemClicked}},[_c('div',[_c('v-parallax',{attrs:{\"dark\":\"\",\"src\":_vm.tournamentBanner,\"height\":\"150\"}},[_c('v-row',{attrs:{\"align\":\"center\",\"justify\":\"center\",\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"d-flex justify-center banner-col\",attrs:{\"cols\":\"6\"}},[_c('v-img',{staticClass:\"tournament-banner mt-5\",attrs:{\"src\":_vm.tournamentLogo,\"width\":\"8rem\",\"contain\":\"\"}})],1)],1)],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"pl-5 mt-2\"},[_c('v-row',{attrs:{\"dense\":\"\"}},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"tournament-name\",domProps:{\"textContent\":_vm._s(_vm.tournamentName)}})]),_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"12\"}},[_c('div',{staticClass:\"stage-group\"},[_vm._v(\" \"+_vm._s(_vm.stageName)+\" | Group # \"+_vm._s(_vm.groupNumber)+\" \")])])],1),_c('v-row',[_c('div',{staticClass:\"best-result\"},[_vm._v(\" BEST RESULT \")])]),_c('v-row',[_c('v-icon',[_vm._v(\"mdi-chart-bar\")]),_c('div',{staticClass:\"result pl-1\"},[_vm._v(\" \"+_vm._s(_vm.standingStr)+\" \")])],1),_c('v-row',{staticClass:\"my-2\"},[_c('v-icon',[_vm._v(\"mdi-table-large\")]),_c('div',{staticClass:\"date pl-1\"},[_vm._v(\" \"+_vm._s(_vm._f(\"dateTime\")(_vm.tournamentTime))+\" \")])],1)],1),_c('v-col',{staticClass:\"team-info\",attrs:{\"cols\":\"4\",\"align-self\":\"center\"}},[_c('TeamAvatar',{attrs:{\"teamLogo\":_vm.teamLogo,\"teamName\":_vm.teamName,\"size\":\"5rem\"}}),_c('div',{staticClass:\"team-name\",domProps:{\"textContent\":_vm._s(_vm.teamName)}})],1)],1)],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\r\nimport { Vue, Component, Prop } from 'vue-property-decorator'\r\nimport TeamAvatar from '@/modules/shared/components/TeamAvatar'\r\nimport { dateTime } from '@/utils'\r\n\r\n@Component({\r\n components: {\r\n TeamAvatar\r\n },\r\n filters: {\r\n dateTime\r\n }\r\n})\r\nexport default class TournamentHistoryItem extends Vue {\r\n @Prop({ required: true }) readonly tournamentId!: string\r\n @Prop({ required: true }) readonly tournamentBanner!: string\r\n @Prop({ required: true }) readonly tournamentLogo!: string\r\n @Prop({ required: true }) readonly tournamentName!: string\r\n @Prop({ required: true }) readonly teamName!: string\r\n @Prop({ required: true }) readonly teamLogo!: string\r\n @Prop({ required: true }) readonly tournamentTime!: number\r\n @Prop({ required: true }) readonly stageName!: string\r\n @Prop({ required: true }) readonly groupNumber!: number\r\n @Prop({ required: true }) readonly standing!: string\r\n\r\n /* Getters */\r\n get standingStr() {\r\n if (this.standing === 'TBC') {\r\n // To be confirmed\r\n return this.$t('TournamentHistoryItem.PendingForApproval')\r\n } else if (this.standing.match(/^[A-Za-z]+$/)) {\r\n switch (this.standing) {\r\n case 'Champion':\r\n return this.$t('TournamentHistoryItem.Champion')\r\n case 'FirstRunnerUp':\r\n return this.$t('TournamentHistoryItem.FirstRunnerUp')\r\n case 'SecondRunnerUp':\r\n return this.$t('TournamentHistoryItem.SecondRunnerUp')\r\n case 'ThirdRunnerUp':\r\n return this.$t('TournamentHistoryItem.ThirdRunnerUp')\r\n }\r\n } else if (this.standing.match(/^[A-Za-z]+/)) {\r\n return (\r\n this.standing.substring(0, this.standing.search(/\\d/)) +\r\n ' ' +\r\n this.standing.substring(this.standing.search(/\\d/))\r\n )\r\n } else {\r\n var i = parseInt(this.standing)\r\n var j = i % 10\r\n var k = i % 100\r\n if (j === 1 && k !== 11) {\r\n return i + 'st'\r\n }\r\n if (j === 2 && k !== 12) {\r\n return i + 'nd'\r\n }\r\n if (j === 3 && k !== 13) {\r\n return i + 'rd'\r\n }\r\n return i + 'th'\r\n }\r\n }\r\n\r\n /* Methods */\r\n isValidImage(image: string) {\r\n return image !== ''\r\n }\r\n\r\n async onTournamentHistoryItemClicked() {\r\n await this.$router.push({\r\n name: 'TournamentDetailsOverview',\r\n params: {\r\n tournamentId: this.tournamentId\r\n }\r\n })\r\n }\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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistoryItem.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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistoryItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TournamentHistoryItem.vue?vue&type=template&id=727a287a&scoped=true&\"\nimport script from \"./TournamentHistoryItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./TournamentHistoryItem.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TournamentHistoryItem.vue?vue&type=style&index=0&id=727a287a&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 \"727a287a\",\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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VParallax } from 'vuetify/lib/components/VParallax';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCard,VCol,VIcon,VImg,VParallax,VRow})\n","import TournamentHistoryItem from './TournamentHistoryItem.vue'\r\nexport default TournamentHistoryItem\r\nexport { TournamentHistoryItem }\r\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, Component, Prop, Watch, Ref } from 'vue-property-decorator'\r\nimport { getModule } from 'vuex-module-decorators'\r\nimport { getElementScrollRemaining } from '@/utils/window'\r\nimport memberStore from '../../member.store'\r\nimport TournamentHistoryItem from '../../components/TournamentHistoryItem'\r\nimport ProfileHeader from '@/modules/member/components/ProfileHeader'\r\nimport {\r\n TournamentGameType,\r\n MemberTournamentHistoryItemEntity\r\n} from '@/api/tournament'\r\nimport { getGameTypes } from '@/utils/gameType'\r\n\r\nexport interface TournamentGameTypeOption {\r\n text: string\r\n value: TournamentGameType\r\n}\r\n\r\n@Component({\r\n components: {\r\n TournamentHistoryItem,\r\n ProfileHeader\r\n }\r\n})\r\nexport default class TournamentHistory extends Vue {\r\n @Prop({ default: true }) isDisplayHeader!: boolean\r\n\r\n memberModule = getModule(memberStore, this.$store)\r\n gameFilter: TournamentGameType = TournamentGameType.All\r\n isLoading: boolean = false\r\n isInitializing: boolean = true\r\n\r\n /* Wathcers */\r\n @Watch('gameFilter')\r\n async onGameFilterChanged(value: TournamentGameType) {\r\n this.memberModule.resetMemberTournamentHistory()\r\n await this.fetchTournamentHistory()\r\n }\r\n\r\n /* Hooks */\r\n async created() {\r\n await this.fetchTournamentHistory()\r\n }\r\n\r\n /* Vuex Store */\r\n get tournamentHistoryItems() {\r\n return this.memberModule.tournamentHistory\r\n }\r\n\r\n get page() {\r\n return this.memberModule.tournamentHistoryCurrentPage\r\n }\r\n\r\n get hasMorePage() {\r\n return this.memberModule.tournamentHistoryHasMorePage\r\n }\r\n\r\n get games(): TournamentGameTypeOption[] {\r\n const gameTypes = getGameTypes()\r\n var games = [\r\n {\r\n text: this.$t('TournamentHistory.AllGames'),\r\n value: TournamentGameType.All\r\n }\r\n ]\r\n gameTypes.map(gameType => {\r\n games.push({\r\n text: gameType.name,\r\n value: gameType.code as TournamentGameType\r\n })\r\n })\r\n return games\r\n }\r\n\r\n /* Methods */\r\n async fetchTournamentHistory() {\r\n this.isLoading = true\r\n await this.memberModule.fetchMemberTournamentHistory({\r\n page: this.page + 1,\r\n game: this.gameFilter\r\n })\r\n this.isLoading = false\r\n this.isInitializing = false\r\n }\r\n\r\n async scrollBehavior(event: Event) {\r\n if (\r\n getElementScrollRemaining(event.target as HTMLElement) <= 50 &&\r\n this.hasMorePage &&\r\n !this.isLoading\r\n ) {\r\n await this.fetchTournamentHistory()\r\n }\r\n }\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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistory.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!../../../../../../node_modules/webpack-preprocessor-loader/index.js??ref--16-0!./TournamentHistory.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TournamentHistory.vue?vue&type=template&id=917325aa&scoped=true&\"\nimport script from \"./TournamentHistory.vue?vue&type=script&lang=ts&\"\nexport * from \"./TournamentHistory.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TournamentHistory.vue?vue&type=style&index=0&id=917325aa&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 \"917325aa\",\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VContainer,VIcon,VProgressCircular,VRow,VSelect,VSpacer})\n","import TournamentHistory from './TournamentHistory.vue'\r\nexport default TournamentHistory\r\nexport { TournamentHistory }\r\n"],"sourceRoot":""}