cattle-care-ui 0.5.6 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Sidebar.d.ts +8 -10
- package/dist/index.css +1 -1
- package/dist/index.js +921 -937
- 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 N(...e) {
|
|
217
217
|
return e.filter(Boolean).join(" ");
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function P({ 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: N(M.badge, M[e], M[t]),
|
|
222
222
|
...o,
|
|
223
223
|
children: [
|
|
224
224
|
a && /* @__PURE__ */ v("span", {
|
|
@@ -239,13 +239,13 @@ function N({ 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 F = (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 I(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: F(e),
|
|
249
249
|
size: 24,
|
|
250
250
|
node: t,
|
|
251
251
|
...n.length > 0 ? { aliases: n } : {}
|
|
@@ -253,7 +253,7 @@ function F(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 ee = (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 te = (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
|
+
}, te = (e) => {
|
|
267
|
+
let t = ee(e);
|
|
268
268
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
269
|
-
},
|
|
269
|
+
}, L = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), R = {
|
|
270
270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
271
271
|
width: 24,
|
|
272
272
|
height: 24,
|
|
@@ -279,22 +279,22 @@ var te = (e) => {
|
|
|
279
279
|
};
|
|
280
280
|
//#endregion
|
|
281
281
|
//#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
|
|
282
|
-
function
|
|
282
|
+
function z(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 B(e, t = {}) {
|
|
286
|
+
let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? R.width, a = e.size ?? e.height ?? R.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 ? L(...c) : L("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? R["stroke-width"]) * Number(e.size ?? e.width ?? R.width) / Number(t.size ?? t.width ?? R.width) : t.strokeWidth ?? R["stroke-width"];
|
|
287
287
|
return [
|
|
288
288
|
"svg",
|
|
289
289
|
{
|
|
290
|
-
...Object.entries(
|
|
290
|
+
...Object.entries(R).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 && z(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 && z(t.width) && { [r("width")]: t.width },
|
|
297
|
+
..."height" in t && z(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 z(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 ne(e, t = {}) {
|
|
320
|
+
return B(e, {
|
|
321
321
|
...t,
|
|
322
322
|
attributeNames: {
|
|
323
323
|
...t.attributeNames,
|
|
@@ -331,22 +331,22 @@ function re(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 re = (e) => {
|
|
335
335
|
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
336
336
|
return !1;
|
|
337
|
-
},
|
|
337
|
+
}, ie = r({}), ae = () => c(ie), oe = 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 = "" } = ae() ?? {}, b = !!l || re(f), [x, S, C = []] = ne(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: L(y, c),
|
|
350
350
|
hasA11yProp: b,
|
|
351
351
|
attributes: f
|
|
352
352
|
});
|
|
@@ -357,18 +357,18 @@ var ie = (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 V(e, t = [], n = []) {
|
|
361
|
+
let r = typeof e == "string" ? I(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(oe, {
|
|
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 = te(r.name)), o;
|
|
368
368
|
}
|
|
369
369
|
//#endregion
|
|
370
370
|
//#region node_modules/lucide-react/dist/esm/icons/archive.mjs
|
|
371
|
-
var
|
|
371
|
+
var se = {
|
|
372
372
|
name: "archive",
|
|
373
373
|
size: 24,
|
|
374
374
|
node: [
|
|
@@ -390,8 +390,8 @@ var V = {
|
|
|
390
390
|
}]
|
|
391
391
|
]
|
|
392
392
|
};
|
|
393
|
-
|
|
394
|
-
var
|
|
393
|
+
se.node;
|
|
394
|
+
var H = V(se), U = {
|
|
395
395
|
name: "calendar-days",
|
|
396
396
|
size: 24,
|
|
397
397
|
node: [
|
|
@@ -441,8 +441,8 @@ var ce = B(V), H = {
|
|
|
441
441
|
}]
|
|
442
442
|
]
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
var
|
|
444
|
+
U.node;
|
|
445
|
+
var ce = V(U), le = {
|
|
446
446
|
name: "check",
|
|
447
447
|
size: 24,
|
|
448
448
|
node: [["path", {
|
|
@@ -450,8 +450,8 @@ var le = B(H), ue = {
|
|
|
450
450
|
key: "1gmf2c"
|
|
451
451
|
}]]
|
|
452
452
|
};
|
|
453
|
-
|
|
454
|
-
var
|
|
453
|
+
le.node;
|
|
454
|
+
var W = V(le), G = {
|
|
455
455
|
name: "chevron-down",
|
|
456
456
|
size: 24,
|
|
457
457
|
node: [["path", {
|
|
@@ -459,8 +459,8 @@ var U = B(ue), W = {
|
|
|
459
459
|
key: "qrunsl"
|
|
460
460
|
}]]
|
|
461
461
|
};
|
|
462
|
-
|
|
463
|
-
var
|
|
462
|
+
G.node;
|
|
463
|
+
var ue = V(G), de = {
|
|
464
464
|
name: "chevron-left",
|
|
465
465
|
size: 24,
|
|
466
466
|
node: [["path", {
|
|
@@ -468,8 +468,8 @@ var de = B(W), fe = {
|
|
|
468
468
|
key: "1wnfg3"
|
|
469
469
|
}]]
|
|
470
470
|
};
|
|
471
|
-
|
|
472
|
-
var
|
|
471
|
+
de.node;
|
|
472
|
+
var fe = V(de), pe = {
|
|
473
473
|
name: "chevron-right",
|
|
474
474
|
size: 24,
|
|
475
475
|
node: [["path", {
|
|
@@ -477,8 +477,8 @@ var pe = B(fe), me = {
|
|
|
477
477
|
key: "mthhwq"
|
|
478
478
|
}]]
|
|
479
479
|
};
|
|
480
|
-
|
|
481
|
-
var
|
|
480
|
+
pe.node;
|
|
481
|
+
var me = V(pe), he = {
|
|
482
482
|
name: "eye-off",
|
|
483
483
|
size: 24,
|
|
484
484
|
node: [
|
|
@@ -500,8 +500,8 @@ var he = B(me), ge = {
|
|
|
500
500
|
}]
|
|
501
501
|
]
|
|
502
502
|
};
|
|
503
|
-
|
|
504
|
-
var
|
|
503
|
+
he.node;
|
|
504
|
+
var ge = V(he), _e = {
|
|
505
505
|
name: "eye",
|
|
506
506
|
size: 24,
|
|
507
507
|
node: [["path", {
|
|
@@ -514,8 +514,8 @@ var _e = B(ge), ve = {
|
|
|
514
514
|
key: "1v7zrd"
|
|
515
515
|
}]]
|
|
516
516
|
};
|
|
517
|
-
|
|
518
|
-
var
|
|
517
|
+
_e.node;
|
|
518
|
+
var ve = V(_e), ye = {
|
|
519
519
|
name: "file-clock",
|
|
520
520
|
size: 24,
|
|
521
521
|
node: [
|
|
@@ -539,8 +539,8 @@ var ye = B(ve), be = {
|
|
|
539
539
|
}]
|
|
540
540
|
]
|
|
541
541
|
};
|
|
542
|
-
|
|
543
|
-
var
|
|
542
|
+
ye.node;
|
|
543
|
+
var be = V(ye), xe = {
|
|
544
544
|
name: "image-off",
|
|
545
545
|
size: 24,
|
|
546
546
|
node: [
|
|
@@ -579,8 +579,8 @@ var xe = B(be), Se = {
|
|
|
579
579
|
}]
|
|
580
580
|
]
|
|
581
581
|
};
|
|
582
|
-
|
|
583
|
-
var
|
|
582
|
+
xe.node;
|
|
583
|
+
var Se = V(xe), Ce = {
|
|
584
584
|
name: "lock",
|
|
585
585
|
size: 24,
|
|
586
586
|
node: [["rect", {
|
|
@@ -596,8 +596,8 @@ var Ce = B(Se), we = {
|
|
|
596
596
|
key: "fwvmzm"
|
|
597
597
|
}]]
|
|
598
598
|
};
|
|
599
|
-
|
|
600
|
-
var
|
|
599
|
+
Ce.node;
|
|
600
|
+
var we = V(Ce), Te = {
|
|
601
601
|
name: "play",
|
|
602
602
|
size: 24,
|
|
603
603
|
node: [["path", {
|
|
@@ -605,8 +605,8 @@ var Te = B(we), Ee = {
|
|
|
605
605
|
key: "10ikf1"
|
|
606
606
|
}]]
|
|
607
607
|
};
|
|
608
|
-
|
|
609
|
-
var
|
|
608
|
+
Te.node;
|
|
609
|
+
var Ee = V(Te), De = {
|
|
610
610
|
name: "search",
|
|
611
611
|
size: 24,
|
|
612
612
|
node: [["path", {
|
|
@@ -619,22 +619,8 @@ var De = B(Ee), Oe = {
|
|
|
619
619
|
key: "4ej97u"
|
|
620
620
|
}]]
|
|
621
621
|
};
|
|
622
|
-
|
|
623
|
-
var
|
|
624
|
-
name: "user",
|
|
625
|
-
size: 24,
|
|
626
|
-
node: [["path", {
|
|
627
|
-
d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",
|
|
628
|
-
key: "975kel"
|
|
629
|
-
}], ["circle", {
|
|
630
|
-
cx: "12",
|
|
631
|
-
cy: "7",
|
|
632
|
-
r: "4",
|
|
633
|
-
key: "17ys0d"
|
|
634
|
-
}]]
|
|
635
|
-
};
|
|
636
|
-
Ae.node;
|
|
637
|
-
var je = B(Ae), Me = {
|
|
622
|
+
De.node;
|
|
623
|
+
var Oe = V(De), ke = {
|
|
638
624
|
name: "x",
|
|
639
625
|
size: 24,
|
|
640
626
|
node: [["path", {
|
|
@@ -645,8 +631,8 @@ var je = B(Ae), Me = {
|
|
|
645
631
|
key: "d8bk6v"
|
|
646
632
|
}]]
|
|
647
633
|
};
|
|
648
|
-
|
|
649
|
-
var
|
|
634
|
+
ke.node;
|
|
635
|
+
var Ae = V(ke), je = {
|
|
650
636
|
neutral: "_neutral_71hh2_1",
|
|
651
637
|
pill: "_pill_71hh2_2",
|
|
652
638
|
accent: "_accent_71hh2_3",
|
|
@@ -664,53 +650,53 @@ var Ne = B(Me), Pe = {
|
|
|
664
650
|
main: "_main_71hh2_173",
|
|
665
651
|
remove: "_remove_71hh2_174",
|
|
666
652
|
removable: "_removable_71hh2_203"
|
|
667
|
-
},
|
|
653
|
+
}, Me = {
|
|
668
654
|
chip: "_chip_1plyt_5",
|
|
669
655
|
disabled: "_disabled_1plyt_16",
|
|
670
656
|
selected: "_selected_1plyt_30"
|
|
671
657
|
};
|
|
672
658
|
//#endregion
|
|
673
659
|
//#region src/components/Tag.tsx
|
|
674
|
-
function
|
|
660
|
+
function Ne(...e) {
|
|
675
661
|
return e.filter(Boolean).join(" ");
|
|
676
662
|
}
|
|
677
|
-
function
|
|
663
|
+
function Pe(e) {
|
|
678
664
|
if (e.variant === "count") {
|
|
679
665
|
let { variant: t, children: n, ...r } = e;
|
|
680
666
|
return /* @__PURE__ */ v("span", {
|
|
681
|
-
className:
|
|
667
|
+
className: je[t],
|
|
682
668
|
...r,
|
|
683
669
|
children: n
|
|
684
670
|
});
|
|
685
671
|
}
|
|
686
|
-
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 =
|
|
687
|
-
className:
|
|
672
|
+
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 = Ne(je[t], f && Me.chip, f && p && Me.selected, f && a && Me.disabled, (u || d) && je.interactive, p && je.pressed, a && je.disabled, (o != null || d) && je.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
|
|
673
|
+
className: je.leading,
|
|
688
674
|
children: o
|
|
689
675
|
}), n] });
|
|
690
676
|
return d ? /* @__PURE__ */ y("span", {
|
|
691
|
-
className:
|
|
677
|
+
className: Ne(m, je.removable),
|
|
692
678
|
...l,
|
|
693
679
|
children: [u ? /* @__PURE__ */ v("button", {
|
|
694
680
|
type: "button",
|
|
695
|
-
className:
|
|
681
|
+
className: Ne(je.main, je.slots),
|
|
696
682
|
"aria-pressed": i,
|
|
697
683
|
disabled: a,
|
|
698
684
|
onClick: r,
|
|
699
685
|
children: h
|
|
700
686
|
}) : h, /* @__PURE__ */ v("button", {
|
|
701
687
|
type: "button",
|
|
702
|
-
className:
|
|
688
|
+
className: je.remove,
|
|
703
689
|
"aria-label": c,
|
|
704
690
|
disabled: a,
|
|
705
691
|
onClick: () => s(),
|
|
706
|
-
children: /* @__PURE__ */ v(
|
|
692
|
+
children: /* @__PURE__ */ v(Ae, {
|
|
707
693
|
size: 12,
|
|
708
694
|
"aria-hidden": "true"
|
|
709
695
|
})
|
|
710
696
|
})]
|
|
711
697
|
}) : u ? /* @__PURE__ */ v("button", {
|
|
712
698
|
type: "button",
|
|
713
|
-
className:
|
|
699
|
+
className: Ne(m, je.button),
|
|
714
700
|
"aria-pressed": i,
|
|
715
701
|
disabled: a,
|
|
716
702
|
onClick: r,
|
|
@@ -722,20 +708,20 @@ function Le(e) {
|
|
|
722
708
|
children: h
|
|
723
709
|
});
|
|
724
710
|
}
|
|
725
|
-
var
|
|
711
|
+
var Fe = {
|
|
726
712
|
group: "_group_kw1z2_1",
|
|
727
713
|
sm: "_sm_kw1z2_9",
|
|
728
714
|
chip: "_chip_kw1z2_13 _chip_1plyt_5",
|
|
729
715
|
base: "_base_kw1z2_28",
|
|
730
716
|
selected: "_selected_kw1z2_44 _selected_1plyt_30"
|
|
731
|
-
},
|
|
717
|
+
}, Ie = {
|
|
732
718
|
group: "_group_1gqda_1",
|
|
733
719
|
groupLabel: "_groupLabel_1gqda_7"
|
|
734
|
-
},
|
|
720
|
+
}, Le = { label: "_label_1hzxz_1" };
|
|
735
721
|
//#endregion
|
|
736
722
|
//#region src/components/FieldLabel.tsx
|
|
737
|
-
function
|
|
738
|
-
let r = `${
|
|
723
|
+
function Re({ children: e, htmlFor: t, className: n }) {
|
|
724
|
+
let r = `${Le.label} ${n ?? ""}`.trim();
|
|
739
725
|
return t ? /* @__PURE__ */ v("label", {
|
|
740
726
|
className: r,
|
|
741
727
|
htmlFor: t,
|
|
@@ -747,36 +733,36 @@ function Ve({ children: e, htmlFor: t, className: n }) {
|
|
|
747
733
|
}
|
|
748
734
|
//#endregion
|
|
749
735
|
//#region src/components/TagGroup.tsx
|
|
750
|
-
function
|
|
736
|
+
function ze({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
|
|
751
737
|
function s(e) {
|
|
752
738
|
n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
753
739
|
}
|
|
754
740
|
let c = /* @__PURE__ */ v("div", {
|
|
755
741
|
role: "group",
|
|
756
742
|
"aria-label": a ? void 0 : o["aria-label"],
|
|
757
|
-
className: `${
|
|
743
|
+
className: `${Fe.group} ${Fe[r]}`,
|
|
758
744
|
children: e.map((e) => {
|
|
759
745
|
let n = t.includes(e.value), r = i || e.disabled;
|
|
760
746
|
return /* @__PURE__ */ v("button", {
|
|
761
747
|
type: "button",
|
|
762
748
|
"aria-pressed": n,
|
|
763
749
|
disabled: r,
|
|
764
|
-
className: [
|
|
750
|
+
className: [Fe.chip, n && Fe.selected].filter(Boolean).join(" "),
|
|
765
751
|
onClick: () => !r && s(e.value),
|
|
766
752
|
children: e.label
|
|
767
753
|
}, e.value);
|
|
768
754
|
})
|
|
769
755
|
});
|
|
770
756
|
return a ? /* @__PURE__ */ y("div", {
|
|
771
|
-
className:
|
|
757
|
+
className: Ie.group,
|
|
772
758
|
...o,
|
|
773
|
-
children: [/* @__PURE__ */ v(
|
|
774
|
-
className:
|
|
759
|
+
children: [/* @__PURE__ */ v(Re, {
|
|
760
|
+
className: Ie.groupLabel,
|
|
775
761
|
children: a
|
|
776
762
|
}), c]
|
|
777
763
|
}) : c;
|
|
778
764
|
}
|
|
779
|
-
var
|
|
765
|
+
var Be = {
|
|
780
766
|
toolbar: "_toolbar_1naq9_1",
|
|
781
767
|
searchWrap: "_searchWrap_1naq9_14",
|
|
782
768
|
searchIcon: "_searchIcon_1naq9_33",
|
|
@@ -786,7 +772,7 @@ var Ue = {
|
|
|
786
772
|
};
|
|
787
773
|
//#endregion
|
|
788
774
|
//#region src/components/Toolbar.tsx
|
|
789
|
-
function
|
|
775
|
+
function Ve({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
|
|
790
776
|
let o = p(null);
|
|
791
777
|
return l(() => {
|
|
792
778
|
function e(e) {
|
|
@@ -794,36 +780,36 @@ function We({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", s
|
|
|
794
780
|
}
|
|
795
781
|
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
796
782
|
}, [i]), /* @__PURE__ */ y("div", {
|
|
797
|
-
className:
|
|
783
|
+
className: Be.toolbar,
|
|
798
784
|
children: [/* @__PURE__ */ y("div", {
|
|
799
|
-
className:
|
|
785
|
+
className: Be.searchWrap,
|
|
800
786
|
children: [
|
|
801
787
|
/* @__PURE__ */ v("span", {
|
|
802
|
-
className:
|
|
803
|
-
children: /* @__PURE__ */ v(
|
|
788
|
+
className: Be.searchIcon,
|
|
789
|
+
children: /* @__PURE__ */ v(Oe, {})
|
|
804
790
|
}),
|
|
805
791
|
/* @__PURE__ */ v("input", {
|
|
806
792
|
ref: o,
|
|
807
793
|
type: "text",
|
|
808
|
-
className:
|
|
794
|
+
className: Be.search,
|
|
809
795
|
placeholder: n,
|
|
810
796
|
autoComplete: "off",
|
|
811
797
|
value: e,
|
|
812
798
|
onChange: (e) => t?.(e.target.value)
|
|
813
799
|
}),
|
|
814
800
|
r && /* @__PURE__ */ v("span", {
|
|
815
|
-
className:
|
|
801
|
+
className: Be.searchShortcut,
|
|
816
802
|
"aria-hidden": "true",
|
|
817
803
|
children: r
|
|
818
804
|
})
|
|
819
805
|
]
|
|
820
806
|
}), a && /* @__PURE__ */ v("div", {
|
|
821
|
-
className:
|
|
807
|
+
className: Be.controls,
|
|
822
808
|
children: a
|
|
823
809
|
})]
|
|
824
810
|
});
|
|
825
811
|
}
|
|
826
|
-
var
|
|
812
|
+
var He = {
|
|
827
813
|
anchor: "_anchor_12u1t_3",
|
|
828
814
|
sentinel: "_sentinel_12u1t_8",
|
|
829
815
|
header: "_header_12u1t_17",
|
|
@@ -831,8 +817,8 @@ var Ge = {
|
|
|
831
817
|
animated: "_animated_12u1t_73",
|
|
832
818
|
left: "_left_12u1t_100",
|
|
833
819
|
right: "_right_12u1t_101"
|
|
834
|
-
},
|
|
835
|
-
function
|
|
820
|
+
}, Ue = 4;
|
|
821
|
+
function We(e) {
|
|
836
822
|
let t = e.parentElement;
|
|
837
823
|
for (; t && t !== document.body && t !== document.documentElement;) {
|
|
838
824
|
let { overflowY: e } = getComputedStyle(t);
|
|
@@ -841,7 +827,7 @@ function qe(e) {
|
|
|
841
827
|
}
|
|
842
828
|
return null;
|
|
843
829
|
}
|
|
844
|
-
function
|
|
830
|
+
function Ge({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ue, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
|
|
845
831
|
let u = p(null), [d, f] = m("top"), [h, g] = m(!1), b = p(o);
|
|
846
832
|
l(() => {
|
|
847
833
|
b.current = o;
|
|
@@ -853,7 +839,7 @@ function Je({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ke,
|
|
|
853
839
|
let e = u.current;
|
|
854
840
|
if (!e) return;
|
|
855
841
|
let t, n, i = !0, a = 0, o = () => {
|
|
856
|
-
let o = r === void 0 ?
|
|
842
|
+
let o = r === void 0 ? We(e) : r;
|
|
857
843
|
t && o === n || (t?.disconnect(), n = o, t = new IntersectionObserver((e) => {
|
|
858
844
|
let t = e[e.length - 1];
|
|
859
845
|
f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => g(!0)));
|
|
@@ -864,20 +850,20 @@ function Je({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ke,
|
|
|
864
850
|
};
|
|
865
851
|
}, [r, i]);
|
|
866
852
|
let S = [
|
|
867
|
-
|
|
868
|
-
h ?
|
|
853
|
+
He.card,
|
|
854
|
+
h ? He.animated : "",
|
|
869
855
|
s
|
|
870
856
|
].filter(Boolean).join(" ");
|
|
871
857
|
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
872
|
-
className:
|
|
858
|
+
className: He.anchor,
|
|
873
859
|
"aria-hidden": "true",
|
|
874
860
|
children: /* @__PURE__ */ v("div", {
|
|
875
861
|
ref: u,
|
|
876
|
-
className:
|
|
862
|
+
className: He.sentinel,
|
|
877
863
|
style: { top: i }
|
|
878
864
|
})
|
|
879
865
|
}), /* @__PURE__ */ v("header", {
|
|
880
|
-
className: [
|
|
866
|
+
className: [He.header, h ? He.animated : ""].filter(Boolean).join(" "),
|
|
881
867
|
"data-state": d,
|
|
882
868
|
"data-float-mobile": a ? "" : void 0,
|
|
883
869
|
"data-testid": c,
|
|
@@ -886,35 +872,35 @@ function Je({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ke,
|
|
|
886
872
|
"data-state": d,
|
|
887
873
|
"data-float-mobile": a ? "" : void 0,
|
|
888
874
|
children: n ?? /* @__PURE__ */ y(_, { children: [e && /* @__PURE__ */ v("div", {
|
|
889
|
-
className:
|
|
875
|
+
className: He.left,
|
|
890
876
|
children: e
|
|
891
877
|
}), t && /* @__PURE__ */ v("div", {
|
|
892
|
-
className:
|
|
878
|
+
className: He.right,
|
|
893
879
|
children: t
|
|
894
880
|
})] })
|
|
895
881
|
})
|
|
896
882
|
})] });
|
|
897
883
|
}
|
|
898
|
-
var
|
|
899
|
-
checkbox: "
|
|
900
|
-
control: "
|
|
901
|
-
labelText: "
|
|
902
|
-
input: "
|
|
903
|
-
box: "
|
|
904
|
-
icon: "
|
|
905
|
-
indicator: "
|
|
884
|
+
var Ke = {
|
|
885
|
+
checkbox: "_checkbox_ffj7g_1",
|
|
886
|
+
control: "_control_ffj7g_8",
|
|
887
|
+
labelText: "_labelText_ffj7g_17",
|
|
888
|
+
input: "_input_ffj7g_27",
|
|
889
|
+
box: "_box_ffj7g_35",
|
|
890
|
+
icon: "_icon_ffj7g_70",
|
|
891
|
+
indicator: "_indicator_ffj7g_106"
|
|
906
892
|
};
|
|
907
893
|
//#endregion
|
|
908
894
|
//#region src/components/Checkbox.tsx
|
|
909
|
-
function
|
|
895
|
+
function qe({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
|
|
910
896
|
return /* @__PURE__ */ y("label", {
|
|
911
|
-
className: `${
|
|
897
|
+
className: `${Ke.checkbox} ${s ?? ""}`,
|
|
912
898
|
children: [/* @__PURE__ */ y("span", {
|
|
913
|
-
className:
|
|
899
|
+
className: Ke.control,
|
|
914
900
|
children: [/* @__PURE__ */ v("input", {
|
|
915
901
|
ref: c,
|
|
916
902
|
type: "checkbox",
|
|
917
|
-
className:
|
|
903
|
+
className: Ke.input,
|
|
918
904
|
checked: e,
|
|
919
905
|
onChange: t,
|
|
920
906
|
onBlur: n,
|
|
@@ -922,46 +908,46 @@ function Xe({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel:
|
|
|
922
908
|
"aria-label": a,
|
|
923
909
|
disabled: o
|
|
924
910
|
}), /* @__PURE__ */ v("span", {
|
|
925
|
-
className:
|
|
911
|
+
className: Ke.box,
|
|
926
912
|
children: /* @__PURE__ */ v("svg", {
|
|
927
|
-
className:
|
|
913
|
+
className: Ke.icon,
|
|
928
914
|
viewBox: "0 0 17 18",
|
|
929
915
|
"aria-hidden": "true",
|
|
930
916
|
children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
|
|
931
917
|
})
|
|
932
918
|
})]
|
|
933
919
|
}), i && /* @__PURE__ */ v("span", {
|
|
934
|
-
className:
|
|
920
|
+
className: Ke.labelText,
|
|
935
921
|
children: i
|
|
936
922
|
})]
|
|
937
923
|
});
|
|
938
924
|
}
|
|
939
|
-
function
|
|
925
|
+
function Je({ checked: e, disabled: t }) {
|
|
940
926
|
return /* @__PURE__ */ v("span", {
|
|
941
|
-
className: `${
|
|
927
|
+
className: `${Ke.box} ${Ke.indicator}`,
|
|
942
928
|
"data-checked": e,
|
|
943
929
|
"data-disabled": t || void 0,
|
|
944
930
|
"aria-hidden": "true",
|
|
945
931
|
children: /* @__PURE__ */ v("svg", {
|
|
946
|
-
className:
|
|
932
|
+
className: Ke.icon,
|
|
947
933
|
viewBox: "0 0 17 18",
|
|
948
934
|
"aria-hidden": "true",
|
|
949
935
|
children: /* @__PURE__ */ v("polyline", { points: "1 9 7 14 15 4" })
|
|
950
936
|
})
|
|
951
937
|
});
|
|
952
938
|
}
|
|
953
|
-
function
|
|
939
|
+
function Ye({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
|
|
954
940
|
function o(e) {
|
|
955
941
|
r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
|
|
956
942
|
}
|
|
957
943
|
return /* @__PURE__ */ y("div", {
|
|
958
944
|
role: "group",
|
|
959
945
|
"aria-label": e ? void 0 : a["aria-label"],
|
|
960
|
-
className:
|
|
961
|
-
children: [e && /* @__PURE__ */ v(
|
|
962
|
-
className:
|
|
946
|
+
className: Ie.group,
|
|
947
|
+
children: [e && /* @__PURE__ */ v(Re, {
|
|
948
|
+
className: Ie.groupLabel,
|
|
963
949
|
children: e
|
|
964
|
-
}), t.map((e) => /* @__PURE__ */ v(
|
|
950
|
+
}), t.map((e) => /* @__PURE__ */ v(qe, {
|
|
965
951
|
checked: n.includes(e.value),
|
|
966
952
|
onChange: () => o(e.value),
|
|
967
953
|
label: e.label,
|
|
@@ -969,25 +955,25 @@ function Qe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
|
|
|
969
955
|
}, e.value))]
|
|
970
956
|
});
|
|
971
957
|
}
|
|
972
|
-
var
|
|
973
|
-
radio: "
|
|
974
|
-
control: "
|
|
975
|
-
labelText: "
|
|
976
|
-
input: "
|
|
977
|
-
circle: "
|
|
978
|
-
dot: "
|
|
958
|
+
var Xe = {
|
|
959
|
+
radio: "_radio_sh5k5_1",
|
|
960
|
+
control: "_control_sh5k5_8",
|
|
961
|
+
labelText: "_labelText_sh5k5_17",
|
|
962
|
+
input: "_input_sh5k5_27",
|
|
963
|
+
circle: "_circle_sh5k5_35",
|
|
964
|
+
dot: "_dot_sh5k5_70"
|
|
979
965
|
};
|
|
980
966
|
//#endregion
|
|
981
967
|
//#region src/components/RadioButton.tsx
|
|
982
|
-
function
|
|
968
|
+
function Ze({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
|
|
983
969
|
return /* @__PURE__ */ y("label", {
|
|
984
|
-
className: `${
|
|
970
|
+
className: `${Xe.radio} ${c ?? ""}`,
|
|
985
971
|
children: [/* @__PURE__ */ y("span", {
|
|
986
|
-
className:
|
|
972
|
+
className: Xe.control,
|
|
987
973
|
children: [/* @__PURE__ */ v("input", {
|
|
988
974
|
ref: l,
|
|
989
975
|
type: "radio",
|
|
990
|
-
className:
|
|
976
|
+
className: Xe.input,
|
|
991
977
|
checked: e,
|
|
992
978
|
onChange: t,
|
|
993
979
|
onBlur: n,
|
|
@@ -996,24 +982,24 @@ function et({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, a
|
|
|
996
982
|
"aria-label": o,
|
|
997
983
|
disabled: s
|
|
998
984
|
}), /* @__PURE__ */ v("span", {
|
|
999
|
-
className:
|
|
1000
|
-
children: /* @__PURE__ */ v("span", { className:
|
|
985
|
+
className: Xe.circle,
|
|
986
|
+
children: /* @__PURE__ */ v("span", { className: Xe.dot })
|
|
1001
987
|
})]
|
|
1002
988
|
}), a && /* @__PURE__ */ v("span", {
|
|
1003
|
-
className:
|
|
989
|
+
className: Xe.labelText,
|
|
1004
990
|
children: a
|
|
1005
991
|
})]
|
|
1006
992
|
});
|
|
1007
993
|
}
|
|
1008
|
-
function
|
|
994
|
+
function Qe({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
|
|
1009
995
|
return /* @__PURE__ */ y("div", {
|
|
1010
996
|
role: "radiogroup",
|
|
1011
997
|
"aria-label": e ? void 0 : o["aria-label"],
|
|
1012
|
-
className:
|
|
1013
|
-
children: [e && /* @__PURE__ */ v(
|
|
1014
|
-
className:
|
|
998
|
+
className: Ie.group,
|
|
999
|
+
children: [e && /* @__PURE__ */ v(Re, {
|
|
1000
|
+
className: Ie.groupLabel,
|
|
1015
1001
|
children: e
|
|
1016
|
-
}), n.map((e) => /* @__PURE__ */ v(
|
|
1002
|
+
}), n.map((e) => /* @__PURE__ */ v(Ze, {
|
|
1017
1003
|
name: t,
|
|
1018
1004
|
value: e.value,
|
|
1019
1005
|
checked: r === e.value,
|
|
@@ -1023,42 +1009,42 @@ function tt({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
|
|
|
1023
1009
|
}, e.value))]
|
|
1024
1010
|
});
|
|
1025
1011
|
}
|
|
1026
|
-
var
|
|
1027
|
-
switch: "
|
|
1028
|
-
input: "
|
|
1029
|
-
control: "
|
|
1030
|
-
track: "
|
|
1031
|
-
thumb: "
|
|
1032
|
-
sm: "
|
|
1033
|
-
base: "
|
|
1034
|
-
labelText: "
|
|
1012
|
+
var $e = {
|
|
1013
|
+
switch: "_switch_19u7g_1",
|
|
1014
|
+
input: "_input_19u7g_7",
|
|
1015
|
+
control: "_control_19u7g_10",
|
|
1016
|
+
track: "_track_19u7g_20",
|
|
1017
|
+
thumb: "_thumb_19u7g_60",
|
|
1018
|
+
sm: "_sm_19u7g_73",
|
|
1019
|
+
base: "_base_19u7g_82",
|
|
1020
|
+
labelText: "_labelText_19u7g_92"
|
|
1035
1021
|
};
|
|
1036
1022
|
//#endregion
|
|
1037
1023
|
//#region src/components/Switch.tsx
|
|
1038
|
-
function
|
|
1024
|
+
function et({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
|
|
1039
1025
|
return /* @__PURE__ */ y("label", {
|
|
1040
|
-
className: `${
|
|
1026
|
+
className: `${$e.switch} ${o ?? ""}`,
|
|
1041
1027
|
children: [/* @__PURE__ */ y("span", {
|
|
1042
|
-
className: `${
|
|
1028
|
+
className: `${$e.control} ${$e[n]}`,
|
|
1043
1029
|
children: [/* @__PURE__ */ v("input", {
|
|
1044
1030
|
type: "checkbox",
|
|
1045
1031
|
role: "switch",
|
|
1046
|
-
className:
|
|
1032
|
+
className: $e.input,
|
|
1047
1033
|
checked: e,
|
|
1048
1034
|
onChange: t,
|
|
1049
1035
|
"aria-label": i,
|
|
1050
1036
|
disabled: a
|
|
1051
1037
|
}), /* @__PURE__ */ v("span", {
|
|
1052
|
-
className:
|
|
1053
|
-
children: /* @__PURE__ */ v("span", { className:
|
|
1038
|
+
className: $e.track,
|
|
1039
|
+
children: /* @__PURE__ */ v("span", { className: $e.thumb })
|
|
1054
1040
|
})]
|
|
1055
1041
|
}), r && /* @__PURE__ */ v("span", {
|
|
1056
|
-
className:
|
|
1042
|
+
className: $e.labelText,
|
|
1057
1043
|
children: r
|
|
1058
1044
|
})]
|
|
1059
1045
|
});
|
|
1060
1046
|
}
|
|
1061
|
-
var
|
|
1047
|
+
var K = {
|
|
1062
1048
|
field: "_field_153iy_1",
|
|
1063
1049
|
inputWrap: "_inputWrap_153iy_6",
|
|
1064
1050
|
input: "_input_153iy_6",
|
|
@@ -1079,20 +1065,20 @@ var G = {
|
|
|
1079
1065
|
};
|
|
1080
1066
|
//#endregion
|
|
1081
1067
|
//#region src/components/TextField.tsx
|
|
1082
|
-
function
|
|
1068
|
+
function tt({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
|
|
1083
1069
|
let f = u(), m = s ?? f, h = p(null);
|
|
1084
1070
|
return D(o, () => h.current?.focus()), /* @__PURE__ */ y("div", {
|
|
1085
|
-
className: [
|
|
1071
|
+
className: [K.field, c].filter(Boolean).join(" "),
|
|
1086
1072
|
children: [
|
|
1087
|
-
e && /* @__PURE__ */ v(
|
|
1073
|
+
e && /* @__PURE__ */ v(Re, {
|
|
1088
1074
|
htmlFor: m,
|
|
1089
1075
|
children: e
|
|
1090
1076
|
}),
|
|
1091
1077
|
/* @__PURE__ */ y("div", {
|
|
1092
|
-
className: `${
|
|
1078
|
+
className: `${K.inputWrap} ${K[i]} ${K[r]} ${n ? K.errorWrap : ""}`,
|
|
1093
1079
|
children: [
|
|
1094
1080
|
a && /* @__PURE__ */ v("span", {
|
|
1095
|
-
className:
|
|
1081
|
+
className: K.icon,
|
|
1096
1082
|
children: a
|
|
1097
1083
|
}),
|
|
1098
1084
|
/* @__PURE__ */ v("input", {
|
|
@@ -1100,23 +1086,23 @@ function it({ label: e, helperText: t, error: n, size: r = "base", variant: i =
|
|
|
1100
1086
|
h.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
|
|
1101
1087
|
},
|
|
1102
1088
|
id: m,
|
|
1103
|
-
className:
|
|
1089
|
+
className: K.input,
|
|
1104
1090
|
...d
|
|
1105
1091
|
}),
|
|
1106
1092
|
o && /* @__PURE__ */ v("span", {
|
|
1107
|
-
className:
|
|
1093
|
+
className: K.shortcut,
|
|
1108
1094
|
"aria-hidden": "true",
|
|
1109
1095
|
children: E(o).labels.map((e) => /* @__PURE__ */ v("kbd", {
|
|
1110
|
-
className:
|
|
1096
|
+
className: K.kbd,
|
|
1111
1097
|
children: e
|
|
1112
1098
|
}, e))
|
|
1113
1099
|
})
|
|
1114
1100
|
]
|
|
1115
1101
|
}),
|
|
1116
1102
|
n ? /* @__PURE__ */ y("span", {
|
|
1117
|
-
className:
|
|
1103
|
+
className: K.errorText,
|
|
1118
1104
|
children: [/* @__PURE__ */ y("svg", {
|
|
1119
|
-
className:
|
|
1105
|
+
className: K.errorIcon,
|
|
1120
1106
|
viewBox: "0 0 16 16",
|
|
1121
1107
|
fill: "none",
|
|
1122
1108
|
"aria-hidden": "true",
|
|
@@ -1143,13 +1129,13 @@ function it({ label: e, helperText: t, error: n, size: r = "base", variant: i =
|
|
|
1143
1129
|
]
|
|
1144
1130
|
}), n]
|
|
1145
1131
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1146
|
-
className:
|
|
1132
|
+
className: K.helperText,
|
|
1147
1133
|
children: t
|
|
1148
1134
|
}) : null
|
|
1149
1135
|
]
|
|
1150
1136
|
});
|
|
1151
1137
|
}
|
|
1152
|
-
var
|
|
1138
|
+
var q = {
|
|
1153
1139
|
field: "_field_fwbok_3",
|
|
1154
1140
|
wrap: "_wrap_fwbok_1",
|
|
1155
1141
|
readOnly: "_readOnly_fwbok_14",
|
|
@@ -1169,11 +1155,11 @@ var K = {
|
|
|
1169
1155
|
};
|
|
1170
1156
|
//#endregion
|
|
1171
1157
|
//#region src/components/TextArea.tsx
|
|
1172
|
-
function
|
|
1158
|
+
function nt(e, t) {
|
|
1173
1159
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
1174
1160
|
}
|
|
1175
|
-
function
|
|
1176
|
-
let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M,
|
|
1161
|
+
function rt({ 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 }) {
|
|
1162
|
+
let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M, N] = m(() => String(b ?? "").length), P = j ? String(_).length : M, F = s(() => {
|
|
1177
1163
|
let e = A.current;
|
|
1178
1164
|
if (!e || !a) return;
|
|
1179
1165
|
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;
|
|
@@ -1182,9 +1168,9 @@ function ot({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1182
1168
|
e.style.height = `${c}px`, e.style.overflowY = e.scrollHeight > s ? "auto" : "hidden";
|
|
1183
1169
|
}, [a, o]);
|
|
1184
1170
|
d(() => {
|
|
1185
|
-
|
|
1171
|
+
F();
|
|
1186
1172
|
}, [
|
|
1187
|
-
|
|
1173
|
+
F,
|
|
1188
1174
|
_,
|
|
1189
1175
|
g,
|
|
1190
1176
|
r
|
|
@@ -1192,44 +1178,44 @@ function ot({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1192
1178
|
let e = A.current;
|
|
1193
1179
|
if (!a || !e || typeof ResizeObserver > "u") return;
|
|
1194
1180
|
let t = e.clientWidth, n = new ResizeObserver(() => {
|
|
1195
|
-
e.clientWidth !== t && (t = e.clientWidth,
|
|
1181
|
+
e.clientWidth !== t && (t = e.clientWidth, F());
|
|
1196
1182
|
});
|
|
1197
1183
|
return n.observe(e), () => n.disconnect();
|
|
1198
|
-
}, [a,
|
|
1184
|
+
}, [a, F]), d(() => {
|
|
1199
1185
|
let e = A.current;
|
|
1200
1186
|
!a && e && (e.style.height = "", e.style.overflowY = "");
|
|
1201
1187
|
}, [a]);
|
|
1202
|
-
let
|
|
1203
|
-
j ||
|
|
1204
|
-
},
|
|
1205
|
-
j || (
|
|
1206
|
-
},
|
|
1188
|
+
let I = (e) => {
|
|
1189
|
+
j || N(e.target.value.length), w?.(e);
|
|
1190
|
+
}, ee = (e) => {
|
|
1191
|
+
j || (N(e.currentTarget.value.length), F()), T?.(e);
|
|
1192
|
+
}, te = `${k}-helper`, L = `${k}-error`, R = `${k}-count`, z = [
|
|
1207
1193
|
E,
|
|
1208
|
-
n ?
|
|
1209
|
-
c ?
|
|
1210
|
-
].filter(Boolean).join(" ") || void 0,
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
n ?
|
|
1214
|
-
S ?
|
|
1215
|
-
C ?
|
|
1216
|
-
].filter(Boolean).join(" "),
|
|
1194
|
+
n ? L : t ? te : null,
|
|
1195
|
+
c ? R : null
|
|
1196
|
+
].filter(Boolean).join(" ") || void 0, B = x ? P / x : 0, ne = B >= 1 ? q.countLimit : B >= .9 ? q.countNear : "", re = [
|
|
1197
|
+
q.wrap,
|
|
1198
|
+
q[r],
|
|
1199
|
+
n ? q.errorWrap : "",
|
|
1200
|
+
S ? q.disabled : "",
|
|
1201
|
+
C ? q.readOnly : ""
|
|
1202
|
+
].filter(Boolean).join(" "), ie = a ? "none" : i;
|
|
1217
1203
|
return /* @__PURE__ */ y("div", {
|
|
1218
|
-
className: [
|
|
1204
|
+
className: [q.field, f].filter(Boolean).join(" "),
|
|
1219
1205
|
children: [
|
|
1220
|
-
e && /* @__PURE__ */ v(
|
|
1206
|
+
e && /* @__PURE__ */ v(Re, {
|
|
1221
1207
|
htmlFor: k,
|
|
1222
1208
|
children: e
|
|
1223
1209
|
}),
|
|
1224
1210
|
/* @__PURE__ */ v("div", {
|
|
1225
|
-
className:
|
|
1211
|
+
className: re,
|
|
1226
1212
|
children: /* @__PURE__ */ v("textarea", {
|
|
1227
1213
|
...D,
|
|
1228
1214
|
ref: (e) => {
|
|
1229
|
-
A.current = e,
|
|
1215
|
+
A.current = e, nt(h, e);
|
|
1230
1216
|
},
|
|
1231
1217
|
id: k,
|
|
1232
|
-
className: `${
|
|
1218
|
+
className: `${q.textarea} ${q[`resize-${ie}`]}`,
|
|
1233
1219
|
rows: g,
|
|
1234
1220
|
value: _,
|
|
1235
1221
|
defaultValue: b,
|
|
@@ -1237,25 +1223,25 @@ function ot({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1237
1223
|
disabled: S,
|
|
1238
1224
|
readOnly: C,
|
|
1239
1225
|
"aria-invalid": n ? !0 : D["aria-invalid"],
|
|
1240
|
-
"aria-describedby":
|
|
1241
|
-
onChange:
|
|
1242
|
-
onInput:
|
|
1226
|
+
"aria-describedby": z,
|
|
1227
|
+
onChange: I,
|
|
1228
|
+
onInput: ee
|
|
1243
1229
|
})
|
|
1244
1230
|
}),
|
|
1245
1231
|
(n || t || c) && /* @__PURE__ */ y("div", {
|
|
1246
|
-
className:
|
|
1232
|
+
className: q.footer,
|
|
1247
1233
|
children: [n ? /* @__PURE__ */ v("span", {
|
|
1248
|
-
id:
|
|
1249
|
-
className:
|
|
1234
|
+
id: L,
|
|
1235
|
+
className: q.errorText,
|
|
1250
1236
|
children: n
|
|
1251
1237
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1252
|
-
id:
|
|
1253
|
-
className:
|
|
1238
|
+
id: te,
|
|
1239
|
+
className: q.helperText,
|
|
1254
1240
|
children: t
|
|
1255
1241
|
}) : null, c && /* @__PURE__ */ v("span", {
|
|
1256
|
-
id:
|
|
1257
|
-
className: `${
|
|
1258
|
-
children: x ? `${
|
|
1242
|
+
id: R,
|
|
1243
|
+
className: `${q.count} ${ne}`,
|
|
1244
|
+
children: x ? `${P} / ${x}` : P
|
|
1259
1245
|
})]
|
|
1260
1246
|
})
|
|
1261
1247
|
]
|
|
@@ -1263,41 +1249,41 @@ function ot({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
|
|
|
1263
1249
|
}
|
|
1264
1250
|
//#endregion
|
|
1265
1251
|
//#region src/components/PasswordField.tsx
|
|
1266
|
-
function
|
|
1252
|
+
function it({ 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 }) {
|
|
1267
1253
|
let p = u(), h = s ?? p, [g, _] = m(o);
|
|
1268
1254
|
return /* @__PURE__ */ y("div", {
|
|
1269
|
-
className: [
|
|
1255
|
+
className: [K.field, c].filter(Boolean).join(" "),
|
|
1270
1256
|
children: [
|
|
1271
|
-
e && /* @__PURE__ */ v(
|
|
1257
|
+
e && /* @__PURE__ */ v(Re, {
|
|
1272
1258
|
htmlFor: h,
|
|
1273
1259
|
children: e
|
|
1274
1260
|
}),
|
|
1275
1261
|
/* @__PURE__ */ y("div", {
|
|
1276
|
-
className: `${
|
|
1262
|
+
className: `${K.inputWrap} ${K.default} ${K[r]} ${n ? K.errorWrap : ""}`,
|
|
1277
1263
|
children: [/* @__PURE__ */ v("input", {
|
|
1278
1264
|
ref: l,
|
|
1279
1265
|
id: h,
|
|
1280
|
-
className:
|
|
1266
|
+
className: K.input,
|
|
1281
1267
|
type: g ? "text" : "password",
|
|
1282
1268
|
autoComplete: "off",
|
|
1283
1269
|
disabled: d,
|
|
1284
1270
|
...f
|
|
1285
1271
|
}), /* @__PURE__ */ v("button", {
|
|
1286
1272
|
type: "button",
|
|
1287
|
-
className:
|
|
1273
|
+
className: K.trailing,
|
|
1288
1274
|
"aria-label": g ? a : i,
|
|
1289
1275
|
"aria-pressed": g,
|
|
1290
1276
|
"aria-controls": h,
|
|
1291
1277
|
disabled: d,
|
|
1292
1278
|
onClick: () => _((e) => !e),
|
|
1293
|
-
children: v(g ?
|
|
1279
|
+
children: v(g ? ge : ve, {})
|
|
1294
1280
|
})]
|
|
1295
1281
|
}),
|
|
1296
1282
|
n ? /* @__PURE__ */ v("span", {
|
|
1297
|
-
className:
|
|
1283
|
+
className: K.errorText,
|
|
1298
1284
|
children: n
|
|
1299
1285
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1300
|
-
className:
|
|
1286
|
+
className: K.helperText,
|
|
1301
1287
|
children: t
|
|
1302
1288
|
}) : null
|
|
1303
1289
|
]
|
|
@@ -1305,38 +1291,38 @@ function st({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
|
|
|
1305
1291
|
}
|
|
1306
1292
|
//#endregion
|
|
1307
1293
|
//#region src/components/DateField.tsx
|
|
1308
|
-
function
|
|
1294
|
+
function at({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
|
|
1309
1295
|
let f = u(), p = a ?? f;
|
|
1310
1296
|
return /* @__PURE__ */ y("div", {
|
|
1311
|
-
className: [
|
|
1297
|
+
className: [K.field, o].filter(Boolean).join(" "),
|
|
1312
1298
|
children: [
|
|
1313
|
-
e && /* @__PURE__ */ v(
|
|
1299
|
+
e && /* @__PURE__ */ v(Re, {
|
|
1314
1300
|
htmlFor: p,
|
|
1315
1301
|
children: e
|
|
1316
1302
|
}),
|
|
1317
1303
|
/* @__PURE__ */ y("div", {
|
|
1318
|
-
className: `${
|
|
1304
|
+
className: `${K.inputWrap} ${K.default} ${K[r]} ${n ? K.errorWrap : ""}`,
|
|
1319
1305
|
children: [/* @__PURE__ */ v("input", {
|
|
1320
1306
|
...d,
|
|
1321
1307
|
ref: s,
|
|
1322
1308
|
id: p,
|
|
1323
|
-
className: `${
|
|
1309
|
+
className: `${K.input} ${K.pickerInput}`,
|
|
1324
1310
|
inputMode: "none",
|
|
1325
1311
|
readOnly: !0,
|
|
1326
1312
|
disabled: l,
|
|
1327
1313
|
onClick: c,
|
|
1328
1314
|
"aria-label": e ? void 0 : i
|
|
1329
1315
|
}), /* @__PURE__ */ v("span", {
|
|
1330
|
-
className: `${
|
|
1316
|
+
className: `${K.pickerChevron} ${r === "sm" ? K.pickerChevronSm : ""}`,
|
|
1331
1317
|
"aria-hidden": !0,
|
|
1332
|
-
children: /* @__PURE__ */ v(
|
|
1318
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
1333
1319
|
})]
|
|
1334
1320
|
}),
|
|
1335
1321
|
n ? /* @__PURE__ */ v("span", {
|
|
1336
|
-
className:
|
|
1322
|
+
className: K.errorText,
|
|
1337
1323
|
children: n
|
|
1338
1324
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1339
|
-
className:
|
|
1325
|
+
className: K.helperText,
|
|
1340
1326
|
children: t
|
|
1341
1327
|
}) : null
|
|
1342
1328
|
]
|
|
@@ -1344,44 +1330,44 @@ function ct({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
|
|
|
1344
1330
|
}
|
|
1345
1331
|
//#endregion
|
|
1346
1332
|
//#region src/utils/date.ts
|
|
1347
|
-
function
|
|
1333
|
+
function ot(e) {
|
|
1348
1334
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
1349
1335
|
}
|
|
1350
|
-
function
|
|
1336
|
+
function st(e, t) {
|
|
1351
1337
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
|
|
1352
1338
|
}
|
|
1353
|
-
function
|
|
1339
|
+
function ct(e, t) {
|
|
1354
1340
|
return new Date(e, t + 1, 0).getDate();
|
|
1355
1341
|
}
|
|
1356
|
-
function
|
|
1357
|
-
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(),
|
|
1342
|
+
function lt(e, t) {
|
|
1343
|
+
let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), ct(n.getFullYear(), n.getMonth()));
|
|
1358
1344
|
return new Date(n.getFullYear(), n.getMonth(), r);
|
|
1359
1345
|
}
|
|
1360
|
-
function
|
|
1346
|
+
function ut(e, t) {
|
|
1361
1347
|
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
1362
1348
|
}
|
|
1363
|
-
function
|
|
1349
|
+
function dt(e, t) {
|
|
1364
1350
|
return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
|
|
1365
1351
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return !!(t &&
|
|
1352
|
+
function ft(e, t, n) {
|
|
1353
|
+
return !!(t && dt(e, t) < 0 || n && dt(e, n) > 0);
|
|
1368
1354
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return t &&
|
|
1355
|
+
function pt(e, t, n) {
|
|
1356
|
+
return t && dt(e, t) < 0 ? ot(t) : n && dt(e, n) > 0 ? ot(n) : ot(e);
|
|
1371
1357
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return
|
|
1358
|
+
function mt(e, t) {
|
|
1359
|
+
return st(e, -((e.getDay() - t + 7) % 7));
|
|
1374
1360
|
}
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1361
|
+
function ht(e, t) {
|
|
1362
|
+
return st(mt(e, t), 6);
|
|
1377
1363
|
}
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1380
|
-
let r =
|
|
1381
|
-
for (let e = 0; e <
|
|
1364
|
+
var gt = 6;
|
|
1365
|
+
function _t(e, t, n) {
|
|
1366
|
+
let r = mt(new Date(e, t, 1), n), i = [];
|
|
1367
|
+
for (let e = 0; e < gt; e++) {
|
|
1382
1368
|
let n = [];
|
|
1383
1369
|
for (let i = 0; i < 7; i++) {
|
|
1384
|
-
let a =
|
|
1370
|
+
let a = st(r, e * 7 + i);
|
|
1385
1371
|
n.push({
|
|
1386
1372
|
date: a,
|
|
1387
1373
|
inMonth: a.getMonth() === t
|
|
@@ -1391,7 +1377,7 @@ function bt(e, t, n) {
|
|
|
1391
1377
|
}
|
|
1392
1378
|
return i;
|
|
1393
1379
|
}
|
|
1394
|
-
var
|
|
1380
|
+
var J = {
|
|
1395
1381
|
calendar: "_calendar_o086a_1",
|
|
1396
1382
|
header: "_header_o086a_7",
|
|
1397
1383
|
navButton: "_navButton_o086a_13",
|
|
@@ -1408,28 +1394,28 @@ var q = {
|
|
|
1408
1394
|
rangeStart: "_rangeStart_o086a_96",
|
|
1409
1395
|
rangeEnd: "_rangeEnd_o086a_100",
|
|
1410
1396
|
hiddenDay: "_hiddenDay_o086a_104"
|
|
1411
|
-
},
|
|
1412
|
-
function
|
|
1397
|
+
}, vt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
|
|
1398
|
+
function yt(e, t) {
|
|
1413
1399
|
let n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
1414
1400
|
return new Date(e.getFullYear(), e.getMonth(), Math.min(t, n));
|
|
1415
1401
|
}
|
|
1416
|
-
function
|
|
1402
|
+
function bt(e, t) {
|
|
1417
1403
|
return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
|
|
1418
1404
|
}
|
|
1419
|
-
function
|
|
1420
|
-
let [S, C] = m(() => _ ?
|
|
1421
|
-
w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(
|
|
1422
|
-
let D = e ?
|
|
1423
|
-
D !== O && (A(D), e && C(
|
|
1424
|
-
let j = p(null), M = p(!!o),
|
|
1405
|
+
function xt({ 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 }) {
|
|
1406
|
+
let [S, C] = m(() => _ ? yt(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : pt(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
|
|
1407
|
+
w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(yt(_, S.getDate())));
|
|
1408
|
+
let D = e ? vt(e) : null, [O, A] = m(D);
|
|
1409
|
+
D !== O && (A(D), e && C(pt(e, n, r)));
|
|
1410
|
+
let j = p(null), M = p(!!o), N = u();
|
|
1425
1411
|
l(() => {
|
|
1426
|
-
M.current && (M.current = !1, j.current?.querySelector(`[data-date="${
|
|
1412
|
+
M.current && (M.current = !1, j.current?.querySelector(`[data-date="${vt(S)}"]`)?.focus());
|
|
1427
1413
|
}, [S]);
|
|
1428
|
-
let
|
|
1429
|
-
N,
|
|
1414
|
+
let P = S.getFullYear(), F = S.getMonth(), I = f(() => _t(P, F, a), [
|
|
1430
1415
|
P,
|
|
1416
|
+
F,
|
|
1431
1417
|
a
|
|
1432
|
-
]),
|
|
1418
|
+
]), ee = ot(/* @__PURE__ */ new Date()), te = !!(h?.start && h.end && dt(h.start, h.end) > 0), L = te ? h.end : h?.start ?? null, R = te ? h.start : h?.end ?? null, z = !!(L && R && dt(L, R) !== 0), B = f(() => ({
|
|
1433
1419
|
title: new Intl.DateTimeFormat(i, {
|
|
1434
1420
|
month: "long",
|
|
1435
1421
|
year: "numeric"
|
|
@@ -1437,137 +1423,137 @@ function wt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
|
|
|
1437
1423
|
short: new Intl.DateTimeFormat(i, { weekday: "short" }),
|
|
1438
1424
|
long: new Intl.DateTimeFormat(i, { weekday: "long" }),
|
|
1439
1425
|
full: new Intl.DateTimeFormat(i, { dateStyle: "full" })
|
|
1440
|
-
}), [i]),
|
|
1441
|
-
short:
|
|
1442
|
-
long:
|
|
1443
|
-
})),
|
|
1444
|
-
function
|
|
1426
|
+
}), [i]), ne = h ? I.filter((e) => e.some((e) => e.inMonth)) : I, re = I[0].map(({ date: e }) => ({
|
|
1427
|
+
short: bt(B.short.format(e), i).slice(0, 2),
|
|
1428
|
+
long: B.long.format(e)
|
|
1429
|
+
})), ie = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < ot(n), ae = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > ot(r), oe = ie(S), V = ae(S);
|
|
1430
|
+
function se(e) {
|
|
1445
1431
|
b && (e.getFullYear() !== S.getFullYear() || e.getMonth() !== S.getMonth()) && b(e), C(e);
|
|
1446
1432
|
}
|
|
1447
|
-
function ce(e) {
|
|
1448
|
-
M.current = !0, V(gt(e, n, r));
|
|
1449
|
-
}
|
|
1450
1433
|
function H(e) {
|
|
1451
|
-
|
|
1452
|
-
M.current = e < 0 ? ae(t) : oe(t), V(t);
|
|
1434
|
+
M.current = !0, se(pt(e, n, r));
|
|
1453
1435
|
}
|
|
1454
|
-
function
|
|
1436
|
+
function U(e) {
|
|
1437
|
+
let t = pt(lt(S, e), n, r);
|
|
1438
|
+
M.current = e < 0 ? ie(t) : ae(t), se(t);
|
|
1439
|
+
}
|
|
1440
|
+
function ce(e) {
|
|
1455
1441
|
let t = null;
|
|
1456
1442
|
switch (e.key) {
|
|
1457
1443
|
case "ArrowLeft":
|
|
1458
|
-
t =
|
|
1444
|
+
t = st(S, -1);
|
|
1459
1445
|
break;
|
|
1460
1446
|
case "ArrowRight":
|
|
1461
|
-
t =
|
|
1447
|
+
t = st(S, 1);
|
|
1462
1448
|
break;
|
|
1463
1449
|
case "ArrowUp":
|
|
1464
|
-
t =
|
|
1450
|
+
t = st(S, -7);
|
|
1465
1451
|
break;
|
|
1466
1452
|
case "ArrowDown":
|
|
1467
|
-
t =
|
|
1453
|
+
t = st(S, 7);
|
|
1468
1454
|
break;
|
|
1469
1455
|
case "PageUp":
|
|
1470
|
-
t =
|
|
1456
|
+
t = lt(S, -1);
|
|
1471
1457
|
break;
|
|
1472
1458
|
case "PageDown":
|
|
1473
|
-
t =
|
|
1459
|
+
t = lt(S, 1);
|
|
1474
1460
|
break;
|
|
1475
1461
|
case "Home":
|
|
1476
|
-
t =
|
|
1462
|
+
t = mt(S, a);
|
|
1477
1463
|
break;
|
|
1478
|
-
case "End": t =
|
|
1464
|
+
case "End": t = ht(S, a);
|
|
1479
1465
|
}
|
|
1480
|
-
t && (e.preventDefault(),
|
|
1466
|
+
t && (e.preventDefault(), H(t));
|
|
1481
1467
|
}
|
|
1482
|
-
function
|
|
1483
|
-
let n =
|
|
1484
|
-
|
|
1468
|
+
function le(e) {
|
|
1469
|
+
let n = ot(e);
|
|
1470
|
+
se(n), t(n);
|
|
1485
1471
|
}
|
|
1486
1472
|
return /* @__PURE__ */ y("div", {
|
|
1487
|
-
className: [
|
|
1473
|
+
className: [J.calendar, d].filter(Boolean).join(" "),
|
|
1488
1474
|
children: [/* @__PURE__ */ y("div", {
|
|
1489
|
-
className:
|
|
1475
|
+
className: J.header,
|
|
1490
1476
|
children: [
|
|
1491
1477
|
x === "previous" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
|
|
1492
1478
|
variant: "tertiary",
|
|
1493
1479
|
size: "sm",
|
|
1494
|
-
className:
|
|
1495
|
-
leadingIcon: /* @__PURE__ */ v(
|
|
1480
|
+
className: J.navButton,
|
|
1481
|
+
leadingIcon: /* @__PURE__ */ v(fe, {}),
|
|
1496
1482
|
"aria-label": s,
|
|
1497
|
-
disabled:
|
|
1498
|
-
onClick: () =>
|
|
1483
|
+
disabled: oe,
|
|
1484
|
+
onClick: () => U(-1)
|
|
1499
1485
|
}),
|
|
1500
1486
|
/* @__PURE__ */ v("div", {
|
|
1501
|
-
id:
|
|
1502
|
-
className:
|
|
1487
|
+
id: N,
|
|
1488
|
+
className: J.title,
|
|
1503
1489
|
"aria-live": "polite",
|
|
1504
|
-
children:
|
|
1490
|
+
children: bt(B.title.format(S), i)
|
|
1505
1491
|
}),
|
|
1506
1492
|
x === "next" ? /* @__PURE__ */ v("span", {}) : /* @__PURE__ */ v(k, {
|
|
1507
1493
|
variant: "tertiary",
|
|
1508
1494
|
size: "sm",
|
|
1509
|
-
className:
|
|
1510
|
-
leadingIcon: /* @__PURE__ */ v(
|
|
1495
|
+
className: J.navButton,
|
|
1496
|
+
leadingIcon: /* @__PURE__ */ v(me, {}),
|
|
1511
1497
|
"aria-label": c,
|
|
1512
|
-
disabled:
|
|
1513
|
-
onClick: () =>
|
|
1498
|
+
disabled: V,
|
|
1499
|
+
onClick: () => U(1)
|
|
1514
1500
|
})
|
|
1515
1501
|
]
|
|
1516
1502
|
}), /* @__PURE__ */ y("div", {
|
|
1517
1503
|
ref: j,
|
|
1518
1504
|
role: "grid",
|
|
1519
|
-
"aria-labelledby":
|
|
1520
|
-
className:
|
|
1521
|
-
onKeyDown:
|
|
1505
|
+
"aria-labelledby": N,
|
|
1506
|
+
className: J.grid,
|
|
1507
|
+
onKeyDown: ce,
|
|
1522
1508
|
onMouseLeave: g ? () => g(null) : void 0,
|
|
1523
1509
|
children: [/* @__PURE__ */ v("div", {
|
|
1524
1510
|
role: "row",
|
|
1525
|
-
className:
|
|
1526
|
-
children:
|
|
1511
|
+
className: J.row,
|
|
1512
|
+
children: re.map((e) => /* @__PURE__ */ v("span", {
|
|
1527
1513
|
role: "columnheader",
|
|
1528
1514
|
"aria-label": e.long,
|
|
1529
|
-
className:
|
|
1515
|
+
className: J.weekday,
|
|
1530
1516
|
children: e.short
|
|
1531
1517
|
}, e.long))
|
|
1532
|
-
}),
|
|
1518
|
+
}), ne.map((t) => /* @__PURE__ */ v("div", {
|
|
1533
1519
|
role: "row",
|
|
1534
|
-
className:
|
|
1520
|
+
className: J.row,
|
|
1535
1521
|
children: t.map(({ date: t, inMonth: i }) => {
|
|
1536
|
-
let a =
|
|
1522
|
+
let a = ft(t, n, r), o = !!L && ut(t, L), s = !!R && ut(t, R), c = !!(L && R) && dt(t, L) > 0 && dt(t, R) < 0, l = h ? o || s : !!e && ut(t, e), u = !!h && !i, d = ut(t, ee);
|
|
1537
1523
|
return /* @__PURE__ */ v("button", {
|
|
1538
1524
|
type: "button",
|
|
1539
1525
|
role: "gridcell",
|
|
1540
|
-
"data-date":
|
|
1541
|
-
tabIndex:
|
|
1526
|
+
"data-date": vt(t),
|
|
1527
|
+
tabIndex: ut(t, S) && !u ? 0 : -1,
|
|
1542
1528
|
"aria-selected": l || c,
|
|
1543
1529
|
"aria-hidden": u || void 0,
|
|
1544
1530
|
"aria-disabled": a || void 0,
|
|
1545
1531
|
"aria-current": d ? "date" : void 0,
|
|
1546
|
-
"aria-label":
|
|
1532
|
+
"aria-label": B.full.format(t),
|
|
1547
1533
|
className: [
|
|
1548
|
-
|
|
1549
|
-
!i &&
|
|
1550
|
-
u &&
|
|
1551
|
-
c &&
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
d &&
|
|
1555
|
-
l &&
|
|
1556
|
-
a &&
|
|
1534
|
+
J.day,
|
|
1535
|
+
!i && J.outside,
|
|
1536
|
+
u && J.hiddenDay,
|
|
1537
|
+
c && J.inRange,
|
|
1538
|
+
z && o && J.rangeStart,
|
|
1539
|
+
z && s && J.rangeEnd,
|
|
1540
|
+
d && J.today,
|
|
1541
|
+
l && J.selected,
|
|
1542
|
+
a && J.disabled
|
|
1557
1543
|
].filter(Boolean).join(" "),
|
|
1558
1544
|
onMouseDown: a ? (e) => e.preventDefault() : void 0,
|
|
1559
|
-
onClick: a || u ? void 0 : () =>
|
|
1545
|
+
onClick: a || u ? void 0 : () => le(t),
|
|
1560
1546
|
onPointerEnter: g && !u ? (e) => e.pointerType === "mouse" && g(t) : void 0,
|
|
1561
1547
|
onFocus: g && !u ? () => g(t) : void 0,
|
|
1562
1548
|
children: t.getDate()
|
|
1563
|
-
},
|
|
1549
|
+
}, vt(t));
|
|
1564
1550
|
})
|
|
1565
|
-
},
|
|
1551
|
+
}, vt(t[0].date)))]
|
|
1566
1552
|
})]
|
|
1567
1553
|
});
|
|
1568
1554
|
}
|
|
1569
|
-
var
|
|
1570
|
-
function
|
|
1555
|
+
var St = 4, Ct = 8;
|
|
1556
|
+
function wt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
|
|
1571
1557
|
let o = s(() => {
|
|
1572
1558
|
let e = t.current, i = n();
|
|
1573
1559
|
if (!e || !i) return;
|
|
@@ -1576,9 +1562,9 @@ function Dt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
|
|
|
1576
1562
|
return;
|
|
1577
1563
|
}
|
|
1578
1564
|
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;
|
|
1579
|
-
u = Math.max(
|
|
1580
|
-
let d = a.bottom +
|
|
1581
|
-
m && (d = a.top -
|
|
1565
|
+
u = Math.max(Ct, Math.min(u, c - o - Ct));
|
|
1566
|
+
let d = a.bottom + St, f = d + s <= l - Ct, p = a.top - St - s >= Ct, m = !f && p;
|
|
1567
|
+
m && (d = a.top - St - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
|
|
1582
1568
|
}, [
|
|
1583
1569
|
n,
|
|
1584
1570
|
r,
|
|
@@ -1624,15 +1610,15 @@ function Dt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, la
|
|
|
1624
1610
|
t
|
|
1625
1611
|
]);
|
|
1626
1612
|
}
|
|
1627
|
-
var
|
|
1613
|
+
var Tt = { popup: "_popup_eco0g_1" };
|
|
1628
1614
|
//#endregion
|
|
1629
1615
|
//#region src/components/DatePicker.tsx
|
|
1630
|
-
function
|
|
1631
|
-
let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i,
|
|
1616
|
+
function Et({ 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 }) {
|
|
1617
|
+
let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i, N = f(() => new Intl.DateTimeFormat(a, {
|
|
1632
1618
|
month: "short",
|
|
1633
1619
|
day: "2-digit"
|
|
1634
|
-
}), [a]),
|
|
1635
|
-
|
|
1620
|
+
}), [a]), P = e ? c ? c(e) : N.format(e) : "";
|
|
1621
|
+
wt({
|
|
1636
1622
|
isOpen: M,
|
|
1637
1623
|
popupRef: A,
|
|
1638
1624
|
getAnchor: s(() => k.current?.parentElement ?? k.current, []),
|
|
@@ -1641,13 +1627,13 @@ function kt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1641
1627
|
O(!1), e && k.current?.focus();
|
|
1642
1628
|
}, [])
|
|
1643
1629
|
});
|
|
1644
|
-
function
|
|
1630
|
+
function F(e) {
|
|
1645
1631
|
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), i || O(!0));
|
|
1646
1632
|
}
|
|
1647
|
-
function
|
|
1633
|
+
function I(e) {
|
|
1648
1634
|
t(e), O(!1), k.current?.focus();
|
|
1649
1635
|
}
|
|
1650
|
-
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(
|
|
1636
|
+
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(at, {
|
|
1651
1637
|
ref: k,
|
|
1652
1638
|
id: E,
|
|
1653
1639
|
className: T,
|
|
@@ -1658,23 +1644,23 @@ function kt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1658
1644
|
openLabel: S,
|
|
1659
1645
|
placeholder: C,
|
|
1660
1646
|
disabled: i,
|
|
1661
|
-
value:
|
|
1647
|
+
value: P,
|
|
1662
1648
|
role: "combobox",
|
|
1663
1649
|
"aria-haspopup": "dialog",
|
|
1664
1650
|
"aria-expanded": M,
|
|
1665
1651
|
"aria-controls": M ? j : void 0,
|
|
1666
1652
|
onClick: () => !i && O((e) => !e),
|
|
1667
|
-
onKeyDown:
|
|
1653
|
+
onKeyDown: F
|
|
1668
1654
|
}), M && g(/* @__PURE__ */ v("div", {
|
|
1669
1655
|
ref: A,
|
|
1670
1656
|
id: j,
|
|
1671
1657
|
role: "dialog",
|
|
1672
1658
|
"aria-label": w,
|
|
1673
|
-
className:
|
|
1674
|
-
children: /* @__PURE__ */ v(
|
|
1659
|
+
className: Tt.popup,
|
|
1660
|
+
children: /* @__PURE__ */ v(xt, {
|
|
1675
1661
|
autoFocus: !0,
|
|
1676
1662
|
value: e,
|
|
1677
|
-
onChange:
|
|
1663
|
+
onChange: I,
|
|
1678
1664
|
minDate: n,
|
|
1679
1665
|
maxDate: r,
|
|
1680
1666
|
locale: a,
|
|
@@ -1682,7 +1668,7 @@ function kt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
|
|
|
1682
1668
|
})
|
|
1683
1669
|
}), document.body)] });
|
|
1684
1670
|
}
|
|
1685
|
-
var
|
|
1671
|
+
var Dt = {
|
|
1686
1672
|
skeleton: "_skeleton_1pnmb_2",
|
|
1687
1673
|
inverse: "_inverse_1pnmb_7",
|
|
1688
1674
|
rect: "_rect_1pnmb_11",
|
|
@@ -1693,12 +1679,12 @@ var At = {
|
|
|
1693
1679
|
};
|
|
1694
1680
|
//#endregion
|
|
1695
1681
|
//#region src/components/Skeleton.tsx
|
|
1696
|
-
function
|
|
1682
|
+
function Ot({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, tone: a = "default", className: o, "data-testid": s }) {
|
|
1697
1683
|
let c = [
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
a === "inverse" &&
|
|
1701
|
-
i &&
|
|
1684
|
+
Dt.skeleton,
|
|
1685
|
+
Dt[e],
|
|
1686
|
+
a === "inverse" && Dt.inverse,
|
|
1687
|
+
i && Dt.animated,
|
|
1702
1688
|
o
|
|
1703
1689
|
].filter(Boolean).join(" "), l = {};
|
|
1704
1690
|
return e === "circle" && r !== void 0 && (l.width = r, l.height = r), t !== void 0 && (l.width = t), n !== void 0 && (l.height = n), /* @__PURE__ */ v("div", {
|
|
@@ -1710,12 +1696,12 @@ function jt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !
|
|
|
1710
1696
|
}
|
|
1711
1697
|
//#endregion
|
|
1712
1698
|
//#region src/utils/dateRange.ts
|
|
1713
|
-
function
|
|
1699
|
+
function kt(e) {
|
|
1714
1700
|
return e.start !== null && e.end !== null;
|
|
1715
1701
|
}
|
|
1716
|
-
function
|
|
1717
|
-
let n =
|
|
1718
|
-
return e.start && !e.end &&
|
|
1702
|
+
function At(e, t) {
|
|
1703
|
+
let n = ot(t);
|
|
1704
|
+
return e.start && !e.end && dt(n, e.start) >= 0 ? {
|
|
1719
1705
|
start: e.start,
|
|
1720
1706
|
end: n
|
|
1721
1707
|
} : {
|
|
@@ -1723,8 +1709,8 @@ function Nt(e, t) {
|
|
|
1723
1709
|
end: null
|
|
1724
1710
|
};
|
|
1725
1711
|
}
|
|
1726
|
-
function
|
|
1727
|
-
return e.start && !e.end && t ?
|
|
1712
|
+
function jt(e, t) {
|
|
1713
|
+
return e.start && !e.end && t ? dt(t, e.start) < 0 ? {
|
|
1728
1714
|
start: t,
|
|
1729
1715
|
end: e.start
|
|
1730
1716
|
} : {
|
|
@@ -1732,8 +1718,8 @@ function Pt(e, t) {
|
|
|
1732
1718
|
end: t
|
|
1733
1719
|
} : e;
|
|
1734
1720
|
}
|
|
1735
|
-
var
|
|
1736
|
-
function
|
|
1721
|
+
var Mt = " – ";
|
|
1722
|
+
function Nt(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
|
|
1737
1723
|
let { start: i, end: a } = e;
|
|
1738
1724
|
if (!i && !a) return "";
|
|
1739
1725
|
let o = new Intl.DateTimeFormat(t, {
|
|
@@ -1744,188 +1730,188 @@ function It(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue:
|
|
|
1744
1730
|
day: "2-digit",
|
|
1745
1731
|
year: "numeric"
|
|
1746
1732
|
}), c = [i, a].some((e) => e && e.getFullYear() !== n.getFullYear()), l = (e) => r ? r(e) : (c ? s : o).format(e);
|
|
1747
|
-
return i && !a ? l(i) : !i && a ? l(a) :
|
|
1733
|
+
return i && !a ? l(i) : !i && a ? l(a) : ut(i, a) ? l(i) : `${l(i)}${Mt}${l(a)}`;
|
|
1748
1734
|
}
|
|
1749
|
-
var
|
|
1750
|
-
field: "
|
|
1751
|
-
trigger: "
|
|
1752
|
-
errorWrap: "
|
|
1753
|
-
sm: "
|
|
1754
|
-
base: "
|
|
1755
|
-
icon: "
|
|
1756
|
-
value: "
|
|
1757
|
-
placeholder: "
|
|
1758
|
-
chevron: "
|
|
1759
|
-
chevronOpen: "
|
|
1760
|
-
helperText: "
|
|
1761
|
-
errorText: "
|
|
1762
|
-
popup: "
|
|
1763
|
-
popupIn: "
|
|
1764
|
-
presets: "
|
|
1765
|
-
preset: "
|
|
1766
|
-
main: "
|
|
1767
|
-
months: "
|
|
1768
|
-
month: "
|
|
1769
|
-
footer: "
|
|
1770
|
-
},
|
|
1771
|
-
function
|
|
1735
|
+
var Y = {
|
|
1736
|
+
field: "_field_6a290_1",
|
|
1737
|
+
trigger: "_trigger_6a290_11",
|
|
1738
|
+
errorWrap: "_errorWrap_6a290_43",
|
|
1739
|
+
sm: "_sm_6a290_68",
|
|
1740
|
+
base: "_base_6a290_76",
|
|
1741
|
+
icon: "_icon_6a290_84",
|
|
1742
|
+
value: "_value_6a290_98",
|
|
1743
|
+
placeholder: "_placeholder_6a290_106",
|
|
1744
|
+
chevron: "_chevron_6a290_109",
|
|
1745
|
+
chevronOpen: "_chevronOpen_6a290_124",
|
|
1746
|
+
helperText: "_helperText_6a290_127",
|
|
1747
|
+
errorText: "_errorText_6a290_132",
|
|
1748
|
+
popup: "_popup_6a290_138",
|
|
1749
|
+
popupIn: "_popupIn_6a290_1",
|
|
1750
|
+
presets: "_presets_6a290_173",
|
|
1751
|
+
preset: "_preset_6a290_173",
|
|
1752
|
+
main: "_main_6a290_213",
|
|
1753
|
+
months: "_months_6a290_220",
|
|
1754
|
+
month: "_month_6a290_220",
|
|
1755
|
+
footer: "_footer_6a290_228"
|
|
1756
|
+
}, Pt = "(min-width: 640px)", Ft = "(max-width: 480px)";
|
|
1757
|
+
function It(e) {
|
|
1772
1758
|
return h((t) => {
|
|
1773
1759
|
let n = window.matchMedia(e);
|
|
1774
1760
|
return n.addEventListener("change", t), () => n.removeEventListener("change", t);
|
|
1775
1761
|
}, () => window.matchMedia(e).matches, () => !1);
|
|
1776
1762
|
}
|
|
1777
|
-
var
|
|
1778
|
-
function
|
|
1779
|
-
let i =
|
|
1780
|
-
return r && (i =
|
|
1763
|
+
var Lt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Rt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
|
|
1764
|
+
function zt(e, t, n, r) {
|
|
1765
|
+
let i = Lt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
|
|
1766
|
+
return r && (i = lt(i, -1)), t && dt(i, Lt(t)) < 0 && (i = Lt(t)), i;
|
|
1781
1767
|
}
|
|
1782
|
-
function
|
|
1783
|
-
let [
|
|
1768
|
+
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 }) {
|
|
1769
|
+
let [N, P] = m(!1), [F, I] = m({
|
|
1784
1770
|
start: null,
|
|
1785
1771
|
end: null
|
|
1786
|
-
}), [
|
|
1772
|
+
}), [ee, te] = m(null), [L, R] = m(() => zt(e, n, r, !0)), [z, B] = m(() => ot(/* @__PURE__ */ new Date())), ne = p(null), re = p(null), ie = u(), ae = M ?? ie, oe = u(), V = It(Pt), se = It(Ft), H = N && !o && !c, U = a ? i.find((e) => e.id === a) : void 0, le = (e, t) => e && t ? dt(e, t) === 0 : e === t, W = H && !!F.start && !(le(F.start, e.start) && le(F.end, e.end)), G = f(() => W ? Nt(F, {
|
|
1787
1773
|
locale: l,
|
|
1788
1774
|
formatValue: h
|
|
1789
|
-
}) :
|
|
1775
|
+
}) : U?.label ?? Nt(e, {
|
|
1790
1776
|
locale: l,
|
|
1791
1777
|
formatValue: h
|
|
1792
1778
|
}), [
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1779
|
+
W,
|
|
1780
|
+
F,
|
|
1781
|
+
U,
|
|
1796
1782
|
e,
|
|
1797
1783
|
l,
|
|
1798
1784
|
h
|
|
1799
|
-
]),
|
|
1800
|
-
|
|
1785
|
+
]), de = s(() => ne.current, []), fe = s((e) => {
|
|
1786
|
+
P(!1), e && ne.current?.focus();
|
|
1801
1787
|
}, []);
|
|
1802
|
-
|
|
1803
|
-
isOpen:
|
|
1804
|
-
popupRef:
|
|
1805
|
-
getAnchor:
|
|
1788
|
+
wt({
|
|
1789
|
+
isOpen: H,
|
|
1790
|
+
popupRef: re,
|
|
1791
|
+
getAnchor: de,
|
|
1806
1792
|
placement: b,
|
|
1807
1793
|
onClose: fe,
|
|
1808
|
-
layoutKey: `${
|
|
1794
|
+
layoutKey: `${V}-${L.getTime()}`
|
|
1809
1795
|
});
|
|
1810
1796
|
function pe() {
|
|
1811
|
-
o || c || (
|
|
1797
|
+
o || c || (I({
|
|
1812
1798
|
start: e.start,
|
|
1813
1799
|
end: e.end
|
|
1814
|
-
}),
|
|
1800
|
+
}), te(null), R(zt(e, n, r, V)), B(e.end ?? e.start ?? ot(/* @__PURE__ */ new Date())), P(!0));
|
|
1815
1801
|
}
|
|
1816
1802
|
function me() {
|
|
1817
|
-
|
|
1803
|
+
H ? fe(!1) : pe();
|
|
1818
1804
|
}
|
|
1819
1805
|
function he(e) {
|
|
1820
|
-
e.key === "ArrowDown" && !
|
|
1806
|
+
e.key === "ArrowDown" && !H && (e.preventDefault(), pe());
|
|
1821
1807
|
}
|
|
1822
1808
|
function ge(e) {
|
|
1823
1809
|
t(e.range()), fe(!0);
|
|
1824
1810
|
}
|
|
1825
1811
|
function _e() {
|
|
1826
|
-
|
|
1827
|
-
start:
|
|
1828
|
-
end:
|
|
1812
|
+
kt(F) && (t({
|
|
1813
|
+
start: F.start,
|
|
1814
|
+
end: F.end
|
|
1829
1815
|
}), fe(!0));
|
|
1830
1816
|
}
|
|
1831
|
-
let ve = (e) => (t) =>
|
|
1832
|
-
value:
|
|
1833
|
-
onChange: (e) =>
|
|
1817
|
+
let ve = (e) => (t) => R(lt(Lt(t), -e)), ye = jt(F, ee), be = lt(L, 1), xe = V && Rt(z, be), Se = {
|
|
1818
|
+
value: z,
|
|
1819
|
+
onChange: (e) => I((t) => At(t, e)),
|
|
1834
1820
|
minDate: n,
|
|
1835
1821
|
maxDate: r,
|
|
1836
1822
|
locale: l,
|
|
1837
1823
|
weekStartsOn: d,
|
|
1838
1824
|
range: ye,
|
|
1839
|
-
onDayHover:
|
|
1825
|
+
onDayHover: te
|
|
1840
1826
|
}, Ce = i.length > 0;
|
|
1841
1827
|
return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
|
|
1842
|
-
className: [
|
|
1828
|
+
className: [Y.field, j].filter(Boolean).join(" "),
|
|
1843
1829
|
children: [
|
|
1844
|
-
S && /* @__PURE__ */ v(
|
|
1845
|
-
htmlFor:
|
|
1830
|
+
S && /* @__PURE__ */ v(Re, {
|
|
1831
|
+
htmlFor: ae,
|
|
1846
1832
|
children: S
|
|
1847
1833
|
}),
|
|
1848
1834
|
/* @__PURE__ */ y("button", {
|
|
1849
|
-
ref:
|
|
1850
|
-
id:
|
|
1835
|
+
ref: ne,
|
|
1836
|
+
id: ae,
|
|
1851
1837
|
type: "button",
|
|
1852
1838
|
className: [
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
w &&
|
|
1839
|
+
Y.trigger,
|
|
1840
|
+
Y[x],
|
|
1841
|
+
w && Y.errorWrap
|
|
1856
1842
|
].filter(Boolean).join(" "),
|
|
1857
1843
|
disabled: o || c,
|
|
1858
1844
|
"aria-label": S ? void 0 : E,
|
|
1859
1845
|
"aria-haspopup": "dialog",
|
|
1860
|
-
"aria-expanded":
|
|
1861
|
-
"aria-controls":
|
|
1846
|
+
"aria-expanded": H,
|
|
1847
|
+
"aria-controls": H ? oe : void 0,
|
|
1862
1848
|
"aria-busy": c || void 0,
|
|
1863
1849
|
onClick: me,
|
|
1864
1850
|
onKeyDown: he,
|
|
1865
1851
|
children: [
|
|
1866
1852
|
/* @__PURE__ */ v("span", {
|
|
1867
|
-
className:
|
|
1853
|
+
className: Y.icon,
|
|
1868
1854
|
"aria-hidden": !0,
|
|
1869
|
-
children: /* @__PURE__ */ v(
|
|
1855
|
+
children: /* @__PURE__ */ v(ce, {})
|
|
1870
1856
|
}),
|
|
1871
1857
|
c ? /* @__PURE__ */ v("span", {
|
|
1872
|
-
className:
|
|
1873
|
-
children: /* @__PURE__ */ v(
|
|
1858
|
+
className: Y.value,
|
|
1859
|
+
children: /* @__PURE__ */ v(Ot, {
|
|
1874
1860
|
variant: "text",
|
|
1875
1861
|
width: "60%"
|
|
1876
1862
|
})
|
|
1877
1863
|
}) : /* @__PURE__ */ v("span", {
|
|
1878
|
-
className: [
|
|
1879
|
-
children:
|
|
1864
|
+
className: [Y.value, !G && Y.placeholder].filter(Boolean).join(" "),
|
|
1865
|
+
children: G || T
|
|
1880
1866
|
}),
|
|
1881
1867
|
/* @__PURE__ */ v("span", {
|
|
1882
|
-
className: [
|
|
1868
|
+
className: [Y.chevron, H && Y.chevronOpen].filter(Boolean).join(" "),
|
|
1883
1869
|
"aria-hidden": !0,
|
|
1884
|
-
children: /* @__PURE__ */ v(
|
|
1870
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
1885
1871
|
})
|
|
1886
1872
|
]
|
|
1887
1873
|
}),
|
|
1888
1874
|
w ? /* @__PURE__ */ v("span", {
|
|
1889
|
-
className:
|
|
1875
|
+
className: Y.errorText,
|
|
1890
1876
|
children: w
|
|
1891
1877
|
}) : C ? /* @__PURE__ */ v("span", {
|
|
1892
|
-
className:
|
|
1878
|
+
className: Y.helperText,
|
|
1893
1879
|
children: C
|
|
1894
1880
|
}) : null
|
|
1895
1881
|
]
|
|
1896
|
-
}),
|
|
1897
|
-
ref:
|
|
1898
|
-
id:
|
|
1882
|
+
}), H && g(/* @__PURE__ */ y("div", {
|
|
1883
|
+
ref: re,
|
|
1884
|
+
id: oe,
|
|
1899
1885
|
role: "dialog",
|
|
1900
1886
|
"aria-label": D,
|
|
1901
|
-
className:
|
|
1887
|
+
className: Y.popup,
|
|
1902
1888
|
children: [Ce && /* @__PURE__ */ v("div", {
|
|
1903
|
-
className:
|
|
1889
|
+
className: Y.presets,
|
|
1904
1890
|
role: "group",
|
|
1905
1891
|
"aria-label": D,
|
|
1906
1892
|
children: i.map((e) => /* @__PURE__ */ v("button", {
|
|
1907
1893
|
type: "button",
|
|
1908
|
-
className:
|
|
1894
|
+
className: Y.preset,
|
|
1909
1895
|
"aria-pressed": e.id === a,
|
|
1910
1896
|
onClick: () => ge(e),
|
|
1911
1897
|
children: e.label
|
|
1912
1898
|
}, e.id))
|
|
1913
1899
|
}), /* @__PURE__ */ y("div", {
|
|
1914
|
-
className:
|
|
1900
|
+
className: Y.main,
|
|
1915
1901
|
children: [/* @__PURE__ */ y("div", {
|
|
1916
|
-
className:
|
|
1902
|
+
className: Y.months,
|
|
1917
1903
|
children: [/* @__PURE__ */ v("div", {
|
|
1918
|
-
className:
|
|
1919
|
-
children: /* @__PURE__ */ v(
|
|
1904
|
+
className: Y.month,
|
|
1905
|
+
children: /* @__PURE__ */ v(xt, {
|
|
1920
1906
|
...Se,
|
|
1921
1907
|
autoFocus: !xe,
|
|
1922
|
-
month:
|
|
1908
|
+
month: L,
|
|
1923
1909
|
onMonthChange: ve(0),
|
|
1924
|
-
hideNavigation:
|
|
1910
|
+
hideNavigation: V ? "next" : void 0
|
|
1925
1911
|
})
|
|
1926
|
-
}),
|
|
1927
|
-
className:
|
|
1928
|
-
children: /* @__PURE__ */ v(
|
|
1912
|
+
}), V && /* @__PURE__ */ v("div", {
|
|
1913
|
+
className: Y.month,
|
|
1914
|
+
children: /* @__PURE__ */ v(xt, {
|
|
1929
1915
|
...Se,
|
|
1930
1916
|
autoFocus: xe,
|
|
1931
1917
|
month: be,
|
|
@@ -1933,8 +1919,24 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1933
1919
|
hideNavigation: "previous"
|
|
1934
1920
|
})
|
|
1935
1921
|
})]
|
|
1936
|
-
}), /* @__PURE__ */ y("div", {
|
|
1937
|
-
className:
|
|
1922
|
+
}), se ? /* @__PURE__ */ y("div", {
|
|
1923
|
+
className: Y.footer,
|
|
1924
|
+
children: [/* @__PURE__ */ v(k, {
|
|
1925
|
+
variant: "primary",
|
|
1926
|
+
size: "base",
|
|
1927
|
+
fullWidth: !0,
|
|
1928
|
+
disabled: !kt(F),
|
|
1929
|
+
onClick: _e,
|
|
1930
|
+
children: O
|
|
1931
|
+
}), /* @__PURE__ */ v(k, {
|
|
1932
|
+
variant: "tertiary",
|
|
1933
|
+
size: "base",
|
|
1934
|
+
fullWidth: !0,
|
|
1935
|
+
onClick: () => fe(!0),
|
|
1936
|
+
children: A
|
|
1937
|
+
})]
|
|
1938
|
+
}) : /* @__PURE__ */ y("div", {
|
|
1939
|
+
className: Y.footer,
|
|
1938
1940
|
children: [/* @__PURE__ */ v(k, {
|
|
1939
1941
|
variant: "tertiary",
|
|
1940
1942
|
size: "sm",
|
|
@@ -1943,7 +1945,7 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1943
1945
|
}), /* @__PURE__ */ v(k, {
|
|
1944
1946
|
variant: "primary",
|
|
1945
1947
|
size: "sm",
|
|
1946
|
-
disabled: !
|
|
1948
|
+
disabled: !kt(F),
|
|
1947
1949
|
onClick: _e,
|
|
1948
1950
|
children: O
|
|
1949
1951
|
})]
|
|
@@ -1951,7 +1953,7 @@ function Ht({ value: e, onChange: t, minDate: n, maxDate: r, presets: i = [], ac
|
|
|
1951
1953
|
})]
|
|
1952
1954
|
}), document.body)] });
|
|
1953
1955
|
}
|
|
1954
|
-
var
|
|
1956
|
+
var Vt = {
|
|
1955
1957
|
field: "_field_l0zl7_1",
|
|
1956
1958
|
inputWrap: "_inputWrap_l0zl7_6",
|
|
1957
1959
|
errorWrap: "_errorWrap_l0zl7_19",
|
|
@@ -1965,64 +1967,64 @@ var Ut = {
|
|
|
1965
1967
|
};
|
|
1966
1968
|
//#endregion
|
|
1967
1969
|
//#region src/components/NumberField.tsx
|
|
1968
|
-
function
|
|
1970
|
+
function Ht({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
|
|
1969
1971
|
let c = u(), l = o ?? c;
|
|
1970
1972
|
return /* @__PURE__ */ y("div", {
|
|
1971
|
-
className:
|
|
1973
|
+
className: Vt.field,
|
|
1972
1974
|
children: [
|
|
1973
|
-
e && /* @__PURE__ */ v(
|
|
1975
|
+
e && /* @__PURE__ */ v(Re, {
|
|
1974
1976
|
htmlFor: l,
|
|
1975
1977
|
children: e
|
|
1976
1978
|
}),
|
|
1977
1979
|
/* @__PURE__ */ y("div", {
|
|
1978
|
-
className: `${
|
|
1980
|
+
className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
|
|
1979
1981
|
children: [
|
|
1980
1982
|
i && /* @__PURE__ */ v("span", {
|
|
1981
|
-
className:
|
|
1983
|
+
className: Vt.prefix,
|
|
1982
1984
|
children: i
|
|
1983
1985
|
}),
|
|
1984
1986
|
/* @__PURE__ */ v("input", {
|
|
1985
1987
|
id: l,
|
|
1986
|
-
className:
|
|
1988
|
+
className: Vt.input,
|
|
1987
1989
|
...s
|
|
1988
1990
|
}),
|
|
1989
1991
|
a && /* @__PURE__ */ v("span", {
|
|
1990
|
-
className:
|
|
1992
|
+
className: Vt.suffix,
|
|
1991
1993
|
children: a
|
|
1992
1994
|
})
|
|
1993
1995
|
]
|
|
1994
1996
|
}),
|
|
1995
1997
|
n ? /* @__PURE__ */ v("span", {
|
|
1996
|
-
className:
|
|
1998
|
+
className: Vt.errorText,
|
|
1997
1999
|
children: n
|
|
1998
2000
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
1999
|
-
className:
|
|
2001
|
+
className: Vt.helperText,
|
|
2000
2002
|
children: t
|
|
2001
2003
|
}) : null
|
|
2002
2004
|
]
|
|
2003
2005
|
});
|
|
2004
2006
|
}
|
|
2005
|
-
var
|
|
2007
|
+
var Ut = {
|
|
2006
2008
|
menu: "_menu_xz84k_1",
|
|
2007
2009
|
divider: "_divider_xz84k_15"
|
|
2008
2010
|
};
|
|
2009
2011
|
//#endregion
|
|
2010
2012
|
//#region src/components/Menu.tsx
|
|
2011
|
-
function
|
|
2013
|
+
function Wt({ children: e, ...t }) {
|
|
2012
2014
|
return /* @__PURE__ */ v("div", {
|
|
2013
2015
|
role: "menu",
|
|
2014
|
-
className:
|
|
2016
|
+
className: Ut.menu,
|
|
2015
2017
|
...t,
|
|
2016
2018
|
children: e
|
|
2017
2019
|
});
|
|
2018
2020
|
}
|
|
2019
|
-
function
|
|
2021
|
+
function Gt() {
|
|
2020
2022
|
return /* @__PURE__ */ v("div", {
|
|
2021
|
-
className:
|
|
2023
|
+
className: Ut.divider,
|
|
2022
2024
|
role: "separator"
|
|
2023
2025
|
});
|
|
2024
2026
|
}
|
|
2025
|
-
var
|
|
2027
|
+
var Kt = {
|
|
2026
2028
|
item: "_item_1sghe_1",
|
|
2027
2029
|
base: "_base_1sghe_21",
|
|
2028
2030
|
icon: "_icon_1sghe_31",
|
|
@@ -2035,12 +2037,12 @@ var Jt = {
|
|
|
2035
2037
|
};
|
|
2036
2038
|
//#endregion
|
|
2037
2039
|
//#region src/components/MenuItem.tsx
|
|
2038
|
-
function
|
|
2040
|
+
function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
|
|
2039
2041
|
let c = [
|
|
2040
|
-
|
|
2041
|
-
a === "base" &&
|
|
2042
|
-
r &&
|
|
2043
|
-
i &&
|
|
2042
|
+
Kt.item,
|
|
2043
|
+
a === "base" && Kt.base,
|
|
2044
|
+
r && Kt.selected,
|
|
2045
|
+
i && Kt.destructive
|
|
2044
2046
|
].filter(Boolean).join(" ");
|
|
2045
2047
|
return /* @__PURE__ */ y("button", {
|
|
2046
2048
|
type: "button",
|
|
@@ -2049,29 +2051,29 @@ function Yt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
|
|
|
2049
2051
|
...s,
|
|
2050
2052
|
children: [
|
|
2051
2053
|
e && /* @__PURE__ */ v("span", {
|
|
2052
|
-
className:
|
|
2054
|
+
className: Kt.leading,
|
|
2053
2055
|
children: e
|
|
2054
2056
|
}),
|
|
2055
2057
|
t && /* @__PURE__ */ v("span", {
|
|
2056
|
-
className:
|
|
2058
|
+
className: Kt.icon,
|
|
2057
2059
|
children: t
|
|
2058
2060
|
}),
|
|
2059
2061
|
/* @__PURE__ */ v("span", {
|
|
2060
|
-
className:
|
|
2062
|
+
className: Kt.label,
|
|
2061
2063
|
children: o
|
|
2062
2064
|
}),
|
|
2063
2065
|
n && /* @__PURE__ */ v("span", {
|
|
2064
|
-
className:
|
|
2066
|
+
className: Kt.trailing,
|
|
2065
2067
|
children: n
|
|
2066
2068
|
}),
|
|
2067
2069
|
r && /* @__PURE__ */ v("span", {
|
|
2068
|
-
className:
|
|
2069
|
-
children: /* @__PURE__ */ v(
|
|
2070
|
+
className: Kt.check,
|
|
2071
|
+
children: /* @__PURE__ */ v(W, {})
|
|
2070
2072
|
})
|
|
2071
2073
|
]
|
|
2072
2074
|
});
|
|
2073
2075
|
}
|
|
2074
|
-
var
|
|
2076
|
+
var X = {
|
|
2075
2077
|
field: "_field_2od11_1",
|
|
2076
2078
|
fieldInline: "_fieldInline_2od11_2",
|
|
2077
2079
|
trigger: "_trigger_2od11_19",
|
|
@@ -2108,15 +2110,15 @@ var Y = {
|
|
|
2108
2110
|
};
|
|
2109
2111
|
//#endregion
|
|
2110
2112
|
//#region src/components/Dropdown.tsx
|
|
2111
|
-
function
|
|
2113
|
+
function Jt(e) {
|
|
2112
2114
|
return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
|
|
2113
2115
|
}
|
|
2114
|
-
function
|
|
2116
|
+
function Yt(e) {
|
|
2115
2117
|
return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
|
|
2116
2118
|
}
|
|
2117
|
-
var
|
|
2118
|
-
function
|
|
2119
|
-
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), [
|
|
2119
|
+
var Xt = (e) => `and ${e} more`;
|
|
2120
|
+
function Zt(e) {
|
|
2121
|
+
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), [N, P] = m(C), [F, I] = m(""), [ee, te] = m(!1), [L, R] = m(null), z = p(null), B = p(null), ne = p(null), re = p(null), ie = s((e) => {
|
|
2120
2122
|
if (!e) return;
|
|
2121
2123
|
let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
|
|
2122
2124
|
t();
|
|
@@ -2127,241 +2129,241 @@ function $t(e) {
|
|
|
2127
2129
|
return r.observe(e, { childList: !0 }), () => {
|
|
2128
2130
|
n.disconnect(), r.disconnect();
|
|
2129
2131
|
};
|
|
2130
|
-
}, []),
|
|
2131
|
-
function
|
|
2132
|
-
|
|
2132
|
+
}, []), ae = u(), oe = u(), V = e.multiple ? void 0 : e.value, se = e.multiple && e.value || [], H = se.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), U = A ? void 0 : h.find((e) => e.value === V), ce = F.trim().toLowerCase(), le = b && ce ? h.filter((e) => Jt(e).toLowerCase().includes(ce)) : h, W = le.filter((e) => !e.disabled).map((e) => e.value), G = t === "field";
|
|
2133
|
+
function de() {
|
|
2134
|
+
P(!0), M(!0);
|
|
2133
2135
|
}
|
|
2134
|
-
function
|
|
2135
|
-
M(!1),
|
|
2136
|
+
function fe() {
|
|
2137
|
+
M(!1), I("");
|
|
2136
2138
|
}
|
|
2137
2139
|
l(() => {
|
|
2138
2140
|
if (!j) return;
|
|
2139
2141
|
if (b) {
|
|
2140
|
-
|
|
2142
|
+
re.current?.focus();
|
|
2141
2143
|
return;
|
|
2142
2144
|
}
|
|
2143
|
-
let e = (A ?
|
|
2144
|
-
(
|
|
2145
|
+
let e = (A ? H.find((e) => !e.disabled)?.value : V) ?? W[0];
|
|
2146
|
+
(z.current?.querySelector(`[data-value="${e}"]`))?.focus();
|
|
2145
2147
|
}, [j]), d(() => {
|
|
2146
|
-
if (!j || !
|
|
2147
|
-
let e =
|
|
2148
|
-
|
|
2148
|
+
if (!j || !ne.current || !z.current) return;
|
|
2149
|
+
let e = z.current.getBoundingClientRect(), t = ne.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
|
|
2150
|
+
te(n < t + 8 && r > n);
|
|
2149
2151
|
}, [j]), l(() => {
|
|
2150
2152
|
if (!j) return;
|
|
2151
2153
|
function e(e) {
|
|
2152
|
-
|
|
2154
|
+
z.current?.contains(e.target) || fe();
|
|
2153
2155
|
}
|
|
2154
2156
|
function t(e) {
|
|
2155
|
-
e.key === "Escape" && (
|
|
2157
|
+
e.key === "Escape" && (fe(), B.current?.focus()), e.key === "Tab" && A && fe();
|
|
2156
2158
|
}
|
|
2157
2159
|
return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
|
|
2158
2160
|
window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
|
|
2159
2161
|
};
|
|
2160
2162
|
}, [j, A]);
|
|
2163
|
+
function pe(e) {
|
|
2164
|
+
e !== void 0 && z.current?.querySelector(`[data-value="${e}"]`)?.focus();
|
|
2165
|
+
}
|
|
2161
2166
|
function me(e) {
|
|
2162
|
-
e
|
|
2167
|
+
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), de());
|
|
2163
2168
|
}
|
|
2164
2169
|
function he(e) {
|
|
2165
|
-
|
|
2166
|
-
}
|
|
2167
|
-
function ge(e) {
|
|
2168
|
-
e.key === "ArrowDown" && (e.preventDefault(), me(U[0])), e.key === "Enter" && U.length === 1 && (e.preventDefault(), ye(U[0]));
|
|
2170
|
+
e.key === "ArrowDown" && (e.preventDefault(), pe(W[0])), e.key === "Enter" && W.length === 1 && (e.preventDefault(), ve(W[0]));
|
|
2169
2171
|
}
|
|
2170
|
-
function
|
|
2171
|
-
let n =
|
|
2172
|
+
function ge(e, t) {
|
|
2173
|
+
let n = W.indexOf(t);
|
|
2172
2174
|
if (n === -1) return;
|
|
2173
2175
|
let r = null;
|
|
2174
|
-
if (e.key === "ArrowDown" && (r = (n + 1) %
|
|
2176
|
+
if (e.key === "ArrowDown" && (r = (n + 1) % W.length), e.key === "ArrowUp") {
|
|
2175
2177
|
if (b && n === 0) {
|
|
2176
|
-
e.preventDefault(),
|
|
2178
|
+
e.preventDefault(), re.current?.focus();
|
|
2177
2179
|
return;
|
|
2178
2180
|
}
|
|
2179
|
-
r = (n - 1 +
|
|
2181
|
+
r = (n - 1 + W.length) % W.length;
|
|
2180
2182
|
}
|
|
2181
|
-
e.key === "Home" && (r = 0), e.key === "End" && (r =
|
|
2183
|
+
e.key === "Home" && (r = 0), e.key === "End" && (r = W.length - 1), r !== null && (e.preventDefault(), pe(W[r]));
|
|
2182
2184
|
}
|
|
2183
|
-
function
|
|
2184
|
-
|
|
2185
|
+
function _e(e) {
|
|
2186
|
+
R((t) => ({
|
|
2185
2187
|
top: e.offsetTop,
|
|
2186
2188
|
height: e.offsetHeight,
|
|
2187
2189
|
instant: !t
|
|
2188
2190
|
}));
|
|
2189
2191
|
}
|
|
2190
|
-
function
|
|
2192
|
+
function ve(t) {
|
|
2191
2193
|
if (e.multiple) {
|
|
2192
2194
|
let n = e.value ?? [];
|
|
2193
2195
|
e.onChange(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
2194
2196
|
return;
|
|
2195
2197
|
}
|
|
2196
|
-
e.onChange(t),
|
|
2198
|
+
e.onChange(t), fe(), B.current?.focus();
|
|
2197
2199
|
}
|
|
2198
|
-
function
|
|
2199
|
-
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(
|
|
2200
|
-
let t =
|
|
2201
|
-
if (
|
|
2202
|
-
let n =
|
|
2203
|
-
return n === void 0 ? `${
|
|
2200
|
+
function ye() {
|
|
2201
|
+
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(H);
|
|
2202
|
+
let t = H[0];
|
|
2203
|
+
if (H.length === 1) return t.label;
|
|
2204
|
+
let n = Yt(t);
|
|
2205
|
+
return n === void 0 ? `${H.length} selected` : `${n} ${(e.multiple && e.moreText || Xt)(H.length - 1)}`;
|
|
2204
2206
|
}
|
|
2205
|
-
let
|
|
2206
|
-
className:
|
|
2207
|
+
let be = n === void 0 && (A ? H.length === 0 : !U), xe = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
|
|
2208
|
+
className: X.prefix,
|
|
2207
2209
|
children: [e.triggerPrefix, " "]
|
|
2208
|
-
}) : null,
|
|
2210
|
+
}) : null, Se = n ?? (be ? f : A ? ye() : U?.label), Ce = /* @__PURE__ */ y(_, { children: [xe, Se] }), we = {
|
|
2209
2211
|
"aria-haspopup": "listbox",
|
|
2210
2212
|
"aria-expanded": j,
|
|
2211
|
-
"aria-controls": j ?
|
|
2213
|
+
"aria-controls": j ? oe : void 0,
|
|
2212
2214
|
"aria-label": i ? void 0 : D,
|
|
2213
2215
|
autoFocus: w,
|
|
2214
2216
|
disabled: g,
|
|
2215
|
-
onClick: () => j ?
|
|
2216
|
-
onKeyDown:
|
|
2217
|
+
onClick: () => j ? fe() : de(),
|
|
2218
|
+
onKeyDown: me
|
|
2217
2219
|
};
|
|
2218
2220
|
return /* @__PURE__ */ y("div", {
|
|
2219
|
-
className: [
|
|
2220
|
-
ref:
|
|
2221
|
+
className: [G ? X.field : X.fieldInline, T].filter(Boolean).join(" "),
|
|
2222
|
+
ref: z,
|
|
2221
2223
|
"data-testid": O,
|
|
2222
2224
|
children: [
|
|
2223
|
-
|
|
2224
|
-
htmlFor:
|
|
2225
|
+
G && i && /* @__PURE__ */ v(Re, {
|
|
2226
|
+
htmlFor: ae,
|
|
2225
2227
|
className: E,
|
|
2226
2228
|
children: i
|
|
2227
2229
|
}),
|
|
2228
|
-
|
|
2229
|
-
ref:
|
|
2230
|
-
id:
|
|
2230
|
+
G ? /* @__PURE__ */ y("button", {
|
|
2231
|
+
ref: B,
|
|
2232
|
+
id: ae,
|
|
2231
2233
|
type: "button",
|
|
2232
2234
|
role: "combobox",
|
|
2233
|
-
className: `${
|
|
2234
|
-
...
|
|
2235
|
+
className: `${X.trigger} ${X[c]} ${o ? X.errorWrap : ""}`,
|
|
2236
|
+
...we,
|
|
2235
2237
|
children: [
|
|
2236
|
-
|
|
2237
|
-
className:
|
|
2238
|
-
children:
|
|
2238
|
+
U?.icon && /* @__PURE__ */ v("span", {
|
|
2239
|
+
className: X.icon,
|
|
2240
|
+
children: U.icon
|
|
2239
2241
|
}),
|
|
2240
2242
|
/* @__PURE__ */ v("span", {
|
|
2241
|
-
className: `${
|
|
2242
|
-
children:
|
|
2243
|
+
className: `${X.value} ${be ? X.placeholder : ""}`,
|
|
2244
|
+
children: Ce
|
|
2243
2245
|
}),
|
|
2244
2246
|
/* @__PURE__ */ v("span", {
|
|
2245
|
-
className: `${
|
|
2246
|
-
children: /* @__PURE__ */ v(
|
|
2247
|
+
className: `${X.chevron} ${j ? X.chevronOpen : ""}`,
|
|
2248
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
2247
2249
|
})
|
|
2248
2250
|
]
|
|
2249
2251
|
}) : t === "pill" ? /* @__PURE__ */ y("button", {
|
|
2250
|
-
ref:
|
|
2251
|
-
id:
|
|
2252
|
+
ref: B,
|
|
2253
|
+
id: ae,
|
|
2252
2254
|
type: "button",
|
|
2253
|
-
className:
|
|
2254
|
-
...
|
|
2255
|
+
className: X.pillTrigger,
|
|
2256
|
+
...we,
|
|
2255
2257
|
children: [
|
|
2256
|
-
|
|
2257
|
-
className:
|
|
2258
|
-
children:
|
|
2258
|
+
U?.icon && /* @__PURE__ */ v("span", {
|
|
2259
|
+
className: X.pillIcon,
|
|
2260
|
+
children: U.icon
|
|
2259
2261
|
}),
|
|
2260
|
-
|
|
2262
|
+
Ce,
|
|
2261
2263
|
/* @__PURE__ */ v("span", {
|
|
2262
|
-
className: `${
|
|
2263
|
-
children: /* @__PURE__ */ v(
|
|
2264
|
+
className: `${X.pillChevron} ${j ? X.chevronOpen : ""}`,
|
|
2265
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
2264
2266
|
})
|
|
2265
2267
|
]
|
|
2266
2268
|
}) : /* @__PURE__ */ v(k, {
|
|
2267
|
-
ref:
|
|
2268
|
-
id:
|
|
2269
|
+
ref: B,
|
|
2270
|
+
id: ae,
|
|
2269
2271
|
variant: t,
|
|
2270
2272
|
size: c,
|
|
2271
|
-
className: c === "base" ?
|
|
2272
|
-
leadingIcon:
|
|
2273
|
+
className: c === "base" ? X.buttonTriggerBase : void 0,
|
|
2274
|
+
leadingIcon: U?.icon,
|
|
2273
2275
|
trailingIcon: /* @__PURE__ */ v("span", {
|
|
2274
|
-
className: `${
|
|
2275
|
-
children: /* @__PURE__ */ v(
|
|
2276
|
+
className: `${X.buttonChevron} ${j ? X.chevronOpen : ""}`,
|
|
2277
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
2276
2278
|
}),
|
|
2277
|
-
...
|
|
2278
|
-
children:
|
|
2279
|
+
...we,
|
|
2280
|
+
children: Ce
|
|
2279
2281
|
}),
|
|
2280
|
-
|
|
2281
|
-
ref:
|
|
2282
|
+
N && /* @__PURE__ */ v("div", {
|
|
2283
|
+
ref: ne,
|
|
2282
2284
|
className: [
|
|
2283
|
-
|
|
2284
|
-
!
|
|
2285
|
-
!
|
|
2286
|
-
!
|
|
2287
|
-
|
|
2288
|
-
!j &&
|
|
2285
|
+
X.menuWrap,
|
|
2286
|
+
!G && X.menuWrapAuto,
|
|
2287
|
+
!G && A && X.menuWrapMultiple,
|
|
2288
|
+
!G && r === "end" && X.menuWrapEnd,
|
|
2289
|
+
ee && X.menuWrapUp,
|
|
2290
|
+
!j && X.menuWrapClosing
|
|
2289
2291
|
].filter(Boolean).join(" "),
|
|
2290
2292
|
onAnimationEnd: (e) => {
|
|
2291
|
-
j || e.target !== e.currentTarget || (
|
|
2293
|
+
j || e.target !== e.currentTarget || (P(!1), te(!1));
|
|
2292
2294
|
},
|
|
2293
|
-
children: /* @__PURE__ */ y(
|
|
2295
|
+
children: /* @__PURE__ */ y(Wt, {
|
|
2294
2296
|
role: "presentation",
|
|
2295
|
-
style:
|
|
2297
|
+
style: G ? { width: "100%" } : void 0,
|
|
2296
2298
|
children: [b && /* @__PURE__ */ v("input", {
|
|
2297
|
-
ref:
|
|
2299
|
+
ref: re,
|
|
2298
2300
|
type: "text",
|
|
2299
|
-
className:
|
|
2300
|
-
value:
|
|
2301
|
+
className: X.search,
|
|
2302
|
+
value: F,
|
|
2301
2303
|
placeholder: x,
|
|
2302
2304
|
"aria-label": x,
|
|
2303
|
-
"aria-controls":
|
|
2305
|
+
"aria-controls": oe,
|
|
2304
2306
|
autoComplete: "off",
|
|
2305
2307
|
spellCheck: !1,
|
|
2306
2308
|
onChange: (e) => {
|
|
2307
|
-
|
|
2309
|
+
I(e.target.value), R(null);
|
|
2308
2310
|
},
|
|
2309
|
-
onKeyDown:
|
|
2311
|
+
onKeyDown: he
|
|
2310
2312
|
}), /* @__PURE__ */ y("div", {
|
|
2311
|
-
id:
|
|
2313
|
+
id: oe,
|
|
2312
2314
|
role: "listbox",
|
|
2313
2315
|
"aria-multiselectable": A || void 0,
|
|
2314
2316
|
"aria-label": i ?? D,
|
|
2315
|
-
ref:
|
|
2316
|
-
className:
|
|
2317
|
-
onMouseLeave: () =>
|
|
2317
|
+
ref: ie,
|
|
2318
|
+
className: X.list,
|
|
2319
|
+
onMouseLeave: () => R(null),
|
|
2318
2320
|
onBlur: (e) => {
|
|
2319
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
2321
|
+
e.currentTarget.contains(e.relatedTarget) || R(null);
|
|
2320
2322
|
},
|
|
2321
|
-
children: [
|
|
2323
|
+
children: [L && le.length > 0 && /* @__PURE__ */ v("span", {
|
|
2322
2324
|
"aria-hidden": "true",
|
|
2323
|
-
className: `${
|
|
2325
|
+
className: `${X.highlight} ${L.instant ? X.highlightInstant : ""}`,
|
|
2324
2326
|
style: {
|
|
2325
|
-
transform: `translateY(${
|
|
2326
|
-
height:
|
|
2327
|
+
transform: `translateY(${L.top}px)`,
|
|
2328
|
+
height: L.height
|
|
2327
2329
|
}
|
|
2328
|
-
}),
|
|
2329
|
-
className:
|
|
2330
|
+
}), le.length === 0 ? /* @__PURE__ */ v("div", {
|
|
2331
|
+
className: X.noResults,
|
|
2330
2332
|
role: "presentation",
|
|
2331
2333
|
children: S
|
|
2332
|
-
}) :
|
|
2334
|
+
}) : le.map((e, n) => /* @__PURE__ */ v(qt, {
|
|
2333
2335
|
style: { "--i": Math.min(n, 8) },
|
|
2334
2336
|
"data-value": e.value,
|
|
2335
2337
|
role: "option",
|
|
2336
|
-
"aria-selected": A ?
|
|
2338
|
+
"aria-selected": A ? se.includes(e.value) : e.value === V,
|
|
2337
2339
|
size: t === "pill" ? "sm" : c,
|
|
2338
2340
|
icon: e.icon,
|
|
2339
|
-
leading: A ? /* @__PURE__ */ v(
|
|
2340
|
-
checked:
|
|
2341
|
+
leading: A ? /* @__PURE__ */ v(Je, {
|
|
2342
|
+
checked: se.includes(e.value),
|
|
2341
2343
|
disabled: e.disabled
|
|
2342
2344
|
}) : void 0,
|
|
2343
|
-
selected: !A && e.value ===
|
|
2345
|
+
selected: !A && e.value === V,
|
|
2344
2346
|
disabled: e.disabled,
|
|
2345
|
-
onClick: () =>
|
|
2346
|
-
onPointerEnter: (t) => t.pointerType === "mouse" && !e.disabled &&
|
|
2347
|
-
onFocus: (e) =>
|
|
2348
|
-
onKeyDown: (t) =>
|
|
2347
|
+
onClick: () => ve(e.value),
|
|
2348
|
+
onPointerEnter: (t) => t.pointerType === "mouse" && !e.disabled && _e(t.currentTarget),
|
|
2349
|
+
onFocus: (e) => _e(e.currentTarget),
|
|
2350
|
+
onKeyDown: (t) => ge(t, e.value),
|
|
2349
2351
|
children: e.label
|
|
2350
2352
|
}, e.value))]
|
|
2351
2353
|
})]
|
|
2352
2354
|
})
|
|
2353
2355
|
}),
|
|
2354
|
-
|
|
2355
|
-
className:
|
|
2356
|
+
G && o ? /* @__PURE__ */ v("span", {
|
|
2357
|
+
className: X.errorText,
|
|
2356
2358
|
children: o
|
|
2357
|
-
}) :
|
|
2358
|
-
className:
|
|
2359
|
+
}) : G && a ? /* @__PURE__ */ v("span", {
|
|
2360
|
+
className: X.helperText,
|
|
2359
2361
|
children: a
|
|
2360
2362
|
}) : null
|
|
2361
2363
|
]
|
|
2362
2364
|
});
|
|
2363
2365
|
}
|
|
2364
|
-
var
|
|
2366
|
+
var Qt = {
|
|
2365
2367
|
item: "_item_iayt7_2",
|
|
2366
2368
|
active: "_active_iayt7_39",
|
|
2367
2369
|
inList: "_inList_iayt7_44",
|
|
@@ -2372,41 +2374,41 @@ var en = {
|
|
|
2372
2374
|
glide: "_glide_iayt7_119",
|
|
2373
2375
|
glideAnimated: "_glideAnimated_iayt7_132",
|
|
2374
2376
|
glideVisible: "_glideVisible_iayt7_138"
|
|
2375
|
-
},
|
|
2376
|
-
function
|
|
2377
|
-
let l = c(
|
|
2378
|
-
|
|
2379
|
-
n &&
|
|
2380
|
-
l &&
|
|
2377
|
+
}, $t = "data-nav-item", en = r(!1);
|
|
2378
|
+
function tn({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
|
|
2379
|
+
let l = c(en), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
|
|
2380
|
+
Qt.item,
|
|
2381
|
+
n && Qt.active,
|
|
2382
|
+
l && Qt.inList,
|
|
2381
2383
|
a
|
|
2382
2384
|
].filter(Boolean).join(" ");
|
|
2383
2385
|
return /* @__PURE__ */ y(u, {
|
|
2384
2386
|
...d ? { type: "button" } : {},
|
|
2385
2387
|
...i === void 0 ? {} : { href: i },
|
|
2386
|
-
[
|
|
2388
|
+
[$t]: "",
|
|
2387
2389
|
"aria-current": n ? "page" : void 0,
|
|
2388
2390
|
className: f,
|
|
2389
2391
|
...s,
|
|
2390
2392
|
children: [
|
|
2391
2393
|
e && /* @__PURE__ */ v("span", {
|
|
2392
|
-
className:
|
|
2394
|
+
className: Qt.icon,
|
|
2393
2395
|
"aria-hidden": !0,
|
|
2394
2396
|
children: e
|
|
2395
2397
|
}),
|
|
2396
2398
|
/* @__PURE__ */ v("span", {
|
|
2397
|
-
className:
|
|
2399
|
+
className: Qt.label,
|
|
2398
2400
|
children: o
|
|
2399
2401
|
}),
|
|
2400
2402
|
t && /* @__PURE__ */ v("span", {
|
|
2401
|
-
className:
|
|
2403
|
+
className: Qt.trailing,
|
|
2402
2404
|
children: t
|
|
2403
2405
|
})
|
|
2404
2406
|
]
|
|
2405
2407
|
});
|
|
2406
2408
|
}
|
|
2407
|
-
function
|
|
2409
|
+
function nn({ children: e, className: t, ...n }) {
|
|
2408
2410
|
let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
|
|
2409
|
-
let t = r.current, n = e instanceof Element ? e.closest(`[${
|
|
2411
|
+
let t = r.current, n = e instanceof Element ? e.closest(`[${$t}]`) : null;
|
|
2410
2412
|
if (!t || !n || !t.contains(n)) return;
|
|
2411
2413
|
if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
|
|
2412
2414
|
c(!1);
|
|
@@ -2420,11 +2422,11 @@ function an({ children: e, className: t, ...n }) {
|
|
|
2420
2422
|
}, [o]);
|
|
2421
2423
|
return d(() => {
|
|
2422
2424
|
o || u(!1);
|
|
2423
|
-
}, [o]), /* @__PURE__ */ v(
|
|
2425
|
+
}, [o]), /* @__PURE__ */ v(en.Provider, {
|
|
2424
2426
|
value: !0,
|
|
2425
2427
|
children: /* @__PURE__ */ y("div", {
|
|
2426
2428
|
ref: r,
|
|
2427
|
-
className: [
|
|
2429
|
+
className: [Qt.list, t].filter(Boolean).join(" "),
|
|
2428
2430
|
onPointerOver: (e) => e.pointerType === "mouse" && f(e.target),
|
|
2429
2431
|
onMouseLeave: () => c(!1),
|
|
2430
2432
|
onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
|
|
@@ -2433,9 +2435,9 @@ function an({ children: e, className: t, ...n }) {
|
|
|
2433
2435
|
children: [/* @__PURE__ */ v("span", {
|
|
2434
2436
|
"aria-hidden": !0,
|
|
2435
2437
|
className: [
|
|
2436
|
-
|
|
2437
|
-
l &&
|
|
2438
|
-
o &&
|
|
2438
|
+
Qt.glide,
|
|
2439
|
+
l && Qt.glideAnimated,
|
|
2440
|
+
o && Qt.glideVisible
|
|
2439
2441
|
].filter(Boolean).join(" "),
|
|
2440
2442
|
style: i ? {
|
|
2441
2443
|
translate: `0 ${i.top}px`,
|
|
@@ -2447,7 +2449,7 @@ function an({ children: e, className: t, ...n }) {
|
|
|
2447
2449
|
}
|
|
2448
2450
|
//#endregion
|
|
2449
2451
|
//#region src/components/Logo.tsx
|
|
2450
|
-
function
|
|
2452
|
+
function rn({ size: e = 40, "aria-label": t, ...n }) {
|
|
2451
2453
|
return /* @__PURE__ */ y("svg", {
|
|
2452
2454
|
width: e,
|
|
2453
2455
|
height: e,
|
|
@@ -2468,172 +2470,7 @@ function on({ size: e = 40, "aria-label": t, ...n }) {
|
|
|
2468
2470
|
})]
|
|
2469
2471
|
});
|
|
2470
2472
|
}
|
|
2471
|
-
var
|
|
2472
|
-
root: "_root_17m4v_1",
|
|
2473
|
-
top: "_top_17m4v_13",
|
|
2474
|
-
header: "_header_17m4v_18",
|
|
2475
|
-
switcher: "_switcher_17m4v_30",
|
|
2476
|
-
flush: "_flush_17m4v_44",
|
|
2477
|
-
nav: "_nav_17m4v_65",
|
|
2478
|
-
footer: "_footer_17m4v_77",
|
|
2479
|
-
footerRow: "_footerRow_17m4v_82",
|
|
2480
|
-
footerText: "_footerText_17m4v_88",
|
|
2481
|
-
title: "_title_17m4v_92",
|
|
2482
|
-
subtitle: "_subtitle_17m4v_101",
|
|
2483
|
-
action: "_action_17m4v_104",
|
|
2484
|
-
lang: "_lang_17m4v_113",
|
|
2485
|
-
langItem: "_langItem_17m4v_121",
|
|
2486
|
-
langSeparator: "_langSeparator_17m4v_126",
|
|
2487
|
-
langCurrent: "_langCurrent_17m4v_130",
|
|
2488
|
-
langButton: "_langButton_17m4v_133"
|
|
2489
|
-
};
|
|
2490
|
-
//#endregion
|
|
2491
|
-
//#region src/components/Sidebar.tsx
|
|
2492
|
-
function sn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
|
|
2493
|
-
return /* @__PURE__ */ y("aside", {
|
|
2494
|
-
className: [X.root, o].filter(Boolean).join(" "),
|
|
2495
|
-
children: [
|
|
2496
|
-
/* @__PURE__ */ y("div", {
|
|
2497
|
-
className: [X.top, i === "flush" && X.flush].filter(Boolean).join(" "),
|
|
2498
|
-
children: [/* @__PURE__ */ v("div", {
|
|
2499
|
-
className: X.header,
|
|
2500
|
-
children: e
|
|
2501
|
-
}), t && /* @__PURE__ */ v("div", {
|
|
2502
|
-
className: X.switcher,
|
|
2503
|
-
children: t
|
|
2504
|
-
})]
|
|
2505
|
-
}),
|
|
2506
|
-
/* @__PURE__ */ v("nav", {
|
|
2507
|
-
"aria-label": a,
|
|
2508
|
-
className: X.nav,
|
|
2509
|
-
children: n
|
|
2510
|
-
}),
|
|
2511
|
-
r && /* @__PURE__ */ v("div", {
|
|
2512
|
-
className: X.footer,
|
|
2513
|
-
children: r
|
|
2514
|
-
})
|
|
2515
|
-
]
|
|
2516
|
-
});
|
|
2517
|
-
}
|
|
2518
|
-
function cn({ title: e, subtitle: t, action: n }) {
|
|
2519
|
-
return /* @__PURE__ */ y("div", {
|
|
2520
|
-
className: X.footerRow,
|
|
2521
|
-
children: [/* @__PURE__ */ y("div", {
|
|
2522
|
-
className: X.footerText,
|
|
2523
|
-
children: [/* @__PURE__ */ v("div", {
|
|
2524
|
-
className: X.title,
|
|
2525
|
-
children: e
|
|
2526
|
-
}), t && /* @__PURE__ */ v("div", {
|
|
2527
|
-
className: X.subtitle,
|
|
2528
|
-
children: t
|
|
2529
|
-
})]
|
|
2530
|
-
}), n && /* @__PURE__ */ v("div", {
|
|
2531
|
-
className: X.action,
|
|
2532
|
-
children: n
|
|
2533
|
-
})]
|
|
2534
|
-
});
|
|
2535
|
-
}
|
|
2536
|
-
function ln({ items: e, value: t, onChange: n, "aria-label": r }) {
|
|
2537
|
-
return /* @__PURE__ */ v("div", {
|
|
2538
|
-
role: "group",
|
|
2539
|
-
"aria-label": r,
|
|
2540
|
-
className: X.lang,
|
|
2541
|
-
children: e.map((e, r) => /* @__PURE__ */ y("span", {
|
|
2542
|
-
className: X.langItem,
|
|
2543
|
-
children: [r > 0 && /* @__PURE__ */ v("span", {
|
|
2544
|
-
"aria-hidden": !0,
|
|
2545
|
-
className: X.langSeparator,
|
|
2546
|
-
children: "|"
|
|
2547
|
-
}), e.value === t ? /* @__PURE__ */ v("span", {
|
|
2548
|
-
lang: e.lang,
|
|
2549
|
-
"aria-current": "true",
|
|
2550
|
-
className: X.langCurrent,
|
|
2551
|
-
children: e.label
|
|
2552
|
-
}) : /* @__PURE__ */ v("button", {
|
|
2553
|
-
type: "button",
|
|
2554
|
-
lang: e.lang,
|
|
2555
|
-
className: X.langButton,
|
|
2556
|
-
onClick: () => n(e.value),
|
|
2557
|
-
children: e.label
|
|
2558
|
-
})]
|
|
2559
|
-
}, e.value))
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
var un = { highlight: "_highlight_1pz29_1" };
|
|
2563
|
-
//#endregion
|
|
2564
|
-
//#region src/components/HighlightText.tsx
|
|
2565
|
-
function dn(e) {
|
|
2566
|
-
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2567
|
-
}
|
|
2568
|
-
function fn({ text: e, query: n }) {
|
|
2569
|
-
if (!n) return /* @__PURE__ */ v(_, { children: e });
|
|
2570
|
-
let r = e.split(RegExp(`(${dn(n)})`, "ig"));
|
|
2571
|
-
return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
|
|
2572
|
-
className: un.highlight,
|
|
2573
|
-
children: e
|
|
2574
|
-
}, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
|
|
2575
|
-
}
|
|
2576
|
-
var pn = {
|
|
2577
|
-
group: "_group_jslsh_1",
|
|
2578
|
-
btn: "_btn_jslsh_4",
|
|
2579
|
-
caret: "_caret_jslsh_31",
|
|
2580
|
-
label: "_label_jslsh_40",
|
|
2581
|
-
badge: "_badge_jslsh_43",
|
|
2582
|
-
value: "_value_jslsh_58",
|
|
2583
|
-
panel: "_panel_jslsh_62",
|
|
2584
|
-
open: "_open_jslsh_78",
|
|
2585
|
-
panelRight: "_panelRight_jslsh_81",
|
|
2586
|
-
panelWide: "_panelWide_jslsh_85",
|
|
2587
|
-
sectionHeader: "_sectionHeader_jslsh_89",
|
|
2588
|
-
sectionLabel: "_sectionLabel_jslsh_96",
|
|
2589
|
-
allToggle: "_allToggle_jslsh_103",
|
|
2590
|
-
divider: "_divider_jslsh_123",
|
|
2591
|
-
option: "_option_jslsh_128",
|
|
2592
|
-
search: "_search_jslsh_142",
|
|
2593
|
-
optionsList: "_optionsList_jslsh_158",
|
|
2594
|
-
empty: "_empty_jslsh_161"
|
|
2595
|
-
};
|
|
2596
|
-
//#endregion
|
|
2597
|
-
//#region src/components/FilterSection.tsx
|
|
2598
|
-
function mn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
|
|
2599
|
-
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;
|
|
2600
|
-
return /* @__PURE__ */ y("div", { children: [
|
|
2601
|
-
/* @__PURE__ */ y("div", {
|
|
2602
|
-
className: pn.sectionHeader,
|
|
2603
|
-
children: [/* @__PURE__ */ v("div", {
|
|
2604
|
-
className: pn.sectionLabel,
|
|
2605
|
-
children: e
|
|
2606
|
-
}), a && /* @__PURE__ */ v("button", {
|
|
2607
|
-
type: "button",
|
|
2608
|
-
className: pn.allToggle,
|
|
2609
|
-
onClick: () => a(d ? [] : t),
|
|
2610
|
-
children: d ? "Deselect all" : "Select all"
|
|
2611
|
-
})]
|
|
2612
|
-
}),
|
|
2613
|
-
o && /* @__PURE__ */ v("input", {
|
|
2614
|
-
type: "text",
|
|
2615
|
-
className: pn.search,
|
|
2616
|
-
placeholder: `Search ${e.toLowerCase()}…`,
|
|
2617
|
-
autoComplete: "off",
|
|
2618
|
-
value: s,
|
|
2619
|
-
onClick: (e) => e.stopPropagation(),
|
|
2620
|
-
onChange: (e) => c(e.target.value)
|
|
2621
|
-
}),
|
|
2622
|
-
/* @__PURE__ */ y("div", {
|
|
2623
|
-
className: pn.optionsList,
|
|
2624
|
-
children: [u.length === 0 && /* @__PURE__ */ v("div", {
|
|
2625
|
-
className: pn.empty,
|
|
2626
|
-
children: "No match"
|
|
2627
|
-
}), u.map((e) => /* @__PURE__ */ v(Xe, {
|
|
2628
|
-
className: pn.option,
|
|
2629
|
-
checked: r.has(e),
|
|
2630
|
-
onChange: () => i(e),
|
|
2631
|
-
label: n(e)
|
|
2632
|
-
}, e))]
|
|
2633
|
-
})
|
|
2634
|
-
] });
|
|
2635
|
-
}
|
|
2636
|
-
var hn = {
|
|
2473
|
+
var an = {
|
|
2637
2474
|
line: "_line_19p3r_1",
|
|
2638
2475
|
box: "_box_19p3r_2",
|
|
2639
2476
|
indicator: "_indicator_19p3r_9",
|
|
@@ -2649,7 +2486,7 @@ var hn = {
|
|
|
2649
2486
|
};
|
|
2650
2487
|
//#endregion
|
|
2651
2488
|
//#region src/components/Tabs.tsx
|
|
2652
|
-
function
|
|
2489
|
+
function on({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
|
|
2653
2490
|
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");
|
|
2654
2491
|
d(() => {
|
|
2655
2492
|
let e = c.current.get(t);
|
|
@@ -2688,18 +2525,18 @@ function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2688
2525
|
ref: s,
|
|
2689
2526
|
role: "tablist",
|
|
2690
2527
|
className: [
|
|
2691
|
-
|
|
2692
|
-
r === "box" && i === "sm" &&
|
|
2693
|
-
r === "box" && i === "lg" &&
|
|
2528
|
+
an[r],
|
|
2529
|
+
r === "box" && i === "sm" && an.sm,
|
|
2530
|
+
r === "box" && i === "lg" && an.lg
|
|
2694
2531
|
].filter(Boolean).join(" "),
|
|
2695
2532
|
onKeyDown: b,
|
|
2696
2533
|
...a,
|
|
2697
2534
|
children: [u && /* @__PURE__ */ v("span", {
|
|
2698
2535
|
"aria-hidden": !0,
|
|
2699
2536
|
className: [
|
|
2700
|
-
|
|
2701
|
-
r === "line" ?
|
|
2702
|
-
h === "settling" &&
|
|
2537
|
+
an.indicator,
|
|
2538
|
+
r === "line" ? an.indicatorLine : an.indicatorBox,
|
|
2539
|
+
h === "settling" && an.settling
|
|
2703
2540
|
].filter(Boolean).join(" "),
|
|
2704
2541
|
onTransitionEnd: _,
|
|
2705
2542
|
style: {
|
|
@@ -2720,34 +2557,34 @@ function gn({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2720
2557
|
disabled: e.disabled,
|
|
2721
2558
|
tabIndex: r ? 0 : -1,
|
|
2722
2559
|
className: [
|
|
2723
|
-
|
|
2724
|
-
r &&
|
|
2725
|
-
i &&
|
|
2560
|
+
an.tab,
|
|
2561
|
+
r && an.selected,
|
|
2562
|
+
i && an.iconOnly
|
|
2726
2563
|
].filter(Boolean).join(" "),
|
|
2727
2564
|
onClick: () => !e.disabled && n(e.value),
|
|
2728
2565
|
children: [e.icon && /* @__PURE__ */ v("span", {
|
|
2729
|
-
className:
|
|
2566
|
+
className: an.icon,
|
|
2730
2567
|
children: e.icon
|
|
2731
2568
|
}), e.label]
|
|
2732
2569
|
}, e.value);
|
|
2733
2570
|
})]
|
|
2734
2571
|
});
|
|
2735
2572
|
}
|
|
2736
|
-
var
|
|
2573
|
+
var sn = {
|
|
2737
2574
|
root: "_root_16e39_1",
|
|
2738
2575
|
label: "_label_16e39_7"
|
|
2739
2576
|
};
|
|
2740
2577
|
//#endregion
|
|
2741
2578
|
//#region src/components/Toggle.tsx
|
|
2742
|
-
function
|
|
2579
|
+
function cn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
2743
2580
|
let a = u();
|
|
2744
2581
|
return /* @__PURE__ */ y("div", {
|
|
2745
|
-
className:
|
|
2582
|
+
className: sn.root,
|
|
2746
2583
|
children: [r && /* @__PURE__ */ v("span", {
|
|
2747
2584
|
id: a,
|
|
2748
|
-
className:
|
|
2585
|
+
className: sn.label,
|
|
2749
2586
|
children: r
|
|
2750
|
-
}), /* @__PURE__ */ v(
|
|
2587
|
+
}), /* @__PURE__ */ v(on, {
|
|
2751
2588
|
items: e,
|
|
2752
2589
|
value: t,
|
|
2753
2590
|
onChange: n,
|
|
@@ -2758,7 +2595,154 @@ function vn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
|
2758
2595
|
})]
|
|
2759
2596
|
});
|
|
2760
2597
|
}
|
|
2761
|
-
var
|
|
2598
|
+
var ln = {
|
|
2599
|
+
root: "_root_i85q3_1",
|
|
2600
|
+
top: "_top_i85q3_13",
|
|
2601
|
+
header: "_header_i85q3_18",
|
|
2602
|
+
switcher: "_switcher_i85q3_30",
|
|
2603
|
+
nav: "_nav_i85q3_57",
|
|
2604
|
+
footer: "_footer_i85q3_69",
|
|
2605
|
+
footerRow: "_footerRow_i85q3_74",
|
|
2606
|
+
title: "_title_i85q3_80",
|
|
2607
|
+
footerControls: "_footerControls_i85q3_89",
|
|
2608
|
+
subtitle: "_subtitle_i85q3_94",
|
|
2609
|
+
action: "_action_i85q3_98"
|
|
2610
|
+
};
|
|
2611
|
+
//#endregion
|
|
2612
|
+
//#region src/components/Sidebar.tsx
|
|
2613
|
+
function un({ header: e, switcher: t, children: n, footer: r, "aria-label": i, className: a }) {
|
|
2614
|
+
return /* @__PURE__ */ y("aside", {
|
|
2615
|
+
className: [ln.root, a].filter(Boolean).join(" "),
|
|
2616
|
+
children: [
|
|
2617
|
+
/* @__PURE__ */ y("div", {
|
|
2618
|
+
className: ln.top,
|
|
2619
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2620
|
+
className: ln.header,
|
|
2621
|
+
children: e
|
|
2622
|
+
}), t && /* @__PURE__ */ v("div", {
|
|
2623
|
+
className: ln.switcher,
|
|
2624
|
+
children: t
|
|
2625
|
+
})]
|
|
2626
|
+
}),
|
|
2627
|
+
/* @__PURE__ */ v("nav", {
|
|
2628
|
+
"aria-label": i,
|
|
2629
|
+
className: ln.nav,
|
|
2630
|
+
children: n
|
|
2631
|
+
}),
|
|
2632
|
+
r && /* @__PURE__ */ v("div", {
|
|
2633
|
+
className: ln.footer,
|
|
2634
|
+
children: r
|
|
2635
|
+
})
|
|
2636
|
+
]
|
|
2637
|
+
});
|
|
2638
|
+
}
|
|
2639
|
+
function dn({ title: e, subtitle: t, action: n }) {
|
|
2640
|
+
return /* @__PURE__ */ y("div", {
|
|
2641
|
+
className: ln.footerRow,
|
|
2642
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2643
|
+
className: ln.title,
|
|
2644
|
+
children: e
|
|
2645
|
+
}), (t || n) && /* @__PURE__ */ y("div", {
|
|
2646
|
+
className: ln.footerControls,
|
|
2647
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2648
|
+
className: ln.subtitle,
|
|
2649
|
+
children: t
|
|
2650
|
+
}), n && /* @__PURE__ */ v("div", {
|
|
2651
|
+
className: ln.action,
|
|
2652
|
+
children: n
|
|
2653
|
+
})]
|
|
2654
|
+
})]
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
function fn({ items: e, value: t, onChange: n, "aria-label": r }) {
|
|
2658
|
+
return /* @__PURE__ */ v(cn, {
|
|
2659
|
+
"aria-label": r,
|
|
2660
|
+
value: t,
|
|
2661
|
+
onChange: n,
|
|
2662
|
+
items: e.map((e) => ({
|
|
2663
|
+
value: e.value,
|
|
2664
|
+
label: /* @__PURE__ */ v("span", {
|
|
2665
|
+
lang: e.lang,
|
|
2666
|
+
children: e.label
|
|
2667
|
+
})
|
|
2668
|
+
}))
|
|
2669
|
+
});
|
|
2670
|
+
}
|
|
2671
|
+
var pn = { highlight: "_highlight_1pz29_1" };
|
|
2672
|
+
//#endregion
|
|
2673
|
+
//#region src/components/HighlightText.tsx
|
|
2674
|
+
function mn(e) {
|
|
2675
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2676
|
+
}
|
|
2677
|
+
function hn({ text: e, query: n }) {
|
|
2678
|
+
if (!n) return /* @__PURE__ */ v(_, { children: e });
|
|
2679
|
+
let r = e.split(RegExp(`(${mn(n)})`, "ig"));
|
|
2680
|
+
return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
|
|
2681
|
+
className: pn.highlight,
|
|
2682
|
+
children: e
|
|
2683
|
+
}, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
|
|
2684
|
+
}
|
|
2685
|
+
var gn = {
|
|
2686
|
+
group: "_group_jslsh_1",
|
|
2687
|
+
btn: "_btn_jslsh_4",
|
|
2688
|
+
caret: "_caret_jslsh_31",
|
|
2689
|
+
label: "_label_jslsh_40",
|
|
2690
|
+
badge: "_badge_jslsh_43",
|
|
2691
|
+
value: "_value_jslsh_58",
|
|
2692
|
+
panel: "_panel_jslsh_62",
|
|
2693
|
+
open: "_open_jslsh_78",
|
|
2694
|
+
panelRight: "_panelRight_jslsh_81",
|
|
2695
|
+
panelWide: "_panelWide_jslsh_85",
|
|
2696
|
+
sectionHeader: "_sectionHeader_jslsh_89",
|
|
2697
|
+
sectionLabel: "_sectionLabel_jslsh_96",
|
|
2698
|
+
allToggle: "_allToggle_jslsh_103",
|
|
2699
|
+
divider: "_divider_jslsh_123",
|
|
2700
|
+
option: "_option_jslsh_128",
|
|
2701
|
+
search: "_search_jslsh_142",
|
|
2702
|
+
optionsList: "_optionsList_jslsh_158",
|
|
2703
|
+
empty: "_empty_jslsh_161"
|
|
2704
|
+
};
|
|
2705
|
+
//#endregion
|
|
2706
|
+
//#region src/components/FilterSection.tsx
|
|
2707
|
+
function _n({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
|
|
2708
|
+
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;
|
|
2709
|
+
return /* @__PURE__ */ y("div", { children: [
|
|
2710
|
+
/* @__PURE__ */ y("div", {
|
|
2711
|
+
className: gn.sectionHeader,
|
|
2712
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2713
|
+
className: gn.sectionLabel,
|
|
2714
|
+
children: e
|
|
2715
|
+
}), a && /* @__PURE__ */ v("button", {
|
|
2716
|
+
type: "button",
|
|
2717
|
+
className: gn.allToggle,
|
|
2718
|
+
onClick: () => a(d ? [] : t),
|
|
2719
|
+
children: d ? "Deselect all" : "Select all"
|
|
2720
|
+
})]
|
|
2721
|
+
}),
|
|
2722
|
+
o && /* @__PURE__ */ v("input", {
|
|
2723
|
+
type: "text",
|
|
2724
|
+
className: gn.search,
|
|
2725
|
+
placeholder: `Search ${e.toLowerCase()}…`,
|
|
2726
|
+
autoComplete: "off",
|
|
2727
|
+
value: s,
|
|
2728
|
+
onClick: (e) => e.stopPropagation(),
|
|
2729
|
+
onChange: (e) => c(e.target.value)
|
|
2730
|
+
}),
|
|
2731
|
+
/* @__PURE__ */ y("div", {
|
|
2732
|
+
className: gn.optionsList,
|
|
2733
|
+
children: [u.length === 0 && /* @__PURE__ */ v("div", {
|
|
2734
|
+
className: gn.empty,
|
|
2735
|
+
children: "No match"
|
|
2736
|
+
}), u.map((e) => /* @__PURE__ */ v(qe, {
|
|
2737
|
+
className: gn.option,
|
|
2738
|
+
checked: r.has(e),
|
|
2739
|
+
onChange: () => i(e),
|
|
2740
|
+
label: n(e)
|
|
2741
|
+
}, e))]
|
|
2742
|
+
})
|
|
2743
|
+
] });
|
|
2744
|
+
}
|
|
2745
|
+
var vn = {
|
|
2762
2746
|
spinner: "_spinner_9jjxr_3",
|
|
2763
2747
|
inner: "_inner_9jjxr_11",
|
|
2764
2748
|
outer: "_outer_9jjxr_12",
|
|
@@ -2769,10 +2753,10 @@ var yn = {
|
|
|
2769
2753
|
};
|
|
2770
2754
|
//#endregion
|
|
2771
2755
|
//#region src/components/Spinner.tsx
|
|
2772
|
-
function
|
|
2756
|
+
function yn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
|
|
2773
2757
|
let a = [
|
|
2774
|
-
|
|
2775
|
-
|
|
2758
|
+
vn.spinner,
|
|
2759
|
+
vn[e],
|
|
2776
2760
|
r
|
|
2777
2761
|
].filter(Boolean).join(" ");
|
|
2778
2762
|
return /* @__PURE__ */ y("div", {
|
|
@@ -2785,7 +2769,7 @@ function bn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2785
2769
|
},
|
|
2786
2770
|
"data-testid": i,
|
|
2787
2771
|
children: [/* @__PURE__ */ v("svg", {
|
|
2788
|
-
className:
|
|
2772
|
+
className: vn.inner,
|
|
2789
2773
|
width: t,
|
|
2790
2774
|
height: t,
|
|
2791
2775
|
viewBox: "0 0 64 64",
|
|
@@ -2793,7 +2777,7 @@ function bn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2793
2777
|
"aria-hidden": "true",
|
|
2794
2778
|
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" })
|
|
2795
2779
|
}), /* @__PURE__ */ v("svg", {
|
|
2796
|
-
className:
|
|
2780
|
+
className: vn.outer,
|
|
2797
2781
|
width: t,
|
|
2798
2782
|
height: t,
|
|
2799
2783
|
viewBox: "0 0 64 64",
|
|
@@ -2825,14 +2809,14 @@ var Z = {
|
|
|
2825
2809
|
sheet: "_sheet_3vs6a_206",
|
|
2826
2810
|
fullscreen: "_fullscreen_3vs6a_212",
|
|
2827
2811
|
instant: "_instant_3vs6a_222"
|
|
2828
|
-
},
|
|
2829
|
-
function
|
|
2830
|
-
let t = c(
|
|
2812
|
+
}, bn = 200, xn = "(max-width: 639px)", Sn = "(prefers-reduced-motion: reduce)", Cn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", wn = r(null);
|
|
2813
|
+
function Tn(e) {
|
|
2814
|
+
let t = c(wn);
|
|
2831
2815
|
if (!t) throw Error(`${e} must be rendered inside <Modal>`);
|
|
2832
2816
|
return t;
|
|
2833
2817
|
}
|
|
2834
|
-
var
|
|
2835
|
-
function
|
|
2818
|
+
var En = [];
|
|
2819
|
+
function Dn(e) {
|
|
2836
2820
|
let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
|
|
2837
2821
|
return l(() => {
|
|
2838
2822
|
let t = window.matchMedia(e), r = () => n(t.matches);
|
|
@@ -2840,114 +2824,114 @@ function On(e) {
|
|
|
2840
2824
|
}, [e]), t;
|
|
2841
2825
|
}
|
|
2842
2826
|
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 }) {
|
|
2843
|
-
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 =
|
|
2844
|
-
|
|
2827
|
+
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 = Dn(xn), N = Dn(Sn), P = p(null), F = p(null), I = p(!1), ee = p(!1), te = p(Symbol("modal")), L = p(e), R = p(t);
|
|
2828
|
+
R.current = t, l(() => T(!0), []), l(() => {
|
|
2845
2829
|
if (e) {
|
|
2846
|
-
if (
|
|
2847
|
-
if (
|
|
2830
|
+
if (I.current) return;
|
|
2831
|
+
if (F.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), L.current && o) {
|
|
2848
2832
|
k(!0);
|
|
2849
2833
|
return;
|
|
2850
2834
|
}
|
|
2851
2835
|
let e = requestAnimationFrame(() => k(!0));
|
|
2852
2836
|
return () => cancelAnimationFrame(e);
|
|
2853
2837
|
}
|
|
2854
|
-
if (
|
|
2855
|
-
let t = setTimeout(() => D(!1),
|
|
2838
|
+
if (I.current = !1, k(!1), !E) return;
|
|
2839
|
+
let t = setTimeout(() => D(!1), N ? 0 : bn);
|
|
2856
2840
|
return () => clearTimeout(t);
|
|
2857
2841
|
}, [e]), l(() => {
|
|
2858
|
-
!E &&
|
|
2842
|
+
!E && F.current && (F.current.focus?.(), F.current = null);
|
|
2859
2843
|
}, [E]);
|
|
2860
|
-
let
|
|
2861
|
-
if (!a ||
|
|
2862
|
-
|
|
2863
|
-
let e =
|
|
2864
|
-
window.setTimeout(() =>
|
|
2865
|
-
}, [a,
|
|
2844
|
+
let z = s(() => {
|
|
2845
|
+
if (!a || I.current) return;
|
|
2846
|
+
I.current = !0, k(!1);
|
|
2847
|
+
let e = N ? 0 : bn;
|
|
2848
|
+
window.setTimeout(() => R.current(), e);
|
|
2849
|
+
}, [a, N]);
|
|
2866
2850
|
l(() => {
|
|
2867
2851
|
if (!E) return;
|
|
2868
|
-
let e =
|
|
2869
|
-
d &&
|
|
2852
|
+
let e = te.current;
|
|
2853
|
+
d && En.push(e);
|
|
2870
2854
|
let t = (t) => {
|
|
2871
|
-
t.key === "Escape" &&
|
|
2855
|
+
t.key === "Escape" && En[En.length - 1] === e && (t.preventDefault(), z());
|
|
2872
2856
|
};
|
|
2873
2857
|
document.addEventListener("keydown", t);
|
|
2874
2858
|
let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
|
|
2875
|
-
return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`),
|
|
2859
|
+
return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), P.current?.focus({ preventScroll: !0 }), () => {
|
|
2876
2860
|
document.removeEventListener("keydown", t);
|
|
2877
|
-
let a =
|
|
2878
|
-
a !== -1 &&
|
|
2861
|
+
let a = En.indexOf(e);
|
|
2862
|
+
a !== -1 && En.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
|
|
2879
2863
|
};
|
|
2880
2864
|
}, [
|
|
2881
2865
|
E,
|
|
2882
2866
|
d,
|
|
2883
|
-
|
|
2867
|
+
z
|
|
2884
2868
|
]);
|
|
2885
|
-
let
|
|
2886
|
-
if (e.key !== "Tab" || !
|
|
2887
|
-
let t = Array.from(
|
|
2869
|
+
let B = (e) => {
|
|
2870
|
+
if (e.key !== "Tab" || !P.current) return;
|
|
2871
|
+
let t = Array.from(P.current.querySelectorAll(Cn));
|
|
2888
2872
|
if (t.length === 0) {
|
|
2889
2873
|
e.preventDefault();
|
|
2890
2874
|
return;
|
|
2891
2875
|
}
|
|
2892
2876
|
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
2893
|
-
e.shiftKey && (i === n || i ===
|
|
2877
|
+
e.shiftKey && (i === n || i === P.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
|
|
2894
2878
|
};
|
|
2895
2879
|
if (!w || !E) return null;
|
|
2896
|
-
let
|
|
2880
|
+
let ne = document.querySelector(c) ?? document.body, re = [
|
|
2897
2881
|
Z.modal,
|
|
2898
2882
|
Z[n],
|
|
2899
2883
|
Z[r],
|
|
2900
2884
|
O && Z.visible,
|
|
2901
2885
|
o && Z.instant,
|
|
2902
2886
|
y
|
|
2903
|
-
].filter(Boolean).join(" "),
|
|
2887
|
+
].filter(Boolean).join(" "), ie = {
|
|
2904
2888
|
role: f,
|
|
2905
2889
|
"aria-modal": !0,
|
|
2906
2890
|
"aria-labelledby": h ?? S,
|
|
2907
2891
|
"aria-describedby": A ? C : void 0,
|
|
2908
2892
|
tabIndex: -1,
|
|
2909
|
-
className:
|
|
2893
|
+
className: re,
|
|
2910
2894
|
"data-testid": _,
|
|
2911
|
-
onKeyDown:
|
|
2912
|
-
},
|
|
2895
|
+
onKeyDown: B
|
|
2896
|
+
}, ae = {
|
|
2913
2897
|
layout: n,
|
|
2914
2898
|
titleId: h ?? S,
|
|
2915
2899
|
descriptionId: C,
|
|
2916
2900
|
isMobile: M,
|
|
2917
2901
|
dismissible: a,
|
|
2918
2902
|
setHasDescription: j,
|
|
2919
|
-
requestClose:
|
|
2903
|
+
requestClose: z
|
|
2920
2904
|
};
|
|
2921
|
-
return g(/* @__PURE__ */ v(
|
|
2922
|
-
value:
|
|
2905
|
+
return g(/* @__PURE__ */ v(wn.Provider, {
|
|
2906
|
+
value: ae,
|
|
2923
2907
|
children: /* @__PURE__ */ v("div", {
|
|
2924
2908
|
className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
|
|
2925
2909
|
onPointerDown: (e) => {
|
|
2926
|
-
|
|
2910
|
+
ee.current = e.target !== e.currentTarget;
|
|
2927
2911
|
},
|
|
2928
2912
|
onClick: (e) => {
|
|
2929
|
-
e.target === e.currentTarget && !
|
|
2913
|
+
e.target === e.currentTarget && !ee.current && z(), ee.current = !1;
|
|
2930
2914
|
},
|
|
2931
2915
|
children: i ? /* @__PURE__ */ v("form", {
|
|
2932
|
-
ref:
|
|
2916
|
+
ref: P,
|
|
2933
2917
|
onSubmit: i,
|
|
2934
|
-
...
|
|
2918
|
+
...ie,
|
|
2935
2919
|
children: b
|
|
2936
2920
|
}) : /* @__PURE__ */ v("div", {
|
|
2937
|
-
ref:
|
|
2938
|
-
...
|
|
2921
|
+
ref: P,
|
|
2922
|
+
...ie,
|
|
2939
2923
|
children: b
|
|
2940
2924
|
})
|
|
2941
2925
|
})
|
|
2942
|
-
}),
|
|
2926
|
+
}), ne);
|
|
2943
2927
|
}
|
|
2944
|
-
function
|
|
2945
|
-
let { requestClose: n, dismissible: r } =
|
|
2928
|
+
function On({ children: e, onClose: t }) {
|
|
2929
|
+
let { requestClose: n, dismissible: r } = Tn("Modal.Cover");
|
|
2946
2930
|
return /* @__PURE__ */ y("div", {
|
|
2947
2931
|
className: Z.cover,
|
|
2948
2932
|
children: [e, t && /* @__PURE__ */ v(k, {
|
|
2949
2933
|
variant: "tertiary",
|
|
2950
|
-
leadingIcon: /* @__PURE__ */ v(
|
|
2934
|
+
leadingIcon: /* @__PURE__ */ v(Ae, {}),
|
|
2951
2935
|
"aria-label": "Close",
|
|
2952
2936
|
"data-testid": "modal-close",
|
|
2953
2937
|
className: Z.closeButton,
|
|
@@ -2958,7 +2942,7 @@ function kn({ children: e, onClose: t }) {
|
|
|
2958
2942
|
})]
|
|
2959
2943
|
});
|
|
2960
2944
|
}
|
|
2961
|
-
function
|
|
2945
|
+
function kn({ children: t }) {
|
|
2962
2946
|
let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
|
|
2963
2947
|
return /* @__PURE__ */ y("div", {
|
|
2964
2948
|
className: Z.message,
|
|
@@ -2968,52 +2952,52 @@ function An({ children: t }) {
|
|
|
2968
2952
|
})]
|
|
2969
2953
|
});
|
|
2970
2954
|
}
|
|
2971
|
-
function
|
|
2955
|
+
function An({ children: e, tone: t = "neutral" }) {
|
|
2972
2956
|
return /* @__PURE__ */ v("div", {
|
|
2973
2957
|
className: `${Z.icon} ${Z[`tone-${t}`]}`,
|
|
2974
2958
|
"aria-hidden": "true",
|
|
2975
2959
|
children: e
|
|
2976
2960
|
});
|
|
2977
2961
|
}
|
|
2978
|
-
function
|
|
2979
|
-
let { titleId: n } =
|
|
2962
|
+
function jn({ children: e, id: t }) {
|
|
2963
|
+
let { titleId: n } = Tn("Modal.Title");
|
|
2980
2964
|
return /* @__PURE__ */ v("h2", {
|
|
2981
2965
|
id: t ?? n,
|
|
2982
2966
|
className: Z.title,
|
|
2983
2967
|
children: e
|
|
2984
2968
|
});
|
|
2985
2969
|
}
|
|
2986
|
-
function
|
|
2987
|
-
let { descriptionId: t, setHasDescription: n } =
|
|
2970
|
+
function Mn({ children: e }) {
|
|
2971
|
+
let { descriptionId: t, setHasDescription: n } = Tn("Modal.Description");
|
|
2988
2972
|
return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
|
|
2989
2973
|
id: t,
|
|
2990
2974
|
className: Z.description,
|
|
2991
2975
|
children: e
|
|
2992
2976
|
});
|
|
2993
2977
|
}
|
|
2994
|
-
function
|
|
2978
|
+
function Nn({ children: e }) {
|
|
2995
2979
|
return /* @__PURE__ */ v("p", {
|
|
2996
2980
|
className: Z.hint,
|
|
2997
2981
|
children: e
|
|
2998
2982
|
});
|
|
2999
2983
|
}
|
|
3000
|
-
function
|
|
2984
|
+
function Pn({ children: e }) {
|
|
3001
2985
|
return /* @__PURE__ */ v("div", {
|
|
3002
2986
|
className: Z.body,
|
|
3003
2987
|
children: e
|
|
3004
2988
|
});
|
|
3005
2989
|
}
|
|
3006
|
-
function
|
|
3007
|
-
let { isMobile: r } =
|
|
2990
|
+
function Fn({ children: t }) {
|
|
2991
|
+
let { isMobile: r } = Tn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
|
|
3008
2992
|
return /* @__PURE__ */ v("div", {
|
|
3009
2993
|
className: Z.footer,
|
|
3010
2994
|
children: i
|
|
3011
2995
|
});
|
|
3012
2996
|
}
|
|
3013
|
-
Q.Cover =
|
|
2997
|
+
Q.Cover = On, Q.Message = kn, An.isModalIcon = !0, Q.Icon = An, Q.Title = jn, Q.Description = Mn, Q.Hint = Nn, Q.Body = Pn, Q.Footer = Fn;
|
|
3014
2998
|
//#endregion
|
|
3015
2999
|
//#region src/components/ConfirmDialog.tsx
|
|
3016
|
-
function
|
|
3000
|
+
function In({ 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 }) {
|
|
3017
3001
|
let d = c === "dangerous";
|
|
3018
3002
|
return /* @__PURE__ */ y(Q, {
|
|
3019
3003
|
open: e,
|
|
@@ -3042,7 +3026,7 @@ function Ln({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
|
|
|
3042
3026
|
})] })]
|
|
3043
3027
|
});
|
|
3044
3028
|
}
|
|
3045
|
-
var
|
|
3029
|
+
var Ln = {
|
|
3046
3030
|
root: "_root_rybn9_1",
|
|
3047
3031
|
success: "_success_rybn9_11",
|
|
3048
3032
|
warning: "_warning_rybn9_17",
|
|
@@ -3055,45 +3039,45 @@ var Rn = {
|
|
|
3055
3039
|
};
|
|
3056
3040
|
//#endregion
|
|
3057
3041
|
//#region src/components/EmptyState.tsx
|
|
3058
|
-
function
|
|
3042
|
+
function Rn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
|
|
3059
3043
|
return /* @__PURE__ */ y("div", {
|
|
3060
|
-
className: `${
|
|
3044
|
+
className: `${Ln.root} ${e === "neutral" ? "" : Ln[e]}`,
|
|
3061
3045
|
...a,
|
|
3062
3046
|
children: [t != null && /* @__PURE__ */ v("div", {
|
|
3063
|
-
className:
|
|
3047
|
+
className: Ln.icon,
|
|
3064
3048
|
"aria-hidden": "true",
|
|
3065
3049
|
children: t
|
|
3066
3050
|
}), /* @__PURE__ */ y("div", {
|
|
3067
|
-
className:
|
|
3051
|
+
className: Ln.body,
|
|
3068
3052
|
children: [
|
|
3069
3053
|
/* @__PURE__ */ v("p", {
|
|
3070
|
-
className:
|
|
3054
|
+
className: Ln.title,
|
|
3071
3055
|
children: n
|
|
3072
3056
|
}),
|
|
3073
3057
|
r != null && /* @__PURE__ */ v("div", {
|
|
3074
|
-
className:
|
|
3058
|
+
className: Ln.text,
|
|
3075
3059
|
children: r
|
|
3076
3060
|
}),
|
|
3077
3061
|
i != null && /* @__PURE__ */ v("div", {
|
|
3078
|
-
className:
|
|
3062
|
+
className: Ln.action,
|
|
3079
3063
|
children: i
|
|
3080
3064
|
})
|
|
3081
3065
|
]
|
|
3082
3066
|
})]
|
|
3083
3067
|
});
|
|
3084
3068
|
}
|
|
3085
|
-
var
|
|
3086
|
-
function
|
|
3069
|
+
var zn = { photoPreview: "_photoPreview_1m76k_2" }, Bn = 180, Vn = 12, Hn = 8;
|
|
3070
|
+
function Un(e, t, n = Bn) {
|
|
3087
3071
|
let r = (e, t) => {
|
|
3088
|
-
let r = e +
|
|
3089
|
-
return Math.max(
|
|
3072
|
+
let r = e + Vn, i = r + n + Hn > t ? e - Vn - n : r;
|
|
3073
|
+
return Math.max(Hn, i);
|
|
3090
3074
|
};
|
|
3091
3075
|
return {
|
|
3092
3076
|
left: r(e, window.innerWidth),
|
|
3093
3077
|
top: r(t, window.innerHeight)
|
|
3094
3078
|
};
|
|
3095
3079
|
}
|
|
3096
|
-
function
|
|
3080
|
+
function Wn({ src: e, size: t = Bn, children: r }) {
|
|
3097
3081
|
let [i, a] = m(null), [o, s] = m(), c = i !== null;
|
|
3098
3082
|
if (l(() => {
|
|
3099
3083
|
if (!c) return;
|
|
@@ -3119,14 +3103,14 @@ function Gn({ src: e, size: t = Vn, children: r }) {
|
|
|
3119
3103
|
}
|
|
3120
3104
|
});
|
|
3121
3105
|
return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
|
|
3122
|
-
className:
|
|
3106
|
+
className: zn.photoPreview,
|
|
3123
3107
|
src: e,
|
|
3124
3108
|
alt: "",
|
|
3125
3109
|
"aria-hidden": "true",
|
|
3126
3110
|
style: {
|
|
3127
3111
|
width: t,
|
|
3128
3112
|
height: t,
|
|
3129
|
-
...
|
|
3113
|
+
...Un(i.x, i.y, t)
|
|
3130
3114
|
},
|
|
3131
3115
|
onError: () => {
|
|
3132
3116
|
s(e), a(null);
|
|
@@ -3134,57 +3118,56 @@ function Gn({ src: e, size: t = Vn, children: r }) {
|
|
|
3134
3118
|
}), document.body)] });
|
|
3135
3119
|
}
|
|
3136
3120
|
var $ = {
|
|
3137
|
-
root: "
|
|
3138
|
-
hasActions: "
|
|
3139
|
-
current: "
|
|
3140
|
-
interactive: "
|
|
3141
|
-
side: "
|
|
3142
|
-
thumb: "
|
|
3143
|
-
thumbImg: "
|
|
3144
|
-
tile: "
|
|
3145
|
-
icon: "
|
|
3146
|
-
tilePlay: "
|
|
3147
|
-
badge: "
|
|
3148
|
-
main: "
|
|
3149
|
-
columns: "
|
|
3150
|
-
info: "
|
|
3151
|
-
aside: "
|
|
3152
|
-
date: "
|
|
3153
|
-
label: "
|
|
3154
|
-
title: "
|
|
3155
|
-
workerName: "
|
|
3156
|
-
description: "
|
|
3157
|
-
meta: "
|
|
3158
|
-
comment: "
|
|
3159
|
-
worker: "
|
|
3160
|
-
workerRow: "
|
|
3161
|
-
photo: "
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
}, Kn = {
|
|
3121
|
+
root: "_root_8a022_1",
|
|
3122
|
+
hasActions: "_hasActions_8a022_20",
|
|
3123
|
+
current: "_current_8a022_25",
|
|
3124
|
+
interactive: "_interactive_8a022_30",
|
|
3125
|
+
side: "_side_8a022_56",
|
|
3126
|
+
thumb: "_thumb_8a022_65",
|
|
3127
|
+
thumbImg: "_thumbImg_8a022_72",
|
|
3128
|
+
tile: "_tile_8a022_79",
|
|
3129
|
+
icon: "_icon_8a022_99",
|
|
3130
|
+
tilePlay: "_tilePlay_8a022_104",
|
|
3131
|
+
badge: "_badge_8a022_108",
|
|
3132
|
+
main: "_main_8a022_121",
|
|
3133
|
+
columns: "_columns_8a022_129",
|
|
3134
|
+
info: "_info_8a022_137",
|
|
3135
|
+
aside: "_aside_8a022_138",
|
|
3136
|
+
date: "_date_8a022_149",
|
|
3137
|
+
label: "_label_8a022_150",
|
|
3138
|
+
title: "_title_8a022_158",
|
|
3139
|
+
workerName: "_workerName_8a022_159",
|
|
3140
|
+
description: "_description_8a022_166",
|
|
3141
|
+
meta: "_meta_8a022_167",
|
|
3142
|
+
comment: "_comment_8a022_184",
|
|
3143
|
+
worker: "_worker_8a022_159",
|
|
3144
|
+
workerRow: "_workerRow_8a022_209",
|
|
3145
|
+
photo: "_photo_8a022_215",
|
|
3146
|
+
workerText: "_workerText_8a022_223",
|
|
3147
|
+
actions: "_actions_8a022_228",
|
|
3148
|
+
srOnly: "_srOnly_8a022_239"
|
|
3149
|
+
}, Gn = {
|
|
3167
3150
|
worker: "Worker:",
|
|
3168
3151
|
comment: "Comment:",
|
|
3169
3152
|
inaccessible: "Inaccessible",
|
|
3170
3153
|
archived: "Archived",
|
|
3171
|
-
unavailable: "
|
|
3154
|
+
unavailable: "Unavailable",
|
|
3172
3155
|
notReady: "Not ready",
|
|
3173
3156
|
new: "Unwatched"
|
|
3174
3157
|
};
|
|
3175
|
-
function
|
|
3158
|
+
function Kn({ 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 }) {
|
|
3176
3159
|
let C = {
|
|
3177
|
-
...
|
|
3160
|
+
...Gn,
|
|
3178
3161
|
...g
|
|
3179
3162
|
}, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
|
|
3180
3163
|
e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
|
|
3181
|
-
},
|
|
3164
|
+
}, N = [
|
|
3182
3165
|
$.root,
|
|
3183
3166
|
(j || p) && $.interactive,
|
|
3184
3167
|
d && $.current,
|
|
3185
3168
|
h != null && $.hasActions,
|
|
3186
3169
|
x
|
|
3187
|
-
].filter(Boolean).join(" "),
|
|
3170
|
+
].filter(Boolean).join(" "), P = j ? {
|
|
3188
3171
|
role: "button",
|
|
3189
3172
|
tabIndex: 0,
|
|
3190
3173
|
"aria-label": b ?? (l ? `Video ${l}` : "Video"),
|
|
@@ -3192,9 +3175,9 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3192
3175
|
onKeyDown: M
|
|
3193
3176
|
} : { "aria-label": b };
|
|
3194
3177
|
return /* @__PURE__ */ y("div", {
|
|
3195
|
-
className:
|
|
3178
|
+
className: N,
|
|
3196
3179
|
"data-testid": S,
|
|
3197
|
-
...
|
|
3180
|
+
...P,
|
|
3198
3181
|
children: [
|
|
3199
3182
|
/* @__PURE__ */ y("div", {
|
|
3200
3183
|
className: $.side,
|
|
@@ -3211,12 +3194,12 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3211
3194
|
}
|
|
3212
3195
|
}) : /* @__PURE__ */ v("div", {
|
|
3213
3196
|
className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
|
|
3214
|
-
children: t === "play" ? /* @__PURE__ */ v(
|
|
3197
|
+
children: t === "play" ? /* @__PURE__ */ v(Ee, {
|
|
3215
3198
|
size: 20,
|
|
3216
3199
|
"aria-hidden": "true"
|
|
3217
3200
|
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
|
|
3218
3201
|
className: $.icon,
|
|
3219
|
-
children: v(t === "archived" ?
|
|
3202
|
+
children: v(t === "archived" ? H : t === "unavailable" ? Se : t === "notReady" ? be : we, {
|
|
3220
3203
|
size: 12,
|
|
3221
3204
|
strokeWidth: 1,
|
|
3222
3205
|
"aria-hidden": "true"
|
|
@@ -3261,7 +3244,7 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3261
3244
|
children: C.worker
|
|
3262
3245
|
}), /* @__PURE__ */ y("div", {
|
|
3263
3246
|
className: $.workerRow,
|
|
3264
|
-
children: [A ? /* @__PURE__ */ v(
|
|
3247
|
+
children: [A ? /* @__PURE__ */ v(Wn, {
|
|
3265
3248
|
src: k,
|
|
3266
3249
|
children: /* @__PURE__ */ v("img", {
|
|
3267
3250
|
className: $.photo,
|
|
@@ -3271,10 +3254,11 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3271
3254
|
decoding: "async",
|
|
3272
3255
|
onError: () => D(k)
|
|
3273
3256
|
})
|
|
3274
|
-
}) : /* @__PURE__ */ v("
|
|
3275
|
-
className:
|
|
3276
|
-
|
|
3277
|
-
|
|
3257
|
+
}) : /* @__PURE__ */ v("img", {
|
|
3258
|
+
className: $.photo,
|
|
3259
|
+
src: "data:image/webp;base64,UklGRsQNAABXRUJQVlA4ILgNAADwtQCdASqAAoACPp1Oo00yLqevI5EYcLATiWlu/CoZinYDN0umdA+ju0jyzro7bXaTiWn3fePDTUCfu3ROf/Pg5hxUAFm9C90nXFpxu4As3oXuk64tON3AFm9C90nXFpxu4As3oXuk64tON3AFm9C90nXFpxu4As3oXuk64tON3AFm9C90nXFpxu4As3oXuk64tON2K+Q/BL3SdcWnG7gCzehe6Tri0idgnN6btep7xCOFjkFjSoLPDjqhZTuLTjdwBZvQvdJ1xacbsFpl3Iuw24HwogdzCbp35pVdi9C90nXFpxu4As3oW4R6XAfF3mlABhyXrxnbuxRZxZvQvdJ1xacbuAK7c+YTouS+2u4AfwnirbmDHFpxu4As3oXuk64dO2d1HtruALMf1JmWibYezAEFM3DL3SdayVDf7BgqOLTi1SKtzVy6J1xacbuALN6DfdLwTLvuALN6Fvzx5fu6fIY6lQWio4tON3ADvDUguPz3doCz15IeJRVbnTlXF/8ISgwmrEFVUj1DwBQW1yjWmR+o4tW5xu4As3oW+yyNaDoJfKxumy6MWVwDf1nhVJdeACcQQVHFp3It3AFm9C3DH6jDwfhbXcAV14XhSQx8GPk8JFABZvQvdJ1xaRV6HEcd2q2qXKusmVADa7gDxqoRbYHtRBpPKwHily8kjkawy905064tON2/xtqmB+hwLbTjdv7fhiXS4e9zwovSRy7EvdJ1xacbuALMpMvIvmF9C90neMwRRYo1zQDPsR1L+E/XFpxu4Ar1/tRPd47fACz9/WgTt2qY8NMjxTkTrhl7pOuLTjdwBXt7CNDIZXobC6Ii9tkEPIRlSRfcak+G0PDLSZenG7gCzehe6TrmQLflmLuWMdJNky2ErQn/r6L4o8kEPiXG1VfjXuQPfF6F7pOuLTjdwBZugI76p7hFu3a6HBvHQjoV2aM/roAeN0W7gCzehe6Tri043Yw03nF1q1yU3+n/YzTxsqQv4QnWo4tON3AFm9DVXPaA/8olPggjBEH9SEAs3oXuk64tON3AFm9C9WZyFzUwkvKmCJ04lzF9jIWjnGU9PFfg54OuQJrqZEpeJEvdJ1xacbuALN6Dtyjqmmmys21kODsicwrm3zflFmpTbK8uUxacbuALndvQvdJ1xaPfzUg3SzvPoNpLTTPlIZNKAa7F6DxVYYU1K9PeB5qOLTjdwBZvQvdJ0nw1K+tM4M3/+0T9GXRjX0/JGVBON270CnmisXAkxMdY+cTfAc4LhWeGXulGVHFpuMCJf/uQztppa2Hwrt0fGbEseALrjU5x+m3Iay6Hta4LpkDq8JobtqONfODmz5HSEQWfv4Ze6To3YS1i//DbtcS7BRcm8NAh4SFcjeBS+0vTsDk3Uw4OdJHGNU2PtTbFxg/7JI6Ydg0g3nCAL3bkpxmbXcAV25NT5I32KAuqHYmsKkNvfp7Hlr9ICH8RqiGQHr5OPL1zdju1KE6RIqls3PAjcfVHl6s+SiOaHJiCmcsXgYDPqDjN8O4QPTcwsbIlzpyA5QSK/JRCcoKywBZvQtxcDPiU4tcdV+LuSa2qSiGzFgKecWL/pvy/ecUk64tIr+AF6g8nBTvjyVheFUZJvs6jZmqiyc6AgVZBoeeGXujSSrZaR6cbUItv/603Feb2q5BpjxWwlcksEjssG2R068Myl2b0h7UEoixRqGIB06hao9JAATkbD/Qd+Hn3tNuJVYsMALN6DkX6gjJ1w6aUvrIdZvQ2XBgVESRZufRxBcoKjiAqjks1izIS515Ay54Ze6TrVwfWNpFpatsAbuLTjbIIutvQvUfgR6m3cAWb0LcMfqayVAmZogfBl6k54+1oAHfJvxWb0MdS/g25c4bN3e1U25T9cV/GrlNsKjh0asgsMveE5zp0eMYSQCzLWWgAsx65jxKgoYpmcWb0L3SdcOrXMu1662HX4uSRGAAA/v7owAAAAAAAABBq0ybzX9iL2KN11Ur4gAQRMd+o0+DoO137RkTspTEAaHhvQb67CzOv2zfbBAxlJv0vRMnTHjJlJnGk6DGIbwOb2Qx5xSDh/nnhGFRBgdifwkMlVuaZanwQv87rQfqRoHPF2S9mQ8IQ2D8RQB2CCFbRk6LOflm/8VEXsPg+ZE996cHp0YeX/uikP+IleehNoZkId4slK5mbxsuh2IC6RmsHcDEibzcli0jIA84mT+siiNPrz0uK70Z/UtzuP/BBSWg9zG2ChDzABVdTNuSRXHErR5orTF56/9+i2Yo1n9yc0J+pJSi4dqd0C1hzSA2qARLXzJ/ESrjbvohb0XzEXfFi43h350DPhoxllkjvgmVBNuhuBIHXl5/jfFcf4ufH235ievUA1PfwvHbP4viNiKKtYHeLldGgPkTyJeUe5Y4qdjmlJh1qX+fZGIdiJCAu6cLE4YGYvqmicQdCEky0KA+C4N15AbQfy6pN5a0oHL/xCkEcEuH7nVHZ+lDNj2H/cpLkLmmvF4eO0cqoQTZ68J/EfuOuXUyOJ6jRuFRe8i4G83k6/cSd2xaII66dU6YxEYeXJO7JLUg0jZnRhtjbkF8W71D521akruoHdGfq8QEn0JQTONFP36Dm0ld7Jajq7WJT4j7Frot17WWw67y8Qx8+fQqim9fX2kWEcV6L8Xi5iCwvjzOiA1yD+aGapXApkWwhemR3gpekgcj2+vOuE1xA2D+pVBGwwiRHKjqZO7Qx+9LkqjVjYZLKHIoDErXC8JM9/Cvt/JqwbD5BehjvVeZ9H9VDaPyDkXxRh8MfDDD6C2BJJdF9fETkRqamjWoMhTvi/pjkK4OCddoNGLt6ftXCrVGpwVKEJNholvFdPUeNHcEGZst0WvujQxHKxl+8Ex9ciCoGQjw55gKv1MRJcZrPWAgAk6NgpxXLBDJym3ZBijABo1YiWlDfhE21gVL8/9gjAD4DQR7LEfHXM0zw0MWeJ69VLcbJwCXNr2jPh7IrQukVTVJ0AFL3xAlt1ForCjL2yEifYGEVBKltpuzHCB3tNpAr4rDn3ABwTzWtKncRB/CLliQV1uhlowPrwdMm6RX5cWYyuFnN2ZwTe54IyRM8id0lOO/QfnSVAJFocmfw+59zWHIniJ3AGg2yXW11zw65azFfg0h/YW3WJbjGKeno9gU0cxWgSkgCwaZ6L/fs4DwIALL8LXo7imxL6RLDACwZ6ONSKlJ1M/5YP52db05t43iGkYTpWPvZC5FhoMzctSplfL3zo/kNqdS1Bwy/NitPisKPrZ1w1KVpwA+tgaZHAls67U8gMncfkI5EM5Erzbo/nGjFP35euULlxsRBVk+haBOWXhJgadgvbQzc3+qXkEAAP5eTSi63OGaI7S7l+7+F0+QUwBDGA1sVsZiBjoRMbFmAzyaTufoDRNxllvwBczJyoNqtoPNrYWyayhu8rHIXDNozYRDngM6NDAM9+k/h/abh1anBPN1qrGCnLlxd3RrWSc73JeN5KbDNj9SEbO4EGmjq5SdkxoVNysgKxuaTUmpjA0sl4hu4rPkbifNbcFweRxWLvAWOeAXJY6rgqqbEb3epxjrBvR4FFY4pvJx+WhiroKkiiPGwUrpUYWQNy9vA+1LSgRgBVOsVP1n1QAx9Cm9aQJ/QxJvFRY+Vkh8lN2Lhg6hXPyuzmVGqORAuBV7UbxsjFBMmC4xlzek6Np9w8phAEP2BFSrE1OAJmimEVuX1OWch1PPY5HWaymkx3NibaNM0kPq1MaK/PsV1gC51qJxk25abpkc6ctX5dFCd3JcF9Un/3KnqfFT1SUtnp+52p3JoDiR1fwbvJF/+cTdtbjVbomrF85KWYsvFOMEONjnYIZ1Nk9ALz2UEJPodSF9gM5FNSp27hCYBl6GUPshpJmBFFShxnhUOF6jsBKFyG2qPjcnHPtQTsA/i01tSDS455XRVUBXAr3uk32lDh/jdpxHUhT7LM0yqQQJ6aoN42M+n3KhHGaDzcMooOY8zbCfEr2FL8OP2AsCeqBJdov8sXkLkFhBmTTynI0g/XFa0zoaehVNB1uMoif8KUjjJDfSLTw65eYy5F54n4UVS/iyn9ZRU+U8LdTD/C3U0RnTq+/lTVJcJi4Ki6uGkwX+htnRA5ghUBvTf7SqmpbgN0lPzDs7yx4/x7+h4lZzjKXjTxuyy9CzZw0iXcEIbPlmXQ6WoQLriAdVxNJVnklcAVoBlLnOrRZYEsG0GAoFVFXr6ZBv+0ydNF+ubcwdB6bHYc0hPZ0QYpjuRm+d3mKXlbnDvdE9F52NQ91SgD4Plm7cVNFaCLmnwdsSQt48T/IgkFHMY7kgIU2nfqnDdKJG6QUYNZSl2jZt1tPMudD0CBJIsmEhSNfjdE8NWW2yKAcKMBoV+wgZA+24uVeuqIKyj+DvbfVq8pQ4+YSLOQDNsIMD0otVVpxWXDUIFhc809+RqMgkB1+QEz+CSiAhvIYtQrTVV7fMT8ohOkQ50XeTWj5R8C4y5eQuJQeS6HcUPbXh+s3B5kvY+pKkpYAtAKcPTyCcauxbdu1v0E2VjArQdomgWf9bT1qwwMmeQgl2C9kZES4JZnbIMJuQihLNJUlvE2W2z91dbTPk0JOPosYcMSsTvDTUqPQ6aWoKWy/OuVJSOPu+7E5UPhC0tAUJhdP0GIiCG+amW/9eCnIBH2ugxbWss4DAlCqUhGIVQqqXLyhN2m6gAAA==",
|
|
3260
|
+
alt: "",
|
|
3261
|
+
"aria-hidden": "true"
|
|
3278
3262
|
}), /* @__PURE__ */ v("div", {
|
|
3279
3263
|
className: $.workerText,
|
|
3280
3264
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -3301,14 +3285,14 @@ function qn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3301
3285
|
]
|
|
3302
3286
|
});
|
|
3303
3287
|
}
|
|
3304
|
-
function
|
|
3288
|
+
function qn({ className: e, "data-testid": t }) {
|
|
3305
3289
|
return /* @__PURE__ */ y("div", {
|
|
3306
3290
|
className: `${$.root} ${e ?? ""}`,
|
|
3307
3291
|
"data-testid": t,
|
|
3308
3292
|
"aria-hidden": "true",
|
|
3309
3293
|
children: [/* @__PURE__ */ v("div", {
|
|
3310
3294
|
className: $.side,
|
|
3311
|
-
children: /* @__PURE__ */ v(
|
|
3295
|
+
children: /* @__PURE__ */ v(Ot, {
|
|
3312
3296
|
width: 72,
|
|
3313
3297
|
height: 48
|
|
3314
3298
|
})
|
|
@@ -3317,15 +3301,15 @@ function Jn({ className: e, "data-testid": t }) {
|
|
|
3317
3301
|
children: /* @__PURE__ */ y("div", {
|
|
3318
3302
|
className: $.info,
|
|
3319
3303
|
children: [
|
|
3320
|
-
/* @__PURE__ */ v(
|
|
3304
|
+
/* @__PURE__ */ v(Ot, {
|
|
3321
3305
|
variant: "text",
|
|
3322
3306
|
width: "40%"
|
|
3323
3307
|
}),
|
|
3324
|
-
/* @__PURE__ */ v(
|
|
3308
|
+
/* @__PURE__ */ v(Ot, {
|
|
3325
3309
|
variant: "text",
|
|
3326
3310
|
width: "65%"
|
|
3327
3311
|
}),
|
|
3328
|
-
/* @__PURE__ */ v(
|
|
3312
|
+
/* @__PURE__ */ v(Ot, {
|
|
3329
3313
|
variant: "text",
|
|
3330
3314
|
width: "90%"
|
|
3331
3315
|
})
|
|
@@ -3334,18 +3318,18 @@ function Jn({ className: e, "data-testid": t }) {
|
|
|
3334
3318
|
})]
|
|
3335
3319
|
});
|
|
3336
3320
|
}
|
|
3337
|
-
var
|
|
3321
|
+
var Jn = Object.assign(Kn, { Skeleton: qn });
|
|
3338
3322
|
//#endregion
|
|
3339
3323
|
//#region src/utils/format.ts
|
|
3340
|
-
function
|
|
3324
|
+
function Yn(e) {
|
|
3341
3325
|
let t = Math.floor(e / 60), n = e % 60;
|
|
3342
3326
|
return `${t}h:${String(n).padStart(2, "0")}m`;
|
|
3343
3327
|
}
|
|
3344
|
-
function
|
|
3328
|
+
function Xn(e, t) {
|
|
3345
3329
|
let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
|
|
3346
3330
|
return `${i(n)}:${i(r)}:${i(t)}`;
|
|
3347
3331
|
}
|
|
3348
3332
|
//#endregion
|
|
3349
|
-
export {
|
|
3333
|
+
export { P as Badge, k as Button, xt as Calendar, j as Card, qe as Checkbox, Ye as CheckboxGroup, In as ConfirmDialog, at as DateField, Et as DatePicker, Bt as DateRangePicker, Zt as Dropdown, Rn as EmptyState, Re as FieldLabel, _n as FilterSection, hn as HighlightText, fn 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, it as PasswordField, Wn as PhotoPreview, Ze as RadioButton, Qe as RadioGroup, un as Sidebar, dn as SidebarFooter, Ot as Skeleton, yn as Spinner, et as Switch, on as Tabs, Pe as Tag, ze as TagGroup, rt as TextArea, tt as TextField, cn as Toggle, Ve as Toolbar, Ge as ToolbarAdaptive, C as Tooltip, Jn as VideoCard, Yn as formatDuration, Xn as formatDurationHMS };
|
|
3350
3334
|
|
|
3351
3335
|
//# sourceMappingURL=index.js.map
|