@everymatrix/user-login 1.55.0 → 1.56.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 (26) hide show
  1. package/dist/cjs/{index-ce110273.js → index-a6009b28.js} +174 -74
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/user-login.cjs.entry.js +11911 -11020
  4. package/dist/cjs/user-login.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/user-login/user-login.js +165 -75
  7. package/dist/esm/{index-824bb999.js → index-19313d5e.js} +174 -74
  8. package/dist/esm/loader.js +3 -3
  9. package/dist/esm/user-login.entry.js +11911 -11020
  10. package/dist/esm/user-login.js +4 -4
  11. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +2 -0
  12. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +2 -0
  13. package/dist/types/components/user-login/user-login.d.ts +4 -18
  14. package/dist/types/components.d.ts +2 -0
  15. package/dist/user-login/p-49fced52.entry.js +2657 -0
  16. package/dist/user-login/p-614af01b.js +2 -0
  17. package/dist/user-login/user-login.esm.js +1 -1
  18. package/package.json +1 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-login/.stencil/packages/stencil/user-login/stencil.config.dev.d.ts +0 -2
  21. package/dist/user-login/p-57aa7a6f.js +0 -2
  22. package/dist/user-login/p-87c4cda6.entry.js +0 -3119
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/user-login/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,17 +1,25 @@
1
1
  const NAMESPACE = 'user-login';
2
- const BUILD = /* user-login */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.26.0 | 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/utils/constants.ts
14
+ var SVG_NS = "http://www.w3.org/2000/svg";
15
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
16
+
17
+ // src/client/client-host-ref.ts
12
18
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
19
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
20
+ var registerInstance = (lazyInstance, hostRef) => {
21
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
+ };
15
23
  var registerHost = (hostElement, cmpMeta) => {
16
24
  const hostRef = {
17
25
  $flags$: 0,
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
32
  hostElement["s-p"] = [];
25
33
  hostElement["s-rc"] = [];
26
34
  }
27
- return hostRefs.set(hostElement, hostRef);
35
+ const ref = hostRefs.set(hostElement, hostRef);
36
+ return ref;
28
37
  };
29
38
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
39
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
70
  /* webpackExclude: /\.system\.entry\.js$/ */
62
71
  /* webpackMode: "lazy" */
63
72
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
73
+ ).then(
74
+ (importedModule) => {
75
+ {
76
+ cmpModules.set(bundleId, importedModule);
77
+ }
78
+ return importedModule[exportName];
79
+ },
80
+ (e) => {
81
+ consoleError(e, hostRef.$hostElement$);
67
82
  }
68
- return importedModule[exportName];
69
- }, consoleError);
83
+ );
70
84
  };
71
85
 
72
86
  // src/client/client-style.ts
73
87
  var styles = /* @__PURE__ */ new Map();
88
+ var HYDRATED_STYLE_ID = "sty-id";
74
89
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
90
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
91
  var win = typeof window !== "undefined" ? window : {};
@@ -128,14 +143,6 @@ var flush = () => {
128
143
  };
129
144
  var nextTick = (cb) => promiseResolve().then(cb);
130
145
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
- var SVG_NS = "http://www.w3.org/2000/svg";
135
- var HTML_NS = "http://www.w3.org/1999/xhtml";
136
-
137
- // src/utils/helpers.ts
138
- var isDef = (v) => v != null;
139
146
  var isComplexType = (o) => {
140
147
  o = typeof o;
141
148
  return o === "object" || o === "function";
@@ -317,7 +324,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
317
324
  }
318
325
  if (!appliedStyles.has(scopeId2)) {
319
326
  {
320
- styleElm = doc.createElement("style");
327
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
321
328
  styleElm.innerHTML = style;
322
329
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
323
330
  if (nonce != null) {
@@ -327,7 +334,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
327
334
  if (styleContainerNode.nodeName === "HEAD") {
328
335
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
329
336
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
330
- styleContainerNode.insertBefore(styleElm, referenceNode2);
337
+ styleContainerNode.insertBefore(
338
+ styleElm,
339
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
340
+ );
331
341
  } else if ("host" in styleContainerNode) {
332
342
  if (supportsConstructableStylesheets) {
333
343
  const stylesheet = new CSSStyleSheet();
@@ -345,7 +355,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
345
355
  styleContainerNode.append(styleElm);
346
356
  }
347
357
  }
348
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
358
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
349
359
  styleContainerNode.insertBefore(styleElm, null);
350
360
  }
351
361
  }
@@ -370,23 +380,25 @@ var attachStyles = (hostRef) => {
370
380
  const scopeId2 = addStyle(
371
381
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
372
382
  cmpMeta);
373
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
383
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
374
384
  elm["s-sc"] = scopeId2;
375
385
  elm.classList.add(scopeId2 + "-h");
376
386
  }
377
387
  endAttachStyles();
378
388
  };
379
389
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
380
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
390
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
381
391
  if (oldValue !== newValue) {
382
392
  let isProp = isMemberInElement(elm, memberName);
383
393
  let ln = memberName.toLowerCase();
384
394
  if (memberName === "class") {
385
395
  const classList = elm.classList;
386
396
  const oldClasses = parseClassList(oldValue);
387
- const newClasses = parseClassList(newValue);
388
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
389
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
397
+ let newClasses = parseClassList(newValue);
398
+ {
399
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
400
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
401
+ }
390
402
  } else if (memberName === "key") ; else if (memberName === "ref") {
391
403
  if (newValue) {
392
404
  newValue(elm);
@@ -424,7 +436,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
424
436
  elm.setAttribute(memberName, n);
425
437
  }
426
438
  }
427
- } else {
439
+ } else if (elm[memberName] !== newValue) {
428
440
  elm[memberName] = newValue;
429
441
  }
430
442
  } catch (e) {
@@ -446,24 +458,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
446
458
  }
447
459
  };
448
460
  var parseClassListRegex = /\s/;
449
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
461
+ var parseClassList = (value) => {
462
+ if (typeof value === "object" && value && "baseVal" in value) {
463
+ value = value.baseVal;
464
+ }
465
+ if (!value || typeof value !== "string") {
466
+ return [];
467
+ }
468
+ return value.split(parseClassListRegex);
469
+ };
450
470
  var CAPTURE_EVENT_SUFFIX = "Capture";
451
471
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
452
472
 
453
473
  // src/runtime/vdom/update-element.ts
454
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
474
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
455
475
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
456
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
457
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
476
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
477
+ const newVnodeAttrs = newVnode.$attrs$ || {};
458
478
  {
459
479
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
460
480
  if (!(memberName in newVnodeAttrs)) {
461
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
481
+ setAccessor(
482
+ elm,
483
+ memberName,
484
+ oldVnodeAttrs[memberName],
485
+ void 0,
486
+ isSvgMode2,
487
+ newVnode.$flags$);
462
488
  }
463
489
  }
464
490
  }
465
491
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
466
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
492
+ setAccessor(
493
+ elm,
494
+ memberName,
495
+ oldVnodeAttrs[memberName],
496
+ newVnodeAttrs[memberName],
497
+ isSvgMode2,
498
+ newVnode.$flags$);
467
499
  }
468
500
  };
469
501
  function sortedAttrNames(attrNames) {
@@ -475,13 +507,10 @@ function sortedAttrNames(attrNames) {
475
507
  attrNames
476
508
  );
477
509
  }
478
-
479
- // src/runtime/vdom/vdom-render.ts
480
- var scopeId;
481
510
  var hostTagName;
482
511
  var useNativeShadowDom = false;
483
512
  var isSvgMode = false;
484
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
513
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
485
514
  const newVNode2 = newParentVNode.$children$[childIndex];
486
515
  let i2 = 0;
487
516
  let elm;
@@ -502,11 +531,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
502
531
  {
503
532
  updateElement(null, newVNode2, isSvgMode);
504
533
  }
505
- const rootNode = elm.getRootNode();
506
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
507
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
508
- elm.classList.add(elm["s-si"] = scopeId);
509
- }
510
534
  if (newVNode2.$children$) {
511
535
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
512
536
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -643,6 +667,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
643
667
  if (!isInitialRender) {
644
668
  return leftVNode.$key$ === rightVNode.$key$;
645
669
  }
670
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
671
+ leftVNode.$key$ = rightVNode.$key$;
672
+ }
646
673
  return true;
647
674
  }
648
675
  return false;
@@ -689,8 +716,9 @@ var nullifyVNodeRefs = (vNode) => {
689
716
  }
690
717
  };
691
718
  var insertBefore = (parent, newNode, reference) => {
692
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
693
- return inserted;
719
+ {
720
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
721
+ }
694
722
  };
695
723
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
696
724
  const hostElm = hostRef.$hostElement$;
@@ -715,17 +743,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
715
743
  rootVnode.$flags$ |= 4 /* isHost */;
716
744
  hostRef.$vnode$ = rootVnode;
717
745
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
718
- {
719
- scopeId = hostElm["s-sc"];
720
- }
721
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
746
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
722
747
  patch(oldVNode, rootVnode, isInitialLoad);
723
748
  };
724
749
 
725
750
  // src/runtime/update-component.ts
726
751
  var attachToAncestor = (hostRef, ancestorComponent) => {
727
752
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
728
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
753
+ const index = ancestorComponent["s-p"].push(
754
+ new Promise(
755
+ (r) => hostRef.$onRenderResolve$ = () => {
756
+ ancestorComponent["s-p"].splice(index - 1, 1);
757
+ r();
758
+ }
759
+ )
760
+ );
729
761
  }
730
762
  };
731
763
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -752,7 +784,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
752
784
  let maybePromise;
753
785
  if (isInitialLoad) {
754
786
  {
755
- maybePromise = safeCall(instance, "componentWillLoad");
787
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
756
788
  }
757
789
  }
758
790
  endSchedule();
@@ -820,16 +852,13 @@ var postUpdateComponent = (hostRef) => {
820
852
  const endPostUpdate = createTime("postUpdate", tagName);
821
853
  const instance = hostRef.$lazyInstance$ ;
822
854
  const ancestorComponent = hostRef.$ancestorComponent$;
823
- {
824
- safeCall(instance, "componentDidRender");
825
- }
826
855
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
827
856
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
828
857
  {
829
858
  addHydratedFlag(elm);
830
859
  }
831
860
  {
832
- safeCall(instance, "componentDidLoad");
861
+ safeCall(instance, "componentDidLoad", void 0, elm);
833
862
  }
834
863
  endPostUpdate();
835
864
  {
@@ -853,17 +882,14 @@ var postUpdateComponent = (hostRef) => {
853
882
  }
854
883
  };
855
884
  var appDidLoad = (who) => {
856
- {
857
- addHydratedFlag(doc.documentElement);
858
- }
859
885
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
860
886
  };
861
- var safeCall = (instance, method, arg) => {
887
+ var safeCall = (instance, method, arg, elm) => {
862
888
  if (instance && instance[method]) {
863
889
  try {
864
890
  return instance[method](arg);
865
891
  } catch (e) {
866
- consoleError(e);
892
+ consoleError(e, elm);
867
893
  }
868
894
  }
869
895
  return void 0;
@@ -922,15 +948,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
922
948
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
923
949
  members.map(([memberName, [memberFlags]]) => {
924
950
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
951
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
952
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
953
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
954
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
955
+ Object.defineProperty(prototype, memberName, {
956
+ get() {
957
+ {
958
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
959
+ return getValue(this, memberName);
960
+ }
961
+ const ref = getHostRef(this);
962
+ const instance = ref ? ref.$lazyInstance$ : prototype;
963
+ if (!instance) return;
964
+ return instance[memberName];
965
+ }
966
+ },
967
+ configurable: true,
968
+ enumerable: true
969
+ });
970
+ }
925
971
  Object.defineProperty(prototype, memberName, {
926
- get() {
927
- return getValue(this, memberName);
928
- },
929
972
  set(newValue) {
930
- setValue(this, memberName, newValue, cmpMeta);
931
- },
932
- configurable: true,
933
- enumerable: true
973
+ const ref = getHostRef(this);
974
+ if (origSetter) {
975
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
976
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
977
+ newValue = ref.$instanceValues$.get(memberName);
978
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
979
+ ref.$instanceValues$.set(memberName, currentValue);
980
+ }
981
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
982
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
983
+ setValue(this, memberName, newValue, cmpMeta);
984
+ return;
985
+ }
986
+ {
987
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
988
+ setValue(this, memberName, newValue, cmpMeta);
989
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
990
+ ref.$onReadyPromise$.then(() => {
991
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
992
+ ref.$lazyInstance$[memberName] = newValue;
993
+ }
994
+ });
995
+ }
996
+ return;
997
+ }
998
+ const setterSetVal = () => {
999
+ const currentValue = ref.$lazyInstance$[memberName];
1000
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1001
+ ref.$instanceValues$.set(memberName, currentValue);
1002
+ }
1003
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1004
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1005
+ };
1006
+ if (ref.$lazyInstance$) {
1007
+ setterSetVal();
1008
+ } else {
1009
+ ref.$onReadyPromise$.then(() => setterSetVal());
1010
+ }
1011
+ }
1012
+ }
934
1013
  });
935
1014
  }
936
1015
  });
@@ -940,7 +1019,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
940
1019
  plt.jmp(() => {
941
1020
  var _a2;
942
1021
  const propName = attrNameToPropName.get(attrName);
943
- if (this.hasOwnProperty(propName)) {
1022
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
944
1023
  newValue = this[propName];
945
1024
  delete this[propName];
946
1025
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -960,7 +1039,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
960
1039
  }
961
1040
  return;
962
1041
  }
963
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1042
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1043
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1044
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1045
+ this[propName] = newValue;
1046
+ }
964
1047
  });
965
1048
  };
966
1049
  Cstr.observedAttributes = Array.from(
@@ -989,7 +1072,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
989
1072
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
990
1073
  const bundleId = cmpMeta.$lazyBundleId$;
991
1074
  if (bundleId) {
992
- const CstrImport = loadModule(cmpMeta);
1075
+ const CstrImport = loadModule(cmpMeta, hostRef);
993
1076
  if (CstrImport && "then" in CstrImport) {
994
1077
  const endLoad = uniqueTime();
995
1078
  Cstr = await CstrImport;
@@ -1014,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1014
1097
  try {
1015
1098
  new Cstr(hostRef);
1016
1099
  } catch (e) {
1017
- consoleError(e);
1100
+ consoleError(e, elm);
1018
1101
  }
1019
1102
  {
1020
1103
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1049,7 +1132,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1049
1132
  schedule();
1050
1133
  }
1051
1134
  };
1052
- var fireConnectedCallback = (instance) => {
1135
+ var fireConnectedCallback = (instance, elm) => {
1053
1136
  };
1054
1137
 
1055
1138
  // src/runtime/connected-callback.ts
@@ -1089,20 +1172,26 @@ var connectedCallback = (elm) => {
1089
1172
  endConnected();
1090
1173
  }
1091
1174
  };
1092
- var disconnectInstance = (instance) => {
1175
+ var disconnectInstance = (instance, elm) => {
1093
1176
  {
1094
- safeCall(instance, "disconnectedCallback");
1177
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1095
1178
  }
1096
1179
  };
1097
1180
  var disconnectedCallback = async (elm) => {
1098
1181
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1099
1182
  const hostRef = getHostRef(elm);
1100
1183
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1101
- disconnectInstance(hostRef.$lazyInstance$);
1184
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1102
1185
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1103
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1186
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1104
1187
  }
1105
1188
  }
1189
+ if (rootAppliedStyles.has(elm)) {
1190
+ rootAppliedStyles.delete(elm);
1191
+ }
1192
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1193
+ rootAppliedStyles.delete(elm.shadowRoot);
1194
+ }
1106
1195
  };
1107
1196
 
1108
1197
  // src/runtime/bootstrap-lazy.ts
@@ -1183,6 +1272,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1183
1272
  }
1184
1273
  disconnectedCallback() {
1185
1274
  plt.jmp(() => disconnectedCallback(this));
1275
+ plt.raf(() => {
1276
+ var _a3;
1277
+ const hostRef = getHostRef(this);
1278
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1279
+ if (i2 > -1) {
1280
+ deferredConnectedCallbacks.splice(i2, 1);
1281
+ }
1282
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1283
+ delete hostRef.$vnode$.$elm$;
1284
+ }
1285
+ });
1186
1286
  }
1187
1287
  componentOnReady() {
1188
1288
  return getHostRef(this).$onReadyPromise$;
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-824bb999.js';
2
- export { s as setNonce } from './index-824bb999.js';
1
+ import { b as bootstrapLazy } from './index-19313d5e.js';
2
+ export { s as setNonce } from './index-19313d5e.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["user-login",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"limitStylingAppends":[32],"errorMessage":[32],"hasError":[32],"userPrefixOptions":[32],"isLoginLoading":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"]}]]]], options);
8
+ return bootstrapLazy([["user-login",[[1,"user-login",{"endpoint":[513],"lang":[1537],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"passwordReset":[513,"password-reset"],"userEmailRegex":[513,"user-email-regex"],"userEmailRegexOptions":[513,"user-email-regex-options"],"userPhoneRegex":[513,"user-phone-regex"],"userPhoneRegexOptions":[513,"user-phone-regex-options"],"passwordRegex":[513,"password-regex"],"passwordRegexOptions":[513,"password-regex-options"],"version":[513],"loginByPhoneNumber":[513,"login-by-phone-number"],"mbSource":[513,"mb-source"],"userNameEmail":[32],"userPassword":[32],"isValidUserEmail":[32],"userPhone":[32],"userPrefix":[32],"isValidPassword":[32],"isValidUserPhone":[32],"isPasswordVisible":[32],"errorMessage":[32],"hasError":[32],"userPrefixOptions":[32],"isLoginLoading":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };