@gnome-ui/react 1.15.0 → 1.16.0
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/README.md +2 -0
- package/dist/components/Blockquote/Blockquote.d.ts +41 -0
- package/dist/components/Blockquote/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +674 -632
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,6 +2,48 @@ import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { Children as r, cloneElement as i, createContext as a, isValidElement as o, useCallback as s, useContext as c, useEffect as l, useId as u, useRef as d, useState as f } from "react";
|
|
3
3
|
import { createPortal as p } from "react-dom";
|
|
4
4
|
var m = {
|
|
5
|
+
blockquote: "_blockquote_j7x50_3",
|
|
6
|
+
body: "_body_j7x50_15",
|
|
7
|
+
icon: "_icon_j7x50_21",
|
|
8
|
+
content: "_content_j7x50_28",
|
|
9
|
+
footer: "_footer_j7x50_36",
|
|
10
|
+
cite: "_cite_j7x50_42",
|
|
11
|
+
default: "_default_j7x50_48",
|
|
12
|
+
info: "_info_j7x50_52",
|
|
13
|
+
warning: "_warning_j7x50_61",
|
|
14
|
+
error: "_error_j7x50_70",
|
|
15
|
+
success: "_success_j7x50_79"
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/components/Blockquote/Blockquote.tsx
|
|
19
|
+
function h({ variant: e = "default", icon: r, cite: i, children: a, className: o, ...s }) {
|
|
20
|
+
return /* @__PURE__ */ n("blockquote", {
|
|
21
|
+
className: [
|
|
22
|
+
m.blockquote,
|
|
23
|
+
m[e],
|
|
24
|
+
o
|
|
25
|
+
].filter(Boolean).join(" "),
|
|
26
|
+
...s,
|
|
27
|
+
children: [/* @__PURE__ */ n("div", {
|
|
28
|
+
className: m.body,
|
|
29
|
+
children: [r && /* @__PURE__ */ t("span", {
|
|
30
|
+
className: m.icon,
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
children: r
|
|
33
|
+
}), /* @__PURE__ */ t("p", {
|
|
34
|
+
className: m.content,
|
|
35
|
+
children: a
|
|
36
|
+
})]
|
|
37
|
+
}), i !== void 0 && /* @__PURE__ */ t("footer", {
|
|
38
|
+
className: m.footer,
|
|
39
|
+
children: /* @__PURE__ */ t("cite", {
|
|
40
|
+
className: m.cite,
|
|
41
|
+
children: i
|
|
42
|
+
})
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
var g = {
|
|
5
47
|
button: "_button_1qgdy_1",
|
|
6
48
|
pill: "_pill_1qgdy_52",
|
|
7
49
|
circular: "_circular_1qgdy_59",
|
|
@@ -16,14 +58,14 @@ var m = {
|
|
|
16
58
|
};
|
|
17
59
|
//#endregion
|
|
18
60
|
//#region src/components/Button/Button.tsx
|
|
19
|
-
function
|
|
61
|
+
function _({ variant: e = "default", size: t = "md", shape: r = "default", osd: i = !1, leadingIcon: a, trailingIcon: o, children: s, className: c, ...l }) {
|
|
20
62
|
return /* @__PURE__ */ n("button", {
|
|
21
63
|
className: [
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
t === "md" ? null :
|
|
25
|
-
r === "default" ? null :
|
|
26
|
-
i ?
|
|
64
|
+
g.button,
|
|
65
|
+
g[e],
|
|
66
|
+
t === "md" ? null : g[t],
|
|
67
|
+
r === "default" ? null : g[r],
|
|
68
|
+
i ? g.osd : null,
|
|
27
69
|
c
|
|
28
70
|
].filter(Boolean).join(" "),
|
|
29
71
|
...l,
|
|
@@ -36,20 +78,20 @@ function h({ variant: e = "default", size: t = "md", shape: r = "default", osd:
|
|
|
36
78
|
}
|
|
37
79
|
//#endregion
|
|
38
80
|
//#region src/components/Text/Text.module.css
|
|
39
|
-
var
|
|
40
|
-
text:
|
|
81
|
+
var v = "_text_102e3_1", y = "_heading_102e3_41", b = "_body_102e3_48", x = "_document_102e3_55", S = "_caption_102e3_62", C = "_monospace_102e3_78", w = "_numeric_102e3_85", T = {
|
|
82
|
+
text: v,
|
|
41
83
|
"large-title": "_large-title_102e3_9",
|
|
42
84
|
"title-1": "_title-1_102e3_16",
|
|
43
85
|
"title-2": "_title-2_102e3_22",
|
|
44
86
|
"title-3": "_title-3_102e3_28",
|
|
45
87
|
"title-4": "_title-4_102e3_34",
|
|
46
|
-
heading:
|
|
47
|
-
body:
|
|
48
|
-
document:
|
|
49
|
-
caption:
|
|
88
|
+
heading: y,
|
|
89
|
+
body: b,
|
|
90
|
+
document: x,
|
|
91
|
+
caption: S,
|
|
50
92
|
"caption-heading": "_caption-heading_102e3_69",
|
|
51
|
-
monospace:
|
|
52
|
-
numeric:
|
|
93
|
+
monospace: C,
|
|
94
|
+
numeric: w,
|
|
53
95
|
"color-default": "_color-default_102e3_95",
|
|
54
96
|
"color-dim": "_color-dim_102e3_99",
|
|
55
97
|
"color-accent": "_color-accent_102e3_103",
|
|
@@ -57,7 +99,7 @@ var g = "_text_102e3_1", _ = "_heading_102e3_41", v = "_body_102e3_48", y = "_do
|
|
|
57
99
|
"color-success": "_color-success_102e3_111",
|
|
58
100
|
"color-warning": "_color-warning_102e3_115",
|
|
59
101
|
"color-error": "_color-error_102e3_119"
|
|
60
|
-
},
|
|
102
|
+
}, E = {
|
|
61
103
|
"large-title": "h1",
|
|
62
104
|
"title-1": "h1",
|
|
63
105
|
"title-2": "h2",
|
|
@@ -71,12 +113,12 @@ var g = "_text_102e3_1", _ = "_heading_102e3_41", v = "_body_102e3_48", y = "_do
|
|
|
71
113
|
monospace: "code",
|
|
72
114
|
numeric: "span"
|
|
73
115
|
};
|
|
74
|
-
function
|
|
75
|
-
return /* @__PURE__ */ t(r ??
|
|
116
|
+
function D({ variant: e = "body", color: n = "default", as: r, className: i, children: a, ...o }) {
|
|
117
|
+
return /* @__PURE__ */ t(r ?? E[e], {
|
|
76
118
|
className: [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
119
|
+
T.text,
|
|
120
|
+
T[e],
|
|
121
|
+
T[`color-${n}`],
|
|
80
122
|
i
|
|
81
123
|
].filter(Boolean).join(" "),
|
|
82
124
|
...o,
|
|
@@ -85,29 +127,29 @@ function T({ variant: e = "body", color: n = "default", as: r, className: i, chi
|
|
|
85
127
|
}
|
|
86
128
|
//#endregion
|
|
87
129
|
//#region src/components/Card/Card.module.css
|
|
88
|
-
var
|
|
89
|
-
card:
|
|
130
|
+
var O = "_card_7f351_1", k = "_interactive_7f351_19", A = {
|
|
131
|
+
card: O,
|
|
90
132
|
"padding-none": "_padding-none_7f351_12",
|
|
91
133
|
"padding-sm": "_padding-sm_7f351_13",
|
|
92
134
|
"padding-md": "_padding-md_7f351_14",
|
|
93
135
|
"padding-lg": "_padding-lg_7f351_15",
|
|
94
|
-
interactive:
|
|
136
|
+
interactive: k
|
|
95
137
|
};
|
|
96
138
|
//#endregion
|
|
97
139
|
//#region src/components/Card/Card.tsx
|
|
98
|
-
function
|
|
140
|
+
function j({ interactive: e = !1, padding: n = "md", as: r, className: i, children: a, ...o }) {
|
|
99
141
|
return /* @__PURE__ */ t(r ?? (e ? "button" : "div"), {
|
|
100
142
|
className: [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
e ?
|
|
143
|
+
A.card,
|
|
144
|
+
A[`padding-${n}`],
|
|
145
|
+
e ? A.interactive : null,
|
|
104
146
|
i
|
|
105
147
|
].filter(Boolean).join(" "),
|
|
106
148
|
...o,
|
|
107
149
|
children: a
|
|
108
150
|
});
|
|
109
151
|
}
|
|
110
|
-
var
|
|
152
|
+
var M = {
|
|
111
153
|
spinner: "_spinner_101bb_3",
|
|
112
154
|
spin: "_spin_101bb_3",
|
|
113
155
|
sm: "_sm_101bb_15",
|
|
@@ -116,10 +158,10 @@ var A = {
|
|
|
116
158
|
};
|
|
117
159
|
//#endregion
|
|
118
160
|
//#region src/components/Spinner/Spinner.tsx
|
|
119
|
-
function
|
|
161
|
+
function N({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
120
162
|
let a = [
|
|
121
|
-
|
|
122
|
-
|
|
163
|
+
M.spinner,
|
|
164
|
+
M[e],
|
|
123
165
|
r
|
|
124
166
|
].filter(Boolean).join(" ");
|
|
125
167
|
return /* @__PURE__ */ t("span", {
|
|
@@ -130,7 +172,7 @@ function j({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
|
130
172
|
...i
|
|
131
173
|
});
|
|
132
174
|
}
|
|
133
|
-
var
|
|
175
|
+
var P = {
|
|
134
176
|
avatar: "_avatar_1f2cd_3",
|
|
135
177
|
sm: "_sm_1f2cd_17",
|
|
136
178
|
md: "_md_1f2cd_22",
|
|
@@ -147,7 +189,7 @@ var M = {
|
|
|
147
189
|
"color-brown": "_color-brown_1f2cd_75",
|
|
148
190
|
"color-teal": "_color-teal_1f2cd_76",
|
|
149
191
|
"color-slate": "_color-slate_1f2cd_77"
|
|
150
|
-
},
|
|
192
|
+
}, ee = [
|
|
151
193
|
"blue",
|
|
152
194
|
"green",
|
|
153
195
|
"yellow",
|
|
@@ -158,20 +200,20 @@ var M = {
|
|
|
158
200
|
"teal",
|
|
159
201
|
"slate"
|
|
160
202
|
];
|
|
161
|
-
function
|
|
203
|
+
function te(e) {
|
|
162
204
|
let t = 0;
|
|
163
205
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
164
|
-
return
|
|
206
|
+
return ee[t % ee.length];
|
|
165
207
|
}
|
|
166
|
-
function
|
|
208
|
+
function ne(e) {
|
|
167
209
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
168
210
|
return t.length === 0 ? "" : t.length === 1 ? t[0].charAt(0).toUpperCase() : t[0].charAt(0).toUpperCase() + t[t.length - 1].charAt(0).toUpperCase();
|
|
169
211
|
}
|
|
170
|
-
function
|
|
171
|
-
let c = a ?? (e ?
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
n ? null :
|
|
212
|
+
function re({ name: e = "", src: n, alt: r, size: i = "md", color: a, className: o, ...s }) {
|
|
213
|
+
let c = a ?? (e ? te(e) : "blue"), l = ne(e), u = [
|
|
214
|
+
P.avatar,
|
|
215
|
+
P[i],
|
|
216
|
+
n ? null : P[`color-${c}`],
|
|
175
217
|
o
|
|
176
218
|
].filter(Boolean).join(" ");
|
|
177
219
|
return /* @__PURE__ */ t("span", {
|
|
@@ -182,25 +224,25 @@ function te({ name: e = "", src: n, alt: r, size: i = "md", color: a, className:
|
|
|
182
224
|
children: n ? /* @__PURE__ */ t("img", {
|
|
183
225
|
src: n,
|
|
184
226
|
alt: r ?? e,
|
|
185
|
-
className:
|
|
227
|
+
className: P.image
|
|
186
228
|
}) : /* @__PURE__ */ t("span", {
|
|
187
229
|
"aria-hidden": "true",
|
|
188
|
-
className:
|
|
230
|
+
className: P.initials,
|
|
189
231
|
children: l
|
|
190
232
|
})
|
|
191
233
|
});
|
|
192
234
|
}
|
|
193
|
-
var
|
|
235
|
+
var ie = {
|
|
194
236
|
separator: "_separator_w9b4s_3",
|
|
195
237
|
horizontal: "_horizontal_w9b4s_12",
|
|
196
238
|
vertical: "_vertical_w9b4s_20"
|
|
197
239
|
};
|
|
198
240
|
//#endregion
|
|
199
241
|
//#region src/components/Separator/Separator.tsx
|
|
200
|
-
function
|
|
242
|
+
function ae({ orientation: e = "horizontal", className: n, ...r }) {
|
|
201
243
|
let i = [
|
|
202
|
-
|
|
203
|
-
e === "vertical" ?
|
|
244
|
+
ie.separator,
|
|
245
|
+
e === "vertical" ? ie.vertical : ie.horizontal,
|
|
204
246
|
n
|
|
205
247
|
].filter(Boolean).join(" ");
|
|
206
248
|
return e === "vertical" ? /* @__PURE__ */ t("div", {
|
|
@@ -215,32 +257,32 @@ function re({ orientation: e = "horizontal", className: n, ...r }) {
|
|
|
215
257
|
}
|
|
216
258
|
//#endregion
|
|
217
259
|
//#region src/components/Switch/Switch.module.css
|
|
218
|
-
var
|
|
260
|
+
var oe = { switch: "_switch_1h6fk_3" };
|
|
219
261
|
//#endregion
|
|
220
262
|
//#region src/components/Switch/Switch.tsx
|
|
221
|
-
function
|
|
263
|
+
function se({ className: e, ...n }) {
|
|
222
264
|
return /* @__PURE__ */ t("input", {
|
|
223
265
|
type: "checkbox",
|
|
224
266
|
role: "switch",
|
|
225
|
-
className: [
|
|
267
|
+
className: [oe.switch, e].filter(Boolean).join(" "),
|
|
226
268
|
...n
|
|
227
269
|
});
|
|
228
270
|
}
|
|
229
|
-
var
|
|
271
|
+
var ce = { checkbox: "_checkbox_jnffk_3" };
|
|
230
272
|
//#endregion
|
|
231
273
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
232
|
-
function
|
|
274
|
+
function le({ indeterminate: e = !1, className: n, ...r }) {
|
|
233
275
|
let i = d(null);
|
|
234
276
|
return l(() => {
|
|
235
277
|
i.current && (i.current.indeterminate = e);
|
|
236
278
|
}, [e]), /* @__PURE__ */ t("input", {
|
|
237
279
|
ref: i,
|
|
238
280
|
type: "checkbox",
|
|
239
|
-
className: [
|
|
281
|
+
className: [ce.checkbox, n].filter(Boolean).join(" "),
|
|
240
282
|
...r
|
|
241
283
|
});
|
|
242
284
|
}
|
|
243
|
-
var
|
|
285
|
+
var F = {
|
|
244
286
|
wrapper: "_wrapper_q91d8_3",
|
|
245
287
|
disabled: "_disabled_q91d8_9",
|
|
246
288
|
label: "_label_q91d8_15",
|
|
@@ -251,14 +293,14 @@ var ce = {
|
|
|
251
293
|
};
|
|
252
294
|
//#endregion
|
|
253
295
|
//#region src/components/TextField/TextField.tsx
|
|
254
|
-
function
|
|
296
|
+
function ue({ label: e, helperText: r, error: i, id: a, className: o, disabled: s, ...c }) {
|
|
255
297
|
let l = u(), d = a ?? l, f = `${d}-help`;
|
|
256
298
|
return /* @__PURE__ */ n("div", {
|
|
257
|
-
className: [
|
|
299
|
+
className: [F.wrapper, s ? F.disabled : null].filter(Boolean).join(" "),
|
|
258
300
|
children: [
|
|
259
301
|
e && /* @__PURE__ */ t("label", {
|
|
260
302
|
htmlFor: d,
|
|
261
|
-
className:
|
|
303
|
+
className: F.label,
|
|
262
304
|
children: e
|
|
263
305
|
}),
|
|
264
306
|
/* @__PURE__ */ t("input", {
|
|
@@ -267,31 +309,31 @@ function le({ label: e, helperText: r, error: i, id: a, className: o, disabled:
|
|
|
267
309
|
"aria-describedby": i || r ? f : void 0,
|
|
268
310
|
"aria-invalid": i ? !0 : void 0,
|
|
269
311
|
className: [
|
|
270
|
-
|
|
271
|
-
i ?
|
|
312
|
+
F.input,
|
|
313
|
+
i ? F.errorInput : null,
|
|
272
314
|
o
|
|
273
315
|
].filter(Boolean).join(" "),
|
|
274
316
|
...c
|
|
275
317
|
}),
|
|
276
318
|
(i || r) && /* @__PURE__ */ t("span", {
|
|
277
319
|
id: f,
|
|
278
|
-
className: [
|
|
320
|
+
className: [F.hint, i ? F.errorHint : null].filter(Boolean).join(" "),
|
|
279
321
|
children: i ?? r
|
|
280
322
|
})
|
|
281
323
|
]
|
|
282
324
|
});
|
|
283
325
|
}
|
|
284
|
-
var
|
|
326
|
+
var de = { radio: "_radio_1vybt_3" };
|
|
285
327
|
//#endregion
|
|
286
328
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
287
|
-
function
|
|
329
|
+
function fe({ className: e, ...n }) {
|
|
288
330
|
return /* @__PURE__ */ t("input", {
|
|
289
331
|
type: "radio",
|
|
290
|
-
className: [
|
|
332
|
+
className: [de.radio, e].filter(Boolean).join(" "),
|
|
291
333
|
...n
|
|
292
334
|
});
|
|
293
335
|
}
|
|
294
|
-
var
|
|
336
|
+
var pe = {
|
|
295
337
|
track: "_track_n3qbv_3",
|
|
296
338
|
fill: "_fill_n3qbv_14",
|
|
297
339
|
indeterminate: "_indeterminate_n3qbv_24",
|
|
@@ -299,7 +341,7 @@ var fe = {
|
|
|
299
341
|
};
|
|
300
342
|
//#endregion
|
|
301
343
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
302
|
-
function
|
|
344
|
+
function me({ value: e, className: n, "aria-label": r, "aria-labelledby": i, ...a }) {
|
|
303
345
|
let o = e == null, s = o ? void 0 : Math.min(1, Math.max(0, e)), c = s === void 0 ? void 0 : s * 100;
|
|
304
346
|
return /* @__PURE__ */ t("div", {
|
|
305
347
|
role: "progressbar",
|
|
@@ -308,56 +350,56 @@ function pe({ value: e, className: n, "aria-label": r, "aria-labelledby": i, ...
|
|
|
308
350
|
"aria-valuenow": s === void 0 ? void 0 : Math.round(c),
|
|
309
351
|
"aria-valuemin": o ? void 0 : 0,
|
|
310
352
|
"aria-valuemax": o ? void 0 : 100,
|
|
311
|
-
className: [
|
|
353
|
+
className: [pe.track, n].filter(Boolean).join(" "),
|
|
312
354
|
...a,
|
|
313
355
|
children: /* @__PURE__ */ t("div", {
|
|
314
|
-
className: [
|
|
356
|
+
className: [pe.fill, o ? pe.indeterminate : null].filter(Boolean).join(" "),
|
|
315
357
|
style: o ? void 0 : { width: `${c}%` }
|
|
316
358
|
})
|
|
317
359
|
});
|
|
318
360
|
}
|
|
319
361
|
//#endregion
|
|
320
362
|
//#region src/components/Banner/Banner.module.css
|
|
321
|
-
var
|
|
322
|
-
banner:
|
|
323
|
-
message:
|
|
324
|
-
actions:
|
|
325
|
-
actionBtn:
|
|
326
|
-
dismissBtn:
|
|
327
|
-
info:
|
|
363
|
+
var he = "_banner_1x3b0_3", ge = "_message_1x3b0_17", _e = "_actions_1x3b0_24", ve = "_actionBtn_1x3b0_33", ye = "_dismissBtn_1x3b0_55", be = "_info_1x3b0_85", xe = "_warning_1x3b0_99", Se = "_error_1x3b0_113", Ce = "_success_1x3b0_127", we = {
|
|
364
|
+
banner: he,
|
|
365
|
+
message: ge,
|
|
366
|
+
actions: _e,
|
|
367
|
+
actionBtn: ve,
|
|
368
|
+
dismissBtn: ye,
|
|
369
|
+
info: be,
|
|
328
370
|
"actionBtn-info": "_actionBtn-info_1x3b0_90",
|
|
329
|
-
warning:
|
|
371
|
+
warning: xe,
|
|
330
372
|
"actionBtn-warning": "_actionBtn-warning_1x3b0_104",
|
|
331
|
-
error:
|
|
373
|
+
error: Se,
|
|
332
374
|
"actionBtn-error": "_actionBtn-error_1x3b0_118",
|
|
333
|
-
success:
|
|
375
|
+
success: Ce,
|
|
334
376
|
"actionBtn-success": "_actionBtn-success_1x3b0_132"
|
|
335
377
|
};
|
|
336
378
|
//#endregion
|
|
337
379
|
//#region src/components/Banner/Banner.tsx
|
|
338
|
-
function
|
|
380
|
+
function Te({ variant: e = "info", children: r, actionLabel: i, onAction: a, dismissible: o = !1, onDismiss: s, className: c, ...l }) {
|
|
339
381
|
return /* @__PURE__ */ n("div", {
|
|
340
382
|
role: "status",
|
|
341
383
|
"aria-live": "polite",
|
|
342
384
|
className: [
|
|
343
|
-
|
|
344
|
-
|
|
385
|
+
we.banner,
|
|
386
|
+
we[e],
|
|
345
387
|
c
|
|
346
388
|
].filter(Boolean).join(" "),
|
|
347
389
|
...l,
|
|
348
390
|
children: [/* @__PURE__ */ t("span", {
|
|
349
|
-
className:
|
|
391
|
+
className: we.message,
|
|
350
392
|
children: r
|
|
351
393
|
}), (i || o) && /* @__PURE__ */ n("span", {
|
|
352
|
-
className:
|
|
394
|
+
className: we.actions,
|
|
353
395
|
children: [i && /* @__PURE__ */ t("button", {
|
|
354
396
|
type: "button",
|
|
355
|
-
className: [
|
|
397
|
+
className: [we.actionBtn, we[`actionBtn-${e}`]].filter(Boolean).join(" "),
|
|
356
398
|
onClick: a,
|
|
357
399
|
children: i
|
|
358
400
|
}), o && /* @__PURE__ */ t("button", {
|
|
359
401
|
type: "button",
|
|
360
|
-
className:
|
|
402
|
+
className: we.dismissBtn,
|
|
361
403
|
onClick: s,
|
|
362
404
|
"aria-label": "Dismiss",
|
|
363
405
|
children: /* @__PURE__ */ t("svg", {
|
|
@@ -372,7 +414,7 @@ function we({ variant: e = "info", children: r, actionLabel: i, onAction: a, dis
|
|
|
372
414
|
})]
|
|
373
415
|
});
|
|
374
416
|
}
|
|
375
|
-
var
|
|
417
|
+
var Ee = {
|
|
376
418
|
headerBar: "_headerBar_1rr5r_3",
|
|
377
419
|
flat: "_flat_1rr5r_22",
|
|
378
420
|
slot: "_slot_1rr5r_29",
|
|
@@ -382,35 +424,35 @@ var Te = {
|
|
|
382
424
|
};
|
|
383
425
|
//#endregion
|
|
384
426
|
//#region src/components/HeaderBar/HeaderBar.tsx
|
|
385
|
-
function
|
|
427
|
+
function De({ title: e, start: r, end: i, flat: a = !1, className: o, ...s }) {
|
|
386
428
|
return /* @__PURE__ */ n("header", {
|
|
387
429
|
className: [
|
|
388
|
-
|
|
389
|
-
a ?
|
|
430
|
+
Ee.headerBar,
|
|
431
|
+
a ? Ee.flat : null,
|
|
390
432
|
o
|
|
391
433
|
].filter(Boolean).join(" "),
|
|
392
434
|
...s,
|
|
393
435
|
children: [
|
|
394
436
|
/* @__PURE__ */ t("div", {
|
|
395
|
-
className:
|
|
437
|
+
className: Ee.slot,
|
|
396
438
|
children: r
|
|
397
439
|
}),
|
|
398
440
|
/* @__PURE__ */ t("div", {
|
|
399
|
-
className:
|
|
441
|
+
className: Ee.titleSlot,
|
|
400
442
|
"aria-live": "polite",
|
|
401
443
|
children: typeof e == "string" ? /* @__PURE__ */ t("span", {
|
|
402
|
-
className:
|
|
444
|
+
className: Ee.title,
|
|
403
445
|
children: e
|
|
404
446
|
}) : e
|
|
405
447
|
}),
|
|
406
448
|
/* @__PURE__ */ t("div", {
|
|
407
|
-
className: [
|
|
449
|
+
className: [Ee.slot, Ee.slotEnd].filter(Boolean).join(" "),
|
|
408
450
|
children: i
|
|
409
451
|
})
|
|
410
452
|
]
|
|
411
453
|
});
|
|
412
454
|
}
|
|
413
|
-
var
|
|
455
|
+
var Oe = {
|
|
414
456
|
footer: "_footer_10xz9_3",
|
|
415
457
|
flat: "_flat_10xz9_23",
|
|
416
458
|
slot: "_slot_10xz9_29",
|
|
@@ -419,31 +461,31 @@ var De = {
|
|
|
419
461
|
};
|
|
420
462
|
//#endregion
|
|
421
463
|
//#region src/components/Footer/Footer.tsx
|
|
422
|
-
function
|
|
464
|
+
function ke({ start: e, end: r, children: i, flat: a = !1, className: o, ...s }) {
|
|
423
465
|
return /* @__PURE__ */ n("footer", {
|
|
424
466
|
className: [
|
|
425
|
-
|
|
426
|
-
a ?
|
|
467
|
+
Oe.footer,
|
|
468
|
+
a ? Oe.flat : null,
|
|
427
469
|
o
|
|
428
470
|
].filter(Boolean).join(" "),
|
|
429
471
|
...s,
|
|
430
472
|
children: [
|
|
431
473
|
/* @__PURE__ */ t("div", {
|
|
432
|
-
className:
|
|
474
|
+
className: Oe.slot,
|
|
433
475
|
children: e
|
|
434
476
|
}),
|
|
435
477
|
i != null && /* @__PURE__ */ t("div", {
|
|
436
|
-
className:
|
|
478
|
+
className: Oe.center,
|
|
437
479
|
children: i
|
|
438
480
|
}),
|
|
439
481
|
/* @__PURE__ */ t("div", {
|
|
440
|
-
className: [
|
|
482
|
+
className: [Oe.slot, Oe.slotEnd].filter(Boolean).join(" "),
|
|
441
483
|
children: r
|
|
442
484
|
})
|
|
443
485
|
]
|
|
444
486
|
});
|
|
445
487
|
}
|
|
446
|
-
var
|
|
488
|
+
var Ae = {
|
|
447
489
|
wrapper: "_wrapper_1apop_3",
|
|
448
490
|
badge: "_badge_1apop_11",
|
|
449
491
|
anchored: "_anchored_1apop_32",
|
|
@@ -456,32 +498,32 @@ var ke = {
|
|
|
456
498
|
};
|
|
457
499
|
//#endregion
|
|
458
500
|
//#region src/components/Badge/Badge.tsx
|
|
459
|
-
function
|
|
501
|
+
function je({ variant: e = "accent", dot: r = !1, children: i, anchor: a, className: o, ...s }) {
|
|
460
502
|
let c = /* @__PURE__ */ t("span", {
|
|
461
503
|
className: [
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
r ?
|
|
465
|
-
a ?
|
|
504
|
+
Ae.badge,
|
|
505
|
+
Ae[e],
|
|
506
|
+
r ? Ae.dot : null,
|
|
507
|
+
a ? Ae.anchored : null,
|
|
466
508
|
o
|
|
467
509
|
].filter(Boolean).join(" "),
|
|
468
510
|
...s,
|
|
469
511
|
children: !r && i
|
|
470
512
|
});
|
|
471
513
|
return a ? /* @__PURE__ */ n("span", {
|
|
472
|
-
className:
|
|
514
|
+
className: Ae.wrapper,
|
|
473
515
|
children: [a, c]
|
|
474
516
|
}) : c;
|
|
475
517
|
}
|
|
476
518
|
//#endregion
|
|
477
519
|
//#region src/components/Icon/Icon.tsx
|
|
478
|
-
var
|
|
520
|
+
var Me = {
|
|
479
521
|
sm: 12,
|
|
480
522
|
md: 16,
|
|
481
523
|
lg: 20
|
|
482
524
|
};
|
|
483
|
-
function
|
|
484
|
-
let s =
|
|
525
|
+
function I({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
526
|
+
let s = Me[n];
|
|
485
527
|
return /* @__PURE__ */ t("svg", {
|
|
486
528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
487
529
|
viewBox: e.viewBox,
|
|
@@ -502,43 +544,43 @@ function F({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
|
502
544
|
}
|
|
503
545
|
//#endregion
|
|
504
546
|
//#region ../icons/dist/index.js
|
|
505
|
-
var
|
|
547
|
+
var Ne = {
|
|
506
548
|
viewBox: "0 0 16 16",
|
|
507
549
|
paths: [{
|
|
508
550
|
d: "m2.5 5 5.5 6 5.5-6z",
|
|
509
551
|
fillRule: "evenodd"
|
|
510
552
|
}]
|
|
511
|
-
},
|
|
553
|
+
}, Pe = {
|
|
512
554
|
viewBox: "0 0 16 16",
|
|
513
555
|
paths: [{
|
|
514
556
|
d: "M3.293 3.293a1 1 0 0 1 1.414 0L8 6.586l3.293-3.293a1 1 0 1 1 1.414 1.414L9.414 8l3.293 3.293a1 1 0 0 1-1.414 1.414L8 9.414l-3.293 3.293a1 1 0 0 1-1.414-1.414L6.586 8 3.293 4.707a1 1 0 0 1 0-1.414z",
|
|
515
557
|
fillRule: "evenodd"
|
|
516
558
|
}]
|
|
517
|
-
},
|
|
559
|
+
}, Fe = {
|
|
518
560
|
viewBox: "0 0 16 16",
|
|
519
561
|
paths: [{
|
|
520
562
|
d: "M6.5 1a5.5 5.5 0 0 1 4.33 8.92l3.13 3.13-1.41 1.41-3.13-3.13A5.5 5.5 0 1 1 6.5 1zm0 2a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7z",
|
|
521
563
|
fillRule: "evenodd"
|
|
522
564
|
}]
|
|
523
|
-
},
|
|
565
|
+
}, Ie = {
|
|
524
566
|
viewBox: "0 0 16 16",
|
|
525
567
|
paths: [{
|
|
526
568
|
d: "M8 3C4.5 3 1.5 5.667 0 8c1.5 2.333 4.5 5 8 5s6.5-2.667 8-5c-1.5-2.333-4.5-5-8-5zm0 8a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-4.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3z",
|
|
527
569
|
fillRule: "evenodd"
|
|
528
570
|
}]
|
|
529
|
-
},
|
|
571
|
+
}, Le = {
|
|
530
572
|
viewBox: "0 0 16 16",
|
|
531
573
|
paths: [{
|
|
532
574
|
d: "M1.293 1.293a1 1 0 0 1 1.414 0l12 12a1 1 0 0 1-1.414 1.414l-1.88-1.88A8.8 8.8 0 0 1 8 13C4.5 13 1.5 10.333 0 8c.637-1.023 1.52-2.049 2.6-2.893L1.293 2.707a1 1 0 0 1 0-1.414zM5.03 6.444 7.09 8.505A1.5 1.5 0 0 0 9.494 6.91L7.432 4.848A3 3 0 0 0 5.03 6.444zM8 3c.645 0 1.27.083 1.867.237l-1.59 1.59A3 3 0 0 0 5.173 7.92L3.584 6.333C4.51 4.95 6.152 3 8 3zm5.4 2.107C14.48 5.951 15.363 6.977 16 8c-1.5 2.333-4.5 5-8 5a8.8 8.8 0 0 1-2.072-.249l1.538-1.538a3 3 0 0 0 3.703-3.703L12.81 5.87c.202.076.4.156.59.237z",
|
|
533
575
|
fillRule: "evenodd"
|
|
534
576
|
}]
|
|
535
|
-
},
|
|
577
|
+
}, Re = {
|
|
536
578
|
viewBox: "0 0 16 16",
|
|
537
579
|
paths: [{
|
|
538
580
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
539
581
|
fillRule: "evenodd"
|
|
540
582
|
}]
|
|
541
|
-
},
|
|
583
|
+
}, ze = {
|
|
542
584
|
wrapper: "_wrapper_1rkb1_3",
|
|
543
585
|
open: "_open_1rkb1_13",
|
|
544
586
|
bar: "_bar_1rkb1_20",
|
|
@@ -551,7 +593,7 @@ var Me = {
|
|
|
551
593
|
};
|
|
552
594
|
//#endregion
|
|
553
595
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
554
|
-
function
|
|
596
|
+
function Be({ open: e, onClose: r, onClear: i, children: a, value: o, onChange: c, placeholder: u = "Search…", disabled: f, inline: p = !1, className: m, ...h }) {
|
|
555
597
|
let g = d(null);
|
|
556
598
|
l(() => {
|
|
557
599
|
if (e) {
|
|
@@ -564,23 +606,23 @@ function Re({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
564
606
|
}, [r, h]), v = o !== void 0 && o !== "";
|
|
565
607
|
return /* @__PURE__ */ n("div", {
|
|
566
608
|
className: [
|
|
567
|
-
|
|
568
|
-
e ?
|
|
609
|
+
ze.wrapper,
|
|
610
|
+
e ? ze.open : null,
|
|
569
611
|
m
|
|
570
612
|
].filter(Boolean).join(" "),
|
|
571
613
|
"aria-hidden": !e,
|
|
572
614
|
children: [/* @__PURE__ */ n("div", {
|
|
573
615
|
className: [
|
|
574
|
-
|
|
575
|
-
p ?
|
|
576
|
-
f ?
|
|
616
|
+
ze.bar,
|
|
617
|
+
p ? ze.inline : null,
|
|
618
|
+
f ? ze.disabled : null
|
|
577
619
|
].filter(Boolean).join(" "),
|
|
578
620
|
children: [
|
|
579
621
|
/* @__PURE__ */ t("span", {
|
|
580
|
-
className:
|
|
622
|
+
className: ze.searchIcon,
|
|
581
623
|
"aria-hidden": !0,
|
|
582
|
-
children: /* @__PURE__ */ t(
|
|
583
|
-
icon:
|
|
624
|
+
children: /* @__PURE__ */ t(I, {
|
|
625
|
+
icon: Fe,
|
|
584
626
|
size: "md"
|
|
585
627
|
})
|
|
586
628
|
}),
|
|
@@ -593,32 +635,32 @@ function Re({ open: e, onClose: r, onClear: i, children: a, value: o, onChange:
|
|
|
593
635
|
placeholder: u,
|
|
594
636
|
disabled: f,
|
|
595
637
|
tabIndex: e ? void 0 : -1,
|
|
596
|
-
className:
|
|
638
|
+
className: ze.input,
|
|
597
639
|
onKeyDown: _,
|
|
598
640
|
...h
|
|
599
641
|
}),
|
|
600
642
|
v && /* @__PURE__ */ t("button", {
|
|
601
643
|
type: "button",
|
|
602
|
-
className:
|
|
644
|
+
className: ze.clearButton,
|
|
603
645
|
"aria-label": "Clear search",
|
|
604
646
|
tabIndex: e ? void 0 : -1,
|
|
605
647
|
disabled: f,
|
|
606
648
|
onClick: () => {
|
|
607
649
|
i?.(), g.current?.focus();
|
|
608
650
|
},
|
|
609
|
-
children: /* @__PURE__ */ t(
|
|
610
|
-
icon:
|
|
651
|
+
children: /* @__PURE__ */ t(I, {
|
|
652
|
+
icon: Pe,
|
|
611
653
|
size: "md"
|
|
612
654
|
})
|
|
613
655
|
})
|
|
614
656
|
]
|
|
615
657
|
}), a && /* @__PURE__ */ t("div", {
|
|
616
|
-
className:
|
|
658
|
+
className: ze.filterRow,
|
|
617
659
|
children: a
|
|
618
660
|
})]
|
|
619
661
|
});
|
|
620
662
|
}
|
|
621
|
-
var
|
|
663
|
+
var Ve = {
|
|
622
664
|
page: "_page_cb4hq_3",
|
|
623
665
|
iconWrap: "_iconWrap_cb4hq_20",
|
|
624
666
|
title: "_title_cb4hq_33",
|
|
@@ -628,8 +670,8 @@ var ze = {
|
|
|
628
670
|
};
|
|
629
671
|
//#endregion
|
|
630
672
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
631
|
-
function
|
|
632
|
-
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(
|
|
673
|
+
function He({ icon: e, iconNode: r, title: i, description: a, children: o, compact: s = !1, className: c, ...l }) {
|
|
674
|
+
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(I, {
|
|
633
675
|
icon: e,
|
|
634
676
|
width: u,
|
|
635
677
|
height: u,
|
|
@@ -637,27 +679,27 @@ function Be({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
637
679
|
}) : r ?? null;
|
|
638
680
|
return /* @__PURE__ */ n("div", {
|
|
639
681
|
className: [
|
|
640
|
-
|
|
641
|
-
s ?
|
|
682
|
+
Ve.page,
|
|
683
|
+
s ? Ve.compact : null,
|
|
642
684
|
c
|
|
643
685
|
].filter(Boolean).join(" "),
|
|
644
686
|
...l,
|
|
645
687
|
children: [
|
|
646
688
|
d && /* @__PURE__ */ t("div", {
|
|
647
|
-
className:
|
|
689
|
+
className: Ve.iconWrap,
|
|
648
690
|
"aria-hidden": "true",
|
|
649
691
|
children: d
|
|
650
692
|
}),
|
|
651
693
|
/* @__PURE__ */ t("p", {
|
|
652
|
-
className:
|
|
694
|
+
className: Ve.title,
|
|
653
695
|
children: i
|
|
654
696
|
}),
|
|
655
697
|
a && /* @__PURE__ */ t("p", {
|
|
656
|
-
className:
|
|
698
|
+
className: Ve.description,
|
|
657
699
|
children: a
|
|
658
700
|
}),
|
|
659
701
|
o && /* @__PURE__ */ t("div", {
|
|
660
|
-
className:
|
|
702
|
+
className: Ve.actions,
|
|
661
703
|
children: o
|
|
662
704
|
})
|
|
663
705
|
]
|
|
@@ -665,18 +707,18 @@ function Be({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
665
707
|
}
|
|
666
708
|
//#endregion
|
|
667
709
|
//#region src/hooks/useBreakpoint.ts
|
|
668
|
-
var
|
|
710
|
+
var Ue = {
|
|
669
711
|
narrow: 400,
|
|
670
712
|
medium: 550,
|
|
671
713
|
wide: 860
|
|
672
714
|
};
|
|
673
|
-
function
|
|
715
|
+
function We() {
|
|
674
716
|
let e = () => {
|
|
675
717
|
let e = typeof window < "u" ? window.innerWidth : 1280;
|
|
676
718
|
return {
|
|
677
|
-
isNarrow: e <=
|
|
678
|
-
isMedium: e <=
|
|
679
|
-
isWide: e <=
|
|
719
|
+
isNarrow: e <= Ue.narrow,
|
|
720
|
+
isMedium: e <= Ue.medium,
|
|
721
|
+
isWide: e <= Ue.wide,
|
|
680
722
|
width: e
|
|
681
723
|
};
|
|
682
724
|
}, [t, n] = f(e);
|
|
@@ -687,46 +729,46 @@ function He() {
|
|
|
687
729
|
}
|
|
688
730
|
//#endregion
|
|
689
731
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
690
|
-
var
|
|
691
|
-
sidebar:
|
|
692
|
-
section:
|
|
693
|
-
sectionTitle:
|
|
694
|
-
list:
|
|
695
|
-
item:
|
|
696
|
-
itemBtn:
|
|
697
|
-
active:
|
|
698
|
-
itemIcon:
|
|
699
|
-
itemLabel:
|
|
700
|
-
itemSuffix:
|
|
701
|
-
contextMenu:
|
|
732
|
+
var Ge = "_sidebar_b80pp_3", Ke = "_section_b80pp_21", qe = "_sectionTitle_b80pp_33", Je = "_list_b80pp_47", Ye = "_item_b80pp_58", Xe = "_itemBtn_b80pp_64", Ze = "_active_b80pp_111", Qe = "_itemIcon_b80pp_127", $e = "_itemLabel_b80pp_140", et = "_itemSuffix_b80pp_150", tt = "_contextMenu_b80pp_159", nt = "_contextMenuItem_b80pp_183", rt = "_contextMenuDestructive_b80pp_219", it = "_searchWrap_b80pp_225", at = "_pageMode_b80pp_236", ot = "_dragOver_b80pp_243", st = "_collapsed_b80pp_251", ct = "_itemCollapsed_b80pp_262", L = {
|
|
733
|
+
sidebar: Ge,
|
|
734
|
+
section: Ke,
|
|
735
|
+
sectionTitle: qe,
|
|
736
|
+
list: Je,
|
|
737
|
+
item: Ye,
|
|
738
|
+
itemBtn: Xe,
|
|
739
|
+
active: Ze,
|
|
740
|
+
itemIcon: Qe,
|
|
741
|
+
itemLabel: $e,
|
|
742
|
+
itemSuffix: et,
|
|
743
|
+
contextMenu: tt,
|
|
702
744
|
"menu-in": "_menu-in_b80pp_1",
|
|
703
|
-
contextMenuItem:
|
|
704
|
-
contextMenuDestructive:
|
|
705
|
-
searchWrap:
|
|
706
|
-
pageMode:
|
|
707
|
-
dragOver:
|
|
708
|
-
collapsed:
|
|
709
|
-
itemCollapsed:
|
|
710
|
-
},
|
|
711
|
-
function
|
|
712
|
-
return c(
|
|
745
|
+
contextMenuItem: nt,
|
|
746
|
+
contextMenuDestructive: rt,
|
|
747
|
+
searchWrap: it,
|
|
748
|
+
pageMode: at,
|
|
749
|
+
dragOver: ot,
|
|
750
|
+
collapsed: st,
|
|
751
|
+
itemCollapsed: ct
|
|
752
|
+
}, lt = a(!1);
|
|
753
|
+
function ut() {
|
|
754
|
+
return c(lt);
|
|
713
755
|
}
|
|
714
|
-
var
|
|
715
|
-
function
|
|
756
|
+
var dt = a("");
|
|
757
|
+
function ft(e, t) {
|
|
716
758
|
let n = 0;
|
|
717
759
|
return r.forEach(e, (e) => {
|
|
718
760
|
if (!o(e)) return;
|
|
719
761
|
let r = e.props;
|
|
720
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
762
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += ft(r.children, t));
|
|
721
763
|
}), n;
|
|
722
764
|
}
|
|
723
|
-
function
|
|
724
|
-
let [u, d] = f(""), { isNarrow: p } =
|
|
765
|
+
function pt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, className: c, ...l }) {
|
|
766
|
+
let [u, d] = f(""), { isNarrow: p } = We(), m = a !== void 0, h = m ? a : u, g = (e) => {
|
|
725
767
|
m || d(e), o?.(e);
|
|
726
|
-
}, _ = h.length > 0, v = s ?? (p ? "page" : "sidebar"), y = !_ ||
|
|
727
|
-
return /* @__PURE__ */ t(
|
|
768
|
+
}, _ = h.length > 0, v = s ?? (p ? "page" : "sidebar"), y = !_ || ft(e, h) > 0;
|
|
769
|
+
return /* @__PURE__ */ t(lt.Provider, {
|
|
728
770
|
value: r,
|
|
729
|
-
children: /* @__PURE__ */ t(
|
|
771
|
+
children: /* @__PURE__ */ t(dt.Provider, {
|
|
730
772
|
value: h,
|
|
731
773
|
children: /* @__PURE__ */ n("nav", {
|
|
732
774
|
className: [
|
|
@@ -738,7 +780,7 @@ function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
738
780
|
...l,
|
|
739
781
|
children: [i && /* @__PURE__ */ t("div", {
|
|
740
782
|
className: L.searchWrap,
|
|
741
|
-
children: /* @__PURE__ */ t(
|
|
783
|
+
children: /* @__PURE__ */ t(Be, {
|
|
742
784
|
open: !0,
|
|
743
785
|
value: h,
|
|
744
786
|
onChange: (e) => g(e.target.value),
|
|
@@ -746,7 +788,7 @@ function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
746
788
|
onClear: () => g(""),
|
|
747
789
|
inline: !0
|
|
748
790
|
})
|
|
749
|
-
}), _ && !y ? /* @__PURE__ */ t(
|
|
791
|
+
}), _ && !y ? /* @__PURE__ */ t(He, {
|
|
750
792
|
title: "No Results",
|
|
751
793
|
description: "No items match your search.",
|
|
752
794
|
compact: !0
|
|
@@ -757,7 +799,7 @@ function dt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
757
799
|
}
|
|
758
800
|
//#endregion
|
|
759
801
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
760
|
-
function
|
|
802
|
+
function mt({ title: e, children: r, className: i, ...a }) {
|
|
761
803
|
return /* @__PURE__ */ n("section", {
|
|
762
804
|
className: [L.section, i].filter(Boolean).join(" "),
|
|
763
805
|
...a,
|
|
@@ -771,15 +813,15 @@ function ft({ title: e, children: r, className: i, ...a }) {
|
|
|
771
813
|
})]
|
|
772
814
|
});
|
|
773
815
|
}
|
|
774
|
-
var
|
|
816
|
+
var ht = {
|
|
775
817
|
tooltip: "_tooltip_y4het_3",
|
|
776
818
|
visible: "_visible_y4het_29",
|
|
777
819
|
top: "_top_y4het_55",
|
|
778
820
|
bottom: "_bottom_y4het_62",
|
|
779
821
|
left: "_left_y4het_69",
|
|
780
822
|
right: "_right_y4het_76"
|
|
781
|
-
},
|
|
782
|
-
function
|
|
823
|
+
}, gt = 6;
|
|
824
|
+
function _t(e, t, n) {
|
|
783
825
|
let r = window.innerWidth, i = window.innerHeight, a = [
|
|
784
826
|
n,
|
|
785
827
|
n === "top" || n === "bottom" ? n === "top" ? "bottom" : "top" : n === "left" ? "right" : "left",
|
|
@@ -790,7 +832,7 @@ function ht(e, t, n) {
|
|
|
790
832
|
];
|
|
791
833
|
for (let n of a) {
|
|
792
834
|
let a = 0, o = 0;
|
|
793
|
-
n === "top" ? (a = e.top - t.height -
|
|
835
|
+
n === "top" ? (a = e.top - t.height - gt, o = e.left + e.width / 2 - t.width / 2) : n === "bottom" ? (a = e.bottom + gt, o = e.left + e.width / 2 - t.width / 2) : n === "left" ? (a = e.top + e.height / 2 - t.height / 2, o = e.left - t.width - gt) : (a = e.top + e.height / 2 - t.height / 2, o = e.right + gt);
|
|
794
836
|
let s = o >= 8 && o + t.width <= r - 8, c = a >= 8 && a + t.height <= i - 8;
|
|
795
837
|
if (s && c) return {
|
|
796
838
|
top: Math.max(8, Math.min(a, i - t.height - 8)),
|
|
@@ -799,17 +841,17 @@ function ht(e, t, n) {
|
|
|
799
841
|
};
|
|
800
842
|
}
|
|
801
843
|
let o = 0, s = 0;
|
|
802
|
-
return n === "top" && (o = e.top - t.height -
|
|
844
|
+
return n === "top" && (o = e.top - t.height - gt, s = e.left + e.width / 2 - t.width / 2), n === "bottom" && (o = e.bottom + gt, s = e.left + e.width / 2 - t.width / 2), n === "left" && (o = e.top + e.height / 2 - t.height / 2, s = e.left - t.width - gt), n === "right" && (o = e.top + e.height / 2 - t.height / 2, s = e.right + gt), {
|
|
803
845
|
top: Math.max(8, Math.min(o, i - t.height - 8)),
|
|
804
846
|
left: Math.max(8, Math.min(s, window.innerWidth - t.width - 8)),
|
|
805
847
|
placement: n
|
|
806
848
|
};
|
|
807
849
|
}
|
|
808
|
-
function
|
|
850
|
+
function vt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
809
851
|
let m = u(), [h, g] = f(!1), [_, v] = f(null), y = d(null), b = d(null), x = d(null), S = () => {
|
|
810
852
|
x.current &&= (clearTimeout(x.current), null);
|
|
811
853
|
}, C = s(() => {
|
|
812
|
-
!y.current || !b.current || v(
|
|
854
|
+
!y.current || !b.current || v(_t(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
813
855
|
}, [a]);
|
|
814
856
|
l(() => {
|
|
815
857
|
if (h) return C(), window.addEventListener("scroll", C, {
|
|
@@ -853,9 +895,9 @@ function gt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
853
895
|
id: m,
|
|
854
896
|
role: "tooltip",
|
|
855
897
|
className: [
|
|
856
|
-
|
|
857
|
-
_ ?
|
|
858
|
-
h && _ ?
|
|
898
|
+
ht.tooltip,
|
|
899
|
+
_ ? ht[_.placement] : null,
|
|
900
|
+
h && _ ? ht.visible : null
|
|
859
901
|
].filter(Boolean).join(" "),
|
|
860
902
|
style: _ ? {
|
|
861
903
|
top: _.top,
|
|
@@ -871,8 +913,8 @@ function gt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
871
913
|
}
|
|
872
914
|
//#endregion
|
|
873
915
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
874
|
-
function
|
|
875
|
-
let y =
|
|
916
|
+
function yt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems: m, onDrop: h, acceptTypes: g, className: _, ...v }) {
|
|
917
|
+
let y = ut(), b = c(dt), x = a ?? o, S = y ? u ?? e : u, C = b.length > 0 && !e.toLowerCase().includes(b.toLowerCase()), [w, T] = f(!1), E = (e) => {
|
|
876
918
|
h && (g?.length && !g.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
877
919
|
}, D = () => T(!1), O = (e) => {
|
|
878
920
|
h && (e.preventDefault(), T(!1), h(e));
|
|
@@ -920,7 +962,7 @@ function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
920
962
|
children: [
|
|
921
963
|
r && /* @__PURE__ */ t("span", {
|
|
922
964
|
className: L.itemIcon,
|
|
923
|
-
children: /* @__PURE__ */ t(
|
|
965
|
+
children: /* @__PURE__ */ t(I, {
|
|
924
966
|
icon: r,
|
|
925
967
|
size: "md",
|
|
926
968
|
"aria-hidden": !0
|
|
@@ -939,7 +981,7 @@ function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
939
981
|
return /* @__PURE__ */ n("li", {
|
|
940
982
|
className: L.item,
|
|
941
983
|
hidden: C || void 0,
|
|
942
|
-
children: [S ? /* @__PURE__ */ t(
|
|
984
|
+
children: [S ? /* @__PURE__ */ t(vt, {
|
|
943
985
|
label: S,
|
|
944
986
|
placement: "right",
|
|
945
987
|
children: te
|
|
@@ -964,7 +1006,7 @@ function _t({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
964
1006
|
}), document.body)]
|
|
965
1007
|
});
|
|
966
1008
|
}
|
|
967
|
-
var
|
|
1009
|
+
var bt = {
|
|
968
1010
|
spin: "_spin_7d4yi_3",
|
|
969
1011
|
disabled: "_disabled_7d4yi_36",
|
|
970
1012
|
btn: "_btn_7d4yi_43",
|
|
@@ -972,15 +1014,15 @@ var vt = {
|
|
|
972
1014
|
};
|
|
973
1015
|
//#endregion
|
|
974
1016
|
//#region src/components/SpinButton/SpinButton.tsx
|
|
975
|
-
function
|
|
1017
|
+
function xt(e) {
|
|
976
1018
|
let t = e.toString(), n = t.indexOf(".");
|
|
977
1019
|
return n === -1 ? 0 : t.length - n - 1;
|
|
978
1020
|
}
|
|
979
|
-
function
|
|
1021
|
+
function St(e, t, n) {
|
|
980
1022
|
return Math.min(n, Math.max(t, e));
|
|
981
1023
|
}
|
|
982
|
-
function
|
|
983
|
-
let m = c ??
|
|
1024
|
+
function Ct({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, decimals: c, disabled: l = !1, className: u, "aria-label": d, "aria-labelledby": f, ...p }) {
|
|
1025
|
+
let m = c ?? xt(o), h = s((e) => r(parseFloat(St(e, i, a).toFixed(m))), [
|
|
984
1026
|
r,
|
|
985
1027
|
i,
|
|
986
1028
|
a,
|
|
@@ -1024,8 +1066,8 @@ function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1024
1066
|
tabIndex: l ? -1 : 0,
|
|
1025
1067
|
onKeyDown: l ? void 0 : g,
|
|
1026
1068
|
className: [
|
|
1027
|
-
|
|
1028
|
-
l ?
|
|
1069
|
+
bt.spin,
|
|
1070
|
+
l ? bt.disabled : null,
|
|
1029
1071
|
u
|
|
1030
1072
|
].filter(Boolean).join(" "),
|
|
1031
1073
|
...p,
|
|
@@ -1035,12 +1077,12 @@ function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1035
1077
|
tabIndex: -1,
|
|
1036
1078
|
"aria-hidden": "true",
|
|
1037
1079
|
disabled: l || e <= i,
|
|
1038
|
-
className:
|
|
1080
|
+
className: bt.btn,
|
|
1039
1081
|
onClick: () => h(e - o),
|
|
1040
1082
|
children: "−"
|
|
1041
1083
|
}),
|
|
1042
1084
|
/* @__PURE__ */ t("span", {
|
|
1043
|
-
className:
|
|
1085
|
+
className: bt.value,
|
|
1044
1086
|
"aria-hidden": "true",
|
|
1045
1087
|
children: e.toFixed(m)
|
|
1046
1088
|
}),
|
|
@@ -1049,7 +1091,7 @@ function xt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1049
1091
|
tabIndex: -1,
|
|
1050
1092
|
"aria-hidden": "true",
|
|
1051
1093
|
disabled: l || e >= a,
|
|
1052
|
-
className:
|
|
1094
|
+
className: bt.btn,
|
|
1053
1095
|
onClick: () => h(e + o),
|
|
1054
1096
|
children: "+"
|
|
1055
1097
|
})
|
|
@@ -1069,7 +1111,7 @@ var R = {
|
|
|
1069
1111
|
};
|
|
1070
1112
|
//#endregion
|
|
1071
1113
|
//#region src/components/Tabs/TabBar.tsx
|
|
1072
|
-
function
|
|
1114
|
+
function wt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1073
1115
|
let o = d(null);
|
|
1074
1116
|
function s(e) {
|
|
1075
1117
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1101,7 +1143,7 @@ function St({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1101
1143
|
}
|
|
1102
1144
|
//#endregion
|
|
1103
1145
|
//#region src/components/Tabs/TabItem.tsx
|
|
1104
|
-
function
|
|
1146
|
+
function Tt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLabel: s = "Close tab", className: c, disabled: l, ...u }) {
|
|
1105
1147
|
return /* @__PURE__ */ n("button", {
|
|
1106
1148
|
role: "tab",
|
|
1107
1149
|
type: "button",
|
|
@@ -1119,7 +1161,7 @@ function Ct({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1119
1161
|
children: [
|
|
1120
1162
|
r && /* @__PURE__ */ t("span", {
|
|
1121
1163
|
className: R.tabIcon,
|
|
1122
|
-
children: /* @__PURE__ */ t(
|
|
1164
|
+
children: /* @__PURE__ */ t(I, {
|
|
1123
1165
|
icon: r,
|
|
1124
1166
|
size: "sm",
|
|
1125
1167
|
"aria-hidden": !0
|
|
@@ -1147,7 +1189,7 @@ function Ct({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1147
1189
|
}
|
|
1148
1190
|
//#endregion
|
|
1149
1191
|
//#region src/components/Tabs/TabPanel.tsx
|
|
1150
|
-
function
|
|
1192
|
+
function Et({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
1151
1193
|
return /* @__PURE__ */ t("div", {
|
|
1152
1194
|
id: e,
|
|
1153
1195
|
role: "tabpanel",
|
|
@@ -1171,7 +1213,7 @@ var z = {
|
|
|
1171
1213
|
};
|
|
1172
1214
|
//#endregion
|
|
1173
1215
|
//#region src/components/ActionRow/ActionRow.tsx
|
|
1174
|
-
function
|
|
1216
|
+
function Dt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !1, variant: s = "default", className: c, ...l }) {
|
|
1175
1217
|
let u = o ? "button" : "div", d = s === "property";
|
|
1176
1218
|
return /* @__PURE__ */ n(u, {
|
|
1177
1219
|
className: [
|
|
@@ -1203,7 +1245,7 @@ function Tt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !
|
|
|
1203
1245
|
]
|
|
1204
1246
|
});
|
|
1205
1247
|
}
|
|
1206
|
-
var
|
|
1248
|
+
var Ot = {
|
|
1207
1249
|
list: "_list_1mn4t_3",
|
|
1208
1250
|
item: "_item_1mn4t_17",
|
|
1209
1251
|
divider: "_divider_1mn4t_25",
|
|
@@ -1212,26 +1254,26 @@ var Et = {
|
|
|
1212
1254
|
};
|
|
1213
1255
|
//#endregion
|
|
1214
1256
|
//#region src/components/BoxedList/BoxedList.tsx
|
|
1215
|
-
function
|
|
1257
|
+
function kt({ children: e, variant: i = "default", className: a, ...o }) {
|
|
1216
1258
|
let s = r.toArray(e).filter(Boolean), c = i === "separate";
|
|
1217
1259
|
return /* @__PURE__ */ t("ul", {
|
|
1218
1260
|
role: "list",
|
|
1219
1261
|
className: [
|
|
1220
|
-
|
|
1221
|
-
c ?
|
|
1262
|
+
Ot.list,
|
|
1263
|
+
c ? Ot.separate : null,
|
|
1222
1264
|
a
|
|
1223
1265
|
].filter(Boolean).join(" "),
|
|
1224
1266
|
...o,
|
|
1225
1267
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1226
|
-
className: c ?
|
|
1268
|
+
className: c ? Ot.separateItem : Ot.item,
|
|
1227
1269
|
children: [!c && r > 0 && /* @__PURE__ */ t("div", {
|
|
1228
|
-
className:
|
|
1270
|
+
className: Ot.divider,
|
|
1229
1271
|
"aria-hidden": "true"
|
|
1230
1272
|
}), e]
|
|
1231
1273
|
}, r))
|
|
1232
1274
|
});
|
|
1233
1275
|
}
|
|
1234
|
-
var
|
|
1276
|
+
var At = {
|
|
1235
1277
|
switcher: "_switcher_1uh9r_3",
|
|
1236
1278
|
item: "_item_1uh9r_18",
|
|
1237
1279
|
active: "_active_1uh9r_45",
|
|
@@ -1240,7 +1282,7 @@ var Ot = {
|
|
|
1240
1282
|
};
|
|
1241
1283
|
//#endregion
|
|
1242
1284
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1243
|
-
function
|
|
1285
|
+
function jt({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1244
1286
|
let a = d(null);
|
|
1245
1287
|
function o(e) {
|
|
1246
1288
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1258,14 +1300,14 @@ function kt({ children: e, className: n, "aria-label": r = "View switcher", ...i
|
|
|
1258
1300
|
role: "radiogroup",
|
|
1259
1301
|
"aria-label": r,
|
|
1260
1302
|
onKeyDown: o,
|
|
1261
|
-
className: [
|
|
1303
|
+
className: [At.switcher, n].filter(Boolean).join(" "),
|
|
1262
1304
|
...i,
|
|
1263
1305
|
children: e
|
|
1264
1306
|
});
|
|
1265
1307
|
}
|
|
1266
1308
|
//#endregion
|
|
1267
1309
|
//#region src/components/ViewSwitcher/ViewSwitcherItem.tsx
|
|
1268
|
-
function
|
|
1310
|
+
function Mt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s }) {
|
|
1269
1311
|
return /* @__PURE__ */ n("button", {
|
|
1270
1312
|
type: "button",
|
|
1271
1313
|
role: "radio",
|
|
@@ -1273,40 +1315,40 @@ function At({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1273
1315
|
tabIndex: i ? 0 : -1,
|
|
1274
1316
|
disabled: o,
|
|
1275
1317
|
className: [
|
|
1276
|
-
|
|
1277
|
-
i ?
|
|
1318
|
+
At.item,
|
|
1319
|
+
i ? At.active : null,
|
|
1278
1320
|
a
|
|
1279
1321
|
].filter(Boolean).join(" "),
|
|
1280
1322
|
...s,
|
|
1281
1323
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1282
|
-
className:
|
|
1283
|
-
children: /* @__PURE__ */ t(
|
|
1324
|
+
className: At.itemIcon,
|
|
1325
|
+
children: /* @__PURE__ */ t(I, {
|
|
1284
1326
|
icon: r,
|
|
1285
1327
|
size: "md",
|
|
1286
1328
|
"aria-hidden": !0
|
|
1287
1329
|
})
|
|
1288
1330
|
}), /* @__PURE__ */ t("span", {
|
|
1289
|
-
className:
|
|
1331
|
+
className: At.itemLabel,
|
|
1290
1332
|
children: e
|
|
1291
1333
|
})]
|
|
1292
1334
|
});
|
|
1293
1335
|
}
|
|
1294
1336
|
//#endregion
|
|
1295
1337
|
//#region src/components/Toast/Toast.module.css
|
|
1296
|
-
var
|
|
1297
|
-
toaster:
|
|
1298
|
-
toasterBottom:
|
|
1299
|
-
toasterTop:
|
|
1300
|
-
toast:
|
|
1338
|
+
var Nt = "_toaster_1tgvb_3", Pt = "_toasterBottom_1tgvb_18", Ft = "_toasterTop_1tgvb_22", It = "_toast_1tgvb_3", Lt = "_title_1tgvb_69", Rt = "_actions_1tgvb_76", zt = "_actionBtn_1tgvb_85", Bt = "_dismissBtn_1tgvb_118", Vt = {
|
|
1339
|
+
toaster: Nt,
|
|
1340
|
+
toasterBottom: Pt,
|
|
1341
|
+
toasterTop: Ft,
|
|
1342
|
+
toast: It,
|
|
1301
1343
|
"toast-in": "_toast-in_1tgvb_1",
|
|
1302
|
-
title:
|
|
1303
|
-
actions:
|
|
1304
|
-
actionBtn:
|
|
1305
|
-
dismissBtn:
|
|
1344
|
+
title: Lt,
|
|
1345
|
+
actions: Rt,
|
|
1346
|
+
actionBtn: zt,
|
|
1347
|
+
dismissBtn: Bt
|
|
1306
1348
|
};
|
|
1307
1349
|
//#endregion
|
|
1308
1350
|
//#region src/components/Toast/Toast.tsx
|
|
1309
|
-
function
|
|
1351
|
+
function Ht({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...u }) {
|
|
1310
1352
|
let f = d(null), p = d(r), m = d(0), h = () => {
|
|
1311
1353
|
f.current &&= (clearTimeout(f.current), null);
|
|
1312
1354
|
}, g = (e) => {
|
|
@@ -1327,31 +1369,31 @@ function Bt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1327
1369
|
role: "status",
|
|
1328
1370
|
"aria-live": "polite",
|
|
1329
1371
|
"aria-atomic": "true",
|
|
1330
|
-
className: [
|
|
1372
|
+
className: [Vt.toast, c].filter(Boolean).join(" "),
|
|
1331
1373
|
onMouseEnter: _,
|
|
1332
1374
|
onMouseLeave: v,
|
|
1333
1375
|
onFocus: _,
|
|
1334
1376
|
onBlur: v,
|
|
1335
1377
|
...u,
|
|
1336
1378
|
children: [/* @__PURE__ */ t("span", {
|
|
1337
|
-
className:
|
|
1379
|
+
className: Vt.title,
|
|
1338
1380
|
children: e
|
|
1339
1381
|
}), (a || s) && /* @__PURE__ */ n("span", {
|
|
1340
|
-
className:
|
|
1382
|
+
className: Vt.actions,
|
|
1341
1383
|
children: [a && /* @__PURE__ */ t("button", {
|
|
1342
1384
|
type: "button",
|
|
1343
|
-
className:
|
|
1385
|
+
className: Vt.actionBtn,
|
|
1344
1386
|
onClick: y,
|
|
1345
1387
|
children: a
|
|
1346
1388
|
}), s && /* @__PURE__ */ t("button", {
|
|
1347
1389
|
type: "button",
|
|
1348
|
-
className:
|
|
1390
|
+
className: Vt.dismissBtn,
|
|
1349
1391
|
"aria-label": "Dismiss",
|
|
1350
1392
|
onClick: () => {
|
|
1351
1393
|
h(), i?.();
|
|
1352
1394
|
},
|
|
1353
|
-
children: /* @__PURE__ */ t(
|
|
1354
|
-
icon:
|
|
1395
|
+
children: /* @__PURE__ */ t(I, {
|
|
1396
|
+
icon: Pe,
|
|
1355
1397
|
size: "md",
|
|
1356
1398
|
"aria-hidden": !0
|
|
1357
1399
|
})
|
|
@@ -1361,12 +1403,12 @@ function Bt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1361
1403
|
}
|
|
1362
1404
|
//#endregion
|
|
1363
1405
|
//#region src/components/Toast/Toaster.tsx
|
|
1364
|
-
function
|
|
1406
|
+
function Ut({ position: e = "bottom", children: n, container: r, className: i, ...a }) {
|
|
1365
1407
|
let o = /* @__PURE__ */ t("div", {
|
|
1366
1408
|
"aria-label": "Notifications",
|
|
1367
1409
|
className: [
|
|
1368
|
-
|
|
1369
|
-
e === "top" ?
|
|
1410
|
+
Vt.toaster,
|
|
1411
|
+
e === "top" ? Vt.toasterTop : Vt.toasterBottom,
|
|
1370
1412
|
i
|
|
1371
1413
|
].filter(Boolean).join(" "),
|
|
1372
1414
|
...a,
|
|
@@ -1376,57 +1418,57 @@ function Vt({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1376
1418
|
}
|
|
1377
1419
|
//#endregion
|
|
1378
1420
|
//#region src/components/Dialog/Dialog.module.css
|
|
1379
|
-
var
|
|
1380
|
-
backdrop:
|
|
1421
|
+
var Wt = "_backdrop_zx0yn_3", Gt = "_dialog_zx0yn_26", Kt = "_title_zx0yn_56", qt = "_body_zx0yn_70", Jt = "_footer_zx0yn_85", Yt = "_btn_zx0yn_92", Xt = "_dialogAbout_zx0yn_155", Zt = "_aboutHeader_zx0yn_162", Qt = "_aboutIcon_zx0yn_171", $t = "_aboutAppName_zx0yn_180", en = "_aboutVersion_zx0yn_187", tn = "_aboutTabBar_zx0yn_194", nn = "_aboutTabBtn_zx0yn_201", rn = "_aboutTabBtnActive_zx0yn_220", an = "_aboutTabContent_zx0yn_233", on = "_aboutSection_zx0yn_238", sn = "_aboutComments_zx0yn_243", cn = "_aboutInfoList_zx0yn_252", ln = "_aboutInfoLabel_zx0yn_259", un = "_aboutInfoValue_zx0yn_267", dn = "_aboutLink_zx0yn_275", fn = "_aboutCreditGroup_zx0yn_283", pn = "_aboutCreditTitle_zx0yn_287", mn = "_aboutCreditList_zx0yn_297", hn = "_aboutCreditItem_zx0yn_306", gn = "_aboutCopyright_zx0yn_312", _n = "_aboutLicenseType_zx0yn_319", vn = "_aboutLicenseText_zx0yn_326", B = {
|
|
1422
|
+
backdrop: Wt,
|
|
1381
1423
|
"backdrop-in": "_backdrop-in_zx0yn_1",
|
|
1382
|
-
dialog:
|
|
1424
|
+
dialog: Gt,
|
|
1383
1425
|
"dialog-in": "_dialog-in_zx0yn_1",
|
|
1384
|
-
title:
|
|
1385
|
-
body:
|
|
1386
|
-
footer:
|
|
1387
|
-
btn:
|
|
1426
|
+
title: Kt,
|
|
1427
|
+
body: qt,
|
|
1428
|
+
footer: Jt,
|
|
1429
|
+
btn: Yt,
|
|
1388
1430
|
"btn-default": "_btn-default_zx0yn_140",
|
|
1389
1431
|
"btn-suggested": "_btn-suggested_zx0yn_144",
|
|
1390
1432
|
"btn-destructive": "_btn-destructive_zx0yn_149",
|
|
1391
|
-
dialogAbout:
|
|
1392
|
-
aboutHeader:
|
|
1393
|
-
aboutIcon:
|
|
1394
|
-
aboutAppName:
|
|
1395
|
-
aboutVersion:
|
|
1396
|
-
aboutTabBar:
|
|
1397
|
-
aboutTabBtn:
|
|
1398
|
-
aboutTabBtnActive:
|
|
1399
|
-
aboutTabContent:
|
|
1400
|
-
aboutSection:
|
|
1401
|
-
aboutComments:
|
|
1402
|
-
aboutInfoList:
|
|
1403
|
-
aboutInfoLabel:
|
|
1404
|
-
aboutInfoValue:
|
|
1405
|
-
aboutLink:
|
|
1406
|
-
aboutCreditGroup:
|
|
1407
|
-
aboutCreditTitle:
|
|
1408
|
-
aboutCreditList:
|
|
1409
|
-
aboutCreditItem:
|
|
1410
|
-
aboutCopyright:
|
|
1411
|
-
aboutLicenseType:
|
|
1412
|
-
aboutLicenseText:
|
|
1413
|
-
},
|
|
1414
|
-
function
|
|
1433
|
+
dialogAbout: Xt,
|
|
1434
|
+
aboutHeader: Zt,
|
|
1435
|
+
aboutIcon: Qt,
|
|
1436
|
+
aboutAppName: $t,
|
|
1437
|
+
aboutVersion: en,
|
|
1438
|
+
aboutTabBar: tn,
|
|
1439
|
+
aboutTabBtn: nn,
|
|
1440
|
+
aboutTabBtnActive: rn,
|
|
1441
|
+
aboutTabContent: an,
|
|
1442
|
+
aboutSection: on,
|
|
1443
|
+
aboutComments: sn,
|
|
1444
|
+
aboutInfoList: cn,
|
|
1445
|
+
aboutInfoLabel: ln,
|
|
1446
|
+
aboutInfoValue: un,
|
|
1447
|
+
aboutLink: dn,
|
|
1448
|
+
aboutCreditGroup: fn,
|
|
1449
|
+
aboutCreditTitle: pn,
|
|
1450
|
+
aboutCreditList: mn,
|
|
1451
|
+
aboutCreditItem: hn,
|
|
1452
|
+
aboutCopyright: gn,
|
|
1453
|
+
aboutLicenseType: _n,
|
|
1454
|
+
aboutLicenseText: vn
|
|
1455
|
+
}, yn = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1456
|
+
function bn(e, t) {
|
|
1415
1457
|
if (e.key !== "Tab") return;
|
|
1416
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
1458
|
+
let n = Array.from(t.current?.querySelectorAll(yn) ?? []);
|
|
1417
1459
|
if (!n.length) return;
|
|
1418
1460
|
let r = n[0], i = n[n.length - 1];
|
|
1419
1461
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
1420
1462
|
}
|
|
1421
|
-
var
|
|
1463
|
+
var xn = {
|
|
1422
1464
|
details: "Details",
|
|
1423
1465
|
credits: "Credits",
|
|
1424
1466
|
legal: "Legal"
|
|
1425
1467
|
};
|
|
1426
|
-
function
|
|
1468
|
+
function Sn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop: m = !0, role: h = "dialog", responses: g, onResponse: _, variant: v, applicationName: y, applicationIcon: b, version: x, comments: S, developerName: C, website: w, websiteLabel: T, developers: E, designers: D, artists: O, copyright: k, licenseType: A, licenseText: j, links: M, className: N, ...P }) {
|
|
1427
1469
|
let ee = d(null), te = u(), ne = d(null), [re, ie] = f("details"), ae = !!g, oe = v === "about";
|
|
1428
1470
|
l(() => {
|
|
1429
|
-
r ? (ne.current = document.activeElement, (ee.current?.querySelector(
|
|
1471
|
+
r ? (ne.current = document.activeElement, (ee.current?.querySelector(yn))?.focus()) : (ne.current?.focus(), oe && ie("details"));
|
|
1430
1472
|
}, [r, oe]);
|
|
1431
1473
|
let se = s(() => {
|
|
1432
1474
|
let e = g?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
@@ -1436,18 +1478,18 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1436
1478
|
e.preventDefault(), ae ? se() : c?.();
|
|
1437
1479
|
return;
|
|
1438
1480
|
}
|
|
1439
|
-
|
|
1481
|
+
bn(e, ee);
|
|
1440
1482
|
}, [
|
|
1441
1483
|
ae,
|
|
1442
1484
|
se,
|
|
1443
1485
|
c
|
|
1444
1486
|
]);
|
|
1445
1487
|
if (!r) return null;
|
|
1446
|
-
let
|
|
1488
|
+
let F = [
|
|
1447
1489
|
"details",
|
|
1448
1490
|
!!(E?.length || D?.length || O?.length) && "credits",
|
|
1449
1491
|
!!(k || A || j) && "legal"
|
|
1450
|
-
].filter(Boolean),
|
|
1492
|
+
].filter(Boolean), ue = () => oe ? /* @__PURE__ */ t("div", {
|
|
1451
1493
|
className: B.footer,
|
|
1452
1494
|
children: /* @__PURE__ */ t("button", {
|
|
1453
1495
|
type: "button",
|
|
@@ -1473,7 +1515,7 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1473
1515
|
onClick: e.onClick,
|
|
1474
1516
|
children: e.label
|
|
1475
1517
|
}, e.label))
|
|
1476
|
-
}) : null,
|
|
1518
|
+
}) : null, de = () => /* @__PURE__ */ n(e, { children: [
|
|
1477
1519
|
/* @__PURE__ */ n("div", {
|
|
1478
1520
|
className: B.aboutHeader,
|
|
1479
1521
|
children: [
|
|
@@ -1492,16 +1534,16 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1492
1534
|
})
|
|
1493
1535
|
]
|
|
1494
1536
|
}),
|
|
1495
|
-
|
|
1537
|
+
F.length > 1 && /* @__PURE__ */ t("div", {
|
|
1496
1538
|
className: B.aboutTabBar,
|
|
1497
1539
|
role: "tablist",
|
|
1498
|
-
children:
|
|
1540
|
+
children: F.map((e) => /* @__PURE__ */ t("button", {
|
|
1499
1541
|
type: "button",
|
|
1500
1542
|
role: "tab",
|
|
1501
1543
|
"aria-selected": re === e,
|
|
1502
1544
|
className: [B.aboutTabBtn, re === e ? B.aboutTabBtnActive : null].filter(Boolean).join(" "),
|
|
1503
1545
|
onClick: () => ie(e),
|
|
1504
|
-
children:
|
|
1546
|
+
children: xn[e]
|
|
1505
1547
|
}, e))
|
|
1506
1548
|
}),
|
|
1507
1549
|
/* @__PURE__ */ n("div", {
|
|
@@ -1599,7 +1641,7 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1599
1641
|
})
|
|
1600
1642
|
]
|
|
1601
1643
|
})
|
|
1602
|
-
] }),
|
|
1644
|
+
] }), fe = /* @__PURE__ */ t("div", {
|
|
1603
1645
|
className: B.backdrop,
|
|
1604
1646
|
onClick: ce,
|
|
1605
1647
|
"aria-hidden": "true",
|
|
@@ -1616,45 +1658,45 @@ function bn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1616
1658
|
onKeyDown: le,
|
|
1617
1659
|
onClick: (e) => e.stopPropagation(),
|
|
1618
1660
|
...P,
|
|
1619
|
-
children: [oe ?
|
|
1661
|
+
children: [oe ? de() : /* @__PURE__ */ n(e, { children: [i && /* @__PURE__ */ t("div", {
|
|
1620
1662
|
id: te,
|
|
1621
1663
|
className: B.title,
|
|
1622
1664
|
children: i
|
|
1623
1665
|
}), a && /* @__PURE__ */ t("div", {
|
|
1624
1666
|
className: B.body,
|
|
1625
1667
|
children: a
|
|
1626
|
-
})] }),
|
|
1668
|
+
})] }), ue()]
|
|
1627
1669
|
})
|
|
1628
1670
|
});
|
|
1629
|
-
return typeof document > "u" ?
|
|
1671
|
+
return typeof document > "u" ? fe : p(fe, document.body);
|
|
1630
1672
|
}
|
|
1631
1673
|
//#endregion
|
|
1632
1674
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1633
|
-
var
|
|
1634
|
-
wrapper:
|
|
1635
|
-
trigger:
|
|
1636
|
-
triggerOpen:
|
|
1637
|
-
triggerLabel:
|
|
1638
|
-
placeholder:
|
|
1639
|
-
chevron:
|
|
1640
|
-
chevronOpen:
|
|
1641
|
-
list:
|
|
1675
|
+
var Cn = "_wrapper_1hi05_3", wn = "_trigger_1hi05_11", Tn = "_triggerOpen_1hi05_63", En = "_triggerLabel_1hi05_73", Dn = "_placeholder_1hi05_81", On = "_chevron_1hi05_87", kn = "_chevronOpen_1hi05_94", An = "_list_1hi05_100", jn = "_listDown_1hi05_129", Mn = "_listUp_1hi05_133", Nn = "_option_1hi05_145", Pn = "_optionActive_1hi05_162", Fn = "_optionSelected_1hi05_166", In = "_optionDisabled_1hi05_170", Ln = "_optionText_1hi05_178", Rn = "_optionLabel_1hi05_186", zn = "_optionDesc_1hi05_192", Bn = "_checkIcon_1hi05_202", V = {
|
|
1676
|
+
wrapper: Cn,
|
|
1677
|
+
trigger: wn,
|
|
1678
|
+
triggerOpen: Tn,
|
|
1679
|
+
triggerLabel: En,
|
|
1680
|
+
placeholder: Dn,
|
|
1681
|
+
chevron: On,
|
|
1682
|
+
chevronOpen: kn,
|
|
1683
|
+
list: An,
|
|
1642
1684
|
"list-in": "_list-in_1hi05_1",
|
|
1643
|
-
listDown:
|
|
1644
|
-
listUp:
|
|
1685
|
+
listDown: jn,
|
|
1686
|
+
listUp: Mn,
|
|
1645
1687
|
"list-in-up": "_list-in-up_1hi05_1",
|
|
1646
|
-
option:
|
|
1647
|
-
optionActive:
|
|
1648
|
-
optionSelected:
|
|
1649
|
-
optionDisabled:
|
|
1650
|
-
optionText:
|
|
1651
|
-
optionLabel:
|
|
1652
|
-
optionDesc:
|
|
1653
|
-
checkIcon:
|
|
1688
|
+
option: Nn,
|
|
1689
|
+
optionActive: Pn,
|
|
1690
|
+
optionSelected: Fn,
|
|
1691
|
+
optionDisabled: In,
|
|
1692
|
+
optionText: Ln,
|
|
1693
|
+
optionLabel: Rn,
|
|
1694
|
+
optionDesc: zn,
|
|
1695
|
+
checkIcon: Bn
|
|
1654
1696
|
};
|
|
1655
1697
|
//#endregion
|
|
1656
1698
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1657
|
-
function
|
|
1699
|
+
function Vn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...p }) {
|
|
1658
1700
|
let [m, h] = f(!1), [g, _] = f(-1), [v, y] = f(!1), b = u(), x = u(), S = d(null), C = d(null), w = e.find((e) => e.value === r), T = s(() => {
|
|
1659
1701
|
if (!S.current) return;
|
|
1660
1702
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
@@ -1756,8 +1798,8 @@ function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1756
1798
|
children: [/* @__PURE__ */ t("span", {
|
|
1757
1799
|
className: [V.triggerLabel, w ? null : V.placeholder].filter(Boolean).join(" "),
|
|
1758
1800
|
children: w?.label ?? a
|
|
1759
|
-
}), /* @__PURE__ */ t(
|
|
1760
|
-
icon:
|
|
1801
|
+
}), /* @__PURE__ */ t(I, {
|
|
1802
|
+
icon: Ne,
|
|
1761
1803
|
size: "md",
|
|
1762
1804
|
"aria-hidden": !0,
|
|
1763
1805
|
className: [V.chevron, m ? V.chevronOpen : null].filter(Boolean).join(" ")
|
|
@@ -1792,8 +1834,8 @@ function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1792
1834
|
className: V.optionDesc,
|
|
1793
1835
|
children: e.description
|
|
1794
1836
|
})]
|
|
1795
|
-
}), e.value === r && /* @__PURE__ */ t(
|
|
1796
|
-
icon:
|
|
1837
|
+
}), e.value === r && /* @__PURE__ */ t(I, {
|
|
1838
|
+
icon: Re,
|
|
1797
1839
|
size: "md",
|
|
1798
1840
|
"aria-hidden": !0,
|
|
1799
1841
|
className: V.checkIcon
|
|
@@ -1802,7 +1844,7 @@ function zn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1802
1844
|
})]
|
|
1803
1845
|
});
|
|
1804
1846
|
}
|
|
1805
|
-
var
|
|
1847
|
+
var Hn = {
|
|
1806
1848
|
wrapper: "_wrapper_11zhs_3",
|
|
1807
1849
|
hasLabels: "_hasLabels_11zhs_11",
|
|
1808
1850
|
track: "_track_11zhs_17",
|
|
@@ -1815,21 +1857,21 @@ var Bn = {
|
|
|
1815
1857
|
};
|
|
1816
1858
|
//#endregion
|
|
1817
1859
|
//#region src/components/Slider/Slider.tsx
|
|
1818
|
-
function
|
|
1860
|
+
function Un(e, t, n) {
|
|
1819
1861
|
return Math.min(n, Math.max(t, e));
|
|
1820
1862
|
}
|
|
1821
|
-
function
|
|
1863
|
+
function Wn(e, t, n, r) {
|
|
1822
1864
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
1823
1865
|
}
|
|
1824
|
-
function
|
|
1866
|
+
function Gn(e) {
|
|
1825
1867
|
let t = e.toString(), n = t.indexOf(".");
|
|
1826
1868
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1827
1869
|
}
|
|
1828
|
-
function
|
|
1829
|
-
let g = d(null), _ =
|
|
1870
|
+
function Kn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: c = !1, marks: l, className: u, "aria-label": f, "aria-labelledby": p, "aria-describedby": m, ...h }) {
|
|
1871
|
+
let g = d(null), _ = Gn(o), v = (Un(e, i, a) - i) / (a - i) * 100, y = s((e) => {
|
|
1830
1872
|
if (!g.current) return;
|
|
1831
1873
|
let { left: t, width: n } = g.current.getBoundingClientRect();
|
|
1832
|
-
r(
|
|
1874
|
+
r(Un(Wn((e - t) / n * (a - i) + i, i, o, _), i, a));
|
|
1833
1875
|
}, [
|
|
1834
1876
|
i,
|
|
1835
1877
|
a,
|
|
@@ -1842,7 +1884,7 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1842
1884
|
e.currentTarget.hasPointerCapture(e.pointerId) && y(e.clientX);
|
|
1843
1885
|
}, [y]), S = s((t) => {
|
|
1844
1886
|
let n = (e) => {
|
|
1845
|
-
t.preventDefault(), r(
|
|
1887
|
+
t.preventDefault(), r(Un(Wn(e, i, o, _), i, a));
|
|
1846
1888
|
};
|
|
1847
1889
|
switch (t.key) {
|
|
1848
1890
|
case "ArrowRight":
|
|
@@ -1876,8 +1918,8 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1876
1918
|
]), C = l && l.length > 0, w = C && l.some((e) => e.label);
|
|
1877
1919
|
return /* @__PURE__ */ n("div", {
|
|
1878
1920
|
className: [
|
|
1879
|
-
|
|
1880
|
-
w ?
|
|
1921
|
+
Hn.wrapper,
|
|
1922
|
+
w ? Hn.hasLabels : null,
|
|
1881
1923
|
u
|
|
1882
1924
|
].filter(Boolean).join(" "),
|
|
1883
1925
|
...h,
|
|
@@ -1892,36 +1934,36 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1892
1934
|
"aria-labelledby": p,
|
|
1893
1935
|
"aria-describedby": m,
|
|
1894
1936
|
"aria-disabled": c || void 0,
|
|
1895
|
-
className: [
|
|
1937
|
+
className: [Hn.track, c ? Hn.disabled : null].filter(Boolean).join(" "),
|
|
1896
1938
|
onPointerDown: b,
|
|
1897
1939
|
onPointerMove: x,
|
|
1898
1940
|
onKeyDown: c ? void 0 : S,
|
|
1899
1941
|
children: [
|
|
1900
1942
|
/* @__PURE__ */ t("div", {
|
|
1901
|
-
className:
|
|
1943
|
+
className: Hn.fill,
|
|
1902
1944
|
style: { width: `${v}%` }
|
|
1903
1945
|
}),
|
|
1904
1946
|
/* @__PURE__ */ t("div", {
|
|
1905
|
-
className:
|
|
1947
|
+
className: Hn.thumb,
|
|
1906
1948
|
style: { left: `${v}%` },
|
|
1907
1949
|
"aria-hidden": "true"
|
|
1908
1950
|
}),
|
|
1909
1951
|
C && l.map((e) => {
|
|
1910
|
-
let n = (
|
|
1952
|
+
let n = (Un(e.value, i, a) - i) / (a - i) * 100;
|
|
1911
1953
|
return /* @__PURE__ */ t("div", {
|
|
1912
|
-
className:
|
|
1954
|
+
className: Hn.tick,
|
|
1913
1955
|
style: { left: `${n}%` },
|
|
1914
1956
|
"aria-hidden": "true"
|
|
1915
1957
|
}, e.value);
|
|
1916
1958
|
})
|
|
1917
1959
|
]
|
|
1918
1960
|
}), w && /* @__PURE__ */ t("div", {
|
|
1919
|
-
className:
|
|
1961
|
+
className: Hn.labels,
|
|
1920
1962
|
"aria-hidden": "true",
|
|
1921
1963
|
children: l.map((e) => {
|
|
1922
|
-
let n = (
|
|
1964
|
+
let n = (Un(e.value, i, a) - i) / (a - i) * 100;
|
|
1923
1965
|
return /* @__PURE__ */ t("span", {
|
|
1924
|
-
className:
|
|
1966
|
+
className: Hn.markLabel,
|
|
1925
1967
|
style: { left: `${n}%` },
|
|
1926
1968
|
children: e.label
|
|
1927
1969
|
}, e.value);
|
|
@@ -1929,7 +1971,7 @@ function Wn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1929
1971
|
})]
|
|
1930
1972
|
});
|
|
1931
1973
|
}
|
|
1932
|
-
var
|
|
1974
|
+
var qn = {
|
|
1933
1975
|
panel: "_panel_1tk9v_3",
|
|
1934
1976
|
visible: "_visible_1tk9v_36",
|
|
1935
1977
|
arrow: "_arrow_1tk9v_44",
|
|
@@ -1937,8 +1979,8 @@ var Gn = {
|
|
|
1937
1979
|
top: "_top_1tk9v_67",
|
|
1938
1980
|
left: "_left_1tk9v_75",
|
|
1939
1981
|
right: "_right_1tk9v_83"
|
|
1940
|
-
},
|
|
1941
|
-
function
|
|
1982
|
+
}, Jn = 8, H = 10, Yn = 6;
|
|
1983
|
+
function Xn(e, t, n) {
|
|
1942
1984
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
1943
1985
|
n,
|
|
1944
1986
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -1949,17 +1991,17 @@ function Jn(e, t, n) {
|
|
|
1949
1991
|
])];
|
|
1950
1992
|
function o(n) {
|
|
1951
1993
|
return n === "bottom" ? {
|
|
1952
|
-
top: e.bottom +
|
|
1994
|
+
top: e.bottom + Jn,
|
|
1953
1995
|
left: e.left + e.width / 2 - t.width / 2
|
|
1954
1996
|
} : n === "top" ? {
|
|
1955
|
-
top: e.top - t.height -
|
|
1997
|
+
top: e.top - t.height - Jn,
|
|
1956
1998
|
left: e.left + e.width / 2 - t.width / 2
|
|
1957
1999
|
} : n === "left" ? {
|
|
1958
2000
|
top: e.top + e.height / 2 - t.height / 2,
|
|
1959
|
-
left: e.left - t.width -
|
|
2001
|
+
left: e.left - t.width - Jn
|
|
1960
2002
|
} : {
|
|
1961
2003
|
top: e.top + e.height / 2 - t.height / 2,
|
|
1962
|
-
left: e.right +
|
|
2004
|
+
left: e.right + Jn
|
|
1963
2005
|
};
|
|
1964
2006
|
}
|
|
1965
2007
|
for (let n of a) {
|
|
@@ -1979,7 +2021,7 @@ function Jn(e, t, n) {
|
|
|
1979
2021
|
top: a,
|
|
1980
2022
|
left: i,
|
|
1981
2023
|
placement: n,
|
|
1982
|
-
arrowOffset: Math.max(
|
|
2024
|
+
arrowOffset: Math.max(Yn + 4, Math.min(o, t.width - Yn - 4))
|
|
1983
2025
|
};
|
|
1984
2026
|
}
|
|
1985
2027
|
if ((n === "left" || n === "right") && l) {
|
|
@@ -1988,19 +2030,19 @@ function Jn(e, t, n) {
|
|
|
1988
2030
|
top: r,
|
|
1989
2031
|
left: s,
|
|
1990
2032
|
placement: n,
|
|
1991
|
-
arrowOffset: Math.max(
|
|
2033
|
+
arrowOffset: Math.max(Yn + 4, Math.min(o, t.height - Yn - 4))
|
|
1992
2034
|
};
|
|
1993
2035
|
}
|
|
1994
2036
|
}
|
|
1995
|
-
let s = e.bottom +
|
|
2037
|
+
let s = e.bottom + Jn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(H, Math.min(s, i - t.height - H)), u = Math.max(H, Math.min(c, r - t.width - H)), d = e.left + e.width / 2 - u;
|
|
1996
2038
|
return {
|
|
1997
2039
|
top: l,
|
|
1998
2040
|
left: u,
|
|
1999
2041
|
placement: "bottom",
|
|
2000
|
-
arrowOffset: Math.max(
|
|
2042
|
+
arrowOffset: Math.max(Yn + 4, Math.min(d, t.width - Yn - 4))
|
|
2001
2043
|
};
|
|
2002
2044
|
}
|
|
2003
|
-
function
|
|
2045
|
+
function Zn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: m, children: h }) {
|
|
2004
2046
|
let g = o !== void 0, [_, v] = f(!1), y = g ? o : _, [b, x] = f(null), S = u(), C = u(), w = d(null), T = d(null), E = d(null), D = s(() => {
|
|
2005
2047
|
g ? c?.() : v(!1), m?.(!1);
|
|
2006
2048
|
}, [
|
|
@@ -2015,7 +2057,7 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2015
2057
|
g,
|
|
2016
2058
|
m
|
|
2017
2059
|
]), k = s(() => {
|
|
2018
|
-
!w.current || !T.current || x(
|
|
2060
|
+
!w.current || !T.current || x(Xn(w.current.getBoundingClientRect(), T.current.getBoundingClientRect(), a));
|
|
2019
2061
|
}, [a]);
|
|
2020
2062
|
l(() => {
|
|
2021
2063
|
if (!y) return;
|
|
@@ -2057,9 +2099,9 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2057
2099
|
"aria-labelledby": S,
|
|
2058
2100
|
tabIndex: -1,
|
|
2059
2101
|
className: [
|
|
2060
|
-
|
|
2061
|
-
b ?
|
|
2062
|
-
y && b ?
|
|
2102
|
+
qn.panel,
|
|
2103
|
+
b ? qn[b.placement] : null,
|
|
2104
|
+
y && b ? qn.visible : null
|
|
2063
2105
|
].filter(Boolean).join(" "),
|
|
2064
2106
|
style: b ? {
|
|
2065
2107
|
top: b.top,
|
|
@@ -2072,25 +2114,25 @@ function Yn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2072
2114
|
},
|
|
2073
2115
|
onKeyDown: A,
|
|
2074
2116
|
children: [/* @__PURE__ */ t("div", {
|
|
2075
|
-
className:
|
|
2117
|
+
className: qn.arrow,
|
|
2076
2118
|
"aria-hidden": "true",
|
|
2077
2119
|
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2078
|
-
left: b.arrowOffset -
|
|
2120
|
+
left: b.arrowOffset - Yn,
|
|
2079
2121
|
marginLeft: 0
|
|
2080
2122
|
} : {
|
|
2081
|
-
top: b.arrowOffset -
|
|
2123
|
+
top: b.arrowOffset - Yn,
|
|
2082
2124
|
marginTop: 0
|
|
2083
2125
|
}
|
|
2084
2126
|
}), r]
|
|
2085
2127
|
});
|
|
2086
2128
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? p(M, document.body) : M)] });
|
|
2087
2129
|
}
|
|
2088
|
-
var
|
|
2130
|
+
var Qn = { clamp: "_clamp_1j51b_6" };
|
|
2089
2131
|
//#endregion
|
|
2090
2132
|
//#region src/components/Clamp/Clamp.tsx
|
|
2091
|
-
function
|
|
2133
|
+
function $n({ maximumSize: e = 600, children: n, className: r, style: i, ...a }) {
|
|
2092
2134
|
return /* @__PURE__ */ t("div", {
|
|
2093
|
-
className: [
|
|
2135
|
+
className: [Qn.clamp, r].filter(Boolean).join(" "),
|
|
2094
2136
|
style: {
|
|
2095
2137
|
maxWidth: e,
|
|
2096
2138
|
...i
|
|
@@ -2111,8 +2153,8 @@ var U = {
|
|
|
2111
2153
|
};
|
|
2112
2154
|
//#endregion
|
|
2113
2155
|
//#region src/components/NavigationSplitView/NavigationSplitView.tsx
|
|
2114
|
-
function
|
|
2115
|
-
let { isNarrow: d } =
|
|
2156
|
+
function er({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a = 180, maxSidebarWidth: o = 280, sidebarWidthFraction: s = .25, className: c, style: l, ...u }) {
|
|
2157
|
+
let { isNarrow: d } = We(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2116
2158
|
return /* @__PURE__ */ n("div", {
|
|
2117
2159
|
className: [
|
|
2118
2160
|
U.root,
|
|
@@ -2157,8 +2199,8 @@ var W = {
|
|
|
2157
2199
|
};
|
|
2158
2200
|
//#endregion
|
|
2159
2201
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2160
|
-
function
|
|
2161
|
-
let { isNarrow: h } =
|
|
2202
|
+
function tr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPosition: o = "start", minSidebarWidth: s = 180, maxSidebarWidth: c = 280, sidebarWidthFraction: u = .25, className: f, style: p, ...m }) {
|
|
2203
|
+
let { isNarrow: h } = We(), g = d(null), _ = `clamp(${s}px, ${u * 100}%, ${c}px)`;
|
|
2162
2204
|
l(() => {
|
|
2163
2205
|
if (!h || !i) return;
|
|
2164
2206
|
let e = (e) => {
|
|
@@ -2204,52 +2246,52 @@ function $n({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2204
2246
|
]
|
|
2205
2247
|
});
|
|
2206
2248
|
}
|
|
2207
|
-
var
|
|
2249
|
+
var nr = { bar: "_bar_njcvu_3" };
|
|
2208
2250
|
//#endregion
|
|
2209
2251
|
//#region src/components/ViewSwitcherBar/ViewSwitcherBar.tsx
|
|
2210
|
-
function
|
|
2252
|
+
function rr({ children: e, reveal: n = !0, className: r, ...i }) {
|
|
2211
2253
|
return n ? /* @__PURE__ */ t("div", {
|
|
2212
2254
|
role: "navigation",
|
|
2213
2255
|
"aria-label": "Bottom navigation",
|
|
2214
|
-
className: [
|
|
2256
|
+
className: [nr.bar, r].filter(Boolean).join(" "),
|
|
2215
2257
|
...i,
|
|
2216
2258
|
children: e
|
|
2217
2259
|
}) : null;
|
|
2218
2260
|
}
|
|
2219
|
-
var
|
|
2261
|
+
var ir = {
|
|
2220
2262
|
link: "_link_x1qyh_1",
|
|
2221
2263
|
externalIcon: "_externalIcon_x1qyh_36"
|
|
2222
2264
|
};
|
|
2223
2265
|
//#endregion
|
|
2224
2266
|
//#region src/components/Link/Link.tsx
|
|
2225
|
-
function
|
|
2267
|
+
function ar({ external: e = !1, children: r, className: i, target: a, rel: o, ...s }) {
|
|
2226
2268
|
let c = e || a === "_blank";
|
|
2227
2269
|
return /* @__PURE__ */ n("a", {
|
|
2228
|
-
className: [
|
|
2270
|
+
className: [ir.link, i].filter(Boolean).join(" "),
|
|
2229
2271
|
target: c ? "_blank" : a,
|
|
2230
2272
|
rel: c ? "noopener noreferrer" : o,
|
|
2231
2273
|
...s,
|
|
2232
2274
|
children: [r, c && /* @__PURE__ */ t("span", {
|
|
2233
|
-
className:
|
|
2275
|
+
className: ir.externalIcon,
|
|
2234
2276
|
"aria-label": "(opens in new tab)",
|
|
2235
2277
|
children: "↗"
|
|
2236
2278
|
})]
|
|
2237
2279
|
});
|
|
2238
2280
|
}
|
|
2239
|
-
var
|
|
2281
|
+
var or = {
|
|
2240
2282
|
group: "_group_1fa3l_3",
|
|
2241
2283
|
item: "_item_1fa3l_18",
|
|
2242
2284
|
iconOnly: "_iconOnly_1fa3l_48",
|
|
2243
2285
|
active: "_active_1fa3l_53",
|
|
2244
2286
|
itemIcon: "_itemIcon_1fa3l_86",
|
|
2245
2287
|
itemLabel: "_itemLabel_1fa3l_92"
|
|
2246
|
-
},
|
|
2247
|
-
function
|
|
2248
|
-
let e = c(
|
|
2288
|
+
}, sr = a(null);
|
|
2289
|
+
function cr() {
|
|
2290
|
+
let e = c(sr);
|
|
2249
2291
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
2250
2292
|
return e;
|
|
2251
2293
|
}
|
|
2252
|
-
function
|
|
2294
|
+
function lr({ value: e, onValueChange: n, "aria-label": r = "Options", children: i, className: a, ...o }) {
|
|
2253
2295
|
let s = d(null);
|
|
2254
2296
|
function c(e) {
|
|
2255
2297
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2262,7 +2304,7 @@ function sr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2262
2304
|
else return;
|
|
2263
2305
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2264
2306
|
}
|
|
2265
|
-
return /* @__PURE__ */ t(
|
|
2307
|
+
return /* @__PURE__ */ t(sr.Provider, {
|
|
2266
2308
|
value: {
|
|
2267
2309
|
value: e,
|
|
2268
2310
|
onValueChange: n
|
|
@@ -2272,7 +2314,7 @@ function sr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2272
2314
|
role: "radiogroup",
|
|
2273
2315
|
"aria-label": r,
|
|
2274
2316
|
onKeyDown: c,
|
|
2275
|
-
className: [
|
|
2317
|
+
className: [or.group, a].filter(Boolean).join(" "),
|
|
2276
2318
|
...o,
|
|
2277
2319
|
children: i
|
|
2278
2320
|
})
|
|
@@ -2280,8 +2322,8 @@ function sr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2280
2322
|
}
|
|
2281
2323
|
//#endregion
|
|
2282
2324
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
2283
|
-
function
|
|
2284
|
-
let { value: c, onValueChange: l } =
|
|
2325
|
+
function ur({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
2326
|
+
let { value: c, onValueChange: l } = cr(), u = c === e, d = i && !r;
|
|
2285
2327
|
return /* @__PURE__ */ n("button", {
|
|
2286
2328
|
type: "button",
|
|
2287
2329
|
role: "radio",
|
|
@@ -2290,28 +2332,28 @@ function cr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2290
2332
|
disabled: a,
|
|
2291
2333
|
onClick: () => l(e),
|
|
2292
2334
|
className: [
|
|
2293
|
-
|
|
2294
|
-
u ?
|
|
2295
|
-
d ?
|
|
2335
|
+
or.item,
|
|
2336
|
+
u ? or.active : null,
|
|
2337
|
+
d ? or.iconOnly : null,
|
|
2296
2338
|
o
|
|
2297
2339
|
].filter(Boolean).join(" "),
|
|
2298
2340
|
...s,
|
|
2299
2341
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2300
|
-
className:
|
|
2301
|
-
children: /* @__PURE__ */ t(
|
|
2342
|
+
className: or.itemIcon,
|
|
2343
|
+
children: /* @__PURE__ */ t(I, {
|
|
2302
2344
|
icon: i,
|
|
2303
2345
|
size: "md",
|
|
2304
2346
|
"aria-hidden": !0
|
|
2305
2347
|
})
|
|
2306
2348
|
}), r && /* @__PURE__ */ t("span", {
|
|
2307
|
-
className:
|
|
2349
|
+
className: or.itemLabel,
|
|
2308
2350
|
children: r
|
|
2309
2351
|
})]
|
|
2310
2352
|
});
|
|
2311
2353
|
}
|
|
2312
2354
|
//#endregion
|
|
2313
2355
|
//#region src/components/Box/Box.tsx
|
|
2314
|
-
function
|
|
2356
|
+
function dr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i = "start", className: a, style: o, children: s, ...c }) {
|
|
2315
2357
|
let l = e === "horizontal" ? "center" : "stretch";
|
|
2316
2358
|
return /* @__PURE__ */ t("div", {
|
|
2317
2359
|
className: a,
|
|
@@ -2327,13 +2369,13 @@ function lr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i
|
|
|
2327
2369
|
children: s
|
|
2328
2370
|
});
|
|
2329
2371
|
}
|
|
2330
|
-
var
|
|
2372
|
+
var fr = {
|
|
2331
2373
|
wrapBox: "_wrapBox_1ik0x_1",
|
|
2332
2374
|
reverse: "_reverse_1ik0x_10"
|
|
2333
2375
|
};
|
|
2334
2376
|
//#endregion
|
|
2335
2377
|
//#region src/components/WrapBox/WrapBox.tsx
|
|
2336
|
-
function
|
|
2378
|
+
function pr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align: i = "center", wrapReverse: a = !1, children: o, className: s, style: c, ...l }) {
|
|
2337
2379
|
let u = typeof e == "number" ? `${e}px` : e, d = n == null ? u : typeof n == "number" ? `${n}px` : n, f = {
|
|
2338
2380
|
"--wrapbox-gap": u,
|
|
2339
2381
|
"--wrapbox-row-gap": d,
|
|
@@ -2343,8 +2385,8 @@ function dr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2343
2385
|
};
|
|
2344
2386
|
return /* @__PURE__ */ t("div", {
|
|
2345
2387
|
className: [
|
|
2346
|
-
|
|
2347
|
-
a ?
|
|
2388
|
+
fr.wrapBox,
|
|
2389
|
+
a ? fr.reverse : null,
|
|
2348
2390
|
s
|
|
2349
2391
|
].filter(Boolean).join(" "),
|
|
2350
2392
|
style: f,
|
|
@@ -2352,7 +2394,7 @@ function dr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2352
2394
|
children: o
|
|
2353
2395
|
});
|
|
2354
2396
|
}
|
|
2355
|
-
var
|
|
2397
|
+
var mr = {
|
|
2356
2398
|
chip: "_chip_e26qc_3",
|
|
2357
2399
|
selectable: "_selectable_e26qc_31",
|
|
2358
2400
|
selected: "_selected_e26qc_55",
|
|
@@ -2363,37 +2405,37 @@ var fr = {
|
|
|
2363
2405
|
};
|
|
2364
2406
|
//#endregion
|
|
2365
2407
|
//#region src/components/Chip/Chip.tsx
|
|
2366
|
-
function
|
|
2408
|
+
function hr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s = !1, onToggle: c, disabled: l = !1, className: u, ...d }) {
|
|
2367
2409
|
let f = o && !a, p = [
|
|
2368
|
-
|
|
2369
|
-
s ?
|
|
2370
|
-
l ?
|
|
2371
|
-
f ?
|
|
2410
|
+
mr.chip,
|
|
2411
|
+
s ? mr.selected : null,
|
|
2412
|
+
l ? mr.disabled : null,
|
|
2413
|
+
f ? mr.selectable : null,
|
|
2372
2414
|
u
|
|
2373
2415
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2374
2416
|
i && /* @__PURE__ */ t("span", {
|
|
2375
|
-
className:
|
|
2376
|
-
children: /* @__PURE__ */ t(
|
|
2417
|
+
className: mr.icon,
|
|
2418
|
+
children: /* @__PURE__ */ t(I, {
|
|
2377
2419
|
icon: i,
|
|
2378
2420
|
size: "sm",
|
|
2379
2421
|
"aria-hidden": !0
|
|
2380
2422
|
})
|
|
2381
2423
|
}),
|
|
2382
2424
|
/* @__PURE__ */ t("span", {
|
|
2383
|
-
className:
|
|
2425
|
+
className: mr.label,
|
|
2384
2426
|
children: r
|
|
2385
2427
|
}),
|
|
2386
2428
|
a && /* @__PURE__ */ t("button", {
|
|
2387
2429
|
type: "button",
|
|
2388
|
-
className:
|
|
2430
|
+
className: mr.remove,
|
|
2389
2431
|
"aria-label": `Remove ${r}`,
|
|
2390
2432
|
disabled: l,
|
|
2391
2433
|
onClick: (e) => {
|
|
2392
2434
|
e.stopPropagation(), a();
|
|
2393
2435
|
},
|
|
2394
2436
|
tabIndex: l ? -1 : 0,
|
|
2395
|
-
children: /* @__PURE__ */ t(
|
|
2396
|
-
icon:
|
|
2437
|
+
children: /* @__PURE__ */ t(I, {
|
|
2438
|
+
icon: Pe,
|
|
2397
2439
|
size: "sm",
|
|
2398
2440
|
"aria-hidden": !0
|
|
2399
2441
|
})
|
|
@@ -2417,30 +2459,30 @@ function pr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2417
2459
|
}
|
|
2418
2460
|
//#endregion
|
|
2419
2461
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2420
|
-
var
|
|
2421
|
-
backdrop:
|
|
2462
|
+
var gr = "_backdrop_zvuhh_3", _r = "_dialog_zvuhh_26", vr = "_header_zvuhh_59", yr = "_title_zvuhh_67", br = "_closeBtn_zvuhh_74", xr = "_searchRow_zvuhh_112", Sr = "_searchIcon_zvuhh_124", Cr = "_searchInput_zvuhh_132", wr = "_searchClear_zvuhh_151", Tr = "_body_zvuhh_174", Er = "_empty_zvuhh_182", Dr = "_section_zvuhh_193", Or = "_sectionTitle_zvuhh_199", kr = "_list_zvuhh_209", Ar = "_row_zvuhh_225", jr = "_keys_zvuhh_240", Mr = "_keyCap_zvuhh_247", Nr = "_plus_zvuhh_277", Pr = "_description_zvuhh_284", G = {
|
|
2463
|
+
backdrop: gr,
|
|
2422
2464
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2423
|
-
dialog:
|
|
2465
|
+
dialog: _r,
|
|
2424
2466
|
"dialog-in": "_dialog-in_zvuhh_1",
|
|
2425
|
-
header:
|
|
2426
|
-
title:
|
|
2427
|
-
closeBtn:
|
|
2428
|
-
searchRow:
|
|
2429
|
-
searchIcon:
|
|
2430
|
-
searchInput:
|
|
2431
|
-
searchClear:
|
|
2432
|
-
body:
|
|
2433
|
-
empty:
|
|
2434
|
-
section:
|
|
2435
|
-
sectionTitle:
|
|
2436
|
-
list:
|
|
2437
|
-
row:
|
|
2438
|
-
keys:
|
|
2439
|
-
keyCap:
|
|
2440
|
-
plus:
|
|
2441
|
-
description:
|
|
2442
|
-
},
|
|
2443
|
-
function
|
|
2467
|
+
header: vr,
|
|
2468
|
+
title: yr,
|
|
2469
|
+
closeBtn: br,
|
|
2470
|
+
searchRow: xr,
|
|
2471
|
+
searchIcon: Sr,
|
|
2472
|
+
searchInput: Cr,
|
|
2473
|
+
searchClear: wr,
|
|
2474
|
+
body: Tr,
|
|
2475
|
+
empty: Er,
|
|
2476
|
+
section: Dr,
|
|
2477
|
+
sectionTitle: Or,
|
|
2478
|
+
list: kr,
|
|
2479
|
+
row: Ar,
|
|
2480
|
+
keys: jr,
|
|
2481
|
+
keyCap: Mr,
|
|
2482
|
+
plus: Nr,
|
|
2483
|
+
description: Pr
|
|
2484
|
+
}, Fr = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2485
|
+
function Ir({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2444
2486
|
let [o, c] = f(""), u = d(null), m = d(null), h = d(null), g = d(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2445
2487
|
l(() => {
|
|
2446
2488
|
e ? (h.current = document.activeElement, requestAnimationFrame(() => m.current?.focus())) : (c(""), h.current?.focus());
|
|
@@ -2451,7 +2493,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2451
2493
|
return;
|
|
2452
2494
|
}
|
|
2453
2495
|
if (e.key !== "Tab") return;
|
|
2454
|
-
let t = Array.from(u.current?.querySelectorAll(
|
|
2496
|
+
let t = Array.from(u.current?.querySelectorAll(Fr) ?? []);
|
|
2455
2497
|
if (t.length === 0) return;
|
|
2456
2498
|
let n = t[0], i = t[t.length - 1];
|
|
2457
2499
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
@@ -2559,7 +2601,7 @@ function Pr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2559
2601
|
});
|
|
2560
2602
|
return typeof document > "u" ? b : p(b, document.body);
|
|
2561
2603
|
}
|
|
2562
|
-
var
|
|
2604
|
+
var Lr = {
|
|
2563
2605
|
sidebar: "_sidebar_kmj4b_3",
|
|
2564
2606
|
list: "_list_kmj4b_17",
|
|
2565
2607
|
item: "_item_kmj4b_28",
|
|
@@ -2569,13 +2611,13 @@ var Fr = {
|
|
|
2569
2611
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2570
2612
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2571
2613
|
count: "_count_kmj4b_136"
|
|
2572
|
-
},
|
|
2573
|
-
function
|
|
2574
|
-
let e = c(
|
|
2614
|
+
}, Rr = a(null);
|
|
2615
|
+
function zr() {
|
|
2616
|
+
let e = c(Rr);
|
|
2575
2617
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2576
2618
|
return e;
|
|
2577
2619
|
}
|
|
2578
|
-
function
|
|
2620
|
+
function Br({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2579
2621
|
let s = d(null);
|
|
2580
2622
|
function c(e) {
|
|
2581
2623
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2588,20 +2630,20 @@ function Rr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2588
2630
|
else return;
|
|
2589
2631
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2590
2632
|
}
|
|
2591
|
-
return /* @__PURE__ */ t(
|
|
2633
|
+
return /* @__PURE__ */ t(Rr.Provider, {
|
|
2592
2634
|
value: {
|
|
2593
2635
|
value: e,
|
|
2594
2636
|
onValueChange: n
|
|
2595
2637
|
},
|
|
2596
2638
|
children: /* @__PURE__ */ t("nav", {
|
|
2597
|
-
className: [
|
|
2639
|
+
className: [Lr.sidebar, a].filter(Boolean).join(" "),
|
|
2598
2640
|
onKeyDown: c,
|
|
2599
2641
|
...o,
|
|
2600
2642
|
children: /* @__PURE__ */ t("ul", {
|
|
2601
2643
|
ref: s,
|
|
2602
2644
|
role: "radiogroup",
|
|
2603
2645
|
"aria-label": r,
|
|
2604
|
-
className:
|
|
2646
|
+
className: Lr.list,
|
|
2605
2647
|
children: i
|
|
2606
2648
|
})
|
|
2607
2649
|
})
|
|
@@ -2609,10 +2651,10 @@ function Rr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2609
2651
|
}
|
|
2610
2652
|
//#endregion
|
|
2611
2653
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2612
|
-
function
|
|
2613
|
-
let { value: u, onValueChange: d } =
|
|
2654
|
+
function Vr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2655
|
+
let { value: u, onValueChange: d } = zr(), f = u === e, p = o ?? a ?? null;
|
|
2614
2656
|
return /* @__PURE__ */ t("li", {
|
|
2615
|
-
className:
|
|
2657
|
+
className: Lr.item,
|
|
2616
2658
|
children: /* @__PURE__ */ n("button", {
|
|
2617
2659
|
type: "button",
|
|
2618
2660
|
role: "radio",
|
|
@@ -2621,28 +2663,28 @@ function zr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2621
2663
|
disabled: s,
|
|
2622
2664
|
onClick: () => d(e),
|
|
2623
2665
|
className: [
|
|
2624
|
-
|
|
2625
|
-
f ?
|
|
2666
|
+
Lr.itemBtn,
|
|
2667
|
+
f ? Lr.active : null,
|
|
2626
2668
|
c
|
|
2627
2669
|
].filter(Boolean).join(" "),
|
|
2628
2670
|
...l,
|
|
2629
2671
|
children: [
|
|
2630
2672
|
i && /* @__PURE__ */ t("span", {
|
|
2631
|
-
className:
|
|
2632
|
-
children: /* @__PURE__ */ t(
|
|
2673
|
+
className: Lr.itemIcon,
|
|
2674
|
+
children: /* @__PURE__ */ t(I, {
|
|
2633
2675
|
icon: i,
|
|
2634
2676
|
size: "md",
|
|
2635
2677
|
"aria-hidden": !0
|
|
2636
2678
|
})
|
|
2637
2679
|
}),
|
|
2638
2680
|
/* @__PURE__ */ t("span", {
|
|
2639
|
-
className:
|
|
2681
|
+
className: Lr.itemLabel,
|
|
2640
2682
|
children: r
|
|
2641
2683
|
}),
|
|
2642
2684
|
p != null && /* @__PURE__ */ t("span", {
|
|
2643
|
-
className:
|
|
2685
|
+
className: Lr.itemSuffix,
|
|
2644
2686
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2645
|
-
className:
|
|
2687
|
+
className: Lr.count,
|
|
2646
2688
|
children: p > 99 ? "99+" : p
|
|
2647
2689
|
}) : p
|
|
2648
2690
|
})
|
|
@@ -2652,7 +2694,7 @@ function zr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2652
2694
|
}
|
|
2653
2695
|
//#endregion
|
|
2654
2696
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2655
|
-
function
|
|
2697
|
+
function Hr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2656
2698
|
let o = d(null), [s, c] = f({
|
|
2657
2699
|
activeBreakpoint: null,
|
|
2658
2700
|
width: 0
|
|
@@ -2682,7 +2724,7 @@ function Br({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2682
2724
|
children: n(s)
|
|
2683
2725
|
});
|
|
2684
2726
|
}
|
|
2685
|
-
var
|
|
2727
|
+
var Ur = {
|
|
2686
2728
|
row: "_row_1ba2f_3",
|
|
2687
2729
|
title: "_title_1ba2f_48",
|
|
2688
2730
|
leading: "_leading_1ba2f_59",
|
|
@@ -2693,31 +2735,31 @@ var Vr = {
|
|
|
2693
2735
|
};
|
|
2694
2736
|
//#endregion
|
|
2695
2737
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2696
|
-
function
|
|
2738
|
+
function Wr({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2697
2739
|
return /* @__PURE__ */ n("button", {
|
|
2698
2740
|
className: [
|
|
2699
|
-
|
|
2700
|
-
|
|
2741
|
+
Ur.row,
|
|
2742
|
+
Ur[r],
|
|
2701
2743
|
o
|
|
2702
2744
|
].filter(Boolean).join(" "),
|
|
2703
2745
|
...s,
|
|
2704
2746
|
children: [
|
|
2705
2747
|
i && /* @__PURE__ */ t("span", {
|
|
2706
|
-
className:
|
|
2748
|
+
className: Ur.leading,
|
|
2707
2749
|
children: i
|
|
2708
2750
|
}),
|
|
2709
2751
|
/* @__PURE__ */ t("span", {
|
|
2710
|
-
className:
|
|
2752
|
+
className: Ur.title,
|
|
2711
2753
|
children: e
|
|
2712
2754
|
}),
|
|
2713
2755
|
a && /* @__PURE__ */ t("span", {
|
|
2714
|
-
className:
|
|
2756
|
+
className: Ur.trailing,
|
|
2715
2757
|
children: a
|
|
2716
2758
|
})
|
|
2717
2759
|
]
|
|
2718
2760
|
});
|
|
2719
2761
|
}
|
|
2720
|
-
var
|
|
2762
|
+
var Gr = {
|
|
2721
2763
|
container: "_container_4kjnf_3",
|
|
2722
2764
|
primary: "_primary_4kjnf_14",
|
|
2723
2765
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -2731,7 +2773,7 @@ var Ur = {
|
|
|
2731
2773
|
};
|
|
2732
2774
|
//#endregion
|
|
2733
2775
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2734
|
-
function
|
|
2776
|
+
function Kr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: m, ...h }) {
|
|
2735
2777
|
let [g, _] = f(!1), [v, y] = f({}), b = d(null), x = d(null), S = d(null), C = s(() => _(!1), []), w = s(() => {
|
|
2736
2778
|
if (!x.current || !S.current) return;
|
|
2737
2779
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -2761,15 +2803,15 @@ function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2761
2803
|
let T = (e) => {
|
|
2762
2804
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
2763
2805
|
}, E = [
|
|
2764
|
-
|
|
2765
|
-
|
|
2806
|
+
Gr.container,
|
|
2807
|
+
Gr[i],
|
|
2766
2808
|
m
|
|
2767
2809
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2768
2810
|
ref: S,
|
|
2769
2811
|
role: "dialog",
|
|
2770
2812
|
"aria-label": o,
|
|
2771
2813
|
tabIndex: -1,
|
|
2772
|
-
className: [
|
|
2814
|
+
className: [Gr.dropdown, g ? Gr.dropdownVisible : null].filter(Boolean).join(" "),
|
|
2773
2815
|
style: Object.keys(v).length ? {
|
|
2774
2816
|
...v,
|
|
2775
2817
|
position: "fixed"
|
|
@@ -2788,26 +2830,26 @@ function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2788
2830
|
className: E,
|
|
2789
2831
|
children: [
|
|
2790
2832
|
/* @__PURE__ */ t("button", {
|
|
2791
|
-
className:
|
|
2833
|
+
className: Gr.primary,
|
|
2792
2834
|
disabled: c,
|
|
2793
2835
|
onClick: u,
|
|
2794
2836
|
...h,
|
|
2795
2837
|
children: r
|
|
2796
2838
|
}),
|
|
2797
2839
|
/* @__PURE__ */ t("span", {
|
|
2798
|
-
className:
|
|
2840
|
+
className: Gr.separator,
|
|
2799
2841
|
"aria-hidden": "true"
|
|
2800
2842
|
}),
|
|
2801
2843
|
/* @__PURE__ */ t("button", {
|
|
2802
2844
|
ref: x,
|
|
2803
|
-
className:
|
|
2845
|
+
className: Gr.toggle,
|
|
2804
2846
|
disabled: c,
|
|
2805
2847
|
"aria-label": o,
|
|
2806
2848
|
"aria-haspopup": "dialog",
|
|
2807
2849
|
"aria-expanded": g,
|
|
2808
2850
|
onClick: () => _((e) => !e),
|
|
2809
2851
|
children: /* @__PURE__ */ t("svg", {
|
|
2810
|
-
className:
|
|
2852
|
+
className: Gr.chevron,
|
|
2811
2853
|
width: "16",
|
|
2812
2854
|
height: "16",
|
|
2813
2855
|
viewBox: "0 0 16 16",
|
|
@@ -2826,51 +2868,51 @@ function Wr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2826
2868
|
]
|
|
2827
2869
|
}), g && (typeof document < "u" ? p(D, document.body) : D)] });
|
|
2828
2870
|
}
|
|
2829
|
-
var
|
|
2871
|
+
var qr = {
|
|
2830
2872
|
toolbar: "_toolbar_1avgl_2",
|
|
2831
2873
|
spacer: "_spacer_1avgl_20"
|
|
2832
2874
|
};
|
|
2833
2875
|
//#endregion
|
|
2834
2876
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
2835
|
-
function
|
|
2877
|
+
function Jr({ children: e, className: n, ...r }) {
|
|
2836
2878
|
return /* @__PURE__ */ t("div", {
|
|
2837
|
-
className: [
|
|
2879
|
+
className: [qr.toolbar, n].filter(Boolean).join(" "),
|
|
2838
2880
|
...r,
|
|
2839
2881
|
children: e
|
|
2840
2882
|
});
|
|
2841
2883
|
}
|
|
2842
2884
|
//#endregion
|
|
2843
2885
|
//#region src/components/Toolbar/Spacer.tsx
|
|
2844
|
-
function
|
|
2886
|
+
function Yr({ className: e, ...n }) {
|
|
2845
2887
|
return /* @__PURE__ */ t("div", {
|
|
2846
2888
|
"aria-hidden": "true",
|
|
2847
|
-
className: [
|
|
2889
|
+
className: [qr.spacer, e].filter(Boolean).join(" "),
|
|
2848
2890
|
...n
|
|
2849
2891
|
});
|
|
2850
2892
|
}
|
|
2851
|
-
var
|
|
2893
|
+
var Xr = {
|
|
2852
2894
|
linked: "_linked_1tser_3",
|
|
2853
2895
|
vertical: "_vertical_1tser_9"
|
|
2854
2896
|
};
|
|
2855
2897
|
//#endregion
|
|
2856
2898
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
2857
|
-
function
|
|
2899
|
+
function Zr({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
2858
2900
|
return /* @__PURE__ */ t("div", {
|
|
2859
2901
|
className: [
|
|
2860
|
-
|
|
2861
|
-
n ?
|
|
2902
|
+
Xr.linked,
|
|
2903
|
+
n ? Xr.vertical : null,
|
|
2862
2904
|
r
|
|
2863
2905
|
].filter(Boolean).join(" "),
|
|
2864
2906
|
...i,
|
|
2865
2907
|
children: e
|
|
2866
2908
|
});
|
|
2867
2909
|
}
|
|
2868
|
-
var
|
|
2910
|
+
var Qr = { frame: "_frame_1bq7b_2" };
|
|
2869
2911
|
//#endregion
|
|
2870
2912
|
//#region src/components/Frame/Frame.tsx
|
|
2871
|
-
function
|
|
2913
|
+
function $r({ children: e, className: n, ...r }) {
|
|
2872
2914
|
return /* @__PURE__ */ t("div", {
|
|
2873
|
-
className: [
|
|
2915
|
+
className: [Qr.frame, n].filter(Boolean).join(" "),
|
|
2874
2916
|
...r,
|
|
2875
2917
|
children: e
|
|
2876
2918
|
});
|
|
@@ -2894,7 +2936,7 @@ var K = {
|
|
|
2894
2936
|
};
|
|
2895
2937
|
//#endregion
|
|
2896
2938
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
2897
|
-
function
|
|
2939
|
+
function ei({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: p, ...m }) {
|
|
2898
2940
|
let h = c !== void 0, [g, _] = f(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
2899
2941
|
let e = !v;
|
|
2900
2942
|
h || _(e), d?.(e);
|
|
@@ -2969,7 +3011,7 @@ function Qr({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
2969
3011
|
})]
|
|
2970
3012
|
});
|
|
2971
3013
|
}
|
|
2972
|
-
var
|
|
3014
|
+
var ti = {
|
|
2973
3015
|
switcher: "_switcher_2tknm_3",
|
|
2974
3016
|
item: "_item_2tknm_10",
|
|
2975
3017
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -2979,13 +3021,13 @@ var $r = {
|
|
|
2979
3021
|
active: "_active_2tknm_68",
|
|
2980
3022
|
flat: "_flat_2tknm_121",
|
|
2981
3023
|
round: "_round_2tknm_169"
|
|
2982
|
-
},
|
|
2983
|
-
function
|
|
2984
|
-
let e = c(
|
|
3024
|
+
}, ni = a(null);
|
|
3025
|
+
function ri() {
|
|
3026
|
+
let e = c(ni);
|
|
2985
3027
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
2986
3028
|
return e;
|
|
2987
3029
|
}
|
|
2988
|
-
function
|
|
3030
|
+
function ii({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
2989
3031
|
let c = d(null);
|
|
2990
3032
|
function l(e) {
|
|
2991
3033
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2998,7 +3040,7 @@ function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
2998
3040
|
else return;
|
|
2999
3041
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
3000
3042
|
}
|
|
3001
|
-
return /* @__PURE__ */ t(
|
|
3043
|
+
return /* @__PURE__ */ t(ni.Provider, {
|
|
3002
3044
|
value: {
|
|
3003
3045
|
value: e,
|
|
3004
3046
|
onValueChange: n
|
|
@@ -3009,8 +3051,8 @@ function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3009
3051
|
"aria-label": i,
|
|
3010
3052
|
onKeyDown: l,
|
|
3011
3053
|
className: [
|
|
3012
|
-
|
|
3013
|
-
|
|
3054
|
+
ti.switcher,
|
|
3055
|
+
ti[r],
|
|
3014
3056
|
o
|
|
3015
3057
|
].filter(Boolean).join(" "),
|
|
3016
3058
|
...s,
|
|
@@ -3020,8 +3062,8 @@ function ni({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3020
3062
|
}
|
|
3021
3063
|
//#endregion
|
|
3022
3064
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
3023
|
-
function
|
|
3024
|
-
let { value: c, onValueChange: l } =
|
|
3065
|
+
function ai({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3066
|
+
let { value: c, onValueChange: l } = ri(), u = c === e, d = i && !r;
|
|
3025
3067
|
return /* @__PURE__ */ n("button", {
|
|
3026
3068
|
type: "button",
|
|
3027
3069
|
role: "radio",
|
|
@@ -3030,26 +3072,26 @@ function ri({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3030
3072
|
disabled: a,
|
|
3031
3073
|
onClick: () => l(e),
|
|
3032
3074
|
className: [
|
|
3033
|
-
|
|
3034
|
-
u ?
|
|
3035
|
-
d ?
|
|
3075
|
+
ti.item,
|
|
3076
|
+
u ? ti.active : null,
|
|
3077
|
+
d ? ti.iconOnly : null,
|
|
3036
3078
|
o
|
|
3037
3079
|
].filter(Boolean).join(" "),
|
|
3038
3080
|
...s,
|
|
3039
3081
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3040
|
-
className:
|
|
3041
|
-
children: /* @__PURE__ */ t(
|
|
3082
|
+
className: ti.itemIcon,
|
|
3083
|
+
children: /* @__PURE__ */ t(I, {
|
|
3042
3084
|
icon: i,
|
|
3043
3085
|
size: "md",
|
|
3044
3086
|
"aria-hidden": !0
|
|
3045
3087
|
})
|
|
3046
3088
|
}), r && /* @__PURE__ */ t("span", {
|
|
3047
|
-
className:
|
|
3089
|
+
className: ti.itemLabel,
|
|
3048
3090
|
children: r
|
|
3049
3091
|
})]
|
|
3050
3092
|
});
|
|
3051
3093
|
}
|
|
3052
|
-
var
|
|
3094
|
+
var oi = {
|
|
3053
3095
|
row: "_row_jl3bc_3",
|
|
3054
3096
|
disabled: "_disabled_jl3bc_41",
|
|
3055
3097
|
leading: "_leading_jl3bc_49",
|
|
@@ -3062,7 +3104,7 @@ var ii = {
|
|
|
3062
3104
|
};
|
|
3063
3105
|
//#endregion
|
|
3064
3106
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3065
|
-
function
|
|
3107
|
+
function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3066
3108
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3067
3109
|
let t = !_;
|
|
3068
3110
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3073,32 +3115,32 @@ function ai({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3073
3115
|
"aria-labelledby": v,
|
|
3074
3116
|
disabled: c,
|
|
3075
3117
|
className: [
|
|
3076
|
-
|
|
3077
|
-
c ?
|
|
3118
|
+
oi.row,
|
|
3119
|
+
c ? oi.disabled : null,
|
|
3078
3120
|
l
|
|
3079
3121
|
].filter(Boolean).join(" "),
|
|
3080
3122
|
onClick: y,
|
|
3081
3123
|
...p,
|
|
3082
3124
|
children: [
|
|
3083
3125
|
i && /* @__PURE__ */ t("span", {
|
|
3084
|
-
className:
|
|
3126
|
+
className: oi.leading,
|
|
3085
3127
|
children: i
|
|
3086
3128
|
}),
|
|
3087
3129
|
/* @__PURE__ */ n("span", {
|
|
3088
|
-
className:
|
|
3130
|
+
className: oi.content,
|
|
3089
3131
|
id: v,
|
|
3090
3132
|
children: [/* @__PURE__ */ t("span", {
|
|
3091
|
-
className:
|
|
3133
|
+
className: oi.title,
|
|
3092
3134
|
children: e
|
|
3093
3135
|
}), r && /* @__PURE__ */ t("span", {
|
|
3094
|
-
className:
|
|
3136
|
+
className: oi.subtitle,
|
|
3095
3137
|
children: r
|
|
3096
3138
|
})]
|
|
3097
3139
|
}),
|
|
3098
3140
|
/* @__PURE__ */ t("span", {
|
|
3099
|
-
className:
|
|
3141
|
+
className: oi.switchTrack,
|
|
3100
3142
|
"aria-hidden": "true",
|
|
3101
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3143
|
+
children: /* @__PURE__ */ t("span", { className: [oi.switchThumb, _ ? oi.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3102
3144
|
})
|
|
3103
3145
|
]
|
|
3104
3146
|
});
|
|
@@ -3117,7 +3159,7 @@ var q = {
|
|
|
3117
3159
|
};
|
|
3118
3160
|
//#endregion
|
|
3119
3161
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3120
|
-
function
|
|
3162
|
+
function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...p }) {
|
|
3121
3163
|
let m = a !== void 0, [h, g] = f(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3122
3164
|
let t = !_;
|
|
3123
3165
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3177,35 +3219,35 @@ function oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3177
3219
|
}
|
|
3178
3220
|
//#endregion
|
|
3179
3221
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3180
|
-
var
|
|
3181
|
-
row:
|
|
3182
|
-
disabled:
|
|
3183
|
-
leading:
|
|
3184
|
-
content:
|
|
3185
|
-
title:
|
|
3186
|
-
subtitle:
|
|
3187
|
-
comboWrap:
|
|
3188
|
-
trigger:
|
|
3189
|
-
triggerOpen:
|
|
3190
|
-
triggerLabel:
|
|
3191
|
-
placeholder:
|
|
3192
|
-
chevron:
|
|
3193
|
-
chevronOpen:
|
|
3194
|
-
list:
|
|
3222
|
+
var li = "_row_46mn8_3", ui = "_disabled_46mn8_16", di = "_leading_46mn8_23", fi = "_content_46mn8_32", pi = "_title_46mn8_40", mi = "_subtitle_46mn8_51", hi = "_comboWrap_46mn8_65", gi = "_trigger_46mn8_73", _i = "_triggerOpen_46mn8_126", vi = "_triggerLabel_46mn8_136", yi = "_placeholder_46mn8_144", bi = "_chevron_46mn8_150", xi = "_chevronOpen_46mn8_157", Si = "_list_46mn8_163", Ci = "_listDown_46mn8_192", wi = "_listUp_46mn8_196", Ti = "_option_46mn8_208", Ei = "_optionActive_46mn8_225", Di = "_optionSelected_46mn8_229", Oi = "_optionDisabled_46mn8_233", ki = "_optionLabel_46mn8_239", Ai = "_checkIcon_46mn8_247", J = {
|
|
3223
|
+
row: li,
|
|
3224
|
+
disabled: ui,
|
|
3225
|
+
leading: di,
|
|
3226
|
+
content: fi,
|
|
3227
|
+
title: pi,
|
|
3228
|
+
subtitle: mi,
|
|
3229
|
+
comboWrap: hi,
|
|
3230
|
+
trigger: gi,
|
|
3231
|
+
triggerOpen: _i,
|
|
3232
|
+
triggerLabel: vi,
|
|
3233
|
+
placeholder: yi,
|
|
3234
|
+
chevron: bi,
|
|
3235
|
+
chevronOpen: xi,
|
|
3236
|
+
list: Si,
|
|
3195
3237
|
"list-in": "_list-in_46mn8_1",
|
|
3196
|
-
listDown:
|
|
3197
|
-
listUp:
|
|
3238
|
+
listDown: Ci,
|
|
3239
|
+
listUp: wi,
|
|
3198
3240
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3199
|
-
option:
|
|
3200
|
-
optionActive:
|
|
3201
|
-
optionSelected:
|
|
3202
|
-
optionDisabled:
|
|
3203
|
-
optionLabel:
|
|
3204
|
-
checkIcon:
|
|
3241
|
+
option: Ti,
|
|
3242
|
+
optionActive: Ei,
|
|
3243
|
+
optionSelected: Di,
|
|
3244
|
+
optionDisabled: Oi,
|
|
3245
|
+
optionLabel: ki,
|
|
3246
|
+
checkIcon: Ai
|
|
3205
3247
|
};
|
|
3206
3248
|
//#endregion
|
|
3207
3249
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3208
|
-
function
|
|
3250
|
+
function ji({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: p, disabled: m = !1, className: h, ...g }) {
|
|
3209
3251
|
let _ = o !== void 0, [v, y] = f(c), b = _ ? o : v, [x, S] = f(!1), [C, w] = f(-1), [T, E] = f(!1), D = u(), O = u(), k = d(null), A = d(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3210
3252
|
if (!k.current) return;
|
|
3211
3253
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3408,7 +3450,7 @@ var Y = {
|
|
|
3408
3450
|
};
|
|
3409
3451
|
//#endregion
|
|
3410
3452
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3411
|
-
function
|
|
3453
|
+
function Mi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: p, onChange: m, ...h }) {
|
|
3412
3454
|
let g = u(), _ = p ?? g, v = r !== void 0, [y, b] = f(String(i)), x = v ? String(r) : y, [S, C] = f(!1), w = d(null), T = S || x.length > 0;
|
|
3413
3455
|
return /* @__PURE__ */ n("div", {
|
|
3414
3456
|
className: [
|
|
@@ -3450,26 +3492,26 @@ function Ai({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3450
3492
|
]
|
|
3451
3493
|
});
|
|
3452
3494
|
}
|
|
3453
|
-
var
|
|
3495
|
+
var Ni = { revealButton: "_revealButton_1j8z0_3" };
|
|
3454
3496
|
//#endregion
|
|
3455
3497
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3456
|
-
function
|
|
3498
|
+
function Pi({ trailing: r, disabled: i, ...a }) {
|
|
3457
3499
|
let [o, s] = f(!1), c = /* @__PURE__ */ t("button", {
|
|
3458
3500
|
type: "button",
|
|
3459
|
-
className:
|
|
3501
|
+
className: Ni.revealButton,
|
|
3460
3502
|
onClick: (e) => {
|
|
3461
3503
|
e.stopPropagation(), s((e) => !e);
|
|
3462
3504
|
},
|
|
3463
3505
|
"aria-label": o ? "Conceal password" : "Reveal password",
|
|
3464
3506
|
"aria-pressed": o,
|
|
3465
3507
|
disabled: i,
|
|
3466
|
-
children: /* @__PURE__ */ t(
|
|
3467
|
-
icon: o ?
|
|
3508
|
+
children: /* @__PURE__ */ t(I, {
|
|
3509
|
+
icon: o ? Le : Ie,
|
|
3468
3510
|
size: "md",
|
|
3469
3511
|
"aria-hidden": !0
|
|
3470
3512
|
})
|
|
3471
3513
|
});
|
|
3472
|
-
return /* @__PURE__ */ t(
|
|
3514
|
+
return /* @__PURE__ */ t(Mi, {
|
|
3473
3515
|
...a,
|
|
3474
3516
|
type: o ? "text" : "password",
|
|
3475
3517
|
disabled: i,
|
|
@@ -3489,16 +3531,16 @@ var X = {
|
|
|
3489
3531
|
};
|
|
3490
3532
|
//#endregion
|
|
3491
3533
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3492
|
-
function
|
|
3534
|
+
function Fi(e) {
|
|
3493
3535
|
let t = e.toString(), n = t.indexOf(".");
|
|
3494
3536
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3495
3537
|
}
|
|
3496
|
-
function
|
|
3538
|
+
function Ii(e, t, n) {
|
|
3497
3539
|
return Math.min(n, Math.max(t, e));
|
|
3498
3540
|
}
|
|
3499
|
-
function
|
|
3500
|
-
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ??
|
|
3501
|
-
let t = parseFloat(
|
|
3541
|
+
function Li({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: p = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3542
|
+
let v = a !== void 0, [y, b] = f(o), x = v ? a : y, S = m ?? Fi(p), C = u(), w = s((e) => {
|
|
3543
|
+
let t = parseFloat(Ii(e, l, d).toFixed(S));
|
|
3502
3544
|
v || b(t), c?.(t);
|
|
3503
3545
|
}, [
|
|
3504
3546
|
v,
|
|
@@ -3602,50 +3644,50 @@ function Fi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3602
3644
|
}
|
|
3603
3645
|
//#endregion
|
|
3604
3646
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3605
|
-
var
|
|
3606
|
-
view:
|
|
3607
|
-
page:
|
|
3608
|
-
pageHeader:
|
|
3609
|
-
pageTitle:
|
|
3610
|
-
pageContent:
|
|
3611
|
-
enterForward:
|
|
3647
|
+
var Ri = "_view_1r1om_3", zi = "_page_1r1om_12", Bi = "_pageHeader_1r1om_23", Vi = "_pageTitle_1r1om_34", Hi = "_pageContent_1r1om_43", Ui = "_enterForward_1r1om_52", Wi = "_enterBack_1r1om_56", Gi = {
|
|
3648
|
+
view: Ri,
|
|
3649
|
+
page: zi,
|
|
3650
|
+
pageHeader: Bi,
|
|
3651
|
+
pageTitle: Vi,
|
|
3652
|
+
pageContent: Hi,
|
|
3653
|
+
enterForward: Ui,
|
|
3612
3654
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3613
|
-
enterBack:
|
|
3655
|
+
enterBack: Wi,
|
|
3614
3656
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3615
|
-
},
|
|
3657
|
+
}, Ki = a({
|
|
3616
3658
|
navigate: () => {},
|
|
3617
3659
|
pop: () => {},
|
|
3618
3660
|
canGoBack: !1,
|
|
3619
3661
|
currentTag: "",
|
|
3620
3662
|
direction: "forward"
|
|
3621
3663
|
});
|
|
3622
|
-
function
|
|
3623
|
-
return c(
|
|
3664
|
+
function qi() {
|
|
3665
|
+
return c(Ki);
|
|
3624
3666
|
}
|
|
3625
|
-
function
|
|
3626
|
-
let { currentTag: s, direction: l } = c(
|
|
3667
|
+
function Ji({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3668
|
+
let { currentTag: s, direction: l } = c(Ki);
|
|
3627
3669
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3628
3670
|
className: [
|
|
3629
|
-
|
|
3630
|
-
l === "forward" ?
|
|
3671
|
+
Gi.page,
|
|
3672
|
+
l === "forward" ? Gi.enterForward : Gi.enterBack,
|
|
3631
3673
|
a
|
|
3632
3674
|
].filter(Boolean).join(" "),
|
|
3633
3675
|
...o,
|
|
3634
3676
|
children: [/* @__PURE__ */ t("div", {
|
|
3635
|
-
className:
|
|
3677
|
+
className: Gi.pageHeader,
|
|
3636
3678
|
children: /* @__PURE__ */ t("span", {
|
|
3637
|
-
className:
|
|
3679
|
+
className: Gi.pageTitle,
|
|
3638
3680
|
children: r
|
|
3639
3681
|
})
|
|
3640
3682
|
}), /* @__PURE__ */ t("div", {
|
|
3641
|
-
className:
|
|
3683
|
+
className: Gi.pageContent,
|
|
3642
3684
|
children: i
|
|
3643
3685
|
})]
|
|
3644
3686
|
}) : null;
|
|
3645
3687
|
}
|
|
3646
|
-
function
|
|
3688
|
+
function Yi({ initialPage: e, children: n, className: r, ...i }) {
|
|
3647
3689
|
let [a, o] = f([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = f("forward");
|
|
3648
|
-
return /* @__PURE__ */ t(
|
|
3690
|
+
return /* @__PURE__ */ t(Ki.Provider, {
|
|
3649
3691
|
value: {
|
|
3650
3692
|
navigate: (e) => {
|
|
3651
3693
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3658,7 +3700,7 @@ function qi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3658
3700
|
direction: l
|
|
3659
3701
|
},
|
|
3660
3702
|
children: /* @__PURE__ */ t("div", {
|
|
3661
|
-
className: [
|
|
3703
|
+
className: [Gi.view, r].filter(Boolean).join(" "),
|
|
3662
3704
|
...i,
|
|
3663
3705
|
children: n
|
|
3664
3706
|
})
|
|
@@ -3666,20 +3708,20 @@ function qi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3666
3708
|
}
|
|
3667
3709
|
//#endregion
|
|
3668
3710
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3669
|
-
var
|
|
3670
|
-
backdrop:
|
|
3711
|
+
var Xi = "_backdrop_zzv98_3", Zi = "_sheet_zzv98_26", Qi = "_handle_zzv98_49", $i = "_handleBar_zzv98_56", ea = "_title_zzv98_66", ta = "_content_zzv98_79", na = {
|
|
3712
|
+
backdrop: Xi,
|
|
3671
3713
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3672
|
-
sheet:
|
|
3714
|
+
sheet: Zi,
|
|
3673
3715
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3674
|
-
handle:
|
|
3675
|
-
handleBar:
|
|
3676
|
-
title:
|
|
3677
|
-
content:
|
|
3678
|
-
},
|
|
3679
|
-
function
|
|
3716
|
+
handle: Qi,
|
|
3717
|
+
handleBar: $i,
|
|
3718
|
+
title: ea,
|
|
3719
|
+
content: ta
|
|
3720
|
+
}, ra = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3721
|
+
function ia({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...f }) {
|
|
3680
3722
|
let m = d(null), h = u(), g = d(null);
|
|
3681
3723
|
l(() => {
|
|
3682
|
-
e ? (g.current = document.activeElement, (m.current?.querySelector(
|
|
3724
|
+
e ? (g.current = document.activeElement, (m.current?.querySelector(ra))?.focus()) : g.current?.focus();
|
|
3683
3725
|
}, [e]);
|
|
3684
3726
|
let _ = s((e) => {
|
|
3685
3727
|
if (e.key === "Escape") {
|
|
@@ -3687,14 +3729,14 @@ function na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3687
3729
|
return;
|
|
3688
3730
|
}
|
|
3689
3731
|
if (e.key !== "Tab") return;
|
|
3690
|
-
let t = Array.from(m.current?.querySelectorAll(
|
|
3732
|
+
let t = Array.from(m.current?.querySelectorAll(ra) ?? []);
|
|
3691
3733
|
if (t.length === 0) return;
|
|
3692
3734
|
let n = t[0], r = t[t.length - 1];
|
|
3693
3735
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3694
3736
|
}, [a]);
|
|
3695
3737
|
if (!e) return null;
|
|
3696
3738
|
let v = /* @__PURE__ */ t("div", {
|
|
3697
|
-
className:
|
|
3739
|
+
className: na.backdrop,
|
|
3698
3740
|
onClick: o ? a : void 0,
|
|
3699
3741
|
"aria-hidden": "true",
|
|
3700
3742
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -3702,23 +3744,23 @@ function na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3702
3744
|
role: "dialog",
|
|
3703
3745
|
"aria-modal": "true",
|
|
3704
3746
|
"aria-labelledby": r ? h : void 0,
|
|
3705
|
-
className: [
|
|
3747
|
+
className: [na.sheet, c].filter(Boolean).join(" "),
|
|
3706
3748
|
onKeyDown: _,
|
|
3707
3749
|
onClick: (e) => e.stopPropagation(),
|
|
3708
3750
|
...f,
|
|
3709
3751
|
children: [
|
|
3710
3752
|
/* @__PURE__ */ t("div", {
|
|
3711
|
-
className:
|
|
3753
|
+
className: na.handle,
|
|
3712
3754
|
"aria-hidden": "true",
|
|
3713
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
3755
|
+
children: /* @__PURE__ */ t("div", { className: na.handleBar })
|
|
3714
3756
|
}),
|
|
3715
3757
|
r && /* @__PURE__ */ t("div", {
|
|
3716
3758
|
id: h,
|
|
3717
|
-
className:
|
|
3759
|
+
className: na.title,
|
|
3718
3760
|
children: r
|
|
3719
3761
|
}),
|
|
3720
3762
|
i && /* @__PURE__ */ t("div", {
|
|
3721
|
-
className:
|
|
3763
|
+
className: na.content,
|
|
3722
3764
|
children: i
|
|
3723
3765
|
})
|
|
3724
3766
|
]
|
|
@@ -3740,7 +3782,7 @@ var Z = {
|
|
|
3740
3782
|
};
|
|
3741
3783
|
//#endregion
|
|
3742
3784
|
//#region src/components/Carousel/Carousel.tsx
|
|
3743
|
-
function
|
|
3785
|
+
function aa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3744
3786
|
return /* @__PURE__ */ t("div", {
|
|
3745
3787
|
className: [Z.indicatorDots, i].filter(Boolean).join(" "),
|
|
3746
3788
|
role: "tablist",
|
|
@@ -3756,7 +3798,7 @@ function ra({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3756
3798
|
}, i))
|
|
3757
3799
|
});
|
|
3758
3800
|
}
|
|
3759
|
-
function
|
|
3801
|
+
function oa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3760
3802
|
return /* @__PURE__ */ t("div", {
|
|
3761
3803
|
className: [Z.indicatorLines, i].filter(Boolean).join(" "),
|
|
3762
3804
|
role: "tablist",
|
|
@@ -3772,7 +3814,7 @@ function ia({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3772
3814
|
}, i))
|
|
3773
3815
|
});
|
|
3774
3816
|
}
|
|
3775
|
-
function
|
|
3817
|
+
function sa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...p }) {
|
|
3776
3818
|
let m = d(null), h = r.count(e), [g, _] = f(0), v = c !== void 0, y = v ? c : g;
|
|
3777
3819
|
l(() => {
|
|
3778
3820
|
v && b(c, "smooth");
|
|
@@ -3846,49 +3888,49 @@ function aa({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3846
3888
|
}
|
|
3847
3889
|
//#endregion
|
|
3848
3890
|
//#region src/components/Bin/Bin.tsx
|
|
3849
|
-
function
|
|
3891
|
+
function ca({ children: e, ...n }) {
|
|
3850
3892
|
return /* @__PURE__ */ t("div", {
|
|
3851
3893
|
...n,
|
|
3852
3894
|
children: e
|
|
3853
3895
|
});
|
|
3854
3896
|
}
|
|
3855
|
-
var
|
|
3897
|
+
var la = {
|
|
3856
3898
|
content: "_content_1xkwk_3",
|
|
3857
3899
|
icon: "_icon_1xkwk_9",
|
|
3858
3900
|
label: "_label_1xkwk_15"
|
|
3859
3901
|
};
|
|
3860
3902
|
//#endregion
|
|
3861
3903
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
3862
|
-
function
|
|
3904
|
+
function ua({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
3863
3905
|
return /* @__PURE__ */ n("span", {
|
|
3864
3906
|
className: [
|
|
3865
|
-
|
|
3866
|
-
i === "end" ?
|
|
3907
|
+
la.content,
|
|
3908
|
+
i === "end" ? la.iconEnd : null,
|
|
3867
3909
|
a
|
|
3868
3910
|
].filter(Boolean).join(" "),
|
|
3869
3911
|
...o,
|
|
3870
3912
|
children: [
|
|
3871
3913
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
3872
|
-
className:
|
|
3914
|
+
className: la.icon,
|
|
3873
3915
|
"aria-hidden": "true",
|
|
3874
3916
|
children: e
|
|
3875
3917
|
}),
|
|
3876
3918
|
/* @__PURE__ */ t("span", {
|
|
3877
|
-
className:
|
|
3919
|
+
className: la.label,
|
|
3878
3920
|
children: r
|
|
3879
3921
|
}),
|
|
3880
3922
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
3881
|
-
className:
|
|
3923
|
+
className: la.icon,
|
|
3882
3924
|
"aria-hidden": "true",
|
|
3883
3925
|
children: e
|
|
3884
3926
|
})
|
|
3885
3927
|
]
|
|
3886
3928
|
});
|
|
3887
3929
|
}
|
|
3888
|
-
var
|
|
3930
|
+
var da = {
|
|
3889
3931
|
label: "_label_h3znl_3",
|
|
3890
3932
|
key: "_key_h3znl_9"
|
|
3891
|
-
},
|
|
3933
|
+
}, fa = {
|
|
3892
3934
|
ctrl: "⌃",
|
|
3893
3935
|
control: "⌃",
|
|
3894
3936
|
shift: "⇧",
|
|
@@ -3916,22 +3958,22 @@ var la = {
|
|
|
3916
3958
|
home: "⇱",
|
|
3917
3959
|
end: "⇲"
|
|
3918
3960
|
};
|
|
3919
|
-
function
|
|
3961
|
+
function pa({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
3920
3962
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
3921
3963
|
return /* @__PURE__ */ t("span", {
|
|
3922
|
-
className: [
|
|
3964
|
+
className: [da.label, r].filter(Boolean).join(" "),
|
|
3923
3965
|
"aria-label": e,
|
|
3924
3966
|
...i,
|
|
3925
3967
|
children: a.map((e, r) => {
|
|
3926
|
-
let i = n ?
|
|
3968
|
+
let i = n ? fa[e.toLowerCase()] ?? e : e;
|
|
3927
3969
|
return /* @__PURE__ */ t("kbd", {
|
|
3928
|
-
className:
|
|
3970
|
+
className: da.key,
|
|
3929
3971
|
children: i
|
|
3930
3972
|
}, r);
|
|
3931
3973
|
})
|
|
3932
3974
|
});
|
|
3933
3975
|
}
|
|
3934
|
-
var
|
|
3976
|
+
var ma = {
|
|
3935
3977
|
toolbarView: "_toolbarView_134hf_3",
|
|
3936
3978
|
top: "_top_134hf_11",
|
|
3937
3979
|
content: "_content_134hf_16",
|
|
@@ -3939,47 +3981,47 @@ var fa = {
|
|
|
3939
3981
|
};
|
|
3940
3982
|
//#endregion
|
|
3941
3983
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
3942
|
-
function
|
|
3984
|
+
function ha({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
3943
3985
|
return /* @__PURE__ */ n("div", {
|
|
3944
|
-
className: [
|
|
3986
|
+
className: [ma.toolbarView, a].filter(Boolean).join(" "),
|
|
3945
3987
|
...o,
|
|
3946
3988
|
children: [
|
|
3947
3989
|
e && /* @__PURE__ */ t("div", {
|
|
3948
|
-
className:
|
|
3990
|
+
className: ma.top,
|
|
3949
3991
|
children: e
|
|
3950
3992
|
}),
|
|
3951
3993
|
/* @__PURE__ */ t("div", {
|
|
3952
|
-
className:
|
|
3994
|
+
className: ma.content,
|
|
3953
3995
|
children: i
|
|
3954
3996
|
}),
|
|
3955
3997
|
r && /* @__PURE__ */ t("div", {
|
|
3956
|
-
className:
|
|
3998
|
+
className: ma.bottom,
|
|
3957
3999
|
children: r
|
|
3958
4000
|
})
|
|
3959
4001
|
]
|
|
3960
4002
|
});
|
|
3961
4003
|
}
|
|
3962
|
-
var
|
|
4004
|
+
var ga = {
|
|
3963
4005
|
windowTitle: "_windowTitle_zm877_3",
|
|
3964
4006
|
title: "_title_zm877_11",
|
|
3965
4007
|
subtitle: "_subtitle_zm877_24"
|
|
3966
4008
|
};
|
|
3967
4009
|
//#endregion
|
|
3968
4010
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
3969
|
-
function
|
|
4011
|
+
function _a({ title: e, subtitle: r, className: i, ...a }) {
|
|
3970
4012
|
return /* @__PURE__ */ n("div", {
|
|
3971
|
-
className: [
|
|
4013
|
+
className: [ga.windowTitle, i].filter(Boolean).join(" "),
|
|
3972
4014
|
...a,
|
|
3973
4015
|
children: [/* @__PURE__ */ t("span", {
|
|
3974
|
-
className:
|
|
4016
|
+
className: ga.title,
|
|
3975
4017
|
children: e
|
|
3976
4018
|
}), r && /* @__PURE__ */ t("span", {
|
|
3977
|
-
className:
|
|
4019
|
+
className: ga.subtitle,
|
|
3978
4020
|
children: r
|
|
3979
4021
|
})]
|
|
3980
4022
|
});
|
|
3981
4023
|
}
|
|
3982
|
-
var
|
|
4024
|
+
var va = {
|
|
3983
4025
|
group: "_group_17s4f_3",
|
|
3984
4026
|
header: "_header_17s4f_11",
|
|
3985
4027
|
headerText: "_headerText_17s4f_17",
|
|
@@ -3990,85 +4032,85 @@ var ga = {
|
|
|
3990
4032
|
};
|
|
3991
4033
|
//#endregion
|
|
3992
4034
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
3993
|
-
function
|
|
4035
|
+
function ya({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
3994
4036
|
let c = e || r || i;
|
|
3995
4037
|
return /* @__PURE__ */ n("div", {
|
|
3996
|
-
className: [
|
|
4038
|
+
className: [va.group, o].filter(Boolean).join(" "),
|
|
3997
4039
|
...s,
|
|
3998
4040
|
children: [c && /* @__PURE__ */ n("div", {
|
|
3999
|
-
className:
|
|
4041
|
+
className: va.header,
|
|
4000
4042
|
children: [/* @__PURE__ */ n("div", {
|
|
4001
|
-
className:
|
|
4043
|
+
className: va.headerText,
|
|
4002
4044
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4003
|
-
className:
|
|
4045
|
+
className: va.title,
|
|
4004
4046
|
children: e
|
|
4005
4047
|
}), r && /* @__PURE__ */ t("span", {
|
|
4006
|
-
className:
|
|
4048
|
+
className: va.description,
|
|
4007
4049
|
children: r
|
|
4008
4050
|
})]
|
|
4009
4051
|
}), i && /* @__PURE__ */ t("div", {
|
|
4010
|
-
className:
|
|
4052
|
+
className: va.suffix,
|
|
4011
4053
|
children: i
|
|
4012
4054
|
})]
|
|
4013
4055
|
}), /* @__PURE__ */ t("div", {
|
|
4014
|
-
className:
|
|
4056
|
+
className: va.content,
|
|
4015
4057
|
children: a
|
|
4016
4058
|
})]
|
|
4017
4059
|
});
|
|
4018
4060
|
}
|
|
4019
|
-
var
|
|
4061
|
+
var ba = {
|
|
4020
4062
|
page: "_page_gt42j_3",
|
|
4021
4063
|
inner: "_inner_gt42j_10"
|
|
4022
4064
|
};
|
|
4023
4065
|
//#endregion
|
|
4024
4066
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4025
|
-
function
|
|
4067
|
+
function xa({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4026
4068
|
return /* @__PURE__ */ t("div", {
|
|
4027
|
-
className: [
|
|
4069
|
+
className: [ba.page, i].filter(Boolean).join(" "),
|
|
4028
4070
|
role: "tabpanel",
|
|
4029
4071
|
...a,
|
|
4030
4072
|
children: /* @__PURE__ */ t("div", {
|
|
4031
|
-
className:
|
|
4073
|
+
className: ba.inner,
|
|
4032
4074
|
children: r
|
|
4033
4075
|
})
|
|
4034
4076
|
});
|
|
4035
4077
|
}
|
|
4036
4078
|
//#endregion
|
|
4037
4079
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4038
|
-
var
|
|
4039
|
-
backdrop:
|
|
4080
|
+
var Sa = "_backdrop_1u1bd_3", Ca = "_dialog_1u1bd_26", wa = "_dialogMulti_1u1bd_46", Ta = "_header_1u1bd_63", Ea = "_closeBtn_1u1bd_73", Da = "_title_1u1bd_102", Oa = "_searchWrap_1u1bd_112", ka = "_searchInput_1u1bd_116", Aa = "_body_1u1bd_143", ja = "_sidebar_1u1bd_152", Ma = "_navList_1u1bd_160", Na = "_navItem_1u1bd_169", Pa = "_navItemActive_1u1bd_190", Fa = "_navIcon_1u1bd_205", Ia = "_navLabel_1u1bd_211", La = "_pageWrap_1u1bd_221", Q = {
|
|
4081
|
+
backdrop: Sa,
|
|
4040
4082
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4041
|
-
dialog:
|
|
4083
|
+
dialog: Ca,
|
|
4042
4084
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4043
|
-
dialogMulti:
|
|
4044
|
-
header:
|
|
4045
|
-
closeBtn:
|
|
4046
|
-
title:
|
|
4047
|
-
searchWrap:
|
|
4048
|
-
searchInput:
|
|
4049
|
-
body:
|
|
4050
|
-
sidebar:
|
|
4051
|
-
navList:
|
|
4052
|
-
navItem:
|
|
4053
|
-
navItemActive:
|
|
4054
|
-
navIcon:
|
|
4055
|
-
navLabel:
|
|
4056
|
-
pageWrap:
|
|
4057
|
-
},
|
|
4058
|
-
function
|
|
4085
|
+
dialogMulti: wa,
|
|
4086
|
+
header: Ta,
|
|
4087
|
+
closeBtn: Ea,
|
|
4088
|
+
title: Da,
|
|
4089
|
+
searchWrap: Oa,
|
|
4090
|
+
searchInput: ka,
|
|
4091
|
+
body: Aa,
|
|
4092
|
+
sidebar: ja,
|
|
4093
|
+
navList: Ma,
|
|
4094
|
+
navItem: Na,
|
|
4095
|
+
navItemActive: Pa,
|
|
4096
|
+
navIcon: Fa,
|
|
4097
|
+
navLabel: Ia,
|
|
4098
|
+
pageWrap: La
|
|
4099
|
+
}, Ra = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4100
|
+
function za(e, t) {
|
|
4059
4101
|
if (e.key !== "Tab") return;
|
|
4060
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4102
|
+
let n = Array.from(t.current?.querySelectorAll(Ra) ?? []);
|
|
4061
4103
|
if (!n.length) return;
|
|
4062
4104
|
let r = n[0], i = n[n.length - 1];
|
|
4063
4105
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4064
4106
|
}
|
|
4065
|
-
function
|
|
4107
|
+
function Ba({ open: e, onClose: a, children: c, searchable: m = !0, className: h, ...g }) {
|
|
4066
4108
|
let _ = d(null), v = d(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = f(0), [C, w] = f("");
|
|
4067
4109
|
l(() => {
|
|
4068
4110
|
if (e) {
|
|
4069
4111
|
S(0), w("");
|
|
4070
4112
|
let e = requestAnimationFrame(() => {
|
|
4071
|
-
m && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4113
|
+
m && v.current ? v.current.focus() : (_.current?.querySelector(Ra))?.focus();
|
|
4072
4114
|
});
|
|
4073
4115
|
return () => cancelAnimationFrame(e);
|
|
4074
4116
|
}
|
|
@@ -4078,7 +4120,7 @@ function Ra({ open: e, onClose: a, children: c, searchable: m = !0, className: h
|
|
|
4078
4120
|
e.stopPropagation(), a();
|
|
4079
4121
|
return;
|
|
4080
4122
|
}
|
|
4081
|
-
|
|
4123
|
+
za(e, _);
|
|
4082
4124
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4083
4125
|
return e ? p(/* @__PURE__ */ t("div", {
|
|
4084
4126
|
className: Q.backdrop,
|
|
@@ -4181,7 +4223,7 @@ var $ = {
|
|
|
4181
4223
|
};
|
|
4182
4224
|
//#endregion
|
|
4183
4225
|
//#region src/components/Timeline/Timeline.tsx
|
|
4184
|
-
function
|
|
4226
|
+
function Va({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4185
4227
|
let s = r === "horizontal", c = i !== "none";
|
|
4186
4228
|
return /* @__PURE__ */ t("div", {
|
|
4187
4229
|
role: "list",
|
|
@@ -4246,6 +4288,6 @@ function za({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4246
4288
|
});
|
|
4247
4289
|
}
|
|
4248
4290
|
//#endregion
|
|
4249
|
-
export {
|
|
4291
|
+
export { Dt as ActionRow, re as Avatar, je as Badge, Te as Banner, ca as Bin, h as Blockquote, ia as BottomSheet, dr as Box, kt as BoxedList, Hr as BreakpointBin, _ as Button, ua as ButtonContent, Wr as ButtonRow, j as Card, sa as Carousel, aa as CarouselIndicatorDots, oa as CarouselIndicatorLines, ci as CheckRow, le as Checkbox, hr as Chip, $n as Clamp, ji as ComboRow, Sn as Dialog, Vn as Dropdown, Mi as EntryRow, ei as ExpanderRow, ke as Footer, $r as Frame, Ue as GNOME_BREAKPOINTS, De as HeaderBar, I as Icon, ii as InlineViewSwitcher, ai as InlineViewSwitcherItem, ar as Link, Zr as LinkedGroup, Ji as NavigationPage, er as NavigationSplitView, Yi as NavigationView, tr as OverlaySplitView, Pi as PasswordEntryRow, Zn as Popover, Ba as PreferencesDialog, ya as PreferencesGroup, xa as PreferencesPage, me as ProgressBar, fe as RadioButton, Be as SearchBar, ae as Separator, pa as ShortcutLabel, Ir as ShortcutsDialog, pt as Sidebar, lt as SidebarCollapsedContext, yt as SidebarItem, mt as SidebarSection, Kn as Slider, Yr as Spacer, Ct as SpinButton, Li as SpinRow, N as Spinner, Kr as SplitButton, He as StatusPage, se as Switch, si as SwitchRow, wt as TabBar, Tt as TabItem, Et as TabPanel, D as Text, ue as TextField, Va as Timeline, Ht as Toast, Ut as Toaster, lr as ToggleGroup, ur as ToggleGroupItem, Jr as Toolbar, ha as ToolbarView, vt as Tooltip, jt as ViewSwitcher, rr as ViewSwitcherBar, Mt as ViewSwitcherItem, Br as ViewSwitcherSidebar, Vr as ViewSwitcherSidebarItem, _a as WindowTitle, pr as WrapBox, We as useBreakpoint, qi as useNavigation, ut as useSidebarCollapsed };
|
|
4250
4292
|
|
|
4251
4293
|
//# sourceMappingURL=index.js.map
|