{"version":3,"sources":["webpack:///./src/views/games/Coinflip/coinflip.scss?0de5","webpack:///./src/views/games/Coinflip/coinflip.vue?3b5b","webpack:///./src/views/games/Coinflip/components/CoinflipListing.vue?fb51","webpack:///./src/views/games/Coinflip/components/CoinflipPlayer.vue?7670","webpack:///src/views/games/Coinflip/components/CoinflipPlayer.vue","webpack:///./src/views/games/Coinflip/components/CoinflipPlayer.vue?eb8a","webpack:///./src/views/games/Coinflip/components/CoinflipPlayer.vue","webpack:///src/views/games/Coinflip/components/CoinflipListing.vue","webpack:///./src/views/games/Coinflip/components/CoinflipListing.vue?8ec9","webpack:///./src/views/games/Coinflip/components/CoinflipListing.vue","webpack:///./src/views/games/Coinflip/coinflip.js","webpack:///./src/views/games/Coinflip/coinflip.js?a1bd","webpack:///./src/views/games/Coinflip/coinflip.vue","webpack:///./src/views/games/Coinflip/index.js","webpack:///./src/views/games/Coinflip/components/CoinflipListing.vue?b16c","webpack:///./src/views/games/Coinflip/components/CoinflipPlayer.vue?b833"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","games","length","countJoinable","_f","totalAmount","on","onCreate","scopedSlots","_u","key","fn","ref","_g","directives","name","rawName","value","expression","coins","model","inputs","create","callback","$$v","$set","gameConfig","minMargin","maxMargin","_n","_l","game","id","itemdb","loading","join","user","onJoin","onView","staticRenderFns","creator","avatar","coin","side","item","i","items","_e","total","range","winner","progressValue","$event","$emit","rollsIn","onCountdownTick","joining","joinable","style","color","colors","border","size","image","props","type","String","required","Object","Number","default","computed","bg","colorBg","text","colorText","colorBorder","component","VImg","components","config","Boolean","countdownValue","Math","max","ceil","lockingAt","Date","now","watch","status","console","log","methods","val","VBtn","VProgressCircular","VResponsive","CoinSelect","SettingsSlider","inputsCreateDefault","COINS","SIDE_HEADS","margin","metaInfo","title","$t","CoinflipListing","data","hideFinished","handlers","$ls","set","mapGetters","conga","settings","activeGames","finishedGames","filteredGames","filter","coinflip","reduce","acc","v","find","mapActions","subscribe","unsubscribe","$modal","open","maxWidth","noShadow","maxItemSelect","maxItems","minValue","minBet","maxValue","maxBet","modal","hasReturnValue","hideUnderMax","dollarValue","autoselect","modalItems","promise","ids","map","error","$toast","message","persistent","preferredCoin","get","values","forEach","clearInterval","VCol","VContainer","VMenu","VRow","VSpacer","view"],"mappings":"+GAAA,yBAA+c,EAAG,G,oECAld,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,YAAY,qCAAqCC,MAAM,CAAC,MAAQ,KAAK,CAACH,EAAG,cAAc,CAACE,YAAY,kBAAkB,CAACF,EAAG,QAAQ,CAACE,YAAY,QAAQ,CAACF,EAAG,QAAQ,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,6CAA6C,CAACF,EAAG,KAAK,CAACE,YAAY,+FAA+F,CAACN,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,MAAMC,QAAQ,aAAaP,EAAG,MAAM,CAACE,YAAY,4EAA4E,CAACF,EAAG,OAAO,CAACE,YAAY,wBAAwB,CAACN,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIY,eAAe,iBAAiBR,EAAG,MAAM,CAACE,YAAY,oDAAoD,CAACF,EAAG,OAAO,CAACE,YAAY,yBAAyB,CAACN,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIa,GAAG,UAAPb,CAAkBA,EAAIc,iBAAiBV,EAAG,OAAO,CAACE,YAAY,oCAAoC,CAACN,EAAIQ,GAAG,aAAaJ,EAAG,YAAYA,EAAG,QAAQ,CAACE,YAAY,6BAA6BC,MAAM,CAAC,MAAQ,0BAA0B,KAAO,GAAG,MAAQ,GAAG,UAAY,GAAG,QAAS,EAAM,OAAS,MAAMQ,GAAG,CAAC,MAAQf,EAAIgB,WAAW,CAAChB,EAAIQ,GAAG,mBAAmBJ,EAAG,SAAS,CAACG,MAAM,CA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AAOC,KAAK,OAAQ,CAAEC,SAAU,IAAKoB,YAAY,KAsC1D,aAAavH,GACXvC,KAAKwI,OAAOC,KACV,gBACA,CAAEC,SAAU,IAAKC,UAAU,GAC3B,CAAEpG,WAIR,gBACE,MAAMwH,EAAgB/J,KAAKuH,IAAIyC,IAAI,gBAE/BnD,OAAMuB,KAAK/E,GAAKA,EAAEb,KAAOuH,KAC3B/J,KAAK6B,OAAOC,OAAOoB,KAAO6G,IAG9B,sBACEnF,OAAOqF,OAAOjK,KAAKsH,UAAU4C,QAAQ7G,GAAK8G,cAAc9G,MClKqN,I,wECQ7Q,EAAY,eACd,EACAvD,EACAiD,GACA,EACA,KACA,WACA,MAIa,IAAiB,QAUhC,IAAkB,EAAW,CAACwD,OAAA,KAAK6D,OAAA,KAAKC,aAAA,KAAWC,QAAA,KAAMC,OAAA,KAAKC,UAAA,OC3B/CC,gB,oCCFf,yBAA+qB,EAAG,G,gFCAlrB,yBAA8qB,EAAG","file":"js/view-coinflip.d0f4af14.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!./coinflip.scss?vue&type=style&index=0&id=40111725&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!./coinflip.scss?vue&type=style&index=0&id=40111725&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticClass:\"page--coinflip pos-relative d-flex\",attrs:{\"fluid\":\"\"}},[_c('v-container',{staticClass:\"game-container\"},[_c('v-row',{staticClass:\"pt-8\"},[_c('v-col',{staticClass:\"flex-grow-1\"},[_c('div',{staticClass:\"header d-flex flex-wrap align-center mb-5\"},[_c('h3',{staticClass:\"text-body-1 font-weight-bold mr-2 primary700 primary200--text px-4 py-3 lh-1 text-uppercase\"},[_vm._v(\" \"+_vm._s(_vm.games.length)+\" games \")]),_c('div',{staticClass:\"py-3 px-4 bg-ui-panel text-uppercase grey100--text text-body-2 lh-1 mr-2\"},[_c('span',{staticClass:\"font-weight-semibold\"},[_vm._v(_vm._s(_vm.countJoinable)+\" joinable\")])]),_c('div',{staticClass:\"py-3 px-4 blue700 blue100--text lh-1 text-body-2\"},[_c('span',{staticClass:\"mr-1 font-weight-bold\"},[_vm._v(\"$\"+_vm._s(_vm._f(\"toScrap\")(_vm.totalAmount)))]),_c('span',{staticClass:\"text-uppercase font-weight-bold \"},[_vm._v(\"Total\")])]),_c('v-spacer'),_c('v-btn',{staticClass:\"px-5 font-weight-bold mr-1\",attrs:{\"color\":\"green700 green200--text\",\"tile\":\"\",\"large\":\"\",\"depressed\":\"\",\"ripple\":false,\"height\":\"38\"},on:{\"click\":_vm.onCreate}},[_vm._v(\" Create game \")]),_c('v-menu',{attrs:{\"offset-y\":\"\",\"bottom\":\"\",\"left\":\"\",\"nudge-bottom\":\"8\",\"max-width\":\"290\",\"content-class\":\"grey600 rounded-0\",\"close-on-content-click\":false},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({staticClass:\"px-2 unwidth\",attrs:{\"color\":\"green700 green300--text\",\"tile\":\"\",\"large\":\"\",\"depressed\":\"\",\"ripple\":false,\"height\":\"38\"}},on),[_c('fai',{staticClass:\"text-body-1\",attrs:{\"icon\":['fas', 'cog']}})],1)]}}])},[_c('div',{staticClass:\"py-6 px-5\"},[_c('label',{directives:[{name:\"t\",rawName:\"v-t\",value:('Customize your coin'),expression:\"'Customize your coin'\"}],staticClass:\"primary500--text d-block text-caption text-uppercase font-weight-semibold mb-1\"}),_c('CoinSelect',{staticClass:\"mb-6\",attrs:{\"coins\":_vm.coins},model:{value:(_vm.inputs.create.coin),callback:function ($$v) {_vm.$set(_vm.inputs.create, \"coin\", $$v)},expression:\"inputs.create.coin\"}}),_c('label',{directives:[{name:\"t\",rawName:\"v-t\",value:('Customize risk margin'),expression:\"'Customize risk margin'\"}],staticClass:\"primary500--text d-block text-caption text-uppercase font-weight-semibold mb-1\"}),_c('SettingsSlider',{attrs:{\"value-label\":((_vm.inputs.create.margin) + \"%\"),\"color\":\"primary500\",\"step\":\"1\",\"min\":_vm.gameConfig.minMargin * 100,\"max\":_vm.gameConfig.maxMargin * 100},model:{value:(_vm.inputs.create.margin),callback:function ($$v) {_vm.$set(_vm.inputs.create, \"margin\", _vm._n($$v))},expression:\"inputs.create.margin\"}})],1)])],1),_c('div',{staticClass:\"table-header faded-8 grey400 grey200--text text-uppercase py-2 d-flex justify-space-between text-caption mb-4\"},[_c('span',{staticClass:\"column-player pl-4\"},[_vm._v(\"Player\")]),_c('span',{staticClass:\"column-items\"},[_vm._v(\"Items\")]),_c('span',{staticClass:\"column-total\"},[_vm._v(\"Total\")]),_c('span',{staticClass:\"column-actions pr-4\"})]),_c('transition-group',{attrs:{\"tag\":\"div\",\"name\":\"t-coinflip-listings\"}},_vm._l((_vm.filteredGames),function(game){return _c('CoinflipListing',{key:game.id,staticClass:\"mb-1\",attrs:{\"game\":game,\"itemdb\":_vm.itemdb,\"config\":_vm.gameConfig,\"joining\":_vm.loading.join,\"user\":_vm.user},on:{\"join\":_vm.onJoin,\"view\":_vm.onView}})}),1)],1)],1)],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:\"coinflip-listing d-flex justify-space-between\"},[_c('div',{staticClass:\"column-player py-2 pl-5 pr-3 grey400 d-flex align-center\"},[_c('CoinflipPlayer',{staticClass:\"flex-grow-0 mr-4\",attrs:{\"avatar\":_vm.game.creator.avatar,\"coin\":_vm.game.coin[_vm.game.creator.side],\"size\":56}}),_c('div',{staticClass:\"of-hidden\"},[_c('Username',{staticClass:\"grey100--text\",attrs:{\"user\":_vm.game.creator}}),_c('h5',{directives:[{name:\"t\",rawName:\"v-t\",value:(_vm.game.coin[_vm.game.creator.side].name),expression:\"game.coin[game.creator.side].name\"}],staticClass:\"text-caption text--disabled text-no-wrap\"})],1)],1),_c('div',{staticClass:\"column-items ml-1 d-flex\"},[_vm._l((_vm.items),function(item,i){return _c('v-responsive',{key:i,staticClass:\"game-item-ctn mr-1 d-flex align-center justify-center\",attrs:{\"max-width\":\"96\",\"height\":\"96\",\"aspect-ratio\":1}},[_c('GameItem',{staticClass:\"pa-3\",attrs:{\"item\":item,\"dollar-value\":\"\",\"size\":\"auto\"}})],1)}),(_vm.items.length < _vm.game.items.length)?_c('h5',{staticClass:\"d-flex align-center grey400 px-4 text-body-2 lh-1\"},[_c('span',{staticClass:\"py-2 text-center extra-items grey500 faded-5 text--secondary\"},[_vm._v(\" +\"+_vm._s(_vm.game.items.length - _vm.items.length)+\" \")])]):_vm._e(),_c('div',{staticClass:\"flex-grow-1 flex-shrink-0 grey400\"})],2),_c('div',{staticClass:\"column-total grey400 d-flex justify-center flex-column pr-3\"},[_c('span',{staticClass:\"text-body-1\"},[_vm._v(\"$\"+_vm._s(_vm._f(\"toScrap\")(_vm.game.total)))]),(_vm.game.joinable)?_c('div',{staticClass:\"text-caption text--secondary\"},[_c('span',[_vm._v(\"$\"+_vm._s(_vm._f(\"toScrap\")(_vm.game.range[0])))]),_c('span',{staticClass:\"mx-1\"},[_vm._v(\"–\")]),_c('span',[_vm._v(\"$\"+_vm._s(_vm._f(\"toScrap\")(_vm.game.range[1])))])]):_vm._e()]),_c('div',{staticClass:\"column-actions grey400 pr-4 d-flex align-center justify-end\"},[(_vm.game.rolled)?_c('div',{staticClass:\"mr-4\"},[_c('CoinflipPlayer',{attrs:{\"avatar\":_vm.game.winner.avatar,\"coin\":_vm.game.coin[_vm.game.winner.side],\"size\":48}})],1):(_vm.game.lockingAt)?_c('v-progress-circular',{staticClass:\"countdown-progress mr-4\",attrs:{\"size\":\"48\",\"rotate\":-90,\"width\":\"4\",\"color\":\"primary600\",\"value\":_vm.progressValue},on:{\"click\":function($event){return _vm.$emit('view', _vm.game)}}},[_c('Countdown',{staticClass:\"font-weight-bold\",attrs:{\"duration\":_vm.rollsIn,\"seconds\":\"\"},on:{\"tick\":_vm.onCountdownTick}})],1):_vm._e(),_c('v-btn',{staticClass:\"unwidth px-3\",attrs:{\"color\":\"grey300 text--secondary\",\"tile\":\"\",\"depressed\":\"\",\"ripple\":false},on:{\"click\":function($event){return _vm.$emit('view', _vm.game)}}},[_c('fai',{attrs:{\"icon\":['fas','eye']}})],1),(_vm.joinable)?_c('v-btn',{staticClass:\"text-caption ml-2 font-weight-semibold px-2\",attrs:{\"color\":\"green700 green100--text\",\"tile\":\"\",\"depressed\":\"\",\"ripple\":false,\"loading\":_vm.joining,\"disabled\":!_vm.joinable},on:{\"click\":function($event){return _vm.$emit('join', _vm.game.id)}}},[_c('span',{staticClass:\"lh-1 px-2\"},[_vm._v(\" Join game \")])]):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-img',{staticClass:\"player rounded-circle\",style:({color: _vm.colors.border}),attrs:{\"src\":_vm.avatar,\"width\":_vm.size,\"transition\":false,\"aspect-ratio\":\"1\"}},[_c('v-img',{staticClass:\"coin\",attrs:{\"width\":_vm.size * 0.55,\"transition\":false,\"aspect-ratio\":\"1\",\"src\":_vm.coin.image}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipPlayer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipPlayer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CoinflipPlayer.vue?vue&type=template&id=4fc3aa2d&scoped=true&\"\nimport script from \"./CoinflipPlayer.vue?vue&type=script&lang=js&\"\nexport * from \"./CoinflipPlayer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CoinflipPlayer.vue?vue&type=style&index=0&id=4fc3aa2d&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 \"4fc3aa2d\",\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 { VImg } from 'vuetify/lib/components/VImg';\ninstallComponents(component, {VImg})\n","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipListing.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!../../../../../node_modules/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipListing.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CoinflipListing.vue?vue&type=template&id=7251a630&scoped=true&\"\nimport script from \"./CoinflipListing.vue?vue&type=script&lang=js&\"\nexport * from \"./CoinflipListing.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CoinflipListing.vue?vue&type=style&index=0&id=7251a630&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 \"7251a630\",\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 { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VResponsive } from 'vuetify/lib/components/VResponsive';\ninstallComponents(component, {VBtn,VProgressCircular,VResponsive})\n","import { mapGetters, mapActions, mapMutations } from 'vuex'\nimport { COINS, SIDE_HEADS } from './utils'\n\nimport CoinflipListing from './components/CoinflipListing'\n\nconst CoinSelect = () => import('./components/CoinSelect')\nconst SettingsSlider = () => import('@/modals/account/views/components/SettingsSlider')\n\n// TODO localize\n\nconst inputsCreateDefault = () => ({\n coin: COINS[0].id,\n side: SIDE_HEADS,\n margin: 10,\n items: [],\n})\n\nexport default {\n metaInfo() {\n return {\n title: this.$t('common.games.coinflip'),\n }\n },\n components: {\n CoinflipListing,\n CoinSelect,\n SettingsSlider,\n },\n data: () => ({\n loading: {\n create: false,\n join: false,\n },\n inputs: {\n create: inputsCreateDefault(),\n hideFinished: false,\n },\n handlers: {},\n }),\n watch: {\n coin(coin) {\n this.$ls.set('coinflipCoin', coin.id)\n },\n },\n computed: {\n ...mapGetters({\n user: 'user/session',\n conga: 'conga/conga',\n settings: 'settings/settings',\n activeGames: 'games/coinflip/activeGames',\n finishedGames: 'games/coinflip/finishedGames',\n itemdb: 'items/items',\n }),\n games() {\n return [\n ...this.activeGames,\n ...this.finishedGames,\n ]\n },\n filteredGames() {\n let games = [...this.games]\n\n if (this.inputs.hideFinished) {\n games = games.filter(i => i.joinable)\n }\n\n return games\n },\n gameConfig() {\n return this.conga.games?.coinflip ?? {}\n },\n totalAmount() {\n return this.games.reduce((acc, v) => acc + v.total, 0)\n },\n countJoinable() {\n return this.games.filter(i => i.joinable).length\n },\n coins() {\n return COINS\n },\n coin() {\n return COINS.find(i => i.id === this.inputs.create.coin)\n },\n },\n methods: {\n ...mapActions({\n subscribe: 'subscribe',\n unsubscribe: 'unsubscribe',\n create: 'games/coinflip/create',\n join: 'games/coinflip/join',\n }),\n async onCreate() {\n this.$modal.open(\n 'coinflip-create',\n { maxWidth: 900, noShadow: true },\n {\n maxItemSelect: this.gameConfig.maxItems,\n minValue: this.gameConfig.minBet,\n maxValue: this.gameConfig.maxBet,\n margin: this.inputs.create.margin,\n coin: this.coin,\n },\n )\n },\n async onJoin(id) {\n if (this.loading.join) return\n\n if (!this.user) {\n this.$modal.open('auth', { maxWidth: 320, persistent: true })\n return\n }\n\n this.loading.join = true\n\n try {\n const game = this.games.find(i => i.id === id)\n\n if (!game) return\n\n const modal = this.$modal.open(\n 'backpack',\n { hasReturnValue: true, maxWidth: 900, noShadow: true },\n {\n maxItemSelect: this.gameConfig.maxItems,\n minValue: game.range[0],\n maxValue: game.range[1],\n hideUnderMax: true,\n dollarValue: true,\n autoselect: true,\n },\n )\n\n const modalItems = await modal.promise\n if (!modalItems) return\n\n const ids = modalItems.map(i => i.id)\n\n await this.join({ id, ids })\n\n this.onView(game)\n } catch (error) {\n this.$toast.error(error.message)\n } finally {\n this.loading.join = false\n }\n },\n async onView(game) {\n this.$modal.open(\n 'coinflip-game',\n { maxWidth: 800, noShadow: true },\n { game },\n )\n },\n },\n async created() {\n const preferredCoin = this.$ls.get('coinflipCoin')\n\n if (COINS.find(i => i.id === preferredCoin)) {\n this.inputs.create.coin = preferredCoin\n }\n },\n async beforeDestroy() {\n Object.values(this.handlers).forEach(i => clearInterval(i))\n },\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./coinflip.js?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./coinflip.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./coinflip.vue?vue&type=template&id=40111725&scoped=true&\"\nimport script from \"./coinflip.js?vue&type=script&lang=js&\"\nexport * from \"./coinflip.js?vue&type=script&lang=js&\"\nimport style0 from \"./coinflip.scss?vue&type=style&index=0&id=40111725&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 \"40111725\",\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 { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VBtn,VCol,VContainer,VMenu,VRow,VSpacer})\n","import view from './coinflip.vue'\n\nexport default view\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/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipListing.vue?vue&type=style&index=0&id=7251a630&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/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipListing.vue?vue&type=style&index=0&id=7251a630&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/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipPlayer.vue?vue&type=style&index=0&id=4fc3aa2d&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/vuetify-loader/lib/loader.js??ref--17-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CoinflipPlayer.vue?vue&type=style&index=0&id=4fc3aa2d&lang=scss&scoped=true&\""],"sourceRoot":""}