@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
@@ -1,4 +1,4 @@
1
- import { h, r as registerInstance, c as createEvent, g as getElement } from './index-04cdb027.js';
1
+ import { h, r as registerInstance, c as createEvent, g as getElement } from './index-61dbba4e.js';
2
2
 
3
3
  var ChallengeRewardType;
4
4
  (function (ChallengeRewardType) {
@@ -2329,6 +2329,36 @@ const CasinoEngagementSuiteChallengesList = class {
2329
2329
  registerInstance(this, hostRef);
2330
2330
  this.close = createEvent(this, "close", 7);
2331
2331
  this.resetNewChallengeLabel = createEvent(this, "resetNewChallengeLabel", 7);
2332
+ /**
2333
+ * Client custom styling via string
2334
+ */
2335
+ this.clientStyling = '';
2336
+ /**
2337
+ * Client custom styling via url
2338
+ */
2339
+ this.clientStylingUrl = '';
2340
+ /**
2341
+ * Language of the widget
2342
+ */
2343
+ this.language = 'en';
2344
+ /**
2345
+ * User's device type
2346
+ */
2347
+ this.device = 'Mobile';
2348
+ /**
2349
+ * List of challenges
2350
+ */
2351
+ this.challenges = [];
2352
+ /**
2353
+ *Paused Challenge Ids
2354
+ */
2355
+ this.pausedChallengeIds = [];
2356
+ this.tooltip = false;
2357
+ this.timers = {};
2358
+ this.limitStylingAppends = false;
2359
+ this.activeTab = 1;
2360
+ this.historyLoading = false;
2361
+ this.openedHistoryIds = [];
2332
2362
  this.setClientStyling = () => {
2333
2363
  let sheet = document.createElement('style');
2334
2364
  sheet.innerHTML = this.clientStyling;
@@ -2405,21 +2435,6 @@ const CasinoEngagementSuiteChallengesList = class {
2405
2435
  },
2406
2436
  });
2407
2437
  };
2408
- this.clientStyling = '';
2409
- this.clientStylingUrl = '';
2410
- this.language = 'en';
2411
- this.device = 'Mobile';
2412
- this.challenges = [];
2413
- this.isJoiningToChallenge = undefined;
2414
- this.inProgressChallenges = undefined;
2415
- this.pausedChallengeIds = [];
2416
- this.tooltip = false;
2417
- this.timers = {};
2418
- this.limitStylingAppends = false;
2419
- this.activeTab = 1;
2420
- this.historyLoading = false;
2421
- this.challengesHistory = undefined;
2422
- this.openedHistoryIds = [];
2423
2438
  }
2424
2439
  handleEvent(e) {
2425
2440
  const { type } = e === null || e === void 0 ? void 0 : e.data;
@@ -2608,6 +2623,31 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
2608
2623
  const CasinoEngagementSuiteProgressBar = class {
2609
2624
  constructor(hostRef) {
2610
2625
  registerInstance(this, hostRef);
2626
+ /**
2627
+ * Value for the widget
2628
+ */
2629
+ this.value = 0;
2630
+ /**
2631
+ * Shows disabled styles
2632
+ */
2633
+ this.disabled = false;
2634
+ /**
2635
+ * Hide percent value
2636
+ */
2637
+ this.hidePercent = false;
2638
+ /**
2639
+ * Constantly animates
2640
+ */
2641
+ this.indeterminate = false;
2642
+ /**
2643
+ * Client custom styling via string
2644
+ */
2645
+ this.clientStyling = '';
2646
+ /**
2647
+ * Client custom styling via url
2648
+ */
2649
+ this.clientStylingUrl = '';
2650
+ this.limitStylingAppends = false;
2611
2651
  this.setClientStyling = () => {
2612
2652
  let sheet = document.createElement('style');
2613
2653
  sheet.innerHTML = this.clientStyling;
@@ -2626,13 +2666,6 @@ const CasinoEngagementSuiteProgressBar = class {
2626
2666
  console.log('Error ', err);
2627
2667
  });
2628
2668
  };
2629
- this.value = 0;
2630
- this.disabled = false;
2631
- this.hidePercent = false;
2632
- this.indeterminate = false;
2633
- this.clientStyling = '';
2634
- this.clientStylingUrl = '';
2635
- this.limitStylingAppends = false;
2636
2669
  }
2637
2670
  componentDidRender() {
2638
2671
  if (!this.limitStylingAppends && this.host) {
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-challenges-list';
2
- 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -144,12 +155,6 @@ var flush = () => {
144
155
  };
145
156
  var nextTick = (cb) => promiseResolve().then(cb);
146
157
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
-
151
- // src/utils/helpers.ts
152
- var isDef = (v) => v != null;
153
158
  var isComplexType = (o) => {
154
159
  o = typeof o;
155
160
  return o === "object" || o === "function";
@@ -353,7 +358,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
353
358
  }
354
359
  if (!appliedStyles.has(scopeId2)) {
355
360
  {
356
- styleElm = doc.createElement("style");
361
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
357
362
  styleElm.innerHTML = style;
358
363
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
359
364
  if (nonce != null) {
@@ -363,7 +368,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
363
368
  if (styleContainerNode.nodeName === "HEAD") {
364
369
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
365
370
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
366
- styleContainerNode.insertBefore(styleElm, referenceNode2);
371
+ styleContainerNode.insertBefore(
372
+ styleElm,
373
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
+ );
367
375
  } else if ("host" in styleContainerNode) {
368
376
  if (supportsConstructableStylesheets) {
369
377
  const stylesheet = new CSSStyleSheet();
@@ -381,7 +389,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
381
389
  styleContainerNode.append(styleElm);
382
390
  }
383
391
  }
384
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
392
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
385
393
  styleContainerNode.insertBefore(styleElm, null);
386
394
  }
387
395
  }
@@ -406,23 +414,25 @@ var attachStyles = (hostRef) => {
406
414
  const scopeId2 = addStyle(
407
415
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
408
416
  cmpMeta);
409
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
417
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
410
418
  elm["s-sc"] = scopeId2;
411
419
  elm.classList.add(scopeId2 + "-h");
412
420
  }
413
421
  endAttachStyles();
414
422
  };
415
423
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
416
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
424
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
417
425
  if (oldValue !== newValue) {
418
426
  let isProp = isMemberInElement(elm, memberName);
419
427
  let ln = memberName.toLowerCase();
420
428
  if (memberName === "class") {
421
429
  const classList = elm.classList;
422
430
  const oldClasses = parseClassList(oldValue);
423
- const newClasses = parseClassList(newValue);
424
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
431
+ let newClasses = parseClassList(newValue);
432
+ {
433
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
+ }
426
436
  } else if (memberName === "style") {
427
437
  {
428
438
  for (const prop in oldValue) {
@@ -477,7 +487,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
477
487
  elm.setAttribute(memberName, n);
478
488
  }
479
489
  }
480
- } else {
490
+ } else if (elm[memberName] !== newValue) {
481
491
  elm[memberName] = newValue;
482
492
  }
483
493
  } catch (e) {
@@ -499,24 +509,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
499
509
  }
500
510
  };
501
511
  var parseClassListRegex = /\s/;
502
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
512
+ var parseClassList = (value) => {
513
+ if (typeof value === "object" && value && "baseVal" in value) {
514
+ value = value.baseVal;
515
+ }
516
+ if (!value || typeof value !== "string") {
517
+ return [];
518
+ }
519
+ return value.split(parseClassListRegex);
520
+ };
503
521
  var CAPTURE_EVENT_SUFFIX = "Capture";
504
522
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
505
523
 
506
524
  // src/runtime/vdom/update-element.ts
507
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
525
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
508
526
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
509
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
510
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
527
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
528
+ const newVnodeAttrs = newVnode.$attrs$ || {};
511
529
  {
512
530
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
513
531
  if (!(memberName in newVnodeAttrs)) {
514
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
532
+ setAccessor(
533
+ elm,
534
+ memberName,
535
+ oldVnodeAttrs[memberName],
536
+ void 0,
537
+ isSvgMode2,
538
+ newVnode.$flags$);
515
539
  }
516
540
  }
517
541
  }
518
542
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
519
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
543
+ setAccessor(
544
+ elm,
545
+ memberName,
546
+ oldVnodeAttrs[memberName],
547
+ newVnodeAttrs[memberName],
548
+ isSvgMode2,
549
+ newVnode.$flags$);
520
550
  }
521
551
  };
522
552
  function sortedAttrNames(attrNames) {
@@ -528,13 +558,10 @@ function sortedAttrNames(attrNames) {
528
558
  attrNames
529
559
  );
530
560
  }
531
-
532
- // src/runtime/vdom/vdom-render.ts
533
- var scopeId;
534
561
  var hostTagName;
535
562
  var useNativeShadowDom = false;
536
563
  var isSvgMode = false;
537
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
564
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
538
565
  const newVNode2 = newParentVNode.$children$[childIndex];
539
566
  let i2 = 0;
540
567
  let elm;
@@ -548,11 +575,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
548
575
  {
549
576
  updateElement(null, newVNode2, isSvgMode);
550
577
  }
551
- const rootNode = elm.getRootNode();
552
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
553
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
554
- elm.classList.add(elm["s-si"] = scopeId);
555
- }
556
578
  if (newVNode2.$children$) {
557
579
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
558
580
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -681,6 +703,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
681
703
  if (!isInitialRender) {
682
704
  return leftVNode.$key$ === rightVNode.$key$;
683
705
  }
706
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
707
+ leftVNode.$key$ = rightVNode.$key$;
708
+ }
684
709
  return true;
685
710
  }
686
711
  return false;
@@ -715,8 +740,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
715
740
  }
716
741
  };
717
742
  var insertBefore = (parent, newNode, reference) => {
718
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
719
- return inserted;
743
+ {
744
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
745
+ }
720
746
  };
721
747
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
722
748
  const hostElm = hostRef.$hostElement$;
@@ -741,17 +767,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
741
767
  rootVnode.$flags$ |= 4 /* isHost */;
742
768
  hostRef.$vnode$ = rootVnode;
743
769
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
744
- {
745
- scopeId = hostElm["s-sc"];
746
- }
747
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
770
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
748
771
  patch(oldVNode, rootVnode, isInitialLoad);
749
772
  };
750
773
 
751
774
  // src/runtime/update-component.ts
752
775
  var attachToAncestor = (hostRef, ancestorComponent) => {
753
776
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
754
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
777
+ const index = ancestorComponent["s-p"].push(
778
+ new Promise(
779
+ (r) => hostRef.$onRenderResolve$ = () => {
780
+ ancestorComponent["s-p"].splice(index - 1, 1);
781
+ r();
782
+ }
783
+ )
784
+ );
755
785
  }
756
786
  };
757
787
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -780,12 +810,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
780
810
  {
781
811
  hostRef.$flags$ |= 256 /* isListenReady */;
782
812
  if (hostRef.$queuedListeners$) {
783
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
813
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
784
814
  hostRef.$queuedListeners$ = void 0;
785
815
  }
786
816
  }
787
817
  {
788
- maybePromise = safeCall(instance, "componentWillLoad");
818
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
789
819
  }
790
820
  }
791
821
  endSchedule();
@@ -854,7 +884,7 @@ var postUpdateComponent = (hostRef) => {
854
884
  const instance = hostRef.$lazyInstance$ ;
855
885
  const ancestorComponent = hostRef.$ancestorComponent$;
856
886
  {
857
- safeCall(instance, "componentDidRender");
887
+ safeCall(instance, "componentDidRender", void 0, elm);
858
888
  }
859
889
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
860
890
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -883,17 +913,14 @@ var postUpdateComponent = (hostRef) => {
883
913
  }
884
914
  };
885
915
  var appDidLoad = (who) => {
886
- {
887
- addHydratedFlag(doc.documentElement);
888
- }
889
916
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
890
917
  };
891
- var safeCall = (instance, method, arg) => {
918
+ var safeCall = (instance, method, arg, elm) => {
892
919
  if (instance && instance[method]) {
893
920
  try {
894
921
  return instance[method](arg);
895
922
  } catch (e) {
896
- consoleError(e);
923
+ consoleError(e, elm);
897
924
  }
898
925
  }
899
926
  return void 0;
@@ -952,15 +979,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
952
979
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
953
980
  members.map(([memberName, [memberFlags]]) => {
954
981
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
982
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
983
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
984
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
985
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
986
+ Object.defineProperty(prototype, memberName, {
987
+ get() {
988
+ {
989
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
990
+ return getValue(this, memberName);
991
+ }
992
+ const ref = getHostRef(this);
993
+ const instance = ref ? ref.$lazyInstance$ : prototype;
994
+ if (!instance) return;
995
+ return instance[memberName];
996
+ }
997
+ },
998
+ configurable: true,
999
+ enumerable: true
1000
+ });
1001
+ }
955
1002
  Object.defineProperty(prototype, memberName, {
956
- get() {
957
- return getValue(this, memberName);
958
- },
959
1003
  set(newValue) {
960
- setValue(this, memberName, newValue, cmpMeta);
961
- },
962
- configurable: true,
963
- enumerable: true
1004
+ const ref = getHostRef(this);
1005
+ if (origSetter) {
1006
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1007
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1008
+ newValue = ref.$instanceValues$.get(memberName);
1009
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1010
+ ref.$instanceValues$.set(memberName, currentValue);
1011
+ }
1012
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1013
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1014
+ setValue(this, memberName, newValue, cmpMeta);
1015
+ return;
1016
+ }
1017
+ {
1018
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1019
+ setValue(this, memberName, newValue, cmpMeta);
1020
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1021
+ ref.$onReadyPromise$.then(() => {
1022
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1023
+ ref.$lazyInstance$[memberName] = newValue;
1024
+ }
1025
+ });
1026
+ }
1027
+ return;
1028
+ }
1029
+ const setterSetVal = () => {
1030
+ const currentValue = ref.$lazyInstance$[memberName];
1031
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1032
+ ref.$instanceValues$.set(memberName, currentValue);
1033
+ }
1034
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1035
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1036
+ };
1037
+ if (ref.$lazyInstance$) {
1038
+ setterSetVal();
1039
+ } else {
1040
+ ref.$onReadyPromise$.then(() => setterSetVal());
1041
+ }
1042
+ }
1043
+ }
964
1044
  });
965
1045
  }
966
1046
  });
@@ -970,7 +1050,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
970
1050
  plt.jmp(() => {
971
1051
  var _a2;
972
1052
  const propName = attrNameToPropName.get(attrName);
973
- if (this.hasOwnProperty(propName)) {
1053
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
974
1054
  newValue = this[propName];
975
1055
  delete this[propName];
976
1056
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -990,7 +1070,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
1070
  }
991
1071
  return;
992
1072
  }
993
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1073
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1074
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1075
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1076
+ this[propName] = newValue;
1077
+ }
994
1078
  });
995
1079
  };
996
1080
  Cstr.observedAttributes = Array.from(
@@ -1019,7 +1103,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1019
1103
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1020
1104
  const bundleId = cmpMeta.$lazyBundleId$;
1021
1105
  if (bundleId) {
1022
- const CstrImport = loadModule(cmpMeta);
1106
+ const CstrImport = loadModule(cmpMeta, hostRef);
1023
1107
  if (CstrImport && "then" in CstrImport) {
1024
1108
  const endLoad = uniqueTime();
1025
1109
  Cstr = await CstrImport;
@@ -1044,7 +1128,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1044
1128
  try {
1045
1129
  new Cstr(hostRef);
1046
1130
  } catch (e) {
1047
- consoleError(e);
1131
+ consoleError(e, elm);
1048
1132
  }
1049
1133
  {
1050
1134
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1079,7 +1163,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1079
1163
  schedule();
1080
1164
  }
1081
1165
  };
1082
- var fireConnectedCallback = (instance) => {
1166
+ var fireConnectedCallback = (instance, elm) => {
1083
1167
  };
1084
1168
 
1085
1169
  // src/runtime/connected-callback.ts
@@ -1120,9 +1204,9 @@ var connectedCallback = (elm) => {
1120
1204
  endConnected();
1121
1205
  }
1122
1206
  };
1123
- var disconnectInstance = (instance) => {
1207
+ var disconnectInstance = (instance, elm) => {
1124
1208
  {
1125
- safeCall(instance, "disconnectedCallback");
1209
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1126
1210
  }
1127
1211
  };
1128
1212
  var disconnectedCallback = async (elm) => {
@@ -1135,11 +1219,17 @@ var disconnectedCallback = async (elm) => {
1135
1219
  }
1136
1220
  }
1137
1221
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1138
- disconnectInstance(hostRef.$lazyInstance$);
1222
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1139
1223
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1140
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1224
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1141
1225
  }
1142
1226
  }
1227
+ if (rootAppliedStyles.has(elm)) {
1228
+ rootAppliedStyles.delete(elm);
1229
+ }
1230
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1231
+ rootAppliedStyles.delete(elm.shadowRoot);
1232
+ }
1143
1233
  };
1144
1234
 
1145
1235
  // src/runtime/bootstrap-lazy.ts
@@ -1224,6 +1314,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1224
1314
  }
1225
1315
  disconnectedCallback() {
1226
1316
  plt.jmp(() => disconnectedCallback(this));
1317
+ plt.raf(() => {
1318
+ var _a3;
1319
+ const hostRef = getHostRef(this);
1320
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1321
+ if (i2 > -1) {
1322
+ deferredConnectedCallbacks.splice(i2, 1);
1323
+ }
1324
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1325
+ delete hostRef.$vnode$.$elm$;
1326
+ }
1327
+ });
1227
1328
  }
1228
1329
  componentOnReady() {
1229
1330
  return getHostRef(this).$onReadyPromise$;
@@ -1287,7 +1388,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1287
1388
  }
1288
1389
  }
1289
1390
  } catch (e) {
1290
- consoleError(e);
1391
+ consoleError(e, hostRef.$hostElement$);
1291
1392
  }
1292
1393
  };
1293
1394
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-04cdb027.js';
2
- export { s as setNonce } from './index-04cdb027.js';
1
+ import { 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
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-challenges-list",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",