@everymatrix/casino-engagement-suite-jackpot-details 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.esm.js +1 -1
  2. package/dist/casino-engagement-suite-jackpot-details/{p-bc0336af.entry.js → p-0b530d04.entry.js} +1 -1
  3. package/dist/casino-engagement-suite-jackpot-details/p-9ccbc802.js +2 -0
  4. package/dist/casino-engagement-suite-jackpot-details/p-d318c6b3.entry.js +1 -0
  5. package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.entry.js +31 -20
  6. package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.js +2 -2
  7. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +26 -8
  8. package/dist/cjs/{index-da2a2e23.js → index-bf875f95.js} +172 -71
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +1 -1
  11. package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.js +46 -21
  12. package/dist/esm/casino-engagement-suite-jackpot-details.entry.js +31 -20
  13. package/dist/esm/casino-engagement-suite-jackpot-details.js +3 -3
  14. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +26 -8
  15. package/dist/esm/{index-82ecc11c.js → index-0ce0e283.js} +172 -71
  16. package/dist/esm/loader.js +2 -2
  17. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.d.ts +2 -0
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.dev.d.ts +2 -0
  19. package/package.json +1 -1
  20. package/dist/casino-engagement-suite-jackpot-details/p-cce9058f.js +0 -2
  21. package/dist/casino-engagement-suite-jackpot-details/p-dc5f1261.entry.js +0 -1
  22. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.d.ts +0 -2
  23. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.dev.d.ts +0 -2
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/index.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  27. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-engagement-suite-jackpot-details';
24
- const BUILD = /* casino-engagement-suite-jackpot-details */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* casino-engagement-suite-jackpot-details */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => 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);
@@ -87,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
87
92
  /* webpackExclude: /\.system\.entry\.js$/ */
88
93
  /* webpackMode: "lazy" */
89
94
  `./${bundleId}.entry.js${""}`
90
- )); }).then((importedModule) => {
91
- {
92
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
93
104
  }
94
- return importedModule[exportName];
95
- }, consoleError);
105
+ );
96
106
  };
97
107
 
98
108
  // src/client/client-style.ts
99
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
100
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
101
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
102
113
  var win = typeof window !== "undefined" ? window : {};
@@ -170,12 +181,6 @@ var flush = () => {
170
181
  };
171
182
  var nextTick = (cb) => promiseResolve().then(cb);
172
183
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
173
-
174
- // src/utils/constants.ts
175
- var EMPTY_OBJ = {};
176
-
177
- // src/utils/helpers.ts
178
- var isDef = (v) => v != null;
179
184
  var isComplexType = (o) => {
180
185
  o = typeof o;
181
186
  return o === "object" || o === "function";
@@ -379,7 +384,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
379
384
  }
380
385
  if (!appliedStyles.has(scopeId2)) {
381
386
  {
382
- styleElm = doc.createElement("style");
387
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
383
388
  styleElm.innerHTML = style;
384
389
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
385
390
  if (nonce != null) {
@@ -389,7 +394,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
389
394
  if (styleContainerNode.nodeName === "HEAD") {
390
395
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
391
396
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
392
- styleContainerNode.insertBefore(styleElm, referenceNode2);
397
+ styleContainerNode.insertBefore(
398
+ styleElm,
399
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
400
+ );
393
401
  } else if ("host" in styleContainerNode) {
394
402
  if (supportsConstructableStylesheets) {
395
403
  const stylesheet = new CSSStyleSheet();
@@ -407,7 +415,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
407
415
  styleContainerNode.append(styleElm);
408
416
  }
409
417
  }
410
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
418
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
411
419
  styleContainerNode.insertBefore(styleElm, null);
412
420
  }
413
421
  }
@@ -432,23 +440,25 @@ var attachStyles = (hostRef) => {
432
440
  const scopeId2 = addStyle(
433
441
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
434
442
  cmpMeta);
435
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
443
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
436
444
  elm["s-sc"] = scopeId2;
437
445
  elm.classList.add(scopeId2 + "-h");
438
446
  }
439
447
  endAttachStyles();
440
448
  };
441
449
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
442
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
450
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
443
451
  if (oldValue !== newValue) {
444
452
  let isProp = isMemberInElement(elm, memberName);
445
453
  let ln = memberName.toLowerCase();
446
454
  if (memberName === "class") {
447
455
  const classList = elm.classList;
448
456
  const oldClasses = parseClassList(oldValue);
449
- const newClasses = parseClassList(newValue);
450
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
451
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
+ let newClasses = parseClassList(newValue);
458
+ {
459
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
460
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
461
+ }
452
462
  } else if (memberName === "style") {
453
463
  {
454
464
  for (const prop in oldValue) {
@@ -507,7 +517,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
507
517
  elm.setAttribute(memberName, n);
508
518
  }
509
519
  }
510
- } else {
520
+ } else if (elm[memberName] !== newValue) {
511
521
  elm[memberName] = newValue;
512
522
  }
513
523
  } catch (e) {
@@ -529,24 +539,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
529
539
  }
530
540
  };
531
541
  var parseClassListRegex = /\s/;
532
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
542
+ var parseClassList = (value) => {
543
+ if (typeof value === "object" && value && "baseVal" in value) {
544
+ value = value.baseVal;
545
+ }
546
+ if (!value || typeof value !== "string") {
547
+ return [];
548
+ }
549
+ return value.split(parseClassListRegex);
550
+ };
533
551
  var CAPTURE_EVENT_SUFFIX = "Capture";
534
552
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
535
553
 
536
554
  // src/runtime/vdom/update-element.ts
537
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
555
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
538
556
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
539
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
540
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
557
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
558
+ const newVnodeAttrs = newVnode.$attrs$ || {};
541
559
  {
542
560
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
543
561
  if (!(memberName in newVnodeAttrs)) {
544
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
562
+ setAccessor(
563
+ elm,
564
+ memberName,
565
+ oldVnodeAttrs[memberName],
566
+ void 0,
567
+ isSvgMode2,
568
+ newVnode.$flags$);
545
569
  }
546
570
  }
547
571
  }
548
572
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
549
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
573
+ setAccessor(
574
+ elm,
575
+ memberName,
576
+ oldVnodeAttrs[memberName],
577
+ newVnodeAttrs[memberName],
578
+ isSvgMode2,
579
+ newVnode.$flags$);
550
580
  }
551
581
  };
552
582
  function sortedAttrNames(attrNames) {
@@ -558,13 +588,10 @@ function sortedAttrNames(attrNames) {
558
588
  attrNames
559
589
  );
560
590
  }
561
-
562
- // src/runtime/vdom/vdom-render.ts
563
- var scopeId;
564
591
  var hostTagName;
565
592
  var useNativeShadowDom = false;
566
593
  var isSvgMode = false;
567
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
594
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
568
595
  const newVNode2 = newParentVNode.$children$[childIndex];
569
596
  let i2 = 0;
570
597
  let elm;
@@ -578,11 +605,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
578
605
  {
579
606
  updateElement(null, newVNode2, isSvgMode);
580
607
  }
581
- const rootNode = elm.getRootNode();
582
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
583
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
584
- elm.classList.add(elm["s-si"] = scopeId);
585
- }
586
608
  if (newVNode2.$children$) {
587
609
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
588
610
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -712,6 +734,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
712
734
  if (!isInitialRender) {
713
735
  return leftVNode.$key$ === rightVNode.$key$;
714
736
  }
737
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
738
+ leftVNode.$key$ = rightVNode.$key$;
739
+ }
715
740
  return true;
716
741
  }
717
742
  return false;
@@ -752,8 +777,9 @@ var nullifyVNodeRefs = (vNode) => {
752
777
  }
753
778
  };
754
779
  var insertBefore = (parent, newNode, reference) => {
755
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
756
- return inserted;
780
+ {
781
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
782
+ }
757
783
  };
758
784
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
759
785
  const hostElm = hostRef.$hostElement$;
@@ -778,17 +804,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
778
804
  rootVnode.$flags$ |= 4 /* isHost */;
779
805
  hostRef.$vnode$ = rootVnode;
780
806
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
781
- {
782
- scopeId = hostElm["s-sc"];
783
- }
784
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
807
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
785
808
  patch(oldVNode, rootVnode, isInitialLoad);
786
809
  };
787
810
 
788
811
  // src/runtime/update-component.ts
789
812
  var attachToAncestor = (hostRef, ancestorComponent) => {
790
813
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
791
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
814
+ const index = ancestorComponent["s-p"].push(
815
+ new Promise(
816
+ (r) => hostRef.$onRenderResolve$ = () => {
817
+ ancestorComponent["s-p"].splice(index - 1, 1);
818
+ r();
819
+ }
820
+ )
821
+ );
792
822
  }
793
823
  };
794
824
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -817,12 +847,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
817
847
  {
818
848
  hostRef.$flags$ |= 256 /* isListenReady */;
819
849
  if (hostRef.$queuedListeners$) {
820
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
850
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
821
851
  hostRef.$queuedListeners$ = void 0;
822
852
  }
823
853
  }
824
854
  {
825
- maybePromise = safeCall(instance, "componentWillLoad");
855
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
826
856
  }
827
857
  }
828
858
  endSchedule();
@@ -891,7 +921,7 @@ var postUpdateComponent = (hostRef) => {
891
921
  const instance = hostRef.$lazyInstance$ ;
892
922
  const ancestorComponent = hostRef.$ancestorComponent$;
893
923
  {
894
- safeCall(instance, "componentDidRender");
924
+ safeCall(instance, "componentDidRender", void 0, elm);
895
925
  }
896
926
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
897
927
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -920,17 +950,14 @@ var postUpdateComponent = (hostRef) => {
920
950
  }
921
951
  };
922
952
  var appDidLoad = (who) => {
923
- {
924
- addHydratedFlag(doc.documentElement);
925
- }
926
953
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
927
954
  };
928
- var safeCall = (instance, method, arg) => {
955
+ var safeCall = (instance, method, arg, elm) => {
929
956
  if (instance && instance[method]) {
930
957
  try {
931
958
  return instance[method](arg);
932
959
  } catch (e) {
933
- consoleError(e);
960
+ consoleError(e, elm);
934
961
  }
935
962
  }
936
963
  return void 0;
@@ -989,15 +1016,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
989
1016
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
990
1017
  members.map(([memberName, [memberFlags]]) => {
991
1018
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1019
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1020
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1021
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1022
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1023
+ Object.defineProperty(prototype, memberName, {
1024
+ get() {
1025
+ {
1026
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1027
+ return getValue(this, memberName);
1028
+ }
1029
+ const ref = getHostRef(this);
1030
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1031
+ if (!instance) return;
1032
+ return instance[memberName];
1033
+ }
1034
+ },
1035
+ configurable: true,
1036
+ enumerable: true
1037
+ });
1038
+ }
992
1039
  Object.defineProperty(prototype, memberName, {
993
- get() {
994
- return getValue(this, memberName);
995
- },
996
1040
  set(newValue) {
997
- setValue(this, memberName, newValue, cmpMeta);
998
- },
999
- configurable: true,
1000
- enumerable: true
1041
+ const ref = getHostRef(this);
1042
+ if (origSetter) {
1043
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1044
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1045
+ newValue = ref.$instanceValues$.get(memberName);
1046
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1047
+ ref.$instanceValues$.set(memberName, currentValue);
1048
+ }
1049
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1050
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1051
+ setValue(this, memberName, newValue, cmpMeta);
1052
+ return;
1053
+ }
1054
+ {
1055
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1056
+ setValue(this, memberName, newValue, cmpMeta);
1057
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1058
+ ref.$onReadyPromise$.then(() => {
1059
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1060
+ ref.$lazyInstance$[memberName] = newValue;
1061
+ }
1062
+ });
1063
+ }
1064
+ return;
1065
+ }
1066
+ const setterSetVal = () => {
1067
+ const currentValue = ref.$lazyInstance$[memberName];
1068
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1069
+ ref.$instanceValues$.set(memberName, currentValue);
1070
+ }
1071
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1072
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1073
+ };
1074
+ if (ref.$lazyInstance$) {
1075
+ setterSetVal();
1076
+ } else {
1077
+ ref.$onReadyPromise$.then(() => setterSetVal());
1078
+ }
1079
+ }
1080
+ }
1001
1081
  });
1002
1082
  }
1003
1083
  });
@@ -1007,7 +1087,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1007
1087
  plt.jmp(() => {
1008
1088
  var _a2;
1009
1089
  const propName = attrNameToPropName.get(attrName);
1010
- if (this.hasOwnProperty(propName)) {
1090
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1011
1091
  newValue = this[propName];
1012
1092
  delete this[propName];
1013
1093
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1027,7 +1107,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1027
1107
  }
1028
1108
  return;
1029
1109
  }
1030
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1110
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1111
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1112
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1113
+ this[propName] = newValue;
1114
+ }
1031
1115
  });
1032
1116
  };
1033
1117
  Cstr.observedAttributes = Array.from(
@@ -1056,7 +1140,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1056
1140
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1057
1141
  const bundleId = cmpMeta.$lazyBundleId$;
1058
1142
  if (bundleId) {
1059
- const CstrImport = loadModule(cmpMeta);
1143
+ const CstrImport = loadModule(cmpMeta, hostRef);
1060
1144
  if (CstrImport && "then" in CstrImport) {
1061
1145
  const endLoad = uniqueTime();
1062
1146
  Cstr = await CstrImport;
@@ -1081,7 +1165,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1081
1165
  try {
1082
1166
  new Cstr(hostRef);
1083
1167
  } catch (e) {
1084
- consoleError(e);
1168
+ consoleError(e, elm);
1085
1169
  }
1086
1170
  {
1087
1171
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1116,7 +1200,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1116
1200
  schedule();
1117
1201
  }
1118
1202
  };
1119
- var fireConnectedCallback = (instance) => {
1203
+ var fireConnectedCallback = (instance, elm) => {
1120
1204
  };
1121
1205
 
1122
1206
  // src/runtime/connected-callback.ts
@@ -1157,9 +1241,9 @@ var connectedCallback = (elm) => {
1157
1241
  endConnected();
1158
1242
  }
1159
1243
  };
1160
- var disconnectInstance = (instance) => {
1244
+ var disconnectInstance = (instance, elm) => {
1161
1245
  {
1162
- safeCall(instance, "disconnectedCallback");
1246
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1163
1247
  }
1164
1248
  };
1165
1249
  var disconnectedCallback = async (elm) => {
@@ -1172,11 +1256,17 @@ var disconnectedCallback = async (elm) => {
1172
1256
  }
1173
1257
  }
1174
1258
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1175
- disconnectInstance(hostRef.$lazyInstance$);
1259
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1176
1260
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1177
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1261
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1178
1262
  }
1179
1263
  }
1264
+ if (rootAppliedStyles.has(elm)) {
1265
+ rootAppliedStyles.delete(elm);
1266
+ }
1267
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1268
+ rootAppliedStyles.delete(elm.shadowRoot);
1269
+ }
1180
1270
  };
1181
1271
 
1182
1272
  // src/runtime/bootstrap-lazy.ts
@@ -1261,6 +1351,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1261
1351
  }
1262
1352
  disconnectedCallback() {
1263
1353
  plt.jmp(() => disconnectedCallback(this));
1354
+ plt.raf(() => {
1355
+ var _a3;
1356
+ const hostRef = getHostRef(this);
1357
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1358
+ if (i2 > -1) {
1359
+ deferredConnectedCallbacks.splice(i2, 1);
1360
+ }
1361
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1362
+ delete hostRef.$vnode$.$elm$;
1363
+ }
1364
+ });
1264
1365
  }
1265
1366
  componentOnReady() {
1266
1367
  return getHostRef(this).$onReadyPromise$;
@@ -1324,7 +1425,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1324
1425
  }
1325
1426
  }
1326
1427
  } catch (e) {
1327
- consoleError(e);
1428
+ consoleError(e, hostRef.$hostElement$);
1328
1429
  }
1329
1430
  };
1330
1431
  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-da2a2e23.js');
5
+ const index = require('./index-bf875f95.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.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [
@@ -5,6 +5,36 @@ import "../../../../../casino-engagement-suite-progress-bar/dist/types/index";
5
5
  import { formatBalance } from "../../utils";
6
6
  export class CasinoEngagementSuiteJackpotDetails {
7
7
  constructor() {
8
+ /**
9
+ * Client custom styling via string
10
+ */
11
+ this.clientStyling = '';
12
+ /**
13
+ * Client custom styling via url
14
+ */
15
+ this.clientStylingUrl = '';
16
+ /**
17
+ * Language of the widget
18
+ */
19
+ this.language = 'en';
20
+ /**
21
+ * Current game slug
22
+ */
23
+ this.gameSlug = '';
24
+ /**
25
+ * User's device type
26
+ */
27
+ this.device = 'Mobile';
28
+ this.limitStylingAppends = false;
29
+ this.timer = '';
30
+ this.disabledStatus = '';
31
+ this.activeTab = 1;
32
+ this.visibleGames = [];
33
+ this.enabled = false;
34
+ this.showDetails = false;
35
+ this.jackpotEndTime = '';
36
+ this.tooltip = '';
37
+ this.partialWins = '';
8
38
  this.maxVisibleGames = 0;
9
39
  this.handleTabChange = (e) => {
10
40
  this.activeTab = +(e.target.getAttribute('data-index'));
@@ -61,25 +91,6 @@ export class CasinoEngagementSuiteJackpotDetails {
61
91
  });
62
92
  }
63
93
  };
64
- this.clientStyling = '';
65
- this.clientStylingUrl = '';
66
- this.jackpot = undefined;
67
- this.jackpotChangeStatusRequest = undefined;
68
- this.language = 'en';
69
- this.gameSlug = '';
70
- this.device = 'Mobile';
71
- this.limitStylingAppends = false;
72
- this.timer = '';
73
- this.disabledStatus = '';
74
- this.activeTab = 1;
75
- this.visibleGames = [];
76
- this.enabled = false;
77
- this.balance = undefined;
78
- this.winBalance = undefined;
79
- this.showDetails = false;
80
- this.jackpotEndTime = '';
81
- this.tooltip = '';
82
- this.partialWins = '';
83
94
  }
84
95
  handleEvent(e) {
85
96
  const { type, data } = e === null || e === void 0 ? void 0 : e.data;
@@ -302,6 +313,8 @@ export class CasinoEngagementSuiteJackpotDetails {
302
313
  "tags": [],
303
314
  "text": "Client custom styling via string"
304
315
  },
316
+ "getter": false,
317
+ "setter": false,
305
318
  "attribute": "client-styling",
306
319
  "reflect": true,
307
320
  "defaultValue": "''"
@@ -320,6 +333,8 @@ export class CasinoEngagementSuiteJackpotDetails {
320
333
  "tags": [],
321
334
  "text": "Client custom styling via url"
322
335
  },
336
+ "getter": false,
337
+ "setter": false,
323
338
  "attribute": "client-styling-url",
324
339
  "reflect": true,
325
340
  "defaultValue": "''"
@@ -343,7 +358,9 @@ export class CasinoEngagementSuiteJackpotDetails {
343
358
  "docs": {
344
359
  "tags": [],
345
360
  "text": "Selected jackpot"
346
- }
361
+ },
362
+ "getter": false,
363
+ "setter": false
347
364
  },
348
365
  "jackpotChangeStatusRequest": {
349
366
  "type": "unknown",
@@ -363,7 +380,9 @@ export class CasinoEngagementSuiteJackpotDetails {
363
380
  "docs": {
364
381
  "tags": [],
365
382
  "text": "Change jackpot status"
366
- }
383
+ },
384
+ "getter": false,
385
+ "setter": false
367
386
  },
368
387
  "language": {
369
388
  "type": "string",
@@ -379,6 +398,8 @@ export class CasinoEngagementSuiteJackpotDetails {
379
398
  "tags": [],
380
399
  "text": "Language of the widget"
381
400
  },
401
+ "getter": false,
402
+ "setter": false,
382
403
  "attribute": "language",
383
404
  "reflect": false,
384
405
  "defaultValue": "'en'"
@@ -397,6 +418,8 @@ export class CasinoEngagementSuiteJackpotDetails {
397
418
  "tags": [],
398
419
  "text": "Current game slug"
399
420
  },
421
+ "getter": false,
422
+ "setter": false,
400
423
  "attribute": "game-slug",
401
424
  "reflect": false,
402
425
  "defaultValue": "''"
@@ -415,6 +438,8 @@ export class CasinoEngagementSuiteJackpotDetails {
415
438
  "tags": [],
416
439
  "text": "User's device type"
417
440
  },
441
+ "getter": false,
442
+ "setter": false,
418
443
  "attribute": "device",
419
444
  "reflect": false,
420
445
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"