@everymatrix/nuts-inbox-widget 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 (27) hide show
  1. package/dist/cjs/{index-5e13b80a.js → index-c16396a3.js} +74 -211
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/nuts-inbox-widget.cjs.js +2 -2
  4. package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +59 -51
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +19 -57
  7. package/dist/collection/components/nuts-notification/nuts-notification.js +24 -50
  8. package/dist/collection/components/nuts-popover/nuts-popover.js +15 -33
  9. package/dist/esm/{index-e14bfa46.js → index-6a331097.js} +74 -211
  10. package/dist/esm/loader.js +2 -2
  11. package/dist/esm/nuts-inbox-widget.js +3 -3
  12. package/dist/esm/nuts-inbox-widget_3.entry.js +59 -51
  13. package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
  14. package/dist/nuts-inbox-widget/p-5f8017ca.entry.js +1 -0
  15. package/dist/nuts-inbox-widget/p-75ed38bb.js +2 -0
  16. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +2 -0
  17. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +2 -0
  18. package/dist/types/stencil-public-runtime.d.ts +0 -6
  19. package/package.json +1 -1
  20. package/dist/nuts-inbox-widget/p-af9bcff0.js +0 -2
  21. package/dist/nuts-inbox-widget/p-fc6b9468.entry.js +0 -1
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +0 -2
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +0 -2
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/index.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  27. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.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 = 'nuts-inbox-widget';
24
- const BUILD = /* nuts-inbox-widget */ { 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: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: 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 = /* nuts-inbox-widget */ { 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: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: 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 : {};
@@ -181,6 +166,14 @@ var flush = () => {
181
166
  };
182
167
  var nextTick = (cb) => promiseResolve().then(cb);
183
168
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
+
170
+ // src/utils/constants.ts
171
+ var EMPTY_OBJ = {};
172
+ var SVG_NS = "http://www.w3.org/2000/svg";
173
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
174
+
175
+ // src/utils/helpers.ts
176
+ var isDef = (v) => v != null;
184
177
  var isComplexType = (o) => {
185
178
  o = typeof o;
186
179
  return o === "object" || o === "function";
@@ -384,40 +377,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
384
377
  }
385
378
  if (!appliedStyles.has(scopeId2)) {
386
379
  {
387
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
380
+ styleElm = doc.createElement("style");
388
381
  styleElm.innerHTML = style;
389
382
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
390
383
  if (nonce != null) {
391
384
  styleElm.setAttribute("nonce", nonce);
392
385
  }
393
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
394
- if (styleContainerNode.nodeName === "HEAD") {
395
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
396
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
397
- styleContainerNode.insertBefore(
398
- styleElm,
399
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
400
- );
401
- } else if ("host" in styleContainerNode) {
402
- if (supportsConstructableStylesheets) {
403
- const stylesheet = new CSSStyleSheet();
404
- stylesheet.replaceSync(style);
405
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
406
- } else {
407
- const existingStyleContainer = styleContainerNode.querySelector("style");
408
- if (existingStyleContainer) {
409
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
410
- } else {
411
- styleContainerNode.prepend(styleElm);
412
- }
413
- }
414
- } else {
415
- styleContainerNode.append(styleElm);
416
- }
417
- }
418
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
419
- styleContainerNode.insertBefore(styleElm, null);
420
- }
386
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
421
387
  }
422
388
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
423
389
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -440,25 +406,23 @@ var attachStyles = (hostRef) => {
440
406
  const scopeId2 = addStyle(
441
407
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
442
408
  cmpMeta);
443
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
409
+ if (flags & 10 /* needsScopedEncapsulation */) {
444
410
  elm["s-sc"] = scopeId2;
445
411
  elm.classList.add(scopeId2 + "-h");
446
412
  }
447
413
  endAttachStyles();
448
414
  };
449
415
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
450
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
416
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
451
417
  if (oldValue !== newValue) {
452
418
  let isProp = isMemberInElement(elm, memberName);
453
419
  let ln = memberName.toLowerCase();
454
420
  if (memberName === "class") {
455
421
  const classList = elm.classList;
456
422
  const oldClasses = parseClassList(oldValue);
457
- let newClasses = parseClassList(newValue);
458
- {
459
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
460
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
461
- }
423
+ const newClasses = parseClassList(newValue);
424
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
462
426
  } else if (memberName === "key") ; else if (memberName === "ref") {
463
427
  if (newValue) {
464
428
  newValue(elm);
@@ -490,13 +454,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
490
454
  if (memberName === "list") {
491
455
  isProp = false;
492
456
  } else if (oldValue == null || elm[memberName] != n) {
493
- if (typeof elm.__lookupSetter__(memberName) === "function") {
494
- elm[memberName] = n;
495
- } else {
496
- elm.setAttribute(memberName, n);
497
- }
457
+ elm[memberName] = n;
498
458
  }
499
- } else if (elm[memberName] !== newValue) {
459
+ } else {
500
460
  elm[memberName] = newValue;
501
461
  }
502
462
  } catch (e) {
@@ -518,44 +478,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
518
478
  }
519
479
  };
520
480
  var parseClassListRegex = /\s/;
521
- var parseClassList = (value) => {
522
- if (typeof value === "object" && value && "baseVal" in value) {
523
- value = value.baseVal;
524
- }
525
- if (!value || typeof value !== "string") {
526
- return [];
527
- }
528
- return value.split(parseClassListRegex);
529
- };
481
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
530
482
  var CAPTURE_EVENT_SUFFIX = "Capture";
531
483
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
532
484
 
533
485
  // src/runtime/vdom/update-element.ts
534
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
486
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
535
487
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
536
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
537
- const newVnodeAttrs = newVnode.$attrs$ || {};
488
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
489
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
538
490
  {
539
491
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
540
492
  if (!(memberName in newVnodeAttrs)) {
541
- setAccessor(
542
- elm,
543
- memberName,
544
- oldVnodeAttrs[memberName],
545
- void 0,
546
- isSvgMode2,
547
- newVnode.$flags$);
493
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
548
494
  }
549
495
  }
550
496
  }
551
497
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
552
- setAccessor(
553
- elm,
554
- memberName,
555
- oldVnodeAttrs[memberName],
556
- newVnodeAttrs[memberName],
557
- isSvgMode2,
558
- newVnode.$flags$);
498
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
559
499
  }
560
500
  };
561
501
  function sortedAttrNames(attrNames) {
@@ -567,10 +507,13 @@ function sortedAttrNames(attrNames) {
567
507
  attrNames
568
508
  );
569
509
  }
510
+
511
+ // src/runtime/vdom/vdom-render.ts
512
+ var scopeId;
570
513
  var hostTagName;
571
514
  var useNativeShadowDom = false;
572
515
  var isSvgMode = false;
573
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
516
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
574
517
  const newVNode2 = newParentVNode.$children$[childIndex];
575
518
  let i2 = 0;
576
519
  let elm;
@@ -591,6 +534,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
591
534
  {
592
535
  updateElement(null, newVNode2, isSvgMode);
593
536
  }
537
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
538
+ elm.classList.add(elm["s-si"] = scopeId);
539
+ }
594
540
  if (newVNode2.$children$) {
595
541
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
596
542
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -727,9 +673,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
727
673
  if (!isInitialRender) {
728
674
  return leftVNode.$key$ === rightVNode.$key$;
729
675
  }
730
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
731
- leftVNode.$key$ = rightVNode.$key$;
732
- }
733
676
  return true;
734
677
  }
735
678
  return false;
@@ -756,10 +699,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
756
699
  elm.textContent = "";
757
700
  }
758
701
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
759
- } else if (
760
- // don't do this on initial render as it can cause non-hydrated content to be removed
761
- !isInitialRender && BUILD.updatable && oldChildren !== null
762
- ) {
702
+ } else if (oldChildren !== null) {
763
703
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
764
704
  }
765
705
  if (isSvgMode && tag === "svg") {
@@ -776,9 +716,8 @@ var nullifyVNodeRefs = (vNode) => {
776
716
  }
777
717
  };
778
718
  var insertBefore = (parent, newNode, reference) => {
779
- {
780
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
781
- }
719
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
720
+ return inserted;
782
721
  };
783
722
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
784
723
  const hostElm = hostRef.$hostElement$;
@@ -803,21 +742,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
803
742
  rootVnode.$flags$ |= 4 /* isHost */;
804
743
  hostRef.$vnode$ = rootVnode;
805
744
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
806
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
745
+ {
746
+ scopeId = hostElm["s-sc"];
747
+ }
748
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
807
749
  patch(oldVNode, rootVnode, isInitialLoad);
808
750
  };
809
751
 
810
752
  // src/runtime/update-component.ts
811
753
  var attachToAncestor = (hostRef, ancestorComponent) => {
812
754
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
813
- const index = ancestorComponent["s-p"].push(
814
- new Promise(
815
- (r) => hostRef.$onRenderResolve$ = () => {
816
- ancestorComponent["s-p"].splice(index - 1, 1);
817
- r();
818
- }
819
- )
820
- );
755
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
821
756
  }
822
757
  };
823
758
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -846,12 +781,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
846
781
  {
847
782
  hostRef.$flags$ |= 256 /* isListenReady */;
848
783
  if (hostRef.$queuedListeners$) {
849
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
784
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
850
785
  hostRef.$queuedListeners$ = void 0;
851
786
  }
852
787
  }
853
788
  {
854
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
789
+ maybePromise = safeCall(instance, "componentWillLoad");
855
790
  }
856
791
  }
857
792
  endSchedule();
@@ -920,7 +855,7 @@ var postUpdateComponent = (hostRef) => {
920
855
  const instance = hostRef.$lazyInstance$ ;
921
856
  const ancestorComponent = hostRef.$ancestorComponent$;
922
857
  {
923
- safeCall(instance, "componentDidRender", void 0, elm);
858
+ safeCall(instance, "componentDidRender");
924
859
  }
925
860
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
926
861
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -949,14 +884,17 @@ var postUpdateComponent = (hostRef) => {
949
884
  }
950
885
  };
951
886
  var appDidLoad = (who) => {
887
+ {
888
+ addHydratedFlag(doc.documentElement);
889
+ }
952
890
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
953
891
  };
954
- var safeCall = (instance, method, arg, elm) => {
892
+ var safeCall = (instance, method, arg) => {
955
893
  if (instance && instance[method]) {
956
894
  try {
957
895
  return instance[method](arg);
958
896
  } catch (e) {
959
- consoleError(e, elm);
897
+ consoleError(e);
960
898
  }
961
899
  }
962
900
  return void 0;
@@ -1015,68 +953,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1015
953
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1016
954
  members.map(([memberName, [memberFlags]]) => {
1017
955
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1018
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1019
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1020
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1021
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1022
- Object.defineProperty(prototype, memberName, {
1023
- get() {
1024
- {
1025
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1026
- return getValue(this, memberName);
1027
- }
1028
- const ref = getHostRef(this);
1029
- const instance = ref ? ref.$lazyInstance$ : prototype;
1030
- if (!instance) return;
1031
- return instance[memberName];
1032
- }
1033
- },
1034
- configurable: true,
1035
- enumerable: true
1036
- });
1037
- }
1038
956
  Object.defineProperty(prototype, memberName, {
957
+ get() {
958
+ return getValue(this, memberName);
959
+ },
1039
960
  set(newValue) {
1040
- const ref = getHostRef(this);
1041
- if (origSetter) {
1042
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1043
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1044
- newValue = ref.$instanceValues$.get(memberName);
1045
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1046
- ref.$instanceValues$.set(memberName, currentValue);
1047
- }
1048
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1049
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1050
- setValue(this, memberName, newValue, cmpMeta);
1051
- return;
1052
- }
1053
- {
1054
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1055
- setValue(this, memberName, newValue, cmpMeta);
1056
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1057
- ref.$onReadyPromise$.then(() => {
1058
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1059
- ref.$lazyInstance$[memberName] = newValue;
1060
- }
1061
- });
1062
- }
1063
- return;
1064
- }
1065
- const setterSetVal = () => {
1066
- const currentValue = ref.$lazyInstance$[memberName];
1067
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1068
- ref.$instanceValues$.set(memberName, currentValue);
1069
- }
1070
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1071
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1072
- };
1073
- if (ref.$lazyInstance$) {
1074
- setterSetVal();
1075
- } else {
1076
- ref.$onReadyPromise$.then(() => setterSetVal());
1077
- }
1078
- }
1079
- }
961
+ setValue(this, memberName, newValue, cmpMeta);
962
+ },
963
+ configurable: true,
964
+ enumerable: true
1080
965
  });
1081
966
  }
1082
967
  });
@@ -1086,11 +971,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1086
971
  plt.jmp(() => {
1087
972
  var _a2;
1088
973
  const propName = attrNameToPropName.get(attrName);
1089
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
974
+ if (this.hasOwnProperty(propName)) {
1090
975
  newValue = this[propName];
1091
976
  delete this[propName];
1092
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1093
- this[propName] == newValue) {
977
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1094
978
  return;
1095
979
  } else if (propName == null) {
1096
980
  const hostRef = getHostRef(this);
@@ -1106,11 +990,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1106
990
  }
1107
991
  return;
1108
992
  }
1109
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1110
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1111
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1112
- this[propName] = newValue;
1113
- }
993
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1114
994
  });
1115
995
  };
1116
996
  Cstr.observedAttributes = Array.from(
@@ -1139,7 +1019,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1139
1019
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1140
1020
  const bundleId = cmpMeta.$lazyBundleId$;
1141
1021
  if (bundleId) {
1142
- const CstrImport = loadModule(cmpMeta, hostRef);
1022
+ const CstrImport = loadModule(cmpMeta);
1143
1023
  if (CstrImport && "then" in CstrImport) {
1144
1024
  const endLoad = uniqueTime();
1145
1025
  Cstr = await CstrImport;
@@ -1164,7 +1044,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1164
1044
  try {
1165
1045
  new Cstr(hostRef);
1166
1046
  } catch (e) {
1167
- consoleError(e, elm);
1047
+ consoleError(e);
1168
1048
  }
1169
1049
  {
1170
1050
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1173,7 +1053,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1173
1053
  hostRef.$flags$ |= 128 /* isWatchReady */;
1174
1054
  }
1175
1055
  endNewInstance();
1176
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1056
+ fireConnectedCallback(hostRef.$lazyInstance$);
1177
1057
  } else {
1178
1058
  Cstr = elm.constructor;
1179
1059
  const cmpTag = elm.localName;
@@ -1200,9 +1080,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1200
1080
  schedule();
1201
1081
  }
1202
1082
  };
1203
- var fireConnectedCallback = (instance, elm) => {
1083
+ var fireConnectedCallback = (instance) => {
1204
1084
  {
1205
- safeCall(instance, "connectedCallback", void 0, elm);
1085
+ safeCall(instance, "connectedCallback");
1206
1086
  }
1207
1087
  };
1208
1088
 
@@ -1238,15 +1118,15 @@ var connectedCallback = (elm) => {
1238
1118
  } else {
1239
1119
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1240
1120
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1241
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1121
+ fireConnectedCallback(hostRef.$lazyInstance$);
1242
1122
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1243
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1123
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1244
1124
  }
1245
1125
  }
1246
1126
  endConnected();
1247
1127
  }
1248
1128
  };
1249
- var disconnectInstance = (instance, elm) => {
1129
+ var disconnectInstance = (instance) => {
1250
1130
  };
1251
1131
  var disconnectedCallback = async (elm) => {
1252
1132
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1261,12 +1141,6 @@ var disconnectedCallback = async (elm) => {
1261
1141
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1262
1142
  }
1263
1143
  }
1264
- if (rootAppliedStyles.has(elm)) {
1265
- rootAppliedStyles.delete(elm);
1266
- }
1267
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1268
- rootAppliedStyles.delete(elm.shadowRoot);
1269
- }
1270
1144
  };
1271
1145
 
1272
1146
  // src/runtime/bootstrap-lazy.ts
@@ -1351,17 +1225,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1351
1225
  }
1352
1226
  disconnectedCallback() {
1353
1227
  plt.jmp(() => disconnectedCallback(this));
1354
- plt.raf(() => {
1355
- var _a3;
1356
- const hostRef = getHostRef(this);
1357
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1358
- if (i2 > -1) {
1359
- deferredConnectedCallbacks.splice(i2, 1);
1360
- }
1361
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1362
- delete hostRef.$vnode$.$elm$;
1363
- }
1364
- });
1365
1228
  }
1366
1229
  componentOnReady() {
1367
1230
  return getHostRef(this).$onReadyPromise$;
@@ -1425,7 +1288,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1425
1288
  }
1426
1289
  }
1427
1290
  } catch (e) {
1428
- consoleError(e, hostRef.$hostElement$);
1291
+ consoleError(e);
1429
1292
  }
1430
1293
  };
1431
1294
  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-5e13b80a.js');
5
+ const index = require('./index-c16396a3.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5e13b80a.js');
5
+ const index = require('./index-c16396a3.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('nuts-inbox-widget.cjs.js', document.baseURI).href));