@everymatrix/user-login 1.56.0 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/{index-a6009b28.js → index-2eb404c0.js} +71 -208
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/user-login.cjs.entry.js +246 -346
  4. package/dist/cjs/user-login.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/user-login/user-login.js +40 -127
  7. package/dist/collection/utils/locale.utils.js +156 -144
  8. package/dist/esm/{index-19313d5e.js → index-996f8854.js} +71 -208
  9. package/dist/esm/loader.js +2 -2
  10. package/dist/esm/user-login.entry.js +246 -346
  11. package/dist/esm/user-login.js +3 -3
  12. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +2 -0
  13. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +2 -0
  14. package/dist/types/components/user-login/user-login.d.ts +1 -1
  15. package/dist/types/stencil-public-runtime.d.ts +0 -6
  16. package/dist/user-login/p-8cb697c3.js +2 -0
  17. package/dist/user-login/{p-49fced52.entry.js → p-ae8e5f4e.entry.js} +130 -132
  18. package/dist/user-login/user-login.esm.js +1 -1
  19. package/package.json +1 -1
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +0 -2
  22. package/dist/user-login/p-614af01b.js +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'user-login';
24
- const BUILD = /* user-login */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* user-login */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | 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/utils/constants.ts
36
- var SVG_NS = "http://www.w3.org/2000/svg";
37
- var HTML_NS = "http://www.w3.org/1999/xhtml";
38
-
39
- // src/client/client-host-ref.ts
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var win = typeof window !== "undefined" ? window : {};
@@ -165,6 +150,14 @@ var flush = () => {
165
150
  };
166
151
  var nextTick = (cb) => promiseResolve().then(cb);
167
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+ var SVG_NS = "http://www.w3.org/2000/svg";
157
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
158
+
159
+ // src/utils/helpers.ts
160
+ var isDef = (v) => v != null;
168
161
  var isComplexType = (o) => {
169
162
  o = typeof o;
170
163
  return o === "object" || o === "function";
@@ -346,40 +339,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
346
339
  }
347
340
  if (!appliedStyles.has(scopeId2)) {
348
341
  {
349
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
342
+ styleElm = doc.createElement("style");
350
343
  styleElm.innerHTML = style;
351
344
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
352
345
  if (nonce != null) {
353
346
  styleElm.setAttribute("nonce", nonce);
354
347
  }
355
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
356
- if (styleContainerNode.nodeName === "HEAD") {
357
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
358
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
359
- styleContainerNode.insertBefore(
360
- styleElm,
361
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
362
- );
363
- } else if ("host" in styleContainerNode) {
364
- if (supportsConstructableStylesheets) {
365
- const stylesheet = new CSSStyleSheet();
366
- stylesheet.replaceSync(style);
367
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
368
- } else {
369
- const existingStyleContainer = styleContainerNode.querySelector("style");
370
- if (existingStyleContainer) {
371
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
372
- } else {
373
- styleContainerNode.prepend(styleElm);
374
- }
375
- }
376
- } else {
377
- styleContainerNode.append(styleElm);
378
- }
379
- }
380
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
381
- styleContainerNode.insertBefore(styleElm, null);
382
- }
348
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
383
349
  }
384
350
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
385
351
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -402,25 +368,23 @@ var attachStyles = (hostRef) => {
402
368
  const scopeId2 = addStyle(
403
369
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
404
370
  cmpMeta);
405
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
371
+ if (flags & 10 /* needsScopedEncapsulation */) {
406
372
  elm["s-sc"] = scopeId2;
407
373
  elm.classList.add(scopeId2 + "-h");
408
374
  }
409
375
  endAttachStyles();
410
376
  };
411
377
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
412
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
378
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
413
379
  if (oldValue !== newValue) {
414
380
  let isProp = isMemberInElement(elm, memberName);
415
381
  let ln = memberName.toLowerCase();
416
382
  if (memberName === "class") {
417
383
  const classList = elm.classList;
418
384
  const oldClasses = parseClassList(oldValue);
419
- let newClasses = parseClassList(newValue);
420
- {
421
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
423
- }
385
+ const newClasses = parseClassList(newValue);
386
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
387
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
424
388
  } else if (memberName === "key") ; else if (memberName === "ref") {
425
389
  if (newValue) {
426
390
  newValue(elm);
@@ -452,13 +416,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
452
416
  if (memberName === "list") {
453
417
  isProp = false;
454
418
  } else if (oldValue == null || elm[memberName] != n) {
455
- if (typeof elm.__lookupSetter__(memberName) === "function") {
456
- elm[memberName] = n;
457
- } else {
458
- elm.setAttribute(memberName, n);
459
- }
419
+ elm[memberName] = n;
460
420
  }
461
- } else if (elm[memberName] !== newValue) {
421
+ } else {
462
422
  elm[memberName] = newValue;
463
423
  }
464
424
  } catch (e) {
@@ -480,44 +440,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
480
440
  }
481
441
  };
482
442
  var parseClassListRegex = /\s/;
483
- var parseClassList = (value) => {
484
- if (typeof value === "object" && value && "baseVal" in value) {
485
- value = value.baseVal;
486
- }
487
- if (!value || typeof value !== "string") {
488
- return [];
489
- }
490
- return value.split(parseClassListRegex);
491
- };
443
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
492
444
  var CAPTURE_EVENT_SUFFIX = "Capture";
493
445
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
494
446
 
495
447
  // src/runtime/vdom/update-element.ts
496
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
448
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
497
449
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
498
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
499
- const newVnodeAttrs = newVnode.$attrs$ || {};
450
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
451
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
500
452
  {
501
453
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
502
454
  if (!(memberName in newVnodeAttrs)) {
503
- setAccessor(
504
- elm,
505
- memberName,
506
- oldVnodeAttrs[memberName],
507
- void 0,
508
- isSvgMode2,
509
- newVnode.$flags$);
455
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
510
456
  }
511
457
  }
512
458
  }
513
459
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
514
- setAccessor(
515
- elm,
516
- memberName,
517
- oldVnodeAttrs[memberName],
518
- newVnodeAttrs[memberName],
519
- isSvgMode2,
520
- newVnode.$flags$);
460
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
521
461
  }
522
462
  };
523
463
  function sortedAttrNames(attrNames) {
@@ -529,10 +469,13 @@ function sortedAttrNames(attrNames) {
529
469
  attrNames
530
470
  );
531
471
  }
472
+
473
+ // src/runtime/vdom/vdom-render.ts
474
+ var scopeId;
532
475
  var hostTagName;
533
476
  var useNativeShadowDom = false;
534
477
  var isSvgMode = false;
535
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
478
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
536
479
  const newVNode2 = newParentVNode.$children$[childIndex];
537
480
  let i2 = 0;
538
481
  let elm;
@@ -553,6 +496,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
553
496
  {
554
497
  updateElement(null, newVNode2, isSvgMode);
555
498
  }
499
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
500
+ elm.classList.add(elm["s-si"] = scopeId);
501
+ }
556
502
  if (newVNode2.$children$) {
557
503
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
558
504
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -689,9 +635,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
689
635
  if (!isInitialRender) {
690
636
  return leftVNode.$key$ === rightVNode.$key$;
691
637
  }
692
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
693
- leftVNode.$key$ = rightVNode.$key$;
694
- }
695
638
  return true;
696
639
  }
697
640
  return false;
@@ -718,10 +661,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
718
661
  elm.textContent = "";
719
662
  }
720
663
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
721
- } else if (
722
- // don't do this on initial render as it can cause non-hydrated content to be removed
723
- !isInitialRender && BUILD.updatable && oldChildren !== null
724
- ) {
664
+ } else if (oldChildren !== null) {
725
665
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
726
666
  }
727
667
  if (isSvgMode && tag === "svg") {
@@ -738,9 +678,8 @@ var nullifyVNodeRefs = (vNode) => {
738
678
  }
739
679
  };
740
680
  var insertBefore = (parent, newNode, reference) => {
741
- {
742
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
743
- }
681
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
682
+ return inserted;
744
683
  };
745
684
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
746
685
  const hostElm = hostRef.$hostElement$;
@@ -765,21 +704,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
765
704
  rootVnode.$flags$ |= 4 /* isHost */;
766
705
  hostRef.$vnode$ = rootVnode;
767
706
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
768
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
707
+ {
708
+ scopeId = hostElm["s-sc"];
709
+ }
710
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
769
711
  patch(oldVNode, rootVnode, isInitialLoad);
770
712
  };
771
713
 
772
714
  // src/runtime/update-component.ts
773
715
  var attachToAncestor = (hostRef, ancestorComponent) => {
774
716
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
775
- const index = ancestorComponent["s-p"].push(
776
- new Promise(
777
- (r) => hostRef.$onRenderResolve$ = () => {
778
- ancestorComponent["s-p"].splice(index - 1, 1);
779
- r();
780
- }
781
- )
782
- );
717
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
783
718
  }
784
719
  };
785
720
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -806,7 +741,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
806
741
  let maybePromise;
807
742
  if (isInitialLoad) {
808
743
  {
809
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
744
+ maybePromise = safeCall(instance, "componentWillLoad");
810
745
  }
811
746
  }
812
747
  endSchedule();
@@ -880,7 +815,7 @@ var postUpdateComponent = (hostRef) => {
880
815
  addHydratedFlag(elm);
881
816
  }
882
817
  {
883
- safeCall(instance, "componentDidLoad", void 0, elm);
818
+ safeCall(instance, "componentDidLoad");
884
819
  }
885
820
  endPostUpdate();
886
821
  {
@@ -904,14 +839,17 @@ var postUpdateComponent = (hostRef) => {
904
839
  }
905
840
  };
906
841
  var appDidLoad = (who) => {
842
+ {
843
+ addHydratedFlag(doc.documentElement);
844
+ }
907
845
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
908
846
  };
909
- var safeCall = (instance, method, arg, elm) => {
847
+ var safeCall = (instance, method, arg) => {
910
848
  if (instance && instance[method]) {
911
849
  try {
912
850
  return instance[method](arg);
913
851
  } catch (e) {
914
- consoleError(e, elm);
852
+ consoleError(e);
915
853
  }
916
854
  }
917
855
  return void 0;
@@ -970,68 +908,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
970
908
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
971
909
  members.map(([memberName, [memberFlags]]) => {
972
910
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
973
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
974
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
975
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
976
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
977
- Object.defineProperty(prototype, memberName, {
978
- get() {
979
- {
980
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
981
- return getValue(this, memberName);
982
- }
983
- const ref = getHostRef(this);
984
- const instance = ref ? ref.$lazyInstance$ : prototype;
985
- if (!instance) return;
986
- return instance[memberName];
987
- }
988
- },
989
- configurable: true,
990
- enumerable: true
991
- });
992
- }
993
911
  Object.defineProperty(prototype, memberName, {
912
+ get() {
913
+ return getValue(this, memberName);
914
+ },
994
915
  set(newValue) {
995
- const ref = getHostRef(this);
996
- if (origSetter) {
997
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
998
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
999
- newValue = ref.$instanceValues$.get(memberName);
1000
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1001
- ref.$instanceValues$.set(memberName, currentValue);
1002
- }
1003
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1004
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1005
- setValue(this, memberName, newValue, cmpMeta);
1006
- return;
1007
- }
1008
- {
1009
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1010
- setValue(this, memberName, newValue, cmpMeta);
1011
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1012
- ref.$onReadyPromise$.then(() => {
1013
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1014
- ref.$lazyInstance$[memberName] = newValue;
1015
- }
1016
- });
1017
- }
1018
- return;
1019
- }
1020
- const setterSetVal = () => {
1021
- const currentValue = ref.$lazyInstance$[memberName];
1022
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1023
- ref.$instanceValues$.set(memberName, currentValue);
1024
- }
1025
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1026
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1027
- };
1028
- if (ref.$lazyInstance$) {
1029
- setterSetVal();
1030
- } else {
1031
- ref.$onReadyPromise$.then(() => setterSetVal());
1032
- }
1033
- }
1034
- }
916
+ setValue(this, memberName, newValue, cmpMeta);
917
+ },
918
+ configurable: true,
919
+ enumerable: true
1035
920
  });
1036
921
  }
1037
922
  });
@@ -1041,11 +926,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1041
926
  plt.jmp(() => {
1042
927
  var _a2;
1043
928
  const propName = attrNameToPropName.get(attrName);
1044
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
929
+ if (this.hasOwnProperty(propName)) {
1045
930
  newValue = this[propName];
1046
931
  delete this[propName];
1047
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1048
- this[propName] == newValue) {
932
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1049
933
  return;
1050
934
  } else if (propName == null) {
1051
935
  const hostRef = getHostRef(this);
@@ -1061,11 +945,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1061
945
  }
1062
946
  return;
1063
947
  }
1064
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1065
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1066
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1067
- this[propName] = newValue;
1068
- }
948
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1069
949
  });
1070
950
  };
1071
951
  Cstr.observedAttributes = Array.from(
@@ -1094,7 +974,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1094
974
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1095
975
  const bundleId = cmpMeta.$lazyBundleId$;
1096
976
  if (bundleId) {
1097
- const CstrImport = loadModule(cmpMeta, hostRef);
977
+ const CstrImport = loadModule(cmpMeta);
1098
978
  if (CstrImport && "then" in CstrImport) {
1099
979
  const endLoad = uniqueTime();
1100
980
  Cstr = await CstrImport;
@@ -1119,7 +999,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1119
999
  try {
1120
1000
  new Cstr(hostRef);
1121
1001
  } catch (e) {
1122
- consoleError(e, elm);
1002
+ consoleError(e);
1123
1003
  }
1124
1004
  {
1125
1005
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1154,7 +1034,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1154
1034
  schedule();
1155
1035
  }
1156
1036
  };
1157
- var fireConnectedCallback = (instance, elm) => {
1037
+ var fireConnectedCallback = (instance) => {
1158
1038
  };
1159
1039
 
1160
1040
  // src/runtime/connected-callback.ts
@@ -1194,26 +1074,20 @@ var connectedCallback = (elm) => {
1194
1074
  endConnected();
1195
1075
  }
1196
1076
  };
1197
- var disconnectInstance = (instance, elm) => {
1077
+ var disconnectInstance = (instance) => {
1198
1078
  {
1199
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1079
+ safeCall(instance, "disconnectedCallback");
1200
1080
  }
1201
1081
  };
1202
1082
  var disconnectedCallback = async (elm) => {
1203
1083
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1204
1084
  const hostRef = getHostRef(elm);
1205
1085
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1206
- disconnectInstance(hostRef.$lazyInstance$, elm);
1086
+ disconnectInstance(hostRef.$lazyInstance$);
1207
1087
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1208
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1088
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1209
1089
  }
1210
1090
  }
1211
- if (rootAppliedStyles.has(elm)) {
1212
- rootAppliedStyles.delete(elm);
1213
- }
1214
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1215
- rootAppliedStyles.delete(elm.shadowRoot);
1216
- }
1217
1091
  };
1218
1092
 
1219
1093
  // src/runtime/bootstrap-lazy.ts
@@ -1294,17 +1168,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1294
1168
  }
1295
1169
  disconnectedCallback() {
1296
1170
  plt.jmp(() => disconnectedCallback(this));
1297
- plt.raf(() => {
1298
- var _a3;
1299
- const hostRef = getHostRef(this);
1300
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1301
- if (i2 > -1) {
1302
- deferredConnectedCallbacks.splice(i2, 1);
1303
- }
1304
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1305
- delete hostRef.$vnode$.$elm$;
1306
- }
1307
- });
1308
1171
  }
1309
1172
  componentOnReady() {
1310
1173
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-a6009b28.js');
5
+ const index = require('./index-2eb404c0.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {