@everymatrix/lottery-ticket 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/cjs/{index-d550a71c.js → index-5792d6e6.js} +72 -173
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet_3.cjs.entry.js +7250 -6926
  4. package/dist/cjs/lottery-ticket.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/lottery-ticket/lottery-ticket.js +16 -55
  7. package/dist/esm/{index-d2d50ea2.js → index-7ea73aed.js} +72 -173
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet_3.entry.js +7250 -6926
  10. package/dist/esm/lottery-ticket.js +3 -3
  11. package/dist/lottery-ticket/lottery-ticket.esm.js +1 -1
  12. package/dist/lottery-ticket/p-bb1d3444.entry.js +3439 -0
  13. package/dist/lottery-ticket/p-bb1f6b6a.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/lottery-ticket/p-383a9881.js +0 -2
  18. package/dist/lottery-ticket/p-e72bc551.entry.js +0 -2727
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/packages/stencil/lottery-ticket/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket/.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/lottery-ticket/.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/lottery-ticket/.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 = 'lottery-ticket';
24
- const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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: false, propNumber: true, 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* lottery-ticket */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, 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: false, propNumber: true, 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: true, 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 : {};
@@ -177,6 +166,12 @@ var flush = () => {
177
166
  };
178
167
  var nextTick = (cb) => promiseResolve().then(cb);
179
168
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
+
170
+ // src/utils/constants.ts
171
+ var EMPTY_OBJ = {};
172
+
173
+ // src/utils/helpers.ts
174
+ var isDef = (v) => v != null;
180
175
  var isComplexType = (o) => {
181
176
  o = typeof o;
182
177
  return o === "object" || o === "function";
@@ -380,7 +375,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
380
375
  }
381
376
  if (!appliedStyles.has(scopeId2)) {
382
377
  {
383
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
378
+ styleElm = doc.createElement("style");
384
379
  styleElm.innerHTML = style;
385
380
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
386
381
  if (nonce != null) {
@@ -390,10 +385,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
390
385
  if (styleContainerNode.nodeName === "HEAD") {
391
386
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
392
387
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
393
- styleContainerNode.insertBefore(
394
- styleElm,
395
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
396
- );
388
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
397
389
  } else if ("host" in styleContainerNode) {
398
390
  if (supportsConstructableStylesheets) {
399
391
  const stylesheet = new CSSStyleSheet();
@@ -411,7 +403,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
411
403
  styleContainerNode.append(styleElm);
412
404
  }
413
405
  }
414
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
406
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
415
407
  styleContainerNode.insertBefore(styleElm, null);
416
408
  }
417
409
  }
@@ -436,25 +428,23 @@ var attachStyles = (hostRef) => {
436
428
  const scopeId2 = addStyle(
437
429
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
438
430
  cmpMeta);
439
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
431
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
440
432
  elm["s-sc"] = scopeId2;
441
433
  elm.classList.add(scopeId2 + "-h");
442
434
  }
443
435
  endAttachStyles();
444
436
  };
445
437
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
446
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
438
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
439
  if (oldValue !== newValue) {
448
440
  let isProp = isMemberInElement(elm, memberName);
449
441
  let ln = memberName.toLowerCase();
450
442
  if (memberName === "class") {
451
443
  const classList = elm.classList;
452
444
  const oldClasses = parseClassList(oldValue);
453
- let newClasses = parseClassList(newValue);
454
- {
455
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
456
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
- }
445
+ const newClasses = parseClassList(newValue);
446
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
447
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
448
  } else if (memberName === "style") {
459
449
  {
460
450
  for (const prop in oldValue) {
@@ -513,7 +503,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
513
503
  elm.setAttribute(memberName, n);
514
504
  }
515
505
  }
516
- } else if (elm[memberName] !== newValue) {
506
+ } else {
517
507
  elm[memberName] = newValue;
518
508
  }
519
509
  } catch (e) {
@@ -535,44 +525,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
535
525
  }
536
526
  };
537
527
  var parseClassListRegex = /\s/;
538
- var parseClassList = (value) => {
539
- if (typeof value === "object" && value && "baseVal" in value) {
540
- value = value.baseVal;
541
- }
542
- if (!value || typeof value !== "string") {
543
- return [];
544
- }
545
- return value.split(parseClassListRegex);
546
- };
528
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
547
529
  var CAPTURE_EVENT_SUFFIX = "Capture";
548
530
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
549
531
 
550
532
  // src/runtime/vdom/update-element.ts
551
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
533
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
552
534
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
553
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
554
- const newVnodeAttrs = newVnode.$attrs$ || {};
535
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
536
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
555
537
  {
556
538
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
557
539
  if (!(memberName in newVnodeAttrs)) {
558
- setAccessor(
559
- elm,
560
- memberName,
561
- oldVnodeAttrs[memberName],
562
- void 0,
563
- isSvgMode2,
564
- newVnode.$flags$);
540
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
565
541
  }
566
542
  }
567
543
  }
568
544
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
569
- setAccessor(
570
- elm,
571
- memberName,
572
- oldVnodeAttrs[memberName],
573
- newVnodeAttrs[memberName],
574
- isSvgMode2,
575
- newVnode.$flags$);
545
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
576
546
  }
577
547
  };
578
548
  function sortedAttrNames(attrNames) {
@@ -584,10 +554,13 @@ function sortedAttrNames(attrNames) {
584
554
  attrNames
585
555
  );
586
556
  }
557
+
558
+ // src/runtime/vdom/vdom-render.ts
559
+ var scopeId;
587
560
  var hostTagName;
588
561
  var useNativeShadowDom = false;
589
562
  var isSvgMode = false;
590
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
563
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
591
564
  const newVNode2 = newParentVNode.$children$[childIndex];
592
565
  let i2 = 0;
593
566
  let elm;
@@ -601,6 +574,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
601
574
  {
602
575
  updateElement(null, newVNode2, isSvgMode);
603
576
  }
577
+ const rootNode = elm.getRootNode();
578
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
579
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
580
+ elm.classList.add(elm["s-si"] = scopeId);
581
+ }
604
582
  if (newVNode2.$children$) {
605
583
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
606
584
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -730,9 +708,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
730
708
  if (!isInitialRender) {
731
709
  return leftVNode.$key$ === rightVNode.$key$;
732
710
  }
733
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
734
- leftVNode.$key$ = rightVNode.$key$;
735
- }
736
711
  return true;
737
712
  }
738
713
  return false;
@@ -772,9 +747,8 @@ var nullifyVNodeRefs = (vNode) => {
772
747
  }
773
748
  };
774
749
  var insertBefore = (parent, newNode, reference) => {
775
- {
776
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
777
- }
750
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
751
+ return inserted;
778
752
  };
779
753
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
780
754
  const hostElm = hostRef.$hostElement$;
@@ -799,21 +773,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
799
773
  rootVnode.$flags$ |= 4 /* isHost */;
800
774
  hostRef.$vnode$ = rootVnode;
801
775
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
802
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
776
+ {
777
+ scopeId = hostElm["s-sc"];
778
+ }
779
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
803
780
  patch(oldVNode, rootVnode, isInitialLoad);
804
781
  };
805
782
 
806
783
  // src/runtime/update-component.ts
807
784
  var attachToAncestor = (hostRef, ancestorComponent) => {
808
785
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
809
- const index = ancestorComponent["s-p"].push(
810
- new Promise(
811
- (r) => hostRef.$onRenderResolve$ = () => {
812
- ancestorComponent["s-p"].splice(index - 1, 1);
813
- r();
814
- }
815
- )
816
- );
786
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
817
787
  }
818
788
  };
819
789
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -842,12 +812,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
842
812
  {
843
813
  hostRef.$flags$ |= 256 /* isListenReady */;
844
814
  if (hostRef.$queuedListeners$) {
845
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
815
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
846
816
  hostRef.$queuedListeners$ = void 0;
847
817
  }
848
818
  }
849
819
  {
850
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
820
+ maybePromise = safeCall(instance, "componentWillLoad");
851
821
  }
852
822
  }
853
823
  endSchedule();
@@ -916,7 +886,7 @@ var postUpdateComponent = (hostRef) => {
916
886
  const instance = hostRef.$lazyInstance$ ;
917
887
  const ancestorComponent = hostRef.$ancestorComponent$;
918
888
  {
919
- safeCall(instance, "componentDidRender", void 0, elm);
889
+ safeCall(instance, "componentDidRender");
920
890
  }
921
891
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
922
892
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -945,14 +915,17 @@ var postUpdateComponent = (hostRef) => {
945
915
  }
946
916
  };
947
917
  var appDidLoad = (who) => {
918
+ {
919
+ addHydratedFlag(doc.documentElement);
920
+ }
948
921
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
949
922
  };
950
- var safeCall = (instance, method, arg, elm) => {
923
+ var safeCall = (instance, method, arg) => {
951
924
  if (instance && instance[method]) {
952
925
  try {
953
926
  return instance[method](arg);
954
927
  } catch (e) {
955
- consoleError(e, elm);
928
+ consoleError(e);
956
929
  }
957
930
  }
958
931
  return void 0;
@@ -1011,68 +984,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1011
984
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1012
985
  members.map(([memberName, [memberFlags]]) => {
1013
986
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1014
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1015
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1016
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1017
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1018
- Object.defineProperty(prototype, memberName, {
1019
- get() {
1020
- {
1021
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1022
- return getValue(this, memberName);
1023
- }
1024
- const ref = getHostRef(this);
1025
- const instance = ref ? ref.$lazyInstance$ : prototype;
1026
- if (!instance) return;
1027
- return instance[memberName];
1028
- }
1029
- },
1030
- configurable: true,
1031
- enumerable: true
1032
- });
1033
- }
1034
987
  Object.defineProperty(prototype, memberName, {
988
+ get() {
989
+ return getValue(this, memberName);
990
+ },
1035
991
  set(newValue) {
1036
- const ref = getHostRef(this);
1037
- if (origSetter) {
1038
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1039
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1040
- newValue = ref.$instanceValues$.get(memberName);
1041
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1042
- ref.$instanceValues$.set(memberName, currentValue);
1043
- }
1044
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1045
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1046
- setValue(this, memberName, newValue, cmpMeta);
1047
- return;
1048
- }
1049
- {
1050
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1051
- setValue(this, memberName, newValue, cmpMeta);
1052
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1053
- ref.$onReadyPromise$.then(() => {
1054
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1055
- ref.$lazyInstance$[memberName] = newValue;
1056
- }
1057
- });
1058
- }
1059
- return;
1060
- }
1061
- const setterSetVal = () => {
1062
- const currentValue = ref.$lazyInstance$[memberName];
1063
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1064
- ref.$instanceValues$.set(memberName, currentValue);
1065
- }
1066
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1067
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1068
- };
1069
- if (ref.$lazyInstance$) {
1070
- setterSetVal();
1071
- } else {
1072
- ref.$onReadyPromise$.then(() => setterSetVal());
1073
- }
1074
- }
1075
- }
992
+ setValue(this, memberName, newValue, cmpMeta);
993
+ },
994
+ configurable: true,
995
+ enumerable: true
1076
996
  });
1077
997
  }
1078
998
  });
@@ -1082,7 +1002,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1082
1002
  plt.jmp(() => {
1083
1003
  var _a2;
1084
1004
  const propName = attrNameToPropName.get(attrName);
1085
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1005
+ if (this.hasOwnProperty(propName)) {
1086
1006
  newValue = this[propName];
1087
1007
  delete this[propName];
1088
1008
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1102,11 +1022,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1102
1022
  }
1103
1023
  return;
1104
1024
  }
1105
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1106
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1107
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1108
- this[propName] = newValue;
1109
- }
1025
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1110
1026
  });
1111
1027
  };
1112
1028
  Cstr.observedAttributes = Array.from(
@@ -1135,7 +1051,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1135
1051
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1136
1052
  const bundleId = cmpMeta.$lazyBundleId$;
1137
1053
  if (bundleId) {
1138
- const CstrImport = loadModule(cmpMeta, hostRef);
1054
+ const CstrImport = loadModule(cmpMeta);
1139
1055
  if (CstrImport && "then" in CstrImport) {
1140
1056
  const endLoad = uniqueTime();
1141
1057
  Cstr = await CstrImport;
@@ -1160,7 +1076,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1160
1076
  try {
1161
1077
  new Cstr(hostRef);
1162
1078
  } catch (e) {
1163
- consoleError(e, elm);
1079
+ consoleError(e);
1164
1080
  }
1165
1081
  {
1166
1082
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1169,7 +1085,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1169
1085
  hostRef.$flags$ |= 128 /* isWatchReady */;
1170
1086
  }
1171
1087
  endNewInstance();
1172
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1088
+ fireConnectedCallback(hostRef.$lazyInstance$);
1173
1089
  } else {
1174
1090
  Cstr = elm.constructor;
1175
1091
  const cmpTag = elm.localName;
@@ -1196,9 +1112,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1196
1112
  schedule();
1197
1113
  }
1198
1114
  };
1199
- var fireConnectedCallback = (instance, elm) => {
1115
+ var fireConnectedCallback = (instance) => {
1200
1116
  {
1201
- safeCall(instance, "connectedCallback", void 0, elm);
1117
+ safeCall(instance, "connectedCallback");
1202
1118
  }
1203
1119
  };
1204
1120
 
@@ -1234,15 +1150,15 @@ var connectedCallback = (elm) => {
1234
1150
  } else {
1235
1151
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1236
1152
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1237
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1153
+ fireConnectedCallback(hostRef.$lazyInstance$);
1238
1154
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1239
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1155
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1240
1156
  }
1241
1157
  }
1242
1158
  endConnected();
1243
1159
  }
1244
1160
  };
1245
- var disconnectInstance = (instance, elm) => {
1161
+ var disconnectInstance = (instance) => {
1246
1162
  };
1247
1163
  var disconnectedCallback = async (elm) => {
1248
1164
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1257,12 +1173,6 @@ var disconnectedCallback = async (elm) => {
1257
1173
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1258
1174
  }
1259
1175
  }
1260
- if (rootAppliedStyles.has(elm)) {
1261
- rootAppliedStyles.delete(elm);
1262
- }
1263
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1264
- rootAppliedStyles.delete(elm.shadowRoot);
1265
- }
1266
1176
  };
1267
1177
 
1268
1178
  // src/runtime/bootstrap-lazy.ts
@@ -1347,17 +1257,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1347
1257
  }
1348
1258
  disconnectedCallback() {
1349
1259
  plt.jmp(() => disconnectedCallback(this));
1350
- plt.raf(() => {
1351
- var _a3;
1352
- const hostRef = getHostRef(this);
1353
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1354
- if (i2 > -1) {
1355
- deferredConnectedCallbacks.splice(i2, 1);
1356
- }
1357
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1358
- delete hostRef.$vnode$.$elm$;
1359
- }
1360
- });
1361
1260
  }
1362
1261
  componentOnReady() {
1363
1262
  return getHostRef(this).$onReadyPromise$;
@@ -1421,7 +1320,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1421
1320
  }
1422
1321
  }
1423
1322
  } catch (e) {
1424
- consoleError(e, hostRef.$hostElement$);
1323
+ consoleError(e);
1425
1324
  }
1426
1325
  };
1427
1326
  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-d550a71c.js');
5
+ const index = require('./index-5792d6e6.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {