@everymatrix/casino-engagement-suite-challenges-details 1.56.0 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.esm.js +1 -1
- package/dist/casino-engagement-suite-challenges-details/p-a1f5b24d.entry.js +1 -0
- package/dist/casino-engagement-suite-challenges-details/p-c9e23f39.js +2 -0
- package/dist/cjs/casino-engagement-suite-challenges-details.cjs.js +2 -2
- package/dist/cjs/casino-engagement-suite-challenges-details_2.cjs.entry.js +21 -54
- package/dist/cjs/{index-748a8ad7.js → index-581fee68.js} +69 -204
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.js +15 -48
- package/dist/esm/casino-engagement-suite-challenges-details.js +3 -3
- package/dist/esm/casino-engagement-suite-challenges-details_2.entry.js +21 -54
- package/dist/esm/{index-aeeed9d1.js → index-5ca12e73.js} +69 -204
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-engagement-suite-challenges-details/p-3a67b441.js +0 -2
- package/dist/casino-engagement-suite-challenges-details/p-cadab9e8.entry.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
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-5ca12e73.js';
|
|
2
|
+
export { s as setNonce } from './index-5ca12e73.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-5ca12e73.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['en'];
|
|
@@ -57,34 +57,6 @@ const CasinoEngagementSuiteChallengesDetails = class {
|
|
|
57
57
|
this.close = createEvent(this, "close", 7);
|
|
58
58
|
this.back = createEvent(this, "back", 7);
|
|
59
59
|
this.resetNewChallengeLabel = createEvent(this, "resetNewChallengeLabel", 7);
|
|
60
|
-
/**
|
|
61
|
-
* Client custom styling via string
|
|
62
|
-
*/
|
|
63
|
-
this.clientStyling = '';
|
|
64
|
-
/**
|
|
65
|
-
* Client custom styling via url
|
|
66
|
-
*/
|
|
67
|
-
this.clientStylingUrl = '';
|
|
68
|
-
/**
|
|
69
|
-
* Language of the widget
|
|
70
|
-
*/
|
|
71
|
-
this.language = 'en';
|
|
72
|
-
/**
|
|
73
|
-
* Current game slug
|
|
74
|
-
*/
|
|
75
|
-
this.gameSlug = '';
|
|
76
|
-
/**
|
|
77
|
-
* User's device type
|
|
78
|
-
*/
|
|
79
|
-
this.device = 'Mobile';
|
|
80
|
-
/**
|
|
81
|
-
*Paused Challenge Ids
|
|
82
|
-
*/
|
|
83
|
-
this.pausedChallengeIds = [];
|
|
84
|
-
this.limitStylingAppends = false;
|
|
85
|
-
this.timer = '';
|
|
86
|
-
this.showDetails = false;
|
|
87
|
-
this.isExpiredChallenge = false;
|
|
88
60
|
this.setClientStyling = () => {
|
|
89
61
|
let sheet = document.createElement('style');
|
|
90
62
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -150,6 +122,19 @@ const CasinoEngagementSuiteChallengesDetails = class {
|
|
|
150
122
|
this.toggle = () => {
|
|
151
123
|
this.showDetails = !this.showDetails;
|
|
152
124
|
};
|
|
125
|
+
this.clientStyling = '';
|
|
126
|
+
this.clientStylingUrl = '';
|
|
127
|
+
this.challenge = undefined;
|
|
128
|
+
this.inProgressChallenges = undefined;
|
|
129
|
+
this.language = 'en';
|
|
130
|
+
this.gameSlug = '';
|
|
131
|
+
this.device = 'Mobile';
|
|
132
|
+
this.isJoiningToChallenge = undefined;
|
|
133
|
+
this.pausedChallengeIds = [];
|
|
134
|
+
this.limitStylingAppends = false;
|
|
135
|
+
this.timer = '';
|
|
136
|
+
this.showDetails = false;
|
|
137
|
+
this.isExpiredChallenge = false;
|
|
153
138
|
}
|
|
154
139
|
challengePropHandler(value) {
|
|
155
140
|
if (!this.interval && value) {
|
|
@@ -287,31 +272,6 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
|
|
|
287
272
|
const CasinoEngagementSuiteProgressBar = class {
|
|
288
273
|
constructor(hostRef) {
|
|
289
274
|
registerInstance(this, hostRef);
|
|
290
|
-
/**
|
|
291
|
-
* Value for the widget
|
|
292
|
-
*/
|
|
293
|
-
this.value = 0;
|
|
294
|
-
/**
|
|
295
|
-
* Shows disabled styles
|
|
296
|
-
*/
|
|
297
|
-
this.disabled = false;
|
|
298
|
-
/**
|
|
299
|
-
* Hide percent value
|
|
300
|
-
*/
|
|
301
|
-
this.hidePercent = false;
|
|
302
|
-
/**
|
|
303
|
-
* Constantly animates
|
|
304
|
-
*/
|
|
305
|
-
this.indeterminate = false;
|
|
306
|
-
/**
|
|
307
|
-
* Client custom styling via string
|
|
308
|
-
*/
|
|
309
|
-
this.clientStyling = '';
|
|
310
|
-
/**
|
|
311
|
-
* Client custom styling via url
|
|
312
|
-
*/
|
|
313
|
-
this.clientStylingUrl = '';
|
|
314
|
-
this.limitStylingAppends = false;
|
|
315
275
|
this.setClientStyling = () => {
|
|
316
276
|
let sheet = document.createElement('style');
|
|
317
277
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -330,6 +290,13 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
330
290
|
console.log('Error ', err);
|
|
331
291
|
});
|
|
332
292
|
};
|
|
293
|
+
this.value = 0;
|
|
294
|
+
this.disabled = false;
|
|
295
|
+
this.hidePercent = false;
|
|
296
|
+
this.indeterminate = false;
|
|
297
|
+
this.clientStyling = '';
|
|
298
|
+
this.clientStylingUrl = '';
|
|
299
|
+
this.limitStylingAppends = false;
|
|
333
300
|
}
|
|
334
301
|
componentDidRender() {
|
|
335
302
|
if (!this.limitStylingAppends && this.host) {
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-engagement-suite-challenges-details';
|
|
2
|
-
const BUILD = /* casino-engagement-suite-challenges-details */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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,
|
|
2
|
+
const BUILD = /* casino-engagement-suite-challenges-details */ { 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: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, 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: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, 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: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
// src/client/client-host-ref.ts
|
|
14
12
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
15
13
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
16
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
17
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
-
};
|
|
14
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
19
15
|
var registerHost = (hostElement, cmpMeta) => {
|
|
20
16
|
const hostRef = {
|
|
21
17
|
$flags$: 0,
|
|
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
28
24
|
hostElement["s-p"] = [];
|
|
29
25
|
hostElement["s-rc"] = [];
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
return ref;
|
|
27
|
+
return hostRefs.set(hostElement, hostRef);
|
|
33
28
|
};
|
|
34
29
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
35
30
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
66
61
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
67
62
|
/* webpackMode: "lazy" */
|
|
68
63
|
`./${bundleId}.entry.js${""}`
|
|
69
|
-
).then(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cmpModules.set(bundleId, importedModule);
|
|
73
|
-
}
|
|
74
|
-
return importedModule[exportName];
|
|
75
|
-
},
|
|
76
|
-
(e) => {
|
|
77
|
-
consoleError(e, hostRef.$hostElement$);
|
|
64
|
+
).then((importedModule) => {
|
|
65
|
+
{
|
|
66
|
+
cmpModules.set(bundleId, importedModule);
|
|
78
67
|
}
|
|
79
|
-
|
|
68
|
+
return importedModule[exportName];
|
|
69
|
+
}, consoleError);
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
// src/client/client-style.ts
|
|
83
73
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
85
74
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
86
75
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
87
76
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -139,6 +128,12 @@ var flush = () => {
|
|
|
139
128
|
};
|
|
140
129
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
141
130
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
+
|
|
132
|
+
// src/utils/constants.ts
|
|
133
|
+
var EMPTY_OBJ = {};
|
|
134
|
+
|
|
135
|
+
// src/utils/helpers.ts
|
|
136
|
+
var isDef = (v) => v != null;
|
|
142
137
|
var isComplexType = (o) => {
|
|
143
138
|
o = typeof o;
|
|
144
139
|
return o === "object" || o === "function";
|
|
@@ -342,40 +337,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
342
337
|
}
|
|
343
338
|
if (!appliedStyles.has(scopeId2)) {
|
|
344
339
|
{
|
|
345
|
-
styleElm =
|
|
340
|
+
styleElm = doc.createElement("style");
|
|
346
341
|
styleElm.innerHTML = style;
|
|
347
342
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
348
343
|
if (nonce != null) {
|
|
349
344
|
styleElm.setAttribute("nonce", nonce);
|
|
350
345
|
}
|
|
351
|
-
|
|
352
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
353
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
354
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
355
|
-
styleContainerNode.insertBefore(
|
|
356
|
-
styleElm,
|
|
357
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
358
|
-
);
|
|
359
|
-
} else if ("host" in styleContainerNode) {
|
|
360
|
-
if (supportsConstructableStylesheets) {
|
|
361
|
-
const stylesheet = new CSSStyleSheet();
|
|
362
|
-
stylesheet.replaceSync(style);
|
|
363
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
364
|
-
} else {
|
|
365
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
366
|
-
if (existingStyleContainer) {
|
|
367
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
368
|
-
} else {
|
|
369
|
-
styleContainerNode.prepend(styleElm);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
} else {
|
|
373
|
-
styleContainerNode.append(styleElm);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
377
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
378
|
-
}
|
|
346
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
379
347
|
}
|
|
380
348
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
381
349
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -398,25 +366,23 @@ var attachStyles = (hostRef) => {
|
|
|
398
366
|
const scopeId2 = addStyle(
|
|
399
367
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
400
368
|
cmpMeta);
|
|
401
|
-
if (
|
|
369
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
402
370
|
elm["s-sc"] = scopeId2;
|
|
403
371
|
elm.classList.add(scopeId2 + "-h");
|
|
404
372
|
}
|
|
405
373
|
endAttachStyles();
|
|
406
374
|
};
|
|
407
375
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
408
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
376
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
377
|
if (oldValue !== newValue) {
|
|
410
378
|
let isProp = isMemberInElement(elm, memberName);
|
|
411
379
|
let ln = memberName.toLowerCase();
|
|
412
380
|
if (memberName === "class") {
|
|
413
381
|
const classList = elm.classList;
|
|
414
382
|
const oldClasses = parseClassList(oldValue);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
419
|
-
}
|
|
383
|
+
const newClasses = parseClassList(newValue);
|
|
384
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
385
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
386
|
} else if (memberName === "style") {
|
|
421
387
|
{
|
|
422
388
|
for (const prop in oldValue) {
|
|
@@ -465,13 +431,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
465
431
|
if (memberName === "list") {
|
|
466
432
|
isProp = false;
|
|
467
433
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
468
|
-
|
|
469
|
-
elm[memberName] = n;
|
|
470
|
-
} else {
|
|
471
|
-
elm.setAttribute(memberName, n);
|
|
472
|
-
}
|
|
434
|
+
elm[memberName] = n;
|
|
473
435
|
}
|
|
474
|
-
} else
|
|
436
|
+
} else {
|
|
475
437
|
elm[memberName] = newValue;
|
|
476
438
|
}
|
|
477
439
|
} catch (e) {
|
|
@@ -493,44 +455,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
493
455
|
}
|
|
494
456
|
};
|
|
495
457
|
var parseClassListRegex = /\s/;
|
|
496
|
-
var parseClassList = (value) =>
|
|
497
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
498
|
-
value = value.baseVal;
|
|
499
|
-
}
|
|
500
|
-
if (!value || typeof value !== "string") {
|
|
501
|
-
return [];
|
|
502
|
-
}
|
|
503
|
-
return value.split(parseClassListRegex);
|
|
504
|
-
};
|
|
458
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
505
459
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
506
460
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
507
461
|
|
|
508
462
|
// src/runtime/vdom/update-element.ts
|
|
509
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
463
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
510
464
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
511
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
512
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
465
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
466
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
513
467
|
{
|
|
514
468
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
515
469
|
if (!(memberName in newVnodeAttrs)) {
|
|
516
|
-
setAccessor(
|
|
517
|
-
elm,
|
|
518
|
-
memberName,
|
|
519
|
-
oldVnodeAttrs[memberName],
|
|
520
|
-
void 0,
|
|
521
|
-
isSvgMode2,
|
|
522
|
-
newVnode.$flags$);
|
|
470
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
523
471
|
}
|
|
524
472
|
}
|
|
525
473
|
}
|
|
526
474
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
527
|
-
setAccessor(
|
|
528
|
-
elm,
|
|
529
|
-
memberName,
|
|
530
|
-
oldVnodeAttrs[memberName],
|
|
531
|
-
newVnodeAttrs[memberName],
|
|
532
|
-
isSvgMode2,
|
|
533
|
-
newVnode.$flags$);
|
|
475
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
534
476
|
}
|
|
535
477
|
};
|
|
536
478
|
function sortedAttrNames(attrNames) {
|
|
@@ -542,10 +484,13 @@ function sortedAttrNames(attrNames) {
|
|
|
542
484
|
attrNames
|
|
543
485
|
);
|
|
544
486
|
}
|
|
487
|
+
|
|
488
|
+
// src/runtime/vdom/vdom-render.ts
|
|
489
|
+
var scopeId;
|
|
545
490
|
var hostTagName;
|
|
546
491
|
var useNativeShadowDom = false;
|
|
547
492
|
var isSvgMode = false;
|
|
548
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
493
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
549
494
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
550
495
|
let i2 = 0;
|
|
551
496
|
let elm;
|
|
@@ -559,6 +504,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
559
504
|
{
|
|
560
505
|
updateElement(null, newVNode2, isSvgMode);
|
|
561
506
|
}
|
|
507
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
508
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
509
|
+
}
|
|
562
510
|
if (newVNode2.$children$) {
|
|
563
511
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
564
512
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -687,9 +635,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
687
635
|
if (!isInitialRender) {
|
|
688
636
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
689
637
|
}
|
|
690
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
691
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
692
|
-
}
|
|
693
638
|
return true;
|
|
694
639
|
}
|
|
695
640
|
return false;
|
|
@@ -713,10 +658,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
713
658
|
elm.textContent = "";
|
|
714
659
|
}
|
|
715
660
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
716
|
-
} else if (
|
|
717
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
718
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
719
|
-
) {
|
|
661
|
+
} else if (oldChildren !== null) {
|
|
720
662
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
721
663
|
}
|
|
722
664
|
} else if (oldVNode.$text$ !== text) {
|
|
@@ -724,9 +666,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
724
666
|
}
|
|
725
667
|
};
|
|
726
668
|
var insertBefore = (parent, newNode, reference) => {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
}
|
|
669
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
670
|
+
return inserted;
|
|
730
671
|
};
|
|
731
672
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
732
673
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -751,21 +692,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
751
692
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
752
693
|
hostRef.$vnode$ = rootVnode;
|
|
753
694
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
754
|
-
|
|
695
|
+
{
|
|
696
|
+
scopeId = hostElm["s-sc"];
|
|
697
|
+
}
|
|
698
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
755
699
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
756
700
|
};
|
|
757
701
|
|
|
758
702
|
// src/runtime/update-component.ts
|
|
759
703
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
760
704
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
761
|
-
|
|
762
|
-
new Promise(
|
|
763
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
764
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
765
|
-
r();
|
|
766
|
-
}
|
|
767
|
-
)
|
|
768
|
-
);
|
|
705
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
769
706
|
}
|
|
770
707
|
};
|
|
771
708
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -792,7 +729,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
792
729
|
let maybePromise;
|
|
793
730
|
if (isInitialLoad) {
|
|
794
731
|
{
|
|
795
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
732
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
796
733
|
}
|
|
797
734
|
}
|
|
798
735
|
endSchedule();
|
|
@@ -861,7 +798,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
861
798
|
const instance = hostRef.$lazyInstance$ ;
|
|
862
799
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
863
800
|
{
|
|
864
|
-
safeCall(instance, "componentDidRender"
|
|
801
|
+
safeCall(instance, "componentDidRender");
|
|
865
802
|
}
|
|
866
803
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
867
804
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -890,14 +827,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
890
827
|
}
|
|
891
828
|
};
|
|
892
829
|
var appDidLoad = (who) => {
|
|
830
|
+
{
|
|
831
|
+
addHydratedFlag(doc.documentElement);
|
|
832
|
+
}
|
|
893
833
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
894
834
|
};
|
|
895
|
-
var safeCall = (instance, method, arg
|
|
835
|
+
var safeCall = (instance, method, arg) => {
|
|
896
836
|
if (instance && instance[method]) {
|
|
897
837
|
try {
|
|
898
838
|
return instance[method](arg);
|
|
899
839
|
} catch (e) {
|
|
900
|
-
consoleError(e
|
|
840
|
+
consoleError(e);
|
|
901
841
|
}
|
|
902
842
|
}
|
|
903
843
|
return void 0;
|
|
@@ -956,68 +896,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
956
896
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
957
897
|
members.map(([memberName, [memberFlags]]) => {
|
|
958
898
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
959
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
960
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
961
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
962
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
963
|
-
Object.defineProperty(prototype, memberName, {
|
|
964
|
-
get() {
|
|
965
|
-
{
|
|
966
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
967
|
-
return getValue(this, memberName);
|
|
968
|
-
}
|
|
969
|
-
const ref = getHostRef(this);
|
|
970
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
971
|
-
if (!instance) return;
|
|
972
|
-
return instance[memberName];
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
configurable: true,
|
|
976
|
-
enumerable: true
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
899
|
Object.defineProperty(prototype, memberName, {
|
|
900
|
+
get() {
|
|
901
|
+
return getValue(this, memberName);
|
|
902
|
+
},
|
|
980
903
|
set(newValue) {
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
986
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
987
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
988
|
-
}
|
|
989
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
990
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
991
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
992
|
-
return;
|
|
993
|
-
}
|
|
994
|
-
{
|
|
995
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
996
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
997
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
998
|
-
ref.$onReadyPromise$.then(() => {
|
|
999
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1000
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1001
|
-
}
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
return;
|
|
1005
|
-
}
|
|
1006
|
-
const setterSetVal = () => {
|
|
1007
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1008
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1009
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1010
|
-
}
|
|
1011
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1012
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1013
|
-
};
|
|
1014
|
-
if (ref.$lazyInstance$) {
|
|
1015
|
-
setterSetVal();
|
|
1016
|
-
} else {
|
|
1017
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
904
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
905
|
+
},
|
|
906
|
+
configurable: true,
|
|
907
|
+
enumerable: true
|
|
1021
908
|
});
|
|
1022
909
|
}
|
|
1023
910
|
});
|
|
@@ -1027,11 +914,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1027
914
|
plt.jmp(() => {
|
|
1028
915
|
var _a2;
|
|
1029
916
|
const propName = attrNameToPropName.get(attrName);
|
|
1030
|
-
if (this.hasOwnProperty(propName)
|
|
917
|
+
if (this.hasOwnProperty(propName)) {
|
|
1031
918
|
newValue = this[propName];
|
|
1032
919
|
delete this[propName];
|
|
1033
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1034
|
-
this[propName] == newValue) {
|
|
920
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1035
921
|
return;
|
|
1036
922
|
} else if (propName == null) {
|
|
1037
923
|
const hostRef = getHostRef(this);
|
|
@@ -1047,11 +933,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1047
933
|
}
|
|
1048
934
|
return;
|
|
1049
935
|
}
|
|
1050
|
-
|
|
1051
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1052
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1053
|
-
this[propName] = newValue;
|
|
1054
|
-
}
|
|
936
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1055
937
|
});
|
|
1056
938
|
};
|
|
1057
939
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1080,7 +962,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1080
962
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1081
963
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1082
964
|
if (bundleId) {
|
|
1083
|
-
const CstrImport = loadModule(cmpMeta
|
|
965
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1084
966
|
if (CstrImport && "then" in CstrImport) {
|
|
1085
967
|
const endLoad = uniqueTime();
|
|
1086
968
|
Cstr = await CstrImport;
|
|
@@ -1105,7 +987,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1105
987
|
try {
|
|
1106
988
|
new Cstr(hostRef);
|
|
1107
989
|
} catch (e) {
|
|
1108
|
-
consoleError(e
|
|
990
|
+
consoleError(e);
|
|
1109
991
|
}
|
|
1110
992
|
{
|
|
1111
993
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1140,7 +1022,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1140
1022
|
schedule();
|
|
1141
1023
|
}
|
|
1142
1024
|
};
|
|
1143
|
-
var fireConnectedCallback = (instance
|
|
1025
|
+
var fireConnectedCallback = (instance) => {
|
|
1144
1026
|
};
|
|
1145
1027
|
|
|
1146
1028
|
// src/runtime/connected-callback.ts
|
|
@@ -1180,26 +1062,20 @@ var connectedCallback = (elm) => {
|
|
|
1180
1062
|
endConnected();
|
|
1181
1063
|
}
|
|
1182
1064
|
};
|
|
1183
|
-
var disconnectInstance = (instance
|
|
1065
|
+
var disconnectInstance = (instance) => {
|
|
1184
1066
|
{
|
|
1185
|
-
safeCall(instance, "disconnectedCallback"
|
|
1067
|
+
safeCall(instance, "disconnectedCallback");
|
|
1186
1068
|
}
|
|
1187
1069
|
};
|
|
1188
1070
|
var disconnectedCallback = async (elm) => {
|
|
1189
1071
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1190
1072
|
const hostRef = getHostRef(elm);
|
|
1191
1073
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1192
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1074
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1193
1075
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1194
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1076
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1195
1077
|
}
|
|
1196
1078
|
}
|
|
1197
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1198
|
-
rootAppliedStyles.delete(elm);
|
|
1199
|
-
}
|
|
1200
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1201
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1202
|
-
}
|
|
1203
1079
|
};
|
|
1204
1080
|
|
|
1205
1081
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1280,17 +1156,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1280
1156
|
}
|
|
1281
1157
|
disconnectedCallback() {
|
|
1282
1158
|
plt.jmp(() => disconnectedCallback(this));
|
|
1283
|
-
plt.raf(() => {
|
|
1284
|
-
var _a3;
|
|
1285
|
-
const hostRef = getHostRef(this);
|
|
1286
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1287
|
-
if (i2 > -1) {
|
|
1288
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1289
|
-
}
|
|
1290
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1291
|
-
delete hostRef.$vnode$.$elm$;
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
1159
|
}
|
|
1295
1160
|
componentOnReady() {
|
|
1296
1161
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-5ca12e73.js';
|
|
2
|
+
export { s as setNonce } from './index-5ca12e73.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -37,7 +37,7 @@ export declare class CasinoEngagementSuiteChallengesDetails {
|
|
|
37
37
|
/**
|
|
38
38
|
*Paused Challenge Ids
|
|
39
39
|
*/
|
|
40
|
-
pausedChallengeIds:
|
|
40
|
+
pausedChallengeIds: string[];
|
|
41
41
|
close: EventEmitter<void>;
|
|
42
42
|
back: EventEmitter<void>;
|
|
43
43
|
resetNewChallengeLabel: EventEmitter<string>;
|