@everymatrix/casino-engagement-suite-modal-container 1.52.6 → 1.53.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = 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
- return hostRefs.set(hostElement, hostRef);
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((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
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
- return importedModule[exportName];
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(styleElm, referenceNode2);
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();
@@ -432,16 +440,18 @@ var attachStyles = (hostRef) => {
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
- const newClasses = parseClassList(newValue);
443
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
444
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
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) => !value ? [] : value.split(parseClassListRegex);
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$ || EMPTY_OBJ;
529
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
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(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
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(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
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, parentElm) => {
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
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
738
- return inserted;
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,9 +786,6 @@ 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
789
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
767
790
  patch(oldVNode, rootVnode, isInitialLoad);
768
791
  };
@@ -770,7 +793,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
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(new Promise((r) => hostRef.$onRenderResolve$ = r));
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 */;
@@ -904,12 +934,12 @@ var appDidLoad = (who) => {
904
934
  }
905
935
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
906
936
  };
907
- var safeCall = (instance, method, arg) => {
937
+ var safeCall = (instance, method, arg, elm) => {
908
938
  if (instance && instance[method]) {
909
939
  try {
910
940
  return instance[method](arg);
911
941
  } catch (e) {
912
- consoleError(e);
942
+ consoleError(e, elm);
913
943
  }
914
944
  }
915
945
  return void 0;
@@ -952,15 +982,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
952
982
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
953
983
  members.map(([memberName, [memberFlags]]) => {
954
984
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
985
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
986
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
987
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
988
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
989
+ Object.defineProperty(prototype, memberName, {
990
+ get() {
991
+ {
992
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
993
+ return getValue(this, memberName);
994
+ }
995
+ const ref = getHostRef(this);
996
+ const instance = ref ? ref.$lazyInstance$ : prototype;
997
+ if (!instance) return;
998
+ return instance[memberName];
999
+ }
1000
+ },
1001
+ configurable: true,
1002
+ enumerable: true
1003
+ });
1004
+ }
955
1005
  Object.defineProperty(prototype, memberName, {
956
- get() {
957
- return getValue(this, memberName);
958
- },
959
1006
  set(newValue) {
960
- setValue(this, memberName, newValue, cmpMeta);
961
- },
962
- configurable: true,
963
- enumerable: true
1007
+ const ref = getHostRef(this);
1008
+ if (origSetter) {
1009
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1010
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1011
+ newValue = ref.$instanceValues$.get(memberName);
1012
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1013
+ ref.$instanceValues$.set(memberName, currentValue);
1014
+ }
1015
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1016
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1017
+ setValue(this, memberName, newValue, cmpMeta);
1018
+ return;
1019
+ }
1020
+ {
1021
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1022
+ setValue(this, memberName, newValue, cmpMeta);
1023
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1024
+ ref.$onReadyPromise$.then(() => {
1025
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1026
+ ref.$lazyInstance$[memberName] = newValue;
1027
+ }
1028
+ });
1029
+ }
1030
+ return;
1031
+ }
1032
+ const setterSetVal = () => {
1033
+ const currentValue = ref.$lazyInstance$[memberName];
1034
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1035
+ ref.$instanceValues$.set(memberName, currentValue);
1036
+ }
1037
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1038
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1039
+ };
1040
+ if (ref.$lazyInstance$) {
1041
+ setterSetVal();
1042
+ } else {
1043
+ ref.$onReadyPromise$.then(() => setterSetVal());
1044
+ }
1045
+ }
1046
+ }
964
1047
  });
965
1048
  }
966
1049
  });
@@ -970,7 +1053,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
970
1053
  plt.jmp(() => {
971
1054
  var _a2;
972
1055
  const propName = attrNameToPropName.get(attrName);
973
- if (this.hasOwnProperty(propName)) {
1056
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
974
1057
  newValue = this[propName];
975
1058
  delete this[propName];
976
1059
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -990,7 +1073,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
1073
  }
991
1074
  return;
992
1075
  }
993
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1076
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1077
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1078
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1079
+ this[propName] = newValue;
1080
+ }
994
1081
  });
995
1082
  };
996
1083
  Cstr.observedAttributes = Array.from(
@@ -1017,9 +1104,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1017
1104
  let Cstr;
1018
1105
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1019
1106
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1020
- const bundleId = cmpMeta.$lazyBundleId$;
1021
- if (bundleId) {
1022
- const CstrImport = loadModule(cmpMeta);
1107
+ {
1108
+ const CstrImport = loadModule(cmpMeta, hostRef);
1023
1109
  if (CstrImport && "then" in CstrImport) {
1024
1110
  const endLoad = uniqueTime();
1025
1111
  Cstr = await CstrImport;
@@ -1041,16 +1127,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1041
1127
  try {
1042
1128
  new Cstr(hostRef);
1043
1129
  } catch (e) {
1044
- consoleError(e);
1130
+ consoleError(e, elm);
1045
1131
  }
1046
1132
  {
1047
1133
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1048
1134
  }
1049
1135
  endNewInstance();
1050
- } else {
1051
- Cstr = elm.constructor;
1052
- const cmpTag = elm.localName;
1053
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1054
1136
  }
1055
1137
  if (Cstr && Cstr.style) {
1056
1138
  let style;
@@ -1073,7 +1155,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
1155
  schedule();
1074
1156
  }
1075
1157
  };
1076
- var fireConnectedCallback = (instance) => {
1158
+ var fireConnectedCallback = (instance, elm) => {
1077
1159
  };
1078
1160
 
1079
1161
  // src/runtime/connected-callback.ts
@@ -1114,7 +1196,7 @@ var connectedCallback = (elm) => {
1114
1196
  endConnected();
1115
1197
  }
1116
1198
  };
1117
- var disconnectInstance = (instance) => {
1199
+ var disconnectInstance = (instance, elm) => {
1118
1200
  };
1119
1201
  var disconnectedCallback = async (elm) => {
1120
1202
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1129,6 +1211,12 @@ var disconnectedCallback = async (elm) => {
1129
1211
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1130
1212
  }
1131
1213
  }
1214
+ if (rootAppliedStyles.has(elm)) {
1215
+ rootAppliedStyles.delete(elm);
1216
+ }
1217
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1218
+ rootAppliedStyles.delete(elm.shadowRoot);
1219
+ }
1132
1220
  };
1133
1221
 
1134
1222
  // src/runtime/bootstrap-lazy.ts
@@ -1209,6 +1297,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1209
1297
  }
1210
1298
  disconnectedCallback() {
1211
1299
  plt.jmp(() => disconnectedCallback(this));
1300
+ plt.raf(() => {
1301
+ var _a3;
1302
+ const hostRef = getHostRef(this);
1303
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1304
+ delete hostRef.$vnode$.$elm$;
1305
+ }
1306
+ });
1212
1307
  }
1213
1308
  componentOnReady() {
1214
1309
  return getHostRef(this).$onReadyPromise$;
@@ -1272,7 +1367,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1272
1367
  }
1273
1368
  }
1274
1369
  } catch (e) {
1275
- consoleError(e);
1370
+ consoleError(e, hostRef.$hostElement$);
1276
1371
  }
1277
1372
  };
1278
1373
  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-abe824ad.js');
5
+ const index = require('./index-54ab4402.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.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [
@@ -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;
@@ -88,7 +96,7 @@ export class CasinoEngagementSuiteModalContainer {
88
96
  translate('joinConfirm', this.language) :
89
97
  translate('unJoinConfirm', this.language)), h("button", { key: 'e01e434afa2e1129c325042a37b1ac76be5a28c7', class: `ModalFooterButtonOutlined ${this.isJoiningToChallenge ? 'Disabled' : ''}`, onClick: this.handleCloseClick, "data-type": 'TARGET_MODAL' }, h("div", { key: '622d587b43206691f4f67b7f13c18f4187560b15', class: 'GradientText' }, ProgressToActivate ?
90
98
  translate('joinReject', this.language) :
91
- translate('unJoinReject', this.language))))), h("casino-engagement-suite-modal", { key: '8310ae114d8eefd5d91fb07c5d7cca34c70bffa3', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("SUPPORT_MODAL"), header: translate('noReward', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "SUPPORT_MODAL", device: this.device }, h("div", { key: 'f6cc0be359c4cdbe0c2a3dd3ff3dbfb0841e65fe', slot: "body" }, h("span", { key: 'd4229846b65de554ba68c2c4545e2ac1fcc4fabe' }, translate('contactSupport', this.language))), h("div", { key: '55a91614a32feca8f3ea613b2ea27bb0f37145e9', slot: "footer" }, h("button", { key: '9ea26fa1b55d7fe1201e460c11ec46e8ea673240', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'SUPPORT_MODAL' }, translate('okContinue', this.language))))));
99
+ translate('unJoinReject', this.language))))), h("casino-engagement-suite-modal", { key: '8310ae114d8eefd5d91fb07c5d7cca34c70bffa3', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("SUPPORT_MODAL"), header: translate('noReward', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/alert.svg", modalType: "SUPPORT_MODAL", device: this.device }, h("div", { key: 'f6cc0be359c4cdbe0c2a3dd3ff3dbfb0841e65fe', slot: "body" }, h("span", { key: 'd4229846b65de554ba68c2c4545e2ac1fcc4fabe' }, translate('contactSupport', this.language))), h("div", { key: '55a91614a32feca8f3ea613b2ea27bb0f37145e9', slot: "footer" }, h("button", { key: '9ea26fa1b55d7fe1201e460c11ec46e8ea673240', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'SUPPORT_MODAL' }, translate('okContinue', this.language)))), h("casino-engagement-suite-modal", { key: 'd4e5b152a9599c3464d2f810dc2795cd482c1a1d', clientStylingUrl: this.clientStylingUrl, isOpen: this.isModalOpen("NO_SPIN_LEFT_MODAL"), header: translate('noSpinsLeft', this.language), contentIcon: "https://static.everymatrix.com/gic/img/engagement-suite/cup-reward.svg", modalType: "NO_SPIN_LEFT_MODAL", "show-animation": false, device: this.device }, h("div", { key: 'ad796a55fe5078c31a595c0bd98787594cd58bec', slot: "body" }, h("div", { key: '256ec7b9f143778c02e33e37a28b0d26c7ae2fa0' }, translate('seeYouLater', this.language))), h("div", { key: '0c861dd0e84b81730a3c56338ac38007b19cb70e', slot: "footer" }, h("button", { key: '1ecd10f264a158b58a6e7d5db900175dcd36e65d', class: 'ModalFooterButton', onClick: this.handleCloseClick, "data-type": 'NO_SPIN_LEFT_MODAL' }, "OK")))));
92
100
  }
93
101
  static get is() { return "casino-engagement-suite-modal-container"; }
94
102
  static get encapsulation() { return "shadow"; }
@@ -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'"
@@ -23,7 +23,9 @@ const TRANSLATIONS = {
23
23
  tryOtherGames: 'Try winning Missions as rewards or launching other booster games',
24
24
  tooltip: 'Mission where your real money bets contribute towards the level progress to achieve the level reward',
25
25
  jackpotWin: 'Total Jackpot Win!',
26
- jackpotWinInfo: 'Please refresh game page or place any bet to update game balance'
26
+ jackpotWinInfo: 'Please refresh game page or place any bet to update game balance',
27
+ seeYouLater: 'See you later',
28
+ noSpinsLeft: 'You used all spins here',
27
29
  }
28
30
  };
29
31
  export const translate = (key, customLang) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-6c6d5eed.js';
2
- export { s as setNonce } from './index-6c6d5eed.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-579ab8d9.js';
2
+ export { s as setNonce } from './index-579ab8d9.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;