@everymatrix/casino-engagement-suite-tournament 1.60.1 → 1.61.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-10e1f844.entry.js → p-2dd35709.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-2de8ee45.js +15 -0
- package/dist/casino-engagement-suite-tournament/{p-7dd52ef4.js → p-bfca9e2a.js} +2 -2
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +2 -2
- package/dist/cjs/{casino-engagement-suite-tournament-9276045b.js → casino-engagement-suite-tournament-49cebf14.js} +163 -55
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-9b5a5304.js → index-982cd594.js} +5 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/reward.svg +11 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +135 -32
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +67 -9
- package/dist/collection/shared/icons.js +2 -1
- package/dist/collection/shared/renders.dialog.js +2 -2
- package/dist/collection/shared/renders.page.js +11 -9
- package/dist/collection/shared/renders.tab.js +4 -2
- package/dist/collection/shared/renders.util.js +3 -4
- package/dist/collection/utils/api.apdater.js +1 -1
- package/dist/collection/utils/bussiness.js +15 -0
- package/dist/collection/utils/message.js +37 -20
- package/dist/collection/utils/translations.js +1 -1
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/utils.js +38 -1
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +2 -2
- package/dist/esm/{casino-engagement-suite-tournament-e9186545.js → casino-engagement-suite-tournament-bd7c9cdd.js} +163 -55
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-e8e1e68e.js → index-ac437a77.js} +5 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +24 -9
- package/dist/types/utils/api.apdater.d.ts +3 -1
- package/dist/types/utils/bussiness.d.ts +15 -1
- package/dist/types/utils/message.d.ts +4 -1
- package/dist/types/utils/translations.d.ts +2 -0
- package/dist/types/utils/types.d.ts +21 -3
- package/dist/types/utils/utils.d.ts +6 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-94a5935e.js +0 -15
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/storybook/main.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/storybook/preview.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-982cd594.js');
|
|
4
4
|
require('@everymatrix/general-animation-loading/dist');
|
|
5
5
|
|
|
6
6
|
/*! *****************************************************************************
|
|
@@ -56,10 +56,10 @@ const TRANSLATIONS = Object.assign(Object.assign(Object.assign({ Join: 'Join', U
|
|
|
56
56
|
Tile: 'Congratulations!',
|
|
57
57
|
Description: 'You won <span>{tournamentName}</span>!',
|
|
58
58
|
ButtonContinue: 'Continue'
|
|
59
|
-
}, 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>', 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!' });
|
|
59
|
+
}, 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>', 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!', FailedToJoin: 'Oops! some unexpected error happened, please try it again.', FailedToUnjoin: 'Oops! some unexpected error happened, please try it again.' });
|
|
60
60
|
|
|
61
61
|
const classnames = (...args) => {
|
|
62
|
-
let classnameArray = [];
|
|
62
|
+
let classnameArray = ['Tab'];
|
|
63
63
|
args.map((arg) => {
|
|
64
64
|
switch (typeof arg) {
|
|
65
65
|
case 'string':
|
|
@@ -108,6 +108,33 @@ const truncateNumber = (value, decimals, isInteger = false) => {
|
|
|
108
108
|
// Return string representation with fixed decimals to preserve trailing zeros
|
|
109
109
|
return truncated.toFixed(decimals);
|
|
110
110
|
};
|
|
111
|
+
const getDevice = () => {
|
|
112
|
+
let userAgent = window.navigator.userAgent;
|
|
113
|
+
if (userAgent.toLowerCase().match(/android/i)) {
|
|
114
|
+
return 'Android';
|
|
115
|
+
}
|
|
116
|
+
if (userAgent.toLowerCase().match(/iphone/i)) {
|
|
117
|
+
return 'iPhone';
|
|
118
|
+
}
|
|
119
|
+
if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
|
|
120
|
+
return 'iPad';
|
|
121
|
+
}
|
|
122
|
+
return 'PC';
|
|
123
|
+
};
|
|
124
|
+
const getDevicePlatform = () => {
|
|
125
|
+
const device = getDevice();
|
|
126
|
+
if (device) {
|
|
127
|
+
if (device === 'PC') {
|
|
128
|
+
return 'dk';
|
|
129
|
+
}
|
|
130
|
+
else if (device === 'iPad' || device === 'iPhone') {
|
|
131
|
+
return 'ios';
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
return 'mtWeb';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
111
138
|
|
|
112
139
|
var LeaderboardPage;
|
|
113
140
|
(function (LeaderboardPage) {
|
|
@@ -126,6 +153,7 @@ var DialogType;
|
|
|
126
153
|
DialogType["unjoin"] = "unjoin";
|
|
127
154
|
DialogType["tip"] = "tip";
|
|
128
155
|
DialogType["gift"] = "gift";
|
|
156
|
+
DialogType["error"] = "error";
|
|
129
157
|
})(DialogType || (DialogType = {}));
|
|
130
158
|
|
|
131
159
|
const getMaxRankStr = (list) => {
|
|
@@ -156,12 +184,14 @@ const isTournamentClosed = (tournament) => {
|
|
|
156
184
|
return [TournamentState.Closed, TournamentState.Closing].includes(tournament.state);
|
|
157
185
|
};
|
|
158
186
|
|
|
187
|
+
const rewardSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzIxMTVfMzA2KSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNC45MDI5MiAwLjY2NjQ5NkM0LjkyMzM5IDAuNjY2NTc5IDQuOTQzNCAwLjY2NjY2IDQuOTYyODYgMC42NjY2NkgxMS4wMzY5QzExLjA1NjQgMC42NjY2NiAxMS4wNzY0IDAuNjY2NTc5IDExLjA5NjkgMC42NjY0OTZDMTEuMzA1NiAwLjY2NTY1MyAxMS41NjI3IDAuNjY0NjEzIDExLjc4OTMgMC43NDcwN0MxMi4xNTk2IDAuODgxODY4IDEyLjQ1MTQgMS4xNzM2MSAxMi41ODYyIDEuNTQzOTdDMTIuNjM5NCAxLjY5MDMxIDEyLjY1NzggMS44NDk0MiAxMi42NjQgMS45OTk5OUwxMy42ODQyIDEuOTk5OTlDMTMuODI0MiAxLjk5OTk4IDEzLjk2MDcgMS45OTk5NiAxNC4wNzY3IDIuMDA3ODhDMTQuMjAzNiAyLjAxNjU0IDE0LjM1NDEgMi4wMzY4NiAxNC41MTAxIDIuMTAxNDlDMTQuODM2OCAyLjIzNjgxIDE1LjA5NjQgMi40OTYzOCAxNS4yMzE3IDIuODIzMDhDMTUuMjk2NCAyLjk3OTExIDE1LjMxNjcgMy4xMjk1OSAxNS4zMjUzIDMuMjU2NTFDMTUuMzMzMyAzLjM3MjU2IDE1LjMzMzIgMy41MDg5OCAxNS4zMzMyIDMuNjQ5MDFWMy45OTk5OUMxNS4zMzMyIDQuMDMxMDIgMTUuMzMzMyA0LjA2MTU4IDE1LjMzMzMgNC4wOTE3MUMxNS4zMzM2IDQuNjIxOTcgMTUuMzMzOCA1LjAxNTc0IDE1LjI0MjQgNS4zNTY4NEMxNC45OTU4IDYuMjc3MDkgMTQuMjc3IDYuOTk1ODggMTMuMzU2OCA3LjI0MjQ2QzEzLjEwMyA3LjMxMDQ0IDEyLjgyMDIgNy4zMjc3NCAxMi40NzM3IDcuMzMyMDNDMTEuOTYxOCA5LjA1MzkzIDEwLjQ4MjkgMTAuMzU5NiA4LjY2NjU3IDEwLjYxOTRWMTEuMzMzM0g4Ljk2Mjg2QzEwLjY0MDIgMTEuMzMzMyAxMS45OTk5IDEyLjY5MzEgMTEuOTk5OSAxNC4zNzA0QzExLjk5OTkgMTQuOTAyMiAxMS41Njg4IDE1LjMzMzMgMTEuMDM2OSAxNS4zMzMzSDQuOTYyODZDNC40MzEwMyAxNS4zMzMzIDMuOTk5OSAxNC45MDIyIDMuOTk5OSAxNC4zNzA0QzMuOTk5OSAxMi42OTMxIDUuMzU5NjMgMTEuMzMzMyA3LjAzNjk0IDExLjMzMzNINy4zMzMyM1YxMC42MTk0QzUuNTE2OTMgMTAuMzU5NiA0LjAzODAyIDkuMDUzOTMgMy41MjYxIDcuMzMyMDNDMy4xNzk2MiA3LjMyNzc0IDIuODk2NzYgNy4zMTA0NCAyLjY0MzA1IDcuMjQyNDZDMS43MjI4MSA2Ljk5NTg4IDEuMDA0MDEgNi4yNzcwOSAwLjc1NzQzMyA1LjM1Njg0QzAuNjY2MDM1IDUuMDE1NzQgMC42NjYyNDggNC42MjE5NyAwLjY2NjUzNSA0LjA5MTcxQzAuNjY2NTUyIDQuMDYxNTkgMC42NjY1NjggNC4wMzEwMiAwLjY2NjU2OCAzLjk5OTk5VjMuNjY2NjZDMC42NjY1NjggMy42NjA3NyAwLjY2NjU2OCAzLjY1NDg5IDAuNjY2NTY3IDMuNjQ5MDFDMC42NjY1NTMgMy41MDg5OCAwLjY2NjU0IDMuMzcyNTYgMC42NzQ0NTggMy4yNTY1MUMwLjY4MzExNyAzLjEyOTU5IDAuNzAzNDMzIDIuOTc5MTEgMC43NjgwNjIgMi44MjMwOEMwLjkwMzM4NyAyLjQ5NjM4IDEuMTYyOTUgMi4yMzY4MSAxLjQ4OTY2IDIuMTAxNDlDMS42NDU2OSAyLjAzNjg2IDEuNzk2MTcgMi4wMTY1NCAxLjkyMzA4IDIuMDA3ODhDMi4wMzkxNCAxLjk5OTk2IDIuMTc1NTYgMS45OTk5OCAyLjMxNTU5IDEuOTk5OTlDMi4zMjE0NiAxLjk5OTk5IDIuMzI3MzUgMS45OTk5OSAyLjMzMzIzIDEuOTk5OTlIMy4zMzU4MUMzLjM0MTk2IDEuODQ5NDIgMy4zNjAzOCAxLjY5MDMxIDMuNDEzNjQgMS41NDM5N0MzLjU0ODQ0IDEuMTczNjEgMy44NDAxOSAwLjg4MTg2OCA0LjIxMDU0IDAuNzQ3MDdDNC40MzcwOSAwLjY2NDYxMyA0LjY5NDIxIDAuNjY1NjUzIDQuOTAyOTIgMC42NjY0OTZaTTMuMzMzMjMgMy4zMzMzM0gyLjMzMzIzQzIuMTY4OCAzLjMzMzMzIDIuMDc4ODYgMy4zMzM2OSAyLjAxMzg1IDMuMzM4MTJDMi4wMTA4MiAzLjMzODMzIDIuMDA3OTggMy4zMzg1NCAyLjAwNTMyIDMuMzM4NzVDMi4wMDUxMSAzLjM0MTQxIDIuMDA0OSAzLjM0NDI1IDIuMDA0NyAzLjM0NzI3QzIuMDAwMjYgMy40MTIyOSAxLjk5OTkgMy41MDIyMiAxLjk5OTkgMy42NjY2NlYzLjk5OTk5QzEuOTk5OSA0LjY2MjkgMi4wMDU2MyA0Ljg2MzU3IDIuMDQ1MzMgNS4wMTE3NUMyLjE2ODYyIDUuNDcxODcgMi41MjgwMiA1LjgzMTI3IDIuOTg4MTQgNS45NTQ1NkMzLjA2NzM0IDUuOTc1NzggMy4xNjE1MiA1Ljk4NzMgMy4zMzMyMyA1Ljk5MzQyVjMuMzMzMzNaTTQuNjY2NTcgMi4yOTYyOUM0LjY2NjU3IDIuMTUwMjUgNC42NjY4NSAyLjA3MDM5IDQuNjcwMzcgMi4wMTI0OUM0LjY3MDU1IDIuMDA5NTggNC42NzA3MiAyLjAwNjg3IDQuNjcwOSAyLjAwNDMzQzQuNjczNDQgMi4wMDQxNSA0LjY3NjE2IDIuMDAzOTcgNC42NzkwNyAyLjAwMzc5QzQuNzM2OTcgMi4wMDAyOCA0LjgxNjgzIDEuOTk5OTkgNC45NjI4NiAxLjk5OTk5SDExLjAzNjlDMTEuMTgzIDEuOTk5OTkgMTEuMjYyOCAyLjAwMDI4IDExLjMyMDcgMi4wMDM3OUMxMS4zMjM2IDIuMDAzOTcgMTEuMzI2NCAyLjAwNDE1IDExLjMyODkgMi4wMDQzM0MxMS4zMjkxIDIuMDA2ODYgMTEuMzI5MyAyLjAwOTU5IDExLjMyOTQgMi4wMTI0OUMxMS4zMzI5IDIuMDcwMzkgMTEuMzMzMiAyLjE1MDI1IDExLjMzMzIgMi4yOTYyOVY1Ljk5OTk5QzExLjMzMzIgNy44NDA5NCA5Ljg0MDg1IDkuMzMzMzMgNy45OTk5IDkuMzMzMzNDNi4xNTg5NSA5LjMzMzMzIDQuNjY2NTcgNy44NDA5NCA0LjY2NjU3IDUuOTk5OTlWMi4yOTYyOVpNMTIuNjY2NiAzLjMzMzMzVjUuOTkzNDJDMTIuODM4MyA1Ljk4NzMgMTIuOTMyNSA1Ljk3NTc4IDEzLjAxMTcgNS45NTQ1NkMxMy40NzE4IDUuODMxMjcgMTMuODMxMiA1LjQ3MTg3IDEzLjk1NDUgNS4wMTE3NUMxMy45OTQyIDQuODYzNTcgMTMuOTk5OSA0LjY2MjkgMTMuOTk5OSAzLjk5OTk5VjMuNjY2NjZDMTMuOTk5OSAzLjUwMjIyIDEzLjk5OTUgMy40MTIyOSAxMy45OTUxIDMuMzQ3MjdDMTMuOTk0OSAzLjM0NDI1IDEzLjk5NDcgMy4zNDE0MSAxMy45OTQ1IDMuMzM4NzVDMTMuOTkxOCAzLjMzODU0IDEzLjk4OSAzLjMzODMzIDEzLjk4NiAzLjMzODEyQzEzLjkyMDkgMy4zMzM2OSAxMy44MzEgMy4zMzMzMyAxMy42NjY2IDMuMzMzMzNIMTIuNjY2NlpNNy4wMzY5NCAxMi42NjY3QzYuMjIzMiAxMi42NjY3IDUuNTQyNzEgMTMuMjM3MiA1LjM3MzYxIDE0SDEwLjYyNjJDMTAuNDU3MSAxMy4yMzcyIDkuNzc2NiAxMi42NjY3IDguOTYyODYgMTIuNjY2N0g3LjAzNjk0WiIgZmlsbD0iIzhGOEI5QyIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzIxMTVfMzA2Ij4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+CjxzY3JpcHQgeG1sbnM9IiIvPgo8L3N2Zz4K';
|
|
188
|
+
|
|
159
189
|
const iconClose = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg" });
|
|
160
190
|
const iconQuestion = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/help.svg" });
|
|
161
191
|
const iconEyeOpen = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg" });
|
|
162
192
|
const iconEyeClose = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg" });
|
|
163
193
|
const iconBack = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg" });
|
|
164
|
-
const iconReward = index.h("img", { src: "
|
|
194
|
+
const iconReward = index.h("img", { src: rewardSvg, alt: "reward", class: "Reward" });
|
|
165
195
|
const iconTrophy = index.h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg" });
|
|
166
196
|
|
|
167
197
|
const renderGradientRoundedButton = (_a) => {
|
|
@@ -180,7 +210,7 @@ var GradientButton;
|
|
|
180
210
|
GradientButton["unjoinYes"] = "unjoinYes";
|
|
181
211
|
GradientButton["unjoinNo"] = "unjoinNo";
|
|
182
212
|
})(GradientButton || (GradientButton = {}));
|
|
183
|
-
const renderButton = (instance, buttonType) => {
|
|
213
|
+
const renderButton = (instance, buttonType, isActionJoinPending = false) => {
|
|
184
214
|
const { locale } = instance;
|
|
185
215
|
const buttonCollector = {
|
|
186
216
|
normal: {
|
|
@@ -199,7 +229,7 @@ const renderButton = (instance, buttonType) => {
|
|
|
199
229
|
};
|
|
200
230
|
const props = buttonCollector[buttonType];
|
|
201
231
|
return renderGradientRoundedButton({
|
|
202
|
-
statedClasses: Object.assign({ isPending:
|
|
232
|
+
statedClasses: Object.assign({ isPending: isActionJoinPending }, props.statedClasses),
|
|
203
233
|
onClick: () => {
|
|
204
234
|
var _a;
|
|
205
235
|
(_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call();
|
|
@@ -256,7 +286,7 @@ const leaderboardsAdapter = (leaderboardRes) => {
|
|
|
256
286
|
return leaderboards;
|
|
257
287
|
}
|
|
258
288
|
return leaderboards.map((leaderboard) => {
|
|
259
|
-
if (item && item.
|
|
289
|
+
if ((item === null || item === void 0 ? void 0 : item.userId) && item.userId === leaderboard.userId) {
|
|
260
290
|
return Object.assign(Object.assign({}, leaderboard), { isMe: true });
|
|
261
291
|
}
|
|
262
292
|
else {
|
|
@@ -305,26 +335,42 @@ const renderTimeBar = (tournament) => {
|
|
|
305
335
|
return (index.h("section", { class: "TimeContainer" },
|
|
306
336
|
index.h("div", { class: "Time" }, tournament.state === 'Running'
|
|
307
337
|
? [
|
|
308
|
-
index.h("div",
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
338
|
+
index.h("div", { class: 'Running' },
|
|
339
|
+
index.h("div", null, getTimeDifference(new Date(), tournament.endTime)),
|
|
340
|
+
",",
|
|
341
|
+
index.h("div", null, renderGradientRoundedButton({
|
|
342
|
+
statedClasses: {
|
|
343
|
+
isHollow: true,
|
|
344
|
+
isPendding: false
|
|
345
|
+
},
|
|
346
|
+
innerHTML: `${getProgress(tournament.startTime, tournament.endTime)}%`
|
|
347
|
+
})))
|
|
316
348
|
]
|
|
317
|
-
: [index.h("div",
|
|
349
|
+
: [index.h("div", { class: 'NotRunning' }, formatDate(tournament.startTime)), index.h("div", null, formatDate(tournament.endTime))]),
|
|
318
350
|
index.h("casino-engagement-suite-progress-bar", { value: Number(getProgress(tournament.startTime, tournament.endTime)), "hide-percent": true })));
|
|
319
351
|
};
|
|
320
352
|
|
|
321
353
|
const messageSender = {
|
|
354
|
+
InitTournamentList: (queryParams) => {
|
|
355
|
+
window.postMessage(Object.assign({ type: 'InitTournamentList' }, queryParams));
|
|
356
|
+
},
|
|
357
|
+
post: (options) => {
|
|
358
|
+
window.postMessage(Object.assign({}, options));
|
|
359
|
+
},
|
|
322
360
|
UpdateSuiteBarState: (labels) => window.postMessage({ type: 'UpdateLeaderboardState', labels }),
|
|
323
|
-
JoinTournamentReq: (tournament) => {
|
|
361
|
+
JoinTournamentReq: (tournament) => {
|
|
362
|
+
var _a, _b;
|
|
363
|
+
return window.postMessage({
|
|
364
|
+
type: 'JoinTournamentReq',
|
|
365
|
+
id: tournament.id,
|
|
366
|
+
bonusCode: tournament.id || ((_b = (_a = tournament.wallets) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.code)
|
|
367
|
+
});
|
|
368
|
+
},
|
|
324
369
|
UnjoinTournamentReq: (tournament) => window.postMessage({ type: 'UnjoinTournamentReq', id: tournament.id }),
|
|
325
370
|
UpdateTournamentsItemReq: (tournament) => window.postMessage({ type: 'UpdateTournamentsItemReq', id: tournament.id }),
|
|
326
371
|
UpdateLeaderboardsReq: (tournament, query) => window.postMessage({ type: 'UpdateLeaderboardsReq', id: tournament.id, query }),
|
|
327
|
-
UpdateLeaderboardsPlayerReq: () => window.postMessage({ type: 'UpdateLeaderboardsPlayerReq' })
|
|
372
|
+
UpdateLeaderboardsPlayerReq: () => window.postMessage({ type: 'UpdateLeaderboardsPlayerReq' }),
|
|
373
|
+
GameClickReq: (game) => window.postMessage({ type: 'EngagementSuiteGameRedirect', data: { Slug: game.slug } }),
|
|
328
374
|
};
|
|
329
375
|
const messageReceiver = (instance) => {
|
|
330
376
|
const receiver = {
|
|
@@ -340,15 +386,13 @@ const messageReceiver = (instance) => {
|
|
|
340
386
|
instance.tournamentItem = tournamentNew;
|
|
341
387
|
updateTournamentListByItem(instance, tournamentNew);
|
|
342
388
|
},
|
|
343
|
-
UpdateLeaderboardsRes: (rest) =>
|
|
344
|
-
instance.leaderboards = leaderboardsAdapter(rest.data);
|
|
345
|
-
},
|
|
389
|
+
UpdateLeaderboardsRes: (rest) => processLeaderboardTableData(instance, rest),
|
|
346
390
|
JoinTournamentRes: (rest) => commonJoinRes(instance, rest),
|
|
347
391
|
UnjoinTournamentRes: (rest) => commonJoinRes(instance, rest),
|
|
348
392
|
// listen to LeaderboardLiveEvent event, handle update
|
|
349
393
|
LeaderboardLiveEvent: (rest) => {
|
|
350
394
|
handleLeaderboardLiveEvent(instance, rest);
|
|
351
|
-
}
|
|
395
|
+
},
|
|
352
396
|
};
|
|
353
397
|
return receiver;
|
|
354
398
|
};
|
|
@@ -426,25 +470,30 @@ const handleLeaderboardLiveEvent = (instance, rest) => {
|
|
|
426
470
|
}
|
|
427
471
|
}
|
|
428
472
|
};
|
|
473
|
+
const showErrorMessage = (instance, type) => {
|
|
474
|
+
instance.dialog = Object.assign(Object.assign({}, instance.dialog), { isOpen: true, type });
|
|
475
|
+
};
|
|
429
476
|
const commonJoinRes = (instance, rest) => {
|
|
430
|
-
const { success } = rest;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
updateTournamentListByItem(instance, instance.tournamentItem);
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
477
|
+
const { success, data } = rest;
|
|
478
|
+
let tournamentIdx = instance.tournamentList.findIndex((tournament) => tournament.id === (data.tournamentId || data.id || data.bonusCode)), current = instance.tournamentList[tournamentIdx];
|
|
479
|
+
current.isActionJoinPending = false;
|
|
480
|
+
if (!success) {
|
|
481
|
+
instance.tournamentList[tournamentIdx] = current;
|
|
482
|
+
instance.tournamentList = [...instance.tournamentList];
|
|
483
|
+
showErrorMessage(instance, DialogType.error);
|
|
484
|
+
return;
|
|
442
485
|
}
|
|
486
|
+
current = Object.assign(Object.assign({}, current), { isUnjoined: current.isPlayerAcknowledged ? true : false, isPlayerAcknowledged: !!!current.isPlayerAcknowledged });
|
|
487
|
+
instance.tournamentList[tournamentIdx] = current;
|
|
488
|
+
instance.tournamentList = [...instance.tournamentList];
|
|
443
489
|
if (instance.nextPage) {
|
|
444
490
|
instance.setPage(instance.nextPage);
|
|
445
491
|
instance.nextPage = undefined;
|
|
446
492
|
}
|
|
447
|
-
|
|
493
|
+
};
|
|
494
|
+
const processLeaderboardTableData = (instance, rest) => {
|
|
495
|
+
instance.leaderboards = leaderboardsAdapter(rest.data);
|
|
496
|
+
instance.currentPlyerRank = rest.data.item ? rest.data.item.rank : -1;
|
|
448
497
|
};
|
|
449
498
|
const updateTournamentListByItem = (instance, tournament) => {
|
|
450
499
|
instance.tournamentList = instance.tournamentList.map((_tournament) => {
|
|
@@ -472,7 +521,7 @@ const updateOrAddTournamentToList = (instance, tournament) => {
|
|
|
472
521
|
const page = {
|
|
473
522
|
list(instance) {
|
|
474
523
|
var _a;
|
|
475
|
-
if (!instance.tournamentList) {
|
|
524
|
+
if (!(instance === null || instance === void 0 ? void 0 : instance.tournamentList)) {
|
|
476
525
|
instance.tournamentList = (_a = instance.leaderboardsInit) === null || _a === void 0 ? void 0 : _a.map((item) => tournamentAdapter(item));
|
|
477
526
|
return index.h("general-animation-loading", null);
|
|
478
527
|
}
|
|
@@ -482,7 +531,7 @@ const page = {
|
|
|
482
531
|
instance.setPage(LeaderboardPage.item, { tournament });
|
|
483
532
|
instance.newIdList = instance.newIdList.filter((id) => id !== tournament.id);
|
|
484
533
|
};
|
|
485
|
-
return renderLeaderboardContainer(instance, index.h("div", { class:
|
|
534
|
+
return renderLeaderboardContainer(instance, index.h("div", { class: 'Leaderboards Row' }, instance.tournamentList.map((_tournament) => (index.h("div", { class: classnames('LeaderboardsItem', _tournament.isPlayerAcknowledged ? ' GradientRounded Hollow' : '', _tournament.isUnjoined ? 'Unjoined' : ''), onClick: () => onClickListItemChangePage(_tournament) },
|
|
486
535
|
index.h("div", { class: "LeaderboardsItemContainer" },
|
|
487
536
|
renderTitleContainer(instance, _tournament),
|
|
488
537
|
renderTimeBar(_tournament)),
|
|
@@ -491,8 +540,8 @@ const page = {
|
|
|
491
540
|
}
|
|
492
541
|
else {
|
|
493
542
|
return renderLeaderboardContainer(instance, index.h("div", { class: "NoLeaderboards Row" },
|
|
494
|
-
index.h("
|
|
495
|
-
index.h("div",
|
|
543
|
+
index.h("h3", { class: 'Title' }, locale.NoLeaderboards),
|
|
544
|
+
index.h("div", { class: 'message' }, locale.NoLeaderboardsTip)));
|
|
496
545
|
}
|
|
497
546
|
},
|
|
498
547
|
item(instance) {
|
|
@@ -519,7 +568,7 @@ const page = {
|
|
|
519
568
|
return renderLeaderboardContainer(instance, [
|
|
520
569
|
renderTitleContainer(instance, instance.tournamentItem),
|
|
521
570
|
renderTabs(),
|
|
522
|
-
instance.renders.tab[instance.tab]()
|
|
571
|
+
index.h("div", { class: `TableContentWrapper ${instance.tab}` }, instance.renders.tab[instance.tab]())
|
|
523
572
|
]);
|
|
524
573
|
}
|
|
525
574
|
};
|
|
@@ -539,11 +588,11 @@ const renderTitleContainer = (instance, tournament) => {
|
|
|
539
588
|
tournament.state !== TournamentState.Closed && (index.h("div", null, renderGradientRoundedButton({
|
|
540
589
|
statedClasses: {
|
|
541
590
|
isHollow: tournament.isPlayerAcknowledged,
|
|
542
|
-
isPending:
|
|
591
|
+
isPending: tournament.isActionJoinPending
|
|
543
592
|
},
|
|
544
593
|
onClick: (e) => {
|
|
545
594
|
e.stopPropagation();
|
|
546
|
-
if (!
|
|
595
|
+
if (!tournament.isActionJoinPending) {
|
|
547
596
|
onClickItemJoin(tournament);
|
|
548
597
|
}
|
|
549
598
|
},
|
|
@@ -558,9 +607,11 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
558
607
|
const renderDialogContent = () => {
|
|
559
608
|
switch (instance.dialog.type) {
|
|
560
609
|
case DialogType.unjoin:
|
|
561
|
-
return instance.renders.dialog.unjoin();
|
|
610
|
+
return instance.renders.dialog.unjoin();
|
|
562
611
|
case DialogType.tip:
|
|
563
612
|
return index.h("div", { class: "Tip" }, instance.locale.Tip);
|
|
613
|
+
case DialogType.error:
|
|
614
|
+
return index.h("div", { class: "Tip Error" }, instance.locale.FailedToJoin);
|
|
564
615
|
case DialogType.gift:
|
|
565
616
|
return instance.renders.dialog.gift();
|
|
566
617
|
}
|
|
@@ -570,7 +621,9 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
570
621
|
switch (page) {
|
|
571
622
|
case LeaderboardPage.list:
|
|
572
623
|
return {
|
|
573
|
-
left: index.h("span", { onClick: () => instance.openDialog(DialogType.tip) },
|
|
624
|
+
left: index.h("span", { onClick: () => instance.openDialog(DialogType.tip), onMouseEnter: () => { instance.showTooltip = true; }, onMouseLeave: () => { instance.showTooltip = false; }, ref: (el) => instance.tooltipIconReference = el },
|
|
625
|
+
iconQuestion,
|
|
626
|
+
instance.renderTooltip()),
|
|
574
627
|
middle: locale.Leaderboards
|
|
575
628
|
};
|
|
576
629
|
case LeaderboardPage.item:
|
|
@@ -594,7 +647,7 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
594
647
|
index.h("div", { class: "Root" },
|
|
595
648
|
index.h("div", { class: "Main" }, render))),
|
|
596
649
|
index.h("div", { class: "WrapperUtil" },
|
|
597
|
-
index.h("dialog", { open: isOpen },
|
|
650
|
+
index.h("dialog", { open: isOpen, style: { 'top': instance.getContainerScrollTop() + 'px' } },
|
|
598
651
|
index.h("div", { class: "GradientRounded Hollow" },
|
|
599
652
|
renderBar,
|
|
600
653
|
isOpen && renderDialogContent())))));
|
|
@@ -607,12 +660,12 @@ const tab = {
|
|
|
607
660
|
return (index.h("div", { class: "InfoContainer" },
|
|
608
661
|
renderTimeBar(tournament),
|
|
609
662
|
index.h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) },
|
|
610
|
-
index.h("
|
|
611
|
-
index.h("span", null, isShowInfo ?
|
|
663
|
+
index.h("div", { class: 'DetailHeader' },
|
|
664
|
+
index.h("span", null, isShowInfo ? iconEyeOpen : iconEyeClose),
|
|
612
665
|
index.h("span", null, locale.LeaderboardDetails))),
|
|
613
666
|
index.h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` },
|
|
614
667
|
isShowInfo && (index.h("section", { class: "Info" },
|
|
615
|
-
index.h("div",
|
|
668
|
+
index.h("div", { class: 'Description' }, tournament.description),
|
|
616
669
|
index.h("div", { class: "Criterias" },
|
|
617
670
|
index.h("div", null,
|
|
618
671
|
locale.ScoreCriteria,
|
|
@@ -656,7 +709,9 @@ const tab = {
|
|
|
656
709
|
},
|
|
657
710
|
games(instance) {
|
|
658
711
|
var _a;
|
|
659
|
-
return (index.h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map((game) => (index.h("div",
|
|
712
|
+
return (index.h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map((game) => (index.h("div", { class: 'Game', onClick: () => {
|
|
713
|
+
instance.onGameClick(game);
|
|
714
|
+
} },
|
|
660
715
|
index.h("img", { src: game.defaultThumbnail, alt: "" }))))));
|
|
661
716
|
}
|
|
662
717
|
};
|
|
@@ -673,7 +728,7 @@ const renders = {
|
|
|
673
728
|
tab
|
|
674
729
|
};
|
|
675
730
|
|
|
676
|
-
const casinoEngagementSuiteTournamentCss = ".Wrapper{height:100%;position:relative;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:24px;overflow-y:auto}.Wrapper.Mobile{border-radius:16px}.WrapperContent{padding-bottom:20px;transition:0.5s filter}.WrapperContent.faded{filter:brightness(53.3333333333%)}.Wrapper.Mobile .WrapperBar{padding:20px 8px 8px;margin-bottom:8px}.WrapperBar{display:flex;width:100%;padding:32px 20px 20px;margin-bottom:20px}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 12px);font-family:Inter}.Row{margin:24px 0;padding:0 20px}.Row:first-child{margin:0}.LeaderboardsItem{position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.Info{margin:24px 0;padding:0 20px}.TimeContainer{margin:24px 0;padding:0 20px}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 12px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 12px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.ShowInfo{margin:24px 0;padding:0 20px;cursor:pointer;color:rgb(102, 97, 120)}.ShowInfo p{display:flex;gap:4px}.TitleContainer{display:flex;justify-content:space-between;margin:24px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat}.TitleContainer .GradientRoundedButton{width:120px}.TabsContainer{margin:24px 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, 12px);margin-bottom:-1px}.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-medium, 16px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:12px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:12px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:24px 0;padding:0 20px}.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{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{width:12px}.PrizesHeader .PrizesText{margin-left:3px;font-weight:600}.Prizes{margin:24px 0;padding:0 20px;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;max-height:300px;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 .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards td{opacity:0.6;padding:20px 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:#FFD029;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:24px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:24px 0;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:4px 7.25px}.Games img{width:60px}dialog{position:absolute;top:30px;width:100%;height:100%;background:transparent;border:0;padding:0;color:var(--emw--color-typography, #FFFFFF)}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}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;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:10px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.PageConfirmContainer{text-align:center;width:80%;margin:0 auto}.PageConfirm{padding:40px 32px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 20px);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}.PageConfirmButtonsGroup{width:150px;margin:0 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-small, 14px);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}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}";
|
|
731
|
+
const casinoEngagementSuiteTournamentCss = ".Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{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}.Wrapper{position:relative;min-height:100%;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:24px}.Wrapper.Mobile{border-radius:16px}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 278px);overflow-y:auto}.WrapperContent{padding-bottom:20px;transition:0.5s filter}.WrapperContent.faded{filter:brightness(53.3333333333%)}.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:20px 8px 8px;margin-bottom:8px}.WrapperBar{display:flex;width:100%;padding:32px 20px 20px;margin-bottom:20px}.WrapperBar .WrapperBarLeft span{position:relative}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 12px);font-family:Inter}.Row{margin:10px 0;padding:0 20px}.Row:first-child{margin:0}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.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, 12px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 12px);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}.TitleContainer .GradientRoundedButton{width:120px}.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, 12px);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-medium, 16px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:12px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:12px 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:12px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;max-height:300px;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 .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:15px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{padding-left:15px;margin-top: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);border:1px solid var(--emw--color-primary, rgb(255, 214, 47))}.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;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:start;margin:20px auto}.Games .Game{cursor:pointer;width:25%;display:flex;padding:5px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25))}.Games img{width:100%;height:fit-content}dialog{position:absolute;top:30px;width:100%;height:max-content;background:transparent;border:0;padding:0;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}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;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:10px;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%;margin:0 auto}.PageConfirm{padding:40px 32px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 20px);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}.PageConfirmButtonsGroup{width:150px;margin:0 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-small, 14px);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}.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}}";
|
|
677
732
|
const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;
|
|
678
733
|
|
|
679
734
|
const CasinoEngagementSuiteTournament = class {
|
|
@@ -741,17 +796,57 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
741
796
|
this.removeLabel('win');
|
|
742
797
|
}
|
|
743
798
|
}
|
|
799
|
+
getContainerScrollTop() {
|
|
800
|
+
return this.page === LeaderboardPage.list ? this.containerScrollTop : this.detailElement.clientHeight / 2 - 250;
|
|
801
|
+
}
|
|
802
|
+
handleClickOutside(event) {
|
|
803
|
+
if (event.composedPath()[0] === this.tooltipIconReference)
|
|
804
|
+
return;
|
|
805
|
+
if (event.composedPath()[0] !== this.tooltipReference)
|
|
806
|
+
this.showTooltip = false;
|
|
807
|
+
}
|
|
808
|
+
componentDidLoad() {
|
|
809
|
+
this.pageElement.addEventListener('scroll', (event) => {
|
|
810
|
+
this.containerScrollTop = event.target.scrollTop + event.target.clientHeight / 2 - 250;
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
renderTooltip() {
|
|
814
|
+
if (this.showTooltip) {
|
|
815
|
+
return (index.h("div", { class: `question__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.locale.Tip }));
|
|
816
|
+
}
|
|
817
|
+
return null;
|
|
818
|
+
}
|
|
744
819
|
connectedCallback() {
|
|
745
820
|
this.setTimeInterval();
|
|
746
821
|
messageSender.UpdateLeaderboardsPlayerReq();
|
|
747
822
|
}
|
|
823
|
+
scrollToMyRankLine() {
|
|
824
|
+
if (!this.detailElement.querySelectorAll('.isMe').length) {
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
(this.detailElement.querySelectorAll('.TableContentWrapper.leaderboard')[0]).scrollTo({ top: this.detailElement.querySelectorAll('.isMe')[0].offsetTop, behavior: 'smooth' });
|
|
828
|
+
this.scrolledToMyLine = true;
|
|
829
|
+
}
|
|
830
|
+
componentDidRender() {
|
|
831
|
+
if (this.page === LeaderboardPage.item && this.tab === Tab.leaderboard && !this.scrolledToMyLine) {
|
|
832
|
+
if (this.currentPlyerRank > this.maxPlyerRank) {
|
|
833
|
+
this.scrollToMyRankLine();
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
else {
|
|
837
|
+
this.scrolledToMyLine = false;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
748
840
|
disconnectedCallback() {
|
|
749
841
|
clearInterval(this.timeHolder);
|
|
750
842
|
}
|
|
843
|
+
onGameClick(game) {
|
|
844
|
+
messageSender.GameClickReq(game);
|
|
845
|
+
}
|
|
751
846
|
actionJoin(tournament) {
|
|
752
|
-
if (
|
|
847
|
+
if (tournament.isActionJoinPending)
|
|
753
848
|
return;
|
|
754
|
-
|
|
849
|
+
tournament.isActionJoinPending = true;
|
|
755
850
|
try {
|
|
756
851
|
if (tournament.isPlayerAcknowledged) {
|
|
757
852
|
messageSender.UnjoinTournamentReq(tournament);
|
|
@@ -769,6 +864,17 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
769
864
|
if (page == LeaderboardPage.item) {
|
|
770
865
|
this.tournamentItem = metaData.tournament;
|
|
771
866
|
if (!this.tournamentItem) {
|
|
867
|
+
messageSender.post({
|
|
868
|
+
type: 'GetTournamentGamesById',
|
|
869
|
+
pathParams: { id: metaData.tournament.id },
|
|
870
|
+
payload: {
|
|
871
|
+
expand: 'games',
|
|
872
|
+
pagination: 'games(limit=50,offset=0)',
|
|
873
|
+
fields: 'games(id,name,thumbnail,launchUrl)',
|
|
874
|
+
platform: getDevicePlatform(),
|
|
875
|
+
language: this.language
|
|
876
|
+
}
|
|
877
|
+
});
|
|
772
878
|
messageSender.UpdateTournamentsItemReq(metaData.tournament);
|
|
773
879
|
}
|
|
774
880
|
if (isTournamentClosed(this.tournamentItem)) {
|
|
@@ -779,9 +885,9 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
779
885
|
this.page = page;
|
|
780
886
|
}
|
|
781
887
|
render() {
|
|
782
|
-
return (index.h(index.Host, { key: '
|
|
888
|
+
return (index.h(index.Host, { key: '5a65900ecb503dd01f8f39774b92a6e95048dbf3' }, index.h("general-styling-wrapper", { key: '58cee35cf4142512e9b49566787b48cbc2761a4a', clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
783
889
|
// @ts-ignore
|
|
784
|
-
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), this.renders.page
|
|
890
|
+
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), index.h("div", { key: '1848e193e8c61fe6bc9d3e123b7651cb1b97981b', class: `Leaderboards ${this.page} ${this.page === 'list' ? 'Active' : 'Hidden'}`, ref: el => this.pageElement = el }, this.renders.page.list()), index.h("div", { key: 'f865edc80013565981b76df146e99ebf1d5d4721', class: `Leaderboards ${this.page} ${this.page === 'item' ? 'Active' : 'Hidden'} `, ref: el => this.detailElement = el }, this.renders.page.item())));
|
|
785
891
|
}
|
|
786
892
|
openDialog(type, data = undefined, onClose = undefined) {
|
|
787
893
|
this.dialog = Object.assign(Object.assign({}, this.dialog), { isOpen: true, onClose,
|
|
@@ -798,6 +904,9 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
798
904
|
this.close = index.createEvent(this, "close", 7);
|
|
799
905
|
this.gifts = [];
|
|
800
906
|
this.labels = [];
|
|
907
|
+
this.showTooltip = false;
|
|
908
|
+
this.maxPlyerRank = 30;
|
|
909
|
+
this.scrolledToMyLine = false;
|
|
801
910
|
this.language = 'en';
|
|
802
911
|
this.show = false;
|
|
803
912
|
this.clientStyling = '';
|
|
@@ -810,7 +919,6 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
810
919
|
this.tournamentItem = undefined;
|
|
811
920
|
this.tournamentList = undefined;
|
|
812
921
|
this.leaderboards = [];
|
|
813
|
-
this.isActionJoinPending = false;
|
|
814
922
|
this.isDialogOpen = false;
|
|
815
923
|
this.isShowInfo = false;
|
|
816
924
|
this.page = LeaderboardPage.list;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-982cd594.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -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_3.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],"
|
|
22
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_3.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],"time":[32],"newIdList":[32]},[[8,"message","handleEvent"],[4,"click","handleClickOutside"]],{"newIdList":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[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]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-engagement-suite-tournament';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad:
|
|
24
|
+
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -1132,6 +1132,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
1132
1132
|
{
|
|
1133
1133
|
addHydratedFlag(elm);
|
|
1134
1134
|
}
|
|
1135
|
+
{
|
|
1136
|
+
safeCall(instance, "componentDidLoad");
|
|
1137
|
+
}
|
|
1135
1138
|
endPostUpdate();
|
|
1136
1139
|
{
|
|
1137
1140
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -1580,6 +1583,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1580
1583
|
}
|
|
1581
1584
|
};
|
|
1582
1585
|
var getHostListenerTarget = (elm, flags) => {
|
|
1586
|
+
if (flags & 4 /* TargetDocument */) return doc;
|
|
1583
1587
|
if (flags & 8 /* TargetWindow */) return win;
|
|
1584
1588
|
return elm;
|
|
1585
1589
|
};
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-
|
|
6
|
-
require('./index-
|
|
5
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-49cebf14.js');
|
|
6
|
+
require('./index-982cd594.js');
|
|
7
7
|
require('@everymatrix/general-animation-loading/dist');
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-982cd594.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
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_3.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],"
|
|
11
|
+
return index.bootstrapLazy([["casino-engagement-suite-progress-bar_3.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],"time":[32],"newIdList":[32]},[[8,"message","handleEvent"],[4,"click","handleClickOutside"]],{"newIdList":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[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]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><script xmlns=""/>
|
|
2
|
+
<g clip-path="url(#clip0_2115_306)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.90292 0.666496C4.92339 0.666579 4.9434 0.66666 4.96286 0.66666H11.0369C11.0564 0.66666 11.0764 0.666579 11.0969 0.666496C11.3056 0.665653 11.5627 0.664613 11.7893 0.74707C12.1596 0.881868 12.4514 1.17361 12.5862 1.54397C12.6394 1.69031 12.6578 1.84942 12.664 1.99999L13.6842 1.99999C13.8242 1.99998 13.9607 1.99996 14.0767 2.00788C14.2036 2.01654 14.3541 2.03686 14.5101 2.10149C14.8368 2.23681 15.0964 2.49638 15.2317 2.82308C15.2964 2.97911 15.3167 3.12959 15.3253 3.25651C15.3333 3.37256 15.3332 3.50898 15.3332 3.64901V3.99999C15.3332 4.03102 15.3333 4.06158 15.3333 4.09171C15.3336 4.62197 15.3338 5.01574 15.2424 5.35684C14.9958 6.27709 14.277 6.99588 13.3568 7.24246C13.103 7.31044 12.8202 7.32774 12.4737 7.33203C11.9618 9.05393 10.4829 10.3596 8.66657 10.6194V11.3333H8.96286C10.6402 11.3333 11.9999 12.6931 11.9999 14.3704C11.9999 14.9022 11.5688 15.3333 11.0369 15.3333H4.96286C4.43103 15.3333 3.9999 14.9022 3.9999 14.3704C3.9999 12.6931 5.35963 11.3333 7.03694 11.3333H7.33323V10.6194C5.51693 10.3596 4.03802 9.05393 3.5261 7.33203C3.17962 7.32774 2.89676 7.31044 2.64305 7.24246C1.72281 6.99588 1.00401 6.27709 0.757433 5.35684C0.666035 5.01574 0.666248 4.62197 0.666535 4.09171C0.666552 4.06159 0.666568 4.03102 0.666568 3.99999V3.66666C0.666568 3.66077 0.666568 3.65489 0.666567 3.64901C0.666553 3.50898 0.66654 3.37256 0.674458 3.25651C0.683117 3.12959 0.703433 2.97911 0.768062 2.82308C0.903387 2.49638 1.16295 2.23681 1.48966 2.10149C1.64569 2.03686 1.79617 2.01654 1.92308 2.00788C2.03914 1.99996 2.17556 1.99998 2.31559 1.99999C2.32146 1.99999 2.32735 1.99999 2.33323 1.99999H3.33581C3.34196 1.84942 3.36038 1.69031 3.41364 1.54397C3.54844 1.17361 3.84019 0.881868 4.21054 0.74707C4.43709 0.664613 4.69421 0.665653 4.90292 0.666496ZM3.33323 3.33333H2.33323C2.1688 3.33333 2.07886 3.33369 2.01385 3.33812C2.01082 3.33833 2.00798 3.33854 2.00532 3.33875C2.00511 3.34141 2.0049 3.34425 2.0047 3.34727C2.00026 3.41229 1.9999 3.50222 1.9999 3.66666V3.99999C1.9999 4.6629 2.00563 4.86357 2.04533 5.01175C2.16862 5.47187 2.52802 5.83127 2.98814 5.95456C3.06734 5.97578 3.16152 5.9873 3.33323 5.99342V3.33333ZM4.66657 2.29629C4.66657 2.15025 4.66685 2.07039 4.67037 2.01249C4.67055 2.00958 4.67072 2.00687 4.6709 2.00433C4.67344 2.00415 4.67616 2.00397 4.67907 2.00379C4.73697 2.00028 4.81683 1.99999 4.96286 1.99999H11.0369C11.183 1.99999 11.2628 2.00028 11.3207 2.00379C11.3236 2.00397 11.3264 2.00415 11.3289 2.00433C11.3291 2.00686 11.3293 2.00959 11.3294 2.01249C11.3329 2.07039 11.3332 2.15025 11.3332 2.29629V5.99999C11.3332 7.84094 9.84085 9.33333 7.9999 9.33333C6.15895 9.33333 4.66657 7.84094 4.66657 5.99999V2.29629ZM12.6666 3.33333V5.99342C12.8383 5.9873 12.9325 5.97578 13.0117 5.95456C13.4718 5.83127 13.8312 5.47187 13.9545 5.01175C13.9942 4.86357 13.9999 4.6629 13.9999 3.99999V3.66666C13.9999 3.50222 13.9995 3.41229 13.9951 3.34727C13.9949 3.34425 13.9947 3.34141 13.9945 3.33875C13.9918 3.33854 13.989 3.33833 13.986 3.33812C13.9209 3.33369 13.831 3.33333 13.6666 3.33333H12.6666ZM7.03694 12.6667C6.2232 12.6667 5.54271 13.2372 5.37361 14H10.6262C10.4571 13.2372 9.7766 12.6667 8.96286 12.6667H7.03694Z" fill="#8F8B9C"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_2115_306">
|
|
7
|
+
<rect width="16" height="16" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
<script xmlns=""/>
|
|
11
|
+
</svg>
|