@everymatrix/casino-engagement-suite-container 1.72.1 → 1.73.0
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-engagement-suite-container/casino-engagement-suite-bar_17.entry.js +1 -1
- package/dist/casino-engagement-suite-container/casino-engagement-suite-container.esm.js +1 -1
- package/dist/casino-engagement-suite-container/tournament-item-title_2.entry.js +1 -1
- package/dist/casino-engagement-suite-container/tournament-item.entry.js +1 -1
- package/dist/casino-engagement-suite-container/util.date-3169fc53.js +15 -0
- package/dist/casino-engagement-suite-container/utils-25141486.js +1 -0
- package/dist/cjs/casino-engagement-suite-bar_17.cjs.entry.js +63 -38
- package/dist/cjs/casino-engagement-suite-container.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tournament-item-title_2.cjs.entry.js +5 -5
- package/dist/cjs/tournament-item.cjs.entry.js +3 -3
- package/dist/cjs/{util.date-40f8083f.js → util.date-e14691ef.js} +89 -2
- package/dist/cjs/utils-22119cc1.js +55 -0
- package/dist/collection/components/casino-engagement-suite-container/casino-engagement-suite-container.js +9 -3
- package/dist/collection/utils/constants.js +1 -0
- package/dist/esm/casino-engagement-suite-bar_17.entry.js +52 -27
- package/dist/esm/casino-engagement-suite-container.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tournament-item-title_2.entry.js +5 -5
- package/dist/esm/tournament-item.entry.js +3 -3
- package/dist/esm/{util.date-5e8800dd.js → util.date-3169fc53.js} +87 -3
- package/dist/esm/utils-25141486.js +51 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-container/util.date-5e8800dd.js +0 -15
- package/dist/casino-engagement-suite-container/utils-7de165b6.js +0 -1
- package/dist/cjs/utils-5e0824b8.js +0 -88
- package/dist/esm/utils-7de165b6.js +0 -82
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./index-58fe1cb7.js";export{s as setNonce}from"./index-58fe1cb7.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,i={};return""!==n&&(i.resourcesUrl=new URL(".",n).href),e(i)})().then((async e=>(await i(),n([["casino-engagement-suite-bar_17",[[1,"casino-engagement-suite-container",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],endpoint:[1],session:[1],orientation:[32],device:[32],showChallengesList:[32],showFreeSpinsList:[32],showLuckywheelList:[32],showLuckywheelDetails:[32],showJackpotsList:[32],showLuckyWheelsList:[32],showLuckyWheelsDetails:[32],showChallengeDetails:[32],showFreeSpinsDetails:[32],showJackpotDetails:[32],showLeaderboardWidget:[32],challengePercent:[32],remainingFreeSpins:[32],remainingLuckywheels:[32],highlightChallenge:[32],limitStylingAppends:[32],activeWidget:[32],challenges:[32],inProgressChallenges:[32],jackpots:[32],freeSpins:[32],luckyWheels:[32],leaderboards:[32],gameSlug:[32],pausedChallengeIds:[32],isChallengeLabel:[32],isForfeitedSpinsLabel:[32],isForfeitedChallengeLabel:[32],isJoiningToChallenge:[32],selectedChallenge:[32],selectedJackpot:[32],selectedSpin:[32],selectedSpinId:[32],selectedChallengeId:[32],selectedJackpotId:[32],selectedLuckyWheelId:[32],selectedLuckyWheelIndex:[32],barHeight:[32],lastTicketRemainingTimestamp:[32],init:[64]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-luckywheel-details",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],luckyWheels:[16],luckywheel:[16],giftimagesrc:[1],currentinfo:[1],contentdirection:[1],device:[1],translationUrl:[1,"translation-url"],selectedIndex:[2,"selected-index"],timers:[32],isLoading:[32]},null,{luckyWheels:["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-challenges-details",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],challenge:[1040],inProgressChallenges:[1040],language:[1],gameSlug:[1,"game-slug"],device:[1],isJoiningToChallenge:[1028,"is-joining-to-challenge"],pausedChallengeIds:[1040],limitStylingAppends:[32],timer:[32],showDetails:[32],isExpiredChallenge:[32]},null,{challenge:["challengePropHandler"]}],[1,"casino-engagement-suite-challenges-list",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],device:[1],challenges:[1040],isJoiningToChallenge:[1028,"is-joining-to-challenge"],inProgressChallenges:[1040],pausedChallengeIds:[1040],tooltip:[32],timers:[32],limitStylingAppends:[32],activeTab:[32],historyLoading:[32],challengesHistory:[32],openedHistoryIds:[32]},[[8,"message","handleEvent"]],{challenges:["challengesPropHandler"]}],[1,"casino-engagement-suite-modal-container",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],isJoiningToChallenge:[1028,"is-joining-to-challenge"],device:[1],limitStylingAppends:[32],openModals:[32],rewardMessage:[32],rewardText:[32],hasError:[32],confirmationData:[32],winAmount:[32]},[[16,"openModal","openModalHandler"],[16,"closeModal","closeModalHandler"]]],[1,"casino-engagement-suite-tournament",{language:[1],show:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],device:[1],orientation:[1],leaderboardsInit:[16],tipsHideDelay:[514,"tips-hide-delay"],tab:[32],locale:[32],tournamentItem:[32],tournamentList:[32],leaderboards:[32],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],newIdList:[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{newIdList:["
|
|
1
|
+
import{p as e,b as n}from"./index-58fe1cb7.js";export{s as setNonce}from"./index-58fe1cb7.js";import{g as i}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,i={};return""!==n&&(i.resourcesUrl=new URL(".",n).href),e(i)})().then((async e=>(await i(),n([["casino-engagement-suite-bar_17",[[1,"casino-engagement-suite-container",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],endpoint:[1],session:[1],orientation:[32],device:[32],showChallengesList:[32],showFreeSpinsList:[32],showLuckywheelList:[32],showLuckywheelDetails:[32],showJackpotsList:[32],showLuckyWheelsList:[32],showLuckyWheelsDetails:[32],showChallengeDetails:[32],showFreeSpinsDetails:[32],showJackpotDetails:[32],showLeaderboardWidget:[32],challengePercent:[32],remainingFreeSpins:[32],remainingLuckywheels:[32],highlightChallenge:[32],limitStylingAppends:[32],activeWidget:[32],challenges:[32],inProgressChallenges:[32],jackpots:[32],freeSpins:[32],luckyWheels:[32],leaderboards:[32],gameSlug:[32],pausedChallengeIds:[32],isChallengeLabel:[32],isForfeitedSpinsLabel:[32],isForfeitedChallengeLabel:[32],isJoiningToChallenge:[32],selectedChallenge:[32],selectedJackpot:[32],selectedSpin:[32],selectedSpinId:[32],selectedChallengeId:[32],selectedJackpotId:[32],selectedLuckyWheelId:[32],selectedLuckyWheelIndex:[32],barHeight:[32],lastTicketRemainingTimestamp:[32],init:[64]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-luckywheel-details",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],luckyWheels:[16],luckywheel:[16],giftimagesrc:[1],currentinfo:[1],contentdirection:[1],device:[1],translationUrl:[1,"translation-url"],selectedIndex:[2,"selected-index"],timers:[32],isLoading:[32]},null,{luckyWheels:["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-challenges-details",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],challenge:[1040],inProgressChallenges:[1040],language:[1],gameSlug:[1,"game-slug"],device:[1],isJoiningToChallenge:[1028,"is-joining-to-challenge"],pausedChallengeIds:[1040],limitStylingAppends:[32],timer:[32],showDetails:[32],isExpiredChallenge:[32]},null,{challenge:["challengePropHandler"]}],[1,"casino-engagement-suite-challenges-list",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],device:[1],challenges:[1040],isJoiningToChallenge:[1028,"is-joining-to-challenge"],inProgressChallenges:[1040],pausedChallengeIds:[1040],tooltip:[32],timers:[32],limitStylingAppends:[32],activeTab:[32],historyLoading:[32],challengesHistory:[32],openedHistoryIds:[32]},[[8,"message","handleEvent"]],{challenges:["challengesPropHandler"]}],[1,"casino-engagement-suite-modal-container",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],isJoiningToChallenge:[1028,"is-joining-to-challenge"],device:[1],limitStylingAppends:[32],openModals:[32],rewardMessage:[32],rewardText:[32],hasError:[32],confirmationData:[32],winAmount:[32]},[[16,"openModal","openModalHandler"],[16,"closeModal","closeModalHandler"]]],[1,"casino-engagement-suite-tournament",{language:[1],show:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],device:[1],orientation:[1],leaderboardsInit:[16],tipsHideDelay:[514,"tips-hide-delay"],tab:[32],locale:[32],tournamentItem:[32],tournamentList:[32],leaderboards:[32],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],newIdList:[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{newIdList:["watchPropHandler"],language:["watchPropHandler"],tournamentList:["syncBarState"],show:["showPropWatcher"]}],[1,"casino-engagement-suite-bar",{activeWidget:[1537,"active-widget"],challengePercent:[1,"challenge-percent"],highlightChallenge:[4,"highlight-challenge"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],orientation:[1],device:[1],isChallengeLabel:[4,"is-challenge-label"],isForfeitedChallengeLabel:[4,"is-forfeited-challenge-label"],isSpinForfeitedLabel:[1028,"is-spin-forfeited-label"],language:[1],jackpots:[16],remainingFreeSpins:[1,"remaining-free-spins"],remainingLuckywheels:[1,"remaining-luckywheels"],leaderboards:[16],limitStylingAppends:[32],activeJackpot:[32],leaderboardState:[32]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-free-spins-details",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],spin:[1040],inProgressChallenges:[16],language:[1],gameSlug:[1,"game-slug"],device:[1],orientation:[1],isJoiningToChallenge:[1028,"is-joining-to-challenge"],limitStylingAppends:[32],timer:[32],showDetails:[32],isExpiredChallenge:[32],activeTab:[32],visibleGames:[32],tooltip:[32]}],[1,"casino-engagement-suite-free-spins-list",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],device:[1],freeSpins:[1040],tooltip:[32],timers:[32],limitStylingAppends:[32],newSpinIds:[32]},null,{freeSpins:["spinsPropHandler"]}],[1,"casino-engagement-suite-jackpot-details",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],jackpot:[16],jackpotChangeStatusRequest:[1040],language:[1],gameSlug:[1,"game-slug"],device:[1],limitStylingAppends:[32],timer:[32],disabledStatus:[32],activeTab:[32],visibleGames:[32],enabled:[32],balance:[32],winBalance:[32],showDetails:[32],jackpotEndTime:[32],tooltip:[32],partialWins:[32]},[[8,"message","handleEvent"],[9,"resize","handleResize"]],{jackpot:["handleJackpotUpdate"]}],[1,"casino-engagement-suite-jackpots-list",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],device:[1],jackpots:[1040],jackpotChangeStatusRequest:[1040],tooltip:[32],timers:[32],limitStylingAppends:[32]},null,{jackpots:["jackpotsPropHandler"]}],[1,"casino-engagement-suite-luckywheel-list",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],device:[1],luckyWheels:[1040],translationUrl:[1,"translation-url"],tooltip:[32],timers:[32],limitStylingAppends:[32],activeTab:[32],historyLoading:[32],luckywheelHistory:[32],openedHistoryIds:[32],historyLoaded:[32],isLoading:[32]},[[8,"message","handleEvent"]],{luckyWheels:["luckywheelsPropHandler"]}],[1,"casino-engagement-suite-luckywheel",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[1],device:[1],luckywheel:[16],size:[1],contentdirection:[1],limitStylingAppends:[32],isPartitionsCustomableReady:[32],isSpinning:[32],options:[32],radius:[32],speed:[32],settings:[32],svg:[32],spinContainer:[32],spinable:[32],spinner:[32]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-modal",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isOpen:[4,"is-open"],isLoading:[1028,"is-loading"],header:[1],contentIcon:[1,"content-icon"],modalType:[1,"modal-type"],device:[1],showAnimation:[4,"show-animation"],limitStylingAppends:[32]}],[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentPage:[2,"current-page"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[1,"translation-url"],targetTranslations:[16]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]],["tournament-item",[[0,"tournament-item",{tournament:[16],isNew:[4,"is-new"],tid:[1],language:[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]]]],["ui-skeleton",[[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]],["ui-image",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}]]],["tournament-item-title_2",[[0,"tournament-timer",{tournament:[16],isDetail:[4,"is-detail"],timeHolder:[32],timeClock:[32],lastTimeDiff:[32],lastProgress:[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{tournament:[16],language:[1],isButtonDisabed:[32]},null,{tournament:["onTournamentChanged"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./index-58fe1cb7.js";import{D as e,
|
|
1
|
+
import{r as t,c as i,h as s}from"./index-58fe1cb7.js";import{D as e,d as n,r as a,t as h,L as d,f as o,b as r,h as c}from"./util.date-3169fc53.js";import"./utils-25141486.js";const l=class{constructor(s){t(this,s),this.unjoinTournamentConfirmEvent=i(this,"unjoinTournamentConfirmEvent",7),this.joinTournamentEvent=i(this,"joinTournamentEvent",7),this.tournament=void 0,this.language="en",this.isButtonDisabed=!1}onTournamentChanged(t){this.isButtonDisabed=!0===t.isActionJoinPending}onClickItemJoin(){this.isButtonDisabed||(this.isButtonDisabed=!this.tournament.isPlayerAcknowledged,this.tournament.isPlayerAcknowledged?this.unjoinTournamentConfirmEvent.emit({type:e.unjoin,tournament:this.tournament}):this.joinTournamentEvent.emit(this.tournament))}componentDidLoad(){this.isButtonDisabed=!0===this.tournament.isActionJoinPending}render(){return s("div",{key:"3123b0ffd6335833a5938b13e4c620ded693da38",class:"TitleContainer"},s("div",{key:"88977f242dd5cce6265c679ae55dc1dfdecd7fd0",class:"Title"},this.tournament.nameOrTitle),!n(this.tournament)&&s("div",{key:"bf2aad175409e687ed2bd42350a7f8585d86c112"},a({statedClasses:{isHollow:this.tournament.isPlayerAcknowledged,isPending:this.isButtonDisabed},onClick:t=>{t.stopPropagation(),this.onClickItemJoin()},innerHTML:h(this.tournament.isPlayerAcknowledged?"Unjoin":"Join",this.language)})))}static get watchers(){return{tournament:["onTournamentChanged"]}}},m=class{constructor(i){t(this,i),this.tournament=void 0,this.isDetail=!1,this.timeHolder=void 0,this.timeClock=!0,this.lastTimeDiff=void 0,this.lastProgress=void 0}containerPageChangeHandler(t){this.timeClock=t.detail.page===d.list&&!this.isDetail||t.detail.page===d.item&&this.isDetail}componentWillLoad(){this.lastProgress=o(this.tournament.startTime,this.tournament.endTime),this.lastTimeDiff=r(new Date,this.tournament.endTime,this.lastProgress)}setTimeInterval(){this.timeHolder=setInterval((()=>{const t=o(this.tournament.startTime,this.tournament.endTime),i=r(new Date,this.tournament.endTime,t);!this.timeClock||n(this.tournament)||i==this.lastTimeDiff&&t==this.lastProgress||(this.lastProgress=t,this.lastTimeDiff=i)}),2e3)}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}render(){return s("section",{key:"11426165a8f384d97f2b0158f7435f80ac0965a2",class:"TimeContainer"},s("div",{key:"b86c8a42a73b358fcc855a853cb322d1d314471a",class:"Time"},"Running"===this.tournament.state?s("div",{class:"Running"},s("div",null,this.lastTimeDiff),s("div",null,a({statedClasses:{isHollow:!0,isPending:!!this.tournament.isActionJoinPending},innerHTML:`${this.lastProgress}%`}))):[s("div",{class:"NotRunning"},c(this.tournament.startTime)),s("div",null,c(this.tournament.endTime))]),s("casino-engagement-suite-progress-bar",{key:"7f98e88679f30d0a0737d94ee806b1d92800b6a3",indeterminate:!1,value:Number(this.lastProgress>=100?100:this.lastProgress),"hide-percent":!0}))}};export{l as tournament_item_title,m as tournament_timer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as
|
|
1
|
+
import{r as e,c as t,h as a}from"./index-58fe1cb7.js";import{c as s}from"./utils-25141486.js";const i=class{constructor(a){e(this,a),this.clickToTournamentDetail=t(this,"clickToTournamentDetail",7),this.tournament=void 0,this.isNew=void 0,this.tid=void 0,this.language="en"}goToDetail(){this.clickToTournamentDetail.emit(this.tournament)}onTournamentUpdateEvent(e){const{detail:t}=e;t.id===this.tournament.id&&(this.tournament=Object.assign({},t))}render(){const e=this.tournament;return a("div",{key:"836c6720a7be8c1a97f43245908fc2b6d535c50e",class:s("LeaderboardsItem",e.isPlayerAcknowledged?" GradientRounded Hollow":"",e.isUnjoined?"Unjoined":""),onClick:this.goToDetail.bind(this)},a("div",{key:"a6b131a60c7484dd33f963b769b7db47438460f1",class:"LeaderboardsItemContainer"},a("tournament-item-title",{key:"0e229e79322889c168a7ec4f35bd0ae0fde61a96",tournament:e,language:this.language}),a("tournament-timer",{key:"6f486b88ae367bef631779bfc92b995516bfd8c0",tournament:e})),a("div",{key:"00e40f6bc6102da356f1d781506ceba4c7ae340e",class:"LeaderboardLabels"},this.isNew&&a("div",{key:"5aa6fced7c55d5bb7911c2590611008389f51042",class:"LeaderboardLabel"},a("span",{key:"b89b5825d0902545ea44105ce9f3b8a8a2c98676"},"new"))))}};export{i as tournament_item}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{h as e}from"./index-58fe1cb7.js";import{c as n}from"./utils-25141486.js";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */function a(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(a[t[r]]=e[t[r]])}return a}var t,r;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(t||(t={})),function(e){e.Starts="Starts",e.Ends="Ends"}(r||(r={}));const o=["en","zh"],i=(e,n)=>(Object.keys(n).map((a=>{e=e.replace(`{${a}}`,n[a])})),e),s={en:Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},t),r),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",Place:"place",Places:"places",Prizes:"Rewards",Player:"Player",Rank:"Rank",Score:"Score",Prize:"Prize",LeaderboardDetails:"Leaderboard Details",UnjoinDialog:{Title:"Quit Leaderboard?",Description:"Any progress on the current Leaderboard won’t be kept and you can not rejoin the Leaderboard any more. <br /><br />Would you still like to quit?",ButtonYes:"Yes, I want to quit leaderboard",ButtonNo:"No, Stay on the leaderboard"},WinDialog:{Title:"Congratulations!",Description:"You won <span>{rewards}</span>!",ButtonContinue:"Continue",FailedTitle:"Reward cannot be issued",FailedDescription:"Please contact support.",FailedButtonContinue:"Ok, continue"},NoLeaderboards:"No Leaderboards yet",NoLeaderboardsTip:"Try winning tickets to Leaderboards as rewards or launching other booster games",Leaderboards:"Leaderboards",TipPrize:"You took <span>{place}</span> place and win <span>{prize}</span>",TipPrizeWithoutReward:"You took <span>{place}</span> place</span>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward.",TournamentNotStarted:"The leaderboard is not started yet. <br> It will start in {startTime}.",BeOne:"No winners for the time being. Be one of them!",NoGameConfiged:"No game configed",FailedToJoin:"Oops! some unexpected error happened, please try it again.",FailedToUnjoin:"Oops! some unexpected error happened, please try it again."}),zh:{Join:"加入",Unjoin:"取消",info:"信息",leaderboard:"排行榜",games:"游戏",Starts:"开始",Ends:"结束",TC:"条款与条件",ScoreCriteria:"积分规则",MinimumBetCriteria:"最低投注要求",Place:"名次",Places:"名次",Prizes:"奖励",Player:"玩家",Rank:"排名",Score:"积分",Prize:"奖品",LeaderboardDetails:"排行榜详情",UnjoinDialog:{Title:"退出排行榜?",Description:"当前排行榜的进度将不会被保留,且您无法再次加入该排行榜。 <br /><br />您确定要退出吗?",ButtonYes:"是的,我要退出排行榜",ButtonNo:"不,留在排行榜"},WinDialog:{Title:"恭喜!",Description:"您赢得了 <span>{rewards}</span>!",ButtonContinue:"继续",FailedTitle:"奖励无法发放",FailedDescription:"请联系客服。",FailedButtonContinue:"好的,继续"},NoLeaderboards:"暂无排行榜",NoLeaderboardsTip:"尝试通过赢得奖品或启动其他增强游戏来获得排行榜",Leaderboards:"排行榜",TipPrize:"您获得 <span>{place}</span> 名,并赢得 <span>{prize}</span>",TipPrizeWithoutReward:"您获得 <span>{place}</span> 名",Tip:"您的真实资金投注将计入排行榜积分计算,以赢得排行榜奖励。",TournamentNotStarted:"排行榜尚未开始。 <br> 它将在 {startTime} 开始。",BeOne:"目前暂无赢家。成为其中之一!",NoGameConfiged:"没有配置游戏",FailedToJoin:"哦哦!发生了一些意外错误,请再试一次。",FailedToUnjoin:"哦哦!发生了一些意外错误,请再试一次。"}},d=(e,n)=>{const a=n;return s[void 0!==a&&o.includes(a)?a:"en"][e]};var l,u,c,p;!function(e){e.list="list",e.item="item"}(l||(l={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(u||(u={})),function(e){e.FreeSpin="FreeSpin",e.Mission="Challenge",e.Leaderboard="TournamentTicket",e.Custom="Custom",e.LuckyWheel="PrizeEngine"}(c||(c={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(p||(p={}));const b=12,m=e=>{let n=null;return(e||[]).map((e=>{var a;const{leaderBoard:{rank:t}}=e;t&&(n=!n||(null===(a=n.leaderBoard)||void 0===a?void 0:a.rank)>t?e:n)})),{rank:n?`${n.leaderBoard.rank} / ${n.endRank}`:"-",detail:n?{playerRank:n.leaderBoard.rank,total:n.endRank}:null}},g=e=>[u.Closed].includes(e.state),T=e=>[u.Closed,u.Closing].includes(e.state),h=e=>{switch(e.type){case c.FreeSpin:return e.campaignName;case c.Mission:return e.challengeName;case c.Leaderboard:return e.ticketProgramName;case c.LuckyWheel:return e.prizeEngineProgramName;case c.Custom:return e.value;default:return e.name}},f=t=>{var{statedClasses:r,innerHTML:o}=t,i=a(t,["statedClasses","innerHTML"]);const{isHollow:s,isPending:d}=r;return e("button",Object.assign({class:n("GradientRoundedButton","GradientRounded",{Hollow:s||!1,Pending:d||!1})},i),e("span",null,o))};function w(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function C(e,n){return(new Date).getTime()>=n.getTime()?100:Math.floor(100*((new Date).getTime()-e.getTime())/(n.getTime()-e.getTime()))}function j(e,n,a=0){const t=Math.abs(n.getTime()-e.getTime()),r=Math.floor(t/864e5),o=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),s=100===a?0:0===i?1:i;return`${String(r).padStart(2,"0")}d:${String(o).padStart(2,"0")}h:${String(s).padStart(2,"0")}m`}export{p as D,l as L,t as T,a as _,h as a,j as b,s as c,T as d,b as e,C as f,m as g,w as h,g as i,i as l,f as r,d as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=(...t)=>{let r=["Tab"];return t.map((t=>{switch(typeof t){case"string":r.push(t);break;case"object":Object.keys(t).map((e=>{t[e]&&r.push(e)}))}})),r.join(" ")},r=(t,r,e)=>t.filter((t=>!r.some((r=>e(t,r))))),e=(t,r,e=!1)=>{const a=Number(t);if(isNaN(a))throw new Error("Input must be a valid number or string that can be converted to number");if(e&&!a.toString().includes("."))return t;if(0===r)return Math.floor(a);const n=Math.pow(10,r);return(Math.floor(a*n)/n).toFixed(r)};export{t as c,r as g,e as t}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-14c77f03.js');
|
|
6
|
-
const util_date = require('./util.date-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const util_date = require('./util.date-e14691ef.js');
|
|
7
|
+
const utils = require('./utils-22119cc1.js');
|
|
8
8
|
|
|
9
9
|
function formatBalance$4(amount, currency, maxAmount = 99999999) {
|
|
10
10
|
amount = Math.min(amount, maxAmount);
|
|
@@ -3151,6 +3151,7 @@ const MODAL_TYPES = {
|
|
|
3151
3151
|
TARGET_MODAL: 'TARGET_MODAL',
|
|
3152
3152
|
SUPPORT_MODAL: 'SUPPORT_MODAL',
|
|
3153
3153
|
NO_SPIN_LEFT_MODAL: 'NO_SPIN_LEFT_MODAL',
|
|
3154
|
+
NO_PRIZE_MODAL: 'NO_PRIZE_MODAL'
|
|
3154
3155
|
};
|
|
3155
3156
|
|
|
3156
3157
|
const casinoEngagementSuiteContainerCss = ":host{display:inline-block;font-family:inherit}.Backdrop{padding:20px 20px 20px 172px;display:none;position:fixed;inset:0;height:100dvh;width:100vw}.Backdrop.Opened{display:block}.Backdrop .CasinoEngagementSuiteDialog{height:calc(100dvh - 40px);max-width:600px}.CasinoEngagementSuiteContainer.Portrait{width:100vw}.CasinoEngagementSuiteContainer.Portrait .Backdrop{padding:calc(var(--barHeight) + 12px) 0 20px}.CasinoEngagementSuiteContainer.Portrait .Backdrop .CasinoEngagementSuiteDialog{max-width:initial;padding:0 4px;margin:0 auto;height:calc(100dvh - (var(--barHeight) + 20px))}.CasinoEngagementSuiteContainer.Landscape.Mobile .CasinoEngagementSuiteDialog{max-width:366px}.CasinoEngagementSuiteContainer.Landscape.Desktop .Backdrop{padding-left:272px}";
|
|
@@ -3550,8 +3551,14 @@ const CasinoEngagementSuiteContainer = class {
|
|
|
3550
3551
|
break;
|
|
3551
3552
|
}
|
|
3552
3553
|
case 'ShowLuckywheelRewardModal': {
|
|
3553
|
-
const { HasError, PrizeMessage, PrizeText } = rest.data;
|
|
3554
|
-
|
|
3554
|
+
const { HasError, PrizeMessage, PrizeText, NoPrize } = rest.data;
|
|
3555
|
+
let type = MODAL_TYPES.REWARD_MODAL;
|
|
3556
|
+
if (HasError) {
|
|
3557
|
+
type = MODAL_TYPES.SUPPORT_MODAL;
|
|
3558
|
+
}
|
|
3559
|
+
else if (NoPrize) {
|
|
3560
|
+
type = MODAL_TYPES.NO_PRIZE_MODAL;
|
|
3561
|
+
}
|
|
3555
3562
|
this.setRemainingLuckyWheels();
|
|
3556
3563
|
const event = {
|
|
3557
3564
|
modalType: type,
|
|
@@ -3837,7 +3844,7 @@ const CasinoEngagementSuiteContainer = class {
|
|
|
3837
3844
|
return (((_d = (_c = (_b = (_a = this.challenges) === null || _a === void 0 ? void 0 : _a.find((el) => el.Id === challengeId)) === null || _b === void 0 ? void 0 : _b.LevelProgresses) === null || _c === void 0 ? void 0 : _c.find((el) => el.LevelId === levelId)) === null || _d === void 0 ? void 0 : _d.CustomRewardMessage) || '');
|
|
3838
3845
|
}
|
|
3839
3846
|
render() {
|
|
3840
|
-
return (index.h("div", { key: '
|
|
3847
|
+
return (index.h("div", { key: '806091d9b47fb8b500efa55b8f5e7d805734095d', class: `CasinoEngagementSuiteContainer ${this.device} ${this.orientation}`, style: { ['--barHeight']: `${this.barHeight}px` } }, index.h("div", { key: 'fad160ba7e27afbec626c9ac39f75d3f058371d4', class: "barWrapper", ref: (el) => (this.barWrapperEl = el) }, index.h("casino-engagement-suite-bar", { key: 'cb5c8e908eab03b51b59b6563f320955aff85a5b', clientStylingUrl: this.clientStylingUrl, orientation: this.orientation, device: this.device, "active-widget": this.activeWidget, "is-challenge-label": this.isChallengeLabel, "is-spin-forfeited-label": this.isForfeitedSpinsLabel, leaderboards: this.leaderboards, jackpots: this.jackpots, remainingFreeSpins: this.remainingFreeSpins, remainingLuckywheels: this.remainingLuckywheels, highlightChallenge: this.highlightChallenge, "challenge-percent": this.challengePercent, "is-forfeited-challenge-label": this.isForfeitedChallengeLabel })), this.challenges && this.getChallengesWidgets(), this.freeSpins && this.getFreeSpinWidgets(), !!this.jackpots.length && this.getJackpotsWidgets(), this.leaderboards && this.getLeaderboardsWidgets(), this.luckyWheels && this.getLuckyWheelsWidgets(), index.h("casino-engagement-suite-modal-container", { key: 'e547e22fae4383d94a67f8abfe6a362dae793d5f', clientStylingUrl: this.clientStylingUrl, device: this.device, isJoiningToChallenge: this.isJoiningToChallenge })));
|
|
3841
3848
|
}
|
|
3842
3849
|
get host() { return index.getElement(this); }
|
|
3843
3850
|
};
|
|
@@ -4775,6 +4782,12 @@ var ELuckyWheelResultState;
|
|
|
4775
4782
|
ELuckyWheelResultState["fulfilled"] = "fulfilled";
|
|
4776
4783
|
ELuckyWheelResultState["drawn"] = "drawn";
|
|
4777
4784
|
})(ELuckyWheelResultState || (ELuckyWheelResultState = {}));
|
|
4785
|
+
var ELuckyWheelActionTypes;
|
|
4786
|
+
(function (ELuckyWheelActionTypes) {
|
|
4787
|
+
ELuckyWheelActionTypes["noPrize"] = "noprize";
|
|
4788
|
+
ELuckyWheelActionTypes["luckywheel"] = "luckywheel";
|
|
4789
|
+
ELuckyWheelActionTypes["bonus"] = "bonus";
|
|
4790
|
+
})(ELuckyWheelActionTypes || (ELuckyWheelActionTypes = {}));
|
|
4778
4791
|
|
|
4779
4792
|
var PointerMode;
|
|
4780
4793
|
(function (PointerMode) {
|
|
@@ -5411,9 +5424,11 @@ const CasinoEngagementSuiteLuckywheel = class {
|
|
|
5411
5424
|
if (this.luckywheel.Program.Id === data.LotteryProgramID) {
|
|
5412
5425
|
const partitionDegree = this.settings.getDeg(index);
|
|
5413
5426
|
this.spinner.halt(partitionDegree, () => {
|
|
5427
|
+
var _a;
|
|
5414
5428
|
this.isSpinning = false;
|
|
5415
5429
|
this.updateSpinable();
|
|
5416
5430
|
const partition = this.luckywheel.Program.WheelOfFortune.Partitions[index];
|
|
5431
|
+
const noPrize = (_a = data.Result.Outcomes) === null || _a === void 0 ? void 0 : _a.some((outcome) => { var _a; return ((_a = outcome.Action) === null || _a === void 0 ? void 0 : _a.Type) === ELuckyWheelActionTypes.noPrize; });
|
|
5417
5432
|
const prizeText = (partition === null || partition === void 0 ? void 0 : partition.PrizeText[this.language]) || (partition === null || partition === void 0 ? void 0 : partition.PrizeText['*']);
|
|
5418
5433
|
const prizeName = (partition === null || partition === void 0 ? void 0 : partition.Name[this.language]) || (partition === null || partition === void 0 ? void 0 : partition.Name['*']);
|
|
5419
5434
|
window.postMessage({
|
|
@@ -5421,6 +5436,7 @@ const CasinoEngagementSuiteLuckywheel = class {
|
|
|
5421
5436
|
data: {
|
|
5422
5437
|
PrizeText: prizeText,
|
|
5423
5438
|
PrizeMessage: prizeName,
|
|
5439
|
+
NoPrize: noPrize,
|
|
5424
5440
|
HasError: false
|
|
5425
5441
|
}
|
|
5426
5442
|
});
|
|
@@ -5475,13 +5491,13 @@ const CasinoEngagementSuiteLuckywheel = class {
|
|
|
5475
5491
|
}
|
|
5476
5492
|
render() {
|
|
5477
5493
|
const foreignObjectAgentProps = { height: `${this.size}px`, width: `${this.size}px` };
|
|
5478
|
-
return (index.h("div", { key: '
|
|
5494
|
+
return (index.h("div", { key: '342885d64dc5fe0b2c84dce47872290fe4ff5af7', class: `WheelContainer ${this.device}`, style: this.defineGeneralVariables() }, index.h("svg", { key: '7746651ebfb823f7ad977a4e4e358bf1406c9f3e', width: this.size, height: this.size, ref: (el) => {
|
|
5479
5495
|
this.svg = el;
|
|
5480
|
-
} }, index.h("foreignObject", { key: '
|
|
5496
|
+
} }, index.h("foreignObject", { key: 'd48003ce06db60ddeb26849cc4a6ed5812810a24', ref: this.setSvgSize.bind(this), class: "Bottom Customable" }, index.h("div", { key: '219b20301e0b756a235f411b147274294baee0ab', style: foreignObjectAgentProps })), index.h("g", Object.assign({ key: '917ea15a1d6989913a1b23357ae455d576691625', class: "PartitionsContainer" }, this.settings.getSpinnerProps()), index.h("g", { key: '035155a7a943190fda49b8a0a89596ce0aac2a10', class: "PartitionsBackgrounds" }, this.options.map((_el, index$1) => {
|
|
5481
5497
|
return (index.h("foreignObject", { ref: this.setSvgSize.bind(this), "clip-path": `url(#clip${index$1})`, class: "PartitionBackground Customable", style: Object.assign({ '--index': index$1.toString() }, foreignObjectAgentProps) }, index.h("div", { style: foreignObjectAgentProps })));
|
|
5482
|
-
})), index.h("g", { key: '
|
|
5498
|
+
})), index.h("g", { key: '74857a797cbc7466a7e49f50411092cefaeb11e8', class: "PartitionsBackgroundStrokes" }, this.options.map((_el, index$1) => {
|
|
5483
5499
|
return (index.h("path", Object.assign({ class: "PartitionBackgroundStroke" }, this.settings.getPartitionDraw(index$1), { width: this.size, height: this.size })));
|
|
5484
|
-
})), index.h("g", { key: '
|
|
5500
|
+
})), index.h("g", { key: '9f6735c888e79e248ee1115b476822075e0c49fe', class: "Partitions", style: { filter: this.speed > 0.3 ? `blur(${this.speed}px)` : '' } }, this.options.map((el, index$1) => {
|
|
5485
5501
|
return [
|
|
5486
5502
|
el.Image && (index.h("g", { class: `PartitionImage PartitionImage${index$1}`, ref: (el) => this.renderImage(el, index$1) })),
|
|
5487
5503
|
el.Name && (index.h("foreignObject", Object.assign({ class: "PartitionText", ref: (el) => {
|
|
@@ -5492,18 +5508,18 @@ const CasinoEngagementSuiteLuckywheel = class {
|
|
|
5492
5508
|
}
|
|
5493
5509
|
} }, this.settings.getSvgTextPropsAdjustedByImage(index$1)), index.h("div", { class: "PartitionTextEntityContainer" }, index.h("p", { class: `PartitionTextEntity${this.settings.contentdirection === 'clockwise' ? '' : ' Anticlockwise'}`, innerHTML: el.Name }))))
|
|
5494
5510
|
];
|
|
5495
|
-
}))), index.h("g", { key: '
|
|
5511
|
+
}))), index.h("g", { key: 'c62b31497903ff7d034bd2b7de35434836cca0c4', class: { active: this.isPartitionsCustomableReady, PartitionsCustomable1: true } }, this.options.map((_el, index$1) => {
|
|
5496
5512
|
return (index.h("foreignObject", { ref: this.setSvgSize.bind(this), class: "Partition1 Customable", style: { '--index': index$1.toString() } }, index.h("div", { style: foreignObjectAgentProps })));
|
|
5497
|
-
})), index.h("g", { key: '
|
|
5513
|
+
})), index.h("g", { key: 'c3484f6930d35f3e4ca08d014b3b021e47021d44', class: { active: this.isPartitionsCustomableReady, PartitionsCustomable2: true } }, this.options.map((_el, index$1) => {
|
|
5498
5514
|
return (index.h("foreignObject", { ref: this.setSvgSize.bind(this), class: "Partition2 Customable", style: { '--index': index$1.toString() } }, index.h("div", { style: foreignObjectAgentProps })));
|
|
5499
|
-
})), index.h("foreignObject", { key: '
|
|
5515
|
+
})), index.h("foreignObject", { key: '25a125820e8c14c780eb10bf662828c01dafb21c', ref: this.setSvgSize.bind(this), class: "Middle Customable", style: foreignObjectAgentProps }, index.h("div", { key: '8c97c23afd581c7bb6510af3d8ebebdae885c6b9', style: foreignObjectAgentProps })), index.h("foreignObject", { key: 'ed5f6284d6abf6d4fe7d54ca12d586f963a76386', ref: this.setSvgSize.bind(this), class: "Top Customable", style: foreignObjectAgentProps }, index.h("div", { key: '41f23de3872cbadb73f89e2342567c739e174a22', style: foreignObjectAgentProps })), index.h("g", { key: '4949dd37d805c79a1a4363409aca17bb158956ea', class: { spinning: this.isSpinning, Center: true } }, index.h("foreignObject", { key: '4b5c25b029a45d92e17b244804d3873f70cc1fd6', ref: (el) => {
|
|
5500
5516
|
if (el) {
|
|
5501
5517
|
el.setAttribute('width', '100');
|
|
5502
5518
|
el.setAttribute('height', '100');
|
|
5503
5519
|
}
|
|
5504
5520
|
}, style: {
|
|
5505
5521
|
transform: `translate(${Number(this.size) / 2 - 100 / 2}px, ${Number(this.size) / 2 - 100 / 2}px)`
|
|
5506
|
-
} }, index.h("div", { key: '
|
|
5522
|
+
} }, index.h("div", { key: 'bb7162a6527af2f2fd20d9dd17ce76c49dfe719c', style: { width: '100px', height: '100px', cursor: 'pointer' }, onClick: this.eventSpin }))), index.h("g", { key: '08e09c376e45a3d87d8c25487c1678fc6760822b' }, this.options.map((_el, index$1) => {
|
|
5507
5523
|
return (index.h("clipPath", { id: `clip${index$1}` }, index.h("path", Object.assign({}, this.settings.getPartitionDraw(index$1)))));
|
|
5508
5524
|
})))));
|
|
5509
5525
|
}
|
|
@@ -5938,8 +5954,8 @@ const CasinoEngagementSuiteLuckyWheelList = class {
|
|
|
5938
5954
|
updateTimers() {
|
|
5939
5955
|
const now = new Date().getTime();
|
|
5940
5956
|
this.timers = this.luckyWheels.reduce((acc, luckywheel) => {
|
|
5941
|
-
var _a, _b;
|
|
5942
|
-
const endTime = ((_a = luckywheel.Current) === null || _a === void 0 ? void 0 : _a.ExpiryTime) || ((_b = luckywheel.Program) === null || _b === void 0 ? void 0 : _b.
|
|
5957
|
+
var _a, _b, _c;
|
|
5958
|
+
const endTime = ((_a = luckywheel.Current) === null || _a === void 0 ? void 0 : _a.ExpiryTime) || ((_c = (_b = luckywheel.Program) === null || _b === void 0 ? void 0 : _b.Trigger) === null || _c === void 0 ? void 0 : _c.EndTime);
|
|
5943
5959
|
const expirationDate = new Date(endTime).getTime();
|
|
5944
5960
|
const diff = expirationDate - now;
|
|
5945
5961
|
let countdown = '00h:00m:00s';
|
|
@@ -6025,7 +6041,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
|
|
|
6025
6041
|
return this.activeTab === 1 ? this.getListTemplate() : this.getHistoryTabTemplate();
|
|
6026
6042
|
}
|
|
6027
6043
|
render() {
|
|
6028
|
-
return (index.h("div", { key: '
|
|
6044
|
+
return (index.h("div", { key: 'e1ae674e9f7c5b7ba46f062cb9312365e7219073', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate()));
|
|
6029
6045
|
}
|
|
6030
6046
|
get host() { return index.getElement(this); }
|
|
6031
6047
|
static get watchers() { return {
|
|
@@ -6121,6 +6137,9 @@ const TRANSLATIONS = {
|
|
|
6121
6137
|
jackpotWinInfo: 'Please refresh game page or place any bet to update game balance',
|
|
6122
6138
|
seeYouLater: 'See you later',
|
|
6123
6139
|
noSpinsLeft: 'You used all spins here',
|
|
6140
|
+
spinAgain: 'Spin again',
|
|
6141
|
+
noPrizeMessage: "You didn't win this time, try again!",
|
|
6142
|
+
noPrizeTitle: 'Oh, Sorry'
|
|
6124
6143
|
}
|
|
6125
6144
|
};
|
|
6126
6145
|
const translate = (key, customLang) => {
|
|
@@ -6222,7 +6241,7 @@ const CasinoEngagementSuiteModalContainer = class {
|
|
|
6222
6241
|
const { ProgressToActivate } = this.confirmationData || {};
|
|
6223
6242
|
return (index.h("div", { key: 'b08af5892111b026ea04657bdc9ee8e03349985f', class: `ModalContainer ${this.device}` }, index.h("casino-engagement-suite-modal", { key: '9953de03ad78829ad5d65cb8852e642305b13d0e', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('NO_SPIN_LEFT_MODAL'), header: translate('noSpinsLeft', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", modalType: "NO_SPIN_LEFT_MODAL", "show-animation": false, device: this.device }, index.h("div", { key: '5aa3316279b1c37dbd0da632760bd5805466c01a', slot: "body" }, index.h("div", { key: '36fe42db0db670404a6000627be93870e9c53c48' }, translate('seeYouLater', this.language))), index.h("div", { key: '231b191530fb4ebd95c5336d0eafcdd016613668', slot: "footer" }, index.h("button", { key: '67c19d85ab5f077e994ef0dbdb0340e9f7bd5750', class: "ModalFooterButton", onClick: this.handleCloseClick, "data-type": "NO_SPIN_LEFT_MODAL" }, "OK"))), index.h("casino-engagement-suite-modal", { key: '2a0a7d3a6f9db52a69a16b9ec4205c69888a9b6c', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('REWARD_MODAL'), header: "Congratulations!", contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", modalType: "REWARD_MODAL", "show-animation": true, device: this.device }, index.h("div", { key: '72595feb9db49b6c8da3d020e360cc47d679e409', slot: "body" }, index.h("div", { key: '16f4dc567c5e40c98fce717ef5c85f464f0981b8' }, !this.rewardText && translate('won', this.language), ' ', index.h("span", { key: '93d8e41c6627e54d692a9ac15fd0f52bcc43347e', class: "ModalReward" }, this.rewardText || this.rewardMessage)), this.hasError && index.h("div", { key: '9e928a49d3eaa98bcaa5e0d61cd7cbb8a580a72f', class: "SupportInfo" }, translate('supportInfo', this.language))), index.h("div", { key: '9223fa90fb14b1c624075c3c551e9f55c57aefe8', slot: "footer" }, index.h("button", { key: '735b15eb73bb7639b2d032695afa1ae32496d0ad', class: "ModalFooterButton", onClick: this.handleCloseClick, "data-type": "REWARD_MODAL" }, translate('continue', this.language)))), index.h("casino-engagement-suite-modal", { key: '75880d633553cf140178d118d3042b2e53009208', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('JACKPOT_REWARD_MODAL'), header: "Congratulations!", contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", "show-animation": true, modalType: "JACKPOT_REWARD_MODAL", device: this.device }, index.h("div", { key: 'f45b7391ba8468ab5fb8eddb8a4ae397f0167f08', slot: "body" }, index.h("div", { key: 'eff87f697817535bc47b525ec78c94847ae784a4', class: "JackpotWinText" }, translate('jackpotWin', this.language)), index.h("div", { key: '7881fcfd86ab455dce0db707b8abce4ddf538b1c', class: "JackpotWinAmount" }, formatBalance(this.winAmount.amount, this.winAmount.currency))), index.h("div", { key: '3f18ece9080c42d9b1067c9a7f3cac920528c007', slot: "footer" }, index.h("button", { key: '6db3230a9b84f3a651bb3d583f49184e5c37930c', class: "ModalFooterButton", onClick: this.handleCloseClick, "data-type": "JACKPOT_REWARD_MODAL" }, translate('continue', this.language)), index.h("div", { key: '616a3882e6b2f116c6db87122f0755fb2f3083df', class: "JackpotWinInfoText" }, translate('jackpotWinInfo', this.language)))), index.h("casino-engagement-suite-modal", { key: '6724f36b7b94c53a41a86f3d9082c393dc2e81ee', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('TARGET_MODAL'), header: ProgressToActivate ? translate('joinHeader', this.language) : translate('unJoinHeader', this.language), modalType: "TARGET_MODAL", device: this.device, isLoading: this.isJoiningToChallenge }, index.h("div", { key: 'd2c94938925c9b1f625bb7de63734f6a673c5fdc', slot: "body" }, index.h("div", { key: '2e7961f72e5933f0eb5030cb15a4b9fb84d5083e', class: "LeftAlign" }, translate('desc', this.language)), index.h("div", { key: 'd1f5f57433c0ae881207b3c12ab9cfaf6ee039c1', class: "LeftAlignQuestion" }, ProgressToActivate
|
|
6224
6243
|
? translate('joinQuestion', this.language)
|
|
6225
|
-
: translate('unJoinQuestion', this.language))), index.h("div", { key: '9329740f040d1791872d15f383b80af451245b14', slot: "footer", class: "ManyActions" }, index.h("button", { key: '148094403592aff321a4ee70790b2520b00893b8', class: `ModalFooterButton ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleChallengeAttendance }, ProgressToActivate ? translate('joinConfirm', this.language) : translate('unJoinConfirm', this.language)), index.h("button", { key: '49ae0fa581a6d8eee882146813c9f35f29fb60b0', class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": "TARGET_MODAL" }, index.h("div", { key: 'c0058debcba5b01824b021b6ece23a922f3f582f', class: "GradientText" }, ProgressToActivate ? translate('joinReject', this.language) : translate('unJoinReject', this.language))))), index.h("casino-engagement-suite-modal", { key: 'cfa3aefbc587d1a15dcb831bf1bdd1d98769e18a', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('SUPPORT_MODAL'), header: translate('noReward', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "SUPPORT_MODAL", device: this.device }, index.h("div", { key: 'aae1baed5a68cd7532b25d6ef163679c0b93fc10', slot: "body" }, index.h("span", { key: 'e031d7ddc4388e1d22776524dc4341d30d9a8a57' }, translate('contactSupport', this.language))), index.h("div", { key: '4ad01c4e2bd2aa913369b63700b1220a271bea63', slot: "footer" }, index.h("button", { key: 'bbaecf82f114b317867e9a611b0d4af9a038c0e1', class: "ModalFooterButton", onClick: this.handleCloseClick, "data-type": "SUPPORT_MODAL" }, translate('okContinue', this.language))))));
|
|
6244
|
+
: translate('unJoinQuestion', this.language))), index.h("div", { key: '9329740f040d1791872d15f383b80af451245b14', slot: "footer", class: "ManyActions" }, index.h("button", { key: '148094403592aff321a4ee70790b2520b00893b8', class: `ModalFooterButton ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleChallengeAttendance }, ProgressToActivate ? translate('joinConfirm', this.language) : translate('unJoinConfirm', this.language)), index.h("button", { key: '49ae0fa581a6d8eee882146813c9f35f29fb60b0', class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": "TARGET_MODAL" }, index.h("div", { key: 'c0058debcba5b01824b021b6ece23a922f3f582f', class: "GradientText" }, ProgressToActivate ? translate('joinReject', this.language) : translate('unJoinReject', this.language))))), index.h("casino-engagement-suite-modal", { key: 'cfa3aefbc587d1a15dcb831bf1bdd1d98769e18a', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('SUPPORT_MODAL'), header: translate('noReward', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "SUPPORT_MODAL", device: this.device }, index.h("div", { key: 'aae1baed5a68cd7532b25d6ef163679c0b93fc10', slot: "body" }, index.h("span", { key: 'e031d7ddc4388e1d22776524dc4341d30d9a8a57' }, translate('contactSupport', this.language))), index.h("div", { key: '4ad01c4e2bd2aa913369b63700b1220a271bea63', slot: "footer" }, index.h("button", { key: 'bbaecf82f114b317867e9a611b0d4af9a038c0e1', class: "ModalFooterButton", onClick: this.handleCloseClick, "data-type": "SUPPORT_MODAL" }, translate('okContinue', this.language)))), index.h("casino-engagement-suite-modal", { key: '0339c1e94223a82f52d75946eeb3f6c249a0aa1c', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen('NO_PRIZE_MODAL'), header: translate('noPrizeTitle', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "NO_PRIZE_MODAL", device: this.device }, index.h("div", { key: 'e32495a7fd9da1c0246806562de1a7051b456cc3', slot: "body" }, index.h("span", { key: 'fb042ceabc8e49fd1825eded9ffd7026d7fec5de' }, translate('noPrizeMessage', this.language))), index.h("div", { key: '8e71be369166b0be7cd65f6c6c5b5208e9353c27', slot: "footer" }, index.h("button", { key: '0ad39b3fb03409c4fc6c8e90b4eaf85e5aa188d8', class: "ModalFooterButton", onClick: this.handleCloseClick, "data-type": "NO_PRIZE_MODAL" }, translate('spinAgain', this.language))))));
|
|
6226
6245
|
}
|
|
6227
6246
|
get host() { return index.getElement(this); }
|
|
6228
6247
|
};
|
|
@@ -6354,9 +6373,9 @@ const dialog = {
|
|
|
6354
6373
|
const { name: rewards, failedRewards } = instance.gifts[0];
|
|
6355
6374
|
const { locale } = instance;
|
|
6356
6375
|
return (index.h("div", { class: "PageConfirmContainer" }, !!rewards ?
|
|
6357
|
-
index.h("div", { class: "PageConfirm Gift" }, index.h("div", null, iconTrophy), index.h("div", { class: "Title" }, locale.WinDialog.Title), index.h("div", { class: "Description", innerHTML:
|
|
6376
|
+
index.h("div", { class: "PageConfirm Gift" }, index.h("div", null, iconTrophy), index.h("div", { class: "Title" }, locale.WinDialog.Title), index.h("div", { class: "Description", innerHTML: util_date.localePostprocess(locale.WinDialog.Description, { rewards }) }), index.h("div", { class: "PageConfirmButtonsGroup" }, renderButton(instance, GradientButton.normal)))
|
|
6358
6377
|
:
|
|
6359
|
-
index.h("div", { class: "PageConfirm Gift" }, index.h("div", null, iconWarn), index.h("div", { class: "Title", innerHTML:
|
|
6378
|
+
index.h("div", { class: "PageConfirm Gift" }, index.h("div", null, iconWarn), index.h("div", { class: "Title", innerHTML: util_date.localePostprocess(locale.WinDialog.FailedTitle, { failedRewards }) }), index.h("div", { class: "Description" }, locale.WinDialog.FailedDescription), index.h("div", { class: "PageConfirmButtonsGroup" }, renderButton(instance, GradientButton.okContinue)))));
|
|
6360
6379
|
},
|
|
6361
6380
|
unjoin(instance) {
|
|
6362
6381
|
const { locale } = instance;
|
|
@@ -6692,11 +6711,11 @@ const page = {
|
|
|
6692
6711
|
instance.tournamentList = (_a = instance.leaderboardsInit) === null || _a === void 0 ? void 0 : _a.map((item) => tournamentAdapter(item));
|
|
6693
6712
|
return index.h("general-animation-loading", null);
|
|
6694
6713
|
}
|
|
6695
|
-
const { locale } = instance;
|
|
6714
|
+
const { locale, language } = instance;
|
|
6696
6715
|
if (instance.tournamentList.length) {
|
|
6697
6716
|
return renderWrapperByPageType(index.h("div", { class: "Leaderboards ScrollBar Row" }, instance.tournamentList.map((_tournament, idx) => (
|
|
6698
6717
|
// @ts-ignore
|
|
6699
|
-
index.h("tournament-item", { tid: _tournament.id, key: _tournament.id, tournament: _tournament, style: { 'order': `${_tournament.order || idx}` }, isNew: instance.newIdList.includes(_tournament.id) })))));
|
|
6718
|
+
index.h("tournament-item", { tid: _tournament.id, key: _tournament.id, tournament: _tournament, style: { 'order': `${_tournament.order || idx}` }, isNew: instance.newIdList.includes(_tournament.id), language: language })))));
|
|
6700
6719
|
}
|
|
6701
6720
|
else {
|
|
6702
6721
|
return renderWrapperByPageType(index.h("div", { class: "NoLeaderboards ScrollBar Row" }, index.h("h3", { class: "Title" }, locale.NoLeaderboards), index.h("div", { class: "message" }, locale.NoLeaderboardsTip)));
|
|
@@ -6705,25 +6724,25 @@ const page = {
|
|
|
6705
6724
|
item(instance) {
|
|
6706
6725
|
if (!instance.tournamentItem)
|
|
6707
6726
|
return index.h("general-animation-loading", null);
|
|
6727
|
+
const { locale, tab, language } = instance;
|
|
6708
6728
|
const renderTabs = () => {
|
|
6709
|
-
const { locale, tab } = instance;
|
|
6710
6729
|
const onClickTab = (tab) => {
|
|
6711
6730
|
instance.tab = tab;
|
|
6712
6731
|
switch (tab) {
|
|
6713
|
-
case
|
|
6732
|
+
case util_date.Tab.leaderboard:
|
|
6714
6733
|
instance.leaderboards = undefined;
|
|
6715
6734
|
messageSender.UpdateLeaderboardsReq(instance.tournamentItem);
|
|
6716
6735
|
break;
|
|
6717
|
-
case
|
|
6736
|
+
case util_date.Tab.games:
|
|
6718
6737
|
messageSender.UpdateTournamentsItemReq(instance.tournamentItem);
|
|
6719
6738
|
break;
|
|
6720
6739
|
}
|
|
6721
6740
|
};
|
|
6722
|
-
return (index.h("div", { class: "TabsContainer" }, index.h("div", { class: "Tabs" }, Object.keys(
|
|
6741
|
+
return (index.h("div", { class: "TabsContainer" }, index.h("div", { class: "Tabs" }, Object.keys(util_date.Tab).map((_tab) => (index.h("div", { class: utils.classnames({ active: tab === _tab }),
|
|
6723
6742
|
onClick: () => onClickTab(_tab) }, locale[_tab]))))));
|
|
6724
6743
|
};
|
|
6725
6744
|
return renderWrapperByPageType([
|
|
6726
|
-
index.h("tournament-item-title", { tournament: instance.tournamentItem }),
|
|
6745
|
+
index.h("tournament-item-title", { tournament: instance.tournamentItem, language: language }),
|
|
6727
6746
|
renderTabs(),
|
|
6728
6747
|
index.h("div", { class: `TableContentWrapper Tab_${instance.tab}` }, instance.renders.tab[instance.tab]())
|
|
6729
6748
|
]);
|
|
@@ -6740,21 +6759,21 @@ const tab = {
|
|
|
6740
6759
|
const playerRank = getResultPrize((_a = instance.leaderboards) === null || _a === void 0 ? void 0 : _a.find((l) => l.isMe));
|
|
6741
6760
|
const rewardInfo = !(playerRank === null || playerRank === void 0 ? void 0 : playerRank.place) || (playerRank === null || playerRank === void 0 ? void 0 : playerRank.unqualified)
|
|
6742
6761
|
? ''
|
|
6743
|
-
:
|
|
6762
|
+
: util_date.localePostprocess(((playerRank === null || playerRank === void 0 ? void 0 : playerRank.prize) ? locale.TipPrize : locale.TipPrizeWithoutReward), playerRank);
|
|
6744
6763
|
return (index.h("div", { class: "InfoContainer" }, index.h("tournament-timer", { "is-detail": true, tournament: tournament }), index.h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) }, index.h("div", { class: "DetailHeader" }, index.h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose), index.h("span", null, locale.LeaderboardDetails))), index.h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` }, isShowInfo && (index.h("section", { class: "Info" }, index.h("div", { class: "Description" }, tournament.description), index.h("div", { class: "Criterias" }, index.h("div", null, locale.ScoreCriteria, ": ", index.h("span", null, tournament.scoreCriteria)), index.h("div", null, locale.MinimumBetCriteria, ": ", index.h("span", null, tournament.minBetCount))), !!tournament.termsUrl && (index.h("div", { class: "TC" }, index.h("a", { href: tournament.termsUrl, target: "_blank" }, locale.TC))))), util_date.isTournamentClosed(instance.tournamentItem) && ((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find((l) => l.isMe)) && (index.h("section", { class: "ResultPrize", innerHTML: rewardInfo })), index.h("section", { class: "PrizesContainer" }, index.h("div", { class: "PrizesHeader" }, iconReward, index.h("span", { class: "PrizesText" }, locale.Prizes)), index.h("div", { class: "Prizes" }, tournament.prizes.map((prize) => (index.h("div", { class: "Prize" }, index.h("span", { class: 'Rank' }, prize.rank, " ", prize.count === 1 ? '' : ` - ${(prize.rank + prize.count - 1)}`), prize.count === 1 ? locale.Place : locale.Places, ": ", index.h("span", { class: "PrizeText" }, prize.name)))))))));
|
|
6745
6764
|
},
|
|
6746
6765
|
leaderboard(instance) {
|
|
6747
6766
|
const { locale, tournamentItem } = instance;
|
|
6748
6767
|
if ((tournamentItem === null || tournamentItem === void 0 ? void 0 : tournamentItem.state) === 'Unstarted') {
|
|
6749
6768
|
const startTime = util_date.getTimeDifference(tournamentItem === null || tournamentItem === void 0 ? void 0 : tournamentItem.startTime, new Date());
|
|
6750
|
-
return (index.h("div", { class: "LeaderboardUnstarted", innerHTML:
|
|
6769
|
+
return (index.h("div", { class: "LeaderboardUnstarted", innerHTML: util_date.localePostprocess(locale.TournamentNotStarted, { startTime }) }));
|
|
6751
6770
|
}
|
|
6752
6771
|
if (!instance.leaderboards)
|
|
6753
6772
|
return index.h("general-animation-loading", null);
|
|
6754
6773
|
if (!instance.leaderboards.length) {
|
|
6755
6774
|
return index.h("div", { class: "LeaderboardUnstarted" }, locale.BeOne);
|
|
6756
6775
|
}
|
|
6757
|
-
return (index.h("table", { class: "Leaderboards" }, instance.leaderboards.map((leaderboard) => (index.h("tr", { class: utils.classnames({ isMe: leaderboard.isMe }) }, index.h("td", { class: "LeaderboardRank" }, index.h("span", null, leaderboard.rank)), index.h("td", { class: "LeaderboardName" }, index.h("span", null, leaderboard.shortName)), index.h("td", { class: "LeaderboardScore" }, index.h("span", null, utils.truncateNumber(leaderboard.score, 2, true))), index.h("td", { class: "LeaderboardPrize" }, index.h("span", null, leaderboard.prizeName)))))));
|
|
6776
|
+
return (index.h("table", { class: "Leaderboards" }, index.h("thead", null, index.h("tr", null, index.h("th", null, locale.Rank), index.h("th", null, locale.Player), index.h("th", null, locale.Score), index.h("th", null, locale.Prize))), instance.leaderboards.map((leaderboard) => (index.h("tr", { class: utils.classnames({ isMe: leaderboard.isMe }), ref: (el) => leaderboard.isMe && (instance.isMeElement = el) }, index.h("td", { class: "LeaderboardRank" }, index.h("span", null, leaderboard.rank)), index.h("td", { class: "LeaderboardName" }, index.h("span", null, leaderboard.shortName)), index.h("td", { class: "LeaderboardScore" }, index.h("span", null, utils.truncateNumber(leaderboard.score, 2, true))), index.h("td", { class: "LeaderboardPrize" }, index.h("span", null, leaderboard.prizeName)))))));
|
|
6758
6777
|
},
|
|
6759
6778
|
games(instance) {
|
|
6760
6779
|
var _a;
|
|
@@ -6796,7 +6815,7 @@ const renderCloseBar = (attr) => {
|
|
|
6796
6815
|
return (index.h("div", { class: "WrapperBar" }, Object.keys(slots).map(slotKey => (index.h("div", { class: 'WrapperBar' + getFirstLetterUppercase(slotKey) }, slots[slotKey] || '')))));
|
|
6797
6816
|
};
|
|
6798
6817
|
|
|
6799
|
-
const casinoEngagementSuiteTournamentCss = ".Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{margin-top:5px;opacity:0}.Leaderboards.list.Active,.Leaderboards.item.Active{opacity:1}.Leaderboards.list.Hidden,.Leaderboards.item.Hidden{display:none}.Leaderboards .question__tooltip{position:absolute;top:0;left:20px;width:320px;text-align:left;background-color:var(--emw--color-typography, rgba(255, 255, 255, 0.6));border:1px solid var(--emw--color-typography, rgba(255, 255, 255, 0.8));color:var(var(--emw--color-primary, rgb(255, 214, 47)), rgb(255, 214, 47));padding:10px;border-radius:5px;opacity:0;fill-opacity:0.5;transition:opacity 0.3s ease-in-out;z-index:10}.Leaderboards .question__tooltip.visible{opacity:0.8}table.Leaderboards{height:auto}table.Leaderboards td span{display:inline-block;overflow-y:auto;width:98%}table.Leaderboards td.LeaderboardRank{width:10%;min-width:70px}table.Leaderboards td.LeaderboardScore{width:25%}table.Leaderboards td.LeaderboardScore span{min-width:128px}table.Leaderboards td.LeaderboardName{width:20%;max-width:180px}table.Leaderboards td.LeaderboardPrize{width:auto;text-align:left;display:grid}.Wrapper{position:relative;min-height:100%;line-height:20px;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:var(--emw--border-radius-large, 8px);word-break:break-all}.Wrapper .Title{background-color:transparent}.Wrapper .TableContentWrapper{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Wrapper .Games .Game .Skeleton{animation:none}.Wrapper .Games .Game .Skeleton.Image{background-color:transparent}.Wrapper .WrapperContent .TableContentWrapper{height:calc(100vh - 216px);overflow-y:auto}.Wrapper .WrapperContent .Main{height:calc(100vh - 109px)}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row{display:flex;flex-direction:column}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row tournament-item{transition:2s ease-in-out;transform:translate(0) scale(1, 1);opacity:0.99}.Wrapper.Mobile .PageConfirmContainer,.Wrapper.Mobile .DialogContentUnjoin{min-width:80%;width:78vw}.Wrapper.Mobile dialog>div{margin:0px}.Wrapper.Mobile dialog.tip{padding:120px 10px}.Wrapper.Mobile dialog.unjoin .Hollow{margin:5px}.Wrapper.Mobile .GradientRoundedButton{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .PageConfirmButtonsGroup{margin:10px auto}.Wrapper.Mobile .PageConfirm.Gift{padding:5px 16px 30px}.Wrapper.Mobile .PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 22px);line-height:25px}.Wrapper.Mobile .PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 16px)}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 16px);padding:8px}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:var(--emw--border-radius-large, 15px)}.Wrapper.Mobile .GradientRounded{position:relative;border-radius:12px}.WrapperContent{padding-bottom:7px;transition:0.5s filter;display:flex;flex-direction:column;justify-content:space-between}.WrapperContent.faded{filter:brightness(53.3333333333%);pointer-events:none}.WrapperContent .Title{background:transparent;width:initial;height:initial;border:initial;margin-bottom:initial}.WrapperContent .NoLeaderboards h3.Title{text-align:center}.WrapperContent .NoLeaderboards div.message{color:var(--emw--color-secondary, rgb(187, 185, 195));text-align:left}.Wrapper.Mobile .WrapperBar{padding:16px 8px 8px;margin-bottom:8px}.Wrapper.Mobile .Tip{padding:0px 30px 32px}.Wrapper.Mobile .TitleContainer .GradientRoundedButton{width:100px}.Wrapper.Mobile .WrapperContent .WrapperBar{padding:12px 8px;line-height:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .WrapperContent .WrapperBar .WrapperBarMiddle{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .items.TitleContainer{height:50px;margin-bottom:5px}.Wrapper.Mobile .Title{font-size:var(--emw--font-size-large, 16px)}.Wrapper.Mobile .WrapperContent .Main{height:calc(100vh - 179px)}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 276px);overflow-y:auto}.Wrapper.Mobile .WrapperBarLeft span.EngagementSuiteIcon img,.Wrapper.Mobile .WrapperBarRight span.EngagementSuiteIcon img{width:16px;height:16px}.WrapperBar{display:flex;width:100%;padding:16px 8px 12px;align-content:center;justify-content:center;align-items:center}.WrapperBar .WrapperBarLeft span{position:relative}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarLeft span.EngagementSuiteIcon img,.WrapperBarRight span.EngagementSuiteIcon img{width:24px;height:24px}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 14px)}.ScrollBar{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Row{margin:10px 0;padding:0 20px}.Row:first-child{margin:0;padding-top:5px}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:20px 0;border:1px solid rgb(64, 57, 86);border-radius:6px;padding:12px 0}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.ShowInfo{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 14px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time .Running{width:100%;display:flex;flex-direction:row;justify-content:space-between}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 14px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.TitleContainer{display:flex;justify-content:space-between;margin:10px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat;align-items:center}.TitleContainer .GradientRoundedButton{width:120px}.item .TitleContainer{height:55px;overflow:auto}.TabsContainer{margin:10px 0;padding:0 20px;margin:0 20px;padding:0;border-bottom:1px solid #575757}.Tabs{display:flex;justify-content:space-between;justify-content:start;font-size:var(--emw--font-size-x-small, 14px);margin-bottom:-1px}.Tabs .Tab{text-transform:capitalize}.Tabs>div{padding:10px;color:rgb(102, 97, 120);cursor:pointer}.Tabs>div.active{color:var(--emw--color-typography, #FFF);border-bottom:2px solid var(--emw--color-typography, #FFF)}.Title{font-size:var(--emw--font-size-large, 20px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:14px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:14px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader,.DetailHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img,.DetailHeader img{width:14px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .Rank{margin-right:5px}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:20px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{margin-top:10px;margin-right:10px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards td{opacity:0.6;padding:12px 5px}.Leaderboards td:first-child{padding-left:20px}.Leaderboards td:last-child{padding-right:20px}.Leaderboards .LeaderboardName{color:var(--emw--color-typography, #FFF);opacity:1}.Leaderboards tr.isMe{background:rgba(0, 0, 0, 0.2)}.Leaderboards tr.isMe .LeaderboardRank span{padding:0px 3px;opacity:1;border:1px solid var(--emw--color-primary, rgb(255, 214, 47));border-radius:11px}.Leaderboards tr.isMe td{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:var(--emw--font-weight-semibold, 500)}.LeaderboardLabels{position:absolute;top:-6px;right:18px;display:flex;gap:4px}.LeaderboardLabel{width:30px;height:15px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:inline-flex;padding:0 2px;align-items:center;justify-content:center}.LeaderboardLabel span{display:inline-block;text-transform:uppercase;font-size:var(--emw--font-size-3x-small, 7px);line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, \"Montserrat\", sans-serif);color:var(--emw--color-background, #1E1638)}.LeaderboardUnstarted{margin:10px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:10px 0;padding:0 20px;display:grid;justify-content:start;grid-template-columns:repeat(4, 25%);margin-top:8px;align-content:flex-start;width:100%}.Games .Game{padding-right:8px}.Games .Game.Current{cursor:auto;filter:grayscale(10)}.Games .Game:nth-of-type(4n){padding-right:0px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25));cursor:pointer}.Games .Game.Current:hover{cursor:auto;filter:grayscale(10);cursor:not-allowed}.Games img{width:100%;height:auto;margin:auto 0}dialog.tip{position:absolute;align-items:start;padding:120px 90px;line-height:20px;border:none;border-radius:var(--emw--border-radius-large, 8px);font-size:var(--emw--font-size-small, 16px)}dialog.tip>div{margin:0px}dialog{display:none;position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center;z-index:1;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}dialog>div{margin:32px;border-radius:8px;background:var(--emw--color-background, hsl(254, 44%, 15%));border:1px solid hsl(254, 20%, 28%);align-items:center}dialog div.Hollow .WrapperBar{padding:12px}dialog div.Hollow .WrapperBar .WrapperBarRight img{width:20px}dialog div.Hollow .Tip{line-height:20px;padding:0px 60px 32px;font-size:var(--emw--font-size-small, 16px)}dialog[open]{display:flex}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;max-width:510px;flex-direction:column}.DialogContentUnjoinTitle{font-family:Montserrat;font-size:var(--emw--font-size-large, 20px);font-weight:600;line-height:24.38px;text-align:center}.DialogContentUnjoinDescription{color:var(--emw--color-secondary, rgb(187, 185, 195));margin-bottom:30px}.Tip{padding:32px;padding-top:0px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.PageConfirmContainer{text-align:center;width:80%;min-width:450px;max-width:510px;margin:0 auto}.PageConfirm{padding:0px 32px 60px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 26px);text-align:center}.PageConfirm .Description{color:var(--emw--color-secondary, rgb(187, 185, 195));font-weight:400}.PageConfirm .Description span{color:var(--emw--color-typography, #FFF);font-weight:600}.PageConfirm.Gift{padding:22px 32px 60px}.PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 30px)}.PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 20px)}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 20px);padding:12px;height:auto}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:20px}.PageConfirmButtonsGroup{width:150px;margin:20px auto;display:flex;flex-direction:column;gap:10px}.GradientRounded{display:block;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:rgb(30, 22, 56);position:relative;border-radius:16px}.GradientRounded.Hollow{background:rgb(30, 22, 56);color:#FFFFFF}.GradientRounded.Hollow::before{content:\"\";position:absolute;inset:0;border-radius:15px;border:1px solid transparent;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;-webkit-mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.GradientRoundedButton{border:none;padding:7px;height:32px;width:100%;font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:17.07px;text-align:center;transition:0.5s opacity;cursor:pointer}.GradientRoundedButton.Pending{cursor:not-allowed;opacity:0.3}.GradientRoundedButton.Hollow span{background:-webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.LeaderboardsItem.GradientRounded.Hollow::before{border-radius:7px}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}";
|
|
6818
|
+
const casinoEngagementSuiteTournamentCss = ".Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{margin-top:5px;opacity:0}.Leaderboards.list.Active,.Leaderboards.item.Active{opacity:1}.Leaderboards.list.Hidden,.Leaderboards.item.Hidden{display:none}.Leaderboards .question__tooltip{position:absolute;top:0;left:20px;width:320px;text-align:left;background-color:var(--emw--color-typography, rgba(255, 255, 255, 0.6));border:1px solid var(--emw--color-typography, rgba(255, 255, 255, 0.8));color:var(var(--emw--color-primary, rgb(255, 214, 47)), rgb(255, 214, 47));padding:10px;border-radius:5px;opacity:0;fill-opacity:0.5;transition:opacity 0.3s ease-in-out;z-index:10}.Leaderboards .question__tooltip.visible{opacity:0.8}table.Leaderboards{height:auto}table.Leaderboards td span{display:inline-block;overflow-y:auto;width:98%}table.Leaderboards td.LeaderboardRank{width:10%;min-width:70px}table.Leaderboards td.LeaderboardScore{width:25%}table.Leaderboards td.LeaderboardScore span{min-width:128px}table.Leaderboards td.LeaderboardName{width:20%;max-width:180px}table.Leaderboards td.LeaderboardPrize{width:auto;text-align:left;display:grid}.Wrapper{position:relative;min-height:100%;line-height:20px;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:var(--emw--border-radius-large, 8px);word-break:break-all}.Wrapper .Title{background-color:transparent}.Wrapper .TableContentWrapper{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Wrapper .Games .Game .Skeleton{animation:none}.Wrapper .Games .Game .Skeleton.Image{background-color:transparent}.Wrapper .WrapperContent .TableContentWrapper{height:calc(100vh - 216px);overflow-y:auto}.Wrapper .WrapperContent .Main{height:calc(100vh - 109px)}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row{display:flex;flex-direction:column}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row tournament-item{transition:2s ease-in-out;transform:translate(0) scale(1, 1);opacity:0.99}.Wrapper.Mobile .PageConfirmContainer,.Wrapper.Mobile .DialogContentUnjoin{min-width:80%;width:78vw}.Wrapper.Mobile dialog>div{margin:0px}.Wrapper.Mobile dialog.tip{padding:120px 10px}.Wrapper.Mobile dialog.unjoin .Hollow{margin:5px}.Wrapper.Mobile .GradientRoundedButton{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .PageConfirmButtonsGroup{margin:10px auto}.Wrapper.Mobile .PageConfirm.Gift{padding:5px 16px 30px}.Wrapper.Mobile .PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 22px);line-height:25px}.Wrapper.Mobile .PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 16px)}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 16px);padding:8px}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:var(--emw--border-radius-large, 15px)}.Wrapper.Mobile .GradientRounded{position:relative;border-radius:12px}.WrapperContent{padding-bottom:7px;transition:0.5s filter;display:flex;flex-direction:column;justify-content:space-between}.WrapperContent.faded{filter:brightness(53.3333333333%);pointer-events:none}.WrapperContent .Title{background:transparent;width:initial;height:initial;border:initial;margin-bottom:initial}.WrapperContent .NoLeaderboards h3.Title{text-align:center}.WrapperContent .NoLeaderboards div.message{color:var(--emw--color-secondary, rgb(187, 185, 195));text-align:left}.Wrapper.Mobile .WrapperBar{padding:16px 8px 8px;margin-bottom:8px}.Wrapper.Mobile .Tip{padding:0px 30px 32px}.Wrapper.Mobile .TitleContainer .GradientRoundedButton{width:100px}.Wrapper.Mobile .WrapperContent .WrapperBar{padding:12px 8px;line-height:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .WrapperContent .WrapperBar .WrapperBarMiddle{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .items.TitleContainer{height:50px;margin-bottom:5px}.Wrapper.Mobile .Title{font-size:var(--emw--font-size-large, 16px)}.Wrapper.Mobile .WrapperContent .Main{height:calc(100vh - 179px)}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 276px);overflow-y:auto}.Wrapper.Mobile .WrapperBarLeft span.EngagementSuiteIcon img,.Wrapper.Mobile .WrapperBarRight span.EngagementSuiteIcon img{width:16px;height:16px}.WrapperBar{display:flex;width:100%;padding:16px 8px 12px;align-content:center;justify-content:center;align-items:center}.WrapperBar .WrapperBarLeft span{position:relative}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarLeft span.EngagementSuiteIcon img,.WrapperBarRight span.EngagementSuiteIcon img{width:24px;height:24px}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 14px)}.ScrollBar{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Row{margin:10px 0;padding:0 20px}.Row:first-child{margin:0;padding-top:5px}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:20px 0;border:1px solid rgb(64, 57, 86);border-radius:6px;padding:12px 0}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.ShowInfo{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 14px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time .Running{width:100%;display:flex;flex-direction:row;justify-content:space-between}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 14px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.TitleContainer{display:flex;justify-content:space-between;margin:10px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat;align-items:center}.TitleContainer .GradientRoundedButton{width:120px}.item .TitleContainer{height:55px;overflow:auto}.TabsContainer{margin:10px 0;padding:0 20px;margin:0 20px;padding:0;border-bottom:1px solid #575757}.Tabs{display:flex;justify-content:space-between;justify-content:start;font-size:var(--emw--font-size-x-small, 14px);margin-bottom:-1px}.Tabs .Tab{text-transform:capitalize}.Tabs>div{padding:10px;color:rgb(102, 97, 120);cursor:pointer}.Tabs>div.active{color:var(--emw--color-typography, #FFF);border-bottom:2px solid var(--emw--color-typography, #FFF)}.Title{font-size:var(--emw--font-size-large, 20px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:14px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:14px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader,.DetailHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img,.DetailHeader img{width:14px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .Rank{margin-right:5px}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:20px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{margin-top:10px;margin-right:10px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards thead{position:sticky;top:0;z-index:2;background-color:var(--emw--color-background, hsl(254, 44%, 15%))}.Leaderboards td,.Leaderboards th{opacity:0.6;padding:12px 5px}.Leaderboards th:last-child{text-align:left}.Leaderboards td:first-child{padding-left:20px}.Leaderboards td:last-child{padding-right:20px}.Leaderboards .LeaderboardName{color:var(--emw--color-typography, #FFF);opacity:1}.Leaderboards tr.isMe{background:rgba(0, 0, 0, 0.2);scroll-margin-top:42px}.Leaderboards tr.isMe .LeaderboardRank span{padding:0px 3px;opacity:1;border:1px solid var(--emw--color-primary, rgb(255, 214, 47));border-radius:11px}.Leaderboards tr.isMe td{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:var(--emw--font-weight-semibold, 500)}.LeaderboardLabels{position:absolute;top:-6px;right:18px;display:flex;gap:4px}.LeaderboardLabel{width:30px;height:15px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:inline-flex;padding:0 2px;align-items:center;justify-content:center}.LeaderboardLabel span{display:inline-block;text-transform:uppercase;font-size:var(--emw--font-size-3x-small, 7px);line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, \"Montserrat\", sans-serif);color:var(--emw--color-background, #1E1638)}.LeaderboardUnstarted{margin:10px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:10px 0;padding:0 20px;display:grid;justify-content:start;grid-template-columns:repeat(4, 25%);margin-top:8px;align-content:flex-start;width:100%}.Games .Game{padding-right:8px}.Games .Game.Current{cursor:auto;filter:grayscale(10)}.Games .Game:nth-of-type(4n){padding-right:0px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25));cursor:pointer}.Games .Game.Current:hover{cursor:auto;filter:grayscale(10);cursor:not-allowed}.Games img{width:100%;height:auto;margin:auto 0}dialog.tip{position:absolute;align-items:start;padding:120px 90px;line-height:20px;border:none;border-radius:var(--emw--border-radius-large, 8px);font-size:var(--emw--font-size-small, 16px)}dialog.tip>div{margin:0px}dialog{display:none;position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center;z-index:1;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}dialog>div{margin:32px;border-radius:8px;background:var(--emw--color-background, hsl(254, 44%, 15%));border:1px solid hsl(254, 20%, 28%);align-items:center}dialog div.Hollow .WrapperBar{padding:12px}dialog div.Hollow .WrapperBar .WrapperBarRight img{width:20px}dialog div.Hollow .Tip{line-height:20px;padding:0px 60px 32px;font-size:var(--emw--font-size-small, 16px)}dialog[open]{display:flex}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;max-width:510px;flex-direction:column}.DialogContentUnjoinTitle{font-family:Montserrat;font-size:var(--emw--font-size-large, 20px);font-weight:600;line-height:24.38px;text-align:center}.DialogContentUnjoinDescription{color:var(--emw--color-secondary, rgb(187, 185, 195));margin-bottom:30px}.Tip{padding:32px;padding-top:0px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.PageConfirmContainer{text-align:center;width:80%;min-width:450px;max-width:510px;margin:0 auto}.PageConfirm{padding:0px 32px 60px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 26px);text-align:center}.PageConfirm .Description{color:var(--emw--color-secondary, rgb(187, 185, 195));font-weight:400}.PageConfirm .Description span{color:var(--emw--color-typography, #FFF);font-weight:600}.PageConfirm.Gift{padding:22px 32px 60px}.PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 30px)}.PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 20px)}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 20px);padding:12px;height:auto}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:20px}.PageConfirmButtonsGroup{width:150px;margin:20px auto;display:flex;flex-direction:column;gap:10px}.GradientRounded{display:block;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:rgb(30, 22, 56);position:relative;border-radius:16px}.GradientRounded.Hollow{background:rgb(30, 22, 56);color:#FFFFFF}.GradientRounded.Hollow::before{content:\"\";position:absolute;inset:0;border-radius:15px;border:1px solid transparent;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;-webkit-mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.GradientRoundedButton{border:none;padding:7px;height:32px;width:100%;font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:17.07px;text-align:center;transition:0.5s opacity;cursor:pointer}.GradientRoundedButton.Pending{cursor:not-allowed;opacity:0.3}.GradientRoundedButton.Hollow span{background:-webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.LeaderboardsItem.GradientRounded.Hollow::before{border-radius:7px}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}";
|
|
6800
6819
|
const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;
|
|
6801
6820
|
|
|
6802
6821
|
const CasinoEngagementSuiteTournament = class {
|
|
@@ -6820,6 +6839,11 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
6820
6839
|
const { tournament } = e.detail;
|
|
6821
6840
|
this.openDialog(util_date.DialogType.unjoin, tournament);
|
|
6822
6841
|
}
|
|
6842
|
+
watchPropHandler(newValue, oldValue) {
|
|
6843
|
+
if (newValue !== oldValue && util_date.TRANSLATIONS[newValue]) {
|
|
6844
|
+
this.locale = util_date.TRANSLATIONS[newValue];
|
|
6845
|
+
}
|
|
6846
|
+
}
|
|
6823
6847
|
checkNewIdList() {
|
|
6824
6848
|
if (this.newIdList.length > 0) {
|
|
6825
6849
|
this.addLabel('new');
|
|
@@ -6903,16 +6927,16 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
6903
6927
|
messageSender.UpdateLeaderboardsPlayerReq();
|
|
6904
6928
|
}
|
|
6905
6929
|
scrollToMyRankLine() {
|
|
6906
|
-
if (!this.
|
|
6930
|
+
if (!this.isMeElement) {
|
|
6907
6931
|
return;
|
|
6908
6932
|
}
|
|
6909
|
-
|
|
6933
|
+
this.isMeElement.scrollIntoView({ behavior: 'smooth' });
|
|
6910
6934
|
this.scrolledToMyLine = true;
|
|
6911
6935
|
}
|
|
6912
6936
|
componentDidRender() {
|
|
6913
6937
|
this.scrolledToMyLine = false;
|
|
6914
6938
|
if (this.page === util_date.LeaderboardPage.item) {
|
|
6915
|
-
if (this.tab ===
|
|
6939
|
+
if (this.tab === util_date.Tab.leaderboard) {
|
|
6916
6940
|
if (this.currentPlayerRank > this.defaultPageSize && !this.scrolledToMyLine) {
|
|
6917
6941
|
this.scrollToMyRankLine();
|
|
6918
6942
|
}
|
|
@@ -6964,7 +6988,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
6964
6988
|
if (util_date.isTournamentEnded(this.tournamentItem)) {
|
|
6965
6989
|
messageSender.UpdateLeaderboardsReq(this.tournamentItem);
|
|
6966
6990
|
}
|
|
6967
|
-
this.tab =
|
|
6991
|
+
this.tab = util_date.Tab.info;
|
|
6968
6992
|
}
|
|
6969
6993
|
this.tournamentTimer.emit({ page });
|
|
6970
6994
|
}
|
|
@@ -6983,7 +7007,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
6983
7007
|
};
|
|
6984
7008
|
return (index.h(index.Host, null, index.h("general-styling-wrapper", { clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
6985
7009
|
// @ts-ignore
|
|
6986
|
-
targetTranslations:
|
|
7010
|
+
targetTranslations: util_date.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("div", { class: `Wrapper ${this.device} ${this.orientation}` }, index.h("div", { class: utils.classnames('WrapperContent', { faded: this.dialog.isOpen, page: this.page }) }, this.page && renderCloseBar({
|
|
6987
7011
|
left: this.page === util_date.LeaderboardPage.list
|
|
6988
7012
|
? index.h("span", { class: 'EngagementSuiteIcon', onClick: this.openDialog.bind(this, util_date.DialogType.tip) }, iconQuestion)
|
|
6989
7013
|
: index.h("span", { class: 'EngagementSuiteIcon', onClick: this.setPage.bind(this, util_date.LeaderboardPage.list) }, iconBack),
|
|
@@ -7033,8 +7057,8 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
7033
7057
|
this.orientation = 'Landscape';
|
|
7034
7058
|
this.leaderboardsInit = undefined;
|
|
7035
7059
|
this.tipsHideDelay = 3 * 1000;
|
|
7036
|
-
this.tab =
|
|
7037
|
-
this.locale =
|
|
7060
|
+
this.tab = util_date.Tab.info;
|
|
7061
|
+
this.locale = util_date.TRANSLATIONS[this.language];
|
|
7038
7062
|
this.tournamentItem = undefined;
|
|
7039
7063
|
this.tournamentList = undefined;
|
|
7040
7064
|
this.leaderboards = [];
|
|
@@ -7059,7 +7083,8 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
7059
7083
|
});
|
|
7060
7084
|
}
|
|
7061
7085
|
static get watchers() { return {
|
|
7062
|
-
"newIdList": ["
|
|
7086
|
+
"newIdList": ["watchPropHandler"],
|
|
7087
|
+
"language": ["watchPropHandler"],
|
|
7063
7088
|
"tournamentList": ["syncBarState"],
|
|
7064
7089
|
"show": ["showPropWatcher"]
|
|
7065
7090
|
}; }
|