@telia-ace/knowledge-widget-ui 1.0.26-next.6 → 1.0.26-next.8
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 +252 -252
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
var He = Object.defineProperty, je = Object.defineProperties;
|
|
2
2
|
var Oe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var re = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
re.call(e,
|
|
4
|
+
var re = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var oe = (t, e, a) => e in t ? He(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, y = (t, e) => {
|
|
6
|
+
for (var a in e || (e = {}))
|
|
7
|
+
re.call(e, a) && oe(t, a, e[a]);
|
|
8
8
|
if (R)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
9
|
+
for (var a of R(e))
|
|
10
|
+
se.call(e, a) && oe(t, a, e[a]);
|
|
11
11
|
return t;
|
|
12
12
|
}, E = (t, e) => je(t, Oe(e));
|
|
13
13
|
var w = (t, e) => {
|
|
14
|
-
var
|
|
14
|
+
var a = {};
|
|
15
15
|
for (var o in t)
|
|
16
|
-
re.call(t, o) && e.indexOf(o) < 0 && (
|
|
16
|
+
re.call(t, o) && e.indexOf(o) < 0 && (a[o] = t[o]);
|
|
17
17
|
if (t != null && R)
|
|
18
18
|
for (var o of R(t))
|
|
19
|
-
e.indexOf(o) < 0 &&
|
|
20
|
-
return
|
|
19
|
+
e.indexOf(o) < 0 && se.call(t, o) && (a[o] = t[o]);
|
|
20
|
+
return a;
|
|
21
21
|
};
|
|
22
22
|
import { css as $, keyframes as he } from "@emotion/react";
|
|
23
23
|
import d from "@emotion/styled";
|
|
24
|
-
import { useRouteData as ge, Link as Ye, Icon as H, List as
|
|
24
|
+
import { useRouteData as ge, Link as Ye, Icon as H, List as Z, list as pe, invertedHoverButton as ye, Drawer as _e, ItemList as O, itemList as Y, Dropdown as $e, headingElement as ee, Text as ve, Button as te, paddedBorderTabStyle as ie, Confirm as Ke, SymbolBadge as N, StyledText as J, convertToStringAttributes as xe, useKeyPress as W, useContainer as Ve, useEventListener as le, DateFormats as be, Timestamp as we, useIsTabbing as qe, usePrevious as Ge, TextLink as Q, borderTabStyle as X, Paragraph as Ue, genericHtml as Je, AnchorLink as Qe, WidgetLink as Xe } from "@telia-ace/widget-ui";
|
|
25
25
|
export * from "@telia-ace/widget-ui";
|
|
26
|
-
import
|
|
27
|
-
import { createParams as j, formatUrl as
|
|
28
|
-
const
|
|
26
|
+
import n, { forwardRef as _, useCallback as k, useState as T, useEffect as K, useMemo as Ze, useRef as Ee, useImperativeHandle as et } from "react";
|
|
27
|
+
import { createParams as j, formatUrl as ce, appendClassNames as z, htmlParentContains as tt } from "@telia-ace/widget-utilities";
|
|
28
|
+
const at = ({
|
|
29
29
|
title: t = "",
|
|
30
30
|
className: e,
|
|
31
|
-
id:
|
|
31
|
+
id: a,
|
|
32
32
|
parent: o,
|
|
33
|
-
connection:
|
|
33
|
+
connection: s,
|
|
34
34
|
type: i,
|
|
35
|
-
target:
|
|
35
|
+
target: r,
|
|
36
36
|
href: c,
|
|
37
37
|
children: m,
|
|
38
38
|
connectionKey: f
|
|
@@ -43,33 +43,33 @@ const nt = ({
|
|
|
43
43
|
case "guide":
|
|
44
44
|
const { id: S, title: g } = o;
|
|
45
45
|
u.routeName = l, u.params = j(E(y({}, h), {
|
|
46
|
-
guide:
|
|
46
|
+
guide: a,
|
|
47
47
|
connection: f,
|
|
48
|
-
uriName:
|
|
48
|
+
uriName: a === S ? ce(g) : ce(t)
|
|
49
49
|
}));
|
|
50
50
|
break;
|
|
51
51
|
case "link":
|
|
52
|
-
u.href = c, u.target =
|
|
52
|
+
u.href = c, u.target = r;
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ n.createElement(Ye, y({
|
|
56
56
|
className: z(e, "humany-dialog-link")
|
|
57
|
-
}, u), m || /* @__PURE__ */
|
|
57
|
+
}, u), m || /* @__PURE__ */ n.createElement(n.Fragment, null, i === "link" && /* @__PURE__ */ n.createElement(H, {
|
|
58
58
|
faIcon: "link"
|
|
59
|
-
}), /* @__PURE__ */
|
|
60
|
-
}, ke =
|
|
61
|
-
var i =
|
|
62
|
-
return e.length ? /* @__PURE__ */
|
|
59
|
+
}), /* @__PURE__ */ n.createElement("span", null, t)));
|
|
60
|
+
}, ke = at, ta = _((s, o) => {
|
|
61
|
+
var i = s, { className: t, dialog: e } = i, a = w(i, ["className", "dialog"]);
|
|
62
|
+
return e.length ? /* @__PURE__ */ n.createElement(nt, E(y({
|
|
63
63
|
className: z(t, "humany-dialog"),
|
|
64
64
|
items: e,
|
|
65
|
-
renderItem: (
|
|
66
|
-
key:
|
|
67
|
-
"data-dialog":
|
|
68
|
-
}, /* @__PURE__ */
|
|
69
|
-
},
|
|
65
|
+
renderItem: (r) => /* @__PURE__ */ n.createElement("li", {
|
|
66
|
+
key: r.connection,
|
|
67
|
+
"data-dialog": r.connection
|
|
68
|
+
}, /* @__PURE__ */ n.createElement(ke, y({}, r)))
|
|
69
|
+
}, a), {
|
|
70
70
|
ref: o
|
|
71
71
|
})) : null;
|
|
72
|
-
}),
|
|
72
|
+
}), nt = d(Z)`
|
|
73
73
|
${pe}
|
|
74
74
|
a {
|
|
75
75
|
min-width: 150px;
|
|
@@ -77,9 +77,9 @@ const nt = ({
|
|
|
77
77
|
display: block;
|
|
78
78
|
white-space: normal;
|
|
79
79
|
${(t) => {
|
|
80
|
-
var e,
|
|
80
|
+
var e, a;
|
|
81
81
|
return ((e = t.theme.colors) == null ? void 0 : e.primary) && ye({
|
|
82
|
-
primaryColor: (
|
|
82
|
+
primaryColor: (a = t.theme.colors) == null ? void 0 : a.primary,
|
|
83
83
|
secondaryColor: "#FFFFFF",
|
|
84
84
|
theme: t.theme
|
|
85
85
|
});
|
|
@@ -96,11 +96,11 @@ const nt = ({
|
|
|
96
96
|
var l = u, {
|
|
97
97
|
trigger: t,
|
|
98
98
|
header: e,
|
|
99
|
-
className:
|
|
99
|
+
className: a,
|
|
100
100
|
animation: o,
|
|
101
|
-
fullScreen:
|
|
101
|
+
fullScreen: s,
|
|
102
102
|
onToggle: i,
|
|
103
|
-
children:
|
|
103
|
+
children: r,
|
|
104
104
|
ref: c,
|
|
105
105
|
closeButtonAriaLabel: m
|
|
106
106
|
} = l, f = w(l, [
|
|
@@ -114,17 +114,17 @@ const nt = ({
|
|
|
114
114
|
"ref",
|
|
115
115
|
"closeButtonAriaLabel"
|
|
116
116
|
]);
|
|
117
|
-
return /* @__PURE__ */
|
|
118
|
-
className: z(
|
|
117
|
+
return /* @__PURE__ */ n.createElement(_e, {
|
|
118
|
+
className: z(a, "humany-drawer-list"),
|
|
119
119
|
trigger: t,
|
|
120
120
|
header: e,
|
|
121
121
|
animation: o,
|
|
122
|
-
fullScreen:
|
|
122
|
+
fullScreen: s,
|
|
123
123
|
onToggle: i,
|
|
124
124
|
closeButtonAriaLabel: m
|
|
125
|
-
}, /* @__PURE__ */
|
|
126
|
-
},
|
|
127
|
-
${
|
|
125
|
+
}, /* @__PURE__ */ n.createElement(rt, y({}, f), r));
|
|
126
|
+
}, aa = ot, rt = d(O)`
|
|
127
|
+
${Y}
|
|
128
128
|
font-family: ${(t) => {
|
|
129
129
|
var e;
|
|
130
130
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -141,13 +141,13 @@ const nt = ({
|
|
|
141
141
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
142
142
|
}};
|
|
143
143
|
}
|
|
144
|
-
`,
|
|
144
|
+
`, st = ({ items: t, renderItem: e, trigger: a, header: o, children: s }) => /* @__PURE__ */ n.createElement($e, {
|
|
145
145
|
className: "humany-dropdown-actions",
|
|
146
|
-
trigger:
|
|
147
|
-
}, /* @__PURE__ */
|
|
146
|
+
trigger: a
|
|
147
|
+
}, /* @__PURE__ */ n.createElement(it, null, !!o && /* @__PURE__ */ n.createElement(lt, null, o), t && e && /* @__PURE__ */ n.createElement(ct, {
|
|
148
148
|
items: t,
|
|
149
149
|
renderItem: e
|
|
150
|
-
}),
|
|
150
|
+
}), s)), na = st, it = d.div`
|
|
151
151
|
background: #fff;
|
|
152
152
|
border: #ccc 1px solid;
|
|
153
153
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
@@ -192,7 +192,7 @@ const nt = ({
|
|
|
192
192
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
193
193
|
}};
|
|
194
194
|
}
|
|
195
|
-
`, ct = d(
|
|
195
|
+
`, ct = d(Z)`
|
|
196
196
|
list-style: none;
|
|
197
197
|
padding: 0;
|
|
198
198
|
margin: 0;
|
|
@@ -211,8 +211,8 @@ const nt = ({
|
|
|
211
211
|
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
212
212
|
}};
|
|
213
213
|
padding: ${(t) => {
|
|
214
|
-
var e,
|
|
215
|
-
return `${(e = t.theme.sizes) == null ? void 0 : e.small} ${(
|
|
214
|
+
var e, a;
|
|
215
|
+
return `${(e = t.theme.sizes) == null ? void 0 : e.small} ${(a = t.theme.sizes) == null ? void 0 : a.normal}`;
|
|
216
216
|
}};
|
|
217
217
|
cursor: pointer;
|
|
218
218
|
color: #555;
|
|
@@ -228,24 +228,24 @@ const nt = ({
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
`, mt = (i) => {
|
|
231
|
-
var
|
|
231
|
+
var r = i, {
|
|
232
232
|
trigger: t,
|
|
233
233
|
className: e,
|
|
234
|
-
children:
|
|
234
|
+
children: a,
|
|
235
235
|
closeButtonAriaLabel: o
|
|
236
|
-
} =
|
|
236
|
+
} = r, s = w(r, [
|
|
237
237
|
"trigger",
|
|
238
238
|
"className",
|
|
239
239
|
"children",
|
|
240
240
|
"closeButtonAriaLabel"
|
|
241
241
|
]);
|
|
242
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ n.createElement($e, {
|
|
243
243
|
className: z(e, "humany-dropdown-list"),
|
|
244
244
|
closeButtonAriaLabel: o,
|
|
245
245
|
trigger: t
|
|
246
|
-
}, /* @__PURE__ */
|
|
247
|
-
},
|
|
248
|
-
${
|
|
246
|
+
}, /* @__PURE__ */ n.createElement(dt, y({}, s), a));
|
|
247
|
+
}, oa = mt, dt = d(O)`
|
|
248
|
+
${Y}
|
|
249
249
|
font-family: ${(t) => {
|
|
250
250
|
var e;
|
|
251
251
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -253,7 +253,7 @@ const nt = ({
|
|
|
253
253
|
> div {
|
|
254
254
|
${(t) => {
|
|
255
255
|
var e;
|
|
256
|
-
return
|
|
256
|
+
return ee(t)(
|
|
257
257
|
"> h1",
|
|
258
258
|
$`
|
|
259
259
|
font-size: ${(e = t.theme.fonts) == null ? void 0 : e.normal};
|
|
@@ -290,7 +290,7 @@ const nt = ({
|
|
|
290
290
|
.humany-loader {
|
|
291
291
|
opacity: ${t["data-loading"] ? "1" : "0"};
|
|
292
292
|
}
|
|
293
|
-
`,
|
|
293
|
+
`, ra = d(H)`
|
|
294
294
|
&& {
|
|
295
295
|
font-size: ${(t) => {
|
|
296
296
|
var e;
|
|
@@ -298,7 +298,7 @@ const nt = ({
|
|
|
298
298
|
}};
|
|
299
299
|
}
|
|
300
300
|
width: 1.2em;
|
|
301
|
-
`,
|
|
301
|
+
`, sa = d(ve)`
|
|
302
302
|
font-size: ${(t) => {
|
|
303
303
|
var e;
|
|
304
304
|
return (e = t.theme.fonts) == null ? void 0 : e.medium;
|
|
@@ -309,7 +309,7 @@ const nt = ({
|
|
|
309
309
|
var e;
|
|
310
310
|
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
311
311
|
}};
|
|
312
|
-
`, ft = d(
|
|
312
|
+
`, ft = d(te)`
|
|
313
313
|
display: flex;
|
|
314
314
|
align-items: center;
|
|
315
315
|
|
|
@@ -323,11 +323,11 @@ const nt = ({
|
|
|
323
323
|
}}
|
|
324
324
|
|
|
325
325
|
&:focus-visible {
|
|
326
|
-
${(t) => t["data-has-label"] === "true" &&
|
|
326
|
+
${(t) => t["data-has-label"] === "true" && ie}
|
|
327
327
|
|
|
328
328
|
svg, i {
|
|
329
329
|
${(t) => t["data-has-label"] === "false" && t["data-has-symbol"] === "true" && $`
|
|
330
|
-
${
|
|
330
|
+
${ie(t)}
|
|
331
331
|
box-sizing: content-box;
|
|
332
332
|
`}
|
|
333
333
|
}
|
|
@@ -340,39 +340,39 @@ const nt = ({
|
|
|
340
340
|
`, ht = ({
|
|
341
341
|
addFavoriteTooltip: t,
|
|
342
342
|
removeFavoriteCancelLabel: e,
|
|
343
|
-
removeFavoriteConfirmLabel:
|
|
343
|
+
removeFavoriteConfirmLabel: a,
|
|
344
344
|
removeFavoriteHeader: o,
|
|
345
|
-
removeFavoriteLabel:
|
|
345
|
+
removeFavoriteLabel: s,
|
|
346
346
|
removeFavoriteTooltip: i,
|
|
347
|
-
id:
|
|
347
|
+
id: r,
|
|
348
348
|
isFavorite: c,
|
|
349
349
|
guideTitle: m,
|
|
350
350
|
buttonLabel: f = "",
|
|
351
351
|
actions: { addFavorite: u, removeFavorite: l }
|
|
352
352
|
}) => {
|
|
353
353
|
const h = k(() => {
|
|
354
|
-
l(
|
|
355
|
-
}, [
|
|
356
|
-
u(
|
|
357
|
-
}, [
|
|
358
|
-
return /* @__PURE__ */
|
|
359
|
-
trigger: /* @__PURE__ */
|
|
354
|
+
l(r);
|
|
355
|
+
}, [r, l]), S = k(() => {
|
|
356
|
+
u(r);
|
|
357
|
+
}, [r, u]), g = `${c ? i : t}${m ? `: "${m}"` : ""}`;
|
|
358
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, c ? /* @__PURE__ */ n.createElement(Ke, {
|
|
359
|
+
trigger: /* @__PURE__ */ n.createElement(me, {
|
|
360
360
|
className: "humany-favorite-button",
|
|
361
361
|
title: g,
|
|
362
362
|
"aria-label": g,
|
|
363
363
|
"data-favorite": "true",
|
|
364
364
|
"data-has-label": f ? "true" : "false",
|
|
365
365
|
"data-has-symbol": "true"
|
|
366
|
-
}, /* @__PURE__ */
|
|
366
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
367
367
|
size: 16,
|
|
368
368
|
symbol: { type: "Svg", content: "star-empty" }
|
|
369
|
-
}), f && /* @__PURE__ */
|
|
369
|
+
}), f && /* @__PURE__ */ n.createElement(J, null, f)),
|
|
370
370
|
onConfirm: h,
|
|
371
371
|
cancelLabel: e,
|
|
372
|
-
confirmLabel:
|
|
372
|
+
confirmLabel: a,
|
|
373
373
|
header: o,
|
|
374
|
-
text:
|
|
375
|
-
}) : /* @__PURE__ */
|
|
374
|
+
text: s
|
|
375
|
+
}) : /* @__PURE__ */ n.createElement(me, {
|
|
376
376
|
className: "humany-favorite-button",
|
|
377
377
|
title: g,
|
|
378
378
|
"aria-label": g,
|
|
@@ -380,17 +380,17 @@ const nt = ({
|
|
|
380
380
|
"data-favorite": "false",
|
|
381
381
|
"data-has-label": f ? "true" : "false",
|
|
382
382
|
"data-has-symbol": "true"
|
|
383
|
-
}, /* @__PURE__ */
|
|
383
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
384
384
|
size: 16,
|
|
385
385
|
symbol: { type: "Svg", content: "star-empty" }
|
|
386
|
-
}), f && /* @__PURE__ */
|
|
387
|
-
}, gt = ht,
|
|
386
|
+
}), f && /* @__PURE__ */ n.createElement(J, null, f)));
|
|
387
|
+
}, gt = ht, me = d(ft)`
|
|
388
388
|
grid-area: favorite;
|
|
389
389
|
|
|
390
390
|
&:focus-visible {
|
|
391
391
|
svg {
|
|
392
392
|
${(t) => {
|
|
393
|
-
var e,
|
|
393
|
+
var e, a;
|
|
394
394
|
return t["data-favorite"] === "true" ? `
|
|
395
395
|
fill: transparent;
|
|
396
396
|
|
|
@@ -401,7 +401,7 @@ const nt = ({
|
|
|
401
401
|
fill: ${(e = t.theme.colors) == null ? void 0 : e.text};
|
|
402
402
|
|
|
403
403
|
path {
|
|
404
|
-
fill: ${(
|
|
404
|
+
fill: ${(a = t.theme.colors) == null ? void 0 : a.text};
|
|
405
405
|
}
|
|
406
406
|
`;
|
|
407
407
|
}}
|
|
@@ -409,17 +409,17 @@ const nt = ({
|
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
${(t) => {
|
|
412
|
-
var e,
|
|
412
|
+
var e, a, o, s, i, r, c;
|
|
413
413
|
return ((e = t.theme.colors) == null ? void 0 : e.text) && $`
|
|
414
414
|
svg {
|
|
415
|
-
stroke: ${(
|
|
415
|
+
stroke: ${(a = t.theme.colors) == null ? void 0 : a.text};
|
|
416
416
|
|
|
417
417
|
path {
|
|
418
418
|
stroke: ${(o = t.theme.colors) == null ? void 0 : o.text};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
${t["data-favorite"] === "true" && `
|
|
422
|
-
fill: ${(
|
|
422
|
+
fill: ${(s = t.theme.colors) == null ? void 0 : s.text};
|
|
423
423
|
|
|
424
424
|
path {
|
|
425
425
|
fill: ${(i = t.theme.colors) == null ? void 0 : i.text};
|
|
@@ -436,7 +436,7 @@ const nt = ({
|
|
|
436
436
|
fill: transparent;
|
|
437
437
|
}
|
|
438
438
|
` : `
|
|
439
|
-
fill: ${(
|
|
439
|
+
fill: ${(r = t.theme.colors) == null ? void 0 : r.text};
|
|
440
440
|
|
|
441
441
|
path {
|
|
442
442
|
fill: ${(c = t.theme.colors) == null ? void 0 : c.text};
|
|
@@ -446,17 +446,17 @@ const nt = ({
|
|
|
446
446
|
}
|
|
447
447
|
`;
|
|
448
448
|
}}
|
|
449
|
-
`,
|
|
449
|
+
`, ia = _(
|
|
450
450
|
(f, m) => {
|
|
451
451
|
var u = f, {
|
|
452
452
|
onFeedback: t = () => {
|
|
453
453
|
},
|
|
454
454
|
direction: e = "horizontal",
|
|
455
|
-
className:
|
|
455
|
+
className: a,
|
|
456
456
|
header: o,
|
|
457
|
-
positive:
|
|
457
|
+
positive: s,
|
|
458
458
|
negative: i,
|
|
459
|
-
selected:
|
|
459
|
+
selected: r
|
|
460
460
|
} = u, c = w(u, [
|
|
461
461
|
"onFeedback",
|
|
462
462
|
"direction",
|
|
@@ -466,32 +466,32 @@ const nt = ({
|
|
|
466
466
|
"negative",
|
|
467
467
|
"selected"
|
|
468
468
|
]);
|
|
469
|
-
return /* @__PURE__ */
|
|
470
|
-
className: z(
|
|
469
|
+
return /* @__PURE__ */ n.createElement(yt, E(y({
|
|
470
|
+
className: z(a, "humany-feedback"),
|
|
471
471
|
"data-direction": e
|
|
472
472
|
}, xe(c)), {
|
|
473
473
|
ref: m
|
|
474
|
-
}), !!o && /* @__PURE__ */
|
|
474
|
+
}), !!o && /* @__PURE__ */ n.createElement(pt, null, o), /* @__PURE__ */ n.createElement(de, {
|
|
475
475
|
className: "humany-feedback-button",
|
|
476
|
-
disabled: !!
|
|
477
|
-
"aria-pressed":
|
|
478
|
-
"data-selected":
|
|
476
|
+
disabled: !!r,
|
|
477
|
+
"aria-pressed": r === "positive",
|
|
478
|
+
"data-selected": r === "positive",
|
|
479
479
|
"data-direction": e,
|
|
480
480
|
onClick: () => t("positive")
|
|
481
|
-
}, /* @__PURE__ */
|
|
481
|
+
}, /* @__PURE__ */ n.createElement(H, {
|
|
482
482
|
faIcon: "smile-o"
|
|
483
|
-
}), /* @__PURE__ */
|
|
483
|
+
}), /* @__PURE__ */ n.createElement("span", null, s)), /* @__PURE__ */ n.createElement(de, {
|
|
484
484
|
className: "humany-feedback-button",
|
|
485
|
-
disabled: !!
|
|
486
|
-
"aria-pressed":
|
|
487
|
-
"data-selected":
|
|
485
|
+
disabled: !!r,
|
|
486
|
+
"aria-pressed": r === "negative",
|
|
487
|
+
"data-selected": r === "negative",
|
|
488
488
|
"data-direction": e,
|
|
489
489
|
onClick: () => t("negative")
|
|
490
|
-
}, /* @__PURE__ */
|
|
490
|
+
}, /* @__PURE__ */ n.createElement(H, {
|
|
491
491
|
faIcon: "frown-o"
|
|
492
|
-
}), /* @__PURE__ */
|
|
492
|
+
}), /* @__PURE__ */ n.createElement("span", null, i)));
|
|
493
493
|
}
|
|
494
|
-
), pt = d(
|
|
494
|
+
), pt = d(J)`
|
|
495
495
|
font-weight: normal;
|
|
496
496
|
margin: 0 0 ${(t) => {
|
|
497
497
|
var e;
|
|
@@ -502,7 +502,7 @@ const nt = ({
|
|
|
502
502
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
503
503
|
}};
|
|
504
504
|
display: block;
|
|
505
|
-
`,
|
|
505
|
+
`, de = d(te)`
|
|
506
506
|
display: inline-block;
|
|
507
507
|
font-size: ${(t) => {
|
|
508
508
|
var e;
|
|
@@ -517,10 +517,10 @@ const nt = ({
|
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
${(t) => {
|
|
520
|
-
var e,
|
|
520
|
+
var e, a;
|
|
521
521
|
return t["data-direction"] === "horizontal" && $`
|
|
522
522
|
width: 225px;
|
|
523
|
-
max-width: calc(50% - ${(e = t.theme.sizes) == null ? void 0 : e.large} - ${(
|
|
523
|
+
max-width: calc(50% - ${(e = t.theme.sizes) == null ? void 0 : e.large} - ${(a = t.theme.sizes) == null ? void 0 : a.small});
|
|
524
524
|
`;
|
|
525
525
|
}}
|
|
526
526
|
|
|
@@ -529,10 +529,10 @@ const nt = ({
|
|
|
529
529
|
`}
|
|
530
530
|
|
|
531
531
|
${(t) => {
|
|
532
|
-
var e,
|
|
532
|
+
var e, a;
|
|
533
533
|
return ((e = t.theme.colors) == null ? void 0 : e.primary) && ye({
|
|
534
534
|
active: t["data-selected"],
|
|
535
|
-
primaryColor: (
|
|
535
|
+
primaryColor: (a = t.theme.colors) == null ? void 0 : a.primary,
|
|
536
536
|
secondaryColor: "#FFFFFF",
|
|
537
537
|
theme: t.theme
|
|
538
538
|
});
|
|
@@ -557,143 +557,143 @@ const nt = ({
|
|
|
557
557
|
`;
|
|
558
558
|
}}
|
|
559
559
|
`, $t = () => {
|
|
560
|
-
const [t, e] = T(null),
|
|
561
|
-
return
|
|
562
|
-
e(
|
|
563
|
-
}, [
|
|
564
|
-
},
|
|
565
|
-
const [
|
|
560
|
+
const [t, e] = T(null), a = W("ArrowLeft"), o = W("ArrowRight"), s = W("ArrowUp"), i = W("ArrowDown");
|
|
561
|
+
return K(() => {
|
|
562
|
+
e(a ? "left" : o ? "right" : s ? "up" : i ? "down" : null);
|
|
563
|
+
}, [a, o, s, i]), t;
|
|
564
|
+
}, la = $t, vt = (t, e) => {
|
|
565
|
+
const [a, o] = T(t), s = k(() => setTimeout(() => {
|
|
566
566
|
o(t);
|
|
567
567
|
}, e), [e, o, t]);
|
|
568
|
-
return
|
|
568
|
+
return K(
|
|
569
569
|
() => {
|
|
570
|
-
const i =
|
|
570
|
+
const i = s();
|
|
571
571
|
return () => {
|
|
572
572
|
clearTimeout(i);
|
|
573
573
|
};
|
|
574
574
|
},
|
|
575
|
-
[
|
|
576
|
-
),
|
|
577
|
-
},
|
|
578
|
-
const t = Ve(), [e,
|
|
579
|
-
|
|
575
|
+
[s]
|
|
576
|
+
), a;
|
|
577
|
+
}, ca = vt, xt = () => {
|
|
578
|
+
const t = Ve(), [e, a] = T([]), o = t.get("favorites");
|
|
579
|
+
K(() => {
|
|
580
580
|
if (o) {
|
|
581
|
-
|
|
581
|
+
a(o.get());
|
|
582
582
|
const { events: m } = t.get("$widget");
|
|
583
583
|
return m.subscribe("widget:favorites-updated", (u, { updated: l }) => {
|
|
584
|
-
|
|
584
|
+
a([...l]);
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
}, []);
|
|
588
|
-
const
|
|
589
|
-
(m) => e.indexOf(m) > -1 ? i(m) :
|
|
588
|
+
const s = (m) => o ? o.add(m) : Promise.resolve([]), i = (m) => o ? o.remove(m) : Promise.resolve([]), r = () => o ? o.clear() : Promise.resolve([]), c = k(
|
|
589
|
+
(m) => e.indexOf(m) > -1 ? i(m) : s(m),
|
|
590
590
|
[e]
|
|
591
591
|
);
|
|
592
592
|
return [
|
|
593
593
|
e,
|
|
594
594
|
Ze(
|
|
595
595
|
() => ({
|
|
596
|
-
addFavorite:
|
|
596
|
+
addFavorite: s,
|
|
597
597
|
removeFavorite: i,
|
|
598
|
-
clearFavorites:
|
|
598
|
+
clearFavorites: r,
|
|
599
599
|
toggleFavorite: c
|
|
600
600
|
}),
|
|
601
601
|
[e]
|
|
602
602
|
)
|
|
603
603
|
];
|
|
604
|
-
}, bt = xt,
|
|
605
|
-
const [t, e] = T(!1),
|
|
606
|
-
return
|
|
604
|
+
}, bt = xt, ma = () => {
|
|
605
|
+
const [t, e] = T(!1), a = Ee(), o = k(() => e(!0), [e]), s = k(() => e(!1), [e]);
|
|
606
|
+
return le("mouseenter", o, a.current), le("mouseleave", s, a.current), [t, a];
|
|
607
607
|
}, wt = ({
|
|
608
608
|
format: t = be.YYYY_MM_DD_HH_MM,
|
|
609
609
|
className: e = "",
|
|
610
|
-
byLabel:
|
|
610
|
+
byLabel: a = "",
|
|
611
611
|
modifiedLabel: o = "",
|
|
612
|
-
publishedLabel:
|
|
612
|
+
publishedLabel: s = "",
|
|
613
613
|
modifiedBy: i = "",
|
|
614
|
-
publishedBy:
|
|
614
|
+
publishedBy: r = "",
|
|
615
615
|
showModified: c = !1,
|
|
616
616
|
showPublished: m = !1,
|
|
617
617
|
modified: f,
|
|
618
618
|
published: u
|
|
619
619
|
}) => {
|
|
620
|
-
const l = m && u ? /* @__PURE__ */
|
|
620
|
+
const l = m && u ? /* @__PURE__ */ n.createElement(ue, {
|
|
621
621
|
format: t,
|
|
622
622
|
timestamp: u
|
|
623
|
-
}) : null, h = c && f ? /* @__PURE__ */
|
|
623
|
+
}) : null, h = c && f ? /* @__PURE__ */ n.createElement(ue, {
|
|
624
624
|
format: t,
|
|
625
625
|
timestamp: f
|
|
626
626
|
}) : null;
|
|
627
|
-
return !l && !h ? null : /* @__PURE__ */
|
|
627
|
+
return !l && !h ? null : /* @__PURE__ */ n.createElement(U, {
|
|
628
628
|
className: z(e, "humany-metadata")
|
|
629
|
-
}, l && /* @__PURE__ */
|
|
629
|
+
}, l && /* @__PURE__ */ n.createElement(U, {
|
|
630
630
|
className: "humany-published"
|
|
631
|
-
},
|
|
631
|
+
}, s, l, a && r && ` ${a.replace("{{editor}}", r)}`), h && /* @__PURE__ */ n.createElement(U, {
|
|
632
632
|
className: "humany-modified"
|
|
633
|
-
}, l && ", ", o, h,
|
|
634
|
-
}, Et = wt,
|
|
633
|
+
}, l && ", ", o, h, a && i && ` ${a.replace("{{editor}}", i)}`));
|
|
634
|
+
}, Et = wt, ue = d(we)`
|
|
635
635
|
&:not(:first-child) {
|
|
636
636
|
margin-left: 4px;
|
|
637
637
|
}
|
|
638
638
|
&:not(:last-child) {
|
|
639
639
|
margin-right: 4px;
|
|
640
640
|
}
|
|
641
|
-
`,
|
|
641
|
+
`, U = d(ve)`
|
|
642
642
|
font-style: italic;
|
|
643
|
-
`, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */
|
|
643
|
+
`, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(Nt, {
|
|
644
644
|
className: "humany-guide-list-tags",
|
|
645
645
|
items: t,
|
|
646
|
-
renderItem: ({ id: e, symbol:
|
|
646
|
+
renderItem: ({ id: e, symbol: a, title: o }) => a && /* @__PURE__ */ n.createElement("li", {
|
|
647
647
|
key: e,
|
|
648
648
|
"data-tag": e
|
|
649
|
-
}, /* @__PURE__ */
|
|
649
|
+
}, /* @__PURE__ */ n.createElement(Lt, {
|
|
650
650
|
size: 18,
|
|
651
|
-
symbol:
|
|
651
|
+
symbol: a,
|
|
652
652
|
title: o
|
|
653
653
|
}))
|
|
654
|
-
}) : null,
|
|
654
|
+
}) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
|
|
655
655
|
const { params: c } = ge();
|
|
656
|
-
return /* @__PURE__ */
|
|
657
|
-
ref:
|
|
656
|
+
return /* @__PURE__ */ n.createElement(zt, {
|
|
657
|
+
ref: r,
|
|
658
658
|
"data-guide": e
|
|
659
|
-
}, /* @__PURE__ */
|
|
659
|
+
}, /* @__PURE__ */ n.createElement(Q, {
|
|
660
660
|
title: t,
|
|
661
661
|
"aria-label": t,
|
|
662
|
-
routeName:
|
|
662
|
+
routeName: a,
|
|
663
663
|
params: j(E(y({}, c), {
|
|
664
|
-
uriName:
|
|
664
|
+
uriName: s || void 0,
|
|
665
665
|
id: void 0,
|
|
666
666
|
guide: void 0,
|
|
667
667
|
accordion: void 0
|
|
668
668
|
})),
|
|
669
669
|
text: t
|
|
670
|
-
}, /* @__PURE__ */
|
|
670
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
671
671
|
size: o,
|
|
672
672
|
symbol: { type: "Svg", content: "caret-up" }
|
|
673
673
|
})), i);
|
|
674
674
|
}), zt = d.li`
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
675
|
+
> a {
|
|
676
|
+
grid-column: 1/-1;
|
|
677
|
+
font-weight: bold;
|
|
678
|
+
margin: 0 0 ${(t) => {
|
|
679
679
|
var e;
|
|
680
680
|
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
681
681
|
}} 0;
|
|
682
|
-
|
|
682
|
+
}
|
|
683
683
|
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
`,
|
|
684
|
+
> div {
|
|
685
|
+
grid-column: 1/-1;
|
|
686
|
+
}
|
|
687
|
+
`, ua = _(
|
|
688
688
|
(Gt, Fe) => {
|
|
689
689
|
var ae = Gt, {
|
|
690
690
|
expandable: t = !1,
|
|
691
691
|
routing: e = {},
|
|
692
|
-
paramMappers:
|
|
692
|
+
paramMappers: a = {},
|
|
693
693
|
symbolSize: o = 11,
|
|
694
|
-
pageRole:
|
|
694
|
+
pageRole: s = "link",
|
|
695
695
|
pageCaret: i = "down",
|
|
696
|
-
showTags:
|
|
696
|
+
showTags: r = !1,
|
|
697
697
|
showFavoriteToggle: c = !1,
|
|
698
698
|
localPaging: m = !1,
|
|
699
699
|
onItemClick: f = () => {
|
|
@@ -737,18 +737,18 @@ const nt = ({
|
|
|
737
737
|
"removeFavoriteLabel",
|
|
738
738
|
"removeFavoriteTooltip"
|
|
739
739
|
]);
|
|
740
|
-
const
|
|
740
|
+
const V = qe(), F = Ee(), I = Ge(x), { guide: Ie = "guide", page: Ae = "index" } = e, {
|
|
741
741
|
guide: Te = ({ id: p }) => j({ guide: p }),
|
|
742
|
-
page:
|
|
743
|
-
} =
|
|
742
|
+
page: ne = () => j()
|
|
743
|
+
} = a, [Ce, Me] = bt();
|
|
744
744
|
et(Fe, () => F.current);
|
|
745
|
-
const
|
|
746
|
-
const { id: b, title: v, tags: D, published: P, modified: A, publishedBy: B, modifiedBy:
|
|
747
|
-
return /* @__PURE__ */
|
|
745
|
+
const q = (p) => {
|
|
746
|
+
const { id: b, title: v, tags: D, published: P, modified: A, publishedBy: B, modifiedBy: G } = p;
|
|
747
|
+
return /* @__PURE__ */ n.createElement("li", {
|
|
748
748
|
key: b,
|
|
749
749
|
"data-guide": b,
|
|
750
750
|
"has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!A).toString()
|
|
751
|
-
}, /* @__PURE__ */
|
|
751
|
+
}, /* @__PURE__ */ n.createElement(Q, {
|
|
752
752
|
className: "humany-guide-link",
|
|
753
753
|
title: v,
|
|
754
754
|
"aria-label": v,
|
|
@@ -756,13 +756,13 @@ const nt = ({
|
|
|
756
756
|
onClick: (We) => f(We, p),
|
|
757
757
|
params: Te(p),
|
|
758
758
|
text: v
|
|
759
|
-
}, /* @__PURE__ */
|
|
759
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
760
760
|
size: o,
|
|
761
761
|
symbol: {
|
|
762
762
|
type: "Svg",
|
|
763
763
|
content: t ? "caret-down" : "caret-right"
|
|
764
764
|
}
|
|
765
|
-
})), c && /* @__PURE__ */
|
|
765
|
+
})), c && /* @__PURE__ */ n.createElement(gt, {
|
|
766
766
|
guideTitle: v,
|
|
767
767
|
addFavoriteTooltip: C,
|
|
768
768
|
removeFavoriteCancelLabel: M,
|
|
@@ -773,26 +773,26 @@ const nt = ({
|
|
|
773
773
|
isFavorite: Ce.indexOf(b) > -1,
|
|
774
774
|
actions: Me,
|
|
775
775
|
id: b
|
|
776
|
-
}),
|
|
776
|
+
}), r && /* @__PURE__ */ n.createElement(kt, {
|
|
777
777
|
tags: D
|
|
778
|
-
}), /* @__PURE__ */
|
|
778
|
+
}), /* @__PURE__ */ n.createElement(Dt, E(y({}, l), {
|
|
779
779
|
indent: t ? void 0 : o,
|
|
780
780
|
modified: A,
|
|
781
781
|
published: P,
|
|
782
782
|
publishedBy: B,
|
|
783
|
-
modifiedBy:
|
|
783
|
+
modifiedBy: G
|
|
784
784
|
})));
|
|
785
785
|
}, Pe = k(
|
|
786
|
-
(p, b, v) => L ? L(p, b, v,
|
|
787
|
-
[L,
|
|
786
|
+
(p, b, v) => L ? L(p, b, v, q) : q(p),
|
|
787
|
+
[L, q]
|
|
788
788
|
), Be = k(
|
|
789
789
|
(p) => {
|
|
790
|
-
m && (p.preventDefault(), u("page",
|
|
790
|
+
m && (p.preventDefault(), u("page", ne()));
|
|
791
791
|
},
|
|
792
792
|
[u, m]
|
|
793
793
|
);
|
|
794
|
-
|
|
795
|
-
if (
|
|
794
|
+
K(() => {
|
|
795
|
+
if (V && I && I.length < x.length && F.current) {
|
|
796
796
|
const p = F.current.querySelectorAll(".humany-guide-list > ul > li"), b = p[I.length];
|
|
797
797
|
if (p.length === x.length && I.length) {
|
|
798
798
|
const v = p[I.length];
|
|
@@ -808,8 +808,8 @@ const nt = ({
|
|
|
808
808
|
if (A.addedNodes) {
|
|
809
809
|
const B = Array.from(
|
|
810
810
|
A.addedNodes
|
|
811
|
-
).find((
|
|
812
|
-
B && tt(F.current, document.activeElement) && (
|
|
811
|
+
).find((G) => G.tagName === "A");
|
|
812
|
+
B && tt(F.current, document.activeElement) && (V && B.focus(), P.disconnect());
|
|
813
813
|
}
|
|
814
814
|
});
|
|
815
815
|
}).observe(b, {
|
|
@@ -825,31 +825,31 @@ const nt = ({
|
|
|
825
825
|
const Re = !!Object.keys(l).filter(
|
|
826
826
|
(p) => typeof l[p] != "undefined"
|
|
827
827
|
).length;
|
|
828
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ n.createElement(St, E(y({
|
|
829
829
|
className: z(S, "humany-guide-list"),
|
|
830
830
|
"data-item-count": x.length,
|
|
831
831
|
items: x,
|
|
832
832
|
renderItem: Pe,
|
|
833
|
-
isTabbing:
|
|
833
|
+
isTabbing: V,
|
|
834
834
|
expandable: t ? "true" : "false",
|
|
835
|
-
"grid-items":
|
|
835
|
+
"grid-items": r || c || Re ? "true" : "false"
|
|
836
836
|
}, xe(De)), {
|
|
837
837
|
ref: F
|
|
838
|
-
}), h ? /* @__PURE__ */
|
|
838
|
+
}), h ? /* @__PURE__ */ n.createElement(Q, {
|
|
839
839
|
text: h,
|
|
840
840
|
title: h,
|
|
841
841
|
"aria-label": h,
|
|
842
842
|
routeName: Ae,
|
|
843
|
-
role:
|
|
844
|
-
params:
|
|
843
|
+
role: s,
|
|
844
|
+
params: ne(),
|
|
845
845
|
onClick: Be
|
|
846
|
-
}, /* @__PURE__ */
|
|
846
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
847
847
|
size: o,
|
|
848
848
|
symbol: { type: "Svg", content: `caret-${i}` }
|
|
849
849
|
})) : null, g);
|
|
850
850
|
}
|
|
851
|
-
), St = d(
|
|
852
|
-
${
|
|
851
|
+
), St = d(O)`
|
|
852
|
+
${Y}
|
|
853
853
|
padding: ${(t) => {
|
|
854
854
|
var e;
|
|
855
855
|
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
@@ -861,7 +861,7 @@ const nt = ({
|
|
|
861
861
|
text-decoration: none;
|
|
862
862
|
|
|
863
863
|
> div {
|
|
864
|
-
${(t) =>
|
|
864
|
+
${(t) => ee(t)(
|
|
865
865
|
"> h1",
|
|
866
866
|
$`
|
|
867
867
|
white-space: pre-wrap;
|
|
@@ -871,7 +871,7 @@ const nt = ({
|
|
|
871
871
|
|
|
872
872
|
> ul > li {
|
|
873
873
|
${(t) => {
|
|
874
|
-
var e,
|
|
874
|
+
var e, a;
|
|
875
875
|
return t["grid-items"] === "true" && $`
|
|
876
876
|
display: grid;
|
|
877
877
|
grid-template-columns: auto 1fr 1fr;
|
|
@@ -891,7 +891,7 @@ const nt = ({
|
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
> span {
|
|
894
|
-
font-size: ${(
|
|
894
|
+
font-size: ${(a = t.theme.fonts) == null ? void 0 : a.small};
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
&:hover {
|
|
@@ -952,7 +952,7 @@ const nt = ({
|
|
|
952
952
|
}}
|
|
953
953
|
|
|
954
954
|
&:focus-visible {
|
|
955
|
-
${
|
|
955
|
+
${X}
|
|
956
956
|
text-decoration: underline;
|
|
957
957
|
}
|
|
958
958
|
|
|
@@ -995,11 +995,11 @@ const nt = ({
|
|
|
995
995
|
}
|
|
996
996
|
|
|
997
997
|
&:focus-visible {
|
|
998
|
-
${
|
|
998
|
+
${X}
|
|
999
999
|
text-decoration: underline;
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
|
-
`, Nt = d(
|
|
1002
|
+
`, Nt = d(Z)`
|
|
1003
1003
|
${pe}
|
|
1004
1004
|
display: flex;
|
|
1005
1005
|
margin: 0 0 0 auto;
|
|
@@ -1111,15 +1111,15 @@ const nt = ({
|
|
|
1111
1111
|
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
1112
1112
|
}};
|
|
1113
1113
|
stroke-width: 2px;
|
|
1114
|
-
`, Pt = ({ loading: t = !1 }) => /* @__PURE__ */
|
|
1114
|
+
`, Pt = ({ loading: t = !1 }) => /* @__PURE__ */ n.createElement(Tt, {
|
|
1115
1115
|
className: "humany-loader",
|
|
1116
1116
|
"data-loading": t
|
|
1117
|
-
}, /* @__PURE__ */
|
|
1117
|
+
}, /* @__PURE__ */ n.createElement(Ct, {
|
|
1118
1118
|
className: "humany-spinner"
|
|
1119
|
-
}, /* @__PURE__ */
|
|
1119
|
+
}, /* @__PURE__ */ n.createElement(At, {
|
|
1120
1120
|
className: "humany-spinner-svg",
|
|
1121
1121
|
viewBox: "25 25 50 50"
|
|
1122
|
-
}, /* @__PURE__ */
|
|
1122
|
+
}, /* @__PURE__ */ n.createElement(Mt, {
|
|
1123
1123
|
cx: "50",
|
|
1124
1124
|
cy: "50",
|
|
1125
1125
|
r: "20",
|
|
@@ -1127,12 +1127,12 @@ const nt = ({
|
|
|
1127
1127
|
"stroke-width": "2",
|
|
1128
1128
|
"stroke-miterlimit": "10"
|
|
1129
1129
|
})))), Bt = Pt, Rt = (i) => {
|
|
1130
|
-
var
|
|
1130
|
+
var r = i, {
|
|
1131
1131
|
className: t,
|
|
1132
1132
|
showHeader: e,
|
|
1133
|
-
notificationList:
|
|
1133
|
+
notificationList: a,
|
|
1134
1134
|
loading: o
|
|
1135
|
-
} =
|
|
1135
|
+
} = r, s = w(r, [
|
|
1136
1136
|
"className",
|
|
1137
1137
|
"showHeader",
|
|
1138
1138
|
"notificationList",
|
|
@@ -1144,8 +1144,8 @@ const nt = ({
|
|
|
1144
1144
|
symbol: l,
|
|
1145
1145
|
notifications: h = [],
|
|
1146
1146
|
defaultHeaderOptions: S = { visible: !0 }
|
|
1147
|
-
} =
|
|
1148
|
-
return !h.length && !o ? null : /* @__PURE__ */
|
|
1147
|
+
} = a || {};
|
|
1148
|
+
return !h.length && !o ? null : /* @__PURE__ */ n.createElement(Ht, E(y({}, s), {
|
|
1149
1149
|
"data-loading": o,
|
|
1150
1150
|
"data-show-header": typeof e == "boolean" ? e : S.visible,
|
|
1151
1151
|
className: z(t, "humany-notification-list"),
|
|
@@ -1153,33 +1153,33 @@ const nt = ({
|
|
|
1153
1153
|
header: u,
|
|
1154
1154
|
symbol: l,
|
|
1155
1155
|
items: h,
|
|
1156
|
-
renderItem: ({ id: g, title: x, body: L, modified: C, expandable: M }) => /* @__PURE__ */
|
|
1156
|
+
renderItem: ({ id: g, title: x, body: L, modified: C, expandable: M }) => /* @__PURE__ */ n.createElement(jt, {
|
|
1157
1157
|
key: g,
|
|
1158
1158
|
"data-notification": g,
|
|
1159
1159
|
"data-expanded": M ? c === g : !0
|
|
1160
|
-
}, M ? /* @__PURE__ */
|
|
1160
|
+
}, M ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(Wt, {
|
|
1161
1161
|
title: x,
|
|
1162
1162
|
"aria-label": x,
|
|
1163
1163
|
"aria-expanded": c === g,
|
|
1164
1164
|
onClick: () => m(c === g ? null : g)
|
|
1165
|
-
}, /* @__PURE__ */
|
|
1165
|
+
}, /* @__PURE__ */ n.createElement("span", null, x), /* @__PURE__ */ n.createElement(Ot, {
|
|
1166
1166
|
size: 11,
|
|
1167
1167
|
symbol: {
|
|
1168
1168
|
type: "Svg",
|
|
1169
1169
|
content: `caret-${c === g ? "up" : "down"}`
|
|
1170
1170
|
}
|
|
1171
|
-
})), /* @__PURE__ */
|
|
1171
|
+
})), /* @__PURE__ */ n.createElement(fe, {
|
|
1172
1172
|
html: L
|
|
1173
|
-
}), C && /* @__PURE__ */
|
|
1173
|
+
}), C && /* @__PURE__ */ n.createElement(Yt, {
|
|
1174
1174
|
format: be.YYYY_MM_DD,
|
|
1175
1175
|
timestamp: C
|
|
1176
|
-
})) : /* @__PURE__ */
|
|
1176
|
+
})) : /* @__PURE__ */ n.createElement(fe, {
|
|
1177
1177
|
html: L
|
|
1178
1178
|
}))
|
|
1179
|
-
}), /* @__PURE__ */
|
|
1179
|
+
}), /* @__PURE__ */ n.createElement(Bt, {
|
|
1180
1180
|
loading: o
|
|
1181
1181
|
}));
|
|
1182
|
-
}, Wt = d(
|
|
1182
|
+
}, Wt = d(te)`
|
|
1183
1183
|
display: flex;
|
|
1184
1184
|
justify-content: space-between;
|
|
1185
1185
|
align-items: center;
|
|
@@ -1207,7 +1207,7 @@ const nt = ({
|
|
|
1207
1207
|
white-space: nowrap;
|
|
1208
1208
|
}
|
|
1209
1209
|
&:focus-visible {
|
|
1210
|
-
${
|
|
1210
|
+
${X}
|
|
1211
1211
|
span {
|
|
1212
1212
|
color: ${(t) => {
|
|
1213
1213
|
var e;
|
|
@@ -1216,9 +1216,9 @@ const nt = ({
|
|
|
1216
1216
|
text-decoration: underline;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
`, Ht = d(
|
|
1219
|
+
`, Ht = d(O)`
|
|
1220
1220
|
${ut}
|
|
1221
|
-
${
|
|
1221
|
+
${Y}
|
|
1222
1222
|
overflow: hidden;
|
|
1223
1223
|
justify-content: flex-start;
|
|
1224
1224
|
padding: ${(t) => {
|
|
@@ -1227,7 +1227,7 @@ const nt = ({
|
|
|
1227
1227
|
}};
|
|
1228
1228
|
${(t) => !t["data-show-header"] && $`
|
|
1229
1229
|
> div {
|
|
1230
|
-
${
|
|
1230
|
+
${ee(t)(
|
|
1231
1231
|
"h1",
|
|
1232
1232
|
$`
|
|
1233
1233
|
display: none;
|
|
@@ -1241,7 +1241,7 @@ const nt = ({
|
|
|
1241
1241
|
text-decoration: underline;
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
`,
|
|
1244
|
+
`, fe = d(Ue)`
|
|
1245
1245
|
${Je}
|
|
1246
1246
|
font-weight: 300;
|
|
1247
1247
|
|
|
@@ -1249,12 +1249,12 @@ const nt = ({
|
|
|
1249
1249
|
white-space: normal;
|
|
1250
1250
|
}
|
|
1251
1251
|
`, jt = d.li`
|
|
1252
|
-
|
|
1252
|
+
.humany-paragraph {
|
|
1253
1253
|
display: none;
|
|
1254
1254
|
&:not(:only-child) {
|
|
1255
1255
|
${(t) => {
|
|
1256
|
-
var e,
|
|
1257
|
-
return ((e = t.theme.sizes) == null ? void 0 : e.cardinal) && ((
|
|
1256
|
+
var e, a, o;
|
|
1257
|
+
return ((e = t.theme.sizes) == null ? void 0 : e.cardinal) && ((a = t.theme.sizes) == null ? void 0 : a.normal) && $`
|
|
1258
1258
|
margin: ${(o = t.theme.sizes) == null ? void 0 : o.normal} 0;
|
|
1259
1259
|
`;
|
|
1260
1260
|
}}
|
|
@@ -1262,7 +1262,7 @@ const nt = ({
|
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
1264
|
${(t) => t["data-expanded"] && $`
|
|
1265
|
-
|
|
1265
|
+
.humany-paragraph {
|
|
1266
1266
|
display: block;
|
|
1267
1267
|
}
|
|
1268
1268
|
`}
|
|
@@ -1292,61 +1292,61 @@ const nt = ({
|
|
|
1292
1292
|
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
1293
1293
|
}};
|
|
1294
1294
|
font-weight: 300;
|
|
1295
|
-
`,
|
|
1296
|
-
var
|
|
1295
|
+
`, fa = Rt, _t = (t) => new RegExp("^#", "i").test(t), Kt = (t) => (o) => {
|
|
1296
|
+
var s = o, { children: e } = s, a = w(s, ["children"]);
|
|
1297
1297
|
const {
|
|
1298
1298
|
implementation: i,
|
|
1299
|
-
name:
|
|
1300
|
-
} = t.get("$widget"), { href: c = "" } =
|
|
1299
|
+
name: r
|
|
1300
|
+
} = t.get("$widget"), { href: c = "" } = a;
|
|
1301
1301
|
if (_t(c))
|
|
1302
|
-
return /* @__PURE__ */
|
|
1302
|
+
return /* @__PURE__ */ n.createElement(Qe, {
|
|
1303
1303
|
smooth: !0,
|
|
1304
1304
|
to: c
|
|
1305
1305
|
}, e);
|
|
1306
1306
|
const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${m})/([^\\s]+)`).exec(c);
|
|
1307
1307
|
if (u && u.length >= 4) {
|
|
1308
1308
|
const l = u[4];
|
|
1309
|
-
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(
|
|
1310
|
-
return /* @__PURE__ */
|
|
1309
|
+
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
1310
|
+
return /* @__PURE__ */ n.createElement(Xe, {
|
|
1311
1311
|
widgetName: l
|
|
1312
1312
|
}, e);
|
|
1313
1313
|
}
|
|
1314
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ n.createElement("a", y({}, a), e);
|
|
1315
1315
|
}, Vt = Kt, qt = (t, e = []) => ({
|
|
1316
1316
|
transform: {
|
|
1317
|
-
a: (
|
|
1318
|
-
const c =
|
|
1317
|
+
a: (a) => {
|
|
1318
|
+
const c = a, { children: o } = c, i = w(c, ["children"])["data-target"];
|
|
1319
1319
|
if (i && e.length) {
|
|
1320
1320
|
const m = e.find(({ connection: f }) => f === i);
|
|
1321
1321
|
if (m)
|
|
1322
|
-
return /* @__PURE__ */
|
|
1322
|
+
return /* @__PURE__ */ n.createElement(ke, y({}, m), o);
|
|
1323
1323
|
}
|
|
1324
|
-
return Vt(t)(
|
|
1324
|
+
return Vt(t)(a);
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
|
-
}),
|
|
1327
|
+
}), ha = qt;
|
|
1328
1328
|
export {
|
|
1329
|
-
|
|
1329
|
+
da as AccordionListItem,
|
|
1330
1330
|
ke as DialogLink,
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1331
|
+
ta as DialogList,
|
|
1332
|
+
aa as DrawerList,
|
|
1333
|
+
na as DropdownActions,
|
|
1334
|
+
oa as DropdownList,
|
|
1335
1335
|
gt as FavoriteButton,
|
|
1336
|
-
|
|
1337
|
-
|
|
1336
|
+
ia as Feedback,
|
|
1337
|
+
ua as GuideList,
|
|
1338
1338
|
Bt as Loader,
|
|
1339
1339
|
Tt as LoaderWrapper,
|
|
1340
1340
|
Et as Metadata,
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1341
|
+
fa as NotificationList,
|
|
1342
|
+
ra as SmallCaret,
|
|
1343
|
+
sa as StyledHeaderText,
|
|
1344
1344
|
ft as StyledListButton,
|
|
1345
|
-
|
|
1345
|
+
ha as guideRenderInstructions,
|
|
1346
1346
|
ut as loadingOpacity,
|
|
1347
|
-
|
|
1348
|
-
|
|
1347
|
+
la as useArrowKeys,
|
|
1348
|
+
ca as useDebounce,
|
|
1349
1349
|
bt as useFavorites,
|
|
1350
|
-
|
|
1350
|
+
ma as useHover
|
|
1351
1351
|
};
|
|
1352
1352
|
//# sourceMappingURL=index.js.map
|