@everymatrix/lottery-grid 1.56.0 → 1.56.2

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 (25) hide show
  1. package/dist/cjs/{index-0019f59e.js → index-066eab2b.js} +71 -206
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet_2.cjs.entry.js +25 -90
  4. package/dist/cjs/lottery-grid.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-grid/lottery-grid.js +17 -102
  7. package/dist/esm/{index-a4a45d0f.js → index-14a3a545.js} +71 -206
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet_2.entry.js +25 -90
  10. package/dist/esm/lottery-grid.js +3 -3
  11. package/dist/lottery-grid/lottery-grid.esm.js +1 -1
  12. package/dist/lottery-grid/p-4d88680c.js +2 -0
  13. package/dist/lottery-grid/p-ae93dcaf.entry.js +1 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/lottery-grid/p-7ec64ea7.entry.js +0 -1
  19. package/dist/lottery-grid/p-eee776b4.js +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'lottery-grid';
2
- const BUILD = /* lottery-grid */ { 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: 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: 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: 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: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* lottery-grid */ { 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: 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: 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: 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: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | 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
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -155,6 +144,12 @@ var flush = () => {
155
144
  };
156
145
  var nextTick = (cb) => promiseResolve().then(cb);
157
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+
151
+ // src/utils/helpers.ts
152
+ var isDef = (v) => v != null;
158
153
  var isComplexType = (o) => {
159
154
  o = typeof o;
160
155
  return o === "object" || o === "function";
@@ -358,40 +353,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
353
  }
359
354
  if (!appliedStyles.has(scopeId2)) {
360
355
  {
361
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
356
+ styleElm = doc.createElement("style");
362
357
  styleElm.innerHTML = style;
363
358
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
364
359
  if (nonce != null) {
365
360
  styleElm.setAttribute("nonce", nonce);
366
361
  }
367
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
368
- if (styleContainerNode.nodeName === "HEAD") {
369
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
370
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
371
- styleContainerNode.insertBefore(
372
- styleElm,
373
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
- );
375
- } else if ("host" in styleContainerNode) {
376
- if (supportsConstructableStylesheets) {
377
- const stylesheet = new CSSStyleSheet();
378
- stylesheet.replaceSync(style);
379
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
380
- } else {
381
- const existingStyleContainer = styleContainerNode.querySelector("style");
382
- if (existingStyleContainer) {
383
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
384
- } else {
385
- styleContainerNode.prepend(styleElm);
386
- }
387
- }
388
- } else {
389
- styleContainerNode.append(styleElm);
390
- }
391
- }
392
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
393
- styleContainerNode.insertBefore(styleElm, null);
394
- }
362
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
395
363
  }
396
364
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
397
365
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -414,25 +382,23 @@ var attachStyles = (hostRef) => {
414
382
  const scopeId2 = addStyle(
415
383
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
416
384
  cmpMeta);
417
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
385
+ if (flags & 10 /* needsScopedEncapsulation */) {
418
386
  elm["s-sc"] = scopeId2;
419
387
  elm.classList.add(scopeId2 + "-h");
420
388
  }
421
389
  endAttachStyles();
422
390
  };
423
391
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
424
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
392
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
425
393
  if (oldValue !== newValue) {
426
394
  let isProp = isMemberInElement(elm, memberName);
427
395
  let ln = memberName.toLowerCase();
428
396
  if (memberName === "class") {
429
397
  const classList = elm.classList;
430
398
  const oldClasses = parseClassList(oldValue);
431
- let newClasses = parseClassList(newValue);
432
- {
433
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
- }
399
+ const newClasses = parseClassList(newValue);
400
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
401
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
436
402
  } else if (memberName === "key") ; else if (memberName === "ref") {
437
403
  if (newValue) {
438
404
  newValue(elm);
@@ -464,13 +430,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
464
430
  if (memberName === "list") {
465
431
  isProp = false;
466
432
  } else if (oldValue == null || elm[memberName] != n) {
467
- if (typeof elm.__lookupSetter__(memberName) === "function") {
468
- elm[memberName] = n;
469
- } else {
470
- elm.setAttribute(memberName, n);
471
- }
433
+ elm[memberName] = n;
472
434
  }
473
- } else if (elm[memberName] !== newValue) {
435
+ } else {
474
436
  elm[memberName] = newValue;
475
437
  }
476
438
  } catch (e) {
@@ -492,44 +454,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
492
454
  }
493
455
  };
494
456
  var parseClassListRegex = /\s/;
495
- var parseClassList = (value) => {
496
- if (typeof value === "object" && value && "baseVal" in value) {
497
- value = value.baseVal;
498
- }
499
- if (!value || typeof value !== "string") {
500
- return [];
501
- }
502
- return value.split(parseClassListRegex);
503
- };
457
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
504
458
  var CAPTURE_EVENT_SUFFIX = "Capture";
505
459
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
506
460
 
507
461
  // src/runtime/vdom/update-element.ts
508
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
462
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
509
463
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
510
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
511
- const newVnodeAttrs = newVnode.$attrs$ || {};
464
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
465
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
512
466
  {
513
467
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
514
468
  if (!(memberName in newVnodeAttrs)) {
515
- setAccessor(
516
- elm,
517
- memberName,
518
- oldVnodeAttrs[memberName],
519
- void 0,
520
- isSvgMode2,
521
- newVnode.$flags$);
469
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
522
470
  }
523
471
  }
524
472
  }
525
473
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
526
- setAccessor(
527
- elm,
528
- memberName,
529
- oldVnodeAttrs[memberName],
530
- newVnodeAttrs[memberName],
531
- isSvgMode2,
532
- newVnode.$flags$);
474
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
533
475
  }
534
476
  };
535
477
  function sortedAttrNames(attrNames) {
@@ -541,10 +483,13 @@ function sortedAttrNames(attrNames) {
541
483
  attrNames
542
484
  );
543
485
  }
486
+
487
+ // src/runtime/vdom/vdom-render.ts
488
+ var scopeId;
544
489
  var hostTagName;
545
490
  var useNativeShadowDom = false;
546
491
  var isSvgMode = false;
547
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
492
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
548
493
  const newVNode2 = newParentVNode.$children$[childIndex];
549
494
  let i2 = 0;
550
495
  let elm;
@@ -558,6 +503,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
558
503
  {
559
504
  updateElement(null, newVNode2, isSvgMode);
560
505
  }
506
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
507
+ elm.classList.add(elm["s-si"] = scopeId);
508
+ }
561
509
  if (newVNode2.$children$) {
562
510
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
563
511
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -687,9 +635,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
687
635
  if (!isInitialRender) {
688
636
  return leftVNode.$key$ === rightVNode.$key$;
689
637
  }
690
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
691
- leftVNode.$key$ = rightVNode.$key$;
692
- }
693
638
  return true;
694
639
  }
695
640
  return false;
@@ -712,10 +657,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
712
657
  elm.textContent = "";
713
658
  }
714
659
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
715
- } else if (
716
- // don't do this on initial render as it can cause non-hydrated content to be removed
717
- !isInitialRender && BUILD.updatable && oldChildren !== null
718
- ) {
660
+ } else if (oldChildren !== null) {
719
661
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
720
662
  }
721
663
  } else if (oldVNode.$text$ !== text) {
@@ -729,9 +671,8 @@ var nullifyVNodeRefs = (vNode) => {
729
671
  }
730
672
  };
731
673
  var insertBefore = (parent, newNode, reference) => {
732
- {
733
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
734
- }
674
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
675
+ return inserted;
735
676
  };
736
677
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
737
678
  const hostElm = hostRef.$hostElement$;
@@ -756,21 +697,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
756
697
  rootVnode.$flags$ |= 4 /* isHost */;
757
698
  hostRef.$vnode$ = rootVnode;
758
699
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
759
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
700
+ {
701
+ scopeId = hostElm["s-sc"];
702
+ }
703
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
760
704
  patch(oldVNode, rootVnode, isInitialLoad);
761
705
  };
762
706
 
763
707
  // src/runtime/update-component.ts
764
708
  var attachToAncestor = (hostRef, ancestorComponent) => {
765
709
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
766
- const index = ancestorComponent["s-p"].push(
767
- new Promise(
768
- (r) => hostRef.$onRenderResolve$ = () => {
769
- ancestorComponent["s-p"].splice(index - 1, 1);
770
- r();
771
- }
772
- )
773
- );
710
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
774
711
  }
775
712
  };
776
713
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -799,7 +736,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
799
736
  {
800
737
  hostRef.$flags$ |= 256 /* isListenReady */;
801
738
  if (hostRef.$queuedListeners$) {
802
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
739
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
803
740
  hostRef.$queuedListeners$ = void 0;
804
741
  }
805
742
  }
@@ -870,7 +807,7 @@ var postUpdateComponent = (hostRef) => {
870
807
  const instance = hostRef.$lazyInstance$ ;
871
808
  const ancestorComponent = hostRef.$ancestorComponent$;
872
809
  {
873
- safeCall(instance, "componentDidRender", void 0, elm);
810
+ safeCall(instance, "componentDidRender");
874
811
  }
875
812
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
876
813
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -899,14 +836,17 @@ var postUpdateComponent = (hostRef) => {
899
836
  }
900
837
  };
901
838
  var appDidLoad = (who) => {
839
+ {
840
+ addHydratedFlag(doc.documentElement);
841
+ }
902
842
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
903
843
  };
904
- var safeCall = (instance, method, arg, elm) => {
844
+ var safeCall = (instance, method, arg) => {
905
845
  if (instance && instance[method]) {
906
846
  try {
907
847
  return instance[method](arg);
908
848
  } catch (e) {
909
- consoleError(e, elm);
849
+ consoleError(e);
910
850
  }
911
851
  }
912
852
  return void 0;
@@ -949,68 +889,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
949
889
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
950
890
  members.map(([memberName, [memberFlags]]) => {
951
891
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
952
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
953
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
954
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
955
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
956
- Object.defineProperty(prototype, memberName, {
957
- get() {
958
- {
959
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
960
- return getValue(this, memberName);
961
- }
962
- const ref = getHostRef(this);
963
- const instance = ref ? ref.$lazyInstance$ : prototype;
964
- if (!instance) return;
965
- return instance[memberName];
966
- }
967
- },
968
- configurable: true,
969
- enumerable: true
970
- });
971
- }
972
892
  Object.defineProperty(prototype, memberName, {
893
+ get() {
894
+ return getValue(this, memberName);
895
+ },
973
896
  set(newValue) {
974
- const ref = getHostRef(this);
975
- if (origSetter) {
976
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
977
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
978
- newValue = ref.$instanceValues$.get(memberName);
979
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
980
- ref.$instanceValues$.set(memberName, currentValue);
981
- }
982
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
983
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
984
- setValue(this, memberName, newValue, cmpMeta);
985
- return;
986
- }
987
- {
988
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
989
- setValue(this, memberName, newValue, cmpMeta);
990
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
991
- ref.$onReadyPromise$.then(() => {
992
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
993
- ref.$lazyInstance$[memberName] = newValue;
994
- }
995
- });
996
- }
997
- return;
998
- }
999
- const setterSetVal = () => {
1000
- const currentValue = ref.$lazyInstance$[memberName];
1001
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1002
- ref.$instanceValues$.set(memberName, currentValue);
1003
- }
1004
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1005
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1006
- };
1007
- if (ref.$lazyInstance$) {
1008
- setterSetVal();
1009
- } else {
1010
- ref.$onReadyPromise$.then(() => setterSetVal());
1011
- }
1012
- }
1013
- }
897
+ setValue(this, memberName, newValue, cmpMeta);
898
+ },
899
+ configurable: true,
900
+ enumerable: true
1014
901
  });
1015
902
  }
1016
903
  });
@@ -1020,11 +907,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1020
907
  plt.jmp(() => {
1021
908
  var _a2;
1022
909
  const propName = attrNameToPropName.get(attrName);
1023
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
910
+ if (this.hasOwnProperty(propName)) {
1024
911
  newValue = this[propName];
1025
912
  delete this[propName];
1026
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1027
- this[propName] == newValue) {
913
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1028
914
  return;
1029
915
  } else if (propName == null) {
1030
916
  const hostRef = getHostRef(this);
@@ -1040,11 +926,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1040
926
  }
1041
927
  return;
1042
928
  }
1043
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1044
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1045
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1046
- this[propName] = newValue;
1047
- }
929
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1048
930
  });
1049
931
  };
1050
932
  Cstr.observedAttributes = Array.from(
@@ -1073,7 +955,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
955
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1074
956
  const bundleId = cmpMeta.$lazyBundleId$;
1075
957
  if (bundleId) {
1076
- const CstrImport = loadModule(cmpMeta, hostRef);
958
+ const CstrImport = loadModule(cmpMeta);
1077
959
  if (CstrImport && "then" in CstrImport) {
1078
960
  const endLoad = uniqueTime();
1079
961
  Cstr = await CstrImport;
@@ -1095,13 +977,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1095
977
  try {
1096
978
  new Cstr(hostRef);
1097
979
  } catch (e) {
1098
- consoleError(e, elm);
980
+ consoleError(e);
1099
981
  }
1100
982
  {
1101
983
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1102
984
  }
1103
985
  endNewInstance();
1104
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
986
+ fireConnectedCallback(hostRef.$lazyInstance$);
1105
987
  } else {
1106
988
  Cstr = elm.constructor;
1107
989
  const cmpTag = elm.localName;
@@ -1128,9 +1010,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1128
1010
  schedule();
1129
1011
  }
1130
1012
  };
1131
- var fireConnectedCallback = (instance, elm) => {
1013
+ var fireConnectedCallback = (instance) => {
1132
1014
  {
1133
- safeCall(instance, "connectedCallback", void 0, elm);
1015
+ safeCall(instance, "connectedCallback");
1134
1016
  }
1135
1017
  };
1136
1018
 
@@ -1166,15 +1048,15 @@ var connectedCallback = (elm) => {
1166
1048
  } else {
1167
1049
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1168
1050
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1169
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1051
+ fireConnectedCallback(hostRef.$lazyInstance$);
1170
1052
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1171
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1053
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1172
1054
  }
1173
1055
  }
1174
1056
  endConnected();
1175
1057
  }
1176
1058
  };
1177
- var disconnectInstance = (instance, elm) => {
1059
+ var disconnectInstance = (instance) => {
1178
1060
  };
1179
1061
  var disconnectedCallback = async (elm) => {
1180
1062
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1189,12 +1071,6 @@ var disconnectedCallback = async (elm) => {
1189
1071
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1190
1072
  }
1191
1073
  }
1192
- if (rootAppliedStyles.has(elm)) {
1193
- rootAppliedStyles.delete(elm);
1194
- }
1195
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1196
- rootAppliedStyles.delete(elm.shadowRoot);
1197
- }
1198
1074
  };
1199
1075
 
1200
1076
  // src/runtime/bootstrap-lazy.ts
@@ -1275,17 +1151,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1275
1151
  }
1276
1152
  disconnectedCallback() {
1277
1153
  plt.jmp(() => disconnectedCallback(this));
1278
- plt.raf(() => {
1279
- var _a3;
1280
- const hostRef = getHostRef(this);
1281
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1282
- if (i2 > -1) {
1283
- deferredConnectedCallbacks.splice(i2, 1);
1284
- }
1285
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1286
- delete hostRef.$vnode$.$elm$;
1287
- }
1288
- });
1289
1154
  }
1290
1155
  componentOnReady() {
1291
1156
  return getHostRef(this).$onReadyPromise$;
@@ -1349,7 +1214,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1349
1214
  }
1350
1215
  }
1351
1216
  } catch (e) {
1352
- consoleError(e, hostRef.$hostElement$);
1217
+ consoleError(e);
1353
1218
  }
1354
1219
  };
1355
1220
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-a4a45d0f.js';
2
- export { s as setNonce } from './index-a4a45d0f.js';
1
+ import { b as bootstrapLazy } from './index-14a3a545.js';
2
+ export { s as setNonce } from './index-14a3a545.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {