@gnome-ui/react 1.28.0 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/components/ViewSwitcherSidebar/ViewSwitcherSidebar.d.ts +11 -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 +1101 -1017
- 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,26 +2927,29 @@ 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
|
|
2865
|
-
sidebar: "
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2930
|
+
var K = {
|
|
2931
|
+
sidebar: "_sidebar_1hdq3_3",
|
|
2932
|
+
sidebarCollapsed: "_sidebarCollapsed_1hdq3_15",
|
|
2933
|
+
itemBtn: "_itemBtn_1hdq3_19",
|
|
2934
|
+
header: "_header_1hdq3_26",
|
|
2935
|
+
footer: "_footer_1hdq3_31",
|
|
2936
|
+
list: "_list_1hdq3_38",
|
|
2937
|
+
item: "_item_1hdq3_19",
|
|
2938
|
+
active: "_active_1hdq3_84",
|
|
2939
|
+
itemIcon: "_itemIcon_1hdq3_130",
|
|
2940
|
+
itemLabel: "_itemLabel_1hdq3_143",
|
|
2941
|
+
itemSuffix: "_itemSuffix_1hdq3_153",
|
|
2942
|
+
count: "_count_1hdq3_160"
|
|
2943
|
+
}, di = a(null);
|
|
2944
|
+
function fi() {
|
|
2945
|
+
let e = l(di);
|
|
2877
2946
|
if (!e) throw Error("ViewSwitcherSidebarItem must be used inside ViewSwitcherSidebar");
|
|
2878
2947
|
return e;
|
|
2879
2948
|
}
|
|
2880
|
-
function
|
|
2881
|
-
let
|
|
2882
|
-
function
|
|
2883
|
-
let t = Array.from(
|
|
2949
|
+
function pi({ value: e, onValueChange: r, "aria-label": i = "Views", collapsed: a = !1, header: o, footer: s, children: c, className: l, ...u }) {
|
|
2950
|
+
let d = m(null);
|
|
2951
|
+
function f(e) {
|
|
2952
|
+
let t = Array.from(d.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
2884
2953
|
if (n === -1) return;
|
|
2885
2954
|
let r = n;
|
|
2886
2955
|
if (e.key === "ArrowDown" || e.key === "ArrowRight") r = (n + 1) % t.length;
|
|
@@ -2890,63 +2959,78 @@ function oi({ value: e, onValueChange: n, "aria-label": r = "Views", children: i
|
|
|
2890
2959
|
else return;
|
|
2891
2960
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
2892
2961
|
}
|
|
2893
|
-
return /* @__PURE__ */ t(
|
|
2962
|
+
return /* @__PURE__ */ t(di.Provider, {
|
|
2894
2963
|
value: {
|
|
2895
2964
|
value: e,
|
|
2896
|
-
onValueChange:
|
|
2965
|
+
onValueChange: r,
|
|
2966
|
+
collapsed: a
|
|
2897
2967
|
},
|
|
2898
|
-
children: /* @__PURE__ */
|
|
2899
|
-
className: [
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2968
|
+
children: /* @__PURE__ */ n("nav", {
|
|
2969
|
+
className: [
|
|
2970
|
+
K.sidebar,
|
|
2971
|
+
a ? K.sidebarCollapsed : null,
|
|
2972
|
+
l
|
|
2973
|
+
].filter(Boolean).join(" "),
|
|
2974
|
+
onKeyDown: f,
|
|
2975
|
+
...u,
|
|
2976
|
+
children: [
|
|
2977
|
+
o && /* @__PURE__ */ t("div", {
|
|
2978
|
+
className: K.header,
|
|
2979
|
+
children: o
|
|
2980
|
+
}),
|
|
2981
|
+
/* @__PURE__ */ t("ul", {
|
|
2982
|
+
ref: d,
|
|
2983
|
+
role: "radiogroup",
|
|
2984
|
+
"aria-label": i,
|
|
2985
|
+
className: K.list,
|
|
2986
|
+
children: c
|
|
2987
|
+
}),
|
|
2988
|
+
s && /* @__PURE__ */ t("div", {
|
|
2989
|
+
className: K.footer,
|
|
2990
|
+
children: s
|
|
2991
|
+
})
|
|
2992
|
+
]
|
|
2909
2993
|
})
|
|
2910
2994
|
});
|
|
2911
2995
|
}
|
|
2912
2996
|
//#endregion
|
|
2913
2997
|
//#region src/components/ViewSwitcherSidebar/ViewSwitcherSidebarItem.tsx
|
|
2914
|
-
function
|
|
2915
|
-
let { value: u, onValueChange: d } =
|
|
2998
|
+
function mi({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, className: c, ...l }) {
|
|
2999
|
+
let { value: u, onValueChange: d, collapsed: f } = fi(), p = u === e, m = o ?? a ?? null;
|
|
2916
3000
|
return /* @__PURE__ */ t("li", {
|
|
2917
|
-
className:
|
|
3001
|
+
className: K.item,
|
|
2918
3002
|
children: /* @__PURE__ */ n("button", {
|
|
2919
3003
|
type: "button",
|
|
2920
3004
|
role: "radio",
|
|
2921
|
-
"aria-checked":
|
|
2922
|
-
tabIndex:
|
|
3005
|
+
"aria-checked": p,
|
|
3006
|
+
tabIndex: p ? 0 : -1,
|
|
2923
3007
|
disabled: s,
|
|
2924
3008
|
onClick: () => d(e),
|
|
2925
3009
|
className: [
|
|
2926
|
-
|
|
2927
|
-
|
|
3010
|
+
K.itemBtn,
|
|
3011
|
+
p ? K.active : null,
|
|
2928
3012
|
c
|
|
2929
3013
|
].filter(Boolean).join(" "),
|
|
2930
3014
|
...l,
|
|
2931
3015
|
children: [
|
|
2932
3016
|
i && /* @__PURE__ */ t("span", {
|
|
2933
|
-
className:
|
|
2934
|
-
children: /* @__PURE__ */ t(
|
|
3017
|
+
className: K.itemIcon,
|
|
3018
|
+
children: /* @__PURE__ */ t(I, {
|
|
2935
3019
|
icon: i,
|
|
2936
3020
|
size: "md",
|
|
2937
3021
|
"aria-hidden": !0
|
|
2938
3022
|
})
|
|
2939
3023
|
}),
|
|
2940
|
-
/* @__PURE__ */ t("span", {
|
|
2941
|
-
className:
|
|
3024
|
+
!f && /* @__PURE__ */ t("span", {
|
|
3025
|
+
className: K.itemLabel,
|
|
2942
3026
|
children: r
|
|
2943
3027
|
}),
|
|
2944
|
-
|
|
2945
|
-
className:
|
|
2946
|
-
children: typeof
|
|
2947
|
-
className:
|
|
2948
|
-
children:
|
|
2949
|
-
}) :
|
|
3028
|
+
!f && m != null && /* @__PURE__ */ t("span", {
|
|
3029
|
+
className: K.itemSuffix,
|
|
3030
|
+
children: typeof m == "number" ? /* @__PURE__ */ t("span", {
|
|
3031
|
+
className: K.count,
|
|
3032
|
+
children: m > 99 ? "99+" : m
|
|
3033
|
+
}) : m
|
|
2950
3034
|
})
|
|
2951
3035
|
]
|
|
2952
3036
|
})
|
|
@@ -2954,7 +3038,7 @@ function si({ name: e, label: r, icon: i, count: a, suffix: o, disabled: s, clas
|
|
|
2954
3038
|
}
|
|
2955
3039
|
//#endregion
|
|
2956
3040
|
//#region src/components/BreakpointBin/BreakpointBin.tsx
|
|
2957
|
-
function
|
|
3041
|
+
function hi({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
2958
3042
|
let o = m(null), [s, c] = h({
|
|
2959
3043
|
activeBreakpoint: null,
|
|
2960
3044
|
width: 0
|
|
@@ -2984,7 +3068,7 @@ function ci({ breakpoints: e, children: n, className: r, style: i, ...a }) {
|
|
|
2984
3068
|
children: n(s)
|
|
2985
3069
|
});
|
|
2986
3070
|
}
|
|
2987
|
-
var
|
|
3071
|
+
var gi = {
|
|
2988
3072
|
row: "_row_1ba2f_3",
|
|
2989
3073
|
title: "_title_1ba2f_48",
|
|
2990
3074
|
leading: "_leading_1ba2f_59",
|
|
@@ -2995,31 +3079,31 @@ var li = {
|
|
|
2995
3079
|
};
|
|
2996
3080
|
//#endregion
|
|
2997
3081
|
//#region src/components/ButtonRow/ButtonRow.tsx
|
|
2998
|
-
function
|
|
3082
|
+
function _i({ title: e, variant: r = "default", leading: i, trailing: a, className: o, ...s }) {
|
|
2999
3083
|
return /* @__PURE__ */ n("button", {
|
|
3000
3084
|
className: [
|
|
3001
|
-
|
|
3002
|
-
|
|
3085
|
+
gi.row,
|
|
3086
|
+
gi[r],
|
|
3003
3087
|
o
|
|
3004
3088
|
].filter(Boolean).join(" "),
|
|
3005
3089
|
...s,
|
|
3006
3090
|
children: [
|
|
3007
3091
|
i && /* @__PURE__ */ t("span", {
|
|
3008
|
-
className:
|
|
3092
|
+
className: gi.leading,
|
|
3009
3093
|
children: i
|
|
3010
3094
|
}),
|
|
3011
3095
|
/* @__PURE__ */ t("span", {
|
|
3012
|
-
className:
|
|
3096
|
+
className: gi.title,
|
|
3013
3097
|
children: e
|
|
3014
3098
|
}),
|
|
3015
3099
|
a && /* @__PURE__ */ t("span", {
|
|
3016
|
-
className:
|
|
3100
|
+
className: gi.trailing,
|
|
3017
3101
|
children: a
|
|
3018
3102
|
})
|
|
3019
3103
|
]
|
|
3020
3104
|
});
|
|
3021
3105
|
}
|
|
3022
|
-
var
|
|
3106
|
+
var vi = {
|
|
3023
3107
|
container: "_container_4kjnf_3",
|
|
3024
3108
|
primary: "_primary_4kjnf_14",
|
|
3025
3109
|
toggle: "_toggle_4kjnf_15",
|
|
@@ -3033,7 +3117,7 @@ var di = {
|
|
|
3033
3117
|
};
|
|
3034
3118
|
//#endregion
|
|
3035
3119
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
3036
|
-
function
|
|
3120
|
+
function yi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabel: o = "More options", disabled: s = !1, onClick: l, className: d, ...f }) {
|
|
3037
3121
|
let [p, _] = h(!1), [v, y] = h({}), b = m(null), x = m(null), S = m(null), C = c(() => _(!1), []), w = c(() => {
|
|
3038
3122
|
if (!x.current || !S.current) return;
|
|
3039
3123
|
let e = x.current.getBoundingClientRect(), t = S.current.getBoundingClientRect(), n = window.innerWidth, r = e.right - t.width;
|
|
@@ -3063,15 +3147,15 @@ function fi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
3063
3147
|
let T = (e) => {
|
|
3064
3148
|
e.key === "Escape" && (e.stopPropagation(), C(), x.current?.focus());
|
|
3065
3149
|
}, E = [
|
|
3066
|
-
|
|
3067
|
-
|
|
3150
|
+
vi.container,
|
|
3151
|
+
vi[i],
|
|
3068
3152
|
d
|
|
3069
3153
|
].filter(Boolean).join(" "), D = /* @__PURE__ */ t("div", {
|
|
3070
3154
|
ref: S,
|
|
3071
3155
|
role: "dialog",
|
|
3072
3156
|
"aria-label": o,
|
|
3073
3157
|
tabIndex: -1,
|
|
3074
|
-
className: [
|
|
3158
|
+
className: [vi.dropdown, p ? vi.dropdownVisible : null].filter(Boolean).join(" "),
|
|
3075
3159
|
style: Object.keys(v).length ? {
|
|
3076
3160
|
...v,
|
|
3077
3161
|
position: "fixed"
|
|
@@ -3090,26 +3174,26 @@ function fi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
3090
3174
|
className: E,
|
|
3091
3175
|
children: [
|
|
3092
3176
|
/* @__PURE__ */ t("button", {
|
|
3093
|
-
className:
|
|
3177
|
+
className: vi.primary,
|
|
3094
3178
|
disabled: s,
|
|
3095
3179
|
onClick: l,
|
|
3096
3180
|
...f,
|
|
3097
3181
|
children: r
|
|
3098
3182
|
}),
|
|
3099
3183
|
/* @__PURE__ */ t("span", {
|
|
3100
|
-
className:
|
|
3184
|
+
className: vi.separator,
|
|
3101
3185
|
"aria-hidden": "true"
|
|
3102
3186
|
}),
|
|
3103
3187
|
/* @__PURE__ */ t("button", {
|
|
3104
3188
|
ref: x,
|
|
3105
|
-
className:
|
|
3189
|
+
className: vi.toggle,
|
|
3106
3190
|
disabled: s,
|
|
3107
3191
|
"aria-label": o,
|
|
3108
3192
|
"aria-haspopup": "dialog",
|
|
3109
3193
|
"aria-expanded": p,
|
|
3110
3194
|
onClick: () => _((e) => !e),
|
|
3111
3195
|
children: /* @__PURE__ */ t("svg", {
|
|
3112
|
-
className:
|
|
3196
|
+
className: vi.chevron,
|
|
3113
3197
|
width: "16",
|
|
3114
3198
|
height: "16",
|
|
3115
3199
|
viewBox: "0 0 16 16",
|
|
@@ -3128,51 +3212,51 @@ function fi({ label: r, variant: i = "default", dropdownContent: a, dropdownLabe
|
|
|
3128
3212
|
]
|
|
3129
3213
|
}), p && (typeof document < "u" ? g(D, document.body) : D)] });
|
|
3130
3214
|
}
|
|
3131
|
-
var
|
|
3215
|
+
var bi = {
|
|
3132
3216
|
toolbar: "_toolbar_1avgl_2",
|
|
3133
3217
|
spacer: "_spacer_1avgl_20"
|
|
3134
3218
|
};
|
|
3135
3219
|
//#endregion
|
|
3136
3220
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
3137
|
-
function
|
|
3221
|
+
function xi({ children: e, className: n, ...r }) {
|
|
3138
3222
|
return /* @__PURE__ */ t("div", {
|
|
3139
|
-
className: [
|
|
3223
|
+
className: [bi.toolbar, n].filter(Boolean).join(" "),
|
|
3140
3224
|
...r,
|
|
3141
3225
|
children: e
|
|
3142
3226
|
});
|
|
3143
3227
|
}
|
|
3144
3228
|
//#endregion
|
|
3145
3229
|
//#region src/components/Toolbar/Spacer.tsx
|
|
3146
|
-
function
|
|
3230
|
+
function Si({ className: e, ...n }) {
|
|
3147
3231
|
return /* @__PURE__ */ t("div", {
|
|
3148
3232
|
"aria-hidden": "true",
|
|
3149
|
-
className: [
|
|
3233
|
+
className: [bi.spacer, e].filter(Boolean).join(" "),
|
|
3150
3234
|
...n
|
|
3151
3235
|
});
|
|
3152
3236
|
}
|
|
3153
|
-
var
|
|
3237
|
+
var Ci = {
|
|
3154
3238
|
linked: "_linked_1tser_3",
|
|
3155
3239
|
vertical: "_vertical_1tser_9"
|
|
3156
3240
|
};
|
|
3157
3241
|
//#endregion
|
|
3158
3242
|
//#region src/components/LinkedGroup/LinkedGroup.tsx
|
|
3159
|
-
function
|
|
3243
|
+
function wi({ children: e, vertical: n = !1, className: r, ...i }) {
|
|
3160
3244
|
return /* @__PURE__ */ t("div", {
|
|
3161
3245
|
className: [
|
|
3162
|
-
|
|
3163
|
-
n ?
|
|
3246
|
+
Ci.linked,
|
|
3247
|
+
n ? Ci.vertical : null,
|
|
3164
3248
|
r
|
|
3165
3249
|
].filter(Boolean).join(" "),
|
|
3166
3250
|
...i,
|
|
3167
3251
|
children: e
|
|
3168
3252
|
});
|
|
3169
3253
|
}
|
|
3170
|
-
var
|
|
3254
|
+
var Ti = { frame: "_frame_1bq7b_2" };
|
|
3171
3255
|
//#endregion
|
|
3172
3256
|
//#region src/components/Frame/Frame.tsx
|
|
3173
|
-
function
|
|
3257
|
+
function Ei({ children: e, className: n, ...r }) {
|
|
3174
3258
|
return /* @__PURE__ */ t("div", {
|
|
3175
|
-
className: [
|
|
3259
|
+
className: [Ti.frame, n].filter(Boolean).join(" "),
|
|
3176
3260
|
...r,
|
|
3177
3261
|
children: e
|
|
3178
3262
|
});
|
|
@@ -3195,7 +3279,7 @@ var q = {
|
|
|
3195
3279
|
};
|
|
3196
3280
|
//#endregion
|
|
3197
3281
|
//#region src/components/ExpanderRow/ExpanderRow.tsx
|
|
3198
|
-
function
|
|
3282
|
+
function Di({ title: e, subtitle: i, leading: a, trailing: o, children: s, expanded: c, defaultExpanded: l = !1, onExpandedChange: u, className: f, ...p }) {
|
|
3199
3283
|
let m = c !== void 0, [g, _] = h(l), v = m ? c : g, y = d(), b = d(), x = () => {
|
|
3200
3284
|
let e = !v;
|
|
3201
3285
|
m || _(e), u?.(e);
|
|
@@ -3261,13 +3345,13 @@ function bi({ title: e, subtitle: i, leading: a, trailing: o, children: s, expan
|
|
|
3261
3345
|
className: q.panelInner,
|
|
3262
3346
|
children: S.map((e, r) => /* @__PURE__ */ n("div", {
|
|
3263
3347
|
className: q.childItem,
|
|
3264
|
-
children: [/* @__PURE__ */ t(
|
|
3348
|
+
children: [/* @__PURE__ */ t(se, { "aria-hidden": "true" }), e]
|
|
3265
3349
|
}, r))
|
|
3266
3350
|
})
|
|
3267
3351
|
})]
|
|
3268
3352
|
});
|
|
3269
3353
|
}
|
|
3270
|
-
var
|
|
3354
|
+
var Oi = {
|
|
3271
3355
|
switcher: "_switcher_2tknm_3",
|
|
3272
3356
|
item: "_item_2tknm_10",
|
|
3273
3357
|
iconOnly: "_iconOnly_2tknm_38",
|
|
@@ -3277,13 +3361,13 @@ var xi = {
|
|
|
3277
3361
|
active: "_active_2tknm_68",
|
|
3278
3362
|
flat: "_flat_2tknm_121",
|
|
3279
3363
|
round: "_round_2tknm_169"
|
|
3280
|
-
},
|
|
3281
|
-
function
|
|
3282
|
-
let e = l(
|
|
3364
|
+
}, ki = a(null);
|
|
3365
|
+
function Ai() {
|
|
3366
|
+
let e = l(ki);
|
|
3283
3367
|
if (!e) throw Error("InlineViewSwitcherItem must be used inside InlineViewSwitcher");
|
|
3284
3368
|
return e;
|
|
3285
3369
|
}
|
|
3286
|
-
function
|
|
3370
|
+
function ji({ value: e, onValueChange: n, variant: r = "default", "aria-label": i = "View switcher", children: a, className: o, ...s }) {
|
|
3287
3371
|
let c = m(null);
|
|
3288
3372
|
function l(e) {
|
|
3289
3373
|
let t = Array.from(c.current?.querySelectorAll("[role=radio]:not(:disabled)") ?? []), n = t.findIndex((e) => e === document.activeElement);
|
|
@@ -3296,7 +3380,7 @@ function wi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3296
3380
|
else return;
|
|
3297
3381
|
e.preventDefault(), t[r].focus(), t[r].click();
|
|
3298
3382
|
}
|
|
3299
|
-
return /* @__PURE__ */ t(
|
|
3383
|
+
return /* @__PURE__ */ t(ki.Provider, {
|
|
3300
3384
|
value: {
|
|
3301
3385
|
value: e,
|
|
3302
3386
|
onValueChange: n
|
|
@@ -3307,8 +3391,8 @@ function wi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3307
3391
|
"aria-label": i,
|
|
3308
3392
|
onKeyDown: l,
|
|
3309
3393
|
className: [
|
|
3310
|
-
|
|
3311
|
-
|
|
3394
|
+
Oi.switcher,
|
|
3395
|
+
Oi[r],
|
|
3312
3396
|
o
|
|
3313
3397
|
].filter(Boolean).join(" "),
|
|
3314
3398
|
...s,
|
|
@@ -3318,8 +3402,8 @@ function wi({ value: e, onValueChange: n, variant: r = "default", "aria-label":
|
|
|
3318
3402
|
}
|
|
3319
3403
|
//#endregion
|
|
3320
3404
|
//#region src/components/InlineViewSwitcher/InlineViewSwitcherItem.tsx
|
|
3321
|
-
function
|
|
3322
|
-
let { value: c, onValueChange: l } =
|
|
3405
|
+
function Mi({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
3406
|
+
let { value: c, onValueChange: l } = Ai(), u = c === e, d = i && !r;
|
|
3323
3407
|
return /* @__PURE__ */ n("button", {
|
|
3324
3408
|
type: "button",
|
|
3325
3409
|
role: "radio",
|
|
@@ -3328,26 +3412,26 @@ function Ti({ name: e, label: r, icon: i, disabled: a, className: o, ...s }) {
|
|
|
3328
3412
|
disabled: a,
|
|
3329
3413
|
onClick: () => l(e),
|
|
3330
3414
|
className: [
|
|
3331
|
-
|
|
3332
|
-
u ?
|
|
3333
|
-
d ?
|
|
3415
|
+
Oi.item,
|
|
3416
|
+
u ? Oi.active : null,
|
|
3417
|
+
d ? Oi.iconOnly : null,
|
|
3334
3418
|
o
|
|
3335
3419
|
].filter(Boolean).join(" "),
|
|
3336
3420
|
...s,
|
|
3337
3421
|
children: [i && /* @__PURE__ */ t("span", {
|
|
3338
|
-
className:
|
|
3339
|
-
children: /* @__PURE__ */ t(
|
|
3422
|
+
className: Oi.itemIcon,
|
|
3423
|
+
children: /* @__PURE__ */ t(I, {
|
|
3340
3424
|
icon: i,
|
|
3341
3425
|
size: "md",
|
|
3342
3426
|
"aria-hidden": !0
|
|
3343
3427
|
})
|
|
3344
3428
|
}), r && /* @__PURE__ */ t("span", {
|
|
3345
|
-
className:
|
|
3429
|
+
className: Oi.itemLabel,
|
|
3346
3430
|
children: r
|
|
3347
3431
|
})]
|
|
3348
3432
|
});
|
|
3349
3433
|
}
|
|
3350
|
-
var
|
|
3434
|
+
var Ni = {
|
|
3351
3435
|
row: "_row_jl3bc_3",
|
|
3352
3436
|
disabled: "_disabled_jl3bc_41",
|
|
3353
3437
|
leading: "_leading_jl3bc_49",
|
|
@@ -3360,7 +3444,7 @@ var Ei = {
|
|
|
3360
3444
|
};
|
|
3361
3445
|
//#endregion
|
|
3362
3446
|
//#region src/components/SwitchRow/SwitchRow.tsx
|
|
3363
|
-
function
|
|
3447
|
+
function Pi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
|
|
3364
3448
|
let p = a !== void 0, [m, g] = h(o), _ = p ? a : m, v = d(), y = (e) => {
|
|
3365
3449
|
let t = !_;
|
|
3366
3450
|
p || g(t), s?.(t), u?.(e);
|
|
@@ -3371,32 +3455,32 @@ function Di({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3371
3455
|
"aria-labelledby": v,
|
|
3372
3456
|
disabled: c,
|
|
3373
3457
|
className: [
|
|
3374
|
-
|
|
3375
|
-
c ?
|
|
3458
|
+
Ni.row,
|
|
3459
|
+
c ? Ni.disabled : null,
|
|
3376
3460
|
l
|
|
3377
3461
|
].filter(Boolean).join(" "),
|
|
3378
3462
|
onClick: y,
|
|
3379
3463
|
...f,
|
|
3380
3464
|
children: [
|
|
3381
3465
|
i && /* @__PURE__ */ t("span", {
|
|
3382
|
-
className:
|
|
3466
|
+
className: Ni.leading,
|
|
3383
3467
|
children: i
|
|
3384
3468
|
}),
|
|
3385
3469
|
/* @__PURE__ */ n("span", {
|
|
3386
|
-
className:
|
|
3470
|
+
className: Ni.content,
|
|
3387
3471
|
id: v,
|
|
3388
3472
|
children: [/* @__PURE__ */ t("span", {
|
|
3389
|
-
className:
|
|
3473
|
+
className: Ni.title,
|
|
3390
3474
|
children: e
|
|
3391
3475
|
}), r && /* @__PURE__ */ t("span", {
|
|
3392
|
-
className:
|
|
3476
|
+
className: Ni.subtitle,
|
|
3393
3477
|
children: r
|
|
3394
3478
|
})]
|
|
3395
3479
|
}),
|
|
3396
3480
|
/* @__PURE__ */ t("span", {
|
|
3397
|
-
className:
|
|
3481
|
+
className: Ni.switchTrack,
|
|
3398
3482
|
"aria-hidden": "true",
|
|
3399
|
-
children: /* @__PURE__ */ t("span", { className: [
|
|
3483
|
+
children: /* @__PURE__ */ t("span", { className: [Ni.switchThumb, _ ? Ni.switchThumbOn : null].filter(Boolean).join(" ") })
|
|
3400
3484
|
})
|
|
3401
3485
|
]
|
|
3402
3486
|
});
|
|
@@ -3415,7 +3499,7 @@ var J = {
|
|
|
3415
3499
|
};
|
|
3416
3500
|
//#endregion
|
|
3417
3501
|
//#region src/components/CheckRow/CheckRow.tsx
|
|
3418
|
-
function
|
|
3502
|
+
function Fi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o = !1, onCheckedChange: s, disabled: c = !1, className: l, onClick: u, ...f }) {
|
|
3419
3503
|
let p = a !== void 0, [m, g] = h(o), _ = p ? a : m, v = d(), y = (e) => {
|
|
3420
3504
|
let t = !_;
|
|
3421
3505
|
p || g(t), s?.(t), u?.(e);
|
|
@@ -3475,35 +3559,35 @@ function Oi({ title: e, subtitle: r, leading: i, checked: a, defaultChecked: o =
|
|
|
3475
3559
|
}
|
|
3476
3560
|
//#endregion
|
|
3477
3561
|
//#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:
|
|
3562
|
+
var Ii = "_row_46mn8_3", Li = "_disabled_46mn8_16", Ri = "_leading_46mn8_23", zi = "_content_46mn8_32", Bi = "_title_46mn8_40", Vi = "_subtitle_46mn8_51", Hi = "_comboWrap_46mn8_65", Ui = "_trigger_46mn8_73", Wi = "_triggerOpen_46mn8_126", Gi = "_triggerLabel_46mn8_136", Ki = "_placeholder_46mn8_144", qi = "_chevron_46mn8_150", Ji = "_chevronOpen_46mn8_157", Yi = "_list_46mn8_163", Xi = "_listDown_46mn8_192", Zi = "_listUp_46mn8_196", Qi = "_option_46mn8_208", $i = "_optionActive_46mn8_225", ea = "_optionSelected_46mn8_229", ta = "_optionDisabled_46mn8_233", na = "_optionLabel_46mn8_239", ra = "_checkIcon_46mn8_247", Y = {
|
|
3563
|
+
row: Ii,
|
|
3564
|
+
disabled: Li,
|
|
3565
|
+
leading: Ri,
|
|
3566
|
+
content: zi,
|
|
3567
|
+
title: Bi,
|
|
3568
|
+
subtitle: Vi,
|
|
3569
|
+
comboWrap: Hi,
|
|
3570
|
+
trigger: Ui,
|
|
3571
|
+
triggerOpen: Wi,
|
|
3572
|
+
triggerLabel: Gi,
|
|
3573
|
+
placeholder: Ki,
|
|
3574
|
+
chevron: qi,
|
|
3575
|
+
chevronOpen: Ji,
|
|
3576
|
+
list: Yi,
|
|
3493
3577
|
"list-in": "_list-in_46mn8_1",
|
|
3494
|
-
listDown:
|
|
3495
|
-
listUp:
|
|
3578
|
+
listDown: Xi,
|
|
3579
|
+
listUp: Zi,
|
|
3496
3580
|
"list-in-up": "_list-in-up_46mn8_1",
|
|
3497
|
-
option:
|
|
3498
|
-
optionActive:
|
|
3499
|
-
optionSelected:
|
|
3500
|
-
optionDisabled:
|
|
3501
|
-
optionLabel:
|
|
3502
|
-
checkIcon:
|
|
3581
|
+
option: Qi,
|
|
3582
|
+
optionActive: $i,
|
|
3583
|
+
optionSelected: ea,
|
|
3584
|
+
optionDisabled: ta,
|
|
3585
|
+
optionLabel: na,
|
|
3586
|
+
checkIcon: ra
|
|
3503
3587
|
};
|
|
3504
3588
|
//#endregion
|
|
3505
3589
|
//#region src/components/ComboRow/ComboRow.tsx
|
|
3506
|
-
function
|
|
3590
|
+
function ia({ title: e, subtitle: r, leading: i, options: a, value: o, defaultValue: s, onValueChange: l, disabled: f = !1, className: p, ...g }) {
|
|
3507
3591
|
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
3592
|
if (!k.current) return;
|
|
3509
3593
|
let e = k.current.getBoundingClientRect(), t = window.innerHeight - e.bottom, n = Math.min(a.length * 44 + 8, 260);
|
|
@@ -3551,7 +3635,7 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3551
3635
|
N,
|
|
3552
3636
|
M,
|
|
3553
3637
|
a
|
|
3554
|
-
]),
|
|
3638
|
+
]), te = c((e) => {
|
|
3555
3639
|
let t = a.map((e, t) => ({
|
|
3556
3640
|
o: e,
|
|
3557
3641
|
i: t
|
|
@@ -3653,7 +3737,7 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3653
3737
|
"aria-labelledby": D,
|
|
3654
3738
|
tabIndex: -1,
|
|
3655
3739
|
className: [Y.list, T ? Y.listUp : Y.listDown].filter(Boolean).join(" "),
|
|
3656
|
-
onKeyDown:
|
|
3740
|
+
onKeyDown: te,
|
|
3657
3741
|
children: a.map((e, r) => /* @__PURE__ */ n("li", {
|
|
3658
3742
|
id: `${O}-opt-${r}`,
|
|
3659
3743
|
role: "option",
|
|
@@ -3692,7 +3776,7 @@ function Zi({ title: e, subtitle: r, leading: i, options: a, value: o, defaultVa
|
|
|
3692
3776
|
]
|
|
3693
3777
|
});
|
|
3694
3778
|
}
|
|
3695
|
-
var
|
|
3779
|
+
var aa = {
|
|
3696
3780
|
row: "_row_1kogj_3",
|
|
3697
3781
|
focused: "_focused_1kogj_16",
|
|
3698
3782
|
disabled: "_disabled_1kogj_25",
|
|
@@ -3706,31 +3790,31 @@ var X = {
|
|
|
3706
3790
|
};
|
|
3707
3791
|
//#endregion
|
|
3708
3792
|
//#region src/components/EntryRow/EntryRow.tsx
|
|
3709
|
-
function
|
|
3793
|
+
function oa({ title: e, value: r, defaultValue: i = "", onValueChange: a, leading: o, trailing: s, disabled: c, className: l, id: u, onChange: f, ...p }) {
|
|
3710
3794
|
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
3795
|
return /* @__PURE__ */ n("div", {
|
|
3712
3796
|
className: [
|
|
3713
|
-
|
|
3714
|
-
S ?
|
|
3715
|
-
c ?
|
|
3797
|
+
aa.row,
|
|
3798
|
+
S ? aa.focused : null,
|
|
3799
|
+
c ? aa.disabled : null,
|
|
3716
3800
|
l
|
|
3717
3801
|
].filter(Boolean).join(" "),
|
|
3718
3802
|
onClick: () => w.current?.focus(),
|
|
3719
3803
|
children: [
|
|
3720
3804
|
o && /* @__PURE__ */ t("span", {
|
|
3721
|
-
className:
|
|
3805
|
+
className: aa.leading,
|
|
3722
3806
|
children: o
|
|
3723
3807
|
}),
|
|
3724
3808
|
/* @__PURE__ */ n("span", {
|
|
3725
|
-
className:
|
|
3809
|
+
className: aa.fieldWrap,
|
|
3726
3810
|
children: [/* @__PURE__ */ t("label", {
|
|
3727
3811
|
htmlFor: _,
|
|
3728
|
-
className: [
|
|
3812
|
+
className: [aa.label, T ? aa.labelFloated : null].filter(Boolean).join(" "),
|
|
3729
3813
|
children: e
|
|
3730
3814
|
}), /* @__PURE__ */ t("input", {
|
|
3731
3815
|
ref: w,
|
|
3732
3816
|
id: _,
|
|
3733
|
-
className: [
|
|
3817
|
+
className: [aa.input, T ? aa.inputFloated : null].filter(Boolean).join(" "),
|
|
3734
3818
|
value: x,
|
|
3735
3819
|
disabled: c,
|
|
3736
3820
|
onFocus: () => C(!0),
|
|
@@ -3742,39 +3826,39 @@ function Qi({ title: e, value: r, defaultValue: i = "", onValueChange: a, leadin
|
|
|
3742
3826
|
})]
|
|
3743
3827
|
}),
|
|
3744
3828
|
s && /* @__PURE__ */ t("span", {
|
|
3745
|
-
className:
|
|
3829
|
+
className: aa.trailing,
|
|
3746
3830
|
children: s
|
|
3747
3831
|
})
|
|
3748
3832
|
]
|
|
3749
3833
|
});
|
|
3750
3834
|
}
|
|
3751
|
-
var
|
|
3835
|
+
var sa = { revealButton: "_revealButton_1j8z0_3" };
|
|
3752
3836
|
//#endregion
|
|
3753
3837
|
//#region src/components/PasswordEntryRow/PasswordEntryRow.tsx
|
|
3754
|
-
function
|
|
3838
|
+
function ca({ trailing: r, disabled: i, ...a }) {
|
|
3755
3839
|
let [o, s] = h(!1), c = /* @__PURE__ */ t("button", {
|
|
3756
3840
|
type: "button",
|
|
3757
|
-
className:
|
|
3841
|
+
className: sa.revealButton,
|
|
3758
3842
|
onClick: (e) => {
|
|
3759
3843
|
e.stopPropagation(), s((e) => !e);
|
|
3760
3844
|
},
|
|
3761
3845
|
"aria-label": o ? "Conceal password" : "Reveal password",
|
|
3762
3846
|
"aria-pressed": o,
|
|
3763
3847
|
disabled: i,
|
|
3764
|
-
children: /* @__PURE__ */ t(
|
|
3765
|
-
icon: o ?
|
|
3848
|
+
children: /* @__PURE__ */ t(I, {
|
|
3849
|
+
icon: o ? Ue : He,
|
|
3766
3850
|
size: "md",
|
|
3767
3851
|
"aria-hidden": !0
|
|
3768
3852
|
})
|
|
3769
3853
|
});
|
|
3770
|
-
return /* @__PURE__ */ t(
|
|
3854
|
+
return /* @__PURE__ */ t(oa, {
|
|
3771
3855
|
...a,
|
|
3772
3856
|
type: o ? "text" : "password",
|
|
3773
3857
|
disabled: i,
|
|
3774
3858
|
trailing: /* @__PURE__ */ n(e, { children: [r, c] })
|
|
3775
3859
|
});
|
|
3776
3860
|
}
|
|
3777
|
-
var
|
|
3861
|
+
var la = {
|
|
3778
3862
|
row: "_row_ycg6f_3",
|
|
3779
3863
|
disabled: "_disabled_ycg6f_16",
|
|
3780
3864
|
leading: "_leading_ycg6f_23",
|
|
@@ -3787,16 +3871,16 @@ var ta = {
|
|
|
3787
3871
|
};
|
|
3788
3872
|
//#endregion
|
|
3789
3873
|
//#region src/components/SpinRow/SpinRow.tsx
|
|
3790
|
-
function
|
|
3874
|
+
function ua(e) {
|
|
3791
3875
|
let t = e.toString(), n = t.indexOf(".");
|
|
3792
3876
|
return n === -1 ? 0 : t.length - n - 1;
|
|
3793
3877
|
}
|
|
3794
|
-
function
|
|
3878
|
+
function da(e, t, n) {
|
|
3795
3879
|
return Math.min(n, Math.max(t, e));
|
|
3796
3880
|
}
|
|
3797
|
-
function
|
|
3798
|
-
let v = a !== void 0, [y, b] = h(o), x = v ? a : y, S = p ??
|
|
3799
|
-
let t = parseFloat(
|
|
3881
|
+
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, ..._ }) {
|
|
3882
|
+
let v = a !== void 0, [y, b] = h(o), x = v ? a : y, S = p ?? ua(f), C = d(), w = c((e) => {
|
|
3883
|
+
let t = parseFloat(da(e, l, u).toFixed(S));
|
|
3800
3884
|
v || b(t), s?.(t);
|
|
3801
3885
|
}, [
|
|
3802
3886
|
v,
|
|
@@ -3834,23 +3918,23 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3834
3918
|
]);
|
|
3835
3919
|
return /* @__PURE__ */ n("div", {
|
|
3836
3920
|
className: [
|
|
3837
|
-
|
|
3838
|
-
m ?
|
|
3921
|
+
la.row,
|
|
3922
|
+
m ? la.disabled : null,
|
|
3839
3923
|
g
|
|
3840
3924
|
].filter(Boolean).join(" "),
|
|
3841
3925
|
..._,
|
|
3842
3926
|
children: [
|
|
3843
3927
|
i && /* @__PURE__ */ t("span", {
|
|
3844
|
-
className:
|
|
3928
|
+
className: la.leading,
|
|
3845
3929
|
children: i
|
|
3846
3930
|
}),
|
|
3847
3931
|
/* @__PURE__ */ n("span", {
|
|
3848
|
-
className:
|
|
3932
|
+
className: la.content,
|
|
3849
3933
|
children: [/* @__PURE__ */ t("span", {
|
|
3850
|
-
className:
|
|
3934
|
+
className: la.title,
|
|
3851
3935
|
children: e
|
|
3852
3936
|
}), r && /* @__PURE__ */ t("span", {
|
|
3853
|
-
className:
|
|
3937
|
+
className: la.subtitle,
|
|
3854
3938
|
children: r
|
|
3855
3939
|
})]
|
|
3856
3940
|
}),
|
|
@@ -3863,14 +3947,14 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3863
3947
|
"aria-disabled": m || void 0,
|
|
3864
3948
|
tabIndex: m ? -1 : 0,
|
|
3865
3949
|
onKeyDown: m ? void 0 : T,
|
|
3866
|
-
className:
|
|
3950
|
+
className: la.spin,
|
|
3867
3951
|
children: [
|
|
3868
3952
|
/* @__PURE__ */ t("button", {
|
|
3869
3953
|
type: "button",
|
|
3870
3954
|
tabIndex: -1,
|
|
3871
3955
|
"aria-hidden": "true",
|
|
3872
3956
|
disabled: m || x <= l,
|
|
3873
|
-
className:
|
|
3957
|
+
className: la.spinBtn,
|
|
3874
3958
|
onClick: (e) => {
|
|
3875
3959
|
e.stopPropagation(), w(x - f);
|
|
3876
3960
|
},
|
|
@@ -3878,7 +3962,7 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3878
3962
|
}),
|
|
3879
3963
|
/* @__PURE__ */ t("span", {
|
|
3880
3964
|
id: C,
|
|
3881
|
-
className:
|
|
3965
|
+
className: la.spinValue,
|
|
3882
3966
|
"aria-hidden": "true",
|
|
3883
3967
|
children: x.toFixed(S)
|
|
3884
3968
|
}),
|
|
@@ -3887,7 +3971,7 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3887
3971
|
tabIndex: -1,
|
|
3888
3972
|
"aria-hidden": "true",
|
|
3889
3973
|
disabled: m || x >= u,
|
|
3890
|
-
className:
|
|
3974
|
+
className: la.spinBtn,
|
|
3891
3975
|
onClick: (e) => {
|
|
3892
3976
|
e.stopPropagation(), w(x + f);
|
|
3893
3977
|
},
|
|
@@ -3900,50 +3984,50 @@ function ia({ title: e, subtitle: r, leading: i, value: a, defaultValue: o = 0,
|
|
|
3900
3984
|
}
|
|
3901
3985
|
//#endregion
|
|
3902
3986
|
//#region src/components/NavigationView/NavigationView.module.css
|
|
3903
|
-
var
|
|
3904
|
-
view:
|
|
3905
|
-
page:
|
|
3906
|
-
pageHeader:
|
|
3907
|
-
pageTitle:
|
|
3908
|
-
pageContent:
|
|
3909
|
-
enterForward:
|
|
3987
|
+
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 = {
|
|
3988
|
+
view: pa,
|
|
3989
|
+
page: ma,
|
|
3990
|
+
pageHeader: ha,
|
|
3991
|
+
pageTitle: ga,
|
|
3992
|
+
pageContent: _a,
|
|
3993
|
+
enterForward: va,
|
|
3910
3994
|
"slide-in-right": "_slide-in-right_1r1om_1",
|
|
3911
|
-
enterBack:
|
|
3995
|
+
enterBack: ya,
|
|
3912
3996
|
"slide-in-left": "_slide-in-left_1r1om_1"
|
|
3913
|
-
},
|
|
3997
|
+
}, xa = a({
|
|
3914
3998
|
navigate: () => {},
|
|
3915
3999
|
pop: () => {},
|
|
3916
4000
|
canGoBack: !1,
|
|
3917
4001
|
currentTag: "",
|
|
3918
4002
|
direction: "forward"
|
|
3919
4003
|
});
|
|
3920
|
-
function
|
|
3921
|
-
return l(
|
|
4004
|
+
function Sa() {
|
|
4005
|
+
return l(xa);
|
|
3922
4006
|
}
|
|
3923
|
-
function
|
|
3924
|
-
let { currentTag: s, direction: c } = l(
|
|
4007
|
+
function Ca({ tag: e, title: r, children: i, className: a, ...o }) {
|
|
4008
|
+
let { currentTag: s, direction: c } = l(xa);
|
|
3925
4009
|
return s === e ? /* @__PURE__ */ n("div", {
|
|
3926
4010
|
className: [
|
|
3927
|
-
|
|
3928
|
-
c === "forward" ?
|
|
4011
|
+
ba.page,
|
|
4012
|
+
c === "forward" ? ba.enterForward : ba.enterBack,
|
|
3929
4013
|
a
|
|
3930
4014
|
].filter(Boolean).join(" "),
|
|
3931
4015
|
...o,
|
|
3932
4016
|
children: [/* @__PURE__ */ t("div", {
|
|
3933
|
-
className:
|
|
4017
|
+
className: ba.pageHeader,
|
|
3934
4018
|
children: /* @__PURE__ */ t("span", {
|
|
3935
|
-
className:
|
|
4019
|
+
className: ba.pageTitle,
|
|
3936
4020
|
children: r
|
|
3937
4021
|
})
|
|
3938
4022
|
}), /* @__PURE__ */ t("div", {
|
|
3939
|
-
className:
|
|
4023
|
+
className: ba.pageContent,
|
|
3940
4024
|
children: i
|
|
3941
4025
|
})]
|
|
3942
4026
|
}) : null;
|
|
3943
4027
|
}
|
|
3944
|
-
function
|
|
4028
|
+
function wa({ initialPage: e, children: n, className: r, ...i }) {
|
|
3945
4029
|
let [a, o] = h([e]), s = a[a.length - 1], c = a.length > 1, [l, u] = h("forward");
|
|
3946
|
-
return /* @__PURE__ */ t(
|
|
4030
|
+
return /* @__PURE__ */ t(xa.Provider, {
|
|
3947
4031
|
value: {
|
|
3948
4032
|
navigate: (e) => {
|
|
3949
4033
|
u("forward"), o((t) => [...t, e]);
|
|
@@ -3956,7 +4040,7 @@ function ga({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3956
4040
|
direction: l
|
|
3957
4041
|
},
|
|
3958
4042
|
children: /* @__PURE__ */ t("div", {
|
|
3959
|
-
className: [
|
|
4043
|
+
className: [ba.view, r].filter(Boolean).join(" "),
|
|
3960
4044
|
...i,
|
|
3961
4045
|
children: n
|
|
3962
4046
|
})
|
|
@@ -3964,20 +4048,20 @@ function ga({ initialPage: e, children: n, className: r, ...i }) {
|
|
|
3964
4048
|
}
|
|
3965
4049
|
//#endregion
|
|
3966
4050
|
//#region src/components/BottomSheet/BottomSheet.module.css
|
|
3967
|
-
var
|
|
3968
|
-
backdrop:
|
|
4051
|
+
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 = {
|
|
4052
|
+
backdrop: Ta,
|
|
3969
4053
|
"backdrop-in": "_backdrop-in_zzv98_1",
|
|
3970
|
-
sheet:
|
|
4054
|
+
sheet: Ea,
|
|
3971
4055
|
"sheet-in": "_sheet-in_zzv98_1",
|
|
3972
|
-
handle:
|
|
3973
|
-
handleBar:
|
|
3974
|
-
title:
|
|
3975
|
-
content:
|
|
3976
|
-
},
|
|
3977
|
-
function
|
|
4056
|
+
handle: Da,
|
|
4057
|
+
handleBar: Oa,
|
|
4058
|
+
title: ka,
|
|
4059
|
+
content: Aa
|
|
4060
|
+
}, Ma = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4061
|
+
function Na({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !0, className: s, ...l }) {
|
|
3978
4062
|
let f = m(null), p = d(), h = m(null);
|
|
3979
4063
|
u(() => {
|
|
3980
|
-
e ? (h.current = document.activeElement, (f.current?.querySelector(
|
|
4064
|
+
e ? (h.current = document.activeElement, (f.current?.querySelector(Ma))?.focus()) : h.current?.focus();
|
|
3981
4065
|
}, [e]);
|
|
3982
4066
|
let _ = c((e) => {
|
|
3983
4067
|
if (e.key === "Escape") {
|
|
@@ -3985,14 +4069,14 @@ function Ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
3985
4069
|
return;
|
|
3986
4070
|
}
|
|
3987
4071
|
if (e.key !== "Tab") return;
|
|
3988
|
-
let t = Array.from(f.current?.querySelectorAll(
|
|
4072
|
+
let t = Array.from(f.current?.querySelectorAll(Ma) ?? []);
|
|
3989
4073
|
if (t.length === 0) return;
|
|
3990
4074
|
let n = t[0], r = t[t.length - 1];
|
|
3991
4075
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
3992
4076
|
}, [a]);
|
|
3993
4077
|
if (!e) return null;
|
|
3994
4078
|
let v = /* @__PURE__ */ t("div", {
|
|
3995
|
-
className:
|
|
4079
|
+
className: ja.backdrop,
|
|
3996
4080
|
onClick: o ? a : void 0,
|
|
3997
4081
|
"aria-hidden": "true",
|
|
3998
4082
|
children: /* @__PURE__ */ n("div", {
|
|
@@ -4000,23 +4084,23 @@ function Ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
4000
4084
|
role: "dialog",
|
|
4001
4085
|
"aria-modal": "true",
|
|
4002
4086
|
"aria-labelledby": r ? p : void 0,
|
|
4003
|
-
className: [
|
|
4087
|
+
className: [ja.sheet, s].filter(Boolean).join(" "),
|
|
4004
4088
|
onKeyDown: _,
|
|
4005
4089
|
onClick: (e) => e.stopPropagation(),
|
|
4006
4090
|
...l,
|
|
4007
4091
|
children: [
|
|
4008
4092
|
/* @__PURE__ */ t("div", {
|
|
4009
|
-
className:
|
|
4093
|
+
className: ja.handle,
|
|
4010
4094
|
"aria-hidden": "true",
|
|
4011
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
4095
|
+
children: /* @__PURE__ */ t("div", { className: ja.handleBar })
|
|
4012
4096
|
}),
|
|
4013
4097
|
r && /* @__PURE__ */ t("div", {
|
|
4014
4098
|
id: p,
|
|
4015
|
-
className:
|
|
4099
|
+
className: ja.title,
|
|
4016
4100
|
children: r
|
|
4017
4101
|
}),
|
|
4018
4102
|
i && /* @__PURE__ */ t("div", {
|
|
4019
|
-
className:
|
|
4103
|
+
className: ja.content,
|
|
4020
4104
|
children: i
|
|
4021
4105
|
})
|
|
4022
4106
|
]
|
|
@@ -4024,7 +4108,7 @@ function Ta({ open: e, title: r, children: i, onClose: a, closeOnBackdrop: o = !
|
|
|
4024
4108
|
});
|
|
4025
4109
|
return typeof document > "u" ? v : g(v, document.body);
|
|
4026
4110
|
}
|
|
4027
|
-
var
|
|
4111
|
+
var X = {
|
|
4028
4112
|
carousel: "_carousel_117hp_3",
|
|
4029
4113
|
horizontal: "_horizontal_117hp_20",
|
|
4030
4114
|
vertical: "_vertical_117hp_27",
|
|
@@ -4038,9 +4122,9 @@ var Ea = {
|
|
|
4038
4122
|
};
|
|
4039
4123
|
//#endregion
|
|
4040
4124
|
//#region src/components/Carousel/Carousel.tsx
|
|
4041
|
-
function
|
|
4125
|
+
function Pa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
4042
4126
|
return /* @__PURE__ */ t("div", {
|
|
4043
|
-
className: [
|
|
4127
|
+
className: [X.indicatorDots, i].filter(Boolean).join(" "),
|
|
4044
4128
|
role: "tablist",
|
|
4045
4129
|
"aria-label": "Carousel pages",
|
|
4046
4130
|
...a,
|
|
@@ -4049,14 +4133,14 @@ function Da({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
4049
4133
|
role: "tab",
|
|
4050
4134
|
"aria-selected": i === n,
|
|
4051
4135
|
"aria-label": `Page ${i + 1}`,
|
|
4052
|
-
className: [
|
|
4136
|
+
className: [X.dot, i === n ? X.dotActive : null].filter(Boolean).join(" "),
|
|
4053
4137
|
onClick: () => r?.(i)
|
|
4054
4138
|
}, i))
|
|
4055
4139
|
});
|
|
4056
4140
|
}
|
|
4057
|
-
function
|
|
4141
|
+
function Fa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a }) {
|
|
4058
4142
|
return /* @__PURE__ */ t("div", {
|
|
4059
|
-
className: [
|
|
4143
|
+
className: [X.indicatorLines, i].filter(Boolean).join(" "),
|
|
4060
4144
|
role: "tablist",
|
|
4061
4145
|
"aria-label": "Carousel pages",
|
|
4062
4146
|
...a,
|
|
@@ -4065,12 +4149,12 @@ function Oa({ pages: e, currentPage: n, onPageSelected: r, className: i, ...a })
|
|
|
4065
4149
|
role: "tab",
|
|
4066
4150
|
"aria-selected": i === n,
|
|
4067
4151
|
"aria-label": `Page ${i + 1}`,
|
|
4068
|
-
className: [
|
|
4152
|
+
className: [X.line, i === n ? X.lineActive : null].filter(Boolean).join(" "),
|
|
4069
4153
|
onClick: () => r?.(i)
|
|
4070
4154
|
}, i))
|
|
4071
4155
|
});
|
|
4072
4156
|
}
|
|
4073
|
-
function
|
|
4157
|
+
function Ia({ children: e, orientation: n = "horizontal", spacing: i = 0, loop: a = !1, onPageChanged: o, page: s, className: l, ...d }) {
|
|
4074
4158
|
let f = m(null), p = r.count(e), [g, _] = h(0), v = s !== void 0, y = v ? s : g;
|
|
4075
4159
|
u(() => {
|
|
4076
4160
|
v && b(s, "smooth");
|
|
@@ -4126,15 +4210,15 @@ function ka({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
4126
4210
|
"aria-roledescription": "carousel",
|
|
4127
4211
|
tabIndex: 0,
|
|
4128
4212
|
className: [
|
|
4129
|
-
|
|
4130
|
-
S ?
|
|
4213
|
+
X.carousel,
|
|
4214
|
+
S ? X.horizontal : X.vertical,
|
|
4131
4215
|
l
|
|
4132
4216
|
].filter(Boolean).join(" "),
|
|
4133
4217
|
style: S ? { columnGap: i || void 0 } : { rowGap: i || void 0 },
|
|
4134
4218
|
onKeyDown: x,
|
|
4135
4219
|
...d,
|
|
4136
4220
|
children: r.map(e, (e, n) => /* @__PURE__ */ t("div", {
|
|
4137
|
-
className:
|
|
4221
|
+
className: X.slide,
|
|
4138
4222
|
role: "group",
|
|
4139
4223
|
"aria-roledescription": "slide",
|
|
4140
4224
|
"aria-label": `${n + 1} of ${p}`,
|
|
@@ -4144,49 +4228,49 @@ function ka({ children: e, orientation: n = "horizontal", spacing: i = 0, loop:
|
|
|
4144
4228
|
}
|
|
4145
4229
|
//#endregion
|
|
4146
4230
|
//#region src/components/Bin/Bin.tsx
|
|
4147
|
-
function
|
|
4231
|
+
function La({ children: e, ...n }) {
|
|
4148
4232
|
return /* @__PURE__ */ t("div", {
|
|
4149
4233
|
...n,
|
|
4150
4234
|
children: e
|
|
4151
4235
|
});
|
|
4152
4236
|
}
|
|
4153
|
-
var
|
|
4237
|
+
var Ra = {
|
|
4154
4238
|
content: "_content_1xkwk_3",
|
|
4155
4239
|
icon: "_icon_1xkwk_9",
|
|
4156
4240
|
label: "_label_1xkwk_15"
|
|
4157
4241
|
};
|
|
4158
4242
|
//#endregion
|
|
4159
4243
|
//#region src/components/ButtonContent/ButtonContent.tsx
|
|
4160
|
-
function
|
|
4244
|
+
function za({ icon: e, label: r, iconPosition: i = "start", className: a, ...o }) {
|
|
4161
4245
|
return /* @__PURE__ */ n("span", {
|
|
4162
4246
|
className: [
|
|
4163
|
-
|
|
4164
|
-
i === "end" ?
|
|
4247
|
+
Ra.content,
|
|
4248
|
+
i === "end" ? Ra.iconEnd : null,
|
|
4165
4249
|
a
|
|
4166
4250
|
].filter(Boolean).join(" "),
|
|
4167
4251
|
...o,
|
|
4168
4252
|
children: [
|
|
4169
4253
|
e && i === "start" && /* @__PURE__ */ t("span", {
|
|
4170
|
-
className:
|
|
4254
|
+
className: Ra.icon,
|
|
4171
4255
|
"aria-hidden": "true",
|
|
4172
4256
|
children: e
|
|
4173
4257
|
}),
|
|
4174
4258
|
/* @__PURE__ */ t("span", {
|
|
4175
|
-
className:
|
|
4259
|
+
className: Ra.label,
|
|
4176
4260
|
children: r
|
|
4177
4261
|
}),
|
|
4178
4262
|
e && i === "end" && /* @__PURE__ */ t("span", {
|
|
4179
|
-
className:
|
|
4263
|
+
className: Ra.icon,
|
|
4180
4264
|
"aria-hidden": "true",
|
|
4181
4265
|
children: e
|
|
4182
4266
|
})
|
|
4183
4267
|
]
|
|
4184
4268
|
});
|
|
4185
4269
|
}
|
|
4186
|
-
var
|
|
4270
|
+
var Ba = {
|
|
4187
4271
|
label: "_label_h3znl_3",
|
|
4188
4272
|
key: "_key_h3znl_9"
|
|
4189
|
-
},
|
|
4273
|
+
}, Va = {
|
|
4190
4274
|
ctrl: "⌃",
|
|
4191
4275
|
control: "⌃",
|
|
4192
4276
|
shift: "⇧",
|
|
@@ -4214,22 +4298,22 @@ var Na = {
|
|
|
4214
4298
|
home: "⇱",
|
|
4215
4299
|
end: "⇲"
|
|
4216
4300
|
};
|
|
4217
|
-
function
|
|
4301
|
+
function Ha({ shortcut: e, symbols: n = !0, className: r, ...i }) {
|
|
4218
4302
|
let a = e.split("+").map((e) => e.trim()).filter(Boolean);
|
|
4219
4303
|
return /* @__PURE__ */ t("span", {
|
|
4220
|
-
className: [
|
|
4304
|
+
className: [Ba.label, r].filter(Boolean).join(" "),
|
|
4221
4305
|
"aria-label": e,
|
|
4222
4306
|
...i,
|
|
4223
4307
|
children: a.map((e, r) => {
|
|
4224
|
-
let i = n ?
|
|
4308
|
+
let i = n ? Va[e.toLowerCase()] ?? e : e;
|
|
4225
4309
|
return /* @__PURE__ */ t("kbd", {
|
|
4226
|
-
className:
|
|
4310
|
+
className: Ba.key,
|
|
4227
4311
|
children: i
|
|
4228
4312
|
}, r);
|
|
4229
4313
|
})
|
|
4230
4314
|
});
|
|
4231
4315
|
}
|
|
4232
|
-
var
|
|
4316
|
+
var Ua = {
|
|
4233
4317
|
toolbarView: "_toolbarView_134hf_3",
|
|
4234
4318
|
top: "_top_134hf_11",
|
|
4235
4319
|
content: "_content_134hf_16",
|
|
@@ -4237,47 +4321,47 @@ var Ia = {
|
|
|
4237
4321
|
};
|
|
4238
4322
|
//#endregion
|
|
4239
4323
|
//#region src/components/ToolbarView/ToolbarView.tsx
|
|
4240
|
-
function
|
|
4324
|
+
function Wa({ topBar: e, bottomBar: r, children: i, className: a, ...o }) {
|
|
4241
4325
|
return /* @__PURE__ */ n("div", {
|
|
4242
|
-
className: [
|
|
4326
|
+
className: [Ua.toolbarView, a].filter(Boolean).join(" "),
|
|
4243
4327
|
...o,
|
|
4244
4328
|
children: [
|
|
4245
4329
|
e && /* @__PURE__ */ t("div", {
|
|
4246
|
-
className:
|
|
4330
|
+
className: Ua.top,
|
|
4247
4331
|
children: e
|
|
4248
4332
|
}),
|
|
4249
4333
|
/* @__PURE__ */ t("div", {
|
|
4250
|
-
className:
|
|
4334
|
+
className: Ua.content,
|
|
4251
4335
|
children: i
|
|
4252
4336
|
}),
|
|
4253
4337
|
r && /* @__PURE__ */ t("div", {
|
|
4254
|
-
className:
|
|
4338
|
+
className: Ua.bottom,
|
|
4255
4339
|
children: r
|
|
4256
4340
|
})
|
|
4257
4341
|
]
|
|
4258
4342
|
});
|
|
4259
4343
|
}
|
|
4260
|
-
var
|
|
4344
|
+
var Ga = {
|
|
4261
4345
|
windowTitle: "_windowTitle_zm877_3",
|
|
4262
4346
|
title: "_title_zm877_11",
|
|
4263
4347
|
subtitle: "_subtitle_zm877_24"
|
|
4264
4348
|
};
|
|
4265
4349
|
//#endregion
|
|
4266
4350
|
//#region src/components/WindowTitle/WindowTitle.tsx
|
|
4267
|
-
function
|
|
4351
|
+
function Ka({ title: e, subtitle: r, className: i, ...a }) {
|
|
4268
4352
|
return /* @__PURE__ */ n("div", {
|
|
4269
|
-
className: [
|
|
4353
|
+
className: [Ga.windowTitle, i].filter(Boolean).join(" "),
|
|
4270
4354
|
...a,
|
|
4271
4355
|
children: [/* @__PURE__ */ t("span", {
|
|
4272
|
-
className:
|
|
4356
|
+
className: Ga.title,
|
|
4273
4357
|
children: e
|
|
4274
4358
|
}), r && /* @__PURE__ */ t("span", {
|
|
4275
|
-
className:
|
|
4359
|
+
className: Ga.subtitle,
|
|
4276
4360
|
children: r
|
|
4277
4361
|
})]
|
|
4278
4362
|
});
|
|
4279
4363
|
}
|
|
4280
|
-
var
|
|
4364
|
+
var qa = {
|
|
4281
4365
|
group: "_group_17s4f_3",
|
|
4282
4366
|
header: "_header_17s4f_11",
|
|
4283
4367
|
headerText: "_headerText_17s4f_17",
|
|
@@ -4288,85 +4372,85 @@ var Ba = {
|
|
|
4288
4372
|
};
|
|
4289
4373
|
//#endregion
|
|
4290
4374
|
//#region src/components/PreferencesGroup/PreferencesGroup.tsx
|
|
4291
|
-
function
|
|
4375
|
+
function Ja({ title: e, description: r, headerSuffix: i, children: a, className: o, ...s }) {
|
|
4292
4376
|
let c = e || r || i;
|
|
4293
4377
|
return /* @__PURE__ */ n("div", {
|
|
4294
|
-
className: [
|
|
4378
|
+
className: [qa.group, o].filter(Boolean).join(" "),
|
|
4295
4379
|
...s,
|
|
4296
4380
|
children: [c && /* @__PURE__ */ n("div", {
|
|
4297
|
-
className:
|
|
4381
|
+
className: qa.header,
|
|
4298
4382
|
children: [/* @__PURE__ */ n("div", {
|
|
4299
|
-
className:
|
|
4383
|
+
className: qa.headerText,
|
|
4300
4384
|
children: [e && /* @__PURE__ */ t("span", {
|
|
4301
|
-
className:
|
|
4385
|
+
className: qa.title,
|
|
4302
4386
|
children: e
|
|
4303
4387
|
}), r && /* @__PURE__ */ t("span", {
|
|
4304
|
-
className:
|
|
4388
|
+
className: qa.description,
|
|
4305
4389
|
children: r
|
|
4306
4390
|
})]
|
|
4307
4391
|
}), i && /* @__PURE__ */ t("div", {
|
|
4308
|
-
className:
|
|
4392
|
+
className: qa.suffix,
|
|
4309
4393
|
children: i
|
|
4310
4394
|
})]
|
|
4311
4395
|
}), /* @__PURE__ */ t("div", {
|
|
4312
|
-
className:
|
|
4396
|
+
className: qa.content,
|
|
4313
4397
|
children: a
|
|
4314
4398
|
})]
|
|
4315
4399
|
});
|
|
4316
4400
|
}
|
|
4317
|
-
var
|
|
4401
|
+
var Ya = {
|
|
4318
4402
|
page: "_page_gt42j_3",
|
|
4319
4403
|
inner: "_inner_gt42j_10"
|
|
4320
4404
|
};
|
|
4321
4405
|
//#endregion
|
|
4322
4406
|
//#region src/components/PreferencesPage/PreferencesPage.tsx
|
|
4323
|
-
function
|
|
4407
|
+
function Xa({ title: e, iconName: n, children: r, className: i, ...a }) {
|
|
4324
4408
|
return /* @__PURE__ */ t("div", {
|
|
4325
|
-
className: [
|
|
4409
|
+
className: [Ya.page, i].filter(Boolean).join(" "),
|
|
4326
4410
|
role: "tabpanel",
|
|
4327
4411
|
...a,
|
|
4328
4412
|
children: /* @__PURE__ */ t("div", {
|
|
4329
|
-
className:
|
|
4413
|
+
className: Ya.inner,
|
|
4330
4414
|
children: r
|
|
4331
4415
|
})
|
|
4332
4416
|
});
|
|
4333
4417
|
}
|
|
4334
4418
|
//#endregion
|
|
4335
4419
|
//#region src/components/PreferencesDialog/PreferencesDialog.module.css
|
|
4336
|
-
var
|
|
4337
|
-
backdrop:
|
|
4420
|
+
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 = {
|
|
4421
|
+
backdrop: Za,
|
|
4338
4422
|
"backdrop-in": "_backdrop-in_1u1bd_1",
|
|
4339
|
-
dialog:
|
|
4423
|
+
dialog: Qa,
|
|
4340
4424
|
"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
|
|
4425
|
+
dialogMulti: $a,
|
|
4426
|
+
header: eo,
|
|
4427
|
+
closeBtn: to,
|
|
4428
|
+
title: no,
|
|
4429
|
+
searchWrap: ro,
|
|
4430
|
+
searchInput: io,
|
|
4431
|
+
body: ao,
|
|
4432
|
+
sidebar: oo,
|
|
4433
|
+
navList: so,
|
|
4434
|
+
navItem: co,
|
|
4435
|
+
navItemActive: lo,
|
|
4436
|
+
navIcon: uo,
|
|
4437
|
+
navLabel: fo,
|
|
4438
|
+
pageWrap: po
|
|
4439
|
+
}, mo = "button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
4440
|
+
function ho(e, t) {
|
|
4357
4441
|
if (e.key !== "Tab") return;
|
|
4358
|
-
let n = Array.from(t.current?.querySelectorAll(
|
|
4442
|
+
let n = Array.from(t.current?.querySelectorAll(mo) ?? []);
|
|
4359
4443
|
if (!n.length) return;
|
|
4360
4444
|
let r = n[0], i = n[n.length - 1];
|
|
4361
4445
|
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
4362
4446
|
}
|
|
4363
|
-
function
|
|
4447
|
+
function go({ open: e, onClose: a, children: o, searchable: l = !0, className: f, ...p }) {
|
|
4364
4448
|
let _ = m(null), v = m(null), y = d(), b = r.toArray(o).filter((e) => s(e)), [x, S] = h(0), [C, w] = h("");
|
|
4365
4449
|
u(() => {
|
|
4366
4450
|
if (e) {
|
|
4367
4451
|
S(0), w("");
|
|
4368
4452
|
let e = requestAnimationFrame(() => {
|
|
4369
|
-
l && v.current ? v.current.focus() : (_.current?.querySelector(
|
|
4453
|
+
l && v.current ? v.current.focus() : (_.current?.querySelector(mo))?.focus();
|
|
4370
4454
|
});
|
|
4371
4455
|
return () => cancelAnimationFrame(e);
|
|
4372
4456
|
}
|
|
@@ -4376,7 +4460,7 @@ function co({ open: e, onClose: a, children: o, searchable: l = !0, className: f
|
|
|
4376
4460
|
e.stopPropagation(), a();
|
|
4377
4461
|
return;
|
|
4378
4462
|
}
|
|
4379
|
-
|
|
4463
|
+
ho(e, _);
|
|
4380
4464
|
}, [a]), E = b.length > 1, D = b[x] ?? b[0], O = C.trim().toLowerCase();
|
|
4381
4465
|
return e ? g(/* @__PURE__ */ t("div", {
|
|
4382
4466
|
className: Z.backdrop,
|
|
@@ -4479,7 +4563,7 @@ var Q = {
|
|
|
4479
4563
|
};
|
|
4480
4564
|
//#endregion
|
|
4481
4565
|
//#region src/components/Timeline/Timeline.tsx
|
|
4482
|
-
function
|
|
4566
|
+
function _o({ items: e, orientation: r = "vertical", variant: i = "default", className: a, ...o }) {
|
|
4483
4567
|
let s = r === "horizontal", c = i !== "none";
|
|
4484
4568
|
return /* @__PURE__ */ t("div", {
|
|
4485
4569
|
role: "list",
|
|
@@ -4543,7 +4627,7 @@ function lo({ items: e, orientation: r = "vertical", variant: i = "default", cla
|
|
|
4543
4627
|
})
|
|
4544
4628
|
});
|
|
4545
4629
|
}
|
|
4546
|
-
var
|
|
4630
|
+
var vo = {
|
|
4547
4631
|
pathBar: "_pathBar_1n4ev_3",
|
|
4548
4632
|
list: "_list_1n4ev_12",
|
|
4549
4633
|
item: "_item_1n4ev_25",
|
|
@@ -4554,20 +4638,20 @@ var uo = {
|
|
|
4554
4638
|
};
|
|
4555
4639
|
//#endregion
|
|
4556
4640
|
//#region src/components/PathBar/PathBar.tsx
|
|
4557
|
-
function
|
|
4641
|
+
function yo({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
4558
4642
|
return /* @__PURE__ */ t("nav", {
|
|
4559
4643
|
"aria-label": "Breadcrumb",
|
|
4560
|
-
className: [
|
|
4644
|
+
className: [vo.pathBar, i].filter(Boolean).join(" "),
|
|
4561
4645
|
...a,
|
|
4562
4646
|
children: /* @__PURE__ */ t("ol", {
|
|
4563
|
-
className:
|
|
4647
|
+
className: vo.list,
|
|
4564
4648
|
"aria-label": "Path segments",
|
|
4565
4649
|
children: e.map((i, a) => {
|
|
4566
4650
|
let o = a === e.length - 1;
|
|
4567
4651
|
return /* @__PURE__ */ n("li", {
|
|
4568
|
-
className:
|
|
4652
|
+
className: vo.item,
|
|
4569
4653
|
children: [a > 0 && /* @__PURE__ */ t("span", {
|
|
4570
|
-
className:
|
|
4654
|
+
className: vo.separator,
|
|
4571
4655
|
"aria-hidden": "true",
|
|
4572
4656
|
children: /* @__PURE__ */ t("svg", {
|
|
4573
4657
|
width: "12",
|
|
@@ -4584,19 +4668,19 @@ function fo({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4584
4668
|
})
|
|
4585
4669
|
})
|
|
4586
4670
|
}), o ? /* @__PURE__ */ n("span", {
|
|
4587
|
-
className:
|
|
4671
|
+
className: vo.current,
|
|
4588
4672
|
"aria-current": "page",
|
|
4589
4673
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4590
|
-
className:
|
|
4674
|
+
className: vo.icon,
|
|
4591
4675
|
"aria-hidden": "true",
|
|
4592
4676
|
children: i.icon
|
|
4593
4677
|
}), i.label]
|
|
4594
4678
|
}) : /* @__PURE__ */ n("button", {
|
|
4595
4679
|
type: "button",
|
|
4596
|
-
className:
|
|
4680
|
+
className: vo.segment,
|
|
4597
4681
|
onClick: () => r?.(i.path, a),
|
|
4598
4682
|
children: [i.icon && /* @__PURE__ */ t("span", {
|
|
4599
|
-
className:
|
|
4683
|
+
className: vo.icon,
|
|
4600
4684
|
"aria-hidden": "true",
|
|
4601
4685
|
children: i.icon
|
|
4602
4686
|
}), i.label]
|
|
@@ -4606,7 +4690,7 @@ function fo({ segments: e, onNavigate: r, className: i, ...a }) {
|
|
|
4606
4690
|
})
|
|
4607
4691
|
});
|
|
4608
4692
|
}
|
|
4609
|
-
var
|
|
4693
|
+
var bo = {
|
|
4610
4694
|
wrapper: "_wrapper_1upmq_1",
|
|
4611
4695
|
svg: "_svg_1upmq_10",
|
|
4612
4696
|
label: "_label_1upmq_15",
|
|
@@ -4615,7 +4699,7 @@ var po = {
|
|
|
4615
4699
|
legend: "_legend_1upmq_74",
|
|
4616
4700
|
legendLabel: "_legendLabel_1upmq_81",
|
|
4617
4701
|
legendCell: "_legendCell_1upmq_89"
|
|
4618
|
-
},
|
|
4702
|
+
}, xo = [
|
|
4619
4703
|
"Jan",
|
|
4620
4704
|
"Feb",
|
|
4621
4705
|
"Mar",
|
|
@@ -4628,7 +4712,7 @@ var po = {
|
|
|
4628
4712
|
"Oct",
|
|
4629
4713
|
"Nov",
|
|
4630
4714
|
"Dec"
|
|
4631
|
-
],
|
|
4715
|
+
], So = [
|
|
4632
4716
|
"Sun",
|
|
4633
4717
|
"Mon",
|
|
4634
4718
|
"Tue",
|
|
@@ -4636,30 +4720,30 @@ var po = {
|
|
|
4636
4720
|
"Thu",
|
|
4637
4721
|
"Fri",
|
|
4638
4722
|
"Sat"
|
|
4639
|
-
],
|
|
4723
|
+
], Co = 28, wo = 20, To = [
|
|
4640
4724
|
"var(--gnome-card-shade-color, rgba(0,0,0,0.07))",
|
|
4641
4725
|
"var(--gnome-green-1, #8ff0a4)",
|
|
4642
4726
|
"var(--gnome-green-2, #57e389)",
|
|
4643
4727
|
"var(--gnome-green-4, #2ec27e)",
|
|
4644
4728
|
"var(--gnome-green-5, #26a269)"
|
|
4645
4729
|
];
|
|
4646
|
-
function
|
|
4730
|
+
function Eo(e) {
|
|
4647
4731
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
4648
4732
|
}
|
|
4649
|
-
function
|
|
4733
|
+
function Do(e) {
|
|
4650
4734
|
let [t, n, r] = e.split("-").map(Number);
|
|
4651
4735
|
return new Date(t, n - 1, r);
|
|
4652
4736
|
}
|
|
4653
|
-
function
|
|
4654
|
-
return
|
|
4737
|
+
function Oo(e) {
|
|
4738
|
+
return Do(e).toLocaleDateString("en-US", {
|
|
4655
4739
|
weekday: "long",
|
|
4656
4740
|
year: "numeric",
|
|
4657
4741
|
month: "long",
|
|
4658
4742
|
day: "numeric"
|
|
4659
4743
|
});
|
|
4660
4744
|
}
|
|
4661
|
-
function
|
|
4662
|
-
let y = a + o, b = m(null), x = m(null), S = i ??
|
|
4745
|
+
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 }) {
|
|
4746
|
+
let y = a + o, b = m(null), x = m(null), S = i ?? To, [C, w] = h({
|
|
4663
4747
|
col: 0,
|
|
4664
4748
|
row: 0
|
|
4665
4749
|
}), [T, E] = h(null), D = p(() => {
|
|
@@ -4678,13 +4762,13 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4678
4762
|
let n = new Date(i);
|
|
4679
4763
|
n.setDate(i.getDate() + t * 7), n.getMonth() !== c && (o.push({
|
|
4680
4764
|
col: t,
|
|
4681
|
-
month:
|
|
4765
|
+
month: xo[n.getMonth()]
|
|
4682
4766
|
}), c = n.getMonth());
|
|
4683
4767
|
let s = [];
|
|
4684
4768
|
for (let n = 0; n < 7; n++) {
|
|
4685
4769
|
let a = new Date(i);
|
|
4686
4770
|
a.setDate(i.getDate() + t * 7 + n);
|
|
4687
|
-
let o = a > e, c =
|
|
4771
|
+
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
4772
|
s.push({
|
|
4689
4773
|
iso: c,
|
|
4690
4774
|
count: l,
|
|
@@ -4710,23 +4794,23 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4710
4794
|
5
|
|
4711
4795
|
].map((e) => ({
|
|
4712
4796
|
row: (e - s + 7) % 7,
|
|
4713
|
-
label:
|
|
4714
|
-
})), [s]), M = l ?
|
|
4715
|
-
function
|
|
4797
|
+
label: So[e]
|
|
4798
|
+
})), [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));
|
|
4799
|
+
function te(e, t) {
|
|
4716
4800
|
let n = Math.max(0, Math.min(d - 1, e)), r = Math.max(0, Math.min(6, t));
|
|
4717
4801
|
w({
|
|
4718
4802
|
col: n,
|
|
4719
4803
|
row: r
|
|
4720
4804
|
}), b.current?.querySelector(`[data-col="${n}"][data-row="${r}"]`)?.focus();
|
|
4721
4805
|
}
|
|
4722
|
-
function
|
|
4806
|
+
function ne(e, t, n) {
|
|
4723
4807
|
let r = {
|
|
4724
4808
|
ArrowRight: [t + 1, n],
|
|
4725
4809
|
ArrowLeft: [t - 1, n],
|
|
4726
4810
|
ArrowDown: [t, n + 1],
|
|
4727
4811
|
ArrowUp: [t, n - 1]
|
|
4728
4812
|
};
|
|
4729
|
-
if (r[e.key]) e.preventDefault(),
|
|
4813
|
+
if (r[e.key]) e.preventDefault(), te(...r[e.key]);
|
|
4730
4814
|
else if (e.key === "Enter" || e.key === " ") {
|
|
4731
4815
|
e.preventDefault();
|
|
4732
4816
|
let r = k[t]?.[n];
|
|
@@ -4736,7 +4820,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4736
4820
|
});
|
|
4737
4821
|
}
|
|
4738
4822
|
}
|
|
4739
|
-
function
|
|
4823
|
+
function re(e, t) {
|
|
4740
4824
|
let n = x.current;
|
|
4741
4825
|
if (!n) return;
|
|
4742
4826
|
let r = n.getBoundingClientRect(), i = e.currentTarget.getBoundingClientRect();
|
|
@@ -4746,37 +4830,37 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4746
4830
|
text: t
|
|
4747
4831
|
});
|
|
4748
4832
|
}
|
|
4749
|
-
function
|
|
4833
|
+
function ie(e) {
|
|
4750
4834
|
return e.future ? S[0] : S[Math.min(e.level, S.length - 1)] ?? S[S.length - 1];
|
|
4751
4835
|
}
|
|
4752
|
-
function
|
|
4753
|
-
return e.future ?
|
|
4836
|
+
function ae(e) {
|
|
4837
|
+
return e.future ? Oo(e.iso) : _?.({
|
|
4754
4838
|
date: e.iso,
|
|
4755
4839
|
count: e.count
|
|
4756
|
-
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${
|
|
4840
|
+
}) ?? `${e.count} contribution${e.count === 1 ? "" : "s"} on ${Oo(e.iso)}`;
|
|
4757
4841
|
}
|
|
4758
4842
|
return /* @__PURE__ */ n("div", {
|
|
4759
4843
|
ref: x,
|
|
4760
|
-
className: [
|
|
4844
|
+
className: [bo.wrapper, v].filter(Boolean).join(" "),
|
|
4761
4845
|
children: [
|
|
4762
4846
|
/* @__PURE__ */ n("svg", {
|
|
4763
4847
|
ref: b,
|
|
4764
4848
|
width: P,
|
|
4765
4849
|
height: F,
|
|
4766
|
-
className:
|
|
4850
|
+
className: bo.svg,
|
|
4767
4851
|
"aria-label": f,
|
|
4768
4852
|
role: "img",
|
|
4769
4853
|
children: [
|
|
4770
4854
|
c && A.map(({ col: e, month: n }) => /* @__PURE__ */ t("text", {
|
|
4771
4855
|
x: M + e * y,
|
|
4772
4856
|
y: 12,
|
|
4773
|
-
className:
|
|
4857
|
+
className: bo.label,
|
|
4774
4858
|
children: n
|
|
4775
4859
|
}, `m-${e}`)),
|
|
4776
4860
|
l && j.map(({ row: e, label: n }) => /* @__PURE__ */ t("text", {
|
|
4777
4861
|
x: 0,
|
|
4778
4862
|
y: N + e * y + a - 1,
|
|
4779
|
-
className:
|
|
4863
|
+
className: bo.label,
|
|
4780
4864
|
children: n
|
|
4781
4865
|
}, `d-${e}`)),
|
|
4782
4866
|
/* @__PURE__ */ t("g", {
|
|
@@ -4785,7 +4869,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4785
4869
|
children: k.map((e, n) => /* @__PURE__ */ t("g", {
|
|
4786
4870
|
role: "row",
|
|
4787
4871
|
children: e.map((e, r) => {
|
|
4788
|
-
let i =
|
|
4872
|
+
let i = ae(e), o = C.col === n && C.row === r;
|
|
4789
4873
|
return /* @__PURE__ */ t("rect", {
|
|
4790
4874
|
"data-col": n,
|
|
4791
4875
|
"data-row": r,
|
|
@@ -4794,9 +4878,9 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4794
4878
|
width: a,
|
|
4795
4879
|
height: a,
|
|
4796
4880
|
rx: ee,
|
|
4797
|
-
fill:
|
|
4881
|
+
fill: ie(e),
|
|
4798
4882
|
opacity: e.future ? .35 : 1,
|
|
4799
|
-
className:
|
|
4883
|
+
className: bo.cell,
|
|
4800
4884
|
role: "gridcell",
|
|
4801
4885
|
"aria-label": i,
|
|
4802
4886
|
"aria-disabled": e.future || void 0,
|
|
@@ -4805,12 +4889,12 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4805
4889
|
date: e.iso,
|
|
4806
4890
|
count: e.count
|
|
4807
4891
|
}),
|
|
4808
|
-
onKeyDown: (e) =>
|
|
4892
|
+
onKeyDown: (e) => ne(e, n, r),
|
|
4809
4893
|
onFocus: () => w({
|
|
4810
4894
|
col: n,
|
|
4811
4895
|
row: r
|
|
4812
4896
|
}),
|
|
4813
|
-
onMouseEnter: (e) =>
|
|
4897
|
+
onMouseEnter: (e) => re(e, i),
|
|
4814
4898
|
onMouseLeave: () => E(null)
|
|
4815
4899
|
}, `${n}-${r}`);
|
|
4816
4900
|
})
|
|
@@ -4819,7 +4903,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4819
4903
|
]
|
|
4820
4904
|
}),
|
|
4821
4905
|
T && /* @__PURE__ */ t("div", {
|
|
4822
|
-
className:
|
|
4906
|
+
className: bo.tooltip,
|
|
4823
4907
|
style: {
|
|
4824
4908
|
left: T.x,
|
|
4825
4909
|
top: T.y
|
|
@@ -4828,17 +4912,17 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4828
4912
|
children: T.text
|
|
4829
4913
|
}),
|
|
4830
4914
|
u && /* @__PURE__ */ n("div", {
|
|
4831
|
-
className:
|
|
4915
|
+
className: bo.legend,
|
|
4832
4916
|
children: [
|
|
4833
4917
|
/* @__PURE__ */ t("span", {
|
|
4834
|
-
className:
|
|
4918
|
+
className: bo.legendLabel,
|
|
4835
4919
|
children: "Less"
|
|
4836
4920
|
}),
|
|
4837
4921
|
Array.from({ length: r + 1 }, (e, n) => /* @__PURE__ */ t("svg", {
|
|
4838
4922
|
width: a,
|
|
4839
4923
|
height: a,
|
|
4840
4924
|
"aria-hidden": "true",
|
|
4841
|
-
className:
|
|
4925
|
+
className: bo.legendCell,
|
|
4842
4926
|
children: /* @__PURE__ */ t("rect", {
|
|
4843
4927
|
width: a,
|
|
4844
4928
|
height: a,
|
|
@@ -4847,7 +4931,7 @@ function So({ data: e, maxLevel: r = 4, colorScale: i, cellSize: a = 12, cellGap
|
|
|
4847
4931
|
})
|
|
4848
4932
|
}, n)),
|
|
4849
4933
|
/* @__PURE__ */ t("span", {
|
|
4850
|
-
className:
|
|
4934
|
+
className: bo.legendLabel,
|
|
4851
4935
|
children: "More"
|
|
4852
4936
|
})
|
|
4853
4937
|
]
|
|
@@ -4878,12 +4962,12 @@ var $ = {
|
|
|
4878
4962
|
checkbox: "_checkbox_1pg3h_170",
|
|
4879
4963
|
emptyCell: "_emptyCell_1pg3h_186",
|
|
4880
4964
|
emptyLabel: "_emptyLabel_1pg3h_191"
|
|
4881
|
-
},
|
|
4965
|
+
}, Ao = {
|
|
4882
4966
|
start: $.alignStart,
|
|
4883
4967
|
center: $.alignCenter,
|
|
4884
4968
|
end: $.alignEnd
|
|
4885
4969
|
};
|
|
4886
|
-
function
|
|
4970
|
+
function jo({ direction: r }) {
|
|
4887
4971
|
return /* @__PURE__ */ t("svg", {
|
|
4888
4972
|
width: "10",
|
|
4889
4973
|
height: "10",
|
|
@@ -4907,7 +4991,7 @@ function wo({ direction: r }) {
|
|
|
4907
4991
|
})] })
|
|
4908
4992
|
});
|
|
4909
4993
|
}
|
|
4910
|
-
function
|
|
4994
|
+
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
4995
|
let g = m(null), [_, v] = h(0), y = new Set(o), b = a === "multiple", x = e.length + (b ? 1 : 0);
|
|
4912
4996
|
function S(e) {
|
|
4913
4997
|
l && l(e, c?.columnId === e && c.direction === "asc" ? "desc" : "asc");
|
|
@@ -4962,14 +5046,14 @@ function To({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
4962
5046
|
}), e.map((e) => {
|
|
4963
5047
|
let r = c?.columnId === e.id;
|
|
4964
5048
|
return /* @__PURE__ */ t("th", {
|
|
4965
|
-
className: [$.th, e.align ?
|
|
5049
|
+
className: [$.th, e.align ? Ao[e.align] : null].filter(Boolean).join(" "),
|
|
4966
5050
|
style: e.width ? { width: e.width } : void 0,
|
|
4967
5051
|
"aria-sort": r ? c.direction === "asc" ? "ascending" : "descending" : e.sortable ? "none" : void 0,
|
|
4968
5052
|
children: e.sortable && l ? /* @__PURE__ */ n("button", {
|
|
4969
5053
|
type: "button",
|
|
4970
5054
|
className: [$.sortBtn, r ? $.sortBtnActive : null].filter(Boolean).join(" "),
|
|
4971
5055
|
onClick: () => S(e.id),
|
|
4972
|
-
children: [/* @__PURE__ */ t("span", { children: e.header }), /* @__PURE__ */ t(
|
|
5056
|
+
children: [/* @__PURE__ */ t("span", { children: e.header }), /* @__PURE__ */ t(jo, { direction: r ? c.direction : null })]
|
|
4973
5057
|
}) : /* @__PURE__ */ t("span", {
|
|
4974
5058
|
className: $.headerLabel,
|
|
4975
5059
|
children: e.header
|
|
@@ -5012,7 +5096,7 @@ function To({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
5012
5096
|
"aria-label": `Select row ${o + 1}`
|
|
5013
5097
|
})
|
|
5014
5098
|
}), e.map((e) => /* @__PURE__ */ t("td", {
|
|
5015
|
-
className: [$.td, e.align ?
|
|
5099
|
+
className: [$.td, e.align ? Ao[e.align] : null].filter(Boolean).join(" "),
|
|
5016
5100
|
role: "gridcell",
|
|
5017
5101
|
children: e.cell(r, o)
|
|
5018
5102
|
}, e.id))]
|
|
@@ -5024,6 +5108,6 @@ function To({ columns: e, rows: r, rowKey: i, selectionMode: a = "none", selecte
|
|
|
5024
5108
|
});
|
|
5025
5109
|
}
|
|
5026
5110
|
//#endregion
|
|
5027
|
-
export {
|
|
5111
|
+
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, hi as BreakpointBin, b as Button, za as ButtonContent, _i as ButtonRow, P as Card, Ia as Carousel, Pa as CarouselIndicatorDots, Fa as CarouselIndicatorLines, Fi as CheckRow, de as Checkbox, Ur as Chip, Dr as Clamp, Mo as ColumnView, ia as ComboRow, ko as ContributionGraph, Ie as CountDownTimer, Sn as Dialog, hr as Dropdown, oa as EntryRow, Di as ExpanderRow, Me as Footer, Ei as Frame, Je as GNOME_BREAKPOINTS, Ae as HeaderBar, I as Icon, ji as InlineViewSwitcher, Mi as InlineViewSwitcherItem, Nr as Link, wi 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, Si as Spacer, Ut as SpinButton, fa as SpinRow, ee as Spinner, yi as SplitButton, qe as StatusPage, le as Switch, Pi 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, xi as Toolbar, Wa as ToolbarView, Rt as Tooltip, Qt as ViewSwitcher, jr as ViewSwitcherBar, $t as ViewSwitcherItem, pi as ViewSwitcherSidebar, mi as ViewSwitcherSidebarItem, Ka as WindowTitle, Vr as WrapBox, Ye as useBreakpoint, Sa as useNavigation, Ot as useSidebarCollapsed };
|
|
5028
5112
|
|
|
5029
5113
|
//# sourceMappingURL=index.js.map
|