@everymatrix/casino-engagement-suite-tournament 1.59.2 → 1.59.3
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-1cdbfb3e.entry.js → p-10e1f844.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-94a5935e.js +15 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +1 -1
- package/dist/cjs/{casino-engagement-suite-tournament-21274e02.js → casino-engagement-suite-tournament-9276045b.js} +113 -81
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +87 -10
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +4 -3
- package/dist/collection/shared/renders.page.js +20 -16
- package/dist/collection/shared/renders.tab.js +15 -8
- package/dist/collection/shared/renders.util.js +14 -15
- package/dist/collection/utils/message.js +1 -1
- package/dist/collection/utils/translations.js +1 -1
- package/dist/collection/utils/util.date.js +7 -0
- package/dist/collection/utils/utils.js +28 -0
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +1 -1
- package/dist/esm/{casino-engagement-suite-tournament-75dbe0da.js → casino-engagement-suite-tournament-e9186545.js} +113 -81
- package/dist/esm/index.js +1 -1
- 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 +2 -0
- package/dist/types/shared/renders.page.d.ts +1 -1
- package/dist/types/shared/renders.tab.d.ts +2 -2
- package/dist/types/shared/renders.util.d.ts +2 -2
- package/dist/types/utils/api.apdater.d.ts +1 -0
- package/dist/types/utils/bussiness.d.ts +1 -0
- package/dist/types/utils/translations.d.ts +2 -0
- package/dist/types/utils/types.d.ts +3 -2
- package/dist/types/utils/util.date.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +8 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-376260a6.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
|
@@ -54,7 +54,7 @@ const TRANSLATIONS = Object.assign(Object.assign(Object.assign({ Join: 'Join', U
|
|
|
54
54
|
Tile: 'Congratulations!',
|
|
55
55
|
Description: 'You won <span>{tournamentName}</span>!',
|
|
56
56
|
ButtonContinue: 'Continue'
|
|
57
|
-
}, 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.' });
|
|
57
|
+
}, 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!' });
|
|
58
58
|
|
|
59
59
|
const classnames = (...args) => {
|
|
60
60
|
let classnameArray = [];
|
|
@@ -78,6 +78,34 @@ const getNewItems = (newList, oldList, getCondition) => {
|
|
|
78
78
|
const newItems = newList.filter((newItem) => !oldList.some((oldItem) => getCondition(newItem, oldItem)));
|
|
79
79
|
return newItems;
|
|
80
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* Truncate number to specified decimal places (without rounding)
|
|
83
|
+
* @param {number|string} value - The number to be truncated, can be number or string
|
|
84
|
+
* @param {number} decimals - Number of decimal places to truncate to
|
|
85
|
+
* @returns {string|number} - Truncated value, returns string to preserve trailing zeros if has decimals, otherwise returns number
|
|
86
|
+
* @param {boolean} isInteger - Whether to force return integer
|
|
87
|
+
*/
|
|
88
|
+
const truncateNumber = (value, decimals, isInteger = false) => {
|
|
89
|
+
// Try to convert input to number
|
|
90
|
+
const numValue = Number(value);
|
|
91
|
+
// Check if valid number
|
|
92
|
+
if (isNaN(numValue)) {
|
|
93
|
+
throw new Error('Input must be a valid number or string that can be converted to number');
|
|
94
|
+
}
|
|
95
|
+
if (isInteger && !numValue.toString().includes('.')) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
// When decimals is 0, return integer part directly
|
|
99
|
+
if (decimals === 0) {
|
|
100
|
+
return Math.floor(numValue);
|
|
101
|
+
}
|
|
102
|
+
// Calculate factor for given decimal places
|
|
103
|
+
const factor = Math.pow(10, decimals);
|
|
104
|
+
// Multiply by factor, truncate integer part, then divide by factor
|
|
105
|
+
const truncated = Math.floor(numValue * factor) / factor;
|
|
106
|
+
// Return string representation with fixed decimals to preserve trailing zeros
|
|
107
|
+
return truncated.toFixed(decimals);
|
|
108
|
+
};
|
|
81
109
|
|
|
82
110
|
var LeaderboardPage;
|
|
83
111
|
(function (LeaderboardPage) {
|
|
@@ -260,39 +288,31 @@ function formatDate(date) {
|
|
|
260
288
|
};
|
|
261
289
|
return date.toLocaleDateString('en-US', options).replace(' at', ',');
|
|
262
290
|
}
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
result.setSeconds(result.getSeconds() + seconds);
|
|
266
|
-
return result;
|
|
291
|
+
function getProgress(startDate, endDate) {
|
|
292
|
+
return ((100 * (new Date().getTime() - startDate.getTime())) / (endDate.getTime() - startDate.getTime())).toFixed(0);
|
|
267
293
|
}
|
|
268
|
-
function
|
|
294
|
+
function getTimeDifference(startDate, endDate) {
|
|
269
295
|
const diffMs = Math.abs(endDate.getTime() - startDate.getTime()); // Difference in milliseconds
|
|
270
296
|
const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24)); // Difference in days
|
|
271
297
|
const diffHours = Math.floor((diffMs % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); // Remaining hours
|
|
272
298
|
const diffMinutes = Math.floor((diffMs % (1000 * 60 * 60)) / (1000 * 60)); // Remaining minutes
|
|
273
|
-
|
|
274
|
-
const formattedDiff = `${String(diffDays).padStart(2, '0')}d:${String(diffHours).padStart(2, '0')}h:${String(diffMinutes).padStart(2, '0')}m`;
|
|
275
|
-
return formattedDiff;
|
|
276
|
-
}
|
|
277
|
-
function getProgress(startDate, endDate) {
|
|
278
|
-
return ((100 * (new Date().getTime() - startDate.getTime())) / (endDate.getTime() - startDate.getTime())).toFixed(0);
|
|
299
|
+
return `${String(diffDays).padStart(2, '0')}d:${String(diffHours).padStart(2, '0')}h:${String(diffMinutes).padStart(2, '0')}m`;
|
|
279
300
|
}
|
|
280
301
|
|
|
281
|
-
const renderTimeBar = (
|
|
302
|
+
const renderTimeBar = (tournament) => {
|
|
282
303
|
return (h("section", { class: "TimeContainer" },
|
|
283
|
-
h("div", { class:
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
h("div", null, formatDate(tournament.endTime))
|
|
295
|
-
])),
|
|
304
|
+
h("div", { class: "Time" }, tournament.state === 'Running'
|
|
305
|
+
? [
|
|
306
|
+
h("div", null, getTimeDifference(new Date(), tournament.endTime)),
|
|
307
|
+
h("div", null, renderGradientRoundedButton({
|
|
308
|
+
statedClasses: {
|
|
309
|
+
isHollow: true,
|
|
310
|
+
isPendding: false
|
|
311
|
+
},
|
|
312
|
+
innerHTML: `${getProgress(tournament.startTime, tournament.endTime)}%`
|
|
313
|
+
}))
|
|
314
|
+
]
|
|
315
|
+
: [h("div", null, formatDate(tournament.startTime)), h("div", null, formatDate(tournament.endTime))]),
|
|
296
316
|
h("casino-engagement-suite-progress-bar", { value: Number(getProgress(tournament.startTime, tournament.endTime)), "hide-percent": true })));
|
|
297
317
|
};
|
|
298
318
|
|
|
@@ -407,7 +427,7 @@ const handleLeaderboardLiveEvent = (instance, rest) => {
|
|
|
407
427
|
const commonJoinRes = (instance, rest) => {
|
|
408
428
|
const { success } = rest;
|
|
409
429
|
if (success) {
|
|
410
|
-
instance.tournamentItem = Object.assign(Object.assign({}, instance.tournamentItem), {
|
|
430
|
+
instance.tournamentItem = Object.assign(Object.assign({}, instance.tournamentItem), { isPlayerAcknowledged: !!!instance.tournamentItem.isPlayerAcknowledged });
|
|
411
431
|
switch (instance.page) {
|
|
412
432
|
case LeaderboardPage.item: {
|
|
413
433
|
break;
|
|
@@ -451,19 +471,19 @@ const page = {
|
|
|
451
471
|
list(instance) {
|
|
452
472
|
var _a;
|
|
453
473
|
if (!instance.tournamentList) {
|
|
454
|
-
instance.tournamentList = (_a = instance.leaderboardsInit) === null || _a === void 0 ? void 0 : _a.map(item => tournamentAdapter(item));
|
|
474
|
+
instance.tournamentList = (_a = instance.leaderboardsInit) === null || _a === void 0 ? void 0 : _a.map((item) => tournamentAdapter(item));
|
|
455
475
|
return h("general-animation-loading", null);
|
|
456
476
|
}
|
|
457
477
|
const { locale } = instance;
|
|
458
478
|
if (instance.tournamentList.length) {
|
|
459
479
|
const onClickListItemChangePage = (tournament) => {
|
|
460
480
|
instance.setPage(LeaderboardPage.item, { tournament });
|
|
461
|
-
instance.newIdList = instance.newIdList.filter(id => id !== tournament.id);
|
|
481
|
+
instance.newIdList = instance.newIdList.filter((id) => id !== tournament.id);
|
|
462
482
|
};
|
|
463
|
-
return renderLeaderboardContainer(instance, h("div", { class: "Leaderboards Row" }, instance.tournamentList.map(_tournament => (h("div", { class: classnames(
|
|
483
|
+
return renderLeaderboardContainer(instance, h("div", { class: "Leaderboards Row" }, instance.tournamentList.map((_tournament) => (h("div", { class: classnames('LeaderboardsItem', _tournament.isPlayerAcknowledged ? ' GradientRounded Hollow' : ''), onClick: () => onClickListItemChangePage(_tournament) },
|
|
464
484
|
h("div", { class: "LeaderboardsItemContainer" },
|
|
465
485
|
renderTitleContainer(instance, _tournament),
|
|
466
|
-
renderTimeBar(
|
|
486
|
+
renderTimeBar(_tournament)),
|
|
467
487
|
h("div", { class: "LeaderboardLabels" }, instance.newIdList.includes(_tournament.id) && (h("div", { class: "LeaderboardLabel" },
|
|
468
488
|
h("span", null, "new")))))))));
|
|
469
489
|
}
|
|
@@ -499,12 +519,12 @@ const page = {
|
|
|
499
519
|
renderTabs(),
|
|
500
520
|
instance.renders.tab[instance.tab]()
|
|
501
521
|
]);
|
|
502
|
-
}
|
|
522
|
+
}
|
|
503
523
|
};
|
|
504
524
|
const renderTitleContainer = (instance, tournament) => {
|
|
505
525
|
const { locale } = instance;
|
|
506
526
|
const onClickItemJoin = (tournament) => {
|
|
507
|
-
if (tournament.
|
|
527
|
+
if (tournament.isPlayerAcknowledged) {
|
|
508
528
|
instance.openDialog(DialogType.unjoin, tournament);
|
|
509
529
|
}
|
|
510
530
|
else {
|
|
@@ -516,27 +536,29 @@ const renderTitleContainer = (instance, tournament) => {
|
|
|
516
536
|
h("div", { class: "Title" }, tournament.nameOrTitle),
|
|
517
537
|
tournament.state !== TournamentState.Closed && (h("div", null, renderGradientRoundedButton({
|
|
518
538
|
statedClasses: {
|
|
519
|
-
isHollow: tournament.
|
|
520
|
-
isPending: instance.isActionJoinPending
|
|
539
|
+
isHollow: tournament.isPlayerAcknowledged,
|
|
540
|
+
isPending: instance.isActionJoinPending
|
|
521
541
|
},
|
|
522
542
|
onClick: (e) => {
|
|
523
543
|
e.stopPropagation();
|
|
524
|
-
|
|
544
|
+
if (!instance.isActionJoinPending) {
|
|
545
|
+
onClickItemJoin(tournament);
|
|
546
|
+
}
|
|
525
547
|
},
|
|
526
|
-
innerHTML: tournament.
|
|
548
|
+
innerHTML: tournament.isPlayerAcknowledged ? locale.Unjoin : locale.Join
|
|
527
549
|
})))));
|
|
528
550
|
};
|
|
529
551
|
const renderLeaderboardContainer = (instance, render) => {
|
|
530
552
|
const { dialog: { isOpen } } = instance;
|
|
531
553
|
const renderBar = renderCloseBar({
|
|
532
|
-
right:
|
|
554
|
+
right: h("span", { onClick: () => instance.closeDialog() }, iconClose)
|
|
533
555
|
});
|
|
534
556
|
const renderDialogContent = () => {
|
|
535
557
|
switch (instance.dialog.type) {
|
|
536
558
|
case DialogType.unjoin:
|
|
537
559
|
return instance.renders.dialog.unjoin(); //renderDialogContentUnjoin()
|
|
538
560
|
case DialogType.tip:
|
|
539
|
-
return
|
|
561
|
+
return h("div", { class: "Tip" }, instance.locale.Tip);
|
|
540
562
|
case DialogType.gift:
|
|
541
563
|
return instance.renders.dialog.gift();
|
|
542
564
|
}
|
|
@@ -551,19 +573,21 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
551
573
|
};
|
|
552
574
|
case LeaderboardPage.item:
|
|
553
575
|
return {
|
|
554
|
-
left:
|
|
555
|
-
middle:
|
|
576
|
+
left: h("span", { onClick: () => instance.setPage(LeaderboardPage.list) }, iconBack),
|
|
577
|
+
middle: locale.Leaderboards
|
|
556
578
|
};
|
|
557
579
|
}
|
|
558
580
|
};
|
|
559
581
|
const renderCloseBarInLayout = () => {
|
|
560
582
|
const { left, middle } = getWrapperBarData();
|
|
561
|
-
return renderCloseBar({
|
|
562
|
-
|
|
583
|
+
return renderCloseBar({
|
|
584
|
+
left,
|
|
585
|
+
middle,
|
|
586
|
+
right: h("span", { onClick: () => instance.close.emit() }, iconClose)
|
|
563
587
|
});
|
|
564
588
|
};
|
|
565
589
|
return (h("div", { class: `Wrapper ${instance.device}` },
|
|
566
|
-
h("div", { class: classnames(
|
|
590
|
+
h("div", { class: classnames('WrapperContent', { faded: isOpen }) },
|
|
567
591
|
renderCloseBarInLayout(),
|
|
568
592
|
h("div", { class: "Root" },
|
|
569
593
|
h("div", { class: "Main" }, render))),
|
|
@@ -579,58 +603,65 @@ const tab = {
|
|
|
579
603
|
var _a, _b;
|
|
580
604
|
const { locale, tournamentItem: tournament, isShowInfo } = instance;
|
|
581
605
|
return (h("div", { class: "InfoContainer" },
|
|
582
|
-
renderTimeBar(
|
|
583
|
-
|
|
606
|
+
renderTimeBar(tournament),
|
|
607
|
+
h("section", { class: "ShowInfo", onClick: () => (instance.isShowInfo = !instance.isShowInfo) },
|
|
584
608
|
h("p", null,
|
|
585
609
|
h("span", null, isShowInfo ? iconEyeClose : iconEyeOpen),
|
|
586
|
-
h("span", null, locale.LeaderboardDetails)))
|
|
587
|
-
|
|
588
|
-
h("
|
|
589
|
-
|
|
590
|
-
h("div",
|
|
591
|
-
|
|
610
|
+
h("span", null, locale.LeaderboardDetails))),
|
|
611
|
+
h("div", { class: `ContentScrollContainer ${isShowInfo ? 'expanded' : ''}` },
|
|
612
|
+
isShowInfo && (h("section", { class: "Info" },
|
|
613
|
+
h("div", null, tournament.description),
|
|
614
|
+
h("div", { class: "Criterias" },
|
|
615
|
+
h("div", null,
|
|
616
|
+
locale.ScoreCriteria,
|
|
617
|
+
": ",
|
|
618
|
+
h("span", null, tournament.scoreCriteria)),
|
|
619
|
+
h("div", null,
|
|
620
|
+
locale.MinimumBetCriteria,
|
|
621
|
+
": ",
|
|
622
|
+
h("span", null, tournament.minBetCount))),
|
|
623
|
+
!!tournament.termsUrl && (h("div", { class: "TC" },
|
|
624
|
+
h("a", { href: tournament.termsUrl, target: "_blank" }, locale.TC))))),
|
|
625
|
+
isTournamentClosed(instance.tournamentItem) && ((_a = instance.leaderboards) === null || _a === void 0 ? void 0 : _a.find((l) => l.isMe)) && (h("section", { class: "ResultPrize", innerHTML: localePostprocess(locale.TipPrize, getResultPrize((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find((l) => l.isMe))) })),
|
|
626
|
+
h("section", { class: "PrizesContainer" },
|
|
627
|
+
h("div", { class: "PrizesHeader" },
|
|
628
|
+
iconReward,
|
|
629
|
+
h("span", { class: "PrizesText" }, locale.Prizes)),
|
|
630
|
+
h("div", { class: "Prizes" }, tournament.prizes.map((prize, index) => (h("div", { class: "Prize" },
|
|
631
|
+
index + 1,
|
|
632
|
+
" ",
|
|
633
|
+
locale.Place,
|
|
592
634
|
": ",
|
|
593
|
-
h("span",
|
|
594
|
-
h("div", null,
|
|
595
|
-
locale.MinimumBetCriteria,
|
|
596
|
-
": ",
|
|
597
|
-
h("span", null, tournament.minBetCount))),
|
|
598
|
-
h("div", { class: "TC" },
|
|
599
|
-
h("a", { href: tournament.termsUrl, target: '_blank' }, locale.TC)))),
|
|
600
|
-
isTournamentClosed(instance.tournamentItem) && ((_a = instance.leaderboards) === null || _a === void 0 ? void 0 : _a.find(l => l.isMe)) && (h("section", { class: "ResultPrize", innerHTML: localePostprocess(locale.TipPrize, getResultPrize((_b = instance.leaderboards) === null || _b === void 0 ? void 0 : _b.find(l => l.isMe))) })),
|
|
601
|
-
h("section", { class: "Prizes" },
|
|
602
|
-
h("div", { class: "PrizesHeader" },
|
|
603
|
-
iconReward,
|
|
604
|
-
h("span", { class: "PrizesText" }, locale.Prizes)),
|
|
605
|
-
tournament.prizes.map((prize, index) => (h("div", { class: "Prize" },
|
|
606
|
-
index + 1,
|
|
607
|
-
" ",
|
|
608
|
-
locale.Place,
|
|
609
|
-
": ",
|
|
610
|
-
h("span", { class: "PrizeText" }, prize.name)))))));
|
|
635
|
+
h("span", { class: "PrizeText" }, prize.name)))))))));
|
|
611
636
|
},
|
|
612
637
|
leaderboard(instance) {
|
|
638
|
+
const { locale, tournamentItem } = instance;
|
|
639
|
+
if ((tournamentItem === null || tournamentItem === void 0 ? void 0 : tournamentItem.state) === 'Unstarted') {
|
|
640
|
+
const startTime = getTimeDifference(tournamentItem === null || tournamentItem === void 0 ? void 0 : tournamentItem.startTime, new Date());
|
|
641
|
+
return (h("div", { class: "LeaderboardUnstarted", innerHTML: localePostprocess(locale.TournamentNotStarted, { startTime }) }));
|
|
642
|
+
}
|
|
613
643
|
if (!instance.leaderboards)
|
|
614
644
|
return h("general-animation-loading", null);
|
|
615
|
-
if (!instance.leaderboards.length)
|
|
616
|
-
return
|
|
617
|
-
|
|
645
|
+
if (!instance.leaderboards.length) {
|
|
646
|
+
return h("div", { class: "LeaderboardUnstarted" }, locale.BeOne);
|
|
647
|
+
}
|
|
648
|
+
return (h("table", { class: "Leaderboards" }, instance.leaderboards.map((leaderboard) => (h("tr", { class: classnames({ isMe: leaderboard.isMe }) },
|
|
618
649
|
h("td", { class: "LeaderboardRank" },
|
|
619
650
|
h("span", null, leaderboard.rank)),
|
|
620
651
|
h("td", { class: "LeaderboardName" }, leaderboard.shortName),
|
|
621
|
-
h("td", { class: "LeaderboardScore" }, leaderboard.score),
|
|
652
|
+
h("td", { class: "LeaderboardScore" }, truncateNumber(leaderboard.score, 2, true)),
|
|
622
653
|
h("td", { class: "LeaderboardPrize" }, leaderboard.prizeName))))));
|
|
623
654
|
},
|
|
624
655
|
games(instance) {
|
|
625
656
|
var _a;
|
|
626
|
-
return (h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map(game => (h("div", null,
|
|
657
|
+
return (h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map((game) => (h("div", null,
|
|
627
658
|
h("img", { src: game.defaultThumbnail, alt: "" }))))));
|
|
628
|
-
}
|
|
659
|
+
}
|
|
629
660
|
};
|
|
630
661
|
const getResultPrize = (leaderboard) => {
|
|
631
662
|
return {
|
|
632
663
|
prize: leaderboard.prizeName,
|
|
633
|
-
place: leaderboard.rank
|
|
664
|
+
place: leaderboard.rank
|
|
634
665
|
};
|
|
635
666
|
};
|
|
636
667
|
|
|
@@ -640,7 +671,7 @@ const renders = {
|
|
|
640
671
|
tab
|
|
641
672
|
};
|
|
642
673
|
|
|
643
|
-
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}.
|
|
674
|
+
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}";
|
|
644
675
|
const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;
|
|
645
676
|
|
|
646
677
|
const CasinoEngagementSuiteTournament = class {
|
|
@@ -673,6 +704,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
673
704
|
showPropWatcher(newValue, oldValue) {
|
|
674
705
|
if (oldValue == false && newValue == true) {
|
|
675
706
|
this.checkGift();
|
|
707
|
+
this.page = LeaderboardPage.list;
|
|
676
708
|
}
|
|
677
709
|
}
|
|
678
710
|
addLabel(tag) {
|
|
@@ -687,7 +719,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
687
719
|
}
|
|
688
720
|
setTimeInterval() {
|
|
689
721
|
this.timeHolder = setInterval(() => {
|
|
690
|
-
this.time =
|
|
722
|
+
this.time = this.tournamentList || this.tournamentItem ? this.time + 1 : 0;
|
|
691
723
|
}, 1000);
|
|
692
724
|
}
|
|
693
725
|
checkGift() {
|
|
@@ -719,7 +751,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
719
751
|
return;
|
|
720
752
|
this.isActionJoinPending = true;
|
|
721
753
|
try {
|
|
722
|
-
if (tournament.
|
|
754
|
+
if (tournament.isPlayerAcknowledged) {
|
|
723
755
|
messageSender.UnjoinTournamentReq(tournament);
|
|
724
756
|
}
|
|
725
757
|
else {
|
|
@@ -745,7 +777,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
745
777
|
this.page = page;
|
|
746
778
|
}
|
|
747
779
|
render() {
|
|
748
|
-
return (h(Host, { key: '
|
|
780
|
+
return (h(Host, { key: 'b070d8a83bcd801d5daeb4edfe87ad0159da4e7c' }, h("general-styling-wrapper", { key: '7454fdab7ee55ab95a39adb3c8b51aed0b78f534', clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
749
781
|
// @ts-ignore
|
|
750
782
|
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), this.renders.page[this.page]()));
|
|
751
783
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-
|
|
1
|
+
export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-e9186545.js';
|
|
2
2
|
import './index-e8e1e68e.js';
|
|
3
3
|
import '@everymatrix/general-animation-loading/dist';
|
|
@@ -64,6 +64,8 @@ export declare class CasinoEngagementSuiteTournament {
|
|
|
64
64
|
Leaderboards: string;
|
|
65
65
|
TipPrize: string;
|
|
66
66
|
Tip: string;
|
|
67
|
+
TournamentNotStarted: string;
|
|
68
|
+
BeOne: string;
|
|
67
69
|
Starts: import("../../utils/translations").Time.Starts;
|
|
68
70
|
Ends: import("../../utils/translations").Time.Ends;
|
|
69
71
|
info: Tab.info;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LeaderboardPage, RenderCollector } from
|
|
1
|
+
import { LeaderboardPage, RenderCollector } from '../utils/types';
|
|
2
2
|
export declare const page: RenderCollector<LeaderboardPage>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Tab } from
|
|
2
|
-
import { RenderCollector } from
|
|
1
|
+
import { Tab } from '../utils/translations';
|
|
2
|
+
import { RenderCollector } from '../utils/types';
|
|
3
3
|
export declare const tab: RenderCollector<Tab>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tournament } from
|
|
2
|
-
export declare const renderTimeBar: (
|
|
1
|
+
import { Tournament } from '../utils/types';
|
|
2
|
+
export declare const renderTimeBar: (tournament: Tournament) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSX } from
|
|
2
|
-
import type { CasinoEngagementSuiteTournament } from
|
|
1
|
+
import { JSX } from '../stencil-public-runtime';
|
|
2
|
+
import type { CasinoEngagementSuiteTournament } from '../components/casino-engagement-suite-tournament';
|
|
3
3
|
export type Instance = CasinoEngagementSuiteTournament;
|
|
4
4
|
type Render = (instance?: CasinoEngagementSuiteTournament) => JSX.Element;
|
|
5
5
|
type AbstractEnum = string | number | symbol;
|
|
@@ -44,6 +44,7 @@ export interface TournamentApi {
|
|
|
44
44
|
}[];
|
|
45
45
|
games?: any[];
|
|
46
46
|
playerEnrolled?: boolean;
|
|
47
|
+
isPlayerAcknowledged?: boolean;
|
|
47
48
|
}
|
|
48
49
|
export interface LeaderboardApi {
|
|
49
50
|
rank: number;
|
|
@@ -4,3 +4,4 @@ export declare function addMinutes(date: any, minutes: any): Date;
|
|
|
4
4
|
export declare function addSeconds(date: any, seconds: any): Date;
|
|
5
5
|
export declare function getDifference(startDate: Date, endDate: Date): string;
|
|
6
6
|
export declare function getProgress(startDate: Date, endDate: Date): string;
|
|
7
|
+
export declare function getTimeDifference(startDate: Date, endDate: Date): string;
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export declare const classnames: (...args: any[]) => string;
|
|
2
2
|
export declare const getNewItems: <T>(newList: T[], oldList: T[], getCondition: (newItem: T, oldItem: T) => boolean) => T[];
|
|
3
|
+
/**
|
|
4
|
+
* Truncate number to specified decimal places (without rounding)
|
|
5
|
+
* @param {number|string} value - The number to be truncated, can be number or string
|
|
6
|
+
* @param {number} decimals - Number of decimal places to truncate to
|
|
7
|
+
* @returns {string|number} - Truncated value, returns string to preserve trailing zeros if has decimals, otherwise returns number
|
|
8
|
+
* @param {boolean} isInteger - Whether to force return integer
|
|
9
|
+
*/
|
|
10
|
+
export declare const truncateNumber: (value: any, decimals: any, isInteger?: boolean) => any;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{h as e,H as i,r as t,c as a}from"./p-7dd52ef4.js";import"@everymatrix/general-animation-loading/dist";
|
|
2
|
-
/*! *****************************************************************************
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted.
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function r(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)i.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t}var n,o;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(n||(n={})),function(e){e.Starts="Starts",e.Ends="Ends"}(o||(o={}));const s=(e,i)=>(Object.keys(i).map((t=>{e=e.replace(`{${t}}`,i[t])})),e),d=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},n),o),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",Place:"place",Prizes:"Rewards",LeaderboardDetails:"Leaderboard Details",UnjoinDialog:{Title:"Quit Leaderboard?",Description:"Any progress on the current Leaderboard won’t be kept and you can not rejoin the Leaderboard any more. <br /><br />Would you still like to quit?",ButtonYes:"Yes, I want to quit leaderboard",ButtonNo:"No, Stay on the leaderboard"},WinDialog:{Tile:"Congratulations!",Description:"You won <span>{tournamentName}</span>!",ButtonContinue:"Continue"},NoLeaderboards:"No Leaderboards yet",NoLeaderboardsTip:"Try winning tickets to Leaderboards as rewards or launching other booster games",Leaderboards:"Leaderboards",TipPrize:"You took <span>{place}</span> place and win <span>{prize}</span>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward."}),l=(...e)=>{let i=[];return e.map((e=>{switch(typeof e){case"string":i.push(e);break;case"object":Object.keys(e).map((t=>{e[t]&&i.push(t)}))}})),i.join(" ")};var c,p,g;!function(e){e.list="list",e.item="item"}(c||(c={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(p||(p={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift"}(g||(g={}));const m=e=>[p.Closed,p.Closing].includes(e.state),u=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),b=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/help.svg"}),h=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),v=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),x=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),f=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/reward.svg"}),w=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg"}),y=i=>{var{statedClasses:t,innerHTML:a}=i,n=r(i,["statedClasses","innerHTML"]);const{isHollow:o,isPending:s}=t;return e("button",Object.assign({class:l("GradientRoundedButton","GradientRounded",{Hollow:o||!1,Pending:s||!1})},n),e("span",null,a))};var L;!function(e){e.normal="normal",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(L||(L={}));const C=(e,i)=>{const{locale:t}=e,a={normal:{innerHTML:t.WinDialog.ButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:t.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:t.UnjoinDialog.ButtonNo}}[i];return y({statedClasses:Object.assign({isPending:e.isActionJoinPending},a.statedClasses),onClick:()=>{var i;null===(i=a.onClick)||void 0===i||i.call(),e.closeDialog()},innerHTML:a.innerHTML})},T={gift(i){const{name:t}=i.gifts[0],{locale:a}=i;return e("div",{class:"PageConfirmContainer"},e("div",{class:"PageConfirm"},e("div",null,w),e("div",{class:"Title"},a.WinDialog.Tile),e("div",{class:"Description",innerHTML:s(a.WinDialog.Description,{tournamentName:t})}),e("div",{class:"PageConfirmButtonsGroup"},C(i,L.normal))))},unjoin(i){const{locale:t}=i;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},t.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:t.UnjoinDialog.Description}),C(i,L.unjoinYes),C(i,L.unjoinNo))}},k=e=>{const i=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],t={};return Object.keys(e).map((a=>{const r=e[a];t[a]="games"===a?r.items:i.includes(a)?new Date(r):r})),t},F=e=>{let{item:i,items:t}=e;return i?t.map((e=>i&&i.userID===e.userID?Object.assign(Object.assign({},e),{isMe:!0}):e)):t},j=i=>{const{left:t,middle:a,right:r}=i,n={left:t,middle:a,right:r};return e("div",{class:"WrapperBar"},Object.keys(n).map((i=>{return e("div",{class:"WrapperBar"+(t=i,t.split("").map(((e,i)=>0===i?e.toUpperCase():e)).join(""))},n[i]||"");var t})))};function z(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function P(e,i){const t=new Date(e);return t.setSeconds(t.getSeconds()+i),t}function R(e,i){const t=Math.abs(i.getTime()-e.getTime()),a=Math.floor(t/864e5),r=Math.floor(t%864e5/36e5),n=Math.floor(t%36e5/6e4);return`${String(a).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(n).padStart(2,"0")}m`}function M(e,i){return(100*((new Date).getTime()-e.getTime())/(i.getTime()-e.getTime())).toFixed(0)}const U=(i,t)=>e("section",{class:"TimeContainer"},e("div",{class:"Time"},t.playerEnrolled?[e("div",null,R(P(t.startTime,i.time),t.endTime)),e("div",null,y({statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${M(t.startTime,t.endTime)}%`}))]:[e("div",null,z(t.startTime)),e("div",null,z(t.endTime))]),e("casino-engagement-suite-progress-bar",{value:Number(M(t.startTime,t.endTime)),"hide-percent":!0})),O=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),H=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),B=(e,i)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:i}),I=(e,i)=>{const{success:t}=i;if(t)switch(e.tournamentItem=Object.assign(Object.assign({},e.tournamentItem),{playerEnrolled:!e.tournamentItem.playerEnrolled}),e.page){case c.item:break;case c.list:D(e,e.tournamentItem)}e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0),e.isActionJoinPending=!1},D=(e,i)=>{e.tournamentList=e.tournamentList.map((e=>e.id===i.id?k(i):e))},S=(e,i)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==i.id))},W=(e,i)=>{const t=e.tournamentList.findIndex((e=>e.id===i.id));-1!==t?e.tournamentList[t]=k(i):e.tournamentList=e.tournamentList.concat(k(i))},G={list(i){var t;if(!i.tournamentList)return i.tournamentList=null===(t=i.leaderboardsInit)||void 0===t?void 0:t.map((e=>k(e))),e("general-animation-loading",null);const{locale:a}=i;if(i.tournamentList.length){const t=e=>{i.setPage(c.item,{tournament:e}),i.newIdList=i.newIdList.filter((i=>i!==e.id))};return E(i,e("div",{class:"Leaderboards Row"},i.tournamentList.map((a=>e("div",{class:l("LeaderboardsItem",a.playerEnrolled?" GradientRounded Hollow":""),onClick:()=>t(a)},e("div",{class:"LeaderboardsItemContainer"},N(i,a),U(i,a)),e("div",{class:"LeaderboardLabels"},i.newIdList.includes(a.id)&&e("div",{class:"LeaderboardLabel"},e("span",null,"new"))))))))}return E(i,e("div",{class:"NoLeaderboards Row"},e("div",null,a.NoLeaderboards),e("div",null,a.NoLeaderboardsTip)))},item:i=>i.tournamentItem?E(i,[N(i,i.tournamentItem),(()=>{const{locale:t,tab:a}=i;return e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(n).map((r=>e("div",{class:l({active:a===r}),onClick:()=>(e=>{switch(i.tab=e,e){case n.leaderboard:i.leaderboards=void 0,B(i.tournamentItem);break;case n.games:H(i.tournamentItem)}})(r)},t[r])))))})(),i.renders.tab[i.tab]()]):e("general-animation-loading",null)},N=(i,t)=>{const{locale:a}=i;return e("div",{class:"TitleContainer"},e("div",{class:"Title"},t.nameOrTitle),t.state!==p.Closed&&e("div",null,y({statedClasses:{isHollow:t.playerEnrolled,isPending:i.isActionJoinPending},onClick:e=>{e.stopPropagation(),(e=>{e.playerEnrolled?i.openDialog(g.unjoin,e):(i.actionJoin(e),i.tournamentItem=e)})(t)},innerHTML:t.playerEnrolled?a.Unjoin:a.Join})))},E=(i,t)=>{const{dialog:{isOpen:a}}=i,r=j({right:e("span",{onClick:()=>i.closeDialog()},u)});return e("div",{class:`Wrapper ${i.device}`},e("div",{class:l("WrapperContent",{faded:a})},(()=>{const{left:t,middle:a}=(()=>{const{page:t,locale:a}=i;switch(t){case c.list:return{left:e("span",{onClick:()=>i.openDialog(g.tip)},b),middle:a.Leaderboards};case c.item:return{left:e("span",{onClick:()=>i.setPage(c.list)},x),middle:""}}})();return j({left:t,middle:a,right:e("span",{onClick:()=>i.close.emit()},u)})})(),e("div",{class:"Root"},e("div",{class:"Main"},t))),e("div",{class:"WrapperUtil"},e("dialog",{open:a},e("div",{class:"GradientRounded Hollow"},r,a&&(()=>{switch(i.dialog.type){case g.unjoin:return i.renders.dialog.unjoin();case g.tip:return e("div",{class:"Tip"},i.locale.Tip);case g.gift:return i.renders.dialog.gift()}})()))))},q={info(i){var t,a;const{locale:r,tournamentItem:n,isShowInfo:o}=i;return e("div",{class:"InfoContainer"},U(i,n),e("section",{class:"ShowInfo",onClick:()=>i.isShowInfo=!i.isShowInfo},e("p",null,e("span",null,o?v:h),e("span",null,r.LeaderboardDetails))),o&&e("section",{class:"Info"},e("div",null,n.description),e("div",{class:"Criterias"},e("div",null,r.ScoreCriteria,": ",e("span",null,n.scoreCriteria)),e("div",null,r.MinimumBetCriteria,": ",e("span",null,n.minBetCount))),e("div",{class:"TC"},e("a",{href:n.termsUrl,target:"_blank"},r.TC))),m(i.tournamentItem)&&(null===(t=i.leaderboards)||void 0===t?void 0:t.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:s(r.TipPrize,$(null===(a=i.leaderboards)||void 0===a?void 0:a.find((e=>e.isMe))))}),e("section",{class:"Prizes"},e("div",{class:"PrizesHeader"},f,e("span",{class:"PrizesText"},r.Prizes)),n.prizes.map(((i,t)=>e("div",{class:"Prize"},t+1," ",r.Place,": ",e("span",{class:"PrizeText"},i.name))))))},leaderboard:i=>i.leaderboards?i.leaderboards.length?e("table",{class:"Leaderboards"},i.leaderboards.map((i=>e("tr",{class:l({isMe:i.isMe})},e("td",{class:"LeaderboardRank"},e("span",null,i.rank)),e("td",{class:"LeaderboardName"},i.shortName),e("td",{class:"LeaderboardScore"},i.score),e("td",{class:"LeaderboardPrize"},i.prizeName))))):"":e("general-animation-loading",null),games(i){var t;return e("div",{class:"Games"},null===(t=i.tournamentItem.games)||void 0===t?void 0:t.map((i=>e("div",null,e("img",{src:i.defaultThumbnail,alt:""})))))}},$=e=>({prize:e.prizeName,place:e.rank}),Y={dialog:T,page:G,tab:q},J=class{handleEvent(e){var i,t;const a=e.data,{type:n}=a,o=r(a,["type"]);var s;null===(t=null===(s=this,i={UpdateLeaderboardsPlayerRes:e=>{const i=(e=>{let i;return e.map((e=>{var t;const a=null===(t=e.leaderBoard)||void 0===t?void 0:t.rank;a&&(i?a<i.leaderBoard.rank&&(i=e):i=e)})),i?`${i.leaderBoard.rank} / ${i.endRank}`:"-"})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:i})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const i=k(e.data.item);s.tournamentItem=i,D(s,i)},UpdateLeaderboardsRes:e=>{s.leaderboards=F(e.data)},JoinTournamentRes:e=>I(s,e),UnjoinTournamentRes:e=>I(s,e),LeaderboardLiveEvent:e=>{((e,i)=>{const{messageType:t,item:a}=i;switch(t){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":W(e,a);break;case"TournamentRemove":S(e,a);break;case"LeaderBoardUpdate":e.leaderboards=F(i)}})(s,e)}})||void 0===i?void 0:i[n])||void 0===t||t.call(null,o)}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,i){if(i){const r=(t=i,a=(e,i)=>e.id===i.id,e.filter((e=>!t.some((i=>a(e,i))))));this.newIdList=[...this.newIdList,...r.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var t,a}showPropWatcher(e,i){0==i&&1==e&&this.checkGift()}addLabel(e){this.labels.includes(e)||this.labels.push(e),O(this.labels)}removeLabel(e){this.labels=this.labels.filter((i=>i!=e)),O(this.labels)}setTimeInterval(){this.timeHolder=setInterval((()=>{this.time=this.tournamentList||this.tournamentItem?this.time+1:0}),1e3)}checkGift(){this.gifts.length?this.openDialog(g.gift,this.gifts[0],(()=>{this.dialog.type===g.gift&&(this.gifts=this.gifts.slice(1),setTimeout((()=>{this.checkGift()}),300))})):this.removeLabel("win")}connectedCallback(){this.setTimeInterval(),window.postMessage({type:"UpdateLeaderboardsPlayerReq"})}disconnectedCallback(){clearInterval(this.timeHolder)}actionJoin(e){if(!this.isActionJoinPending){this.isActionJoinPending=!0;try{e.playerEnrolled?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{var i,t;window.postMessage({type:"JoinTournamentReq",bonusCode:null===(t=null===(i=e.wallets)||void 0===i?void 0:i[0])||void 0===t?void 0:t.code})})(e)}catch(e){return void console.log("error",e)}}}setPage(e,i){e==c.item&&(this.tournamentItem=i.tournament,this.tournamentItem||H(i.tournament),m(this.tournamentItem)&&B(this.tournamentItem)),this.tab=n.info,this.page=e}render(){return e(i,{key:"f9e9ea96e0fddd20d3f12141c7cf66588ab94ccd"},e("general-styling-wrapper",{key:"aea948ea6c8f8cc5e4aaea5812873d3fe7045568",clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:d,translationUrl:this.translationUrl}),this.renders.page[this.page]())}openDialog(e,i,t){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:t,type:e,data:i})}closeDialog(){var e;null===(e=this.dialog.onClose)||void 0===e||e.call(this),this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1,onClose:void 0})}constructor(e){t(this,e),this.close=a(this,"close",7),this.gifts=[],this.labels=[],this.language="en",this.show=!1,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.device="Mobile",this.leaderboardsInit=void 0,this.tab=n.info,this.locale=d,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isActionJoinPending=!1,this.isDialogOpen=!1,this.isShowInfo=!1,this.page=c.list,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0,onClose:void 0},this.time=0,this.newIdList=[],this.renders={},Object.keys(Y).forEach((e=>{this.renders[e]={},Object.keys(Y[e]).forEach((i=>{this.renders[e][i]=Y[e][i].bind(this,this)}))}))}static get watchers(){return{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};J.style='.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}.Prizes{margin:24px 0;padding:0 20px}.Prizes .PrizesText{margin-left:3px;font-weight:600}.Prizes .PrizesHeader{align-items:center;display:flex}.Prizes .PrizesHeader img{width:12px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}*{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:var(--emw--color-primary, rgb(255, 214, 47))}.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)}.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}';export{J as C}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|