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