@everymatrix/casino-engagement-suite-tournament 1.63.3 → 1.64.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-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/p-edcd56d0.js +15 -0
- package/dist/casino-engagement-suite-tournament/{p-d24f1017.entry.js → p-fcfced34.entry.js} +1 -1
- package/dist/cjs/casino-engagement-suite-progress-bar_6.cjs.entry.js +11 -10
- package/dist/cjs/{casino-engagement-suite-tournament-785dd5cc.js → casino-engagement-suite-tournament-95aedc10.js} +244 -67
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/back.svg +3 -0
- package/dist/collection/assets/iconTrophy.svg +12 -0
- package/dist/collection/assets/iconWarn.svg +15 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +123 -26
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +71 -14
- package/dist/collection/shared/TournamentDurationTimer.js +9 -9
- package/dist/collection/shared/TournamentItem.js +20 -2
- package/dist/collection/shared/TournamentItemTitle.js +3 -3
- package/dist/collection/shared/icons.js +6 -2
- package/dist/collection/shared/renders.dialog.js +10 -3
- package/dist/collection/shared/renders.page.js +3 -1
- package/dist/collection/shared/renders.tab.js +10 -3
- package/dist/collection/utils/api.apdater.js +14 -0
- package/dist/collection/utils/bussiness.js +28 -2
- package/dist/collection/utils/message.js +104 -27
- package/dist/collection/utils/translations.js +8 -5
- package/dist/collection/utils/types.js +8 -0
- package/dist/collection/utils/util.date.js +4 -3
- package/dist/collection/utils/utils.js +5 -2
- package/dist/esm/casino-engagement-suite-progress-bar_6.entry.js +12 -11
- package/dist/esm/{casino-engagement-suite-tournament-3be75bd2.js → casino-engagement-suite-tournament-61d378cd.js} +244 -67
- package/dist/esm/casino-engagement-suite-tournament.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +20 -3
- package/dist/types/components.d.ts +18 -0
- package/dist/types/shared/TournamentItem.d.ts +7 -1
- package/dist/types/shared/TournamentItemTitle.d.ts +6 -1
- package/dist/types/shared/icons.d.ts +1 -0
- package/dist/types/utils/api.apdater.d.ts +3 -0
- package/dist/types/utils/bussiness.d.ts +10 -1
- package/dist/types/utils/message.d.ts +3 -0
- package/dist/types/utils/translations.d.ts +6 -1
- package/dist/types/utils/types.d.ts +9 -0
- package/dist/types/utils/util.date.d.ts +2 -2
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-f478f260.js +0 -15
|
@@ -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-progress-bar_6.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"leaderboardsInit":[16],"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":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"locale":[32]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[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],"locale":[32],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_6.cjs",[[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":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"locale":[32]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[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],"locale":[32],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-
|
|
5
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-95aedc10.js');
|
|
6
6
|
require('./index-5e98dd13.js');
|
|
7
7
|
|
|
8
8
|
|
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-progress-bar_6.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"leaderboardsInit":[16],"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":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"locale":[32]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[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],"locale":[32],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_6.cjs",[[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":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"locale":[32]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[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],"locale":[32],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><script xmlns=""/>
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.4713 3.52859C10.7317 3.78894 10.7317 4.21105 10.4713 4.4714L6.94273 8L10.4713 11.5286C10.7317 11.7889 10.7317 12.2111 10.4713 12.4714C10.211 12.7317 9.78886 12.7317 9.52851 12.4714L5.52851 8.4714C5.26816 8.21105 5.26816 7.78894 5.52851 7.52859L9.52851 3.52859C9.78886 3.26824 10.211 3.26824 10.4713 3.52859Z" fill="#666178"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="45" height="44" viewBox="0 0 45 44" fill="none"><script xmlns=""/>
|
|
2
|
+
<rect x="0.5" width="44" height="44" rx="22" fill="url(#paint0_linear_1604_5589)"/>
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.8744 19.7227C19.8744 18.275 21.0522 17.0972 22.4999 17.0972C23.9477 17.0972 25.1255 18.275 25.1255 19.7227C25.1255 21.1705 23.9477 22.3483 22.4999 22.3483C21.0522 22.3483 19.8744 21.1705 19.8744 19.7227ZM22.4999 21.4781C22.847 21.4781 23.1287 21.1965 23.1287 20.8494V18.5961C23.1287 18.249 22.847 17.9673 22.4999 17.9673C22.1529 17.9673 21.8712 18.249 21.8712 18.5961V20.8494C21.8712 21.1965 22.1529 21.4781 22.4999 21.4781Z" fill="#1E1638"/>
|
|
4
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M31.8714 15.4721C32.0533 15.4721 32.2264 15.5509 32.3459 15.6879C32.4649 15.8254 32.5194 16.0077 32.4938 16.188L31.9032 20.4105C31.7188 21.727 30.5775 22.72 29.2479 22.72H27.3026C26.6018 23.8224 25.5263 24.672 24.2407 25.0798V26.339C24.2407 26.6558 24.4994 26.9052 24.8162 26.9069C25.7547 26.9111 26.5113 27.6698 26.5113 28.6095V29.4742H18.4887V28.6095C18.4887 27.6698 19.2453 26.9111 20.1838 26.9069C20.5007 26.9052 20.7593 26.6558 20.7593 26.339V25.0798C19.4737 24.672 18.3982 23.8224 17.6974 22.72H15.7521C14.4225 22.72 13.2812 21.727 13.0968 20.4105L12.5062 16.188C12.4806 16.0077 12.5351 15.8254 12.6541 15.6879C12.7736 15.5509 12.9467 15.4721 13.1286 15.4721H16.3138L16.1947 14.4024C16.1712 14.1878 16.3389 14 16.5552 14H28.4448C28.6611 14 28.8288 14.1878 28.8053 14.4024L28.6862 15.4721H31.8714ZM14.3425 20.2361C14.4402 20.9353 15.0462 21.4626 15.7521 21.4626H17.1013C16.9815 21.1004 16.8981 20.7228 16.854 20.3346L16.4533 16.7295H13.8517L14.3425 20.2361ZM18.617 19.7227C18.617 21.8637 20.359 23.6057 22.5 23.6057C24.641 23.6057 26.383 21.8637 26.383 19.7227C26.383 17.5816 24.641 15.8397 22.5 15.8397C20.359 15.8397 18.617 17.5816 18.617 19.7227ZM29.2479 21.4626C29.9538 21.4626 30.5599 20.9353 30.6575 20.2361L31.1483 16.7295H28.5467L28.146 20.3346C28.102 20.7228 28.0185 21.1004 27.8987 21.4626H29.2479Z" fill="#1E1638"/>
|
|
5
|
+
<defs>
|
|
6
|
+
<linearGradient id="paint0_linear_1604_5589" x1="3.34706" y1="2.0625" x2="65.3447" y2="11.048" gradientUnits="userSpaceOnUse">
|
|
7
|
+
<stop offset="0.129184" stop-color="#FF9400"/>
|
|
8
|
+
<stop offset="0.993007" stop-color="#FEF746"/>
|
|
9
|
+
<stop offset="1" stop-color="#FFE24A"/>
|
|
10
|
+
</linearGradient>
|
|
11
|
+
</defs>
|
|
12
|
+
<script xmlns=""/></svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Frame 37678">
|
|
3
|
+
<rect width="44" height="44" rx="22" fill="url(#paint0_linear_1701_12604)"/>
|
|
4
|
+
<g id="icon">
|
|
5
|
+
<path id="Icon" d="M21.9998 19.0002V23.0002M21.9998 27.0002H22.0098M20.6151 13.892L12.3902 28.0986C11.934 28.8866 11.7059 29.2806 11.7396 29.6039C11.769 29.886 11.9168 30.1423 12.1461 30.309C12.4091 30.5002 12.8643 30.5002 13.7749 30.5002H30.2246C31.1352 30.5002 31.5904 30.5002 31.8534 30.309C32.0827 30.1423 32.2305 29.886 32.2599 29.6039C32.2936 29.2806 32.0655 28.8866 31.6093 28.0986L23.3844 13.892C22.9299 13.1068 22.7026 12.7142 22.4061 12.5824C22.1474 12.4673 21.8521 12.4673 21.5935 12.5824C21.2969 12.7142 21.0696 13.1068 20.6151 13.892Z" stroke="#251D3E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</g>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<linearGradient id="paint0_linear_1701_12604" x1="2.84706" y1="2.0625" x2="64.8447" y2="11.048" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop offset="0.129184" stop-color="#FF9400"/>
|
|
11
|
+
<stop offset="0.993007" stop-color="#FEF746"/>
|
|
12
|
+
<stop offset="1" stop-color="#FFE24A"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
transition-property: all, transform;
|
|
6
6
|
}
|
|
7
7
|
.Leaderboards.list, .Leaderboards.item {
|
|
8
|
+
margin-top: 5px;
|
|
8
9
|
opacity: 0;
|
|
9
10
|
}
|
|
10
11
|
.Leaderboards.list.Active, .Leaderboards.item.Active {
|
|
@@ -33,13 +34,21 @@
|
|
|
33
34
|
opacity: 0.8;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
table.
|
|
37
|
+
table.Leaderboards {
|
|
37
38
|
height: auto;
|
|
38
39
|
}
|
|
40
|
+
table.Leaderboards td.LeaderboardName {
|
|
41
|
+
max-width: 180px;
|
|
42
|
+
}
|
|
43
|
+
table.Leaderboards td.LeaderboardPrize {
|
|
44
|
+
min-width: 220px;
|
|
45
|
+
text-align: left;
|
|
46
|
+
}
|
|
39
47
|
|
|
40
48
|
.Wrapper {
|
|
41
49
|
position: relative;
|
|
42
50
|
min-height: 100%;
|
|
51
|
+
line-height: 20px;
|
|
43
52
|
color: var(--emw--color-typography, #FFFFFF);
|
|
44
53
|
display: flex;
|
|
45
54
|
background-color: var(--emw--color-background, hsl(254, 44%, 15%));
|
|
@@ -51,15 +60,36 @@ table.leaderboards {
|
|
|
51
60
|
scrollbar-color: var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent;
|
|
52
61
|
}
|
|
53
62
|
.Wrapper .WrapperContent .TableContentWrapper {
|
|
54
|
-
height: calc(100vh -
|
|
63
|
+
height: calc(100vh - 298px);
|
|
55
64
|
overflow-y: auto;
|
|
56
65
|
}
|
|
57
66
|
.Wrapper .WrapperContent .Main {
|
|
58
67
|
height: calc(100vh - 188px);
|
|
59
68
|
}
|
|
69
|
+
.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row {
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row tournament-item {
|
|
74
|
+
transition: 2s ease-in-out;
|
|
75
|
+
transform: translate(0) scale(1, 1);
|
|
76
|
+
opacity: 0.99;
|
|
77
|
+
}
|
|
60
78
|
.Wrapper.Mobile {
|
|
61
79
|
border-radius: 16px;
|
|
62
80
|
}
|
|
81
|
+
.Wrapper.Mobile .PageConfirmContainer, .Wrapper.Mobile .DialogContentUnjoin {
|
|
82
|
+
min-width: 80%;
|
|
83
|
+
}
|
|
84
|
+
.Wrapper.Mobile dialog.tip {
|
|
85
|
+
padding: 120px 10px;
|
|
86
|
+
}
|
|
87
|
+
.Wrapper.Mobile dialog.unjoin .Hollow {
|
|
88
|
+
margin: 5px;
|
|
89
|
+
}
|
|
90
|
+
.Wrapper.Mobile .GradientRoundedButton {
|
|
91
|
+
font-size: var(--emw--font-size-medium, 14px);
|
|
92
|
+
}
|
|
63
93
|
|
|
64
94
|
.WrapperContent {
|
|
65
95
|
padding-bottom: 20px;
|
|
@@ -81,12 +111,17 @@ table.leaderboards {
|
|
|
81
111
|
padding: 20px 8px 8px;
|
|
82
112
|
margin-bottom: 8px;
|
|
83
113
|
}
|
|
114
|
+
.Wrapper.Mobile .Tip {
|
|
115
|
+
padding: 0px 30px 32px;
|
|
116
|
+
}
|
|
117
|
+
.Wrapper.Mobile .TitleContainer .GradientRoundedButton {
|
|
118
|
+
width: 100px;
|
|
119
|
+
}
|
|
84
120
|
|
|
85
121
|
.WrapperBar {
|
|
86
122
|
display: flex;
|
|
87
123
|
width: 100%;
|
|
88
|
-
padding:
|
|
89
|
-
margin-bottom: 20px;
|
|
124
|
+
padding: 20px 20px;
|
|
90
125
|
}
|
|
91
126
|
.WrapperBar .WrapperBarLeft span {
|
|
92
127
|
position: relative;
|
|
@@ -97,6 +132,11 @@ table.leaderboards {
|
|
|
97
132
|
cursor: pointer;
|
|
98
133
|
z-index: 1;
|
|
99
134
|
}
|
|
135
|
+
.WrapperBarLeft span.EngagementSuiteIcon img,
|
|
136
|
+
.WrapperBarRight span.EngagementSuiteIcon img {
|
|
137
|
+
width: 24px;
|
|
138
|
+
height: 24px;
|
|
139
|
+
}
|
|
100
140
|
|
|
101
141
|
.WrapperBarMiddle {
|
|
102
142
|
flex-grow: 1;
|
|
@@ -109,8 +149,7 @@ table.leaderboards {
|
|
|
109
149
|
|
|
110
150
|
:host {
|
|
111
151
|
display: block;
|
|
112
|
-
font-size: var(--emw--font-size-x-small,
|
|
113
|
-
font-family: Inter;
|
|
152
|
+
font-size: var(--emw--font-size-x-small, 14px);
|
|
114
153
|
}
|
|
115
154
|
|
|
116
155
|
.ScrollBar {
|
|
@@ -131,9 +170,10 @@ table.leaderboards {
|
|
|
131
170
|
opacity: 1;
|
|
132
171
|
transition: 1s opacity ease;
|
|
133
172
|
position: relative;
|
|
134
|
-
margin:
|
|
173
|
+
margin: 20px 0;
|
|
135
174
|
border: 1px solid rgb(64, 57, 86);
|
|
136
|
-
border-radius:
|
|
175
|
+
border-radius: 6px;
|
|
176
|
+
padding: 12px 0;
|
|
137
177
|
}
|
|
138
178
|
.LeaderboardsItem.Unjoined {
|
|
139
179
|
opacity: 0;
|
|
@@ -166,7 +206,7 @@ table.leaderboards {
|
|
|
166
206
|
.TimeContainer .Time {
|
|
167
207
|
display: flex;
|
|
168
208
|
justify-content: space-between;
|
|
169
|
-
font-size: var(--emw--font-size-x-small,
|
|
209
|
+
font-size: var(--emw--font-size-x-small, 14px);
|
|
170
210
|
align-items: center;
|
|
171
211
|
color: var(--emw--color-secondary, rgb(187, 185, 195));
|
|
172
212
|
}
|
|
@@ -177,7 +217,7 @@ table.leaderboards {
|
|
|
177
217
|
justify-content: space-between;
|
|
178
218
|
}
|
|
179
219
|
.TimeContainer .Time button {
|
|
180
|
-
font-size: var(--emw--font-size-x-small,
|
|
220
|
+
font-size: var(--emw--font-size-x-small, 14px);
|
|
181
221
|
height: 20px;
|
|
182
222
|
padding: 0;
|
|
183
223
|
}
|
|
@@ -211,7 +251,7 @@ table.leaderboards {
|
|
|
211
251
|
display: flex;
|
|
212
252
|
justify-content: space-between;
|
|
213
253
|
justify-content: start;
|
|
214
|
-
font-size: var(--emw--font-size-x-small,
|
|
254
|
+
font-size: var(--emw--font-size-x-small, 14px);
|
|
215
255
|
margin-bottom: -1px;
|
|
216
256
|
}
|
|
217
257
|
.Tabs .Tab {
|
|
@@ -228,7 +268,7 @@ table.leaderboards {
|
|
|
228
268
|
}
|
|
229
269
|
|
|
230
270
|
.Title {
|
|
231
|
-
font-size: var(--emw--font-size-
|
|
271
|
+
font-size: var(--emw--font-size-large, 20px);
|
|
232
272
|
font-weight: 700;
|
|
233
273
|
line-height: 19.5px;
|
|
234
274
|
text-align: left;
|
|
@@ -236,14 +276,14 @@ table.leaderboards {
|
|
|
236
276
|
}
|
|
237
277
|
|
|
238
278
|
.TC {
|
|
239
|
-
margin-top:
|
|
279
|
+
margin-top: 14px;
|
|
240
280
|
}
|
|
241
281
|
.TC a {
|
|
242
282
|
color: rgb(89, 209, 255);
|
|
243
283
|
}
|
|
244
284
|
|
|
245
285
|
.Criterias {
|
|
246
|
-
margin:
|
|
286
|
+
margin: 14px 0;
|
|
247
287
|
}
|
|
248
288
|
.Criterias span {
|
|
249
289
|
color: var(--emw--color-primary, rgb(255, 214, 47));
|
|
@@ -299,7 +339,7 @@ table.leaderboards {
|
|
|
299
339
|
margin: 0 20px;
|
|
300
340
|
}
|
|
301
341
|
.PrizesHeader img, .DetailHeader img {
|
|
302
|
-
width:
|
|
342
|
+
width: 14px;
|
|
303
343
|
}
|
|
304
344
|
.PrizesHeader .PrizesText, .DetailHeader .PrizesText {
|
|
305
345
|
margin-left: 3px;
|
|
@@ -336,6 +376,9 @@ table.leaderboards {
|
|
|
336
376
|
.Prizes .Prize {
|
|
337
377
|
margin: 8px 0;
|
|
338
378
|
}
|
|
379
|
+
.Prizes .Prize .Rank {
|
|
380
|
+
margin-right: 5px;
|
|
381
|
+
}
|
|
339
382
|
.Prizes .Prize .PrizeText {
|
|
340
383
|
color: var(--emw--color-primary, rgb(255, 214, 47));
|
|
341
384
|
font-weight: 400;
|
|
@@ -455,14 +498,28 @@ table.leaderboards {
|
|
|
455
498
|
height: fit-content;
|
|
456
499
|
}
|
|
457
500
|
|
|
458
|
-
dialog {
|
|
501
|
+
dialog.tip {
|
|
459
502
|
position: absolute;
|
|
460
|
-
|
|
503
|
+
align-items: start;
|
|
504
|
+
padding: 120px 90px;
|
|
505
|
+
line-height: 20px;
|
|
506
|
+
font-size: var(--emw--font-size-small, 16px);
|
|
507
|
+
}
|
|
508
|
+
dialog.tip > div {
|
|
509
|
+
margin: 0px;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
dialog {
|
|
513
|
+
display: none;
|
|
514
|
+
position: fixed;
|
|
515
|
+
left: 0;
|
|
516
|
+
top: 0;
|
|
461
517
|
width: 100%;
|
|
462
|
-
height:
|
|
463
|
-
background:
|
|
464
|
-
|
|
465
|
-
|
|
518
|
+
height: 100%;
|
|
519
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
520
|
+
justify-content: center;
|
|
521
|
+
align-items: center;
|
|
522
|
+
z-index: 1;
|
|
466
523
|
color: var(--emw--color-typography, #FFFFFF);
|
|
467
524
|
transition: all 0.2s;
|
|
468
525
|
transition-timing-function: ease-in-out;
|
|
@@ -474,12 +531,28 @@ dialog > div {
|
|
|
474
531
|
border: 1px solid hsl(254, 20%, 28%);
|
|
475
532
|
align-items: center;
|
|
476
533
|
}
|
|
534
|
+
dialog div.Hollow .WrapperBar {
|
|
535
|
+
padding: 12px;
|
|
536
|
+
}
|
|
537
|
+
dialog div.Hollow .WrapperBar .WrapperBarRight img {
|
|
538
|
+
width: 20px;
|
|
539
|
+
}
|
|
540
|
+
dialog div.Hollow .Tip {
|
|
541
|
+
line-height: 20px;
|
|
542
|
+
padding: 0px 60px 32px;
|
|
543
|
+
font-size: var(--emw--font-size-small, 16px);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
dialog[open] {
|
|
547
|
+
display: flex;
|
|
548
|
+
}
|
|
477
549
|
|
|
478
550
|
.DialogContentUnjoin {
|
|
479
551
|
padding: 32px;
|
|
480
552
|
padding-top: 10px;
|
|
481
553
|
display: flex;
|
|
482
554
|
gap: 10px;
|
|
555
|
+
max-width: 510px;
|
|
483
556
|
flex-direction: column;
|
|
484
557
|
}
|
|
485
558
|
|
|
@@ -498,7 +571,7 @@ dialog > div {
|
|
|
498
571
|
|
|
499
572
|
.Tip {
|
|
500
573
|
padding: 32px;
|
|
501
|
-
padding-top:
|
|
574
|
+
padding-top: 0px;
|
|
502
575
|
color: var(--emw--color-secondary, rgb(187, 185, 195));
|
|
503
576
|
font-size: var(--emw--font-size-small, 14px);
|
|
504
577
|
}
|
|
@@ -510,17 +583,19 @@ dialog > div {
|
|
|
510
583
|
.PageConfirmContainer {
|
|
511
584
|
text-align: center;
|
|
512
585
|
width: 80%;
|
|
586
|
+
min-width: 450px;
|
|
587
|
+
max-width: 510px;
|
|
513
588
|
margin: 0 auto;
|
|
514
589
|
}
|
|
515
590
|
|
|
516
591
|
.PageConfirm {
|
|
517
|
-
padding:
|
|
592
|
+
padding: 0px 32px 60px;
|
|
518
593
|
display: flex;
|
|
519
594
|
flex-direction: column;
|
|
520
595
|
gap: 20px;
|
|
521
596
|
}
|
|
522
597
|
.PageConfirm .Title {
|
|
523
|
-
font-size: var(--emw--font-size-large,
|
|
598
|
+
font-size: var(--emw--font-size-large, 26px);
|
|
524
599
|
text-align: center;
|
|
525
600
|
}
|
|
526
601
|
.PageConfirm .Description {
|
|
@@ -532,9 +607,27 @@ dialog > div {
|
|
|
532
607
|
font-weight: 600;
|
|
533
608
|
}
|
|
534
609
|
|
|
610
|
+
.PageConfirm.Gift {
|
|
611
|
+
padding: 22px 32px 60px;
|
|
612
|
+
}
|
|
613
|
+
.PageConfirm.Gift .Title {
|
|
614
|
+
font-size: var(--emw--font-size-large, 30px);
|
|
615
|
+
}
|
|
616
|
+
.PageConfirm.Gift .Description {
|
|
617
|
+
font-size: var(--emw--font-size-medium, 20px);
|
|
618
|
+
}
|
|
619
|
+
.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton {
|
|
620
|
+
font-size: var(--emw--font-size-medium, 20px);
|
|
621
|
+
padding: 12px;
|
|
622
|
+
height: auto;
|
|
623
|
+
}
|
|
624
|
+
.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded {
|
|
625
|
+
border-radius: 20px;
|
|
626
|
+
}
|
|
627
|
+
|
|
535
628
|
.PageConfirmButtonsGroup {
|
|
536
629
|
width: 150px;
|
|
537
|
-
margin:
|
|
630
|
+
margin: 20px auto;
|
|
538
631
|
display: flex;
|
|
539
632
|
flex-direction: column;
|
|
540
633
|
gap: 10px;
|
|
@@ -569,7 +662,7 @@ dialog > div {
|
|
|
569
662
|
padding: 7px;
|
|
570
663
|
height: 32px;
|
|
571
664
|
width: 100%;
|
|
572
|
-
font-size: var(--emw--font-size-
|
|
665
|
+
font-size: var(--emw--font-size-medium, 16px);
|
|
573
666
|
font-weight: 700;
|
|
574
667
|
line-height: 17.07px;
|
|
575
668
|
text-align: center;
|
|
@@ -586,6 +679,10 @@ dialog > div {
|
|
|
586
679
|
-webkit-text-fill-color: transparent;
|
|
587
680
|
}
|
|
588
681
|
|
|
682
|
+
.LeaderboardsItem.GradientRounded.Hollow::before {
|
|
683
|
+
border-radius: 7px;
|
|
684
|
+
}
|
|
685
|
+
|
|
589
686
|
.WrapperUtil .GradientRounded .WrapperBar {
|
|
590
687
|
margin-bottom: 0;
|
|
591
688
|
padding-bottom: 0;
|
|
@@ -3,7 +3,7 @@ import { h, Host } from "@stencil/core";
|
|
|
3
3
|
import { Tab, TRANSLATIONS } from "../../utils/translations";
|
|
4
4
|
import { classnames, getNewItems } from "../../utils/utils";
|
|
5
5
|
import { DialogType, LeaderboardPage } from "../../utils/types";
|
|
6
|
-
import {
|
|
6
|
+
import { DEFAULT_PAGE_SIZE, isTournamentEnded } from "../../utils/bussiness";
|
|
7
7
|
import { renders } from "../../shared/renders";
|
|
8
8
|
import { messageReceiver, messageSender } from "../../utils/message";
|
|
9
9
|
import "../../../../../../svelte/general-animation-loading/es2015/general-animation-loading";
|
|
@@ -79,7 +79,14 @@ export class CasinoEngagementSuiteTournament {
|
|
|
79
79
|
}, 300);
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
if (this.show) {
|
|
83
|
+
this.openDialog(DialogType.gift, this.gifts[0], onClose);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
//Show 'Win' Label on the left ui-bar,
|
|
87
|
+
this.labels.push('win');
|
|
88
|
+
messageSender.UpdateSuiteBarState(this.labels);
|
|
89
|
+
}
|
|
83
90
|
}
|
|
84
91
|
else {
|
|
85
92
|
this.removeLabel('win');
|
|
@@ -96,9 +103,6 @@ export class CasinoEngagementSuiteTournament {
|
|
|
96
103
|
this.showTooltip = false;
|
|
97
104
|
}
|
|
98
105
|
componentDidLoad() {
|
|
99
|
-
this.pageElement.addEventListener('scroll', (event) => {
|
|
100
|
-
this.containerScrollTop = event.target.scrollTop + event.target.clientHeight / 2 - 250;
|
|
101
|
-
});
|
|
102
106
|
messageSender.UpdateTournamentsPageIsReady();
|
|
103
107
|
}
|
|
104
108
|
renderTooltip() {
|
|
@@ -119,7 +123,7 @@ export class CasinoEngagementSuiteTournament {
|
|
|
119
123
|
}
|
|
120
124
|
componentDidRender() {
|
|
121
125
|
if (this.page === LeaderboardPage.item && this.tab === Tab.leaderboard) {
|
|
122
|
-
if (this.
|
|
126
|
+
if (this.currentPlayerRank > this.defaultPageSize && !this.scrolledToMyLine) {
|
|
123
127
|
this.scrollToMyRankLine();
|
|
124
128
|
}
|
|
125
129
|
}
|
|
@@ -137,6 +141,11 @@ export class CasinoEngagementSuiteTournament {
|
|
|
137
141
|
if (tournament.isActionJoinPending)
|
|
138
142
|
return;
|
|
139
143
|
tournament.isActionJoinPending = true;
|
|
144
|
+
//Disable the unjoin button when action in detail page
|
|
145
|
+
if (this.page === LeaderboardPage.item) {
|
|
146
|
+
this.tournamentItem.isActionJoinPending = true;
|
|
147
|
+
this.tournamentItem = Object.assign({}, this.tournamentItem);
|
|
148
|
+
}
|
|
140
149
|
this.pendingChangeEvent.emit(tournament);
|
|
141
150
|
try {
|
|
142
151
|
if (tournament.isPlayerAcknowledged) {
|
|
@@ -158,7 +167,7 @@ export class CasinoEngagementSuiteTournament {
|
|
|
158
167
|
if (!this.tournamentItem) {
|
|
159
168
|
messageSender.UpdateTournamentsItemReq(metaData.tournament);
|
|
160
169
|
}
|
|
161
|
-
if (
|
|
170
|
+
if (isTournamentEnded(this.tournamentItem)) {
|
|
162
171
|
messageSender.UpdateLeaderboardsReq(this.tournamentItem);
|
|
163
172
|
}
|
|
164
173
|
this.tab = Tab.info;
|
|
@@ -180,21 +189,27 @@ export class CasinoEngagementSuiteTournament {
|
|
|
180
189
|
};
|
|
181
190
|
return (h(Host, null, h("general-styling-wrapper", { clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
182
191
|
// @ts-ignore
|
|
183
|
-
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("div", { class: `Wrapper ${this.device}` }, h("div", { class: classnames('WrapperContent', { faded: this.dialog.isOpen }) }, renderCloseBar({
|
|
192
|
+
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("div", { class: `Wrapper ${this.device} ${this.orientation}` }, h("div", { class: classnames('WrapperContent', { faded: this.dialog.isOpen, page: this.page }) }, this.page && renderCloseBar({
|
|
184
193
|
left: this.page === LeaderboardPage.list
|
|
185
|
-
? h("span", { onClick: this.openDialog.bind(this, DialogType.tip) }, iconQuestion)
|
|
186
|
-
: h("span", { onClick: this.setPage.bind(this, LeaderboardPage.list) }, iconBack),
|
|
194
|
+
? h("span", { class: 'EngagementSuiteIcon', onClick: this.openDialog.bind(this, DialogType.tip) }, iconQuestion)
|
|
195
|
+
: h("span", { class: 'EngagementSuiteIcon', onClick: this.setPage.bind(this, LeaderboardPage.list) }, iconBack),
|
|
187
196
|
middle: this.locale.Leaderboards,
|
|
188
|
-
right: h("span", { onClick: () => this.close.emit() }, iconClose)
|
|
197
|
+
right: h("span", { class: 'EngagementSuiteIcon', onClick: () => this.close.emit() }, iconClose)
|
|
189
198
|
}), h("div", { class: `Leaderboards ${this.page} ${this.page === 'list' ? 'Active' : 'Hidden'}`, ref: el => this.pageElement = el }, this.renders.page.list()), this.page === LeaderboardPage.item &&
|
|
190
|
-
h("div", { class: `Leaderboards ${this.page} ${this.page === 'item' ? 'Active' : 'Hidden'} `, ref: el => this.detailElement = el }, this.renders.page.item())), h("div", { class: "WrapperUtil" }, h("dialog", {
|
|
191
|
-
right: h("span", { onClick: () => this.closeDialog() }, iconClose)
|
|
199
|
+
h("div", { class: `Leaderboards ${this.page} ${this.page === 'item' ? 'Active' : 'Hidden'} `, ref: el => this.detailElement = el }, this.renders.page.item())), h("div", { class: "WrapperUtil" }, h("dialog", { class: `${this.dialog.type}`, open: this.dialog.isOpen }, h("div", { class: `Hollow ${this.dialog.type === 'gift' ? 'GradientRounded' : ''}` }, renderCloseBar({
|
|
200
|
+
right: h("span", { class: 'EngagementSuiteIcon', onClick: () => this.closeDialog() }, iconClose)
|
|
192
201
|
}), this.dialog.isOpen && renderDialogContent()))))));
|
|
193
202
|
}
|
|
194
203
|
openDialog(type, data = undefined, onClose = undefined) {
|
|
195
204
|
this.dialog = Object.assign(Object.assign({}, this.dialog), { isOpen: true, onClose,
|
|
196
205
|
type,
|
|
197
206
|
data });
|
|
207
|
+
if (type === DialogType.error || type === DialogType.tip) {
|
|
208
|
+
const timerId = setTimeout(() => {
|
|
209
|
+
this.dialog = Object.assign(Object.assign({}, this.dialog), { isOpen: false });
|
|
210
|
+
clearInterval(timerId);
|
|
211
|
+
}, this.tipsHideDelay);
|
|
212
|
+
}
|
|
198
213
|
}
|
|
199
214
|
closeDialog() {
|
|
200
215
|
var _a;
|
|
@@ -202,10 +217,14 @@ export class CasinoEngagementSuiteTournament {
|
|
|
202
217
|
this.dialog = Object.assign(Object.assign({}, this.dialog), { isOpen: false, onClose: undefined });
|
|
203
218
|
}
|
|
204
219
|
constructor() {
|
|
220
|
+
/**
|
|
221
|
+
* Use to move the new acknowleged tournament to top
|
|
222
|
+
*/
|
|
223
|
+
this.minOrder = -1;
|
|
205
224
|
this.gifts = [];
|
|
206
225
|
this.labels = [];
|
|
207
226
|
this.showTooltip = false;
|
|
208
|
-
this.
|
|
227
|
+
this.defaultPageSize = DEFAULT_PAGE_SIZE;
|
|
209
228
|
this.scrolledToMyLine = false;
|
|
210
229
|
this.language = 'en';
|
|
211
230
|
this.show = false;
|
|
@@ -213,7 +232,9 @@ export class CasinoEngagementSuiteTournament {
|
|
|
213
232
|
this.clientStylingUrl = '';
|
|
214
233
|
this.translationUrl = '';
|
|
215
234
|
this.device = 'Mobile';
|
|
235
|
+
this.orientation = 'Landscape';
|
|
216
236
|
this.leaderboardsInit = undefined;
|
|
237
|
+
this.tipsHideDelay = 3 * 1000;
|
|
217
238
|
this.tab = Tab.info;
|
|
218
239
|
this.locale = TRANSLATIONS;
|
|
219
240
|
this.tournamentItem = undefined;
|
|
@@ -361,6 +382,24 @@ export class CasinoEngagementSuiteTournament {
|
|
|
361
382
|
"reflect": false,
|
|
362
383
|
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
363
384
|
},
|
|
385
|
+
"orientation": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"mutable": false,
|
|
388
|
+
"complexType": {
|
|
389
|
+
"original": "\"Portrait\" | \"Landscape\"",
|
|
390
|
+
"resolved": "\"Landscape\" | \"Portrait\"",
|
|
391
|
+
"references": {}
|
|
392
|
+
},
|
|
393
|
+
"required": false,
|
|
394
|
+
"optional": false,
|
|
395
|
+
"docs": {
|
|
396
|
+
"tags": [],
|
|
397
|
+
"text": "Orientation of the widget"
|
|
398
|
+
},
|
|
399
|
+
"attribute": "orientation",
|
|
400
|
+
"reflect": false,
|
|
401
|
+
"defaultValue": "'Landscape' as 'Landscape' | 'Portrait'"
|
|
402
|
+
},
|
|
364
403
|
"leaderboardsInit": {
|
|
365
404
|
"type": "unknown",
|
|
366
405
|
"mutable": false,
|
|
@@ -381,6 +420,24 @@ export class CasinoEngagementSuiteTournament {
|
|
|
381
420
|
"tags": [],
|
|
382
421
|
"text": "Raw Leaderboards from API for Init"
|
|
383
422
|
}
|
|
423
|
+
},
|
|
424
|
+
"tipsHideDelay": {
|
|
425
|
+
"type": "number",
|
|
426
|
+
"mutable": false,
|
|
427
|
+
"complexType": {
|
|
428
|
+
"original": "number",
|
|
429
|
+
"resolved": "number",
|
|
430
|
+
"references": {}
|
|
431
|
+
},
|
|
432
|
+
"required": false,
|
|
433
|
+
"optional": false,
|
|
434
|
+
"docs": {
|
|
435
|
+
"tags": [],
|
|
436
|
+
"text": "The delay time for hiding the tips popup"
|
|
437
|
+
},
|
|
438
|
+
"attribute": "tips-hide-delay",
|
|
439
|
+
"reflect": true,
|
|
440
|
+
"defaultValue": "3 * 1000"
|
|
384
441
|
}
|
|
385
442
|
};
|
|
386
443
|
}
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { formatDate, getProgress, getTimeDifference } from "../utils/util.date";
|
|
3
3
|
import { renderGradientRoundedButton } from "./GradientRoundedButton";
|
|
4
4
|
import { LeaderboardPage } from "../utils/types";
|
|
5
|
-
import {
|
|
5
|
+
import { isTournamentEnded } from "../utils/bussiness";
|
|
6
6
|
export class CasinoEngagementSuiteTournamentTimer {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.tournament = undefined;
|
|
@@ -17,14 +17,14 @@ export class CasinoEngagementSuiteTournamentTimer {
|
|
|
17
17
|
(event.detail.page === LeaderboardPage.item && this.isDetail);
|
|
18
18
|
}
|
|
19
19
|
componentWillLoad() {
|
|
20
|
-
this.lastTimeDiff = getTimeDifference(new Date(), this.tournament.endTime);
|
|
21
20
|
this.lastProgress = getProgress(this.tournament.startTime, this.tournament.endTime);
|
|
21
|
+
this.lastTimeDiff = getTimeDifference(new Date(), this.tournament.endTime, this.lastProgress);
|
|
22
22
|
}
|
|
23
23
|
setTimeInterval() {
|
|
24
24
|
this.timeHolder = setInterval(() => {
|
|
25
|
-
const timeDifference = getTimeDifference(new Date(), this.tournament.endTime);
|
|
26
25
|
const progress = getProgress(this.tournament.startTime, this.tournament.endTime);
|
|
27
|
-
|
|
26
|
+
const timeDifference = getTimeDifference(new Date(), this.tournament.endTime, progress);
|
|
27
|
+
if (this.timeClock && !isTournamentEnded(this.tournament) &&
|
|
28
28
|
(timeDifference != this.lastTimeDiff || progress != this.lastProgress)) {
|
|
29
29
|
this.lastProgress = progress;
|
|
30
30
|
this.lastTimeDiff = timeDifference;
|
|
@@ -38,15 +38,15 @@ export class CasinoEngagementSuiteTournamentTimer {
|
|
|
38
38
|
clearInterval(this.timeHolder);
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return h("section", { key: '
|
|
41
|
+
return h("section", { key: '11426165a8f384d97f2b0158f7435f80ac0965a2', class: "TimeContainer" }, h("div", { key: 'b86c8a42a73b358fcc855a853cb322d1d314471a', class: "Time" }, this.tournament.state === 'Running'
|
|
42
42
|
? h("div", { class: "Running" }, h("div", null, this.lastTimeDiff), h("div", null, renderGradientRoundedButton({
|
|
43
43
|
statedClasses: {
|
|
44
44
|
isHollow: true,
|
|
45
|
-
|
|
45
|
+
isPending: !!this.tournament.isActionJoinPending
|
|
46
46
|
},
|
|
47
|
-
innerHTML: `${
|
|
47
|
+
innerHTML: `${this.lastProgress}%`
|
|
48
48
|
})))
|
|
49
|
-
: [h("div", { class: "NotRunning" }, formatDate(this.tournament.startTime)), h("div", null, formatDate(this.tournament.endTime))]), h("casino-engagement-suite-progress-bar", { key: '
|
|
49
|
+
: [h("div", { class: "NotRunning" }, formatDate(this.tournament.startTime)), h("div", null, formatDate(this.tournament.endTime))]), h("casino-engagement-suite-progress-bar", { key: '7f98e88679f30d0a0737d94ee806b1d92800b6a3', indeterminate: false, value: Number(this.lastProgress >= 100 ? 100 : this.lastProgress), "hide-percent": true }));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "tournament-timer"; }
|
|
52
52
|
static get properties() {
|
|
@@ -56,7 +56,7 @@ export class CasinoEngagementSuiteTournamentTimer {
|
|
|
56
56
|
"mutable": false,
|
|
57
57
|
"complexType": {
|
|
58
58
|
"original": "Tournament",
|
|
59
|
-
"resolved": "{ href: string; id: string; nameOrTitle: string; description: string; termsUrl: string; thumbnail: string; thumbnails: []; startTime: Date; endTime: Date; closeTime: Date; exhibitionStartTime: Date; exhibitionEndTime: Date; state: TournamentState; tags: string; minBetCount: number; dataSource: string; scoreCriteria: string; wallets: { code: string; }; prizes: { rank: number; count: number; name: string; }[]; games?: TournamentGame[]; playerEnrolled?: boolean; isPlayerAcknowledged?: boolean; isActionJoinPending?: boolean; isUnjoined?: boolean; }",
|
|
59
|
+
"resolved": "{ href: string; id: string; nameOrTitle: string; description: string; termsUrl: string; thumbnail: string; thumbnails: []; startTime: Date; endTime: Date; closeTime: Date; exhibitionStartTime: Date; exhibitionEndTime: Date; state: TournamentState; tags: string; minBetCount: number; dataSource: string; scoreCriteria: string; wallets: { code: string; }; prizes: { rank: number; count: number; name: string; }[]; games?: TournamentGame[]; playerEnrolled?: boolean; isPlayerAcknowledged?: boolean; isActionJoinPending?: boolean; isUnjoined?: boolean; isTriggered?: boolean; order?: number; }",
|
|
60
60
|
"references": {
|
|
61
61
|
"Tournament": {
|
|
62
62
|
"location": "import",
|