cattle-care-ui 0.5.7 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Sidebar.d.ts +8 -10
- package/dist/index.css +1 -1
- package/dist/index.js +911 -943
- 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 ce = {
|
|
|
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 V = B(ce), 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 V(e) {
|
|
1448
|
-
M.current = !0, ce(gt(e, n, r));
|
|
1449
|
-
}
|
|
1450
1433
|
function H(e) {
|
|
1451
|
-
|
|
1452
|
-
M.current = e < 0 ? ae(t) : oe(t), ce(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,9 +1730,9 @@ 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
|
|
1735
|
+
var Y = {
|
|
1750
1736
|
field: "_field_6a290_1",
|
|
1751
1737
|
trigger: "_trigger_6a290_11",
|
|
1752
1738
|
errorWrap: "_errorWrap_6a290_43",
|
|
@@ -1767,207 +1753,207 @@ var J = {
|
|
|
1767
1753
|
months: "_months_6a290_220",
|
|
1768
1754
|
month: "_month_6a290_220",
|
|
1769
1755
|
footer: "_footer_6a290_228"
|
|
1770
|
-
},
|
|
1771
|
-
function
|
|
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
|
}), [
|
|
1779
|
+
W,
|
|
1780
|
+
F,
|
|
1793
1781
|
U,
|
|
1794
|
-
P,
|
|
1795
|
-
H,
|
|
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
|
-
onClose:
|
|
1808
|
-
layoutKey: `${
|
|
1793
|
+
onClose: fe,
|
|
1794
|
+
layoutKey: `${V}-${L.getTime()}`
|
|
1809
1795
|
});
|
|
1810
|
-
function
|
|
1811
|
-
o || c || (
|
|
1796
|
+
function pe() {
|
|
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
|
-
function
|
|
1817
|
-
|
|
1802
|
+
function me() {
|
|
1803
|
+
H ? fe(!1) : pe();
|
|
1818
1804
|
}
|
|
1819
|
-
function
|
|
1820
|
-
e.key === "ArrowDown" && !
|
|
1805
|
+
function he(e) {
|
|
1806
|
+
e.key === "ArrowDown" && !H && (e.preventDefault(), pe());
|
|
1821
1807
|
}
|
|
1822
|
-
function
|
|
1823
|
-
t(e.range()),
|
|
1808
|
+
function ge(e) {
|
|
1809
|
+
t(e.range()), fe(!0);
|
|
1824
1810
|
}
|
|
1825
|
-
function
|
|
1826
|
-
|
|
1827
|
-
start:
|
|
1828
|
-
end:
|
|
1829
|
-
}),
|
|
1811
|
+
function _e() {
|
|
1812
|
+
kt(F) && (t({
|
|
1813
|
+
start: F.start,
|
|
1814
|
+
end: F.end
|
|
1815
|
+
}), fe(!0));
|
|
1830
1816
|
}
|
|
1831
|
-
let
|
|
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
|
-
range:
|
|
1839
|
-
onDayHover:
|
|
1840
|
-
},
|
|
1824
|
+
range: ye,
|
|
1825
|
+
onDayHover: te
|
|
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
|
-
onClick:
|
|
1864
|
-
onKeyDown:
|
|
1849
|
+
onClick: me,
|
|
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:
|
|
1902
|
-
children: [
|
|
1903
|
-
className:
|
|
1887
|
+
className: Y.popup,
|
|
1888
|
+
children: [Ce && /* @__PURE__ */ v("div", {
|
|
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
|
-
onClick: () =>
|
|
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(
|
|
1920
|
-
...
|
|
1921
|
-
autoFocus: !
|
|
1922
|
-
month:
|
|
1923
|
-
onMonthChange:
|
|
1924
|
-
hideNavigation:
|
|
1904
|
+
className: Y.month,
|
|
1905
|
+
children: /* @__PURE__ */ v(xt, {
|
|
1906
|
+
...Se,
|
|
1907
|
+
autoFocus: !xe,
|
|
1908
|
+
month: L,
|
|
1909
|
+
onMonthChange: ve(0),
|
|
1910
|
+
hideNavigation: V ? "next" : void 0
|
|
1925
1911
|
})
|
|
1926
|
-
}),
|
|
1927
|
-
className:
|
|
1928
|
-
children: /* @__PURE__ */ v(
|
|
1929
|
-
...
|
|
1930
|
-
autoFocus:
|
|
1931
|
-
month:
|
|
1932
|
-
onMonthChange:
|
|
1912
|
+
}), V && /* @__PURE__ */ v("div", {
|
|
1913
|
+
className: Y.month,
|
|
1914
|
+
children: /* @__PURE__ */ v(xt, {
|
|
1915
|
+
...Se,
|
|
1916
|
+
autoFocus: xe,
|
|
1917
|
+
month: be,
|
|
1918
|
+
onMonthChange: ve(1),
|
|
1933
1919
|
hideNavigation: "previous"
|
|
1934
1920
|
})
|
|
1935
1921
|
})]
|
|
1936
|
-
}),
|
|
1937
|
-
className:
|
|
1922
|
+
}), se ? /* @__PURE__ */ y("div", {
|
|
1923
|
+
className: Y.footer,
|
|
1938
1924
|
children: [/* @__PURE__ */ v(k, {
|
|
1939
1925
|
variant: "primary",
|
|
1940
1926
|
size: "base",
|
|
1941
1927
|
fullWidth: !0,
|
|
1942
|
-
disabled: !
|
|
1943
|
-
onClick:
|
|
1928
|
+
disabled: !kt(F),
|
|
1929
|
+
onClick: _e,
|
|
1944
1930
|
children: O
|
|
1945
1931
|
}), /* @__PURE__ */ v(k, {
|
|
1946
1932
|
variant: "tertiary",
|
|
1947
1933
|
size: "base",
|
|
1948
1934
|
fullWidth: !0,
|
|
1949
|
-
onClick: () =>
|
|
1935
|
+
onClick: () => fe(!0),
|
|
1950
1936
|
children: A
|
|
1951
1937
|
})]
|
|
1952
1938
|
}) : /* @__PURE__ */ y("div", {
|
|
1953
|
-
className:
|
|
1939
|
+
className: Y.footer,
|
|
1954
1940
|
children: [/* @__PURE__ */ v(k, {
|
|
1955
1941
|
variant: "tertiary",
|
|
1956
1942
|
size: "sm",
|
|
1957
|
-
onClick: () =>
|
|
1943
|
+
onClick: () => fe(!0),
|
|
1958
1944
|
children: A
|
|
1959
1945
|
}), /* @__PURE__ */ v(k, {
|
|
1960
1946
|
variant: "primary",
|
|
1961
1947
|
size: "sm",
|
|
1962
|
-
disabled: !
|
|
1963
|
-
onClick:
|
|
1948
|
+
disabled: !kt(F),
|
|
1949
|
+
onClick: _e,
|
|
1964
1950
|
children: O
|
|
1965
1951
|
})]
|
|
1966
1952
|
})]
|
|
1967
1953
|
})]
|
|
1968
1954
|
}), document.body)] });
|
|
1969
1955
|
}
|
|
1970
|
-
var
|
|
1956
|
+
var Vt = {
|
|
1971
1957
|
field: "_field_l0zl7_1",
|
|
1972
1958
|
inputWrap: "_inputWrap_l0zl7_6",
|
|
1973
1959
|
errorWrap: "_errorWrap_l0zl7_19",
|
|
@@ -1981,64 +1967,64 @@ var Wt = {
|
|
|
1981
1967
|
};
|
|
1982
1968
|
//#endregion
|
|
1983
1969
|
//#region src/components/NumberField.tsx
|
|
1984
|
-
function
|
|
1970
|
+
function Ht({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
|
|
1985
1971
|
let c = u(), l = o ?? c;
|
|
1986
1972
|
return /* @__PURE__ */ y("div", {
|
|
1987
|
-
className:
|
|
1973
|
+
className: Vt.field,
|
|
1988
1974
|
children: [
|
|
1989
|
-
e && /* @__PURE__ */ v(
|
|
1975
|
+
e && /* @__PURE__ */ v(Re, {
|
|
1990
1976
|
htmlFor: l,
|
|
1991
1977
|
children: e
|
|
1992
1978
|
}),
|
|
1993
1979
|
/* @__PURE__ */ y("div", {
|
|
1994
|
-
className: `${
|
|
1980
|
+
className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
|
|
1995
1981
|
children: [
|
|
1996
1982
|
i && /* @__PURE__ */ v("span", {
|
|
1997
|
-
className:
|
|
1983
|
+
className: Vt.prefix,
|
|
1998
1984
|
children: i
|
|
1999
1985
|
}),
|
|
2000
1986
|
/* @__PURE__ */ v("input", {
|
|
2001
1987
|
id: l,
|
|
2002
|
-
className:
|
|
1988
|
+
className: Vt.input,
|
|
2003
1989
|
...s
|
|
2004
1990
|
}),
|
|
2005
1991
|
a && /* @__PURE__ */ v("span", {
|
|
2006
|
-
className:
|
|
1992
|
+
className: Vt.suffix,
|
|
2007
1993
|
children: a
|
|
2008
1994
|
})
|
|
2009
1995
|
]
|
|
2010
1996
|
}),
|
|
2011
1997
|
n ? /* @__PURE__ */ v("span", {
|
|
2012
|
-
className:
|
|
1998
|
+
className: Vt.errorText,
|
|
2013
1999
|
children: n
|
|
2014
2000
|
}) : t ? /* @__PURE__ */ v("span", {
|
|
2015
|
-
className:
|
|
2001
|
+
className: Vt.helperText,
|
|
2016
2002
|
children: t
|
|
2017
2003
|
}) : null
|
|
2018
2004
|
]
|
|
2019
2005
|
});
|
|
2020
2006
|
}
|
|
2021
|
-
var
|
|
2007
|
+
var Ut = {
|
|
2022
2008
|
menu: "_menu_xz84k_1",
|
|
2023
2009
|
divider: "_divider_xz84k_15"
|
|
2024
2010
|
};
|
|
2025
2011
|
//#endregion
|
|
2026
2012
|
//#region src/components/Menu.tsx
|
|
2027
|
-
function
|
|
2013
|
+
function Wt({ children: e, ...t }) {
|
|
2028
2014
|
return /* @__PURE__ */ v("div", {
|
|
2029
2015
|
role: "menu",
|
|
2030
|
-
className:
|
|
2016
|
+
className: Ut.menu,
|
|
2031
2017
|
...t,
|
|
2032
2018
|
children: e
|
|
2033
2019
|
});
|
|
2034
2020
|
}
|
|
2035
|
-
function
|
|
2021
|
+
function Gt() {
|
|
2036
2022
|
return /* @__PURE__ */ v("div", {
|
|
2037
|
-
className:
|
|
2023
|
+
className: Ut.divider,
|
|
2038
2024
|
role: "separator"
|
|
2039
2025
|
});
|
|
2040
2026
|
}
|
|
2041
|
-
var
|
|
2027
|
+
var Kt = {
|
|
2042
2028
|
item: "_item_1sghe_1",
|
|
2043
2029
|
base: "_base_1sghe_21",
|
|
2044
2030
|
icon: "_icon_1sghe_31",
|
|
@@ -2051,12 +2037,12 @@ var Yt = {
|
|
|
2051
2037
|
};
|
|
2052
2038
|
//#endregion
|
|
2053
2039
|
//#region src/components/MenuItem.tsx
|
|
2054
|
-
function
|
|
2040
|
+
function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
|
|
2055
2041
|
let c = [
|
|
2056
|
-
|
|
2057
|
-
a === "base" &&
|
|
2058
|
-
r &&
|
|
2059
|
-
i &&
|
|
2042
|
+
Kt.item,
|
|
2043
|
+
a === "base" && Kt.base,
|
|
2044
|
+
r && Kt.selected,
|
|
2045
|
+
i && Kt.destructive
|
|
2060
2046
|
].filter(Boolean).join(" ");
|
|
2061
2047
|
return /* @__PURE__ */ y("button", {
|
|
2062
2048
|
type: "button",
|
|
@@ -2065,29 +2051,29 @@ function Xt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
|
|
|
2065
2051
|
...s,
|
|
2066
2052
|
children: [
|
|
2067
2053
|
e && /* @__PURE__ */ v("span", {
|
|
2068
|
-
className:
|
|
2054
|
+
className: Kt.leading,
|
|
2069
2055
|
children: e
|
|
2070
2056
|
}),
|
|
2071
2057
|
t && /* @__PURE__ */ v("span", {
|
|
2072
|
-
className:
|
|
2058
|
+
className: Kt.icon,
|
|
2073
2059
|
children: t
|
|
2074
2060
|
}),
|
|
2075
2061
|
/* @__PURE__ */ v("span", {
|
|
2076
|
-
className:
|
|
2062
|
+
className: Kt.label,
|
|
2077
2063
|
children: o
|
|
2078
2064
|
}),
|
|
2079
2065
|
n && /* @__PURE__ */ v("span", {
|
|
2080
|
-
className:
|
|
2066
|
+
className: Kt.trailing,
|
|
2081
2067
|
children: n
|
|
2082
2068
|
}),
|
|
2083
2069
|
r && /* @__PURE__ */ v("span", {
|
|
2084
|
-
className:
|
|
2085
|
-
children: /* @__PURE__ */ v(
|
|
2070
|
+
className: Kt.check,
|
|
2071
|
+
children: /* @__PURE__ */ v(W, {})
|
|
2086
2072
|
})
|
|
2087
2073
|
]
|
|
2088
2074
|
});
|
|
2089
2075
|
}
|
|
2090
|
-
var
|
|
2076
|
+
var X = {
|
|
2091
2077
|
field: "_field_2od11_1",
|
|
2092
2078
|
fieldInline: "_fieldInline_2od11_2",
|
|
2093
2079
|
trigger: "_trigger_2od11_19",
|
|
@@ -2124,15 +2110,15 @@ var Y = {
|
|
|
2124
2110
|
};
|
|
2125
2111
|
//#endregion
|
|
2126
2112
|
//#region src/components/Dropdown.tsx
|
|
2127
|
-
function
|
|
2113
|
+
function Jt(e) {
|
|
2128
2114
|
return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
|
|
2129
2115
|
}
|
|
2130
|
-
function
|
|
2116
|
+
function Yt(e) {
|
|
2131
2117
|
return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
|
|
2132
2118
|
}
|
|
2133
|
-
var
|
|
2134
|
-
function
|
|
2135
|
-
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) => {
|
|
2136
2122
|
if (!e) return;
|
|
2137
2123
|
let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
|
|
2138
2124
|
t();
|
|
@@ -2143,241 +2129,241 @@ function en(e) {
|
|
|
2143
2129
|
return r.observe(e, { childList: !0 }), () => {
|
|
2144
2130
|
n.disconnect(), r.disconnect();
|
|
2145
2131
|
};
|
|
2146
|
-
}, []),
|
|
2147
|
-
function
|
|
2148
|
-
|
|
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);
|
|
2149
2135
|
}
|
|
2150
|
-
function
|
|
2151
|
-
M(!1),
|
|
2136
|
+
function fe() {
|
|
2137
|
+
M(!1), I("");
|
|
2152
2138
|
}
|
|
2153
2139
|
l(() => {
|
|
2154
2140
|
if (!j) return;
|
|
2155
2141
|
if (b) {
|
|
2156
|
-
|
|
2142
|
+
re.current?.focus();
|
|
2157
2143
|
return;
|
|
2158
2144
|
}
|
|
2159
|
-
let e = (A ?
|
|
2160
|
-
(
|
|
2145
|
+
let e = (A ? H.find((e) => !e.disabled)?.value : V) ?? W[0];
|
|
2146
|
+
(z.current?.querySelector(`[data-value="${e}"]`))?.focus();
|
|
2161
2147
|
}, [j]), d(() => {
|
|
2162
|
-
if (!j || !
|
|
2163
|
-
let e =
|
|
2164
|
-
|
|
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);
|
|
2165
2151
|
}, [j]), l(() => {
|
|
2166
2152
|
if (!j) return;
|
|
2167
2153
|
function e(e) {
|
|
2168
|
-
|
|
2154
|
+
z.current?.contains(e.target) || fe();
|
|
2169
2155
|
}
|
|
2170
2156
|
function t(e) {
|
|
2171
|
-
e.key === "Escape" && (
|
|
2157
|
+
e.key === "Escape" && (fe(), B.current?.focus()), e.key === "Tab" && A && fe();
|
|
2172
2158
|
}
|
|
2173
2159
|
return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
|
|
2174
2160
|
window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
|
|
2175
2161
|
};
|
|
2176
2162
|
}, [j, A]);
|
|
2163
|
+
function pe(e) {
|
|
2164
|
+
e !== void 0 && z.current?.querySelector(`[data-value="${e}"]`)?.focus();
|
|
2165
|
+
}
|
|
2177
2166
|
function me(e) {
|
|
2178
|
-
e
|
|
2167
|
+
(e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), de());
|
|
2179
2168
|
}
|
|
2180
2169
|
function he(e) {
|
|
2181
|
-
|
|
2170
|
+
e.key === "ArrowDown" && (e.preventDefault(), pe(W[0])), e.key === "Enter" && W.length === 1 && (e.preventDefault(), ve(W[0]));
|
|
2182
2171
|
}
|
|
2183
|
-
function ge(e) {
|
|
2184
|
-
|
|
2185
|
-
}
|
|
2186
|
-
function _e(e, t) {
|
|
2187
|
-
let n = U.indexOf(t);
|
|
2172
|
+
function ge(e, t) {
|
|
2173
|
+
let n = W.indexOf(t);
|
|
2188
2174
|
if (n === -1) return;
|
|
2189
2175
|
let r = null;
|
|
2190
|
-
if (e.key === "ArrowDown" && (r = (n + 1) %
|
|
2176
|
+
if (e.key === "ArrowDown" && (r = (n + 1) % W.length), e.key === "ArrowUp") {
|
|
2191
2177
|
if (b && n === 0) {
|
|
2192
|
-
e.preventDefault(),
|
|
2178
|
+
e.preventDefault(), re.current?.focus();
|
|
2193
2179
|
return;
|
|
2194
2180
|
}
|
|
2195
|
-
r = (n - 1 +
|
|
2181
|
+
r = (n - 1 + W.length) % W.length;
|
|
2196
2182
|
}
|
|
2197
|
-
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]));
|
|
2198
2184
|
}
|
|
2199
|
-
function
|
|
2200
|
-
|
|
2185
|
+
function _e(e) {
|
|
2186
|
+
R((t) => ({
|
|
2201
2187
|
top: e.offsetTop,
|
|
2202
2188
|
height: e.offsetHeight,
|
|
2203
2189
|
instant: !t
|
|
2204
2190
|
}));
|
|
2205
2191
|
}
|
|
2206
|
-
function
|
|
2192
|
+
function ve(t) {
|
|
2207
2193
|
if (e.multiple) {
|
|
2208
2194
|
let n = e.value ?? [];
|
|
2209
2195
|
e.onChange(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
2210
2196
|
return;
|
|
2211
2197
|
}
|
|
2212
|
-
e.onChange(t),
|
|
2198
|
+
e.onChange(t), fe(), B.current?.focus();
|
|
2213
2199
|
}
|
|
2214
|
-
function
|
|
2215
|
-
if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(
|
|
2216
|
-
let t =
|
|
2217
|
-
if (
|
|
2218
|
-
let n =
|
|
2219
|
-
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)}`;
|
|
2220
2206
|
}
|
|
2221
|
-
let
|
|
2222
|
-
className:
|
|
2207
|
+
let be = n === void 0 && (A ? H.length === 0 : !U), xe = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
|
|
2208
|
+
className: X.prefix,
|
|
2223
2209
|
children: [e.triggerPrefix, " "]
|
|
2224
|
-
}) : null,
|
|
2210
|
+
}) : null, Se = n ?? (be ? f : A ? ye() : U?.label), Ce = /* @__PURE__ */ y(_, { children: [xe, Se] }), we = {
|
|
2225
2211
|
"aria-haspopup": "listbox",
|
|
2226
2212
|
"aria-expanded": j,
|
|
2227
|
-
"aria-controls": j ?
|
|
2213
|
+
"aria-controls": j ? oe : void 0,
|
|
2228
2214
|
"aria-label": i ? void 0 : D,
|
|
2229
2215
|
autoFocus: w,
|
|
2230
2216
|
disabled: g,
|
|
2231
|
-
onClick: () => j ?
|
|
2232
|
-
onKeyDown:
|
|
2217
|
+
onClick: () => j ? fe() : de(),
|
|
2218
|
+
onKeyDown: me
|
|
2233
2219
|
};
|
|
2234
2220
|
return /* @__PURE__ */ y("div", {
|
|
2235
|
-
className: [
|
|
2236
|
-
ref:
|
|
2221
|
+
className: [G ? X.field : X.fieldInline, T].filter(Boolean).join(" "),
|
|
2222
|
+
ref: z,
|
|
2237
2223
|
"data-testid": O,
|
|
2238
2224
|
children: [
|
|
2239
|
-
|
|
2240
|
-
htmlFor:
|
|
2225
|
+
G && i && /* @__PURE__ */ v(Re, {
|
|
2226
|
+
htmlFor: ae,
|
|
2241
2227
|
className: E,
|
|
2242
2228
|
children: i
|
|
2243
2229
|
}),
|
|
2244
|
-
|
|
2245
|
-
ref:
|
|
2246
|
-
id:
|
|
2230
|
+
G ? /* @__PURE__ */ y("button", {
|
|
2231
|
+
ref: B,
|
|
2232
|
+
id: ae,
|
|
2247
2233
|
type: "button",
|
|
2248
2234
|
role: "combobox",
|
|
2249
|
-
className: `${
|
|
2250
|
-
...
|
|
2235
|
+
className: `${X.trigger} ${X[c]} ${o ? X.errorWrap : ""}`,
|
|
2236
|
+
...we,
|
|
2251
2237
|
children: [
|
|
2252
|
-
|
|
2253
|
-
className:
|
|
2254
|
-
children:
|
|
2238
|
+
U?.icon && /* @__PURE__ */ v("span", {
|
|
2239
|
+
className: X.icon,
|
|
2240
|
+
children: U.icon
|
|
2255
2241
|
}),
|
|
2256
2242
|
/* @__PURE__ */ v("span", {
|
|
2257
|
-
className: `${
|
|
2258
|
-
children:
|
|
2243
|
+
className: `${X.value} ${be ? X.placeholder : ""}`,
|
|
2244
|
+
children: Ce
|
|
2259
2245
|
}),
|
|
2260
2246
|
/* @__PURE__ */ v("span", {
|
|
2261
|
-
className: `${
|
|
2262
|
-
children: /* @__PURE__ */ v(
|
|
2247
|
+
className: `${X.chevron} ${j ? X.chevronOpen : ""}`,
|
|
2248
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
2263
2249
|
})
|
|
2264
2250
|
]
|
|
2265
2251
|
}) : t === "pill" ? /* @__PURE__ */ y("button", {
|
|
2266
|
-
ref:
|
|
2267
|
-
id:
|
|
2252
|
+
ref: B,
|
|
2253
|
+
id: ae,
|
|
2268
2254
|
type: "button",
|
|
2269
|
-
className:
|
|
2270
|
-
...
|
|
2255
|
+
className: X.pillTrigger,
|
|
2256
|
+
...we,
|
|
2271
2257
|
children: [
|
|
2272
|
-
|
|
2273
|
-
className:
|
|
2274
|
-
children:
|
|
2258
|
+
U?.icon && /* @__PURE__ */ v("span", {
|
|
2259
|
+
className: X.pillIcon,
|
|
2260
|
+
children: U.icon
|
|
2275
2261
|
}),
|
|
2276
|
-
|
|
2262
|
+
Ce,
|
|
2277
2263
|
/* @__PURE__ */ v("span", {
|
|
2278
|
-
className: `${
|
|
2279
|
-
children: /* @__PURE__ */ v(
|
|
2264
|
+
className: `${X.pillChevron} ${j ? X.chevronOpen : ""}`,
|
|
2265
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
2280
2266
|
})
|
|
2281
2267
|
]
|
|
2282
2268
|
}) : /* @__PURE__ */ v(k, {
|
|
2283
|
-
ref:
|
|
2284
|
-
id:
|
|
2269
|
+
ref: B,
|
|
2270
|
+
id: ae,
|
|
2285
2271
|
variant: t,
|
|
2286
2272
|
size: c,
|
|
2287
|
-
className: c === "base" ?
|
|
2288
|
-
leadingIcon:
|
|
2273
|
+
className: c === "base" ? X.buttonTriggerBase : void 0,
|
|
2274
|
+
leadingIcon: U?.icon,
|
|
2289
2275
|
trailingIcon: /* @__PURE__ */ v("span", {
|
|
2290
|
-
className: `${
|
|
2291
|
-
children: /* @__PURE__ */ v(
|
|
2276
|
+
className: `${X.buttonChevron} ${j ? X.chevronOpen : ""}`,
|
|
2277
|
+
children: /* @__PURE__ */ v(ue, {})
|
|
2292
2278
|
}),
|
|
2293
|
-
...
|
|
2294
|
-
children:
|
|
2279
|
+
...we,
|
|
2280
|
+
children: Ce
|
|
2295
2281
|
}),
|
|
2296
|
-
|
|
2297
|
-
ref:
|
|
2282
|
+
N && /* @__PURE__ */ v("div", {
|
|
2283
|
+
ref: ne,
|
|
2298
2284
|
className: [
|
|
2299
|
-
|
|
2300
|
-
!
|
|
2301
|
-
!
|
|
2302
|
-
!
|
|
2303
|
-
|
|
2304
|
-
!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
|
|
2305
2291
|
].filter(Boolean).join(" "),
|
|
2306
2292
|
onAnimationEnd: (e) => {
|
|
2307
|
-
j || e.target !== e.currentTarget || (
|
|
2293
|
+
j || e.target !== e.currentTarget || (P(!1), te(!1));
|
|
2308
2294
|
},
|
|
2309
|
-
children: /* @__PURE__ */ y(
|
|
2295
|
+
children: /* @__PURE__ */ y(Wt, {
|
|
2310
2296
|
role: "presentation",
|
|
2311
|
-
style:
|
|
2297
|
+
style: G ? { width: "100%" } : void 0,
|
|
2312
2298
|
children: [b && /* @__PURE__ */ v("input", {
|
|
2313
|
-
ref:
|
|
2299
|
+
ref: re,
|
|
2314
2300
|
type: "text",
|
|
2315
|
-
className:
|
|
2316
|
-
value:
|
|
2301
|
+
className: X.search,
|
|
2302
|
+
value: F,
|
|
2317
2303
|
placeholder: x,
|
|
2318
2304
|
"aria-label": x,
|
|
2319
|
-
"aria-controls":
|
|
2305
|
+
"aria-controls": oe,
|
|
2320
2306
|
autoComplete: "off",
|
|
2321
2307
|
spellCheck: !1,
|
|
2322
2308
|
onChange: (e) => {
|
|
2323
|
-
|
|
2309
|
+
I(e.target.value), R(null);
|
|
2324
2310
|
},
|
|
2325
|
-
onKeyDown:
|
|
2311
|
+
onKeyDown: he
|
|
2326
2312
|
}), /* @__PURE__ */ y("div", {
|
|
2327
|
-
id:
|
|
2313
|
+
id: oe,
|
|
2328
2314
|
role: "listbox",
|
|
2329
2315
|
"aria-multiselectable": A || void 0,
|
|
2330
2316
|
"aria-label": i ?? D,
|
|
2331
|
-
ref:
|
|
2332
|
-
className:
|
|
2333
|
-
onMouseLeave: () =>
|
|
2317
|
+
ref: ie,
|
|
2318
|
+
className: X.list,
|
|
2319
|
+
onMouseLeave: () => R(null),
|
|
2334
2320
|
onBlur: (e) => {
|
|
2335
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
2321
|
+
e.currentTarget.contains(e.relatedTarget) || R(null);
|
|
2336
2322
|
},
|
|
2337
|
-
children: [
|
|
2323
|
+
children: [L && le.length > 0 && /* @__PURE__ */ v("span", {
|
|
2338
2324
|
"aria-hidden": "true",
|
|
2339
|
-
className: `${
|
|
2325
|
+
className: `${X.highlight} ${L.instant ? X.highlightInstant : ""}`,
|
|
2340
2326
|
style: {
|
|
2341
|
-
transform: `translateY(${
|
|
2342
|
-
height:
|
|
2327
|
+
transform: `translateY(${L.top}px)`,
|
|
2328
|
+
height: L.height
|
|
2343
2329
|
}
|
|
2344
|
-
}),
|
|
2345
|
-
className:
|
|
2330
|
+
}), le.length === 0 ? /* @__PURE__ */ v("div", {
|
|
2331
|
+
className: X.noResults,
|
|
2346
2332
|
role: "presentation",
|
|
2347
2333
|
children: S
|
|
2348
|
-
}) :
|
|
2334
|
+
}) : le.map((e, n) => /* @__PURE__ */ v(qt, {
|
|
2349
2335
|
style: { "--i": Math.min(n, 8) },
|
|
2350
2336
|
"data-value": e.value,
|
|
2351
2337
|
role: "option",
|
|
2352
|
-
"aria-selected": A ?
|
|
2338
|
+
"aria-selected": A ? se.includes(e.value) : e.value === V,
|
|
2353
2339
|
size: t === "pill" ? "sm" : c,
|
|
2354
2340
|
icon: e.icon,
|
|
2355
|
-
leading: A ? /* @__PURE__ */ v(
|
|
2356
|
-
checked:
|
|
2341
|
+
leading: A ? /* @__PURE__ */ v(Je, {
|
|
2342
|
+
checked: se.includes(e.value),
|
|
2357
2343
|
disabled: e.disabled
|
|
2358
2344
|
}) : void 0,
|
|
2359
|
-
selected: !A && e.value ===
|
|
2345
|
+
selected: !A && e.value === V,
|
|
2360
2346
|
disabled: e.disabled,
|
|
2361
|
-
onClick: () =>
|
|
2362
|
-
onPointerEnter: (t) => t.pointerType === "mouse" && !e.disabled &&
|
|
2363
|
-
onFocus: (e) =>
|
|
2364
|
-
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),
|
|
2365
2351
|
children: e.label
|
|
2366
2352
|
}, e.value))]
|
|
2367
2353
|
})]
|
|
2368
2354
|
})
|
|
2369
2355
|
}),
|
|
2370
|
-
|
|
2371
|
-
className:
|
|
2356
|
+
G && o ? /* @__PURE__ */ v("span", {
|
|
2357
|
+
className: X.errorText,
|
|
2372
2358
|
children: o
|
|
2373
|
-
}) :
|
|
2374
|
-
className:
|
|
2359
|
+
}) : G && a ? /* @__PURE__ */ v("span", {
|
|
2360
|
+
className: X.helperText,
|
|
2375
2361
|
children: a
|
|
2376
2362
|
}) : null
|
|
2377
2363
|
]
|
|
2378
2364
|
});
|
|
2379
2365
|
}
|
|
2380
|
-
var
|
|
2366
|
+
var Qt = {
|
|
2381
2367
|
item: "_item_iayt7_2",
|
|
2382
2368
|
active: "_active_iayt7_39",
|
|
2383
2369
|
inList: "_inList_iayt7_44",
|
|
@@ -2388,41 +2374,41 @@ var tn = {
|
|
|
2388
2374
|
glide: "_glide_iayt7_119",
|
|
2389
2375
|
glideAnimated: "_glideAnimated_iayt7_132",
|
|
2390
2376
|
glideVisible: "_glideVisible_iayt7_138"
|
|
2391
|
-
},
|
|
2392
|
-
function
|
|
2393
|
-
let l = c(
|
|
2394
|
-
|
|
2395
|
-
n &&
|
|
2396
|
-
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,
|
|
2397
2383
|
a
|
|
2398
2384
|
].filter(Boolean).join(" ");
|
|
2399
2385
|
return /* @__PURE__ */ y(u, {
|
|
2400
2386
|
...d ? { type: "button" } : {},
|
|
2401
2387
|
...i === void 0 ? {} : { href: i },
|
|
2402
|
-
[
|
|
2388
|
+
[$t]: "",
|
|
2403
2389
|
"aria-current": n ? "page" : void 0,
|
|
2404
2390
|
className: f,
|
|
2405
2391
|
...s,
|
|
2406
2392
|
children: [
|
|
2407
2393
|
e && /* @__PURE__ */ v("span", {
|
|
2408
|
-
className:
|
|
2394
|
+
className: Qt.icon,
|
|
2409
2395
|
"aria-hidden": !0,
|
|
2410
2396
|
children: e
|
|
2411
2397
|
}),
|
|
2412
2398
|
/* @__PURE__ */ v("span", {
|
|
2413
|
-
className:
|
|
2399
|
+
className: Qt.label,
|
|
2414
2400
|
children: o
|
|
2415
2401
|
}),
|
|
2416
2402
|
t && /* @__PURE__ */ v("span", {
|
|
2417
|
-
className:
|
|
2403
|
+
className: Qt.trailing,
|
|
2418
2404
|
children: t
|
|
2419
2405
|
})
|
|
2420
2406
|
]
|
|
2421
2407
|
});
|
|
2422
2408
|
}
|
|
2423
|
-
function
|
|
2409
|
+
function nn({ children: e, className: t, ...n }) {
|
|
2424
2410
|
let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
|
|
2425
|
-
let t = r.current, n = e instanceof Element ? e.closest(`[${
|
|
2411
|
+
let t = r.current, n = e instanceof Element ? e.closest(`[${$t}]`) : null;
|
|
2426
2412
|
if (!t || !n || !t.contains(n)) return;
|
|
2427
2413
|
if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
|
|
2428
2414
|
c(!1);
|
|
@@ -2436,11 +2422,11 @@ function on({ children: e, className: t, ...n }) {
|
|
|
2436
2422
|
}, [o]);
|
|
2437
2423
|
return d(() => {
|
|
2438
2424
|
o || u(!1);
|
|
2439
|
-
}, [o]), /* @__PURE__ */ v(
|
|
2425
|
+
}, [o]), /* @__PURE__ */ v(en.Provider, {
|
|
2440
2426
|
value: !0,
|
|
2441
2427
|
children: /* @__PURE__ */ y("div", {
|
|
2442
2428
|
ref: r,
|
|
2443
|
-
className: [
|
|
2429
|
+
className: [Qt.list, t].filter(Boolean).join(" "),
|
|
2444
2430
|
onPointerOver: (e) => e.pointerType === "mouse" && f(e.target),
|
|
2445
2431
|
onMouseLeave: () => c(!1),
|
|
2446
2432
|
onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
|
|
@@ -2449,9 +2435,9 @@ function on({ children: e, className: t, ...n }) {
|
|
|
2449
2435
|
children: [/* @__PURE__ */ v("span", {
|
|
2450
2436
|
"aria-hidden": !0,
|
|
2451
2437
|
className: [
|
|
2452
|
-
|
|
2453
|
-
l &&
|
|
2454
|
-
o &&
|
|
2438
|
+
Qt.glide,
|
|
2439
|
+
l && Qt.glideAnimated,
|
|
2440
|
+
o && Qt.glideVisible
|
|
2455
2441
|
].filter(Boolean).join(" "),
|
|
2456
2442
|
style: i ? {
|
|
2457
2443
|
translate: `0 ${i.top}px`,
|
|
@@ -2463,7 +2449,7 @@ function on({ children: e, className: t, ...n }) {
|
|
|
2463
2449
|
}
|
|
2464
2450
|
//#endregion
|
|
2465
2451
|
//#region src/components/Logo.tsx
|
|
2466
|
-
function
|
|
2452
|
+
function rn({ size: e = 40, "aria-label": t, ...n }) {
|
|
2467
2453
|
return /* @__PURE__ */ y("svg", {
|
|
2468
2454
|
width: e,
|
|
2469
2455
|
height: e,
|
|
@@ -2484,172 +2470,7 @@ function sn({ size: e = 40, "aria-label": t, ...n }) {
|
|
|
2484
2470
|
})]
|
|
2485
2471
|
});
|
|
2486
2472
|
}
|
|
2487
|
-
var
|
|
2488
|
-
root: "_root_17m4v_1",
|
|
2489
|
-
top: "_top_17m4v_13",
|
|
2490
|
-
header: "_header_17m4v_18",
|
|
2491
|
-
switcher: "_switcher_17m4v_30",
|
|
2492
|
-
flush: "_flush_17m4v_44",
|
|
2493
|
-
nav: "_nav_17m4v_65",
|
|
2494
|
-
footer: "_footer_17m4v_77",
|
|
2495
|
-
footerRow: "_footerRow_17m4v_82",
|
|
2496
|
-
footerText: "_footerText_17m4v_88",
|
|
2497
|
-
title: "_title_17m4v_92",
|
|
2498
|
-
subtitle: "_subtitle_17m4v_101",
|
|
2499
|
-
action: "_action_17m4v_104",
|
|
2500
|
-
lang: "_lang_17m4v_113",
|
|
2501
|
-
langItem: "_langItem_17m4v_121",
|
|
2502
|
-
langSeparator: "_langSeparator_17m4v_126",
|
|
2503
|
-
langCurrent: "_langCurrent_17m4v_130",
|
|
2504
|
-
langButton: "_langButton_17m4v_133"
|
|
2505
|
-
};
|
|
2506
|
-
//#endregion
|
|
2507
|
-
//#region src/components/Sidebar.tsx
|
|
2508
|
-
function cn({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
|
|
2509
|
-
return /* @__PURE__ */ y("aside", {
|
|
2510
|
-
className: [X.root, o].filter(Boolean).join(" "),
|
|
2511
|
-
children: [
|
|
2512
|
-
/* @__PURE__ */ y("div", {
|
|
2513
|
-
className: [X.top, i === "flush" && X.flush].filter(Boolean).join(" "),
|
|
2514
|
-
children: [/* @__PURE__ */ v("div", {
|
|
2515
|
-
className: X.header,
|
|
2516
|
-
children: e
|
|
2517
|
-
}), t && /* @__PURE__ */ v("div", {
|
|
2518
|
-
className: X.switcher,
|
|
2519
|
-
children: t
|
|
2520
|
-
})]
|
|
2521
|
-
}),
|
|
2522
|
-
/* @__PURE__ */ v("nav", {
|
|
2523
|
-
"aria-label": a,
|
|
2524
|
-
className: X.nav,
|
|
2525
|
-
children: n
|
|
2526
|
-
}),
|
|
2527
|
-
r && /* @__PURE__ */ v("div", {
|
|
2528
|
-
className: X.footer,
|
|
2529
|
-
children: r
|
|
2530
|
-
})
|
|
2531
|
-
]
|
|
2532
|
-
});
|
|
2533
|
-
}
|
|
2534
|
-
function ln({ title: e, subtitle: t, action: n }) {
|
|
2535
|
-
return /* @__PURE__ */ y("div", {
|
|
2536
|
-
className: X.footerRow,
|
|
2537
|
-
children: [/* @__PURE__ */ y("div", {
|
|
2538
|
-
className: X.footerText,
|
|
2539
|
-
children: [/* @__PURE__ */ v("div", {
|
|
2540
|
-
className: X.title,
|
|
2541
|
-
children: e
|
|
2542
|
-
}), t && /* @__PURE__ */ v("div", {
|
|
2543
|
-
className: X.subtitle,
|
|
2544
|
-
children: t
|
|
2545
|
-
})]
|
|
2546
|
-
}), n && /* @__PURE__ */ v("div", {
|
|
2547
|
-
className: X.action,
|
|
2548
|
-
children: n
|
|
2549
|
-
})]
|
|
2550
|
-
});
|
|
2551
|
-
}
|
|
2552
|
-
function un({ items: e, value: t, onChange: n, "aria-label": r }) {
|
|
2553
|
-
return /* @__PURE__ */ v("div", {
|
|
2554
|
-
role: "group",
|
|
2555
|
-
"aria-label": r,
|
|
2556
|
-
className: X.lang,
|
|
2557
|
-
children: e.map((e, r) => /* @__PURE__ */ y("span", {
|
|
2558
|
-
className: X.langItem,
|
|
2559
|
-
children: [r > 0 && /* @__PURE__ */ v("span", {
|
|
2560
|
-
"aria-hidden": !0,
|
|
2561
|
-
className: X.langSeparator,
|
|
2562
|
-
children: "|"
|
|
2563
|
-
}), e.value === t ? /* @__PURE__ */ v("span", {
|
|
2564
|
-
lang: e.lang,
|
|
2565
|
-
"aria-current": "true",
|
|
2566
|
-
className: X.langCurrent,
|
|
2567
|
-
children: e.label
|
|
2568
|
-
}) : /* @__PURE__ */ v("button", {
|
|
2569
|
-
type: "button",
|
|
2570
|
-
lang: e.lang,
|
|
2571
|
-
className: X.langButton,
|
|
2572
|
-
onClick: () => n(e.value),
|
|
2573
|
-
children: e.label
|
|
2574
|
-
})]
|
|
2575
|
-
}, e.value))
|
|
2576
|
-
});
|
|
2577
|
-
}
|
|
2578
|
-
var dn = { highlight: "_highlight_1pz29_1" };
|
|
2579
|
-
//#endregion
|
|
2580
|
-
//#region src/components/HighlightText.tsx
|
|
2581
|
-
function fn(e) {
|
|
2582
|
-
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2583
|
-
}
|
|
2584
|
-
function pn({ text: e, query: n }) {
|
|
2585
|
-
if (!n) return /* @__PURE__ */ v(_, { children: e });
|
|
2586
|
-
let r = e.split(RegExp(`(${fn(n)})`, "ig"));
|
|
2587
|
-
return /* @__PURE__ */ v(_, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ v("mark", {
|
|
2588
|
-
className: dn.highlight,
|
|
2589
|
-
children: e
|
|
2590
|
-
}, r) : /* @__PURE__ */ v(t, { children: e }, r)) });
|
|
2591
|
-
}
|
|
2592
|
-
var mn = {
|
|
2593
|
-
group: "_group_jslsh_1",
|
|
2594
|
-
btn: "_btn_jslsh_4",
|
|
2595
|
-
caret: "_caret_jslsh_31",
|
|
2596
|
-
label: "_label_jslsh_40",
|
|
2597
|
-
badge: "_badge_jslsh_43",
|
|
2598
|
-
value: "_value_jslsh_58",
|
|
2599
|
-
panel: "_panel_jslsh_62",
|
|
2600
|
-
open: "_open_jslsh_78",
|
|
2601
|
-
panelRight: "_panelRight_jslsh_81",
|
|
2602
|
-
panelWide: "_panelWide_jslsh_85",
|
|
2603
|
-
sectionHeader: "_sectionHeader_jslsh_89",
|
|
2604
|
-
sectionLabel: "_sectionLabel_jslsh_96",
|
|
2605
|
-
allToggle: "_allToggle_jslsh_103",
|
|
2606
|
-
divider: "_divider_jslsh_123",
|
|
2607
|
-
option: "_option_jslsh_128",
|
|
2608
|
-
search: "_search_jslsh_142",
|
|
2609
|
-
optionsList: "_optionsList_jslsh_158",
|
|
2610
|
-
empty: "_empty_jslsh_161"
|
|
2611
|
-
};
|
|
2612
|
-
//#endregion
|
|
2613
|
-
//#region src/components/FilterSection.tsx
|
|
2614
|
-
function hn({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
|
|
2615
|
-
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;
|
|
2616
|
-
return /* @__PURE__ */ y("div", { children: [
|
|
2617
|
-
/* @__PURE__ */ y("div", {
|
|
2618
|
-
className: mn.sectionHeader,
|
|
2619
|
-
children: [/* @__PURE__ */ v("div", {
|
|
2620
|
-
className: mn.sectionLabel,
|
|
2621
|
-
children: e
|
|
2622
|
-
}), a && /* @__PURE__ */ v("button", {
|
|
2623
|
-
type: "button",
|
|
2624
|
-
className: mn.allToggle,
|
|
2625
|
-
onClick: () => a(d ? [] : t),
|
|
2626
|
-
children: d ? "Deselect all" : "Select all"
|
|
2627
|
-
})]
|
|
2628
|
-
}),
|
|
2629
|
-
o && /* @__PURE__ */ v("input", {
|
|
2630
|
-
type: "text",
|
|
2631
|
-
className: mn.search,
|
|
2632
|
-
placeholder: `Search ${e.toLowerCase()}…`,
|
|
2633
|
-
autoComplete: "off",
|
|
2634
|
-
value: s,
|
|
2635
|
-
onClick: (e) => e.stopPropagation(),
|
|
2636
|
-
onChange: (e) => c(e.target.value)
|
|
2637
|
-
}),
|
|
2638
|
-
/* @__PURE__ */ y("div", {
|
|
2639
|
-
className: mn.optionsList,
|
|
2640
|
-
children: [u.length === 0 && /* @__PURE__ */ v("div", {
|
|
2641
|
-
className: mn.empty,
|
|
2642
|
-
children: "No match"
|
|
2643
|
-
}), u.map((e) => /* @__PURE__ */ v(Xe, {
|
|
2644
|
-
className: mn.option,
|
|
2645
|
-
checked: r.has(e),
|
|
2646
|
-
onChange: () => i(e),
|
|
2647
|
-
label: n(e)
|
|
2648
|
-
}, e))]
|
|
2649
|
-
})
|
|
2650
|
-
] });
|
|
2651
|
-
}
|
|
2652
|
-
var gn = {
|
|
2473
|
+
var an = {
|
|
2653
2474
|
line: "_line_19p3r_1",
|
|
2654
2475
|
box: "_box_19p3r_2",
|
|
2655
2476
|
indicator: "_indicator_19p3r_9",
|
|
@@ -2665,7 +2486,7 @@ var gn = {
|
|
|
2665
2486
|
};
|
|
2666
2487
|
//#endregion
|
|
2667
2488
|
//#region src/components/Tabs.tsx
|
|
2668
|
-
function
|
|
2489
|
+
function on({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
|
|
2669
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");
|
|
2670
2491
|
d(() => {
|
|
2671
2492
|
let e = c.current.get(t);
|
|
@@ -2704,18 +2525,18 @@ function _n({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2704
2525
|
ref: s,
|
|
2705
2526
|
role: "tablist",
|
|
2706
2527
|
className: [
|
|
2707
|
-
|
|
2708
|
-
r === "box" && i === "sm" &&
|
|
2709
|
-
r === "box" && i === "lg" &&
|
|
2528
|
+
an[r],
|
|
2529
|
+
r === "box" && i === "sm" && an.sm,
|
|
2530
|
+
r === "box" && i === "lg" && an.lg
|
|
2710
2531
|
].filter(Boolean).join(" "),
|
|
2711
2532
|
onKeyDown: b,
|
|
2712
2533
|
...a,
|
|
2713
2534
|
children: [u && /* @__PURE__ */ v("span", {
|
|
2714
2535
|
"aria-hidden": !0,
|
|
2715
2536
|
className: [
|
|
2716
|
-
|
|
2717
|
-
r === "line" ?
|
|
2718
|
-
h === "settling" &&
|
|
2537
|
+
an.indicator,
|
|
2538
|
+
r === "line" ? an.indicatorLine : an.indicatorBox,
|
|
2539
|
+
h === "settling" && an.settling
|
|
2719
2540
|
].filter(Boolean).join(" "),
|
|
2720
2541
|
onTransitionEnd: _,
|
|
2721
2542
|
style: {
|
|
@@ -2736,34 +2557,34 @@ function _n({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
|
|
|
2736
2557
|
disabled: e.disabled,
|
|
2737
2558
|
tabIndex: r ? 0 : -1,
|
|
2738
2559
|
className: [
|
|
2739
|
-
|
|
2740
|
-
r &&
|
|
2741
|
-
i &&
|
|
2560
|
+
an.tab,
|
|
2561
|
+
r && an.selected,
|
|
2562
|
+
i && an.iconOnly
|
|
2742
2563
|
].filter(Boolean).join(" "),
|
|
2743
2564
|
onClick: () => !e.disabled && n(e.value),
|
|
2744
2565
|
children: [e.icon && /* @__PURE__ */ v("span", {
|
|
2745
|
-
className:
|
|
2566
|
+
className: an.icon,
|
|
2746
2567
|
children: e.icon
|
|
2747
2568
|
}), e.label]
|
|
2748
2569
|
}, e.value);
|
|
2749
2570
|
})]
|
|
2750
2571
|
});
|
|
2751
2572
|
}
|
|
2752
|
-
var
|
|
2573
|
+
var sn = {
|
|
2753
2574
|
root: "_root_16e39_1",
|
|
2754
2575
|
label: "_label_16e39_7"
|
|
2755
2576
|
};
|
|
2756
2577
|
//#endregion
|
|
2757
2578
|
//#region src/components/Toggle.tsx
|
|
2758
|
-
function
|
|
2579
|
+
function cn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
2759
2580
|
let a = u();
|
|
2760
2581
|
return /* @__PURE__ */ y("div", {
|
|
2761
|
-
className:
|
|
2582
|
+
className: sn.root,
|
|
2762
2583
|
children: [r && /* @__PURE__ */ v("span", {
|
|
2763
2584
|
id: a,
|
|
2764
|
-
className:
|
|
2585
|
+
className: sn.label,
|
|
2765
2586
|
children: r
|
|
2766
|
-
}), /* @__PURE__ */ v(
|
|
2587
|
+
}), /* @__PURE__ */ v(on, {
|
|
2767
2588
|
items: e,
|
|
2768
2589
|
value: t,
|
|
2769
2590
|
onChange: n,
|
|
@@ -2774,7 +2595,154 @@ function yn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
|
|
|
2774
2595
|
})]
|
|
2775
2596
|
});
|
|
2776
2597
|
}
|
|
2777
|
-
var
|
|
2598
|
+
var ln = {
|
|
2599
|
+
root: "_root_bj1ow_1",
|
|
2600
|
+
top: "_top_bj1ow_13",
|
|
2601
|
+
header: "_header_bj1ow_18",
|
|
2602
|
+
switcher: "_switcher_bj1ow_30",
|
|
2603
|
+
nav: "_nav_bj1ow_61",
|
|
2604
|
+
footer: "_footer_bj1ow_73",
|
|
2605
|
+
footerRow: "_footerRow_bj1ow_78",
|
|
2606
|
+
title: "_title_bj1ow_84",
|
|
2607
|
+
footerControls: "_footerControls_bj1ow_93",
|
|
2608
|
+
subtitle: "_subtitle_bj1ow_98",
|
|
2609
|
+
action: "_action_bj1ow_102"
|
|
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 = {
|
|
2778
2746
|
spinner: "_spinner_9jjxr_3",
|
|
2779
2747
|
inner: "_inner_9jjxr_11",
|
|
2780
2748
|
outer: "_outer_9jjxr_12",
|
|
@@ -2785,10 +2753,10 @@ var bn = {
|
|
|
2785
2753
|
};
|
|
2786
2754
|
//#endregion
|
|
2787
2755
|
//#region src/components/Spinner.tsx
|
|
2788
|
-
function
|
|
2756
|
+
function yn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
|
|
2789
2757
|
let a = [
|
|
2790
|
-
|
|
2791
|
-
|
|
2758
|
+
vn.spinner,
|
|
2759
|
+
vn[e],
|
|
2792
2760
|
r
|
|
2793
2761
|
].filter(Boolean).join(" ");
|
|
2794
2762
|
return /* @__PURE__ */ y("div", {
|
|
@@ -2801,7 +2769,7 @@ function xn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2801
2769
|
},
|
|
2802
2770
|
"data-testid": i,
|
|
2803
2771
|
children: [/* @__PURE__ */ v("svg", {
|
|
2804
|
-
className:
|
|
2772
|
+
className: vn.inner,
|
|
2805
2773
|
width: t,
|
|
2806
2774
|
height: t,
|
|
2807
2775
|
viewBox: "0 0 64 64",
|
|
@@ -2809,7 +2777,7 @@ function xn({ variant: e = "default", size: t = 64, label: n = "Loading", classN
|
|
|
2809
2777
|
"aria-hidden": "true",
|
|
2810
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" })
|
|
2811
2779
|
}), /* @__PURE__ */ v("svg", {
|
|
2812
|
-
className:
|
|
2780
|
+
className: vn.outer,
|
|
2813
2781
|
width: t,
|
|
2814
2782
|
height: t,
|
|
2815
2783
|
viewBox: "0 0 64 64",
|
|
@@ -2841,14 +2809,14 @@ var Z = {
|
|
|
2841
2809
|
sheet: "_sheet_3vs6a_206",
|
|
2842
2810
|
fullscreen: "_fullscreen_3vs6a_212",
|
|
2843
2811
|
instant: "_instant_3vs6a_222"
|
|
2844
|
-
},
|
|
2845
|
-
function
|
|
2846
|
-
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);
|
|
2847
2815
|
if (!t) throw Error(`${e} must be rendered inside <Modal>`);
|
|
2848
2816
|
return t;
|
|
2849
2817
|
}
|
|
2850
|
-
var
|
|
2851
|
-
function
|
|
2818
|
+
var En = [];
|
|
2819
|
+
function Dn(e) {
|
|
2852
2820
|
let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
|
|
2853
2821
|
return l(() => {
|
|
2854
2822
|
let t = window.matchMedia(e), r = () => n(t.matches);
|
|
@@ -2856,114 +2824,114 @@ function kn(e) {
|
|
|
2856
2824
|
}, [e]), t;
|
|
2857
2825
|
}
|
|
2858
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 }) {
|
|
2859
|
-
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 =
|
|
2860
|
-
|
|
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(() => {
|
|
2861
2829
|
if (e) {
|
|
2862
|
-
if (
|
|
2863
|
-
if (
|
|
2830
|
+
if (I.current) return;
|
|
2831
|
+
if (F.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), L.current && o) {
|
|
2864
2832
|
k(!0);
|
|
2865
2833
|
return;
|
|
2866
2834
|
}
|
|
2867
2835
|
let e = requestAnimationFrame(() => k(!0));
|
|
2868
2836
|
return () => cancelAnimationFrame(e);
|
|
2869
2837
|
}
|
|
2870
|
-
if (
|
|
2871
|
-
let t = setTimeout(() => D(!1),
|
|
2838
|
+
if (I.current = !1, k(!1), !E) return;
|
|
2839
|
+
let t = setTimeout(() => D(!1), N ? 0 : bn);
|
|
2872
2840
|
return () => clearTimeout(t);
|
|
2873
2841
|
}, [e]), l(() => {
|
|
2874
|
-
!E &&
|
|
2842
|
+
!E && F.current && (F.current.focus?.(), F.current = null);
|
|
2875
2843
|
}, [E]);
|
|
2876
|
-
let
|
|
2877
|
-
if (!a ||
|
|
2878
|
-
|
|
2879
|
-
let e =
|
|
2880
|
-
window.setTimeout(() =>
|
|
2881
|
-
}, [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]);
|
|
2882
2850
|
l(() => {
|
|
2883
2851
|
if (!E) return;
|
|
2884
|
-
let e =
|
|
2885
|
-
d &&
|
|
2852
|
+
let e = te.current;
|
|
2853
|
+
d && En.push(e);
|
|
2886
2854
|
let t = (t) => {
|
|
2887
|
-
t.key === "Escape" &&
|
|
2855
|
+
t.key === "Escape" && En[En.length - 1] === e && (t.preventDefault(), z());
|
|
2888
2856
|
};
|
|
2889
2857
|
document.addEventListener("keydown", t);
|
|
2890
2858
|
let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
|
|
2891
|
-
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 }), () => {
|
|
2892
2860
|
document.removeEventListener("keydown", t);
|
|
2893
|
-
let a =
|
|
2894
|
-
a !== -1 &&
|
|
2861
|
+
let a = En.indexOf(e);
|
|
2862
|
+
a !== -1 && En.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
|
|
2895
2863
|
};
|
|
2896
2864
|
}, [
|
|
2897
2865
|
E,
|
|
2898
2866
|
d,
|
|
2899
|
-
|
|
2867
|
+
z
|
|
2900
2868
|
]);
|
|
2901
|
-
let
|
|
2902
|
-
if (e.key !== "Tab" || !
|
|
2903
|
-
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));
|
|
2904
2872
|
if (t.length === 0) {
|
|
2905
2873
|
e.preventDefault();
|
|
2906
2874
|
return;
|
|
2907
2875
|
}
|
|
2908
2876
|
let n = t[0], r = t[t.length - 1], i = document.activeElement;
|
|
2909
|
-
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());
|
|
2910
2878
|
};
|
|
2911
2879
|
if (!w || !E) return null;
|
|
2912
|
-
let
|
|
2880
|
+
let ne = document.querySelector(c) ?? document.body, re = [
|
|
2913
2881
|
Z.modal,
|
|
2914
2882
|
Z[n],
|
|
2915
2883
|
Z[r],
|
|
2916
2884
|
O && Z.visible,
|
|
2917
2885
|
o && Z.instant,
|
|
2918
2886
|
y
|
|
2919
|
-
].filter(Boolean).join(" "),
|
|
2887
|
+
].filter(Boolean).join(" "), ie = {
|
|
2920
2888
|
role: f,
|
|
2921
2889
|
"aria-modal": !0,
|
|
2922
2890
|
"aria-labelledby": h ?? S,
|
|
2923
2891
|
"aria-describedby": A ? C : void 0,
|
|
2924
2892
|
tabIndex: -1,
|
|
2925
|
-
className:
|
|
2893
|
+
className: re,
|
|
2926
2894
|
"data-testid": _,
|
|
2927
|
-
onKeyDown:
|
|
2928
|
-
},
|
|
2895
|
+
onKeyDown: B
|
|
2896
|
+
}, ae = {
|
|
2929
2897
|
layout: n,
|
|
2930
2898
|
titleId: h ?? S,
|
|
2931
2899
|
descriptionId: C,
|
|
2932
2900
|
isMobile: M,
|
|
2933
2901
|
dismissible: a,
|
|
2934
2902
|
setHasDescription: j,
|
|
2935
|
-
requestClose:
|
|
2903
|
+
requestClose: z
|
|
2936
2904
|
};
|
|
2937
|
-
return g(/* @__PURE__ */ v(
|
|
2938
|
-
value:
|
|
2905
|
+
return g(/* @__PURE__ */ v(wn.Provider, {
|
|
2906
|
+
value: ae,
|
|
2939
2907
|
children: /* @__PURE__ */ v("div", {
|
|
2940
2908
|
className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
|
|
2941
2909
|
onPointerDown: (e) => {
|
|
2942
|
-
|
|
2910
|
+
ee.current = e.target !== e.currentTarget;
|
|
2943
2911
|
},
|
|
2944
2912
|
onClick: (e) => {
|
|
2945
|
-
e.target === e.currentTarget && !
|
|
2913
|
+
e.target === e.currentTarget && !ee.current && z(), ee.current = !1;
|
|
2946
2914
|
},
|
|
2947
2915
|
children: i ? /* @__PURE__ */ v("form", {
|
|
2948
|
-
ref:
|
|
2916
|
+
ref: P,
|
|
2949
2917
|
onSubmit: i,
|
|
2950
|
-
...
|
|
2918
|
+
...ie,
|
|
2951
2919
|
children: b
|
|
2952
2920
|
}) : /* @__PURE__ */ v("div", {
|
|
2953
|
-
ref:
|
|
2954
|
-
...
|
|
2921
|
+
ref: P,
|
|
2922
|
+
...ie,
|
|
2955
2923
|
children: b
|
|
2956
2924
|
})
|
|
2957
2925
|
})
|
|
2958
|
-
}),
|
|
2926
|
+
}), ne);
|
|
2959
2927
|
}
|
|
2960
|
-
function
|
|
2961
|
-
let { requestClose: n, dismissible: r } =
|
|
2928
|
+
function On({ children: e, onClose: t }) {
|
|
2929
|
+
let { requestClose: n, dismissible: r } = Tn("Modal.Cover");
|
|
2962
2930
|
return /* @__PURE__ */ y("div", {
|
|
2963
2931
|
className: Z.cover,
|
|
2964
2932
|
children: [e, t && /* @__PURE__ */ v(k, {
|
|
2965
2933
|
variant: "tertiary",
|
|
2966
|
-
leadingIcon: /* @__PURE__ */ v(
|
|
2934
|
+
leadingIcon: /* @__PURE__ */ v(Ae, {}),
|
|
2967
2935
|
"aria-label": "Close",
|
|
2968
2936
|
"data-testid": "modal-close",
|
|
2969
2937
|
className: Z.closeButton,
|
|
@@ -2974,7 +2942,7 @@ function An({ children: e, onClose: t }) {
|
|
|
2974
2942
|
})]
|
|
2975
2943
|
});
|
|
2976
2944
|
}
|
|
2977
|
-
function
|
|
2945
|
+
function kn({ children: t }) {
|
|
2978
2946
|
let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
|
|
2979
2947
|
return /* @__PURE__ */ y("div", {
|
|
2980
2948
|
className: Z.message,
|
|
@@ -2984,52 +2952,52 @@ function jn({ children: t }) {
|
|
|
2984
2952
|
})]
|
|
2985
2953
|
});
|
|
2986
2954
|
}
|
|
2987
|
-
function
|
|
2955
|
+
function An({ children: e, tone: t = "neutral" }) {
|
|
2988
2956
|
return /* @__PURE__ */ v("div", {
|
|
2989
2957
|
className: `${Z.icon} ${Z[`tone-${t}`]}`,
|
|
2990
2958
|
"aria-hidden": "true",
|
|
2991
2959
|
children: e
|
|
2992
2960
|
});
|
|
2993
2961
|
}
|
|
2994
|
-
function
|
|
2995
|
-
let { titleId: n } =
|
|
2962
|
+
function jn({ children: e, id: t }) {
|
|
2963
|
+
let { titleId: n } = Tn("Modal.Title");
|
|
2996
2964
|
return /* @__PURE__ */ v("h2", {
|
|
2997
2965
|
id: t ?? n,
|
|
2998
2966
|
className: Z.title,
|
|
2999
2967
|
children: e
|
|
3000
2968
|
});
|
|
3001
2969
|
}
|
|
3002
|
-
function
|
|
3003
|
-
let { descriptionId: t, setHasDescription: n } =
|
|
2970
|
+
function Mn({ children: e }) {
|
|
2971
|
+
let { descriptionId: t, setHasDescription: n } = Tn("Modal.Description");
|
|
3004
2972
|
return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ v("p", {
|
|
3005
2973
|
id: t,
|
|
3006
2974
|
className: Z.description,
|
|
3007
2975
|
children: e
|
|
3008
2976
|
});
|
|
3009
2977
|
}
|
|
3010
|
-
function
|
|
2978
|
+
function Nn({ children: e }) {
|
|
3011
2979
|
return /* @__PURE__ */ v("p", {
|
|
3012
2980
|
className: Z.hint,
|
|
3013
2981
|
children: e
|
|
3014
2982
|
});
|
|
3015
2983
|
}
|
|
3016
|
-
function
|
|
2984
|
+
function Pn({ children: e }) {
|
|
3017
2985
|
return /* @__PURE__ */ v("div", {
|
|
3018
2986
|
className: Z.body,
|
|
3019
2987
|
children: e
|
|
3020
2988
|
});
|
|
3021
2989
|
}
|
|
3022
|
-
function
|
|
3023
|
-
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;
|
|
3024
2992
|
return /* @__PURE__ */ v("div", {
|
|
3025
2993
|
className: Z.footer,
|
|
3026
2994
|
children: i
|
|
3027
2995
|
});
|
|
3028
2996
|
}
|
|
3029
|
-
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;
|
|
3030
2998
|
//#endregion
|
|
3031
2999
|
//#region src/components/ConfirmDialog.tsx
|
|
3032
|
-
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 }) {
|
|
3033
3001
|
let d = c === "dangerous";
|
|
3034
3002
|
return /* @__PURE__ */ y(Q, {
|
|
3035
3003
|
open: e,
|
|
@@ -3058,7 +3026,7 @@ function Rn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
|
|
|
3058
3026
|
})] })]
|
|
3059
3027
|
});
|
|
3060
3028
|
}
|
|
3061
|
-
var
|
|
3029
|
+
var Ln = {
|
|
3062
3030
|
root: "_root_rybn9_1",
|
|
3063
3031
|
success: "_success_rybn9_11",
|
|
3064
3032
|
warning: "_warning_rybn9_17",
|
|
@@ -3071,45 +3039,45 @@ var zn = {
|
|
|
3071
3039
|
};
|
|
3072
3040
|
//#endregion
|
|
3073
3041
|
//#region src/components/EmptyState.tsx
|
|
3074
|
-
function
|
|
3042
|
+
function Rn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
|
|
3075
3043
|
return /* @__PURE__ */ y("div", {
|
|
3076
|
-
className: `${
|
|
3044
|
+
className: `${Ln.root} ${e === "neutral" ? "" : Ln[e]}`,
|
|
3077
3045
|
...a,
|
|
3078
3046
|
children: [t != null && /* @__PURE__ */ v("div", {
|
|
3079
|
-
className:
|
|
3047
|
+
className: Ln.icon,
|
|
3080
3048
|
"aria-hidden": "true",
|
|
3081
3049
|
children: t
|
|
3082
3050
|
}), /* @__PURE__ */ y("div", {
|
|
3083
|
-
className:
|
|
3051
|
+
className: Ln.body,
|
|
3084
3052
|
children: [
|
|
3085
3053
|
/* @__PURE__ */ v("p", {
|
|
3086
|
-
className:
|
|
3054
|
+
className: Ln.title,
|
|
3087
3055
|
children: n
|
|
3088
3056
|
}),
|
|
3089
3057
|
r != null && /* @__PURE__ */ v("div", {
|
|
3090
|
-
className:
|
|
3058
|
+
className: Ln.text,
|
|
3091
3059
|
children: r
|
|
3092
3060
|
}),
|
|
3093
3061
|
i != null && /* @__PURE__ */ v("div", {
|
|
3094
|
-
className:
|
|
3062
|
+
className: Ln.action,
|
|
3095
3063
|
children: i
|
|
3096
3064
|
})
|
|
3097
3065
|
]
|
|
3098
3066
|
})]
|
|
3099
3067
|
});
|
|
3100
3068
|
}
|
|
3101
|
-
var
|
|
3102
|
-
function
|
|
3069
|
+
var zn = { photoPreview: "_photoPreview_1m76k_2" }, Bn = 180, Vn = 12, Hn = 8;
|
|
3070
|
+
function Un(e, t, n = Bn) {
|
|
3103
3071
|
let r = (e, t) => {
|
|
3104
|
-
let r = e +
|
|
3105
|
-
return Math.max(
|
|
3072
|
+
let r = e + Vn, i = r + n + Hn > t ? e - Vn - n : r;
|
|
3073
|
+
return Math.max(Hn, i);
|
|
3106
3074
|
};
|
|
3107
3075
|
return {
|
|
3108
3076
|
left: r(e, window.innerWidth),
|
|
3109
3077
|
top: r(t, window.innerHeight)
|
|
3110
3078
|
};
|
|
3111
3079
|
}
|
|
3112
|
-
function
|
|
3080
|
+
function Wn({ src: e, size: t = Bn, children: r }) {
|
|
3113
3081
|
let [i, a] = m(null), [o, s] = m(), c = i !== null;
|
|
3114
3082
|
if (l(() => {
|
|
3115
3083
|
if (!c) return;
|
|
@@ -3135,14 +3103,14 @@ function Kn({ src: e, size: t = Hn, children: r }) {
|
|
|
3135
3103
|
}
|
|
3136
3104
|
});
|
|
3137
3105
|
return /* @__PURE__ */ y(_, { children: [f, i && g(/* @__PURE__ */ v("img", {
|
|
3138
|
-
className:
|
|
3106
|
+
className: zn.photoPreview,
|
|
3139
3107
|
src: e,
|
|
3140
3108
|
alt: "",
|
|
3141
3109
|
"aria-hidden": "true",
|
|
3142
3110
|
style: {
|
|
3143
3111
|
width: t,
|
|
3144
3112
|
height: t,
|
|
3145
|
-
...
|
|
3113
|
+
...Un(i.x, i.y, t)
|
|
3146
3114
|
},
|
|
3147
3115
|
onError: () => {
|
|
3148
3116
|
s(e), a(null);
|
|
@@ -3150,57 +3118,56 @@ function Kn({ src: e, size: t = Hn, children: r }) {
|
|
|
3150
3118
|
}), document.body)] });
|
|
3151
3119
|
}
|
|
3152
3120
|
var $ = {
|
|
3153
|
-
root: "
|
|
3154
|
-
hasActions: "
|
|
3155
|
-
current: "
|
|
3156
|
-
interactive: "
|
|
3157
|
-
side: "
|
|
3158
|
-
thumb: "
|
|
3159
|
-
thumbImg: "
|
|
3160
|
-
tile: "
|
|
3161
|
-
icon: "
|
|
3162
|
-
tilePlay: "
|
|
3163
|
-
badge: "
|
|
3164
|
-
main: "
|
|
3165
|
-
columns: "
|
|
3166
|
-
info: "
|
|
3167
|
-
aside: "
|
|
3168
|
-
date: "
|
|
3169
|
-
label: "
|
|
3170
|
-
title: "
|
|
3171
|
-
workerName: "
|
|
3172
|
-
description: "
|
|
3173
|
-
meta: "
|
|
3174
|
-
comment: "
|
|
3175
|
-
worker: "
|
|
3176
|
-
workerRow: "
|
|
3177
|
-
photo: "
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
}, qn = {
|
|
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 = {
|
|
3183
3150
|
worker: "Worker:",
|
|
3184
3151
|
comment: "Comment:",
|
|
3185
3152
|
inaccessible: "Inaccessible",
|
|
3186
3153
|
archived: "Archived",
|
|
3187
|
-
unavailable: "
|
|
3154
|
+
unavailable: "Unavailable",
|
|
3188
3155
|
notReady: "Not ready",
|
|
3189
3156
|
new: "Unwatched"
|
|
3190
3157
|
};
|
|
3191
|
-
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 }) {
|
|
3192
3159
|
let C = {
|
|
3193
|
-
...
|
|
3160
|
+
...Gn,
|
|
3194
3161
|
...g
|
|
3195
3162
|
}, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!f, M = (e) => {
|
|
3196
3163
|
e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
|
|
3197
|
-
},
|
|
3164
|
+
}, N = [
|
|
3198
3165
|
$.root,
|
|
3199
3166
|
(j || p) && $.interactive,
|
|
3200
3167
|
d && $.current,
|
|
3201
3168
|
h != null && $.hasActions,
|
|
3202
3169
|
x
|
|
3203
|
-
].filter(Boolean).join(" "),
|
|
3170
|
+
].filter(Boolean).join(" "), P = j ? {
|
|
3204
3171
|
role: "button",
|
|
3205
3172
|
tabIndex: 0,
|
|
3206
3173
|
"aria-label": b ?? (l ? `Video ${l}` : "Video"),
|
|
@@ -3208,9 +3175,9 @@ function Jn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3208
3175
|
onKeyDown: M
|
|
3209
3176
|
} : { "aria-label": b };
|
|
3210
3177
|
return /* @__PURE__ */ y("div", {
|
|
3211
|
-
className:
|
|
3178
|
+
className: N,
|
|
3212
3179
|
"data-testid": S,
|
|
3213
|
-
...
|
|
3180
|
+
...P,
|
|
3214
3181
|
children: [
|
|
3215
3182
|
/* @__PURE__ */ y("div", {
|
|
3216
3183
|
className: $.side,
|
|
@@ -3227,12 +3194,12 @@ function Jn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3227
3194
|
}
|
|
3228
3195
|
}) : /* @__PURE__ */ v("div", {
|
|
3229
3196
|
className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
|
|
3230
|
-
children: t === "play" ? /* @__PURE__ */ v(
|
|
3197
|
+
children: t === "play" ? /* @__PURE__ */ v(Ee, {
|
|
3231
3198
|
size: 20,
|
|
3232
3199
|
"aria-hidden": "true"
|
|
3233
3200
|
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("span", {
|
|
3234
3201
|
className: $.icon,
|
|
3235
|
-
children: v(t === "archived" ?
|
|
3202
|
+
children: v(t === "archived" ? H : t === "unavailable" ? Se : t === "notReady" ? be : we, {
|
|
3236
3203
|
size: 12,
|
|
3237
3204
|
strokeWidth: 1,
|
|
3238
3205
|
"aria-hidden": "true"
|
|
@@ -3277,7 +3244,7 @@ function Jn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3277
3244
|
children: C.worker
|
|
3278
3245
|
}), /* @__PURE__ */ y("div", {
|
|
3279
3246
|
className: $.workerRow,
|
|
3280
|
-
children: [A ? /* @__PURE__ */ v(
|
|
3247
|
+
children: [A ? /* @__PURE__ */ v(Wn, {
|
|
3281
3248
|
src: k,
|
|
3282
3249
|
children: /* @__PURE__ */ v("img", {
|
|
3283
3250
|
className: $.photo,
|
|
@@ -3287,10 +3254,11 @@ function Jn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3287
3254
|
decoding: "async",
|
|
3288
3255
|
onError: () => D(k)
|
|
3289
3256
|
})
|
|
3290
|
-
}) : /* @__PURE__ */ v("
|
|
3291
|
-
className:
|
|
3292
|
-
|
|
3293
|
-
|
|
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"
|
|
3294
3262
|
}), /* @__PURE__ */ v("div", {
|
|
3295
3263
|
className: $.workerText,
|
|
3296
3264
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -3317,14 +3285,14 @@ function Jn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
|
|
|
3317
3285
|
]
|
|
3318
3286
|
});
|
|
3319
3287
|
}
|
|
3320
|
-
function
|
|
3288
|
+
function qn({ className: e, "data-testid": t }) {
|
|
3321
3289
|
return /* @__PURE__ */ y("div", {
|
|
3322
3290
|
className: `${$.root} ${e ?? ""}`,
|
|
3323
3291
|
"data-testid": t,
|
|
3324
3292
|
"aria-hidden": "true",
|
|
3325
3293
|
children: [/* @__PURE__ */ v("div", {
|
|
3326
3294
|
className: $.side,
|
|
3327
|
-
children: /* @__PURE__ */ v(
|
|
3295
|
+
children: /* @__PURE__ */ v(Ot, {
|
|
3328
3296
|
width: 72,
|
|
3329
3297
|
height: 48
|
|
3330
3298
|
})
|
|
@@ -3333,15 +3301,15 @@ function Yn({ className: e, "data-testid": t }) {
|
|
|
3333
3301
|
children: /* @__PURE__ */ y("div", {
|
|
3334
3302
|
className: $.info,
|
|
3335
3303
|
children: [
|
|
3336
|
-
/* @__PURE__ */ v(
|
|
3304
|
+
/* @__PURE__ */ v(Ot, {
|
|
3337
3305
|
variant: "text",
|
|
3338
3306
|
width: "40%"
|
|
3339
3307
|
}),
|
|
3340
|
-
/* @__PURE__ */ v(
|
|
3308
|
+
/* @__PURE__ */ v(Ot, {
|
|
3341
3309
|
variant: "text",
|
|
3342
3310
|
width: "65%"
|
|
3343
3311
|
}),
|
|
3344
|
-
/* @__PURE__ */ v(
|
|
3312
|
+
/* @__PURE__ */ v(Ot, {
|
|
3345
3313
|
variant: "text",
|
|
3346
3314
|
width: "90%"
|
|
3347
3315
|
})
|
|
@@ -3350,18 +3318,18 @@ function Yn({ className: e, "data-testid": t }) {
|
|
|
3350
3318
|
})]
|
|
3351
3319
|
});
|
|
3352
3320
|
}
|
|
3353
|
-
var
|
|
3321
|
+
var Jn = Object.assign(Kn, { Skeleton: qn });
|
|
3354
3322
|
//#endregion
|
|
3355
3323
|
//#region src/utils/format.ts
|
|
3356
|
-
function
|
|
3324
|
+
function Yn(e) {
|
|
3357
3325
|
let t = Math.floor(e / 60), n = e % 60;
|
|
3358
3326
|
return `${t}h:${String(n).padStart(2, "0")}m`;
|
|
3359
3327
|
}
|
|
3360
|
-
function
|
|
3328
|
+
function Xn(e, t) {
|
|
3361
3329
|
let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
|
|
3362
3330
|
return `${i(n)}:${i(r)}:${i(t)}`;
|
|
3363
3331
|
}
|
|
3364
3332
|
//#endregion
|
|
3365
|
-
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 };
|
|
3366
3334
|
|
|
3367
3335
|
//# sourceMappingURL=index.js.map
|