@everymatrix/casino-tournaments-ingame-games 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-tournaments-ingame-games/{casino-tournaments-ingame-games-5f354494.js → casino-tournaments-ingame-games-2a18c19e.js} +1 -1
- package/dist/casino-tournaments-ingame-games/casino-tournaments-ingame-games_3.entry.js +1 -1
- package/dist/casino-tournaments-ingame-games/index.esm.js +1 -1
- package/dist/cjs/{casino-tournaments-ingame-games-0b15484d.js → casino-tournaments-ingame-games-311469d3.js} +3 -3
- package/dist/cjs/casino-tournaments-ingame-games_3.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-tournaments-ingame-games/casino-tournaments-ingame-games.js +3 -3
- package/dist/esm/{casino-tournaments-ingame-games-5f354494.js → casino-tournaments-ingame-games-2a18c19e.js} +3 -3
- package/dist/esm/casino-tournaments-ingame-games_3.entry.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/{utils/types.d.ts → builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-tournaments-ingame-games/.stencil/libs/common/src/types/casino/tournaments.d.ts} +2 -5
- package/dist/types/components/casino-tournaments-ingame-games/casino-tournaments-ingame-games.d.ts +1 -1
- package/package.json +1 -1
- package/dist/collection/utils/types.js +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,h as a}from"./index-60eab789.js";const t={en:{casino:"Casino",sports:"Sports",contribution:"Contribution",noGames:"No games have been configured yet!",playNow:"Play Now"}},e=i=>new Promise((a=>{fetch(i).then((i=>i.json())).then((i=>{Object.keys(i).forEach((a=>{t[a]||(t[a]={});for(let e in i[a])t[a][e]=i[a][e]})),a(!0)}))})),n=(i,a,e)=>{let n=t[void 0!==a&&a in t?a:"en"][i];if(void 0!==e)for(const[i,a]of Object.entries(e.values)){const t=new RegExp(`{${i}}`,"g");n=n.replace(t,a)}return n},s=class{constructor(a){i(this,a),this.device=(()=>{let i=window.navigator.userAgent;return i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})(),this.translationUrl="",this.tournamentId=void 0,this.endpoint=void 0,this.session=void 0,this.language="en",this.isSportsEnabled=void 0,this.isCasinoEnabled=void 0,this.rules=void 0,this.currentGameId=void 0,this.isTournamentLoading=!0,this.offset=0,this.casinoGames=[],this.limit=20,this.activeType="Casino",this.gamesObserver=void 0,this.sportsRules=[]}parseSportsRules(i){if(null==i?void 0:i.length)try{const a=JSON.parse(i);this.sportsRules=a[this.language||"en"]||a["*"]}catch(i){console.error(i)}else this.sportsRules=[]}loadGamesByTournamentId(){if(!this.endpoint||!this.session||this.session.length<10||!this.tournamentId)return;if(this.offset>0&&this.offset>this.totalGamesCount)return void this.stopObserver();let i=new URL(`${this.endpoint}/v1/tournaments/${this.tournamentId}?language=${this.language}`),a={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET"};i.searchParams.append("expand","games"),i.searchParams.append("pagination",`games(limit=${this.limit},offset=${this.offset})`),i.searchParams.append("fields","id,sportsRules,games(id,name,thumbnail,launchUrl, slug)"),i.searchParams.append("language",this.language),i.searchParams.append("platform",this.device),this.isTournamentLoading=!0,fetch(i,a).then((i=>i.json())).then((i=>{const{item:{games:{items:a},total:t}}=i;this.casinoGames=[...this.casinoGames,...a],this.totalGamesCount=t,this.casinoGames.length>0&&this.resetObserver(),0==a.length&&this.stopObserver()}),(i=>{console.error(i)})).finally((()=>{this.isTournamentLoading=!1}))}toggleTab(i){this.activeType=i,"Casino"===this.activeType&&this.casinoGames.length>0&&this.resetObserver()}onGameClick(i){i.id!=this.currentGameId&&window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:i.slug}})}render(){var i;return a("div",{key:"10ddd795c426f4b1e0ee010948c992d35929d246",class:"GamesContainer",ref:i=>{this.el=i}},a("div",{key:"8f665e1ce46a99f705c770f7babff81db5c1ce6c"},this.isCasinoEnabled&&this.isSportsEnabled&&a("div",{key:"2394ef76037a505ea9647298cd6214763587d6c2",class:"GamesTabNav"},a("div",{key:"220aa0c62f306928436726f3d8dab9adad7448a2",class:"Button "+("Casino"===this.activeType?"Active":""),onClick:this.toggleTab.bind(this,"Casino")},a("div",{key:"6ea527d4d067cacad69ca417a478d9986cc225a1",innerHTML:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_12898_3141)">\n<path d="M16.5264 14.2033L17.7967 14.1955L17.8217 11.4424L18.6248 11.4549C18.6248 11.4549 18.5998 14.4002 18.5998 14.6033C18.5998 14.808 18.4717 15.0111 18.2936 15.0361C18.1154 15.0611 16.7123 15.0611 16.7123 15.0611L16.5264 14.2033Z" fill="#9A9A9A"/>\n<path d="M17.0759 10.5676C17.0571 11.1863 17.4274 11.7894 18.2571 11.7816C19.0868 11.7738 19.3743 11.2723 19.3915 10.6551C19.4071 10.0988 19.0556 9.40976 18.2181 9.4332C17.4602 9.45507 17.0915 10.0519 17.0759 10.5676Z" fill="#DB0D2B"/>\n<path d="M17.4831 10.7326C17.7721 10.8576 17.7846 10.5248 17.9424 10.3045C18.1018 10.0826 18.3674 9.99669 18.219 9.81701C18.1268 9.70607 17.8237 9.60138 17.5268 9.98575C17.3237 10.2467 17.2393 10.6264 17.4831 10.7326Z" fill="white"/>\n<path d="M0.99704 15.6736C0.99704 15.6736 0.99704 9.17516 1.0611 8.06735C1.12516 6.95954 2.10485 3.95485 5.79079 2.74079C9.47673 1.52672 12.9424 2.87985 14.3111 4.06266C16.8252 6.2361 16.783 8.25954 16.783 8.25954L16.8049 15.5033C16.8049 15.5033 17.297 16.1392 17.297 16.3095C17.297 16.4798 17.2939 16.8658 17.2939 16.8658L0.48454 16.9095C0.48454 16.9095 0.468915 16.4564 0.55329 16.2642C0.637665 16.072 0.99704 15.6736 0.99704 15.6736Z" fill="#CACACA"/>\n<path d="M8.73105 0.729492C7.97012 0.729492 7.48418 1.23418 7.33262 1.61387C7.20137 1.94512 7.19043 2.38418 7.19043 2.38418C7.19043 2.38418 7.59199 2.46855 8.75918 2.46855C9.92637 2.46855 10.2342 2.35762 10.2342 2.35762C10.2342 2.35762 10.2889 1.88574 10.1107 1.56074C9.90762 1.18887 9.52793 0.729492 8.73105 0.729492Z" fill="#DB0A27"/>\n<path d="M7.4767 2.00199C7.6767 2.24261 8.09076 2.10667 8.46264 1.8098C8.77045 1.56292 9.1142 1.0973 8.93295 0.941048C8.67201 0.717611 8.2267 0.867611 7.83451 1.1723C7.59076 1.36292 7.29858 1.78949 7.4767 2.00199Z" fill="#FF4E23"/>\n<path d="M7.6864 1.81518C7.80984 1.91362 7.98171 1.7355 8.21453 1.54018C8.4114 1.37612 8.70515 1.20581 8.59109 1.06675C8.47546 0.92612 8.16765 1.05425 7.94578 1.23237C7.7489 1.38706 7.49421 1.66206 7.6864 1.81518Z" fill="#FFFDFD"/>\n<path d="M0.522782 16.4074C0.446219 16.5418 0.407157 18.7668 0.591532 18.9058C0.775907 19.0449 4.29309 18.9293 8.94153 18.9293C13.59 18.9293 16.99 18.9058 17.1525 18.698C17.3853 18.398 17.3743 16.3918 17.304 16.2762C17.1697 16.0512 12.965 16.2465 8.91809 16.2699C4.75403 16.2918 0.643094 16.1949 0.522782 16.4074Z" fill="#9A9A9A"/>\n<path d="M1.40169 16.9176C1.23919 16.9863 1.21732 18.2598 1.40169 18.3051C1.62669 18.3613 6.70169 18.3191 8.82982 18.3191C10.9579 18.3191 16.2283 18.3973 16.4361 18.2129C16.6439 18.0285 16.6251 17.0207 16.4861 16.8582C16.347 16.6957 10.9079 16.8254 8.872 16.8254C6.83607 16.8254 1.7345 16.7738 1.40169 16.9176Z" fill="#858585"/>\n<path d="M1.81913 8.03437C1.77226 8.19687 1.75038 15.1578 1.81913 15.2047C1.88788 15.2516 15.8816 15.2969 16.0207 15.1578C16.1598 15.0188 16.0676 8.15 16.0441 8.01094C16.0207 7.87188 8.85038 7.71094 8.85038 7.71094L1.81913 8.03437Z" fill="#6F7178"/>\n<path d="M2.30121 8.55319C2.27464 8.62507 2.31527 14.7219 2.38089 14.7891C2.44808 14.8563 15.509 14.7626 15.5762 14.7094C15.6434 14.6563 15.6293 8.56101 15.5762 8.51413C15.5231 8.46569 2.32777 8.47819 2.30121 8.55319Z" fill="#3A3839"/>\n<path d="M8.95951 2.87834C5.82514 2.85021 3.90795 4.28303 3.03451 5.4424C2.16108 6.60178 1.68295 7.67209 1.81733 8.03459C1.85326 8.13302 4.11733 8.04396 8.69389 8.06271C13.2705 8.08146 15.9673 8.15021 16.0423 8.01115C16.1189 7.87209 15.8064 6.29865 14.1048 4.83459C12.7392 3.65646 11.1251 2.89709 8.95951 2.87834Z" fill="#FFDB8B"/>\n<path d="M2.3252 7.58468C2.3252 7.58468 3.87676 3.23155 8.81426 3.27374C14.2221 3.32062 15.3189 7.55343 15.3189 7.55343L2.3252 7.58468Z" fill="#FFAF29"/>\n<path d="M4.6707 5.44043C3.73789 6.2873 3.33008 7.1623 3.33008 7.1623C3.33008 7.1623 6.8082 7.23418 6.81758 7.18105C6.82852 7.11387 4.6707 5.44043 4.6707 5.44043Z" fill="#FFD61C"/>\n<path d="M6.82637 4.1582C6.19824 4.36133 5.6623 4.65039 5.21387 4.9707C5.80449 5.5082 7.4373 6.75508 7.65918 6.91289C7.92324 7.10039 8.01074 7.20195 8.07012 7.16602C8.11855 7.13789 7.9873 6.89102 7.94512 6.78945C7.87168 6.60977 7.05918 4.79883 6.82637 4.1582Z" fill="#FFD61C"/>\n<path d="M9.7625 3.94351C9.44063 3.89351 9.03906 3.84663 8.68281 3.84976C8.24844 3.85288 7.95313 3.89663 7.57812 3.97163C7.57812 3.97163 8.80938 7.01694 8.83594 7.09038C8.86406 7.16382 8.92656 7.23882 8.96094 7.09038C8.99375 6.94351 9.7625 3.94351 9.7625 3.94351Z" fill="#FFD61C"/>\n<path d="M11.0416 7.20781C11.0635 7.25625 14.4104 7.22813 14.4104 7.22813C14.4104 7.22813 13.9323 6.31719 12.9291 5.44531C12.9291 5.44375 11.001 7.11563 11.0416 7.20781Z" fill="#FFD61C"/>\n<path d="M12.3367 4.95645C11.8273 4.6002 11.2226 4.28145 10.5132 4.0752C10.3148 4.8252 9.88042 6.64238 9.83667 6.87207C9.81948 6.95801 9.75855 7.14082 9.80073 7.17519C9.84448 7.21113 10.0023 7.10957 10.1382 6.97832C10.2929 6.82832 12.3367 4.95645 12.3367 4.95645Z" fill="#FFD61C"/>\n<path d="M6.49569 11.6434C6.46756 10.1699 6.84569 9.31836 7.03944 8.98242L3.65819 8.98711C3.65819 8.98711 2.82382 10.0262 2.80975 11.534C2.79569 13.0418 3.60038 14.3449 3.60038 14.3449L7.02382 14.3309C6.85975 13.9871 6.52381 13.1059 6.49569 11.6434Z" fill="white"/>\n<path d="M10.9641 11.6441C11.011 10.2832 10.6782 9.36289 10.5032 8.97852L7.39539 8.9832C7.20476 9.43789 6.86414 10.4223 6.89226 11.6191C6.92195 12.9238 7.26414 13.9551 7.40633 14.3316L10.611 14.3191C10.7188 13.9004 10.9173 12.9676 10.9641 11.6441Z" fill="white"/>\n<path d="M14.3301 8.97363L10.9316 8.97832C11.1332 9.47988 11.4629 10.5064 11.4004 11.7346C11.3363 12.9705 11.1145 13.9236 11.0082 14.3158L14.2285 14.3018C14.2285 14.3018 15.0488 13.3064 15.1223 11.7549C15.1941 10.2033 14.3301 8.97363 14.3301 8.97363Z" fill="white"/>\n<path d="M4.32031 14.3449L5.86563 14.3371C5.86563 14.3371 5.74688 13.9028 5.15938 13.9184C4.55938 13.9371 4.32031 14.3449 4.32031 14.3449Z" fill="#FAB037"/>\n<path d="M8.4502 14.3281L9.63457 14.3218C9.63457 14.3218 9.62363 13.964 9.04395 13.9718C8.54395 13.9781 8.47051 14.2874 8.4502 14.3281Z" fill="#FFD429"/>\n<path d="M12.27 14.3123L13.6403 14.3045C13.6403 14.3045 13.7106 13.9139 13.3575 13.8826C13.0575 13.8561 12.984 14.1358 12.984 14.1358C12.984 14.1358 12.9184 13.9342 12.6575 13.9295C12.3434 13.9233 12.2559 14.2655 12.27 14.3123Z" fill="#A75FB7"/>\n<path d="M11.9893 8.97676L13.7877 8.97363C13.7877 8.97363 13.7986 9.53301 13.0971 9.54707C12.0971 9.56738 11.9893 8.97676 11.9893 8.97676Z" fill="#FEBF21"/>\n<path d="M8.32925 8.98008C8.32925 8.98008 8.21519 9.36602 8.29488 9.44102C8.38863 9.52695 9.648 9.54414 9.7355 9.43789C9.823 9.33008 9.71363 8.97852 9.71363 8.97852L8.32925 8.98008Z" fill="#5B6467"/>\n<path d="M4.26367 8.98457L6.06055 8.98145C6.06055 8.98145 6.07773 9.43926 5.26992 9.44863C4.3543 9.46113 4.26367 8.98457 4.26367 8.98457Z" fill="#4E9226"/>\n<path d="M8.06863 10.4075C8.00144 10.4121 7.90144 10.1278 7.78113 10.1543C7.66081 10.1809 7.49363 10.2137 7.528 10.9887C7.56238 11.7637 7.62175 11.8293 7.77488 11.8231C7.928 11.8168 8.16238 11.37 8.16238 11.37C8.16238 11.37 8.32644 11.2996 8.4405 11.2918C8.55456 11.2856 8.63581 11.3887 8.77644 11.4356C8.91706 11.4825 9.11706 11.4887 9.11706 11.4887C9.11706 11.4887 8.64363 11.8887 8.48269 12.4028C8.32175 12.9168 8.3155 13.4231 8.35613 13.4559C8.39675 13.4887 9.61706 13.5028 9.66394 13.47C9.71081 13.4371 9.64363 12.0559 9.8905 11.6231C10.1374 11.1903 10.4702 10.67 10.4702 10.67C10.4702 10.67 10.3436 10.3293 10.2374 10.2903C10.1311 10.2496 9.90456 10.4168 9.62331 10.4043C9.34363 10.3903 9.0155 10.1121 8.84988 10.0637C8.56863 9.9809 8.26863 10.3934 8.06863 10.4075Z" fill="#FF2B26"/>\n<path d="M3.85256 10.3754C3.78537 10.3801 3.69162 10.1536 3.56818 10.1458C3.426 10.1364 3.32131 10.1583 3.31193 10.9317C3.30412 11.6911 3.40881 11.8473 3.56193 11.8411C3.71506 11.8348 3.94787 11.3598 3.94787 11.3598C3.94787 11.3598 4.07287 11.2817 4.19006 11.3208C4.29787 11.3567 4.38225 11.427 4.54631 11.4504C4.69318 11.4708 4.85881 11.4958 4.85881 11.4958C4.85881 11.4958 4.42912 11.8817 4.26818 12.3942C4.10881 12.9083 4.101 13.4145 4.14162 13.4473C4.18225 13.4801 5.40256 13.4942 5.44943 13.4614C5.49631 13.4286 5.45881 12.0942 5.70568 11.6598C5.95256 11.2254 6.25725 10.6598 6.25725 10.6598C6.25725 10.6598 6.13068 10.3192 6.02443 10.2801C5.91818 10.2395 5.64006 10.3723 5.36037 10.3583C5.08068 10.3442 4.776 10.0879 4.60412 10.0629C4.28537 10.0161 4.05256 10.3629 3.85256 10.3754Z" fill="#FF2B26"/>\n<path d="M12.3215 10.2967C12.2543 10.3014 12.1356 10.0623 12.0168 10.0889C11.8965 10.1155 11.7653 10.1483 11.7637 10.9233C11.7621 11.5717 11.8574 11.7498 12.0106 11.7576C12.2543 11.7686 12.384 11.3389 12.384 11.3389C12.384 11.3389 12.5543 11.278 12.6668 11.2717C12.7809 11.2655 12.8699 11.3248 13.0106 11.3717C13.1512 11.4186 13.3246 11.4373 13.3246 11.4373C13.3246 11.4373 12.8762 11.8248 12.7168 12.3389C12.5574 12.853 12.5496 13.3592 12.5903 13.392C12.6309 13.4248 13.8512 13.4389 13.8981 13.4061C13.9449 13.3733 13.8856 12.0576 14.1324 11.6248C14.3793 11.192 14.7106 10.767 14.7106 10.6733C14.7106 10.5795 14.5543 10.2295 14.4465 10.1889C14.3403 10.1483 14.1403 10.3123 13.8606 10.2998C13.5809 10.2858 13.2449 10.0248 13.0793 9.9764C12.7981 9.89358 12.5231 10.2826 12.3215 10.2967Z" fill="#FF2B26"/>\n</g>\n<defs>\n<clipPath id="clip0_12898_3141">\n<rect width="20" height="20" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n'}),a("div",{key:"de5dcedf1f0d70447dabf32949c8db2c7ddcfb9c"}," ",n("casino",this.language)," ")),a("div",{key:"014ba3530875e9c0d8aff0ada1025db9c429ee9b",class:"Button "+("Sports"===this.activeType?"Active":""),onClick:this.toggleTab.bind(this,"Sports")},a("div",{key:"f3579ea9f536889aa4670796f79c2c50fa18cfa8",innerHTML:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.03223 0.5C11.6072 0.500073 13.9128 1.65433 15.4668 3.47656C16.7338 4.9622 17.5 6.88938 17.5 8.99805C17.4999 13.6928 13.7071 17.496 9.03223 17.4961C7.00648 17.4961 5.14812 16.7818 3.69043 15.5908C1.78256 14.0319 0.564513 11.6584 0.564453 8.99805C0.564453 4.30326 4.35757 0.5 9.03223 0.5Z" fill="#E0E0E0" stroke="white"/>\n<path d="M9.03223 0.5C11.5718 0.500072 13.8475 1.62423 15.4004 3.40332C16.3466 6.48763 15.4753 10.1884 12.8115 12.8613C10.2128 15.469 6.63908 16.3642 3.61328 15.5244C1.75049 13.9649 0.564512 11.6218 0.564453 8.99805C0.564453 4.30325 4.35757 0.5 9.03223 0.5Z" fill="white" stroke="white"/>\n<path d="M4.14062 4.47467C4.14062 4.47467 5.34186 2.60175 6.98563 2.15683C6.98563 2.15683 8.43952 2.06143 10.0518 3.36378C10.0518 3.36378 9.4512 6.37922 9.2617 6.63318C9.2617 6.63318 5.7527 7.45859 5.56299 7.55393C5.56321 7.55387 4.45667 5.99829 4.14062 4.47467Z" fill="#3A3A39"/>\n<path d="M13.4355 1.17188V2.91804C13.4355 2.91804 15.4271 4.41008 15.8694 5.74356L17.4499 5.87054C17.4497 5.87054 16.5335 2.85488 13.4355 1.17188Z" fill="#3A3A39"/>\n<path d="M11.9174 9.48983L15.1421 9.07715C15.1421 9.07715 15.9007 10.4104 15.9007 12.3469C15.9007 12.3469 14.4783 14.2839 13.2452 14.7602L10.6533 13.2041L11.9174 9.48983Z" fill="#3A3A39"/>\n<path d="M4.29889 11.1094C4.29889 11.1094 5.72131 13.109 6.79616 13.9663L5.87972 16.1567C5.87972 16.1567 3.95116 15.9346 3.00324 15.1408C3.00324 15.1408 1.89648 13.8075 1.89648 11.8712L4.29889 11.1094Z" fill="#3A3A39"/>\n<path d="M0 8.75998H0.537671C0.537671 8.75998 0.695473 6.56912 1.6753 5.20405V3.77539C1.67524 3.77556 0.252824 5.45856 0 8.75998Z" fill="#3A3A39"/>\n<path d="M8.50977 17.9839L8.53486 17.7758C8.53486 17.7758 11.4116 17.3947 12.3918 16.8232L12.7876 17.1711C12.7876 17.1711 11.013 18.1346 8.50977 17.9839Z" fill="#3A3A39"/>\n<path d="M6.03809 0.47403L6.92327 0.505609L7.73005 0.0869141C7.72983 0.0869141 6.82842 0.188275 6.03809 0.47403Z" fill="#3A3A39"/>\n<path d="M9.9701 3.44196L9.95117 3.34866C10.0571 3.32719 12.5563 2.83109 13.5303 2.85958L13.5275 2.95498C12.563 2.9234 9.99563 3.43661 9.9701 3.44196Z" fill="#3A3A39"/>\n<path d="M15.1644 9.15312L15.0928 9.09079C15.7068 8.38099 15.8386 5.74151 15.8399 5.71484L15.9347 5.71959C15.9294 5.82945 15.8001 8.41919 15.1644 9.15312Z" fill="#3A3A39"/>\n<path d="M17.2936 12.5132L15.8496 12.3959L15.856 12.3008L17.3364 12.4058L17.2936 12.5132Z" fill="#3A3A39"/>\n<path d="M9.19206 6.60632L11.9424 9.60645L12.0122 9.54201L9.26187 6.54189L9.19206 6.60632Z" fill="#3A3A39"/>\n<path d="M12.4026 16.9393L12.332 16.8757C12.6065 16.5693 13.2287 14.6968 13.2349 14.6777L13.3248 14.7081C13.2995 14.7862 12.6904 16.6184 12.4026 16.9393Z" fill="#3A3A39"/>\n<path d="M6.67217 14.0501L6.65918 13.9561C6.69252 13.9512 10.025 13.4927 10.6739 13.1514L10.7184 13.2356C10.0546 13.5845 6.80983 14.0315 6.67217 14.0501Z" fill="#3A3A39"/>\n<path d="M4.32864 11.2177L4.2373 11.1923C4.27351 11.0616 5.12574 7.98283 5.53813 7.47266L5.61202 7.5325C5.21196 8.02744 4.33728 11.1861 4.32864 11.2177Z" fill="#3A3A39"/>\n<path d="M8.59764 17.8585C7.02193 17.4467 5.81311 16.1433 5.80078 16.1301L5.87055 16.0654C5.88271 16.0786 7.07321 17.3618 8.62152 17.7662L8.59764 17.8585Z" fill="#3A3A39"/>\n<path d="M1.90214 11.9296C0.387564 10.4396 0.429106 8.7083 0.429931 8.69141L0.524788 8.6945C0.523963 8.71183 0.484898 10.4023 1.96861 11.8615L1.90214 11.9296Z" fill="#3A3A39"/>\n<path d="M1.6195 5.29044L1.5625 5.21447C1.57383 5.20619 2.69666 4.36946 4.30769 4.43097L4.30379 4.52614C2.72709 4.46067 1.63062 5.28216 1.6195 5.29044Z" fill="#3A3A39"/>\n<path d="M6.8781 0.432384L6.94922 2.20605L7.04378 2.20224L6.97266 0.428566L6.8781 0.432384Z" fill="#3A3A39"/>\n<path d="M2.6886 15.3598L2.75195 15.4307L3.0948 15.1219L3.03145 15.0511L2.6886 15.3598Z" fill="#3A3A39"/>\n<path d="M8.51037 17.9785L8.50977 17.9838C11.013 18.1343 12.7876 17.1708 12.7876 17.1708L12.7856 17.1689C11.6436 17.6981 10.3729 17.9952 9.03258 17.9952C8.85728 17.9954 8.68341 17.9886 8.51037 17.9785Z" fill="#3A3A39"/>\n<path d="M6.97373 0.429201L6.97576 0.478336L7.73006 0.0869141C7.73006 0.0869141 6.82864 0.188275 6.03809 0.47403L6.8819 0.504173L6.87904 0.433177L6.97373 0.429201Z" fill="#3A3A39"/>\n<path d="M9.9701 3.44205C9.97235 3.44144 9.99684 3.43669 10.0392 3.42841C10.0476 3.38712 10.0522 3.36338 10.0522 3.36338C10.04 3.35349 10.0283 3.3456 10.0162 3.33594C9.98248 3.34256 9.95921 3.34731 9.95117 3.34897L9.9701 3.44205Z" fill="#3A3A39"/>\n<path d="M13.482 2.95418C13.4973 2.95457 13.5131 2.9544 13.5279 2.95501L13.5308 2.85961C13.5005 2.85879 13.4687 2.8584 13.4355 2.8584V2.91846C13.4355 2.91846 13.4546 2.93332 13.482 2.95418Z" fill="#3A3A39"/>\n<path d="M15.9329 5.74936C15.9335 5.73563 15.9341 5.72463 15.9343 5.71971L15.8574 5.71582C15.8607 5.72523 15.8656 5.73464 15.8687 5.74405L15.9329 5.74936Z" fill="#3A3A39"/>\n<path d="M15.1645 9.15184C15.168 9.14773 15.1711 9.14281 15.1747 9.13892C15.1537 9.09843 15.1419 9.07715 15.1419 9.07715L15.0995 9.08246C15.0975 9.08492 15.0956 9.08776 15.0938 9.09001L15.1645 9.15184Z" fill="#3A3A39"/>\n<path d="M17.29 12.5128L17.2933 12.513L17.3361 12.4055L17.3331 12.4053C17.3184 12.4412 17.3048 12.4773 17.29 12.5128Z" fill="#3A3A39"/>\n<path d="M9.29189 6.57688L9.2602 6.54199L9.19043 6.60659L9.22295 6.6423C9.24826 6.63634 9.26185 6.63303 9.26185 6.63303C9.27093 6.62083 9.28122 6.60062 9.29189 6.57688Z" fill="#3A3A39"/>\n<path d="M12.0102 9.54157L11.9579 9.48438L11.9171 9.48973L11.8945 9.55581L11.9406 9.606L12.0102 9.54157Z" fill="#3A3A39"/>\n<path d="M10.6737 13.1514C10.6729 13.1518 10.6719 13.1522 10.671 13.1526L10.6533 13.2046L10.7107 13.2391C10.713 13.238 10.7157 13.2368 10.7179 13.2356L10.6737 13.1514Z" fill="#3A3A39"/>\n<path d="M6.76658 13.9404C6.70138 13.9497 6.66248 13.9551 6.65918 13.9557L6.67217 14.0497C6.6835 14.048 6.71745 14.0435 6.76741 14.0365L6.79701 13.9659C6.78678 13.958 6.77627 13.9485 6.76658 13.9404Z" fill="#3A3A39"/>\n<path d="M5.60829 7.53664C5.60934 7.53543 5.61033 7.53377 5.61138 7.5325L5.53748 7.47266C5.53275 7.47862 5.52741 7.4869 5.52246 7.49391C5.54777 7.53129 5.56362 7.55359 5.56362 7.55359C5.57165 7.54923 5.5881 7.54343 5.60829 7.53664Z" fill="#3A3A39"/>\n<path d="M4.2557 11.123C4.24563 11.1587 4.2388 11.1833 4.23633 11.1924L4.32766 11.2177C4.32827 11.2157 4.33322 11.1977 4.34125 11.1686C4.31572 11.1333 4.29867 11.1094 4.29867 11.1094L4.2557 11.123Z" fill="#3A3A39"/>\n<path d="M5.90389 16.1001C5.88496 16.0807 5.87159 16.0666 5.87055 16.0654L5.80078 16.1301C5.80161 16.1309 5.80755 16.1373 5.81806 16.1485C5.85569 16.1534 5.8804 16.1565 5.8804 16.1565L5.90389 16.1001Z" fill="#3A3A39"/>\n<path d="M1.96765 11.8618C1.96416 11.8583 1.96154 11.8551 1.95805 11.8516L1.89648 11.8712C1.89648 11.8896 1.89834 11.9072 1.8985 11.9256C1.8997 11.9269 1.90074 11.9283 1.90199 11.9295L1.96765 11.8618Z" fill="#3A3A39"/>\n<path d="M0.524712 8.6945L0.429855 8.69141C0.429635 8.69328 0.42947 8.71906 0.43046 8.75975H0.525317C0.524327 8.72133 0.524492 8.69654 0.524712 8.6945Z" fill="#3A3A39"/>\n<path d="M4.15301 4.52554C4.20318 4.52593 4.25259 4.52471 4.30382 4.52676L4.30773 4.43158C4.26079 4.4297 4.21595 4.43136 4.17006 4.43097C4.15278 4.45659 4.14062 4.47475 4.14062 4.47475C4.14437 4.4917 4.14926 4.50865 4.15301 4.52554Z" fill="#3A3A39"/>\n<path d="M1.61747 5.28773C1.63661 5.25963 1.65532 5.23159 1.67485 5.20409V5.13867C1.60388 5.18411 1.56459 5.21298 1.5625 5.21464L1.61747 5.28773Z" fill="#3A3A39"/>\n<path d="M7.04436 2.20297L7.04249 2.15527C7.0069 2.15566 6.9861 2.15671 6.9861 2.15671C6.97311 2.16024 6.96101 2.1656 6.94824 2.1693L6.94967 2.20728L7.04436 2.20297Z" fill="#3A3A39"/>\n<path d="M6.97466 0.478822L6.97257 0.429688L6.87793 0.433608L6.88085 0.50466L6.92217 0.506095L6.97466 0.478822Z" fill="#3A3A39"/>\n<path d="M3.02944 15.0508L2.97266 15.102C2.99054 15.1253 3.00308 15.1408 3.00308 15.1408C3.0148 15.1507 3.02817 15.1594 3.04033 15.1689L3.09282 15.1216L3.02944 15.0508Z" fill="#3A3A39"/>\n<path d="M17.4419 5.87049C17.0709 4.86836 16.5277 3.94987 15.8477 3.15234C16.1176 3.99426 16.2563 4.87869 16.2692 5.77614L17.4419 5.87049Z" fill="#2A2B2A"/>\n<path d="M15.4615 9.8125C14.9428 11.0357 14.1792 12.1979 13.1665 13.214C12.8443 13.5373 12.5063 13.8335 12.1575 14.1069L13.2138 14.7412C13.1083 15.0546 12.6118 16.5022 12.3569 16.8423C11.4468 17.3469 9.08062 17.699 8.61601 17.7645C7.49627 17.4703 6.5669 16.7194 6.13377 16.322C6.08893 16.3231 6.04387 16.326 5.99902 16.3264C6.39573 16.7007 7.35454 17.5092 8.52798 17.8374L8.51092 17.9782C8.68397 17.9883 8.85784 17.9952 9.03313 17.9952C10.3736 17.9952 11.6442 17.6981 12.7862 17.1689L12.451 16.8745C12.7421 16.4455 13.26 14.9045 13.3189 14.727C14.4226 14.253 15.6472 12.6829 15.8639 12.3965L17.2904 12.5126C17.3052 12.4771 17.3188 12.4408 17.3334 12.4051L15.9001 12.3035C15.8936 11.2523 15.6663 10.383 15.4615 9.8125Z" fill="#2A2B2A"/>\n</svg>\n'}),a("span",{key:"8e595b5be089865d5737bded31771632812d38d4"},n("sports",this.language)," "))),this.isCasinoEnabled&&"Casino"===this.activeType&&(this.isTournamentLoading&&0===this.casinoGames.length?a("div",{class:"Loading"},"Loading"):a("div",{class:"Games CasinoGames "+("Casino"===this.activeType?"Active":"")},0===this.casinoGames.length?a("div",{class:"NoGames"}," ",n("noGames",this.language)," "):this.casinoGames.map((i=>a("div",{class:"GameThumbnail "+(this.currentGameId==i.id?"Active":""),onClick:this.onGameClick.bind(this,i)},"PC"===this.device&&a("div",{class:"PlayNowButton"}," ",n("playNow",this.language)," "),a("ui-image",{src:i.thumbnail,alt:"Game"})))))),a("div",{key:"ad85c8dae08e9eabf55d955cdbc4349b809bb076",class:"Games SportsGames "+("Sports"===this.activeType?"Active":"")},this.isSportsEnabled&&(null===(i=this.sportsRules)||void 0===i?void 0:i.map((i=>a("div",{class:"Item"},i.rule," ",n("contribution",this.language))))))))}stopObserver(){this.timeoutId&&clearTimeout(this.timeoutId),this.gamesObserver&&(this.gamesObserver.disconnect(),this.gamesObserver=null)}resetObserver(){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{this.gamesObserver&&this.el.querySelector(".CasinoGames")&&this.isCasinoEnabled&&(this.lastGameElement=this.el.querySelector(".CasinoGames").lastElementChild,this.lastGameElement&&this.gamesObserver.observe(this.lastGameElement))}),1e3)}handleNewTranslations(){e(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await e(this.translationUrl)}componentDidLoad(){this.activeType=this.isCasinoEnabled?"Casino":"Sports",this.isCasinoEnabled&&(this.gamesObserver=new IntersectionObserver((i=>{i.forEach((i=>{i.isIntersecting&&(this.gamesObserver.unobserve(this.lastGameElement),this.offset+=this.limit)}))})),this.loadGamesByTournamentId()),this.isSportsEnabled&&(this.isCasinoEnabled||(this.isTournamentLoading=!1),this.parseSportsRules(this.rules))}disconnectedCallback(){this.stopObserver()}static get watchers(){return{tournamentId:["loadGamesByTournamentId"],endpoint:["loadGamesByTournamentId"],session:["loadGamesByTournamentId"],language:["loadGamesByTournamentId"],offset:["loadGamesByTournamentId"],translationUrl:["handleNewTranslations"]}}};s.style=":host{display:block}@media screen and (min-width: 340px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 3 - 0.1px)}}@media screen and (min-width: 370px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 3 - 0.1px);height:75px}}@media screen and (min-width: 480px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 4 - 0.1px)}}@media screen and (min-width: 768px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 5 - 0.1px)}}@media screen and (min-width: 820px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 6 - 0.1px)}}@media screen and (min-width: 1080px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 6 - 0.1px)}}.GamesContainer{padding:0px 15px 10px 15px}.Desktop .GamesContainer{height:calc(100% - 10px);overflow-y:auto;scrollbar-width:thin}.GamesTabNav{gap:10px;justify-content:space-between;padding:10px 0px;display:flex}.GamesTabNav .Button{border:4px solid transparent;width:45%;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--emw--ingame-color-purple-slate30, rgba(102, 97, 120, 0.3019607843));opacity:1;padding-top:10px;padding-bottom:10px;border-radius:10px}.GamesTabNav .Button.Active{border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%);background-image:linear-gradient(99.01deg, #3f4a7b 2.6%, rgba(56, 39, 110, 0.8588235294) 102.76%), linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%);border:4px solid transparent;border-radius:16px;background-clip:padding-box, border-box;background-origin:padding-box, border-box}.CasinoGames::after{flex:auto}.Mobile .GamesContainer .CasinoGames .GameThumbnail .PlayNowButton{display:none}.GamesContainer .Games{display:none}.GamesContainer .Games.Active{display:flex}.GamesContainer .Games.SportsGames{flex-direction:column;gap:10px;margin-top:10px}.GamesContainer .Games.CasinoGames{flex-wrap:wrap;gap:10px;justify-content:space-between}.GamesContainer .Games.CasinoGames .GameThumbnail:hover{filter:blur(0.5px)}.GamesContainer .Games.CasinoGames .GameThumbnail:hover .PlayNowButton{opacity:1;transition:opacity 0.3s ease-in-out}.GamesContainer .Games.CasinoGames .GameThumbnail:last-child::after{flex:auto}.GamesContainer .Games.CasinoGames .GameThumbnail{position:relative;width:80px;min-height:55px;cursor:pointer}.GamesContainer .Games.CasinoGames .GameThumbnail.Active{cursor:none}.GamesContainer .Games.CasinoGames .GameThumbnail.Active .PlayNowButton{display:none}.GamesContainer .Games.CasinoGames .GameThumbnail .PlayNowButton:hover{filter:brightness(106%)}.GamesContainer .Games.CasinoGames .GameThumbnail .PlayNowButton{opacity:0;position:absolute;width:75%;height:20px;left:12.5%;top:calc(50% - 10px);background-color:#5bb663;color:#fff;display:flex;align-items:center;justify-content:center}.GamesContainer .Games.CasinoGames .GameThumbnail img{width:100%;height:100%;object-fit:cover;border-radius:6px}.GamesContainer .Games.CasinoGames .NoGames{margin:30px auto;display:flex;flex-direction:column;gap:15px;font-size:medium}";export{s as C}
|
|
1
|
+
import{r as i,h as a}from"./index-60eab789.js";const t={en:{casino:"Casino",sports:"Sports",contribution:"Contribution",noGames:"No games have been configured yet!",playNow:"Play Now"}},e=i=>new Promise((a=>{fetch(i).then((i=>i.json())).then((i=>{Object.keys(i).forEach((a=>{t[a]||(t[a]={});for(let e in i[a])t[a][e]=i[a][e]})),a(!0)}))})),n=(i,a,e)=>{let n=t[void 0!==a&&a in t?a:"en"][i];if(void 0!==e)for(const[i,a]of Object.entries(e.values)){const t=new RegExp(`{${i}}`,"g");n=n.replace(t,a)}return n},s=class{constructor(a){i(this,a),this.device=(()=>{let i=window.navigator.userAgent;return i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})(),this.translationUrl="",this.tournamentId=void 0,this.endpoint=void 0,this.session=void 0,this.language="en",this.isSportsEnabled=void 0,this.isCasinoEnabled=void 0,this.rules=void 0,this.currentGameId=void 0,this.isTournamentLoading=!0,this.offset=0,this.casinoGames=[],this.limit=20,this.activeType="Casino",this.gamesObserver=void 0,this.sportsRules=[]}parseSportsRules(i){if(null==i?void 0:i.length)try{const a=JSON.parse(i);this.sportsRules=a[this.language||"en"]||a["*"]}catch(i){console.error(i)}else this.sportsRules=[]}loadGamesByTournamentId(){if(!this.endpoint||!this.session||this.session.length<10||!this.tournamentId)return;if(this.offset>0&&this.offset>this.totalGamesCount)return void this.stopObserver();let i=new URL(`${this.endpoint}/v1/tournaments/${this.tournamentId}?language=${this.language}`),a={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET"};i.searchParams.append("expand","games"),i.searchParams.append("pagination",`games(limit=${this.limit},offset=${this.offset})`),i.searchParams.append("fields","id,sportsRules,games(id,name,thumbnail,launchUrl, slug)"),i.searchParams.append("language",this.language),i.searchParams.append("platform",this.device),this.isTournamentLoading=!0,fetch(i,a).then((i=>i.json())).then((i=>{const{item:{games:{items:a},total:t}}=i;this.casinoGames=[...this.casinoGames,...a],this.totalGamesCount=t,this.casinoGames.length>0&&this.resetObserver(),0==a.length&&this.stopObserver()}),(i=>{console.error(i)})).finally((()=>{this.isTournamentLoading=!1}))}toggleTab(i){this.activeType=i,"Casino"===this.activeType&&this.casinoGames.length>0&&this.resetObserver()}onGameClick(i){i.id!=this.currentGameId&&window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:i.slug}})}render(){var i;return a("div",{key:"334fe4392df710f856842813e6ffba447b10be08",class:"GamesContainer",ref:i=>{this.el=i}},a("div",{key:"1c6267a4a31485ec9c0b57f3b7fba4d7990dfba2"},this.isCasinoEnabled&&this.isSportsEnabled&&a("div",{key:"44a8e14063ec5afb7e2e27177a0fa7cf2b72457f",class:"GamesTabNav"},a("div",{key:"16b9aeeab6b06ec71d31c4cb9920238b05e3763d",class:"Button "+("Casino"===this.activeType?"Active":""),onClick:this.toggleTab.bind(this,"Casino")},a("div",{key:"49f56b2f309b6405665290e4277bdd93c60d4869",innerHTML:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_12898_3141)">\n<path d="M16.5264 14.2033L17.7967 14.1955L17.8217 11.4424L18.6248 11.4549C18.6248 11.4549 18.5998 14.4002 18.5998 14.6033C18.5998 14.808 18.4717 15.0111 18.2936 15.0361C18.1154 15.0611 16.7123 15.0611 16.7123 15.0611L16.5264 14.2033Z" fill="#9A9A9A"/>\n<path d="M17.0759 10.5676C17.0571 11.1863 17.4274 11.7894 18.2571 11.7816C19.0868 11.7738 19.3743 11.2723 19.3915 10.6551C19.4071 10.0988 19.0556 9.40976 18.2181 9.4332C17.4602 9.45507 17.0915 10.0519 17.0759 10.5676Z" fill="#DB0D2B"/>\n<path d="M17.4831 10.7326C17.7721 10.8576 17.7846 10.5248 17.9424 10.3045C18.1018 10.0826 18.3674 9.99669 18.219 9.81701C18.1268 9.70607 17.8237 9.60138 17.5268 9.98575C17.3237 10.2467 17.2393 10.6264 17.4831 10.7326Z" fill="white"/>\n<path d="M0.99704 15.6736C0.99704 15.6736 0.99704 9.17516 1.0611 8.06735C1.12516 6.95954 2.10485 3.95485 5.79079 2.74079C9.47673 1.52672 12.9424 2.87985 14.3111 4.06266C16.8252 6.2361 16.783 8.25954 16.783 8.25954L16.8049 15.5033C16.8049 15.5033 17.297 16.1392 17.297 16.3095C17.297 16.4798 17.2939 16.8658 17.2939 16.8658L0.48454 16.9095C0.48454 16.9095 0.468915 16.4564 0.55329 16.2642C0.637665 16.072 0.99704 15.6736 0.99704 15.6736Z" fill="#CACACA"/>\n<path d="M8.73105 0.729492C7.97012 0.729492 7.48418 1.23418 7.33262 1.61387C7.20137 1.94512 7.19043 2.38418 7.19043 2.38418C7.19043 2.38418 7.59199 2.46855 8.75918 2.46855C9.92637 2.46855 10.2342 2.35762 10.2342 2.35762C10.2342 2.35762 10.2889 1.88574 10.1107 1.56074C9.90762 1.18887 9.52793 0.729492 8.73105 0.729492Z" fill="#DB0A27"/>\n<path d="M7.4767 2.00199C7.6767 2.24261 8.09076 2.10667 8.46264 1.8098C8.77045 1.56292 9.1142 1.0973 8.93295 0.941048C8.67201 0.717611 8.2267 0.867611 7.83451 1.1723C7.59076 1.36292 7.29858 1.78949 7.4767 2.00199Z" fill="#FF4E23"/>\n<path d="M7.6864 1.81518C7.80984 1.91362 7.98171 1.7355 8.21453 1.54018C8.4114 1.37612 8.70515 1.20581 8.59109 1.06675C8.47546 0.92612 8.16765 1.05425 7.94578 1.23237C7.7489 1.38706 7.49421 1.66206 7.6864 1.81518Z" fill="#FFFDFD"/>\n<path d="M0.522782 16.4074C0.446219 16.5418 0.407157 18.7668 0.591532 18.9058C0.775907 19.0449 4.29309 18.9293 8.94153 18.9293C13.59 18.9293 16.99 18.9058 17.1525 18.698C17.3853 18.398 17.3743 16.3918 17.304 16.2762C17.1697 16.0512 12.965 16.2465 8.91809 16.2699C4.75403 16.2918 0.643094 16.1949 0.522782 16.4074Z" fill="#9A9A9A"/>\n<path d="M1.40169 16.9176C1.23919 16.9863 1.21732 18.2598 1.40169 18.3051C1.62669 18.3613 6.70169 18.3191 8.82982 18.3191C10.9579 18.3191 16.2283 18.3973 16.4361 18.2129C16.6439 18.0285 16.6251 17.0207 16.4861 16.8582C16.347 16.6957 10.9079 16.8254 8.872 16.8254C6.83607 16.8254 1.7345 16.7738 1.40169 16.9176Z" fill="#858585"/>\n<path d="M1.81913 8.03437C1.77226 8.19687 1.75038 15.1578 1.81913 15.2047C1.88788 15.2516 15.8816 15.2969 16.0207 15.1578C16.1598 15.0188 16.0676 8.15 16.0441 8.01094C16.0207 7.87188 8.85038 7.71094 8.85038 7.71094L1.81913 8.03437Z" fill="#6F7178"/>\n<path d="M2.30121 8.55319C2.27464 8.62507 2.31527 14.7219 2.38089 14.7891C2.44808 14.8563 15.509 14.7626 15.5762 14.7094C15.6434 14.6563 15.6293 8.56101 15.5762 8.51413C15.5231 8.46569 2.32777 8.47819 2.30121 8.55319Z" fill="#3A3839"/>\n<path d="M8.95951 2.87834C5.82514 2.85021 3.90795 4.28303 3.03451 5.4424C2.16108 6.60178 1.68295 7.67209 1.81733 8.03459C1.85326 8.13302 4.11733 8.04396 8.69389 8.06271C13.2705 8.08146 15.9673 8.15021 16.0423 8.01115C16.1189 7.87209 15.8064 6.29865 14.1048 4.83459C12.7392 3.65646 11.1251 2.89709 8.95951 2.87834Z" fill="#FFDB8B"/>\n<path d="M2.3252 7.58468C2.3252 7.58468 3.87676 3.23155 8.81426 3.27374C14.2221 3.32062 15.3189 7.55343 15.3189 7.55343L2.3252 7.58468Z" fill="#FFAF29"/>\n<path d="M4.6707 5.44043C3.73789 6.2873 3.33008 7.1623 3.33008 7.1623C3.33008 7.1623 6.8082 7.23418 6.81758 7.18105C6.82852 7.11387 4.6707 5.44043 4.6707 5.44043Z" fill="#FFD61C"/>\n<path d="M6.82637 4.1582C6.19824 4.36133 5.6623 4.65039 5.21387 4.9707C5.80449 5.5082 7.4373 6.75508 7.65918 6.91289C7.92324 7.10039 8.01074 7.20195 8.07012 7.16602C8.11855 7.13789 7.9873 6.89102 7.94512 6.78945C7.87168 6.60977 7.05918 4.79883 6.82637 4.1582Z" fill="#FFD61C"/>\n<path d="M9.7625 3.94351C9.44063 3.89351 9.03906 3.84663 8.68281 3.84976C8.24844 3.85288 7.95313 3.89663 7.57812 3.97163C7.57812 3.97163 8.80938 7.01694 8.83594 7.09038C8.86406 7.16382 8.92656 7.23882 8.96094 7.09038C8.99375 6.94351 9.7625 3.94351 9.7625 3.94351Z" fill="#FFD61C"/>\n<path d="M11.0416 7.20781C11.0635 7.25625 14.4104 7.22813 14.4104 7.22813C14.4104 7.22813 13.9323 6.31719 12.9291 5.44531C12.9291 5.44375 11.001 7.11563 11.0416 7.20781Z" fill="#FFD61C"/>\n<path d="M12.3367 4.95645C11.8273 4.6002 11.2226 4.28145 10.5132 4.0752C10.3148 4.8252 9.88042 6.64238 9.83667 6.87207C9.81948 6.95801 9.75855 7.14082 9.80073 7.17519C9.84448 7.21113 10.0023 7.10957 10.1382 6.97832C10.2929 6.82832 12.3367 4.95645 12.3367 4.95645Z" fill="#FFD61C"/>\n<path d="M6.49569 11.6434C6.46756 10.1699 6.84569 9.31836 7.03944 8.98242L3.65819 8.98711C3.65819 8.98711 2.82382 10.0262 2.80975 11.534C2.79569 13.0418 3.60038 14.3449 3.60038 14.3449L7.02382 14.3309C6.85975 13.9871 6.52381 13.1059 6.49569 11.6434Z" fill="white"/>\n<path d="M10.9641 11.6441C11.011 10.2832 10.6782 9.36289 10.5032 8.97852L7.39539 8.9832C7.20476 9.43789 6.86414 10.4223 6.89226 11.6191C6.92195 12.9238 7.26414 13.9551 7.40633 14.3316L10.611 14.3191C10.7188 13.9004 10.9173 12.9676 10.9641 11.6441Z" fill="white"/>\n<path d="M14.3301 8.97363L10.9316 8.97832C11.1332 9.47988 11.4629 10.5064 11.4004 11.7346C11.3363 12.9705 11.1145 13.9236 11.0082 14.3158L14.2285 14.3018C14.2285 14.3018 15.0488 13.3064 15.1223 11.7549C15.1941 10.2033 14.3301 8.97363 14.3301 8.97363Z" fill="white"/>\n<path d="M4.32031 14.3449L5.86563 14.3371C5.86563 14.3371 5.74688 13.9028 5.15938 13.9184C4.55938 13.9371 4.32031 14.3449 4.32031 14.3449Z" fill="#FAB037"/>\n<path d="M8.4502 14.3281L9.63457 14.3218C9.63457 14.3218 9.62363 13.964 9.04395 13.9718C8.54395 13.9781 8.47051 14.2874 8.4502 14.3281Z" fill="#FFD429"/>\n<path d="M12.27 14.3123L13.6403 14.3045C13.6403 14.3045 13.7106 13.9139 13.3575 13.8826C13.0575 13.8561 12.984 14.1358 12.984 14.1358C12.984 14.1358 12.9184 13.9342 12.6575 13.9295C12.3434 13.9233 12.2559 14.2655 12.27 14.3123Z" fill="#A75FB7"/>\n<path d="M11.9893 8.97676L13.7877 8.97363C13.7877 8.97363 13.7986 9.53301 13.0971 9.54707C12.0971 9.56738 11.9893 8.97676 11.9893 8.97676Z" fill="#FEBF21"/>\n<path d="M8.32925 8.98008C8.32925 8.98008 8.21519 9.36602 8.29488 9.44102C8.38863 9.52695 9.648 9.54414 9.7355 9.43789C9.823 9.33008 9.71363 8.97852 9.71363 8.97852L8.32925 8.98008Z" fill="#5B6467"/>\n<path d="M4.26367 8.98457L6.06055 8.98145C6.06055 8.98145 6.07773 9.43926 5.26992 9.44863C4.3543 9.46113 4.26367 8.98457 4.26367 8.98457Z" fill="#4E9226"/>\n<path d="M8.06863 10.4075C8.00144 10.4121 7.90144 10.1278 7.78113 10.1543C7.66081 10.1809 7.49363 10.2137 7.528 10.9887C7.56238 11.7637 7.62175 11.8293 7.77488 11.8231C7.928 11.8168 8.16238 11.37 8.16238 11.37C8.16238 11.37 8.32644 11.2996 8.4405 11.2918C8.55456 11.2856 8.63581 11.3887 8.77644 11.4356C8.91706 11.4825 9.11706 11.4887 9.11706 11.4887C9.11706 11.4887 8.64363 11.8887 8.48269 12.4028C8.32175 12.9168 8.3155 13.4231 8.35613 13.4559C8.39675 13.4887 9.61706 13.5028 9.66394 13.47C9.71081 13.4371 9.64363 12.0559 9.8905 11.6231C10.1374 11.1903 10.4702 10.67 10.4702 10.67C10.4702 10.67 10.3436 10.3293 10.2374 10.2903C10.1311 10.2496 9.90456 10.4168 9.62331 10.4043C9.34363 10.3903 9.0155 10.1121 8.84988 10.0637C8.56863 9.9809 8.26863 10.3934 8.06863 10.4075Z" fill="#FF2B26"/>\n<path d="M3.85256 10.3754C3.78537 10.3801 3.69162 10.1536 3.56818 10.1458C3.426 10.1364 3.32131 10.1583 3.31193 10.9317C3.30412 11.6911 3.40881 11.8473 3.56193 11.8411C3.71506 11.8348 3.94787 11.3598 3.94787 11.3598C3.94787 11.3598 4.07287 11.2817 4.19006 11.3208C4.29787 11.3567 4.38225 11.427 4.54631 11.4504C4.69318 11.4708 4.85881 11.4958 4.85881 11.4958C4.85881 11.4958 4.42912 11.8817 4.26818 12.3942C4.10881 12.9083 4.101 13.4145 4.14162 13.4473C4.18225 13.4801 5.40256 13.4942 5.44943 13.4614C5.49631 13.4286 5.45881 12.0942 5.70568 11.6598C5.95256 11.2254 6.25725 10.6598 6.25725 10.6598C6.25725 10.6598 6.13068 10.3192 6.02443 10.2801C5.91818 10.2395 5.64006 10.3723 5.36037 10.3583C5.08068 10.3442 4.776 10.0879 4.60412 10.0629C4.28537 10.0161 4.05256 10.3629 3.85256 10.3754Z" fill="#FF2B26"/>\n<path d="M12.3215 10.2967C12.2543 10.3014 12.1356 10.0623 12.0168 10.0889C11.8965 10.1155 11.7653 10.1483 11.7637 10.9233C11.7621 11.5717 11.8574 11.7498 12.0106 11.7576C12.2543 11.7686 12.384 11.3389 12.384 11.3389C12.384 11.3389 12.5543 11.278 12.6668 11.2717C12.7809 11.2655 12.8699 11.3248 13.0106 11.3717C13.1512 11.4186 13.3246 11.4373 13.3246 11.4373C13.3246 11.4373 12.8762 11.8248 12.7168 12.3389C12.5574 12.853 12.5496 13.3592 12.5903 13.392C12.6309 13.4248 13.8512 13.4389 13.8981 13.4061C13.9449 13.3733 13.8856 12.0576 14.1324 11.6248C14.3793 11.192 14.7106 10.767 14.7106 10.6733C14.7106 10.5795 14.5543 10.2295 14.4465 10.1889C14.3403 10.1483 14.1403 10.3123 13.8606 10.2998C13.5809 10.2858 13.2449 10.0248 13.0793 9.9764C12.7981 9.89358 12.5231 10.2826 12.3215 10.2967Z" fill="#FF2B26"/>\n</g>\n<defs>\n<clipPath id="clip0_12898_3141">\n<rect width="20" height="20" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n'}),a("div",{key:"2b07670039392003811d27de0213ab8f0f025201"}," ",n("casino",this.language)," ")),a("div",{key:"cd6556d87a534b9a7d419d074c55fa82b3214dcc",class:"Button "+("Sports"===this.activeType?"Active":""),onClick:this.toggleTab.bind(this,"Sports")},a("div",{key:"15a67f3f409f7cb6e2b2fe96993a1e02c9ce7a53",innerHTML:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.03223 0.5C11.6072 0.500073 13.9128 1.65433 15.4668 3.47656C16.7338 4.9622 17.5 6.88938 17.5 8.99805C17.4999 13.6928 13.7071 17.496 9.03223 17.4961C7.00648 17.4961 5.14812 16.7818 3.69043 15.5908C1.78256 14.0319 0.564513 11.6584 0.564453 8.99805C0.564453 4.30326 4.35757 0.5 9.03223 0.5Z" fill="#E0E0E0" stroke="white"/>\n<path d="M9.03223 0.5C11.5718 0.500072 13.8475 1.62423 15.4004 3.40332C16.3466 6.48763 15.4753 10.1884 12.8115 12.8613C10.2128 15.469 6.63908 16.3642 3.61328 15.5244C1.75049 13.9649 0.564512 11.6218 0.564453 8.99805C0.564453 4.30325 4.35757 0.5 9.03223 0.5Z" fill="white" stroke="white"/>\n<path d="M4.14062 4.47467C4.14062 4.47467 5.34186 2.60175 6.98563 2.15683C6.98563 2.15683 8.43952 2.06143 10.0518 3.36378C10.0518 3.36378 9.4512 6.37922 9.2617 6.63318C9.2617 6.63318 5.7527 7.45859 5.56299 7.55393C5.56321 7.55387 4.45667 5.99829 4.14062 4.47467Z" fill="#3A3A39"/>\n<path d="M13.4355 1.17188V2.91804C13.4355 2.91804 15.4271 4.41008 15.8694 5.74356L17.4499 5.87054C17.4497 5.87054 16.5335 2.85488 13.4355 1.17188Z" fill="#3A3A39"/>\n<path d="M11.9174 9.48983L15.1421 9.07715C15.1421 9.07715 15.9007 10.4104 15.9007 12.3469C15.9007 12.3469 14.4783 14.2839 13.2452 14.7602L10.6533 13.2041L11.9174 9.48983Z" fill="#3A3A39"/>\n<path d="M4.29889 11.1094C4.29889 11.1094 5.72131 13.109 6.79616 13.9663L5.87972 16.1567C5.87972 16.1567 3.95116 15.9346 3.00324 15.1408C3.00324 15.1408 1.89648 13.8075 1.89648 11.8712L4.29889 11.1094Z" fill="#3A3A39"/>\n<path d="M0 8.75998H0.537671C0.537671 8.75998 0.695473 6.56912 1.6753 5.20405V3.77539C1.67524 3.77556 0.252824 5.45856 0 8.75998Z" fill="#3A3A39"/>\n<path d="M8.50977 17.9839L8.53486 17.7758C8.53486 17.7758 11.4116 17.3947 12.3918 16.8232L12.7876 17.1711C12.7876 17.1711 11.013 18.1346 8.50977 17.9839Z" fill="#3A3A39"/>\n<path d="M6.03809 0.47403L6.92327 0.505609L7.73005 0.0869141C7.72983 0.0869141 6.82842 0.188275 6.03809 0.47403Z" fill="#3A3A39"/>\n<path d="M9.9701 3.44196L9.95117 3.34866C10.0571 3.32719 12.5563 2.83109 13.5303 2.85958L13.5275 2.95498C12.563 2.9234 9.99563 3.43661 9.9701 3.44196Z" fill="#3A3A39"/>\n<path d="M15.1644 9.15312L15.0928 9.09079C15.7068 8.38099 15.8386 5.74151 15.8399 5.71484L15.9347 5.71959C15.9294 5.82945 15.8001 8.41919 15.1644 9.15312Z" fill="#3A3A39"/>\n<path d="M17.2936 12.5132L15.8496 12.3959L15.856 12.3008L17.3364 12.4058L17.2936 12.5132Z" fill="#3A3A39"/>\n<path d="M9.19206 6.60632L11.9424 9.60645L12.0122 9.54201L9.26187 6.54189L9.19206 6.60632Z" fill="#3A3A39"/>\n<path d="M12.4026 16.9393L12.332 16.8757C12.6065 16.5693 13.2287 14.6968 13.2349 14.6777L13.3248 14.7081C13.2995 14.7862 12.6904 16.6184 12.4026 16.9393Z" fill="#3A3A39"/>\n<path d="M6.67217 14.0501L6.65918 13.9561C6.69252 13.9512 10.025 13.4927 10.6739 13.1514L10.7184 13.2356C10.0546 13.5845 6.80983 14.0315 6.67217 14.0501Z" fill="#3A3A39"/>\n<path d="M4.32864 11.2177L4.2373 11.1923C4.27351 11.0616 5.12574 7.98283 5.53813 7.47266L5.61202 7.5325C5.21196 8.02744 4.33728 11.1861 4.32864 11.2177Z" fill="#3A3A39"/>\n<path d="M8.59764 17.8585C7.02193 17.4467 5.81311 16.1433 5.80078 16.1301L5.87055 16.0654C5.88271 16.0786 7.07321 17.3618 8.62152 17.7662L8.59764 17.8585Z" fill="#3A3A39"/>\n<path d="M1.90214 11.9296C0.387564 10.4396 0.429106 8.7083 0.429931 8.69141L0.524788 8.6945C0.523963 8.71183 0.484898 10.4023 1.96861 11.8615L1.90214 11.9296Z" fill="#3A3A39"/>\n<path d="M1.6195 5.29044L1.5625 5.21447C1.57383 5.20619 2.69666 4.36946 4.30769 4.43097L4.30379 4.52614C2.72709 4.46067 1.63062 5.28216 1.6195 5.29044Z" fill="#3A3A39"/>\n<path d="M6.8781 0.432384L6.94922 2.20605L7.04378 2.20224L6.97266 0.428566L6.8781 0.432384Z" fill="#3A3A39"/>\n<path d="M2.6886 15.3598L2.75195 15.4307L3.0948 15.1219L3.03145 15.0511L2.6886 15.3598Z" fill="#3A3A39"/>\n<path d="M8.51037 17.9785L8.50977 17.9838C11.013 18.1343 12.7876 17.1708 12.7876 17.1708L12.7856 17.1689C11.6436 17.6981 10.3729 17.9952 9.03258 17.9952C8.85728 17.9954 8.68341 17.9886 8.51037 17.9785Z" fill="#3A3A39"/>\n<path d="M6.97373 0.429201L6.97576 0.478336L7.73006 0.0869141C7.73006 0.0869141 6.82864 0.188275 6.03809 0.47403L6.8819 0.504173L6.87904 0.433177L6.97373 0.429201Z" fill="#3A3A39"/>\n<path d="M9.9701 3.44205C9.97235 3.44144 9.99684 3.43669 10.0392 3.42841C10.0476 3.38712 10.0522 3.36338 10.0522 3.36338C10.04 3.35349 10.0283 3.3456 10.0162 3.33594C9.98248 3.34256 9.95921 3.34731 9.95117 3.34897L9.9701 3.44205Z" fill="#3A3A39"/>\n<path d="M13.482 2.95418C13.4973 2.95457 13.5131 2.9544 13.5279 2.95501L13.5308 2.85961C13.5005 2.85879 13.4687 2.8584 13.4355 2.8584V2.91846C13.4355 2.91846 13.4546 2.93332 13.482 2.95418Z" fill="#3A3A39"/>\n<path d="M15.9329 5.74936C15.9335 5.73563 15.9341 5.72463 15.9343 5.71971L15.8574 5.71582C15.8607 5.72523 15.8656 5.73464 15.8687 5.74405L15.9329 5.74936Z" fill="#3A3A39"/>\n<path d="M15.1645 9.15184C15.168 9.14773 15.1711 9.14281 15.1747 9.13892C15.1537 9.09843 15.1419 9.07715 15.1419 9.07715L15.0995 9.08246C15.0975 9.08492 15.0956 9.08776 15.0938 9.09001L15.1645 9.15184Z" fill="#3A3A39"/>\n<path d="M17.29 12.5128L17.2933 12.513L17.3361 12.4055L17.3331 12.4053C17.3184 12.4412 17.3048 12.4773 17.29 12.5128Z" fill="#3A3A39"/>\n<path d="M9.29189 6.57688L9.2602 6.54199L9.19043 6.60659L9.22295 6.6423C9.24826 6.63634 9.26185 6.63303 9.26185 6.63303C9.27093 6.62083 9.28122 6.60062 9.29189 6.57688Z" fill="#3A3A39"/>\n<path d="M12.0102 9.54157L11.9579 9.48438L11.9171 9.48973L11.8945 9.55581L11.9406 9.606L12.0102 9.54157Z" fill="#3A3A39"/>\n<path d="M10.6737 13.1514C10.6729 13.1518 10.6719 13.1522 10.671 13.1526L10.6533 13.2046L10.7107 13.2391C10.713 13.238 10.7157 13.2368 10.7179 13.2356L10.6737 13.1514Z" fill="#3A3A39"/>\n<path d="M6.76658 13.9404C6.70138 13.9497 6.66248 13.9551 6.65918 13.9557L6.67217 14.0497C6.6835 14.048 6.71745 14.0435 6.76741 14.0365L6.79701 13.9659C6.78678 13.958 6.77627 13.9485 6.76658 13.9404Z" fill="#3A3A39"/>\n<path d="M5.60829 7.53664C5.60934 7.53543 5.61033 7.53377 5.61138 7.5325L5.53748 7.47266C5.53275 7.47862 5.52741 7.4869 5.52246 7.49391C5.54777 7.53129 5.56362 7.55359 5.56362 7.55359C5.57165 7.54923 5.5881 7.54343 5.60829 7.53664Z" fill="#3A3A39"/>\n<path d="M4.2557 11.123C4.24563 11.1587 4.2388 11.1833 4.23633 11.1924L4.32766 11.2177C4.32827 11.2157 4.33322 11.1977 4.34125 11.1686C4.31572 11.1333 4.29867 11.1094 4.29867 11.1094L4.2557 11.123Z" fill="#3A3A39"/>\n<path d="M5.90389 16.1001C5.88496 16.0807 5.87159 16.0666 5.87055 16.0654L5.80078 16.1301C5.80161 16.1309 5.80755 16.1373 5.81806 16.1485C5.85569 16.1534 5.8804 16.1565 5.8804 16.1565L5.90389 16.1001Z" fill="#3A3A39"/>\n<path d="M1.96765 11.8618C1.96416 11.8583 1.96154 11.8551 1.95805 11.8516L1.89648 11.8712C1.89648 11.8896 1.89834 11.9072 1.8985 11.9256C1.8997 11.9269 1.90074 11.9283 1.90199 11.9295L1.96765 11.8618Z" fill="#3A3A39"/>\n<path d="M0.524712 8.6945L0.429855 8.69141C0.429635 8.69328 0.42947 8.71906 0.43046 8.75975H0.525317C0.524327 8.72133 0.524492 8.69654 0.524712 8.6945Z" fill="#3A3A39"/>\n<path d="M4.15301 4.52554C4.20318 4.52593 4.25259 4.52471 4.30382 4.52676L4.30773 4.43158C4.26079 4.4297 4.21595 4.43136 4.17006 4.43097C4.15278 4.45659 4.14062 4.47475 4.14062 4.47475C4.14437 4.4917 4.14926 4.50865 4.15301 4.52554Z" fill="#3A3A39"/>\n<path d="M1.61747 5.28773C1.63661 5.25963 1.65532 5.23159 1.67485 5.20409V5.13867C1.60388 5.18411 1.56459 5.21298 1.5625 5.21464L1.61747 5.28773Z" fill="#3A3A39"/>\n<path d="M7.04436 2.20297L7.04249 2.15527C7.0069 2.15566 6.9861 2.15671 6.9861 2.15671C6.97311 2.16024 6.96101 2.1656 6.94824 2.1693L6.94967 2.20728L7.04436 2.20297Z" fill="#3A3A39"/>\n<path d="M6.97466 0.478822L6.97257 0.429688L6.87793 0.433608L6.88085 0.50466L6.92217 0.506095L6.97466 0.478822Z" fill="#3A3A39"/>\n<path d="M3.02944 15.0508L2.97266 15.102C2.99054 15.1253 3.00308 15.1408 3.00308 15.1408C3.0148 15.1507 3.02817 15.1594 3.04033 15.1689L3.09282 15.1216L3.02944 15.0508Z" fill="#3A3A39"/>\n<path d="M17.4419 5.87049C17.0709 4.86836 16.5277 3.94987 15.8477 3.15234C16.1176 3.99426 16.2563 4.87869 16.2692 5.77614L17.4419 5.87049Z" fill="#2A2B2A"/>\n<path d="M15.4615 9.8125C14.9428 11.0357 14.1792 12.1979 13.1665 13.214C12.8443 13.5373 12.5063 13.8335 12.1575 14.1069L13.2138 14.7412C13.1083 15.0546 12.6118 16.5022 12.3569 16.8423C11.4468 17.3469 9.08062 17.699 8.61601 17.7645C7.49627 17.4703 6.5669 16.7194 6.13377 16.322C6.08893 16.3231 6.04387 16.326 5.99902 16.3264C6.39573 16.7007 7.35454 17.5092 8.52798 17.8374L8.51092 17.9782C8.68397 17.9883 8.85784 17.9952 9.03313 17.9952C10.3736 17.9952 11.6442 17.6981 12.7862 17.1689L12.451 16.8745C12.7421 16.4455 13.26 14.9045 13.3189 14.727C14.4226 14.253 15.6472 12.6829 15.8639 12.3965L17.2904 12.5126C17.3052 12.4771 17.3188 12.4408 17.3334 12.4051L15.9001 12.3035C15.8936 11.2523 15.6663 10.383 15.4615 9.8125Z" fill="#2A2B2A"/>\n</svg>\n'}),a("span",{key:"46e2cfedcf3cfa1bdae54b6cd731f1e708243d9d"},n("sports",this.language)," "))),this.isCasinoEnabled&&"Casino"===this.activeType&&(this.isTournamentLoading&&0===this.casinoGames.length?a("div",{class:"Loading"},"Loading"):a("div",{class:"Games CasinoGames "+("Casino"===this.activeType?"Active":"")},0===this.casinoGames.length?a("div",{class:"NoGames"}," ",n("noGames",this.language)," "):this.casinoGames.map((i=>a("div",{class:"GameThumbnail "+(this.currentGameId==i.id?"Active":""),onClick:this.onGameClick.bind(this,i)},"PC"===this.device&&a("div",{class:"PlayNowButton"}," ",n("playNow",this.language)," "),a("ui-image",{src:i.thumbnail,alt:"Game"})))))),a("div",{key:"6c22ea3af9c1f4b5f0d18ebc26080925e27793a4",class:"Games SportsGames "+("Sports"===this.activeType?"Active":"")},this.isSportsEnabled&&(null===(i=this.sportsRules)||void 0===i?void 0:i.map((i=>a("div",{class:"Item"},i.rule," ",n("contribution",this.language))))))))}stopObserver(){this.timeoutId&&clearTimeout(this.timeoutId),this.gamesObserver&&(this.gamesObserver.disconnect(),this.gamesObserver=null)}resetObserver(){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{this.gamesObserver&&this.el.querySelector(".CasinoGames")&&this.isCasinoEnabled&&(this.lastGameElement=this.el.querySelector(".CasinoGames").lastElementChild,this.lastGameElement&&this.gamesObserver.observe(this.lastGameElement))}),1e3)}handleNewTranslations(){e(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await e(this.translationUrl)}componentDidLoad(){this.activeType=this.isCasinoEnabled?"Casino":"Sports",this.isCasinoEnabled&&(this.gamesObserver=new IntersectionObserver((i=>{i.forEach((i=>{i.isIntersecting&&(this.gamesObserver.unobserve(this.lastGameElement),this.offset+=this.limit)}))})),this.loadGamesByTournamentId()),this.isSportsEnabled&&(this.isCasinoEnabled||(this.isTournamentLoading=!1),this.parseSportsRules(this.rules))}disconnectedCallback(){this.stopObserver()}static get watchers(){return{tournamentId:["loadGamesByTournamentId"],endpoint:["loadGamesByTournamentId"],session:["loadGamesByTournamentId"],language:["loadGamesByTournamentId"],offset:["loadGamesByTournamentId"],translationUrl:["handleNewTranslations"]}}};s.style=":host{display:block}@media screen and (min-width: 340px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 3 - 0.1px)}}@media screen and (min-width: 370px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 3 - 0.1px);height:75px}}@media screen and (min-width: 480px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 4 - 0.1px)}}@media screen and (min-width: 768px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 5 - 0.1px)}}@media screen and (min-width: 820px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 6 - 0.1px)}}@media screen and (min-width: 1080px){.Mobile .GamesContainer .GameThumbnail{flex:0 0 calc((100% - 40px) / 6 - 0.1px)}}.GamesContainer{padding:0px 15px 10px 15px}.Desktop .GamesContainer{height:calc(100% - 10px);overflow-y:auto;scrollbar-width:thin}.GamesTabNav{gap:10px;justify-content:space-between;padding:10px 0px;display:flex}.GamesTabNav .Button{border:4px solid transparent;width:45%;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--emw--ingame-color-purple-slate30, rgba(102, 97, 120, 0.3019607843));opacity:1;padding-top:10px;padding-bottom:10px;border-radius:10px}.GamesTabNav .Button.Active{border-image-source:linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%);background-image:linear-gradient(99.01deg, #3f4a7b 2.6%, rgba(56, 39, 110, 0.8588235294) 102.76%), linear-gradient(94.32deg, var(--emw--ingame-color-pth-primary1, #9500FF) 4.41%, var(--emw--ingame-color-pth-primary2, #232EC4) 113.86%);border:4px solid transparent;border-radius:16px;background-clip:padding-box, border-box;background-origin:padding-box, border-box}.CasinoGames::after{flex:auto}.Mobile .GamesContainer .CasinoGames .GameThumbnail .PlayNowButton{display:none}.GamesContainer .Games{display:none}.GamesContainer .Games.Active{display:flex}.GamesContainer .Games.SportsGames{flex-direction:column;gap:10px;margin-top:10px}.GamesContainer .Games.CasinoGames{flex-wrap:wrap;gap:10px;justify-content:space-between}.GamesContainer .Games.CasinoGames .GameThumbnail:hover{filter:blur(0.5px)}.GamesContainer .Games.CasinoGames .GameThumbnail:hover .PlayNowButton{opacity:1;transition:opacity 0.3s ease-in-out}.GamesContainer .Games.CasinoGames .GameThumbnail:last-child::after{flex:auto}.GamesContainer .Games.CasinoGames .GameThumbnail{position:relative;width:80px;min-height:55px;cursor:pointer}.GamesContainer .Games.CasinoGames .GameThumbnail.Active{cursor:none}.GamesContainer .Games.CasinoGames .GameThumbnail.Active .PlayNowButton{display:none}.GamesContainer .Games.CasinoGames .GameThumbnail .PlayNowButton:hover{filter:brightness(106%)}.GamesContainer .Games.CasinoGames .GameThumbnail .PlayNowButton{opacity:0;position:absolute;width:75%;height:20px;left:12.5%;top:calc(50% - 10px);background-color:#5bb663;color:#fff;display:flex;align-items:center;justify-content:center}.GamesContainer .Games.CasinoGames .GameThumbnail img{width:100%;height:100%;object-fit:cover;border-radius:6px}.GamesContainer .Games.CasinoGames .NoGames{margin:30px auto;display:flex;flex-direction:column;gap:15px;font-size:medium}";export{s as C}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as casino_tournaments_ingame_games}from"./casino-tournaments-ingame-games-
|
|
1
|
+
export{C as casino_tournaments_ingame_games}from"./casino-tournaments-ingame-games-2a18c19e.js";import{r as e,h as t,H as i,g as n}from"./index-60eab789.js";const s=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t(i,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&t("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),t("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return n(this)}static get watchers(){return{src:["handleSrc"]}}};s.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const r=class{constructor(t){e(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,i)=>t("div",{key:i,class:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(i,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};r.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{s as ui_image,r as ui_skeleton}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoTournamentsIngameGames}from"./casino-tournaments-ingame-games-
|
|
1
|
+
export{C as CasinoTournamentsIngameGames}from"./casino-tournaments-ingame-games-2a18c19e.js";import"./index-60eab789.js";
|
|
@@ -227,14 +227,14 @@ const CasinoTournamentsIngameGames = class {
|
|
|
227
227
|
}
|
|
228
228
|
render() {
|
|
229
229
|
var _a;
|
|
230
|
-
return index.h("div", { key: '
|
|
231
|
-
index.h("div", { key: '
|
|
230
|
+
return index.h("div", { key: '334fe4392df710f856842813e6ffba447b10be08', class: 'GamesContainer', ref: el => { this.el = el; } }, index.h("div", { key: '1c6267a4a31485ec9c0b57f3b7fba4d7990dfba2' }, this.isCasinoEnabled && this.isSportsEnabled &&
|
|
231
|
+
index.h("div", { key: '44a8e14063ec5afb7e2e27177a0fa7cf2b72457f', class: 'GamesTabNav' }, index.h("div", { key: '16b9aeeab6b06ec71d31c4cb9920238b05e3763d', class: `Button ${this.activeType === 'Casino' ? 'Active' : ''}`, onClick: this.toggleTab.bind(this, 'Casino') }, index.h("div", { key: '49f56b2f309b6405665290e4277bdd93c60d4869', innerHTML: CasinoSvg }), index.h("div", { key: '2b07670039392003811d27de0213ab8f0f025201' }, " ", translate('casino', this.language), " ")), index.h("div", { key: 'cd6556d87a534b9a7d419d074c55fa82b3214dcc', class: `Button ${this.activeType === 'Sports' ? 'Active' : ''}`, onClick: this.toggleTab.bind(this, 'Sports') }, index.h("div", { key: '15a67f3f409f7cb6e2b2fe96993a1e02c9ce7a53', innerHTML: SportsSvg }), index.h("span", { key: '46e2cfedcf3cfa1bdae54b6cd731f1e708243d9d' }, translate('sports', this.language), " "))), this.isCasinoEnabled && this.activeType === 'Casino' && (this.isTournamentLoading && this.casinoGames.length === 0
|
|
232
232
|
? index.h("div", { class: 'Loading' }, "Loading")
|
|
233
233
|
: index.h("div", { class: `Games CasinoGames ${this.activeType === 'Casino' ? 'Active' : ''}` }, this.casinoGames.length === 0
|
|
234
234
|
? index.h("div", { class: 'NoGames' }, " ", translate('noGames', this.language), " ")
|
|
235
235
|
: this.casinoGames.map(game => {
|
|
236
236
|
return index.h("div", { class: `GameThumbnail ${this.currentGameId == game.id ? 'Active' : ''}`, onClick: this.onGameClick.bind(this, game) }, this.device === 'PC' && index.h("div", { class: 'PlayNowButton' }, " ", translate('playNow', this.language), " "), index.h("ui-image", { src: game.thumbnail, alt: "Game" }));
|
|
237
|
-
}))), index.h("div", { key: '
|
|
237
|
+
}))), index.h("div", { key: '6c22ea3af9c1f4b5f0d18ebc26080925e27793a4', class: `Games SportsGames ${this.activeType === 'Sports' ? 'Active' : ''}` }, this.isSportsEnabled && ((_a = this.sportsRules) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
238
238
|
return index.h("div", { class: 'Item' }, item.rule, " ", translate('contribution', this.language));
|
|
239
239
|
})))));
|
|
240
240
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoTournamentsIngameGames = require('./casino-tournaments-ingame-games-
|
|
5
|
+
const casinoTournamentsIngameGames = require('./casino-tournaments-ingame-games-311469d3.js');
|
|
6
6
|
const index = require('./index-42f2747f.js');
|
|
7
7
|
|
|
8
8
|
const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoTournamentsIngameGames = require('./casino-tournaments-ingame-games-
|
|
5
|
+
const casinoTournamentsIngameGames = require('./casino-tournaments-ingame-games-311469d3.js');
|
|
6
6
|
require('./index-42f2747f.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -83,14 +83,14 @@ export class CasinoTournamentsIngameGames {
|
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
85
|
var _a;
|
|
86
|
-
return h("div", { key: '
|
|
87
|
-
h("div", { key: '
|
|
86
|
+
return h("div", { key: '334fe4392df710f856842813e6ffba447b10be08', class: 'GamesContainer', ref: el => { this.el = el; } }, h("div", { key: '1c6267a4a31485ec9c0b57f3b7fba4d7990dfba2' }, this.isCasinoEnabled && this.isSportsEnabled &&
|
|
87
|
+
h("div", { key: '44a8e14063ec5afb7e2e27177a0fa7cf2b72457f', class: 'GamesTabNav' }, h("div", { key: '16b9aeeab6b06ec71d31c4cb9920238b05e3763d', class: `Button ${this.activeType === 'Casino' ? 'Active' : ''}`, onClick: this.toggleTab.bind(this, 'Casino') }, h("div", { key: '49f56b2f309b6405665290e4277bdd93c60d4869', innerHTML: CasinoSvg }), h("div", { key: '2b07670039392003811d27de0213ab8f0f025201' }, " ", translate('casino', this.language), " ")), h("div", { key: 'cd6556d87a534b9a7d419d074c55fa82b3214dcc', class: `Button ${this.activeType === 'Sports' ? 'Active' : ''}`, onClick: this.toggleTab.bind(this, 'Sports') }, h("div", { key: '15a67f3f409f7cb6e2b2fe96993a1e02c9ce7a53', innerHTML: SportsSvg }), h("span", { key: '46e2cfedcf3cfa1bdae54b6cd731f1e708243d9d' }, translate('sports', this.language), " "))), this.isCasinoEnabled && this.activeType === 'Casino' && (this.isTournamentLoading && this.casinoGames.length === 0
|
|
88
88
|
? h("div", { class: 'Loading' }, "Loading")
|
|
89
89
|
: h("div", { class: `Games CasinoGames ${this.activeType === 'Casino' ? 'Active' : ''}` }, this.casinoGames.length === 0
|
|
90
90
|
? h("div", { class: 'NoGames' }, " ", translate('noGames', this.language), " ")
|
|
91
91
|
: this.casinoGames.map(game => {
|
|
92
92
|
return h("div", { class: `GameThumbnail ${this.currentGameId == game.id ? 'Active' : ''}`, onClick: this.onGameClick.bind(this, game) }, this.device === 'PC' && h("div", { class: 'PlayNowButton' }, " ", translate('playNow', this.language), " "), h("ui-image", { src: game.thumbnail, alt: "Game" }));
|
|
93
|
-
}))), h("div", { key: '
|
|
93
|
+
}))), h("div", { key: '6c22ea3af9c1f4b5f0d18ebc26080925e27793a4', class: `Games SportsGames ${this.activeType === 'Sports' ? 'Active' : ''}` }, this.isSportsEnabled && ((_a = this.sportsRules) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
94
94
|
return h("div", { class: 'Item' }, item.rule, " ", translate('contribution', this.language));
|
|
95
95
|
})))));
|
|
96
96
|
}
|
|
@@ -225,14 +225,14 @@ const CasinoTournamentsIngameGames = class {
|
|
|
225
225
|
}
|
|
226
226
|
render() {
|
|
227
227
|
var _a;
|
|
228
|
-
return h("div", { key: '
|
|
229
|
-
h("div", { key: '
|
|
228
|
+
return h("div", { key: '334fe4392df710f856842813e6ffba447b10be08', class: 'GamesContainer', ref: el => { this.el = el; } }, h("div", { key: '1c6267a4a31485ec9c0b57f3b7fba4d7990dfba2' }, this.isCasinoEnabled && this.isSportsEnabled &&
|
|
229
|
+
h("div", { key: '44a8e14063ec5afb7e2e27177a0fa7cf2b72457f', class: 'GamesTabNav' }, h("div", { key: '16b9aeeab6b06ec71d31c4cb9920238b05e3763d', class: `Button ${this.activeType === 'Casino' ? 'Active' : ''}`, onClick: this.toggleTab.bind(this, 'Casino') }, h("div", { key: '49f56b2f309b6405665290e4277bdd93c60d4869', innerHTML: CasinoSvg }), h("div", { key: '2b07670039392003811d27de0213ab8f0f025201' }, " ", translate('casino', this.language), " ")), h("div", { key: 'cd6556d87a534b9a7d419d074c55fa82b3214dcc', class: `Button ${this.activeType === 'Sports' ? 'Active' : ''}`, onClick: this.toggleTab.bind(this, 'Sports') }, h("div", { key: '15a67f3f409f7cb6e2b2fe96993a1e02c9ce7a53', innerHTML: SportsSvg }), h("span", { key: '46e2cfedcf3cfa1bdae54b6cd731f1e708243d9d' }, translate('sports', this.language), " "))), this.isCasinoEnabled && this.activeType === 'Casino' && (this.isTournamentLoading && this.casinoGames.length === 0
|
|
230
230
|
? h("div", { class: 'Loading' }, "Loading")
|
|
231
231
|
: h("div", { class: `Games CasinoGames ${this.activeType === 'Casino' ? 'Active' : ''}` }, this.casinoGames.length === 0
|
|
232
232
|
? h("div", { class: 'NoGames' }, " ", translate('noGames', this.language), " ")
|
|
233
233
|
: this.casinoGames.map(game => {
|
|
234
234
|
return h("div", { class: `GameThumbnail ${this.currentGameId == game.id ? 'Active' : ''}`, onClick: this.onGameClick.bind(this, game) }, this.device === 'PC' && h("div", { class: 'PlayNowButton' }, " ", translate('playNow', this.language), " "), h("ui-image", { src: game.thumbnail, alt: "Game" }));
|
|
235
|
-
}))), h("div", { key: '
|
|
235
|
+
}))), h("div", { key: '6c22ea3af9c1f4b5f0d18ebc26080925e27793a4', class: `Games SportsGames ${this.activeType === 'Sports' ? 'Active' : ''}` }, this.isSportsEnabled && ((_a = this.sportsRules) === null || _a === void 0 ? void 0 : _a.map(item => {
|
|
236
236
|
return h("div", { class: 'Item' }, item.rule, " ", translate('contribution', this.language));
|
|
237
237
|
})))));
|
|
238
238
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as casino_tournaments_ingame_games } from './casino-tournaments-ingame-games-
|
|
1
|
+
export { C as casino_tournaments_ingame_games } from './casino-tournaments-ingame-games-2a18c19e.js';
|
|
2
2
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-60eab789.js';
|
|
3
3
|
|
|
4
4
|
const uiImageCss = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoTournamentsIngameGames } from './casino-tournaments-ingame-games-
|
|
1
|
+
export { C as CasinoTournamentsIngameGames } from './casino-tournaments-ingame-games-2a18c19e.js';
|
|
2
2
|
import './index-60eab789.js';
|
|
@@ -47,7 +47,7 @@ export type Tournament = {
|
|
|
47
47
|
minBetCount?: number;
|
|
48
48
|
scoreCriteria?: string;
|
|
49
49
|
enrollCriteria?: string;
|
|
50
|
-
prizes
|
|
50
|
+
prizes?: TournamentPrize[] | null;
|
|
51
51
|
playerEnrolled?: boolean;
|
|
52
52
|
overview?: {
|
|
53
53
|
participants: number;
|
|
@@ -67,7 +67,7 @@ export type Tournament = {
|
|
|
67
67
|
}>;
|
|
68
68
|
games?: {
|
|
69
69
|
count: number;
|
|
70
|
-
items:
|
|
70
|
+
items: CasinoGame[] | null;
|
|
71
71
|
total: number;
|
|
72
72
|
};
|
|
73
73
|
presentPeriod?: {
|
|
@@ -109,6 +109,3 @@ export type PthApiResponse = {
|
|
|
109
109
|
success: boolean;
|
|
110
110
|
[key: string]: any;
|
|
111
111
|
};
|
|
112
|
-
export type Test = {
|
|
113
|
-
id: string;
|
|
114
|
-
};
|
package/dist/types/components/casino-tournaments-ingame-games/casino-tournaments-ingame-games.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CasinoGame } from
|
|
1
|
+
import { CasinoGame } from "../../../../../../libs/common/src/types/casino/tournaments";
|
|
2
2
|
import "../../../../../../dist/packages/stencil/ui-image/dist/types/index";
|
|
3
3
|
export declare class CasinoTournamentsIngameGames {
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export var TournamentState;
|
|
2
|
-
(function (TournamentState) {
|
|
3
|
-
TournamentState["Unstarted"] = "Unstarted";
|
|
4
|
-
TournamentState["Ongoing"] = "Running";
|
|
5
|
-
TournamentState["Closing"] = "Closing";
|
|
6
|
-
TournamentState["Closed"] = "Closed";
|
|
7
|
-
})(TournamentState || (TournamentState = {}));
|