@gnome-ui/react 1.21.0 → 1.22.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 +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +18 -2
- package/dist/components/SearchBar/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1001 -917
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -189,7 +189,7 @@ var F = {
|
|
|
189
189
|
"color-brown": "_color-brown_1f2cd_75",
|
|
190
190
|
"color-teal": "_color-teal_1f2cd_76",
|
|
191
191
|
"color-slate": "_color-slate_1f2cd_77"
|
|
192
|
-
},
|
|
192
|
+
}, I = [
|
|
193
193
|
"blue",
|
|
194
194
|
"green",
|
|
195
195
|
"yellow",
|
|
@@ -200,17 +200,17 @@ var F = {
|
|
|
200
200
|
"teal",
|
|
201
201
|
"slate"
|
|
202
202
|
];
|
|
203
|
-
function
|
|
203
|
+
function ee(e) {
|
|
204
204
|
let t = 0;
|
|
205
205
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
206
|
-
return
|
|
206
|
+
return I[t % I.length];
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function te(e) {
|
|
209
209
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
210
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();
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
let c = a ?? (e ?
|
|
212
|
+
function ne({ name: e = "", src: n, alt: r, size: i = "md", color: a, className: o, ...s }) {
|
|
213
|
+
let c = a ?? (e ? ee(e) : "blue"), l = te(e), u = [
|
|
214
214
|
F.avatar,
|
|
215
215
|
F[i],
|
|
216
216
|
n ? null : F[`color-${c}`],
|
|
@@ -232,17 +232,17 @@ function re({ name: e = "", src: n, alt: r, size: i = "md", color: a, className:
|
|
|
232
232
|
})
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var re = {
|
|
236
236
|
separator: "_separator_w9b4s_3",
|
|
237
237
|
horizontal: "_horizontal_w9b4s_12",
|
|
238
238
|
vertical: "_vertical_w9b4s_20"
|
|
239
239
|
};
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region src/components/Separator/Separator.tsx
|
|
242
|
-
function
|
|
242
|
+
function ie({ orientation: e = "horizontal", className: n, ...r }) {
|
|
243
243
|
let i = [
|
|
244
|
-
|
|
245
|
-
e === "vertical" ?
|
|
244
|
+
re.separator,
|
|
245
|
+
e === "vertical" ? re.vertical : re.horizontal,
|
|
246
246
|
n
|
|
247
247
|
].filter(Boolean).join(" ");
|
|
248
248
|
return e === "vertical" ? /* @__PURE__ */ t("div", {
|
|
@@ -257,32 +257,32 @@ function ae({ orientation: e = "horizontal", className: n, ...r }) {
|
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/Switch/Switch.module.css
|
|
260
|
-
var
|
|
260
|
+
var ae = { switch: "_switch_1h6fk_3" };
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region src/components/Switch/Switch.tsx
|
|
263
|
-
function
|
|
263
|
+
function oe({ className: e, ...n }) {
|
|
264
264
|
return /* @__PURE__ */ t("input", {
|
|
265
265
|
type: "checkbox",
|
|
266
266
|
role: "switch",
|
|
267
|
-
className: [
|
|
267
|
+
className: [ae.switch, e].filter(Boolean).join(" "),
|
|
268
268
|
...n
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var se = { checkbox: "_checkbox_jnffk_3" };
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
274
|
-
function
|
|
274
|
+
function ce({ indeterminate: e = !1, className: n, ...r }) {
|
|
275
275
|
let i = f(null);
|
|
276
276
|
return l(() => {
|
|
277
277
|
i.current && (i.current.indeterminate = e);
|
|
278
278
|
}, [e]), /* @__PURE__ */ t("input", {
|
|
279
279
|
ref: i,
|
|
280
280
|
type: "checkbox",
|
|
281
|
-
className: [
|
|
281
|
+
className: [se.checkbox, n].filter(Boolean).join(" "),
|
|
282
282
|
...r
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
var
|
|
285
|
+
var le = {
|
|
286
286
|
wrapper: "_wrapper_q91d8_3",
|
|
287
287
|
disabled: "_disabled_q91d8_9",
|
|
288
288
|
label: "_label_q91d8_15",
|
|
@@ -293,14 +293,14 @@ var ue = {
|
|
|
293
293
|
};
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/components/TextField/TextField.tsx
|
|
296
|
-
function
|
|
296
|
+
function ue({ label: e, helperText: r, error: i, id: a, className: o, disabled: s, ...c }) {
|
|
297
297
|
let l = u(), d = a ?? l, f = `${d}-help`;
|
|
298
298
|
return /* @__PURE__ */ n("div", {
|
|
299
|
-
className: [
|
|
299
|
+
className: [le.wrapper, s ? le.disabled : null].filter(Boolean).join(" "),
|
|
300
300
|
children: [
|
|
301
301
|
e && /* @__PURE__ */ t("label", {
|
|
302
302
|
htmlFor: d,
|
|
303
|
-
className:
|
|
303
|
+
className: le.label,
|
|
304
304
|
children: e
|
|
305
305
|
}),
|
|
306
306
|
/* @__PURE__ */ t("input", {
|
|
@@ -309,31 +309,31 @@ function de({ label: e, helperText: r, error: i, id: a, className: o, disabled:
|
|
|
309
309
|
"aria-describedby": i || r ? f : void 0,
|
|
310
310
|
"aria-invalid": i ? !0 : void 0,
|
|
311
311
|
className: [
|
|
312
|
-
|
|
313
|
-
i ?
|
|
312
|
+
le.input,
|
|
313
|
+
i ? le.errorInput : null,
|
|
314
314
|
o
|
|
315
315
|
].filter(Boolean).join(" "),
|
|
316
316
|
...c
|
|
317
317
|
}),
|
|
318
318
|
(i || r) && /* @__PURE__ */ t("span", {
|
|
319
319
|
id: f,
|
|
320
|
-
className: [
|
|
320
|
+
className: [le.hint, i ? le.errorHint : null].filter(Boolean).join(" "),
|
|
321
321
|
children: i ?? r
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var de = { radio: "_radio_1vybt_3" };
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
329
|
-
function
|
|
329
|
+
function fe({ className: e, ...n }) {
|
|
330
330
|
return /* @__PURE__ */ t("input", {
|
|
331
331
|
type: "radio",
|
|
332
|
-
className: [
|
|
332
|
+
className: [de.radio, e].filter(Boolean).join(" "),
|
|
333
333
|
...n
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var pe = {
|
|
337
337
|
track: "_track_endpr_3",
|
|
338
338
|
fill: "_fill_endpr_14",
|
|
339
339
|
accent: "_accent_endpr_23",
|
|
@@ -345,7 +345,7 @@ var me = {
|
|
|
345
345
|
};
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
348
|
-
function
|
|
348
|
+
function me({ value: e, variant: n = "accent", className: r, "aria-label": i, "aria-labelledby": a, ...o }) {
|
|
349
349
|
let s = e == null, c = s ? void 0 : Math.min(1, Math.max(0, e)), l = c === void 0 ? void 0 : c * 100;
|
|
350
350
|
return /* @__PURE__ */ t("div", {
|
|
351
351
|
role: "progressbar",
|
|
@@ -354,13 +354,13 @@ function he({ value: e, variant: n = "accent", className: r, "aria-label": i, "a
|
|
|
354
354
|
"aria-valuenow": c === void 0 ? void 0 : Math.round(l),
|
|
355
355
|
"aria-valuemin": s ? void 0 : 0,
|
|
356
356
|
"aria-valuemax": s ? void 0 : 100,
|
|
357
|
-
className: [
|
|
357
|
+
className: [pe.track, r].filter(Boolean).join(" "),
|
|
358
358
|
...o,
|
|
359
359
|
children: /* @__PURE__ */ t("div", {
|
|
360
360
|
className: [
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
s ?
|
|
361
|
+
pe.fill,
|
|
362
|
+
pe[n],
|
|
363
|
+
s ? pe.indeterminate : null
|
|
364
364
|
].filter(Boolean).join(" "),
|
|
365
365
|
style: s ? void 0 : { width: `${l}%` }
|
|
366
366
|
})
|
|
@@ -368,46 +368,46 @@ function he({ value: e, variant: n = "accent", className: r, "aria-label": i, "a
|
|
|
368
368
|
}
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region src/components/Banner/Banner.module.css
|
|
371
|
-
var
|
|
372
|
-
banner:
|
|
373
|
-
message:
|
|
374
|
-
actions:
|
|
375
|
-
actionBtn:
|
|
376
|
-
dismissBtn:
|
|
377
|
-
info:
|
|
371
|
+
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 = {
|
|
372
|
+
banner: he,
|
|
373
|
+
message: ge,
|
|
374
|
+
actions: _e,
|
|
375
|
+
actionBtn: ve,
|
|
376
|
+
dismissBtn: ye,
|
|
377
|
+
info: be,
|
|
378
378
|
"actionBtn-info": "_actionBtn-info_1x3b0_90",
|
|
379
|
-
warning:
|
|
379
|
+
warning: xe,
|
|
380
380
|
"actionBtn-warning": "_actionBtn-warning_1x3b0_104",
|
|
381
|
-
error:
|
|
381
|
+
error: Se,
|
|
382
382
|
"actionBtn-error": "_actionBtn-error_1x3b0_118",
|
|
383
|
-
success:
|
|
383
|
+
success: Ce,
|
|
384
384
|
"actionBtn-success": "_actionBtn-success_1x3b0_132"
|
|
385
385
|
};
|
|
386
386
|
//#endregion
|
|
387
387
|
//#region src/components/Banner/Banner.tsx
|
|
388
|
-
function
|
|
388
|
+
function Te({ variant: e = "info", children: r, actionLabel: i, onAction: a, dismissible: o = !1, onDismiss: s, className: c, ...l }) {
|
|
389
389
|
return /* @__PURE__ */ n("div", {
|
|
390
390
|
role: "status",
|
|
391
391
|
"aria-live": "polite",
|
|
392
392
|
className: [
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
we.banner,
|
|
394
|
+
we[e],
|
|
395
395
|
c
|
|
396
396
|
].filter(Boolean).join(" "),
|
|
397
397
|
...l,
|
|
398
398
|
children: [/* @__PURE__ */ t("span", {
|
|
399
|
-
className:
|
|
399
|
+
className: we.message,
|
|
400
400
|
children: r
|
|
401
401
|
}), (i || o) && /* @__PURE__ */ n("span", {
|
|
402
|
-
className:
|
|
402
|
+
className: we.actions,
|
|
403
403
|
children: [i && /* @__PURE__ */ t("button", {
|
|
404
404
|
type: "button",
|
|
405
|
-
className: [
|
|
405
|
+
className: [we.actionBtn, we[`actionBtn-${e}`]].filter(Boolean).join(" "),
|
|
406
406
|
onClick: a,
|
|
407
407
|
children: i
|
|
408
408
|
}), o && /* @__PURE__ */ t("button", {
|
|
409
409
|
type: "button",
|
|
410
|
-
className:
|
|
410
|
+
className: we.dismissBtn,
|
|
411
411
|
onClick: s,
|
|
412
412
|
"aria-label": "Dismiss",
|
|
413
413
|
children: /* @__PURE__ */ t("svg", {
|
|
@@ -422,7 +422,7 @@ function Ee({ variant: e = "info", children: r, actionLabel: i, onAction: a, dis
|
|
|
422
422
|
})]
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var Ee = {
|
|
426
426
|
headerBar: "_headerBar_1rr5r_3",
|
|
427
427
|
flat: "_flat_1rr5r_22",
|
|
428
428
|
slot: "_slot_1rr5r_29",
|
|
@@ -432,35 +432,35 @@ var De = {
|
|
|
432
432
|
};
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/components/HeaderBar/HeaderBar.tsx
|
|
435
|
-
function
|
|
435
|
+
function De({ title: e, start: r, end: i, flat: a = !1, className: o, ...s }) {
|
|
436
436
|
return /* @__PURE__ */ n("header", {
|
|
437
437
|
className: [
|
|
438
|
-
|
|
439
|
-
a ?
|
|
438
|
+
Ee.headerBar,
|
|
439
|
+
a ? Ee.flat : null,
|
|
440
440
|
o
|
|
441
441
|
].filter(Boolean).join(" "),
|
|
442
442
|
...s,
|
|
443
443
|
children: [
|
|
444
444
|
/* @__PURE__ */ t("div", {
|
|
445
|
-
className:
|
|
445
|
+
className: Ee.slot,
|
|
446
446
|
children: r
|
|
447
447
|
}),
|
|
448
448
|
/* @__PURE__ */ t("div", {
|
|
449
|
-
className:
|
|
449
|
+
className: Ee.titleSlot,
|
|
450
450
|
"aria-live": "polite",
|
|
451
451
|
children: typeof e == "string" ? /* @__PURE__ */ t("span", {
|
|
452
|
-
className:
|
|
452
|
+
className: Ee.title,
|
|
453
453
|
children: e
|
|
454
454
|
}) : e
|
|
455
455
|
}),
|
|
456
456
|
/* @__PURE__ */ t("div", {
|
|
457
|
-
className: [
|
|
457
|
+
className: [Ee.slot, Ee.slotEnd].filter(Boolean).join(" "),
|
|
458
458
|
children: i
|
|
459
459
|
})
|
|
460
460
|
]
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var Oe = {
|
|
464
464
|
footer: "_footer_10xz9_3",
|
|
465
465
|
flat: "_flat_10xz9_23",
|
|
466
466
|
slot: "_slot_10xz9_29",
|
|
@@ -469,31 +469,31 @@ var ke = {
|
|
|
469
469
|
};
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/components/Footer/Footer.tsx
|
|
472
|
-
function
|
|
472
|
+
function ke({ start: e, end: r, children: i, flat: a = !1, className: o, ...s }) {
|
|
473
473
|
return /* @__PURE__ */ n("footer", {
|
|
474
474
|
className: [
|
|
475
|
-
|
|
476
|
-
a ?
|
|
475
|
+
Oe.footer,
|
|
476
|
+
a ? Oe.flat : null,
|
|
477
477
|
o
|
|
478
478
|
].filter(Boolean).join(" "),
|
|
479
479
|
...s,
|
|
480
480
|
children: [
|
|
481
481
|
/* @__PURE__ */ t("div", {
|
|
482
|
-
className:
|
|
482
|
+
className: Oe.slot,
|
|
483
483
|
children: e
|
|
484
484
|
}),
|
|
485
485
|
i != null && /* @__PURE__ */ t("div", {
|
|
486
|
-
className:
|
|
486
|
+
className: Oe.center,
|
|
487
487
|
children: i
|
|
488
488
|
}),
|
|
489
489
|
/* @__PURE__ */ t("div", {
|
|
490
|
-
className: [
|
|
490
|
+
className: [Oe.slot, Oe.slotEnd].filter(Boolean).join(" "),
|
|
491
491
|
children: r
|
|
492
492
|
})
|
|
493
493
|
]
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
|
-
var
|
|
496
|
+
var Ae = {
|
|
497
497
|
wrapper: "_wrapper_1apop_3",
|
|
498
498
|
badge: "_badge_1apop_11",
|
|
499
499
|
anchored: "_anchored_1apop_32",
|
|
@@ -506,32 +506,32 @@ var je = {
|
|
|
506
506
|
};
|
|
507
507
|
//#endregion
|
|
508
508
|
//#region src/components/Badge/Badge.tsx
|
|
509
|
-
function
|
|
509
|
+
function je({ variant: e = "accent", dot: r = !1, children: i, anchor: a, className: o, ...s }) {
|
|
510
510
|
let c = /* @__PURE__ */ t("span", {
|
|
511
511
|
className: [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
r ?
|
|
515
|
-
a ?
|
|
512
|
+
Ae.badge,
|
|
513
|
+
Ae[e],
|
|
514
|
+
r ? Ae.dot : null,
|
|
515
|
+
a ? Ae.anchored : null,
|
|
516
516
|
o
|
|
517
517
|
].filter(Boolean).join(" "),
|
|
518
518
|
...s,
|
|
519
519
|
children: !r && i
|
|
520
520
|
});
|
|
521
521
|
return a ? /* @__PURE__ */ n("span", {
|
|
522
|
-
className:
|
|
522
|
+
className: Ae.wrapper,
|
|
523
523
|
children: [a, c]
|
|
524
524
|
}) : c;
|
|
525
525
|
}
|
|
526
526
|
//#endregion
|
|
527
527
|
//#region src/components/Icon/Icon.tsx
|
|
528
|
-
var
|
|
528
|
+
var Me = {
|
|
529
529
|
sm: 12,
|
|
530
530
|
md: 16,
|
|
531
531
|
lg: 20
|
|
532
532
|
};
|
|
533
|
-
function
|
|
534
|
-
let s =
|
|
533
|
+
function L({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
534
|
+
let s = Me[n];
|
|
535
535
|
return /* @__PURE__ */ t("svg", {
|
|
536
536
|
xmlns: "http://www.w3.org/2000/svg",
|
|
537
537
|
viewBox: e.viewBox,
|
|
@@ -552,123 +552,207 @@ function I({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
|
552
552
|
}
|
|
553
553
|
//#endregion
|
|
554
554
|
//#region ../icons/dist/index.js
|
|
555
|
-
var
|
|
555
|
+
var Ne = {
|
|
556
556
|
viewBox: "0 0 16 16",
|
|
557
557
|
paths: [{
|
|
558
558
|
d: "m2.5 5 5.5 6 5.5-6z",
|
|
559
559
|
fillRule: "evenodd"
|
|
560
560
|
}]
|
|
561
|
-
},
|
|
561
|
+
}, Pe = {
|
|
562
562
|
viewBox: "0 0 16 16",
|
|
563
563
|
paths: [{
|
|
564
564
|
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",
|
|
565
565
|
fillRule: "evenodd"
|
|
566
566
|
}]
|
|
567
|
-
},
|
|
567
|
+
}, Fe = {
|
|
568
568
|
viewBox: "0 0 16 16",
|
|
569
569
|
paths: [{
|
|
570
570
|
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",
|
|
571
571
|
fillRule: "evenodd"
|
|
572
572
|
}]
|
|
573
|
-
},
|
|
573
|
+
}, Ie = {
|
|
574
574
|
viewBox: "0 0 16 16",
|
|
575
575
|
paths: [{
|
|
576
576
|
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",
|
|
577
577
|
fillRule: "evenodd"
|
|
578
578
|
}]
|
|
579
|
-
},
|
|
579
|
+
}, Le = {
|
|
580
580
|
viewBox: "0 0 16 16",
|
|
581
581
|
paths: [{
|
|
582
582
|
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",
|
|
583
583
|
fillRule: "evenodd"
|
|
584
584
|
}]
|
|
585
|
-
},
|
|
585
|
+
}, Re = {
|
|
586
586
|
viewBox: "0 0 16 16",
|
|
587
587
|
paths: [{
|
|
588
588
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
589
589
|
fillRule: "evenodd"
|
|
590
590
|
}]
|
|
591
|
-
},
|
|
592
|
-
wrapper: "
|
|
593
|
-
open: "
|
|
594
|
-
bar: "
|
|
595
|
-
disabled: "
|
|
596
|
-
searchIcon: "
|
|
597
|
-
input: "
|
|
598
|
-
clearButton: "
|
|
599
|
-
filterRow: "
|
|
600
|
-
|
|
591
|
+
}, R = {
|
|
592
|
+
wrapper: "_wrapper_ld6g1_3",
|
|
593
|
+
open: "_open_ld6g1_13",
|
|
594
|
+
bar: "_bar_ld6g1_20",
|
|
595
|
+
disabled: "_disabled_ld6g1_31",
|
|
596
|
+
searchIcon: "_searchIcon_ld6g1_37",
|
|
597
|
+
input: "_input_ld6g1_47",
|
|
598
|
+
clearButton: "_clearButton_ld6g1_82",
|
|
599
|
+
filterRow: "_filterRow_ld6g1_124",
|
|
600
|
+
suggestionsPanel: "_suggestionsPanel_ld6g1_136",
|
|
601
|
+
suggestionsLoading: "_suggestionsLoading_ld6g1_160",
|
|
602
|
+
suggestionItem: "_suggestionItem_ld6g1_166",
|
|
603
|
+
suggestionItemActive: "_suggestionItemActive_ld6g1_176",
|
|
604
|
+
inline: "_inline_ld6g1_202"
|
|
601
605
|
};
|
|
602
606
|
//#endregion
|
|
603
607
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
604
|
-
function
|
|
605
|
-
let
|
|
608
|
+
function ze({ open: r, onClose: i, onClear: a, children: o, value: c, onChange: d, placeholder: h = "Search…", disabled: g, inline: _ = !1, className: v, suggestions: y, onSuggestionSelect: b, loadingSuggestions: x = !1, renderSuggestion: S, suggestionsLabel: C = "Suggestions", ...w }) {
|
|
609
|
+
let T = f(null), E = f(null), D = f(null), O = u(), k = u(), [A, j] = p(-1), [M, N] = p(null), F = (y?.length ?? 0) > 0, I = r && (x || F);
|
|
606
610
|
l(() => {
|
|
607
|
-
|
|
608
|
-
|
|
611
|
+
j(-1);
|
|
612
|
+
}, [y]), l(() => {
|
|
613
|
+
if (r) {
|
|
614
|
+
let e = requestAnimationFrame(() => T.current?.focus());
|
|
609
615
|
return () => cancelAnimationFrame(e);
|
|
610
616
|
}
|
|
611
|
-
}, [
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
617
|
+
}, [r]), l(() => {
|
|
618
|
+
if (!I || !E.current) {
|
|
619
|
+
N(null);
|
|
620
|
+
return;
|
|
621
|
+
}
|
|
622
|
+
function e() {
|
|
623
|
+
if (!E.current) return;
|
|
624
|
+
let e = E.current.getBoundingClientRect();
|
|
625
|
+
N({
|
|
626
|
+
top: e.bottom,
|
|
627
|
+
left: e.left,
|
|
628
|
+
width: e.width
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
return e(), window.addEventListener("scroll", e, {
|
|
632
|
+
passive: !0,
|
|
633
|
+
capture: !0
|
|
634
|
+
}), window.addEventListener("resize", e, { passive: !0 }), () => {
|
|
635
|
+
window.removeEventListener("scroll", e, { capture: !0 }), window.removeEventListener("resize", e);
|
|
636
|
+
};
|
|
637
|
+
}, [I]), l(() => {
|
|
638
|
+
A < 0 || !D.current || D.current.children[A]?.scrollIntoView({ block: "nearest" });
|
|
639
|
+
}, [A]);
|
|
640
|
+
let ee = s((e) => {
|
|
641
|
+
if (I && F && y) {
|
|
642
|
+
if (e.key === "ArrowDown") {
|
|
643
|
+
e.preventDefault(), j((e) => Math.min(e + 1, y.length - 1));
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
if (e.key === "ArrowUp") {
|
|
647
|
+
e.preventDefault(), j((e) => Math.max(e - 1, -1));
|
|
648
|
+
return;
|
|
649
|
+
}
|
|
650
|
+
if (e.key === "Enter" && A >= 0) {
|
|
651
|
+
e.preventDefault(), b?.(y[A]);
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
e.key === "Escape" && (e.preventDefault(), i?.()), w.onKeyDown?.(e);
|
|
656
|
+
}, [
|
|
657
|
+
i,
|
|
658
|
+
w,
|
|
659
|
+
I,
|
|
660
|
+
F,
|
|
661
|
+
y,
|
|
662
|
+
A,
|
|
663
|
+
b
|
|
664
|
+
]), te = c !== void 0 && c !== "", ne = A >= 0 && y?.[A] ? `${k}-${y[A].id}` : void 0, re = I && M ? m(/* @__PURE__ */ n("ul", {
|
|
665
|
+
ref: D,
|
|
666
|
+
role: "listbox",
|
|
667
|
+
"aria-label": C,
|
|
668
|
+
id: O,
|
|
669
|
+
className: R.suggestionsPanel,
|
|
670
|
+
style: {
|
|
671
|
+
top: M.top,
|
|
672
|
+
left: M.left,
|
|
673
|
+
width: M.width
|
|
674
|
+
},
|
|
675
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
676
|
+
children: [x && /* @__PURE__ */ t("li", {
|
|
677
|
+
role: "presentation",
|
|
678
|
+
className: R.suggestionsLoading,
|
|
679
|
+
children: /* @__PURE__ */ t(P, {
|
|
680
|
+
size: "sm",
|
|
681
|
+
label: "Loading suggestions…"
|
|
682
|
+
})
|
|
683
|
+
}), !x && y?.map((e, n) => /* @__PURE__ */ t("li", {
|
|
684
|
+
id: `${k}-${e.id}`,
|
|
685
|
+
role: "option",
|
|
686
|
+
"aria-selected": n === A,
|
|
687
|
+
className: [R.suggestionItem, n === A ? R.suggestionItemActive : null].filter(Boolean).join(" "),
|
|
688
|
+
onMouseEnter: () => j(n),
|
|
689
|
+
onMouseLeave: () => j(-1),
|
|
690
|
+
onClick: () => b?.(e),
|
|
691
|
+
children: S ? S(e) : e.label
|
|
692
|
+
}, e.id))]
|
|
693
|
+
}), document.body) : null;
|
|
694
|
+
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("div", {
|
|
695
|
+
ref: E,
|
|
616
696
|
className: [
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
697
|
+
R.wrapper,
|
|
698
|
+
r ? R.open : null,
|
|
699
|
+
v
|
|
620
700
|
].filter(Boolean).join(" "),
|
|
621
|
-
"aria-hidden": !
|
|
701
|
+
"aria-hidden": !r,
|
|
622
702
|
children: [/* @__PURE__ */ n("div", {
|
|
623
703
|
className: [
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
704
|
+
R.bar,
|
|
705
|
+
_ ? R.inline : null,
|
|
706
|
+
g ? R.disabled : null
|
|
627
707
|
].filter(Boolean).join(" "),
|
|
628
708
|
children: [
|
|
629
709
|
/* @__PURE__ */ t("span", {
|
|
630
|
-
className:
|
|
710
|
+
className: R.searchIcon,
|
|
631
711
|
"aria-hidden": !0,
|
|
632
|
-
children: /* @__PURE__ */ t(
|
|
633
|
-
icon:
|
|
712
|
+
children: /* @__PURE__ */ t(L, {
|
|
713
|
+
icon: Fe,
|
|
634
714
|
size: "md"
|
|
635
715
|
})
|
|
636
716
|
}),
|
|
637
717
|
/* @__PURE__ */ t("input", {
|
|
638
|
-
ref:
|
|
718
|
+
ref: T,
|
|
639
719
|
type: "search",
|
|
640
|
-
role: "
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
720
|
+
role: "combobox",
|
|
721
|
+
"aria-autocomplete": "list",
|
|
722
|
+
"aria-expanded": I,
|
|
723
|
+
"aria-controls": I ? O : void 0,
|
|
724
|
+
"aria-activedescendant": ne,
|
|
725
|
+
value: c,
|
|
726
|
+
onChange: d,
|
|
727
|
+
placeholder: h,
|
|
728
|
+
disabled: g,
|
|
729
|
+
tabIndex: r ? void 0 : -1,
|
|
730
|
+
className: R.input,
|
|
731
|
+
onKeyDown: ee,
|
|
732
|
+
...w
|
|
649
733
|
}),
|
|
650
|
-
|
|
734
|
+
te && /* @__PURE__ */ t("button", {
|
|
651
735
|
type: "button",
|
|
652
|
-
className:
|
|
736
|
+
className: R.clearButton,
|
|
653
737
|
"aria-label": "Clear search",
|
|
654
|
-
tabIndex:
|
|
655
|
-
disabled:
|
|
738
|
+
tabIndex: r ? void 0 : -1,
|
|
739
|
+
disabled: g,
|
|
656
740
|
onClick: () => {
|
|
657
|
-
|
|
741
|
+
a?.(), T.current?.focus();
|
|
658
742
|
},
|
|
659
|
-
children: /* @__PURE__ */ t(
|
|
660
|
-
icon:
|
|
743
|
+
children: /* @__PURE__ */ t(L, {
|
|
744
|
+
icon: Pe,
|
|
661
745
|
size: "md"
|
|
662
746
|
})
|
|
663
747
|
})
|
|
664
748
|
]
|
|
665
|
-
}),
|
|
666
|
-
className:
|
|
667
|
-
children:
|
|
749
|
+
}), o && /* @__PURE__ */ t("div", {
|
|
750
|
+
className: R.filterRow,
|
|
751
|
+
children: o
|
|
668
752
|
})]
|
|
669
|
-
});
|
|
753
|
+
}), typeof document < "u" && re] });
|
|
670
754
|
}
|
|
671
|
-
var
|
|
755
|
+
var Be = {
|
|
672
756
|
page: "_page_cb4hq_3",
|
|
673
757
|
iconWrap: "_iconWrap_cb4hq_20",
|
|
674
758
|
title: "_title_cb4hq_33",
|
|
@@ -678,8 +762,8 @@ var He = {
|
|
|
678
762
|
};
|
|
679
763
|
//#endregion
|
|
680
764
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
681
|
-
function
|
|
682
|
-
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(
|
|
765
|
+
function Ve({ icon: e, iconNode: r, title: i, description: a, children: o, compact: s = !1, className: c, ...l }) {
|
|
766
|
+
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(L, {
|
|
683
767
|
icon: e,
|
|
684
768
|
width: u,
|
|
685
769
|
height: u,
|
|
@@ -687,27 +771,27 @@ function Ue({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
687
771
|
}) : r ?? null;
|
|
688
772
|
return /* @__PURE__ */ n("div", {
|
|
689
773
|
className: [
|
|
690
|
-
|
|
691
|
-
s ?
|
|
774
|
+
Be.page,
|
|
775
|
+
s ? Be.compact : null,
|
|
692
776
|
c
|
|
693
777
|
].filter(Boolean).join(" "),
|
|
694
778
|
...l,
|
|
695
779
|
children: [
|
|
696
780
|
d && /* @__PURE__ */ t("div", {
|
|
697
|
-
className:
|
|
781
|
+
className: Be.iconWrap,
|
|
698
782
|
"aria-hidden": "true",
|
|
699
783
|
children: d
|
|
700
784
|
}),
|
|
701
785
|
/* @__PURE__ */ t("p", {
|
|
702
|
-
className:
|
|
786
|
+
className: Be.title,
|
|
703
787
|
children: i
|
|
704
788
|
}),
|
|
705
789
|
a && /* @__PURE__ */ t("p", {
|
|
706
|
-
className:
|
|
790
|
+
className: Be.description,
|
|
707
791
|
children: a
|
|
708
792
|
}),
|
|
709
793
|
o && /* @__PURE__ */ t("div", {
|
|
710
|
-
className:
|
|
794
|
+
className: Be.actions,
|
|
711
795
|
children: o
|
|
712
796
|
})
|
|
713
797
|
]
|
|
@@ -715,18 +799,18 @@ function Ue({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
715
799
|
}
|
|
716
800
|
//#endregion
|
|
717
801
|
//#region src/hooks/useBreakpoint.ts
|
|
718
|
-
var
|
|
802
|
+
var He = {
|
|
719
803
|
narrow: 400,
|
|
720
804
|
medium: 550,
|
|
721
805
|
wide: 860
|
|
722
806
|
};
|
|
723
|
-
function
|
|
807
|
+
function Ue() {
|
|
724
808
|
let e = () => {
|
|
725
809
|
let e = typeof window < "u" ? window.innerWidth : 1280;
|
|
726
810
|
return {
|
|
727
|
-
isNarrow: e <=
|
|
728
|
-
isMedium: e <=
|
|
729
|
-
isWide: e <=
|
|
811
|
+
isNarrow: e <= He.narrow,
|
|
812
|
+
isMedium: e <= He.medium,
|
|
813
|
+
isWide: e <= He.wide,
|
|
730
814
|
width: e
|
|
731
815
|
};
|
|
732
816
|
}, [t, n] = p(e);
|
|
@@ -737,58 +821,58 @@ function Ge() {
|
|
|
737
821
|
}
|
|
738
822
|
//#endregion
|
|
739
823
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
740
|
-
var
|
|
741
|
-
sidebar:
|
|
742
|
-
section:
|
|
743
|
-
sectionTitle:
|
|
744
|
-
list:
|
|
745
|
-
item:
|
|
746
|
-
itemBtn:
|
|
747
|
-
active:
|
|
748
|
-
itemIcon:
|
|
749
|
-
itemLabel:
|
|
750
|
-
itemSuffix:
|
|
751
|
-
contextMenu:
|
|
824
|
+
var We = "_sidebar_b80pp_3", Ge = "_section_b80pp_21", Ke = "_sectionTitle_b80pp_33", qe = "_list_b80pp_47", Je = "_item_b80pp_58", Ye = "_itemBtn_b80pp_64", Xe = "_active_b80pp_111", Ze = "_itemIcon_b80pp_127", Qe = "_itemLabel_b80pp_140", $e = "_itemSuffix_b80pp_150", et = "_contextMenu_b80pp_159", tt = "_contextMenuItem_b80pp_183", nt = "_contextMenuDestructive_b80pp_219", rt = "_searchWrap_b80pp_225", it = "_pageMode_b80pp_236", at = "_dragOver_b80pp_243", ot = "_collapsed_b80pp_251", st = "_itemCollapsed_b80pp_262", z = {
|
|
825
|
+
sidebar: We,
|
|
826
|
+
section: Ge,
|
|
827
|
+
sectionTitle: Ke,
|
|
828
|
+
list: qe,
|
|
829
|
+
item: Je,
|
|
830
|
+
itemBtn: Ye,
|
|
831
|
+
active: Xe,
|
|
832
|
+
itemIcon: Ze,
|
|
833
|
+
itemLabel: Qe,
|
|
834
|
+
itemSuffix: $e,
|
|
835
|
+
contextMenu: et,
|
|
752
836
|
"menu-in": "_menu-in_b80pp_1",
|
|
753
|
-
contextMenuItem:
|
|
754
|
-
contextMenuDestructive:
|
|
755
|
-
searchWrap:
|
|
756
|
-
pageMode:
|
|
757
|
-
dragOver:
|
|
758
|
-
collapsed:
|
|
759
|
-
itemCollapsed:
|
|
760
|
-
},
|
|
761
|
-
function
|
|
762
|
-
return c(
|
|
837
|
+
contextMenuItem: tt,
|
|
838
|
+
contextMenuDestructive: nt,
|
|
839
|
+
searchWrap: rt,
|
|
840
|
+
pageMode: it,
|
|
841
|
+
dragOver: at,
|
|
842
|
+
collapsed: ot,
|
|
843
|
+
itemCollapsed: st
|
|
844
|
+
}, ct = a(!1);
|
|
845
|
+
function lt() {
|
|
846
|
+
return c(ct);
|
|
763
847
|
}
|
|
764
|
-
var
|
|
765
|
-
function
|
|
848
|
+
var ut = a("");
|
|
849
|
+
function dt(e, t) {
|
|
766
850
|
let n = 0;
|
|
767
851
|
return r.forEach(e, (e) => {
|
|
768
852
|
if (!o(e)) return;
|
|
769
853
|
let r = e.props;
|
|
770
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
854
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += dt(r.children, t));
|
|
771
855
|
}), n;
|
|
772
856
|
}
|
|
773
|
-
function
|
|
774
|
-
let [u, d] = p(""), { isNarrow: f } =
|
|
857
|
+
function ft({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, className: c, ...l }) {
|
|
858
|
+
let [u, d] = p(""), { isNarrow: f } = Ue(), m = a !== void 0, h = m ? a : u, g = (e) => {
|
|
775
859
|
m || d(e), o?.(e);
|
|
776
|
-
}, _ = h.length > 0, v = s ?? (f ? "page" : "sidebar"), y = !_ ||
|
|
777
|
-
return /* @__PURE__ */ t(
|
|
860
|
+
}, _ = h.length > 0, v = s ?? (f ? "page" : "sidebar"), y = !_ || dt(e, h) > 0;
|
|
861
|
+
return /* @__PURE__ */ t(ct.Provider, {
|
|
778
862
|
value: r,
|
|
779
|
-
children: /* @__PURE__ */ t(
|
|
863
|
+
children: /* @__PURE__ */ t(ut.Provider, {
|
|
780
864
|
value: h,
|
|
781
865
|
children: /* @__PURE__ */ n("nav", {
|
|
782
866
|
className: [
|
|
783
|
-
|
|
784
|
-
r ?
|
|
785
|
-
v === "page" ?
|
|
867
|
+
z.sidebar,
|
|
868
|
+
r ? z.collapsed : null,
|
|
869
|
+
v === "page" ? z.pageMode : null,
|
|
786
870
|
c
|
|
787
871
|
].filter(Boolean).join(" "),
|
|
788
872
|
...l,
|
|
789
873
|
children: [i && /* @__PURE__ */ t("div", {
|
|
790
|
-
className:
|
|
791
|
-
children: /* @__PURE__ */ t(
|
|
874
|
+
className: z.searchWrap,
|
|
875
|
+
children: /* @__PURE__ */ t(ze, {
|
|
792
876
|
open: !0,
|
|
793
877
|
value: h,
|
|
794
878
|
onChange: (e) => g(e.target.value),
|
|
@@ -796,7 +880,7 @@ function mt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
796
880
|
onClear: () => g(""),
|
|
797
881
|
inline: !0
|
|
798
882
|
})
|
|
799
|
-
}), _ && !y ? /* @__PURE__ */ t(
|
|
883
|
+
}), _ && !y ? /* @__PURE__ */ t(Ve, {
|
|
800
884
|
title: "No Results",
|
|
801
885
|
description: "No items match your search.",
|
|
802
886
|
compact: !0
|
|
@@ -807,29 +891,29 @@ function mt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
807
891
|
}
|
|
808
892
|
//#endregion
|
|
809
893
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
810
|
-
function
|
|
894
|
+
function pt({ title: e, children: r, className: i, ...a }) {
|
|
811
895
|
return /* @__PURE__ */ n("section", {
|
|
812
|
-
className: [
|
|
896
|
+
className: [z.section, i].filter(Boolean).join(" "),
|
|
813
897
|
...a,
|
|
814
898
|
children: [e && /* @__PURE__ */ t("h3", {
|
|
815
|
-
className:
|
|
899
|
+
className: z.sectionTitle,
|
|
816
900
|
children: e
|
|
817
901
|
}), /* @__PURE__ */ t("ul", {
|
|
818
902
|
role: "list",
|
|
819
|
-
className:
|
|
903
|
+
className: z.list,
|
|
820
904
|
children: r
|
|
821
905
|
})]
|
|
822
906
|
});
|
|
823
907
|
}
|
|
824
|
-
var
|
|
908
|
+
var mt = {
|
|
825
909
|
tooltip: "_tooltip_y4het_3",
|
|
826
910
|
visible: "_visible_y4het_29",
|
|
827
911
|
top: "_top_y4het_55",
|
|
828
912
|
bottom: "_bottom_y4het_62",
|
|
829
913
|
left: "_left_y4het_69",
|
|
830
914
|
right: "_right_y4het_76"
|
|
831
|
-
},
|
|
832
|
-
function
|
|
915
|
+
}, ht = 6;
|
|
916
|
+
function gt(e, t, n) {
|
|
833
917
|
let r = window.innerWidth, i = window.innerHeight, a = [
|
|
834
918
|
n,
|
|
835
919
|
n === "top" || n === "bottom" ? n === "top" ? "bottom" : "top" : n === "left" ? "right" : "left",
|
|
@@ -840,7 +924,7 @@ function vt(e, t, n) {
|
|
|
840
924
|
];
|
|
841
925
|
for (let n of a) {
|
|
842
926
|
let a = 0, o = 0;
|
|
843
|
-
n === "top" ? (a = e.top - t.height -
|
|
927
|
+
n === "top" ? (a = e.top - t.height - ht, o = e.left + e.width / 2 - t.width / 2) : n === "bottom" ? (a = e.bottom + ht, 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 - ht) : (a = e.top + e.height / 2 - t.height / 2, o = e.right + ht);
|
|
844
928
|
let s = o >= 8 && o + t.width <= r - 8, c = a >= 8 && a + t.height <= i - 8;
|
|
845
929
|
if (s && c) return {
|
|
846
930
|
top: Math.max(8, Math.min(a, i - t.height - 8)),
|
|
@@ -849,17 +933,17 @@ function vt(e, t, n) {
|
|
|
849
933
|
};
|
|
850
934
|
}
|
|
851
935
|
let o = 0, s = 0;
|
|
852
|
-
return n === "top" && (o = e.top - t.height -
|
|
936
|
+
return n === "top" && (o = e.top - t.height - ht, s = e.left + e.width / 2 - t.width / 2), n === "bottom" && (o = e.bottom + ht, 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 - ht), n === "right" && (o = e.top + e.height / 2 - t.height / 2, s = e.right + ht), {
|
|
853
937
|
top: Math.max(8, Math.min(o, i - t.height - 8)),
|
|
854
938
|
left: Math.max(8, Math.min(s, window.innerWidth - t.width - 8)),
|
|
855
939
|
placement: n
|
|
856
940
|
};
|
|
857
941
|
}
|
|
858
|
-
function
|
|
942
|
+
function _t({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
859
943
|
let d = u(), [h, g] = p(!1), [_, v] = p(null), y = f(null), b = f(null), x = f(null), S = () => {
|
|
860
944
|
x.current &&= (clearTimeout(x.current), null);
|
|
861
945
|
}, C = s(() => {
|
|
862
|
-
!y.current || !b.current || v(
|
|
946
|
+
!y.current || !b.current || v(gt(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
863
947
|
}, [a]);
|
|
864
948
|
l(() => {
|
|
865
949
|
if (h) return C(), window.addEventListener("scroll", C, {
|
|
@@ -903,9 +987,9 @@ function yt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
903
987
|
id: d,
|
|
904
988
|
role: "tooltip",
|
|
905
989
|
className: [
|
|
906
|
-
|
|
907
|
-
_ ?
|
|
908
|
-
h && _ ?
|
|
990
|
+
mt.tooltip,
|
|
991
|
+
_ ? mt[_.placement] : null,
|
|
992
|
+
h && _ ? mt.visible : null
|
|
909
993
|
].filter(Boolean).join(" "),
|
|
910
994
|
style: _ ? {
|
|
911
995
|
top: _.top,
|
|
@@ -921,8 +1005,8 @@ function yt({ label: r, placement: a = "top", delay: o = 500, children: c }) {
|
|
|
921
1005
|
}
|
|
922
1006
|
//#endregion
|
|
923
1007
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
924
|
-
function
|
|
925
|
-
let y =
|
|
1008
|
+
function vt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u, menuItems: d, onDrop: h, acceptTypes: g, className: _, ...v }) {
|
|
1009
|
+
let y = lt(), b = c(ut), x = a ?? o, S = y ? u ?? e : u, C = b.length > 0 && !e.toLowerCase().includes(b.toLowerCase()), [w, T] = p(!1), E = (e) => {
|
|
926
1010
|
h && (g?.length && !g.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
927
1011
|
}, D = () => T(!1), O = (e) => {
|
|
928
1012
|
h && (e.preventDefault(), T(!1), h(e));
|
|
@@ -950,15 +1034,15 @@ function bt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
950
1034
|
let t = e.currentTarget.getBoundingClientRect();
|
|
951
1035
|
M(t.right, t.top);
|
|
952
1036
|
}
|
|
953
|
-
},
|
|
1037
|
+
}, I = /* @__PURE__ */ n("button", {
|
|
954
1038
|
type: "button",
|
|
955
1039
|
"aria-current": i ? "page" : void 0,
|
|
956
1040
|
"aria-label": y ? e : void 0,
|
|
957
1041
|
className: [
|
|
958
|
-
|
|
959
|
-
i ?
|
|
960
|
-
y ?
|
|
961
|
-
w ?
|
|
1042
|
+
z.itemBtn,
|
|
1043
|
+
i ? z.active : null,
|
|
1044
|
+
y ? z.itemCollapsed : null,
|
|
1045
|
+
w ? z.dragOver : null,
|
|
962
1046
|
_
|
|
963
1047
|
].filter(Boolean).join(" "),
|
|
964
1048
|
onContextMenu: P,
|
|
@@ -969,33 +1053,33 @@ function bt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
969
1053
|
...v,
|
|
970
1054
|
children: [
|
|
971
1055
|
r && /* @__PURE__ */ t("span", {
|
|
972
|
-
className:
|
|
973
|
-
children: /* @__PURE__ */ t(
|
|
1056
|
+
className: z.itemIcon,
|
|
1057
|
+
children: /* @__PURE__ */ t(L, {
|
|
974
1058
|
icon: r,
|
|
975
1059
|
size: "md",
|
|
976
1060
|
"aria-hidden": !0
|
|
977
1061
|
})
|
|
978
1062
|
}),
|
|
979
1063
|
!y && /* @__PURE__ */ t("span", {
|
|
980
|
-
className:
|
|
1064
|
+
className: z.itemLabel,
|
|
981
1065
|
children: e
|
|
982
1066
|
}),
|
|
983
1067
|
!y && x && /* @__PURE__ */ t("span", {
|
|
984
|
-
className:
|
|
1068
|
+
className: z.itemSuffix,
|
|
985
1069
|
children: x
|
|
986
1070
|
})
|
|
987
1071
|
]
|
|
988
1072
|
});
|
|
989
1073
|
return /* @__PURE__ */ n("li", {
|
|
990
|
-
className:
|
|
1074
|
+
className: z.item,
|
|
991
1075
|
hidden: C || void 0,
|
|
992
|
-
children: [S ? /* @__PURE__ */ t(
|
|
1076
|
+
children: [S ? /* @__PURE__ */ t(_t, {
|
|
993
1077
|
label: S,
|
|
994
1078
|
placement: "right",
|
|
995
|
-
children:
|
|
996
|
-
}) :
|
|
1079
|
+
children: I
|
|
1080
|
+
}) : I, k && d?.length && typeof document < "u" && m(/* @__PURE__ */ t("div", {
|
|
997
1081
|
ref: j,
|
|
998
|
-
className:
|
|
1082
|
+
className: z.contextMenu,
|
|
999
1083
|
style: {
|
|
1000
1084
|
top: k.y,
|
|
1001
1085
|
left: k.x
|
|
@@ -1005,7 +1089,7 @@ function bt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
1005
1089
|
type: "button",
|
|
1006
1090
|
role: "menuitem",
|
|
1007
1091
|
disabled: e.disabled,
|
|
1008
|
-
className: [
|
|
1092
|
+
className: [z.contextMenuItem, e.destructive ? z.contextMenuDestructive : null].filter(Boolean).join(" "),
|
|
1009
1093
|
onClick: () => {
|
|
1010
1094
|
e.onClick(), N();
|
|
1011
1095
|
},
|
|
@@ -1014,7 +1098,7 @@ function bt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: u
|
|
|
1014
1098
|
}), document.body)]
|
|
1015
1099
|
});
|
|
1016
1100
|
}
|
|
1017
|
-
var
|
|
1101
|
+
var yt = {
|
|
1018
1102
|
spin: "_spin_7d4yi_3",
|
|
1019
1103
|
disabled: "_disabled_7d4yi_36",
|
|
1020
1104
|
btn: "_btn_7d4yi_43",
|
|
@@ -1022,15 +1106,15 @@ var xt = {
|
|
|
1022
1106
|
};
|
|
1023
1107
|
//#endregion
|
|
1024
1108
|
//#region src/components/SpinButton/SpinButton.tsx
|
|
1025
|
-
function
|
|
1109
|
+
function bt(e) {
|
|
1026
1110
|
let t = e.toString(), n = t.indexOf(".");
|
|
1027
1111
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1028
1112
|
}
|
|
1029
|
-
function
|
|
1113
|
+
function xt(e, t, n) {
|
|
1030
1114
|
return Math.min(n, Math.max(t, e));
|
|
1031
1115
|
}
|
|
1032
|
-
function
|
|
1033
|
-
let m = c ??
|
|
1116
|
+
function St({ 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 }) {
|
|
1117
|
+
let m = c ?? bt(o), h = s((e) => r(parseFloat(xt(e, i, a).toFixed(m))), [
|
|
1034
1118
|
r,
|
|
1035
1119
|
i,
|
|
1036
1120
|
a,
|
|
@@ -1074,8 +1158,8 @@ function wt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1074
1158
|
tabIndex: l ? -1 : 0,
|
|
1075
1159
|
onKeyDown: l ? void 0 : g,
|
|
1076
1160
|
className: [
|
|
1077
|
-
|
|
1078
|
-
l ?
|
|
1161
|
+
yt.spin,
|
|
1162
|
+
l ? yt.disabled : null,
|
|
1079
1163
|
u
|
|
1080
1164
|
].filter(Boolean).join(" "),
|
|
1081
1165
|
...p,
|
|
@@ -1085,12 +1169,12 @@ function wt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1085
1169
|
tabIndex: -1,
|
|
1086
1170
|
"aria-hidden": "true",
|
|
1087
1171
|
disabled: l || e <= i,
|
|
1088
|
-
className:
|
|
1172
|
+
className: yt.btn,
|
|
1089
1173
|
onClick: () => h(e - o),
|
|
1090
1174
|
children: "−"
|
|
1091
1175
|
}),
|
|
1092
1176
|
/* @__PURE__ */ t("span", {
|
|
1093
|
-
className:
|
|
1177
|
+
className: yt.value,
|
|
1094
1178
|
"aria-hidden": "true",
|
|
1095
1179
|
children: e.toFixed(m)
|
|
1096
1180
|
}),
|
|
@@ -1099,14 +1183,14 @@ function wt({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1099
1183
|
tabIndex: -1,
|
|
1100
1184
|
"aria-hidden": "true",
|
|
1101
1185
|
disabled: l || e >= a,
|
|
1102
|
-
className:
|
|
1186
|
+
className: yt.btn,
|
|
1103
1187
|
onClick: () => h(e + o),
|
|
1104
1188
|
children: "+"
|
|
1105
1189
|
})
|
|
1106
1190
|
]
|
|
1107
1191
|
});
|
|
1108
1192
|
}
|
|
1109
|
-
var
|
|
1193
|
+
var B = {
|
|
1110
1194
|
bar: "_bar_12ars_3",
|
|
1111
1195
|
list: "_list_12ars_10",
|
|
1112
1196
|
tab: "_tab_12ars_26",
|
|
@@ -1119,7 +1203,7 @@ var R = {
|
|
|
1119
1203
|
};
|
|
1120
1204
|
//#endregion
|
|
1121
1205
|
//#region src/components/Tabs/TabBar.tsx
|
|
1122
|
-
function
|
|
1206
|
+
function Ct({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1123
1207
|
let o = f(null);
|
|
1124
1208
|
function s(e) {
|
|
1125
1209
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1134,8 +1218,8 @@ function Tt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1134
1218
|
}
|
|
1135
1219
|
return /* @__PURE__ */ t("div", {
|
|
1136
1220
|
className: [
|
|
1137
|
-
|
|
1138
|
-
r ?
|
|
1221
|
+
B.bar,
|
|
1222
|
+
r ? B.inline : null,
|
|
1139
1223
|
n
|
|
1140
1224
|
].filter(Boolean).join(" "),
|
|
1141
1225
|
...a,
|
|
@@ -1143,7 +1227,7 @@ function Tt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1143
1227
|
ref: o,
|
|
1144
1228
|
role: "tablist",
|
|
1145
1229
|
"aria-label": i,
|
|
1146
|
-
className:
|
|
1230
|
+
className: B.list,
|
|
1147
1231
|
onKeyDown: s,
|
|
1148
1232
|
children: e
|
|
1149
1233
|
})
|
|
@@ -1151,7 +1235,7 @@ function Tt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1151
1235
|
}
|
|
1152
1236
|
//#endregion
|
|
1153
1237
|
//#region src/components/Tabs/TabItem.tsx
|
|
1154
|
-
function
|
|
1238
|
+
function wt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLabel: s = "Close tab", className: c, disabled: l, ...u }) {
|
|
1155
1239
|
return /* @__PURE__ */ n("button", {
|
|
1156
1240
|
role: "tab",
|
|
1157
1241
|
type: "button",
|
|
@@ -1160,30 +1244,30 @@ function Et({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1160
1244
|
tabIndex: i ? 0 : -1,
|
|
1161
1245
|
disabled: l,
|
|
1162
1246
|
className: [
|
|
1163
|
-
|
|
1164
|
-
i ?
|
|
1165
|
-
o ?
|
|
1247
|
+
B.tab,
|
|
1248
|
+
i ? B.active : null,
|
|
1249
|
+
o ? B.closeable : null,
|
|
1166
1250
|
c
|
|
1167
1251
|
].filter(Boolean).join(" "),
|
|
1168
1252
|
...u,
|
|
1169
1253
|
children: [
|
|
1170
1254
|
r && /* @__PURE__ */ t("span", {
|
|
1171
|
-
className:
|
|
1172
|
-
children: /* @__PURE__ */ t(
|
|
1255
|
+
className: B.tabIcon,
|
|
1256
|
+
children: /* @__PURE__ */ t(L, {
|
|
1173
1257
|
icon: r,
|
|
1174
1258
|
size: "sm",
|
|
1175
1259
|
"aria-hidden": !0
|
|
1176
1260
|
})
|
|
1177
1261
|
}),
|
|
1178
1262
|
/* @__PURE__ */ t("span", {
|
|
1179
|
-
className:
|
|
1263
|
+
className: B.tabLabel,
|
|
1180
1264
|
children: e
|
|
1181
1265
|
}),
|
|
1182
1266
|
o && /* @__PURE__ */ t("span", {
|
|
1183
1267
|
role: "button",
|
|
1184
1268
|
tabIndex: 0,
|
|
1185
1269
|
"aria-label": s,
|
|
1186
|
-
className:
|
|
1270
|
+
className: B.closeBtn,
|
|
1187
1271
|
onClick: (e) => {
|
|
1188
1272
|
e.stopPropagation(), o();
|
|
1189
1273
|
},
|
|
@@ -1197,18 +1281,18 @@ function Et({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1197
1281
|
}
|
|
1198
1282
|
//#endregion
|
|
1199
1283
|
//#region src/components/Tabs/TabPanel.tsx
|
|
1200
|
-
function
|
|
1284
|
+
function Tt({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
1201
1285
|
return /* @__PURE__ */ t("div", {
|
|
1202
1286
|
id: e,
|
|
1203
1287
|
role: "tabpanel",
|
|
1204
1288
|
hidden: !n,
|
|
1205
1289
|
tabIndex: 0,
|
|
1206
|
-
className: [
|
|
1290
|
+
className: [B.panel, r].filter(Boolean).join(" "),
|
|
1207
1291
|
...a,
|
|
1208
1292
|
children: i
|
|
1209
1293
|
});
|
|
1210
1294
|
}
|
|
1211
|
-
var
|
|
1295
|
+
var V = {
|
|
1212
1296
|
row: "_row_17clq_3",
|
|
1213
1297
|
leading: "_leading_17clq_16",
|
|
1214
1298
|
content: "_content_17clq_25",
|
|
@@ -1221,39 +1305,39 @@ var z = {
|
|
|
1221
1305
|
};
|
|
1222
1306
|
//#endregion
|
|
1223
1307
|
//#region src/components/ActionRow/ActionRow.tsx
|
|
1224
|
-
function
|
|
1308
|
+
function Et({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !1, variant: s = "default", className: c, ...l }) {
|
|
1225
1309
|
let u = o ? "button" : "div", d = s === "property";
|
|
1226
1310
|
return /* @__PURE__ */ n(u, {
|
|
1227
1311
|
className: [
|
|
1228
|
-
|
|
1229
|
-
o ?
|
|
1230
|
-
d ?
|
|
1312
|
+
V.row,
|
|
1313
|
+
o ? V.interactive : null,
|
|
1314
|
+
d ? V.property : null,
|
|
1231
1315
|
c
|
|
1232
1316
|
].filter(Boolean).join(" "),
|
|
1233
1317
|
...l,
|
|
1234
1318
|
children: [
|
|
1235
1319
|
i && /* @__PURE__ */ t("span", {
|
|
1236
|
-
className:
|
|
1320
|
+
className: V.leading,
|
|
1237
1321
|
children: i
|
|
1238
1322
|
}),
|
|
1239
1323
|
/* @__PURE__ */ n("span", {
|
|
1240
|
-
className:
|
|
1324
|
+
className: V.content,
|
|
1241
1325
|
children: [/* @__PURE__ */ t("span", {
|
|
1242
|
-
className: d ?
|
|
1326
|
+
className: d ? V.propertyLabel : V.title,
|
|
1243
1327
|
children: e
|
|
1244
1328
|
}), r && /* @__PURE__ */ t("span", {
|
|
1245
|
-
className: d ?
|
|
1329
|
+
className: d ? V.propertyValue : V.subtitle,
|
|
1246
1330
|
children: r
|
|
1247
1331
|
})]
|
|
1248
1332
|
}),
|
|
1249
1333
|
a && /* @__PURE__ */ t("span", {
|
|
1250
|
-
className:
|
|
1334
|
+
className: V.trailing,
|
|
1251
1335
|
children: a
|
|
1252
1336
|
})
|
|
1253
1337
|
]
|
|
1254
1338
|
});
|
|
1255
1339
|
}
|
|
1256
|
-
var
|
|
1340
|
+
var Dt = {
|
|
1257
1341
|
list: "_list_cy3hv_3",
|
|
1258
1342
|
item: "_item_cy3hv_17",
|
|
1259
1343
|
separate: "_separate_cy3hv_26",
|
|
@@ -1262,23 +1346,23 @@ var kt = {
|
|
|
1262
1346
|
};
|
|
1263
1347
|
//#endregion
|
|
1264
1348
|
//#region src/components/BoxedList/BoxedList.tsx
|
|
1265
|
-
function
|
|
1349
|
+
function Ot({ children: e, variant: i = "default", className: a, ...o }) {
|
|
1266
1350
|
let s = r.toArray(e).filter(Boolean), c = i === "separate";
|
|
1267
1351
|
return /* @__PURE__ */ t("ul", {
|
|
1268
1352
|
role: "list",
|
|
1269
1353
|
className: [
|
|
1270
|
-
|
|
1271
|
-
c ?
|
|
1354
|
+
Dt.list,
|
|
1355
|
+
c ? Dt.separate : null,
|
|
1272
1356
|
a
|
|
1273
1357
|
].filter(Boolean).join(" "),
|
|
1274
1358
|
...o,
|
|
1275
1359
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1276
|
-
className: c ?
|
|
1277
|
-
children: [!c && r > 0 && /* @__PURE__ */ t(
|
|
1360
|
+
className: c ? Dt.separateItem : Dt.item,
|
|
1361
|
+
children: [!c && r > 0 && /* @__PURE__ */ t(ie, { "aria-hidden": "true" }), e]
|
|
1278
1362
|
}, r))
|
|
1279
1363
|
});
|
|
1280
1364
|
}
|
|
1281
|
-
var
|
|
1365
|
+
var kt = {
|
|
1282
1366
|
switcher: "_switcher_1uh9r_3",
|
|
1283
1367
|
item: "_item_1uh9r_18",
|
|
1284
1368
|
active: "_active_1uh9r_45",
|
|
@@ -1287,7 +1371,7 @@ var jt = {
|
|
|
1287
1371
|
};
|
|
1288
1372
|
//#endregion
|
|
1289
1373
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1290
|
-
function
|
|
1374
|
+
function At({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1291
1375
|
let a = f(null);
|
|
1292
1376
|
function o(e) {
|
|
1293
1377
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1305,14 +1389,14 @@ function Mt({ children: e, className: n, "aria-label": r = "View switcher", ...i
|
|
|
1305
1389
|
role: "radiogroup",
|
|
1306
1390
|
"aria-label": r,
|
|
1307
1391
|
onKeyDown: o,
|
|
1308
|
-
className: [
|
|
1392
|
+
className: [kt.switcher, n].filter(Boolean).join(" "),
|
|
1309
1393
|
...i,
|
|
1310
1394
|
children: e
|
|
1311
1395
|
});
|
|
1312
1396
|
}
|
|
1313
1397
|
//#endregion
|
|
1314
1398
|
//#region src/components/ViewSwitcher/ViewSwitcherItem.tsx
|
|
1315
|
-
function
|
|
1399
|
+
function jt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s }) {
|
|
1316
1400
|
return /* @__PURE__ */ n("button", {
|
|
1317
1401
|
type: "button",
|
|
1318
1402
|
role: "radio",
|
|
@@ -1320,40 +1404,40 @@ function Nt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1320
1404
|
tabIndex: i ? 0 : -1,
|
|
1321
1405
|
disabled: o,
|
|
1322
1406
|
className: [
|
|
1323
|
-
|
|
1324
|
-
i ?
|
|
1407
|
+
kt.item,
|
|
1408
|
+
i ? kt.active : null,
|
|
1325
1409
|
a
|
|
1326
1410
|
].filter(Boolean).join(" "),
|
|
1327
1411
|
...s,
|
|
1328
1412
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1329
|
-
className:
|
|
1330
|
-
children: /* @__PURE__ */ t(
|
|
1413
|
+
className: kt.itemIcon,
|
|
1414
|
+
children: /* @__PURE__ */ t(L, {
|
|
1331
1415
|
icon: r,
|
|
1332
1416
|
size: "md",
|
|
1333
1417
|
"aria-hidden": !0
|
|
1334
1418
|
})
|
|
1335
1419
|
}), /* @__PURE__ */ t("span", {
|
|
1336
|
-
className:
|
|
1420
|
+
className: kt.itemLabel,
|
|
1337
1421
|
children: e
|
|
1338
1422
|
})]
|
|
1339
1423
|
});
|
|
1340
1424
|
}
|
|
1341
1425
|
//#endregion
|
|
1342
1426
|
//#region src/components/Toast/Toast.module.css
|
|
1343
|
-
var
|
|
1344
|
-
toaster:
|
|
1345
|
-
toasterBottom:
|
|
1346
|
-
toasterTop:
|
|
1347
|
-
toast:
|
|
1427
|
+
var Mt = "_toaster_1tgvb_3", Nt = "_toasterBottom_1tgvb_18", Pt = "_toasterTop_1tgvb_22", Ft = "_toast_1tgvb_3", It = "_title_1tgvb_69", Lt = "_actions_1tgvb_76", Rt = "_actionBtn_1tgvb_85", zt = "_dismissBtn_1tgvb_118", Bt = {
|
|
1428
|
+
toaster: Mt,
|
|
1429
|
+
toasterBottom: Nt,
|
|
1430
|
+
toasterTop: Pt,
|
|
1431
|
+
toast: Ft,
|
|
1348
1432
|
"toast-in": "_toast-in_1tgvb_1",
|
|
1349
|
-
title:
|
|
1350
|
-
actions:
|
|
1351
|
-
actionBtn:
|
|
1352
|
-
dismissBtn:
|
|
1433
|
+
title: It,
|
|
1434
|
+
actions: Lt,
|
|
1435
|
+
actionBtn: Rt,
|
|
1436
|
+
dismissBtn: zt
|
|
1353
1437
|
};
|
|
1354
1438
|
//#endregion
|
|
1355
1439
|
//#region src/components/Toast/Toast.tsx
|
|
1356
|
-
function
|
|
1440
|
+
function Vt({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...u }) {
|
|
1357
1441
|
let d = f(null), p = f(r), m = f(0), h = () => {
|
|
1358
1442
|
d.current &&= (clearTimeout(d.current), null);
|
|
1359
1443
|
}, g = (e) => {
|
|
@@ -1374,31 +1458,31 @@ function Ut({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1374
1458
|
role: "status",
|
|
1375
1459
|
"aria-live": "polite",
|
|
1376
1460
|
"aria-atomic": "true",
|
|
1377
|
-
className: [
|
|
1461
|
+
className: [Bt.toast, c].filter(Boolean).join(" "),
|
|
1378
1462
|
onMouseEnter: _,
|
|
1379
1463
|
onMouseLeave: v,
|
|
1380
1464
|
onFocus: _,
|
|
1381
1465
|
onBlur: v,
|
|
1382
1466
|
...u,
|
|
1383
1467
|
children: [/* @__PURE__ */ t("span", {
|
|
1384
|
-
className:
|
|
1468
|
+
className: Bt.title,
|
|
1385
1469
|
children: e
|
|
1386
1470
|
}), (a || s) && /* @__PURE__ */ n("span", {
|
|
1387
|
-
className:
|
|
1471
|
+
className: Bt.actions,
|
|
1388
1472
|
children: [a && /* @__PURE__ */ t("button", {
|
|
1389
1473
|
type: "button",
|
|
1390
|
-
className:
|
|
1474
|
+
className: Bt.actionBtn,
|
|
1391
1475
|
onClick: y,
|
|
1392
1476
|
children: a
|
|
1393
1477
|
}), s && /* @__PURE__ */ t("button", {
|
|
1394
1478
|
type: "button",
|
|
1395
|
-
className:
|
|
1479
|
+
className: Bt.dismissBtn,
|
|
1396
1480
|
"aria-label": "Dismiss",
|
|
1397
1481
|
onClick: () => {
|
|
1398
1482
|
h(), i?.();
|
|
1399
1483
|
},
|
|
1400
|
-
children: /* @__PURE__ */ t(
|
|
1401
|
-
icon:
|
|
1484
|
+
children: /* @__PURE__ */ t(L, {
|
|
1485
|
+
icon: Pe,
|
|
1402
1486
|
size: "md",
|
|
1403
1487
|
"aria-hidden": !0
|
|
1404
1488
|
})
|
|
@@ -1408,12 +1492,12 @@ function Ut({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1408
1492
|
}
|
|
1409
1493
|
//#endregion
|
|
1410
1494
|
//#region src/components/Toast/Toaster.tsx
|
|
1411
|
-
function
|
|
1495
|
+
function Ht({ position: e = "bottom", children: n, container: r, className: i, ...a }) {
|
|
1412
1496
|
let o = /* @__PURE__ */ t("div", {
|
|
1413
1497
|
"aria-label": "Notifications",
|
|
1414
1498
|
className: [
|
|
1415
|
-
|
|
1416
|
-
e === "top" ?
|
|
1499
|
+
Bt.toaster,
|
|
1500
|
+
e === "top" ? Bt.toasterTop : Bt.toasterBottom,
|
|
1417
1501
|
i
|
|
1418
1502
|
].filter(Boolean).join(" "),
|
|
1419
1503
|
...a,
|
|
@@ -1423,183 +1507,183 @@ function Wt({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1423
1507
|
}
|
|
1424
1508
|
//#endregion
|
|
1425
1509
|
//#region src/components/Dialog/Dialog.module.css
|
|
1426
|
-
var
|
|
1427
|
-
backdrop:
|
|
1510
|
+
var Ut = "_backdrop_zx0yn_3", Wt = "_dialog_zx0yn_26", Gt = "_title_zx0yn_56", Kt = "_body_zx0yn_70", qt = "_footer_zx0yn_85", Jt = "_btn_zx0yn_92", Yt = "_dialogAbout_zx0yn_155", Xt = "_aboutHeader_zx0yn_162", Zt = "_aboutIcon_zx0yn_171", Qt = "_aboutAppName_zx0yn_180", $t = "_aboutVersion_zx0yn_187", en = "_aboutTabBar_zx0yn_194", tn = "_aboutTabBtn_zx0yn_201", nn = "_aboutTabBtnActive_zx0yn_220", rn = "_aboutTabContent_zx0yn_233", an = "_aboutSection_zx0yn_238", on = "_aboutComments_zx0yn_243", sn = "_aboutInfoList_zx0yn_252", cn = "_aboutInfoLabel_zx0yn_259", ln = "_aboutInfoValue_zx0yn_267", un = "_aboutLink_zx0yn_275", dn = "_aboutCreditGroup_zx0yn_283", fn = "_aboutCreditTitle_zx0yn_287", pn = "_aboutCreditList_zx0yn_297", mn = "_aboutCreditItem_zx0yn_306", hn = "_aboutCopyright_zx0yn_312", gn = "_aboutLicenseType_zx0yn_319", _n = "_aboutLicenseText_zx0yn_326", H = {
|
|
1511
|
+
backdrop: Ut,
|
|
1428
1512
|
"backdrop-in": "_backdrop-in_zx0yn_1",
|
|
1429
|
-
dialog:
|
|
1513
|
+
dialog: Wt,
|
|
1430
1514
|
"dialog-in": "_dialog-in_zx0yn_1",
|
|
1431
|
-
title:
|
|
1432
|
-
body:
|
|
1433
|
-
footer:
|
|
1434
|
-
btn:
|
|
1515
|
+
title: Gt,
|
|
1516
|
+
body: Kt,
|
|
1517
|
+
footer: qt,
|
|
1518
|
+
btn: Jt,
|
|
1435
1519
|
"btn-default": "_btn-default_zx0yn_140",
|
|
1436
1520
|
"btn-suggested": "_btn-suggested_zx0yn_144",
|
|
1437
1521
|
"btn-destructive": "_btn-destructive_zx0yn_149",
|
|
1438
|
-
dialogAbout:
|
|
1439
|
-
aboutHeader:
|
|
1440
|
-
aboutIcon:
|
|
1441
|
-
aboutAppName:
|
|
1442
|
-
aboutVersion:
|
|
1443
|
-
aboutTabBar:
|
|
1444
|
-
aboutTabBtn:
|
|
1445
|
-
aboutTabBtnActive:
|
|
1446
|
-
aboutTabContent:
|
|
1447
|
-
aboutSection:
|
|
1448
|
-
aboutComments:
|
|
1449
|
-
aboutInfoList:
|
|
1450
|
-
aboutInfoLabel:
|
|
1451
|
-
aboutInfoValue:
|
|
1452
|
-
aboutLink:
|
|
1453
|
-
aboutCreditGroup:
|
|
1454
|
-
aboutCreditTitle:
|
|
1455
|
-
aboutCreditList:
|
|
1456
|
-
aboutCreditItem:
|
|
1457
|
-
aboutCopyright:
|
|
1458
|
-
aboutLicenseType:
|
|
1459
|
-
aboutLicenseText:
|
|
1460
|
-
},
|
|
1461
|
-
function
|
|
1522
|
+
dialogAbout: Yt,
|
|
1523
|
+
aboutHeader: Xt,
|
|
1524
|
+
aboutIcon: Zt,
|
|
1525
|
+
aboutAppName: Qt,
|
|
1526
|
+
aboutVersion: $t,
|
|
1527
|
+
aboutTabBar: en,
|
|
1528
|
+
aboutTabBtn: tn,
|
|
1529
|
+
aboutTabBtnActive: nn,
|
|
1530
|
+
aboutTabContent: rn,
|
|
1531
|
+
aboutSection: an,
|
|
1532
|
+
aboutComments: on,
|
|
1533
|
+
aboutInfoList: sn,
|
|
1534
|
+
aboutInfoLabel: cn,
|
|
1535
|
+
aboutInfoValue: ln,
|
|
1536
|
+
aboutLink: un,
|
|
1537
|
+
aboutCreditGroup: dn,
|
|
1538
|
+
aboutCreditTitle: fn,
|
|
1539
|
+
aboutCreditList: pn,
|
|
1540
|
+
aboutCreditItem: mn,
|
|
1541
|
+
aboutCopyright: hn,
|
|
1542
|
+
aboutLicenseType: gn,
|
|
1543
|
+
aboutLicenseText: _n
|
|
1544
|
+
}, vn = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1545
|
+
function yn(e, t) {
|
|
1462
1546
|
if (e.key !== "Tab") return;
|
|
1463
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
1547
|
+
let n = Array.from(t.current?.querySelectorAll(vn) ?? []);
|
|
1464
1548
|
if (!n.length) return;
|
|
1465
1549
|
let r = n[0], i = n[n.length - 1];
|
|
1466
1550
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
1467
1551
|
}
|
|
1468
|
-
var
|
|
1552
|
+
var bn = {
|
|
1469
1553
|
details: "Details",
|
|
1470
1554
|
credits: "Credits",
|
|
1471
1555
|
legal: "Legal"
|
|
1472
1556
|
};
|
|
1473
|
-
function
|
|
1474
|
-
let F = f(null),
|
|
1557
|
+
function xn({ open: r, title: i, children: a, buttons: o = [], onClose: c, closeOnBackdrop: d = !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 }) {
|
|
1558
|
+
let F = f(null), I = u(), ee = f(null), [te, ne] = p("details"), re = !!g, ie = v === "about";
|
|
1475
1559
|
l(() => {
|
|
1476
|
-
r ? (
|
|
1477
|
-
}, [r,
|
|
1478
|
-
let
|
|
1560
|
+
r ? (ee.current = document.activeElement, (F.current?.querySelector(vn))?.focus()) : (ee.current?.focus(), ie && ne("details"));
|
|
1561
|
+
}, [r, ie]);
|
|
1562
|
+
let ae = s(() => {
|
|
1479
1563
|
let e = g?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
1480
1564
|
e && _?.(e.id);
|
|
1481
|
-
}, [g, _]),
|
|
1565
|
+
}, [g, _]), oe = re ? ae : d ? c : void 0, se = s((e) => {
|
|
1482
1566
|
if (e.key === "Escape") {
|
|
1483
|
-
e.preventDefault(),
|
|
1567
|
+
e.preventDefault(), re ? ae() : c?.();
|
|
1484
1568
|
return;
|
|
1485
1569
|
}
|
|
1486
|
-
|
|
1570
|
+
yn(e, F);
|
|
1487
1571
|
}, [
|
|
1488
|
-
|
|
1489
|
-
|
|
1572
|
+
re,
|
|
1573
|
+
ae,
|
|
1490
1574
|
c
|
|
1491
1575
|
]);
|
|
1492
1576
|
if (!r) return null;
|
|
1493
|
-
let
|
|
1577
|
+
let ce = [
|
|
1494
1578
|
"details",
|
|
1495
1579
|
!!(E?.length || D?.length || O?.length) && "credits",
|
|
1496
1580
|
!!(k || A || j) && "legal"
|
|
1497
|
-
].filter(Boolean),
|
|
1498
|
-
className:
|
|
1581
|
+
].filter(Boolean), le = () => ie ? /* @__PURE__ */ t("div", {
|
|
1582
|
+
className: H.footer,
|
|
1499
1583
|
children: /* @__PURE__ */ t("button", {
|
|
1500
1584
|
type: "button",
|
|
1501
|
-
className: [
|
|
1585
|
+
className: [H.btn, H["btn-default"]].join(" "),
|
|
1502
1586
|
onClick: c,
|
|
1503
1587
|
children: "Close"
|
|
1504
1588
|
})
|
|
1505
|
-
}) :
|
|
1506
|
-
className:
|
|
1589
|
+
}) : re && g ? /* @__PURE__ */ t("div", {
|
|
1590
|
+
className: H.footer,
|
|
1507
1591
|
children: g.map((e) => /* @__PURE__ */ t("button", {
|
|
1508
1592
|
type: "button",
|
|
1509
1593
|
disabled: e.disabled,
|
|
1510
|
-
className: [
|
|
1594
|
+
className: [H.btn, H[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1511
1595
|
onClick: () => _?.(e.id),
|
|
1512
1596
|
children: e.label
|
|
1513
1597
|
}, e.id))
|
|
1514
1598
|
}) : o.length > 0 ? /* @__PURE__ */ t("div", {
|
|
1515
|
-
className:
|
|
1599
|
+
className: H.footer,
|
|
1516
1600
|
children: o.map((e) => /* @__PURE__ */ t("button", {
|
|
1517
1601
|
type: "button",
|
|
1518
1602
|
disabled: e.disabled,
|
|
1519
|
-
className: [
|
|
1603
|
+
className: [H.btn, H[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1520
1604
|
onClick: e.onClick,
|
|
1521
1605
|
children: e.label
|
|
1522
1606
|
}, e.label))
|
|
1523
|
-
}) : null,
|
|
1607
|
+
}) : null, ue = () => /* @__PURE__ */ n(e, { children: [
|
|
1524
1608
|
/* @__PURE__ */ n("div", {
|
|
1525
|
-
className:
|
|
1609
|
+
className: H.aboutHeader,
|
|
1526
1610
|
children: [
|
|
1527
1611
|
b && /* @__PURE__ */ t("div", {
|
|
1528
|
-
className:
|
|
1612
|
+
className: H.aboutIcon,
|
|
1529
1613
|
children: b
|
|
1530
1614
|
}),
|
|
1531
1615
|
/* @__PURE__ */ t("div", {
|
|
1532
|
-
id:
|
|
1533
|
-
className:
|
|
1616
|
+
id: I,
|
|
1617
|
+
className: H.aboutAppName,
|
|
1534
1618
|
children: y
|
|
1535
1619
|
}),
|
|
1536
1620
|
x && /* @__PURE__ */ t("div", {
|
|
1537
|
-
className:
|
|
1621
|
+
className: H.aboutVersion,
|
|
1538
1622
|
children: x
|
|
1539
1623
|
})
|
|
1540
1624
|
]
|
|
1541
1625
|
}),
|
|
1542
|
-
|
|
1543
|
-
className:
|
|
1626
|
+
ce.length > 1 && /* @__PURE__ */ t("div", {
|
|
1627
|
+
className: H.aboutTabBar,
|
|
1544
1628
|
role: "tablist",
|
|
1545
|
-
children:
|
|
1629
|
+
children: ce.map((e) => /* @__PURE__ */ t("button", {
|
|
1546
1630
|
type: "button",
|
|
1547
1631
|
role: "tab",
|
|
1548
|
-
"aria-selected":
|
|
1549
|
-
className: [
|
|
1550
|
-
onClick: () =>
|
|
1551
|
-
children:
|
|
1632
|
+
"aria-selected": te === e,
|
|
1633
|
+
className: [H.aboutTabBtn, te === e ? H.aboutTabBtnActive : null].filter(Boolean).join(" "),
|
|
1634
|
+
onClick: () => ne(e),
|
|
1635
|
+
children: bn[e]
|
|
1552
1636
|
}, e))
|
|
1553
1637
|
}),
|
|
1554
1638
|
/* @__PURE__ */ n("div", {
|
|
1555
|
-
className:
|
|
1639
|
+
className: H.aboutTabContent,
|
|
1556
1640
|
children: [
|
|
1557
|
-
|
|
1558
|
-
className:
|
|
1641
|
+
te === "details" && /* @__PURE__ */ n("div", {
|
|
1642
|
+
className: H.aboutSection,
|
|
1559
1643
|
children: [S && /* @__PURE__ */ t("p", {
|
|
1560
|
-
className:
|
|
1644
|
+
className: H.aboutComments,
|
|
1561
1645
|
children: S
|
|
1562
1646
|
}), (C || w || M?.length) && /* @__PURE__ */ n("dl", {
|
|
1563
|
-
className:
|
|
1647
|
+
className: H.aboutInfoList,
|
|
1564
1648
|
children: [
|
|
1565
1649
|
C && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1566
|
-
className:
|
|
1650
|
+
className: H.aboutInfoLabel,
|
|
1567
1651
|
children: "Developer"
|
|
1568
1652
|
}), /* @__PURE__ */ t("dd", {
|
|
1569
|
-
className:
|
|
1653
|
+
className: H.aboutInfoValue,
|
|
1570
1654
|
children: C
|
|
1571
1655
|
})] }),
|
|
1572
1656
|
w && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1573
|
-
className:
|
|
1657
|
+
className: H.aboutInfoLabel,
|
|
1574
1658
|
children: "Website"
|
|
1575
1659
|
}), /* @__PURE__ */ t("dd", {
|
|
1576
|
-
className:
|
|
1660
|
+
className: H.aboutInfoValue,
|
|
1577
1661
|
children: /* @__PURE__ */ t("a", {
|
|
1578
1662
|
href: w,
|
|
1579
1663
|
target: "_blank",
|
|
1580
1664
|
rel: "noopener noreferrer",
|
|
1581
|
-
className:
|
|
1665
|
+
className: H.aboutLink,
|
|
1582
1666
|
children: T ?? w
|
|
1583
1667
|
})
|
|
1584
1668
|
})] }),
|
|
1585
1669
|
M?.map((r) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1586
|
-
className:
|
|
1670
|
+
className: H.aboutInfoLabel,
|
|
1587
1671
|
children: r.label
|
|
1588
1672
|
}, `${r.label}-dt`), /* @__PURE__ */ t("dd", {
|
|
1589
|
-
className:
|
|
1673
|
+
className: H.aboutInfoValue,
|
|
1590
1674
|
children: /* @__PURE__ */ t("a", {
|
|
1591
1675
|
href: r.url,
|
|
1592
1676
|
target: "_blank",
|
|
1593
1677
|
rel: "noopener noreferrer",
|
|
1594
|
-
className:
|
|
1678
|
+
className: H.aboutLink,
|
|
1595
1679
|
children: r.url
|
|
1596
1680
|
})
|
|
1597
1681
|
}, `${r.label}-dd`)] }))
|
|
1598
1682
|
]
|
|
1599
1683
|
})]
|
|
1600
1684
|
}),
|
|
1601
|
-
|
|
1602
|
-
className:
|
|
1685
|
+
te === "credits" && /* @__PURE__ */ t("div", {
|
|
1686
|
+
className: H.aboutSection,
|
|
1603
1687
|
children: [
|
|
1604
1688
|
{
|
|
1605
1689
|
heading: "Developers",
|
|
@@ -1614,94 +1698,94 @@ function Cn({ open: r, title: i, children: a, buttons: o = [], onClose: c, close
|
|
|
1614
1698
|
list: O
|
|
1615
1699
|
}
|
|
1616
1700
|
].filter((e) => e.list?.length).map(({ heading: e, list: r }) => /* @__PURE__ */ n("div", {
|
|
1617
|
-
className:
|
|
1701
|
+
className: H.aboutCreditGroup,
|
|
1618
1702
|
children: [/* @__PURE__ */ t("h4", {
|
|
1619
|
-
className:
|
|
1703
|
+
className: H.aboutCreditTitle,
|
|
1620
1704
|
children: e
|
|
1621
1705
|
}), /* @__PURE__ */ t("ul", {
|
|
1622
|
-
className:
|
|
1706
|
+
className: H.aboutCreditList,
|
|
1623
1707
|
children: r.map((e) => /* @__PURE__ */ t("li", {
|
|
1624
|
-
className:
|
|
1708
|
+
className: H.aboutCreditItem,
|
|
1625
1709
|
children: e
|
|
1626
1710
|
}, e))
|
|
1627
1711
|
})]
|
|
1628
1712
|
}, e))
|
|
1629
1713
|
}),
|
|
1630
|
-
|
|
1631
|
-
className:
|
|
1714
|
+
te === "legal" && /* @__PURE__ */ n("div", {
|
|
1715
|
+
className: H.aboutSection,
|
|
1632
1716
|
children: [
|
|
1633
1717
|
k && /* @__PURE__ */ t("p", {
|
|
1634
|
-
className:
|
|
1718
|
+
className: H.aboutCopyright,
|
|
1635
1719
|
children: k
|
|
1636
1720
|
}),
|
|
1637
1721
|
A && /* @__PURE__ */ t("p", {
|
|
1638
|
-
className:
|
|
1722
|
+
className: H.aboutLicenseType,
|
|
1639
1723
|
children: A
|
|
1640
1724
|
}),
|
|
1641
1725
|
j && /* @__PURE__ */ t("pre", {
|
|
1642
|
-
className:
|
|
1726
|
+
className: H.aboutLicenseText,
|
|
1643
1727
|
children: j
|
|
1644
1728
|
})
|
|
1645
1729
|
]
|
|
1646
1730
|
})
|
|
1647
1731
|
]
|
|
1648
1732
|
})
|
|
1649
|
-
] }),
|
|
1650
|
-
className:
|
|
1651
|
-
onClick:
|
|
1733
|
+
] }), de = /* @__PURE__ */ t("div", {
|
|
1734
|
+
className: H.backdrop,
|
|
1735
|
+
onClick: oe,
|
|
1652
1736
|
"aria-hidden": "true",
|
|
1653
1737
|
children: /* @__PURE__ */ n("div", {
|
|
1654
1738
|
ref: F,
|
|
1655
1739
|
role: h,
|
|
1656
1740
|
"aria-modal": "true",
|
|
1657
|
-
"aria-labelledby":
|
|
1741
|
+
"aria-labelledby": I,
|
|
1658
1742
|
className: [
|
|
1659
|
-
|
|
1660
|
-
|
|
1743
|
+
H.dialog,
|
|
1744
|
+
ie ? H.dialogAbout : null,
|
|
1661
1745
|
N
|
|
1662
1746
|
].filter(Boolean).join(" "),
|
|
1663
|
-
onKeyDown:
|
|
1747
|
+
onKeyDown: se,
|
|
1664
1748
|
onClick: (e) => e.stopPropagation(),
|
|
1665
1749
|
...P,
|
|
1666
|
-
children: [
|
|
1667
|
-
id:
|
|
1668
|
-
className:
|
|
1750
|
+
children: [ie ? ue() : /* @__PURE__ */ n(e, { children: [i && /* @__PURE__ */ t("div", {
|
|
1751
|
+
id: I,
|
|
1752
|
+
className: H.title,
|
|
1669
1753
|
children: i
|
|
1670
1754
|
}), a && /* @__PURE__ */ t("div", {
|
|
1671
|
-
className:
|
|
1755
|
+
className: H.body,
|
|
1672
1756
|
children: a
|
|
1673
|
-
})] }),
|
|
1757
|
+
})] }), le()]
|
|
1674
1758
|
})
|
|
1675
1759
|
});
|
|
1676
|
-
return typeof document > "u" ?
|
|
1760
|
+
return typeof document > "u" ? de : m(de, document.body);
|
|
1677
1761
|
}
|
|
1678
1762
|
//#endregion
|
|
1679
1763
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1680
|
-
var
|
|
1681
|
-
wrapper:
|
|
1682
|
-
trigger:
|
|
1683
|
-
triggerOpen:
|
|
1684
|
-
triggerLabel:
|
|
1685
|
-
placeholder:
|
|
1686
|
-
chevron:
|
|
1687
|
-
chevronOpen:
|
|
1688
|
-
list:
|
|
1764
|
+
var Sn = "_wrapper_1hi05_3", Cn = "_trigger_1hi05_11", wn = "_triggerOpen_1hi05_63", Tn = "_triggerLabel_1hi05_73", En = "_placeholder_1hi05_81", Dn = "_chevron_1hi05_87", On = "_chevronOpen_1hi05_94", kn = "_list_1hi05_100", An = "_listDown_1hi05_129", jn = "_listUp_1hi05_133", Mn = "_option_1hi05_145", Nn = "_optionActive_1hi05_162", Pn = "_optionSelected_1hi05_166", Fn = "_optionDisabled_1hi05_170", In = "_optionText_1hi05_178", Ln = "_optionLabel_1hi05_186", Rn = "_optionDesc_1hi05_192", zn = "_checkIcon_1hi05_202", U = {
|
|
1765
|
+
wrapper: Sn,
|
|
1766
|
+
trigger: Cn,
|
|
1767
|
+
triggerOpen: wn,
|
|
1768
|
+
triggerLabel: Tn,
|
|
1769
|
+
placeholder: En,
|
|
1770
|
+
chevron: Dn,
|
|
1771
|
+
chevronOpen: On,
|
|
1772
|
+
list: kn,
|
|
1689
1773
|
"list-in": "_list-in_1hi05_1",
|
|
1690
|
-
listDown:
|
|
1691
|
-
listUp:
|
|
1774
|
+
listDown: An,
|
|
1775
|
+
listUp: jn,
|
|
1692
1776
|
"list-in-up": "_list-in-up_1hi05_1",
|
|
1693
|
-
option:
|
|
1694
|
-
optionActive:
|
|
1695
|
-
optionSelected:
|
|
1696
|
-
optionDisabled:
|
|
1697
|
-
optionText:
|
|
1698
|
-
optionLabel:
|
|
1699
|
-
optionDesc:
|
|
1700
|
-
checkIcon:
|
|
1777
|
+
option: Mn,
|
|
1778
|
+
optionActive: Nn,
|
|
1779
|
+
optionSelected: Pn,
|
|
1780
|
+
optionDisabled: Fn,
|
|
1781
|
+
optionText: In,
|
|
1782
|
+
optionLabel: Ln,
|
|
1783
|
+
optionDesc: Rn,
|
|
1784
|
+
checkIcon: zn
|
|
1701
1785
|
};
|
|
1702
1786
|
//#endregion
|
|
1703
1787
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1704
|
-
function
|
|
1788
|
+
function Bn({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: c, ...d }) {
|
|
1705
1789
|
let [m, h] = p(!1), [g, _] = p(-1), [v, y] = p(!1), b = u(), x = u(), S = f(null), C = f(null), w = e.find((e) => e.value === r), T = s(() => {
|
|
1706
1790
|
if (!S.current) return;
|
|
1707
1791
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
@@ -1785,7 +1869,7 @@ function Hn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1785
1869
|
D
|
|
1786
1870
|
]);
|
|
1787
1871
|
return /* @__PURE__ */ n("div", {
|
|
1788
|
-
className: [
|
|
1872
|
+
className: [U.wrapper, c].filter(Boolean).join(" "),
|
|
1789
1873
|
...d,
|
|
1790
1874
|
children: [/* @__PURE__ */ n("button", {
|
|
1791
1875
|
ref: S,
|
|
@@ -1797,17 +1881,17 @@ function Hn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1797
1881
|
"aria-controls": x,
|
|
1798
1882
|
"aria-activedescendant": m && g >= 0 ? `${x}-opt-${g}` : void 0,
|
|
1799
1883
|
disabled: o,
|
|
1800
|
-
className: [
|
|
1884
|
+
className: [U.trigger, m ? U.triggerOpen : null].filter(Boolean).join(" "),
|
|
1801
1885
|
onClick: () => m ? D() : E(),
|
|
1802
1886
|
onKeyDown: k,
|
|
1803
1887
|
children: [/* @__PURE__ */ t("span", {
|
|
1804
|
-
className: [
|
|
1888
|
+
className: [U.triggerLabel, w ? null : U.placeholder].filter(Boolean).join(" "),
|
|
1805
1889
|
children: w?.label ?? a
|
|
1806
|
-
}), /* @__PURE__ */ t(
|
|
1807
|
-
icon:
|
|
1890
|
+
}), /* @__PURE__ */ t(L, {
|
|
1891
|
+
icon: Ne,
|
|
1808
1892
|
size: "md",
|
|
1809
1893
|
"aria-hidden": !0,
|
|
1810
|
-
className: [
|
|
1894
|
+
className: [U.chevron, m ? U.chevronOpen : null].filter(Boolean).join(" ")
|
|
1811
1895
|
})]
|
|
1812
1896
|
}), m && /* @__PURE__ */ t("ul", {
|
|
1813
1897
|
ref: C,
|
|
@@ -1815,7 +1899,7 @@ function Hn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1815
1899
|
role: "listbox",
|
|
1816
1900
|
"aria-labelledby": b,
|
|
1817
1901
|
tabIndex: -1,
|
|
1818
|
-
className: [
|
|
1902
|
+
className: [U.list, v ? U.listUp : U.listDown].filter(Boolean).join(" "),
|
|
1819
1903
|
onKeyDown: A,
|
|
1820
1904
|
children: e.map((e, i) => /* @__PURE__ */ n("li", {
|
|
1821
1905
|
id: `${x}-opt-${i}`,
|
|
@@ -1823,33 +1907,33 @@ function Hn({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
1823
1907
|
"aria-selected": e.value === r,
|
|
1824
1908
|
"aria-disabled": e.disabled,
|
|
1825
1909
|
className: [
|
|
1826
|
-
|
|
1827
|
-
e.value === r ?
|
|
1828
|
-
i === g ?
|
|
1829
|
-
e.disabled ?
|
|
1910
|
+
U.option,
|
|
1911
|
+
e.value === r ? U.optionSelected : null,
|
|
1912
|
+
i === g ? U.optionActive : null,
|
|
1913
|
+
e.disabled ? U.optionDisabled : null
|
|
1830
1914
|
].filter(Boolean).join(" "),
|
|
1831
1915
|
onMouseEnter: () => !e.disabled && _(i),
|
|
1832
1916
|
onClick: () => O(e),
|
|
1833
1917
|
children: [/* @__PURE__ */ n("span", {
|
|
1834
|
-
className:
|
|
1918
|
+
className: U.optionText,
|
|
1835
1919
|
children: [/* @__PURE__ */ t("span", {
|
|
1836
|
-
className:
|
|
1920
|
+
className: U.optionLabel,
|
|
1837
1921
|
children: e.label
|
|
1838
1922
|
}), e.description && /* @__PURE__ */ t("span", {
|
|
1839
|
-
className:
|
|
1923
|
+
className: U.optionDesc,
|
|
1840
1924
|
children: e.description
|
|
1841
1925
|
})]
|
|
1842
|
-
}), e.value === r && /* @__PURE__ */ t(
|
|
1843
|
-
icon:
|
|
1926
|
+
}), e.value === r && /* @__PURE__ */ t(L, {
|
|
1927
|
+
icon: Re,
|
|
1844
1928
|
size: "md",
|
|
1845
1929
|
"aria-hidden": !0,
|
|
1846
|
-
className:
|
|
1930
|
+
className: U.checkIcon
|
|
1847
1931
|
})]
|
|
1848
1932
|
}, e.value))
|
|
1849
1933
|
})]
|
|
1850
1934
|
});
|
|
1851
1935
|
}
|
|
1852
|
-
var
|
|
1936
|
+
var Vn = {
|
|
1853
1937
|
wrapper: "_wrapper_11zhs_3",
|
|
1854
1938
|
hasLabels: "_hasLabels_11zhs_11",
|
|
1855
1939
|
track: "_track_11zhs_17",
|
|
@@ -1862,21 +1946,21 @@ var Un = {
|
|
|
1862
1946
|
};
|
|
1863
1947
|
//#endregion
|
|
1864
1948
|
//#region src/components/Slider/Slider.tsx
|
|
1865
|
-
function
|
|
1949
|
+
function Hn(e, t, n) {
|
|
1866
1950
|
return Math.min(n, Math.max(t, e));
|
|
1867
1951
|
}
|
|
1868
|
-
function
|
|
1952
|
+
function Un(e, t, n, r) {
|
|
1869
1953
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
1870
1954
|
}
|
|
1871
|
-
function
|
|
1955
|
+
function Wn(e) {
|
|
1872
1956
|
let t = e.toString(), n = t.indexOf(".");
|
|
1873
1957
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1874
1958
|
}
|
|
1875
|
-
function
|
|
1876
|
-
let g = f(null), _ =
|
|
1959
|
+
function Gn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: c = !1, marks: l, className: u, "aria-label": d, "aria-labelledby": p, "aria-describedby": m, ...h }) {
|
|
1960
|
+
let g = f(null), _ = Wn(o), v = (Hn(e, i, a) - i) / (a - i) * 100, y = s((e) => {
|
|
1877
1961
|
if (!g.current) return;
|
|
1878
1962
|
let { left: t, width: n } = g.current.getBoundingClientRect();
|
|
1879
|
-
r(
|
|
1963
|
+
r(Hn(Un((e - t) / n * (a - i) + i, i, o, _), i, a));
|
|
1880
1964
|
}, [
|
|
1881
1965
|
i,
|
|
1882
1966
|
a,
|
|
@@ -1889,7 +1973,7 @@ function qn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1889
1973
|
e.currentTarget.hasPointerCapture(e.pointerId) && y(e.clientX);
|
|
1890
1974
|
}, [y]), S = s((t) => {
|
|
1891
1975
|
let n = (e) => {
|
|
1892
|
-
t.preventDefault(), r(
|
|
1976
|
+
t.preventDefault(), r(Hn(Un(e, i, o, _), i, a));
|
|
1893
1977
|
};
|
|
1894
1978
|
switch (t.key) {
|
|
1895
1979
|
case "ArrowRight":
|
|
@@ -1923,8 +2007,8 @@ function qn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1923
2007
|
]), C = l && l.length > 0, w = C && l.some((e) => e.label);
|
|
1924
2008
|
return /* @__PURE__ */ n("div", {
|
|
1925
2009
|
className: [
|
|
1926
|
-
|
|
1927
|
-
w ?
|
|
2010
|
+
Vn.wrapper,
|
|
2011
|
+
w ? Vn.hasLabels : null,
|
|
1928
2012
|
u
|
|
1929
2013
|
].filter(Boolean).join(" "),
|
|
1930
2014
|
...h,
|
|
@@ -1939,36 +2023,36 @@ function qn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1939
2023
|
"aria-labelledby": p,
|
|
1940
2024
|
"aria-describedby": m,
|
|
1941
2025
|
"aria-disabled": c || void 0,
|
|
1942
|
-
className: [
|
|
2026
|
+
className: [Vn.track, c ? Vn.disabled : null].filter(Boolean).join(" "),
|
|
1943
2027
|
onPointerDown: b,
|
|
1944
2028
|
onPointerMove: x,
|
|
1945
2029
|
onKeyDown: c ? void 0 : S,
|
|
1946
2030
|
children: [
|
|
1947
2031
|
/* @__PURE__ */ t("div", {
|
|
1948
|
-
className:
|
|
2032
|
+
className: Vn.fill,
|
|
1949
2033
|
style: { width: `${v}%` }
|
|
1950
2034
|
}),
|
|
1951
2035
|
/* @__PURE__ */ t("div", {
|
|
1952
|
-
className:
|
|
2036
|
+
className: Vn.thumb,
|
|
1953
2037
|
style: { left: `${v}%` },
|
|
1954
2038
|
"aria-hidden": "true"
|
|
1955
2039
|
}),
|
|
1956
2040
|
C && l.map((e) => {
|
|
1957
|
-
let n = (
|
|
2041
|
+
let n = (Hn(e.value, i, a) - i) / (a - i) * 100;
|
|
1958
2042
|
return /* @__PURE__ */ t("div", {
|
|
1959
|
-
className:
|
|
2043
|
+
className: Vn.tick,
|
|
1960
2044
|
style: { left: `${n}%` },
|
|
1961
2045
|
"aria-hidden": "true"
|
|
1962
2046
|
}, e.value);
|
|
1963
2047
|
})
|
|
1964
2048
|
]
|
|
1965
2049
|
}), w && /* @__PURE__ */ t("div", {
|
|
1966
|
-
className:
|
|
2050
|
+
className: Vn.labels,
|
|
1967
2051
|
"aria-hidden": "true",
|
|
1968
2052
|
children: l.map((e) => {
|
|
1969
|
-
let n = (
|
|
2053
|
+
let n = (Hn(e.value, i, a) - i) / (a - i) * 100;
|
|
1970
2054
|
return /* @__PURE__ */ t("span", {
|
|
1971
|
-
className:
|
|
2055
|
+
className: Vn.markLabel,
|
|
1972
2056
|
style: { left: `${n}%` },
|
|
1973
2057
|
children: e.label
|
|
1974
2058
|
}, e.value);
|
|
@@ -1976,7 +2060,7 @@ function qn({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
1976
2060
|
})]
|
|
1977
2061
|
});
|
|
1978
2062
|
}
|
|
1979
|
-
var
|
|
2063
|
+
var Kn = {
|
|
1980
2064
|
panel: "_panel_1tk9v_3",
|
|
1981
2065
|
visible: "_visible_1tk9v_36",
|
|
1982
2066
|
arrow: "_arrow_1tk9v_44",
|
|
@@ -1984,8 +2068,8 @@ var Jn = {
|
|
|
1984
2068
|
top: "_top_1tk9v_67",
|
|
1985
2069
|
left: "_left_1tk9v_75",
|
|
1986
2070
|
right: "_right_1tk9v_83"
|
|
1987
|
-
},
|
|
1988
|
-
function
|
|
2071
|
+
}, qn = 8, W = 10, Jn = 6;
|
|
2072
|
+
function Yn(e, t, n) {
|
|
1989
2073
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
1990
2074
|
n,
|
|
1991
2075
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -1996,21 +2080,21 @@ function Zn(e, t, n) {
|
|
|
1996
2080
|
])];
|
|
1997
2081
|
function o(n) {
|
|
1998
2082
|
return n === "bottom" ? {
|
|
1999
|
-
top: e.bottom +
|
|
2083
|
+
top: e.bottom + qn,
|
|
2000
2084
|
left: e.left + e.width / 2 - t.width / 2
|
|
2001
2085
|
} : n === "top" ? {
|
|
2002
|
-
top: e.top - t.height -
|
|
2086
|
+
top: e.top - t.height - qn,
|
|
2003
2087
|
left: e.left + e.width / 2 - t.width / 2
|
|
2004
2088
|
} : n === "left" ? {
|
|
2005
2089
|
top: e.top + e.height / 2 - t.height / 2,
|
|
2006
|
-
left: e.left - t.width -
|
|
2090
|
+
left: e.left - t.width - qn
|
|
2007
2091
|
} : {
|
|
2008
2092
|
top: e.top + e.height / 2 - t.height / 2,
|
|
2009
|
-
left: e.right +
|
|
2093
|
+
left: e.right + qn
|
|
2010
2094
|
};
|
|
2011
2095
|
}
|
|
2012
2096
|
for (let n of a) {
|
|
2013
|
-
let { top: a, left: s } = o(n), c = s >=
|
|
2097
|
+
let { top: a, left: s } = o(n), c = s >= W && s + t.width <= r - W, l = a >= W && a + t.height <= i - W;
|
|
2014
2098
|
if (c && l) return {
|
|
2015
2099
|
top: a,
|
|
2016
2100
|
left: s,
|
|
@@ -2019,35 +2103,35 @@ function Zn(e, t, n) {
|
|
|
2019
2103
|
};
|
|
2020
2104
|
}
|
|
2021
2105
|
for (let n of a) {
|
|
2022
|
-
let { top: a, left: s } = o(n), c = a >=
|
|
2106
|
+
let { top: a, left: s } = o(n), c = a >= W && a + t.height <= i - W, l = s >= W && s + t.width <= r - W;
|
|
2023
2107
|
if ((n === "top" || n === "bottom") && c) {
|
|
2024
|
-
let i = Math.max(
|
|
2108
|
+
let i = Math.max(W, Math.min(s, r - t.width - W)), o = e.left + e.width / 2 - i;
|
|
2025
2109
|
return {
|
|
2026
2110
|
top: a,
|
|
2027
2111
|
left: i,
|
|
2028
2112
|
placement: n,
|
|
2029
|
-
arrowOffset: Math.max(
|
|
2113
|
+
arrowOffset: Math.max(Jn + 4, Math.min(o, t.width - Jn - 4))
|
|
2030
2114
|
};
|
|
2031
2115
|
}
|
|
2032
2116
|
if ((n === "left" || n === "right") && l) {
|
|
2033
|
-
let r = Math.max(
|
|
2117
|
+
let r = Math.max(W, Math.min(a, i - t.height - W)), o = e.top + e.height / 2 - r;
|
|
2034
2118
|
return {
|
|
2035
2119
|
top: r,
|
|
2036
2120
|
left: s,
|
|
2037
2121
|
placement: n,
|
|
2038
|
-
arrowOffset: Math.max(
|
|
2122
|
+
arrowOffset: Math.max(Jn + 4, Math.min(o, t.height - Jn - 4))
|
|
2039
2123
|
};
|
|
2040
2124
|
}
|
|
2041
2125
|
}
|
|
2042
|
-
let s = e.bottom +
|
|
2126
|
+
let s = e.bottom + qn, c = e.left + e.width / 2 - t.width / 2, l = Math.max(W, Math.min(s, i - t.height - W)), u = Math.max(W, Math.min(c, r - t.width - W)), d = e.left + e.width / 2 - u;
|
|
2043
2127
|
return {
|
|
2044
2128
|
top: l,
|
|
2045
2129
|
left: u,
|
|
2046
2130
|
placement: "bottom",
|
|
2047
|
-
arrowOffset: Math.max(
|
|
2131
|
+
arrowOffset: Math.max(Jn + 4, Math.min(d, t.width - Jn - 4))
|
|
2048
2132
|
};
|
|
2049
2133
|
}
|
|
2050
|
-
function
|
|
2134
|
+
function Xn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenChange: d, children: h }) {
|
|
2051
2135
|
let g = o !== void 0, [_, v] = p(!1), y = g ? o : _, [b, x] = p(null), S = u(), C = u(), w = f(null), T = f(null), E = f(null), D = s(() => {
|
|
2052
2136
|
g ? c?.() : v(!1), d?.(!1);
|
|
2053
2137
|
}, [
|
|
@@ -2062,7 +2146,7 @@ function Qn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2062
2146
|
g,
|
|
2063
2147
|
d
|
|
2064
2148
|
]), k = s(() => {
|
|
2065
|
-
!w.current || !T.current || x(
|
|
2149
|
+
!w.current || !T.current || x(Yn(w.current.getBoundingClientRect(), T.current.getBoundingClientRect(), a));
|
|
2066
2150
|
}, [a]);
|
|
2067
2151
|
l(() => {
|
|
2068
2152
|
if (!y) return;
|
|
@@ -2104,9 +2188,9 @@ function Qn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2104
2188
|
"aria-labelledby": S,
|
|
2105
2189
|
tabIndex: -1,
|
|
2106
2190
|
className: [
|
|
2107
|
-
|
|
2108
|
-
b ?
|
|
2109
|
-
y && b ?
|
|
2191
|
+
Kn.panel,
|
|
2192
|
+
b ? Kn[b.placement] : null,
|
|
2193
|
+
y && b ? Kn.visible : null
|
|
2110
2194
|
].filter(Boolean).join(" "),
|
|
2111
2195
|
style: b ? {
|
|
2112
2196
|
top: b.top,
|
|
@@ -2119,25 +2203,25 @@ function Qn({ content: r, placement: a = "bottom", open: o, onClose: c, onOpenCh
|
|
|
2119
2203
|
},
|
|
2120
2204
|
onKeyDown: A,
|
|
2121
2205
|
children: [/* @__PURE__ */ t("div", {
|
|
2122
|
-
className:
|
|
2206
|
+
className: Kn.arrow,
|
|
2123
2207
|
"aria-hidden": "true",
|
|
2124
2208
|
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2125
|
-
left: b.arrowOffset -
|
|
2209
|
+
left: b.arrowOffset - Jn,
|
|
2126
2210
|
marginLeft: 0
|
|
2127
2211
|
} : {
|
|
2128
|
-
top: b.arrowOffset -
|
|
2212
|
+
top: b.arrowOffset - Jn,
|
|
2129
2213
|
marginTop: 0
|
|
2130
2214
|
}
|
|
2131
2215
|
}), r]
|
|
2132
2216
|
});
|
|
2133
2217
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? m(M, document.body) : M)] });
|
|
2134
2218
|
}
|
|
2135
|
-
var
|
|
2219
|
+
var Zn = { clamp: "_clamp_1j51b_6" };
|
|
2136
2220
|
//#endregion
|
|
2137
2221
|
//#region src/components/Clamp/Clamp.tsx
|
|
2138
|
-
function
|
|
2222
|
+
function Qn({ maximumSize: e = 600, children: n, className: r, style: i, ...a }) {
|
|
2139
2223
|
return /* @__PURE__ */ t("div", {
|
|
2140
|
-
className: [
|
|
2224
|
+
className: [Zn.clamp, r].filter(Boolean).join(" "),
|
|
2141
2225
|
style: {
|
|
2142
2226
|
maxWidth: e,
|
|
2143
2227
|
...i
|
|
@@ -2146,7 +2230,7 @@ function er({ maximumSize: e = 600, children: n, className: r, style: i, ...a })
|
|
|
2146
2230
|
children: n
|
|
2147
2231
|
});
|
|
2148
2232
|
}
|
|
2149
|
-
var
|
|
2233
|
+
var G = {
|
|
2150
2234
|
root: "_root_yaj3r_3",
|
|
2151
2235
|
expanded: "_expanded_yaj3r_12",
|
|
2152
2236
|
sidebar: "_sidebar_yaj3r_16",
|
|
@@ -2158,12 +2242,12 @@ var U = {
|
|
|
2158
2242
|
};
|
|
2159
2243
|
//#endregion
|
|
2160
2244
|
//#region src/components/NavigationSplitView/NavigationSplitView.tsx
|
|
2161
|
-
function
|
|
2162
|
-
let { isNarrow: d } =
|
|
2245
|
+
function $n({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a = 180, maxSidebarWidth: o = 280, sidebarWidthFraction: s = .25, className: c, style: l, ...u }) {
|
|
2246
|
+
let { isNarrow: d } = Ue(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2163
2247
|
return /* @__PURE__ */ n("div", {
|
|
2164
2248
|
className: [
|
|
2165
|
-
|
|
2166
|
-
d ?
|
|
2249
|
+
G.root,
|
|
2250
|
+
d ? G.collapsed : G.expanded,
|
|
2167
2251
|
c
|
|
2168
2252
|
].filter(Boolean).join(" "),
|
|
2169
2253
|
style: {
|
|
@@ -2173,23 +2257,23 @@ function tr({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2173
2257
|
...u,
|
|
2174
2258
|
children: [
|
|
2175
2259
|
/* @__PURE__ */ t("div", {
|
|
2176
|
-
className: [
|
|
2260
|
+
className: [G.sidebar, d && i ? G.paneHidden : G.paneVisible].filter(Boolean).join(" "),
|
|
2177
2261
|
"aria-hidden": d && i,
|
|
2178
2262
|
children: e
|
|
2179
2263
|
}),
|
|
2180
2264
|
!d && /* @__PURE__ */ t("div", {
|
|
2181
|
-
className:
|
|
2265
|
+
className: G.divider,
|
|
2182
2266
|
"aria-hidden": "true"
|
|
2183
2267
|
}),
|
|
2184
2268
|
/* @__PURE__ */ t("div", {
|
|
2185
|
-
className: [
|
|
2269
|
+
className: [G.contentPane, d && !i ? G.paneHidden : G.paneVisible].filter(Boolean).join(" "),
|
|
2186
2270
|
"aria-hidden": d && !i,
|
|
2187
2271
|
children: r
|
|
2188
2272
|
})
|
|
2189
2273
|
]
|
|
2190
2274
|
});
|
|
2191
2275
|
}
|
|
2192
|
-
var
|
|
2276
|
+
var K = {
|
|
2193
2277
|
root: "_root_1xl2w_3",
|
|
2194
2278
|
wide: "_wide_1xl2w_13",
|
|
2195
2279
|
end: "_end_1xl2w_17",
|
|
@@ -2204,8 +2288,8 @@ var W = {
|
|
|
2204
2288
|
};
|
|
2205
2289
|
//#endregion
|
|
2206
2290
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2207
|
-
function
|
|
2208
|
-
let { isNarrow: h } =
|
|
2291
|
+
function er({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPosition: o = "start", minSidebarWidth: s = 180, maxSidebarWidth: c = 280, sidebarWidthFraction: u = .25, className: d, style: p, ...m }) {
|
|
2292
|
+
let { isNarrow: h } = Ue(), g = f(null), _ = `clamp(${s}px, ${u * 100}%, ${c}px)`;
|
|
2209
2293
|
l(() => {
|
|
2210
2294
|
if (!h || !i) return;
|
|
2211
2295
|
let e = (e) => {
|
|
@@ -2222,9 +2306,9 @@ function nr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2222
2306
|
let v = o === "end";
|
|
2223
2307
|
return /* @__PURE__ */ n("div", {
|
|
2224
2308
|
className: [
|
|
2225
|
-
|
|
2226
|
-
h ?
|
|
2227
|
-
v ?
|
|
2309
|
+
K.root,
|
|
2310
|
+
h ? K.narrow : K.wide,
|
|
2311
|
+
v ? K.end : K.start,
|
|
2228
2312
|
d
|
|
2229
2313
|
].filter(Boolean).join(" "),
|
|
2230
2314
|
style: {
|
|
@@ -2234,69 +2318,69 @@ function nr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, sidebarPo
|
|
|
2234
2318
|
...m,
|
|
2235
2319
|
children: [
|
|
2236
2320
|
h && /* @__PURE__ */ t("div", {
|
|
2237
|
-
className: [
|
|
2321
|
+
className: [K.backdrop, i ? K.backdropVisible : null].filter(Boolean).join(" "),
|
|
2238
2322
|
"aria-hidden": "true",
|
|
2239
2323
|
onClick: a
|
|
2240
2324
|
}),
|
|
2241
2325
|
/* @__PURE__ */ t("div", {
|
|
2242
2326
|
ref: g,
|
|
2243
|
-
className: [
|
|
2327
|
+
className: [K.sidebar, h ? i ? K.sidebarOpen : K.sidebarClosed : null].filter(Boolean).join(" "),
|
|
2244
2328
|
"aria-hidden": h && !i,
|
|
2245
2329
|
children: e
|
|
2246
2330
|
}),
|
|
2247
2331
|
/* @__PURE__ */ t("div", {
|
|
2248
|
-
className:
|
|
2332
|
+
className: K.content,
|
|
2249
2333
|
children: r
|
|
2250
2334
|
})
|
|
2251
2335
|
]
|
|
2252
2336
|
});
|
|
2253
2337
|
}
|
|
2254
|
-
var
|
|
2338
|
+
var tr = { bar: "_bar_njcvu_3" };
|
|
2255
2339
|
//#endregion
|
|
2256
2340
|
//#region src/components/ViewSwitcherBar/ViewSwitcherBar.tsx
|
|
2257
|
-
function
|
|
2341
|
+
function nr({ children: e, reveal: n = !0, className: r, ...i }) {
|
|
2258
2342
|
return n ? /* @__PURE__ */ t("div", {
|
|
2259
2343
|
role: "navigation",
|
|
2260
2344
|
"aria-label": "Bottom navigation",
|
|
2261
|
-
className: [
|
|
2345
|
+
className: [tr.bar, r].filter(Boolean).join(" "),
|
|
2262
2346
|
...i,
|
|
2263
2347
|
children: e
|
|
2264
2348
|
}) : null;
|
|
2265
2349
|
}
|
|
2266
|
-
var
|
|
2350
|
+
var rr = {
|
|
2267
2351
|
link: "_link_x1qyh_1",
|
|
2268
2352
|
externalIcon: "_externalIcon_x1qyh_36"
|
|
2269
2353
|
};
|
|
2270
2354
|
//#endregion
|
|
2271
2355
|
//#region src/components/Link/Link.tsx
|
|
2272
|
-
function
|
|
2356
|
+
function ir({ external: e = !1, children: r, className: i, target: a, rel: o, ...s }) {
|
|
2273
2357
|
let c = e || a === "_blank";
|
|
2274
2358
|
return /* @__PURE__ */ n("a", {
|
|
2275
|
-
className: [
|
|
2359
|
+
className: [rr.link, i].filter(Boolean).join(" "),
|
|
2276
2360
|
target: c ? "_blank" : a,
|
|
2277
2361
|
rel: c ? "noopener noreferrer" : o,
|
|
2278
2362
|
...s,
|
|
2279
2363
|
children: [r, c && /* @__PURE__ */ t("span", {
|
|
2280
|
-
className:
|
|
2364
|
+
className: rr.externalIcon,
|
|
2281
2365
|
"aria-label": "(opens in new tab)",
|
|
2282
2366
|
children: "↗"
|
|
2283
2367
|
})]
|
|
2284
2368
|
});
|
|
2285
2369
|
}
|
|
2286
|
-
var
|
|
2370
|
+
var ar = {
|
|
2287
2371
|
group: "_group_1fa3l_3",
|
|
2288
2372
|
item: "_item_1fa3l_18",
|
|
2289
2373
|
iconOnly: "_iconOnly_1fa3l_48",
|
|
2290
2374
|
active: "_active_1fa3l_53",
|
|
2291
2375
|
itemIcon: "_itemIcon_1fa3l_86",
|
|
2292
2376
|
itemLabel: "_itemLabel_1fa3l_92"
|
|
2293
|
-
},
|
|
2294
|
-
function
|
|
2295
|
-
let e = c(
|
|
2377
|
+
}, or = a(null);
|
|
2378
|
+
function sr() {
|
|
2379
|
+
let e = c(or);
|
|
2296
2380
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
2297
2381
|
return e;
|
|
2298
2382
|
}
|
|
2299
|
-
function
|
|
2383
|
+
function cr({ value: e, onValueChange: n, "aria-label": r = "Options", children: i, className: a, ...o }) {
|
|
2300
2384
|
let s = f(null);
|
|
2301
2385
|
function c(e) {
|
|
2302
2386
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2309,7 +2393,7 @@ function ur({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2309
2393
|
else return;
|
|
2310
2394
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2311
2395
|
}
|
|
2312
|
-
return /* @__PURE__ */ t(
|
|
2396
|
+
return /* @__PURE__ */ t(or.Provider, {
|
|
2313
2397
|
value: {
|
|
2314
2398
|
value: e,
|
|
2315
2399
|
onValueChange: n
|
|
@@ -2319,7 +2403,7 @@ function ur({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2319
2403
|
role: "radiogroup",
|
|
2320
2404
|
"aria-label": r,
|
|
2321
2405
|
onKeyDown: c,
|
|
2322
|
-
className: [
|
|
2406
|
+
className: [ar.group, a].filter(Boolean).join(" "),
|
|
2323
2407
|
...o,
|
|
2324
2408
|
children: i
|
|
2325
2409
|
})
|
|
@@ -2327,8 +2411,8 @@ function ur({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2327
2411
|
}
|
|
2328
2412
|
//#endregion
|
|
2329
2413
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
2330
|
-
function
|
|
2331
|
-
let { value: c, onValueChange: l } =
|
|
2414
|
+
function lr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
2415
|
+
let { value: c, onValueChange: l } = sr(), u = c === e, d = i && !r;
|
|
2332
2416
|
return /* @__PURE__ */ n("button", {
|
|
2333
2417
|
type: "button",
|
|
2334
2418
|
role: "radio",
|
|
@@ -2337,28 +2421,28 @@ function dr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2337
2421
|
disabled: a,
|
|
2338
2422
|
onClick: () => l(e),
|
|
2339
2423
|
className: [
|
|
2340
|
-
|
|
2341
|
-
u ?
|
|
2342
|
-
d ?
|
|
2424
|
+
ar.item,
|
|
2425
|
+
u ? ar.active : null,
|
|
2426
|
+
d ? ar.iconOnly : null,
|
|
2343
2427
|
o
|
|
2344
2428
|
].filter(Boolean).join(" "),
|
|
2345
2429
|
...s,
|
|
2346
2430
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2347
|
-
className:
|
|
2348
|
-
children: /* @__PURE__ */ t(
|
|
2431
|
+
className: ar.itemIcon,
|
|
2432
|
+
children: /* @__PURE__ */ t(L, {
|
|
2349
2433
|
icon: i,
|
|
2350
2434
|
size: "md",
|
|
2351
2435
|
"aria-hidden": !0
|
|
2352
2436
|
})
|
|
2353
2437
|
}), r && /* @__PURE__ */ t("span", {
|
|
2354
|
-
className:
|
|
2438
|
+
className: ar.itemLabel,
|
|
2355
2439
|
children: r
|
|
2356
2440
|
})]
|
|
2357
2441
|
});
|
|
2358
2442
|
}
|
|
2359
2443
|
//#endregion
|
|
2360
2444
|
//#region src/components/Box/Box.tsx
|
|
2361
|
-
function
|
|
2445
|
+
function ur({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i = "start", className: a, style: o, children: s, ...c }) {
|
|
2362
2446
|
let l = e === "horizontal" ? "center" : "stretch";
|
|
2363
2447
|
return /* @__PURE__ */ t("div", {
|
|
2364
2448
|
className: a,
|
|
@@ -2374,13 +2458,13 @@ function fr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i
|
|
|
2374
2458
|
children: s
|
|
2375
2459
|
});
|
|
2376
2460
|
}
|
|
2377
|
-
var
|
|
2461
|
+
var dr = {
|
|
2378
2462
|
wrapBox: "_wrapBox_1ik0x_1",
|
|
2379
2463
|
reverse: "_reverse_1ik0x_10"
|
|
2380
2464
|
};
|
|
2381
2465
|
//#endregion
|
|
2382
2466
|
//#region src/components/WrapBox/WrapBox.tsx
|
|
2383
|
-
function
|
|
2467
|
+
function fr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align: i = "center", wrapReverse: a = !1, children: o, className: s, style: c, ...l }) {
|
|
2384
2468
|
let u = typeof e == "number" ? `${e}px` : e, d = n == null ? u : typeof n == "number" ? `${n}px` : n, f = {
|
|
2385
2469
|
"--wrapbox-gap": u,
|
|
2386
2470
|
"--wrapbox-row-gap": d,
|
|
@@ -2390,8 +2474,8 @@ function mr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2390
2474
|
};
|
|
2391
2475
|
return /* @__PURE__ */ t("div", {
|
|
2392
2476
|
className: [
|
|
2393
|
-
|
|
2394
|
-
a ?
|
|
2477
|
+
dr.wrapBox,
|
|
2478
|
+
a ? dr.reverse : null,
|
|
2395
2479
|
s
|
|
2396
2480
|
].filter(Boolean).join(" "),
|
|
2397
2481
|
style: f,
|
|
@@ -2399,7 +2483,7 @@ function mr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2399
2483
|
children: o
|
|
2400
2484
|
});
|
|
2401
2485
|
}
|
|
2402
|
-
var
|
|
2486
|
+
var pr = {
|
|
2403
2487
|
chip: "_chip_e26qc_3",
|
|
2404
2488
|
selectable: "_selectable_e26qc_31",
|
|
2405
2489
|
selected: "_selected_e26qc_55",
|
|
@@ -2410,37 +2494,37 @@ var hr = {
|
|
|
2410
2494
|
};
|
|
2411
2495
|
//#endregion
|
|
2412
2496
|
//#region src/components/Chip/Chip.tsx
|
|
2413
|
-
function
|
|
2497
|
+
function mr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s = !1, onToggle: c, disabled: l = !1, className: u, ...d }) {
|
|
2414
2498
|
let f = o && !a, p = [
|
|
2415
|
-
|
|
2416
|
-
s ?
|
|
2417
|
-
l ?
|
|
2418
|
-
f ?
|
|
2499
|
+
pr.chip,
|
|
2500
|
+
s ? pr.selected : null,
|
|
2501
|
+
l ? pr.disabled : null,
|
|
2502
|
+
f ? pr.selectable : null,
|
|
2419
2503
|
u
|
|
2420
2504
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2421
2505
|
i && /* @__PURE__ */ t("span", {
|
|
2422
|
-
className:
|
|
2423
|
-
children: /* @__PURE__ */ t(
|
|
2506
|
+
className: pr.icon,
|
|
2507
|
+
children: /* @__PURE__ */ t(L, {
|
|
2424
2508
|
icon: i,
|
|
2425
2509
|
size: "sm",
|
|
2426
2510
|
"aria-hidden": !0
|
|
2427
2511
|
})
|
|
2428
2512
|
}),
|
|
2429
2513
|
/* @__PURE__ */ t("span", {
|
|
2430
|
-
className:
|
|
2514
|
+
className: pr.label,
|
|
2431
2515
|
children: r
|
|
2432
2516
|
}),
|
|
2433
2517
|
a && /* @__PURE__ */ t("button", {
|
|
2434
2518
|
type: "button",
|
|
2435
|
-
className:
|
|
2519
|
+
className: pr.remove,
|
|
2436
2520
|
"aria-label": `Remove ${r}`,
|
|
2437
2521
|
disabled: l,
|
|
2438
2522
|
onClick: (e) => {
|
|
2439
2523
|
e.stopPropagation(), a();
|
|
2440
2524
|
},
|
|
2441
2525
|
tabIndex: l ? -1 : 0,
|
|
2442
|
-
children: /* @__PURE__ */ t(
|
|
2443
|
-
icon:
|
|
2526
|
+
children: /* @__PURE__ */ t(L, {
|
|
2527
|
+
icon: Pe,
|
|
2444
2528
|
size: "sm",
|
|
2445
2529
|
"aria-hidden": !0
|
|
2446
2530
|
})
|
|
@@ -2464,30 +2548,30 @@ function gr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2464
2548
|
}
|
|
2465
2549
|
//#endregion
|
|
2466
2550
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2467
|
-
var
|
|
2468
|
-
backdrop:
|
|
2551
|
+
var hr = "_backdrop_zvuhh_3", gr = "_dialog_zvuhh_26", _r = "_header_zvuhh_59", vr = "_title_zvuhh_67", yr = "_closeBtn_zvuhh_74", br = "_searchRow_zvuhh_112", xr = "_searchIcon_zvuhh_124", Sr = "_searchInput_zvuhh_132", Cr = "_searchClear_zvuhh_151", wr = "_body_zvuhh_174", Tr = "_empty_zvuhh_182", Er = "_section_zvuhh_193", Dr = "_sectionTitle_zvuhh_199", Or = "_list_zvuhh_209", kr = "_row_zvuhh_225", Ar = "_keys_zvuhh_240", jr = "_keyCap_zvuhh_247", Mr = "_plus_zvuhh_277", Nr = "_description_zvuhh_284", q = {
|
|
2552
|
+
backdrop: hr,
|
|
2469
2553
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2470
|
-
dialog:
|
|
2554
|
+
dialog: gr,
|
|
2471
2555
|
"dialog-in": "_dialog-in_zvuhh_1",
|
|
2472
|
-
header:
|
|
2473
|
-
title:
|
|
2474
|
-
closeBtn:
|
|
2475
|
-
searchRow:
|
|
2476
|
-
searchIcon:
|
|
2477
|
-
searchInput:
|
|
2478
|
-
searchClear:
|
|
2479
|
-
body:
|
|
2480
|
-
empty:
|
|
2481
|
-
section:
|
|
2482
|
-
sectionTitle:
|
|
2483
|
-
list:
|
|
2484
|
-
row:
|
|
2485
|
-
keys:
|
|
2486
|
-
keyCap:
|
|
2487
|
-
plus:
|
|
2488
|
-
description:
|
|
2489
|
-
},
|
|
2490
|
-
function
|
|
2556
|
+
header: _r,
|
|
2557
|
+
title: vr,
|
|
2558
|
+
closeBtn: yr,
|
|
2559
|
+
searchRow: br,
|
|
2560
|
+
searchIcon: xr,
|
|
2561
|
+
searchInput: Sr,
|
|
2562
|
+
searchClear: Cr,
|
|
2563
|
+
body: wr,
|
|
2564
|
+
empty: Tr,
|
|
2565
|
+
section: Er,
|
|
2566
|
+
sectionTitle: Dr,
|
|
2567
|
+
list: Or,
|
|
2568
|
+
row: kr,
|
|
2569
|
+
keys: Ar,
|
|
2570
|
+
keyCap: jr,
|
|
2571
|
+
plus: Mr,
|
|
2572
|
+
description: Nr
|
|
2573
|
+
}, Pr = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2574
|
+
function Fr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2491
2575
|
let [o, c] = p(""), u = f(null), d = f(null), h = f(null), g = f(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2492
2576
|
l(() => {
|
|
2493
2577
|
e ? (h.current = document.activeElement, requestAnimationFrame(() => d.current?.focus())) : (c(""), h.current?.focus());
|
|
@@ -2498,7 +2582,7 @@ function Lr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2498
2582
|
return;
|
|
2499
2583
|
}
|
|
2500
2584
|
if (e.key !== "Tab") return;
|
|
2501
|
-
let t = Array.from(u.current?.querySelectorAll(
|
|
2585
|
+
let t = Array.from(u.current?.querySelectorAll(Pr) ?? []);
|
|
2502
2586
|
if (t.length === 0) return;
|
|
2503
2587
|
let n = t[0], i = t[t.length - 1];
|
|
2504
2588
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
@@ -2508,7 +2592,7 @@ function Lr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2508
2592
|
...e,
|
|
2509
2593
|
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !v || e.toLowerCase().includes(v) || t.some((e) => e.toLowerCase().includes(v)))
|
|
2510
2594
|
})).filter((e) => e.shortcuts.length > 0), b = /* @__PURE__ */ t("div", {
|
|
2511
|
-
className:
|
|
2595
|
+
className: q.backdrop,
|
|
2512
2596
|
onClick: r,
|
|
2513
2597
|
"aria-hidden": "true",
|
|
2514
2598
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -2516,36 +2600,36 @@ function Lr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2516
2600
|
role: "dialog",
|
|
2517
2601
|
"aria-modal": "true",
|
|
2518
2602
|
"aria-labelledby": g.current,
|
|
2519
|
-
className:
|
|
2603
|
+
className: q.dialog,
|
|
2520
2604
|
onKeyDown: _,
|
|
2521
2605
|
onClick: (e) => e.stopPropagation(),
|
|
2522
2606
|
children: [
|
|
2523
2607
|
/* @__PURE__ */ n("div", {
|
|
2524
|
-
className:
|
|
2608
|
+
className: q.header,
|
|
2525
2609
|
children: [/* @__PURE__ */ t("span", {
|
|
2526
2610
|
id: g.current,
|
|
2527
|
-
className:
|
|
2611
|
+
className: q.title,
|
|
2528
2612
|
children: i
|
|
2529
2613
|
}), /* @__PURE__ */ t("button", {
|
|
2530
2614
|
type: "button",
|
|
2531
|
-
className:
|
|
2615
|
+
className: q.closeBtn,
|
|
2532
2616
|
"aria-label": "Close",
|
|
2533
2617
|
onClick: r,
|
|
2534
2618
|
children: "×"
|
|
2535
2619
|
})]
|
|
2536
2620
|
}),
|
|
2537
2621
|
/* @__PURE__ */ n("div", {
|
|
2538
|
-
className:
|
|
2622
|
+
className: q.searchRow,
|
|
2539
2623
|
children: [
|
|
2540
2624
|
/* @__PURE__ */ t("span", {
|
|
2541
|
-
className:
|
|
2625
|
+
className: q.searchIcon,
|
|
2542
2626
|
"aria-hidden": "true",
|
|
2543
2627
|
children: "⌕"
|
|
2544
2628
|
}),
|
|
2545
2629
|
/* @__PURE__ */ t("input", {
|
|
2546
2630
|
ref: d,
|
|
2547
2631
|
type: "search",
|
|
2548
|
-
className:
|
|
2632
|
+
className: q.searchInput,
|
|
2549
2633
|
placeholder: "Search shortcuts…",
|
|
2550
2634
|
value: o,
|
|
2551
2635
|
onChange: (e) => c(e.target.value),
|
|
@@ -2553,7 +2637,7 @@ function Lr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2553
2637
|
}),
|
|
2554
2638
|
o && /* @__PURE__ */ t("button", {
|
|
2555
2639
|
type: "button",
|
|
2556
|
-
className:
|
|
2640
|
+
className: q.searchClear,
|
|
2557
2641
|
"aria-label": "Clear search",
|
|
2558
2642
|
onClick: () => {
|
|
2559
2643
|
c(""), d.current?.focus();
|
|
@@ -2563,38 +2647,38 @@ function Lr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2563
2647
|
]
|
|
2564
2648
|
}),
|
|
2565
2649
|
/* @__PURE__ */ t("div", {
|
|
2566
|
-
className:
|
|
2650
|
+
className: q.body,
|
|
2567
2651
|
role: "list",
|
|
2568
2652
|
children: y.length === 0 ? /* @__PURE__ */ n("p", {
|
|
2569
|
-
className:
|
|
2653
|
+
className: q.empty,
|
|
2570
2654
|
children: [
|
|
2571
2655
|
"No shortcuts match \"",
|
|
2572
2656
|
o,
|
|
2573
2657
|
"\""
|
|
2574
2658
|
]
|
|
2575
2659
|
}) : y.map((e) => /* @__PURE__ */ n("section", {
|
|
2576
|
-
className:
|
|
2660
|
+
className: q.section,
|
|
2577
2661
|
children: [/* @__PURE__ */ t("h3", {
|
|
2578
|
-
className:
|
|
2662
|
+
className: q.sectionTitle,
|
|
2579
2663
|
children: e.title
|
|
2580
2664
|
}), /* @__PURE__ */ t("ul", {
|
|
2581
|
-
className:
|
|
2665
|
+
className: q.list,
|
|
2582
2666
|
children: e.shortcuts.map((e) => /* @__PURE__ */ n("li", {
|
|
2583
|
-
className:
|
|
2667
|
+
className: q.row,
|
|
2584
2668
|
role: "listitem",
|
|
2585
2669
|
children: [/* @__PURE__ */ t("span", {
|
|
2586
|
-
className:
|
|
2670
|
+
className: q.keys,
|
|
2587
2671
|
"aria-label": e.keys.join(" + "),
|
|
2588
2672
|
children: e.keys.map((r, i) => /* @__PURE__ */ n("span", {
|
|
2589
|
-
className:
|
|
2673
|
+
className: q.keyCap,
|
|
2590
2674
|
children: [/* @__PURE__ */ t("kbd", { children: r }), i < e.keys.length - 1 && /* @__PURE__ */ t("span", {
|
|
2591
|
-
className:
|
|
2675
|
+
className: q.plus,
|
|
2592
2676
|
"aria-hidden": "true",
|
|
2593
2677
|
children: "+"
|
|
2594
2678
|
})]
|
|
2595
2679
|
}, i))
|
|
2596
2680
|
}), /* @__PURE__ */ t("span", {
|
|
2597
|
-
className:
|
|
2681
|
+
className: q.description,
|
|
2598
2682
|
children: e.description
|
|
2599
2683
|
})]
|
|
2600
2684
|
}, e.description))
|
|
@@ -2606,7 +2690,7 @@ function Lr({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2606
2690
|
});
|
|
2607
2691
|
return typeof document > "u" ? b : m(b, document.body);
|
|
2608
2692
|
}
|
|
2609
|
-
var
|
|
2693
|
+
var Ir = {
|
|
2610
2694
|
sidebar: "_sidebar_kmj4b_3",
|
|
2611
2695
|
list: "_list_kmj4b_17",
|
|
2612
2696
|
item: "_item_kmj4b_28",
|
|
@@ -2616,13 +2700,13 @@ var Rr = {
|
|
|
2616
2700
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2617
2701
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2618
2702
|
count: "_count_kmj4b_136"
|
|
2619
|
-
},
|
|
2620
|
-
function
|
|
2621
|
-
let e = c(
|
|
2703
|
+
}, Lr = a(null);
|
|
2704
|
+
function Rr() {
|
|
2705
|
+
let e = c(Lr);
|
|
2622
2706
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2623
2707
|
return e;
|
|
2624
2708
|
}
|
|
2625
|
-
function
|
|
2709
|
+
function zr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2626
2710
|
let s = f(null);
|
|
2627
2711
|
function c(e) {
|
|
2628
2712
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2635,20 +2719,20 @@ function Vr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2635
2719
|
else return;
|
|
2636
2720
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2637
2721
|
}
|
|
2638
|
-
return /* @__PURE__ */ t(
|
|
2722
|
+
return /* @__PURE__ */ t(Lr.Provider, {
|
|
2639
2723
|
value: {
|
|
2640
2724
|
value: e,
|
|
2641
2725
|
onValueChange: n
|
|
2642
2726
|
},
|
|
2643
2727
|
children: /* @__PURE__ */ t("nav", {
|
|
2644
|
-
className: [
|
|
2728
|
+
className: [Ir.sidebar, a].filter(Boolean).join(" "),
|
|
2645
2729
|
onKeyDown: c,
|
|
2646
2730
|
...o,
|
|
2647
2731
|
children: /* @__PURE__ */ t("ul", {
|
|
2648
2732
|
ref: s,
|
|
2649
2733
|
role: "radiogroup",
|
|
2650
2734
|
"aria-label": r,
|
|
2651
|
-
className:
|
|
2735
|
+
className: Ir.list,
|
|
2652
2736
|
children: i
|
|
2653
2737
|
})
|
|
2654
2738
|
})
|
|
@@ -2656,10 +2740,10 @@ function Vr({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2656
2740
|
}
|
|
2657
2741
|
//#endregion
|
|
2658
2742
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2659
|
-
function
|
|
2660
|
-
let { value: u, onValueChange: d } =
|
|
2743
|
+
function Br({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2744
|
+
let { value: u, onValueChange: d } = Rr(), f = u === e, p = o ?? a ?? null;
|
|
2661
2745
|
return /* @__PURE__ */ t("li", {
|
|
2662
|
-
className:
|
|
2746
|
+
className: Ir.item,
|
|
2663
2747
|
children: /* @__PURE__ */ n("button", {
|
|
2664
2748
|
type: "button",
|
|
2665
2749
|
role: "radio",
|
|
@@ -2668,28 +2752,28 @@ function Hr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2668
2752
|
disabled: s,
|
|
2669
2753
|
onClick: () => d(e),
|
|
2670
2754
|
className: [
|
|
2671
|
-
|
|
2672
|
-
f ?
|
|
2755
|
+
Ir.itemBtn,
|
|
2756
|
+
f ? Ir.active : null,
|
|
2673
2757
|
c
|
|
2674
2758
|
].filter(Boolean).join(" "),
|
|
2675
2759
|
...l,
|
|
2676
2760
|
children: [
|
|
2677
2761
|
i && /* @__PURE__ */ t("span", {
|
|
2678
|
-
className:
|
|
2679
|
-
children: /* @__PURE__ */ t(
|
|
2762
|
+
className: Ir.itemIcon,
|
|
2763
|
+
children: /* @__PURE__ */ t(L, {
|
|
2680
2764
|
icon: i,
|
|
2681
2765
|
size: "md",
|
|
2682
2766
|
"aria-hidden": !0
|
|
2683
2767
|
})
|
|
2684
2768
|
}),
|
|
2685
2769
|
/* @__PURE__ */ t("span", {
|
|
2686
|
-
className:
|
|
2770
|
+
className: Ir.itemLabel,
|
|
2687
2771
|
children: r
|
|
2688
2772
|
}),
|
|
2689
2773
|
p != null && /* @__PURE__ */ t("span", {
|
|
2690
|
-
className:
|
|
2774
|
+
className: Ir.itemSuffix,
|
|
2691
2775
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2692
|
-
className:
|
|
2776
|
+
className: Ir.count,
|
|
2693
2777
|
children: p > 99 ? "99+" : p
|
|
2694
2778
|
}) : p
|
|
2695
2779
|
})
|
|
@@ -2699,7 +2783,7 @@ function Hr({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2699
2783
|
}
|
|
2700
2784
|
//#endregion
|
|
2701
2785
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2702
|
-
function
|
|
2786
|
+
function Vr({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2703
2787
|
let o = f(null), [s, c] = p({
|
|
2704
2788
|
activeBreakpoint: null,
|
|
2705
2789
|
width: 0
|
|
@@ -2729,7 +2813,7 @@ function Ur({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2729
2813
|
children: n(s)
|
|
2730
2814
|
});
|
|
2731
2815
|
}
|
|
2732
|
-
var
|
|
2816
|
+
var Hr = {
|
|
2733
2817
|
row: "_row_1ba2f_3",
|
|
2734
2818
|
title: "_title_1ba2f_48",
|
|
2735
2819
|
leading: "_leading_1ba2f_59",
|
|
@@ -2740,31 +2824,31 @@ var Wr = {
|
|
|
2740
2824
|
};
|
|
2741
2825
|
//#endregion
|
|
2742
2826
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2743
|
-
function
|
|
2827
|
+
function Ur({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2744
2828
|
return /* @__PURE__ */ n("button", {
|
|
2745
2829
|
className: [
|
|
2746
|
-
|
|
2747
|
-
|
|
2830
|
+
Hr.row,
|
|
2831
|
+
Hr[r],
|
|
2748
2832
|
o
|
|
2749
2833
|
].filter(Boolean).join(" "),
|
|
2750
2834
|
...s,
|
|
2751
2835
|
children: [
|
|
2752
2836
|
i && /* @__PURE__ */ t("span", {
|
|
2753
|
-
className:
|
|
2837
|
+
className: Hr.leading,
|
|
2754
2838
|
children: i
|
|
2755
2839
|
}),
|
|
2756
2840
|
/* @__PURE__ */ t("span", {
|
|
2757
|
-
className:
|
|
2841
|
+
className: Hr.title,
|
|
2758
2842
|
children: e
|
|
2759
2843
|
}),
|
|
2760
2844
|
a && /* @__PURE__ */ t("span", {
|
|
2761
|
-
className:
|
|
2845
|
+
className: Hr.trailing,
|
|
2762
2846
|
children: a
|
|
2763
2847
|
})
|
|
2764
2848
|
]
|
|
2765
2849
|
});
|
|
2766
2850
|
}
|
|
2767
|
-
var
|
|
2851
|
+
var Wr = {
|
|
2768
2852
|
container: "_container_4kjnf_3",
|
|
2769
2853
|
primary: "_primary_4kjnf_14",
|
|
2770
2854
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -2778,7 +2862,7 @@ var Kr = {
|
|
|
2778
2862
|
};
|
|
2779
2863
|
//#endregion
|
|
2780
2864
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
2781
|
-
function
|
|
2865
|
+
function Gr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: c = !1, onClick: u, className: d, ...h }) {
|
|
2782
2866
|
let [g, _] = p(!1), [v, y] = p({}), b = f(null), x = f(null), S = f(null), C = s(() => _(!1), []), w = s(() => {
|
|
2783
2867
|
if (!x.current || !S.current) return;
|
|
2784
2868
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -2808,15 +2892,15 @@ function qr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2808
2892
|
let T = (e) => {
|
|
2809
2893
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
2810
2894
|
}, E = [
|
|
2811
|
-
|
|
2812
|
-
|
|
2895
|
+
Wr.container,
|
|
2896
|
+
Wr[i],
|
|
2813
2897
|
d
|
|
2814
2898
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
2815
2899
|
ref: S,
|
|
2816
2900
|
role: "dialog",
|
|
2817
2901
|
"aria-label": o,
|
|
2818
2902
|
tabIndex: -1,
|
|
2819
|
-
className: [
|
|
2903
|
+
className: [Wr.dropdown, g ? Wr.dropdownVisible : null].filter(Boolean).join(" "),
|
|
2820
2904
|
style: Object.keys(v).length ? {
|
|
2821
2905
|
...v,
|
|
2822
2906
|
position: "fixed"
|
|
@@ -2835,26 +2919,26 @@ function qr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2835
2919
|
className: E,
|
|
2836
2920
|
children: [
|
|
2837
2921
|
/* @__PURE__ */ t("button", {
|
|
2838
|
-
className:
|
|
2922
|
+
className: Wr.primary,
|
|
2839
2923
|
disabled: c,
|
|
2840
2924
|
onClick: u,
|
|
2841
2925
|
...h,
|
|
2842
2926
|
children: r
|
|
2843
2927
|
}),
|
|
2844
2928
|
/* @__PURE__ */ t("span", {
|
|
2845
|
-
className:
|
|
2929
|
+
className: Wr.separator,
|
|
2846
2930
|
"aria-hidden": "true"
|
|
2847
2931
|
}),
|
|
2848
2932
|
/* @__PURE__ */ t("button", {
|
|
2849
2933
|
ref: x,
|
|
2850
|
-
className:
|
|
2934
|
+
className: Wr.toggle,
|
|
2851
2935
|
disabled: c,
|
|
2852
2936
|
"aria-label": o,
|
|
2853
2937
|
"aria-haspopup": "dialog",
|
|
2854
2938
|
"aria-expanded": g,
|
|
2855
2939
|
onClick: () => _((e) => !e),
|
|
2856
2940
|
children: /* @__PURE__ */ t("svg", {
|
|
2857
|
-
className:
|
|
2941
|
+
className: Wr.chevron,
|
|
2858
2942
|
width: "16",
|
|
2859
2943
|
height: "16",
|
|
2860
2944
|
viewBox: "0 0 16 16",
|
|
@@ -2873,56 +2957,56 @@ function qr({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
2873
2957
|
]
|
|
2874
2958
|
}), g && (typeof document < "u" ? m(D, document.body) : D)] });
|
|
2875
2959
|
}
|
|
2876
|
-
var
|
|
2960
|
+
var Kr = {
|
|
2877
2961
|
toolbar: "_toolbar_1avgl_2",
|
|
2878
2962
|
spacer: "_spacer_1avgl_20"
|
|
2879
2963
|
};
|
|
2880
2964
|
//#endregion
|
|
2881
2965
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
2882
|
-
function
|
|
2966
|
+
function qr({ children: e, className: n, ...r }) {
|
|
2883
2967
|
return /* @__PURE__ */ t("div", {
|
|
2884
|
-
className: [
|
|
2968
|
+
className: [Kr.toolbar, n].filter(Boolean).join(" "),
|
|
2885
2969
|
...r,
|
|
2886
2970
|
children: e
|
|
2887
2971
|
});
|
|
2888
2972
|
}
|
|
2889
2973
|
//#endregion
|
|
2890
2974
|
//#region src/components/Toolbar/Spacer.tsx
|
|
2891
|
-
function
|
|
2975
|
+
function Jr({ className: e, ...n }) {
|
|
2892
2976
|
return /* @__PURE__ */ t("div", {
|
|
2893
2977
|
"aria-hidden": "true",
|
|
2894
|
-
className: [
|
|
2978
|
+
className: [Kr.spacer, e].filter(Boolean).join(" "),
|
|
2895
2979
|
...n
|
|
2896
2980
|
});
|
|
2897
2981
|
}
|
|
2898
|
-
var
|
|
2982
|
+
var Yr = {
|
|
2899
2983
|
linked: "_linked_1tser_3",
|
|
2900
2984
|
vertical: "_vertical_1tser_9"
|
|
2901
2985
|
};
|
|
2902
2986
|
//#endregion
|
|
2903
2987
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
2904
|
-
function
|
|
2988
|
+
function Xr({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
2905
2989
|
return /* @__PURE__ */ t("div", {
|
|
2906
2990
|
className: [
|
|
2907
|
-
|
|
2908
|
-
n ?
|
|
2991
|
+
Yr.linked,
|
|
2992
|
+
n ? Yr.vertical : null,
|
|
2909
2993
|
r
|
|
2910
2994
|
].filter(Boolean).join(" "),
|
|
2911
2995
|
...i,
|
|
2912
2996
|
children: e
|
|
2913
2997
|
});
|
|
2914
2998
|
}
|
|
2915
|
-
var
|
|
2999
|
+
var Zr = { frame: "_frame_1bq7b_2" };
|
|
2916
3000
|
//#endregion
|
|
2917
3001
|
//#region src/components/Frame/Frame.tsx
|
|
2918
|
-
function
|
|
3002
|
+
function Qr({ children: e, className: n, ...r }) {
|
|
2919
3003
|
return /* @__PURE__ */ t("div", {
|
|
2920
|
-
className: [
|
|
3004
|
+
className: [Zr.frame, n].filter(Boolean).join(" "),
|
|
2921
3005
|
...r,
|
|
2922
3006
|
children: e
|
|
2923
3007
|
});
|
|
2924
3008
|
}
|
|
2925
|
-
var
|
|
3009
|
+
var J = {
|
|
2926
3010
|
expanderRow: "_expanderRow_1wh8c_3",
|
|
2927
3011
|
header: "_header_1wh8c_11",
|
|
2928
3012
|
leading: "_leading_1wh8c_55",
|
|
@@ -2940,48 +3024,48 @@ var K = {
|
|
|
2940
3024
|
};
|
|
2941
3025
|
//#endregion
|
|
2942
3026
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
2943
|
-
function
|
|
3027
|
+
function $r({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: d, className: f, ...m }) {
|
|
2944
3028
|
let h = c !== void 0, [g, _] = p(l), v = h ? c : g, y = u(), b = u(), x = () => {
|
|
2945
3029
|
let e = !v;
|
|
2946
3030
|
h || _(e), d?.(e);
|
|
2947
3031
|
}, S = r.toArray(s).filter(Boolean);
|
|
2948
3032
|
return /* @__PURE__ */ n("div", {
|
|
2949
3033
|
className: [
|
|
2950
|
-
|
|
2951
|
-
v ?
|
|
3034
|
+
J.expanderRow,
|
|
3035
|
+
v ? J.expanded : null,
|
|
2952
3036
|
f
|
|
2953
3037
|
].filter(Boolean).join(" "),
|
|
2954
3038
|
...m,
|
|
2955
3039
|
children: [/* @__PURE__ */ n("button", {
|
|
2956
3040
|
id: b,
|
|
2957
|
-
className:
|
|
3041
|
+
className: J.header,
|
|
2958
3042
|
"aria-expanded": v,
|
|
2959
3043
|
"aria-controls": y,
|
|
2960
3044
|
onClick: x,
|
|
2961
3045
|
children: [
|
|
2962
3046
|
a && /* @__PURE__ */ t("span", {
|
|
2963
|
-
className:
|
|
3047
|
+
className: J.leading,
|
|
2964
3048
|
children: a
|
|
2965
3049
|
}),
|
|
2966
3050
|
/* @__PURE__ */ n("span", {
|
|
2967
|
-
className:
|
|
3051
|
+
className: J.content,
|
|
2968
3052
|
children: [/* @__PURE__ */ t("span", {
|
|
2969
|
-
className:
|
|
3053
|
+
className: J.title,
|
|
2970
3054
|
children: e
|
|
2971
3055
|
}), i && /* @__PURE__ */ t("span", {
|
|
2972
|
-
className:
|
|
3056
|
+
className: J.subtitle,
|
|
2973
3057
|
children: i
|
|
2974
3058
|
})]
|
|
2975
3059
|
}),
|
|
2976
3060
|
o && /* @__PURE__ */ t("span", {
|
|
2977
|
-
className:
|
|
3061
|
+
className: J.trailing,
|
|
2978
3062
|
children: o
|
|
2979
3063
|
}),
|
|
2980
3064
|
/* @__PURE__ */ t("span", {
|
|
2981
|
-
className: [
|
|
3065
|
+
className: [J.chevronWrap, v ? J.chevronOpen : null].filter(Boolean).join(" "),
|
|
2982
3066
|
"aria-hidden": "true",
|
|
2983
3067
|
children: /* @__PURE__ */ t("svg", {
|
|
2984
|
-
className:
|
|
3068
|
+
className: J.chevron,
|
|
2985
3069
|
width: "16",
|
|
2986
3070
|
height: "16",
|
|
2987
3071
|
viewBox: "0 0 16 16",
|
|
@@ -3001,18 +3085,18 @@ function ti({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
3001
3085
|
id: y,
|
|
3002
3086
|
role: "region",
|
|
3003
3087
|
"aria-labelledby": b,
|
|
3004
|
-
className:
|
|
3088
|
+
className: J.panel,
|
|
3005
3089
|
children: /* @__PURE__ */ t("div", {
|
|
3006
|
-
className:
|
|
3090
|
+
className: J.panelInner,
|
|
3007
3091
|
children: S.map((e, r) => /* @__PURE__ */ n("div", {
|
|
3008
|
-
className:
|
|
3009
|
-
children: [/* @__PURE__ */ t(
|
|
3092
|
+
className: J.childItem,
|
|
3093
|
+
children: [/* @__PURE__ */ t(ie, { "aria-hidden": "true" }), e]
|
|
3010
3094
|
}, r))
|
|
3011
3095
|
})
|
|
3012
3096
|
})]
|
|
3013
3097
|
});
|
|
3014
3098
|
}
|
|
3015
|
-
var
|
|
3099
|
+
var ei = {
|
|
3016
3100
|
switcher: "_switcher_2tknm_3",
|
|
3017
3101
|
item: "_item_2tknm_10",
|
|
3018
3102
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -3022,13 +3106,13 @@ var ni = {
|
|
|
3022
3106
|
active: "_active_2tknm_68",
|
|
3023
3107
|
flat: "_flat_2tknm_121",
|
|
3024
3108
|
round: "_round_2tknm_169"
|
|
3025
|
-
},
|
|
3026
|
-
function
|
|
3027
|
-
let e = c(
|
|
3109
|
+
}, ti = a(null);
|
|
3110
|
+
function ni() {
|
|
3111
|
+
let e = c(ti);
|
|
3028
3112
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
3029
3113
|
return e;
|
|
3030
3114
|
}
|
|
3031
|
-
function
|
|
3115
|
+
function ri({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
3032
3116
|
let c = f(null);
|
|
3033
3117
|
function l(e) {
|
|
3034
3118
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -3041,7 +3125,7 @@ function ai({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3041
3125
|
else return;
|
|
3042
3126
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
3043
3127
|
}
|
|
3044
|
-
return /* @__PURE__ */ t(
|
|
3128
|
+
return /* @__PURE__ */ t(ti.Provider, {
|
|
3045
3129
|
value: {
|
|
3046
3130
|
value: e,
|
|
3047
3131
|
onValueChange: n
|
|
@@ -3052,8 +3136,8 @@ function ai({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3052
3136
|
"aria-label": i,
|
|
3053
3137
|
onKeyDown: l,
|
|
3054
3138
|
className: [
|
|
3055
|
-
|
|
3056
|
-
|
|
3139
|
+
ei.switcher,
|
|
3140
|
+
ei[r],
|
|
3057
3141
|
o
|
|
3058
3142
|
].filter(Boolean).join(" "),
|
|
3059
3143
|
...s,
|
|
@@ -3063,8 +3147,8 @@ function ai({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3063
3147
|
}
|
|
3064
3148
|
//#endregion
|
|
3065
3149
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
3066
|
-
function
|
|
3067
|
-
let { value: c, onValueChange: l } =
|
|
3150
|
+
function ii({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3151
|
+
let { value: c, onValueChange: l } = ni(), u = c === e, d = i && !r;
|
|
3068
3152
|
return /* @__PURE__ */ n("button", {
|
|
3069
3153
|
type: "button",
|
|
3070
3154
|
role: "radio",
|
|
@@ -3073,26 +3157,26 @@ function oi({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3073
3157
|
disabled: a,
|
|
3074
3158
|
onClick: () => l(e),
|
|
3075
3159
|
className: [
|
|
3076
|
-
|
|
3077
|
-
u ?
|
|
3078
|
-
d ?
|
|
3160
|
+
ei.item,
|
|
3161
|
+
u ? ei.active : null,
|
|
3162
|
+
d ? ei.iconOnly : null,
|
|
3079
3163
|
o
|
|
3080
3164
|
].filter(Boolean).join(" "),
|
|
3081
3165
|
...s,
|
|
3082
3166
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3083
|
-
className:
|
|
3084
|
-
children: /* @__PURE__ */ t(
|
|
3167
|
+
className: ei.itemIcon,
|
|
3168
|
+
children: /* @__PURE__ */ t(L, {
|
|
3085
3169
|
icon: i,
|
|
3086
3170
|
size: "md",
|
|
3087
3171
|
"aria-hidden": !0
|
|
3088
3172
|
})
|
|
3089
3173
|
}), r && /* @__PURE__ */ t("span", {
|
|
3090
|
-
className:
|
|
3174
|
+
className: ei.itemLabel,
|
|
3091
3175
|
children: r
|
|
3092
3176
|
})]
|
|
3093
3177
|
});
|
|
3094
3178
|
}
|
|
3095
|
-
var
|
|
3179
|
+
var ai = {
|
|
3096
3180
|
row: "_row_jl3bc_3",
|
|
3097
3181
|
disabled: "_disabled_jl3bc_41",
|
|
3098
3182
|
leading: "_leading_jl3bc_49",
|
|
@@ -3105,7 +3189,7 @@ var si = {
|
|
|
3105
3189
|
};
|
|
3106
3190
|
//#endregion
|
|
3107
3191
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3108
|
-
function
|
|
3192
|
+
function oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...f }) {
|
|
3109
3193
|
let m = a !== void 0, [h, g] = p(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3110
3194
|
let t = !_;
|
|
3111
3195
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3116,37 +3200,37 @@ function ci({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3116
3200
|
"aria-labelledby": v,
|
|
3117
3201
|
disabled: c,
|
|
3118
3202
|
className: [
|
|
3119
|
-
|
|
3120
|
-
c ?
|
|
3203
|
+
ai.row,
|
|
3204
|
+
c ? ai.disabled : null,
|
|
3121
3205
|
l
|
|
3122
3206
|
].filter(Boolean).join(" "),
|
|
3123
3207
|
onClick: y,
|
|
3124
3208
|
...f,
|
|
3125
3209
|
children: [
|
|
3126
3210
|
i && /* @__PURE__ */ t("span", {
|
|
3127
|
-
className:
|
|
3211
|
+
className: ai.leading,
|
|
3128
3212
|
children: i
|
|
3129
3213
|
}),
|
|
3130
3214
|
/* @__PURE__ */ n("span", {
|
|
3131
|
-
className:
|
|
3215
|
+
className: ai.content,
|
|
3132
3216
|
id: v,
|
|
3133
3217
|
children: [/* @__PURE__ */ t("span", {
|
|
3134
|
-
className:
|
|
3218
|
+
className: ai.title,
|
|
3135
3219
|
children: e
|
|
3136
3220
|
}), r && /* @__PURE__ */ t("span", {
|
|
3137
|
-
className:
|
|
3221
|
+
className: ai.subtitle,
|
|
3138
3222
|
children: r
|
|
3139
3223
|
})]
|
|
3140
3224
|
}),
|
|
3141
3225
|
/* @__PURE__ */ t("span", {
|
|
3142
|
-
className:
|
|
3226
|
+
className: ai.switchTrack,
|
|
3143
3227
|
"aria-hidden": "true",
|
|
3144
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3228
|
+
children: /* @__PURE__ */ t("span", { className: [ai.switchThumb, _ ? ai.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3145
3229
|
})
|
|
3146
3230
|
]
|
|
3147
3231
|
});
|
|
3148
3232
|
}
|
|
3149
|
-
var
|
|
3233
|
+
var Y = {
|
|
3150
3234
|
row: "_row_1dije_3",
|
|
3151
3235
|
disabled: "_disabled_1dije_41",
|
|
3152
3236
|
checkboxWrap: "_checkboxWrap_1dije_49",
|
|
@@ -3160,7 +3244,7 @@ var q = {
|
|
|
3160
3244
|
};
|
|
3161
3245
|
//#endregion
|
|
3162
3246
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3163
|
-
function
|
|
3247
|
+
function si({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: d, ...f }) {
|
|
3164
3248
|
let m = a !== void 0, [h, g] = p(o), _ = m ? a : h, v = u(), y = (e) => {
|
|
3165
3249
|
let t = !_;
|
|
3166
3250
|
m || g(t), s?.(t), d?.(e);
|
|
@@ -3171,20 +3255,20 @@ function li({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3171
3255
|
"aria-labelledby": v,
|
|
3172
3256
|
disabled: c,
|
|
3173
3257
|
className: [
|
|
3174
|
-
|
|
3175
|
-
c ?
|
|
3258
|
+
Y.row,
|
|
3259
|
+
c ? Y.disabled : null,
|
|
3176
3260
|
l
|
|
3177
3261
|
].filter(Boolean).join(" "),
|
|
3178
3262
|
onClick: y,
|
|
3179
3263
|
...f,
|
|
3180
3264
|
children: [
|
|
3181
3265
|
/* @__PURE__ */ t("span", {
|
|
3182
|
-
className:
|
|
3266
|
+
className: Y.checkboxWrap,
|
|
3183
3267
|
"aria-hidden": "true",
|
|
3184
3268
|
children: /* @__PURE__ */ t("span", {
|
|
3185
|
-
className: [
|
|
3269
|
+
className: [Y.checkbox, _ ? Y.checkboxChecked : null].filter(Boolean).join(" "),
|
|
3186
3270
|
children: _ && /* @__PURE__ */ t("svg", {
|
|
3187
|
-
className:
|
|
3271
|
+
className: Y.checkmark,
|
|
3188
3272
|
width: "12",
|
|
3189
3273
|
height: "12",
|
|
3190
3274
|
viewBox: "0 0 12 12",
|
|
@@ -3201,17 +3285,17 @@ function li({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3201
3285
|
})
|
|
3202
3286
|
}),
|
|
3203
3287
|
i && /* @__PURE__ */ t("span", {
|
|
3204
|
-
className:
|
|
3288
|
+
className: Y.leading,
|
|
3205
3289
|
children: i
|
|
3206
3290
|
}),
|
|
3207
3291
|
/* @__PURE__ */ n("span", {
|
|
3208
|
-
className:
|
|
3292
|
+
className: Y.content,
|
|
3209
3293
|
id: v,
|
|
3210
3294
|
children: [/* @__PURE__ */ t("span", {
|
|
3211
|
-
className:
|
|
3295
|
+
className: Y.title,
|
|
3212
3296
|
children: e
|
|
3213
3297
|
}), r && /* @__PURE__ */ t("span", {
|
|
3214
|
-
className:
|
|
3298
|
+
className: Y.subtitle,
|
|
3215
3299
|
children: r
|
|
3216
3300
|
})]
|
|
3217
3301
|
})
|
|
@@ -3220,35 +3304,35 @@ function li({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3220
3304
|
}
|
|
3221
3305
|
//#endregion
|
|
3222
3306
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3223
|
-
var
|
|
3224
|
-
row:
|
|
3225
|
-
disabled:
|
|
3226
|
-
leading:
|
|
3227
|
-
content:
|
|
3228
|
-
title:
|
|
3229
|
-
subtitle:
|
|
3230
|
-
comboWrap:
|
|
3231
|
-
trigger:
|
|
3232
|
-
triggerOpen:
|
|
3233
|
-
triggerLabel:
|
|
3234
|
-
placeholder:
|
|
3235
|
-
chevron:
|
|
3236
|
-
chevronOpen:
|
|
3237
|
-
list:
|
|
3307
|
+
var ci = "_row_46mn8_3", li = "_disabled_46mn8_16", ui = "_leading_46mn8_23", di = "_content_46mn8_32", fi = "_title_46mn8_40", pi = "_subtitle_46mn8_51", mi = "_comboWrap_46mn8_65", hi = "_trigger_46mn8_73", gi = "_triggerOpen_46mn8_126", _i = "_triggerLabel_46mn8_136", vi = "_placeholder_46mn8_144", yi = "_chevron_46mn8_150", bi = "_chevronOpen_46mn8_157", xi = "_list_46mn8_163", Si = "_listDown_46mn8_192", Ci = "_listUp_46mn8_196", wi = "_option_46mn8_208", Ti = "_optionActive_46mn8_225", Ei = "_optionSelected_46mn8_229", Di = "_optionDisabled_46mn8_233", Oi = "_optionLabel_46mn8_239", ki = "_checkIcon_46mn8_247", X = {
|
|
3308
|
+
row: ci,
|
|
3309
|
+
disabled: li,
|
|
3310
|
+
leading: ui,
|
|
3311
|
+
content: di,
|
|
3312
|
+
title: fi,
|
|
3313
|
+
subtitle: pi,
|
|
3314
|
+
comboWrap: mi,
|
|
3315
|
+
trigger: hi,
|
|
3316
|
+
triggerOpen: gi,
|
|
3317
|
+
triggerLabel: _i,
|
|
3318
|
+
placeholder: vi,
|
|
3319
|
+
chevron: yi,
|
|
3320
|
+
chevronOpen: bi,
|
|
3321
|
+
list: xi,
|
|
3238
3322
|
"list-in": "_list-in_46mn8_1",
|
|
3239
|
-
listDown:
|
|
3240
|
-
listUp:
|
|
3323
|
+
listDown: Si,
|
|
3324
|
+
listUp: Ci,
|
|
3241
3325
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3242
|
-
option:
|
|
3243
|
-
optionActive:
|
|
3244
|
-
optionSelected:
|
|
3245
|
-
optionDisabled:
|
|
3246
|
-
optionLabel:
|
|
3247
|
-
checkIcon:
|
|
3326
|
+
option: wi,
|
|
3327
|
+
optionActive: Ti,
|
|
3328
|
+
optionSelected: Ei,
|
|
3329
|
+
optionDisabled: Di,
|
|
3330
|
+
optionLabel: Oi,
|
|
3331
|
+
checkIcon: ki
|
|
3248
3332
|
};
|
|
3249
3333
|
//#endregion
|
|
3250
3334
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3251
|
-
function
|
|
3335
|
+
function Ai({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: c, onValueChange: d, disabled: m = !1, className: h, ...g }) {
|
|
3252
3336
|
let _ = o !== void 0, [v, y] = p(c), b = _ ? o : v, [x, S] = p(!1), [C, w] = p(-1), [T, E] = p(!1), D = u(), O = u(), k = f(null), A = f(null), j = a.find((e) => e.value === b), M = s(() => {
|
|
3253
3337
|
if (!k.current) return;
|
|
3254
3338
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3281,7 +3365,7 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3281
3365
|
};
|
|
3282
3366
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
3283
3367
|
}, [x, P]);
|
|
3284
|
-
let
|
|
3368
|
+
let I = s((e) => {
|
|
3285
3369
|
switch (e.key) {
|
|
3286
3370
|
case "Enter":
|
|
3287
3371
|
case " ":
|
|
@@ -3296,7 +3380,7 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3296
3380
|
N,
|
|
3297
3381
|
M,
|
|
3298
3382
|
a
|
|
3299
|
-
]),
|
|
3383
|
+
]), ee = s((e) => {
|
|
3300
3384
|
let t = a.map((e, t) => ({
|
|
3301
3385
|
o: e,
|
|
3302
3386
|
i: t
|
|
@@ -3337,28 +3421,28 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3337
3421
|
]);
|
|
3338
3422
|
return /* @__PURE__ */ n("div", {
|
|
3339
3423
|
className: [
|
|
3340
|
-
|
|
3341
|
-
m ?
|
|
3424
|
+
X.row,
|
|
3425
|
+
m ? X.disabled : null,
|
|
3342
3426
|
h
|
|
3343
3427
|
].filter(Boolean).join(" "),
|
|
3344
3428
|
...g,
|
|
3345
3429
|
children: [
|
|
3346
3430
|
i && /* @__PURE__ */ t("span", {
|
|
3347
|
-
className:
|
|
3431
|
+
className: X.leading,
|
|
3348
3432
|
children: i
|
|
3349
3433
|
}),
|
|
3350
3434
|
/* @__PURE__ */ n("span", {
|
|
3351
|
-
className:
|
|
3435
|
+
className: X.content,
|
|
3352
3436
|
children: [/* @__PURE__ */ t("span", {
|
|
3353
|
-
className:
|
|
3437
|
+
className: X.title,
|
|
3354
3438
|
children: e
|
|
3355
3439
|
}), r && /* @__PURE__ */ t("span", {
|
|
3356
|
-
className:
|
|
3440
|
+
className: X.subtitle,
|
|
3357
3441
|
children: r
|
|
3358
3442
|
})]
|
|
3359
3443
|
}),
|
|
3360
3444
|
/* @__PURE__ */ n("div", {
|
|
3361
|
-
className:
|
|
3445
|
+
className: X.comboWrap,
|
|
3362
3446
|
children: [/* @__PURE__ */ n("button", {
|
|
3363
3447
|
ref: k,
|
|
3364
3448
|
id: D,
|
|
@@ -3369,14 +3453,14 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3369
3453
|
"aria-controls": O,
|
|
3370
3454
|
"aria-activedescendant": x && C >= 0 ? `${O}-opt-${C}` : void 0,
|
|
3371
3455
|
disabled: m,
|
|
3372
|
-
className: [
|
|
3456
|
+
className: [X.trigger, x ? X.triggerOpen : null].filter(Boolean).join(" "),
|
|
3373
3457
|
onClick: () => x ? P() : N(),
|
|
3374
|
-
onKeyDown:
|
|
3458
|
+
onKeyDown: I,
|
|
3375
3459
|
children: [/* @__PURE__ */ t("span", {
|
|
3376
|
-
className: [
|
|
3460
|
+
className: [X.triggerLabel, j ? null : X.placeholder].filter(Boolean).join(" "),
|
|
3377
3461
|
children: j?.label ?? "—"
|
|
3378
3462
|
}), /* @__PURE__ */ t("svg", {
|
|
3379
|
-
className: [
|
|
3463
|
+
className: [X.chevron, x ? X.chevronOpen : null].filter(Boolean).join(" "),
|
|
3380
3464
|
width: "16",
|
|
3381
3465
|
height: "16",
|
|
3382
3466
|
viewBox: "0 0 16 16",
|
|
@@ -3397,23 +3481,23 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3397
3481
|
role: "listbox",
|
|
3398
3482
|
"aria-labelledby": D,
|
|
3399
3483
|
tabIndex: -1,
|
|
3400
|
-
className: [
|
|
3401
|
-
onKeyDown:
|
|
3484
|
+
className: [X.list, T ? X.listUp : X.listDown].filter(Boolean).join(" "),
|
|
3485
|
+
onKeyDown: ee,
|
|
3402
3486
|
children: a.map((e, r) => /* @__PURE__ */ n("li", {
|
|
3403
3487
|
id: `${O}-opt-${r}`,
|
|
3404
3488
|
role: "option",
|
|
3405
3489
|
"aria-selected": e.value === b,
|
|
3406
3490
|
"aria-disabled": e.disabled,
|
|
3407
3491
|
className: [
|
|
3408
|
-
|
|
3409
|
-
e.value === b ?
|
|
3410
|
-
r === C ?
|
|
3411
|
-
e.disabled ?
|
|
3492
|
+
X.option,
|
|
3493
|
+
e.value === b ? X.optionSelected : null,
|
|
3494
|
+
r === C ? X.optionActive : null,
|
|
3495
|
+
e.disabled ? X.optionDisabled : null
|
|
3412
3496
|
].filter(Boolean).join(" "),
|
|
3413
3497
|
onMouseEnter: () => !e.disabled && w(r),
|
|
3414
3498
|
onClick: () => F(e),
|
|
3415
3499
|
children: [/* @__PURE__ */ t("span", {
|
|
3416
|
-
className:
|
|
3500
|
+
className: X.optionLabel,
|
|
3417
3501
|
children: e.label
|
|
3418
3502
|
}), e.value === b && /* @__PURE__ */ t("svg", {
|
|
3419
3503
|
width: "16",
|
|
@@ -3421,7 +3505,7 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3421
3505
|
viewBox: "0 0 16 16",
|
|
3422
3506
|
"aria-hidden": "true",
|
|
3423
3507
|
focusable: "false",
|
|
3424
|
-
className:
|
|
3508
|
+
className: X.checkIcon,
|
|
3425
3509
|
children: /* @__PURE__ */ t("path", {
|
|
3426
3510
|
d: "M3 8l4 4 6-6",
|
|
3427
3511
|
fill: "none",
|
|
@@ -3437,7 +3521,7 @@ function Mi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3437
3521
|
]
|
|
3438
3522
|
});
|
|
3439
3523
|
}
|
|
3440
|
-
var
|
|
3524
|
+
var ji = {
|
|
3441
3525
|
row: "_row_1kogj_3",
|
|
3442
3526
|
focused: "_focused_1kogj_16",
|
|
3443
3527
|
disabled: "_disabled_1kogj_25",
|
|
@@ -3451,31 +3535,31 @@ var Y = {
|
|
|
3451
3535
|
};
|
|
3452
3536
|
//#endregion
|
|
3453
3537
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3454
|
-
function
|
|
3538
|
+
function Mi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: d, onChange: m, ...h }) {
|
|
3455
3539
|
let g = u(), _ = d ?? g, v = r !== void 0, [y, b] = p(String(i)), x = v ? String(r) : y, [S, C] = p(!1), w = f(null), T = S || x.length > 0;
|
|
3456
3540
|
return /* @__PURE__ */ n("div", {
|
|
3457
3541
|
className: [
|
|
3458
|
-
|
|
3459
|
-
S ?
|
|
3460
|
-
c ?
|
|
3542
|
+
ji.row,
|
|
3543
|
+
S ? ji.focused : null,
|
|
3544
|
+
c ? ji.disabled : null,
|
|
3461
3545
|
l
|
|
3462
3546
|
].filter(Boolean).join(" "),
|
|
3463
3547
|
onClick: () => w.current?.focus(),
|
|
3464
3548
|
children: [
|
|
3465
3549
|
o && /* @__PURE__ */ t("span", {
|
|
3466
|
-
className:
|
|
3550
|
+
className: ji.leading,
|
|
3467
3551
|
children: o
|
|
3468
3552
|
}),
|
|
3469
3553
|
/* @__PURE__ */ n("span", {
|
|
3470
|
-
className:
|
|
3554
|
+
className: ji.fieldWrap,
|
|
3471
3555
|
children: [/* @__PURE__ */ t("label", {
|
|
3472
3556
|
htmlFor: _,
|
|
3473
|
-
className: [
|
|
3557
|
+
className: [ji.label, T ? ji.labelFloated : null].filter(Boolean).join(" "),
|
|
3474
3558
|
children: e
|
|
3475
3559
|
}), /* @__PURE__ */ t("input", {
|
|
3476
3560
|
ref: w,
|
|
3477
3561
|
id: _,
|
|
3478
|
-
className: [
|
|
3562
|
+
className: [ji.input, T ? ji.inputFloated : null].filter(Boolean).join(" "),
|
|
3479
3563
|
value: x,
|
|
3480
3564
|
disabled: c,
|
|
3481
3565
|
onFocus: () => C(!0),
|
|
@@ -3487,39 +3571,39 @@ function Ni({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3487
3571
|
})]
|
|
3488
3572
|
}),
|
|
3489
3573
|
s && /* @__PURE__ */ t("span", {
|
|
3490
|
-
className:
|
|
3574
|
+
className: ji.trailing,
|
|
3491
3575
|
children: s
|
|
3492
3576
|
})
|
|
3493
3577
|
]
|
|
3494
3578
|
});
|
|
3495
3579
|
}
|
|
3496
|
-
var
|
|
3580
|
+
var Ni = { revealButton: "_revealButton_1j8z0_3" };
|
|
3497
3581
|
//#endregion
|
|
3498
3582
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3499
|
-
function
|
|
3583
|
+
function Pi({ trailing: r, disabled: i, ...a }) {
|
|
3500
3584
|
let [o, s] = p(!1), c = /* @__PURE__ */ t("button", {
|
|
3501
3585
|
type: "button",
|
|
3502
|
-
className:
|
|
3586
|
+
className: Ni.revealButton,
|
|
3503
3587
|
onClick: (e) => {
|
|
3504
3588
|
e.stopPropagation(), s((e) => !e);
|
|
3505
3589
|
},
|
|
3506
3590
|
"aria-label": o ? "Conceal password" : "Reveal password",
|
|
3507
3591
|
"aria-pressed": o,
|
|
3508
3592
|
disabled: i,
|
|
3509
|
-
children: /* @__PURE__ */ t(
|
|
3510
|
-
icon: o ?
|
|
3593
|
+
children: /* @__PURE__ */ t(L, {
|
|
3594
|
+
icon: o ? Le : Ie,
|
|
3511
3595
|
size: "md",
|
|
3512
3596
|
"aria-hidden": !0
|
|
3513
3597
|
})
|
|
3514
3598
|
});
|
|
3515
|
-
return /* @__PURE__ */ t(
|
|
3599
|
+
return /* @__PURE__ */ t(Mi, {
|
|
3516
3600
|
...a,
|
|
3517
3601
|
type: o ? "text" : "password",
|
|
3518
3602
|
disabled: i,
|
|
3519
3603
|
trailing: /* @__PURE__ */ n(e, { children: [r, c] })
|
|
3520
3604
|
});
|
|
3521
3605
|
}
|
|
3522
|
-
var
|
|
3606
|
+
var Fi = {
|
|
3523
3607
|
row: "_row_ycg6f_3",
|
|
3524
3608
|
disabled: "_disabled_ycg6f_16",
|
|
3525
3609
|
leading: "_leading_ycg6f_23",
|
|
@@ -3532,16 +3616,16 @@ var Ii = {
|
|
|
3532
3616
|
};
|
|
3533
3617
|
//#endregion
|
|
3534
3618
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3535
|
-
function
|
|
3619
|
+
function Ii(e) {
|
|
3536
3620
|
let t = e.toString(), n = t.indexOf(".");
|
|
3537
3621
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3538
3622
|
}
|
|
3539
|
-
function
|
|
3623
|
+
function Li(e, t, n) {
|
|
3540
3624
|
return Math.min(n, Math.max(t, e));
|
|
3541
3625
|
}
|
|
3542
|
-
function
|
|
3543
|
-
let v = a !== void 0, [y, b] = p(o), x = v ? a : y, S = m ??
|
|
3544
|
-
let t = parseFloat(
|
|
3626
|
+
function Ri({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: c, min: l = 0, max: d = 100, step: f = 1, decimals: m, disabled: h = !1, className: g, ..._ }) {
|
|
3627
|
+
let v = a !== void 0, [y, b] = p(o), x = v ? a : y, S = m ?? Ii(f), C = u(), w = s((e) => {
|
|
3628
|
+
let t = parseFloat(Li(e, l, d).toFixed(S));
|
|
3545
3629
|
v || b(t), c?.(t);
|
|
3546
3630
|
}, [
|
|
3547
3631
|
v,
|
|
@@ -3579,23 +3663,23 @@ function zi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3579
3663
|
]);
|
|
3580
3664
|
return /* @__PURE__ */ n("div", {
|
|
3581
3665
|
className: [
|
|
3582
|
-
|
|
3583
|
-
h ?
|
|
3666
|
+
Fi.row,
|
|
3667
|
+
h ? Fi.disabled : null,
|
|
3584
3668
|
g
|
|
3585
3669
|
].filter(Boolean).join(" "),
|
|
3586
3670
|
..._,
|
|
3587
3671
|
children: [
|
|
3588
3672
|
i && /* @__PURE__ */ t("span", {
|
|
3589
|
-
className:
|
|
3673
|
+
className: Fi.leading,
|
|
3590
3674
|
children: i
|
|
3591
3675
|
}),
|
|
3592
3676
|
/* @__PURE__ */ n("span", {
|
|
3593
|
-
className:
|
|
3677
|
+
className: Fi.content,
|
|
3594
3678
|
children: [/* @__PURE__ */ t("span", {
|
|
3595
|
-
className:
|
|
3679
|
+
className: Fi.title,
|
|
3596
3680
|
children: e
|
|
3597
3681
|
}), r && /* @__PURE__ */ t("span", {
|
|
3598
|
-
className:
|
|
3682
|
+
className: Fi.subtitle,
|
|
3599
3683
|
children: r
|
|
3600
3684
|
})]
|
|
3601
3685
|
}),
|
|
@@ -3608,14 +3692,14 @@ function zi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3608
3692
|
"aria-disabled": h || void 0,
|
|
3609
3693
|
tabIndex: h ? -1 : 0,
|
|
3610
3694
|
onKeyDown: h ? void 0 : T,
|
|
3611
|
-
className:
|
|
3695
|
+
className: Fi.spin,
|
|
3612
3696
|
children: [
|
|
3613
3697
|
/* @__PURE__ */ t("button", {
|
|
3614
3698
|
type: "button",
|
|
3615
3699
|
tabIndex: -1,
|
|
3616
3700
|
"aria-hidden": "true",
|
|
3617
3701
|
disabled: h || x <= l,
|
|
3618
|
-
className:
|
|
3702
|
+
className: Fi.spinBtn,
|
|
3619
3703
|
onClick: (e) => {
|
|
3620
3704
|
e.stopPropagation(), w(x - f);
|
|
3621
3705
|
},
|
|
@@ -3623,7 +3707,7 @@ function zi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3623
3707
|
}),
|
|
3624
3708
|
/* @__PURE__ */ t("span", {
|
|
3625
3709
|
id: C,
|
|
3626
|
-
className:
|
|
3710
|
+
className: Fi.spinValue,
|
|
3627
3711
|
"aria-hidden": "true",
|
|
3628
3712
|
children: x.toFixed(S)
|
|
3629
3713
|
}),
|
|
@@ -3632,7 +3716,7 @@ function zi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3632
3716
|
tabIndex: -1,
|
|
3633
3717
|
"aria-hidden": "true",
|
|
3634
3718
|
disabled: h || x >= d,
|
|
3635
|
-
className:
|
|
3719
|
+
className: Fi.spinBtn,
|
|
3636
3720
|
onClick: (e) => {
|
|
3637
3721
|
e.stopPropagation(), w(x + f);
|
|
3638
3722
|
},
|
|
@@ -3645,50 +3729,50 @@ function zi({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3645
3729
|
}
|
|
3646
3730
|
//#endregion
|
|
3647
3731
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3648
|
-
var
|
|
3649
|
-
view:
|
|
3650
|
-
page:
|
|
3651
|
-
pageHeader:
|
|
3652
|
-
pageTitle:
|
|
3653
|
-
pageContent:
|
|
3654
|
-
enterForward:
|
|
3732
|
+
var zi = "_view_1r1om_3", Bi = "_page_1r1om_12", Vi = "_pageHeader_1r1om_23", Hi = "_pageTitle_1r1om_34", Ui = "_pageContent_1r1om_43", Wi = "_enterForward_1r1om_52", Gi = "_enterBack_1r1om_56", Ki = {
|
|
3733
|
+
view: zi,
|
|
3734
|
+
page: Bi,
|
|
3735
|
+
pageHeader: Vi,
|
|
3736
|
+
pageTitle: Hi,
|
|
3737
|
+
pageContent: Ui,
|
|
3738
|
+
enterForward: Wi,
|
|
3655
3739
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3656
|
-
enterBack:
|
|
3740
|
+
enterBack: Gi,
|
|
3657
3741
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3658
|
-
},
|
|
3742
|
+
}, qi = a({
|
|
3659
3743
|
navigate: () => {},
|
|
3660
3744
|
pop: () => {},
|
|
3661
3745
|
canGoBack: !1,
|
|
3662
3746
|
currentTag: "",
|
|
3663
3747
|
direction: "forward"
|
|
3664
3748
|
});
|
|
3665
|
-
function
|
|
3666
|
-
return c(
|
|
3749
|
+
function Ji() {
|
|
3750
|
+
return c(qi);
|
|
3667
3751
|
}
|
|
3668
|
-
function
|
|
3669
|
-
let { currentTag: s, direction: l } = c(
|
|
3752
|
+
function Yi({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3753
|
+
let { currentTag: s, direction: l } = c(qi);
|
|
3670
3754
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3671
3755
|
className: [
|
|
3672
|
-
|
|
3673
|
-
l === "forward" ?
|
|
3756
|
+
Ki.page,
|
|
3757
|
+
l === "forward" ? Ki.enterForward : Ki.enterBack,
|
|
3674
3758
|
a
|
|
3675
3759
|
].filter(Boolean).join(" "),
|
|
3676
3760
|
...o,
|
|
3677
3761
|
children: [/* @__PURE__ */ t("div", {
|
|
3678
|
-
className:
|
|
3762
|
+
className: Ki.pageHeader,
|
|
3679
3763
|
children: /* @__PURE__ */ t("span", {
|
|
3680
|
-
className:
|
|
3764
|
+
className: Ki.pageTitle,
|
|
3681
3765
|
children: r
|
|
3682
3766
|
})
|
|
3683
3767
|
}), /* @__PURE__ */ t("div", {
|
|
3684
|
-
className:
|
|
3768
|
+
className: Ki.pageContent,
|
|
3685
3769
|
children: i
|
|
3686
3770
|
})]
|
|
3687
3771
|
}) : null;
|
|
3688
3772
|
}
|
|
3689
|
-
function
|
|
3773
|
+
function Xi({ initialPage: e, children: n, className: r, ...i }) {
|
|
3690
3774
|
let [a, o] = p([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = p("forward");
|
|
3691
|
-
return /* @__PURE__ */ t(
|
|
3775
|
+
return /* @__PURE__ */ t(qi.Provider, {
|
|
3692
3776
|
value: {
|
|
3693
3777
|
navigate: (e) => {
|
|
3694
3778
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3701,7 +3785,7 @@ function Zi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3701
3785
|
direction: l
|
|
3702
3786
|
},
|
|
3703
3787
|
children: /* @__PURE__ */ t("div", {
|
|
3704
|
-
className: [
|
|
3788
|
+
className: [Ki.view, r].filter(Boolean).join(" "),
|
|
3705
3789
|
...i,
|
|
3706
3790
|
children: n
|
|
3707
3791
|
})
|
|
@@ -3709,20 +3793,20 @@ function Zi({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3709
3793
|
}
|
|
3710
3794
|
//#endregion
|
|
3711
3795
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3712
|
-
var
|
|
3713
|
-
backdrop:
|
|
3796
|
+
var Zi = "_backdrop_zzv98_3", Qi = "_sheet_zzv98_26", $i = "_handle_zzv98_49", ea = "_handleBar_zzv98_56", ta = "_title_zzv98_66", na = "_content_zzv98_79", ra = {
|
|
3797
|
+
backdrop: Zi,
|
|
3714
3798
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3715
|
-
sheet:
|
|
3799
|
+
sheet: Qi,
|
|
3716
3800
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3717
|
-
handle:
|
|
3718
|
-
handleBar:
|
|
3719
|
-
title:
|
|
3720
|
-
content:
|
|
3721
|
-
},
|
|
3722
|
-
function
|
|
3801
|
+
handle: $i,
|
|
3802
|
+
handleBar: ea,
|
|
3803
|
+
title: ta,
|
|
3804
|
+
content: na
|
|
3805
|
+
}, ia = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
3806
|
+
function aa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: c, ...d }) {
|
|
3723
3807
|
let p = f(null), h = u(), g = f(null);
|
|
3724
3808
|
l(() => {
|
|
3725
|
-
e ? (g.current = document.activeElement, (p.current?.querySelector(
|
|
3809
|
+
e ? (g.current = document.activeElement, (p.current?.querySelector(ia))?.focus()) : g.current?.focus();
|
|
3726
3810
|
}, [e]);
|
|
3727
3811
|
let _ = s((e) => {
|
|
3728
3812
|
if (e.key === "Escape") {
|
|
@@ -3730,14 +3814,14 @@ function oa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3730
3814
|
return;
|
|
3731
3815
|
}
|
|
3732
3816
|
if (e.key !== "Tab") return;
|
|
3733
|
-
let t = Array.from(p.current?.querySelectorAll(
|
|
3817
|
+
let t = Array.from(p.current?.querySelectorAll(ia) ?? []);
|
|
3734
3818
|
if (t.length === 0) return;
|
|
3735
3819
|
let n = t[0], r = t[t.length - 1];
|
|
3736
3820
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3737
3821
|
}, [a]);
|
|
3738
3822
|
if (!e) return null;
|
|
3739
3823
|
let v = /* @__PURE__ */ t("div", {
|
|
3740
|
-
className:
|
|
3824
|
+
className: ra.backdrop,
|
|
3741
3825
|
onClick: o ? a : void 0,
|
|
3742
3826
|
"aria-hidden": "true",
|
|
3743
3827
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -3745,23 +3829,23 @@ function oa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3745
3829
|
role: "dialog",
|
|
3746
3830
|
"aria-modal": "true",
|
|
3747
3831
|
"aria-labelledby": r ? h : void 0,
|
|
3748
|
-
className: [
|
|
3832
|
+
className: [ra.sheet, c].filter(Boolean).join(" "),
|
|
3749
3833
|
onKeyDown: _,
|
|
3750
3834
|
onClick: (e) => e.stopPropagation(),
|
|
3751
3835
|
...d,
|
|
3752
3836
|
children: [
|
|
3753
3837
|
/* @__PURE__ */ t("div", {
|
|
3754
|
-
className:
|
|
3838
|
+
className: ra.handle,
|
|
3755
3839
|
"aria-hidden": "true",
|
|
3756
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
3840
|
+
children: /* @__PURE__ */ t("div", { className: ra.handleBar })
|
|
3757
3841
|
}),
|
|
3758
3842
|
r && /* @__PURE__ */ t("div", {
|
|
3759
3843
|
id: h,
|
|
3760
|
-
className:
|
|
3844
|
+
className: ra.title,
|
|
3761
3845
|
children: r
|
|
3762
3846
|
}),
|
|
3763
3847
|
i && /* @__PURE__ */ t("div", {
|
|
3764
|
-
className:
|
|
3848
|
+
className: ra.content,
|
|
3765
3849
|
children: i
|
|
3766
3850
|
})
|
|
3767
3851
|
]
|
|
@@ -3769,7 +3853,7 @@ function oa({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3769
3853
|
});
|
|
3770
3854
|
return typeof document > "u" ? v : m(v, document.body);
|
|
3771
3855
|
}
|
|
3772
|
-
var
|
|
3856
|
+
var oa = {
|
|
3773
3857
|
carousel: "_carousel_117hp_3",
|
|
3774
3858
|
horizontal: "_horizontal_117hp_20",
|
|
3775
3859
|
vertical: "_vertical_117hp_27",
|
|
@@ -3783,9 +3867,9 @@ var sa = {
|
|
|
3783
3867
|
};
|
|
3784
3868
|
//#endregion
|
|
3785
3869
|
//#region src/components/Carousel/Carousel.tsx
|
|
3786
|
-
function
|
|
3870
|
+
function sa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3787
3871
|
return /* @__PURE__ */ t("div", {
|
|
3788
|
-
className: [
|
|
3872
|
+
className: [oa.indicatorDots, i].filter(Boolean).join(" "),
|
|
3789
3873
|
role: "tablist",
|
|
3790
3874
|
"aria-label": "Carousel pages",
|
|
3791
3875
|
...a,
|
|
@@ -3794,14 +3878,14 @@ function ca({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3794
3878
|
role: "tab",
|
|
3795
3879
|
"aria-selected": i === n,
|
|
3796
3880
|
"aria-label": `Page ${i + 1}`,
|
|
3797
|
-
className: [
|
|
3881
|
+
className: [oa.dot, i === n ? oa.dotActive : null].filter(Boolean).join(" "),
|
|
3798
3882
|
onClick: () => r?.(i)
|
|
3799
3883
|
}, i))
|
|
3800
3884
|
});
|
|
3801
3885
|
}
|
|
3802
|
-
function
|
|
3886
|
+
function ca({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
3803
3887
|
return /* @__PURE__ */ t("div", {
|
|
3804
|
-
className: [
|
|
3888
|
+
className: [oa.indicatorLines, i].filter(Boolean).join(" "),
|
|
3805
3889
|
role: "tablist",
|
|
3806
3890
|
"aria-label": "Carousel pages",
|
|
3807
3891
|
...a,
|
|
@@ -3810,12 +3894,12 @@ function la({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
3810
3894
|
role: "tab",
|
|
3811
3895
|
"aria-selected": i === n,
|
|
3812
3896
|
"aria-label": `Page ${i + 1}`,
|
|
3813
|
-
className: [
|
|
3897
|
+
className: [oa.line, i === n ? oa.lineActive : null].filter(Boolean).join(" "),
|
|
3814
3898
|
onClick: () => r?.(i)
|
|
3815
3899
|
}, i))
|
|
3816
3900
|
});
|
|
3817
3901
|
}
|
|
3818
|
-
function
|
|
3902
|
+
function la({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: c, className: u, ...d }) {
|
|
3819
3903
|
let m = f(null), h = r.count(e), [g, _] = p(0), v = c !== void 0, y = v ? c : g;
|
|
3820
3904
|
l(() => {
|
|
3821
3905
|
v && b(c, "smooth");
|
|
@@ -3871,15 +3955,15 @@ function ua({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3871
3955
|
"aria-roledescription": "carousel",
|
|
3872
3956
|
tabIndex: 0,
|
|
3873
3957
|
className: [
|
|
3874
|
-
|
|
3875
|
-
S ?
|
|
3958
|
+
oa.carousel,
|
|
3959
|
+
S ? oa.horizontal : oa.vertical,
|
|
3876
3960
|
u
|
|
3877
3961
|
].filter(Boolean).join(" "),
|
|
3878
3962
|
style: S ? { columnGap: i || void 0 } : { rowGap: i || void 0 },
|
|
3879
3963
|
onKeyDown: x,
|
|
3880
3964
|
...d,
|
|
3881
3965
|
children: r.map(e, (e, n) => /* @__PURE__ */ t("div", {
|
|
3882
|
-
className:
|
|
3966
|
+
className: oa.slide,
|
|
3883
3967
|
role: "group",
|
|
3884
3968
|
"aria-roledescription": "slide",
|
|
3885
3969
|
"aria-label": `${n + 1} of ${h}`,
|
|
@@ -3889,49 +3973,49 @@ function ua({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
3889
3973
|
}
|
|
3890
3974
|
//#endregion
|
|
3891
3975
|
//#region src/components/Bin/Bin.tsx
|
|
3892
|
-
function
|
|
3976
|
+
function ua({ children: e, ...n }) {
|
|
3893
3977
|
return /* @__PURE__ */ t("div", {
|
|
3894
3978
|
...n,
|
|
3895
3979
|
children: e
|
|
3896
3980
|
});
|
|
3897
3981
|
}
|
|
3898
|
-
var
|
|
3982
|
+
var da = {
|
|
3899
3983
|
content: "_content_1xkwk_3",
|
|
3900
3984
|
icon: "_icon_1xkwk_9",
|
|
3901
3985
|
label: "_label_1xkwk_15"
|
|
3902
3986
|
};
|
|
3903
3987
|
//#endregion
|
|
3904
3988
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
3905
|
-
function
|
|
3989
|
+
function fa({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
3906
3990
|
return /* @__PURE__ */ n("span", {
|
|
3907
3991
|
className: [
|
|
3908
|
-
|
|
3909
|
-
i === "end" ?
|
|
3992
|
+
da.content,
|
|
3993
|
+
i === "end" ? da.iconEnd : null,
|
|
3910
3994
|
a
|
|
3911
3995
|
].filter(Boolean).join(" "),
|
|
3912
3996
|
...o,
|
|
3913
3997
|
children: [
|
|
3914
3998
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
3915
|
-
className:
|
|
3999
|
+
className: da.icon,
|
|
3916
4000
|
"aria-hidden": "true",
|
|
3917
4001
|
children: e
|
|
3918
4002
|
}),
|
|
3919
4003
|
/* @__PURE__ */ t("span", {
|
|
3920
|
-
className:
|
|
4004
|
+
className: da.label,
|
|
3921
4005
|
children: r
|
|
3922
4006
|
}),
|
|
3923
4007
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
3924
|
-
className:
|
|
4008
|
+
className: da.icon,
|
|
3925
4009
|
"aria-hidden": "true",
|
|
3926
4010
|
children: e
|
|
3927
4011
|
})
|
|
3928
4012
|
]
|
|
3929
4013
|
});
|
|
3930
4014
|
}
|
|
3931
|
-
var
|
|
4015
|
+
var pa = {
|
|
3932
4016
|
label: "_label_h3znl_3",
|
|
3933
4017
|
key: "_key_h3znl_9"
|
|
3934
|
-
},
|
|
4018
|
+
}, ma = {
|
|
3935
4019
|
ctrl: "⌃",
|
|
3936
4020
|
control: "⌃",
|
|
3937
4021
|
shift: "⇧",
|
|
@@ -3959,22 +4043,22 @@ var ma = {
|
|
|
3959
4043
|
home: "⇱",
|
|
3960
4044
|
end: "⇲"
|
|
3961
4045
|
};
|
|
3962
|
-
function
|
|
4046
|
+
function ha({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
3963
4047
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
3964
4048
|
return /* @__PURE__ */ t("span", {
|
|
3965
|
-
className: [
|
|
4049
|
+
className: [pa.label, r].filter(Boolean).join(" "),
|
|
3966
4050
|
"aria-label": e,
|
|
3967
4051
|
...i,
|
|
3968
4052
|
children: a.map((e, r) => {
|
|
3969
|
-
let i = n ?
|
|
4053
|
+
let i = n ? ma[e.toLowerCase()] ?? e : e;
|
|
3970
4054
|
return /* @__PURE__ */ t("kbd", {
|
|
3971
|
-
className:
|
|
4055
|
+
className: pa.key,
|
|
3972
4056
|
children: i
|
|
3973
4057
|
}, r);
|
|
3974
4058
|
})
|
|
3975
4059
|
});
|
|
3976
4060
|
}
|
|
3977
|
-
var
|
|
4061
|
+
var ga = {
|
|
3978
4062
|
toolbarView: "_toolbarView_134hf_3",
|
|
3979
4063
|
top: "_top_134hf_11",
|
|
3980
4064
|
content: "_content_134hf_16",
|
|
@@ -3982,47 +4066,47 @@ var _a = {
|
|
|
3982
4066
|
};
|
|
3983
4067
|
//#endregion
|
|
3984
4068
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
3985
|
-
function
|
|
4069
|
+
function _a({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
3986
4070
|
return /* @__PURE__ */ n("div", {
|
|
3987
|
-
className: [
|
|
4071
|
+
className: [ga.toolbarView, a].filter(Boolean).join(" "),
|
|
3988
4072
|
...o,
|
|
3989
4073
|
children: [
|
|
3990
4074
|
e && /* @__PURE__ */ t("div", {
|
|
3991
|
-
className:
|
|
4075
|
+
className: ga.top,
|
|
3992
4076
|
children: e
|
|
3993
4077
|
}),
|
|
3994
4078
|
/* @__PURE__ */ t("div", {
|
|
3995
|
-
className:
|
|
4079
|
+
className: ga.content,
|
|
3996
4080
|
children: i
|
|
3997
4081
|
}),
|
|
3998
4082
|
r && /* @__PURE__ */ t("div", {
|
|
3999
|
-
className:
|
|
4083
|
+
className: ga.bottom,
|
|
4000
4084
|
children: r
|
|
4001
4085
|
})
|
|
4002
4086
|
]
|
|
4003
4087
|
});
|
|
4004
4088
|
}
|
|
4005
|
-
var
|
|
4089
|
+
var va = {
|
|
4006
4090
|
windowTitle: "_windowTitle_zm877_3",
|
|
4007
4091
|
title: "_title_zm877_11",
|
|
4008
4092
|
subtitle: "_subtitle_zm877_24"
|
|
4009
4093
|
};
|
|
4010
4094
|
//#endregion
|
|
4011
4095
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
4012
|
-
function
|
|
4096
|
+
function ya({ title: e, subtitle: r, className: i, ...a }) {
|
|
4013
4097
|
return /* @__PURE__ */ n("div", {
|
|
4014
|
-
className: [
|
|
4098
|
+
className: [va.windowTitle, i].filter(Boolean).join(" "),
|
|
4015
4099
|
...a,
|
|
4016
4100
|
children: [/* @__PURE__ */ t("span", {
|
|
4017
|
-
className:
|
|
4101
|
+
className: va.title,
|
|
4018
4102
|
children: e
|
|
4019
4103
|
}), r && /* @__PURE__ */ t("span", {
|
|
4020
|
-
className:
|
|
4104
|
+
className: va.subtitle,
|
|
4021
4105
|
children: r
|
|
4022
4106
|
})]
|
|
4023
4107
|
});
|
|
4024
4108
|
}
|
|
4025
|
-
var
|
|
4109
|
+
var ba = {
|
|
4026
4110
|
group: "_group_17s4f_3",
|
|
4027
4111
|
header: "_header_17s4f_11",
|
|
4028
4112
|
headerText: "_headerText_17s4f_17",
|
|
@@ -4033,85 +4117,85 @@ var xa = {
|
|
|
4033
4117
|
};
|
|
4034
4118
|
//#endregion
|
|
4035
4119
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
4036
|
-
function
|
|
4120
|
+
function xa({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
4037
4121
|
let c = e || r || i;
|
|
4038
4122
|
return /* @__PURE__ */ n("div", {
|
|
4039
|
-
className: [
|
|
4123
|
+
className: [ba.group, o].filter(Boolean).join(" "),
|
|
4040
4124
|
...s,
|
|
4041
4125
|
children: [c && /* @__PURE__ */ n("div", {
|
|
4042
|
-
className:
|
|
4126
|
+
className: ba.header,
|
|
4043
4127
|
children: [/* @__PURE__ */ n("div", {
|
|
4044
|
-
className:
|
|
4128
|
+
className: ba.headerText,
|
|
4045
4129
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4046
|
-
className:
|
|
4130
|
+
className: ba.title,
|
|
4047
4131
|
children: e
|
|
4048
4132
|
}), r && /* @__PURE__ */ t("span", {
|
|
4049
|
-
className:
|
|
4133
|
+
className: ba.description,
|
|
4050
4134
|
children: r
|
|
4051
4135
|
})]
|
|
4052
4136
|
}), i && /* @__PURE__ */ t("div", {
|
|
4053
|
-
className:
|
|
4137
|
+
className: ba.suffix,
|
|
4054
4138
|
children: i
|
|
4055
4139
|
})]
|
|
4056
4140
|
}), /* @__PURE__ */ t("div", {
|
|
4057
|
-
className:
|
|
4141
|
+
className: ba.content,
|
|
4058
4142
|
children: a
|
|
4059
4143
|
})]
|
|
4060
4144
|
});
|
|
4061
4145
|
}
|
|
4062
|
-
var
|
|
4146
|
+
var Sa = {
|
|
4063
4147
|
page: "_page_gt42j_3",
|
|
4064
4148
|
inner: "_inner_gt42j_10"
|
|
4065
4149
|
};
|
|
4066
4150
|
//#endregion
|
|
4067
4151
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4068
|
-
function
|
|
4152
|
+
function Ca({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4069
4153
|
return /* @__PURE__ */ t("div", {
|
|
4070
|
-
className: [
|
|
4154
|
+
className: [Sa.page, i].filter(Boolean).join(" "),
|
|
4071
4155
|
role: "tabpanel",
|
|
4072
4156
|
...a,
|
|
4073
4157
|
children: /* @__PURE__ */ t("div", {
|
|
4074
|
-
className:
|
|
4158
|
+
className: Sa.inner,
|
|
4075
4159
|
children: r
|
|
4076
4160
|
})
|
|
4077
4161
|
});
|
|
4078
4162
|
}
|
|
4079
4163
|
//#endregion
|
|
4080
4164
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4081
|
-
var
|
|
4082
|
-
backdrop:
|
|
4165
|
+
var wa = "_backdrop_1u1bd_3", Ta = "_dialog_1u1bd_26", Ea = "_dialogMulti_1u1bd_46", Da = "_header_1u1bd_63", Oa = "_closeBtn_1u1bd_73", ka = "_title_1u1bd_102", Aa = "_searchWrap_1u1bd_112", ja = "_searchInput_1u1bd_116", Ma = "_body_1u1bd_143", Na = "_sidebar_1u1bd_152", Pa = "_navList_1u1bd_160", Fa = "_navItem_1u1bd_169", Ia = "_navItemActive_1u1bd_190", La = "_navIcon_1u1bd_205", Ra = "_navLabel_1u1bd_211", za = "_pageWrap_1u1bd_221", Z = {
|
|
4166
|
+
backdrop: wa,
|
|
4083
4167
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4084
|
-
dialog:
|
|
4168
|
+
dialog: Ta,
|
|
4085
4169
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4086
|
-
dialogMulti:
|
|
4087
|
-
header:
|
|
4088
|
-
closeBtn:
|
|
4089
|
-
title:
|
|
4090
|
-
searchWrap:
|
|
4091
|
-
searchInput:
|
|
4092
|
-
body:
|
|
4093
|
-
sidebar:
|
|
4094
|
-
navList:
|
|
4095
|
-
navItem:
|
|
4096
|
-
navItemActive:
|
|
4097
|
-
navIcon:
|
|
4098
|
-
navLabel:
|
|
4099
|
-
pageWrap:
|
|
4100
|
-
},
|
|
4101
|
-
function
|
|
4170
|
+
dialogMulti: Ea,
|
|
4171
|
+
header: Da,
|
|
4172
|
+
closeBtn: Oa,
|
|
4173
|
+
title: ka,
|
|
4174
|
+
searchWrap: Aa,
|
|
4175
|
+
searchInput: ja,
|
|
4176
|
+
body: Ma,
|
|
4177
|
+
sidebar: Na,
|
|
4178
|
+
navList: Pa,
|
|
4179
|
+
navItem: Fa,
|
|
4180
|
+
navItemActive: Ia,
|
|
4181
|
+
navIcon: La,
|
|
4182
|
+
navLabel: Ra,
|
|
4183
|
+
pageWrap: za
|
|
4184
|
+
}, Ba = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4185
|
+
function Va(e, t) {
|
|
4102
4186
|
if (e.key !== "Tab") return;
|
|
4103
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4187
|
+
let n = Array.from(t.current?.querySelectorAll(Ba) ?? []);
|
|
4104
4188
|
if (!n.length) return;
|
|
4105
4189
|
let r = n[0], i = n[n.length - 1];
|
|
4106
4190
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4107
4191
|
}
|
|
4108
|
-
function
|
|
4192
|
+
function Ha({ open: e, onClose: a, children: c, searchable: d = !0, className: h, ...g }) {
|
|
4109
4193
|
let _ = f(null), v = f(null), y = u(), b = r.toArray(c).filter((e) => o(e)), [x, S] = p(0), [C, w] = p("");
|
|
4110
4194
|
l(() => {
|
|
4111
4195
|
if (e) {
|
|
4112
4196
|
S(0), w("");
|
|
4113
4197
|
let e = requestAnimationFrame(() => {
|
|
4114
|
-
d && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4198
|
+
d && v.current ? v.current.focus() : (_.current?.querySelector(Ba))?.focus();
|
|
4115
4199
|
});
|
|
4116
4200
|
return () => cancelAnimationFrame(e);
|
|
4117
4201
|
}
|
|
@@ -4121,10 +4205,10 @@ function Ua({ open: e, onClose: a, children: c, searchable: d = !0, className: h
|
|
|
4121
4205
|
e.stopPropagation(), a();
|
|
4122
4206
|
return;
|
|
4123
4207
|
}
|
|
4124
|
-
|
|
4208
|
+
Va(e, _);
|
|
4125
4209
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4126
4210
|
return e ? m(/* @__PURE__ */ t("div", {
|
|
4127
|
-
className:
|
|
4211
|
+
className: Z.backdrop,
|
|
4128
4212
|
onClick: (e) => {
|
|
4129
4213
|
e.target === e.currentTarget && a();
|
|
4130
4214
|
},
|
|
@@ -4135,79 +4219,79 @@ function Ua({ open: e, onClose: a, children: c, searchable: d = !0, className: h
|
|
|
4135
4219
|
"aria-modal": "true",
|
|
4136
4220
|
"aria-labelledby": y,
|
|
4137
4221
|
className: [
|
|
4138
|
-
|
|
4139
|
-
E ?
|
|
4222
|
+
Z.dialog,
|
|
4223
|
+
E ? Z.dialogMulti : null,
|
|
4140
4224
|
h
|
|
4141
4225
|
].filter(Boolean).join(" "),
|
|
4142
4226
|
onKeyDown: T,
|
|
4143
4227
|
...g,
|
|
4144
4228
|
children: [/* @__PURE__ */ n("div", {
|
|
4145
|
-
className:
|
|
4229
|
+
className: Z.header,
|
|
4146
4230
|
children: [
|
|
4147
4231
|
/* @__PURE__ */ t("button", {
|
|
4148
4232
|
type: "button",
|
|
4149
|
-
className:
|
|
4233
|
+
className: Z.closeBtn,
|
|
4150
4234
|
onClick: a,
|
|
4151
4235
|
"aria-label": "Close preferences",
|
|
4152
4236
|
children: "✕"
|
|
4153
4237
|
}),
|
|
4154
4238
|
/* @__PURE__ */ t("span", {
|
|
4155
4239
|
id: y,
|
|
4156
|
-
className:
|
|
4240
|
+
className: Z.title,
|
|
4157
4241
|
children: "Preferences"
|
|
4158
4242
|
}),
|
|
4159
4243
|
d && /* @__PURE__ */ t("div", {
|
|
4160
|
-
className:
|
|
4244
|
+
className: Z.searchWrap,
|
|
4161
4245
|
children: /* @__PURE__ */ t("input", {
|
|
4162
4246
|
ref: v,
|
|
4163
4247
|
type: "search",
|
|
4164
4248
|
placeholder: "Search…",
|
|
4165
4249
|
value: C,
|
|
4166
4250
|
onChange: (e) => w(e.target.value),
|
|
4167
|
-
className:
|
|
4251
|
+
className: Z.searchInput,
|
|
4168
4252
|
"aria-label": "Search preferences"
|
|
4169
4253
|
})
|
|
4170
4254
|
})
|
|
4171
4255
|
]
|
|
4172
4256
|
}), /* @__PURE__ */ n("div", {
|
|
4173
|
-
className:
|
|
4257
|
+
className: Z.body,
|
|
4174
4258
|
children: [E && /* @__PURE__ */ t("nav", {
|
|
4175
|
-
className:
|
|
4259
|
+
className: Z.sidebar,
|
|
4176
4260
|
"aria-label": "Preferences pages",
|
|
4177
4261
|
children: /* @__PURE__ */ t("ul", {
|
|
4178
4262
|
role: "tablist",
|
|
4179
|
-
className:
|
|
4263
|
+
className: Z.navList,
|
|
4180
4264
|
children: b.map((e, r) => /* @__PURE__ */ t("li", {
|
|
4181
4265
|
role: "presentation",
|
|
4182
4266
|
children: /* @__PURE__ */ n("button", {
|
|
4183
4267
|
role: "tab",
|
|
4184
4268
|
type: "button",
|
|
4185
4269
|
"aria-selected": r === x,
|
|
4186
|
-
className: [
|
|
4270
|
+
className: [Z.navItem, r === x ? Z.navItemActive : null].filter(Boolean).join(" "),
|
|
4187
4271
|
onClick: () => S(r),
|
|
4188
4272
|
children: [e.props.iconName && /* @__PURE__ */ t("span", {
|
|
4189
4273
|
className: [
|
|
4190
|
-
|
|
4274
|
+
Z.navIcon,
|
|
4191
4275
|
"icon",
|
|
4192
4276
|
e.props.iconName
|
|
4193
4277
|
].join(" "),
|
|
4194
4278
|
"aria-hidden": "true"
|
|
4195
4279
|
}), /* @__PURE__ */ t("span", {
|
|
4196
|
-
className:
|
|
4280
|
+
className: Z.navLabel,
|
|
4197
4281
|
children: e.props.title
|
|
4198
4282
|
})]
|
|
4199
4283
|
})
|
|
4200
4284
|
}, r))
|
|
4201
4285
|
})
|
|
4202
4286
|
}), /* @__PURE__ */ t("div", {
|
|
4203
|
-
className:
|
|
4287
|
+
className: Z.pageWrap,
|
|
4204
4288
|
children: D && i(D, { "data-search-query": O || void 0 })
|
|
4205
4289
|
})]
|
|
4206
4290
|
})]
|
|
4207
4291
|
})
|
|
4208
4292
|
}), document.body) : null;
|
|
4209
4293
|
}
|
|
4210
|
-
var
|
|
4294
|
+
var Q = {
|
|
4211
4295
|
vertical: "_vertical_12mfk_12",
|
|
4212
4296
|
item: "_item_12mfk_18",
|
|
4213
4297
|
leading: "_leading_12mfk_25",
|
|
@@ -4224,63 +4308,63 @@ var Z = {
|
|
|
4224
4308
|
};
|
|
4225
4309
|
//#endregion
|
|
4226
4310
|
//#region src/components/Timeline/Timeline.tsx
|
|
4227
|
-
function
|
|
4311
|
+
function Ua({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4228
4312
|
let s = r === "horizontal", c = i !== "none";
|
|
4229
4313
|
return /* @__PURE__ */ t("div", {
|
|
4230
4314
|
role: "list",
|
|
4231
4315
|
className: [
|
|
4232
|
-
|
|
4233
|
-
s ?
|
|
4316
|
+
Q.root,
|
|
4317
|
+
s ? Q.horizontal : Q.vertical,
|
|
4234
4318
|
a
|
|
4235
4319
|
].filter(Boolean).join(" "),
|
|
4236
4320
|
...o,
|
|
4237
4321
|
children: e.map((r, a) => {
|
|
4238
|
-
let o = a === 0, l = a === e.length - 1, u = [
|
|
4239
|
-
className: [
|
|
4322
|
+
let o = a === 0, l = a === e.length - 1, u = [Q.line, i === "dotted" ? Q.lineDotted : null].filter(Boolean).join(" "), d = /* @__PURE__ */ t("div", {
|
|
4323
|
+
className: [Q.node, r.icon ? Q.nodeWithIcon : Q.nodeDot].filter(Boolean).join(" "),
|
|
4240
4324
|
children: r.icon && /* @__PURE__ */ t("span", {
|
|
4241
|
-
className:
|
|
4325
|
+
className: Q.iconWrap,
|
|
4242
4326
|
"aria-hidden": "true",
|
|
4243
4327
|
children: r.icon
|
|
4244
4328
|
})
|
|
4245
4329
|
});
|
|
4246
4330
|
return /* @__PURE__ */ n("div", {
|
|
4247
4331
|
role: "listitem",
|
|
4248
|
-
className:
|
|
4332
|
+
className: Q.item,
|
|
4249
4333
|
children: [
|
|
4250
4334
|
/* @__PURE__ */ t("div", {
|
|
4251
|
-
className:
|
|
4335
|
+
className: Q.leading,
|
|
4252
4336
|
children: r.leading
|
|
4253
4337
|
}),
|
|
4254
4338
|
s ? /* @__PURE__ */ n("div", {
|
|
4255
|
-
className:
|
|
4339
|
+
className: Q.nodeTrack,
|
|
4256
4340
|
children: [
|
|
4257
4341
|
/* @__PURE__ */ t("div", {
|
|
4258
4342
|
className: [
|
|
4259
|
-
|
|
4260
|
-
i === "dotted" ?
|
|
4261
|
-
o || !c ?
|
|
4343
|
+
Q.line,
|
|
4344
|
+
i === "dotted" ? Q.lineDotted : null,
|
|
4345
|
+
o || !c ? Q.lineInvisible : null
|
|
4262
4346
|
].filter(Boolean).join(" "),
|
|
4263
4347
|
"aria-hidden": "true"
|
|
4264
4348
|
}),
|
|
4265
4349
|
d,
|
|
4266
4350
|
/* @__PURE__ */ t("div", {
|
|
4267
4351
|
className: [
|
|
4268
|
-
|
|
4269
|
-
i === "dotted" ?
|
|
4270
|
-
l || !c ?
|
|
4352
|
+
Q.line,
|
|
4353
|
+
i === "dotted" ? Q.lineDotted : null,
|
|
4354
|
+
l || !c ? Q.lineInvisible : null
|
|
4271
4355
|
].filter(Boolean).join(" "),
|
|
4272
4356
|
"aria-hidden": "true"
|
|
4273
4357
|
})
|
|
4274
4358
|
]
|
|
4275
4359
|
}) : /* @__PURE__ */ n("div", {
|
|
4276
|
-
className:
|
|
4360
|
+
className: Q.nodeTrack,
|
|
4277
4361
|
children: [d, !l && c && /* @__PURE__ */ t("div", {
|
|
4278
4362
|
className: u,
|
|
4279
4363
|
"aria-hidden": "true"
|
|
4280
4364
|
})]
|
|
4281
4365
|
}),
|
|
4282
4366
|
/* @__PURE__ */ t("div", {
|
|
4283
|
-
className:
|
|
4367
|
+
className: Q.content,
|
|
4284
4368
|
children: r.content
|
|
4285
4369
|
})
|
|
4286
4370
|
]
|
|
@@ -4288,7 +4372,7 @@ function Wa({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4288
4372
|
})
|
|
4289
4373
|
});
|
|
4290
4374
|
}
|
|
4291
|
-
var
|
|
4375
|
+
var Wa = {
|
|
4292
4376
|
pathBar: "_pathBar_1n4ev_3",
|
|
4293
4377
|
list: "_list_1n4ev_12",
|
|
4294
4378
|
item: "_item_1n4ev_25",
|
|
@@ -4299,20 +4383,20 @@ var Ga = {
|
|
|
4299
4383
|
};
|
|
4300
4384
|
//#endregion
|
|
4301
4385
|
//#region src/components/PathBar/PathBar.tsx
|
|
4302
|
-
function
|
|
4386
|
+
function Ga({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
4303
4387
|
return /* @__PURE__ */ t("nav", {
|
|
4304
4388
|
"aria-label": "Breadcrumb",
|
|
4305
|
-
className: [
|
|
4389
|
+
className: [Wa.pathBar, i].filter(Boolean).join(" "),
|
|
4306
4390
|
...a,
|
|
4307
4391
|
children: /* @__PURE__ */ t("ol", {
|
|
4308
|
-
className:
|
|
4392
|
+
className: Wa.list,
|
|
4309
4393
|
"aria-label": "Path segments",
|
|
4310
4394
|
children: e.map((i, a) => {
|
|
4311
4395
|
let o = a === e.length - 1;
|
|
4312
4396
|
return /* @__PURE__ */ n("li", {
|
|
4313
|
-
className:
|
|
4397
|
+
className: Wa.item,
|
|
4314
4398
|
children: [a > 0 && /* @__PURE__ */ t("span", {
|
|
4315
|
-
className:
|
|
4399
|
+
className: Wa.separator,
|
|
4316
4400
|
"aria-hidden": "true",
|
|
4317
4401
|
children: /* @__PURE__ */ t("svg", {
|
|
4318
4402
|
width: "12",
|
|
@@ -4329,19 +4413,19 @@ function Ka({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4329
4413
|
})
|
|
4330
4414
|
})
|
|
4331
4415
|
}), o ? /* @__PURE__ */ n("span", {
|
|
4332
|
-
className:
|
|
4416
|
+
className: Wa.current,
|
|
4333
4417
|
"aria-current": "page",
|
|
4334
4418
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4335
|
-
className:
|
|
4419
|
+
className: Wa.icon,
|
|
4336
4420
|
"aria-hidden": "true",
|
|
4337
4421
|
children: i.icon
|
|
4338
4422
|
}), i.label]
|
|
4339
4423
|
}) : /* @__PURE__ */ n("button", {
|
|
4340
4424
|
type: "button",
|
|
4341
|
-
className:
|
|
4425
|
+
className: Wa.segment,
|
|
4342
4426
|
onClick: () => r?.(i.path, a),
|
|
4343
4427
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4344
|
-
className:
|
|
4428
|
+
className: Wa.icon,
|
|
4345
4429
|
"aria-hidden": "true",
|
|
4346
4430
|
children: i.icon
|
|
4347
4431
|
}), i.label]
|
|
@@ -4351,7 +4435,7 @@ function Ka({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4351
4435
|
})
|
|
4352
4436
|
});
|
|
4353
4437
|
}
|
|
4354
|
-
var
|
|
4438
|
+
var Ka = {
|
|
4355
4439
|
wrapper: "_wrapper_1upmq_1",
|
|
4356
4440
|
svg: "_svg_1upmq_10",
|
|
4357
4441
|
label: "_label_1upmq_15",
|
|
@@ -4456,22 +4540,22 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4456
4540
|
].map((e) => ({
|
|
4457
4541
|
row: (e - s + 7) % 7,
|
|
4458
4542
|
label: Ja[e]
|
|
4459
|
-
})), [s]), M = l ? Ya : 0, N = c ? Xa : 0, P = M + m * y - o, F = N + 7 * y - o,
|
|
4460
|
-
function
|
|
4543
|
+
})), [s]), M = l ? Ya : 0, N = c ? Xa : 0, P = M + m * y - o, F = N + 7 * y - o, I = Math.min(4, Math.floor(a / 3));
|
|
4544
|
+
function ee(e, t) {
|
|
4461
4545
|
let n = Math.max(0, Math.min(m - 1, e)), r = Math.max(0, Math.min(6, t));
|
|
4462
4546
|
w({
|
|
4463
4547
|
col: n,
|
|
4464
4548
|
row: r
|
|
4465
4549
|
}), b.current?.querySelector(`[data-col="${n}"][data-row="${r}"]`)?.focus();
|
|
4466
4550
|
}
|
|
4467
|
-
function
|
|
4551
|
+
function te(e, t, n) {
|
|
4468
4552
|
let r = {
|
|
4469
4553
|
ArrowRight: [t + 1, n],
|
|
4470
4554
|
ArrowLeft: [t - 1, n],
|
|
4471
4555
|
ArrowDown: [t, n + 1],
|
|
4472
4556
|
ArrowUp: [t, n - 1]
|
|
4473
4557
|
};
|
|
4474
|
-
if (r[e.key]) e.preventDefault(),
|
|
4558
|
+
if (r[e.key]) e.preventDefault(), ee(...r[e.key]);
|
|
4475
4559
|
else if (e.key === "Enter" || e.key === " ") {
|
|
4476
4560
|
e.preventDefault();
|
|
4477
4561
|
let r = k[t]?.[n];
|
|
@@ -4481,7 +4565,7 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4481
4565
|
});
|
|
4482
4566
|
}
|
|
4483
4567
|
}
|
|
4484
|
-
function
|
|
4568
|
+
function ne(e, t) {
|
|
4485
4569
|
let n = x.current;
|
|
4486
4570
|
if (!n) return;
|
|
4487
4571
|
let r = n.getBoundingClientRect(), i = e.currentTarget.getBoundingClientRect();
|
|
@@ -4491,10 +4575,10 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4491
4575
|
text: t
|
|
4492
4576
|
});
|
|
4493
4577
|
}
|
|
4494
|
-
function
|
|
4578
|
+
function re(e) {
|
|
4495
4579
|
return e.future ? S[0] : S[Math.min(e.level, S.length - 1)] ?? S[S.length - 1];
|
|
4496
4580
|
}
|
|
4497
|
-
function
|
|
4581
|
+
function ie(e) {
|
|
4498
4582
|
return e.future ? eo(e.iso) : _?.({
|
|
4499
4583
|
date: e.iso,
|
|
4500
4584
|
count: e.count
|
|
@@ -4502,26 +4586,26 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4502
4586
|
}
|
|
4503
4587
|
return /* @__PURE__ */ n("div", {
|
|
4504
4588
|
ref: x,
|
|
4505
|
-
className: [
|
|
4589
|
+
className: [Ka.wrapper, v].filter(Boolean).join(" "),
|
|
4506
4590
|
children: [
|
|
4507
4591
|
/* @__PURE__ */ n("svg", {
|
|
4508
4592
|
ref: b,
|
|
4509
4593
|
width: P,
|
|
4510
4594
|
height: F,
|
|
4511
|
-
className:
|
|
4595
|
+
className: Ka.svg,
|
|
4512
4596
|
"aria-label": h,
|
|
4513
4597
|
role: "img",
|
|
4514
4598
|
children: [
|
|
4515
4599
|
c && A.map(({ col: e, month: n }) => /* @__PURE__ */ t("text", {
|
|
4516
4600
|
x: M + e * y,
|
|
4517
4601
|
y: 12,
|
|
4518
|
-
className:
|
|
4602
|
+
className: Ka.label,
|
|
4519
4603
|
children: n
|
|
4520
4604
|
}, `m-${e}`)),
|
|
4521
4605
|
l && j.map(({ row: e, label: n }) => /* @__PURE__ */ t("text", {
|
|
4522
4606
|
x: 0,
|
|
4523
4607
|
y: N + e * y + a - 1,
|
|
4524
|
-
className:
|
|
4608
|
+
className: Ka.label,
|
|
4525
4609
|
children: n
|
|
4526
4610
|
}, `d-${e}`)),
|
|
4527
4611
|
/* @__PURE__ */ t("g", {
|
|
@@ -4530,7 +4614,7 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4530
4614
|
children: k.map((e, n) => /* @__PURE__ */ t("g", {
|
|
4531
4615
|
role: "row",
|
|
4532
4616
|
children: e.map((e, r) => {
|
|
4533
|
-
let i =
|
|
4617
|
+
let i = ie(e), o = C.col === n && C.row === r;
|
|
4534
4618
|
return /* @__PURE__ */ t("rect", {
|
|
4535
4619
|
"data-col": n,
|
|
4536
4620
|
"data-row": r,
|
|
@@ -4538,10 +4622,10 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4538
4622
|
y: N + r * y,
|
|
4539
4623
|
width: a,
|
|
4540
4624
|
height: a,
|
|
4541
|
-
rx:
|
|
4542
|
-
fill:
|
|
4625
|
+
rx: I,
|
|
4626
|
+
fill: re(e),
|
|
4543
4627
|
opacity: e.future ? .35 : 1,
|
|
4544
|
-
className:
|
|
4628
|
+
className: Ka.cell,
|
|
4545
4629
|
role: "gridcell",
|
|
4546
4630
|
"aria-label": i,
|
|
4547
4631
|
"aria-disabled": e.future || void 0,
|
|
@@ -4550,12 +4634,12 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4550
4634
|
date: e.iso,
|
|
4551
4635
|
count: e.count
|
|
4552
4636
|
}),
|
|
4553
|
-
onKeyDown: (e) =>
|
|
4637
|
+
onKeyDown: (e) => te(e, n, r),
|
|
4554
4638
|
onFocus: () => w({
|
|
4555
4639
|
col: n,
|
|
4556
4640
|
row: r
|
|
4557
4641
|
}),
|
|
4558
|
-
onMouseEnter: (e) =>
|
|
4642
|
+
onMouseEnter: (e) => ne(e, i),
|
|
4559
4643
|
onMouseLeave: () => E(null)
|
|
4560
4644
|
}, `${n}-${r}`);
|
|
4561
4645
|
})
|
|
@@ -4564,7 +4648,7 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4564
4648
|
]
|
|
4565
4649
|
}),
|
|
4566
4650
|
T && /* @__PURE__ */ t("div", {
|
|
4567
|
-
className:
|
|
4651
|
+
className: Ka.tooltip,
|
|
4568
4652
|
style: {
|
|
4569
4653
|
left: T.x,
|
|
4570
4654
|
top: T.y
|
|
@@ -4573,26 +4657,26 @@ function to({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4573
4657
|
children: T.text
|
|
4574
4658
|
}),
|
|
4575
4659
|
u && /* @__PURE__ */ n("div", {
|
|
4576
|
-
className:
|
|
4660
|
+
className: Ka.legend,
|
|
4577
4661
|
children: [
|
|
4578
4662
|
/* @__PURE__ */ t("span", {
|
|
4579
|
-
className:
|
|
4663
|
+
className: Ka.legendLabel,
|
|
4580
4664
|
children: "Less"
|
|
4581
4665
|
}),
|
|
4582
4666
|
Array.from({ length: r + 1 }, (e, n) => /* @__PURE__ */ t("svg", {
|
|
4583
4667
|
width: a,
|
|
4584
4668
|
height: a,
|
|
4585
4669
|
"aria-hidden": "true",
|
|
4586
|
-
className:
|
|
4670
|
+
className: Ka.legendCell,
|
|
4587
4671
|
children: /* @__PURE__ */ t("rect", {
|
|
4588
4672
|
width: a,
|
|
4589
4673
|
height: a,
|
|
4590
|
-
rx:
|
|
4674
|
+
rx: I,
|
|
4591
4675
|
fill: S[Math.min(n, S.length - 1)]
|
|
4592
4676
|
})
|
|
4593
4677
|
}, n)),
|
|
4594
4678
|
/* @__PURE__ */ t("span", {
|
|
4595
|
-
className:
|
|
4679
|
+
className: Ka.legendLabel,
|
|
4596
4680
|
children: "More"
|
|
4597
4681
|
})
|
|
4598
4682
|
]
|
|
@@ -4769,6 +4853,6 @@ function io({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
4769
4853
|
});
|
|
4770
4854
|
}
|
|
4771
4855
|
//#endregion
|
|
4772
|
-
export {
|
|
4856
|
+
export { Et as ActionRow, ne as Avatar, je as Badge, Te as Banner, ua as Bin, g as Blockquote, aa as BottomSheet, ur as Box, Ot as BoxedList, Vr as BreakpointBin, v as Button, fa as ButtonContent, Ur as ButtonRow, M as Card, la as Carousel, sa as CarouselIndicatorDots, ca as CarouselIndicatorLines, si as CheckRow, ce as Checkbox, mr as Chip, Qn as Clamp, io as ColumnView, Ai as ComboRow, to as ContributionGraph, xn as Dialog, Bn as Dropdown, Mi as EntryRow, $r as ExpanderRow, ke as Footer, Qr as Frame, He as GNOME_BREAKPOINTS, De as HeaderBar, L as Icon, ri as InlineViewSwitcher, ii as InlineViewSwitcherItem, ir as Link, Xr as LinkedGroup, Yi as NavigationPage, $n as NavigationSplitView, Xi as NavigationView, er as OverlaySplitView, Pi as PasswordEntryRow, Ga as PathBar, Xn as Popover, Ha as PreferencesDialog, xa as PreferencesGroup, Ca as PreferencesPage, me as ProgressBar, fe as RadioButton, ze as SearchBar, ie as Separator, ha as ShortcutLabel, Fr as ShortcutsDialog, ft as Sidebar, ct as SidebarCollapsedContext, vt as SidebarItem, pt as SidebarSection, Gn as Slider, Jr as Spacer, St as SpinButton, Ri as SpinRow, P as Spinner, Gr as SplitButton, Ve as StatusPage, oe as Switch, oi as SwitchRow, Ct as TabBar, wt as TabItem, Tt as TabPanel, O as Text, ue as TextField, Ua as Timeline, Vt as Toast, Ht as Toaster, cr as ToggleGroup, lr as ToggleGroupItem, qr as Toolbar, _a as ToolbarView, _t as Tooltip, At as ViewSwitcher, nr as ViewSwitcherBar, jt as ViewSwitcherItem, zr as ViewSwitcherSidebar, Br as ViewSwitcherSidebarItem, ya as WindowTitle, fr as WrapBox, Ue as useBreakpoint, Ji as useNavigation, lt as useSidebarCollapsed };
|
|
4773
4857
|
|
|
4774
4858
|
//# sourceMappingURL=index.js.map
|