@gnome-ui/react 1.27.0 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AboutDialog/AboutDialog.d.ts +46 -0
- package/dist/components/AboutDialog/index.d.ts +2 -0
- package/dist/components/Dialog/Dialog.d.ts +2 -47
- package/dist/components/Dialog/dialogUtils.d.ts +10 -0
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1095 -1029
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ function ee({ size: e = "md", label: n = "Loading…", className: r, ...i }) {
|
|
|
172
172
|
...i
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
var
|
|
175
|
+
var te = {
|
|
176
176
|
avatar: "_avatar_1f2cd_3",
|
|
177
177
|
sm: "_sm_1f2cd_17",
|
|
178
178
|
md: "_md_1f2cd_22",
|
|
@@ -189,7 +189,7 @@ var I = {
|
|
|
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
|
+
}, ne = [
|
|
193
193
|
"blue",
|
|
194
194
|
"green",
|
|
195
195
|
"yellow",
|
|
@@ -200,20 +200,20 @@ var I = {
|
|
|
200
200
|
"teal",
|
|
201
201
|
"slate"
|
|
202
202
|
];
|
|
203
|
-
function
|
|
203
|
+
function re(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 ne[t % ne.length];
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function ie(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 ?
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
n ? null :
|
|
212
|
+
function ae({ name: e = "", src: n, alt: r, size: i = "md", color: a, className: o, ...s }) {
|
|
213
|
+
let c = a ?? (e ? re(e) : "blue"), l = ie(e), u = [
|
|
214
|
+
te.avatar,
|
|
215
|
+
te[i],
|
|
216
|
+
n ? null : te[`color-${c}`],
|
|
217
217
|
o
|
|
218
218
|
].filter(Boolean).join(" ");
|
|
219
219
|
return /* @__PURE__ */ t("span", {
|
|
@@ -224,25 +224,25 @@ function ie({ name: e = "", src: n, alt: r, size: i = "md", color: a, className:
|
|
|
224
224
|
children: n ? /* @__PURE__ */ t("img", {
|
|
225
225
|
src: n,
|
|
226
226
|
alt: r ?? e,
|
|
227
|
-
className:
|
|
227
|
+
className: te.image
|
|
228
228
|
}) : /* @__PURE__ */ t("span", {
|
|
229
229
|
"aria-hidden": "true",
|
|
230
|
-
className:
|
|
230
|
+
className: te.initials,
|
|
231
231
|
children: l
|
|
232
232
|
})
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var oe = {
|
|
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 se({ orientation: e = "horizontal", className: n, ...r }) {
|
|
243
243
|
let i = [
|
|
244
|
-
|
|
245
|
-
e === "vertical" ?
|
|
244
|
+
oe.separator,
|
|
245
|
+
e === "vertical" ? oe.vertical : oe.horizontal,
|
|
246
246
|
n
|
|
247
247
|
].filter(Boolean).join(" ");
|
|
248
248
|
return e === "vertical" ? /* @__PURE__ */ t("div", {
|
|
@@ -257,32 +257,32 @@ function oe({ orientation: e = "horizontal", className: n, ...r }) {
|
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/Switch/Switch.module.css
|
|
260
|
-
var
|
|
260
|
+
var ce = { switch: "_switch_1h6fk_3" };
|
|
261
261
|
//#endregion
|
|
262
262
|
//#region src/components/Switch/Switch.tsx
|
|
263
|
-
function
|
|
263
|
+
function le({ className: e, ...n }) {
|
|
264
264
|
return /* @__PURE__ */ t("input", {
|
|
265
265
|
type: "checkbox",
|
|
266
266
|
role: "switch",
|
|
267
|
-
className: [
|
|
267
|
+
className: [ce.switch, e].filter(Boolean).join(" "),
|
|
268
268
|
...n
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var ue = { checkbox: "_checkbox_jnffk_3" };
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/components/Checkbox/Checkbox.tsx
|
|
274
|
-
function
|
|
274
|
+
function de({ indeterminate: e = !1, className: n, ...r }) {
|
|
275
275
|
let i = m(null);
|
|
276
276
|
return u(() => {
|
|
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: [ue.checkbox, n].filter(Boolean).join(" "),
|
|
282
282
|
...r
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
var
|
|
285
|
+
var fe = {
|
|
286
286
|
wrapper: "_wrapper_q91d8_3",
|
|
287
287
|
disabled: "_disabled_q91d8_9",
|
|
288
288
|
label: "_label_q91d8_15",
|
|
@@ -293,14 +293,14 @@ var de = {
|
|
|
293
293
|
};
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/components/TextField/TextField.tsx
|
|
296
|
-
function
|
|
296
|
+
function pe({ label: e, helperText: r, error: i, id: a, className: o, disabled: s, ...c }) {
|
|
297
297
|
let l = d(), u = a ?? l, f = `${u}-help`;
|
|
298
298
|
return /* @__PURE__ */ n("div", {
|
|
299
|
-
className: [
|
|
299
|
+
className: [fe.wrapper, s ? fe.disabled : null].filter(Boolean).join(" "),
|
|
300
300
|
children: [
|
|
301
301
|
e && /* @__PURE__ */ t("label", {
|
|
302
302
|
htmlFor: u,
|
|
303
|
-
className:
|
|
303
|
+
className: fe.label,
|
|
304
304
|
children: e
|
|
305
305
|
}),
|
|
306
306
|
/* @__PURE__ */ t("input", {
|
|
@@ -309,31 +309,31 @@ function fe({ 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
|
+
fe.input,
|
|
313
|
+
i ? fe.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: [fe.hint, i ? fe.errorHint : null].filter(Boolean).join(" "),
|
|
321
321
|
children: i ?? r
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var me = { radio: "_radio_1vybt_3" };
|
|
327
327
|
//#endregion
|
|
328
328
|
//#region src/components/RadioButton/RadioButton.tsx
|
|
329
|
-
function
|
|
329
|
+
function he({ className: e, ...n }) {
|
|
330
330
|
return /* @__PURE__ */ t("input", {
|
|
331
331
|
type: "radio",
|
|
332
|
-
className: [
|
|
332
|
+
className: [me.radio, e].filter(Boolean).join(" "),
|
|
333
333
|
...n
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var ge = {
|
|
337
337
|
track: "_track_endpr_3",
|
|
338
338
|
fill: "_fill_endpr_14",
|
|
339
339
|
accent: "_accent_endpr_23",
|
|
@@ -345,7 +345,7 @@ var he = {
|
|
|
345
345
|
};
|
|
346
346
|
//#endregion
|
|
347
347
|
//#region src/components/ProgressBar/ProgressBar.tsx
|
|
348
|
-
function
|
|
348
|
+
function _e({ 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 ge({ 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: [ge.track, r].filter(Boolean).join(" "),
|
|
358
358
|
...o,
|
|
359
359
|
children: /* @__PURE__ */ t("div", {
|
|
360
360
|
className: [
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
s ?
|
|
361
|
+
ge.fill,
|
|
362
|
+
ge[n],
|
|
363
|
+
s ? ge.indeterminate : null
|
|
364
364
|
].filter(Boolean).join(" "),
|
|
365
365
|
style: s ? void 0 : { width: `${l}%` }
|
|
366
366
|
})
|
|
@@ -368,46 +368,46 @@ function ge({ 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 ve = "_banner_1x3b0_3", ye = "_message_1x3b0_17", be = "_actions_1x3b0_24", xe = "_actionBtn_1x3b0_33", Se = "_dismissBtn_1x3b0_55", Ce = "_info_1x3b0_85", we = "_warning_1x3b0_99", Te = "_error_1x3b0_113", Ee = "_success_1x3b0_127", De = {
|
|
372
|
+
banner: ve,
|
|
373
|
+
message: ye,
|
|
374
|
+
actions: be,
|
|
375
|
+
actionBtn: xe,
|
|
376
|
+
dismissBtn: Se,
|
|
377
|
+
info: Ce,
|
|
378
378
|
"actionBtn-info": "_actionBtn-info_1x3b0_90",
|
|
379
|
-
warning:
|
|
379
|
+
warning: we,
|
|
380
380
|
"actionBtn-warning": "_actionBtn-warning_1x3b0_104",
|
|
381
|
-
error:
|
|
381
|
+
error: Te,
|
|
382
382
|
"actionBtn-error": "_actionBtn-error_1x3b0_118",
|
|
383
|
-
success:
|
|
383
|
+
success: Ee,
|
|
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 Oe({ 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
|
+
De.banner,
|
|
394
|
+
De[e],
|
|
395
395
|
c
|
|
396
396
|
].filter(Boolean).join(" "),
|
|
397
397
|
...l,
|
|
398
398
|
children: [/* @__PURE__ */ t("span", {
|
|
399
|
-
className:
|
|
399
|
+
className: De.message,
|
|
400
400
|
children: r
|
|
401
401
|
}), (i || o) && /* @__PURE__ */ n("span", {
|
|
402
|
-
className:
|
|
402
|
+
className: De.actions,
|
|
403
403
|
children: [i && /* @__PURE__ */ t("button", {
|
|
404
404
|
type: "button",
|
|
405
|
-
className: [
|
|
405
|
+
className: [De.actionBtn, De[`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: De.dismissBtn,
|
|
411
411
|
onClick: s,
|
|
412
412
|
"aria-label": "Dismiss",
|
|
413
413
|
children: /* @__PURE__ */ t("svg", {
|
|
@@ -422,7 +422,7 @@ function De({ variant: e = "info", children: r, actionLabel: i, onAction: a, dis
|
|
|
422
422
|
})]
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var ke = {
|
|
426
426
|
headerBar: "_headerBar_1rr5r_3",
|
|
427
427
|
flat: "_flat_1rr5r_22",
|
|
428
428
|
slot: "_slot_1rr5r_29",
|
|
@@ -432,35 +432,35 @@ var Oe = {
|
|
|
432
432
|
};
|
|
433
433
|
//#endregion
|
|
434
434
|
//#region src/components/HeaderBar/HeaderBar.tsx
|
|
435
|
-
function
|
|
435
|
+
function Ae({ 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
|
+
ke.headerBar,
|
|
439
|
+
a ? ke.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: ke.slot,
|
|
446
446
|
children: r
|
|
447
447
|
}),
|
|
448
448
|
/* @__PURE__ */ t("div", {
|
|
449
|
-
className:
|
|
449
|
+
className: ke.titleSlot,
|
|
450
450
|
"aria-live": "polite",
|
|
451
451
|
children: typeof e == "string" ? /* @__PURE__ */ t("span", {
|
|
452
|
-
className:
|
|
452
|
+
className: ke.title,
|
|
453
453
|
children: e
|
|
454
454
|
}) : e
|
|
455
455
|
}),
|
|
456
456
|
/* @__PURE__ */ t("div", {
|
|
457
|
-
className: [
|
|
457
|
+
className: [ke.slot, ke.slotEnd].filter(Boolean).join(" "),
|
|
458
458
|
children: i
|
|
459
459
|
})
|
|
460
460
|
]
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
|
-
var
|
|
463
|
+
var je = {
|
|
464
464
|
footer: "_footer_10xz9_3",
|
|
465
465
|
flat: "_flat_10xz9_23",
|
|
466
466
|
slot: "_slot_10xz9_29",
|
|
@@ -469,31 +469,31 @@ var Ae = {
|
|
|
469
469
|
};
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region src/components/Footer/Footer.tsx
|
|
472
|
-
function
|
|
472
|
+
function Me({ 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
|
+
je.footer,
|
|
476
|
+
a ? je.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: je.slot,
|
|
483
483
|
children: e
|
|
484
484
|
}),
|
|
485
485
|
i != null && /* @__PURE__ */ t("div", {
|
|
486
|
-
className:
|
|
486
|
+
className: je.center,
|
|
487
487
|
children: i
|
|
488
488
|
}),
|
|
489
489
|
/* @__PURE__ */ t("div", {
|
|
490
|
-
className: [
|
|
490
|
+
className: [je.slot, je.slotEnd].filter(Boolean).join(" "),
|
|
491
491
|
children: r
|
|
492
492
|
})
|
|
493
493
|
]
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
|
-
var
|
|
496
|
+
var Ne = {
|
|
497
497
|
wrapper: "_wrapper_1apop_3",
|
|
498
498
|
badge: "_badge_1apop_11",
|
|
499
499
|
anchored: "_anchored_1apop_32",
|
|
@@ -506,24 +506,24 @@ var Me = {
|
|
|
506
506
|
};
|
|
507
507
|
//#endregion
|
|
508
508
|
//#region src/components/Badge/Badge.tsx
|
|
509
|
-
function
|
|
509
|
+
function Pe({ 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
|
+
Ne.badge,
|
|
513
|
+
Ne[e],
|
|
514
|
+
r ? Ne.dot : null,
|
|
515
|
+
a ? Ne.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: Ne.wrapper,
|
|
523
523
|
children: [a, c]
|
|
524
524
|
}) : c;
|
|
525
525
|
}
|
|
526
|
-
var
|
|
526
|
+
var Fe = {
|
|
527
527
|
countdownTimer: "_countdownTimer_twhbs_3",
|
|
528
528
|
value: "_value_twhbs_25",
|
|
529
529
|
accent: "_accent_twhbs_34",
|
|
@@ -534,7 +534,7 @@ var Pe = {
|
|
|
534
534
|
};
|
|
535
535
|
//#endregion
|
|
536
536
|
//#region src/components/CountDownTimer/CountDownTimer.tsx
|
|
537
|
-
function
|
|
537
|
+
function Ie({ start: e, end: n, format: r = "time", variant: i = "accent", action: a, className: o, ...s }) {
|
|
538
538
|
let [c, l] = h(null), [d, f] = h(!1);
|
|
539
539
|
if (u(() => {
|
|
540
540
|
let e = () => {
|
|
@@ -571,27 +571,27 @@ function Fe({ start: e, end: n, format: r = "time", variant: i = "accent", actio
|
|
|
571
571
|
}, m = c.isFinished ? "destructive" : i;
|
|
572
572
|
return /* @__PURE__ */ t("div", {
|
|
573
573
|
className: [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
c.isFinished ?
|
|
574
|
+
Fe.countdownTimer,
|
|
575
|
+
Fe[m],
|
|
576
|
+
c.isFinished ? Fe.finished : null,
|
|
577
577
|
o
|
|
578
578
|
].filter(Boolean).join(" "),
|
|
579
579
|
...s,
|
|
580
580
|
children: /* @__PURE__ */ t("span", {
|
|
581
|
-
className:
|
|
581
|
+
className: Fe.value,
|
|
582
582
|
children: p()
|
|
583
583
|
})
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
//#endregion
|
|
587
587
|
//#region src/components/Icon/Icon.tsx
|
|
588
|
-
var
|
|
588
|
+
var Le = {
|
|
589
589
|
sm: 12,
|
|
590
590
|
md: 16,
|
|
591
591
|
lg: 20
|
|
592
592
|
};
|
|
593
|
-
function
|
|
594
|
-
let s =
|
|
593
|
+
function I({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
594
|
+
let s = Le[n];
|
|
595
595
|
return /* @__PURE__ */ t("svg", {
|
|
596
596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
597
597
|
viewBox: e.viewBox,
|
|
@@ -612,49 +612,49 @@ function L({ icon: e, size: n = "md", label: r, width: i, height: a, ...o }) {
|
|
|
612
612
|
}
|
|
613
613
|
//#endregion
|
|
614
614
|
//#region ../icons/dist/index.js
|
|
615
|
-
var
|
|
615
|
+
var Re = {
|
|
616
616
|
viewBox: "0 0 16 16",
|
|
617
617
|
paths: [{
|
|
618
618
|
d: "m2.5 5 5.5 6 5.5-6z",
|
|
619
619
|
fillRule: "evenodd"
|
|
620
620
|
}]
|
|
621
|
-
},
|
|
621
|
+
}, ze = {
|
|
622
622
|
viewBox: "0 0 16 16",
|
|
623
623
|
paths: [{
|
|
624
624
|
d: "M2.5 11 8 5l5.5 6z",
|
|
625
625
|
fillRule: "evenodd"
|
|
626
626
|
}]
|
|
627
|
-
},
|
|
627
|
+
}, Be = {
|
|
628
628
|
viewBox: "0 0 16 16",
|
|
629
629
|
paths: [{
|
|
630
630
|
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",
|
|
631
631
|
fillRule: "evenodd"
|
|
632
632
|
}]
|
|
633
|
-
},
|
|
633
|
+
}, Ve = {
|
|
634
634
|
viewBox: "0 0 16 16",
|
|
635
635
|
paths: [{
|
|
636
636
|
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",
|
|
637
637
|
fillRule: "evenodd"
|
|
638
638
|
}]
|
|
639
|
-
},
|
|
639
|
+
}, He = {
|
|
640
640
|
viewBox: "0 0 16 16",
|
|
641
641
|
paths: [{
|
|
642
642
|
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",
|
|
643
643
|
fillRule: "evenodd"
|
|
644
644
|
}]
|
|
645
|
-
},
|
|
645
|
+
}, Ue = {
|
|
646
646
|
viewBox: "0 0 16 16",
|
|
647
647
|
paths: [{
|
|
648
648
|
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",
|
|
649
649
|
fillRule: "evenodd"
|
|
650
650
|
}]
|
|
651
|
-
},
|
|
651
|
+
}, We = {
|
|
652
652
|
viewBox: "0 0 16 16",
|
|
653
653
|
paths: [{
|
|
654
654
|
d: "M13.5 3 6 11.5 2.5 8 1 9.5l5 5 9-10z",
|
|
655
655
|
fillRule: "evenodd"
|
|
656
656
|
}]
|
|
657
|
-
},
|
|
657
|
+
}, L = {
|
|
658
658
|
wrapper: "_wrapper_ld6g1_3",
|
|
659
659
|
open: "_open_ld6g1_13",
|
|
660
660
|
bar: "_bar_ld6g1_20",
|
|
@@ -671,7 +671,7 @@ var Le = {
|
|
|
671
671
|
};
|
|
672
672
|
//#endregion
|
|
673
673
|
//#region src/components/SearchBar/SearchBar.tsx
|
|
674
|
-
function
|
|
674
|
+
function Ge({ open: r, onClose: i, onClear: a, children: o, value: s, onChange: l, placeholder: f = "Search…", disabled: p, inline: _ = !1, className: v, suggestions: y, onSuggestionSelect: b, loadingSuggestions: x = !1, renderSuggestion: S, suggestionsLabel: C = "Suggestions", ...w }) {
|
|
675
675
|
let T = m(null), E = m(null), D = m(null), O = d(), k = d(), [A, j] = h(-1), [M, N] = h(null), P = (y?.length ?? 0) > 0, F = r && (x || P);
|
|
676
676
|
u(() => {
|
|
677
677
|
j(-1);
|
|
@@ -703,7 +703,7 @@ function We({ open: r, onClose: i, onClear: a, children: o, value: s, onChange:
|
|
|
703
703
|
}, [F]), u(() => {
|
|
704
704
|
A < 0 || !D.current || D.current.children[A]?.scrollIntoView({ block: "nearest" });
|
|
705
705
|
}, [A]);
|
|
706
|
-
let
|
|
706
|
+
let te = c((e) => {
|
|
707
707
|
if (F && P && y) {
|
|
708
708
|
if (e.key === "ArrowDown") {
|
|
709
709
|
e.preventDefault(), j((e) => Math.min(e + 1, y.length - 1));
|
|
@@ -727,12 +727,12 @@ function We({ open: r, onClose: i, onClear: a, children: o, value: s, onChange:
|
|
|
727
727
|
y,
|
|
728
728
|
A,
|
|
729
729
|
b
|
|
730
|
-
]),
|
|
730
|
+
]), ne = s !== void 0 && s !== "", re = A >= 0 && y?.[A] ? `${k}-${y[A].id}` : void 0, ie = F && M ? g(/* @__PURE__ */ n("ul", {
|
|
731
731
|
ref: D,
|
|
732
732
|
role: "listbox",
|
|
733
733
|
"aria-label": C,
|
|
734
734
|
id: O,
|
|
735
|
-
className:
|
|
735
|
+
className: L.suggestionsPanel,
|
|
736
736
|
style: {
|
|
737
737
|
top: M.top,
|
|
738
738
|
left: M.left,
|
|
@@ -741,7 +741,7 @@ function We({ open: r, onClose: i, onClear: a, children: o, value: s, onChange:
|
|
|
741
741
|
onMouseDown: (e) => e.preventDefault(),
|
|
742
742
|
children: [x && /* @__PURE__ */ t("li", {
|
|
743
743
|
role: "presentation",
|
|
744
|
-
className:
|
|
744
|
+
className: L.suggestionsLoading,
|
|
745
745
|
children: /* @__PURE__ */ t(ee, {
|
|
746
746
|
size: "sm",
|
|
747
747
|
label: "Loading suggestions…"
|
|
@@ -750,7 +750,7 @@ function We({ open: r, onClose: i, onClear: a, children: o, value: s, onChange:
|
|
|
750
750
|
id: `${k}-${e.id}`,
|
|
751
751
|
role: "option",
|
|
752
752
|
"aria-selected": n === A,
|
|
753
|
-
className: [
|
|
753
|
+
className: [L.suggestionItem, n === A ? L.suggestionItemActive : null].filter(Boolean).join(" "),
|
|
754
754
|
onMouseEnter: () => j(n),
|
|
755
755
|
onMouseLeave: () => j(-1),
|
|
756
756
|
onClick: () => b?.(e),
|
|
@@ -760,23 +760,23 @@ function We({ open: r, onClose: i, onClear: a, children: o, value: s, onChange:
|
|
|
760
760
|
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ n("div", {
|
|
761
761
|
ref: E,
|
|
762
762
|
className: [
|
|
763
|
-
|
|
764
|
-
r ?
|
|
763
|
+
L.wrapper,
|
|
764
|
+
r ? L.open : null,
|
|
765
765
|
v
|
|
766
766
|
].filter(Boolean).join(" "),
|
|
767
767
|
"aria-hidden": !r,
|
|
768
768
|
children: [/* @__PURE__ */ n("div", {
|
|
769
769
|
className: [
|
|
770
|
-
|
|
771
|
-
_ ?
|
|
772
|
-
p ?
|
|
770
|
+
L.bar,
|
|
771
|
+
_ ? L.inline : null,
|
|
772
|
+
p ? L.disabled : null
|
|
773
773
|
].filter(Boolean).join(" "),
|
|
774
774
|
children: [
|
|
775
775
|
/* @__PURE__ */ t("span", {
|
|
776
|
-
className:
|
|
776
|
+
className: L.searchIcon,
|
|
777
777
|
"aria-hidden": !0,
|
|
778
|
-
children: /* @__PURE__ */ t(
|
|
779
|
-
icon:
|
|
778
|
+
children: /* @__PURE__ */ t(I, {
|
|
779
|
+
icon: Ve,
|
|
780
780
|
size: "md"
|
|
781
781
|
})
|
|
782
782
|
}),
|
|
@@ -787,38 +787,38 @@ function We({ open: r, onClose: i, onClear: a, children: o, value: s, onChange:
|
|
|
787
787
|
"aria-autocomplete": "list",
|
|
788
788
|
"aria-expanded": F,
|
|
789
789
|
"aria-controls": F ? O : void 0,
|
|
790
|
-
"aria-activedescendant":
|
|
790
|
+
"aria-activedescendant": re,
|
|
791
791
|
value: s,
|
|
792
792
|
onChange: l,
|
|
793
793
|
placeholder: f,
|
|
794
794
|
disabled: p,
|
|
795
795
|
tabIndex: r ? void 0 : -1,
|
|
796
|
-
className:
|
|
797
|
-
onKeyDown:
|
|
796
|
+
className: L.input,
|
|
797
|
+
onKeyDown: te,
|
|
798
798
|
...w
|
|
799
799
|
}),
|
|
800
|
-
|
|
800
|
+
ne && /* @__PURE__ */ t("button", {
|
|
801
801
|
type: "button",
|
|
802
|
-
className:
|
|
802
|
+
className: L.clearButton,
|
|
803
803
|
"aria-label": "Clear search",
|
|
804
804
|
tabIndex: r ? void 0 : -1,
|
|
805
805
|
disabled: p,
|
|
806
806
|
onClick: () => {
|
|
807
807
|
a?.(), T.current?.focus();
|
|
808
808
|
},
|
|
809
|
-
children: /* @__PURE__ */ t(
|
|
810
|
-
icon:
|
|
809
|
+
children: /* @__PURE__ */ t(I, {
|
|
810
|
+
icon: Be,
|
|
811
811
|
size: "md"
|
|
812
812
|
})
|
|
813
813
|
})
|
|
814
814
|
]
|
|
815
815
|
}), o && /* @__PURE__ */ t("div", {
|
|
816
|
-
className:
|
|
816
|
+
className: L.filterRow,
|
|
817
817
|
children: o
|
|
818
818
|
})]
|
|
819
|
-
}), typeof document < "u" &&
|
|
819
|
+
}), typeof document < "u" && ie] });
|
|
820
820
|
}
|
|
821
|
-
var
|
|
821
|
+
var Ke = {
|
|
822
822
|
page: "_page_cb4hq_3",
|
|
823
823
|
iconWrap: "_iconWrap_cb4hq_20",
|
|
824
824
|
title: "_title_cb4hq_33",
|
|
@@ -828,8 +828,8 @@ var Ge = {
|
|
|
828
828
|
};
|
|
829
829
|
//#endregion
|
|
830
830
|
//#region src/components/StatusPage/StatusPage.tsx
|
|
831
|
-
function
|
|
832
|
-
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(
|
|
831
|
+
function qe({ icon: e, iconNode: r, title: i, description: a, children: o, compact: s = !1, className: c, ...l }) {
|
|
832
|
+
let u = s ? 64 : 128, d = e ? /* @__PURE__ */ t(I, {
|
|
833
833
|
icon: e,
|
|
834
834
|
width: u,
|
|
835
835
|
height: u,
|
|
@@ -837,27 +837,27 @@ function Ke({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
837
837
|
}) : r ?? null;
|
|
838
838
|
return /* @__PURE__ */ n("div", {
|
|
839
839
|
className: [
|
|
840
|
-
|
|
841
|
-
s ?
|
|
840
|
+
Ke.page,
|
|
841
|
+
s ? Ke.compact : null,
|
|
842
842
|
c
|
|
843
843
|
].filter(Boolean).join(" "),
|
|
844
844
|
...l,
|
|
845
845
|
children: [
|
|
846
846
|
d && /* @__PURE__ */ t("div", {
|
|
847
|
-
className:
|
|
847
|
+
className: Ke.iconWrap,
|
|
848
848
|
"aria-hidden": "true",
|
|
849
849
|
children: d
|
|
850
850
|
}),
|
|
851
851
|
/* @__PURE__ */ t("p", {
|
|
852
|
-
className:
|
|
852
|
+
className: Ke.title,
|
|
853
853
|
children: i
|
|
854
854
|
}),
|
|
855
855
|
a && /* @__PURE__ */ t("p", {
|
|
856
|
-
className:
|
|
856
|
+
className: Ke.description,
|
|
857
857
|
children: a
|
|
858
858
|
}),
|
|
859
859
|
o && /* @__PURE__ */ t("div", {
|
|
860
|
-
className:
|
|
860
|
+
className: Ke.actions,
|
|
861
861
|
children: o
|
|
862
862
|
})
|
|
863
863
|
]
|
|
@@ -865,18 +865,18 @@ function Ke({ icon: e, iconNode: r, title: i, description: a, children: o, compa
|
|
|
865
865
|
}
|
|
866
866
|
//#endregion
|
|
867
867
|
//#region src/hooks/useBreakpoint.ts
|
|
868
|
-
var
|
|
868
|
+
var Je = {
|
|
869
869
|
narrow: 400,
|
|
870
870
|
medium: 550,
|
|
871
871
|
wide: 860
|
|
872
872
|
};
|
|
873
|
-
function
|
|
873
|
+
function Ye() {
|
|
874
874
|
let e = () => {
|
|
875
875
|
let e = typeof window < "u" ? window.innerWidth : 1280;
|
|
876
876
|
return {
|
|
877
|
-
isNarrow: e <=
|
|
878
|
-
isMedium: e <=
|
|
879
|
-
isWide: e <=
|
|
877
|
+
isNarrow: e <= Je.narrow,
|
|
878
|
+
isMedium: e <= Je.medium,
|
|
879
|
+
isWide: e <= Je.wide,
|
|
880
880
|
width: e
|
|
881
881
|
};
|
|
882
882
|
}, [t, n] = h(e);
|
|
@@ -887,53 +887,53 @@ function Je() {
|
|
|
887
887
|
}
|
|
888
888
|
//#endregion
|
|
889
889
|
//#region src/components/Sidebar/Sidebar.module.css
|
|
890
|
-
var
|
|
891
|
-
sidebar:
|
|
892
|
-
section:
|
|
893
|
-
sectionHeader:
|
|
894
|
-
sectionHeaderIcon:
|
|
895
|
-
sectionTitle:
|
|
896
|
-
sectionChevron:
|
|
897
|
-
sectionBody:
|
|
898
|
-
sectionBodyCollapsed:
|
|
899
|
-
sectionBodyInner:
|
|
900
|
-
list:
|
|
901
|
-
item:
|
|
902
|
-
itemBtn:
|
|
903
|
-
active:
|
|
904
|
-
itemIcon:
|
|
905
|
-
itemLabel:
|
|
906
|
-
itemSuffix:
|
|
907
|
-
contextMenu:
|
|
890
|
+
var Xe = "_sidebar_537se_3", Ze = "_section_537se_21", Qe = "_sectionHeader_537se_35", $e = "_sectionHeaderIcon_537se_71", et = "_sectionTitle_537se_78", tt = "_sectionChevron_537se_94", nt = "_sectionBody_537se_104", rt = "_sectionBodyCollapsed_537se_110", it = "_sectionBodyInner_537se_114", at = "_list_537se_120", ot = "_item_537se_131", st = "_itemBtn_537se_137", ct = "_active_537se_184", lt = "_itemIcon_537se_200", ut = "_itemLabel_537se_213", dt = "_itemSuffix_537se_223", ft = "_contextMenu_537se_232", pt = "_contextMenuItem_537se_256", mt = "_contextMenuDestructive_537se_292", ht = "_searchWrap_537se_298", gt = "_variantBlue_537se_309", _t = "_variantGreen_537se_318", vt = "_variantRed_537se_327", yt = "_variantYellow_537se_336", bt = "_variantBlack_537se_345", xt = "_variantTransparent_537se_354", St = "_variantBlurred_537se_359", Ct = "_pageMode_537se_375", wt = "_dragOver_537se_382", Tt = "_collapsed_537se_390", Et = "_itemCollapsed_537se_401", R = {
|
|
891
|
+
sidebar: Xe,
|
|
892
|
+
section: Ze,
|
|
893
|
+
sectionHeader: Qe,
|
|
894
|
+
sectionHeaderIcon: $e,
|
|
895
|
+
sectionTitle: et,
|
|
896
|
+
sectionChevron: tt,
|
|
897
|
+
sectionBody: nt,
|
|
898
|
+
sectionBodyCollapsed: rt,
|
|
899
|
+
sectionBodyInner: it,
|
|
900
|
+
list: at,
|
|
901
|
+
item: ot,
|
|
902
|
+
itemBtn: st,
|
|
903
|
+
active: ct,
|
|
904
|
+
itemIcon: lt,
|
|
905
|
+
itemLabel: ut,
|
|
906
|
+
itemSuffix: dt,
|
|
907
|
+
contextMenu: ft,
|
|
908
908
|
"menu-in": "_menu-in_537se_1",
|
|
909
|
-
contextMenuItem:
|
|
910
|
-
contextMenuDestructive:
|
|
911
|
-
searchWrap:
|
|
912
|
-
variantBlue:
|
|
913
|
-
variantGreen:
|
|
914
|
-
variantRed:
|
|
915
|
-
variantYellow:
|
|
916
|
-
variantBlack:
|
|
917
|
-
variantTransparent:
|
|
918
|
-
variantBlurred:
|
|
919
|
-
pageMode:
|
|
920
|
-
dragOver:
|
|
921
|
-
collapsed:
|
|
922
|
-
itemCollapsed:
|
|
923
|
-
},
|
|
924
|
-
function
|
|
925
|
-
return l(
|
|
909
|
+
contextMenuItem: pt,
|
|
910
|
+
contextMenuDestructive: mt,
|
|
911
|
+
searchWrap: ht,
|
|
912
|
+
variantBlue: gt,
|
|
913
|
+
variantGreen: _t,
|
|
914
|
+
variantRed: vt,
|
|
915
|
+
variantYellow: yt,
|
|
916
|
+
variantBlack: bt,
|
|
917
|
+
variantTransparent: xt,
|
|
918
|
+
variantBlurred: St,
|
|
919
|
+
pageMode: Ct,
|
|
920
|
+
dragOver: wt,
|
|
921
|
+
collapsed: Tt,
|
|
922
|
+
itemCollapsed: Et
|
|
923
|
+
}, Dt = a(!1);
|
|
924
|
+
function Ot() {
|
|
925
|
+
return l(Dt);
|
|
926
926
|
}
|
|
927
|
-
var
|
|
928
|
-
function
|
|
927
|
+
var kt = a("");
|
|
928
|
+
function At(e, t) {
|
|
929
929
|
let n = 0;
|
|
930
930
|
return r.forEach(e, (e) => {
|
|
931
931
|
if (!s(e)) return;
|
|
932
932
|
let r = e.props;
|
|
933
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
933
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += At(r.children, t));
|
|
934
934
|
}), n;
|
|
935
935
|
}
|
|
936
|
-
var
|
|
936
|
+
var jt = {
|
|
937
937
|
blue: "variantBlue",
|
|
938
938
|
green: "variantGreen",
|
|
939
939
|
red: "variantRed",
|
|
@@ -942,26 +942,26 @@ var At = {
|
|
|
942
942
|
transparent: "variantTransparent",
|
|
943
943
|
blurred: "variantBlurred"
|
|
944
944
|
};
|
|
945
|
-
function
|
|
946
|
-
let [d, f] = h(""), { isNarrow: p } =
|
|
945
|
+
function Mt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilterChange: o, mode: s, variant: c = "classic", className: l, ...u }) {
|
|
946
|
+
let [d, f] = h(""), { isNarrow: p } = Ye(), m = a !== void 0, g = m ? a : d, _ = (e) => {
|
|
947
947
|
m || f(e), o?.(e);
|
|
948
|
-
}, v = g.length > 0, y = s ?? (p ? "page" : "sidebar"), b = !v ||
|
|
949
|
-
return /* @__PURE__ */ t(
|
|
948
|
+
}, v = g.length > 0, y = s ?? (p ? "page" : "sidebar"), b = !v || At(e, g) > 0;
|
|
949
|
+
return /* @__PURE__ */ t(Dt.Provider, {
|
|
950
950
|
value: r,
|
|
951
|
-
children: /* @__PURE__ */ t(
|
|
951
|
+
children: /* @__PURE__ */ t(kt.Provider, {
|
|
952
952
|
value: g,
|
|
953
953
|
children: /* @__PURE__ */ n("nav", {
|
|
954
954
|
className: [
|
|
955
|
-
|
|
956
|
-
r ?
|
|
957
|
-
y === "page" ?
|
|
958
|
-
c === "classic" ? null :
|
|
955
|
+
R.sidebar,
|
|
956
|
+
r ? R.collapsed : null,
|
|
957
|
+
y === "page" ? R.pageMode : null,
|
|
958
|
+
c === "classic" ? null : R[jt[c]],
|
|
959
959
|
l
|
|
960
960
|
].filter(Boolean).join(" "),
|
|
961
961
|
...u,
|
|
962
962
|
children: [i && /* @__PURE__ */ t("div", {
|
|
963
|
-
className:
|
|
964
|
-
children: /* @__PURE__ */ t(
|
|
963
|
+
className: R.searchWrap,
|
|
964
|
+
children: /* @__PURE__ */ t(Ge, {
|
|
965
965
|
open: !0,
|
|
966
966
|
value: g,
|
|
967
967
|
onChange: (e) => _(e.target.value),
|
|
@@ -969,7 +969,7 @@ function jt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
969
969
|
onClear: () => _(""),
|
|
970
970
|
inline: !0
|
|
971
971
|
})
|
|
972
|
-
}), v && !b ? /* @__PURE__ */ t(
|
|
972
|
+
}), v && !b ? /* @__PURE__ */ t(qe, {
|
|
973
973
|
title: "No Results",
|
|
974
974
|
description: "No items match your search.",
|
|
975
975
|
compact: !0
|
|
@@ -980,91 +980,91 @@ function jt({ children: e, collapsed: r = !1, searchable: i, filter: a, onFilter
|
|
|
980
980
|
}
|
|
981
981
|
//#endregion
|
|
982
982
|
//#region src/components/Sidebar/SidebarSection.tsx
|
|
983
|
-
function
|
|
983
|
+
function Nt(e, t) {
|
|
984
984
|
let n = 0;
|
|
985
985
|
return r.forEach(e, (e) => {
|
|
986
986
|
if (!s(e)) return;
|
|
987
987
|
let r = e.props;
|
|
988
|
-
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n +=
|
|
988
|
+
typeof r.label == "string" ? r.label.toLowerCase().includes(t.toLowerCase()) && n++ : r.children && (n += Nt(r.children, t));
|
|
989
989
|
}), n;
|
|
990
990
|
}
|
|
991
|
-
var
|
|
992
|
-
let [g, _] = h(a), v = o !== void 0, y = v ? o : g, b =
|
|
991
|
+
var Pt = o(function({ title: e, icon: r, collapsible: i = !1, defaultOpen: a = !0, open: o, onOpenChange: s, children: c, className: u, ...p }, m) {
|
|
992
|
+
let [g, _] = h(a), v = o !== void 0, y = v ? o : g, b = Ot(), x = l(kt), S = d(), C = (e) => {
|
|
993
993
|
v || _(e), s?.(e);
|
|
994
994
|
};
|
|
995
995
|
if (f(m, () => ({
|
|
996
996
|
expand: () => C(!0),
|
|
997
997
|
collapse: () => C(!1),
|
|
998
998
|
toggle: () => C(!y)
|
|
999
|
-
})), !(x.length === 0 ||
|
|
999
|
+
})), !(x.length === 0 || Nt(c, x) > 0)) return null;
|
|
1000
1000
|
let w = b ? !0 : y, T = !!(e || r || i && !b);
|
|
1001
1001
|
return /* @__PURE__ */ n("section", {
|
|
1002
|
-
className: [
|
|
1002
|
+
className: [R.section, u].filter(Boolean).join(" "),
|
|
1003
1003
|
...p,
|
|
1004
1004
|
children: [T && (i && !b ? /* @__PURE__ */ n("button", {
|
|
1005
1005
|
type: "button",
|
|
1006
|
-
className:
|
|
1006
|
+
className: R.sectionHeader,
|
|
1007
1007
|
onClick: () => C(!y),
|
|
1008
1008
|
"aria-expanded": y,
|
|
1009
1009
|
"aria-controls": S,
|
|
1010
1010
|
children: [
|
|
1011
1011
|
r && /* @__PURE__ */ t("span", {
|
|
1012
|
-
className:
|
|
1013
|
-
children: /* @__PURE__ */ t(
|
|
1012
|
+
className: R.sectionHeaderIcon,
|
|
1013
|
+
children: /* @__PURE__ */ t(I, {
|
|
1014
1014
|
icon: r,
|
|
1015
1015
|
size: "sm",
|
|
1016
1016
|
"aria-hidden": !0
|
|
1017
1017
|
})
|
|
1018
1018
|
}),
|
|
1019
1019
|
e && /* @__PURE__ */ t("span", {
|
|
1020
|
-
className:
|
|
1020
|
+
className: R.sectionTitle,
|
|
1021
1021
|
children: e
|
|
1022
1022
|
}),
|
|
1023
1023
|
/* @__PURE__ */ t("span", {
|
|
1024
|
-
className:
|
|
1025
|
-
children: /* @__PURE__ */ t(
|
|
1026
|
-
icon: y ?
|
|
1024
|
+
className: R.sectionChevron,
|
|
1025
|
+
children: /* @__PURE__ */ t(I, {
|
|
1026
|
+
icon: y ? ze : Re,
|
|
1027
1027
|
size: "sm",
|
|
1028
1028
|
"aria-hidden": !0
|
|
1029
1029
|
})
|
|
1030
1030
|
})
|
|
1031
1031
|
]
|
|
1032
1032
|
}) : /* @__PURE__ */ n("div", {
|
|
1033
|
-
className:
|
|
1033
|
+
className: R.sectionHeader,
|
|
1034
1034
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1035
|
-
className:
|
|
1036
|
-
children: /* @__PURE__ */ t(
|
|
1035
|
+
className: R.sectionHeaderIcon,
|
|
1036
|
+
children: /* @__PURE__ */ t(I, {
|
|
1037
1037
|
icon: r,
|
|
1038
1038
|
size: "sm",
|
|
1039
1039
|
"aria-hidden": !0
|
|
1040
1040
|
})
|
|
1041
1041
|
}), e && /* @__PURE__ */ t("span", {
|
|
1042
|
-
className:
|
|
1042
|
+
className: R.sectionTitle,
|
|
1043
1043
|
children: e
|
|
1044
1044
|
})]
|
|
1045
1045
|
})), /* @__PURE__ */ t("div", {
|
|
1046
1046
|
id: S,
|
|
1047
|
-
className: [
|
|
1047
|
+
className: [R.sectionBody, w ? null : R.sectionBodyCollapsed].filter(Boolean).join(" "),
|
|
1048
1048
|
"aria-hidden": !w || void 0,
|
|
1049
1049
|
children: /* @__PURE__ */ t("div", {
|
|
1050
|
-
className:
|
|
1050
|
+
className: R.sectionBodyInner,
|
|
1051
1051
|
children: /* @__PURE__ */ t("ul", {
|
|
1052
1052
|
role: "list",
|
|
1053
|
-
className:
|
|
1053
|
+
className: R.list,
|
|
1054
1054
|
children: c
|
|
1055
1055
|
})
|
|
1056
1056
|
})
|
|
1057
1057
|
})]
|
|
1058
1058
|
});
|
|
1059
|
-
}),
|
|
1059
|
+
}), Ft = {
|
|
1060
1060
|
tooltip: "_tooltip_y4het_3",
|
|
1061
1061
|
visible: "_visible_y4het_29",
|
|
1062
1062
|
top: "_top_y4het_55",
|
|
1063
1063
|
bottom: "_bottom_y4het_62",
|
|
1064
1064
|
left: "_left_y4het_69",
|
|
1065
1065
|
right: "_right_y4het_76"
|
|
1066
|
-
},
|
|
1067
|
-
function
|
|
1066
|
+
}, It = 6;
|
|
1067
|
+
function Lt(e, t, n) {
|
|
1068
1068
|
let r = window.innerWidth, i = window.innerHeight, a = [
|
|
1069
1069
|
n,
|
|
1070
1070
|
n === "top" || n === "bottom" ? n === "top" ? "bottom" : "top" : n === "left" ? "right" : "left",
|
|
@@ -1075,7 +1075,7 @@ function It(e, t, n) {
|
|
|
1075
1075
|
];
|
|
1076
1076
|
for (let n of a) {
|
|
1077
1077
|
let a = 0, o = 0;
|
|
1078
|
-
n === "top" ? (a = e.top - t.height -
|
|
1078
|
+
n === "top" ? (a = e.top - t.height - It, o = e.left + e.width / 2 - t.width / 2) : n === "bottom" ? (a = e.bottom + It, 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 - It) : (a = e.top + e.height / 2 - t.height / 2, o = e.right + It);
|
|
1079
1079
|
let s = o >= 8 && o + t.width <= r - 8, c = a >= 8 && a + t.height <= i - 8;
|
|
1080
1080
|
if (s && c) return {
|
|
1081
1081
|
top: Math.max(8, Math.min(a, i - t.height - 8)),
|
|
@@ -1084,17 +1084,17 @@ function It(e, t, n) {
|
|
|
1084
1084
|
};
|
|
1085
1085
|
}
|
|
1086
1086
|
let o = 0, s = 0;
|
|
1087
|
-
return n === "top" && (o = e.top - t.height -
|
|
1087
|
+
return n === "top" && (o = e.top - t.height - It, s = e.left + e.width / 2 - t.width / 2), n === "bottom" && (o = e.bottom + It, 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 - It), n === "right" && (o = e.top + e.height / 2 - t.height / 2, s = e.right + It), {
|
|
1088
1088
|
top: Math.max(8, Math.min(o, i - t.height - 8)),
|
|
1089
1089
|
left: Math.max(8, Math.min(s, window.innerWidth - t.width - 8)),
|
|
1090
1090
|
placement: n
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function Rt({ label: r, placement: a = "top", delay: o = 500, children: s }) {
|
|
1094
1094
|
let l = d(), [f, p] = h(!1), [_, v] = h(null), y = m(null), b = m(null), x = m(null), S = () => {
|
|
1095
1095
|
x.current &&= (clearTimeout(x.current), null);
|
|
1096
1096
|
}, C = c(() => {
|
|
1097
|
-
!y.current || !b.current || v(
|
|
1097
|
+
!y.current || !b.current || v(Lt(y.current.getBoundingClientRect(), b.current.getBoundingClientRect(), a));
|
|
1098
1098
|
}, [a]);
|
|
1099
1099
|
u(() => {
|
|
1100
1100
|
if (f) return C(), window.addEventListener("scroll", C, {
|
|
@@ -1138,9 +1138,9 @@ function Lt({ label: r, placement: a = "top", delay: o = 500, children: s }) {
|
|
|
1138
1138
|
id: l,
|
|
1139
1139
|
role: "tooltip",
|
|
1140
1140
|
className: [
|
|
1141
|
-
|
|
1142
|
-
_ ?
|
|
1143
|
-
f && _ ?
|
|
1141
|
+
Ft.tooltip,
|
|
1142
|
+
_ ? Ft[_.placement] : null,
|
|
1143
|
+
f && _ ? Ft.visible : null
|
|
1144
1144
|
].filter(Boolean).join(" "),
|
|
1145
1145
|
style: _ ? {
|
|
1146
1146
|
top: _.top,
|
|
@@ -1156,8 +1156,8 @@ function Lt({ label: r, placement: a = "top", delay: o = 500, children: s }) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
//#endregion
|
|
1158
1158
|
//#region src/components/Sidebar/SidebarItem.tsx
|
|
1159
|
-
function
|
|
1160
|
-
let y =
|
|
1159
|
+
function zt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: s, menuItems: d, onDrop: f, acceptTypes: p, className: _, ...v }) {
|
|
1160
|
+
let y = Ot(), b = l(kt), x = a ?? o, S = y ? s ?? e : s, C = b.length > 0 && !e.toLowerCase().includes(b.toLowerCase()), [w, T] = h(!1), E = (e) => {
|
|
1161
1161
|
f && (p?.length && !p.some((t) => e.dataTransfer.types.includes(t)) || (e.preventDefault(), T(!0)));
|
|
1162
1162
|
}, D = () => T(!1), O = (e) => {
|
|
1163
1163
|
f && (e.preventDefault(), T(!1), f(e));
|
|
@@ -1190,10 +1190,10 @@ function Rt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: s
|
|
|
1190
1190
|
"aria-current": i ? "page" : void 0,
|
|
1191
1191
|
"aria-label": y ? e : void 0,
|
|
1192
1192
|
className: [
|
|
1193
|
-
|
|
1194
|
-
i ?
|
|
1195
|
-
y ?
|
|
1196
|
-
w ?
|
|
1193
|
+
R.itemBtn,
|
|
1194
|
+
i ? R.active : null,
|
|
1195
|
+
y ? R.itemCollapsed : null,
|
|
1196
|
+
w ? R.dragOver : null,
|
|
1197
1197
|
_
|
|
1198
1198
|
].filter(Boolean).join(" "),
|
|
1199
1199
|
onContextMenu: P,
|
|
@@ -1204,33 +1204,33 @@ function Rt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: s
|
|
|
1204
1204
|
...v,
|
|
1205
1205
|
children: [
|
|
1206
1206
|
r && /* @__PURE__ */ t("span", {
|
|
1207
|
-
className:
|
|
1208
|
-
children: /* @__PURE__ */ t(
|
|
1207
|
+
className: R.itemIcon,
|
|
1208
|
+
children: /* @__PURE__ */ t(I, {
|
|
1209
1209
|
icon: r,
|
|
1210
1210
|
size: "md",
|
|
1211
1211
|
"aria-hidden": !0
|
|
1212
1212
|
})
|
|
1213
1213
|
}),
|
|
1214
1214
|
!y && /* @__PURE__ */ t("span", {
|
|
1215
|
-
className:
|
|
1215
|
+
className: R.itemLabel,
|
|
1216
1216
|
children: e
|
|
1217
1217
|
}),
|
|
1218
1218
|
!y && x && /* @__PURE__ */ t("span", {
|
|
1219
|
-
className:
|
|
1219
|
+
className: R.itemSuffix,
|
|
1220
1220
|
children: x
|
|
1221
1221
|
})
|
|
1222
1222
|
]
|
|
1223
1223
|
});
|
|
1224
1224
|
return /* @__PURE__ */ n("li", {
|
|
1225
|
-
className:
|
|
1225
|
+
className: R.item,
|
|
1226
1226
|
hidden: C || void 0,
|
|
1227
|
-
children: [S ? /* @__PURE__ */ t(
|
|
1227
|
+
children: [S ? /* @__PURE__ */ t(Rt, {
|
|
1228
1228
|
label: S,
|
|
1229
1229
|
placement: "right",
|
|
1230
1230
|
children: ee
|
|
1231
1231
|
}) : ee, k && d?.length && typeof document < "u" && g(/* @__PURE__ */ t("div", {
|
|
1232
1232
|
ref: j,
|
|
1233
|
-
className:
|
|
1233
|
+
className: R.contextMenu,
|
|
1234
1234
|
style: {
|
|
1235
1235
|
top: k.y,
|
|
1236
1236
|
left: k.x
|
|
@@ -1240,7 +1240,7 @@ function Rt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: s
|
|
|
1240
1240
|
type: "button",
|
|
1241
1241
|
role: "menuitem",
|
|
1242
1242
|
disabled: e.disabled,
|
|
1243
|
-
className: [
|
|
1243
|
+
className: [R.contextMenuItem, e.destructive ? R.contextMenuDestructive : null].filter(Boolean).join(" "),
|
|
1244
1244
|
onClick: () => {
|
|
1245
1245
|
e.onClick(), N();
|
|
1246
1246
|
},
|
|
@@ -1249,7 +1249,7 @@ function Rt({ label: e, icon: r, active: i = !1, suffix: a, badge: o, tooltip: s
|
|
|
1249
1249
|
}), document.body)]
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
|
-
var
|
|
1252
|
+
var Bt = {
|
|
1253
1253
|
spin: "_spin_7d4yi_3",
|
|
1254
1254
|
disabled: "_disabled_7d4yi_36",
|
|
1255
1255
|
btn: "_btn_7d4yi_43",
|
|
@@ -1257,15 +1257,15 @@ var zt = {
|
|
|
1257
1257
|
};
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region src/components/SpinButton/SpinButton.tsx
|
|
1260
|
-
function
|
|
1260
|
+
function Vt(e) {
|
|
1261
1261
|
let t = e.toString(), n = t.indexOf(".");
|
|
1262
1262
|
return n === -1 ? 0 : t.length - n - 1;
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Ht(e, t, n) {
|
|
1265
1265
|
return Math.min(n, Math.max(t, e));
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
let m = s ??
|
|
1267
|
+
function Ut({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, decimals: s, disabled: l = !1, className: u, "aria-label": d, "aria-labelledby": f, ...p }) {
|
|
1268
|
+
let m = s ?? Vt(o), h = c((e) => r(parseFloat(Ht(e, i, a).toFixed(m))), [
|
|
1269
1269
|
r,
|
|
1270
1270
|
i,
|
|
1271
1271
|
a,
|
|
@@ -1309,8 +1309,8 @@ function Ht({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1309
1309
|
tabIndex: l ? -1 : 0,
|
|
1310
1310
|
onKeyDown: l ? void 0 : g,
|
|
1311
1311
|
className: [
|
|
1312
|
-
|
|
1313
|
-
l ?
|
|
1312
|
+
Bt.spin,
|
|
1313
|
+
l ? Bt.disabled : null,
|
|
1314
1314
|
u
|
|
1315
1315
|
].filter(Boolean).join(" "),
|
|
1316
1316
|
...p,
|
|
@@ -1320,12 +1320,12 @@ function Ht({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1320
1320
|
tabIndex: -1,
|
|
1321
1321
|
"aria-hidden": "true",
|
|
1322
1322
|
disabled: l || e <= i,
|
|
1323
|
-
className:
|
|
1323
|
+
className: Bt.btn,
|
|
1324
1324
|
onClick: () => h(e - o),
|
|
1325
1325
|
children: "−"
|
|
1326
1326
|
}),
|
|
1327
1327
|
/* @__PURE__ */ t("span", {
|
|
1328
|
-
className:
|
|
1328
|
+
className: Bt.value,
|
|
1329
1329
|
"aria-hidden": "true",
|
|
1330
1330
|
children: e.toFixed(m)
|
|
1331
1331
|
}),
|
|
@@ -1334,14 +1334,14 @@ function Ht({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, deci
|
|
|
1334
1334
|
tabIndex: -1,
|
|
1335
1335
|
"aria-hidden": "true",
|
|
1336
1336
|
disabled: l || e >= a,
|
|
1337
|
-
className:
|
|
1337
|
+
className: Bt.btn,
|
|
1338
1338
|
onClick: () => h(e + o),
|
|
1339
1339
|
children: "+"
|
|
1340
1340
|
})
|
|
1341
1341
|
]
|
|
1342
1342
|
});
|
|
1343
1343
|
}
|
|
1344
|
-
var
|
|
1344
|
+
var z = {
|
|
1345
1345
|
bar: "_bar_12ars_3",
|
|
1346
1346
|
list: "_list_12ars_10",
|
|
1347
1347
|
tab: "_tab_12ars_26",
|
|
@@ -1354,7 +1354,7 @@ var B = {
|
|
|
1354
1354
|
};
|
|
1355
1355
|
//#endregion
|
|
1356
1356
|
//#region src/components/Tabs/TabBar.tsx
|
|
1357
|
-
function
|
|
1357
|
+
function Wt({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs", ...a }) {
|
|
1358
1358
|
let o = m(null);
|
|
1359
1359
|
function s(e) {
|
|
1360
1360
|
let t = Array.from(o.current?.querySelectorAll("[role=tab]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1369,8 +1369,8 @@ function Ut({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1369
1369
|
}
|
|
1370
1370
|
return /* @__PURE__ */ t("div", {
|
|
1371
1371
|
className: [
|
|
1372
|
-
|
|
1373
|
-
r ?
|
|
1372
|
+
z.bar,
|
|
1373
|
+
r ? z.inline : null,
|
|
1374
1374
|
n
|
|
1375
1375
|
].filter(Boolean).join(" "),
|
|
1376
1376
|
...a,
|
|
@@ -1378,7 +1378,7 @@ function Ut({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1378
1378
|
ref: o,
|
|
1379
1379
|
role: "tablist",
|
|
1380
1380
|
"aria-label": i,
|
|
1381
|
-
className:
|
|
1381
|
+
className: z.list,
|
|
1382
1382
|
onKeyDown: s,
|
|
1383
1383
|
children: e
|
|
1384
1384
|
})
|
|
@@ -1386,7 +1386,7 @@ function Ut({ children: e, className: n, inline: r = !1, "aria-label": i = "Tabs
|
|
|
1386
1386
|
}
|
|
1387
1387
|
//#endregion
|
|
1388
1388
|
//#region src/components/Tabs/TabItem.tsx
|
|
1389
|
-
function
|
|
1389
|
+
function Gt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLabel: s = "Close tab", className: c, disabled: l, ...u }) {
|
|
1390
1390
|
return /* @__PURE__ */ n("button", {
|
|
1391
1391
|
role: "tab",
|
|
1392
1392
|
type: "button",
|
|
@@ -1395,30 +1395,30 @@ function Wt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1395
1395
|
tabIndex: i ? 0 : -1,
|
|
1396
1396
|
disabled: l,
|
|
1397
1397
|
className: [
|
|
1398
|
-
|
|
1399
|
-
i ?
|
|
1400
|
-
o ?
|
|
1398
|
+
z.tab,
|
|
1399
|
+
i ? z.active : null,
|
|
1400
|
+
o ? z.closeable : null,
|
|
1401
1401
|
c
|
|
1402
1402
|
].filter(Boolean).join(" "),
|
|
1403
1403
|
...u,
|
|
1404
1404
|
children: [
|
|
1405
1405
|
r && /* @__PURE__ */ t("span", {
|
|
1406
|
-
className:
|
|
1407
|
-
children: /* @__PURE__ */ t(
|
|
1406
|
+
className: z.tabIcon,
|
|
1407
|
+
children: /* @__PURE__ */ t(I, {
|
|
1408
1408
|
icon: r,
|
|
1409
1409
|
size: "sm",
|
|
1410
1410
|
"aria-hidden": !0
|
|
1411
1411
|
})
|
|
1412
1412
|
}),
|
|
1413
1413
|
/* @__PURE__ */ t("span", {
|
|
1414
|
-
className:
|
|
1414
|
+
className: z.tabLabel,
|
|
1415
1415
|
children: e
|
|
1416
1416
|
}),
|
|
1417
1417
|
o && /* @__PURE__ */ t("span", {
|
|
1418
1418
|
role: "button",
|
|
1419
1419
|
tabIndex: 0,
|
|
1420
1420
|
"aria-label": s,
|
|
1421
|
-
className:
|
|
1421
|
+
className: z.closeBtn,
|
|
1422
1422
|
onClick: (e) => {
|
|
1423
1423
|
e.stopPropagation(), o();
|
|
1424
1424
|
},
|
|
@@ -1432,18 +1432,18 @@ function Wt({ label: e, icon: r, active: i = !1, panelId: a, onClose: o, closeLa
|
|
|
1432
1432
|
}
|
|
1433
1433
|
//#endregion
|
|
1434
1434
|
//#region src/components/Tabs/TabPanel.tsx
|
|
1435
|
-
function
|
|
1435
|
+
function Kt({ id: e, active: n = !1, className: r, children: i, ...a }) {
|
|
1436
1436
|
return /* @__PURE__ */ t("div", {
|
|
1437
1437
|
id: e,
|
|
1438
1438
|
role: "tabpanel",
|
|
1439
1439
|
hidden: !n,
|
|
1440
1440
|
tabIndex: 0,
|
|
1441
|
-
className: [
|
|
1441
|
+
className: [z.panel, r].filter(Boolean).join(" "),
|
|
1442
1442
|
...a,
|
|
1443
1443
|
children: i
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
1446
|
-
var
|
|
1446
|
+
var qt = {
|
|
1447
1447
|
row: "_row_17clq_3",
|
|
1448
1448
|
leading: "_leading_17clq_16",
|
|
1449
1449
|
content: "_content_17clq_25",
|
|
@@ -1456,39 +1456,39 @@ var Kt = {
|
|
|
1456
1456
|
};
|
|
1457
1457
|
//#endregion
|
|
1458
1458
|
//#region src/components/ActionRow/ActionRow.tsx
|
|
1459
|
-
function
|
|
1459
|
+
function Jt({ title: e, subtitle: r, leading: i, trailing: a, interactive: o = !1, variant: s = "default", className: c, ...l }) {
|
|
1460
1460
|
let u = o ? "button" : "div", d = s === "property";
|
|
1461
1461
|
return /* @__PURE__ */ n(u, {
|
|
1462
1462
|
className: [
|
|
1463
|
-
|
|
1464
|
-
o ?
|
|
1465
|
-
d ?
|
|
1463
|
+
qt.row,
|
|
1464
|
+
o ? qt.interactive : null,
|
|
1465
|
+
d ? qt.property : null,
|
|
1466
1466
|
c
|
|
1467
1467
|
].filter(Boolean).join(" "),
|
|
1468
1468
|
...l,
|
|
1469
1469
|
children: [
|
|
1470
1470
|
i && /* @__PURE__ */ t("span", {
|
|
1471
|
-
className:
|
|
1471
|
+
className: qt.leading,
|
|
1472
1472
|
children: i
|
|
1473
1473
|
}),
|
|
1474
1474
|
/* @__PURE__ */ n("span", {
|
|
1475
|
-
className:
|
|
1475
|
+
className: qt.content,
|
|
1476
1476
|
children: [/* @__PURE__ */ t("span", {
|
|
1477
|
-
className: d ?
|
|
1477
|
+
className: d ? qt.propertyLabel : qt.title,
|
|
1478
1478
|
children: e
|
|
1479
1479
|
}), r && /* @__PURE__ */ t("span", {
|
|
1480
|
-
className: d ?
|
|
1480
|
+
className: d ? qt.propertyValue : qt.subtitle,
|
|
1481
1481
|
children: r
|
|
1482
1482
|
})]
|
|
1483
1483
|
}),
|
|
1484
1484
|
a && /* @__PURE__ */ t("span", {
|
|
1485
|
-
className:
|
|
1485
|
+
className: qt.trailing,
|
|
1486
1486
|
children: a
|
|
1487
1487
|
})
|
|
1488
1488
|
]
|
|
1489
1489
|
});
|
|
1490
1490
|
}
|
|
1491
|
-
var
|
|
1491
|
+
var Yt = {
|
|
1492
1492
|
list: "_list_1m4lm_3",
|
|
1493
1493
|
item: "_item_1m4lm_16",
|
|
1494
1494
|
separate: "_separate_1m4lm_37",
|
|
@@ -1497,23 +1497,23 @@ var Jt = {
|
|
|
1497
1497
|
};
|
|
1498
1498
|
//#endregion
|
|
1499
1499
|
//#region src/components/BoxedList/BoxedList.tsx
|
|
1500
|
-
function
|
|
1500
|
+
function Xt({ children: e, variant: i = "default", className: a, ...o }) {
|
|
1501
1501
|
let s = r.toArray(e).filter(Boolean), c = i === "separate";
|
|
1502
1502
|
return /* @__PURE__ */ t("ul", {
|
|
1503
1503
|
role: "list",
|
|
1504
1504
|
className: [
|
|
1505
|
-
|
|
1506
|
-
c ?
|
|
1505
|
+
Yt.list,
|
|
1506
|
+
c ? Yt.separate : null,
|
|
1507
1507
|
a
|
|
1508
1508
|
].filter(Boolean).join(" "),
|
|
1509
1509
|
...o,
|
|
1510
1510
|
children: s.map((e, r) => /* @__PURE__ */ n("li", {
|
|
1511
|
-
className: c ?
|
|
1512
|
-
children: [!c && r > 0 && /* @__PURE__ */ t(
|
|
1511
|
+
className: c ? Yt.separateItem : Yt.item,
|
|
1512
|
+
children: [!c && r > 0 && /* @__PURE__ */ t(se, { "aria-hidden": "true" }), e]
|
|
1513
1513
|
}, r))
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
|
-
var
|
|
1516
|
+
var Zt = {
|
|
1517
1517
|
switcher: "_switcher_1uh9r_3",
|
|
1518
1518
|
item: "_item_1uh9r_18",
|
|
1519
1519
|
active: "_active_1uh9r_45",
|
|
@@ -1522,7 +1522,7 @@ var Xt = {
|
|
|
1522
1522
|
};
|
|
1523
1523
|
//#endregion
|
|
1524
1524
|
//#region src/components/ViewSwitcher/ViewSwitcher.tsx
|
|
1525
|
-
function
|
|
1525
|
+
function Qt({ children: e, className: n, "aria-label": r = "View switcher", ...i }) {
|
|
1526
1526
|
let a = m(null);
|
|
1527
1527
|
function o(e) {
|
|
1528
1528
|
let t = Array.from(a.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -1540,14 +1540,14 @@ function Zt({ children: e, className: n, "aria-label": r = "View switcher", ...i
|
|
|
1540
1540
|
role: "radiogroup",
|
|
1541
1541
|
"aria-label": r,
|
|
1542
1542
|
onKeyDown: o,
|
|
1543
|
-
className: [
|
|
1543
|
+
className: [Zt.switcher, n].filter(Boolean).join(" "),
|
|
1544
1544
|
...i,
|
|
1545
1545
|
children: e
|
|
1546
1546
|
});
|
|
1547
1547
|
}
|
|
1548
1548
|
//#endregion
|
|
1549
1549
|
//#region src/components/ViewSwitcher/ViewSwitcherItem.tsx
|
|
1550
|
-
function
|
|
1550
|
+
function $t({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s }) {
|
|
1551
1551
|
return /* @__PURE__ */ n("button", {
|
|
1552
1552
|
type: "button",
|
|
1553
1553
|
role: "radio",
|
|
@@ -1555,40 +1555,40 @@ function Qt({ label: e, icon: r, active: i = !1, className: a, disabled: o, ...s
|
|
|
1555
1555
|
tabIndex: i ? 0 : -1,
|
|
1556
1556
|
disabled: o,
|
|
1557
1557
|
className: [
|
|
1558
|
-
|
|
1559
|
-
i ?
|
|
1558
|
+
Zt.item,
|
|
1559
|
+
i ? Zt.active : null,
|
|
1560
1560
|
a
|
|
1561
1561
|
].filter(Boolean).join(" "),
|
|
1562
1562
|
...s,
|
|
1563
1563
|
children: [r && /* @__PURE__ */ t("span", {
|
|
1564
|
-
className:
|
|
1565
|
-
children: /* @__PURE__ */ t(
|
|
1564
|
+
className: Zt.itemIcon,
|
|
1565
|
+
children: /* @__PURE__ */ t(I, {
|
|
1566
1566
|
icon: r,
|
|
1567
1567
|
size: "md",
|
|
1568
1568
|
"aria-hidden": !0
|
|
1569
1569
|
})
|
|
1570
1570
|
}), /* @__PURE__ */ t("span", {
|
|
1571
|
-
className:
|
|
1571
|
+
className: Zt.itemLabel,
|
|
1572
1572
|
children: e
|
|
1573
1573
|
})]
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
1576
|
//#endregion
|
|
1577
1577
|
//#region src/components/Toast/Toast.module.css
|
|
1578
|
-
var
|
|
1579
|
-
toaster:
|
|
1580
|
-
toasterBottom:
|
|
1581
|
-
toasterTop:
|
|
1582
|
-
toast:
|
|
1578
|
+
var en = "_toaster_1tgvb_3", tn = "_toasterBottom_1tgvb_18", nn = "_toasterTop_1tgvb_22", rn = "_toast_1tgvb_3", an = "_title_1tgvb_69", on = "_actions_1tgvb_76", sn = "_actionBtn_1tgvb_85", cn = "_dismissBtn_1tgvb_118", ln = {
|
|
1579
|
+
toaster: en,
|
|
1580
|
+
toasterBottom: tn,
|
|
1581
|
+
toasterTop: nn,
|
|
1582
|
+
toast: rn,
|
|
1583
1583
|
"toast-in": "_toast-in_1tgvb_1",
|
|
1584
|
-
title:
|
|
1585
|
-
actions:
|
|
1586
|
-
actionBtn:
|
|
1587
|
-
dismissBtn:
|
|
1584
|
+
title: an,
|
|
1585
|
+
actions: on,
|
|
1586
|
+
actionBtn: sn,
|
|
1587
|
+
dismissBtn: cn
|
|
1588
1588
|
};
|
|
1589
1589
|
//#endregion
|
|
1590
1590
|
//#region src/components/Toast/Toast.tsx
|
|
1591
|
-
function
|
|
1591
|
+
function un({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onAction: o, dismissible: s = !1, className: c, ...l }) {
|
|
1592
1592
|
let d = m(null), f = m(r), p = m(0), h = () => {
|
|
1593
1593
|
d.current &&= (clearTimeout(d.current), null);
|
|
1594
1594
|
}, g = (e) => {
|
|
@@ -1609,31 +1609,31 @@ function ln({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1609
1609
|
role: "status",
|
|
1610
1610
|
"aria-live": "polite",
|
|
1611
1611
|
"aria-atomic": "true",
|
|
1612
|
-
className: [
|
|
1612
|
+
className: [ln.toast, c].filter(Boolean).join(" "),
|
|
1613
1613
|
onMouseEnter: _,
|
|
1614
1614
|
onMouseLeave: v,
|
|
1615
1615
|
onFocus: _,
|
|
1616
1616
|
onBlur: v,
|
|
1617
1617
|
...l,
|
|
1618
1618
|
children: [/* @__PURE__ */ t("span", {
|
|
1619
|
-
className:
|
|
1619
|
+
className: ln.title,
|
|
1620
1620
|
children: e
|
|
1621
1621
|
}), (a || s) && /* @__PURE__ */ n("span", {
|
|
1622
|
-
className:
|
|
1622
|
+
className: ln.actions,
|
|
1623
1623
|
children: [a && /* @__PURE__ */ t("button", {
|
|
1624
1624
|
type: "button",
|
|
1625
|
-
className:
|
|
1625
|
+
className: ln.actionBtn,
|
|
1626
1626
|
onClick: y,
|
|
1627
1627
|
children: a
|
|
1628
1628
|
}), s && /* @__PURE__ */ t("button", {
|
|
1629
1629
|
type: "button",
|
|
1630
|
-
className:
|
|
1630
|
+
className: ln.dismissBtn,
|
|
1631
1631
|
"aria-label": "Dismiss",
|
|
1632
1632
|
onClick: () => {
|
|
1633
1633
|
h(), i?.();
|
|
1634
1634
|
},
|
|
1635
|
-
children: /* @__PURE__ */ t(
|
|
1636
|
-
icon:
|
|
1635
|
+
children: /* @__PURE__ */ t(I, {
|
|
1636
|
+
icon: Be,
|
|
1637
1637
|
size: "md",
|
|
1638
1638
|
"aria-hidden": !0
|
|
1639
1639
|
})
|
|
@@ -1643,12 +1643,12 @@ function ln({ title: e, duration: r = 3e3, onDismiss: i, actionLabel: a, onActio
|
|
|
1643
1643
|
}
|
|
1644
1644
|
//#endregion
|
|
1645
1645
|
//#region src/components/Toast/Toaster.tsx
|
|
1646
|
-
function
|
|
1646
|
+
function dn({ position: e = "bottom", children: n, container: r, className: i, ...a }) {
|
|
1647
1647
|
let o = /* @__PURE__ */ t("div", {
|
|
1648
1648
|
"aria-label": "Notifications",
|
|
1649
1649
|
className: [
|
|
1650
|
-
|
|
1651
|
-
e === "top" ?
|
|
1650
|
+
ln.toaster,
|
|
1651
|
+
e === "top" ? ln.toasterTop : ln.toasterBottom,
|
|
1652
1652
|
i
|
|
1653
1653
|
].filter(Boolean).join(" "),
|
|
1654
1654
|
...a,
|
|
@@ -1657,286 +1657,352 @@ function un({ position: e = "bottom", children: n, container: r, className: i, .
|
|
|
1657
1657
|
return typeof document > "u" ? o : g(o, r ?? document.body);
|
|
1658
1658
|
}
|
|
1659
1659
|
//#endregion
|
|
1660
|
-
//#region src/components/Dialog/
|
|
1661
|
-
var
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
aboutSection: En,
|
|
1683
|
-
aboutComments: Dn,
|
|
1684
|
-
aboutInfoList: On,
|
|
1685
|
-
aboutInfoLabel: kn,
|
|
1686
|
-
aboutInfoValue: An,
|
|
1687
|
-
aboutLink: jn,
|
|
1688
|
-
aboutCreditGroup: Mn,
|
|
1689
|
-
aboutCreditTitle: Nn,
|
|
1690
|
-
aboutCreditList: Pn,
|
|
1691
|
-
aboutCreditItem: Fn,
|
|
1692
|
-
aboutCopyright: In,
|
|
1693
|
-
aboutLicenseType: Ln,
|
|
1694
|
-
aboutLicenseText: Rn
|
|
1695
|
-
}, zn = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1696
|
-
function Bn(e, t) {
|
|
1660
|
+
//#region src/components/Dialog/dialogUtils.ts
|
|
1661
|
+
var fn = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1662
|
+
function pn() {
|
|
1663
|
+
let [e, t] = h({});
|
|
1664
|
+
return u(() => {
|
|
1665
|
+
let { visualViewport: e } = window;
|
|
1666
|
+
if (!e) return;
|
|
1667
|
+
let n = () => {
|
|
1668
|
+
let { offsetLeft: n, offsetTop: r, width: i, height: a } = e;
|
|
1669
|
+
t({
|
|
1670
|
+
top: r,
|
|
1671
|
+
left: n,
|
|
1672
|
+
width: i,
|
|
1673
|
+
height: a
|
|
1674
|
+
});
|
|
1675
|
+
};
|
|
1676
|
+
return n(), e.addEventListener("resize", n), e.addEventListener("scroll", n), () => {
|
|
1677
|
+
e.removeEventListener("resize", n), e.removeEventListener("scroll", n);
|
|
1678
|
+
};
|
|
1679
|
+
}, []), e;
|
|
1680
|
+
}
|
|
1681
|
+
function mn(e, t) {
|
|
1697
1682
|
if (e.key !== "Tab") return;
|
|
1698
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
1683
|
+
let n = Array.from(t.current?.querySelectorAll("button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? []);
|
|
1699
1684
|
if (!n.length) return;
|
|
1700
1685
|
let r = n[0], i = n[n.length - 1];
|
|
1701
1686
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
1702
1687
|
}
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1688
|
+
//#endregion
|
|
1689
|
+
//#region src/components/Dialog/Dialog.module.css
|
|
1690
|
+
var hn = "_backdrop_gg1yz_3", gn = "_dialog_gg1yz_26", _n = "_title_gg1yz_56", vn = "_body_gg1yz_68", yn = "_footer_gg1yz_89", bn = "_btn_gg1yz_96", xn = {
|
|
1691
|
+
backdrop: hn,
|
|
1692
|
+
"backdrop-in": "_backdrop-in_gg1yz_1",
|
|
1693
|
+
dialog: gn,
|
|
1694
|
+
"dialog-in": "_dialog-in_gg1yz_1",
|
|
1695
|
+
title: _n,
|
|
1696
|
+
body: vn,
|
|
1697
|
+
footer: yn,
|
|
1698
|
+
btn: bn,
|
|
1699
|
+
"btn-default": "_btn-default_gg1yz_144",
|
|
1700
|
+
"btn-suggested": "_btn-suggested_gg1yz_148",
|
|
1701
|
+
"btn-destructive": "_btn-destructive_gg1yz_153"
|
|
1707
1702
|
};
|
|
1708
|
-
|
|
1709
|
-
|
|
1703
|
+
//#endregion
|
|
1704
|
+
//#region src/components/Dialog/Dialog.tsx
|
|
1705
|
+
function Sn({ open: e, title: r, children: i, buttons: a = [], onClose: o, closeOnBackdrop: s = !0, role: l = "dialog", responses: f, onResponse: p, className: h, ..._ }) {
|
|
1706
|
+
let v = m(null), y = d(), b = m(null), x = !!f, S = pn();
|
|
1710
1707
|
u(() => {
|
|
1711
|
-
|
|
1712
|
-
}, [
|
|
1713
|
-
let
|
|
1714
|
-
let e =
|
|
1715
|
-
e &&
|
|
1716
|
-
}, [
|
|
1708
|
+
e ? (b.current = document.activeElement, (v.current?.querySelector(fn))?.focus()) : b.current?.focus();
|
|
1709
|
+
}, [e]);
|
|
1710
|
+
let C = c(() => {
|
|
1711
|
+
let e = f?.find((e) => e.variant !== "destructive" && !e.disabled);
|
|
1712
|
+
e && p?.(e.id);
|
|
1713
|
+
}, [f, p]), w = x ? C : s ? o : void 0, T = c((e) => {
|
|
1717
1714
|
if (e.key === "Escape") {
|
|
1718
|
-
e.preventDefault(),
|
|
1715
|
+
e.preventDefault(), x ? C() : o?.();
|
|
1719
1716
|
return;
|
|
1720
1717
|
}
|
|
1721
|
-
|
|
1718
|
+
mn(e, v);
|
|
1722
1719
|
}, [
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1720
|
+
x,
|
|
1721
|
+
C,
|
|
1722
|
+
o
|
|
1726
1723
|
]);
|
|
1727
|
-
if (!
|
|
1728
|
-
let
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
!!(k || A || j) && "legal"
|
|
1732
|
-
].filter(Boolean), le = () => ie ? /* @__PURE__ */ t("div", {
|
|
1733
|
-
className: V.footer,
|
|
1734
|
-
children: /* @__PURE__ */ t("button", {
|
|
1735
|
-
type: "button",
|
|
1736
|
-
className: [V.btn, V["btn-default"]].join(" "),
|
|
1737
|
-
onClick: s,
|
|
1738
|
-
children: "Close"
|
|
1739
|
-
})
|
|
1740
|
-
}) : re && p ? /* @__PURE__ */ t("div", {
|
|
1741
|
-
className: V.footer,
|
|
1742
|
-
children: p.map((e) => /* @__PURE__ */ t("button", {
|
|
1724
|
+
if (!e) return null;
|
|
1725
|
+
let E = () => x && f ? /* @__PURE__ */ t("div", {
|
|
1726
|
+
className: xn.footer,
|
|
1727
|
+
children: f.map((e) => /* @__PURE__ */ t("button", {
|
|
1743
1728
|
type: "button",
|
|
1744
1729
|
disabled: e.disabled,
|
|
1745
|
-
className: [
|
|
1746
|
-
onClick: () =>
|
|
1730
|
+
className: [xn.btn, xn[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1731
|
+
onClick: () => p?.(e.id),
|
|
1747
1732
|
children: e.label
|
|
1748
1733
|
}, e.id))
|
|
1749
|
-
}) :
|
|
1750
|
-
className:
|
|
1751
|
-
children:
|
|
1734
|
+
}) : a.length > 0 ? /* @__PURE__ */ t("div", {
|
|
1735
|
+
className: xn.footer,
|
|
1736
|
+
children: a.map((e) => /* @__PURE__ */ t("button", {
|
|
1752
1737
|
type: "button",
|
|
1753
1738
|
disabled: e.disabled,
|
|
1754
|
-
className: [
|
|
1739
|
+
className: [xn.btn, xn[`btn-${e.variant ?? "default"}`]].filter(Boolean).join(" "),
|
|
1755
1740
|
onClick: e.onClick,
|
|
1756
1741
|
children: e.label
|
|
1757
1742
|
}, e.label))
|
|
1758
|
-
}) : null,
|
|
1759
|
-
|
|
1760
|
-
|
|
1743
|
+
}) : null, D = /* @__PURE__ */ t("div", {
|
|
1744
|
+
className: xn.backdrop,
|
|
1745
|
+
style: S,
|
|
1746
|
+
onClick: w,
|
|
1747
|
+
"aria-hidden": "true",
|
|
1748
|
+
children: /* @__PURE__ */ n("div", {
|
|
1749
|
+
ref: v,
|
|
1750
|
+
role: l,
|
|
1751
|
+
"aria-modal": "true",
|
|
1752
|
+
"aria-labelledby": y,
|
|
1753
|
+
className: [xn.dialog, h].filter(Boolean).join(" "),
|
|
1754
|
+
onKeyDown: T,
|
|
1755
|
+
onClick: (e) => e.stopPropagation(),
|
|
1756
|
+
..._,
|
|
1761
1757
|
children: [
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1758
|
+
r && /* @__PURE__ */ t("div", {
|
|
1759
|
+
id: y,
|
|
1760
|
+
className: xn.title,
|
|
1761
|
+
children: r
|
|
1765
1762
|
}),
|
|
1766
|
-
/* @__PURE__ */ t("div", {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
children: y
|
|
1763
|
+
i && /* @__PURE__ */ t("div", {
|
|
1764
|
+
className: xn.body,
|
|
1765
|
+
children: i
|
|
1770
1766
|
}),
|
|
1771
|
-
|
|
1772
|
-
className: V.aboutVersion,
|
|
1773
|
-
children: x
|
|
1774
|
-
})
|
|
1767
|
+
E()
|
|
1775
1768
|
]
|
|
1776
|
-
})
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1769
|
+
})
|
|
1770
|
+
});
|
|
1771
|
+
return typeof document > "u" ? D : g(D, document.body);
|
|
1772
|
+
}
|
|
1773
|
+
//#endregion
|
|
1774
|
+
//#region src/components/AboutDialog/AboutDialog.module.css
|
|
1775
|
+
var Cn = "_backdrop_1iswz_3", wn = "_dialog_1iswz_26", Tn = "_header_1iswz_59", En = "_icon_1iswz_68", Dn = "_appName_1iswz_77", On = "_version_1iswz_84", kn = "_tabBar_1iswz_92", An = "_tabBtn_1iswz_99", jn = "_tabBtnActive_1iswz_118", Mn = "_tabContent_1iswz_132", Nn = "_section_1iswz_137", Pn = "_comments_1iswz_142", Fn = "_infoList_1iswz_151", In = "_infoLabel_1iswz_158", Ln = "_infoValue_1iswz_166", Rn = "_link_1iswz_174", zn = "_creditGroup_1iswz_182", Bn = "_creditTitle_1iswz_186", Vn = "_creditList_1iswz_196", Hn = "_creditItem_1iswz_205", Un = "_copyright_1iswz_211", Wn = "_licenseType_1iswz_218", Gn = "_licenseText_1iswz_225", Kn = "_footer_1iswz_239", qn = "_btn_1iswz_245", Jn = "_btnDefault_1iswz_281", B = {
|
|
1776
|
+
backdrop: Cn,
|
|
1777
|
+
"backdrop-in": "_backdrop-in_1iswz_1",
|
|
1778
|
+
dialog: wn,
|
|
1779
|
+
"dialog-in": "_dialog-in_1iswz_1",
|
|
1780
|
+
header: Tn,
|
|
1781
|
+
icon: En,
|
|
1782
|
+
appName: Dn,
|
|
1783
|
+
version: On,
|
|
1784
|
+
tabBar: kn,
|
|
1785
|
+
tabBtn: An,
|
|
1786
|
+
tabBtnActive: jn,
|
|
1787
|
+
tabContent: Mn,
|
|
1788
|
+
section: Nn,
|
|
1789
|
+
comments: Pn,
|
|
1790
|
+
infoList: Fn,
|
|
1791
|
+
infoLabel: In,
|
|
1792
|
+
infoValue: Ln,
|
|
1793
|
+
link: Rn,
|
|
1794
|
+
creditGroup: zn,
|
|
1795
|
+
creditTitle: Bn,
|
|
1796
|
+
creditList: Vn,
|
|
1797
|
+
creditItem: Hn,
|
|
1798
|
+
copyright: Un,
|
|
1799
|
+
licenseType: Wn,
|
|
1800
|
+
licenseText: Gn,
|
|
1801
|
+
footer: Kn,
|
|
1802
|
+
btn: qn,
|
|
1803
|
+
btnDefault: Jn
|
|
1804
|
+
}, Yn = {
|
|
1805
|
+
details: "Details",
|
|
1806
|
+
credits: "Credits",
|
|
1807
|
+
legal: "Legal"
|
|
1808
|
+
};
|
|
1809
|
+
function Xn({ open: r, onClose: i, applicationName: a, applicationIcon: o, version: s, comments: l, developerName: f, website: p, websiteLabel: _, developers: v, designers: y, artists: b, copyright: x, licenseType: S, licenseText: C, links: w }) {
|
|
1810
|
+
let T = m(null), E = d(), D = m(null), O = pn(), [k, A] = h("details");
|
|
1811
|
+
u(() => {
|
|
1812
|
+
r ? (D.current = document.activeElement, (T.current?.querySelector(fn))?.focus()) : (D.current?.focus(), A("details"));
|
|
1813
|
+
}, [r]);
|
|
1814
|
+
let j = c((e) => {
|
|
1815
|
+
if (e.key === "Escape") {
|
|
1816
|
+
e.preventDefault(), i?.();
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1819
|
+
mn(e, T);
|
|
1820
|
+
}, [i]);
|
|
1821
|
+
if (!r) return null;
|
|
1822
|
+
let M = [
|
|
1823
|
+
"details",
|
|
1824
|
+
!!(v?.length || y?.length || b?.length) && "credits",
|
|
1825
|
+
!!(x || S || C) && "legal"
|
|
1826
|
+
].filter(Boolean), N = /* @__PURE__ */ t("div", {
|
|
1827
|
+
className: B.backdrop,
|
|
1828
|
+
style: O,
|
|
1829
|
+
onClick: i,
|
|
1830
|
+
"aria-hidden": "true",
|
|
1831
|
+
children: /* @__PURE__ */ n("div", {
|
|
1832
|
+
ref: T,
|
|
1833
|
+
role: "dialog",
|
|
1834
|
+
"aria-modal": "true",
|
|
1835
|
+
"aria-labelledby": E,
|
|
1836
|
+
className: B.dialog,
|
|
1837
|
+
onKeyDown: j,
|
|
1838
|
+
onClick: (e) => e.stopPropagation(),
|
|
1791
1839
|
children: [
|
|
1792
|
-
|
|
1793
|
-
className:
|
|
1794
|
-
children: [S && /* @__PURE__ */ t("p", {
|
|
1795
|
-
className: V.aboutComments,
|
|
1796
|
-
children: S
|
|
1797
|
-
}), (C || w || M?.length) && /* @__PURE__ */ n("dl", {
|
|
1798
|
-
className: V.aboutInfoList,
|
|
1799
|
-
children: [
|
|
1800
|
-
C && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1801
|
-
className: V.aboutInfoLabel,
|
|
1802
|
-
children: "Developer"
|
|
1803
|
-
}), /* @__PURE__ */ t("dd", {
|
|
1804
|
-
className: V.aboutInfoValue,
|
|
1805
|
-
children: C
|
|
1806
|
-
})] }),
|
|
1807
|
-
w && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1808
|
-
className: V.aboutInfoLabel,
|
|
1809
|
-
children: "Website"
|
|
1810
|
-
}), /* @__PURE__ */ t("dd", {
|
|
1811
|
-
className: V.aboutInfoValue,
|
|
1812
|
-
children: /* @__PURE__ */ t("a", {
|
|
1813
|
-
href: w,
|
|
1814
|
-
target: "_blank",
|
|
1815
|
-
rel: "noopener noreferrer",
|
|
1816
|
-
className: V.aboutLink,
|
|
1817
|
-
children: T ?? w
|
|
1818
|
-
})
|
|
1819
|
-
})] }),
|
|
1820
|
-
M?.map((r) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1821
|
-
className: V.aboutInfoLabel,
|
|
1822
|
-
children: r.label
|
|
1823
|
-
}, `${r.label}-dt`), /* @__PURE__ */ t("dd", {
|
|
1824
|
-
className: V.aboutInfoValue,
|
|
1825
|
-
children: /* @__PURE__ */ t("a", {
|
|
1826
|
-
href: r.url,
|
|
1827
|
-
target: "_blank",
|
|
1828
|
-
rel: "noopener noreferrer",
|
|
1829
|
-
className: V.aboutLink,
|
|
1830
|
-
children: r.url
|
|
1831
|
-
})
|
|
1832
|
-
}, `${r.label}-dd`)] }))
|
|
1833
|
-
]
|
|
1834
|
-
})]
|
|
1835
|
-
}),
|
|
1836
|
-
te === "credits" && /* @__PURE__ */ t("div", {
|
|
1837
|
-
className: V.aboutSection,
|
|
1840
|
+
/* @__PURE__ */ n("div", {
|
|
1841
|
+
className: B.header,
|
|
1838
1842
|
children: [
|
|
1839
|
-
{
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
},
|
|
1843
|
-
{
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1843
|
+
o && /* @__PURE__ */ t("div", {
|
|
1844
|
+
className: B.icon,
|
|
1845
|
+
children: o
|
|
1846
|
+
}),
|
|
1847
|
+
/* @__PURE__ */ t("div", {
|
|
1848
|
+
id: E,
|
|
1849
|
+
className: B.appName,
|
|
1850
|
+
children: a
|
|
1851
|
+
}),
|
|
1852
|
+
s && /* @__PURE__ */ t("div", {
|
|
1853
|
+
className: B.version,
|
|
1854
|
+
children: s
|
|
1855
|
+
})
|
|
1856
|
+
]
|
|
1857
|
+
}),
|
|
1858
|
+
M.length > 1 && /* @__PURE__ */ t("div", {
|
|
1859
|
+
className: B.tabBar,
|
|
1860
|
+
role: "tablist",
|
|
1861
|
+
children: M.map((e) => /* @__PURE__ */ t("button", {
|
|
1862
|
+
type: "button",
|
|
1863
|
+
role: "tab",
|
|
1864
|
+
"aria-selected": k === e,
|
|
1865
|
+
className: [B.tabBtn, k === e ? B.tabBtnActive : null].filter(Boolean).join(" "),
|
|
1866
|
+
onClick: () => A(e),
|
|
1867
|
+
children: Yn[e]
|
|
1863
1868
|
}, e))
|
|
1864
1869
|
}),
|
|
1865
|
-
|
|
1866
|
-
className:
|
|
1870
|
+
/* @__PURE__ */ n("div", {
|
|
1871
|
+
className: B.tabContent,
|
|
1867
1872
|
children: [
|
|
1868
|
-
k && /* @__PURE__ */
|
|
1869
|
-
className:
|
|
1870
|
-
children:
|
|
1873
|
+
k === "details" && /* @__PURE__ */ n("div", {
|
|
1874
|
+
className: B.section,
|
|
1875
|
+
children: [l && /* @__PURE__ */ t("p", {
|
|
1876
|
+
className: B.comments,
|
|
1877
|
+
children: l
|
|
1878
|
+
}), (f || p || w?.length) && /* @__PURE__ */ n("dl", {
|
|
1879
|
+
className: B.infoList,
|
|
1880
|
+
children: [
|
|
1881
|
+
f && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1882
|
+
className: B.infoLabel,
|
|
1883
|
+
children: "Developer"
|
|
1884
|
+
}), /* @__PURE__ */ t("dd", {
|
|
1885
|
+
className: B.infoValue,
|
|
1886
|
+
children: f
|
|
1887
|
+
})] }),
|
|
1888
|
+
p && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1889
|
+
className: B.infoLabel,
|
|
1890
|
+
children: "Website"
|
|
1891
|
+
}), /* @__PURE__ */ t("dd", {
|
|
1892
|
+
className: B.infoValue,
|
|
1893
|
+
children: /* @__PURE__ */ t("a", {
|
|
1894
|
+
href: p,
|
|
1895
|
+
target: "_blank",
|
|
1896
|
+
rel: "noopener noreferrer",
|
|
1897
|
+
className: B.link,
|
|
1898
|
+
children: _ ?? p
|
|
1899
|
+
})
|
|
1900
|
+
})] }),
|
|
1901
|
+
w?.map((r) => /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("dt", {
|
|
1902
|
+
className: B.infoLabel,
|
|
1903
|
+
children: r.label
|
|
1904
|
+
}, `${r.label}-dt`), /* @__PURE__ */ t("dd", {
|
|
1905
|
+
className: B.infoValue,
|
|
1906
|
+
children: /* @__PURE__ */ t("a", {
|
|
1907
|
+
href: r.url,
|
|
1908
|
+
target: "_blank",
|
|
1909
|
+
rel: "noopener noreferrer",
|
|
1910
|
+
className: B.link,
|
|
1911
|
+
children: r.url
|
|
1912
|
+
})
|
|
1913
|
+
}, `${r.label}-dd`)] }))
|
|
1914
|
+
]
|
|
1915
|
+
})]
|
|
1871
1916
|
}),
|
|
1872
|
-
|
|
1873
|
-
className:
|
|
1874
|
-
children:
|
|
1917
|
+
k === "credits" && /* @__PURE__ */ t("div", {
|
|
1918
|
+
className: B.section,
|
|
1919
|
+
children: [
|
|
1920
|
+
{
|
|
1921
|
+
heading: "Developers",
|
|
1922
|
+
list: v
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
heading: "Designers",
|
|
1926
|
+
list: y
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
heading: "Artists",
|
|
1930
|
+
list: b
|
|
1931
|
+
}
|
|
1932
|
+
].filter((e) => e.list?.length).map(({ heading: e, list: r }) => /* @__PURE__ */ n("div", {
|
|
1933
|
+
className: B.creditGroup,
|
|
1934
|
+
children: [/* @__PURE__ */ t("h4", {
|
|
1935
|
+
className: B.creditTitle,
|
|
1936
|
+
children: e
|
|
1937
|
+
}), /* @__PURE__ */ t("ul", {
|
|
1938
|
+
className: B.creditList,
|
|
1939
|
+
children: r.map((e) => /* @__PURE__ */ t("li", {
|
|
1940
|
+
className: B.creditItem,
|
|
1941
|
+
children: e
|
|
1942
|
+
}, e))
|
|
1943
|
+
})]
|
|
1944
|
+
}, e))
|
|
1875
1945
|
}),
|
|
1876
|
-
|
|
1877
|
-
className:
|
|
1878
|
-
children:
|
|
1946
|
+
k === "legal" && /* @__PURE__ */ n("div", {
|
|
1947
|
+
className: B.section,
|
|
1948
|
+
children: [
|
|
1949
|
+
x && /* @__PURE__ */ t("p", {
|
|
1950
|
+
className: B.copyright,
|
|
1951
|
+
children: x
|
|
1952
|
+
}),
|
|
1953
|
+
S && /* @__PURE__ */ t("p", {
|
|
1954
|
+
className: B.licenseType,
|
|
1955
|
+
children: S
|
|
1956
|
+
}),
|
|
1957
|
+
C && /* @__PURE__ */ t("pre", {
|
|
1958
|
+
className: B.licenseText,
|
|
1959
|
+
children: C
|
|
1960
|
+
})
|
|
1961
|
+
]
|
|
1879
1962
|
})
|
|
1880
1963
|
]
|
|
1964
|
+
}),
|
|
1965
|
+
/* @__PURE__ */ t("div", {
|
|
1966
|
+
className: B.footer,
|
|
1967
|
+
children: /* @__PURE__ */ t("button", {
|
|
1968
|
+
type: "button",
|
|
1969
|
+
className: [B.btn, B.btnDefault].join(" "),
|
|
1970
|
+
onClick: i,
|
|
1971
|
+
children: "Close"
|
|
1972
|
+
})
|
|
1881
1973
|
})
|
|
1882
1974
|
]
|
|
1883
1975
|
})
|
|
1884
|
-
] }), de = /* @__PURE__ */ t("div", {
|
|
1885
|
-
className: V.backdrop,
|
|
1886
|
-
onClick: oe,
|
|
1887
|
-
"aria-hidden": "true",
|
|
1888
|
-
children: /* @__PURE__ */ n("div", {
|
|
1889
|
-
ref: F,
|
|
1890
|
-
role: f,
|
|
1891
|
-
"aria-modal": "true",
|
|
1892
|
-
"aria-labelledby": ee,
|
|
1893
|
-
className: [
|
|
1894
|
-
V.dialog,
|
|
1895
|
-
ie ? V.dialogAbout : null,
|
|
1896
|
-
N
|
|
1897
|
-
].filter(Boolean).join(" "),
|
|
1898
|
-
onKeyDown: se,
|
|
1899
|
-
onClick: (e) => e.stopPropagation(),
|
|
1900
|
-
...P,
|
|
1901
|
-
children: [ie ? ue() : /* @__PURE__ */ n(e, { children: [i && /* @__PURE__ */ t("div", {
|
|
1902
|
-
id: ee,
|
|
1903
|
-
className: V.title,
|
|
1904
|
-
children: i
|
|
1905
|
-
}), a && /* @__PURE__ */ t("div", {
|
|
1906
|
-
className: V.body,
|
|
1907
|
-
children: a
|
|
1908
|
-
})] }), le()]
|
|
1909
|
-
})
|
|
1910
1976
|
});
|
|
1911
|
-
return typeof document > "u" ?
|
|
1977
|
+
return typeof document > "u" ? N : g(N, document.body);
|
|
1912
1978
|
}
|
|
1913
1979
|
//#endregion
|
|
1914
1980
|
//#region src/components/Dropdown/Dropdown.module.css
|
|
1915
|
-
var
|
|
1916
|
-
wrapper:
|
|
1917
|
-
trigger:
|
|
1918
|
-
triggerOpen:
|
|
1919
|
-
triggerLabel:
|
|
1920
|
-
placeholder:
|
|
1921
|
-
chevron:
|
|
1922
|
-
chevronOpen:
|
|
1923
|
-
list:
|
|
1981
|
+
var Zn = "_wrapper_1hi05_3", Qn = "_trigger_1hi05_11", $n = "_triggerOpen_1hi05_63", er = "_triggerLabel_1hi05_73", tr = "_placeholder_1hi05_81", nr = "_chevron_1hi05_87", rr = "_chevronOpen_1hi05_94", ir = "_list_1hi05_100", ar = "_listDown_1hi05_129", or = "_listUp_1hi05_133", sr = "_option_1hi05_145", cr = "_optionActive_1hi05_162", lr = "_optionSelected_1hi05_166", ur = "_optionDisabled_1hi05_170", dr = "_optionText_1hi05_178", fr = "_optionLabel_1hi05_186", pr = "_optionDesc_1hi05_192", mr = "_checkIcon_1hi05_202", V = {
|
|
1982
|
+
wrapper: Zn,
|
|
1983
|
+
trigger: Qn,
|
|
1984
|
+
triggerOpen: $n,
|
|
1985
|
+
triggerLabel: er,
|
|
1986
|
+
placeholder: tr,
|
|
1987
|
+
chevron: nr,
|
|
1988
|
+
chevronOpen: rr,
|
|
1989
|
+
list: ir,
|
|
1924
1990
|
"list-in": "_list-in_1hi05_1",
|
|
1925
|
-
listDown:
|
|
1926
|
-
listUp:
|
|
1991
|
+
listDown: ar,
|
|
1992
|
+
listUp: or,
|
|
1927
1993
|
"list-in-up": "_list-in-up_1hi05_1",
|
|
1928
|
-
option:
|
|
1929
|
-
optionActive:
|
|
1930
|
-
optionSelected:
|
|
1931
|
-
optionDisabled:
|
|
1932
|
-
optionText:
|
|
1933
|
-
optionLabel:
|
|
1934
|
-
optionDesc:
|
|
1935
|
-
checkIcon:
|
|
1994
|
+
option: sr,
|
|
1995
|
+
optionActive: cr,
|
|
1996
|
+
optionSelected: lr,
|
|
1997
|
+
optionDisabled: ur,
|
|
1998
|
+
optionText: dr,
|
|
1999
|
+
optionLabel: fr,
|
|
2000
|
+
optionDesc: pr,
|
|
2001
|
+
checkIcon: mr
|
|
1936
2002
|
};
|
|
1937
2003
|
//#endregion
|
|
1938
2004
|
//#region src/components/Dropdown/Dropdown.tsx
|
|
1939
|
-
function
|
|
2005
|
+
function hr({ options: e, value: r, onChange: i, placeholder: a = "Select an option", disabled: o, className: s, ...l }) {
|
|
1940
2006
|
let [f, p] = h(!1), [g, _] = h(-1), [v, y] = h(!1), b = d(), x = d(), S = m(null), C = m(null), w = e.find((e) => e.value === r), T = c(() => {
|
|
1941
2007
|
if (!S.current) return;
|
|
1942
2008
|
let t = S.current.getBoundingClientRect(), n = window.innerHeight - t.bottom, r = Math.min(e.length * 48 + 8, 280);
|
|
@@ -2020,7 +2086,7 @@ function sr({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
2020
2086
|
D
|
|
2021
2087
|
]);
|
|
2022
2088
|
return /* @__PURE__ */ n("div", {
|
|
2023
|
-
className: [
|
|
2089
|
+
className: [V.wrapper, s].filter(Boolean).join(" "),
|
|
2024
2090
|
...l,
|
|
2025
2091
|
children: [/* @__PURE__ */ n("button", {
|
|
2026
2092
|
ref: S,
|
|
@@ -2032,17 +2098,17 @@ function sr({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
2032
2098
|
"aria-controls": x,
|
|
2033
2099
|
"aria-activedescendant": f && g >= 0 ? `${x}-opt-${g}` : void 0,
|
|
2034
2100
|
disabled: o,
|
|
2035
|
-
className: [
|
|
2101
|
+
className: [V.trigger, f ? V.triggerOpen : null].filter(Boolean).join(" "),
|
|
2036
2102
|
onClick: () => f ? D() : E(),
|
|
2037
2103
|
onKeyDown: k,
|
|
2038
2104
|
children: [/* @__PURE__ */ t("span", {
|
|
2039
|
-
className: [
|
|
2105
|
+
className: [V.triggerLabel, w ? null : V.placeholder].filter(Boolean).join(" "),
|
|
2040
2106
|
children: w?.label ?? a
|
|
2041
|
-
}), /* @__PURE__ */ t(
|
|
2042
|
-
icon:
|
|
2107
|
+
}), /* @__PURE__ */ t(I, {
|
|
2108
|
+
icon: Re,
|
|
2043
2109
|
size: "md",
|
|
2044
2110
|
"aria-hidden": !0,
|
|
2045
|
-
className: [
|
|
2111
|
+
className: [V.chevron, f ? V.chevronOpen : null].filter(Boolean).join(" ")
|
|
2046
2112
|
})]
|
|
2047
2113
|
}), f && /* @__PURE__ */ t("ul", {
|
|
2048
2114
|
ref: C,
|
|
@@ -2050,7 +2116,7 @@ function sr({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
2050
2116
|
role: "listbox",
|
|
2051
2117
|
"aria-labelledby": b,
|
|
2052
2118
|
tabIndex: -1,
|
|
2053
|
-
className: [
|
|
2119
|
+
className: [V.list, v ? V.listUp : V.listDown].filter(Boolean).join(" "),
|
|
2054
2120
|
onKeyDown: A,
|
|
2055
2121
|
children: e.map((e, i) => /* @__PURE__ */ n("li", {
|
|
2056
2122
|
id: `${x}-opt-${i}`,
|
|
@@ -2058,33 +2124,33 @@ function sr({ options: e, value: r, onChange: i, placeholder: a = "Select an opt
|
|
|
2058
2124
|
"aria-selected": e.value === r,
|
|
2059
2125
|
"aria-disabled": e.disabled,
|
|
2060
2126
|
className: [
|
|
2061
|
-
|
|
2062
|
-
e.value === r ?
|
|
2063
|
-
i === g ?
|
|
2064
|
-
e.disabled ?
|
|
2127
|
+
V.option,
|
|
2128
|
+
e.value === r ? V.optionSelected : null,
|
|
2129
|
+
i === g ? V.optionActive : null,
|
|
2130
|
+
e.disabled ? V.optionDisabled : null
|
|
2065
2131
|
].filter(Boolean).join(" "),
|
|
2066
2132
|
onMouseEnter: () => !e.disabled && _(i),
|
|
2067
2133
|
onClick: () => O(e),
|
|
2068
2134
|
children: [/* @__PURE__ */ n("span", {
|
|
2069
|
-
className:
|
|
2135
|
+
className: V.optionText,
|
|
2070
2136
|
children: [/* @__PURE__ */ t("span", {
|
|
2071
|
-
className:
|
|
2137
|
+
className: V.optionLabel,
|
|
2072
2138
|
children: e.label
|
|
2073
2139
|
}), e.description && /* @__PURE__ */ t("span", {
|
|
2074
|
-
className:
|
|
2140
|
+
className: V.optionDesc,
|
|
2075
2141
|
children: e.description
|
|
2076
2142
|
})]
|
|
2077
|
-
}), e.value === r && /* @__PURE__ */ t(
|
|
2078
|
-
icon:
|
|
2143
|
+
}), e.value === r && /* @__PURE__ */ t(I, {
|
|
2144
|
+
icon: We,
|
|
2079
2145
|
size: "md",
|
|
2080
2146
|
"aria-hidden": !0,
|
|
2081
|
-
className:
|
|
2147
|
+
className: V.checkIcon
|
|
2082
2148
|
})]
|
|
2083
2149
|
}, e.value))
|
|
2084
2150
|
})]
|
|
2085
2151
|
});
|
|
2086
2152
|
}
|
|
2087
|
-
var
|
|
2153
|
+
var gr = {
|
|
2088
2154
|
wrapper: "_wrapper_11zhs_3",
|
|
2089
2155
|
hasLabels: "_hasLabels_11zhs_11",
|
|
2090
2156
|
track: "_track_11zhs_17",
|
|
@@ -2097,21 +2163,21 @@ var cr = {
|
|
|
2097
2163
|
};
|
|
2098
2164
|
//#endregion
|
|
2099
2165
|
//#region src/components/Slider/Slider.tsx
|
|
2100
|
-
function
|
|
2166
|
+
function _r(e, t, n) {
|
|
2101
2167
|
return Math.min(n, Math.max(t, e));
|
|
2102
2168
|
}
|
|
2103
|
-
function
|
|
2169
|
+
function vr(e, t, n, r) {
|
|
2104
2170
|
return parseFloat((Math.round((e - t) / n) * n + t).toFixed(r));
|
|
2105
2171
|
}
|
|
2106
|
-
function
|
|
2172
|
+
function yr(e) {
|
|
2107
2173
|
let t = e.toString(), n = t.indexOf(".");
|
|
2108
2174
|
return n === -1 ? 0 : t.length - n - 1;
|
|
2109
2175
|
}
|
|
2110
|
-
function
|
|
2111
|
-
let g = m(null), _ =
|
|
2176
|
+
function br({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disabled: s = !1, marks: l, className: u, "aria-label": d, "aria-labelledby": f, "aria-describedby": p, ...h }) {
|
|
2177
|
+
let g = m(null), _ = yr(o), v = (_r(e, i, a) - i) / (a - i) * 100, y = c((e) => {
|
|
2112
2178
|
if (!g.current) return;
|
|
2113
2179
|
let { left: t, width: n } = g.current.getBoundingClientRect();
|
|
2114
|
-
r(
|
|
2180
|
+
r(_r(vr((e - t) / n * (a - i) + i, i, o, _), i, a));
|
|
2115
2181
|
}, [
|
|
2116
2182
|
i,
|
|
2117
2183
|
a,
|
|
@@ -2124,7 +2190,7 @@ function fr({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2124
2190
|
e.currentTarget.hasPointerCapture(e.pointerId) && y(e.clientX);
|
|
2125
2191
|
}, [y]), S = c((t) => {
|
|
2126
2192
|
let n = (e) => {
|
|
2127
|
-
t.preventDefault(), r(
|
|
2193
|
+
t.preventDefault(), r(_r(vr(e, i, o, _), i, a));
|
|
2128
2194
|
};
|
|
2129
2195
|
switch (t.key) {
|
|
2130
2196
|
case "ArrowRight":
|
|
@@ -2158,8 +2224,8 @@ function fr({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2158
2224
|
]), C = l && l.length > 0, w = C && l.some((e) => e.label);
|
|
2159
2225
|
return /* @__PURE__ */ n("div", {
|
|
2160
2226
|
className: [
|
|
2161
|
-
|
|
2162
|
-
w ?
|
|
2227
|
+
gr.wrapper,
|
|
2228
|
+
w ? gr.hasLabels : null,
|
|
2163
2229
|
u
|
|
2164
2230
|
].filter(Boolean).join(" "),
|
|
2165
2231
|
...h,
|
|
@@ -2174,36 +2240,36 @@ function fr({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2174
2240
|
"aria-labelledby": f,
|
|
2175
2241
|
"aria-describedby": p,
|
|
2176
2242
|
"aria-disabled": s || void 0,
|
|
2177
|
-
className: [
|
|
2243
|
+
className: [gr.track, s ? gr.disabled : null].filter(Boolean).join(" "),
|
|
2178
2244
|
onPointerDown: b,
|
|
2179
2245
|
onPointerMove: x,
|
|
2180
2246
|
onKeyDown: s ? void 0 : S,
|
|
2181
2247
|
children: [
|
|
2182
2248
|
/* @__PURE__ */ t("div", {
|
|
2183
|
-
className:
|
|
2249
|
+
className: gr.fill,
|
|
2184
2250
|
style: { width: `${v}%` }
|
|
2185
2251
|
}),
|
|
2186
2252
|
/* @__PURE__ */ t("div", {
|
|
2187
|
-
className:
|
|
2253
|
+
className: gr.thumb,
|
|
2188
2254
|
style: { left: `${v}%` },
|
|
2189
2255
|
"aria-hidden": "true"
|
|
2190
2256
|
}),
|
|
2191
2257
|
C && l.map((e) => {
|
|
2192
|
-
let n = (
|
|
2258
|
+
let n = (_r(e.value, i, a) - i) / (a - i) * 100;
|
|
2193
2259
|
return /* @__PURE__ */ t("div", {
|
|
2194
|
-
className:
|
|
2260
|
+
className: gr.tick,
|
|
2195
2261
|
style: { left: `${n}%` },
|
|
2196
2262
|
"aria-hidden": "true"
|
|
2197
2263
|
}, e.value);
|
|
2198
2264
|
})
|
|
2199
2265
|
]
|
|
2200
2266
|
}), w && /* @__PURE__ */ t("div", {
|
|
2201
|
-
className:
|
|
2267
|
+
className: gr.labels,
|
|
2202
2268
|
"aria-hidden": "true",
|
|
2203
2269
|
children: l.map((e) => {
|
|
2204
|
-
let n = (
|
|
2270
|
+
let n = (_r(e.value, i, a) - i) / (a - i) * 100;
|
|
2205
2271
|
return /* @__PURE__ */ t("span", {
|
|
2206
|
-
className:
|
|
2272
|
+
className: gr.markLabel,
|
|
2207
2273
|
style: { left: `${n}%` },
|
|
2208
2274
|
children: e.label
|
|
2209
2275
|
}, e.value);
|
|
@@ -2211,7 +2277,7 @@ function fr({ value: e, onChange: r, min: i = 0, max: a = 100, step: o = 1, disa
|
|
|
2211
2277
|
})]
|
|
2212
2278
|
});
|
|
2213
2279
|
}
|
|
2214
|
-
var
|
|
2280
|
+
var xr = {
|
|
2215
2281
|
panel: "_panel_1tk9v_3",
|
|
2216
2282
|
visible: "_visible_1tk9v_36",
|
|
2217
2283
|
arrow: "_arrow_1tk9v_44",
|
|
@@ -2219,8 +2285,8 @@ var pr = {
|
|
|
2219
2285
|
top: "_top_1tk9v_67",
|
|
2220
2286
|
left: "_left_1tk9v_75",
|
|
2221
2287
|
right: "_right_1tk9v_83"
|
|
2222
|
-
},
|
|
2223
|
-
function
|
|
2288
|
+
}, Sr = 8, H = 10, Cr = 6;
|
|
2289
|
+
function wr(e, t, n) {
|
|
2224
2290
|
let r = window.innerWidth, i = window.innerHeight, a = [...new Set([
|
|
2225
2291
|
n,
|
|
2226
2292
|
n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left",
|
|
@@ -2231,21 +2297,21 @@ function gr(e, t, n) {
|
|
|
2231
2297
|
])];
|
|
2232
2298
|
function o(n) {
|
|
2233
2299
|
return n === "bottom" ? {
|
|
2234
|
-
top: e.bottom +
|
|
2300
|
+
top: e.bottom + Sr,
|
|
2235
2301
|
left: e.left + e.width / 2 - t.width / 2
|
|
2236
2302
|
} : n === "top" ? {
|
|
2237
|
-
top: e.top - t.height -
|
|
2303
|
+
top: e.top - t.height - Sr,
|
|
2238
2304
|
left: e.left + e.width / 2 - t.width / 2
|
|
2239
2305
|
} : n === "left" ? {
|
|
2240
2306
|
top: e.top + e.height / 2 - t.height / 2,
|
|
2241
|
-
left: e.left - t.width -
|
|
2307
|
+
left: e.left - t.width - Sr
|
|
2242
2308
|
} : {
|
|
2243
2309
|
top: e.top + e.height / 2 - t.height / 2,
|
|
2244
|
-
left: e.right +
|
|
2310
|
+
left: e.right + Sr
|
|
2245
2311
|
};
|
|
2246
2312
|
}
|
|
2247
2313
|
for (let n of a) {
|
|
2248
|
-
let { top: a, left: s } = o(n), c = s >=
|
|
2314
|
+
let { top: a, left: s } = o(n), c = s >= H && s + t.width <= r - H, l = a >= H && a + t.height <= i - H;
|
|
2249
2315
|
if (c && l) return {
|
|
2250
2316
|
top: a,
|
|
2251
2317
|
left: s,
|
|
@@ -2254,35 +2320,35 @@ function gr(e, t, n) {
|
|
|
2254
2320
|
};
|
|
2255
2321
|
}
|
|
2256
2322
|
for (let n of a) {
|
|
2257
|
-
let { top: a, left: s } = o(n), c = a >=
|
|
2323
|
+
let { top: a, left: s } = o(n), c = a >= H && a + t.height <= i - H, l = s >= H && s + t.width <= r - H;
|
|
2258
2324
|
if ((n === "top" || n === "bottom") && c) {
|
|
2259
|
-
let i = Math.max(
|
|
2325
|
+
let i = Math.max(H, Math.min(s, r - t.width - H)), o = e.left + e.width / 2 - i;
|
|
2260
2326
|
return {
|
|
2261
2327
|
top: a,
|
|
2262
2328
|
left: i,
|
|
2263
2329
|
placement: n,
|
|
2264
|
-
arrowOffset: Math.max(
|
|
2330
|
+
arrowOffset: Math.max(Cr + 4, Math.min(o, t.width - Cr - 4))
|
|
2265
2331
|
};
|
|
2266
2332
|
}
|
|
2267
2333
|
if ((n === "left" || n === "right") && l) {
|
|
2268
|
-
let r = Math.max(
|
|
2334
|
+
let r = Math.max(H, Math.min(a, i - t.height - H)), o = e.top + e.height / 2 - r;
|
|
2269
2335
|
return {
|
|
2270
2336
|
top: r,
|
|
2271
2337
|
left: s,
|
|
2272
2338
|
placement: n,
|
|
2273
|
-
arrowOffset: Math.max(
|
|
2339
|
+
arrowOffset: Math.max(Cr + 4, Math.min(o, t.height - Cr - 4))
|
|
2274
2340
|
};
|
|
2275
2341
|
}
|
|
2276
2342
|
}
|
|
2277
|
-
let s = e.bottom +
|
|
2343
|
+
let s = e.bottom + Sr, c = e.left + e.width / 2 - t.width / 2, l = Math.max(H, Math.min(s, i - t.height - H)), u = Math.max(H, Math.min(c, r - t.width - H)), d = e.left + e.width / 2 - u;
|
|
2278
2344
|
return {
|
|
2279
2345
|
top: l,
|
|
2280
2346
|
left: u,
|
|
2281
2347
|
placement: "bottom",
|
|
2282
|
-
arrowOffset: Math.max(
|
|
2348
|
+
arrowOffset: Math.max(Cr + 4, Math.min(d, t.width - Cr - 4))
|
|
2283
2349
|
};
|
|
2284
2350
|
}
|
|
2285
|
-
function
|
|
2351
|
+
function Tr({ content: r, placement: a = "bottom", open: o, onClose: s, onOpenChange: l, children: f }) {
|
|
2286
2352
|
let p = o !== void 0, [_, v] = h(!1), y = p ? o : _, [b, x] = h(null), S = d(), C = d(), w = m(null), T = m(null), E = m(null), D = c(() => {
|
|
2287
2353
|
p ? s?.() : v(!1), l?.(!1);
|
|
2288
2354
|
}, [
|
|
@@ -2297,7 +2363,7 @@ function _r({ content: r, placement: a = "bottom", open: o, onClose: s, onOpenCh
|
|
|
2297
2363
|
p,
|
|
2298
2364
|
l
|
|
2299
2365
|
]), k = c(() => {
|
|
2300
|
-
!w.current || !T.current || x(
|
|
2366
|
+
!w.current || !T.current || x(wr(w.current.getBoundingClientRect(), T.current.getBoundingClientRect(), a));
|
|
2301
2367
|
}, [a]);
|
|
2302
2368
|
u(() => {
|
|
2303
2369
|
if (!y) return;
|
|
@@ -2339,9 +2405,9 @@ function _r({ content: r, placement: a = "bottom", open: o, onClose: s, onOpenCh
|
|
|
2339
2405
|
"aria-labelledby": S,
|
|
2340
2406
|
tabIndex: -1,
|
|
2341
2407
|
className: [
|
|
2342
|
-
|
|
2343
|
-
b ?
|
|
2344
|
-
y && b ?
|
|
2408
|
+
xr.panel,
|
|
2409
|
+
b ? xr[b.placement] : null,
|
|
2410
|
+
y && b ? xr.visible : null
|
|
2345
2411
|
].filter(Boolean).join(" "),
|
|
2346
2412
|
style: b ? {
|
|
2347
2413
|
top: b.top,
|
|
@@ -2354,25 +2420,25 @@ function _r({ content: r, placement: a = "bottom", open: o, onClose: s, onOpenCh
|
|
|
2354
2420
|
},
|
|
2355
2421
|
onKeyDown: A,
|
|
2356
2422
|
children: [/* @__PURE__ */ t("div", {
|
|
2357
|
-
className:
|
|
2423
|
+
className: xr.arrow,
|
|
2358
2424
|
"aria-hidden": "true",
|
|
2359
2425
|
style: b?.arrowOffset === void 0 ? void 0 : b.placement === "top" || b.placement === "bottom" ? {
|
|
2360
|
-
left: b.arrowOffset -
|
|
2426
|
+
left: b.arrowOffset - Cr,
|
|
2361
2427
|
marginLeft: 0
|
|
2362
2428
|
} : {
|
|
2363
|
-
top: b.arrowOffset -
|
|
2429
|
+
top: b.arrowOffset - Cr,
|
|
2364
2430
|
marginTop: 0
|
|
2365
2431
|
}
|
|
2366
2432
|
}), r]
|
|
2367
2433
|
});
|
|
2368
2434
|
return /* @__PURE__ */ n(e, { children: [j, y && (typeof document < "u" ? g(M, document.body) : M)] });
|
|
2369
2435
|
}
|
|
2370
|
-
var
|
|
2436
|
+
var Er = { clamp: "_clamp_1j51b_6" };
|
|
2371
2437
|
//#endregion
|
|
2372
2438
|
//#region src/components/Clamp/Clamp.tsx
|
|
2373
|
-
function
|
|
2439
|
+
function Dr({ maximumSize: e = 600, children: n, className: r, style: i, ...a }) {
|
|
2374
2440
|
return /* @__PURE__ */ t("div", {
|
|
2375
|
-
className: [
|
|
2441
|
+
className: [Er.clamp, r].filter(Boolean).join(" "),
|
|
2376
2442
|
style: {
|
|
2377
2443
|
maxWidth: e,
|
|
2378
2444
|
...i
|
|
@@ -2381,7 +2447,7 @@ function yr({ maximumSize: e = 600, children: n, className: r, style: i, ...a })
|
|
|
2381
2447
|
children: n
|
|
2382
2448
|
});
|
|
2383
2449
|
}
|
|
2384
|
-
var
|
|
2450
|
+
var U = {
|
|
2385
2451
|
root: "_root_yaj3r_3",
|
|
2386
2452
|
expanded: "_expanded_yaj3r_12",
|
|
2387
2453
|
sidebar: "_sidebar_yaj3r_16",
|
|
@@ -2393,12 +2459,12 @@ var W = {
|
|
|
2393
2459
|
};
|
|
2394
2460
|
//#endregion
|
|
2395
2461
|
//#region src/components/NavigationSplitView/NavigationSplitView.tsx
|
|
2396
|
-
function
|
|
2397
|
-
let { isNarrow: d } =
|
|
2462
|
+
function Or({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a = 180, maxSidebarWidth: o = 280, sidebarWidthFraction: s = .25, className: c, style: l, ...u }) {
|
|
2463
|
+
let { isNarrow: d } = Ye(), f = `clamp(${a}px, ${s * 100}%, ${o}px)`;
|
|
2398
2464
|
return /* @__PURE__ */ n("div", {
|
|
2399
2465
|
className: [
|
|
2400
|
-
|
|
2401
|
-
d ?
|
|
2466
|
+
U.root,
|
|
2467
|
+
d ? U.collapsed : U.expanded,
|
|
2402
2468
|
c
|
|
2403
2469
|
].filter(Boolean).join(" "),
|
|
2404
2470
|
style: {
|
|
@@ -2408,23 +2474,23 @@ function br({ sidebar: e, content: r, showContent: i = !1, minSidebarWidth: a =
|
|
|
2408
2474
|
...u,
|
|
2409
2475
|
children: [
|
|
2410
2476
|
/* @__PURE__ */ t("div", {
|
|
2411
|
-
className: [
|
|
2477
|
+
className: [U.sidebar, d && i ? U.paneHidden : U.paneVisible].filter(Boolean).join(" "),
|
|
2412
2478
|
"aria-hidden": d && i,
|
|
2413
2479
|
children: e
|
|
2414
2480
|
}),
|
|
2415
2481
|
!d && /* @__PURE__ */ t("div", {
|
|
2416
|
-
className:
|
|
2482
|
+
className: U.divider,
|
|
2417
2483
|
"aria-hidden": "true"
|
|
2418
2484
|
}),
|
|
2419
2485
|
/* @__PURE__ */ t("div", {
|
|
2420
|
-
className: [
|
|
2486
|
+
className: [U.contentPane, d && !i ? U.paneHidden : U.paneVisible].filter(Boolean).join(" "),
|
|
2421
2487
|
"aria-hidden": d && !i,
|
|
2422
2488
|
children: r
|
|
2423
2489
|
})
|
|
2424
2490
|
]
|
|
2425
2491
|
});
|
|
2426
2492
|
}
|
|
2427
|
-
var
|
|
2493
|
+
var W = {
|
|
2428
2494
|
root: "_root_1g9mq_3",
|
|
2429
2495
|
wide: "_wide_1g9mq_13",
|
|
2430
2496
|
end: "_end_1g9mq_17",
|
|
@@ -2440,8 +2506,8 @@ var G = {
|
|
|
2440
2506
|
};
|
|
2441
2507
|
//#endregion
|
|
2442
2508
|
//#region src/components/OverlaySplitView/OverlaySplitView.tsx
|
|
2443
|
-
function
|
|
2444
|
-
let { isNarrow: g } =
|
|
2509
|
+
function kr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, collapsed: o = !1, sidebarPosition: s = "start", minSidebarWidth: c = 180, maxSidebarWidth: l = 280, sidebarWidthFraction: d = .25, className: f, style: p, ...h }) {
|
|
2510
|
+
let { isNarrow: g } = Ye(), _ = m(null), v = `clamp(${c}px, ${d * 100}%, ${l}px)`;
|
|
2445
2511
|
u(() => {
|
|
2446
2512
|
if (!g || !i) return;
|
|
2447
2513
|
let e = (e) => {
|
|
@@ -2476,10 +2542,10 @@ function xr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, collapsed
|
|
|
2476
2542
|
a
|
|
2477
2543
|
]), /* @__PURE__ */ n("div", {
|
|
2478
2544
|
className: [
|
|
2479
|
-
|
|
2480
|
-
g ?
|
|
2481
|
-
!g && o ?
|
|
2482
|
-
y ?
|
|
2545
|
+
W.root,
|
|
2546
|
+
g ? W.narrow : W.wide,
|
|
2547
|
+
!g && o ? W.collapsed : null,
|
|
2548
|
+
y ? W.end : W.start,
|
|
2483
2549
|
f
|
|
2484
2550
|
].filter(Boolean).join(" "),
|
|
2485
2551
|
style: {
|
|
@@ -2489,69 +2555,69 @@ function xr({ sidebar: e, content: r, showSidebar: i = !1, onClose: a, collapsed
|
|
|
2489
2555
|
...h,
|
|
2490
2556
|
children: [
|
|
2491
2557
|
g && /* @__PURE__ */ t("div", {
|
|
2492
|
-
className: [
|
|
2558
|
+
className: [W.backdrop, i ? W.backdropVisible : null].filter(Boolean).join(" "),
|
|
2493
2559
|
"aria-hidden": "true",
|
|
2494
2560
|
onClick: a
|
|
2495
2561
|
}),
|
|
2496
2562
|
/* @__PURE__ */ t("div", {
|
|
2497
2563
|
ref: _,
|
|
2498
|
-
className: [
|
|
2564
|
+
className: [W.sidebar, g ? i ? W.sidebarOpen : W.sidebarClosed : null].filter(Boolean).join(" "),
|
|
2499
2565
|
"aria-hidden": g && !i,
|
|
2500
2566
|
children: e
|
|
2501
2567
|
}),
|
|
2502
2568
|
/* @__PURE__ */ t("div", {
|
|
2503
|
-
className:
|
|
2569
|
+
className: W.content,
|
|
2504
2570
|
children: r
|
|
2505
2571
|
})
|
|
2506
2572
|
]
|
|
2507
2573
|
});
|
|
2508
2574
|
}
|
|
2509
|
-
var
|
|
2575
|
+
var Ar = { bar: "_bar_njcvu_3" };
|
|
2510
2576
|
//#endregion
|
|
2511
2577
|
//#region src/components/ViewSwitcherBar/ViewSwitcherBar.tsx
|
|
2512
|
-
function
|
|
2578
|
+
function jr({ children: e, reveal: n = !0, className: r, ...i }) {
|
|
2513
2579
|
return n ? /* @__PURE__ */ t("div", {
|
|
2514
2580
|
role: "navigation",
|
|
2515
2581
|
"aria-label": "Bottom navigation",
|
|
2516
|
-
className: [
|
|
2582
|
+
className: [Ar.bar, r].filter(Boolean).join(" "),
|
|
2517
2583
|
...i,
|
|
2518
2584
|
children: e
|
|
2519
2585
|
}) : null;
|
|
2520
2586
|
}
|
|
2521
|
-
var
|
|
2587
|
+
var Mr = {
|
|
2522
2588
|
link: "_link_x1qyh_1",
|
|
2523
2589
|
externalIcon: "_externalIcon_x1qyh_36"
|
|
2524
2590
|
};
|
|
2525
2591
|
//#endregion
|
|
2526
2592
|
//#region src/components/Link/Link.tsx
|
|
2527
|
-
function
|
|
2593
|
+
function Nr({ external: e = !1, children: r, className: i, target: a, rel: o, ...s }) {
|
|
2528
2594
|
let c = e || a === "_blank";
|
|
2529
2595
|
return /* @__PURE__ */ n("a", {
|
|
2530
|
-
className: [
|
|
2596
|
+
className: [Mr.link, i].filter(Boolean).join(" "),
|
|
2531
2597
|
target: c ? "_blank" : a,
|
|
2532
2598
|
rel: c ? "noopener noreferrer" : o,
|
|
2533
2599
|
...s,
|
|
2534
2600
|
children: [r, c && /* @__PURE__ */ t("span", {
|
|
2535
|
-
className:
|
|
2601
|
+
className: Mr.externalIcon,
|
|
2536
2602
|
"aria-label": "(opens in new tab)",
|
|
2537
2603
|
children: "↗"
|
|
2538
2604
|
})]
|
|
2539
2605
|
});
|
|
2540
2606
|
}
|
|
2541
|
-
var
|
|
2607
|
+
var Pr = {
|
|
2542
2608
|
group: "_group_1fa3l_3",
|
|
2543
2609
|
item: "_item_1fa3l_18",
|
|
2544
2610
|
iconOnly: "_iconOnly_1fa3l_48",
|
|
2545
2611
|
active: "_active_1fa3l_53",
|
|
2546
2612
|
itemIcon: "_itemIcon_1fa3l_86",
|
|
2547
2613
|
itemLabel: "_itemLabel_1fa3l_92"
|
|
2548
|
-
},
|
|
2549
|
-
function
|
|
2550
|
-
let e = l(
|
|
2614
|
+
}, Fr = a(null);
|
|
2615
|
+
function Ir() {
|
|
2616
|
+
let e = l(Fr);
|
|
2551
2617
|
if (!e) throw Error("ToggleGroupItem must be used inside ToggleGroup");
|
|
2552
2618
|
return e;
|
|
2553
2619
|
}
|
|
2554
|
-
function
|
|
2620
|
+
function Lr({ value: e, onValueChange: n, "aria-label": r = "Options", children: i, className: a, ...o }) {
|
|
2555
2621
|
let s = m(null);
|
|
2556
2622
|
function c(e) {
|
|
2557
2623
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2564,7 +2630,7 @@ function kr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2564
2630
|
else return;
|
|
2565
2631
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2566
2632
|
}
|
|
2567
|
-
return /* @__PURE__ */ t(
|
|
2633
|
+
return /* @__PURE__ */ t(Fr.Provider, {
|
|
2568
2634
|
value: {
|
|
2569
2635
|
value: e,
|
|
2570
2636
|
onValueChange: n
|
|
@@ -2574,7 +2640,7 @@ function kr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2574
2640
|
role: "radiogroup",
|
|
2575
2641
|
"aria-label": r,
|
|
2576
2642
|
onKeyDown: c,
|
|
2577
|
-
className: [
|
|
2643
|
+
className: [Pr.group, a].filter(Boolean).join(" "),
|
|
2578
2644
|
...o,
|
|
2579
2645
|
children: i
|
|
2580
2646
|
})
|
|
@@ -2582,8 +2648,8 @@ function kr({ value: e, onValueChange: n, "aria-label": r = "Options", children:
|
|
|
2582
2648
|
}
|
|
2583
2649
|
//#endregion
|
|
2584
2650
|
//#region src/components/ToggleGroup/ToggleGroupItem.tsx
|
|
2585
|
-
function
|
|
2586
|
-
let { value: c, onValueChange: l } =
|
|
2651
|
+
function Rr({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
2652
|
+
let { value: c, onValueChange: l } = Ir(), u = c === e, d = i && !r;
|
|
2587
2653
|
return /* @__PURE__ */ n("button", {
|
|
2588
2654
|
type: "button",
|
|
2589
2655
|
role: "radio",
|
|
@@ -2592,28 +2658,28 @@ function Ar({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
2592
2658
|
disabled: a,
|
|
2593
2659
|
onClick: () => l(e),
|
|
2594
2660
|
className: [
|
|
2595
|
-
|
|
2596
|
-
u ?
|
|
2597
|
-
d ?
|
|
2661
|
+
Pr.item,
|
|
2662
|
+
u ? Pr.active : null,
|
|
2663
|
+
d ? Pr.iconOnly : null,
|
|
2598
2664
|
o
|
|
2599
2665
|
].filter(Boolean).join(" "),
|
|
2600
2666
|
...s,
|
|
2601
2667
|
children: [i && /* @__PURE__ */ t("span", {
|
|
2602
|
-
className:
|
|
2603
|
-
children: /* @__PURE__ */ t(
|
|
2668
|
+
className: Pr.itemIcon,
|
|
2669
|
+
children: /* @__PURE__ */ t(I, {
|
|
2604
2670
|
icon: i,
|
|
2605
2671
|
size: "md",
|
|
2606
2672
|
"aria-hidden": !0
|
|
2607
2673
|
})
|
|
2608
2674
|
}), r && /* @__PURE__ */ t("span", {
|
|
2609
|
-
className:
|
|
2675
|
+
className: Pr.itemLabel,
|
|
2610
2676
|
children: r
|
|
2611
2677
|
})]
|
|
2612
2678
|
});
|
|
2613
2679
|
}
|
|
2614
2680
|
//#endregion
|
|
2615
2681
|
//#region src/components/Box/Box.tsx
|
|
2616
|
-
function
|
|
2682
|
+
function zr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i = "start", className: a, style: o, children: s, ...c }) {
|
|
2617
2683
|
let l = e === "horizontal" ? "center" : "stretch";
|
|
2618
2684
|
return /* @__PURE__ */ t("div", {
|
|
2619
2685
|
className: a,
|
|
@@ -2629,13 +2695,13 @@ function jr({ orientation: e = "vertical", spacing: n = 6, align: r, justify: i
|
|
|
2629
2695
|
children: s
|
|
2630
2696
|
});
|
|
2631
2697
|
}
|
|
2632
|
-
var
|
|
2698
|
+
var Br = {
|
|
2633
2699
|
wrapBox: "_wrapBox_1ik0x_1",
|
|
2634
2700
|
reverse: "_reverse_1ik0x_10"
|
|
2635
2701
|
};
|
|
2636
2702
|
//#endregion
|
|
2637
2703
|
//#region src/components/WrapBox/WrapBox.tsx
|
|
2638
|
-
function
|
|
2704
|
+
function Vr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align: i = "center", wrapReverse: a = !1, children: o, className: s, style: c, ...l }) {
|
|
2639
2705
|
let u = typeof e == "number" ? `${e}px` : e, d = n == null ? u : typeof n == "number" ? `${n}px` : n, f = {
|
|
2640
2706
|
"--wrapbox-gap": u,
|
|
2641
2707
|
"--wrapbox-row-gap": d,
|
|
@@ -2645,8 +2711,8 @@ function Nr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2645
2711
|
};
|
|
2646
2712
|
return /* @__PURE__ */ t("div", {
|
|
2647
2713
|
className: [
|
|
2648
|
-
|
|
2649
|
-
a ?
|
|
2714
|
+
Br.wrapBox,
|
|
2715
|
+
a ? Br.reverse : null,
|
|
2650
2716
|
s
|
|
2651
2717
|
].filter(Boolean).join(" "),
|
|
2652
2718
|
style: f,
|
|
@@ -2654,7 +2720,7 @@ function Nr({ childSpacing: e = 6, lineSpacing: n, justify: r = "start", align:
|
|
|
2654
2720
|
children: o
|
|
2655
2721
|
});
|
|
2656
2722
|
}
|
|
2657
|
-
var
|
|
2723
|
+
var Hr = {
|
|
2658
2724
|
chip: "_chip_e26qc_3",
|
|
2659
2725
|
selectable: "_selectable_e26qc_31",
|
|
2660
2726
|
selected: "_selected_e26qc_55",
|
|
@@ -2665,37 +2731,37 @@ var Pr = {
|
|
|
2665
2731
|
};
|
|
2666
2732
|
//#endregion
|
|
2667
2733
|
//#region src/components/Chip/Chip.tsx
|
|
2668
|
-
function
|
|
2734
|
+
function Ur({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s = !1, onToggle: c, disabled: l = !1, className: u, ...d }) {
|
|
2669
2735
|
let f = o && !a, p = [
|
|
2670
|
-
|
|
2671
|
-
s ?
|
|
2672
|
-
l ?
|
|
2673
|
-
f ?
|
|
2736
|
+
Hr.chip,
|
|
2737
|
+
s ? Hr.selected : null,
|
|
2738
|
+
l ? Hr.disabled : null,
|
|
2739
|
+
f ? Hr.selectable : null,
|
|
2674
2740
|
u
|
|
2675
2741
|
].filter(Boolean).join(" "), m = /* @__PURE__ */ n(e, { children: [
|
|
2676
2742
|
i && /* @__PURE__ */ t("span", {
|
|
2677
|
-
className:
|
|
2678
|
-
children: /* @__PURE__ */ t(
|
|
2743
|
+
className: Hr.icon,
|
|
2744
|
+
children: /* @__PURE__ */ t(I, {
|
|
2679
2745
|
icon: i,
|
|
2680
2746
|
size: "sm",
|
|
2681
2747
|
"aria-hidden": !0
|
|
2682
2748
|
})
|
|
2683
2749
|
}),
|
|
2684
2750
|
/* @__PURE__ */ t("span", {
|
|
2685
|
-
className:
|
|
2751
|
+
className: Hr.label,
|
|
2686
2752
|
children: r
|
|
2687
2753
|
}),
|
|
2688
2754
|
a && /* @__PURE__ */ t("button", {
|
|
2689
2755
|
type: "button",
|
|
2690
|
-
className:
|
|
2756
|
+
className: Hr.remove,
|
|
2691
2757
|
"aria-label": `Remove ${r}`,
|
|
2692
2758
|
disabled: l,
|
|
2693
2759
|
onClick: (e) => {
|
|
2694
2760
|
e.stopPropagation(), a();
|
|
2695
2761
|
},
|
|
2696
2762
|
tabIndex: l ? -1 : 0,
|
|
2697
|
-
children: /* @__PURE__ */ t(
|
|
2698
|
-
icon:
|
|
2763
|
+
children: /* @__PURE__ */ t(I, {
|
|
2764
|
+
icon: Be,
|
|
2699
2765
|
size: "sm",
|
|
2700
2766
|
"aria-hidden": !0
|
|
2701
2767
|
})
|
|
@@ -2719,30 +2785,30 @@ function Fr({ label: r, icon: i, onRemove: a, selectable: o = !1, selected: s =
|
|
|
2719
2785
|
}
|
|
2720
2786
|
//#endregion
|
|
2721
2787
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.module.css
|
|
2722
|
-
var
|
|
2723
|
-
backdrop:
|
|
2788
|
+
var Wr = "_backdrop_zvuhh_3", Gr = "_dialog_zvuhh_26", Kr = "_header_zvuhh_59", qr = "_title_zvuhh_67", Jr = "_closeBtn_zvuhh_74", Yr = "_searchRow_zvuhh_112", Xr = "_searchIcon_zvuhh_124", Zr = "_searchInput_zvuhh_132", Qr = "_searchClear_zvuhh_151", $r = "_body_zvuhh_174", ei = "_empty_zvuhh_182", ti = "_section_zvuhh_193", ni = "_sectionTitle_zvuhh_199", ri = "_list_zvuhh_209", ii = "_row_zvuhh_225", ai = "_keys_zvuhh_240", oi = "_keyCap_zvuhh_247", si = "_plus_zvuhh_277", ci = "_description_zvuhh_284", G = {
|
|
2789
|
+
backdrop: Wr,
|
|
2724
2790
|
"backdrop-in": "_backdrop-in_zvuhh_1",
|
|
2725
|
-
dialog:
|
|
2791
|
+
dialog: Gr,
|
|
2726
2792
|
"dialog-in": "_dialog-in_zvuhh_1",
|
|
2727
|
-
header:
|
|
2728
|
-
title:
|
|
2729
|
-
closeBtn:
|
|
2730
|
-
searchRow:
|
|
2731
|
-
searchIcon:
|
|
2732
|
-
searchInput:
|
|
2733
|
-
searchClear:
|
|
2734
|
-
body:
|
|
2735
|
-
empty:
|
|
2736
|
-
section:
|
|
2737
|
-
sectionTitle:
|
|
2738
|
-
list:
|
|
2739
|
-
row:
|
|
2740
|
-
keys:
|
|
2741
|
-
keyCap:
|
|
2742
|
-
plus:
|
|
2743
|
-
description:
|
|
2744
|
-
},
|
|
2745
|
-
function
|
|
2793
|
+
header: Kr,
|
|
2794
|
+
title: qr,
|
|
2795
|
+
closeBtn: Jr,
|
|
2796
|
+
searchRow: Yr,
|
|
2797
|
+
searchIcon: Xr,
|
|
2798
|
+
searchInput: Zr,
|
|
2799
|
+
searchClear: Qr,
|
|
2800
|
+
body: $r,
|
|
2801
|
+
empty: ei,
|
|
2802
|
+
section: ti,
|
|
2803
|
+
sectionTitle: ni,
|
|
2804
|
+
list: ri,
|
|
2805
|
+
row: ii,
|
|
2806
|
+
keys: ai,
|
|
2807
|
+
keyCap: oi,
|
|
2808
|
+
plus: si,
|
|
2809
|
+
description: ci
|
|
2810
|
+
}, li = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
2811
|
+
function ui({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a }) {
|
|
2746
2812
|
let [o, s] = h(""), l = m(null), d = m(null), f = m(null), p = m(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
2747
2813
|
u(() => {
|
|
2748
2814
|
e ? (f.current = document.activeElement, requestAnimationFrame(() => d.current?.focus())) : (s(""), f.current?.focus());
|
|
@@ -2753,7 +2819,7 @@ function ni({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2753
2819
|
return;
|
|
2754
2820
|
}
|
|
2755
2821
|
if (e.key !== "Tab") return;
|
|
2756
|
-
let t = Array.from(l.current?.querySelectorAll(
|
|
2822
|
+
let t = Array.from(l.current?.querySelectorAll(li) ?? []);
|
|
2757
2823
|
if (t.length === 0) return;
|
|
2758
2824
|
let n = t[0], i = t[t.length - 1];
|
|
2759
2825
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), n.focus());
|
|
@@ -2763,7 +2829,7 @@ function ni({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2763
2829
|
...e,
|
|
2764
2830
|
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !v || e.toLowerCase().includes(v) || t.some((e) => e.toLowerCase().includes(v)))
|
|
2765
2831
|
})).filter((e) => e.shortcuts.length > 0), b = /* @__PURE__ */ t("div", {
|
|
2766
|
-
className:
|
|
2832
|
+
className: G.backdrop,
|
|
2767
2833
|
onClick: r,
|
|
2768
2834
|
"aria-hidden": "true",
|
|
2769
2835
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -2771,36 +2837,36 @@ function ni({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2771
2837
|
role: "dialog",
|
|
2772
2838
|
"aria-modal": "true",
|
|
2773
2839
|
"aria-labelledby": p.current,
|
|
2774
|
-
className:
|
|
2840
|
+
className: G.dialog,
|
|
2775
2841
|
onKeyDown: _,
|
|
2776
2842
|
onClick: (e) => e.stopPropagation(),
|
|
2777
2843
|
children: [
|
|
2778
2844
|
/* @__PURE__ */ n("div", {
|
|
2779
|
-
className:
|
|
2845
|
+
className: G.header,
|
|
2780
2846
|
children: [/* @__PURE__ */ t("span", {
|
|
2781
2847
|
id: p.current,
|
|
2782
|
-
className:
|
|
2848
|
+
className: G.title,
|
|
2783
2849
|
children: i
|
|
2784
2850
|
}), /* @__PURE__ */ t("button", {
|
|
2785
2851
|
type: "button",
|
|
2786
|
-
className:
|
|
2852
|
+
className: G.closeBtn,
|
|
2787
2853
|
"aria-label": "Close",
|
|
2788
2854
|
onClick: r,
|
|
2789
2855
|
children: "×"
|
|
2790
2856
|
})]
|
|
2791
2857
|
}),
|
|
2792
2858
|
/* @__PURE__ */ n("div", {
|
|
2793
|
-
className:
|
|
2859
|
+
className: G.searchRow,
|
|
2794
2860
|
children: [
|
|
2795
2861
|
/* @__PURE__ */ t("span", {
|
|
2796
|
-
className:
|
|
2862
|
+
className: G.searchIcon,
|
|
2797
2863
|
"aria-hidden": "true",
|
|
2798
2864
|
children: "⌕"
|
|
2799
2865
|
}),
|
|
2800
2866
|
/* @__PURE__ */ t("input", {
|
|
2801
2867
|
ref: d,
|
|
2802
2868
|
type: "search",
|
|
2803
|
-
className:
|
|
2869
|
+
className: G.searchInput,
|
|
2804
2870
|
placeholder: "Search shortcuts…",
|
|
2805
2871
|
value: o,
|
|
2806
2872
|
onChange: (e) => s(e.target.value),
|
|
@@ -2808,7 +2874,7 @@ function ni({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2808
2874
|
}),
|
|
2809
2875
|
o && /* @__PURE__ */ t("button", {
|
|
2810
2876
|
type: "button",
|
|
2811
|
-
className:
|
|
2877
|
+
className: G.searchClear,
|
|
2812
2878
|
"aria-label": "Clear search",
|
|
2813
2879
|
onClick: () => {
|
|
2814
2880
|
s(""), d.current?.focus();
|
|
@@ -2818,38 +2884,38 @@ function ni({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2818
2884
|
]
|
|
2819
2885
|
}),
|
|
2820
2886
|
/* @__PURE__ */ t("div", {
|
|
2821
|
-
className:
|
|
2887
|
+
className: G.body,
|
|
2822
2888
|
role: "list",
|
|
2823
2889
|
children: y.length === 0 ? /* @__PURE__ */ n("p", {
|
|
2824
|
-
className:
|
|
2890
|
+
className: G.empty,
|
|
2825
2891
|
children: [
|
|
2826
2892
|
"No shortcuts match \"",
|
|
2827
2893
|
o,
|
|
2828
2894
|
"\""
|
|
2829
2895
|
]
|
|
2830
2896
|
}) : y.map((e) => /* @__PURE__ */ n("section", {
|
|
2831
|
-
className:
|
|
2897
|
+
className: G.section,
|
|
2832
2898
|
children: [/* @__PURE__ */ t("h3", {
|
|
2833
|
-
className:
|
|
2899
|
+
className: G.sectionTitle,
|
|
2834
2900
|
children: e.title
|
|
2835
2901
|
}), /* @__PURE__ */ t("ul", {
|
|
2836
|
-
className:
|
|
2902
|
+
className: G.list,
|
|
2837
2903
|
children: e.shortcuts.map((e) => /* @__PURE__ */ n("li", {
|
|
2838
|
-
className:
|
|
2904
|
+
className: G.row,
|
|
2839
2905
|
role: "listitem",
|
|
2840
2906
|
children: [/* @__PURE__ */ t("span", {
|
|
2841
|
-
className:
|
|
2907
|
+
className: G.keys,
|
|
2842
2908
|
"aria-label": e.keys.join(" + "),
|
|
2843
2909
|
children: e.keys.map((r, i) => /* @__PURE__ */ n("span", {
|
|
2844
|
-
className:
|
|
2910
|
+
className: G.keyCap,
|
|
2845
2911
|
children: [/* @__PURE__ */ t("kbd", { children: r }), i < e.keys.length - 1 && /* @__PURE__ */ t("span", {
|
|
2846
|
-
className:
|
|
2912
|
+
className: G.plus,
|
|
2847
2913
|
"aria-hidden": "true",
|
|
2848
2914
|
children: "+"
|
|
2849
2915
|
})]
|
|
2850
2916
|
}, i))
|
|
2851
2917
|
}), /* @__PURE__ */ t("span", {
|
|
2852
|
-
className:
|
|
2918
|
+
className: G.description,
|
|
2853
2919
|
children: e.description
|
|
2854
2920
|
})]
|
|
2855
2921
|
}, e.description))
|
|
@@ -2861,7 +2927,7 @@ function ni({ open: e, onClose: r, title: i = "Keyboard Shortcuts", sections: a
|
|
|
2861
2927
|
});
|
|
2862
2928
|
return typeof document > "u" ? b : g(b, document.body);
|
|
2863
2929
|
}
|
|
2864
|
-
var
|
|
2930
|
+
var di = {
|
|
2865
2931
|
sidebar: "_sidebar_kmj4b_3",
|
|
2866
2932
|
list: "_list_kmj4b_17",
|
|
2867
2933
|
item: "_item_kmj4b_28",
|
|
@@ -2871,13 +2937,13 @@ var ri = {
|
|
|
2871
2937
|
itemLabel: "_itemLabel_kmj4b_119",
|
|
2872
2938
|
itemSuffix: "_itemSuffix_kmj4b_129",
|
|
2873
2939
|
count: "_count_kmj4b_136"
|
|
2874
|
-
},
|
|
2875
|
-
function
|
|
2876
|
-
let e = l(
|
|
2940
|
+
}, fi = a(null);
|
|
2941
|
+
function pi() {
|
|
2942
|
+
let e = l(fi);
|
|
2877
2943
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2878
2944
|
return e;
|
|
2879
2945
|
}
|
|
2880
|
-
function
|
|
2946
|
+
function mi({ value: e, onValueChange: n, "aria-label": r = "Views", children: i, className: a, ...o }) {
|
|
2881
2947
|
let s = m(null);
|
|
2882
2948
|
function c(e) {
|
|
2883
2949
|
let t = Array.from(s.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -2890,20 +2956,20 @@ function oi({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2890
2956
|
else return;
|
|
2891
2957
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2892
2958
|
}
|
|
2893
|
-
return /* @__PURE__ */ t(
|
|
2959
|
+
return /* @__PURE__ */ t(fi.Provider, {
|
|
2894
2960
|
value: {
|
|
2895
2961
|
value: e,
|
|
2896
2962
|
onValueChange: n
|
|
2897
2963
|
},
|
|
2898
2964
|
children: /* @__PURE__ */ t("nav", {
|
|
2899
|
-
className: [
|
|
2965
|
+
className: [di.sidebar, a].filter(Boolean).join(" "),
|
|
2900
2966
|
onKeyDown: c,
|
|
2901
2967
|
...o,
|
|
2902
2968
|
children: /* @__PURE__ */ t("ul", {
|
|
2903
2969
|
ref: s,
|
|
2904
2970
|
role: "radiogroup",
|
|
2905
2971
|
"aria-label": r,
|
|
2906
|
-
className:
|
|
2972
|
+
className: di.list,
|
|
2907
2973
|
children: i
|
|
2908
2974
|
})
|
|
2909
2975
|
})
|
|
@@ -2911,10 +2977,10 @@ function oi({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2911
2977
|
}
|
|
2912
2978
|
//#endregion
|
|
2913
2979
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2914
|
-
function
|
|
2915
|
-
let { value: u, onValueChange: d } =
|
|
2980
|
+
function hi({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2981
|
+
let { value: u, onValueChange: d } = pi(), f = u === e, p = o ?? a ?? null;
|
|
2916
2982
|
return /* @__PURE__ */ t("li", {
|
|
2917
|
-
className:
|
|
2983
|
+
className: di.item,
|
|
2918
2984
|
children: /* @__PURE__ */ n("button", {
|
|
2919
2985
|
type: "button",
|
|
2920
2986
|
role: "radio",
|
|
@@ -2923,28 +2989,28 @@ function si({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2923
2989
|
disabled: s,
|
|
2924
2990
|
onClick: () => d(e),
|
|
2925
2991
|
className: [
|
|
2926
|
-
|
|
2927
|
-
f ?
|
|
2992
|
+
di.itemBtn,
|
|
2993
|
+
f ? di.active : null,
|
|
2928
2994
|
c
|
|
2929
2995
|
].filter(Boolean).join(" "),
|
|
2930
2996
|
...l,
|
|
2931
2997
|
children: [
|
|
2932
2998
|
i && /* @__PURE__ */ t("span", {
|
|
2933
|
-
className:
|
|
2934
|
-
children: /* @__PURE__ */ t(
|
|
2999
|
+
className: di.itemIcon,
|
|
3000
|
+
children: /* @__PURE__ */ t(I, {
|
|
2935
3001
|
icon: i,
|
|
2936
3002
|
size: "md",
|
|
2937
3003
|
"aria-hidden": !0
|
|
2938
3004
|
})
|
|
2939
3005
|
}),
|
|
2940
3006
|
/* @__PURE__ */ t("span", {
|
|
2941
|
-
className:
|
|
3007
|
+
className: di.itemLabel,
|
|
2942
3008
|
children: r
|
|
2943
3009
|
}),
|
|
2944
3010
|
p != null && /* @__PURE__ */ t("span", {
|
|
2945
|
-
className:
|
|
3011
|
+
className: di.itemSuffix,
|
|
2946
3012
|
children: typeof p == "number" ? /* @__PURE__ */ t("span", {
|
|
2947
|
-
className:
|
|
3013
|
+
className: di.count,
|
|
2948
3014
|
children: p > 99 ? "99+" : p
|
|
2949
3015
|
}) : p
|
|
2950
3016
|
})
|
|
@@ -2954,7 +3020,7 @@ function si({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2954
3020
|
}
|
|
2955
3021
|
//#endregion
|
|
2956
3022
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2957
|
-
function
|
|
3023
|
+
function gi({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2958
3024
|
let o = m(null), [s, c] = h({
|
|
2959
3025
|
activeBreakpoint: null,
|
|
2960
3026
|
width: 0
|
|
@@ -2984,7 +3050,7 @@ function ci({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2984
3050
|
children: n(s)
|
|
2985
3051
|
});
|
|
2986
3052
|
}
|
|
2987
|
-
var
|
|
3053
|
+
var _i = {
|
|
2988
3054
|
row: "_row_1ba2f_3",
|
|
2989
3055
|
title: "_title_1ba2f_48",
|
|
2990
3056
|
leading: "_leading_1ba2f_59",
|
|
@@ -2995,31 +3061,31 @@ var li = {
|
|
|
2995
3061
|
};
|
|
2996
3062
|
//#endregion
|
|
2997
3063
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2998
|
-
function
|
|
3064
|
+
function vi({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2999
3065
|
return /* @__PURE__ */ n("button", {
|
|
3000
3066
|
className: [
|
|
3001
|
-
|
|
3002
|
-
|
|
3067
|
+
_i.row,
|
|
3068
|
+
_i[r],
|
|
3003
3069
|
o
|
|
3004
3070
|
].filter(Boolean).join(" "),
|
|
3005
3071
|
...s,
|
|
3006
3072
|
children: [
|
|
3007
3073
|
i && /* @__PURE__ */ t("span", {
|
|
3008
|
-
className:
|
|
3074
|
+
className: _i.leading,
|
|
3009
3075
|
children: i
|
|
3010
3076
|
}),
|
|
3011
3077
|
/* @__PURE__ */ t("span", {
|
|
3012
|
-
className:
|
|
3078
|
+
className: _i.title,
|
|
3013
3079
|
children: e
|
|
3014
3080
|
}),
|
|
3015
3081
|
a && /* @__PURE__ */ t("span", {
|
|
3016
|
-
className:
|
|
3082
|
+
className: _i.trailing,
|
|
3017
3083
|
children: a
|
|
3018
3084
|
})
|
|
3019
3085
|
]
|
|
3020
3086
|
});
|
|
3021
3087
|
}
|
|
3022
|
-
var
|
|
3088
|
+
var yi = {
|
|
3023
3089
|
container: "_container_4kjnf_3",
|
|
3024
3090
|
primary: "_primary_4kjnf_14",
|
|
3025
3091
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -3033,7 +3099,7 @@ var di = {
|
|
|
3033
3099
|
};
|
|
3034
3100
|
//#endregion
|
|
3035
3101
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
3036
|
-
function
|
|
3102
|
+
function bi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: s = !1, onClick: l, className: d, ...f }) {
|
|
3037
3103
|
let [p, _] = h(!1), [v, y] = h({}), b = m(null), x = m(null), S = m(null), C = c(() => _(!1), []), w = c(() => {
|
|
3038
3104
|
if (!x.current || !S.current) return;
|
|
3039
3105
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -3063,15 +3129,15 @@ function fi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
3063
3129
|
let T = (e) => {
|
|
3064
3130
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
3065
3131
|
}, E = [
|
|
3066
|
-
|
|
3067
|
-
|
|
3132
|
+
yi.container,
|
|
3133
|
+
yi[i],
|
|
3068
3134
|
d
|
|
3069
3135
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
3070
3136
|
ref: S,
|
|
3071
3137
|
role: "dialog",
|
|
3072
3138
|
"aria-label": o,
|
|
3073
3139
|
tabIndex: -1,
|
|
3074
|
-
className: [
|
|
3140
|
+
className: [yi.dropdown, p ? yi.dropdownVisible : null].filter(Boolean).join(" "),
|
|
3075
3141
|
style: Object.keys(v).length ? {
|
|
3076
3142
|
...v,
|
|
3077
3143
|
position: "fixed"
|
|
@@ -3090,26 +3156,26 @@ function fi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
3090
3156
|
className: E,
|
|
3091
3157
|
children: [
|
|
3092
3158
|
/* @__PURE__ */ t("button", {
|
|
3093
|
-
className:
|
|
3159
|
+
className: yi.primary,
|
|
3094
3160
|
disabled: s,
|
|
3095
3161
|
onClick: l,
|
|
3096
3162
|
...f,
|
|
3097
3163
|
children: r
|
|
3098
3164
|
}),
|
|
3099
3165
|
/* @__PURE__ */ t("span", {
|
|
3100
|
-
className:
|
|
3166
|
+
className: yi.separator,
|
|
3101
3167
|
"aria-hidden": "true"
|
|
3102
3168
|
}),
|
|
3103
3169
|
/* @__PURE__ */ t("button", {
|
|
3104
3170
|
ref: x,
|
|
3105
|
-
className:
|
|
3171
|
+
className: yi.toggle,
|
|
3106
3172
|
disabled: s,
|
|
3107
3173
|
"aria-label": o,
|
|
3108
3174
|
"aria-haspopup": "dialog",
|
|
3109
3175
|
"aria-expanded": p,
|
|
3110
3176
|
onClick: () => _((e) => !e),
|
|
3111
3177
|
children: /* @__PURE__ */ t("svg", {
|
|
3112
|
-
className:
|
|
3178
|
+
className: yi.chevron,
|
|
3113
3179
|
width: "16",
|
|
3114
3180
|
height: "16",
|
|
3115
3181
|
viewBox: "0 0 16 16",
|
|
@@ -3128,56 +3194,56 @@ function fi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
3128
3194
|
]
|
|
3129
3195
|
}), p && (typeof document < "u" ? g(D, document.body) : D)] });
|
|
3130
3196
|
}
|
|
3131
|
-
var
|
|
3197
|
+
var xi = {
|
|
3132
3198
|
toolbar: "_toolbar_1avgl_2",
|
|
3133
3199
|
spacer: "_spacer_1avgl_20"
|
|
3134
3200
|
};
|
|
3135
3201
|
//#endregion
|
|
3136
3202
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
3137
|
-
function
|
|
3203
|
+
function Si({ children: e, className: n, ...r }) {
|
|
3138
3204
|
return /* @__PURE__ */ t("div", {
|
|
3139
|
-
className: [
|
|
3205
|
+
className: [xi.toolbar, n].filter(Boolean).join(" "),
|
|
3140
3206
|
...r,
|
|
3141
3207
|
children: e
|
|
3142
3208
|
});
|
|
3143
3209
|
}
|
|
3144
3210
|
//#endregion
|
|
3145
3211
|
//#region src/components/Toolbar/Spacer.tsx
|
|
3146
|
-
function
|
|
3212
|
+
function Ci({ className: e, ...n }) {
|
|
3147
3213
|
return /* @__PURE__ */ t("div", {
|
|
3148
3214
|
"aria-hidden": "true",
|
|
3149
|
-
className: [
|
|
3215
|
+
className: [xi.spacer, e].filter(Boolean).join(" "),
|
|
3150
3216
|
...n
|
|
3151
3217
|
});
|
|
3152
3218
|
}
|
|
3153
|
-
var
|
|
3219
|
+
var wi = {
|
|
3154
3220
|
linked: "_linked_1tser_3",
|
|
3155
3221
|
vertical: "_vertical_1tser_9"
|
|
3156
3222
|
};
|
|
3157
3223
|
//#endregion
|
|
3158
3224
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
3159
|
-
function
|
|
3225
|
+
function Ti({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
3160
3226
|
return /* @__PURE__ */ t("div", {
|
|
3161
3227
|
className: [
|
|
3162
|
-
|
|
3163
|
-
n ?
|
|
3228
|
+
wi.linked,
|
|
3229
|
+
n ? wi.vertical : null,
|
|
3164
3230
|
r
|
|
3165
3231
|
].filter(Boolean).join(" "),
|
|
3166
3232
|
...i,
|
|
3167
3233
|
children: e
|
|
3168
3234
|
});
|
|
3169
3235
|
}
|
|
3170
|
-
var
|
|
3236
|
+
var Ei = { frame: "_frame_1bq7b_2" };
|
|
3171
3237
|
//#endregion
|
|
3172
3238
|
//#region src/components/Frame/Frame.tsx
|
|
3173
|
-
function
|
|
3239
|
+
function Di({ children: e, className: n, ...r }) {
|
|
3174
3240
|
return /* @__PURE__ */ t("div", {
|
|
3175
|
-
className: [
|
|
3241
|
+
className: [Ei.frame, n].filter(Boolean).join(" "),
|
|
3176
3242
|
...r,
|
|
3177
3243
|
children: e
|
|
3178
3244
|
});
|
|
3179
3245
|
}
|
|
3180
|
-
var
|
|
3246
|
+
var K = {
|
|
3181
3247
|
expanderRow: "_expanderRow_1wh8c_3",
|
|
3182
3248
|
header: "_header_1wh8c_11",
|
|
3183
3249
|
leading: "_leading_1wh8c_55",
|
|
@@ -3195,48 +3261,48 @@ var q = {
|
|
|
3195
3261
|
};
|
|
3196
3262
|
//#endregion
|
|
3197
3263
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
3198
|
-
function
|
|
3264
|
+
function Oi({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: u, className: f, ...p }) {
|
|
3199
3265
|
let m = c !== void 0, [g, _] = h(l), v = m ? c : g, y = d(), b = d(), x = () => {
|
|
3200
3266
|
let e = !v;
|
|
3201
3267
|
m || _(e), u?.(e);
|
|
3202
3268
|
}, S = r.toArray(s).filter(Boolean);
|
|
3203
3269
|
return /* @__PURE__ */ n("div", {
|
|
3204
3270
|
className: [
|
|
3205
|
-
|
|
3206
|
-
v ?
|
|
3271
|
+
K.expanderRow,
|
|
3272
|
+
v ? K.expanded : null,
|
|
3207
3273
|
f
|
|
3208
3274
|
].filter(Boolean).join(" "),
|
|
3209
3275
|
...p,
|
|
3210
3276
|
children: [/* @__PURE__ */ n("button", {
|
|
3211
3277
|
id: b,
|
|
3212
|
-
className:
|
|
3278
|
+
className: K.header,
|
|
3213
3279
|
"aria-expanded": v,
|
|
3214
3280
|
"aria-controls": y,
|
|
3215
3281
|
onClick: x,
|
|
3216
3282
|
children: [
|
|
3217
3283
|
a && /* @__PURE__ */ t("span", {
|
|
3218
|
-
className:
|
|
3284
|
+
className: K.leading,
|
|
3219
3285
|
children: a
|
|
3220
3286
|
}),
|
|
3221
3287
|
/* @__PURE__ */ n("span", {
|
|
3222
|
-
className:
|
|
3288
|
+
className: K.content,
|
|
3223
3289
|
children: [/* @__PURE__ */ t("span", {
|
|
3224
|
-
className:
|
|
3290
|
+
className: K.title,
|
|
3225
3291
|
children: e
|
|
3226
3292
|
}), i && /* @__PURE__ */ t("span", {
|
|
3227
|
-
className:
|
|
3293
|
+
className: K.subtitle,
|
|
3228
3294
|
children: i
|
|
3229
3295
|
})]
|
|
3230
3296
|
}),
|
|
3231
3297
|
o && /* @__PURE__ */ t("span", {
|
|
3232
|
-
className:
|
|
3298
|
+
className: K.trailing,
|
|
3233
3299
|
children: o
|
|
3234
3300
|
}),
|
|
3235
3301
|
/* @__PURE__ */ t("span", {
|
|
3236
|
-
className: [
|
|
3302
|
+
className: [K.chevronWrap, v ? K.chevronOpen : null].filter(Boolean).join(" "),
|
|
3237
3303
|
"aria-hidden": "true",
|
|
3238
3304
|
children: /* @__PURE__ */ t("svg", {
|
|
3239
|
-
className:
|
|
3305
|
+
className: K.chevron,
|
|
3240
3306
|
width: "16",
|
|
3241
3307
|
height: "16",
|
|
3242
3308
|
viewBox: "0 0 16 16",
|
|
@@ -3256,18 +3322,18 @@ function bi({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
3256
3322
|
id: y,
|
|
3257
3323
|
role: "region",
|
|
3258
3324
|
"aria-labelledby": b,
|
|
3259
|
-
className:
|
|
3325
|
+
className: K.panel,
|
|
3260
3326
|
children: /* @__PURE__ */ t("div", {
|
|
3261
|
-
className:
|
|
3327
|
+
className: K.panelInner,
|
|
3262
3328
|
children: S.map((e, r) => /* @__PURE__ */ n("div", {
|
|
3263
|
-
className:
|
|
3264
|
-
children: [/* @__PURE__ */ t(
|
|
3329
|
+
className: K.childItem,
|
|
3330
|
+
children: [/* @__PURE__ */ t(se, { "aria-hidden": "true" }), e]
|
|
3265
3331
|
}, r))
|
|
3266
3332
|
})
|
|
3267
3333
|
})]
|
|
3268
3334
|
});
|
|
3269
3335
|
}
|
|
3270
|
-
var
|
|
3336
|
+
var ki = {
|
|
3271
3337
|
switcher: "_switcher_2tknm_3",
|
|
3272
3338
|
item: "_item_2tknm_10",
|
|
3273
3339
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -3277,13 +3343,13 @@ var xi = {
|
|
|
3277
3343
|
active: "_active_2tknm_68",
|
|
3278
3344
|
flat: "_flat_2tknm_121",
|
|
3279
3345
|
round: "_round_2tknm_169"
|
|
3280
|
-
},
|
|
3281
|
-
function
|
|
3282
|
-
let e = l(
|
|
3346
|
+
}, Ai = a(null);
|
|
3347
|
+
function ji() {
|
|
3348
|
+
let e = l(Ai);
|
|
3283
3349
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
3284
3350
|
return e;
|
|
3285
3351
|
}
|
|
3286
|
-
function
|
|
3352
|
+
function Mi({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
3287
3353
|
let c = m(null);
|
|
3288
3354
|
function l(e) {
|
|
3289
3355
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -3296,7 +3362,7 @@ function wi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3296
3362
|
else return;
|
|
3297
3363
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
3298
3364
|
}
|
|
3299
|
-
return /* @__PURE__ */ t(
|
|
3365
|
+
return /* @__PURE__ */ t(Ai.Provider, {
|
|
3300
3366
|
value: {
|
|
3301
3367
|
value: e,
|
|
3302
3368
|
onValueChange: n
|
|
@@ -3307,8 +3373,8 @@ function wi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3307
3373
|
"aria-label": i,
|
|
3308
3374
|
onKeyDown: l,
|
|
3309
3375
|
className: [
|
|
3310
|
-
|
|
3311
|
-
|
|
3376
|
+
ki.switcher,
|
|
3377
|
+
ki[r],
|
|
3312
3378
|
o
|
|
3313
3379
|
].filter(Boolean).join(" "),
|
|
3314
3380
|
...s,
|
|
@@ -3318,8 +3384,8 @@ function wi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3318
3384
|
}
|
|
3319
3385
|
//#endregion
|
|
3320
3386
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
3321
|
-
function
|
|
3322
|
-
let { value: c, onValueChange: l } =
|
|
3387
|
+
function Ni({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3388
|
+
let { value: c, onValueChange: l } = ji(), u = c === e, d = i && !r;
|
|
3323
3389
|
return /* @__PURE__ */ n("button", {
|
|
3324
3390
|
type: "button",
|
|
3325
3391
|
role: "radio",
|
|
@@ -3328,26 +3394,26 @@ function Ti({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3328
3394
|
disabled: a,
|
|
3329
3395
|
onClick: () => l(e),
|
|
3330
3396
|
className: [
|
|
3331
|
-
|
|
3332
|
-
u ?
|
|
3333
|
-
d ?
|
|
3397
|
+
ki.item,
|
|
3398
|
+
u ? ki.active : null,
|
|
3399
|
+
d ? ki.iconOnly : null,
|
|
3334
3400
|
o
|
|
3335
3401
|
].filter(Boolean).join(" "),
|
|
3336
3402
|
...s,
|
|
3337
3403
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3338
|
-
className:
|
|
3339
|
-
children: /* @__PURE__ */ t(
|
|
3404
|
+
className: ki.itemIcon,
|
|
3405
|
+
children: /* @__PURE__ */ t(I, {
|
|
3340
3406
|
icon: i,
|
|
3341
3407
|
size: "md",
|
|
3342
3408
|
"aria-hidden": !0
|
|
3343
3409
|
})
|
|
3344
3410
|
}), r && /* @__PURE__ */ t("span", {
|
|
3345
|
-
className:
|
|
3411
|
+
className: ki.itemLabel,
|
|
3346
3412
|
children: r
|
|
3347
3413
|
})]
|
|
3348
3414
|
});
|
|
3349
3415
|
}
|
|
3350
|
-
var
|
|
3416
|
+
var Pi = {
|
|
3351
3417
|
row: "_row_jl3bc_3",
|
|
3352
3418
|
disabled: "_disabled_jl3bc_41",
|
|
3353
3419
|
leading: "_leading_jl3bc_49",
|
|
@@ -3360,7 +3426,7 @@ var Ei = {
|
|
|
3360
3426
|
};
|
|
3361
3427
|
//#endregion
|
|
3362
3428
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3363
|
-
function
|
|
3429
|
+
function Fi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
|
|
3364
3430
|
let p = a !== void 0, [m, g] = h(o), _ = p ? a : m, v = d(), y = (e) => {
|
|
3365
3431
|
let t = !_;
|
|
3366
3432
|
p || g(t), s?.(t), u?.(e);
|
|
@@ -3371,37 +3437,37 @@ function Di({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3371
3437
|
"aria-labelledby": v,
|
|
3372
3438
|
disabled: c,
|
|
3373
3439
|
className: [
|
|
3374
|
-
|
|
3375
|
-
c ?
|
|
3440
|
+
Pi.row,
|
|
3441
|
+
c ? Pi.disabled : null,
|
|
3376
3442
|
l
|
|
3377
3443
|
].filter(Boolean).join(" "),
|
|
3378
3444
|
onClick: y,
|
|
3379
3445
|
...f,
|
|
3380
3446
|
children: [
|
|
3381
3447
|
i && /* @__PURE__ */ t("span", {
|
|
3382
|
-
className:
|
|
3448
|
+
className: Pi.leading,
|
|
3383
3449
|
children: i
|
|
3384
3450
|
}),
|
|
3385
3451
|
/* @__PURE__ */ n("span", {
|
|
3386
|
-
className:
|
|
3452
|
+
className: Pi.content,
|
|
3387
3453
|
id: v,
|
|
3388
3454
|
children: [/* @__PURE__ */ t("span", {
|
|
3389
|
-
className:
|
|
3455
|
+
className: Pi.title,
|
|
3390
3456
|
children: e
|
|
3391
3457
|
}), r && /* @__PURE__ */ t("span", {
|
|
3392
|
-
className:
|
|
3458
|
+
className: Pi.subtitle,
|
|
3393
3459
|
children: r
|
|
3394
3460
|
})]
|
|
3395
3461
|
}),
|
|
3396
3462
|
/* @__PURE__ */ t("span", {
|
|
3397
|
-
className:
|
|
3463
|
+
className: Pi.switchTrack,
|
|
3398
3464
|
"aria-hidden": "true",
|
|
3399
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3465
|
+
children: /* @__PURE__ */ t("span", { className: [Pi.switchThumb, _ ? Pi.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3400
3466
|
})
|
|
3401
3467
|
]
|
|
3402
3468
|
});
|
|
3403
3469
|
}
|
|
3404
|
-
var
|
|
3470
|
+
var q = {
|
|
3405
3471
|
row: "_row_1dije_3",
|
|
3406
3472
|
disabled: "_disabled_1dije_41",
|
|
3407
3473
|
checkboxWrap: "_checkboxWrap_1dije_49",
|
|
@@ -3415,7 +3481,7 @@ var J = {
|
|
|
3415
3481
|
};
|
|
3416
3482
|
//#endregion
|
|
3417
3483
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3418
|
-
function
|
|
3484
|
+
function Ii({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
|
|
3419
3485
|
let p = a !== void 0, [m, g] = h(o), _ = p ? a : m, v = d(), y = (e) => {
|
|
3420
3486
|
let t = !_;
|
|
3421
3487
|
p || g(t), s?.(t), u?.(e);
|
|
@@ -3426,20 +3492,20 @@ function Oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3426
3492
|
"aria-labelledby": v,
|
|
3427
3493
|
disabled: c,
|
|
3428
3494
|
className: [
|
|
3429
|
-
|
|
3430
|
-
c ?
|
|
3495
|
+
q.row,
|
|
3496
|
+
c ? q.disabled : null,
|
|
3431
3497
|
l
|
|
3432
3498
|
].filter(Boolean).join(" "),
|
|
3433
3499
|
onClick: y,
|
|
3434
3500
|
...f,
|
|
3435
3501
|
children: [
|
|
3436
3502
|
/* @__PURE__ */ t("span", {
|
|
3437
|
-
className:
|
|
3503
|
+
className: q.checkboxWrap,
|
|
3438
3504
|
"aria-hidden": "true",
|
|
3439
3505
|
children: /* @__PURE__ */ t("span", {
|
|
3440
|
-
className: [
|
|
3506
|
+
className: [q.checkbox, _ ? q.checkboxChecked : null].filter(Boolean).join(" "),
|
|
3441
3507
|
children: _ && /* @__PURE__ */ t("svg", {
|
|
3442
|
-
className:
|
|
3508
|
+
className: q.checkmark,
|
|
3443
3509
|
width: "12",
|
|
3444
3510
|
height: "12",
|
|
3445
3511
|
viewBox: "0 0 12 12",
|
|
@@ -3456,17 +3522,17 @@ function Oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3456
3522
|
})
|
|
3457
3523
|
}),
|
|
3458
3524
|
i && /* @__PURE__ */ t("span", {
|
|
3459
|
-
className:
|
|
3525
|
+
className: q.leading,
|
|
3460
3526
|
children: i
|
|
3461
3527
|
}),
|
|
3462
3528
|
/* @__PURE__ */ n("span", {
|
|
3463
|
-
className:
|
|
3529
|
+
className: q.content,
|
|
3464
3530
|
id: v,
|
|
3465
3531
|
children: [/* @__PURE__ */ t("span", {
|
|
3466
|
-
className:
|
|
3532
|
+
className: q.title,
|
|
3467
3533
|
children: e
|
|
3468
3534
|
}), r && /* @__PURE__ */ t("span", {
|
|
3469
|
-
className:
|
|
3535
|
+
className: q.subtitle,
|
|
3470
3536
|
children: r
|
|
3471
3537
|
})]
|
|
3472
3538
|
})
|
|
@@ -3475,35 +3541,35 @@ function Oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3475
3541
|
}
|
|
3476
3542
|
//#endregion
|
|
3477
3543
|
//#region src/components/ComboRow/ComboRow.module.css
|
|
3478
|
-
var
|
|
3479
|
-
row:
|
|
3480
|
-
disabled:
|
|
3481
|
-
leading:
|
|
3482
|
-
content:
|
|
3483
|
-
title:
|
|
3484
|
-
subtitle:
|
|
3485
|
-
comboWrap:
|
|
3486
|
-
trigger:
|
|
3487
|
-
triggerOpen:
|
|
3488
|
-
triggerLabel:
|
|
3489
|
-
placeholder:
|
|
3490
|
-
chevron:
|
|
3491
|
-
chevronOpen:
|
|
3492
|
-
list:
|
|
3544
|
+
var Li = "_row_46mn8_3", Ri = "_disabled_46mn8_16", zi = "_leading_46mn8_23", Bi = "_content_46mn8_32", Vi = "_title_46mn8_40", Hi = "_subtitle_46mn8_51", Ui = "_comboWrap_46mn8_65", Wi = "_trigger_46mn8_73", Gi = "_triggerOpen_46mn8_126", Ki = "_triggerLabel_46mn8_136", qi = "_placeholder_46mn8_144", Ji = "_chevron_46mn8_150", Yi = "_chevronOpen_46mn8_157", Xi = "_list_46mn8_163", Zi = "_listDown_46mn8_192", Qi = "_listUp_46mn8_196", $i = "_option_46mn8_208", ea = "_optionActive_46mn8_225", ta = "_optionSelected_46mn8_229", na = "_optionDisabled_46mn8_233", ra = "_optionLabel_46mn8_239", ia = "_checkIcon_46mn8_247", J = {
|
|
3545
|
+
row: Li,
|
|
3546
|
+
disabled: Ri,
|
|
3547
|
+
leading: zi,
|
|
3548
|
+
content: Bi,
|
|
3549
|
+
title: Vi,
|
|
3550
|
+
subtitle: Hi,
|
|
3551
|
+
comboWrap: Ui,
|
|
3552
|
+
trigger: Wi,
|
|
3553
|
+
triggerOpen: Gi,
|
|
3554
|
+
triggerLabel: Ki,
|
|
3555
|
+
placeholder: qi,
|
|
3556
|
+
chevron: Ji,
|
|
3557
|
+
chevronOpen: Yi,
|
|
3558
|
+
list: Xi,
|
|
3493
3559
|
"list-in": "_list-in_46mn8_1",
|
|
3494
|
-
listDown:
|
|
3495
|
-
listUp:
|
|
3560
|
+
listDown: Zi,
|
|
3561
|
+
listUp: Qi,
|
|
3496
3562
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3497
|
-
option:
|
|
3498
|
-
optionActive:
|
|
3499
|
-
optionSelected:
|
|
3500
|
-
optionDisabled:
|
|
3501
|
-
optionLabel:
|
|
3502
|
-
checkIcon:
|
|
3563
|
+
option: $i,
|
|
3564
|
+
optionActive: ea,
|
|
3565
|
+
optionSelected: ta,
|
|
3566
|
+
optionDisabled: na,
|
|
3567
|
+
optionLabel: ra,
|
|
3568
|
+
checkIcon: ia
|
|
3503
3569
|
};
|
|
3504
3570
|
//#endregion
|
|
3505
3571
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3506
|
-
function
|
|
3572
|
+
function aa({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: s, onValueChange: l, disabled: f = !1, className: p, ...g }) {
|
|
3507
3573
|
let _ = o !== void 0, [v, y] = h(s), b = _ ? o : v, [x, S] = h(!1), [C, w] = h(-1), [T, E] = h(!1), D = d(), O = d(), k = m(null), A = m(null), j = a.find((e) => e.value === b), M = c(() => {
|
|
3508
3574
|
if (!k.current) return;
|
|
3509
3575
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3551,7 +3617,7 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3551
3617
|
N,
|
|
3552
3618
|
M,
|
|
3553
3619
|
a
|
|
3554
|
-
]),
|
|
3620
|
+
]), te = c((e) => {
|
|
3555
3621
|
let t = a.map((e, t) => ({
|
|
3556
3622
|
o: e,
|
|
3557
3623
|
i: t
|
|
@@ -3592,28 +3658,28 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3592
3658
|
]);
|
|
3593
3659
|
return /* @__PURE__ */ n("div", {
|
|
3594
3660
|
className: [
|
|
3595
|
-
|
|
3596
|
-
f ?
|
|
3661
|
+
J.row,
|
|
3662
|
+
f ? J.disabled : null,
|
|
3597
3663
|
p
|
|
3598
3664
|
].filter(Boolean).join(" "),
|
|
3599
3665
|
...g,
|
|
3600
3666
|
children: [
|
|
3601
3667
|
i && /* @__PURE__ */ t("span", {
|
|
3602
|
-
className:
|
|
3668
|
+
className: J.leading,
|
|
3603
3669
|
children: i
|
|
3604
3670
|
}),
|
|
3605
3671
|
/* @__PURE__ */ n("span", {
|
|
3606
|
-
className:
|
|
3672
|
+
className: J.content,
|
|
3607
3673
|
children: [/* @__PURE__ */ t("span", {
|
|
3608
|
-
className:
|
|
3674
|
+
className: J.title,
|
|
3609
3675
|
children: e
|
|
3610
3676
|
}), r && /* @__PURE__ */ t("span", {
|
|
3611
|
-
className:
|
|
3677
|
+
className: J.subtitle,
|
|
3612
3678
|
children: r
|
|
3613
3679
|
})]
|
|
3614
3680
|
}),
|
|
3615
3681
|
/* @__PURE__ */ n("div", {
|
|
3616
|
-
className:
|
|
3682
|
+
className: J.comboWrap,
|
|
3617
3683
|
children: [/* @__PURE__ */ n("button", {
|
|
3618
3684
|
ref: k,
|
|
3619
3685
|
id: D,
|
|
@@ -3624,14 +3690,14 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3624
3690
|
"aria-controls": O,
|
|
3625
3691
|
"aria-activedescendant": x && C >= 0 ? `${O}-opt-${C}` : void 0,
|
|
3626
3692
|
disabled: f,
|
|
3627
|
-
className: [
|
|
3693
|
+
className: [J.trigger, x ? J.triggerOpen : null].filter(Boolean).join(" "),
|
|
3628
3694
|
onClick: () => x ? P() : N(),
|
|
3629
3695
|
onKeyDown: ee,
|
|
3630
3696
|
children: [/* @__PURE__ */ t("span", {
|
|
3631
|
-
className: [
|
|
3697
|
+
className: [J.triggerLabel, j ? null : J.placeholder].filter(Boolean).join(" "),
|
|
3632
3698
|
children: j?.label ?? "—"
|
|
3633
3699
|
}), /* @__PURE__ */ t("svg", {
|
|
3634
|
-
className: [
|
|
3700
|
+
className: [J.chevron, x ? J.chevronOpen : null].filter(Boolean).join(" "),
|
|
3635
3701
|
width: "16",
|
|
3636
3702
|
height: "16",
|
|
3637
3703
|
viewBox: "0 0 16 16",
|
|
@@ -3652,23 +3718,23 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3652
3718
|
role: "listbox",
|
|
3653
3719
|
"aria-labelledby": D,
|
|
3654
3720
|
tabIndex: -1,
|
|
3655
|
-
className: [
|
|
3656
|
-
onKeyDown:
|
|
3721
|
+
className: [J.list, T ? J.listUp : J.listDown].filter(Boolean).join(" "),
|
|
3722
|
+
onKeyDown: te,
|
|
3657
3723
|
children: a.map((e, r) => /* @__PURE__ */ n("li", {
|
|
3658
3724
|
id: `${O}-opt-${r}`,
|
|
3659
3725
|
role: "option",
|
|
3660
3726
|
"aria-selected": e.value === b,
|
|
3661
3727
|
"aria-disabled": e.disabled,
|
|
3662
3728
|
className: [
|
|
3663
|
-
|
|
3664
|
-
e.value === b ?
|
|
3665
|
-
r === C ?
|
|
3666
|
-
e.disabled ?
|
|
3729
|
+
J.option,
|
|
3730
|
+
e.value === b ? J.optionSelected : null,
|
|
3731
|
+
r === C ? J.optionActive : null,
|
|
3732
|
+
e.disabled ? J.optionDisabled : null
|
|
3667
3733
|
].filter(Boolean).join(" "),
|
|
3668
3734
|
onMouseEnter: () => !e.disabled && w(r),
|
|
3669
3735
|
onClick: () => F(e),
|
|
3670
3736
|
children: [/* @__PURE__ */ t("span", {
|
|
3671
|
-
className:
|
|
3737
|
+
className: J.optionLabel,
|
|
3672
3738
|
children: e.label
|
|
3673
3739
|
}), e.value === b && /* @__PURE__ */ t("svg", {
|
|
3674
3740
|
width: "16",
|
|
@@ -3676,7 +3742,7 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3676
3742
|
viewBox: "0 0 16 16",
|
|
3677
3743
|
"aria-hidden": "true",
|
|
3678
3744
|
focusable: "false",
|
|
3679
|
-
className:
|
|
3745
|
+
className: J.checkIcon,
|
|
3680
3746
|
children: /* @__PURE__ */ t("path", {
|
|
3681
3747
|
d: "M3 8l4 4 6-6",
|
|
3682
3748
|
fill: "none",
|
|
@@ -3692,7 +3758,7 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3692
3758
|
]
|
|
3693
3759
|
});
|
|
3694
3760
|
}
|
|
3695
|
-
var
|
|
3761
|
+
var Y = {
|
|
3696
3762
|
row: "_row_1kogj_3",
|
|
3697
3763
|
focused: "_focused_1kogj_16",
|
|
3698
3764
|
disabled: "_disabled_1kogj_25",
|
|
@@ -3706,31 +3772,31 @@ var X = {
|
|
|
3706
3772
|
};
|
|
3707
3773
|
//#endregion
|
|
3708
3774
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3709
|
-
function
|
|
3775
|
+
function oa({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: u, onChange: f, ...p }) {
|
|
3710
3776
|
let g = d(), _ = u ?? g, v = r !== void 0, [y, b] = h(String(i)), x = v ? String(r) : y, [S, C] = h(!1), w = m(null), T = S || x.length > 0;
|
|
3711
3777
|
return /* @__PURE__ */ n("div", {
|
|
3712
3778
|
className: [
|
|
3713
|
-
|
|
3714
|
-
S ?
|
|
3715
|
-
c ?
|
|
3779
|
+
Y.row,
|
|
3780
|
+
S ? Y.focused : null,
|
|
3781
|
+
c ? Y.disabled : null,
|
|
3716
3782
|
l
|
|
3717
3783
|
].filter(Boolean).join(" "),
|
|
3718
3784
|
onClick: () => w.current?.focus(),
|
|
3719
3785
|
children: [
|
|
3720
3786
|
o && /* @__PURE__ */ t("span", {
|
|
3721
|
-
className:
|
|
3787
|
+
className: Y.leading,
|
|
3722
3788
|
children: o
|
|
3723
3789
|
}),
|
|
3724
3790
|
/* @__PURE__ */ n("span", {
|
|
3725
|
-
className:
|
|
3791
|
+
className: Y.fieldWrap,
|
|
3726
3792
|
children: [/* @__PURE__ */ t("label", {
|
|
3727
3793
|
htmlFor: _,
|
|
3728
|
-
className: [
|
|
3794
|
+
className: [Y.label, T ? Y.labelFloated : null].filter(Boolean).join(" "),
|
|
3729
3795
|
children: e
|
|
3730
3796
|
}), /* @__PURE__ */ t("input", {
|
|
3731
3797
|
ref: w,
|
|
3732
3798
|
id: _,
|
|
3733
|
-
className: [
|
|
3799
|
+
className: [Y.input, T ? Y.inputFloated : null].filter(Boolean).join(" "),
|
|
3734
3800
|
value: x,
|
|
3735
3801
|
disabled: c,
|
|
3736
3802
|
onFocus: () => C(!0),
|
|
@@ -3742,39 +3808,39 @@ function Qi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3742
3808
|
})]
|
|
3743
3809
|
}),
|
|
3744
3810
|
s && /* @__PURE__ */ t("span", {
|
|
3745
|
-
className:
|
|
3811
|
+
className: Y.trailing,
|
|
3746
3812
|
children: s
|
|
3747
3813
|
})
|
|
3748
3814
|
]
|
|
3749
3815
|
});
|
|
3750
3816
|
}
|
|
3751
|
-
var
|
|
3817
|
+
var sa = { revealButton: "_revealButton_1j8z0_3" };
|
|
3752
3818
|
//#endregion
|
|
3753
3819
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3754
|
-
function
|
|
3820
|
+
function ca({ trailing: r, disabled: i, ...a }) {
|
|
3755
3821
|
let [o, s] = h(!1), c = /* @__PURE__ */ t("button", {
|
|
3756
3822
|
type: "button",
|
|
3757
|
-
className:
|
|
3823
|
+
className: sa.revealButton,
|
|
3758
3824
|
onClick: (e) => {
|
|
3759
3825
|
e.stopPropagation(), s((e) => !e);
|
|
3760
3826
|
},
|
|
3761
3827
|
"aria-label": o ? "Conceal password" : "Reveal password",
|
|
3762
3828
|
"aria-pressed": o,
|
|
3763
3829
|
disabled: i,
|
|
3764
|
-
children: /* @__PURE__ */ t(
|
|
3765
|
-
icon: o ?
|
|
3830
|
+
children: /* @__PURE__ */ t(I, {
|
|
3831
|
+
icon: o ? Ue : He,
|
|
3766
3832
|
size: "md",
|
|
3767
3833
|
"aria-hidden": !0
|
|
3768
3834
|
})
|
|
3769
3835
|
});
|
|
3770
|
-
return /* @__PURE__ */ t(
|
|
3836
|
+
return /* @__PURE__ */ t(oa, {
|
|
3771
3837
|
...a,
|
|
3772
3838
|
type: o ? "text" : "password",
|
|
3773
3839
|
disabled: i,
|
|
3774
3840
|
trailing: /* @__PURE__ */ n(e, { children: [r, c] })
|
|
3775
3841
|
});
|
|
3776
3842
|
}
|
|
3777
|
-
var
|
|
3843
|
+
var la = {
|
|
3778
3844
|
row: "_row_ycg6f_3",
|
|
3779
3845
|
disabled: "_disabled_ycg6f_16",
|
|
3780
3846
|
leading: "_leading_ycg6f_23",
|
|
@@ -3787,16 +3853,16 @@ var ta = {
|
|
|
3787
3853
|
};
|
|
3788
3854
|
//#endregion
|
|
3789
3855
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3790
|
-
function
|
|
3856
|
+
function ua(e) {
|
|
3791
3857
|
let t = e.toString(), n = t.indexOf(".");
|
|
3792
3858
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3793
3859
|
}
|
|
3794
|
-
function
|
|
3860
|
+
function da(e, t, n) {
|
|
3795
3861
|
return Math.min(n, Math.max(t, e));
|
|
3796
3862
|
}
|
|
3797
|
-
function
|
|
3798
|
-
let v = a !== void 0, [y, b] = h(o), x = v ? a : y, S = p ??
|
|
3799
|
-
let t = parseFloat(
|
|
3863
|
+
function fa({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0, onValueChange: s, min: l = 0, max: u = 100, step: f = 1, decimals: p, disabled: m = !1, className: g, ..._ }) {
|
|
3864
|
+
let v = a !== void 0, [y, b] = h(o), x = v ? a : y, S = p ?? ua(f), C = d(), w = c((e) => {
|
|
3865
|
+
let t = parseFloat(da(e, l, u).toFixed(S));
|
|
3800
3866
|
v || b(t), s?.(t);
|
|
3801
3867
|
}, [
|
|
3802
3868
|
v,
|
|
@@ -3834,23 +3900,23 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3834
3900
|
]);
|
|
3835
3901
|
return /* @__PURE__ */ n("div", {
|
|
3836
3902
|
className: [
|
|
3837
|
-
|
|
3838
|
-
m ?
|
|
3903
|
+
la.row,
|
|
3904
|
+
m ? la.disabled : null,
|
|
3839
3905
|
g
|
|
3840
3906
|
].filter(Boolean).join(" "),
|
|
3841
3907
|
..._,
|
|
3842
3908
|
children: [
|
|
3843
3909
|
i && /* @__PURE__ */ t("span", {
|
|
3844
|
-
className:
|
|
3910
|
+
className: la.leading,
|
|
3845
3911
|
children: i
|
|
3846
3912
|
}),
|
|
3847
3913
|
/* @__PURE__ */ n("span", {
|
|
3848
|
-
className:
|
|
3914
|
+
className: la.content,
|
|
3849
3915
|
children: [/* @__PURE__ */ t("span", {
|
|
3850
|
-
className:
|
|
3916
|
+
className: la.title,
|
|
3851
3917
|
children: e
|
|
3852
3918
|
}), r && /* @__PURE__ */ t("span", {
|
|
3853
|
-
className:
|
|
3919
|
+
className: la.subtitle,
|
|
3854
3920
|
children: r
|
|
3855
3921
|
})]
|
|
3856
3922
|
}),
|
|
@@ -3863,14 +3929,14 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3863
3929
|
"aria-disabled": m || void 0,
|
|
3864
3930
|
tabIndex: m ? -1 : 0,
|
|
3865
3931
|
onKeyDown: m ? void 0 : T,
|
|
3866
|
-
className:
|
|
3932
|
+
className: la.spin,
|
|
3867
3933
|
children: [
|
|
3868
3934
|
/* @__PURE__ */ t("button", {
|
|
3869
3935
|
type: "button",
|
|
3870
3936
|
tabIndex: -1,
|
|
3871
3937
|
"aria-hidden": "true",
|
|
3872
3938
|
disabled: m || x <= l,
|
|
3873
|
-
className:
|
|
3939
|
+
className: la.spinBtn,
|
|
3874
3940
|
onClick: (e) => {
|
|
3875
3941
|
e.stopPropagation(), w(x - f);
|
|
3876
3942
|
},
|
|
@@ -3878,7 +3944,7 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3878
3944
|
}),
|
|
3879
3945
|
/* @__PURE__ */ t("span", {
|
|
3880
3946
|
id: C,
|
|
3881
|
-
className:
|
|
3947
|
+
className: la.spinValue,
|
|
3882
3948
|
"aria-hidden": "true",
|
|
3883
3949
|
children: x.toFixed(S)
|
|
3884
3950
|
}),
|
|
@@ -3887,7 +3953,7 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3887
3953
|
tabIndex: -1,
|
|
3888
3954
|
"aria-hidden": "true",
|
|
3889
3955
|
disabled: m || x >= u,
|
|
3890
|
-
className:
|
|
3956
|
+
className: la.spinBtn,
|
|
3891
3957
|
onClick: (e) => {
|
|
3892
3958
|
e.stopPropagation(), w(x + f);
|
|
3893
3959
|
},
|
|
@@ -3900,50 +3966,50 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3900
3966
|
}
|
|
3901
3967
|
//#endregion
|
|
3902
3968
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3903
|
-
var
|
|
3904
|
-
view:
|
|
3905
|
-
page:
|
|
3906
|
-
pageHeader:
|
|
3907
|
-
pageTitle:
|
|
3908
|
-
pageContent:
|
|
3909
|
-
enterForward:
|
|
3969
|
+
var pa = "_view_1r1om_3", ma = "_page_1r1om_12", ha = "_pageHeader_1r1om_23", ga = "_pageTitle_1r1om_34", _a = "_pageContent_1r1om_43", va = "_enterForward_1r1om_52", ya = "_enterBack_1r1om_56", ba = {
|
|
3970
|
+
view: pa,
|
|
3971
|
+
page: ma,
|
|
3972
|
+
pageHeader: ha,
|
|
3973
|
+
pageTitle: ga,
|
|
3974
|
+
pageContent: _a,
|
|
3975
|
+
enterForward: va,
|
|
3910
3976
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3911
|
-
enterBack:
|
|
3977
|
+
enterBack: ya,
|
|
3912
3978
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3913
|
-
},
|
|
3979
|
+
}, xa = a({
|
|
3914
3980
|
navigate: () => {},
|
|
3915
3981
|
pop: () => {},
|
|
3916
3982
|
canGoBack: !1,
|
|
3917
3983
|
currentTag: "",
|
|
3918
3984
|
direction: "forward"
|
|
3919
3985
|
});
|
|
3920
|
-
function
|
|
3921
|
-
return l(
|
|
3986
|
+
function Sa() {
|
|
3987
|
+
return l(xa);
|
|
3922
3988
|
}
|
|
3923
|
-
function
|
|
3924
|
-
let { currentTag: s, direction: c } = l(
|
|
3989
|
+
function Ca({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
3990
|
+
let { currentTag: s, direction: c } = l(xa);
|
|
3925
3991
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3926
3992
|
className: [
|
|
3927
|
-
|
|
3928
|
-
c === "forward" ?
|
|
3993
|
+
ba.page,
|
|
3994
|
+
c === "forward" ? ba.enterForward : ba.enterBack,
|
|
3929
3995
|
a
|
|
3930
3996
|
].filter(Boolean).join(" "),
|
|
3931
3997
|
...o,
|
|
3932
3998
|
children: [/* @__PURE__ */ t("div", {
|
|
3933
|
-
className:
|
|
3999
|
+
className: ba.pageHeader,
|
|
3934
4000
|
children: /* @__PURE__ */ t("span", {
|
|
3935
|
-
className:
|
|
4001
|
+
className: ba.pageTitle,
|
|
3936
4002
|
children: r
|
|
3937
4003
|
})
|
|
3938
4004
|
}), /* @__PURE__ */ t("div", {
|
|
3939
|
-
className:
|
|
4005
|
+
className: ba.pageContent,
|
|
3940
4006
|
children: i
|
|
3941
4007
|
})]
|
|
3942
4008
|
}) : null;
|
|
3943
4009
|
}
|
|
3944
|
-
function
|
|
4010
|
+
function wa({ initialPage: e, children: n, className: r, ...i }) {
|
|
3945
4011
|
let [a, o] = h([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = h("forward");
|
|
3946
|
-
return /* @__PURE__ */ t(
|
|
4012
|
+
return /* @__PURE__ */ t(xa.Provider, {
|
|
3947
4013
|
value: {
|
|
3948
4014
|
navigate: (e) => {
|
|
3949
4015
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3956,7 +4022,7 @@ function ga({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3956
4022
|
direction: l
|
|
3957
4023
|
},
|
|
3958
4024
|
children: /* @__PURE__ */ t("div", {
|
|
3959
|
-
className: [
|
|
4025
|
+
className: [ba.view, r].filter(Boolean).join(" "),
|
|
3960
4026
|
...i,
|
|
3961
4027
|
children: n
|
|
3962
4028
|
})
|
|
@@ -3964,20 +4030,20 @@ function ga({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3964
4030
|
}
|
|
3965
4031
|
//#endregion
|
|
3966
4032
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3967
|
-
var
|
|
3968
|
-
backdrop:
|
|
4033
|
+
var Ta = "_backdrop_zzv98_3", Ea = "_sheet_zzv98_26", Da = "_handle_zzv98_49", Oa = "_handleBar_zzv98_56", ka = "_title_zzv98_66", Aa = "_content_zzv98_79", ja = {
|
|
4034
|
+
backdrop: Ta,
|
|
3969
4035
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3970
|
-
sheet:
|
|
4036
|
+
sheet: Ea,
|
|
3971
4037
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3972
|
-
handle:
|
|
3973
|
-
handleBar:
|
|
3974
|
-
title:
|
|
3975
|
-
content:
|
|
3976
|
-
},
|
|
3977
|
-
function
|
|
4038
|
+
handle: Da,
|
|
4039
|
+
handleBar: Oa,
|
|
4040
|
+
title: ka,
|
|
4041
|
+
content: Aa
|
|
4042
|
+
}, Ma = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4043
|
+
function Na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: s, ...l }) {
|
|
3978
4044
|
let f = m(null), p = d(), h = m(null);
|
|
3979
4045
|
u(() => {
|
|
3980
|
-
e ? (h.current = document.activeElement, (f.current?.querySelector(
|
|
4046
|
+
e ? (h.current = document.activeElement, (f.current?.querySelector(Ma))?.focus()) : h.current?.focus();
|
|
3981
4047
|
}, [e]);
|
|
3982
4048
|
let _ = c((e) => {
|
|
3983
4049
|
if (e.key === "Escape") {
|
|
@@ -3985,14 +4051,14 @@ function Ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3985
4051
|
return;
|
|
3986
4052
|
}
|
|
3987
4053
|
if (e.key !== "Tab") return;
|
|
3988
|
-
let t = Array.from(f.current?.querySelectorAll(
|
|
4054
|
+
let t = Array.from(f.current?.querySelectorAll(Ma) ?? []);
|
|
3989
4055
|
if (t.length === 0) return;
|
|
3990
4056
|
let n = t[0], r = t[t.length - 1];
|
|
3991
4057
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3992
4058
|
}, [a]);
|
|
3993
4059
|
if (!e) return null;
|
|
3994
4060
|
let v = /* @__PURE__ */ t("div", {
|
|
3995
|
-
className:
|
|
4061
|
+
className: ja.backdrop,
|
|
3996
4062
|
onClick: o ? a : void 0,
|
|
3997
4063
|
"aria-hidden": "true",
|
|
3998
4064
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -4000,23 +4066,23 @@ function Ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
4000
4066
|
role: "dialog",
|
|
4001
4067
|
"aria-modal": "true",
|
|
4002
4068
|
"aria-labelledby": r ? p : void 0,
|
|
4003
|
-
className: [
|
|
4069
|
+
className: [ja.sheet, s].filter(Boolean).join(" "),
|
|
4004
4070
|
onKeyDown: _,
|
|
4005
4071
|
onClick: (e) => e.stopPropagation(),
|
|
4006
4072
|
...l,
|
|
4007
4073
|
children: [
|
|
4008
4074
|
/* @__PURE__ */ t("div", {
|
|
4009
|
-
className:
|
|
4075
|
+
className: ja.handle,
|
|
4010
4076
|
"aria-hidden": "true",
|
|
4011
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
4077
|
+
children: /* @__PURE__ */ t("div", { className: ja.handleBar })
|
|
4012
4078
|
}),
|
|
4013
4079
|
r && /* @__PURE__ */ t("div", {
|
|
4014
4080
|
id: p,
|
|
4015
|
-
className:
|
|
4081
|
+
className: ja.title,
|
|
4016
4082
|
children: r
|
|
4017
4083
|
}),
|
|
4018
4084
|
i && /* @__PURE__ */ t("div", {
|
|
4019
|
-
className:
|
|
4085
|
+
className: ja.content,
|
|
4020
4086
|
children: i
|
|
4021
4087
|
})
|
|
4022
4088
|
]
|
|
@@ -4024,7 +4090,7 @@ function Ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
4024
4090
|
});
|
|
4025
4091
|
return typeof document > "u" ? v : g(v, document.body);
|
|
4026
4092
|
}
|
|
4027
|
-
var
|
|
4093
|
+
var X = {
|
|
4028
4094
|
carousel: "_carousel_117hp_3",
|
|
4029
4095
|
horizontal: "_horizontal_117hp_20",
|
|
4030
4096
|
vertical: "_vertical_117hp_27",
|
|
@@ -4038,9 +4104,9 @@ var Ea = {
|
|
|
4038
4104
|
};
|
|
4039
4105
|
//#endregion
|
|
4040
4106
|
//#region src/components/Carousel/Carousel.tsx
|
|
4041
|
-
function
|
|
4107
|
+
function Pa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
4042
4108
|
return /* @__PURE__ */ t("div", {
|
|
4043
|
-
className: [
|
|
4109
|
+
className: [X.indicatorDots, i].filter(Boolean).join(" "),
|
|
4044
4110
|
role: "tablist",
|
|
4045
4111
|
"aria-label": "Carousel pages",
|
|
4046
4112
|
...a,
|
|
@@ -4049,14 +4115,14 @@ function Da({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
4049
4115
|
role: "tab",
|
|
4050
4116
|
"aria-selected": i === n,
|
|
4051
4117
|
"aria-label": `Page ${i + 1}`,
|
|
4052
|
-
className: [
|
|
4118
|
+
className: [X.dot, i === n ? X.dotActive : null].filter(Boolean).join(" "),
|
|
4053
4119
|
onClick: () => r?.(i)
|
|
4054
4120
|
}, i))
|
|
4055
4121
|
});
|
|
4056
4122
|
}
|
|
4057
|
-
function
|
|
4123
|
+
function Fa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
4058
4124
|
return /* @__PURE__ */ t("div", {
|
|
4059
|
-
className: [
|
|
4125
|
+
className: [X.indicatorLines, i].filter(Boolean).join(" "),
|
|
4060
4126
|
role: "tablist",
|
|
4061
4127
|
"aria-label": "Carousel pages",
|
|
4062
4128
|
...a,
|
|
@@ -4065,12 +4131,12 @@ function Oa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
4065
4131
|
role: "tab",
|
|
4066
4132
|
"aria-selected": i === n,
|
|
4067
4133
|
"aria-label": `Page ${i + 1}`,
|
|
4068
|
-
className: [
|
|
4134
|
+
className: [X.line, i === n ? X.lineActive : null].filter(Boolean).join(" "),
|
|
4069
4135
|
onClick: () => r?.(i)
|
|
4070
4136
|
}, i))
|
|
4071
4137
|
});
|
|
4072
4138
|
}
|
|
4073
|
-
function
|
|
4139
|
+
function Ia({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: s, className: l, ...d }) {
|
|
4074
4140
|
let f = m(null), p = r.count(e), [g, _] = h(0), v = s !== void 0, y = v ? s : g;
|
|
4075
4141
|
u(() => {
|
|
4076
4142
|
v && b(s, "smooth");
|
|
@@ -4126,15 +4192,15 @@ function ka({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
4126
4192
|
"aria-roledescription": "carousel",
|
|
4127
4193
|
tabIndex: 0,
|
|
4128
4194
|
className: [
|
|
4129
|
-
|
|
4130
|
-
S ?
|
|
4195
|
+
X.carousel,
|
|
4196
|
+
S ? X.horizontal : X.vertical,
|
|
4131
4197
|
l
|
|
4132
4198
|
].filter(Boolean).join(" "),
|
|
4133
4199
|
style: S ? { columnGap: i || void 0 } : { rowGap: i || void 0 },
|
|
4134
4200
|
onKeyDown: x,
|
|
4135
4201
|
...d,
|
|
4136
4202
|
children: r.map(e, (e, n) => /* @__PURE__ */ t("div", {
|
|
4137
|
-
className:
|
|
4203
|
+
className: X.slide,
|
|
4138
4204
|
role: "group",
|
|
4139
4205
|
"aria-roledescription": "slide",
|
|
4140
4206
|
"aria-label": `${n + 1} of ${p}`,
|
|
@@ -4144,49 +4210,49 @@ function ka({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
4144
4210
|
}
|
|
4145
4211
|
//#endregion
|
|
4146
4212
|
//#region src/components/Bin/Bin.tsx
|
|
4147
|
-
function
|
|
4213
|
+
function La({ children: e, ...n }) {
|
|
4148
4214
|
return /* @__PURE__ */ t("div", {
|
|
4149
4215
|
...n,
|
|
4150
4216
|
children: e
|
|
4151
4217
|
});
|
|
4152
4218
|
}
|
|
4153
|
-
var
|
|
4219
|
+
var Ra = {
|
|
4154
4220
|
content: "_content_1xkwk_3",
|
|
4155
4221
|
icon: "_icon_1xkwk_9",
|
|
4156
4222
|
label: "_label_1xkwk_15"
|
|
4157
4223
|
};
|
|
4158
4224
|
//#endregion
|
|
4159
4225
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
4160
|
-
function
|
|
4226
|
+
function za({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
4161
4227
|
return /* @__PURE__ */ n("span", {
|
|
4162
4228
|
className: [
|
|
4163
|
-
|
|
4164
|
-
i === "end" ?
|
|
4229
|
+
Ra.content,
|
|
4230
|
+
i === "end" ? Ra.iconEnd : null,
|
|
4165
4231
|
a
|
|
4166
4232
|
].filter(Boolean).join(" "),
|
|
4167
4233
|
...o,
|
|
4168
4234
|
children: [
|
|
4169
4235
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
4170
|
-
className:
|
|
4236
|
+
className: Ra.icon,
|
|
4171
4237
|
"aria-hidden": "true",
|
|
4172
4238
|
children: e
|
|
4173
4239
|
}),
|
|
4174
4240
|
/* @__PURE__ */ t("span", {
|
|
4175
|
-
className:
|
|
4241
|
+
className: Ra.label,
|
|
4176
4242
|
children: r
|
|
4177
4243
|
}),
|
|
4178
4244
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
4179
|
-
className:
|
|
4245
|
+
className: Ra.icon,
|
|
4180
4246
|
"aria-hidden": "true",
|
|
4181
4247
|
children: e
|
|
4182
4248
|
})
|
|
4183
4249
|
]
|
|
4184
4250
|
});
|
|
4185
4251
|
}
|
|
4186
|
-
var
|
|
4252
|
+
var Ba = {
|
|
4187
4253
|
label: "_label_h3znl_3",
|
|
4188
4254
|
key: "_key_h3znl_9"
|
|
4189
|
-
},
|
|
4255
|
+
}, Va = {
|
|
4190
4256
|
ctrl: "⌃",
|
|
4191
4257
|
control: "⌃",
|
|
4192
4258
|
shift: "⇧",
|
|
@@ -4214,22 +4280,22 @@ var Na = {
|
|
|
4214
4280
|
home: "⇱",
|
|
4215
4281
|
end: "⇲"
|
|
4216
4282
|
};
|
|
4217
|
-
function
|
|
4283
|
+
function Ha({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
4218
4284
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
4219
4285
|
return /* @__PURE__ */ t("span", {
|
|
4220
|
-
className: [
|
|
4286
|
+
className: [Ba.label, r].filter(Boolean).join(" "),
|
|
4221
4287
|
"aria-label": e,
|
|
4222
4288
|
...i,
|
|
4223
4289
|
children: a.map((e, r) => {
|
|
4224
|
-
let i = n ?
|
|
4290
|
+
let i = n ? Va[e.toLowerCase()] ?? e : e;
|
|
4225
4291
|
return /* @__PURE__ */ t("kbd", {
|
|
4226
|
-
className:
|
|
4292
|
+
className: Ba.key,
|
|
4227
4293
|
children: i
|
|
4228
4294
|
}, r);
|
|
4229
4295
|
})
|
|
4230
4296
|
});
|
|
4231
4297
|
}
|
|
4232
|
-
var
|
|
4298
|
+
var Ua = {
|
|
4233
4299
|
toolbarView: "_toolbarView_134hf_3",
|
|
4234
4300
|
top: "_top_134hf_11",
|
|
4235
4301
|
content: "_content_134hf_16",
|
|
@@ -4237,47 +4303,47 @@ var Ia = {
|
|
|
4237
4303
|
};
|
|
4238
4304
|
//#endregion
|
|
4239
4305
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
4240
|
-
function
|
|
4306
|
+
function Wa({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
4241
4307
|
return /* @__PURE__ */ n("div", {
|
|
4242
|
-
className: [
|
|
4308
|
+
className: [Ua.toolbarView, a].filter(Boolean).join(" "),
|
|
4243
4309
|
...o,
|
|
4244
4310
|
children: [
|
|
4245
4311
|
e && /* @__PURE__ */ t("div", {
|
|
4246
|
-
className:
|
|
4312
|
+
className: Ua.top,
|
|
4247
4313
|
children: e
|
|
4248
4314
|
}),
|
|
4249
4315
|
/* @__PURE__ */ t("div", {
|
|
4250
|
-
className:
|
|
4316
|
+
className: Ua.content,
|
|
4251
4317
|
children: i
|
|
4252
4318
|
}),
|
|
4253
4319
|
r && /* @__PURE__ */ t("div", {
|
|
4254
|
-
className:
|
|
4320
|
+
className: Ua.bottom,
|
|
4255
4321
|
children: r
|
|
4256
4322
|
})
|
|
4257
4323
|
]
|
|
4258
4324
|
});
|
|
4259
4325
|
}
|
|
4260
|
-
var
|
|
4326
|
+
var Ga = {
|
|
4261
4327
|
windowTitle: "_windowTitle_zm877_3",
|
|
4262
4328
|
title: "_title_zm877_11",
|
|
4263
4329
|
subtitle: "_subtitle_zm877_24"
|
|
4264
4330
|
};
|
|
4265
4331
|
//#endregion
|
|
4266
4332
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
4267
|
-
function
|
|
4333
|
+
function Ka({ title: e, subtitle: r, className: i, ...a }) {
|
|
4268
4334
|
return /* @__PURE__ */ n("div", {
|
|
4269
|
-
className: [
|
|
4335
|
+
className: [Ga.windowTitle, i].filter(Boolean).join(" "),
|
|
4270
4336
|
...a,
|
|
4271
4337
|
children: [/* @__PURE__ */ t("span", {
|
|
4272
|
-
className:
|
|
4338
|
+
className: Ga.title,
|
|
4273
4339
|
children: e
|
|
4274
4340
|
}), r && /* @__PURE__ */ t("span", {
|
|
4275
|
-
className:
|
|
4341
|
+
className: Ga.subtitle,
|
|
4276
4342
|
children: r
|
|
4277
4343
|
})]
|
|
4278
4344
|
});
|
|
4279
4345
|
}
|
|
4280
|
-
var
|
|
4346
|
+
var qa = {
|
|
4281
4347
|
group: "_group_17s4f_3",
|
|
4282
4348
|
header: "_header_17s4f_11",
|
|
4283
4349
|
headerText: "_headerText_17s4f_17",
|
|
@@ -4288,85 +4354,85 @@ var Ba = {
|
|
|
4288
4354
|
};
|
|
4289
4355
|
//#endregion
|
|
4290
4356
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
4291
|
-
function
|
|
4357
|
+
function Ja({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
4292
4358
|
let c = e || r || i;
|
|
4293
4359
|
return /* @__PURE__ */ n("div", {
|
|
4294
|
-
className: [
|
|
4360
|
+
className: [qa.group, o].filter(Boolean).join(" "),
|
|
4295
4361
|
...s,
|
|
4296
4362
|
children: [c && /* @__PURE__ */ n("div", {
|
|
4297
|
-
className:
|
|
4363
|
+
className: qa.header,
|
|
4298
4364
|
children: [/* @__PURE__ */ n("div", {
|
|
4299
|
-
className:
|
|
4365
|
+
className: qa.headerText,
|
|
4300
4366
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4301
|
-
className:
|
|
4367
|
+
className: qa.title,
|
|
4302
4368
|
children: e
|
|
4303
4369
|
}), r && /* @__PURE__ */ t("span", {
|
|
4304
|
-
className:
|
|
4370
|
+
className: qa.description,
|
|
4305
4371
|
children: r
|
|
4306
4372
|
})]
|
|
4307
4373
|
}), i && /* @__PURE__ */ t("div", {
|
|
4308
|
-
className:
|
|
4374
|
+
className: qa.suffix,
|
|
4309
4375
|
children: i
|
|
4310
4376
|
})]
|
|
4311
4377
|
}), /* @__PURE__ */ t("div", {
|
|
4312
|
-
className:
|
|
4378
|
+
className: qa.content,
|
|
4313
4379
|
children: a
|
|
4314
4380
|
})]
|
|
4315
4381
|
});
|
|
4316
4382
|
}
|
|
4317
|
-
var
|
|
4383
|
+
var Ya = {
|
|
4318
4384
|
page: "_page_gt42j_3",
|
|
4319
4385
|
inner: "_inner_gt42j_10"
|
|
4320
4386
|
};
|
|
4321
4387
|
//#endregion
|
|
4322
4388
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4323
|
-
function
|
|
4389
|
+
function Xa({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4324
4390
|
return /* @__PURE__ */ t("div", {
|
|
4325
|
-
className: [
|
|
4391
|
+
className: [Ya.page, i].filter(Boolean).join(" "),
|
|
4326
4392
|
role: "tabpanel",
|
|
4327
4393
|
...a,
|
|
4328
4394
|
children: /* @__PURE__ */ t("div", {
|
|
4329
|
-
className:
|
|
4395
|
+
className: Ya.inner,
|
|
4330
4396
|
children: r
|
|
4331
4397
|
})
|
|
4332
4398
|
});
|
|
4333
4399
|
}
|
|
4334
4400
|
//#endregion
|
|
4335
4401
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4336
|
-
var
|
|
4337
|
-
backdrop:
|
|
4402
|
+
var Za = "_backdrop_1u1bd_3", Qa = "_dialog_1u1bd_26", $a = "_dialogMulti_1u1bd_46", eo = "_header_1u1bd_63", to = "_closeBtn_1u1bd_73", no = "_title_1u1bd_102", ro = "_searchWrap_1u1bd_112", io = "_searchInput_1u1bd_116", ao = "_body_1u1bd_143", oo = "_sidebar_1u1bd_152", so = "_navList_1u1bd_160", co = "_navItem_1u1bd_169", lo = "_navItemActive_1u1bd_190", uo = "_navIcon_1u1bd_205", fo = "_navLabel_1u1bd_211", po = "_pageWrap_1u1bd_221", Z = {
|
|
4403
|
+
backdrop: Za,
|
|
4338
4404
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4339
|
-
dialog:
|
|
4405
|
+
dialog: Qa,
|
|
4340
4406
|
"dialog-in": "_dialog-in_1u1bd_1",
|
|
4341
|
-
dialogMulti:
|
|
4342
|
-
header:
|
|
4343
|
-
closeBtn:
|
|
4344
|
-
title:
|
|
4345
|
-
searchWrap:
|
|
4346
|
-
searchInput:
|
|
4347
|
-
body:
|
|
4348
|
-
sidebar:
|
|
4349
|
-
navList:
|
|
4350
|
-
navItem:
|
|
4351
|
-
navItemActive:
|
|
4352
|
-
navIcon:
|
|
4353
|
-
navLabel:
|
|
4354
|
-
pageWrap:
|
|
4355
|
-
},
|
|
4356
|
-
function
|
|
4407
|
+
dialogMulti: $a,
|
|
4408
|
+
header: eo,
|
|
4409
|
+
closeBtn: to,
|
|
4410
|
+
title: no,
|
|
4411
|
+
searchWrap: ro,
|
|
4412
|
+
searchInput: io,
|
|
4413
|
+
body: ao,
|
|
4414
|
+
sidebar: oo,
|
|
4415
|
+
navList: so,
|
|
4416
|
+
navItem: co,
|
|
4417
|
+
navItemActive: lo,
|
|
4418
|
+
navIcon: uo,
|
|
4419
|
+
navLabel: fo,
|
|
4420
|
+
pageWrap: po
|
|
4421
|
+
}, mo = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4422
|
+
function ho(e, t) {
|
|
4357
4423
|
if (e.key !== "Tab") return;
|
|
4358
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4424
|
+
let n = Array.from(t.current?.querySelectorAll(mo) ?? []);
|
|
4359
4425
|
if (!n.length) return;
|
|
4360
4426
|
let r = n[0], i = n[n.length - 1];
|
|
4361
4427
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4362
4428
|
}
|
|
4363
|
-
function
|
|
4429
|
+
function go({ open: e, onClose: a, children: o, searchable: l = !0, className: f, ...p }) {
|
|
4364
4430
|
let _ = m(null), v = m(null), y = d(), b = r.toArray(o).filter((e) => s(e)), [x, S] = h(0), [C, w] = h("");
|
|
4365
4431
|
u(() => {
|
|
4366
4432
|
if (e) {
|
|
4367
4433
|
S(0), w("");
|
|
4368
4434
|
let e = requestAnimationFrame(() => {
|
|
4369
|
-
l && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4435
|
+
l && v.current ? v.current.focus() : (_.current?.querySelector(mo))?.focus();
|
|
4370
4436
|
});
|
|
4371
4437
|
return () => cancelAnimationFrame(e);
|
|
4372
4438
|
}
|
|
@@ -4376,7 +4442,7 @@ function co({ open: e, onClose: a, children: o, searchable: l = !0, className: f
|
|
|
4376
4442
|
e.stopPropagation(), a();
|
|
4377
4443
|
return;
|
|
4378
4444
|
}
|
|
4379
|
-
|
|
4445
|
+
ho(e, _);
|
|
4380
4446
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4381
4447
|
return e ? g(/* @__PURE__ */ t("div", {
|
|
4382
4448
|
className: Z.backdrop,
|
|
@@ -4479,7 +4545,7 @@ var Q = {
|
|
|
4479
4545
|
};
|
|
4480
4546
|
//#endregion
|
|
4481
4547
|
//#region src/components/Timeline/Timeline.tsx
|
|
4482
|
-
function
|
|
4548
|
+
function _o({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4483
4549
|
let s = r === "horizontal", c = i !== "none";
|
|
4484
4550
|
return /* @__PURE__ */ t("div", {
|
|
4485
4551
|
role: "list",
|
|
@@ -4543,7 +4609,7 @@ function lo({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4543
4609
|
})
|
|
4544
4610
|
});
|
|
4545
4611
|
}
|
|
4546
|
-
var
|
|
4612
|
+
var vo = {
|
|
4547
4613
|
pathBar: "_pathBar_1n4ev_3",
|
|
4548
4614
|
list: "_list_1n4ev_12",
|
|
4549
4615
|
item: "_item_1n4ev_25",
|
|
@@ -4554,20 +4620,20 @@ var uo = {
|
|
|
4554
4620
|
};
|
|
4555
4621
|
//#endregion
|
|
4556
4622
|
//#region src/components/PathBar/PathBar.tsx
|
|
4557
|
-
function
|
|
4623
|
+
function yo({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
4558
4624
|
return /* @__PURE__ */ t("nav", {
|
|
4559
4625
|
"aria-label": "Breadcrumb",
|
|
4560
|
-
className: [
|
|
4626
|
+
className: [vo.pathBar, i].filter(Boolean).join(" "),
|
|
4561
4627
|
...a,
|
|
4562
4628
|
children: /* @__PURE__ */ t("ol", {
|
|
4563
|
-
className:
|
|
4629
|
+
className: vo.list,
|
|
4564
4630
|
"aria-label": "Path segments",
|
|
4565
4631
|
children: e.map((i, a) => {
|
|
4566
4632
|
let o = a === e.length - 1;
|
|
4567
4633
|
return /* @__PURE__ */ n("li", {
|
|
4568
|
-
className:
|
|
4634
|
+
className: vo.item,
|
|
4569
4635
|
children: [a > 0 && /* @__PURE__ */ t("span", {
|
|
4570
|
-
className:
|
|
4636
|
+
className: vo.separator,
|
|
4571
4637
|
"aria-hidden": "true",
|
|
4572
4638
|
children: /* @__PURE__ */ t("svg", {
|
|
4573
4639
|
width: "12",
|
|
@@ -4584,19 +4650,19 @@ function fo({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4584
4650
|
})
|
|
4585
4651
|
})
|
|
4586
4652
|
}), o ? /* @__PURE__ */ n("span", {
|
|
4587
|
-
className:
|
|
4653
|
+
className: vo.current,
|
|
4588
4654
|
"aria-current": "page",
|
|
4589
4655
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4590
|
-
className:
|
|
4656
|
+
className: vo.icon,
|
|
4591
4657
|
"aria-hidden": "true",
|
|
4592
4658
|
children: i.icon
|
|
4593
4659
|
}), i.label]
|
|
4594
4660
|
}) : /* @__PURE__ */ n("button", {
|
|
4595
4661
|
type: "button",
|
|
4596
|
-
className:
|
|
4662
|
+
className: vo.segment,
|
|
4597
4663
|
onClick: () => r?.(i.path, a),
|
|
4598
4664
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4599
|
-
className:
|
|
4665
|
+
className: vo.icon,
|
|
4600
4666
|
"aria-hidden": "true",
|
|
4601
4667
|
children: i.icon
|
|
4602
4668
|
}), i.label]
|
|
@@ -4606,7 +4672,7 @@ function fo({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4606
4672
|
})
|
|
4607
4673
|
});
|
|
4608
4674
|
}
|
|
4609
|
-
var
|
|
4675
|
+
var bo = {
|
|
4610
4676
|
wrapper: "_wrapper_1upmq_1",
|
|
4611
4677
|
svg: "_svg_1upmq_10",
|
|
4612
4678
|
label: "_label_1upmq_15",
|
|
@@ -4615,7 +4681,7 @@ var po = {
|
|
|
4615
4681
|
legend: "_legend_1upmq_74",
|
|
4616
4682
|
legendLabel: "_legendLabel_1upmq_81",
|
|
4617
4683
|
legendCell: "_legendCell_1upmq_89"
|
|
4618
|
-
},
|
|
4684
|
+
}, xo = [
|
|
4619
4685
|
"Jan",
|
|
4620
4686
|
"Feb",
|
|
4621
4687
|
"Mar",
|
|
@@ -4628,7 +4694,7 @@ var po = {
|
|
|
4628
4694
|
"Oct",
|
|
4629
4695
|
"Nov",
|
|
4630
4696
|
"Dec"
|
|
4631
|
-
],
|
|
4697
|
+
], So = [
|
|
4632
4698
|
"Sun",
|
|
4633
4699
|
"Mon",
|
|
4634
4700
|
"Tue",
|
|
@@ -4636,30 +4702,30 @@ var po = {
|
|
|
4636
4702
|
"Thu",
|
|
4637
4703
|
"Fri",
|
|
4638
4704
|
"Sat"
|
|
4639
|
-
],
|
|
4705
|
+
], Co = 28, wo = 20, To = [
|
|
4640
4706
|
"var(--gnome-card-shade-color, rgba(0,0,0,0.07))",
|
|
4641
4707
|
"var(--gnome-green-1, #8ff0a4)",
|
|
4642
4708
|
"var(--gnome-green-2, #57e389)",
|
|
4643
4709
|
"var(--gnome-green-4, #2ec27e)",
|
|
4644
4710
|
"var(--gnome-green-5, #26a269)"
|
|
4645
4711
|
];
|
|
4646
|
-
function
|
|
4712
|
+
function Eo(e) {
|
|
4647
4713
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
4648
4714
|
}
|
|
4649
|
-
function
|
|
4715
|
+
function Do(e) {
|
|
4650
4716
|
let [t, n, r] = e.split("-").map(Number);
|
|
4651
4717
|
return new Date(t, n - 1, r);
|
|
4652
4718
|
}
|
|
4653
|
-
function
|
|
4654
|
-
return
|
|
4719
|
+
function Oo(e) {
|
|
4720
|
+
return Do(e).toLocaleDateString("en-US", {
|
|
4655
4721
|
weekday: "long",
|
|
4656
4722
|
year: "numeric",
|
|
4657
4723
|
month: "long",
|
|
4658
4724
|
day: "numeric"
|
|
4659
4725
|
});
|
|
4660
4726
|
}
|
|
4661
|
-
function
|
|
4662
|
-
let y = a + o, b = m(null), x = m(null), S = i ??
|
|
4727
|
+
function ko({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap: o = 3, weekStartDay: s = 1, showMonthLabels: c = !0, showDayLabels: l = !0, showLegend: u = !0, weeks: d = 52, ariaLabel: f = "Contribution graph", onDayClick: g, tooltipContent: _, className: v }) {
|
|
4728
|
+
let y = a + o, b = m(null), x = m(null), S = i ?? To, [C, w] = h({
|
|
4663
4729
|
col: 0,
|
|
4664
4730
|
row: 0
|
|
4665
4731
|
}), [T, E] = h(null), D = p(() => {
|
|
@@ -4678,13 +4744,13 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4678
4744
|
let n = new Date(i);
|
|
4679
4745
|
n.setDate(i.getDate() + t * 7), n.getMonth() !== c && (o.push({
|
|
4680
4746
|
col: t,
|
|
4681
|
-
month:
|
|
4747
|
+
month: xo[n.getMonth()]
|
|
4682
4748
|
}), c = n.getMonth());
|
|
4683
4749
|
let s = [];
|
|
4684
4750
|
for (let n = 0; n < 7; n++) {
|
|
4685
4751
|
let a = new Date(i);
|
|
4686
4752
|
a.setDate(i.getDate() + t * 7 + n);
|
|
4687
|
-
let o = a > e, c =
|
|
4753
|
+
let o = a > e, c = Eo(a), l = o ? 0 : D.get(c) ?? 0, u = l === 0 ? 0 : Math.min(r, Math.ceil(l / O * r));
|
|
4688
4754
|
s.push({
|
|
4689
4755
|
iso: c,
|
|
4690
4756
|
count: l,
|
|
@@ -4710,23 +4776,23 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4710
4776
|
5
|
|
4711
4777
|
].map((e) => ({
|
|
4712
4778
|
row: (e - s + 7) % 7,
|
|
4713
|
-
label:
|
|
4714
|
-
})), [s]), M = l ?
|
|
4715
|
-
function
|
|
4779
|
+
label: So[e]
|
|
4780
|
+
})), [s]), M = l ? Co : 0, N = c ? wo : 0, P = M + d * y - o, F = N + 7 * y - o, ee = Math.min(4, Math.floor(a / 3));
|
|
4781
|
+
function te(e, t) {
|
|
4716
4782
|
let n = Math.max(0, Math.min(d - 1, e)), r = Math.max(0, Math.min(6, t));
|
|
4717
4783
|
w({
|
|
4718
4784
|
col: n,
|
|
4719
4785
|
row: r
|
|
4720
4786
|
}), b.current?.querySelector(`[data-col="${n}"][data-row="${r}"]`)?.focus();
|
|
4721
4787
|
}
|
|
4722
|
-
function
|
|
4788
|
+
function ne(e, t, n) {
|
|
4723
4789
|
let r = {
|
|
4724
4790
|
ArrowRight: [t + 1, n],
|
|
4725
4791
|
ArrowLeft: [t - 1, n],
|
|
4726
4792
|
ArrowDown: [t, n + 1],
|
|
4727
4793
|
ArrowUp: [t, n - 1]
|
|
4728
4794
|
};
|
|
4729
|
-
if (r[e.key]) e.preventDefault(),
|
|
4795
|
+
if (r[e.key]) e.preventDefault(), te(...r[e.key]);
|
|
4730
4796
|
else if (e.key === "Enter" || e.key === " ") {
|
|
4731
4797
|
e.preventDefault();
|
|
4732
4798
|
let r = k[t]?.[n];
|
|
@@ -4736,7 +4802,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4736
4802
|
});
|
|
4737
4803
|
}
|
|
4738
4804
|
}
|
|
4739
|
-
function
|
|
4805
|
+
function re(e, t) {
|
|
4740
4806
|
let n = x.current;
|
|
4741
4807
|
if (!n) return;
|
|
4742
4808
|
let r = n.getBoundingClientRect(), i = e.currentTarget.getBoundingClientRect();
|
|
@@ -4746,37 +4812,37 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4746
4812
|
text: t
|
|
4747
4813
|
});
|
|
4748
4814
|
}
|
|
4749
|
-
function
|
|
4815
|
+
function ie(e) {
|
|
4750
4816
|
return e.future ? S[0] : S[Math.min(e.level, S.length - 1)] ?? S[S.length - 1];
|
|
4751
4817
|
}
|
|
4752
|
-
function
|
|
4753
|
-
return e.future ?
|
|
4818
|
+
function ae(e) {
|
|
4819
|
+
return e.future ? Oo(e.iso) : _?.({
|
|
4754
4820
|
date: e.iso,
|
|
4755
4821
|
count: e.count
|
|
4756
|
-
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${
|
|
4822
|
+
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${Oo(e.iso)}`;
|
|
4757
4823
|
}
|
|
4758
4824
|
return /* @__PURE__ */ n("div", {
|
|
4759
4825
|
ref: x,
|
|
4760
|
-
className: [
|
|
4826
|
+
className: [bo.wrapper, v].filter(Boolean).join(" "),
|
|
4761
4827
|
children: [
|
|
4762
4828
|
/* @__PURE__ */ n("svg", {
|
|
4763
4829
|
ref: b,
|
|
4764
4830
|
width: P,
|
|
4765
4831
|
height: F,
|
|
4766
|
-
className:
|
|
4832
|
+
className: bo.svg,
|
|
4767
4833
|
"aria-label": f,
|
|
4768
4834
|
role: "img",
|
|
4769
4835
|
children: [
|
|
4770
4836
|
c && A.map(({ col: e, month: n }) => /* @__PURE__ */ t("text", {
|
|
4771
4837
|
x: M + e * y,
|
|
4772
4838
|
y: 12,
|
|
4773
|
-
className:
|
|
4839
|
+
className: bo.label,
|
|
4774
4840
|
children: n
|
|
4775
4841
|
}, `m-${e}`)),
|
|
4776
4842
|
l && j.map(({ row: e, label: n }) => /* @__PURE__ */ t("text", {
|
|
4777
4843
|
x: 0,
|
|
4778
4844
|
y: N + e * y + a - 1,
|
|
4779
|
-
className:
|
|
4845
|
+
className: bo.label,
|
|
4780
4846
|
children: n
|
|
4781
4847
|
}, `d-${e}`)),
|
|
4782
4848
|
/* @__PURE__ */ t("g", {
|
|
@@ -4785,7 +4851,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4785
4851
|
children: k.map((e, n) => /* @__PURE__ */ t("g", {
|
|
4786
4852
|
role: "row",
|
|
4787
4853
|
children: e.map((e, r) => {
|
|
4788
|
-
let i =
|
|
4854
|
+
let i = ae(e), o = C.col === n && C.row === r;
|
|
4789
4855
|
return /* @__PURE__ */ t("rect", {
|
|
4790
4856
|
"data-col": n,
|
|
4791
4857
|
"data-row": r,
|
|
@@ -4794,9 +4860,9 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4794
4860
|
width: a,
|
|
4795
4861
|
height: a,
|
|
4796
4862
|
rx: ee,
|
|
4797
|
-
fill:
|
|
4863
|
+
fill: ie(e),
|
|
4798
4864
|
opacity: e.future ? .35 : 1,
|
|
4799
|
-
className:
|
|
4865
|
+
className: bo.cell,
|
|
4800
4866
|
role: "gridcell",
|
|
4801
4867
|
"aria-label": i,
|
|
4802
4868
|
"aria-disabled": e.future || void 0,
|
|
@@ -4805,12 +4871,12 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4805
4871
|
date: e.iso,
|
|
4806
4872
|
count: e.count
|
|
4807
4873
|
}),
|
|
4808
|
-
onKeyDown: (e) =>
|
|
4874
|
+
onKeyDown: (e) => ne(e, n, r),
|
|
4809
4875
|
onFocus: () => w({
|
|
4810
4876
|
col: n,
|
|
4811
4877
|
row: r
|
|
4812
4878
|
}),
|
|
4813
|
-
onMouseEnter: (e) =>
|
|
4879
|
+
onMouseEnter: (e) => re(e, i),
|
|
4814
4880
|
onMouseLeave: () => E(null)
|
|
4815
4881
|
}, `${n}-${r}`);
|
|
4816
4882
|
})
|
|
@@ -4819,7 +4885,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4819
4885
|
]
|
|
4820
4886
|
}),
|
|
4821
4887
|
T && /* @__PURE__ */ t("div", {
|
|
4822
|
-
className:
|
|
4888
|
+
className: bo.tooltip,
|
|
4823
4889
|
style: {
|
|
4824
4890
|
left: T.x,
|
|
4825
4891
|
top: T.y
|
|
@@ -4828,17 +4894,17 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4828
4894
|
children: T.text
|
|
4829
4895
|
}),
|
|
4830
4896
|
u && /* @__PURE__ */ n("div", {
|
|
4831
|
-
className:
|
|
4897
|
+
className: bo.legend,
|
|
4832
4898
|
children: [
|
|
4833
4899
|
/* @__PURE__ */ t("span", {
|
|
4834
|
-
className:
|
|
4900
|
+
className: bo.legendLabel,
|
|
4835
4901
|
children: "Less"
|
|
4836
4902
|
}),
|
|
4837
4903
|
Array.from({ length: r + 1 }, (e, n) => /* @__PURE__ */ t("svg", {
|
|
4838
4904
|
width: a,
|
|
4839
4905
|
height: a,
|
|
4840
4906
|
"aria-hidden": "true",
|
|
4841
|
-
className:
|
|
4907
|
+
className: bo.legendCell,
|
|
4842
4908
|
children: /* @__PURE__ */ t("rect", {
|
|
4843
4909
|
width: a,
|
|
4844
4910
|
height: a,
|
|
@@ -4847,7 +4913,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4847
4913
|
})
|
|
4848
4914
|
}, n)),
|
|
4849
4915
|
/* @__PURE__ */ t("span", {
|
|
4850
|
-
className:
|
|
4916
|
+
className: bo.legendLabel,
|
|
4851
4917
|
children: "More"
|
|
4852
4918
|
})
|
|
4853
4919
|
]
|
|
@@ -4878,12 +4944,12 @@ var $ = {
|
|
|
4878
4944
|
checkbox: "_checkbox_1pg3h_170",
|
|
4879
4945
|
emptyCell: "_emptyCell_1pg3h_186",
|
|
4880
4946
|
emptyLabel: "_emptyLabel_1pg3h_191"
|
|
4881
|
-
},
|
|
4947
|
+
}, Ao = {
|
|
4882
4948
|
start: $.alignStart,
|
|
4883
4949
|
center: $.alignCenter,
|
|
4884
4950
|
end: $.alignEnd
|
|
4885
4951
|
};
|
|
4886
|
-
function
|
|
4952
|
+
function jo({ direction: r }) {
|
|
4887
4953
|
return /* @__PURE__ */ t("svg", {
|
|
4888
4954
|
width: "10",
|
|
4889
4955
|
height: "10",
|
|
@@ -4907,7 +4973,7 @@ function wo({ direction: r }) {
|
|
|
4907
4973
|
})] })
|
|
4908
4974
|
});
|
|
4909
4975
|
}
|
|
4910
|
-
function
|
|
4976
|
+
function Mo({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selectedRows: o = [], onSelectionChange: s, sortState: c, onSort: l, height: u, emptyState: d, className: f, ariaLabel: p }) {
|
|
4911
4977
|
let g = m(null), [_, v] = h(0), y = new Set(o), b = a === "multiple", x = e.length + (b ? 1 : 0);
|
|
4912
4978
|
function S(e) {
|
|
4913
4979
|
l && l(e, c?.columnId === e && c.direction === "asc" ? "desc" : "asc");
|
|
@@ -4962,14 +5028,14 @@ function To({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
4962
5028
|
}), e.map((e) => {
|
|
4963
5029
|
let r = c?.columnId === e.id;
|
|
4964
5030
|
return /* @__PURE__ */ t("th", {
|
|
4965
|
-
className: [$.th, e.align ?
|
|
5031
|
+
className: [$.th, e.align ? Ao[e.align] : null].filter(Boolean).join(" "),
|
|
4966
5032
|
style: e.width ? { width: e.width } : void 0,
|
|
4967
5033
|
"aria-sort": r ? c.direction === "asc" ? "ascending" : "descending" : e.sortable ? "none" : void 0,
|
|
4968
5034
|
children: e.sortable && l ? /* @__PURE__ */ n("button", {
|
|
4969
5035
|
type: "button",
|
|
4970
5036
|
className: [$.sortBtn, r ? $.sortBtnActive : null].filter(Boolean).join(" "),
|
|
4971
5037
|
onClick: () => S(e.id),
|
|
4972
|
-
children: [/* @__PURE__ */ t("span", { children: e.header }), /* @__PURE__ */ t(
|
|
5038
|
+
children: [/* @__PURE__ */ t("span", { children: e.header }), /* @__PURE__ */ t(jo, { direction: r ? c.direction : null })]
|
|
4973
5039
|
}) : /* @__PURE__ */ t("span", {
|
|
4974
5040
|
className: $.headerLabel,
|
|
4975
5041
|
children: e.header
|
|
@@ -5012,7 +5078,7 @@ function To({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
5012
5078
|
"aria-label": `Select row ${o + 1}`
|
|
5013
5079
|
})
|
|
5014
5080
|
}), e.map((e) => /* @__PURE__ */ t("td", {
|
|
5015
|
-
className: [$.td, e.align ?
|
|
5081
|
+
className: [$.td, e.align ? Ao[e.align] : null].filter(Boolean).join(" "),
|
|
5016
5082
|
role: "gridcell",
|
|
5017
5083
|
children: e.cell(r, o)
|
|
5018
5084
|
}, e.id))]
|
|
@@ -5024,6 +5090,6 @@ function To({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
5024
5090
|
});
|
|
5025
5091
|
}
|
|
5026
5092
|
//#endregion
|
|
5027
|
-
export {
|
|
5093
|
+
export { Xn as AboutDialog, Jt as ActionRow, ae as Avatar, Pe as Badge, Oe as Banner, La as Bin, v as Blockquote, Na as BottomSheet, zr as Box, Xt as BoxedList, gi as BreakpointBin, b as Button, za as ButtonContent, vi as ButtonRow, P as Card, Ia as Carousel, Pa as CarouselIndicatorDots, Fa as CarouselIndicatorLines, Ii as CheckRow, de as Checkbox, Ur as Chip, Dr as Clamp, Mo as ColumnView, aa as ComboRow, ko as ContributionGraph, Ie as CountDownTimer, Sn as Dialog, hr as Dropdown, oa as EntryRow, Oi as ExpanderRow, Me as Footer, Di as Frame, Je as GNOME_BREAKPOINTS, Ae as HeaderBar, I as Icon, Mi as InlineViewSwitcher, Ni as InlineViewSwitcherItem, Nr as Link, Ti as LinkedGroup, Ca as NavigationPage, Or as NavigationSplitView, wa as NavigationView, kr as OverlaySplitView, ca as PasswordEntryRow, yo as PathBar, Tr as Popover, go as PreferencesDialog, Ja as PreferencesGroup, Xa as PreferencesPage, _e as ProgressBar, he as RadioButton, Ge as SearchBar, se as Separator, Ha as ShortcutLabel, ui as ShortcutsDialog, Mt as Sidebar, Dt as SidebarCollapsedContext, zt as SidebarItem, Pt as SidebarSection, br as Slider, Ci as Spacer, Ut as SpinButton, fa as SpinRow, ee as Spinner, bi as SplitButton, qe as StatusPage, le as Switch, Fi as SwitchRow, Wt as TabBar, Gt as TabItem, Kt as TabPanel, A as Text, pe as TextField, _o as Timeline, un as Toast, dn as Toaster, Lr as ToggleGroup, Rr as ToggleGroupItem, Si as Toolbar, Wa as ToolbarView, Rt as Tooltip, Qt as ViewSwitcher, jr as ViewSwitcherBar, $t as ViewSwitcherItem, mi as ViewSwitcherSidebar, hi as ViewSwitcherSidebarItem, Ka as WindowTitle, Vr as WrapBox, Ye as useBreakpoint, Sa as useNavigation, Ot as useSidebarCollapsed };
|
|
5028
5094
|
|
|
5029
5095
|
//# sourceMappingURL=index.js.map
|