@everymatrix/lottery-game-page 1.53.0 → 1.53.11

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/cjs/helper-accordion_14.cjs.entry.js +12832 -2814
  2. package/dist/cjs/{index-3ecbfc1b.js → index-19471764.js} +170 -75
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/lottery-game-page.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/lottery-game-page/lottery-game-page.js +46 -30
  7. package/dist/esm/helper-accordion_14.entry.js +12901 -2883
  8. package/dist/esm/{index-7ea78a23.js → index-00f6fefc.js} +170 -75
  9. package/dist/esm/loader.js +2 -2
  10. package/dist/esm/lottery-game-page.js +3 -3
  11. package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
  12. package/dist/lottery-game-page/p-94e931fe.entry.js +6211 -0
  13. package/dist/lottery-game-page/p-ebaa337d.js +2 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/lottery-game-page/p-dcd233c1.js +0 -2
  18. package/dist/lottery-game-page/p-dee70ec2.entry.js +0 -4970
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-page/.stencil/packages/stencil/lottery-game-page/stencil.config.dev.d.ts +0 -2
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-game-page';
24
- const BUILD = /* lottery-game-page */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* lottery-game-page */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, 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.25.1 | 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 : {};
@@ -172,12 +183,6 @@ var getAssetPath = (path) => {
172
183
  const assetUrl = new URL(path, plt.$resourcesUrl$);
173
184
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
174
185
  };
175
-
176
- // src/utils/constants.ts
177
- var EMPTY_OBJ = {};
178
-
179
- // src/utils/helpers.ts
180
- var isDef = (v) => v != null;
181
186
  var isComplexType = (o) => {
182
187
  o = typeof o;
183
188
  return o === "object" || o === "function";
@@ -381,7 +386,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
381
386
  }
382
387
  if (!appliedStyles.has(scopeId2)) {
383
388
  {
384
- styleElm = doc.createElement("style");
389
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
385
390
  styleElm.innerHTML = style;
386
391
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
387
392
  if (nonce != null) {
@@ -391,7 +396,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
391
396
  if (styleContainerNode.nodeName === "HEAD") {
392
397
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
393
398
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
394
- styleContainerNode.insertBefore(styleElm, referenceNode2);
399
+ styleContainerNode.insertBefore(
400
+ styleElm,
401
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
402
+ );
395
403
  } else if ("host" in styleContainerNode) {
396
404
  if (supportsConstructableStylesheets) {
397
405
  const stylesheet = new CSSStyleSheet();
@@ -441,16 +449,18 @@ var attachStyles = (hostRef) => {
441
449
  endAttachStyles();
442
450
  };
443
451
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
444
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
452
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
445
453
  if (oldValue !== newValue) {
446
454
  let isProp = isMemberInElement(elm, memberName);
447
455
  let ln = memberName.toLowerCase();
448
456
  if (memberName === "class") {
449
457
  const classList = elm.classList;
450
458
  const oldClasses = parseClassList(oldValue);
451
- const newClasses = parseClassList(newValue);
452
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
453
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
459
+ let newClasses = parseClassList(newValue);
460
+ {
461
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
462
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
463
+ }
454
464
  } else if (memberName === "style") {
455
465
  {
456
466
  for (const prop in oldValue) {
@@ -509,7 +519,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
509
519
  elm.setAttribute(memberName, n);
510
520
  }
511
521
  }
512
- } else {
522
+ } else if (elm[memberName] !== newValue) {
513
523
  elm[memberName] = newValue;
514
524
  }
515
525
  } catch (e) {
@@ -531,24 +541,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
531
541
  }
532
542
  };
533
543
  var parseClassListRegex = /\s/;
534
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
544
+ var parseClassList = (value) => {
545
+ if (typeof value === "object" && value && "baseVal" in value) {
546
+ value = value.baseVal;
547
+ }
548
+ if (!value || typeof value !== "string") {
549
+ return [];
550
+ }
551
+ return value.split(parseClassListRegex);
552
+ };
535
553
  var CAPTURE_EVENT_SUFFIX = "Capture";
536
554
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
537
555
 
538
556
  // src/runtime/vdom/update-element.ts
539
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
557
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
540
558
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
541
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
542
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
559
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
560
+ const newVnodeAttrs = newVnode.$attrs$ || {};
543
561
  {
544
562
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
545
563
  if (!(memberName in newVnodeAttrs)) {
546
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
564
+ setAccessor(
565
+ elm,
566
+ memberName,
567
+ oldVnodeAttrs[memberName],
568
+ void 0,
569
+ isSvgMode2,
570
+ newVnode.$flags$);
547
571
  }
548
572
  }
549
573
  }
550
574
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
551
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
575
+ setAccessor(
576
+ elm,
577
+ memberName,
578
+ oldVnodeAttrs[memberName],
579
+ newVnodeAttrs[memberName],
580
+ isSvgMode2,
581
+ newVnode.$flags$);
552
582
  }
553
583
  };
554
584
  function sortedAttrNames(attrNames) {
@@ -560,13 +590,10 @@ function sortedAttrNames(attrNames) {
560
590
  attrNames
561
591
  );
562
592
  }
563
-
564
- // src/runtime/vdom/vdom-render.ts
565
- var scopeId;
566
593
  var hostTagName;
567
594
  var useNativeShadowDom = false;
568
595
  var isSvgMode = false;
569
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
596
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
570
597
  const newVNode2 = newParentVNode.$children$[childIndex];
571
598
  let i2 = 0;
572
599
  let elm;
@@ -580,11 +607,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
580
607
  {
581
608
  updateElement(null, newVNode2, isSvgMode);
582
609
  }
583
- const rootNode = elm.getRootNode();
584
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
585
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
586
- elm.classList.add(elm["s-si"] = scopeId);
587
- }
588
610
  if (newVNode2.$children$) {
589
611
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
590
612
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -714,6 +736,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
714
736
  if (!isInitialRender) {
715
737
  return leftVNode.$key$ === rightVNode.$key$;
716
738
  }
739
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
740
+ leftVNode.$key$ = rightVNode.$key$;
741
+ }
717
742
  return true;
718
743
  }
719
744
  return false;
@@ -754,8 +779,9 @@ var nullifyVNodeRefs = (vNode) => {
754
779
  }
755
780
  };
756
781
  var insertBefore = (parent, newNode, reference) => {
757
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
758
- return inserted;
782
+ {
783
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
784
+ }
759
785
  };
760
786
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
761
787
  const hostElm = hostRef.$hostElement$;
@@ -780,9 +806,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
780
806
  rootVnode.$flags$ |= 4 /* isHost */;
781
807
  hostRef.$vnode$ = rootVnode;
782
808
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
783
- {
784
- scopeId = hostElm["s-sc"];
785
- }
786
809
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
787
810
  patch(oldVNode, rootVnode, isInitialLoad);
788
811
  };
@@ -790,7 +813,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
790
813
  // src/runtime/update-component.ts
791
814
  var attachToAncestor = (hostRef, ancestorComponent) => {
792
815
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
793
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
816
+ const index = ancestorComponent["s-p"].push(
817
+ new Promise(
818
+ (r) => hostRef.$onRenderResolve$ = () => {
819
+ ancestorComponent["s-p"].splice(index - 1, 1);
820
+ r();
821
+ }
822
+ )
823
+ );
794
824
  }
795
825
  };
796
826
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -819,13 +849,13 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
819
849
  {
820
850
  hostRef.$flags$ |= 256 /* isListenReady */;
821
851
  if (hostRef.$queuedListeners$) {
822
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
852
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
823
853
  hostRef.$queuedListeners$ = void 0;
824
854
  }
825
855
  }
826
856
  }
827
857
  {
828
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
858
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
829
859
  }
830
860
  endSchedule();
831
861
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -893,7 +923,7 @@ var postUpdateComponent = (hostRef) => {
893
923
  const instance = hostRef.$lazyInstance$ ;
894
924
  const ancestorComponent = hostRef.$ancestorComponent$;
895
925
  {
896
- safeCall(instance, "componentDidRender");
926
+ safeCall(instance, "componentDidRender", void 0, elm);
897
927
  }
898
928
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
899
929
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -927,12 +957,12 @@ var appDidLoad = (who) => {
927
957
  }
928
958
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
929
959
  };
930
- var safeCall = (instance, method, arg) => {
960
+ var safeCall = (instance, method, arg, elm) => {
931
961
  if (instance && instance[method]) {
932
962
  try {
933
963
  return instance[method](arg);
934
964
  } catch (e) {
935
- consoleError(e);
965
+ consoleError(e, elm);
936
966
  }
937
967
  }
938
968
  return void 0;
@@ -991,15 +1021,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
991
1021
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
992
1022
  members.map(([memberName, [memberFlags]]) => {
993
1023
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1024
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1025
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1026
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1027
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1028
+ Object.defineProperty(prototype, memberName, {
1029
+ get() {
1030
+ {
1031
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1032
+ return getValue(this, memberName);
1033
+ }
1034
+ const ref = getHostRef(this);
1035
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1036
+ if (!instance) return;
1037
+ return instance[memberName];
1038
+ }
1039
+ },
1040
+ configurable: true,
1041
+ enumerable: true
1042
+ });
1043
+ }
994
1044
  Object.defineProperty(prototype, memberName, {
995
- get() {
996
- return getValue(this, memberName);
997
- },
998
1045
  set(newValue) {
999
- setValue(this, memberName, newValue, cmpMeta);
1000
- },
1001
- configurable: true,
1002
- enumerable: true
1046
+ const ref = getHostRef(this);
1047
+ if (origSetter) {
1048
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1049
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1050
+ newValue = ref.$instanceValues$.get(memberName);
1051
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1052
+ ref.$instanceValues$.set(memberName, currentValue);
1053
+ }
1054
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1055
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1056
+ setValue(this, memberName, newValue, cmpMeta);
1057
+ return;
1058
+ }
1059
+ {
1060
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1061
+ setValue(this, memberName, newValue, cmpMeta);
1062
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1063
+ ref.$onReadyPromise$.then(() => {
1064
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1065
+ ref.$lazyInstance$[memberName] = newValue;
1066
+ }
1067
+ });
1068
+ }
1069
+ return;
1070
+ }
1071
+ const setterSetVal = () => {
1072
+ const currentValue = ref.$lazyInstance$[memberName];
1073
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1074
+ ref.$instanceValues$.set(memberName, currentValue);
1075
+ }
1076
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1077
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1078
+ };
1079
+ if (ref.$lazyInstance$) {
1080
+ setterSetVal();
1081
+ } else {
1082
+ ref.$onReadyPromise$.then(() => setterSetVal());
1083
+ }
1084
+ }
1085
+ }
1003
1086
  });
1004
1087
  }
1005
1088
  });
@@ -1009,7 +1092,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1009
1092
  plt.jmp(() => {
1010
1093
  var _a2;
1011
1094
  const propName = attrNameToPropName.get(attrName);
1012
- if (this.hasOwnProperty(propName)) {
1095
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1013
1096
  newValue = this[propName];
1014
1097
  delete this[propName];
1015
1098
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1029,7 +1112,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1029
1112
  }
1030
1113
  return;
1031
1114
  }
1032
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1115
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1116
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1117
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1118
+ this[propName] = newValue;
1119
+ }
1033
1120
  });
1034
1121
  };
1035
1122
  Cstr.observedAttributes = Array.from(
@@ -1056,9 +1143,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1056
1143
  let Cstr;
1057
1144
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1058
1145
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1059
- const bundleId = cmpMeta.$lazyBundleId$;
1060
- if (bundleId) {
1061
- const CstrImport = loadModule(cmpMeta);
1146
+ {
1147
+ const CstrImport = loadModule(cmpMeta, hostRef);
1062
1148
  if (CstrImport && "then" in CstrImport) {
1063
1149
  const endLoad = uniqueTime();
1064
1150
  Cstr = await CstrImport;
@@ -1083,7 +1169,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1083
1169
  try {
1084
1170
  new Cstr(hostRef);
1085
1171
  } catch (e) {
1086
- consoleError(e);
1172
+ consoleError(e, elm);
1087
1173
  }
1088
1174
  {
1089
1175
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1092,11 +1178,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1092
1178
  hostRef.$flags$ |= 128 /* isWatchReady */;
1093
1179
  }
1094
1180
  endNewInstance();
1095
- fireConnectedCallback(hostRef.$lazyInstance$);
1096
- } else {
1097
- Cstr = elm.constructor;
1098
- const cmpTag = elm.localName;
1099
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1181
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1100
1182
  }
1101
1183
  if (Cstr && Cstr.style) {
1102
1184
  let style;
@@ -1119,9 +1201,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1119
1201
  schedule();
1120
1202
  }
1121
1203
  };
1122
- var fireConnectedCallback = (instance) => {
1204
+ var fireConnectedCallback = (instance, elm) => {
1123
1205
  {
1124
- safeCall(instance, "connectedCallback");
1206
+ safeCall(instance, "connectedCallback", void 0, elm);
1125
1207
  }
1126
1208
  };
1127
1209
 
@@ -1157,17 +1239,17 @@ var connectedCallback = (elm) => {
1157
1239
  } else {
1158
1240
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1159
1241
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1160
- fireConnectedCallback(hostRef.$lazyInstance$);
1242
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1161
1243
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1162
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1244
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1163
1245
  }
1164
1246
  }
1165
1247
  endConnected();
1166
1248
  }
1167
1249
  };
1168
- var disconnectInstance = (instance) => {
1250
+ var disconnectInstance = (instance, elm) => {
1169
1251
  {
1170
- safeCall(instance, "disconnectedCallback");
1252
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1171
1253
  }
1172
1254
  };
1173
1255
  var disconnectedCallback = async (elm) => {
@@ -1180,11 +1262,17 @@ var disconnectedCallback = async (elm) => {
1180
1262
  }
1181
1263
  }
1182
1264
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1183
- disconnectInstance(hostRef.$lazyInstance$);
1265
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1184
1266
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1185
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1267
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1186
1268
  }
1187
1269
  }
1270
+ if (rootAppliedStyles.has(elm)) {
1271
+ rootAppliedStyles.delete(elm);
1272
+ }
1273
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1274
+ rootAppliedStyles.delete(elm.shadowRoot);
1275
+ }
1188
1276
  };
1189
1277
 
1190
1278
  // src/runtime/bootstrap-lazy.ts
@@ -1269,6 +1357,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1269
1357
  }
1270
1358
  disconnectedCallback() {
1271
1359
  plt.jmp(() => disconnectedCallback(this));
1360
+ plt.raf(() => {
1361
+ var _a3;
1362
+ const hostRef = getHostRef(this);
1363
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1364
+ delete hostRef.$vnode$.$elm$;
1365
+ }
1366
+ });
1272
1367
  }
1273
1368
  componentOnReady() {
1274
1369
  return getHostRef(this).$onReadyPromise$;
@@ -1332,7 +1427,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1332
1427
  }
1333
1428
  }
1334
1429
  } catch (e) {
1335
- consoleError(e);
1430
+ consoleError(e, hostRef.$hostElement$);
1336
1431
  }
1337
1432
  };
1338
1433
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3ecbfc1b.js');
5
+ const index = require('./index-19471764.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3ecbfc1b.js');
5
+ const index = require('./index-19471764.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-game-page.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [