{"version":3,"sources":["webpack:///./src/renderer/modules/instant/components/FancyGameSelector/FancyGameSelector.vue?1ad9","webpack:///./src/renderer/modules/catalog/components/TournamentCatalogItem/TournamentCatalogItem.vue?0611","webpack:///./src/renderer/modules/catalog/components/TournamentCatalogItem/TournamentCatalogItem.vue?58bd","webpack:///./src/renderer/modules/catalog/components/TournamentCatalogItem/TournamentCatalogItem.vue","webpack:///./src/renderer/modules/catalog/components/TournamentCatalogItem/TournamentCatalogItem.vue?3931","webpack:///./src/renderer/modules/catalog/components/TournamentCatalogItem/TournamentCatalogItem.vue?7d7f","webpack:///./src/renderer/modules/catalog/components/TournamentCatalogItem/index.ts","webpack:///./src/renderer/modules/instant/views/InstantMatchCatalog/InstantMatchCatalog.vue?feae","webpack:///./src/renderer/modules/instant/components/FancyGameSelector/FancyGameSelector.vue?52d8","webpack:///./src/renderer/modules/instant/components/FancyGameSelector/FancyGameSelector.vue","webpack:///./src/renderer/modules/instant/components/FancyGameSelector/FancyGameSelector.vue?3a27","webpack:///./src/renderer/modules/instant/components/FancyGameSelector/FancyGameSelector.vue?83a0","webpack:///./src/renderer/modules/instant/components/FancyGameSelector/index.ts","webpack:///./src/renderer/modules/instant/components/MobileGameSelector/MobileGameSelector.vue?2a95","webpack:///./src/renderer/modules/instant/components/MobileGameSelector/MobileGameSelector.vue","webpack:///./src/renderer/modules/instant/components/MobileGameSelector/MobileGameSelector.vue?a819","webpack:///./src/renderer/modules/instant/components/MobileGameSelector/MobileGameSelector.vue?6a77","webpack:///./src/renderer/modules/instant/components/MobileGameSelector/index.ts","webpack:///./src/renderer/modules/instant/components/MobilePastMatches/MobilePastMatches.vue?c6bb","webpack:///./src/renderer/modules/instant/components/MobilePastMatches/MobilePastMatches.vue","webpack:///./src/renderer/modules/instant/components/MobilePastMatches/MobilePastMatches.vue?8316","webpack:///./src/renderer/modules/instant/components/MobilePastMatches/MobilePastMatches.vue?4a7e","webpack:///./src/renderer/modules/instant/components/MobilePastMatches/index.ts","webpack:///./src/renderer/modules/instant/views/InstantMatchCatalog/InstantMatchCatalog.vue","webpack:///./src/renderer/modules/instant/views/InstantMatchCatalog/InstantMatchCatalog.vue?8b12","webpack:///./src/renderer/modules/instant/views/InstantMatchCatalog/InstantMatchCatalog.vue?7c5f","webpack:///./src/renderer/modules/instant/views/InstantMatchCatalog/index.ts","webpack:///./src/renderer/modules/shared/components/TeamAvatar/TeamAvatar.vue?87f4","webpack:///./src/renderer/modules/shared/components/TeamAvatar/TeamAvatar.vue","webpack:///./src/renderer/modules/shared/components/TeamAvatar/TeamAvatar.vue?0633","webpack:///./src/renderer/modules/shared/components/TeamAvatar/TeamAvatar.vue?fb95","webpack:///./src/renderer/modules/shared/components/TeamAvatar/index.ts","webpack:///./src/renderer/modules/catalog/components/CatalogHeader/CatalogHeader.vue?fe54","webpack:///./src/renderer/modules/catalog/components/CatalogHeader/CatalogHeader.vue","webpack:///./src/renderer/modules/catalog/components/CatalogHeader/CatalogHeader.vue?84f8","webpack:///./src/renderer/modules/catalog/components/CatalogHeader/CatalogHeader.vue?4a75","webpack:///./src/renderer/modules/catalog/components/CatalogHeader/index.ts","webpack:///./src/renderer/modules/instant/components/MobileGameSelector/MobileGameSelector.vue?f5f8","webpack:///./src/renderer/modules/instant/components/MobilePastMatches/MobilePastMatches.vue?918c","webpack:///./src/renderer/modules/shared/components/TeamAvatar/TeamAvatar.vue?e5d6","webpack:///./src/renderer/modules/instant/views/InstantMatchCatalog/InstantMatchCatalog.vue?4403","webpack:///./src/renderer/utils/window.ts","webpack:///./src/renderer/modules/instant/views/InstantMatchPastTournament/InstantMatchPastTournament.vue?90d3","webpack:///./src/renderer/modules/catalog/components/CatalogHeader/CatalogHeader.vue?2cc2","webpack:///./src/renderer/modules/instant/views/InstantMatchPastTournament/InstantMatchPastTournament.vue?fb25","webpack:///./src/renderer/modules/instant/views/InstantMatchPastTournament/InstantMatchPastTournament.vue","webpack:///./src/renderer/modules/instant/views/InstantMatchPastTournament/InstantMatchPastTournament.vue?b874","webpack:///./src/renderer/modules/instant/views/InstantMatchPastTournament/InstantMatchPastTournament.vue?45ac","webpack:///./src/renderer/modules/instant/views/InstantMatchPastTournament/index.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","onTournamentCatalogItemClicked","banner","_v","_s","_f","game","teamSize","_l","ri","index","key","$te","code","$t","name","region","length","_e","domProps","prize","startTime","endTime","class","green","state","secondary","orange","red","staticRenderFns","$router","push","params","tournamentId","required","filters","upperCase","capitalSpacing","date","components","TeamAvatar","component","VCard","VChip","VCol","VContainer","VIcon","VImg","VRow","VSpacer","ref","style","backgroundImage","isLoading","isGameListLoading","$vuetify","breakpoint","mobile","gameList","model","value","callback","$$v","currentGame","expression","regionSelectorList","isTournamentCatalogLoading","currentRegion","onInstantMatchListScroll","tournament","Array","from","numOfPlaceholderItem","_","tournamentList","currentRegionMobile","tabIndex","themeColor","scopedSlots","_u","fn","_g","_b","active","$event","changeValue","type","String","default","VTooltip","gameCode","toLowerCase","games","gameFilter","isInitializing","scrollBehavior","tournaments","regions","prizePrizePool","detailBanner","scheduleRegistrationStartTime","scheduleRegistrationEndTime","capacityMinPlayersPerTeam","staticStyle","title","tournamentState","OpenRegistration","CompleteRegistration","InProgress","All","tournamentModule","$store","loading","hasMorePage","currentPage","searchFilter","event","target","fetchMoreTournamentCatalog","fetchTournament","$toast","error","getMessage","console","page","getInstantMatchPastTournaments","response","payload","data","items","fetchTournamentCatalog","gameTypes","text","map","gameType","CatalogHeader","TournamentCatalogItem","VBtn","VProgressCircular","VSelect","sharedModule","realtimeConnectionCancellationToken","localStorage","setItem","fetchGameList","then","newVal","oldVal","animateBackgroundChange","fetchAutomatedTournamentCatalog","containerElement","desiredBackgroundImage","fadeInOnly","gsap","to","keyframes","duration","backgroundColor","onComplete","success","suggestedRegion","getItem","realtimeConnection","onAutomatedTournamentCatalogUpdated","getMemberJoinedAutomatedTournament","res","isJoined","replace","$route","query","cancel","off","shouldSetDefaultGame","getAutomatedTournamentGameList","undefined","desiredIndex","Math","min","e","tournamentListElement","scrollBottom","scrollHeight","scrollTop","find","background","applicationRegions","max","InstantMatchCatalogLogic","HTMLDivElement","MobileGameSelector","InstantMatchListItem","FancyGameSelector","MobilePastMatches","VTab","VTabItem","VTabs","noGutters","size","teamLogo","color","teamNameInitial","teamName","substring","toUpperCase","Boolean","VAvatar","small","large","xLarge","dark","bold","header","getElementScrollRemaining","element","offsetHeight","minimize","log","window","ipcRenderer","send","quit","isMobile","past"],"mappings":"gJAAA,yBAAitB,EAAG,G,kCCAptB,yBAAqtB,EAAG,G,6DCAxtB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,YAAY,0BAA0BC,MAAM,CAAC,MAAQ,WAAWC,GAAG,CAAC,MAAQR,EAAIS,iCAAiC,CAACL,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACF,EAAG,QAAQ,CAACE,YAAY,oBAAoBC,MAAM,CAAC,IAAMP,EAAIU,OAAO,MAAQ,SAAS,CAACN,EAAG,QAAQ,CAACE,YAAY,uCAAuCC,MAAM,CAAC,MAAQ,QAAQ,CAACH,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,GAAG,MAAQ,GAAG,SAAW,GAAG,MAAQ,UAAU,CAACP,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIa,GAAG,YAAPb,CAAoBA,EAAIc,OAAO,OAAOV,EAAG,SAAS,CAACE,YAAY,OAAOC,MAAM,CAAC,MAAQ,GAAG,MAAQ,GAAG,SAAW,GAAG,MAAQ,UAAU,CAACP,EAAIW,GAAG,IAAIX,EAAIY,GAAGZ,EAAIe,UAAU,IAAIf,EAAIY,GAAGZ,EAAIe,UAAU,OAAOX,EAAG,YAAYJ,EAAIgB,GAAIhB,EAAU,QAAE,SAASiB,EAAGC,GAAO,OAAOd,EAAG,SAAS,CAACe,IAAK,MAA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aAA5B,eAA4C+B,EAAQE,S,8EAItDxI,KAAKuH,SAAU,E,+EArErB,mD,wJA2EM,O,kBAAMvH,KAAK8H,gBAAgB9H,KAAKyH,YAAc,G,yDAE1C,gBAAe,OACjBzH,KAAK+H,OAAOC,MAAM,KAAIC,eAEtBjI,KAAK+H,OAAOC,MAAMhI,KAAKqB,GAAG,iCAC1B6G,QAAQF,MAAR,O,0DAjFR,0CAwF4BnH,G,wJACxB,O,SAAMb,KAAKyI,yB,kDAzFf,0CA6F4B2F,G,wJACxBpO,KAAKqC,QAAQC,KAAK,CAChBhB,KAAM,sBACN0J,MAAO,CACLqD,KAAM,Q,kDAjGd,gC,wJAyGI,OADArO,KAAK+G,MAAQ/G,KAAKqB,GAAG,+B,SACfrB,KAAKyI,yB,kDAzGf,4BA6GI,IAAMC,EAAY,iBACdvC,EAAQ,CACV,CACEwC,KAAM3I,KAAKqB,GAAG,8BACd8C,MAAO,OAAmBiD,MAS9B,OANAsB,EAAUE,KAAI,SAAAC,GACZ1C,EAAM7D,KAAK,CACTqG,KAAME,EAASvH,KACf6C,MAAO0E,EAASzH,UAGb+E,MA1HX,GAAwD,QAwFtD,QADC,eAAM,c,2DAC2C,oB,EAAA,qBAAlB,gBAAkB,W,uEAEjD,MAGD,QADC,eAAM,8B,4IAQN,MApGkB,EAA0B,QAN9C,eAAU,CACTrD,WAAY,CACVgG,gBAAA,KACAC,wBAAA,SAGiB,WC7GuhB,I,6ICQxiB/F,EAAY,eACd,EACAlD,EACAsC,GACA,EACA,KACA,WACA,MAIa,EAAAY,EAAiB,QAYhC,IAAkBA,EAAW,CAACgG,OAAA,KAAK7F,OAAA,KAAKC,aAAA,KAAWC,QAAA,KAAM4F,oBAAA,KAAkB1F,OAAA,KAAK2F,UAAA,KAAQ1F,UAAA,OC9BzE","file":"js/instant-match-catalog.72c13880.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!./FancyGameSelector.vue?vue&type=style&index=0&id=68fbba0f&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!./FancyGameSelector.vue?vue&type=style&index=0&id=68fbba0f&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!./TournamentCatalogItem.vue?vue&type=style&index=0&id=0985571a&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!./TournamentCatalogItem.vue?vue&type=style&index=0&id=0985571a&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:\"tournament-catalog-item\",attrs:{\"color\":\"#353535\"},on:{\"click\":_vm.onTournamentCatalogItemClicked}},[_c('div',{staticClass:\"tournament-catalog-container\"},[_c('v-img',{staticClass:\"tournament-banner\",attrs:{\"src\":_vm.banner,\"width\":\"100%\"}},[_c('v-row',{staticClass:\"tournament-banner-labels fill-height\",attrs:{\"align\":\"end\"}},[_c('v-chip',{attrs:{\"label\":\"\",\"small\":\"\",\"outlined\":\"\",\"color\":\"white\"}},[_vm._v(\" \"+_vm._s(_vm._f(\"upperCase\")(_vm.game))+\" \")]),_c('v-chip',{staticClass:\"mx-3\",attrs:{\"label\":\"\",\"small\":\"\",\"outlined\":\"\",\"color\":\"white\"}},[_vm._v(\" \"+_vm._s(_vm.teamSize)+\"V\"+_vm._s(_vm.teamSize)+\" \")]),_c('v-spacer'),_vm._l((_vm.region),function(ri,index){return _c('v-chip',{key:(\"ri-\" + index),staticClass:\"ml-1\",attrs:{\"label\":\"\",\"small\":\"\",\"color\":\"secondary\"}},[_vm._v(\" \"+_vm._s(_vm.$te('Regions.' + ri.code) ? _vm.$t('Regions.' + ri.code) : ri.name)+\" \")])}),(!_vm.region || _vm.region.length === 0)?_c('v-chip',{attrs:{\"label\":\"\",\"small\":\"\",\"color\":\"secondary\"}},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentBasicInformation.AllRegions'))+\" \")]):_vm._e()],2)],1),_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-container',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('div',{staticClass:\"tournament-name\",domProps:{\"textContent\":_vm._s(_vm.name)}})])],1),_c('v-row',{attrs:{\"justify\":\"start\"}},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('span',{staticClass:\"prize\"},[_c('v-icon',{attrs:{\"left\":\"\",\"x-large\":\"\",\"color\":\"grey\"}},[_vm._v(\"mdi-trophy\")]),_vm._v(\" \"+_vm._s(_vm.prize)+\" \")],1)])],1),_c('v-row',[_c('v-col',{staticClass:\"fill-height justify-center\",attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('v-icon',{attrs:{\"left\":\"\",\"color\":\"grey\"}},[_vm._v(\"mdi-table-large\")]),(_vm.startTime)?_c('span',{staticClass:\"date caption\"},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(_vm.startTime))+\" - \"+_vm._s(_vm._f(\"date\")(_vm.endTime))+\" \")]):_vm._e()],1),_c('v-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('div',[_c('v-chip',{class:{\n green: _vm.state === 'OpenRegistration',\n secondary: _vm.state === 'InProgress',\n orange: _vm.state === 'CompleteRegistration',\n red: _vm.state === 'Completed'\n },attrs:{\"label\":\"\",\"small\":\"\",\"outlined\":\"\",\"dark\":\"\"}},[_vm._v(\" \"+_vm._s(_vm._f(\"capitalSpacing\")(_vm.$t('TournamentState.' + _vm.state)))+\" \")])],1)])],1)],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\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\n\r\nimport { capitalSpacing, upperCase, date } from '@/utils'\r\nimport { RegionInfo } from '@/api/config'\r\n@Component({\r\n filters: {\r\n upperCase,\r\n capitalSpacing,\r\n date\r\n },\r\n components: {\r\n TeamAvatar\r\n }\r\n})\r\nexport default class TournamentCatalogItem extends Vue {\r\n @Prop({ required: true }) readonly tournamentId!: string\r\n @Prop({ required: true }) readonly banner!: string\r\n @Prop({ required: true }) readonly name!: string\r\n @Prop({ required: true }) readonly startTime!: number\r\n @Prop({ required: true }) readonly endTime!: number\r\n @Prop({ required: true }) readonly region!: RegionInfo[]\r\n @Prop({ required: true }) readonly game!: string\r\n @Prop({ required: true }) readonly state!: string\r\n @Prop({ required: true }) readonly prize!: string\r\n @Prop({ required: true }) readonly teamSize!: number\r\n\r\n /* Methods */\r\n async onTournamentCatalogItemClicked() {\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!./TournamentCatalogItem.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!./TournamentCatalogItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TournamentCatalogItem.vue?vue&type=template&id=0985571a&scoped=true&\"\nimport script from \"./TournamentCatalogItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./TournamentCatalogItem.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TournamentCatalogItem.vue?vue&type=style&index=0&id=0985571a&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 \"0985571a\",\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 { VChip } from 'vuetify/lib/components/VChip';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCard,VChip,VCol,VContainer,VIcon,VImg,VRow,VSpacer})\n","import TournamentCatalogItem from './TournamentCatalogItem.vue'\r\nimport { TournamentGameType } from '@/api/tournament'\r\nexport default TournamentCatalogItem\r\nexport { TournamentCatalogItem }\r\nexport interface TournamentGameTypeOption {\r\n text: string\r\n value: TournamentGameType\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"instant-match-catalog pa-0 pa-lg-5\",style:({ backgroundImage: _vm.backgroundImage })},[(_vm.isLoading || _vm.isGameListLoading)?_c('div',{staticClass:\"no-instant-match\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"size\":\"100\"}})],1):_vm._e(),(\n !_vm.$vuetify.breakpoint.mobile && !_vm.isGameListLoading && !_vm.gameList.length\n )?_c('div',{staticClass:\"no-instant-match position-relative\"},[_c('h1',{staticClass:\"glitch\",attrs:{\"data-text\":_vm.$t('InstantMatchCatalog.ComingSoon')}},[_vm._v(\" \"+_vm._s(_vm.$t('InstantMatchCatalog.ComingSoon'))+\" \")]),_c('v-btn',{staticClass:\"past-tournament-button\",attrs:{\"color\":\"white\",\"light\":\"\",\"to\":{ name: 'InstantMatchPastTournament' }}},[_c('v-icon',{staticClass:\"mr-4\",attrs:{\"left\":\"\",\"x-large\":\"\"}},[_vm._v(\" mdi-chevron-left \")]),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('InstantMatchCatalog.ShowPastTournament'))}})],1)],1):_c('v-container',{staticClass:\"fill-height py-0\",attrs:{\"fluid\":\"\"}},[(\n !_vm.$vuetify.breakpoint.mobile && !_vm.isGameListLoading && _vm.gameList.length\n )?_c('v-row',{staticClass:\"fill-height position-relative\"},[_c('v-col',{staticClass:\"d-flex flex-column\",attrs:{\"cols\":\"7\"}},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.$t('InstantMatchCatalog.SelectYourGame'))+\" \")]),(_vm.isGameListLoading)?_c('div',{staticClass:\"flex-grow-1 d-flex align-center justify-center\"},[_c('v-progress-circular',{staticClass:\"mb-10\",attrs:{\"indeterminate\":\"\",\"size\":\"80\"}})],1):_c('div',{staticClass:\"game-selector-scroller\"},[_c('div',{staticClass:\"game-selector-container\"},[_c('FancyGameSelector',{attrs:{\"games\":_vm.gameList},model:{value:(_vm.currentGame),callback:function ($$v) {_vm.currentGame=$$v},expression:\"currentGame\"}})],1)]),_c('v-btn',{staticClass:\"past-tournament-button\",attrs:{\"color\":\"white\",\"light\":\"\",\"to\":{ name: 'InstantMatchPastTournament' }}},[_c('v-icon',{staticClass:\"mr-4\",attrs:{\"left\":\"\",\"x-large\":\"\"}},[_vm._v(\" mdi-chevron-left \")]),_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.$t('InstantMatchCatalog.ShowPastTournament'))}})],1)],1),_c('v-col',{attrs:{\"cols\":\"5\"}},[_c('div',{staticClass:\"d-flex\"},[_c('h1',[_vm._v(_vm._s(_vm.$t('InstantMatchCatalog.Tournaments')))]),_c('div',{staticClass:\"region-selector-container\"},[_c('v-select',{attrs:{\"items\":_vm.regionSelectorList,\"label\":_vm.$t('MemberEditProfileDialog.Region'),\"hide-details\":\"\",\"disabled\":_vm.isTournamentCatalogLoading},model:{value:(_vm.currentRegion),callback:function ($$v) {_vm.currentRegion=$$v},expression:\"currentRegion\"}})],1)]),(!_vm.isGameListLoading)?[(_vm.isTournamentCatalogLoading)?_c('div',{staticClass:\"instant-match-list d-flex align-center justify-center\"},[_c('v-progress-circular',{staticClass:\"mb-10\",attrs:{\"indeterminate\":\"\",\"size\":\"80\"}})],1):_c('div',{staticClass:\"instant-match-list\",on:{\"scroll\":_vm.onInstantMatchListScroll}},[_vm._l((_vm.tournamentList),function(tournament){return _c('InstantMatchListItem',{key:(\"instant-match-item-\" + (tournament.tournamentId)),attrs:{\"tournament\":tournament}})}),_vm._l((Array.from(\n new Array(_vm.numOfPlaceholderItem)\n )),function(_,index){return _c('InstantMatchListItem',{key:(\"instant-match-item-placeholder-\" + index),attrs:{\"coming-soon\":true,\"tournament\":_vm.tournamentList[index % _vm.tournamentList.length]}})}),(_vm.tournamentList.length === 0)?_c('div',{staticClass:\"coming-soon\"},[_c('span',{staticClass:\"glitch\",attrs:{\"data-text\":_vm.$t('InstantMatchCatalog.ComingSoon')}},[_vm._v(\" \"+_vm._s(_vm.$t('InstantMatchCatalog.ComingSoon'))+\" \")])]):_vm._e()],2)]:_vm._e()],2)],1):_vm._e(),(_vm.$vuetify.breakpoint.mobile && !_vm.isGameListLoading)?_c('v-row',{staticClass:\"fill-height mobile-game-selector-row\"},[_c('v-select',{staticClass:\"mb-2 mx-4\",attrs:{\"items\":_vm.regionSelectorList,\"label\":_vm.$t('MemberEditProfileDialog.Region'),\"hide-details\":\"\",\"disabled\":_vm.isGameListLoading,\"outlined\":\"\",\"dense\":\"\"},model:{value:(_vm.currentRegionMobile),callback:function ($$v) {_vm.currentRegionMobile=$$v},expression:\"currentRegionMobile\"}}),_c('v-tabs',{attrs:{\"background-color\":\"#000\",\"height\":\"40\"},model:{value:(_vm.tabIndex),callback:function ($$v) {_vm.tabIndex=$$v},expression:\"tabIndex\"}},[_c('v-tab',[_vm._v(_vm._s(_vm.$t('InstantMatchCatalog.Active')))]),_c('v-tab',[_vm._v(_vm._s(_vm.$t('InstantMatchCatalog.Past')))]),_c('v-tab-item',[_c('div',{staticClass:\"pa-3 mobile-game-selector-container\"},[_c('MobileGameSelector',{attrs:{\"games\":_vm.gameList,\"region\":_vm.currentRegionMobile},model:{value:(_vm.currentGame),callback:function ($$v) {_vm.currentGame=$$v},expression:\"currentGame\"}}),(!_vm.isGameListLoading && _vm.gameList && !_vm.gameList.length)?_c('div',{staticClass:\"no-instant-match\"},[_c('h1',{staticClass:\"glitch\",attrs:{\"data-text\":_vm.$t('InstantMatchCatalog.ComingSoon')}},[_vm._v(\" \"+_vm._s(_vm.$t('InstantMatchCatalog.ComingSoon'))+\" \")])]):_vm._e()],1)]),_c('v-tab-item',[_c('div',{staticClass:\"pa-3 mobile-game-selector-container\"},[_c('MobilePastMatches')],1)])],1)],1):_vm._e()],1)],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('ul',{staticClass:\"game-selector\"},_vm._l((_vm.games),function(game){return _c('v-tooltip',{key:(\"fgs-\" + (game.code)),attrs:{\"right\":\"\",\"color\":game.themeColor},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('li',_vm._g(_vm._b({class:{ active: _vm.value === game.code },attrs:{\"role\":\"button\"},on:{\"click\":function($event){return _vm.changeValue(game.code)}}},'li',attrs,false),on),[_c('div',{staticClass:\"game-img-container\"},[_c('div',{staticClass:\"game-img-inner\"},[_c('img',{attrs:{\"src\":game.banner}})])])])]}}],null,true)},[_c('span',[_vm._v(_vm._s(game.name))])])}),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\r\nimport { Vue, Component, Prop, Emit } from 'vue-property-decorator'\r\nimport { SupportedGame } from '@/api/config'\r\n\r\n@Component\r\nexport default class FancyGameSelector extends Vue {\r\n @Prop({ type: String, default: null })\r\n value!: string\r\n\r\n @Prop({ default: [] })\r\n games!: SupportedGame[]\r\n\r\n @Emit('input')\r\n changeValue(game: string) {\r\n return game\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!./FancyGameSelector.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!./FancyGameSelector.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FancyGameSelector.vue?vue&type=template&id=68fbba0f&scoped=true&\"\nimport script from \"./FancyGameSelector.vue?vue&type=script&lang=ts&\"\nexport * from \"./FancyGameSelector.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./FancyGameSelector.vue?vue&type=style&index=0&id=68fbba0f&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 \"68fbba0f\",\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 { VTooltip } from 'vuetify/lib/components/VTooltip';\ninstallComponents(component, {VTooltip})\n","import FancyGameSelector from './FancyGameSelector.vue'\r\nexport default FancyGameSelector\r\nexport { FancyGameSelector }\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"mobile-game-selector\"},_vm._l((_vm.games),function(game){return _c('li',{key:(\"mgs-\" + (game.code)),attrs:{\"role\":\"button\"},on:{\"click\":function($event){_vm.$router.push({\n name: 'InstantMatchCatalogMobile',\n params: {\n gameCode: game.code.toLowerCase(),\n region: _vm.region\n }\n })}}},[_c('img',{attrs:{\"src\":game.banner}})])}),0)}\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\r\nimport { Vue, Component, Prop, Emit } from 'vue-property-decorator'\r\nimport { SupportedGame } from '@/api/config'\r\n\r\n@Component\r\nexport default class MobileGameSelector extends Vue {\r\n @Prop({ type: String, default: null })\r\n value!: string\r\n\r\n @Prop({ default: [] })\r\n games!: SupportedGame[]\r\n\r\n @Prop({ type: String, default: null })\r\n region!: string\r\n\r\n @Emit('input')\r\n changeValue(game: string) {\r\n return game\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!./MobileGameSelector.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!./MobileGameSelector.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MobileGameSelector.vue?vue&type=template&id=da91d460&scoped=true&\"\nimport script from \"./MobileGameSelector.vue?vue&type=script&lang=ts&\"\nexport * from \"./MobileGameSelector.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MobileGameSelector.vue?vue&type=style&index=0&id=da91d460&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 \"da91d460\",\n null\n \n)\n\nexport default component.exports","import MobileGameSelector from './MobileGameSelector.vue'\r\nexport default MobileGameSelector\r\nexport { MobileGameSelector }\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-col',{staticClass:\"pa-0\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',{staticClass:\"py-0 my-0\",attrs:{\"cols\":\"12\",\"lg\":\"3\"}},[_c('v-select',{attrs:{\"items\":_vm.games},model:{value:(_vm.gameFilter),callback:function ($$v) {_vm.gameFilter=$$v},expression:\"gameFilter\"}})],1)],1),(_vm.isInitializing || _vm.isLoading)?_c('v-row',{staticClass:\"tournament-items-wrapper\"},[_c('v-progress-circular',{staticClass:\"mx-auto mt-10\",attrs:{\"color\":\"grey\",\"indeterminate\":\"\",\"size\":\"150\"}})],1):_c('v-row',{staticClass:\"tournament-items-wrapper\",on:{\"scroll\":function($event){return _vm.scrollBehavior($event)}}},[(_vm.tournaments.length)?_vm._l((_vm.tournaments),function(tournament,index){return _c('v-col',{key:(\"active-tournament-\" + index),attrs:{\"xl\":\"3\",\"lg\":\"4\",\"sm\":\"6\",\"cols\":\"12\"}},[_c('TournamentCatalogItem',{attrs:{\"tournamentId\":tournament.tournamentId,\"name\":tournament.name,\"game\":tournament.game,\"state\":tournament.state,\"region\":tournament.regions,\"prize\":tournament.prizePrizePool,\"banner\":tournament.detailBanner,\"startTime\":tournament.scheduleRegistrationStartTime,\"endTime\":tournament.scheduleRegistrationEndTime,\"teamSize\":tournament.capacityMinPlayersPerTeam}})],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('ActiveTournamentCatalog.NoTournamentsMessage'))+\" \")])],1)]],2),_c('v-btn',{staticClass:\"active-tournament-button\",attrs:{\"color\":\"transparent\",\"light\":\"\",\"height\":\"3rem\",\"to\":{ name: 'InstantMatchCatalog' }}},[_c('span',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.$t('InstantMatchPastTournament.ShowActiveTournament'))}}),_c('v-icon',{staticClass:\"ml-4 message\",attrs:{\"left\":\"\",\"x-large\":\"\"}},[_vm._v(\" mdi-chevron-right \")])],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\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, Watch } from 'vue-property-decorator'\r\nimport CatalogHeader from '@/modules/catalog/components/CatalogHeader'\r\nimport TournamentCatalogItem, {\r\n TournamentGameTypeOption\r\n} from '@/modules/catalog/components/TournamentCatalogItem'\r\nimport {\r\n TournamentGameType,\r\n TournamentEntity,\r\n TournamentState,\r\n TournamentAPI\r\n} from '@/api/tournament'\r\nimport { getElementScrollRemaining } from '@/utils/window'\r\nimport tournamentStore from '@/modules/tournament/tournament.store'\r\nimport { getModule } from 'vuex-module-decorators'\r\nimport ServerError from '@/utils/server_error'\r\nimport { getGameTypes } from '@/utils/gameType'\r\n\r\n@Component({\r\n components: {\r\n CatalogHeader,\r\n TournamentCatalogItem\r\n }\r\n})\r\nexport default class InstantMatchPastTournament extends Vue {\r\n // Page configuration\r\n title: string = 'Past Tournaments'\r\n tournamentState: TournamentState[] = [\r\n TournamentState.OpenRegistration,\r\n TournamentState.CompleteRegistration,\r\n TournamentState.InProgress\r\n ]\r\n\r\n // Filters\r\n gameFilter: TournamentGameType = TournamentGameType.All\r\n tournamentModule = getModule(tournamentStore, this.$store)\r\n tournaments: TournamentEntity[] = []\r\n isInitializing: boolean = true\r\n isLoading: boolean = false\r\n loading: boolean = false\r\n hasMorePage: boolean = true\r\n currentPage: number = 0\r\n searchFilter: any = {}\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.fetchMoreTournamentCatalog()\r\n }\r\n }\r\n\r\n async fetchTournamentCatalog() {\r\n try {\r\n // Set filter\r\n\r\n this.isLoading = true\r\n this.searchFilter = {\r\n game: this.gameFilter\r\n }\r\n await this.fetchTournament()\r\n } catch (err) {\r\n if (err instanceof ServerError) {\r\n this.$toast.error(err.getMessage())\r\n } else {\r\n this.$toast.error(this.$t('AppSwiper.SystemErrorMessage'))\r\n console.error(err)\r\n }\r\n } finally {\r\n this.isLoading = false\r\n this.isInitializing = false\r\n }\r\n }\r\n async fetchTournament(page: number = 1) {\r\n if (page <= this.currentPage || !this.hasMorePage || this.loading) {\r\n return\r\n }\r\n this.currentPage = page\r\n this.loading = true\r\n try {\r\n const response = await TournamentAPI.getInstantMatchPastTournaments(\r\n page,\r\n this.searchFilter\r\n )\r\n const payload = response.data.payload\r\n if (payload) {\r\n this.hasMorePage = payload.hasMorePage\r\n this.tournaments = [...this.tournaments, ...payload.items]\r\n }\r\n } catch {\r\n } finally {\r\n this.loading = false\r\n }\r\n }\r\n\r\n async fetchMoreTournamentCatalog() {\r\n try {\r\n await this.fetchTournament(this.currentPage + 1)\r\n } catch (err) {\r\n if (err instanceof ServerError) {\r\n this.$toast.error(err.getMessage())\r\n } else {\r\n this.$toast.error(this.$t('AppSwiper.SystemErrorMessage'))\r\n console.error(err)\r\n }\r\n }\r\n }\r\n\r\n /* Wathcers */\r\n @Watch('gameFilter')\r\n async onGameFilterChanged(game: TournamentGameType) {\r\n await this.fetchTournamentCatalog()\r\n }\r\n\r\n /* Hooks */\r\n async created() {\r\n this.title = this.$t('PastTournamentCatalog.Title')\r\n await this.fetchTournamentCatalog()\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","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!./MobilePastMatches.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!./MobilePastMatches.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MobilePastMatches.vue?vue&type=template&id=45bc66b4&scoped=true&\"\nimport script from \"./MobilePastMatches.vue?vue&type=script&lang=ts&\"\nexport * from \"./MobilePastMatches.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MobilePastMatches.vue?vue&type=style&index=0&id=45bc66b4&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 \"45bc66b4\",\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 { VBtn } from 'vuetify/lib/components/VBtn';\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';\ninstallComponents(component, {VBtn,VCol,VContainer,VIcon,VProgressCircular,VRow,VSelect})\n","import MobilePastMatches from './MobilePastMatches.vue'\r\nexport default MobilePastMatches\r\nexport { MobilePastMatches }\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\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\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, Watch, Ref } from 'vue-property-decorator'\r\nimport { mixins } from 'vue-class-component'\r\nimport gsap from 'gsap'\r\nimport FancyGameSelector from '@/modules/instant/components/FancyGameSelector'\r\nimport { getModule } from 'vuex-module-decorators'\r\nimport sharedStore from '@/modules/shared/shared.store'\r\nimport { TournamentAPI, TournamentEntity } from '@/api/tournament'\r\nimport ServerError from '@/utils/server_error'\r\nimport { SupportedGame } from '@/api/config'\r\nimport InstantMatchListItem from '@/modules/instant/components/InstantMatchListItem'\r\nimport { getRealtimeConnection } from '@/utils/realtime'\r\nimport { HubConnection } from '@microsoft/signalr'\r\nimport { CancellationToken } from '@/utils/cancel'\r\nimport MobileGameSelector from '@/modules/instant/components/MobileGameSelector'\r\nimport MobilePastMatches from '@/modules/instant/components/MobilePastMatches'\r\nimport InstantMatchCatalogLogic from '@/modules/instant/mixins/InstantMatchCatalogLogic'\r\n\r\n@Component({\r\n components: {\r\n MobileGameSelector,\r\n InstantMatchListItem,\r\n FancyGameSelector,\r\n MobilePastMatches\r\n }\r\n})\r\nexport default class InstantMatchCatalog extends mixins(\r\n InstantMatchCatalogLogic\r\n) {\r\n sharedModule = getModule(sharedStore, this.$store)\r\n\r\n @Ref('container')\r\n containerElement!: HTMLDivElement\r\n\r\n backgroundImage: string = 'none'\r\n\r\n isLoading: boolean = false\r\n realtimeConnection!: HubConnection\r\n realtimeConnectionCancellationToken = new CancellationToken()\r\n\r\n isGameListLoading: boolean = false\r\n currentGame: string = ''\r\n currentRegion: string | null = null\r\n currentRegionMobile: string | null = null\r\n gameList: SupportedGame[] = []\r\n tabIndex: number = 0\r\n\r\n @Watch('currentRegionMobile')\r\n onCurrentRegionMobileChanged() {\r\n if (!this.$vuetify.breakpoint.mobile) {\r\n return\r\n }\r\n\r\n localStorage.setItem(\r\n 'instant_match.current_region',\r\n this.currentRegionMobile!\r\n )\r\n\r\n this.fetchGameList(false).then()\r\n }\r\n\r\n @Watch('currentGame')\r\n async onCurrentGameChanged(newVal: string, oldVal: string) {\r\n this.animateBackgroundChange(oldVal === '')\r\n this.tournamentList = []\r\n this.page = 1\r\n await this.fetchAutomatedTournamentCatalog(\r\n this.page,\r\n this.currentGame,\r\n this.currentRegion\r\n )\r\n }\r\n\r\n @Watch('currentRegion')\r\n async onCurrentRegionChanged() {\r\n this.tournamentList = []\r\n this.page = 1\r\n await this.fetchAutomatedTournamentCatalog(\r\n this.page,\r\n this.currentGame,\r\n this.currentRegion\r\n )\r\n }\r\n\r\n @Watch('desiredBackgroundImage')\r\n onDesiredBackgroundImageChanged() {\r\n if (!this.containerElement) {\r\n this.backgroundImage = this.desiredBackgroundImage\r\n }\r\n }\r\n\r\n animateBackgroundChange(fadeInOnly: boolean) {\r\n gsap.to(this.containerElement, {\r\n keyframes: [\r\n {\r\n duration: fadeInOnly ? 0 : 0.5,\r\n backgroundColor: 'rgba(0, 0, 0, 1)',\r\n onComplete: () => {\r\n this.backgroundImage = this.desiredBackgroundImage\r\n }\r\n },\r\n {\r\n duration: 0.5,\r\n backgroundColor: 'rgba(0, 0, 0, 0.6)'\r\n }\r\n ]\r\n })\r\n }\r\n\r\n async onAutomatedTournamentCatalogUpdated() {\r\n this.tournamentList = []\r\n this.page = 1\r\n await this.fetchGameList(!this.currentGame)\r\n await this.fetchAutomatedTournamentCatalog(\r\n this.page,\r\n this.currentGame,\r\n this.currentRegion\r\n )\r\n this.$toast.success(this.$t('InstantMatchCatalog.CatalogUpdated'))\r\n }\r\n\r\n async created() {\r\n this.isLoading = true\r\n this.currentRegion = this.sharedModule.suggestedRegion\r\n this.currentRegionMobile =\r\n localStorage.getItem('instant_match.current_region') || this.currentRegion\r\n\r\n // listen signalR events\r\n this.realtimeConnection = await getRealtimeConnection(\r\n this.realtimeConnectionCancellationToken\r\n )\r\n this.realtimeConnection.on(\r\n 'automatedTournamentCatalogUpdated',\r\n this.onAutomatedTournamentCatalogUpdated\r\n )\r\n\r\n try {\r\n const res = await TournamentAPI.getMemberJoinedAutomatedTournament()\r\n if (res.data.payload!.isJoined) {\r\n await this.$router.replace({\r\n name: 'InstantMatchDetails',\r\n params: {\r\n tournamentId: res.data.payload!.tournamentId\r\n }\r\n })\r\n } else {\r\n this.isLoading = false\r\n await this.fetchGameList(true)\r\n }\r\n } catch (err) {\r\n if (err instanceof ServerError) {\r\n this.$toast.error(err.getMessage())\r\n } else {\r\n this.$toast.error(this.$t('Landing.SystemErrorMessage'))\r\n }\r\n console.error(err)\r\n }\r\n\r\n // Object\r\n if ('past' in this.$route.query) {\r\n this.tabIndex = 1\r\n }\r\n }\r\n\r\n beforeDestroy() {\r\n this.realtimeConnectionCancellationToken.cancel()\r\n if (this.realtimeConnection) {\r\n this.realtimeConnection.off(\r\n 'automatedTournamentCatalogUpdated',\r\n this.onAutomatedTournamentCatalogUpdated\r\n )\r\n }\r\n }\r\n\r\n async fetchGameList(shouldSetDefaultGame: boolean = false) {\r\n if (this.isGameListLoading) {\r\n return\r\n }\r\n\r\n this.isGameListLoading = true\r\n try {\r\n const res = await TournamentAPI.getAutomatedTournamentGameList(\r\n false,\r\n this.$vuetify.breakpoint.mobile ? this.currentRegionMobile! : undefined\r\n )\r\n this.gameList = res.data.payload as SupportedGame[]\r\n // this.gameList = this.sharedModule.applicationSupportedGames\r\n\r\n if (shouldSetDefaultGame) {\r\n // auto select the 2nd game\r\n const desiredIndex = Math.min(1, this.gameList.length - 1)\r\n if (this.gameList[desiredIndex]) {\r\n this.currentGame = this.gameList[desiredIndex].code\r\n }\r\n }\r\n } catch (err) {\r\n if (err instanceof ServerError) {\r\n this.$toast.error(err.getMessage())\r\n } else {\r\n this.$toast.error(this.$t('Landing.SystemErrorMessage'))\r\n }\r\n console.error(err)\r\n } finally {\r\n this.isGameListLoading = false\r\n }\r\n }\r\n\r\n get desiredBackgroundImage() {\r\n if (this.isLoading) {\r\n return 'none'\r\n }\r\n\r\n const game = this.gameList.find(game => game.code === this.currentGame)\r\n if (!game) return 'none'\r\n\r\n return `url(${game.background})`\r\n }\r\n\r\n get regionList() {\r\n return this.sharedModule.applicationRegions\r\n }\r\n\r\n get regionSelectorList() {\r\n return [\r\n {\r\n value: null,\r\n text: this.$t('InstantMatchCatalog.AllRegion')\r\n },\r\n ...this.sharedModule.applicationRegions.map(region => ({\r\n value: region.code,\r\n text: region.name\r\n }))\r\n ]\r\n }\r\n\r\n get numOfPlaceholderItem() {\r\n return Math.max(1, 4 - this.tournamentList.length)\r\n }\r\n\r\n async onInstantMatchListScroll(e: MouseEvent) {\r\n const tournamentListElement = e.target as HTMLDivElement\r\n\r\n if (!tournamentListElement || !this.hasMorePage) {\r\n return\r\n }\r\n\r\n const scrollBottom =\r\n tournamentListElement.scrollHeight - tournamentListElement.scrollTop\r\n\r\n if (scrollBottom < 100) {\r\n await this.fetchAutomatedTournamentCatalog(\r\n this.page + 1,\r\n this.currentGame,\r\n this.currentRegion\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!./InstantMatchCatalog.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!./InstantMatchCatalog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InstantMatchCatalog.vue?vue&type=template&id=7a599dac&scoped=true&\"\nimport script from \"./InstantMatchCatalog.vue?vue&type=script&lang=ts&\"\nexport * from \"./InstantMatchCatalog.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InstantMatchCatalog.vue?vue&type=style&index=0&id=7a599dac&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 \"7a599dac\",\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 { VBtn } from 'vuetify/lib/components/VBtn';\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 { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabItem } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VBtn,VCol,VContainer,VIcon,VProgressCircular,VRow,VSelect,VTab,VTabItem,VTabs})\n","import InstantMatchCatalog from './InstantMatchCatalog.vue'\r\nexport default InstantMatchCatalog\r\nexport { InstantMatchCatalog }\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"avatar-container\",class:{ 'pa-0': _vm.noGutters }},[(_vm.hasValidImage)?_c('v-img',{staticClass:\"team-logo mx-auto\",attrs:{\"height\":_vm.size,\"width\":_vm.size,\"position\":\"center\",\"src\":_vm.teamLogo}}):_c('v-avatar',{staticClass:\"mx-auto team-name\",attrs:{\"color\":_vm.color,\"height\":_vm.size,\"width\":_vm.size},domProps:{\"textContent\":_vm._s(_vm.teamNameInitial)}})],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\r\nimport { Vue, Component, Prop } from 'vue-property-decorator'\r\n\r\n@Component\r\nexport default class TeamAvatar extends Vue {\r\n @Prop({ type: String, required: true }) teamLogo!: string\r\n @Prop({ type: String, required: true }) teamName!: string\r\n @Prop({ type: String, default: '5rem' }) size!: string\r\n @Prop({ type: String, default: 'primary' }) color!: string\r\n @Prop({ type: Boolean, default: false }) noGutters!: boolean\r\n\r\n /* Methods */\r\n get hasValidImage() {\r\n return !!this.teamLogo.length\r\n }\r\n\r\n get teamNameInitial() {\r\n return this.teamName.substring(0, 1).toUpperCase()\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!./TeamAvatar.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!./TeamAvatar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamAvatar.vue?vue&type=template&id=6991e535&scoped=true&\"\nimport script from \"./TeamAvatar.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamAvatar.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TeamAvatar.vue?vue&type=style&index=0&id=6991e535&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 \"6991e535\",\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 { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VImg } from 'vuetify/lib/components/VImg';\ninstallComponents(component, {VAvatar,VContainer,VImg})\n","import TeamAvatar from './TeamAvatar.vue'\r\nexport default TeamAvatar\r\nexport { TeamAvatar }\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',[_c('v-col',{staticClass:\"catalog-header\",class:{ small: _vm.small, large: _vm.large, xLarge: _vm.xLarge, dark: _vm.dark, bold: _vm.bold },attrs:{\"cols\":\"12\"},domProps:{\"textContent\":_vm._s(_vm.header)}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Vue, Component, Prop } from 'vue-property-decorator'\r\n\r\n@Component\r\nexport default class CatalogHeader extends Vue {\r\n @Prop({ required: true }) readonly header!: string\r\n @Prop({ type: Boolean, default: false }) readonly small!: boolean\r\n @Prop({ type: Boolean, default: false }) readonly large!: boolean\r\n @Prop({ type: Boolean, default: false }) readonly xLarge!: boolean\r\n @Prop({ type: Boolean, default: false }) readonly dark!: boolean\r\n @Prop({ type: Boolean, default: false }) readonly bold!: boolean\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!./CatalogHeader.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!./CatalogHeader.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CatalogHeader.vue?vue&type=template&id=c9a0c8b4&scoped=true&\"\nimport script from \"./CatalogHeader.vue?vue&type=script&lang=ts&\"\nexport * from \"./CatalogHeader.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CatalogHeader.vue?vue&type=style&index=0&id=c9a0c8b4&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 \"c9a0c8b4\",\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 { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCol,VRow})\n","import CatalogHeader from './CatalogHeader.vue'\r\n\r\nexport { CatalogHeader }\r\nexport default CatalogHeader\r\n","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!./MobileGameSelector.vue?vue&type=style&index=0&id=da91d460&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!./MobileGameSelector.vue?vue&type=style&index=0&id=da91d460&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!./MobilePastMatches.vue?vue&type=style&index=0&id=45bc66b4&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!./MobilePastMatches.vue?vue&type=style&index=0&id=45bc66b4&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!./TeamAvatar.vue?vue&type=style&index=0&id=6991e535&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!./TeamAvatar.vue?vue&type=style&index=0&id=6991e535&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!./InstantMatchCatalog.vue?vue&type=style&index=0&id=7a599dac&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!./InstantMatchCatalog.vue?vue&type=style&index=0&id=7a599dac&lang=scss&scoped=true&\"","import { isElectron } from '@/utils/electron'\r\n\r\nexport function getScrollTop() {\r\n return window.pageYOffset !== undefined\r\n ? window.pageYOffset\r\n : document.documentElement.scrollTop\r\n}\r\n\r\nexport function getWindowHeight() {\r\n return document.documentElement.clientHeight\r\n}\r\n\r\nexport function getElementScrollRemaining(element: HTMLElement) {\r\n return element.scrollHeight - element.offsetHeight - element.scrollTop\r\n}\r\n\r\nexport async function minimize() {\r\n if (!isElectron()) {\r\n console.log('Not support minimizing in non-electron mode')\r\n } else {\r\n await window.ipcRenderer.send('minimize-window')\r\n }\r\n}\r\n\r\nexport async function quit() {\r\n if (!isElectron()) {\r\n console.log('Not support closing window in non-electron mode')\r\n } else {\r\n await window.ipcRenderer.send('quit')\r\n }\r\n}\r\n","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!./InstantMatchPastTournament.vue?vue&type=style&index=0&id=4ac98894&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!./InstantMatchPastTournament.vue?vue&type=style&index=0&id=4ac98894&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!./CatalogHeader.vue?vue&type=style&index=0&id=c9a0c8b4&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!./CatalogHeader.vue?vue&type=style&index=0&id=c9a0c8b4&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-col',{staticClass:\"desktop\"},[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('CatalogHeader',{attrs:{\"header\":_vm.title,\"large\":\"\"}}),_c('v-spacer'),_c('v-col',{staticClass:\"py-0 my-0\",attrs:{\"cols\":\"12\",\"lg\":\"3\"}},[_c('v-select',{attrs:{\"items\":_vm.games},model:{value:(_vm.gameFilter),callback:function ($$v) {_vm.gameFilter=$$v},expression:\"gameFilter\"}})],1)],1),(_vm.isInitializing || _vm.isLoading)?_c('v-row',{staticClass:\"tournament-items-wrapper\"},[_c('v-progress-circular',{staticClass:\"mx-auto mt-10\",attrs:{\"color\":\"grey\",\"indeterminate\":\"\",\"size\":\"150\"}})],1):_c('v-row',{staticClass:\"tournament-items-wrapper\",on:{\"scroll\":function($event){return _vm.scrollBehavior($event)}}},[(_vm.tournaments.length)?_vm._l((_vm.tournaments),function(tournament,index){return _c('v-col',{key:(\"active-tournament-\" + index),attrs:{\"xl\":\"3\",\"lg\":\"4\",\"sm\":\"6\",\"cols\":\"12\"}},[_c('TournamentCatalogItem',{attrs:{\"tournamentId\":tournament.tournamentId,\"name\":tournament.name,\"game\":tournament.game,\"state\":tournament.state,\"region\":tournament.regions,\"prize\":tournament.prizePrizePool,\"banner\":tournament.detailBanner,\"startTime\":tournament.scheduleRegistrationStartTime,\"endTime\":tournament.scheduleRegistrationEndTime,\"teamSize\":tournament.capacityMinPlayersPerTeam}})],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('ActiveTournamentCatalog.NoTournamentsMessage'))+\" \")])],1)]],2),_c('v-btn',{staticClass:\"active-tournament-button\",attrs:{\"color\":\"transparent\",\"light\":\"\",\"height\":\"3rem\",\"to\":{ name: 'InstantMatchCatalog' }}},[_c('span',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.$t('InstantMatchPastTournament.ShowActiveTournament'))}}),_c('v-icon',{staticClass:\"ml-4 message\",attrs:{\"left\":\"\",\"x-large\":\"\"}},[_vm._v(\" mdi-chevron-right \")])],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\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, Watch } from 'vue-property-decorator'\r\nimport CatalogHeader from '@/modules/catalog/components/CatalogHeader'\r\nimport TournamentCatalogItem, {\r\n TournamentGameTypeOption\r\n} from '@/modules/catalog/components/TournamentCatalogItem'\r\nimport {\r\n TournamentGameType,\r\n TournamentEntity,\r\n TournamentState,\r\n TournamentAPI\r\n} from '@/api/tournament'\r\nimport { getElementScrollRemaining } from '@/utils/window'\r\nimport tournamentStore from '@/modules/tournament/tournament.store'\r\nimport { getModule } from 'vuex-module-decorators'\r\nimport ServerError from '@/utils/server_error'\r\nimport { getGameTypes } from '@/utils/gameType'\r\n\r\n@Component({\r\n components: {\r\n CatalogHeader,\r\n TournamentCatalogItem\r\n }\r\n})\r\nexport default class InstantMatchPastTournament extends Vue {\r\n // Page configuration\r\n title: string = 'Past Tournaments'\r\n tournamentState: TournamentState[] = [\r\n TournamentState.OpenRegistration,\r\n TournamentState.CompleteRegistration,\r\n TournamentState.InProgress\r\n ]\r\n\r\n // Filters\r\n gameFilter: TournamentGameType = TournamentGameType.All\r\n tournamentModule = getModule(tournamentStore, this.$store)\r\n tournaments: TournamentEntity[] = []\r\n isInitializing: boolean = true\r\n isLoading: boolean = false\r\n loading: boolean = false\r\n hasMorePage: boolean = true\r\n currentPage: number = 0\r\n searchFilter: any = {}\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.fetchMoreTournamentCatalog()\r\n }\r\n }\r\n\r\n async fetchTournamentCatalog() {\r\n try {\r\n // Set filter\r\n\r\n this.isLoading = true\r\n this.searchFilter = {\r\n game: this.gameFilter\r\n }\r\n await this.fetchTournament()\r\n } catch (err) {\r\n if (err instanceof ServerError) {\r\n this.$toast.error(err.getMessage())\r\n } else {\r\n this.$toast.error(this.$t('AppSwiper.SystemErrorMessage'))\r\n console.error(err)\r\n }\r\n } finally {\r\n this.isLoading = false\r\n this.isInitializing = false\r\n }\r\n }\r\n async fetchTournament(page: number = 1) {\r\n if (page <= this.currentPage || !this.hasMorePage || this.loading) {\r\n return\r\n }\r\n this.currentPage = page\r\n this.loading = true\r\n try {\r\n const response = await TournamentAPI.getInstantMatchPastTournaments(\r\n page,\r\n this.searchFilter\r\n )\r\n const payload = response.data.payload\r\n if (payload) {\r\n this.hasMorePage = payload.hasMorePage\r\n this.tournaments = [...this.tournaments, ...payload.items]\r\n }\r\n } catch {\r\n } finally {\r\n this.loading = false\r\n }\r\n }\r\n\r\n async fetchMoreTournamentCatalog() {\r\n try {\r\n await this.fetchTournament(this.currentPage + 1)\r\n } catch (err) {\r\n if (err instanceof ServerError) {\r\n this.$toast.error(err.getMessage())\r\n } else {\r\n this.$toast.error(this.$t('AppSwiper.SystemErrorMessage'))\r\n console.error(err)\r\n }\r\n }\r\n }\r\n\r\n /* Wathcers */\r\n @Watch('gameFilter')\r\n async onGameFilterChanged(game: TournamentGameType) {\r\n await this.fetchTournamentCatalog()\r\n }\r\n\r\n @Watch('$vuetify.breakpoint.mobile')\r\n async onMobileViewChanged(isMobile: boolean) {\r\n this.$router.push({\r\n name: 'InstantMatchCatalog',\r\n query: {\r\n past: null\r\n }\r\n })\r\n }\r\n\r\n /* Hooks */\r\n async created() {\r\n this.title = this.$t('PastTournamentCatalog.Title')\r\n await this.fetchTournamentCatalog()\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","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!./InstantMatchPastTournament.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!./InstantMatchPastTournament.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InstantMatchPastTournament.vue?vue&type=template&id=4ac98894&scoped=true&\"\nimport script from \"./InstantMatchPastTournament.vue?vue&type=script&lang=ts&\"\nexport * from \"./InstantMatchPastTournament.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InstantMatchPastTournament.vue?vue&type=style&index=0&id=4ac98894&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 \"4ac98894\",\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 { VBtn } from 'vuetify/lib/components/VBtn';\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, {VBtn,VCol,VContainer,VIcon,VProgressCircular,VRow,VSelect,VSpacer})\n","import InstantMatchPastTournament from './InstantMatchPastTournament.vue'\r\nexport default InstantMatchPastTournament\r\nexport { InstantMatchPastTournament }\r\n"],"sourceRoot":""}