@everymatrix/casino-engagement-suite-challenges-list 1.53.0 → 1.53.10
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-list/casino-engagement-suite-challenges-list.esm.js +1 -1
- package/dist/casino-engagement-suite-challenges-list/p-d4f9ee6b.js +2 -0
- package/dist/casino-engagement-suite-challenges-list/p-f96faa4d.entry.js +1 -0
- package/dist/cjs/casino-engagement-suite-challenges-list.cjs.js +2 -2
- package/dist/cjs/casino-engagement-suite-challenges-list_2.cjs.entry.js +56 -23
- package/dist/cjs/{index-a8a513f5.js → index-80fd5310.js} +166 -71
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.js +47 -16
- package/dist/esm/casino-engagement-suite-challenges-list.js +3 -3
- package/dist/esm/casino-engagement-suite-challenges-list_2.entry.js +56 -23
- package/dist/esm/{index-04cdb027.js → index-5d0386de.js} +166 -71
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-challenges-list/p-6cdf855b.entry.js +0 -1
- package/dist/casino-engagement-suite-challenges-list/p-9ea438ff.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.dev.d.ts +0 -2
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-engagement-suite-challenges-list';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-challenges-list */ { 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: 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: 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 };
|
|
24
|
+
const BUILD = /* casino-engagement-suite-challenges-list */ { 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: 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, modernPropertyDecls: 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 };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
// src/client/client-host-ref.ts
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -166,12 +177,6 @@ var flush = () => {
|
|
|
166
177
|
};
|
|
167
178
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
168
179
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
-
|
|
170
|
-
// src/utils/constants.ts
|
|
171
|
-
var EMPTY_OBJ = {};
|
|
172
|
-
|
|
173
|
-
// src/utils/helpers.ts
|
|
174
|
-
var isDef = (v) => v != null;
|
|
175
180
|
var isComplexType = (o) => {
|
|
176
181
|
o = typeof o;
|
|
177
182
|
return o === "object" || o === "function";
|
|
@@ -375,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
375
380
|
}
|
|
376
381
|
if (!appliedStyles.has(scopeId2)) {
|
|
377
382
|
{
|
|
378
|
-
styleElm = doc.createElement("style");
|
|
383
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
379
384
|
styleElm.innerHTML = style;
|
|
380
385
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
381
386
|
if (nonce != null) {
|
|
@@ -385,7 +390,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
385
390
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
386
391
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
387
392
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
388
|
-
styleContainerNode.insertBefore(
|
|
393
|
+
styleContainerNode.insertBefore(
|
|
394
|
+
styleElm,
|
|
395
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
396
|
+
);
|
|
389
397
|
} else if ("host" in styleContainerNode) {
|
|
390
398
|
if (supportsConstructableStylesheets) {
|
|
391
399
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -435,16 +443,18 @@ var attachStyles = (hostRef) => {
|
|
|
435
443
|
endAttachStyles();
|
|
436
444
|
};
|
|
437
445
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
438
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
446
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
439
447
|
if (oldValue !== newValue) {
|
|
440
448
|
let isProp = isMemberInElement(elm, memberName);
|
|
441
449
|
let ln = memberName.toLowerCase();
|
|
442
450
|
if (memberName === "class") {
|
|
443
451
|
const classList = elm.classList;
|
|
444
452
|
const oldClasses = parseClassList(oldValue);
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
453
|
+
let newClasses = parseClassList(newValue);
|
|
454
|
+
{
|
|
455
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
456
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
457
|
+
}
|
|
448
458
|
} else if (memberName === "style") {
|
|
449
459
|
{
|
|
450
460
|
for (const prop in oldValue) {
|
|
@@ -499,7 +509,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
499
509
|
elm.setAttribute(memberName, n);
|
|
500
510
|
}
|
|
501
511
|
}
|
|
502
|
-
} else {
|
|
512
|
+
} else if (elm[memberName] !== newValue) {
|
|
503
513
|
elm[memberName] = newValue;
|
|
504
514
|
}
|
|
505
515
|
} catch (e) {
|
|
@@ -521,24 +531,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
521
531
|
}
|
|
522
532
|
};
|
|
523
533
|
var parseClassListRegex = /\s/;
|
|
524
|
-
var parseClassList = (value) =>
|
|
534
|
+
var parseClassList = (value) => {
|
|
535
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
536
|
+
value = value.baseVal;
|
|
537
|
+
}
|
|
538
|
+
if (!value || typeof value !== "string") {
|
|
539
|
+
return [];
|
|
540
|
+
}
|
|
541
|
+
return value.split(parseClassListRegex);
|
|
542
|
+
};
|
|
525
543
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
526
544
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
527
545
|
|
|
528
546
|
// src/runtime/vdom/update-element.ts
|
|
529
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
547
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
530
548
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
531
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
532
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
549
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
550
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
533
551
|
{
|
|
534
552
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
535
553
|
if (!(memberName in newVnodeAttrs)) {
|
|
536
|
-
setAccessor(
|
|
554
|
+
setAccessor(
|
|
555
|
+
elm,
|
|
556
|
+
memberName,
|
|
557
|
+
oldVnodeAttrs[memberName],
|
|
558
|
+
void 0,
|
|
559
|
+
isSvgMode2,
|
|
560
|
+
newVnode.$flags$);
|
|
537
561
|
}
|
|
538
562
|
}
|
|
539
563
|
}
|
|
540
564
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
541
|
-
setAccessor(
|
|
565
|
+
setAccessor(
|
|
566
|
+
elm,
|
|
567
|
+
memberName,
|
|
568
|
+
oldVnodeAttrs[memberName],
|
|
569
|
+
newVnodeAttrs[memberName],
|
|
570
|
+
isSvgMode2,
|
|
571
|
+
newVnode.$flags$);
|
|
542
572
|
}
|
|
543
573
|
};
|
|
544
574
|
function sortedAttrNames(attrNames) {
|
|
@@ -550,13 +580,10 @@ function sortedAttrNames(attrNames) {
|
|
|
550
580
|
attrNames
|
|
551
581
|
);
|
|
552
582
|
}
|
|
553
|
-
|
|
554
|
-
// src/runtime/vdom/vdom-render.ts
|
|
555
|
-
var scopeId;
|
|
556
583
|
var hostTagName;
|
|
557
584
|
var useNativeShadowDom = false;
|
|
558
585
|
var isSvgMode = false;
|
|
559
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
586
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
560
587
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
561
588
|
let i2 = 0;
|
|
562
589
|
let elm;
|
|
@@ -570,11 +597,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
570
597
|
{
|
|
571
598
|
updateElement(null, newVNode2, isSvgMode);
|
|
572
599
|
}
|
|
573
|
-
const rootNode = elm.getRootNode();
|
|
574
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
575
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
576
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
577
|
-
}
|
|
578
600
|
if (newVNode2.$children$) {
|
|
579
601
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
580
602
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -703,6 +725,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
703
725
|
if (!isInitialRender) {
|
|
704
726
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
705
727
|
}
|
|
728
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
729
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
730
|
+
}
|
|
706
731
|
return true;
|
|
707
732
|
}
|
|
708
733
|
return false;
|
|
@@ -737,8 +762,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
737
762
|
}
|
|
738
763
|
};
|
|
739
764
|
var insertBefore = (parent, newNode, reference) => {
|
|
740
|
-
|
|
741
|
-
|
|
765
|
+
{
|
|
766
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
767
|
+
}
|
|
742
768
|
};
|
|
743
769
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
744
770
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -763,9 +789,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
763
789
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
764
790
|
hostRef.$vnode$ = rootVnode;
|
|
765
791
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
766
|
-
{
|
|
767
|
-
scopeId = hostElm["s-sc"];
|
|
768
|
-
}
|
|
769
792
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
770
793
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
771
794
|
};
|
|
@@ -773,7 +796,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
773
796
|
// src/runtime/update-component.ts
|
|
774
797
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
775
798
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
776
|
-
ancestorComponent["s-p"].push(
|
|
799
|
+
const index = ancestorComponent["s-p"].push(
|
|
800
|
+
new Promise(
|
|
801
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
802
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
803
|
+
r();
|
|
804
|
+
}
|
|
805
|
+
)
|
|
806
|
+
);
|
|
777
807
|
}
|
|
778
808
|
};
|
|
779
809
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -802,12 +832,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
802
832
|
{
|
|
803
833
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
804
834
|
if (hostRef.$queuedListeners$) {
|
|
805
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
835
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
806
836
|
hostRef.$queuedListeners$ = void 0;
|
|
807
837
|
}
|
|
808
838
|
}
|
|
809
839
|
{
|
|
810
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
840
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
811
841
|
}
|
|
812
842
|
}
|
|
813
843
|
endSchedule();
|
|
@@ -876,7 +906,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
876
906
|
const instance = hostRef.$lazyInstance$ ;
|
|
877
907
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
878
908
|
{
|
|
879
|
-
safeCall(instance, "componentDidRender");
|
|
909
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
880
910
|
}
|
|
881
911
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
882
912
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -910,12 +940,12 @@ var appDidLoad = (who) => {
|
|
|
910
940
|
}
|
|
911
941
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
912
942
|
};
|
|
913
|
-
var safeCall = (instance, method, arg) => {
|
|
943
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
914
944
|
if (instance && instance[method]) {
|
|
915
945
|
try {
|
|
916
946
|
return instance[method](arg);
|
|
917
947
|
} catch (e) {
|
|
918
|
-
consoleError(e);
|
|
948
|
+
consoleError(e, elm);
|
|
919
949
|
}
|
|
920
950
|
}
|
|
921
951
|
return void 0;
|
|
@@ -974,15 +1004,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
974
1004
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
975
1005
|
members.map(([memberName, [memberFlags]]) => {
|
|
976
1006
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1007
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
1008
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
1009
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
1010
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
1011
|
+
Object.defineProperty(prototype, memberName, {
|
|
1012
|
+
get() {
|
|
1013
|
+
{
|
|
1014
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
1015
|
+
return getValue(this, memberName);
|
|
1016
|
+
}
|
|
1017
|
+
const ref = getHostRef(this);
|
|
1018
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
1019
|
+
if (!instance) return;
|
|
1020
|
+
return instance[memberName];
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
configurable: true,
|
|
1024
|
+
enumerable: true
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
977
1027
|
Object.defineProperty(prototype, memberName, {
|
|
978
|
-
get() {
|
|
979
|
-
return getValue(this, memberName);
|
|
980
|
-
},
|
|
981
1028
|
set(newValue) {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1029
|
+
const ref = getHostRef(this);
|
|
1030
|
+
if (origSetter) {
|
|
1031
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1032
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1033
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1034
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1035
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1036
|
+
}
|
|
1037
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1038
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1039
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
{
|
|
1043
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1044
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1045
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1046
|
+
ref.$onReadyPromise$.then(() => {
|
|
1047
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1048
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1049
|
+
}
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
const setterSetVal = () => {
|
|
1055
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1056
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1057
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1058
|
+
}
|
|
1059
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1060
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1061
|
+
};
|
|
1062
|
+
if (ref.$lazyInstance$) {
|
|
1063
|
+
setterSetVal();
|
|
1064
|
+
} else {
|
|
1065
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
986
1069
|
});
|
|
987
1070
|
}
|
|
988
1071
|
});
|
|
@@ -992,7 +1075,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
992
1075
|
plt.jmp(() => {
|
|
993
1076
|
var _a2;
|
|
994
1077
|
const propName = attrNameToPropName.get(attrName);
|
|
995
|
-
if (this.hasOwnProperty(propName)) {
|
|
1078
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
996
1079
|
newValue = this[propName];
|
|
997
1080
|
delete this[propName];
|
|
998
1081
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1012,7 +1095,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1012
1095
|
}
|
|
1013
1096
|
return;
|
|
1014
1097
|
}
|
|
1015
|
-
|
|
1098
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1099
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1100
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1101
|
+
this[propName] = newValue;
|
|
1102
|
+
}
|
|
1016
1103
|
});
|
|
1017
1104
|
};
|
|
1018
1105
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1039,9 +1126,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1039
1126
|
let Cstr;
|
|
1040
1127
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1041
1128
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1129
|
+
{
|
|
1130
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1045
1131
|
if (CstrImport && "then" in CstrImport) {
|
|
1046
1132
|
const endLoad = uniqueTime();
|
|
1047
1133
|
Cstr = await CstrImport;
|
|
@@ -1066,7 +1152,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1066
1152
|
try {
|
|
1067
1153
|
new Cstr(hostRef);
|
|
1068
1154
|
} catch (e) {
|
|
1069
|
-
consoleError(e);
|
|
1155
|
+
consoleError(e, elm);
|
|
1070
1156
|
}
|
|
1071
1157
|
{
|
|
1072
1158
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1075,10 +1161,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1075
1161
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1076
1162
|
}
|
|
1077
1163
|
endNewInstance();
|
|
1078
|
-
} else {
|
|
1079
|
-
Cstr = elm.constructor;
|
|
1080
|
-
const cmpTag = elm.localName;
|
|
1081
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1082
1164
|
}
|
|
1083
1165
|
if (Cstr && Cstr.style) {
|
|
1084
1166
|
let style;
|
|
@@ -1101,7 +1183,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1101
1183
|
schedule();
|
|
1102
1184
|
}
|
|
1103
1185
|
};
|
|
1104
|
-
var fireConnectedCallback = (instance) => {
|
|
1186
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1105
1187
|
};
|
|
1106
1188
|
|
|
1107
1189
|
// src/runtime/connected-callback.ts
|
|
@@ -1142,9 +1224,9 @@ var connectedCallback = (elm) => {
|
|
|
1142
1224
|
endConnected();
|
|
1143
1225
|
}
|
|
1144
1226
|
};
|
|
1145
|
-
var disconnectInstance = (instance) => {
|
|
1227
|
+
var disconnectInstance = (instance, elm) => {
|
|
1146
1228
|
{
|
|
1147
|
-
safeCall(instance, "disconnectedCallback");
|
|
1229
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1148
1230
|
}
|
|
1149
1231
|
};
|
|
1150
1232
|
var disconnectedCallback = async (elm) => {
|
|
@@ -1157,11 +1239,17 @@ var disconnectedCallback = async (elm) => {
|
|
|
1157
1239
|
}
|
|
1158
1240
|
}
|
|
1159
1241
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1160
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
1242
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1161
1243
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1162
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
1244
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1163
1245
|
}
|
|
1164
1246
|
}
|
|
1247
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1248
|
+
rootAppliedStyles.delete(elm);
|
|
1249
|
+
}
|
|
1250
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1251
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1252
|
+
}
|
|
1165
1253
|
};
|
|
1166
1254
|
|
|
1167
1255
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1246,6 +1334,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1246
1334
|
}
|
|
1247
1335
|
disconnectedCallback() {
|
|
1248
1336
|
plt.jmp(() => disconnectedCallback(this));
|
|
1337
|
+
plt.raf(() => {
|
|
1338
|
+
var _a3;
|
|
1339
|
+
const hostRef = getHostRef(this);
|
|
1340
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1341
|
+
delete hostRef.$vnode$.$elm$;
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1249
1344
|
}
|
|
1250
1345
|
componentOnReady() {
|
|
1251
1346
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1309,7 +1404,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1309
1404
|
}
|
|
1310
1405
|
}
|
|
1311
1406
|
} catch (e) {
|
|
1312
|
-
consoleError(e);
|
|
1407
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1313
1408
|
}
|
|
1314
1409
|
};
|
|
1315
1410
|
var getHostListenerTarget = (elm, flags) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-80fd5310.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -5,6 +5,36 @@ import "../../../../../casino-engagement-suite-progress-bar/dist/types/index";
|
|
|
5
5
|
import { getChallengesHistoryTemplate, getHistoryLoaderTemplate } from "../../renders/ChallengesHistory";
|
|
6
6
|
export class CasinoEngagementSuiteChallengesList {
|
|
7
7
|
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* Client custom styling via string
|
|
10
|
+
*/
|
|
11
|
+
this.clientStyling = '';
|
|
12
|
+
/**
|
|
13
|
+
* Client custom styling via url
|
|
14
|
+
*/
|
|
15
|
+
this.clientStylingUrl = '';
|
|
16
|
+
/**
|
|
17
|
+
* Language of the widget
|
|
18
|
+
*/
|
|
19
|
+
this.language = 'en';
|
|
20
|
+
/**
|
|
21
|
+
* User's device type
|
|
22
|
+
*/
|
|
23
|
+
this.device = 'Mobile';
|
|
24
|
+
/**
|
|
25
|
+
* List of challenges
|
|
26
|
+
*/
|
|
27
|
+
this.challenges = [];
|
|
28
|
+
/**
|
|
29
|
+
*Paused Challenge Ids
|
|
30
|
+
*/
|
|
31
|
+
this.pausedChallengeIds = [];
|
|
32
|
+
this.tooltip = false;
|
|
33
|
+
this.timers = {};
|
|
34
|
+
this.limitStylingAppends = false;
|
|
35
|
+
this.activeTab = 1;
|
|
36
|
+
this.historyLoading = false;
|
|
37
|
+
this.openedHistoryIds = [];
|
|
8
38
|
this.setClientStyling = () => {
|
|
9
39
|
let sheet = document.createElement('style');
|
|
10
40
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -81,21 +111,6 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
81
111
|
},
|
|
82
112
|
});
|
|
83
113
|
};
|
|
84
|
-
this.clientStyling = '';
|
|
85
|
-
this.clientStylingUrl = '';
|
|
86
|
-
this.language = 'en';
|
|
87
|
-
this.device = 'Mobile';
|
|
88
|
-
this.challenges = [];
|
|
89
|
-
this.isJoiningToChallenge = undefined;
|
|
90
|
-
this.inProgressChallenges = undefined;
|
|
91
|
-
this.pausedChallengeIds = [];
|
|
92
|
-
this.tooltip = false;
|
|
93
|
-
this.timers = {};
|
|
94
|
-
this.limitStylingAppends = false;
|
|
95
|
-
this.activeTab = 1;
|
|
96
|
-
this.historyLoading = false;
|
|
97
|
-
this.challengesHistory = undefined;
|
|
98
|
-
this.openedHistoryIds = [];
|
|
99
114
|
}
|
|
100
115
|
handleEvent(e) {
|
|
101
116
|
const { type } = e === null || e === void 0 ? void 0 : e.data;
|
|
@@ -299,6 +314,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
299
314
|
"tags": [],
|
|
300
315
|
"text": "Client custom styling via string"
|
|
301
316
|
},
|
|
317
|
+
"getter": false,
|
|
318
|
+
"setter": false,
|
|
302
319
|
"attribute": "client-styling",
|
|
303
320
|
"reflect": true,
|
|
304
321
|
"defaultValue": "''"
|
|
@@ -317,6 +334,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
317
334
|
"tags": [],
|
|
318
335
|
"text": "Client custom styling via url"
|
|
319
336
|
},
|
|
337
|
+
"getter": false,
|
|
338
|
+
"setter": false,
|
|
320
339
|
"attribute": "client-styling-url",
|
|
321
340
|
"reflect": true,
|
|
322
341
|
"defaultValue": "''"
|
|
@@ -335,6 +354,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
335
354
|
"tags": [],
|
|
336
355
|
"text": "Language of the widget"
|
|
337
356
|
},
|
|
357
|
+
"getter": false,
|
|
358
|
+
"setter": false,
|
|
338
359
|
"attribute": "language",
|
|
339
360
|
"reflect": false,
|
|
340
361
|
"defaultValue": "'en'"
|
|
@@ -353,6 +374,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
353
374
|
"tags": [],
|
|
354
375
|
"text": "User's device type"
|
|
355
376
|
},
|
|
377
|
+
"getter": false,
|
|
378
|
+
"setter": false,
|
|
356
379
|
"attribute": "device",
|
|
357
380
|
"reflect": false,
|
|
358
381
|
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
@@ -377,6 +400,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
377
400
|
"tags": [],
|
|
378
401
|
"text": "List of challenges"
|
|
379
402
|
},
|
|
403
|
+
"getter": false,
|
|
404
|
+
"setter": false,
|
|
380
405
|
"defaultValue": "[] as Array<Challenge>"
|
|
381
406
|
},
|
|
382
407
|
"isJoiningToChallenge": {
|
|
@@ -393,6 +418,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
393
418
|
"tags": [],
|
|
394
419
|
"text": "Is joining to challenge"
|
|
395
420
|
},
|
|
421
|
+
"getter": false,
|
|
422
|
+
"setter": false,
|
|
396
423
|
"attribute": "is-joining-to-challenge",
|
|
397
424
|
"reflect": false
|
|
398
425
|
},
|
|
@@ -414,7 +441,9 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
414
441
|
"docs": {
|
|
415
442
|
"tags": [],
|
|
416
443
|
"text": "Active challenges"
|
|
417
|
-
}
|
|
444
|
+
},
|
|
445
|
+
"getter": false,
|
|
446
|
+
"setter": false
|
|
418
447
|
},
|
|
419
448
|
"pausedChallengeIds": {
|
|
420
449
|
"type": "unknown",
|
|
@@ -430,6 +459,8 @@ export class CasinoEngagementSuiteChallengesList {
|
|
|
430
459
|
"tags": [],
|
|
431
460
|
"text": "Paused Challenge Ids"
|
|
432
461
|
},
|
|
462
|
+
"getter": false,
|
|
463
|
+
"setter": false,
|
|
433
464
|
"defaultValue": "[] as Array<string>"
|
|
434
465
|
}
|
|
435
466
|
};
|
|
@@ -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-5d0386de.js';
|
|
2
|
+
export { s as setNonce } from './index-5d0386de.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.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|