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