@everymatrix/casino-engagement-suite-challenges-details 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-details/casino-engagement-suite-challenges-details.esm.js +1 -1
  2. package/dist/casino-engagement-suite-challenges-details/p-481c61a8.js +2 -0
  3. package/dist/casino-engagement-suite-challenges-details/p-6f85f7fe.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 +21 -54
  6. package/dist/cjs/{index-748a8ad7.js → index-6ff53f03.js} +69 -170
  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 +15 -48
  10. package/dist/esm/casino-engagement-suite-challenges-details.js +3 -3
  11. package/dist/esm/casino-engagement-suite-challenges-details_2.entry.js +21 -54
  12. package/dist/esm/{index-aeeed9d1.js → index-483d521d.js} +69 -170
  13. package/dist/esm/loader.js +2 -2
  14. 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 +2 -0
  15. 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 +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-challenges-details/p-3a67b441.js +0 -2
  18. package/dist/casino-engagement-suite-challenges-details/p-cadab9e8.entry.js +0 -1
  19. package/dist/types/builds/emfe-widgets/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/builds/emfe-widgets/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/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.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-details/.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-details/.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-details/.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-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, 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-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 };
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 : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  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;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -364,7 +359,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
359
  }
365
360
  if (!appliedStyles.has(scopeId2)) {
366
361
  {
367
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
362
+ styleElm = doc.createElement("style");
368
363
  styleElm.innerHTML = style;
369
364
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
370
365
  if (nonce != null) {
@@ -374,10 +369,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
369
  if (styleContainerNode.nodeName === "HEAD") {
375
370
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
376
371
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
377
- styleContainerNode.insertBefore(
378
- styleElm,
379
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
380
- );
372
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
381
373
  } else if ("host" in styleContainerNode) {
382
374
  if (supportsConstructableStylesheets) {
383
375
  const stylesheet = new CSSStyleSheet();
@@ -395,7 +387,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
395
387
  styleContainerNode.append(styleElm);
396
388
  }
397
389
  }
398
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
390
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
399
391
  styleContainerNode.insertBefore(styleElm, null);
400
392
  }
401
393
  }
@@ -420,25 +412,23 @@ var attachStyles = (hostRef) => {
420
412
  const scopeId2 = addStyle(
421
413
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
422
414
  cmpMeta);
423
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
415
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
424
416
  elm["s-sc"] = scopeId2;
425
417
  elm.classList.add(scopeId2 + "-h");
426
418
  }
427
419
  endAttachStyles();
428
420
  };
429
421
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
430
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
422
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
431
423
  if (oldValue !== newValue) {
432
424
  let isProp = isMemberInElement(elm, memberName);
433
425
  let ln = memberName.toLowerCase();
434
426
  if (memberName === "class") {
435
427
  const classList = elm.classList;
436
428
  const oldClasses = parseClassList(oldValue);
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
- }
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)));
442
432
  } else if (memberName === "style") {
443
433
  {
444
434
  for (const prop in oldValue) {
@@ -493,7 +483,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
493
483
  elm.setAttribute(memberName, n);
494
484
  }
495
485
  }
496
- } else if (elm[memberName] !== newValue) {
486
+ } else {
497
487
  elm[memberName] = newValue;
498
488
  }
499
489
  } catch (e) {
@@ -515,44 +505,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
515
505
  }
516
506
  };
517
507
  var parseClassListRegex = /\s/;
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
- };
508
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
527
509
  var CAPTURE_EVENT_SUFFIX = "Capture";
528
510
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
529
511
 
530
512
  // src/runtime/vdom/update-element.ts
531
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
513
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
532
514
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
533
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
534
- const newVnodeAttrs = newVnode.$attrs$ || {};
515
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
516
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
535
517
  {
536
518
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
537
519
  if (!(memberName in newVnodeAttrs)) {
538
- setAccessor(
539
- elm,
540
- memberName,
541
- oldVnodeAttrs[memberName],
542
- void 0,
543
- isSvgMode2,
544
- newVnode.$flags$);
520
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
545
521
  }
546
522
  }
547
523
  }
548
524
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
549
- setAccessor(
550
- elm,
551
- memberName,
552
- oldVnodeAttrs[memberName],
553
- newVnodeAttrs[memberName],
554
- isSvgMode2,
555
- newVnode.$flags$);
525
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
556
526
  }
557
527
  };
558
528
  function sortedAttrNames(attrNames) {
@@ -564,10 +534,13 @@ function sortedAttrNames(attrNames) {
564
534
  attrNames
565
535
  );
566
536
  }
537
+
538
+ // src/runtime/vdom/vdom-render.ts
539
+ var scopeId;
567
540
  var hostTagName;
568
541
  var useNativeShadowDom = false;
569
542
  var isSvgMode = false;
570
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
543
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
571
544
  const newVNode2 = newParentVNode.$children$[childIndex];
572
545
  let i2 = 0;
573
546
  let elm;
@@ -581,6 +554,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
581
554
  {
582
555
  updateElement(null, newVNode2, isSvgMode);
583
556
  }
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
+ }
584
562
  if (newVNode2.$children$) {
585
563
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
586
564
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -709,9 +687,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
709
687
  if (!isInitialRender) {
710
688
  return leftVNode.$key$ === rightVNode.$key$;
711
689
  }
712
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
713
- leftVNode.$key$ = rightVNode.$key$;
714
- }
715
690
  return true;
716
691
  }
717
692
  return false;
@@ -746,9 +721,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
746
721
  }
747
722
  };
748
723
  var insertBefore = (parent, newNode, reference) => {
749
- {
750
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
751
- }
724
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
725
+ return inserted;
752
726
  };
753
727
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
754
728
  const hostElm = hostRef.$hostElement$;
@@ -773,21 +747,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
773
747
  rootVnode.$flags$ |= 4 /* isHost */;
774
748
  hostRef.$vnode$ = rootVnode;
775
749
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
776
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
750
+ {
751
+ scopeId = hostElm["s-sc"];
752
+ }
753
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
777
754
  patch(oldVNode, rootVnode, isInitialLoad);
778
755
  };
779
756
 
780
757
  // src/runtime/update-component.ts
781
758
  var attachToAncestor = (hostRef, ancestorComponent) => {
782
759
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
760
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
791
761
  }
792
762
  };
793
763
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -814,7 +784,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
814
784
  let maybePromise;
815
785
  if (isInitialLoad) {
816
786
  {
817
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
787
+ maybePromise = safeCall(instance, "componentWillLoad");
818
788
  }
819
789
  }
820
790
  endSchedule();
@@ -883,7 +853,7 @@ var postUpdateComponent = (hostRef) => {
883
853
  const instance = hostRef.$lazyInstance$ ;
884
854
  const ancestorComponent = hostRef.$ancestorComponent$;
885
855
  {
886
- safeCall(instance, "componentDidRender", void 0, elm);
856
+ safeCall(instance, "componentDidRender");
887
857
  }
888
858
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
889
859
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -912,14 +882,17 @@ var postUpdateComponent = (hostRef) => {
912
882
  }
913
883
  };
914
884
  var appDidLoad = (who) => {
885
+ {
886
+ addHydratedFlag(doc.documentElement);
887
+ }
915
888
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
916
889
  };
917
- var safeCall = (instance, method, arg, elm) => {
890
+ var safeCall = (instance, method, arg) => {
918
891
  if (instance && instance[method]) {
919
892
  try {
920
893
  return instance[method](arg);
921
894
  } catch (e) {
922
- consoleError(e, elm);
895
+ consoleError(e);
923
896
  }
924
897
  }
925
898
  return void 0;
@@ -978,68 +951,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
978
951
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
979
952
  members.map(([memberName, [memberFlags]]) => {
980
953
  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
- }
1001
954
  Object.defineProperty(prototype, memberName, {
955
+ get() {
956
+ return getValue(this, memberName);
957
+ },
1002
958
  set(newValue) {
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
- }
959
+ setValue(this, memberName, newValue, cmpMeta);
960
+ },
961
+ configurable: true,
962
+ enumerable: true
1043
963
  });
1044
964
  }
1045
965
  });
@@ -1049,7 +969,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1049
969
  plt.jmp(() => {
1050
970
  var _a2;
1051
971
  const propName = attrNameToPropName.get(attrName);
1052
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
972
+ if (this.hasOwnProperty(propName)) {
1053
973
  newValue = this[propName];
1054
974
  delete this[propName];
1055
975
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1069,11 +989,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1069
989
  }
1070
990
  return;
1071
991
  }
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
- }
992
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1077
993
  });
1078
994
  };
1079
995
  Cstr.observedAttributes = Array.from(
@@ -1102,7 +1018,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1102
1018
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1103
1019
  const bundleId = cmpMeta.$lazyBundleId$;
1104
1020
  if (bundleId) {
1105
- const CstrImport = loadModule(cmpMeta, hostRef);
1021
+ const CstrImport = loadModule(cmpMeta);
1106
1022
  if (CstrImport && "then" in CstrImport) {
1107
1023
  const endLoad = uniqueTime();
1108
1024
  Cstr = await CstrImport;
@@ -1127,7 +1043,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1127
1043
  try {
1128
1044
  new Cstr(hostRef);
1129
1045
  } catch (e) {
1130
- consoleError(e, elm);
1046
+ consoleError(e);
1131
1047
  }
1132
1048
  {
1133
1049
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1162,7 +1078,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1162
1078
  schedule();
1163
1079
  }
1164
1080
  };
1165
- var fireConnectedCallback = (instance, elm) => {
1081
+ var fireConnectedCallback = (instance) => {
1166
1082
  };
1167
1083
 
1168
1084
  // src/runtime/connected-callback.ts
@@ -1202,26 +1118,20 @@ var connectedCallback = (elm) => {
1202
1118
  endConnected();
1203
1119
  }
1204
1120
  };
1205
- var disconnectInstance = (instance, elm) => {
1121
+ var disconnectInstance = (instance) => {
1206
1122
  {
1207
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1123
+ safeCall(instance, "disconnectedCallback");
1208
1124
  }
1209
1125
  };
1210
1126
  var disconnectedCallback = async (elm) => {
1211
1127
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1212
1128
  const hostRef = getHostRef(elm);
1213
1129
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1214
- disconnectInstance(hostRef.$lazyInstance$, elm);
1130
+ disconnectInstance(hostRef.$lazyInstance$);
1215
1131
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1216
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1132
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1217
1133
  }
1218
1134
  }
1219
- if (rootAppliedStyles.has(elm)) {
1220
- rootAppliedStyles.delete(elm);
1221
- }
1222
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1223
- rootAppliedStyles.delete(elm.shadowRoot);
1224
- }
1225
1135
  };
1226
1136
 
1227
1137
  // src/runtime/bootstrap-lazy.ts
@@ -1302,17 +1212,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1302
1212
  }
1303
1213
  disconnectedCallback() {
1304
1214
  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
- });
1316
1215
  }
1317
1216
  componentOnReady() {
1318
1217
  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-748a8ad7.js');
5
+ const index = require('./index-6ff53f03.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,34 +5,6 @@ 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;
36
8
  this.setClientStyling = () => {
37
9
  let sheet = document.createElement('style');
38
10
  sheet.innerHTML = this.clientStyling;
@@ -98,6 +70,19 @@ export class CasinoEngagementSuiteChallengesDetails {
98
70
  this.toggle = () => {
99
71
  this.showDetails = !this.showDetails;
100
72
  };
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;
101
86
  }
102
87
  challengePropHandler(value) {
103
88
  if (!this.interval && value) {
@@ -250,8 +235,6 @@ export class CasinoEngagementSuiteChallengesDetails {
250
235
  "tags": [],
251
236
  "text": "Client custom styling via string"
252
237
  },
253
- "getter": false,
254
- "setter": false,
255
238
  "attribute": "client-styling",
256
239
  "reflect": true,
257
240
  "defaultValue": "''"
@@ -270,8 +253,6 @@ export class CasinoEngagementSuiteChallengesDetails {
270
253
  "tags": [],
271
254
  "text": "Client custom styling via url"
272
255
  },
273
- "getter": false,
274
- "setter": false,
275
256
  "attribute": "client-styling-url",
276
257
  "reflect": true,
277
258
  "defaultValue": "''"
@@ -295,9 +276,7 @@ export class CasinoEngagementSuiteChallengesDetails {
295
276
  "docs": {
296
277
  "tags": [],
297
278
  "text": "Selected challenge"
298
- },
299
- "getter": false,
300
- "setter": false
279
+ }
301
280
  },
302
281
  "inProgressChallenges": {
303
282
  "type": "unknown",
@@ -317,9 +296,7 @@ export class CasinoEngagementSuiteChallengesDetails {
317
296
  "docs": {
318
297
  "tags": [],
319
298
  "text": "Active challenges"
320
- },
321
- "getter": false,
322
- "setter": false
299
+ }
323
300
  },
324
301
  "language": {
325
302
  "type": "string",
@@ -335,8 +312,6 @@ export class CasinoEngagementSuiteChallengesDetails {
335
312
  "tags": [],
336
313
  "text": "Language of the widget"
337
314
  },
338
- "getter": false,
339
- "setter": false,
340
315
  "attribute": "language",
341
316
  "reflect": false,
342
317
  "defaultValue": "'en'"
@@ -355,8 +330,6 @@ export class CasinoEngagementSuiteChallengesDetails {
355
330
  "tags": [],
356
331
  "text": "Current game slug"
357
332
  },
358
- "getter": false,
359
- "setter": false,
360
333
  "attribute": "game-slug",
361
334
  "reflect": false,
362
335
  "defaultValue": "''"
@@ -375,8 +348,6 @@ export class CasinoEngagementSuiteChallengesDetails {
375
348
  "tags": [],
376
349
  "text": "User's device type"
377
350
  },
378
- "getter": false,
379
- "setter": false,
380
351
  "attribute": "device",
381
352
  "reflect": false,
382
353
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -395,8 +366,6 @@ export class CasinoEngagementSuiteChallengesDetails {
395
366
  "tags": [],
396
367
  "text": "Is joining to challenge"
397
368
  },
398
- "getter": false,
399
- "setter": false,
400
369
  "attribute": "is-joining-to-challenge",
401
370
  "reflect": false
402
371
  },
@@ -414,8 +383,6 @@ export class CasinoEngagementSuiteChallengesDetails {
414
383
  "tags": [],
415
384
  "text": "Paused Challenge Ids"
416
385
  },
417
- "getter": false,
418
- "setter": false,
419
386
  "defaultValue": "[] as Array<string>"
420
387
  }
421
388
  };
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-aeeed9d1.js';
2
- export { s as setNonce } from './index-aeeed9d1.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-483d521d.js';
2
+ export { s as setNonce } from './index-483d521d.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;