@everymatrix/casino-play-random-game 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/casino-play-random-game/casino-play-random-game.esm.js +1 -1
  2. package/dist/casino-play-random-game/p-a29126ee.entry.js +1 -0
  3. package/dist/casino-play-random-game/p-abcaead5.js +2 -0
  4. package/dist/cjs/casino-play-random-game.cjs.entry.js +18 -39
  5. package/dist/cjs/casino-play-random-game.cjs.js +2 -2
  6. package/dist/cjs/{index-3117d673.js → index-4316ff18.js} +70 -171
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +17 -58
  10. package/dist/esm/casino-play-random-game.entry.js +18 -39
  11. package/dist/esm/casino-play-random-game.js +3 -3
  12. package/dist/esm/{index-8b2c4ca7.js → index-eac6b960.js} +70 -171
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-play-random-game/p-116a3121.js +0 -2
  18. package/dist/casino-play-random-game/p-88910d2b.entry.js +0 -1
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-play-random-game/.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-play-random-game';
24
- const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, 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: 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, 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: 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: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -343,7 +338,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
343
338
  }
344
339
  if (!appliedStyles.has(scopeId2)) {
345
340
  {
346
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
341
+ styleElm = doc.createElement("style");
347
342
  styleElm.innerHTML = style;
348
343
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
349
344
  if (nonce != null) {
@@ -353,10 +348,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
353
348
  if (styleContainerNode.nodeName === "HEAD") {
354
349
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
355
350
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
356
- styleContainerNode.insertBefore(
357
- styleElm,
358
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
359
- );
351
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
360
352
  } else if ("host" in styleContainerNode) {
361
353
  if (supportsConstructableStylesheets) {
362
354
  const stylesheet = new CSSStyleSheet();
@@ -374,7 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
366
  styleContainerNode.append(styleElm);
375
367
  }
376
368
  }
377
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
369
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
378
370
  styleContainerNode.insertBefore(styleElm, null);
379
371
  }
380
372
  }
@@ -399,25 +391,23 @@ var attachStyles = (hostRef) => {
399
391
  const scopeId2 = addStyle(
400
392
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
401
393
  cmpMeta);
402
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
394
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
403
395
  elm["s-sc"] = scopeId2;
404
396
  elm.classList.add(scopeId2 + "-h");
405
397
  }
406
398
  endAttachStyles();
407
399
  };
408
400
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
409
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
401
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
402
  if (oldValue !== newValue) {
411
403
  let isProp = isMemberInElement(elm, memberName);
412
404
  let ln = memberName.toLowerCase();
413
405
  if (memberName === "class") {
414
406
  const classList = elm.classList;
415
407
  const oldClasses = parseClassList(oldValue);
416
- let newClasses = parseClassList(newValue);
417
- {
418
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
419
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
420
- }
408
+ const newClasses = parseClassList(newValue);
409
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
410
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
421
411
  } else if (memberName === "key") ; else if (memberName === "ref") {
422
412
  if (newValue) {
423
413
  newValue(elm);
@@ -455,7 +445,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
455
445
  elm.setAttribute(memberName, n);
456
446
  }
457
447
  }
458
- } else if (elm[memberName] !== newValue) {
448
+ } else {
459
449
  elm[memberName] = newValue;
460
450
  }
461
451
  } catch (e) {
@@ -477,44 +467,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
477
467
  }
478
468
  };
479
469
  var parseClassListRegex = /\s/;
480
- var parseClassList = (value) => {
481
- if (typeof value === "object" && value && "baseVal" in value) {
482
- value = value.baseVal;
483
- }
484
- if (!value || typeof value !== "string") {
485
- return [];
486
- }
487
- return value.split(parseClassListRegex);
488
- };
470
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
489
471
  var CAPTURE_EVENT_SUFFIX = "Capture";
490
472
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
491
473
 
492
474
  // src/runtime/vdom/update-element.ts
493
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
475
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
494
476
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
495
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
496
- const newVnodeAttrs = newVnode.$attrs$ || {};
477
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
478
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
497
479
  {
498
480
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
499
481
  if (!(memberName in newVnodeAttrs)) {
500
- setAccessor(
501
- elm,
502
- memberName,
503
- oldVnodeAttrs[memberName],
504
- void 0,
505
- isSvgMode2,
506
- newVnode.$flags$);
482
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
507
483
  }
508
484
  }
509
485
  }
510
486
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
511
- setAccessor(
512
- elm,
513
- memberName,
514
- oldVnodeAttrs[memberName],
515
- newVnodeAttrs[memberName],
516
- isSvgMode2,
517
- newVnode.$flags$);
487
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
518
488
  }
519
489
  };
520
490
  function sortedAttrNames(attrNames) {
@@ -526,10 +496,13 @@ function sortedAttrNames(attrNames) {
526
496
  attrNames
527
497
  );
528
498
  }
499
+
500
+ // src/runtime/vdom/vdom-render.ts
501
+ var scopeId;
529
502
  var hostTagName;
530
503
  var useNativeShadowDom = false;
531
504
  var isSvgMode = false;
532
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
505
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
533
506
  const newVNode2 = newParentVNode.$children$[childIndex];
534
507
  let i2 = 0;
535
508
  let elm;
@@ -543,6 +516,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
543
516
  {
544
517
  updateElement(null, newVNode2, isSvgMode);
545
518
  }
519
+ const rootNode = elm.getRootNode();
520
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
521
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
522
+ elm.classList.add(elm["s-si"] = scopeId);
523
+ }
546
524
  if (newVNode2.$children$) {
547
525
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
548
526
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -672,9 +650,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
672
650
  if (!isInitialRender) {
673
651
  return leftVNode.$key$ === rightVNode.$key$;
674
652
  }
675
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
676
- leftVNode.$key$ = rightVNode.$key$;
677
- }
678
653
  return true;
679
654
  }
680
655
  return false;
@@ -714,9 +689,8 @@ var nullifyVNodeRefs = (vNode) => {
714
689
  }
715
690
  };
716
691
  var insertBefore = (parent, newNode, reference) => {
717
- {
718
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
719
- }
692
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
693
+ return inserted;
720
694
  };
721
695
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
722
696
  const hostElm = hostRef.$hostElement$;
@@ -741,21 +715,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
741
715
  rootVnode.$flags$ |= 4 /* isHost */;
742
716
  hostRef.$vnode$ = rootVnode;
743
717
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
744
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
718
+ {
719
+ scopeId = hostElm["s-sc"];
720
+ }
721
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
745
722
  patch(oldVNode, rootVnode, isInitialLoad);
746
723
  };
747
724
 
748
725
  // src/runtime/update-component.ts
749
726
  var attachToAncestor = (hostRef, ancestorComponent) => {
750
727
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
751
- const index = ancestorComponent["s-p"].push(
752
- new Promise(
753
- (r) => hostRef.$onRenderResolve$ = () => {
754
- ancestorComponent["s-p"].splice(index - 1, 1);
755
- r();
756
- }
757
- )
758
- );
728
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
759
729
  }
760
730
  };
761
731
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -782,7 +752,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
782
752
  let maybePromise;
783
753
  if (isInitialLoad) {
784
754
  {
785
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
755
+ maybePromise = safeCall(instance, "componentWillLoad");
786
756
  }
787
757
  }
788
758
  endSchedule();
@@ -856,7 +826,7 @@ var postUpdateComponent = (hostRef) => {
856
826
  addHydratedFlag(elm);
857
827
  }
858
828
  {
859
- safeCall(instance, "componentDidLoad", void 0, elm);
829
+ safeCall(instance, "componentDidLoad");
860
830
  }
861
831
  endPostUpdate();
862
832
  {
@@ -880,14 +850,17 @@ var postUpdateComponent = (hostRef) => {
880
850
  }
881
851
  };
882
852
  var appDidLoad = (who) => {
853
+ {
854
+ addHydratedFlag(doc.documentElement);
855
+ }
883
856
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
884
857
  };
885
- var safeCall = (instance, method, arg, elm) => {
858
+ var safeCall = (instance, method, arg) => {
886
859
  if (instance && instance[method]) {
887
860
  try {
888
861
  return instance[method](arg);
889
862
  } catch (e) {
890
- consoleError(e, elm);
863
+ consoleError(e);
891
864
  }
892
865
  }
893
866
  return void 0;
@@ -946,68 +919,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
946
919
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
947
920
  members.map(([memberName, [memberFlags]]) => {
948
921
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
949
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
950
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
951
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
952
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
953
- Object.defineProperty(prototype, memberName, {
954
- get() {
955
- {
956
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
957
- return getValue(this, memberName);
958
- }
959
- const ref = getHostRef(this);
960
- const instance = ref ? ref.$lazyInstance$ : prototype;
961
- if (!instance) return;
962
- return instance[memberName];
963
- }
964
- },
965
- configurable: true,
966
- enumerable: true
967
- });
968
- }
969
922
  Object.defineProperty(prototype, memberName, {
923
+ get() {
924
+ return getValue(this, memberName);
925
+ },
970
926
  set(newValue) {
971
- const ref = getHostRef(this);
972
- if (origSetter) {
973
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
974
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
975
- newValue = ref.$instanceValues$.get(memberName);
976
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
977
- ref.$instanceValues$.set(memberName, currentValue);
978
- }
979
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
980
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
981
- setValue(this, memberName, newValue, cmpMeta);
982
- return;
983
- }
984
- {
985
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
986
- setValue(this, memberName, newValue, cmpMeta);
987
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
988
- ref.$onReadyPromise$.then(() => {
989
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
990
- ref.$lazyInstance$[memberName] = newValue;
991
- }
992
- });
993
- }
994
- return;
995
- }
996
- const setterSetVal = () => {
997
- const currentValue = ref.$lazyInstance$[memberName];
998
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
999
- ref.$instanceValues$.set(memberName, currentValue);
1000
- }
1001
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1002
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1003
- };
1004
- if (ref.$lazyInstance$) {
1005
- setterSetVal();
1006
- } else {
1007
- ref.$onReadyPromise$.then(() => setterSetVal());
1008
- }
1009
- }
1010
- }
927
+ setValue(this, memberName, newValue, cmpMeta);
928
+ },
929
+ configurable: true,
930
+ enumerable: true
1011
931
  });
1012
932
  }
1013
933
  });
@@ -1017,7 +937,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1017
937
  plt.jmp(() => {
1018
938
  var _a2;
1019
939
  const propName = attrNameToPropName.get(attrName);
1020
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
940
+ if (this.hasOwnProperty(propName)) {
1021
941
  newValue = this[propName];
1022
942
  delete this[propName];
1023
943
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1037,11 +957,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1037
957
  }
1038
958
  return;
1039
959
  }
1040
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1041
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1042
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1043
- this[propName] = newValue;
1044
- }
960
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1045
961
  });
1046
962
  };
1047
963
  Cstr.observedAttributes = Array.from(
@@ -1070,7 +986,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1070
986
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1071
987
  const bundleId = cmpMeta.$lazyBundleId$;
1072
988
  if (bundleId) {
1073
- const CstrImport = loadModule(cmpMeta, hostRef);
989
+ const CstrImport = loadModule(cmpMeta);
1074
990
  if (CstrImport && "then" in CstrImport) {
1075
991
  const endLoad = uniqueTime();
1076
992
  Cstr = await CstrImport;
@@ -1095,7 +1011,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1095
1011
  try {
1096
1012
  new Cstr(hostRef);
1097
1013
  } catch (e) {
1098
- consoleError(e, elm);
1014
+ consoleError(e);
1099
1015
  }
1100
1016
  {
1101
1017
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1104,7 +1020,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1104
1020
  hostRef.$flags$ |= 128 /* isWatchReady */;
1105
1021
  }
1106
1022
  endNewInstance();
1107
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1023
+ fireConnectedCallback(hostRef.$lazyInstance$);
1108
1024
  } else {
1109
1025
  Cstr = elm.constructor;
1110
1026
  const cmpTag = elm.localName;
@@ -1131,9 +1047,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1131
1047
  schedule();
1132
1048
  }
1133
1049
  };
1134
- var fireConnectedCallback = (instance, elm) => {
1050
+ var fireConnectedCallback = (instance) => {
1135
1051
  {
1136
- safeCall(instance, "connectedCallback", void 0, elm);
1052
+ safeCall(instance, "connectedCallback");
1137
1053
  }
1138
1054
  };
1139
1055
 
@@ -1168,15 +1084,15 @@ var connectedCallback = (elm) => {
1168
1084
  }
1169
1085
  } else {
1170
1086
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1171
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1087
+ fireConnectedCallback(hostRef.$lazyInstance$);
1172
1088
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1173
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1089
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1174
1090
  }
1175
1091
  }
1176
1092
  endConnected();
1177
1093
  }
1178
1094
  };
1179
- var disconnectInstance = (instance, elm) => {
1095
+ var disconnectInstance = (instance) => {
1180
1096
  };
1181
1097
  var disconnectedCallback = async (elm) => {
1182
1098
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1185,12 +1101,6 @@ var disconnectedCallback = async (elm) => {
1185
1101
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1186
1102
  }
1187
1103
  }
1188
- if (rootAppliedStyles.has(elm)) {
1189
- rootAppliedStyles.delete(elm);
1190
- }
1191
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1192
- rootAppliedStyles.delete(elm.shadowRoot);
1193
- }
1194
1104
  };
1195
1105
 
1196
1106
  // src/runtime/bootstrap-lazy.ts
@@ -1271,17 +1181,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1271
1181
  }
1272
1182
  disconnectedCallback() {
1273
1183
  plt.jmp(() => disconnectedCallback(this));
1274
- plt.raf(() => {
1275
- var _a3;
1276
- const hostRef = getHostRef(this);
1277
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1278
- if (i2 > -1) {
1279
- deferredConnectedCallbacks.splice(i2, 1);
1280
- }
1281
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1282
- delete hostRef.$vnode$.$elm$;
1283
- }
1284
- });
1285
1184
  }
1286
1185
  componentOnReady() {
1287
1186
  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-3117d673.js');
5
+ const index = require('./index-4316ff18.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": [],
@@ -3,44 +3,6 @@ import { getDevice } from "../../utils/utils";
3
3
  import { getTranslations, translate } from "../../utils/locale.utils";
4
4
  export class CasinoPlayRandomGame {
5
5
  constructor() {
6
- /**
7
- * Language of the widget
8
- */
9
- this.language = 'en';
10
- /**
11
- * Configure a specific category for randomising the games.
12
- */
13
- this.specificCategory = '';
14
- /**
15
- * Icon visible initially
16
- */
17
- this.iconVisible = '';
18
- /**
19
- * Icon visible while rolling
20
- */
21
- this.iconVisibleOnAnim = '';
22
- /**
23
- * Open event on the game card.
24
- */
25
- this.launchByGameCard = '';
26
- /**
27
- * Client custom styling via string
28
- */
29
- this.clientStyling = '';
30
- /**
31
- * Client custom styling via url
32
- */
33
- this.clientStylingUrl = '';
34
- /**
35
- * Translations via URL
36
- */
37
- this.translationUrl = '';
38
- this.hasErrors = false;
39
- this.limitStylingAppends = false;
40
- this.isLoading = true;
41
- this.selectedGame = null;
42
- this.animationDone = false;
43
- this.animationStarted = false;
44
6
  this.animation = null;
45
7
  this.selectedGameIndex = null;
46
8
  this.selectedGameEl = null;
@@ -71,6 +33,23 @@ export class CasinoPlayRandomGame {
71
33
  setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
72
34
  });
73
35
  };
36
+ this.endpoint = undefined;
37
+ this.datasource = undefined;
38
+ this.language = 'en';
39
+ this.specificCategory = '';
40
+ this.iconVisible = '';
41
+ this.iconVisibleOnAnim = '';
42
+ this.launchByGameCard = '';
43
+ this.clientStyling = '';
44
+ this.clientStylingUrl = '';
45
+ this.translationUrl = '';
46
+ this.hasErrors = false;
47
+ this.limitStylingAppends = false;
48
+ this.isLoading = true;
49
+ this.gamesToShow = undefined;
50
+ this.selectedGame = null;
51
+ this.animationDone = false;
52
+ this.animationStarted = false;
74
53
  }
75
54
  watchEndpoint(newValue, oldValue) {
76
55
  if (newValue && newValue != oldValue && this.endpoint) {
@@ -270,8 +249,6 @@ export class CasinoPlayRandomGame {
270
249
  "tags": [],
271
250
  "text": "Endpoint URL for the source of data"
272
251
  },
273
- "getter": false,
274
- "setter": false,
275
252
  "attribute": "endpoint",
276
253
  "reflect": true
277
254
  },
@@ -289,8 +266,6 @@ export class CasinoPlayRandomGame {
289
266
  "tags": [],
290
267
  "text": "Name of the datasource, as configured in CE."
291
268
  },
292
- "getter": false,
293
- "setter": false,
294
269
  "attribute": "datasource",
295
270
  "reflect": true
296
271
  },
@@ -308,8 +283,6 @@ export class CasinoPlayRandomGame {
308
283
  "tags": [],
309
284
  "text": "Language of the widget"
310
285
  },
311
- "getter": false,
312
- "setter": false,
313
286
  "attribute": "language",
314
287
  "reflect": true,
315
288
  "defaultValue": "'en'"
@@ -328,8 +301,6 @@ export class CasinoPlayRandomGame {
328
301
  "tags": [],
329
302
  "text": "Configure a specific category for randomising the games."
330
303
  },
331
- "getter": false,
332
- "setter": false,
333
304
  "attribute": "specific-category",
334
305
  "reflect": true,
335
306
  "defaultValue": "''"
@@ -348,8 +319,6 @@ export class CasinoPlayRandomGame {
348
319
  "tags": [],
349
320
  "text": "Icon visible initially"
350
321
  },
351
- "getter": false,
352
- "setter": false,
353
322
  "attribute": "icon-visible",
354
323
  "reflect": true,
355
324
  "defaultValue": "''"
@@ -368,8 +337,6 @@ export class CasinoPlayRandomGame {
368
337
  "tags": [],
369
338
  "text": "Icon visible while rolling"
370
339
  },
371
- "getter": false,
372
- "setter": false,
373
340
  "attribute": "icon-visible-on-anim",
374
341
  "reflect": true,
375
342
  "defaultValue": "''"
@@ -388,8 +355,6 @@ export class CasinoPlayRandomGame {
388
355
  "tags": [],
389
356
  "text": "Open event on the game card."
390
357
  },
391
- "getter": false,
392
- "setter": false,
393
358
  "attribute": "launch-by-game-card",
394
359
  "reflect": true,
395
360
  "defaultValue": "''"
@@ -408,8 +373,6 @@ export class CasinoPlayRandomGame {
408
373
  "tags": [],
409
374
  "text": "Client custom styling via string"
410
375
  },
411
- "getter": false,
412
- "setter": false,
413
376
  "attribute": "client-styling",
414
377
  "reflect": true,
415
378
  "defaultValue": "''"
@@ -428,8 +391,6 @@ export class CasinoPlayRandomGame {
428
391
  "tags": [],
429
392
  "text": "Client custom styling via url"
430
393
  },
431
- "getter": false,
432
- "setter": false,
433
394
  "attribute": "client-styling-url",
434
395
  "reflect": true,
435
396
  "defaultValue": "''"
@@ -448,8 +409,6 @@ export class CasinoPlayRandomGame {
448
409
  "tags": [],
449
410
  "text": "Translations via URL"
450
411
  },
451
- "getter": false,
452
- "setter": false,
453
412
  "attribute": "translation-url",
454
413
  "reflect": true,
455
414
  "defaultValue": "''"