@everymatrix/casino-play-random-game 1.55.0 → 1.56.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 (26) 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-aafe302e.js +2 -0
  3. package/dist/casino-play-random-game/p-ca888ed9.entry.js +1 -0
  4. package/dist/cjs/casino-play-random-game.cjs.entry.js +119 -40
  5. package/dist/cjs/casino-play-random-game.cjs.js +3 -3
  6. package/dist/cjs/{index-4316ff18.js → index-a0c0d6c2.js} +178 -72
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +104 -39
  10. package/dist/esm/casino-play-random-game.entry.js +119 -40
  11. package/dist/esm/casino-play-random-game.js +4 -4
  12. package/dist/esm/{index-eac6b960.js → index-29915e18.js} +178 -72
  13. package/dist/esm/loader.js +3 -3
  14. 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 +2 -0
  15. 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 +2 -0
  16. package/dist/types/components/casino-play-random-game/casino-play-random-game.d.ts +9 -3
  17. package/dist/types/components.d.ts +8 -0
  18. package/package.json +1 -1
  19. package/dist/casino-play-random-game/p-a29126ee.entry.js +0 -1
  20. package/dist/casino-play-random-game/p-abcaead5.js +0 -2
  21. 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 +0 -2
  22. 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 +0 -2
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,23 @@ 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, 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: true, 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | 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
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  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;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -338,7 +343,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
338
343
  }
339
344
  if (!appliedStyles.has(scopeId2)) {
340
345
  {
341
- styleElm = doc.createElement("style");
346
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
342
347
  styleElm.innerHTML = style;
343
348
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
344
349
  if (nonce != null) {
@@ -348,7 +353,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
348
353
  if (styleContainerNode.nodeName === "HEAD") {
349
354
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
350
355
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
351
- styleContainerNode.insertBefore(styleElm, referenceNode2);
356
+ styleContainerNode.insertBefore(
357
+ styleElm,
358
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
359
+ );
352
360
  } else if ("host" in styleContainerNode) {
353
361
  if (supportsConstructableStylesheets) {
354
362
  const stylesheet = new CSSStyleSheet();
@@ -366,7 +374,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
366
374
  styleContainerNode.append(styleElm);
367
375
  }
368
376
  }
369
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
377
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
370
378
  styleContainerNode.insertBefore(styleElm, null);
371
379
  }
372
380
  }
@@ -391,23 +399,25 @@ var attachStyles = (hostRef) => {
391
399
  const scopeId2 = addStyle(
392
400
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
393
401
  cmpMeta);
394
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
402
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
395
403
  elm["s-sc"] = scopeId2;
396
404
  elm.classList.add(scopeId2 + "-h");
397
405
  }
398
406
  endAttachStyles();
399
407
  };
400
408
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
401
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
409
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
402
410
  if (oldValue !== newValue) {
403
411
  let isProp = isMemberInElement(elm, memberName);
404
412
  let ln = memberName.toLowerCase();
405
413
  if (memberName === "class") {
406
414
  const classList = elm.classList;
407
415
  const oldClasses = parseClassList(oldValue);
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)));
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
+ }
411
421
  } else if (memberName === "key") ; else if (memberName === "ref") {
412
422
  if (newValue) {
413
423
  newValue(elm);
@@ -445,7 +455,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
445
455
  elm.setAttribute(memberName, n);
446
456
  }
447
457
  }
448
- } else {
458
+ } else if (elm[memberName] !== newValue) {
449
459
  elm[memberName] = newValue;
450
460
  }
451
461
  } catch (e) {
@@ -467,24 +477,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
467
477
  }
468
478
  };
469
479
  var parseClassListRegex = /\s/;
470
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
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
+ };
471
489
  var CAPTURE_EVENT_SUFFIX = "Capture";
472
490
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
473
491
 
474
492
  // src/runtime/vdom/update-element.ts
475
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
493
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
476
494
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
477
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
478
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
495
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
496
+ const newVnodeAttrs = newVnode.$attrs$ || {};
479
497
  {
480
498
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
481
499
  if (!(memberName in newVnodeAttrs)) {
482
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
500
+ setAccessor(
501
+ elm,
502
+ memberName,
503
+ oldVnodeAttrs[memberName],
504
+ void 0,
505
+ isSvgMode2,
506
+ newVnode.$flags$);
483
507
  }
484
508
  }
485
509
  }
486
510
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
487
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
511
+ setAccessor(
512
+ elm,
513
+ memberName,
514
+ oldVnodeAttrs[memberName],
515
+ newVnodeAttrs[memberName],
516
+ isSvgMode2,
517
+ newVnode.$flags$);
488
518
  }
489
519
  };
490
520
  function sortedAttrNames(attrNames) {
@@ -496,13 +526,10 @@ function sortedAttrNames(attrNames) {
496
526
  attrNames
497
527
  );
498
528
  }
499
-
500
- // src/runtime/vdom/vdom-render.ts
501
- var scopeId;
502
529
  var hostTagName;
503
530
  var useNativeShadowDom = false;
504
531
  var isSvgMode = false;
505
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
532
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
506
533
  const newVNode2 = newParentVNode.$children$[childIndex];
507
534
  let i2 = 0;
508
535
  let elm;
@@ -516,11 +543,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
516
543
  {
517
544
  updateElement(null, newVNode2, isSvgMode);
518
545
  }
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
- }
524
546
  if (newVNode2.$children$) {
525
547
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
526
548
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -650,6 +672,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
650
672
  if (!isInitialRender) {
651
673
  return leftVNode.$key$ === rightVNode.$key$;
652
674
  }
675
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
676
+ leftVNode.$key$ = rightVNode.$key$;
677
+ }
653
678
  return true;
654
679
  }
655
680
  return false;
@@ -689,8 +714,9 @@ var nullifyVNodeRefs = (vNode) => {
689
714
  }
690
715
  };
691
716
  var insertBefore = (parent, newNode, reference) => {
692
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
693
- return inserted;
717
+ {
718
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
719
+ }
694
720
  };
695
721
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
696
722
  const hostElm = hostRef.$hostElement$;
@@ -715,17 +741,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
715
741
  rootVnode.$flags$ |= 4 /* isHost */;
716
742
  hostRef.$vnode$ = rootVnode;
717
743
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
718
- {
719
- scopeId = hostElm["s-sc"];
720
- }
721
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
744
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
722
745
  patch(oldVNode, rootVnode, isInitialLoad);
723
746
  };
724
747
 
725
748
  // src/runtime/update-component.ts
726
749
  var attachToAncestor = (hostRef, ancestorComponent) => {
727
750
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
728
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
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
+ );
729
759
  }
730
760
  };
731
761
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -752,7 +782,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
752
782
  let maybePromise;
753
783
  if (isInitialLoad) {
754
784
  {
755
- maybePromise = safeCall(instance, "componentWillLoad");
785
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
756
786
  }
757
787
  }
758
788
  endSchedule();
@@ -826,7 +856,7 @@ var postUpdateComponent = (hostRef) => {
826
856
  addHydratedFlag(elm);
827
857
  }
828
858
  {
829
- safeCall(instance, "componentDidLoad");
859
+ safeCall(instance, "componentDidLoad", void 0, elm);
830
860
  }
831
861
  endPostUpdate();
832
862
  {
@@ -850,17 +880,14 @@ var postUpdateComponent = (hostRef) => {
850
880
  }
851
881
  };
852
882
  var appDidLoad = (who) => {
853
- {
854
- addHydratedFlag(doc.documentElement);
855
- }
856
883
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
857
884
  };
858
- var safeCall = (instance, method, arg) => {
885
+ var safeCall = (instance, method, arg, elm) => {
859
886
  if (instance && instance[method]) {
860
887
  try {
861
888
  return instance[method](arg);
862
889
  } catch (e) {
863
- consoleError(e);
890
+ consoleError(e, elm);
864
891
  }
865
892
  }
866
893
  return void 0;
@@ -919,15 +946,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
919
946
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
920
947
  members.map(([memberName, [memberFlags]]) => {
921
948
  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
+ }
922
969
  Object.defineProperty(prototype, memberName, {
923
- get() {
924
- return getValue(this, memberName);
925
- },
926
970
  set(newValue) {
927
- setValue(this, memberName, newValue, cmpMeta);
928
- },
929
- configurable: true,
930
- enumerable: true
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
+ }
931
1011
  });
932
1012
  }
933
1013
  });
@@ -937,7 +1017,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
937
1017
  plt.jmp(() => {
938
1018
  var _a2;
939
1019
  const propName = attrNameToPropName.get(attrName);
940
- if (this.hasOwnProperty(propName)) {
1020
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
941
1021
  newValue = this[propName];
942
1022
  delete this[propName];
943
1023
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -957,7 +1037,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
957
1037
  }
958
1038
  return;
959
1039
  }
960
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
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
+ }
961
1045
  });
962
1046
  };
963
1047
  Cstr.observedAttributes = Array.from(
@@ -986,7 +1070,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
986
1070
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
987
1071
  const bundleId = cmpMeta.$lazyBundleId$;
988
1072
  if (bundleId) {
989
- const CstrImport = loadModule(cmpMeta);
1073
+ const CstrImport = loadModule(cmpMeta, hostRef);
990
1074
  if (CstrImport && "then" in CstrImport) {
991
1075
  const endLoad = uniqueTime();
992
1076
  Cstr = await CstrImport;
@@ -1011,7 +1095,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1011
1095
  try {
1012
1096
  new Cstr(hostRef);
1013
1097
  } catch (e) {
1014
- consoleError(e);
1098
+ consoleError(e, elm);
1015
1099
  }
1016
1100
  {
1017
1101
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1020,7 +1104,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1020
1104
  hostRef.$flags$ |= 128 /* isWatchReady */;
1021
1105
  }
1022
1106
  endNewInstance();
1023
- fireConnectedCallback(hostRef.$lazyInstance$);
1107
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1024
1108
  } else {
1025
1109
  Cstr = elm.constructor;
1026
1110
  const cmpTag = elm.localName;
@@ -1047,9 +1131,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1047
1131
  schedule();
1048
1132
  }
1049
1133
  };
1050
- var fireConnectedCallback = (instance) => {
1134
+ var fireConnectedCallback = (instance, elm) => {
1051
1135
  {
1052
- safeCall(instance, "connectedCallback");
1136
+ safeCall(instance, "connectedCallback", void 0, elm);
1053
1137
  }
1054
1138
  };
1055
1139
 
@@ -1084,23 +1168,34 @@ var connectedCallback = (elm) => {
1084
1168
  }
1085
1169
  } else {
1086
1170
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1087
- fireConnectedCallback(hostRef.$lazyInstance$);
1171
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1088
1172
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1089
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1173
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1090
1174
  }
1091
1175
  }
1092
1176
  endConnected();
1093
1177
  }
1094
1178
  };
1095
- var disconnectInstance = (instance) => {
1179
+ var disconnectInstance = (instance, elm) => {
1180
+ {
1181
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1182
+ }
1096
1183
  };
1097
1184
  var disconnectedCallback = async (elm) => {
1098
1185
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1099
1186
  const hostRef = getHostRef(elm);
1100
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1101
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1187
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1188
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1189
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1190
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1102
1191
  }
1103
1192
  }
1193
+ if (rootAppliedStyles.has(elm)) {
1194
+ rootAppliedStyles.delete(elm);
1195
+ }
1196
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1197
+ rootAppliedStyles.delete(elm.shadowRoot);
1198
+ }
1104
1199
  };
1105
1200
 
1106
1201
  // src/runtime/bootstrap-lazy.ts
@@ -1181,6 +1276,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1181
1276
  }
1182
1277
  disconnectedCallback() {
1183
1278
  plt.jmp(() => disconnectedCallback(this));
1279
+ plt.raf(() => {
1280
+ var _a3;
1281
+ const hostRef = getHostRef(this);
1282
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1283
+ if (i2 > -1) {
1284
+ deferredConnectedCallbacks.splice(i2, 1);
1285
+ }
1286
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1287
+ delete hostRef.$vnode$.$elm$;
1288
+ }
1289
+ });
1184
1290
  }
1185
1291
  componentOnReady() {
1186
1292
  return getHostRef(this).$onReadyPromise$;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-4316ff18.js');
5
+ const index = require('./index-a0c0d6c2.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["casino-play-random-game.cjs",[[1,"casino-play-random-game",{"endpoint":[513],"datasource":[513],"language":[513],"specificCategory":[513,"specific-category"],"iconVisible":[513,"icon-visible"],"iconVisibleOnAnim":[513,"icon-visible-on-anim"],"launchByGameCard":[513,"launch-by-game-card"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"hasErrors":[32],"limitStylingAppends":[32],"isLoading":[32],"gamesToShow":[32],"selectedGame":[32],"animationDone":[32],"animationStarted":[32]},null,{"endpoint":["watchEndpoint"],"datasource":["watchEndpoint"],"language":["watchEndpoint"],"translationUrl":["handleNewTranslations"],"iconVisible":["handleIsIconVisible"]}]]]], options);
11
+ return index.bootstrapLazy([["casino-play-random-game.cjs",[[1,"casino-play-random-game",{"endpoint":[513],"datasource":[513],"language":[513],"specificCategory":[513,"specific-category"],"iconVisible":[513,"icon-visible"],"iconVisibleOnAnim":[513,"icon-visible-on-anim"],"launchByGameCard":[513,"launch-by-game-card"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"hasErrors":[32],"isLoading":[32],"gamesToShow":[32],"selectedGame":[32],"animationDone":[32],"animationStarted":[32]},null,{"endpoint":["watchEndpoint"],"datasource":["watchEndpoint"],"language":["watchEndpoint"],"translationUrl":["handleNewTranslations"],"iconVisible":["handleIsIconVisible"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],