@everymatrix/nuts-inbox-widget 1.53.0 → 1.53.11

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 (22) hide show
  1. package/dist/cjs/{index-43ce2388.js → index-13b68ce6.js} +171 -74
  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 +51 -59
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +57 -19
  7. package/dist/collection/components/nuts-notification/nuts-notification.js +50 -24
  8. package/dist/collection/components/nuts-popover/nuts-popover.js +33 -15
  9. package/dist/esm/{index-90fc4db5.js → index-4ba12d79.js} +171 -74
  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 +51 -59
  13. package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
  14. package/dist/nuts-inbox-widget/p-4d5c8bdf.js +2 -0
  15. package/dist/nuts-inbox-widget/p-570eeade.entry.js +1 -0
  16. 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 +2 -0
  17. 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 +2 -0
  18. package/package.json +1 -1
  19. package/dist/nuts-inbox-widget/p-3a5589e2.entry.js +0 -1
  20. package/dist/nuts-inbox-widget/p-6148a470.js +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +0 -2
  22. 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 +0 -2
@@ -1,17 +1,25 @@
1
1
  const NAMESPACE = 'nuts-inbox-widget';
2
- 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | 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 : {};
@@ -144,14 +159,6 @@ var flush = () => {
144
159
  };
145
160
  var nextTick = (cb) => promiseResolve().then(cb);
146
161
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
- var SVG_NS = "http://www.w3.org/2000/svg";
151
- var HTML_NS = "http://www.w3.org/1999/xhtml";
152
-
153
- // src/utils/helpers.ts
154
- var isDef = (v) => v != null;
155
162
  var isComplexType = (o) => {
156
163
  o = typeof o;
157
164
  return o === "object" || o === "function";
@@ -355,7 +362,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
355
362
  }
356
363
  if (!appliedStyles.has(scopeId2)) {
357
364
  {
358
- styleElm = doc.createElement("style");
365
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
359
366
  styleElm.innerHTML = style;
360
367
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
361
368
  if (nonce != null) {
@@ -365,7 +372,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
365
372
  if (styleContainerNode.nodeName === "HEAD") {
366
373
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
367
374
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
368
- styleContainerNode.insertBefore(styleElm, referenceNode2);
375
+ styleContainerNode.insertBefore(
376
+ styleElm,
377
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
378
+ );
369
379
  } else if ("host" in styleContainerNode) {
370
380
  if (supportsConstructableStylesheets) {
371
381
  const stylesheet = new CSSStyleSheet();
@@ -415,16 +425,18 @@ var attachStyles = (hostRef) => {
415
425
  endAttachStyles();
416
426
  };
417
427
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
418
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
419
429
  if (oldValue !== newValue) {
420
430
  let isProp = isMemberInElement(elm, memberName);
421
431
  let ln = memberName.toLowerCase();
422
432
  if (memberName === "class") {
423
433
  const classList = elm.classList;
424
434
  const oldClasses = parseClassList(oldValue);
425
- const newClasses = parseClassList(newValue);
426
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
427
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
+ let newClasses = parseClassList(newValue);
436
+ {
437
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
438
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
439
+ }
428
440
  } else if (memberName === "key") ; else if (memberName === "ref") {
429
441
  if (newValue) {
430
442
  newValue(elm);
@@ -462,7 +474,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
462
474
  elm.setAttribute(memberName, n);
463
475
  }
464
476
  }
465
- } else {
477
+ } else if (elm[memberName] !== newValue) {
466
478
  elm[memberName] = newValue;
467
479
  }
468
480
  } catch (e) {
@@ -484,24 +496,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
484
496
  }
485
497
  };
486
498
  var parseClassListRegex = /\s/;
487
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
499
+ var parseClassList = (value) => {
500
+ if (typeof value === "object" && value && "baseVal" in value) {
501
+ value = value.baseVal;
502
+ }
503
+ if (!value || typeof value !== "string") {
504
+ return [];
505
+ }
506
+ return value.split(parseClassListRegex);
507
+ };
488
508
  var CAPTURE_EVENT_SUFFIX = "Capture";
489
509
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
490
510
 
491
511
  // src/runtime/vdom/update-element.ts
492
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
512
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
493
513
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
494
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
495
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
514
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
515
+ const newVnodeAttrs = newVnode.$attrs$ || {};
496
516
  {
497
517
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
498
518
  if (!(memberName in newVnodeAttrs)) {
499
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
519
+ setAccessor(
520
+ elm,
521
+ memberName,
522
+ oldVnodeAttrs[memberName],
523
+ void 0,
524
+ isSvgMode2,
525
+ newVnode.$flags$);
500
526
  }
501
527
  }
502
528
  }
503
529
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
504
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
530
+ setAccessor(
531
+ elm,
532
+ memberName,
533
+ oldVnodeAttrs[memberName],
534
+ newVnodeAttrs[memberName],
535
+ isSvgMode2,
536
+ newVnode.$flags$);
505
537
  }
506
538
  };
507
539
  function sortedAttrNames(attrNames) {
@@ -513,13 +545,10 @@ function sortedAttrNames(attrNames) {
513
545
  attrNames
514
546
  );
515
547
  }
516
-
517
- // src/runtime/vdom/vdom-render.ts
518
- var scopeId;
519
548
  var hostTagName;
520
549
  var useNativeShadowDom = false;
521
550
  var isSvgMode = false;
522
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
551
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
523
552
  const newVNode2 = newParentVNode.$children$[childIndex];
524
553
  let i2 = 0;
525
554
  let elm;
@@ -540,11 +569,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
540
569
  {
541
570
  updateElement(null, newVNode2, isSvgMode);
542
571
  }
543
- const rootNode = elm.getRootNode();
544
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
545
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
546
- elm.classList.add(elm["s-si"] = scopeId);
547
- }
548
572
  if (newVNode2.$children$) {
549
573
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
550
574
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -681,6 +705,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
681
705
  if (!isInitialRender) {
682
706
  return leftVNode.$key$ === rightVNode.$key$;
683
707
  }
708
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
709
+ leftVNode.$key$ = rightVNode.$key$;
710
+ }
684
711
  return true;
685
712
  }
686
713
  return false;
@@ -727,8 +754,9 @@ var nullifyVNodeRefs = (vNode) => {
727
754
  }
728
755
  };
729
756
  var insertBefore = (parent, newNode, reference) => {
730
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
731
- return inserted;
757
+ {
758
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
759
+ }
732
760
  };
733
761
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
734
762
  const hostElm = hostRef.$hostElement$;
@@ -753,9 +781,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
753
781
  rootVnode.$flags$ |= 4 /* isHost */;
754
782
  hostRef.$vnode$ = rootVnode;
755
783
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
756
- {
757
- scopeId = hostElm["s-sc"];
758
- }
759
784
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
760
785
  patch(oldVNode, rootVnode, isInitialLoad);
761
786
  };
@@ -763,7 +788,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
763
788
  // src/runtime/update-component.ts
764
789
  var attachToAncestor = (hostRef, ancestorComponent) => {
765
790
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
766
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
791
+ const index = ancestorComponent["s-p"].push(
792
+ new Promise(
793
+ (r) => hostRef.$onRenderResolve$ = () => {
794
+ ancestorComponent["s-p"].splice(index - 1, 1);
795
+ r();
796
+ }
797
+ )
798
+ );
767
799
  }
768
800
  };
769
801
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -792,12 +824,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
792
824
  {
793
825
  hostRef.$flags$ |= 256 /* isListenReady */;
794
826
  if (hostRef.$queuedListeners$) {
795
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
827
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
796
828
  hostRef.$queuedListeners$ = void 0;
797
829
  }
798
830
  }
799
831
  {
800
- maybePromise = safeCall(instance, "componentWillLoad");
832
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
801
833
  }
802
834
  }
803
835
  endSchedule();
@@ -866,7 +898,7 @@ var postUpdateComponent = (hostRef) => {
866
898
  const instance = hostRef.$lazyInstance$ ;
867
899
  const ancestorComponent = hostRef.$ancestorComponent$;
868
900
  {
869
- safeCall(instance, "componentDidRender");
901
+ safeCall(instance, "componentDidRender", void 0, elm);
870
902
  }
871
903
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
872
904
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -900,12 +932,12 @@ var appDidLoad = (who) => {
900
932
  }
901
933
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
902
934
  };
903
- var safeCall = (instance, method, arg) => {
935
+ var safeCall = (instance, method, arg, elm) => {
904
936
  if (instance && instance[method]) {
905
937
  try {
906
938
  return instance[method](arg);
907
939
  } catch (e) {
908
- consoleError(e);
940
+ consoleError(e, elm);
909
941
  }
910
942
  }
911
943
  return void 0;
@@ -964,15 +996,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
964
996
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
965
997
  members.map(([memberName, [memberFlags]]) => {
966
998
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
999
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1000
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1001
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1002
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1003
+ Object.defineProperty(prototype, memberName, {
1004
+ get() {
1005
+ {
1006
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1007
+ return getValue(this, memberName);
1008
+ }
1009
+ const ref = getHostRef(this);
1010
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1011
+ if (!instance) return;
1012
+ return instance[memberName];
1013
+ }
1014
+ },
1015
+ configurable: true,
1016
+ enumerable: true
1017
+ });
1018
+ }
967
1019
  Object.defineProperty(prototype, memberName, {
968
- get() {
969
- return getValue(this, memberName);
970
- },
971
1020
  set(newValue) {
972
- setValue(this, memberName, newValue, cmpMeta);
973
- },
974
- configurable: true,
975
- enumerable: true
1021
+ const ref = getHostRef(this);
1022
+ if (origSetter) {
1023
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1024
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1025
+ newValue = ref.$instanceValues$.get(memberName);
1026
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1027
+ ref.$instanceValues$.set(memberName, currentValue);
1028
+ }
1029
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1030
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1031
+ setValue(this, memberName, newValue, cmpMeta);
1032
+ return;
1033
+ }
1034
+ {
1035
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1036
+ setValue(this, memberName, newValue, cmpMeta);
1037
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1038
+ ref.$onReadyPromise$.then(() => {
1039
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1040
+ ref.$lazyInstance$[memberName] = newValue;
1041
+ }
1042
+ });
1043
+ }
1044
+ return;
1045
+ }
1046
+ const setterSetVal = () => {
1047
+ const currentValue = ref.$lazyInstance$[memberName];
1048
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1049
+ ref.$instanceValues$.set(memberName, currentValue);
1050
+ }
1051
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1052
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1053
+ };
1054
+ if (ref.$lazyInstance$) {
1055
+ setterSetVal();
1056
+ } else {
1057
+ ref.$onReadyPromise$.then(() => setterSetVal());
1058
+ }
1059
+ }
1060
+ }
976
1061
  });
977
1062
  }
978
1063
  });
@@ -982,7 +1067,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
982
1067
  plt.jmp(() => {
983
1068
  var _a2;
984
1069
  const propName = attrNameToPropName.get(attrName);
985
- if (this.hasOwnProperty(propName)) {
1070
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
986
1071
  newValue = this[propName];
987
1072
  delete this[propName];
988
1073
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1002,7 +1087,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1002
1087
  }
1003
1088
  return;
1004
1089
  }
1005
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1090
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1091
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1092
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1093
+ this[propName] = newValue;
1094
+ }
1006
1095
  });
1007
1096
  };
1008
1097
  Cstr.observedAttributes = Array.from(
@@ -1029,9 +1118,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1029
1118
  let Cstr;
1030
1119
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1031
1120
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1032
- const bundleId = cmpMeta.$lazyBundleId$;
1033
- if (bundleId) {
1034
- const CstrImport = loadModule(cmpMeta);
1121
+ {
1122
+ const CstrImport = loadModule(cmpMeta, hostRef);
1035
1123
  if (CstrImport && "then" in CstrImport) {
1036
1124
  const endLoad = uniqueTime();
1037
1125
  Cstr = await CstrImport;
@@ -1056,7 +1144,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1056
1144
  try {
1057
1145
  new Cstr(hostRef);
1058
1146
  } catch (e) {
1059
- consoleError(e);
1147
+ consoleError(e, elm);
1060
1148
  }
1061
1149
  {
1062
1150
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1065,11 +1153,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1065
1153
  hostRef.$flags$ |= 128 /* isWatchReady */;
1066
1154
  }
1067
1155
  endNewInstance();
1068
- fireConnectedCallback(hostRef.$lazyInstance$);
1069
- } else {
1070
- Cstr = elm.constructor;
1071
- const cmpTag = elm.localName;
1072
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1156
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1073
1157
  }
1074
1158
  if (Cstr && Cstr.style) {
1075
1159
  let style;
@@ -1092,9 +1176,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1092
1176
  schedule();
1093
1177
  }
1094
1178
  };
1095
- var fireConnectedCallback = (instance) => {
1179
+ var fireConnectedCallback = (instance, elm) => {
1096
1180
  {
1097
- safeCall(instance, "connectedCallback");
1181
+ safeCall(instance, "connectedCallback", void 0, elm);
1098
1182
  }
1099
1183
  };
1100
1184
 
@@ -1130,15 +1214,15 @@ var connectedCallback = (elm) => {
1130
1214
  } else {
1131
1215
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1132
1216
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1133
- fireConnectedCallback(hostRef.$lazyInstance$);
1217
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1134
1218
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1135
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1219
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1136
1220
  }
1137
1221
  }
1138
1222
  endConnected();
1139
1223
  }
1140
1224
  };
1141
- var disconnectInstance = (instance) => {
1225
+ var disconnectInstance = (instance, elm) => {
1142
1226
  };
1143
1227
  var disconnectedCallback = async (elm) => {
1144
1228
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1153,6 +1237,12 @@ var disconnectedCallback = async (elm) => {
1153
1237
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1154
1238
  }
1155
1239
  }
1240
+ if (rootAppliedStyles.has(elm)) {
1241
+ rootAppliedStyles.delete(elm);
1242
+ }
1243
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1244
+ rootAppliedStyles.delete(elm.shadowRoot);
1245
+ }
1156
1246
  };
1157
1247
 
1158
1248
  // src/runtime/bootstrap-lazy.ts
@@ -1237,6 +1327,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1237
1327
  }
1238
1328
  disconnectedCallback() {
1239
1329
  plt.jmp(() => disconnectedCallback(this));
1330
+ plt.raf(() => {
1331
+ var _a3;
1332
+ const hostRef = getHostRef(this);
1333
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1334
+ delete hostRef.$vnode$.$elm$;
1335
+ }
1336
+ });
1240
1337
  }
1241
1338
  componentOnReady() {
1242
1339
  return getHostRef(this).$onReadyPromise$;
@@ -1300,7 +1397,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1300
1397
  }
1301
1398
  }
1302
1399
  } catch (e) {
1303
- consoleError(e);
1400
+ consoleError(e, hostRef.$hostElement$);
1304
1401
  }
1305
1402
  };
1306
1403
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-90fc4db5.js';
2
- export { s as setNonce } from './index-90fc4db5.js';
1
+ import { b as bootstrapLazy } from './index-4ba12d79.js';
2
+ export { s as setNonce } from './index-4ba12d79.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-90fc4db5.js';
2
- export { s as setNonce } from './index-90fc4db5.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4ba12d79.js';
2
+ export { s as setNonce } from './index-4ba12d79.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-90fc4db5.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-4ba12d79.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const SUPPORTED_LANGUAGES = ['hu', 'en'];
@@ -4230,6 +4230,33 @@ const NutsInboxWidget = class {
4230
4230
  registerInstance(this, hostRef);
4231
4231
  this.notificationFeed = createEvent(this, "notificationFeed", 7);
4232
4232
  this.newNotification = createEvent(this, "newNotification", 7);
4233
+ /**
4234
+ * Language of the widget
4235
+ */
4236
+ this.language = 'en';
4237
+ /**
4238
+ * Environment on which the widget is used (possible values: `stage`, `prod`)
4239
+ */
4240
+ this.environment = 'stage';
4241
+ /**
4242
+ * Client custom styling via inline styles
4243
+ */
4244
+ this.clientStyling = '';
4245
+ /**
4246
+ * Position of the widget (possible values: `left` and `right`) - this changes the `justify-content` property of the `.BellIconWrapper` class
4247
+ */
4248
+ this.bellIconPosition = 'left';
4249
+ /**
4250
+ * Clicking on the notification will automatically redirect you to the redirectURL attached to the notification (`default` behaviour). It can be changed to `postMessage` and instead of the redirect it will emit a postMessage with the redirectURL and the parent website can take actions
4251
+ */
4252
+ this.notificationAction = 'default';
4253
+ /**
4254
+ * Translations via URL
4255
+ */
4256
+ this.translationUrl = '';
4257
+ this.isLoading = false;
4258
+ this.popoverVisible = false;
4259
+ this.limitStylingAppends = false;
4233
4260
  this.token = null;
4234
4261
  this.baseUrl = `${this.backendUrl}/v1/${this.operatorId}`;
4235
4262
  this.initializeSessionBody = {
@@ -4270,25 +4297,6 @@ const NutsInboxWidget = class {
4270
4297
  this.assignRefToBell = (ref) => {
4271
4298
  this.bellIconRef = ref;
4272
4299
  };
4273
- this.backendUrl = undefined;
4274
- this.socketUrl = undefined;
4275
- this.userId = undefined;
4276
- this.sessionId = undefined;
4277
- this.operatorId = undefined;
4278
- this.subscriberId = undefined;
4279
- this.deviceId = undefined;
4280
- this.language = 'en';
4281
- this.environment = 'stage';
4282
- this.applicationIdentifier = undefined;
4283
- this.clientStyling = '';
4284
- this.clientStylingUrl = undefined;
4285
- this.bellIconPosition = 'left';
4286
- this.notificationAction = 'default';
4287
- this.translationUrl = '';
4288
- this.isLoading = false;
4289
- this.popoverVisible = false;
4290
- this.unseenCount = undefined;
4291
- this.limitStylingAppends = false;
4292
4300
  }
4293
4301
  initializeHandler(newValue, oldValue) {
4294
4302
  if (newValue !== oldValue) {
@@ -40685,6 +40693,18 @@ const NutsNotification = class {
40685
40693
  registerInstance(this, hostRef);
40686
40694
  this.messageDeteled = createEvent(this, "messageDeleted", 7);
40687
40695
  this.settingsOpened = createEvent(this, "settingsOpened", 7);
40696
+ /**
40697
+ * Translations via URL
40698
+ */
40699
+ this.translationUrl = '';
40700
+ /**
40701
+ * Clienty styling passed as a string
40702
+ */
40703
+ this.clientStyling = '';
40704
+ this.showSettingsModal = false;
40705
+ this.messageSeen = false;
40706
+ this.messageRead = false;
40707
+ this.limitStylingAppends = false;
40688
40708
  this.toggleSettingsModal = (e) => {
40689
40709
  e.stopImmediatePropagation();
40690
40710
  this.showSettingsModal = !this.showSettingsModal;
@@ -40773,30 +40793,6 @@ const NutsNotification = class {
40773
40793
  this.assignRefToDropdownArrow = (ref) => {
40774
40794
  this.dropdownArrowRef = ref;
40775
40795
  };
40776
- this.badge = undefined;
40777
- this.content = undefined;
40778
- this.date = undefined;
40779
- this.showSettings = undefined;
40780
- this.read = undefined;
40781
- this.seen = undefined;
40782
- this.language = undefined;
40783
- this.sessionId = undefined;
40784
- this.subscriberId = undefined;
40785
- this.userId = undefined;
40786
- this.messageId = undefined;
40787
- this.operatorId = undefined;
40788
- this.token = undefined;
40789
- this.backendUrl = undefined;
40790
- this.redirectUrl = undefined;
40791
- this.notificationAction = undefined;
40792
- this.clientStylingUrl = undefined;
40793
- this.translationUrl = '';
40794
- this.clientStyling = '';
40795
- this.showSettingsModal = false;
40796
- this.messageSeen = false;
40797
- this.messageRead = false;
40798
- this.displayedContent = undefined;
40799
- this.limitStylingAppends = false;
40800
40796
  }
40801
40797
  allNotificationsReadHandler() {
40802
40798
  this.messageSeen = true;
@@ -40862,6 +40858,17 @@ const NutsPopover = class {
40862
40858
  constructor(hostRef) {
40863
40859
  registerInstance(this, hostRef);
40864
40860
  this.allNotificationsRead = createEvent(this, "allNotificationsRead", 7);
40861
+ /**
40862
+ * Custom styling string
40863
+ */
40864
+ this.clientStyling = '';
40865
+ /**
40866
+ * Translations via URL
40867
+ */
40868
+ this.translationUrl = '';
40869
+ this.isLoading = true;
40870
+ this.showMarkAll = false;
40871
+ this.limitStylingAppends = false;
40865
40872
  this.currentPage = 0;
40866
40873
  this.updateNotificationsDataAfterPageChange = (getNotificationsData) => {
40867
40874
  this.isLoading = getNotificationsData.isLoading;
@@ -40917,21 +40924,6 @@ const NutsPopover = class {
40917
40924
  this.assignRefToStylingContainer = (ref) => {
40918
40925
  this.stylingContainer = ref;
40919
40926
  };
40920
- this.language = undefined;
40921
- this.userId = undefined;
40922
- this.operatorId = undefined;
40923
- this.token = undefined;
40924
- this.sessionId = undefined;
40925
- this.backendUrl = undefined;
40926
- this.unseenCount = undefined;
40927
- this.clientStylingUrl = undefined;
40928
- this.notificationAction = undefined;
40929
- this.clientStyling = '';
40930
- this.translationUrl = '';
40931
- this.notifications = undefined;
40932
- this.isLoading = true;
40933
- this.showMarkAll = false;
40934
- this.limitStylingAppends = false;
40935
40927
  }
40936
40928
  messageDeteledHandler(event) {
40937
40929
  this.notifications = this.notifications.filter((item) => {