cattle-care-ui 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/VideoCard.d.ts +4 -3
- package/dist/index.css +1 -1
- package/dist/index.js +696 -628
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -213,12 +213,12 @@ var M = {
|
|
|
213
213
|
};
|
|
214
214
|
//#endregion
|
|
215
215
|
//#region src/components/Badge.tsx
|
|
216
|
-
function
|
|
216
|
+
function ee(...e) {
|
|
217
217
|
return e.filter(Boolean).join(" ");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function N({ variant: e = "neutral", size: t = "base", children: n, iconLeft: r, iconRight: i, dot: a, ...o }) {
|
|
220
220
|
return /* @__PURE__ */ y("span", {
|
|
221
|
-
className:
|
|
221
|
+
className: ee(M.badge, M[e], M[t]),
|
|
222
222
|
...o,
|
|
223
223
|
children: [
|
|
224
224
|
a && /* @__PURE__ */ v("span", {
|
|
@@ -239,13 +239,13 @@ function P({ variant: e = "neutral", size: t = "base", children: n, iconLeft: r,
|
|
|
239
239
|
}
|
|
240
240
|
//#endregion
|
|
241
241
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
|
|
242
|
-
var
|
|
242
|
+
var P = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
|
|
245
|
-
function
|
|
245
|
+
function F(e, t, n = []) {
|
|
246
246
|
if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
|
|
247
247
|
return {
|
|
248
|
-
name:
|
|
248
|
+
name: P(e),
|
|
249
249
|
size: 24,
|
|
250
250
|
node: t,
|
|
251
251
|
...n.length > 0 ? { aliases: n } : {}
|
|
@@ -253,7 +253,7 @@ function I(e, t, n = []) {
|
|
|
253
253
|
}
|
|
254
254
|
//#endregion
|
|
255
255
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
|
|
256
|
-
var
|
|
256
|
+
var te = (e) => {
|
|
257
257
|
let t = "", n = !1;
|
|
258
258
|
for (let r of e) {
|
|
259
259
|
if (r === "-" || r === "_" || r <= " ") {
|
|
@@ -263,10 +263,10 @@ var ee = (e) => {
|
|
|
263
263
|
t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
|
|
264
264
|
}
|
|
265
265
|
return t;
|
|
266
|
-
},
|
|
267
|
-
let t =
|
|
266
|
+
}, ne = (e) => {
|
|
267
|
+
let t = te(e);
|
|
268
268
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
269
|
-
},
|
|
269
|
+
}, I = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), L = {
|
|
270
270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
271
271
|
width: 24,
|
|
272
272
|
height: 24,
|
|
@@ -279,22 +279,22 @@ var ee = (e) => {
|
|
|
279
279
|
};
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
282
|
-
function
|
|
282
|
+
function R(e) {
|
|
283
283
|
return e != null;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ??
|
|
285
|
+
function z(e, t = {}) {
|
|
286
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? L.width, a = e.size ?? e.height ?? L.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? I(...c) : I("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? L["stroke-width"]) * Number(e.size ?? e.width ?? L.width) / Number(t.size ?? t.width ?? L.width) : t.strokeWidth ?? L["stroke-width"];
|
|
287
287
|
return [
|
|
288
288
|
"svg",
|
|
289
289
|
{
|
|
290
|
-
...Object.entries(
|
|
290
|
+
...Object.entries(L).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
|
|
291
291
|
..."color" in t && t.color && { [r("stroke")]: t.color },
|
|
292
|
-
..."size" in t &&
|
|
292
|
+
..."size" in t && R(t.size) && {
|
|
293
293
|
[r("width")]: t.size,
|
|
294
294
|
[r("height")]: t.size
|
|
295
295
|
},
|
|
296
|
-
..."width" in t &&
|
|
297
|
-
..."height" in t &&
|
|
296
|
+
..."width" in t && R(t.width) && { [r("width")]: t.width },
|
|
297
|
+
..."height" in t && R(t.height) && { [r("height")]: t.height },
|
|
298
298
|
[r("stroke-width")]: u,
|
|
299
299
|
...l && { [r("class")]: l },
|
|
300
300
|
[r("viewBox")]: `0 0 ${i} ${a}`,
|
|
@@ -316,8 +316,8 @@ function B(e, t = {}) {
|
|
|
316
316
|
}
|
|
317
317
|
//#endregion
|
|
318
318
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
|
|
319
|
-
function
|
|
320
|
-
return
|
|
319
|
+
function re(e, t = {}) {
|
|
320
|
+
return z(e, {
|
|
321
321
|
...t,
|
|
322
322
|
attributeNames: {
|
|
323
323
|
...t.attributeNames,
|
|
@@ -331,22 +331,22 @@ function ne(e, t = {}) {
|
|
|
331
331
|
}
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
|
|
334
|
-
var
|
|
334
|
+
var ie = (e) => {
|
|
335
335
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
336
336
|
return !1;
|
|
337
|
-
},
|
|
337
|
+
}, ae = r({}), oe = () => c(ae), se = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
|
|
338
338
|
node: u,
|
|
339
339
|
aliases: [],
|
|
340
340
|
size: 24
|
|
341
341
|
}, ...f }, p) => {
|
|
342
|
-
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } =
|
|
342
|
+
let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = oe() ?? {}, b = !!l || ie(f), [x, S, C = []] = re(d, {
|
|
343
343
|
color: e ?? v,
|
|
344
344
|
width: n ?? t ?? m,
|
|
345
345
|
height: r ?? t ?? m,
|
|
346
346
|
strokeWidth: a ?? h,
|
|
347
347
|
absoluteStrokeWidth: o ?? g,
|
|
348
348
|
nonScalingStroke: s ?? _,
|
|
349
|
-
className:
|
|
349
|
+
className: I(y, c),
|
|
350
350
|
hasA11yProp: b,
|
|
351
351
|
attributes: f
|
|
352
352
|
});
|
|
@@ -357,18 +357,18 @@ var re = (e) => {
|
|
|
357
357
|
});
|
|
358
358
|
//#endregion
|
|
359
359
|
//#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
|
|
360
|
-
function
|
|
361
|
-
let r = typeof e == "string" ?
|
|
360
|
+
function B(e, t = [], n = []) {
|
|
361
|
+
let r = typeof e == "string" ? F(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(se, {
|
|
362
362
|
ref: n,
|
|
363
363
|
icon: r,
|
|
364
364
|
className: e,
|
|
365
365
|
...t
|
|
366
366
|
}));
|
|
367
|
-
return r.name && (o.displayName =
|
|
367
|
+
return r.name && (o.displayName = ne(r.name)), o;
|
|
368
368
|
}
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region node_modules/lucide-react/dist/esm/icons/archive.mjs
|
|
371
|
-
var
|
|
371
|
+
var V = {
|
|
372
372
|
name: "archive",
|
|
373
373
|
size: 24,
|
|
374
374
|
node: [
|
|
@@ -390,8 +390,8 @@ var H = {
|
|
|
390
390
|
}]
|
|
391
391
|
]
|
|
392
392
|
};
|
|
393
|
-
|
|
394
|
-
var
|
|
393
|
+
V.node;
|
|
394
|
+
var ce = B(V), H = {
|
|
395
395
|
name: "calendar-days",
|
|
396
396
|
size: 24,
|
|
397
397
|
node: [
|
|
@@ -441,8 +441,8 @@ var se = V(H), U = {
|
|
|
441
441
|
}]
|
|
442
442
|
]
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
var
|
|
444
|
+
H.node;
|
|
445
|
+
var le = B(H), ue = {
|
|
446
446
|
name: "check",
|
|
447
447
|
size: 24,
|
|
448
448
|
node: [["path", {
|
|
@@ -450,8 +450,8 @@ var ce = V(U), le = {
|
|
|
450
450
|
key: "1gmf2c"
|
|
451
451
|
}]]
|
|
452
452
|
};
|
|
453
|
-
|
|
454
|
-
var
|
|
453
|
+
ue.node;
|
|
454
|
+
var U = B(ue), W = {
|
|
455
455
|
name: "chevron-down",
|
|
456
456
|
size: 24,
|
|
457
457
|
node: [["path", {
|
|
@@ -459,8 +459,8 @@ var W = V(le), ue = {
|
|
|
459
459
|
key: "qrunsl"
|
|
460
460
|
}]]
|
|
461
461
|
};
|
|
462
|
-
|
|
463
|
-
var de =
|
|
462
|
+
W.node;
|
|
463
|
+
var de = B(W), fe = {
|
|
464
464
|
name: "chevron-left",
|
|
465
465
|
size: 24,
|
|
466
466
|
node: [["path", {
|
|
@@ -469,7 +469,7 @@ var de = V(ue), fe = {
|
|
|
469
469
|
}]]
|
|
470
470
|
};
|
|
471
471
|
fe.node;
|
|
472
|
-
var pe =
|
|
472
|
+
var pe = B(fe), me = {
|
|
473
473
|
name: "chevron-right",
|
|
474
474
|
size: 24,
|
|
475
475
|
node: [["path", {
|
|
@@ -478,7 +478,7 @@ var pe = V(fe), me = {
|
|
|
478
478
|
}]]
|
|
479
479
|
};
|
|
480
480
|
me.node;
|
|
481
|
-
var he =
|
|
481
|
+
var he = B(me), ge = {
|
|
482
482
|
name: "eye-off",
|
|
483
483
|
size: 24,
|
|
484
484
|
node: [
|
|
@@ -501,7 +501,7 @@ var he = V(me), ge = {
|
|
|
501
501
|
]
|
|
502
502
|
};
|
|
503
503
|
ge.node;
|
|
504
|
-
var _e =
|
|
504
|
+
var _e = B(ge), ve = {
|
|
505
505
|
name: "eye",
|
|
506
506
|
size: 24,
|
|
507
507
|
node: [["path", {
|
|
@@ -515,7 +515,47 @@ var _e = V(ge), ve = {
|
|
|
515
515
|
}]]
|
|
516
516
|
};
|
|
517
517
|
ve.node;
|
|
518
|
-
var ye =
|
|
518
|
+
var ye = B(ve), be = {
|
|
519
|
+
name: "image-off",
|
|
520
|
+
size: 24,
|
|
521
|
+
node: [
|
|
522
|
+
["line", {
|
|
523
|
+
x1: "2",
|
|
524
|
+
x2: "22",
|
|
525
|
+
y1: "2",
|
|
526
|
+
y2: "22",
|
|
527
|
+
key: "a6p6uj"
|
|
528
|
+
}],
|
|
529
|
+
["path", {
|
|
530
|
+
d: "M10.41 10.41a2 2 0 1 1-2.83-2.83",
|
|
531
|
+
key: "1bzlo9"
|
|
532
|
+
}],
|
|
533
|
+
["line", {
|
|
534
|
+
x1: "13.5",
|
|
535
|
+
x2: "6",
|
|
536
|
+
y1: "13.5",
|
|
537
|
+
y2: "21",
|
|
538
|
+
key: "1q0aeu"
|
|
539
|
+
}],
|
|
540
|
+
["line", {
|
|
541
|
+
x1: "18",
|
|
542
|
+
x2: "21",
|
|
543
|
+
y1: "12",
|
|
544
|
+
y2: "15",
|
|
545
|
+
key: "5mozeu"
|
|
546
|
+
}],
|
|
547
|
+
["path", {
|
|
548
|
+
d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",
|
|
549
|
+
key: "mmje98"
|
|
550
|
+
}],
|
|
551
|
+
["path", {
|
|
552
|
+
d: "M21 15V5a2 2 0 0 0-2-2H9",
|
|
553
|
+
key: "43el77"
|
|
554
|
+
}]
|
|
555
|
+
]
|
|
556
|
+
};
|
|
557
|
+
be.node;
|
|
558
|
+
var xe = B(be), Se = {
|
|
519
559
|
name: "lock",
|
|
520
560
|
size: 24,
|
|
521
561
|
node: [["rect", {
|
|
@@ -531,8 +571,8 @@ var ye = V(ve), be = {
|
|
|
531
571
|
key: "fwvmzm"
|
|
532
572
|
}]]
|
|
533
573
|
};
|
|
534
|
-
|
|
535
|
-
var
|
|
574
|
+
Se.node;
|
|
575
|
+
var Ce = B(Se), we = {
|
|
536
576
|
name: "play",
|
|
537
577
|
size: 24,
|
|
538
578
|
node: [["path", {
|
|
@@ -540,8 +580,8 @@ var xe = V(be), Se = {
|
|
|
540
580
|
key: "10ikf1"
|
|
541
581
|
}]]
|
|
542
582
|
};
|
|
543
|
-
|
|
544
|
-
var
|
|
583
|
+
we.node;
|
|
584
|
+
var Te = B(we), Ee = {
|
|
545
585
|
name: "search",
|
|
546
586
|
size: 24,
|
|
547
587
|
node: [["path", {
|
|
@@ -554,8 +594,8 @@ var Ce = V(Se), we = {
|
|
|
554
594
|
key: "4ej97u"
|
|
555
595
|
}]]
|
|
556
596
|
};
|
|
557
|
-
|
|
558
|
-
var
|
|
597
|
+
Ee.node;
|
|
598
|
+
var De = B(Ee), Oe = {
|
|
559
599
|
name: "user",
|
|
560
600
|
size: 24,
|
|
561
601
|
node: [["path", {
|
|
@@ -568,8 +608,8 @@ var Te = V(we), Ee = {
|
|
|
568
608
|
key: "17ys0d"
|
|
569
609
|
}]]
|
|
570
610
|
};
|
|
571
|
-
|
|
572
|
-
var
|
|
611
|
+
Oe.node;
|
|
612
|
+
var ke = B(Oe), Ae = {
|
|
573
613
|
name: "x",
|
|
574
614
|
size: 24,
|
|
575
615
|
node: [["path", {
|
|
@@ -580,8 +620,8 @@ var De = V(Ee), Oe = {
|
|
|
580
620
|
key: "d8bk6v"
|
|
581
621
|
}]]
|
|
582
622
|
};
|
|
583
|
-
|
|
584
|
-
var
|
|
623
|
+
Ae.node;
|
|
624
|
+
var je = B(Ae), Me = {
|
|
585
625
|
neutral: "_neutral_11vj2_1",
|
|
586
626
|
pill: "_pill_11vj2_2",
|
|
587
627
|
accent: "_accent_11vj2_3",
|
|
@@ -599,53 +639,53 @@ var ke = V(Oe), Ae = {
|
|
|
599
639
|
main: "_main_11vj2_161",
|
|
600
640
|
remove: "_remove_11vj2_162",
|
|
601
641
|
removable: "_removable_11vj2_189"
|
|
602
|
-
},
|
|
642
|
+
}, Ne = {
|
|
603
643
|
chip: "_chip_ny74i_5",
|
|
604
644
|
disabled: "_disabled_ny74i_15",
|
|
605
645
|
selected: "_selected_ny74i_28"
|
|
606
646
|
};
|
|
607
647
|
//#endregion
|
|
608
648
|
//#region src/components/Tag.tsx
|
|
609
|
-
function
|
|
649
|
+
function Pe(...e) {
|
|
610
650
|
return e.filter(Boolean).join(" ");
|
|
611
651
|
}
|
|
612
|
-
function
|
|
652
|
+
function Fe(e) {
|
|
613
653
|
if (e.variant === "count") {
|
|
614
654
|
let { variant: t, children: n, ...r } = e;
|
|
615
655
|
return /* @__PURE__ */ v("span", {
|
|
616
|
-
className:
|
|
656
|
+
className: Me[t],
|
|
617
657
|
...r,
|
|
618
658
|
children: n
|
|
619
659
|
});
|
|
620
660
|
}
|
|
621
|
-
let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = Me
|
|
622
|
-
className:
|
|
661
|
+
let { variant: t = "neutral", children: n, onClick: r, pressed: i, disabled: a, leading: o, onRemove: s, removeLabel: c, ...l } = e, u = !!r, d = !!s, f = t === "chip", p = u && i === !0, m = Pe(Me[t], f && Ne.chip, f && p && Ne.selected, f && a && Ne.disabled, (u || d) && Me.interactive, p && Me.pressed, a && Me.disabled, (o != null || d) && Me.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
|
|
662
|
+
className: Me.leading,
|
|
623
663
|
children: o
|
|
624
664
|
}), n] });
|
|
625
665
|
return d ? /* @__PURE__ */ y("span", {
|
|
626
|
-
className:
|
|
666
|
+
className: Pe(m, Me.removable),
|
|
627
667
|
...l,
|
|
628
668
|
children: [u ? /* @__PURE__ */ v("button", {
|
|
629
669
|
type: "button",
|
|
630
|
-
className: Me
|
|
670
|
+
className: Pe(Me.main, Me.slots),
|
|
631
671
|
"aria-pressed": i,
|
|
632
672
|
disabled: a,
|
|
633
673
|
onClick: r,
|
|
634
674
|
children: h
|
|
635
675
|
}) : h, /* @__PURE__ */ v("button", {
|
|
636
676
|
type: "button",
|
|
637
|
-
className:
|
|
677
|
+
className: Me.remove,
|
|
638
678
|
"aria-label": c,
|
|
639
679
|
disabled: a,
|
|
640
680
|
onClick: () => s(),
|
|
641
|
-
children: /* @__PURE__ */ v(
|
|
681
|
+
children: /* @__PURE__ */ v(je, {
|
|
642
682
|
size: 12,
|
|
643
683
|
"aria-hidden": "true"
|
|
644
684
|
})
|
|
645
685
|
})]
|
|
646
686
|
}) : u ? /* @__PURE__ */ v("button", {
|
|
647
687
|
type: "button",
|
|
648
|
-
className:
|
|
688
|
+
className: Pe(m, Me.button),
|
|
649
689
|
"aria-pressed": i,
|
|
650
690
|
disabled: a,
|
|
651
691
|
onClick: r,
|
|
@@ -657,20 +697,20 @@ function Ne(e) {
|
|
|
657
697
|
children: h
|
|
658
698
|
});
|
|
659
699
|
}
|
|
660
|
-
var
|
|
700
|
+
var Ie = {
|
|
661
701
|
group: "_group_kw1z2_1",
|
|
662
702
|
sm: "_sm_kw1z2_9",
|
|
663
703
|
chip: "_chip_kw1z2_13 _chip_ny74i_5",
|
|
664
704
|
base: "_base_kw1z2_28",
|
|
665
705
|
selected: "_selected_kw1z2_44 _selected_ny74i_28"
|
|
666
|
-
},
|
|
706
|
+
}, Le = {
|
|
667
707
|
group: "_group_1gqda_1",
|
|
668
708
|
groupLabel: "_groupLabel_1gqda_7"
|
|
669
|
-
},
|
|
709
|
+
}, Re = { label: "_label_1hzxz_1" };
|
|
670
710
|
//#endregion
|
|
671
711
|
//#region src/components/FieldLabel.tsx
|
|
672
|
-
function
|
|
673
|
-
let r = `${
|
|
712
|
+
function ze({ children: e, htmlFor: t, className: n }) {
|
|
713
|
+
let r = `${Re.label} ${n ?? ""}`.trim();
|
|
674
714
|
return t ? /* @__PURE__ */ v("label", {
|
|
675
715
|
className: r,
|
|
676
716
|
htmlFor: t,
|
|
@@ -682,36 +722,36 @@ function Le({ children: e, htmlFor: t, className: n }) {
|
|
|
682
722
|
}
|
|
683
723
|
//#endregion
|
|
684
724
|
//#region src/components/TagGroup.tsx
|
|
685
|
-
function
|
|
725
|
+
function Be({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
|
|
686
726
|
function s(e) {
|
|
687
727
|
n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
688
728
|
}
|
|
689
729
|
let c = /* @__PURE__ */ v("div", {
|
|
690
730
|
role: "group",
|
|
691
731
|
"aria-label": a ? void 0 : o["aria-label"],
|
|
692
|
-
className: `${
|
|
732
|
+
className: `${Ie.group} ${Ie[r]}`,
|
|
693
733
|
children: e.map((e) => {
|
|
694
734
|
let n = t.includes(e.value), r = i || e.disabled;
|
|
695
735
|
return /* @__PURE__ */ v("button", {
|
|
696
736
|
type: "button",
|
|
697
737
|
"aria-pressed": n,
|
|
698
738
|
disabled: r,
|
|
699
|
-
className: [
|
|
739
|
+
className: [Ie.chip, n && Ie.selected].filter(Boolean).join(" "),
|
|
700
740
|
onClick: () => !r && s(e.value),
|
|
701
741
|
children: e.label
|
|
702
742
|
}, e.value);
|
|
703
743
|
})
|
|
704
744
|
});
|
|
705
745
|
return a ? /* @__PURE__ */ y("div", {
|
|
706
|
-
className:
|
|
746
|
+
className: Le.group,
|
|
707
747
|
...o,
|
|
708
|
-
children: [/* @__PURE__ */ v(
|
|
709
|
-
className:
|
|
748
|
+
children: [/* @__PURE__ */ v(ze, {
|
|
749
|
+
className: Le.groupLabel,
|
|
710
750
|
children: a
|
|
711
751
|
}), c]
|
|
712
752
|
}) : c;
|
|
713
753
|
}
|
|
714
|
-
var
|
|
754
|
+
var Ve = {
|
|
715
755
|
toolbar: "_toolbar_1naq9_1",
|
|
716
756
|
searchWrap: "_searchWrap_1naq9_14",
|
|
717
757
|
searchIcon: "_searchIcon_1naq9_33",
|
|
@@ -721,7 +761,7 @@ var ze = {
|
|
|
721
761
|
};
|
|
722
762
|
//#endregion
|
|
723
763
|
//#region src/components/Toolbar.tsx
|
|
724
|
-
function
|
|
764
|
+
function He({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
|
|
725
765
|
let o = p(null);
|
|
726
766
|
return l(() => {
|
|
727
767
|
function e(e) {
|
|
@@ -729,36 +769,36 @@ function Be({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", s
|
|
|
729
769
|
}
|
|
730
770
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
731
771
|
}, [i]), /* @__PURE__ */ y("div", {
|
|
732
|
-
className:
|
|
772
|
+
className: Ve.toolbar,
|
|
733
773
|
children: [/* @__PURE__ */ y("div", {
|
|
734
|
-
className:
|
|
774
|
+
className: Ve.searchWrap,
|
|
735
775
|
children: [
|
|
736
776
|
/* @__PURE__ */ v("span", {
|
|
737
|
-
className:
|
|
738
|
-
children: /* @__PURE__ */ v(
|
|
777
|
+
className: Ve.searchIcon,
|
|
778
|
+
children: /* @__PURE__ */ v(De, {})
|
|
739
779
|
}),
|
|
740
780
|
/* @__PURE__ */ v("input", {
|
|
741
781
|
ref: o,
|
|
742
782
|
type: "text",
|
|
743
|
-
className:
|
|
783
|
+
className: Ve.search,
|
|
744
784
|
placeholder: n,
|
|
745
785
|
autoComplete: "off",
|
|
746
786
|
value: e,
|
|
747
787
|
onChange: (e) => t?.(e.target.value)
|
|
748
788
|
}),
|
|
749
789
|
r && /* @__PURE__ */ v("span", {
|
|
750
|
-
className:
|
|
790
|
+
className: Ve.searchShortcut,
|
|
751
791
|
"aria-hidden": "true",
|
|
752
792
|
children: r
|
|
753
793
|
})
|
|
754
794
|
]
|
|
755
795
|
}), a && /* @__PURE__ */ v("div", {
|
|
756
|
-
className:
|
|
796
|
+
className: Ve.controls,
|
|
757
797
|
children: a
|
|
758
798
|
})]
|
|
759
799
|
});
|
|
760
800
|
}
|
|
761
|
-
var
|
|
801
|
+
var Ue = {
|
|
762
802
|
anchor: "_anchor_1r8q2_3",
|
|
763
803
|
sentinel: "_sentinel_1r8q2_8",
|
|
764
804
|
header: "_header_1r8q2_17",
|
|
@@ -766,8 +806,8 @@ var Ve = {
|
|
|
766
806
|
card: "_card_1r8q2_49",
|
|
767
807
|
left: "_left_1r8q2_104",
|
|
768
808
|
right: "_right_1r8q2_105"
|
|
769
|
-
},
|
|
770
|
-
function
|
|
809
|
+
}, We = 4;
|
|
810
|
+
function Ge(e) {
|
|
771
811
|
let t = e.parentElement;
|
|
772
812
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
773
813
|
let { overflowY: e } = getComputedStyle(t);
|
|
@@ -776,7 +816,7 @@ function Ue(e) {
|
|
|
776
816
|
}
|
|
777
817
|
return null;
|
|
778
818
|
}
|
|
779
|
-
function
|
|
819
|
+
function Ke({ left: e, right: t, children: n, scrollRoot: r, threshold: i = We, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
|
|
780
820
|
let u = p(null), [d, f] = m("top"), [h, g] = m(!1), b = p(o);
|
|
781
821
|
l(() => {
|
|
782
822
|
b.current = o;
|
|
@@ -788,7 +828,7 @@ function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He,
|
|
|
788
828
|
let e = u.current;
|
|
789
829
|
if (!e) return;
|
|
790
830
|
let t, n, i = !0, a = 0, o = () => {
|
|
791
|
-
let o = r === void 0 ?
|
|
831
|
+
let o = r === void 0 ? Ge(e) : r;
|
|
792
832
|
t && o === n || (t?.disconnect(), n = o, t = new IntersectionObserver((e) => {
|
|
793
833
|
let t = e[e.length - 1];
|
|
794
834
|
f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => g(!0)));
|
|
@@ -799,20 +839,20 @@ function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He,
|
|
|
799
839
|
};
|
|
800
840
|
}, [r, i]);
|
|
801
841
|
let S = [
|
|
802
|
-
|
|
803
|
-
h ?
|
|
842
|
+
Ue.card,
|
|
843
|
+
h ? Ue.animated : "",
|
|
804
844
|
s
|
|
805
845
|
].filter(Boolean).join(" ");
|
|
806
846
|
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
807
|
-
className:
|
|
847
|
+
className: Ue.anchor,
|
|
808
848
|
"aria-hidden": "true",
|
|
809
849
|
children: /* @__PURE__ */ v("div", {
|
|
810
850
|
ref: u,
|
|
811
|
-
className:
|
|
851
|
+
className: Ue.sentinel,
|
|
812
852
|
style: { top: i }
|
|
813
853
|
})
|
|
814
854
|
}), /* @__PURE__ */ v("header", {
|
|
815
|
-
className: [
|
|
855
|
+
className: [Ue.header, h ? Ue.animated : ""].filter(Boolean).join(" "),
|
|
816
856
|
"data-state": d,
|
|
817
857
|
"data-float-mobile": a ? "" : void 0,
|
|
818
858
|
"data-testid": c,
|
|
@@ -821,16 +861,16 @@ function We({ left: e, right: t, children: n, scrollRoot: r, threshold: i = He,
|
|
|
821
861
|
"data-state": d,
|
|
822
862
|
"data-float-mobile": a ? "" : void 0,
|
|
823
863
|
children: n ?? /* @__PURE__ */ y(_, { children: [e && /* @__PURE__ */ v("div", {
|
|
824
|
-
className:
|
|
864
|
+
className: Ue.left,
|
|
825
865
|
children: e
|
|
826
866
|
}), t && /* @__PURE__ */ v("div", {
|
|
827
|
-
className:
|
|
867
|
+
className: Ue.right,
|
|
828
868
|
children: t
|
|
829
869
|
})] })
|
|
830
870
|
})
|
|
831
871
|
})] });
|
|
832
872
|
}
|
|
833
|
-
var
|
|
873
|
+
var qe = {
|
|
834
874
|
checkbox: "_checkbox_553ny_1",
|
|
835
875
|
control: "_control_553ny_8",
|
|
836
876
|
labelText: "_labelText_553ny_17",
|
|
@@ -841,15 +881,15 @@ var Ge = {
|
|
|
841
881
|
};
|
|
842
882
|
//#endregion
|
|
843
883
|
//#region src/components/Checkbox.tsx
|
|
844
|
-
function
|
|
884
|
+
function Je({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
|
|
845
885
|
return /* @__PURE__ */ y("label", {
|
|
846
|
-
className: `${
|
|
886
|
+
className: `${qe.checkbox} ${s ?? ""}`,
|
|
847
887
|
children: [/* @__PURE__ */ y("span", {
|
|
848
|
-
className:
|
|
888
|
+
className: qe.control,
|
|
849
889
|
children: [/* @__PURE__ */ v("input", {
|
|
850
890
|
ref: c,
|
|
851
891
|
type: "checkbox",
|
|
852
|
-
className:
|
|
892
|
+
className: qe.input,
|
|
853
893
|
checked: e,
|
|
854
894
|
onChange: t,
|
|
855
895
|
onBlur: n,
|
|
@@ -857,46 +897,46 @@ function Ke({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel:
|
|
|
857
897
|
"aria-label": a,
|
|
858
898
|
disabled: o
|
|
859
899
|
}), /* @__PURE__ */ v("span", {
|
|
860
|
-
className:
|
|
900
|
+
className: qe.box,
|
|
861
901
|
children: /* @__PURE__ */ v("svg", {
|
|
862
|
-
className:
|
|
902
|
+
className: qe.icon,
|
|
863
903
|
viewBox: "0 0 17 18",
|
|
864
904
|
"aria-hidden": "true",
|
|
865
905
|
children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
|
|
866
906
|
})
|
|
867
907
|
})]
|
|
868
908
|
}), i && /* @__PURE__ */ v("span", {
|
|
869
|
-
className:
|
|
909
|
+
className: qe.labelText,
|
|
870
910
|
children: i
|
|
871
911
|
})]
|
|
872
912
|
});
|
|
873
913
|
}
|
|
874
|
-
function
|
|
914
|
+
function Ye({ checked: e, disabled: t }) {
|
|
875
915
|
return /* @__PURE__ */ v("span", {
|
|
876
|
-
className: `${
|
|
916
|
+
className: `${qe.box} ${qe.indicator}`,
|
|
877
917
|
"data-checked": e,
|
|
878
918
|
"data-disabled": t || void 0,
|
|
879
919
|
"aria-hidden": "true",
|
|
880
920
|
children: /* @__PURE__ */ v("svg", {
|
|
881
|
-
className:
|
|
921
|
+
className: qe.icon,
|
|
882
922
|
viewBox: "0 0 17 18",
|
|
883
923
|
"aria-hidden": "true",
|
|
884
924
|
children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
|
|
885
925
|
})
|
|
886
926
|
});
|
|
887
927
|
}
|
|
888
|
-
function
|
|
928
|
+
function Xe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
|
|
889
929
|
function o(e) {
|
|
890
930
|
r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
891
931
|
}
|
|
892
932
|
return /* @__PURE__ */ y("div", {
|
|
893
933
|
role: "group",
|
|
894
934
|
"aria-label": e ? void 0 : a["aria-label"],
|
|
895
|
-
className:
|
|
896
|
-
children: [e && /* @__PURE__ */ v(
|
|
897
|
-
className:
|
|
935
|
+
className: Le.group,
|
|
936
|
+
children: [e && /* @__PURE__ */ v(ze, {
|
|
937
|
+
className: Le.groupLabel,
|
|
898
938
|
children: e
|
|
899
|
-
}), t.map((e) => /* @__PURE__ */ v(
|
|
939
|
+
}), t.map((e) => /* @__PURE__ */ v(Je, {
|
|
900
940
|
checked: n.includes(e.value),
|
|
901
941
|
onChange: () => o(e.value),
|
|
902
942
|
label: e.label,
|
|
@@ -904,7 +944,7 @@ function Je({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
|
|
|
904
944
|
}, e.value))]
|
|
905
945
|
});
|
|
906
946
|
}
|
|
907
|
-
var
|
|
947
|
+
var Ze = {
|
|
908
948
|
radio: "_radio_2lj6y_1",
|
|
909
949
|
control: "_control_2lj6y_8",
|
|
910
950
|
labelText: "_labelText_2lj6y_17",
|
|
@@ -914,15 +954,15 @@ var Ye = {
|
|
|
914
954
|
};
|
|
915
955
|
//#endregion
|
|
916
956
|
//#region src/components/RadioButton.tsx
|
|
917
|
-
function
|
|
957
|
+
function Qe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
|
|
918
958
|
return /* @__PURE__ */ y("label", {
|
|
919
|
-
className: `${
|
|
959
|
+
className: `${Ze.radio} ${c ?? ""}`,
|
|
920
960
|
children: [/* @__PURE__ */ y("span", {
|
|
921
|
-
className:
|
|
961
|
+
className: Ze.control,
|
|
922
962
|
children: [/* @__PURE__ */ v("input", {
|
|
923
963
|
ref: l,
|
|
924
964
|
type: "radio",
|
|
925
|
-
className:
|
|
965
|
+
className: Ze.input,
|
|
926
966
|
checked: e,
|
|
927
967
|
onChange: t,
|
|
928
968
|
onBlur: n,
|
|
@@ -931,24 +971,24 @@ function Xe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, a
|
|
|
931
971
|
"aria-label": o,
|
|
932
972
|
disabled: s
|
|
933
973
|
}), /* @__PURE__ */ v("span", {
|
|
934
|
-
className:
|
|
935
|
-
children: /* @__PURE__ */ v("span", { className:
|
|
974
|
+
className: Ze.circle,
|
|
975
|
+
children: /* @__PURE__ */ v("span", { className: Ze.dot })
|
|
936
976
|
})]
|
|
937
977
|
}), a && /* @__PURE__ */ v("span", {
|
|
938
|
-
className:
|
|
978
|
+
className: Ze.labelText,
|
|
939
979
|
children: a
|
|
940
980
|
})]
|
|
941
981
|
});
|
|
942
982
|
}
|
|
943
|
-
function
|
|
983
|
+
function $e({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
|
|
944
984
|
return /* @__PURE__ */ y("div", {
|
|
945
985
|
role: "radiogroup",
|
|
946
986
|
"aria-label": e ? void 0 : o["aria-label"],
|
|
947
|
-
className:
|
|
948
|
-
children: [e && /* @__PURE__ */ v(
|
|
949
|
-
className:
|
|
987
|
+
className: Le.group,
|
|
988
|
+
children: [e && /* @__PURE__ */ v(ze, {
|
|
989
|
+
className: Le.groupLabel,
|
|
950
990
|
children: e
|
|
951
|
-
}), n.map((e) => /* @__PURE__ */ v(
|
|
991
|
+
}), n.map((e) => /* @__PURE__ */ v(Qe, {
|
|
952
992
|
name: t,
|
|
953
993
|
value: e.value,
|
|
954
994
|
checked: r === e.value,
|
|
@@ -958,7 +998,7 @@ function Ze({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
|
|
|
958
998
|
}, e.value))]
|
|
959
999
|
});
|
|
960
1000
|
}
|
|
961
|
-
var
|
|
1001
|
+
var et = {
|
|
962
1002
|
switch: "_switch_102e5_1",
|
|
963
1003
|
input: "_input_102e5_7",
|
|
964
1004
|
control: "_control_102e5_10",
|
|
@@ -970,55 +1010,56 @@ var Qe = {
|
|
|
970
1010
|
};
|
|
971
1011
|
//#endregion
|
|
972
1012
|
//#region src/components/Switch.tsx
|
|
973
|
-
function
|
|
1013
|
+
function tt({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
|
|
974
1014
|
return /* @__PURE__ */ y("label", {
|
|
975
|
-
className: `${
|
|
1015
|
+
className: `${et.switch} ${o ?? ""}`,
|
|
976
1016
|
children: [/* @__PURE__ */ y("span", {
|
|
977
|
-
className: `${
|
|
1017
|
+
className: `${et.control} ${et[n]}`,
|
|
978
1018
|
children: [/* @__PURE__ */ v("input", {
|
|
979
1019
|
type: "checkbox",
|
|
980
1020
|
role: "switch",
|
|
981
|
-
className:
|
|
1021
|
+
className: et.input,
|
|
982
1022
|
checked: e,
|
|
983
1023
|
onChange: t,
|
|
984
1024
|
"aria-label": i,
|
|
985
1025
|
disabled: a
|
|
986
1026
|
}), /* @__PURE__ */ v("span", {
|
|
987
|
-
className:
|
|
988
|
-
children: /* @__PURE__ */ v("span", { className:
|
|
1027
|
+
className: et.track,
|
|
1028
|
+
children: /* @__PURE__ */ v("span", { className: et.thumb })
|
|
989
1029
|
})]
|
|
990
1030
|
}), r && /* @__PURE__ */ v("span", {
|
|
991
|
-
className:
|
|
1031
|
+
className: et.labelText,
|
|
992
1032
|
children: r
|
|
993
1033
|
})]
|
|
994
1034
|
});
|
|
995
1035
|
}
|
|
996
1036
|
var G = {
|
|
997
|
-
field: "
|
|
998
|
-
inputWrap: "
|
|
999
|
-
input: "
|
|
1000
|
-
toolbar: "
|
|
1001
|
-
errorWrap: "
|
|
1002
|
-
sm: "
|
|
1003
|
-
base: "
|
|
1004
|
-
icon: "
|
|
1005
|
-
helperText: "
|
|
1006
|
-
errorText: "
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1037
|
+
field: "_field_1nzmb_1",
|
|
1038
|
+
inputWrap: "_inputWrap_1nzmb_6",
|
|
1039
|
+
input: "_input_1nzmb_6",
|
|
1040
|
+
toolbar: "_toolbar_1nzmb_14",
|
|
1041
|
+
errorWrap: "_errorWrap_1nzmb_24",
|
|
1042
|
+
sm: "_sm_1nzmb_71",
|
|
1043
|
+
base: "_base_1nzmb_79",
|
|
1044
|
+
icon: "_icon_1nzmb_87",
|
|
1045
|
+
helperText: "_helperText_1nzmb_125",
|
|
1046
|
+
errorText: "_errorText_1nzmb_130",
|
|
1047
|
+
errorIcon: "_errorIcon_1nzmb_138",
|
|
1048
|
+
trailing: "_trailing_1nzmb_145",
|
|
1049
|
+
pickerChevron: "_pickerChevron_1nzmb_176",
|
|
1050
|
+
pickerChevronSm: "_pickerChevronSm_1nzmb_186",
|
|
1051
|
+
pickerInput: "_pickerInput_1nzmb_193",
|
|
1052
|
+
shortcut: "_shortcut_1nzmb_204",
|
|
1053
|
+
kbd: "_kbd_1nzmb_212"
|
|
1013
1054
|
};
|
|
1014
1055
|
//#endregion
|
|
1015
1056
|
//#region src/components/TextField.tsx
|
|
1016
|
-
function
|
|
1057
|
+
function nt({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
|
|
1017
1058
|
let f = u(), m = s ?? f, h = p(null);
|
|
1018
1059
|
return D(o, () => h.current?.focus()), /* @__PURE__ */ y("div", {
|
|
1019
1060
|
className: [G.field, c].filter(Boolean).join(" "),
|
|
1020
1061
|
children: [
|
|
1021
|
-
e && /* @__PURE__ */ v(
|
|
1062
|
+
e && /* @__PURE__ */ v(ze, {
|
|
1022
1063
|
htmlFor: m,
|
|
1023
1064
|
children: e
|
|
1024
1065
|
}),
|
|
@@ -1047,9 +1088,35 @@ function et({ label: e, helperText: t, error: n, size: r = "base", variant: i =
|
|
|
1047
1088
|
})
|
|
1048
1089
|
]
|
|
1049
1090
|
}),
|
|
1050
|
-
n ? /* @__PURE__ */
|
|
1091
|
+
n ? /* @__PURE__ */ y("span", {
|
|
1051
1092
|
className: G.errorText,
|
|
1052
|
-
children:
|
|
1093
|
+
children: [/* @__PURE__ */ y("svg", {
|
|
1094
|
+
className: G.errorIcon,
|
|
1095
|
+
viewBox: "0 0 16 16",
|
|
1096
|
+
fill: "none",
|
|
1097
|
+
"aria-hidden": "true",
|
|
1098
|
+
children: [
|
|
1099
|
+
/* @__PURE__ */ v("circle", {
|
|
1100
|
+
cx: "8",
|
|
1101
|
+
cy: "8",
|
|
1102
|
+
r: "6.5",
|
|
1103
|
+
stroke: "currentColor",
|
|
1104
|
+
strokeWidth: "1.5"
|
|
1105
|
+
}),
|
|
1106
|
+
/* @__PURE__ */ v("path", {
|
|
1107
|
+
d: "M8 4.5v4",
|
|
1108
|
+
stroke: "currentColor",
|
|
1109
|
+
strokeWidth: "1.5",
|
|
1110
|
+
strokeLinecap: "round"
|
|
1111
|
+
}),
|
|
1112
|
+
/* @__PURE__ */ v("circle", {
|
|
1113
|
+
cx: "8",
|
|
1114
|
+
cy: "11",
|
|
1115
|
+
r: "0.9",
|
|
1116
|
+
fill: "currentColor"
|
|
1117
|
+
})
|
|
1118
|
+
]
|
|
1119
|
+
}), n]
|
|
1053
1120
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1054
1121
|
className: G.helperText,
|
|
1055
1122
|
children: t
|
|
@@ -1077,11 +1144,11 @@ var K = {
|
|
|
1077
1144
|
};
|
|
1078
1145
|
//#endregion
|
|
1079
1146
|
//#region src/components/TextArea.tsx
|
|
1080
|
-
function
|
|
1147
|
+
function rt(e, t) {
|
|
1081
1148
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
1082
1149
|
}
|
|
1083
|
-
function
|
|
1084
|
-
let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M,
|
|
1150
|
+
function it({ label: e, helperText: t, error: n, size: r = "base", resize: i = "vertical", autoResize: a = !1, maxRows: o = 8, showCount: c = !1, id: l, className: f, ref: h, rows: g = 3, value: _, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: T, "aria-describedby": E, ...D }) {
|
|
1151
|
+
let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M, ee] = m(() => String(b ?? "").length), N = j ? String(_).length : M, P = s(() => {
|
|
1085
1152
|
let e = A.current;
|
|
1086
1153
|
if (!e || !a) return;
|
|
1087
1154
|
let t = getComputedStyle(e), n = parseFloat(t.fontSize) || 14, r = parseFloat(t.lineHeight) || n * 1.4, i = (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0), s = r * o + i;
|
|
@@ -1090,9 +1157,9 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1090
1157
|
e.style.height = `${c}px`, e.style.overflowY = e.scrollHeight > s ? "auto" : "hidden";
|
|
1091
1158
|
}, [a, o]);
|
|
1092
1159
|
d(() => {
|
|
1093
|
-
|
|
1160
|
+
P();
|
|
1094
1161
|
}, [
|
|
1095
|
-
|
|
1162
|
+
P,
|
|
1096
1163
|
_,
|
|
1097
1164
|
g,
|
|
1098
1165
|
r
|
|
@@ -1100,44 +1167,44 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1100
1167
|
let e = A.current;
|
|
1101
1168
|
if (!a || !e || typeof ResizeObserver > "u") return;
|
|
1102
1169
|
let t = e.clientWidth, n = new ResizeObserver(() => {
|
|
1103
|
-
e.clientWidth !== t && (t = e.clientWidth,
|
|
1170
|
+
e.clientWidth !== t && (t = e.clientWidth, P());
|
|
1104
1171
|
});
|
|
1105
1172
|
return n.observe(e), () => n.disconnect();
|
|
1106
|
-
}, [a,
|
|
1173
|
+
}, [a, P]), d(() => {
|
|
1107
1174
|
let e = A.current;
|
|
1108
1175
|
!a && e && (e.style.height = "", e.style.overflowY = "");
|
|
1109
1176
|
}, [a]);
|
|
1110
|
-
let
|
|
1111
|
-
j ||
|
|
1112
|
-
},
|
|
1113
|
-
j || (
|
|
1114
|
-
},
|
|
1177
|
+
let F = (e) => {
|
|
1178
|
+
j || ee(e.target.value.length), w?.(e);
|
|
1179
|
+
}, te = (e) => {
|
|
1180
|
+
j || (ee(e.currentTarget.value.length), P()), T?.(e);
|
|
1181
|
+
}, ne = `${k}-helper`, I = `${k}-error`, L = `${k}-count`, R = [
|
|
1115
1182
|
E,
|
|
1116
|
-
n ?
|
|
1117
|
-
c ?
|
|
1118
|
-
].filter(Boolean).join(" ") || void 0,
|
|
1183
|
+
n ? I : t ? ne : null,
|
|
1184
|
+
c ? L : null
|
|
1185
|
+
].filter(Boolean).join(" ") || void 0, z = x ? N / x : 0, re = z >= 1 ? K.countLimit : z >= .9 ? K.countNear : "", ie = [
|
|
1119
1186
|
K.wrap,
|
|
1120
1187
|
K[r],
|
|
1121
1188
|
n ? K.errorWrap : "",
|
|
1122
1189
|
S ? K.disabled : "",
|
|
1123
1190
|
C ? K.readOnly : ""
|
|
1124
|
-
].filter(Boolean).join(" "),
|
|
1191
|
+
].filter(Boolean).join(" "), ae = a ? "none" : i;
|
|
1125
1192
|
return /* @__PURE__ */ y("div", {
|
|
1126
1193
|
className: [K.field, f].filter(Boolean).join(" "),
|
|
1127
1194
|
children: [
|
|
1128
|
-
e && /* @__PURE__ */ v(
|
|
1195
|
+
e && /* @__PURE__ */ v(ze, {
|
|
1129
1196
|
htmlFor: k,
|
|
1130
1197
|
children: e
|
|
1131
1198
|
}),
|
|
1132
1199
|
/* @__PURE__ */ v("div", {
|
|
1133
|
-
className:
|
|
1200
|
+
className: ie,
|
|
1134
1201
|
children: /* @__PURE__ */ v("textarea", {
|
|
1135
1202
|
...D,
|
|
1136
1203
|
ref: (e) => {
|
|
1137
|
-
A.current = e,
|
|
1204
|
+
A.current = e, rt(h, e);
|
|
1138
1205
|
},
|
|
1139
1206
|
id: k,
|
|
1140
|
-
className: `${K.textarea} ${K[`resize-${
|
|
1207
|
+
className: `${K.textarea} ${K[`resize-${ae}`]}`,
|
|
1141
1208
|
rows: g,
|
|
1142
1209
|
value: _,
|
|
1143
1210
|
defaultValue: b,
|
|
@@ -1145,25 +1212,25 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1145
1212
|
disabled: S,
|
|
1146
1213
|
readOnly: C,
|
|
1147
1214
|
"aria-invalid": n ? !0 : D["aria-invalid"],
|
|
1148
|
-
"aria-describedby":
|
|
1149
|
-
onChange:
|
|
1150
|
-
onInput:
|
|
1215
|
+
"aria-describedby": R,
|
|
1216
|
+
onChange: F,
|
|
1217
|
+
onInput: te
|
|
1151
1218
|
})
|
|
1152
1219
|
}),
|
|
1153
1220
|
(n || t || c) && /* @__PURE__ */ y("div", {
|
|
1154
1221
|
className: K.footer,
|
|
1155
1222
|
children: [n ? /* @__PURE__ */ v("span", {
|
|
1156
|
-
id:
|
|
1223
|
+
id: I,
|
|
1157
1224
|
className: K.errorText,
|
|
1158
1225
|
children: n
|
|
1159
1226
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1160
|
-
id:
|
|
1227
|
+
id: ne,
|
|
1161
1228
|
className: K.helperText,
|
|
1162
1229
|
children: t
|
|
1163
1230
|
}) : null, c && /* @__PURE__ */ v("span", {
|
|
1164
|
-
id:
|
|
1165
|
-
className: `${K.count} ${
|
|
1166
|
-
children: x ? `${
|
|
1231
|
+
id: L,
|
|
1232
|
+
className: `${K.count} ${re}`,
|
|
1233
|
+
children: x ? `${N} / ${x}` : N
|
|
1167
1234
|
})]
|
|
1168
1235
|
})
|
|
1169
1236
|
]
|
|
@@ -1171,12 +1238,12 @@ function nt({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1171
1238
|
}
|
|
1172
1239
|
//#endregion
|
|
1173
1240
|
//#region src/components/PasswordField.tsx
|
|
1174
|
-
function
|
|
1241
|
+
function at({ label: e, helperText: t, error: n, size: r = "base", showLabel: i = "Show password", hideLabel: a = "Hide password", defaultVisible: o = !1, id: s, className: c, ref: l, disabled: d, ...f }) {
|
|
1175
1242
|
let p = u(), h = s ?? p, [g, _] = m(o);
|
|
1176
1243
|
return /* @__PURE__ */ y("div", {
|
|
1177
1244
|
className: [G.field, c].filter(Boolean).join(" "),
|
|
1178
1245
|
children: [
|
|
1179
|
-
e && /* @__PURE__ */ v(
|
|
1246
|
+
e && /* @__PURE__ */ v(ze, {
|
|
1180
1247
|
htmlFor: h,
|
|
1181
1248
|
children: e
|
|
1182
1249
|
}),
|
|
@@ -1213,12 +1280,12 @@ function rt({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
|
|
|
1213
1280
|
}
|
|
1214
1281
|
//#endregion
|
|
1215
1282
|
//#region src/components/DateField.tsx
|
|
1216
|
-
function
|
|
1283
|
+
function ot({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
|
|
1217
1284
|
let f = u(), p = a ?? f;
|
|
1218
1285
|
return /* @__PURE__ */ y("div", {
|
|
1219
1286
|
className: [G.field, o].filter(Boolean).join(" "),
|
|
1220
1287
|
children: [
|
|
1221
|
-
e && /* @__PURE__ */ v(
|
|
1288
|
+
e && /* @__PURE__ */ v(ze, {
|
|
1222
1289
|
htmlFor: p,
|
|
1223
1290
|
children: e
|
|
1224
1291
|
}),
|
|
@@ -1252,44 +1319,44 @@ function it({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
|
|
|
1252
1319
|
}
|
|
1253
1320
|
//#endregion
|
|
1254
1321
|
//#region src/utils/date.ts
|
|
1255
|
-
function
|
|
1322
|
+
function st(e) {
|
|
1256
1323
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
1257
1324
|
}
|
|
1258
|
-
function
|
|
1325
|
+
function ct(e, t) {
|
|
1259
1326
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
1260
1327
|
}
|
|
1261
|
-
function
|
|
1328
|
+
function lt(e, t) {
|
|
1262
1329
|
return new Date(e, t + 1, 0).getDate();
|
|
1263
1330
|
}
|
|
1264
|
-
function
|
|
1265
|
-
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(),
|
|
1331
|
+
function ut(e, t) {
|
|
1332
|
+
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), lt(n.getFullYear(), n.getMonth()));
|
|
1266
1333
|
return new Date(n.getFullYear(), n.getMonth(), r);
|
|
1267
1334
|
}
|
|
1268
|
-
function
|
|
1335
|
+
function dt(e, t) {
|
|
1269
1336
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1270
1337
|
}
|
|
1271
|
-
function
|
|
1338
|
+
function ft(e, t) {
|
|
1272
1339
|
return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
|
|
1273
1340
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return !!(t &&
|
|
1341
|
+
function pt(e, t, n) {
|
|
1342
|
+
return !!(t && ft(e, t) < 0 || n && ft(e, n) > 0);
|
|
1276
1343
|
}
|
|
1277
|
-
function
|
|
1278
|
-
return t &&
|
|
1344
|
+
function mt(e, t, n) {
|
|
1345
|
+
return t && ft(e, t) < 0 ? st(t) : n && ft(e, n) > 0 ? st(n) : st(e);
|
|
1279
1346
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return
|
|
1347
|
+
function ht(e, t) {
|
|
1348
|
+
return ct(e, -((e.getDay() - t + 7) % 7));
|
|
1282
1349
|
}
|
|
1283
|
-
function
|
|
1284
|
-
return
|
|
1350
|
+
function gt(e, t) {
|
|
1351
|
+
return ct(ht(e, t), 6);
|
|
1285
1352
|
}
|
|
1286
|
-
var
|
|
1287
|
-
function
|
|
1288
|
-
let r =
|
|
1289
|
-
for (let e = 0; e <
|
|
1353
|
+
var _t = 6;
|
|
1354
|
+
function vt(e, t, n) {
|
|
1355
|
+
let r = ht(new Date(e, t, 1), n), i = [];
|
|
1356
|
+
for (let e = 0; e < _t; e++) {
|
|
1290
1357
|
let n = [];
|
|
1291
1358
|
for (let i = 0; i < 7; i++) {
|
|
1292
|
-
let a =
|
|
1359
|
+
let a = ct(r, e * 7 + i);
|
|
1293
1360
|
n.push({
|
|
1294
1361
|
date: a,
|
|
1295
1362
|
inMonth: a.getMonth() === t
|
|
@@ -1316,28 +1383,28 @@ var q = {
|
|
|
1316
1383
|
rangeStart: "_rangeStart_1mr3c_92",
|
|
1317
1384
|
rangeEnd: "_rangeEnd_1mr3c_96",
|
|
1318
1385
|
hiddenDay: "_hiddenDay_1mr3c_100"
|
|
1319
|
-
},
|
|
1320
|
-
function
|
|
1386
|
+
}, yt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
|
|
1387
|
+
function bt(e, t) {
|
|
1321
1388
|
let n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
1322
1389
|
return new Date(e.getFullYear(), e.getMonth(), Math.min(t, n));
|
|
1323
1390
|
}
|
|
1324
|
-
function
|
|
1391
|
+
function xt(e, t) {
|
|
1325
1392
|
return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
|
|
1326
1393
|
}
|
|
1327
|
-
function
|
|
1328
|
-
let [S, C] = m(() => _ ?
|
|
1329
|
-
w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(
|
|
1330
|
-
let D = e ?
|
|
1331
|
-
D !== O && (A(D), e && C(
|
|
1332
|
-
let j = p(null), M = p(!!o),
|
|
1394
|
+
function St({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", weekStartsOn: a = 0, autoFocus: o, previousMonthLabel: s = "Previous month", nextMonthLabel: c = "Next month", className: d, range: h, onDayHover: g, month: _, onMonthChange: b, hideNavigation: x }) {
|
|
1395
|
+
let [S, C] = m(() => _ ? bt(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : mt(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
|
|
1396
|
+
w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(bt(_, S.getDate())));
|
|
1397
|
+
let D = e ? yt(e) : null, [O, A] = m(D);
|
|
1398
|
+
D !== O && (A(D), e && C(mt(e, n, r)));
|
|
1399
|
+
let j = p(null), M = p(!!o), ee = u();
|
|
1333
1400
|
l(() => {
|
|
1334
|
-
M.current && (M.current = !1, j.current?.querySelector(`[data-date="${
|
|
1401
|
+
M.current && (M.current = !1, j.current?.querySelector(`[data-date="${yt(S)}"]`)?.focus());
|
|
1335
1402
|
}, [S]);
|
|
1336
|
-
let
|
|
1403
|
+
let N = S.getFullYear(), P = S.getMonth(), F = f(() => vt(N, P, a), [
|
|
1404
|
+
N,
|
|
1337
1405
|
P,
|
|
1338
|
-
F,
|
|
1339
1406
|
a
|
|
1340
|
-
]),
|
|
1407
|
+
]), te = st(/* @__PURE__ */ new Date()), ne = !!(h?.start && h.end && ft(h.start, h.end) > 0), I = ne ? h.end : h?.start ?? null, L = ne ? h.start : h?.end ?? null, R = !!(I && L && ft(I, L) !== 0), z = f(() => ({
|
|
1341
1408
|
title: new Intl.DateTimeFormat(i, {
|
|
1342
1409
|
month: "long",
|
|
1343
1410
|
year: "numeric"
|
|
@@ -1345,51 +1412,51 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
|
|
|
1345
1412
|
short: new Intl.DateTimeFormat(i, { weekday: "short" }),
|
|
1346
1413
|
long: new Intl.DateTimeFormat(i, { weekday: "long" }),
|
|
1347
1414
|
full: new Intl.DateTimeFormat(i, { dateStyle: "full" })
|
|
1348
|
-
}), [i]),
|
|
1349
|
-
short:
|
|
1350
|
-
long:
|
|
1351
|
-
})),
|
|
1352
|
-
function
|
|
1415
|
+
}), [i]), re = h ? F.filter((e) => e.some((e) => e.inMonth)) : F, ie = F[0].map(({ date: e }) => ({
|
|
1416
|
+
short: xt(z.short.format(e), i).slice(0, 2),
|
|
1417
|
+
long: z.long.format(e)
|
|
1418
|
+
})), ae = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < st(n), oe = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > st(r), se = ae(S), B = oe(S);
|
|
1419
|
+
function V(e) {
|
|
1353
1420
|
b && (e.getFullYear() !== S.getFullYear() || e.getMonth() !== S.getMonth()) && b(e), C(e);
|
|
1354
1421
|
}
|
|
1355
|
-
function
|
|
1356
|
-
M.current = !0,
|
|
1422
|
+
function ce(e) {
|
|
1423
|
+
M.current = !0, V(mt(e, n, r));
|
|
1357
1424
|
}
|
|
1358
|
-
function
|
|
1359
|
-
let t =
|
|
1360
|
-
M.current = e < 0 ?
|
|
1425
|
+
function H(e) {
|
|
1426
|
+
let t = mt(ut(S, e), n, r);
|
|
1427
|
+
M.current = e < 0 ? ae(t) : oe(t), V(t);
|
|
1361
1428
|
}
|
|
1362
|
-
function
|
|
1429
|
+
function le(e) {
|
|
1363
1430
|
let t = null;
|
|
1364
1431
|
switch (e.key) {
|
|
1365
1432
|
case "ArrowLeft":
|
|
1366
|
-
t =
|
|
1433
|
+
t = ct(S, -1);
|
|
1367
1434
|
break;
|
|
1368
1435
|
case "ArrowRight":
|
|
1369
|
-
t =
|
|
1436
|
+
t = ct(S, 1);
|
|
1370
1437
|
break;
|
|
1371
1438
|
case "ArrowUp":
|
|
1372
|
-
t =
|
|
1439
|
+
t = ct(S, -7);
|
|
1373
1440
|
break;
|
|
1374
1441
|
case "ArrowDown":
|
|
1375
|
-
t =
|
|
1442
|
+
t = ct(S, 7);
|
|
1376
1443
|
break;
|
|
1377
1444
|
case "PageUp":
|
|
1378
|
-
t =
|
|
1445
|
+
t = ut(S, -1);
|
|
1379
1446
|
break;
|
|
1380
1447
|
case "PageDown":
|
|
1381
|
-
t =
|
|
1448
|
+
t = ut(S, 1);
|
|
1382
1449
|
break;
|
|
1383
1450
|
case "Home":
|
|
1384
|
-
t =
|
|
1451
|
+
t = ht(S, a);
|
|
1385
1452
|
break;
|
|
1386
|
-
case "End": t =
|
|
1453
|
+
case "End": t = gt(S, a);
|
|
1387
1454
|
}
|
|
1388
|
-
t && (e.preventDefault(),
|
|
1455
|
+
t && (e.preventDefault(), ce(t));
|
|
1389
1456
|
}
|
|
1390
|
-
function
|
|
1391
|
-
let n =
|
|
1392
|
-
|
|
1457
|
+
function ue(e) {
|
|
1458
|
+
let n = st(e);
|
|
1459
|
+
V(n), t(n);
|
|
1393
1460
|
}
|
|
1394
1461
|
return /* @__PURE__ */ y("div", {
|
|
1395
1462
|
className: [q.calendar, d].filter(Boolean).join(" "),
|
|
@@ -1402,14 +1469,14 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
|
|
|
1402
1469
|
className: q.navButton,
|
|
1403
1470
|
leadingIcon: /* @__PURE__ */ v(pe, {}),
|
|
1404
1471
|
"aria-label": s,
|
|
1405
|
-
disabled:
|
|
1406
|
-
onClick: () =>
|
|
1472
|
+
disabled: se,
|
|
1473
|
+
onClick: () => H(-1)
|
|
1407
1474
|
}),
|
|
1408
1475
|
/* @__PURE__ */ v("div", {
|
|
1409
|
-
id:
|
|
1476
|
+
id: ee,
|
|
1410
1477
|
className: q.title,
|
|
1411
1478
|
"aria-live": "polite",
|
|
1412
|
-
children:
|
|
1479
|
+
children: xt(z.title.format(S), i)
|
|
1413
1480
|
}),
|
|
1414
1481
|
x === "next" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
|
|
1415
1482
|
variant: "tertiary",
|
|
@@ -1417,65 +1484,65 @@ function bt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
|
|
|
1417
1484
|
className: q.navButton,
|
|
1418
1485
|
leadingIcon: /* @__PURE__ */ v(he, {}),
|
|
1419
1486
|
"aria-label": c,
|
|
1420
|
-
disabled:
|
|
1421
|
-
onClick: () =>
|
|
1487
|
+
disabled: B,
|
|
1488
|
+
onClick: () => H(1)
|
|
1422
1489
|
})
|
|
1423
1490
|
]
|
|
1424
1491
|
}), /* @__PURE__ */ y("div", {
|
|
1425
1492
|
ref: j,
|
|
1426
1493
|
role: "grid",
|
|
1427
|
-
"aria-labelledby":
|
|
1494
|
+
"aria-labelledby": ee,
|
|
1428
1495
|
className: q.grid,
|
|
1429
|
-
onKeyDown:
|
|
1496
|
+
onKeyDown: le,
|
|
1430
1497
|
onMouseLeave: g ? () => g(null) : void 0,
|
|
1431
1498
|
children: [/* @__PURE__ */ v("div", {
|
|
1432
1499
|
role: "row",
|
|
1433
1500
|
className: q.row,
|
|
1434
|
-
children:
|
|
1501
|
+
children: ie.map((e) => /* @__PURE__ */ v("span", {
|
|
1435
1502
|
role: "columnheader",
|
|
1436
1503
|
"aria-label": e.long,
|
|
1437
1504
|
className: q.weekday,
|
|
1438
1505
|
children: e.short
|
|
1439
1506
|
}, e.long))
|
|
1440
|
-
}),
|
|
1507
|
+
}), re.map((t) => /* @__PURE__ */ v("div", {
|
|
1441
1508
|
role: "row",
|
|
1442
1509
|
className: q.row,
|
|
1443
1510
|
children: t.map(({ date: t, inMonth: i }) => {
|
|
1444
|
-
let a =
|
|
1511
|
+
let a = pt(t, n, r), o = !!I && dt(t, I), s = !!L && dt(t, L), c = !!(I && L) && ft(t, I) > 0 && ft(t, L) < 0, l = h ? o || s : !!e && dt(t, e), u = !!h && !i, d = dt(t, te);
|
|
1445
1512
|
return /* @__PURE__ */ v("button", {
|
|
1446
1513
|
type: "button",
|
|
1447
1514
|
role: "gridcell",
|
|
1448
|
-
"data-date":
|
|
1449
|
-
tabIndex:
|
|
1515
|
+
"data-date": yt(t),
|
|
1516
|
+
tabIndex: dt(t, S) && !u ? 0 : -1,
|
|
1450
1517
|
"aria-selected": l || c,
|
|
1451
1518
|
"aria-hidden": u || void 0,
|
|
1452
1519
|
"aria-disabled": a || void 0,
|
|
1453
1520
|
"aria-current": d ? "date" : void 0,
|
|
1454
|
-
"aria-label":
|
|
1521
|
+
"aria-label": z.full.format(t),
|
|
1455
1522
|
className: [
|
|
1456
1523
|
q.day,
|
|
1457
1524
|
!i && q.outside,
|
|
1458
1525
|
u && q.hiddenDay,
|
|
1459
1526
|
c && q.inRange,
|
|
1460
|
-
|
|
1461
|
-
|
|
1527
|
+
R && o && q.rangeStart,
|
|
1528
|
+
R && s && q.rangeEnd,
|
|
1462
1529
|
d && q.today,
|
|
1463
1530
|
l && q.selected,
|
|
1464
1531
|
a && q.disabled
|
|
1465
1532
|
].filter(Boolean).join(" "),
|
|
1466
1533
|
onMouseDown: a ? (e) => e.preventDefault() : void 0,
|
|
1467
|
-
onClick: a || u ? void 0 : () =>
|
|
1534
|
+
onClick: a || u ? void 0 : () => ue(t),
|
|
1468
1535
|
onMouseEnter: g && !u ? () => g(t) : void 0,
|
|
1469
1536
|
onFocus: g && !u ? () => g(t) : void 0,
|
|
1470
1537
|
children: t.getDate()
|
|
1471
|
-
},
|
|
1538
|
+
}, yt(t));
|
|
1472
1539
|
})
|
|
1473
|
-
},
|
|
1540
|
+
}, yt(t[0].date)))]
|
|
1474
1541
|
})]
|
|
1475
1542
|
});
|
|
1476
1543
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1544
|
+
var Ct = 4, wt = 8;
|
|
1545
|
+
function Tt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
|
|
1479
1546
|
let o = s(() => {
|
|
1480
1547
|
let e = t.current, i = n();
|
|
1481
1548
|
if (!e || !i) return;
|
|
@@ -1484,9 +1551,9 @@ function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
|
|
|
1484
1551
|
return;
|
|
1485
1552
|
}
|
|
1486
1553
|
let a = i.getBoundingClientRect(), o = e.offsetWidth, s = e.offsetHeight, c = document.documentElement.clientWidth, l = window.innerHeight, u = r === "bottom-end" ? a.right - o : a.left;
|
|
1487
|
-
u = Math.max(
|
|
1488
|
-
let d = a.bottom +
|
|
1489
|
-
m && (d = a.top -
|
|
1554
|
+
u = Math.max(wt, Math.min(u, c - o - wt));
|
|
1555
|
+
let d = a.bottom + Ct, f = d + s <= l - wt, p = a.top - Ct - s >= wt, m = !f && p;
|
|
1556
|
+
m && (d = a.top - Ct - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
|
|
1490
1557
|
}, [
|
|
1491
1558
|
n,
|
|
1492
1559
|
r,
|
|
@@ -1532,15 +1599,15 @@ function Ct({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
|
|
|
1532
1599
|
t
|
|
1533
1600
|
]);
|
|
1534
1601
|
}
|
|
1535
|
-
var
|
|
1602
|
+
var Et = { popup: "_popup_eco0g_1" };
|
|
1536
1603
|
//#endregion
|
|
1537
1604
|
//#region src/components/DatePicker.tsx
|
|
1538
|
-
function
|
|
1539
|
-
let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i,
|
|
1605
|
+
function Dt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: l = "bottom-start", label: d, helperText: h, error: b, size: x, openLabel: S, placeholder: C, dialogLabel: w = "Choose date", className: T, id: E }) {
|
|
1606
|
+
let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i, ee = f(() => new Intl.DateTimeFormat(a, {
|
|
1540
1607
|
month: "short",
|
|
1541
1608
|
day: "2-digit"
|
|
1542
|
-
}), [a]),
|
|
1543
|
-
|
|
1609
|
+
}), [a]), N = e ? c ? c(e) : ee.format(e) : "";
|
|
1610
|
+
Tt({
|
|
1544
1611
|
isOpen: M,
|
|
1545
1612
|
popupRef: A,
|
|
1546
1613
|
getAnchor: s(() => k.current?.parentElement ?? k.current, []),
|
|
@@ -1549,13 +1616,13 @@ function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1549
1616
|
O(!1), e && k.current?.focus();
|
|
1550
1617
|
}, [])
|
|
1551
1618
|
});
|
|
1552
|
-
function
|
|
1619
|
+
function P(e) {
|
|
1553
1620
|
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), i || O(!0));
|
|
1554
1621
|
}
|
|
1555
|
-
function
|
|
1622
|
+
function F(e) {
|
|
1556
1623
|
t(e), O(!1), k.current?.focus();
|
|
1557
1624
|
}
|
|
1558
|
-
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
1625
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ot, {
|
|
1559
1626
|
ref: k,
|
|
1560
1627
|
id: E,
|
|
1561
1628
|
className: T,
|
|
@@ -1566,23 +1633,23 @@ function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1566
1633
|
openLabel: S,
|
|
1567
1634
|
placeholder: C,
|
|
1568
1635
|
disabled: i,
|
|
1569
|
-
value:
|
|
1636
|
+
value: N,
|
|
1570
1637
|
role: "combobox",
|
|
1571
1638
|
"aria-haspopup": "dialog",
|
|
1572
1639
|
"aria-expanded": M,
|
|
1573
1640
|
"aria-controls": M ? j : void 0,
|
|
1574
1641
|
onClick: () => !i && O((e) => !e),
|
|
1575
|
-
onKeyDown:
|
|
1642
|
+
onKeyDown: P
|
|
1576
1643
|
}), M && g(/* @__PURE__ */ v("div", {
|
|
1577
1644
|
ref: A,
|
|
1578
1645
|
id: j,
|
|
1579
1646
|
role: "dialog",
|
|
1580
1647
|
"aria-label": w,
|
|
1581
|
-
className:
|
|
1582
|
-
children: /* @__PURE__ */ v(
|
|
1648
|
+
className: Et.popup,
|
|
1649
|
+
children: /* @__PURE__ */ v(St, {
|
|
1583
1650
|
autoFocus: !0,
|
|
1584
1651
|
value: e,
|
|
1585
|
-
onChange:
|
|
1652
|
+
onChange: F,
|
|
1586
1653
|
minDate: n,
|
|
1587
1654
|
maxDate: r,
|
|
1588
1655
|
locale: a,
|
|
@@ -1590,7 +1657,7 @@ function Tt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1590
1657
|
})
|
|
1591
1658
|
}), document.body)] });
|
|
1592
1659
|
}
|
|
1593
|
-
var
|
|
1660
|
+
var Ot = {
|
|
1594
1661
|
skeleton: "_skeleton_5dl4r_2",
|
|
1595
1662
|
rect: "_rect_5dl4r_7",
|
|
1596
1663
|
text: "_text_5dl4r_13",
|
|
@@ -1600,11 +1667,11 @@ var Et = {
|
|
|
1600
1667
|
};
|
|
1601
1668
|
//#endregion
|
|
1602
1669
|
//#region src/components/Skeleton.tsx
|
|
1603
|
-
function
|
|
1670
|
+
function kt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
|
|
1604
1671
|
let s = [
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
i &&
|
|
1672
|
+
Ot.skeleton,
|
|
1673
|
+
Ot[e],
|
|
1674
|
+
i && Ot.animated,
|
|
1608
1675
|
a
|
|
1609
1676
|
].filter(Boolean).join(" "), c = {};
|
|
1610
1677
|
return e === "circle" && r !== void 0 && (c.width = r, c.height = r), t !== void 0 && (c.width = t), n !== void 0 && (c.height = n), /* @__PURE__ */ v("div", {
|
|
@@ -1616,12 +1683,12 @@ function Dt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !
|
|
|
1616
1683
|
}
|
|
1617
1684
|
//#endregion
|
|
1618
1685
|
//#region src/utils/dateRange.ts
|
|
1619
|
-
function
|
|
1686
|
+
function At(e) {
|
|
1620
1687
|
return e.start !== null && e.end !== null;
|
|
1621
1688
|
}
|
|
1622
|
-
function
|
|
1623
|
-
let n =
|
|
1624
|
-
return e.start && !e.end &&
|
|
1689
|
+
function jt(e, t) {
|
|
1690
|
+
let n = st(t);
|
|
1691
|
+
return e.start && !e.end && ft(n, e.start) >= 0 ? {
|
|
1625
1692
|
start: e.start,
|
|
1626
1693
|
end: n
|
|
1627
1694
|
} : {
|
|
@@ -1629,8 +1696,8 @@ function kt(e, t) {
|
|
|
1629
1696
|
end: null
|
|
1630
1697
|
};
|
|
1631
1698
|
}
|
|
1632
|
-
function
|
|
1633
|
-
return e.start && !e.end && t ?
|
|
1699
|
+
function Mt(e, t) {
|
|
1700
|
+
return e.start && !e.end && t ? ft(t, e.start) < 0 ? {
|
|
1634
1701
|
start: t,
|
|
1635
1702
|
end: e.start
|
|
1636
1703
|
} : {
|
|
@@ -1638,8 +1705,8 @@ function At(e, t) {
|
|
|
1638
1705
|
end: t
|
|
1639
1706
|
} : e;
|
|
1640
1707
|
}
|
|
1641
|
-
var
|
|
1642
|
-
function
|
|
1708
|
+
var Nt = " – ";
|
|
1709
|
+
function Pt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
|
|
1643
1710
|
let { start: i, end: a } = e;
|
|
1644
1711
|
if (!i && !a) return "";
|
|
1645
1712
|
let o = new Intl.DateTimeFormat(t, {
|
|
@@ -1650,7 +1717,7 @@ function Mt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
|
|
|
1650
1717
|
day: "2-digit",
|
|
1651
1718
|
year: "numeric"
|
|
1652
1719
|
}), c = [i, a].some((e) => e && e.getFullYear() !== n.getFullYear()), l = (e) => r ? r(e) : (c ? s : o).format(e);
|
|
1653
|
-
return i && !a ? l(i) : !i && a ? l(a) :
|
|
1720
|
+
return i && !a ? l(i) : !i && a ? l(a) : dt(i, a) ? l(i) : `${l(i)}${Nt}${l(a)}`;
|
|
1654
1721
|
}
|
|
1655
1722
|
var J = {
|
|
1656
1723
|
field: "_field_18ses_1",
|
|
@@ -1673,87 +1740,87 @@ var J = {
|
|
|
1673
1740
|
months: "_months_18ses_214",
|
|
1674
1741
|
month: "_month_18ses_214",
|
|
1675
1742
|
footer: "_footer_18ses_222"
|
|
1676
|
-
},
|
|
1677
|
-
function
|
|
1743
|
+
}, Ft = "(min-width: 640px)";
|
|
1744
|
+
function It(e) {
|
|
1678
1745
|
return h((t) => {
|
|
1679
1746
|
let n = window.matchMedia(e);
|
|
1680
1747
|
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
1681
1748
|
}, () => window.matchMedia(e).matches, () => !1);
|
|
1682
1749
|
}
|
|
1683
|
-
var
|
|
1684
|
-
function
|
|
1685
|
-
let i =
|
|
1686
|
-
return r && (i =
|
|
1750
|
+
var Lt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Rt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
|
|
1751
|
+
function zt(e, t, n, r) {
|
|
1752
|
+
let i = Lt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
|
|
1753
|
+
return r && (i = ut(i, -1)), t && ft(i, Lt(t)) < 0 && (i = Lt(t)), i;
|
|
1687
1754
|
}
|
|
1688
|
-
function
|
|
1689
|
-
let [
|
|
1755
|
+
function Bt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], activePresetId: a, disabled: o, loading: c, locale: l = "en", weekStartsOn: d = 0, formatValue: h, placement: b = "bottom-start", size: x = "base", label: S, helperText: C, error: w, placeholder: T = "Select period", openLabel: E = "Choose period", dialogLabel: D = "Choose period", applyLabel: O = "Apply", cancelLabel: A = "Cancel", className: j, id: M }) {
|
|
1756
|
+
let [ee, N] = m(!1), [P, F] = m({
|
|
1690
1757
|
start: null,
|
|
1691
1758
|
end: null
|
|
1692
|
-
}), [
|
|
1759
|
+
}), [te, ne] = m(null), [I, L] = m(() => zt(e, n, r, !0)), [R, z] = m(() => st(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = It(Ft), V = ee && !o && !c, ce = a ? i.find((e) => e.id === a) : void 0, H = (e, t) => e && t ? ft(e, t) === 0 : e === t, ue = V && !!P.start && !(H(P.start, e.start) && H(P.end, e.end)), U = f(() => ue ? Pt(P, {
|
|
1693
1760
|
locale: l,
|
|
1694
1761
|
formatValue: h
|
|
1695
|
-
}) :
|
|
1762
|
+
}) : ce?.label ?? Pt(e, {
|
|
1696
1763
|
locale: l,
|
|
1697
1764
|
formatValue: h
|
|
1698
1765
|
}), [
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1766
|
+
ue,
|
|
1767
|
+
P,
|
|
1768
|
+
ce,
|
|
1702
1769
|
e,
|
|
1703
1770
|
l,
|
|
1704
1771
|
h
|
|
1705
|
-
]),
|
|
1706
|
-
|
|
1772
|
+
]), W = s(() => re.current, []), fe = s((e) => {
|
|
1773
|
+
N(!1), e && re.current?.focus();
|
|
1707
1774
|
}, []);
|
|
1708
|
-
|
|
1709
|
-
isOpen:
|
|
1710
|
-
popupRef:
|
|
1711
|
-
getAnchor:
|
|
1775
|
+
Tt({
|
|
1776
|
+
isOpen: V,
|
|
1777
|
+
popupRef: ie,
|
|
1778
|
+
getAnchor: W,
|
|
1712
1779
|
placement: b,
|
|
1713
1780
|
onClose: fe,
|
|
1714
|
-
layoutKey: `${
|
|
1781
|
+
layoutKey: `${B}-${I.getTime()}`
|
|
1715
1782
|
});
|
|
1716
1783
|
function pe() {
|
|
1717
|
-
o || c || (
|
|
1784
|
+
o || c || (F({
|
|
1718
1785
|
start: e.start,
|
|
1719
1786
|
end: e.end
|
|
1720
|
-
}),
|
|
1787
|
+
}), ne(null), L(zt(e, n, r, B)), z(e.end ?? e.start ?? st(/* @__PURE__ */ new Date())), N(!0));
|
|
1721
1788
|
}
|
|
1722
1789
|
function me() {
|
|
1723
|
-
|
|
1790
|
+
V ? fe(!1) : pe();
|
|
1724
1791
|
}
|
|
1725
1792
|
function he(e) {
|
|
1726
|
-
e.key === "ArrowDown" && !
|
|
1793
|
+
e.key === "ArrowDown" && !V && (e.preventDefault(), pe());
|
|
1727
1794
|
}
|
|
1728
1795
|
function ge(e) {
|
|
1729
1796
|
t(e.range()), fe(!0);
|
|
1730
1797
|
}
|
|
1731
1798
|
function _e() {
|
|
1732
|
-
|
|
1733
|
-
start:
|
|
1734
|
-
end:
|
|
1799
|
+
At(P) && (t({
|
|
1800
|
+
start: P.start,
|
|
1801
|
+
end: P.end
|
|
1735
1802
|
}), fe(!0));
|
|
1736
1803
|
}
|
|
1737
|
-
let ve = (e) => (t) =>
|
|
1738
|
-
value:
|
|
1739
|
-
onChange: (e) =>
|
|
1804
|
+
let ve = (e) => (t) => L(ut(Lt(t), -e)), ye = Mt(P, te), be = ut(I, 1), xe = B && Rt(R, be), Se = {
|
|
1805
|
+
value: R,
|
|
1806
|
+
onChange: (e) => F((t) => jt(t, e)),
|
|
1740
1807
|
minDate: n,
|
|
1741
1808
|
maxDate: r,
|
|
1742
1809
|
locale: l,
|
|
1743
1810
|
weekStartsOn: d,
|
|
1744
1811
|
range: ye,
|
|
1745
|
-
onDayHover:
|
|
1812
|
+
onDayHover: ne
|
|
1746
1813
|
}, Ce = i.length > 0;
|
|
1747
1814
|
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
|
|
1748
1815
|
className: [J.field, j].filter(Boolean).join(" "),
|
|
1749
1816
|
children: [
|
|
1750
|
-
S && /* @__PURE__ */ v(
|
|
1751
|
-
htmlFor:
|
|
1817
|
+
S && /* @__PURE__ */ v(ze, {
|
|
1818
|
+
htmlFor: oe,
|
|
1752
1819
|
children: S
|
|
1753
1820
|
}),
|
|
1754
1821
|
/* @__PURE__ */ y("button", {
|
|
1755
|
-
ref:
|
|
1756
|
-
id:
|
|
1822
|
+
ref: re,
|
|
1823
|
+
id: oe,
|
|
1757
1824
|
type: "button",
|
|
1758
1825
|
className: [
|
|
1759
1826
|
J.trigger,
|
|
@@ -1763,8 +1830,8 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1763
1830
|
disabled: o || c,
|
|
1764
1831
|
"aria-label": S ? void 0 : E,
|
|
1765
1832
|
"aria-haspopup": "dialog",
|
|
1766
|
-
"aria-expanded":
|
|
1767
|
-
"aria-controls":
|
|
1833
|
+
"aria-expanded": V,
|
|
1834
|
+
"aria-controls": V ? se : void 0,
|
|
1768
1835
|
"aria-busy": c || void 0,
|
|
1769
1836
|
onClick: me,
|
|
1770
1837
|
onKeyDown: he,
|
|
@@ -1772,20 +1839,20 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1772
1839
|
/* @__PURE__ */ v("span", {
|
|
1773
1840
|
className: J.icon,
|
|
1774
1841
|
"aria-hidden": !0,
|
|
1775
|
-
children: /* @__PURE__ */ v(
|
|
1842
|
+
children: /* @__PURE__ */ v(le, {})
|
|
1776
1843
|
}),
|
|
1777
1844
|
c ? /* @__PURE__ */ v("span", {
|
|
1778
1845
|
className: J.value,
|
|
1779
|
-
children: /* @__PURE__ */ v(
|
|
1846
|
+
children: /* @__PURE__ */ v(kt, {
|
|
1780
1847
|
variant: "text",
|
|
1781
1848
|
width: "60%"
|
|
1782
1849
|
})
|
|
1783
1850
|
}) : /* @__PURE__ */ v("span", {
|
|
1784
|
-
className: [J.value, !
|
|
1785
|
-
children:
|
|
1851
|
+
className: [J.value, !U && J.placeholder].filter(Boolean).join(" "),
|
|
1852
|
+
children: U || T
|
|
1786
1853
|
}),
|
|
1787
1854
|
/* @__PURE__ */ v("span", {
|
|
1788
|
-
className: [J.chevron,
|
|
1855
|
+
className: [J.chevron, V && J.chevronOpen].filter(Boolean).join(" "),
|
|
1789
1856
|
"aria-hidden": !0,
|
|
1790
1857
|
children: /* @__PURE__ */ v(de, {})
|
|
1791
1858
|
})
|
|
@@ -1799,9 +1866,9 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1799
1866
|
children: C
|
|
1800
1867
|
}) : null
|
|
1801
1868
|
]
|
|
1802
|
-
}),
|
|
1803
|
-
ref:
|
|
1804
|
-
id:
|
|
1869
|
+
}), V && g(/* @__PURE__ */ y("div", {
|
|
1870
|
+
ref: ie,
|
|
1871
|
+
id: se,
|
|
1805
1872
|
role: "dialog",
|
|
1806
1873
|
"aria-label": D,
|
|
1807
1874
|
className: J.popup,
|
|
@@ -1822,16 +1889,16 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1822
1889
|
className: J.months,
|
|
1823
1890
|
children: [/* @__PURE__ */ v("div", {
|
|
1824
1891
|
className: J.month,
|
|
1825
|
-
children: /* @__PURE__ */ v(
|
|
1892
|
+
children: /* @__PURE__ */ v(St, {
|
|
1826
1893
|
...Se,
|
|
1827
1894
|
autoFocus: !xe,
|
|
1828
|
-
month:
|
|
1895
|
+
month: I,
|
|
1829
1896
|
onMonthChange: ve(0),
|
|
1830
|
-
hideNavigation:
|
|
1897
|
+
hideNavigation: B ? "next" : void 0
|
|
1831
1898
|
})
|
|
1832
|
-
}),
|
|
1899
|
+
}), B && /* @__PURE__ */ v("div", {
|
|
1833
1900
|
className: J.month,
|
|
1834
|
-
children: /* @__PURE__ */ v(
|
|
1901
|
+
children: /* @__PURE__ */ v(St, {
|
|
1835
1902
|
...Se,
|
|
1836
1903
|
autoFocus: xe,
|
|
1837
1904
|
month: be,
|
|
@@ -1849,7 +1916,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1849
1916
|
}), /* @__PURE__ */ v(k, {
|
|
1850
1917
|
variant: "primary",
|
|
1851
1918
|
size: "sm",
|
|
1852
|
-
disabled: !
|
|
1919
|
+
disabled: !At(P),
|
|
1853
1920
|
onClick: _e,
|
|
1854
1921
|
children: O
|
|
1855
1922
|
})]
|
|
@@ -1857,7 +1924,7 @@ function Rt({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1857
1924
|
})]
|
|
1858
1925
|
}), document.body)] });
|
|
1859
1926
|
}
|
|
1860
|
-
var
|
|
1927
|
+
var Vt = {
|
|
1861
1928
|
field: "_field_l0zl7_1",
|
|
1862
1929
|
inputWrap: "_inputWrap_l0zl7_6",
|
|
1863
1930
|
errorWrap: "_errorWrap_l0zl7_19",
|
|
@@ -1871,64 +1938,64 @@ var zt = {
|
|
|
1871
1938
|
};
|
|
1872
1939
|
//#endregion
|
|
1873
1940
|
//#region src/components/NumberField.tsx
|
|
1874
|
-
function
|
|
1941
|
+
function Ht({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
|
|
1875
1942
|
let c = u(), l = o ?? c;
|
|
1876
1943
|
return /* @__PURE__ */ y("div", {
|
|
1877
|
-
className:
|
|
1944
|
+
className: Vt.field,
|
|
1878
1945
|
children: [
|
|
1879
|
-
e && /* @__PURE__ */ v(
|
|
1946
|
+
e && /* @__PURE__ */ v(ze, {
|
|
1880
1947
|
htmlFor: l,
|
|
1881
1948
|
children: e
|
|
1882
1949
|
}),
|
|
1883
1950
|
/* @__PURE__ */ y("div", {
|
|
1884
|
-
className: `${
|
|
1951
|
+
className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
|
|
1885
1952
|
children: [
|
|
1886
1953
|
i && /* @__PURE__ */ v("span", {
|
|
1887
|
-
className:
|
|
1954
|
+
className: Vt.prefix,
|
|
1888
1955
|
children: i
|
|
1889
1956
|
}),
|
|
1890
1957
|
/* @__PURE__ */ v("input", {
|
|
1891
1958
|
id: l,
|
|
1892
|
-
className:
|
|
1959
|
+
className: Vt.input,
|
|
1893
1960
|
...s
|
|
1894
1961
|
}),
|
|
1895
1962
|
a && /* @__PURE__ */ v("span", {
|
|
1896
|
-
className:
|
|
1963
|
+
className: Vt.suffix,
|
|
1897
1964
|
children: a
|
|
1898
1965
|
})
|
|
1899
1966
|
]
|
|
1900
1967
|
}),
|
|
1901
1968
|
n ? /* @__PURE__ */ v("span", {
|
|
1902
|
-
className:
|
|
1969
|
+
className: Vt.errorText,
|
|
1903
1970
|
children: n
|
|
1904
1971
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1905
|
-
className:
|
|
1972
|
+
className: Vt.helperText,
|
|
1906
1973
|
children: t
|
|
1907
1974
|
}) : null
|
|
1908
1975
|
]
|
|
1909
1976
|
});
|
|
1910
1977
|
}
|
|
1911
|
-
var
|
|
1978
|
+
var Ut = {
|
|
1912
1979
|
menu: "_menu_xz84k_1",
|
|
1913
1980
|
divider: "_divider_xz84k_15"
|
|
1914
1981
|
};
|
|
1915
1982
|
//#endregion
|
|
1916
1983
|
//#region src/components/Menu.tsx
|
|
1917
|
-
function
|
|
1984
|
+
function Wt({ children: e, ...t }) {
|
|
1918
1985
|
return /* @__PURE__ */ v("div", {
|
|
1919
1986
|
role: "menu",
|
|
1920
|
-
className:
|
|
1987
|
+
className: Ut.menu,
|
|
1921
1988
|
...t,
|
|
1922
1989
|
children: e
|
|
1923
1990
|
});
|
|
1924
1991
|
}
|
|
1925
|
-
function
|
|
1992
|
+
function Gt() {
|
|
1926
1993
|
return /* @__PURE__ */ v("div", {
|
|
1927
|
-
className:
|
|
1994
|
+
className: Ut.divider,
|
|
1928
1995
|
role: "separator"
|
|
1929
1996
|
});
|
|
1930
1997
|
}
|
|
1931
|
-
var
|
|
1998
|
+
var Kt = {
|
|
1932
1999
|
item: "_item_15ucz_1",
|
|
1933
2000
|
base: "_base_15ucz_21",
|
|
1934
2001
|
icon: "_icon_15ucz_28",
|
|
@@ -1941,12 +2008,12 @@ var Wt = {
|
|
|
1941
2008
|
};
|
|
1942
2009
|
//#endregion
|
|
1943
2010
|
//#region src/components/MenuItem.tsx
|
|
1944
|
-
function
|
|
2011
|
+
function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
|
|
1945
2012
|
let c = [
|
|
1946
|
-
|
|
1947
|
-
a === "base" &&
|
|
1948
|
-
r &&
|
|
1949
|
-
i &&
|
|
2013
|
+
Kt.item,
|
|
2014
|
+
a === "base" && Kt.base,
|
|
2015
|
+
r && Kt.selected,
|
|
2016
|
+
i && Kt.destructive
|
|
1950
2017
|
].filter(Boolean).join(" ");
|
|
1951
2018
|
return /* @__PURE__ */ y("button", {
|
|
1952
2019
|
type: "button",
|
|
@@ -1955,24 +2022,24 @@ function Gt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
|
|
|
1955
2022
|
...s,
|
|
1956
2023
|
children: [
|
|
1957
2024
|
e && /* @__PURE__ */ v("span", {
|
|
1958
|
-
className:
|
|
2025
|
+
className: Kt.leading,
|
|
1959
2026
|
children: e
|
|
1960
2027
|
}),
|
|
1961
2028
|
t && /* @__PURE__ */ v("span", {
|
|
1962
|
-
className:
|
|
2029
|
+
className: Kt.icon,
|
|
1963
2030
|
children: t
|
|
1964
2031
|
}),
|
|
1965
2032
|
/* @__PURE__ */ v("span", {
|
|
1966
|
-
className:
|
|
2033
|
+
className: Kt.label,
|
|
1967
2034
|
children: o
|
|
1968
2035
|
}),
|
|
1969
2036
|
n && /* @__PURE__ */ v("span", {
|
|
1970
|
-
className:
|
|
2037
|
+
className: Kt.trailing,
|
|
1971
2038
|
children: n
|
|
1972
2039
|
}),
|
|
1973
2040
|
r && /* @__PURE__ */ v("span", {
|
|
1974
|
-
className:
|
|
1975
|
-
children: /* @__PURE__ */ v(
|
|
2041
|
+
className: Kt.check,
|
|
2042
|
+
children: /* @__PURE__ */ v(U, {})
|
|
1976
2043
|
})
|
|
1977
2044
|
]
|
|
1978
2045
|
});
|
|
@@ -2014,15 +2081,15 @@ var Y = {
|
|
|
2014
2081
|
};
|
|
2015
2082
|
//#endregion
|
|
2016
2083
|
//#region src/components/Dropdown.tsx
|
|
2017
|
-
function
|
|
2084
|
+
function Jt(e) {
|
|
2018
2085
|
return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
|
|
2019
2086
|
}
|
|
2020
|
-
function
|
|
2087
|
+
function Yt(e) {
|
|
2021
2088
|
return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
|
|
2022
2089
|
}
|
|
2023
|
-
var
|
|
2024
|
-
function
|
|
2025
|
-
let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: g, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": O } = e, A = e.multiple === !0, [j, M] = m(C), [
|
|
2090
|
+
var Xt = (e) => `and ${e} more`;
|
|
2091
|
+
function Zt(e) {
|
|
2092
|
+
let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: g, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": O } = e, A = e.multiple === !0, [j, M] = m(C), [ee, N] = m(C), [P, F] = m(""), [te, ne] = m(!1), [I, L] = m(null), R = p(null), z = p(null), re = p(null), ie = p(null), ae = s((e) => {
|
|
2026
2093
|
if (!e) return;
|
|
2027
2094
|
let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
|
|
2028
2095
|
t();
|
|
@@ -2033,61 +2100,61 @@ function Yt(e) {
|
|
|
2033
2100
|
return r.observe(e, { childList: !0 }), () => {
|
|
2034
2101
|
n.disconnect(), r.disconnect();
|
|
2035
2102
|
};
|
|
2036
|
-
}, []),
|
|
2103
|
+
}, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, V = e.multiple && e.value || [], ce = V.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), H = A ? void 0 : h.find((e) => e.value === B), le = P.trim().toLowerCase(), ue = b && le ? h.filter((e) => Jt(e).toLowerCase().includes(le)) : h, U = ue.filter((e) => !e.disabled).map((e) => e.value), W = t === "field";
|
|
2037
2104
|
function fe() {
|
|
2038
|
-
|
|
2105
|
+
N(!0), M(!0);
|
|
2039
2106
|
}
|
|
2040
2107
|
function pe() {
|
|
2041
|
-
M(!1),
|
|
2108
|
+
M(!1), F("");
|
|
2042
2109
|
}
|
|
2043
2110
|
l(() => {
|
|
2044
2111
|
if (!j) return;
|
|
2045
2112
|
if (b) {
|
|
2046
|
-
|
|
2113
|
+
ie.current?.focus();
|
|
2047
2114
|
return;
|
|
2048
2115
|
}
|
|
2049
|
-
let e = (A ?
|
|
2050
|
-
(
|
|
2116
|
+
let e = (A ? ce.find((e) => !e.disabled)?.value : B) ?? U[0];
|
|
2117
|
+
(R.current?.querySelector(`[data-value="${e}"]`))?.focus();
|
|
2051
2118
|
}, [j]), d(() => {
|
|
2052
|
-
if (!j || !
|
|
2053
|
-
let e =
|
|
2054
|
-
|
|
2119
|
+
if (!j || !re.current || !R.current) return;
|
|
2120
|
+
let e = R.current.getBoundingClientRect(), t = re.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
|
|
2121
|
+
ne(n < t + 8 && r > n);
|
|
2055
2122
|
}, [j]), l(() => {
|
|
2056
2123
|
if (!j) return;
|
|
2057
2124
|
function e(e) {
|
|
2058
|
-
|
|
2125
|
+
R.current?.contains(e.target) || pe();
|
|
2059
2126
|
}
|
|
2060
2127
|
function t(e) {
|
|
2061
|
-
e.key === "Escape" && (pe(),
|
|
2128
|
+
e.key === "Escape" && (pe(), z.current?.focus()), e.key === "Tab" && A && pe();
|
|
2062
2129
|
}
|
|
2063
2130
|
return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
|
|
2064
2131
|
window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
|
|
2065
2132
|
};
|
|
2066
2133
|
}, [j, A]);
|
|
2067
2134
|
function me(e) {
|
|
2068
|
-
e !== void 0 &&
|
|
2135
|
+
e !== void 0 && R.current?.querySelector(`[data-value="${e}"]`)?.focus();
|
|
2069
2136
|
}
|
|
2070
2137
|
function he(e) {
|
|
2071
2138
|
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), fe());
|
|
2072
2139
|
}
|
|
2073
2140
|
function ge(e) {
|
|
2074
|
-
e.key === "ArrowDown" && (e.preventDefault(), me(
|
|
2141
|
+
e.key === "ArrowDown" && (e.preventDefault(), me(U[0])), e.key === "Enter" && U.length === 1 && (e.preventDefault(), ye(U[0]));
|
|
2075
2142
|
}
|
|
2076
2143
|
function _e(e, t) {
|
|
2077
|
-
let n =
|
|
2144
|
+
let n = U.indexOf(t);
|
|
2078
2145
|
if (n === -1) return;
|
|
2079
2146
|
let r = null;
|
|
2080
|
-
if (e.key === "ArrowDown" && (r = (n + 1) %
|
|
2147
|
+
if (e.key === "ArrowDown" && (r = (n + 1) % U.length), e.key === "ArrowUp") {
|
|
2081
2148
|
if (b && n === 0) {
|
|
2082
|
-
e.preventDefault(),
|
|
2149
|
+
e.preventDefault(), ie.current?.focus();
|
|
2083
2150
|
return;
|
|
2084
2151
|
}
|
|
2085
|
-
r = (n - 1 +
|
|
2152
|
+
r = (n - 1 + U.length) % U.length;
|
|
2086
2153
|
}
|
|
2087
|
-
e.key === "Home" && (r = 0), e.key === "End" && (r =
|
|
2154
|
+
e.key === "Home" && (r = 0), e.key === "End" && (r = U.length - 1), r !== null && (e.preventDefault(), me(U[r]));
|
|
2088
2155
|
}
|
|
2089
2156
|
function ve(e) {
|
|
2090
|
-
|
|
2157
|
+
L((t) => ({
|
|
2091
2158
|
top: e.offsetTop,
|
|
2092
2159
|
height: e.offsetHeight,
|
|
2093
2160
|
instant: !t
|
|
@@ -2099,22 +2166,22 @@ function Yt(e) {
|
|
|
2099
2166
|
e.onChange(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
2100
2167
|
return;
|
|
2101
2168
|
}
|
|
2102
|
-
e.onChange(t), pe(),
|
|
2169
|
+
e.onChange(t), pe(), z.current?.focus();
|
|
2103
2170
|
}
|
|
2104
2171
|
function be() {
|
|
2105
|
-
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(
|
|
2106
|
-
let t =
|
|
2107
|
-
if (
|
|
2108
|
-
let n =
|
|
2109
|
-
return n === void 0 ? `${
|
|
2172
|
+
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ce);
|
|
2173
|
+
let t = ce[0];
|
|
2174
|
+
if (ce.length === 1) return t.label;
|
|
2175
|
+
let n = Yt(t);
|
|
2176
|
+
return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || Xt)(ce.length - 1)}`;
|
|
2110
2177
|
}
|
|
2111
|
-
let xe = n === void 0 && (A ?
|
|
2178
|
+
let xe = n === void 0 && (A ? ce.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
|
|
2112
2179
|
className: Y.prefix,
|
|
2113
2180
|
children: [e.triggerPrefix, " "]
|
|
2114
|
-
}) : null, Ce = n ?? (xe ? f : A ? be() :
|
|
2181
|
+
}) : null, Ce = n ?? (xe ? f : A ? be() : H?.label), we = /* @__PURE__ */ y(_, { children: [Se, Ce] }), Te = {
|
|
2115
2182
|
"aria-haspopup": "listbox",
|
|
2116
2183
|
"aria-expanded": j,
|
|
2117
|
-
"aria-controls": j ?
|
|
2184
|
+
"aria-controls": j ? se : void 0,
|
|
2118
2185
|
"aria-label": i ? void 0 : D,
|
|
2119
2186
|
autoFocus: w,
|
|
2120
2187
|
disabled: g,
|
|
@@ -2122,26 +2189,26 @@ function Yt(e) {
|
|
|
2122
2189
|
onKeyDown: he
|
|
2123
2190
|
};
|
|
2124
2191
|
return /* @__PURE__ */ y("div", {
|
|
2125
|
-
className: [
|
|
2126
|
-
ref:
|
|
2192
|
+
className: [W ? Y.field : Y.fieldInline, T].filter(Boolean).join(" "),
|
|
2193
|
+
ref: R,
|
|
2127
2194
|
"data-testid": O,
|
|
2128
2195
|
children: [
|
|
2129
|
-
|
|
2130
|
-
htmlFor:
|
|
2196
|
+
W && i && /* @__PURE__ */ v(ze, {
|
|
2197
|
+
htmlFor: oe,
|
|
2131
2198
|
className: E,
|
|
2132
2199
|
children: i
|
|
2133
2200
|
}),
|
|
2134
|
-
|
|
2135
|
-
ref:
|
|
2136
|
-
id:
|
|
2201
|
+
W ? /* @__PURE__ */ y("button", {
|
|
2202
|
+
ref: z,
|
|
2203
|
+
id: oe,
|
|
2137
2204
|
type: "button",
|
|
2138
2205
|
role: "combobox",
|
|
2139
2206
|
className: `${Y.trigger} ${Y[c]} ${o ? Y.errorWrap : ""}`,
|
|
2140
2207
|
...Te,
|
|
2141
2208
|
children: [
|
|
2142
|
-
|
|
2209
|
+
H?.icon && /* @__PURE__ */ v("span", {
|
|
2143
2210
|
className: Y.icon,
|
|
2144
|
-
children:
|
|
2211
|
+
children: H.icon
|
|
2145
2212
|
}),
|
|
2146
2213
|
/* @__PURE__ */ v("span", {
|
|
2147
2214
|
className: `${Y.value} ${xe ? Y.placeholder : ""}`,
|
|
@@ -2153,15 +2220,15 @@ function Yt(e) {
|
|
|
2153
2220
|
})
|
|
2154
2221
|
]
|
|
2155
2222
|
}) : t === "pill" ? /* @__PURE__ */ y("button", {
|
|
2156
|
-
ref:
|
|
2157
|
-
id:
|
|
2223
|
+
ref: z,
|
|
2224
|
+
id: oe,
|
|
2158
2225
|
type: "button",
|
|
2159
2226
|
className: Y.pillTrigger,
|
|
2160
2227
|
...Te,
|
|
2161
2228
|
children: [
|
|
2162
|
-
|
|
2229
|
+
H?.icon && /* @__PURE__ */ v("span", {
|
|
2163
2230
|
className: Y.pillIcon,
|
|
2164
|
-
children:
|
|
2231
|
+
children: H.icon
|
|
2165
2232
|
}),
|
|
2166
2233
|
we,
|
|
2167
2234
|
/* @__PURE__ */ v("span", {
|
|
@@ -2170,12 +2237,12 @@ function Yt(e) {
|
|
|
2170
2237
|
})
|
|
2171
2238
|
]
|
|
2172
2239
|
}) : /* @__PURE__ */ v(k, {
|
|
2173
|
-
ref:
|
|
2174
|
-
id:
|
|
2240
|
+
ref: z,
|
|
2241
|
+
id: oe,
|
|
2175
2242
|
variant: t,
|
|
2176
2243
|
size: c,
|
|
2177
2244
|
className: c === "base" ? Y.buttonTriggerBase : void 0,
|
|
2178
|
-
leadingIcon:
|
|
2245
|
+
leadingIcon: H?.icon,
|
|
2179
2246
|
trailingIcon: /* @__PURE__ */ v("span", {
|
|
2180
2247
|
className: `${Y.buttonChevron} ${j ? Y.chevronOpen : ""}`,
|
|
2181
2248
|
children: /* @__PURE__ */ v(de, {})
|
|
@@ -2183,70 +2250,70 @@ function Yt(e) {
|
|
|
2183
2250
|
...Te,
|
|
2184
2251
|
children: we
|
|
2185
2252
|
}),
|
|
2186
|
-
|
|
2187
|
-
ref:
|
|
2253
|
+
ee && /* @__PURE__ */ v("div", {
|
|
2254
|
+
ref: re,
|
|
2188
2255
|
className: [
|
|
2189
2256
|
Y.menuWrap,
|
|
2190
|
-
!
|
|
2191
|
-
!
|
|
2192
|
-
!
|
|
2193
|
-
|
|
2257
|
+
!W && Y.menuWrapAuto,
|
|
2258
|
+
!W && A && Y.menuWrapMultiple,
|
|
2259
|
+
!W && r === "end" && Y.menuWrapEnd,
|
|
2260
|
+
te && Y.menuWrapUp,
|
|
2194
2261
|
!j && Y.menuWrapClosing
|
|
2195
2262
|
].filter(Boolean).join(" "),
|
|
2196
2263
|
onAnimationEnd: (e) => {
|
|
2197
|
-
j || e.target !== e.currentTarget || (
|
|
2264
|
+
j || e.target !== e.currentTarget || (N(!1), ne(!1));
|
|
2198
2265
|
},
|
|
2199
|
-
children: /* @__PURE__ */ y(
|
|
2266
|
+
children: /* @__PURE__ */ y(Wt, {
|
|
2200
2267
|
role: "presentation",
|
|
2201
|
-
style:
|
|
2268
|
+
style: W ? { width: "100%" } : void 0,
|
|
2202
2269
|
children: [b && /* @__PURE__ */ v("input", {
|
|
2203
|
-
ref:
|
|
2270
|
+
ref: ie,
|
|
2204
2271
|
type: "text",
|
|
2205
2272
|
className: Y.search,
|
|
2206
|
-
value:
|
|
2273
|
+
value: P,
|
|
2207
2274
|
placeholder: x,
|
|
2208
2275
|
"aria-label": x,
|
|
2209
|
-
"aria-controls":
|
|
2276
|
+
"aria-controls": se,
|
|
2210
2277
|
autoComplete: "off",
|
|
2211
2278
|
spellCheck: !1,
|
|
2212
2279
|
onChange: (e) => {
|
|
2213
|
-
|
|
2280
|
+
F(e.target.value), L(null);
|
|
2214
2281
|
},
|
|
2215
2282
|
onKeyDown: ge
|
|
2216
2283
|
}), /* @__PURE__ */ y("div", {
|
|
2217
|
-
id:
|
|
2284
|
+
id: se,
|
|
2218
2285
|
role: "listbox",
|
|
2219
2286
|
"aria-multiselectable": A || void 0,
|
|
2220
2287
|
"aria-label": i ?? D,
|
|
2221
|
-
ref:
|
|
2288
|
+
ref: ae,
|
|
2222
2289
|
className: Y.list,
|
|
2223
|
-
onMouseLeave: () =>
|
|
2290
|
+
onMouseLeave: () => L(null),
|
|
2224
2291
|
onBlur: (e) => {
|
|
2225
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
2292
|
+
e.currentTarget.contains(e.relatedTarget) || L(null);
|
|
2226
2293
|
},
|
|
2227
|
-
children: [
|
|
2294
|
+
children: [I && ue.length > 0 && /* @__PURE__ */ v("span", {
|
|
2228
2295
|
"aria-hidden": "true",
|
|
2229
|
-
className: `${Y.highlight} ${
|
|
2296
|
+
className: `${Y.highlight} ${I.instant ? Y.highlightInstant : ""}`,
|
|
2230
2297
|
style: {
|
|
2231
|
-
transform: `translateY(${
|
|
2232
|
-
height:
|
|
2298
|
+
transform: `translateY(${I.top}px)`,
|
|
2299
|
+
height: I.height
|
|
2233
2300
|
}
|
|
2234
|
-
}),
|
|
2301
|
+
}), ue.length === 0 ? /* @__PURE__ */ v("div", {
|
|
2235
2302
|
className: Y.noResults,
|
|
2236
2303
|
role: "presentation",
|
|
2237
2304
|
children: S
|
|
2238
|
-
}) :
|
|
2305
|
+
}) : ue.map((e, n) => /* @__PURE__ */ v(qt, {
|
|
2239
2306
|
style: { "--i": Math.min(n, 8) },
|
|
2240
2307
|
"data-value": e.value,
|
|
2241
2308
|
role: "option",
|
|
2242
|
-
"aria-selected": A ?
|
|
2309
|
+
"aria-selected": A ? V.includes(e.value) : e.value === B,
|
|
2243
2310
|
size: t === "pill" ? "sm" : c,
|
|
2244
2311
|
icon: e.icon,
|
|
2245
|
-
leading: A ? /* @__PURE__ */ v(
|
|
2246
|
-
checked:
|
|
2312
|
+
leading: A ? /* @__PURE__ */ v(Ye, {
|
|
2313
|
+
checked: V.includes(e.value),
|
|
2247
2314
|
disabled: e.disabled
|
|
2248
2315
|
}) : void 0,
|
|
2249
|
-
selected: !A && e.value ===
|
|
2316
|
+
selected: !A && e.value === B,
|
|
2250
2317
|
disabled: e.disabled,
|
|
2251
2318
|
onClick: () => ye(e.value),
|
|
2252
2319
|
onMouseEnter: (t) => !e.disabled && ve(t.currentTarget),
|
|
@@ -2257,17 +2324,17 @@ function Yt(e) {
|
|
|
2257
2324
|
})]
|
|
2258
2325
|
})
|
|
2259
2326
|
}),
|
|
2260
|
-
|
|
2327
|
+
W && o ? /* @__PURE__ */ v("span", {
|
|
2261
2328
|
className: Y.errorText,
|
|
2262
2329
|
children: o
|
|
2263
|
-
}) :
|
|
2330
|
+
}) : W && a ? /* @__PURE__ */ v("span", {
|
|
2264
2331
|
className: Y.helperText,
|
|
2265
2332
|
children: a
|
|
2266
2333
|
}) : null
|
|
2267
2334
|
]
|
|
2268
2335
|
});
|
|
2269
2336
|
}
|
|
2270
|
-
var
|
|
2337
|
+
var Qt = {
|
|
2271
2338
|
item: "_item_5896s_2",
|
|
2272
2339
|
active: "_active_5896s_38",
|
|
2273
2340
|
inList: "_inList_5896s_41",
|
|
@@ -2278,41 +2345,41 @@ var Xt = {
|
|
|
2278
2345
|
glide: "_glide_5896s_115",
|
|
2279
2346
|
glideAnimated: "_glideAnimated_5896s_128",
|
|
2280
2347
|
glideVisible: "_glideVisible_5896s_134"
|
|
2281
|
-
},
|
|
2282
|
-
function
|
|
2283
|
-
let l = c(
|
|
2284
|
-
|
|
2285
|
-
n &&
|
|
2286
|
-
l &&
|
|
2348
|
+
}, $t = "data-nav-item", en = r(!1);
|
|
2349
|
+
function tn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
|
|
2350
|
+
let l = c(en), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
|
|
2351
|
+
Qt.item,
|
|
2352
|
+
n && Qt.active,
|
|
2353
|
+
l && Qt.inList,
|
|
2287
2354
|
a
|
|
2288
2355
|
].filter(Boolean).join(" ");
|
|
2289
2356
|
return /* @__PURE__ */ y(u, {
|
|
2290
2357
|
...d ? { type: "button" } : {},
|
|
2291
2358
|
...i === void 0 ? {} : { href: i },
|
|
2292
|
-
[
|
|
2359
|
+
[$t]: "",
|
|
2293
2360
|
"aria-current": n ? "page" : void 0,
|
|
2294
2361
|
className: f,
|
|
2295
2362
|
...s,
|
|
2296
2363
|
children: [
|
|
2297
2364
|
e && /* @__PURE__ */ v("span", {
|
|
2298
|
-
className:
|
|
2365
|
+
className: Qt.icon,
|
|
2299
2366
|
"aria-hidden": !0,
|
|
2300
2367
|
children: e
|
|
2301
2368
|
}),
|
|
2302
2369
|
/* @__PURE__ */ v("span", {
|
|
2303
|
-
className:
|
|
2370
|
+
className: Qt.label,
|
|
2304
2371
|
children: o
|
|
2305
2372
|
}),
|
|
2306
2373
|
t && /* @__PURE__ */ v("span", {
|
|
2307
|
-
className:
|
|
2374
|
+
className: Qt.trailing,
|
|
2308
2375
|
children: t
|
|
2309
2376
|
})
|
|
2310
2377
|
]
|
|
2311
2378
|
});
|
|
2312
2379
|
}
|
|
2313
|
-
function
|
|
2380
|
+
function nn({ children: e, className: t, ...n }) {
|
|
2314
2381
|
let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
|
|
2315
|
-
let t = r.current, n = e instanceof Element ? e.closest(`[${
|
|
2382
|
+
let t = r.current, n = e instanceof Element ? e.closest(`[${$t}]`) : null;
|
|
2316
2383
|
if (!t || !n || !t.contains(n)) return;
|
|
2317
2384
|
if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
|
|
2318
2385
|
c(!1);
|
|
@@ -2326,11 +2393,11 @@ function en({ children: e, className: t, ...n }) {
|
|
|
2326
2393
|
}, [o]);
|
|
2327
2394
|
return d(() => {
|
|
2328
2395
|
o || u(!1);
|
|
2329
|
-
}, [o]), /* @__PURE__ */ v(
|
|
2396
|
+
}, [o]), /* @__PURE__ */ v(en.Provider, {
|
|
2330
2397
|
value: !0,
|
|
2331
2398
|
children: /* @__PURE__ */ y("div", {
|
|
2332
2399
|
ref: r,
|
|
2333
|
-
className: [
|
|
2400
|
+
className: [Qt.list, t].filter(Boolean).join(" "),
|
|
2334
2401
|
onMouseOver: (e) => f(e.target),
|
|
2335
2402
|
onMouseLeave: () => c(!1),
|
|
2336
2403
|
onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
|
|
@@ -2339,9 +2406,9 @@ function en({ children: e, className: t, ...n }) {
|
|
|
2339
2406
|
children: [/* @__PURE__ */ v("span", {
|
|
2340
2407
|
"aria-hidden": !0,
|
|
2341
2408
|
className: [
|
|
2342
|
-
|
|
2343
|
-
l &&
|
|
2344
|
-
o &&
|
|
2409
|
+
Qt.glide,
|
|
2410
|
+
l && Qt.glideAnimated,
|
|
2411
|
+
o && Qt.glideVisible
|
|
2345
2412
|
].filter(Boolean).join(" "),
|
|
2346
2413
|
style: i ? {
|
|
2347
2414
|
translate: `0 ${i.top}px`,
|
|
@@ -2353,7 +2420,7 @@ function en({ children: e, className: t, ...n }) {
|
|
|
2353
2420
|
}
|
|
2354
2421
|
//#endregion
|
|
2355
2422
|
//#region src/components/Logo.tsx
|
|
2356
|
-
function
|
|
2423
|
+
function rn({ size: e = 40, "aria-label": t, ...n }) {
|
|
2357
2424
|
return /* @__PURE__ */ y("svg", {
|
|
2358
2425
|
width: e,
|
|
2359
2426
|
height: e,
|
|
@@ -2395,7 +2462,7 @@ var X = {
|
|
|
2395
2462
|
};
|
|
2396
2463
|
//#endregion
|
|
2397
2464
|
//#region src/components/Sidebar.tsx
|
|
2398
|
-
function
|
|
2465
|
+
function an({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
|
|
2399
2466
|
return /* @__PURE__ */ y("aside", {
|
|
2400
2467
|
className: [X.root, o].filter(Boolean).join(" "),
|
|
2401
2468
|
children: [
|
|
@@ -2421,7 +2488,7 @@ function nn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i
|
|
|
2421
2488
|
]
|
|
2422
2489
|
});
|
|
2423
2490
|
}
|
|
2424
|
-
function
|
|
2491
|
+
function on({ title: e, subtitle: t, action: n }) {
|
|
2425
2492
|
return /* @__PURE__ */ y("div", {
|
|
2426
2493
|
className: X.footerRow,
|
|
2427
2494
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -2439,7 +2506,7 @@ function rn({ title: e, subtitle: t, action: n }) {
|
|
|
2439
2506
|
})]
|
|
2440
2507
|
});
|
|
2441
2508
|
}
|
|
2442
|
-
function
|
|
2509
|
+
function sn({ items: e, value: t, onChange: n, "aria-label": r }) {
|
|
2443
2510
|
return /* @__PURE__ */ v("div", {
|
|
2444
2511
|
role: "group",
|
|
2445
2512
|
"aria-label": r,
|
|
@@ -2465,21 +2532,21 @@ function an({ items: e, value: t, onChange: n, "aria-label": r }) {
|
|
|
2465
2532
|
}, e.value))
|
|
2466
2533
|
});
|
|
2467
2534
|
}
|
|
2468
|
-
var
|
|
2535
|
+
var cn = { highlight: "_highlight_1pz29_1" };
|
|
2469
2536
|
//#endregion
|
|
2470
2537
|
//#region src/components/HighlightText.tsx
|
|
2471
|
-
function
|
|
2538
|
+
function ln(e) {
|
|
2472
2539
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2473
2540
|
}
|
|
2474
|
-
function
|
|
2541
|
+
function un({ text: e, query: n }) {
|
|
2475
2542
|
if (!n) return /* @__PURE__ */ v(_, { children: e });
|
|
2476
|
-
let r = e.split(RegExp(`(${
|
|
2543
|
+
let r = e.split(RegExp(`(${ln(n)})`, "ig"));
|
|
2477
2544
|
return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
|
|
2478
|
-
className:
|
|
2545
|
+
className: cn.highlight,
|
|
2479
2546
|
children: e
|
|
2480
2547
|
}, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
|
|
2481
2548
|
}
|
|
2482
|
-
var
|
|
2549
|
+
var dn = {
|
|
2483
2550
|
group: "_group_1bg0h_1",
|
|
2484
2551
|
btn: "_btn_1bg0h_4",
|
|
2485
2552
|
caret: "_caret_1bg0h_29",
|
|
@@ -2501,24 +2568,24 @@ var ln = {
|
|
|
2501
2568
|
};
|
|
2502
2569
|
//#endregion
|
|
2503
2570
|
//#region src/components/FilterSection.tsx
|
|
2504
|
-
function
|
|
2571
|
+
function fn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
|
|
2505
2572
|
let [s, c] = m(""), l = s.trim().toLowerCase(), u = l ? t.filter((e) => n(e).toLowerCase().includes(l)) : t, d = t.length > 0 && r.size === t.length;
|
|
2506
2573
|
return /* @__PURE__ */ y("div", { children: [
|
|
2507
2574
|
/* @__PURE__ */ y("div", {
|
|
2508
|
-
className:
|
|
2575
|
+
className: dn.sectionHeader,
|
|
2509
2576
|
children: [/* @__PURE__ */ v("div", {
|
|
2510
|
-
className:
|
|
2577
|
+
className: dn.sectionLabel,
|
|
2511
2578
|
children: e
|
|
2512
2579
|
}), a && /* @__PURE__ */ v("button", {
|
|
2513
2580
|
type: "button",
|
|
2514
|
-
className:
|
|
2581
|
+
className: dn.allToggle,
|
|
2515
2582
|
onClick: () => a(d ? [] : t),
|
|
2516
2583
|
children: d ? "Deselect all" : "Select all"
|
|
2517
2584
|
})]
|
|
2518
2585
|
}),
|
|
2519
2586
|
o && /* @__PURE__ */ v("input", {
|
|
2520
2587
|
type: "text",
|
|
2521
|
-
className:
|
|
2588
|
+
className: dn.search,
|
|
2522
2589
|
placeholder: `Search ${e.toLowerCase()}…`,
|
|
2523
2590
|
autoComplete: "off",
|
|
2524
2591
|
value: s,
|
|
@@ -2526,12 +2593,12 @@ function un({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
|
|
|
2526
2593
|
onChange: (e) => c(e.target.value)
|
|
2527
2594
|
}),
|
|
2528
2595
|
/* @__PURE__ */ y("div", {
|
|
2529
|
-
className:
|
|
2596
|
+
className: dn.optionsList,
|
|
2530
2597
|
children: [u.length === 0 && /* @__PURE__ */ v("div", {
|
|
2531
|
-
className:
|
|
2598
|
+
className: dn.empty,
|
|
2532
2599
|
children: "No match"
|
|
2533
|
-
}), u.map((e) => /* @__PURE__ */ v(
|
|
2534
|
-
className:
|
|
2600
|
+
}), u.map((e) => /* @__PURE__ */ v(Je, {
|
|
2601
|
+
className: dn.option,
|
|
2535
2602
|
checked: r.has(e),
|
|
2536
2603
|
onChange: () => i(e),
|
|
2537
2604
|
label: n(e)
|
|
@@ -2539,7 +2606,7 @@ function un({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
|
|
|
2539
2606
|
})
|
|
2540
2607
|
] });
|
|
2541
2608
|
}
|
|
2542
|
-
var
|
|
2609
|
+
var pn = {
|
|
2543
2610
|
line: "_line_vczwq_1",
|
|
2544
2611
|
box: "_box_vczwq_2",
|
|
2545
2612
|
indicator: "_indicator_vczwq_9",
|
|
@@ -2555,7 +2622,7 @@ var dn = {
|
|
|
2555
2622
|
};
|
|
2556
2623
|
//#endregion
|
|
2557
2624
|
//#region src/components/Tabs.tsx
|
|
2558
|
-
function
|
|
2625
|
+
function mn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
|
|
2559
2626
|
let o = e.filter((e) => !e.disabled).map((e) => e.value), s = p(null), c = p(/* @__PURE__ */ new Map()), l = p(t), [u, f] = m(null), [h, g] = m("idle");
|
|
2560
2627
|
d(() => {
|
|
2561
2628
|
let e = c.current.get(t);
|
|
@@ -2594,18 +2661,18 @@ function fn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2594
2661
|
ref: s,
|
|
2595
2662
|
role: "tablist",
|
|
2596
2663
|
className: [
|
|
2597
|
-
|
|
2598
|
-
r === "box" && i === "sm" &&
|
|
2599
|
-
r === "box" && i === "lg" &&
|
|
2664
|
+
pn[r],
|
|
2665
|
+
r === "box" && i === "sm" && pn.sm,
|
|
2666
|
+
r === "box" && i === "lg" && pn.lg
|
|
2600
2667
|
].filter(Boolean).join(" "),
|
|
2601
2668
|
onKeyDown: b,
|
|
2602
2669
|
...a,
|
|
2603
2670
|
children: [u && /* @__PURE__ */ v("span", {
|
|
2604
2671
|
"aria-hidden": !0,
|
|
2605
2672
|
className: [
|
|
2606
|
-
|
|
2607
|
-
r === "line" ?
|
|
2608
|
-
h === "settling" &&
|
|
2673
|
+
pn.indicator,
|
|
2674
|
+
r === "line" ? pn.indicatorLine : pn.indicatorBox,
|
|
2675
|
+
h === "settling" && pn.settling
|
|
2609
2676
|
].filter(Boolean).join(" "),
|
|
2610
2677
|
onTransitionEnd: _,
|
|
2611
2678
|
style: {
|
|
@@ -2626,34 +2693,34 @@ function fn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2626
2693
|
disabled: e.disabled,
|
|
2627
2694
|
tabIndex: r ? 0 : -1,
|
|
2628
2695
|
className: [
|
|
2629
|
-
|
|
2630
|
-
r &&
|
|
2631
|
-
i &&
|
|
2696
|
+
pn.tab,
|
|
2697
|
+
r && pn.selected,
|
|
2698
|
+
i && pn.iconOnly
|
|
2632
2699
|
].filter(Boolean).join(" "),
|
|
2633
2700
|
onClick: () => !e.disabled && n(e.value),
|
|
2634
2701
|
children: [e.icon && /* @__PURE__ */ v("span", {
|
|
2635
|
-
className:
|
|
2702
|
+
className: pn.icon,
|
|
2636
2703
|
children: e.icon
|
|
2637
2704
|
}), e.label]
|
|
2638
2705
|
}, e.value);
|
|
2639
2706
|
})]
|
|
2640
2707
|
});
|
|
2641
2708
|
}
|
|
2642
|
-
var
|
|
2709
|
+
var hn = {
|
|
2643
2710
|
root: "_root_16e39_1",
|
|
2644
2711
|
label: "_label_16e39_7"
|
|
2645
2712
|
};
|
|
2646
2713
|
//#endregion
|
|
2647
2714
|
//#region src/components/Toggle.tsx
|
|
2648
|
-
function
|
|
2715
|
+
function gn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
2649
2716
|
let a = u();
|
|
2650
2717
|
return /* @__PURE__ */ y("div", {
|
|
2651
|
-
className:
|
|
2718
|
+
className: hn.root,
|
|
2652
2719
|
children: [r && /* @__PURE__ */ v("span", {
|
|
2653
2720
|
id: a,
|
|
2654
|
-
className:
|
|
2721
|
+
className: hn.label,
|
|
2655
2722
|
children: r
|
|
2656
|
-
}), /* @__PURE__ */ v(
|
|
2723
|
+
}), /* @__PURE__ */ v(mn, {
|
|
2657
2724
|
items: e,
|
|
2658
2725
|
value: t,
|
|
2659
2726
|
onChange: n,
|
|
@@ -2664,7 +2731,7 @@ function mn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
|
2664
2731
|
})]
|
|
2665
2732
|
});
|
|
2666
2733
|
}
|
|
2667
|
-
var
|
|
2734
|
+
var _n = {
|
|
2668
2735
|
spinner: "_spinner_9jjxr_3",
|
|
2669
2736
|
inner: "_inner_9jjxr_11",
|
|
2670
2737
|
outer: "_outer_9jjxr_12",
|
|
@@ -2675,10 +2742,10 @@ var hn = {
|
|
|
2675
2742
|
};
|
|
2676
2743
|
//#endregion
|
|
2677
2744
|
//#region src/components/Spinner.tsx
|
|
2678
|
-
function
|
|
2745
|
+
function vn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
|
|
2679
2746
|
let a = [
|
|
2680
|
-
|
|
2681
|
-
|
|
2747
|
+
_n.spinner,
|
|
2748
|
+
_n[e],
|
|
2682
2749
|
r
|
|
2683
2750
|
].filter(Boolean).join(" ");
|
|
2684
2751
|
return /* @__PURE__ */ y("div", {
|
|
@@ -2691,7 +2758,7 @@ function gn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2691
2758
|
},
|
|
2692
2759
|
"data-testid": i,
|
|
2693
2760
|
children: [/* @__PURE__ */ v("svg", {
|
|
2694
|
-
className:
|
|
2761
|
+
className: _n.inner,
|
|
2695
2762
|
width: t,
|
|
2696
2763
|
height: t,
|
|
2697
2764
|
viewBox: "0 0 64 64",
|
|
@@ -2699,7 +2766,7 @@ function gn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2699
2766
|
"aria-hidden": "true",
|
|
2700
2767
|
children: /* @__PURE__ */ v("path", { d: "M45.4273 17.5099C45.5053 17.5796 45.5088 17.6535 45.4377 17.7316L38.8829 24.8071C38.8634 24.828 38.8365 24.8404 38.8079 24.8416C38.7793 24.8428 38.7514 24.8326 38.7303 24.8134C36.6569 22.9045 34.221 22.0275 31.4225 22.1823C29.9153 22.2659 28.5572 22.6333 27.3483 23.2845C25.0295 24.5352 23.4428 26.4155 22.588 28.9253C20.717 34.4308 24.3708 40.1612 29.8184 41.6584C30.8097 41.9302 31.99 41.9735 33.3593 41.788C35.158 41.5433 36.8709 40.5854 38.3412 39.5627C38.4022 39.5203 38.4764 39.5014 38.5502 39.5094C38.6241 39.5175 38.6925 39.552 38.7428 39.6066L45.1742 46.6069C45.1803 46.6137 45.185 46.6217 45.188 46.6303C45.191 46.639 45.1923 46.6482 45.1917 46.6573C45.1911 46.6665 45.1887 46.6754 45.1846 46.6836C45.1805 46.6918 45.1748 46.6992 45.1679 46.7052C44.4401 47.3033 43.6502 47.8855 42.7982 48.4516C39.8799 50.3897 36.6339 51.4633 33.0602 51.6725C29.3847 51.8872 25.9031 51.1106 22.6152 49.3425C19.7917 47.8227 17.4903 45.764 15.7112 43.1663C14.4132 41.2707 13.4349 39.3097 12.8667 37.0717C11.973 33.5775 11.9925 30.1014 12.9253 26.6435C13.1679 25.7483 13.5465 24.8469 13.8414 23.9412C14.6703 21.4035 16.9915 18.887 18.9133 17.1899C26.3467 10.6186 38.1184 10.8908 45.4273 17.5099Z" })
|
|
2701
2768
|
}), /* @__PURE__ */ v("svg", {
|
|
2702
|
-
className:
|
|
2769
|
+
className: _n.outer,
|
|
2703
2770
|
width: t,
|
|
2704
2771
|
height: t,
|
|
2705
2772
|
viewBox: "0 0 64 64",
|
|
@@ -2731,14 +2798,14 @@ var Z = {
|
|
|
2731
2798
|
sheet: "_sheet_3vs6a_206",
|
|
2732
2799
|
fullscreen: "_fullscreen_3vs6a_212",
|
|
2733
2800
|
instant: "_instant_3vs6a_222"
|
|
2734
|
-
},
|
|
2735
|
-
function
|
|
2736
|
-
let t = c(
|
|
2801
|
+
}, yn = 200, bn = "(max-width: 639px)", xn = "(prefers-reduced-motion: reduce)", Sn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", Cn = r(null);
|
|
2802
|
+
function wn(e) {
|
|
2803
|
+
let t = c(Cn);
|
|
2737
2804
|
if (!t) throw Error(`${e} must be rendered inside <Modal>`);
|
|
2738
2805
|
return t;
|
|
2739
2806
|
}
|
|
2740
|
-
var
|
|
2741
|
-
function
|
|
2807
|
+
var Tn = [];
|
|
2808
|
+
function En(e) {
|
|
2742
2809
|
let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
|
|
2743
2810
|
return l(() => {
|
|
2744
2811
|
let t = window.matchMedia(e), r = () => n(t.matches);
|
|
@@ -2746,114 +2813,114 @@ function wn(e) {
|
|
|
2746
2813
|
}, [e]), t;
|
|
2747
2814
|
}
|
|
2748
2815
|
function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", onSubmit: i, dismissible: a = !0, instantInitialOpen: o = !1, portalSelector: c = "#container", isTop: d = !0, role: f = "dialog", "aria-labelledby": h, "data-testid": _, className: y, children: b }) {
|
|
2749
|
-
let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M =
|
|
2750
|
-
|
|
2816
|
+
let x = u(), S = `${x}-title`, C = `${x}-description`, [w, T] = m(!1), [E, D] = m(e), [O, k] = m(e && o), [A, j] = m(!1), M = En(bn), ee = En(xn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
|
|
2817
|
+
L.current = t, l(() => T(!0), []), l(() => {
|
|
2751
2818
|
if (e) {
|
|
2752
|
-
if (
|
|
2753
|
-
if (
|
|
2819
|
+
if (F.current) return;
|
|
2820
|
+
if (P.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), I.current && o) {
|
|
2754
2821
|
k(!0);
|
|
2755
2822
|
return;
|
|
2756
2823
|
}
|
|
2757
2824
|
let e = requestAnimationFrame(() => k(!0));
|
|
2758
2825
|
return () => cancelAnimationFrame(e);
|
|
2759
2826
|
}
|
|
2760
|
-
if (
|
|
2761
|
-
let t = setTimeout(() => D(!1),
|
|
2827
|
+
if (F.current = !1, k(!1), !E) return;
|
|
2828
|
+
let t = setTimeout(() => D(!1), ee ? 0 : yn);
|
|
2762
2829
|
return () => clearTimeout(t);
|
|
2763
2830
|
}, [e]), l(() => {
|
|
2764
|
-
!E &&
|
|
2831
|
+
!E && P.current && (P.current.focus?.(), P.current = null);
|
|
2765
2832
|
}, [E]);
|
|
2766
|
-
let
|
|
2767
|
-
if (!a ||
|
|
2768
|
-
|
|
2769
|
-
let e =
|
|
2770
|
-
window.setTimeout(() =>
|
|
2771
|
-
}, [a,
|
|
2833
|
+
let R = s(() => {
|
|
2834
|
+
if (!a || F.current) return;
|
|
2835
|
+
F.current = !0, k(!1);
|
|
2836
|
+
let e = ee ? 0 : yn;
|
|
2837
|
+
window.setTimeout(() => L.current(), e);
|
|
2838
|
+
}, [a, ee]);
|
|
2772
2839
|
l(() => {
|
|
2773
2840
|
if (!E) return;
|
|
2774
|
-
let e =
|
|
2775
|
-
d &&
|
|
2841
|
+
let e = ne.current;
|
|
2842
|
+
d && Tn.push(e);
|
|
2776
2843
|
let t = (t) => {
|
|
2777
|
-
t.key === "Escape" &&
|
|
2844
|
+
t.key === "Escape" && Tn[Tn.length - 1] === e && (t.preventDefault(), R());
|
|
2778
2845
|
};
|
|
2779
2846
|
document.addEventListener("keydown", t);
|
|
2780
2847
|
let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
|
|
2781
|
-
return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`),
|
|
2848
|
+
return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), N.current?.focus({ preventScroll: !0 }), () => {
|
|
2782
2849
|
document.removeEventListener("keydown", t);
|
|
2783
|
-
let a =
|
|
2784
|
-
a !== -1 &&
|
|
2850
|
+
let a = Tn.indexOf(e);
|
|
2851
|
+
a !== -1 && Tn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
|
|
2785
2852
|
};
|
|
2786
2853
|
}, [
|
|
2787
2854
|
E,
|
|
2788
2855
|
d,
|
|
2789
|
-
|
|
2856
|
+
R
|
|
2790
2857
|
]);
|
|
2791
|
-
let
|
|
2792
|
-
if (e.key !== "Tab" || !
|
|
2793
|
-
let t = Array.from(
|
|
2858
|
+
let z = (e) => {
|
|
2859
|
+
if (e.key !== "Tab" || !N.current) return;
|
|
2860
|
+
let t = Array.from(N.current.querySelectorAll(Sn));
|
|
2794
2861
|
if (t.length === 0) {
|
|
2795
2862
|
e.preventDefault();
|
|
2796
2863
|
return;
|
|
2797
2864
|
}
|
|
2798
2865
|
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
2799
|
-
e.shiftKey && (i === n || i ===
|
|
2866
|
+
e.shiftKey && (i === n || i === N.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
|
|
2800
2867
|
};
|
|
2801
2868
|
if (!w || !E) return null;
|
|
2802
|
-
let
|
|
2869
|
+
let re = document.querySelector(c) ?? document.body, ie = [
|
|
2803
2870
|
Z.modal,
|
|
2804
2871
|
Z[n],
|
|
2805
2872
|
Z[r],
|
|
2806
2873
|
O && Z.visible,
|
|
2807
2874
|
o && Z.instant,
|
|
2808
2875
|
y
|
|
2809
|
-
].filter(Boolean).join(" "),
|
|
2876
|
+
].filter(Boolean).join(" "), ae = {
|
|
2810
2877
|
role: f,
|
|
2811
2878
|
"aria-modal": !0,
|
|
2812
2879
|
"aria-labelledby": h ?? S,
|
|
2813
2880
|
"aria-describedby": A ? C : void 0,
|
|
2814
2881
|
tabIndex: -1,
|
|
2815
|
-
className:
|
|
2882
|
+
className: ie,
|
|
2816
2883
|
"data-testid": _,
|
|
2817
|
-
onKeyDown:
|
|
2818
|
-
},
|
|
2884
|
+
onKeyDown: z
|
|
2885
|
+
}, oe = {
|
|
2819
2886
|
layout: n,
|
|
2820
2887
|
titleId: h ?? S,
|
|
2821
2888
|
descriptionId: C,
|
|
2822
2889
|
isMobile: M,
|
|
2823
2890
|
dismissible: a,
|
|
2824
2891
|
setHasDescription: j,
|
|
2825
|
-
requestClose:
|
|
2892
|
+
requestClose: R
|
|
2826
2893
|
};
|
|
2827
|
-
return g(/* @__PURE__ */ v(
|
|
2828
|
-
value:
|
|
2894
|
+
return g(/* @__PURE__ */ v(Cn.Provider, {
|
|
2895
|
+
value: oe,
|
|
2829
2896
|
children: /* @__PURE__ */ v("div", {
|
|
2830
2897
|
className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
|
|
2831
2898
|
onPointerDown: (e) => {
|
|
2832
|
-
|
|
2899
|
+
te.current = e.target !== e.currentTarget;
|
|
2833
2900
|
},
|
|
2834
2901
|
onClick: (e) => {
|
|
2835
|
-
e.target === e.currentTarget && !
|
|
2902
|
+
e.target === e.currentTarget && !te.current && R(), te.current = !1;
|
|
2836
2903
|
},
|
|
2837
2904
|
children: i ? /* @__PURE__ */ v("form", {
|
|
2838
|
-
ref:
|
|
2905
|
+
ref: N,
|
|
2839
2906
|
onSubmit: i,
|
|
2840
|
-
...
|
|
2907
|
+
...ae,
|
|
2841
2908
|
children: b
|
|
2842
2909
|
}) : /* @__PURE__ */ v("div", {
|
|
2843
|
-
ref:
|
|
2844
|
-
...
|
|
2910
|
+
ref: N,
|
|
2911
|
+
...ae,
|
|
2845
2912
|
children: b
|
|
2846
2913
|
})
|
|
2847
2914
|
})
|
|
2848
|
-
}),
|
|
2915
|
+
}), re);
|
|
2849
2916
|
}
|
|
2850
|
-
function
|
|
2851
|
-
let { requestClose: n, dismissible: r } =
|
|
2917
|
+
function Dn({ children: e, onClose: t }) {
|
|
2918
|
+
let { requestClose: n, dismissible: r } = wn("Modal.Cover");
|
|
2852
2919
|
return /* @__PURE__ */ y("div", {
|
|
2853
2920
|
className: Z.cover,
|
|
2854
2921
|
children: [e, t && /* @__PURE__ */ v(k, {
|
|
2855
2922
|
variant: "tertiary",
|
|
2856
|
-
leadingIcon: /* @__PURE__ */ v(
|
|
2923
|
+
leadingIcon: /* @__PURE__ */ v(je, {}),
|
|
2857
2924
|
"aria-label": "Close",
|
|
2858
2925
|
"data-testid": "modal-close",
|
|
2859
2926
|
className: Z.closeButton,
|
|
@@ -2864,7 +2931,7 @@ function Tn({ children: e, onClose: t }) {
|
|
|
2864
2931
|
})]
|
|
2865
2932
|
});
|
|
2866
2933
|
}
|
|
2867
|
-
function
|
|
2934
|
+
function On({ children: t }) {
|
|
2868
2935
|
let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
|
|
2869
2936
|
return /* @__PURE__ */ y("div", {
|
|
2870
2937
|
className: Z.message,
|
|
@@ -2874,52 +2941,52 @@ function En({ children: t }) {
|
|
|
2874
2941
|
})]
|
|
2875
2942
|
});
|
|
2876
2943
|
}
|
|
2877
|
-
function
|
|
2944
|
+
function kn({ children: e, tone: t = "neutral" }) {
|
|
2878
2945
|
return /* @__PURE__ */ v("div", {
|
|
2879
2946
|
className: `${Z.icon} ${Z[`tone-${t}`]}`,
|
|
2880
2947
|
"aria-hidden": "true",
|
|
2881
2948
|
children: e
|
|
2882
2949
|
});
|
|
2883
2950
|
}
|
|
2884
|
-
function
|
|
2885
|
-
let { titleId: n } =
|
|
2951
|
+
function An({ children: e, id: t }) {
|
|
2952
|
+
let { titleId: n } = wn("Modal.Title");
|
|
2886
2953
|
return /* @__PURE__ */ v("h2", {
|
|
2887
2954
|
id: t ?? n,
|
|
2888
2955
|
className: Z.title,
|
|
2889
2956
|
children: e
|
|
2890
2957
|
});
|
|
2891
2958
|
}
|
|
2892
|
-
function
|
|
2893
|
-
let { descriptionId: t, setHasDescription: n } =
|
|
2959
|
+
function jn({ children: e }) {
|
|
2960
|
+
let { descriptionId: t, setHasDescription: n } = wn("Modal.Description");
|
|
2894
2961
|
return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
|
|
2895
2962
|
id: t,
|
|
2896
2963
|
className: Z.description,
|
|
2897
2964
|
children: e
|
|
2898
2965
|
});
|
|
2899
2966
|
}
|
|
2900
|
-
function
|
|
2967
|
+
function Mn({ children: e }) {
|
|
2901
2968
|
return /* @__PURE__ */ v("p", {
|
|
2902
2969
|
className: Z.hint,
|
|
2903
2970
|
children: e
|
|
2904
2971
|
});
|
|
2905
2972
|
}
|
|
2906
|
-
function
|
|
2973
|
+
function Nn({ children: e }) {
|
|
2907
2974
|
return /* @__PURE__ */ v("div", {
|
|
2908
2975
|
className: Z.body,
|
|
2909
2976
|
children: e
|
|
2910
2977
|
});
|
|
2911
2978
|
}
|
|
2912
|
-
function
|
|
2913
|
-
let { isMobile: r } =
|
|
2979
|
+
function Pn({ children: t }) {
|
|
2980
|
+
let { isMobile: r } = wn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
|
|
2914
2981
|
return /* @__PURE__ */ v("div", {
|
|
2915
2982
|
className: Z.footer,
|
|
2916
2983
|
children: i
|
|
2917
2984
|
});
|
|
2918
2985
|
}
|
|
2919
|
-
Q.Cover =
|
|
2986
|
+
Q.Cover = Dn, Q.Message = On, kn.isModalIcon = !0, Q.Icon = kn, Q.Title = An, Q.Description = jn, Q.Hint = Mn, Q.Body = Nn, Q.Footer = Pn;
|
|
2920
2987
|
//#endregion
|
|
2921
2988
|
//#region src/components/ConfirmDialog.tsx
|
|
2922
|
-
function
|
|
2989
|
+
function Fn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon: a, confirmLabel: o, cancelLabel: s = "Cancel", tone: c = "default", loading: l = !1, "data-testid": u }) {
|
|
2923
2990
|
let d = c === "dangerous";
|
|
2924
2991
|
return /* @__PURE__ */ y(Q, {
|
|
2925
2992
|
open: e,
|
|
@@ -2948,7 +3015,7 @@ function Nn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
|
|
|
2948
3015
|
})] })]
|
|
2949
3016
|
});
|
|
2950
3017
|
}
|
|
2951
|
-
var
|
|
3018
|
+
var In = {
|
|
2952
3019
|
root: "_root_rybn9_1",
|
|
2953
3020
|
success: "_success_rybn9_11",
|
|
2954
3021
|
warning: "_warning_rybn9_17",
|
|
@@ -2961,45 +3028,45 @@ var Pn = {
|
|
|
2961
3028
|
};
|
|
2962
3029
|
//#endregion
|
|
2963
3030
|
//#region src/components/EmptyState.tsx
|
|
2964
|
-
function
|
|
3031
|
+
function Ln({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
|
|
2965
3032
|
return /* @__PURE__ */ y("div", {
|
|
2966
|
-
className: `${
|
|
3033
|
+
className: `${In.root} ${e === "neutral" ? "" : In[e]}`,
|
|
2967
3034
|
...a,
|
|
2968
3035
|
children: [t != null && /* @__PURE__ */ v("div", {
|
|
2969
|
-
className:
|
|
3036
|
+
className: In.icon,
|
|
2970
3037
|
"aria-hidden": "true",
|
|
2971
3038
|
children: t
|
|
2972
3039
|
}), /* @__PURE__ */ y("div", {
|
|
2973
|
-
className:
|
|
3040
|
+
className: In.body,
|
|
2974
3041
|
children: [
|
|
2975
3042
|
/* @__PURE__ */ v("p", {
|
|
2976
|
-
className:
|
|
3043
|
+
className: In.title,
|
|
2977
3044
|
children: n
|
|
2978
3045
|
}),
|
|
2979
3046
|
r != null && /* @__PURE__ */ v("div", {
|
|
2980
|
-
className:
|
|
3047
|
+
className: In.text,
|
|
2981
3048
|
children: r
|
|
2982
3049
|
}),
|
|
2983
3050
|
i != null && /* @__PURE__ */ v("div", {
|
|
2984
|
-
className:
|
|
3051
|
+
className: In.action,
|
|
2985
3052
|
children: i
|
|
2986
3053
|
})
|
|
2987
3054
|
]
|
|
2988
3055
|
})]
|
|
2989
3056
|
});
|
|
2990
3057
|
}
|
|
2991
|
-
var
|
|
2992
|
-
function
|
|
3058
|
+
var Rn = { photoPreview: "_photoPreview_1m76k_2" }, zn = 180, Bn = 12, Vn = 8;
|
|
3059
|
+
function Hn(e, t, n = zn) {
|
|
2993
3060
|
let r = (e, t) => {
|
|
2994
|
-
let r = e +
|
|
2995
|
-
return Math.max(
|
|
3061
|
+
let r = e + Bn, i = r + n + Vn > t ? e - Bn - n : r;
|
|
3062
|
+
return Math.max(Vn, i);
|
|
2996
3063
|
};
|
|
2997
3064
|
return {
|
|
2998
3065
|
left: r(e, window.innerWidth),
|
|
2999
3066
|
top: r(t, window.innerHeight)
|
|
3000
3067
|
};
|
|
3001
3068
|
}
|
|
3002
|
-
function
|
|
3069
|
+
function Un({ src: e, size: t = zn, children: r }) {
|
|
3003
3070
|
let [i, a] = m(null), [o, s] = m(), c = i !== null;
|
|
3004
3071
|
if (l(() => {
|
|
3005
3072
|
if (!c) return;
|
|
@@ -3025,14 +3092,14 @@ function Vn({ src: e, size: t = Ln, children: r }) {
|
|
|
3025
3092
|
}
|
|
3026
3093
|
});
|
|
3027
3094
|
return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
|
|
3028
|
-
className:
|
|
3095
|
+
className: Rn.photoPreview,
|
|
3029
3096
|
src: e,
|
|
3030
3097
|
alt: "",
|
|
3031
3098
|
"aria-hidden": "true",
|
|
3032
3099
|
style: {
|
|
3033
3100
|
width: t,
|
|
3034
3101
|
height: t,
|
|
3035
|
-
...
|
|
3102
|
+
...Hn(i.x, i.y, t)
|
|
3036
3103
|
},
|
|
3037
3104
|
onError: () => {
|
|
3038
3105
|
s(e), a(null);
|
|
@@ -3040,55 +3107,56 @@ function Vn({ src: e, size: t = Ln, children: r }) {
|
|
|
3040
3107
|
}), document.body)] });
|
|
3041
3108
|
}
|
|
3042
3109
|
var $ = {
|
|
3043
|
-
root: "
|
|
3044
|
-
hasActions: "
|
|
3045
|
-
current: "
|
|
3046
|
-
interactive: "
|
|
3047
|
-
side: "
|
|
3048
|
-
thumb: "
|
|
3049
|
-
thumbImg: "
|
|
3050
|
-
tile: "
|
|
3051
|
-
icon: "
|
|
3052
|
-
tilePlay: "
|
|
3053
|
-
badge: "
|
|
3054
|
-
main: "
|
|
3055
|
-
columns: "
|
|
3056
|
-
info: "
|
|
3057
|
-
aside: "
|
|
3058
|
-
date: "
|
|
3059
|
-
label: "
|
|
3060
|
-
title: "
|
|
3061
|
-
workerName: "
|
|
3062
|
-
description: "
|
|
3063
|
-
meta: "
|
|
3064
|
-
comment: "
|
|
3065
|
-
worker: "
|
|
3066
|
-
workerRow: "
|
|
3067
|
-
photo: "
|
|
3068
|
-
emptyPhoto: "
|
|
3069
|
-
workerText: "
|
|
3070
|
-
actions: "
|
|
3071
|
-
srOnly: "
|
|
3072
|
-
},
|
|
3110
|
+
root: "_root_c998z_1",
|
|
3111
|
+
hasActions: "_hasActions_c998z_20",
|
|
3112
|
+
current: "_current_c998z_25",
|
|
3113
|
+
interactive: "_interactive_c998z_30",
|
|
3114
|
+
side: "_side_c998z_52",
|
|
3115
|
+
thumb: "_thumb_c998z_61",
|
|
3116
|
+
thumbImg: "_thumbImg_c998z_68",
|
|
3117
|
+
tile: "_tile_c998z_75",
|
|
3118
|
+
icon: "_icon_c998z_95",
|
|
3119
|
+
tilePlay: "_tilePlay_c998z_100",
|
|
3120
|
+
badge: "_badge_c998z_104",
|
|
3121
|
+
main: "_main_c998z_117",
|
|
3122
|
+
columns: "_columns_c998z_125",
|
|
3123
|
+
info: "_info_c998z_133",
|
|
3124
|
+
aside: "_aside_c998z_134",
|
|
3125
|
+
date: "_date_c998z_145",
|
|
3126
|
+
label: "_label_c998z_146",
|
|
3127
|
+
title: "_title_c998z_154",
|
|
3128
|
+
workerName: "_workerName_c998z_155",
|
|
3129
|
+
description: "_description_c998z_162",
|
|
3130
|
+
meta: "_meta_c998z_163",
|
|
3131
|
+
comment: "_comment_c998z_180",
|
|
3132
|
+
worker: "_worker_c998z_155",
|
|
3133
|
+
workerRow: "_workerRow_c998z_205",
|
|
3134
|
+
photo: "_photo_c998z_211",
|
|
3135
|
+
emptyPhoto: "_emptyPhoto_c998z_219",
|
|
3136
|
+
workerText: "_workerText_c998z_227",
|
|
3137
|
+
actions: "_actions_c998z_232",
|
|
3138
|
+
srOnly: "_srOnly_c998z_243"
|
|
3139
|
+
}, Wn = {
|
|
3073
3140
|
worker: "Worker:",
|
|
3074
3141
|
comment: "Comment:",
|
|
3075
3142
|
inaccessible: "Inaccessible",
|
|
3076
3143
|
archived: "Archived",
|
|
3144
|
+
unavailable: "Preview unavailable",
|
|
3077
3145
|
new: "Unwatched"
|
|
3078
3146
|
};
|
|
3079
|
-
function
|
|
3147
|
+
function Gn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n, previewAlt: r, dateTime: i, title: a, description: o, meta: s, worker: c, comment: l, viewed: u = !1, current: d, onClick: f, hoverable: p, actions: h, labels: g, "aria-label": b, className: x, "data-testid": S }) {
|
|
3080
3148
|
let C = {
|
|
3081
|
-
...
|
|
3149
|
+
...Wn,
|
|
3082
3150
|
...g
|
|
3083
3151
|
}, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
|
|
3084
3152
|
e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
|
|
3085
|
-
},
|
|
3153
|
+
}, ee = [
|
|
3086
3154
|
$.root,
|
|
3087
3155
|
(j || p) && $.interactive,
|
|
3088
3156
|
d && $.current,
|
|
3089
3157
|
h != null && $.hasActions,
|
|
3090
3158
|
x
|
|
3091
|
-
].filter(Boolean).join(" "),
|
|
3159
|
+
].filter(Boolean).join(" "), N = j ? {
|
|
3092
3160
|
role: "button",
|
|
3093
3161
|
tabIndex: 0,
|
|
3094
3162
|
"aria-label": b ?? (l ? `Video ${l}` : "Video"),
|
|
@@ -3096,9 +3164,9 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3096
3164
|
onKeyDown: M
|
|
3097
3165
|
} : { "aria-label": b };
|
|
3098
3166
|
return /* @__PURE__ */ y("div", {
|
|
3099
|
-
className:
|
|
3167
|
+
className: ee,
|
|
3100
3168
|
"data-testid": S,
|
|
3101
|
-
...
|
|
3169
|
+
...N,
|
|
3102
3170
|
children: [
|
|
3103
3171
|
/* @__PURE__ */ y("div", {
|
|
3104
3172
|
className: $.side,
|
|
@@ -3115,17 +3183,17 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3115
3183
|
}
|
|
3116
3184
|
}) : /* @__PURE__ */ v("div", {
|
|
3117
3185
|
className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
|
|
3118
|
-
children: t === "play" ? /* @__PURE__ */ v(
|
|
3186
|
+
children: t === "play" ? /* @__PURE__ */ v(Te, {
|
|
3119
3187
|
size: 20,
|
|
3120
3188
|
"aria-hidden": "true"
|
|
3121
3189
|
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
|
|
3122
3190
|
className: $.icon,
|
|
3123
|
-
children: v(t === "archived" ?
|
|
3191
|
+
children: v(t === "archived" ? ce : t === "unavailable" ? xe : Ce, {
|
|
3124
3192
|
size: 12,
|
|
3125
3193
|
strokeWidth: 1,
|
|
3126
3194
|
"aria-hidden": "true"
|
|
3127
3195
|
})
|
|
3128
|
-
}), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : C.inaccessible })] })
|
|
3196
|
+
}), /* @__PURE__ */ v("span", { children: t === "archived" ? C.archived : t === "unavailable" ? C.unavailable : C.inaccessible })] })
|
|
3129
3197
|
})
|
|
3130
3198
|
}), !u && /* @__PURE__ */ v("span", {
|
|
3131
3199
|
className: $.badge,
|
|
@@ -3165,7 +3233,7 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3165
3233
|
children: C.worker
|
|
3166
3234
|
}), /* @__PURE__ */ y("div", {
|
|
3167
3235
|
className: $.workerRow,
|
|
3168
|
-
children: [A ? /* @__PURE__ */ v(
|
|
3236
|
+
children: [A ? /* @__PURE__ */ v(Un, {
|
|
3169
3237
|
src: k,
|
|
3170
3238
|
children: /* @__PURE__ */ v("img", {
|
|
3171
3239
|
className: $.photo,
|
|
@@ -3178,7 +3246,7 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3178
3246
|
}) : /* @__PURE__ */ v("div", {
|
|
3179
3247
|
className: `${$.photo} ${$.emptyPhoto}`,
|
|
3180
3248
|
"aria-hidden": "true",
|
|
3181
|
-
children: /* @__PURE__ */ v(
|
|
3249
|
+
children: /* @__PURE__ */ v(ke, { size: 20 })
|
|
3182
3250
|
}), /* @__PURE__ */ v("div", {
|
|
3183
3251
|
className: $.workerText,
|
|
3184
3252
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -3205,14 +3273,14 @@ function Un({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3205
3273
|
]
|
|
3206
3274
|
});
|
|
3207
3275
|
}
|
|
3208
|
-
function
|
|
3276
|
+
function Kn({ className: e, "data-testid": t }) {
|
|
3209
3277
|
return /* @__PURE__ */ y("div", {
|
|
3210
3278
|
className: `${$.root} ${e ?? ""}`,
|
|
3211
3279
|
"data-testid": t,
|
|
3212
3280
|
"aria-hidden": "true",
|
|
3213
3281
|
children: [/* @__PURE__ */ v("div", {
|
|
3214
3282
|
className: $.side,
|
|
3215
|
-
children: /* @__PURE__ */ v(
|
|
3283
|
+
children: /* @__PURE__ */ v(kt, {
|
|
3216
3284
|
width: 72,
|
|
3217
3285
|
height: 48
|
|
3218
3286
|
})
|
|
@@ -3221,15 +3289,15 @@ function Wn({ className: e, "data-testid": t }) {
|
|
|
3221
3289
|
children: /* @__PURE__ */ y("div", {
|
|
3222
3290
|
className: $.info,
|
|
3223
3291
|
children: [
|
|
3224
|
-
/* @__PURE__ */ v(
|
|
3292
|
+
/* @__PURE__ */ v(kt, {
|
|
3225
3293
|
variant: "text",
|
|
3226
3294
|
width: "40%"
|
|
3227
3295
|
}),
|
|
3228
|
-
/* @__PURE__ */ v(
|
|
3296
|
+
/* @__PURE__ */ v(kt, {
|
|
3229
3297
|
variant: "text",
|
|
3230
3298
|
width: "65%"
|
|
3231
3299
|
}),
|
|
3232
|
-
/* @__PURE__ */ v(
|
|
3300
|
+
/* @__PURE__ */ v(kt, {
|
|
3233
3301
|
variant: "text",
|
|
3234
3302
|
width: "90%"
|
|
3235
3303
|
})
|
|
@@ -3238,18 +3306,18 @@ function Wn({ className: e, "data-testid": t }) {
|
|
|
3238
3306
|
})]
|
|
3239
3307
|
});
|
|
3240
3308
|
}
|
|
3241
|
-
var
|
|
3309
|
+
var qn = Object.assign(Gn, { Skeleton: Kn });
|
|
3242
3310
|
//#endregion
|
|
3243
3311
|
//#region src/utils/format.ts
|
|
3244
|
-
function
|
|
3312
|
+
function Jn(e) {
|
|
3245
3313
|
let t = Math.floor(e / 60), n = e % 60;
|
|
3246
3314
|
return `${t}h:${String(n).padStart(2, "0")}m`;
|
|
3247
3315
|
}
|
|
3248
|
-
function
|
|
3316
|
+
function Yn(e, t) {
|
|
3249
3317
|
let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
|
|
3250
3318
|
return `${i(n)}:${i(r)}:${i(t)}`;
|
|
3251
3319
|
}
|
|
3252
3320
|
//#endregion
|
|
3253
|
-
export {
|
|
3321
|
+
export { N as Badge, k as Button, St as Calendar, j as Card, Je as Checkbox, Xe as CheckboxGroup, Fn as ConfirmDialog, ot as DateField, Dt as DatePicker, Bt as DateRangePicker, Zt as Dropdown, Ln as EmptyState, ze as FieldLabel, fn as FilterSection, un as HighlightText, sn as LanguageSwitch, rn as Logo, Wt as Menu, Gt as MenuDivider, qt as MenuItem, Q as Modal, tn as NavItem, nn as NavList, Ht as NumberField, at as PasswordField, Un as PhotoPreview, Qe as RadioButton, $e as RadioGroup, an as Sidebar, on as SidebarFooter, kt as Skeleton, vn as Spinner, tt as Switch, mn as Tabs, Fe as Tag, Be as TagGroup, it as TextArea, nt as TextField, gn as Toggle, He as Toolbar, Ke as ToolbarAdaptive, C as Tooltip, qn as VideoCard, Jn as formatDuration, Yn as formatDurationHMS };
|
|
3254
3322
|
|
|
3255
3323
|
//# sourceMappingURL=index.js.map
|