@everymatrix/casino-jackpot-winner 1.53.0 → 1.53.10

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 (20) hide show
  1. package/dist/casino-jackpot-winner/casino-jackpot-winner.esm.js +1 -1
  2. package/dist/casino-jackpot-winner/p-a6ad15c8.js +2 -0
  3. package/dist/casino-jackpot-winner/p-de818cf8.entry.js +1 -0
  4. package/dist/cjs/casino-jackpot-winner.cjs.entry.js +207 -26
  5. package/dist/cjs/casino-jackpot-winner.cjs.js +2 -2
  6. package/dist/cjs/{index-ebf58fc5.js → index-9a5e3bf0.js} +147 -62
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.js +43 -3
  10. package/dist/esm/casino-jackpot-winner.entry.js +207 -26
  11. package/dist/esm/casino-jackpot-winner.js +3 -3
  12. package/dist/esm/{index-e8ade48c.js → index-92d7d38a.js} +147 -62
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-jackpot-winner/p-0a14a6b5.entry.js +0 -1
  18. package/dist/casino-jackpot-winner/p-caf0a01d.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +0 -2
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'casino-jackpot-winner';
2
- const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, 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: 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: false, 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: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* casino-jackpot-winner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, 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: 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: false, 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: false, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -347,7 +352,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
347
352
  }
348
353
  if (!appliedStyles.has(scopeId2)) {
349
354
  {
350
- styleElm = doc.createElement("style");
355
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
351
356
  styleElm.innerHTML = style;
352
357
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
353
358
  if (nonce != null) {
@@ -357,7 +362,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
357
362
  if (styleContainerNode.nodeName === "HEAD") {
358
363
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
359
364
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
360
- styleContainerNode.insertBefore(styleElm, referenceNode2);
365
+ styleContainerNode.insertBefore(
366
+ styleElm,
367
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
368
+ );
361
369
  } else if ("host" in styleContainerNode) {
362
370
  if (supportsConstructableStylesheets) {
363
371
  const stylesheet = new CSSStyleSheet();
@@ -407,7 +415,7 @@ var attachStyles = (hostRef) => {
407
415
  endAttachStyles();
408
416
  };
409
417
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
410
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
418
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
411
419
  if (oldValue !== newValue) {
412
420
  let isProp = isMemberInElement(elm, memberName);
413
421
  memberName.toLowerCase();
@@ -426,7 +434,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
426
434
  elm.setAttribute(memberName, n);
427
435
  }
428
436
  }
429
- } else {
437
+ } else if (elm[memberName] !== newValue) {
430
438
  elm[memberName] = newValue;
431
439
  }
432
440
  } catch (e) {
@@ -449,19 +457,31 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
449
457
  };
450
458
 
451
459
  // src/runtime/vdom/update-element.ts
452
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
460
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
453
461
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
454
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
455
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
462
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
463
+ const newVnodeAttrs = newVnode.$attrs$ || {};
456
464
  {
457
465
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
458
466
  if (!(memberName in newVnodeAttrs)) {
459
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
467
+ setAccessor(
468
+ elm,
469
+ memberName,
470
+ oldVnodeAttrs[memberName],
471
+ void 0,
472
+ isSvgMode2,
473
+ newVnode.$flags$);
460
474
  }
461
475
  }
462
476
  }
463
477
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
464
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
478
+ setAccessor(
479
+ elm,
480
+ memberName,
481
+ oldVnodeAttrs[memberName],
482
+ newVnodeAttrs[memberName],
483
+ isSvgMode2,
484
+ newVnode.$flags$);
465
485
  }
466
486
  };
467
487
  function sortedAttrNames(attrNames) {
@@ -473,13 +493,10 @@ function sortedAttrNames(attrNames) {
473
493
  attrNames
474
494
  );
475
495
  }
476
-
477
- // src/runtime/vdom/vdom-render.ts
478
- var scopeId;
479
496
  var hostTagName;
480
497
  var useNativeShadowDom = false;
481
498
  var isSvgMode = false;
482
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
499
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
483
500
  const newVNode2 = newParentVNode.$children$[childIndex];
484
501
  let i2 = 0;
485
502
  let elm;
@@ -491,11 +508,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
491
508
  {
492
509
  updateElement(null, newVNode2, isSvgMode);
493
510
  }
494
- const rootNode = elm.getRootNode();
495
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
496
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
497
- elm.classList.add(elm["s-si"] = scopeId);
498
- }
499
511
  if (newVNode2.$children$) {
500
512
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
501
513
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -624,6 +636,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
624
636
  if (!isInitialRender) {
625
637
  return leftVNode.$key$ === rightVNode.$key$;
626
638
  }
639
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
640
+ leftVNode.$key$ = rightVNode.$key$;
641
+ }
627
642
  return true;
628
643
  }
629
644
  return false;
@@ -651,8 +666,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
651
666
  }
652
667
  };
653
668
  var insertBefore = (parent, newNode, reference) => {
654
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
655
- return inserted;
669
+ {
670
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
671
+ }
656
672
  };
657
673
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
658
674
  const hostElm = hostRef.$hostElement$;
@@ -671,9 +687,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
671
687
  rootVnode.$flags$ |= 4 /* isHost */;
672
688
  hostRef.$vnode$ = rootVnode;
673
689
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
674
- {
675
- scopeId = hostElm["s-sc"];
676
- }
677
690
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
678
691
  patch(oldVNode, rootVnode, isInitialLoad);
679
692
  };
@@ -681,7 +694,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
681
694
  // src/runtime/update-component.ts
682
695
  var attachToAncestor = (hostRef, ancestorComponent) => {
683
696
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
684
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
697
+ const index = ancestorComponent["s-p"].push(
698
+ new Promise(
699
+ (r) => hostRef.$onRenderResolve$ = () => {
700
+ ancestorComponent["s-p"].splice(index - 1, 1);
701
+ r();
702
+ }
703
+ )
704
+ );
685
705
  }
686
706
  };
687
707
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -708,7 +728,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
708
728
  let maybePromise;
709
729
  if (isInitialLoad) {
710
730
  {
711
- maybePromise = safeCall(instance, "componentWillLoad");
731
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
712
732
  }
713
733
  }
714
734
  endSchedule();
@@ -782,7 +802,7 @@ var postUpdateComponent = (hostRef) => {
782
802
  addHydratedFlag(elm);
783
803
  }
784
804
  {
785
- safeCall(instance, "componentDidLoad");
805
+ safeCall(instance, "componentDidLoad", void 0, elm);
786
806
  }
787
807
  endPostUpdate();
788
808
  {
@@ -811,12 +831,12 @@ var appDidLoad = (who) => {
811
831
  }
812
832
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
813
833
  };
814
- var safeCall = (instance, method, arg) => {
834
+ var safeCall = (instance, method, arg, elm) => {
815
835
  if (instance && instance[method]) {
816
836
  try {
817
837
  return instance[method](arg);
818
838
  } catch (e) {
819
- consoleError(e);
839
+ consoleError(e, elm);
820
840
  }
821
841
  }
822
842
  return void 0;
@@ -880,15 +900,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
880
900
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
881
901
  members.map(([memberName, [memberFlags]]) => {
882
902
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
903
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
904
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
905
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
906
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
907
+ Object.defineProperty(prototype, memberName, {
908
+ get() {
909
+ {
910
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
911
+ return getValue(this, memberName);
912
+ }
913
+ const ref = getHostRef(this);
914
+ const instance = ref ? ref.$lazyInstance$ : prototype;
915
+ if (!instance) return;
916
+ return instance[memberName];
917
+ }
918
+ },
919
+ configurable: true,
920
+ enumerable: true
921
+ });
922
+ }
883
923
  Object.defineProperty(prototype, memberName, {
884
- get() {
885
- return getValue(this, memberName);
886
- },
887
924
  set(newValue) {
888
- setValue(this, memberName, newValue, cmpMeta);
889
- },
890
- configurable: true,
891
- enumerable: true
925
+ const ref = getHostRef(this);
926
+ if (origSetter) {
927
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
928
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
929
+ newValue = ref.$instanceValues$.get(memberName);
930
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
931
+ ref.$instanceValues$.set(memberName, currentValue);
932
+ }
933
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
934
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
935
+ setValue(this, memberName, newValue, cmpMeta);
936
+ return;
937
+ }
938
+ {
939
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
940
+ setValue(this, memberName, newValue, cmpMeta);
941
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
942
+ ref.$onReadyPromise$.then(() => {
943
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
944
+ ref.$lazyInstance$[memberName] = newValue;
945
+ }
946
+ });
947
+ }
948
+ return;
949
+ }
950
+ const setterSetVal = () => {
951
+ const currentValue = ref.$lazyInstance$[memberName];
952
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
953
+ ref.$instanceValues$.set(memberName, currentValue);
954
+ }
955
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
956
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
957
+ };
958
+ if (ref.$lazyInstance$) {
959
+ setterSetVal();
960
+ } else {
961
+ ref.$onReadyPromise$.then(() => setterSetVal());
962
+ }
963
+ }
964
+ }
892
965
  });
893
966
  }
894
967
  });
@@ -898,7 +971,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
898
971
  plt.jmp(() => {
899
972
  var _a2;
900
973
  const propName = attrNameToPropName.get(attrName);
901
- if (this.hasOwnProperty(propName)) {
974
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
902
975
  newValue = this[propName];
903
976
  delete this[propName];
904
977
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -918,7 +991,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
918
991
  }
919
992
  return;
920
993
  }
921
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
994
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
995
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
996
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
997
+ this[propName] = newValue;
998
+ }
922
999
  });
923
1000
  };
924
1001
  Cstr.observedAttributes = Array.from(
@@ -941,9 +1018,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
941
1018
  let Cstr;
942
1019
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
943
1020
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
944
- const bundleId = cmpMeta.$lazyBundleId$;
945
- if (bundleId) {
946
- const CstrImport = loadModule(cmpMeta);
1021
+ {
1022
+ const CstrImport = loadModule(cmpMeta, hostRef);
947
1023
  if (CstrImport && "then" in CstrImport) {
948
1024
  const endLoad = uniqueTime();
949
1025
  Cstr = await CstrImport;
@@ -968,7 +1044,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
968
1044
  try {
969
1045
  new Cstr(hostRef);
970
1046
  } catch (e) {
971
- consoleError(e);
1047
+ consoleError(e, elm);
972
1048
  }
973
1049
  {
974
1050
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -977,10 +1053,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
977
1053
  hostRef.$flags$ |= 128 /* isWatchReady */;
978
1054
  }
979
1055
  endNewInstance();
980
- } else {
981
- Cstr = elm.constructor;
982
- const cmpTag = elm.localName;
983
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
984
1056
  }
985
1057
  if (Cstr && Cstr.style) {
986
1058
  let style;
@@ -1003,7 +1075,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1003
1075
  schedule();
1004
1076
  }
1005
1077
  };
1006
- var fireConnectedCallback = (instance) => {
1078
+ var fireConnectedCallback = (instance, elm) => {
1007
1079
  };
1008
1080
 
1009
1081
  // src/runtime/connected-callback.ts
@@ -1043,7 +1115,7 @@ var connectedCallback = (elm) => {
1043
1115
  endConnected();
1044
1116
  }
1045
1117
  };
1046
- var disconnectInstance = (instance) => {
1118
+ var disconnectInstance = (instance, elm) => {
1047
1119
  };
1048
1120
  var disconnectedCallback = async (elm) => {
1049
1121
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1052,6 +1124,12 @@ var disconnectedCallback = async (elm) => {
1052
1124
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1053
1125
  }
1054
1126
  }
1127
+ if (rootAppliedStyles.has(elm)) {
1128
+ rootAppliedStyles.delete(elm);
1129
+ }
1130
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1131
+ rootAppliedStyles.delete(elm.shadowRoot);
1132
+ }
1055
1133
  };
1056
1134
 
1057
1135
  // src/runtime/bootstrap-lazy.ts
@@ -1129,6 +1207,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1129
1207
  }
1130
1208
  disconnectedCallback() {
1131
1209
  plt.jmp(() => disconnectedCallback(this));
1210
+ plt.raf(() => {
1211
+ var _a3;
1212
+ const hostRef = getHostRef(this);
1213
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1214
+ delete hostRef.$vnode$.$elm$;
1215
+ }
1216
+ });
1132
1217
  }
1133
1218
  componentOnReady() {
1134
1219
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-e8ade48c.js';
2
- export { s as setNonce } from './index-e8ade48c.js';
1
+ import { b as bootstrapLazy } from './index-92d7d38a.js';
2
+ export { s as setNonce } from './index-92d7d38a.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-jackpot-winner",
3
- "version": "1.53.0",
3
+ "version": "1.53.10",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",