app.run(["$rootScope","$timeout",function(e,a,t){let l=_theme.contact_social;e.socialList_show_qr=[],e.socialList={line:{},facebook:{},wechat:{},viber:{},telegram:{},whatsapp:{},zalo:{},twitter:{},live:{}};for(let a in l)type_data=l[a].type,l[a].enabled&&(0===Object.keys(e.socialList[type_data]).length&&e.socialList[type_data].constructor===Object&&"wechat"!=type_data&&"viber"!=type_data?(e.socialList[type_data]=l[a],e.socialList[type_data].show="link"):("wechat"!=type_data&&"viber"!=type_data&&"viber"!=type_data||(e.socialList[type_data]=l[a]),e.socialList[type_data].show="qr"));$(document).ready((function(){$(".popup-floating").draggabilly({containment:!0}).on("dragEnd",(function(e,a){var t=window.innerWidth,l=window.innerHeight,n=a?a.pageX:$(this).position().right;$(this).css({transition:"0.2s ease-out"}).delay(200).queue((function(e){$(this).css({transition:""}),e()})),n{$.fn.qrcode&&$("[data-qr-modal]").each((function(e){$(this).qrcode($(this).data("qr-modal"))}))}),300),$("#modal_service_line").modal("show")},e.copyIdSocial=function(e){navigator.clipboard.writeText(e)},e.pornSite_Cookies=function(e){0==e?$("#aox_banner").hide(1e3):($("#aox_banner").hide(1e3),window.location.assign("/new_profile")),Cookies.set("pornSite_login",!0)},e.datemaintenance=function(){ajax("/api/get-maintenance",(function(a){e.$apply((function(){a.success&&(e.setShowPopup=!1,$("#modal_maintenance").modal())}))}))},e.closeMaintenance=function(a){e.setShowPopup=!0},e.gamesConsoleManager={activeSubTabPokerGame:function(a){for(let t in e.sortPoker)e.sortPoker[t].tab=!1,e.sortPoker[t].name===a&&e.sortPoker[t].enabled&&(e.sortPoker[t].tab=!0,e.tabNames=a)},activeSubTabBingoGame:function(a){for(let t in e.sortBingo)e.sortBingo[t].tab=!1,e.sortBingo[t].name===a&&e.sortBingo[t].enabled&&(e.sortBingo[t].tab=!0,e.tabNames=a)},activeSubTabLiveCasino:function(a){for(let t in e.sortCasino)e.sortCasino[t].tab=!1,e.sortCasino[t].name===a&&e.sortCasino[t].enabled&&(e.sortCasino[t].tab=!0,e.tabNames=a);"SEXY"===a?$(".live-casino-bg").css("background-image","url("+_theme.imgPath+"/background/bg_sexy.webp)"):"jdbMK"===_theme.siteName||"1g17"===_theme.siteName||"999lord"===_theme.siteName?$(".live-casino-bg").css("background-image","url("+_theme.imgPath+"/background/live_casino_banner.webp)"):$(".live-casino-bg").css("background-image","url("+_theme.imgPath+"/background/bg_ag2.webp)")},init:function(){this.loadGameList=!0},loadGameList:!1},e.gamesConsoleManager.init(),ajax("/api/config",(function(a){e.$apply((function(){if(e.notShowTopupMoney=!1,e.setShowPopup=!0,e.configGamehall=a.game_hall,e.conf_homepage=a.homepage,e.maintenance=e.conf_homepage.maintenance,e.dateStartMaintenance=moment(e.maintenance.start_date.date).format("YYYY-MM-DD HH:mm"),e.dateEndMaintenance=moment(e.maintenance.end_date.date).format("YYYY-MM-DD HH:mm"),e.datemaintenance(),e.jdbCheckEnabled=a.game_hall.JDB,e.cq9CheckEnabled=a.game_hall.CQ9,e.ptCheckEnabled=a.game_hall.IMOne,e.awcCheckEnabled=a.game_hall.AWC,e.jiliCheckEnabled=a.game_hall.JILI,e.ppoCheckEnabled=a.game_hall.PPO,e.win568CheckEnabled=a.game_hall.win568,e.fcCheckEnabled=a.game_hall.FC,e.ambCheckEnabled=a.game_hall.AMB,e.rsgCheckEnabled=a.game_hall.RSG,e.pgCheckEnabled=a.game_hall.PG,e.kaCheckEnabled=a.game_hall.KA,e.saCheckEnabled=a.game_hall.SA,e.agCheckEnabled=a.game_hall.AG,e.ybCheckEnabled=a.game_hall.YB,e.mabuCheckEnabled=a.game_hall.MABU,e.evoCheckEnabled=a.game_hall.EVO,e.bk89CheckEnabled=a.game_hall.BK89,e.ninekgCheckEnabled=a.game_hall.NINEKG,e.yggCheckEnabled=a.game_hall.YGG,e.fivegCheckEnabled=a.game_hall.FIVEG,e.jokerCheckEnabled=a.game_hall.JOKER,e.acewinCheckEnabled=a.game_hall.ACEWIN,e.ds88CheckEnabled=a.game_hall.DS88,e.hrgCheckEnabled=a.game_hall.HRG,e.psCheckEnabled=a.game_hall.PS,e.fivegCheckEnabled=a.game_hall.FIVEG,e.wonwonCheckEnabled=a.game_hall.WONWON,e.funkyCheckEnabled=a.game_hall.FUNKY,e.short77CheckEnabled=a.game_hall.short77,e.vpCheckEnabled=a.game_hall.VP,e.sabaCheckEnabled=a.game_hall.SABA,e.listGame=a["feature.list_game"],e.fix_game_top=a["feature.fix_game_top"],e.ybJackPot=a["feature.jackpot_yb.enabled"],e.ybWinnerJackPot=a["feature.today_winner_jackpot.enabled"],e.sv388CheckEnabled=a.game_hall.SV388,e.kygCheckEnabled=a.game_hall.KYG,e.bngCheckEnabled=a.game_hall.BNG,e.twojCheckEnabled=a.game_hall.TWOJ,e.vaCheckEnabled=a.game_hall.VA,e.cgCheckEnabled=a.game_hall.CG,e.gameNotShowTopupMoney=[],e.tabNames="",e.ps_loyalty=e.psCheckEnabled.loyalty,e.filtering="all",e.vip_game=a.vip_game,a["feature.deposit_on_game"]&&(e.gameNotShowTopupMoney=a["feature.deposit_on_game"].game_not_show),e.listGames={cock_fight:[]},e.nameShowMap=function(){return Object.keys(e.configGamehall).map((a=>{const t=e.configGamehall;let l={};return t[a]?.nameShow&&(l[a]=t[a].nameShow),l})).filter((e=>Object.keys(e).length>0)).reduce(((e,a)=>{const t=Object.keys(a)[0];return e[t]=a[t],e}),{})},e.aliasMap=e.nameShowMap(),e.sv388CheckEnabled.enabled)for(let t in a.game_hall.SV388.game.cock_fight.list){let l=a.game_hall.SV388.game.cock_fight.list[t];l.enabled&&(l.vendor="SV388",l.iframe=a.game_hall.SV388.iframe,l.text_time=a.game_hall.SV388.maintenance.text_time,l.time_zone=a.game_hall.SV388.maintenance.time_zone,e.listGames.cock_fight.push(l))}let t={JDB:{tabStatus:!1,tab:"arcadeGame_jdb",tabHref:"#arcade-all-game",enabled:e.jdbCheckEnabled.enabled&&e.jdbCheckEnabled.game.fruit.enabled,enabled_api:e.jdbCheckEnabled.api_enabled},CQ9:{tabStatus:!1,tab:"arcadeGame_cq9",tabHref:"#arcade-all-game",enabled:e.cq9CheckEnabled.enabled&&e.cq9CheckEnabled.game.fruit_cq9.enabled,enabled_api:e.cq9CheckEnabled.api_enabled},FC:{tabStatus:!1,tab:"arcadeGame_fc",tabHref:"#arcade-all-game",enabled:e.fcCheckEnabled.enabled&&e.fcCheckEnabled.game.dozer.enabled,enabled_api:e.fcCheckEnabled.api_enabled},AMB:{tabStatus:!1,tab:"arcadeGame_amb",tabHref:"#arcade-all-game",enabled:e.ambCheckEnabled.enabled&&e.ambCheckEnabled.game.arcade.enabled,enabled_api:e.ambCheckEnabled.api_enabled},KA:{tabStatus:!1,tab:"arcadeGame_ka",tabHref:"#arcade-all-game",enabled:e.kaCheckEnabled.enabled&&e.kaCheckEnabled.game.other_ka.enabled,enabled_api:e.kaCheckEnabled.api_enabled},JILI:{tabStatus:!1,tab:"arcadeGame_jili",tabHref:"#arcade-all-game",enabled:e.jiliCheckEnabled.enabled&&e.jiliCheckEnabled.game.arcade_jili.enabled,enabled_api:e.jiliCheckEnabled.api_enabled},MABU:{tabStatus:!1,tab:"arcadeGame_mabu",tabHref:"#arcade-all-game",enabled:e.mabuCheckEnabled.enabled&&e.mabuCheckEnabled.game.arcade_mabu.enabled,enabled_api:e.mabuCheckEnabled.api_enabled},JOKER:{tabStatus:!1,tab:"arcadeGame_joker",tabHref:"#arcade-all-game",enabled:e.jokerCheckEnabled.enabled&&(e.jokerCheckEnabled.game.funky_joker.enabled||e.jokerCheckEnabled.game.bingo_joker.enabled),enabled_api:e.jokerCheckEnabled.api_enabled},ACEWIN:{tabStatus:!1,tab:"arcadeGame_acewin",tabHref:"#arcade-all-game",enabled:e.acewinCheckEnabled.enabled&&e.acewinCheckEnabled.game.arcade.enabled,enabled_api:e.acewinCheckEnabled.api_enabled},PS:{tabStatus:!1,tab:"arcadeGame_ps",tabHref:"#arcade-all-game",enabled:e.psCheckEnabled.enabled&&e.psCheckEnabled.game.arcade.enabled,enabled_api:e.psCheckEnabled.api_enabled},HS:{tabStatus:!1,tab:"arcadeGame_hs",tabHref:"#arcade-all-game",enabled:e.yggCheckEnabled.enabled&&e.yggCheckEnabled.game.hs_arcade.enabled,enabled_api:e.yggCheckEnabled.api_enabled},FUNKY:{tabStatus:!1,tab:"arcadeGame_funky",tabHref:"#arcade-all-game",enabled:e.funkyCheckEnabled.enabled&&(e.funkyCheckEnabled.game.multiplayer.enabled||e.funkyCheckEnabled.game.table.enabled||e.funkyCheckEnabled.game.keno.enabled||e.funkyCheckEnabled.game.arcade.enabled||e.funkyCheckEnabled.game.card.enabled),enabled_api:e.funkyCheckEnabled.api_enabled},PP_EGAME:{tabStatus:!1,tab:"arcadeGame_pp",tabHref:"#arcade-all-game",enabled:e.awcCheckEnabled.enabled&&e.awcCheckEnabled.game.PP_EGAME.enabled,enabled_api:e.awcCheckEnabled.api_enabled},SHORT77:{tabStatus:!1,tab:"arcadeGame_short77",tabHref:"#arcade-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled},PPO:{tabStatus:!1,tab:"arcadeGame_ppo",tabHref:"#arcade-all-game",enabled:e.ppoCheckEnabled.enabled&&e.ppoCheckEnabled.game.arcade.enabled,enabled_api:e.ppoCheckEnabled.api_enabled},YB:{tabStatus:!1,tab:"arcadeGame_yb",tabHref:"#arcade-all-game",enabled:e.ybCheckEnabled.enabled&&e.ybCheckEnabled.game.arcade_yb.enabled,enabled_api:e.ybCheckEnabled.api_enabled},SABA:{tabStatus:!1,tab:"arcadeGame_saba",tabHref:"#arcade-all-game",enabled:e.sabaCheckEnabled.enabled&&e.sabaCheckEnabled.game.arcade.enabled,enabled_api:e.sabaCheckEnabled.api_enabled},KYG:{tabStatus:!1,tab:"arcadeGame_kyg",tabHref:"#arcade-all-game",enabled:e.kygCheckEnabled.enabled&&(e.kygCheckEnabled.game.lottery.enabled||e.kygCheckEnabled.game.original.enabled||e.kygCheckEnabled.game.table.enabled),enabled_api:e.kygCheckEnabled.api_enabled},TWOJ:{tabStatus:!1,tab:"arcadeGame_twoj",tabHref:"#arcade-all-game",enabled:e.twojCheckEnabled.enabled&&(e.twojCheckEnabled.game.multiplayer.enabled||e.twojCheckEnabled.game.crypto.enabled),enabled_api:e.twojCheckEnabled.api_enabled},CG:{tabStatus:!1,tab:"arcadeGame_cg",tabHref:"#arcade-all-game",enabled:e.cgCheckEnabled.enabled&&e.cgCheckEnabled.game.crash.enabled,enabled_api:e.cgCheckEnabled.api_enabled}};e.listGame.arcade.list.forEach(((a,l)=>{const n=a.name.toUpperCase()||a.name,i=a.name.toLowerCase();t[n]&&(e.listGame.arcade.list[l].tabStatus=t[n].tabStatus,e.listGame.arcade.list[l].tab=t[n].tab,e.listGame.arcade.list[l].tabhref=/t[n].tabHref,e.listGame.arcade.list[l].enabled=t[n].enabled,e.listGame.arcade.list[l].nameShow=e.aliasMap[i]__n,"NINEKG"==e.listGame.arcade.list[l].nameShow&&(e.listGame.arcade.list[l].nameShow="9KG"),"PP_EGAME"==e.listGame.arcade.list[l].nameShow&&(e.listGame.arcade.list[l].nameShow="PP"),"PPO"==e.listGame.arcade.list[l].nameShow&&(e.listGame.arcade.list[l].nameShow="PP"),"short77"==e.listGame.arcade.list[l].nameShow&&(e.listGame.arcade.list[l].nameShow="OMG"),"WONWON"==e.listGame.arcade.list[l].nameShow&&(e.listGame.arcade.list[l].nameShow="WW"),"TWOJ"==e.listGame.arcade.list[l].nameShow&&(e.listGame.arcade.list[l].nameShow="2J")),e.listGame.arcade.list[l].enabled||(e.listGame.arcade.list[l].order=99),t[n]&&!t[n].enabled_api&&(e.listGame.arcade.list[l].order=e.listGame.arcade.list[l].order+e.listGame.arcade.list.length)})),e.sortArcade=e.listGame.arcade.list,_theme.tab_game_all.fruit.enabled&&e.sortArcade.push({name:"ALL",order:0,tabStatus:!1,tab:"arcadeGame_all",tabHref:"#arcade-all-game",enabled:!1,trial:!1,nameShow:"ALL",line:"1"}),e.vip_game.enabled&&e.sortArcade.push({name:"VIP",order:.1,tabStatus:!1,tab:"arcadeGame_vip",tabHref:"#arcade-all-game",enabled:e.vip_game.enabled,trial:!1,nameShow:"OMG",icon_label:"hot",line:"1"}),e.tabGameArcadeFirstLine=[],e.tabGameArcadeSecondLine=[],e.sortArcade.forEach(((a,t)=>{a.enabled&&(a.line?"1"==a.line?e.tabGameArcadeFirstLine.push(a):e.tabGameArcadeSecondLine.push(a):(a.line="1",a.order=a.order+50,e.tabGameArcadeFirstLine.push(a)))}));a.game_hall.MRG;let l=a.game_hall.AG,n=a.game_hall.AWC,i=a.game_hall.SA,o=a.game_hall.CQ9,s=a.game_hall.EVO,d=a.game_hall.PG,b=a.game_hall.KA,r=a.game_hall.FC,m=a.game_hall.ACEWIN,c=a.game_hall.JOKER,g=(a.game_hall.HRG,a.game_hall.PS),h={AG:{tabStatus:!1,tab:"casinoGame_ag",tabHref:"#casino-all-game",enabled:l.enabled&&l.game.casino.enabled,enabled_api:l.api_enabled},SEXY:{tabStatus:!1,tab:"casinoGame_sexy",tabHref:"#casino-all-game",enabled:n.enabled&&n.game.sexybcrt.enabled,enabled_api:n.api_enabled},SA:{tabStatus:!1,tab:"casinoGame_sa",tabHref:"#casino-all-game",enabled:i.enabled&&i.game.live_casino.enabled,enabled_api:i.api_enabled},CQ9:{tabStatus:!1,tab:"casinoGame_cq9",tabHref:"#casino-all-game",enabled:o.enabled&&o.game.casino_cq9.enabled,enabled_api:o.api_enabled},EVO:{tabStatus:!1,tab:"casinoGame_evo",tabHref:"#casino-all-game",enabled:s.enabled&&s.game.casino.enabled,enabled_api:s.api_enabled},PG:{tabStatus:!1,tab:"casinoGame_pg",tabHref:"#casino-all-game",enabled:d.enabled&&d.game.card_pg.enabled,enabled_api:d.api_enabled},KA:{tabStatus:!1,tab:"casinoGame_ka",tabHref:"#casino-all-game",enabled:b.enabled&&(b.game.poker_ka.enabled||b.game.table_ka.enabled),enabled_api:b.api_enabled},JOKER:{tabStatus:!1,tab:"casinoGame_joker",tabHref:"#casino-all-game",enabled:c.enabled&&c.game.casino_joker.enabled,enabled_api:c.api_enabled},FC:{tabStatus:!1,tab:"casinoGame_fc",tabHref:"#casino-all-game",enabled:r.enabled&&r.game.casino.enabled,enabled_api:r.api_enabled},ACEWIN:{tabStatus:!1,tab:"casinoGame_acewin",tabHref:"#casino-all-game",enabled:m.enabled&&m.game.casino.enabled,enabled_api:m.api_enabled},JILI:{tabStatus:!1,tab:"casinoGame_jili",tabHref:"#casino-all-game",enabled:e.jiliCheckEnabled.enabled&&e.jiliCheckEnabled.game.casino_jili.enabled,enabled_api:e.jiliCheckEnabled.api_enabled},PPO:{tabStatus:!1,tab:"casinoGame_ppo",tabHref:"#casino-all-game",enabled:e.ppoCheckEnabled.enabled&&e.ppoCheckEnabled.game.casino.enabled,enabled_api:e.ppoCheckEnabled.api_enabled},HRG:{tabStatus:!1,tab:"casinoGame_hrg",tabHref:"#casino-all-game",enabled:e.hrgCheckEnabled.enabled&&e.hrgCheckEnabled.game.casino.enabled,enabled_api:e.hrgCheckEnabled.api_enabled},PS:{tabStatus:!1,tab:"casinoGame_ps",tabHref:"#casino-all-game",enabled:g.enabled&&g.game.table.enabled,enabled_api:g.api_enabled},PP_LIVE:{tabStatus:!1,tab:"casinoGame_pp",tabHref:"#casino-all-game",enabled:n.enabled&&n.game.PP_LIVE.enabled,enabled_api:n.api_enabled},SHORT77:{tabStatus:!1,tab:"casinoGame_short77",tabHref:"#casino-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled},SABA:{tabStatus:!1,tab:"casinoGame_saba",tabHref:"#casino-all-game",enabled:e.sabaCheckEnabled.enabled&&e.sabaCheckEnabled.game.casino.enabled,enabled_api:e.sabaCheckEnabled.api_enabled},MT:{tabStatus:!1,tab:"casinoGame_mt",tabHref:"#casino-all-game",enabled:o.enabled&&o.game.mt_cq9.enabled,enabled_api:o.api_enabled},TWOJ:{tabStatus:!1,tab:"casinoGame_twoj",tabHref:"#casino-all-game",enabled:e.twojCheckEnabled.enabled&&e.twojCheckEnabled.game.table.enabled,enabled_api:e.twojCheckEnabled.api_enabled}};e.listGame.casino.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();h[l]&&(e.listGame.casino.list[t].tab=h[l].tab,e.listGame.casino.list[t].enabled=h[l].enabled,e.listGame.casino.list[t].statusShow=!0,e.listGame.casino.list[t].nameShow=e.aliasMap[n]||l),"PP_LIVE"===e.listGame.casino.list[t].nameShow&&(e.listGame.casino.list[t].nameShow="PP"),"PPO"===e.listGame.casino.list[t].nameShow&&(e.listGame.casino.list[t].nameShow="PP"),"short77"===e.listGame.casino.list[t].nameShow&&(e.listGame.casino.list[t].nameShow="OMG"),"AG"===e.listGame.casino.list[t].nameShow&&(e.listGame.casino.list[t].nameShow="PA"),"TWOJ"===e.listGame.casino.list[t].nameShow&&(e.listGame.casino.list[t].nameShow="2J"),"JMK"!=e.listGame.casino.list[t].name&&"AMB"!=e.listGame.casino.list[t].name&&"SBOBET"!=e.listGame.casino.list[t].name&&e.listGame.casino.list[t].enabled||(e.listGame.casino.list[t].order=99),h[l]&&!h[l].enabled_api&&(e.listGame.casino.list[t].order=e.listGame.casino.list[t].order+e.listGame.casino.list.length)})),e.sortCasino=e.listGame.casino.list,_theme.tab_game_all.casino.enabled&&e.sortCasino.push({name:"ALL",order:0,tabStatus:!1,tab:"casinoGame_all",nameShow:"ALL",tabHref:"#casino-all-game",enabled:!1,trial:!1,nameShow:"ALL",line:"1"}),e.vip_game.enabled&&e.sortCasino.push({name:"VIP",order:.1,tabStatus:!1,tab:"casinoGame_vip",tabHref:"#casino-all-game",enabled:e.vip_game.enabled,trial:!1,nameShow:"OMG",icon_label:"hot",line:"1"}),e.tabGameCasinoFirstLine=[],e.tabGameCasinoSecondLine=[],e.sortCasino.forEach(((a,t)=>{a.enabled&&(a.line?"1"==a.line?e.tabGameCasinoFirstLine.push(a):e.tabGameCasinoSecondLine.push(a):(a.line="1",a.order=a.order+50,e.tabGameCasinoFirstLine.push(a)))}));let p=a.game_hall.UG,f=a.game_hall.win568,u=a.game_hall.SABASPORT,_={UG:{tabStatus:!1,tab:"sportGame_ug",tabHref:"#sport-all-game",enabled:p.enabled&&p.game.sport.enabled,nameShow:"UG",enabled_api:p.api_enabled},WIN568:{tabStatus:!1,tab:"sportGame_win568",tabHref:"#sport-all-game",enabled:f.enabled&&f.game.sport.enabled,nameShow:"WIN568",enabled_api:f.api_enabled},SHORT77:{tabStatus:!1,tab:"sportGame_short77",tabHref:"#sport-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled},PPO:{tabStatus:!1,tab:"sportGame_ppo",tabHref:"#sport-all-game",enabled:e.ppoCheckEnabled.enabled&&e.ppoCheckEnabled.game.sport.enabled,nameShow:"PP",enabled_api:e.ppoCheckEnabled.api_enabled},SABASPORT:{tabStatus:!1,tab:"sportGame_saba",tabHref:"#sport-all-game",enabled:u.enabled&&u.game.sport.enabled,nameShow:"SABA",enabled_api:u.api_enabled}};e.listGame.sport.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();_[l]&&(e.listGame.sport.list[t].tab=_[l].tab,e.listGame.sport.list[t].enabled=_[l].enabled,e.listGame.sport.list[t].nameShow=e.aliasMap[n]||_[l].nameShow,e.listGame.sport.list[t].statusShow=!0),e.listGame.sport.list[t].enabled||(e.listGame.sport.list[t].order=99),_[l]&&!_[l].enabled_api&&(e.listGame.sport.list[t].order=e.listGame.sport.list[t].order+e.listGame.sport.list.length),"PPO"===e.listGame.sport.list[t].nameShow&&(e.listGame.sport.list[t].nameShow="PP"),"short77"===e.listGame.sport.list[t].nameShow&&(e.listGame.sport.list[t].nameShow="OMG")})),e.sortSport=e.listGame.sport.list,_theme.tab_game_all.sport.enabled&&e.sortSport.push({name:"ALL",order:0,tabStatus:!1,tab:"sportGame_all",tabHref:"#sport-all-game",enabled:!1,trial:!1,nameShow:"ALL"});let k=a.game_hall.AMB,G=a.game_hall.BK89,y=a.game_hall.NINEKG,S={AMB:{tabStatus:!1,tab:"pokdengGame_amb",tabHref:"#pokdeng-all-game",enabled:k.enabled&&(k.game.board_game.enabled||k.game.card_game.enabled),nameShow:"AMB",enabled_api:k.api_enabled},JMK:{tabStatus:!1,tab:"pokdengGame_jmk",tabHref:"#pokdeng-all-game",enabled:G.enabled&&G.game.poker.enabled,nameShow:"JMK",enabled_api:G.api_enabled},NINEKG:{tabStatus:!1,tab:"pokdengGame_9kg",tabHref:"#pokdeng-all-game",enabled:y.enabled&&y.game.arcade.enabled,nameShow:"9KG",enabled_api:y.api_enabled},PS:{tabStatus:!1,tab:"pokdengGame_ps",tabHref:"#pokdeng-all-game",enabled:g.enabled&&g.game.table.enabled,nameShow:"PS",enabled_api:g.api_enabled},SHORT77:{tabStatus:!1,tab:"pokdengGame_short77",tabHref:"#pokdeng-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled}};e.listGame.pokdeng.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();S[l]&&(e.listGame.pokdeng.list[t].tab=S[l].tab,e.listGame.pokdeng.list[t].enabled=S[l].enabled,e.listGame.pokdeng.list[t].nameShow=e.aliasMap[n]||S[l].nameShow,e.listGame.pokdeng.list[t].statusShow=!0),e.listGame.pokdeng.list[t].enabled||(e.listGame.pokdeng.list[t].order=99),S[l]&&!S[l].enabled_api&&(e.listGame.pokdeng.list[t].order=e.listGame.pokdeng.list[t].order+e.listGame.pokdeng.list.length)})),e.sortPoker=e.listGame.pokdeng.list,_theme.tab_game_all.pokdeng.enabled&&e.sortPoker.push({name:"ALL",order:0,tabStatus:!1,tab:"pokdengGame_all",tabHref:"#pokdeng-all-game",enabled:!1,trial:!1,nameShow:"ALL"}),e.vip_game.enabled&&e.sortPoker.push({name:"VIP",order:.1,tabStatus:!1,tab:"pokdengGame_vip",tabHref:"#pokdeng-all-game",enabled:e.vip_game.enabled,trial:!1,nameShow:"OMG",icon_label:"hot"});let C={YB:{tabStatus:!1,tab:"bingoGame_yb",tabHref:"#bingo-all-game",enabled:e.ybCheckEnabled.enabled&&e.ybCheckEnabled.game.bingo_yb.enabled,nameShow:"YB",enabled_api:e.ybCheckEnabled.api_enabled},JILI:{tabStatus:!1,tab:"bingoGame_jili",tabHref:"#bingo-all-game",enabled:e.jiliCheckEnabled.enabled&&e.jiliCheckEnabled.game.bingo_jili.enabled,nameShow:"JILI",enabled_api:e.jiliCheckEnabled.api_enabled},ACEWIN:{tabStatus:!1,tab:"bingoGame_acewin",tabHref:"#bingo-all-game",enabled:e.acewinCheckEnabled.enabled&&e.acewinCheckEnabled.game.bingo.enabled,nameShow:"ACEWIN",enabled_api:e.acewinCheckEnabled.api_enabled},CQ9:{tabStatus:!1,tab:"bingoGame_cq9",tabHref:"#bingo-all-game",enabled:e.cq9CheckEnabled.enabled&&e.cq9CheckEnabled.game.bingo_cq9.enabled,nameShow:"CQ9",enabled_api:e.cq9CheckEnabled.api_enabled},FUNKY:{tabStatus:!1,tab:"bingoGame_funky",tabHref:"#bingo-all-game",enabled:e.funkyCheckEnabled.enabled&&e.funkyCheckEnabled.game.bingo.enabled,nameShow:"FUNKY",enabled_api:e.funkyCheckEnabled.api_enabled},SHORT77:{tabStatus:!1,tab:"bingoGame_short77",tabHref:"#bingo-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled}};e.listGame.bingo.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();C[l]&&(e.listGame.bingo.list[t].tab=C[l].tab,e.listGame.bingo.list[t].enabled=C[l].enabled,e.listGame.bingo.list[t].nameShow=e.aliasMap[n]||C[l].nameShow,e.listGame.bingo.list[t].statusShow=!0),e.listGame.bingo.list[t].enabled||(e.listGame.bingo.list[t].order=99),S[l]&&!C[l].enabled_api&&(e.listGame.bingo.list[t].order=e.listGame.bingo.list[t].order+e.listGame.bingo.list.length)})),e.sortBingo=e.listGame.bingo.list,_theme.tab_game_all.bingo.enabled&&e.sortBingo.push({name:"ALL",order:0,tabStatus:!1,tab:"bingoGame_all",tabHref:"#bingo-all-game",enabled:!1,trial:!1,nameShow:"ALL"}),e.vip_game.enabled&&e.sortBingo.push({name:"VIP",order:.1,tabStatus:!1,tab:"bingoGame_vip",tabHref:"#bingo-all-game",enabled:e.vip_game.enabled,trial:!1,nameShow:"OMG",icon_label:"hot"});let v=a.game_hall.TEZ,E=a.game_hall.SVL,A=a.game_hall.VR,w={TEZ:{tabStatus:!1,tab:"lotto_tez",tabHref:"#lotto-all-game",enabled:v.enabled&&v.game.lotto.enabled,nameShow:"TEZ",enabled_api:v.api_enabled},SVL:{tabStatus:!1,tab:"lotto_svl",tabHref:"#lotto-all-game",enabled:E.enabled&&E.game.lotto.enabled,nameShow:"SVL",enabled_api:E.api_enabled},VR:{tabStatus:!1,tab:"lotto_vr",tabHref:"#lotto-all-game",enabled:A.enabled&&A.game.lotto.enabled,nameShow:"VR",enabled_api:A.api_enabled},SHORT77:{tabStatus:!1,tab:"lotto_short77",tabHref:"#lotto-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled,nameShow:"OMG"}};e.listGame.lotto.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();w[l]&&(e.listGame.lotto.list[t].tabStatus=w[l].tabStatus,e.listGame.lotto.list[t].tab=w[l].tab,e.listGame.lotto.list[t].tabhref=/w[l].tabHref,e.listGame.lotto.list[t]=w[l].enabled),e.listGame.lotto.list[t].enabled||(e.listGame.lotto.list[t].order=99),e.listGame.lotto.list[t].nameShow=e.aliasMap[n]||l,"SVL"===e.listGame.lotto.list[t].nameShow&&(e.listGame.lotto.list[t].nameShow="Many Lotto"),w[l]&&!w[l].enabled_api&&(e.listGame.lotto.list[t].order=e.listGame.lotto.list[t].order+e.listGame.lotto.list.length)})),e.sortLotto=e.listGame.lotto.list,_theme.tab_game_all.lotto.enabled&&e.sortLotto.push({name:"ALL",order:0,tabStatus:!1,tab:"lotto_all",tabHref:"#lotto-all-game",enabled:!1,trial:!1,nameShow:"ALL"});let P=a.game_hall.SV388,L=a.game_hall.DS88,T={SV388:{tabStatus:!1,tab:"cockfight_sv388",tabHref:"#cockfight-all-game",enabled:P.enabled&&P.game.cock_fight.enabled,nameShow:"SV388",enabled_api:P.api_enabled},DS88:{tabStatus:!1,tab:"cockfight_ds88",tabHref:"#cockfight-all-game",enabled:L.enabled&&L.game.cock_fight.enabled,nameShow:"DS88",enabled_api:L.api_enabled}};e.listGame?.cockfight?.list?(e.listGame?.cockfight?.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();T[l]&&(e.listGame.cockfight.list[t].tab=T[l].tab,e.listGame.cockfight.list[t].enabled=T[l].enabled,e.listGame.cockfight.list[t].nameShow=e.aliasMap[n]||T[l].nameShow,e.listGame.cockfight.list[t].statusShow=!0),e.listGame.cockfight.list[t].enabled||(e.listGame.cockfight.list[t].order=99),T[l]&&!T[l].enabled_api&&(e.listGame.cockfight.list[t].order=e.listGame.cockfight.list[t].order+e.listGame.cockfight.list.length)})),e.sortCockfight=e.listGame.cockfight.list):e.sortCockfight=[],_theme.tab_game_all?.cockfight?.enabled&&e.sortCockfight.push({name:"ALL",line:"1",order:0,tabStatus:!1,nameShow:"ALL",tab:"cockfightGame_all",tabHref:"#cockfight-all-game",enabled:!1,trial:!1,nameShow:"ALL"});let N={JDB:{tabStatus:!1,tab:"slot",tabHref:"#slot-all-game",enabled:e.jdbCheckEnabled.enabled&&e.jdbCheckEnabled.game.slot.enabled,enabled_api:e.jdbCheckEnabled.api_enabled},JILI:{tabStatus:!1,tab:"slot_jili",tabHref:"#slot-all-game",enabled:e.jiliCheckEnabled.enabled&&e.jiliCheckEnabled.game.slot_jili.enabled,enabled_api:e.jiliCheckEnabled.api_enabled},PPO:{tabStatus:!1,tab:"slot_ppo",tabHref:"#slot-all-game",enabled:e.ppoCheckEnabled.enabled&&e.ppoCheckEnabled.game.slot.enabled,enabled_api:e.ppoCheckEnabled.api_enabled},CQ9:{tabStatus:!1,tab:"slot_cq9",tabHref:"#slot-all-game",enabled:e.cq9CheckEnabled.enabled&&e.cq9CheckEnabled.game.slot_cq9.enabled,enabled_api:e.cq9CheckEnabled.api_enabled},RT:{tabStatus:!1,tab:"slot_rt",tabHref:"#slot-all-game",enabled:e.awcCheckEnabled.enabled&&e.awcCheckEnabled.game.rt.enabled,enabled_api:e.awcCheckEnabled.api_enabled},PT:{tabStatus:!1,tab:"playTech",tabHref:"#slot-all-game",enabled:e.ptCheckEnabled.enabled&&e.ptCheckEnabled.game.playTech.enabled,enabled_api:e.ptCheckEnabled.api_enabled},FC:{tabStatus:!1,tab:"slot_fc",tabHref:"#slot-all-game",enabled:e.fcCheckEnabled.enabled&&e.fcCheckEnabled.game.slot.enabled,enabled_api:e.fcCheckEnabled.api_enabled},AMB:{tabStatus:!1,tab:"slot_amb",tabHref:"#slot-all-game",enabled:e.ambCheckEnabled.enabled&&e.ambCheckEnabled.game.slot_amb.enabled,enabled_api:e.ambCheckEnabled.api_enabled},RSG:{tabStatus:!1,tab:"slot_rsg",tabHref:"#slot-all-game",enabled:e.rsgCheckEnabled.enabled&&e.rsgCheckEnabled.game.slot_rsg.enabled,enabled_api:e.rsgCheckEnabled.api_enabled},PG:{tabStatus:!1,tab:"slot_pg",tabHref:"#slot-all-game",enabled:e.pgCheckEnabled.enabled&&e.pgCheckEnabled.game.slot_pg.enabled,enabled_api:e.pgCheckEnabled.api_enabled},KA:{tabStatus:!1,tab:"slot_ka",tabHref:"#slot-all-game",enabled:e.kaCheckEnabled.enabled&&e.kaCheckEnabled.game.slot_ka.enabled,enabled_api:e.kaCheckEnabled.api_enabled},YB:{tabStatus:!1,tab:"slot_yb",tabHref:"#slot-all-game",enabled:e.ybCheckEnabled.enabled&&e.ybCheckEnabled.game.slot_yb.enabled,enabled_api:e.ybCheckEnabled.api_enabled},MABU:{tabStatus:!1,tab:"slot_mabu",tabHref:"#slot-all-game",enabled:e.mabuCheckEnabled.enabled&&e.mabuCheckEnabled.game.slot_mabu.enabled,enabled_api:e.mabuCheckEnabled.api_enabled},YGG:{tabStatus:!1,tab:"slot_ygg",tabHref:"#slot-all-game",enabled:e.yggCheckEnabled.enabled&&e.yggCheckEnabled.game.slot.enabled,enabled_api:e.yggCheckEnabled.api_enabled},PP:{tabStatus:!1,tab:"slot_pp",tabHref:"#slot-all-game",enabled:e.awcCheckEnabled.enabled&&e.awcCheckEnabled.game.pp.enabled,enabled_api:e.awcCheckEnabled.api_enabled},JOKER:{tabStatus:!1,tab:"slot_joker",tabHref:"#slot-all-game",enabled:e.jokerCheckEnabled.enabled&&e.jokerCheckEnabled.game.slot_joker.enabled,enabled_api:e.jokerCheckEnabled.api_enabled},ACEWIN:{tabStatus:!1,tab:"slot_acewin",tabHref:"#slot-all-game",enabled:e.acewinCheckEnabled.enabled&&e.acewinCheckEnabled.game.slot.enabled,enabled_api:e.acewinCheckEnabled.api_enabled},PS:{tabStatus:!1,tab:"slot_ps",tabHref:"#slot-all-game",enabled:e.psCheckEnabled.enabled&&e.psCheckEnabled.game.slot.enabled,enabled_api:e.psCheckEnabled.api_enabled},FIVEG:{tabStatus:!1,tab:"slot_fiveg",tabHref:"#slot-all-game",enabled:e.fivegCheckEnabled.enabled&&e.fivegCheckEnabled.game.slot.enabled,enabled_api:e.fivegCheckEnabled.api_enabled},HS:{tabStatus:!1,tab:"slot_hs",tabHref:"#slot-all-game",enabled:e.yggCheckEnabled.enabled&&e.yggCheckEnabled.game.hs_slot.enabled,enabled_api:e.yggCheckEnabled.api_enabled},FUNKY:{tabStatus:!1,tab:"slot_funky",tabHref:"#slot-all-game",enabled:e.funkyCheckEnabled.enabled&&e.funkyCheckEnabled.game.slot.enabled,enabled_api:e.funkyCheckEnabled.api_enabled},WONWON:{tabStatus:!1,tab:"slot_wonwon",tabHref:"#slot-all-game",enabled:e.wonwonCheckEnabled.enabled&&e.wonwonCheckEnabled.game.slot.enabled,enabled_api:e.wonwonCheckEnabled.api_enabled},SHORT77:{tabStatus:!1,tab:"slot_short77",tabHref:"#slot-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.slot.enabled,enabled_api:e.short77CheckEnabled.api_enabled},VP:{tabStatus:!1,tab:"slot_vp",tabHref:"#slot-all-game",enabled:e.vpCheckEnabled.enabled&&e.vpCheckEnabled.game.slot.enabled,enabled_api:e.vpCheckEnabled.api_enabled},SABA:{tabStatus:!1,tab:"slot_saba",tabHref:"#slot-all-game",enabled:e.sabaCheckEnabled.enabled&&e.sabaCheckEnabled.game.slot.enabled,enabled_api:e.sabaCheckEnabled.api_enabled},KYG:{tabStatus:!1,tab:"slot_kyg",tabHref:"#slot-all-game",enabled:e.kygCheckEnabled.enabled&&e.kygCheckEnabled.game.slot.enabled,enabled_api:e.kygCheckEnabled.api_enabled},BNG:{tabStatus:!1,tab:"slot_bng",tabHref:"#slot-all-game",enabled:e.bngCheckEnabled.enabled&&e.bngCheckEnabled.game.slot.enabled,enabled_api:e.bngCheckEnabled.api_enabled},TWOJ:{tabStatus:!1,tab:"slot_twoj",tabHref:"#slot-all-game",enabled:e.twojCheckEnabled.enabled&&e.twojCheckEnabled.game.slot.enabled,enabled_api:e.twojCheckEnabled.api_enabled},VA:{tabStatus:!1,tab:"slot_va",tabHref:"#slot-all-game",enabled:e.vaCheckEnabled.enabled&&e.vaCheckEnabled.game.slot.enabled,enabled_api:e.vaCheckEnabled.api_enabled},CG:{tabStatus:!1,tab:"slot_cg",tabHref:"#slot-all-game",enabled:e.cgCheckEnabled.enabled&&e.cgCheckEnabled.game.slot.enabled,enabled_api:e.cgCheckEnabled.api_enabled}};e.listGame.slot.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();N[l]&&(e.listGame.slot.list[t].tabStatus=N[l].tabStatus,e.listGame.slot.list[t].tab=N[l].tab,e.listGame.slot.list[t].tabhref=/N[l].tabHref,e.listGame.slot.list[t]=N[l].enabled),e.listGame.slot.list[t].nameShow=e.aliasMap[n]||l,"FIVEG"===e.listGame.slot.list[t].nameShow&&(e.listGame.slot.list[t].nameShow="5G"),"WONWON"===e.listGame.slot.list[t].nameShow&&(e.listGame.slot.list[t].nameShow="WW"),"short77"===e.listGame.slot.list[t].nameShow&&(e.listGame.slot.list[t].nameShow="OMG"),"PPO"===e.listGame.slot.list[t].nameShow&&(e.listGame.slot.list[t].nameShow="PP"),"TWOJ"===e.listGame.slot.list[t].nameShow&&(e.listGame.slot.list[t].nameShow="2J"),e.listGame.slot.list[t].enabled||(e.listGame.slot.list[t].order=99),N[l]&&!N[l].enabled_api&&(e.listGame.slot.list[t].order=e.listGame.slot.list[t].order+e.listGame.slot.list.length)})),e.sortSlot=e.listGame.slot.list,_theme.tab_game_all.slot.enabled&&e.sortSlot.push({name:"ALL",order:0,tabStatus:!1,tab:"slot_all",tabHref:"#slot-all-game",enabled:!1,trial:!1,nameShow:"ALL",line:"1"}),e.vip_game.enabled&&e.sortSlot.push({name:"VIP",order:.1,tabStatus:!1,tab:"slot_vip",tabHref:"#slot-all-game",enabled:e.vip_game.enabled,trial:!1,nameShow:"OMG",icon_label:"hot",line:"1"}),e.tabGameSlotFirstLine=[],e.tabGameSlotSecondLine=[],e.sortSlot.forEach(((a,t)=>{a.enabled&&(a.line?"1"==a.line?e.tabGameSlotFirstLine.push(a):e.tabGameSlotSecondLine.push(a):(a.line="1",a.order=a.order+50,e.tabGameSlotFirstLine.push(a)))}));let B={};B=["550ww","mthai7"].includes(_theme.siteName.toLowerCase())?{JDB:{tabStatus:!1,tab:"videoGame",tabHref:"#fish-all-game",enabled:e.jdbCheckEnabled.enabled&&e.jdbCheckEnabled.game.fish.enabled,enabled_api:e.jdbCheckEnabled.api_enabled},CQ9:{tabStatus:!1,tab:"videoGame_cq9",tabHref:"#fish-all-game",enabled:e.cq9CheckEnabled.enabled&&e.cq9CheckEnabled.game.fish_cq9.enabled,enabled_api:e.cq9CheckEnabled.api_enabled},FC:{tabStatus:!1,tab:"videoGame_fc",tabHref:"#fish-all-game",enabled:e.fcCheckEnabled.enabled&&e.fcCheckEnabled.game.fish.enabled,enabled_api:e.fcCheckEnabled.api_enabled},KA:{tabStatus:!1,tab:"videoGame_ka",tabHref:"#fish-all-game",enabled:e.kaCheckEnabled.enabled&&e.kaCheckEnabled.game.fish_ka.enabled,enabled_api:e.kaCheckEnabled.api_enabled},JOKER:{tabStatus:!1,tab:"videoGame_joker",tabHref:"#fish-all-game",enabled:e.jokerCheckEnabled.enabled&&e.jokerCheckEnabled.game.fish_joker.enabled,enabled_api:e.jokerCheckEnabled.api_enabled},RSG:{tabStatus:!1,tab:"videoGame_rsg",tabHref:"#fish-all-game",enabled:e.rsgCheckEnabled.enabled&&e.rsgCheckEnabled.game.fish_rsg.enabled,enabled_api:e.rsgCheckEnabled.api_enabled},JILI:{tabStatus:!1,tab:"videoGame_jili",tabHref:"#fish-all-game",enabled:e.jiliCheckEnabled.enabled&&e.jiliCheckEnabled.game.fish_jili.enabled,enabled_api:e.jiliCheckEnabled.api_enabled},AMB:{tabStatus:!1,tab:"arcadeGame_amb",tabHref:"#fish-all-game",enabled:e.ambCheckEnabled.enabled&&(e.ambCheckEnabled.game.arcade.enabled||e.ambCheckEnabled.game.fish_amb.enabled),enabled_api:e.ambCheckEnabled.api_enabled},YB:{tabStatus:!1,tab:"videoGame_yb",tabHref:"#fish-all-game",enabled:e.ybCheckEnabled.enabled&&e.ybCheckEnabled.game.fish_yb.enabled,enabled_api:e.ybCheckEnabled.api_enabled},ACEWIN:{tabStatus:!1,tab:"videoGame_acewin",tabHref:"#fish-all-game",enabled:e.acewinCheckEnabled.enabled&&e.acewinCheckEnabled.game.fish.enabled,enabled_api:e.acewinCheckEnabled.api_enabled},PS:{tabStatus:!1,tab:"videoGame_ps",tabHref:"#fish-all-game",enabled:e.psCheckEnabled.enabled&&e.psCheckEnabled.game.fish.enabled,enabled_api:e.psCheckEnabled.api_enabled},FUNKY:{tabStatus:!1,tab:"videoGame_funky",tabHref:"#fish-all-game",enabled:e.funkyCheckEnabled.enabled&&e.funkyCheckEnabled.game.fish.enabled,enabled_api:e.funkyCheckEnabled.api_enabled},SHORT77:{tabStatus:!1,tab:"videoGame_short77",tabHref:"#fish-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled},WONWON:{tabStatus:!1,tab:"videoGame_wonwon",tabHref:"#fish-all-game",enabled:e.wonwonCheckEnabled.enabled&&e.wonwonCheckEnabled.game.fish.enabled,enabled_api:e.wonwonCheckEnabled.api_enabled},TWOJ:{tabStatus:!1,tab:"videoGame_twoj",tabHref:"#fish-all-game",enabled:e.twojCheckEnabled.enabled&&e.twojCheckEnabled.game.fish.enabled,enabled_api:e.twojCheckEnabled.api_enabled},VA:{tabStatus:!1,tab:"videoGame_va",tabHref:"#fish-all-game",enabled:e.vaCheckEnabled.enabled&&e.vaCheckEnabled.game.fish.enabled,enabled_api:e.vaCheckEnabled.api_enabled}}:{JDB:{tabStatus:!1,tab:"videoGame",tabHref:"#fish-all-game",enabled:e.jdbCheckEnabled.enabled&&e.jdbCheckEnabled.game.fish.enabled,enabled_api:e.jdbCheckEnabled.api_enabled},CQ9:{tabStatus:!1,tab:"videoGame_cq9",tabHref:"#fish-all-game",enabled:e.cq9CheckEnabled.enabled&&e.cq9CheckEnabled.game.fish_cq9.enabled,enabled_api:e.cq9CheckEnabled.api_enabled},FC:{tabStatus:!1,tab:"videoGame_fc",tabHref:"#fish-all-game",enabled:e.fcCheckEnabled.enabled&&e.fcCheckEnabled.game.fish.enabled,enabled_api:e.fcCheckEnabled.api_enabled},KA:{tabStatus:!1,tab:"videoGame_ka",tabHref:"#fish-all-game",enabled:e.kaCheckEnabled.enabled&&e.kaCheckEnabled.game.fish_ka.enabled,enabled_api:e.kaCheckEnabled.api_enabled},JOKER:{tabStatus:!1,tab:"videoGame_joker",tabHref:"#fish-all-game",enabled:e.jokerCheckEnabled.enabled&&e.jokerCheckEnabled.game.fish_joker.enabled,enabled_api:e.jokerCheckEnabled.api_enabled},RSG:{tabStatus:!1,tab:"videoGame_rsg",tabHref:"#fish-all-game",enabled:e.rsgCheckEnabled.enabled&&e.rsgCheckEnabled.game.fish_rsg.enabled,enabled_api:e.rsgCheckEnabled.api_enabled},JILI:{tabStatus:!1,tab:"videoGame_jili",tabHref:"#fish-all-game",enabled:e.jiliCheckEnabled.enabled&&e.jiliCheckEnabled.game.fish_jili.enabled,enabled_api:e.jiliCheckEnabled.api_enabled},PPO:{tabStatus:!1,tab:"videoGame_ppo",tabHref:"#fish-all-game",enabled:e.ppoCheckEnabled.enabled&&e.ppoCheckEnabled.game.arcade.enabled,enabled_api:e.ppoCheckEnabled.api_enabled},AMB:{tabStatus:!1,tab:"videoGame_amb",tabHref:"#fish-all-game",enabled:e.ambCheckEnabled.enabled&&(e.ambCheckEnabled.game.arcade.enabled||e.ambCheckEnabled.game.fish_amb.enabled),enabled_api:e.ambCheckEnabled.api_enabled},YB:{tabStatus:!1,tab:"videoGame_yb",tabHref:"#fish-all-game",enabled:e.ybCheckEnabled.enabled&&e.ybCheckEnabled.game.fish_yb.enabled,enabled_api:e.ybCheckEnabled.api_enabled},ACEWIN:{tabStatus:!1,tab:"videoGame_acewin",tabHref:"#fish-all-game",enabled:e.acewinCheckEnabled.enabled&&e.acewinCheckEnabled.game.fish.enabled,enabled_api:e.acewinCheckEnabled.api_enabled},PS:{tabStatus:!1,tab:"videoGame_ps",tabHref:"#fish-all-game",enabled:e.psCheckEnabled.enabled&&e.psCheckEnabled.game.fish.enabled,enabled_api:e.psCheckEnabled.api_enabled},HS:{tabStatus:!1,tab:"videoGame_hs",tabHref:"#fish-all-game",enabled:e.yggCheckEnabled.enabled&&e.yggCheckEnabled.game.hs_arcade.enabled,enabled_api:e.yggCheckEnabled.api_enabled},FUNKY:{tabStatus:!1,tab:"videoGame_funky",tabHref:"#fish-all-game",enabled:e.funkyCheckEnabled.enabled&&e.funkyCheckEnabled.game.fish.enabled,enabled_api:e.funkyCheckEnabled.api_enabled},PP_EGAME:{tabStatus:!1,tab:"videoGame_pp",tabHref:"#fish-all-game",enabled:e.awcCheckEnabled.enabled&&e.awcCheckEnabled.game.PP_EGAME.enabled,enabled_api:e.funkyCheckEnabled.api_enabled},SHORT77:{tabStatus:!1,tab:"videoGame_short77",tabHref:"#fish-all-game",enabled:e.short77CheckEnabled.enabled&&e.short77CheckEnabled.game.poker.enabled,enabled_api:e.short77CheckEnabled.api_enabled},SABA:{tabStatus:!1,tab:"videoGame_saba",tabHref:"#fish-all-game",enabled:e.sabaCheckEnabled.enabled&&e.sabaCheckEnabled.game.arcade.enabled,enabled_api:e.sabaCheckEnabled.api_enabled},KYG:{tabStatus:!1,tab:"videoGame_kyg",tabHref:"#fish-all-game",enabled:e.kygCheckEnabled.enabled&&(e.kygCheckEnabled.game.lottery.enabled||e.kygCheckEnabled.game.original.enabled||e.kygCheckEnabled.game.table.enabled),enabled_api:e.kygCheckEnabled.api_enabled},WONWON:{tabStatus:!1,tab:"videoGame_wonwon",tabHref:"#fish-all-game",enabled:e.wonwonCheckEnabled.enabled&&e.wonwonCheckEnabled.game.fish.enabled,enabled_api:e.wonwonCheckEnabled.api_enabled},TWOJ:{tabStatus:!1,tab:"videoGame_twoj",tabHref:"#fish-all-game",enabled:e.twojCheckEnabled.enabled&&(e.twojCheckEnabled.game.fish.enabled||e.twojCheckEnabled.game.multiplayer.enabled||e.twojCheckEnabled.game.crypto.enabled),enabled_api:e.twojCheckEnabled.api_enabled},VA:{tabStatus:!1,tab:"videoGame_va",tabHref:"#fish-all-game",enabled:e.vaCheckEnabled.enabled&&e.vaCheckEnabled.game.fish.enabled,enabled_api:e.vaCheckEnabled.api_enabled},CG:{tabStatus:!1,tab:"videoGame_cg",tabHref:"#fish-all-game",enabled:e.cgCheckEnabled.enabled&&e.cgCheckEnabled.game.crash.enabled,enabled_api:e.cgCheckEnabled.api_enabled}},e.listGame.fish.list.forEach(((a,t)=>{const l=a.name.toUpperCase()||a.name,n=a.name.toLowerCase();B[l]&&(e.listGame.fish.list[t].tabStatus=B[l].tabStatus,e.listGame.fish.list[t].tab=B[l].tab,e.listGame.fish.list[t].tabhref=/B[l].tabHref,e.listGame.fish.list[t]=B[l].enabled),e.listGame.fish.list[t].nameShow=e.aliasMap[n]||l,"PP_EGAME"==e.listGame.fish.list[t].nameShow&&(e.listGame.fish.list[t].nameShow="PP"),"PPO"==e.listGame.fish.list[t].nameShow&&(e.listGame.fish.list[t].nameShow="PP"),"short77"==e.listGame.fish.list[t].nameShow&&(e.listGame.fish.list[t].nameShow="OMG"),"WONWON"==e.listGame.fish.list[t].nameShow&&(e.listGame.fish.list[t].nameShow="WW"),"TWOJ"==e.listGame.fish.list[t].nameShow&&(e.listGame.fish.list[t].nameShow="2J"),e.listGame.fish.list[t].enabled||(e.listGame.fish.list[t].order=99),B[l]&&!B[l].enabled_api&&(e.listGame.fish.list[t].order=e.listGame.fish.list[t].order+e.listGame.fish.list.length)})),e.sortVideo=e.listGame.fish.list,_theme.tab_game_all.fish.enabled&&e.sortVideo.push({name:"ALL",order:0,tabStatus:!1,enabled:!1,tab:"videoGame_all",tabHref:"#fish-all-game",trial:!1,nameShow:"ALL",line:"1"}),e.vip_game.enabled&&e.sortVideo.push({name:"VIP",order:.1,tabStatus:!1,tab:"videoGame_vip",tabHref:"#fish-all-game",enabled:e.vip_game.enabled,trial:!1,nameShow:"OMG",icon_label:"hot",line:"1"}),e.tabGameVideoFirstLine=[],e.tabGameVideoSecondLine=[],e.sortVideo.forEach(((a,t)=>{a.enabled&&(a.line?"1"==a.line?e.tabGameVideoFirstLine.push(a):e.tabGameVideoSecondLine.push(a):(a.line="1",a.order=a.order+50,e.tabGameVideoFirstLine.push(a)))}));e.ds88CheckEnabled.enabled&&e.ds88CheckEnabled.game.cock_fight.enabled,e.ds88CheckEnabled.api_enabled;if(e.listGames.slot_yb=[],setTimeout((()=>{let a=new URLSearchParams(window.location.search),t="";if(a.get("tab")&&(t=a.get("tab")),a.get("tabGame")&&a.get("tab")){let l=a.get("tabGame");l=l.toLowerCase(),e.clickBannersGame(l,t)}else t.includes("slot")?e.clickTabGamesSlot(!0):t.includes("fish")?e.clickTabGamesFish(!0):t.includes("arcade")?"550ww"==_theme.siteName||"mthai7"==_theme.siteName?e.clickTabGamesArcade(!0):e.clickTabGamesFish(!0):t.includes("casino")?e.clickTabGamesCASINO(!0):t.includes("bingo")?e.clickTabGamesBingo(!0):t.includes("sport")?e.clickTabGamesSport(!0):t.includes("lotto")?e.clickTabGamesLotto():t.includes("arcade")?e.clickTabGamesArcade(!0):e.clickTabGamesSlot(!0);$(document).ready((function(){document.getElementById("topGameTabs")&&document.getElementById("topGameTabs").scrollIntoView()}))}),1e3),e.ybCheckEnabled.enabled&&e.ybCheckEnabled.game.slot_yb.enabled)for(let t in a.game_hall.YB.game.slot_yb.list){let l=a.game_hall.YB.game.slot_yb.list[t];l.enabled&&(l.vendor="YB",l.text_time=a.game_hall.YB.maintenance.text_time,l.time_zone=a.game_hall.YB.maintenance.time_zone,l.trial=a.game_hall.YB.game.slot_yb.trial,l.gType=a.game_hall.YB.game.slot_yb.gType,l.iframe=a.game_hall.YB.iframe,l.img=e.setPathImageGame_ALL(l.vendor,l.gType,l.type,l.en_US,l.thumbnail),l.favorite=!1,l.notPlayTrial=!0,"mm"in l&&""!==l.th||(l.mm=l.en_US,l.th=l.en_US),_GobalLogin&&"list_fav_game"in a&&"object"==typeof a.list_fav_game&&a.list_fav_game.includes(l.type)&&(l.favorite=!0),e.listGames.slot_yb.push(l))}e.jackPotGrand=0,e.jackPotMajor=0,e.listYbJackPot=[],e.listYbNotJackPot=[],e.jackData={},e.ybJackPot_Show=e.ybJackPot&&e.ybCheckEnabled.enabled&&e.ybCheckEnabled.api_enabled&&e.ybWinnerJackPot,setTimeout((()=>{e.ybJackPot&&e.ybCheckEnabled.enabled&&e.ybCheckEnabled.api_enabled?ajax("/api/getJackpotWinnerYB",(function(a){e.$apply((function(){if("0000"==a.code){let t={};a.data.dataJackpot.jackpotTypeList.forEach(((l,n)=>{if("TreasureLink"==l.jackpotType){t=l;for(let a=0;a0&&(n.data.dataJackpotWinner[0].recordList.forEach(((e,a)=>{e.uid=e.uid.slice(0,-3)+"xxx",e.recordTime=moment(e.recordTime).format("YYYY-MM-DD HH:mm"),e.jackpotWin=new Intl.NumberFormat("th-TH",{maximumFractionDigits:2}).format(e.jackpotWin)})),e.jackData=n)}}))}else e.listYbNotJackPot=e.listGames.slot_yb;e.listYbNotJackPot_all=JSON.parse(JSON.stringify(e.listYbNotJackPot)),e.listGamesSlotYBSortByCountPlayNotJackPot=JSON.parse(JSON.stringify(e.listYbNotJackPot)),e.listGamesSlotYBSortByCountPlayNotJackPot.sort(((e,a)=>{if(e.countPlay!==a.countPlay)return a.countPlay-e.countPlay}))}))})):(e.listYbNotJackPot=e.listGames.slot_yb,e.listYbNotJackPot_all=e.listYbNotJackPot)}),1e3),document.querySelectorAll(".panel.winner-rank .wrapper-select-gamehall-ranking button").length>8&&(document.querySelectorAll(".panel.winner-rank .wrapper-select-gamehall-ranking")[0].style.overflow="auto")}))}),{config:{game_all:"game_hall",vip_game:"vip_game",conf_homepage:"homepage",listGame:"feature.list_game",fix_game_top:"feature.fix_game_top",deposit_on_game:"feature.deposit_on_game",jackpot_yb:"feature.jackpot_yb.enabled",jackpot_yb_winner:"feature.today_winner_jackpot.enabled"}}),e.setTabAllSlot=function(a){void 0!==a&&(e.tabNames=a);for(let t in e.sortSlot)e.sortSlot[t].tab=!1,e.sortSlot[t].name===a&&(e.sortSlot[t].enabled?(e.sortSlot[t].tab=!0,e.initAllSlot(a)):e.clickTabGamesSlot())},e.getWinnerYB=function(){$(".modal_yb_jackpot_show").css("display","block")},e.closeJackpotYb=function(){$(".modal_yb_jackpot_show").css("display","none")},e.clickBannersGame=function(a,t){"short77"==a&&(a="vip");let l=a;"win568"!=a&&(l=a.toUpperCase());let n=!1;if(n=!("vip"!=a.toLowerCase()||!e.vip_game.enabled)||("pp"==a.toLowerCase()?!!e.configGamehall.AWC&&(e.configGamehall.AWC.enabled&&e.configGamehall.AWC.game.pp.enabled):!!e.configGamehall[l]&&e.configGamehall[l].enabled),(t.includes("slot")||a.includes("pp"))&&n||t.includes("poker")&&a.includes("vip")&&n){t="slot-all-game",$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #slot-all-game").addClass("active"),"awc"==a&&(a="pp");let l=e.sortSlot;"YGG"==a.toUpperCase()&&"hs_slot"==t&&(t="slot_hs",a="HS");for(let t in l)"jdb"!=a?l[t].tab&&l[t].tab.includes(a.toLowerCase())&&l[t].enabled&&e.saveActiveTabGames(l[t].tab):l[t].enabled&&l[t].name==a.toUpperCase()&&e.saveActiveTabGames(l[t].tab)}else if(t.includes("fish")&&n){t="fish-all-game",$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #fish-all-game").addClass("active");let l=e.sortVideo;for(let t in l)"jdb"!=a?l[t].tab&&l[t].tab.includes(a.toLowerCase())&&l[t].enabled&&e.saveActiveTabGames(l[t].tab):l[t].enabled&&l[t].name==a.toUpperCase()&&e.saveActiveTabGames(l[t].tab)}else if((t.includes("arcade")||t.includes("fruit")||t.includes("other")||t.includes("funky")||t.includes("dozer")||t.includes("multisingle"))&&n)if(t="arcade-all-game","550ww"==_theme.siteName||"mthai7"==_theme.siteName){$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #arcade-all-game").addClass("active");let l=e.sortArcade;"YGG"==a.toUpperCase()&&"hs_arcade"==t&&(t="arcade_hs",a="HS");for(let t in l)"jdb"!=a?l[t].tab&&l[t].tab.includes(a.toLowerCase())&&l[t].enabled&&e.saveActiveTabGames(l[t].tab):l[t].enabled&&l[t].name==a.toUpperCase()&&e.saveActiveTabGames(l[t].tab)}else{$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #fish-all-game").addClass("active");let l=e.sortVideo;"YGG"==a.toUpperCase()&&"hs_arcade"==t&&(t="arcade_hs",a="HS");for(let t in l)l[t].tab&&("jdb"!=a?l[t].tab.includes(a.toLowerCase())&&l[t].enabled&&e.saveActiveTabGames(l[t].tab):l[t].enabled&&l[t].name==a.toUpperCase()&&e.saveActiveTabGames(l[t].tab))}else if((t.includes("casino")||t.includes("table")||t.includes("board")||t.includes("card")||t.includes("baccarat")||t.includes("sexybcrt")||t.includes("poker_ka")||t.includes("pokdeng")||t.includes("poker"))&&n){if(t="casino-all-game",["amb","bk89","ninekg","ps"].includes(a.toLowerCase())){"ninekg"==a.toLowerCase()&&(t="arcade",a="9kg"),"bk89"==a.toLowerCase()&&(a="jmk"),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #pokdeng-all-game").addClass("active");let l=e.sortPoker;for(let t in l)"jdb"!=a?l[t].tab&&l[t].tab.includes(a.toLowerCase())&&l[t].enabled&&e.saveActiveTabGames(l[t].tab):l[t].enabled&&l[t].name==a.toUpperCase()&&e.saveActiveTabGames(l[t].tab)}else{$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #casino-all-game").addClass("active");let t=e.sortCasino;for(let l in t)t[l].tab&&("jdb"==a&&t[l].enabled&&t[l].name==a.toUpperCase()&&e.saveActiveTabGames(t[l].tab),"awc"==a?t[l].enabled&&"SEXY"==t[l].name&&e.saveActiveTabGames(t[l].tab):t[l].tab.includes(a.toLowerCase())&&t[l].enabled&&e.saveActiveTabGames(t[l].tab))}}else if(t.includes("sport")&&n){"sabasport"==a&&(a="saba"),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #sport-all-game").addClass("active");let t=e.sortSport;for(let l in t)t[l].tab&&t[l].tab.includes(a.toLowerCase())&&t[l].enabled&&e.saveActiveTabGames(t[l].tab)}else if((t.includes("lotto")||t.includes("vr"))&&n){$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #lotto-all-game").addClass("active"),"tez"==a.toLowerCase()&&e.tezApilotto();let t=e.sortLotto;for(let l in t)t[l].tab&&t[l].tab.includes(a.toLowerCase())&&t[l].enabled&&e.saveActiveTabGames(t[l].tab)}else if(t.includes("bingo")&&n){$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #bingo-all-game").addClass("active"),t="bingo-all-game";let l=e.sortBingo;for(let t in l)l[t].tab&&l[t].tab.includes(a.toLowerCase())&&l[t].enabled&&e.saveActiveTabGames(l[t].tab)}else t.includes("cockfight")&&n?($(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #cockfight-all-game").addClass("active"),e.clickTabGamesCockfight()):swal({title:a.toUpperCase()+' Game Provider In Maintenance.',text:'Please contact customer service',imageSize:"100x100",confirmButtonText:'ตกลง'})},e.tez_tab=!1,e.saveActiveTabGames=function(a){e.tez_tab="lotto_tez"==a,a!=e.currentTabView&&(e.sortSlot.forEach(((t,l)=>{e.sortSlot[l].tabStatus=!1,t.tab==a&&(e.sortSlot[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortSlot[l].name,e.initAllSlot(e.tabNames)))})),e.sortVideo.forEach(((t,l)=>{e.sortVideo[l].tabStatus=!1,t.tab==a&&(e.sortVideo[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortVideo[l].name,e.initAllFish(e.tabNames)))})),e.sortArcade.forEach(((t,l)=>{e.sortArcade[l].tabStatus=!1,t.tab===a&&(e.sortArcade[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortArcade[l].name,e.initAllArcade(e.tabNames)))})),e.sortCasino.forEach(((t,l)=>{e.sortCasino[l].tabStatus=!1,t.tab===a&&(e.sortCasino[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortCasino[l].name,e.initAllCasino(e.tabNames)))})),e.sortBingo.forEach(((t,l)=>{e.sortBingo[l].tabStatus=!1,t.tab===a&&(e.sortBingo[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortBingo[l].name,e.initAllBingo(e.tabNames)))})),e.sortSport.forEach(((t,l)=>{e.sortSport[l].tabStatus=!1,t.tab===a&&(e.sortSport[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortSport[l].name,e.initAllSport(e.tabNames)))})),e.sortLotto.forEach(((t,l)=>{e.sortLotto[l].tabStatus=!1,t.tab===a&&(e.sortLotto[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortLotto[l].name,e.initAllLotto(e.tabNames)))})),e.sortPoker.forEach(((t,l)=>{e.sortPoker[l].tabStatus=!1,t.tab===a&&(e.sortPoker[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortPoker[l].name,e.initAllPokdeng(e.tabNames)))})),e.sortCockfight.forEach(((t,l)=>{e.sortCockfight[l].tabStatus=!1,t.tab===a&&(e.sortCockfight[l].tabStatus=!0,t.enabled&&(e.tabNames=e.sortCockfight[l].name,e.initAllCockfight(e.tabNames)))})),e.currentTabView=a)},e.passwordVision=function(){"password"==document.getElementById("login_pass").type?(document.getElementById("login_pass").type="text",document.getElementById("passIconVision").innerHTML=''):(document.getElementById("login_pass").type="password",document.getElementById("passIconVision").innerHTML='')},e.clickTabGamesCock_fight=function(a=!1){e.searchTabGames.searchText="",e.currentTabView="cock_fight",$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #cock_fight").addClass("active")},e.activateTabAll=function(){const e=document.getElementById("loading-list-game");e&&(e.style.display="flex"),$("#filter2").removeClass("active"),a((function(){$("#filter1").click(),e&&(e.style.display="none")}))},e.clickTabGamesSlot=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortSlot.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortSlot.forEach(((a,t)=>{"ALL"===a.name&&(n=e.sortSlot[t],n.tabStatus=!0,e.currentTabView=n.tab,e.tabNames=n.name,e.initAllSlot(n.name))})):(e.sortSlot.forEach(((t,i)=>{t.order===l&&(n=e.sortSlot[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.tabNames=n.name,e.initAllSlot(n.name))),e.sortSlot[i].tabStatus=!1})),""!=e.tabNames&&e.sortSlot.forEach(((a,t)=>{a.name===e.tabNames&&a.enabled&&(n=e.sortSlot[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #slot-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll(),$("#menu-slot").attr("href",n.tabHref),$("#menu-slot-icon").attr("href",n.tabHref),$("#banner-href").attr("href",n.tabHref)},e.clickTabGamesFish=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortVideo.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortVideo.forEach(((t,l)=>{"ALL"===t.name&&(n=e.sortVideo[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllFish(n.name)))})):(e.sortVideo.forEach(((t,i)=>{t.order===l&&(n=e.sortVideo[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllFish(n.name)))})),""!=e.tabNames&&e.sortVideo.forEach(((a,t)=>{"PP_EGAME"==a.name&&(a.name="PP"),a.name===e.tabNames&&a.enabled&&(n=e.sortVideo[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #fish-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll(),$("#menu-video-game").attr("href",n.tabHref),$("#menu-video-game-icon").attr("href",n.tabHref),$("#banner-href").attr("href",n.tabHref)},e.clickTabGamesArcade=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortArcade.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortArcade.forEach(((t,l)=>{"PP_EGAME"==t.name&&(t.name="PP"),"ALL"===t.name&&(n=e.sortArcade[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllArcade(n.name)))})):(e.sortArcade.forEach(((t,i)=>{t.order===l&&(n=e.sortArcade[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllArcade(n.name)))})),""!=e.tabNames&&e.sortArcade.forEach(((a,t)=>{"PP_EGAME"==a.name&&(a.name="PP"),a.name===e.tabNames&&a.enabled&&(n=e.sortArcade[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #arcade-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll(),$("#menu-arcade").attr("href",n.tabHref),$("#menu-arcade-icon").attr("href",n.tabHref),$("#banner-href").attr("href",n.tabHref)},e.clickTabGamesCASINO=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortCasino.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortCasino.forEach(((t,l)=>{"PP_LIVE"==t.name&&(t.name="PP"),"ALL"===t.name&&(n=e.sortCasino[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.tabNames=n.name,e.initAllCasino(n.name)))})):(e.sortCasino.forEach(((t,i)=>{t.order===l&&(n=e.sortCasino[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllCasino(n.name)))})),""!=e.tabNames&&e.sortCasino.forEach(((a,t)=>{"PP_LIVE"==a.name&&(a.name="PP"),a.name===e.tabNames&&a.enabled&&(n=e.sortCasino[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #casino-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll()},e.clickTabGamesBingo=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortBingo.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortBingo.forEach(((t,l)=>{"ALL"===t.name&&(n=e.sortBingo[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllBingo(n.name)))})):(e.sortBingo.forEach(((t,i)=>{t.order===l&&(n=e.sortBingo[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllBingo(n.name)))})),""!=e.tabNames&&e.sortBingo.forEach(((a,t)=>{a.name===e.tabNames&&a.enabled&&(n=e.sortBingo[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #bingo-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll()},e.clickTabGamesPokdeng=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortPoker.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortPoker.forEach(((t,l)=>{"ALL"===t.name&&(n=e.sortPoker[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllPokdeng(n.name)))})):(e.sortPoker.forEach(((t,i)=>{t.order===l&&(n=e.sortPoker[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllPokdeng(n.name)))})),""!=e.tabNames&&e.sortPoker.forEach(((a,t)=>{a.name===e.tabNames&&a.enabled&&(n=e.sortPoker[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #pokdeng-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll()},e.clickTabGamesSport=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortSport.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortSport.forEach(((t,l)=>{"ALL"===t.name&&(n=e.sortSport[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllSport(n.name)))})):(e.sortSport.forEach(((t,i)=>{t.order===l&&(n=e.sortSport[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllSport(n.name)))})),""!=e.tabNames&&e.sortSport.forEach(((a,t)=>{a.name===e.tabNames&&a.enabled&&(n=e.sortSport[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #sport-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll()},e.clickTabGamesLotto=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortLotto.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";e.sortLotto.forEach(((t,i)=>{t.order===l&&(n=e.sortLotto[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllLotto(n.name)))})),""!=e.tabNames&&e.sortLotto.forEach(((a,t)=>{a.name===e.tabNames&&a.enabled&&(n=e.sortLotto[t])})),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #lotto-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll()},e.clickTabGamesCockfight=function(a=!1){e.searchTabGames.searchText="";let t=[];e.sortCockfight.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)})),n="";a?e.sortCockfight.forEach(((t,l)=>{"ALL"===t.name&&(n=e.sortCockfight[l],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllCockfight(n.name)))})):(e.sortCockfight.forEach(((t,i)=>{t.order===l&&(n=e.sortCockfight[i],a&&(n.tabStatus=!0,e.currentTabView=n.tab,e.initAllCockfight(n.name)))})),""!=e.tabNames&&e.sortCockfight.forEach(((a,t)=>{a.name===e.tabNames&&a.enabled&&(n=e.sortCockfight[t])}))),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #cockfight-all-game").addClass("active"),e.saveActiveTabGames(n.tab),"favorite"!=e.filtering&&"popular"!=e.filtering||e.activateTabAll()},e.activeTabCASINO=function(){let t=e.tabNames,l=!1;if(t)for(let a in e.sortCasino)e.sortCasino[a].tab=!1,e.sortCasino[a].name===t.toUpperCase()&&e.sortCasino[a].statusShow&&e.sortCasino[a].enabled&&(l=!0,e.sortCasino[a].tab=!0,e.tabNames=e.sortCasino[a].name,e.initAllCasino(e.tabNames));if(!l){let t=[];e.sortCasino.filter((e=>{t.push(e.order)}));let l=t.reduce((function(e,a){return Math.min(e,a)}));e.sortCasino.forEach(((t,n)=>{t.order===l&&(e.sortCasino[n].tab=!0,e.tabNames=e.sortCasino[n].name,"SEXY"==e.sortCasino[n].name?a((function(){$(".live-casino-bg").css("background-image","url("+_theme.imgPath+"/background/bg_sexy.webp)")}),500):a((function(){$(".live-casino-bg").css("background-image","url("+_theme.imgPath+"/background/bg_ag2.webp)")}),500))}))}},e.activeTabCOCKFIGHT=function(){let a=e.tabNames,t=!1;if(a)for(let l in e.sortCockfight)e.sortCockfight[l].tab=!1,e.sortCockfight[l].name==a.toUpperCase()&&e.sortCockfight[l].statusShow&&e.sortCockfight[l].enabled&&(t=!0,e.sortCockfight[l].tab=!0,e.tabNames=e.sortCockfight[l].name,e.initAllCockfight(e.tabNames));if(!t){let a=[];e.sortCockfight.filter((e=>{a.push(e.order)}));let t=a.reduce((function(e,a){return Math.min(e,a)}));e.sortCockfight.forEach(((a,l)=>{a.order===t&&(e.sortCockfight[l].tab=!0,e.tabNames=e.sortCockfight[l].name)}))}},e.activeTabSport=function(){let a=e.tabNames,t=!1;if(a)for(let l in e.sortSport)e.sortSport[l].tab=!1,e.sortSport[l].name==a.toUpperCase()&&e.sortSport[l].statusShow&&e.sortSport[l].enabled&&(t=!0,e.sortSport[l].tab=!0,e.tabNames=e.sortSport[l].name,e.initAllSport(e.tabNames));if(!t){let a=[];e.sortSport.filter((e=>{a.push(e.order)}));let t=a.reduce((function(e,a){return Math.min(e,a)}));e.sortSport.forEach(((a,l)=>{a.order===t&&(e.sortSport[l].tab=!0,e.tabNames=e.sortSport[l].name)}))}},e.activeTabPOKER=function(){let a=e.tabNames,t=!1;if(a)for(let l in e.sortPoker)e.sortPoker[l].tab=!1,e.sortPoker[l].name==a.toUpperCase()&&e.sortPoker[l].statusShow&&e.sortPoker[l].enabled&&(t=!0,e.sortPoker[l].tab=!0,e.tabNames=e.sortPoker[l].name);if(!t){let a=[];e.sortPoker.filter((e=>{a.push(e.order)}));let t=a.reduce((function(e,a){return Math.min(e,a)}));e.sortPoker.forEach(((a,l)=>{a.order===t&&(e.sortPoker[l].tab=!0,e.tabNames=e.sortPoker[l].name)}))}},e.activeTabBINGO=function(){let a=e.tabNames,t=!1;if(a)for(let l in e.sortBingo)e.sortBingo[l].tab=!1,e.sortBingo[l].name==a.toUpperCase()&&e.sortBingo[l].statusShow&&e.sortBingo[l].enabled&&(t=!0,e.sortBingo[l].tab=!0,e.tabNames=e.sortBingo[l].name,e.initAllBingo(e.tabNames));if(!t){let a=[];e.sortBingo.filter((e=>{a.push(e.order)}));let t=a.reduce((function(e,a){return Math.min(e,a)}));e.sortBingo.forEach(((a,l)=>{a.order===t&&(e.sortBingo[l].tab=!0,e.tabNames=e.sortBingo[l].name)}))}},e.game_limit=23,e.GamesAlllimit=e.game_limit,e.GamesAllMax=0,e.allSlotGames=[],e.venders_slot=[],e.data_Allslot={},e.slotSearch=[],e.initAllSlot=function(a){e.GamesAlllimit=e.game_limit,e.allSlotGames=[],e.GamesAllMax=0,e.venders_slot.includes(a)?(e.allSlotGames=e.data_Allslot[a],e.GamesAllMax=e.allSlotGames.length,e.slotSearch=JSON.parse(JSON.stringify(e.allSlotGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allSlotGames=[],e.$apply((function(){if(t.success)if((t=t.data)&&t.length>0){if(t.map((function(a){a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),"FIVEG"==a.vendor?a.vendorShow="5G":"WONWON"==a.vendor?a.vendorShow="WW":"PPO"==a.vendor?a.vendorShow="PP":"short77"==a.vendor?a.vendorShow="OMG":"TWOJ"==a.vendor?a.vendorShow="2J":a.vendorShow=e.aliasMap[a.vendor]||a.vendor,e.allSlotGames.push(a)})),"VIP"==a)e.allSlotGames.sort((function(e,a){return e.order-a.order})),e.allSlotGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}));else{let a=e.short77CheckEnabled.showGameTabAllOmg,t=0;e.allSlotGames.forEach((e=>{if(!0===e.topGame)e.priority=0,e.orderKey=-1/0;else if("short77"===e.vendor&&te.priority-a.priority)),e.GamesAllMax=e.allSlotGames.length,e.slotSearch=JSON.parse(JSON.stringify(e.allSlotGames)),e.venders_slot.push(a),e.data_Allslot[a]=e.allSlotGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")}else document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none");else swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesSlot()}))}))}),{config:{type:"slot",vendor:a,device:"desktop"}}))},e.allFavGames=[],e.ClickFav=function(){e.filtering="favorite","favorite"!=e.currentTabView&&(e.GamesAllMax=0,e.GamesAlllimit=e.game_limit,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),e.allFavGames.length?(e.GamesAllMax=e.allFavGames.length,e.favoriteSearch=JSON.parse(JSON.stringify(e.allFavGames)),e.data_Favourtie=e.allFavGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #favourite-all-game").addClass("active")):ajax("/api/getFavouriteGames",(function(a){e.$apply((function(){if(a.success)if((a=a.data)&&a.length>0){a.map((function(a){a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),"FIVEG"==a.vendor?a.vendorShow="5G":"WONWON"==a.vendor?a.vendorShow="WW":"PPO"==a.vendor?a.vendorShow="PP":"short77"==a.vendor?a.vendorShow="OMG":"TWOJ"==a.vendor?a.vendorShow="2J":a.vendorShow=e.aliasMap[a.vendor]||a.vendor,e.allFavGames.push(a)}));let t=e.short77CheckEnabled.showGameTabAllOmg,l=0;e.allFavGames.forEach((e=>{if(!0===e.topGame)e.favorite=!0,e.priority=0,e.orderKey=-1/0;else if("short77"===e.vendor&&le.priority!==a.priority?e.priority-a.priority:e.orderKey-a.orderKey)),e.GamesAllMax=e.allFavGames.length,e.favoriteSearch=JSON.parse(JSON.stringify(e.allFavGames)),e.data_Favourtie=e.allFavGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #favourite-all-game").addClass("active")}else e.allFavGames=[],e.data_Favourtie=e.allFavGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),$(".game-tabs-container .select-tab-type").removeClass("active"),$(".game-tabs-container #favourite-all-game").addClass("active");else swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesSlot()}))}))}),{config:{type:"slot",vendor:"favorite",device:"desktop"}}))},e.favourite_page=function(a,t,l,n){(n=n||{}).stopAtFirst;for(var i=["data_Allslot","data_Allfish","data_AllArcade","data_AllCasino","data_AllSport","data_AllLotto","data_Allcockfight"],o=(Number(t),null!=l&&String(l),0);o0?(t.map((function(a){a.vendorShow=e.aliasMap[a.vendor]||a.vendor,"PP_EGAME"==a.vendor||"PPO"==a.vendor?a.vendorShow="PP":"WONWON"==a.vendor?a.vendorShow="WW":"short77"==a.vendor?a.vendorShow="OMG":"TWOJ"==a.vendor?a.vendorShow="2J":a.vendorShow=a.vendor,e.configGamehall.CQ9&&e.configGamehall.CQ9.game.bingo_cq9.enabled?a&&a.en_US&&(a.en_US.includes("Bingo")||(a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allFishGames.push(a))):(a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allFishGames.push(a))})),"VIP"==a?(e.allFishGames.sort((function(e,a){return e.order-a.order})),e.allFishGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allFishGames.forEach((e=>{e.orderKey=-e.countPlay})),e.GamesAllMax=e.allFishGames.length,e.fishSearch=JSON.parse(JSON.stringify(e.allFishGames)),e.venders_fish.push(a),e.data_Allfish[a]=e.allFishGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")}))):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesFish()}))}),{config:{type:t,vendor:a,device:"desktop"}}))},e.allBingoGames=[],e.venders_bingo=[],e.data_Allbingo={},e.bingoSearch=[],e.initAllBingo=function(a){e.GamesAlllimit=e.game_limit,e.allBingoGames=[],e.GamesAllMax=0,e.venders_bingo.includes(a)?(e.allBingoGames=e.data_Allbingo[a],e.GamesAllMax=e.allBingoGames.length,e.bingoSearch=JSON.parse(JSON.stringify(e.allBingoGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allBingoGames=[],e.$apply((function(){t.success?(t=t.data,"ALL"==a?e.configGamehall.ACEWIN&&e.configGamehall.ACEWIN.game.bingo.enabled&&ajax("/api/getGames",(function(a){a.map((function(a){Object.keys(a).length>0&&a.en_US.includes("Bingo")&&(a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allBingoGames.push(a))}))}),{config:{type:"casino",vendor:"ACEWIN",device:"desktop",count:"VIP"==a?"none":""}}):e.allBingoGames=[],t&&t.length>0?(t.map((function(t){t.vendorShow=e.aliasMap[t.vendor]||t.vendor,t.en_US&&("VIP"!=a?t.en_US.includes("Bingo")&&(t.img=e.setPathImageGame_ALL(t.vendor,t.gType,t.type,t.en_US,t.thumbnail),e.allBingoGames.push(t)):(t.img=e.setPathImageGame_ALL(t.vendor,t.gType,t.type,t.en_US,t.thumbnail),e.allBingoGames.push(t)))})),"VIP"==a?(e.allBingoGames.sort((function(e,a){return e.order-a.order})),e.allBingoGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allBingoGames.forEach((e=>{e.orderKey=-e.countPlay})),e.GamesAllMax=e.allBingoGames.length,e.venders_bingo.push(a),e.bingoSearch=JSON.parse(JSON.stringify(e.allBingoGames)),e.data_Allbingo[a]=e.allBingoGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesBingo()}))}))}),{config:{type:"ACEWIN"==a?"casino":"arcade",vendor:a,device:"desktop"}}))},e.allArcadeGames=[],e.venders_arcade=[],e.data_AllArcade={},e.arcadeSearch=[],e.initAllArcade=function(a){if(e.GamesAlllimit=e.game_limit,e.allArcadeGames=[],e.GamesAllMax=0,e.venders_arcade.includes(a))e.allArcadeGames=e.data_AllArcade[a],e.GamesAllMax=e.allArcadeGames.length,e.arcadeSearch=JSON.parse(JSON.stringify(e.allArcadeGames));else{document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex");let t=a;"9KG"==a&&(t="NINEKG"),ajax("/api/getGames",(function(t){e.allArcadeGames=[],e.$apply((function(){t.success?(t=t.data)&&t.length>0?(t.map((function(a){a.vendorShow=e.aliasMap[a.vendor]||a.vendor,"PP_EGAME"==a.vendor||"PPO"==a.vendor?a.vendorShow="PP":"short77"==a.vendor?a.vendorShow="OMG":"WONWON"==a.vendor?a.vendorShow="WW":"TWOJ"==a.vendor?a.vendorShow="2J":a.vendorShow=a.vendor,a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),"550ww"==_theme.siteName||"mthai7"==_theme.siteName?Object.keys(a).length>0&&(e.VenderShowBingo.includes(a.vendor)&&a.en_US.includes("Bingo")||e.allArcadeGames.push(a)):Object.keys(a).length>0&&e.allArcadeGames.push(a)})),"VIP"==a?(e.allArcadeGames.sort((function(e,a){return e.order-a.order})),e.allArcadeGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allArcadeGames.forEach((e=>{e.orderKey=-e.countPlay})),e.GamesAllMax=e.allArcadeGames.length,e.venders_arcade.push(a),e.arcadeSearch=JSON.parse(JSON.stringify(e.allArcadeGames)),e.data_AllArcade[a]=e.allArcadeGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesArcade()}))}))}),{config:{type:"arcade",vendor:t,device:"desktop"}})}},e.allCasinoGames=[],e.venders_casino=[],e.data_AllCasino={},e.casinoSearch=[],e.initAllCasino=function(a){e.GamesAlllimit=e.game_limit,e.allCasinoGames=[],e.GamesAllMax=0,e.venders_casino.includes(a)?(e.allCasinoGames=e.data_AllCasino[a],e.GamesAllMax=e.allCasinoGames.length,e.casinoSearch=JSON.parse(JSON.stringify(e.allCasinoGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allCasinoGames=[],e.$apply((function(){t.success?(t=t.data)&&t.length>0?(t.map((function(t){t.vendorShow=e.aliasMap[t.vendor]||t.vendor,"PP_LIVE"==t.vendor||"PPO"==t.vendor?t.vendorShow="PP":"short77"==t.vendor?t.vendorShow="OMG":"MT"==a?t.vendorShow="MT":"TWOJ"==t.vendor?t.vendorShow="2J":t.vendorShow=t.vendor,"ACEWIN"==t.vendor&&e.configGamehall.ACEWIN.enabled&&e.configGamehall.ACEWIN.api_enabled&&e.configGamehall.ACEWIN.game.bingo.enabled?Object.keys(t).length>0&&(t.en_US.includes("Bingo")||(t.img=e.setPathImageGame_ALL(t.vendor,t.gType,t.type,t.en_US,t.thumbnail),e.allCasinoGames.push(t))):(t.img=e.setPathImageGame_ALL(t.vendor,t.gType,t.type,t.en_US,t.thumbnail),"MT"==a?"GINKGO01"!=t.type&&"GINKGO02"!=t.type&&"GINKGO03"!=t.type||e.allCasinoGames.push(t):"CQ9"==a?"GINKGO01"!=t.type&&"GINKGO02"!=t.type&&"GINKGO03"!=t.type&&e.allCasinoGames.push(t):e.allCasinoGames.push(t))})),"VIP"==a?(e.allCasinoGames.sort((function(e,a){return e.order-a.order})),e.allCasinoGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allCasinoGames.forEach((e=>{e.orderKey=-e.countPlay})),e.venders_casino.push(a),e.GamesAllMax=e.allCasinoGames.length,e.casinoSearch=JSON.parse(JSON.stringify(e.allCasinoGames)),e.data_AllCasino[a]=e.allCasinoGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesCASINO()}))}))}),{config:{type:"casino",vendor:a,device:"desktop"}}))},e.allPokdengGames=[],e.venders_pokdeng=[],e.data_AllPokdeng={},e.pokdengSearch=[],e.initAllPokdeng=function(a){e.GamesAlllimit=e.game_limit,e.allPokdengGames=[],e.GamesAllMax=0,e.venders_pokdeng.includes(a)?(e.allPokdengGames=e.data_AllPokdeng[a],e.GamesAllMax=e.allPokdengGames.length,e.pokdengSearch=JSON.parse(JSON.stringify(e.allPokdengGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allPokdengGames=[],e.$apply((function(){t.success?(t=t.data)&&t.length>0?(t.map((function(a){a.vendorShow=e.aliasMap[a.vendor]||a.vendor,"ACEWIN"==a.vendor&&e.configGamehall.ACEWIN.enabled&&e.configGamehall.ACEWIN.api_enabled&&e.configGamehall.ACEWIN.game.bingo.enabled?Object.keys(a).length>0&&(a.en_US.includes("Bingo")||(a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allPokdengGames.push(a))):(a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allPokdengGames.push(a))})),"VIP"==a?(e.allPokdengGames.sort((function(e,a){return e.order-a.order})),e.allPokdengGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allPokdengGames.forEach((e=>{e.orderKey=-e.countPlay})),e.venders_pokdeng.push(a),e.GamesAllMax=e.allPokdengGames.length,e.pokdengSearch=JSON.parse(JSON.stringify(e.allPokdengGames)),e.data_AllPokdeng[a]=e.allPokdengGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesPokdeng()}))}))}),{config:{type:"pokdeng",vendor:a,device:"desktop"}}))},e.allSportGames=[],e.venders_sport=[],e.data_AllSport={},e.SportSearch=[],e.initAllSport=function(a){e.GamesAlllimit=e.game_limit,e.allSportGames=[],e.GamesAllMax=0,e.venders_sport.includes(a)?(e.allSportGames=e.data_AllSport[a],e.GamesAllMax=e.allSportGames.length,e.sportSearch=JSON.parse(JSON.stringify(e.allSportGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allSportGames=[],e.$apply((function(){t.success?(t=t.data)&&t.length>0?(t.map((function(a){a.vendorShow=e.aliasMap[a.vendor]||a.vendor,"PPO"===a.vendor?a.vendorShow="PP":"SABASPORT"===a.vendor?a.vendorShow="SABA":"short77"==a.vendor?a.vendorShow="OMG":a.vendorShow=a.vendor,a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allSportGames.push(a)})),"VIP"==a?(e.allSportGames.sort((function(e,a){return e.order-a.order})),e.allSportGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allSportGames.forEach((e=>{e.orderKey=-e.countPlay})),e.venders_sport.push(a),e.GamesAllMax=e.allSportGames.length,e.sportSearch=JSON.parse(JSON.stringify(e.allSportGames)),e.data_AllSport[a]=e.allSportGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesSport()}))}))}),{config:{type:"sport",vendor:a,device:"desktop"}}))},e.allLottoGames=[],e.venders_lotto=[],e.data_AllLotto={},e.LottoSearch=[],e.initAllLotto=function(a){e.GamesAlllimit=e.game_limit,e.allLottoGames=[],e.GamesAllMax=0,e.venders_lotto.includes(a)?(e.allLottoGames=e.data_AllLotto[a],e.GamesAllMax=e.allLottoGames.length,e.lottoSearch=JSON.parse(JSON.stringify(e.allLottoGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allLottoGames=[],e.$apply((function(){t.success?(t=t.data)&&t.length>0?(t.map((function(a){a.vendorShow=e.aliasMap[a.vendor]||a.vendor,a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allLottoGames.push(a)})),"VIP"==a?(e.allLottoGames.sort((function(e,a){return e.order-a.order})),e.allLottoGames.forEach((e=>{e.orderKey="7008"==e.type?-1/0:e.countPlay}))):e.allLottoGames.forEach((e=>{e.orderKey=-e.countPlay})),e.venders_lotto.push(a),e.GamesAllMax=e.allLottoGames.length,e.lottoSearch=JSON.parse(JSON.stringify(e.allLottoGames)),e.data_AllLotto[a]=e.allLottoGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesLotto()}))}))}),{config:{type:"lotto",vendor:a,device:"desktop"}}))},e.allcockfightGames=[],e.venders_cockfight=[],e.data_Allcockfight={},e.CockfightSearch=[],e.initAllCockfight=function(a){e.GamesAlllimit=e.game_limit,e.allcockfightGames=[],e.GamesAllMax=0,e.venders_cockfight.includes(a)?(e.allcockfightGames=e.data_Allcockfight[a],e.GamesAllMax=e.allcockfightGames.length,e.CockfightSearch=JSON.parse(JSON.stringify(e.allcockfightGames))):(document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="flex"),ajax("/api/getGames",(function(t){e.allcockfightGames=[],e.$apply((function(){t.success?(t=t.data)&&t.length>0?(t.map((function(a){a.vendorShow=e.aliasMap[a.vendor]||a.vendor,a.img=e.setPathImageGame_ALL(a.vendor,a.gType,a.type,a.en_US,a.thumbnail),e.allcockfightGames.push(a)})),e.allcockfightGames.sort((function(e,a){return e.order-a.order})),e.venders_cockfight.push(a),e.GamesAllMax=e.allcockfightGames.length,e.CockfightSearch=JSON.parse(JSON.stringify(e.allcockfightGames)),e.data_Allcockfight[a]=e.allcockfightGames,document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none")):document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"):swal({title:'There was a problem accessing the data please try again',imageSize:"100x100",confirmButtonText:'ตกลง'},(function(){document.getElementById("loading-list-game")&&(document.getElementById("loading-list-game").style.display="none"),e.tabNames="",e.clickTabGamesCockfight()}))}))}),{config:{type:"cockfight",vendor:a}}))},e.favourite={data:{},get:function(){var a=this;ajax("/api/favourite",(function(t){e.$apply((function(){null!=t.data&&(a.data=t.data,e.allFavGames=[],Object.keys(a.data).filter((a=>{let t=a.split("#")[0],l=a.split("#")[1],n=a.split("#")[2];if(e.currentTabView.includes("slot")&&(e.data_Allslot[t]&&e.data_Allslot[t].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_Allslot.ALL&&e.data_Allslot.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))),e.currentTabView.includes("fish")||e.currentTabView.includes("videoGame")){let a=t;"PP_EGAME"==t&&(a="PP"),e.data_Allfish[a]&&e.data_Allfish[a].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_Allfish.ALL&&e.data_Allfish.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))}if(e.currentTabView.includes("arcade")){let a=t;"NINEKG"==t&&(a="9KG"),"BK89"==t&&(a="JMK"),e.data_AllArcade[a]&&e.data_AllArcade[a].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_AllArcade.ALL&&e.data_AllArcade.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))}if(e.currentTabView.includes("casino")){let a=t;"SEXYBCRT"==t&&(a="SEXY"),"BK89"==t&&(a="JMK"),e.data_AllCasino[a]&&e.data_AllCasino[a].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_AllCasino.ALL&&e.data_AllCasino.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))}if(e.currentTabView.includes("bingo")&&(e.data_Allbingo[t]&&e.data_Allbingo[t].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_Allbingo.ALL&&e.data_Allbingo.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))),e.currentTabView.includes("pokdengGame")&&(e.data_AllPokdeng[t]&&e.data_AllPokdeng[t].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_AllPokdeng.ALL&&e.data_AllPokdeng.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))),e.currentTabView.includes("lotto")&&(e.data_AllLotto[t]&&e.data_AllLotto[t].filter((e=>{"TEZ"!=t&&"VR"!=t||(e.gType=e.vendor),t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_AllLotto.ALL&&e.data_AllLotto.ALL.filter((e=>{"TEZ"!=t&&"VR"!=t||(e.gType=e.vendor),t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))),e.currentTabView.includes("cock_fight")){let a=t;"SV388"==t&&(a="SV388"),"DS88"==t&&(a="DS88"),e.data_Allcockfight[a]&&e.data_Allcockfight[a].filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_Allcockfight.ALL&&e.data_Allcockfight.ALL.filter((e=>{t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))}))}e.currentTabView.includes("sportGame")&&(e.data_AllSport[t.toUpperCase()]&&e.data_AllSport[t.toUpperCase()].filter((e=>{"UG"==e.vendor&&(e.gType=e.vendor),t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})),e.data_AllSport.ALL&&e.data_AllSport.ALL.filter((e=>{"UG"==e.vendor&&(e.gType=e.vendor),t==e.vendor&&l==e.gType&&n==e.type&&(e.favourite||(e.favourite=!0))})))})))}))}),{type:"get"})},toggle:function(a,t,l,n){if(!e.userdata.username&&!_GobalLogin)return $("#modal_login").modal();var i=this;if(e.currentTabView.includes("slot")&&(e.data_Allslot.ALL&&e.data_Allslot.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allslot.VIP&&e.data_Allslot.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allslot[a]&&e.data_Allslot[a].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))),e.currentTabView.includes("fish")||e.currentTabView.includes("videoGame")){let n=a;"PP_EGAME"==a&&(n="PP"),e.data_Allfish.ALL&&e.data_Allfish.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allfish.VIP&&e.data_Allfish.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allfish[n]&&e.data_Allfish[n].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))}if(e.currentTabView.includes("arcade")){let n=a;"NINEKG"==a&&(n="9KG"),"BK89"==a&&(n="JMK"),"PP_EGAME"==a&&(n="PP"),e.data_AllArcade.ALL&&e.data_AllArcade.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllArcade.VIP&&e.data_AllArcade.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllArcade[n]&&e.data_AllArcade[n].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))}if(e.currentTabView.includes("bingo")&&(e.data_Allbingo.ALL&&e.data_Allbingo.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allbingo.VIP&&e.data_Allbingo.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allbingo[a]&&e.data_Allbingo[a].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))),e.currentTabView.includes("casino")){let n=a;"SEXYBCRT"==a&&(n="SEXY"),"BK89"==a&&(n="JMK"),"PP_LIVE"==a&&(n="PP"),e.data_AllCasino.ALL&&e.data_AllCasino.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllCasino.VIP&&e.data_AllCasino.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllCasino[n]&&e.data_AllCasino[n].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))}e.currentTabView.includes("pokdengGame")&&(e.data_AllPokdeng.ALL&&e.data_AllPokdeng.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllPokdeng.VIP&&e.data_AllPokdeng.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllPokdeng[a]&&e.data_AllPokdeng[a].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))),e.currentTabView.includes("lotto")&&("TEZ"!=a&&"VR"!=a||(t=a),e.data_AllLotto.ALL&&e.data_AllLotto.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllLotto[a]&&e.data_AllLotto[a].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))),e.currentTabView.includes("cockfight")&&(e.data_Allcockfight.ALL&&e.data_Allcockfight.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allcockfight.VIP&&e.data_Allcockfight.VIP.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_Allcockfight[a]&&e.data_Allcockfight[a].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))),e.currentTabView.includes("sportGame")&&("UG"==a&&(t=a),e.data_AllSport.ALL&&e.data_AllSport.ALL.filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)})),e.data_AllSport[a.toUpperCase()]&&e.data_AllSport[a.toUpperCase()].filter((e=>{a==e.vendor&&t==e.gType&&l==e.type&&(e.favourite=!e.favourite)}))),ajax("/api/favourite",(function(a){e.$apply((function(){i.get()}))}),{type:"toggle",vendor:a.toString(),gType:t.toString(),mType:l.toString()})}},e.searchTabGames={searchText:"",en_US:""},e.status_search=!1,e.searchActive=function(a){e.status_search=void 0!==a&&""!=a},e.loadMore=function(){e.GamesAlllimit=e.GamesAlllimit+(e.game_limit+1)},e.loadMoretop=function(){e.GamesAlllimit=e.game_limit},e.setFiltering=function(a){a=a.toLowerCase(),e.filtering!=a&&(e.filtering=a),$(".game-tabs-container #favourite-all-game").removeClass("active"),e.currentTabView.includes("slot")?($("#slot-all-game").addClass("active"),"popular"==a&&e.initAllSlot("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllSlot(e.tabNames)):e.currentTabView.includes("fish")||e.currentTabView.includes("videoGame")?($("#fish-all-game").addClass("active"),"popular"==a&&e.initAllFish("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllFish(e.tabNames)):e.currentTabView.includes("casino")?($("#casino-all-game").addClass("active"),"popular"==a&&e.initAllCasino("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllCasino(e.tabNames)):e.currentTabView.includes("arcade")?($("#arcade-all-game").addClass("active"),"popular"==a&&e.initAllArcade("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllArcade(e.tabNames)):e.currentTabView.includes("sport")?($("#sport-all-game").addClass("active"),"popular"==a&&e.initAllSport("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllSport(e.tabNames)):e.currentTabView.includes("lotto")?($("#lotto-all-game").addClass("active"),"popular"==a&&e.initAllLotto("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllLotto(e.tabNames)):e.currentTabView.includes("bingo")?($("#bingo-all-game").addClass("active"),"popular"==a&&e.initAllBingo("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllBingo(e.tabNames)):e.currentTabView.includes("pokdeng")?($("#pokdeng-all-game").addClass("active"),"popular"==a&&e.initAllPokdeng("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllPokdeng(e.tabNames)):e.currentTabView.includes("cockfight")?($("#cockfight-all-game").addClass("active"),"popular"==a&&e.initAllCockfight("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllCockfight(e.tabNames)):($("#slot-all-game").addClass("active"),"popular"==a&&e.initAllSlot("ALL"),"all"!=a.toLowerCase()&&"recommend"!=a||e.initAllSlot(e.tabNames))},e.filterMe=function(a){if("favorite"!=e.filtering){if("popular"!==e.filtering){if("all"==e.filtering)return!0;return(a.status||"").indexOf(e.filtering)>-1}return a.countPlay=a.countPlay||1}}}]);