@everymatrix/casino-engagement-suite-challenges-list 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 (24) hide show
  1. package/dist/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.esm.js +1 -1
  2. package/dist/casino-engagement-suite-challenges-list/p-12c1c66d.js +2 -0
  3. package/dist/casino-engagement-suite-challenges-list/p-190b420d.entry.js +1 -0
  4. package/dist/cjs/casino-engagement-suite-challenges-list.cjs.js +2 -2
  5. package/dist/cjs/casino-engagement-suite-challenges-list_2.cjs.entry.js +56 -23
  6. package/dist/cjs/{index-a8a513f5.js → index-c95f18bc.js} +172 -71
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.js +47 -16
  10. package/dist/esm/casino-engagement-suite-challenges-list.js +3 -3
  11. package/dist/esm/casino-engagement-suite-challenges-list_2.entry.js +56 -23
  12. package/dist/esm/{index-04cdb027.js → index-61dbba4e.js} +172 -71
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-challenges-list/p-6cdf855b.entry.js +0 -1
  18. package/dist/casino-engagement-suite-challenges-list/p-9ea438ff.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.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-challenges-list';
24
- const BUILD = /* casino-engagement-suite-challenges-list */ { 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: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* casino-engagement-suite-challenges-list */ { 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: false, 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);
@@ -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";
@@ -375,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
375
380
  }
376
381
  if (!appliedStyles.has(scopeId2)) {
377
382
  {
378
- styleElm = doc.createElement("style");
383
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
379
384
  styleElm.innerHTML = style;
380
385
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
381
386
  if (nonce != null) {
@@ -385,7 +390,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
385
390
  if (styleContainerNode.nodeName === "HEAD") {
386
391
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
387
392
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
388
- styleContainerNode.insertBefore(styleElm, referenceNode2);
393
+ styleContainerNode.insertBefore(
394
+ styleElm,
395
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
396
+ );
389
397
  } else if ("host" in styleContainerNode) {
390
398
  if (supportsConstructableStylesheets) {
391
399
  const stylesheet = new CSSStyleSheet();
@@ -403,7 +411,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
403
411
  styleContainerNode.append(styleElm);
404
412
  }
405
413
  }
406
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
414
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
407
415
  styleContainerNode.insertBefore(styleElm, null);
408
416
  }
409
417
  }
@@ -428,23 +436,25 @@ var attachStyles = (hostRef) => {
428
436
  const scopeId2 = addStyle(
429
437
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
430
438
  cmpMeta);
431
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
439
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
432
440
  elm["s-sc"] = scopeId2;
433
441
  elm.classList.add(scopeId2 + "-h");
434
442
  }
435
443
  endAttachStyles();
436
444
  };
437
445
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
438
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
446
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
439
447
  if (oldValue !== newValue) {
440
448
  let isProp = isMemberInElement(elm, memberName);
441
449
  let ln = memberName.toLowerCase();
442
450
  if (memberName === "class") {
443
451
  const classList = elm.classList;
444
452
  const oldClasses = parseClassList(oldValue);
445
- const newClasses = parseClassList(newValue);
446
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
447
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
453
+ let newClasses = parseClassList(newValue);
454
+ {
455
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
456
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
+ }
448
458
  } else if (memberName === "style") {
449
459
  {
450
460
  for (const prop in oldValue) {
@@ -499,7 +509,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
499
509
  elm.setAttribute(memberName, n);
500
510
  }
501
511
  }
502
- } else {
512
+ } else if (elm[memberName] !== newValue) {
503
513
  elm[memberName] = newValue;
504
514
  }
505
515
  } catch (e) {
@@ -521,24 +531,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
521
531
  }
522
532
  };
523
533
  var parseClassListRegex = /\s/;
524
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
534
+ var parseClassList = (value) => {
535
+ if (typeof value === "object" && value && "baseVal" in value) {
536
+ value = value.baseVal;
537
+ }
538
+ if (!value || typeof value !== "string") {
539
+ return [];
540
+ }
541
+ return value.split(parseClassListRegex);
542
+ };
525
543
  var CAPTURE_EVENT_SUFFIX = "Capture";
526
544
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
527
545
 
528
546
  // src/runtime/vdom/update-element.ts
529
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
547
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
530
548
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
531
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
532
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
549
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
550
+ const newVnodeAttrs = newVnode.$attrs$ || {};
533
551
  {
534
552
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
535
553
  if (!(memberName in newVnodeAttrs)) {
536
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
554
+ setAccessor(
555
+ elm,
556
+ memberName,
557
+ oldVnodeAttrs[memberName],
558
+ void 0,
559
+ isSvgMode2,
560
+ newVnode.$flags$);
537
561
  }
538
562
  }
539
563
  }
540
564
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
541
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
565
+ setAccessor(
566
+ elm,
567
+ memberName,
568
+ oldVnodeAttrs[memberName],
569
+ newVnodeAttrs[memberName],
570
+ isSvgMode2,
571
+ newVnode.$flags$);
542
572
  }
543
573
  };
544
574
  function sortedAttrNames(attrNames) {
@@ -550,13 +580,10 @@ function sortedAttrNames(attrNames) {
550
580
  attrNames
551
581
  );
552
582
  }
553
-
554
- // src/runtime/vdom/vdom-render.ts
555
- var scopeId;
556
583
  var hostTagName;
557
584
  var useNativeShadowDom = false;
558
585
  var isSvgMode = false;
559
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
586
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
560
587
  const newVNode2 = newParentVNode.$children$[childIndex];
561
588
  let i2 = 0;
562
589
  let elm;
@@ -570,11 +597,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
570
597
  {
571
598
  updateElement(null, newVNode2, isSvgMode);
572
599
  }
573
- const rootNode = elm.getRootNode();
574
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
575
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
576
- elm.classList.add(elm["s-si"] = scopeId);
577
- }
578
600
  if (newVNode2.$children$) {
579
601
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
580
602
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -703,6 +725,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
703
725
  if (!isInitialRender) {
704
726
  return leftVNode.$key$ === rightVNode.$key$;
705
727
  }
728
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
729
+ leftVNode.$key$ = rightVNode.$key$;
730
+ }
706
731
  return true;
707
732
  }
708
733
  return false;
@@ -737,8 +762,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
737
762
  }
738
763
  };
739
764
  var insertBefore = (parent, newNode, reference) => {
740
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
741
- return inserted;
765
+ {
766
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
767
+ }
742
768
  };
743
769
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
744
770
  const hostElm = hostRef.$hostElement$;
@@ -763,17 +789,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
763
789
  rootVnode.$flags$ |= 4 /* isHost */;
764
790
  hostRef.$vnode$ = rootVnode;
765
791
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
766
- {
767
- scopeId = hostElm["s-sc"];
768
- }
769
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
792
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
770
793
  patch(oldVNode, rootVnode, isInitialLoad);
771
794
  };
772
795
 
773
796
  // src/runtime/update-component.ts
774
797
  var attachToAncestor = (hostRef, ancestorComponent) => {
775
798
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
776
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
799
+ const index = ancestorComponent["s-p"].push(
800
+ new Promise(
801
+ (r) => hostRef.$onRenderResolve$ = () => {
802
+ ancestorComponent["s-p"].splice(index - 1, 1);
803
+ r();
804
+ }
805
+ )
806
+ );
777
807
  }
778
808
  };
779
809
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -802,12 +832,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
802
832
  {
803
833
  hostRef.$flags$ |= 256 /* isListenReady */;
804
834
  if (hostRef.$queuedListeners$) {
805
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
835
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
806
836
  hostRef.$queuedListeners$ = void 0;
807
837
  }
808
838
  }
809
839
  {
810
- maybePromise = safeCall(instance, "componentWillLoad");
840
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
811
841
  }
812
842
  }
813
843
  endSchedule();
@@ -876,7 +906,7 @@ var postUpdateComponent = (hostRef) => {
876
906
  const instance = hostRef.$lazyInstance$ ;
877
907
  const ancestorComponent = hostRef.$ancestorComponent$;
878
908
  {
879
- safeCall(instance, "componentDidRender");
909
+ safeCall(instance, "componentDidRender", void 0, elm);
880
910
  }
881
911
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
882
912
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -905,17 +935,14 @@ var postUpdateComponent = (hostRef) => {
905
935
  }
906
936
  };
907
937
  var appDidLoad = (who) => {
908
- {
909
- addHydratedFlag(doc.documentElement);
910
- }
911
938
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
912
939
  };
913
- var safeCall = (instance, method, arg) => {
940
+ var safeCall = (instance, method, arg, elm) => {
914
941
  if (instance && instance[method]) {
915
942
  try {
916
943
  return instance[method](arg);
917
944
  } catch (e) {
918
- consoleError(e);
945
+ consoleError(e, elm);
919
946
  }
920
947
  }
921
948
  return void 0;
@@ -974,15 +1001,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
974
1001
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
975
1002
  members.map(([memberName, [memberFlags]]) => {
976
1003
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1004
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1005
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1006
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1007
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1008
+ Object.defineProperty(prototype, memberName, {
1009
+ get() {
1010
+ {
1011
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1012
+ return getValue(this, memberName);
1013
+ }
1014
+ const ref = getHostRef(this);
1015
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1016
+ if (!instance) return;
1017
+ return instance[memberName];
1018
+ }
1019
+ },
1020
+ configurable: true,
1021
+ enumerable: true
1022
+ });
1023
+ }
977
1024
  Object.defineProperty(prototype, memberName, {
978
- get() {
979
- return getValue(this, memberName);
980
- },
981
1025
  set(newValue) {
982
- setValue(this, memberName, newValue, cmpMeta);
983
- },
984
- configurable: true,
985
- enumerable: true
1026
+ const ref = getHostRef(this);
1027
+ if (origSetter) {
1028
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1029
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1030
+ newValue = ref.$instanceValues$.get(memberName);
1031
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1032
+ ref.$instanceValues$.set(memberName, currentValue);
1033
+ }
1034
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1035
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1036
+ setValue(this, memberName, newValue, cmpMeta);
1037
+ return;
1038
+ }
1039
+ {
1040
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1041
+ setValue(this, memberName, newValue, cmpMeta);
1042
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1043
+ ref.$onReadyPromise$.then(() => {
1044
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1045
+ ref.$lazyInstance$[memberName] = newValue;
1046
+ }
1047
+ });
1048
+ }
1049
+ return;
1050
+ }
1051
+ const setterSetVal = () => {
1052
+ const currentValue = ref.$lazyInstance$[memberName];
1053
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1054
+ ref.$instanceValues$.set(memberName, currentValue);
1055
+ }
1056
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1057
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1058
+ };
1059
+ if (ref.$lazyInstance$) {
1060
+ setterSetVal();
1061
+ } else {
1062
+ ref.$onReadyPromise$.then(() => setterSetVal());
1063
+ }
1064
+ }
1065
+ }
986
1066
  });
987
1067
  }
988
1068
  });
@@ -992,7 +1072,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
992
1072
  plt.jmp(() => {
993
1073
  var _a2;
994
1074
  const propName = attrNameToPropName.get(attrName);
995
- if (this.hasOwnProperty(propName)) {
1075
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
996
1076
  newValue = this[propName];
997
1077
  delete this[propName];
998
1078
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1012,7 +1092,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1012
1092
  }
1013
1093
  return;
1014
1094
  }
1015
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1095
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1096
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1097
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1098
+ this[propName] = newValue;
1099
+ }
1016
1100
  });
1017
1101
  };
1018
1102
  Cstr.observedAttributes = Array.from(
@@ -1041,7 +1125,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1041
1125
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1042
1126
  const bundleId = cmpMeta.$lazyBundleId$;
1043
1127
  if (bundleId) {
1044
- const CstrImport = loadModule(cmpMeta);
1128
+ const CstrImport = loadModule(cmpMeta, hostRef);
1045
1129
  if (CstrImport && "then" in CstrImport) {
1046
1130
  const endLoad = uniqueTime();
1047
1131
  Cstr = await CstrImport;
@@ -1066,7 +1150,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1066
1150
  try {
1067
1151
  new Cstr(hostRef);
1068
1152
  } catch (e) {
1069
- consoleError(e);
1153
+ consoleError(e, elm);
1070
1154
  }
1071
1155
  {
1072
1156
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1101,7 +1185,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1101
1185
  schedule();
1102
1186
  }
1103
1187
  };
1104
- var fireConnectedCallback = (instance) => {
1188
+ var fireConnectedCallback = (instance, elm) => {
1105
1189
  };
1106
1190
 
1107
1191
  // src/runtime/connected-callback.ts
@@ -1142,9 +1226,9 @@ var connectedCallback = (elm) => {
1142
1226
  endConnected();
1143
1227
  }
1144
1228
  };
1145
- var disconnectInstance = (instance) => {
1229
+ var disconnectInstance = (instance, elm) => {
1146
1230
  {
1147
- safeCall(instance, "disconnectedCallback");
1231
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1148
1232
  }
1149
1233
  };
1150
1234
  var disconnectedCallback = async (elm) => {
@@ -1157,11 +1241,17 @@ var disconnectedCallback = async (elm) => {
1157
1241
  }
1158
1242
  }
1159
1243
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1160
- disconnectInstance(hostRef.$lazyInstance$);
1244
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1161
1245
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1162
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1246
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1163
1247
  }
1164
1248
  }
1249
+ if (rootAppliedStyles.has(elm)) {
1250
+ rootAppliedStyles.delete(elm);
1251
+ }
1252
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1253
+ rootAppliedStyles.delete(elm.shadowRoot);
1254
+ }
1165
1255
  };
1166
1256
 
1167
1257
  // src/runtime/bootstrap-lazy.ts
@@ -1246,6 +1336,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1246
1336
  }
1247
1337
  disconnectedCallback() {
1248
1338
  plt.jmp(() => disconnectedCallback(this));
1339
+ plt.raf(() => {
1340
+ var _a3;
1341
+ const hostRef = getHostRef(this);
1342
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1343
+ if (i2 > -1) {
1344
+ deferredConnectedCallbacks.splice(i2, 1);
1345
+ }
1346
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1347
+ delete hostRef.$vnode$.$elm$;
1348
+ }
1349
+ });
1249
1350
  }
1250
1351
  componentOnReady() {
1251
1352
  return getHostRef(this).$onReadyPromise$;
@@ -1309,7 +1410,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1309
1410
  }
1310
1411
  }
1311
1412
  } catch (e) {
1312
- consoleError(e);
1413
+ consoleError(e, hostRef.$hostElement$);
1313
1414
  }
1314
1415
  };
1315
1416
  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-a8a513f5.js');
5
+ const index = require('./index-c95f18bc.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 { getChallengesHistoryTemplate, getHistoryLoaderTemplate } from "../../renders/ChallengesHistory";
6
6
  export class CasinoEngagementSuiteChallengesList {
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
+ * User's device type
22
+ */
23
+ this.device = 'Mobile';
24
+ /**
25
+ * List of challenges
26
+ */
27
+ this.challenges = [];
28
+ /**
29
+ *Paused Challenge Ids
30
+ */
31
+ this.pausedChallengeIds = [];
32
+ this.tooltip = false;
33
+ this.timers = {};
34
+ this.limitStylingAppends = false;
35
+ this.activeTab = 1;
36
+ this.historyLoading = false;
37
+ this.openedHistoryIds = [];
8
38
  this.setClientStyling = () => {
9
39
  let sheet = document.createElement('style');
10
40
  sheet.innerHTML = this.clientStyling;
@@ -81,21 +111,6 @@ export class CasinoEngagementSuiteChallengesList {
81
111
  },
82
112
  });
83
113
  };
84
- this.clientStyling = '';
85
- this.clientStylingUrl = '';
86
- this.language = 'en';
87
- this.device = 'Mobile';
88
- this.challenges = [];
89
- this.isJoiningToChallenge = undefined;
90
- this.inProgressChallenges = undefined;
91
- this.pausedChallengeIds = [];
92
- this.tooltip = false;
93
- this.timers = {};
94
- this.limitStylingAppends = false;
95
- this.activeTab = 1;
96
- this.historyLoading = false;
97
- this.challengesHistory = undefined;
98
- this.openedHistoryIds = [];
99
114
  }
100
115
  handleEvent(e) {
101
116
  const { type } = e === null || e === void 0 ? void 0 : e.data;
@@ -299,6 +314,8 @@ export class CasinoEngagementSuiteChallengesList {
299
314
  "tags": [],
300
315
  "text": "Client custom styling via string"
301
316
  },
317
+ "getter": false,
318
+ "setter": false,
302
319
  "attribute": "client-styling",
303
320
  "reflect": true,
304
321
  "defaultValue": "''"
@@ -317,6 +334,8 @@ export class CasinoEngagementSuiteChallengesList {
317
334
  "tags": [],
318
335
  "text": "Client custom styling via url"
319
336
  },
337
+ "getter": false,
338
+ "setter": false,
320
339
  "attribute": "client-styling-url",
321
340
  "reflect": true,
322
341
  "defaultValue": "''"
@@ -335,6 +354,8 @@ export class CasinoEngagementSuiteChallengesList {
335
354
  "tags": [],
336
355
  "text": "Language of the widget"
337
356
  },
357
+ "getter": false,
358
+ "setter": false,
338
359
  "attribute": "language",
339
360
  "reflect": false,
340
361
  "defaultValue": "'en'"
@@ -353,6 +374,8 @@ export class CasinoEngagementSuiteChallengesList {
353
374
  "tags": [],
354
375
  "text": "User's device type"
355
376
  },
377
+ "getter": false,
378
+ "setter": false,
356
379
  "attribute": "device",
357
380
  "reflect": false,
358
381
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -377,6 +400,8 @@ export class CasinoEngagementSuiteChallengesList {
377
400
  "tags": [],
378
401
  "text": "List of challenges"
379
402
  },
403
+ "getter": false,
404
+ "setter": false,
380
405
  "defaultValue": "[] as Array<Challenge>"
381
406
  },
382
407
  "isJoiningToChallenge": {
@@ -393,6 +418,8 @@ export class CasinoEngagementSuiteChallengesList {
393
418
  "tags": [],
394
419
  "text": "Is joining to challenge"
395
420
  },
421
+ "getter": false,
422
+ "setter": false,
396
423
  "attribute": "is-joining-to-challenge",
397
424
  "reflect": false
398
425
  },
@@ -414,7 +441,9 @@ export class CasinoEngagementSuiteChallengesList {
414
441
  "docs": {
415
442
  "tags": [],
416
443
  "text": "Active challenges"
417
- }
444
+ },
445
+ "getter": false,
446
+ "setter": false
418
447
  },
419
448
  "pausedChallengeIds": {
420
449
  "type": "unknown",
@@ -430,6 +459,8 @@ export class CasinoEngagementSuiteChallengesList {
430
459
  "tags": [],
431
460
  "text": "Paused Challenge Ids"
432
461
  },
462
+ "getter": false,
463
+ "setter": false,
433
464
  "defaultValue": "[] as Array<string>"
434
465
  }
435
466
  };
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-04cdb027.js';
2
- export { s as setNonce } from './index-04cdb027.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-61dbba4e.js';
2
+ export { s as setNonce } from './index-61dbba4e.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.26.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;