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/index.js CHANGED
@@ -213,12 +213,12 @@ var M = {
213
213
  };
214
214
  //#endregion
215
215
  //#region src/components/Badge.tsx
216
- function ee(...e) {
216
+ function N(...e) {
217
217
  return e.filter(Boolean).join(" ");
218
218
  }
219
- function N({ variant: e = "neutral", size: t = "base", children: n, iconLeft: r, iconRight: i, dot: a, ...o }) {
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: ee(M.badge, M[e], M[t]),
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 P = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
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 F(e, t, n = []) {
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: P(e),
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 te = (e) => {
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
- }, ne = (e) => {
267
- let t = te(e);
266
+ }, te = (e) => {
267
+ let t = ee(e);
268
268
  return t.charAt(0).toUpperCase() + t.slice(1);
269
- }, I = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), L = {
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 R(e) {
282
+ function z(e) {
283
283
  return e != null;
284
284
  }
285
- function z(e, t = {}) {
286
- let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? L.width, a = e.size ?? e.height ?? L.height, o = e.aliases?.filter((e) => typeof e == "string" && e.trim() !== "").map((e) => `lucide-${e}`) ?? [], s = [...e.name ? [`lucide-${e.name}`] : [], ...o], c = t.className?.split(" ").filter(Boolean) ?? [], l = t.includeDefaultClasses === !1 ? I(...c) : I("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? L["stroke-width"]) * Number(e.size ?? e.width ?? L.width) / Number(t.size ?? t.width ?? L.width) : t.strokeWidth ?? L["stroke-width"];
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(L).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
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 && R(t.size) && {
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 && R(t.width) && { [r("width")]: t.width },
297
- ..."height" in t && R(t.height) && { [r("height")]: t.height },
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 re(e, t = {}) {
320
- return z(e, {
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 ie = (e) => {
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
- }, ae = r({}), oe = () => c(ae), se = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
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 = "" } = oe() ?? {}, b = !!l || ie(f), [x, S, C = []] = re(d, {
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: I(y, c),
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 B(e, t = [], n = []) {
361
- let r = typeof e == "string" ? F(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(se, {
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 = ne(r.name)), o;
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 ce = {
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
- ce.node;
394
- var V = B(ce), H = {
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
- H.node;
445
- var le = B(H), ue = {
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
- ue.node;
454
- var U = B(ue), W = {
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
- W.node;
463
- var de = B(W), fe = {
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
- fe.node;
472
- var pe = B(fe), me = {
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
- me.node;
481
- var he = B(me), ge = {
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
- ge.node;
504
- var _e = B(ge), ve = {
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
- ve.node;
518
- var ye = B(ve), be = {
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
- be.node;
543
- var xe = B(be), Se = {
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
- Se.node;
583
- var Ce = B(Se), we = {
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
- we.node;
600
- var Te = B(we), Ee = {
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
- Ee.node;
609
- var De = B(Ee), Oe = {
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
- Oe.node;
623
- var ke = B(Oe), Ae = {
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
- Me.node;
649
- var Ne = B(Me), Pe = {
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
- }, Fe = {
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 Ie(...e) {
660
+ function Ne(...e) {
675
661
  return e.filter(Boolean).join(" ");
676
662
  }
677
- function Le(e) {
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: Pe[t],
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 = Ie(Pe[t], f && Fe.chip, f && p && Fe.selected, f && a && Fe.disabled, (u || d) && Pe.interactive, p && Pe.pressed, a && Pe.disabled, (o != null || d) && Pe.slots), h = /* @__PURE__ */ y(_, { children: [o != null && /* @__PURE__ */ v("span", {
687
- className: Pe.leading,
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: Ie(m, Pe.removable),
677
+ className: Ne(m, je.removable),
692
678
  ...l,
693
679
  children: [u ? /* @__PURE__ */ v("button", {
694
680
  type: "button",
695
- className: Ie(Pe.main, Pe.slots),
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: Pe.remove,
688
+ className: je.remove,
703
689
  "aria-label": c,
704
690
  disabled: a,
705
691
  onClick: () => s(),
706
- children: /* @__PURE__ */ v(Ne, {
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: Ie(m, Pe.button),
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 Re = {
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
- }, ze = {
717
+ }, Ie = {
732
718
  group: "_group_1gqda_1",
733
719
  groupLabel: "_groupLabel_1gqda_7"
734
- }, Be = { label: "_label_1hzxz_1" };
720
+ }, Le = { label: "_label_1hzxz_1" };
735
721
  //#endregion
736
722
  //#region src/components/FieldLabel.tsx
737
- function Ve({ children: e, htmlFor: t, className: n }) {
738
- let r = `${Be.label} ${n ?? ""}`.trim();
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 He({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
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: `${Re.group} ${Re[r]}`,
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: [Re.chip, n && Re.selected].filter(Boolean).join(" "),
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: ze.group,
757
+ className: Ie.group,
772
758
  ...o,
773
- children: [/* @__PURE__ */ v(Ve, {
774
- className: ze.groupLabel,
759
+ children: [/* @__PURE__ */ v(Re, {
760
+ className: Ie.groupLabel,
775
761
  children: a
776
762
  }), c]
777
763
  }) : c;
778
764
  }
779
- var Ue = {
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 We({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
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: Ue.toolbar,
783
+ className: Be.toolbar,
798
784
  children: [/* @__PURE__ */ y("div", {
799
- className: Ue.searchWrap,
785
+ className: Be.searchWrap,
800
786
  children: [
801
787
  /* @__PURE__ */ v("span", {
802
- className: Ue.searchIcon,
803
- children: /* @__PURE__ */ v(ke, {})
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: Ue.search,
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: Ue.searchShortcut,
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: Ue.controls,
807
+ className: Be.controls,
822
808
  children: a
823
809
  })]
824
810
  });
825
811
  }
826
- var Ge = {
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
- }, Ke = 4;
835
- function qe(e) {
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 Je({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ke, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
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 ? qe(e) : r;
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
- Ge.card,
868
- h ? Ge.animated : "",
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: Ge.anchor,
858
+ className: He.anchor,
873
859
  "aria-hidden": "true",
874
860
  children: /* @__PURE__ */ v("div", {
875
861
  ref: u,
876
- className: Ge.sentinel,
862
+ className: He.sentinel,
877
863
  style: { top: i }
878
864
  })
879
865
  }), /* @__PURE__ */ v("header", {
880
- className: [Ge.header, h ? Ge.animated : ""].filter(Boolean).join(" "),
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: Ge.left,
875
+ className: He.left,
890
876
  children: e
891
877
  }), t && /* @__PURE__ */ v("div", {
892
- className: Ge.right,
878
+ className: He.right,
893
879
  children: t
894
880
  })] })
895
881
  })
896
882
  })] });
897
883
  }
898
- var Ye = {
899
- checkbox: "_checkbox_qxr70_1",
900
- control: "_control_qxr70_8",
901
- labelText: "_labelText_qxr70_17",
902
- input: "_input_qxr70_27",
903
- box: "_box_qxr70_35",
904
- icon: "_icon_qxr70_70",
905
- indicator: "_indicator_qxr70_106"
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 Xe({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
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: `${Ye.checkbox} ${s ?? ""}`,
897
+ className: `${Ke.checkbox} ${s ?? ""}`,
912
898
  children: [/* @__PURE__ */ y("span", {
913
- className: Ye.control,
899
+ className: Ke.control,
914
900
  children: [/* @__PURE__ */ v("input", {
915
901
  ref: c,
916
902
  type: "checkbox",
917
- className: Ye.input,
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: Ye.box,
911
+ className: Ke.box,
926
912
  children: /* @__PURE__ */ v("svg", {
927
- className: Ye.icon,
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: Ye.labelText,
920
+ className: Ke.labelText,
935
921
  children: i
936
922
  })]
937
923
  });
938
924
  }
939
- function Ze({ checked: e, disabled: t }) {
925
+ function Je({ checked: e, disabled: t }) {
940
926
  return /* @__PURE__ */ v("span", {
941
- className: `${Ye.box} ${Ye.indicator}`,
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: Ye.icon,
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 Qe({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
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: ze.group,
961
- children: [e && /* @__PURE__ */ v(Ve, {
962
- className: ze.groupLabel,
946
+ className: Ie.group,
947
+ children: [e && /* @__PURE__ */ v(Re, {
948
+ className: Ie.groupLabel,
963
949
  children: e
964
- }), t.map((e) => /* @__PURE__ */ v(Xe, {
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 $e = {
973
- radio: "_radio_1k4h8_1",
974
- control: "_control_1k4h8_8",
975
- labelText: "_labelText_1k4h8_17",
976
- input: "_input_1k4h8_27",
977
- circle: "_circle_1k4h8_35",
978
- dot: "_dot_1k4h8_70"
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 et({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
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: `${$e.radio} ${c ?? ""}`,
970
+ className: `${Xe.radio} ${c ?? ""}`,
985
971
  children: [/* @__PURE__ */ y("span", {
986
- className: $e.control,
972
+ className: Xe.control,
987
973
  children: [/* @__PURE__ */ v("input", {
988
974
  ref: l,
989
975
  type: "radio",
990
- className: $e.input,
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: $e.circle,
1000
- children: /* @__PURE__ */ v("span", { className: $e.dot })
985
+ className: Xe.circle,
986
+ children: /* @__PURE__ */ v("span", { className: Xe.dot })
1001
987
  })]
1002
988
  }), a && /* @__PURE__ */ v("span", {
1003
- className: $e.labelText,
989
+ className: Xe.labelText,
1004
990
  children: a
1005
991
  })]
1006
992
  });
1007
993
  }
1008
- function tt({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
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: ze.group,
1013
- children: [e && /* @__PURE__ */ v(Ve, {
1014
- className: ze.groupLabel,
998
+ className: Ie.group,
999
+ children: [e && /* @__PURE__ */ v(Re, {
1000
+ className: Ie.groupLabel,
1015
1001
  children: e
1016
- }), n.map((e) => /* @__PURE__ */ v(et, {
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 nt = {
1027
- switch: "_switch_1s642_1",
1028
- input: "_input_1s642_7",
1029
- control: "_control_1s642_10",
1030
- track: "_track_1s642_20",
1031
- thumb: "_thumb_1s642_55",
1032
- sm: "_sm_1s642_68",
1033
- base: "_base_1s642_77",
1034
- labelText: "_labelText_1s642_87"
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 rt({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
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: `${nt.switch} ${o ?? ""}`,
1026
+ className: `${$e.switch} ${o ?? ""}`,
1041
1027
  children: [/* @__PURE__ */ y("span", {
1042
- className: `${nt.control} ${nt[n]}`,
1028
+ className: `${$e.control} ${$e[n]}`,
1043
1029
  children: [/* @__PURE__ */ v("input", {
1044
1030
  type: "checkbox",
1045
1031
  role: "switch",
1046
- className: nt.input,
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: nt.track,
1053
- children: /* @__PURE__ */ v("span", { className: nt.thumb })
1038
+ className: $e.track,
1039
+ children: /* @__PURE__ */ v("span", { className: $e.thumb })
1054
1040
  })]
1055
1041
  }), r && /* @__PURE__ */ v("span", {
1056
- className: nt.labelText,
1042
+ className: $e.labelText,
1057
1043
  children: r
1058
1044
  })]
1059
1045
  });
1060
1046
  }
1061
- var G = {
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 it({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
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: [G.field, c].filter(Boolean).join(" "),
1071
+ className: [K.field, c].filter(Boolean).join(" "),
1086
1072
  children: [
1087
- e && /* @__PURE__ */ v(Ve, {
1073
+ e && /* @__PURE__ */ v(Re, {
1088
1074
  htmlFor: m,
1089
1075
  children: e
1090
1076
  }),
1091
1077
  /* @__PURE__ */ y("div", {
1092
- className: `${G.inputWrap} ${G[i]} ${G[r]} ${n ? G.errorWrap : ""}`,
1078
+ className: `${K.inputWrap} ${K[i]} ${K[r]} ${n ? K.errorWrap : ""}`,
1093
1079
  children: [
1094
1080
  a && /* @__PURE__ */ v("span", {
1095
- className: G.icon,
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: G.input,
1089
+ className: K.input,
1104
1090
  ...d
1105
1091
  }),
1106
1092
  o && /* @__PURE__ */ v("span", {
1107
- className: G.shortcut,
1093
+ className: K.shortcut,
1108
1094
  "aria-hidden": "true",
1109
1095
  children: E(o).labels.map((e) => /* @__PURE__ */ v("kbd", {
1110
- className: G.kbd,
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: G.errorText,
1103
+ className: K.errorText,
1118
1104
  children: [/* @__PURE__ */ y("svg", {
1119
- className: G.errorIcon,
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: G.helperText,
1132
+ className: K.helperText,
1147
1133
  children: t
1148
1134
  }) : null
1149
1135
  ]
1150
1136
  });
1151
1137
  }
1152
- var K = {
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 at(e, t) {
1158
+ function nt(e, t) {
1173
1159
  typeof e == "function" ? e(t) : e && (e.current = t);
1174
1160
  }
1175
- function ot({ 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 }) {
1176
- let O = u(), k = l ?? O, A = p(null), j = _ !== void 0, [M, ee] = m(() => String(b ?? "").length), N = j ? String(_).length : M, P = s(() => {
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
- P();
1171
+ F();
1186
1172
  }, [
1187
- P,
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, P());
1181
+ e.clientWidth !== t && (t = e.clientWidth, F());
1196
1182
  });
1197
1183
  return n.observe(e), () => n.disconnect();
1198
- }, [a, P]), d(() => {
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 F = (e) => {
1203
- j || ee(e.target.value.length), w?.(e);
1204
- }, te = (e) => {
1205
- j || (ee(e.currentTarget.value.length), P()), T?.(e);
1206
- }, ne = `${k}-helper`, I = `${k}-error`, L = `${k}-count`, R = [
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 ? I : t ? ne : null,
1209
- c ? L : null
1210
- ].filter(Boolean).join(" ") || void 0, z = x ? N / x : 0, re = z >= 1 ? K.countLimit : z >= .9 ? K.countNear : "", ie = [
1211
- K.wrap,
1212
- K[r],
1213
- n ? K.errorWrap : "",
1214
- S ? K.disabled : "",
1215
- C ? K.readOnly : ""
1216
- ].filter(Boolean).join(" "), ae = a ? "none" : i;
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: [K.field, f].filter(Boolean).join(" "),
1204
+ className: [q.field, f].filter(Boolean).join(" "),
1219
1205
  children: [
1220
- e && /* @__PURE__ */ v(Ve, {
1206
+ e && /* @__PURE__ */ v(Re, {
1221
1207
  htmlFor: k,
1222
1208
  children: e
1223
1209
  }),
1224
1210
  /* @__PURE__ */ v("div", {
1225
- className: ie,
1211
+ className: re,
1226
1212
  children: /* @__PURE__ */ v("textarea", {
1227
1213
  ...D,
1228
1214
  ref: (e) => {
1229
- A.current = e, at(h, e);
1215
+ A.current = e, nt(h, e);
1230
1216
  },
1231
1217
  id: k,
1232
- className: `${K.textarea} ${K[`resize-${ae}`]}`,
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": R,
1241
- onChange: F,
1242
- onInput: te
1226
+ "aria-describedby": z,
1227
+ onChange: I,
1228
+ onInput: ee
1243
1229
  })
1244
1230
  }),
1245
1231
  (n || t || c) && /* @__PURE__ */ y("div", {
1246
- className: K.footer,
1232
+ className: q.footer,
1247
1233
  children: [n ? /* @__PURE__ */ v("span", {
1248
- id: I,
1249
- className: K.errorText,
1234
+ id: L,
1235
+ className: q.errorText,
1250
1236
  children: n
1251
1237
  }) : t ? /* @__PURE__ */ v("span", {
1252
- id: ne,
1253
- className: K.helperText,
1238
+ id: te,
1239
+ className: q.helperText,
1254
1240
  children: t
1255
1241
  }) : null, c && /* @__PURE__ */ v("span", {
1256
- id: L,
1257
- className: `${K.count} ${re}`,
1258
- children: x ? `${N} / ${x}` : N
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 st({ 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 }) {
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: [G.field, c].filter(Boolean).join(" "),
1255
+ className: [K.field, c].filter(Boolean).join(" "),
1270
1256
  children: [
1271
- e && /* @__PURE__ */ v(Ve, {
1257
+ e && /* @__PURE__ */ v(Re, {
1272
1258
  htmlFor: h,
1273
1259
  children: e
1274
1260
  }),
1275
1261
  /* @__PURE__ */ y("div", {
1276
- className: `${G.inputWrap} ${G.default} ${G[r]} ${n ? G.errorWrap : ""}`,
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: G.input,
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: G.trailing,
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 ? _e : ye, {})
1279
+ children: v(g ? ge : ve, {})
1294
1280
  })]
1295
1281
  }),
1296
1282
  n ? /* @__PURE__ */ v("span", {
1297
- className: G.errorText,
1283
+ className: K.errorText,
1298
1284
  children: n
1299
1285
  }) : t ? /* @__PURE__ */ v("span", {
1300
- className: G.helperText,
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 ct({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
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: [G.field, o].filter(Boolean).join(" "),
1297
+ className: [K.field, o].filter(Boolean).join(" "),
1312
1298
  children: [
1313
- e && /* @__PURE__ */ v(Ve, {
1299
+ e && /* @__PURE__ */ v(Re, {
1314
1300
  htmlFor: p,
1315
1301
  children: e
1316
1302
  }),
1317
1303
  /* @__PURE__ */ y("div", {
1318
- className: `${G.inputWrap} ${G.default} ${G[r]} ${n ? G.errorWrap : ""}`,
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: `${G.input} ${G.pickerInput}`,
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: `${G.pickerChevron} ${r === "sm" ? G.pickerChevronSm : ""}`,
1316
+ className: `${K.pickerChevron} ${r === "sm" ? K.pickerChevronSm : ""}`,
1331
1317
  "aria-hidden": !0,
1332
- children: /* @__PURE__ */ v(de, {})
1318
+ children: /* @__PURE__ */ v(ue, {})
1333
1319
  })]
1334
1320
  }),
1335
1321
  n ? /* @__PURE__ */ v("span", {
1336
- className: G.errorText,
1322
+ className: K.errorText,
1337
1323
  children: n
1338
1324
  }) : t ? /* @__PURE__ */ v("span", {
1339
- className: G.helperText,
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 lt(e) {
1333
+ function ot(e) {
1348
1334
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1349
1335
  }
1350
- function ut(e, t) {
1336
+ function st(e, t) {
1351
1337
  return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
1352
1338
  }
1353
- function dt(e, t) {
1339
+ function ct(e, t) {
1354
1340
  return new Date(e, t + 1, 0).getDate();
1355
1341
  }
1356
- function ft(e, t) {
1357
- let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), dt(n.getFullYear(), n.getMonth()));
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 pt(e, t) {
1346
+ function ut(e, t) {
1361
1347
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1362
1348
  }
1363
- function mt(e, t) {
1349
+ function dt(e, t) {
1364
1350
  return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
1365
1351
  }
1366
- function ht(e, t, n) {
1367
- return !!(t && mt(e, t) < 0 || n && mt(e, n) > 0);
1352
+ function ft(e, t, n) {
1353
+ return !!(t && dt(e, t) < 0 || n && dt(e, n) > 0);
1368
1354
  }
1369
- function gt(e, t, n) {
1370
- return t && mt(e, t) < 0 ? lt(t) : n && mt(e, n) > 0 ? lt(n) : lt(e);
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 _t(e, t) {
1373
- return ut(e, -((e.getDay() - t + 7) % 7));
1358
+ function mt(e, t) {
1359
+ return st(e, -((e.getDay() - t + 7) % 7));
1374
1360
  }
1375
- function vt(e, t) {
1376
- return ut(_t(e, t), 6);
1361
+ function ht(e, t) {
1362
+ return st(mt(e, t), 6);
1377
1363
  }
1378
- var yt = 6;
1379
- function bt(e, t, n) {
1380
- let r = _t(new Date(e, t, 1), n), i = [];
1381
- for (let e = 0; e < yt; 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 = ut(r, e * 7 + i);
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 q = {
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
- }, xt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1412
- function St(e, t) {
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 Ct(e, t) {
1402
+ function bt(e, t) {
1417
1403
  return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
1418
1404
  }
1419
- function wt({ 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 }) {
1420
- let [S, C] = m(() => _ ? St(_, (e ?? /* @__PURE__ */ new Date()).getDate()) : gt(e ?? /* @__PURE__ */ new Date(), n, r)), w = _ ? `${_.getFullYear()}-${_.getMonth()}` : null, [T, E] = m(w);
1421
- w !== T && (E(w), _ && (S.getFullYear() !== _.getFullYear() || S.getMonth() !== _.getMonth()) && C(St(_, S.getDate())));
1422
- let D = e ? xt(e) : null, [O, A] = m(D);
1423
- D !== O && (A(D), e && C(gt(e, n, r)));
1424
- let j = p(null), M = p(!!o), ee = u();
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="${xt(S)}"]`)?.focus());
1412
+ M.current && (M.current = !1, j.current?.querySelector(`[data-date="${vt(S)}"]`)?.focus());
1427
1413
  }, [S]);
1428
- let N = S.getFullYear(), P = S.getMonth(), F = f(() => bt(N, P, a), [
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
- ]), te = lt(/* @__PURE__ */ new Date()), ne = !!(h?.start && h.end && mt(h.start, h.end) > 0), I = ne ? h.end : h?.start ?? null, L = ne ? h.start : h?.end ?? null, R = !!(I && L && mt(I, L) !== 0), z = f(() => ({
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]), re = h ? F.filter((e) => e.some((e) => e.inMonth)) : F, ie = F[0].map(({ date: e }) => ({
1441
- short: Ct(z.short.format(e), i).slice(0, 2),
1442
- long: z.long.format(e)
1443
- })), ae = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < lt(n), oe = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > lt(r), se = ae(S), B = oe(S);
1444
- function ce(e) {
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
- let t = gt(ft(S, e), n, r);
1452
- M.current = e < 0 ? ae(t) : oe(t), ce(t);
1434
+ M.current = !0, se(pt(e, n, r));
1453
1435
  }
1454
- function le(e) {
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 = ut(S, -1);
1444
+ t = st(S, -1);
1459
1445
  break;
1460
1446
  case "ArrowRight":
1461
- t = ut(S, 1);
1447
+ t = st(S, 1);
1462
1448
  break;
1463
1449
  case "ArrowUp":
1464
- t = ut(S, -7);
1450
+ t = st(S, -7);
1465
1451
  break;
1466
1452
  case "ArrowDown":
1467
- t = ut(S, 7);
1453
+ t = st(S, 7);
1468
1454
  break;
1469
1455
  case "PageUp":
1470
- t = ft(S, -1);
1456
+ t = lt(S, -1);
1471
1457
  break;
1472
1458
  case "PageDown":
1473
- t = ft(S, 1);
1459
+ t = lt(S, 1);
1474
1460
  break;
1475
1461
  case "Home":
1476
- t = _t(S, a);
1462
+ t = mt(S, a);
1477
1463
  break;
1478
- case "End": t = vt(S, a);
1464
+ case "End": t = ht(S, a);
1479
1465
  }
1480
- t && (e.preventDefault(), V(t));
1466
+ t && (e.preventDefault(), H(t));
1481
1467
  }
1482
- function ue(e) {
1483
- let n = lt(e);
1484
- ce(n), t(n);
1468
+ function le(e) {
1469
+ let n = ot(e);
1470
+ se(n), t(n);
1485
1471
  }
1486
1472
  return /* @__PURE__ */ y("div", {
1487
- className: [q.calendar, d].filter(Boolean).join(" "),
1473
+ className: [J.calendar, d].filter(Boolean).join(" "),
1488
1474
  children: [/* @__PURE__ */ y("div", {
1489
- className: q.header,
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: q.navButton,
1495
- leadingIcon: /* @__PURE__ */ v(pe, {}),
1480
+ className: J.navButton,
1481
+ leadingIcon: /* @__PURE__ */ v(fe, {}),
1496
1482
  "aria-label": s,
1497
- disabled: se,
1498
- onClick: () => H(-1)
1483
+ disabled: oe,
1484
+ onClick: () => U(-1)
1499
1485
  }),
1500
1486
  /* @__PURE__ */ v("div", {
1501
- id: ee,
1502
- className: q.title,
1487
+ id: N,
1488
+ className: J.title,
1503
1489
  "aria-live": "polite",
1504
- children: Ct(z.title.format(S), i)
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: q.navButton,
1510
- leadingIcon: /* @__PURE__ */ v(he, {}),
1495
+ className: J.navButton,
1496
+ leadingIcon: /* @__PURE__ */ v(me, {}),
1511
1497
  "aria-label": c,
1512
- disabled: B,
1513
- onClick: () => H(1)
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": ee,
1520
- className: q.grid,
1521
- onKeyDown: le,
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: q.row,
1526
- children: ie.map((e) => /* @__PURE__ */ v("span", {
1511
+ className: J.row,
1512
+ children: re.map((e) => /* @__PURE__ */ v("span", {
1527
1513
  role: "columnheader",
1528
1514
  "aria-label": e.long,
1529
- className: q.weekday,
1515
+ className: J.weekday,
1530
1516
  children: e.short
1531
1517
  }, e.long))
1532
- }), re.map((t) => /* @__PURE__ */ v("div", {
1518
+ }), ne.map((t) => /* @__PURE__ */ v("div", {
1533
1519
  role: "row",
1534
- className: q.row,
1520
+ className: J.row,
1535
1521
  children: t.map(({ date: t, inMonth: i }) => {
1536
- let a = ht(t, n, r), o = !!I && pt(t, I), s = !!L && pt(t, L), c = !!(I && L) && mt(t, I) > 0 && mt(t, L) < 0, l = h ? o || s : !!e && pt(t, e), u = !!h && !i, d = pt(t, te);
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": xt(t),
1541
- tabIndex: pt(t, S) && !u ? 0 : -1,
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": z.full.format(t),
1532
+ "aria-label": B.full.format(t),
1547
1533
  className: [
1548
- q.day,
1549
- !i && q.outside,
1550
- u && q.hiddenDay,
1551
- c && q.inRange,
1552
- R && o && q.rangeStart,
1553
- R && s && q.rangeEnd,
1554
- d && q.today,
1555
- l && q.selected,
1556
- a && q.disabled
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 : () => ue(t),
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
- }, xt(t));
1549
+ }, vt(t));
1564
1550
  })
1565
- }, xt(t[0].date)))]
1551
+ }, vt(t[0].date)))]
1566
1552
  })]
1567
1553
  });
1568
1554
  }
1569
- var Tt = 4, Et = 8;
1570
- function Dt({ isOpen: e, popupRef: t, getAnchor: n, placement: r, onClose: i, layoutKey: a }) {
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(Et, Math.min(u, c - o - Et));
1580
- let d = a.bottom + Tt, f = d + s <= l - Et, p = a.top - Tt - s >= Et, m = !f && p;
1581
- m && (d = a.top - Tt - s), e.dataset.flipped = String(m), e.dataset.align = r === "bottom-end" ? "end" : "start", e.style.left = `${u}px`, e.style.top = `${d}px`;
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 Ot = { popup: "_popup_eco0g_1" };
1613
+ var Tt = { popup: "_popup_eco0g_1" };
1628
1614
  //#endregion
1629
1615
  //#region src/components/DatePicker.tsx
1630
- function kt({ 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 }) {
1631
- let [D, O] = m(!1), k = p(null), A = p(null), j = u(), M = D && !i, ee = f(() => new Intl.DateTimeFormat(a, {
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]), N = e ? c ? c(e) : ee.format(e) : "";
1635
- Dt({
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 P(e) {
1630
+ function F(e) {
1645
1631
  (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), i || O(!0));
1646
1632
  }
1647
- function F(e) {
1633
+ function I(e) {
1648
1634
  t(e), O(!1), k.current?.focus();
1649
1635
  }
1650
- return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ct, {
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: N,
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: P
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: Ot.popup,
1674
- children: /* @__PURE__ */ v(wt, {
1659
+ className: Tt.popup,
1660
+ children: /* @__PURE__ */ v(xt, {
1675
1661
  autoFocus: !0,
1676
1662
  value: e,
1677
- onChange: F,
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 At = {
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 jt({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, tone: a = "default", className: o, "data-testid": s }) {
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
- At.skeleton,
1699
- At[e],
1700
- a === "inverse" && At.inverse,
1701
- i && At.animated,
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 Mt(e) {
1699
+ function kt(e) {
1714
1700
  return e.start !== null && e.end !== null;
1715
1701
  }
1716
- function Nt(e, t) {
1717
- let n = lt(t);
1718
- return e.start && !e.end && mt(n, e.start) >= 0 ? {
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 Pt(e, t) {
1727
- return e.start && !e.end && t ? mt(t, e.start) < 0 ? {
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 Ft = " – ";
1736
- function It(e, { locale: t, today: n = /* @__PURE__ */ new Date(), formatValue: r }) {
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) : pt(i, a) ? l(i) : `${l(i)}${Ft}${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 J = {
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
- }, Lt = "(min-width: 640px)", Rt = "(max-width: 480px)";
1771
- function zt(e) {
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 Bt = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Vt = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth();
1778
- function Ht(e, t, n, r) {
1779
- let i = Bt(e.end ?? e.start ?? n ?? /* @__PURE__ */ new Date());
1780
- return r && (i = ft(i, -1)), t && mt(i, Bt(t)) < 0 && (i = Bt(t)), 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 Ut({ 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 }) {
1783
- let [ee, N] = m(!1), [P, F] = m({
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
- }), [te, ne] = m(null), [I, L] = m(() => Ht(e, n, r, !0)), [R, z] = m(() => lt(/* @__PURE__ */ new Date())), re = p(null), ie = p(null), ae = u(), oe = M ?? ae, se = u(), B = zt(Lt), ce = zt(Rt), V = ee && !o && !c, H = a ? i.find((e) => e.id === a) : void 0, ue = (e, t) => e && t ? mt(e, t) === 0 : e === t, U = V && !!P.start && !(ue(P.start, e.start) && ue(P.end, e.end)), W = f(() => U ? It(P, {
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
- }) : H?.label ?? It(e, {
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
- ]), fe = s(() => re.current, []), pe = s((e) => {
1800
- N(!1), e && re.current?.focus();
1785
+ ]), de = s(() => ne.current, []), fe = s((e) => {
1786
+ P(!1), e && ne.current?.focus();
1801
1787
  }, []);
1802
- Dt({
1803
- isOpen: V,
1804
- popupRef: ie,
1805
- getAnchor: fe,
1788
+ wt({
1789
+ isOpen: H,
1790
+ popupRef: re,
1791
+ getAnchor: de,
1806
1792
  placement: b,
1807
- onClose: pe,
1808
- layoutKey: `${B}-${I.getTime()}`
1793
+ onClose: fe,
1794
+ layoutKey: `${V}-${L.getTime()}`
1809
1795
  });
1810
- function me() {
1811
- o || c || (F({
1796
+ function pe() {
1797
+ o || c || (I({
1812
1798
  start: e.start,
1813
1799
  end: e.end
1814
- }), ne(null), L(Ht(e, n, r, B)), z(e.end ?? e.start ?? lt(/* @__PURE__ */ new Date())), N(!0));
1800
+ }), te(null), R(zt(e, n, r, V)), B(e.end ?? e.start ?? ot(/* @__PURE__ */ new Date())), P(!0));
1815
1801
  }
1816
- function he() {
1817
- V ? pe(!1) : me();
1802
+ function me() {
1803
+ H ? fe(!1) : pe();
1818
1804
  }
1819
- function ge(e) {
1820
- e.key === "ArrowDown" && !V && (e.preventDefault(), me());
1805
+ function he(e) {
1806
+ e.key === "ArrowDown" && !H && (e.preventDefault(), pe());
1821
1807
  }
1822
- function _e(e) {
1823
- t(e.range()), pe(!0);
1808
+ function ge(e) {
1809
+ t(e.range()), fe(!0);
1824
1810
  }
1825
- function ve() {
1826
- Mt(P) && (t({
1827
- start: P.start,
1828
- end: P.end
1829
- }), pe(!0));
1811
+ function _e() {
1812
+ kt(F) && (t({
1813
+ start: F.start,
1814
+ end: F.end
1815
+ }), fe(!0));
1830
1816
  }
1831
- let ye = (e) => (t) => L(ft(Bt(t), -e)), be = Pt(P, te), xe = ft(I, 1), Se = B && Vt(R, xe), Ce = {
1832
- value: R,
1833
- onChange: (e) => F((t) => Nt(t, 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: be,
1839
- onDayHover: ne
1840
- }, we = i.length > 0;
1824
+ range: ye,
1825
+ onDayHover: te
1826
+ }, Ce = i.length > 0;
1841
1827
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
1842
- className: [J.field, j].filter(Boolean).join(" "),
1828
+ className: [Y.field, j].filter(Boolean).join(" "),
1843
1829
  children: [
1844
- S && /* @__PURE__ */ v(Ve, {
1845
- htmlFor: oe,
1830
+ S && /* @__PURE__ */ v(Re, {
1831
+ htmlFor: ae,
1846
1832
  children: S
1847
1833
  }),
1848
1834
  /* @__PURE__ */ y("button", {
1849
- ref: re,
1850
- id: oe,
1835
+ ref: ne,
1836
+ id: ae,
1851
1837
  type: "button",
1852
1838
  className: [
1853
- J.trigger,
1854
- J[x],
1855
- w && J.errorWrap
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": V,
1861
- "aria-controls": V ? se : void 0,
1846
+ "aria-expanded": H,
1847
+ "aria-controls": H ? oe : void 0,
1862
1848
  "aria-busy": c || void 0,
1863
- onClick: he,
1864
- onKeyDown: ge,
1849
+ onClick: me,
1850
+ onKeyDown: he,
1865
1851
  children: [
1866
1852
  /* @__PURE__ */ v("span", {
1867
- className: J.icon,
1853
+ className: Y.icon,
1868
1854
  "aria-hidden": !0,
1869
- children: /* @__PURE__ */ v(le, {})
1855
+ children: /* @__PURE__ */ v(ce, {})
1870
1856
  }),
1871
1857
  c ? /* @__PURE__ */ v("span", {
1872
- className: J.value,
1873
- children: /* @__PURE__ */ v(jt, {
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: [J.value, !W && J.placeholder].filter(Boolean).join(" "),
1879
- children: W || T
1864
+ className: [Y.value, !G && Y.placeholder].filter(Boolean).join(" "),
1865
+ children: G || T
1880
1866
  }),
1881
1867
  /* @__PURE__ */ v("span", {
1882
- className: [J.chevron, V && J.chevronOpen].filter(Boolean).join(" "),
1868
+ className: [Y.chevron, H && Y.chevronOpen].filter(Boolean).join(" "),
1883
1869
  "aria-hidden": !0,
1884
- children: /* @__PURE__ */ v(de, {})
1870
+ children: /* @__PURE__ */ v(ue, {})
1885
1871
  })
1886
1872
  ]
1887
1873
  }),
1888
1874
  w ? /* @__PURE__ */ v("span", {
1889
- className: J.errorText,
1875
+ className: Y.errorText,
1890
1876
  children: w
1891
1877
  }) : C ? /* @__PURE__ */ v("span", {
1892
- className: J.helperText,
1878
+ className: Y.helperText,
1893
1879
  children: C
1894
1880
  }) : null
1895
1881
  ]
1896
- }), V && g(/* @__PURE__ */ y("div", {
1897
- ref: ie,
1898
- id: se,
1882
+ }), H && g(/* @__PURE__ */ y("div", {
1883
+ ref: re,
1884
+ id: oe,
1899
1885
  role: "dialog",
1900
1886
  "aria-label": D,
1901
- className: J.popup,
1902
- children: [we && /* @__PURE__ */ v("div", {
1903
- className: J.presets,
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: J.preset,
1894
+ className: Y.preset,
1909
1895
  "aria-pressed": e.id === a,
1910
- onClick: () => _e(e),
1896
+ onClick: () => ge(e),
1911
1897
  children: e.label
1912
1898
  }, e.id))
1913
1899
  }), /* @__PURE__ */ y("div", {
1914
- className: J.main,
1900
+ className: Y.main,
1915
1901
  children: [/* @__PURE__ */ y("div", {
1916
- className: J.months,
1902
+ className: Y.months,
1917
1903
  children: [/* @__PURE__ */ v("div", {
1918
- className: J.month,
1919
- children: /* @__PURE__ */ v(wt, {
1920
- ...Ce,
1921
- autoFocus: !Se,
1922
- month: I,
1923
- onMonthChange: ye(0),
1924
- hideNavigation: B ? "next" : void 0
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
- }), B && /* @__PURE__ */ v("div", {
1927
- className: J.month,
1928
- children: /* @__PURE__ */ v(wt, {
1929
- ...Ce,
1930
- autoFocus: Se,
1931
- month: xe,
1932
- onMonthChange: ye(1),
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
- }), ce ? /* @__PURE__ */ y("div", {
1937
- className: J.footer,
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: !Mt(P),
1943
- onClick: ve,
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: () => pe(!0),
1935
+ onClick: () => fe(!0),
1950
1936
  children: A
1951
1937
  })]
1952
1938
  }) : /* @__PURE__ */ y("div", {
1953
- className: J.footer,
1939
+ className: Y.footer,
1954
1940
  children: [/* @__PURE__ */ v(k, {
1955
1941
  variant: "tertiary",
1956
1942
  size: "sm",
1957
- onClick: () => pe(!0),
1943
+ onClick: () => fe(!0),
1958
1944
  children: A
1959
1945
  }), /* @__PURE__ */ v(k, {
1960
1946
  variant: "primary",
1961
1947
  size: "sm",
1962
- disabled: !Mt(P),
1963
- onClick: ve,
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 Wt = {
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 Gt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
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: Wt.field,
1973
+ className: Vt.field,
1988
1974
  children: [
1989
- e && /* @__PURE__ */ v(Ve, {
1975
+ e && /* @__PURE__ */ v(Re, {
1990
1976
  htmlFor: l,
1991
1977
  children: e
1992
1978
  }),
1993
1979
  /* @__PURE__ */ y("div", {
1994
- className: `${Wt.inputWrap} ${Wt[r]} ${n ? Wt.errorWrap : ""}`,
1980
+ className: `${Vt.inputWrap} ${Vt[r]} ${n ? Vt.errorWrap : ""}`,
1995
1981
  children: [
1996
1982
  i && /* @__PURE__ */ v("span", {
1997
- className: Wt.prefix,
1983
+ className: Vt.prefix,
1998
1984
  children: i
1999
1985
  }),
2000
1986
  /* @__PURE__ */ v("input", {
2001
1987
  id: l,
2002
- className: Wt.input,
1988
+ className: Vt.input,
2003
1989
  ...s
2004
1990
  }),
2005
1991
  a && /* @__PURE__ */ v("span", {
2006
- className: Wt.suffix,
1992
+ className: Vt.suffix,
2007
1993
  children: a
2008
1994
  })
2009
1995
  ]
2010
1996
  }),
2011
1997
  n ? /* @__PURE__ */ v("span", {
2012
- className: Wt.errorText,
1998
+ className: Vt.errorText,
2013
1999
  children: n
2014
2000
  }) : t ? /* @__PURE__ */ v("span", {
2015
- className: Wt.helperText,
2001
+ className: Vt.helperText,
2016
2002
  children: t
2017
2003
  }) : null
2018
2004
  ]
2019
2005
  });
2020
2006
  }
2021
- var Kt = {
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 qt({ children: e, ...t }) {
2013
+ function Wt({ children: e, ...t }) {
2028
2014
  return /* @__PURE__ */ v("div", {
2029
2015
  role: "menu",
2030
- className: Kt.menu,
2016
+ className: Ut.menu,
2031
2017
  ...t,
2032
2018
  children: e
2033
2019
  });
2034
2020
  }
2035
- function Jt() {
2021
+ function Gt() {
2036
2022
  return /* @__PURE__ */ v("div", {
2037
- className: Kt.divider,
2023
+ className: Ut.divider,
2038
2024
  role: "separator"
2039
2025
  });
2040
2026
  }
2041
- var Yt = {
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 Xt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2040
+ function qt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
2055
2041
  let c = [
2056
- Yt.item,
2057
- a === "base" && Yt.base,
2058
- r && Yt.selected,
2059
- i && Yt.destructive
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: Yt.leading,
2054
+ className: Kt.leading,
2069
2055
  children: e
2070
2056
  }),
2071
2057
  t && /* @__PURE__ */ v("span", {
2072
- className: Yt.icon,
2058
+ className: Kt.icon,
2073
2059
  children: t
2074
2060
  }),
2075
2061
  /* @__PURE__ */ v("span", {
2076
- className: Yt.label,
2062
+ className: Kt.label,
2077
2063
  children: o
2078
2064
  }),
2079
2065
  n && /* @__PURE__ */ v("span", {
2080
- className: Yt.trailing,
2066
+ className: Kt.trailing,
2081
2067
  children: n
2082
2068
  }),
2083
2069
  r && /* @__PURE__ */ v("span", {
2084
- className: Yt.check,
2085
- children: /* @__PURE__ */ v(U, {})
2070
+ className: Kt.check,
2071
+ children: /* @__PURE__ */ v(W, {})
2086
2072
  })
2087
2073
  ]
2088
2074
  });
2089
2075
  }
2090
- var Y = {
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 Zt(e) {
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 Qt(e) {
2116
+ function Yt(e) {
2131
2117
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
2132
2118
  }
2133
- var $t = (e) => `and ${e} more`;
2134
- function en(e) {
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), [ee, N] = m(C), [P, F] = m(""), [te, ne] = m(!1), [I, L] = m(null), R = p(null), z = p(null), re = p(null), ie = p(null), ae = s((e) => {
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
- }, []), oe = u(), se = u(), B = e.multiple ? void 0 : e.value, ce = e.multiple && e.value || [], V = ce.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), H = A ? void 0 : h.find((e) => e.value === B), le = P.trim().toLowerCase(), ue = b && le ? h.filter((e) => Zt(e).toLowerCase().includes(le)) : h, U = ue.filter((e) => !e.disabled).map((e) => e.value), W = t === "field";
2147
- function fe() {
2148
- N(!0), M(!0);
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 pe() {
2151
- M(!1), F("");
2136
+ function fe() {
2137
+ M(!1), I("");
2152
2138
  }
2153
2139
  l(() => {
2154
2140
  if (!j) return;
2155
2141
  if (b) {
2156
- ie.current?.focus();
2142
+ re.current?.focus();
2157
2143
  return;
2158
2144
  }
2159
- let e = (A ? V.find((e) => !e.disabled)?.value : B) ?? U[0];
2160
- (R.current?.querySelector(`[data-value="${e}"]`))?.focus();
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 || !re.current || !R.current) return;
2163
- let e = R.current.getBoundingClientRect(), t = re.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
2164
- ne(n < t + 8 && r > n);
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
- R.current?.contains(e.target) || pe();
2154
+ z.current?.contains(e.target) || fe();
2169
2155
  }
2170
2156
  function t(e) {
2171
- e.key === "Escape" && (pe(), z.current?.focus()), e.key === "Tab" && A && pe();
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 !== void 0 && R.current?.querySelector(`[data-value="${e}"]`)?.focus();
2167
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), de());
2179
2168
  }
2180
2169
  function he(e) {
2181
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), fe());
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
- e.key === "ArrowDown" && (e.preventDefault(), me(U[0])), e.key === "Enter" && U.length === 1 && (e.preventDefault(), ye(U[0]));
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) % U.length), e.key === "ArrowUp") {
2176
+ if (e.key === "ArrowDown" && (r = (n + 1) % W.length), e.key === "ArrowUp") {
2191
2177
  if (b && n === 0) {
2192
- e.preventDefault(), ie.current?.focus();
2178
+ e.preventDefault(), re.current?.focus();
2193
2179
  return;
2194
2180
  }
2195
- r = (n - 1 + U.length) % U.length;
2181
+ r = (n - 1 + W.length) % W.length;
2196
2182
  }
2197
- e.key === "Home" && (r = 0), e.key === "End" && (r = U.length - 1), r !== null && (e.preventDefault(), me(U[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 ve(e) {
2200
- L((t) => ({
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 ye(t) {
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), pe(), z.current?.focus();
2198
+ e.onChange(t), fe(), B.current?.focus();
2213
2199
  }
2214
- function be() {
2215
- if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(V);
2216
- let t = V[0];
2217
- if (V.length === 1) return t.label;
2218
- let n = Qt(t);
2219
- return n === void 0 ? `${V.length} selected` : `${n} ${(e.multiple && e.moreText || $t)(V.length - 1)}`;
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 xe = n === void 0 && (A ? V.length === 0 : !H), Se = A && e.triggerPrefix ? /* @__PURE__ */ y("span", {
2222
- className: Y.prefix,
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, Ce = n ?? (xe ? f : A ? be() : H?.label), we = /* @__PURE__ */ y(_, { children: [Se, Ce] }), Te = {
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 ? se : void 0,
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 ? pe() : fe(),
2232
- onKeyDown: he
2217
+ onClick: () => j ? fe() : de(),
2218
+ onKeyDown: me
2233
2219
  };
2234
2220
  return /* @__PURE__ */ y("div", {
2235
- className: [W ? Y.field : Y.fieldInline, T].filter(Boolean).join(" "),
2236
- ref: R,
2221
+ className: [G ? X.field : X.fieldInline, T].filter(Boolean).join(" "),
2222
+ ref: z,
2237
2223
  "data-testid": O,
2238
2224
  children: [
2239
- W && i && /* @__PURE__ */ v(Ve, {
2240
- htmlFor: oe,
2225
+ G && i && /* @__PURE__ */ v(Re, {
2226
+ htmlFor: ae,
2241
2227
  className: E,
2242
2228
  children: i
2243
2229
  }),
2244
- W ? /* @__PURE__ */ y("button", {
2245
- ref: z,
2246
- id: oe,
2230
+ G ? /* @__PURE__ */ y("button", {
2231
+ ref: B,
2232
+ id: ae,
2247
2233
  type: "button",
2248
2234
  role: "combobox",
2249
- className: `${Y.trigger} ${Y[c]} ${o ? Y.errorWrap : ""}`,
2250
- ...Te,
2235
+ className: `${X.trigger} ${X[c]} ${o ? X.errorWrap : ""}`,
2236
+ ...we,
2251
2237
  children: [
2252
- H?.icon && /* @__PURE__ */ v("span", {
2253
- className: Y.icon,
2254
- children: H.icon
2238
+ U?.icon && /* @__PURE__ */ v("span", {
2239
+ className: X.icon,
2240
+ children: U.icon
2255
2241
  }),
2256
2242
  /* @__PURE__ */ v("span", {
2257
- className: `${Y.value} ${xe ? Y.placeholder : ""}`,
2258
- children: we
2243
+ className: `${X.value} ${be ? X.placeholder : ""}`,
2244
+ children: Ce
2259
2245
  }),
2260
2246
  /* @__PURE__ */ v("span", {
2261
- className: `${Y.chevron} ${j ? Y.chevronOpen : ""}`,
2262
- children: /* @__PURE__ */ v(de, {})
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: z,
2267
- id: oe,
2252
+ ref: B,
2253
+ id: ae,
2268
2254
  type: "button",
2269
- className: Y.pillTrigger,
2270
- ...Te,
2255
+ className: X.pillTrigger,
2256
+ ...we,
2271
2257
  children: [
2272
- H?.icon && /* @__PURE__ */ v("span", {
2273
- className: Y.pillIcon,
2274
- children: H.icon
2258
+ U?.icon && /* @__PURE__ */ v("span", {
2259
+ className: X.pillIcon,
2260
+ children: U.icon
2275
2261
  }),
2276
- we,
2262
+ Ce,
2277
2263
  /* @__PURE__ */ v("span", {
2278
- className: `${Y.pillChevron} ${j ? Y.chevronOpen : ""}`,
2279
- children: /* @__PURE__ */ v(de, {})
2264
+ className: `${X.pillChevron} ${j ? X.chevronOpen : ""}`,
2265
+ children: /* @__PURE__ */ v(ue, {})
2280
2266
  })
2281
2267
  ]
2282
2268
  }) : /* @__PURE__ */ v(k, {
2283
- ref: z,
2284
- id: oe,
2269
+ ref: B,
2270
+ id: ae,
2285
2271
  variant: t,
2286
2272
  size: c,
2287
- className: c === "base" ? Y.buttonTriggerBase : void 0,
2288
- leadingIcon: H?.icon,
2273
+ className: c === "base" ? X.buttonTriggerBase : void 0,
2274
+ leadingIcon: U?.icon,
2289
2275
  trailingIcon: /* @__PURE__ */ v("span", {
2290
- className: `${Y.buttonChevron} ${j ? Y.chevronOpen : ""}`,
2291
- children: /* @__PURE__ */ v(de, {})
2276
+ className: `${X.buttonChevron} ${j ? X.chevronOpen : ""}`,
2277
+ children: /* @__PURE__ */ v(ue, {})
2292
2278
  }),
2293
- ...Te,
2294
- children: we
2279
+ ...we,
2280
+ children: Ce
2295
2281
  }),
2296
- ee && /* @__PURE__ */ v("div", {
2297
- ref: re,
2282
+ N && /* @__PURE__ */ v("div", {
2283
+ ref: ne,
2298
2284
  className: [
2299
- Y.menuWrap,
2300
- !W && Y.menuWrapAuto,
2301
- !W && A && Y.menuWrapMultiple,
2302
- !W && r === "end" && Y.menuWrapEnd,
2303
- te && Y.menuWrapUp,
2304
- !j && Y.menuWrapClosing
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 || (N(!1), ne(!1));
2293
+ j || e.target !== e.currentTarget || (P(!1), te(!1));
2308
2294
  },
2309
- children: /* @__PURE__ */ y(qt, {
2295
+ children: /* @__PURE__ */ y(Wt, {
2310
2296
  role: "presentation",
2311
- style: W ? { width: "100%" } : void 0,
2297
+ style: G ? { width: "100%" } : void 0,
2312
2298
  children: [b && /* @__PURE__ */ v("input", {
2313
- ref: ie,
2299
+ ref: re,
2314
2300
  type: "text",
2315
- className: Y.search,
2316
- value: P,
2301
+ className: X.search,
2302
+ value: F,
2317
2303
  placeholder: x,
2318
2304
  "aria-label": x,
2319
- "aria-controls": se,
2305
+ "aria-controls": oe,
2320
2306
  autoComplete: "off",
2321
2307
  spellCheck: !1,
2322
2308
  onChange: (e) => {
2323
- F(e.target.value), L(null);
2309
+ I(e.target.value), R(null);
2324
2310
  },
2325
- onKeyDown: ge
2311
+ onKeyDown: he
2326
2312
  }), /* @__PURE__ */ y("div", {
2327
- id: se,
2313
+ id: oe,
2328
2314
  role: "listbox",
2329
2315
  "aria-multiselectable": A || void 0,
2330
2316
  "aria-label": i ?? D,
2331
- ref: ae,
2332
- className: Y.list,
2333
- onMouseLeave: () => L(null),
2317
+ ref: ie,
2318
+ className: X.list,
2319
+ onMouseLeave: () => R(null),
2334
2320
  onBlur: (e) => {
2335
- e.currentTarget.contains(e.relatedTarget) || L(null);
2321
+ e.currentTarget.contains(e.relatedTarget) || R(null);
2336
2322
  },
2337
- children: [I && ue.length > 0 && /* @__PURE__ */ v("span", {
2323
+ children: [L && le.length > 0 && /* @__PURE__ */ v("span", {
2338
2324
  "aria-hidden": "true",
2339
- className: `${Y.highlight} ${I.instant ? Y.highlightInstant : ""}`,
2325
+ className: `${X.highlight} ${L.instant ? X.highlightInstant : ""}`,
2340
2326
  style: {
2341
- transform: `translateY(${I.top}px)`,
2342
- height: I.height
2327
+ transform: `translateY(${L.top}px)`,
2328
+ height: L.height
2343
2329
  }
2344
- }), ue.length === 0 ? /* @__PURE__ */ v("div", {
2345
- className: Y.noResults,
2330
+ }), le.length === 0 ? /* @__PURE__ */ v("div", {
2331
+ className: X.noResults,
2346
2332
  role: "presentation",
2347
2333
  children: S
2348
- }) : ue.map((e, n) => /* @__PURE__ */ v(Xt, {
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 ? ce.includes(e.value) : e.value === B,
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(Ze, {
2356
- checked: ce.includes(e.value),
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 === B,
2345
+ selected: !A && e.value === V,
2360
2346
  disabled: e.disabled,
2361
- onClick: () => ye(e.value),
2362
- onPointerEnter: (t) => t.pointerType === "mouse" && !e.disabled && ve(t.currentTarget),
2363
- onFocus: (e) => ve(e.currentTarget),
2364
- onKeyDown: (t) => _e(t, e.value),
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
- W && o ? /* @__PURE__ */ v("span", {
2371
- className: Y.errorText,
2356
+ G && o ? /* @__PURE__ */ v("span", {
2357
+ className: X.errorText,
2372
2358
  children: o
2373
- }) : W && a ? /* @__PURE__ */ v("span", {
2374
- className: Y.helperText,
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 tn = {
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
- }, nn = "data-nav-item", rn = r(!1);
2392
- function an({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
2393
- let l = c(rn), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
2394
- tn.item,
2395
- n && tn.active,
2396
- l && tn.inList,
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
- [nn]: "",
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: tn.icon,
2394
+ className: Qt.icon,
2409
2395
  "aria-hidden": !0,
2410
2396
  children: e
2411
2397
  }),
2412
2398
  /* @__PURE__ */ v("span", {
2413
- className: tn.label,
2399
+ className: Qt.label,
2414
2400
  children: o
2415
2401
  }),
2416
2402
  t && /* @__PURE__ */ v("span", {
2417
- className: tn.trailing,
2403
+ className: Qt.trailing,
2418
2404
  children: t
2419
2405
  })
2420
2406
  ]
2421
2407
  });
2422
2408
  }
2423
- function on({ children: e, className: t, ...n }) {
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(`[${nn}]`) : null;
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(rn.Provider, {
2425
+ }, [o]), /* @__PURE__ */ v(en.Provider, {
2440
2426
  value: !0,
2441
2427
  children: /* @__PURE__ */ y("div", {
2442
2428
  ref: r,
2443
- className: [tn.list, t].filter(Boolean).join(" "),
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
- tn.glide,
2453
- l && tn.glideAnimated,
2454
- o && tn.glideVisible
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 sn({ size: e = 40, "aria-label": t, ...n }) {
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 X = {
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 _n({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
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
- gn[r],
2708
- r === "box" && i === "sm" && gn.sm,
2709
- r === "box" && i === "lg" && gn.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
- gn.indicator,
2717
- r === "line" ? gn.indicatorLine : gn.indicatorBox,
2718
- h === "settling" && gn.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
- gn.tab,
2740
- r && gn.selected,
2741
- i && gn.iconOnly
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: gn.icon,
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 vn = {
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 yn({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
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: vn.root,
2582
+ className: sn.root,
2762
2583
  children: [r && /* @__PURE__ */ v("span", {
2763
2584
  id: a,
2764
- className: vn.label,
2585
+ className: sn.label,
2765
2586
  children: r
2766
- }), /* @__PURE__ */ v(_n, {
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 bn = {
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 xn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2756
+ function yn({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2789
2757
  let a = [
2790
- bn.spinner,
2791
- bn[e],
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: bn.inner,
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: bn.outer,
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
- }, Sn = 200, Cn = "(max-width: 639px)", wn = "(prefers-reduced-motion: reduce)", Tn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", En = r(null);
2845
- function Dn(e) {
2846
- let t = c(En);
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 On = [];
2851
- function kn(e) {
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 = kn(Cn), ee = kn(wn), N = p(null), P = p(null), F = p(!1), te = p(!1), ne = p(Symbol("modal")), I = p(e), L = p(t);
2860
- L.current = t, l(() => T(!0), []), l(() => {
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 (F.current) return;
2863
- if (P.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), I.current && o) {
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 (F.current = !1, k(!1), !E) return;
2871
- let t = setTimeout(() => D(!1), ee ? 0 : Sn);
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 && P.current && (P.current.focus?.(), P.current = null);
2842
+ !E && F.current && (F.current.focus?.(), F.current = null);
2875
2843
  }, [E]);
2876
- let R = s(() => {
2877
- if (!a || F.current) return;
2878
- F.current = !0, k(!1);
2879
- let e = ee ? 0 : Sn;
2880
- window.setTimeout(() => L.current(), e);
2881
- }, [a, ee]);
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 = ne.current;
2885
- d && On.push(e);
2852
+ let e = te.current;
2853
+ d && En.push(e);
2886
2854
  let t = (t) => {
2887
- t.key === "Escape" && On[On.length - 1] === e && (t.preventDefault(), R());
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`), N.current?.focus({ preventScroll: !0 }), () => {
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 = On.indexOf(e);
2894
- a !== -1 && On.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
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
- R
2867
+ z
2900
2868
  ]);
2901
- let z = (e) => {
2902
- if (e.key !== "Tab" || !N.current) return;
2903
- let t = Array.from(N.current.querySelectorAll(Tn));
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 === N.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
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 re = document.querySelector(c) ?? document.body, ie = [
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(" "), ae = {
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: ie,
2893
+ className: re,
2926
2894
  "data-testid": _,
2927
- onKeyDown: z
2928
- }, oe = {
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: R
2903
+ requestClose: z
2936
2904
  };
2937
- return g(/* @__PURE__ */ v(En.Provider, {
2938
- value: oe,
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
- te.current = e.target !== e.currentTarget;
2910
+ ee.current = e.target !== e.currentTarget;
2943
2911
  },
2944
2912
  onClick: (e) => {
2945
- e.target === e.currentTarget && !te.current && R(), te.current = !1;
2913
+ e.target === e.currentTarget && !ee.current && z(), ee.current = !1;
2946
2914
  },
2947
2915
  children: i ? /* @__PURE__ */ v("form", {
2948
- ref: N,
2916
+ ref: P,
2949
2917
  onSubmit: i,
2950
- ...ae,
2918
+ ...ie,
2951
2919
  children: b
2952
2920
  }) : /* @__PURE__ */ v("div", {
2953
- ref: N,
2954
- ...ae,
2921
+ ref: P,
2922
+ ...ie,
2955
2923
  children: b
2956
2924
  })
2957
2925
  })
2958
- }), re);
2926
+ }), ne);
2959
2927
  }
2960
- function An({ children: e, onClose: t }) {
2961
- let { requestClose: n, dismissible: r } = Dn("Modal.Cover");
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(Ne, {}),
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 jn({ children: t }) {
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 Mn({ children: e, tone: t = "neutral" }) {
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 Nn({ children: e, id: t }) {
2995
- let { titleId: n } = Dn("Modal.Title");
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 Pn({ children: e }) {
3003
- let { descriptionId: t, setHasDescription: n } = Dn("Modal.Description");
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 Fn({ children: e }) {
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 In({ children: e }) {
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 Ln({ children: t }) {
3023
- let { isMobile: r } = Dn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === k ? n(e, { size: "base" }) : e) : t;
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 = An, Q.Message = jn, Mn.isModalIcon = !0, Q.Icon = Mn, Q.Title = Nn, Q.Description = Pn, Q.Hint = Fn, Q.Body = In, Q.Footer = Ln;
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 Rn({ 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 }) {
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 zn = {
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 Bn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3042
+ function Rn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
3075
3043
  return /* @__PURE__ */ y("div", {
3076
- className: `${zn.root} ${e === "neutral" ? "" : zn[e]}`,
3044
+ className: `${Ln.root} ${e === "neutral" ? "" : Ln[e]}`,
3077
3045
  ...a,
3078
3046
  children: [t != null && /* @__PURE__ */ v("div", {
3079
- className: zn.icon,
3047
+ className: Ln.icon,
3080
3048
  "aria-hidden": "true",
3081
3049
  children: t
3082
3050
  }), /* @__PURE__ */ y("div", {
3083
- className: zn.body,
3051
+ className: Ln.body,
3084
3052
  children: [
3085
3053
  /* @__PURE__ */ v("p", {
3086
- className: zn.title,
3054
+ className: Ln.title,
3087
3055
  children: n
3088
3056
  }),
3089
3057
  r != null && /* @__PURE__ */ v("div", {
3090
- className: zn.text,
3058
+ className: Ln.text,
3091
3059
  children: r
3092
3060
  }),
3093
3061
  i != null && /* @__PURE__ */ v("div", {
3094
- className: zn.action,
3062
+ className: Ln.action,
3095
3063
  children: i
3096
3064
  })
3097
3065
  ]
3098
3066
  })]
3099
3067
  });
3100
3068
  }
3101
- var Vn = { photoPreview: "_photoPreview_1m76k_2" }, Hn = 180, Un = 12, Wn = 8;
3102
- function Gn(e, t, n = Hn) {
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 + Un, i = r + n + Wn > t ? e - Un - n : r;
3105
- return Math.max(Wn, i);
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 Kn({ src: e, size: t = Hn, children: r }) {
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: Vn.photoPreview,
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
- ...Gn(i.x, i.y, t)
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: "_root_44xcu_1",
3154
- hasActions: "_hasActions_44xcu_20",
3155
- current: "_current_44xcu_25",
3156
- interactive: "_interactive_44xcu_30",
3157
- side: "_side_44xcu_56",
3158
- thumb: "_thumb_44xcu_65",
3159
- thumbImg: "_thumbImg_44xcu_72",
3160
- tile: "_tile_44xcu_79",
3161
- icon: "_icon_44xcu_99",
3162
- tilePlay: "_tilePlay_44xcu_104",
3163
- badge: "_badge_44xcu_108",
3164
- main: "_main_44xcu_121",
3165
- columns: "_columns_44xcu_129",
3166
- info: "_info_44xcu_137",
3167
- aside: "_aside_44xcu_138",
3168
- date: "_date_44xcu_149",
3169
- label: "_label_44xcu_150",
3170
- title: "_title_44xcu_158",
3171
- workerName: "_workerName_44xcu_159",
3172
- description: "_description_44xcu_166",
3173
- meta: "_meta_44xcu_167",
3174
- comment: "_comment_44xcu_184",
3175
- worker: "_worker_44xcu_159",
3176
- workerRow: "_workerRow_44xcu_209",
3177
- photo: "_photo_44xcu_215",
3178
- emptyPhoto: "_emptyPhoto_44xcu_223",
3179
- workerText: "_workerText_44xcu_231",
3180
- actions: "_actions_44xcu_236",
3181
- srOnly: "_srOnly_44xcu_247"
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: "Preview unavailable",
3154
+ unavailable: "Unavailable",
3188
3155
  notReady: "Not ready",
3189
3156
  new: "Unwatched"
3190
3157
  };
3191
- function Jn({ 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 }) {
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
- ...qn,
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
- }, ee = [
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(" "), N = j ? {
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: ee,
3178
+ className: N,
3212
3179
  "data-testid": S,
3213
- ...N,
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(De, {
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" ? V : t === "unavailable" ? Ce : t === "notReady" ? xe : Te, {
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(Kn, {
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("div", {
3291
- className: `${$.photo} ${$.emptyPhoto}`,
3292
- "aria-hidden": "true",
3293
- children: /* @__PURE__ */ v(je, { size: 20 })
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 Yn({ className: e, "data-testid": t }) {
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(jt, {
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(jt, {
3304
+ /* @__PURE__ */ v(Ot, {
3337
3305
  variant: "text",
3338
3306
  width: "40%"
3339
3307
  }),
3340
- /* @__PURE__ */ v(jt, {
3308
+ /* @__PURE__ */ v(Ot, {
3341
3309
  variant: "text",
3342
3310
  width: "65%"
3343
3311
  }),
3344
- /* @__PURE__ */ v(jt, {
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 Xn = Object.assign(Jn, { Skeleton: Yn });
3321
+ var Jn = Object.assign(Kn, { Skeleton: qn });
3354
3322
  //#endregion
3355
3323
  //#region src/utils/format.ts
3356
- function Zn(e) {
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 Qn(e, t) {
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 { N as Badge, k as Button, wt as Calendar, j as Card, Xe as Checkbox, Qe as CheckboxGroup, Rn as ConfirmDialog, ct as DateField, kt as DatePicker, Ut as DateRangePicker, en as Dropdown, Bn as EmptyState, Ve as FieldLabel, hn as FilterSection, pn as HighlightText, un as LanguageSwitch, sn as Logo, qt as Menu, Jt as MenuDivider, Xt as MenuItem, Q as Modal, an as NavItem, on as NavList, Gt as NumberField, st as PasswordField, Kn as PhotoPreview, et as RadioButton, tt as RadioGroup, cn as Sidebar, ln as SidebarFooter, jt as Skeleton, xn as Spinner, rt as Switch, _n as Tabs, Le as Tag, He as TagGroup, ot as TextArea, it as TextField, yn as Toggle, We as Toolbar, Je as ToolbarAdaptive, C as Tooltip, Xn as VideoCard, Zn as formatDuration, Qn as formatDurationHMS };
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