@everymatrix/casino-engagement-suite-modal-container 1.54.11 → 1.55.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.
Files changed (24) hide show
  1. package/dist/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.esm.js +1 -1
  2. package/dist/casino-engagement-suite-modal-container/p-9bc17463.js +2 -0
  3. package/dist/casino-engagement-suite-modal-container/p-deb88d81.entry.js +1 -0
  4. package/dist/cjs/casino-engagement-suite-modal-container.cjs.js +2 -2
  5. package/dist/cjs/casino-engagement-suite-modal_2.cjs.entry.js +22 -34
  6. package/dist/cjs/{index-146a156e.js → index-abe824ad.js} +67 -168
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-engagement-suite-modal-container/casino-engagement-suite-modal-container.js +11 -29
  10. package/dist/esm/casino-engagement-suite-modal-container.js +3 -3
  11. package/dist/esm/casino-engagement-suite-modal_2.entry.js +22 -34
  12. package/dist/esm/{index-114dbf36.js → index-6c6d5eed.js} +67 -168
  13. package/dist/esm/loader.js +2 -2
  14. 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 +2 -0
  15. 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 +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-modal-container/p-4866ec93.entry.js +0 -1
  18. package/dist/casino-engagement-suite-modal-container/p-829cf9c9.js +0 -2
  19. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.d.ts +0 -2
  20. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/packages/stencil/casino-engagement-suite-modal-container/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ 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, 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 };
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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | 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
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -177,6 +166,12 @@ var flush = () => {
177
166
  };
178
167
  var nextTick = (cb) => promiseResolve().then(cb);
179
168
  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;
180
175
  var isComplexType = (o) => {
181
176
  o = typeof o;
182
177
  return o === "object" || o === "function";
@@ -377,7 +372,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
377
372
  }
378
373
  if (!appliedStyles.has(scopeId2)) {
379
374
  {
380
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
375
+ styleElm = doc.createElement("style");
381
376
  styleElm.innerHTML = style;
382
377
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
383
378
  if (nonce != null) {
@@ -387,10 +382,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
387
382
  if (styleContainerNode.nodeName === "HEAD") {
388
383
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
389
384
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
390
- styleContainerNode.insertBefore(
391
- styleElm,
392
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
393
- );
385
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
394
386
  } else if ("host" in styleContainerNode) {
395
387
  if (supportsConstructableStylesheets) {
396
388
  const stylesheet = new CSSStyleSheet();
@@ -408,7 +400,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
408
400
  styleContainerNode.append(styleElm);
409
401
  }
410
402
  }
411
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
403
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
412
404
  styleContainerNode.insertBefore(styleElm, null);
413
405
  }
414
406
  }
@@ -433,25 +425,23 @@ var attachStyles = (hostRef) => {
433
425
  const scopeId2 = addStyle(
434
426
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
435
427
  cmpMeta);
436
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
428
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
437
429
  elm["s-sc"] = scopeId2;
438
430
  elm.classList.add(scopeId2 + "-h");
439
431
  }
440
432
  endAttachStyles();
441
433
  };
442
434
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
443
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
435
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
436
  if (oldValue !== newValue) {
445
437
  let isProp = isMemberInElement(elm, memberName);
446
438
  let ln = memberName.toLowerCase();
447
439
  if (memberName === "class") {
448
440
  const classList = elm.classList;
449
441
  const oldClasses = parseClassList(oldValue);
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
- }
442
+ const newClasses = parseClassList(newValue);
443
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
444
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
455
445
  } else if (memberName === "style") {
456
446
  {
457
447
  for (const prop in oldValue) {
@@ -506,7 +496,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
506
496
  elm.setAttribute(memberName, n);
507
497
  }
508
498
  }
509
- } else if (elm[memberName] !== newValue) {
499
+ } else {
510
500
  elm[memberName] = newValue;
511
501
  }
512
502
  } catch (e) {
@@ -528,44 +518,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
528
518
  }
529
519
  };
530
520
  var parseClassListRegex = /\s/;
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
- };
521
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
540
522
  var CAPTURE_EVENT_SUFFIX = "Capture";
541
523
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
542
524
 
543
525
  // src/runtime/vdom/update-element.ts
544
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
526
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
545
527
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
546
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
547
- const newVnodeAttrs = newVnode.$attrs$ || {};
528
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
529
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
548
530
  {
549
531
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
550
532
  if (!(memberName in newVnodeAttrs)) {
551
- setAccessor(
552
- elm,
553
- memberName,
554
- oldVnodeAttrs[memberName],
555
- void 0,
556
- isSvgMode2,
557
- newVnode.$flags$);
533
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
558
534
  }
559
535
  }
560
536
  }
561
537
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
562
- setAccessor(
563
- elm,
564
- memberName,
565
- oldVnodeAttrs[memberName],
566
- newVnodeAttrs[memberName],
567
- isSvgMode2,
568
- newVnode.$flags$);
538
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
569
539
  }
570
540
  };
571
541
  function sortedAttrNames(attrNames) {
@@ -577,10 +547,13 @@ function sortedAttrNames(attrNames) {
577
547
  attrNames
578
548
  );
579
549
  }
550
+
551
+ // src/runtime/vdom/vdom-render.ts
552
+ var scopeId;
580
553
  var hostTagName;
581
554
  var useNativeShadowDom = false;
582
555
  var isSvgMode = false;
583
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
556
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
584
557
  const newVNode2 = newParentVNode.$children$[childIndex];
585
558
  let i2 = 0;
586
559
  let elm;
@@ -594,6 +567,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
594
567
  {
595
568
  updateElement(null, newVNode2, isSvgMode);
596
569
  }
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
+ }
597
575
  if (newVNode2.$children$) {
598
576
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
599
577
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -722,9 +700,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
722
700
  if (!isInitialRender) {
723
701
  return leftVNode.$key$ === rightVNode.$key$;
724
702
  }
725
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
726
- leftVNode.$key$ = rightVNode.$key$;
727
- }
728
703
  return true;
729
704
  }
730
705
  return false;
@@ -759,9 +734,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
759
734
  }
760
735
  };
761
736
  var insertBefore = (parent, newNode, reference) => {
762
- {
763
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
764
- }
737
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
738
+ return inserted;
765
739
  };
766
740
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
767
741
  const hostElm = hostRef.$hostElement$;
@@ -786,21 +760,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
786
760
  rootVnode.$flags$ |= 4 /* isHost */;
787
761
  hostRef.$vnode$ = rootVnode;
788
762
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
789
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
763
+ {
764
+ scopeId = hostElm["s-sc"];
765
+ }
766
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
790
767
  patch(oldVNode, rootVnode, isInitialLoad);
791
768
  };
792
769
 
793
770
  // src/runtime/update-component.ts
794
771
  var attachToAncestor = (hostRef, ancestorComponent) => {
795
772
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
773
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
804
774
  }
805
775
  };
806
776
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -829,7 +799,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
829
799
  {
830
800
  hostRef.$flags$ |= 256 /* isListenReady */;
831
801
  if (hostRef.$queuedListeners$) {
832
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
802
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
833
803
  hostRef.$queuedListeners$ = void 0;
834
804
  }
835
805
  }
@@ -900,7 +870,7 @@ var postUpdateComponent = (hostRef) => {
900
870
  const instance = hostRef.$lazyInstance$ ;
901
871
  const ancestorComponent = hostRef.$ancestorComponent$;
902
872
  {
903
- safeCall(instance, "componentDidRender", void 0, elm);
873
+ safeCall(instance, "componentDidRender");
904
874
  }
905
875
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
906
876
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -929,14 +899,17 @@ var postUpdateComponent = (hostRef) => {
929
899
  }
930
900
  };
931
901
  var appDidLoad = (who) => {
902
+ {
903
+ addHydratedFlag(doc.documentElement);
904
+ }
932
905
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
933
906
  };
934
- var safeCall = (instance, method, arg, elm) => {
907
+ var safeCall = (instance, method, arg) => {
935
908
  if (instance && instance[method]) {
936
909
  try {
937
910
  return instance[method](arg);
938
911
  } catch (e) {
939
- consoleError(e, elm);
912
+ consoleError(e);
940
913
  }
941
914
  }
942
915
  return void 0;
@@ -979,68 +952,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
979
952
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
980
953
  members.map(([memberName, [memberFlags]]) => {
981
954
  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
- }
1002
955
  Object.defineProperty(prototype, memberName, {
956
+ get() {
957
+ return getValue(this, memberName);
958
+ },
1003
959
  set(newValue) {
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
- }
960
+ setValue(this, memberName, newValue, cmpMeta);
961
+ },
962
+ configurable: true,
963
+ enumerable: true
1044
964
  });
1045
965
  }
1046
966
  });
@@ -1050,7 +970,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1050
970
  plt.jmp(() => {
1051
971
  var _a2;
1052
972
  const propName = attrNameToPropName.get(attrName);
1053
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
973
+ if (this.hasOwnProperty(propName)) {
1054
974
  newValue = this[propName];
1055
975
  delete this[propName];
1056
976
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1070,11 +990,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1070
990
  }
1071
991
  return;
1072
992
  }
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
- }
993
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1078
994
  });
1079
995
  };
1080
996
  Cstr.observedAttributes = Array.from(
@@ -1103,7 +1019,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1103
1019
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1104
1020
  const bundleId = cmpMeta.$lazyBundleId$;
1105
1021
  if (bundleId) {
1106
- const CstrImport = loadModule(cmpMeta, hostRef);
1022
+ const CstrImport = loadModule(cmpMeta);
1107
1023
  if (CstrImport && "then" in CstrImport) {
1108
1024
  const endLoad = uniqueTime();
1109
1025
  Cstr = await CstrImport;
@@ -1125,7 +1041,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1125
1041
  try {
1126
1042
  new Cstr(hostRef);
1127
1043
  } catch (e) {
1128
- consoleError(e, elm);
1044
+ consoleError(e);
1129
1045
  }
1130
1046
  {
1131
1047
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1157,7 +1073,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1157
1073
  schedule();
1158
1074
  }
1159
1075
  };
1160
- var fireConnectedCallback = (instance, elm) => {
1076
+ var fireConnectedCallback = (instance) => {
1161
1077
  };
1162
1078
 
1163
1079
  // src/runtime/connected-callback.ts
@@ -1198,7 +1114,7 @@ var connectedCallback = (elm) => {
1198
1114
  endConnected();
1199
1115
  }
1200
1116
  };
1201
- var disconnectInstance = (instance, elm) => {
1117
+ var disconnectInstance = (instance) => {
1202
1118
  };
1203
1119
  var disconnectedCallback = async (elm) => {
1204
1120
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1213,12 +1129,6 @@ var disconnectedCallback = async (elm) => {
1213
1129
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1214
1130
  }
1215
1131
  }
1216
- if (rootAppliedStyles.has(elm)) {
1217
- rootAppliedStyles.delete(elm);
1218
- }
1219
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1220
- rootAppliedStyles.delete(elm.shadowRoot);
1221
- }
1222
1132
  };
1223
1133
 
1224
1134
  // src/runtime/bootstrap-lazy.ts
@@ -1299,17 +1209,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1299
1209
  }
1300
1210
  disconnectedCallback() {
1301
1211
  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
- });
1313
1212
  }
1314
1213
  componentOnReady() {
1315
1214
  return getHostRef(this).$onReadyPromise$;
@@ -1373,7 +1272,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1373
1272
  }
1374
1273
  }
1375
1274
  } catch (e) {
1376
- consoleError(e, hostRef.$hostElement$);
1275
+ consoleError(e);
1377
1276
  }
1378
1277
  };
1379
1278
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-146a156e.js');
5
+ const index = require('./index-abe824ad.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
7
+ "version": "4.22.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [
@@ -4,25 +4,6 @@ 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: '' };
26
7
  this.handleCloseClick = (e) => {
27
8
  const type = e.currentTarget.getAttribute('data-type');
28
9
  this.closeModal.emit(type);
@@ -54,6 +35,17 @@ export class CasinoEngagementSuiteModalContainer {
54
35
  this.isModalOpen = (type) => {
55
36
  return Boolean(this.openModals.find(el => el === type));
56
37
  };
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: '' };
57
49
  }
58
50
  openModalHandler(event) {
59
51
  const { modalType, rewardMessage, hasError, confirmationData, winAmount } = event.detail;
@@ -126,8 +118,6 @@ export class CasinoEngagementSuiteModalContainer {
126
118
  "tags": [],
127
119
  "text": "Client custom styling via string"
128
120
  },
129
- "getter": false,
130
- "setter": false,
131
121
  "attribute": "client-styling",
132
122
  "reflect": true,
133
123
  "defaultValue": "''"
@@ -146,8 +136,6 @@ export class CasinoEngagementSuiteModalContainer {
146
136
  "tags": [],
147
137
  "text": "Client custom styling via url"
148
138
  },
149
- "getter": false,
150
- "setter": false,
151
139
  "attribute": "client-styling-url",
152
140
  "reflect": true,
153
141
  "defaultValue": "''"
@@ -166,8 +154,6 @@ export class CasinoEngagementSuiteModalContainer {
166
154
  "tags": [],
167
155
  "text": "Language of the widget"
168
156
  },
169
- "getter": false,
170
- "setter": false,
171
157
  "attribute": "language",
172
158
  "reflect": false,
173
159
  "defaultValue": "'en'"
@@ -186,8 +172,6 @@ export class CasinoEngagementSuiteModalContainer {
186
172
  "tags": [],
187
173
  "text": "Is joining to challenge"
188
174
  },
189
- "getter": false,
190
- "setter": false,
191
175
  "attribute": "is-joining-to-challenge",
192
176
  "reflect": false
193
177
  },
@@ -205,8 +189,6 @@ export class CasinoEngagementSuiteModalContainer {
205
189
  "tags": [],
206
190
  "text": ""
207
191
  },
208
- "getter": false,
209
- "setter": false,
210
192
  "attribute": "device",
211
193
  "reflect": false,
212
194
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-114dbf36.js';
2
- export { s as setNonce } from './index-114dbf36.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6c6d5eed.js';
2
+ export { s as setNonce } from './index-6c6d5eed.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;