cattle-care-ui 0.1.49 → 0.1.51

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
@@ -198,15 +198,54 @@ function A({ stacked: e, completed: t, interactive: n, draggable: r, dragging: i
198
198
  })]
199
199
  });
200
200
  }
201
+ var j = {
202
+ badge: "_badge_czydw_1",
203
+ neutral: "_neutral_czydw_12",
204
+ brand: "_brand_czydw_17",
205
+ success: "_success_czydw_22",
206
+ warning: "_warning_czydw_27",
207
+ danger: "_danger_czydw_32",
208
+ base: "_base_czydw_38",
209
+ sm: "_sm_czydw_45",
210
+ xs: "_xs_czydw_52",
211
+ icon: "_icon_czydw_60",
212
+ dot: "_dot_czydw_76"
213
+ };
214
+ //#endregion
215
+ //#region src/components/Badge.tsx
216
+ function M(...e) {
217
+ return e.filter(Boolean).join(" ");
218
+ }
219
+ function N({ variant: e = "neutral", size: t = "base", children: n, iconLeft: r, iconRight: i, dot: a, ...o }) {
220
+ return /* @__PURE__ */ v("span", {
221
+ className: M(j.badge, j[e], j[t]),
222
+ ...o,
223
+ children: [
224
+ a && /* @__PURE__ */ _("span", {
225
+ className: j.dot,
226
+ "aria-hidden": "true"
227
+ }),
228
+ r != null && /* @__PURE__ */ _("span", {
229
+ className: j.icon,
230
+ children: r
231
+ }),
232
+ n,
233
+ i != null && /* @__PURE__ */ _("span", {
234
+ className: j.icon,
235
+ children: i
236
+ })
237
+ ]
238
+ });
239
+ }
201
240
  //#endregion
202
241
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.mjs
203
- var j = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
242
+ var P = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
204
243
  //#endregion
205
244
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toLucideIconData.mjs
206
- function M(e, t, n = []) {
245
+ function F(e, t, n = []) {
207
246
  if (t == null) throw Error("[lucide]: iconNode is required when icon name is used");
208
247
  return {
209
- name: j(e),
248
+ name: P(e),
210
249
  size: 24,
211
250
  node: t,
212
251
  ...n.length > 0 ? { aliases: n } : {}
@@ -214,7 +253,7 @@ function M(e, t, n = []) {
214
253
  }
215
254
  //#endregion
216
255
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.mjs
217
- var N = (e) => {
256
+ var ee = (e) => {
218
257
  let t = "", n = !1;
219
258
  for (let r of e) {
220
259
  if (r === "-" || r === "_" || r <= " ") {
@@ -224,10 +263,10 @@ var N = (e) => {
224
263
  t.length === 0 ? t += r.toLowerCase() : t += n ? r.toUpperCase() : r, n = !1;
225
264
  }
226
265
  return t;
227
- }, P = (e) => {
228
- let t = N(e);
266
+ }, I = (e) => {
267
+ let t = ee(e);
229
268
  return t.charAt(0).toUpperCase() + t.slice(1);
230
- }, F = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), I = {
269
+ }, L = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), R = {
231
270
  xmlns: "http://www.w3.org/2000/svg",
232
271
  width: 24,
233
272
  height: 24,
@@ -240,22 +279,22 @@ var N = (e) => {
240
279
  };
241
280
  //#endregion
242
281
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconNode.mjs
243
- function L(e) {
282
+ function z(e) {
244
283
  return e != null;
245
284
  }
246
- function R(e, t = {}) {
247
- let n = t.attributeNames ?? {}, r = (e) => n[e] ?? e, i = e.size ?? e.width ?? I.width, a = e.size ?? e.height ?? I.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 ? F(...c) : F("lucide", ...s, ...c), u = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? I["stroke-width"]) * Number(e.size ?? e.width ?? I.width) / Number(t.size ?? t.width ?? I.width) : t.strokeWidth ?? I["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"];
248
287
  return [
249
288
  "svg",
250
289
  {
251
- ...Object.entries(I).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
290
+ ...Object.entries(R).reduce((e, [t, n]) => (e[r(t)] = n, e), {}),
252
291
  ..."color" in t && t.color && { [r("stroke")]: t.color },
253
- ..."size" in t && L(t.size) && {
292
+ ..."size" in t && z(t.size) && {
254
293
  [r("width")]: t.size,
255
294
  [r("height")]: t.size
256
295
  },
257
- ..."width" in t && L(t.width) && { [r("width")]: t.width },
258
- ..."height" in t && L(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 },
259
298
  [r("stroke-width")]: u,
260
299
  ...l && { [r("class")]: l },
261
300
  [r("viewBox")]: `0 0 ${i} ${a}`,
@@ -277,8 +316,8 @@ function R(e, t = {}) {
277
316
  }
278
317
  //#endregion
279
318
  //#region node_modules/lucide-react/dist/esm/shared/src/build/buildLucideIconForReact.mjs
280
- function ee(e, t = {}) {
281
- return R(e, {
319
+ function te(e, t = {}) {
320
+ return B(e, {
282
321
  ...t,
283
322
  attributeNames: {
284
323
  ...t.attributeNames,
@@ -292,22 +331,22 @@ function ee(e, t = {}) {
292
331
  }
293
332
  //#endregion
294
333
  //#region node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.mjs
295
- var te = (e) => {
334
+ var ne = (e) => {
296
335
  for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
297
336
  return !1;
298
- }, z = r({}), ne = () => c(z), re = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
337
+ }, re = r({}), ie = () => c(re), ae = a(({ color: e, size: t, width: n, height: r, strokeWidth: a, absoluteStrokeWidth: o, nonScalingStroke: s, className: c = "", children: l, iconNode: u = [], icon: d = {
299
338
  node: u,
300
339
  aliases: [],
301
340
  size: 24
302
341
  }, ...f }, p) => {
303
- let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = ne() ?? {}, b = !!l || te(f), [x, S, C = []] = ee(d, {
342
+ let { size: m = 24, strokeWidth: h = 2, absoluteStrokeWidth: g = !1, nonScalingStroke: _ = !1, color: v = "currentColor", className: y = "" } = ie() ?? {}, b = !!l || ne(f), [x, S, C = []] = te(d, {
304
343
  color: e ?? v,
305
344
  width: n ?? t ?? m,
306
345
  height: r ?? t ?? m,
307
346
  strokeWidth: a ?? h,
308
347
  absoluteStrokeWidth: o ?? g,
309
348
  nonScalingStroke: s ?? _,
310
- className: F(y, c),
349
+ className: L(y, c),
311
350
  hasA11yProp: b,
312
351
  attributes: f
313
352
  });
@@ -318,18 +357,18 @@ var te = (e) => {
318
357
  });
319
358
  //#endregion
320
359
  //#region node_modules/lucide-react/dist/esm/createLucideIcon.mjs
321
- function B(e, t = [], n = []) {
322
- let r = typeof e == "string" ? M(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(re, {
360
+ function V(e, t = [], n = []) {
361
+ let r = typeof e == "string" ? F(e, t, n) : e, o = a(({ className: e, ...t }, n) => i(ae, {
323
362
  ref: n,
324
363
  icon: r,
325
364
  className: e,
326
365
  ...t
327
366
  }));
328
- return r.name && (o.displayName = P(r.name)), o;
367
+ return r.name && (o.displayName = I(r.name)), o;
329
368
  }
330
369
  //#endregion
331
370
  //#region node_modules/lucide-react/dist/esm/icons/archive.mjs
332
- var ie = {
371
+ var oe = {
333
372
  name: "archive",
334
373
  size: 24,
335
374
  node: [
@@ -351,8 +390,8 @@ var ie = {
351
390
  }]
352
391
  ]
353
392
  };
354
- ie.node;
355
- var ae = B(ie), oe = {
393
+ oe.node;
394
+ var se = V(oe), ce = {
356
395
  name: "check",
357
396
  size: 24,
358
397
  node: [["path", {
@@ -360,8 +399,8 @@ var ae = B(ie), oe = {
360
399
  key: "1gmf2c"
361
400
  }]]
362
401
  };
363
- oe.node;
364
- var se = B(oe), ce = {
402
+ ce.node;
403
+ var le = V(ce), ue = {
365
404
  name: "chevron-down",
366
405
  size: 24,
367
406
  node: [["path", {
@@ -369,8 +408,8 @@ var se = B(oe), ce = {
369
408
  key: "qrunsl"
370
409
  }]]
371
410
  };
372
- ce.node;
373
- var le = B(ce), ue = {
411
+ ue.node;
412
+ var de = V(ue), fe = {
374
413
  name: "chevron-left",
375
414
  size: 24,
376
415
  node: [["path", {
@@ -378,8 +417,8 @@ var le = B(ce), ue = {
378
417
  key: "1wnfg3"
379
418
  }]]
380
419
  };
381
- ue.node;
382
- var de = B(ue), fe = {
420
+ fe.node;
421
+ var H = V(fe), U = {
383
422
  name: "chevron-right",
384
423
  size: 24,
385
424
  node: [["path", {
@@ -387,8 +426,8 @@ var de = B(ue), fe = {
387
426
  key: "mthhwq"
388
427
  }]]
389
428
  };
390
- fe.node;
391
- var pe = B(fe), V = {
429
+ U.node;
430
+ var pe = V(U), me = {
392
431
  name: "eye-off",
393
432
  size: 24,
394
433
  node: [
@@ -410,8 +449,8 @@ var pe = B(fe), V = {
410
449
  }]
411
450
  ]
412
451
  };
413
- V.node;
414
- var H = B(V), me = {
452
+ me.node;
453
+ var he = V(me), ge = {
415
454
  name: "eye",
416
455
  size: 24,
417
456
  node: [["path", {
@@ -424,8 +463,8 @@ var H = B(V), me = {
424
463
  key: "1v7zrd"
425
464
  }]]
426
465
  };
427
- me.node;
428
- var he = B(me), ge = {
466
+ ge.node;
467
+ var _e = V(ge), ve = {
429
468
  name: "lock",
430
469
  size: 24,
431
470
  node: [["rect", {
@@ -441,8 +480,8 @@ var he = B(me), ge = {
441
480
  key: "fwvmzm"
442
481
  }]]
443
482
  };
444
- ge.node;
445
- var _e = B(ge), ve = {
483
+ ve.node;
484
+ var ye = V(ve), be = {
446
485
  name: "play",
447
486
  size: 24,
448
487
  node: [["path", {
@@ -450,8 +489,8 @@ var _e = B(ge), ve = {
450
489
  key: "10ikf1"
451
490
  }]]
452
491
  };
453
- ve.node;
454
- var ye = B(ve), be = {
492
+ be.node;
493
+ var xe = V(be), Se = {
455
494
  name: "search",
456
495
  size: 24,
457
496
  node: [["path", {
@@ -464,8 +503,8 @@ var ye = B(ve), be = {
464
503
  key: "4ej97u"
465
504
  }]]
466
505
  };
467
- be.node;
468
- var xe = B(be), Se = {
506
+ Se.node;
507
+ var Ce = V(Se), we = {
469
508
  name: "user",
470
509
  size: 24,
471
510
  node: [["path", {
@@ -478,8 +517,8 @@ var xe = B(be), Se = {
478
517
  key: "17ys0d"
479
518
  }]]
480
519
  };
481
- Se.node;
482
- var Ce = B(Se), we = {
520
+ we.node;
521
+ var Te = V(we), Ee = {
483
522
  name: "x",
484
523
  size: 24,
485
524
  node: [["path", {
@@ -490,8 +529,8 @@ var Ce = B(Se), we = {
490
529
  key: "d8bk6v"
491
530
  }]]
492
531
  };
493
- we.node;
494
- var Te = B(we), U = {
532
+ Ee.node;
533
+ var De = V(Ee), W = {
495
534
  neutral: "_neutral_13wj2_1",
496
535
  pill: "_pill_13wj2_2",
497
536
  accent: "_accent_13wj2_3",
@@ -509,53 +548,53 @@ var Te = B(we), U = {
509
548
  main: "_main_13wj2_161",
510
549
  remove: "_remove_13wj2_162",
511
550
  removable: "_removable_13wj2_189"
512
- }, Ee = {
551
+ }, Oe = {
513
552
  chip: "_chip_1vf29_5",
514
553
  disabled: "_disabled_1vf29_15",
515
554
  selected: "_selected_1vf29_28"
516
555
  };
517
556
  //#endregion
518
557
  //#region src/components/Tag.tsx
519
- function De(...e) {
558
+ function ke(...e) {
520
559
  return e.filter(Boolean).join(" ");
521
560
  }
522
- function Oe(e) {
561
+ function Ae(e) {
523
562
  if (e.variant === "count") {
524
563
  let { variant: t, children: n, ...r } = e;
525
564
  return /* @__PURE__ */ _("span", {
526
- className: U[t],
565
+ className: W[t],
527
566
  ...r,
528
567
  children: n
529
568
  });
530
569
  }
531
- 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 = De(U[t], f && Ee.chip, f && p && Ee.selected, f && a && Ee.disabled, (u || d) && U.interactive, p && U.pressed, a && U.disabled, (o != null || d) && U.slots), h = /* @__PURE__ */ v(g, { children: [o != null && /* @__PURE__ */ _("span", {
532
- className: U.leading,
570
+ 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 = ke(W[t], f && Oe.chip, f && p && Oe.selected, f && a && Oe.disabled, (u || d) && W.interactive, p && W.pressed, a && W.disabled, (o != null || d) && W.slots), h = /* @__PURE__ */ v(g, { children: [o != null && /* @__PURE__ */ _("span", {
571
+ className: W.leading,
533
572
  children: o
534
573
  }), n] });
535
574
  return d ? /* @__PURE__ */ v("span", {
536
- className: De(m, U.removable),
575
+ className: ke(m, W.removable),
537
576
  ...l,
538
577
  children: [u ? /* @__PURE__ */ _("button", {
539
578
  type: "button",
540
- className: De(U.main, U.slots),
579
+ className: ke(W.main, W.slots),
541
580
  "aria-pressed": i,
542
581
  disabled: a,
543
582
  onClick: r,
544
583
  children: h
545
584
  }) : h, /* @__PURE__ */ _("button", {
546
585
  type: "button",
547
- className: U.remove,
586
+ className: W.remove,
548
587
  "aria-label": c,
549
588
  disabled: a,
550
589
  onClick: () => s(),
551
- children: /* @__PURE__ */ _(Te, {
590
+ children: /* @__PURE__ */ _(De, {
552
591
  size: 12,
553
592
  "aria-hidden": "true"
554
593
  })
555
594
  })]
556
595
  }) : u ? /* @__PURE__ */ _("button", {
557
596
  type: "button",
558
- className: De(m, U.button),
597
+ className: ke(m, W.button),
559
598
  "aria-pressed": i,
560
599
  disabled: a,
561
600
  onClick: r,
@@ -567,20 +606,20 @@ function Oe(e) {
567
606
  children: h
568
607
  });
569
608
  }
570
- var ke = {
609
+ var je = {
571
610
  group: "_group_rrzc7_1",
572
611
  sm: "_sm_rrzc7_9",
573
612
  chip: "_chip_rrzc7_13 _chip_1vf29_5",
574
613
  base: "_base_rrzc7_28",
575
614
  selected: "_selected_rrzc7_44 _selected_1vf29_28"
576
- }, Ae = {
615
+ }, Me = {
577
616
  group: "_group_16vyf_1",
578
617
  groupLabel: "_groupLabel_16vyf_7"
579
- }, je = { label: "_label_tef1a_1" };
618
+ }, Ne = { label: "_label_tef1a_1" };
580
619
  //#endregion
581
620
  //#region src/components/FieldLabel.tsx
582
- function W({ children: e, htmlFor: t, className: n }) {
583
- let r = `${je.label} ${n ?? ""}`.trim();
621
+ function Pe({ children: e, htmlFor: t, className: n }) {
622
+ let r = `${Ne.label} ${n ?? ""}`.trim();
584
623
  return t ? /* @__PURE__ */ _("label", {
585
624
  className: r,
586
625
  htmlFor: t,
@@ -592,36 +631,36 @@ function W({ children: e, htmlFor: t, className: n }) {
592
631
  }
593
632
  //#endregion
594
633
  //#region src/components/TagGroup.tsx
595
- function Me({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
634
+ function Fe({ items: e, value: t, onChange: n, size: r = "base", disabled: i = !1, label: a, ...o }) {
596
635
  function s(e) {
597
636
  n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
598
637
  }
599
638
  let c = /* @__PURE__ */ _("div", {
600
639
  role: "group",
601
640
  "aria-label": a ? void 0 : o["aria-label"],
602
- className: `${ke.group} ${ke[r]}`,
641
+ className: `${je.group} ${je[r]}`,
603
642
  children: e.map((e) => {
604
643
  let n = t.includes(e.value), r = i || e.disabled;
605
644
  return /* @__PURE__ */ _("button", {
606
645
  type: "button",
607
646
  "aria-pressed": n,
608
647
  disabled: r,
609
- className: [ke.chip, n && ke.selected].filter(Boolean).join(" "),
648
+ className: [je.chip, n && je.selected].filter(Boolean).join(" "),
610
649
  onClick: () => !r && s(e.value),
611
650
  children: e.label
612
651
  }, e.value);
613
652
  })
614
653
  });
615
654
  return a ? /* @__PURE__ */ v("div", {
616
- className: Ae.group,
655
+ className: Me.group,
617
656
  ...o,
618
- children: [/* @__PURE__ */ _(W, {
619
- className: Ae.groupLabel,
657
+ children: [/* @__PURE__ */ _(Pe, {
658
+ className: Me.groupLabel,
620
659
  children: a
621
660
  }), c]
622
661
  }) : c;
623
662
  }
624
- var Ne = {
663
+ var Ie = {
625
664
  toolbar: "_toolbar_17vse_1",
626
665
  searchWrap: "_searchWrap_17vse_14",
627
666
  searchIcon: "_searchIcon_17vse_33",
@@ -631,7 +670,7 @@ var Ne = {
631
670
  };
632
671
  //#endregion
633
672
  //#region src/components/Toolbar.tsx
634
- function Pe({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
673
+ function Le({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", shortcutLabel: r = "⌘K", shortcutKey: i = "k", children: a }) {
635
674
  let o = p(null);
636
675
  return l(() => {
637
676
  function e(e) {
@@ -639,45 +678,45 @@ function Pe({ searchValue: e, onSearchChange: t, placeholder: n = "Search…", s
639
678
  }
640
679
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
641
680
  }, [i]), /* @__PURE__ */ v("div", {
642
- className: Ne.toolbar,
681
+ className: Ie.toolbar,
643
682
  children: [/* @__PURE__ */ v("div", {
644
- className: Ne.searchWrap,
683
+ className: Ie.searchWrap,
645
684
  children: [
646
685
  /* @__PURE__ */ _("span", {
647
- className: Ne.searchIcon,
648
- children: /* @__PURE__ */ _(xe, {})
686
+ className: Ie.searchIcon,
687
+ children: /* @__PURE__ */ _(Ce, {})
649
688
  }),
650
689
  /* @__PURE__ */ _("input", {
651
690
  ref: o,
652
691
  type: "text",
653
- className: Ne.search,
692
+ className: Ie.search,
654
693
  placeholder: n,
655
694
  autoComplete: "off",
656
695
  value: e,
657
696
  onChange: (e) => t?.(e.target.value)
658
697
  }),
659
698
  r && /* @__PURE__ */ _("span", {
660
- className: Ne.searchShortcut,
699
+ className: Ie.searchShortcut,
661
700
  "aria-hidden": "true",
662
701
  children: r
663
702
  })
664
703
  ]
665
704
  }), a && /* @__PURE__ */ _("div", {
666
- className: Ne.controls,
705
+ className: Ie.controls,
667
706
  children: a
668
707
  })]
669
708
  });
670
709
  }
671
- var Fe = {
672
- anchor: "_anchor_5o5sk_3",
673
- sentinel: "_sentinel_5o5sk_8",
674
- header: "_header_5o5sk_17",
675
- animated: "_animated_5o5sk_43",
676
- card: "_card_5o5sk_49",
677
- left: "_left_5o5sk_85",
678
- right: "_right_5o5sk_86"
679
- }, Ie = 4;
680
- function Le(e) {
710
+ var Re = {
711
+ anchor: "_anchor_1pdzu_3",
712
+ sentinel: "_sentinel_1pdzu_8",
713
+ header: "_header_1pdzu_17",
714
+ animated: "_animated_1pdzu_43",
715
+ card: "_card_1pdzu_49",
716
+ left: "_left_1pdzu_103",
717
+ right: "_right_1pdzu_104"
718
+ }, ze = 4;
719
+ function Be(e) {
681
720
  let t = e.parentElement;
682
721
  for (; t && t !== document.body && t !== document.documentElement;) {
683
722
  let { overflowY: e } = getComputedStyle(t);
@@ -686,59 +725,61 @@ function Le(e) {
686
725
  }
687
726
  return null;
688
727
  }
689
- function Re({ left: e, right: t, children: n, scrollRoot: r, threshold: i = Ie, onStateChange: a, className: o, "data-testid": s = "header" }) {
690
- let c = p(null), [u, d] = m("top"), [f, h] = m(!1), y = p(a);
728
+ function Ve({ left: e, right: t, children: n, scrollRoot: r, threshold: i = ze, floatOnMobile: a = !1, onStateChange: o, className: s, "data-testid": c = "header" }) {
729
+ let u = p(null), [d, f] = m("top"), [h, y] = m(!1), b = p(o);
691
730
  l(() => {
692
- y.current = a;
731
+ b.current = o;
693
732
  });
694
- let b = p("top");
733
+ let x = p("top");
695
734
  l(() => {
696
- b.current !== u && (b.current = u, y.current?.(u));
697
- }, [u]), l(() => {
698
- let e = c.current;
735
+ x.current !== d && (x.current = d, b.current?.(d));
736
+ }, [d]), l(() => {
737
+ let e = u.current;
699
738
  if (!e) return;
700
739
  let t, n, i = !0, a = 0, o = () => {
701
- let o = r === void 0 ? Le(e) : r;
740
+ let o = r === void 0 ? Be(e) : r;
702
741
  t && o === n || (t?.disconnect(), n = o, t = new IntersectionObserver((e) => {
703
742
  let t = e[e.length - 1];
704
- d(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => h(!0)));
743
+ f(t.isIntersecting ? "top" : "floating"), i && (i = !1, a = requestAnimationFrame(() => y(!0)));
705
744
  }, { root: o }), t.observe(e));
706
745
  };
707
746
  return o(), window.addEventListener("resize", o), () => {
708
747
  window.removeEventListener("resize", o), cancelAnimationFrame(a), t?.disconnect();
709
748
  };
710
749
  }, [r, i]);
711
- let x = [
712
- Fe.card,
713
- f ? Fe.animated : "",
714
- o
750
+ let S = [
751
+ Re.card,
752
+ h ? Re.animated : "",
753
+ s
715
754
  ].filter(Boolean).join(" ");
716
755
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
717
- className: Fe.anchor,
756
+ className: Re.anchor,
718
757
  "aria-hidden": "true",
719
758
  children: /* @__PURE__ */ _("div", {
720
- ref: c,
721
- className: Fe.sentinel,
759
+ ref: u,
760
+ className: Re.sentinel,
722
761
  style: { top: i }
723
762
  })
724
763
  }), /* @__PURE__ */ _("header", {
725
- className: [Fe.header, f ? Fe.animated : ""].filter(Boolean).join(" "),
726
- "data-state": u,
727
- "data-testid": s,
764
+ className: [Re.header, h ? Re.animated : ""].filter(Boolean).join(" "),
765
+ "data-state": d,
766
+ "data-float-mobile": a ? "" : void 0,
767
+ "data-testid": c,
728
768
  children: /* @__PURE__ */ _("div", {
729
- className: x,
730
- "data-state": u,
769
+ className: S,
770
+ "data-state": d,
771
+ "data-float-mobile": a ? "" : void 0,
731
772
  children: n ?? /* @__PURE__ */ v(g, { children: [e && /* @__PURE__ */ _("div", {
732
- className: Fe.left,
773
+ className: Re.left,
733
774
  children: e
734
775
  }), t && /* @__PURE__ */ _("div", {
735
- className: Fe.right,
776
+ className: Re.right,
736
777
  children: t
737
778
  })] })
738
779
  })
739
780
  })] });
740
781
  }
741
- var ze = {
782
+ var He = {
742
783
  checkbox: "_checkbox_fknu2_1",
743
784
  control: "_control_fknu2_8",
744
785
  labelText: "_labelText_fknu2_17",
@@ -749,15 +790,15 @@ var ze = {
749
790
  };
750
791
  //#endregion
751
792
  //#region src/components/Checkbox.tsx
752
- function Be({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
793
+ function Ue({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel: a, disabled: o, className: s, ref: c }) {
753
794
  return /* @__PURE__ */ v("label", {
754
- className: `${ze.checkbox} ${s ?? ""}`,
795
+ className: `${He.checkbox} ${s ?? ""}`,
755
796
  children: [/* @__PURE__ */ v("span", {
756
- className: ze.control,
797
+ className: He.control,
757
798
  children: [/* @__PURE__ */ _("input", {
758
799
  ref: c,
759
800
  type: "checkbox",
760
- className: ze.input,
801
+ className: He.input,
761
802
  checked: e,
762
803
  onChange: t,
763
804
  onBlur: n,
@@ -765,46 +806,46 @@ function Be({ checked: e, onChange: t, onBlur: n, name: r, label: i, ariaLabel:
765
806
  "aria-label": a,
766
807
  disabled: o
767
808
  }), /* @__PURE__ */ _("span", {
768
- className: ze.box,
809
+ className: He.box,
769
810
  children: /* @__PURE__ */ _("svg", {
770
- className: ze.icon,
811
+ className: He.icon,
771
812
  viewBox: "0 0 17 18",
772
813
  "aria-hidden": "true",
773
814
  children: /* @__PURE__ */ _("polyline", { points: "1 9 7 14 15 4" })
774
815
  })
775
816
  })]
776
817
  }), i && /* @__PURE__ */ _("span", {
777
- className: ze.labelText,
818
+ className: He.labelText,
778
819
  children: i
779
820
  })]
780
821
  });
781
822
  }
782
- function Ve({ checked: e, disabled: t }) {
823
+ function We({ checked: e, disabled: t }) {
783
824
  return /* @__PURE__ */ _("span", {
784
- className: `${ze.box} ${ze.indicator}`,
825
+ className: `${He.box} ${He.indicator}`,
785
826
  "data-checked": e,
786
827
  "data-disabled": t || void 0,
787
828
  "aria-hidden": "true",
788
829
  children: /* @__PURE__ */ _("svg", {
789
- className: ze.icon,
830
+ className: He.icon,
790
831
  viewBox: "0 0 17 18",
791
832
  "aria-hidden": "true",
792
833
  children: /* @__PURE__ */ _("polyline", { points: "1 9 7 14 15 4" })
793
834
  })
794
835
  });
795
836
  }
796
- function He({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
837
+ function Ge({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
797
838
  function o(e) {
798
839
  r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]);
799
840
  }
800
841
  return /* @__PURE__ */ v("div", {
801
842
  role: "group",
802
843
  "aria-label": e ? void 0 : a["aria-label"],
803
- className: Ae.group,
804
- children: [e && /* @__PURE__ */ _(W, {
805
- className: Ae.groupLabel,
844
+ className: Me.group,
845
+ children: [e && /* @__PURE__ */ _(Pe, {
846
+ className: Me.groupLabel,
806
847
  children: e
807
- }), t.map((e) => /* @__PURE__ */ _(Be, {
848
+ }), t.map((e) => /* @__PURE__ */ _(Ue, {
808
849
  checked: n.includes(e.value),
809
850
  onChange: () => o(e.value),
810
851
  label: e.label,
@@ -812,7 +853,7 @@ function He({ label: e, items: t, value: n, onChange: r, disabled: i, ...a }) {
812
853
  }, e.value))]
813
854
  });
814
855
  }
815
- var Ue = {
856
+ var Ke = {
816
857
  radio: "_radio_46a3j_1",
817
858
  control: "_control_46a3j_8",
818
859
  labelText: "_labelText_46a3j_17",
@@ -822,15 +863,15 @@ var Ue = {
822
863
  };
823
864
  //#endregion
824
865
  //#region src/components/RadioButton.tsx
825
- function We({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
866
+ function qe({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, ariaLabel: o, disabled: s, className: c, ref: l }) {
826
867
  return /* @__PURE__ */ v("label", {
827
- className: `${Ue.radio} ${c ?? ""}`,
868
+ className: `${Ke.radio} ${c ?? ""}`,
828
869
  children: [/* @__PURE__ */ v("span", {
829
- className: Ue.control,
870
+ className: Ke.control,
830
871
  children: [/* @__PURE__ */ _("input", {
831
872
  ref: l,
832
873
  type: "radio",
833
- className: Ue.input,
874
+ className: Ke.input,
834
875
  checked: e,
835
876
  onChange: t,
836
877
  onBlur: n,
@@ -839,24 +880,24 @@ function We({ checked: e, onChange: t, onBlur: n, name: r, value: i, label: a, a
839
880
  "aria-label": o,
840
881
  disabled: s
841
882
  }), /* @__PURE__ */ _("span", {
842
- className: Ue.circle,
843
- children: /* @__PURE__ */ _("span", { className: Ue.dot })
883
+ className: Ke.circle,
884
+ children: /* @__PURE__ */ _("span", { className: Ke.dot })
844
885
  })]
845
886
  }), a && /* @__PURE__ */ _("span", {
846
- className: Ue.labelText,
887
+ className: Ke.labelText,
847
888
  children: a
848
889
  })]
849
890
  });
850
891
  }
851
- function Ge({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
892
+ function Je({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, ...o }) {
852
893
  return /* @__PURE__ */ v("div", {
853
894
  role: "radiogroup",
854
895
  "aria-label": e ? void 0 : o["aria-label"],
855
- className: Ae.group,
856
- children: [e && /* @__PURE__ */ _(W, {
857
- className: Ae.groupLabel,
896
+ className: Me.group,
897
+ children: [e && /* @__PURE__ */ _(Pe, {
898
+ className: Me.groupLabel,
858
899
  children: e
859
- }), n.map((e) => /* @__PURE__ */ _(We, {
900
+ }), n.map((e) => /* @__PURE__ */ _(qe, {
860
901
  name: t,
861
902
  value: e.value,
862
903
  checked: r === e.value,
@@ -866,7 +907,7 @@ function Ge({ label: e, name: t, items: n, value: r, onChange: i, disabled: a, .
866
907
  }, e.value))]
867
908
  });
868
909
  }
869
- var Ke = {
910
+ var Ye = {
870
911
  switch: "_switch_2mkka_1",
871
912
  input: "_input_2mkka_7",
872
913
  control: "_control_2mkka_10",
@@ -878,25 +919,25 @@ var Ke = {
878
919
  };
879
920
  //#endregion
880
921
  //#region src/components/Switch.tsx
881
- function qe({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
922
+ function Xe({ checked: e, onChange: t, size: n = "base", label: r, ariaLabel: i, disabled: a, className: o }) {
882
923
  return /* @__PURE__ */ v("label", {
883
- className: `${Ke.switch} ${o ?? ""}`,
924
+ className: `${Ye.switch} ${o ?? ""}`,
884
925
  children: [/* @__PURE__ */ v("span", {
885
- className: `${Ke.control} ${Ke[n]}`,
926
+ className: `${Ye.control} ${Ye[n]}`,
886
927
  children: [/* @__PURE__ */ _("input", {
887
928
  type: "checkbox",
888
929
  role: "switch",
889
- className: Ke.input,
930
+ className: Ye.input,
890
931
  checked: e,
891
932
  onChange: t,
892
933
  "aria-label": i,
893
934
  disabled: a
894
935
  }), /* @__PURE__ */ _("span", {
895
- className: Ke.track,
896
- children: /* @__PURE__ */ _("span", { className: Ke.thumb })
936
+ className: Ye.track,
937
+ children: /* @__PURE__ */ _("span", { className: Ye.thumb })
897
938
  })]
898
939
  }), r && /* @__PURE__ */ _("span", {
899
- className: Ke.labelText,
940
+ className: Ye.labelText,
900
941
  children: r
901
942
  })]
902
943
  });
@@ -921,12 +962,12 @@ var G = {
921
962
  };
922
963
  //#endregion
923
964
  //#region src/components/TextField.tsx
924
- function Je({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
965
+ function Ze({ label: e, helperText: t, error: n, size: r = "base", variant: i = "default", leadingIcon: a, shortcut: o, id: s, className: c, ref: l, ...d }) {
925
966
  let f = u(), m = s ?? f, h = p(null);
926
967
  return E(o, () => h.current?.focus()), /* @__PURE__ */ v("div", {
927
968
  className: [G.field, c].filter(Boolean).join(" "),
928
969
  children: [
929
- e && /* @__PURE__ */ _(W, {
970
+ e && /* @__PURE__ */ _(Pe, {
930
971
  htmlFor: m,
931
972
  children: e
932
973
  }),
@@ -985,10 +1026,10 @@ var K = {
985
1026
  };
986
1027
  //#endregion
987
1028
  //#region src/components/TextArea.tsx
988
- function Ye(e, t) {
1029
+ function Qe(e, t) {
989
1030
  typeof e == "function" ? e(t) : e && (e.current = t);
990
1031
  }
991
- function Xe({ 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: y, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: T, "aria-describedby": E, ...D }) {
1032
+ function $e({ 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: y, defaultValue: b, maxLength: x, disabled: S, readOnly: C, onChange: w, onInput: T, "aria-describedby": E, ...D }) {
992
1033
  let O = u(), k = l ?? O, A = p(null), j = y !== void 0, [M, N] = m(() => String(b ?? "").length), P = j ? String(y).length : M, F = s(() => {
993
1034
  let e = A.current;
994
1035
  if (!e || !a) return;
@@ -1015,15 +1056,15 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1015
1056
  let e = A.current;
1016
1057
  !a && e && (e.style.height = "", e.style.overflowY = "");
1017
1058
  }, [a]);
1018
- let I = (e) => {
1059
+ let ee = (e) => {
1019
1060
  j || N(e.target.value.length), w?.(e);
1020
- }, L = (e) => {
1061
+ }, I = (e) => {
1021
1062
  j || (N(e.currentTarget.value.length), F()), T?.(e);
1022
- }, R = `${k}-helper`, ee = `${k}-error`, te = `${k}-count`, z = [
1063
+ }, L = `${k}-helper`, R = `${k}-error`, z = `${k}-count`, B = [
1023
1064
  E,
1024
- n ? ee : t ? R : null,
1025
- c ? te : null
1026
- ].filter(Boolean).join(" ") || void 0, ne = x ? P / x : 0, re = ne >= 1 ? K.countLimit : ne >= .9 ? K.countNear : "", B = [
1065
+ n ? R : t ? L : null,
1066
+ c ? z : null
1067
+ ].filter(Boolean).join(" ") || void 0, te = x ? P / x : 0, ne = te >= 1 ? K.countLimit : te >= .9 ? K.countNear : "", re = [
1027
1068
  K.wrap,
1028
1069
  K[r],
1029
1070
  n ? K.errorWrap : "",
@@ -1033,16 +1074,16 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1033
1074
  return /* @__PURE__ */ v("div", {
1034
1075
  className: [K.field, f].filter(Boolean).join(" "),
1035
1076
  children: [
1036
- e && /* @__PURE__ */ _(W, {
1077
+ e && /* @__PURE__ */ _(Pe, {
1037
1078
  htmlFor: k,
1038
1079
  children: e
1039
1080
  }),
1040
1081
  /* @__PURE__ */ _("div", {
1041
- className: B,
1082
+ className: re,
1042
1083
  children: /* @__PURE__ */ _("textarea", {
1043
1084
  ...D,
1044
1085
  ref: (e) => {
1045
- A.current = e, Ye(h, e);
1086
+ A.current = e, Qe(h, e);
1046
1087
  },
1047
1088
  id: k,
1048
1089
  className: `${K.textarea} ${K[`resize-${ie}`]}`,
@@ -1053,24 +1094,24 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1053
1094
  disabled: S,
1054
1095
  readOnly: C,
1055
1096
  "aria-invalid": n ? !0 : D["aria-invalid"],
1056
- "aria-describedby": z,
1057
- onChange: I,
1058
- onInput: L
1097
+ "aria-describedby": B,
1098
+ onChange: ee,
1099
+ onInput: I
1059
1100
  })
1060
1101
  }),
1061
1102
  (n || t || c) && /* @__PURE__ */ v("div", {
1062
1103
  className: K.footer,
1063
1104
  children: [n ? /* @__PURE__ */ _("span", {
1064
- id: ee,
1105
+ id: R,
1065
1106
  className: K.errorText,
1066
1107
  children: n
1067
1108
  }) : t ? /* @__PURE__ */ _("span", {
1068
- id: R,
1109
+ id: L,
1069
1110
  className: K.helperText,
1070
1111
  children: t
1071
1112
  }) : null, c && /* @__PURE__ */ _("span", {
1072
- id: te,
1073
- className: `${K.count} ${re}`,
1113
+ id: z,
1114
+ className: `${K.count} ${ne}`,
1074
1115
  children: x ? `${P} / ${x}` : P
1075
1116
  })]
1076
1117
  })
@@ -1079,12 +1120,12 @@ function Xe({ label: e, helperText: t, error: n, size: r = "base", resize: i = "
1079
1120
  }
1080
1121
  //#endregion
1081
1122
  //#region src/components/PasswordField.tsx
1082
- function Ze({ 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 }) {
1123
+ function et({ 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 }) {
1083
1124
  let p = u(), h = s ?? p, [g, y] = m(o);
1084
1125
  return /* @__PURE__ */ v("div", {
1085
1126
  className: [G.field, c].filter(Boolean).join(" "),
1086
1127
  children: [
1087
- e && /* @__PURE__ */ _(W, {
1128
+ e && /* @__PURE__ */ _(Pe, {
1088
1129
  htmlFor: h,
1089
1130
  children: e
1090
1131
  }),
@@ -1106,7 +1147,7 @@ function Ze({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
1106
1147
  "aria-controls": h,
1107
1148
  disabled: d,
1108
1149
  onClick: () => y((e) => !e),
1109
- children: _(g ? H : he, {})
1150
+ children: _(g ? he : _e, {})
1110
1151
  })]
1111
1152
  }),
1112
1153
  n ? /* @__PURE__ */ _("span", {
@@ -1121,12 +1162,12 @@ function Ze({ label: e, helperText: t, error: n, size: r = "base", showLabel: i
1121
1162
  }
1122
1163
  //#endregion
1123
1164
  //#region src/components/DateField.tsx
1124
- function Qe({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
1165
+ function tt({ label: e, helperText: t, error: n, size: r = "base", openLabel: i = "Open calendar", id: a, className: o, ref: s, onClick: c, disabled: l, ...d }) {
1125
1166
  let f = u(), p = a ?? f;
1126
1167
  return /* @__PURE__ */ v("div", {
1127
1168
  className: [G.field, o].filter(Boolean).join(" "),
1128
1169
  children: [
1129
- e && /* @__PURE__ */ _(W, {
1170
+ e && /* @__PURE__ */ _(Pe, {
1130
1171
  htmlFor: p,
1131
1172
  children: e
1132
1173
  }),
@@ -1145,7 +1186,7 @@ function Qe({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
1145
1186
  }), /* @__PURE__ */ _("span", {
1146
1187
  className: `${G.pickerChevron} ${r === "sm" ? G.pickerChevronSm : ""}`,
1147
1188
  "aria-hidden": !0,
1148
- children: /* @__PURE__ */ _(le, {})
1189
+ children: /* @__PURE__ */ _(de, {})
1149
1190
  })]
1150
1191
  }),
1151
1192
  n ? /* @__PURE__ */ _("span", {
@@ -1160,44 +1201,44 @@ function Qe({ label: e, helperText: t, error: n, size: r = "base", openLabel: i
1160
1201
  }
1161
1202
  //#endregion
1162
1203
  //#region src/utils/date.ts
1163
- function $e(e) {
1204
+ function nt(e) {
1164
1205
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
1165
1206
  }
1166
- function et(e, t) {
1207
+ function rt(e, t) {
1167
1208
  return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
1168
1209
  }
1169
- function tt(e, t) {
1210
+ function it(e, t) {
1170
1211
  return new Date(e, t + 1, 0).getDate();
1171
1212
  }
1172
- function nt(e, t) {
1173
- let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), tt(n.getFullYear(), n.getMonth()));
1213
+ function at(e, t) {
1214
+ let n = new Date(e.getFullYear(), e.getMonth() + t, 1), r = Math.min(e.getDate(), it(n.getFullYear(), n.getMonth()));
1174
1215
  return new Date(n.getFullYear(), n.getMonth(), r);
1175
1216
  }
1176
- function rt(e, t) {
1217
+ function ot(e, t) {
1177
1218
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1178
1219
  }
1179
- function it(e, t) {
1220
+ function st(e, t) {
1180
1221
  return e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate();
1181
1222
  }
1182
- function at(e, t, n) {
1183
- return !!(t && it(e, t) < 0 || n && it(e, n) > 0);
1223
+ function ct(e, t, n) {
1224
+ return !!(t && st(e, t) < 0 || n && st(e, n) > 0);
1184
1225
  }
1185
- function ot(e, t, n) {
1186
- return t && it(e, t) < 0 ? $e(t) : n && it(e, n) > 0 ? $e(n) : $e(e);
1226
+ function lt(e, t, n) {
1227
+ return t && st(e, t) < 0 ? nt(t) : n && st(e, n) > 0 ? nt(n) : nt(e);
1187
1228
  }
1188
- function st(e, t) {
1189
- return et(e, -((e.getDay() - t + 7) % 7));
1229
+ function ut(e, t) {
1230
+ return rt(e, -((e.getDay() - t + 7) % 7));
1190
1231
  }
1191
- function ct(e, t) {
1192
- return et(st(e, t), 6);
1232
+ function dt(e, t) {
1233
+ return rt(ut(e, t), 6);
1193
1234
  }
1194
- var lt = 6;
1195
- function ut(e, t, n) {
1196
- let r = st(new Date(e, t, 1), n), i = [];
1197
- for (let e = 0; e < lt; e++) {
1235
+ var ft = 6;
1236
+ function pt(e, t, n) {
1237
+ let r = ut(new Date(e, t, 1), n), i = [];
1238
+ for (let e = 0; e < ft; e++) {
1198
1239
  let n = [];
1199
1240
  for (let i = 0; i < 7; i++) {
1200
- let a = et(r, e * 7 + i);
1241
+ let a = rt(r, e * 7 + i);
1201
1242
  n.push({
1202
1243
  date: a,
1203
1244
  inMonth: a.getMonth() === t
@@ -1220,22 +1261,22 @@ var q = {
1220
1261
  disabled: "_disabled_12ign_61",
1221
1262
  outside: "_outside_12ign_68",
1222
1263
  today: "_today_12ign_71"
1223
- }, dt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1224
- function ft(e, t) {
1264
+ }, mt = (e) => `${e.getFullYear()}-${e.getMonth() + 1}-${e.getDate()}`;
1265
+ function ht(e, t) {
1225
1266
  return e.charAt(0).toLocaleUpperCase(t) + e.slice(1);
1226
1267
  }
1227
- function pt({ 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 }) {
1228
- let [h, g] = m(() => ot(e ?? /* @__PURE__ */ new Date(), n, r)), y = e ? dt(e) : null, [b, x] = m(y);
1229
- y !== b && (x(y), e && g(ot(e, n, r)));
1268
+ function gt({ 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 }) {
1269
+ let [h, g] = m(() => lt(e ?? /* @__PURE__ */ new Date(), n, r)), y = e ? mt(e) : null, [b, x] = m(y);
1270
+ y !== b && (x(y), e && g(lt(e, n, r)));
1230
1271
  let S = p(null), C = p(!!o), w = u();
1231
1272
  l(() => {
1232
- C.current && (C.current = !1, S.current?.querySelector(`[data-date="${dt(h)}"]`)?.focus());
1273
+ C.current && (C.current = !1, S.current?.querySelector(`[data-date="${mt(h)}"]`)?.focus());
1233
1274
  }, [h]);
1234
- let T = h.getFullYear(), E = h.getMonth(), D = f(() => ut(T, E, a), [
1275
+ let T = h.getFullYear(), E = h.getMonth(), D = f(() => pt(T, E, a), [
1235
1276
  T,
1236
1277
  E,
1237
1278
  a
1238
- ]), k = $e(/* @__PURE__ */ new Date()), A = f(() => ({
1279
+ ]), k = nt(/* @__PURE__ */ new Date()), A = f(() => ({
1239
1280
  title: new Intl.DateTimeFormat(i, {
1240
1281
  month: "long",
1241
1282
  year: "numeric"
@@ -1244,46 +1285,46 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1244
1285
  long: new Intl.DateTimeFormat(i, { weekday: "long" }),
1245
1286
  full: new Intl.DateTimeFormat(i, { dateStyle: "full" })
1246
1287
  }), [i]), j = D[0].map(({ date: e }) => ({
1247
- short: ft(A.short.format(e), i).slice(0, 2),
1288
+ short: ht(A.short.format(e), i).slice(0, 2),
1248
1289
  long: A.long.format(e)
1249
- })), M = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < $e(n), N = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > $e(r), P = M(h), F = N(h);
1250
- function I(e) {
1251
- C.current = !0, g(ot(e, n, r));
1290
+ })), M = (e) => !!n && new Date(e.getFullYear(), e.getMonth(), 0) < nt(n), N = (e) => !!r && new Date(e.getFullYear(), e.getMonth() + 1, 1) > nt(r), P = M(h), F = N(h);
1291
+ function ee(e) {
1292
+ C.current = !0, g(lt(e, n, r));
1252
1293
  }
1253
- function L(e) {
1254
- let t = ot(nt(h, e), n, r);
1294
+ function I(e) {
1295
+ let t = lt(at(h, e), n, r);
1255
1296
  C.current = e < 0 ? M(t) : N(t), g(t);
1256
1297
  }
1257
- function R(e) {
1298
+ function L(e) {
1258
1299
  let t = null;
1259
1300
  switch (e.key) {
1260
1301
  case "ArrowLeft":
1261
- t = et(h, -1);
1302
+ t = rt(h, -1);
1262
1303
  break;
1263
1304
  case "ArrowRight":
1264
- t = et(h, 1);
1305
+ t = rt(h, 1);
1265
1306
  break;
1266
1307
  case "ArrowUp":
1267
- t = et(h, -7);
1308
+ t = rt(h, -7);
1268
1309
  break;
1269
1310
  case "ArrowDown":
1270
- t = et(h, 7);
1311
+ t = rt(h, 7);
1271
1312
  break;
1272
1313
  case "PageUp":
1273
- t = nt(h, -1);
1314
+ t = at(h, -1);
1274
1315
  break;
1275
1316
  case "PageDown":
1276
- t = nt(h, 1);
1317
+ t = at(h, 1);
1277
1318
  break;
1278
1319
  case "Home":
1279
- t = st(h, a);
1320
+ t = ut(h, a);
1280
1321
  break;
1281
- case "End": t = ct(h, a);
1322
+ case "End": t = dt(h, a);
1282
1323
  }
1283
- t && (e.preventDefault(), I(t));
1324
+ t && (e.preventDefault(), ee(t));
1284
1325
  }
1285
- function ee(e) {
1286
- let n = $e(e);
1326
+ function R(e) {
1327
+ let n = nt(e);
1287
1328
  g(n), t(n);
1288
1329
  }
1289
1330
  return /* @__PURE__ */ v("div", {
@@ -1295,16 +1336,16 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1295
1336
  variant: "tertiary",
1296
1337
  size: "sm",
1297
1338
  className: q.navButton,
1298
- leadingIcon: /* @__PURE__ */ _(de, {}),
1339
+ leadingIcon: /* @__PURE__ */ _(H, {}),
1299
1340
  "aria-label": s,
1300
1341
  disabled: P,
1301
- onClick: () => L(-1)
1342
+ onClick: () => I(-1)
1302
1343
  }),
1303
1344
  /* @__PURE__ */ _("div", {
1304
1345
  id: w,
1305
1346
  className: q.title,
1306
1347
  "aria-live": "polite",
1307
- children: ft(A.title.format(h), i)
1348
+ children: ht(A.title.format(h), i)
1308
1349
  }),
1309
1350
  /* @__PURE__ */ _(O, {
1310
1351
  variant: "tertiary",
@@ -1313,7 +1354,7 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1313
1354
  leadingIcon: /* @__PURE__ */ _(pe, {}),
1314
1355
  "aria-label": c,
1315
1356
  disabled: F,
1316
- onClick: () => L(1)
1357
+ onClick: () => I(1)
1317
1358
  })
1318
1359
  ]
1319
1360
  }), /* @__PURE__ */ v("div", {
@@ -1321,7 +1362,7 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1321
1362
  role: "grid",
1322
1363
  "aria-labelledby": w,
1323
1364
  className: q.grid,
1324
- onKeyDown: R,
1365
+ onKeyDown: L,
1325
1366
  children: [/* @__PURE__ */ _("div", {
1326
1367
  role: "row",
1327
1368
  className: q.row,
@@ -1335,12 +1376,12 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1335
1376
  role: "row",
1336
1377
  className: q.row,
1337
1378
  children: t.map(({ date: t, inMonth: i }) => {
1338
- let a = at(t, n, r), o = !!e && rt(t, e), s = rt(t, k);
1379
+ let a = ct(t, n, r), o = !!e && ot(t, e), s = ot(t, k);
1339
1380
  return /* @__PURE__ */ _("button", {
1340
1381
  type: "button",
1341
1382
  role: "gridcell",
1342
- "data-date": dt(t),
1343
- tabIndex: rt(t, h) ? 0 : -1,
1383
+ "data-date": mt(t),
1384
+ tabIndex: ot(t, h) ? 0 : -1,
1344
1385
  "aria-selected": o,
1345
1386
  "aria-disabled": a || void 0,
1346
1387
  "aria-current": s ? "date" : void 0,
@@ -1353,43 +1394,43 @@ function pt({ value: e, onChange: t, minDate: n, maxDate: r, locale: i = "en", w
1353
1394
  a && q.disabled
1354
1395
  ].filter(Boolean).join(" "),
1355
1396
  onMouseDown: a ? (e) => e.preventDefault() : void 0,
1356
- onClick: a ? void 0 : () => ee(t),
1397
+ onClick: a ? void 0 : () => R(t),
1357
1398
  children: t.getDate()
1358
- }, dt(t));
1399
+ }, mt(t));
1359
1400
  })
1360
- }, dt(t[0].date)))]
1401
+ }, mt(t[0].date)))]
1361
1402
  })]
1362
1403
  });
1363
1404
  }
1364
- var mt = { popup: "_popup_hem3z_1" }, ht = "(max-width: 480px)", gt = 4, _t = 8;
1365
- function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: y = "bottom-start", label: b, helperText: x, error: S, size: C, openLabel: w, placeholder: T, dialogLabel: E = "Choose date", className: D, id: O }) {
1405
+ var _t = { popup: "_popup_hem3z_1" }, vt = "(max-width: 480px)", yt = 4, bt = 8;
1406
+ function xt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale: a = "en", weekStartsOn: o = 0, formatValue: c, placement: y = "bottom-start", label: b, helperText: x, error: S, size: C, openLabel: w, placeholder: T, dialogLabel: E = "Choose date", className: D, id: O }) {
1366
1407
  let [k, A] = m(!1), j = p(null), M = p(null), N = u(), P = k && !i, F = f(() => new Intl.DateTimeFormat(a, {
1367
1408
  month: "short",
1368
1409
  day: "2-digit"
1369
- }), [a]), I = e ? c ? c(e) : F.format(e) : "", L = s(() => j.current?.parentElement ?? j.current, []), R = s(() => {
1370
- let e = M.current, t = L();
1410
+ }), [a]), ee = e ? c ? c(e) : F.format(e) : "", I = s(() => j.current?.parentElement ?? j.current, []), L = s(() => {
1411
+ let e = M.current, t = I();
1371
1412
  if (!e || !t) return;
1372
- if (window.matchMedia(ht).matches) {
1413
+ if (window.matchMedia(vt).matches) {
1373
1414
  e.style.left = "", e.style.top = "";
1374
1415
  return;
1375
1416
  }
1376
1417
  let n = t.getBoundingClientRect(), r = e.offsetWidth, i = e.offsetHeight, a = document.documentElement.clientWidth, o = window.innerHeight, s = y === "bottom-end" ? n.right - r : n.left;
1377
- s = Math.max(_t, Math.min(s, a - r - _t));
1378
- let c = n.bottom + gt, l = c + i <= o - _t, u = n.top - gt - i >= _t;
1379
- !l && u && (c = n.top - gt - i), e.style.left = `${s}px`, e.style.top = `${c}px`;
1380
- }, [L, y]);
1418
+ s = Math.max(bt, Math.min(s, a - r - bt));
1419
+ let c = n.bottom + yt, l = c + i <= o - bt, u = n.top - yt - i >= bt;
1420
+ !l && u && (c = n.top - yt - i), e.style.left = `${s}px`, e.style.top = `${c}px`;
1421
+ }, [I, y]);
1381
1422
  d(() => {
1382
- if (P) return R(), window.addEventListener("resize", R), window.addEventListener("scroll", R, !0), () => {
1383
- window.removeEventListener("resize", R), window.removeEventListener("scroll", R, !0);
1423
+ if (P) return L(), window.addEventListener("resize", L), window.addEventListener("scroll", L, !0), () => {
1424
+ window.removeEventListener("resize", L), window.removeEventListener("scroll", L, !0);
1384
1425
  };
1385
- }, [P, R]), l(() => {
1426
+ }, [P, L]), l(() => {
1386
1427
  if (!P) return;
1387
1428
  function e() {
1388
1429
  A(!1), j.current?.focus();
1389
1430
  }
1390
1431
  function t(e) {
1391
1432
  let t = e.target;
1392
- M.current?.contains(t) || L()?.contains(t) || A(!1);
1433
+ M.current?.contains(t) || I()?.contains(t) || A(!1);
1393
1434
  }
1394
1435
  function n(t) {
1395
1436
  if (t.key === "Escape") {
@@ -1410,14 +1451,14 @@ function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1410
1451
  return window.addEventListener("pointerdown", t), window.addEventListener("keydown", n), () => {
1411
1452
  window.removeEventListener("pointerdown", t), window.removeEventListener("keydown", n);
1412
1453
  };
1413
- }, [P, L]);
1414
- function ee(e) {
1454
+ }, [P, I]);
1455
+ function R(e) {
1415
1456
  (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), i || A(!0));
1416
1457
  }
1417
- function te(e) {
1458
+ function z(e) {
1418
1459
  t(e), A(!1), j.current?.focus();
1419
1460
  }
1420
- return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Qe, {
1461
+ return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(tt, {
1421
1462
  ref: j,
1422
1463
  id: O,
1423
1464
  className: D,
@@ -1428,23 +1469,23 @@ function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1428
1469
  openLabel: w,
1429
1470
  placeholder: T,
1430
1471
  disabled: i,
1431
- value: I,
1472
+ value: ee,
1432
1473
  role: "combobox",
1433
1474
  "aria-haspopup": "dialog",
1434
1475
  "aria-expanded": P,
1435
1476
  "aria-controls": P ? N : void 0,
1436
1477
  onClick: () => !i && A((e) => !e),
1437
- onKeyDown: ee
1478
+ onKeyDown: R
1438
1479
  }), P && h(/* @__PURE__ */ _("div", {
1439
1480
  ref: M,
1440
1481
  id: N,
1441
1482
  role: "dialog",
1442
1483
  "aria-label": E,
1443
- className: mt.popup,
1444
- children: /* @__PURE__ */ _(pt, {
1484
+ className: _t.popup,
1485
+ children: /* @__PURE__ */ _(gt, {
1445
1486
  autoFocus: !0,
1446
1487
  value: e,
1447
- onChange: te,
1488
+ onChange: z,
1448
1489
  minDate: n,
1449
1490
  maxDate: r,
1450
1491
  locale: a,
@@ -1452,7 +1493,7 @@ function vt({ value: e, onChange: t, minDate: n, maxDate: r, disabled: i, locale
1452
1493
  })
1453
1494
  }), document.body)] });
1454
1495
  }
1455
- var yt = {
1496
+ var St = {
1456
1497
  field: "_field_j9nb8_1",
1457
1498
  inputWrap: "_inputWrap_j9nb8_6",
1458
1499
  errorWrap: "_errorWrap_j9nb8_19",
@@ -1466,64 +1507,64 @@ var yt = {
1466
1507
  };
1467
1508
  //#endregion
1468
1509
  //#region src/components/NumberField.tsx
1469
- function bt({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1510
+ function Ct({ label: e, helperText: t, error: n, size: r = "base", prefix: i, suffix: a, id: o, ...s }) {
1470
1511
  let c = u(), l = o ?? c;
1471
1512
  return /* @__PURE__ */ v("div", {
1472
- className: yt.field,
1513
+ className: St.field,
1473
1514
  children: [
1474
- e && /* @__PURE__ */ _(W, {
1515
+ e && /* @__PURE__ */ _(Pe, {
1475
1516
  htmlFor: l,
1476
1517
  children: e
1477
1518
  }),
1478
1519
  /* @__PURE__ */ v("div", {
1479
- className: `${yt.inputWrap} ${yt[r]} ${n ? yt.errorWrap : ""}`,
1520
+ className: `${St.inputWrap} ${St[r]} ${n ? St.errorWrap : ""}`,
1480
1521
  children: [
1481
1522
  i && /* @__PURE__ */ _("span", {
1482
- className: yt.prefix,
1523
+ className: St.prefix,
1483
1524
  children: i
1484
1525
  }),
1485
1526
  /* @__PURE__ */ _("input", {
1486
1527
  id: l,
1487
- className: yt.input,
1528
+ className: St.input,
1488
1529
  ...s
1489
1530
  }),
1490
1531
  a && /* @__PURE__ */ _("span", {
1491
- className: yt.suffix,
1532
+ className: St.suffix,
1492
1533
  children: a
1493
1534
  })
1494
1535
  ]
1495
1536
  }),
1496
1537
  n ? /* @__PURE__ */ _("span", {
1497
- className: yt.errorText,
1538
+ className: St.errorText,
1498
1539
  children: n
1499
1540
  }) : t ? /* @__PURE__ */ _("span", {
1500
- className: yt.helperText,
1541
+ className: St.helperText,
1501
1542
  children: t
1502
1543
  }) : null
1503
1544
  ]
1504
1545
  });
1505
1546
  }
1506
- var xt = {
1547
+ var wt = {
1507
1548
  menu: "_menu_471l2_1",
1508
1549
  divider: "_divider_471l2_15"
1509
1550
  };
1510
1551
  //#endregion
1511
1552
  //#region src/components/Menu.tsx
1512
- function St({ children: e, ...t }) {
1553
+ function Tt({ children: e, ...t }) {
1513
1554
  return /* @__PURE__ */ _("div", {
1514
1555
  role: "menu",
1515
- className: xt.menu,
1556
+ className: wt.menu,
1516
1557
  ...t,
1517
1558
  children: e
1518
1559
  });
1519
1560
  }
1520
- function Ct() {
1561
+ function Et() {
1521
1562
  return /* @__PURE__ */ _("div", {
1522
- className: xt.divider,
1563
+ className: wt.divider,
1523
1564
  role: "separator"
1524
1565
  });
1525
1566
  }
1526
- var wt = {
1567
+ var Dt = {
1527
1568
  item: "_item_1uq1n_1",
1528
1569
  base: "_base_1uq1n_21",
1529
1570
  icon: "_icon_1uq1n_28",
@@ -1536,12 +1577,12 @@ var wt = {
1536
1577
  };
1537
1578
  //#endregion
1538
1579
  //#region src/components/MenuItem.tsx
1539
- function Tt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
1580
+ function Ot({ leading: e, icon: t, trailing: n, selected: r, destructive: i, size: a = "sm", children: o, ...s }) {
1540
1581
  let c = [
1541
- wt.item,
1542
- a === "base" && wt.base,
1543
- r && wt.selected,
1544
- i && wt.destructive
1582
+ Dt.item,
1583
+ a === "base" && Dt.base,
1584
+ r && Dt.selected,
1585
+ i && Dt.destructive
1545
1586
  ].filter(Boolean).join(" ");
1546
1587
  return /* @__PURE__ */ v("button", {
1547
1588
  type: "button",
@@ -1550,24 +1591,24 @@ function Tt({ leading: e, icon: t, trailing: n, selected: r, destructive: i, siz
1550
1591
  ...s,
1551
1592
  children: [
1552
1593
  e && /* @__PURE__ */ _("span", {
1553
- className: wt.leading,
1594
+ className: Dt.leading,
1554
1595
  children: e
1555
1596
  }),
1556
1597
  t && /* @__PURE__ */ _("span", {
1557
- className: wt.icon,
1598
+ className: Dt.icon,
1558
1599
  children: t
1559
1600
  }),
1560
1601
  /* @__PURE__ */ _("span", {
1561
- className: wt.label,
1602
+ className: Dt.label,
1562
1603
  children: o
1563
1604
  }),
1564
1605
  n && /* @__PURE__ */ _("span", {
1565
- className: wt.trailing,
1606
+ className: Dt.trailing,
1566
1607
  children: n
1567
1608
  }),
1568
1609
  r && /* @__PURE__ */ _("span", {
1569
- className: wt.check,
1570
- children: /* @__PURE__ */ _(se, {})
1610
+ className: Dt.check,
1611
+ children: /* @__PURE__ */ _(le, {})
1571
1612
  })
1572
1613
  ]
1573
1614
  });
@@ -1609,15 +1650,15 @@ var J = {
1609
1650
  };
1610
1651
  //#endregion
1611
1652
  //#region src/components/Dropdown.tsx
1612
- function Et(e) {
1653
+ function kt(e) {
1613
1654
  return e.searchText === void 0 ? typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : "" : e.searchText;
1614
1655
  }
1615
- function Dt(e) {
1656
+ function At(e) {
1616
1657
  return typeof e.label == "string" || typeof e.label == "number" ? String(e.label) : e.searchText;
1617
1658
  }
1618
- var Ot = (e) => `and ${e} more`;
1619
- function kt(e) {
1620
- let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: y, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": k } = e, A = e.multiple === !0, [j, M] = m(C), [N, P] = m(C), [F, I] = m(""), [L, R] = m(!1), [ee, te] = m(null), z = p(null), ne = p(null), re = p(null), B = p(null), ie = s((e) => {
1659
+ var jt = (e) => `and ${e} more`;
1660
+ function Mt(e) {
1661
+ let { variant: t = "field", triggerLabel: n, menuAlign: r = "start", label: i, helperText: a, error: o, size: c = "base", placeholder: f = "Select…", options: h, disabled: y, searchable: b, searchPlaceholder: x = "Search…", noResultsText: S = "No matches", defaultOpen: C = !1, autoFocus: w, className: T, labelClassName: E, "aria-label": D, "data-testid": k } = e, A = e.multiple === !0, [j, M] = m(C), [N, P] = m(C), [F, ee] = m(""), [I, L] = m(!1), [R, z] = m(null), B = p(null), te = p(null), ne = p(null), re = p(null), ie = s((e) => {
1621
1662
  if (!e) return;
1622
1663
  let t = () => e.toggleAttribute("data-scrollable", e.scrollHeight > e.clientHeight);
1623
1664
  t();
@@ -1628,241 +1669,241 @@ function kt(e) {
1628
1669
  return r.observe(e, { childList: !0 }), () => {
1629
1670
  n.disconnect(), r.disconnect();
1630
1671
  };
1631
- }, []), ae = u(), oe = u(), se = e.multiple ? void 0 : e.value, ce = e.multiple && e.value || [], ue = ce.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), de = A ? void 0 : h.find((e) => e.value === se), fe = F.trim().toLowerCase(), pe = b && fe ? h.filter((e) => Et(e).toLowerCase().includes(fe)) : h, V = pe.filter((e) => !e.disabled).map((e) => e.value), H = t === "field";
1632
- function me() {
1672
+ }, []), ae = u(), V = u(), oe = e.multiple ? void 0 : e.value, se = e.multiple && e.value || [], ce = se.map((e) => h.find((t) => t.value === e)).filter((e) => e !== void 0), le = A ? void 0 : h.find((e) => e.value === oe), ue = F.trim().toLowerCase(), fe = b && ue ? h.filter((e) => kt(e).toLowerCase().includes(ue)) : h, H = fe.filter((e) => !e.disabled).map((e) => e.value), U = t === "field";
1673
+ function pe() {
1633
1674
  P(!0), M(!0);
1634
1675
  }
1635
- function he() {
1636
- M(!1), I("");
1676
+ function me() {
1677
+ M(!1), ee("");
1637
1678
  }
1638
1679
  l(() => {
1639
1680
  if (!j) return;
1640
1681
  if (b) {
1641
- B.current?.focus();
1682
+ re.current?.focus();
1642
1683
  return;
1643
1684
  }
1644
- let e = (A ? ue.find((e) => !e.disabled)?.value : se) ?? V[0];
1645
- (z.current?.querySelector(`[data-value="${e}"]`))?.focus();
1685
+ let e = (A ? ce.find((e) => !e.disabled)?.value : oe) ?? H[0];
1686
+ (B.current?.querySelector(`[data-value="${e}"]`))?.focus();
1646
1687
  }, [j]), d(() => {
1647
- if (!j || !re.current || !z.current) return;
1648
- let e = z.current.getBoundingClientRect(), t = re.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
1649
- R(n < t + 8 && r > n);
1688
+ if (!j || !ne.current || !B.current) return;
1689
+ let e = B.current.getBoundingClientRect(), t = ne.current.offsetHeight, n = window.innerHeight - e.bottom, r = e.top;
1690
+ L(n < t + 8 && r > n);
1650
1691
  }, [j]), l(() => {
1651
1692
  if (!j) return;
1652
1693
  function e(e) {
1653
- z.current?.contains(e.target) || he();
1694
+ B.current?.contains(e.target) || me();
1654
1695
  }
1655
1696
  function t(e) {
1656
- e.key === "Escape" && (he(), ne.current?.focus()), e.key === "Tab" && A && he();
1697
+ e.key === "Escape" && (me(), te.current?.focus()), e.key === "Tab" && A && me();
1657
1698
  }
1658
1699
  return window.addEventListener("pointerdown", e), window.addEventListener("keydown", t), () => {
1659
1700
  window.removeEventListener("pointerdown", e), window.removeEventListener("keydown", t);
1660
1701
  };
1661
1702
  }, [j, A]);
1703
+ function he(e) {
1704
+ e !== void 0 && B.current?.querySelector(`[data-value="${e}"]`)?.focus();
1705
+ }
1662
1706
  function ge(e) {
1663
- e !== void 0 && z.current?.querySelector(`[data-value="${e}"]`)?.focus();
1707
+ (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), pe());
1664
1708
  }
1665
1709
  function _e(e) {
1666
- (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ") && (e.preventDefault(), me());
1667
- }
1668
- function ve(e) {
1669
- e.key === "ArrowDown" && (e.preventDefault(), ge(V[0])), e.key === "Enter" && V.length === 1 && (e.preventDefault(), xe(V[0]));
1710
+ e.key === "ArrowDown" && (e.preventDefault(), he(H[0])), e.key === "Enter" && H.length === 1 && (e.preventDefault(), be(H[0]));
1670
1711
  }
1671
- function ye(e, t) {
1672
- let n = V.indexOf(t);
1712
+ function ve(e, t) {
1713
+ let n = H.indexOf(t);
1673
1714
  if (n === -1) return;
1674
1715
  let r = null;
1675
- if (e.key === "ArrowDown" && (r = (n + 1) % V.length), e.key === "ArrowUp") {
1716
+ if (e.key === "ArrowDown" && (r = (n + 1) % H.length), e.key === "ArrowUp") {
1676
1717
  if (b && n === 0) {
1677
- e.preventDefault(), B.current?.focus();
1718
+ e.preventDefault(), re.current?.focus();
1678
1719
  return;
1679
1720
  }
1680
- r = (n - 1 + V.length) % V.length;
1721
+ r = (n - 1 + H.length) % H.length;
1681
1722
  }
1682
- e.key === "Home" && (r = 0), e.key === "End" && (r = V.length - 1), r !== null && (e.preventDefault(), ge(V[r]));
1723
+ e.key === "Home" && (r = 0), e.key === "End" && (r = H.length - 1), r !== null && (e.preventDefault(), he(H[r]));
1683
1724
  }
1684
- function be(e) {
1685
- te((t) => ({
1725
+ function ye(e) {
1726
+ z((t) => ({
1686
1727
  top: e.offsetTop,
1687
1728
  height: e.offsetHeight,
1688
1729
  instant: !t
1689
1730
  }));
1690
1731
  }
1691
- function xe(t) {
1732
+ function be(t) {
1692
1733
  if (e.multiple) {
1693
1734
  let n = e.value ?? [];
1694
1735
  e.onChange(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
1695
1736
  return;
1696
1737
  }
1697
- e.onChange(t), he(), ne.current?.focus();
1738
+ e.onChange(t), me(), te.current?.focus();
1698
1739
  }
1699
- function Se() {
1700
- if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ue);
1701
- let t = ue[0];
1702
- if (ue.length === 1) return t.label;
1703
- let n = Dt(t);
1704
- return n === void 0 ? `${ue.length} selected` : `${n} ${(e.multiple && e.moreText || Ot)(ue.length - 1)}`;
1740
+ function xe() {
1741
+ if (e.multiple && e.renderTriggerLabel) return e.renderTriggerLabel(ce);
1742
+ let t = ce[0];
1743
+ if (ce.length === 1) return t.label;
1744
+ let n = At(t);
1745
+ return n === void 0 ? `${ce.length} selected` : `${n} ${(e.multiple && e.moreText || jt)(ce.length - 1)}`;
1705
1746
  }
1706
- let Ce = n === void 0 && (A ? ue.length === 0 : !de), we = A && e.triggerPrefix ? /* @__PURE__ */ v("span", {
1747
+ let Se = n === void 0 && (A ? ce.length === 0 : !le), Ce = A && e.triggerPrefix ? /* @__PURE__ */ v("span", {
1707
1748
  className: J.prefix,
1708
1749
  children: [e.triggerPrefix, " "]
1709
- }) : null, Te = n ?? (Ce ? f : A ? Se() : de?.label), U = /* @__PURE__ */ v(g, { children: [we, Te] }), Ee = {
1750
+ }) : null, we = n ?? (Se ? f : A ? xe() : le?.label), Te = /* @__PURE__ */ v(g, { children: [Ce, we] }), Ee = {
1710
1751
  "aria-haspopup": "listbox",
1711
1752
  "aria-expanded": j,
1712
- "aria-controls": j ? oe : void 0,
1753
+ "aria-controls": j ? V : void 0,
1713
1754
  "aria-label": i ? void 0 : D,
1714
1755
  autoFocus: w,
1715
1756
  disabled: y,
1716
- onClick: () => j ? he() : me(),
1717
- onKeyDown: _e
1757
+ onClick: () => j ? me() : pe(),
1758
+ onKeyDown: ge
1718
1759
  };
1719
1760
  return /* @__PURE__ */ v("div", {
1720
- className: [H ? J.field : J.fieldInline, T].filter(Boolean).join(" "),
1721
- ref: z,
1761
+ className: [U ? J.field : J.fieldInline, T].filter(Boolean).join(" "),
1762
+ ref: B,
1722
1763
  "data-testid": k,
1723
1764
  children: [
1724
- H && i && /* @__PURE__ */ _(W, {
1765
+ U && i && /* @__PURE__ */ _(Pe, {
1725
1766
  htmlFor: ae,
1726
1767
  className: E,
1727
1768
  children: i
1728
1769
  }),
1729
- H ? /* @__PURE__ */ v("button", {
1730
- ref: ne,
1770
+ U ? /* @__PURE__ */ v("button", {
1771
+ ref: te,
1731
1772
  id: ae,
1732
1773
  type: "button",
1733
1774
  role: "combobox",
1734
1775
  className: `${J.trigger} ${J[c]} ${o ? J.errorWrap : ""}`,
1735
1776
  ...Ee,
1736
1777
  children: [
1737
- de?.icon && /* @__PURE__ */ _("span", {
1778
+ le?.icon && /* @__PURE__ */ _("span", {
1738
1779
  className: J.icon,
1739
- children: de.icon
1780
+ children: le.icon
1740
1781
  }),
1741
1782
  /* @__PURE__ */ _("span", {
1742
- className: `${J.value} ${Ce ? J.placeholder : ""}`,
1743
- children: U
1783
+ className: `${J.value} ${Se ? J.placeholder : ""}`,
1784
+ children: Te
1744
1785
  }),
1745
1786
  /* @__PURE__ */ _("span", {
1746
1787
  className: `${J.chevron} ${j ? J.chevronOpen : ""}`,
1747
- children: /* @__PURE__ */ _(le, {})
1788
+ children: /* @__PURE__ */ _(de, {})
1748
1789
  })
1749
1790
  ]
1750
1791
  }) : t === "pill" ? /* @__PURE__ */ v("button", {
1751
- ref: ne,
1792
+ ref: te,
1752
1793
  id: ae,
1753
1794
  type: "button",
1754
1795
  className: J.pillTrigger,
1755
1796
  ...Ee,
1756
1797
  children: [
1757
- de?.icon && /* @__PURE__ */ _("span", {
1798
+ le?.icon && /* @__PURE__ */ _("span", {
1758
1799
  className: J.pillIcon,
1759
- children: de.icon
1800
+ children: le.icon
1760
1801
  }),
1761
- U,
1802
+ Te,
1762
1803
  /* @__PURE__ */ _("span", {
1763
1804
  className: `${J.pillChevron} ${j ? J.chevronOpen : ""}`,
1764
- children: /* @__PURE__ */ _(le, {})
1805
+ children: /* @__PURE__ */ _(de, {})
1765
1806
  })
1766
1807
  ]
1767
1808
  }) : /* @__PURE__ */ _(O, {
1768
- ref: ne,
1809
+ ref: te,
1769
1810
  id: ae,
1770
1811
  variant: t,
1771
1812
  size: c,
1772
1813
  className: c === "base" ? J.buttonTriggerBase : void 0,
1773
- leadingIcon: de?.icon,
1814
+ leadingIcon: le?.icon,
1774
1815
  trailingIcon: /* @__PURE__ */ _("span", {
1775
1816
  className: `${J.buttonChevron} ${j ? J.chevronOpen : ""}`,
1776
- children: /* @__PURE__ */ _(le, {})
1817
+ children: /* @__PURE__ */ _(de, {})
1777
1818
  }),
1778
1819
  ...Ee,
1779
- children: U
1820
+ children: Te
1780
1821
  }),
1781
1822
  N && /* @__PURE__ */ _("div", {
1782
- ref: re,
1823
+ ref: ne,
1783
1824
  className: [
1784
1825
  J.menuWrap,
1785
- !H && J.menuWrapAuto,
1786
- !H && A && J.menuWrapMultiple,
1787
- !H && r === "end" && J.menuWrapEnd,
1788
- L && J.menuWrapUp,
1826
+ !U && J.menuWrapAuto,
1827
+ !U && A && J.menuWrapMultiple,
1828
+ !U && r === "end" && J.menuWrapEnd,
1829
+ I && J.menuWrapUp,
1789
1830
  !j && J.menuWrapClosing
1790
1831
  ].filter(Boolean).join(" "),
1791
1832
  onAnimationEnd: (e) => {
1792
- j || e.target !== e.currentTarget || (P(!1), R(!1));
1833
+ j || e.target !== e.currentTarget || (P(!1), L(!1));
1793
1834
  },
1794
- children: /* @__PURE__ */ v(St, {
1835
+ children: /* @__PURE__ */ v(Tt, {
1795
1836
  role: "presentation",
1796
- style: H ? { width: "100%" } : void 0,
1837
+ style: U ? { width: "100%" } : void 0,
1797
1838
  children: [b && /* @__PURE__ */ _("input", {
1798
- ref: B,
1839
+ ref: re,
1799
1840
  type: "text",
1800
1841
  className: J.search,
1801
1842
  value: F,
1802
1843
  placeholder: x,
1803
1844
  "aria-label": x,
1804
- "aria-controls": oe,
1845
+ "aria-controls": V,
1805
1846
  autoComplete: "off",
1806
1847
  spellCheck: !1,
1807
1848
  onChange: (e) => {
1808
- I(e.target.value), te(null);
1849
+ ee(e.target.value), z(null);
1809
1850
  },
1810
- onKeyDown: ve
1851
+ onKeyDown: _e
1811
1852
  }), /* @__PURE__ */ v("div", {
1812
- id: oe,
1853
+ id: V,
1813
1854
  role: "listbox",
1814
1855
  "aria-multiselectable": A || void 0,
1815
1856
  "aria-label": i ?? D,
1816
1857
  ref: ie,
1817
1858
  className: J.list,
1818
- onMouseLeave: () => te(null),
1859
+ onMouseLeave: () => z(null),
1819
1860
  onBlur: (e) => {
1820
- e.currentTarget.contains(e.relatedTarget) || te(null);
1861
+ e.currentTarget.contains(e.relatedTarget) || z(null);
1821
1862
  },
1822
- children: [ee && pe.length > 0 && /* @__PURE__ */ _("span", {
1863
+ children: [R && fe.length > 0 && /* @__PURE__ */ _("span", {
1823
1864
  "aria-hidden": "true",
1824
- className: `${J.highlight} ${ee.instant ? J.highlightInstant : ""}`,
1865
+ className: `${J.highlight} ${R.instant ? J.highlightInstant : ""}`,
1825
1866
  style: {
1826
- transform: `translateY(${ee.top}px)`,
1827
- height: ee.height
1867
+ transform: `translateY(${R.top}px)`,
1868
+ height: R.height
1828
1869
  }
1829
- }), pe.length === 0 ? /* @__PURE__ */ _("div", {
1870
+ }), fe.length === 0 ? /* @__PURE__ */ _("div", {
1830
1871
  className: J.noResults,
1831
1872
  role: "presentation",
1832
1873
  children: S
1833
- }) : pe.map((e, n) => /* @__PURE__ */ _(Tt, {
1874
+ }) : fe.map((e, n) => /* @__PURE__ */ _(Ot, {
1834
1875
  style: { "--i": Math.min(n, 8) },
1835
1876
  "data-value": e.value,
1836
1877
  role: "option",
1837
- "aria-selected": A ? ce.includes(e.value) : e.value === se,
1878
+ "aria-selected": A ? se.includes(e.value) : e.value === oe,
1838
1879
  size: t === "pill" ? "sm" : c,
1839
1880
  icon: e.icon,
1840
- leading: A ? /* @__PURE__ */ _(Ve, {
1841
- checked: ce.includes(e.value),
1881
+ leading: A ? /* @__PURE__ */ _(We, {
1882
+ checked: se.includes(e.value),
1842
1883
  disabled: e.disabled
1843
1884
  }) : void 0,
1844
- selected: !A && e.value === se,
1885
+ selected: !A && e.value === oe,
1845
1886
  disabled: e.disabled,
1846
- onClick: () => xe(e.value),
1847
- onMouseEnter: (t) => !e.disabled && be(t.currentTarget),
1848
- onFocus: (e) => be(e.currentTarget),
1849
- onKeyDown: (t) => ye(t, e.value),
1887
+ onClick: () => be(e.value),
1888
+ onMouseEnter: (t) => !e.disabled && ye(t.currentTarget),
1889
+ onFocus: (e) => ye(e.currentTarget),
1890
+ onKeyDown: (t) => ve(t, e.value),
1850
1891
  children: e.label
1851
1892
  }, e.value))]
1852
1893
  })]
1853
1894
  })
1854
1895
  }),
1855
- H && o ? /* @__PURE__ */ _("span", {
1896
+ U && o ? /* @__PURE__ */ _("span", {
1856
1897
  className: J.errorText,
1857
1898
  children: o
1858
- }) : H && a ? /* @__PURE__ */ _("span", {
1899
+ }) : U && a ? /* @__PURE__ */ _("span", {
1859
1900
  className: J.helperText,
1860
1901
  children: a
1861
1902
  }) : null
1862
1903
  ]
1863
1904
  });
1864
1905
  }
1865
- var At = {
1906
+ var Nt = {
1866
1907
  item: "_item_19izo_2",
1867
1908
  active: "_active_19izo_38",
1868
1909
  inList: "_inList_19izo_41",
@@ -1873,41 +1914,41 @@ var At = {
1873
1914
  glide: "_glide_19izo_115",
1874
1915
  glideAnimated: "_glideAnimated_19izo_128",
1875
1916
  glideVisible: "_glideVisible_19izo_134"
1876
- }, jt = "data-nav-item", Mt = r(!1);
1877
- function Nt({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
1878
- let l = c(Mt), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
1879
- At.item,
1880
- n && At.active,
1881
- l && At.inList,
1917
+ }, Pt = "data-nav-item", Ft = r(!1);
1918
+ function It({ icon: e, trailing: t, active: n, as: r, href: i, className: a, children: o, ...s }) {
1919
+ let l = c(Ft), u = r ?? (i === void 0 ? "button" : "a"), d = u === "button", f = [
1920
+ Nt.item,
1921
+ n && Nt.active,
1922
+ l && Nt.inList,
1882
1923
  a
1883
1924
  ].filter(Boolean).join(" ");
1884
1925
  return /* @__PURE__ */ v(u, {
1885
1926
  ...d ? { type: "button" } : {},
1886
1927
  ...i === void 0 ? {} : { href: i },
1887
- [jt]: "",
1928
+ [Pt]: "",
1888
1929
  "aria-current": n ? "page" : void 0,
1889
1930
  className: f,
1890
1931
  ...s,
1891
1932
  children: [
1892
1933
  e && /* @__PURE__ */ _("span", {
1893
- className: At.icon,
1934
+ className: Nt.icon,
1894
1935
  "aria-hidden": !0,
1895
1936
  children: e
1896
1937
  }),
1897
1938
  /* @__PURE__ */ _("span", {
1898
- className: At.label,
1939
+ className: Nt.label,
1899
1940
  children: o
1900
1941
  }),
1901
1942
  t && /* @__PURE__ */ _("span", {
1902
- className: At.trailing,
1943
+ className: Nt.trailing,
1903
1944
  children: t
1904
1945
  })
1905
1946
  ]
1906
1947
  });
1907
1948
  }
1908
- function Pt({ children: e, className: t, ...n }) {
1949
+ function Lt({ children: e, className: t, ...n }) {
1909
1950
  let r = p(null), [i, a] = m(null), [o, c] = m(!1), [l, u] = m(!1), f = s((e) => {
1910
- let t = r.current, n = e instanceof Element ? e.closest(`[${jt}]`) : null;
1951
+ let t = r.current, n = e instanceof Element ? e.closest(`[${Pt}]`) : null;
1911
1952
  if (!t || !n || !t.contains(n)) return;
1912
1953
  if (n.matches(":disabled, [aria-disabled=\"true\"], [hidden]")) {
1913
1954
  c(!1);
@@ -1921,11 +1962,11 @@ function Pt({ children: e, className: t, ...n }) {
1921
1962
  }, [o]);
1922
1963
  return d(() => {
1923
1964
  o || u(!1);
1924
- }, [o]), /* @__PURE__ */ _(Mt.Provider, {
1965
+ }, [o]), /* @__PURE__ */ _(Ft.Provider, {
1925
1966
  value: !0,
1926
1967
  children: /* @__PURE__ */ v("div", {
1927
1968
  ref: r,
1928
- className: [At.list, t].filter(Boolean).join(" "),
1969
+ className: [Nt.list, t].filter(Boolean).join(" "),
1929
1970
  onMouseOver: (e) => f(e.target),
1930
1971
  onMouseLeave: () => c(!1),
1931
1972
  onFocus: (e) => e.target.matches(":focus-visible") && f(e.target),
@@ -1934,9 +1975,9 @@ function Pt({ children: e, className: t, ...n }) {
1934
1975
  children: [/* @__PURE__ */ _("span", {
1935
1976
  "aria-hidden": !0,
1936
1977
  className: [
1937
- At.glide,
1938
- l && At.glideAnimated,
1939
- o && At.glideVisible
1978
+ Nt.glide,
1979
+ l && Nt.glideAnimated,
1980
+ o && Nt.glideVisible
1940
1981
  ].filter(Boolean).join(" "),
1941
1982
  style: i ? {
1942
1983
  translate: `0 ${i.top}px`,
@@ -1948,7 +1989,7 @@ function Pt({ children: e, className: t, ...n }) {
1948
1989
  }
1949
1990
  //#endregion
1950
1991
  //#region src/components/Logo.tsx
1951
- function Ft({ size: e = 40, "aria-label": t, ...n }) {
1992
+ function Rt({ size: e = 40, "aria-label": t, ...n }) {
1952
1993
  return /* @__PURE__ */ v("svg", {
1953
1994
  width: e,
1954
1995
  height: e,
@@ -1990,7 +2031,7 @@ var Y = {
1990
2031
  };
1991
2032
  //#endregion
1992
2033
  //#region src/components/Sidebar.tsx
1993
- function It({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
2034
+ function zt({ header: e, switcher: t, children: n, footer: r, switcherLayout: i = "inset", "aria-label": a, className: o }) {
1994
2035
  return /* @__PURE__ */ v("aside", {
1995
2036
  className: [Y.root, o].filter(Boolean).join(" "),
1996
2037
  children: [
@@ -2016,7 +2057,7 @@ function It({ header: e, switcher: t, children: n, footer: r, switcherLayout: i
2016
2057
  ]
2017
2058
  });
2018
2059
  }
2019
- function Lt({ title: e, subtitle: t, action: n }) {
2060
+ function Bt({ title: e, subtitle: t, action: n }) {
2020
2061
  return /* @__PURE__ */ v("div", {
2021
2062
  className: Y.footerRow,
2022
2063
  children: [/* @__PURE__ */ v("div", {
@@ -2034,7 +2075,7 @@ function Lt({ title: e, subtitle: t, action: n }) {
2034
2075
  })]
2035
2076
  });
2036
2077
  }
2037
- function Rt({ items: e, value: t, onChange: n, "aria-label": r }) {
2078
+ function Vt({ items: e, value: t, onChange: n, "aria-label": r }) {
2038
2079
  return /* @__PURE__ */ _("div", {
2039
2080
  role: "group",
2040
2081
  "aria-label": r,
@@ -2060,21 +2101,21 @@ function Rt({ items: e, value: t, onChange: n, "aria-label": r }) {
2060
2101
  }, e.value))
2061
2102
  });
2062
2103
  }
2063
- var zt = { highlight: "_highlight_1anli_1" };
2104
+ var Ht = { highlight: "_highlight_1anli_1" };
2064
2105
  //#endregion
2065
2106
  //#region src/components/HighlightText.tsx
2066
- function Bt(e) {
2107
+ function Ut(e) {
2067
2108
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
2068
2109
  }
2069
- function Vt({ text: e, query: n }) {
2110
+ function Wt({ text: e, query: n }) {
2070
2111
  if (!n) return /* @__PURE__ */ _(g, { children: e });
2071
- let r = e.split(RegExp(`(${Bt(n)})`, "ig"));
2112
+ let r = e.split(RegExp(`(${Ut(n)})`, "ig"));
2072
2113
  return /* @__PURE__ */ _(g, { children: r.map((e, r) => e.toLowerCase() === n.toLowerCase() ? /* @__PURE__ */ _("mark", {
2073
- className: zt.highlight,
2114
+ className: Ht.highlight,
2074
2115
  children: e
2075
2116
  }, r) : /* @__PURE__ */ _(t, { children: e }, r)) });
2076
2117
  }
2077
- var Ht = {
2118
+ var Gt = {
2078
2119
  group: "_group_1rvgf_1",
2079
2120
  btn: "_btn_1rvgf_4",
2080
2121
  caret: "_caret_1rvgf_29",
@@ -2096,24 +2137,24 @@ var Ht = {
2096
2137
  };
2097
2138
  //#endregion
2098
2139
  //#region src/components/FilterSection.tsx
2099
- function Ut({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2140
+ function Kt({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, onSetAll: a, searchable: o }) {
2100
2141
  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;
2101
2142
  return /* @__PURE__ */ v("div", { children: [
2102
2143
  /* @__PURE__ */ v("div", {
2103
- className: Ht.sectionHeader,
2144
+ className: Gt.sectionHeader,
2104
2145
  children: [/* @__PURE__ */ _("div", {
2105
- className: Ht.sectionLabel,
2146
+ className: Gt.sectionLabel,
2106
2147
  children: e
2107
2148
  }), a && /* @__PURE__ */ _("button", {
2108
2149
  type: "button",
2109
- className: Ht.allToggle,
2150
+ className: Gt.allToggle,
2110
2151
  onClick: () => a(d ? [] : t),
2111
2152
  children: d ? "Deselect all" : "Select all"
2112
2153
  })]
2113
2154
  }),
2114
2155
  o && /* @__PURE__ */ _("input", {
2115
2156
  type: "text",
2116
- className: Ht.search,
2157
+ className: Gt.search,
2117
2158
  placeholder: `Search ${e.toLowerCase()}…`,
2118
2159
  autoComplete: "off",
2119
2160
  value: s,
@@ -2121,12 +2162,12 @@ function Ut({ label: e, options: t, optionLabel: n, activeSet: r, onToggle: i, o
2121
2162
  onChange: (e) => c(e.target.value)
2122
2163
  }),
2123
2164
  /* @__PURE__ */ v("div", {
2124
- className: Ht.optionsList,
2165
+ className: Gt.optionsList,
2125
2166
  children: [u.length === 0 && /* @__PURE__ */ _("div", {
2126
- className: Ht.empty,
2167
+ className: Gt.empty,
2127
2168
  children: "No match"
2128
- }), u.map((e) => /* @__PURE__ */ _(Be, {
2129
- className: Ht.option,
2169
+ }), u.map((e) => /* @__PURE__ */ _(Ue, {
2170
+ className: Gt.option,
2130
2171
  checked: r.has(e),
2131
2172
  onChange: () => i(e),
2132
2173
  label: n(e)
@@ -2150,7 +2191,7 @@ var X = {
2150
2191
  };
2151
2192
  //#endregion
2152
2193
  //#region src/components/Tabs.tsx
2153
- function Wt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2194
+ function qt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "base", ...a }) {
2154
2195
  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");
2155
2196
  d(() => {
2156
2197
  let e = c.current.get(t);
@@ -2234,21 +2275,21 @@ function Wt({ items: e, value: t, onChange: n, variant: r = "line", size: i = "b
2234
2275
  })]
2235
2276
  });
2236
2277
  }
2237
- var Gt = {
2278
+ var Jt = {
2238
2279
  root: "_root_1605f_1",
2239
2280
  label: "_label_1605f_7"
2240
2281
  };
2241
2282
  //#endregion
2242
2283
  //#region src/components/Toggle.tsx
2243
- function Kt({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2284
+ function Yt({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2244
2285
  let a = u();
2245
2286
  return /* @__PURE__ */ v("div", {
2246
- className: Gt.root,
2287
+ className: Jt.root,
2247
2288
  children: [r && /* @__PURE__ */ _("span", {
2248
2289
  id: a,
2249
- className: Gt.label,
2290
+ className: Jt.label,
2250
2291
  children: r
2251
- }), /* @__PURE__ */ _(Wt, {
2292
+ }), /* @__PURE__ */ _(qt, {
2252
2293
  items: e,
2253
2294
  value: t,
2254
2295
  onChange: n,
@@ -2259,7 +2300,7 @@ function Kt({ items: e, value: t, onChange: n, label: r, "aria-label": i }) {
2259
2300
  })]
2260
2301
  });
2261
2302
  }
2262
- var qt = {
2303
+ var Xt = {
2263
2304
  spinner: "_spinner_9jjxr_3",
2264
2305
  inner: "_inner_9jjxr_11",
2265
2306
  outer: "_outer_9jjxr_12",
@@ -2270,10 +2311,10 @@ var qt = {
2270
2311
  };
2271
2312
  //#endregion
2272
2313
  //#region src/components/Spinner.tsx
2273
- function Jt({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2314
+ function Zt({ variant: e = "default", size: t = 64, label: n = "Loading", className: r, "data-testid": i }) {
2274
2315
  let a = [
2275
- qt.spinner,
2276
- qt[e],
2316
+ Xt.spinner,
2317
+ Xt[e],
2277
2318
  r
2278
2319
  ].filter(Boolean).join(" ");
2279
2320
  return /* @__PURE__ */ v("div", {
@@ -2286,7 +2327,7 @@ function Jt({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2286
2327
  },
2287
2328
  "data-testid": i,
2288
2329
  children: [/* @__PURE__ */ _("svg", {
2289
- className: qt.inner,
2330
+ className: Xt.inner,
2290
2331
  width: t,
2291
2332
  height: t,
2292
2333
  viewBox: "0 0 64 64",
@@ -2294,7 +2335,7 @@ function Jt({ variant: e = "default", size: t = 64, label: n = "Loading", classN
2294
2335
  "aria-hidden": "true",
2295
2336
  children: /* @__PURE__ */ _("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" })
2296
2337
  }), /* @__PURE__ */ _("svg", {
2297
- className: qt.outer,
2338
+ className: Xt.outer,
2298
2339
  width: t,
2299
2340
  height: t,
2300
2341
  viewBox: "0 0 64 64",
@@ -2326,14 +2367,14 @@ var Z = {
2326
2367
  sheet: "_sheet_g9q2m_206",
2327
2368
  fullscreen: "_fullscreen_g9q2m_212",
2328
2369
  instant: "_instant_g9q2m_222"
2329
- }, Yt = 200, Xt = "(max-width: 639px)", Zt = "(prefers-reduced-motion: reduce)", Qt = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", $t = r(null);
2330
- function en(e) {
2331
- let t = c($t);
2370
+ }, Qt = 200, $t = "(max-width: 639px)", en = "(prefers-reduced-motion: reduce)", tn = "a[href], button:not(:disabled), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])", nn = r(null);
2371
+ function rn(e) {
2372
+ let t = c(nn);
2332
2373
  if (!t) throw Error(`${e} must be rendered inside <Modal>`);
2333
2374
  return t;
2334
2375
  }
2335
- var tn = [];
2336
- function nn(e) {
2376
+ var an = [];
2377
+ function on(e) {
2337
2378
  let [t, n] = m(() => typeof window < "u" && window.matchMedia(e).matches);
2338
2379
  return l(() => {
2339
2380
  let t = window.matchMedia(e), r = () => n(t.matches);
@@ -2341,51 +2382,51 @@ function nn(e) {
2341
2382
  }, [e]), t;
2342
2383
  }
2343
2384
  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": g, "data-testid": v, className: y, children: b }) {
2344
- 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 = nn(Xt), N = nn(Zt), P = p(null), F = p(null), I = p(!1), L = p(!1), R = p(Symbol("modal")), ee = p(e), te = p(t);
2345
- te.current = t, l(() => T(!0), []), l(() => {
2385
+ 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 = on($t), N = on(en), P = p(null), F = p(null), ee = p(!1), I = p(!1), L = p(Symbol("modal")), R = p(e), z = p(t);
2386
+ z.current = t, l(() => T(!0), []), l(() => {
2346
2387
  if (e) {
2347
- if (I.current) return;
2348
- if (F.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), ee.current && o) {
2388
+ if (ee.current) return;
2389
+ if (F.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, D(!0), R.current && o) {
2349
2390
  k(!0);
2350
2391
  return;
2351
2392
  }
2352
2393
  let e = requestAnimationFrame(() => k(!0));
2353
2394
  return () => cancelAnimationFrame(e);
2354
2395
  }
2355
- if (I.current = !1, k(!1), !E) return;
2356
- let t = setTimeout(() => D(!1), N ? 0 : Yt);
2396
+ if (ee.current = !1, k(!1), !E) return;
2397
+ let t = setTimeout(() => D(!1), N ? 0 : Qt);
2357
2398
  return () => clearTimeout(t);
2358
2399
  }, [e]), l(() => {
2359
2400
  !E && F.current && (F.current.focus?.(), F.current = null);
2360
2401
  }, [E]);
2361
- let z = s(() => {
2362
- if (!a || I.current) return;
2363
- I.current = !0, k(!1);
2364
- let e = N ? 0 : Yt;
2365
- window.setTimeout(() => te.current(), e);
2402
+ let B = s(() => {
2403
+ if (!a || ee.current) return;
2404
+ ee.current = !0, k(!1);
2405
+ let e = N ? 0 : Qt;
2406
+ window.setTimeout(() => z.current(), e);
2366
2407
  }, [a, N]);
2367
2408
  l(() => {
2368
2409
  if (!E) return;
2369
- let e = R.current;
2370
- d && tn.push(e);
2410
+ let e = L.current;
2411
+ d && an.push(e);
2371
2412
  let t = (t) => {
2372
- t.key === "Escape" && tn[tn.length - 1] === e && (t.preventDefault(), z());
2413
+ t.key === "Escape" && an[an.length - 1] === e && (t.preventDefault(), B());
2373
2414
  };
2374
2415
  document.addEventListener("keydown", t);
2375
2416
  let { body: n } = document, r = n.style.overflow, i = n.style.paddingRight, a = window.innerWidth - document.documentElement.clientWidth;
2376
2417
  return n.style.overflow = "hidden", a > 0 && (n.style.paddingRight = `${a}px`), P.current?.focus({ preventScroll: !0 }), () => {
2377
2418
  document.removeEventListener("keydown", t);
2378
- let a = tn.indexOf(e);
2379
- a !== -1 && tn.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2419
+ let a = an.indexOf(e);
2420
+ a !== -1 && an.splice(a, 1), n.style.overflow = r, n.style.paddingRight = i;
2380
2421
  };
2381
2422
  }, [
2382
2423
  E,
2383
2424
  d,
2384
- z
2425
+ B
2385
2426
  ]);
2386
- let ne = (e) => {
2427
+ let te = (e) => {
2387
2428
  if (e.key !== "Tab" || !P.current) return;
2388
- let t = Array.from(P.current.querySelectorAll(Qt));
2429
+ let t = Array.from(P.current.querySelectorAll(tn));
2389
2430
  if (t.length === 0) {
2390
2431
  e.preventDefault();
2391
2432
  return;
@@ -2394,7 +2435,7 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2394
2435
  e.shiftKey && (i === n || i === P.current) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
2395
2436
  };
2396
2437
  if (!w || !E) return null;
2397
- let re = document.querySelector(c) ?? document.body, B = [
2438
+ let ne = document.querySelector(c) ?? document.body, re = [
2398
2439
  Z.modal,
2399
2440
  Z[n],
2400
2441
  Z[r],
@@ -2407,9 +2448,9 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2407
2448
  "aria-labelledby": g ?? S,
2408
2449
  "aria-describedby": A ? C : void 0,
2409
2450
  tabIndex: -1,
2410
- className: B,
2451
+ className: re,
2411
2452
  "data-testid": v,
2412
- onKeyDown: ne
2453
+ onKeyDown: te
2413
2454
  }, ae = {
2414
2455
  layout: n,
2415
2456
  titleId: g ?? S,
@@ -2417,17 +2458,17 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2417
2458
  isMobile: M,
2418
2459
  dismissible: a,
2419
2460
  setHasDescription: j,
2420
- requestClose: z
2461
+ requestClose: B
2421
2462
  };
2422
- return h(/* @__PURE__ */ _($t.Provider, {
2463
+ return h(/* @__PURE__ */ _(nn.Provider, {
2423
2464
  value: ae,
2424
2465
  children: /* @__PURE__ */ _("div", {
2425
2466
  className: `${Z.backdrop} ${O ? Z.visible : ""} ${o ? Z.instant : ""}`.trim(),
2426
2467
  onPointerDown: (e) => {
2427
- L.current = e.target !== e.currentTarget;
2468
+ I.current = e.target !== e.currentTarget;
2428
2469
  },
2429
2470
  onClick: (e) => {
2430
- e.target === e.currentTarget && !L.current && z(), L.current = !1;
2471
+ e.target === e.currentTarget && !I.current && B(), I.current = !1;
2431
2472
  },
2432
2473
  children: i ? /* @__PURE__ */ _("form", {
2433
2474
  ref: P,
@@ -2440,15 +2481,15 @@ function Q({ open: e, onClose: t, layout: n = "vertical", mobile: r = "sheet", o
2440
2481
  children: b
2441
2482
  })
2442
2483
  })
2443
- }), re);
2484
+ }), ne);
2444
2485
  }
2445
- function rn({ children: e, onClose: t }) {
2446
- let { requestClose: n, dismissible: r } = en("Modal.Cover");
2486
+ function sn({ children: e, onClose: t }) {
2487
+ let { requestClose: n, dismissible: r } = rn("Modal.Cover");
2447
2488
  return /* @__PURE__ */ v("div", {
2448
2489
  className: Z.cover,
2449
2490
  children: [e, t && /* @__PURE__ */ _(O, {
2450
2491
  variant: "tertiary",
2451
- leadingIcon: /* @__PURE__ */ _(Te, {}),
2492
+ leadingIcon: /* @__PURE__ */ _(De, {}),
2452
2493
  "aria-label": "Close",
2453
2494
  "data-testid": "modal-close",
2454
2495
  className: Z.closeButton,
@@ -2459,7 +2500,7 @@ function rn({ children: e, onClose: t }) {
2459
2500
  })]
2460
2501
  });
2461
2502
  }
2462
- function an({ children: t }) {
2503
+ function cn({ children: t }) {
2463
2504
  let n = e.toArray(t), r = n.filter((e) => o(e) && e.type.isModalIcon === !0), i = n.filter((e) => !r.includes(e));
2464
2505
  return /* @__PURE__ */ v("div", {
2465
2506
  className: Z.message,
@@ -2469,52 +2510,52 @@ function an({ children: t }) {
2469
2510
  })]
2470
2511
  });
2471
2512
  }
2472
- function on({ children: e, tone: t = "neutral" }) {
2513
+ function ln({ children: e, tone: t = "neutral" }) {
2473
2514
  return /* @__PURE__ */ _("div", {
2474
2515
  className: `${Z.icon} ${Z[`tone-${t}`]}`,
2475
2516
  "aria-hidden": "true",
2476
2517
  children: e
2477
2518
  });
2478
2519
  }
2479
- function sn({ children: e, id: t }) {
2480
- let { titleId: n } = en("Modal.Title");
2520
+ function un({ children: e, id: t }) {
2521
+ let { titleId: n } = rn("Modal.Title");
2481
2522
  return /* @__PURE__ */ _("h2", {
2482
2523
  id: t ?? n,
2483
2524
  className: Z.title,
2484
2525
  children: e
2485
2526
  });
2486
2527
  }
2487
- function cn({ children: e }) {
2488
- let { descriptionId: t, setHasDescription: n } = en("Modal.Description");
2528
+ function dn({ children: e }) {
2529
+ let { descriptionId: t, setHasDescription: n } = rn("Modal.Description");
2489
2530
  return l(() => (n(!0), () => n(!1)), [n]), /* @__PURE__ */ _("p", {
2490
2531
  id: t,
2491
2532
  className: Z.description,
2492
2533
  children: e
2493
2534
  });
2494
2535
  }
2495
- function ln({ children: e }) {
2536
+ function fn({ children: e }) {
2496
2537
  return /* @__PURE__ */ _("p", {
2497
2538
  className: Z.hint,
2498
2539
  children: e
2499
2540
  });
2500
2541
  }
2501
- function un({ children: e }) {
2542
+ function pn({ children: e }) {
2502
2543
  return /* @__PURE__ */ _("div", {
2503
2544
  className: Z.body,
2504
2545
  children: e
2505
2546
  });
2506
2547
  }
2507
- function dn({ children: t }) {
2508
- let { isMobile: r } = en("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === O ? n(e, { size: "base" }) : e) : t;
2548
+ function mn({ children: t }) {
2549
+ let { isMobile: r } = rn("Modal.Footer"), i = r ? e.map(t, (e) => o(e) && e.type === O ? n(e, { size: "base" }) : e) : t;
2509
2550
  return /* @__PURE__ */ _("div", {
2510
2551
  className: Z.footer,
2511
2552
  children: i
2512
2553
  });
2513
2554
  }
2514
- Q.Cover = rn, Q.Message = an, on.isModalIcon = !0, Q.Icon = on, Q.Title = sn, Q.Description = cn, Q.Hint = ln, Q.Body = un, Q.Footer = dn;
2555
+ Q.Cover = sn, Q.Message = cn, ln.isModalIcon = !0, Q.Icon = ln, Q.Title = un, Q.Description = dn, Q.Hint = fn, Q.Body = pn, Q.Footer = mn;
2515
2556
  //#endregion
2516
2557
  //#region src/components/ConfirmDialog.tsx
2517
- function fn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon: a, confirmLabel: o, cancelLabel: s = "Cancel", tone: c = "default", loading: l = !1, "data-testid": u }) {
2558
+ function hn({ 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 }) {
2518
2559
  let d = c === "dangerous";
2519
2560
  return /* @__PURE__ */ v(Q, {
2520
2561
  open: e,
@@ -2543,7 +2584,7 @@ function fn({ open: e, onClose: t, onConfirm: n, title: r, description: i, icon:
2543
2584
  })] })]
2544
2585
  });
2545
2586
  }
2546
- var pn = {
2587
+ var gn = {
2547
2588
  skeleton: "_skeleton_3os3v_2",
2548
2589
  rect: "_rect_3os3v_7",
2549
2590
  text: "_text_3os3v_13",
@@ -2553,11 +2594,11 @@ var pn = {
2553
2594
  };
2554
2595
  //#endregion
2555
2596
  //#region src/components/Skeleton.tsx
2556
- function mn({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
2597
+ function _n({ variant: e = "rect", width: t, height: n, size: r, animated: i = !0, className: a, "data-testid": o }) {
2557
2598
  let s = [
2558
- pn.skeleton,
2559
- pn[e],
2560
- i && pn.animated,
2599
+ gn.skeleton,
2600
+ gn[e],
2601
+ i && gn.animated,
2561
2602
  a
2562
2603
  ].filter(Boolean).join(" "), c = {};
2563
2604
  return e === "circle" && r !== void 0 && (c.width = r, c.height = r), t !== void 0 && (c.width = t), n !== void 0 && (c.height = n), /* @__PURE__ */ _("div", {
@@ -2567,7 +2608,7 @@ function mn({ variant: e = "rect", width: t, height: n, size: r, animated: i = !
2567
2608
  "data-testid": o
2568
2609
  });
2569
2610
  }
2570
- var hn = {
2611
+ var vn = {
2571
2612
  root: "_root_1h55m_1",
2572
2613
  success: "_success_1h55m_11",
2573
2614
  warning: "_warning_1h55m_17",
@@ -2580,45 +2621,45 @@ var hn = {
2580
2621
  };
2581
2622
  //#endregion
2582
2623
  //#region src/components/EmptyState.tsx
2583
- function gn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
2624
+ function yn({ tone: e = "neutral", icon: t, title: n, children: r, action: i, ...a }) {
2584
2625
  return /* @__PURE__ */ v("div", {
2585
- className: `${hn.root} ${e === "neutral" ? "" : hn[e]}`,
2626
+ className: `${vn.root} ${e === "neutral" ? "" : vn[e]}`,
2586
2627
  ...a,
2587
2628
  children: [t != null && /* @__PURE__ */ _("div", {
2588
- className: hn.icon,
2629
+ className: vn.icon,
2589
2630
  "aria-hidden": "true",
2590
2631
  children: t
2591
2632
  }), /* @__PURE__ */ v("div", {
2592
- className: hn.body,
2633
+ className: vn.body,
2593
2634
  children: [
2594
2635
  /* @__PURE__ */ _("p", {
2595
- className: hn.title,
2636
+ className: vn.title,
2596
2637
  children: n
2597
2638
  }),
2598
2639
  r != null && /* @__PURE__ */ _("div", {
2599
- className: hn.text,
2640
+ className: vn.text,
2600
2641
  children: r
2601
2642
  }),
2602
2643
  i != null && /* @__PURE__ */ _("div", {
2603
- className: hn.action,
2644
+ className: vn.action,
2604
2645
  children: i
2605
2646
  })
2606
2647
  ]
2607
2648
  })]
2608
2649
  });
2609
2650
  }
2610
- var _n = { photoPreview: "_photoPreview_zujwk_2" }, vn = 180, yn = 12, bn = 8;
2611
- function xn(e, t, n = vn) {
2651
+ var bn = { photoPreview: "_photoPreview_zujwk_2" }, xn = 180, Sn = 12, Cn = 8;
2652
+ function wn(e, t, n = xn) {
2612
2653
  let r = (e, t) => {
2613
- let r = e + yn, i = r + n + bn > t ? e - yn - n : r;
2614
- return Math.max(bn, i);
2654
+ let r = e + Sn, i = r + n + Cn > t ? e - Sn - n : r;
2655
+ return Math.max(Cn, i);
2615
2656
  };
2616
2657
  return {
2617
2658
  left: r(e, window.innerWidth),
2618
2659
  top: r(t, window.innerHeight)
2619
2660
  };
2620
2661
  }
2621
- function Sn({ src: e, size: t = vn, children: r }) {
2662
+ function Tn({ src: e, size: t = xn, children: r }) {
2622
2663
  let [i, a] = m(null), [o, s] = m(), c = i !== null;
2623
2664
  if (l(() => {
2624
2665
  if (!c) return;
@@ -2644,14 +2685,14 @@ function Sn({ src: e, size: t = vn, children: r }) {
2644
2685
  }
2645
2686
  });
2646
2687
  return /* @__PURE__ */ v(g, { children: [f, i && h(/* @__PURE__ */ _("img", {
2647
- className: _n.photoPreview,
2688
+ className: bn.photoPreview,
2648
2689
  src: e,
2649
2690
  alt: "",
2650
2691
  "aria-hidden": "true",
2651
2692
  style: {
2652
2693
  width: t,
2653
2694
  height: t,
2654
- ...xn(i.x, i.y, t)
2695
+ ...wn(i.x, i.y, t)
2655
2696
  },
2656
2697
  onError: () => {
2657
2698
  s(e), a(null);
@@ -2688,7 +2729,7 @@ var $ = {
2688
2729
  pending: "_pending_kvx36_211",
2689
2730
  actions: "_actions_kvx36_217",
2690
2731
  srOnly: "_srOnly_kvx36_228"
2691
- }, Cn = {
2732
+ }, En = {
2692
2733
  worker: "Worker:",
2693
2734
  comment: "Comment:",
2694
2735
  pending: "Card still in progress",
@@ -2696,9 +2737,9 @@ var $ = {
2696
2737
  archived: "Archived",
2697
2738
  new: "Unwatched"
2698
2739
  };
2699
- function wn({ 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: y, "aria-label": b, className: x, "data-testid": S }) {
2740
+ function Dn({ 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: y, "aria-label": b, className: x, "data-testid": S }) {
2700
2741
  let C = {
2701
- ...Cn,
2742
+ ...En,
2702
2743
  ...y
2703
2744
  }, [w, T] = m(), [E, D] = m(), O = !!e && w !== e, k = c?.photo, A = !!k && E !== k, j = !!c && (c.pending || !A), M = !!f, N = (e) => {
2704
2745
  e.target === e.currentTarget && (e.key === "Enter" ? f?.() : e.key === " " && (e.preventDefault(), f?.()));
@@ -2735,12 +2776,12 @@ function wn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
2735
2776
  }
2736
2777
  }) : /* @__PURE__ */ _("div", {
2737
2778
  className: `${$.tile} ${t === "play" ? $.tilePlay : ""}`,
2738
- children: t === "play" ? /* @__PURE__ */ _(ye, {
2779
+ children: t === "play" ? /* @__PURE__ */ _(xe, {
2739
2780
  size: 20,
2740
2781
  "aria-hidden": "true"
2741
2782
  }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
2742
2783
  className: $.icon,
2743
- children: _(t === "archived" ? ae : _e, {
2784
+ children: _(t === "archived" ? se : ye, {
2744
2785
  size: 12,
2745
2786
  strokeWidth: 1,
2746
2787
  "aria-hidden": "true"
@@ -2783,7 +2824,7 @@ function wn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
2783
2824
  children: C.worker
2784
2825
  }), /* @__PURE__ */ v("div", {
2785
2826
  className: $.workerRow,
2786
- children: [A ? /* @__PURE__ */ _(Sn, {
2827
+ children: [A ? /* @__PURE__ */ _(Tn, {
2787
2828
  src: k,
2788
2829
  children: /* @__PURE__ */ _("img", {
2789
2830
  className: $.photo,
@@ -2796,7 +2837,7 @@ function wn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
2796
2837
  }) : /* @__PURE__ */ _("div", {
2797
2838
  className: `${$.photo} ${$.emptyPhoto}`,
2798
2839
  "aria-hidden": "true",
2799
- children: /* @__PURE__ */ _(Ce, { size: 20 })
2840
+ children: /* @__PURE__ */ _(Te, { size: 20 })
2800
2841
  }), /* @__PURE__ */ v("div", {
2801
2842
  className: $.workerText,
2802
2843
  children: [/* @__PURE__ */ _("div", {
@@ -2825,14 +2866,14 @@ function wn({ preview: e, previewFallback: t = "inaccessible", onPreviewError: n
2825
2866
  ]
2826
2867
  });
2827
2868
  }
2828
- function Tn({ className: e, "data-testid": t }) {
2869
+ function On({ className: e, "data-testid": t }) {
2829
2870
  return /* @__PURE__ */ v("div", {
2830
2871
  className: `${$.root} ${e ?? ""}`,
2831
2872
  "data-testid": t,
2832
2873
  "aria-hidden": "true",
2833
2874
  children: [/* @__PURE__ */ _("div", {
2834
2875
  className: $.side,
2835
- children: /* @__PURE__ */ _(mn, {
2876
+ children: /* @__PURE__ */ _(_n, {
2836
2877
  width: 72,
2837
2878
  height: 48
2838
2879
  })
@@ -2841,15 +2882,15 @@ function Tn({ className: e, "data-testid": t }) {
2841
2882
  children: /* @__PURE__ */ v("div", {
2842
2883
  className: $.info,
2843
2884
  children: [
2844
- /* @__PURE__ */ _(mn, {
2885
+ /* @__PURE__ */ _(_n, {
2845
2886
  variant: "text",
2846
2887
  width: "40%"
2847
2888
  }),
2848
- /* @__PURE__ */ _(mn, {
2889
+ /* @__PURE__ */ _(_n, {
2849
2890
  variant: "text",
2850
2891
  width: "65%"
2851
2892
  }),
2852
- /* @__PURE__ */ _(mn, {
2893
+ /* @__PURE__ */ _(_n, {
2853
2894
  variant: "text",
2854
2895
  width: "90%"
2855
2896
  })
@@ -2858,18 +2899,18 @@ function Tn({ className: e, "data-testid": t }) {
2858
2899
  })]
2859
2900
  });
2860
2901
  }
2861
- var En = Object.assign(wn, { Skeleton: Tn });
2902
+ var kn = Object.assign(Dn, { Skeleton: On });
2862
2903
  //#endregion
2863
2904
  //#region src/utils/format.ts
2864
- function Dn(e) {
2905
+ function An(e) {
2865
2906
  let t = Math.floor(e / 60), n = e % 60;
2866
2907
  return `${t}h:${String(n).padStart(2, "0")}m`;
2867
2908
  }
2868
- function On(e, t) {
2909
+ function jn(e, t) {
2869
2910
  let n = Math.floor(e / 60), r = e % 60, i = (e) => String(e).padStart(2, "0");
2870
2911
  return `${i(n)}:${i(r)}:${i(t)}`;
2871
2912
  }
2872
2913
  //#endregion
2873
- export { O as Button, pt as Calendar, A as Card, Be as Checkbox, He as CheckboxGroup, fn as ConfirmDialog, Qe as DateField, vt as DatePicker, kt as Dropdown, gn as EmptyState, W as FieldLabel, Ut as FilterSection, Vt as HighlightText, Rt as LanguageSwitch, Ft as Logo, St as Menu, Ct as MenuDivider, Tt as MenuItem, Q as Modal, Nt as NavItem, Pt as NavList, bt as NumberField, Ze as PasswordField, Sn as PhotoPreview, We as RadioButton, Ge as RadioGroup, It as Sidebar, Lt as SidebarFooter, mn as Skeleton, Jt as Spinner, qe as Switch, Wt as Tabs, Oe as Tag, Me as TagGroup, Xe as TextArea, Je as TextField, Kt as Toggle, Pe as Toolbar, Re as ToolbarAdaptive, S as Tooltip, En as VideoCard, Dn as formatDuration, On as formatDurationHMS };
2914
+ export { N as Badge, O as Button, gt as Calendar, A as Card, Ue as Checkbox, Ge as CheckboxGroup, hn as ConfirmDialog, tt as DateField, xt as DatePicker, Mt as Dropdown, yn as EmptyState, Pe as FieldLabel, Kt as FilterSection, Wt as HighlightText, Vt as LanguageSwitch, Rt as Logo, Tt as Menu, Et as MenuDivider, Ot as MenuItem, Q as Modal, It as NavItem, Lt as NavList, Ct as NumberField, et as PasswordField, Tn as PhotoPreview, qe as RadioButton, Je as RadioGroup, zt as Sidebar, Bt as SidebarFooter, _n as Skeleton, Zt as Spinner, Xe as Switch, qt as Tabs, Ae as Tag, Fe as TagGroup, $e as TextArea, Ze as TextField, Yt as Toggle, Le as Toolbar, Ve as ToolbarAdaptive, S as Tooltip, kn as VideoCard, An as formatDuration, jn as formatDurationHMS };
2874
2915
 
2875
2916
  //# sourceMappingURL=index.js.map