@everymatrix/nuts-inbox-widget 1.76.72 → 1.77.1

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 (40) hide show
  1. package/dist/cjs/{index-c16396a3.js → index-4522ef7e.js} +231 -3
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/nuts-inbox-widget.cjs.js +2 -2
  4. package/dist/cjs/nuts-inbox-widget_3.cjs.entry.js +68 -31
  5. package/dist/collection/components/nuts-inbox-widget/nuts-inbox-widget.js +31 -16
  6. package/dist/collection/components/nuts-notification/constants.js +2 -1
  7. package/dist/collection/components/nuts-notification/nuts-notification.js +82 -13
  8. package/dist/collection/components/nuts-popover/nuts-popover.js +2 -2
  9. package/dist/collection/utils/utils.js +10 -2
  10. package/dist/esm/{index-6a331097.js → index-0160662f.js} +231 -3
  11. package/dist/esm/loader.js +3 -3
  12. package/dist/esm/nuts-inbox-widget.js +3 -3
  13. package/dist/esm/nuts-inbox-widget_3.entry.js +68 -31
  14. package/dist/nuts-inbox-widget/index-0160662f.js +2 -0
  15. package/dist/nuts-inbox-widget/nuts-inbox-widget.esm.js +1 -1
  16. package/dist/nuts-inbox-widget/nuts-inbox-widget_3.entry.js +1 -1
  17. package/dist/stencil.config.js +2 -1
  18. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +2 -0
  19. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +2 -0
  20. package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/index.d.ts +1 -0
  21. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  22. package/dist/types/components/nuts-inbox-widget/nuts-inbox-widget.d.ts +1 -1
  23. package/dist/types/components/nuts-notification/constants.d.ts +2 -1
  24. package/dist/types/components/nuts-notification/nuts-notification.d.ts +8 -0
  25. package/dist/types/components.d.ts +16 -0
  26. package/dist/types/utils/utils.d.ts +1 -1
  27. package/hydrate/index.d.ts +236 -0
  28. package/hydrate/index.js +60405 -0
  29. package/hydrate/index.mjs +60397 -0
  30. package/hydrate/package.json +12 -0
  31. package/package.json +10 -2
  32. package/dist/nuts-inbox-widget/index-6a331097.js +0 -2
  33. package/dist/types/Users/StefanO/Desktop/Proj/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.d.ts +0 -2
  34. package/dist/types/Users/StefanO/Desktop/Proj/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/stencil.config.dev.d.ts +0 -2
  35. /package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  36. /package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/storybook/main.d.ts +0 -0
  37. /package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/packages/stencil/nuts-inbox-widget/storybook/preview.d.ts +0 -0
  38. /package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  39. /package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  40. /package/dist/types/{Users/StefanO/Desktop/Proj → builds/emfe-widgets}/widgets-monorepo/packages/stencil/nuts-inbox-widget/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,7 +21,7 @@ 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, 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: true, 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: true, 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
27
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -93,6 +93,15 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
93
93
 
94
94
  // src/client/client-style.ts
95
95
  var styles = /* @__PURE__ */ new Map();
96
+
97
+ // src/runtime/runtime-constants.ts
98
+ var CONTENT_REF_ID = "r";
99
+ var ORG_LOCATION_ID = "o";
100
+ var SLOT_NODE_ID = "s";
101
+ var TEXT_NODE_ID = "t";
102
+ var HYDRATE_ID = "s-id";
103
+ var HYDRATED_STYLE_ID = "sty-id";
104
+ var HYDRATE_CHILD_ID = "c-id";
96
105
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
106
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
107
  var win = typeof window !== "undefined" ? window : {};
@@ -106,6 +115,7 @@ var plt = {
106
115
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
107
116
  ce: (eventName, opts) => new CustomEvent(eventName, opts)
108
117
  };
118
+ var supportsShadow = BUILD.shadowDom;
109
119
  var supportsListenerOptions = /* @__PURE__ */ (() => {
110
120
  let supportsListenerOptions2 = false;
111
121
  try {
@@ -311,6 +321,197 @@ var newVNode = (tag, text) => {
311
321
  };
312
322
  var Host = {};
313
323
  var isHost = (node) => node && node.$tag$ === Host;
324
+
325
+ // src/runtime/client-hydrate.ts
326
+ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
327
+ const endHydrate = createTime("hydrateClient", tagName);
328
+ const shadowRoot = hostElm.shadowRoot;
329
+ const childRenderNodes = [];
330
+ const slotNodes = [];
331
+ const shadowRootNodes = shadowRoot ? [] : null;
332
+ const vnode = hostRef.$vnode$ = newVNode(tagName, null);
333
+ if (!plt.$orgLocNodes$) {
334
+ initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
335
+ }
336
+ hostElm[HYDRATE_ID] = hostId;
337
+ hostElm.removeAttribute(HYDRATE_ID);
338
+ clientHydrate(vnode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, hostElm, hostId);
339
+ childRenderNodes.map((c) => {
340
+ const orgLocationId = c.$hostId$ + "." + c.$nodeId$;
341
+ const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
342
+ const node = c.$elm$;
343
+ if (orgLocationNode && supportsShadow && orgLocationNode["s-en"] === "") {
344
+ orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
345
+ }
346
+ if (!shadowRoot) {
347
+ node["s-hn"] = tagName;
348
+ if (orgLocationNode) {
349
+ node["s-ol"] = orgLocationNode;
350
+ node["s-ol"]["s-nr"] = node;
351
+ }
352
+ }
353
+ plt.$orgLocNodes$.delete(orgLocationId);
354
+ });
355
+ if (shadowRoot) {
356
+ shadowRootNodes.map((shadowRootNode) => {
357
+ if (shadowRootNode) {
358
+ shadowRoot.appendChild(shadowRootNode);
359
+ }
360
+ });
361
+ }
362
+ endHydrate();
363
+ };
364
+ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId) => {
365
+ let childNodeType;
366
+ let childIdSplt;
367
+ let childVNode;
368
+ let i2;
369
+ if (node.nodeType === 1 /* ElementNode */) {
370
+ childNodeType = node.getAttribute(HYDRATE_CHILD_ID);
371
+ if (childNodeType) {
372
+ childIdSplt = childNodeType.split(".");
373
+ if (childIdSplt[0] === hostId || childIdSplt[0] === "0") {
374
+ childVNode = {
375
+ $flags$: 0,
376
+ $hostId$: childIdSplt[0],
377
+ $nodeId$: childIdSplt[1],
378
+ $depth$: childIdSplt[2],
379
+ $index$: childIdSplt[3],
380
+ $tag$: node.tagName.toLowerCase(),
381
+ $elm$: node,
382
+ $attrs$: null,
383
+ $children$: null,
384
+ $key$: null,
385
+ $name$: null,
386
+ $text$: null
387
+ };
388
+ childRenderNodes.push(childVNode);
389
+ node.removeAttribute(HYDRATE_CHILD_ID);
390
+ if (!parentVNode.$children$) {
391
+ parentVNode.$children$ = [];
392
+ }
393
+ parentVNode.$children$[childVNode.$index$] = childVNode;
394
+ parentVNode = childVNode;
395
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
396
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
397
+ }
398
+ }
399
+ }
400
+ for (i2 = node.childNodes.length - 1; i2 >= 0; i2--) {
401
+ clientHydrate(
402
+ parentVNode,
403
+ childRenderNodes,
404
+ slotNodes,
405
+ shadowRootNodes,
406
+ hostElm,
407
+ node.childNodes[i2],
408
+ hostId
409
+ );
410
+ }
411
+ if (node.shadowRoot) {
412
+ for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {
413
+ clientHydrate(
414
+ parentVNode,
415
+ childRenderNodes,
416
+ slotNodes,
417
+ shadowRootNodes,
418
+ hostElm,
419
+ node.shadowRoot.childNodes[i2],
420
+ hostId
421
+ );
422
+ }
423
+ }
424
+ } else if (node.nodeType === 8 /* CommentNode */) {
425
+ childIdSplt = node.nodeValue.split(".");
426
+ if (childIdSplt[1] === hostId || childIdSplt[1] === "0") {
427
+ childNodeType = childIdSplt[0];
428
+ childVNode = {
429
+ $flags$: 0,
430
+ $hostId$: childIdSplt[1],
431
+ $nodeId$: childIdSplt[2],
432
+ $depth$: childIdSplt[3],
433
+ $index$: childIdSplt[4],
434
+ $elm$: node,
435
+ $attrs$: null,
436
+ $children$: null,
437
+ $key$: null,
438
+ $name$: null,
439
+ $tag$: null,
440
+ $text$: null
441
+ };
442
+ if (childNodeType === TEXT_NODE_ID) {
443
+ childVNode.$elm$ = node.nextSibling;
444
+ if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {
445
+ childVNode.$text$ = childVNode.$elm$.textContent;
446
+ childRenderNodes.push(childVNode);
447
+ node.remove();
448
+ if (!parentVNode.$children$) {
449
+ parentVNode.$children$ = [];
450
+ }
451
+ parentVNode.$children$[childVNode.$index$] = childVNode;
452
+ if (shadowRootNodes && childVNode.$depth$ === "0") {
453
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
454
+ }
455
+ }
456
+ } else if (childVNode.$hostId$ === hostId) {
457
+ if (childNodeType === SLOT_NODE_ID) {
458
+ childVNode.$tag$ = "slot";
459
+ if (childIdSplt[5]) {
460
+ node["s-sn"] = childVNode.$name$ = childIdSplt[5];
461
+ } else {
462
+ node["s-sn"] = "";
463
+ }
464
+ node["s-sr"] = true;
465
+ if (shadowRootNodes) {
466
+ childVNode.$elm$ = doc.createElement(childVNode.$tag$);
467
+ if (childVNode.$name$) {
468
+ childVNode.$elm$.setAttribute("name", childVNode.$name$);
469
+ }
470
+ node.parentNode.insertBefore(childVNode.$elm$, node);
471
+ node.remove();
472
+ if (childVNode.$depth$ === "0") {
473
+ shadowRootNodes[childVNode.$index$] = childVNode.$elm$;
474
+ }
475
+ }
476
+ slotNodes.push(childVNode);
477
+ if (!parentVNode.$children$) {
478
+ parentVNode.$children$ = [];
479
+ }
480
+ parentVNode.$children$[childVNode.$index$] = childVNode;
481
+ } else if (childNodeType === CONTENT_REF_ID) {
482
+ if (shadowRootNodes) {
483
+ node.remove();
484
+ }
485
+ }
486
+ }
487
+ }
488
+ } else if (parentVNode && parentVNode.$tag$ === "style") {
489
+ const vnode = newVNode(null, node.textContent);
490
+ vnode.$elm$ = node;
491
+ vnode.$index$ = "0";
492
+ parentVNode.$children$ = [vnode];
493
+ }
494
+ };
495
+ var initializeDocumentHydrate = (node, orgLocNodes) => {
496
+ if (node.nodeType === 1 /* ElementNode */) {
497
+ let i2 = 0;
498
+ for (; i2 < node.childNodes.length; i2++) {
499
+ initializeDocumentHydrate(node.childNodes[i2], orgLocNodes);
500
+ }
501
+ if (node.shadowRoot) {
502
+ for (i2 = 0; i2 < node.shadowRoot.childNodes.length; i2++) {
503
+ initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);
504
+ }
505
+ }
506
+ } else if (node.nodeType === 8 /* CommentNode */) {
507
+ const childIdSplt = node.nodeValue.split(".");
508
+ if (childIdSplt[0] === ORG_LOCATION_ID) {
509
+ orgLocNodes.set(childIdSplt[1] + "." + childIdSplt[2], node);
510
+ node.nodeValue = "";
511
+ node["s-en"] = childIdSplt[3];
512
+ }
513
+ }
514
+ };
314
515
  var parsePropertyValue = (propValue, propType) => {
315
516
  if (propValue != null && !isComplexType(propValue)) {
316
517
  if (propType & 4 /* Boolean */) {
@@ -376,7 +577,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
376
577
  rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
377
578
  }
378
579
  if (!appliedStyles.has(scopeId2)) {
379
- {
580
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
581
+ styleElm.innerHTML = style;
582
+ } else {
380
583
  styleElm = doc.createElement("style");
381
584
  styleElm.innerHTML = style;
382
585
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
@@ -413,6 +616,7 @@ var attachStyles = (hostRef) => {
413
616
  endAttachStyles();
414
617
  };
415
618
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
619
+ var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
416
620
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
417
621
  if (oldValue !== newValue) {
418
622
  let isProp = isMemberInElement(elm, memberName);
@@ -862,6 +1066,9 @@ var postUpdateComponent = (hostRef) => {
862
1066
  {
863
1067
  addHydratedFlag(elm);
864
1068
  }
1069
+ {
1070
+ safeCall(instance, "componentDidLoad");
1071
+ }
865
1072
  endPostUpdate();
866
1073
  {
867
1074
  hostRef.$onReadyResolve$(elm);
@@ -1094,10 +1301,21 @@ var connectedCallback = (elm) => {
1094
1301
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1095
1302
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1096
1303
  hostRef.$flags$ |= 1 /* hasConnected */;
1304
+ let hostId;
1305
+ {
1306
+ hostId = elm.getAttribute(HYDRATE_ID);
1307
+ if (hostId) {
1308
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1309
+ const scopeId2 = addStyle(elm.shadowRoot, cmpMeta);
1310
+ elm.classList.remove(scopeId2 + "-h", scopeId2 + "-s");
1311
+ }
1312
+ initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
1313
+ }
1314
+ }
1097
1315
  {
1098
1316
  let ancestorComponent = elm;
1099
1317
  while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1100
- if (ancestorComponent["s-p"]) {
1318
+ if (ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute("s-id") && ancestorComponent["s-p"] || ancestorComponent["s-p"]) {
1101
1319
  attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1102
1320
  break;
1103
1321
  }
@@ -1154,10 +1372,20 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1154
1372
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1155
1373
  const dataStyles = /* @__PURE__ */ doc.createElement("style");
1156
1374
  const deferredConnectedCallbacks = [];
1375
+ const styles2 = /* @__PURE__ */ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
1157
1376
  let appLoadFallback;
1158
1377
  let isBootstrapping = true;
1378
+ let i2 = 0;
1159
1379
  Object.assign(plt, options);
1160
1380
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1381
+ {
1382
+ plt.$flags$ |= 2 /* appLoaded */;
1383
+ }
1384
+ {
1385
+ for (; i2 < styles2.length; i2++) {
1386
+ registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
1387
+ }
1388
+ }
1161
1389
  let hasSlotRelocation = false;
1162
1390
  lazyBundles.map((lazyBundle) => {
1163
1391
  lazyBundle[1].map((compactMeta) => {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c16396a3.js');
5
+ const index = require('./index-4522ef7e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[1,"nuts-inbox-widget",{"backendUrl":[513,"backend-url"],"socketUrl":[513,"socket-url"],"userId":[513,"user-id"],"sessionId":[513,"session-id"],"operatorId":[513,"operator-id"],"subscriberId":[513,"subscriber-id"],"deviceId":[513,"device-id"],"language":[513],"environment":[513],"applicationIdentifier":[513,"application-identifier"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bellIconPosition":[513,"bell-icon-position"],"notificationAction":[513,"notification-action"],"translationUrl":[513,"translation-url"],"isLoading":[32],"popoverVisible":[32],"unseenCount":[32],"limitStylingAppends":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"deviceId":["initializeHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-popover",{"language":[513],"userId":[513,"user-id"],"operatorId":[513,"operator-id"],"token":[513],"sessionId":[513,"session-id"],"backendUrl":[513,"backend-url"],"unseenCount":[514,"unseen-count"],"clientStylingUrl":[513,"client-styling-url"],"notificationAction":[513,"notification-action"],"clientStyling":[1537,"client-styling"],"translationUrl":[513,"translation-url"],"notifications":[32],"isLoading":[32],"isNotificationsLoading":[32],"showMarkAll":[32],"limitStylingAppends":[32],"showDeleteAllPopup":[32],"hasMore":[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{"unseenCount":["unseenCountHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-notification",{"badge":[513],"content":[513],"date":[513],"showSettings":[516,"show-settings"],"read":[516],"seen":[516],"language":[513],"sessionId":[513,"session-id"],"subscriberId":[513,"subscriber-id"],"userId":[513,"user-id"],"messageId":[513,"message-id"],"operatorId":[513,"operator-id"],"token":[513],"backendUrl":[513,"backend-url"],"redirectUrl":[513,"redirect-url"],"notificationAction":[513,"notification-action"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
11
+ return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[1,"nuts-inbox-widget",{"backendUrl":[513,"backend-url"],"socketUrl":[513,"socket-url"],"userId":[513,"user-id"],"sessionId":[513,"session-id"],"operatorId":[513,"operator-id"],"subscriberId":[513,"subscriber-id"],"deviceId":[513,"device-id"],"language":[513],"environment":[513],"applicationIdentifier":[513,"application-identifier"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bellIconPosition":[513,"bell-icon-position"],"notificationAction":[513,"notification-action"],"translationUrl":[513,"translation-url"],"isLoading":[32],"popoverVisible":[32],"unseenCount":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"deviceId":["initializeHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-popover",{"language":[513],"userId":[513,"user-id"],"operatorId":[513,"operator-id"],"token":[513],"sessionId":[513,"session-id"],"backendUrl":[513,"backend-url"],"unseenCount":[514,"unseen-count"],"clientStylingUrl":[513,"client-styling-url"],"notificationAction":[513,"notification-action"],"clientStyling":[1537,"client-styling"],"translationUrl":[513,"translation-url"],"notifications":[32],"isLoading":[32],"isNotificationsLoading":[32],"showMarkAll":[32],"limitStylingAppends":[32],"showDeleteAllPopup":[32],"hasMore":[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{"unseenCount":["unseenCountHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-notification",{"badge":[513],"content":[513],"date":[513],"showSettings":[516,"show-settings"],"read":[516],"seen":[516],"language":[513],"sessionId":[513,"session-id"],"subscriberId":[513,"subscriber-id"],"userId":[513,"user-id"],"messageId":[513,"message-id"],"operatorId":[513,"operator-id"],"token":[513],"backendUrl":[513,"backend-url"],"redirectUrl":[513,"redirect-url"],"notificationAction":[513,"notification-action"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"maxTextLength":[514,"max-text-length"],"maxLines":[514,"max-lines"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c16396a3.js');
5
+ const index = require('./index-4522ef7e.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[1,"nuts-inbox-widget",{"backendUrl":[513,"backend-url"],"socketUrl":[513,"socket-url"],"userId":[513,"user-id"],"sessionId":[513,"session-id"],"operatorId":[513,"operator-id"],"subscriberId":[513,"subscriber-id"],"deviceId":[513,"device-id"],"language":[513],"environment":[513],"applicationIdentifier":[513,"application-identifier"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bellIconPosition":[513,"bell-icon-position"],"notificationAction":[513,"notification-action"],"translationUrl":[513,"translation-url"],"isLoading":[32],"popoverVisible":[32],"unseenCount":[32],"limitStylingAppends":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"deviceId":["initializeHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-popover",{"language":[513],"userId":[513,"user-id"],"operatorId":[513,"operator-id"],"token":[513],"sessionId":[513,"session-id"],"backendUrl":[513,"backend-url"],"unseenCount":[514,"unseen-count"],"clientStylingUrl":[513,"client-styling-url"],"notificationAction":[513,"notification-action"],"clientStyling":[1537,"client-styling"],"translationUrl":[513,"translation-url"],"notifications":[32],"isLoading":[32],"isNotificationsLoading":[32],"showMarkAll":[32],"limitStylingAppends":[32],"showDeleteAllPopup":[32],"hasMore":[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{"unseenCount":["unseenCountHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-notification",{"badge":[513],"content":[513],"date":[513],"showSettings":[516,"show-settings"],"read":[516],"seen":[516],"language":[513],"sessionId":[513,"session-id"],"subscriberId":[513,"subscriber-id"],"userId":[513,"user-id"],"messageId":[513,"message-id"],"operatorId":[513,"operator-id"],"token":[513],"backendUrl":[513,"backend-url"],"redirectUrl":[513,"redirect-url"],"notificationAction":[513,"notification-action"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
22
+ return index.bootstrapLazy([["nuts-inbox-widget_3.cjs",[[1,"nuts-inbox-widget",{"backendUrl":[513,"backend-url"],"socketUrl":[513,"socket-url"],"userId":[513,"user-id"],"sessionId":[513,"session-id"],"operatorId":[513,"operator-id"],"subscriberId":[513,"subscriber-id"],"deviceId":[513,"device-id"],"language":[513],"environment":[513],"applicationIdentifier":[513,"application-identifier"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"bellIconPosition":[513,"bell-icon-position"],"notificationAction":[513,"notification-action"],"translationUrl":[513,"translation-url"],"isLoading":[32],"popoverVisible":[32],"unseenCount":[32]},[[8,"click","clickOutsideHandle"],[0,"allNotificationsRead","resetUnseenCount"],[8,"closePopover","closePopoverHandler"]],{"subscriberId":["initializeHandler"],"operatorId":["initializeHandler"],"applicationIdentifier":["initializeHandler"],"deviceId":["initializeHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-popover",{"language":[513],"userId":[513,"user-id"],"operatorId":[513,"operator-id"],"token":[513],"sessionId":[513,"session-id"],"backendUrl":[513,"backend-url"],"unseenCount":[514,"unseen-count"],"clientStylingUrl":[513,"client-styling-url"],"notificationAction":[513,"notification-action"],"clientStyling":[1537,"client-styling"],"translationUrl":[513,"translation-url"],"notifications":[32],"isLoading":[32],"isNotificationsLoading":[32],"showMarkAll":[32],"limitStylingAppends":[32],"showDeleteAllPopup":[32],"hasMore":[32]},[[8,"messageDeleted","messageDeletedHandler"],[8,"messageRead","messageReadHandler"],[8,"click","clickOutsideHandle"]],{"unseenCount":["unseenCountHandler"],"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}],[0,"nuts-notification",{"badge":[513],"content":[513],"date":[513],"showSettings":[516,"show-settings"],"read":[516],"seen":[516],"language":[513],"sessionId":[513,"session-id"],"subscriberId":[513,"subscriber-id"],"userId":[513,"user-id"],"messageId":[513,"message-id"],"operatorId":[513,"operator-id"],"token":[513],"backendUrl":[513,"backend-url"],"redirectUrl":[513,"redirect-url"],"notificationAction":[513,"notification-action"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"maxTextLength":[514,"max-text-length"],"maxLines":[514,"max-lines"],"showSettingsModal":[32],"messageSeen":[32],"messageRead":[32],"displayedContent":[32],"limitStylingAppends":[32]},[[8,"allNotificationsRead","allNotificationsReadHandler"],[8,"settingsOpened","settingsOpenedHandler"],[8,"click","clickOutsideHandle"]],{"clientStyling":["handleStylingChange"],"clientStylingUrl":["handleStylingUrlChange"],"translationUrl":["handleNewTranslations"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-c16396a3.js');
5
+ const index = require('./index-4522ef7e.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const SUPPORTED_LANGUAGES = ['hu', 'en', 'tr'];
@@ -4397,7 +4397,6 @@ const NutsInboxWidget = class {
4397
4397
  this.isLoading = false;
4398
4398
  this.popoverVisible = false;
4399
4399
  this.unseenCount = undefined;
4400
- this.limitStylingAppends = false;
4401
4400
  }
4402
4401
  initializeHandler(newValue, oldValue) {
4403
4402
  if (newValue !== oldValue) {
@@ -4440,6 +4439,8 @@ const NutsInboxWidget = class {
4440
4439
  }
4441
4440
  }
4442
4441
  setupSocket() {
4442
+ if (this.socketRef)
4443
+ return;
4443
4444
  if (this.token) {
4444
4445
  this.socketRef = lookup(this.socketUrl, {
4445
4446
  reconnection: true,
@@ -4478,9 +4479,6 @@ const NutsInboxWidget = class {
4478
4479
  window.postMessage({ type: 'nuts-new-notifications', value: this.unseenCount }, window.location.href);
4479
4480
  this.setupSocket();
4480
4481
  }
4481
- if (this.clientStylingUrl) {
4482
- this.setClientStylingURL();
4483
- }
4484
4482
  }
4485
4483
  handleStylingChange(newValue, oldValue) {
4486
4484
  if (newValue !== oldValue)
@@ -4502,22 +4500,21 @@ const NutsInboxWidget = class {
4502
4500
  }
4503
4501
  }
4504
4502
  componentDidRender() {
4505
- // start custom styling area
4506
- if (!this.limitStylingAppends && this.stylingContainer) {
4507
- if (this.clientStyling)
4508
- this.setClientStyling();
4509
- if (this.clientStylingUrl)
4510
- this.setClientStylingURL();
4511
- this.limitStylingAppends = true;
4512
- }
4513
- // end custom styling area
4514
4503
  this.positionIcon();
4515
4504
  }
4505
+ componentDidLoad() {
4506
+ if (this.clientStyling) {
4507
+ this.setClientStyling();
4508
+ }
4509
+ if (this.clientStylingUrl) {
4510
+ this.setClientStylingURL();
4511
+ }
4512
+ }
4516
4513
  renderBellIcon() {
4517
4514
  return (index.h("div", { onClick: this.togglePopover, class: "BellIcon" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "32", height: "32", fill: "currentColor", class: "bi bi-bell", viewBox: "0 0 16 16" }, ' ', index.h("path", { d: "M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z" }), ' '), this.unseenCount > 0 ? (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", class: "nc-bell-button-dot css-0 css-1eg2znq" }, index.h("rect", { x: "1.5", y: "1.5", width: "13", height: "13", rx: "6.5", fill: "url(#paint0_linear_1722_2699)", stroke: "#1E1E26", "stroke-width": "3" }), index.h("defs", null, index.h("linearGradient", { id: "paint0_linear_1722_2699", x1: "8", y1: "13", x2: "8", y2: "3", gradientUnits: "userSpaceOnUse" }, index.h("stop", { "stop-color": "#FF512F" }), index.h("stop", { offset: "1", "stop-color": "#DD2476" }))))) : ('')));
4518
4515
  }
4519
4516
  render() {
4520
- return (index.h("div", { key: '15e43d27da4718c321f1d498b79b8491b8e298f5', ref: this.assignRefToStylingContainer, class: "Wrapper" }, index.h("div", { key: '29f955f1cab9088c6c52f55637ae64f4138c1a7c', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.token && this.popoverVisible && (index.h("nuts-popover", { key: '6859355573c32c22d69156d8ca04045bee6bc020', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
4517
+ return (index.h("div", { key: '976f73d1e55a55aa5370f1cf1e03dd81ffe2b21a', ref: this.assignRefToStylingContainer, class: "Wrapper" }, index.h("div", { key: 'b443d739125b7b7e4798fd751e71c18cbc7ea43b', ref: this.assignRefToBell, class: "BellIconWrapper" }, !this.isLoading && this.renderBellIcon()), this.token && this.popoverVisible && (index.h("nuts-popover", { key: '0dc6e5a66747b44d6e1827cfc517dece41a215a2', "notification-action": this.notificationAction, sessionId: this.sessionId, "unseen-count": this.unseenCount, token: this.token, "backend-url": this.backendUrl, "operator-id": this.operatorId, "user-id": this.userId, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl }))));
4521
4518
  }
4522
4519
  get el() { return index.getElement(this); }
4523
4520
  static get watchers() { return {
@@ -42319,13 +42316,22 @@ function renderAbstractNodeToSVGElement(node, options) {
42319
42316
  return "<".concat(node.tag).concat(attrsToken, " />");
42320
42317
  }
42321
42318
 
42322
- const MAX_NOTIFICATION_TEXT_LENGTH = 150;
42319
+ const MAX_NOTIFICATION_TEXT_LENGTH = 200;
42320
+ const MAX_NOTIFICATION_LINES = 5;
42323
42321
 
42324
- const truncate = (str, n) => {
42322
+ const truncate = (str, n, l) => {
42325
42323
  if (!str || n < 0) {
42326
42324
  return;
42327
42325
  }
42328
- return str.length > n ? str.slice(0, n - 1) + '...' : str;
42326
+ if (str.length > n) {
42327
+ return str.slice(0, n - 1) + '...';
42328
+ }
42329
+ const matches = [...str.matchAll(/<br\s*\/?>|<\/p>/gi)];
42330
+ if (matches.length >= l) {
42331
+ const cutoffIndex = matches[l - 1].index;
42332
+ return str.slice(0, cutoffIndex) + '...';
42333
+ }
42334
+ return str;
42329
42335
  };
42330
42336
 
42331
42337
  const nutsNotificationCss = ":host{display:block}p{display:block;margin-block-start:0em;margin-block-end:0em;margin-inline-start:0px;margin-inline-end:0px}.NotificationContainer{animation:show 600ms 100ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;transform-origin:top center;padding:15px;position:relative;display:flex;line-height:20px;justify-content:space-between;align-items:flex-start;border-radius:7px;margin:10px 15px;color:var(--emw--color-white, rgb(255, 255, 255));background:var(--emw--color-gray-400, rgb(35, 35, 43));font-weight:400;font-size:14px;gap:8px;cursor:pointer}@keyframes show{100%{opacity:1;transform:none}}.NotificationContainer .AvatarContainer{margin-right:10px;width:40px;min-width:40px;height:40px;border-radius:50%;display:flex;justify-content:center;align-items:center;font-size:40px;border:1px solid var(--emw--color-gray-200, rgb(82, 82, 102));overflow:hidden}.NotificationContainer .AvatarContainer .Avatar{box-sizing:border-box;position:relative;display:flex;user-select:none;overflow:hidden;width:38px;min-width:38px;height:38px;border-radius:32px;text-decoration:none;border:0px;background-color:transparent;padding:0px;justify-content:center;align-items:center}.NotificationContainer .AvatarContainer .Avatar .AvatarImage{object-fit:cover;width:100%;height:100%;display:block}.NotificationContainer .AvatarContainer .Avatar svg{object-fit:cover;display:block}.NotificationContainer .ContentContainer{display:flex;flex-direction:column;word-break:break-word;text-align:justify}.NotificationContainer .RightActionsContainer{display:flex;flex-direction:column}.NotificationContainer .FlipX{transform:rotateX(180deg) translate(0, 4px)}.NotificationContainer .AccordionArrow{margin-left:4px;transition-duration:0.2s;transition-property:transform}.NotificationContainer .Date{min-width:55px;font-size:12px;font-weight:400;opacity:0.5;line-height:14.4px;color:var(--emw--color-gray-200, rgb(82, 82, 102))}.NotificationContainer .Settings{opacity:0.5;display:inline;cursor:pointer}.Unseen::before{content:\"\";position:absolute;inset:0px;width:5px;border-radius:7px 0px 0px 7px;background:linear-gradient(0deg, var(--emw--color-secondary-20, rgb(255, 81, 47)) 0%, var(--emw--color-secondary, rgb(221, 36, 118)) 100%)}.Unseen:hover .UnseenButton{display:none}.SettingsDropdown{z-index:999;position:absolute;background:var(--emw--color-gray-400, rgb(41, 41, 51));box-shadow:var(--emw--color-gray-20, rgba(0, 0, 0, 0.2)) 0px 5px 20px;border-radius:7px;padding:4px;border:none;transition-property:opacity;transition-duration:150ms;transition-timing-function:ease;opacity:1;width:max-content;display:flex;flex-direction:column;right:50px;top:50px}.SettingsDropdown svg{margin-right:10px}.SettingsDropdown button{font-family:inherit;border:0px;background-color:transparent;outline:0px;width:100%;text-align:left;text-decoration:none;box-sizing:border-box;padding:10px 12px;cursor:pointer;border-radius:7px;display:flex;align-items:center;color:var(--emw--color-white, rgb(255, 255, 255));font-weight:400;font-size:14px}.SettingsDropdown button:hover{background:var(--emw--color-gray-300, rgb(61, 61, 77));transition:300ms}.Wrapper{position:relative}";
@@ -42422,7 +42428,7 @@ const NutsNotification = class {
42422
42428
  this.messageDeteled.emit(this.messageId);
42423
42429
  };
42424
42430
  this.notificationActionHandler = () => {
42425
- var _a, _b, _c;
42431
+ var _a, _b, _c, _d;
42426
42432
  if (this.notificationAction == 'default' || !this.notificationAction) {
42427
42433
  if (this.redirectUrl.length > 0) {
42428
42434
  window.location.href = this.redirectUrl;
@@ -42431,15 +42437,16 @@ const NutsNotification = class {
42431
42437
  if (this.notificationAction == 'postMessage') {
42432
42438
  window.postMessage({ type: 'NotificationRedirect', url: this.redirectUrl }, window.location.href);
42433
42439
  }
42434
- if (((_a = this.content) === null || _a === void 0 ? void 0 : _a.length) <= MAX_NOTIFICATION_TEXT_LENGTH) {
42440
+ if (((_a = this.content) === null || _a === void 0 ? void 0 : _a.length) <= this.maxTextLength &&
42441
+ (((_b = this.content) === null || _b === void 0 ? void 0 : _b.match(/<br\s*\/?>|<\/p>/gi)) || []).length <= this.maxLines) {
42435
42442
  return;
42436
42443
  }
42437
- if (((_b = this.displayedContent) === null || _b === void 0 ? void 0 : _b.length) !== ((_c = this.content) === null || _c === void 0 ? void 0 : _c.length) && this.displayedContent !== this.content) {
42444
+ if (((_c = this.displayedContent) === null || _c === void 0 ? void 0 : _c.length) !== ((_d = this.content) === null || _d === void 0 ? void 0 : _d.length) && this.displayedContent !== this.content) {
42438
42445
  this.displayedContent = this.content;
42439
42446
  this.dropdownArrowRef.classList.add('FlipX');
42440
42447
  return;
42441
42448
  }
42442
- this.displayedContent = truncate(this.content, MAX_NOTIFICATION_TEXT_LENGTH);
42449
+ this.displayedContent = truncate(this.content, this.maxTextLength, this.maxLines);
42443
42450
  this.dropdownArrowRef.classList.remove('FlipX');
42444
42451
  };
42445
42452
  this.setClientStyling = () => {
@@ -42487,6 +42494,8 @@ const NutsNotification = class {
42487
42494
  this.clientStylingUrl = undefined;
42488
42495
  this.translationUrl = '';
42489
42496
  this.clientStyling = '';
42497
+ this.maxTextLength = MAX_NOTIFICATION_TEXT_LENGTH;
42498
+ this.maxLines = MAX_NOTIFICATION_LINES;
42490
42499
  this.showSettingsModal = false;
42491
42500
  this.messageSeen = false;
42492
42501
  this.messageRead = false;
@@ -42531,6 +42540,8 @@ const NutsNotification = class {
42531
42540
  // end custom styling area
42532
42541
  }
42533
42542
  async componentWillLoad() {
42543
+ this.maxTextLength = Number(this.maxTextLength);
42544
+ this.maxLines = Number(this.maxLines);
42534
42545
  if (this.translationUrl.length > 2) {
42535
42546
  await getTranslations(this.translationUrl);
42536
42547
  }
@@ -42538,23 +42549,49 @@ const NutsNotification = class {
42538
42549
  connectedCallback() {
42539
42550
  this.messageSeen = this.seen;
42540
42551
  this.messageRead = this.read;
42541
- this.displayedContent = truncate(this.content, MAX_NOTIFICATION_TEXT_LENGTH);
42552
+ this.displayedContent = truncate(this.content, this.maxTextLength, this.maxLines);
42542
42553
  this.baseUrl = `${this.backendUrl}/v1/${this.operatorId}`;
42543
42554
  }
42544
42555
  render() {
42545
- var _a, _b;
42556
+ var _a, _b, _c;
42546
42557
  const sanitizedNotificationBody = DOMPurify.sanitize(this.displayedContent, {
42547
42558
  ALLOW_UNKNOWN_PROTOCOLS: true,
42548
42559
  ADD_ATTR: ['target', 'rel'],
42549
- ALLOWED_TAGS: ['b', 'u', 'i', 'br', 'a', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
42550
- 'strong', 'p', 'i', 'small', 'mark', 'del', 'b', 's', 'ins',
42551
- 'sub', 'sup', 'var', 'cite', 'q', 'blockquote',
42560
+ ALLOWED_TAGS: [
42561
+ 'b',
42562
+ 'u',
42563
+ 'i',
42564
+ 'br',
42565
+ 'a',
42566
+ 'em',
42567
+ 'h1',
42568
+ 'h2',
42569
+ 'h3',
42570
+ 'h4',
42571
+ 'h5',
42572
+ 'h6',
42573
+ 'strong',
42574
+ 'p',
42575
+ 'i',
42576
+ 'small',
42577
+ 'mark',
42578
+ 'del',
42579
+ 'b',
42580
+ 's',
42581
+ 'ins',
42582
+ 'sub',
42583
+ 'sup',
42584
+ 'var',
42585
+ 'cite',
42586
+ 'q',
42587
+ 'blockquote'
42552
42588
  ]
42553
42589
  });
42554
- return (index.h("div", { key: 'b34f31877d65b1fb42e713f8bcca276afc1e5b76', class: "Wrapper" }, index.h("div", { key: 'b0800f24753323926e0454b8f414b803c0895bb2', class: 'NotificationContainer' + (this.messageSeen ? '' : ' Unseen'), ref: this.assignRefToStylingContainer, onClick: this.notificationActionHandler }, this.badge ? (index.h("div", { class: "AvatarContainer" }, index.h("div", { class: "Avatar" }, ((_a = systemIcons[this.badge]) === null || _a === void 0 ? void 0 : _a.icon) ? (index.h("div", { innerHTML: systemIcons[this.badge].icon })) : (index.h("img", { class: "AvatarImage", src: this.badge }))))) : (''), index.h("div", { key: '589141b01303992d77fbfa2df3fb5b487ca5983b', class: "ContentContainer" }, index.h("div", { key: '7275fdb4a538e0c0304ebe0820fc6b521c71b108', innerHTML: sanitizedNotificationBody }), index.h("p", { key: '463226f1add7828670dcf8b50434c03fc2129ec0', class: "Date" }, formatDistanceToNow(new Date(this.date), {
42590
+ return (index.h("div", { key: 'a74957d743897164ff0f3b3d17707a8db5f433fd', class: "Wrapper" }, index.h("div", { key: '7dd78a87e080e8ca578620356b2cff9acc9fd64c', class: 'NotificationContainer' + (this.messageSeen ? '' : ' Unseen'), ref: this.assignRefToStylingContainer, onClick: this.notificationActionHandler }, this.badge ? (index.h("div", { class: "AvatarContainer" }, index.h("div", { class: "Avatar" }, ((_a = systemIcons[this.badge]) === null || _a === void 0 ? void 0 : _a.icon) ? (index.h("div", { innerHTML: systemIcons[this.badge].icon })) : (index.h("img", { class: "AvatarImage", src: this.badge }))))) : (''), index.h("div", { key: 'ea80f329d9994c429bc6c66f2f414daf7e0771b0', class: "ContentContainer" }, index.h("div", { key: 'b817eecb9732eeb3b19c438c0fbe6398c822dcf0', innerHTML: sanitizedNotificationBody }), index.h("p", { key: 'cb2c821ba968bb6e95c5703e94c296857822ae77', class: "Date" }, formatDistanceToNow(new Date(this.date), {
42555
42591
  addSuffix: true,
42556
42592
  locale: dateFnsLocale(this.language)
42557
- }))), index.h("div", { key: '474cfe140b4ff5af3ed2b26e833172014bc9d04d', class: "RightActionsContainer" }, index.h("div", { key: '48316785510b38b7698f790a9cfc9bcf882a13ce', class: "Settings", onClick: this.toggleSettingsModal }, index.h("svg", { key: '7f4b9395133a88910dc45bfb55cb6f1278b4f81a', width: "24", height: "24", viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'c810faca29bca8ab36fa47199e5a007b82dc9053', d: "M20.625 15.5C20.625 16.5547 21.4453 17.375 22.5 17.375C23.5156 17.375 24.375 16.5547 24.375 15.5C24.375 14.4844 23.5156 13.625 22.5 13.625C21.4453 13.625 20.625 14.4844 20.625 15.5ZM9.375 15.5C9.375 14.4844 8.51562 13.625 7.5 13.625C6.44531 13.625 5.625 14.4844 5.625 15.5C5.625 16.5547 6.44531 17.375 7.5 17.375C8.51562 17.375 9.375 16.5547 9.375 15.5ZM16.875 15.5C16.875 14.4844 16.0156 13.625 15 13.625C13.9453 13.625 13.125 14.4844 13.125 15.5C13.125 16.5547 13.9453 17.375 15 17.375C16.0156 17.375 16.875 16.5547 16.875 15.5Z", fill: "currentColor" }))), ((_b = this.content) === null || _b === void 0 ? void 0 : _b.length) > MAX_NOTIFICATION_TEXT_LENGTH && (index.h("div", { key: '566e7888b1b4baf1d1421474918d3f5ae88476e1', class: "AccordionArrow", innerHTML: systemIcons.arrowDown.icon, ref: this.assignRefToDropdownArrow })))), this.showSettingsModal ? (index.h("div", { class: "SettingsDropdown" }, index.h("button", { onClick: this.toggleNotificationRead }, index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M14.9434 5.17969C14.2109 4.59375 13.625 4.125 10.1387 1.60547C9.64062 1.25391 8.67383 0.375 8 0.375V0.404297C7.9707 0.404297 7.9707 0.375 7.9707 0.375C7.29688 0.375 6.33008 1.25391 5.83203 1.60547C2.3457 4.125 1.75977 4.59375 1.02734 5.17969C0.675781 5.44336 0.5 5.85352 0.5 6.26367V13.9688C0.5 14.7598 1.11523 15.375 1.90625 15.375H14.0938C14.8555 15.375 15.5 14.7598 15.5 13.9688V6.26367C15.5 5.85352 15.2949 5.44336 14.9434 5.17969ZM9.37695 11.1562C8.9668 11.4785 8.46875 11.6543 8 11.6543C7.50195 11.6543 7.00391 11.4785 6.59375 11.1562L2.375 7.8457V6.49805C2.99023 6 3.72266 5.44336 6.94531 3.12891C7.0332 3.04102 7.15039 2.95312 7.26758 2.86523C7.41406 2.74805 7.73633 2.48438 8 2.33789C8.23438 2.48438 8.55664 2.74805 8.70312 2.86523C8.82031 2.95312 8.9375 3.04102 9.02539 3.12891C12.2188 5.44336 12.9805 6 13.625 6.49805V7.8457L9.37695 11.1562Z", fill: "currentColor" })), translate$1(this.messageRead ? 'markAsUnread' : 'markAsRead', this.language)), index.h("button", { onClick: this.deleteNotification }, index.h("svg", { width: "16", height: "16", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M4.375 15.4375C4.375 16.1758 4.94922 16.75 5.6875 16.75H13.5625C14.2734 16.75 14.875 16.1758 14.875 15.4375V6.25H4.375V15.4375ZM11.8125 8.4375C11.8125 8.21875 12.0039 8 12.25 8C12.4688 8 12.6875 8.21875 12.6875 8.4375V14.5625C12.6875 14.8086 12.4688 15 12.25 15C12.0039 15 11.8125 14.8086 11.8125 14.5625V8.4375ZM9.1875 8.4375C9.1875 8.21875 9.37891 8 9.625 8C9.84375 8 10.0625 8.21875 10.0625 8.4375V14.5625C10.0625 14.8086 9.84375 15 9.625 15C9.37891 15 9.1875 14.8086 9.1875 14.5625V8.4375ZM6.5625 8.4375C6.5625 8.21875 6.75391 8 7 8C7.21875 8 7.4375 8.21875 7.4375 8.4375V14.5625C7.4375 14.8086 7.21875 15 7 15C6.75391 15 6.5625 14.8086 6.5625 14.5625V8.4375ZM15.3125 3.625H12.25L11.9219 2.99609C11.8398 2.85938 11.7031 2.75 11.5391 2.75H7.68359C7.51953 2.75 7.38281 2.85938 7.30078 2.99609L7 3.625H3.9375C3.69141 3.625 3.5 3.84375 3.5 4.0625V4.9375C3.5 5.18359 3.69141 5.375 3.9375 5.375H15.3125C15.5312 5.375 15.75 5.18359 15.75 4.9375V4.0625C15.75 3.84375 15.5312 3.625 15.3125 3.625Z", fill: "currentColor" })), translate$1('removeMessage', this.language)))) : ('')));
42593
+ }))), index.h("div", { key: 'd35902296022dff85e84d2484846a724f4b098af', class: "RightActionsContainer" }, index.h("div", { key: 'b3f4f5d0452d89e58bf64a10d42140ad0d000f98', class: "Settings", onClick: this.toggleSettingsModal }, index.h("svg", { key: 'f5dab069aeb97ed7e7055277518b9850e47aa017', width: "24", height: "24", viewBox: "0 0 30 30", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '79398e37d9fa8fa5fb856d739caaa6b3e343c79a', d: "M20.625 15.5C20.625 16.5547 21.4453 17.375 22.5 17.375C23.5156 17.375 24.375 16.5547 24.375 15.5C24.375 14.4844 23.5156 13.625 22.5 13.625C21.4453 13.625 20.625 14.4844 20.625 15.5ZM9.375 15.5C9.375 14.4844 8.51562 13.625 7.5 13.625C6.44531 13.625 5.625 14.4844 5.625 15.5C5.625 16.5547 6.44531 17.375 7.5 17.375C8.51562 17.375 9.375 16.5547 9.375 15.5ZM16.875 15.5C16.875 14.4844 16.0156 13.625 15 13.625C13.9453 13.625 13.125 14.4844 13.125 15.5C13.125 16.5547 13.9453 17.375 15 17.375C16.0156 17.375 16.875 16.5547 16.875 15.5Z", fill: "currentColor" }))), (((_b = this.content) === null || _b === void 0 ? void 0 : _b.length) > this.maxTextLength ||
42594
+ (((_c = this.content) === null || _c === void 0 ? void 0 : _c.match(/<br\s*\/?>|<\/p>/gi)) || []).length > this.maxLines) && (index.h("div", { key: 'a75570887a9b7441b38c7cacf63ba525a17e795c', class: "AccordionArrow", innerHTML: systemIcons.arrowDown.icon, ref: this.assignRefToDropdownArrow })))), this.showSettingsModal ? (index.h("div", { class: "SettingsDropdown" }, index.h("button", { onClick: this.toggleNotificationRead }, index.h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M14.9434 5.17969C14.2109 4.59375 13.625 4.125 10.1387 1.60547C9.64062 1.25391 8.67383 0.375 8 0.375V0.404297C7.9707 0.404297 7.9707 0.375 7.9707 0.375C7.29688 0.375 6.33008 1.25391 5.83203 1.60547C2.3457 4.125 1.75977 4.59375 1.02734 5.17969C0.675781 5.44336 0.5 5.85352 0.5 6.26367V13.9688C0.5 14.7598 1.11523 15.375 1.90625 15.375H14.0938C14.8555 15.375 15.5 14.7598 15.5 13.9688V6.26367C15.5 5.85352 15.2949 5.44336 14.9434 5.17969ZM9.37695 11.1562C8.9668 11.4785 8.46875 11.6543 8 11.6543C7.50195 11.6543 7.00391 11.4785 6.59375 11.1562L2.375 7.8457V6.49805C2.99023 6 3.72266 5.44336 6.94531 3.12891C7.0332 3.04102 7.15039 2.95312 7.26758 2.86523C7.41406 2.74805 7.73633 2.48438 8 2.33789C8.23438 2.48438 8.55664 2.74805 8.70312 2.86523C8.82031 2.95312 8.9375 3.04102 9.02539 3.12891C12.2188 5.44336 12.9805 6 13.625 6.49805V7.8457L9.37695 11.1562Z", fill: "currentColor" })), translate$1(this.messageRead ? 'markAsUnread' : 'markAsRead', this.language)), index.h("button", { onClick: this.deleteNotification }, index.h("svg", { width: "16", height: "16", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M4.375 15.4375C4.375 16.1758 4.94922 16.75 5.6875 16.75H13.5625C14.2734 16.75 14.875 16.1758 14.875 15.4375V6.25H4.375V15.4375ZM11.8125 8.4375C11.8125 8.21875 12.0039 8 12.25 8C12.4688 8 12.6875 8.21875 12.6875 8.4375V14.5625C12.6875 14.8086 12.4688 15 12.25 15C12.0039 15 11.8125 14.8086 11.8125 14.5625V8.4375ZM9.1875 8.4375C9.1875 8.21875 9.37891 8 9.625 8C9.84375 8 10.0625 8.21875 10.0625 8.4375V14.5625C10.0625 14.8086 9.84375 15 9.625 15C9.37891 15 9.1875 14.8086 9.1875 14.5625V8.4375ZM6.5625 8.4375C6.5625 8.21875 6.75391 8 7 8C7.21875 8 7.4375 8.21875 7.4375 8.4375V14.5625C7.4375 14.8086 7.21875 15 7 15C6.75391 15 6.5625 14.8086 6.5625 14.5625V8.4375ZM15.3125 3.625H12.25L11.9219 2.99609C11.8398 2.85938 11.7031 2.75 11.5391 2.75H7.68359C7.51953 2.75 7.38281 2.85938 7.30078 2.99609L7 3.625H3.9375C3.69141 3.625 3.5 3.84375 3.5 4.0625V4.9375C3.5 5.18359 3.69141 5.375 3.9375 5.375H15.3125C15.5312 5.375 15.75 5.18359 15.75 4.9375V4.0625C15.75 3.84375 15.5312 3.625 15.3125 3.625Z", fill: "currentColor" })), translate$1('removeMessage', this.language)))) : ('')));
42558
42595
  }
42559
42596
  get el() { return index.getElement(this); }
42560
42597
  static get watchers() { return {
@@ -42751,8 +42788,8 @@ const NutsPopover = class {
42751
42788
  extraSVGAttrs: { width: '30px', height: '30px', fill: '#A1A1B2' }
42752
42789
  }) })) : ((_b = this.notifications) === null || _b === void 0 ? void 0 : _b.length) > 0 ? (this.notifications.map((item) => {
42753
42790
  var _a;
42754
- return (index.h("nuts-notification", { "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, key: item.id, "user-id": this.userId, "operator-id": this.operatorId, content: item.content, "message-id": item.id, badge: ((_a = item.actor) === null || _a === void 0 ? void 0 : _a.data) || '', sessionId: this.sessionId, date: item.createdAt, read: item.read, seen: item.seen, language: this.language, "notification-action": this.notificationAction, token: this.token, "backend-url": this.backendUrl, "redirect-url": item.cta.data.url, "translation-url": this.translationUrl }));
42755
- })) : (index.h("div", { class: "NoMessages" }, index.h("svg", { width: "120", height: "108", viewBox: "0 0 120 108", fill: "none" }, index.h("circle", { cx: "11.3191", cy: "30.7872", r: "6.31915", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("ellipse", { cx: "60.117", cy: "27.9787", rx: "5.96809", ry: "5.61702", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M79.5424 49.4934C79.5424 44.1598 77.6437 39.0446 74.2641 35.2732C70.8844 31.5017 66.3006 29.3829 61.5211 29.3829C56.7415 29.3829 52.1578 31.5017 48.7781 35.2732C45.3985 39.0446 43.4998 44.1598 43.4998 49.4934C43.4998 72.9557 34.4892 79.6592 34.4892 79.6592H88.553C88.553 79.6592 79.5424 72.9557 79.5424 49.4934Z", fill: "#292933" }), index.h("path", { d: "M68.8995 81.7552C68.1496 83.551 67.0731 85.0417 65.778 86.0779C64.4828 87.1141 63.0144 87.6595 61.5198 87.6595C60.0252 87.6595 58.5568 87.1141 57.2617 86.0779C55.9665 85.0417 54.8901 83.551 54.1401 81.7552", fill: "#292933" }), index.h("path", { d: "M81.2976 50.2203C81.2976 68.2545 87.2222 76.7327 90.2814 79.9083C90.7671 80.4126 90.3802 81.4764 89.68 81.4764C88.0927 81.4764 86.5488 81.4764 85.0422 81.4764M68.5814 82.946C67.6854 84.8068 66.3993 86.3513 64.8518 87.425C63.3044 88.4987 61.5499 89.0638 59.7641 89.0638C57.9783 89.0638 56.2239 88.4987 54.6765 87.425C53.129 86.3513 51.8429 84.8068 50.9468 82.946M79.712 42.3723C78.6394 39.8192 77.0439 37.4727 74.991 35.4861C70.953 31.5783 65.4763 29.3829 59.7656 29.3829C54.055 29.3829 48.5783 31.5783 44.5403 35.4861C43.3681 36.6205 42.345 37.8722 41.4832 39.2127C40.4958 40.7487 39.7202 42.4013 39.1747 44.1276C38.5563 46.0847 38.2337 48.1364 38.2337 50.2203C38.2337 53.2503 38.0665 56.0106 37.7737 58.5212M34.8401 70.7608C32.9874 75.4551 30.7688 78.331 29.2526 79.9055C28.767 80.4099 29.155 81.4764 29.8551 81.4764C47.1962 81.4764 59.3571 81.4764 74.1593 81.4764", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M55.6345 59.0737C55.1665 59.7144 54.4949 60.2462 53.6868 60.6159C52.8787 60.9855 51.9625 61.1801 51.0299 61.1801C50.0973 61.1801 49.1811 60.9855 48.373 60.6159C47.5649 60.2462 46.8933 59.7144 46.4254 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M73.1877 59.0737C72.7197 59.7144 72.0481 60.2462 71.24 60.6159C70.4319 60.9855 69.5157 61.1801 68.5831 61.1801C67.6506 61.1801 66.7344 60.9855 65.9263 60.6159C65.1182 60.2462 64.4465 59.7144 63.9786 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("circle", { cx: "107.511", cy: "56.0638", r: "7.02128", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("circle", { cx: "16.4252", cy: "58.1703", r: "4.21277", fill: "#3D3D4D" }), index.h("ellipse", { cx: "59.9573", cy: "104.511", rx: "25.2766", ry: "2.80851", fill: "#3D3D4D" }), index.h("path", { d: "M81.5317 18.1489H88.553L81.5317 25.1702H88.553", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M96.6807 2H106.51L96.6807 11.8298H106.51", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), index.h("p", null, translate$1('noMessages', this.language)))))), !this.isLoading && (index.h("div", { key: '2f6963fcdbde521150bcdf1a74df14c1c83c0590', class: "Pagination" }, index.h("div", { key: '50b7efd6616498cb39545f34748fe8ccfd044928', class: "Button" }, index.h("button", { key: '936b5f460c7d68a3388b3b1c463001302156c4f0', disabled: this.isNotificationsLoading || this.currentPage <= 0, onClick: this.prevPage }, index.h("svg", { key: '66c1f5220c386baa75dc639765cc8ff2be56cf13', class: "svg-icon", viewBox: "0 0 20 20" }, index.h("path", { key: '59cf1db0cedb6380700afae53a79cdd55bc4aca4', d: "M8.388,10.049l4.76-4.873c0.303-0.31,0.297-0.804-0.012-1.105c-0.309-0.304-0.803-0.293-1.105,0.012L6.726,9.516c-0.303,0.31-0.296,0.805,0.012,1.105l5.433,5.307c0.152,0.148,0.35,0.223,0.547,0.223c0.203,0,0.406-0.08,0.559-0.236c0.303-0.309,0.295-0.803-0.012-1.104L8.388,10.049z" })), translate$1('prev', this.language))), index.h("div", { key: 'b3deb3012ec1ce92a96b4cc1f4ae13b495d5792d', class: "Button" }, index.h("button", { key: '063fc0d76d6ca06eccc0129e8edcfa40e7cc8f4c', disabled: this.isNotificationsLoading || !this.hasMore, onClick: this.nextPage }, translate$1('next', this.language), index.h("svg", { key: '1a36392bd201328cd17fe6fa235450f54ac134bc', class: "svg-icon", viewBox: "0 0 20 20" }, index.h("path", { key: 'a66894d1ab1713d32c604a00251d2100da32c063', d: "M11.611,10.049l-4.76-4.873c-0.303-0.31-0.297-0.804,0.012-1.105c0.309-0.304,0.803-0.293,1.105,0.012l5.306,5.433c0.304,0.31,0.296,0.805-0.012,1.105L7.83,15.928c-0.152,0.148-0.35,0.223-0.547,0.223c-0.203,0-0.406-0.08-0.559-0.236c-0.303-0.309-0.295-0.803,0.012-1.104L11.611,10.049z" }))))))));
42791
+ return (index.h("nuts-notification", { "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, key: item.id, "user-id": this.userId, "operator-id": this.operatorId, content: item.content, "message-id": item.id, badge: ((_a = item.actor) === null || _a === void 0 ? void 0 : _a.data) || '', sessionId: this.sessionId, date: item.createdAt, read: item.read, seen: item.seen, language: this.language, "notification-action": this.notificationAction, token: this.token, "backend-url": this.backendUrl, "redirect-url": item.cta.data.url, "translation-url": this.translationUrl, "max-text-length": 200, "max-lines": 5 }));
42792
+ })) : (index.h("div", { class: "NoMessages" }, index.h("svg", { width: "120", height: "108", viewBox: "0 0 120 108", fill: "none" }, index.h("circle", { cx: "11.3191", cy: "30.7872", r: "6.31915", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("ellipse", { cx: "60.117", cy: "27.9787", rx: "5.96809", ry: "5.61702", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M79.5424 49.4934C79.5424 44.1598 77.6437 39.0446 74.2641 35.2732C70.8844 31.5017 66.3006 29.3829 61.5211 29.3829C56.7415 29.3829 52.1578 31.5017 48.7781 35.2732C45.3985 39.0446 43.4998 44.1598 43.4998 49.4934C43.4998 72.9557 34.4892 79.6592 34.4892 79.6592H88.553C88.553 79.6592 79.5424 72.9557 79.5424 49.4934Z", fill: "#292933" }), index.h("path", { d: "M68.8995 81.7552C68.1496 83.551 67.0731 85.0417 65.778 86.0779C64.4828 87.1141 63.0144 87.6595 61.5198 87.6595C60.0252 87.6595 58.5568 87.1141 57.2617 86.0779C55.9665 85.0417 54.8901 83.551 54.1401 81.7552", fill: "#292933" }), index.h("path", { d: "M81.2976 50.2203C81.2976 68.2545 87.2222 76.7327 90.2814 79.9083C90.7671 80.4126 90.3802 81.4764 89.68 81.4764C88.0927 81.4764 86.5488 81.4764 85.0422 81.4764M68.5814 82.946C67.6854 84.8068 66.3993 86.3513 64.8518 87.425C63.3044 88.4987 61.5499 89.0638 59.7641 89.0638C57.9783 89.0638 56.2239 88.4987 54.6765 87.425C53.129 86.3513 51.8429 84.8068 50.9468 82.946M79.712 42.3723C78.6394 39.8192 77.0439 37.4727 74.991 35.4861C70.953 31.5783 65.4763 29.3829 59.7656 29.3829C54.055 29.3829 48.5783 31.5783 44.5403 35.4861C43.3681 36.6205 42.345 37.8722 41.4832 39.2127C40.4958 40.7487 39.7202 42.4013 39.1747 44.1276C38.5563 46.0847 38.2337 48.1364 38.2337 50.2203C38.2337 53.2503 38.0665 56.0106 37.7737 58.5212M34.8401 70.7608C32.9874 75.4551 30.7688 78.331 29.2526 79.9055C28.767 80.4099 29.155 81.4764 29.8551 81.4764C47.1962 81.4764 59.3571 81.4764 74.1593 81.4764", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M55.6345 59.0737C55.1665 59.7144 54.4949 60.2462 53.6868 60.6159C52.8787 60.9855 51.9625 61.1801 51.0299 61.1801C50.0973 61.1801 49.1811 60.9855 48.373 60.6159C47.5649 60.2462 46.8933 59.7144 46.4254 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M73.1877 59.0737C72.7197 59.7144 72.0481 60.2462 71.24 60.6159C70.4319 60.9855 69.5157 61.1801 68.5831 61.1801C67.6506 61.1801 66.7344 60.9855 65.9263 60.6159C65.1182 60.2462 64.4465 59.7144 63.9786 59.0737", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("circle", { cx: "107.511", cy: "56.0638", r: "7.02128", stroke: "#3D3D4D", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("circle", { cx: "16.4252", cy: "58.1703", r: "4.21277", fill: "#3D3D4D" }), index.h("ellipse", { cx: "59.9573", cy: "104.511", rx: "25.2766", ry: "2.80851", fill: "#3D3D4D" }), index.h("path", { d: "M81.5317 18.1489H88.553L81.5317 25.1702H88.553", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" }), index.h("path", { d: "M96.6807 2H106.51L96.6807 11.8298H106.51", stroke: "#828299", "stroke-width": "3.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), index.h("p", null, translate$1('noMessages', this.language)))))), !this.isLoading && (index.h("div", { key: 'ac051bc217b20856ee2fbb05c164740a2ce15034', class: "Pagination" }, index.h("div", { key: '4103c2541b1534674f4a395782b57cb7f412e635', class: "Button" }, index.h("button", { key: 'b5ea8a82ad305692ba6b7e27de3156df8755b41a', disabled: this.isNotificationsLoading || this.currentPage <= 0, onClick: this.prevPage }, index.h("svg", { key: '84a373abf56f161f2f566c617c2227d713bfbad5', class: "svg-icon", viewBox: "0 0 20 20" }, index.h("path", { key: 'a8c8e4d65eb525f98db3a9f3770c64a4cff44b0e', d: "M8.388,10.049l4.76-4.873c0.303-0.31,0.297-0.804-0.012-1.105c-0.309-0.304-0.803-0.293-1.105,0.012L6.726,9.516c-0.303,0.31-0.296,0.805,0.012,1.105l5.433,5.307c0.152,0.148,0.35,0.223,0.547,0.223c0.203,0,0.406-0.08,0.559-0.236c0.303-0.309,0.295-0.803-0.012-1.104L8.388,10.049z" })), translate$1('prev', this.language))), index.h("div", { key: '20b18543fe251fe1f2b67e002fa07ec9be8146e7', class: "Button" }, index.h("button", { key: '797168392bd58e443953ccac835e33660956ea27', disabled: this.isNotificationsLoading || !this.hasMore, onClick: this.nextPage }, translate$1('next', this.language), index.h("svg", { key: '3602fbc69f946074355405ec83075069bb3787c1', class: "svg-icon", viewBox: "0 0 20 20" }, index.h("path", { key: '679cc4531c96fe91bbdc027acfee1eb71240495d', d: "M11.611,10.049l-4.76-4.873c-0.303-0.31-0.297-0.804,0.012-1.105c0.309-0.304,0.803-0.293,1.105,0.012l5.306,5.433c0.304,0.31,0.296,0.805-0.012,1.105L7.83,15.928c-0.152,0.148-0.35,0.223-0.547,0.223c-0.203,0-0.406-0.08-0.559-0.236c-0.303-0.309-0.295-0.803,0.012-1.104L11.611,10.049z" }))))))));
42756
42793
  }
42757
42794
  static get watchers() { return {
42758
42795
  "unseenCount": ["unseenCountHandler"],