@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
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["casino-engagement-suite-bar_17.cjs",[[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":["
|
|
22
|
+
return index.bootstrapLazy([["casino-engagement-suite-bar_17.cjs",[[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.cjs",[[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]]]],["ui-skeleton.cjs",[[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.cjs",[[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.cjs",[[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"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["casino-engagement-suite-bar_17.cjs",[[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":["
|
|
11
|
+
return index.bootstrapLazy([["casino-engagement-suite-bar_17.cjs",[[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.cjs",[[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]]]],["ui-skeleton.cjs",[[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.cjs",[[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.cjs",[[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"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -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
|
-
|
|
6
|
+
const util_date = require('./util.date-e14691ef.js');
|
|
7
|
+
require('./utils-22119cc1.js');
|
|
8
8
|
|
|
9
9
|
const CasinoEngagementSuiteTournamentItemTitle = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -12,7 +12,7 @@ const CasinoEngagementSuiteTournamentItemTitle = class {
|
|
|
12
12
|
this.unjoinTournamentConfirmEvent = index.createEvent(this, "unjoinTournamentConfirmEvent", 7);
|
|
13
13
|
this.joinTournamentEvent = index.createEvent(this, "joinTournamentEvent", 7);
|
|
14
14
|
this.tournament = undefined;
|
|
15
|
-
this.
|
|
15
|
+
this.language = 'en';
|
|
16
16
|
this.isButtonDisabed = false;
|
|
17
17
|
}
|
|
18
18
|
onTournamentChanged(tournament) {
|
|
@@ -35,7 +35,7 @@ const CasinoEngagementSuiteTournamentItemTitle = class {
|
|
|
35
35
|
this.isButtonDisabed = this.tournament.isActionJoinPending === true;
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (index.h("div", { key: '
|
|
38
|
+
return (index.h("div", { key: '3123b0ffd6335833a5938b13e4c620ded693da38', class: "TitleContainer" }, index.h("div", { key: '88977f242dd5cce6265c679ae55dc1dfdecd7fd0', class: "Title" }, this.tournament.nameOrTitle), !util_date.isTournamentEnded(this.tournament) && (index.h("div", { key: 'bf2aad175409e687ed2bd42350a7f8585d86c112' }, util_date.renderGradientRoundedButton({
|
|
39
39
|
statedClasses: {
|
|
40
40
|
isHollow: this.tournament.isPlayerAcknowledged,
|
|
41
41
|
isPending: this.isButtonDisabed
|
|
@@ -44,7 +44,7 @@ const CasinoEngagementSuiteTournamentItemTitle = class {
|
|
|
44
44
|
e.stopPropagation();
|
|
45
45
|
this.onClickItemJoin();
|
|
46
46
|
},
|
|
47
|
-
innerHTML: this.tournament.isPlayerAcknowledged ?
|
|
47
|
+
innerHTML: this.tournament.isPlayerAcknowledged ? util_date.translate('Unjoin', this.language) : util_date.translate('Join', this.language)
|
|
48
48
|
})))));
|
|
49
49
|
}
|
|
50
50
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-14c77f03.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-22119cc1.js');
|
|
7
7
|
|
|
8
8
|
const CasinoEngagementSuiteTournamentItem = class {
|
|
9
9
|
constructor(hostRef) {
|
|
@@ -12,7 +12,7 @@ const CasinoEngagementSuiteTournamentItem = class {
|
|
|
12
12
|
this.tournament = undefined;
|
|
13
13
|
this.isNew = undefined;
|
|
14
14
|
this.tid = undefined;
|
|
15
|
-
this.
|
|
15
|
+
this.language = 'en';
|
|
16
16
|
}
|
|
17
17
|
goToDetail() {
|
|
18
18
|
this.clickToTournamentDetail.emit(this.tournament);
|
|
@@ -25,7 +25,7 @@ const CasinoEngagementSuiteTournamentItem = class {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const tournament = this.tournament;
|
|
28
|
-
return (index.h("div", { key: '
|
|
28
|
+
return (index.h("div", { key: '836c6720a7be8c1a97f43245908fc2b6d535c50e', class: utils.classnames('LeaderboardsItem', tournament.isPlayerAcknowledged ? ' GradientRounded Hollow' : '', tournament.isUnjoined ? 'Unjoined' : ''), onClick: this.goToDetail.bind(this) }, index.h("div", { key: 'a6b131a60c7484dd33f963b769b7db47438460f1', class: "LeaderboardsItemContainer" }, index.h("tournament-item-title", { key: '0e229e79322889c168a7ec4f35bd0ae0fde61a96', tournament: tournament, language: this.language }), index.h("tournament-timer", { key: '6f486b88ae367bef631779bfc92b995516bfd8c0', tournament: tournament })), index.h("div", { key: '00e40f6bc6102da356f1d781506ceba4c7ae340e', class: "LeaderboardLabels" }, this.isNew && (index.h("div", { key: '5aa6fced7c55d5bb7911c2590611008389f51042', class: "LeaderboardLabel" }, index.h("span", { key: 'b89b5825d0902545ea44105ce9f3b8a8a2c98676' }, "new"))))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const index = require('./index-14c77f03.js');
|
|
4
|
-
const utils = require('./utils-
|
|
4
|
+
const utils = require('./utils-22119cc1.js');
|
|
5
5
|
|
|
6
6
|
/*! *****************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
@@ -30,6 +30,90 @@ function __rest(s, e) {
|
|
|
30
30
|
return t;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
exports.Tab = void 0;
|
|
34
|
+
(function (Tab) {
|
|
35
|
+
Tab["info"] = "info";
|
|
36
|
+
Tab["leaderboard"] = "leaderboard";
|
|
37
|
+
Tab["games"] = "games";
|
|
38
|
+
})(exports.Tab || (exports.Tab = {}));
|
|
39
|
+
var Time;
|
|
40
|
+
(function (Time) {
|
|
41
|
+
Time["Starts"] = "Starts";
|
|
42
|
+
Time["Ends"] = "Ends";
|
|
43
|
+
})(Time || (Time = {}));
|
|
44
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
45
|
+
const SUPPORTED_LANGUAGES = ['en', 'zh'];
|
|
46
|
+
const localePostprocess = (translationText, props) => {
|
|
47
|
+
Object.keys(props).map((key) => {
|
|
48
|
+
translationText = translationText.replace(`{${key}}`, props[key]);
|
|
49
|
+
});
|
|
50
|
+
return translationText;
|
|
51
|
+
};
|
|
52
|
+
const TRANSLATIONS = {
|
|
53
|
+
en: Object.assign(Object.assign(Object.assign({ Join: 'Join', Unjoin: 'Unjoin' }, exports.Tab), Time), { 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: {
|
|
54
|
+
Title: 'Quit Leaderboard?',
|
|
55
|
+
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?',
|
|
56
|
+
ButtonYes: 'Yes, I want to quit leaderboard',
|
|
57
|
+
ButtonNo: 'No, Stay on the leaderboard'
|
|
58
|
+
}, WinDialog: {
|
|
59
|
+
Title: 'Congratulations!',
|
|
60
|
+
Description: 'You won <span>{rewards}</span>!',
|
|
61
|
+
ButtonContinue: 'Continue',
|
|
62
|
+
FailedTitle: 'Reward cannot be issued',
|
|
63
|
+
FailedDescription: 'Please contact support.',
|
|
64
|
+
FailedButtonContinue: 'Ok, continue',
|
|
65
|
+
}, 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.' }),
|
|
66
|
+
zh: {
|
|
67
|
+
Join: '加入',
|
|
68
|
+
Unjoin: '取消',
|
|
69
|
+
info: '信息',
|
|
70
|
+
leaderboard: '排行榜',
|
|
71
|
+
games: '游戏',
|
|
72
|
+
Starts: '开始',
|
|
73
|
+
Ends: '结束',
|
|
74
|
+
TC: '条款与条件',
|
|
75
|
+
ScoreCriteria: '积分规则',
|
|
76
|
+
MinimumBetCriteria: '最低投注要求',
|
|
77
|
+
Place: '名次',
|
|
78
|
+
Places: '名次',
|
|
79
|
+
Prizes: '奖励',
|
|
80
|
+
Player: '玩家',
|
|
81
|
+
Rank: '排名',
|
|
82
|
+
Score: '积分',
|
|
83
|
+
Prize: '奖品',
|
|
84
|
+
LeaderboardDetails: '排行榜详情',
|
|
85
|
+
UnjoinDialog: {
|
|
86
|
+
Title: '退出排行榜?',
|
|
87
|
+
Description: '当前排行榜的进度将不会被保留,且您无法再次加入该排行榜。 <br /><br />您确定要退出吗?',
|
|
88
|
+
ButtonYes: '是的,我要退出排行榜',
|
|
89
|
+
ButtonNo: '不,留在排行榜'
|
|
90
|
+
},
|
|
91
|
+
WinDialog: {
|
|
92
|
+
Title: '恭喜!',
|
|
93
|
+
Description: '您赢得了 <span>{rewards}</span>!',
|
|
94
|
+
ButtonContinue: '继续',
|
|
95
|
+
FailedTitle: '奖励无法发放',
|
|
96
|
+
FailedDescription: '请联系客服。',
|
|
97
|
+
FailedButtonContinue: '好的,继续'
|
|
98
|
+
},
|
|
99
|
+
NoLeaderboards: '暂无排行榜',
|
|
100
|
+
NoLeaderboardsTip: '尝试通过赢得奖品或启动其他增强游戏来获得排行榜',
|
|
101
|
+
Leaderboards: '排行榜',
|
|
102
|
+
TipPrize: '您获得 <span>{place}</span> 名,并赢得 <span>{prize}</span>',
|
|
103
|
+
TipPrizeWithoutReward: '您获得 <span>{place}</span> 名',
|
|
104
|
+
Tip: '您的真实资金投注将计入排行榜积分计算,以赢得排行榜奖励。',
|
|
105
|
+
TournamentNotStarted: '排行榜尚未开始。 <br> 它将在 {startTime} 开始。',
|
|
106
|
+
BeOne: '目前暂无赢家。成为其中之一!',
|
|
107
|
+
NoGameConfiged: '没有配置游戏',
|
|
108
|
+
FailedToJoin: '哦哦!发生了一些意外错误,请再试一次。',
|
|
109
|
+
FailedToUnjoin: '哦哦!发生了一些意外错误,请再试一次。'
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
const translate = (key, customLang) => {
|
|
113
|
+
const lang = customLang;
|
|
114
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
115
|
+
};
|
|
116
|
+
|
|
33
117
|
exports.LeaderboardPage = void 0;
|
|
34
118
|
(function (LeaderboardPage) {
|
|
35
119
|
LeaderboardPage["list"] = "list";
|
|
@@ -58,7 +142,7 @@ exports.DialogType = void 0;
|
|
|
58
142
|
DialogType["error"] = "error";
|
|
59
143
|
})(exports.DialogType || (exports.DialogType = {}));
|
|
60
144
|
|
|
61
|
-
const DEFAULT_PAGE_SIZE =
|
|
145
|
+
const DEFAULT_PAGE_SIZE = 12;
|
|
62
146
|
const getMaxRankStr = (playerLeaderboards) => {
|
|
63
147
|
let bestRank = null;
|
|
64
148
|
(playerLeaderboards || []).map((playerLeaderboard) => {
|
|
@@ -136,6 +220,7 @@ function getTimeDifference(startDate, endDate, progress = 0) {
|
|
|
136
220
|
}
|
|
137
221
|
|
|
138
222
|
exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
|
|
223
|
+
exports.TRANSLATIONS = TRANSLATIONS;
|
|
139
224
|
exports.__rest = __rest;
|
|
140
225
|
exports.formatDate = formatDate;
|
|
141
226
|
exports.getMaxRankStr = getMaxRankStr;
|
|
@@ -144,4 +229,6 @@ exports.getRewardNameByType = getRewardNameByType;
|
|
|
144
229
|
exports.getTimeDifference = getTimeDifference;
|
|
145
230
|
exports.isTournamentClosed = isTournamentClosed;
|
|
146
231
|
exports.isTournamentEnded = isTournamentEnded;
|
|
232
|
+
exports.localePostprocess = localePostprocess;
|
|
147
233
|
exports.renderGradientRoundedButton = renderGradientRoundedButton;
|
|
234
|
+
exports.translate = translate;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const classnames = (...args) => {
|
|
4
|
+
let classnameArray = ['Tab'];
|
|
5
|
+
args.map((arg) => {
|
|
6
|
+
switch (typeof arg) {
|
|
7
|
+
case 'string':
|
|
8
|
+
classnameArray.push(arg);
|
|
9
|
+
break;
|
|
10
|
+
case 'object':
|
|
11
|
+
Object.keys(arg).map((k) => {
|
|
12
|
+
if (arg[k]) {
|
|
13
|
+
classnameArray.push(k);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return classnameArray.join(' ');
|
|
20
|
+
};
|
|
21
|
+
const getNewItems = (newList, oldList, getCondition) => {
|
|
22
|
+
return newList.filter(newItem => !oldList.some(oldItem => getCondition(newItem, oldItem)));
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Truncate number to specified decimal places (without rounding)
|
|
26
|
+
* @param {number|string} value - The number to be truncated, can be number or string
|
|
27
|
+
* @param {number} decimals - Number of decimal places to truncate to
|
|
28
|
+
* @returns {string|number} - Truncated value, returns string to preserve trailing zeros if has decimals, otherwise returns number
|
|
29
|
+
* @param {boolean} isInteger - Whether to force return integer
|
|
30
|
+
*/
|
|
31
|
+
const truncateNumber = (value, decimals, isInteger = false) => {
|
|
32
|
+
// Try to convert input to number
|
|
33
|
+
const numValue = Number(value);
|
|
34
|
+
// Check if valid number
|
|
35
|
+
if (isNaN(numValue)) {
|
|
36
|
+
throw new Error('Input must be a valid number or string that can be converted to number');
|
|
37
|
+
}
|
|
38
|
+
if (isInteger && !numValue.toString().includes('.')) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
// When decimals is 0, return integer part directly
|
|
42
|
+
if (decimals === 0) {
|
|
43
|
+
return Math.floor(numValue);
|
|
44
|
+
}
|
|
45
|
+
// Calculate factor for given decimal places
|
|
46
|
+
const factor = Math.pow(10, decimals);
|
|
47
|
+
// Multiply by factor, truncate integer part, then divide by factor
|
|
48
|
+
const truncated = Math.floor(numValue * factor) / factor;
|
|
49
|
+
// Return string representation with fixed decimals to preserve trailing zeros
|
|
50
|
+
return truncated.toFixed(decimals);
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
exports.classnames = classnames;
|
|
54
|
+
exports.getNewItems = getNewItems;
|
|
55
|
+
exports.truncateNumber = truncateNumber;
|
|
@@ -406,8 +406,14 @@ export class CasinoEngagementSuiteContainer {
|
|
|
406
406
|
break;
|
|
407
407
|
}
|
|
408
408
|
case 'ShowLuckywheelRewardModal': {
|
|
409
|
-
const { HasError, PrizeMessage, PrizeText } = rest.data;
|
|
410
|
-
|
|
409
|
+
const { HasError, PrizeMessage, PrizeText, NoPrize } = rest.data;
|
|
410
|
+
let type = MODAL_TYPES.REWARD_MODAL;
|
|
411
|
+
if (HasError) {
|
|
412
|
+
type = MODAL_TYPES.SUPPORT_MODAL;
|
|
413
|
+
}
|
|
414
|
+
else if (NoPrize) {
|
|
415
|
+
type = MODAL_TYPES.NO_PRIZE_MODAL;
|
|
416
|
+
}
|
|
411
417
|
this.setRemainingLuckyWheels();
|
|
412
418
|
const event = {
|
|
413
419
|
modalType: type,
|
|
@@ -693,7 +699,7 @@ export class CasinoEngagementSuiteContainer {
|
|
|
693
699
|
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) || '');
|
|
694
700
|
}
|
|
695
701
|
render() {
|
|
696
|
-
return (h("div", { key: '
|
|
702
|
+
return (h("div", { key: '806091d9b47fb8b500efa55b8f5e7d805734095d', class: `CasinoEngagementSuiteContainer ${this.device} ${this.orientation}`, style: { ['--barHeight']: `${this.barHeight}px` } }, h("div", { key: 'fad160ba7e27afbec626c9ac39f75d3f058371d4', class: "barWrapper", ref: (el) => (this.barWrapperEl = el) }, 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(), h("casino-engagement-suite-modal-container", { key: 'e547e22fae4383d94a67f8abfe6a362dae793d5f', clientStylingUrl: this.clientStylingUrl, device: this.device, isJoiningToChallenge: this.isJoiningToChallenge })));
|
|
697
703
|
}
|
|
698
704
|
static get is() { return "casino-engagement-suite-container"; }
|
|
699
705
|
static get encapsulation() { return "shadow"; }
|