@indxsearch/systm 2.15.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -7,7 +7,7 @@ import * as O from "@radix-ui/react-popover";
7
7
  import * as k from "@radix-ui/react-tooltip";
8
8
  import * as A from "@radix-ui/react-dialog";
9
9
  import * as j from "@radix-ui/react-navigation-menu";
10
- var M = {
10
+ var ee = {
11
11
  button: "_button_15lsu_1",
12
12
  micro: "_micro_15lsu_29",
13
13
  default: "_default_15lsu_37",
@@ -15,10 +15,10 @@ var M = {
15
15
  primary: "_primary_15lsu_54",
16
16
  secondary: "_secondary_15lsu_64",
17
17
  ghost: "_ghost_15lsu_74"
18
- }, ee = {
18
+ }, te = {
19
19
  spinner: "_spinner_wspyi_1",
20
20
  frame: "_frame_wspyi_8"
21
- }, te = {
21
+ }, ne = {
22
22
  accelerate: {
23
23
  viewBox: "0 0 7 5",
24
24
  delay: 50,
@@ -279,13 +279,13 @@ var M = {
279
279
  "M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
280
280
  ]
281
281
  }
282
- }, ne = Object.keys(te);
282
+ }, re = Object.keys(ne);
283
283
  //#endregion
284
284
  //#region src/components/Spinner/Spinner.tsx
285
- function N({ name: e = ne[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
286
- let o = te[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, d = typeof t == "number" ? t * l : `calc(${t} * ${l})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
285
+ function ie({ name: e = re[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
286
+ let o = ne[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, d = typeof t == "number" ? t * l : `calc(${t} * ${l})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
287
287
  return /* @__PURE__ */ u("svg", {
288
- className: `${ee.spinner} ${i}`,
288
+ className: `${te.spinner} ${i}`,
289
289
  width: t,
290
290
  height: d,
291
291
  viewBox: o.viewBox,
@@ -294,7 +294,7 @@ function N({ name: e = ne[0], size: t = 21, color: n = "currentColor", delay: r,
294
294
  "aria-label": a,
295
295
  xmlns: "http://www.w3.org/2000/svg",
296
296
  children: o.frames.map((e, t) => e ? /* @__PURE__ */ u("path", {
297
- className: ee.frame,
297
+ className: te.frame,
298
298
  d: e,
299
299
  fill: n,
300
300
  style: {
@@ -306,15 +306,15 @@ function N({ name: e = ne[0], size: t = 21, color: n = "currentColor", delay: r,
306
306
  }
307
307
  //#endregion
308
308
  //#region src/components/Button/Button.tsx
309
- function P(t) {
309
+ function M(t) {
310
310
  let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...f } = t, p = t.disabled || c, { href: m } = f, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
311
- M.button,
312
- M[n],
313
- M[r],
311
+ ee.button,
312
+ ee[n],
313
+ ee[r],
314
314
  p ? "cursor-not-allowed" : "cursor-pointer",
315
315
  o
316
316
  ].filter(Boolean).join(" "), v = /* @__PURE__ */ d(l, { children: [
317
- c ? /* @__PURE__ */ u(N, { size: g }) : i && e.cloneElement(i, {
317
+ c ? /* @__PURE__ */ u(ie, { size: g }) : i && e.cloneElement(i, {
318
318
  size: h,
319
319
  color: "currentColor"
320
320
  }),
@@ -355,57 +355,57 @@ function P(t) {
355
355
  children: v
356
356
  });
357
357
  }
358
- var F = {
358
+ var N = {
359
359
  checkboxWrapper: "_checkboxWrapper_1vygn_1",
360
360
  checkbox: "_checkbox_1vygn_1",
361
361
  label: "_label_1vygn_44",
362
362
  score: "_score_1vygn_48",
363
363
  disabled: "_disabled_1vygn_55"
364
- }, re = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
364
+ }, ae = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
365
365
  let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, f = o.disabled;
366
366
  return t || n ? /* @__PURE__ */ d("label", {
367
367
  htmlFor: c,
368
- className: `${F.checkboxWrapper} ${r} ${f ? F.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
368
+ className: `${N.checkboxWrapper} ${r} ${f ? N.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
369
369
  children: [
370
370
  /* @__PURE__ */ u("input", {
371
371
  id: c,
372
372
  type: "checkbox",
373
- className: F.checkbox,
373
+ className: N.checkbox,
374
374
  "aria-describedby": l,
375
375
  "aria-label": a,
376
376
  ...o
377
377
  }),
378
378
  t && /* @__PURE__ */ u("span", {
379
- className: F.label,
379
+ className: N.label,
380
380
  children: t
381
381
  }),
382
382
  n && /* @__PURE__ */ u("span", {
383
383
  id: l,
384
- className: F.score,
384
+ className: N.score,
385
385
  children: n
386
386
  })
387
387
  ]
388
388
  }) : /* @__PURE__ */ u("input", {
389
389
  id: c,
390
390
  type: "checkbox",
391
- className: `${F.checkbox} ${r}`,
391
+ className: `${N.checkbox} ${r}`,
392
392
  "aria-label": a,
393
393
  disabled: f,
394
394
  ...o
395
395
  });
396
- }, ie = {
396
+ }, oe = {
397
397
  container: "_container_dlzj1_1",
398
398
  default: "_default_dlzj1_5"
399
399
  };
400
400
  //#endregion
401
401
  //#region src/components/Base/Base.tsx
402
- function ae({ children: e, className: t }) {
402
+ function se({ children: e, className: t }) {
403
403
  return /* @__PURE__ */ u("div", {
404
- className: `${ie.container} ${ie.default} ${t || ""}`,
404
+ className: `${oe.container} ${oe.default} ${t || ""}`,
405
405
  children: e
406
406
  });
407
407
  }
408
- var I = {
408
+ var P = {
409
409
  container: "_container_10bfq_1",
410
410
  header: "_header_10bfq_11",
411
411
  title: "_title_10bfq_31",
@@ -414,15 +414,15 @@ var I = {
414
414
  };
415
415
  //#endregion
416
416
  //#region src/components/FilterPanelBase/FilterPanelBase.tsx
417
- function oe({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
417
+ function ce({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
418
418
  let [s, l] = c(() => !o), f = e.useId();
419
419
  return i(() => {
420
420
  a && l(!o);
421
421
  }, [o, a]), /* @__PURE__ */ d("div", {
422
- className: `${I.container} ${r}`,
422
+ className: `${P.container} ${r}`,
423
423
  children: [t && (a ? /* @__PURE__ */ d("button", {
424
424
  type: "button",
425
- className: I.header,
425
+ className: P.header,
426
426
  onClick: () => {
427
427
  a && l((e) => !e);
428
428
  },
@@ -430,7 +430,7 @@ function oe({ title: t, children: n, className: r = "", collapsible: a = !0, col
430
430
  "aria-expanded": s,
431
431
  "aria-controls": f,
432
432
  children: [/* @__PURE__ */ u("div", {
433
- className: I.title,
433
+ className: P.title,
434
434
  children: t
435
435
  }), /* @__PURE__ */ u("span", {
436
436
  "aria-hidden": "true",
@@ -440,21 +440,21 @@ function oe({ title: t, children: n, className: r = "", collapsible: a = !0, col
440
440
  })
441
441
  })]
442
442
  }) : /* @__PURE__ */ u("div", {
443
- className: I.header,
443
+ className: P.header,
444
444
  children: /* @__PURE__ */ u("div", {
445
- className: I.title,
445
+ className: P.title,
446
446
  children: t
447
447
  })
448
448
  })), (!a || s) && /* @__PURE__ */ u("div", {
449
449
  id: f,
450
- className: I.body,
450
+ className: P.body,
451
451
  role: "region",
452
452
  "aria-label": t || "Filter panel content",
453
453
  children: n
454
454
  })]
455
455
  });
456
456
  }
457
- var L = {
457
+ var F = {
458
458
  wrapper: "_wrapper_tf1yl_1",
459
459
  label: "_label_tf1yl_7",
460
460
  inputContainer: "_inputContainer_tf1yl_12",
@@ -466,27 +466,27 @@ var L = {
466
466
  sizeDefault: "_sizeDefault_tf1yl_87",
467
467
  error: "_error_tf1yl_110",
468
468
  errorText: "_errorText_tf1yl_114"
469
- }, se = {
469
+ }, le = {
470
470
  micro: 14,
471
471
  default: 21
472
472
  };
473
- function ce({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: c = "default", showFocusBorder: l = !1, children: f, id: p, type: m = "search", ...h }) {
474
- let g = s(null), _ = e.useId(), v = p || _, y = `${v}-error`, b = se[c], x = {};
473
+ function ue({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: c = "default", showFocusBorder: l = !1, children: f, id: p, type: m = "search", ...h }) {
474
+ let g = s(null), _ = e.useId(), v = p || _, y = `${v}-error`, b = le[c], x = {};
475
475
  o && (x["--search-icon-color"] = o);
476
- let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? L.sizeMicro : L.sizeDefault;
476
+ let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? F.sizeMicro : F.sizeDefault;
477
477
  return /* @__PURE__ */ d("div", {
478
- className: `${L.wrapper} ${r}`,
478
+ className: `${F.wrapper} ${r}`,
479
479
  children: [
480
480
  t && /* @__PURE__ */ u("label", {
481
481
  htmlFor: v,
482
- className: L.label,
482
+ className: F.label,
483
483
  children: t
484
484
  }),
485
485
  /* @__PURE__ */ d("div", {
486
- className: `${L.inputContainer} ${w}`,
486
+ className: `${F.inputContainer} ${w}`,
487
487
  children: [
488
488
  i && /* @__PURE__ */ u("span", {
489
- className: L.searchIcon,
489
+ className: F.searchIcon,
490
490
  "aria-hidden": "true",
491
491
  children: e.cloneElement(C, {
492
492
  size: b,
@@ -497,28 +497,28 @@ function ce({ label: t, error: n, className: r = "", showSearchIcon: i = !0, sea
497
497
  ref: g,
498
498
  id: v,
499
499
  type: m,
500
- className: `${L.input} ${l ? L.focus : ""} ${n ? L.error : ""}`,
500
+ className: `${F.input} ${l ? F.focus : ""} ${n ? F.error : ""}`,
501
501
  style: x,
502
502
  "aria-invalid": n ? "true" : "false",
503
503
  "aria-describedby": n ? y : void 0,
504
504
  ...h
505
505
  }),
506
506
  f && /* @__PURE__ */ u("div", {
507
- className: L.rightContent,
507
+ className: F.rightContent,
508
508
  children: f
509
509
  })
510
510
  ]
511
511
  }),
512
512
  n && /* @__PURE__ */ u("span", {
513
513
  id: y,
514
- className: L.errorText,
514
+ className: F.errorText,
515
515
  role: "alert",
516
516
  children: n
517
517
  })
518
518
  ]
519
519
  });
520
520
  }
521
- var R = {
521
+ var I = {
522
522
  wrapper: "_wrapper_roite_1",
523
523
  label: "_label_roite_10",
524
524
  input: "_input_roite_15",
@@ -528,14 +528,14 @@ var R = {
528
528
  };
529
529
  //#endregion
530
530
  //#region src/components/InputField/InputField.tsx
531
- function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
531
+ function de({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
532
532
  let c = e.useId(), l = o || c, f = `${l}-error`, p = n || !i;
533
533
  return /* @__PURE__ */ d("div", {
534
- className: `${R.wrapper} ${r}`,
534
+ className: `${I.wrapper} ${r}`,
535
535
  children: [
536
536
  t && /* @__PURE__ */ d("label", {
537
537
  htmlFor: l,
538
- className: R.label,
538
+ className: I.label,
539
539
  children: [t, s.required && /* @__PURE__ */ u("span", {
540
540
  "aria-label": "required",
541
541
  children: " *"
@@ -543,29 +543,29 @@ function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a
543
543
  }),
544
544
  /* @__PURE__ */ u("input", {
545
545
  id: l,
546
- className: `${R.input} ${a === "borderBottom" ? R.borderBottom : ""} ${p ? R.error : ""}`,
546
+ className: `${I.input} ${a === "borderBottom" ? I.borderBottom : ""} ${p ? I.error : ""}`,
547
547
  "aria-invalid": p ? "true" : "false",
548
548
  "aria-describedby": n ? f : void 0,
549
549
  ...s
550
550
  }),
551
551
  n && /* @__PURE__ */ u("span", {
552
552
  id: f,
553
- className: R.errorText,
553
+ className: I.errorText,
554
554
  role: "alert",
555
555
  children: n
556
556
  })
557
557
  ]
558
558
  });
559
559
  }
560
- var ue = {
560
+ var L = {
561
561
  radioWrapper: "_radioWrapper_1faq0_1",
562
562
  radioInput: "_radioInput_1faq0_9",
563
563
  customRadio: "_customRadio_1faq0_23",
564
564
  labelText: "_labelText_1faq0_57",
565
565
  disabled: "_disabled_1faq0_63"
566
- }, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
566
+ }, fe = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
567
567
  htmlFor: e,
568
- className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
568
+ className: `${L.radioWrapper} ${o ? L.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
569
569
  children: [
570
570
  /* @__PURE__ */ u("input", {
571
571
  id: e,
@@ -576,24 +576,24 @@ var ue = {
576
576
  onChange: a,
577
577
  disabled: o,
578
578
  "aria-label": s,
579
- className: ue.radioInput
579
+ className: L.radioInput
580
580
  }),
581
- /* @__PURE__ */ u("span", { className: ue.customRadio }),
581
+ /* @__PURE__ */ u("span", { className: L.customRadio }),
582
582
  /* @__PURE__ */ u("span", {
583
- className: ue.labelText,
583
+ className: L.labelText,
584
584
  children: r
585
585
  })
586
586
  ]
587
- }), fe = {
587
+ }), pe = {
588
588
  switch: "_switch_1xsea_1",
589
589
  slider: "_slider_1xsea_23",
590
590
  label: "_label_1xsea_28",
591
591
  disabled: "_disabled_1xsea_43"
592
- }, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
592
+ }, me = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
593
593
  let s = e.useId(), c = t || s;
594
594
  return /* @__PURE__ */ d("label", {
595
595
  htmlFor: c,
596
- className: `${fe.switch} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
596
+ className: `${pe.switch} ${i ? pe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
597
597
  children: [
598
598
  /* @__PURE__ */ u("input", {
599
599
  id: c,
@@ -606,16 +606,16 @@ var ue = {
606
606
  disabled: i
607
607
  }),
608
608
  /* @__PURE__ */ u("span", {
609
- className: fe.slider,
609
+ className: pe.slider,
610
610
  "aria-hidden": "true"
611
611
  }),
612
612
  a && /* @__PURE__ */ u("span", {
613
- className: fe.label,
613
+ className: pe.label,
614
614
  children: a
615
615
  })
616
616
  ]
617
617
  });
618
- }, z = {
618
+ }, R = {
619
619
  label: "_label_1o3ls_1",
620
620
  basetrack: "_basetrack_1o3ls_8",
621
621
  selectedtrack: "_selectedtrack_1o3ls_36",
@@ -629,23 +629,23 @@ var ue = {
629
629
  stepmarksInline: "_stepmarksInline_1o3ls_113",
630
630
  stepmarksBelow: "_stepmarksBelow_1o3ls_120",
631
631
  basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
632
- }, me = 50, he = (t) => {
632
+ }, he = 50, ge = (t) => {
633
633
  let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, stepMarks: p, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
634
634
  if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
635
635
  className: o,
636
636
  children: [g && /* @__PURE__ */ u("span", {
637
- className: z.label,
637
+ className: R.label,
638
638
  children: g
639
639
  }), /* @__PURE__ */ u("div", {
640
- className: `${z.basetrack} ${z.disabled}`,
640
+ className: `${R.basetrack} ${R.disabled}`,
641
641
  "aria-hidden": "true"
642
642
  })]
643
643
  });
644
- let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= me, C = S && p === "below" ? `${z.basetrack} ${z.basetrackStepsBelow}` : z.basetrack, w = S ? /* @__PURE__ */ u("div", {
645
- className: `${z.stepmarks} ${p === "below" ? z.stepmarksBelow : z.stepmarksInline}`,
644
+ let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= he, C = S && p === "below" ? `${R.basetrack} ${R.basetrackStepsBelow}` : R.basetrack, w = S ? /* @__PURE__ */ u("div", {
645
+ className: `${R.stepmarks} ${p === "below" ? R.stepmarksBelow : R.stepmarksInline}`,
646
646
  "aria-hidden": "true",
647
647
  children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ u("span", {
648
- className: z.stepmark,
648
+ className: R.stepmark,
649
649
  style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
650
650
  }, t))
651
651
  }) : null;
@@ -655,7 +655,7 @@ var ue = {
655
655
  className: o,
656
656
  children: [g && /* @__PURE__ */ u("label", {
657
657
  htmlFor: b,
658
- className: z.label,
658
+ className: R.label,
659
659
  children: g
660
660
  }), /* @__PURE__ */ u(E, {
661
661
  step: i,
@@ -673,7 +673,7 @@ var ue = {
673
673
  style: { ...a.style },
674
674
  children: [
675
675
  !v && /* @__PURE__ */ u("div", {
676
- className: z.selectedtrack,
676
+ className: R.selectedtrack,
677
677
  style: {
678
678
  left: `${m}%`,
679
679
  width: `${h}%`,
@@ -681,7 +681,7 @@ var ue = {
681
681
  }
682
682
  }),
683
683
  v && /* @__PURE__ */ u("div", {
684
- className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
684
+ className: `${R.livetrack} ${l ? R.livetrackFaceted : R.livetrackDefault}`,
685
685
  style: {
686
686
  left: `${g}%`,
687
687
  width: `${_}%`,
@@ -698,7 +698,7 @@ var ue = {
698
698
  return /* @__PURE__ */ u("div", {
699
699
  ...o,
700
700
  id: t === 0 ? b : void 0,
701
- className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
701
+ className: `${R.thumbs} ${a ? R.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
702
702
  style: {
703
703
  ...o.style,
704
704
  zIndex: "3"
@@ -717,7 +717,7 @@ var ue = {
717
717
  className: o,
718
718
  children: [g && /* @__PURE__ */ u("label", {
719
719
  htmlFor: b,
720
- className: z.label,
720
+ className: R.label,
721
721
  children: g
722
722
  }), /* @__PURE__ */ u(E, {
723
723
  step: i,
@@ -735,7 +735,7 @@ var ue = {
735
735
  style: { ...o.style },
736
736
  children: [
737
737
  !g && /* @__PURE__ */ u("div", {
738
- className: z.selectedtrack,
738
+ className: R.selectedtrack,
739
739
  style: {
740
740
  left: "0%",
741
741
  width: `${p}%`,
@@ -743,7 +743,7 @@ var ue = {
743
743
  }
744
744
  }),
745
745
  g && /* @__PURE__ */ u("div", {
746
- className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
746
+ className: `${R.livetrack} ${l ? R.livetrackFaceted : R.livetrackDefault}`,
747
747
  style: {
748
748
  left: `${m}%`,
749
749
  width: `${h}%`,
@@ -760,7 +760,7 @@ var ue = {
760
760
  return /* @__PURE__ */ u("div", {
761
761
  ...o,
762
762
  id: b,
763
- className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
763
+ className: `${R.thumbs} ${a ? R.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
764
764
  style: {
765
765
  ...o.style,
766
766
  zIndex: "3"
@@ -774,7 +774,7 @@ var ue = {
774
774
  })]
775
775
  });
776
776
  }
777
- }, B = {
777
+ }, z = {
778
778
  wrapper: "_wrapper_15fsv_1",
779
779
  label: "_label_15fsv_7",
780
780
  trigger: "_trigger_15fsv_12",
@@ -786,14 +786,14 @@ var ue = {
786
786
  viewport: "_viewport_15fsv_76",
787
787
  item: "_item_15fsv_82",
788
788
  itemIndicator: "_itemIndicator_15fsv_105"
789
- }, ge = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
789
+ }, _e = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
790
790
  let p = e.useId(), g = f || p, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ d(D.Root, {
791
791
  value: t,
792
792
  onValueChange: n,
793
793
  disabled: o,
794
794
  children: [/* @__PURE__ */ d(D.Trigger, {
795
795
  id: g,
796
- className: `${B.trigger} ${B[c]} ${a} cursor-pointer`,
796
+ className: `${z.trigger} ${z[c]} ${a} cursor-pointer`,
797
797
  ...s ? { "aria-labelledby": _ } : l ? { "aria-label": l } : {},
798
798
  children: [/* @__PURE__ */ d("span", {
799
799
  style: {
@@ -803,7 +803,7 @@ var ue = {
803
803
  },
804
804
  children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
805
805
  }), /* @__PURE__ */ u(D.Icon, {
806
- className: B.icon,
806
+ className: z.icon,
807
807
  "aria-hidden": "true",
808
808
  children: /* @__PURE__ */ u(h, {
809
809
  size: c === "large" ? 21 : 14,
@@ -811,16 +811,16 @@ var ue = {
811
811
  })
812
812
  })]
813
813
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
814
- className: B.content,
814
+ className: z.content,
815
815
  position: "popper",
816
816
  side: "bottom",
817
817
  align: "start",
818
818
  sideOffset: 4,
819
819
  children: /* @__PURE__ */ u(D.Viewport, {
820
- className: B.viewport,
820
+ className: z.viewport,
821
821
  children: r.map((e) => /* @__PURE__ */ d(D.Item, {
822
822
  value: e.value,
823
- className: B.item,
823
+ className: z.item,
824
824
  children: [/* @__PURE__ */ d("span", {
825
825
  style: {
826
826
  display: "inline-flex",
@@ -829,7 +829,7 @@ var ue = {
829
829
  },
830
830
  children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
831
831
  }), /* @__PURE__ */ u(D.ItemIndicator, {
832
- className: B.itemIndicator,
832
+ className: z.itemIndicator,
833
833
  children: /* @__PURE__ */ u(m, {
834
834
  size: 12,
835
835
  color: "currentColor"
@@ -840,22 +840,22 @@ var ue = {
840
840
  }) })]
841
841
  });
842
842
  return s ? /* @__PURE__ */ d("div", {
843
- className: B.wrapper,
843
+ className: z.wrapper,
844
844
  children: [/* @__PURE__ */ u("label", {
845
845
  id: _,
846
846
  htmlFor: g,
847
- className: B.label,
847
+ className: z.label,
848
848
  children: s
849
849
  }), y]
850
850
  }) : y;
851
- }, _e = { content: "_content_1qahr_1" }, ve = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ d(O.Root, {
851
+ }, ve = { content: "_content_1qahr_1" }, ye = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": c, "aria-describedby": l }) => /* @__PURE__ */ d(O.Root, {
852
852
  open: n,
853
853
  onOpenChange: r,
854
854
  children: [/* @__PURE__ */ u(O.Trigger, {
855
855
  asChild: !0,
856
856
  children: e
857
857
  }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
858
- className: `${_e.content} ${s}`,
858
+ className: `${ve.content} ${s}`,
859
859
  align: i,
860
860
  side: a,
861
861
  sideOffset: o,
@@ -863,7 +863,7 @@ var ue = {
863
863
  "aria-describedby": l,
864
864
  children: t
865
865
  }) })]
866
- }), V = {
866
+ }), B = {
867
867
  table: "_table_j6zqj_1",
868
868
  caption: "_caption_j6zqj_8",
869
869
  headerRow: "_headerRow_j6zqj_25",
@@ -879,17 +879,17 @@ var ue = {
879
879
  };
880
880
  //#endregion
881
881
  //#region src/components/Table/Table.tsx
882
- function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
882
+ function be({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
883
883
  let o = /* @__PURE__ */ d("table", {
884
- className: `${V.table} ${r && i ? V.stickyFirst : ""}`,
884
+ className: `${B.table} ${r && i ? B.stickyFirst : ""}`,
885
885
  "aria-label": n,
886
886
  children: [t && /* @__PURE__ */ u("caption", {
887
- className: V.caption,
887
+ className: B.caption,
888
888
  children: t
889
889
  }), e]
890
890
  });
891
891
  return r ? /* @__PURE__ */ u("div", {
892
- className: `${V.scroll} ${a === void 0 ? "" : V.bleedEnd}`,
892
+ className: `${B.scroll} ${a === void 0 ? "" : B.bleedEnd}`,
893
893
  style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
894
894
  role: "region",
895
895
  "aria-label": n ?? t,
@@ -899,27 +899,27 @@ function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
899
899
  }
900
900
  //#endregion
901
901
  //#region src/components/Table/TableHeader.tsx
902
- function be({ children: t }) {
902
+ function xe({ children: t }) {
903
903
  let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
904
904
  scope: "col",
905
905
  ...t.props
906
906
  }) : t);
907
907
  return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
908
- className: V.headerRow,
908
+ className: B.headerRow,
909
909
  children: n
910
910
  }) });
911
911
  }
912
912
  //#endregion
913
913
  //#region src/components/Table/TableRow.tsx
914
- function xe({ children: e }) {
914
+ function Se({ children: e }) {
915
915
  return /* @__PURE__ */ u("tr", {
916
- className: V.dataRow,
916
+ className: B.dataRow,
917
917
  children: e
918
918
  });
919
919
  }
920
920
  //#endregion
921
921
  //#region src/components/Table/TableCell.tsx
922
- function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
922
+ function Ce({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
923
923
  let a = n ? "th" : "td", o = {
924
924
  ...n && r ? { scope: r } : {},
925
925
  ...i ? { colSpan: i } : {}
@@ -927,12 +927,12 @@ function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
927
927
  return e || t ? /* @__PURE__ */ u(a, {
928
928
  ...o,
929
929
  children: /* @__PURE__ */ d("div", {
930
- className: V.cellInner,
930
+ className: B.cellInner,
931
931
  children: [e && /* @__PURE__ */ u("span", {
932
- className: V.cellLabel,
932
+ className: B.cellLabel,
933
933
  children: e
934
934
  }), t && /* @__PURE__ */ u("div", {
935
- className: V.cellContent,
935
+ className: B.cellContent,
936
936
  children: t
937
937
  })]
938
938
  })
@@ -943,18 +943,18 @@ function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
943
943
  }
944
944
  //#endregion
945
945
  //#region src/components/Table/TableValue.tsx
946
- function Ce({ children: e }) {
946
+ function we({ children: e }) {
947
947
  return /* @__PURE__ */ u("span", {
948
- className: V.value,
948
+ className: B.value,
949
949
  children: e
950
950
  });
951
951
  }
952
952
  //#endregion
953
953
  //#region src/components/Table/TableIcon.tsx
954
- function we({ children: t, "aria-label": n }) {
954
+ function Te({ children: t, "aria-label": n }) {
955
955
  let r = !n;
956
956
  return /* @__PURE__ */ u("span", {
957
- className: V.icon,
957
+ className: B.icon,
958
958
  "aria-hidden": r ? "true" : void 0,
959
959
  "aria-label": n,
960
960
  children: e.cloneElement(t, {
@@ -963,7 +963,7 @@ function we({ children: t, "aria-label": n }) {
963
963
  })
964
964
  });
965
965
  }
966
- var H = {
966
+ var V = {
967
967
  tabs: "_tabs_5w265_1",
968
968
  scrollable: "_scrollable_5w265_16",
969
969
  tab: "_tab_5w265_1",
@@ -978,23 +978,23 @@ var H = {
978
978
  };
979
979
  //#endregion
980
980
  //#region src/components/Tabs/Tabs.tsx
981
- function Te(e, t) {
981
+ function Ee(e, t) {
982
982
  if (!e || !t) return;
983
983
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
984
984
  i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
985
985
  }
986
- var Ee = {
986
+ var De = {
987
987
  micro: 14,
988
988
  default: 14,
989
989
  large: 21
990
990
  };
991
- function De({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
991
+ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant: f = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
992
992
  let v = s(null), y = s(/* @__PURE__ */ new Map()), b = a(), x = Math.max(e.findIndex((e) => e.value === r), 0), S = e.some((e) => e.href !== void 0), C = (t) => {
993
993
  let n = e[t];
994
994
  if (!n) return;
995
995
  o(n.value);
996
996
  let r = y.current.get(n.value);
997
- r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
997
+ r?.focus({ preventScroll: !0 }), p && Ee(v.current, r);
998
998
  }, w = (t, n) => {
999
999
  for (let r = 1; r <= e.length; r++) {
1000
1000
  let i = (t + n * r + e.length * r) % e.length;
@@ -1041,27 +1041,27 @@ function De({ items: e, value: r, onValueChange: o, size: c = "default", variant
1041
1041
  m,
1042
1042
  e.length
1043
1043
  ]), i(() => {
1044
- p && Te(v.current, y.current.get(r));
1044
+ p && Ee(v.current, y.current.get(r));
1045
1045
  }, [p, r]), /* @__PURE__ */ u("div", {
1046
1046
  ref: v,
1047
- className: `${H.tabs} ${f === "button" ? H.buttonVariant : ""} ${p ? H.scrollable : ""} ${p && m !== void 0 ? H.bleed : ""}`,
1047
+ className: `${V.tabs} ${f === "button" ? V.buttonVariant : ""} ${p ? V.scrollable : ""} ${p && m !== void 0 ? V.bleed : ""}`,
1048
1048
  style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1049
1049
  role: S ? "navigation" : "tablist",
1050
1050
  "aria-label": g,
1051
1051
  children: e.map((e, r) => {
1052
1052
  let i = r === x, a = /* @__PURE__ */ d(l, { children: [
1053
1053
  e.icon ? /* @__PURE__ */ u("span", {
1054
- className: H.icon,
1054
+ className: V.icon,
1055
1055
  "aria-hidden": "true",
1056
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ee[c] }) : e.icon
1056
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: De[c] }) : e.icon
1057
1057
  }) : null,
1058
1058
  e.label,
1059
1059
  e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
1060
- className: H.badge,
1060
+ className: V.badge,
1061
1061
  title: e.badgeTitle,
1062
1062
  children: e.badge
1063
1063
  }) : null
1064
- ] }), s = `${H.tab} ${H[c]} ${i ? H.active : ""}`;
1064
+ ] }), s = `${V.tab} ${V[c]} ${i ? V.active : ""}`;
1065
1065
  if (e.href !== void 0) {
1066
1066
  let t = {
1067
1067
  id: `${b}-tab-${e.value}`,
@@ -1103,7 +1103,7 @@ function De({ items: e, value: r, onValueChange: o, size: c = "default", variant
1103
1103
  })
1104
1104
  });
1105
1105
  }
1106
- var U = {
1106
+ var H = {
1107
1107
  root: "_root_wrjxq_1",
1108
1108
  micro: "_micro_wrjxq_2",
1109
1109
  default: "_default_wrjxq_3",
@@ -1123,106 +1123,106 @@ var U = {
1123
1123
  };
1124
1124
  //#endregion
1125
1125
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1126
- function Oe(t) {
1126
+ function ke(t) {
1127
1127
  return e.isValidElement(t) ? e.cloneElement(t, {
1128
1128
  size: "14px",
1129
1129
  color: "currentColor"
1130
1130
  }) : t;
1131
1131
  }
1132
- var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1132
+ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1133
1133
  size: 14,
1134
1134
  color: "currentColor"
1135
1135
  }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1136
1136
  "aria-label": o,
1137
- className: `${U.root} ${U[t]} ${n === "truncate" ? U.truncate : ""} ${r}`,
1137
+ className: `${H.root} ${H[t]} ${n === "truncate" ? H.truncate : ""} ${r}`,
1138
1138
  children: /* @__PURE__ */ u("ol", {
1139
- className: U.list,
1139
+ className: H.list,
1140
1140
  children: e.map((t, r) => /* @__PURE__ */ d("li", {
1141
- className: U.item,
1141
+ className: H.item,
1142
1142
  children: [r > 0 && /* @__PURE__ */ u("span", {
1143
- className: U.separator,
1143
+ className: H.separator,
1144
1144
  "aria-hidden": "true",
1145
1145
  children: i
1146
1146
  }), /* @__PURE__ */ d("div", {
1147
- className: `${U.step} ${t.switcher ? U.switchable : ""}`,
1147
+ className: `${H.step} ${t.switcher ? H.switchable : ""}`,
1148
1148
  children: [t.href ? (() => {
1149
1149
  let i = {
1150
- className: U.label,
1150
+ className: H.label,
1151
1151
  href: t.href,
1152
1152
  title: n === "truncate" ? t.label : void 0,
1153
1153
  onClick: t.onClick,
1154
1154
  "aria-current": r === e.length - 1 ? "page" : void 0,
1155
1155
  children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1156
- className: U.icon,
1156
+ className: H.icon,
1157
1157
  "aria-hidden": "true",
1158
- children: Oe(t.icon)
1158
+ children: ke(t.icon)
1159
1159
  }), /* @__PURE__ */ u("span", {
1160
- className: U.text,
1160
+ className: H.text,
1161
1161
  children: t.label
1162
1162
  })] })
1163
1163
  };
1164
1164
  return a ? a(t, i) : /* @__PURE__ */ u("a", { ...i });
1165
1165
  })() : /* @__PURE__ */ d("span", {
1166
- className: U.label,
1166
+ className: H.label,
1167
1167
  title: n === "truncate" ? t.label : void 0,
1168
1168
  "aria-current": r === e.length - 1 ? "page" : void 0,
1169
1169
  children: [t.icon && /* @__PURE__ */ u("span", {
1170
- className: U.icon,
1170
+ className: H.icon,
1171
1171
  "aria-hidden": "true",
1172
- children: Oe(t.icon)
1172
+ children: ke(t.icon)
1173
1173
  }), /* @__PURE__ */ u("span", {
1174
- className: U.text,
1174
+ className: H.text,
1175
1175
  children: t.label
1176
1176
  })]
1177
1177
  }), t.switcher && /* @__PURE__ */ d(D.Root, {
1178
1178
  value: t.switcher.value,
1179
- onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1179
+ onValueChange: (e) => e === Ae ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1180
1180
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1181
1181
  children: [/* @__PURE__ */ u(D.Trigger, {
1182
- className: U.trigger,
1182
+ className: H.trigger,
1183
1183
  "aria-label": `${t.switcher.label}: ${t.label}`,
1184
1184
  children: /* @__PURE__ */ u(D.Icon, {
1185
1185
  "aria-hidden": "true",
1186
- className: U.icon,
1186
+ className: H.icon,
1187
1187
  children: /* @__PURE__ */ u(y, {
1188
1188
  size: 14,
1189
1189
  color: "currentColor"
1190
1190
  })
1191
1191
  })
1192
1192
  }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
1193
- className: `${B.content} ${U.menu}`,
1193
+ className: `${z.content} ${H.menu}`,
1194
1194
  position: "popper",
1195
1195
  align: "end",
1196
1196
  sideOffset: 4,
1197
1197
  collisionPadding: 8,
1198
1198
  children: /* @__PURE__ */ d(D.Viewport, {
1199
- className: B.viewport,
1199
+ className: z.viewport,
1200
1200
  children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
1201
1201
  value: e.value,
1202
- className: B.item,
1202
+ className: z.item,
1203
1203
  textValue: e.label,
1204
1204
  children: [/* @__PURE__ */ d("span", {
1205
- className: U.option,
1205
+ className: H.option,
1206
1206
  children: [e.icon && /* @__PURE__ */ u("span", {
1207
- className: U.icon,
1207
+ className: H.icon,
1208
1208
  "aria-hidden": "true",
1209
1209
  children: e.icon
1210
1210
  }), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
1211
1211
  }), /* @__PURE__ */ u(D.ItemIndicator, {
1212
- className: B.itemIndicator,
1212
+ className: z.itemIndicator,
1213
1213
  children: /* @__PURE__ */ u(m, {
1214
1214
  size: 12,
1215
1215
  color: "currentColor"
1216
1216
  })
1217
1217
  })]
1218
- }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
1219
- value: ke,
1220
- className: B.item,
1218
+ }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: H.menuDivider }), /* @__PURE__ */ u(D.Item, {
1219
+ value: Ae,
1220
+ className: z.item,
1221
1221
  textValue: t.switcher.action.label,
1222
1222
  children: /* @__PURE__ */ d("span", {
1223
- className: U.option,
1223
+ className: H.option,
1224
1224
  children: [/* @__PURE__ */ u("span", {
1225
- className: U.icon,
1225
+ className: H.icon,
1226
1226
  "aria-hidden": "true",
1227
1227
  children: /* @__PURE__ */ u(x, {
1228
1228
  size: 14,
@@ -1237,7 +1237,7 @@ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap"
1237
1237
  })]
1238
1238
  }, t.id))
1239
1239
  })
1240
- }), je = {
1240
+ }), Me = {
1241
1241
  wrapper: "_wrapper_1a9jo_1",
1242
1242
  track: "_track_1a9jo_8",
1243
1243
  fill: "_fill_1a9jo_36",
@@ -1245,42 +1245,42 @@ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap"
1245
1245
  };
1246
1246
  //#endregion
1247
1247
  //#region src/components/ProgressBar/ProgressBar.tsx
1248
- function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1248
+ function Ne({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1249
1249
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1250
1250
  return /* @__PURE__ */ d("div", {
1251
- className: `${je.wrapper} ${r}`,
1251
+ className: `${Me.wrapper} ${r}`,
1252
1252
  role: "progressbar",
1253
1253
  "aria-valuenow": i,
1254
1254
  "aria-valuemin": 0,
1255
1255
  "aria-valuemax": 100,
1256
1256
  children: [/* @__PURE__ */ u("div", {
1257
- className: je.track,
1257
+ className: Me.track,
1258
1258
  children: /* @__PURE__ */ u("div", {
1259
- className: je.fill,
1259
+ className: Me.fill,
1260
1260
  style: {
1261
1261
  width: `${i}%`,
1262
1262
  backgroundColor: o
1263
1263
  }
1264
1264
  })
1265
1265
  }), t && /* @__PURE__ */ u("span", {
1266
- className: je.label,
1266
+ className: Me.label,
1267
1267
  "aria-hidden": "true",
1268
1268
  children: a
1269
1269
  })]
1270
1270
  });
1271
1271
  }
1272
- var Ne = {
1272
+ var Pe = {
1273
1273
  chip: "_chip_iaxe0_1",
1274
1274
  large: "_large_iaxe0_14"
1275
1275
  };
1276
1276
  //#endregion
1277
1277
  //#region src/components/Chip/Chip.tsx
1278
- function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1278
+ function Fe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1279
1279
  let s = {};
1280
1280
  return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
1281
1281
  className: [
1282
- Ne.chip,
1283
- o === "large" && Ne.large,
1282
+ Pe.chip,
1283
+ o === "large" && Pe.large,
1284
1284
  i
1285
1285
  ].filter(Boolean).join(" "),
1286
1286
  style: s,
@@ -1290,7 +1290,7 @@ function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size:
1290
1290
  }), t]
1291
1291
  });
1292
1292
  }
1293
- var W = {
1293
+ var U = {
1294
1294
  root: "_root_ok48u_3",
1295
1295
  icon: "_icon_ok48u_16",
1296
1296
  body: "_body_ok48u_17",
@@ -1301,63 +1301,63 @@ var W = {
1301
1301
  success: "_success_ok48u_24",
1302
1302
  warning: "_warning_ok48u_25",
1303
1303
  destructive: "_destructive_ok48u_26"
1304
- }, Fe = {
1304
+ }, Ie = {
1305
1305
  success: /* @__PURE__ */ u(m, {}),
1306
1306
  warning: /* @__PURE__ */ u(w, {}),
1307
1307
  destructive: /* @__PURE__ */ u(w, {})
1308
1308
  };
1309
- function Ie(t) {
1309
+ function Le(t) {
1310
1310
  return e.isValidElement(t) ? e.cloneElement(t, {
1311
1311
  size: 16,
1312
1312
  color: "currentColor"
1313
1313
  }) : t;
1314
1314
  }
1315
- var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1316
- let a = t === void 0 ? Fe[e] : t;
1315
+ var Re = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1316
+ let a = t === void 0 ? Ie[e] : t;
1317
1317
  return /* @__PURE__ */ d("div", {
1318
1318
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1319
- className: `${W.root} ${W[e]} ${n}`,
1319
+ className: `${U.root} ${U[e]} ${n}`,
1320
1320
  children: [a && /* @__PURE__ */ u("span", {
1321
- className: W.icon,
1321
+ className: U.icon,
1322
1322
  "aria-hidden": "true",
1323
- children: Ie(a)
1323
+ children: Le(a)
1324
1324
  }), /* @__PURE__ */ u("div", {
1325
- className: W.body,
1325
+ className: U.body,
1326
1326
  children: r
1327
1327
  })]
1328
1328
  });
1329
- }, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1330
- className: `${W.title} ${t}`,
1329
+ }, ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1330
+ className: `${U.title} ${t}`,
1331
1331
  children: e
1332
- }), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1333
- className: `${W.description} ${t}`,
1332
+ }), Be = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1333
+ className: `${U.description} ${t}`,
1334
1334
  children: e
1335
- }), Be = {
1335
+ }), Ve = {
1336
1336
  root: "_root_1aak8_10",
1337
1337
  main: "_main_1aak8_33",
1338
1338
  aside: "_aside_1aak8_34",
1339
1339
  message: "_message_1aak8_41"
1340
- }, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1340
+ }, He = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1341
1341
  role: "region",
1342
1342
  "aria-label": a,
1343
- className: `${Be.root} ${i}`,
1343
+ className: `${Ve.root} ${i}`,
1344
1344
  children: [/* @__PURE__ */ d("div", {
1345
- className: Be.main,
1345
+ className: Ve.main,
1346
1346
  children: [r, t && /* @__PURE__ */ u("span", {
1347
- className: Be.message,
1347
+ className: Ve.message,
1348
1348
  children: t
1349
1349
  })]
1350
1350
  }), n && /* @__PURE__ */ u("div", {
1351
- className: Be.aside,
1351
+ className: Ve.aside,
1352
1352
  children: n
1353
1353
  })]
1354
- }) : null, He = {
1354
+ }) : null, Ue = {
1355
1355
  tooltip: "_tooltip_1de7z_1",
1356
1356
  arrow: "_arrow_1de7z_13"
1357
1357
  };
1358
1358
  //#endregion
1359
1359
  //#region src/components/Tooltip/Tooltip.tsx
1360
- function Ue({ content: e, position: t = "top", children: n, className: r }) {
1360
+ function We({ content: e, position: t = "top", children: n, className: r }) {
1361
1361
  return /* @__PURE__ */ u(k.Provider, {
1362
1362
  delayDuration: 80,
1363
1363
  children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
@@ -1366,107 +1366,118 @@ function Ue({ content: e, position: t = "top", children: n, className: r }) {
1366
1366
  }), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
1367
1367
  side: t,
1368
1368
  sideOffset: 7,
1369
- className: [He.tooltip, r].filter(Boolean).join(" "),
1370
- children: [e, /* @__PURE__ */ u(k.Arrow, { className: He.arrow })]
1369
+ className: [Ue.tooltip, r].filter(Boolean).join(" "),
1370
+ children: [e, /* @__PURE__ */ u(k.Arrow, { className: Ue.arrow })]
1371
1371
  }) })] })
1372
1372
  });
1373
1373
  }
1374
- var G = {
1375
- wrapper: "_wrapper_1w5vh_1",
1376
- chart: "_chart_1w5vh_8",
1377
- svg: "_svg_1w5vh_33",
1378
- tooltip: "_tooltip_1w5vh_39",
1379
- tooltipLabel: "_tooltipLabel_1w5vh_49",
1380
- tooltipRow: "_tooltipRow_1w5vh_57",
1381
- tooltipDot: "_tooltipDot_1w5vh_64",
1382
- tooltipName: "_tooltipName_1w5vh_70",
1383
- tooltipValue: "_tooltipValue_1w5vh_76",
1384
- legend: "_legend_1w5vh_83",
1385
- legendItem: "_legendItem_1w5vh_90",
1386
- legendMark: "_legendMark_1w5vh_96",
1387
- legendLabel: "_legendLabel_1w5vh_102"
1388
- }, We = "var(--lv4)", K = 12, Ge = 20, Ke = 8, qe = 28, q = 20;
1389
- function Je(e) {
1374
+ var W = {
1375
+ wrapper: "_wrapper_1wrxy_1",
1376
+ chart: "_chart_1wrxy_8",
1377
+ svg: "_svg_1wrxy_33",
1378
+ tooltip: "_tooltip_1wrxy_41",
1379
+ tooltipLabel: "_tooltipLabel_1wrxy_51",
1380
+ tooltipRow: "_tooltipRow_1wrxy_59",
1381
+ tooltipDot: "_tooltipDot_1wrxy_66",
1382
+ tooltipName: "_tooltipName_1wrxy_72",
1383
+ tooltipValue: "_tooltipValue_1wrxy_78",
1384
+ legend: "_legend_1wrxy_85",
1385
+ legendItem: "_legendItem_1wrxy_92",
1386
+ legendMark: "_legendMark_1wrxy_98",
1387
+ legendLabel: "_legendLabel_1wrxy_104",
1388
+ marker: "_marker_1wrxy_111",
1389
+ tooltipMarker: "_tooltipMarker_1wrxy_115",
1390
+ markerDot: "_markerDot_1wrxy_119"
1391
+ }, Ge = "var(--lv4)", G = 12, Ke = 20, qe = 8, Je = 28, K = 20;
1392
+ function Ye(e) {
1390
1393
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1391
1394
  }
1392
- function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1393
- let f = s(null), [p, m] = c(0), [h, g] = c(null);
1395
+ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l, markers: f }) {
1396
+ let p = s(null), [m, h] = c(0), [g, _] = c(null);
1394
1397
  i(() => {
1395
- let e = f.current;
1398
+ let e = p.current;
1396
1399
  if (!e) return;
1397
- let t = new ResizeObserver(([e]) => m(e.contentRect.width));
1398
- return t.observe(e), m(e.clientWidth), () => t.disconnect();
1400
+ let t = new ResizeObserver(([e]) => h(e.contentRect.width));
1401
+ return t.observe(e), h(e.clientWidth), () => t.disconnect();
1399
1402
  }, []);
1400
- let _ = t?.length ? qe : Ke, v = Math.max(p - q - Ge, 0), y = Math.max(a - K - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = n === "bar" ? 0 : Math.min(...b, 0), C = x - S || 1, w = Math.max(...e.map((e) => e.data.length), 0), T = (e) => K + (1 - (e - S) / C) * y, E = (e) => w <= 1 ? q + v / 2 : q + e / (w - 1) * v, D = r((e) => {
1401
- if (w === 0) return;
1403
+ let v = t?.length ? Je : qe, y = Math.max(m - K - Ke, 0), b = Math.max(a - G - v, 0), x = e.flatMap((e) => e.data.filter(Number.isFinite)), S = x.length ? Math.max(...x, 0) : 1, C = n === "bar" ? 0 : Math.min(...x, 0), w = S - C || 1, T = Math.max(...e.map((e) => e.data.length), 0), E = (() => {
1404
+ if (!t || t.length <= 1 || y <= 0) return 1;
1405
+ let e = Math.max(...t.map((e) => e.length)) * 6 + 12, n = Math.max(Math.floor(y / e), 1);
1406
+ return Math.ceil(t.length / n);
1407
+ })(), D = T <= 1 || y / (T - 1) >= 12, O = (e) => G + (1 - (e - C) / w) * b, k = (e) => T <= 1 ? K + y / 2 : K + e / (T - 1) * y, A = r((e) => {
1408
+ if (T === 0) return;
1402
1409
  let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1403
1410
  if (n === "line") {
1404
- let e = Math.round((r - q) / v * (w - 1));
1405
- g({
1406
- index: Math.max(0, Math.min(w - 1, e)),
1411
+ let e = Math.round((r - K) / y * (T - 1));
1412
+ _({
1413
+ index: Math.max(0, Math.min(T - 1, e)),
1407
1414
  x: r,
1408
1415
  y: i
1409
1416
  });
1410
1417
  } else {
1411
- let e = v / w, t = Math.floor((r - q) / e);
1412
- g({
1413
- index: Math.max(0, Math.min(w - 1, t)),
1418
+ let e = y / T, t = Math.floor((r - K) / e);
1419
+ _({
1420
+ index: Math.max(0, Math.min(T - 1, t)),
1414
1421
  x: r,
1415
1422
  y: i
1416
1423
  });
1417
1424
  }
1418
1425
  }, [
1419
1426
  n,
1420
- w,
1421
- v
1422
- ]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
1423
- x1: q,
1424
- y1: K + y * .5,
1425
- x2: q + v,
1426
- y2: K + y * .5,
1427
+ T,
1428
+ y
1429
+ ]), j = r((e) => {
1430
+ e.pointerType === "mouse" && _(null);
1431
+ }, []), ee = /* @__PURE__ */ u("line", {
1432
+ x1: K,
1433
+ y1: G + b * .5,
1434
+ x2: K + y,
1435
+ y2: G + b * .5,
1427
1436
  stroke: "var(--chart-midline)",
1428
1437
  strokeWidth: "0.5"
1429
- }), A = /* @__PURE__ */ u("line", {
1430
- x1: q,
1431
- y1: K + y,
1432
- x2: q + v,
1433
- y2: K + y,
1438
+ }), te = /* @__PURE__ */ u("line", {
1439
+ x1: K,
1440
+ y1: G + b,
1441
+ x2: K + y,
1442
+ y2: G + b,
1434
1443
  stroke: "var(--chart-baseline)",
1435
1444
  strokeWidth: "1"
1436
- }), j = h && n === "bar" ? (() => {
1437
- let e = v / w;
1445
+ }), ne = g && n === "bar" ? (() => {
1446
+ let e = y / T;
1438
1447
  return /* @__PURE__ */ u("rect", {
1439
- x: q + h.index * e,
1440
- y: K,
1448
+ x: K + g.index * e,
1449
+ y: G,
1441
1450
  width: e,
1442
- height: y,
1451
+ height: b,
1443
1452
  fill: "var(--chart-column-hover)"
1444
1453
  });
1445
- })() : null, M = () => e.map((e, t) => {
1454
+ })() : null, re = () => e.map((e, t) => {
1446
1455
  if (!e.data.length) return null;
1447
- let n = e.color ?? We;
1456
+ let n = e.color ?? Ge;
1448
1457
  return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
1449
- points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
1458
+ points: e.data.map((e, t) => `${k(t).toFixed(2)},${O(e).toFixed(2)}`).join(" "),
1450
1459
  fill: "none",
1451
1460
  stroke: n,
1452
1461
  strokeWidth: "1",
1453
1462
  strokeLinejoin: "round",
1454
1463
  strokeLinecap: "round"
1455
1464
  }), e.data.map((e, t) => {
1456
- let r = h?.index === t ? 10 : 5, i = r / 2;
1465
+ let r = g?.index === t;
1466
+ if (!r && !D) return null;
1467
+ let i = r ? D ? 10 : 7 : 5, a = i / 2;
1457
1468
  return /* @__PURE__ */ u("rect", {
1458
- x: E(t) - i,
1459
- y: T(e) - i,
1460
- width: r,
1461
- height: r,
1469
+ x: k(t) - a,
1470
+ y: O(e) - a,
1471
+ width: i,
1472
+ height: i,
1462
1473
  fill: n
1463
1474
  }, t);
1464
1475
  })] }, t);
1465
- }), ee = () => {
1466
- if (!w) return null;
1467
- let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
1476
+ }), ie = () => {
1477
+ if (!T) return null;
1478
+ let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i = G + b;
1468
1479
  return e.map((e, t) => e.data.map((a, o) => {
1469
- let s = q + o * n + 2 + t * (r + 2), c = T(a);
1480
+ let s = K + o * n + 2 + t * (r + 2), c = O(a);
1470
1481
  return /* @__PURE__ */ u("rect", {
1471
1482
  x: s,
1472
1483
  y: c,
@@ -1475,97 +1486,186 @@ function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1475
1486
  fill: e.color ?? "var(--chart-bar)"
1476
1487
  }, `${t}-${o}`);
1477
1488
  }));
1478
- }, te = () => {
1489
+ }, M = () => {
1479
1490
  if (!t?.length) return null;
1480
- let e = K + y + 18;
1481
- return t.map((t, r) => /* @__PURE__ */ u("text", {
1482
- x: n === "line" ? E(r) : q + (r + .5) * (v / w),
1491
+ let e = G + b + 18, r = t.length - 1;
1492
+ return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ u("text", {
1493
+ x: n === "line" ? k(i) : K + (i + .5) * (y / T),
1483
1494
  y: e,
1484
- textAnchor: "middle",
1495
+ textAnchor: n !== "line" || r === 0 ? "middle" : i === 0 ? "start" : i === r ? "end" : "middle",
1485
1496
  fill: "var(--lv4)",
1486
1497
  style: { font: "var(--text-2xs)" },
1487
1498
  children: t
1488
- }, r));
1489
- }, ne = h && n === "line" ? /* @__PURE__ */ u("line", {
1490
- x1: E(h.index),
1491
- y1: K,
1492
- x2: E(h.index),
1493
- y2: K + y,
1499
+ }, i) : null);
1500
+ }, N = g && n === "line" ? /* @__PURE__ */ u("line", {
1501
+ x1: k(g.index),
1502
+ y1: G,
1503
+ x2: k(g.index),
1504
+ y2: G + b,
1494
1505
  stroke: "var(--chart-crosshair)",
1495
1506
  strokeWidth: "1",
1496
1507
  strokeDasharray: "3 3"
1497
- }) : null, N = h ? (() => {
1498
- let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
1508
+ }) : null, ae = g ? (() => {
1509
+ let n = t?.[g.index] ?? String(g.index + 1), r = Math.min(Math.max(g.x, 60), m - 60);
1499
1510
  return /* @__PURE__ */ d("div", {
1500
- className: G.tooltip,
1501
- style: h.y < 80 ? {
1511
+ className: W.tooltip,
1512
+ style: g.y < 80 ? {
1502
1513
  left: r,
1503
- top: h.y + 12,
1514
+ top: g.y + 12,
1504
1515
  transform: "translate(-50%, 0)"
1505
1516
  } : {
1506
1517
  left: r,
1507
- top: h.y - 8,
1518
+ top: g.y - 8,
1508
1519
  transform: "translate(-50%, -100%)"
1509
1520
  },
1510
- children: [/* @__PURE__ */ u("div", {
1511
- className: G.tooltipLabel,
1512
- children: n
1513
- }), e.map((e, t) => /* @__PURE__ */ d("div", {
1514
- className: G.tooltipRow,
1515
- children: [
1516
- /* @__PURE__ */ u("span", {
1517
- className: G.tooltipDot,
1518
- style: { background: e.color ?? We }
1519
- }),
1520
- /* @__PURE__ */ u("span", {
1521
- className: G.tooltipName,
1521
+ children: [
1522
+ /* @__PURE__ */ u("div", {
1523
+ className: W.tooltipLabel,
1524
+ children: n
1525
+ }),
1526
+ e.map((e, t) => /* @__PURE__ */ d("div", {
1527
+ className: W.tooltipRow,
1528
+ children: [
1529
+ /* @__PURE__ */ u("span", {
1530
+ className: W.tooltipDot,
1531
+ style: { background: e.color ?? Ge }
1532
+ }),
1533
+ /* @__PURE__ */ u("span", {
1534
+ className: W.tooltipName,
1535
+ children: e.label
1536
+ }),
1537
+ /* @__PURE__ */ u("span", {
1538
+ className: W.tooltipValue,
1539
+ children: Ye(e.data[g.index] ?? 0)
1540
+ })
1541
+ ]
1542
+ }, t)),
1543
+ f?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ d("div", {
1544
+ className: `${W.tooltipRow} ${W.tooltipMarker}`,
1545
+ children: [/* @__PURE__ */ u("span", { className: `${W.tooltipDot} ${W.markerDot}` }), /* @__PURE__ */ u("span", {
1546
+ className: W.tooltipName,
1522
1547
  children: e.label
1523
- }),
1524
- /* @__PURE__ */ u("span", {
1525
- className: G.tooltipValue,
1526
- children: Je(e.data[h.index] ?? 0)
1527
- })
1528
- ]
1529
- }, t))]
1548
+ })]
1549
+ }, `m${t}`))
1550
+ ]
1530
1551
  });
1531
1552
  })() : null;
1532
1553
  return /* @__PURE__ */ d("div", {
1533
- className: [G.wrapper, l].filter(Boolean).join(" "),
1554
+ className: [W.wrapper, l].filter(Boolean).join(" "),
1534
1555
  children: [/* @__PURE__ */ d("div", {
1535
- ref: f,
1536
- className: G.chart,
1556
+ ref: p,
1557
+ className: W.chart,
1537
1558
  style: { height: a },
1538
- children: [p > 0 && /* @__PURE__ */ d("svg", {
1539
- width: p,
1559
+ children: [m > 0 && /* @__PURE__ */ d("svg", {
1560
+ width: m,
1540
1561
  height: a,
1541
- className: G.svg,
1542
- onMouseMove: D,
1543
- onMouseLeave: O,
1562
+ className: W.svg,
1563
+ onPointerMove: A,
1564
+ onPointerDown: A,
1565
+ onPointerLeave: j,
1544
1566
  children: [
1545
- k,
1546
- A,
1547
- j,
1567
+ ee,
1568
+ te,
1548
1569
  ne,
1549
- n === "line" ? M() : ee(),
1550
- te()
1570
+ N,
1571
+ n === "line" ? re() : ie(),
1572
+ f && T > 0 && [...new Set(f.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
1573
+ let t = n === "line" ? k(e) : K + (e + .5) * (y / T);
1574
+ return /* @__PURE__ */ u("rect", {
1575
+ className: W.marker,
1576
+ x: t - 3,
1577
+ y: G + b - 3,
1578
+ width: 6,
1579
+ height: 6
1580
+ }, `m${e}`);
1581
+ }),
1582
+ M()
1551
1583
  ]
1552
- }), N]
1584
+ }), ae]
1553
1585
  }), o && e.length > 1 && /* @__PURE__ */ u("div", {
1554
- className: G.legend,
1586
+ className: W.legend,
1555
1587
  children: e.map((e, t) => /* @__PURE__ */ d("div", {
1556
- className: G.legendItem,
1588
+ className: W.legendItem,
1557
1589
  children: [/* @__PURE__ */ u("div", {
1558
- className: G.legendMark,
1559
- style: { background: e.color ?? We }
1590
+ className: W.legendMark,
1591
+ style: { background: e.color ?? Ge }
1560
1592
  }), /* @__PURE__ */ u("span", {
1561
- className: G.legendLabel,
1593
+ className: W.legendLabel,
1562
1594
  children: e.label
1563
1595
  })]
1564
1596
  }, t))
1565
1597
  })]
1566
1598
  });
1567
1599
  }
1568
- var J = {
1600
+ var q = {
1601
+ sparkline: "_sparkline_fqcg9_4",
1602
+ line: "_line_fqcg9_12",
1603
+ partial: "_partial_fqcg9_22",
1604
+ fill: "_fill_fqcg9_26",
1605
+ bars: "_bars_fqcg9_34",
1606
+ bar: "_bar_fqcg9_34",
1607
+ baseline: "_baseline_fqcg9_48"
1608
+ }, Ze = 100, J = 100;
1609
+ function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: a = !1, baseline: o = !1, lastIsPartial: s = !1, gap: c = 1, ariaLabel: f, className: p }) {
1610
+ let m = e.filter((e) => Number.isFinite(e)), h = f == null, g = m.length ? Math.max(...m) : 0, _ = m.length ? Math.min(...m) : 0, v = g - _ || 1, y = J - 12, b = (e) => 94 - (e - _) / v * y, x = (e) => /* @__PURE__ */ d("svg", {
1611
+ className: [q.sparkline, p].filter(Boolean).join(" "),
1612
+ style: {
1613
+ width: n,
1614
+ height: r,
1615
+ color: i
1616
+ },
1617
+ viewBox: `0 0 ${Ze} ${J}`,
1618
+ preserveAspectRatio: "none",
1619
+ role: h ? void 0 : "img",
1620
+ "aria-label": f,
1621
+ "aria-hidden": h || void 0,
1622
+ focusable: "false",
1623
+ children: [e, o && /* @__PURE__ */ u("line", {
1624
+ x1: "0",
1625
+ y1: J - .5,
1626
+ x2: Ze,
1627
+ y2: J - .5,
1628
+ className: q.baseline,
1629
+ vectorEffect: "non-scaling-stroke"
1630
+ })]
1631
+ });
1632
+ if (m.length < 2) return x(null);
1633
+ if (t === "bar") return /* @__PURE__ */ u("div", {
1634
+ className: [q.bars, p].filter(Boolean).join(" "),
1635
+ style: {
1636
+ width: n,
1637
+ height: r,
1638
+ color: i,
1639
+ gap: c,
1640
+ borderBottomWidth: +!!o
1641
+ },
1642
+ role: h ? void 0 : "img",
1643
+ "aria-label": f,
1644
+ "aria-hidden": h || void 0,
1645
+ children: m.map((e, t) => /* @__PURE__ */ u("span", {
1646
+ className: q.bar,
1647
+ style: { height: `${Math.max((e - _) / v * 100, 2)}%` }
1648
+ }, t))
1649
+ });
1650
+ let S = Ze / (m.length - 1), C = (e, t) => m.slice(e, e + t).map((t, n) => `${(e + n) * S},${b(t)}`).join(" "), w = C(0, m.length);
1651
+ return x(/* @__PURE__ */ d(l, { children: [a && /* @__PURE__ */ u("polygon", {
1652
+ className: q.fill,
1653
+ points: `0,${J} ${w} ${Ze},${J}`
1654
+ }), s ? /* @__PURE__ */ d(l, { children: [m.length > 2 && /* @__PURE__ */ u("polyline", {
1655
+ className: q.line,
1656
+ points: C(0, m.length - 1),
1657
+ vectorEffect: "non-scaling-stroke"
1658
+ }), /* @__PURE__ */ u("polyline", {
1659
+ className: `${q.line} ${q.partial}`,
1660
+ points: C(m.length - 2, 2),
1661
+ vectorEffect: "non-scaling-stroke"
1662
+ })] }) : /* @__PURE__ */ u("polyline", {
1663
+ className: q.line,
1664
+ points: w,
1665
+ vectorEffect: "non-scaling-stroke"
1666
+ })] }));
1667
+ }
1668
+ var $e = {
1569
1669
  wrapper: "_wrapper_17ws4_1",
1570
1670
  label: "_label_17ws4_7",
1571
1671
  textarea: "_textarea_17ws4_12",
@@ -1574,14 +1674,14 @@ var J = {
1574
1674
  };
1575
1675
  //#endregion
1576
1676
  //#region src/components/Textarea/Textarea.tsx
1577
- function Xe({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1677
+ function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1578
1678
  let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1579
1679
  return /* @__PURE__ */ d("div", {
1580
- className: `${J.wrapper} ${r}`,
1680
+ className: `${$e.wrapper} ${r}`,
1581
1681
  children: [
1582
1682
  t && /* @__PURE__ */ d("label", {
1583
1683
  htmlFor: l,
1584
- className: J.label,
1684
+ className: $e.label,
1585
1685
  children: [t, s.required && /* @__PURE__ */ u("span", {
1586
1686
  "aria-label": "required",
1587
1687
  children: " *"
@@ -1590,14 +1690,14 @@ function Xe({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
1590
1690
  /* @__PURE__ */ u("textarea", {
1591
1691
  id: l,
1592
1692
  rows: o,
1593
- className: `${J.textarea} ${p ? J.error : ""}`,
1693
+ className: `${$e.textarea} ${p ? $e.error : ""}`,
1594
1694
  "aria-invalid": p ? "true" : "false",
1595
1695
  "aria-describedby": n ? f : void 0,
1596
1696
  ...s
1597
1697
  }),
1598
1698
  n && /* @__PURE__ */ u("span", {
1599
1699
  id: f,
1600
- className: J.errorText,
1700
+ className: $e.errorText,
1601
1701
  role: "alert",
1602
1702
  children: n
1603
1703
  })
@@ -1611,7 +1711,7 @@ var Y = {
1611
1711
  description: "_description_xud7c_34",
1612
1712
  close: "_close_xud7c_40",
1613
1713
  srOnly: "_srOnly_xud7c_62"
1614
- }, Ze = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1714
+ }, tt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1615
1715
  open: n,
1616
1716
  onOpenChange: r,
1617
1717
  children: [e && /* @__PURE__ */ u(A.Trigger, {
@@ -1658,7 +1758,7 @@ var Y = {
1658
1758
  today: "_today_aimna_131",
1659
1759
  selected: "_selected_aimna_136",
1660
1760
  errorText: "_errorText_aimna_142"
1661
- }, Qe = [
1761
+ }, nt = [
1662
1762
  "Mo",
1663
1763
  "Tu",
1664
1764
  "We",
@@ -1666,7 +1766,7 @@ var Y = {
1666
1766
  "Fr",
1667
1767
  "Sa",
1668
1768
  "Su"
1669
- ], $e = [
1769
+ ], rt = [
1670
1770
  "January",
1671
1771
  "February",
1672
1772
  "March",
@@ -1680,20 +1780,20 @@ var Y = {
1680
1780
  "November",
1681
1781
  "December"
1682
1782
  ];
1683
- function Z(e) {
1783
+ function it(e) {
1684
1784
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1685
1785
  return `${e.getFullYear()}-${t}-${n}`;
1686
1786
  }
1687
- function et(e, t) {
1787
+ function at(e, t) {
1688
1788
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1689
1789
  }
1690
- function tt(e, t) {
1790
+ function ot(e, t) {
1691
1791
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1692
1792
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1693
1793
  return r;
1694
1794
  }
1695
- var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
1696
- let p = e.useId(), m = `${p}-error`, v = !!a || !o, [y, b] = c(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = c(S.getFullYear()), [T, E] = c(S.getMonth()), [D, k] = c(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
1795
+ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = it }) => {
1796
+ let p = e.useId(), m = `${p}-error`, v = !!a || !o, [y, b] = c(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = c(S.getFullYear()), [T, E] = c(S.getMonth()), [D, k] = c(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), ee = (e) => {
1697
1797
  if (e) {
1698
1798
  let e = t ?? /* @__PURE__ */ new Date();
1699
1799
  k(e), w(e.getFullYear()), E(e.getMonth());
@@ -1701,9 +1801,9 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1701
1801
  b(e);
1702
1802
  };
1703
1803
  e.useEffect(() => {
1704
- j.current &&= (A.current.get(Z(D))?.focus(), !1);
1804
+ j.current &&= (A.current.get(it(D))?.focus(), !1);
1705
1805
  }, [D]);
1706
- let ee = (e, t) => {
1806
+ let te = (e, t) => {
1707
1807
  let n = new Date(t), r = {
1708
1808
  ArrowLeft: -1,
1709
1809
  ArrowRight: 1,
@@ -1722,13 +1822,13 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1722
1822
  e.useEffect(() => {
1723
1823
  y && t && (w(t.getFullYear()), E(t.getMonth()));
1724
1824
  }, [y]);
1725
- let te = () => {
1825
+ let ne = () => {
1726
1826
  T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1727
- }, ne = () => {
1827
+ }, re = () => {
1728
1828
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1729
- }, N = (e) => {
1829
+ }, ie = (e) => {
1730
1830
  n?.(e), b(!1);
1731
- }, P = tt(C, T);
1831
+ }, M = ot(C, T);
1732
1832
  return /* @__PURE__ */ d("div", {
1733
1833
  className: `${X.wrapper} ${l}`,
1734
1834
  children: [
@@ -1739,7 +1839,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1739
1839
  }),
1740
1840
  /* @__PURE__ */ d(O.Root, {
1741
1841
  open: y,
1742
- onOpenChange: M,
1842
+ onOpenChange: ee,
1743
1843
  children: [/* @__PURE__ */ u(O.Trigger, {
1744
1844
  asChild: !0,
1745
1845
  children: /* @__PURE__ */ d("button", {
@@ -1764,7 +1864,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1764
1864
  sideOffset: 5,
1765
1865
  "aria-label": r ? `${r} calendar` : "Choose a date",
1766
1866
  onOpenAutoFocus: (e) => {
1767
- e.preventDefault(), A.current.get(Z(D))?.focus();
1867
+ e.preventDefault(), A.current.get(it(D))?.focus();
1768
1868
  },
1769
1869
  children: [
1770
1870
  /* @__PURE__ */ d("div", {
@@ -1773,7 +1873,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1773
1873
  /* @__PURE__ */ u("button", {
1774
1874
  type: "button",
1775
1875
  className: X.navButton,
1776
- onClick: te,
1876
+ onClick: ne,
1777
1877
  "aria-label": "Previous month",
1778
1878
  children: /* @__PURE__ */ u(g, {
1779
1879
  size: 14,
@@ -1783,7 +1883,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1783
1883
  /* @__PURE__ */ d("span", {
1784
1884
  className: X.monthLabel,
1785
1885
  children: [
1786
- $e[T],
1886
+ rt[T],
1787
1887
  " ",
1788
1888
  C
1789
1889
  ]
@@ -1791,7 +1891,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1791
1891
  /* @__PURE__ */ u("button", {
1792
1892
  type: "button",
1793
1893
  className: X.navButton,
1794
- onClick: ne,
1894
+ onClick: re,
1795
1895
  "aria-label": "Next month",
1796
1896
  children: /* @__PURE__ */ u(_, {
1797
1897
  size: 14,
@@ -1802,15 +1902,15 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1802
1902
  }),
1803
1903
  /* @__PURE__ */ u("div", {
1804
1904
  className: X.weekdays,
1805
- children: Qe.map((e) => /* @__PURE__ */ u("span", {
1905
+ children: nt.map((e) => /* @__PURE__ */ u("span", {
1806
1906
  className: X.weekday,
1807
1907
  children: e
1808
1908
  }, e))
1809
1909
  }),
1810
1910
  /* @__PURE__ */ u("div", {
1811
1911
  className: X.grid,
1812
- children: P.map((e) => {
1813
- let n = e.getMonth() !== T, r = et(e, t), i = et(e, x);
1912
+ children: M.map((e) => {
1913
+ let n = e.getMonth() !== T, r = at(e, t), i = at(e, x);
1814
1914
  return /* @__PURE__ */ u("button", {
1815
1915
  type: "button",
1816
1916
  className: [
@@ -1819,9 +1919,9 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1819
1919
  r ? X.selected : "",
1820
1920
  i && !r ? X.today : ""
1821
1921
  ].filter(Boolean).join(" "),
1822
- onClick: () => N(e),
1922
+ onClick: () => ie(e),
1823
1923
  ref: (t) => {
1824
- t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
1924
+ t ? A.current.set(it(e), t) : A.current.delete(it(e));
1825
1925
  },
1826
1926
  "aria-label": e.toLocaleDateString(void 0, {
1827
1927
  weekday: "long",
@@ -1831,8 +1931,8 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1831
1931
  }),
1832
1932
  "aria-pressed": r,
1833
1933
  "aria-current": i ? "date" : void 0,
1834
- tabIndex: et(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1835
- onKeyDown: (t) => ee(t, e),
1934
+ tabIndex: at(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1935
+ onKeyDown: (t) => te(t, e),
1836
1936
  children: e.getDate()
1837
1937
  }, e.toISOString());
1838
1938
  })
@@ -1848,7 +1948,7 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1848
1948
  })
1849
1949
  ]
1850
1950
  });
1851
- }, Q = {
1951
+ }, Z = {
1852
1952
  root: "_root_biiv1_1",
1853
1953
  micro: "_micro_biiv1_7",
1854
1954
  default: "_default_biiv1_8",
@@ -1864,13 +1964,13 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1864
1964
  panelTrigger: "_panelTrigger_biiv1_77",
1865
1965
  viewport: "_viewport_biiv1_60",
1866
1966
  content: "_content_biiv1_110"
1867
- }, rt = {
1967
+ }, ct = {
1868
1968
  micro: 14,
1869
1969
  default: 14,
1870
1970
  large: 21
1871
- }, it = e.createContext("default"), at = typeof window > "u" ? e.useEffect : e.useLayoutEffect, ot = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, f) => {
1971
+ }, lt = e.createContext("default"), ut = typeof window > "u" ? e.useEffect : e.useLayoutEffect, dt = e.forwardRef(({ size: t = "default", align: n = "start", panelAlign: r = "trigger", panelWidth: i, className: a = "", style: o, children: s, "aria-label": c = "Main navigation", ...l }, f) => {
1872
1972
  let p = e.useRef(null), m = e.useRef(!1);
1873
- at(() => {
1973
+ ut(() => {
1874
1974
  let e = p.current;
1875
1975
  if (!e || r !== "trigger") return;
1876
1976
  let t = () => {
@@ -1899,8 +1999,8 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1899
1999
  let h = {
1900
2000
  ...o,
1901
2001
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
1902
- }, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
1903
- return /* @__PURE__ */ u(it.Provider, {
2002
+ }, g = r === "trigger" ? Z.panelTrigger : r === "end" ? Z.alignEnd : "";
2003
+ return /* @__PURE__ */ u(lt.Provider, {
1904
2004
  value: t,
1905
2005
  children: /* @__PURE__ */ d(j.Root, {
1906
2006
  ...l,
@@ -1909,68 +2009,68 @@ var nt = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1909
2009
  },
1910
2010
  "aria-label": c,
1911
2011
  style: h,
1912
- className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
2012
+ className: `${Z.root} ${Z[t]} ${n === "end" ? Z.alignList : ""} ${g} ${a}`,
1913
2013
  children: [s, /* @__PURE__ */ u("div", {
1914
- className: Q.viewportPosition,
1915
- children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
2014
+ className: Z.viewportPosition,
2015
+ children: /* @__PURE__ */ u(j.Viewport, { className: Z.viewport })
1916
2016
  })]
1917
2017
  })
1918
2018
  });
1919
2019
  });
1920
- ot.displayName = "NavigationMenu";
1921
- var st = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
2020
+ dt.displayName = "NavigationMenu";
2021
+ var ft = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1922
2022
  ...t,
1923
2023
  ref: n,
1924
- className: `${Q.list} ${e}`
2024
+ className: `${Z.list} ${e}`
1925
2025
  }));
1926
- st.displayName = "NavigationMenuList";
1927
- var ct = j.Item;
1928
- function lt({ icon: t }) {
1929
- let n = e.useContext(it);
2026
+ ft.displayName = "NavigationMenuList";
2027
+ var pt = j.Item;
2028
+ function mt({ icon: t }) {
2029
+ let n = e.useContext(lt);
1930
2030
  return t ? /* @__PURE__ */ u("span", {
1931
- className: Q.icon,
2031
+ className: Z.icon,
1932
2032
  "aria-hidden": "true",
1933
2033
  children: e.cloneElement(t, {
1934
- size: rt[n],
2034
+ size: ct[n],
1935
2035
  color: "currentColor"
1936
2036
  })
1937
2037
  }) : null;
1938
2038
  }
1939
- var ut = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
1940
- let o = e.useContext(it);
2039
+ var ht = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
2040
+ let o = e.useContext(lt);
1941
2041
  return /* @__PURE__ */ d(j.Trigger, {
1942
2042
  ...i,
1943
2043
  ref: a,
1944
- className: `${Q.control} ${t}`,
2044
+ className: `${Z.control} ${t}`,
1945
2045
  children: [
1946
- /* @__PURE__ */ u(lt, { icon: n }),
2046
+ /* @__PURE__ */ u(mt, { icon: n }),
1947
2047
  r,
1948
2048
  /* @__PURE__ */ u("span", {
1949
- className: Q.caret,
2049
+ className: Z.caret,
1950
2050
  "aria-hidden": "true",
1951
2051
  children: /* @__PURE__ */ u(h, {
1952
- size: rt[o],
2052
+ size: ct[o],
1953
2053
  color: "currentColor"
1954
2054
  })
1955
2055
  })
1956
2056
  ]
1957
2057
  });
1958
2058
  });
1959
- ut.displayName = "NavigationMenuTrigger";
1960
- var dt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
2059
+ ht.displayName = "NavigationMenuTrigger";
2060
+ var gt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1961
2061
  ...t,
1962
2062
  ref: n,
1963
- className: `${Q.content} ${e}`
2063
+ className: `${Z.content} ${e}`
1964
2064
  }));
1965
- dt.displayName = "NavigationMenuContent";
1966
- var ft = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
2065
+ gt.displayName = "NavigationMenuContent";
2066
+ var _t = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
1967
2067
  ...i,
1968
2068
  ref: a,
1969
- className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
1970
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(lt, { icon: t }), r] }) : r
2069
+ className: `${e === "navigation" ? Z.control : Z.link} ${n}`,
2070
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(mt, { icon: t }), r] }) : r
1971
2071
  }));
1972
- ft.displayName = "NavigationMenuLink";
1973
- var $ = {
2072
+ _t.displayName = "NavigationMenuLink";
2073
+ var Q = {
1974
2074
  panel: "_panel_1hiss_6",
1975
2075
  header: "_header_1hiss_14",
1976
2076
  thread: "_thread_1hiss_15",
@@ -2001,39 +2101,39 @@ var $ = {
2001
2101
  };
2002
2102
  //#endregion
2003
2103
  //#region src/components/Chat/ChatPanel.tsx
2004
- function pt({ children: e }) {
2104
+ function vt({ children: e }) {
2005
2105
  return /* @__PURE__ */ u("kbd", {
2006
- className: $.kbd,
2106
+ className: Q.kbd,
2007
2107
  children: e
2008
2108
  });
2009
2109
  }
2010
- var mt = /* @__PURE__ */ d(l, { children: [
2011
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "↵" }), " send"] }),
2012
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "⇧↵" }), " new line"] }),
2013
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(pt, { children: "esc" }), " close"] })
2110
+ var yt = /* @__PURE__ */ d(l, { children: [
2111
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "↵" }), " send"] }),
2112
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "⇧↵" }), " new line"] }),
2113
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "esc" }), " close"] })
2014
2114
  ] });
2015
- function ht({ header: e, children: t, composer: n, hints: r = mt, className: i = "", threadRef: a, "aria-label": o }) {
2115
+ function bt({ header: e, children: t, composer: n, hints: r = yt, className: i = "", threadRef: a, "aria-label": o }) {
2016
2116
  return /* @__PURE__ */ d("div", {
2017
- className: `${$.panel} ${i}`,
2117
+ className: `${Q.panel} ${i}`,
2018
2118
  "aria-label": o,
2019
2119
  children: [
2020
2120
  e && /* @__PURE__ */ u("div", {
2021
- className: $.header,
2121
+ className: Q.header,
2022
2122
  children: e
2023
2123
  }),
2024
2124
  /* @__PURE__ */ u("div", {
2025
- className: $.thread,
2125
+ className: Q.thread,
2026
2126
  ref: a,
2027
2127
  role: "log",
2028
2128
  "aria-live": "polite",
2029
2129
  children: t
2030
2130
  }),
2031
2131
  n && /* @__PURE__ */ u("div", {
2032
- className: $.footer,
2132
+ className: Q.footer,
2033
2133
  children: n
2034
2134
  }),
2035
2135
  r !== !1 && r && /* @__PURE__ */ u("div", {
2036
- className: $.hints,
2136
+ className: Q.hints,
2037
2137
  children: r
2038
2138
  })
2039
2139
  ]
@@ -2041,39 +2141,39 @@ function ht({ header: e, children: t, composer: n, hints: r = mt, className: i =
2041
2141
  }
2042
2142
  //#endregion
2043
2143
  //#region src/components/Chat/Message.tsx
2044
- function gt({ children: e, className: t = "" }) {
2144
+ function xt({ children: e, className: t = "" }) {
2045
2145
  return /* @__PURE__ */ u("div", {
2046
- className: $.userRow,
2146
+ className: Q.userRow,
2047
2147
  children: /* @__PURE__ */ u("div", {
2048
- className: `${$.userMsg} ${t}`,
2148
+ className: `${Q.userMsg} ${t}`,
2049
2149
  children: e
2050
2150
  })
2051
2151
  });
2052
2152
  }
2053
- function _t({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2153
+ function St({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2054
2154
  return /* @__PURE__ */ d("div", {
2055
- className: `${$.assistant} ${r}`,
2155
+ className: `${Q.assistant} ${r}`,
2056
2156
  children: [/* @__PURE__ */ d("div", {
2057
- className: $.assistantHead,
2157
+ className: Q.assistantHead,
2058
2158
  children: [t === void 0 ? /* @__PURE__ */ u(f, {
2059
2159
  color: "currentColor",
2060
2160
  size: 14
2061
2161
  }) : t, /* @__PURE__ */ u("span", { children: e })]
2062
2162
  }), /* @__PURE__ */ u("div", {
2063
- className: $.assistantBody,
2163
+ className: Q.assistantBody,
2064
2164
  children: n
2065
2165
  })]
2066
2166
  });
2067
2167
  }
2068
2168
  //#endregion
2069
2169
  //#region src/components/Chat/Composer.tsx
2070
- var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: c = !1, placeholder: l = "Ask a question…", disabled: m = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, className: v = "", "aria-label": y = "Message" }, b) {
2170
+ var Ct = 18, wt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: c = !1, placeholder: l = "Ask a question…", disabled: m = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, className: v = "", "aria-label": y = "Message" }, b) {
2071
2171
  let x = s(null);
2072
2172
  o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
2073
2173
  let e = x.current;
2074
2174
  if (!e) return;
2075
2175
  e.style.height = "auto";
2076
- let t = vt * _ + 12;
2176
+ let t = Ct * _ + 12;
2077
2177
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
2078
2178
  }, [e, _]);
2079
2179
  let S = !c && !m && e.trim().length > 0, w = r(() => {
@@ -2084,11 +2184,11 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2084
2184
  e
2085
2185
  ]);
2086
2186
  return /* @__PURE__ */ d("div", {
2087
- className: `${$.composer} ${v}`,
2187
+ className: `${Q.composer} ${v}`,
2088
2188
  children: [/* @__PURE__ */ d("div", {
2089
- className: $.composerField,
2189
+ className: Q.composerField,
2090
2190
  children: [g !== null && /* @__PURE__ */ u("span", {
2091
- className: $.composerIcon,
2191
+ className: Q.composerIcon,
2092
2192
  "aria-hidden": "true",
2093
2193
  children: g === void 0 ? /* @__PURE__ */ u(f, {
2094
2194
  color: "currentColor",
@@ -2096,7 +2196,7 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2096
2196
  }) : g
2097
2197
  }), /* @__PURE__ */ u("textarea", {
2098
2198
  ref: x,
2099
- className: $.composerInput,
2199
+ className: Q.composerInput,
2100
2200
  rows: 1,
2101
2201
  value: e,
2102
2202
  placeholder: l,
@@ -2109,14 +2209,14 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2109
2209
  }
2110
2210
  })]
2111
2211
  }), /* @__PURE__ */ u("div", {
2112
- className: $.composerButton,
2113
- children: c ? /* @__PURE__ */ u(P, {
2212
+ className: Q.composerButton,
2213
+ children: c ? /* @__PURE__ */ u(M, {
2114
2214
  variant: "secondary",
2115
2215
  size: "micro",
2116
2216
  "aria-label": "Stop",
2117
2217
  iconLeft: /* @__PURE__ */ u(C, {}),
2118
2218
  onClick: a
2119
- }) : /* @__PURE__ */ u(P, {
2219
+ }) : /* @__PURE__ */ u(M, {
2120
2220
  variant: "primary",
2121
2221
  size: "micro",
2122
2222
  "aria-label": "Send",
@@ -2129,8 +2229,8 @@ var vt = 18, yt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onSt
2129
2229
  });
2130
2230
  //#endregion
2131
2231
  //#region src/components/Chat/Citation.tsx
2132
- function bt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2133
- let a = `${$.ref} ${i}`;
2232
+ function Tt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2233
+ let a = `${Q.ref} ${i}`;
2134
2234
  return t ? /* @__PURE__ */ u("a", {
2135
2235
  href: t,
2136
2236
  className: a,
@@ -2147,20 +2247,20 @@ function bt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2147
2247
  children: e
2148
2248
  });
2149
2249
  }
2150
- function xt({ items: e, label: t = "Sources", className: n = "" }) {
2250
+ function Et({ items: e, label: t = "Sources", className: n = "" }) {
2151
2251
  return e.length === 0 ? null : /* @__PURE__ */ d("div", {
2152
- className: `${$.stack} ${n}`,
2252
+ className: `${Q.stack} ${n}`,
2153
2253
  children: [/* @__PURE__ */ u("div", {
2154
- className: $.label,
2254
+ className: Q.label,
2155
2255
  children: t
2156
2256
  }), /* @__PURE__ */ u("div", {
2157
- className: $.wrap,
2257
+ className: Q.wrap,
2158
2258
  children: e.map((e) => {
2159
- let t = /* @__PURE__ */ d(Pe, {
2259
+ let t = /* @__PURE__ */ d(Fe, {
2160
2260
  icon: e.icon,
2161
2261
  children: [
2162
2262
  /* @__PURE__ */ u("span", {
2163
- className: $.citationNumber,
2263
+ className: Q.citationNumber,
2164
2264
  children: e.n
2165
2265
  }),
2166
2266
  " ",
@@ -2169,12 +2269,12 @@ function xt({ items: e, label: t = "Sources", className: n = "" }) {
2169
2269
  });
2170
2270
  return e.href ? /* @__PURE__ */ u("a", {
2171
2271
  href: e.href,
2172
- className: $.citationLink,
2272
+ className: Q.citationLink,
2173
2273
  onClick: e.onClick,
2174
2274
  children: t
2175
2275
  }, e.n) : /* @__PURE__ */ u("button", {
2176
2276
  type: "button",
2177
- className: $.citationLink,
2277
+ className: Q.citationLink,
2178
2278
  onClick: e.onClick,
2179
2279
  children: t
2180
2280
  }, e.n);
@@ -2184,27 +2284,27 @@ function xt({ items: e, label: t = "Sources", className: n = "" }) {
2184
2284
  }
2185
2285
  //#endregion
2186
2286
  //#region src/components/Chat/StreamStatus.tsx
2187
- function St({ children: e, className: t = "" }) {
2287
+ function Dt({ children: e, className: t = "" }) {
2188
2288
  return /* @__PURE__ */ d("div", {
2189
- className: `${$.status} ${t}`,
2289
+ className: `${Q.status} ${t}`,
2190
2290
  role: "status",
2191
2291
  children: [/* @__PURE__ */ u("span", {
2192
- className: $.statusSpinner,
2193
- children: /* @__PURE__ */ u(N, { size: 14 })
2292
+ className: Q.statusSpinner,
2293
+ children: /* @__PURE__ */ u(ie, { size: 14 })
2194
2294
  }), /* @__PURE__ */ u("span", { children: e })]
2195
2295
  });
2196
2296
  }
2197
2297
  //#endregion
2198
2298
  //#region src/components/Chat/Suggestions.tsx
2199
- function Ct({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2299
+ function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2200
2300
  return /* @__PURE__ */ d("div", {
2201
- className: `${$.suggestions} ${r}`,
2301
+ className: `${Q.suggestions} ${r}`,
2202
2302
  children: [/* @__PURE__ */ u("div", {
2203
- className: $.label,
2303
+ className: Q.label,
2204
2304
  children: n
2205
2305
  }), /* @__PURE__ */ u("div", {
2206
- className: $.wrap,
2207
- children: e.map((e) => /* @__PURE__ */ u(P, {
2306
+ className: Q.wrap,
2307
+ children: e.map((e) => /* @__PURE__ */ u(M, {
2208
2308
  variant: "secondary",
2209
2309
  size: "micro",
2210
2310
  onClick: () => t(e),
@@ -2215,19 +2315,19 @@ function Ct({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2215
2315
  }
2216
2316
  //#endregion
2217
2317
  //#region src/components/Chat/AnswerActions.tsx
2218
- function wt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2318
+ function kt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2219
2319
  return /* @__PURE__ */ d("div", {
2220
- className: `${$.actions} ${i}`,
2320
+ className: `${Q.actions} ${i}`,
2221
2321
  children: [
2222
- e && /* @__PURE__ */ u(P, {
2322
+ e && /* @__PURE__ */ u(M, {
2223
2323
  variant: "ghost",
2224
2324
  size: "micro",
2225
2325
  iconLeft: u(t ? m : v, {}),
2226
2326
  onClick: e,
2227
2327
  children: t ? "Copied" : "Copy"
2228
2328
  }),
2229
- /* @__PURE__ */ u("span", { className: $.actionsSpacer }),
2230
- n && /* @__PURE__ */ u(P, {
2329
+ /* @__PURE__ */ u("span", { className: Q.actionsSpacer }),
2330
+ n && /* @__PURE__ */ u(M, {
2231
2331
  variant: "ghost",
2232
2332
  size: "micro",
2233
2333
  iconRight: /* @__PURE__ */ u(_, {}),
@@ -2237,21 +2337,21 @@ function wt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
2237
2337
  ]
2238
2338
  });
2239
2339
  }
2240
- var Tt = {
2340
+ var At = {
2241
2341
  truncate: "_truncate_za4sm_1",
2242
2342
  start: "_start_za4sm_13"
2243
2343
  };
2244
2344
  //#endregion
2245
2345
  //#region src/components/Truncate/Truncate.tsx
2246
- function Et({ children: e, side: t = "end", title: n, className: r = "" }) {
2346
+ function jt({ children: e, side: t = "end", title: n, className: r = "" }) {
2247
2347
  let i = n ?? (typeof e == "string" ? e : void 0);
2248
2348
  return /* @__PURE__ */ u("span", {
2249
- className: `${Tt.truncate} ${t === "start" ? Tt.start : ""} ${r}`,
2349
+ className: `${At.truncate} ${t === "start" ? At.start : ""} ${r}`,
2250
2350
  title: i,
2251
2351
  children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
2252
2352
  });
2253
2353
  }
2254
- var Dt = {
2354
+ var $ = {
2255
2355
  disclosure: "_disclosure_94bgy_1",
2256
2356
  trigger: "_trigger_94bgy_7",
2257
2357
  summary: "_summary_94bgy_31",
@@ -2260,24 +2360,24 @@ var Dt = {
2260
2360
  };
2261
2361
  //#endregion
2262
2362
  //#region src/components/Disclosure/Disclosure.tsx
2263
- function Ot({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2363
+ function Mt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2264
2364
  let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
2265
2365
  return /* @__PURE__ */ d("div", {
2266
- className: `${Dt.disclosure} ${o}`,
2366
+ className: `${$.disclosure} ${o}`,
2267
2367
  "data-state": l ? "open" : "closed",
2268
2368
  children: [/* @__PURE__ */ d("button", {
2269
2369
  type: "button",
2270
- className: Dt.trigger,
2370
+ className: $.trigger,
2271
2371
  "aria-expanded": l,
2272
2372
  "aria-controls": l ? f : void 0,
2273
2373
  onClick: () => {
2274
2374
  r === void 0 && c(!l), a?.(!l);
2275
2375
  },
2276
2376
  children: [/* @__PURE__ */ u("span", {
2277
- className: Dt.summary,
2377
+ className: $.summary,
2278
2378
  children: t
2279
2379
  }), /* @__PURE__ */ u("span", {
2280
- className: Dt.chevron,
2380
+ className: $.chevron,
2281
2381
  "aria-hidden": "true",
2282
2382
  children: u(l ? h : _, {
2283
2383
  size: 14,
@@ -2286,10 +2386,10 @@ function Ot({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChang
2286
2386
  })]
2287
2387
  }), l && /* @__PURE__ */ u("div", {
2288
2388
  id: f,
2289
- className: Dt.content,
2389
+ className: $.content,
2290
2390
  children: n
2291
2391
  })]
2292
2392
  });
2293
2393
  }
2294
2394
  //#endregion
2295
- export { Le as Alert, ze as AlertDescription, Re as AlertTitle, wt as AnswerActions, _t as AssistantMessage, ae as Base, Ae as Breadcrumbs, P as Button, Ye as Chart, ht as ChatPanel, re as Checkbox, Pe as Chip, xt as CitationList, bt as CitationRef, yt as Composer, nt as DatePicker, Ot as Disclosure, oe as FilterPanelBase, le as InputField, pt as Kbd, Ze as Modal, ot as NavigationMenu, dt as NavigationMenuContent, ct as NavigationMenuItem, ft as NavigationMenuLink, st as NavigationMenuList, ut as NavigationMenuTrigger, ve as Popover, Me as ProgressBar, de as RadioButton, Ve as SaveBar, ce as SearchField, ge as Select, he as Slider, N as Spinner, St as StreamStatus, Ct as Suggestions, ye as Table, Se as TableCell, be as TableHeader, we as TableIcon, xe as TableRow, Ce as TableValue, De as Tabs, Xe as Textarea, pe as ToggleSwitch, Ue as Tooltip, Et as Truncate, gt as UserMessage, mt as defaultChatHints, ne as spinnerNames };
2395
+ export { Re as Alert, Be as AlertDescription, ze as AlertTitle, kt as AnswerActions, St as AssistantMessage, se as Base, je as Breadcrumbs, M as Button, Xe as Chart, bt as ChatPanel, ae as Checkbox, Fe as Chip, Et as CitationList, Tt as CitationRef, wt as Composer, st as DatePicker, Mt as Disclosure, ce as FilterPanelBase, de as InputField, vt as Kbd, tt as Modal, dt as NavigationMenu, gt as NavigationMenuContent, pt as NavigationMenuItem, _t as NavigationMenuLink, ft as NavigationMenuList, ht as NavigationMenuTrigger, ye as Popover, Ne as ProgressBar, fe as RadioButton, He as SaveBar, ue as SearchField, _e as Select, ge as Slider, Qe as Sparkline, ie as Spinner, Dt as StreamStatus, Ot as Suggestions, be as Table, Ce as TableCell, xe as TableHeader, Te as TableIcon, Se as TableRow, we as TableValue, Oe as Tabs, et as Textarea, me as ToggleSwitch, We as Tooltip, jt as Truncate, xt as UserMessage, yt as defaultChatHints, re as spinnerNames };