@everymatrix/casino-engagement-suite-challenges-list 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-list/casino-engagement-suite-challenges-list.esm.js +1 -1
  2. package/dist/casino-engagement-suite-challenges-list/p-80282e46.entry.js +1 -0
  3. package/dist/casino-engagement-suite-challenges-list/p-ce3e6c64.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-fde7f5ee.js} +71 -206
  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-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-9061ff5d.js} +71 -206
  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/dist/types/components/casino-engagement-suite-challenges-list/casino-engagement-suite-challenges-list.d.ts +3 -3
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/package.json +1 -1
  19. package/dist/casino-engagement-suite-challenges-list/p-12c1c66d.js +0 -2
  20. package/dist/casino-engagement-suite-challenges-list/p-190b420d.entry.js +0 -1
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.stencil/packages/stencil/casino-engagement-suite-challenges-list/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-challenges-list/.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-list/.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-list/.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-list/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-challenges-list';
2
- const BUILD = /* casino-engagement-suite-challenges-list */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, 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 };
2
+ const BUILD = /* casino-engagement-suite-challenges-list */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/client/client-host-ref.ts
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -155,6 +144,12 @@ var flush = () => {
155
144
  };
156
145
  var nextTick = (cb) => promiseResolve().then(cb);
157
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+
151
+ // src/utils/helpers.ts
152
+ var isDef = (v) => v != null;
158
153
  var isComplexType = (o) => {
159
154
  o = typeof o;
160
155
  return o === "object" || o === "function";
@@ -358,40 +353,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
353
  }
359
354
  if (!appliedStyles.has(scopeId2)) {
360
355
  {
361
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
356
+ styleElm = doc.createElement("style");
362
357
  styleElm.innerHTML = style;
363
358
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
364
359
  if (nonce != null) {
365
360
  styleElm.setAttribute("nonce", nonce);
366
361
  }
367
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
368
- if (styleContainerNode.nodeName === "HEAD") {
369
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
370
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
371
- styleContainerNode.insertBefore(
372
- styleElm,
373
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
- );
375
- } else if ("host" in styleContainerNode) {
376
- if (supportsConstructableStylesheets) {
377
- const stylesheet = new CSSStyleSheet();
378
- stylesheet.replaceSync(style);
379
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
380
- } else {
381
- const existingStyleContainer = styleContainerNode.querySelector("style");
382
- if (existingStyleContainer) {
383
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
384
- } else {
385
- styleContainerNode.prepend(styleElm);
386
- }
387
- }
388
- } else {
389
- styleContainerNode.append(styleElm);
390
- }
391
- }
392
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
393
- styleContainerNode.insertBefore(styleElm, null);
394
- }
362
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
395
363
  }
396
364
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
397
365
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -414,25 +382,23 @@ var attachStyles = (hostRef) => {
414
382
  const scopeId2 = addStyle(
415
383
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
416
384
  cmpMeta);
417
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
385
+ if (flags & 10 /* needsScopedEncapsulation */) {
418
386
  elm["s-sc"] = scopeId2;
419
387
  elm.classList.add(scopeId2 + "-h");
420
388
  }
421
389
  endAttachStyles();
422
390
  };
423
391
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
424
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
392
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
425
393
  if (oldValue !== newValue) {
426
394
  let isProp = isMemberInElement(elm, memberName);
427
395
  let ln = memberName.toLowerCase();
428
396
  if (memberName === "class") {
429
397
  const classList = elm.classList;
430
398
  const oldClasses = parseClassList(oldValue);
431
- let newClasses = parseClassList(newValue);
432
- {
433
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
- }
399
+ const newClasses = parseClassList(newValue);
400
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
401
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
436
402
  } else if (memberName === "style") {
437
403
  {
438
404
  for (const prop in oldValue) {
@@ -481,13 +447,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
481
447
  if (memberName === "list") {
482
448
  isProp = false;
483
449
  } else if (oldValue == null || elm[memberName] != n) {
484
- if (typeof elm.__lookupSetter__(memberName) === "function") {
485
- elm[memberName] = n;
486
- } else {
487
- elm.setAttribute(memberName, n);
488
- }
450
+ elm[memberName] = n;
489
451
  }
490
- } else if (elm[memberName] !== newValue) {
452
+ } else {
491
453
  elm[memberName] = newValue;
492
454
  }
493
455
  } catch (e) {
@@ -509,44 +471,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
509
471
  }
510
472
  };
511
473
  var parseClassListRegex = /\s/;
512
- var parseClassList = (value) => {
513
- if (typeof value === "object" && value && "baseVal" in value) {
514
- value = value.baseVal;
515
- }
516
- if (!value || typeof value !== "string") {
517
- return [];
518
- }
519
- return value.split(parseClassListRegex);
520
- };
474
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
521
475
  var CAPTURE_EVENT_SUFFIX = "Capture";
522
476
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
523
477
 
524
478
  // src/runtime/vdom/update-element.ts
525
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
479
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
526
480
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
527
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
528
- const newVnodeAttrs = newVnode.$attrs$ || {};
481
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
482
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
529
483
  {
530
484
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
531
485
  if (!(memberName in newVnodeAttrs)) {
532
- setAccessor(
533
- elm,
534
- memberName,
535
- oldVnodeAttrs[memberName],
536
- void 0,
537
- isSvgMode2,
538
- newVnode.$flags$);
486
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
539
487
  }
540
488
  }
541
489
  }
542
490
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
543
- setAccessor(
544
- elm,
545
- memberName,
546
- oldVnodeAttrs[memberName],
547
- newVnodeAttrs[memberName],
548
- isSvgMode2,
549
- newVnode.$flags$);
491
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
550
492
  }
551
493
  };
552
494
  function sortedAttrNames(attrNames) {
@@ -558,10 +500,13 @@ function sortedAttrNames(attrNames) {
558
500
  attrNames
559
501
  );
560
502
  }
503
+
504
+ // src/runtime/vdom/vdom-render.ts
505
+ var scopeId;
561
506
  var hostTagName;
562
507
  var useNativeShadowDom = false;
563
508
  var isSvgMode = false;
564
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
509
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
565
510
  const newVNode2 = newParentVNode.$children$[childIndex];
566
511
  let i2 = 0;
567
512
  let elm;
@@ -575,6 +520,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
575
520
  {
576
521
  updateElement(null, newVNode2, isSvgMode);
577
522
  }
523
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
524
+ elm.classList.add(elm["s-si"] = scopeId);
525
+ }
578
526
  if (newVNode2.$children$) {
579
527
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
580
528
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -703,9 +651,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
703
651
  if (!isInitialRender) {
704
652
  return leftVNode.$key$ === rightVNode.$key$;
705
653
  }
706
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
707
- leftVNode.$key$ = rightVNode.$key$;
708
- }
709
654
  return true;
710
655
  }
711
656
  return false;
@@ -729,10 +674,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
729
674
  elm.textContent = "";
730
675
  }
731
676
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
732
- } else if (
733
- // don't do this on initial render as it can cause non-hydrated content to be removed
734
- !isInitialRender && BUILD.updatable && oldChildren !== null
735
- ) {
677
+ } else if (oldChildren !== null) {
736
678
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
737
679
  }
738
680
  } else if (oldVNode.$text$ !== text) {
@@ -740,9 +682,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
740
682
  }
741
683
  };
742
684
  var insertBefore = (parent, newNode, reference) => {
743
- {
744
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
745
- }
685
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
686
+ return inserted;
746
687
  };
747
688
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
748
689
  const hostElm = hostRef.$hostElement$;
@@ -767,21 +708,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
767
708
  rootVnode.$flags$ |= 4 /* isHost */;
768
709
  hostRef.$vnode$ = rootVnode;
769
710
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
770
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
711
+ {
712
+ scopeId = hostElm["s-sc"];
713
+ }
714
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
771
715
  patch(oldVNode, rootVnode, isInitialLoad);
772
716
  };
773
717
 
774
718
  // src/runtime/update-component.ts
775
719
  var attachToAncestor = (hostRef, ancestorComponent) => {
776
720
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
777
- const index = ancestorComponent["s-p"].push(
778
- new Promise(
779
- (r) => hostRef.$onRenderResolve$ = () => {
780
- ancestorComponent["s-p"].splice(index - 1, 1);
781
- r();
782
- }
783
- )
784
- );
721
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
785
722
  }
786
723
  };
787
724
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -810,12 +747,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
810
747
  {
811
748
  hostRef.$flags$ |= 256 /* isListenReady */;
812
749
  if (hostRef.$queuedListeners$) {
813
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
750
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
814
751
  hostRef.$queuedListeners$ = void 0;
815
752
  }
816
753
  }
817
754
  {
818
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
755
+ maybePromise = safeCall(instance, "componentWillLoad");
819
756
  }
820
757
  }
821
758
  endSchedule();
@@ -884,7 +821,7 @@ var postUpdateComponent = (hostRef) => {
884
821
  const instance = hostRef.$lazyInstance$ ;
885
822
  const ancestorComponent = hostRef.$ancestorComponent$;
886
823
  {
887
- safeCall(instance, "componentDidRender", void 0, elm);
824
+ safeCall(instance, "componentDidRender");
888
825
  }
889
826
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
890
827
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -913,14 +850,17 @@ var postUpdateComponent = (hostRef) => {
913
850
  }
914
851
  };
915
852
  var appDidLoad = (who) => {
853
+ {
854
+ addHydratedFlag(doc.documentElement);
855
+ }
916
856
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
917
857
  };
918
- var safeCall = (instance, method, arg, elm) => {
858
+ var safeCall = (instance, method, arg) => {
919
859
  if (instance && instance[method]) {
920
860
  try {
921
861
  return instance[method](arg);
922
862
  } catch (e) {
923
- consoleError(e, elm);
863
+ consoleError(e);
924
864
  }
925
865
  }
926
866
  return void 0;
@@ -979,68 +919,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
979
919
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
980
920
  members.map(([memberName, [memberFlags]]) => {
981
921
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
982
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
983
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
984
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
985
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
986
- Object.defineProperty(prototype, memberName, {
987
- get() {
988
- {
989
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
990
- return getValue(this, memberName);
991
- }
992
- const ref = getHostRef(this);
993
- const instance = ref ? ref.$lazyInstance$ : prototype;
994
- if (!instance) return;
995
- return instance[memberName];
996
- }
997
- },
998
- configurable: true,
999
- enumerable: true
1000
- });
1001
- }
1002
922
  Object.defineProperty(prototype, memberName, {
923
+ get() {
924
+ return getValue(this, memberName);
925
+ },
1003
926
  set(newValue) {
1004
- const ref = getHostRef(this);
1005
- if (origSetter) {
1006
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1007
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1008
- newValue = ref.$instanceValues$.get(memberName);
1009
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1010
- ref.$instanceValues$.set(memberName, currentValue);
1011
- }
1012
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1013
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1014
- setValue(this, memberName, newValue, cmpMeta);
1015
- return;
1016
- }
1017
- {
1018
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1019
- setValue(this, memberName, newValue, cmpMeta);
1020
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1021
- ref.$onReadyPromise$.then(() => {
1022
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1023
- ref.$lazyInstance$[memberName] = newValue;
1024
- }
1025
- });
1026
- }
1027
- return;
1028
- }
1029
- const setterSetVal = () => {
1030
- const currentValue = ref.$lazyInstance$[memberName];
1031
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1032
- ref.$instanceValues$.set(memberName, currentValue);
1033
- }
1034
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1035
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1036
- };
1037
- if (ref.$lazyInstance$) {
1038
- setterSetVal();
1039
- } else {
1040
- ref.$onReadyPromise$.then(() => setterSetVal());
1041
- }
1042
- }
1043
- }
927
+ setValue(this, memberName, newValue, cmpMeta);
928
+ },
929
+ configurable: true,
930
+ enumerable: true
1044
931
  });
1045
932
  }
1046
933
  });
@@ -1050,11 +937,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1050
937
  plt.jmp(() => {
1051
938
  var _a2;
1052
939
  const propName = attrNameToPropName.get(attrName);
1053
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
940
+ if (this.hasOwnProperty(propName)) {
1054
941
  newValue = this[propName];
1055
942
  delete this[propName];
1056
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1057
- this[propName] == newValue) {
943
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1058
944
  return;
1059
945
  } else if (propName == null) {
1060
946
  const hostRef = getHostRef(this);
@@ -1070,11 +956,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1070
956
  }
1071
957
  return;
1072
958
  }
1073
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1074
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1075
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1076
- this[propName] = newValue;
1077
- }
959
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1078
960
  });
1079
961
  };
1080
962
  Cstr.observedAttributes = Array.from(
@@ -1103,7 +985,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1103
985
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1104
986
  const bundleId = cmpMeta.$lazyBundleId$;
1105
987
  if (bundleId) {
1106
- const CstrImport = loadModule(cmpMeta, hostRef);
988
+ const CstrImport = loadModule(cmpMeta);
1107
989
  if (CstrImport && "then" in CstrImport) {
1108
990
  const endLoad = uniqueTime();
1109
991
  Cstr = await CstrImport;
@@ -1128,7 +1010,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1128
1010
  try {
1129
1011
  new Cstr(hostRef);
1130
1012
  } catch (e) {
1131
- consoleError(e, elm);
1013
+ consoleError(e);
1132
1014
  }
1133
1015
  {
1134
1016
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1163,7 +1045,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1163
1045
  schedule();
1164
1046
  }
1165
1047
  };
1166
- var fireConnectedCallback = (instance, elm) => {
1048
+ var fireConnectedCallback = (instance) => {
1167
1049
  };
1168
1050
 
1169
1051
  // src/runtime/connected-callback.ts
@@ -1204,9 +1086,9 @@ var connectedCallback = (elm) => {
1204
1086
  endConnected();
1205
1087
  }
1206
1088
  };
1207
- var disconnectInstance = (instance, elm) => {
1089
+ var disconnectInstance = (instance) => {
1208
1090
  {
1209
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1091
+ safeCall(instance, "disconnectedCallback");
1210
1092
  }
1211
1093
  };
1212
1094
  var disconnectedCallback = async (elm) => {
@@ -1219,17 +1101,11 @@ var disconnectedCallback = async (elm) => {
1219
1101
  }
1220
1102
  }
1221
1103
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1222
- disconnectInstance(hostRef.$lazyInstance$, elm);
1104
+ disconnectInstance(hostRef.$lazyInstance$);
1223
1105
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1224
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1106
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1225
1107
  }
1226
1108
  }
1227
- if (rootAppliedStyles.has(elm)) {
1228
- rootAppliedStyles.delete(elm);
1229
- }
1230
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1231
- rootAppliedStyles.delete(elm.shadowRoot);
1232
- }
1233
1109
  };
1234
1110
 
1235
1111
  // src/runtime/bootstrap-lazy.ts
@@ -1314,17 +1190,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1314
1190
  }
1315
1191
  disconnectedCallback() {
1316
1192
  plt.jmp(() => disconnectedCallback(this));
1317
- plt.raf(() => {
1318
- var _a3;
1319
- const hostRef = getHostRef(this);
1320
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1321
- if (i2 > -1) {
1322
- deferredConnectedCallbacks.splice(i2, 1);
1323
- }
1324
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1325
- delete hostRef.$vnode$.$elm$;
1326
- }
1327
- });
1328
1193
  }
1329
1194
  componentOnReady() {
1330
1195
  return getHostRef(this).$onReadyPromise$;
@@ -1388,7 +1253,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1388
1253
  }
1389
1254
  }
1390
1255
  } catch (e) {
1391
- consoleError(e, hostRef.$hostElement$);
1256
+ consoleError(e);
1392
1257
  }
1393
1258
  };
1394
1259
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-61dbba4e.js';
2
- export { s as setNonce } from './index-61dbba4e.js';
1
+ import { b as bootstrapLazy } from './index-9061ff5d.js';
2
+ export { s as setNonce } from './index-9061ff5d.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -21,7 +21,7 @@ export declare class CasinoEngagementSuiteChallengesList {
21
21
  /**
22
22
  * List of challenges
23
23
  */
24
- challenges: Array<Challenge>;
24
+ challenges: Challenge[];
25
25
  /**
26
26
  *Is joining to challenge
27
27
  */
@@ -33,7 +33,7 @@ export declare class CasinoEngagementSuiteChallengesList {
33
33
  /**
34
34
  *Paused Challenge Ids
35
35
  */
36
- pausedChallengeIds: Array<string>;
36
+ pausedChallengeIds: string[];
37
37
  close: EventEmitter<void>;
38
38
  resetNewChallengeLabel: EventEmitter<string>;
39
39
  tooltip: boolean;
@@ -42,7 +42,7 @@ export declare class CasinoEngagementSuiteChallengesList {
42
42
  activeTab: number;
43
43
  historyLoading: boolean;
44
44
  challengesHistory: Array<ChallengeHistory>;
45
- openedHistoryIds: Array<string>;
45
+ openedHistoryIds: string[];
46
46
  host: HTMLElement;
47
47
  handleEvent(e: any): void;
48
48
  challengesPropHandler(value: Array<Challenge>): void;
@@ -1015,8 +1015,6 @@ export declare namespace JSXBase {
1015
1015
  autoPlay?: boolean;
1016
1016
  autoplay?: boolean | string;
1017
1017
  controls?: boolean;
1018
- controlslist?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1019
- controlsList?: 'nodownload' | 'nofullscreen' | 'noremoteplayback';
1020
1018
  crossOrigin?: string;
1021
1019
  crossorigin?: string;
1022
1020
  loop?: boolean;
@@ -1566,10 +1564,6 @@ export declare namespace JSXBase {
1566
1564
  onSubmitCapture?: (event: Event) => void;
1567
1565
  onInvalid?: (event: Event) => void;
1568
1566
  onInvalidCapture?: (event: Event) => void;
1569
- onBeforeToggle?: (event: Event) => void;
1570
- onBeforeToggleCapture?: (event: Event) => void;
1571
- onToggle?: (event: Event) => void;
1572
- onToggleCapture?: (event: Event) => void;
1573
1567
  onLoad?: (event: Event) => void;
1574
1568
  onLoadCapture?: (event: Event) => void;
1575
1569
  onError?: (event: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-challenges-list",
3
- "version": "1.56.0",
3
+ "version": "1.56.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>{t.set(n.t=e,n)},o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?w($):f.raf($))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{b(m),b(y),(p=m.length>0)&&f.raf($)},w=e=>h().then(e),g=v(y,!0),S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!S(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?R(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},N=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,T=e=>n(e).$hostElement$,D=(e,t,n)=>{const l=T(e);return{emit:e=>F(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},F=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},H=new WeakMap,L=e=>"sc-"+e.$,U=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=V(n);let s=V(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,V=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(W):[]),q="Capture",G=RegExp(q+"$"),_=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||{},s=t.u||{};for(const e of z(Object.keys(o)))e in s||U(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))U(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.m),_(null,l,I),l.h)for(i=0;i<l.h.length;++i)s=J(e,l,i),s&&o.appendChild(s);return o["s-hn"]=C,o},K=(e,t,n,l,o,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=J(null,n,o),i&&(l[o].v=i,Z(r,i,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),Y=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(X(h,m,o))Y(h,m,o),h=t[++r],m=l[++c];else if(X(d,y,o))Y(d,y,o),d=t[--f],y=l[--p];else if(X(h,y,o))Y(h,y,o),Z(e,h.v,d.v.nextSibling),h=t[++r],y=l[--p];else if(X(d,m,o))Y(d,m,o),Z(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=J(t&&t[c],n,u):(Y(i,m,o),t[u]=void 0,s=i.v),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&Z(h.v.parentNode,s,h.v)}r>f?K(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&Q(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):!n&&null!==o&&Q(o,0,o.length-1)):e.i!==i&&(l.data=i)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((l=>e.S=()=>{t["s-p"].splice(n-1,1),l()})))}},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.$hostElement$,l=e.t;if(!l)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(l,e,t,n))),e.k=void 0),o=ue(l,"componentWillLoad",void 0,n)),le(o,(()=>se(e,l,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=L(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=H.get(e=e.head||e);if(i||H.set(e,i=new Set),!i.has(l)){{s=document.querySelector(`[sty-id="${l}"]`)||a.createElement("style"),s.innerHTML=o;const i=null!=(n=f.C)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&l&&2&l||128&l)&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||R(null,null),i=(e=>e&&e.m===A)(t)?t:P(null,null,t);if(C=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.v=s.v=l.shadowRoot||l,B=!(!(1&o.l)||128&o.l),Y(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ue(e.t,"componentDidRender",void 0,t),64&e.l||(e.l|=64,ae(t),e.R(t),n||ce()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>te(e,!1))),e.l&=-517},ce=()=>{w((()=>F(u,"appload",{detail:{namespace:"casino-engagement-suite-challenges-list"}})))},ue=(e,t,n,l)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,l)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.A.get(t),u=i.l,a=i.t;if(l=N(l,o.N[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&te(i,!1)}},he=(e,t,l)=>{var o,s;const i=e.prototype;if(t.N||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const r=Object.entries(null!=(o=t.N)?o:{});if(r.map((([e,[o]])=>{if(31&o||2&l&&32&o){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.N[e][0]|=2048),r&&(t.N[e][0]|=4096),(1&l||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.N[e][0]))return((e,t)=>n(this).A.get(t))(0,e);const l=n(this),o=l?l.t:i;if(!o)return;return o[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&o?this[e]:i.$hostElement$[e];return void 0===n&&i.A.get(e)?s=i.A.get(e):!i.A.get(e)&&n&&i.A.set(e,n),r.call(this,N(s,o)),void fe(this,e,s=32&o?this[e]:i.$hostElement$[e],t)}{if(!(1&l&&4096&t.N[e][0]))return fe(this,e,s,t),void(1&l&&!i.t&&i.D.then((()=>{4096&t.N[e][0]&&i.t[e]!==i.A.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.A.get(e)&&n&&i.A.set(e,n),i.t[e]=N(s,o),fe(this,e,i.t[e],t)};i.t?n():i.D.then((()=>n()))}}})}})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},de=(e,t)=>{ue(e,"disconnectedCallback",void 0,t||e)},pe=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let w,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],N:l[2],F:l[3]};4&c.l&&(S=!0),c.N=l[2],c.F=l[3],c.P=[],c.T=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.D=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.F)),w&&(clearTimeout(w),w=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.F),(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.N&&Object.entries(l.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.H){const o=((e,t)=>{const n=e.$.replace(/-/g,"_"),l=e.H;if(!l)return;const o=i.get(l);return o?o[n]:import(`./${l}.entry.js`).then((e=>(i.set(l,e),e[n])),(e=>{s(e,t.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(o&&"then"in o){const e=()=>{};l=await o,e()}else l=o;if(!l)throw Error(`Constructor for "${n.$}#${t.L}" was not found`);l.isProxied||(n.T=l.watchers,he(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(t){s(t,e)}t.l&=-9,t.l|=128,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=L(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.l)){const t=n(e);t.U&&(t.U.map((e=>e())),t.U=void 0),(null==t?void 0:t.t)?de(t.t,e):(null==t?void 0:t.D)&&t.D.then((()=>de(t.t,e)))}H.has(e)&&H.delete(e),e.shadowRoot&&H.has(e.shadowRoot)&&H.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this),l=$.findIndex((e=>e===this));l>-1&&$.splice(l,1),(null==(e=null==t?void 0:t.M)?void 0:e.v)instanceof Node&&!t.M.v.isConnected&&delete t.M.v}))}componentOnReady(){return n(this).D}};c.H=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,he(a,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.C)?o:j(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ce,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ve(e,n),i=ye(t,o),r=be(n);f.ael(s,l,i,r),(t.U=t.U||[]).push((()=>f.rel(s,l,i,r)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(t){s(t,e.$hostElement$)}},ve=(e,t)=>8&t?u:e,be=e=>({passive:!!(1&e),capture:!!(2&e)}),$e=e=>f.C=e;export{pe as b,D as c,T as g,P as h,h as p,l as r,$e as s}