@indxsearch/systm 2.10.1 → 2.11.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
@@ -1,13 +1,13 @@
1
- import e, { useCallback as t, useEffect as n, useId as r, useImperativeHandle as i, useRef as a, useState as o } from "react";
2
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
3
- import { Ai_agent as u, ArrowUp as d, Check as f, Chevron_down as p, Chevron_left as m, Chevron_right as h, Copy as g, Dropdown as _, Minus as v, Plus as y, Search as b, Stop as x, Warning as S, X_or_error as C } from "@indxsearch/pixl";
4
- import { Range as w } from "react-range";
5
- import * as T from "@radix-ui/react-select";
6
- import * as E from "@radix-ui/react-popover";
7
- import * as D from "@radix-ui/react-tooltip";
8
- import * as O from "@radix-ui/react-dialog";
9
- import * as k from "@radix-ui/react-navigation-menu";
10
- var A = {
1
+ import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o, useRef as s, useState as c } from "react";
2
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
3
+ import { Ai_agent as f, ArrowUp as p, Check as m, Chevron_down as h, Chevron_left as g, Chevron_right as _, Copy as v, Dropdown as y, Minus as b, Plus as x, Search as S, Stop as C, Warning as w, X_or_error as T } from "@indxsearch/pixl";
4
+ import { Range as E } from "react-range";
5
+ import * as D from "@radix-ui/react-select";
6
+ import * as O from "@radix-ui/react-popover";
7
+ import * as k from "@radix-ui/react-tooltip";
8
+ import * as A from "@radix-ui/react-dialog";
9
+ import * as j from "@radix-ui/react-navigation-menu";
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 A = {
15
15
  primary: "_primary_15lsu_54",
16
16
  secondary: "_secondary_15lsu_64",
17
17
  ghost: "_ghost_15lsu_74"
18
- }, j = {
18
+ }, te = {
19
19
  spinner: "_spinner_wspyi_1",
20
20
  frame: "_frame_wspyi_8"
21
- }, ee = {
21
+ }, ne = {
22
22
  accelerate: {
23
23
  viewBox: "0 0 7 5",
24
24
  delay: 50,
@@ -279,13 +279,13 @@ var A = {
279
279
  "M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
280
280
  ]
281
281
  }
282
- }, te = Object.keys(ee);
282
+ }, re = Object.keys(ne);
283
283
  //#endregion
284
284
  //#region src/components/Spinner/Spinner.tsx
285
- function M({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
286
- let o = ee[e], [, , s, l] = o.viewBox.split(" ").map(Number), u = l / s, d = typeof t == "number" ? t * u : `calc(${t} * ${u})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
287
- return /* @__PURE__ */ c("svg", {
288
- className: `${j.spinner} ${i}`,
285
+ function M({ 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
+ return /* @__PURE__ */ u("svg", {
288
+ className: `${te.spinner} ${i}`,
289
289
  width: t,
290
290
  height: d,
291
291
  viewBox: o.viewBox,
@@ -293,8 +293,8 @@ function M({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r,
293
293
  role: "status",
294
294
  "aria-label": a,
295
295
  xmlns: "http://www.w3.org/2000/svg",
296
- children: o.frames.map((e, t) => e ? /* @__PURE__ */ c("path", {
297
- className: j.frame,
296
+ children: o.frames.map((e, t) => e ? /* @__PURE__ */ u("path", {
297
+ className: te.frame,
298
298
  d: e,
299
299
  fill: n,
300
300
  style: {
@@ -307,18 +307,18 @@ function M({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r,
307
307
  //#endregion
308
308
  //#region src/components/Button/Button.tsx
309
309
  function N(t) {
310
- let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: u, loading: d = !1, ...f } = t, p = t.disabled || d, { href: m } = f, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
311
- A.button,
312
- A[n],
313
- A[r],
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
+ ee.button,
312
+ ee[n],
313
+ ee[r],
314
314
  p ? "cursor-not-allowed" : "cursor-pointer",
315
315
  o
316
- ].filter(Boolean).join(" "), v = /* @__PURE__ */ l(s, { children: [
317
- d ? /* @__PURE__ */ c(M, { size: g }) : i && e.cloneElement(i, {
316
+ ].filter(Boolean).join(" "), v = /* @__PURE__ */ d(l, { children: [
317
+ c ? /* @__PURE__ */ u(M, { size: g }) : i && e.cloneElement(i, {
318
318
  size: h,
319
319
  color: "currentColor"
320
320
  }),
321
- u,
321
+ s,
322
322
  a && e.cloneElement(a, {
323
323
  size: h,
324
324
  color: "currentColor"
@@ -326,17 +326,17 @@ function N(t) {
326
326
  ] });
327
327
  if (m) {
328
328
  let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } = f;
329
- return p ? /* @__PURE__ */ c("a", {
329
+ return p ? /* @__PURE__ */ u("a", {
330
330
  className: _,
331
331
  ...a,
332
332
  "aria-disabled": "true",
333
- "aria-busy": d || void 0,
333
+ "aria-busy": c || void 0,
334
334
  tabIndex: -1,
335
335
  onClick: (e) => {
336
336
  e.preventDefault(), e.stopPropagation();
337
337
  },
338
338
  children: v
339
- }) : /* @__PURE__ */ c("a", {
339
+ }) : /* @__PURE__ */ u("a", {
340
340
  className: _,
341
341
  href: m,
342
342
  ...a,
@@ -346,11 +346,11 @@ function N(t) {
346
346
  });
347
347
  }
348
348
  let { type: y = "button", href: b, disabled: x, ...S } = f;
349
- return /* @__PURE__ */ c("button", {
349
+ return /* @__PURE__ */ u("button", {
350
350
  className: _,
351
351
  type: y,
352
352
  disabled: p,
353
- "aria-busy": d || void 0,
353
+ "aria-busy": c || void 0,
354
354
  ...S,
355
355
  children: v
356
356
  });
@@ -361,47 +361,47 @@ var P = {
361
361
  label: "_label_1vygn_44",
362
362
  score: "_score_1vygn_48",
363
363
  disabled: "_disabled_1vygn_55"
364
- }, ne = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
365
- let s = e.useId(), u = i || s, d = n ? `${u}-score` : void 0, f = o.disabled;
366
- return t || n ? /* @__PURE__ */ l("label", {
367
- htmlFor: u,
364
+ }, ie = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
365
+ let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, f = o.disabled;
366
+ return t || n ? /* @__PURE__ */ d("label", {
367
+ htmlFor: c,
368
368
  className: `${P.checkboxWrapper} ${r} ${f ? P.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
369
369
  children: [
370
- /* @__PURE__ */ c("input", {
371
- id: u,
370
+ /* @__PURE__ */ u("input", {
371
+ id: c,
372
372
  type: "checkbox",
373
373
  className: P.checkbox,
374
- "aria-describedby": d,
374
+ "aria-describedby": l,
375
375
  "aria-label": a,
376
376
  ...o
377
377
  }),
378
- t && /* @__PURE__ */ c("span", {
378
+ t && /* @__PURE__ */ u("span", {
379
379
  className: P.label,
380
380
  children: t
381
381
  }),
382
- n && /* @__PURE__ */ c("span", {
383
- id: d,
382
+ n && /* @__PURE__ */ u("span", {
383
+ id: l,
384
384
  className: P.score,
385
385
  children: n
386
386
  })
387
387
  ]
388
- }) : /* @__PURE__ */ c("input", {
389
- id: u,
388
+ }) : /* @__PURE__ */ u("input", {
389
+ id: c,
390
390
  type: "checkbox",
391
391
  className: `${P.checkbox} ${r}`,
392
392
  "aria-label": a,
393
393
  disabled: f,
394
394
  ...o
395
395
  });
396
- }, re = {
396
+ }, ae = {
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 ie({ children: e, className: t }) {
403
- return /* @__PURE__ */ c("div", {
404
- className: `${re.container} ${re.default} ${t || ""}`,
402
+ function oe({ children: e, className: t }) {
403
+ return /* @__PURE__ */ u("div", {
404
+ className: `${ae.container} ${ae.default} ${t || ""}`,
405
405
  children: e
406
406
  });
407
407
  }
@@ -414,43 +414,43 @@ var F = {
414
414
  };
415
415
  //#endregion
416
416
  //#region src/components/FilterPanelBase/FilterPanelBase.tsx
417
- function ae({ title: t, children: r, className: i = "", collapsible: a = !0, collapsed: s = !1 }) {
418
- let [u, d] = o(() => !s), f = e.useId();
419
- return n(() => {
420
- a && d(!s);
421
- }, [s, a]), /* @__PURE__ */ l("div", {
422
- className: `${F.container} ${i}`,
423
- children: [t && (a ? /* @__PURE__ */ l("button", {
417
+ function se({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
418
+ let [s, l] = c(() => !o), f = e.useId();
419
+ return i(() => {
420
+ a && l(!o);
421
+ }, [o, a]), /* @__PURE__ */ d("div", {
422
+ className: `${F.container} ${r}`,
423
+ children: [t && (a ? /* @__PURE__ */ d("button", {
424
424
  type: "button",
425
425
  className: F.header,
426
426
  onClick: () => {
427
- a && d((e) => !e);
427
+ a && l((e) => !e);
428
428
  },
429
- "aria-label": `${t}: ${u ? "Collapse panel" : "Expand panel"}`,
430
- "aria-expanded": u,
429
+ "aria-label": `${t}: ${s ? "Collapse panel" : "Expand panel"}`,
430
+ "aria-expanded": s,
431
431
  "aria-controls": f,
432
- children: [/* @__PURE__ */ c("div", {
432
+ children: [/* @__PURE__ */ u("div", {
433
433
  className: F.title,
434
434
  children: t
435
- }), /* @__PURE__ */ c("span", {
435
+ }), /* @__PURE__ */ u("span", {
436
436
  "aria-hidden": "true",
437
- children: c(u ? v : y, {
437
+ children: u(s ? b : x, {
438
438
  color: "var(--lv5)",
439
439
  size: 14
440
440
  })
441
441
  })]
442
- }) : /* @__PURE__ */ c("div", {
442
+ }) : /* @__PURE__ */ u("div", {
443
443
  className: F.header,
444
- children: /* @__PURE__ */ c("div", {
444
+ children: /* @__PURE__ */ u("div", {
445
445
  className: F.title,
446
446
  children: t
447
447
  })
448
- })), (!a || u) && /* @__PURE__ */ c("div", {
448
+ })), (!a || s) && /* @__PURE__ */ u("div", {
449
449
  id: f,
450
450
  className: F.body,
451
451
  role: "region",
452
452
  "aria-label": t || "Filter panel content",
453
- children: r
453
+ children: n
454
454
  })]
455
455
  });
456
456
  }
@@ -466,50 +466,50 @@ var I = {
466
466
  sizeDefault: "_sizeDefault_tf1yl_87",
467
467
  error: "_error_tf1yl_110",
468
468
  errorText: "_errorText_tf1yl_114"
469
- }, oe = {
469
+ }, ce = {
470
470
  micro: 14,
471
471
  default: 21
472
472
  };
473
- function se({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: o, searchIconColor: s, inputSize: u = "default", showFocusBorder: d = !1, children: f, id: p, type: m = "search", ...h }) {
474
- let g = a(null), _ = e.useId(), v = p || _, y = `${v}-error`, x = oe[u], S = {};
475
- s && (S["--search-icon-color"] = s);
476
- let C = o ?? /* @__PURE__ */ c(b, {}), w = u === "micro" ? I.sizeMicro : I.sizeDefault;
477
- return /* @__PURE__ */ l("div", {
473
+ function le({ 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 = ce[c], x = {};
475
+ o && (x["--search-icon-color"] = o);
476
+ let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? I.sizeMicro : I.sizeDefault;
477
+ return /* @__PURE__ */ d("div", {
478
478
  className: `${I.wrapper} ${r}`,
479
479
  children: [
480
- t && /* @__PURE__ */ c("label", {
480
+ t && /* @__PURE__ */ u("label", {
481
481
  htmlFor: v,
482
482
  className: I.label,
483
483
  children: t
484
484
  }),
485
- /* @__PURE__ */ l("div", {
485
+ /* @__PURE__ */ d("div", {
486
486
  className: `${I.inputContainer} ${w}`,
487
487
  children: [
488
- i && /* @__PURE__ */ c("span", {
488
+ i && /* @__PURE__ */ u("span", {
489
489
  className: I.searchIcon,
490
490
  "aria-hidden": "true",
491
491
  children: e.cloneElement(C, {
492
- size: x,
493
- color: s ?? "var(--search-icon-color)"
492
+ size: b,
493
+ color: o ?? "var(--search-icon-color)"
494
494
  })
495
495
  }),
496
- /* @__PURE__ */ c("input", {
496
+ /* @__PURE__ */ u("input", {
497
497
  ref: g,
498
498
  id: v,
499
499
  type: m,
500
- className: `${I.input} ${d ? I.focus : ""} ${n ? I.error : ""}`,
501
- style: S,
500
+ className: `${I.input} ${l ? I.focus : ""} ${n ? I.error : ""}`,
501
+ style: x,
502
502
  "aria-invalid": n ? "true" : "false",
503
503
  "aria-describedby": n ? y : void 0,
504
504
  ...h
505
505
  }),
506
- f && /* @__PURE__ */ c("div", {
506
+ f && /* @__PURE__ */ u("div", {
507
507
  className: I.rightContent,
508
508
  children: f
509
509
  })
510
510
  ]
511
511
  }),
512
- n && /* @__PURE__ */ c("span", {
512
+ n && /* @__PURE__ */ u("span", {
513
513
  id: y,
514
514
  className: I.errorText,
515
515
  role: "alert",
@@ -528,27 +528,27 @@ var L = {
528
528
  };
529
529
  //#endregion
530
530
  //#region src/components/InputField/InputField.tsx
531
- function ce({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
532
- let u = e.useId(), d = o || u, f = `${d}-error`, p = n || !i;
533
- return /* @__PURE__ */ l("div", {
531
+ function ue({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
532
+ let c = e.useId(), l = o || c, f = `${l}-error`, p = n || !i;
533
+ return /* @__PURE__ */ d("div", {
534
534
  className: `${L.wrapper} ${r}`,
535
535
  children: [
536
- t && /* @__PURE__ */ l("label", {
537
- htmlFor: d,
536
+ t && /* @__PURE__ */ d("label", {
537
+ htmlFor: l,
538
538
  className: L.label,
539
- children: [t, s.required && /* @__PURE__ */ c("span", {
539
+ children: [t, s.required && /* @__PURE__ */ u("span", {
540
540
  "aria-label": "required",
541
541
  children: " *"
542
542
  })]
543
543
  }),
544
- /* @__PURE__ */ c("input", {
545
- id: d,
544
+ /* @__PURE__ */ u("input", {
545
+ id: l,
546
546
  className: `${L.input} ${a === "borderBottom" ? L.borderBottom : ""} ${p ? L.error : ""}`,
547
547
  "aria-invalid": p ? "true" : "false",
548
548
  "aria-describedby": n ? f : void 0,
549
549
  ...s
550
550
  }),
551
- n && /* @__PURE__ */ c("span", {
551
+ n && /* @__PURE__ */ u("span", {
552
552
  id: f,
553
553
  className: L.errorText,
554
554
  role: "alert",
@@ -563,11 +563,11 @@ var R = {
563
563
  customRadio: "_customRadio_1faq0_23",
564
564
  labelText: "_labelText_1faq0_57",
565
565
  disabled: "_disabled_1faq0_63"
566
- }, le = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ l("label", {
566
+ }, de = ({ 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
568
  className: `${R.radioWrapper} ${o ? R.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
569
569
  children: [
570
- /* @__PURE__ */ c("input", {
570
+ /* @__PURE__ */ u("input", {
571
571
  id: e,
572
572
  type: "radio",
573
573
  name: t,
@@ -578,25 +578,25 @@ var R = {
578
578
  "aria-label": s,
579
579
  className: R.radioInput
580
580
  }),
581
- /* @__PURE__ */ c("span", { className: R.customRadio }),
582
- /* @__PURE__ */ c("span", {
581
+ /* @__PURE__ */ u("span", { className: R.customRadio }),
582
+ /* @__PURE__ */ u("span", {
583
583
  className: R.labelText,
584
584
  children: r
585
585
  })
586
586
  ]
587
- }), ue = {
587
+ }), fe = {
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
- }, de = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
593
- let s = e.useId(), u = t || s;
594
- return /* @__PURE__ */ l("label", {
595
- htmlFor: u,
596
- className: `${ue.switch} ${i ? ue.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
592
+ }, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o }) => {
593
+ let s = e.useId(), c = t || s;
594
+ return /* @__PURE__ */ d("label", {
595
+ htmlFor: c,
596
+ className: `${fe.switch} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
597
597
  children: [
598
- /* @__PURE__ */ c("input", {
599
- id: u,
598
+ /* @__PURE__ */ u("input", {
599
+ id: c,
600
600
  type: "checkbox",
601
601
  role: "switch",
602
602
  "aria-checked": n,
@@ -605,12 +605,12 @@ var R = {
605
605
  onChange: (e) => r(e.target.checked),
606
606
  disabled: i
607
607
  }),
608
- /* @__PURE__ */ c("span", {
609
- className: ue.slider,
608
+ /* @__PURE__ */ u("span", {
609
+ className: fe.slider,
610
610
  "aria-hidden": "true"
611
611
  }),
612
- a && /* @__PURE__ */ c("span", {
613
- className: ue.label,
612
+ a && /* @__PURE__ */ u("span", {
613
+ className: fe.label,
614
614
  children: a
615
615
  })
616
616
  ]
@@ -624,27 +624,27 @@ var R = {
624
624
  livetrackDefault: "_livetrackDefault_12as9_52",
625
625
  thumbs: "_thumbs_12as9_55",
626
626
  disabled: "_disabled_12as9_89"
627
- }, fe = (t) => {
628
- let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: u, isFaceted: d = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id: _ } = t, v = e.useId(), y = _ || v;
629
- if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ l("div", {
627
+ }, me = (t) => {
628
+ let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: f = !0, onChange: p, onFinalChange: m, label: h, "aria-label": g, id: _ } = t, v = e.useId(), y = _ || v;
629
+ if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
630
630
  className: o,
631
- children: [h && /* @__PURE__ */ c("span", {
631
+ children: [h && /* @__PURE__ */ u("span", {
632
632
  className: z.label,
633
633
  children: h
634
- }), /* @__PURE__ */ c("div", {
634
+ }), /* @__PURE__ */ u("div", {
635
635
  className: `${z.basetrack} ${z.disabled}`,
636
636
  "aria-hidden": "true"
637
637
  })]
638
638
  });
639
639
  if ("isRange" in t && t.isRange) {
640
640
  let e = t.value, [f, _] = e;
641
- return /* @__PURE__ */ l("div", {
641
+ return /* @__PURE__ */ d("div", {
642
642
  className: o,
643
- children: [h && /* @__PURE__ */ c("label", {
643
+ children: [h && /* @__PURE__ */ u("label", {
644
644
  htmlFor: y,
645
645
  className: z.label,
646
646
  children: h
647
- }), /* @__PURE__ */ c(w, {
647
+ }), /* @__PURE__ */ u(E, {
648
648
  step: i,
649
649
  min: n,
650
650
  max: r,
@@ -653,13 +653,13 @@ var R = {
653
653
  onFinalChange: (e) => m?.(e),
654
654
  disabled: a,
655
655
  renderTrack: ({ props: e, children: t }) => {
656
- let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof s == "number" && typeof u == "number" && u > s && (s > n || u < r);
657
- return v && (h = (s - n) / o * 100, g = (u - s) / o * 100), /* @__PURE__ */ l("div", {
656
+ let { key: i, ...a } = e, o = r - n, p = (f - n) / o * 100, m = (_ - f) / o * 100, h = 0, g = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
657
+ return v && (h = (s - n) / o * 100, g = (c - s) / o * 100), /* @__PURE__ */ d("div", {
658
658
  ...a,
659
659
  className: z.basetrack,
660
660
  style: { ...a.style },
661
661
  children: [
662
- !v && /* @__PURE__ */ c("div", {
662
+ !v && /* @__PURE__ */ u("div", {
663
663
  className: z.selectedtrack,
664
664
  style: {
665
665
  left: `${p}%`,
@@ -667,8 +667,8 @@ var R = {
667
667
  zIndex: "1"
668
668
  }
669
669
  }),
670
- v && /* @__PURE__ */ c("div", {
671
- className: `${z.livetrack} ${d ? z.livetrackFaceted : z.livetrackDefault}`,
670
+ v && /* @__PURE__ */ u("div", {
671
+ className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
672
672
  style: {
673
673
  left: `${h}%`,
674
674
  width: `${g}%`,
@@ -681,7 +681,7 @@ var R = {
681
681
  },
682
682
  renderThumb: ({ props: e, index: t }) => {
683
683
  let { key: i, ...o } = e, s = t === 0 ? f : _;
684
- return /* @__PURE__ */ c("div", {
684
+ return /* @__PURE__ */ u("div", {
685
685
  ...o,
686
686
  id: t === 0 ? y : void 0,
687
687
  className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
@@ -699,13 +699,13 @@ var R = {
699
699
  });
700
700
  } else {
701
701
  let e = t.value;
702
- return /* @__PURE__ */ l("div", {
702
+ return /* @__PURE__ */ d("div", {
703
703
  className: o,
704
- children: [h && /* @__PURE__ */ c("label", {
704
+ children: [h && /* @__PURE__ */ u("label", {
705
705
  htmlFor: y,
706
706
  className: z.label,
707
707
  children: h
708
- }), /* @__PURE__ */ c(w, {
708
+ }), /* @__PURE__ */ u(E, {
709
709
  step: i,
710
710
  min: n,
711
711
  max: r,
@@ -714,13 +714,13 @@ var R = {
714
714
  onFinalChange: (e) => m?.(e[0]),
715
715
  disabled: a,
716
716
  renderTrack: ({ props: t, children: i }) => {
717
- let { key: a, ...o } = t, f = r - n, p = (e - n) / f * 100, m = 0, h = 0, g = typeof s == "number" && typeof u == "number" && u > s && (s > n || u < r);
718
- return g && (m = (s - n) / f * 100, h = (u - s) / f * 100), /* @__PURE__ */ l("div", {
717
+ let { key: a, ...o } = t, f = r - n, p = (e - n) / f * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
718
+ return g && (m = (s - n) / f * 100, h = (c - s) / f * 100), /* @__PURE__ */ d("div", {
719
719
  ...o,
720
720
  className: z.basetrack,
721
721
  style: { ...o.style },
722
722
  children: [
723
- !g && /* @__PURE__ */ c("div", {
723
+ !g && /* @__PURE__ */ u("div", {
724
724
  className: z.selectedtrack,
725
725
  style: {
726
726
  left: "0%",
@@ -728,8 +728,8 @@ var R = {
728
728
  zIndex: "1"
729
729
  }
730
730
  }),
731
- g && /* @__PURE__ */ c("div", {
732
- className: `${z.livetrack} ${d ? z.livetrackFaceted : z.livetrackDefault}`,
731
+ g && /* @__PURE__ */ u("div", {
732
+ className: `${z.livetrack} ${l ? z.livetrackFaceted : z.livetrackDefault}`,
733
733
  style: {
734
734
  left: `${m}%`,
735
735
  width: `${h}%`,
@@ -742,7 +742,7 @@ var R = {
742
742
  },
743
743
  renderThumb: ({ props: t }) => {
744
744
  let { key: i, ...o } = t;
745
- return /* @__PURE__ */ c("div", {
745
+ return /* @__PURE__ */ u("div", {
746
746
  ...o,
747
747
  id: y,
748
748
  className: `${z.thumbs} ${a ? z.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
@@ -771,51 +771,51 @@ var R = {
771
771
  viewport: "_viewport_15fsv_76",
772
772
  item: "_item_15fsv_82",
773
773
  itemIndicator: "_itemIndicator_15fsv_105"
774
- }, pe = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: u = "default", "aria-label": d, id: m }) => {
775
- let h = e.useId(), g = m || h, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ l(T.Root, {
774
+ }, he = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", "aria-label": l, id: f }) => {
775
+ let p = e.useId(), g = f || p, _ = `${g}-label`, v = r.find((e) => e.value === t), y = /* @__PURE__ */ d(D.Root, {
776
776
  value: t,
777
777
  onValueChange: n,
778
778
  disabled: o,
779
- children: [/* @__PURE__ */ l(T.Trigger, {
779
+ children: [/* @__PURE__ */ d(D.Trigger, {
780
780
  id: g,
781
- className: `${B.trigger} ${B[u]} ${a} cursor-pointer`,
782
- ...s ? { "aria-labelledby": _ } : d ? { "aria-label": d } : {},
783
- children: [/* @__PURE__ */ l("span", {
781
+ className: `${B.trigger} ${B[c]} ${a} cursor-pointer`,
782
+ ...s ? { "aria-labelledby": _ } : l ? { "aria-label": l } : {},
783
+ children: [/* @__PURE__ */ d("span", {
784
784
  style: {
785
785
  display: "inline-flex",
786
786
  alignItems: "center",
787
787
  gap: 6
788
788
  },
789
- children: [v?.icon, /* @__PURE__ */ c(T.Value, { placeholder: i })]
790
- }), /* @__PURE__ */ c(T.Icon, {
789
+ children: [v?.icon, /* @__PURE__ */ u(D.Value, { placeholder: i })]
790
+ }), /* @__PURE__ */ u(D.Icon, {
791
791
  className: B.icon,
792
792
  "aria-hidden": "true",
793
- children: /* @__PURE__ */ c(p, {
794
- size: u === "large" ? 21 : 14,
793
+ children: /* @__PURE__ */ u(h, {
794
+ size: c === "large" ? 21 : 14,
795
795
  color: "currentColor"
796
796
  })
797
797
  })]
798
- }), /* @__PURE__ */ c(T.Portal, { children: /* @__PURE__ */ c(T.Content, {
798
+ }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
799
799
  className: B.content,
800
800
  position: "popper",
801
801
  side: "bottom",
802
802
  align: "start",
803
803
  sideOffset: 4,
804
- children: /* @__PURE__ */ c(T.Viewport, {
804
+ children: /* @__PURE__ */ u(D.Viewport, {
805
805
  className: B.viewport,
806
- children: r.map((e) => /* @__PURE__ */ l(T.Item, {
806
+ children: r.map((e) => /* @__PURE__ */ d(D.Item, {
807
807
  value: e.value,
808
808
  className: B.item,
809
- children: [/* @__PURE__ */ l("span", {
809
+ children: [/* @__PURE__ */ d("span", {
810
810
  style: {
811
811
  display: "inline-flex",
812
812
  alignItems: "center",
813
813
  gap: 6
814
814
  },
815
- children: [e.icon, /* @__PURE__ */ c(T.ItemText, { children: e.label })]
816
- }), /* @__PURE__ */ c(T.ItemIndicator, {
815
+ children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
816
+ }), /* @__PURE__ */ u(D.ItemIndicator, {
817
817
  className: B.itemIndicator,
818
- children: /* @__PURE__ */ c(f, {
818
+ children: /* @__PURE__ */ u(m, {
819
819
  size: 12,
820
820
  color: "currentColor"
821
821
  })
@@ -824,28 +824,28 @@ var R = {
824
824
  })
825
825
  }) })]
826
826
  });
827
- return s ? /* @__PURE__ */ l("div", {
827
+ return s ? /* @__PURE__ */ d("div", {
828
828
  className: B.wrapper,
829
- children: [/* @__PURE__ */ c("label", {
829
+ children: [/* @__PURE__ */ u("label", {
830
830
  id: _,
831
831
  htmlFor: g,
832
832
  className: B.label,
833
833
  children: s
834
834
  }), y]
835
835
  }) : y;
836
- }, me = { content: "_content_1qahr_1" }, he = ({ trigger: e, children: t, open: n, onOpenChange: r, align: i = "end", side: a = "bottom", sideOffset: o = 5, className: s = "", "aria-label": u, "aria-describedby": d }) => /* @__PURE__ */ l(E.Root, {
836
+ }, ge = { content: "_content_1qahr_1" }, _e = ({ 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, {
837
837
  open: n,
838
838
  onOpenChange: r,
839
- children: [/* @__PURE__ */ c(E.Trigger, {
839
+ children: [/* @__PURE__ */ u(O.Trigger, {
840
840
  asChild: !0,
841
841
  children: e
842
- }), /* @__PURE__ */ c(E.Portal, { children: /* @__PURE__ */ c(E.Content, {
843
- className: `${me.content} ${s}`,
842
+ }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
843
+ className: `${ge.content} ${s}`,
844
844
  align: i,
845
845
  side: a,
846
846
  sideOffset: o,
847
- "aria-label": u,
848
- "aria-describedby": d,
847
+ "aria-label": c,
848
+ "aria-describedby": l,
849
849
  children: t
850
850
  }) })]
851
851
  }), V = {
@@ -861,11 +861,11 @@ var R = {
861
861
  };
862
862
  //#endregion
863
863
  //#region src/components/Table/Table.tsx
864
- function ge({ children: e, caption: t, "aria-label": n }) {
865
- return /* @__PURE__ */ l("table", {
864
+ function ve({ children: e, caption: t, "aria-label": n }) {
865
+ return /* @__PURE__ */ d("table", {
866
866
  className: V.table,
867
867
  "aria-label": n,
868
- children: [t && /* @__PURE__ */ c("caption", {
868
+ children: [t && /* @__PURE__ */ u("caption", {
869
869
  className: V.caption,
870
870
  children: t
871
871
  }), e]
@@ -873,58 +873,58 @@ function ge({ children: e, caption: t, "aria-label": n }) {
873
873
  }
874
874
  //#endregion
875
875
  //#region src/components/Table/TableHeader.tsx
876
- function _e({ children: t }) {
877
- let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ c("th", {
876
+ function ye({ children: t }) {
877
+ let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
878
878
  scope: "col",
879
879
  ...t.props
880
880
  }) : t);
881
- return /* @__PURE__ */ c("thead", { children: /* @__PURE__ */ c("tr", {
881
+ return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
882
882
  className: V.headerRow,
883
883
  children: n
884
884
  }) });
885
885
  }
886
886
  //#endregion
887
887
  //#region src/components/Table/TableRow.tsx
888
- function ve({ children: e }) {
889
- return /* @__PURE__ */ c("tr", {
888
+ function be({ children: e }) {
889
+ return /* @__PURE__ */ u("tr", {
890
890
  className: V.dataRow,
891
891
  children: e
892
892
  });
893
893
  }
894
894
  //#endregion
895
895
  //#region src/components/Table/TableCell.tsx
896
- function ye({ label: e, children: t, isHeader: n = !1, scope: r }) {
896
+ function xe({ label: e, children: t, isHeader: n = !1, scope: r }) {
897
897
  let i = n ? "th" : "td", a = n && r ? { scope: r } : {};
898
- return e || t ? /* @__PURE__ */ c(i, {
898
+ return e || t ? /* @__PURE__ */ u(i, {
899
899
  ...a,
900
- children: /* @__PURE__ */ l("div", {
900
+ children: /* @__PURE__ */ d("div", {
901
901
  className: V.cellInner,
902
- children: [e && /* @__PURE__ */ c("span", {
902
+ children: [e && /* @__PURE__ */ u("span", {
903
903
  className: V.cellLabel,
904
904
  children: e
905
- }), t && /* @__PURE__ */ c("div", {
905
+ }), t && /* @__PURE__ */ u("div", {
906
906
  className: V.cellContent,
907
907
  children: t
908
908
  })]
909
909
  })
910
- }) : /* @__PURE__ */ c(i, {
910
+ }) : /* @__PURE__ */ u(i, {
911
911
  ...a,
912
912
  children: t
913
913
  });
914
914
  }
915
915
  //#endregion
916
916
  //#region src/components/Table/TableValue.tsx
917
- function be({ children: e }) {
918
- return /* @__PURE__ */ c("span", {
917
+ function Se({ children: e }) {
918
+ return /* @__PURE__ */ u("span", {
919
919
  className: V.value,
920
920
  children: e
921
921
  });
922
922
  }
923
923
  //#endregion
924
924
  //#region src/components/Table/TableIcon.tsx
925
- function xe({ children: t, "aria-label": n }) {
925
+ function Ce({ children: t, "aria-label": n }) {
926
926
  let r = !n;
927
- return /* @__PURE__ */ c("span", {
927
+ return /* @__PURE__ */ u("span", {
928
928
  className: V.icon,
929
929
  "aria-hidden": r ? "true" : void 0,
930
930
  "aria-label": n,
@@ -935,30 +935,33 @@ function xe({ children: t, "aria-label": n }) {
935
935
  });
936
936
  }
937
937
  var H = {
938
- tabs: "_tabs_11q71_1",
939
- scrollable: "_scrollable_11q71_11",
940
- tab: "_tab_11q71_1",
941
- active: "_active_11q71_54",
942
- micro: "_micro_11q71_60",
943
- default: "_default_11q71_67",
944
- large: "_large_11q71_74"
938
+ tabs: "_tabs_13m5x_1",
939
+ scrollable: "_scrollable_13m5x_11",
940
+ tab: "_tab_13m5x_1",
941
+ icon: "_icon_13m5x_53",
942
+ active: "_active_13m5x_63",
943
+ micro: "_micro_13m5x_69",
944
+ default: "_default_13m5x_76",
945
+ large: "_large_13m5x_83"
946
+ }, we = {
947
+ micro: 14,
948
+ default: 14,
949
+ large: 21
945
950
  };
946
- //#endregion
947
- //#region src/components/Tabs/Tabs.tsx
948
- function Se({ items: e, value: t, onValueChange: i, size: s = "default", scrollable: l = !1, getPanelId: u }) {
949
- let d = a(null), f = a(/* @__PURE__ */ new Map()), p = r(), [m, h] = o({
951
+ function Te({ items: e, value: r, onValueChange: o, size: l = "default", scrollable: f = !1, getPanelId: p }) {
952
+ let m = s(null), h = s(/* @__PURE__ */ new Map()), g = a(), [_, v] = c({
950
953
  start: !1,
951
954
  end: !1
952
- }), g = Math.max(e.findIndex((e) => e.value === t), 0), _ = (t) => {
955
+ }), y = Math.max(e.findIndex((e) => e.value === r), 0), b = (t) => {
953
956
  let n = e[t];
954
957
  if (!n) return;
955
- i(n.value);
956
- let r = f.current.get(n.value);
957
- r?.focus({ preventScroll: !0 }), l && r?.scrollIntoView({
958
+ o(n.value);
959
+ let r = h.current.get(n.value);
960
+ r?.focus({ preventScroll: !0 }), f && r?.scrollIntoView({
958
961
  block: "nearest",
959
962
  inline: "nearest"
960
963
  });
961
- }, v = (t, n) => {
964
+ }, x = (t, n) => {
962
965
  if (e.length === 0) return;
963
966
  let r;
964
967
  switch (t.key) {
@@ -976,14 +979,14 @@ function Se({ items: e, value: t, onValueChange: i, size: s = "default", scrolla
976
979
  break;
977
980
  default: return;
978
981
  }
979
- t.preventDefault(), _(r);
982
+ t.preventDefault(), b(r);
980
983
  };
981
- return n(() => {
982
- let e = d.current;
983
- if (!l || !e) return;
984
+ return i(() => {
985
+ let e = m.current;
986
+ if (!f || !e) return;
984
987
  let t = () => {
985
988
  let t = e.scrollLeft > 1, n = Math.ceil(e.scrollLeft + e.clientWidth) < e.scrollWidth - 1;
986
- h((e) => e.start === t && e.end === n ? e : {
989
+ v((e) => e.start === t && e.end === n ? e : {
987
990
  start: t,
988
991
  end: n
989
992
  });
@@ -993,28 +996,32 @@ function Se({ items: e, value: t, onValueChange: i, size: s = "default", scrolla
993
996
  return n.observe(e), () => {
994
997
  e.removeEventListener("scroll", t), n.disconnect();
995
998
  };
996
- }, [l, e.length]), /* @__PURE__ */ c("div", {
997
- ref: d,
998
- className: `${H.tabs} ${l ? H.scrollable : ""}`,
999
- "data-overflow-start": l && m.start ? "" : void 0,
1000
- "data-overflow-end": l && m.end ? "" : void 0,
999
+ }, [f, e.length]), /* @__PURE__ */ u("div", {
1000
+ ref: m,
1001
+ className: `${H.tabs} ${f ? H.scrollable : ""}`,
1002
+ "data-overflow-start": f && _.start ? "" : void 0,
1003
+ "data-overflow-end": f && _.end ? "" : void 0,
1001
1004
  role: "tablist",
1002
- children: e.map((e, t) => {
1003
- let n = t === g;
1004
- return /* @__PURE__ */ c("button", {
1005
+ children: e.map((e, r) => {
1006
+ let i = r === y;
1007
+ return /* @__PURE__ */ d("button", {
1005
1008
  ref: (t) => {
1006
- t ? f.current.set(e.value, t) : f.current.delete(e.value);
1009
+ t ? h.current.set(e.value, t) : h.current.delete(e.value);
1007
1010
  },
1008
- id: `${p}-tab-${e.value}`,
1011
+ id: `${g}-tab-${e.value}`,
1009
1012
  role: "tab",
1010
1013
  type: "button",
1011
- "aria-selected": n,
1012
- "aria-controls": u?.(e),
1013
- tabIndex: n ? 0 : -1,
1014
- className: `${H.tab} ${H[s]} ${n ? H.active : ""}`,
1015
- onClick: () => i(e.value),
1016
- onKeyDown: (e) => v(e, t),
1017
- children: e.label
1014
+ "aria-selected": i,
1015
+ "aria-controls": p?.(e),
1016
+ tabIndex: i ? 0 : -1,
1017
+ className: `${H.tab} ${H[l]} ${i ? H.active : ""}`,
1018
+ onClick: () => o(e.value),
1019
+ onKeyDown: (e) => x(e, r),
1020
+ children: [e.icon ? /* @__PURE__ */ u("span", {
1021
+ className: H.icon,
1022
+ "aria-hidden": "true",
1023
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: we[l] }) : e.icon
1024
+ }) : null, e.label]
1018
1025
  }, e.value);
1019
1026
  })
1020
1027
  });
@@ -1038,27 +1045,27 @@ var U = {
1038
1045
  };
1039
1046
  //#endregion
1040
1047
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1041
- function Ce(t) {
1048
+ function Ee(t) {
1042
1049
  return e.isValidElement(t) ? e.cloneElement(t, {
1043
1050
  size: "14px",
1044
1051
  color: "currentColor"
1045
1052
  }) : t;
1046
1053
  }
1047
- var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", separator: r = /* @__PURE__ */ c(h, {
1054
+ var De = "\0action", Oe = ({ items: e, size: t = "default", className: n = "", separator: r = /* @__PURE__ */ u(_, {
1048
1055
  size: 14,
1049
1056
  color: "currentColor"
1050
- }), renderLink: i, "aria-label": a = "Breadcrumb" }) => /* @__PURE__ */ c("nav", {
1057
+ }), renderLink: i, "aria-label": a = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1051
1058
  "aria-label": a,
1052
1059
  className: `${U.root} ${U[t]} ${n}`,
1053
- children: /* @__PURE__ */ c("ol", {
1060
+ children: /* @__PURE__ */ u("ol", {
1054
1061
  className: U.list,
1055
- children: e.map((t, n) => /* @__PURE__ */ l("li", {
1062
+ children: e.map((t, n) => /* @__PURE__ */ d("li", {
1056
1063
  className: U.item,
1057
- children: [n > 0 && /* @__PURE__ */ c("span", {
1064
+ children: [n > 0 && /* @__PURE__ */ u("span", {
1058
1065
  className: U.separator,
1059
1066
  "aria-hidden": "true",
1060
1067
  children: r
1061
- }), /* @__PURE__ */ l("div", {
1068
+ }), /* @__PURE__ */ d("div", {
1062
1069
  className: `${U.step} ${t.switcher ? U.switchable : ""}`,
1063
1070
  children: [t.href ? (() => {
1064
1071
  let r = {
@@ -1066,82 +1073,82 @@ var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", s
1066
1073
  href: t.href,
1067
1074
  onClick: t.onClick,
1068
1075
  "aria-current": n === e.length - 1 ? "page" : void 0,
1069
- children: /* @__PURE__ */ l(s, { children: [t.icon && /* @__PURE__ */ c("span", {
1076
+ children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1070
1077
  className: U.icon,
1071
1078
  "aria-hidden": "true",
1072
- children: Ce(t.icon)
1073
- }), /* @__PURE__ */ c("span", {
1079
+ children: Ee(t.icon)
1080
+ }), /* @__PURE__ */ u("span", {
1074
1081
  className: U.text,
1075
1082
  children: t.label
1076
1083
  })] })
1077
1084
  };
1078
- return i ? i(t, r) : /* @__PURE__ */ c("a", { ...r });
1079
- })() : /* @__PURE__ */ l("span", {
1085
+ return i ? i(t, r) : /* @__PURE__ */ u("a", { ...r });
1086
+ })() : /* @__PURE__ */ d("span", {
1080
1087
  className: U.label,
1081
1088
  "aria-current": n === e.length - 1 ? "page" : void 0,
1082
- children: [t.icon && /* @__PURE__ */ c("span", {
1089
+ children: [t.icon && /* @__PURE__ */ u("span", {
1083
1090
  className: U.icon,
1084
1091
  "aria-hidden": "true",
1085
- children: Ce(t.icon)
1086
- }), /* @__PURE__ */ c("span", {
1092
+ children: Ee(t.icon)
1093
+ }), /* @__PURE__ */ u("span", {
1087
1094
  className: U.text,
1088
1095
  children: t.label
1089
1096
  })]
1090
- }), t.switcher && /* @__PURE__ */ l(T.Root, {
1097
+ }), t.switcher && /* @__PURE__ */ d(D.Root, {
1091
1098
  value: t.switcher.value,
1092
- onValueChange: (e) => e === we ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1099
+ onValueChange: (e) => e === De ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1093
1100
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1094
- children: [/* @__PURE__ */ c(T.Trigger, {
1101
+ children: [/* @__PURE__ */ u(D.Trigger, {
1095
1102
  className: U.trigger,
1096
1103
  "aria-label": `${t.switcher.label}: ${t.label}`,
1097
- children: /* @__PURE__ */ c(T.Icon, {
1104
+ children: /* @__PURE__ */ u(D.Icon, {
1098
1105
  "aria-hidden": "true",
1099
1106
  className: U.icon,
1100
- children: /* @__PURE__ */ c(_, {
1107
+ children: /* @__PURE__ */ u(y, {
1101
1108
  size: 14,
1102
1109
  color: "currentColor"
1103
1110
  })
1104
1111
  })
1105
- }), /* @__PURE__ */ c(T.Portal, { children: /* @__PURE__ */ c(T.Content, {
1112
+ }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
1106
1113
  className: `${B.content} ${U.menu}`,
1107
1114
  position: "popper",
1108
1115
  align: "end",
1109
1116
  sideOffset: 4,
1110
1117
  collisionPadding: 8,
1111
- children: /* @__PURE__ */ l(T.Viewport, {
1118
+ children: /* @__PURE__ */ d(D.Viewport, {
1112
1119
  className: B.viewport,
1113
- children: [t.switcher.options.map((e) => /* @__PURE__ */ l(T.Item, {
1120
+ children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
1114
1121
  value: e.value,
1115
1122
  className: B.item,
1116
1123
  textValue: e.label,
1117
- children: [/* @__PURE__ */ l("span", {
1124
+ children: [/* @__PURE__ */ d("span", {
1118
1125
  className: U.option,
1119
- children: [e.icon && /* @__PURE__ */ c("span", {
1126
+ children: [e.icon && /* @__PURE__ */ u("span", {
1120
1127
  className: U.icon,
1121
1128
  "aria-hidden": "true",
1122
1129
  children: e.icon
1123
- }), /* @__PURE__ */ c(T.ItemText, { children: e.label })]
1124
- }), /* @__PURE__ */ c(T.ItemIndicator, {
1130
+ }), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
1131
+ }), /* @__PURE__ */ u(D.ItemIndicator, {
1125
1132
  className: B.itemIndicator,
1126
- children: /* @__PURE__ */ c(f, {
1133
+ children: /* @__PURE__ */ u(m, {
1127
1134
  size: 12,
1128
1135
  color: "currentColor"
1129
1136
  })
1130
1137
  })]
1131
- }, e.value)), t.switcher.action && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(T.Separator, { className: U.menuDivider }), /* @__PURE__ */ c(T.Item, {
1132
- value: we,
1138
+ }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: U.menuDivider }), /* @__PURE__ */ u(D.Item, {
1139
+ value: De,
1133
1140
  className: B.item,
1134
1141
  textValue: t.switcher.action.label,
1135
- children: /* @__PURE__ */ l("span", {
1142
+ children: /* @__PURE__ */ d("span", {
1136
1143
  className: U.option,
1137
- children: [/* @__PURE__ */ c("span", {
1144
+ children: [/* @__PURE__ */ u("span", {
1138
1145
  className: U.icon,
1139
1146
  "aria-hidden": "true",
1140
- children: /* @__PURE__ */ c(y, {
1147
+ children: /* @__PURE__ */ u(x, {
1141
1148
  size: 14,
1142
1149
  color: "currentColor"
1143
1150
  })
1144
- }), /* @__PURE__ */ c(T.ItemText, { children: t.switcher.action.label })]
1151
+ }), /* @__PURE__ */ u(D.ItemText, { children: t.switcher.action.label })]
1145
1152
  })
1146
1153
  })] })]
1147
1154
  })
@@ -1150,7 +1157,7 @@ var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", s
1150
1157
  })]
1151
1158
  }, t.id))
1152
1159
  })
1153
- }), Ee = {
1160
+ }), ke = {
1154
1161
  wrapper: "_wrapper_1a9jo_1",
1155
1162
  track: "_track_1a9jo_8",
1156
1163
  fill: "_fill_1a9jo_36",
@@ -1158,42 +1165,42 @@ var we = "\0action", Te = ({ items: e, size: t = "default", className: n = "", s
1158
1165
  };
1159
1166
  //#endregion
1160
1167
  //#region src/components/ProgressBar/ProgressBar.tsx
1161
- function De({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1168
+ function Ae({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1162
1169
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1163
- return /* @__PURE__ */ l("div", {
1164
- className: `${Ee.wrapper} ${r}`,
1170
+ return /* @__PURE__ */ d("div", {
1171
+ className: `${ke.wrapper} ${r}`,
1165
1172
  role: "progressbar",
1166
1173
  "aria-valuenow": i,
1167
1174
  "aria-valuemin": 0,
1168
1175
  "aria-valuemax": 100,
1169
- children: [/* @__PURE__ */ c("div", {
1170
- className: Ee.track,
1171
- children: /* @__PURE__ */ c("div", {
1172
- className: Ee.fill,
1176
+ children: [/* @__PURE__ */ u("div", {
1177
+ className: ke.track,
1178
+ children: /* @__PURE__ */ u("div", {
1179
+ className: ke.fill,
1173
1180
  style: {
1174
1181
  width: `${i}%`,
1175
1182
  backgroundColor: o
1176
1183
  }
1177
1184
  })
1178
- }), t && /* @__PURE__ */ c("span", {
1179
- className: Ee.label,
1185
+ }), t && /* @__PURE__ */ u("span", {
1186
+ className: ke.label,
1180
1187
  "aria-hidden": "true",
1181
1188
  children: a
1182
1189
  })]
1183
1190
  });
1184
1191
  }
1185
- var Oe = {
1192
+ var je = {
1186
1193
  chip: "_chip_iaxe0_1",
1187
1194
  large: "_large_iaxe0_14"
1188
1195
  };
1189
1196
  //#endregion
1190
1197
  //#region src/components/Chip/Chip.tsx
1191
- function ke({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1198
+ function Me({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1192
1199
  let s = {};
1193
- return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ l("span", {
1200
+ return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
1194
1201
  className: [
1195
- Oe.chip,
1196
- o === "large" && Oe.large,
1202
+ je.chip,
1203
+ o === "large" && je.large,
1197
1204
  i
1198
1205
  ].filter(Boolean).join(" "),
1199
1206
  style: s,
@@ -1214,54 +1221,54 @@ var W = {
1214
1221
  success: "_success_ok48u_24",
1215
1222
  warning: "_warning_ok48u_25",
1216
1223
  destructive: "_destructive_ok48u_26"
1217
- }, Ae = {
1218
- success: /* @__PURE__ */ c(f, {}),
1219
- warning: /* @__PURE__ */ c(S, {}),
1220
- destructive: /* @__PURE__ */ c(S, {})
1224
+ }, Ne = {
1225
+ success: /* @__PURE__ */ u(m, {}),
1226
+ warning: /* @__PURE__ */ u(w, {}),
1227
+ destructive: /* @__PURE__ */ u(w, {})
1221
1228
  };
1222
- function je(t) {
1229
+ function Pe(t) {
1223
1230
  return e.isValidElement(t) ? e.cloneElement(t, {
1224
1231
  size: 16,
1225
1232
  color: "currentColor"
1226
1233
  }) : t;
1227
1234
  }
1228
- var Me = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1229
- let a = t === void 0 ? Ae[e] : t;
1230
- return /* @__PURE__ */ l("div", {
1235
+ var Fe = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1236
+ let a = t === void 0 ? Ne[e] : t;
1237
+ return /* @__PURE__ */ d("div", {
1231
1238
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1232
1239
  className: `${W.root} ${W[e]} ${n}`,
1233
- children: [a && /* @__PURE__ */ c("span", {
1240
+ children: [a && /* @__PURE__ */ u("span", {
1234
1241
  className: W.icon,
1235
1242
  "aria-hidden": "true",
1236
- children: je(a)
1237
- }), /* @__PURE__ */ c("div", {
1243
+ children: Pe(a)
1244
+ }), /* @__PURE__ */ u("div", {
1238
1245
  className: W.body,
1239
1246
  children: r
1240
1247
  })]
1241
1248
  });
1242
- }, Ne = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", {
1249
+ }, Ie = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1243
1250
  className: `${W.title} ${t}`,
1244
1251
  children: e
1245
- }), Pe = ({ children: e, className: t = "" }) => /* @__PURE__ */ c("div", {
1252
+ }), Le = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1246
1253
  className: `${W.description} ${t}`,
1247
1254
  children: e
1248
- }), Fe = {
1255
+ }), Re = {
1249
1256
  tooltip: "_tooltip_1de7z_1",
1250
1257
  arrow: "_arrow_1de7z_13"
1251
1258
  };
1252
1259
  //#endregion
1253
1260
  //#region src/components/Tooltip/Tooltip.tsx
1254
- function Ie({ content: e, position: t = "top", children: n, className: r }) {
1255
- return /* @__PURE__ */ c(D.Provider, {
1261
+ function ze({ content: e, position: t = "top", children: n, className: r }) {
1262
+ return /* @__PURE__ */ u(k.Provider, {
1256
1263
  delayDuration: 80,
1257
- children: /* @__PURE__ */ l(D.Root, { children: [/* @__PURE__ */ c(D.Trigger, {
1264
+ children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
1258
1265
  asChild: !0,
1259
1266
  children: n
1260
- }), /* @__PURE__ */ c(D.Portal, { children: /* @__PURE__ */ l(D.Content, {
1267
+ }), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
1261
1268
  side: t,
1262
1269
  sideOffset: 7,
1263
- className: [Fe.tooltip, r].filter(Boolean).join(" "),
1264
- children: [e, /* @__PURE__ */ c(D.Arrow, { className: Fe.arrow })]
1270
+ className: [Re.tooltip, r].filter(Boolean).join(" "),
1271
+ children: [e, /* @__PURE__ */ u(k.Arrow, { className: Re.arrow })]
1265
1272
  }) })] })
1266
1273
  });
1267
1274
  }
@@ -1279,57 +1286,57 @@ var G = {
1279
1286
  legendItem: "_legendItem_1w5vh_90",
1280
1287
  legendMark: "_legendMark_1w5vh_96",
1281
1288
  legendLabel: "_legendLabel_1w5vh_102"
1282
- }, Le = "var(--lv4)", K = 12, Re = 20, ze = 8, Be = 28, q = 20;
1283
- function Ve(e) {
1289
+ }, Be = "var(--lv4)", K = 12, Ve = 20, He = 8, Ue = 28, q = 20;
1290
+ function We(e) {
1284
1291
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1285
1292
  }
1286
- function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegend: u = !0, className: d }) {
1287
- let f = a(null), [p, m] = o(0), [h, g] = o(null);
1288
- n(() => {
1293
+ function Ge({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l }) {
1294
+ let f = s(null), [p, m] = c(0), [h, g] = c(null);
1295
+ i(() => {
1289
1296
  let e = f.current;
1290
1297
  if (!e) return;
1291
1298
  let t = new ResizeObserver(([e]) => m(e.contentRect.width));
1292
1299
  return t.observe(e), m(e.clientWidth), () => t.disconnect();
1293
1300
  }, []);
1294
- let _ = r?.length ? Be : ze, v = Math.max(p - q - Re, 0), y = Math.max(s - K - _, 0), b = e.flatMap((e) => e.data.filter(Number.isFinite)), x = b.length ? Math.max(...b, 0) : 1, S = i === "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 = t((e) => {
1301
+ let _ = t?.length ? Ue : He, v = Math.max(p - q - Ve, 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) => {
1295
1302
  if (w === 0) return;
1296
- let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left, r = e.clientY - t.top;
1297
- if (i === "line") {
1298
- let e = Math.round((n - q) / v * (w - 1));
1303
+ let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1304
+ if (n === "line") {
1305
+ let e = Math.round((r - q) / v * (w - 1));
1299
1306
  g({
1300
1307
  index: Math.max(0, Math.min(w - 1, e)),
1301
- x: n,
1302
- y: r
1308
+ x: r,
1309
+ y: i
1303
1310
  });
1304
1311
  } else {
1305
- let e = v / w, t = Math.floor((n - q) / e);
1312
+ let e = v / w, t = Math.floor((r - q) / e);
1306
1313
  g({
1307
1314
  index: Math.max(0, Math.min(w - 1, t)),
1308
- x: n,
1309
- y: r
1315
+ x: r,
1316
+ y: i
1310
1317
  });
1311
1318
  }
1312
1319
  }, [
1313
- i,
1320
+ n,
1314
1321
  w,
1315
1322
  v
1316
- ]), O = t(() => g(null), []), k = /* @__PURE__ */ c("line", {
1323
+ ]), O = r(() => g(null), []), k = /* @__PURE__ */ u("line", {
1317
1324
  x1: q,
1318
1325
  y1: K + y * .5,
1319
1326
  x2: q + v,
1320
1327
  y2: K + y * .5,
1321
1328
  stroke: "var(--chart-midline)",
1322
1329
  strokeWidth: "0.5"
1323
- }), A = /* @__PURE__ */ c("line", {
1330
+ }), A = /* @__PURE__ */ u("line", {
1324
1331
  x1: q,
1325
1332
  y1: K + y,
1326
1333
  x2: q + v,
1327
1334
  y2: K + y,
1328
1335
  stroke: "var(--chart-baseline)",
1329
1336
  strokeWidth: "1"
1330
- }), j = h && i === "bar" ? (() => {
1337
+ }), j = h && n === "bar" ? (() => {
1331
1338
  let e = v / w;
1332
- return /* @__PURE__ */ c("rect", {
1339
+ return /* @__PURE__ */ u("rect", {
1333
1340
  x: q + h.index * e,
1334
1341
  y: K,
1335
1342
  width: e,
@@ -1338,8 +1345,8 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
1338
1345
  });
1339
1346
  })() : null, ee = () => e.map((e, t) => {
1340
1347
  if (!e.data.length) return null;
1341
- let n = e.color ?? Le;
1342
- return /* @__PURE__ */ l("g", { children: [/* @__PURE__ */ c("polyline", {
1348
+ let n = e.color ?? Be;
1349
+ return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
1343
1350
  points: e.data.map((e, t) => `${E(t).toFixed(2)},${T(e).toFixed(2)}`).join(" "),
1344
1351
  fill: "none",
1345
1352
  stroke: n,
@@ -1348,7 +1355,7 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
1348
1355
  strokeLinecap: "round"
1349
1356
  }), e.data.map((e, t) => {
1350
1357
  let r = h?.index === t ? 10 : 5, i = r / 2;
1351
- return /* @__PURE__ */ c("rect", {
1358
+ return /* @__PURE__ */ u("rect", {
1352
1359
  x: E(t) - i,
1353
1360
  y: T(e) - i,
1354
1361
  width: r,
@@ -1360,27 +1367,27 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
1360
1367
  if (!w) return null;
1361
1368
  let t = e.length, n = v / w, r = Math.max((n - 2 * (t + 1)) / t, 2), i = K + y;
1362
1369
  return e.map((e, t) => e.data.map((a, o) => {
1363
- let s = q + o * n + 2 + t * (r + 2), l = T(a);
1364
- return /* @__PURE__ */ c("rect", {
1370
+ let s = q + o * n + 2 + t * (r + 2), c = T(a);
1371
+ return /* @__PURE__ */ u("rect", {
1365
1372
  x: s,
1366
- y: l,
1373
+ y: c,
1367
1374
  width: r,
1368
- height: Math.max(i - l, 0),
1375
+ height: Math.max(i - c, 0),
1369
1376
  fill: e.color ?? "var(--chart-bar)"
1370
1377
  }, `${t}-${o}`);
1371
1378
  }));
1372
- }, M = () => {
1373
- if (!r?.length) return null;
1379
+ }, ne = () => {
1380
+ if (!t?.length) return null;
1374
1381
  let e = K + y + 18;
1375
- return r.map((t, n) => /* @__PURE__ */ c("text", {
1376
- x: i === "line" ? E(n) : q + (n + .5) * (v / w),
1382
+ return t.map((t, r) => /* @__PURE__ */ u("text", {
1383
+ x: n === "line" ? E(r) : q + (r + .5) * (v / w),
1377
1384
  y: e,
1378
1385
  textAnchor: "middle",
1379
1386
  fill: "var(--lv4)",
1380
1387
  style: { font: "var(--text-2xs)" },
1381
1388
  children: t
1382
- }, n));
1383
- }, N = h && i === "line" ? /* @__PURE__ */ c("line", {
1389
+ }, r));
1390
+ }, re = h && n === "line" ? /* @__PURE__ */ u("line", {
1384
1391
  x1: E(h.index),
1385
1392
  y1: K,
1386
1393
  x2: E(h.index),
@@ -1388,50 +1395,50 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
1388
1395
  stroke: "var(--chart-crosshair)",
1389
1396
  strokeWidth: "1",
1390
1397
  strokeDasharray: "3 3"
1391
- }) : null, P = h ? (() => {
1392
- let t = r?.[h.index] ?? String(h.index + 1), n = Math.min(Math.max(h.x, 60), p - 60);
1393
- return /* @__PURE__ */ l("div", {
1398
+ }) : null, M = h ? (() => {
1399
+ let n = t?.[h.index] ?? String(h.index + 1), r = Math.min(Math.max(h.x, 60), p - 60);
1400
+ return /* @__PURE__ */ d("div", {
1394
1401
  className: G.tooltip,
1395
1402
  style: h.y < 80 ? {
1396
- left: n,
1403
+ left: r,
1397
1404
  top: h.y + 12,
1398
1405
  transform: "translate(-50%, 0)"
1399
1406
  } : {
1400
- left: n,
1407
+ left: r,
1401
1408
  top: h.y - 8,
1402
1409
  transform: "translate(-50%, -100%)"
1403
1410
  },
1404
- children: [/* @__PURE__ */ c("div", {
1411
+ children: [/* @__PURE__ */ u("div", {
1405
1412
  className: G.tooltipLabel,
1406
- children: t
1407
- }), e.map((e, t) => /* @__PURE__ */ l("div", {
1413
+ children: n
1414
+ }), e.map((e, t) => /* @__PURE__ */ d("div", {
1408
1415
  className: G.tooltipRow,
1409
1416
  children: [
1410
- /* @__PURE__ */ c("span", {
1417
+ /* @__PURE__ */ u("span", {
1411
1418
  className: G.tooltipDot,
1412
- style: { background: e.color ?? Le }
1419
+ style: { background: e.color ?? Be }
1413
1420
  }),
1414
- /* @__PURE__ */ c("span", {
1421
+ /* @__PURE__ */ u("span", {
1415
1422
  className: G.tooltipName,
1416
1423
  children: e.label
1417
1424
  }),
1418
- /* @__PURE__ */ c("span", {
1425
+ /* @__PURE__ */ u("span", {
1419
1426
  className: G.tooltipValue,
1420
- children: Ve(e.data[h.index] ?? 0)
1427
+ children: We(e.data[h.index] ?? 0)
1421
1428
  })
1422
1429
  ]
1423
1430
  }, t))]
1424
1431
  });
1425
1432
  })() : null;
1426
- return /* @__PURE__ */ l("div", {
1427
- className: [G.wrapper, d].filter(Boolean).join(" "),
1428
- children: [/* @__PURE__ */ l("div", {
1433
+ return /* @__PURE__ */ d("div", {
1434
+ className: [G.wrapper, l].filter(Boolean).join(" "),
1435
+ children: [/* @__PURE__ */ d("div", {
1429
1436
  ref: f,
1430
1437
  className: G.chart,
1431
- style: { height: s },
1432
- children: [p > 0 && /* @__PURE__ */ l("svg", {
1438
+ style: { height: a },
1439
+ children: [p > 0 && /* @__PURE__ */ d("svg", {
1433
1440
  width: p,
1434
- height: s,
1441
+ height: a,
1435
1442
  className: G.svg,
1436
1443
  onMouseMove: D,
1437
1444
  onMouseLeave: O,
@@ -1439,19 +1446,19 @@ function He({ series: e, labels: r, type: i = "line", height: s = 200, showLegen
1439
1446
  k,
1440
1447
  A,
1441
1448
  j,
1442
- N,
1443
- i === "line" ? ee() : te(),
1444
- M()
1449
+ re,
1450
+ n === "line" ? ee() : te(),
1451
+ ne()
1445
1452
  ]
1446
- }), P]
1447
- }), u && e.length > 1 && /* @__PURE__ */ c("div", {
1453
+ }), M]
1454
+ }), o && e.length > 1 && /* @__PURE__ */ u("div", {
1448
1455
  className: G.legend,
1449
- children: e.map((e, t) => /* @__PURE__ */ l("div", {
1456
+ children: e.map((e, t) => /* @__PURE__ */ d("div", {
1450
1457
  className: G.legendItem,
1451
- children: [/* @__PURE__ */ c("div", {
1458
+ children: [/* @__PURE__ */ u("div", {
1452
1459
  className: G.legendMark,
1453
- style: { background: e.color ?? Le }
1454
- }), /* @__PURE__ */ c("span", {
1460
+ style: { background: e.color ?? Be }
1461
+ }), /* @__PURE__ */ u("span", {
1455
1462
  className: G.legendLabel,
1456
1463
  children: e.label
1457
1464
  })]
@@ -1468,28 +1475,28 @@ var J = {
1468
1475
  };
1469
1476
  //#endregion
1470
1477
  //#region src/components/Textarea/Textarea.tsx
1471
- function Ue({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1472
- let u = e.useId(), d = a || u, f = `${d}-error`, p = n || !i;
1473
- return /* @__PURE__ */ l("div", {
1478
+ function Ke({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1479
+ let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1480
+ return /* @__PURE__ */ d("div", {
1474
1481
  className: `${J.wrapper} ${r}`,
1475
1482
  children: [
1476
- t && /* @__PURE__ */ l("label", {
1477
- htmlFor: d,
1483
+ t && /* @__PURE__ */ d("label", {
1484
+ htmlFor: l,
1478
1485
  className: J.label,
1479
- children: [t, s.required && /* @__PURE__ */ c("span", {
1486
+ children: [t, s.required && /* @__PURE__ */ u("span", {
1480
1487
  "aria-label": "required",
1481
1488
  children: " *"
1482
1489
  })]
1483
1490
  }),
1484
- /* @__PURE__ */ c("textarea", {
1485
- id: d,
1491
+ /* @__PURE__ */ u("textarea", {
1492
+ id: l,
1486
1493
  rows: o,
1487
1494
  className: `${J.textarea} ${p ? J.error : ""}`,
1488
1495
  "aria-invalid": p ? "true" : "false",
1489
1496
  "aria-describedby": n ? f : void 0,
1490
1497
  ...s
1491
1498
  }),
1492
- n && /* @__PURE__ */ c("span", {
1499
+ n && /* @__PURE__ */ u("span", {
1493
1500
  id: f,
1494
1501
  className: J.errorText,
1495
1502
  role: "alert",
@@ -1505,27 +1512,27 @@ var Y = {
1505
1512
  description: "_description_xud7c_34",
1506
1513
  close: "_close_xud7c_40",
1507
1514
  srOnly: "_srOnly_xud7c_62"
1508
- }, We = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ l(O.Root, {
1515
+ }, qe = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1509
1516
  open: n,
1510
1517
  onOpenChange: r,
1511
- children: [e && /* @__PURE__ */ c(O.Trigger, {
1518
+ children: [e && /* @__PURE__ */ u(A.Trigger, {
1512
1519
  asChild: !0,
1513
1520
  children: e
1514
- }), /* @__PURE__ */ l(O.Portal, { children: [/* @__PURE__ */ c(O.Overlay, { className: Y.overlay }), /* @__PURE__ */ l(O.Content, {
1521
+ }), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: Y.overlay }), /* @__PURE__ */ d(A.Content, {
1515
1522
  className: `${Y.content} ${o}`,
1516
1523
  children: [
1517
- /* @__PURE__ */ c(O.Title, {
1524
+ /* @__PURE__ */ u(A.Title, {
1518
1525
  className: i ? Y.title : Y.srOnly,
1519
1526
  children: i || "Dialog"
1520
1527
  }),
1521
- a && /* @__PURE__ */ c(O.Description, {
1528
+ a && /* @__PURE__ */ u(A.Description, {
1522
1529
  className: Y.description,
1523
1530
  children: a
1524
1531
  }),
1525
- s && /* @__PURE__ */ c(O.Close, {
1532
+ s && /* @__PURE__ */ u(A.Close, {
1526
1533
  className: Y.close,
1527
1534
  "aria-label": "Close",
1528
- children: /* @__PURE__ */ c(C, {
1535
+ children: /* @__PURE__ */ u(T, {
1529
1536
  size: 16,
1530
1537
  color: "currentColor"
1531
1538
  })
@@ -1552,7 +1559,7 @@ var Y = {
1552
1559
  today: "_today_aimna_131",
1553
1560
  selected: "_selected_aimna_136",
1554
1561
  errorText: "_errorText_aimna_142"
1555
- }, Ge = [
1562
+ }, Je = [
1556
1563
  "Mo",
1557
1564
  "Tu",
1558
1565
  "We",
@@ -1560,7 +1567,7 @@ var Y = {
1560
1567
  "Fr",
1561
1568
  "Sa",
1562
1569
  "Su"
1563
- ], Ke = [
1570
+ ], Ye = [
1564
1571
  "January",
1565
1572
  "February",
1566
1573
  "March",
@@ -1578,25 +1585,25 @@ function Z(e) {
1578
1585
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1579
1586
  return `${e.getFullYear()}-${t}-${n}`;
1580
1587
  }
1581
- function qe(e, t) {
1588
+ function Xe(e, t) {
1582
1589
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1583
1590
  }
1584
- function Je(e, t) {
1591
+ function Ze(e, t) {
1585
1592
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1586
1593
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1587
1594
  return r;
1588
1595
  }
1589
- var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: s = !0, disabled: u = !1, className: d = "", formatDate: f = Z }) => {
1590
- let g = e.useId(), _ = `${g}-error`, v = !!a || !s, [y, b] = o(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = o(S.getFullYear()), [T, D] = o(S.getMonth()), [O, k] = o(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), ee = (e) => {
1596
+ var Qe = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: l = "", formatDate: f = Z }) => {
1597
+ 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) => {
1591
1598
  if (e) {
1592
1599
  let e = t ?? /* @__PURE__ */ new Date();
1593
- k(e), w(e.getFullYear()), D(e.getMonth());
1600
+ k(e), w(e.getFullYear()), E(e.getMonth());
1594
1601
  }
1595
1602
  b(e);
1596
1603
  };
1597
1604
  e.useEffect(() => {
1598
- j.current &&= (A.current.get(Z(O))?.focus(), !1);
1599
- }, [O]);
1605
+ j.current &&= (A.current.get(Z(D))?.focus(), !1);
1606
+ }, [D]);
1600
1607
  let te = (e, t) => {
1601
1608
  let n = new Date(t), r = {
1602
1609
  ArrowLeft: -1,
@@ -1611,101 +1618,101 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1611
1618
  let t = n.getDate();
1612
1619
  n.setDate(1), n.setMonth(n.getMonth() + (e.key === "PageUp" ? -1 : 1) * (e.shiftKey ? 12 : 1)), n.setDate(Math.min(t, new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate()));
1613
1620
  } else return;
1614
- e.preventDefault(), j.current = !0, k(n), w(n.getFullYear()), D(n.getMonth());
1621
+ e.preventDefault(), j.current = !0, k(n), w(n.getFullYear()), E(n.getMonth());
1615
1622
  };
1616
1623
  e.useEffect(() => {
1617
- y && t && (w(t.getFullYear()), D(t.getMonth()));
1624
+ y && t && (w(t.getFullYear()), E(t.getMonth()));
1618
1625
  }, [y]);
1619
- let M = () => {
1620
- T === 0 ? (D(11), w(C - 1)) : D(T - 1);
1621
- }, N = () => {
1622
- T === 11 ? (D(0), w(C + 1)) : D(T + 1);
1623
- }, P = (e) => {
1626
+ let ne = () => {
1627
+ T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1628
+ }, re = () => {
1629
+ T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1630
+ }, M = (e) => {
1624
1631
  n?.(e), b(!1);
1625
- }, ne = Je(C, T);
1626
- return /* @__PURE__ */ l("div", {
1627
- className: `${X.wrapper} ${d}`,
1632
+ }, N = Ze(C, T);
1633
+ return /* @__PURE__ */ d("div", {
1634
+ className: `${X.wrapper} ${l}`,
1628
1635
  children: [
1629
- r && /* @__PURE__ */ c("span", {
1630
- id: `${g}-label`,
1636
+ r && /* @__PURE__ */ u("span", {
1637
+ id: `${p}-label`,
1631
1638
  className: X.label,
1632
1639
  children: r
1633
1640
  }),
1634
- /* @__PURE__ */ l(E.Root, {
1641
+ /* @__PURE__ */ d(O.Root, {
1635
1642
  open: y,
1636
1643
  onOpenChange: ee,
1637
- children: [/* @__PURE__ */ c(E.Trigger, {
1644
+ children: [/* @__PURE__ */ u(O.Trigger, {
1638
1645
  asChild: !0,
1639
- children: /* @__PURE__ */ l("button", {
1646
+ children: /* @__PURE__ */ d("button", {
1640
1647
  type: "button",
1641
1648
  className: `${X.trigger} ${v ? X.error : ""}`,
1642
- disabled: u,
1643
- "aria-labelledby": r ? `${g}-label ${g}-value` : void 0,
1649
+ disabled: s,
1650
+ "aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
1644
1651
  "aria-invalid": v ? "true" : "false",
1645
- "aria-describedby": a ? _ : void 0,
1646
- children: [/* @__PURE__ */ c("span", {
1647
- id: `${g}-value`,
1652
+ "aria-describedby": a ? m : void 0,
1653
+ children: [/* @__PURE__ */ u("span", {
1654
+ id: `${p}-value`,
1648
1655
  className: t ? X.valueText : X.placeholder,
1649
1656
  children: t ? f(t) : i
1650
- }), /* @__PURE__ */ c(p, {
1657
+ }), /* @__PURE__ */ u(h, {
1651
1658
  size: 14,
1652
1659
  color: "currentColor"
1653
1660
  })]
1654
1661
  })
1655
- }), /* @__PURE__ */ c(E.Portal, { children: /* @__PURE__ */ l(E.Content, {
1662
+ }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
1656
1663
  className: X.calendar,
1657
1664
  align: "start",
1658
1665
  sideOffset: 5,
1659
1666
  "aria-label": r ? `${r} calendar` : "Choose a date",
1660
1667
  onOpenAutoFocus: (e) => {
1661
- e.preventDefault(), A.current.get(Z(O))?.focus();
1668
+ e.preventDefault(), A.current.get(Z(D))?.focus();
1662
1669
  },
1663
1670
  children: [
1664
- /* @__PURE__ */ l("div", {
1671
+ /* @__PURE__ */ d("div", {
1665
1672
  className: X.header,
1666
1673
  children: [
1667
- /* @__PURE__ */ c("button", {
1674
+ /* @__PURE__ */ u("button", {
1668
1675
  type: "button",
1669
1676
  className: X.navButton,
1670
- onClick: M,
1677
+ onClick: ne,
1671
1678
  "aria-label": "Previous month",
1672
- children: /* @__PURE__ */ c(m, {
1679
+ children: /* @__PURE__ */ u(g, {
1673
1680
  size: 14,
1674
1681
  color: "currentColor"
1675
1682
  })
1676
1683
  }),
1677
- /* @__PURE__ */ l("span", {
1684
+ /* @__PURE__ */ d("span", {
1678
1685
  className: X.monthLabel,
1679
1686
  children: [
1680
- Ke[T],
1687
+ Ye[T],
1681
1688
  " ",
1682
1689
  C
1683
1690
  ]
1684
1691
  }),
1685
- /* @__PURE__ */ c("button", {
1692
+ /* @__PURE__ */ u("button", {
1686
1693
  type: "button",
1687
1694
  className: X.navButton,
1688
- onClick: N,
1695
+ onClick: re,
1689
1696
  "aria-label": "Next month",
1690
- children: /* @__PURE__ */ c(h, {
1697
+ children: /* @__PURE__ */ u(_, {
1691
1698
  size: 14,
1692
1699
  color: "currentColor"
1693
1700
  })
1694
1701
  })
1695
1702
  ]
1696
1703
  }),
1697
- /* @__PURE__ */ c("div", {
1704
+ /* @__PURE__ */ u("div", {
1698
1705
  className: X.weekdays,
1699
- children: Ge.map((e) => /* @__PURE__ */ c("span", {
1706
+ children: Je.map((e) => /* @__PURE__ */ u("span", {
1700
1707
  className: X.weekday,
1701
1708
  children: e
1702
1709
  }, e))
1703
1710
  }),
1704
- /* @__PURE__ */ c("div", {
1711
+ /* @__PURE__ */ u("div", {
1705
1712
  className: X.grid,
1706
- children: ne.map((e) => {
1707
- let n = e.getMonth() !== T, r = qe(e, t), i = qe(e, x);
1708
- return /* @__PURE__ */ c("button", {
1713
+ children: N.map((e) => {
1714
+ let n = e.getMonth() !== T, r = Xe(e, t), i = Xe(e, x);
1715
+ return /* @__PURE__ */ u("button", {
1709
1716
  type: "button",
1710
1717
  className: [
1711
1718
  X.day,
@@ -1713,7 +1720,7 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1713
1720
  r ? X.selected : "",
1714
1721
  i && !r ? X.today : ""
1715
1722
  ].filter(Boolean).join(" "),
1716
- onClick: () => P(e),
1723
+ onClick: () => M(e),
1717
1724
  ref: (t) => {
1718
1725
  t ? A.current.set(Z(e), t) : A.current.delete(Z(e));
1719
1726
  },
@@ -1725,7 +1732,7 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1725
1732
  }),
1726
1733
  "aria-pressed": r,
1727
1734
  "aria-current": i ? "date" : void 0,
1728
- tabIndex: qe(e, O) || O.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1735
+ tabIndex: Xe(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1729
1736
  onKeyDown: (t) => te(t, e),
1730
1737
  children: e.getDate()
1731
1738
  }, e.toISOString());
@@ -1734,8 +1741,8 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1734
1741
  ]
1735
1742
  }) })]
1736
1743
  }),
1737
- a && /* @__PURE__ */ c("span", {
1738
- id: _,
1744
+ a && /* @__PURE__ */ u("span", {
1745
+ id: m,
1739
1746
  className: X.errorText,
1740
1747
  role: "alert",
1741
1748
  children: a
@@ -1754,29 +1761,29 @@ var Ye = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1754
1761
  viewportPosition: "_viewportPosition_bfuyc_49",
1755
1762
  viewport: "_viewport_bfuyc_49",
1756
1763
  content: "_content_bfuyc_73"
1757
- }, Xe = e.forwardRef(({ size: e = "default", className: t = "", children: n, "aria-label": r = "Main navigation", ...i }, a) => /* @__PURE__ */ l(k.Root, {
1764
+ }, $e = e.forwardRef(({ size: e = "default", className: t = "", children: n, "aria-label": r = "Main navigation", ...i }, a) => /* @__PURE__ */ d(j.Root, {
1758
1765
  ...i,
1759
1766
  ref: a,
1760
1767
  "aria-label": r,
1761
1768
  className: `${Q.root} ${Q[e]} ${t}`,
1762
- children: [n, /* @__PURE__ */ c("div", {
1769
+ children: [n, /* @__PURE__ */ u("div", {
1763
1770
  className: Q.viewportPosition,
1764
- children: /* @__PURE__ */ c(k.Viewport, { className: Q.viewport })
1771
+ children: /* @__PURE__ */ u(j.Viewport, { className: Q.viewport })
1765
1772
  })]
1766
1773
  }));
1767
- Xe.displayName = "NavigationMenu";
1768
- var Ze = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ c(k.List, {
1774
+ $e.displayName = "NavigationMenu";
1775
+ var et = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
1769
1776
  ...t,
1770
1777
  ref: n,
1771
1778
  className: `${Q.list} ${e}`
1772
1779
  }));
1773
- Ze.displayName = "NavigationMenuList";
1774
- var Qe = k.Item, $e = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => /* @__PURE__ */ l(k.Trigger, {
1780
+ et.displayName = "NavigationMenuList";
1781
+ var tt = j.Item, nt = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => /* @__PURE__ */ d(j.Trigger, {
1775
1782
  ...i,
1776
1783
  ref: a,
1777
1784
  className: `${Q.control} ${t}`,
1778
1785
  children: [
1779
- n && /* @__PURE__ */ c("span", {
1786
+ n && /* @__PURE__ */ u("span", {
1780
1787
  className: Q.icon,
1781
1788
  "aria-hidden": "true",
1782
1789
  children: e.cloneElement(n, {
@@ -1785,29 +1792,29 @@ var Qe = k.Item, $e = e.forwardRef(({ className: t = "", icon: n, children: r, .
1785
1792
  })
1786
1793
  }),
1787
1794
  r,
1788
- /* @__PURE__ */ c("span", {
1795
+ /* @__PURE__ */ u("span", {
1789
1796
  className: Q.caret,
1790
1797
  "aria-hidden": "true",
1791
- children: /* @__PURE__ */ c(p, {
1798
+ children: /* @__PURE__ */ u(h, {
1792
1799
  size: 14,
1793
1800
  color: "currentColor"
1794
1801
  })
1795
1802
  })
1796
1803
  ]
1797
1804
  }));
1798
- $e.displayName = "NavigationMenuTrigger";
1799
- var et = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ c(k.Content, {
1805
+ nt.displayName = "NavigationMenuTrigger";
1806
+ var rt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
1800
1807
  ...t,
1801
1808
  ref: n,
1802
1809
  className: `${Q.content} ${e}`
1803
1810
  }));
1804
- et.displayName = "NavigationMenuContent";
1805
- var tt = e.forwardRef(({ variant: e = "panel", className: t = "", ...n }, r) => /* @__PURE__ */ c(k.Link, {
1811
+ rt.displayName = "NavigationMenuContent";
1812
+ var it = e.forwardRef(({ variant: e = "panel", className: t = "", ...n }, r) => /* @__PURE__ */ u(j.Link, {
1806
1813
  ...n,
1807
1814
  ref: r,
1808
1815
  className: `${e === "navigation" ? Q.control : Q.link} ${t}`
1809
1816
  }));
1810
- tt.displayName = "NavigationMenuLink";
1817
+ it.displayName = "NavigationMenuLink";
1811
1818
  var $ = {
1812
1819
  panel: "_panel_1hiss_6",
1813
1820
  header: "_header_1hiss_14",
@@ -1839,38 +1846,38 @@ var $ = {
1839
1846
  };
1840
1847
  //#endregion
1841
1848
  //#region src/components/Chat/ChatPanel.tsx
1842
- function nt({ children: e }) {
1843
- return /* @__PURE__ */ c("kbd", {
1849
+ function at({ children: e }) {
1850
+ return /* @__PURE__ */ u("kbd", {
1844
1851
  className: $.kbd,
1845
1852
  children: e
1846
1853
  });
1847
1854
  }
1848
- var rt = /* @__PURE__ */ l(s, { children: [
1849
- /* @__PURE__ */ l("span", { children: [/* @__PURE__ */ c(nt, { children: "↵" }), " send"] }),
1850
- /* @__PURE__ */ l("span", { children: [/* @__PURE__ */ c(nt, { children: "⇧↵" }), " new line"] }),
1851
- /* @__PURE__ */ l("span", { children: [/* @__PURE__ */ c(nt, { children: "esc" }), " close"] })
1855
+ var ot = /* @__PURE__ */ d(l, { children: [
1856
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(at, { children: "↵" }), " send"] }),
1857
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(at, { children: "⇧↵" }), " new line"] }),
1858
+ /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(at, { children: "esc" }), " close"] })
1852
1859
  ] });
1853
- function it({ header: e, children: t, composer: n, hints: r = rt, className: i = "", threadRef: a, "aria-label": o }) {
1854
- return /* @__PURE__ */ l("div", {
1860
+ function st({ header: e, children: t, composer: n, hints: r = ot, className: i = "", threadRef: a, "aria-label": o }) {
1861
+ return /* @__PURE__ */ d("div", {
1855
1862
  className: `${$.panel} ${i}`,
1856
1863
  "aria-label": o,
1857
1864
  children: [
1858
- e && /* @__PURE__ */ c("div", {
1865
+ e && /* @__PURE__ */ u("div", {
1859
1866
  className: $.header,
1860
1867
  children: e
1861
1868
  }),
1862
- /* @__PURE__ */ c("div", {
1869
+ /* @__PURE__ */ u("div", {
1863
1870
  className: $.thread,
1864
1871
  ref: a,
1865
1872
  role: "log",
1866
1873
  "aria-live": "polite",
1867
1874
  children: t
1868
1875
  }),
1869
- n && /* @__PURE__ */ c("div", {
1876
+ n && /* @__PURE__ */ u("div", {
1870
1877
  className: $.footer,
1871
1878
  children: n
1872
1879
  }),
1873
- r !== !1 && r && /* @__PURE__ */ c("div", {
1880
+ r !== !1 && r && /* @__PURE__ */ u("div", {
1874
1881
  className: $.hints,
1875
1882
  children: r
1876
1883
  })
@@ -1879,25 +1886,25 @@ function it({ header: e, children: t, composer: n, hints: r = rt, className: i =
1879
1886
  }
1880
1887
  //#endregion
1881
1888
  //#region src/components/Chat/Message.tsx
1882
- function at({ children: e, className: t = "" }) {
1883
- return /* @__PURE__ */ c("div", {
1889
+ function ct({ children: e, className: t = "" }) {
1890
+ return /* @__PURE__ */ u("div", {
1884
1891
  className: $.userRow,
1885
- children: /* @__PURE__ */ c("div", {
1892
+ children: /* @__PURE__ */ u("div", {
1886
1893
  className: `${$.userMsg} ${t}`,
1887
1894
  children: e
1888
1895
  })
1889
1896
  });
1890
1897
  }
1891
- function ot({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
1892
- return /* @__PURE__ */ l("div", {
1898
+ function lt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
1899
+ return /* @__PURE__ */ d("div", {
1893
1900
  className: `${$.assistant} ${r}`,
1894
- children: [/* @__PURE__ */ l("div", {
1901
+ children: [/* @__PURE__ */ d("div", {
1895
1902
  className: $.assistantHead,
1896
- children: [t === void 0 ? /* @__PURE__ */ c(u, {
1903
+ children: [t === void 0 ? /* @__PURE__ */ u(f, {
1897
1904
  color: "currentColor",
1898
1905
  size: 14
1899
- }) : t, /* @__PURE__ */ c("span", { children: e })]
1900
- }), /* @__PURE__ */ c("div", {
1906
+ }) : t, /* @__PURE__ */ u("span", { children: e })]
1907
+ }), /* @__PURE__ */ u("div", {
1901
1908
  className: $.assistantBody,
1902
1909
  children: n
1903
1910
  })]
@@ -1905,61 +1912,61 @@ function ot({ label: e = "Assistant", icon: t, children: n, className: r = "" })
1905
1912
  }
1906
1913
  //#endregion
1907
1914
  //#region src/components/Chat/Composer.tsx
1908
- var st = 18, ct = e.forwardRef(function({ value: e, onChange: r, onSend: o, onStop: s, streaming: f = !1, placeholder: p = "Ask a question…", disabled: m = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, className: v = "", "aria-label": y = "Message" }, b) {
1909
- let S = a(null);
1910
- i(b, () => ({ focus: () => S.current?.focus() }), []), n(() => {
1911
- let e = S.current;
1915
+ var ut = 18, dt = 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) {
1916
+ let x = s(null);
1917
+ o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
1918
+ let e = x.current;
1912
1919
  if (!e) return;
1913
1920
  e.style.height = "auto";
1914
- let t = st * _ + 12;
1921
+ let t = ut * _ + 12;
1915
1922
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
1916
1923
  }, [e, _]);
1917
- let C = !f && !m && e.trim().length > 0, w = t(() => {
1918
- C && o(e.trim());
1924
+ let S = !c && !m && e.trim().length > 0, w = r(() => {
1925
+ S && n(e.trim());
1919
1926
  }, [
1920
- C,
1921
- o,
1927
+ S,
1928
+ n,
1922
1929
  e
1923
1930
  ]);
1924
- return /* @__PURE__ */ l("div", {
1931
+ return /* @__PURE__ */ d("div", {
1925
1932
  className: `${$.composer} ${v}`,
1926
- children: [/* @__PURE__ */ l("div", {
1933
+ children: [/* @__PURE__ */ d("div", {
1927
1934
  className: $.composerField,
1928
- children: [g !== null && /* @__PURE__ */ c("span", {
1935
+ children: [g !== null && /* @__PURE__ */ u("span", {
1929
1936
  className: $.composerIcon,
1930
1937
  "aria-hidden": "true",
1931
- children: g === void 0 ? /* @__PURE__ */ c(u, {
1938
+ children: g === void 0 ? /* @__PURE__ */ u(f, {
1932
1939
  color: "currentColor",
1933
1940
  size: 21
1934
1941
  }) : g
1935
- }), /* @__PURE__ */ c("textarea", {
1936
- ref: S,
1942
+ }), /* @__PURE__ */ u("textarea", {
1943
+ ref: x,
1937
1944
  className: $.composerInput,
1938
1945
  rows: 1,
1939
1946
  value: e,
1940
- placeholder: p,
1947
+ placeholder: l,
1941
1948
  disabled: m,
1942
1949
  autoFocus: h,
1943
1950
  "aria-label": y,
1944
- onChange: (e) => r(e.target.value),
1951
+ onChange: (e) => t(e.target.value),
1945
1952
  onKeyDown: (e) => {
1946
1953
  e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), w());
1947
1954
  }
1948
1955
  })]
1949
- }), /* @__PURE__ */ c("div", {
1956
+ }), /* @__PURE__ */ u("div", {
1950
1957
  className: $.composerButton,
1951
- children: f ? /* @__PURE__ */ c(N, {
1958
+ children: c ? /* @__PURE__ */ u(N, {
1952
1959
  variant: "secondary",
1953
1960
  size: "micro",
1954
1961
  "aria-label": "Stop",
1955
- iconLeft: /* @__PURE__ */ c(x, {}),
1956
- onClick: s
1957
- }) : /* @__PURE__ */ c(N, {
1962
+ iconLeft: /* @__PURE__ */ u(C, {}),
1963
+ onClick: a
1964
+ }) : /* @__PURE__ */ u(N, {
1958
1965
  variant: "primary",
1959
1966
  size: "micro",
1960
1967
  "aria-label": "Send",
1961
- iconLeft: /* @__PURE__ */ c(d, {}),
1962
- disabled: !C,
1968
+ iconLeft: /* @__PURE__ */ u(p, {}),
1969
+ disabled: !S,
1963
1970
  onClick: w
1964
1971
  })
1965
1972
  })]
@@ -1967,16 +1974,16 @@ var st = 18, ct = e.forwardRef(function({ value: e, onChange: r, onSend: o, onSt
1967
1974
  });
1968
1975
  //#endregion
1969
1976
  //#region src/components/Chat/Citation.tsx
1970
- function lt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
1977
+ function ft({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
1971
1978
  let a = `${$.ref} ${i}`;
1972
- return t ? /* @__PURE__ */ c("a", {
1979
+ return t ? /* @__PURE__ */ u("a", {
1973
1980
  href: t,
1974
1981
  className: a,
1975
1982
  onClick: n,
1976
1983
  title: r,
1977
1984
  "aria-label": `Source ${e}${r ? `: ${r}` : ""}`,
1978
1985
  children: e
1979
- }) : /* @__PURE__ */ c("button", {
1986
+ }) : /* @__PURE__ */ u("button", {
1980
1987
  type: "button",
1981
1988
  className: a,
1982
1989
  onClick: n,
@@ -1985,19 +1992,19 @@ function lt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
1985
1992
  children: e
1986
1993
  });
1987
1994
  }
1988
- function ut({ items: e, label: t = "Sources", className: n = "" }) {
1989
- return e.length === 0 ? null : /* @__PURE__ */ l("div", {
1995
+ function pt({ items: e, label: t = "Sources", className: n = "" }) {
1996
+ return e.length === 0 ? null : /* @__PURE__ */ d("div", {
1990
1997
  className: `${$.stack} ${n}`,
1991
- children: [/* @__PURE__ */ c("div", {
1998
+ children: [/* @__PURE__ */ u("div", {
1992
1999
  className: $.label,
1993
2000
  children: t
1994
- }), /* @__PURE__ */ c("div", {
2001
+ }), /* @__PURE__ */ u("div", {
1995
2002
  className: $.wrap,
1996
2003
  children: e.map((e) => {
1997
- let t = /* @__PURE__ */ l(ke, {
2004
+ let t = /* @__PURE__ */ d(Me, {
1998
2005
  icon: e.icon,
1999
2006
  children: [
2000
- /* @__PURE__ */ c("span", {
2007
+ /* @__PURE__ */ u("span", {
2001
2008
  className: $.citationNumber,
2002
2009
  children: e.n
2003
2010
  }),
@@ -2005,12 +2012,12 @@ function ut({ items: e, label: t = "Sources", className: n = "" }) {
2005
2012
  e.title
2006
2013
  ]
2007
2014
  });
2008
- return e.href ? /* @__PURE__ */ c("a", {
2015
+ return e.href ? /* @__PURE__ */ u("a", {
2009
2016
  href: e.href,
2010
2017
  className: $.citationLink,
2011
2018
  onClick: e.onClick,
2012
2019
  children: t
2013
- }, e.n) : /* @__PURE__ */ c("button", {
2020
+ }, e.n) : /* @__PURE__ */ u("button", {
2014
2021
  type: "button",
2015
2022
  className: $.citationLink,
2016
2023
  onClick: e.onClick,
@@ -2022,27 +2029,27 @@ function ut({ items: e, label: t = "Sources", className: n = "" }) {
2022
2029
  }
2023
2030
  //#endregion
2024
2031
  //#region src/components/Chat/StreamStatus.tsx
2025
- function dt({ children: e, className: t = "" }) {
2026
- return /* @__PURE__ */ l("div", {
2032
+ function mt({ children: e, className: t = "" }) {
2033
+ return /* @__PURE__ */ d("div", {
2027
2034
  className: `${$.status} ${t}`,
2028
2035
  role: "status",
2029
- children: [/* @__PURE__ */ c("span", {
2036
+ children: [/* @__PURE__ */ u("span", {
2030
2037
  className: $.statusSpinner,
2031
- children: /* @__PURE__ */ c(M, { size: 14 })
2032
- }), /* @__PURE__ */ c("span", { children: e })]
2038
+ children: /* @__PURE__ */ u(M, { size: 14 })
2039
+ }), /* @__PURE__ */ u("span", { children: e })]
2033
2040
  });
2034
2041
  }
2035
2042
  //#endregion
2036
2043
  //#region src/components/Chat/Suggestions.tsx
2037
- function ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2038
- return /* @__PURE__ */ l("div", {
2044
+ function ht({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2045
+ return /* @__PURE__ */ d("div", {
2039
2046
  className: `${$.suggestions} ${r}`,
2040
- children: [/* @__PURE__ */ c("div", {
2047
+ children: [/* @__PURE__ */ u("div", {
2041
2048
  className: $.label,
2042
2049
  children: n
2043
- }), /* @__PURE__ */ c("div", {
2050
+ }), /* @__PURE__ */ u("div", {
2044
2051
  className: $.wrap,
2045
- children: e.map((e) => /* @__PURE__ */ c(N, {
2052
+ children: e.map((e) => /* @__PURE__ */ u(N, {
2046
2053
  variant: "secondary",
2047
2054
  size: "micro",
2048
2055
  onClick: () => t(e),
@@ -2053,22 +2060,22 @@ function ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2053
2060
  }
2054
2061
  //#endregion
2055
2062
  //#region src/components/Chat/AnswerActions.tsx
2056
- function pt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2057
- return /* @__PURE__ */ l("div", {
2063
+ function gt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2064
+ return /* @__PURE__ */ d("div", {
2058
2065
  className: `${$.actions} ${i}`,
2059
2066
  children: [
2060
- e && /* @__PURE__ */ c(N, {
2067
+ e && /* @__PURE__ */ u(N, {
2061
2068
  variant: "ghost",
2062
2069
  size: "micro",
2063
- iconLeft: c(t ? f : g, {}),
2070
+ iconLeft: u(t ? m : v, {}),
2064
2071
  onClick: e,
2065
2072
  children: t ? "Copied" : "Copy"
2066
2073
  }),
2067
- /* @__PURE__ */ c("span", { className: $.actionsSpacer }),
2068
- n && /* @__PURE__ */ c(N, {
2074
+ /* @__PURE__ */ u("span", { className: $.actionsSpacer }),
2075
+ n && /* @__PURE__ */ u(N, {
2069
2076
  variant: "ghost",
2070
2077
  size: "micro",
2071
- iconRight: /* @__PURE__ */ c(h, {}),
2078
+ iconRight: /* @__PURE__ */ u(_, {}),
2072
2079
  onClick: n,
2073
2080
  children: r
2074
2081
  })
@@ -2076,4 +2083,4 @@ function pt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask
2076
2083
  });
2077
2084
  }
2078
2085
  //#endregion
2079
- export { Me as Alert, Pe as AlertDescription, Ne as AlertTitle, pt as AnswerActions, ot as AssistantMessage, ie as Base, Te as Breadcrumbs, N as Button, He as Chart, it as ChatPanel, ne as Checkbox, ke as Chip, ut as CitationList, lt as CitationRef, ct as Composer, Ye as DatePicker, ae as FilterPanelBase, ce as InputField, nt as Kbd, We as Modal, Xe as NavigationMenu, et as NavigationMenuContent, Qe as NavigationMenuItem, tt as NavigationMenuLink, Ze as NavigationMenuList, $e as NavigationMenuTrigger, he as Popover, De as ProgressBar, le as RadioButton, se as SearchField, pe as Select, fe as Slider, M as Spinner, dt as StreamStatus, ft as Suggestions, ge as Table, ye as TableCell, _e as TableHeader, xe as TableIcon, ve as TableRow, be as TableValue, Se as Tabs, Ue as Textarea, de as ToggleSwitch, Ie as Tooltip, at as UserMessage, rt as defaultChatHints, te as spinnerNames };
2086
+ export { Fe as Alert, Le as AlertDescription, Ie as AlertTitle, gt as AnswerActions, lt as AssistantMessage, oe as Base, Oe as Breadcrumbs, N as Button, Ge as Chart, st as ChatPanel, ie as Checkbox, Me as Chip, pt as CitationList, ft as CitationRef, dt as Composer, Qe as DatePicker, se as FilterPanelBase, ue as InputField, at as Kbd, qe as Modal, $e as NavigationMenu, rt as NavigationMenuContent, tt as NavigationMenuItem, it as NavigationMenuLink, et as NavigationMenuList, nt as NavigationMenuTrigger, _e as Popover, Ae as ProgressBar, de as RadioButton, le as SearchField, he as Select, me as Slider, M as Spinner, mt as StreamStatus, ht as Suggestions, ve as Table, xe as TableCell, ye as TableHeader, Ce as TableIcon, be as TableRow, Se as TableValue, Te as Tabs, Ke as Textarea, pe as ToggleSwitch, ze as Tooltip, ct as UserMessage, ot as defaultChatHints, re as spinnerNames };