@telia-ace/knowledge-widget-ui 1.0.26-next.5 → 1.0.26-next.7
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/components/loader.d.ts +5 -2
- package/dist/index.js +486 -475
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +12 -5
- package/package.json +9 -8
package/dist/index.js
CHANGED
|
@@ -1,85 +1,87 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var He = Object.defineProperty, je = Object.defineProperties;
|
|
2
|
+
var Oe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var oe = (t, e,
|
|
6
|
-
for (var
|
|
7
|
-
|
|
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
|
-
}, E = (t, e) =>
|
|
12
|
+
}, E = (t, e) => je(t, Oe(e));
|
|
13
13
|
var w = (t, e) => {
|
|
14
|
-
var
|
|
15
|
-
for (var
|
|
16
|
-
|
|
14
|
+
var a = {};
|
|
15
|
+
for (var o in t)
|
|
16
|
+
re.call(t, o) && e.indexOf(o) < 0 && (a[o] = t[o]);
|
|
17
17
|
if (t != null && R)
|
|
18
|
-
for (var
|
|
19
|
-
e.indexOf(
|
|
20
|
-
return
|
|
18
|
+
for (var o of R(t))
|
|
19
|
+
e.indexOf(o) < 0 && se.call(t, o) && (a[o] = t[o]);
|
|
20
|
+
return a;
|
|
21
21
|
};
|
|
22
|
-
import {
|
|
22
|
+
import { css as $, keyframes as he } from "@emotion/react";
|
|
23
|
+
import d from "@emotion/styled";
|
|
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";
|
|
23
25
|
export * from "@telia-ace/widget-ui";
|
|
24
|
-
import {
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
const ke = ({
|
|
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 = ({
|
|
28
29
|
title: t = "",
|
|
29
30
|
className: e,
|
|
30
|
-
id:
|
|
31
|
-
parent:
|
|
31
|
+
id: a,
|
|
32
|
+
parent: o,
|
|
32
33
|
connection: s,
|
|
33
34
|
type: i,
|
|
34
|
-
target:
|
|
35
|
+
target: r,
|
|
35
36
|
href: c,
|
|
36
37
|
children: m,
|
|
37
|
-
connectionKey:
|
|
38
|
+
connectionKey: f
|
|
38
39
|
}) => {
|
|
39
|
-
const
|
|
40
|
+
const u = {}, { name: l, params: h } = ge();
|
|
40
41
|
switch (i) {
|
|
41
42
|
case "default":
|
|
42
43
|
case "guide":
|
|
43
|
-
const { id: S, title: g } =
|
|
44
|
-
|
|
45
|
-
guide:
|
|
46
|
-
connection:
|
|
47
|
-
uriName:
|
|
44
|
+
const { id: S, title: g } = o;
|
|
45
|
+
u.routeName = l, u.params = j(E(y({}, h), {
|
|
46
|
+
guide: a,
|
|
47
|
+
connection: f,
|
|
48
|
+
uriName: a === S ? ce(g) : ce(t)
|
|
48
49
|
}));
|
|
49
50
|
break;
|
|
50
51
|
case "link":
|
|
51
|
-
|
|
52
|
+
u.href = c, u.target = r;
|
|
52
53
|
break;
|
|
53
54
|
}
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ n.createElement(Ye, y({
|
|
55
56
|
className: z(e, "humany-dialog-link")
|
|
56
|
-
},
|
|
57
|
+
}, u), m || /* @__PURE__ */ n.createElement(n.Fragment, null, i === "link" && /* @__PURE__ */ n.createElement(H, {
|
|
57
58
|
faIcon: "link"
|
|
58
|
-
}), /* @__PURE__ */
|
|
59
|
-
},
|
|
60
|
-
var i = s, { className: t, dialog: e } = i,
|
|
61
|
-
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({
|
|
62
63
|
className: z(t, "humany-dialog"),
|
|
63
64
|
items: e,
|
|
64
|
-
renderItem: (
|
|
65
|
-
key:
|
|
66
|
-
"data-dialog":
|
|
67
|
-
}, /* @__PURE__ */
|
|
68
|
-
},
|
|
69
|
-
ref:
|
|
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
|
+
ref: o
|
|
70
71
|
})) : null;
|
|
71
|
-
}),
|
|
72
|
-
${
|
|
72
|
+
}), nt = d(Z)`
|
|
73
|
+
${pe}
|
|
73
74
|
a {
|
|
74
75
|
min-width: 150px;
|
|
75
76
|
max-width: 400px;
|
|
76
77
|
display: block;
|
|
77
78
|
white-space: normal;
|
|
78
79
|
${(t) => {
|
|
79
|
-
var e;
|
|
80
|
-
return
|
|
81
|
-
primaryColor: (
|
|
82
|
-
secondaryColor: "#FFFFFF"
|
|
80
|
+
var e, a;
|
|
81
|
+
return ((e = t.theme.colors) == null ? void 0 : e.primary) && ye({
|
|
82
|
+
primaryColor: (a = t.theme.colors) == null ? void 0 : a.primary,
|
|
83
|
+
secondaryColor: "#FFFFFF",
|
|
84
|
+
theme: t.theme
|
|
83
85
|
});
|
|
84
86
|
}}
|
|
85
87
|
}
|
|
@@ -90,18 +92,18 @@ const ke = ({
|
|
|
90
92
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
91
93
|
}} 0 0;
|
|
92
94
|
}
|
|
93
|
-
`,
|
|
94
|
-
var l =
|
|
95
|
+
`, ot = (u) => {
|
|
96
|
+
var l = u, {
|
|
95
97
|
trigger: t,
|
|
96
98
|
header: e,
|
|
97
|
-
className:
|
|
98
|
-
animation:
|
|
99
|
+
className: a,
|
|
100
|
+
animation: o,
|
|
99
101
|
fullScreen: s,
|
|
100
102
|
onToggle: i,
|
|
101
|
-
children:
|
|
103
|
+
children: r,
|
|
102
104
|
ref: c,
|
|
103
105
|
closeButtonAriaLabel: m
|
|
104
|
-
} = l,
|
|
106
|
+
} = l, f = w(l, [
|
|
105
107
|
"trigger",
|
|
106
108
|
"header",
|
|
107
109
|
"className",
|
|
@@ -112,17 +114,17 @@ const ke = ({
|
|
|
112
114
|
"ref",
|
|
113
115
|
"closeButtonAriaLabel"
|
|
114
116
|
]);
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
className: z(
|
|
117
|
+
return /* @__PURE__ */ n.createElement(_e, {
|
|
118
|
+
className: z(a, "humany-drawer-list"),
|
|
117
119
|
trigger: t,
|
|
118
120
|
header: e,
|
|
119
|
-
animation:
|
|
121
|
+
animation: o,
|
|
120
122
|
fullScreen: s,
|
|
121
123
|
onToggle: i,
|
|
122
124
|
closeButtonAriaLabel: m
|
|
123
|
-
}, /* @__PURE__ */
|
|
124
|
-
}, ot = d(
|
|
125
|
-
${
|
|
125
|
+
}, /* @__PURE__ */ n.createElement(rt, y({}, f), r));
|
|
126
|
+
}, aa = ot, rt = d(O)`
|
|
127
|
+
${Y}
|
|
126
128
|
font-family: ${(t) => {
|
|
127
129
|
var e;
|
|
128
130
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
@@ -139,13 +141,13 @@ const ke = ({
|
|
|
139
141
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
140
142
|
}};
|
|
141
143
|
}
|
|
142
|
-
`,
|
|
144
|
+
`, st = ({ items: t, renderItem: e, trigger: a, header: o, children: s }) => /* @__PURE__ */ n.createElement($e, {
|
|
143
145
|
className: "humany-dropdown-actions",
|
|
144
|
-
trigger:
|
|
145
|
-
}, /* @__PURE__ */
|
|
146
|
+
trigger: a
|
|
147
|
+
}, /* @__PURE__ */ n.createElement(it, null, !!o && /* @__PURE__ */ n.createElement(lt, null, o), t && e && /* @__PURE__ */ n.createElement(ct, {
|
|
146
148
|
items: t,
|
|
147
149
|
renderItem: e
|
|
148
|
-
}), s)), st = d.div`
|
|
150
|
+
}), s)), na = st, it = d.div`
|
|
149
151
|
background: #fff;
|
|
150
152
|
border: #ccc 1px solid;
|
|
151
153
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
@@ -157,8 +159,11 @@ const ke = ({
|
|
|
157
159
|
var e;
|
|
158
160
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
159
161
|
}};
|
|
160
|
-
`,
|
|
161
|
-
padding: ${(t) =>
|
|
162
|
+
`, lt = d.div`
|
|
163
|
+
padding: ${(t) => {
|
|
164
|
+
var e;
|
|
165
|
+
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
166
|
+
}};
|
|
162
167
|
padding-bottom: 0;
|
|
163
168
|
font-size: ${(t) => {
|
|
164
169
|
var e;
|
|
@@ -182,13 +187,19 @@ const ke = ({
|
|
|
182
187
|
|
|
183
188
|
svg,
|
|
184
189
|
i {
|
|
185
|
-
margin-right: ${(t) =>
|
|
190
|
+
margin-right: ${(t) => {
|
|
191
|
+
var e;
|
|
192
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
193
|
+
}};
|
|
186
194
|
}
|
|
187
|
-
`,
|
|
195
|
+
`, ct = d(Z)`
|
|
188
196
|
list-style: none;
|
|
189
197
|
padding: 0;
|
|
190
198
|
margin: 0;
|
|
191
|
-
padding: ${(t) =>
|
|
199
|
+
padding: ${(t) => {
|
|
200
|
+
var e;
|
|
201
|
+
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
202
|
+
}} 0;
|
|
192
203
|
|
|
193
204
|
li {
|
|
194
205
|
background: #fff;
|
|
@@ -200,8 +211,8 @@ const ke = ({
|
|
|
200
211
|
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
201
212
|
}};
|
|
202
213
|
padding: ${(t) => {
|
|
203
|
-
var e,
|
|
204
|
-
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}`;
|
|
205
216
|
}};
|
|
206
217
|
cursor: pointer;
|
|
207
218
|
color: #555;
|
|
@@ -216,40 +227,40 @@ const ke = ({
|
|
|
216
227
|
}
|
|
217
228
|
}
|
|
218
229
|
}
|
|
219
|
-
`,
|
|
220
|
-
var
|
|
230
|
+
`, mt = (i) => {
|
|
231
|
+
var r = i, {
|
|
221
232
|
trigger: t,
|
|
222
233
|
className: e,
|
|
223
|
-
children:
|
|
224
|
-
closeButtonAriaLabel:
|
|
225
|
-
} =
|
|
234
|
+
children: a,
|
|
235
|
+
closeButtonAriaLabel: o
|
|
236
|
+
} = r, s = w(r, [
|
|
226
237
|
"trigger",
|
|
227
238
|
"className",
|
|
228
239
|
"children",
|
|
229
240
|
"closeButtonAriaLabel"
|
|
230
241
|
]);
|
|
231
|
-
return /* @__PURE__ */
|
|
242
|
+
return /* @__PURE__ */ n.createElement($e, {
|
|
232
243
|
className: z(e, "humany-dropdown-list"),
|
|
233
|
-
closeButtonAriaLabel:
|
|
244
|
+
closeButtonAriaLabel: o,
|
|
234
245
|
trigger: t
|
|
235
|
-
}, /* @__PURE__ */
|
|
236
|
-
},
|
|
237
|
-
${
|
|
246
|
+
}, /* @__PURE__ */ n.createElement(dt, y({}, s), a));
|
|
247
|
+
}, oa = mt, dt = d(O)`
|
|
248
|
+
${Y}
|
|
238
249
|
font-family: ${(t) => {
|
|
239
250
|
var e;
|
|
240
251
|
return (e = t.theme.fonts) == null ? void 0 : e.type;
|
|
241
252
|
}};
|
|
242
253
|
> div {
|
|
243
|
-
${
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
254
|
+
${(t) => {
|
|
255
|
+
var e;
|
|
256
|
+
return ee(t)(
|
|
257
|
+
"> h1",
|
|
258
|
+
$`
|
|
259
|
+
font-size: ${(e = t.theme.fonts) == null ? void 0 : e.normal};
|
|
260
|
+
line-height: 1.2em;
|
|
261
|
+
`
|
|
262
|
+
);
|
|
263
|
+
}}
|
|
253
264
|
}
|
|
254
265
|
> ul > li {
|
|
255
266
|
overflow: visible;
|
|
@@ -269,97 +280,17 @@ const ke = ({
|
|
|
269
280
|
}
|
|
270
281
|
}
|
|
271
282
|
}
|
|
272
|
-
`,
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
`, dt = Ee`
|
|
277
|
-
0% {
|
|
278
|
-
stroke-dasharray: 1, 200;
|
|
279
|
-
stroke-dashoffset: 0;
|
|
280
|
-
}
|
|
281
|
-
50% {
|
|
282
|
-
stroke-dasharray: 89, 200;
|
|
283
|
-
stroke-dashoffset: -35px;
|
|
284
|
-
}
|
|
285
|
-
100% {
|
|
286
|
-
stroke-dasharray: 89, 200;
|
|
287
|
-
stroke-dashoffset: -124px;
|
|
288
|
-
}
|
|
289
|
-
`, ze = d.svg`
|
|
290
|
-
animation: ${mt} 2s linear infinite;
|
|
291
|
-
height: 100%;
|
|
292
|
-
transform-origin: center center;
|
|
293
|
-
width: 100%;
|
|
294
|
-
position: absolute;
|
|
295
|
-
top: 0;
|
|
296
|
-
bottom: 0;
|
|
297
|
-
left: 0;
|
|
298
|
-
right: 0;
|
|
299
|
-
margin: auto;
|
|
300
|
-
transition: 200ms ease-out opacity;
|
|
301
|
-
`, Se = d.div`
|
|
302
|
-
position: absolute;
|
|
303
|
-
top: 0;
|
|
304
|
-
bottom: 0;
|
|
305
|
-
left: 0;
|
|
306
|
-
right: 0;
|
|
307
|
-
height: 100%;
|
|
308
|
-
width: 100%;
|
|
309
|
-
pointer-events: ${(t) => t["data-loading"] ? "all" : "none"};
|
|
310
|
-
display: flex;
|
|
311
|
-
flex-direction: column;
|
|
312
|
-
justify-content: center;
|
|
313
|
-
transition: 200ms ease-out opacity;
|
|
314
|
-
box-sizing: border-box;
|
|
315
|
-
overflow: hidden;
|
|
316
|
-
${ze} {
|
|
317
|
-
opacity: ${(t) => t["data-loading"] ? "1" : "0"};
|
|
318
|
-
}
|
|
319
|
-
`, ft = d.div`
|
|
320
|
-
position: relative;
|
|
321
|
-
margin: 0 auto;
|
|
322
|
-
width: 100px;
|
|
323
|
-
&:before {
|
|
324
|
-
content: '';
|
|
325
|
-
display: block;
|
|
326
|
-
padding-top: 100%;
|
|
327
|
-
}
|
|
328
|
-
`, ut = d.circle`
|
|
329
|
-
stroke-dasharray: 1, 200;
|
|
330
|
-
stroke-dashoffset: 0;
|
|
331
|
-
animation: ${dt} 1.5s ease-in-out infinite;
|
|
332
|
-
stroke-linecap: round;
|
|
333
|
-
stroke: ${(t) => {
|
|
334
|
-
var e;
|
|
335
|
-
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
336
|
-
}};
|
|
337
|
-
stroke-width: 2px;
|
|
338
|
-
`, ht = ({ loading: t = !1 }) => /* @__PURE__ */ a.createElement(Se, {
|
|
339
|
-
className: "humany-loader",
|
|
340
|
-
"data-loading": t
|
|
341
|
-
}, /* @__PURE__ */ a.createElement(ft, {
|
|
342
|
-
className: "humany-spinner"
|
|
343
|
-
}, /* @__PURE__ */ a.createElement(ze, {
|
|
344
|
-
viewBox: "25 25 50 50"
|
|
345
|
-
}, /* @__PURE__ */ a.createElement(ut, {
|
|
346
|
-
cx: "50",
|
|
347
|
-
cy: "50",
|
|
348
|
-
r: "20",
|
|
349
|
-
fill: "none",
|
|
350
|
-
"stroke-width": "2",
|
|
351
|
-
"stroke-miterlimit": "10"
|
|
352
|
-
})))), gt = $`
|
|
353
|
-
${(t) => t["data-loading"] && "position: relative;"};
|
|
354
|
-
${(t) => t["data-loading"] && "min-height: 150px;"}
|
|
283
|
+
`, ut = (t) => $`
|
|
284
|
+
${t["data-loading"] && "position: relative;"};
|
|
285
|
+
${t["data-loading"] && "min-height: 150px;"}
|
|
355
286
|
> * {
|
|
356
287
|
transition: 200ms ease-out opacity;
|
|
357
|
-
opacity: ${
|
|
288
|
+
opacity: ${t["data-loading"] ? "0.5" : "1"};
|
|
358
289
|
}
|
|
359
|
-
|
|
360
|
-
opacity: ${
|
|
290
|
+
.humany-loader {
|
|
291
|
+
opacity: ${t["data-loading"] ? "1" : "0"};
|
|
361
292
|
}
|
|
362
|
-
`,
|
|
293
|
+
`, ra = d(H)`
|
|
363
294
|
&& {
|
|
364
295
|
font-size: ${(t) => {
|
|
365
296
|
var e;
|
|
@@ -367,7 +298,7 @@ const ke = ({
|
|
|
367
298
|
}};
|
|
368
299
|
}
|
|
369
300
|
width: 1.2em;
|
|
370
|
-
`,
|
|
301
|
+
`, sa = d(ve)`
|
|
371
302
|
font-size: ${(t) => {
|
|
372
303
|
var e;
|
|
373
304
|
return (e = t.theme.fonts) == null ? void 0 : e.medium;
|
|
@@ -378,7 +309,7 @@ const ke = ({
|
|
|
378
309
|
var e;
|
|
379
310
|
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
380
311
|
}};
|
|
381
|
-
`,
|
|
312
|
+
`, ft = d(te)`
|
|
382
313
|
display: flex;
|
|
383
314
|
align-items: center;
|
|
384
315
|
|
|
@@ -392,11 +323,11 @@ const ke = ({
|
|
|
392
323
|
}}
|
|
393
324
|
|
|
394
325
|
&:focus-visible {
|
|
395
|
-
${(t) => t["data-has-label"] === "true" &&
|
|
326
|
+
${(t) => t["data-has-label"] === "true" && ie}
|
|
396
327
|
|
|
397
328
|
svg, i {
|
|
398
329
|
${(t) => t["data-has-label"] === "false" && t["data-has-symbol"] === "true" && $`
|
|
399
|
-
${
|
|
330
|
+
${ie(t)}
|
|
400
331
|
box-sizing: content-box;
|
|
401
332
|
`}
|
|
402
333
|
}
|
|
@@ -406,60 +337,60 @@ const ke = ({
|
|
|
406
337
|
flex: 1;
|
|
407
338
|
font-weight: 300;
|
|
408
339
|
}
|
|
409
|
-
`,
|
|
340
|
+
`, ht = ({
|
|
410
341
|
addFavoriteTooltip: t,
|
|
411
342
|
removeFavoriteCancelLabel: e,
|
|
412
|
-
removeFavoriteConfirmLabel:
|
|
413
|
-
removeFavoriteHeader:
|
|
343
|
+
removeFavoriteConfirmLabel: a,
|
|
344
|
+
removeFavoriteHeader: o,
|
|
414
345
|
removeFavoriteLabel: s,
|
|
415
346
|
removeFavoriteTooltip: i,
|
|
416
|
-
id:
|
|
347
|
+
id: r,
|
|
417
348
|
isFavorite: c,
|
|
418
349
|
guideTitle: m,
|
|
419
|
-
buttonLabel:
|
|
420
|
-
actions: { addFavorite:
|
|
350
|
+
buttonLabel: f = "",
|
|
351
|
+
actions: { addFavorite: u, removeFavorite: l }
|
|
421
352
|
}) => {
|
|
422
353
|
const h = k(() => {
|
|
423
|
-
l(
|
|
424
|
-
}, [
|
|
425
|
-
|
|
426
|
-
}, [
|
|
427
|
-
return /* @__PURE__ */
|
|
428
|
-
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, {
|
|
429
360
|
className: "humany-favorite-button",
|
|
430
361
|
title: g,
|
|
431
362
|
"aria-label": g,
|
|
432
363
|
"data-favorite": "true",
|
|
433
|
-
"data-has-label":
|
|
364
|
+
"data-has-label": f ? "true" : "false",
|
|
434
365
|
"data-has-symbol": "true"
|
|
435
|
-
}, /* @__PURE__ */
|
|
366
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
436
367
|
size: 16,
|
|
437
368
|
symbol: { type: "Svg", content: "star-empty" }
|
|
438
|
-
}),
|
|
369
|
+
}), f && /* @__PURE__ */ n.createElement(J, null, f)),
|
|
439
370
|
onConfirm: h,
|
|
440
371
|
cancelLabel: e,
|
|
441
|
-
confirmLabel:
|
|
442
|
-
header:
|
|
372
|
+
confirmLabel: a,
|
|
373
|
+
header: o,
|
|
443
374
|
text: s
|
|
444
|
-
}) : /* @__PURE__ */
|
|
375
|
+
}) : /* @__PURE__ */ n.createElement(me, {
|
|
445
376
|
className: "humany-favorite-button",
|
|
446
377
|
title: g,
|
|
447
378
|
"aria-label": g,
|
|
448
379
|
onClick: S,
|
|
449
380
|
"data-favorite": "false",
|
|
450
|
-
"data-has-label":
|
|
381
|
+
"data-has-label": f ? "true" : "false",
|
|
451
382
|
"data-has-symbol": "true"
|
|
452
|
-
}, /* @__PURE__ */
|
|
383
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
453
384
|
size: 16,
|
|
454
385
|
symbol: { type: "Svg", content: "star-empty" }
|
|
455
|
-
}),
|
|
456
|
-
},
|
|
386
|
+
}), f && /* @__PURE__ */ n.createElement(J, null, f)));
|
|
387
|
+
}, gt = ht, me = d(ft)`
|
|
457
388
|
grid-area: favorite;
|
|
458
389
|
|
|
459
390
|
&:focus-visible {
|
|
460
391
|
svg {
|
|
461
392
|
${(t) => {
|
|
462
|
-
var e,
|
|
393
|
+
var e, a;
|
|
463
394
|
return t["data-favorite"] === "true" ? `
|
|
464
395
|
fill: transparent;
|
|
465
396
|
|
|
@@ -470,7 +401,7 @@ const ke = ({
|
|
|
470
401
|
fill: ${(e = t.theme.colors) == null ? void 0 : e.text};
|
|
471
402
|
|
|
472
403
|
path {
|
|
473
|
-
fill: ${(
|
|
404
|
+
fill: ${(a = t.theme.colors) == null ? void 0 : a.text};
|
|
474
405
|
}
|
|
475
406
|
`;
|
|
476
407
|
}}
|
|
@@ -478,13 +409,13 @@ const ke = ({
|
|
|
478
409
|
}
|
|
479
410
|
|
|
480
411
|
${(t) => {
|
|
481
|
-
var e,
|
|
412
|
+
var e, a, o, s, i, r, c;
|
|
482
413
|
return ((e = t.theme.colors) == null ? void 0 : e.text) && $`
|
|
483
414
|
svg {
|
|
484
|
-
stroke: ${(
|
|
415
|
+
stroke: ${(a = t.theme.colors) == null ? void 0 : a.text};
|
|
485
416
|
|
|
486
417
|
path {
|
|
487
|
-
stroke: ${(
|
|
418
|
+
stroke: ${(o = t.theme.colors) == null ? void 0 : o.text};
|
|
488
419
|
}
|
|
489
420
|
|
|
490
421
|
${t["data-favorite"] === "true" && `
|
|
@@ -505,7 +436,7 @@ const ke = ({
|
|
|
505
436
|
fill: transparent;
|
|
506
437
|
}
|
|
507
438
|
` : `
|
|
508
|
-
fill: ${(
|
|
439
|
+
fill: ${(r = t.theme.colors) == null ? void 0 : r.text};
|
|
509
440
|
|
|
510
441
|
path {
|
|
511
442
|
fill: ${(c = t.theme.colors) == null ? void 0 : c.text};
|
|
@@ -515,18 +446,18 @@ const ke = ({
|
|
|
515
446
|
}
|
|
516
447
|
`;
|
|
517
448
|
}}
|
|
518
|
-
`,
|
|
519
|
-
(
|
|
520
|
-
var
|
|
449
|
+
`, ia = _(
|
|
450
|
+
(f, m) => {
|
|
451
|
+
var u = f, {
|
|
521
452
|
onFeedback: t = () => {
|
|
522
453
|
},
|
|
523
454
|
direction: e = "horizontal",
|
|
524
|
-
className:
|
|
525
|
-
header:
|
|
455
|
+
className: a,
|
|
456
|
+
header: o,
|
|
526
457
|
positive: s,
|
|
527
458
|
negative: i,
|
|
528
|
-
selected:
|
|
529
|
-
} =
|
|
459
|
+
selected: r
|
|
460
|
+
} = u, c = w(u, [
|
|
530
461
|
"onFeedback",
|
|
531
462
|
"direction",
|
|
532
463
|
"className",
|
|
@@ -535,32 +466,32 @@ const ke = ({
|
|
|
535
466
|
"negative",
|
|
536
467
|
"selected"
|
|
537
468
|
]);
|
|
538
|
-
return /* @__PURE__ */
|
|
539
|
-
className: z(
|
|
469
|
+
return /* @__PURE__ */ n.createElement(yt, E(y({
|
|
470
|
+
className: z(a, "humany-feedback"),
|
|
540
471
|
"data-direction": e
|
|
541
|
-
},
|
|
472
|
+
}, xe(c)), {
|
|
542
473
|
ref: m
|
|
543
|
-
}), !!
|
|
474
|
+
}), !!o && /* @__PURE__ */ n.createElement(pt, null, o), /* @__PURE__ */ n.createElement(de, {
|
|
544
475
|
className: "humany-feedback-button",
|
|
545
|
-
disabled: !!
|
|
546
|
-
"aria-pressed":
|
|
547
|
-
"data-selected":
|
|
476
|
+
disabled: !!r,
|
|
477
|
+
"aria-pressed": r === "positive",
|
|
478
|
+
"data-selected": r === "positive",
|
|
548
479
|
"data-direction": e,
|
|
549
480
|
onClick: () => t("positive")
|
|
550
|
-
}, /* @__PURE__ */
|
|
481
|
+
}, /* @__PURE__ */ n.createElement(H, {
|
|
551
482
|
faIcon: "smile-o"
|
|
552
|
-
}), /* @__PURE__ */
|
|
483
|
+
}), /* @__PURE__ */ n.createElement("span", null, s)), /* @__PURE__ */ n.createElement(de, {
|
|
553
484
|
className: "humany-feedback-button",
|
|
554
|
-
disabled: !!
|
|
555
|
-
"aria-pressed":
|
|
556
|
-
"data-selected":
|
|
485
|
+
disabled: !!r,
|
|
486
|
+
"aria-pressed": r === "negative",
|
|
487
|
+
"data-selected": r === "negative",
|
|
557
488
|
"data-direction": e,
|
|
558
489
|
onClick: () => t("negative")
|
|
559
|
-
}, /* @__PURE__ */
|
|
490
|
+
}, /* @__PURE__ */ n.createElement(H, {
|
|
560
491
|
faIcon: "frown-o"
|
|
561
|
-
}), /* @__PURE__ */
|
|
492
|
+
}), /* @__PURE__ */ n.createElement("span", null, i)));
|
|
562
493
|
}
|
|
563
|
-
),
|
|
494
|
+
), pt = d(J)`
|
|
564
495
|
font-weight: normal;
|
|
565
496
|
margin: 0 0 ${(t) => {
|
|
566
497
|
var e;
|
|
@@ -571,7 +502,7 @@ const ke = ({
|
|
|
571
502
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
572
503
|
}};
|
|
573
504
|
display: block;
|
|
574
|
-
`,
|
|
505
|
+
`, de = d(te)`
|
|
575
506
|
display: inline-block;
|
|
576
507
|
font-size: ${(t) => {
|
|
577
508
|
var e;
|
|
@@ -586,10 +517,10 @@ const ke = ({
|
|
|
586
517
|
}
|
|
587
518
|
|
|
588
519
|
${(t) => {
|
|
589
|
-
var e,
|
|
520
|
+
var e, a;
|
|
590
521
|
return t["data-direction"] === "horizontal" && $`
|
|
591
522
|
width: 225px;
|
|
592
|
-
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});
|
|
593
524
|
`;
|
|
594
525
|
}}
|
|
595
526
|
|
|
@@ -598,11 +529,12 @@ const ke = ({
|
|
|
598
529
|
`}
|
|
599
530
|
|
|
600
531
|
${(t) => {
|
|
601
|
-
var e;
|
|
602
|
-
return
|
|
532
|
+
var e, a;
|
|
533
|
+
return ((e = t.theme.colors) == null ? void 0 : e.primary) && ye({
|
|
603
534
|
active: t["data-selected"],
|
|
604
|
-
primaryColor: (
|
|
605
|
-
secondaryColor: "#FFFFFF"
|
|
535
|
+
primaryColor: (a = t.theme.colors) == null ? void 0 : a.primary,
|
|
536
|
+
secondaryColor: "#FFFFFF",
|
|
537
|
+
theme: t.theme
|
|
606
538
|
});
|
|
607
539
|
}}
|
|
608
540
|
|
|
@@ -612,27 +544,27 @@ const ke = ({
|
|
|
612
544
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
613
545
|
}} 0 0;
|
|
614
546
|
}
|
|
615
|
-
`,
|
|
616
|
-
${(t) =>
|
|
547
|
+
`, yt = d.div`
|
|
548
|
+
${(t) => {
|
|
549
|
+
var e;
|
|
550
|
+
return t["data-direction"] === "vertical" && $`
|
|
617
551
|
> button {
|
|
618
552
|
width: 100%;
|
|
619
553
|
&:not(:last-child) {
|
|
620
|
-
margin-bottom: ${(e)
|
|
621
|
-
var n;
|
|
622
|
-
return (n = e.theme.sizes) == null ? void 0 : n.normal;
|
|
623
|
-
}};
|
|
554
|
+
margin-bottom: ${(e = t.theme.sizes) == null ? void 0 : e.normal};
|
|
624
555
|
}
|
|
625
556
|
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
557
|
+
`;
|
|
558
|
+
}}
|
|
559
|
+
`, $t = () => {
|
|
560
|
+
const [t, e] = T(null), a = W("ArrowLeft"), o = W("ArrowRight"), s = W("ArrowUp"), i = W("ArrowDown");
|
|
629
561
|
return K(() => {
|
|
630
|
-
e(
|
|
631
|
-
}, [
|
|
632
|
-
},
|
|
633
|
-
const [
|
|
634
|
-
|
|
635
|
-
}, e), [e,
|
|
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
|
+
o(t);
|
|
567
|
+
}, e), [e, o, t]);
|
|
636
568
|
return K(
|
|
637
569
|
() => {
|
|
638
570
|
const i = s();
|
|
@@ -641,93 +573,93 @@ const ke = ({
|
|
|
641
573
|
};
|
|
642
574
|
},
|
|
643
575
|
[s]
|
|
644
|
-
),
|
|
645
|
-
}, xt = () => {
|
|
646
|
-
const t =
|
|
576
|
+
), a;
|
|
577
|
+
}, ca = vt, xt = () => {
|
|
578
|
+
const t = Ve(), [e, a] = T([]), o = t.get("favorites");
|
|
647
579
|
K(() => {
|
|
648
|
-
if (
|
|
649
|
-
|
|
580
|
+
if (o) {
|
|
581
|
+
a(o.get());
|
|
650
582
|
const { events: m } = t.get("$widget");
|
|
651
|
-
return m.subscribe("widget:favorites-updated", (
|
|
652
|
-
|
|
583
|
+
return m.subscribe("widget:favorites-updated", (u, { updated: l }) => {
|
|
584
|
+
a([...l]);
|
|
653
585
|
});
|
|
654
586
|
}
|
|
655
587
|
}, []);
|
|
656
|
-
const s = (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(
|
|
657
589
|
(m) => e.indexOf(m) > -1 ? i(m) : s(m),
|
|
658
590
|
[e]
|
|
659
591
|
);
|
|
660
592
|
return [
|
|
661
593
|
e,
|
|
662
|
-
|
|
594
|
+
Ze(
|
|
663
595
|
() => ({
|
|
664
596
|
addFavorite: s,
|
|
665
597
|
removeFavorite: i,
|
|
666
|
-
clearFavorites:
|
|
598
|
+
clearFavorites: r,
|
|
667
599
|
toggleFavorite: c
|
|
668
600
|
}),
|
|
669
601
|
[e]
|
|
670
602
|
)
|
|
671
603
|
];
|
|
672
|
-
},
|
|
673
|
-
const [t, e] =
|
|
674
|
-
return
|
|
675
|
-
},
|
|
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
|
+
}, wt = ({
|
|
676
608
|
format: t = be.YYYY_MM_DD_HH_MM,
|
|
677
609
|
className: e = "",
|
|
678
|
-
byLabel:
|
|
679
|
-
modifiedLabel:
|
|
610
|
+
byLabel: a = "",
|
|
611
|
+
modifiedLabel: o = "",
|
|
680
612
|
publishedLabel: s = "",
|
|
681
613
|
modifiedBy: i = "",
|
|
682
|
-
publishedBy:
|
|
614
|
+
publishedBy: r = "",
|
|
683
615
|
showModified: c = !1,
|
|
684
616
|
showPublished: m = !1,
|
|
685
|
-
modified:
|
|
686
|
-
published:
|
|
617
|
+
modified: f,
|
|
618
|
+
published: u
|
|
687
619
|
}) => {
|
|
688
|
-
const l = m &&
|
|
689
|
-
format: t,
|
|
690
|
-
timestamp: f
|
|
691
|
-
}) : null, h = c && u ? /* @__PURE__ */ a.createElement(ue, {
|
|
620
|
+
const l = m && u ? /* @__PURE__ */ n.createElement(ue, {
|
|
692
621
|
format: t,
|
|
693
622
|
timestamp: u
|
|
623
|
+
}) : null, h = c && f ? /* @__PURE__ */ n.createElement(ue, {
|
|
624
|
+
format: t,
|
|
625
|
+
timestamp: f
|
|
694
626
|
}) : null;
|
|
695
|
-
return !l && !h ? null : /* @__PURE__ */
|
|
627
|
+
return !l && !h ? null : /* @__PURE__ */ n.createElement(U, {
|
|
696
628
|
className: z(e, "humany-metadata")
|
|
697
|
-
}, l && /* @__PURE__ */
|
|
629
|
+
}, l && /* @__PURE__ */ n.createElement(U, {
|
|
698
630
|
className: "humany-published"
|
|
699
|
-
}, s, l,
|
|
631
|
+
}, s, l, a && r && ` ${a.replace("{{editor}}", r)}`), h && /* @__PURE__ */ n.createElement(U, {
|
|
700
632
|
className: "humany-modified"
|
|
701
|
-
}, l && ", ",
|
|
702
|
-
}, ue = d(
|
|
633
|
+
}, l && ", ", o, h, a && i && ` ${a.replace("{{editor}}", i)}`));
|
|
634
|
+
}, Et = wt, ue = d(we)`
|
|
703
635
|
&:not(:first-child) {
|
|
704
636
|
margin-left: 4px;
|
|
705
637
|
}
|
|
706
638
|
&:not(:last-child) {
|
|
707
639
|
margin-right: 4px;
|
|
708
640
|
}
|
|
709
|
-
`,
|
|
641
|
+
`, U = d(ve)`
|
|
710
642
|
font-style: italic;
|
|
711
|
-
`,
|
|
643
|
+
`, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(Nt, {
|
|
712
644
|
className: "humany-guide-list-tags",
|
|
713
645
|
items: t,
|
|
714
|
-
renderItem: ({ id: e, symbol:
|
|
646
|
+
renderItem: ({ id: e, symbol: a, title: o }) => a && /* @__PURE__ */ n.createElement("li", {
|
|
715
647
|
key: e,
|
|
716
648
|
"data-tag": e
|
|
717
|
-
}, /* @__PURE__ */
|
|
649
|
+
}, /* @__PURE__ */ n.createElement(Lt, {
|
|
718
650
|
size: 18,
|
|
719
|
-
symbol:
|
|
720
|
-
title:
|
|
651
|
+
symbol: a,
|
|
652
|
+
title: o
|
|
721
653
|
}))
|
|
722
|
-
}) : null,
|
|
723
|
-
const { params: c } =
|
|
724
|
-
return /* @__PURE__ */
|
|
725
|
-
ref:
|
|
654
|
+
}) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
|
|
655
|
+
const { params: c } = ge();
|
|
656
|
+
return /* @__PURE__ */ n.createElement(zt, {
|
|
657
|
+
ref: r,
|
|
726
658
|
"data-guide": e
|
|
727
|
-
}, /* @__PURE__ */
|
|
659
|
+
}, /* @__PURE__ */ n.createElement(Q, {
|
|
728
660
|
title: t,
|
|
729
661
|
"aria-label": t,
|
|
730
|
-
routeName:
|
|
662
|
+
routeName: a,
|
|
731
663
|
params: j(E(y({}, c), {
|
|
732
664
|
uriName: s || void 0,
|
|
733
665
|
id: void 0,
|
|
@@ -735,11 +667,11 @@ const ke = ({
|
|
|
735
667
|
accordion: void 0
|
|
736
668
|
})),
|
|
737
669
|
text: t
|
|
738
|
-
}, /* @__PURE__ */
|
|
739
|
-
size:
|
|
670
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
671
|
+
size: o,
|
|
740
672
|
symbol: { type: "Svg", content: "caret-up" }
|
|
741
673
|
})), i);
|
|
742
|
-
}),
|
|
674
|
+
}), zt = d.li`
|
|
743
675
|
> a {
|
|
744
676
|
grid-column: 1 / -1
|
|
745
677
|
font-weight: bold;
|
|
@@ -752,21 +684,21 @@ const ke = ({
|
|
|
752
684
|
> div {
|
|
753
685
|
grid-column: 1 / -1
|
|
754
686
|
}
|
|
755
|
-
`,
|
|
756
|
-
(
|
|
757
|
-
var ae =
|
|
687
|
+
`, ua = _(
|
|
688
|
+
(Gt, Fe) => {
|
|
689
|
+
var ae = Gt, {
|
|
758
690
|
expandable: t = !1,
|
|
759
691
|
routing: e = {},
|
|
760
|
-
paramMappers:
|
|
761
|
-
symbolSize:
|
|
692
|
+
paramMappers: a = {},
|
|
693
|
+
symbolSize: o = 11,
|
|
762
694
|
pageRole: s = "link",
|
|
763
695
|
pageCaret: i = "down",
|
|
764
|
-
showTags:
|
|
696
|
+
showTags: r = !1,
|
|
765
697
|
showFavoriteToggle: c = !1,
|
|
766
698
|
localPaging: m = !1,
|
|
767
|
-
onItemClick:
|
|
699
|
+
onItemClick: f = () => {
|
|
768
700
|
},
|
|
769
|
-
dispatch:
|
|
701
|
+
dispatch: u = () => {
|
|
770
702
|
},
|
|
771
703
|
metadata: l = {},
|
|
772
704
|
pageLabel: h,
|
|
@@ -776,11 +708,11 @@ const ke = ({
|
|
|
776
708
|
renderItem: L,
|
|
777
709
|
addFavoriteTooltip: C,
|
|
778
710
|
removeFavoriteCancelLabel: M,
|
|
779
|
-
removeFavoriteConfirmLabel:
|
|
780
|
-
removeFavoriteHeader:
|
|
781
|
-
removeFavoriteLabel:
|
|
782
|
-
removeFavoriteTooltip:
|
|
783
|
-
} = ae,
|
|
711
|
+
removeFavoriteConfirmLabel: ze,
|
|
712
|
+
removeFavoriteHeader: Se,
|
|
713
|
+
removeFavoriteLabel: Ne,
|
|
714
|
+
removeFavoriteTooltip: Le
|
|
715
|
+
} = ae, De = w(ae, [
|
|
784
716
|
"expandable",
|
|
785
717
|
"routing",
|
|
786
718
|
"paramMappers",
|
|
@@ -805,79 +737,79 @@ const ke = ({
|
|
|
805
737
|
"removeFavoriteLabel",
|
|
806
738
|
"removeFavoriteTooltip"
|
|
807
739
|
]);
|
|
808
|
-
const
|
|
809
|
-
guide:
|
|
810
|
-
page:
|
|
811
|
-
} =
|
|
812
|
-
|
|
813
|
-
const
|
|
814
|
-
const { id: b, title: v, tags:
|
|
815
|
-
return /* @__PURE__ */
|
|
740
|
+
const V = qe(), F = Ee(), I = Ge(x), { guide: Ie = "guide", page: Ae = "index" } = e, {
|
|
741
|
+
guide: Te = ({ id: p }) => j({ guide: p }),
|
|
742
|
+
page: ne = () => j()
|
|
743
|
+
} = a, [Ce, Me] = bt();
|
|
744
|
+
et(Fe, () => F.current);
|
|
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", {
|
|
816
748
|
key: b,
|
|
817
749
|
"data-guide": b,
|
|
818
|
-
"has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!
|
|
819
|
-
}, /* @__PURE__ */
|
|
750
|
+
"has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!A).toString()
|
|
751
|
+
}, /* @__PURE__ */ n.createElement(Q, {
|
|
820
752
|
className: "humany-guide-link",
|
|
821
753
|
title: v,
|
|
822
754
|
"aria-label": v,
|
|
823
|
-
routeName:
|
|
824
|
-
onClick: (
|
|
825
|
-
params:
|
|
755
|
+
routeName: Ie,
|
|
756
|
+
onClick: (We) => f(We, p),
|
|
757
|
+
params: Te(p),
|
|
826
758
|
text: v
|
|
827
|
-
}, /* @__PURE__ */
|
|
828
|
-
size:
|
|
759
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
760
|
+
size: o,
|
|
829
761
|
symbol: {
|
|
830
762
|
type: "Svg",
|
|
831
763
|
content: t ? "caret-down" : "caret-right"
|
|
832
764
|
}
|
|
833
|
-
})), c && /* @__PURE__ */
|
|
765
|
+
})), c && /* @__PURE__ */ n.createElement(gt, {
|
|
834
766
|
guideTitle: v,
|
|
835
767
|
addFavoriteTooltip: C,
|
|
836
768
|
removeFavoriteCancelLabel: M,
|
|
837
|
-
removeFavoriteConfirmLabel:
|
|
838
|
-
removeFavoriteHeader:
|
|
839
|
-
removeFavoriteLabel:
|
|
840
|
-
removeFavoriteTooltip:
|
|
841
|
-
isFavorite:
|
|
842
|
-
actions:
|
|
769
|
+
removeFavoriteConfirmLabel: ze,
|
|
770
|
+
removeFavoriteHeader: Se,
|
|
771
|
+
removeFavoriteLabel: Ne,
|
|
772
|
+
removeFavoriteTooltip: Le,
|
|
773
|
+
isFavorite: Ce.indexOf(b) > -1,
|
|
774
|
+
actions: Me,
|
|
843
775
|
id: b
|
|
844
|
-
}),
|
|
845
|
-
tags:
|
|
846
|
-
}), /* @__PURE__ */
|
|
847
|
-
indent: t ? void 0 :
|
|
848
|
-
modified:
|
|
776
|
+
}), r && /* @__PURE__ */ n.createElement(kt, {
|
|
777
|
+
tags: D
|
|
778
|
+
}), /* @__PURE__ */ n.createElement(Dt, E(y({}, l), {
|
|
779
|
+
indent: t ? void 0 : o,
|
|
780
|
+
modified: A,
|
|
849
781
|
published: P,
|
|
850
782
|
publishedBy: B,
|
|
851
|
-
modifiedBy:
|
|
783
|
+
modifiedBy: G
|
|
852
784
|
})));
|
|
853
|
-
},
|
|
854
|
-
(p, b, v) => L ? L(p, b, v,
|
|
855
|
-
[L,
|
|
856
|
-
),
|
|
785
|
+
}, Pe = k(
|
|
786
|
+
(p, b, v) => L ? L(p, b, v, q) : q(p),
|
|
787
|
+
[L, q]
|
|
788
|
+
), Be = k(
|
|
857
789
|
(p) => {
|
|
858
|
-
m && (p.preventDefault(),
|
|
790
|
+
m && (p.preventDefault(), u("page", ne()));
|
|
859
791
|
},
|
|
860
|
-
[
|
|
792
|
+
[u, m]
|
|
861
793
|
);
|
|
862
794
|
K(() => {
|
|
863
|
-
if (
|
|
864
|
-
const p =
|
|
865
|
-
if (p.length === x.length &&
|
|
866
|
-
const v = p[
|
|
795
|
+
if (V && I && I.length < x.length && F.current) {
|
|
796
|
+
const p = F.current.querySelectorAll(".humany-guide-list > ul > li"), b = p[I.length];
|
|
797
|
+
if (p.length === x.length && I.length) {
|
|
798
|
+
const v = p[I.length];
|
|
867
799
|
if (v) {
|
|
868
|
-
const
|
|
800
|
+
const D = v.querySelector(
|
|
869
801
|
".humany-guide-link"
|
|
870
802
|
);
|
|
871
|
-
|
|
803
|
+
D && D.focus();
|
|
872
804
|
}
|
|
873
805
|
} else
|
|
874
|
-
b && new MutationObserver((
|
|
875
|
-
|
|
876
|
-
if (
|
|
806
|
+
b && new MutationObserver((D, P) => {
|
|
807
|
+
D.forEach((A) => {
|
|
808
|
+
if (A.addedNodes) {
|
|
877
809
|
const B = Array.from(
|
|
878
|
-
|
|
879
|
-
).find((
|
|
880
|
-
B && tt(
|
|
810
|
+
A.addedNodes
|
|
811
|
+
).find((G) => G.tagName === "A");
|
|
812
|
+
B && tt(F.current, document.activeElement) && (V && B.focus(), P.disconnect());
|
|
881
813
|
}
|
|
882
814
|
});
|
|
883
815
|
}).observe(b, {
|
|
@@ -890,34 +822,34 @@ const ke = ({
|
|
|
890
822
|
});
|
|
891
823
|
}
|
|
892
824
|
});
|
|
893
|
-
const
|
|
825
|
+
const Re = !!Object.keys(l).filter(
|
|
894
826
|
(p) => typeof l[p] != "undefined"
|
|
895
827
|
).length;
|
|
896
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ n.createElement(St, E(y({
|
|
897
829
|
className: z(S, "humany-guide-list"),
|
|
898
830
|
"data-item-count": x.length,
|
|
899
831
|
items: x,
|
|
900
|
-
renderItem:
|
|
901
|
-
isTabbing:
|
|
832
|
+
renderItem: Pe,
|
|
833
|
+
isTabbing: V,
|
|
902
834
|
expandable: t ? "true" : "false",
|
|
903
|
-
"grid-items":
|
|
904
|
-
},
|
|
905
|
-
ref:
|
|
906
|
-
}), h ? /* @__PURE__ */
|
|
835
|
+
"grid-items": r || c || Re ? "true" : "false"
|
|
836
|
+
}, xe(De)), {
|
|
837
|
+
ref: F
|
|
838
|
+
}), h ? /* @__PURE__ */ n.createElement(Q, {
|
|
907
839
|
text: h,
|
|
908
840
|
title: h,
|
|
909
841
|
"aria-label": h,
|
|
910
|
-
routeName:
|
|
842
|
+
routeName: Ae,
|
|
911
843
|
role: s,
|
|
912
|
-
params:
|
|
913
|
-
onClick:
|
|
914
|
-
}, /* @__PURE__ */
|
|
915
|
-
size:
|
|
844
|
+
params: ne(),
|
|
845
|
+
onClick: Be
|
|
846
|
+
}, /* @__PURE__ */ n.createElement(N, {
|
|
847
|
+
size: o,
|
|
916
848
|
symbol: { type: "Svg", content: `caret-${i}` }
|
|
917
849
|
})) : null, g);
|
|
918
850
|
}
|
|
919
|
-
),
|
|
920
|
-
${
|
|
851
|
+
), St = d(O)`
|
|
852
|
+
${Y}
|
|
921
853
|
padding: ${(t) => {
|
|
922
854
|
var e;
|
|
923
855
|
return (e = t.theme.sizes) == null ? void 0 : e.large;
|
|
@@ -929,16 +861,18 @@ const ke = ({
|
|
|
929
861
|
text-decoration: none;
|
|
930
862
|
|
|
931
863
|
> div {
|
|
932
|
-
${
|
|
864
|
+
${(t) => ee(t)(
|
|
933
865
|
"> h1",
|
|
934
866
|
$`
|
|
935
|
-
|
|
936
|
-
|
|
867
|
+
white-space: pre-wrap;
|
|
868
|
+
`
|
|
937
869
|
)}
|
|
938
870
|
}
|
|
939
871
|
|
|
940
872
|
> ul > li {
|
|
941
|
-
${(t) =>
|
|
873
|
+
${(t) => {
|
|
874
|
+
var e, a;
|
|
875
|
+
return t["grid-items"] === "true" && $`
|
|
942
876
|
display: grid;
|
|
943
877
|
grid-template-columns: auto 1fr 1fr;
|
|
944
878
|
gap: 0px 0px;
|
|
@@ -946,13 +880,10 @@ const ke = ({
|
|
|
946
880
|
align-items: center;
|
|
947
881
|
|
|
948
882
|
> button {
|
|
949
|
-
margin: 0 0 0 ${(e)
|
|
950
|
-
var n;
|
|
951
|
-
return (n = e.theme.sizes) == null ? void 0 : n.small;
|
|
952
|
-
}};
|
|
883
|
+
margin: 0 0 0 ${(e = t.theme.sizes) == null ? void 0 : e.small};
|
|
953
884
|
|
|
954
885
|
&[data-favorite='false'] {
|
|
955
|
-
${
|
|
886
|
+
${t.isTabbing ? "opacity: 0;" : "display: none;"};
|
|
956
887
|
&:focus {
|
|
957
888
|
opacity: 1;
|
|
958
889
|
}
|
|
@@ -960,10 +891,7 @@ const ke = ({
|
|
|
960
891
|
}
|
|
961
892
|
|
|
962
893
|
> span {
|
|
963
|
-
font-size: ${(
|
|
964
|
-
var n;
|
|
965
|
-
return (n = e.theme.fonts) == null ? void 0 : n.small;
|
|
966
|
-
}};
|
|
894
|
+
font-size: ${(a = t.theme.fonts) == null ? void 0 : a.small};
|
|
967
895
|
}
|
|
968
896
|
|
|
969
897
|
&:hover {
|
|
@@ -979,7 +907,8 @@ const ke = ({
|
|
|
979
907
|
'. favorite tags'
|
|
980
908
|
'metadata metadata metadata';
|
|
981
909
|
}
|
|
982
|
-
|
|
910
|
+
`;
|
|
911
|
+
}}
|
|
983
912
|
> a {
|
|
984
913
|
color: ${(t) => {
|
|
985
914
|
var e;
|
|
@@ -1003,7 +932,9 @@ const ke = ({
|
|
|
1003
932
|
}
|
|
1004
933
|
}
|
|
1005
934
|
|
|
1006
|
-
${(t) =>
|
|
935
|
+
${(t) => {
|
|
936
|
+
var e;
|
|
937
|
+
return t.expandable === "true" && $`
|
|
1007
938
|
display: flex;
|
|
1008
939
|
flex-direction: row-reverse;
|
|
1009
940
|
justify-content: flex-end;
|
|
@@ -1015,15 +946,13 @@ const ke = ({
|
|
|
1015
946
|
}
|
|
1016
947
|
|
|
1017
948
|
svg {
|
|
1018
|
-
margin: 0 0 0 ${(e)
|
|
1019
|
-
var n;
|
|
1020
|
-
return (n = e.theme.sizes) == null ? void 0 : n.small;
|
|
1021
|
-
}};
|
|
949
|
+
margin: 0 0 0 ${(e = t.theme.sizes) == null ? void 0 : e.small};
|
|
1022
950
|
}
|
|
1023
|
-
|
|
951
|
+
`;
|
|
952
|
+
}}
|
|
1024
953
|
|
|
1025
954
|
&:focus-visible {
|
|
1026
|
-
${
|
|
955
|
+
${X}
|
|
1027
956
|
text-decoration: underline;
|
|
1028
957
|
}
|
|
1029
958
|
|
|
@@ -1066,12 +995,12 @@ const ke = ({
|
|
|
1066
995
|
}
|
|
1067
996
|
|
|
1068
997
|
&:focus-visible {
|
|
1069
|
-
${
|
|
998
|
+
${X}
|
|
1070
999
|
text-decoration: underline;
|
|
1071
1000
|
}
|
|
1072
1001
|
}
|
|
1073
|
-
`,
|
|
1074
|
-
${
|
|
1002
|
+
`, Nt = d(Z)`
|
|
1003
|
+
${pe}
|
|
1075
1004
|
display: flex;
|
|
1076
1005
|
margin: 0 0 0 auto;
|
|
1077
1006
|
grid-area: tags;
|
|
@@ -1086,7 +1015,7 @@ const ke = ({
|
|
|
1086
1015
|
align-items: center;
|
|
1087
1016
|
justify-content: space-between;
|
|
1088
1017
|
}
|
|
1089
|
-
`,
|
|
1018
|
+
`, Lt = d(N)`
|
|
1090
1019
|
display: block;
|
|
1091
1020
|
color: ${(t) => {
|
|
1092
1021
|
var e;
|
|
@@ -1103,7 +1032,7 @@ const ke = ({
|
|
|
1103
1032
|
font-size: ${t.size}px;
|
|
1104
1033
|
`;
|
|
1105
1034
|
}}
|
|
1106
|
-
`,
|
|
1035
|
+
`, Dt = d(Et)`
|
|
1107
1036
|
grid-area: metadata;
|
|
1108
1037
|
text-overflow: ellipsis;
|
|
1109
1038
|
overflow: hidden;
|
|
@@ -1115,60 +1044,142 @@ const ke = ({
|
|
|
1115
1044
|
var e;
|
|
1116
1045
|
return typeof t.indent == "number" && `text-indent: calc(${(e = t.theme.sizes) == null ? void 0 : e.small} * 2 + ${t.indent}px);`;
|
|
1117
1046
|
}}
|
|
1118
|
-
`,
|
|
1119
|
-
|
|
1047
|
+
`, Ft = he`
|
|
1048
|
+
100% {
|
|
1049
|
+
transform: rotate(360deg);
|
|
1050
|
+
}
|
|
1051
|
+
`, It = he`
|
|
1052
|
+
0% {
|
|
1053
|
+
stroke-dasharray: 1, 200;
|
|
1054
|
+
stroke-dashoffset: 0;
|
|
1055
|
+
}
|
|
1056
|
+
50% {
|
|
1057
|
+
stroke-dasharray: 89, 200;
|
|
1058
|
+
stroke-dashoffset: -35px;
|
|
1059
|
+
}
|
|
1060
|
+
100% {
|
|
1061
|
+
stroke-dasharray: 89, 200;
|
|
1062
|
+
stroke-dashoffset: -124px;
|
|
1063
|
+
}
|
|
1064
|
+
`, At = d.svg`
|
|
1065
|
+
animation: ${Ft} 2s linear infinite;
|
|
1066
|
+
height: 100%;
|
|
1067
|
+
transform-origin: center center;
|
|
1068
|
+
width: 100%;
|
|
1069
|
+
position: absolute;
|
|
1070
|
+
top: 0;
|
|
1071
|
+
bottom: 0;
|
|
1072
|
+
left: 0;
|
|
1073
|
+
right: 0;
|
|
1074
|
+
margin: auto;
|
|
1075
|
+
transition: 200ms ease-out opacity;
|
|
1076
|
+
`, Tt = d.div`
|
|
1077
|
+
position: absolute;
|
|
1078
|
+
top: 0;
|
|
1079
|
+
bottom: 0;
|
|
1080
|
+
left: 0;
|
|
1081
|
+
right: 0;
|
|
1082
|
+
height: 100%;
|
|
1083
|
+
width: 100%;
|
|
1084
|
+
pointer-events: ${(t) => t["data-loading"] ? "all" : "none"};
|
|
1085
|
+
display: flex;
|
|
1086
|
+
flex-direction: column;
|
|
1087
|
+
justify-content: center;
|
|
1088
|
+
transition: 200ms ease-out opacity;
|
|
1089
|
+
box-sizing: border-box;
|
|
1090
|
+
overflow: hidden;
|
|
1091
|
+
|
|
1092
|
+
.humany-spinner-svg {
|
|
1093
|
+
opacity: ${(t) => t["data-loading"] ? "1" : "0"};
|
|
1094
|
+
}
|
|
1095
|
+
`, Ct = d.div`
|
|
1096
|
+
position: relative;
|
|
1097
|
+
margin: 0 auto;
|
|
1098
|
+
width: 100px;
|
|
1099
|
+
&:before {
|
|
1100
|
+
content: '';
|
|
1101
|
+
display: block;
|
|
1102
|
+
padding-top: 100%;
|
|
1103
|
+
}
|
|
1104
|
+
`, Mt = d.circle`
|
|
1105
|
+
stroke-dasharray: 1, 200;
|
|
1106
|
+
stroke-dashoffset: 0;
|
|
1107
|
+
animation: ${It} 1.5s ease-in-out infinite;
|
|
1108
|
+
stroke-linecap: round;
|
|
1109
|
+
stroke: ${(t) => {
|
|
1110
|
+
var e;
|
|
1111
|
+
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
1112
|
+
}};
|
|
1113
|
+
stroke-width: 2px;
|
|
1114
|
+
`, Pt = ({ loading: t = !1 }) => /* @__PURE__ */ n.createElement(Tt, {
|
|
1115
|
+
className: "humany-loader",
|
|
1116
|
+
"data-loading": t
|
|
1117
|
+
}, /* @__PURE__ */ n.createElement(Ct, {
|
|
1118
|
+
className: "humany-spinner"
|
|
1119
|
+
}, /* @__PURE__ */ n.createElement(At, {
|
|
1120
|
+
className: "humany-spinner-svg",
|
|
1121
|
+
viewBox: "25 25 50 50"
|
|
1122
|
+
}, /* @__PURE__ */ n.createElement(Mt, {
|
|
1123
|
+
cx: "50",
|
|
1124
|
+
cy: "50",
|
|
1125
|
+
r: "20",
|
|
1126
|
+
fill: "none",
|
|
1127
|
+
"stroke-width": "2",
|
|
1128
|
+
"stroke-miterlimit": "10"
|
|
1129
|
+
})))), Bt = Pt, Rt = (i) => {
|
|
1130
|
+
var r = i, {
|
|
1120
1131
|
className: t,
|
|
1121
1132
|
showHeader: e,
|
|
1122
|
-
notificationList:
|
|
1123
|
-
loading:
|
|
1124
|
-
} =
|
|
1133
|
+
notificationList: a,
|
|
1134
|
+
loading: o
|
|
1135
|
+
} = r, s = w(r, [
|
|
1125
1136
|
"className",
|
|
1126
1137
|
"showHeader",
|
|
1127
1138
|
"notificationList",
|
|
1128
1139
|
"loading"
|
|
1129
1140
|
]);
|
|
1130
|
-
const [c, m] =
|
|
1131
|
-
id:
|
|
1132
|
-
title:
|
|
1141
|
+
const [c, m] = T(null), {
|
|
1142
|
+
id: f,
|
|
1143
|
+
title: u,
|
|
1133
1144
|
symbol: l,
|
|
1134
1145
|
notifications: h = [],
|
|
1135
1146
|
defaultHeaderOptions: S = { visible: !0 }
|
|
1136
|
-
} =
|
|
1137
|
-
return !h.length && !
|
|
1138
|
-
"data-loading":
|
|
1147
|
+
} = a || {};
|
|
1148
|
+
return !h.length && !o ? null : /* @__PURE__ */ n.createElement(Ht, E(y({}, s), {
|
|
1149
|
+
"data-loading": o,
|
|
1139
1150
|
"data-show-header": typeof e == "boolean" ? e : S.visible,
|
|
1140
1151
|
className: z(t, "humany-notification-list"),
|
|
1141
|
-
"data-notification-category":
|
|
1142
|
-
header:
|
|
1152
|
+
"data-notification-category": f,
|
|
1153
|
+
header: u,
|
|
1143
1154
|
symbol: l,
|
|
1144
1155
|
items: h,
|
|
1145
|
-
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, {
|
|
1146
1157
|
key: g,
|
|
1147
1158
|
"data-notification": g,
|
|
1148
1159
|
"data-expanded": M ? c === g : !0
|
|
1149
|
-
}, M ? /* @__PURE__ */
|
|
1160
|
+
}, M ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(Wt, {
|
|
1150
1161
|
title: x,
|
|
1151
1162
|
"aria-label": x,
|
|
1152
1163
|
"aria-expanded": c === g,
|
|
1153
1164
|
onClick: () => m(c === g ? null : g)
|
|
1154
|
-
}, /* @__PURE__ */
|
|
1165
|
+
}, /* @__PURE__ */ n.createElement("span", null, x), /* @__PURE__ */ n.createElement(Ot, {
|
|
1155
1166
|
size: 11,
|
|
1156
1167
|
symbol: {
|
|
1157
1168
|
type: "Svg",
|
|
1158
1169
|
content: `caret-${c === g ? "up" : "down"}`
|
|
1159
1170
|
}
|
|
1160
|
-
})), /* @__PURE__ */
|
|
1171
|
+
})), /* @__PURE__ */ n.createElement(fe, {
|
|
1161
1172
|
html: L
|
|
1162
|
-
}), C && /* @__PURE__ */
|
|
1173
|
+
}), C && /* @__PURE__ */ n.createElement(Yt, {
|
|
1163
1174
|
format: be.YYYY_MM_DD,
|
|
1164
1175
|
timestamp: C
|
|
1165
|
-
})) : /* @__PURE__ */
|
|
1176
|
+
})) : /* @__PURE__ */ n.createElement(fe, {
|
|
1166
1177
|
html: L
|
|
1167
1178
|
}))
|
|
1168
|
-
}), /* @__PURE__ */
|
|
1169
|
-
loading:
|
|
1179
|
+
}), /* @__PURE__ */ n.createElement(Bt, {
|
|
1180
|
+
loading: o
|
|
1170
1181
|
}));
|
|
1171
|
-
},
|
|
1182
|
+
}, Wt = d(te)`
|
|
1172
1183
|
display: flex;
|
|
1173
1184
|
justify-content: space-between;
|
|
1174
1185
|
align-items: center;
|
|
@@ -1196,7 +1207,7 @@ const ke = ({
|
|
|
1196
1207
|
white-space: nowrap;
|
|
1197
1208
|
}
|
|
1198
1209
|
&:focus-visible {
|
|
1199
|
-
${
|
|
1210
|
+
${X}
|
|
1200
1211
|
span {
|
|
1201
1212
|
color: ${(t) => {
|
|
1202
1213
|
var e;
|
|
@@ -1205,9 +1216,9 @@ const ke = ({
|
|
|
1205
1216
|
text-decoration: underline;
|
|
1206
1217
|
}
|
|
1207
1218
|
}
|
|
1208
|
-
`,
|
|
1209
|
-
${
|
|
1210
|
-
${
|
|
1219
|
+
`, Ht = d(O)`
|
|
1220
|
+
${ut}
|
|
1221
|
+
${Y}
|
|
1211
1222
|
overflow: hidden;
|
|
1212
1223
|
justify-content: flex-start;
|
|
1213
1224
|
padding: ${(t) => {
|
|
@@ -1216,7 +1227,7 @@ const ke = ({
|
|
|
1216
1227
|
}};
|
|
1217
1228
|
${(t) => !t["data-show-header"] && $`
|
|
1218
1229
|
> div {
|
|
1219
|
-
${
|
|
1230
|
+
${ee(t)(
|
|
1220
1231
|
"h1",
|
|
1221
1232
|
$`
|
|
1222
1233
|
display: none;
|
|
@@ -1230,28 +1241,28 @@ const ke = ({
|
|
|
1230
1241
|
text-decoration: underline;
|
|
1231
1242
|
}
|
|
1232
1243
|
}
|
|
1233
|
-
`,
|
|
1234
|
-
${
|
|
1244
|
+
`, fe = d(Ue)`
|
|
1245
|
+
${Je}
|
|
1235
1246
|
font-weight: 300;
|
|
1236
1247
|
|
|
1237
1248
|
p {
|
|
1238
1249
|
white-space: normal;
|
|
1239
1250
|
}
|
|
1240
|
-
`,
|
|
1241
|
-
|
|
1251
|
+
`, jt = d.li`
|
|
1252
|
+
.humany-paragraph {
|
|
1242
1253
|
display: none;
|
|
1243
1254
|
&:not(:only-child) {
|
|
1244
1255
|
${(t) => {
|
|
1245
|
-
var e,
|
|
1246
|
-
return ((e = t.theme.sizes) == null ? void 0 : e.cardinal) && ((
|
|
1247
|
-
margin: ${(
|
|
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
|
+
margin: ${(o = t.theme.sizes) == null ? void 0 : o.normal} 0;
|
|
1248
1259
|
`;
|
|
1249
1260
|
}}
|
|
1250
1261
|
}
|
|
1251
1262
|
}
|
|
1252
1263
|
|
|
1253
1264
|
${(t) => t["data-expanded"] && $`
|
|
1254
|
-
|
|
1265
|
+
.humany-paragraph {
|
|
1255
1266
|
display: block;
|
|
1256
1267
|
}
|
|
1257
1268
|
`}
|
|
@@ -1264,7 +1275,7 @@ const ke = ({
|
|
|
1264
1275
|
return (e = t.theme.colors) == null ? void 0 : e.accent;
|
|
1265
1276
|
}};
|
|
1266
1277
|
}
|
|
1267
|
-
`,
|
|
1278
|
+
`, Ot = d(N)`
|
|
1268
1279
|
margin: 0 0 0 ${(t) => {
|
|
1269
1280
|
var e;
|
|
1270
1281
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
@@ -1275,67 +1286,67 @@ const ke = ({
|
|
|
1275
1286
|
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
1276
1287
|
}};
|
|
1277
1288
|
}
|
|
1278
|
-
`,
|
|
1289
|
+
`, Yt = d(we)`
|
|
1279
1290
|
font-size: ${(t) => {
|
|
1280
1291
|
var e;
|
|
1281
1292
|
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
1282
1293
|
}};
|
|
1283
1294
|
font-weight: 300;
|
|
1284
|
-
`,
|
|
1285
|
-
var s =
|
|
1295
|
+
`, fa = Rt, _t = (t) => new RegExp("^#", "i").test(t), Kt = (t) => (o) => {
|
|
1296
|
+
var s = o, { children: e } = s, a = w(s, ["children"]);
|
|
1286
1297
|
const {
|
|
1287
1298
|
implementation: i,
|
|
1288
|
-
name:
|
|
1289
|
-
} = t.get("$widget"), { href: c = "" } =
|
|
1290
|
-
if (
|
|
1291
|
-
return /* @__PURE__ */
|
|
1299
|
+
name: r
|
|
1300
|
+
} = t.get("$widget"), { href: c = "" } = a;
|
|
1301
|
+
if (_t(c))
|
|
1302
|
+
return /* @__PURE__ */ n.createElement(Qe, {
|
|
1292
1303
|
smooth: !0,
|
|
1293
1304
|
to: c
|
|
1294
1305
|
}, e);
|
|
1295
|
-
const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"),
|
|
1296
|
-
if (
|
|
1297
|
-
const l =
|
|
1298
|
-
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(
|
|
1299
|
-
return /* @__PURE__ */
|
|
1306
|
+
const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), u = new RegExp(`^((http[s]?:)?//)?(${m})/([^\\s]+)`).exec(c);
|
|
1307
|
+
if (u && u.length >= 4) {
|
|
1308
|
+
const l = u[4];
|
|
1309
|
+
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
1310
|
+
return /* @__PURE__ */ n.createElement(Xe, {
|
|
1300
1311
|
widgetName: l
|
|
1301
1312
|
}, e);
|
|
1302
1313
|
}
|
|
1303
|
-
return /* @__PURE__ */
|
|
1304
|
-
},
|
|
1314
|
+
return /* @__PURE__ */ n.createElement("a", y({}, a), e);
|
|
1315
|
+
}, Vt = Kt, qt = (t, e = []) => ({
|
|
1305
1316
|
transform: {
|
|
1306
|
-
a: (
|
|
1307
|
-
const c =
|
|
1317
|
+
a: (a) => {
|
|
1318
|
+
const c = a, { children: o } = c, i = w(c, ["children"])["data-target"];
|
|
1308
1319
|
if (i && e.length) {
|
|
1309
|
-
const m = e.find(({ connection:
|
|
1320
|
+
const m = e.find(({ connection: f }) => f === i);
|
|
1310
1321
|
if (m)
|
|
1311
|
-
return /* @__PURE__ */
|
|
1322
|
+
return /* @__PURE__ */ n.createElement(ke, y({}, m), o);
|
|
1312
1323
|
}
|
|
1313
|
-
return
|
|
1324
|
+
return Vt(t)(a);
|
|
1314
1325
|
}
|
|
1315
1326
|
}
|
|
1316
|
-
});
|
|
1327
|
+
}), ha = qt;
|
|
1317
1328
|
export {
|
|
1318
|
-
|
|
1329
|
+
da as AccordionListItem,
|
|
1319
1330
|
ke as DialogLink,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1331
|
+
ta as DialogList,
|
|
1332
|
+
aa as DrawerList,
|
|
1333
|
+
na as DropdownActions,
|
|
1334
|
+
oa as DropdownList,
|
|
1335
|
+
gt as FavoriteButton,
|
|
1336
|
+
ia as Feedback,
|
|
1337
|
+
ua as GuideList,
|
|
1338
|
+
Bt as Loader,
|
|
1339
|
+
Tt as LoaderWrapper,
|
|
1340
|
+
Et as Metadata,
|
|
1341
|
+
fa as NotificationList,
|
|
1342
|
+
ra as SmallCaret,
|
|
1343
|
+
sa as StyledHeaderText,
|
|
1344
|
+
ft as StyledListButton,
|
|
1345
|
+
ha as guideRenderInstructions,
|
|
1346
|
+
ut as loadingOpacity,
|
|
1347
|
+
la as useArrowKeys,
|
|
1348
|
+
ca as useDebounce,
|
|
1349
|
+
bt as useFavorites,
|
|
1350
|
+
ma as useHover
|
|
1340
1351
|
};
|
|
1341
1352
|
//# sourceMappingURL=index.js.map
|