@everymatrix/nuts-inbox-widget 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/{index-5e13b80a.js → index-43ce2388.js} +74 -177
  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 +1 -1
  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-90fc4db5.js} +74 -177
  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-3a5589e2.entry.js +1 -0
  15. package/dist/nuts-inbox-widget/p-6148a470.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/package.json +1 -1
  19. package/dist/nuts-inbox-widget/p-af9bcff0.js +0 -2
  20. package/dist/nuts-inbox-widget/p-fc6b9468.entry.js +0 -1
  21. 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
  22. 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
  23. /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
  24. /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
  25. /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
  26. /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.22.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/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,7 +377,7 @@ 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) {
@@ -394,10 +387,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
394
387
  if (styleContainerNode.nodeName === "HEAD") {
395
388
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
396
389
  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
- );
390
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
401
391
  } else if ("host" in styleContainerNode) {
402
392
  if (supportsConstructableStylesheets) {
403
393
  const stylesheet = new CSSStyleSheet();
@@ -415,7 +405,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
415
405
  styleContainerNode.append(styleElm);
416
406
  }
417
407
  }
418
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
408
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
419
409
  styleContainerNode.insertBefore(styleElm, null);
420
410
  }
421
411
  }
@@ -440,25 +430,23 @@ var attachStyles = (hostRef) => {
440
430
  const scopeId2 = addStyle(
441
431
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
442
432
  cmpMeta);
443
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
433
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
444
434
  elm["s-sc"] = scopeId2;
445
435
  elm.classList.add(scopeId2 + "-h");
446
436
  }
447
437
  endAttachStyles();
448
438
  };
449
439
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
450
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
440
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
451
441
  if (oldValue !== newValue) {
452
442
  let isProp = isMemberInElement(elm, memberName);
453
443
  let ln = memberName.toLowerCase();
454
444
  if (memberName === "class") {
455
445
  const classList = elm.classList;
456
446
  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
- }
447
+ const newClasses = parseClassList(newValue);
448
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
449
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
462
450
  } else if (memberName === "key") ; else if (memberName === "ref") {
463
451
  if (newValue) {
464
452
  newValue(elm);
@@ -496,7 +484,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
496
484
  elm.setAttribute(memberName, n);
497
485
  }
498
486
  }
499
- } else if (elm[memberName] !== newValue) {
487
+ } else {
500
488
  elm[memberName] = newValue;
501
489
  }
502
490
  } catch (e) {
@@ -518,44 +506,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
518
506
  }
519
507
  };
520
508
  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
- };
509
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
530
510
  var CAPTURE_EVENT_SUFFIX = "Capture";
531
511
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
532
512
 
533
513
  // src/runtime/vdom/update-element.ts
534
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
514
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
535
515
  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$ || {};
516
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
517
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
538
518
  {
539
519
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
540
520
  if (!(memberName in newVnodeAttrs)) {
541
- setAccessor(
542
- elm,
543
- memberName,
544
- oldVnodeAttrs[memberName],
545
- void 0,
546
- isSvgMode2,
547
- newVnode.$flags$);
521
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
548
522
  }
549
523
  }
550
524
  }
551
525
  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$);
526
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
559
527
  }
560
528
  };
561
529
  function sortedAttrNames(attrNames) {
@@ -567,10 +535,13 @@ function sortedAttrNames(attrNames) {
567
535
  attrNames
568
536
  );
569
537
  }
538
+
539
+ // src/runtime/vdom/vdom-render.ts
540
+ var scopeId;
570
541
  var hostTagName;
571
542
  var useNativeShadowDom = false;
572
543
  var isSvgMode = false;
573
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
544
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
574
545
  const newVNode2 = newParentVNode.$children$[childIndex];
575
546
  let i2 = 0;
576
547
  let elm;
@@ -591,6 +562,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
591
562
  {
592
563
  updateElement(null, newVNode2, isSvgMode);
593
564
  }
565
+ const rootNode = elm.getRootNode();
566
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
567
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
568
+ elm.classList.add(elm["s-si"] = scopeId);
569
+ }
594
570
  if (newVNode2.$children$) {
595
571
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
596
572
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -727,9 +703,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
727
703
  if (!isInitialRender) {
728
704
  return leftVNode.$key$ === rightVNode.$key$;
729
705
  }
730
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
731
- leftVNode.$key$ = rightVNode.$key$;
732
- }
733
706
  return true;
734
707
  }
735
708
  return false;
@@ -776,9 +749,8 @@ var nullifyVNodeRefs = (vNode) => {
776
749
  }
777
750
  };
778
751
  var insertBefore = (parent, newNode, reference) => {
779
- {
780
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
781
- }
752
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
753
+ return inserted;
782
754
  };
783
755
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
784
756
  const hostElm = hostRef.$hostElement$;
@@ -803,21 +775,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
803
775
  rootVnode.$flags$ |= 4 /* isHost */;
804
776
  hostRef.$vnode$ = rootVnode;
805
777
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
806
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
778
+ {
779
+ scopeId = hostElm["s-sc"];
780
+ }
781
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
807
782
  patch(oldVNode, rootVnode, isInitialLoad);
808
783
  };
809
784
 
810
785
  // src/runtime/update-component.ts
811
786
  var attachToAncestor = (hostRef, ancestorComponent) => {
812
787
  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
- );
788
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
821
789
  }
822
790
  };
823
791
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -846,12 +814,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
846
814
  {
847
815
  hostRef.$flags$ |= 256 /* isListenReady */;
848
816
  if (hostRef.$queuedListeners$) {
849
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
817
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
850
818
  hostRef.$queuedListeners$ = void 0;
851
819
  }
852
820
  }
853
821
  {
854
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
822
+ maybePromise = safeCall(instance, "componentWillLoad");
855
823
  }
856
824
  }
857
825
  endSchedule();
@@ -920,7 +888,7 @@ var postUpdateComponent = (hostRef) => {
920
888
  const instance = hostRef.$lazyInstance$ ;
921
889
  const ancestorComponent = hostRef.$ancestorComponent$;
922
890
  {
923
- safeCall(instance, "componentDidRender", void 0, elm);
891
+ safeCall(instance, "componentDidRender");
924
892
  }
925
893
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
926
894
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -949,14 +917,17 @@ var postUpdateComponent = (hostRef) => {
949
917
  }
950
918
  };
951
919
  var appDidLoad = (who) => {
920
+ {
921
+ addHydratedFlag(doc.documentElement);
922
+ }
952
923
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
953
924
  };
954
- var safeCall = (instance, method, arg, elm) => {
925
+ var safeCall = (instance, method, arg) => {
955
926
  if (instance && instance[method]) {
956
927
  try {
957
928
  return instance[method](arg);
958
929
  } catch (e) {
959
- consoleError(e, elm);
930
+ consoleError(e);
960
931
  }
961
932
  }
962
933
  return void 0;
@@ -1015,68 +986,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1015
986
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1016
987
  members.map(([memberName, [memberFlags]]) => {
1017
988
  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
989
  Object.defineProperty(prototype, memberName, {
990
+ get() {
991
+ return getValue(this, memberName);
992
+ },
1039
993
  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
- }
994
+ setValue(this, memberName, newValue, cmpMeta);
995
+ },
996
+ configurable: true,
997
+ enumerable: true
1080
998
  });
1081
999
  }
1082
1000
  });
@@ -1086,7 +1004,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1086
1004
  plt.jmp(() => {
1087
1005
  var _a2;
1088
1006
  const propName = attrNameToPropName.get(attrName);
1089
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1007
+ if (this.hasOwnProperty(propName)) {
1090
1008
  newValue = this[propName];
1091
1009
  delete this[propName];
1092
1010
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1106,11 +1024,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1106
1024
  }
1107
1025
  return;
1108
1026
  }
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
- }
1027
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1114
1028
  });
1115
1029
  };
1116
1030
  Cstr.observedAttributes = Array.from(
@@ -1139,7 +1053,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1139
1053
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1140
1054
  const bundleId = cmpMeta.$lazyBundleId$;
1141
1055
  if (bundleId) {
1142
- const CstrImport = loadModule(cmpMeta, hostRef);
1056
+ const CstrImport = loadModule(cmpMeta);
1143
1057
  if (CstrImport && "then" in CstrImport) {
1144
1058
  const endLoad = uniqueTime();
1145
1059
  Cstr = await CstrImport;
@@ -1164,7 +1078,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1164
1078
  try {
1165
1079
  new Cstr(hostRef);
1166
1080
  } catch (e) {
1167
- consoleError(e, elm);
1081
+ consoleError(e);
1168
1082
  }
1169
1083
  {
1170
1084
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1173,7 +1087,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1173
1087
  hostRef.$flags$ |= 128 /* isWatchReady */;
1174
1088
  }
1175
1089
  endNewInstance();
1176
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1090
+ fireConnectedCallback(hostRef.$lazyInstance$);
1177
1091
  } else {
1178
1092
  Cstr = elm.constructor;
1179
1093
  const cmpTag = elm.localName;
@@ -1200,9 +1114,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1200
1114
  schedule();
1201
1115
  }
1202
1116
  };
1203
- var fireConnectedCallback = (instance, elm) => {
1117
+ var fireConnectedCallback = (instance) => {
1204
1118
  {
1205
- safeCall(instance, "connectedCallback", void 0, elm);
1119
+ safeCall(instance, "connectedCallback");
1206
1120
  }
1207
1121
  };
1208
1122
 
@@ -1238,15 +1152,15 @@ var connectedCallback = (elm) => {
1238
1152
  } else {
1239
1153
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1240
1154
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1241
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1155
+ fireConnectedCallback(hostRef.$lazyInstance$);
1242
1156
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1243
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1157
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1244
1158
  }
1245
1159
  }
1246
1160
  endConnected();
1247
1161
  }
1248
1162
  };
1249
- var disconnectInstance = (instance, elm) => {
1163
+ var disconnectInstance = (instance) => {
1250
1164
  };
1251
1165
  var disconnectedCallback = async (elm) => {
1252
1166
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1261,12 +1175,6 @@ var disconnectedCallback = async (elm) => {
1261
1175
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1262
1176
  }
1263
1177
  }
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
1178
  };
1271
1179
 
1272
1180
  // src/runtime/bootstrap-lazy.ts
@@ -1351,17 +1259,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1351
1259
  }
1352
1260
  disconnectedCallback() {
1353
1261
  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
1262
  }
1366
1263
  componentOnReady() {
1367
1264
  return getHostRef(this).$onReadyPromise$;
@@ -1425,7 +1322,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1425
1322
  }
1426
1323
  }
1427
1324
  } catch (e) {
1428
- consoleError(e, hostRef.$hostElement$);
1325
+ consoleError(e);
1429
1326
  }
1430
1327
  };
1431
1328
  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-43ce2388.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-43ce2388.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.22.3 | 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));