{"version":3,"sources":["webpack:///./src/renderer/modules/tournament/components/TournamentDetailsTeams/TournamentDetailsTeams.vue?9b5d","webpack:///./src/renderer/modules/shared/components/UserAvatar/UserAvatar.vue?6cb8","webpack:///./src/renderer/modules/shared/components/UserAvatar/UserAvatar.vue?21af","webpack:///./src/renderer/modules/shared/components/UserAvatar/UserAvatar.vue","webpack:///./src/renderer/modules/shared/components/UserAvatar/UserAvatar.vue?dfd8","webpack:///./src/renderer/modules/shared/components/UserAvatar/UserAvatar.vue?3d25","webpack:///./src/renderer/modules/shared/components/UserAvatar/index.ts","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsHeader/TournamentDetailsHeader.vue?dae7","webpack:///./src/renderer/utils/index.ts","webpack:///./src/renderer/utils/avatar.ts","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsTeams/TournamentDetailsTeams.vue?66fd","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsTeams/TournamentDetailsTeams.vue","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsTeams/TournamentDetailsTeams.vue?2f3e","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsTeams/TournamentDetailsTeams.vue?4669","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsTeams/index.ts","webpack:///./src/renderer/modules/tournament/components/TournamentTeamDialog/TournamentTeamDialog.vue?a2cc","webpack:///./src/renderer/modules/tournament/components/TournamentTeamDialog/TournamentTeamDialog.vue","webpack:///./src/renderer/modules/tournament/components/TournamentTeamDialog/TournamentTeamDialog.vue?0ebb","webpack:///./src/renderer/modules/tournament/components/TournamentTeamDialog/TournamentTeamDialog.vue?b6bc","webpack:///./src/renderer/modules/tournament/components/TournamentTeamDialog/index.ts","webpack:///./src/renderer/utils/window.ts","webpack:///./src/renderer/modules/tournament/components/TournamentTeamDialog/TournamentTeamDialog.vue?e430","webpack:///./src/renderer/assets/country/hk.svg","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsHeader/TournamentDetailsHeader.vue?b3e4","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsHeader/TournamentDetailsHeader.vue","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsHeader/TournamentDetailsHeader.vue?c533","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsHeader/TournamentDetailsHeader.vue?b6a5","webpack:///./src/renderer/modules/tournament/components/TournamentDetailsHeader/index.ts","webpack:///./src/renderer/assets/country/tw.svg"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","style","attrs","width","src","on","$event","$emit","staticRenderFns","imageUrl","border","default","component","VAvatar","unixTimestampToDateTime","unixTimestamp","utc","local","toDate","upperCase","string","toUpperCase","capitalSpacing","replace","date","number","isNaN","dateTime","Date","getFullYear","toString","padStart","getMonth","getDate","join","getHours","getMinutes","getAvatar","avatarInitial","name","initials","match","shift","pop","$t","hasTeams","scopedSlots","_u","key","fn","_v","_s","$vuetify","breakpoint","mobile","_e","ref","scrollBehavior","_l","team","index","onTournamentTeamSelected","tournamentTeamId","logo","length","substr","getCaptainAvatar","getCaptainName","_f","registerTime","class","isTeamRegistered","proxy","staticStyle","isTournamentTeamDialogVisible","selectedTournamentTeamId","closeTournamentTeamDialog","tournamentModule","$store","page","appendDataAllowed","realtimeConnectionCancellationToken","isInitializing","fetchTournamentTeams","subscribeRealtimeEvents","realtime","addEventListener","resetSelectedTournamentTeams","unsubscribeRealtimeEvents","removeEventListener","setSelectedTournamentTeams","tournamentId","tournament","setTimeout","teamList","checkOverflow","elem","elemWidth","getBoundingClientRect","parentWidth","parentElement","hasMorePage","captain","players","find","p","role","nickname","avatar","event","target","state","Registered","realtimeConnection","$toast","error","console","onTournamentTeamsUpdated","cancel","off","info","teamId","tournamentTeams","selectedTournament","selectedTournamentPlayerList","items","HTMLElement","components","TournamentDetailsHeader","UserAvatar","TournamentTeamDialog","VIcon","VImg","VProgressCircular","VSimpleTable","closeDialog","type","indexOf","_k","keyCode","model","value","callback","$$v","isModalVisible","expression","isLoading","tournamentTeam","domProps","statusBarIcon","statusBarText","statusBarColor","player","defaultAvatar","_g","gameAccountNickname","TournamentTeamRole","Captain","isVisible","getTournamentTeam","response","payload","data","status","Ok","getMessage","filter","RequestToJoin","PendingJoin","PendingConfirmRoster","Boolean","required","filters","VBtn","VCard","VCardSubtitle","VCardText","VCardTitle","VCol","VContainer","VDialog","VList","VListItem","VListItemAction","VListItemAvatar","VListItemContent","VListItemSubtitle","VListItemTitle","VMenu","VRow","VSpacer","VSystemBar","getElementScrollRemaining","element","scrollHeight","offsetHeight","scrollTop","minimize","log","window","ipcRenderer","send","quit","module","exports","right","center","header"],"mappings":"0HAAA,yBAAstB,EAAG,G,oCCAztB,yBAA0sB,EAAG,G,sECA7sB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,WAAW,CAACE,YAAY,SAASC,MAAOP,EAAY,SAAEQ,MAAM,CAAC,KAAOR,EAAIS,QAAQ,CAACL,EAAG,MAAM,CAACI,MAAM,CAAC,IAAMR,EAAIU,KAAKC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,MAAM,gBAC9PC,EAAkB,G,gGCUD,EAArB,8KAQI,OAAOb,KAAKc,SAAWd,KAAKc,SAAW,mBAR3C,+BAYI,MAAO,CACL,WAAYd,KAAKe,OAAS,oBAAsB,YAbtD,GAAwC,QACf,QAAtB,eAAK,CAAEC,QAAS,K,6DACM,QAAtB,eAAK,CAAEA,QAAS,K,6DACM,QAAtB,eAAK,CAAEA,QAAS,K,0DACQ,QAAxB,eAAK,CAAEA,SAAS,I,4DAJE,EAAU,QAD9B,QACoB,WCXugB,I,yDCQxhBC,EAAY,eACd,EACAnB,EACAe,GACA,EACA,KACA,WACA,MAIa,EAAAI,EAAiB,QAKhC,IAAkBA,EAAW,CAACC,UAAA,OCrBf,U,oCCHf,yBAAutB,EAAG,G,6SCwBptB,SAAUC,EAAwBC,GACtC,OAAO,IACJC,IAAoB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AMvD,oBAAA,KAAkBwD,OAAA,KAAKC,UAAA,KAAQC,aAAA,OC1CvO,U,4NCST,SAAUC,EAA0BC,GACxC,OAAOA,EAAQC,aAAeD,EAAQE,aAAeF,EAAQG,UAGzD,SAAgBC,I,2JACf,iB,gBACHjF,QAAQkF,IAAI,+C,sBAEZ,O,SAAMC,OAAOC,YAAYC,KAAK,mB,2CAI5B,SAAgBC,I,2JACf,iB,gBACHtF,QAAQkF,IAAI,mD,sBAEZ,O,SAAMC,OAAOC,YAAYC,KAAK,Q,sGC5BlC,yBAAotB,EAAG,G,qBCAvtBE,EAAOC,QAAU,IAA0B,uB,yDCA3C,IAAInN,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,YAAY,UAAUsE,MAAM,CAAE,aAAc5E,EAAImN,MAAO,cAAenN,EAAIoN,QAAS5M,MAAM,CAAC,KAAO,OAAO,CAACR,EAAIwD,GAAG,IAAIxD,EAAIyD,GAAGzD,EAAIqN,QAAQ,QAAQ,IACnQvM,EAAkB,G,4DCeD,EAArB,qIAAqD,QACzB,QAAzB,eAAK,CAAEmK,UAAU,I,2DACuB,QAAxC,eAAK,CAAEnC,KAAMkC,QAAS/J,SAAS,I,2DACS,QAAxC,eAAK,CAAE6H,KAAMkC,QAAS/J,SAAS,I,4DAHb,EAAuB,QAD3C,QACoB,WChBohB,I,qECQriBC,EAAY,eACd,EACAnB,EACAe,GACA,EACA,KACA,WACA,MAIa,EAAAI,EAAiB,QAMhC,IAAkBA,EAAW,CAACsK,OAAA,KAAKW,OAAA,OCtBpB,U,qBCHfc,EAAOC,QAAU,IAA0B","file":"js/tournament-details-teams.3236c210.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!./TournamentDetailsTeams.vue?vue&type=style&index=0&id=a3ff543c&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!./TournamentDetailsTeams.vue?vue&type=style&index=0&id=a3ff543c&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!./UserAvatar.vue?vue&type=style&index=0&id=058a5d22&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!./UserAvatar.vue?vue&type=style&index=0&id=058a5d22&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-avatar',{staticClass:\"avatar\",style:(_vm.cssRules),attrs:{\"size\":_vm.width}},[_c('img',{attrs:{\"src\":_vm.src},on:{\"click\":function($event){return _vm.$emit('click')}}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\r\nimport { Vue, Component, Prop } from 'vue-property-decorator'\r\nimport getAvatar from '@/utils/avatar'\r\n\r\n@Component\r\nexport default class UserAvatar extends Vue {\r\n @Prop({ default: '' }) readonly nickname!: string\r\n @Prop({ default: '' }) readonly imageUrl!: string\r\n @Prop({ default: 96 }) readonly width!: number\r\n @Prop({ default: true }) readonly border!: boolean\r\n\r\n /* Computed Properties */\r\n get src() {\r\n return this.imageUrl ? this.imageUrl : getAvatar()\r\n }\r\n\r\n get cssRules() {\r\n return {\r\n '--border': this.border ? '1.5px solid white' : 'none'\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!./UserAvatar.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!./UserAvatar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./UserAvatar.vue?vue&type=template&id=058a5d22&scoped=true&\"\nimport script from \"./UserAvatar.vue?vue&type=script&lang=ts&\"\nexport * from \"./UserAvatar.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./UserAvatar.vue?vue&type=style&index=0&id=058a5d22&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 \"058a5d22\",\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';\ninstallComponents(component, {VAvatar})\n","import UserAvatar from './UserAvatar.vue'\r\n\r\nexport { UserAvatar }\r\nexport default UserAvatar\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!./TournamentDetailsHeader.vue?vue&type=style&index=0&id=92d32218&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!./TournamentDetailsHeader.vue?vue&type=style&index=0&id=92d32218&lang=scss&scoped=true&\"","import { Console } from 'console'\r\nimport { padStart } from 'lodash'\r\nimport moment from 'moment'\r\n\r\nexport function countryFlag(countryCode: string) {\r\n if (!countryCode || !countryCode.length) {\r\n return null\r\n }\r\n\r\n switch (countryCode.toLowerCase()) {\r\n case 'tw':\r\n return require('@/assets/country/tw.svg')\r\n case 'hk':\r\n return require('@/assets/country/hk.svg')\r\n\r\n default:\r\n return null\r\n }\r\n}\r\n\r\nexport function sleep(duration: number) {\r\n return new Promise(resolve => setTimeout(resolve, duration))\r\n}\r\n\r\nexport function unixTimestampToDateTime(unixTimestamp: number): Date {\r\n return moment\r\n .utc(unixTimestamp * 1000)\r\n .local()\r\n .toDate()\r\n}\r\n\r\nexport function upperCase(string: string): string {\r\n return string.toUpperCase()\r\n}\r\n\r\nexport function lowerCase(string: string): string {\r\n return string.toLowerCase()\r\n}\r\n\r\nexport function capitalSpacing(string: string): string {\r\n return string.replace(/([a-z])([A-Z])/g, '$1 $2')\r\n}\r\n\r\nexport function capitalizeFirstLetter(string: string) {\r\n return string.charAt(0).toUpperCase() + string.slice(1)\r\n}\r\n\r\nexport function numberWithCommas(number: number) {\r\n if (!number) return 0\r\n return number.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')\r\n}\r\n\r\nexport function date(number: number) {\r\n if (isNaN(number)) return ''\r\n const dateTime = new Date(number * 1000)\r\n return [\r\n dateTime\r\n .getFullYear()\r\n .toString()\r\n .padStart(4, '0'),\r\n (dateTime.getMonth() + 1).toString().padStart(2, '0'),\r\n dateTime\r\n .getDate()\r\n .toString()\r\n .padStart(2, '0')\r\n ].join('/')\r\n}\r\n\r\nexport function dateTime(number: number) {\r\n if (isNaN(number)) return ''\r\n const dateTime = new Date(number * 1000)\r\n return (\r\n [\r\n dateTime\r\n .getFullYear()\r\n .toString()\r\n .padStart(4, '0'),\r\n (dateTime.getMonth() + 1).toString().padStart(2, '0'),\r\n dateTime\r\n .getDate()\r\n .toString()\r\n .padStart(2, '0')\r\n ].join('/') +\r\n ' ' +\r\n [\r\n dateTime\r\n .getHours()\r\n .toString()\r\n .padStart(2, '0'),\r\n dateTime\r\n .getMinutes()\r\n .toString()\r\n .padStart(2, '0')\r\n ].join(':')\r\n )\r\n}\r\n","export default function getAvatar() {\r\n return '/img/member-avatar.svg'\r\n}\r\n\r\nexport function avatarInitial(name: string) {\r\n let initials = name.match(/\\b\\w/g) || []\r\n return ((initials.shift() || '') + (initials.pop() || '')).toUpperCase()\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.tournament)?_c('div',[_c('TournamentDetailsHeader',{attrs:{\"header\":_vm.$t('TournamentDetailsTeams.Players')}}),_c('div',{staticClass:\"tournament-team-region mt-lg-5 mt-0\"},[(_vm.isInitializing)?_c('div',{staticClass:\"text-center mx-auto\"},[_c('v-progress-circular',{staticClass:\"loading-box\",attrs:{\"indeterminate\":\"\",\"color\":\"grey\",\"size\":\"150\"}})],1):(!_vm.hasTeams)?_c('div',{staticClass:\"text-center ma-12\"},[_c('v-icon',{staticStyle:{\"font-size\":\"10rem\"}},[_vm._v(\"mdi-account-clock\")]),_c('p',[_vm._v(\" \"+_vm._s(_vm.$t('TournamentDetailsTeams.NoPlayersJoinedThisTournamentYet'))+\" \")])],1):_c('div',[_c('v-simple-table',{staticClass:\"tournament-team-list\",scopedSlots:_vm._u([{key:\"default\",fn:function(){return [_c('thead',[_c('tr',[_c('th',{staticClass:\"primary\",attrs:{\"width\":\"50%\"}},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentDetailsTeams.TeamName'))+\" \")]),_c('th',{staticClass:\"primary\"},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentDetailsTeams.Captain'))+\" \")]),(!_vm.$vuetify.breakpoint.mobile)?_c('th',{staticClass:\"primary\"},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentDetailsTeams.Registration'))+\" \")]):_vm._e(),_c('th',{staticClass:\"primary\"},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentDetailsTeams.Status'))+\" \")])])]),_c('tbody',{ref:\"teamList\",on:{\"scroll\":function($event){return _vm.scrollBehavior($event)}}},_vm._l((_vm.tournamentTeams),function(team,index){return _c('tr',{key:(\"tournament-team-\" + (team.tournamentTeamId)),on:{\"click\":function($event){return _vm.onTournamentTeamSelected(team.tournamentTeamId)}}},[_c('td',{staticClass:\"align-center\",attrs:{\"width\":\"50%\"}},[_c('div',{staticClass:\"d-flex mx-2 align-center\"},[_c('div',{staticClass:\"font-weight-bold title\"},[_vm._v(\"#\"+_vm._s(index + 1))]),_c('div',{staticClass:\"d-none d-sm-flex\"},[_c('v-avatar',{staticClass:\"mx-2\",attrs:{\"size\":\"24\",\"color\":\"secondary\"}},[(team.logo && team.logo.length > 0)?_c('v-img',{attrs:{\"src\":team.logo}}):[_vm._v(_vm._s(team.name.substr(0, 1)))]],2)],1),_c('div',{staticClass:\"font-weight-bold ml-4\"},[_vm._v(\" \"+_vm._s(team.name)+\" \")])])]),_c('td',[_c('div',{staticClass:\"captain-avatar\"},[_c('UserAvatar',{attrs:{\"imageUrl\":_vm.getCaptainAvatar(team),\"width\":36,\"border\":false}})],1),(!_vm.$vuetify.breakpoint.mobile)?_c('span',[_vm._v(\" \"+_vm._s(_vm.getCaptainName(team))+\" \")]):_vm._e()]),(!_vm.$vuetify.breakpoint.mobile)?_c('td',[(team.registerTime)?[_vm._v(\" \"+_vm._s(_vm._f(\"moment\")(team.registerTime,'LLL'))+\" \")]:[_vm._v(\" --- \")]],2):_vm._e(),_c('td',[_c('v-icon',{class:{\n 'text--disabled': !_vm.isTeamRegistered(team)\n },attrs:{\"color\":\"secondary\"}},[_vm._v(\"mdi-check-circle\")])],1)])}),0)]},proxy:true}],null,false,1379242839)})],1)]),_c('TournamentTeamDialog',{attrs:{\"isVisible\":_vm.isTournamentTeamDialogVisible,\"tournamentTeamId\":_vm.selectedTournamentTeamId},on:{\"close\":_vm.closeTournamentTeamDialog}})],1):_vm._e()}\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\n\n\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, Ref } from 'vue-property-decorator'\r\nimport { getModule } from 'vuex-module-decorators'\r\nimport { TournamentEntity } from '@/api/tournament'\r\nimport { TournamentTeamEntity, TournamentTeamState } from '@/api/tournamentTeam'\r\nimport { getElementScrollRemaining } from '@/utils/window'\r\nimport tournamentStore from '@/modules/tournament/tournament.store'\r\nimport TournamentDetailsHeader from '@/modules/tournament/components/TournamentDetailsHeader'\r\nimport UserAvatar from '@/modules/shared/components/UserAvatar'\r\nimport { getRealtimeConnection, realtimeEventTarget } from '@/utils/realtime'\r\nimport { HubConnection } from '@microsoft/signalr'\r\nimport { CancelError, CancellationToken } from '@/utils/cancel'\r\nimport { TournamentTeamDialog } from '@/modules/tournament/components/TournamentTeamDialog'\r\n\r\n@Component({\r\n components: {\r\n TournamentDetailsHeader,\r\n UserAvatar,\r\n TournamentTeamDialog\r\n }\r\n})\r\nexport default class TournamentDetailsTeams extends Vue {\r\n tournamentModule = getModule(tournamentStore, this.$store)\r\n page: number = 1\r\n appendDataAllowed: boolean = true\r\n realtimeConnection!: HubConnection\r\n realtimeConnectionCancellationToken = new CancellationToken()\r\n isInitializing: boolean = true\r\n\r\n isTournamentTeamDialogVisible: boolean = false\r\n selectedTournamentTeamId: string = ''\r\n\r\n @Ref('teamList') readonly teamList!: HTMLElement\r\n\r\n get hasTeams() {\r\n return this.tournamentTeams && this.tournamentTeams.length > 0\r\n }\r\n\r\n /* Vuex State */\r\n get tournament(): TournamentEntity | null {\r\n return this.tournamentModule.selectedTournament\r\n }\r\n\r\n get hasMorePage() {\r\n return this.tournamentModule.selectedTournamentPlayerList.hasMorePage\r\n }\r\n\r\n get tournamentTeams(): TournamentTeamEntity[] {\r\n return this.tournamentModule.selectedTournamentPlayerList.items\r\n }\r\n\r\n /* Hooks */\r\n async created() {\r\n this.isInitializing = true\r\n await this.fetchTournamentTeams()\r\n await this.subscribeRealtimeEvents()\r\n realtimeEventTarget.addEventListener(\r\n 'connect',\r\n this.subscribeRealtimeEvents\r\n )\r\n realtimeEventTarget.addEventListener(\r\n 'reconnected',\r\n this.subscribeRealtimeEvents\r\n )\r\n }\r\n\r\n async beforeDestroy() {\r\n this.tournamentModule.resetSelectedTournamentTeams()\r\n this.unsubscribeRealtimeEvents()\r\n realtimeEventTarget.removeEventListener(\r\n 'connect',\r\n this.subscribeRealtimeEvents\r\n )\r\n realtimeEventTarget.removeEventListener(\r\n 'reconnected',\r\n this.subscribeRealtimeEvents\r\n )\r\n }\r\n\r\n /* Methods */\r\n async fetchTournamentTeams() {\r\n await this.tournamentModule.setSelectedTournamentTeams({\r\n tournamentId: this.tournament!.tournamentId,\r\n page: this.page\r\n })\r\n\r\n setTimeout(async () => {\r\n if (this.teamList) {\r\n const checkOverflow = (elem: HTMLElement) => {\r\n const elemWidth = elem.getBoundingClientRect().width\r\n const parentWidth = elem.parentElement!.getBoundingClientRect().width\r\n\r\n return elemWidth > parentWidth\r\n }\r\n\r\n if (!checkOverflow(this.teamList) && this.hasMorePage) {\r\n this.page = this.page + 1\r\n this.appendDataAllowed = false\r\n await this.fetchTournamentTeams()\r\n }\r\n }\r\n })\r\n\r\n this.appendDataAllowed = this.hasMorePage\r\n this.isInitializing = false\r\n }\r\n\r\n getCaptainName(team: TournamentTeamEntity): string {\r\n let captain = team!.players!.find(p => p.role === 'Captain')\r\n return !captain ? '' : captain.nickname!\r\n }\r\n\r\n getCaptainAvatar(team: TournamentTeamEntity): string {\r\n let captain = team!.players!.find(p => p.role === 'Captain')\r\n return !captain ? '' : captain.avatar!\r\n }\r\n\r\n async scrollBehavior(event: Event) {\r\n if (!this.appendDataAllowed) {\r\n return\r\n }\r\n if (getElementScrollRemaining(event.target as HTMLElement) <= 20) {\r\n this.page = this.page + 1\r\n this.appendDataAllowed = false\r\n await this.fetchTournamentTeams()\r\n }\r\n }\r\n\r\n isTeamRegistered(team: TournamentTeamEntity): boolean {\r\n return team.state === TournamentTeamState.Registered\r\n }\r\n\r\n async subscribeRealtimeEvents() {\r\n try {\r\n this.realtimeConnection = await getRealtimeConnection(\r\n this.realtimeConnectionCancellationToken\r\n )\r\n } catch (err) {\r\n if (err instanceof CancelError) {\r\n return\r\n }\r\n\r\n this.$toast.error(\r\n this.$t('TournamentDetailsTeams.FailConnectServerMessage')\r\n )\r\n console.error(err)\r\n }\r\n this.realtimeConnection.on(\r\n 'tournamentTeamsUpdated',\r\n this.onTournamentTeamsUpdated\r\n )\r\n }\r\n\r\n unsubscribeRealtimeEvents() {\r\n this.realtimeConnectionCancellationToken.cancel()\r\n if (this.realtimeConnection) {\r\n this.realtimeConnection.off(\r\n 'tournamentTeamsUpdated',\r\n this.onTournamentTeamsUpdated\r\n )\r\n }\r\n }\r\n\r\n async onTournamentTeamsUpdated() {\r\n this.tournamentModule.resetSelectedTournamentTeams()\r\n this.$toast.info(\r\n this.$t('TournamentDetailsTeams.TournamentTeamListUpdated')\r\n )\r\n this.page = 1\r\n this.appendDataAllowed = true\r\n await this.fetchTournamentTeams()\r\n }\r\n\r\n onTournamentTeamSelected(teamId: string) {\r\n this.isTournamentTeamDialogVisible = true\r\n this.selectedTournamentTeamId = teamId\r\n }\r\n\r\n closeTournamentTeamDialog() {\r\n this.isTournamentTeamDialogVisible = false\r\n this.selectedTournamentTeamId = ''\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!./TournamentDetailsTeams.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!./TournamentDetailsTeams.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TournamentDetailsTeams.vue?vue&type=template&id=a3ff543c&scoped=true&\"\nimport script from \"./TournamentDetailsTeams.vue?vue&type=script&lang=ts&\"\nexport * from \"./TournamentDetailsTeams.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TournamentDetailsTeams.vue?vue&type=style&index=0&id=a3ff543c&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 \"a3ff543c\",\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 { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VSimpleTable } from 'vuetify/lib/components/VDataTable';\ninstallComponents(component, {VAvatar,VIcon,VImg,VProgressCircular,VSimpleTable})\n","import TournamentDetailsTeams from './TournamentDetailsTeams.vue'\r\n\r\nexport { TournamentDetailsTeams }\r\nexport default TournamentDetailsTeams\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-dialog',{staticClass:\"tournament-team-dialog\",attrs:{\"max-width\":\"60rem\"},on:{\"click:outside\":_vm.closeDialog,\"keydown\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }return _vm.closeDialog($event)}},model:{value:(_vm.isModalVisible),callback:function ($$v) {_vm.isModalVisible=$$v},expression:\"isModalVisible\"}},[(_vm.isLoading || !_vm.tournamentTeam)?_c('v-container',[_c('v-row',[_c('v-col',{staticClass:\"d-flex justify-center\",attrs:{\"cols\":\"12\"}},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"size\":\"80\"}})],1),_c('v-col',{staticClass:\"d-flex justify-center\",attrs:{\"cols\":\"12\"}},[_vm._v(\" \"+_vm._s(_vm.$t('TournamentTeamDialog.Loading'))+\" \")])],1)],1):(_vm.tournamentTeam)?_c('v-card',[_c('v-system-bar',{staticClass:\"d-flex justify-end\",attrs:{\"color\":\"primary\",\"height\":\"40\"}},[_c('v-btn',{staticClass:\"ma-2\",attrs:{\"icon\":\"\"},on:{\"click\":_vm.closeDialog}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1)],1),_c('v-img',{staticClass:\"white--text align-end\",attrs:{\"height\":\"18rem\",\"gradient\":\"to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)\",\"contain\":true,\"src\":_vm.tournamentTeam.logo === '' ? '/img/logo-vs.png' : _vm.tournamentTeam.logo}},[_c('v-card-title',[_vm._v(_vm._s(_vm.tournamentTeam.name))])],1),(_vm.$vuetify.breakpoint.mobile)?_c('div',{staticClass:\"caption pa-2 primary\"},[_c('div',[_c('v-icon',{staticClass:\"mx-1\",attrs:{\"small\":\"\"},domProps:{\"textContent\":_vm._s(_vm.statusBarIcon)}}),_vm._v(_vm._s(_vm.statusBarText)+\" \")],1),(_vm.tournamentTeam.registerTime)?_c('div',[_c('v-icon',{staticClass:\"mx-1\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-calendar-clock\")]),_vm._v(\" \"+_vm._s(_vm.$t('TournamentTeamDialog.RegisterTime'))+\" : \"+_vm._s(_vm._f(\"dateTime\")(_vm.tournamentTeam.registerTime))+\" \")],1):_vm._e()]):_c('v-system-bar',{attrs:{\"color\":_vm.statusBarColor,\"height\":\"30\"}},[_c('span',{staticClass:\"mx-2\"},[_c('v-icon',{staticClass:\"mx-1\",domProps:{\"textContent\":_vm._s(_vm.statusBarIcon)}}),_vm._v(_vm._s(_vm.statusBarText))],1),_c('v-spacer'),(_vm.tournamentTeam.registerTime)?_c('span',{staticClass:\"mx-2\"},[_c('v-icon',{staticClass:\"mx-1\"},[_vm._v(\"mdi-calendar-clock\")]),_vm._v(\" \"+_vm._s(_vm.$t('TournamentTeamDialog.RegisterTime'))+\" : \"+_vm._s(_vm._f(\"dateTime\")(_vm.tournamentTeam.registerTime))+\" \")],1):_vm._e()],1),_c('v-card-text',[_c('v-list',{attrs:{\"dense\":\"\",\"two-line\":\"\"}},_vm._l((_vm.tournamentTeamPlayers),function(player){return _c('v-list-item',{key:(\"tournament-team-player-\" + (player.memberId))},[_c('v-list-item-avatar',[_c('v-img',{attrs:{\"src\":player.avatar ? player.avatar : _vm.defaultAvatar}})],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" \"+_vm._s(player.nickname)+\" \")]),_c('v-list-item-subtitle',[(!_vm.$vuetify.breakpoint.mobile)?_c('span',{staticClass:\"mr-2\"},[_vm._v(_vm._s(_vm.$t('TournamentTeamDialog.InGameName'))+\" :\")]):_vm._e(),_c('v-menu',{attrs:{\"bottom\":\"\",\"offset-y\":\"\",\"open-on-click\":\"\",\"close-on-click\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('span',_vm._g({},on),[_vm._v(_vm._s(player.gameAccountNickname))])]}}],null,true)},[_c('v-card',[_c('v-card-subtitle',[_vm._v(_vm._s(player.gameAccountNickname))])],1)],1)],1)],1),_c('v-list-item-action',[(player.role === _vm.TournamentTeamRole.Captain)?_c('v-btn',{attrs:{\"icon\":\"\",\"disabled\":\"\"}},[_c('v-icon',[_vm._v(\"mdi-alpha-c-circle\")])],1):_c('v-btn',{attrs:{\"icon\":\"\",\"disabled\":\"\"}},[_c('v-icon',[_vm._v(\"mdi-alpha-m\")])],1)],1)],1)}),1)],1)],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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, PropSync, Watch } from 'vue-property-decorator'\r\nimport {\r\n TournamentTeamEntity,\r\n TournamentTeamRole,\r\n TournamentTeamState\r\n} from '@/api/tournamentTeam'\r\nimport { ResponseStatus, TournamentAPI } from '@/api/tournament'\r\nimport ServerError from '@/utils/server_error'\r\nimport { dateTime } from '@/utils'\r\n\r\n@Component({\r\n filters: {\r\n dateTime\r\n }\r\n})\r\nexport default class TournamentTeamDialog extends Vue {\r\n @PropSync('isVisible', { type: Boolean, default: false })\r\n isModalVisible!: boolean\r\n\r\n @Prop({ required: true })\r\n readonly tournamentTeamId!: string\r\n\r\n isLoading: boolean = false\r\n tournamentTeam: TournamentTeamEntity | null = null\r\n defaultAvatar: string = '/img/logo-v13.png'\r\n\r\n /* Watchers */\r\n @Watch('isModalVisible')\r\n async onVisible(isVisible: boolean) {\r\n await this.getTournamentTeam()\r\n }\r\n\r\n /* Methods */\r\n async getTournamentTeam() {\r\n if (!this.tournamentTeamId) return\r\n\r\n this.tournamentTeam = null\r\n this.isLoading = true\r\n try {\r\n const response = await TournamentAPI.getTournamentTeam(\r\n this.tournamentTeamId\r\n )\r\n const payload = response.data.payload\r\n if (response.data.status === ResponseStatus.Ok && payload) {\r\n this.tournamentTeam = payload\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('TournamentTeamDialog.SystemErrorMessage'))\r\n console.error(err)\r\n }\r\n } finally {\r\n this.isLoading = false\r\n }\r\n }\r\n\r\n closeDialog() {\r\n this.$emit('close')\r\n }\r\n\r\n /* Computed Properties */\r\n get TournamentTeamRole() {\r\n return TournamentTeamRole\r\n }\r\n\r\n get tournamentTeamPlayers() {\r\n if (!this.tournamentTeam || !this.tournamentTeam.players) return []\r\n return this.tournamentTeam.players.filter(\r\n player => player.role !== TournamentTeamRole.RequestToJoin\r\n )\r\n }\r\n\r\n get statusBarColor() {\r\n if (\r\n !this.tournamentTeam ||\r\n this.tournamentTeam.state === TournamentTeamState.PendingJoin\r\n )\r\n return 'grey darken-2'\r\n if (this.tournamentTeam.state === TournamentTeamState.PendingConfirmRoster)\r\n return 'secondary'\r\n else return 'primary'\r\n }\r\n\r\n get statusBarText() {\r\n if (\r\n !this.tournamentTeam ||\r\n this.tournamentTeam.state === TournamentTeamState.PendingJoin\r\n )\r\n return this.$t('TournamentTeamDialog.TeamStatePendingJoin')\r\n if (this.tournamentTeam.state === TournamentTeamState.PendingConfirmRoster)\r\n return this.$t('TournamentTeamDialog.TeamStatePendingConfirmRoster')\r\n else return this.$t('TournamentTeamDialog.TeamStateRegistered')\r\n }\r\n\r\n get statusBarIcon() {\r\n if (\r\n !this.tournamentTeam ||\r\n this.tournamentTeam.state === TournamentTeamState.PendingJoin\r\n )\r\n return 'mdi-account-search'\r\n if (this.tournamentTeam.state === TournamentTeamState.PendingConfirmRoster)\r\n return 'mdi-account-clock'\r\n else return 'mdi-account-check'\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!./TournamentTeamDialog.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!./TournamentTeamDialog.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TournamentTeamDialog.vue?vue&type=template&id=55a608f0&scoped=true&\"\nimport script from \"./TournamentTeamDialog.vue?vue&type=script&lang=ts&\"\nexport * from \"./TournamentTeamDialog.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TournamentTeamDialog.vue?vue&type=style&index=0&id=55a608f0&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 \"55a608f0\",\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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardSubtitle } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VImg } from 'vuetify/lib/components/VImg';\nimport { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemAction } from 'vuetify/lib/components/VList';\nimport { VListItemAvatar } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VSystemBar } from 'vuetify/lib/components/VSystemBar';\ninstallComponents(component, {VBtn,VCard,VCardSubtitle,VCardText,VCardTitle,VCol,VContainer,VDialog,VIcon,VImg,VList,VListItem,VListItemAction,VListItemAvatar,VListItemContent,VListItemSubtitle,VListItemTitle,VMenu,VProgressCircular,VRow,VSpacer,VSystemBar})\n","import TournamentTeamDialog from './TournamentTeamDialog.vue'\r\n\r\nexport { TournamentTeamDialog }\r\nexport default TournamentTeamDialog\r\n","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!./TournamentTeamDialog.vue?vue&type=style&index=0&id=55a608f0&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!./TournamentTeamDialog.vue?vue&type=style&index=0&id=55a608f0&lang=scss&scoped=true&\"","module.exports = __webpack_public_path__ + \"img/hk.901fbb55.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-row',[_c('v-col',{staticClass:\"heading\",class:{ 'text-right': _vm.right, 'text-center': _vm.center },attrs:{\"cols\":\"12\"}},[_vm._v(\" \"+_vm._s(_vm.header)+\" \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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 TournamentDetailsHeader extends Vue {\r\n @Prop({ required: true }) readonly header!: string\r\n @Prop({ type: Boolean, default: false }) readonly right!: boolean\r\n @Prop({ type: Boolean, default: false }) readonly center!: 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!./TournamentDetailsHeader.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!./TournamentDetailsHeader.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TournamentDetailsHeader.vue?vue&type=template&id=92d32218&scoped=true&\"\nimport script from \"./TournamentDetailsHeader.vue?vue&type=script&lang=ts&\"\nexport * from \"./TournamentDetailsHeader.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TournamentDetailsHeader.vue?vue&type=style&index=0&id=92d32218&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 \"92d32218\",\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 TournamentDetailsHeader from './TournamentDetailsHeader.vue'\r\n\r\nexport { TournamentDetailsHeader }\r\nexport default TournamentDetailsHeader\r\n","module.exports = __webpack_public_path__ + \"img/tw.790bc738.svg\";"],"sourceRoot":""}