@telia-ace/knowledge-widget-ui 1.3.33-rc.0 → 1.3.33-rc.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 (3) hide show
  1. package/index.js +32 -32
  2. package/index.mjs +335 -361
  3. package/package.json +4 -4
package/index.mjs CHANGED
@@ -1,63 +1,63 @@
1
- import { jsx as o, jsxs as p, Fragment as se } from "react/jsx-runtime";
2
- import { useRouteData as re, Link as Re, Icon as P, List as G, list as le, invertedHoverButton as ce, ItemList as j, itemList as R, Drawer as We, Dropdown as de, headingElement as K, Text as me, Button as U, paddedBorderTabStyle as Z, Confirm as Ee, SymbolBadge as S, StyledText as _, convertToStringAttributes as he, useKeyPress as M, useContainer as fe, useEventListener as ee, Timestamp as ue, DateFormats as ge, TextLink as V, useIsTabbing as He, usePrevious as Oe, borderTabStyle as q, Paragraph as Ye, genericHtml as _e, AnchorLink as Ve, WidgetLink as qe } from "@telia-ace/widget-ui";
1
+ import { jsx as a, jsxs as p, Fragment as te } from "react/jsx-runtime";
2
+ import { useRouteData as ne, Link as He, Icon as I, List as E, list as ie, invertedHoverButton as ae, ItemList as C, itemList as D, Drawer as je, Dropdown as oe, headingElement as Y, Text as se, Button as _, paddedBorderTabStyle as V, Confirm as Re, SymbolBadge as z, StyledText as j, convertToStringAttributes as re, useKeyPress as T, useContainer as le, useEventListener as q, Timestamp as ce, DateFormats as de, TextLink as R, useIsTabbing as We, getHumanyIsTabbing as Ee, setHumanyIsTabbing as Ye, borderTabStyle as W, Paragraph as _e, genericHtml as Oe, AnchorLink as Ge, WidgetLink as Ke } from "@telia-ace/widget-ui";
3
3
  export * from "@telia-ace/widget-ui";
4
- import { createParams as B, formatUrl as te, appendClassNames as z, htmlParentContains as Ge } from "@telia-ace/widget-utilities";
4
+ import { createParams as F, formatUrl as J, appendClassNames as k } from "@telia-ace/widget-utilities";
5
5
  import c from "@emotion/styled";
6
- import { forwardRef as W, useCallback as k, useState as F, useEffect as E, useMemo as Ke, useRef as pe, useImperativeHandle as Ue } from "react";
7
- import { css as y, keyframes as ye } from "@emotion/react";
8
- const $e = ({
6
+ import { forwardRef as A, useCallback as w, useState as N, useEffect as M, useMemo as Ue, useRef as me, useImperativeHandle as Ve } from "react";
7
+ import { css as y, keyframes as he } from "@emotion/react";
8
+ const fe = ({
9
9
  title: t = "",
10
10
  className: e,
11
11
  id: n,
12
- parent: a,
13
- connection: i,
12
+ parent: i,
13
+ connection: o,
14
14
  type: s,
15
15
  target: r,
16
16
  href: m,
17
17
  children: l,
18
18
  connectionKey: d
19
19
  }) => {
20
- const u = {}, { name: h, params: f } = re();
20
+ const u = {}, { name: h, params: f } = ne();
21
21
  switch (s) {
22
22
  case "default":
23
23
  case "guide":
24
- const { id: x, title: v } = a;
25
- let $ = d || i;
26
- x !== n && !d && ($ = void 0), u.routeName = h, u.params = B({
24
+ const { id: v, title: $ } = i;
25
+ let x = d || o;
26
+ v !== n && !d && (x = void 0), u.routeName = h, u.params = F({
27
27
  ...f,
28
28
  guide: n,
29
- connection: $,
30
- uriName: n === x ? te(v) : te(t)
29
+ connection: x,
30
+ uriName: n === v ? J($) : J(t)
31
31
  });
32
32
  break;
33
33
  case "link":
34
34
  u.href = m, u.target = r;
35
35
  break;
36
36
  }
37
- return /* @__PURE__ */ o(
38
- Re,
37
+ return /* @__PURE__ */ a(
38
+ He,
39
39
  {
40
- className: z(e, "humany-dialog-link"),
40
+ className: k(e, "humany-dialog-link"),
41
41
  ...u,
42
- children: l || /* @__PURE__ */ p(se, { children: [
43
- s === "link" && /* @__PURE__ */ o(P, { faIcon: "link" }),
44
- /* @__PURE__ */ o("span", { children: t })
42
+ children: l || /* @__PURE__ */ p(te, { children: [
43
+ s === "link" && /* @__PURE__ */ a(I, { faIcon: "link" }),
44
+ /* @__PURE__ */ a("span", { children: t })
45
45
  ] })
46
46
  }
47
47
  );
48
- }, Pt = W(
49
- ({ className: t, dialog: e, ...n }, a) => e.length ? /* @__PURE__ */ o(
50
- Je,
48
+ }, Mt = A(
49
+ ({ className: t, dialog: e, ...n }, i) => e.length ? /* @__PURE__ */ a(
50
+ qe,
51
51
  {
52
- className: z(t, "humany-dialog"),
52
+ className: k(t, "humany-dialog"),
53
53
  items: e,
54
- renderItem: (i) => /* @__PURE__ */ o("li", { "data-dialog": i.connection, children: /* @__PURE__ */ o($e, { ...i }) }, i.connection),
54
+ renderItem: (o) => /* @__PURE__ */ a("li", { "data-dialog": o.connection, children: /* @__PURE__ */ a(fe, { ...o }) }, o.connection),
55
55
  ...n,
56
- ref: a
56
+ ref: i
57
57
  }
58
58
  ) : null
59
- ), Je = c(G)`
60
- ${le}
59
+ ), qe = c(E)`
60
+ ${ie}
61
61
  a {
62
62
  min-width: 150px;
63
63
  max-width: 400px;
@@ -65,7 +65,7 @@ const $e = ({
65
65
  white-space: normal;
66
66
  ${(t) => {
67
67
  var e, n;
68
- return ((e = t.theme.colors) == null ? void 0 : e.primary) && ce({
68
+ return ((e = t.theme.colors) == null ? void 0 : e.primary) && ae({
69
69
  primaryColor: (n = t.theme.colors) == null ? void 0 : n.primary,
70
70
  secondaryColor: "#FFFFFF",
71
71
  theme: t.theme
@@ -79,31 +79,31 @@ const $e = ({
79
79
  return (e = t.theme.sizes) == null ? void 0 : e.small;
80
80
  }} 0 0;
81
81
  }
82
- `, Bt = ({
82
+ `, Pt = ({
83
83
  trigger: t,
84
84
  header: e,
85
85
  className: n,
86
- animation: a,
87
- fullScreen: i,
86
+ animation: i,
87
+ fullScreen: o,
88
88
  onToggle: s,
89
89
  children: r,
90
90
  ref: m,
91
91
  closeButtonAriaLabel: l,
92
92
  ...d
93
- }) => /* @__PURE__ */ o(
94
- We,
93
+ }) => /* @__PURE__ */ a(
94
+ je,
95
95
  {
96
- className: z(n, "humany-drawer-list"),
96
+ className: k(n, "humany-drawer-list"),
97
97
  trigger: t,
98
98
  header: e,
99
- animation: a,
100
- fullScreen: i,
99
+ animation: i,
100
+ fullScreen: o,
101
101
  onToggle: s,
102
102
  closeButtonAriaLabel: l,
103
- children: /* @__PURE__ */ o(Qe, { ...d, children: r })
103
+ children: /* @__PURE__ */ a(Je, { ...d, children: r })
104
104
  }
105
- ), Qe = c(j)`
106
- ${R}
105
+ ), Je = c(C)`
106
+ ${D}
107
107
  font-family: ${(t) => {
108
108
  var e;
109
109
  return (e = t.theme.fonts) == null ? void 0 : e.type;
@@ -120,17 +120,17 @@ const $e = ({
120
120
  return (e = t.theme.fonts) == null ? void 0 : e.normal;
121
121
  }};
122
122
  }
123
- `, jt = ({
123
+ `, Bt = ({
124
124
  items: t,
125
125
  renderItem: e,
126
126
  trigger: n,
127
- header: a,
128
- children: i
129
- }) => /* @__PURE__ */ o(de, { className: "humany-dropdown-actions", trigger: n, children: /* @__PURE__ */ p(Xe, { children: [
130
- !!a && /* @__PURE__ */ o(Ze, { children: a }),
131
- t && e && /* @__PURE__ */ o(et, { items: t, renderItem: e }),
132
- i
133
- ] }) }), Xe = c.div`
127
+ header: i,
128
+ children: o
129
+ }) => /* @__PURE__ */ a(oe, { className: "humany-dropdown-actions", trigger: n, children: /* @__PURE__ */ p(Qe, { children: [
130
+ !!i && /* @__PURE__ */ a(Xe, { children: i }),
131
+ t && e && /* @__PURE__ */ a(Ze, { items: t, renderItem: e }),
132
+ o
133
+ ] }) }), Qe = c.div`
134
134
  background: #fff;
135
135
  border: #ccc 1px solid;
136
136
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
@@ -142,7 +142,7 @@ const $e = ({
142
142
  var e;
143
143
  return (e = t.theme.fonts) == null ? void 0 : e.normal;
144
144
  }};
145
- `, Ze = c.div`
145
+ `, Xe = c.div`
146
146
  padding: ${(t) => {
147
147
  var e;
148
148
  return (e = t.theme.sizes) == null ? void 0 : e.normal;
@@ -175,7 +175,7 @@ const $e = ({
175
175
  return (e = t.theme.sizes) == null ? void 0 : e.small;
176
176
  }};
177
177
  }
178
- `, et = c(G)`
178
+ `, Ze = c(E)`
179
179
  list-style: none;
180
180
  padding: 0;
181
181
  margin: 0;
@@ -210,22 +210,22 @@ const $e = ({
210
210
  }
211
211
  }
212
212
  }
213
- `, Rt = ({
213
+ `, Ht = ({
214
214
  trigger: t,
215
215
  className: e,
216
216
  children: n,
217
- closeButtonAriaLabel: a,
218
- ...i
219
- }) => /* @__PURE__ */ o(
220
- de,
217
+ closeButtonAriaLabel: i,
218
+ ...o
219
+ }) => /* @__PURE__ */ a(
220
+ oe,
221
221
  {
222
- className: z(e, "humany-dropdown-list"),
223
- closeButtonAriaLabel: a,
222
+ className: k(e, "humany-dropdown-list"),
223
+ closeButtonAriaLabel: i,
224
224
  trigger: t,
225
- children: /* @__PURE__ */ o(tt, { ...i, children: n })
225
+ children: /* @__PURE__ */ a(et, { ...o, children: n })
226
226
  }
227
- ), tt = c(j)`
228
- ${R}
227
+ ), et = c(C)`
228
+ ${D}
229
229
  font-family: ${(t) => {
230
230
  var e;
231
231
  return (e = t.theme.fonts) == null ? void 0 : e.type;
@@ -233,7 +233,7 @@ const $e = ({
233
233
  > div {
234
234
  ${(t) => {
235
235
  var e;
236
- return K(t)(
236
+ return Y(t)(
237
237
  "> h1",
238
238
  y`
239
239
  font-size: ${(e = t.theme.fonts) == null ? void 0 : e.normal};
@@ -260,7 +260,7 @@ const $e = ({
260
260
  }
261
261
  }
262
262
  }
263
- `, nt = (t) => y`
263
+ `, tt = (t) => y`
264
264
  ${t["data-loading"] && "position: relative;"};
265
265
  ${t["data-loading"] && "min-height: 150px;"}
266
266
  > * {
@@ -270,7 +270,7 @@ const $e = ({
270
270
  .humany-loader {
271
271
  opacity: ${t["data-loading"] ? "1" : "0"};
272
272
  }
273
- `, Wt = c(P)`
273
+ `, jt = c(I)`
274
274
  && {
275
275
  font-size: ${(t) => {
276
276
  var e;
@@ -278,7 +278,7 @@ const $e = ({
278
278
  }};
279
279
  }
280
280
  width: 1.2em;
281
- `, Et = c(me)`
281
+ `, Rt = c(se)`
282
282
  font-size: ${(t) => {
283
283
  var e;
284
284
  return (e = t.theme.fonts) == null ? void 0 : e.medium;
@@ -289,7 +289,7 @@ const $e = ({
289
289
  var e;
290
290
  return (e = t.theme.colors) == null ? void 0 : e.text;
291
291
  }};
292
- `, at = c(U)`
292
+ `, nt = c(_)`
293
293
  display: flex;
294
294
  align-items: center;
295
295
 
@@ -303,11 +303,11 @@ const $e = ({
303
303
  }}
304
304
 
305
305
  &:focus-visible {
306
- ${(t) => t["data-has-label"] === "true" && Z}
306
+ ${(t) => t["data-has-label"] === "true" && V}
307
307
 
308
308
  svg, i {
309
309
  ${(t) => t["data-has-label"] === "false" && t["data-has-symbol"] === "true" && y`
310
- ${Z(t)}
310
+ ${V(t)}
311
311
  box-sizing: content-box;
312
312
  `}
313
313
  }
@@ -317,12 +317,12 @@ const $e = ({
317
317
  flex: 1;
318
318
  font-weight: 300;
319
319
  }
320
- `, ot = ({
320
+ `, it = ({
321
321
  addFavoriteTooltip: t,
322
322
  removeFavoriteCancelLabel: e,
323
323
  removeFavoriteConfirmLabel: n,
324
- removeFavoriteHeader: a,
325
- removeFavoriteLabel: i,
324
+ removeFavoriteHeader: i,
325
+ removeFavoriteLabel: o,
326
326
  removeFavoriteTooltip: s,
327
327
  id: r,
328
328
  isFavorite: m,
@@ -330,58 +330,58 @@ const $e = ({
330
330
  buttonLabel: d = "",
331
331
  actions: { addFavorite: u, removeFavorite: h }
332
332
  }) => {
333
- const f = k(() => {
333
+ const f = w(() => {
334
334
  h(r);
335
- }, [r, h]), x = k(() => {
335
+ }, [r, h]), v = w(() => {
336
336
  u(r);
337
- }, [r, u]), v = `${m ? s : t}${l ? `: "${l}"` : ""}`;
338
- return m ? /* @__PURE__ */ o(
339
- Ee,
337
+ }, [r, u]), $ = `${m ? s : t}${l ? `: "${l}"` : ""}`;
338
+ return m ? /* @__PURE__ */ a(
339
+ Re,
340
340
  {
341
341
  trigger: /* @__PURE__ */ p(
342
- ne,
342
+ Q,
343
343
  {
344
344
  className: "humany-favorite-button",
345
- title: v,
346
- "aria-label": v,
345
+ title: $,
346
+ "aria-label": $,
347
347
  "data-favorite": "true",
348
348
  "data-has-label": d ? "true" : "false",
349
349
  "data-has-symbol": "true",
350
350
  children: [
351
- /* @__PURE__ */ o(
352
- S,
351
+ /* @__PURE__ */ a(
352
+ z,
353
353
  {
354
354
  size: 16,
355
355
  symbol: { type: "Svg", content: "star-empty" }
356
356
  }
357
357
  ),
358
- d && /* @__PURE__ */ o(_, { children: d })
358
+ d && /* @__PURE__ */ a(j, { children: d })
359
359
  ]
360
360
  }
361
361
  ),
362
362
  onConfirm: f,
363
363
  cancelLabel: e,
364
364
  confirmLabel: n,
365
- header: a,
366
- text: i
365
+ header: i,
366
+ text: o
367
367
  }
368
368
  ) : /* @__PURE__ */ p(
369
- ne,
369
+ Q,
370
370
  {
371
371
  className: "humany-favorite-button",
372
- title: v,
373
- "aria-label": v,
374
- onClick: x,
372
+ title: $,
373
+ "aria-label": $,
374
+ onClick: v,
375
375
  "data-favorite": "false",
376
376
  "data-has-label": d ? "true" : "false",
377
377
  "data-has-symbol": "true",
378
378
  children: [
379
- /* @__PURE__ */ o(S, { size: 16, symbol: { type: "Svg", content: "star-empty" } }),
380
- d && /* @__PURE__ */ o(_, { children: d })
379
+ /* @__PURE__ */ a(z, { size: 16, symbol: { type: "Svg", content: "star-empty" } }),
380
+ d && /* @__PURE__ */ a(j, { children: d })
381
381
  ]
382
382
  }
383
383
  );
384
- }, ne = c(at)`
384
+ }, Q = c(nt)`
385
385
  grid-area: favorite;
386
386
 
387
387
  &:focus-visible {
@@ -406,17 +406,17 @@ const $e = ({
406
406
  }
407
407
 
408
408
  ${(t) => {
409
- var e, n, a, i, s, r, m;
409
+ var e, n, i, o, s, r, m;
410
410
  return ((e = t.theme.colors) == null ? void 0 : e.text) && y`
411
411
  svg {
412
412
  stroke: ${(n = t.theme.colors) == null ? void 0 : n.text};
413
413
 
414
414
  path {
415
- stroke: ${(a = t.theme.colors) == null ? void 0 : a.text};
415
+ stroke: ${(i = t.theme.colors) == null ? void 0 : i.text};
416
416
  }
417
417
 
418
418
  ${t["data-favorite"] === "true" && `
419
- fill: ${(i = t.theme.colors) == null ? void 0 : i.text};
419
+ fill: ${(o = t.theme.colors) == null ? void 0 : o.text};
420
420
 
421
421
  path {
422
422
  fill: ${(s = t.theme.colors) == null ? void 0 : s.text};
@@ -443,28 +443,28 @@ const $e = ({
443
443
  }
444
444
  `;
445
445
  }}
446
- `, Ht = W(
446
+ `, Wt = A(
447
447
  ({
448
448
  onFeedback: t = () => {
449
449
  },
450
450
  direction: e = "horizontal",
451
451
  className: n,
452
- header: a,
453
- positive: i,
452
+ header: i,
453
+ positive: o,
454
454
  negative: s,
455
455
  selected: r,
456
456
  ...m
457
457
  }, l) => /* @__PURE__ */ p(
458
- st,
458
+ ot,
459
459
  {
460
- className: z(n, "humany-feedback"),
460
+ className: k(n, "humany-feedback"),
461
461
  "data-direction": e,
462
- ...he(m),
462
+ ...re(m),
463
463
  ref: l,
464
464
  children: [
465
- !!a && /* @__PURE__ */ o(it, { children: a }),
465
+ !!i && /* @__PURE__ */ a(at, { children: i }),
466
466
  /* @__PURE__ */ p(
467
- ae,
467
+ X,
468
468
  {
469
469
  className: "humany-feedback-button",
470
470
  disabled: !!r,
@@ -472,13 +472,13 @@ const $e = ({
472
472
  "data-direction": e,
473
473
  onClick: () => t("positive"),
474
474
  children: [
475
- /* @__PURE__ */ o(P, { faIcon: "smile-o" }),
476
- /* @__PURE__ */ o("span", { children: i })
475
+ /* @__PURE__ */ a(I, { faIcon: "smile-o" }),
476
+ /* @__PURE__ */ a("span", { children: o })
477
477
  ]
478
478
  }
479
479
  ),
480
480
  /* @__PURE__ */ p(
481
- ae,
481
+ X,
482
482
  {
483
483
  className: "humany-feedback-button",
484
484
  disabled: !!r,
@@ -486,15 +486,15 @@ const $e = ({
486
486
  "data-direction": e,
487
487
  onClick: () => t("negative"),
488
488
  children: [
489
- /* @__PURE__ */ o(P, { faIcon: "frown-o" }),
490
- /* @__PURE__ */ o("span", { children: s })
489
+ /* @__PURE__ */ a(I, { faIcon: "frown-o" }),
490
+ /* @__PURE__ */ a("span", { children: s })
491
491
  ]
492
492
  }
493
493
  )
494
494
  ]
495
495
  }
496
496
  )
497
- ), it = c(_)`
497
+ ), at = c(j)`
498
498
  font-weight: normal;
499
499
  margin: 0 0 ${(t) => {
500
500
  var e;
@@ -505,7 +505,7 @@ const $e = ({
505
505
  return (e = t.theme.fonts) == null ? void 0 : e.normal;
506
506
  }};
507
507
  display: block;
508
- `, ae = c(U)`
508
+ `, X = c(_)`
509
509
  display: inline-block;
510
510
  font-size: ${(t) => {
511
511
  var e;
@@ -533,7 +533,7 @@ const $e = ({
533
533
 
534
534
  ${(t) => {
535
535
  var e, n;
536
- return ((e = t.theme.colors) == null ? void 0 : e.primary) && ce({
536
+ return ((e = t.theme.colors) == null ? void 0 : e.primary) && ae({
537
537
  active: t["data-selected"],
538
538
  primaryColor: (n = t.theme.colors) == null ? void 0 : n.primary,
539
539
  secondaryColor: "#FFFFFF",
@@ -547,7 +547,7 @@ const $e = ({
547
547
  return (e = t.theme.sizes) == null ? void 0 : e.small;
548
548
  }} 0 0;
549
549
  }
550
- `, st = c.div`
550
+ `, ot = c.div`
551
551
  ${(t) => {
552
552
  var e;
553
553
  return t["data-direction"] === "vertical" && y`
@@ -559,30 +559,30 @@ const $e = ({
559
559
  }
560
560
  `;
561
561
  }}
562
- `, Ot = () => {
563
- const [t, e] = F(null), n = M("ArrowLeft"), a = M("ArrowRight"), i = M("ArrowUp"), s = M("ArrowDown");
564
- return E(() => {
565
- e(n ? "left" : a ? "right" : i ? "up" : s ? "down" : null);
566
- }, [n, a, i, s]), t;
562
+ `, Et = () => {
563
+ const [t, e] = N(null), n = T("ArrowLeft"), i = T("ArrowRight"), o = T("ArrowUp"), s = T("ArrowDown");
564
+ return M(() => {
565
+ e(n ? "left" : i ? "right" : o ? "up" : s ? "down" : null);
566
+ }, [n, i, o, s]), t;
567
567
  }, Yt = (t, e) => {
568
- const [n, a] = F(t), i = k(() => setTimeout(() => {
569
- a(t);
570
- }, e), [e, a, t]);
571
- return E(
568
+ const [n, i] = N(t), o = w(() => setTimeout(() => {
569
+ i(t);
570
+ }, e), [e, i, t]);
571
+ return M(
572
572
  () => {
573
- const s = i();
573
+ const s = o();
574
574
  return () => {
575
575
  clearTimeout(s);
576
576
  };
577
577
  },
578
- [i]
578
+ [o]
579
579
  // Only re-call effect if value or delay changes
580
580
  ), n;
581
- }, rt = () => {
582
- const t = fe(), [e, n] = F([]), a = t.get("favorites");
583
- E(() => {
584
- if (a) {
585
- n(a.get());
581
+ }, st = () => {
582
+ const t = le(), [e, n] = N([]), i = t.get("favorites");
583
+ M(() => {
584
+ if (i) {
585
+ n(i.get());
586
586
  const { events: l } = t.get("$widget");
587
587
  return l.subscribe(
588
588
  "widget:favorites-updated",
@@ -592,16 +592,16 @@ const $e = ({
592
592
  );
593
593
  }
594
594
  }, []);
595
- const i = (l) => a ? a.add(l) : Promise.resolve([]), s = (l) => a ? a.remove(l) : Promise.resolve([]), r = () => a ? a.clear() : Promise.resolve([]), m = k(
596
- (l) => e.indexOf(l) > -1 ? s(l) : i(l),
595
+ const o = (l) => i ? i.add(l) : Promise.resolve([]), s = (l) => i ? i.remove(l) : Promise.resolve([]), r = () => i ? i.clear() : Promise.resolve([]), m = w(
596
+ (l) => e.indexOf(l) > -1 ? s(l) : o(l),
597
597
  // eslint-disable-next-line react-hooks/exhaustive-deps
598
598
  [e]
599
599
  );
600
600
  return [
601
601
  e,
602
- Ke(
602
+ Ue(
603
603
  () => ({
604
- addFavorite: i,
604
+ addFavorite: o,
605
605
  removeFavorite: s,
606
606
  clearFavorites: r,
607
607
  toggleFavorite: m
@@ -611,14 +611,14 @@ const $e = ({
611
611
  )
612
612
  ];
613
613
  }, _t = () => {
614
- const [t, e] = F(!1), n = pe(), a = k(() => e(!0), [e]), i = k(() => e(!1), [e]);
615
- return ee("mouseenter", a, n.current), ee("mouseleave", i, n.current), [t, n];
616
- }, lt = ({
617
- format: t = ge.YYYY_MM_DD_HH_MM,
614
+ const [t, e] = N(!1), n = me(), i = w(() => e(!0), [e]), o = w(() => e(!1), [e]);
615
+ return q("mouseenter", i, n.current), q("mouseleave", o, n.current), [t, n];
616
+ }, rt = ({
617
+ format: t = de.YYYY_MM_DD_HH_MM,
618
618
  className: e = "",
619
619
  byLabel: n = "",
620
- modifiedLabel: a = "",
621
- publishedLabel: i = "",
620
+ modifiedLabel: i = "",
621
+ publishedLabel: o = "",
622
622
  modifiedBy: s = "",
623
623
  publishedBy: r = "",
624
624
  showModified: m = !1,
@@ -626,58 +626,58 @@ const $e = ({
626
626
  modified: d,
627
627
  published: u
628
628
  }) => {
629
- const h = l && u ? /* @__PURE__ */ o(oe, { format: t, timestamp: u }) : null, f = m && d ? /* @__PURE__ */ o(oe, { format: t, timestamp: d }) : null;
630
- return !h && !f ? null : /* @__PURE__ */ p(Y, { className: z(e, "humany-metadata"), children: [
631
- h && /* @__PURE__ */ p(Y, { className: "humany-published", children: [
632
- i,
629
+ const h = l && u ? /* @__PURE__ */ a(Z, { format: t, timestamp: u }) : null, f = m && d ? /* @__PURE__ */ a(Z, { format: t, timestamp: d }) : null;
630
+ return !h && !f ? null : /* @__PURE__ */ p(H, { className: k(e, "humany-metadata"), children: [
631
+ h && /* @__PURE__ */ p(H, { className: "humany-published", children: [
632
+ o,
633
633
  h,
634
634
  n && r && ` ${n.replace("{{editor}}", r)}`
635
635
  ] }),
636
- f && /* @__PURE__ */ p(Y, { className: "humany-modified", children: [
636
+ f && /* @__PURE__ */ p(H, { className: "humany-modified", children: [
637
637
  h && ", ",
638
- a,
638
+ i,
639
639
  f,
640
640
  n && s && ` ${n.replace("{{editor}}", s)}`
641
641
  ] })
642
642
  ] });
643
- }, oe = c(ue)`
643
+ }, Z = c(ce)`
644
644
  &:not(:first-child) {
645
645
  margin-left: 4px;
646
646
  }
647
647
  &:not(:last-child) {
648
648
  margin-right: 4px;
649
649
  }
650
- `, Y = c(me)`
650
+ `, H = c(se)`
651
651
  font-style: italic;
652
- `, ct = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ o(
653
- ht,
652
+ `, lt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ a(
653
+ mt,
654
654
  {
655
655
  className: "humany-guide-list-tags",
656
656
  items: t,
657
- renderItem: ({ id: e, symbol: n, title: a }) => n && /* @__PURE__ */ o("li", { "data-tag": e, children: /* @__PURE__ */ o(ft, { size: 18, symbol: n, title: a }) }, e)
657
+ renderItem: ({ id: e, symbol: n, title: i }) => n && /* @__PURE__ */ a("li", { "data-tag": e, children: /* @__PURE__ */ a(ht, { size: 18, symbol: n, title: i }) }, e)
658
658
  }
659
- ) : null, Vt = W(({ title: t, id: e, route: n, symbolSize: a, collapseUri: i, children: s }, r) => {
660
- const { params: m } = re();
661
- return /* @__PURE__ */ p(dt, { ref: r, "data-guide": e, children: [
662
- /* @__PURE__ */ o(
663
- V,
659
+ ) : null, Ot = A(({ title: t, id: e, route: n, symbolSize: i, collapseUri: o, children: s }, r) => {
660
+ const { params: m } = ne();
661
+ return /* @__PURE__ */ p(ct, { ref: r, "data-guide": e, children: [
662
+ /* @__PURE__ */ a(
663
+ R,
664
664
  {
665
665
  "aria-expanded": !0,
666
666
  title: t,
667
667
  "aria-label": t,
668
668
  routeName: n,
669
- params: B({
669
+ params: F({
670
670
  ...m,
671
- uriName: i || void 0,
671
+ uriName: o || void 0,
672
672
  id: void 0,
673
673
  guide: void 0,
674
674
  accordion: void 0
675
675
  }),
676
676
  text: t,
677
- children: /* @__PURE__ */ o(
678
- S,
677
+ children: /* @__PURE__ */ a(
678
+ z,
679
679
  {
680
- size: a,
680
+ size: i,
681
681
  symbol: { type: "Svg", content: "caret-up" }
682
682
  }
683
683
  )
@@ -685,7 +685,7 @@ const $e = ({
685
685
  ),
686
686
  s
687
687
  ] });
688
- }), dt = c.li`
688
+ }), ct = c.li`
689
689
  > a {
690
690
  grid-column: 1/-1;
691
691
  font-weight: bold;
@@ -698,13 +698,13 @@ const $e = ({
698
698
  > div {
699
699
  grid-column: 1/-1;
700
700
  }
701
- `, qt = W(
701
+ `, Gt = A(
702
702
  ({
703
703
  expandable: t = !1,
704
704
  routing: e = {},
705
705
  paramMappers: n = {},
706
- symbolSize: a = 11,
707
- pageRole: i = "link",
706
+ symbolSize: i = 11,
707
+ pageRole: o = "link",
708
708
  pageCaret: s = "down",
709
709
  showTags: r = !1,
710
710
  showFavoriteToggle: m = !1,
@@ -715,48 +715,48 @@ const $e = ({
715
715
  },
716
716
  metadata: h = {},
717
717
  pageLabel: f,
718
- className: x,
719
- children: v,
720
- items: $,
721
- renderItem: N,
722
- addFavoriteTooltip: ve,
723
- removeFavoriteCancelLabel: xe,
724
- removeFavoriteConfirmLabel: be,
725
- removeFavoriteHeader: we,
726
- removeFavoriteLabel: ke,
727
- removeFavoriteTooltip: ze,
728
- searchResultsEmptyLabel: Se,
729
- ...J
730
- }, Ne) => {
731
- const Q = He(), I = pe(), T = Oe($), { guide: Le = "guide", page: Ie = "index" } = e, {
732
- guide: Te = ({ id: g }) => B({ guide: g }),
733
- page: X = () => B()
734
- } = n, [De, Fe] = rt(), Ce = fe(), { events: Ae } = Ce.get("$widget");
735
- Ue(Ne, () => I.current);
736
- const H = (g) => {
737
- const { id: b, title: w, tags: L, published: C, modified: D, publishedBy: A, modifiedBy: O } = g;
718
+ className: v,
719
+ children: $,
720
+ items: x,
721
+ renderItem: S,
722
+ addFavoriteTooltip: ue,
723
+ removeFavoriteCancelLabel: ge,
724
+ removeFavoriteConfirmLabel: pe,
725
+ removeFavoriteHeader: ye,
726
+ removeFavoriteLabel: $e,
727
+ removeFavoriteTooltip: ve,
728
+ searchResultsEmptyLabel: xe,
729
+ ...O
730
+ }, be) => {
731
+ const we = We(), P = me(), { guide: ke = "guide", page: ze = "index" } = e, {
732
+ guide: Se = ({ id: g }) => F({ guide: g }),
733
+ page: G = () => F()
734
+ } = n, [Ne, Le] = st(), Te = le(), { events: Ie } = Te.get("$widget");
735
+ Ve(be, () => P.current);
736
+ const B = (g) => {
737
+ const { id: b, title: L, tags: Ae, published: K, modified: U, publishedBy: Me, modifiedBy: Pe } = g;
738
738
  return /* @__PURE__ */ p(
739
739
  "li",
740
740
  {
741
741
  "data-guide": b,
742
- "has-metadata": (!!(h != null && h.showPublished) && !!C || !!(h != null && h.showModified) && !!D).toString(),
742
+ "has-metadata": (!!(h != null && h.showPublished) && !!K || !!(h != null && h.showModified) && !!U).toString(),
743
743
  children: [
744
- /* @__PURE__ */ o(
745
- V,
744
+ /* @__PURE__ */ a(
745
+ R,
746
746
  {
747
747
  className: "humany-guide-link",
748
- routeName: Le,
749
- onClick: (je) => {
750
- d(je, g), Ae.dispatch("tracking:guide-list-item-clicked", {
748
+ routeName: ke,
749
+ onClick: (Be) => {
750
+ d(Be, g), Ie.dispatch("tracking:guide-list-item-clicked", {
751
751
  guide: g
752
752
  });
753
753
  },
754
- params: Te(g),
755
- text: w,
756
- children: /* @__PURE__ */ o(
757
- S,
754
+ params: Se(g),
755
+ text: L,
756
+ children: /* @__PURE__ */ a(
757
+ z,
758
758
  {
759
- size: a,
759
+ size: i,
760
760
  symbol: {
761
761
  type: "Svg",
762
762
  content: t ? "caret-down" : "caret-right"
@@ -765,122 +765,96 @@ const $e = ({
765
765
  )
766
766
  }
767
767
  ),
768
- m && /* @__PURE__ */ o(
769
- ot,
768
+ m && /* @__PURE__ */ a(
769
+ it,
770
770
  {
771
- guideTitle: w,
772
- addFavoriteTooltip: ve,
773
- removeFavoriteCancelLabel: xe,
774
- removeFavoriteConfirmLabel: be,
775
- removeFavoriteHeader: we,
776
- removeFavoriteLabel: ke,
777
- removeFavoriteTooltip: ze,
778
- isFavorite: De.indexOf(b) > -1,
779
- actions: Fe,
771
+ guideTitle: L,
772
+ addFavoriteTooltip: ue,
773
+ removeFavoriteCancelLabel: ge,
774
+ removeFavoriteConfirmLabel: pe,
775
+ removeFavoriteHeader: ye,
776
+ removeFavoriteLabel: $e,
777
+ removeFavoriteTooltip: ve,
778
+ isFavorite: Ne.indexOf(b) > -1,
779
+ actions: Le,
780
780
  id: b
781
781
  }
782
782
  ),
783
- r && /* @__PURE__ */ o(ct, { tags: L }),
784
- /* @__PURE__ */ o(
785
- ut,
783
+ r && /* @__PURE__ */ a(lt, { tags: Ae }),
784
+ /* @__PURE__ */ a(
785
+ ft,
786
786
  {
787
787
  ...h,
788
- indent: t ? void 0 : a,
789
- modified: D,
790
- published: C,
791
- publishedBy: A,
792
- modifiedBy: O
788
+ indent: t ? void 0 : i,
789
+ modified: U,
790
+ published: K,
791
+ publishedBy: Me,
792
+ modifiedBy: Pe
793
793
  }
794
794
  )
795
795
  ]
796
796
  },
797
797
  b
798
798
  );
799
- }, Me = k(
800
- (g, b, w) => N ? N(g, b, w, H) : H(g),
801
- [N, H]
802
- ), Pe = k(
799
+ }, Fe = w(
800
+ (g, b, L) => S ? S(g, b, L, B) : B(g),
801
+ [S, B]
802
+ ), Ce = w(
803
803
  (g) => {
804
- l && (g.preventDefault(), u("page", X()));
804
+ l && (g.preventDefault(), u("page", G()));
805
805
  },
806
806
  [u, l]
807
807
  );
808
- E(() => {
809
- if (T && T.length < $.length && I.current) {
810
- const g = I.current.querySelectorAll(
811
- ".humany-guide-list > ul > li"
812
- ), b = g[T.length];
813
- if (g.length === $.length && T.length) {
814
- const w = g[T.length];
815
- if (w) {
816
- const L = w.querySelector(
817
- ".humany-guide-link"
818
- );
819
- L && L.focus();
820
- }
821
- } else
822
- b && new MutationObserver((L, C) => {
823
- L.forEach((D) => {
824
- if (D.addedNodes) {
825
- const A = Array.from(
826
- D.addedNodes
827
- ).find((O) => O.tagName === "A");
828
- A && Ge(I.current, document.activeElement) && (Q && A.focus(), C.disconnect());
829
- }
830
- });
831
- }).observe(b, {
832
- attributes: !1,
833
- characterData: !1,
834
- childList: !0,
835
- subtree: !0,
836
- attributeOldValue: !1,
837
- characterDataOldValue: !1
838
- });
839
- }
840
- });
841
- const Be = !!Object.keys(h).filter(
808
+ M(() => {
809
+ var b;
810
+ const g = (b = P.current) == null ? void 0 : b.querySelector(
811
+ ".humany-guide-list > ul > li .humany-guide-link"
812
+ );
813
+ g && Ee() && (g.focus(), Ye(!1));
814
+ }, [x]);
815
+ const De = !!Object.keys(h).filter(
842
816
  (g) => typeof h[g] < "u"
843
817
  ).length;
844
818
  return /* @__PURE__ */ p(
845
- mt,
819
+ dt,
846
820
  {
847
- className: z(x, "humany-guide-list"),
848
- "data-item-count": $.length,
849
- items: $,
850
- renderItem: Me,
851
- isTabbing: Q,
821
+ className: k(v, "humany-guide-list"),
822
+ "data-item-count": x.length,
823
+ items: x,
824
+ renderItem: Fe,
825
+ isTabbing: we,
852
826
  expandable: t ? "true" : "false",
853
- "grid-items": r || m || Be ? "true" : "false",
854
- ...he(J),
855
- ref: I,
827
+ "grid-items": r || m || De ? "true" : "false",
828
+ ...re(O),
829
+ ref: P,
856
830
  children: [
857
- f ? /* @__PURE__ */ o(
858
- V,
831
+ f ? /* @__PURE__ */ a(
832
+ R,
859
833
  {
860
834
  text: f,
861
835
  title: f,
862
836
  "aria-label": f,
863
- routeName: Ie,
864
- role: i,
865
- params: X(),
866
- onClick: Pe,
867
- children: /* @__PURE__ */ o(
868
- S,
837
+ routeName: ze,
838
+ role: o,
839
+ params: G(),
840
+ onClick: Ce,
841
+ children: /* @__PURE__ */ a(
842
+ z,
869
843
  {
870
- size: a,
844
+ size: i,
871
845
  symbol: { type: "Svg", content: `caret-${s}` }
872
846
  }
873
847
  )
874
848
  }
875
849
  ) : null,
876
- v,
877
- !J["data-loading"] && $.length === 0 && /* @__PURE__ */ o("p", { children: Se })
850
+ $,
851
+ !O["data-loading"] && x.length === 0 && /* @__PURE__ */ a("p", { children: xe })
878
852
  ]
879
853
  }
880
854
  );
881
855
  }
882
- ), mt = c(j)`
883
- ${R}
856
+ ), dt = c(C)`
857
+ ${D}
884
858
  padding: ${(t) => {
885
859
  var e;
886
860
  return (e = t.theme.sizes) == null ? void 0 : e.large;
@@ -892,7 +866,7 @@ const $e = ({
892
866
  text-decoration: none;
893
867
 
894
868
  > div {
895
- ${(t) => K(t)(
869
+ ${(t) => Y(t)(
896
870
  "> h1",
897
871
  y`
898
872
  white-space: pre-wrap;
@@ -983,7 +957,7 @@ const $e = ({
983
957
  }}
984
958
 
985
959
  &:focus-visible {
986
- ${q}
960
+ ${W}
987
961
  text-decoration: underline;
988
962
  }
989
963
 
@@ -1026,12 +1000,12 @@ const $e = ({
1026
1000
  }
1027
1001
 
1028
1002
  &:focus-visible {
1029
- ${q}
1003
+ ${W}
1030
1004
  text-decoration: underline;
1031
1005
  }
1032
1006
  }
1033
- `, ht = c(G)`
1034
- ${le}
1007
+ `, mt = c(E)`
1008
+ ${ie}
1035
1009
  display: flex;
1036
1010
  margin: 0 0 0 auto;
1037
1011
  grid-area: tags;
@@ -1046,7 +1020,7 @@ const $e = ({
1046
1020
  align-items: center;
1047
1021
  justify-content: space-between;
1048
1022
  }
1049
- `, ft = c(S)`
1023
+ `, ht = c(z)`
1050
1024
  display: block;
1051
1025
  color: ${(t) => {
1052
1026
  var e;
@@ -1063,7 +1037,7 @@ const $e = ({
1063
1037
  font-size: ${t.size}px;
1064
1038
  `;
1065
1039
  }}
1066
- `, ut = c(lt)`
1040
+ `, ft = c(rt)`
1067
1041
  grid-area: metadata;
1068
1042
  text-overflow: ellipsis;
1069
1043
  overflow: hidden;
@@ -1075,11 +1049,11 @@ const $e = ({
1075
1049
  var e;
1076
1050
  return typeof t.indent == "number" && `text-indent: calc(${(e = t.theme.sizes) == null ? void 0 : e.small} * 2 + ${t.indent}px);`;
1077
1051
  }}
1078
- `, gt = ye`
1052
+ `, ut = he`
1079
1053
  100% {
1080
1054
  transform: rotate(360deg);
1081
1055
  }
1082
- `, pt = ye`
1056
+ `, gt = he`
1083
1057
  0% {
1084
1058
  stroke-dasharray: 1, 200;
1085
1059
  stroke-dashoffset: 0;
@@ -1092,8 +1066,8 @@ const $e = ({
1092
1066
  stroke-dasharray: 89, 200;
1093
1067
  stroke-dashoffset: -124px;
1094
1068
  }
1095
- `, yt = c.svg`
1096
- animation: ${gt} 2s linear infinite;
1069
+ `, pt = c.svg`
1070
+ animation: ${ut} 2s linear infinite;
1097
1071
  height: 100%;
1098
1072
  transform-origin: center center;
1099
1073
  width: 100%;
@@ -1104,7 +1078,7 @@ const $e = ({
1104
1078
  right: 0;
1105
1079
  margin: auto;
1106
1080
  transition: 200ms ease-out opacity;
1107
- `, $t = c.div`
1081
+ `, yt = c.div`
1108
1082
  position: absolute;
1109
1083
  top: 0;
1110
1084
  bottom: 0;
@@ -1123,7 +1097,7 @@ const $e = ({
1123
1097
  .humany-spinner-svg {
1124
1098
  opacity: ${(t) => t["data-loading"] ? "1" : "0"};
1125
1099
  }
1126
- `, vt = c.div`
1100
+ `, $t = c.div`
1127
1101
  position: relative;
1128
1102
  margin: 0 auto;
1129
1103
  width: 100px;
@@ -1132,18 +1106,18 @@ const $e = ({
1132
1106
  display: block;
1133
1107
  padding-top: 100%;
1134
1108
  }
1135
- `, xt = c.circle`
1109
+ `, vt = c.circle`
1136
1110
  stroke-dasharray: 1, 200;
1137
1111
  stroke-dashoffset: 0;
1138
- animation: ${pt} 1.5s ease-in-out infinite;
1112
+ animation: ${gt} 1.5s ease-in-out infinite;
1139
1113
  stroke-linecap: round;
1140
1114
  stroke: ${(t) => {
1141
1115
  var e;
1142
1116
  return (e = t.theme.colors) == null ? void 0 : e.primary;
1143
1117
  }};
1144
1118
  stroke-width: 2px;
1145
- `, bt = ({ loading: t = !1 }) => /* @__PURE__ */ o($t, { className: "humany-loader", "data-loading": t, children: /* @__PURE__ */ o(vt, { className: "humany-spinner", children: /* @__PURE__ */ o(yt, { className: "humany-spinner-svg", viewBox: "25 25 50 50", children: /* @__PURE__ */ o(
1146
- xt,
1119
+ `, xt = ({ loading: t = !1 }) => /* @__PURE__ */ a(yt, { className: "humany-loader", "data-loading": t, children: /* @__PURE__ */ a($t, { className: "humany-spinner", children: /* @__PURE__ */ a(pt, { className: "humany-spinner-svg", viewBox: "25 25 50 50", children: /* @__PURE__ */ a(
1120
+ vt,
1147
1121
  {
1148
1122
  cx: "50",
1149
1123
  cy: "50",
@@ -1152,48 +1126,48 @@ const $e = ({
1152
1126
  "stroke-width": "2",
1153
1127
  "stroke-miterlimit": "10"
1154
1128
  }
1155
- ) }) }) }), Gt = ({
1129
+ ) }) }) }), Kt = ({
1156
1130
  className: t,
1157
1131
  showHeader: e,
1158
1132
  notificationList: n,
1159
- loading: a,
1160
- ...i
1133
+ loading: i,
1134
+ ...o
1161
1135
  }) => {
1162
- const [s, r] = F(null), {
1136
+ const [s, r] = N(null), {
1163
1137
  id: m,
1164
1138
  title: l,
1165
1139
  symbol: d,
1166
1140
  notifications: u = [],
1167
1141
  defaultHeaderOptions: h = { visible: !0 }
1168
1142
  } = n || {};
1169
- return !u.length && !a ? null : /* @__PURE__ */ o(
1170
- kt,
1143
+ return !u.length && !i ? null : /* @__PURE__ */ a(
1144
+ wt,
1171
1145
  {
1172
- ...i,
1173
- "data-loading": a,
1146
+ ...o,
1147
+ "data-loading": i,
1174
1148
  "data-show-header": typeof e == "boolean" ? e : h.visible,
1175
- className: z(t, "humany-notification-list"),
1149
+ className: k(t, "humany-notification-list"),
1176
1150
  "data-notification-category": m,
1177
1151
  header: l,
1178
1152
  symbol: d,
1179
1153
  items: u,
1180
- renderItem: ({ id: f, title: x, body: v, modified: $, expandable: N }) => /* @__PURE__ */ o(
1181
- zt,
1154
+ renderItem: ({ id: f, title: v, body: $, modified: x, expandable: S }) => /* @__PURE__ */ a(
1155
+ kt,
1182
1156
  {
1183
1157
  "data-notification": f,
1184
- "data-expanded": N ? s === f : !0,
1185
- children: N ? /* @__PURE__ */ p(se, { children: [
1158
+ "data-expanded": S ? s === f : !0,
1159
+ children: S ? /* @__PURE__ */ p(te, { children: [
1186
1160
  /* @__PURE__ */ p(
1187
- wt,
1161
+ bt,
1188
1162
  {
1189
- title: x,
1190
- "aria-label": x,
1163
+ title: v,
1164
+ "aria-label": v,
1191
1165
  "aria-expanded": s === f,
1192
1166
  onClick: () => r(s === f ? null : f),
1193
1167
  children: [
1194
- /* @__PURE__ */ o("span", { children: x }),
1195
- /* @__PURE__ */ o(
1196
- St,
1168
+ /* @__PURE__ */ a("span", { children: v }),
1169
+ /* @__PURE__ */ a(
1170
+ zt,
1197
1171
  {
1198
1172
  size: 11,
1199
1173
  symbol: {
@@ -1205,22 +1179,22 @@ const $e = ({
1205
1179
  ]
1206
1180
  }
1207
1181
  ),
1208
- /* @__PURE__ */ o(ie, { html: v }),
1209
- $ && /* @__PURE__ */ o(
1210
- Nt,
1182
+ /* @__PURE__ */ a(ee, { html: $ }),
1183
+ x && /* @__PURE__ */ a(
1184
+ St,
1211
1185
  {
1212
- format: ge.YYYY_MM_DD,
1213
- timestamp: $
1186
+ format: de.YYYY_MM_DD,
1187
+ timestamp: x
1214
1188
  }
1215
1189
  )
1216
- ] }) : /* @__PURE__ */ o(ie, { html: v })
1190
+ ] }) : /* @__PURE__ */ a(ee, { html: $ })
1217
1191
  },
1218
1192
  f
1219
1193
  ),
1220
- children: /* @__PURE__ */ o(bt, { loading: a })
1194
+ children: /* @__PURE__ */ a(xt, { loading: i })
1221
1195
  }
1222
1196
  );
1223
- }, wt = c(U)`
1197
+ }, bt = c(_)`
1224
1198
  display: flex;
1225
1199
  justify-content: space-between;
1226
1200
  align-items: center;
@@ -1248,7 +1222,7 @@ const $e = ({
1248
1222
  white-space: nowrap;
1249
1223
  }
1250
1224
  &:focus-visible {
1251
- ${q}
1225
+ ${W}
1252
1226
  span {
1253
1227
  color: ${(t) => {
1254
1228
  var e;
@@ -1257,9 +1231,9 @@ const $e = ({
1257
1231
  text-decoration: underline;
1258
1232
  }
1259
1233
  }
1260
- `, kt = c(j)`
1261
- ${nt}
1262
- ${R}
1234
+ `, wt = c(C)`
1235
+ ${tt}
1236
+ ${D}
1263
1237
  overflow: hidden;
1264
1238
  justify-content: flex-start;
1265
1239
  padding: ${(t) => {
@@ -1268,7 +1242,7 @@ const $e = ({
1268
1242
  }};
1269
1243
  ${(t) => !t["data-show-header"] && y`
1270
1244
  > div {
1271
- ${K(t)(
1245
+ ${Y(t)(
1272
1246
  "h1",
1273
1247
  y`
1274
1248
  display: none;
@@ -1282,21 +1256,21 @@ const $e = ({
1282
1256
  text-decoration: underline;
1283
1257
  }
1284
1258
  }
1285
- `, ie = c(Ye)`
1286
- ${_e}
1259
+ `, ee = c(_e)`
1260
+ ${Oe}
1287
1261
  font-weight: 300;
1288
1262
 
1289
1263
  p {
1290
1264
  white-space: normal;
1291
1265
  }
1292
- `, zt = c.li`
1266
+ `, kt = c.li`
1293
1267
  .humany-paragraph {
1294
1268
  display: none;
1295
1269
  &:not(:only-child) {
1296
1270
  ${(t) => {
1297
- var e, n, a;
1271
+ var e, n, i;
1298
1272
  return ((e = t.theme.sizes) == null ? void 0 : e.cardinal) && ((n = t.theme.sizes) == null ? void 0 : n.normal) && y`
1299
- margin: ${(a = t.theme.sizes) == null ? void 0 : a.normal} 0;
1273
+ margin: ${(i = t.theme.sizes) == null ? void 0 : i.normal} 0;
1300
1274
  `;
1301
1275
  }}
1302
1276
  }
@@ -1316,7 +1290,7 @@ const $e = ({
1316
1290
  return (e = t.theme.colors) == null ? void 0 : e.accent;
1317
1291
  }};
1318
1292
  }
1319
- `, St = c(S)`
1293
+ `, zt = c(z)`
1320
1294
  margin: 0 0 0 ${(t) => {
1321
1295
  var e;
1322
1296
  return (e = t.theme.sizes) == null ? void 0 : e.small;
@@ -1327,64 +1301,64 @@ const $e = ({
1327
1301
  return (e = t.theme.colors) == null ? void 0 : e.primary;
1328
1302
  }};
1329
1303
  }
1330
- `, Nt = c(ue)`
1304
+ `, St = c(ce)`
1331
1305
  font-size: ${(t) => {
1332
1306
  var e;
1333
1307
  return (e = t.theme.fonts) == null ? void 0 : e.small;
1334
1308
  }};
1335
1309
  font-weight: 300;
1336
- `, Lt = (t) => new RegExp("^#", "i").test(t), It = (t) => ({ children: e, ...n }) => {
1310
+ `, Nt = (t) => new RegExp("^#", "i").test(t), Lt = (t) => ({ children: e, ...n }) => {
1337
1311
  const {
1338
- implementation: a,
1339
- name: i
1312
+ implementation: i,
1313
+ name: o
1340
1314
  } = t.get("$widget"), { href: s = "" } = n;
1341
- if (Lt(s))
1342
- return /* @__PURE__ */ o(Ve, { smooth: !0, to: s, children: e });
1343
- const r = a.bindings.map((d) => d.replace(/\./g, "\\.")).join("|"), l = new RegExp(
1315
+ if (Nt(s))
1316
+ return /* @__PURE__ */ a(Ge, { smooth: !0, to: s, children: e });
1317
+ const r = i.bindings.map((d) => d.replace(/\./g, "\\.")).join("|"), l = new RegExp(
1344
1318
  `^((http[s]?:)?//)?(${r})/([^\\s]+)`
1345
1319
  ).exec(s);
1346
1320
  if (l && l.length >= 4) {
1347
1321
  const d = l[4];
1348
- if (a.widgets.get(d) && !d.startsWith("blob?") && !d.startsWith(i))
1349
- return /* @__PURE__ */ o(qe, { widgetName: d, children: e });
1322
+ if (i.widgets.get(d) && !d.startsWith("blob?") && !d.startsWith(o))
1323
+ return /* @__PURE__ */ a(Ke, { widgetName: d, children: e });
1350
1324
  }
1351
- return /* @__PURE__ */ o("a", { ...n, children: e });
1352
- }, Kt = (t, e = []) => ({
1325
+ return /* @__PURE__ */ a("a", { ...n, children: e });
1326
+ }, Ut = (t, e = []) => ({
1353
1327
  transform: {
1354
1328
  a: (n) => {
1355
- const { children: a, ...i } = n, s = i["data-target"];
1329
+ const { children: i, ...o } = n, s = o["data-target"];
1356
1330
  if (s && e.length) {
1357
1331
  const m = e.find(
1358
1332
  ({ connection: l }) => l === s
1359
1333
  );
1360
1334
  if (m)
1361
- return /* @__PURE__ */ o($e, { ...m, children: a });
1335
+ return /* @__PURE__ */ a(fe, { ...m, children: i });
1362
1336
  }
1363
- return It(t)(n);
1337
+ return Lt(t)(n);
1364
1338
  }
1365
1339
  }
1366
1340
  });
1367
1341
  export {
1368
- Vt as AccordionListItem,
1369
- $e as DialogLink,
1370
- Pt as DialogList,
1371
- Bt as DrawerList,
1372
- jt as DropdownActions,
1373
- Rt as DropdownList,
1374
- ot as FavoriteButton,
1375
- Ht as Feedback,
1376
- qt as GuideList,
1377
- bt as Loader,
1378
- $t as LoaderWrapper,
1379
- lt as Metadata,
1380
- Gt as NotificationList,
1381
- Wt as SmallCaret,
1382
- Et as StyledHeaderText,
1383
- at as StyledListButton,
1384
- Kt as guideRenderInstructions,
1385
- nt as loadingOpacity,
1386
- Ot as useArrowKeys,
1342
+ Ot as AccordionListItem,
1343
+ fe as DialogLink,
1344
+ Mt as DialogList,
1345
+ Pt as DrawerList,
1346
+ Bt as DropdownActions,
1347
+ Ht as DropdownList,
1348
+ it as FavoriteButton,
1349
+ Wt as Feedback,
1350
+ Gt as GuideList,
1351
+ xt as Loader,
1352
+ yt as LoaderWrapper,
1353
+ rt as Metadata,
1354
+ Kt as NotificationList,
1355
+ jt as SmallCaret,
1356
+ Rt as StyledHeaderText,
1357
+ nt as StyledListButton,
1358
+ Ut as guideRenderInstructions,
1359
+ tt as loadingOpacity,
1360
+ Et as useArrowKeys,
1387
1361
  Yt as useDebounce,
1388
- rt as useFavorites,
1362
+ st as useFavorites,
1389
1363
  _t as useHover
1390
1364
  };