@everymatrix/casino-engagement-suite-luckywheel 0.0.4 → 0.1.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 (33) hide show
  1. package/dist/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.esm.js +1 -1
  2. package/dist/casino-engagement-suite-luckywheel/index.esm.js +1 -1
  3. package/dist/casino-engagement-suite-luckywheel/p-2afd9927.entry.js +1 -0
  4. package/dist/casino-engagement-suite-luckywheel/p-5da7530f.js +1 -0
  5. package/dist/casino-engagement-suite-luckywheel/p-fc393d1b.js +2 -0
  6. package/dist/cjs/{casino-engagement-suite-luckywheel-cc8d37c2.js → casino-engagement-suite-luckywheel-46532b7a.js} +19 -30
  7. package/dist/cjs/casino-engagement-suite-luckywheel.cjs.entry.js +2 -2
  8. package/dist/cjs/casino-engagement-suite-luckywheel.cjs.js +2 -2
  9. package/dist/cjs/{index-b46604f4.js → index-b8cc2368.js} +70 -173
  10. package/dist/cjs/index.cjs.js +2 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/collection/collection-manifest.json +1 -1
  13. package/dist/collection/components/casino-engagement-suite-luckywheel/casino-engagement-suite-luckywheel.js +19 -44
  14. package/dist/esm/{casino-engagement-suite-luckywheel-cf7e798a.js → casino-engagement-suite-luckywheel-b370bbfe.js} +19 -30
  15. package/dist/esm/casino-engagement-suite-luckywheel.entry.js +2 -2
  16. package/dist/esm/casino-engagement-suite-luckywheel.js +3 -3
  17. package/dist/esm/{index-8ce51859.js → index-0b3806b2.js} +70 -173
  18. package/dist/esm/index.js +2 -2
  19. package/dist/esm/loader.js +2 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +2 -0
  22. package/package.json +1 -1
  23. package/dist/casino-engagement-suite-luckywheel/p-2a6e103b.entry.js +0 -1
  24. package/dist/casino-engagement-suite-luckywheel/p-781c5f2a.js +0 -1
  25. package/dist/casino-engagement-suite-luckywheel/p-eaad80fd.js +0 -2
  26. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.d.ts +0 -2
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/stencil.config.dev.d.ts +0 -2
  28. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/main.d.ts +0 -0
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/packages/stencil/casino-engagement-suite-luckywheel/storybook/preview.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/index.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  33. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-engagement-suite-luckywheel';
24
- const BUILD = /* casino-engagement-suite-luckywheel */ { 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: false, element: false, event: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: false };
24
+ const BUILD = /* casino-engagement-suite-luckywheel */ { 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: false, element: false, event: false, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: false };
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/utils/constants.ts
36
- var SVG_NS = "http://www.w3.org/2000/svg";
37
- var HTML_NS = "http://www.w3.org/1999/xhtml";
38
-
39
- // src/client/client-host-ref.ts
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var XLINK_NS = "http://www.w3.org/1999/xlink";
@@ -182,6 +167,14 @@ var flush = () => {
182
167
  };
183
168
  var nextTick = (cb) => promiseResolve().then(cb);
184
169
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
170
+
171
+ // src/utils/constants.ts
172
+ var EMPTY_OBJ = {};
173
+ var SVG_NS = "http://www.w3.org/2000/svg";
174
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
175
+
176
+ // src/utils/helpers.ts
177
+ var isDef = (v) => v != null;
185
178
  var isComplexType = (o) => {
186
179
  o = typeof o;
187
180
  return o === "object" || o === "function";
@@ -364,7 +357,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
357
  }
365
358
  if (!appliedStyles.has(scopeId2)) {
366
359
  {
367
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
360
+ styleElm = doc.createElement("style");
368
361
  styleElm.innerHTML = style;
369
362
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
370
363
  if (nonce != null) {
@@ -374,10 +367,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
367
  if (styleContainerNode.nodeName === "HEAD") {
375
368
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
376
369
  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
- );
370
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
381
371
  } else if ("host" in styleContainerNode) {
382
372
  if (supportsConstructableStylesheets) {
383
373
  const stylesheet = new CSSStyleSheet();
@@ -395,7 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
395
385
  styleContainerNode.append(styleElm);
396
386
  }
397
387
  }
398
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
388
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
399
389
  styleContainerNode.insertBefore(styleElm, null);
400
390
  }
401
391
  }
@@ -420,25 +410,23 @@ var attachStyles = (hostRef) => {
420
410
  const scopeId2 = addStyle(
421
411
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
422
412
  cmpMeta);
423
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
413
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
424
414
  elm["s-sc"] = scopeId2;
425
415
  elm.classList.add(scopeId2 + "-h");
426
416
  }
427
417
  endAttachStyles();
428
418
  };
429
419
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
430
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
420
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
431
421
  if (oldValue !== newValue) {
432
422
  let isProp = isMemberInElement(elm, memberName);
433
423
  let ln = memberName.toLowerCase();
434
424
  if (memberName === "class") {
435
425
  const classList = elm.classList;
436
426
  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
- }
427
+ const newClasses = parseClassList(newValue);
428
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
429
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
442
430
  } else if (memberName === "style") {
443
431
  {
444
432
  for (const prop in oldValue) {
@@ -497,7 +485,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
497
485
  elm.setAttribute(memberName, n);
498
486
  }
499
487
  }
500
- } else if (elm[memberName] !== newValue) {
488
+ } else {
501
489
  elm[memberName] = newValue;
502
490
  }
503
491
  } catch (e) {
@@ -530,44 +518,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
530
518
  }
531
519
  };
532
520
  var parseClassListRegex = /\s/;
533
- var parseClassList = (value) => {
534
- if (typeof value === "object" && value && "baseVal" in value) {
535
- value = value.baseVal;
536
- }
537
- if (!value || typeof value !== "string") {
538
- return [];
539
- }
540
- return value.split(parseClassListRegex);
541
- };
521
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
542
522
  var CAPTURE_EVENT_SUFFIX = "Capture";
543
523
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
544
524
 
545
525
  // src/runtime/vdom/update-element.ts
546
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
526
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
547
527
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
548
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
549
- const newVnodeAttrs = newVnode.$attrs$ || {};
528
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
529
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
550
530
  {
551
531
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
552
532
  if (!(memberName in newVnodeAttrs)) {
553
- setAccessor(
554
- elm,
555
- memberName,
556
- oldVnodeAttrs[memberName],
557
- void 0,
558
- isSvgMode2,
559
- newVnode.$flags$);
533
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
560
534
  }
561
535
  }
562
536
  }
563
537
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
564
- setAccessor(
565
- elm,
566
- memberName,
567
- oldVnodeAttrs[memberName],
568
- newVnodeAttrs[memberName],
569
- isSvgMode2,
570
- newVnode.$flags$);
538
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
571
539
  }
572
540
  };
573
541
  function sortedAttrNames(attrNames) {
@@ -579,10 +547,13 @@ function sortedAttrNames(attrNames) {
579
547
  attrNames
580
548
  );
581
549
  }
550
+
551
+ // src/runtime/vdom/vdom-render.ts
552
+ var scopeId;
582
553
  var hostTagName;
583
554
  var useNativeShadowDom = false;
584
555
  var isSvgMode = false;
585
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
556
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
586
557
  const newVNode2 = newParentVNode.$children$[childIndex];
587
558
  let i2 = 0;
588
559
  let elm;
@@ -603,6 +574,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
603
574
  {
604
575
  updateElement(null, newVNode2, isSvgMode);
605
576
  }
577
+ const rootNode = elm.getRootNode();
578
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
579
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
580
+ elm.classList.add(elm["s-si"] = scopeId);
581
+ }
606
582
  if (newVNode2.$children$) {
607
583
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
608
584
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -739,9 +715,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
739
715
  if (!isInitialRender) {
740
716
  return leftVNode.$key$ === rightVNode.$key$;
741
717
  }
742
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
743
- leftVNode.$key$ = rightVNode.$key$;
744
- }
745
718
  return true;
746
719
  }
747
720
  return false;
@@ -788,9 +761,8 @@ var nullifyVNodeRefs = (vNode) => {
788
761
  }
789
762
  };
790
763
  var insertBefore = (parent, newNode, reference) => {
791
- {
792
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
793
- }
764
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
765
+ return inserted;
794
766
  };
795
767
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
796
768
  const hostElm = hostRef.$hostElement$;
@@ -815,21 +787,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
815
787
  rootVnode.$flags$ |= 4 /* isHost */;
816
788
  hostRef.$vnode$ = rootVnode;
817
789
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
818
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
790
+ {
791
+ scopeId = hostElm["s-sc"];
792
+ }
793
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
819
794
  patch(oldVNode, rootVnode, isInitialLoad);
820
795
  };
821
796
 
822
797
  // src/runtime/update-component.ts
823
798
  var attachToAncestor = (hostRef, ancestorComponent) => {
824
799
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
825
- const index = ancestorComponent["s-p"].push(
826
- new Promise(
827
- (r) => hostRef.$onRenderResolve$ = () => {
828
- ancestorComponent["s-p"].splice(index - 1, 1);
829
- r();
830
- }
831
- )
832
- );
800
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
833
801
  }
834
802
  };
835
803
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -858,12 +826,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
858
826
  {
859
827
  hostRef.$flags$ |= 256 /* isListenReady */;
860
828
  if (hostRef.$queuedListeners$) {
861
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
829
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
862
830
  hostRef.$queuedListeners$ = void 0;
863
831
  }
864
832
  }
865
833
  {
866
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
834
+ maybePromise = safeCall(instance, "componentWillLoad");
867
835
  }
868
836
  }
869
837
  endSchedule();
@@ -932,7 +900,7 @@ var postUpdateComponent = (hostRef) => {
932
900
  const instance = hostRef.$lazyInstance$ ;
933
901
  const ancestorComponent = hostRef.$ancestorComponent$;
934
902
  {
935
- safeCall(instance, "componentDidRender", void 0, elm);
903
+ safeCall(instance, "componentDidRender");
936
904
  }
937
905
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
938
906
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -961,14 +929,17 @@ var postUpdateComponent = (hostRef) => {
961
929
  }
962
930
  };
963
931
  var appDidLoad = (who) => {
932
+ {
933
+ addHydratedFlag(doc.documentElement);
934
+ }
964
935
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
965
936
  };
966
- var safeCall = (instance, method, arg, elm) => {
937
+ var safeCall = (instance, method, arg) => {
967
938
  if (instance && instance[method]) {
968
939
  try {
969
940
  return instance[method](arg);
970
941
  } catch (e) {
971
- consoleError(e, elm);
942
+ consoleError(e);
972
943
  }
973
944
  }
974
945
  return void 0;
@@ -1011,68 +982,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1011
982
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1012
983
  members.map(([memberName, [memberFlags]]) => {
1013
984
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1014
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1015
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1016
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1017
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1018
- Object.defineProperty(prototype, memberName, {
1019
- get() {
1020
- {
1021
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1022
- return getValue(this, memberName);
1023
- }
1024
- const ref = getHostRef(this);
1025
- const instance = ref ? ref.$lazyInstance$ : prototype;
1026
- if (!instance) return;
1027
- return instance[memberName];
1028
- }
1029
- },
1030
- configurable: true,
1031
- enumerable: true
1032
- });
1033
- }
1034
985
  Object.defineProperty(prototype, memberName, {
986
+ get() {
987
+ return getValue(this, memberName);
988
+ },
1035
989
  set(newValue) {
1036
- const ref = getHostRef(this);
1037
- if (origSetter) {
1038
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1039
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1040
- newValue = ref.$instanceValues$.get(memberName);
1041
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1042
- ref.$instanceValues$.set(memberName, currentValue);
1043
- }
1044
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1045
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1046
- setValue(this, memberName, newValue, cmpMeta);
1047
- return;
1048
- }
1049
- {
1050
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1051
- setValue(this, memberName, newValue, cmpMeta);
1052
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1053
- ref.$onReadyPromise$.then(() => {
1054
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1055
- ref.$lazyInstance$[memberName] = newValue;
1056
- }
1057
- });
1058
- }
1059
- return;
1060
- }
1061
- const setterSetVal = () => {
1062
- const currentValue = ref.$lazyInstance$[memberName];
1063
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1064
- ref.$instanceValues$.set(memberName, currentValue);
1065
- }
1066
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1067
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1068
- };
1069
- if (ref.$lazyInstance$) {
1070
- setterSetVal();
1071
- } else {
1072
- ref.$onReadyPromise$.then(() => setterSetVal());
1073
- }
1074
- }
1075
- }
990
+ setValue(this, memberName, newValue, cmpMeta);
991
+ },
992
+ configurable: true,
993
+ enumerable: true
1076
994
  });
1077
995
  }
1078
996
  });
@@ -1082,7 +1000,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1082
1000
  plt.jmp(() => {
1083
1001
  var _a2;
1084
1002
  const propName = attrNameToPropName.get(attrName);
1085
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1003
+ if (this.hasOwnProperty(propName)) {
1086
1004
  newValue = this[propName];
1087
1005
  delete this[propName];
1088
1006
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1102,11 +1020,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1102
1020
  }
1103
1021
  return;
1104
1022
  }
1105
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1106
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1107
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1108
- this[propName] = newValue;
1109
- }
1023
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1110
1024
  });
1111
1025
  };
1112
1026
  Cstr.observedAttributes = Array.from(
@@ -1135,7 +1049,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1135
1049
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1136
1050
  const bundleId = cmpMeta.$lazyBundleId$;
1137
1051
  if (bundleId) {
1138
- const CstrImport = loadModule(cmpMeta, hostRef);
1052
+ const CstrImport = loadModule(cmpMeta);
1139
1053
  if (CstrImport && "then" in CstrImport) {
1140
1054
  const endLoad = uniqueTime();
1141
1055
  Cstr = await CstrImport;
@@ -1157,7 +1071,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1157
1071
  try {
1158
1072
  new Cstr(hostRef);
1159
1073
  } catch (e) {
1160
- consoleError(e, elm);
1074
+ consoleError(e);
1161
1075
  }
1162
1076
  {
1163
1077
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1189,7 +1103,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1189
1103
  schedule();
1190
1104
  }
1191
1105
  };
1192
- var fireConnectedCallback = (instance, elm) => {
1106
+ var fireConnectedCallback = (instance) => {
1193
1107
  };
1194
1108
 
1195
1109
  // src/runtime/connected-callback.ts
@@ -1230,7 +1144,7 @@ var connectedCallback = (elm) => {
1230
1144
  endConnected();
1231
1145
  }
1232
1146
  };
1233
- var disconnectInstance = (instance, elm) => {
1147
+ var disconnectInstance = (instance) => {
1234
1148
  };
1235
1149
  var disconnectedCallback = async (elm) => {
1236
1150
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1245,12 +1159,6 @@ var disconnectedCallback = async (elm) => {
1245
1159
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1246
1160
  }
1247
1161
  }
1248
- if (rootAppliedStyles.has(elm)) {
1249
- rootAppliedStyles.delete(elm);
1250
- }
1251
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1252
- rootAppliedStyles.delete(elm.shadowRoot);
1253
- }
1254
1162
  };
1255
1163
 
1256
1164
  // src/runtime/bootstrap-lazy.ts
@@ -1331,17 +1239,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1331
1239
  }
1332
1240
  disconnectedCallback() {
1333
1241
  plt.jmp(() => disconnectedCallback(this));
1334
- plt.raf(() => {
1335
- var _a3;
1336
- const hostRef = getHostRef(this);
1337
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1338
- if (i2 > -1) {
1339
- deferredConnectedCallbacks.splice(i2, 1);
1340
- }
1341
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1342
- delete hostRef.$vnode$.$elm$;
1343
- }
1344
- });
1345
1242
  }
1346
1243
  componentOnReady() {
1347
1244
  return getHostRef(this).$onReadyPromise$;
@@ -1405,7 +1302,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1405
1302
  }
1406
1303
  }
1407
1304
  } catch (e) {
1408
- consoleError(e, hostRef.$hostElement$);
1305
+ consoleError(e);
1409
1306
  }
1410
1307
  };
1411
1308
  var getHostListenerTarget = (elm, flags) => {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoEngagementSuiteLuckywheel = require('./casino-engagement-suite-luckywheel-cc8d37c2.js');
6
- require('./index-b46604f4.js');
5
+ const casinoEngagementSuiteLuckywheel = require('./casino-engagement-suite-luckywheel-46532b7a.js');
6
+ require('./index-b8cc2368.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b46604f4.js');
5
+ const index = require('./index-b8cc2368.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": [],
@@ -6,35 +6,6 @@ import { getOptions, isSafari, setProps } from "../../utils/utils";
6
6
  import { Spinner } from "../../utils/class.spinner";
7
7
  export class CasinoEngagementSuiteLuckywheel {
8
8
  constructor() {
9
- /**
10
- * Client custom styling via string
11
- */
12
- this.clientStyling = '';
13
- /**
14
- * Client custom styling via url
15
- */
16
- this.clientStylingUrl = '';
17
- /**
18
- * Language of the widget
19
- */
20
- this.language = 'en';
21
- /**
22
- * User's device type
23
- */
24
- this.device = 'Mobile';
25
- /**
26
- * Wheel size
27
- */
28
- this.size = '440';
29
- /**
30
- * Content Direction
31
- */
32
- this.contentdirection = 'anticlockwise';
33
- this.limitStylingAppends = false;
34
- this.isPartitionsCustomableReady = false;
35
- this.isSpinning = false;
36
- this.radius = 0.85 * Number(this.size) / 2;
37
- this.speed = 0;
38
9
  this.setClientStyling = () => {
39
10
  let sheet = document.createElement('style');
40
11
  sheet.innerHTML = this.clientStyling;
@@ -101,6 +72,24 @@ export class CasinoEngagementSuiteLuckywheel {
101
72
  }
102
73
  this.eventSpin();
103
74
  };
75
+ this.clientStyling = '';
76
+ this.clientStylingUrl = '';
77
+ this.language = 'en';
78
+ this.device = 'Mobile';
79
+ this.luckywheel = undefined;
80
+ this.size = '440';
81
+ this.contentdirection = 'anticlockwise';
82
+ this.limitStylingAppends = false;
83
+ this.isPartitionsCustomableReady = false;
84
+ this.isSpinning = false;
85
+ this.options = undefined;
86
+ this.radius = 0.85 * Number(this.size) / 2;
87
+ this.speed = 0;
88
+ this.settings = undefined;
89
+ this.svg = undefined;
90
+ this.spinContainer = undefined;
91
+ this.spinable = undefined;
92
+ this.spinner = undefined;
104
93
  }
105
94
  handleEvent(e) {
106
95
  const _a = e === null || e === void 0 ? void 0 : e.data, { type } = _a, rest = __rest(_a, ["type"]);
@@ -208,8 +197,6 @@ export class CasinoEngagementSuiteLuckywheel {
208
197
  "tags": [],
209
198
  "text": "Client custom styling via string"
210
199
  },
211
- "getter": false,
212
- "setter": false,
213
200
  "attribute": "client-styling",
214
201
  "reflect": true,
215
202
  "defaultValue": "''"
@@ -228,8 +215,6 @@ export class CasinoEngagementSuiteLuckywheel {
228
215
  "tags": [],
229
216
  "text": "Client custom styling via url"
230
217
  },
231
- "getter": false,
232
- "setter": false,
233
218
  "attribute": "client-styling-url",
234
219
  "reflect": true,
235
220
  "defaultValue": "''"
@@ -248,8 +233,6 @@ export class CasinoEngagementSuiteLuckywheel {
248
233
  "tags": [],
249
234
  "text": "Language of the widget"
250
235
  },
251
- "getter": false,
252
- "setter": false,
253
236
  "attribute": "language",
254
237
  "reflect": false,
255
238
  "defaultValue": "'en'"
@@ -268,8 +251,6 @@ export class CasinoEngagementSuiteLuckywheel {
268
251
  "tags": [],
269
252
  "text": "User's device type"
270
253
  },
271
- "getter": false,
272
- "setter": false,
273
254
  "attribute": "device",
274
255
  "reflect": false,
275
256
  "defaultValue": "'Mobile' as 'Mobile' | 'Tablet' | 'Desktop'"
@@ -293,9 +274,7 @@ export class CasinoEngagementSuiteLuckywheel {
293
274
  "docs": {
294
275
  "tags": [],
295
276
  "text": "Active Luckywheel"
296
- },
297
- "getter": false,
298
- "setter": false
277
+ }
299
278
  },
300
279
  "size": {
301
280
  "type": "string",
@@ -311,8 +290,6 @@ export class CasinoEngagementSuiteLuckywheel {
311
290
  "tags": [],
312
291
  "text": "Wheel size"
313
292
  },
314
- "getter": false,
315
- "setter": false,
316
293
  "attribute": "size",
317
294
  "reflect": false,
318
295
  "defaultValue": "'440'"
@@ -331,8 +308,6 @@ export class CasinoEngagementSuiteLuckywheel {
331
308
  "tags": [],
332
309
  "text": "Content Direction"
333
310
  },
334
- "getter": false,
335
- "setter": false,
336
311
  "attribute": "contentdirection",
337
312
  "reflect": false,
338
313
  "defaultValue": "'anticlockwise'"