@everymatrix/casino-engagement-suite-challenges-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 (24) 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-3a67b441.js +2 -0
  3. package/dist/casino-engagement-suite-challenges-details/p-cadab9e8.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-748a8ad7.js} +170 -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-aeeed9d1.js} +170 -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. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.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-details/.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-details/.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-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-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.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 : {};
@@ -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();
@@ -387,7 +395,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
387
395
  styleContainerNode.append(styleElm);
388
396
  }
389
397
  }
390
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
398
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
391
399
  styleContainerNode.insertBefore(styleElm, null);
392
400
  }
393
401
  }
@@ -412,23 +420,25 @@ var attachStyles = (hostRef) => {
412
420
  const scopeId2 = addStyle(
413
421
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
414
422
  cmpMeta);
415
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
423
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
416
424
  elm["s-sc"] = scopeId2;
417
425
  elm.classList.add(scopeId2 + "-h");
418
426
  }
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,17 +773,21 @@ 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
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
776
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
754
777
  patch(oldVNode, rootVnode, isInitialLoad);
755
778
  };
756
779
 
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 */;
@@ -882,17 +912,14 @@ var postUpdateComponent = (hostRef) => {
882
912
  }
883
913
  };
884
914
  var appDidLoad = (who) => {
885
- {
886
- addHydratedFlag(doc.documentElement);
887
- }
888
915
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
889
916
  };
890
- var safeCall = (instance, method, arg) => {
917
+ var safeCall = (instance, method, arg, elm) => {
891
918
  if (instance && instance[method]) {
892
919
  try {
893
920
  return instance[method](arg);
894
921
  } catch (e) {
895
- consoleError(e);
922
+ consoleError(e, elm);
896
923
  }
897
924
  }
898
925
  return void 0;
@@ -951,15 +978,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
951
978
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
952
979
  members.map(([memberName, [memberFlags]]) => {
953
980
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
981
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
982
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
983
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
984
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
985
+ Object.defineProperty(prototype, memberName, {
986
+ get() {
987
+ {
988
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
989
+ return getValue(this, memberName);
990
+ }
991
+ const ref = getHostRef(this);
992
+ const instance = ref ? ref.$lazyInstance$ : prototype;
993
+ if (!instance) return;
994
+ return instance[memberName];
995
+ }
996
+ },
997
+ configurable: true,
998
+ enumerable: true
999
+ });
1000
+ }
954
1001
  Object.defineProperty(prototype, memberName, {
955
- get() {
956
- return getValue(this, memberName);
957
- },
958
1002
  set(newValue) {
959
- setValue(this, memberName, newValue, cmpMeta);
960
- },
961
- configurable: true,
962
- enumerable: true
1003
+ const ref = getHostRef(this);
1004
+ if (origSetter) {
1005
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1006
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1007
+ newValue = ref.$instanceValues$.get(memberName);
1008
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1009
+ ref.$instanceValues$.set(memberName, currentValue);
1010
+ }
1011
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1012
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1013
+ setValue(this, memberName, newValue, cmpMeta);
1014
+ return;
1015
+ }
1016
+ {
1017
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1018
+ setValue(this, memberName, newValue, cmpMeta);
1019
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1020
+ ref.$onReadyPromise$.then(() => {
1021
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1022
+ ref.$lazyInstance$[memberName] = newValue;
1023
+ }
1024
+ });
1025
+ }
1026
+ return;
1027
+ }
1028
+ const setterSetVal = () => {
1029
+ const currentValue = ref.$lazyInstance$[memberName];
1030
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1031
+ ref.$instanceValues$.set(memberName, currentValue);
1032
+ }
1033
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1034
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1035
+ };
1036
+ if (ref.$lazyInstance$) {
1037
+ setterSetVal();
1038
+ } else {
1039
+ ref.$onReadyPromise$.then(() => setterSetVal());
1040
+ }
1041
+ }
1042
+ }
963
1043
  });
964
1044
  }
965
1045
  });
@@ -969,7 +1049,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
969
1049
  plt.jmp(() => {
970
1050
  var _a2;
971
1051
  const propName = attrNameToPropName.get(attrName);
972
- if (this.hasOwnProperty(propName)) {
1052
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
973
1053
  newValue = this[propName];
974
1054
  delete this[propName];
975
1055
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -989,7 +1069,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
989
1069
  }
990
1070
  return;
991
1071
  }
992
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1072
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1073
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1074
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1075
+ this[propName] = newValue;
1076
+ }
993
1077
  });
994
1078
  };
995
1079
  Cstr.observedAttributes = Array.from(
@@ -1018,7 +1102,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1018
1102
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1019
1103
  const bundleId = cmpMeta.$lazyBundleId$;
1020
1104
  if (bundleId) {
1021
- const CstrImport = loadModule(cmpMeta);
1105
+ const CstrImport = loadModule(cmpMeta, hostRef);
1022
1106
  if (CstrImport && "then" in CstrImport) {
1023
1107
  const endLoad = uniqueTime();
1024
1108
  Cstr = await CstrImport;
@@ -1043,7 +1127,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1043
1127
  try {
1044
1128
  new Cstr(hostRef);
1045
1129
  } catch (e) {
1046
- consoleError(e);
1130
+ consoleError(e, elm);
1047
1131
  }
1048
1132
  {
1049
1133
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1078,7 +1162,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1078
1162
  schedule();
1079
1163
  }
1080
1164
  };
1081
- var fireConnectedCallback = (instance) => {
1165
+ var fireConnectedCallback = (instance, elm) => {
1082
1166
  };
1083
1167
 
1084
1168
  // src/runtime/connected-callback.ts
@@ -1118,20 +1202,26 @@ var connectedCallback = (elm) => {
1118
1202
  endConnected();
1119
1203
  }
1120
1204
  };
1121
- var disconnectInstance = (instance) => {
1205
+ var disconnectInstance = (instance, elm) => {
1122
1206
  {
1123
- safeCall(instance, "disconnectedCallback");
1207
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1124
1208
  }
1125
1209
  };
1126
1210
  var disconnectedCallback = async (elm) => {
1127
1211
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1128
1212
  const hostRef = getHostRef(elm);
1129
1213
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1130
- disconnectInstance(hostRef.$lazyInstance$);
1214
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1131
1215
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1132
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1216
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1133
1217
  }
1134
1218
  }
1219
+ if (rootAppliedStyles.has(elm)) {
1220
+ rootAppliedStyles.delete(elm);
1221
+ }
1222
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1223
+ rootAppliedStyles.delete(elm.shadowRoot);
1224
+ }
1135
1225
  };
1136
1226
 
1137
1227
  // src/runtime/bootstrap-lazy.ts
@@ -1212,6 +1302,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1212
1302
  }
1213
1303
  disconnectedCallback() {
1214
1304
  plt.jmp(() => disconnectedCallback(this));
1305
+ plt.raf(() => {
1306
+ var _a3;
1307
+ const hostRef = getHostRef(this);
1308
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1309
+ if (i2 > -1) {
1310
+ deferredConnectedCallbacks.splice(i2, 1);
1311
+ }
1312
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1313
+ delete hostRef.$vnode$.$elm$;
1314
+ }
1315
+ });
1215
1316
  }
1216
1317
  componentOnReady() {
1217
1318
  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-748a8ad7.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,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-aeeed9d1.js';
2
+ export { s as setNonce } from './index-aeeed9d1.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;