@everymatrix/casino-engagement-suite-modal-container 1.56.0 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) 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-6f4afe31.entry.js +1 -0
  3. package/dist/casino-engagement-suite-modal-container/p-bfb6dae8.js +2 -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-38c612e5.js} +67 -202
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  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-6912ff15.js} +67 -202
  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/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/casino-engagement-suite-modal-container/p-4866ec93.entry.js +0 -1
  19. package/dist/casino-engagement-suite-modal-container/p-829cf9c9.js +0 -2
  20. 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 +0 -2
  21. 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 +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-modal-container/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → 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.19.2 | 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,40 +372,13 @@ 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) {
384
379
  styleElm.setAttribute("nonce", nonce);
385
380
  }
386
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
387
- if (styleContainerNode.nodeName === "HEAD") {
388
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
389
- 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
- );
394
- } else if ("host" in styleContainerNode) {
395
- if (supportsConstructableStylesheets) {
396
- const stylesheet = new CSSStyleSheet();
397
- stylesheet.replaceSync(style);
398
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
399
- } else {
400
- const existingStyleContainer = styleContainerNode.querySelector("style");
401
- if (existingStyleContainer) {
402
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
403
- } else {
404
- styleContainerNode.prepend(styleElm);
405
- }
406
- }
407
- } else {
408
- styleContainerNode.append(styleElm);
409
- }
410
- }
411
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
412
- styleContainerNode.insertBefore(styleElm, null);
413
- }
381
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
414
382
  }
415
383
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
416
384
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -433,25 +401,23 @@ var attachStyles = (hostRef) => {
433
401
  const scopeId2 = addStyle(
434
402
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
435
403
  cmpMeta);
436
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
404
+ if (flags & 10 /* needsScopedEncapsulation */) {
437
405
  elm["s-sc"] = scopeId2;
438
406
  elm.classList.add(scopeId2 + "-h");
439
407
  }
440
408
  endAttachStyles();
441
409
  };
442
410
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
443
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
411
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
412
  if (oldValue !== newValue) {
445
413
  let isProp = isMemberInElement(elm, memberName);
446
414
  let ln = memberName.toLowerCase();
447
415
  if (memberName === "class") {
448
416
  const classList = elm.classList;
449
417
  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
- }
418
+ const newClasses = parseClassList(newValue);
419
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
420
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
455
421
  } else if (memberName === "style") {
456
422
  {
457
423
  for (const prop in oldValue) {
@@ -500,13 +466,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
500
466
  if (memberName === "list") {
501
467
  isProp = false;
502
468
  } else if (oldValue == null || elm[memberName] != n) {
503
- if (typeof elm.__lookupSetter__(memberName) === "function") {
504
- elm[memberName] = n;
505
- } else {
506
- elm.setAttribute(memberName, n);
507
- }
469
+ elm[memberName] = n;
508
470
  }
509
- } else if (elm[memberName] !== newValue) {
471
+ } else {
510
472
  elm[memberName] = newValue;
511
473
  }
512
474
  } catch (e) {
@@ -528,44 +490,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
528
490
  }
529
491
  };
530
492
  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
- };
493
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
540
494
  var CAPTURE_EVENT_SUFFIX = "Capture";
541
495
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
542
496
 
543
497
  // src/runtime/vdom/update-element.ts
544
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
498
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
545
499
  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$ || {};
500
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
501
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
548
502
  {
549
503
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
550
504
  if (!(memberName in newVnodeAttrs)) {
551
- setAccessor(
552
- elm,
553
- memberName,
554
- oldVnodeAttrs[memberName],
555
- void 0,
556
- isSvgMode2,
557
- newVnode.$flags$);
505
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
558
506
  }
559
507
  }
560
508
  }
561
509
  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$);
510
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
569
511
  }
570
512
  };
571
513
  function sortedAttrNames(attrNames) {
@@ -577,10 +519,13 @@ function sortedAttrNames(attrNames) {
577
519
  attrNames
578
520
  );
579
521
  }
522
+
523
+ // src/runtime/vdom/vdom-render.ts
524
+ var scopeId;
580
525
  var hostTagName;
581
526
  var useNativeShadowDom = false;
582
527
  var isSvgMode = false;
583
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
528
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
584
529
  const newVNode2 = newParentVNode.$children$[childIndex];
585
530
  let i2 = 0;
586
531
  let elm;
@@ -594,6 +539,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
594
539
  {
595
540
  updateElement(null, newVNode2, isSvgMode);
596
541
  }
542
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
543
+ elm.classList.add(elm["s-si"] = scopeId);
544
+ }
597
545
  if (newVNode2.$children$) {
598
546
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
599
547
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -722,9 +670,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
722
670
  if (!isInitialRender) {
723
671
  return leftVNode.$key$ === rightVNode.$key$;
724
672
  }
725
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
726
- leftVNode.$key$ = rightVNode.$key$;
727
- }
728
673
  return true;
729
674
  }
730
675
  return false;
@@ -748,10 +693,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
748
693
  elm.textContent = "";
749
694
  }
750
695
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
751
- } else if (
752
- // don't do this on initial render as it can cause non-hydrated content to be removed
753
- !isInitialRender && BUILD.updatable && oldChildren !== null
754
- ) {
696
+ } else if (oldChildren !== null) {
755
697
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
756
698
  }
757
699
  } else if (oldVNode.$text$ !== text) {
@@ -759,9 +701,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
759
701
  }
760
702
  };
761
703
  var insertBefore = (parent, newNode, reference) => {
762
- {
763
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
764
- }
704
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
705
+ return inserted;
765
706
  };
766
707
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
767
708
  const hostElm = hostRef.$hostElement$;
@@ -786,21 +727,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
786
727
  rootVnode.$flags$ |= 4 /* isHost */;
787
728
  hostRef.$vnode$ = rootVnode;
788
729
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
789
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
730
+ {
731
+ scopeId = hostElm["s-sc"];
732
+ }
733
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
790
734
  patch(oldVNode, rootVnode, isInitialLoad);
791
735
  };
792
736
 
793
737
  // src/runtime/update-component.ts
794
738
  var attachToAncestor = (hostRef, ancestorComponent) => {
795
739
  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
- );
740
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
804
741
  }
805
742
  };
806
743
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -829,7 +766,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
829
766
  {
830
767
  hostRef.$flags$ |= 256 /* isListenReady */;
831
768
  if (hostRef.$queuedListeners$) {
832
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
769
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
833
770
  hostRef.$queuedListeners$ = void 0;
834
771
  }
835
772
  }
@@ -900,7 +837,7 @@ var postUpdateComponent = (hostRef) => {
900
837
  const instance = hostRef.$lazyInstance$ ;
901
838
  const ancestorComponent = hostRef.$ancestorComponent$;
902
839
  {
903
- safeCall(instance, "componentDidRender", void 0, elm);
840
+ safeCall(instance, "componentDidRender");
904
841
  }
905
842
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
906
843
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -929,14 +866,17 @@ var postUpdateComponent = (hostRef) => {
929
866
  }
930
867
  };
931
868
  var appDidLoad = (who) => {
869
+ {
870
+ addHydratedFlag(doc.documentElement);
871
+ }
932
872
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
933
873
  };
934
- var safeCall = (instance, method, arg, elm) => {
874
+ var safeCall = (instance, method, arg) => {
935
875
  if (instance && instance[method]) {
936
876
  try {
937
877
  return instance[method](arg);
938
878
  } catch (e) {
939
- consoleError(e, elm);
879
+ consoleError(e);
940
880
  }
941
881
  }
942
882
  return void 0;
@@ -979,68 +919,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
979
919
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
980
920
  members.map(([memberName, [memberFlags]]) => {
981
921
  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
922
  Object.defineProperty(prototype, memberName, {
923
+ get() {
924
+ return getValue(this, memberName);
925
+ },
1003
926
  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
- }
927
+ setValue(this, memberName, newValue, cmpMeta);
928
+ },
929
+ configurable: true,
930
+ enumerable: true
1044
931
  });
1045
932
  }
1046
933
  });
@@ -1050,11 +937,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1050
937
  plt.jmp(() => {
1051
938
  var _a2;
1052
939
  const propName = attrNameToPropName.get(attrName);
1053
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
940
+ if (this.hasOwnProperty(propName)) {
1054
941
  newValue = this[propName];
1055
942
  delete this[propName];
1056
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1057
- this[propName] == newValue) {
943
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1058
944
  return;
1059
945
  } else if (propName == null) {
1060
946
  const hostRef = getHostRef(this);
@@ -1070,11 +956,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1070
956
  }
1071
957
  return;
1072
958
  }
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
- }
959
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1078
960
  });
1079
961
  };
1080
962
  Cstr.observedAttributes = Array.from(
@@ -1103,7 +985,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1103
985
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1104
986
  const bundleId = cmpMeta.$lazyBundleId$;
1105
987
  if (bundleId) {
1106
- const CstrImport = loadModule(cmpMeta, hostRef);
988
+ const CstrImport = loadModule(cmpMeta);
1107
989
  if (CstrImport && "then" in CstrImport) {
1108
990
  const endLoad = uniqueTime();
1109
991
  Cstr = await CstrImport;
@@ -1125,7 +1007,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1125
1007
  try {
1126
1008
  new Cstr(hostRef);
1127
1009
  } catch (e) {
1128
- consoleError(e, elm);
1010
+ consoleError(e);
1129
1011
  }
1130
1012
  {
1131
1013
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1157,7 +1039,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1157
1039
  schedule();
1158
1040
  }
1159
1041
  };
1160
- var fireConnectedCallback = (instance, elm) => {
1042
+ var fireConnectedCallback = (instance) => {
1161
1043
  };
1162
1044
 
1163
1045
  // src/runtime/connected-callback.ts
@@ -1198,7 +1080,7 @@ var connectedCallback = (elm) => {
1198
1080
  endConnected();
1199
1081
  }
1200
1082
  };
1201
- var disconnectInstance = (instance, elm) => {
1083
+ var disconnectInstance = (instance) => {
1202
1084
  };
1203
1085
  var disconnectedCallback = async (elm) => {
1204
1086
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1213,12 +1095,6 @@ var disconnectedCallback = async (elm) => {
1213
1095
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1214
1096
  }
1215
1097
  }
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
1098
  };
1223
1099
 
1224
1100
  // src/runtime/bootstrap-lazy.ts
@@ -1299,17 +1175,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1299
1175
  }
1300
1176
  disconnectedCallback() {
1301
1177
  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
1178
  }
1314
1179
  componentOnReady() {
1315
1180
  return getHostRef(this).$onReadyPromise$;
@@ -1373,7 +1238,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1373
1238
  }
1374
1239
  }
1375
1240
  } catch (e) {
1376
- consoleError(e, hostRef.$hostElement$);
1241
+ consoleError(e);
1377
1242
  }
1378
1243
  };
1379
1244
  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-38c612e5.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [
11
11
  {
@@ -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-6912ff15.js';
2
+ export { s as setNonce } from './index-6912ff15.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.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;