@everymatrix/casino-engagement-suite-modal-container 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -1
- package/dist/casino-engagement-suite-modal-container/p-4866ec93.entry.js +1 -0
- package/dist/casino-engagement-suite-modal-container/p-829cf9c9.js +2 -0
- package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +2 -2
- package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +34 -22
- package/dist/cjs/{index-abe824ad.js → index-146a156e.js} +168 -67
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +29 -11
- package/dist/esm/casino-engagement-suite-modal-container.js +3 -3
- package/dist/esm/casino-engagement-suite-modal_2.entry.js +34 -22
- package/dist/esm/{index-6c6d5eed.js → index-114dbf36.js} +168 -67
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-engagement-suite-modal-container/p-9bc17463.js +0 -2
- package/dist/casino-engagement-suite-modal-container/p-deb88d81.entry.js +0 -1
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-engagement-suite-modal-container';
|
|
24
|
-
const BUILD = /* casino-engagement-suite-modal-container */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, 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: false, 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: false };
|
|
24
|
+
const BUILD = /* casino-engagement-suite-modal-container */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, 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, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, 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: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.26.0 | 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";
|
|
@@ -372,7 +377,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
372
377
|
}
|
|
373
378
|
if (!appliedStyles.has(scopeId2)) {
|
|
374
379
|
{
|
|
375
|
-
styleElm = doc.createElement("style");
|
|
380
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
376
381
|
styleElm.innerHTML = style;
|
|
377
382
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
378
383
|
if (nonce != null) {
|
|
@@ -382,7 +387,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
382
387
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
383
388
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
384
389
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
385
|
-
styleContainerNode.insertBefore(
|
|
390
|
+
styleContainerNode.insertBefore(
|
|
391
|
+
styleElm,
|
|
392
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
393
|
+
);
|
|
386
394
|
} else if ("host" in styleContainerNode) {
|
|
387
395
|
if (supportsConstructableStylesheets) {
|
|
388
396
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -400,7 +408,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
400
408
|
styleContainerNode.append(styleElm);
|
|
401
409
|
}
|
|
402
410
|
}
|
|
403
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */
|
|
411
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
404
412
|
styleContainerNode.insertBefore(styleElm, null);
|
|
405
413
|
}
|
|
406
414
|
}
|
|
@@ -425,23 +433,25 @@ var attachStyles = (hostRef) => {
|
|
|
425
433
|
const scopeId2 = addStyle(
|
|
426
434
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
427
435
|
cmpMeta);
|
|
428
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
436
|
+
if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
|
|
429
437
|
elm["s-sc"] = scopeId2;
|
|
430
438
|
elm.classList.add(scopeId2 + "-h");
|
|
431
439
|
}
|
|
432
440
|
endAttachStyles();
|
|
433
441
|
};
|
|
434
442
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
435
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
443
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
436
444
|
if (oldValue !== newValue) {
|
|
437
445
|
let isProp = isMemberInElement(elm, memberName);
|
|
438
446
|
let ln = memberName.toLowerCase();
|
|
439
447
|
if (memberName === "class") {
|
|
440
448
|
const classList = elm.classList;
|
|
441
449
|
const oldClasses = parseClassList(oldValue);
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
450
|
+
let newClasses = parseClassList(newValue);
|
|
451
|
+
{
|
|
452
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
453
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
454
|
+
}
|
|
445
455
|
} else if (memberName === "style") {
|
|
446
456
|
{
|
|
447
457
|
for (const prop in oldValue) {
|
|
@@ -496,7 +506,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
496
506
|
elm.setAttribute(memberName, n);
|
|
497
507
|
}
|
|
498
508
|
}
|
|
499
|
-
} else {
|
|
509
|
+
} else if (elm[memberName] !== newValue) {
|
|
500
510
|
elm[memberName] = newValue;
|
|
501
511
|
}
|
|
502
512
|
} catch (e) {
|
|
@@ -518,24 +528,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
518
528
|
}
|
|
519
529
|
};
|
|
520
530
|
var parseClassListRegex = /\s/;
|
|
521
|
-
var parseClassList = (value) =>
|
|
531
|
+
var parseClassList = (value) => {
|
|
532
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
533
|
+
value = value.baseVal;
|
|
534
|
+
}
|
|
535
|
+
if (!value || typeof value !== "string") {
|
|
536
|
+
return [];
|
|
537
|
+
}
|
|
538
|
+
return value.split(parseClassListRegex);
|
|
539
|
+
};
|
|
522
540
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
523
541
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
524
542
|
|
|
525
543
|
// src/runtime/vdom/update-element.ts
|
|
526
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
544
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
527
545
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
528
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
529
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
546
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
547
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
530
548
|
{
|
|
531
549
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
532
550
|
if (!(memberName in newVnodeAttrs)) {
|
|
533
|
-
setAccessor(
|
|
551
|
+
setAccessor(
|
|
552
|
+
elm,
|
|
553
|
+
memberName,
|
|
554
|
+
oldVnodeAttrs[memberName],
|
|
555
|
+
void 0,
|
|
556
|
+
isSvgMode2,
|
|
557
|
+
newVnode.$flags$);
|
|
534
558
|
}
|
|
535
559
|
}
|
|
536
560
|
}
|
|
537
561
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
538
|
-
setAccessor(
|
|
562
|
+
setAccessor(
|
|
563
|
+
elm,
|
|
564
|
+
memberName,
|
|
565
|
+
oldVnodeAttrs[memberName],
|
|
566
|
+
newVnodeAttrs[memberName],
|
|
567
|
+
isSvgMode2,
|
|
568
|
+
newVnode.$flags$);
|
|
539
569
|
}
|
|
540
570
|
};
|
|
541
571
|
function sortedAttrNames(attrNames) {
|
|
@@ -547,13 +577,10 @@ function sortedAttrNames(attrNames) {
|
|
|
547
577
|
attrNames
|
|
548
578
|
);
|
|
549
579
|
}
|
|
550
|
-
|
|
551
|
-
// src/runtime/vdom/vdom-render.ts
|
|
552
|
-
var scopeId;
|
|
553
580
|
var hostTagName;
|
|
554
581
|
var useNativeShadowDom = false;
|
|
555
582
|
var isSvgMode = false;
|
|
556
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
583
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
557
584
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
558
585
|
let i2 = 0;
|
|
559
586
|
let elm;
|
|
@@ -567,11 +594,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
567
594
|
{
|
|
568
595
|
updateElement(null, newVNode2, isSvgMode);
|
|
569
596
|
}
|
|
570
|
-
const rootNode = elm.getRootNode();
|
|
571
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
572
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
573
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
574
|
-
}
|
|
575
597
|
if (newVNode2.$children$) {
|
|
576
598
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
577
599
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -700,6 +722,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
700
722
|
if (!isInitialRender) {
|
|
701
723
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
702
724
|
}
|
|
725
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
726
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
727
|
+
}
|
|
703
728
|
return true;
|
|
704
729
|
}
|
|
705
730
|
return false;
|
|
@@ -734,8 +759,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
734
759
|
}
|
|
735
760
|
};
|
|
736
761
|
var insertBefore = (parent, newNode, reference) => {
|
|
737
|
-
|
|
738
|
-
|
|
762
|
+
{
|
|
763
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
764
|
+
}
|
|
739
765
|
};
|
|
740
766
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
741
767
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -760,17 +786,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
760
786
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
761
787
|
hostRef.$vnode$ = rootVnode;
|
|
762
788
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
763
|
-
|
|
764
|
-
scopeId = hostElm["s-sc"];
|
|
765
|
-
}
|
|
766
|
-
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
789
|
+
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
767
790
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
768
791
|
};
|
|
769
792
|
|
|
770
793
|
// src/runtime/update-component.ts
|
|
771
794
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
772
795
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
773
|
-
ancestorComponent["s-p"].push(
|
|
796
|
+
const index = ancestorComponent["s-p"].push(
|
|
797
|
+
new Promise(
|
|
798
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
799
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
800
|
+
r();
|
|
801
|
+
}
|
|
802
|
+
)
|
|
803
|
+
);
|
|
774
804
|
}
|
|
775
805
|
};
|
|
776
806
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -799,7 +829,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
799
829
|
{
|
|
800
830
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
801
831
|
if (hostRef.$queuedListeners$) {
|
|
802
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
832
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
803
833
|
hostRef.$queuedListeners$ = void 0;
|
|
804
834
|
}
|
|
805
835
|
}
|
|
@@ -870,7 +900,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
870
900
|
const instance = hostRef.$lazyInstance$ ;
|
|
871
901
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
872
902
|
{
|
|
873
|
-
safeCall(instance, "componentDidRender");
|
|
903
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
874
904
|
}
|
|
875
905
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
876
906
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -899,17 +929,14 @@ var postUpdateComponent = (hostRef) => {
|
|
|
899
929
|
}
|
|
900
930
|
};
|
|
901
931
|
var appDidLoad = (who) => {
|
|
902
|
-
{
|
|
903
|
-
addHydratedFlag(doc.documentElement);
|
|
904
|
-
}
|
|
905
932
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
906
933
|
};
|
|
907
|
-
var safeCall = (instance, method, arg) => {
|
|
934
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
908
935
|
if (instance && instance[method]) {
|
|
909
936
|
try {
|
|
910
937
|
return instance[method](arg);
|
|
911
938
|
} catch (e) {
|
|
912
|
-
consoleError(e);
|
|
939
|
+
consoleError(e, elm);
|
|
913
940
|
}
|
|
914
941
|
}
|
|
915
942
|
return void 0;
|
|
@@ -952,15 +979,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
952
979
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
953
980
|
members.map(([memberName, [memberFlags]]) => {
|
|
954
981
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
982
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
983
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
984
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
985
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
986
|
+
Object.defineProperty(prototype, memberName, {
|
|
987
|
+
get() {
|
|
988
|
+
{
|
|
989
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
990
|
+
return getValue(this, memberName);
|
|
991
|
+
}
|
|
992
|
+
const ref = getHostRef(this);
|
|
993
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
994
|
+
if (!instance) return;
|
|
995
|
+
return instance[memberName];
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
configurable: true,
|
|
999
|
+
enumerable: true
|
|
1000
|
+
});
|
|
1001
|
+
}
|
|
955
1002
|
Object.defineProperty(prototype, memberName, {
|
|
956
|
-
get() {
|
|
957
|
-
return getValue(this, memberName);
|
|
958
|
-
},
|
|
959
1003
|
set(newValue) {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
1004
|
+
const ref = getHostRef(this);
|
|
1005
|
+
if (origSetter) {
|
|
1006
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1007
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
1008
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
1009
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1010
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1011
|
+
}
|
|
1012
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
1013
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
1014
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
{
|
|
1018
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1019
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
1020
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1021
|
+
ref.$onReadyPromise$.then(() => {
|
|
1022
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1023
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
const setterSetVal = () => {
|
|
1030
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1031
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1032
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1033
|
+
}
|
|
1034
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1035
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1036
|
+
};
|
|
1037
|
+
if (ref.$lazyInstance$) {
|
|
1038
|
+
setterSetVal();
|
|
1039
|
+
} else {
|
|
1040
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
964
1044
|
});
|
|
965
1045
|
}
|
|
966
1046
|
});
|
|
@@ -970,7 +1050,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
970
1050
|
plt.jmp(() => {
|
|
971
1051
|
var _a2;
|
|
972
1052
|
const propName = attrNameToPropName.get(attrName);
|
|
973
|
-
if (this.hasOwnProperty(propName)) {
|
|
1053
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
974
1054
|
newValue = this[propName];
|
|
975
1055
|
delete this[propName];
|
|
976
1056
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -990,7 +1070,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
990
1070
|
}
|
|
991
1071
|
return;
|
|
992
1072
|
}
|
|
993
|
-
|
|
1073
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1074
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1075
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1076
|
+
this[propName] = newValue;
|
|
1077
|
+
}
|
|
994
1078
|
});
|
|
995
1079
|
};
|
|
996
1080
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1019,7 +1103,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1019
1103
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1020
1104
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1021
1105
|
if (bundleId) {
|
|
1022
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1106
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1023
1107
|
if (CstrImport && "then" in CstrImport) {
|
|
1024
1108
|
const endLoad = uniqueTime();
|
|
1025
1109
|
Cstr = await CstrImport;
|
|
@@ -1041,7 +1125,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1041
1125
|
try {
|
|
1042
1126
|
new Cstr(hostRef);
|
|
1043
1127
|
} catch (e) {
|
|
1044
|
-
consoleError(e);
|
|
1128
|
+
consoleError(e, elm);
|
|
1045
1129
|
}
|
|
1046
1130
|
{
|
|
1047
1131
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1073,7 +1157,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1073
1157
|
schedule();
|
|
1074
1158
|
}
|
|
1075
1159
|
};
|
|
1076
|
-
var fireConnectedCallback = (instance) => {
|
|
1160
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1077
1161
|
};
|
|
1078
1162
|
|
|
1079
1163
|
// src/runtime/connected-callback.ts
|
|
@@ -1114,7 +1198,7 @@ var connectedCallback = (elm) => {
|
|
|
1114
1198
|
endConnected();
|
|
1115
1199
|
}
|
|
1116
1200
|
};
|
|
1117
|
-
var disconnectInstance = (instance) => {
|
|
1201
|
+
var disconnectInstance = (instance, elm) => {
|
|
1118
1202
|
};
|
|
1119
1203
|
var disconnectedCallback = async (elm) => {
|
|
1120
1204
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1129,6 +1213,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1129
1213
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1130
1214
|
}
|
|
1131
1215
|
}
|
|
1216
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1217
|
+
rootAppliedStyles.delete(elm);
|
|
1218
|
+
}
|
|
1219
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1220
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1221
|
+
}
|
|
1132
1222
|
};
|
|
1133
1223
|
|
|
1134
1224
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1209,6 +1299,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1209
1299
|
}
|
|
1210
1300
|
disconnectedCallback() {
|
|
1211
1301
|
plt.jmp(() => disconnectedCallback(this));
|
|
1302
|
+
plt.raf(() => {
|
|
1303
|
+
var _a3;
|
|
1304
|
+
const hostRef = getHostRef(this);
|
|
1305
|
+
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1306
|
+
if (i2 > -1) {
|
|
1307
|
+
deferredConnectedCallbacks.splice(i2, 1);
|
|
1308
|
+
}
|
|
1309
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1310
|
+
delete hostRef.$vnode$.$elm$;
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1212
1313
|
}
|
|
1213
1314
|
componentOnReady() {
|
|
1214
1315
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1272,7 +1373,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1272
1373
|
}
|
|
1273
1374
|
}
|
|
1274
1375
|
} catch (e) {
|
|
1275
|
-
consoleError(e);
|
|
1376
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1276
1377
|
}
|
|
1277
1378
|
};
|
|
1278
1379
|
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-146a156e.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -4,6 +4,25 @@ import { translate } from "../../utils/locale.utils";
|
|
|
4
4
|
import { formatBalance } from "../../utils/utils";
|
|
5
5
|
export class CasinoEngagementSuiteModalContainer {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Client custom styling via string
|
|
9
|
+
*/
|
|
10
|
+
this.clientStyling = '';
|
|
11
|
+
/**
|
|
12
|
+
* Client custom styling via url
|
|
13
|
+
*/
|
|
14
|
+
this.clientStylingUrl = '';
|
|
15
|
+
/**
|
|
16
|
+
* Language of the widget
|
|
17
|
+
*/
|
|
18
|
+
this.language = 'en';
|
|
19
|
+
this.device = 'Mobile';
|
|
20
|
+
this.limitStylingAppends = false;
|
|
21
|
+
this.openModals = [];
|
|
22
|
+
this.rewardMessage = '';
|
|
23
|
+
this.hasError = false;
|
|
24
|
+
this.confirmationData = null;
|
|
25
|
+
this.winAmount = { amount: 0, currency: '' };
|
|
7
26
|
this.handleCloseClick = (e) => {
|
|
8
27
|
const type = e.currentTarget.getAttribute('data-type');
|
|
9
28
|
this.closeModal.emit(type);
|
|
@@ -35,17 +54,6 @@ export class CasinoEngagementSuiteModalContainer {
|
|
|
35
54
|
this.isModalOpen = (type) => {
|
|
36
55
|
return Boolean(this.openModals.find(el => el === type));
|
|
37
56
|
};
|
|
38
|
-
this.clientStyling = '';
|
|
39
|
-
this.clientStylingUrl = '';
|
|
40
|
-
this.language = 'en';
|
|
41
|
-
this.isJoiningToChallenge = undefined;
|
|
42
|
-
this.device = 'Mobile';
|
|
43
|
-
this.limitStylingAppends = false;
|
|
44
|
-
this.openModals = [];
|
|
45
|
-
this.rewardMessage = '';
|
|
46
|
-
this.hasError = false;
|
|
47
|
-
this.confirmationData = null;
|
|
48
|
-
this.winAmount = { amount: 0, currency: '' };
|
|
49
57
|
}
|
|
50
58
|
openModalHandler(event) {
|
|
51
59
|
const { modalType, rewardMessage, hasError, confirmationData, winAmount } = event.detail;
|
|
@@ -118,6 +126,8 @@ export class CasinoEngagementSuiteModalContainer {
|
|
|
118
126
|
"tags": [],
|
|
119
127
|
"text": "Client custom styling via string"
|
|
120
128
|
},
|
|
129
|
+
"getter": false,
|
|
130
|
+
"setter": false,
|
|
121
131
|
"attribute": "client-styling",
|
|
122
132
|
"reflect": true,
|
|
123
133
|
"defaultValue": "''"
|
|
@@ -136,6 +146,8 @@ export class CasinoEngagementSuiteModalContainer {
|
|
|
136
146
|
"tags": [],
|
|
137
147
|
"text": "Client custom styling via url"
|
|
138
148
|
},
|
|
149
|
+
"getter": false,
|
|
150
|
+
"setter": false,
|
|
139
151
|
"attribute": "client-styling-url",
|
|
140
152
|
"reflect": true,
|
|
141
153
|
"defaultValue": "''"
|
|
@@ -154,6 +166,8 @@ export class CasinoEngagementSuiteModalContainer {
|
|
|
154
166
|
"tags": [],
|
|
155
167
|
"text": "Language of the widget"
|
|
156
168
|
},
|
|
169
|
+
"getter": false,
|
|
170
|
+
"setter": false,
|
|
157
171
|
"attribute": "language",
|
|
158
172
|
"reflect": false,
|
|
159
173
|
"defaultValue": "'en'"
|
|
@@ -172,6 +186,8 @@ export class CasinoEngagementSuiteModalContainer {
|
|
|
172
186
|
"tags": [],
|
|
173
187
|
"text": "Is joining to challenge"
|
|
174
188
|
},
|
|
189
|
+
"getter": false,
|
|
190
|
+
"setter": false,
|
|
175
191
|
"attribute": "is-joining-to-challenge",
|
|
176
192
|
"reflect": false
|
|
177
193
|
},
|
|
@@ -189,6 +205,8 @@ export class CasinoEngagementSuiteModalContainer {
|
|
|
189
205
|
"tags": [],
|
|
190
206
|
"text": ""
|
|
191
207
|
},
|
|
208
|
+
"getter": false,
|
|
209
|
+
"setter": false,
|
|
192
210
|
"attribute": "device",
|
|
193
211
|
"reflect": false,
|
|
194
212
|
"defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
|
|
@@ -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-114dbf36.js';
|
|
2
|
+
export { s as setNonce } from './index-114dbf36.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.26.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|