@everymatrix/casino-engagement-suite-tournament 1.46.0 → 1.46.1
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-2dc46ff5.js +2 -0
- package/dist/casino-engagement-suite-tournament/{p-0f4e94ab.entry.js → p-e969a6a6.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-ecf7465a.js +1 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +2 -2
- package/dist/cjs/casino-engagement-suite-tournament-81cbca40.js +733 -0
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-16d5d7c3.js → index-6f030cde.js} +28 -43
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +101 -68
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +168 -313
- package/dist/collection/shared/GradientRoundedButton.js +1 -1
- package/dist/collection/shared/renderBar.js +2 -2
- package/dist/collection/shared/renders.dialog.js +49 -0
- package/dist/collection/shared/renders.js +8 -0
- package/dist/collection/shared/renders.page.js +117 -0
- package/dist/collection/shared/renders.tab.js +30 -0
- package/dist/collection/shared/renders.util.js +18 -0
- package/dist/collection/utils/api.apdater.js +2 -2
- package/dist/collection/utils/bussiness.js +38 -0
- package/dist/collection/utils/message.js +63 -0
- package/dist/collection/utils/translations.js +8 -9
- package/dist/collection/utils/types.js +5 -5
- package/dist/collection/utils/util.date.js +1 -1
- package/dist/collection/utils/utils.js +6 -2
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +2 -2
- package/dist/esm/casino-engagement-suite-tournament-65c77450.js +731 -0
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-3962add4.js → index-224e880a.js} +29 -43
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/stencil.config.dev.js +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +27 -52
- package/dist/types/components.d.ts +16 -0
- package/dist/types/shared/GradientRoundedButton.d.ts +1 -1
- package/dist/types/shared/renderBar.d.ts +1 -1
- package/dist/types/shared/renders.d.ts +6 -0
- package/dist/types/shared/renders.dialog.d.ts +2 -0
- package/dist/types/shared/renders.page.d.ts +2 -0
- package/dist/types/shared/renders.tab.d.ts +3 -0
- package/dist/types/shared/renders.util.d.ts +2 -0
- package/dist/types/utils/api.apdater.d.ts +1 -1
- package/dist/types/utils/bussiness.d.ts +32 -0
- package/dist/types/utils/message.d.ts +17 -0
- package/dist/types/utils/translations.d.ts +8 -9
- package/dist/types/utils/types.d.ts +14 -5
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-1bf11325.js +0 -2
- package/dist/casino-engagement-suite-tournament/p-5df3ac81.js +0 -1
- package/dist/cjs/casino-engagement-suite-tournament-1b738bb2.js +0 -560
- package/dist/esm/casino-engagement-suite-tournament-d8471680.js +0 -558
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-224e880a.js';
|
|
2
|
+
export { s as setNonce } from './index-224e880a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["casino-engagement-suite-progress-bar_3",[[1,"casino-engagement-suite-tournament",{"language":[1],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"leaderboardsInit":[16],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isActionJoinPending":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"time":[32]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["casino-engagement-suite-progress-bar_3",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"leaderboardsInit":[16],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isActionJoinPending":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"time":[32],"newIdList":[32]},[[8,"message","handleEvent"]],{"newIdList":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-engagement-suite-tournament';
|
|
2
|
-
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional:
|
|
2
|
+
const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -264,13 +264,6 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
if (typeof nodeName === "function") {
|
|
268
|
-
return nodeName(
|
|
269
|
-
vnodeData === null ? {} : vnodeData,
|
|
270
|
-
vNodeChildren,
|
|
271
|
-
vdomFnUtils
|
|
272
|
-
);
|
|
273
|
-
}
|
|
274
267
|
const vnode = newVNode(nodeName, null);
|
|
275
268
|
vnode.$attrs$ = vnodeData;
|
|
276
269
|
if (vNodeChildren.length > 0) {
|
|
@@ -305,36 +298,6 @@ var newVNode = (tag, text) => {
|
|
|
305
298
|
};
|
|
306
299
|
var Host = {};
|
|
307
300
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
308
|
-
var vdomFnUtils = {
|
|
309
|
-
forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
|
|
310
|
-
map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
|
|
311
|
-
};
|
|
312
|
-
var convertToPublic = (node) => ({
|
|
313
|
-
vattrs: node.$attrs$,
|
|
314
|
-
vchildren: node.$children$,
|
|
315
|
-
vkey: node.$key$,
|
|
316
|
-
vname: node.$name$,
|
|
317
|
-
vtag: node.$tag$,
|
|
318
|
-
vtext: node.$text$
|
|
319
|
-
});
|
|
320
|
-
var convertToPrivate = (node) => {
|
|
321
|
-
if (typeof node.vtag === "function") {
|
|
322
|
-
const vnodeData = { ...node.vattrs };
|
|
323
|
-
if (node.vkey) {
|
|
324
|
-
vnodeData.key = node.vkey;
|
|
325
|
-
}
|
|
326
|
-
if (node.vname) {
|
|
327
|
-
vnodeData.name = node.vname;
|
|
328
|
-
}
|
|
329
|
-
return h(node.vtag, vnodeData, ...node.vchildren || []);
|
|
330
|
-
}
|
|
331
|
-
const vnode = newVNode(node.vtag, node.vtext);
|
|
332
|
-
vnode.$attrs$ = node.vattrs;
|
|
333
|
-
vnode.$children$ = node.vchildren;
|
|
334
|
-
vnode.$key$ = node.vkey;
|
|
335
|
-
vnode.$name$ = node.vname;
|
|
336
|
-
return vnode;
|
|
337
|
-
};
|
|
338
301
|
var parsePropertyValue = (propValue, propType) => {
|
|
339
302
|
if (propValue != null && !isComplexType(propValue)) {
|
|
340
303
|
if (propType & 4 /* Boolean */) {
|
|
@@ -1223,6 +1186,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1223
1186
|
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
|
|
1224
1187
|
);
|
|
1225
1188
|
}
|
|
1189
|
+
const elm = hostRef.$hostElement$ ;
|
|
1226
1190
|
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
1227
1191
|
const flags = hostRef.$flags$;
|
|
1228
1192
|
const instance = hostRef.$lazyInstance$ ;
|
|
@@ -1232,6 +1196,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1232
1196
|
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
1233
1197
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
1234
1198
|
if (instance) {
|
|
1199
|
+
if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
|
|
1200
|
+
const watchMethods = cmpMeta.$watchers$[propName];
|
|
1201
|
+
if (watchMethods) {
|
|
1202
|
+
watchMethods.map((watchMethodName) => {
|
|
1203
|
+
try {
|
|
1204
|
+
instance[watchMethodName](newVal, oldVal, propName);
|
|
1205
|
+
} catch (e) {
|
|
1206
|
+
consoleError(e, elm);
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1235
1211
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
1236
1212
|
scheduleUpdate(hostRef, false);
|
|
1237
1213
|
}
|
|
@@ -1243,7 +1219,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1243
1219
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1244
1220
|
var _a, _b;
|
|
1245
1221
|
const prototype = Cstr.prototype;
|
|
1246
|
-
if (cmpMeta.$members$ ||
|
|
1222
|
+
if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
|
|
1223
|
+
if (Cstr.watchers && !cmpMeta.$watchers$) {
|
|
1224
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1225
|
+
}
|
|
1247
1226
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
1248
1227
|
members.map(([memberName, [memberFlags]]) => {
|
|
1249
1228
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
@@ -1326,6 +1305,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1326
1305
|
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1327
1306
|
}
|
|
1328
1307
|
if (!Cstr.isProxied) {
|
|
1308
|
+
{
|
|
1309
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
1310
|
+
}
|
|
1329
1311
|
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1330
1312
|
Cstr.isProxied = true;
|
|
1331
1313
|
}
|
|
@@ -1341,6 +1323,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1341
1323
|
{
|
|
1342
1324
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1343
1325
|
}
|
|
1326
|
+
{
|
|
1327
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1328
|
+
}
|
|
1344
1329
|
endNewInstance();
|
|
1345
1330
|
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1346
1331
|
} else {
|
|
@@ -1468,6 +1453,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1468
1453
|
let hasSlotRelocation = false;
|
|
1469
1454
|
lazyBundles.map((lazyBundle) => {
|
|
1470
1455
|
lazyBundle[1].map((compactMeta) => {
|
|
1456
|
+
var _a2;
|
|
1471
1457
|
const cmpMeta = {
|
|
1472
1458
|
$flags$: compactMeta[0],
|
|
1473
1459
|
$tagName$: compactMeta[1],
|
|
@@ -1486,6 +1472,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1486
1472
|
{
|
|
1487
1473
|
cmpMeta.$attrsToReflect$ = [];
|
|
1488
1474
|
}
|
|
1475
|
+
{
|
|
1476
|
+
cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
|
|
1477
|
+
}
|
|
1489
1478
|
const tagName = cmpMeta.$tagName$;
|
|
1490
1479
|
const HostElement = class extends HTMLElement {
|
|
1491
1480
|
// StencilLazyHost
|
|
@@ -1569,9 +1558,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1569
1558
|
}
|
|
1570
1559
|
endBootstrap();
|
|
1571
1560
|
};
|
|
1572
|
-
|
|
1573
|
-
// src/runtime/fragment.ts
|
|
1574
|
-
var Fragment = (_, children) => children;
|
|
1575
1561
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
1576
1562
|
if (listeners) {
|
|
1577
1563
|
listeners.map(([flags, name, method]) => {
|
|
@@ -1609,4 +1595,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
|
1609
1595
|
// src/runtime/nonce.ts
|
|
1610
1596
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1611
1597
|
|
|
1612
|
-
export {
|
|
1598
|
+
export { Host as H, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-
|
|
2
|
-
import './index-
|
|
1
|
+
export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-65c77450.js';
|
|
2
|
+
import './index-224e880a.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-224e880a.js';
|
|
2
|
+
export { s as setNonce } from './index-224e880a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["casino-engagement-suite-progress-bar_3",[[1,"casino-engagement-suite-tournament",{"language":[1],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"leaderboardsInit":[16],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isActionJoinPending":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"time":[32]},[[8,"message","handleEvent"]]],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["casino-engagement-suite-progress-bar_3",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"leaderboardsInit":[16],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isActionJoinPending":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"time":[32],"newIdList":[32]},[[8,"message","handleEvent"]],{"newIdList":["checkNewIdList"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
1
2
|
export const config = {
|
|
2
3
|
namespace: 'casino-engagement-suite-tournament',
|
|
3
4
|
taskQueue: 'async',
|
|
@@ -6,6 +7,7 @@ export const config = {
|
|
|
6
7
|
extras: {
|
|
7
8
|
experimentalImportInjection: true
|
|
8
9
|
},
|
|
10
|
+
plugins: [sass()],
|
|
9
11
|
outputTargets: [
|
|
10
12
|
{
|
|
11
13
|
type: 'www'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Tab } from '../../utils/translations';
|
|
3
3
|
import { Tournament, Leaderboard, LeaderboardPage, TournamentApi, Dialog } from '../../utils/types';
|
|
4
|
+
import { type CasinoEngagementSuiteTournamentRenders } from '../../shared/renders';
|
|
4
5
|
import "../../../../../../dist/packages/svelte/general-animation-loading/es2015/general-animation-loading";
|
|
5
6
|
import "../../../../../../dist/packages/stencil/general-styling-wrapper/dist/types/index";
|
|
6
7
|
import "../../../../../../dist/packages/stencil/casino-engagement-suite-progress-bar/dist/types/index";
|
|
@@ -9,6 +10,10 @@ export declare class CasinoEngagementSuiteTournament {
|
|
|
9
10
|
* Language
|
|
10
11
|
*/
|
|
11
12
|
language: string;
|
|
13
|
+
/**
|
|
14
|
+
* if widget is showing
|
|
15
|
+
*/
|
|
16
|
+
show: boolean;
|
|
12
17
|
/**
|
|
13
18
|
* Client custom styling via string
|
|
14
19
|
*/
|
|
@@ -21,6 +26,10 @@ export declare class CasinoEngagementSuiteTournament {
|
|
|
21
26
|
* Translation via url
|
|
22
27
|
*/
|
|
23
28
|
translationUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* User's device type
|
|
31
|
+
*/
|
|
32
|
+
device: "Mobile" | "Tablet" | "Desktop";
|
|
24
33
|
/**
|
|
25
34
|
* Raw Leaderboards from API for Init
|
|
26
35
|
*/
|
|
@@ -40,11 +49,10 @@ export declare class CasinoEngagementSuiteTournament {
|
|
|
40
49
|
ButtonYes: string;
|
|
41
50
|
ButtonNo: string;
|
|
42
51
|
};
|
|
43
|
-
|
|
52
|
+
WinDialog: {
|
|
44
53
|
Tile: string;
|
|
45
54
|
Description: string;
|
|
46
|
-
|
|
47
|
-
ButtonNo: string;
|
|
55
|
+
ButtonContinue: string;
|
|
48
56
|
};
|
|
49
57
|
NoLeaderboards: string;
|
|
50
58
|
NoLeaderboardsTip: string;
|
|
@@ -53,9 +61,9 @@ export declare class CasinoEngagementSuiteTournament {
|
|
|
53
61
|
Tip: string;
|
|
54
62
|
Starts: import("../../utils/translations").Time.Starts;
|
|
55
63
|
Ends: import("../../utils/translations").Time.Ends;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
64
|
+
info: Tab.info;
|
|
65
|
+
leaderboard: Tab.leaderboard;
|
|
66
|
+
games: Tab.games;
|
|
59
67
|
Join: string;
|
|
60
68
|
Unjoin: string;
|
|
61
69
|
};
|
|
@@ -71,57 +79,24 @@ export declare class CasinoEngagementSuiteTournament {
|
|
|
71
79
|
dialog: Dialog;
|
|
72
80
|
time: number;
|
|
73
81
|
timeHolder: NodeJS.Timer;
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
gifts: any[];
|
|
83
|
+
newIdList: string[];
|
|
84
|
+
labels: string[];
|
|
76
85
|
handleEvent(e: MessageEvent): void;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
checkNewIdList(): void;
|
|
87
|
+
syncBarState(newTournamentList: Tournament[], oldTournamentList: Tournament[]): void;
|
|
88
|
+
showPropWatcher(newValue: any, oldValue: any): void;
|
|
89
|
+
addLabel(tag: string): void;
|
|
90
|
+
removeLabel(tag: string): void;
|
|
91
|
+
setTimeInterval(): void;
|
|
92
|
+
checkGift(): void;
|
|
83
93
|
connectedCallback(): void;
|
|
84
94
|
disconnectedCallback(): void;
|
|
85
95
|
actionJoin(tournament: Tournament): void;
|
|
86
|
-
isTournamentClosed(tournament: Tournament): boolean;
|
|
87
96
|
setPage(page: LeaderboardPage, metaData?: any): void;
|
|
88
|
-
renderPage(): any;
|
|
89
97
|
render(): any;
|
|
90
|
-
|
|
91
|
-
onClickConfirmJoin: () => void;
|
|
92
|
-
onClickConfirmUnjoin: () => void;
|
|
93
|
-
onClickDialogUnjoin: () => void;
|
|
94
|
-
onClickDialogJoin: () => void;
|
|
95
|
-
onClickBarInLayout: () => void;
|
|
96
|
-
onClickBarInLayoutDialog: () => void;
|
|
97
|
-
onClickItemJoin(tournament: Tournament, e: MouseEvent): void;
|
|
98
|
-
onClickTab(tab: Tab): void;
|
|
99
|
-
onClickShowInfo: () => void;
|
|
100
|
-
onClickBarTip: () => void;
|
|
101
|
-
onClickBarBack: () => void;
|
|
102
|
-
renderPageLeaderboardList(): any;
|
|
103
|
-
renderPageConfirm(): any;
|
|
104
|
-
renderPageLeaderboardItem(): any;
|
|
105
|
-
renderDialogContent(): any;
|
|
106
|
-
renderDialogContentUnjoin(): any;
|
|
107
|
-
renderTitleContainer(tournament: Tournament): any;
|
|
108
|
-
renderTabbedContent(): any;
|
|
109
|
-
renderGames(): any;
|
|
110
|
-
renderLeaderboard(): any;
|
|
111
|
-
renderTabs(): any;
|
|
112
|
-
renderTimeBar(tournament: Tournament): any;
|
|
113
|
-
renderInfo(): any;
|
|
114
|
-
getResultPrize(leaderboard: any): {
|
|
115
|
-
prize: any;
|
|
116
|
-
place: any;
|
|
117
|
-
};
|
|
118
|
-
renderCloseBarInLayout(): any;
|
|
119
|
-
renderCloseBarInLayoutDialog(): any;
|
|
120
|
-
renderLeaderboardContainer(render: any): any;
|
|
121
|
-
getWrapperBarData(): {
|
|
122
|
-
left: any;
|
|
123
|
-
middle: string;
|
|
124
|
-
};
|
|
125
|
-
openDialog(type: any, data?: any): void;
|
|
98
|
+
openDialog(type: any, data?: any, onClose?: any): void;
|
|
126
99
|
closeDialog(): void;
|
|
100
|
+
readonly renders: CasinoEngagementSuiteTournamentRenders;
|
|
101
|
+
constructor();
|
|
127
102
|
}
|
|
@@ -17,6 +17,10 @@ export namespace Components {
|
|
|
17
17
|
* Client custom styling via url
|
|
18
18
|
*/
|
|
19
19
|
"clientStylingUrl": string;
|
|
20
|
+
/**
|
|
21
|
+
* User's device type
|
|
22
|
+
*/
|
|
23
|
+
"device": "Mobile" | "Tablet" | "Desktop";
|
|
20
24
|
/**
|
|
21
25
|
* Language
|
|
22
26
|
*/
|
|
@@ -25,6 +29,10 @@ export namespace Components {
|
|
|
25
29
|
* Raw Leaderboards from API for Init
|
|
26
30
|
*/
|
|
27
31
|
"leaderboardsInit": TournamentApi[];
|
|
32
|
+
/**
|
|
33
|
+
* if widget is showing
|
|
34
|
+
*/
|
|
35
|
+
"show": boolean;
|
|
28
36
|
/**
|
|
29
37
|
* Translation via url
|
|
30
38
|
*/
|
|
@@ -67,6 +75,10 @@ declare namespace LocalJSX {
|
|
|
67
75
|
* Client custom styling via url
|
|
68
76
|
*/
|
|
69
77
|
"clientStylingUrl"?: string;
|
|
78
|
+
/**
|
|
79
|
+
* User's device type
|
|
80
|
+
*/
|
|
81
|
+
"device"?: "Mobile" | "Tablet" | "Desktop";
|
|
70
82
|
/**
|
|
71
83
|
* Language
|
|
72
84
|
*/
|
|
@@ -76,6 +88,10 @@ declare namespace LocalJSX {
|
|
|
76
88
|
*/
|
|
77
89
|
"leaderboardsInit"?: TournamentApi[];
|
|
78
90
|
"onClose"?: (event: CasinoEngagementSuiteTournamentCustomEvent<void>) => void;
|
|
91
|
+
/**
|
|
92
|
+
* if widget is showing
|
|
93
|
+
*/
|
|
94
|
+
"show"?: boolean;
|
|
79
95
|
/**
|
|
80
96
|
* Translation via url
|
|
81
97
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const renderCloseBar: (attr: any) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const renders: {
|
|
2
|
+
dialog: import("../utils/types").RenderCollector<import("../utils/types").DialogType>;
|
|
3
|
+
page: import("../utils/types").RenderCollector<import("../utils/types").LeaderboardPage>;
|
|
4
|
+
tab: import("../utils/types").RenderCollector<import("../utils/translations").Tab>;
|
|
5
|
+
};
|
|
6
|
+
export type CasinoEngagementSuiteTournamentRenders = typeof renders;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Leaderboard, Tournament, TournamentApi } from
|
|
1
|
+
import { Leaderboard, Tournament, TournamentApi } from './types';
|
|
2
2
|
export declare const tournamentAdapter: (tournamentApi: TournamentApi) => Tournament;
|
|
3
3
|
export declare const leaderboardsAdapter: (leaderboardRes: any) => Leaderboard[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Tournament, TournamentState } from './types';
|
|
2
|
+
export declare const getMaxRankStr: (list: any) => string;
|
|
3
|
+
export declare const isTournamentClosed: (tournament: Tournament) => boolean;
|
|
4
|
+
export declare const getTournamentListByItem: (tournamentList: Tournament[], tournament: Tournament) => {
|
|
5
|
+
href: string;
|
|
6
|
+
id: string;
|
|
7
|
+
nameOrTitle: string;
|
|
8
|
+
description: string;
|
|
9
|
+
termsUrl: string;
|
|
10
|
+
thumbnail: string;
|
|
11
|
+
thumbnails: [];
|
|
12
|
+
startTime: Date;
|
|
13
|
+
endTime: Date;
|
|
14
|
+
closeTime: Date;
|
|
15
|
+
exhibitionStartTime: Date;
|
|
16
|
+
exhibitionEndTime: Date;
|
|
17
|
+
state: TournamentState;
|
|
18
|
+
tags: string;
|
|
19
|
+
minBetCount: number;
|
|
20
|
+
dataSource: string;
|
|
21
|
+
scoreCriteria: string;
|
|
22
|
+
wallets: {
|
|
23
|
+
code: string;
|
|
24
|
+
};
|
|
25
|
+
prizes: {
|
|
26
|
+
rank: number;
|
|
27
|
+
count: number;
|
|
28
|
+
name: string;
|
|
29
|
+
}[];
|
|
30
|
+
games?: any[];
|
|
31
|
+
playerEnrolled?: boolean;
|
|
32
|
+
}[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Instance, Tournament } from './types';
|
|
2
|
+
export declare const messageSender: {
|
|
3
|
+
UpdateSuiteBarState: (labels: string[]) => void;
|
|
4
|
+
JoinTournamentReq: (tournament: Tournament) => void;
|
|
5
|
+
UnjoinTournamentReq: (tournament: Tournament) => void;
|
|
6
|
+
UpdateTournamentsItemReq: (tournament: Tournament) => void;
|
|
7
|
+
UpdateLeaderboardsReq: (tournament: Tournament, query?: any) => void;
|
|
8
|
+
UpdateLeaderboardsPlayerReq: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare const messageReceiver: (instance: Instance) => {
|
|
11
|
+
UpdateLeaderboardsPlayerRes: (rest: any) => void;
|
|
12
|
+
UpdateLeaderboardStateReq: () => void;
|
|
13
|
+
UpdateTournamentsItemRes: (rest: any) => void;
|
|
14
|
+
UpdateLeaderboardsRes: (rest: any) => void;
|
|
15
|
+
JoinTournamentRes: (rest: any) => void;
|
|
16
|
+
UnjoinTournamentRes: (rest: any) => void;
|
|
17
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum Tab {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
info = "info",
|
|
3
|
+
leaderboard = "leaderboard",
|
|
4
|
+
games = "games"
|
|
5
5
|
}
|
|
6
6
|
export declare enum Time {
|
|
7
7
|
Starts = "Starts",
|
|
@@ -21,11 +21,10 @@ export declare const TRANSLATIONS: {
|
|
|
21
21
|
ButtonYes: string;
|
|
22
22
|
ButtonNo: string;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
WinDialog: {
|
|
25
25
|
Tile: string;
|
|
26
26
|
Description: string;
|
|
27
|
-
|
|
28
|
-
ButtonNo: string;
|
|
27
|
+
ButtonContinue: string;
|
|
29
28
|
};
|
|
30
29
|
NoLeaderboards: string;
|
|
31
30
|
NoLeaderboardsTip: string;
|
|
@@ -34,9 +33,9 @@ export declare const TRANSLATIONS: {
|
|
|
34
33
|
Tip: string;
|
|
35
34
|
Starts: Time.Starts;
|
|
36
35
|
Ends: Time.Ends;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
info: Tab.info;
|
|
37
|
+
leaderboard: Tab.leaderboard;
|
|
38
|
+
games: Tab.games;
|
|
40
39
|
Join: string;
|
|
41
40
|
Unjoin: string;
|
|
42
41
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { JSX } from "../stencil-public-runtime";
|
|
2
|
+
import type { CasinoEngagementSuiteTournament } from "../components/casino-engagement-suite-tournament";
|
|
3
|
+
export type Instance = CasinoEngagementSuiteTournament;
|
|
4
|
+
type Render = (instance?: CasinoEngagementSuiteTournament) => JSX.Element;
|
|
5
|
+
type AbstractEnum = string | number | symbol;
|
|
6
|
+
export type RenderCollector<T extends AbstractEnum> = {
|
|
7
|
+
[K in T]?: Render;
|
|
8
|
+
};
|
|
1
9
|
export declare enum LeaderboardPage {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Item = "Item"
|
|
10
|
+
list = "list",
|
|
11
|
+
item = "item"
|
|
5
12
|
}
|
|
6
13
|
export declare enum TournamentState {
|
|
7
14
|
Running = "Running",
|
|
@@ -84,12 +91,14 @@ type Changes = [
|
|
|
84
91
|
];
|
|
85
92
|
export type Tournament = ChangeKeysType<TournamentApi, Changes>;
|
|
86
93
|
export declare enum DialogType {
|
|
87
|
-
|
|
88
|
-
|
|
94
|
+
unjoin = "unjoin",
|
|
95
|
+
tip = "tip",
|
|
96
|
+
gift = "gift"
|
|
89
97
|
}
|
|
90
98
|
export interface Dialog {
|
|
91
99
|
isOpen: boolean;
|
|
92
100
|
type: DialogType;
|
|
93
101
|
data: any;
|
|
102
|
+
onClose: Function;
|
|
94
103
|
}
|
|
95
104
|
export {};
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],$=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.o?g(w):d.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(v),b(y),(m=v.length>0)&&d.raf(w)},g=e=>h().then(e),k=$(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function E(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>C,map:()=>x,ok:()=>O,unwrap:()=>T,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function x(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return C(e.value);throw"should never get here"}var M,R,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},F=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?H(null,o):o),r=i)};if(u(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,D);const f=H(e,null);return f.u=t,c.length>0&&(f.h=c),f.p=l,f.m=s,f},H=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},D={forEach:(e,t)=>e.map(L).forEach(t),map:(e,t)=>e.map(L).map(t).map(U)},L=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),U=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),F(e.vtag,t,...e.vchildren||[])}const t=H(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},W=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=W(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=d.ce(t,n);return e.dispatchEvent(o),o},I=new WeakMap,V=e=>"sc-"+e.k,_=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=B(n),s=B(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,f=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,f?e.setAttributeNS(u,t,o):e.setAttribute(t,o))}else if(t="-"===t[2]?t.slice(3):l(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&d.rel(e,t,n,l),o&&d.ael(e,t,o,l)}}},z=/\s/,B=e=>e?e.split(z):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of X(Object.keys(l)))e in s||_(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))_(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,u=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=a.createTextNode(s.i);else if(1&s.o)i=s.$=a.createTextNode("");else if(i=s.$=a.createElement(!Y&&2&s.o?"slot-fb":s.v),Q(null,s,te),i.getRootNode().querySelector("body"),s.h)for(u=0;u<s.h.length;++u)r=ne(e,s,u,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=R,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{d.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==P&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}d.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>!(e.v!==t.v||("slot"===e.v?"S"in e&&n&&8!==e.$.nodeType||e.m!==t.m:!n&&e.p!==t.p)),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ue=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.v||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=t.length-1,d=t[0],h=t[a],p=o.length-1,m=o[0],v=o[p];for(;r<=a&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(d,m,l))ue(d,m,l),d=t[++r],m=o[++c];else if(ie(h,v,l))ue(h,v,l),h=t[--a],v=o[--p];else if(ie(d,v,l))"slot"!==d.v&&"slot"!==v.v||oe(d.$.parentNode,!1),ue(d,v,l),me(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(ie(h,m,l))"slot"!==d.v&&"slot"!==v.v||oe(h.$.parentNode,!1),ue(h,m,l),me(e,h.$,d.$),h=t[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){u=f;break}u>=0?(i=t[u],i.v!==m.v?s=ne(t&&t[c],n,u,e):(ue(i,m,l),t[u]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(d.$),s,re(d.$))}r>a?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,a)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):!n&&null!==l&&se(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(o.data=i)},fe=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}fe(e)}},ae=[],de=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(he(t,e)){let n=ae.find((e=>e.j===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.j["s-sh"]=l["s-hn"],n.O=l):(t["s-sh"]=l["s-hn"],ae.push({O:l,j:t})),t["s-sr"]&&ae.map((e=>{he(e.j,t["s-sn"])&&(n=ae.find((e=>e.j===t)),n&&!e.O&&(e.O=n.O))}))}else ae.some((e=>e.j===t))||ae.push({j:t})}1===l.nodeType&&de(l)}},he=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.M),k((()=>$e(e,t)));e.o|=512},$e=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.R&&(e.R.map((([e,t])=>Ee(n,e,t))),e.R=void 0),o=Ee(n,"componentWillLoad")),be(o,(()=>ge(e,n,t)))},be=(e,t)=>we(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),we=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ge=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.P,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=V(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=I.get(e=e.head||e);if(i||I.set(e,i=new Set),!i.has(o)){{s=a.createElement("style"),s.innerHTML=l;const o=null!=(n=d.T)?n:E(a);null!=o&&s.setAttribute("nonce",o),(!(1&t.o)||1&t.o&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ke(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>Se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ke=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.P,u=e.A||H(null,null),f=(e=>e&&e.v===N)(t)?t:F(null,null,t);if(P=r.tagName,c.F&&(f.u=f.u||{},c.F.map((([e,t])=>f.u[t]=r[e]))),n&&f.u)for(const e of Object.keys(f.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=r[e]);if(f.v=null,f.o|=4,e.A=f,f.$=u.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),R=r["s-cr"],Z=!1,ue(u,f,n),d.o|=1,ee){de(f.$);for(const e of ae){const t=e.j;if(!t["s-ol"]){const e=a.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ae){const t=e.j,r=e.O;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&fe(f.$),d.o&=-2,ae.length=0,R=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},Se=e=>{const t=e.$hostElement$,n=e.M;Ee(e.t,"componentDidRender"),64&e.o||(e.o|=64,Oe(t),e.H(t),n||je()),e.C&&(e.C(),e.C=void 0),512&e.o&&g((()=>ye(e,!1))),e.o&=-517},je=()=>{Oe(a.documentElement),g((()=>G(f,"appload",{detail:{namespace:"casino-engagement-suite-tournament"}})))},Ee=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Oe=e=>e.classList.add("hydrated"),Ce=(e,t,o)=>{var l,s;const i=e.prototype;if(t.N){const r=Object.entries(null!=(l=t.N)?l:{});if(r.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).D.get(t))(0,e)},set(o){((e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.D.get(t),r=s.o,c=s.t;o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(o,l.N[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.D.set(t,o),c&&2==(18&r)&&ye(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){d.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.L)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.L)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.F)||l.push([e,s])),s}))]))}}return e},xe=e=>{Ee(e,"connectedCallback")},Me=e=>{Ee(e,"disconnectedCallback")},Re=(e,o={})=>{var l;const u=[],h=o.exclude||[],m=f.customElements,v=a.head,y=v.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,g=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((o=>{const l={o:o[0],k:o[1],N:o[2],U:o[3]};4&l.o&&(k=!0),l.N=o[2],l.U=o[3],l.F=[];const c=l.k,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,P:n,D:new Map};o.W=new Promise((e=>o.H=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,l),1&l.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${l.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Te(this,e,l.U)),w&&(clearTimeout(w),w=null),g?b.push(this):d.jmp((()=>(e=>{if(!(1&d.o)){const t=n(e),o=t.P,l=()=>{};if(1&t.o)Te(e,t,o.U),(null==t?void 0:t.t)?xe(t.t):(null==t?void 0:t.W)&&t.W.then((()=>xe(t.t)));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.M=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.k}#${t.G}" was not found`);o.isProxied||(Ce(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,l(),xe(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.M,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const e=n(this);e.I&&(e.I.map((e=>e())),e.I=void 0),(null==e?void 0:e.t)?Me(e.t):(null==e?void 0:e.W)&&e.W.then((()=>Me(e.t)))}})()))}componentOnReady(){return n(this).W}};l.q=e[0],h.includes(c)||m.get(c)||(u.push(c),m.define(c,Ce(f,l,1)))}))})),u.length>0&&(k&&($.textContent+=c),$.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=d.T)?l:E(a);null!=e&&$.setAttribute("nonce",e),v.insertBefore($,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(je,30)))},Pe=(e,t)=>t,Te=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=Fe(e,n),i=Ae(t,l),r=He(n);d.ael(s,o,i,r),(t.I=t.I||[]).push((()=>d.rel(s,o,i,r)))}))},Ae=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.R=e.R||[]).push([t,n])}catch(e){s(e)}},Fe=(e,t)=>8&t?f:e,He=e=>({passive:!!(1&e),capture:!!(2&e)}),Ne=e=>d.T=e;export{Pe as F,N as H,Re as b,q as c,W as g,F as h,h as p,o as r,Ne as s}
|