@everymatrix/casino-engagement-suite-challenges-details 1.56.0 → 1.56.3

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 (26) 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-a1f5b24d.entry.js +1 -0
  3. package/dist/casino-engagement-suite-challenges-details/p-c9e23f39.js +2 -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-581fee68.js} +69 -204
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  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-5ca12e73.js} +69 -204
  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/dist/types/components/casino-engagement-suite-challenges-details/casino-engagement-suite-challenges-details.d.ts +1 -1
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/package.json +1 -1
  19. package/dist/casino-engagement-suite-challenges-details/p-3a67b441.js +0 -2
  20. package/dist/casino-engagement-suite-challenges-details/p-cadab9e8.entry.js +0 -1
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/packages/stencil/casino-engagement-suite-challenges-details/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-details/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → 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.19.2 | 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,40 +359,13 @@ 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) {
371
366
  styleElm.setAttribute("nonce", nonce);
372
367
  }
373
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
374
- if (styleContainerNode.nodeName === "HEAD") {
375
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
376
- 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
- );
381
- } else if ("host" in styleContainerNode) {
382
- if (supportsConstructableStylesheets) {
383
- const stylesheet = new CSSStyleSheet();
384
- stylesheet.replaceSync(style);
385
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
386
- } else {
387
- const existingStyleContainer = styleContainerNode.querySelector("style");
388
- if (existingStyleContainer) {
389
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
390
- } else {
391
- styleContainerNode.prepend(styleElm);
392
- }
393
- }
394
- } else {
395
- styleContainerNode.append(styleElm);
396
- }
397
- }
398
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
399
- styleContainerNode.insertBefore(styleElm, null);
400
- }
368
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
401
369
  }
402
370
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
403
371
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -420,25 +388,23 @@ var attachStyles = (hostRef) => {
420
388
  const scopeId2 = addStyle(
421
389
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
422
390
  cmpMeta);
423
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
391
+ if (flags & 10 /* needsScopedEncapsulation */) {
424
392
  elm["s-sc"] = scopeId2;
425
393
  elm.classList.add(scopeId2 + "-h");
426
394
  }
427
395
  endAttachStyles();
428
396
  };
429
397
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
430
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
398
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
431
399
  if (oldValue !== newValue) {
432
400
  let isProp = isMemberInElement(elm, memberName);
433
401
  let ln = memberName.toLowerCase();
434
402
  if (memberName === "class") {
435
403
  const classList = elm.classList;
436
404
  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
- }
405
+ const newClasses = parseClassList(newValue);
406
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
407
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
442
408
  } else if (memberName === "style") {
443
409
  {
444
410
  for (const prop in oldValue) {
@@ -487,13 +453,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
487
453
  if (memberName === "list") {
488
454
  isProp = false;
489
455
  } else if (oldValue == null || elm[memberName] != n) {
490
- if (typeof elm.__lookupSetter__(memberName) === "function") {
491
- elm[memberName] = n;
492
- } else {
493
- elm.setAttribute(memberName, n);
494
- }
456
+ elm[memberName] = n;
495
457
  }
496
- } else if (elm[memberName] !== newValue) {
458
+ } else {
497
459
  elm[memberName] = newValue;
498
460
  }
499
461
  } catch (e) {
@@ -515,44 +477,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
515
477
  }
516
478
  };
517
479
  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
- };
480
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
527
481
  var CAPTURE_EVENT_SUFFIX = "Capture";
528
482
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
529
483
 
530
484
  // src/runtime/vdom/update-element.ts
531
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
485
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
532
486
  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$ || {};
487
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
488
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
535
489
  {
536
490
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
537
491
  if (!(memberName in newVnodeAttrs)) {
538
- setAccessor(
539
- elm,
540
- memberName,
541
- oldVnodeAttrs[memberName],
542
- void 0,
543
- isSvgMode2,
544
- newVnode.$flags$);
492
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
545
493
  }
546
494
  }
547
495
  }
548
496
  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$);
497
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
556
498
  }
557
499
  };
558
500
  function sortedAttrNames(attrNames) {
@@ -564,10 +506,13 @@ function sortedAttrNames(attrNames) {
564
506
  attrNames
565
507
  );
566
508
  }
509
+
510
+ // src/runtime/vdom/vdom-render.ts
511
+ var scopeId;
567
512
  var hostTagName;
568
513
  var useNativeShadowDom = false;
569
514
  var isSvgMode = false;
570
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
515
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
571
516
  const newVNode2 = newParentVNode.$children$[childIndex];
572
517
  let i2 = 0;
573
518
  let elm;
@@ -581,6 +526,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
581
526
  {
582
527
  updateElement(null, newVNode2, isSvgMode);
583
528
  }
529
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
530
+ elm.classList.add(elm["s-si"] = scopeId);
531
+ }
584
532
  if (newVNode2.$children$) {
585
533
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
586
534
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -709,9 +657,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
709
657
  if (!isInitialRender) {
710
658
  return leftVNode.$key$ === rightVNode.$key$;
711
659
  }
712
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
713
- leftVNode.$key$ = rightVNode.$key$;
714
- }
715
660
  return true;
716
661
  }
717
662
  return false;
@@ -735,10 +680,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
735
680
  elm.textContent = "";
736
681
  }
737
682
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
738
- } else if (
739
- // don't do this on initial render as it can cause non-hydrated content to be removed
740
- !isInitialRender && BUILD.updatable && oldChildren !== null
741
- ) {
683
+ } else if (oldChildren !== null) {
742
684
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
743
685
  }
744
686
  } else if (oldVNode.$text$ !== text) {
@@ -746,9 +688,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
746
688
  }
747
689
  };
748
690
  var insertBefore = (parent, newNode, reference) => {
749
- {
750
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
751
- }
691
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
692
+ return inserted;
752
693
  };
753
694
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
754
695
  const hostElm = hostRef.$hostElement$;
@@ -773,21 +714,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
773
714
  rootVnode.$flags$ |= 4 /* isHost */;
774
715
  hostRef.$vnode$ = rootVnode;
775
716
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
776
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
717
+ {
718
+ scopeId = hostElm["s-sc"];
719
+ }
720
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
777
721
  patch(oldVNode, rootVnode, isInitialLoad);
778
722
  };
779
723
 
780
724
  // src/runtime/update-component.ts
781
725
  var attachToAncestor = (hostRef, ancestorComponent) => {
782
726
  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
- );
727
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
791
728
  }
792
729
  };
793
730
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -814,7 +751,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
814
751
  let maybePromise;
815
752
  if (isInitialLoad) {
816
753
  {
817
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
754
+ maybePromise = safeCall(instance, "componentWillLoad");
818
755
  }
819
756
  }
820
757
  endSchedule();
@@ -883,7 +820,7 @@ var postUpdateComponent = (hostRef) => {
883
820
  const instance = hostRef.$lazyInstance$ ;
884
821
  const ancestorComponent = hostRef.$ancestorComponent$;
885
822
  {
886
- safeCall(instance, "componentDidRender", void 0, elm);
823
+ safeCall(instance, "componentDidRender");
887
824
  }
888
825
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
889
826
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -912,14 +849,17 @@ var postUpdateComponent = (hostRef) => {
912
849
  }
913
850
  };
914
851
  var appDidLoad = (who) => {
852
+ {
853
+ addHydratedFlag(doc.documentElement);
854
+ }
915
855
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
916
856
  };
917
- var safeCall = (instance, method, arg, elm) => {
857
+ var safeCall = (instance, method, arg) => {
918
858
  if (instance && instance[method]) {
919
859
  try {
920
860
  return instance[method](arg);
921
861
  } catch (e) {
922
- consoleError(e, elm);
862
+ consoleError(e);
923
863
  }
924
864
  }
925
865
  return void 0;
@@ -978,68 +918,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
978
918
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
979
919
  members.map(([memberName, [memberFlags]]) => {
980
920
  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
921
  Object.defineProperty(prototype, memberName, {
922
+ get() {
923
+ return getValue(this, memberName);
924
+ },
1002
925
  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
- }
926
+ setValue(this, memberName, newValue, cmpMeta);
927
+ },
928
+ configurable: true,
929
+ enumerable: true
1043
930
  });
1044
931
  }
1045
932
  });
@@ -1049,11 +936,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1049
936
  plt.jmp(() => {
1050
937
  var _a2;
1051
938
  const propName = attrNameToPropName.get(attrName);
1052
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
939
+ if (this.hasOwnProperty(propName)) {
1053
940
  newValue = this[propName];
1054
941
  delete this[propName];
1055
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1056
- this[propName] == newValue) {
942
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1057
943
  return;
1058
944
  } else if (propName == null) {
1059
945
  const hostRef = getHostRef(this);
@@ -1069,11 +955,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1069
955
  }
1070
956
  return;
1071
957
  }
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
- }
958
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1077
959
  });
1078
960
  };
1079
961
  Cstr.observedAttributes = Array.from(
@@ -1102,7 +984,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1102
984
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1103
985
  const bundleId = cmpMeta.$lazyBundleId$;
1104
986
  if (bundleId) {
1105
- const CstrImport = loadModule(cmpMeta, hostRef);
987
+ const CstrImport = loadModule(cmpMeta);
1106
988
  if (CstrImport && "then" in CstrImport) {
1107
989
  const endLoad = uniqueTime();
1108
990
  Cstr = await CstrImport;
@@ -1127,7 +1009,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1127
1009
  try {
1128
1010
  new Cstr(hostRef);
1129
1011
  } catch (e) {
1130
- consoleError(e, elm);
1012
+ consoleError(e);
1131
1013
  }
1132
1014
  {
1133
1015
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1162,7 +1044,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1162
1044
  schedule();
1163
1045
  }
1164
1046
  };
1165
- var fireConnectedCallback = (instance, elm) => {
1047
+ var fireConnectedCallback = (instance) => {
1166
1048
  };
1167
1049
 
1168
1050
  // src/runtime/connected-callback.ts
@@ -1202,26 +1084,20 @@ var connectedCallback = (elm) => {
1202
1084
  endConnected();
1203
1085
  }
1204
1086
  };
1205
- var disconnectInstance = (instance, elm) => {
1087
+ var disconnectInstance = (instance) => {
1206
1088
  {
1207
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1089
+ safeCall(instance, "disconnectedCallback");
1208
1090
  }
1209
1091
  };
1210
1092
  var disconnectedCallback = async (elm) => {
1211
1093
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1212
1094
  const hostRef = getHostRef(elm);
1213
1095
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1214
- disconnectInstance(hostRef.$lazyInstance$, elm);
1096
+ disconnectInstance(hostRef.$lazyInstance$);
1215
1097
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1216
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1098
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1217
1099
  }
1218
1100
  }
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
1101
  };
1226
1102
 
1227
1103
  // src/runtime/bootstrap-lazy.ts
@@ -1302,17 +1178,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1302
1178
  }
1303
1179
  disconnectedCallback() {
1304
1180
  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
1181
  }
1317
1182
  componentOnReady() {
1318
1183
  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-581fee68.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [
11
11
  {
@@ -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
  };