(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1146:function(t,e,o){var content=o(1151);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(13).default)("910542a2",content,!0,{sourceMap:!1})},1147:function(t,e,o){"use strict";o(27),o(17),o(31),o(19);e.a=function(t){return{data:function(){return{unsubscribeGameAction:null,unsubscribeTimerGameAction:15}},methods:{gameSubscribeMethod:function(t){var e=this,o=this;this.unsubscribeGameAction=this.$store.subscribeAction((function(n,r){if("common/changeEnabledGames"===n.type){var l=e.$route.name,time=e.unsubscribeTimerGameAction;if(l.includes(t)||"cases"===t&&"games-caseCode-code"===l){if(!n.payload||!1!==n.payload[t])return;var c=setInterval((function(){e.$store.dispatch("alertMessage/showAlertMessage",{message:"Текущая игра отключена, переход на главную через ".concat(e.unsubscribeTimerGameAction," секунд"),alertMessageIcon:"danger",alertMessageClass:"danger",time:1e3}),e.unsubscribeTimerGameAction-=1,(e.unsubscribeTimerGameAction<1||l!==o.$route.name)&&clearInterval(c)}),1e3);setTimeout((function(){e.$router.push("/")}),1e3*(time+1))}}}))}},mounted:function(){this.gameSubscribeMethod&&this.gameSubscribeMethod(t)},beforeDestroy:function(){this.unsubscribeGameAction&&this.unsubscribeGameAction()}}}},1148:function(t,e,o){var content=o(1154);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(13).default)("1dd56924",content,!0,{sourceMap:!1})},1149:function(t,e,o){"use strict";var n={name:"GameTutorialModal",components:{YoutubeModal:o(1152).a},data:function(){return{isLastPage:!1}},props:{game:{type:String,required:!0}},computed:{data:function(){return this.$t("game-tutorial.games.".concat(this.game))}},methods:{nextStep:function(){this.isLastPage?this.closeModal():this.$refs.tutorialCarousel.goToPage(this.$refs.tutorialCarousel.getNextPage())},onPageChange:function(t){this.isLastPage=t===this.data.length-1},closeModal:function(){this.$modal.hide("gameTutorial")},beforeOpen:function(){this.isLastPage=!1},openVideo:function(t){t&&this.$modal.show("showHelpVideo",{videoId:t})}}},r=(o(1153),o(3)),component=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",[e("modal",{staticClass:"tutorial",attrs:{classes:["modalWindow"],name:"gameTutorial",scrollable:!0,adaptive:!0,height:"auto","max-width":600,width:"96%"},on:{"before-open":t.beforeOpen}},[e("div",{staticClass:"modalWindow-wrapper"},[e("div",{staticClass:"modalWindow-inner"},[e("div",{staticClass:"tutorial_inner"},[e("header",{staticClass:"tutorial__header"},[e("h3",{staticClass:"tutorial__title"},[t._v(t._s(t.$t("game-tutorial.how-to-play")))]),t._v(" "),e("div",{staticClass:"tutorial__close-button",on:{click:t.closeModal}},[e("img",{attrs:{src:"/img/close-circle-blue.svg",alt:"Close"}})])]),t._v(" "),e("div",{staticClass:"tutorial__content"},[e("no-ssr",[e("carousel",{ref:"tutorialCarousel",attrs:{perPage:1,"pagination-color":"#464f75","pagination-active-color":"#f3f4ff"},on:{pageChange:t.onPageChange}},t._l(t.data,(function(o,i){return e("slide",{key:i,staticClass:"tutorial__step"},[e("div",{staticClass:"tutorial__step-img"},[o.video_id?e("div",{staticClass:"tutorial__step-video"},[e("div",{staticClass:"tutorial__step-video_overlay",on:{click:function(e){return t.openVideo(o.video_id)}}}),t._v(" "),o.video_id?e("youtube",{attrs:{"video-id":o.video_id}}):t._e()],1):e("img",{attrs:{src:o.image,alt:"Step image"}})]),t._v(" "),e("p",{staticClass:"tutorial__step-text"},[t._v(t._s(o.text))])])})),1)],1),t._v(" "),e("button",{staticClass:"tutorial__next-step",on:{click:t.nextStep}},[t.isLastPage?e("span",[t._v(t._s(t.$t("game-tutorial.play")))]):e("span",[t._v(t._s(t.$t("game-tutorial.next-step")))])])],1)])])])]),t._v(" "),e("youtube-modal")],1)}),[],!1,null,"9acc48f0",null);e.a=component.exports},1150:function(t,e,o){"use strict";o(1146)},1151:function(t,e,o){var n=o(12)((function(i){return i[1]}));n.push([t.i,"iframe{height:100%;width:100%}",""]),n.locals={},t.exports=n},1152:function(t,e,o){"use strict";var n={name:"youtube-modal",data:function(){return{loaded:!1,videoId:null}},computed:{player:function(){return this.$refs.helpYoutube.player}},methods:{onBeforeOpen:function(t){t.params&&t.params.videoId&&t.params.videoId.length&&(this.videoId=t.params.videoId)},videoLoaded:function(){this.loaded=!0}}},r=(o(1150),o(3)),component=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("modal",{attrs:{classes:"video-container youtube-modal",name:"showHelpVideo",width:"80%",height:"80%"},on:{"before-open":t.onBeforeOpen,"before-close":function(e){t.loaded=!1}}},[e("loader",{attrs:{loading:!t.loaded}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.loaded,expression:"loaded"}],staticClass:"youtube-modal__content"},[e("youtube",{ref:"helpYoutube",attrs:{"video-id":t.videoId},on:{ready:function(e){return t.videoLoaded()}}})],1)],1)}),[],!1,null,null,null);e.a=component.exports},1153:function(t,e,o){"use strict";o(1148)},1154:function(t,e,o){var n=o(12)((function(i){return i[1]}));n.push([t.i,".tutorial[data-v-9acc48f0]{color:#fff;font-family:Montserrat,sans-serif}.tutorial__overlay[data-v-9acc48f0]{background-color:rgba(0,0,0,.6);height:100%;left:0;position:absolute;top:0;width:100%;z-index:-1}.tutorial_inner[data-v-9acc48f0]{background-image:url(/img/backgroundComingSoon.png);background-size:cover;border-radius:10px;display:flex;flex-direction:column;width:100%}.tutorial__header[data-v-9acc48f0]{align-items:center;background:linear-gradient(0deg,rgba(62,62,96,.5),rgba(38,41,61,.5));display:flex;justify-content:center;min-height:80px;position:relative}.tutorial__title[data-v-9acc48f0]{font-size:20px;font-weight:400;text-transform:uppercase}.tutorial__close-button[data-v-9acc48f0]{cursor:pointer;position:absolute;right:12px;top:50%;transform:translateY(-50%);width:30px}.tutorial__close-button img[data-v-9acc48f0]{transform-origin:center;transition:transform .2s ease-out}.tutorial__close-button:hover img[data-v-9acc48f0]{cursor:pointer;transform:rotate(180deg)}.tutorial__content[data-v-9acc48f0]{display:flex;flex-direction:column;height:100%;margin:0 auto;padding:30px;width:100%}.tutorial__step[data-v-9acc48f0]{align-items:center;display:flex;flex-direction:column;padding:0 3px}.tutorial__step-img[data-v-9acc48f0]{align-items:center;border-radius:10px;display:flex;height:100%;justify-content:center;margin-bottom:20px;margin-top:2px;max-height:350px;max-width:350px;min-height:350px;position:relative;width:100%}.tutorial__step-img img[data-v-9acc48f0]{border-radius:6px;box-shadow:0 5px 20px 4px rgba(0,0,0,.2),0 0 0 1px rgba(99,102,144,.2);display:block;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.tutorial__step-video[data-v-9acc48f0]{cursor:pointer;height:100%;position:relative;width:100%}.tutorial__step-video[data-v-9acc48f0]:hover{opacity:.65}.tutorial__step-video_overlay[data-v-9acc48f0]{height:100%;left:0;position:absolute;top:0;width:100%;z-index:5}.tutorial__step-text[data-v-9acc48f0]{font-size:14px;line-height:20px;margin-bottom:10px;padding:0 20px;text-align:center;width:100%}.tutorial__next-step[data-v-9acc48f0]{align-items:center;align-self:center;background:linear-gradient(to top right,#4be,#81f8fd);border-color:transparent;border-radius:6px;border-top:2px solid #82ffff;color:#fff;display:flex;font-size:19px;height:55px;justify-content:center;margin-top:15px;text-shadow:1px 1px 1px #000;width:165px}.tutorial__next-step[data-v-9acc48f0]:hover{cursor:pointer}.tutorial__next-step_small[data-v-9acc48f0]{font-size:16px;height:40px;width:100%}@media(max-width:767px){.tutorial__content[data-v-9acc48f0]{padding:20px 10px}.tutorial__step-text[data-v-9acc48f0]{font-size:13px;padding:0 5px}.tutorial__next-step[data-v-9acc48f0]{font-size:16px;height:50px}}",""]),n.locals={},t.exports=n},1256:function(t,e,o){"use strict";o(27),o(7),o(8),o(9),o(6),o(5);var n=o(18),r=o(0),l=(o(20),o(4),o(28),o(207),o(42),o(2),o(19),o(11));function c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?c(Object(o),!0).forEach((function(e){Object(r.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var h={name:"HiloGameBlock",components:{HiloGameCard:o(286).a},data:function(){return{isCardChanged:!1,isMainCardFlipped:!1,isGameReset:!1,changedCardTimeout:null,onAnimateTimeout:null,mainCardTimeout:null,choiceCardTimeout:null,gameResetTimeout:null,currentRateTimeout:null}},computed:d(d({},Object(l.c)({winAmount:"hilo/winAmount",rate:"hilo/rate",disabledForm:"hilo/disabledForm",onAnimate:"hilo/onAnimate",hiddenModal:"hilo/hiddenModal",cards:"hilo/cards"})),{},{currentCard:function(){return this.cards.length?!0===this.cards[0].opened?this.cards[0]:this.cards[1]:null},openedCardsCount:function(){return this.cards.filter((function(t){return t.opened})).length},lastCardIsOpened:function(){return this.cards.length&&!0===this.cards[0].opened},isShowModal:function(){return!this.hiddenModal&&!this.disabledForm&&!this.onAnimate&&this.cards.length&&!0===this.cards[0].winned},historyCards:function(){if(!this.cards[0]||this.isGameReset||this.isCardChanged)return[];var t=this.cards.slice().reverse();return t.splice(-1,1),[].concat(Object(n.a)(t),[this.cards[0]])}}),watch:{rate:function(t,e){0!==t&&this.changeCoef(t,e,Number(t)>Number(e)?"upper":"lower")}},mounted:function(){this.resetGame(),this.$root.$on("hilo.onWinCardEvent",this.flipMainCard),this.$root.$on("hilo.onLoseCardEvent",this.loseCardEvent),this.$root.$on("hilo.onSlideCardEvent",this.slideCard)},beforeDestroy:function(){clearTimeout(this.changedCardTimeout),clearTimeout(this.onAnimateTimeout),clearTimeout(this.mainCardTimeout),clearTimeout(this.choiceCardTimeout),clearTimeout(this.gameResetTimeout),clearTimeout(this.currentRateTimeout)},destroyed:function(){this.$root.$off("hilo.onWinCardEvent"),this.$root.$off("hilo.onLoseCardEvent"),this.$root.$off("hilo.onSlideCardEvent")},methods:d(d({},Object(l.b)({resetGame:"hilo/resetGame",hideModal:"hilo/hideModal",changeCard:"hilo/changeCard",setOnAnimate:"hilo/setOnAnimate"})),{},{onHideModal:function(){this.hideModal()},loseCardEvent:function(){this.flipMainCard(),this.changeCoef(this.rate,null,"lower")},onChangeCard:function(){var t=this;this.changeCard(),this.isCardChanged=!0,this.flipMainCard(),this.setOnAnimate(),this.$root.$emit("hilo.onFlipCard"),this.changedCardTimeout=setTimeout((function(){t.isCardChanged=!1}),300),this.onAnimateTimeout=setTimeout((function(){t.setOnAnimate(!1)}),500)},flipMainCard:function(){var t=this;this.isMainCardFlipped=!0,this.mainCardTimeout=setTimeout((function(){t.isMainCardFlipped=!1}),150),this.cardDrop()},slideCard:function(){var t=this;this.isGameReset=!0,this.flipMainCard(),this.gameResetTimeout=setTimeout((function(){t.isGameReset=!1}),300)},cardDrop:function(){var t=this.$refs["game-hilo__choice-card"],e=t.querySelector(".game-hilo__choice-card-front");if(t&&e){var o=t.querySelector(".game-hilo__choice-card-front").cloneNode(!0);o.classList.add("game-hilo__choice-card-front_moving"),o.classList.add(["game-hilo__choice-card-front_moving-left","game-hilo__choice-card-front_moving-right"][Math.round(Math.random())]),o.classList.remove("game-hilo__opens-item_opened"),o.classList.remove("game-hilo__choice-card-front_main"),t.appendChild(o),o.removeChild(o.querySelector(".game-hilo__choice-card-refresh")),this.choiceCardTimeout=setTimeout((function(){t.removeChild(o)}),500)}},changeCoef:function(t,e,o){var n=this.$refs["game-hilo-rates"],r=this.$refs["game-hilo-current-rate"];if(n&&r){var l=r.cloneNode();l.innerText=t+"x",l.classList.remove("game-hilo__choice-info-rate_current"),l.classList.add("game-hilo__choice-info-rate_new"),l.classList.add("upper"===o?"game-hilo__choice-info-rate_new_upper":"game-hilo__choice-info-rate_new_lower"),n.appendChild(l),this.currentRateTimeout=setTimeout((function(){n.removeChild(l)}),350)}}})},m=o(3),component=Object(m.a)(h,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"game-hilo__winning",class:{"game-hilo__winning_active":t.isShowModal}},[e("div",{staticClass:"game-hilo__winning-close",on:{click:t.onHideModal}}),t._v(" "),e("div",{staticClass:"game-hilo__winning-rate"},[e("animatedInteger",{attrs:{value:t.rate,deleteEmptyCent:!0,rounding:2,spacing:!1}}),t._v("\n      x\n    ")],1),t._v(" "),e("div",{staticClass:"game-hilo__winning-amount"},[e("span",{staticClass:"game-hilo__winning-amount-title"},[t._v(t._s(t.$t("hilo.gameBlock.winAmount")))]),t._v(" "),e("span",{staticClass:"game-hilo__winning-amount-value"},[e("animatedInteger",{attrs:{value:t.winAmount,deleteEmptyCent:!0,rounding:2}}),t._v(" "),e("img",{attrs:{src:"/img/ingots-money/ingots-money_blue.svg",alt:"Ingots"}})],1)])]),t._v(" "),e("div",{staticClass:"game-hilo__choice"},[e("div",{staticClass:"game-hilo__choice-info game-hilo__choice-info_cards"},[e("strong",[t._v(t._s(t.openedCardsCount))]),t._v(" "),e("span",[t._v(t._s(t.plural(t.openedCardsCount,t.$t("hilo.gameBlock.cards"))))])]),t._v(" "),e("div",{ref:"game-hilo__choice-card",staticClass:"game-hilo__choice-card"},[e("div",{staticClass:"game-hilo__choice-card-front",class:{"game-hilo__choice-card-front_main":!t.isMainCardFlipped}},[e("hilo-game-card",{class:{"game-hilo__opens-item_opened":!t.isMainCardFlipped},attrs:{suit:t.currentCard?t.currentCard.suit:null,card:t.currentCard?t.currentCard.card:null,back:!t.currentCard}}),t._v(" "),e("div",{staticClass:"game-hilo__choice-card-refresh",class:{"game-hilo__choice-card-refresh_active":!t.lastCardIsOpened&&!t.disabledForm,"game-hilo__choice-card-refresh_disabled":t.onAnimate},on:{click:function(e){!t.lastCardIsOpened&&!t.disabledForm&&!t.onAnimate&&t.onChangeCard()}}},[e("img",{attrs:{src:"/img/hilo/refresh.svg",alt:"Refresh"}}),t._v(" "),e("span",[t._v(t._s(t.$t("hilo.gameBlock.changeButton")))])])],1),t._v(" "),e("div",{staticClass:"game-hilo__choice-card-back"},[e("hilo-game-card",{attrs:{suit:null,card:null,back:!0}}),t._v(" "),t._m(0)],1)]),t._v(" "),e("div",{ref:"game-hilo-rates",staticClass:"game-hilo__choice-info game-hilo__choice-info_rate"},[e("strong",{ref:"game-hilo-current-rate",staticClass:"game-hilo__choice-info-rate_current"},[t._v(t._s(t.rate)+"x")]),t._v(" "),e("span",[t._v(t._s(t.$t("hilo.gameBlock.rate")))])])]),t._v(" "),e("transition-group",{staticClass:"game-hilo__opens",attrs:{name:"list-complete",tag:"div"}},[t._l(t.historyCards,(function(o,n){return[o.opened||t.disabledForm?e("div",{key:n,staticClass:"game-hilo__opens-item list-complete-item",class:[{"game-hilo__opens-item_opened":o.opened},{"game-hilo__opens-item_lose":o.opened&&!o.winned}]},[e("div",{staticClass:"game-hilo__opens-item-sign game-hilo__opens-item-sign_upper",class:{"game-hilo__opens-item-sign_visible":!o.first,"game-hilo__opens-item-sign_active":["eq","gt","gte"].includes(o.direction)}}),t._v(" "),e("div",{staticClass:"game-hilo__opens-item-card"},[e("hilo-game-card",{attrs:{suit:o.suit,card:o.card,small:!0,back:!o.opened}})],1),t._v(" "),e("div",{staticClass:"game-hilo__opens-item-sign game-hilo__opens-item-sign_lower",class:{"game-hilo__opens-item-sign_visible":!o.first,"game-hilo__opens-item-sign_active":["eq","lt","lte"].includes(o.direction)}})]):t._e()]}))],2)],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"game-card__footer-imitation"},[e("div",{staticClass:"game-card__footer-imitation-item"}),t._v(" "),e("div",{staticClass:"game-card__footer-imitation-item"}),t._v(" "),e("div",{staticClass:"game-card__footer-imitation-item"}),t._v(" "),e("div",{staticClass:"game-card__footer-imitation-item"})])}],!1,null,null,null);e.a=component.exports},1257:function(t,e,o){"use strict";o(7),o(4),o(8),o(9),o(6),o(2),o(5);var n=o(0),r=o(11);function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}var c={name:"HiloGameSound",data:function(){return{sound:{}}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?l(Object(o),!0).forEach((function(e){Object(n.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(r.c)({soundGame:"sound/soundGame",gamesSounds:"sound/gamesSounds",hiloCreateGameSound:"sound/hiloCreateGameSound",hiloFlipCardSound:"sound/hiloFlipCardSound",hiloSlideCardSound:"sound/hiloSlideCardSound",hiloWinCardSound:"sound/hiloWinCardSound",hiloLoseCardSound:"sound/hiloLoseCardSound",hiloWinGameSound:"sound/hiloWinGameSound"})),beforeDestroy:function(){this.stopAllSounds(),this.$root.$off("hilo.onCreateGame"),this.$root.$off("hilo.onFlipCard"),this.$root.$off("hilo.onSlideCard"),this.$root.$off("hilo.onWinCard"),this.$root.$off("hilo.onLoseCard"),this.$root.$off("hilo.onWinGame")},mounted:function(){this.sound.hiloCreateGameSound={vuex:this.hiloCreateGameSound,howl:new Howl({src:[this.hiloCreateGameSound.sound],volume:1})},this.sound.hiloFlipCardSound={vuex:this.hiloFlipCardSound,howl:new Howl({src:[this.hiloFlipCardSound.sound],volume:1})},this.sound.hiloSlideCardSound={vuex:this.hiloSlideCardSound,howl:new Howl({src:[this.hiloSlideCardSound.sound],volume:1})},this.sound.hiloWinCardSound={vuex:this.hiloWinCardSound,howl:new Howl({src:[this.hiloWinCardSound.sound],volume:1})},this.sound.hiloLoseCardSound={vuex:this.hiloLoseCardSound,howl:new Howl({src:[this.hiloLoseCardSound.sound],volume:.7})},this.sound.hiloWinGameSound={vuex:this.hiloWinGameSound,howl:new Howl({src:[this.hiloWinGameSound.sound],volume:1})},this.$root.$on("hilo.onCreateGame",this.onCreateGame),this.$root.$on("hilo.onFlipCard",this.onFlipCard),this.$root.$on("hilo.onSlideCard",this.onSlideCard),this.$root.$on("hilo.onWinCard",this.onWinCard),this.$root.$on("hilo.onLoseCard",this.onLoseCard),this.$root.$on("hilo.onWinGame",this.onWinGame)},watch:{soundGame:function(t){for(var e in this.sound)this.sound[e].howl.mute(!t)}},methods:{onCreateGame:function(){this.soundGame&&this.sound.hiloCreateGameSound.vuex.active&&this.sound.hiloCreateGameSound.howl.play()},onFlipCard:function(){this.soundGame&&this.sound.hiloFlipCardSound.vuex.active&&this.sound.hiloFlipCardSound.howl.play()},onSlideCard:function(){this.soundGame&&this.sound.hiloSlideCardSound.vuex.active&&this.sound.hiloSlideCardSound.howl.play()},onWinCard:function(){this.soundGame&&this.sound.hiloWinCardSound.vuex.active&&this.sound.hiloWinCardSound.howl.play()},onLoseCard:function(){this.soundGame&&this.sound.hiloLoseCardSound.vuex.active&&this.sound.hiloLoseCardSound.howl.play()},onWinGame:function(){this.soundGame&&this.sound.hiloWinGameSound.vuex.active&&this.sound.hiloWinGameSound.howl.play()},stopAllSounds:function(){for(var t in this.sound)this.sound[t].howl.playing()&&this.sound[t].howl.stop()}}},d=c,h=o(3),component=Object(h.a)(d,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null);e.a=component.exports},1258:function(t,e,o){"use strict";o(17),o(7),o(4),o(8),o(9),o(6),o(2),o(5);var n=o(0),r=(o(19),o(11));function l(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}var c={name:"HiloHistoryBlock",data:function(){return{loading:!0}},computed:function(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?l(Object(o),!0).forEach((function(e){Object(n.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}({},Object(r.c)({userId:"auth/userId",history:"hilo/history"})),mounted:function(){this.loadHistory(),document.addEventListener("visibilitychange",this.onVisibilityChange)},destroyed:function(){document.removeEventListener("visibilitychange",this.onVisibilityChange)},watch:{history:function(){this.loading=!1}},methods:{loadHistory:function(){var t=this;this.$store.dispatch("hilo/loadHistory"),setTimeout((function(){t.loading=!1}),1500)},onVisibilityChange:function(){document&&"hidden"!==document.visibilityState&&this.loadHistory()}}},d=c,h=o(3),component=Object(h.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"game-hilo__history"},[e("div",{staticClass:"game-hilo__history-title"},[e("h3",[t._v(t._s(t.$t("hilo.history.title")))])]),t._v(" "),e("loader",{attrs:{loading:t.loading,margin:!1}}),t._v(" "),t.loading?t._e():e("div",{staticClass:"game-hilo__history-table"},[e("div",{staticClass:"game-hilo__history-table-row"},[e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_header"},[t._v(t._s(t.$t("hilo.history.columns.player")))]),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_header"},[t._v(t._s(t.$t("hilo.history.columns.betAmount")))]),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_header"},[t._v(t._s(t.$t("hilo.history.columns.rate")))]),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_header"},[t._v(t._s(t.$t("hilo.history.columns.winAmount")))]),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_header"})]),t._v(" "),t.history.length?t._l(t.history,(function(o){return e("div",{key:o.game.id,staticClass:"game-hilo__history-table-row"},[e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_user"},[e("user",{attrs:{id:o.user.id,image:o.user.image,name:o.user.name,rank:o.user.rank,nameHiddenXs:!1}})],1),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_bet"},[e("animatedInteger",{attrs:{value:o.game.betAmount,deleteEmptyCent:!0,rounding:2}}),t._v(" "),e("img",{attrs:{src:"/img/ingots-money/ingots-money.svg",alt:"Ingots"}})],1),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_rate",class:{active:o.game.winAmount>0}},[e("animatedInteger",{attrs:{value:o.game.rate,deleteEmptyCent:!1,rounding:2,spacing:!1}}),t._v("x\n      ")],1),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_win",class:{active:o.game.winAmount>0}},[e("animatedInteger",{attrs:{value:o.game.winAmount,deleteEmptyCent:!0,rounding:2}}),t._v(" "),e("img",{attrs:{src:"/img/ingots-money/ingots-money_blue.svg",alt:"Ingots"}})],1),t._v(" "),e("div",{staticClass:"game-hilo__history-table-cell game-hilo__history-table-cell_details"},[e("button",{on:{click:function(e){return t.$modal.show("hiloGameInfo",{gameId:o.game.id})}}},[t._v(t._s(t.$t("hilo.history.columns.details")))]),t._v(" "),e("span",{on:{click:function(e){return t.$modal.show("hiloGameInfo",{gameId:o.game.id})}}})])])})):e("div",{staticClass:"game-hilo__history-table-empty"},[e("span",[t._v(t._s(t.$t("hilo.history.empty")))])])],2)],1)}),[],!1,null,null,null);e.a=component.exports},1259:function(t,e,o){"use strict";o(7),o(8),o(9),o(6),o(5);var n=o(0),r=(o(4),o(42),o(62),o(2),o(16),o(25),o(11)),l=o(250);function c(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function d(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?c(Object(o),!0).forEach((function(e){Object(n.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):c(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var h="1.00",m={name:"HiloRateBlock",data:function(){return{betAmount:h,betVariants:[.1,.5,1,5,20,100,500],betVariantsMode:!0,isNotOnType:!1,trustedCount:0}},computed:d(d({},Object(r.c)({storeBetAmount:"hilo/betAmount",winAmount:"hilo/winAmount",cards:"hilo/cards",disabledForm:"hilo/disabledForm",onAnimate:"hilo/onAnimate",isAuth:"auth/token",userBalance:"auth/userBalance"})),{},{lastCardIsOpened:function(){return this.cards.length&&!0===this.cards[0].opened},isAvailableTakeWin:function(){return this.cards.filter((function(t){return t.opened})).length>1&&!1===this.cards[0].opened},gtDirection:function(){return this.cards.length&&!1===this.cards[0].opened?this.cards[1].level===l.a.MIN_CARD_LEVEL?"gt":this.cards[1].level===l.a.MAX_CARD_LEVEL?"eq":"gte":null},gtChance:function(){return this.gtDirection?l.a.getCardChance(this.cards[1],this.gtDirection):0},gtRate:function(){return this.gtDirection?l.a.getNextRatioByDirection(this.cards,this.gtDirection):0},ltDirection:function(){return this.cards.length&&!1===this.cards[0].opened?this.cards[1].level===l.a.MIN_CARD_LEVEL?"eq":this.cards[1].level===l.a.MAX_CARD_LEVEL?"lt":"lte":null},ltChance:function(){return this.ltDirection?l.a.getCardChance(this.cards[1],this.ltDirection):0},ltRate:function(){return this.ltDirection?l.a.getNextRatioByDirection(this.cards,this.ltDirection):0},isDisableGame:function(){return!this.$store.getters["common/getEnableStatusGameByName"]("hilo")}}),mounted:function(){this.isNotOnType=!0,1===parseFloat(this.storeBetAmount)||isNaN(this.storeBetAmount)||(this.betAmount=this.storeBetAmount),this.trustedCount=0},watch:{betAmount:function(){var t=!1===this.isNotOnType;this.isNotOnType=!1,this.prepareBetAmount(t)},storeBetAmount:function(t){parseFloat(t)!==parseFloat(this.betAmount)&&(this.betAmount=t)}},methods:d(d({},Object(r.b)({setStoreBetAmount:"hilo/setBetAmount",resetGame:"hilo/resetGame",setOnAnimate:"hilo/setOnAnimate",disableForm:"hilo/disableForm"})),{},{onStartGame:function(t){this.isDisableGame||(parseFloat(this.userBalance)<parseFloat(this.betAmount)?this.$store.dispatch("alertMessage/showAlertMessage",{message:this.$t("hilo.errors.balance_not_enough"),alertMessageIcon:"danger",alertMessageClass:"danger"}):(this.disableForm(),this.$root.$emit("hilo.onCreateGame"),this.$socket.client.emit("create",{betAmount:parseFloat(this.betAmount),firstCard:{card:this.cards[1].card,suit:this.cards[1].suit},currency:"RUB"}),this.setOnAnimate(!0),t&&!1===t.isTrusted?(this.trustedCount+=1,this.trustedCount>=5&&(this.emitScripts(),this.trustedCount=0)):this.trustedCount=0))},onPlay:function(t){this.$socket.client.emit("play",{direction:t})},onTakeWin:function(){this.$socket.client.emit("takeWin")},onResetCards:function(){this.resetGame(),this.$root.$emit("hilo.onSlideCardEvent"),this.$root.$emit("hilo.onSlideCard")},onResetBetAmount:function(){this.isNotOnType=!0,this.betAmount=h},onDivideBetAmount:function(){this.isNotOnType=!0,this.betAmount=parseFloat(this.betAmount)/2},onMultiplyBetAmount:function(){this.isNotOnType=!0,this.betAmount=2*parseFloat(this.betAmount)},onIncrementBetAmount:function(t){this.isNotOnType=!0,!0===this.betVariantsMode?this.betAmount=parseFloat(this.betAmount)+t:this.betAmount=parseFloat(this.betAmount)-t},onBetAmountInputBlur:function(){this.prepareBetAmount(!1)},onChangeBetVariantsMode:function(){this.betVariantsMode=!this.betVariantsMode},prepareBetAmount:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=String(this.betAmount);e&&e.length?(e=e.replace(",",".")).indexOf(".")===e.length-1&&t||"0"===e[e.length-1]&&t||(e=parseFloat(e),t||(e=this.$round(e)),e<=1?e=1:e>=1e3&&(e=1e3)):e=t?"":h,isNaN(e)&&(e=h),t||(e=Number(e).toFixed(2)),this.betAmount=e,t||this.setStoreBetAmount(parseFloat(e))},emitScripts:function(){if(!this.$cookies.get("clicks:hilo")){this.$cookies.set("clicks:hilo",!0,{maxAge:10800,path:"/"});try{this.$axios.$post("/api/ping/1",{game:"hilo"})}catch(t){}}}})},_=m,v=o(3),component=Object(v.a)(_,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"game-hilo__block-wrapper"},[t.isAuth?t._e():e("div",{staticClass:"game-hilo__block-login"},[e("div",{staticClass:"game-hilo__button",on:{click:function(e){return t.$modal.show("register",{typeModal:"authorization"})}}},[e("span",[t._v(t._s(t.$t("login")))])])]),t._v(" "),e("div",{staticClass:"game-hilo__block-header"},[e("div",{staticClass:"game-hilo__rate"},[e("div",{staticClass:"game-hilo__rate-title"},[t._v(t._s(t.$t("hilo.rateBlock.betAmount")))]),t._v(" "),e("div",{staticClass:"game-hilo__rate-block"},[e("div",{staticClass:"game-hilo__rate-input"},[e("div",{staticClass:"game-hilo__rate-input-buttons"},[e("div",{directives:[{name:"show",rawName:"v-show",value:1!==parseFloat(t.betAmount),expression:"parseFloat(betAmount) !== 1.00"}],staticClass:"game-hilo__rate-input-reset",class:{disabled:t.disabledForm},on:{click:function(e){t.isAuth&&!t.disabledForm&&t.onResetBetAmount()}}},[e("img",{attrs:{src:"/img/close.svg",alt:"Reset"}})]),t._v(" "),e("div",{staticClass:"game-hilo__rate-input-multiply",class:{disabled:t.disabledForm},on:{click:function(e){t.isAuth&&!t.disabledForm&&t.onMultiplyBetAmount()}}},[t._v("\n              x2\n            ")]),t._v(" "),e("div",{staticClass:"game-hilo__rate-input-divide",class:{disabled:t.disabledForm},on:{click:function(e){t.isAuth&&!t.disabledForm&&t.onDivideBetAmount()}}},[t._v("\n              1/2\n            ")])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.betAmount,expression:"betAmount"}],attrs:{type:"text",disabled:t.disabledForm},domProps:{value:t.betAmount},on:{blur:function(e){t.isAuth&&!t.disabledForm&&t.onBetAmountInputBlur()},input:function(e){e.target.composing||(t.betAmount=e.target.value)}}})]),t._v(" "),e("div",{staticClass:"game-hilo__rate-variants"},[e("div",{staticClass:"game-hilo__rate-variants-item game-hilo__rate-variants-item_symbol",class:{disabled:t.disabledForm},on:{click:function(e){t.isAuth&&!t.disabledForm&&t.onChangeBetVariantsMode()}}},[t._v("\n            "+t._s(!0===t.betVariantsMode?"+":"-")+"\n          ")]),t._v(" "),t._l(t.betVariants,(function(o,n){return e("div",{key:n,staticClass:"game-hilo__rate-variants-item",class:{disabled:t.disabledForm},on:{click:function(e){t.isAuth&&!t.disabledForm&&t.onIncrementBetAmount(o)}}},[t._v("\n            "+t._s(o)+"\n          ")])}))],2)]),t._v(" "),t.disabledForm&&!t.lastCardIsOpened?e("div",{staticClass:"game-hilo__rate-title"},[t._v(t._s(t.$t("hilo.rateBlock.nextCard"))+"\n      ")]):t._e(),t._v(" "),t.disabledForm&&!t.lastCardIsOpened?e("div",{staticClass:"game-hilo__rate-block game-hilo__rate-block_choice"},[e("div",{staticClass:"game-hilo__choice-button game-hilo__choice-button_upper",class:{"game-hilo__choice-button_disabled":t.onAnimate},on:{click:function(e){!t.onAnimate&&t.onPlay(t.gtDirection)}}},[e("strong",[t._v(t._s(t.gtRate)+"x")]),t._v(" "),"gte"===t.gtDirection?e("span",[t._v(t._s(t.$t("hilo.rateBlock.gte")))]):"gt"===t.gtDirection?e("span",[t._v(t._s(t.$t("hilo.rateBlock.gt")))]):e("span",[t._v(t._s(t.$t("hilo.rateBlock.eq")))]),t._v(" "),e("small",[t._v(t._s(t.gtChance)+"%")])]),t._v(" "),e("div",{staticClass:"game-hilo__choice-button game-hilo__choice-button_lower",class:{"game-hilo__choice-button_disabled":t.onAnimate},on:{click:function(e){!t.onAnimate&&t.onPlay(t.ltDirection)}}},[e("strong",[t._v(t._s(t.ltRate)+"x")]),t._v(" "),"lte"===t.ltDirection?e("span",[t._v(t._s(t.$t("hilo.rateBlock.lte")))]):"lt"===t.ltDirection?e("span",[t._v(t._s(t.$t("hilo.rateBlock.lt")))]):e("span",[t._v(t._s(t.$t("hilo.rateBlock.eq")))]),t._v(" "),e("small",[t._v(t._s(t.ltChance)+"%")])])]):t._e(),t._v(" "),e("div",{staticClass:"game-hilo__rate-block"},[t.lastCardIsOpened?e("div",{staticClass:"game-hilo__button game-hilo__button_simple",class:{disabled:t.onAnimate},on:{click:function(e){!t.onAnimate&&t.onResetCards()}}},[e("span",[t._v(t._s(t.$t("hilo.rateBlock.reset")))])]):t._e(),t._v(" "),t.lastCardIsOpened||t.disabledForm?t._e():e("div",{staticClass:"game-hilo__button",class:{disabled:t.onAnimate},on:{click:function(e){t.isAuth&&!t.disabledForm&&!t.onAnimate&&t.onStartGame(e)}}},[e("span",[t._v(t._s(t.$t("hilo.rateBlock.startGame")))])]),t._v(" "),!t.lastCardIsOpened&&t.disabledForm?e("div",{staticClass:"game-hilo__button",class:{disabled:!t.isAvailableTakeWin||t.onAnimate},on:{click:function(e){t.isAuth&&t.disabledForm&&t.isAvailableTakeWin&&!t.onAnimate&&t.onTakeWin(e)}}},[e("span",[t._v(t._s(t.$t("hilo.rateBlock.takeWin",{amount:t.$formatNumber(t.winAmount)})))])]):t._e()])])]),t._v(" "),e("div",{staticClass:"game-hilo__block-footer"},[e("div",{staticClass:"game-hilo__how-to-play-button",on:{click:function(e){return t.$modal.show("gameTutorial")}}},[e("span",[t._v(t._s(t.$t("hilo.rateBlock.howToPlay")))])])])])}),[],!1,null,null,null);e.a=component.exports},1626:function(t,e,o){"use strict";o.r(e);var n=o(0),r=(o(20),o(7),o(4),o(8),o(9),o(6),o(2),o(5),o(19),o(11)),l=o(1256),c=o(1257),d=o(1258),h=o(1259),m=o(1149),_=o(1147);function v(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function f(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?v(Object(o),!0).forEach((function(e){Object(n.a)(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):v(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var C={name:"GameHilo",head:function(){return{title:"".concat(this.$t("headers.hilo.title")," — ").concat(this.$t("headers.project")),meta:[{hid:"og:title",property:"og:title",content:"".concat(this.$t("headers.hilo.title")," — ").concat(this.$t("headers.project"))},{hid:"og:description",property:"og:description",content:this.$t("headers.hilo.description")},{hid:"description",name:"description",content:this.$t("headers.hilo.description")}]}},components:{HiloGameSound:c.a,HiloHistoryBlock:d.a,HiloGameBlock:l.a,HiloRateBlock:h.a,GameTutorialModal:m.a},mixins:[Object(_.a)("hilo")],mounted:function(){this.resetGame(),this.$joinRoom("hilo")},beforeDestroy:function(){this.$leaveRoom()},sockets:{gameInfo:function(data){this.changeGameState({data:data,action:"gameInfo"})},create:function(data){this.changeGameState({data:data,action:"create"}),this.setOnAnimate(!1)},play:function(data){var t=this;this.changeGameState({data:data,action:"play"}),"finished"!==data.game.status||data.winned?(this.$root.$emit("hilo.onWinCardEvent"),this.$root.$emit("hilo.onSlideCard"),setTimeout((function(){t.$root.$emit("hilo.onWinCard")}),400)):(this.$root.$emit("hilo.onLoseCardEvent"),this.$root.$emit("hilo.onSlideCard"),setTimeout((function(){t.$root.$emit("hilo.onLoseCard")}),400))},takeWin:function(data){this.changeGameState({data:data,action:"takeWin"}),data.winned&&this.$root.$emit("hilo.onWinGame")},newGame:function(data){this.addGameToHistory(data)},_error:function(data){var t,e=this,o=this.$t("hilo.errors.".concat(data.data));o==="hilo.errors.".concat(data.data)&&(o="System error, try later..."),this.showMsg(o,"danger"),setTimeout((t=data.data,function(){"balance_not_enough"!==t&&"need_one_deps"!==t||e.$modal.show("payinModal")}),1e3),this.disableForm(!1),this.setOnAnimate(!1)}},methods:f(f({},Object(r.b)({resetGame:"hilo/resetGame",changeGameState:"hilo/changeGameState",addGameToHistory:"hilo/addGameToHistory",disableForm:"hilo/disableForm",setOnAnimate:"hilo/setOnAnimate"})),{},{showMsg:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success";this.$store.dispatch("alertMessage/showAlertMessage",{message:t,alertMessageIcon:e,alertMessageClass:e})}})},y=C,w=o(3),component=Object(w.a)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"game-hilo"},[e("game-tutorial-modal",{attrs:{game:"hilo"}}),t._v(" "),e("div",{staticClass:"row align-items-stretch justify-content-center"},[e("div",{staticClass:"col-12 col-md-10 col-lg-5 col-xl-4 order-1 order-lg-0 mt-3 mt-lg-0"},[e("hilo-rate-block",{staticClass:"game-hilo__block"})],1),t._v(" "),e("div",{staticClass:"col-12 col-md-10 col-lg-7 col-xl-8 order-0 order-lg-1"},[e("hilo-game-block",{staticClass:"game-hilo__block game-hilo__block_game"})],1),t._v(" "),e("div",{staticClass:"col-12 mt-4 mt-md-5 order-2"},[e("hilo-history-block",{staticClass:"game-hilo__block"})],1)]),t._v(" "),e("hilo-game-sound")],1)}),[],!1,null,null,null);e.default=component.exports}}]);