@everymatrix/casino-engagement-suite-challenges-details 1.53.0 → 1.53.11

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 (20) hide show
  1. package/dist/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.esm.js +1 -1
  2. package/dist/casino-engagement-suite-challenges-details/p-e3265c17.js +2 -0
  3. package/dist/casino-engagement-suite-challenges-details/p-f8989d1e.entry.js +1 -0
  4. package/dist/cjs/casino-engagement-suite-challenges-details.cjs.js +2 -2
  5. package/dist/cjs/casino-engagement-suite-challenges-details_2.cjs.entry.js +54 -21
  6. package/dist/cjs/{index-6ff53f03.js → index-24adbf67.js} +164 -69
  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-details/casino-engagement-suite-challenges-details.js +48 -15
  10. package/dist/esm/casino-engagement-suite-challenges-details.js +3 -3
  11. package/dist/esm/casino-engagement-suite-challenges-details_2.entry.js +54 -21
  12. package/dist/esm/{index-483d521d.js → index-897d7f8e.js} +164 -69
  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-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-challenges-details/p-481c61a8.js +0 -2
  18. package/dist/casino-engagement-suite-challenges-details/p-6f85f7fe.entry.js +0 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +0 -2
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-engagement-suite-challenges-details';
24
- const BUILD = /* casino-engagement-suite-challenges-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: false, hostListenerTarget: false, hostListenerTargetBody: false, 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: 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-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: false, hostListenerTarget: false, hostListenerTargetBody: false, 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: 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.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 : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
-
157
- // src/utils/helpers.ts
158
- var isDef = (v) => v != null;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -359,7 +364,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
359
364
  }
360
365
  if (!appliedStyles.has(scopeId2)) {
361
366
  {
362
- styleElm = doc.createElement("style");
367
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
363
368
  styleElm.innerHTML = style;
364
369
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
365
370
  if (nonce != null) {
@@ -369,7 +374,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
369
374
  if (styleContainerNode.nodeName === "HEAD") {
370
375
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
371
376
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
372
- styleContainerNode.insertBefore(styleElm, referenceNode2);
377
+ styleContainerNode.insertBefore(
378
+ styleElm,
379
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
380
+ );
373
381
  } else if ("host" in styleContainerNode) {
374
382
  if (supportsConstructableStylesheets) {
375
383
  const stylesheet = new CSSStyleSheet();
@@ -419,16 +427,18 @@ var attachStyles = (hostRef) => {
419
427
  endAttachStyles();
420
428
  };
421
429
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
422
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
430
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
423
431
  if (oldValue !== newValue) {
424
432
  let isProp = isMemberInElement(elm, memberName);
425
433
  let ln = memberName.toLowerCase();
426
434
  if (memberName === "class") {
427
435
  const classList = elm.classList;
428
436
  const oldClasses = parseClassList(oldValue);
429
- const newClasses = parseClassList(newValue);
430
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
431
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
437
+ let newClasses = parseClassList(newValue);
438
+ {
439
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
440
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
441
+ }
432
442
  } else if (memberName === "style") {
433
443
  {
434
444
  for (const prop in oldValue) {
@@ -483,7 +493,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
483
493
  elm.setAttribute(memberName, n);
484
494
  }
485
495
  }
486
- } else {
496
+ } else if (elm[memberName] !== newValue) {
487
497
  elm[memberName] = newValue;
488
498
  }
489
499
  } catch (e) {
@@ -505,24 +515,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
505
515
  }
506
516
  };
507
517
  var parseClassListRegex = /\s/;
508
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
518
+ var parseClassList = (value) => {
519
+ if (typeof value === "object" && value && "baseVal" in value) {
520
+ value = value.baseVal;
521
+ }
522
+ if (!value || typeof value !== "string") {
523
+ return [];
524
+ }
525
+ return value.split(parseClassListRegex);
526
+ };
509
527
  var CAPTURE_EVENT_SUFFIX = "Capture";
510
528
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
511
529
 
512
530
  // src/runtime/vdom/update-element.ts
513
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
531
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
514
532
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
515
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
516
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
533
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
534
+ const newVnodeAttrs = newVnode.$attrs$ || {};
517
535
  {
518
536
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
519
537
  if (!(memberName in newVnodeAttrs)) {
520
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
538
+ setAccessor(
539
+ elm,
540
+ memberName,
541
+ oldVnodeAttrs[memberName],
542
+ void 0,
543
+ isSvgMode2,
544
+ newVnode.$flags$);
521
545
  }
522
546
  }
523
547
  }
524
548
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
525
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
549
+ setAccessor(
550
+ elm,
551
+ memberName,
552
+ oldVnodeAttrs[memberName],
553
+ newVnodeAttrs[memberName],
554
+ isSvgMode2,
555
+ newVnode.$flags$);
526
556
  }
527
557
  };
528
558
  function sortedAttrNames(attrNames) {
@@ -534,13 +564,10 @@ function sortedAttrNames(attrNames) {
534
564
  attrNames
535
565
  );
536
566
  }
537
-
538
- // src/runtime/vdom/vdom-render.ts
539
- var scopeId;
540
567
  var hostTagName;
541
568
  var useNativeShadowDom = false;
542
569
  var isSvgMode = false;
543
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
570
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
544
571
  const newVNode2 = newParentVNode.$children$[childIndex];
545
572
  let i2 = 0;
546
573
  let elm;
@@ -554,11 +581,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
554
581
  {
555
582
  updateElement(null, newVNode2, isSvgMode);
556
583
  }
557
- const rootNode = elm.getRootNode();
558
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
559
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
560
- elm.classList.add(elm["s-si"] = scopeId);
561
- }
562
584
  if (newVNode2.$children$) {
563
585
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
564
586
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -687,6 +709,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
687
709
  if (!isInitialRender) {
688
710
  return leftVNode.$key$ === rightVNode.$key$;
689
711
  }
712
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
713
+ leftVNode.$key$ = rightVNode.$key$;
714
+ }
690
715
  return true;
691
716
  }
692
717
  return false;
@@ -721,8 +746,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
721
746
  }
722
747
  };
723
748
  var insertBefore = (parent, newNode, reference) => {
724
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
725
- return inserted;
749
+ {
750
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
751
+ }
726
752
  };
727
753
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
728
754
  const hostElm = hostRef.$hostElement$;
@@ -747,9 +773,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
747
773
  rootVnode.$flags$ |= 4 /* isHost */;
748
774
  hostRef.$vnode$ = rootVnode;
749
775
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
750
- {
751
- scopeId = hostElm["s-sc"];
752
- }
753
776
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
754
777
  patch(oldVNode, rootVnode, isInitialLoad);
755
778
  };
@@ -757,7 +780,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
757
780
  // src/runtime/update-component.ts
758
781
  var attachToAncestor = (hostRef, ancestorComponent) => {
759
782
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
760
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
783
+ const index = ancestorComponent["s-p"].push(
784
+ new Promise(
785
+ (r) => hostRef.$onRenderResolve$ = () => {
786
+ ancestorComponent["s-p"].splice(index - 1, 1);
787
+ r();
788
+ }
789
+ )
790
+ );
761
791
  }
762
792
  };
763
793
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -784,7 +814,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
784
814
  let maybePromise;
785
815
  if (isInitialLoad) {
786
816
  {
787
- maybePromise = safeCall(instance, "componentWillLoad");
817
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
788
818
  }
789
819
  }
790
820
  endSchedule();
@@ -853,7 +883,7 @@ var postUpdateComponent = (hostRef) => {
853
883
  const instance = hostRef.$lazyInstance$ ;
854
884
  const ancestorComponent = hostRef.$ancestorComponent$;
855
885
  {
856
- safeCall(instance, "componentDidRender");
886
+ safeCall(instance, "componentDidRender", void 0, elm);
857
887
  }
858
888
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
859
889
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -887,12 +917,12 @@ var appDidLoad = (who) => {
887
917
  }
888
918
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
889
919
  };
890
- var safeCall = (instance, method, arg) => {
920
+ var safeCall = (instance, method, arg, elm) => {
891
921
  if (instance && instance[method]) {
892
922
  try {
893
923
  return instance[method](arg);
894
924
  } catch (e) {
895
- consoleError(e);
925
+ consoleError(e, elm);
896
926
  }
897
927
  }
898
928
  return void 0;
@@ -951,15 +981,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
951
981
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
952
982
  members.map(([memberName, [memberFlags]]) => {
953
983
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
984
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
985
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
986
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
987
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
988
+ Object.defineProperty(prototype, memberName, {
989
+ get() {
990
+ {
991
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
992
+ return getValue(this, memberName);
993
+ }
994
+ const ref = getHostRef(this);
995
+ const instance = ref ? ref.$lazyInstance$ : prototype;
996
+ if (!instance) return;
997
+ return instance[memberName];
998
+ }
999
+ },
1000
+ configurable: true,
1001
+ enumerable: true
1002
+ });
1003
+ }
954
1004
  Object.defineProperty(prototype, memberName, {
955
- get() {
956
- return getValue(this, memberName);
957
- },
958
1005
  set(newValue) {
959
- setValue(this, memberName, newValue, cmpMeta);
960
- },
961
- configurable: true,
962
- enumerable: true
1006
+ const ref = getHostRef(this);
1007
+ if (origSetter) {
1008
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1009
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1010
+ newValue = ref.$instanceValues$.get(memberName);
1011
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1012
+ ref.$instanceValues$.set(memberName, currentValue);
1013
+ }
1014
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1015
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1016
+ setValue(this, memberName, newValue, cmpMeta);
1017
+ return;
1018
+ }
1019
+ {
1020
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1021
+ setValue(this, memberName, newValue, cmpMeta);
1022
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1023
+ ref.$onReadyPromise$.then(() => {
1024
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1025
+ ref.$lazyInstance$[memberName] = newValue;
1026
+ }
1027
+ });
1028
+ }
1029
+ return;
1030
+ }
1031
+ const setterSetVal = () => {
1032
+ const currentValue = ref.$lazyInstance$[memberName];
1033
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1034
+ ref.$instanceValues$.set(memberName, currentValue);
1035
+ }
1036
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1037
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1038
+ };
1039
+ if (ref.$lazyInstance$) {
1040
+ setterSetVal();
1041
+ } else {
1042
+ ref.$onReadyPromise$.then(() => setterSetVal());
1043
+ }
1044
+ }
1045
+ }
963
1046
  });
964
1047
  }
965
1048
  });
@@ -969,7 +1052,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
969
1052
  plt.jmp(() => {
970
1053
  var _a2;
971
1054
  const propName = attrNameToPropName.get(attrName);
972
- if (this.hasOwnProperty(propName)) {
1055
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
973
1056
  newValue = this[propName];
974
1057
  delete this[propName];
975
1058
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -989,7 +1072,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
989
1072
  }
990
1073
  return;
991
1074
  }
992
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1075
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1076
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1077
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1078
+ this[propName] = newValue;
1079
+ }
993
1080
  });
994
1081
  };
995
1082
  Cstr.observedAttributes = Array.from(
@@ -1016,9 +1103,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1016
1103
  let Cstr;
1017
1104
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1018
1105
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1019
- const bundleId = cmpMeta.$lazyBundleId$;
1020
- if (bundleId) {
1021
- const CstrImport = loadModule(cmpMeta);
1106
+ {
1107
+ const CstrImport = loadModule(cmpMeta, hostRef);
1022
1108
  if (CstrImport && "then" in CstrImport) {
1023
1109
  const endLoad = uniqueTime();
1024
1110
  Cstr = await CstrImport;
@@ -1043,7 +1129,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1043
1129
  try {
1044
1130
  new Cstr(hostRef);
1045
1131
  } catch (e) {
1046
- consoleError(e);
1132
+ consoleError(e, elm);
1047
1133
  }
1048
1134
  {
1049
1135
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1052,10 +1138,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1052
1138
  hostRef.$flags$ |= 128 /* isWatchReady */;
1053
1139
  }
1054
1140
  endNewInstance();
1055
- } else {
1056
- Cstr = elm.constructor;
1057
- const cmpTag = elm.localName;
1058
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1059
1141
  }
1060
1142
  if (Cstr && Cstr.style) {
1061
1143
  let style;
@@ -1078,7 +1160,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1078
1160
  schedule();
1079
1161
  }
1080
1162
  };
1081
- var fireConnectedCallback = (instance) => {
1163
+ var fireConnectedCallback = (instance, elm) => {
1082
1164
  };
1083
1165
 
1084
1166
  // src/runtime/connected-callback.ts
@@ -1118,20 +1200,26 @@ var connectedCallback = (elm) => {
1118
1200
  endConnected();
1119
1201
  }
1120
1202
  };
1121
- var disconnectInstance = (instance) => {
1203
+ var disconnectInstance = (instance, elm) => {
1122
1204
  {
1123
- safeCall(instance, "disconnectedCallback");
1205
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1124
1206
  }
1125
1207
  };
1126
1208
  var disconnectedCallback = async (elm) => {
1127
1209
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1128
1210
  const hostRef = getHostRef(elm);
1129
1211
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1130
- disconnectInstance(hostRef.$lazyInstance$);
1212
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1131
1213
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1132
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1214
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1133
1215
  }
1134
1216
  }
1217
+ if (rootAppliedStyles.has(elm)) {
1218
+ rootAppliedStyles.delete(elm);
1219
+ }
1220
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1221
+ rootAppliedStyles.delete(elm.shadowRoot);
1222
+ }
1135
1223
  };
1136
1224
 
1137
1225
  // src/runtime/bootstrap-lazy.ts
@@ -1212,6 +1300,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1212
1300
  }
1213
1301
  disconnectedCallback() {
1214
1302
  plt.jmp(() => disconnectedCallback(this));
1303
+ plt.raf(() => {
1304
+ var _a3;
1305
+ const hostRef = getHostRef(this);
1306
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1307
+ delete hostRef.$vnode$.$elm$;
1308
+ }
1309
+ });
1215
1310
  }
1216
1311
  componentOnReady() {
1217
1312
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-6ff53f03.js');
5
+ const index = require('./index-24adbf67.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": [
@@ -5,6 +5,34 @@ import "../../../../../casino-engagement-suite-progress-bar/dist/types/index";
5
5
  import { formatBalance } from "../../utils";
6
6
  export class CasinoEngagementSuiteChallengesDetails {
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
+ /**
29
+ *Paused Challenge Ids
30
+ */
31
+ this.pausedChallengeIds = [];
32
+ this.limitStylingAppends = false;
33
+ this.timer = '';
34
+ this.showDetails = false;
35
+ this.isExpiredChallenge = false;
8
36
  this.setClientStyling = () => {
9
37
  let sheet = document.createElement('style');
10
38
  sheet.innerHTML = this.clientStyling;
@@ -70,19 +98,6 @@ export class CasinoEngagementSuiteChallengesDetails {
70
98
  this.toggle = () => {
71
99
  this.showDetails = !this.showDetails;
72
100
  };
73
- this.clientStyling = '';
74
- this.clientStylingUrl = '';
75
- this.challenge = undefined;
76
- this.inProgressChallenges = undefined;
77
- this.language = 'en';
78
- this.gameSlug = '';
79
- this.device = 'Mobile';
80
- this.isJoiningToChallenge = undefined;
81
- this.pausedChallengeIds = [];
82
- this.limitStylingAppends = false;
83
- this.timer = '';
84
- this.showDetails = false;
85
- this.isExpiredChallenge = false;
86
101
  }
87
102
  challengePropHandler(value) {
88
103
  if (!this.interval && value) {
@@ -235,6 +250,8 @@ export class CasinoEngagementSuiteChallengesDetails {
235
250
  "tags": [],
236
251
  "text": "Client custom styling via string"
237
252
  },
253
+ "getter": false,
254
+ "setter": false,
238
255
  "attribute": "client-styling",
239
256
  "reflect": true,
240
257
  "defaultValue": "''"
@@ -253,6 +270,8 @@ export class CasinoEngagementSuiteChallengesDetails {
253
270
  "tags": [],
254
271
  "text": "Client custom styling via url"
255
272
  },
273
+ "getter": false,
274
+ "setter": false,
256
275
  "attribute": "client-styling-url",
257
276
  "reflect": true,
258
277
  "defaultValue": "''"
@@ -276,7 +295,9 @@ export class CasinoEngagementSuiteChallengesDetails {
276
295
  "docs": {
277
296
  "tags": [],
278
297
  "text": "Selected challenge"
279
- }
298
+ },
299
+ "getter": false,
300
+ "setter": false
280
301
  },
281
302
  "inProgressChallenges": {
282
303
  "type": "unknown",
@@ -296,7 +317,9 @@ export class CasinoEngagementSuiteChallengesDetails {
296
317
  "docs": {
297
318
  "tags": [],
298
319
  "text": "Active challenges"
299
- }
320
+ },
321
+ "getter": false,
322
+ "setter": false
300
323
  },
301
324
  "language": {
302
325
  "type": "string",
@@ -312,6 +335,8 @@ export class CasinoEngagementSuiteChallengesDetails {
312
335
  "tags": [],
313
336
  "text": "Language of the widget"
314
337
  },
338
+ "getter": false,
339
+ "setter": false,
315
340
  "attribute": "language",
316
341
  "reflect": false,
317
342
  "defaultValue": "'en'"
@@ -330,6 +355,8 @@ export class CasinoEngagementSuiteChallengesDetails {
330
355
  "tags": [],
331
356
  "text": "Current game slug"
332
357
  },
358
+ "getter": false,
359
+ "setter": false,
333
360
  "attribute": "game-slug",
334
361
  "reflect": false,
335
362
  "defaultValue": "''"
@@ -348,6 +375,8 @@ export class CasinoEngagementSuiteChallengesDetails {
348
375
  "tags": [],
349
376
  "text": "User's device type"
350
377
  },
378
+ "getter": false,
379
+ "setter": false,
351
380
  "attribute": "device",
352
381
  "reflect": false,
353
382
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -366,6 +395,8 @@ export class CasinoEngagementSuiteChallengesDetails {
366
395
  "tags": [],
367
396
  "text": "Is joining to challenge"
368
397
  },
398
+ "getter": false,
399
+ "setter": false,
369
400
  "attribute": "is-joining-to-challenge",
370
401
  "reflect": false
371
402
  },
@@ -383,6 +414,8 @@ export class CasinoEngagementSuiteChallengesDetails {
383
414
  "tags": [],
384
415
  "text": "Paused Challenge Ids"
385
416
  },
417
+ "getter": false,
418
+ "setter": false,
386
419
  "defaultValue": "[] as Array<string>"
387
420
  }
388
421
  };
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-483d521d.js';
2
- export { s as setNonce } from './index-483d521d.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-897d7f8e.js';
2
+ export { s as setNonce } from './index-897d7f8e.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;