{"version":3,"sources":["webpack:///./src/renderer/assets/draft/wildrift_category/all.svg","webpack:///./src/renderer/assets/draft/wildrift_category/tank.svg","webpack:///./src/renderer/assets/draft/wildrift_category/fighter.svg","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOption/DraftOption.vue?f640","webpack:///./src/renderer/api/draft.ts","webpack:///./src/renderer/assets/draft/wildrift_category/marksmen.svg","webpack:///./src/renderer/assets/draft/wildrift_category/mage.svg","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/DraftSession.vue?f697","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOption/DraftOption.vue?7315","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOption/DraftOption.vue","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOption/DraftOption.vue?5632","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOption/DraftOption.vue?8ecc","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOption/index.ts","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOptionGrid/DraftOptionGrid.vue?294d","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOptionGrid/DraftOptionGrid.vue","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOptionGrid/DraftOptionGrid.vue?cefd","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOptionGrid/DraftOptionGrid.vue?088d","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOptionGrid/index.ts","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/slots.ts","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/DraftSession.vue","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/DraftSession.vue?c0c1","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/DraftSession.vue?bc40","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/index.ts","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftOptionGrid/DraftOptionGrid.vue?aba7","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/DraftSession.vue?96ff","webpack:///./src/renderer/assets/draft/wildrift_category/assassin.svg","webpack:///./src/renderer/assets/draft/wildrift_category/support.svg","webpack:///./src/renderer/modules/draft/components/LeagueOfLegends/DraftSession/DraftSession.vue?5938"],"names":["module","exports","DraftAction","DraftRepeatBehavior","DraftSessionState","DraftAPI","draftSessionId","get","choice","teamNumber","post","render","_vm","this","_h","$createElement","_c","_self","attrs","$vuetify","breakpoint","on","close","_v","_e","staticClass","mobile","class","full","ref","session","state","Complete","Initial","_s","stepOneTeamName","Cancel","InProgress","getTeam","currentResult","name","action","leftTeamName","_l","draftslot","filter","s","side","slot","key","stepResult","getResult","step","currentStep","timeleft","icon","isBlind","myBans","includes","draftOptionId","rightTeamName","options","disableIds","isMyTurn","gridHeight","$event","isAdmin","submitting","submitChoice","staticRenderFns","selectable","disabled","completed","isBan","picked","isPick","waiting","picking","onRadioButtonChangedDelayed","animated","result","text","isReveal","displayName","newVal","radioButton","checked","id","setTimeout","onRadioButtonChanged","onValueChanged","value","Ban","Pick","type","String","default","Boolean","Object","HTMLInputElement","component","VIcon","height","style","undefined","model","callback","$$v","category","expression","index","search","option","shouldDisable","refInFor","getOptionsByTag","tag","categories","disabledIds","find","gridDiv","addEventListener","onGridScroll","removeEventListener","scrollTimer","clearTimeout","scrollTop","Math","max","min","scrollHeight","clientHeight","tags","indexOf","split","slice","toLowerCase","Array","Number","HTMLDivElement","components","DraftOption","VCol","VTab","VTabItem","VTabs","VTabsItems","VTabsSlider","VTextField","left","right","tick","timer","draft","$nextTick","headerDiv","updateGridHeight","parseInt","updateChoice","doCleanUp","doInit","fetchDraftSession","then","fetchDraftOptions","hubConnection","withUrl","withAutomaticReconnect","nextRetryDelayInMilliseconds","random","configureLogging","Debug","build","start","send","onChoiceSubmitted","setInterval","stop","clearInterval","window","URLSearchParams","params","location","innerHeight","footerDiv","getDraftOptions","res","data","payload","$toast","error","getMessage","console","getDraftSession","log","results","teams","team","number","args","nextTimeoutTime","opt","floor","getTime","map","toString","length","steps","stepOneTeamNumber","required","AppButton","DraftOptionGrid","VBtn","VContainer","VProgressCircular","VRow","VSpacer","VToolbar","VToolbarTitle"],"mappings":"2HAAAA,EAAOC,QAAU,IAA0B,wB,uECA3CD,EAAOC,QAAU,IAA0B,yB,qBCA3CD,EAAOC,QAAU,IAA0B,4B,oCCA3C,yBAAmuB,EAAG,G,4ICM1tBC,EAKAC,EA8CAC,E,+CAnDZ,SAAYF,GACV,eACA,kBAFF,CAAYA,MAAW,KAKvB,SAAYC,GACV,yBACA,6BACA,2BAHF,CAAYA,MAAmB,KA8C/B,SAAYC,GACV,uBACA,6BACA,yBACA,qBAJF,CAAYA,MAAiB,KA2BtB,IAAMC,EAAb,mHAEIC,GAEA,OAAO,OAAMC,IAAN,mCAAsCD,MAJjD,sCAQIA,GAEA,OAAO,OAAMC,IAAN,mCAAsCD,EAAtC,eAVX,mCAcIA,EACAE,EACAC,GAEA,OAAO,OAAMC,KAAN,mCAAuCJ,GAAkB,CAC9DE,SACAC,iBApBN,mCAyBIH,EACAE,EACAC,GAEA,OAAO,OAAMC,KAAN,mCAAuCJ,EAAvC,WAAgE,CACrEE,SACAC,mBA/BN,M,qBCpFAT,EAAOC,QAAU,IAA0B,6B,uBCA3CD,EAAOC,QAAU,IAA0B,yB,kCCA3C,I,IAAIU,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,YAAY,CAACE,MAAM,CAAC,KAAO,GAAG,MAAQ,UAAU,KAAO,GAAG,OAAS,OAAO,CAAEN,EAAIO,SAASC,WAAiB,OAAEJ,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,IAAIG,GAAG,CAAC,MAAQT,EAAIU,QAAQ,CAACN,EAAG,SAAS,CA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d2C,gCAAc,W,gCAG1B,QADC,eAAI,U,qBACqB,oB,EAAA,qBAAdA,gCAAc,W,gCAoB1B,QADC,eAAM,W,iIAUN,MAGD,QADC,eAAM,U,uIAWN,MAGD,QADC,eAAK,S,sHAGL,MAGD,QADC,eAAM,kB,8IAON,MAtEkB,EAAY,QAHhC,eAAU,CACTC,WAAY,CAAEqE,YAAA,KAAWpE,YAAA,EAAaqE,gBAAA,MAEnB,WCjP8hB,I,gHCS/iB,GAAY,eACd,EACAvM,EACA0D,GACA,EACA,KACA,WACA,MAIa,MAAiB,QAahC,IAAkB,GAAW,CAAC8I,OAAA,KAAKrE,OAAA,KAAKsE,cAAA,KAAW/G,QAAA,KAAMgH,qBAAA,KAAkBC,QAAA,KAAKC,WAAA,KAAQC,YAAA,KAASC,cAAA,UC/BlF,W,oCCFf,yBAAuuB,EAAG,G,6DCA1uB,yBAA4sB,EAAG,G,qBCA/sBzN,EAAOC,QAAU,IAA0B,6B,4CCA3CD,EAAOC,QAAU,IAA0B,4B,kCCA3C,yBAAouB,EAAG","file":"js/draft-session-league-view~match-room.528f77d4.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/all.3ef8b281.svg\";","module.exports = __webpack_public_path__ + \"img/tank.6df511f3.svg\";","module.exports = __webpack_public_path__ + \"img/fighter.e208f8a6.svg\";","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!./DraftOption.vue?vue&type=style&index=0&id=708bdc8e&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!./DraftOption.vue?vue&type=style&index=0&id=708bdc8e&lang=scss&scoped=true&\"","import axios from '@/utils/request'\r\nimport { AxiosPromise } from 'axios'\r\nimport { BaseResponse, ResponseStatus } from '.'\r\n\r\nexport { BaseResponse, ResponseStatus }\r\n\r\nexport enum DraftAction {\r\n Ban = 'Ban',\r\n Pick = 'Pick'\r\n}\r\n\r\nexport enum DraftRepeatBehavior {\r\n NoRepeat = 'NoRepeat',\r\n RepeatTeam = 'RepeatTeam',\r\n RepeatAll = 'RepeatAll'\r\n}\r\n\r\nexport interface DraftEntity {\r\n draftId: string\r\n name: string\r\n steps: DraftStepEntity[]\r\n}\r\n\r\nexport interface DraftStepEntity {\r\n step: number\r\n action: DraftAction\r\n teamNumber: number\r\n isSkippable: boolean\r\n isTimeoutRandom: boolean\r\n repeatBehavior: DraftRepeatBehavior\r\n duration: number\r\n isSystemRandom: boolean\r\n}\r\n\r\nexport interface DraftOptionEntity {\r\n draftOptionId: string\r\n name: string\r\n image: string\r\n icon: string\r\n tags: string[]\r\n}\r\n\r\nexport interface DraftResultEntity {\r\n step: number\r\n action: DraftAction\r\n teamNumber: number\r\n choice: DraftOptionEntity | null\r\n isSkippable: boolean\r\n isTimeoutRandom: boolean\r\n repeatBehavior: DraftRepeatBehavior\r\n duration: number\r\n submitTime: number | null\r\n isTimeout: boolean\r\n isSystemRandom: boolean\r\n isBlind: boolean\r\n}\r\n\r\nexport enum DraftSessionState {\r\n Initial = 'Initial',\r\n InProgress = 'InProgress',\r\n Complete = 'Complete',\r\n Cancel = 'Cancel'\r\n}\r\n\r\nexport interface DraftSessionEntity {\r\n draftSessionId: string\r\n draftId: string\r\n currentStep: number\r\n nextTimeoutTime: number\r\n state: DraftSessionState\r\n results: DraftResultEntity[]\r\n teams: DraftTeamEntity[]\r\n}\r\n\r\nexport interface DraftTeamEntity {\r\n number: number\r\n name: string\r\n}\r\n\r\nexport interface DraftSessionResponse {\r\n session: DraftSessionEntity\r\n draft: DraftEntity\r\n}\r\n\r\nexport class DraftAPI {\r\n public static getDraftSession(\r\n draftSessionId: string\r\n ): AxiosPromise> {\r\n return axios.get(`/draft/v1/draft/sessions/${draftSessionId}`)\r\n }\r\n\r\n public static getDraftOptions(\r\n draftSessionId: string\r\n ): AxiosPromise> {\r\n return axios.get(`/draft/v1/draft/sessions/${draftSessionId}/options`)\r\n }\r\n\r\n public static submitChoice(\r\n draftSessionId: string,\r\n choice: string,\r\n teamNumber: number\r\n ): AxiosPromise {\r\n return axios.post(`/draft/v1/draft/sessions/${draftSessionId}`, {\r\n choice,\r\n teamNumber\r\n })\r\n }\r\n\r\n public static updateChoice(\r\n draftSessionId: string,\r\n choice: string,\r\n teamNumber: number\r\n ): AxiosPromise {\r\n return axios.post(`/draft/v1/draft/sessions/${draftSessionId}/update`, {\r\n choice,\r\n teamNumber\r\n })\r\n }\r\n}\r\n","module.exports = __webpack_public_path__ + \"img/marksmen.82c2218e.svg\";","module.exports = __webpack_public_path__ + \"img/mage.79e780bc.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-toolbar',{attrs:{\"flat\":\"\",\"color\":\"primary\",\"dark\":\"\",\"height\":\"45\"}},[(_vm.$vuetify.breakpoint.mobile)?_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":_vm.close}},[_c('v-icon',[_vm._v(\"mdi-arrow-left\")])],1):_vm._e(),_c('v-spacer'),_c('v-toolbar-title',[_c('span',{staticClass:\"font-weight-black text-uppercase\"},[_vm._v(\"Ban Champions\")])]),_c('v-spacer'),(!_vm.$vuetify.breakpoint.mobile)?_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":_vm.close}},[_c('v-icon',[_vm._v(\"mdi-close\")])],1):_vm._e()],1),(_vm.session)?_c('v-container',{staticClass:\"main-container\",class:{ full: _vm.full },attrs:{\"fluid\":\"\"}},[_c('div',{ref:\"header\"},[_c('v-row',[_c('v-col',{staticClass:\"text-center py-2\"},[(_vm.session.state === _vm.DraftSessionState.Complete)?[_c('h2',[_vm._v(\" 角色禁用已結束 \")]),_c('small',[_vm._v(\"請各位選手確認角色禁用結果並在聊天室協商開始比賽\")])]:(_vm.session.state === _vm.DraftSessionState.Initial)?[_c('h2',[_vm._v(\" 即將於一分鐘後開始 \")]),_c('small',[_vm._v(\"(由 \"+_vm._s(_vm.stepOneTeamName)+\" 先進行角色禁用)\")])]:(_vm.session.state === _vm.DraftSessionState.Cancel)?[_c('h2',[_vm._v(\" 管理員已取消角色禁用 \")]),_c('small',[_vm._v(\"請留意聊天室並等待管理員進一步的指示\")])]:(_vm.session.state === _vm.DraftSessionState.InProgress)?[_c('h4',[_vm._v(\" \"+_vm._s(_vm.getTeam(_vm.currentResult.teamNumber).name)+\" \"),(_vm.currentResult.action === 'Pick')?_c('span',{staticClass:\"green--text text-uppercase ml-4\"},[_vm._v(\"picking\")]):_c('span',{staticClass:\"red--text text-uppercase ml-4\"},[_vm._v(\"banning\")])])]:_vm._e()],2)],1),_c('v-row',{staticClass:\"pb-3\"},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"5\",\"sm\":\"4\"}},[_c('div',[_c('div',{staticClass:\"team-name\"},[_c('h4',[_vm._v(_vm._s(_vm.leftTeamName))])]),_c('div',{staticClass:\"d-flex px-2 pb-2\"},_vm._l((_vm.draftslot.filter(function (s) { return s.side === 1; })),function(slot){return _c('div',{key:slot.slot,attrs:{\"result\":(_vm.stepResult = _vm.getResult(slot.step))}},[(_vm.session.currentStep <= slot.step)?_c('DraftOption',{attrs:{\"waiting\":true,\"picking\":_vm.session.currentStep === slot.step,\"display-name\":_vm.session.currentStep === slot.step ? '選擇中' : '等待中',\"text\":_vm.timeleft,\"result\":_vm.stepResult}}):_c('DraftOption',{attrs:{\"display-name\":_vm.stepResult && _vm.stepResult.choice\n ? _vm.stepResult.choice.name\n : '(留空)',\"icon\":_vm.stepResult && _vm.stepResult.choice\n ? _vm.stepResult.choice.icon\n : null,\"completed\":true,\"result\":_vm.stepResult,\"isReveal\":!_vm.stepResult.isBlind ||\n (_vm.stepResult.choice &&\n _vm.myBans.includes(_vm.stepResult.choice.draftOptionId)) ||\n _vm.session.state === _vm.DraftSessionState.Complete ||\n (slot.step <= 4 && _vm.session.currentStep > 4)}})],1)}),0)])]),_c('v-col',{staticClass:\"d-flex text-center d-flex flex-column align-center justify-center pt-0\",attrs:{\"cols\":\"1\",\"sm\":\"4\"}},[(\n _vm.session.state === _vm.DraftSessionState.Initial ||\n _vm.session.state === _vm.DraftSessionState.InProgress\n )?_c('div',{staticClass:\"middle-countdown\"},[_vm._v(\" \"+_vm._s(_vm.timeleft)+\" \")]):_vm._e(),(_vm.isMyTurn)?_c('div',[_c('div',{staticClass:\"your-turn-text\"},[_vm._v(\" 請選擇! \")])]):_vm._e()]),_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"5\",\"sm\":\"4\"}},[_c('div',[_c('div',{staticClass:\"team-name right\"},[_c('h4',[_vm._v(_vm._s(_vm.rightTeamName))])]),_c('div',{staticClass:\"d-flex px-2 pb-2\"},[_c('v-spacer'),_vm._l((_vm.draftslot.filter(function (s) { return s.side === 2; })),function(slot){return _c('div',{key:slot.slot,attrs:{\"result\":(_vm.stepResult = _vm.getResult(slot.step))}},[(_vm.session.currentStep <= slot.step)?_c('DraftOption',{attrs:{\"waiting\":true,\"picking\":_vm.session.currentStep === slot.step,\"display-name\":_vm.session.currentStep === slot.step ? '選擇中' : '等待中',\"text\":_vm.timeleft,\"result\":_vm.stepResult}}):_c('DraftOption',{attrs:{\"display-name\":_vm.stepResult && _vm.stepResult.choice\n ? _vm.stepResult.choice.name\n : '(留空)',\"icon\":_vm.stepResult && _vm.stepResult.choice\n ? _vm.stepResult.choice.icon\n : null,\"completed\":true,\"result\":_vm.stepResult,\"isReveal\":!_vm.stepResult.isBlind ||\n (_vm.stepResult.choice &&\n _vm.myBans.includes(_vm.stepResult.choice.draftOptionId)) ||\n _vm.session.state === _vm.DraftSessionState.Complete ||\n (slot.step <= 4 && _vm.session.currentStep > 4)}})],1)})],2)])])],1)],1),_c('div',{staticClass:\"selections\"},[_c('v-row',[_c('v-col',{staticClass:\"py-0\"},[_c('DraftOptionGrid',{attrs:{\"options\":_vm.options,\"disabled-ids\":_vm.disableIds,\"choice\":_vm.choice,\"disabled\":!_vm.isMyTurn,\"height\":!_vm.full ? 0 : _vm.gridHeight},on:{\"update:choice\":function($event){_vm.choice=$event}}})],1)],1),(!_vm.isAdmin)?_c('v-row',{ref:\"footer\"},[_c('v-col',[_c('div',{staticClass:\"footer-btn-container\"},[(\n _vm.session.state === _vm.DraftSessionState.Complete ||\n _vm.session.state === _vm.DraftSessionState.Cancel\n )?_c('AppButton',{attrs:{\"label\":\"關閉\",\"block\":\"\"},on:{\"click\":_vm.close}}):_c('AppButton',{attrs:{\"theme\":\"purple\",\"label\":\"確定禁用\",\"block\":\"\",\"disabled\":!_vm.isMyTurn || _vm.choice === '' || _vm.submitting},on:{\"click\":_vm.submitChoice}})],1)])],1):_vm._e()],1)]):_c('div',{staticClass:\"py-10 d-flex align-center justify-center\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"size\":32}})],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('div',{staticClass:\"outer\"},[_c('label',{staticClass:\"draft-option\",class:{\n selectable: _vm.selectable,\n disabled: (_vm.completed && _vm.isBan) || _vm.disabled,\n picked: _vm.completed && _vm.isPick,\n waiting: _vm.waiting,\n picking: _vm.picking,\n mobile: _vm.$vuetify.breakpoint.mobile\n }},[(_vm.selectable)?_c('input',{ref:\"radioButton\",attrs:{\"type\":\"radio\",\"name\":_vm.name,\"disabled\":_vm.completed || _vm.waiting || _vm.disabled},on:{\"change\":_vm.onRadioButtonChangedDelayed}}):_vm._e(),_c('div',{staticClass:\"frame\",class:{\n animated: _vm.picking,\n 'action-pick': _vm.result && _vm.result.action === 'Pick'\n }},[(_vm.picking || _vm.waiting)?_c('div',{class:{ waiting: _vm.waiting, picking: _vm.picking }},[(_vm.waiting)?[_vm._v(\" \"+_vm._s(_vm.picking ? _vm.text : '?')+\" \")]:(_vm.result && _vm.result.action === 'Pick')?[_c('v-icon',{attrs:{\"x-large\":\"\"}},[_vm._v(\"mdi-check\")])]:_vm._e()],2):(_vm.result && _vm.result.isBlind && !_vm.isReveal)?_c('img',{staticClass:\"icon\",attrs:{\"src\":\"https://cdn.pixabay.com/photo/2014/04/03/10/11/question-mark-310100_960_720.png\"}}):(_vm.icon)?_c('img',{staticClass:\"icon\",attrs:{\"src\":_vm.icon,\"alt\":_vm.displayName}}):_vm._e(),(_vm.completed && _vm.isPick)?_c('div',{staticClass:\"picked-overlay\"}):(_vm.completed || _vm.disabled)?_c('div',{staticClass:\"disabled-overlay\"},[_c('div',{staticClass:\"disable-line\"})]):_vm._e()]),(_vm.displayName && _vm.result && _vm.result.isBlind && !_vm.isReveal)?_c('div',{staticClass:\"display-name\"},[_vm._v(\" (盲選) \")]):(_vm.displayName)?_c('div',{staticClass:\"display-name\"},[_vm._v(\" \"+_vm._s(_vm.displayName)+\" \")]):_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\r\nimport { DraftAction, DraftResultEntity } from '@/api/draft'\r\nimport { Vue, Component, Prop, Ref, Watch, Emit } from 'vue-property-decorator'\r\n\r\n@Component\r\nexport default class DraftOption extends Vue {\r\n @Prop({ type: String, default: null })\r\n id!: string\r\n\r\n @Prop({ type: String, default: null })\r\n icon!: string\r\n\r\n @Prop({ type: String })\r\n displayName!: string\r\n\r\n @Prop({ type: String, default: 'draft-option' })\r\n name!: string\r\n\r\n @Prop({ type: Boolean, default: true })\r\n selectable!: boolean\r\n\r\n @Prop({ type: Boolean, default: false })\r\n completed!: boolean\r\n\r\n @Prop({ type: Boolean, default: false })\r\n disabled!: boolean\r\n\r\n @Prop({ type: Boolean, default: false })\r\n waiting!: boolean\r\n\r\n @Prop({ type: Boolean, default: false })\r\n picking!: boolean\r\n\r\n @Prop({ type: String, default: '' })\r\n value!: string\r\n\r\n @Prop({ type: String, default: '' })\r\n text!: string\r\n\r\n @Prop({ type: Object, default: null })\r\n result!: DraftResultEntity\r\n\r\n @Prop({ type: Boolean, default: true })\r\n isReveal!: boolean\r\n\r\n @Ref('radioButton')\r\n radioButton!: HTMLInputElement\r\n\r\n @Watch('value')\r\n onValueChanged(newVal: string) {\r\n if (!this.radioButton) return\r\n this.radioButton.checked = newVal === this.id\r\n }\r\n\r\n @Emit('input')\r\n onRadioButtonChanged() {\r\n return this.id\r\n }\r\n\r\n onRadioButtonChangedDelayed() {\r\n setTimeout(this.onRadioButtonChanged, 100)\r\n }\r\n\r\n mounted() {\r\n this.onValueChanged(this.value)\r\n }\r\n\r\n // Computed Properties\r\n get isBan() {\r\n return this.result.action === DraftAction.Ban\r\n }\r\n\r\n get isPick() {\r\n return this.result.action === DraftAction.Pick\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!./DraftOption.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!./DraftOption.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DraftOption.vue?vue&type=template&id=708bdc8e&scoped=true&\"\nimport script from \"./DraftOption.vue?vue&type=script&lang=ts&\"\nexport * from \"./DraftOption.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DraftOption.vue?vue&type=style&index=0&id=708bdc8e&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 \"708bdc8e\",\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 { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VIcon})\n","import DraftOption from './DraftOption.vue'\r\nexport { DraftOption }\r\nexport default DraftOption\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"main-container\",class:{ 'auto-size': _vm.height <= 0 },style:({ height: _vm.height <= 0 ? undefined : _vm.height + 'px' })},[_c('v-tabs',{attrs:{\"background-color\":\"transparent\",\"centered\":\"\",\"dark\":\"\"},model:{value:(_vm.category),callback:function ($$v) {_vm.category=$$v},expression:\"category\"}},[_c('v-tabs-slider'),_c('v-tab',{attrs:{\"href\":\"#category-search\"}},[_vm._v(\" 搜尋 \"),_c('div',{staticClass:\"category-icon\"},[_c('v-icon',{attrs:{\"size\":\"20\"}},[_vm._v(\"search\")])],1)]),_vm._l((_vm.categories),function(category,index){return _c('v-tab',{key:(\"category-\" + index),attrs:{\"href\":(\"#category-\" + (category.tag))}},[_vm._v(\" \"+_vm._s(category.text)+\" \"),_c('div',{staticClass:\"category-icon\"},[_c('img',{attrs:{\"src\":category.icon}})])])})],2),_c('v-tabs-items',{model:{value:(_vm.category),callback:function ($$v) {_vm.category=$$v},expression:\"category\"}},[_c('v-tab-item',{attrs:{\"value\":\"category-search\"}},[_c('div',{ref:\"grid\",staticClass:\"grid\",class:{ 'auto-size': _vm.height <= 0 },style:({ height: _vm.height <= 0 ? undefined : _vm.gridHeight + 'px' })},[_c('v-col',{attrs:{\"cols\":\"12\"}},[_c('v-text-field',{attrs:{\"placeholder\":\"按名稱搜索\",\"prepend-icon\":\"search\",\"dense\":\"\",\"outlined\":\"\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('div',{staticClass:\"d-flex flex-wrap justify-center\",class:{ disabled: _vm.disabled }},_vm._l((_vm.getOptionsBySearch),function(option){return _c('DraftOption',{key:(\"option-\" + (option.draftOptionId)),attrs:{\"id\":option.draftOptionId,\"display-name\":option.name,\"icon\":option.icon,\"disabled\":_vm.shouldDisable(option.draftOptionId)},model:{value:(_vm.draftOptionId),callback:function ($$v) {_vm.draftOptionId=$$v},expression:\"draftOptionId\"}})}),1)],1)]),_vm._l((_vm.categories),function(category,index){return _c('v-tab-item',{key:(\"category-item-\" + index),attrs:{\"value\":(\"category-\" + (category.tag))}},[_c('div',{ref:\"grid\",refInFor:true,staticClass:\"grid\",class:{ 'auto-size': _vm.height <= 0 },style:({ height: _vm.height <= 0 ? undefined : _vm.gridHeight + 'px' })},[_c('div',{staticClass:\"d-flex flex-wrap justify-center\",class:{ disabled: _vm.disabled }},_vm._l((_vm.getOptionsByTag(category.tag)),function(option){return _c('DraftOption',{key:(\"option-\" + (option.draftOptionId)),attrs:{\"id\":option.draftOptionId,\"display-name\":option.name,\"icon\":option.icon,\"disabled\":_vm.shouldDisable(option.draftOptionId)},model:{value:(_vm.draftOptionId),callback:function ($$v) {_vm.draftOptionId=$$v},expression:\"draftOptionId\"}})}),1)])])})],2)],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, Prop, PropSync, Ref } from 'vue-property-decorator'\r\nimport DraftOption from '@/modules/draft/components/LeagueOfLegends/DraftOption'\r\nimport { DraftOptionEntity } from '@/api/draft'\r\n\r\nexport interface ChampionCategory {\r\n icon: any\r\n text: string\r\n tag: string\r\n}\r\n\r\n@Component({\r\n components: { DraftOption }\r\n})\r\nexport default class DraftOptionGrid extends Vue {\r\n @Prop({ type: Array, default: [] })\r\n options!: DraftOptionEntity[]\r\n\r\n @PropSync('choice', { type: String, default: '' })\r\n draftOptionId!: string\r\n\r\n @Prop({ type: Array, default: [] })\r\n disabledIds!: string[]\r\n\r\n @Prop({ type: Boolean, default: false })\r\n disabled!: boolean\r\n\r\n @Prop({ type: Number, default: 0 })\r\n height!: number\r\n\r\n @Ref('grid')\r\n gridDiv!: HTMLDivElement\r\n\r\n category: string | null = null\r\n categories: ChampionCategory[] = []\r\n search: string = ''\r\n\r\n shouldDisable(draftOptionId: string) {\r\n return !!this.disabledIds.find(id => id === draftOptionId)\r\n }\r\n\r\n created() {\r\n this.categories = [\r\n {\r\n icon: require('@/assets/draft/wildrift_category/all.svg'),\r\n text: '全部',\r\n tag: 'all'\r\n },\r\n {\r\n icon: require('@/assets/draft/wildrift_category/mage.svg'),\r\n text: '法師',\r\n tag: 'Mage'\r\n },\r\n {\r\n icon: require('@/assets/draft/wildrift_category/support.svg'),\r\n text: '輔助',\r\n tag: 'Support'\r\n },\r\n {\r\n icon: require('@/assets/draft/wildrift_category/marksmen.svg'),\r\n text: '射手',\r\n tag: 'Marksman'\r\n },\r\n {\r\n icon: require('@/assets/draft/wildrift_category/tank.svg'),\r\n text: '坦克',\r\n tag: 'Tank'\r\n },\r\n {\r\n icon: require('@/assets/draft/wildrift_category/assassin.svg'),\r\n text: '刺客',\r\n tag: 'Assassin'\r\n },\r\n {\r\n icon: require('@/assets/draft/wildrift_category/fighter.svg'),\r\n text: '鬥士',\r\n tag: 'Fighter'\r\n }\r\n ]\r\n\r\n this.category = 'category-all'\r\n }\r\n\r\n mounted() {\r\n if (this.gridDiv) {\r\n this.gridDiv.addEventListener('scroll', this.onGridScroll)\r\n }\r\n }\r\n\r\n beforeDestroy() {\r\n if (this.gridDiv) {\r\n this.gridDiv.removeEventListener('scroll', this.onGridScroll)\r\n }\r\n }\r\n\r\n // iOS safari scroll freeze fix\r\n scrollTimer!: NodeJS.Timeout\r\n\r\n onGridScroll() {\r\n if (this.scrollTimer) {\r\n clearTimeout(this.scrollTimer)\r\n }\r\n\r\n this.scrollTimer = setTimeout(() => {\r\n this.gridDiv.scrollTop = Math.max(\r\n 1,\r\n Math.min(\r\n this.gridDiv.scrollTop,\r\n this.gridDiv.scrollHeight - this.gridDiv.clientHeight - 1\r\n )\r\n )\r\n }, 300)\r\n }\r\n\r\n getOptionsByTag(tag: string) {\r\n return this.options.filter(\r\n option => tag === 'all' || option.tags.indexOf(tag) !== -1\r\n )\r\n }\r\n\r\n get getOptionsBySearch() {\r\n if (this.search === '') {\r\n return this.options\r\n }\r\n\r\n return this.options.filter(\r\n option =>\r\n option.name.indexOf(this.search) !== -1 ||\r\n option.icon\r\n .split('/')\r\n .slice(-1)[0]\r\n .toLowerCase()\r\n .indexOf(this.search.toLowerCase()) !== -1\r\n )\r\n }\r\n\r\n get gridHeight() {\r\n if (this.height <= 0) {\r\n return undefined\r\n }\r\n\r\n // 64 = tab height, 32 = margin\r\n return this.height - 64 - 24\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!./DraftOptionGrid.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!./DraftOptionGrid.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DraftOptionGrid.vue?vue&type=template&id=001b17c6&scoped=true&\"\nimport script from \"./DraftOptionGrid.vue?vue&type=script&lang=ts&\"\nexport * from \"./DraftOptionGrid.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DraftOptionGrid.vue?vue&type=style&index=0&id=001b17c6&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 \"001b17c6\",\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 { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabItem } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\nimport { VTabsItems } from 'vuetify/lib/components/VTabs';\nimport { VTabsSlider } from 'vuetify/lib/components/VTabs';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VCol,VIcon,VTab,VTabItem,VTabs,VTabsItems,VTabsSlider,VTextField})\n","import DraftOptionGrid from './DraftOptionGrid.vue'\r\nexport { DraftOptionGrid }\r\nexport default DraftOptionGrid\r\n","export default {\r\n // Start from the left side\r\n left: [\r\n {\r\n slot: 1,\r\n step: 1,\r\n side: 1\r\n },\r\n {\r\n slot: 2,\r\n step: 2,\r\n side: 1\r\n },\r\n {\r\n slot: 3,\r\n step: 5,\r\n side: 1\r\n },\r\n {\r\n slot: 6,\r\n step: 6,\r\n side: 2\r\n },\r\n {\r\n slot: 5,\r\n step: 4,\r\n side: 2\r\n },\r\n {\r\n slot: 4,\r\n step: 3,\r\n side: 2\r\n }\r\n ],\r\n // Start from the right side\r\n right: [\r\n {\r\n slot: 1,\r\n step: 3,\r\n side: 1\r\n },\r\n {\r\n slot: 2,\r\n step: 4,\r\n side: 1\r\n },\r\n {\r\n slot: 3,\r\n step: 6,\r\n side: 1\r\n },\r\n {\r\n slot: 6,\r\n step: 5,\r\n side: 2\r\n },\r\n {\r\n slot: 5,\r\n step: 2,\r\n side: 2\r\n },\r\n {\r\n slot: 4,\r\n step: 1,\r\n side: 2\r\n }\r\n ]\r\n}\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\n\n\n\n\n\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, Ref, Watch, Emit } from 'vue-property-decorator'\r\nimport DraftOption from '@/modules/draft/components/LeagueOfLegends/DraftOption'\r\nimport DraftOptionGrid from '@/modules/draft/components/LeagueOfLegends/DraftOptionGrid'\r\nimport { HubConnection, HubConnectionBuilder } from '@microsoft/signalr'\r\nimport * as signalR from '@microsoft/signalr'\r\nimport {\r\n DraftAPI,\r\n DraftEntity,\r\n DraftOptionEntity,\r\n DraftSessionEntity,\r\n DraftSessionState\r\n} from '@/api/draft'\r\nimport ServerError from '@/utils/server_error'\r\nimport { now } from '@/utils/time'\r\nimport AppButton from '@/modules/shared/components/AppButton/AppButton.vue'\r\nimport Match from '@/modules/match/views/Match'\r\nimport DraftOptionSlot from '../slots'\r\n\r\n@Component({\r\n components: { AppButton, DraftOption, DraftOptionGrid }\r\n})\r\nexport default class DraftSession extends Vue {\r\n @Prop({ type: String, required: true })\r\n draftSessionId!: string\r\n\r\n @Prop({ type: String, required: true })\r\n teamNumber!: string\r\n\r\n @Prop({ type: Boolean, default: false })\r\n full!: boolean\r\n\r\n @Ref('header')\r\n headerDiv!: HTMLDivElement\r\n\r\n @Ref('footer')\r\n footerDiv!: HTMLDivElement\r\n\r\n hubConnection!: HubConnection\r\n choice: string = ''\r\n isAdmin = false\r\n\r\n gridHeight: number = 0\r\n\r\n // timer\r\n tick: number = 0\r\n timer: NodeJS.Timer | null = null\r\n\r\n // draft data\r\n draft: DraftEntity | null = null\r\n session: DraftSessionEntity | null = null\r\n options: DraftOptionEntity[] = []\r\n\r\n submitting: boolean = false\r\n\r\n @Watch('session')\r\n onSessionChanged() {\r\n this.$nextTick(() => {\r\n if (!this.headerDiv) {\r\n return\r\n }\r\n\r\n this.headerDiv.addEventListener('resize', this.updateGridHeight)\r\n this.updateGridHeight()\r\n })\r\n }\r\n\r\n @Watch('choice')\r\n async onChoiceChanged(newVal: string) {\r\n const teamNumber = parseInt(this.teamNumber)\r\n if (!this.currentResult || this.currentResult.teamNumber !== teamNumber)\r\n return\r\n\r\n try {\r\n await DraftAPI.updateChoice(this.draftSessionId, newVal, teamNumber)\r\n } catch (err) {\r\n // just ignore it\r\n }\r\n }\r\n\r\n @Emit('close')\r\n close() {\r\n return this\r\n }\r\n\r\n @Watch('draftSessionId')\r\n onDraftSessionIdChanged(newVal: string) {\r\n // dunno why need setTimeout but it works\r\n setTimeout(async () => {\r\n await this.doCleanUp()\r\n await this.doInit()\r\n })\r\n }\r\n\r\n get draftslot() {\r\n return this.stepOneTeamName === this.leftTeamName\r\n ? DraftOptionSlot.left\r\n : DraftOptionSlot.right\r\n }\r\n\r\n async doInit() {\r\n this.fetchDraftSession().then()\r\n this.fetchDraftOptions().then()\r\n\r\n this.hubConnection = new HubConnectionBuilder()\r\n .withUrl(process.env.VUE_APP_API_ENDPOINT + '/realtime')\r\n .withAutomaticReconnect({\r\n nextRetryDelayInMilliseconds() {\r\n return Math.random() * 5000\r\n }\r\n })\r\n .configureLogging(signalR.LogLevel.Debug)\r\n .build()\r\n\r\n await this.hubConnection.start()\r\n await this.hubConnection.send('SubscribeDraftSession', this.draftSessionId)\r\n\r\n await this.hubConnection.on('fullUpdate', this.fetchDraftSession)\r\n await this.hubConnection.on('choiceSubmitted', this.onChoiceSubmitted)\r\n\r\n this.timer = setInterval(() => {\r\n this.tick++\r\n }, 500)\r\n }\r\n\r\n async doCleanUp() {\r\n if (this.hubConnection) {\r\n await this.hubConnection.stop()\r\n }\r\n\r\n if (this.timer) {\r\n clearInterval(this.timer)\r\n }\r\n\r\n window.removeEventListener('resize', this.updateGridHeight)\r\n }\r\n\r\n async created() {\r\n await this.doInit()\r\n }\r\n\r\n async beforeDestroy() {\r\n await this.doCleanUp()\r\n }\r\n\r\n mounted() {\r\n window.addEventListener('resize', this.updateGridHeight)\r\n\r\n if (URLSearchParams) {\r\n const params = new URLSearchParams(window.location.search)\r\n this.isAdmin = params.get('admin') === '1'\r\n }\r\n }\r\n\r\n updateGridHeight() {\r\n if (!this.headerDiv) {\r\n this.gridHeight = 0\r\n return\r\n }\r\n\r\n // 64 is toolbar height\r\n this.gridHeight =\r\n window.innerHeight -\r\n this.headerDiv.clientHeight -\r\n (this.footerDiv ? this.footerDiv.clientHeight : 0) -\r\n 45 +\r\n 10\r\n }\r\n\r\n async fetchDraftOptions() {\r\n try {\r\n const res = await DraftAPI.getDraftOptions(this.draftSessionId)\r\n this.options = res.data.payload as DraftOptionEntity[]\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('Server error')\r\n }\r\n\r\n console.error(err)\r\n }\r\n }\r\n\r\n async fetchDraftSession() {\r\n try {\r\n const res = await DraftAPI.getDraftSession(this.draftSessionId)\r\n this.session = res.data.payload!.session as DraftSessionEntity\r\n this.draft = res.data.payload!.draft as DraftEntity\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('Server error')\r\n }\r\n\r\n console.error(err)\r\n }\r\n }\r\n\r\n async submitChoice() {\r\n this.submitting = true\r\n try {\r\n await DraftAPI.submitChoice(\r\n this.draftSessionId,\r\n this.choice,\r\n parseInt(this.teamNumber)\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('Server error')\r\n }\r\n\r\n console.error(err)\r\n await this.fetchDraftSession()\r\n } finally {\r\n this.submitting = false\r\n }\r\n }\r\n\r\n get timeleft() {\r\n // this line is important for updating timer.\r\n this.tick = this.tick\r\n return Math.max(\r\n 0,\r\n Math.floor(this.session!.nextTimeoutTime - now().getTime() / 1000)\r\n )\r\n }\r\n\r\n get DraftSessionState() {\r\n return DraftSessionState\r\n }\r\n\r\n getResult(step: number) {\r\n console.log('step', this.session!.results, this.session!.currentStep)\r\n return this.session!.results.find(result => result.step === step)\r\n }\r\n\r\n getTeam(teamNumber: number) {\r\n return this.session!.teams.find(team => team.number === teamNumber)\r\n }\r\n\r\n get currentResult() {\r\n return this.getResult(this.session!.currentStep)\r\n }\r\n\r\n get myBans() {\r\n if (!this.session) return []\r\n\r\n return this.session!.results.filter(\r\n result =>\r\n result.action === 'Ban' &&\r\n result.teamNumber === parseInt(this.teamNumber)\r\n ).map(result => result.choice && result.choice.draftOptionId)\r\n }\r\n\r\n onChoiceSubmitted(args: {\r\n currentStep: number\r\n choice: string\r\n state: DraftSessionState\r\n nextTimeoutTime: number\r\n }) {\r\n if (!this.session) {\r\n return\r\n }\r\n\r\n this.choice = ''\r\n\r\n this.session.state = args.state\r\n this.session.currentStep = args.currentStep + 1\r\n this.session.nextTimeoutTime = args.nextTimeoutTime\r\n\r\n const result = this.session.results.find(\r\n result => result.step === args.currentStep\r\n )\r\n\r\n if (result) {\r\n result.choice = this.options.find(\r\n opt => opt.draftOptionId === args.choice\r\n ) as DraftOptionEntity\r\n }\r\n\r\n // make sure it updates everything\r\n this.session = { ...this.session }\r\n }\r\n\r\n get isMyTurn() {\r\n return (\r\n this.currentResult &&\r\n this.currentResult.teamNumber.toString() === this.teamNumber\r\n )\r\n }\r\n\r\n get disableIds() {\r\n var disabledIds = this.session!.results.filter(\r\n result => result.step < this.session!.currentStep\r\n )\r\n .filter(result => result.step <= 4 && this.session!.currentStep > 4)\r\n .map(result => result.choice)\r\n .filter(choice => choice)\r\n .map(choice => choice!.draftOptionId)\r\n console.log('disabled ids = ', disabledIds)\r\n\r\n if (this.myBans.length > 0) {\r\n return [...disabledIds, ...this.myBans]\r\n }\r\n\r\n return disabledIds\r\n }\r\n\r\n get stepOneTeamName() {\r\n if (!this.draft || !this.draft.steps || !this.draft.steps[0]) return ''\r\n const stepOneTeamNumber = this.draft.steps[0].teamNumber\r\n return this.getTeam(stepOneTeamNumber)!.name\r\n }\r\n\r\n get leftTeamName() {\r\n if (!this.session) {\r\n return ' '\r\n }\r\n\r\n const team = this.session.teams.find(team => team.number === 1)\r\n if (!team) {\r\n return ' '\r\n }\r\n\r\n return team.name\r\n }\r\n\r\n get rightTeamName() {\r\n if (!this.session) {\r\n return ' '\r\n }\r\n\r\n const team = this.session.teams.find(team => team.number === 2)\r\n if (!team) {\r\n return ' '\r\n }\r\n\r\n return team.name\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!./DraftSession.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!./DraftSession.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./DraftSession.vue?vue&type=template&id=480c6964&scoped=true&\"\nimport script from \"./DraftSession.vue?vue&type=script&lang=ts&\"\nexport * from \"./DraftSession.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./DraftSession.vue?vue&type=style&index=0&lang=scss&\"\nimport style1 from \"./DraftSession.vue?vue&type=style&index=1&id=480c6964&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 \"480c6964\",\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 { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VToolbarTitle } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VBtn,VCol,VContainer,VIcon,VProgressCircular,VRow,VSpacer,VToolbar,VToolbarTitle})\n","import DraftSession from './DraftSession.vue'\r\nexport { DraftSession }\r\nexport default DraftSession\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!./DraftOptionGrid.vue?vue&type=style&index=0&id=001b17c6&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!./DraftOptionGrid.vue?vue&type=style&index=0&id=001b17c6&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!./DraftSession.vue?vue&type=style&index=0&lang=scss&\"; 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!./DraftSession.vue?vue&type=style&index=0&lang=scss&\"","module.exports = __webpack_public_path__ + \"img/assassin.27e4c7b0.svg\";","module.exports = __webpack_public_path__ + \"img/support.8177b50d.svg\";","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!./DraftSession.vue?vue&type=style&index=1&id=480c6964&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!./DraftSession.vue?vue&type=style&index=1&id=480c6964&lang=scss&scoped=true&\""],"sourceRoot":""}