(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-74fb59bb","chunk-2d0ab177"],{"0a4a":function(t,e,r){var a={"./theme_gold/images/icon_tab_favorite.png":"20a5"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="0a4a"},1497:function(t,e,r){t.exports=r.p+"img/bullhorn.ea83cca5.svg"},"1e4b":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t._self._c;return e("div",[e("home-carousel"),e("div",{staticClass:"main-max-width"},[e("div",{staticClass:"knews"},[e("div",{staticClass:"news-img"},[e("img",{attrs:{src:r("bb52")("./".concat(t.$store.getters.currentTheme,"/images/bullhorn.svg")),alt:""}})]),e("div",{ref:"marqueeContainer",staticClass:"news-body",on:{mouseenter:t.stopMarquee,mouseleave:t.startMarquee}},t._l(t.marqueeDetails,(function(r,a){return e("a",{key:a,style:t.marqueeStyle,domProps:{innerHTML:t._s(r.title)},on:{click:function(e){return t.goNewsPage(a+1)}}})})),0),e("a",{staticClass:"news-more",on:{click:function(e){return t.goNewsPage("")}}},[t._v(t._s(t.$t("Bao.news_more"))),e("i",{staticClass:"fa-solid fa-angle-right"})])]),t.isShowLobby?e("div",{staticClass:"game-quick-link game-filters-list lobby-filters-list"},[e("ul",{ref:"gameFilterContainer"},t._l(t.gameType,(function(r,a){return e("li",{key:r.id,class:{active:t.isGameTypeActive(r)},on:{click:function(e){return e.stopPropagation(),t.changeGameType(r)}}},[e("picture",[e("img",{attrs:{src:t.gameType[a].image_pc_icon,alt:t.gameType[a].name}})]),e("span",[t._v(t._s(t.gameType[a].name))])])})),0)]):!t.isShowLobby&&t.gameType&&0!==t.gameType.length?e("VueSlickCarousel",t._b({staticClass:"slick-list slick-div",scopedSlots:t._u([{key:"prevArrow",fn:function(){return[e("i",{staticClass:"jp-slick-arrow"},[e("img",{attrs:{src:r("3a73")("./".concat(t.$store.getters.currentTheme,"/images/home-arrow-left.png")),alt:""}})])]},proxy:!0},{key:"nextArrow",fn:function(){return[e("i",{staticClass:"jp-slick-arrow"},[e("img",{attrs:{src:r("4f15")("./".concat(t.$store.getters.currentTheme,"/images/home-arrow-right.png")),alt:""}})])]},proxy:!0}])},"VueSlickCarousel",t.slick_setting,!1),t._l(t.gameType,(function(r,a){return e("div",{key:a,staticClass:"games-type",on:{click:function(e){return e.stopPropagation(),t.changeGameType(r)}}},["theme_gold"===t.$store.getters.currentTheme&&t.isMobile()?e("img",{staticClass:"h5",attrs:{src:t.gameType[a].image_h5_icon,alt:t.gameType[a].name}}):e("img",{staticClass:"pc",attrs:{src:t.gameType[a].image_big,alt:t.gameType[a].name}})])})),0):t._e(),e("div",{ref:"gameFilter",staticClass:"game-quick-link"},[e("div",{staticClass:"lobby-search-bar"},[e("ul",[e("li",{on:{click:function(e){return t.showSearchProvider()}}},[e("i",[e("img",{attrs:{src:r("f34a")("./".concat(t.$store.getters.currentTheme,"/images/icon-filter.png")),alt:""}})]),e("span",[t._v(t._s(t.$t("Bao.provider_name")))])]),e("li",{staticClass:"search-box",on:{click:function(e){return t.showSearchGame()}}},[e("div",{staticClass:"slot-animation"},[e("span",[t._v(t._s(t.$t("Bao.search_games_text1")))]),e("span",{staticClass:"font-weight-bold work_hour font-xl",attrs:{id:"workHour"}},[t._v("0")]),e("span",[t._v(t._s(t.$t("Bao.search_games_text2")))])])])])]),t.$store.getters.gameCategory&&t.showGame&&"type"!==t.currentFilterObj.type&&"provider"!==t.currentFilterObj.type&&!this.$store.state.user.isGameFilterActive?e("VueSlickCarousel",t._b({key:t.carouselKey,ref:"slickCarousel",staticClass:"slider provider-container list",scopedSlots:t._u([{key:"prevArrow",fn:function(){return[e("i",{staticClass:"jp-slick-arrow"},[e("img",{attrs:{src:r("3a73")("./".concat(t.$store.getters.currentTheme,"/images/home-arrow-left.png")),alt:""}})])]},proxy:!0},{key:"nextArrow",fn:function(){return[e("i",{staticClass:"jp-slick-arrow"},[e("img",{attrs:{src:r("4f15")("./".concat(t.$store.getters.currentTheme,"/images/home-arrow-right.png")),alt:""}})])]},proxy:!0}],null,!1,2013203236)},"VueSlickCarousel",t.slick_setting_2,!1),t._l(t.showGame,(function(r,a){return e("div",{key:a,ref:"gameCategory",refInFor:!0,class:{active:t.isGameCategoryActive(r)},on:{click:function(e){return t.changeGameCategory(r)}}},[e("a",[e("img",{attrs:{src:r.image_banner,alt:""}})])])})),0):t._e(),e("div",{staticClass:"game-card-background"},[e("div",{staticClass:"game-card-list"},t._l(t.displayedGames.slice(0,t.totalDisplayedGames),(function(r){return e("div",{key:r.id,staticClass:"game-card",class:{active:r.showDetail}},[e("div",{staticClass:"game-card-name"},[r.brand_game_category_id.includes("NEW")?e("div",{staticClass:"game-info-icon-new"}):t._e(),r.brand_game_category_id.includes("HOT")?e("div",{staticClass:"game-info-icon-hot active"}):t._e(),e("div",{staticClass:"game-tx"},[e("span",{staticClass:"game-name",on:{click:function(e){return t.handleLaunchGame(r)}}},[t._v(t._s(r.name))]),e("span",{staticClass:"game-provider",on:{click:function(e){return t.handleLaunchGame(r)}}},[t._v(t._s(r.game_provider_name))])]),e("div",{staticClass:"game-info"},[e("i",{staticClass:"game-info-icon",on:{click:function(e){return t.showDetail(r)}}}),t.$store.getters.token?e("i",{staticClass:"game-info-icon-heart",class:{active:r.isFavorite},on:{click:function(e){return e.stopPropagation(),t.handleFavoriteGame(r)}}}):t._e(),r.brand_game_category_id.includes("NO BONUS")?e("i",{staticClass:"game-info-icon-nobonus"}):t._e()])]),t.$store.getters.token?e("div",{staticClass:"game-card-image",on:{click:function(e){return t.handleLaunchGame(r)}}},[e("d-img",{attrs:{src:r,alt:r.name}})],1):e("div",{staticClass:"game-card-image"},[e("picture",[e("div",{staticClass:"demoplay-frame"},[e("d-img",{attrs:{src:r,alt:r.name}}),e("div",{staticClass:"demoplay-box"},[e("button",{staticClass:"btn btn-demoplay",on:{click:t.openLoginModal}},[t._v(t._s(t.$t("Bao.play_game")))]),r.demo_url?e("button",{staticClass:"btn btn-gotoplay",on:{click:function(e){return t.openDemoGame(r)}}},[t._v(t._s(t.$t("Bao.demo")))]):t._e()])],1)])]),e("div",{staticClass:"game-card-info"},[e("div",{staticClass:"close",on:{click:function(e){return t.closeDetail(r)}}},[t._v("\n                ✕\n              ")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.rtp,expression:"game.rtp!==-1"}]},[t._v(t._s(t.$t("Bao.rtp"))+"：")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.rtp,expression:"game.rtp!==-1"}]},[t._v(t._s((100*r.rtp).toFixed(2))+"%")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.yesterday_rtp,expression:"game.yesterday_rtp!==-1"}]},[t._v(t._s(t.$t("Bao.rtp_yesterday"))+"：")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.yesterday_rtp,expression:"game.yesterday_rtp!==-1"}]},[t._v(t._s(r.yesterday_rtp)+"%")]),e("span",[t._v(t._s(t.$t("Bao.bet_range"))+"：")]),e("span",[t._v(t._s(t.$store.state.brand.currency)+t._s(r.bet_amount_range.split("~")[0])+" - "+t._s(t.$store.state.brand.currency)+t._s(r.bet_amount_range.split("~")[1]))]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.max_odds,expression:"game.max_odds!==-1"}]},[t._v(t._s(t.$t("Bao.max_odds"))+"：")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.max_odds,expression:"game.max_odds!==-1"}]},[t._v(t._s(r.max_odds)+" "+t._s(t.$t("Bao.max_odds_multiply")))]),e("button",{on:{click:function(e){return t.handleLaunchGame(r)}}},[e("span",[t._v(t._s(t.$t("Bao.play_game_now")))])])])])})),0),e("div",{staticClass:"game-more"},[e("button",{directives:[{name:"show",rawName:"v-show",value:t.displayedGames.length>t.page.size+20*(t.page.num-1),expression:"displayedGames.length > page.size + (page.num - 1) * 20"}],staticClass:"button-style-6",on:{click:t.nextPage}},[e("span",[t._v(t._s(t.$t("Bao.game_more")))])])])])],1),e("div",{staticClass:"new-events"},[e("div",{staticClass:"h4"},[t._v("\n        "+t._s(t.$t("Bao.new_event"))+"\n      ")]),e("ul",t._l(t.$store.state.game.gameCategory,(function(r,a){return e("li",{directives:[{name:"show",rawName:"v-show",value:r.enable_banner,expression:"event.enable_banner"}],key:a},[e("img",{attrs:{src:r.image_banner_app,alt:""},on:{click:function(e){return t.handleClick(r.banner_url)}}}),e("span",[t._v(t._s(r.banner_name))])])})),0)])],1),e("search-provider",{ref:"searchProvider",on:{"change-provider":t.changeGameProvider}}),e("search-game",{ref:"searchGame",attrs:{"all-game":t.allGame}}),e("iframe-game",{directives:[{name:"show",rawName:"v-show",value:t.gameUrlFromStore,expression:"gameUrlFromStore"}],attrs:{"all-game":t.allGame}}),e("performance-modal",{attrs:{"is-active":t.gameModalOpen}})],1)},i=[],n=r("a7ab"),s=r.n(n),o=(r("7b8d"),r("6a2c"),r("89cb")),c=r("c24f"),l=r("9add"),u=r("3de1"),m=r("8a4c"),h=r("aaf2"),f=r("2f3a"),d=r("5087"),p=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"layout-wrapper"}},[e("div",{attrs:{id:"layout-body"}},[e("div",{staticClass:"game-component"},[e("div",{staticClass:"frame-grid"},[e("div",{staticClass:"grid-header"}),e("div",{staticClass:"grid-content"},[e("div",{attrs:{id:"game-wrapper"}},[e("iframe",{ref:"gameIframe",attrs:{id:"iframebox",src:t.gameUrlFromStore}})])]),e("div",{staticClass:"grid-footer"},[e("div",{staticClass:"game-menu"},[e("div",{staticClass:"game-buttons"},[e("div",{staticClass:"game-menu-item gm-btn-1 link-item",on:{click:function(e){return t.toggleDrawer("wallet")}}},[e("div",{staticClass:"game-menu-item-icon"},[e("img",{attrs:{src:r("431f")("./".concat(t.$store.getters.currentTheme,"/images/wallet.png")),alt:""}})]),e("div",{staticClass:"game-menu-item-text"},[e("span",{staticClass:"btn-text"},[t._v(t._s(t.$t("Bao.menu")))])]),t.isWalletDrawerOpen?e("div",{staticClass:"drawer"},[e("div",{staticClass:"drawer-frame"},[e("div",{staticClass:"drawer-grid amount-box"},[e("div",{staticClass:"drawer-wallet-title"},[t._v("\n                        "+t._s(t.$t("Bao.main_gold"))+"\n                      ")]),e("hr",{staticClass:"seperation"}),e("div",{staticClass:"value-box"},[t._v("\n                        "+t._s(t.$store.state.brand.currency)+t._s(t._f("numberFormat")(t.$store.getters.mainGold))+"\n                      ")])]),e("div",{staticClass:"drawer-grid bonus-box"},[e("div",{staticClass:"drawer-wallet-title"},[t._v("\n                        "+t._s(t.$t("Bao.bonus_gold"))+"\n                      ")]),e("hr",{staticClass:"seperation"}),e("div",{staticClass:"value-box"},[t._v("\n                        "+t._s(t.$store.state.brand.currency)+t._s(t._f("numberFormat")(t.$store.getters.bonusGold))+"\n                      ")])]),t._m(0)])]):t._e()]),e("div",{staticClass:"game-menu-item gm-btn-2 link-item"},[e("div",{staticClass:"game-menu-item-icon",on:{click:function(e){return t.toggleDrawer("history")}}},[e("img",{attrs:{src:r("d797")("./".concat(t.$store.getters.currentTheme,"/images/history.png")),alt:""}})]),e("div",{staticClass:"game-menu-item-text",on:{click:function(e){return t.toggleDrawer("history")}}},[e("span",{staticClass:"btn-text"},[t._v(t._s(t.$t("Bao.record")))])]),t.isHistoryDrawerOpen?e("div",{staticClass:"drawer"},[e("div",{staticClass:"drawer-frame"},[e("div",{staticClass:"gameframe-card-background"},[e("div",{staticClass:"iframe-game-arrow side-previous",on:{click:function(e){return t.scrollGameCardList("left")}}},[t._v("\n                        ❮\n                      ")]),e("div",{staticClass:"iframe-game-arrow side-next",on:{click:function(e){return t.scrollGameCardList("right")}}},[t._v("\n                        ❯\n                      ")]),e("div",{staticClass:"iframe-game-arrow drawer-close",on:{click:function(e){t.isHistoryDrawerOpen=!1}}},[t._v("\n                        ✕\n                      ")]),e("div",{staticClass:"drawer-2-title"},[e("span",{staticClass:"title-text"},[t._v(t._s(t.$t("Bao.record")))])]),e("div",{ref:"gameCardList",staticClass:"gameframe-card-list"},t._l(t.filterResult.slice(0,40),(function(r,a){return e("div",{key:a,staticClass:"gameframe-card",class:{active:r.showDetail}},[e("div",{staticClass:"gameframe-card-image",on:{click:function(e){return t.handleLaunchGame(r)}}},[e("picture",[e("img",{attrs:{src:r.image,alt:"Game Record Images"}})])]),e("i",{staticClass:"game-info-icon"}),e("div",{staticClass:"gameframe-card-name"},[e("i",{staticClass:"game-info-icon",on:{click:function(e){return t.triggerDetail(r)}}}),e("span",{staticClass:"game-name",on:{click:function(e){return t.handleLaunchGame(r)}}},[t._v(t._s(r.name))]),e("span",{staticClass:"game-provider"},[t._v(t._s(r.game_provider_name))])]),e("div",{staticClass:"gameframe-card-info"},[e("div",{staticClass:"close",on:{click:function(e){return t.triggerDetail(r)}}},[t._v("\n                              ✕\n                            ")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.rtp,expression:"game.rtp!==-1"}]},[t._v(t._s(t.$t("Bao.rtp"))+"：")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.rtp,expression:"game.rtp!==-1"}]},[t._v(t._s((100*r.rtp).toFixed(2))+"%")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.yesterday_rtp,expression:"game.yesterday_rtp!==-1"}]},[t._v(t._s(t.$t("Bao.rtp_yesterday"))+"：")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.yesterday_rtp,expression:"game.yesterday_rtp!==-1"}]},[t._v(t._s(r.yesterday_rtp)+"%")]),e("span",[t._v(t._s(t.$t("Bao.bet_range"))+"：")]),e("span",[t._v(t._s(t.$store.state.brand.currency)+t._s(r.bet_amount_range.split("~")[0])+" - "+t._s(t.$store.state.brand.currency)+t._s(r.bet_amount_range.split("~")[1]))]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.max_odds,expression:"game.max_odds!==-1"}]},[t._v(t._s(t.$t("Bao.max_odds"))+"：")]),e("span",{directives:[{name:"show",rawName:"v-show",value:-1!==r.max_odds,expression:"game.max_odds!==-1"}]},[t._v(t._s(r.max_odds))]),e("button",{on:{click:function(e){return t.handleLaunchGame(r)}}},[e("span",[t._v(t._s(t.$t("Bao.play_game_now")))])])])])})),0)])])]):t._e()]),e("div",{staticClass:"game-menu-item gm-btn-3 link-item",on:{click:function(e){return t.toggleDrawer("deposit")}}},[e("div",{staticClass:"game-menu-item-icon"},[e("img",{attrs:{src:r("9180")("./".concat(t.$store.getters.currentTheme,"/images/top_up.png")),alt:""}})]),e("div",{staticClass:"game-menu-item-text"},[e("span",{staticClass:"btn-text"},[t._v(t._s(t.$t("Bao.deposit")))])]),t.isDepositDrawerOpen?e("div",{staticClass:"drawer"},[e("div",{staticClass:"drawer-frame"},[e("div",{staticClass:"drawer-deposit"},[e("h6",{staticClass:"deposit-subtitle"},[t._v("\n                        "+t._s(t.$t("Bao.deposit"))+"\n                      ")])]),e("div",{staticClass:"drawer-deposit"},[e("p",{staticClass:"deposit-text"},[t._v("\n                        "+t._s(t.$t("Bao.deposit_quick"))+"\n                      ")])]),e("div",{staticClass:"drawer-deposit w-100",on:{click:t.handleDepositClick}},[e("button",{staticClass:"drawer-deposit-btn btn-deposit"},[t._v("\n                        "+t._s(t.$t("Bao.deposit_action"))+"\n                      ")])]),e("div",{staticClass:"drawer-deposit w-100"},[e("button",{staticClass:"drawer-deposit-btn btn-closed"},[t._v("\n                        "+t._s(t.$t("Bao.close"))+"\n                      ")])])])]):t._e()]),e("div",{staticClass:"game-menu-item link-item",on:{click:function(e){return e.stopPropagation(),t.handleFavoriteGame(t.$store.state.app.currentGame)}}},[e("div",{staticClass:"game-menu-item-icon",class:{active:t.$store.state.app.currentGame.isFavorite}},[e("img",{attrs:{src:r("65c1")("./".concat(t.$store.getters.currentTheme,"/images/collect.png")),alt:""}})]),e("div",{staticClass:"game-menu-item-text"},[t.$store.state.app.currentGame.isFavorite?e("span",{staticClass:"btn-text"},[t._v(" "+t._s(t.$t("Bao.remove_fav")))]):t._e(),t.$store.state.app.currentGame.isFavorite?t._e():e("span",{staticClass:"btn-text"},[t._v(" "+t._s(t.$t("Bao.add_fav")))])])]),e("div",{staticClass:"game-menu-item link-item",on:{click:t.clearGameUrl}},[e("div",{staticClass:"game-menu-item-icon"},[e("img",{attrs:{src:r("ec0d")("./".concat(t.$store.getters.currentTheme,"/images/leave.png")),alt:""}})]),e("div",{staticClass:"game-menu-item-text"},[e("span",{staticClass:"btn-text"},[t._v(t._s(t.$t("Bao.exit")))])])])])])])])])])])},v=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"drawer-grid drawer-close-btn"},[e("div",{staticClass:"drawer-wallet-close"},[e("div",{staticClass:"dw-btn-close",attrs:{href:"javascript:;"}},[t._v("\n                          ✕\n                        ")])])])}],g=r("2f62");function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function _(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof g?e:g,s=Object.create(n.prototype),o=new j(a||[]);return i(s,"_invoke",{value:k(t,r,o)}),s}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function g(){}function w(){}function b(){}var T={};l(T,s,(function(){return this}));var O=Object.getPrototypeOf,C=O&&O(O(P([])));C&&C!==r&&a.call(C,s)&&(T=C);var S=b.prototype=g.prototype=Object.create(T);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,n,s,o){var c=m(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==y(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,o)}),(function(t){r("throw",t,s,o)})):e.resolve(u).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,o)}))}o(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function k(e,r,a){var i=h;return function(n,s){if(i===d)throw new Error("Generator is already running");if(i===p){if("throw"===n)throw s;return{value:t,done:!0}}for(a.method=n,a.arg=s;;){var o=a.delegate;if(o){var c=G(o,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===h)throw i=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=d;var l=m(e,r,a);if("normal"===l.type){if(i=a.done?p:f,l.arg===v)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=p,a.method="throw",a.arg=l.arg)}}}function G(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,G(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var n=m(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var s=n.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function P(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(y(e)+" is not iterable")}return w.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:w,configurable:!0}),w.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(x.prototype),l(x.prototype,o,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var s=new x(u(t,r,a,i),n);return e.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},E(S),l(S,c,"Generator"),l(S,s,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(a,i){return o.type="throw",o.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=a.call(s,"catchLoc"),l=a.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var s=n?n.completion:{};return s.type=t,s.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;L(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:P(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),v}},e}function w(t,e,r,a,i,n,s){try{var o=t[n](s),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(a,i)}function b(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function s(t){w(n,a,i,s,o,"next",t)}function o(t){w(n,a,i,s,o,"throw",t)}s(void 0)}))}}function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?T(Object(r),!0).forEach((function(e){C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function C(t,e,r){return e=S(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){var e=E(t,"string");return"symbol"==y(e)?e:String(e)}function E(t,e){if("object"!=y(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=y(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var x={name:"GameModal",props:{allGame:{type:Array,default:function(){return[]}}},data:function(){return{favoriteGames:[],showPopup:!1,isDrawerOpen:!1,isWalletDrawerOpen:!1,isHistoryDrawerOpen:!1,isDepositDrawerOpen:!1,showDetail:!1}},computed:O(O({},Object(g["b"])(["gameIdsArray"])),{},{gameIdSet:function(){return new Set(this.gameIdsArray.map((function(t){return t.game_id})))},gameUrlFromStore:function(){return this.$store.state.app.gameUrl},filterResult:function(){return 0===this.gameIdSet.size?this.allGame:this.$store.state.game.gameRecords}}),watch:{gameUrlFromStore:function(t,e){if(t!==e){var r=document.querySelector("header");t?(r.style.display="none",this.disableScrolling()):(this.enableScrolling(),r.style.display=window.innerWidth<992?"block":"none")}},"$store.state.app.gameUrl":function(t){t||Object(m["a"])(this.$store.state.app.inGameId)}},mounted:function(){window.addEventListener("beforeunload",this.clearGameUrl)},beforeDestroy:function(){window.removeEventListener("beforeunload",this.clearGameUrl)},methods:{handleFavoriteGame:function(){var t=b(_().mark((function t(e){var r,a;return _().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={type:"game",data:JSON.stringify([{brand_id:this.$store.state.user.goldInfo.brand_id,game_id:e.id}])},t.prev=1,!e.isFavorite){t.next=8;break}return t.next=5,Object(c["p"])(r);case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,Object(c["b"])(r);case 10:t.t0=t.sent;case 11:a=t.t0,this.favoriteGames=a.data.data.game,this.updateGameListLocally(e,!e.isFavorite),t.next=19;break;case 16:t.prev=16,t.t1=t["catch"](1),console.error(t.t1);case 19:case"end":return t.stop()}}),t,this,[[1,16]])})));function e(e){return t.apply(this,arguments)}return e}(),showToast:function(t,e){var r=this,a=e?"".concat(t.name," ").concat(this.$t("Bao.favorite")):"".concat(t.name," ").concat(this.$t("Bao.favorite_remove"));Object(u["s"])(a),setTimeout((function(){r.$store.commit("SET_TOAST_MESSAGE",null)}),3e3)},updateGameListLocally:function(t,e){this.showToast(t,e),this.updateFavoriteStatus(t,e),this.$store.commit("SET_FAVORITE_GAME",this.favoriteGames)},updateFavoriteStatus:function(t,e){var r=O(O({},t),{},{isFavorite:e});this.$store.commit("SET_CURRENT_GAME",r)},triggerDetail:function(t){this.$set(t,"showDetail",!t.showDetail)},handleLaunchGame:function(){var t=b(_().mark((function t(e){return _().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(m["b"])("game",e);case 2:this.isWalletDrawerOpen=!1,this.isHistoryDrawerOpen=!1,this.isDepositDrawerOpen=!1;case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),scrollGameCardList:function(t){var e=this.$refs.gameCardList,r=260;"right"===t?(e.scrollTop-=10,e.scrollLeft+=r):(e.scrollTop+=10,e.scrollLeft-=r)},clearGameUrl:function(){this.$store.commit("SET_GAME_URL",null),this.$store.state.app.tempGameUrl="",this.isWalletDrawerOpen=!1,this.isHistoryDrawerOpen=!1,this.isDepositDrawerOpen=!1},handleDepositClick:function(){this.clearGameUrl(),this.$router.push("/deposit")},toggleDrawer:function(t){"wallet"===t?(this.isWalletDrawerOpen=!this.isWalletDrawerOpen,this.isHistoryDrawerOpen=!1,this.isDepositDrawerOpen=!1):"history"===t?(this.isHistoryDrawerOpen=!this.isHistoryDrawerOpen,this.isWalletDrawerOpen=!1,this.isDepositDrawerOpen=!1):"deposit"===t&&(this.isDepositDrawerOpen=!this.isDepositDrawerOpen,this.isWalletDrawerOpen=!1,this.isHistoryDrawerOpen=!1)},disableScrolling:function(){document.body.style.overflow="hidden"},enableScrolling:function(){document.body.style.overflow=""}}},k=x,G=r("2877"),$=Object(G["a"])(k,p,v,!1,null,"0a41ea3e",null),L=$.exports,j=function(){var t=this,e=t._self._c;return e("div",[t.$store.state.brand.showProvider?e("div",{staticClass:"popup-wrap popup-lobby",class:{active:t.$store.state.brand.showProvider}},[e("div",{staticClass:"popup-box"},[e("a",{staticClass:"popup-close",on:{click:t.hide}}),e("div",{staticClass:"content"},[e("h3",[t._v(t._s(t.$t("Bao.provider")))]),e("div",{staticClass:"search-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchText,expression:"searchText"}],attrs:{type:"text",placeholder:t.$t("Bao.find_provider")},domProps:{value:t.searchText},on:{input:function(e){e.target.composing||(t.searchText=e.target.value)}}})]),e("div",{staticClass:"search-result"},t._l(t.filterResult,(function(r,a){return e("div",{key:a,staticClass:"search-game-info",class:{active:r.id===t.selectedProvider.id},on:{click:function(e){return t.apply(r)}}},[e("i",[e("picture",[e("img",{attrs:{src:r.image,alt:""}})])]),e("div",{staticClass:"search-game-text"},[e("span",[t._v(t._s(r.name))])])])})),0)])])]):t._e(),t.$store.state.brand.showProvider?e("div",{staticClass:"mobile-lobby"},[e("div",{staticClass:"content"},[e("div",{staticClass:"search-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchText,expression:"searchText"}],attrs:{type:"text",placeholder:t.$t("Bao.find_provider")},domProps:{value:t.searchText},on:{input:function(e){e.target.composing||(t.searchText=e.target.value)}}})]),e("div",{staticClass:"search-result"},t._l(t.filterResult,(function(r,a){return e("div",{key:a,staticClass:"search-game-info",class:{active:r.id===t.selectedProvider.id},on:{click:function(e){return t.apply(r)}}},[e("i",[e("picture",[e("img",{attrs:{src:r.image,alt:""}})])]),e("div",{staticClass:"search-game-text"},[e("span",[t._v(t._s(r.name))])])])})),0)])]):t._e()])},P=[],F={data:function(){return{searchText:"",selectedProvider:{}}},computed:{filterResult:function(){var t=this;return""===this.searchText?this.$store.getters.gameProvider:this.$store.getters.gameProvider.filter((function(e){var r=e.name.toLowerCase(),a=t.searchText.toLowerCase();return r.includes(a)}))}},watch:{"$store.state.brand.showProvider":function(t){t||(this.searchText="")}},methods:{show:function(){this.$store.commit("SET_SHOW_PROVIDER",!0)},apply:function(t){this.selectedProvider=t,this.$emit("change-provider",this.selectedProvider),this.selectedProvider={},this.searchText="",this.$store.commit("SET_SHOW_PROVIDER",!1)},hide:function(){this.$store.commit("SET_SHOW_PROVIDER",!1),this.selectedProvider={},this.searchText="",this.errors.clear()},clearSearchText:function(){this.searchText=""}}},A=F,D=(r("29f8"),Object(G["a"])(A,j,P,!1,null,"05b6f0d2",null)),R=D.exports,N=function(){var t=this,e=t._self._c;return e("div",[t.$store.state.brand.showSearch?e("div",{staticClass:"popup-wrap popup-lobby",class:{active:t.$store.state.brand.showSearch}},[e("div",{staticClass:"popup-box"},[e("a",{staticClass:"popup-close",on:{click:t.hide}}),e("div",{staticClass:"content pt-0"},[e("div",{staticClass:"fix_section"},[e("h3",[t._v(t._s(t.$t("Bao.search_game")))]),e("div",{staticClass:"search-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchText,expression:"searchText"}],attrs:{type:"text",placeholder:t.$t("Bao.find_game")},domProps:{value:t.searchText},on:{input:function(e){e.target.composing||(t.searchText=e.target.value)}}})]),e("p",{staticClass:"trending_now"},[t._v("\n            "+t._s(t.$t("Bao.trending_now"))+"\n          ")]),e("div",{staticClass:"trending-tags"},t._l(t.$store.getters.searchKeyWord.game,(function(r,a){return e("button",{key:a,staticClass:"button-style-11",on:{click:function(e){return t.setSearchText(r)}}},[e("span",[t._v(t._s(r))])])})),0)]),e("p",{ref:"searchGameOnPC"},[t._v("\n          "+t._s(t.$t("Bao.recommend"))+"\n        ")]),e("div",{staticClass:"search-result"},t._l(""===t.searchText?t.filterResult.slice(0,40):t.filterResult,(function(r,a){return e("div",{key:a,staticClass:"search-game-info",class:{active:r.id===t.selectedGame.id}},[e("i",[e("picture",[e("img",{attrs:{src:r.image,alt:"Images of Search Games"}})])]),e("div",{staticClass:"search-game-text",on:{click:function(e){return t.apply(r)}}},[e("span",[t._v(t._s(r.name))]),e("span",{staticClass:"h6"})])])})),0)])])]):t._e(),t.$store.state.brand.showSearch?e("div",{staticClass:"mobile-lobby"},[e("div",{staticClass:"content"},[e("div",{staticClass:"fix_section"},[e("div",{staticClass:"search-input"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.searchText,expression:"searchText"}],attrs:{type:"text",placeholder:t.$t("Bao.find_game")},domProps:{value:t.searchText},on:{input:function(e){e.target.composing||(t.searchText=e.target.value)}}})]),e("p",[t._v(t._s(t.$t("Bao.trending_now")))]),e("div",{staticClass:"trending-tags"},t._l(t.$store.getters.searchKeyWord.game,(function(r,a){return e("button",{key:a,staticClass:"button-style-11",on:{click:function(e){return t.setSearchText(r)}}},[e("span",[t._v(t._s(r))])])})),0)]),e("p",{ref:"searchGame"},[t._v("\n        "+t._s(t.$t("Bao.recommend"))+"\n      ")]),e("div",{staticClass:"search-result"},t._l(""===t.searchText?t.filterResult.slice(0,40):t.filterResult,(function(r,a){return e("div",{key:a,staticClass:"search-game-info",class:{active:r.id===t.selectedGame.id}},[e("i",[e("picture",[e("img",{attrs:{src:r.image,alt:"Flowers"}})])]),e("div",{staticClass:"search-game-text",on:{click:function(e){return t.apply(r)}}},[e("span",[t._v(t._s(r.name))]),e("span",{staticClass:"h6"})])])})),0)])]):t._e()])},I=[];function M(t){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(t)}function B(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?B(Object(r),!0).forEach((function(e){H(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function H(t,e,r){return e=V(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function V(t){var e=W(t,"string");return"symbol"==M(e)?e:String(e)}function W(t,e){if("object"!=M(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=M(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var q={props:{allGame:{type:Array,default:function(){return[]}}},data:function(){return{showSearch:!1,searchText:"",selectedGame:{},gamePlayHistory:[]}},computed:U(U({},Object(g["b"])(["gameIdsArray"])),{},{gameIdSet:function(){return new Set(this.gameIdsArray.map((function(t){return t.game_id})))},gameIndexMap:function(){return new Map(this.gameIdsArray.map((function(t,e){return[t.game_id,e]})))},filterResult:function(){if(""===this.searchText)return 0===this.gameIdSet.size?this.allGame:this.gamePlayHistory;var t=this.searchText.toLowerCase();return this.allGame.filter((function(e){var r=e.name.toLowerCase();return r.includes(t)}))}}),watch:{"$store.state.brand.showSearch":function(t){t||(this.searchText=""),this.selectedGame={}},"$store.state.app.gameIdsArray":function(t){t&&t.length&&this.fetchGameList()}},created:function(){this.fetchGameList()},methods:{filterAndSortGames:function(){var t=this,e=this.allGame.filter((function(e){return t.gameIdSet.has(e.id)}));return e.sort((function(e,r){return t.gameIndexMap.get(r.id)-t.gameIndexMap.get(e.id)}))},fetchGameList:function(){var t=this,e=Array.from(this.gameIdSet);Object(o["e"])({game_id_list_string:JSON.stringify(e)}).then((function(e){t.gamePlayHistory=e.data.data,t.$store.commit("SET_GAME_RECORD",t.gamePlayHistory)})).catch((function(t){console.log(t)}))},show:function(){this.showSearch=!0,this.$store.commit("SET_SHOW_RESEARCH",!0)},apply:function(t){Object(m["b"])("game",t),this.showSearch=!1,this.$store.commit("SET_SHOW_RESEARCH",!1),this.searchText="",this.selectedGame={}},setSearchText:function(t){this.isMobile()?this.smoothBehavior("searchGame"):this.smoothBehavior("searchGameOnPC"),this.searchText=t},hide:function(){this.showSearch=!1,this.$store.commit("SET_SHOW_RESEARCH",!1),this.selectedGame={},this.searchText=""},clearSearchText:function(){this.searchText=""},isMobile:function(){return Object(u["b"])()},smoothBehavior:function(t){var e=this;this.$nextTick((function(){e.$refs[t].scrollIntoView({behavior:"smooth",block:"center"})}))}}},Y=q,z=Object(G["a"])(Y,N,I,!1,null,"e9300262",null),J=z.exports,X=r("1a23");function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function Q(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Q=function(){return e};var t,e={},r=Object.prototype,a=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},n="function"==typeof Symbol?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var n=e&&e.prototype instanceof g?e:g,s=Object.create(n.prototype),o=new $(a||[]);return i(s,"_invoke",{value:E(t,r,o)}),s}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function g(){}function y(){}function _(){}var w={};l(w,s,(function(){return this}));var b=Object.getPrototypeOf,T=b&&b(b(L([])));T&&T!==r&&a.call(T,s)&&(w=T);var O=_.prototype=g.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(i,n,s,o){var c=m(t[i],t,n);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==K(u)&&a.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,s,o)}),(function(t){r("throw",t,s,o)})):e.resolve(u).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,o)}))}o(c.arg)}var n;i(this,"_invoke",{value:function(t,a){function i(){return new e((function(e,i){r(t,a,e,i)}))}return n=n?n.then(i,i):i()}})}function E(e,r,a){var i=h;return function(n,s){if(i===d)throw new Error("Generator is already running");if(i===p){if("throw"===n)throw s;return{value:t,done:!0}}for(a.method=n,a.arg=s;;){var o=a.delegate;if(o){var c=x(o,a);if(c){if(c===v)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(i===h)throw i=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i=d;var l=m(e,r,a);if("normal"===l.type){if(i=a.done?p:f,l.arg===v)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(i=p,a.method="throw",a.arg=l.arg)}}}function x(e,r){var a=r.method,i=e.iterator[a];if(i===t)return r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),v;var n=m(i,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var s=n.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return n.next=n}}throw new TypeError(K(e)+" is not iterable")}return y.prototype=_,i(O,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:y,configurable:!0}),y.displayName=l(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,l(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},C(S.prototype),l(S.prototype,o,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,a,i,n){void 0===n&&(n=Promise);var s=new S(u(t,r,a,i),n);return e.isGeneratorFunction(r)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},C(O),l(O,c,"Generator"),l(O,s,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var a in e)r.push(a);return r.reverse(),function t(){for(;r.length;){var a=r.pop();if(a in e)return t.value=a,t.done=!1,t}return t.done=!0,t}},e.values=L,$.prototype={constructor:$,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(G),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(a,i){return o.type="throw",o.arg=e,r.next=a,i&&(r.method="next",r.arg=t),!!i}for(var n=this.tryEntries.length-1;n>=0;--n){var s=this.tryEntries[n],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=a.call(s,"catchLoc"),l=a.call(s,"finallyLoc");if(c&&l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var n=i;break}}n&&("break"===t||"continue"===t)&&n.tryLoc<=e&&e<=n.finallyLoc&&(n=null);var s=n?n.completion:{};return s.type=t,s.arg=e,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),G(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var a=r.completion;if("throw"===a.type){var i=a.arg;G(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:L(e),resultName:r,nextLoc:a},"next"===this.method&&(this.arg=t),v}},e}function Z(t,e,r,a,i,n,s){try{var o=t[n](s),c=o.value}catch(l){return void r(l)}o.done?e(c):Promise.resolve(c).then(a,i)}function tt(t){return function(){var e=this,r=arguments;return new Promise((function(a,i){var n=t.apply(e,r);function s(t){Z(n,a,i,s,o,"next",t)}function o(t){Z(n,a,i,s,o,"throw",t)}s(void 0)}))}}function et(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function rt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?et(Object(r),!0).forEach((function(e){at(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):et(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function at(t,e,r){return e=it(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function it(t){var e=nt(t,"string");return"symbol"==K(e)?e:String(e)}function nt(t,e){if("object"!=K(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!=K(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function st(t){return ut(t)||lt(t)||ct(t)||ot()}function ot(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ct(t,e){if(t){if("string"===typeof t)return mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mt(t,e):void 0}}function lt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function ut(t){if(Array.isArray(t))return mt(t)}function mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,a=new Array(e);r<e;r++)a[r]=t[r];return a}var ht={name:"Index",components:{VueSlickCarousel:s.a,performanceModal:d["a"],dImg:h["a"],homeCarousel:f["a"],searchProvider:R,searchGame:J,iframeGame:L},data:function(){return{allGame:[],showOffGameBets:[],favoriteGames:[],favoriteAll:[],selectedTab:null,currentFilterObj:{type:"category",value:"58"},games:[],curGameNum:0,marqueeDetails:[],positionX:100,speed:.8,isRunning:!1,animationFrameId:null,page:{num:1,total:0,size:10,incrementSize:20},initGetGames:!1,nowCategory:{},isFirstRender:!0,workHourVal:0,carouselKey:0,slick_setting:{draggable:!0,infinite:!0,dots:!1,initialSlide:0,focusOnSelect:!0,slidesToShow:4,lazyLoad:"ondemand",responsive:[{breakpoint:1800,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:1500,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:1100,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:1}}]},slick_setting_2:{draggable:!0,infinite:!0,dots:!1,initialSlide:0,focusOnSelect:!1,slidesToShow:8,lazyLoad:"ondemand",responsive:[{breakpoint:1800,settings:{slidesToShow:8,slidesToScroll:1}},{breakpoint:1440,settings:{slidesToShow:6,slidesToScroll:1}},{breakpoint:1200,settings:{slidesToShow:5,slidesToScroll:1}},{breakpoint:800,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:3,slidesToScroll:1}}]}}},computed:{showGame:function(){if(this.$store.getters.token&&this.favoriteAll.length>0){var t={image_banner:r("0a4a")("./".concat(this.$store.getters.currentTheme,"/images/icon_tab_favorite.png")),isFavGame:!0};return[t].concat(st(this.$store.getters.gameCategory))}return this.$store.getters.gameCategory},gameType:function(){return this.$store.getters.gameType},activeFilter:function(){return this.$store.state.user.activeFilter},gameModalOpen:function(){return this.$store.state.app.isModalActive},displayedGames:function(){return"favorites"===this.activeFilter?this.favoriteAll.length>0?this.favoriteAll.filter((function(t){return t.isFavorite})):[]:this.games},filterFavorList:function(){return this.favoriteAll},isShowLobby:function(){return"type"===this.currentFilterObj.type||"provider"===this.currentFilterObj.type||this.$store.state.user.isGameFilterActive},totalDisplayedGames:function(){var t=this.page.size,e=(this.page.num-1)*this.page.incrementSize;return t+e},gameUrlFromStore:function(){return this.$store.state.app.gameUrl},currentGameType:function(){return this.$store.state.user.currentGameType},marqueeStyle:function(){return{transform:"translateX(".concat(this.positionX,"px)")}}},watch:{"$store.state.game.gameCategory":function(t){t&&!this.$store.state.user.currentGameCategory&&(this.$store.commit("SET_CURRENT_GAME_CATEGORY",t[0]),this.$store.commit("SET_ACTIVE_FILTER","others")),this.nowCategory=t[0]},"$store.state.user.currentGameCategory":function(t){var e=this;null!==t&&(this.currentFilterObj=t?{type:"category",value:t.id}:{type:"favorites",value:null},this.getGameList()),this.isFirstRender?(window.scrollTo({top:0,left:0,behavior:"smooth"}),this.isFirstRender=!1):"/"===this.$route.path&&null===this.$store.state.user.currentGameType&&this.$nextTick((function(){e.gameScroll("gameCategory","gameCategory",90,135)}))},"$store.state.user.currentGameType":function(t){var e=this;t&&(this.currentFilterObj={type:"type",value:t.game_type},this.getGameList(),this.refreshProvider(t.game_type),this.getProviderNum(t.game_type)),"/"===this.$route.path&&null===this.$store.state.user.currentGameCategory&&this.$nextTick((function(){e.gameScroll("gameFilterContainer","gameFilter",180,162)}))},"$store.state.user.currentGameProvider":function(t){var e=this;null!==t&&(this.currentFilterObj={type:"provider",value:t.game_provider_id?t.game_provider_id:t.id},this.getGameList()),"/"===this.$route.path&&null!==this.$store.state.user.currentGameProvider&&this.$nextTick((function(){e.gameScroll("gameFilterContainer","gameFilter",180,162)}))},"$store.state.app.gameUrl":function(t){t||Object(m["a"])(this.$store.state.app.inGameId)},"$store.getters.token":function(t){t||(this.$store.commit("SET_ACTIVE_FILTER","others"),this.$store.commit("SET_CURRENT_GAME_CATEGORY",this.$store.state.game.gameCategory[0]))}},beforeDestroy:function(){this.stopMarquee()},created:function(){var t=this;this.$route.query.category?this.currentFilterObj={type:"category",value:this.$route.query.category}:this.$route.query.type?this.currentFilterObj={type:"type",value:this.$route.query.type}:this.$route.query.provider_id&&(this.currentFilterObj={type:"provider",value:this.$route.query.game_provider_id}),this.refreshGamesAndBets(),this.myInterval=setInterval((function(){t.handleShowOffGameBets()}),6e4);var e,r,a,i=this.$store.state.user;i.currentGameCategory?(e="category",r=i.currentGameCategory.id,a="gameCategory"):i.currentGameType&&(e="type",r=i.currentGameType.game_type,a="gameFilterContainer"),e&&r&&(this.currentFilterObj={type:e,value:r},this.getGameList(),this.scrollToActive(a),window.scrollTo(0,0),this.isFirstRender=!1),i.isFromChampionship&&!this.$store.getters.token&&this.$store.commit("SET_LOGIN_OPEN",!0),this.$store.commit("SET_CHAMPIONSHIP",!1),i.isFromPromotion&&!this.$store.getters.token&&this.$store.commit("SET_LOGIN_OPEN",!0),this.$store.commit("SET_PROMOTION",!1),this.getGameNum();var n=this.$store.state.user.favoriteGame||[];this.updateFavoriteAll(n),Object(l["f"])().then((function(e){t.marqueeDetails=e.data.data,t.$nextTick((function(){t.startMarquee()}))}))},mounted:function(){this.countup()},methods:rt(rt({startMarquee:function(){var t=this;if(!this.isRunning){this.isRunning=!0;var e=function e(){t.isRunning&&(t.positionX-=t.speed,t.positionX<=-t.$refs.marqueeContainer.scrollWidth&&(t.positionX=t.$refs.marqueeContainer.offsetWidth),t.animationFrameId=requestAnimationFrame(e))};e()}},stopMarquee:function(){this.isRunning=!1,cancelAnimationFrame(this.animationFrameId)},goNewsPage:function(t){t&&this.$store.commit("SET_CHOOSE_NEWS",t),this.$router.push({path:"/user/news"})},scrollToActive:function(t){var e=this;this.$nextTick((function(){setTimeout((function(){if("slickCarousel"!==t){var r=e.$refs[t],a=r.querySelector(".active");if(a){var i,n=r.getBoundingClientRect(),s=a.getBoundingClientRect();i=a===r.lastElementChild?r.scrollWidth-r.clientWidth:s.left-n.left+r.scrollLeft-n.width/2+s.width/2,r.scrollLeft=i}else{var o=e.$refs.slickCarousel,c=e.showGame.findIndex((function(t){return e.isGameCategoryActive(t)}));o.goTo(c)}}}),300)}))},gameScroll:function(t,e,r,a){var i=this;this.scrollToActive(t),this.$nextTick((function(){var t=i.$refs[e];if(t){var n=r;Object(u["b"])()&&(n=a);var s=t.getBoundingClientRect().top+window.scrollY-n;window.scrollTo({top:s,behavior:"smooth"})}}))},updateWorkHour:function(t){this.workHourVal=t,this.countup()},isMobile:function(){return Object(u["b"])()},handleClick:function(t){var e=t.split("/").pop();this.$router.push({path:"/event",query:{eventId:e}})},handleFavoriteGame:function(){var t=tt(Q().mark((function t(e){var r,a;return Q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r={type:"game",data:JSON.stringify([{brand_id:this.$store.state.user.goldInfo.brand_id,game_id:e.id}])},t.prev=1,!e.isFavorite){t.next=8;break}return t.next=5,Object(c["p"])(r);case 5:t.t0=t.sent,t.next=11;break;case 8:return t.next=10,Object(c["b"])(r);case 10:t.t0=t.sent;case 11:return a=t.t0,this.favoriteGames=a.data.data.game,t.next=15,this.updateFavoriteAll(this.favoriteGames);case 15:this.updateGameListLocally(e,!e.isFavorite),"favorites"===this.activeFilter&&0===this.favoriteGames.length&&(this.$store.commit("SET_CURRENT_GAME_CATEGORY",this.$store.state.game.gameCategory[0]),this.$store.commit("SET_ACTIVE_FILTER","others")),this.carouselKey+=1,t.next=23;break;case 20:t.prev=20,t.t1=t["catch"](1),console.error(t.t1);case 23:case"end":return t.stop()}}),t,this,[[1,20]])})));function e(e){return t.apply(this,arguments)}return e}(),showToast:function(t,e){var r=this,a=e?"".concat(t.name," ").concat(this.$t("Bao.favorite")):"".concat(t.name," ").concat(this.$t("Bao.favorite_remove"));Object(u["s"])(a),setTimeout((function(){r.$store.commit("SET_TOAST_MESSAGE",null)}),3e3)},updateFavoriteAll:function(){var t=tt(Q().mark((function t(e){var r,a,i,n;return Q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=[],a=new Set(e.map((function(t){return t.game_id}))),i=Array.from(a),t.next=5,Object(o["e"])({game_id_list_string:JSON.stringify(i)}).then((function(t){r=t.data.data})).catch((function(t){console.log(t)}));case 5:n=r.filter((function(t){return 1===t.status})).map((function(t){return rt(rt({},t),{},{isFavorite:a.has(t.id),showDetail:!1})})),n.sort((function(t,e){return t.recommend_sort-e.recommend_sort})),this.favoriteAll=n;case 8:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),updateGameListLocally:function(t,e){this.showToast(t,e);var r="favorites"===this.currentFilterObj.type?this.favoriteAll:this.games;this.updateFavoriteStatus(r,t,e),this.updateFavoriteList(),this.$store.commit("SET_FAVORITE_GAME",this.favoriteGames)},updateFavoriteStatus:function(t,e,r){var a=t.findIndex((function(t){return t.id===e.id}));-1!==a&&this.$set(t,a,rt(rt({},t[a]),{},{isFavorite:r}))},updateFavoriteList:function(){this.favoriteGames=this.favoriteAll.filter((function(t){return t.isFavorite})).map((function(t){return rt(rt({},t),{},{game_id:t.id})}))},getGameList:function(){var t={};"category"===this.currentFilterObj.type?t={category:this.currentFilterObj.value}:"type"===this.currentFilterObj.type?t={type:this.currentFilterObj.value}:"provider"===this.currentFilterObj.type?t={provider_id:this.currentFilterObj.value}:"favorites"===this.currentFilterObj.type&&(t={showLoading:!1}),this.initGetGames||(t.showLoading=!1,this.initGetGames=!0),this.getGames(t)},getGameNum:function(){var t=this;Object(o["f"])().then((function(e){t.updateWorkHour(e.data.num)})).catch((function(t){console.log(t)}))},refreshProvider:function(t){var e=this,r=[],a={};Object(o["j"])().then((function(i){for(var n in r=i.data.data,r){var s=r[n].game_type;a[s]=r[n].providers}a[t].sort((function(t,e){return t.sort-e.sort})),e.$store.commit("SET_GAME_PROVIDER",a[t])}))},getProviderNum:function(t){var e=this;Object(o["h"])().then((function(r){var a=e.getGameSum(r.data.provider_list_num[t]);e.updateWorkHour(a)})).catch((function(t){console.log(t)}))},getGameSum:function(t){var e=t.reduce((function(t,e){return t+e.num}),0);return e},getGames:function(){var t=tt(Q().mark((function t(e){var r,a,i,n,s;return Q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=[],a=this.$store.state.user.favoriteGame||[],i=new Set(a.map((function(t){return t.game_id}))),"favorites"===this.currentFilterObj.type){t.next=9;break}return t.next=6,this.fetchGamesFromAPI(e);case 6:r=t.sent,t.next=12;break;case 9:return n=Array.from(i),t.next=12,Object(o["e"])({game_id_list_string:JSON.stringify(n)}).then((function(t){r=t.data.data})).catch((function(t){console.log(t)}));case 12:if(r.length){t.next=16;break}return this.games=[],this.page.total=0,t.abrupt("return");case 16:s=r.filter((function(t){return 1===t.status})).map((function(t){return rt(rt({},t),{},{isFavorite:i.has(t.id),showDetail:!1})})),s=s.filter((function(t){return"1"===t.is_show})),s.sort((function(t,e){return t.recommend_sort-e.recommend_sort})),"favorites"===this.currentFilterObj.type?this.favoriteAll=s:(this.games=s,1===this.games.length&&this.curGameNum!==this.games.length&&this.$store.getters.token&&this.handleLaunchGame(this.games[0]),this.curGameNum=this.games.length),this.page.num=1,this.page.total=Math.ceil((s.length-this.page.size)/this.page.incrementSize);case 22:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),fetchGamesFromAPI:function(){var t=tt(Q().mark((function t(e){var r;return Q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["g"])(e);case 2:return r=t.sent,t.abrupt("return",r.data.data||[]);case 4:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),handleLaunchGame:function(){var t=tt(Q().mark((function t(e){return Q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(m["b"])("game",e);case 2:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}(),nextPage:function(){this.page.num++},showDetail:function(t){t.showDetail=!0,this.$forceUpdate()},closeDetail:function(t){t.showDetail=!1},checkTokenExpiration:function(){var t=this;setInterval((function(){var e=localStorage.getItem("expired_time");(!e||(new Date).getTime()>e)&&t.updateToken()}),6e4)},updateToken:function(){this.$store.getters.token&&Object(c["u"])({token:localStorage.getItem("token")}).then((function(t){var e=t.data.data.token,r=(new Date).getTime()+1e3*e.expired_interval;localStorage.setItem("expired_time",r),localStorage.setItem("token",e.token)})).catch((function(t){console.error("Error updating token",t)}))},refreshGamesAndBets:function(){var t=tt(Q().mark((function t(){var e;return Q().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.checkTokenExpiration(),t.next=3,Object(o["g"])({showLoading:!1});case 3:e=t.sent,this.allGame=e.data.data,this.handleShowOffGameBets(),this.$store.commit("SET_ALL_GAME",this.allGame);case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),handleShowOffGameBets:function(){var t=this;Object(o["i"])().then((function(e){t.showOffGameBets=e.data.data,t.showOffGameBets.forEach((function(e){var r=t.allGame.find((function(t){return t.game_provider_id===e.game_provider_id}));r&&(e.type=r.type)})),t.$store.commit("SET_SHOW_OFF_GAME_BETS",t.showOffGameBets)}))},isGameCategoryActive:function(t){return!("favorites"!==this.activeFilter||!t.isFavGame)||!("others"!==this.activeFilter||!this.$store.state.user.currentGameCategory||this.$store.state.user.currentGameCategory.id!==t.id)},changeGameType:function(t){var e=this;this.selectedTab?(this.selectedTab=t,this.$store.commit("SET_SHOW_GAME_FILTER",!0),this.$store.commit("SET_CURRENT_GAME_CATEGORY",null),this.$store.commit("SET_CURRENT_GAME_PROVIDER",null),this.$store.commit("SET_CURRENT_GAME_TYPE",t),this.$store.commit("SET_ACTIVE_FILTER","others")):setTimeout((function(){e.selectedTab=t,e.$store.commit("SET_SHOW_GAME_FILTER",!0),e.$store.commit("SET_CURRENT_GAME_CATEGORY",null),e.$store.commit("SET_CURRENT_GAME_PROVIDER",null),e.$store.commit("SET_CURRENT_GAME_TYPE",t),e.$store.commit("SET_ACTIVE_FILTER","others")}),400)},changeGameCategory:function(t){var e=t.isFavGame?"favorites":"others";this.$store.commit("SET_CURRENT_GAME_TYPE",null),this.$store.commit("SET_CURRENT_GAME_PROVIDER",null),this.$store.commit("SET_SHOW_GAME_FILTER",!1),this.$store.commit("SET_CURRENT_GAME_CATEGORY",t),this.$store.commit("SET_ACTIVE_FILTER",e)},changeGameProvider:function(t){this.$store.commit("SET_CURRENT_GAME_CATEGORY",null),this.$store.commit("SET_CURRENT_GAME_PROVIDER",t),this.$store.commit("SET_ACTIVE_FILTER","others")}},Object(g["c"])(["SET_SHOW_RESEARCH","SET_SHOW_PROVIDER"])),{},{showSearchProvider:function(){this.$refs.searchProvider.show(),this.$store.commit("SET_SHOW_PROVIDER",!0)},showSearchGame:function(){this.$refs.searchGame.show(),this.$store.commit("SET_SHOW_RESEARCH",!0)},isGameTypeActive:function(t){return!(!this.$store.state.user.currentGameType||this.$store.state.user.currentGameType.id!==t.id)},countup:function(){var t={useEasing:!0,useGrouping:!0,separator:"",decimal:",",suffix:"",startVal:0,duration:2.5},e=new X["a"]("workHour",this.workHourVal,t);e.error?console.error(e.error):e.start()},openLoginModal:function(){this.$store.commit("SET_LOGIN_OPEN",!0)},openDemoGame:function(t){this.$store.commit("SET_GAME_URL",t.demo_url)}})},ft=ht,dt=(r("cc16"),Object(G["a"])(ft,a,i,!1,null,null,null));e["default"]=dt.exports},"29f8":function(t,e,r){"use strict";r("93e1")},"2f3a":function(t,e,r){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"position-relative"},[e("div",{staticClass:"mobile-show"},[0!==t.carousel.length?e("VueSlickCarousel",t._b({staticClass:"slider single-item index-slick",attrs:{arrows:!1}},"VueSlickCarousel",t.slick_setting,!1),t._l(t.carousel,(function(r,a){return e("a",{key:a,staticClass:"d-block",on:{click:function(e){return t.goLink(r.link,r.open_type)}}},[e("img",{attrs:{src:r.image,alt:r.link}})])})),0):t._e()],1),e("div",{staticClass:"pc-show"},[0!==t.carousel.length?e("VueSlickCarousel",t._b({staticClass:"slider single-item index-slick",attrs:{arrows:!1}},"VueSlickCarousel",t.slick_setting,!1),t._l(t.carousel,(function(r,a){return e("a",{key:a,staticClass:"d-block",on:{click:function(e){return t.goLink(r.pc_link,r.open_type)}}},[e("img",{attrs:{src:r.pc_image,alt:r.pc_link}})])})),0):t._e()],1)])},i=[],n=r("9add"),s=r("a7ab"),o=r.n(s),c=(r("7b8d"),r("6a2c"),r("3de1")),l={components:{VueSlickCarousel:o.a},data:function(){return{carousel:[],slick_setting:{pauseOnHover:!0,adaptiveHeight:!1,dots:!0,infinite:!0,draggable:!0,autoplay:!0,autoplaySpeed:8e3,speed:500,initialSlide:0,fade:!0,cssEase:"linear"}}},mounted:function(){var t=this;Object(n["d"])().then((function(e){t.carousel=e.data.data}))},methods:{isMobile:function(){return Object(c["b"])()},goLink:function(t,e){"pop_register"===t?this.$store.commit("SET_REGISTER_OPEN",!0):window.open(t,e)}}},u=l,m=(r("5e2e"),r("2877")),h=Object(m["a"])(u,a,i,!1,null,null,null);e["a"]=h.exports},"3a73":function(t,e,r){var a={"./theme_gold/images/home-arrow-left.png":"914e","./theme_green/images/home-arrow-left.png":"1227","./theme_white/images/home-arrow-left.png":"5b21"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="3a73"},"431f":function(t,e,r){var a={"./theme_gold/images/wallet.png":"480d","./theme_green/images/wallet.png":"9e6b","./theme_white/images/wallet.png":"e166"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="431f"},"4f15":function(t,e,r){var a={"./theme_gold/images/home-arrow-right.png":"4bb9","./theme_green/images/home-arrow-right.png":"521d","./theme_white/images/home-arrow-right.png":"43ff"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="4f15"},5087:function(t,e,r){"use strict";var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-popup"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.gameModalOpen&&t.isActive,expression:"gameModalOpen && isActive"}],staticClass:"popup-wrap",class:{active:t.isActive}},[e("div",{staticClass:"popup-box"},[e("div",{staticClass:"popup-page"},[e("p",{staticClass:"h5 nl2br",domProps:{innerHTML:t._s(t.displayText)}}),t.gameModalButton?e("div",{staticClass:"modal-footer"},[e("span",{staticClass:"modal-button",on:{click:t.hideGame}},[t._v("\n            "+t._s(t.$t("Bao.enter"))+"\n          ")])]):t._e()]),t.hideModal?e("a",{staticClass:"popup-close",on:{click:t.hideModel}}):t._e()])])])},i=[],n=r("3de1"),s={name:"PerformanceModal",props:{isActive:Boolean,limitText:{type:String,default:function(){return""}}},data:function(){return{showPopup:!1}},computed:{gameModalOpen:function(){var t=!0;if(!this.limitText){var e=Math.floor(Date.now()/1e3),r=localStorage.getItem("lastPopupTimeStamp");r&&!Object(n["i"])(e,this.$store.state.app.lastPopupTimeStamp)&&(t=!1)}return t},gameModalButton:function(){return!this.limitText},hideModal:function(){return this.limitText},displayText:function(){return this.limitText||this.$store.state.brand.permissionInfo.bonus_wallet_rule}},watch:{"$store.state.app.lastPopupTimeStamp":function(t){t&&this.openGameModal()},"$store.state.app.isFirstGameLaunch":function(t,e){t!==e&&this.openGameModal()}},created:function(){this.updateLastPopupTimeStamp()},methods:{hideModel:function(){this.$emit("hideModel")},hideGame:function(){this.$store.commit("SET_MODAL_ACTIVE",!1);var t=Math.floor(Date.now()/1e3);localStorage.setItem("lastPopupTimeStamp",t.toString()),this.$store.commit("SET_LAST_POPUP_TIMESTAMP",t)},updateLastPopupTimeStamp:function(){var t=localStorage.getItem("lastPopupTimeStamp");t&&this.SET_LAST_POPUP_TIMESTAMP(parseInt(t,10))},openGameModal:function(){this.$store.commit("SET_GAME_URL",this.$store.state.app.tempGameUrl)}}},o=s,c=(r("7760"),r("2877")),l=Object(c["a"])(o,a,i,!1,null,"7204cc26",null);e["a"]=l.exports},"5e2e":function(t,e,r){"use strict";r("ec82")},"65c1":function(t,e,r){var a={"./theme_gold/images/collect.png":"987c"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="65c1"},7444:function(t,e,r){},7760:function(t,e,r){"use strict";r("797c")},"797c":function(t,e,r){},9180:function(t,e,r){var a={"./theme_gold/images/top_up.png":"20d1"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="9180"},"93e1":function(t,e,r){},bb52:function(t,e,r){var a={"./theme_gold/images/bullhorn.svg":"1497"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="bb52"},cc16:function(t,e,r){"use strict";r("7444")},d797:function(t,e,r){var a={"./theme_gold/images/history.png":"89d8"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="d797"},ec0d:function(t,e,r){var a={"./theme_gold/images/leave.png":"3876"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="ec0d"},ec82:function(t,e,r){},f34a:function(t,e,r){var a={"./theme_gold/images/icon-filter.png":"b706","./theme_green/images/icon-filter.png":"1ee2","./theme_white/images/icon-filter.png":"ed4e"};function i(t){var e=n(t);return r(e)}function n(t){if(!r.o(a,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return a[t]}i.keys=function(){return Object.keys(a)},i.resolve=n,t.exports=i,i.id="f34a"}}]);
//# sourceMappingURL=chunk-74fb59bb.cac9b630.js.map