@telia-ace/knowledge-widget-ui 1.0.30-next.0 → 1.0.36-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -51,23 +51,19 @@ const at = ({
51
51
  u.href = c, u.target = r;
52
52
  break;
53
53
  }
54
- return /* @__PURE__ */ n.createElement(Ye, y({
55
- className: z(e, "humany-dialog-link")
56
- }, u), m || /* @__PURE__ */ n.createElement(n.Fragment, null, i === "link" && /* @__PURE__ */ n.createElement(H, {
57
- faIcon: "link"
58
- }), /* @__PURE__ */ n.createElement("span", null, t)));
54
+ return /* @__PURE__ */ n.createElement(Ye, y({ className: z(e, "humany-dialog-link") }, u), m || /* @__PURE__ */ n.createElement(n.Fragment, null, i === "link" && /* @__PURE__ */ n.createElement(H, { faIcon: "link" }), /* @__PURE__ */ n.createElement("span", null, t)));
59
55
  }, ke = at, ta = _((s, o) => {
60
56
  var i = s, { className: t, dialog: e } = i, a = w(i, ["className", "dialog"]);
61
- return e.length ? /* @__PURE__ */ n.createElement(nt, E(y({
62
- className: z(t, "humany-dialog"),
63
- items: e,
64
- renderItem: (r) => /* @__PURE__ */ n.createElement("li", {
65
- key: r.connection,
66
- "data-dialog": r.connection
67
- }, /* @__PURE__ */ n.createElement(ke, y({}, r)))
68
- }, a), {
69
- ref: o
70
- })) : null;
57
+ return e.length ? /* @__PURE__ */ n.createElement(
58
+ nt,
59
+ E(y({
60
+ className: z(t, "humany-dialog"),
61
+ items: e,
62
+ renderItem: (r) => /* @__PURE__ */ n.createElement("li", { key: r.connection, "data-dialog": r.connection }, /* @__PURE__ */ n.createElement(ke, y({}, r)))
63
+ }, a), {
64
+ ref: o
65
+ })
66
+ ) : null;
71
67
  }), nt = d(Z)`
72
68
  ${pe}
73
69
  a {
@@ -113,15 +109,19 @@ const at = ({
113
109
  "ref",
114
110
  "closeButtonAriaLabel"
115
111
  ]);
116
- return /* @__PURE__ */ n.createElement(_e, {
117
- className: z(a, "humany-drawer-list"),
118
- trigger: t,
119
- header: e,
120
- animation: o,
121
- fullScreen: s,
122
- onToggle: i,
123
- closeButtonAriaLabel: m
124
- }, /* @__PURE__ */ n.createElement(rt, y({}, u), r));
112
+ return /* @__PURE__ */ n.createElement(
113
+ _e,
114
+ {
115
+ className: z(a, "humany-drawer-list"),
116
+ trigger: t,
117
+ header: e,
118
+ animation: o,
119
+ fullScreen: s,
120
+ onToggle: i,
121
+ closeButtonAriaLabel: m
122
+ },
123
+ /* @__PURE__ */ n.createElement(rt, y({}, u), r)
124
+ );
125
125
  }, aa = ot, rt = d(O)`
126
126
  ${Y}
127
127
  font-family: ${(t) => {
@@ -140,13 +140,7 @@ const at = ({
140
140
  return (e = t.theme.fonts) == null ? void 0 : e.normal;
141
141
  }};
142
142
  }
143
- `, st = ({ items: t, renderItem: e, trigger: a, header: o, children: s }) => /* @__PURE__ */ n.createElement($e, {
144
- className: "humany-dropdown-actions",
145
- trigger: a
146
- }, /* @__PURE__ */ n.createElement(it, null, !!o && /* @__PURE__ */ n.createElement(lt, null, o), t && e && /* @__PURE__ */ n.createElement(ct, {
147
- items: t,
148
- renderItem: e
149
- }), s)), na = st, it = d.div`
143
+ `, st = ({ items: t, renderItem: e, trigger: a, header: o, children: s }) => /* @__PURE__ */ n.createElement($e, { className: "humany-dropdown-actions", trigger: a }, /* @__PURE__ */ n.createElement(it, null, !!o && /* @__PURE__ */ n.createElement(lt, null, o), t && e && /* @__PURE__ */ n.createElement(ct, { items: t, renderItem: e }), s)), na = st, it = d.div`
150
144
  background: #fff;
151
145
  border: #ccc 1px solid;
152
146
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
@@ -238,11 +232,15 @@ const at = ({
238
232
  "children",
239
233
  "closeButtonAriaLabel"
240
234
  ]);
241
- return /* @__PURE__ */ n.createElement($e, {
242
- className: z(e, "humany-dropdown-list"),
243
- closeButtonAriaLabel: o,
244
- trigger: t
245
- }, /* @__PURE__ */ n.createElement(dt, y({}, s), a));
235
+ return /* @__PURE__ */ n.createElement(
236
+ $e,
237
+ {
238
+ className: z(e, "humany-dropdown-list"),
239
+ closeButtonAriaLabel: o,
240
+ trigger: t
241
+ },
242
+ /* @__PURE__ */ n.createElement(dt, y({}, s), a)
243
+ );
246
244
  }, oa = mt, dt = d(O)`
247
245
  ${Y}
248
246
  font-family: ${(t) => {
@@ -354,35 +352,48 @@ const at = ({
354
352
  }, [r, l]), S = k(() => {
355
353
  f(r);
356
354
  }, [r, f]), p = `${c ? i : t}${m ? `: "${m}"` : ""}`;
357
- return /* @__PURE__ */ n.createElement(n.Fragment, null, c ? /* @__PURE__ */ n.createElement(Ke, {
358
- trigger: /* @__PURE__ */ n.createElement(me, {
355
+ return /* @__PURE__ */ n.createElement(n.Fragment, null, c ? /* @__PURE__ */ n.createElement(
356
+ Ke,
357
+ {
358
+ trigger: /* @__PURE__ */ n.createElement(
359
+ me,
360
+ {
361
+ className: "humany-favorite-button",
362
+ title: p,
363
+ "aria-label": p,
364
+ "data-favorite": "true",
365
+ "data-has-label": u ? "true" : "false",
366
+ "data-has-symbol": "true"
367
+ },
368
+ /* @__PURE__ */ n.createElement(
369
+ N,
370
+ {
371
+ size: 16,
372
+ symbol: { type: "Svg", content: "star-empty" }
373
+ }
374
+ ),
375
+ u && /* @__PURE__ */ n.createElement(J, null, u)
376
+ ),
377
+ onConfirm: h,
378
+ cancelLabel: e,
379
+ confirmLabel: a,
380
+ header: o,
381
+ text: s
382
+ }
383
+ ) : /* @__PURE__ */ n.createElement(
384
+ me,
385
+ {
359
386
  className: "humany-favorite-button",
360
387
  title: p,
361
388
  "aria-label": p,
362
- "data-favorite": "true",
389
+ onClick: S,
390
+ "data-favorite": "false",
363
391
  "data-has-label": u ? "true" : "false",
364
392
  "data-has-symbol": "true"
365
- }, /* @__PURE__ */ n.createElement(N, {
366
- size: 16,
367
- symbol: { type: "Svg", content: "star-empty" }
368
- }), u && /* @__PURE__ */ n.createElement(J, null, u)),
369
- onConfirm: h,
370
- cancelLabel: e,
371
- confirmLabel: a,
372
- header: o,
373
- text: s
374
- }) : /* @__PURE__ */ n.createElement(me, {
375
- className: "humany-favorite-button",
376
- title: p,
377
- "aria-label": p,
378
- onClick: S,
379
- "data-favorite": "false",
380
- "data-has-label": u ? "true" : "false",
381
- "data-has-symbol": "true"
382
- }, /* @__PURE__ */ n.createElement(N, {
383
- size: 16,
384
- symbol: { type: "Svg", content: "star-empty" }
385
- }), u && /* @__PURE__ */ n.createElement(J, null, u)));
393
+ },
394
+ /* @__PURE__ */ n.createElement(N, { size: 16, symbol: { type: "Svg", content: "star-empty" } }),
395
+ u && /* @__PURE__ */ n.createElement(J, null, u)
396
+ ));
386
397
  }, gt = ht, me = d(ft)`
387
398
  grid-area: favorite;
388
399
 
@@ -465,30 +476,42 @@ const at = ({
465
476
  "negative",
466
477
  "selected"
467
478
  ]);
468
- return /* @__PURE__ */ n.createElement(yt, E(y({
469
- className: z(a, "humany-feedback"),
470
- "data-direction": e
471
- }, xe(c)), {
472
- ref: m
473
- }), !!o && /* @__PURE__ */ n.createElement(pt, null, o), /* @__PURE__ */ n.createElement(de, {
474
- className: "humany-feedback-button",
475
- disabled: !!r,
476
- "aria-pressed": r === "positive",
477
- "data-selected": r === "positive",
478
- "data-direction": e,
479
- onClick: () => t("positive")
480
- }, /* @__PURE__ */ n.createElement(H, {
481
- faIcon: "smile-o"
482
- }), /* @__PURE__ */ n.createElement("span", null, s)), /* @__PURE__ */ n.createElement(de, {
483
- className: "humany-feedback-button",
484
- disabled: !!r,
485
- "aria-pressed": r === "negative",
486
- "data-selected": r === "negative",
487
- "data-direction": e,
488
- onClick: () => t("negative")
489
- }, /* @__PURE__ */ n.createElement(H, {
490
- faIcon: "frown-o"
491
- }), /* @__PURE__ */ n.createElement("span", null, i)));
479
+ return /* @__PURE__ */ n.createElement(
480
+ yt,
481
+ E(y({
482
+ className: z(a, "humany-feedback"),
483
+ "data-direction": e
484
+ }, xe(c)), {
485
+ ref: m
486
+ }),
487
+ !!o && /* @__PURE__ */ n.createElement(pt, null, o),
488
+ /* @__PURE__ */ n.createElement(
489
+ de,
490
+ {
491
+ className: "humany-feedback-button",
492
+ disabled: !!r,
493
+ "aria-pressed": r === "positive",
494
+ "data-selected": r === "positive",
495
+ "data-direction": e,
496
+ onClick: () => t("positive")
497
+ },
498
+ /* @__PURE__ */ n.createElement(H, { faIcon: "smile-o" }),
499
+ /* @__PURE__ */ n.createElement("span", null, s)
500
+ ),
501
+ /* @__PURE__ */ n.createElement(
502
+ de,
503
+ {
504
+ className: "humany-feedback-button",
505
+ disabled: !!r,
506
+ "aria-pressed": r === "negative",
507
+ "data-selected": r === "negative",
508
+ "data-direction": e,
509
+ onClick: () => t("negative")
510
+ },
511
+ /* @__PURE__ */ n.createElement(H, { faIcon: "frown-o" }),
512
+ /* @__PURE__ */ n.createElement("span", null, i)
513
+ )
514
+ );
492
515
  }
493
516
  ), pt = d(J)`
494
517
  font-weight: normal;
@@ -616,20 +639,8 @@ const at = ({
616
639
  modified: u,
617
640
  published: f
618
641
  }) => {
619
- const l = m && f ? /* @__PURE__ */ n.createElement(ue, {
620
- format: t,
621
- timestamp: f
622
- }) : null, h = c && u ? /* @__PURE__ */ n.createElement(ue, {
623
- format: t,
624
- timestamp: u
625
- }) : null;
626
- return !l && !h ? null : /* @__PURE__ */ n.createElement(U, {
627
- className: z(e, "humany-metadata")
628
- }, l && /* @__PURE__ */ n.createElement(U, {
629
- className: "humany-published"
630
- }, s, l, a && r && ` ${a.replace("{{editor}}", r)}`), h && /* @__PURE__ */ n.createElement(U, {
631
- className: "humany-modified"
632
- }, l && ", ", o, h, a && i && ` ${a.replace("{{editor}}", i)}`));
642
+ const l = m && f ? /* @__PURE__ */ n.createElement(ue, { format: t, timestamp: f }) : null, h = c && u ? /* @__PURE__ */ n.createElement(ue, { format: t, timestamp: u }) : null;
643
+ return !l && !h ? null : /* @__PURE__ */ n.createElement(U, { className: z(e, "humany-metadata") }, l && /* @__PURE__ */ n.createElement(U, { className: "humany-published" }, s, l, a && r && ` ${a.replace("{{editor}}", r)}`), h && /* @__PURE__ */ n.createElement(U, { className: "humany-modified" }, l && ", ", o, h, a && i && ` ${a.replace("{{editor}}", i)}`));
633
644
  }, Et = wt, ue = d(we)`
634
645
  &:not(:first-child) {
635
646
  margin-left: 4px;
@@ -639,37 +650,31 @@ const at = ({
639
650
  }
640
651
  `, U = d(ve)`
641
652
  font-style: italic;
642
- `, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(Nt, {
643
- className: "humany-guide-list-tags",
644
- items: t,
645
- renderItem: ({ id: e, symbol: a, title: o }) => a && /* @__PURE__ */ n.createElement("li", {
646
- key: e,
647
- "data-tag": e
648
- }, /* @__PURE__ */ n.createElement(Lt, {
649
- size: 18,
650
- symbol: a,
651
- title: o
652
- }))
653
- }) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
653
+ `, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(
654
+ Nt,
655
+ {
656
+ className: "humany-guide-list-tags",
657
+ items: t,
658
+ renderItem: ({ id: e, symbol: a, title: o }) => a && /* @__PURE__ */ n.createElement("li", { key: e, "data-tag": e }, /* @__PURE__ */ n.createElement(Lt, { size: 18, symbol: a, title: o }))
659
+ }
660
+ ) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
654
661
  const { params: c } = ge();
655
- return /* @__PURE__ */ n.createElement(zt, {
656
- ref: r,
657
- "data-guide": e
658
- }, /* @__PURE__ */ n.createElement(Q, {
659
- title: t,
660
- "aria-label": t,
661
- routeName: a,
662
- params: j(E(y({}, c), {
663
- uriName: s || void 0,
664
- id: void 0,
665
- guide: void 0,
666
- accordion: void 0
667
- })),
668
- text: t
669
- }, /* @__PURE__ */ n.createElement(N, {
670
- size: o,
671
- symbol: { type: "Svg", content: "caret-up" }
672
- })), i);
662
+ return /* @__PURE__ */ n.createElement(zt, { ref: r, "data-guide": e }, /* @__PURE__ */ n.createElement(
663
+ Q,
664
+ {
665
+ title: t,
666
+ "aria-label": t,
667
+ routeName: a,
668
+ params: j(E(y({}, c), {
669
+ uriName: s || void 0,
670
+ id: void 0,
671
+ guide: void 0,
672
+ accordion: void 0
673
+ })),
674
+ text: t
675
+ },
676
+ /* @__PURE__ */ n.createElement(N, { size: o, symbol: { type: "Svg", content: "caret-up" } })
677
+ ), i);
673
678
  }), zt = d.li`
674
679
  > a {
675
680
  grid-column: 1/-1;
@@ -743,44 +748,62 @@ const at = ({
743
748
  et(Fe, () => F.current);
744
749
  const q = (g) => {
745
750
  const { id: b, title: v, tags: D, published: P, modified: A, publishedBy: B, modifiedBy: G } = g;
746
- return /* @__PURE__ */ n.createElement("li", {
747
- key: b,
748
- "data-guide": b,
749
- "has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!A).toString()
750
- }, /* @__PURE__ */ n.createElement(Q, {
751
- className: "humany-guide-link",
752
- title: v,
753
- "aria-label": v,
754
- routeName: Ie,
755
- onClick: (We) => u(We, g),
756
- params: Te(g),
757
- text: v
758
- }, /* @__PURE__ */ n.createElement(N, {
759
- size: o,
760
- symbol: {
761
- type: "Svg",
762
- content: t ? "caret-down" : "caret-right"
763
- }
764
- })), c && /* @__PURE__ */ n.createElement(gt, {
765
- guideTitle: v,
766
- addFavoriteTooltip: C,
767
- removeFavoriteCancelLabel: M,
768
- removeFavoriteConfirmLabel: ze,
769
- removeFavoriteHeader: Se,
770
- removeFavoriteLabel: Ne,
771
- removeFavoriteTooltip: Le,
772
- isFavorite: Ce.indexOf(b) > -1,
773
- actions: Me,
774
- id: b
775
- }), r && /* @__PURE__ */ n.createElement(kt, {
776
- tags: D
777
- }), /* @__PURE__ */ n.createElement(Dt, E(y({}, l), {
778
- indent: t ? void 0 : o,
779
- modified: A,
780
- published: P,
781
- publishedBy: B,
782
- modifiedBy: G
783
- })));
751
+ return /* @__PURE__ */ n.createElement(
752
+ "li",
753
+ {
754
+ key: b,
755
+ "data-guide": b,
756
+ "has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!A).toString()
757
+ },
758
+ /* @__PURE__ */ n.createElement(
759
+ Q,
760
+ {
761
+ className: "humany-guide-link",
762
+ title: v,
763
+ "aria-label": v,
764
+ routeName: Ie,
765
+ onClick: (We) => u(We, g),
766
+ params: Te(g),
767
+ text: v
768
+ },
769
+ /* @__PURE__ */ n.createElement(
770
+ N,
771
+ {
772
+ size: o,
773
+ symbol: {
774
+ type: "Svg",
775
+ content: t ? "caret-down" : "caret-right"
776
+ }
777
+ }
778
+ )
779
+ ),
780
+ c && /* @__PURE__ */ n.createElement(
781
+ gt,
782
+ {
783
+ guideTitle: v,
784
+ addFavoriteTooltip: C,
785
+ removeFavoriteCancelLabel: M,
786
+ removeFavoriteConfirmLabel: ze,
787
+ removeFavoriteHeader: Se,
788
+ removeFavoriteLabel: Ne,
789
+ removeFavoriteTooltip: Le,
790
+ isFavorite: Ce.indexOf(b) > -1,
791
+ actions: Me,
792
+ id: b
793
+ }
794
+ ),
795
+ r && /* @__PURE__ */ n.createElement(kt, { tags: D }),
796
+ /* @__PURE__ */ n.createElement(
797
+ Dt,
798
+ E(y({}, l), {
799
+ indent: t ? void 0 : o,
800
+ modified: A,
801
+ published: P,
802
+ publishedBy: B,
803
+ modifiedBy: G
804
+ })
805
+ )
806
+ );
784
807
  }, Pe = k(
785
808
  (g, b, v) => L ? L(g, b, v, q) : q(g),
786
809
  [L, q]
@@ -824,28 +847,40 @@ const at = ({
824
847
  const Re = !!Object.keys(l).filter(
825
848
  (g) => typeof l[g] != "undefined"
826
849
  ).length;
827
- return /* @__PURE__ */ n.createElement(St, E(y({
828
- className: z(S, "humany-guide-list"),
829
- "data-item-count": x.length,
830
- items: x,
831
- renderItem: Pe,
832
- isTabbing: V,
833
- expandable: t ? "true" : "false",
834
- "grid-items": r || c || Re ? "true" : "false"
835
- }, xe(De)), {
836
- ref: F
837
- }), h ? /* @__PURE__ */ n.createElement(Q, {
838
- text: h,
839
- title: h,
840
- "aria-label": h,
841
- routeName: Ae,
842
- role: s,
843
- params: ne(),
844
- onClick: Be
845
- }, /* @__PURE__ */ n.createElement(N, {
846
- size: o,
847
- symbol: { type: "Svg", content: `caret-${i}` }
848
- })) : null, p);
850
+ return /* @__PURE__ */ n.createElement(
851
+ St,
852
+ E(y({
853
+ className: z(S, "humany-guide-list"),
854
+ "data-item-count": x.length,
855
+ items: x,
856
+ renderItem: Pe,
857
+ isTabbing: V,
858
+ expandable: t ? "true" : "false",
859
+ "grid-items": r || c || Re ? "true" : "false"
860
+ }, xe(De)), {
861
+ ref: F
862
+ }),
863
+ h ? /* @__PURE__ */ n.createElement(
864
+ Q,
865
+ {
866
+ text: h,
867
+ title: h,
868
+ "aria-label": h,
869
+ routeName: Ae,
870
+ role: s,
871
+ params: ne(),
872
+ onClick: Be
873
+ },
874
+ /* @__PURE__ */ n.createElement(
875
+ N,
876
+ {
877
+ size: o,
878
+ symbol: { type: "Svg", content: `caret-${i}` }
879
+ }
880
+ )
881
+ ) : null,
882
+ p
883
+ );
849
884
  }
850
885
  ), St = d(O)`
851
886
  ${Y}
@@ -1110,22 +1145,17 @@ const at = ({
1110
1145
  return (e = t.theme.colors) == null ? void 0 : e.primary;
1111
1146
  }};
1112
1147
  stroke-width: 2px;
1113
- `, Pt = ({ loading: t = !1 }) => /* @__PURE__ */ n.createElement(Tt, {
1114
- className: "humany-loader",
1115
- "data-loading": t
1116
- }, /* @__PURE__ */ n.createElement(Ct, {
1117
- className: "humany-spinner"
1118
- }, /* @__PURE__ */ n.createElement(At, {
1119
- className: "humany-spinner-svg",
1120
- viewBox: "25 25 50 50"
1121
- }, /* @__PURE__ */ n.createElement(Mt, {
1122
- cx: "50",
1123
- cy: "50",
1124
- r: "20",
1125
- fill: "none",
1126
- "stroke-width": "2",
1127
- "stroke-miterlimit": "10"
1128
- })))), Bt = Pt, Rt = (i) => {
1148
+ `, Pt = ({ loading: t = !1 }) => /* @__PURE__ */ n.createElement(Tt, { className: "humany-loader", "data-loading": t }, /* @__PURE__ */ n.createElement(Ct, { className: "humany-spinner" }, /* @__PURE__ */ n.createElement(At, { className: "humany-spinner-svg", viewBox: "25 25 50 50" }, /* @__PURE__ */ n.createElement(
1149
+ Mt,
1150
+ {
1151
+ cx: "50",
1152
+ cy: "50",
1153
+ r: "20",
1154
+ fill: "none",
1155
+ "stroke-width": "2",
1156
+ "stroke-miterlimit": "10"
1157
+ }
1158
+ )))), Bt = Pt, Rt = (i) => {
1129
1159
  var r = i, {
1130
1160
  className: t,
1131
1161
  showHeader: e,
@@ -1144,40 +1174,53 @@ const at = ({
1144
1174
  notifications: h = [],
1145
1175
  defaultHeaderOptions: S = { visible: !0 }
1146
1176
  } = a || {};
1147
- return !h.length && !o ? null : /* @__PURE__ */ n.createElement(Ht, E(y({}, s), {
1148
- "data-loading": o,
1149
- "data-show-header": typeof e == "boolean" ? e : S.visible,
1150
- className: z(t, "humany-notification-list"),
1151
- "data-notification-category": u,
1152
- header: f,
1153
- symbol: l,
1154
- items: h,
1155
- renderItem: ({ id: p, title: x, body: L, modified: C, expandable: M }) => /* @__PURE__ */ n.createElement(jt, {
1156
- key: p,
1157
- "data-notification": p,
1158
- "data-expanded": M ? c === p : !0
1159
- }, M ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(Wt, {
1160
- title: x,
1161
- "aria-label": x,
1162
- "aria-expanded": c === p,
1163
- onClick: () => m(c === p ? null : p)
1164
- }, /* @__PURE__ */ n.createElement("span", null, x), /* @__PURE__ */ n.createElement(Ot, {
1165
- size: 11,
1166
- symbol: {
1167
- type: "Svg",
1168
- content: `caret-${c === p ? "up" : "down"}`
1169
- }
1170
- })), /* @__PURE__ */ n.createElement(fe, {
1171
- html: L
1172
- }), C && /* @__PURE__ */ n.createElement(Yt, {
1173
- format: be.YYYY_MM_DD,
1174
- timestamp: C
1175
- })) : /* @__PURE__ */ n.createElement(fe, {
1176
- html: L
1177
- }))
1178
- }), /* @__PURE__ */ n.createElement(Bt, {
1179
- loading: o
1180
- }));
1177
+ return !h.length && !o ? null : /* @__PURE__ */ n.createElement(
1178
+ Ht,
1179
+ E(y({}, s), {
1180
+ "data-loading": o,
1181
+ "data-show-header": typeof e == "boolean" ? e : S.visible,
1182
+ className: z(t, "humany-notification-list"),
1183
+ "data-notification-category": u,
1184
+ header: f,
1185
+ symbol: l,
1186
+ items: h,
1187
+ renderItem: ({ id: p, title: x, body: L, modified: C, expandable: M }) => /* @__PURE__ */ n.createElement(
1188
+ jt,
1189
+ {
1190
+ key: p,
1191
+ "data-notification": p,
1192
+ "data-expanded": M ? c === p : !0
1193
+ },
1194
+ M ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
1195
+ Wt,
1196
+ {
1197
+ title: x,
1198
+ "aria-label": x,
1199
+ "aria-expanded": c === p,
1200
+ onClick: () => m(c === p ? null : p)
1201
+ },
1202
+ /* @__PURE__ */ n.createElement("span", null, x),
1203
+ /* @__PURE__ */ n.createElement(
1204
+ Ot,
1205
+ {
1206
+ size: 11,
1207
+ symbol: {
1208
+ type: "Svg",
1209
+ content: `caret-${c === p ? "up" : "down"}`
1210
+ }
1211
+ }
1212
+ )
1213
+ ), /* @__PURE__ */ n.createElement(fe, { html: L }), C && /* @__PURE__ */ n.createElement(
1214
+ Yt,
1215
+ {
1216
+ format: be.YYYY_MM_DD,
1217
+ timestamp: C
1218
+ }
1219
+ )) : /* @__PURE__ */ n.createElement(fe, { html: L })
1220
+ )
1221
+ }),
1222
+ /* @__PURE__ */ n.createElement(Bt, { loading: o })
1223
+ );
1181
1224
  }, Wt = d(te)`
1182
1225
  display: flex;
1183
1226
  justify-content: space-between;
@@ -1298,17 +1341,12 @@ const at = ({
1298
1341
  name: r
1299
1342
  } = t.get("$widget"), { href: c = "" } = a;
1300
1343
  if (_t(c))
1301
- return /* @__PURE__ */ n.createElement(Qe, {
1302
- smooth: !0,
1303
- to: c
1304
- }, e);
1344
+ return /* @__PURE__ */ n.createElement(Qe, { smooth: !0, to: c }, e);
1305
1345
  const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), f = new RegExp(`^((http[s]?:)?//)?(${m})/([^\\s]+)`).exec(c);
1306
1346
  if (f && f.length >= 4) {
1307
1347
  const l = f[4];
1308
1348
  if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
1309
- return /* @__PURE__ */ n.createElement(Xe, {
1310
- widgetName: l
1311
- }, e);
1349
+ return /* @__PURE__ */ n.createElement(Xe, { widgetName: l }, e);
1312
1350
  }
1313
1351
  return /* @__PURE__ */ n.createElement("a", y({}, a), e);
1314
1352
  }, Vt = Kt, qt = (t, e = []) => ({