@everymatrix/casino-engagement-suite-tournament 1.59.0 → 1.59.2
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 +1 -0
- package/dist/casino-engagement-suite-tournament/p-376260a6.js +15 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +2 -1
- package/dist/cjs/{casino-engagement-suite-tournament-dea6117d.js → casino-engagement-suite-tournament-21274e02.js} +1 -528
- package/dist/cjs/index.cjs.js +2 -1
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +1 -1
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +2 -1
- package/dist/esm/{casino-engagement-suite-tournament-520e74da.js → casino-engagement-suite-tournament-75dbe0da.js} +84 -611
- package/dist/esm/index.js +2 -1
- 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 +2 -0
- 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 +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-36511cf5.js +0 -15
- package/dist/casino-engagement-suite-tournament/p-6e87f006.entry.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/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/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h, H as Host, r as registerInstance, c as createEvent } from './index-e8e1e68e.js';
|
|
2
|
+
import '@everymatrix/general-animation-loading/dist';
|
|
2
3
|
|
|
3
4
|
/*! *****************************************************************************
|
|
4
5
|
Copyright (c) Microsoft Corporation.
|
|
@@ -125,22 +126,22 @@ const isTournamentClosed = (tournament) => {
|
|
|
125
126
|
return [TournamentState.Closed, TournamentState.Closing].includes(tournament.state);
|
|
126
127
|
};
|
|
127
128
|
|
|
128
|
-
const iconClose = h
|
|
129
|
-
const iconQuestion = h
|
|
130
|
-
const iconEyeOpen = h
|
|
131
|
-
const iconEyeClose = h
|
|
132
|
-
const iconBack = h
|
|
133
|
-
const iconReward = h
|
|
134
|
-
const iconTrophy = h
|
|
129
|
+
const iconClose = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg" });
|
|
130
|
+
const iconQuestion = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/help.svg" });
|
|
131
|
+
const iconEyeOpen = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg" });
|
|
132
|
+
const iconEyeClose = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg" });
|
|
133
|
+
const iconBack = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg" });
|
|
134
|
+
const iconReward = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/reward.svg" });
|
|
135
|
+
const iconTrophy = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg" });
|
|
135
136
|
|
|
136
137
|
const renderGradientRoundedButton = (_a) => {
|
|
137
138
|
var { statedClasses, innerHTML } = _a, props = __rest(_a, ["statedClasses", "innerHTML"]);
|
|
138
139
|
const { isHollow, isPending } = statedClasses;
|
|
139
|
-
return (h
|
|
140
|
+
return (h("button", Object.assign({ class: classnames('GradientRoundedButton', 'GradientRounded', {
|
|
140
141
|
Hollow: isHollow || false,
|
|
141
142
|
Pending: isPending || false,
|
|
142
143
|
}) }, props),
|
|
143
|
-
h
|
|
144
|
+
h("span", null, innerHTML)));
|
|
144
145
|
};
|
|
145
146
|
|
|
146
147
|
var GradientButton;
|
|
@@ -181,18 +182,18 @@ const dialog = {
|
|
|
181
182
|
gift(instance) {
|
|
182
183
|
const { name: tournamentName } = instance.gifts[0];
|
|
183
184
|
const { locale } = instance;
|
|
184
|
-
return (h
|
|
185
|
-
h
|
|
186
|
-
h
|
|
187
|
-
h
|
|
188
|
-
h
|
|
189
|
-
h
|
|
185
|
+
return (h("div", { class: "PageConfirmContainer" },
|
|
186
|
+
h("div", { class: "PageConfirm" },
|
|
187
|
+
h("div", null, iconTrophy),
|
|
188
|
+
h("div", { class: "Title" }, locale.WinDialog.Tile),
|
|
189
|
+
h("div", { class: "Description", innerHTML: localePostprocess(locale.WinDialog.Description, { tournamentName }) }),
|
|
190
|
+
h("div", { class: "PageConfirmButtonsGroup" }, renderButton(instance, GradientButton.normal)))));
|
|
190
191
|
},
|
|
191
192
|
unjoin(instance) {
|
|
192
193
|
const { locale } = instance;
|
|
193
|
-
return (h
|
|
194
|
-
h
|
|
195
|
-
h
|
|
194
|
+
return (h("div", { class: "DialogContentUnjoin" },
|
|
195
|
+
h("div", { class: "DialogContentUnjoinTitle" }, locale.UnjoinDialog.Title),
|
|
196
|
+
h("div", { class: "DialogContentUnjoinDescription", innerHTML: locale.UnjoinDialog.Description }),
|
|
196
197
|
renderButton(instance, GradientButton.unjoinYes),
|
|
197
198
|
renderButton(instance, GradientButton.unjoinNo)));
|
|
198
199
|
}
|
|
@@ -245,7 +246,7 @@ const renderCloseBar = (attr) => {
|
|
|
245
246
|
.split('')
|
|
246
247
|
.map((letter, index) => index === 0 ? letter.toUpperCase() : letter)
|
|
247
248
|
.join('');
|
|
248
|
-
return (h
|
|
249
|
+
return (h("div", { class: "WrapperBar" }, Object.keys(slots).map(slotKey => (h("div", { class: "WrapperBar" + getFirstLetterUppercase(slotKey) }, slots[slotKey] || '')))));
|
|
249
250
|
};
|
|
250
251
|
|
|
251
252
|
function formatDate(date) {
|
|
@@ -278,10 +279,10 @@ function getProgress(startDate, endDate) {
|
|
|
278
279
|
}
|
|
279
280
|
|
|
280
281
|
const renderTimeBar = (instance, tournament) => {
|
|
281
|
-
return (h
|
|
282
|
-
h
|
|
283
|
-
h
|
|
284
|
-
h
|
|
282
|
+
return (h("section", { class: "TimeContainer" },
|
|
283
|
+
h("div", { class: 'Time' }, tournament.playerEnrolled ? ([
|
|
284
|
+
h("div", null, getDifference(addSeconds(tournament.startTime, instance.time), tournament.endTime)),
|
|
285
|
+
h("div", null, renderGradientRoundedButton({
|
|
285
286
|
statedClasses: {
|
|
286
287
|
isHollow: true,
|
|
287
288
|
isPendding: false,
|
|
@@ -289,10 +290,10 @@ const renderTimeBar = (instance, tournament) => {
|
|
|
289
290
|
innerHTML: `${getProgress(tournament.startTime, tournament.endTime)}%`
|
|
290
291
|
}))
|
|
291
292
|
]) : ([
|
|
292
|
-
h
|
|
293
|
-
h
|
|
293
|
+
h("div", null, formatDate(tournament.startTime)),
|
|
294
|
+
h("div", null, formatDate(tournament.endTime))
|
|
294
295
|
])),
|
|
295
|
-
h
|
|
296
|
+
h("casino-engagement-suite-progress-bar", { value: Number(getProgress(tournament.startTime, tournament.endTime)), "hide-percent": true })));
|
|
296
297
|
};
|
|
297
298
|
|
|
298
299
|
const messageSender = {
|
|
@@ -451,7 +452,7 @@ const page = {
|
|
|
451
452
|
var _a;
|
|
452
453
|
if (!instance.tournamentList) {
|
|
453
454
|
instance.tournamentList = (_a = instance.leaderboardsInit) === null || _a === void 0 ? void 0 : _a.map(item => tournamentAdapter(item));
|
|
454
|
-
return h
|
|
455
|
+
return h("general-animation-loading", null);
|
|
455
456
|
}
|
|
456
457
|
const { locale } = instance;
|
|
457
458
|
if (instance.tournamentList.length) {
|
|
@@ -459,22 +460,22 @@ const page = {
|
|
|
459
460
|
instance.setPage(LeaderboardPage.item, { tournament });
|
|
460
461
|
instance.newIdList = instance.newIdList.filter(id => id !== tournament.id);
|
|
461
462
|
};
|
|
462
|
-
return renderLeaderboardContainer(instance, h
|
|
463
|
-
h
|
|
463
|
+
return renderLeaderboardContainer(instance, h("div", { class: "Leaderboards Row" }, instance.tournamentList.map(_tournament => (h("div", { class: classnames("LeaderboardsItem", _tournament.playerEnrolled ? ' GradientRounded Hollow' : ''), onClick: () => onClickListItemChangePage(_tournament) },
|
|
464
|
+
h("div", { class: "LeaderboardsItemContainer" },
|
|
464
465
|
renderTitleContainer(instance, _tournament),
|
|
465
466
|
renderTimeBar(instance, _tournament)),
|
|
466
|
-
h
|
|
467
|
-
h
|
|
467
|
+
h("div", { class: "LeaderboardLabels" }, instance.newIdList.includes(_tournament.id) && (h("div", { class: "LeaderboardLabel" },
|
|
468
|
+
h("span", null, "new")))))))));
|
|
468
469
|
}
|
|
469
470
|
else {
|
|
470
|
-
return renderLeaderboardContainer(instance, h
|
|
471
|
-
h
|
|
472
|
-
h
|
|
471
|
+
return renderLeaderboardContainer(instance, h("div", { class: "NoLeaderboards Row" },
|
|
472
|
+
h("div", null, locale.NoLeaderboards),
|
|
473
|
+
h("div", null, locale.NoLeaderboardsTip)));
|
|
473
474
|
}
|
|
474
475
|
},
|
|
475
476
|
item(instance) {
|
|
476
477
|
if (!instance.tournamentItem)
|
|
477
|
-
return h
|
|
478
|
+
return h("general-animation-loading", null);
|
|
478
479
|
const renderTabs = () => {
|
|
479
480
|
const { locale, tab } = instance;
|
|
480
481
|
const onClickTab = (tab) => {
|
|
@@ -489,8 +490,8 @@ const page = {
|
|
|
489
490
|
break;
|
|
490
491
|
}
|
|
491
492
|
};
|
|
492
|
-
return (h
|
|
493
|
-
h
|
|
493
|
+
return (h("div", { class: "TabsContainer" },
|
|
494
|
+
h("div", { class: "Tabs" }, Object.keys(Tab).map((_tab) => (h("div", { class: classnames({ active: tab === _tab }),
|
|
494
495
|
onClick: () => onClickTab(_tab) }, locale[_tab]))))));
|
|
495
496
|
};
|
|
496
497
|
return renderLeaderboardContainer(instance, [
|
|
@@ -511,9 +512,9 @@ const renderTitleContainer = (instance, tournament) => {
|
|
|
511
512
|
instance.tournamentItem = tournament;
|
|
512
513
|
}
|
|
513
514
|
};
|
|
514
|
-
return (h
|
|
515
|
-
h
|
|
516
|
-
tournament.state !== TournamentState.Closed && (h
|
|
515
|
+
return (h("div", { class: "TitleContainer" },
|
|
516
|
+
h("div", { class: "Title" }, tournament.nameOrTitle),
|
|
517
|
+
tournament.state !== TournamentState.Closed && (h("div", null, renderGradientRoundedButton({
|
|
517
518
|
statedClasses: {
|
|
518
519
|
isHollow: tournament.playerEnrolled,
|
|
519
520
|
isPending: instance.isActionJoinPending,
|
|
@@ -528,14 +529,14 @@ const renderTitleContainer = (instance, tournament) => {
|
|
|
528
529
|
const renderLeaderboardContainer = (instance, render) => {
|
|
529
530
|
const { dialog: { isOpen } } = instance;
|
|
530
531
|
const renderBar = renderCloseBar({
|
|
531
|
-
right: (h
|
|
532
|
+
right: (h("span", { onClick: () => instance.closeDialog() }, iconClose))
|
|
532
533
|
});
|
|
533
534
|
const renderDialogContent = () => {
|
|
534
535
|
switch (instance.dialog.type) {
|
|
535
536
|
case DialogType.unjoin:
|
|
536
537
|
return instance.renders.dialog.unjoin(); //renderDialogContentUnjoin()
|
|
537
538
|
case DialogType.tip:
|
|
538
|
-
return (h
|
|
539
|
+
return (h("div", { class: "Tip" }, instance.locale.Tip));
|
|
539
540
|
case DialogType.gift:
|
|
540
541
|
return instance.renders.dialog.gift();
|
|
541
542
|
}
|
|
@@ -545,12 +546,12 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
545
546
|
switch (page) {
|
|
546
547
|
case LeaderboardPage.list:
|
|
547
548
|
return {
|
|
548
|
-
left: h
|
|
549
|
+
left: h("span", { onClick: () => instance.openDialog(DialogType.tip) }, iconQuestion),
|
|
549
550
|
middle: locale.Leaderboards
|
|
550
551
|
};
|
|
551
552
|
case LeaderboardPage.item:
|
|
552
553
|
return {
|
|
553
|
-
left: (h
|
|
554
|
+
left: (h("span", { onClick: () => instance.setPage(LeaderboardPage.list) }, iconBack)),
|
|
554
555
|
middle: '',
|
|
555
556
|
};
|
|
556
557
|
}
|
|
@@ -558,17 +559,17 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
558
559
|
const renderCloseBarInLayout = () => {
|
|
559
560
|
const { left, middle } = getWrapperBarData();
|
|
560
561
|
return renderCloseBar({ left, middle,
|
|
561
|
-
right: (h
|
|
562
|
+
right: (h("span", { onClick: () => instance.close.emit() }, iconClose))
|
|
562
563
|
});
|
|
563
564
|
};
|
|
564
|
-
return (h
|
|
565
|
-
h
|
|
565
|
+
return (h("div", { class: `Wrapper ${instance.device}` },
|
|
566
|
+
h("div", { class: classnames("WrapperContent", { faded: isOpen }) },
|
|
566
567
|
renderCloseBarInLayout(),
|
|
567
|
-
h
|
|
568
|
-
h
|
|
569
|
-
h
|
|
570
|
-
h
|
|
571
|
-
h
|
|
568
|
+
h("div", { class: "Root" },
|
|
569
|
+
h("div", { class: "Main" }, render))),
|
|
570
|
+
h("div", { class: "WrapperUtil" },
|
|
571
|
+
h("dialog", { open: isOpen },
|
|
572
|
+
h("div", { class: "GradientRounded Hollow" },
|
|
572
573
|
renderBar,
|
|
573
574
|
isOpen && renderDialogContent())))));
|
|
574
575
|
};
|
|
@@ -577,53 +578,53 @@ const tab = {
|
|
|
577
578
|
info(instance) {
|
|
578
579
|
var _a, _b;
|
|
579
580
|
const { locale, tournamentItem: tournament, isShowInfo } = instance;
|
|
580
|
-
return (h
|
|
581
|
+
return (h("div", { class: "InfoContainer" },
|
|
581
582
|
renderTimeBar(instance, tournament),
|
|
582
|
-
(h
|
|
583
|
-
h
|
|
584
|
-
h
|
|
585
|
-
h
|
|
586
|
-
isShowInfo && (h
|
|
587
|
-
h
|
|
588
|
-
h
|
|
589
|
-
h
|
|
583
|
+
(h("section", { class: "ShowInfo", onClick: () => instance.isShowInfo = !instance.isShowInfo },
|
|
584
|
+
h("p", null,
|
|
585
|
+
h("span", null, isShowInfo ? iconEyeClose : iconEyeOpen),
|
|
586
|
+
h("span", null, locale.LeaderboardDetails)))),
|
|
587
|
+
isShowInfo && (h("section", { class: "Info" },
|
|
588
|
+
h("div", null, tournament.description),
|
|
589
|
+
h("div", { class: "Criterias" },
|
|
590
|
+
h("div", null,
|
|
590
591
|
locale.ScoreCriteria,
|
|
591
592
|
": ",
|
|
592
|
-
h
|
|
593
|
-
h
|
|
593
|
+
h("span", null, tournament.scoreCriteria)),
|
|
594
|
+
h("div", null,
|
|
594
595
|
locale.MinimumBetCriteria,
|
|
595
596
|
": ",
|
|
596
|
-
h
|
|
597
|
-
h
|
|
598
|
-
h
|
|
599
|
-
isTournamentClosed(instance.tournamentItem) && ((_a = instance.leaderboards) === null || _a === void 0 ? void 0 : _a.find(l => l.isMe)) && (h
|
|
600
|
-
h
|
|
601
|
-
h
|
|
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" },
|
|
602
603
|
iconReward,
|
|
603
|
-
h
|
|
604
|
-
tournament.prizes.map((prize, index) => (h
|
|
604
|
+
h("span", { class: "PrizesText" }, locale.Prizes)),
|
|
605
|
+
tournament.prizes.map((prize, index) => (h("div", { class: "Prize" },
|
|
605
606
|
index + 1,
|
|
606
607
|
" ",
|
|
607
608
|
locale.Place,
|
|
608
609
|
": ",
|
|
609
|
-
h
|
|
610
|
+
h("span", { class: "PrizeText" }, prize.name)))))));
|
|
610
611
|
},
|
|
611
612
|
leaderboard(instance) {
|
|
612
613
|
if (!instance.leaderboards)
|
|
613
|
-
return h
|
|
614
|
+
return h("general-animation-loading", null);
|
|
614
615
|
if (!instance.leaderboards.length)
|
|
615
616
|
return '';
|
|
616
|
-
return (h
|
|
617
|
-
h
|
|
618
|
-
h
|
|
619
|
-
h
|
|
620
|
-
h
|
|
621
|
-
h
|
|
617
|
+
return (h("table", { class: "Leaderboards" }, instance.leaderboards.map(leaderboard => (h("tr", { class: classnames({ isMe: leaderboard.isMe }) },
|
|
618
|
+
h("td", { class: "LeaderboardRank" },
|
|
619
|
+
h("span", null, leaderboard.rank)),
|
|
620
|
+
h("td", { class: "LeaderboardName" }, leaderboard.shortName),
|
|
621
|
+
h("td", { class: "LeaderboardScore" }, leaderboard.score),
|
|
622
|
+
h("td", { class: "LeaderboardPrize" }, leaderboard.prizeName))))));
|
|
622
623
|
},
|
|
623
624
|
games(instance) {
|
|
624
625
|
var _a;
|
|
625
|
-
return (h
|
|
626
|
-
h
|
|
626
|
+
return (h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map(game => (h("div", null,
|
|
627
|
+
h("img", { src: game.defaultThumbnail, alt: "" }))))));
|
|
627
628
|
},
|
|
628
629
|
};
|
|
629
630
|
const getResultPrize = (leaderboard) => {
|
|
@@ -639,534 +640,6 @@ const renders = {
|
|
|
639
640
|
tab
|
|
640
641
|
};
|
|
641
642
|
|
|
642
|
-
function a() {
|
|
643
|
-
}
|
|
644
|
-
function M(t) {
|
|
645
|
-
return t();
|
|
646
|
-
}
|
|
647
|
-
function O() {
|
|
648
|
-
return /* @__PURE__ */ Object.create(null);
|
|
649
|
-
}
|
|
650
|
-
function y(t) {
|
|
651
|
-
t.forEach(M);
|
|
652
|
-
}
|
|
653
|
-
function N(t) {
|
|
654
|
-
return typeof t == "function";
|
|
655
|
-
}
|
|
656
|
-
function R(t, e) {
|
|
657
|
-
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
658
|
-
}
|
|
659
|
-
function T(t) {
|
|
660
|
-
return Object.keys(t).length === 0;
|
|
661
|
-
}
|
|
662
|
-
function H(t, e) {
|
|
663
|
-
t.appendChild(e);
|
|
664
|
-
}
|
|
665
|
-
function U(t, e, n) {
|
|
666
|
-
const s = I(t);
|
|
667
|
-
if (!s.getElementById(e)) {
|
|
668
|
-
const i = v("style");
|
|
669
|
-
i.id = e, i.textContent = n, z(s, i);
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
function I(t) {
|
|
673
|
-
if (!t)
|
|
674
|
-
return document;
|
|
675
|
-
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
676
|
-
return e && /** @type {ShadowRoot} */
|
|
677
|
-
e.host ? (
|
|
678
|
-
/** @type {ShadowRoot} */
|
|
679
|
-
e
|
|
680
|
-
) : t.ownerDocument;
|
|
681
|
-
}
|
|
682
|
-
function z(t, e) {
|
|
683
|
-
return H(
|
|
684
|
-
/** @type {Document} */
|
|
685
|
-
t.head || t,
|
|
686
|
-
e
|
|
687
|
-
), e.sheet;
|
|
688
|
-
}
|
|
689
|
-
function B(t, e, n) {
|
|
690
|
-
t.insertBefore(e, n || null);
|
|
691
|
-
}
|
|
692
|
-
function E(t) {
|
|
693
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
694
|
-
}
|
|
695
|
-
function v(t) {
|
|
696
|
-
return document.createElement(t);
|
|
697
|
-
}
|
|
698
|
-
function D(t, e, n) {
|
|
699
|
-
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
700
|
-
}
|
|
701
|
-
function F(t) {
|
|
702
|
-
return Array.from(t.childNodes);
|
|
703
|
-
}
|
|
704
|
-
function G(t) {
|
|
705
|
-
const e = {};
|
|
706
|
-
return t.childNodes.forEach(
|
|
707
|
-
/** @param {Element} node */
|
|
708
|
-
(n) => {
|
|
709
|
-
e[n.slot || "default"] = !0;
|
|
710
|
-
}
|
|
711
|
-
), e;
|
|
712
|
-
}
|
|
713
|
-
let p;
|
|
714
|
-
function _(t) {
|
|
715
|
-
p = t;
|
|
716
|
-
}
|
|
717
|
-
function J() {
|
|
718
|
-
if (!p)
|
|
719
|
-
throw new Error("Function called outside component initialization");
|
|
720
|
-
return p;
|
|
721
|
-
}
|
|
722
|
-
function V(t) {
|
|
723
|
-
J().$$.on_mount.push(t);
|
|
724
|
-
}
|
|
725
|
-
const $ = [], w = [];
|
|
726
|
-
let h = [];
|
|
727
|
-
const A = [], q = /* @__PURE__ */ Promise.resolve();
|
|
728
|
-
let x = !1;
|
|
729
|
-
function K() {
|
|
730
|
-
x || (x = !0, q.then(m));
|
|
731
|
-
}
|
|
732
|
-
function k(t) {
|
|
733
|
-
h.push(t);
|
|
734
|
-
}
|
|
735
|
-
const b = /* @__PURE__ */ new Set();
|
|
736
|
-
let f = 0;
|
|
737
|
-
function m() {
|
|
738
|
-
if (f !== 0)
|
|
739
|
-
return;
|
|
740
|
-
const t = p;
|
|
741
|
-
do {
|
|
742
|
-
try {
|
|
743
|
-
for (; f < $.length; ) {
|
|
744
|
-
const e = $[f];
|
|
745
|
-
f++, _(e), Q(e.$$);
|
|
746
|
-
}
|
|
747
|
-
} catch (e) {
|
|
748
|
-
throw $.length = 0, f = 0, e;
|
|
749
|
-
}
|
|
750
|
-
for (_(null), $.length = 0, f = 0; w.length; )
|
|
751
|
-
w.pop()();
|
|
752
|
-
for (let e = 0; e < h.length; e += 1) {
|
|
753
|
-
const n = h[e];
|
|
754
|
-
b.has(n) || (b.add(n), n());
|
|
755
|
-
}
|
|
756
|
-
h.length = 0;
|
|
757
|
-
} while ($.length);
|
|
758
|
-
for (; A.length; )
|
|
759
|
-
A.pop()();
|
|
760
|
-
x = !1, b.clear(), _(t);
|
|
761
|
-
}
|
|
762
|
-
function Q(t) {
|
|
763
|
-
if (t.fragment !== null) {
|
|
764
|
-
t.update(), y(t.before_update);
|
|
765
|
-
const e = t.dirty;
|
|
766
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
function W(t) {
|
|
770
|
-
const e = [], n = [];
|
|
771
|
-
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
772
|
-
}
|
|
773
|
-
const X = /* @__PURE__ */ new Set();
|
|
774
|
-
function Y(t, e) {
|
|
775
|
-
t && t.i && (X.delete(t), t.i(e));
|
|
776
|
-
}
|
|
777
|
-
function Z(t, e, n) {
|
|
778
|
-
const { fragment: s, after_update: i } = t.$$;
|
|
779
|
-
s && s.m(e, n), k(() => {
|
|
780
|
-
const r = t.$$.on_mount.map(M).filter(N);
|
|
781
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...r) : y(r), t.$$.on_mount = [];
|
|
782
|
-
}), i.forEach(k);
|
|
783
|
-
}
|
|
784
|
-
function tt(t, e) {
|
|
785
|
-
const n = t.$$;
|
|
786
|
-
n.fragment !== null && (W(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
787
|
-
}
|
|
788
|
-
function et(t, e) {
|
|
789
|
-
t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
790
|
-
}
|
|
791
|
-
function nt(t, e, n, s, i, r, o = null, l = [-1]) {
|
|
792
|
-
const c = p;
|
|
793
|
-
_(t);
|
|
794
|
-
const u = t.$$ = {
|
|
795
|
-
fragment: null,
|
|
796
|
-
ctx: [],
|
|
797
|
-
// state
|
|
798
|
-
props: r,
|
|
799
|
-
update: a,
|
|
800
|
-
not_equal: i,
|
|
801
|
-
bound: O(),
|
|
802
|
-
// lifecycle
|
|
803
|
-
on_mount: [],
|
|
804
|
-
on_destroy: [],
|
|
805
|
-
on_disconnect: [],
|
|
806
|
-
before_update: [],
|
|
807
|
-
after_update: [],
|
|
808
|
-
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
809
|
-
// everything else
|
|
810
|
-
callbacks: O(),
|
|
811
|
-
dirty: l,
|
|
812
|
-
skip_bound: !1,
|
|
813
|
-
root: e.target || c.$$.root
|
|
814
|
-
};
|
|
815
|
-
o && o(u.root);
|
|
816
|
-
let L = !1;
|
|
817
|
-
if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
|
|
818
|
-
const j = S.length ? S[0] : C;
|
|
819
|
-
return u.ctx && i(u.ctx[d], u.ctx[d] = j) && (!u.skip_bound && u.bound[d] && u.bound[d](j), L && et(t, d)), C;
|
|
820
|
-
}) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
|
|
821
|
-
if (e.hydrate) {
|
|
822
|
-
const d = F(e.target);
|
|
823
|
-
u.fragment && u.fragment.l(d), d.forEach(E);
|
|
824
|
-
} else
|
|
825
|
-
u.fragment && u.fragment.c();
|
|
826
|
-
e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
|
|
827
|
-
}
|
|
828
|
-
_(c);
|
|
829
|
-
}
|
|
830
|
-
let P;
|
|
831
|
-
typeof HTMLElement == "function" && (P = class extends HTMLElement {
|
|
832
|
-
/** The Svelte component constructor */
|
|
833
|
-
$$ctor;
|
|
834
|
-
/** Slots */
|
|
835
|
-
$$s;
|
|
836
|
-
/** The Svelte component instance */
|
|
837
|
-
$$c;
|
|
838
|
-
/** Whether or not the custom element is connected */
|
|
839
|
-
$$cn = !1;
|
|
840
|
-
/** Component props data */
|
|
841
|
-
$$d = {};
|
|
842
|
-
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
843
|
-
$$r = !1;
|
|
844
|
-
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
845
|
-
$$p_d = {};
|
|
846
|
-
/** @type {Record<string, Function[]>} Event listeners */
|
|
847
|
-
$$l = {};
|
|
848
|
-
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
849
|
-
$$l_u = /* @__PURE__ */ new Map();
|
|
850
|
-
constructor(t, e, n) {
|
|
851
|
-
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
852
|
-
}
|
|
853
|
-
addEventListener(t, e, n) {
|
|
854
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
855
|
-
const s = this.$$c.$on(t, e);
|
|
856
|
-
this.$$l_u.set(e, s);
|
|
857
|
-
}
|
|
858
|
-
super.addEventListener(t, e, n);
|
|
859
|
-
}
|
|
860
|
-
removeEventListener(t, e, n) {
|
|
861
|
-
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
862
|
-
const s = this.$$l_u.get(e);
|
|
863
|
-
s && (s(), this.$$l_u.delete(e));
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
async connectedCallback() {
|
|
867
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
868
|
-
let t = function(i) {
|
|
869
|
-
return () => {
|
|
870
|
-
let r;
|
|
871
|
-
return {
|
|
872
|
-
c: function() {
|
|
873
|
-
r = v("slot"), i !== "default" && D(r, "name", i);
|
|
874
|
-
},
|
|
875
|
-
/**
|
|
876
|
-
* @param {HTMLElement} target
|
|
877
|
-
* @param {HTMLElement} [anchor]
|
|
878
|
-
*/
|
|
879
|
-
m: function(c, u) {
|
|
880
|
-
B(c, r, u);
|
|
881
|
-
},
|
|
882
|
-
d: function(c) {
|
|
883
|
-
c && E(r);
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
|
-
};
|
|
887
|
-
};
|
|
888
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
889
|
-
return;
|
|
890
|
-
const e = {}, n = G(this);
|
|
891
|
-
for (const i of this.$$s)
|
|
892
|
-
i in n && (e[i] = [t(i)]);
|
|
893
|
-
for (const i of this.attributes) {
|
|
894
|
-
const r = this.$$g_p(i.name);
|
|
895
|
-
r in this.$$d || (this.$$d[r] = g(r, i.value, this.$$p_d, "toProp"));
|
|
896
|
-
}
|
|
897
|
-
for (const i in this.$$p_d)
|
|
898
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
899
|
-
this.$$c = new this.$$ctor({
|
|
900
|
-
target: this.shadowRoot || this,
|
|
901
|
-
props: {
|
|
902
|
-
...this.$$d,
|
|
903
|
-
$$slots: e,
|
|
904
|
-
$$scope: {
|
|
905
|
-
ctx: []
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
const s = () => {
|
|
910
|
-
this.$$r = !0;
|
|
911
|
-
for (const i in this.$$p_d)
|
|
912
|
-
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
913
|
-
const r = g(
|
|
914
|
-
i,
|
|
915
|
-
this.$$d[i],
|
|
916
|
-
this.$$p_d,
|
|
917
|
-
"toAttribute"
|
|
918
|
-
);
|
|
919
|
-
r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
|
|
920
|
-
}
|
|
921
|
-
this.$$r = !1;
|
|
922
|
-
};
|
|
923
|
-
this.$$c.$$.after_update.push(s), s();
|
|
924
|
-
for (const i in this.$$l)
|
|
925
|
-
for (const r of this.$$l[i]) {
|
|
926
|
-
const o = this.$$c.$on(i, r);
|
|
927
|
-
this.$$l_u.set(r, o);
|
|
928
|
-
}
|
|
929
|
-
this.$$l = {};
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
933
|
-
// and setting attributes through setAttribute etc, this is helpful
|
|
934
|
-
attributeChangedCallback(t, e, n) {
|
|
935
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
936
|
-
}
|
|
937
|
-
disconnectedCallback() {
|
|
938
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
939
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
940
|
-
});
|
|
941
|
-
}
|
|
942
|
-
$$g_p(t) {
|
|
943
|
-
return Object.keys(this.$$p_d).find(
|
|
944
|
-
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
945
|
-
) || t;
|
|
946
|
-
}
|
|
947
|
-
});
|
|
948
|
-
function g(t, e, n, s) {
|
|
949
|
-
const i = n[t]?.type;
|
|
950
|
-
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
951
|
-
return e;
|
|
952
|
-
if (s === "toAttribute")
|
|
953
|
-
switch (i) {
|
|
954
|
-
case "Object":
|
|
955
|
-
case "Array":
|
|
956
|
-
return e == null ? null : JSON.stringify(e);
|
|
957
|
-
case "Boolean":
|
|
958
|
-
return e ? "" : null;
|
|
959
|
-
case "Number":
|
|
960
|
-
return e ?? null;
|
|
961
|
-
default:
|
|
962
|
-
return e;
|
|
963
|
-
}
|
|
964
|
-
else
|
|
965
|
-
switch (i) {
|
|
966
|
-
case "Object":
|
|
967
|
-
case "Array":
|
|
968
|
-
return e && JSON.parse(e);
|
|
969
|
-
case "Boolean":
|
|
970
|
-
return e;
|
|
971
|
-
case "Number":
|
|
972
|
-
return e != null ? +e : e;
|
|
973
|
-
default:
|
|
974
|
-
return e;
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
function it(t, e, n, s, i, r) {
|
|
978
|
-
let o = class extends P {
|
|
979
|
-
constructor() {
|
|
980
|
-
super(t, n, i), this.$$p_d = e;
|
|
981
|
-
}
|
|
982
|
-
static get observedAttributes() {
|
|
983
|
-
return Object.keys(e).map(
|
|
984
|
-
(l) => (e[l].attribute || l).toLowerCase()
|
|
985
|
-
);
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
return Object.keys(e).forEach((l) => {
|
|
989
|
-
Object.defineProperty(o.prototype, l, {
|
|
990
|
-
get() {
|
|
991
|
-
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
992
|
-
},
|
|
993
|
-
set(c) {
|
|
994
|
-
c = g(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
|
|
995
|
-
}
|
|
996
|
-
});
|
|
997
|
-
}), s.forEach((l) => {
|
|
998
|
-
Object.defineProperty(o.prototype, l, {
|
|
999
|
-
get() {
|
|
1000
|
-
return this.$$c?.[l];
|
|
1001
|
-
}
|
|
1002
|
-
});
|
|
1003
|
-
}), t.element = /** @type {any} */
|
|
1004
|
-
o, o;
|
|
1005
|
-
}
|
|
1006
|
-
class st {
|
|
1007
|
-
/**
|
|
1008
|
-
* ### PRIVATE API
|
|
1009
|
-
*
|
|
1010
|
-
* Do not use, may change at any time
|
|
1011
|
-
*
|
|
1012
|
-
* @type {any}
|
|
1013
|
-
*/
|
|
1014
|
-
$$ = void 0;
|
|
1015
|
-
/**
|
|
1016
|
-
* ### PRIVATE API
|
|
1017
|
-
*
|
|
1018
|
-
* Do not use, may change at any time
|
|
1019
|
-
*
|
|
1020
|
-
* @type {any}
|
|
1021
|
-
*/
|
|
1022
|
-
$$set = void 0;
|
|
1023
|
-
/** @returns {void} */
|
|
1024
|
-
$destroy() {
|
|
1025
|
-
tt(this, 1), this.$destroy = a;
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* @template {Extract<keyof Events, string>} K
|
|
1029
|
-
* @param {K} type
|
|
1030
|
-
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
1031
|
-
* @returns {() => void}
|
|
1032
|
-
*/
|
|
1033
|
-
$on(e, n) {
|
|
1034
|
-
if (!N(n))
|
|
1035
|
-
return a;
|
|
1036
|
-
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
1037
|
-
return s.push(n), () => {
|
|
1038
|
-
const i = s.indexOf(n);
|
|
1039
|
-
i !== -1 && s.splice(i, 1);
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
/**
|
|
1043
|
-
* @param {Partial<Props>} props
|
|
1044
|
-
* @returns {void}
|
|
1045
|
-
*/
|
|
1046
|
-
$set(e) {
|
|
1047
|
-
this.$$set && !T(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
const rt = "4";
|
|
1051
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
|
|
1052
|
-
function ct(t, e) {
|
|
1053
|
-
if (t) {
|
|
1054
|
-
const n = document.createElement("style");
|
|
1055
|
-
n.innerHTML = e, t.appendChild(n);
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
function ot(t, e) {
|
|
1059
|
-
const n = new URL(e);
|
|
1060
|
-
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
1061
|
-
const i = document.createElement("style");
|
|
1062
|
-
i.innerHTML = s, t && t.appendChild(i);
|
|
1063
|
-
}).catch((s) => {
|
|
1064
|
-
console.error("There was an error while trying to load client styling from URL", s);
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
function lt(t, e, n) {
|
|
1068
|
-
if (window.emMessageBus) {
|
|
1069
|
-
const s = document.createElement("style");
|
|
1070
|
-
window.emMessageBus.subscribe(e, (i) => {
|
|
1071
|
-
s.innerHTML = i, t && t.appendChild(s);
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
function ut(t) {
|
|
1076
|
-
U(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
1077
|
-
}
|
|
1078
|
-
function dt(t) {
|
|
1079
|
-
let e;
|
|
1080
|
-
return {
|
|
1081
|
-
c() {
|
|
1082
|
-
e = v("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
1083
|
-
},
|
|
1084
|
-
m(n, s) {
|
|
1085
|
-
B(n, e, s), t[4](e);
|
|
1086
|
-
},
|
|
1087
|
-
p: a,
|
|
1088
|
-
i: a,
|
|
1089
|
-
o: a,
|
|
1090
|
-
d(n) {
|
|
1091
|
-
n && E(e), t[4](null);
|
|
1092
|
-
}
|
|
1093
|
-
};
|
|
1094
|
-
}
|
|
1095
|
-
function ft(t, e, n) {
|
|
1096
|
-
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: r } = e, o;
|
|
1097
|
-
V(() => () => {
|
|
1098
|
-
});
|
|
1099
|
-
function l(c) {
|
|
1100
|
-
w[c ? "unshift" : "push"](() => {
|
|
1101
|
-
o = c, n(0, o);
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
return t.$$set = (c) => {
|
|
1105
|
-
"clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
|
|
1106
|
-
}, t.$$.update = () => {
|
|
1107
|
-
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
1108
|
-
3 && s && o && ct(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
1109
|
-
5 && i && o && ot(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
1110
|
-
9 && r && o && lt(o, `${r}.Style`);
|
|
1111
|
-
}, [
|
|
1112
|
-
o,
|
|
1113
|
-
s,
|
|
1114
|
-
i,
|
|
1115
|
-
r,
|
|
1116
|
-
l
|
|
1117
|
-
];
|
|
1118
|
-
}
|
|
1119
|
-
class $t extends st {
|
|
1120
|
-
constructor(e) {
|
|
1121
|
-
super(), nt(
|
|
1122
|
-
this,
|
|
1123
|
-
e,
|
|
1124
|
-
ft,
|
|
1125
|
-
dt,
|
|
1126
|
-
R,
|
|
1127
|
-
{
|
|
1128
|
-
clientstyling: 1,
|
|
1129
|
-
clientstylingurl: 2,
|
|
1130
|
-
mbsource: 3
|
|
1131
|
-
},
|
|
1132
|
-
ut
|
|
1133
|
-
);
|
|
1134
|
-
}
|
|
1135
|
-
get clientstyling() {
|
|
1136
|
-
return this.$$.ctx[1];
|
|
1137
|
-
}
|
|
1138
|
-
set clientstyling(e) {
|
|
1139
|
-
this.$$set({ clientstyling: e }), m();
|
|
1140
|
-
}
|
|
1141
|
-
get clientstylingurl() {
|
|
1142
|
-
return this.$$.ctx[2];
|
|
1143
|
-
}
|
|
1144
|
-
set clientstylingurl(e) {
|
|
1145
|
-
this.$$set({ clientstylingurl: e }), m();
|
|
1146
|
-
}
|
|
1147
|
-
get mbsource() {
|
|
1148
|
-
return this.$$.ctx[3];
|
|
1149
|
-
}
|
|
1150
|
-
set mbsource(e) {
|
|
1151
|
-
this.$$set({ mbsource: e }), m();
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
it($t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
1155
|
-
|
|
1156
|
-
function i(n) {
|
|
1157
|
-
return function(...t) {
|
|
1158
|
-
try {
|
|
1159
|
-
return n.apply(this, t);
|
|
1160
|
-
} catch (e) {
|
|
1161
|
-
if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
1162
|
-
return !1;
|
|
1163
|
-
throw e;
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
}
|
|
1167
|
-
customElements.define = i(customElements.define);
|
|
1168
|
-
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", $t.element);
|
|
1169
|
-
|
|
1170
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}.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}";
|
|
1171
644
|
const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;
|
|
1172
645
|
|
|
@@ -1272,7 +745,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
1272
745
|
this.page = page;
|
|
1273
746
|
}
|
|
1274
747
|
render() {
|
|
1275
|
-
return (h
|
|
748
|
+
return (h(Host, { key: 'f9e9ea96e0fddd20d3f12141c7cf66588ab94ccd' }, h("general-styling-wrapper", { key: 'aea948ea6c8f8cc5e4aaea5812873d3fe7045568', clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
1276
749
|
// @ts-ignore
|
|
1277
750
|
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), this.renders.page[this.page]()));
|
|
1278
751
|
}
|