@telia-ace/knowledge-widget-ui 1.3.33 → 1.3.34
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/index.js +32 -32
- package/index.mjs +335 -361
- package/package.json +4 -4
package/index.mjs
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRouteData as
|
|
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
|
|
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
|
|
7
|
-
import { css as y, keyframes as
|
|
8
|
-
const
|
|
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:
|
|
13
|
-
connection:
|
|
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 } =
|
|
20
|
+
const u = {}, { name: h, params: f } = ne();
|
|
21
21
|
switch (s) {
|
|
22
22
|
case "default":
|
|
23
23
|
case "guide":
|
|
24
|
-
const { id:
|
|
25
|
-
let
|
|
26
|
-
|
|
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 ===
|
|
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__ */
|
|
38
|
-
|
|
37
|
+
return /* @__PURE__ */ a(
|
|
38
|
+
He,
|
|
39
39
|
{
|
|
40
|
-
className:
|
|
40
|
+
className: k(e, "humany-dialog-link"),
|
|
41
41
|
...u,
|
|
42
|
-
children: l || /* @__PURE__ */ p(
|
|
43
|
-
s === "link" && /* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
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
|
-
},
|
|
49
|
-
({ className: t, dialog: e, ...n },
|
|
50
|
-
|
|
48
|
+
}, Mt = A(
|
|
49
|
+
({ className: t, dialog: e, ...n }, i) => e.length ? /* @__PURE__ */ a(
|
|
50
|
+
qe,
|
|
51
51
|
{
|
|
52
|
-
className:
|
|
52
|
+
className: k(t, "humany-dialog"),
|
|
53
53
|
items: e,
|
|
54
|
-
renderItem: (
|
|
54
|
+
renderItem: (o) => /* @__PURE__ */ a("li", { "data-dialog": o.connection, children: /* @__PURE__ */ a(fe, { ...o }) }, o.connection),
|
|
55
55
|
...n,
|
|
56
|
-
ref:
|
|
56
|
+
ref: i
|
|
57
57
|
}
|
|
58
58
|
) : null
|
|
59
|
-
),
|
|
60
|
-
${
|
|
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) &&
|
|
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
|
-
`,
|
|
82
|
+
`, Pt = ({
|
|
83
83
|
trigger: t,
|
|
84
84
|
header: e,
|
|
85
85
|
className: n,
|
|
86
|
-
animation:
|
|
87
|
-
fullScreen:
|
|
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__ */
|
|
94
|
-
|
|
93
|
+
}) => /* @__PURE__ */ a(
|
|
94
|
+
je,
|
|
95
95
|
{
|
|
96
|
-
className:
|
|
96
|
+
className: k(n, "humany-drawer-list"),
|
|
97
97
|
trigger: t,
|
|
98
98
|
header: e,
|
|
99
|
-
animation:
|
|
100
|
-
fullScreen:
|
|
99
|
+
animation: i,
|
|
100
|
+
fullScreen: o,
|
|
101
101
|
onToggle: s,
|
|
102
102
|
closeButtonAriaLabel: l,
|
|
103
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ a(Je, { ...d, children: r })
|
|
104
104
|
}
|
|
105
|
-
),
|
|
106
|
-
${
|
|
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
|
-
`,
|
|
123
|
+
`, Bt = ({
|
|
124
124
|
items: t,
|
|
125
125
|
renderItem: e,
|
|
126
126
|
trigger: n,
|
|
127
|
-
header:
|
|
128
|
-
children:
|
|
129
|
-
}) => /* @__PURE__ */
|
|
130
|
-
!!
|
|
131
|
-
t && e && /* @__PURE__ */
|
|
132
|
-
|
|
133
|
-
] }) }),
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
213
|
+
`, Ht = ({
|
|
214
214
|
trigger: t,
|
|
215
215
|
className: e,
|
|
216
216
|
children: n,
|
|
217
|
-
closeButtonAriaLabel:
|
|
218
|
-
...
|
|
219
|
-
}) => /* @__PURE__ */
|
|
220
|
-
|
|
217
|
+
closeButtonAriaLabel: i,
|
|
218
|
+
...o
|
|
219
|
+
}) => /* @__PURE__ */ a(
|
|
220
|
+
oe,
|
|
221
221
|
{
|
|
222
|
-
className:
|
|
223
|
-
closeButtonAriaLabel:
|
|
222
|
+
className: k(e, "humany-dropdown-list"),
|
|
223
|
+
closeButtonAriaLabel: i,
|
|
224
224
|
trigger: t,
|
|
225
|
-
children: /* @__PURE__ */
|
|
225
|
+
children: /* @__PURE__ */ a(et, { ...o, children: n })
|
|
226
226
|
}
|
|
227
|
-
),
|
|
228
|
-
${
|
|
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
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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" &&
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
320
|
+
`, it = ({
|
|
321
321
|
addFavoriteTooltip: t,
|
|
322
322
|
removeFavoriteCancelLabel: e,
|
|
323
323
|
removeFavoriteConfirmLabel: n,
|
|
324
|
-
removeFavoriteHeader:
|
|
325
|
-
removeFavoriteLabel:
|
|
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 =
|
|
333
|
+
const f = w(() => {
|
|
334
334
|
h(r);
|
|
335
|
-
}, [r, h]),
|
|
335
|
+
}, [r, h]), v = w(() => {
|
|
336
336
|
u(r);
|
|
337
|
-
}, [r, u]),
|
|
338
|
-
return m ? /* @__PURE__ */
|
|
339
|
-
|
|
337
|
+
}, [r, u]), $ = `${m ? s : t}${l ? `: "${l}"` : ""}`;
|
|
338
|
+
return m ? /* @__PURE__ */ a(
|
|
339
|
+
Re,
|
|
340
340
|
{
|
|
341
341
|
trigger: /* @__PURE__ */ p(
|
|
342
|
-
|
|
342
|
+
Q,
|
|
343
343
|
{
|
|
344
344
|
className: "humany-favorite-button",
|
|
345
|
-
title:
|
|
346
|
-
"aria-label":
|
|
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__ */
|
|
352
|
-
|
|
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__ */
|
|
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:
|
|
366
|
-
text:
|
|
365
|
+
header: i,
|
|
366
|
+
text: o
|
|
367
367
|
}
|
|
368
368
|
) : /* @__PURE__ */ p(
|
|
369
|
-
|
|
369
|
+
Q,
|
|
370
370
|
{
|
|
371
371
|
className: "humany-favorite-button",
|
|
372
|
-
title:
|
|
373
|
-
"aria-label":
|
|
374
|
-
onClick:
|
|
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__ */
|
|
380
|
-
d && /* @__PURE__ */
|
|
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
|
-
},
|
|
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,
|
|
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: ${(
|
|
415
|
+
stroke: ${(i = t.theme.colors) == null ? void 0 : i.text};
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
${t["data-favorite"] === "true" && `
|
|
419
|
-
fill: ${(
|
|
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
|
-
`,
|
|
446
|
+
`, Wt = A(
|
|
447
447
|
({
|
|
448
448
|
onFeedback: t = () => {
|
|
449
449
|
},
|
|
450
450
|
direction: e = "horizontal",
|
|
451
451
|
className: n,
|
|
452
|
-
header:
|
|
453
|
-
positive:
|
|
452
|
+
header: i,
|
|
453
|
+
positive: o,
|
|
454
454
|
negative: s,
|
|
455
455
|
selected: r,
|
|
456
456
|
...m
|
|
457
457
|
}, l) => /* @__PURE__ */ p(
|
|
458
|
-
|
|
458
|
+
ot,
|
|
459
459
|
{
|
|
460
|
-
className:
|
|
460
|
+
className: k(n, "humany-feedback"),
|
|
461
461
|
"data-direction": e,
|
|
462
|
-
...
|
|
462
|
+
...re(m),
|
|
463
463
|
ref: l,
|
|
464
464
|
children: [
|
|
465
|
-
!!
|
|
465
|
+
!!i && /* @__PURE__ */ a(at, { children: i }),
|
|
466
466
|
/* @__PURE__ */ p(
|
|
467
|
-
|
|
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__ */
|
|
476
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ a(I, { faIcon: "smile-o" }),
|
|
476
|
+
/* @__PURE__ */ a("span", { children: o })
|
|
477
477
|
]
|
|
478
478
|
}
|
|
479
479
|
),
|
|
480
480
|
/* @__PURE__ */ p(
|
|
481
|
-
|
|
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__ */
|
|
490
|
-
/* @__PURE__ */
|
|
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
|
-
),
|
|
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
|
-
`,
|
|
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) &&
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
563
|
-
const [t, e] =
|
|
564
|
-
return
|
|
565
|
-
e(n ? "left" :
|
|
566
|
-
}, [n,
|
|
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,
|
|
569
|
-
|
|
570
|
-
}, e), [e,
|
|
571
|
-
return
|
|
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 =
|
|
573
|
+
const s = o();
|
|
574
574
|
return () => {
|
|
575
575
|
clearTimeout(s);
|
|
576
576
|
};
|
|
577
577
|
},
|
|
578
|
-
[
|
|
578
|
+
[o]
|
|
579
579
|
// Only re-call effect if value or delay changes
|
|
580
580
|
), n;
|
|
581
|
-
},
|
|
582
|
-
const t =
|
|
583
|
-
|
|
584
|
-
if (
|
|
585
|
-
n(
|
|
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
|
|
596
|
-
(l) => e.indexOf(l) > -1 ? s(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
|
-
|
|
602
|
+
Ue(
|
|
603
603
|
() => ({
|
|
604
|
-
addFavorite:
|
|
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] =
|
|
615
|
-
return
|
|
616
|
-
},
|
|
617
|
-
format: t =
|
|
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:
|
|
621
|
-
publishedLabel:
|
|
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__ */
|
|
630
|
-
return !h && !f ? null : /* @__PURE__ */ p(
|
|
631
|
-
h && /* @__PURE__ */ p(
|
|
632
|
-
|
|
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(
|
|
636
|
+
f && /* @__PURE__ */ p(H, { className: "humany-modified", children: [
|
|
637
637
|
h && ", ",
|
|
638
|
-
|
|
638
|
+
i,
|
|
639
639
|
f,
|
|
640
640
|
n && s && ` ${n.replace("{{editor}}", s)}`
|
|
641
641
|
] })
|
|
642
642
|
] });
|
|
643
|
-
},
|
|
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
|
-
`,
|
|
650
|
+
`, H = c(se)`
|
|
651
651
|
font-style: italic;
|
|
652
|
-
`,
|
|
653
|
-
|
|
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:
|
|
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,
|
|
660
|
-
const { params: m } =
|
|
661
|
-
return /* @__PURE__ */ p(
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
|
|
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:
|
|
669
|
+
params: F({
|
|
670
670
|
...m,
|
|
671
|
-
uriName:
|
|
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__ */
|
|
678
|
-
|
|
677
|
+
children: /* @__PURE__ */ a(
|
|
678
|
+
z,
|
|
679
679
|
{
|
|
680
|
-
size:
|
|
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
|
-
}),
|
|
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
|
-
`,
|
|
701
|
+
`, Gt = A(
|
|
702
702
|
({
|
|
703
703
|
expandable: t = !1,
|
|
704
704
|
routing: e = {},
|
|
705
705
|
paramMappers: n = {},
|
|
706
|
-
symbolSize:
|
|
707
|
-
pageRole:
|
|
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:
|
|
719
|
-
children:
|
|
720
|
-
items:
|
|
721
|
-
renderItem:
|
|
722
|
-
addFavoriteTooltip:
|
|
723
|
-
removeFavoriteCancelLabel:
|
|
724
|
-
removeFavoriteConfirmLabel:
|
|
725
|
-
removeFavoriteHeader:
|
|
726
|
-
removeFavoriteLabel:
|
|
727
|
-
removeFavoriteTooltip:
|
|
728
|
-
searchResultsEmptyLabel:
|
|
729
|
-
...
|
|
730
|
-
},
|
|
731
|
-
const
|
|
732
|
-
guide:
|
|
733
|
-
page:
|
|
734
|
-
} = n, [
|
|
735
|
-
|
|
736
|
-
const
|
|
737
|
-
const { id: b, title:
|
|
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) && !!
|
|
742
|
+
"has-metadata": (!!(h != null && h.showPublished) && !!K || !!(h != null && h.showModified) && !!U).toString(),
|
|
743
743
|
children: [
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
|
|
744
|
+
/* @__PURE__ */ a(
|
|
745
|
+
R,
|
|
746
746
|
{
|
|
747
747
|
className: "humany-guide-link",
|
|
748
|
-
routeName:
|
|
749
|
-
onClick: (
|
|
750
|
-
d(
|
|
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:
|
|
755
|
-
text:
|
|
756
|
-
children: /* @__PURE__ */
|
|
757
|
-
|
|
754
|
+
params: Se(g),
|
|
755
|
+
text: L,
|
|
756
|
+
children: /* @__PURE__ */ a(
|
|
757
|
+
z,
|
|
758
758
|
{
|
|
759
|
-
size:
|
|
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__ */
|
|
769
|
-
|
|
768
|
+
m && /* @__PURE__ */ a(
|
|
769
|
+
it,
|
|
770
770
|
{
|
|
771
|
-
guideTitle:
|
|
772
|
-
addFavoriteTooltip:
|
|
773
|
-
removeFavoriteCancelLabel:
|
|
774
|
-
removeFavoriteConfirmLabel:
|
|
775
|
-
removeFavoriteHeader:
|
|
776
|
-
removeFavoriteLabel:
|
|
777
|
-
removeFavoriteTooltip:
|
|
778
|
-
isFavorite:
|
|
779
|
-
actions:
|
|
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__ */
|
|
784
|
-
/* @__PURE__ */
|
|
785
|
-
|
|
783
|
+
r && /* @__PURE__ */ a(lt, { tags: Ae }),
|
|
784
|
+
/* @__PURE__ */ a(
|
|
785
|
+
ft,
|
|
786
786
|
{
|
|
787
787
|
...h,
|
|
788
|
-
indent: t ? void 0 :
|
|
789
|
-
modified:
|
|
790
|
-
published:
|
|
791
|
-
publishedBy:
|
|
792
|
-
modifiedBy:
|
|
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
|
-
},
|
|
800
|
-
(g, b,
|
|
801
|
-
[
|
|
802
|
-
),
|
|
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",
|
|
804
|
+
l && (g.preventDefault(), u("page", G()));
|
|
805
805
|
},
|
|
806
806
|
[u, l]
|
|
807
807
|
);
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
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
|
-
|
|
819
|
+
dt,
|
|
846
820
|
{
|
|
847
|
-
className:
|
|
848
|
-
"data-item-count":
|
|
849
|
-
items:
|
|
850
|
-
renderItem:
|
|
851
|
-
isTabbing:
|
|
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 ||
|
|
854
|
-
...
|
|
855
|
-
ref:
|
|
827
|
+
"grid-items": r || m || De ? "true" : "false",
|
|
828
|
+
...re(O),
|
|
829
|
+
ref: P,
|
|
856
830
|
children: [
|
|
857
|
-
f ? /* @__PURE__ */
|
|
858
|
-
|
|
831
|
+
f ? /* @__PURE__ */ a(
|
|
832
|
+
R,
|
|
859
833
|
{
|
|
860
834
|
text: f,
|
|
861
835
|
title: f,
|
|
862
836
|
"aria-label": f,
|
|
863
|
-
routeName:
|
|
864
|
-
role:
|
|
865
|
-
params:
|
|
866
|
-
onClick:
|
|
867
|
-
children: /* @__PURE__ */
|
|
868
|
-
|
|
837
|
+
routeName: ze,
|
|
838
|
+
role: o,
|
|
839
|
+
params: G(),
|
|
840
|
+
onClick: Ce,
|
|
841
|
+
children: /* @__PURE__ */ a(
|
|
842
|
+
z,
|
|
869
843
|
{
|
|
870
|
-
size:
|
|
844
|
+
size: i,
|
|
871
845
|
symbol: { type: "Svg", content: `caret-${s}` }
|
|
872
846
|
}
|
|
873
847
|
)
|
|
874
848
|
}
|
|
875
849
|
) : null,
|
|
876
|
-
|
|
877
|
-
!
|
|
850
|
+
$,
|
|
851
|
+
!O["data-loading"] && x.length === 0 && /* @__PURE__ */ a("p", { children: xe })
|
|
878
852
|
]
|
|
879
853
|
}
|
|
880
854
|
);
|
|
881
855
|
}
|
|
882
|
-
),
|
|
883
|
-
${
|
|
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) =>
|
|
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
|
-
${
|
|
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
|
-
${
|
|
1003
|
+
${W}
|
|
1030
1004
|
text-decoration: underline;
|
|
1031
1005
|
}
|
|
1032
1006
|
}
|
|
1033
|
-
`,
|
|
1034
|
-
${
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
1052
|
+
`, ut = he`
|
|
1079
1053
|
100% {
|
|
1080
1054
|
transform: rotate(360deg);
|
|
1081
1055
|
}
|
|
1082
|
-
`,
|
|
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
|
-
`,
|
|
1096
|
-
animation: ${
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
1109
|
+
`, vt = c.circle`
|
|
1136
1110
|
stroke-dasharray: 1, 200;
|
|
1137
1111
|
stroke-dashoffset: 0;
|
|
1138
|
-
animation: ${
|
|
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
|
-
`,
|
|
1146
|
-
|
|
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
|
-
) }) }) }),
|
|
1129
|
+
) }) }) }), Kt = ({
|
|
1156
1130
|
className: t,
|
|
1157
1131
|
showHeader: e,
|
|
1158
1132
|
notificationList: n,
|
|
1159
|
-
loading:
|
|
1160
|
-
...
|
|
1133
|
+
loading: i,
|
|
1134
|
+
...o
|
|
1161
1135
|
}) => {
|
|
1162
|
-
const [s, r] =
|
|
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 && !
|
|
1170
|
-
|
|
1143
|
+
return !u.length && !i ? null : /* @__PURE__ */ a(
|
|
1144
|
+
wt,
|
|
1171
1145
|
{
|
|
1172
|
-
...
|
|
1173
|
-
"data-loading":
|
|
1146
|
+
...o,
|
|
1147
|
+
"data-loading": i,
|
|
1174
1148
|
"data-show-header": typeof e == "boolean" ? e : h.visible,
|
|
1175
|
-
className:
|
|
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:
|
|
1181
|
-
|
|
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":
|
|
1185
|
-
children:
|
|
1158
|
+
"data-expanded": S ? s === f : !0,
|
|
1159
|
+
children: S ? /* @__PURE__ */ p(te, { children: [
|
|
1186
1160
|
/* @__PURE__ */ p(
|
|
1187
|
-
|
|
1161
|
+
bt,
|
|
1188
1162
|
{
|
|
1189
|
-
title:
|
|
1190
|
-
"aria-label":
|
|
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__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1196
|
-
|
|
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__ */
|
|
1209
|
-
|
|
1210
|
-
|
|
1182
|
+
/* @__PURE__ */ a(ee, { html: $ }),
|
|
1183
|
+
x && /* @__PURE__ */ a(
|
|
1184
|
+
St,
|
|
1211
1185
|
{
|
|
1212
|
-
format:
|
|
1213
|
-
timestamp:
|
|
1186
|
+
format: de.YYYY_MM_DD,
|
|
1187
|
+
timestamp: x
|
|
1214
1188
|
}
|
|
1215
1189
|
)
|
|
1216
|
-
] }) : /* @__PURE__ */
|
|
1190
|
+
] }) : /* @__PURE__ */ a(ee, { html: $ })
|
|
1217
1191
|
},
|
|
1218
1192
|
f
|
|
1219
1193
|
),
|
|
1220
|
-
children: /* @__PURE__ */
|
|
1194
|
+
children: /* @__PURE__ */ a(xt, { loading: i })
|
|
1221
1195
|
}
|
|
1222
1196
|
);
|
|
1223
|
-
},
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
1261
|
-
${
|
|
1262
|
-
${
|
|
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
|
-
${
|
|
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
|
-
`,
|
|
1286
|
-
${
|
|
1259
|
+
`, ee = c(_e)`
|
|
1260
|
+
${Oe}
|
|
1287
1261
|
font-weight: 300;
|
|
1288
1262
|
|
|
1289
1263
|
p {
|
|
1290
1264
|
white-space: normal;
|
|
1291
1265
|
}
|
|
1292
|
-
`,
|
|
1266
|
+
`, kt = c.li`
|
|
1293
1267
|
.humany-paragraph {
|
|
1294
1268
|
display: none;
|
|
1295
1269
|
&:not(:only-child) {
|
|
1296
1270
|
${(t) => {
|
|
1297
|
-
var e, n,
|
|
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: ${(
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
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
|
-
`,
|
|
1310
|
+
`, Nt = (t) => new RegExp("^#", "i").test(t), Lt = (t) => ({ children: e, ...n }) => {
|
|
1337
1311
|
const {
|
|
1338
|
-
implementation:
|
|
1339
|
-
name:
|
|
1312
|
+
implementation: i,
|
|
1313
|
+
name: o
|
|
1340
1314
|
} = t.get("$widget"), { href: s = "" } = n;
|
|
1341
|
-
if (
|
|
1342
|
-
return /* @__PURE__ */
|
|
1343
|
-
const r =
|
|
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 (
|
|
1349
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
1352
|
-
},
|
|
1325
|
+
return /* @__PURE__ */ a("a", { ...n, children: e });
|
|
1326
|
+
}, Ut = (t, e = []) => ({
|
|
1353
1327
|
transform: {
|
|
1354
1328
|
a: (n) => {
|
|
1355
|
-
const { children:
|
|
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__ */
|
|
1335
|
+
return /* @__PURE__ */ a(fe, { ...m, children: i });
|
|
1362
1336
|
}
|
|
1363
|
-
return
|
|
1337
|
+
return Lt(t)(n);
|
|
1364
1338
|
}
|
|
1365
1339
|
}
|
|
1366
1340
|
});
|
|
1367
1341
|
export {
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
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
|
-
|
|
1362
|
+
st as useFavorites,
|
|
1389
1363
|
_t as useHover
|
|
1390
1364
|
};
|