@everymatrix/casino-engagement-suite-tournament 1.53.12 → 1.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/{p-f3795238.entry.js → p-a4450dc8.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-be135960.js +1 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +1 -1
- package/dist/cjs/{casino-engagement-suite-tournament-c194e96a.js → casino-engagement-suite-tournament-7dcc8c92.js} +6 -484
- package/dist/cjs/index.cjs.js +1 -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 +1 -1
- package/dist/esm/{casino-engagement-suite-tournament-18e62f35.js → casino-engagement-suite-tournament-fa3789eb.js} +89 -567
- package/dist/esm/index.js +1 -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 +2 -0
- 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 +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-575729c8.js +0 -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 +0 -2
- 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 +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h, H as Host, r as registerInstance, c as createEvent } from './index-b5adca25.js';
|
|
2
2
|
|
|
3
3
|
/******************************************************************************
|
|
4
4
|
Copyright (c) Microsoft Corporation.
|
|
@@ -130,22 +130,22 @@ const isTournamentClosed = (tournament) => {
|
|
|
130
130
|
return [TournamentState.Closed, TournamentState.Closing].includes(tournament.state);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
const iconClose = h
|
|
134
|
-
const iconQuestion = h
|
|
135
|
-
const iconEyeOpen = h
|
|
136
|
-
const iconEyeClose = h
|
|
137
|
-
const iconBack = h
|
|
138
|
-
const iconReward = h
|
|
139
|
-
const iconTrophy = h
|
|
133
|
+
const iconClose = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/close.svg" });
|
|
134
|
+
const iconQuestion = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/help.svg" });
|
|
135
|
+
const iconEyeOpen = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg" });
|
|
136
|
+
const iconEyeClose = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg" });
|
|
137
|
+
const iconBack = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/back.svg" });
|
|
138
|
+
const iconReward = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/reward.svg" });
|
|
139
|
+
const iconTrophy = h("img", { src: "https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg" });
|
|
140
140
|
|
|
141
141
|
const renderGradientRoundedButton = (_a) => {
|
|
142
142
|
var { statedClasses, innerHTML } = _a, props = __rest(_a, ["statedClasses", "innerHTML"]);
|
|
143
143
|
const { isHollow, isPending } = statedClasses;
|
|
144
|
-
return (h
|
|
144
|
+
return (h("button", Object.assign({ class: classnames('GradientRoundedButton', 'GradientRounded', {
|
|
145
145
|
Hollow: isHollow || false,
|
|
146
146
|
Pending: isPending || false,
|
|
147
147
|
}) }, props),
|
|
148
|
-
h
|
|
148
|
+
h("span", null, innerHTML)));
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
var GradientButton;
|
|
@@ -186,18 +186,18 @@ const dialog = {
|
|
|
186
186
|
gift(instance) {
|
|
187
187
|
const { name: tournamentName } = instance.gifts[0];
|
|
188
188
|
const { locale } = instance;
|
|
189
|
-
return (h
|
|
190
|
-
h
|
|
191
|
-
h
|
|
192
|
-
h
|
|
193
|
-
h
|
|
194
|
-
h
|
|
189
|
+
return (h("div", { class: "PageConfirmContainer" },
|
|
190
|
+
h("div", { class: "PageConfirm" },
|
|
191
|
+
h("div", null, iconTrophy),
|
|
192
|
+
h("div", { class: "Title" }, locale.WinDialog.Tile),
|
|
193
|
+
h("div", { class: "Description", innerHTML: localePostprocess(locale.WinDialog.Description, { tournamentName }) }),
|
|
194
|
+
h("div", { class: "PageConfirmButtonsGroup" }, renderButton(instance, GradientButton.normal)))));
|
|
195
195
|
},
|
|
196
196
|
unjoin(instance) {
|
|
197
197
|
const { locale } = instance;
|
|
198
|
-
return (h
|
|
199
|
-
h
|
|
200
|
-
h
|
|
198
|
+
return (h("div", { class: "DialogContentUnjoin" },
|
|
199
|
+
h("div", { class: "DialogContentUnjoinTitle" }, locale.UnjoinDialog.Title),
|
|
200
|
+
h("div", { class: "DialogContentUnjoinDescription", innerHTML: locale.UnjoinDialog.Description }),
|
|
201
201
|
renderButton(instance, GradientButton.unjoinYes),
|
|
202
202
|
renderButton(instance, GradientButton.unjoinNo)));
|
|
203
203
|
}
|
|
@@ -250,7 +250,7 @@ const renderCloseBar = (attr) => {
|
|
|
250
250
|
.split('')
|
|
251
251
|
.map((letter, index) => index === 0 ? letter.toUpperCase() : letter)
|
|
252
252
|
.join('');
|
|
253
|
-
return (h
|
|
253
|
+
return (h("div", { class: "WrapperBar" }, Object.keys(slots).map(slotKey => (h("div", { class: "WrapperBar" + getFirstLetterUppercase(slotKey) }, slots[slotKey] || '')))));
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
function formatDate(date) {
|
|
@@ -283,10 +283,10 @@ function getProgress(startDate, endDate) {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
const renderTimeBar = (instance, tournament) => {
|
|
286
|
-
return (h
|
|
287
|
-
h
|
|
288
|
-
h
|
|
289
|
-
h
|
|
286
|
+
return (h("section", { class: "TimeContainer" },
|
|
287
|
+
h("div", { class: 'Time' }, tournament.playerEnrolled ? ([
|
|
288
|
+
h("div", null, getDifference(addSeconds(tournament.startTime, instance.time), tournament.endTime)),
|
|
289
|
+
h("div", null, renderGradientRoundedButton({
|
|
290
290
|
statedClasses: {
|
|
291
291
|
isHollow: true,
|
|
292
292
|
isPendding: false,
|
|
@@ -294,10 +294,10 @@ const renderTimeBar = (instance, tournament) => {
|
|
|
294
294
|
innerHTML: `${getProgress(tournament.startTime, tournament.endTime)}%`
|
|
295
295
|
}))
|
|
296
296
|
]) : ([
|
|
297
|
-
h
|
|
298
|
-
h
|
|
297
|
+
h("div", null, formatDate(tournament.startTime)),
|
|
298
|
+
h("div", null, formatDate(tournament.endTime))
|
|
299
299
|
])),
|
|
300
|
-
h
|
|
300
|
+
h("casino-engagement-suite-progress-bar", { value: Number(getProgress(tournament.startTime, tournament.endTime)), "hide-percent": true })));
|
|
301
301
|
};
|
|
302
302
|
|
|
303
303
|
const messageSender = {
|
|
@@ -456,7 +456,7 @@ const page = {
|
|
|
456
456
|
var _a;
|
|
457
457
|
if (!instance.tournamentList) {
|
|
458
458
|
instance.tournamentList = (_a = instance.leaderboardsInit) === null || _a === void 0 ? void 0 : _a.map(item => tournamentAdapter(item));
|
|
459
|
-
return h
|
|
459
|
+
return h("general-animation-loading", null);
|
|
460
460
|
}
|
|
461
461
|
const { locale } = instance;
|
|
462
462
|
if (instance.tournamentList.length) {
|
|
@@ -464,22 +464,22 @@ const page = {
|
|
|
464
464
|
instance.setPage(LeaderboardPage.item, { tournament });
|
|
465
465
|
instance.newIdList = instance.newIdList.filter(id => id !== tournament.id);
|
|
466
466
|
};
|
|
467
|
-
return renderLeaderboardContainer(instance, h
|
|
468
|
-
h
|
|
467
|
+
return renderLeaderboardContainer(instance, h("div", { class: "Leaderboards Row" }, instance.tournamentList.map(_tournament => (h("div", { class: classnames("LeaderboardsItem", _tournament.playerEnrolled ? ' GradientRounded Hollow' : ''), onClick: () => onClickListItemChangePage(_tournament) },
|
|
468
|
+
h("div", { class: "LeaderboardsItemContainer" },
|
|
469
469
|
renderTitleContainer(instance, _tournament),
|
|
470
470
|
renderTimeBar(instance, _tournament)),
|
|
471
|
-
h
|
|
472
|
-
h
|
|
471
|
+
h("div", { class: "LeaderboardLabels" }, instance.newIdList.includes(_tournament.id) && (h("div", { class: "LeaderboardLabel" },
|
|
472
|
+
h("span", null, "new")))))))));
|
|
473
473
|
}
|
|
474
474
|
else {
|
|
475
|
-
return renderLeaderboardContainer(instance, h
|
|
476
|
-
h
|
|
477
|
-
h
|
|
475
|
+
return renderLeaderboardContainer(instance, h("div", { class: "NoLeaderboards Row" },
|
|
476
|
+
h("div", null, locale.NoLeaderboards),
|
|
477
|
+
h("div", null, locale.NoLeaderboardsTip)));
|
|
478
478
|
}
|
|
479
479
|
},
|
|
480
480
|
item(instance) {
|
|
481
481
|
if (!instance.tournamentItem)
|
|
482
|
-
return h
|
|
482
|
+
return h("general-animation-loading", null);
|
|
483
483
|
const renderTabs = () => {
|
|
484
484
|
const { locale, tab } = instance;
|
|
485
485
|
const onClickTab = (tab) => {
|
|
@@ -494,8 +494,8 @@ const page = {
|
|
|
494
494
|
break;
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
|
-
return (h
|
|
498
|
-
h
|
|
497
|
+
return (h("div", { class: "TabsContainer" },
|
|
498
|
+
h("div", { class: "Tabs" }, Object.keys(Tab).map((_tab) => (h("div", { class: classnames({ active: tab === _tab }),
|
|
499
499
|
onClick: () => onClickTab(_tab) }, locale[_tab]))))));
|
|
500
500
|
};
|
|
501
501
|
return renderLeaderboardContainer(instance, [
|
|
@@ -516,9 +516,9 @@ const renderTitleContainer = (instance, tournament) => {
|
|
|
516
516
|
instance.tournamentItem = tournament;
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
return (h
|
|
520
|
-
h
|
|
521
|
-
tournament.state !== TournamentState.Closed && (h
|
|
519
|
+
return (h("div", { class: "TitleContainer" },
|
|
520
|
+
h("div", { class: "Title" }, tournament.nameOrTitle),
|
|
521
|
+
tournament.state !== TournamentState.Closed && (h("div", null, renderGradientRoundedButton({
|
|
522
522
|
statedClasses: {
|
|
523
523
|
isHollow: tournament.playerEnrolled,
|
|
524
524
|
isPending: instance.isActionJoinPending,
|
|
@@ -533,14 +533,14 @@ const renderTitleContainer = (instance, tournament) => {
|
|
|
533
533
|
const renderLeaderboardContainer = (instance, render) => {
|
|
534
534
|
const { dialog: { isOpen } } = instance;
|
|
535
535
|
const renderBar = renderCloseBar({
|
|
536
|
-
right: (h
|
|
536
|
+
right: (h("span", { onClick: () => instance.closeDialog() }, iconClose))
|
|
537
537
|
});
|
|
538
538
|
const renderDialogContent = () => {
|
|
539
539
|
switch (instance.dialog.type) {
|
|
540
540
|
case DialogType.unjoin:
|
|
541
541
|
return instance.renders.dialog.unjoin(); //renderDialogContentUnjoin()
|
|
542
542
|
case DialogType.tip:
|
|
543
|
-
return (h
|
|
543
|
+
return (h("div", { class: "Tip" }, instance.locale.Tip));
|
|
544
544
|
case DialogType.gift:
|
|
545
545
|
return instance.renders.dialog.gift();
|
|
546
546
|
}
|
|
@@ -550,12 +550,12 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
550
550
|
switch (page) {
|
|
551
551
|
case LeaderboardPage.list:
|
|
552
552
|
return {
|
|
553
|
-
left: h
|
|
553
|
+
left: h("span", { onClick: () => instance.openDialog(DialogType.tip) }, iconQuestion),
|
|
554
554
|
middle: locale.Leaderboards
|
|
555
555
|
};
|
|
556
556
|
case LeaderboardPage.item:
|
|
557
557
|
return {
|
|
558
|
-
left: (h
|
|
558
|
+
left: (h("span", { onClick: () => instance.setPage(LeaderboardPage.list) }, iconBack)),
|
|
559
559
|
middle: '',
|
|
560
560
|
};
|
|
561
561
|
}
|
|
@@ -563,17 +563,17 @@ const renderLeaderboardContainer = (instance, render) => {
|
|
|
563
563
|
const renderCloseBarInLayout = () => {
|
|
564
564
|
const { left, middle } = getWrapperBarData();
|
|
565
565
|
return renderCloseBar({ left, middle,
|
|
566
|
-
right: (h
|
|
566
|
+
right: (h("span", { onClick: () => instance.close.emit() }, iconClose))
|
|
567
567
|
});
|
|
568
568
|
};
|
|
569
|
-
return (h
|
|
570
|
-
h
|
|
569
|
+
return (h("div", { class: `Wrapper ${instance.device}` },
|
|
570
|
+
h("div", { class: classnames("WrapperContent", { faded: isOpen }) },
|
|
571
571
|
renderCloseBarInLayout(),
|
|
572
|
-
h
|
|
573
|
-
h
|
|
574
|
-
h
|
|
575
|
-
h
|
|
576
|
-
h
|
|
572
|
+
h("div", { class: "Root" },
|
|
573
|
+
h("div", { class: "Main" }, render))),
|
|
574
|
+
h("div", { class: "WrapperUtil" },
|
|
575
|
+
h("dialog", { open: isOpen },
|
|
576
|
+
h("div", { class: "GradientRounded Hollow" },
|
|
577
577
|
renderBar,
|
|
578
578
|
isOpen && renderDialogContent())))));
|
|
579
579
|
};
|
|
@@ -582,53 +582,53 @@ const tab = {
|
|
|
582
582
|
info(instance) {
|
|
583
583
|
var _a, _b;
|
|
584
584
|
const { locale, tournamentItem: tournament, isShowInfo } = instance;
|
|
585
|
-
return (h
|
|
585
|
+
return (h("div", { class: "InfoContainer" },
|
|
586
586
|
renderTimeBar(instance, tournament),
|
|
587
|
-
(h
|
|
588
|
-
h
|
|
589
|
-
h
|
|
590
|
-
h
|
|
591
|
-
isShowInfo && (h
|
|
592
|
-
h
|
|
593
|
-
h
|
|
594
|
-
h
|
|
587
|
+
(h("section", { class: "ShowInfo", onClick: () => instance.isShowInfo = !instance.isShowInfo },
|
|
588
|
+
h("p", null,
|
|
589
|
+
h("span", null, isShowInfo ? iconEyeClose : iconEyeOpen),
|
|
590
|
+
h("span", null, locale.LeaderboardDetails)))),
|
|
591
|
+
isShowInfo && (h("section", { class: "Info" },
|
|
592
|
+
h("div", null, tournament.description),
|
|
593
|
+
h("div", { class: "Criterias" },
|
|
594
|
+
h("div", null,
|
|
595
595
|
locale.ScoreCriteria,
|
|
596
596
|
": ",
|
|
597
|
-
h
|
|
598
|
-
h
|
|
597
|
+
h("span", null, tournament.scoreCriteria)),
|
|
598
|
+
h("div", null,
|
|
599
599
|
locale.MinimumBetCriteria,
|
|
600
600
|
": ",
|
|
601
|
-
h
|
|
602
|
-
h
|
|
603
|
-
h
|
|
604
|
-
isTournamentClosed(instance.tournamentItem) && ((_a = instance.leaderboards) === null || _a === void 0 ? void 0 : _a.find(l => l.isMe)) && (h
|
|
605
|
-
h
|
|
606
|
-
h
|
|
601
|
+
h("span", null, tournament.minBetCount))),
|
|
602
|
+
h("div", { class: "TC" },
|
|
603
|
+
h("a", { href: tournament.termsUrl, target: '_blank' }, locale.TC)))),
|
|
604
|
+
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))) })),
|
|
605
|
+
h("section", { class: "Prizes" },
|
|
606
|
+
h("div", { class: "PrizesHeader" },
|
|
607
607
|
iconReward,
|
|
608
|
-
h
|
|
609
|
-
tournament.prizes.map((prize, index) => (h
|
|
608
|
+
h("span", { class: "PrizesText" }, locale.Prizes)),
|
|
609
|
+
tournament.prizes.map((prize, index) => (h("div", { class: "Prize" },
|
|
610
610
|
index + 1,
|
|
611
611
|
" ",
|
|
612
612
|
locale.Place,
|
|
613
613
|
": ",
|
|
614
|
-
h
|
|
614
|
+
h("span", { class: "PrizeText" }, prize.name)))))));
|
|
615
615
|
},
|
|
616
616
|
leaderboard(instance) {
|
|
617
617
|
if (!instance.leaderboards)
|
|
618
|
-
return h
|
|
618
|
+
return h("general-animation-loading", null);
|
|
619
619
|
if (!instance.leaderboards.length)
|
|
620
620
|
return '';
|
|
621
|
-
return (h
|
|
622
|
-
h
|
|
623
|
-
h
|
|
624
|
-
h
|
|
625
|
-
h
|
|
626
|
-
h
|
|
621
|
+
return (h("table", { class: "Leaderboards" }, instance.leaderboards.map(leaderboard => (h("tr", { class: classnames({ isMe: leaderboard.isMe }) },
|
|
622
|
+
h("td", { class: "LeaderboardRank" },
|
|
623
|
+
h("span", null, leaderboard.rank)),
|
|
624
|
+
h("td", { class: "LeaderboardName" }, leaderboard.shortName),
|
|
625
|
+
h("td", { class: "LeaderboardScore" }, leaderboard.score),
|
|
626
|
+
h("td", { class: "LeaderboardPrize" }, leaderboard.prizeName))))));
|
|
627
627
|
},
|
|
628
628
|
games(instance) {
|
|
629
629
|
var _a;
|
|
630
|
-
return (h
|
|
631
|
-
h
|
|
630
|
+
return (h("div", { class: "Games" }, (_a = instance.tournamentItem.games) === null || _a === void 0 ? void 0 : _a.map(game => (h("div", null,
|
|
631
|
+
h("img", { src: game.defaultThumbnail, alt: "" }))))));
|
|
632
632
|
},
|
|
633
633
|
};
|
|
634
634
|
const getResultPrize = (leaderboard) => {
|
|
@@ -644,491 +644,13 @@ const renders = {
|
|
|
644
644
|
tab
|
|
645
645
|
};
|
|
646
646
|
|
|
647
|
-
|
|
648
|
-
}
|
|
649
|
-
function N(t) {
|
|
650
|
-
return t();
|
|
651
|
-
}
|
|
652
|
-
function A() {
|
|
653
|
-
return /* @__PURE__ */ Object.create(null);
|
|
654
|
-
}
|
|
655
|
-
function y(t) {
|
|
656
|
-
t.forEach(N);
|
|
657
|
-
}
|
|
658
|
-
function P(t) {
|
|
659
|
-
return typeof t == "function";
|
|
660
|
-
}
|
|
661
|
-
function B(t, e) {
|
|
662
|
-
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
663
|
-
}
|
|
664
|
-
function R(t) {
|
|
665
|
-
return Object.keys(t).length === 0;
|
|
666
|
-
}
|
|
667
|
-
function H(t, e) {
|
|
668
|
-
t.appendChild(e);
|
|
669
|
-
}
|
|
670
|
-
function I(t, e, n) {
|
|
671
|
-
const s = U(t);
|
|
672
|
-
if (!s.getElementById(e)) {
|
|
673
|
-
const i = v("style");
|
|
674
|
-
i.id = e, i.textContent = n, D(s, i);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
function U(t) {
|
|
678
|
-
if (!t) return document;
|
|
679
|
-
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
680
|
-
return e && /** @type {ShadowRoot} */
|
|
681
|
-
e.host ? (
|
|
682
|
-
/** @type {ShadowRoot} */
|
|
683
|
-
e
|
|
684
|
-
) : t.ownerDocument;
|
|
685
|
-
}
|
|
686
|
-
function D(t, e) {
|
|
687
|
-
return H(
|
|
688
|
-
/** @type {Document} */
|
|
689
|
-
t.head || t,
|
|
690
|
-
e
|
|
691
|
-
), e.sheet;
|
|
692
|
-
}
|
|
693
|
-
function M(t, e, n) {
|
|
694
|
-
t.insertBefore(e, n || null);
|
|
695
|
-
}
|
|
696
|
-
function E(t) {
|
|
697
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
698
|
-
}
|
|
699
|
-
function v(t) {
|
|
700
|
-
return document.createElement(t);
|
|
701
|
-
}
|
|
702
|
-
function G(t, e, n) {
|
|
703
|
-
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
704
|
-
}
|
|
705
|
-
function J(t) {
|
|
706
|
-
return Array.from(t.childNodes);
|
|
707
|
-
}
|
|
708
|
-
function V(t) {
|
|
709
|
-
const e = {};
|
|
710
|
-
return t.childNodes.forEach(
|
|
711
|
-
/** @param {Element} node */
|
|
712
|
-
(n) => {
|
|
713
|
-
e[n.slot || "default"] = !0;
|
|
714
|
-
}
|
|
715
|
-
), e;
|
|
716
|
-
}
|
|
717
|
-
let C;
|
|
718
|
-
function p(t) {
|
|
719
|
-
C = t;
|
|
720
|
-
}
|
|
721
|
-
const f = [], x = [];
|
|
722
|
-
let h = [];
|
|
723
|
-
const S = [], z = /* @__PURE__ */ Promise.resolve();
|
|
724
|
-
let w = !1;
|
|
725
|
-
function F() {
|
|
726
|
-
w || (w = !0, z.then(m));
|
|
727
|
-
}
|
|
728
|
-
function k(t) {
|
|
729
|
-
h.push(t);
|
|
730
|
-
}
|
|
731
|
-
const b = /* @__PURE__ */ new Set();
|
|
732
|
-
let $ = 0;
|
|
733
|
-
function m() {
|
|
734
|
-
if ($ !== 0)
|
|
735
|
-
return;
|
|
736
|
-
const t = C;
|
|
737
|
-
do {
|
|
738
|
-
try {
|
|
739
|
-
for (; $ < f.length; ) {
|
|
740
|
-
const e = f[$];
|
|
741
|
-
$++, p(e), q(e.$$);
|
|
742
|
-
}
|
|
743
|
-
} catch (e) {
|
|
744
|
-
throw f.length = 0, $ = 0, e;
|
|
745
|
-
}
|
|
746
|
-
for (p(null), f.length = 0, $ = 0; x.length; ) x.pop()();
|
|
747
|
-
for (let e = 0; e < h.length; e += 1) {
|
|
748
|
-
const n = h[e];
|
|
749
|
-
b.has(n) || (b.add(n), n());
|
|
750
|
-
}
|
|
751
|
-
h.length = 0;
|
|
752
|
-
} while (f.length);
|
|
753
|
-
for (; S.length; )
|
|
754
|
-
S.pop()();
|
|
755
|
-
w = !1, b.clear(), p(t);
|
|
756
|
-
}
|
|
757
|
-
function q(t) {
|
|
758
|
-
if (t.fragment !== null) {
|
|
759
|
-
t.update(), y(t.before_update);
|
|
760
|
-
const e = t.dirty;
|
|
761
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
function K(t) {
|
|
765
|
-
const e = [], n = [];
|
|
766
|
-
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
767
|
-
}
|
|
768
|
-
const Q = /* @__PURE__ */ new Set();
|
|
769
|
-
function W(t, e) {
|
|
770
|
-
t && t.i && (Q.delete(t), t.i(e));
|
|
771
|
-
}
|
|
772
|
-
function X(t, e, n) {
|
|
773
|
-
const { fragment: s, after_update: i } = t.$$;
|
|
774
|
-
s && s.m(e, n), k(() => {
|
|
775
|
-
const l = t.$$.on_mount.map(N).filter(P);
|
|
776
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...l) : y(l), t.$$.on_mount = [];
|
|
777
|
-
}), i.forEach(k);
|
|
778
|
-
}
|
|
779
|
-
function Y(t, e) {
|
|
780
|
-
const n = t.$$;
|
|
781
|
-
n.fragment !== null && (K(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
782
|
-
}
|
|
783
|
-
function Z(t, e) {
|
|
784
|
-
t.$$.dirty[0] === -1 && (f.push(t), F(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
785
|
-
}
|
|
786
|
-
function tt(t, e, n, s, i, l, u = null, c = [-1]) {
|
|
787
|
-
const o = C;
|
|
788
|
-
p(t);
|
|
789
|
-
const r = t.$$ = {
|
|
790
|
-
fragment: null,
|
|
791
|
-
ctx: [],
|
|
792
|
-
// state
|
|
793
|
-
props: l,
|
|
794
|
-
update: a,
|
|
795
|
-
not_equal: i,
|
|
796
|
-
bound: A(),
|
|
797
|
-
// lifecycle
|
|
798
|
-
on_mount: [],
|
|
799
|
-
on_destroy: [],
|
|
800
|
-
on_disconnect: [],
|
|
801
|
-
before_update: [],
|
|
802
|
-
after_update: [],
|
|
803
|
-
context: new Map(e.context || (o ? o.$$.context : [])),
|
|
804
|
-
// everything else
|
|
805
|
-
callbacks: A(),
|
|
806
|
-
dirty: c,
|
|
807
|
-
skip_bound: !1,
|
|
808
|
-
root: e.target || o.$$.root
|
|
809
|
-
};
|
|
810
|
-
u && u(r.root);
|
|
811
|
-
let _ = !1;
|
|
812
|
-
if (r.ctx = n(t, e.props || {}, (d, L, ...j) => {
|
|
813
|
-
const O = j.length ? j[0] : L;
|
|
814
|
-
return r.ctx && i(r.ctx[d], r.ctx[d] = O) && (!r.skip_bound && r.bound[d] && r.bound[d](O), _ && Z(t, d)), L;
|
|
815
|
-
}), r.update(), _ = !0, y(r.before_update), r.fragment = s(r.ctx), e.target) {
|
|
816
|
-
if (e.hydrate) {
|
|
817
|
-
const d = J(e.target);
|
|
818
|
-
r.fragment && r.fragment.l(d), d.forEach(E);
|
|
819
|
-
} else
|
|
820
|
-
r.fragment && r.fragment.c();
|
|
821
|
-
e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), m();
|
|
822
|
-
}
|
|
823
|
-
p(o);
|
|
824
|
-
}
|
|
825
|
-
let T;
|
|
826
|
-
typeof HTMLElement == "function" && (T = class extends HTMLElement {
|
|
827
|
-
/** The Svelte component constructor */
|
|
828
|
-
$$ctor;
|
|
829
|
-
/** Slots */
|
|
830
|
-
$$s;
|
|
831
|
-
/** The Svelte component instance */
|
|
832
|
-
$$c;
|
|
833
|
-
/** Whether or not the custom element is connected */
|
|
834
|
-
$$cn = !1;
|
|
835
|
-
/** Component props data */
|
|
836
|
-
$$d = {};
|
|
837
|
-
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
838
|
-
$$r = !1;
|
|
839
|
-
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
840
|
-
$$p_d = {};
|
|
841
|
-
/** @type {Record<string, Function[]>} Event listeners */
|
|
842
|
-
$$l = {};
|
|
843
|
-
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
844
|
-
$$l_u = /* @__PURE__ */ new Map();
|
|
845
|
-
constructor(t, e, n) {
|
|
846
|
-
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
847
|
-
}
|
|
848
|
-
addEventListener(t, e, n) {
|
|
849
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
850
|
-
const s = this.$$c.$on(t, e);
|
|
851
|
-
this.$$l_u.set(e, s);
|
|
852
|
-
}
|
|
853
|
-
super.addEventListener(t, e, n);
|
|
854
|
-
}
|
|
855
|
-
removeEventListener(t, e, n) {
|
|
856
|
-
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
857
|
-
const s = this.$$l_u.get(e);
|
|
858
|
-
s && (s(), this.$$l_u.delete(e));
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
async connectedCallback() {
|
|
862
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
863
|
-
let t = function(i) {
|
|
864
|
-
return () => {
|
|
865
|
-
let l;
|
|
866
|
-
return {
|
|
867
|
-
c: function() {
|
|
868
|
-
l = v("slot"), i !== "default" && G(l, "name", i);
|
|
869
|
-
},
|
|
870
|
-
/**
|
|
871
|
-
* @param {HTMLElement} target
|
|
872
|
-
* @param {HTMLElement} [anchor]
|
|
873
|
-
*/
|
|
874
|
-
m: function(o, r) {
|
|
875
|
-
M(o, l, r);
|
|
876
|
-
},
|
|
877
|
-
d: function(o) {
|
|
878
|
-
o && E(l);
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
884
|
-
return;
|
|
885
|
-
const e = {}, n = V(this);
|
|
886
|
-
for (const i of this.$$s)
|
|
887
|
-
i in n && (e[i] = [t(i)]);
|
|
888
|
-
for (const i of this.attributes) {
|
|
889
|
-
const l = this.$$g_p(i.name);
|
|
890
|
-
l in this.$$d || (this.$$d[l] = g(l, i.value, this.$$p_d, "toProp"));
|
|
891
|
-
}
|
|
892
|
-
for (const i in this.$$p_d)
|
|
893
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
894
|
-
this.$$c = new this.$$ctor({
|
|
895
|
-
target: this.shadowRoot || this,
|
|
896
|
-
props: {
|
|
897
|
-
...this.$$d,
|
|
898
|
-
$$slots: e,
|
|
899
|
-
$$scope: {
|
|
900
|
-
ctx: []
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
});
|
|
904
|
-
const s = () => {
|
|
905
|
-
this.$$r = !0;
|
|
906
|
-
for (const i in this.$$p_d)
|
|
907
|
-
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
908
|
-
const l = g(
|
|
909
|
-
i,
|
|
910
|
-
this.$$d[i],
|
|
911
|
-
this.$$p_d,
|
|
912
|
-
"toAttribute"
|
|
913
|
-
);
|
|
914
|
-
l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
|
|
915
|
-
}
|
|
916
|
-
this.$$r = !1;
|
|
917
|
-
};
|
|
918
|
-
this.$$c.$$.after_update.push(s), s();
|
|
919
|
-
for (const i in this.$$l)
|
|
920
|
-
for (const l of this.$$l[i]) {
|
|
921
|
-
const u = this.$$c.$on(i, l);
|
|
922
|
-
this.$$l_u.set(l, u);
|
|
923
|
-
}
|
|
924
|
-
this.$$l = {};
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
928
|
-
// and setting attributes through setAttribute etc, this is helpful
|
|
929
|
-
attributeChangedCallback(t, e, n) {
|
|
930
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
931
|
-
}
|
|
932
|
-
disconnectedCallback() {
|
|
933
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
934
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
935
|
-
});
|
|
936
|
-
}
|
|
937
|
-
$$g_p(t) {
|
|
938
|
-
return Object.keys(this.$$p_d).find(
|
|
939
|
-
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
940
|
-
) || t;
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
function g(t, e, n, s) {
|
|
944
|
-
const i = n[t]?.type;
|
|
945
|
-
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
946
|
-
return e;
|
|
947
|
-
if (s === "toAttribute")
|
|
948
|
-
switch (i) {
|
|
949
|
-
case "Object":
|
|
950
|
-
case "Array":
|
|
951
|
-
return e == null ? null : JSON.stringify(e);
|
|
952
|
-
case "Boolean":
|
|
953
|
-
return e ? "" : null;
|
|
954
|
-
case "Number":
|
|
955
|
-
return e ?? null;
|
|
956
|
-
default:
|
|
957
|
-
return e;
|
|
958
|
-
}
|
|
959
|
-
else
|
|
960
|
-
switch (i) {
|
|
961
|
-
case "Object":
|
|
962
|
-
case "Array":
|
|
963
|
-
return e && JSON.parse(e);
|
|
964
|
-
case "Boolean":
|
|
965
|
-
return e;
|
|
966
|
-
case "Number":
|
|
967
|
-
return e != null ? +e : e;
|
|
968
|
-
default:
|
|
969
|
-
return e;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
function et(t, e, n, s, i, l) {
|
|
973
|
-
let u = class extends T {
|
|
974
|
-
constructor() {
|
|
975
|
-
super(t, n, i), this.$$p_d = e;
|
|
976
|
-
}
|
|
977
|
-
static get observedAttributes() {
|
|
978
|
-
return Object.keys(e).map(
|
|
979
|
-
(c) => (e[c].attribute || c).toLowerCase()
|
|
980
|
-
);
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
|
-
return Object.keys(e).forEach((c) => {
|
|
984
|
-
Object.defineProperty(u.prototype, c, {
|
|
985
|
-
get() {
|
|
986
|
-
return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
|
|
987
|
-
},
|
|
988
|
-
set(o) {
|
|
989
|
-
o = g(c, o, e), this.$$d[c] = o, this.$$c?.$set({ [c]: o });
|
|
990
|
-
}
|
|
991
|
-
});
|
|
992
|
-
}), s.forEach((c) => {
|
|
993
|
-
Object.defineProperty(u.prototype, c, {
|
|
994
|
-
get() {
|
|
995
|
-
return this.$$c?.[c];
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
}), t.element = /** @type {any} */
|
|
999
|
-
u, u;
|
|
1000
|
-
}
|
|
1001
|
-
class nt {
|
|
1002
|
-
/**
|
|
1003
|
-
* ### PRIVATE API
|
|
1004
|
-
*
|
|
1005
|
-
* Do not use, may change at any time
|
|
1006
|
-
*
|
|
1007
|
-
* @type {any}
|
|
1008
|
-
*/
|
|
1009
|
-
$$ = void 0;
|
|
1010
|
-
/**
|
|
1011
|
-
* ### PRIVATE API
|
|
1012
|
-
*
|
|
1013
|
-
* Do not use, may change at any time
|
|
1014
|
-
*
|
|
1015
|
-
* @type {any}
|
|
1016
|
-
*/
|
|
1017
|
-
$$set = void 0;
|
|
1018
|
-
/** @returns {void} */
|
|
1019
|
-
$destroy() {
|
|
1020
|
-
Y(this, 1), this.$destroy = a;
|
|
1021
|
-
}
|
|
1022
|
-
/**
|
|
1023
|
-
* @template {Extract<keyof Events, string>} K
|
|
1024
|
-
* @param {K} type
|
|
1025
|
-
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
1026
|
-
* @returns {() => void}
|
|
1027
|
-
*/
|
|
1028
|
-
$on(e, n) {
|
|
1029
|
-
if (!P(n))
|
|
1030
|
-
return a;
|
|
1031
|
-
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
1032
|
-
return s.push(n), () => {
|
|
1033
|
-
const i = s.indexOf(n);
|
|
1034
|
-
i !== -1 && s.splice(i, 1);
|
|
1035
|
-
};
|
|
1036
|
-
}
|
|
1037
|
-
/**
|
|
1038
|
-
* @param {Partial<Props>} props
|
|
1039
|
-
* @returns {void}
|
|
1040
|
-
*/
|
|
1041
|
-
$set(e) {
|
|
1042
|
-
this.$$set && !R(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
const it = "4";
|
|
1046
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(it);
|
|
1047
|
-
function st(t) {
|
|
1048
|
-
I(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)}}");
|
|
1049
|
-
}
|
|
1050
|
-
function rt(t) {
|
|
1051
|
-
let e;
|
|
1052
|
-
return {
|
|
1053
|
-
c() {
|
|
1054
|
-
e = v("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
1055
|
-
},
|
|
1056
|
-
m(n, s) {
|
|
1057
|
-
M(n, e, s), t[3](e);
|
|
1058
|
-
},
|
|
1059
|
-
p: a,
|
|
1060
|
-
i: a,
|
|
1061
|
-
o: a,
|
|
1062
|
-
d(n) {
|
|
1063
|
-
n && E(e), t[3](null);
|
|
1064
|
-
}
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
|
-
function lt(t, e, n) {
|
|
1068
|
-
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, l;
|
|
1069
|
-
const u = () => {
|
|
1070
|
-
let r = document.createElement("style");
|
|
1071
|
-
r.innerHTML = s, l.appendChild(r);
|
|
1072
|
-
}, c = () => {
|
|
1073
|
-
let r = new URL(i), _ = document.createElement("style");
|
|
1074
|
-
fetch(r.href).then((d) => d.text()).then((d) => {
|
|
1075
|
-
_.innerHTML = d, setTimeout(
|
|
1076
|
-
() => {
|
|
1077
|
-
l.appendChild(_);
|
|
1078
|
-
},
|
|
1079
|
-
1
|
|
1080
|
-
), setTimeout(
|
|
1081
|
-
() => {
|
|
1082
|
-
},
|
|
1083
|
-
500
|
|
1084
|
-
);
|
|
1085
|
-
});
|
|
1086
|
-
};
|
|
1087
|
-
function o(r) {
|
|
1088
|
-
x[r ? "unshift" : "push"](() => {
|
|
1089
|
-
l = r, n(0, l);
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
return t.$$set = (r) => {
|
|
1093
|
-
"clientstyling" in r && n(1, s = r.clientstyling), "clientstylingurl" in r && n(2, i = r.clientstylingurl);
|
|
1094
|
-
}, t.$$.update = () => {
|
|
1095
|
-
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
1096
|
-
3 && s && l && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
1097
|
-
5 && i && l && c();
|
|
1098
|
-
}, [l, s, i, o];
|
|
1099
|
-
}
|
|
1100
|
-
class ct extends nt {
|
|
1101
|
-
constructor(e) {
|
|
1102
|
-
super(), tt(this, e, lt, rt, B, { clientstyling: 1, clientstylingurl: 2 }, st);
|
|
1103
|
-
}
|
|
1104
|
-
get clientstyling() {
|
|
1105
|
-
return this.$$.ctx[1];
|
|
1106
|
-
}
|
|
1107
|
-
set clientstyling(e) {
|
|
1108
|
-
this.$$set({ clientstyling: e }), m();
|
|
1109
|
-
}
|
|
1110
|
-
get clientstylingurl() {
|
|
1111
|
-
return this.$$.ctx[2];
|
|
1112
|
-
}
|
|
1113
|
-
set clientstylingurl(e) {
|
|
1114
|
-
this.$$set({ clientstylingurl: e }), m();
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
647
|
+
var GeneralAnimationLoadingBrLCbjvF = {};
|
|
1118
648
|
|
|
1119
|
-
function
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
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"))
|
|
1125
|
-
return !1;
|
|
1126
|
-
throw e;
|
|
1127
|
-
}
|
|
1128
|
-
};
|
|
1129
|
-
}
|
|
1130
|
-
customElements.define = i(customElements.define);
|
|
1131
|
-
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", ct.element);
|
|
649
|
+
(function (exports) {
|
|
650
|
+
var V=Object.defineProperty,z=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))q.call(t,n)&&x(e,n,t[n]);return e},M=(e,t)=>z(e,F(t));var $=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);var T=(e,t,n)=>new Promise((s,l)=>{var i=o=>{try{u(n.next(o));}catch(r){l(r);}},c=o=>{try{u(n.throw(o));}catch(r){l(r);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,c);u((n=n.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function H(e){return e()}function B(){return Object.create(null)}function b(e){e.forEach(H);}function I(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t);}function X(e,t,n){const s=Y(e);if(!s.getElementById(t)){const l=L("style");l.id=t,l.textContent=n,Z(s,l);}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null);}function C(e){e.parentNode&&e.parentNode.removeChild(e);}function L(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let j;function g(e){j=e;}const h=[],k=[];let p=[];const R=[],it=Promise.resolve();let v=!1;function st(){v||(v=!0,it.then(y));}function E(e){p.push(e);}const w=new Set;let a=0;function y(){if(a!==0)return;const e=j;do{try{for(;a<h.length;){const t=h[a];a++,g(t),rt(t.$$);}}catch(t){throw h.length=0,a=0,t}for(g(null),h.length=0,a=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];w.has(n)||(w.add(n),n());}p.length=0;}while(h.length);for(;R.length;)R.pop()();v=!1,w.clear(),g(e);}function rt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(E);}}function lt(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t;}const ct=new Set;function ot(e,t){e&&e.i&&(ct.delete(e),e.i(t));}function ut(e,t,n){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),E(()=>{const i=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),l.forEach(E);}function dt(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function $t(e,t){e.$$.dirty[0]===-1&&(h.push(e),st(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function ft(e,t,n,s,l,i,c=null,u=[-1]){const o=j;g(e);const r=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:l,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:B(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(r.root);let f=!1;if(r.ctx=n(e,t.props||{},(d,O,...S)=>{const A=S.length?S[0]:O;return r.ctx&&l(r.ctx[d],r.ctx[d]=A)&&(!r.skip_bound&&r.bound[d]&&r.bound[d](A),f&&$t(e,d)),O}),r.update(),f=!0,b(r.before_update),r.fragment=s(r.ctx),t.target){if(t.hydrate){const d=et(t.target);r.fragment&&r.fragment.l(d),d.forEach(C);}else r.fragment&&r.fragment.c();t.intro&&ot(e.$$.fragment),ut(e,t.target,t.anchor),y();}g(o);}let D;typeof HTMLElement=="function"&&(D=class extends HTMLElement{constructor(t,n,s){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const l=this.$$c.$on(t,n);this.$$l_u.set(n,l);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n));}}connectedCallback(){return T(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let c;return {c:function(){c=L("slot"),i!=="default"&&tt(c,"name",i);},m:function(r,f){U(r,c,f);},d:function(r){r&&C(c);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=nt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=m(c,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:M(P({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const l=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=m(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c);}this.$$r=!1;};this.$$c.$$.after_update.push(l),l();for(const i in this.$$l)for(const c of this.$$l[i]){const u=this.$$c.$on(i,c);this.$$l_u.set(c,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=m(t,s,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function m(e,t,n,s){var i;const l=(i=n[e])==null?void 0:i.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function at(e,t,n,s,l,i){let c=class extends D{constructor(){super(e,n,l),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var r;o=m(u,o,t),this.$$d[u]=o,(r=this.$$c)==null||r.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=c,c}class ht{constructor(){$(this,"$$");$(this,"$$set");}$destroy(){dt(this,1),this.$destroy=_;}$on(t,n){if(!I(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const l=s.indexOf(n);l!==-1&&s.splice(l,1);}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const _t="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function pt(e){X(e,"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)}}");}function gt(e){let t;return {c(){t=L("div"),t.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){U(n,t,s),e[3](t);},p:_,i:_,o:_,d(n){n&&C(t),e[3](null);}}}function mt(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,i;const c=()=>{let r=document.createElement("style");r.innerHTML=s,i.appendChild(r);},u=()=>{let r=new URL(l),f=document.createElement("style");fetch(r.href).then(d=>d.text()).then(d=>{f.innerHTML=d,setTimeout(()=>{i.appendChild(f);},1),setTimeout(()=>{},500);});};function o(r){k[r?"unshift":"push"](()=>{i=r,n(0,i);});}return e.$$set=r=>{"clientstyling"in r&&n(1,s=r.clientstyling),"clientstylingurl"in r&&n(2,l=r.clientstylingurl);},e.$$.update=()=>{e.$$.dirty&3&&s&&i&&c(),e.$$.dirty&5&&l&&i&&u();},[i,s,l,o]}class J extends ht{constructor(t){super(),ft(this,t,mt,gt,K,{clientstyling:1,clientstylingurl:2},pt);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),y();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y();}}at(J,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=J;
|
|
651
|
+
}(GeneralAnimationLoadingBrLCbjvF));
|
|
652
|
+
|
|
653
|
+
if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){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"))return !1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingBrLCbjvF).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}
|
|
1132
654
|
|
|
1133
655
|
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}";
|
|
1134
656
|
const CasinoEngagementSuiteTournamentStyle0 = casinoEngagementSuiteTournamentCss;
|
|
@@ -1235,7 +757,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
1235
757
|
this.page = page;
|
|
1236
758
|
}
|
|
1237
759
|
render() {
|
|
1238
|
-
return (h
|
|
760
|
+
return (h(Host, { key: 'f9e9ea96e0fddd20d3f12141c7cf66588ab94ccd' }, h("general-styling-wrapper", { key: 'aea948ea6c8f8cc5e4aaea5812873d3fe7045568', clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling,
|
|
1239
761
|
// @ts-ignore
|
|
1240
762
|
targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), this.renders.page[this.page]()));
|
|
1241
763
|
}
|