@indxsearch/systm 2.19.0 → 2.21.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,24 +1,24 @@
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
- button: "_button_15lsu_1",
12
- micro: "_micro_15lsu_29",
13
- default: "_default_15lsu_37",
14
- large: "_large_15lsu_45",
15
- primary: "_primary_15lsu_54",
16
- secondary: "_secondary_15lsu_64",
17
- ghost: "_ghost_15lsu_74"
18
- }, te = {
1
+ import e, { cloneElement as t, isValidElement as n, useCallback as r, useEffect as i, useId as a, useImperativeHandle as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
2
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
3
+ import { Ai_agent as p, ArrowUp as m, Check as h, Chevron_down as g, Chevron_left as _, Chevron_right as v, Copy as y, Dropdown as b, Minus as x, Plus as S, Search as C, Stop as w, Warning as T, X_or_error as E } from "@indxsearch/pixl";
4
+ import { Range as D } from "react-range";
5
+ import * as O from "@radix-ui/react-select";
6
+ import * as k from "@radix-ui/react-popover";
7
+ import * as A from "@radix-ui/react-tooltip";
8
+ import * as j from "@radix-ui/react-dialog";
9
+ import * as M from "@radix-ui/react-navigation-menu";
10
+ var N = {
11
+ button: "_button_18zbf_1",
12
+ micro: "_micro_18zbf_32",
13
+ default: "_default_18zbf_40",
14
+ large: "_large_18zbf_48",
15
+ primary: "_primary_18zbf_57",
16
+ secondary: "_secondary_18zbf_66",
17
+ ghost: "_ghost_18zbf_76"
18
+ }, P = {
19
19
  spinner: "_spinner_wspyi_1",
20
20
  frame: "_frame_wspyi_8"
21
- }, ne = {
21
+ }, ee = {
22
22
  accelerate: {
23
23
  viewBox: "0 0 7 5",
24
24
  delay: 50,
@@ -64,17 +64,26 @@ var ee = {
64
64
  ]
65
65
  },
66
66
  analytics: {
67
- viewBox: "0 0 8 5",
67
+ viewBox: "0 0 7 5",
68
68
  delay: 250,
69
69
  frames: [
70
70
  "M0 2H1V5H0V2Z M2 0H3V5H2V0Z M4 3H5V5H4V3Z M6 1H7V5H6V1Z",
71
- "M7 2H8V5H7V2Z M1 0H2V5H1V0Z M3 3H4V5H3V3Z M5 1H6V5H5V1Z",
71
+ "M1 0H2V5H1V0Z M3 3H4V5H3V3Z M5 1H6V5H5V1Z",
72
72
  "M6 2H7V5H6V2Z M0 0H1V5H0V0Z M2 3H3V5H2V3Z M4 1H5V5H4V1Z",
73
- "M5 2H6V5H5V2Z M7 0H8V5H7V0Z M1 3H2V5H1V3Z M3 1H4V5H3V1Z",
73
+ "M5 2H6V5H5V2Z M1 3H2V5H1V3Z M3 1H4V5H3V1Z",
74
74
  "M4 2H5V5H4V2Z M6 0H7V5H6V0Z M0 3H1V5H0V3Z M2 1H3V5H2V1Z",
75
- "M3 2H4V5H3V2Z M5 0H6V5H5V0Z M7 3H8V5H7V3Z M1 1H2V5H1V1Z",
75
+ "M3 2H4V5H3V2Z M5 0H6V5H5V0Z M1 1H2V5H1V1Z",
76
76
  "M2 2H3V5H2V2Z M4 0H5V5H4V0Z M6 3H7V5H6V3Z M0 1H1V5H0V1Z",
77
- "M1 2H2V5H1V2Z M3 0H4V5H3V0Z M5 3H6V5H5V3Z M7 1H8V5H7V1Z"
77
+ "M1 2H2V5H1V2Z M3 0H4V5H3V0Z M5 3H6V5H5V3Z"
78
+ ]
79
+ },
80
+ "blinking-cursor": {
81
+ viewBox: "0 0 7 5",
82
+ delay: 350,
83
+ frames: [
84
+ "M2 0H3V1H2V0Z M4 0H5V1H4V0Z M3 1H4V4H3V1Z M2 4H3V5H2V4Z M4 4H5V5H4V4Z",
85
+ "M2 0H3V1H2V0Z M4 0H5V1H4V0Z M3 1H4V4H3V1Z M2 4H3V5H2V4Z M4 4H5V5H4V4Z",
86
+ ""
78
87
  ]
79
88
  },
80
89
  "circle-open-close": {
@@ -215,6 +224,29 @@ var ee = {
215
224
  "M4 2H7V5H1V4H6V3H1V4H0V2H3V0H4V2Z"
216
225
  ]
217
226
  },
227
+ "search-as-you-type": {
228
+ viewBox: "0 0 7 5",
229
+ delay: 350,
230
+ frames: [
231
+ "M0 0H1V1H0V0Z M2 0H3V1H2V0Z M1 1H2V4H1V1Z M0 4H1V5H0V4Z M2 4H3V5H2V4Z",
232
+ "M2 0H3V1H2V0Z M4 0H5V1H4V0Z M3 1H4V4H3V1Z M0 2H1V3H0V2Z M2 4H3V5H2V4Z M4 4H5V5H4V4Z",
233
+ "M4 0H5V1H4V0Z M6 0H7V1H6V0Z M5 1H6V4H5V1Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 4H5V5H4V4Z M6 4H7V5H6V4Z"
234
+ ]
235
+ },
236
+ searching: {
237
+ viewBox: "0 0 7 5",
238
+ delay: 250,
239
+ frames: [
240
+ "M2 0H4V1H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 3H4V4H2V3Z M5 4H6V5H5V4Z",
241
+ "M2 0H4V1H2V0Z M1 1H3V2H1V1Z M4 1H5V3H4V1Z M1 2H2V3H1V2Z M2 3H4V4H2V3Z M5 4H6V5H5V4Z",
242
+ "M2 0H4V2H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 3H4V4H2V3Z M5 4H6V5H5V4Z",
243
+ "M2 0H4V2H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M3 2H4V4H3V2Z M2 3H3V4H2V3Z M5 4H6V5H5V4Z",
244
+ "M2 0H4V4H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M5 4H6V5H5V4Z",
245
+ "M2 0H4V1H2V0Z M1 1H2V3H1V1Z M3 1H5V3H3V1Z M2 2H3V4H2V2Z M3 3H4V4H3V3Z M5 4H6V5H5V4Z",
246
+ "M2 0H4V1H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 2H4V4H2V2Z M5 4H6V5H5V4Z",
247
+ "M2 0H4V1H2V0Z M1 1H2V3H1V1Z M4 1H5V3H4V1Z M2 2H3V4H2V2Z M3 3H4V4H3V3Z M5 4H6V5H5V4Z"
248
+ ]
249
+ },
218
250
  sliders: {
219
251
  viewBox: "0 0 7 5",
220
252
  delay: 250,
@@ -268,7 +300,35 @@ var ee = {
268
300
  terminal: {
269
301
  viewBox: "0 0 7 5",
270
302
  delay: 500,
271
- frames: ["M1 2H2V3H1V2Z M1 0H2V1H1V0Z M1 4H2V5H1V4Z M2 3H3V4H2V3Z M2 1H3V2H2V1Z M2 0H3V1H2V0Z M3 0H4V5H3V0Z M4 0H5V3H4V0Z M4 4H5V5H4V4Z M5 0H6V3H5V0Z M5 4H6V5H5V4Z M6 0H7V5H6V0Z M2 4H3V5H2V4Z M0 0H1V5H0V0Z", "M1 2H2V3H1V2Z M1 0H2V1H1V0Z M1 4H2V5H1V4Z M2 3H3V4H2V3Z M2 1H3V2H2V1Z M2 0H3V1H2V0Z M3 0H4V5H3V0Z M4 0H6V5H4V0Z M6 0H7V5H6V0Z M2 4H3V5H2V4Z M0 0H1V5H0V0Z"]
303
+ frames: [
304
+ "M1 2H2V3H1V2Z M1 0H2V1H1V0Z M1 4H2V5H1V4Z M2 3H3V4H2V3Z M2 1H3V2H2V1Z M2 0H3V1H2V0Z M3 0H4V5H3V0Z M4 0H5V3H4V0Z M4 4H5V5H4V4Z M5 0H6V3H5V0Z M5 4H6V5H5V4Z M6 0H7V5H6V0Z M2 4H3V5H2V4Z M0 0H1V5H0V0Z",
305
+ "M0 0H7V1H0V0Z M0 1H1V5H0V1Z M2 1H7V2H2V1Z M1 2H2V3H1V2Z M3 2H7V3H3V2Z M2 3H4V5H2V3Z M6 3H7V5H6V3Z M1 4H2V5H1V4Z M4 4H6V5H4V4Z",
306
+ "M0 0H7V1H0V0Z M0 1H1V5H0V1Z M2 1H7V2H2V1Z M1 2H2V3H1V2Z M3 2H7V5H3V2Z M2 3H3V5H2V3Z M1 4H2V5H1V4Z"
307
+ ]
308
+ },
309
+ typing: {
310
+ viewBox: "0 0 7 5",
311
+ delay: 100,
312
+ frames: [
313
+ "M2 0H3V1H2V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M4 4H5V5H4V4Z",
314
+ "M2 0H3V1H2V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M4 4H5V5H4V4Z",
315
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M4 4H5V5H4V4Z",
316
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
317
+ "M6 0H7V1H6V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
318
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M0 4H1V5H0V4Z",
319
+ "M4 0H5V1H4V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M0 4H1V5H0V4Z",
320
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
321
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
322
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
323
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M6 4H7V5H6V4Z",
324
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
325
+ "M0 0H1V1H0V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
326
+ "M0 0H1V1H0V0Z M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z M2 4H3V5H2V4Z",
327
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
328
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
329
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z",
330
+ "M0 2H1V3H0V2Z M2 2H3V3H2V2Z M4 2H5V3H4V2Z M6 2H7V3H6V2Z"
331
+ ]
272
332
  },
273
333
  "wi-fi": {
274
334
  viewBox: "0 0 7 5",
@@ -279,22 +339,22 @@ var ee = {
279
339
  "M3 4H4V5H3V4Z M5 3H6V4H5V3Z M6 1H7V2H6V1Z M1 3H2V4H1V3Z M0 1H1V2H0V1Z M2 2H5V3H2V2Z M1 0H6V1H1V0Z"
280
340
  ]
281
341
  }
282
- }, re = Object.keys(ne);
342
+ }, te = Object.keys(ee);
283
343
  //#endregion
284
344
  //#region src/components/Spinner/Spinner.tsx
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
- return /* @__PURE__ */ u("svg", {
288
- className: `${te.spinner} ${i}`,
345
+ function F({ name: e = te[0], size: t = 21, color: n = "currentColor", delay: r, className: i = "", "aria-label": a = "Loading" }) {
346
+ let o = ee[e], [, , s, c] = o.viewBox.split(" ").map(Number), l = c / s, u = typeof t == "number" ? t * l : `calc(${t} * ${l})`, f = r ?? o.delay, p = o.frames.length, m = p * f;
347
+ return /* @__PURE__ */ d("svg", {
348
+ className: `${P.spinner} ${i}`,
289
349
  width: t,
290
- height: d,
350
+ height: u,
291
351
  viewBox: o.viewBox,
292
352
  fill: "none",
293
353
  role: "status",
294
354
  "aria-label": a,
295
355
  xmlns: "http://www.w3.org/2000/svg",
296
- children: o.frames.map((e, t) => e ? /* @__PURE__ */ u("path", {
297
- className: te.frame,
356
+ children: o.frames.map((e, t) => e ? /* @__PURE__ */ d("path", {
357
+ className: P.frame,
298
358
  d: e,
299
359
  fill: n,
300
360
  style: {
@@ -306,15 +366,15 @@ function ie({ name: e = re[0], size: t = 21, color: n = "currentColor", delay: r
306
366
  }
307
367
  //#endregion
308
368
  //#region src/components/Button/Button.tsx
309
- function M(t) {
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],
369
+ function I(t) {
370
+ let { size: n = "default", variant: r = "primary", iconLeft: i, iconRight: a, className: o, children: s, loading: c = !1, ...l } = t, p = t.disabled || c, { href: m } = l, h = n === "micro" ? "14px" : n === "large" ? "21px" : "14px", g = n === "large" ? 21 : 14, _ = [
371
+ N.button,
372
+ N[n],
373
+ N[r],
314
374
  p ? "cursor-not-allowed" : "cursor-pointer",
315
375
  o
316
- ].filter(Boolean).join(" "), v = /* @__PURE__ */ d(l, { children: [
317
- c ? /* @__PURE__ */ u(ie, { size: g }) : i && e.cloneElement(i, {
376
+ ].filter(Boolean).join(" "), v = /* @__PURE__ */ f(u, { children: [
377
+ c ? /* @__PURE__ */ d(F, { size: g }) : i && e.cloneElement(i, {
318
378
  size: h,
319
379
  color: "currentColor"
320
380
  }),
@@ -325,8 +385,8 @@ function M(t) {
325
385
  })
326
386
  ] });
327
387
  if (m) {
328
- let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } = f;
329
- return p ? /* @__PURE__ */ u("a", {
388
+ let { type: e, href: t, onClick: n, tabIndex: r, disabled: i, ...a } = l;
389
+ return p ? /* @__PURE__ */ d("a", {
330
390
  className: _,
331
391
  ...a,
332
392
  "aria-disabled": "true",
@@ -336,7 +396,7 @@ function M(t) {
336
396
  e.preventDefault(), e.stopPropagation();
337
397
  },
338
398
  children: v
339
- }) : /* @__PURE__ */ u("a", {
399
+ }) : /* @__PURE__ */ d("a", {
340
400
  className: _,
341
401
  href: m,
342
402
  ...a,
@@ -345,8 +405,8 @@ function M(t) {
345
405
  children: v
346
406
  });
347
407
  }
348
- let { type: y = "button", href: b, disabled: x, ...S } = f;
349
- return /* @__PURE__ */ u("button", {
408
+ let { type: y = "button", href: b, disabled: x, ...S } = l;
409
+ return /* @__PURE__ */ d("button", {
350
410
  className: _,
351
411
  type: y,
352
412
  disabled: p,
@@ -355,57 +415,57 @@ function M(t) {
355
415
  children: v
356
416
  });
357
417
  }
358
- var N = {
418
+ var L = {
359
419
  checkboxWrapper: "_checkboxWrapper_1vygn_1",
360
420
  checkbox: "_checkbox_1vygn_1",
361
421
  label: "_label_1vygn_44",
362
422
  score: "_score_1vygn_48",
363
423
  disabled: "_disabled_1vygn_55"
364
- }, ae = ({ 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", {
424
+ }, ne = ({ label: t, score: n, className: r = "", id: i, "aria-label": a, ...o }) => {
425
+ let s = e.useId(), c = i || s, l = n ? `${c}-score` : void 0, u = o.disabled;
426
+ return t || n ? /* @__PURE__ */ f("label", {
367
427
  htmlFor: c,
368
- className: `${N.checkboxWrapper} ${r} ${f ? N.disabled : ""} ${f ? "cursor-not-allowed" : "cursor-pointer"}`,
428
+ className: `${L.checkboxWrapper} ${r} ${u ? L.disabled : ""} ${u ? "cursor-not-allowed" : "cursor-pointer"}`,
369
429
  children: [
370
- /* @__PURE__ */ u("input", {
430
+ /* @__PURE__ */ d("input", {
371
431
  id: c,
372
432
  type: "checkbox",
373
- className: N.checkbox,
433
+ className: L.checkbox,
374
434
  "aria-describedby": l,
375
435
  "aria-label": a,
376
436
  ...o
377
437
  }),
378
- t && /* @__PURE__ */ u("span", {
379
- className: N.label,
438
+ t && /* @__PURE__ */ d("span", {
439
+ className: L.label,
380
440
  children: t
381
441
  }),
382
- n && /* @__PURE__ */ u("span", {
442
+ n && /* @__PURE__ */ d("span", {
383
443
  id: l,
384
- className: N.score,
444
+ className: L.score,
385
445
  children: n
386
446
  })
387
447
  ]
388
- }) : /* @__PURE__ */ u("input", {
448
+ }) : /* @__PURE__ */ d("input", {
389
449
  id: c,
390
450
  type: "checkbox",
391
- className: `${N.checkbox} ${r}`,
451
+ className: `${L.checkbox} ${r}`,
392
452
  "aria-label": a,
393
- disabled: f,
453
+ disabled: u,
394
454
  ...o
395
455
  });
396
- }, oe = {
456
+ }, re = {
397
457
  container: "_container_dlzj1_1",
398
458
  default: "_default_dlzj1_5"
399
459
  };
400
460
  //#endregion
401
461
  //#region src/components/Base/Base.tsx
402
- function se({ children: e, className: t }) {
403
- return /* @__PURE__ */ u("div", {
404
- className: `${oe.container} ${oe.default} ${t || ""}`,
462
+ function ie({ children: e, className: t }) {
463
+ return /* @__PURE__ */ d("div", {
464
+ className: `${re.container} ${re.default} ${t || ""}`,
405
465
  children: e
406
466
  });
407
467
  }
408
- var P = {
468
+ var R = {
409
469
  container: "_container_10bfq_1",
410
470
  header: "_header_10bfq_11",
411
471
  title: "_title_10bfq_31",
@@ -414,111 +474,136 @@ var P = {
414
474
  };
415
475
  //#endregion
416
476
  //#region src/components/FilterPanelBase/FilterPanelBase.tsx
417
- function ce({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
418
- let [s, l] = c(() => !o), f = e.useId();
477
+ function ae({ title: t, children: n, className: r = "", collapsible: a = !0, collapsed: o = !1 }) {
478
+ let [s, c] = l(() => !o), u = e.useId();
419
479
  return i(() => {
420
- a && l(!o);
421
- }, [o, a]), /* @__PURE__ */ d("div", {
422
- className: `${P.container} ${r}`,
423
- children: [t && (a ? /* @__PURE__ */ d("button", {
480
+ a && c(!o);
481
+ }, [o, a]), /* @__PURE__ */ f("div", {
482
+ className: `${R.container} ${r}`,
483
+ children: [t && (a ? /* @__PURE__ */ f("button", {
424
484
  type: "button",
425
- className: P.header,
485
+ className: R.header,
426
486
  onClick: () => {
427
- a && l((e) => !e);
487
+ a && c((e) => !e);
428
488
  },
429
489
  "aria-label": `${t}: ${s ? "Collapse panel" : "Expand panel"}`,
430
490
  "aria-expanded": s,
431
- "aria-controls": f,
432
- children: [/* @__PURE__ */ u("div", {
433
- className: P.title,
491
+ "aria-controls": u,
492
+ children: [/* @__PURE__ */ d("div", {
493
+ className: R.title,
434
494
  children: t
435
- }), /* @__PURE__ */ u("span", {
495
+ }), /* @__PURE__ */ d("span", {
436
496
  "aria-hidden": "true",
437
- children: u(s ? b : x, {
497
+ children: d(s ? x : S, {
438
498
  color: "var(--lv5)",
439
499
  size: 14
440
500
  })
441
501
  })]
442
- }) : /* @__PURE__ */ u("div", {
443
- className: P.header,
444
- children: /* @__PURE__ */ u("div", {
445
- className: P.title,
502
+ }) : /* @__PURE__ */ d("div", {
503
+ className: R.header,
504
+ children: /* @__PURE__ */ d("div", {
505
+ className: R.title,
446
506
  children: t
447
507
  })
448
- })), (!a || s) && /* @__PURE__ */ u("div", {
449
- id: f,
450
- className: P.body,
508
+ })), (!a || s) && /* @__PURE__ */ d("div", {
509
+ id: u,
510
+ className: R.body,
451
511
  role: "region",
452
512
  "aria-label": t || "Filter panel content",
453
513
  children: n
454
514
  })]
455
515
  });
456
516
  }
457
- var F = {
458
- wrapper: "_wrapper_tf1yl_1",
459
- label: "_label_tf1yl_7",
460
- inputContainer: "_inputContainer_tf1yl_12",
461
- input: "_input_tf1yl_12",
462
- focus: "_focus_tf1yl_35",
463
- searchIcon: "_searchIcon_tf1yl_52",
464
- rightContent: "_rightContent_tf1yl_67",
465
- sizeMicro: "_sizeMicro_tf1yl_78",
466
- sizeDefault: "_sizeDefault_tf1yl_87",
467
- error: "_error_tf1yl_110",
468
- errorText: "_errorText_tf1yl_114"
469
- }, le = {
517
+ var z = {
518
+ wrapper: "_wrapper_nc093_1",
519
+ label: "_label_nc093_7",
520
+ inputContainer: "_inputContainer_nc093_12",
521
+ input: "_input_nc093_12",
522
+ focus: "_focus_nc093_35",
523
+ searchIcon: "_searchIcon_nc093_52",
524
+ rightContent: "_rightContent_nc093_69",
525
+ sizeMicro: "_sizeMicro_nc093_80",
526
+ sizeDefault: "_sizeDefault_nc093_89",
527
+ error: "_error_nc093_112",
528
+ errorText: "_errorText_nc093_116"
529
+ }, oe = {
470
530
  micro: 14,
471
531
  default: 21
472
532
  };
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
- o && (x["--search-icon-color"] = o);
476
- let C = a ?? /* @__PURE__ */ u(S, {}), w = c === "micro" ? F.sizeMicro : F.sizeDefault;
477
- return /* @__PURE__ */ d("div", {
478
- className: `${F.wrapper} ${r}`,
533
+ function se({ label: t, error: n, className: r = "", showSearchIcon: i = !0, searchIcon: a, searchIconColor: o, inputSize: u = "default", showFocusBorder: p = !1, clearable: m = !0, children: h, id: g, type: _ = "search", onChange: v, ...y }) {
534
+ let b = c(null), x = y.value !== void 0, [S, w] = l(String(y.defaultValue ?? "")), T = x ? String(y.value ?? "") : S, E = m && T.length > 0 && !y.disabled && !y.readOnly, D = (e) => {
535
+ x || w(e.target.value), v?.(e);
536
+ }, O = () => {
537
+ let e = b.current;
538
+ e && (Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.focus());
539
+ }, k = c(null), [A, j] = l(0), M = e.Children.toArray(h).length > 0 || E;
540
+ s(() => {
541
+ let e = k.current;
542
+ if (!e) {
543
+ j(0);
544
+ return;
545
+ }
546
+ let t = () => j(e.offsetWidth);
547
+ t();
548
+ let n = new ResizeObserver(t);
549
+ return n.observe(e), () => n.disconnect();
550
+ }, [M]);
551
+ let N = e.useId(), P = g || N, ee = `${P}-error`, te = oe[u], F = {};
552
+ o && (F["--search-icon-color"] = o), A > 0 && (F.paddingRight = `${A + 10}px`);
553
+ let L = a ?? /* @__PURE__ */ d(C, {}), ne = u === "micro" ? z.sizeMicro : z.sizeDefault;
554
+ return /* @__PURE__ */ f("div", {
555
+ className: `${z.wrapper} ${r}`,
479
556
  children: [
480
- t && /* @__PURE__ */ u("label", {
481
- htmlFor: v,
482
- className: F.label,
557
+ t && /* @__PURE__ */ d("label", {
558
+ htmlFor: P,
559
+ className: z.label,
483
560
  children: t
484
561
  }),
485
- /* @__PURE__ */ d("div", {
486
- className: `${F.inputContainer} ${w}`,
562
+ /* @__PURE__ */ f("div", {
563
+ className: `${z.inputContainer} ${ne}`,
487
564
  children: [
488
- i && /* @__PURE__ */ u("span", {
489
- className: F.searchIcon,
565
+ i && /* @__PURE__ */ d("span", {
566
+ className: z.searchIcon,
490
567
  "aria-hidden": "true",
491
- children: e.cloneElement(C, {
492
- size: b,
568
+ children: e.cloneElement(L, {
569
+ size: te,
493
570
  color: o ?? "var(--search-icon-color)"
494
571
  })
495
572
  }),
496
- /* @__PURE__ */ u("input", {
497
- ref: g,
498
- id: v,
499
- type: m,
500
- className: `${F.input} ${l ? F.focus : ""} ${n ? F.error : ""}`,
501
- style: x,
573
+ /* @__PURE__ */ d("input", {
574
+ ref: b,
575
+ id: P,
576
+ type: _,
577
+ className: `${z.input} ${p ? z.focus : ""} ${n ? z.error : ""}`,
578
+ style: F,
502
579
  "aria-invalid": n ? "true" : "false",
503
- "aria-describedby": n ? y : void 0,
504
- ...h
580
+ "aria-describedby": n ? ee : void 0,
581
+ ...y,
582
+ onChange: D
505
583
  }),
506
- f && /* @__PURE__ */ u("div", {
507
- className: F.rightContent,
508
- children: f
584
+ M && /* @__PURE__ */ f("div", {
585
+ ref: k,
586
+ className: z.rightContent,
587
+ children: [h, E && /* @__PURE__ */ d(I, {
588
+ variant: "ghost",
589
+ size: "micro",
590
+ onClick: O,
591
+ "aria-label": "Clear search",
592
+ children: "Clear"
593
+ })]
509
594
  })
510
595
  ]
511
596
  }),
512
- n && /* @__PURE__ */ u("span", {
513
- id: y,
514
- className: F.errorText,
597
+ n && /* @__PURE__ */ d("span", {
598
+ id: ee,
599
+ className: z.errorText,
515
600
  role: "alert",
516
601
  children: n
517
602
  })
518
603
  ]
519
604
  });
520
605
  }
521
- var I = {
606
+ var ce = {
522
607
  wrapper: "_wrapper_roite_1",
523
608
  label: "_label_roite_10",
524
609
  input: "_input_roite_15",
@@ -528,46 +613,46 @@ var I = {
528
613
  };
529
614
  //#endregion
530
615
  //#region src/components/InputField/InputField.tsx
531
- function de({ 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
- className: `${I.wrapper} ${r}`,
616
+ function le({ label: t, error: n, className: r = "", isValid: i = !0, variant: a = "default", id: o, ...s }) {
617
+ let c = e.useId(), l = o || c, u = `${l}-error`, p = n || !i;
618
+ return /* @__PURE__ */ f("div", {
619
+ className: `${ce.wrapper} ${r}`,
535
620
  children: [
536
- t && /* @__PURE__ */ d("label", {
621
+ t && /* @__PURE__ */ f("label", {
537
622
  htmlFor: l,
538
- className: I.label,
539
- children: [t, s.required && /* @__PURE__ */ u("span", {
623
+ className: ce.label,
624
+ children: [t, s.required && /* @__PURE__ */ d("span", {
540
625
  "aria-label": "required",
541
626
  children: " *"
542
627
  })]
543
628
  }),
544
- /* @__PURE__ */ u("input", {
629
+ /* @__PURE__ */ d("input", {
545
630
  id: l,
546
- className: `${I.input} ${a === "borderBottom" ? I.borderBottom : ""} ${p ? I.error : ""}`,
631
+ className: `${ce.input} ${a === "borderBottom" ? ce.borderBottom : ""} ${p ? ce.error : ""}`,
547
632
  "aria-invalid": p ? "true" : "false",
548
- "aria-describedby": n ? f : void 0,
633
+ "aria-describedby": n ? u : void 0,
549
634
  ...s
550
635
  }),
551
- n && /* @__PURE__ */ u("span", {
552
- id: f,
553
- className: I.errorText,
636
+ n && /* @__PURE__ */ d("span", {
637
+ id: u,
638
+ className: ce.errorText,
554
639
  role: "alert",
555
640
  children: n
556
641
  })
557
642
  ]
558
643
  });
559
644
  }
560
- var L = {
645
+ var ue = {
561
646
  radioWrapper: "_radioWrapper_1faq0_1",
562
647
  radioInput: "_radioInput_1faq0_9",
563
648
  customRadio: "_customRadio_1faq0_23",
564
649
  labelText: "_labelText_1faq0_57",
565
650
  disabled: "_disabled_1faq0_63"
566
- }, fe = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ d("label", {
651
+ }, de = ({ id: e, name: t, value: n, label: r, checked: i = !1, onChange: a, disabled: o = !1, "aria-label": s }) => /* @__PURE__ */ f("label", {
567
652
  htmlFor: e,
568
- className: `${L.radioWrapper} ${o ? L.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
653
+ className: `${ue.radioWrapper} ${o ? ue.disabled : ""} ${o ? "cursor-not-allowed" : "cursor-pointer"}`,
569
654
  children: [
570
- /* @__PURE__ */ u("input", {
655
+ /* @__PURE__ */ d("input", {
571
656
  id: e,
572
657
  type: "radio",
573
658
  name: t,
@@ -576,27 +661,27 @@ var L = {
576
661
  onChange: a,
577
662
  disabled: o,
578
663
  "aria-label": s,
579
- className: L.radioInput
664
+ className: ue.radioInput
580
665
  }),
581
- /* @__PURE__ */ u("span", { className: L.customRadio }),
582
- /* @__PURE__ */ u("span", {
583
- className: L.labelText,
666
+ /* @__PURE__ */ d("span", { className: ue.customRadio }),
667
+ /* @__PURE__ */ d("span", {
668
+ className: ue.labelText,
584
669
  children: r
585
670
  })
586
671
  ]
587
- }), pe = {
672
+ }), fe = {
588
673
  switch: "_switch_1kxu1_1",
589
674
  slider: "_slider_1kxu1_23",
590
675
  label: "_label_1kxu1_28",
591
676
  disabled: "_disabled_1kxu1_43",
592
677
  positive: "_positive_1kxu1_72"
593
- }, me = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o, variant: s = "default" }) => {
678
+ }, pe = ({ id: t, checked: n, onChange: r, disabled: i = !1, label: a, "aria-label": o, variant: s = "default" }) => {
594
679
  let c = e.useId(), l = t || c;
595
- return /* @__PURE__ */ d("label", {
680
+ return /* @__PURE__ */ f("label", {
596
681
  htmlFor: l,
597
- className: `${pe.switch} ${s === "positive" ? pe.positive : ""} ${i ? pe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
682
+ className: `${fe.switch} ${s === "positive" ? fe.positive : ""} ${i ? fe.disabled : ""} ${i ? "cursor-not-allowed" : "cursor-pointer"}`,
598
683
  children: [
599
- /* @__PURE__ */ u("input", {
684
+ /* @__PURE__ */ d("input", {
600
685
  id: l,
601
686
  type: "checkbox",
602
687
  role: "switch",
@@ -606,17 +691,17 @@ var L = {
606
691
  onChange: (e) => r(e.target.checked),
607
692
  disabled: i
608
693
  }),
609
- /* @__PURE__ */ u("span", {
610
- className: pe.slider,
694
+ /* @__PURE__ */ d("span", {
695
+ className: fe.slider,
611
696
  "aria-hidden": "true"
612
697
  }),
613
- a && /* @__PURE__ */ u("span", {
614
- className: pe.label,
698
+ a && /* @__PURE__ */ d("span", {
699
+ className: fe.label,
615
700
  children: a
616
701
  })
617
702
  ]
618
703
  });
619
- }, R = {
704
+ }, B = {
620
705
  label: "_label_1o3ls_1",
621
706
  basetrack: "_basetrack_1o3ls_8",
622
707
  selectedtrack: "_selectedtrack_1o3ls_36",
@@ -630,35 +715,35 @@ var L = {
630
715
  stepmarksInline: "_stepmarksInline_1o3ls_113",
631
716
  stepmarksBelow: "_stepmarksBelow_1o3ls_120",
632
717
  basetrackStepsBelow: "_basetrackStepsBelow_1o3ls_125"
633
- }, he = 50, ge = (t) => {
634
- 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;
635
- if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ d("div", {
718
+ }, me = 50, he = (t) => {
719
+ let { min: n, max: r, step: i = 1, disabled: a = !1, className: o, activeMin: s, activeMax: c, isFaceted: l = !1, highlightFaceted: u = !0, stepMarks: p, onChange: m, onFinalChange: h, label: g, "aria-label": _, id: v } = t, y = e.useId(), b = v || y;
720
+ if (!(Number.isFinite(n) && Number.isFinite(r) && r > n)) return /* @__PURE__ */ f("div", {
636
721
  className: o,
637
- children: [g && /* @__PURE__ */ u("span", {
638
- className: R.label,
722
+ children: [g && /* @__PURE__ */ d("span", {
723
+ className: B.label,
639
724
  children: g
640
- }), /* @__PURE__ */ u("div", {
641
- className: `${R.basetrack} ${R.disabled}`,
725
+ }), /* @__PURE__ */ d("div", {
726
+ className: `${B.basetrack} ${B.disabled}`,
642
727
  "aria-hidden": "true"
643
728
  })]
644
729
  });
645
- 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", {
646
- className: `${R.stepmarks} ${p === "below" ? R.stepmarksBelow : R.stepmarksInline}`,
730
+ let x = i > 0 ? Math.round((r - n) / i) : 0, S = !!p && x > 0 && x <= me, C = S && p === "below" ? `${B.basetrack} ${B.basetrackStepsBelow}` : B.basetrack, w = S ? /* @__PURE__ */ d("div", {
731
+ className: `${B.stepmarks} ${p === "below" ? B.stepmarksBelow : B.stepmarksInline}`,
647
732
  "aria-hidden": "true",
648
- children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ u("span", {
649
- className: R.stepmark,
733
+ children: Array.from({ length: x + 1 }, (e, t) => /* @__PURE__ */ d("span", {
734
+ className: B.stepmark,
650
735
  style: { left: `${Math.min(t * i, r - n) / (r - n) * 100}%` }
651
736
  }, t))
652
737
  }) : null;
653
738
  if ("isRange" in t && t.isRange) {
654
- let e = t.value, [f, p] = e;
655
- return /* @__PURE__ */ d("div", {
739
+ let e = t.value, [u, p] = e;
740
+ return /* @__PURE__ */ f("div", {
656
741
  className: o,
657
- children: [g && /* @__PURE__ */ u("label", {
742
+ children: [g && /* @__PURE__ */ d("label", {
658
743
  htmlFor: b,
659
- className: R.label,
744
+ className: B.label,
660
745
  children: g
661
- }), /* @__PURE__ */ u(E, {
746
+ }), /* @__PURE__ */ d(D, {
662
747
  step: i,
663
748
  min: n,
664
749
  max: r,
@@ -667,22 +752,22 @@ var L = {
667
752
  onFinalChange: (e) => h?.(e),
668
753
  disabled: a,
669
754
  renderTrack: ({ props: e, children: t }) => {
670
- let { key: i, ...a } = e, o = r - n, m = (f - n) / o * 100, h = (p - f) / o * 100, g = 0, _ = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
671
- return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */ d("div", {
755
+ let { key: i, ...a } = e, o = r - n, m = (u - n) / o * 100, h = (p - u) / o * 100, g = 0, _ = 0, v = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
756
+ return v && (g = (s - n) / o * 100, _ = (c - s) / o * 100), /* @__PURE__ */ f("div", {
672
757
  ...a,
673
758
  className: C,
674
759
  style: { ...a.style },
675
760
  children: [
676
- !v && /* @__PURE__ */ u("div", {
677
- className: R.selectedtrack,
761
+ !v && /* @__PURE__ */ d("div", {
762
+ className: B.selectedtrack,
678
763
  style: {
679
764
  left: `${m}%`,
680
765
  width: `${h}%`,
681
766
  zIndex: "1"
682
767
  }
683
768
  }),
684
- v && /* @__PURE__ */ u("div", {
685
- className: `${R.livetrack} ${l ? R.livetrackFaceted : R.livetrackDefault}`,
769
+ v && /* @__PURE__ */ d("div", {
770
+ className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
686
771
  style: {
687
772
  left: `${g}%`,
688
773
  width: `${_}%`,
@@ -695,11 +780,11 @@ var L = {
695
780
  }, i);
696
781
  },
697
782
  renderThumb: ({ props: e, index: t }) => {
698
- let { key: i, ...o } = e, s = t === 0 ? f : p;
699
- return /* @__PURE__ */ u("div", {
783
+ let { key: i, ...o } = e, s = t === 0 ? u : p;
784
+ return /* @__PURE__ */ d("div", {
700
785
  ...o,
701
786
  id: t === 0 ? b : void 0,
702
- className: `${R.thumbs} ${a ? R.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
787
+ className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
703
788
  style: {
704
789
  ...o.style,
705
790
  zIndex: "3"
@@ -714,13 +799,13 @@ var L = {
714
799
  });
715
800
  } else {
716
801
  let e = t.value;
717
- return /* @__PURE__ */ d("div", {
802
+ return /* @__PURE__ */ f("div", {
718
803
  className: o,
719
- children: [g && /* @__PURE__ */ u("label", {
804
+ children: [g && /* @__PURE__ */ d("label", {
720
805
  htmlFor: b,
721
- className: R.label,
806
+ className: B.label,
722
807
  children: g
723
- }), /* @__PURE__ */ u(E, {
808
+ }), /* @__PURE__ */ d(D, {
724
809
  step: i,
725
810
  min: n,
726
811
  max: r,
@@ -729,22 +814,22 @@ var L = {
729
814
  onFinalChange: (e) => h?.(e[0]),
730
815
  disabled: a,
731
816
  renderTrack: ({ props: t, children: i }) => {
732
- 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);
733
- return g && (m = (s - n) / f * 100, h = (c - s) / f * 100), /* @__PURE__ */ d("div", {
817
+ let { key: a, ...o } = t, u = r - n, p = (e - n) / u * 100, m = 0, h = 0, g = typeof s == "number" && typeof c == "number" && c > s && (s > n || c < r);
818
+ return g && (m = (s - n) / u * 100, h = (c - s) / u * 100), /* @__PURE__ */ f("div", {
734
819
  ...o,
735
820
  className: C,
736
821
  style: { ...o.style },
737
822
  children: [
738
- !g && /* @__PURE__ */ u("div", {
739
- className: R.selectedtrack,
823
+ !g && /* @__PURE__ */ d("div", {
824
+ className: B.selectedtrack,
740
825
  style: {
741
826
  left: "0%",
742
827
  width: `${p}%`,
743
828
  zIndex: "1"
744
829
  }
745
830
  }),
746
- g && /* @__PURE__ */ u("div", {
747
- className: `${R.livetrack} ${l ? R.livetrackFaceted : R.livetrackDefault}`,
831
+ g && /* @__PURE__ */ d("div", {
832
+ className: `${B.livetrack} ${l ? B.livetrackFaceted : B.livetrackDefault}`,
748
833
  style: {
749
834
  left: `${m}%`,
750
835
  width: `${h}%`,
@@ -758,10 +843,10 @@ var L = {
758
843
  },
759
844
  renderThumb: ({ props: t }) => {
760
845
  let { key: i, ...o } = t;
761
- return /* @__PURE__ */ u("div", {
846
+ return /* @__PURE__ */ d("div", {
762
847
  ...o,
763
848
  id: b,
764
- className: `${R.thumbs} ${a ? R.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
849
+ className: `${B.thumbs} ${a ? B.disabled : ""} ${a ? "cursor-not-allowed" : "cursor-resize-col"}`,
765
850
  style: {
766
851
  ...o.style,
767
852
  zIndex: "3"
@@ -775,7 +860,7 @@ var L = {
775
860
  })]
776
861
  });
777
862
  }
778
- }, z = {
863
+ }, V = {
779
864
  wrapper: "_wrapper_y1e72_1",
780
865
  label: "_label_y1e72_7",
781
866
  trigger: "_trigger_y1e72_12",
@@ -790,58 +875,58 @@ var L = {
790
875
  viewport: "_viewport_y1e72_107",
791
876
  item: "_item_y1e72_113",
792
877
  itemIndicator: "_itemIndicator_y1e72_136"
793
- }, _e = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": f, id: p }) => {
794
- let g = e.useId(), _ = p || g, v = `${_}-label`, y = r.find((e) => e.value === t), b = /* @__PURE__ */ d(D.Root, {
878
+ }, ge = ({ value: t, onValueChange: n, options: r, placeholder: i = "Select...", className: a = "", disabled: o = !1, label: s, size: c = "default", variant: l = "default", "aria-label": u, id: p }) => {
879
+ let m = e.useId(), _ = p || m, v = `${_}-label`, y = r.find((e) => e.value === t), b = /* @__PURE__ */ f(O.Root, {
795
880
  value: t,
796
881
  onValueChange: n,
797
882
  disabled: o,
798
- children: [/* @__PURE__ */ d(D.Trigger, {
883
+ children: [/* @__PURE__ */ f(O.Trigger, {
799
884
  id: _,
800
- className: `${z.trigger} ${z[c]} ${l === "ghost" ? z.ghost : ""} ${a} cursor-pointer`,
801
- ...s ? { "aria-labelledby": v } : f ? { "aria-label": f } : {},
802
- children: [/* @__PURE__ */ d("span", {
885
+ className: `${V.trigger} ${V[c]} ${l === "ghost" ? V.ghost : ""} ${a} cursor-pointer`,
886
+ ...s ? { "aria-labelledby": v } : u ? { "aria-label": u } : {},
887
+ children: [/* @__PURE__ */ f("span", {
803
888
  style: {
804
889
  display: "inline-flex",
805
890
  alignItems: "center",
806
891
  gap: 6
807
892
  },
808
- children: [y?.icon, l === "ghost" ? /* @__PURE__ */ d("span", {
809
- className: z.sizer,
810
- children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ u("span", {
811
- className: z.sizerHidden,
893
+ children: [y?.icon, l === "ghost" ? /* @__PURE__ */ f("span", {
894
+ className: V.sizer,
895
+ children: [r.filter((e) => e.value !== t).map((e) => /* @__PURE__ */ d("span", {
896
+ className: V.sizerHidden,
812
897
  "aria-hidden": "true",
813
898
  children: e.label
814
- }, e.value)), /* @__PURE__ */ u("span", { children: /* @__PURE__ */ u(D.Value, { placeholder: i }) })]
815
- }) : /* @__PURE__ */ u(D.Value, { placeholder: i })]
816
- }), /* @__PURE__ */ u(D.Icon, {
817
- className: z.icon,
899
+ }, e.value)), /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(O.Value, { placeholder: i }) })]
900
+ }) : /* @__PURE__ */ d(O.Value, { placeholder: i })]
901
+ }), /* @__PURE__ */ d(O.Icon, {
902
+ className: V.icon,
818
903
  "aria-hidden": "true",
819
- children: /* @__PURE__ */ u(h, {
904
+ children: /* @__PURE__ */ d(g, {
820
905
  size: c === "large" ? 21 : 14,
821
906
  color: "currentColor"
822
907
  })
823
908
  })]
824
- }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
825
- className: z.content,
909
+ }), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
910
+ className: V.content,
826
911
  position: "popper",
827
912
  side: "bottom",
828
913
  align: "start",
829
914
  sideOffset: 4,
830
- children: /* @__PURE__ */ u(D.Viewport, {
831
- className: z.viewport,
832
- children: r.map((e) => /* @__PURE__ */ d(D.Item, {
915
+ children: /* @__PURE__ */ d(O.Viewport, {
916
+ className: V.viewport,
917
+ children: r.map((e) => /* @__PURE__ */ f(O.Item, {
833
918
  value: e.value,
834
- className: z.item,
835
- children: [/* @__PURE__ */ d("span", {
919
+ className: V.item,
920
+ children: [/* @__PURE__ */ f("span", {
836
921
  style: {
837
922
  display: "inline-flex",
838
923
  alignItems: "center",
839
924
  gap: 6
840
925
  },
841
- children: [e.icon, /* @__PURE__ */ u(D.ItemText, { children: e.label })]
842
- }), /* @__PURE__ */ u(D.ItemIndicator, {
843
- className: z.itemIndicator,
844
- children: /* @__PURE__ */ u(m, {
926
+ children: [e.icon, /* @__PURE__ */ d(O.ItemText, { children: e.label })]
927
+ }), /* @__PURE__ */ d(O.ItemIndicator, {
928
+ className: V.itemIndicator,
929
+ children: /* @__PURE__ */ d(h, {
845
930
  size: 12,
846
931
  color: "currentColor"
847
932
  })
@@ -850,23 +935,23 @@ var L = {
850
935
  })
851
936
  }) })]
852
937
  });
853
- return s ? /* @__PURE__ */ d("div", {
854
- className: z.wrapper,
855
- children: [/* @__PURE__ */ u("label", {
938
+ return s ? /* @__PURE__ */ f("div", {
939
+ className: V.wrapper,
940
+ children: [/* @__PURE__ */ d("label", {
856
941
  id: v,
857
942
  htmlFor: _,
858
- className: z.label,
943
+ className: V.label,
859
944
  children: s
860
945
  }), b]
861
946
  }) : b;
862
- }, 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, {
947
+ }, _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__ */ f(k.Root, {
863
948
  open: n,
864
949
  onOpenChange: r,
865
- children: [/* @__PURE__ */ u(O.Trigger, {
950
+ children: [/* @__PURE__ */ d(k.Trigger, {
866
951
  asChild: !0,
867
952
  children: e
868
- }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ u(O.Content, {
869
- className: `${ve.content} ${s}`,
953
+ }), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
954
+ className: `${_e.content} ${s}`,
870
955
  align: i,
871
956
  side: a,
872
957
  sideOffset: o,
@@ -874,7 +959,7 @@ var L = {
874
959
  "aria-describedby": l,
875
960
  children: t
876
961
  }) })]
877
- }), B = {
962
+ }), H = {
878
963
  table: "_table_j6zqj_1",
879
964
  caption: "_caption_j6zqj_8",
880
965
  headerRow: "_headerRow_j6zqj_25",
@@ -890,17 +975,17 @@ var L = {
890
975
  };
891
976
  //#endregion
892
977
  //#region src/components/Table/Table.tsx
893
- function be({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
894
- let o = /* @__PURE__ */ d("table", {
895
- className: `${B.table} ${r && i ? B.stickyFirst : ""}`,
978
+ function ye({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stickyFirstColumn: i = !1, bleedEnd: a }) {
979
+ let o = /* @__PURE__ */ f("table", {
980
+ className: `${H.table} ${r && i ? H.stickyFirst : ""}`,
896
981
  "aria-label": n,
897
- children: [t && /* @__PURE__ */ u("caption", {
898
- className: B.caption,
982
+ children: [t && /* @__PURE__ */ d("caption", {
983
+ className: H.caption,
899
984
  children: t
900
985
  }), e]
901
986
  });
902
- return r ? /* @__PURE__ */ u("div", {
903
- className: `${B.scroll} ${a === void 0 ? "" : B.bleedEnd}`,
987
+ return r ? /* @__PURE__ */ d("div", {
988
+ className: `${H.scroll} ${a === void 0 ? "" : H.bleedEnd}`,
904
989
  style: a === void 0 ? void 0 : { "--table-bleed": typeof a == "number" ? `${a}px` : a },
905
990
  role: "region",
906
991
  "aria-label": n ?? t,
@@ -910,62 +995,62 @@ function be({ children: e, caption: t, "aria-label": n, scrollable: r = !1, stic
910
995
  }
911
996
  //#endregion
912
997
  //#region src/components/Table/TableHeader.tsx
913
- function xe({ children: t }) {
914
- let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ u("th", {
998
+ function be({ children: t }) {
999
+ let n = e.Children.map(t, (t) => e.isValidElement(t) && t.type === "td" ? /* @__PURE__ */ d("th", {
915
1000
  scope: "col",
916
1001
  ...t.props
917
1002
  }) : t);
918
- return /* @__PURE__ */ u("thead", { children: /* @__PURE__ */ u("tr", {
919
- className: B.headerRow,
1003
+ return /* @__PURE__ */ d("thead", { children: /* @__PURE__ */ d("tr", {
1004
+ className: H.headerRow,
920
1005
  children: n
921
1006
  }) });
922
1007
  }
923
1008
  //#endregion
924
1009
  //#region src/components/Table/TableRow.tsx
925
- function Se({ children: e }) {
926
- return /* @__PURE__ */ u("tr", {
927
- className: B.dataRow,
1010
+ function xe({ children: e }) {
1011
+ return /* @__PURE__ */ d("tr", {
1012
+ className: H.dataRow,
928
1013
  children: e
929
1014
  });
930
1015
  }
931
1016
  //#endregion
932
1017
  //#region src/components/Table/TableCell.tsx
933
- function Ce({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
1018
+ function Se({ label: e, children: t, isHeader: n = !1, scope: r, colSpan: i }) {
934
1019
  let a = n ? "th" : "td", o = {
935
1020
  ...n && r ? { scope: r } : {},
936
1021
  ...i ? { colSpan: i } : {}
937
1022
  };
938
- return e || t ? /* @__PURE__ */ u(a, {
1023
+ return e || t ? /* @__PURE__ */ d(a, {
939
1024
  ...o,
940
- children: /* @__PURE__ */ d("div", {
941
- className: B.cellInner,
942
- children: [e && /* @__PURE__ */ u("span", {
943
- className: B.cellLabel,
1025
+ children: /* @__PURE__ */ f("div", {
1026
+ className: H.cellInner,
1027
+ children: [e && /* @__PURE__ */ d("span", {
1028
+ className: H.cellLabel,
944
1029
  children: e
945
- }), t && /* @__PURE__ */ u("div", {
946
- className: B.cellContent,
1030
+ }), t && /* @__PURE__ */ d("div", {
1031
+ className: H.cellContent,
947
1032
  children: t
948
1033
  })]
949
1034
  })
950
- }) : /* @__PURE__ */ u(a, {
1035
+ }) : /* @__PURE__ */ d(a, {
951
1036
  ...o,
952
1037
  children: t
953
1038
  });
954
1039
  }
955
1040
  //#endregion
956
1041
  //#region src/components/Table/TableValue.tsx
957
- function we({ children: e }) {
958
- return /* @__PURE__ */ u("span", {
959
- className: B.value,
1042
+ function Ce({ children: e }) {
1043
+ return /* @__PURE__ */ d("span", {
1044
+ className: H.value,
960
1045
  children: e
961
1046
  });
962
1047
  }
963
1048
  //#endregion
964
1049
  //#region src/components/Table/TableIcon.tsx
965
- function Te({ children: t, "aria-label": n }) {
1050
+ function we({ children: t, "aria-label": n }) {
966
1051
  let r = !n;
967
- return /* @__PURE__ */ u("span", {
968
- className: B.icon,
1052
+ return /* @__PURE__ */ d("span", {
1053
+ className: H.icon,
969
1054
  "aria-hidden": r ? "true" : void 0,
970
1055
  "aria-label": n,
971
1056
  children: e.cloneElement(t, {
@@ -974,7 +1059,7 @@ function Te({ children: t, "aria-label": n }) {
974
1059
  })
975
1060
  });
976
1061
  }
977
- var V = {
1062
+ var U = {
978
1063
  tabs: "_tabs_q9gjb_1",
979
1064
  scrollable: "_scrollable_q9gjb_16",
980
1065
  tab: "_tab_q9gjb_1",
@@ -990,23 +1075,23 @@ var V = {
990
1075
  };
991
1076
  //#endregion
992
1077
  //#region src/components/Tabs/Tabs.tsx
993
- function Ee(e, t) {
1078
+ function Te(e, t) {
994
1079
  if (!e || !t) return;
995
1080
  let n = parseFloat(getComputedStyle(e).paddingInlineStart) || 32, r = e.getBoundingClientRect(), i = t.getBoundingClientRect();
996
1081
  i.left < r.left + n ? e.scrollLeft -= r.left + n - i.left : i.right > r.right - n && (e.scrollLeft += i.right - (r.right - n));
997
1082
  }
998
- var De = {
1083
+ var Ee = {
999
1084
  micro: 14,
1000
1085
  default: 14,
1001
1086
  large: 21
1002
1087
  };
1003
- 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: _ }) {
1004
- 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) => {
1088
+ function De({ items: e, value: r, onValueChange: o, size: s = "default", variant: l = "underline", scrollable: p = !1, bleed: m, getPanelId: h, "aria-label": g, renderLink: _ }) {
1089
+ let v = c(null), y = c(/* @__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) => {
1005
1090
  let n = e[t];
1006
1091
  if (!n) return;
1007
1092
  o(n.value);
1008
1093
  let r = y.current.get(n.value);
1009
- r?.focus({ preventScroll: !0 }), p && Ee(v.current, r);
1094
+ r?.focus({ preventScroll: !0 }), p && Te(v.current, r);
1010
1095
  }, w = (t, n) => {
1011
1096
  for (let r = 1; r <= e.length; r++) {
1012
1097
  let i = (t + n * r + e.length * r) % e.length;
@@ -1053,47 +1138,47 @@ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant
1053
1138
  m,
1054
1139
  e.length
1055
1140
  ]), i(() => {
1056
- p && Ee(v.current, y.current.get(r));
1057
- }, [p, r]), /* @__PURE__ */ u("div", {
1141
+ p && Te(v.current, y.current.get(r));
1142
+ }, [p, r]), /* @__PURE__ */ d("div", {
1058
1143
  ref: v,
1059
- className: `${V.tabs} ${f === "button" ? V.buttonVariant : ""} ${p ? V.scrollable : ""} ${p && m !== void 0 ? V.bleed : ""}`,
1144
+ className: `${U.tabs} ${l === "button" ? U.buttonVariant : ""} ${p ? U.scrollable : ""} ${p && m !== void 0 ? U.bleed : ""}`,
1060
1145
  style: p && m !== void 0 ? { "--tabs-bleed": typeof m == "number" ? `${m}px` : m } : void 0,
1061
1146
  role: S ? "navigation" : "tablist",
1062
1147
  "aria-label": g,
1063
1148
  children: e.map((e, r) => {
1064
- let i = r === x, a = /* @__PURE__ */ d(l, { children: [
1065
- e.icon ? /* @__PURE__ */ u("span", {
1066
- className: V.icon,
1149
+ let i = r === x, a = /* @__PURE__ */ f(u, { children: [
1150
+ e.icon ? /* @__PURE__ */ d("span", {
1151
+ className: U.icon,
1067
1152
  "aria-hidden": "true",
1068
- children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: De[c] }) : e.icon
1153
+ children: n(e.icon) && e.icon.props.size === void 0 ? t(e.icon, { size: Ee[s] }) : e.icon
1069
1154
  }) : null,
1070
1155
  e.label,
1071
- e.badge != null && e.badge !== !1 ? /* @__PURE__ */ u("span", {
1072
- className: e.badgeTone === "info" ? `${V.badge} ${V.badgeInfo}` : V.badge,
1156
+ e.badge != null && e.badge !== !1 ? /* @__PURE__ */ d("span", {
1157
+ className: e.badgeTone === "info" ? `${U.badge} ${U.badgeInfo}` : U.badge,
1073
1158
  title: e.badgeTitle,
1074
1159
  children: e.badge
1075
1160
  }) : null
1076
- ] }), s = `${V.tab} ${V[c]} ${i ? V.active : ""}`;
1161
+ ] }), c = `${U.tab} ${U[s]} ${i ? U.active : ""}`;
1077
1162
  if (e.href !== void 0) {
1078
1163
  let t = {
1079
1164
  id: `${b}-tab-${e.value}`,
1080
- className: s,
1165
+ className: c,
1081
1166
  href: e.disabled ? void 0 : e.href,
1082
1167
  "aria-current": i ? "page" : void 0,
1083
1168
  "aria-disabled": e.disabled || void 0,
1084
1169
  title: e.title,
1085
1170
  children: a
1086
1171
  };
1087
- return /* @__PURE__ */ u("span", {
1172
+ return /* @__PURE__ */ d("span", {
1088
1173
  style: { display: "contents" },
1089
1174
  ref: (t) => {
1090
1175
  let n = t?.firstElementChild;
1091
1176
  n ? y.current.set(e.value, n) : y.current.delete(e.value);
1092
1177
  },
1093
- children: _ ? _(e, t) : /* @__PURE__ */ u("a", { ...t })
1178
+ children: _ ? _(e, t) : /* @__PURE__ */ d("a", { ...t })
1094
1179
  }, e.value);
1095
1180
  }
1096
- return /* @__PURE__ */ u("button", {
1181
+ return /* @__PURE__ */ d("button", {
1097
1182
  ref: (t) => {
1098
1183
  t ? y.current.set(e.value, t) : y.current.delete(e.value);
1099
1184
  },
@@ -1105,7 +1190,7 @@ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant
1105
1190
  "aria-disabled": e.disabled || void 0,
1106
1191
  title: e.title,
1107
1192
  tabIndex: i ? 0 : -1,
1108
- className: s,
1193
+ className: c,
1109
1194
  onClick: () => {
1110
1195
  e.disabled || o(e.value);
1111
1196
  },
@@ -1115,7 +1200,7 @@ function Oe({ items: e, value: r, onValueChange: o, size: c = "default", variant
1115
1200
  })
1116
1201
  });
1117
1202
  }
1118
- var H = {
1203
+ var W = {
1119
1204
  root: "_root_wrjxq_1",
1120
1205
  micro: "_micro_wrjxq_2",
1121
1206
  default: "_default_wrjxq_3",
@@ -1135,112 +1220,112 @@ var H = {
1135
1220
  };
1136
1221
  //#endregion
1137
1222
  //#region src/components/Breadcrumbs/Breadcrumbs.tsx
1138
- function ke(t) {
1223
+ function Oe(t) {
1139
1224
  return e.isValidElement(t) ? e.cloneElement(t, {
1140
1225
  size: "14px",
1141
1226
  color: "currentColor"
1142
1227
  }) : t;
1143
1228
  }
1144
- var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ u(_, {
1229
+ var ke = "\0action", Ae = ({ items: e, size: t = "default", overflow: n = "wrap", className: r = "", separator: i = /* @__PURE__ */ d(v, {
1145
1230
  size: 14,
1146
1231
  color: "currentColor"
1147
- }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ u("nav", {
1232
+ }), renderLink: a, "aria-label": o = "Breadcrumb" }) => /* @__PURE__ */ d("nav", {
1148
1233
  "aria-label": o,
1149
- className: `${H.root} ${H[t]} ${n === "truncate" ? H.truncate : ""} ${r}`,
1150
- children: /* @__PURE__ */ u("ol", {
1151
- className: H.list,
1152
- children: e.map((t, r) => /* @__PURE__ */ d("li", {
1153
- className: H.item,
1154
- children: [r > 0 && /* @__PURE__ */ u("span", {
1155
- className: H.separator,
1234
+ className: `${W.root} ${W[t]} ${n === "truncate" ? W.truncate : ""} ${r}`,
1235
+ children: /* @__PURE__ */ d("ol", {
1236
+ className: W.list,
1237
+ children: e.map((t, r) => /* @__PURE__ */ f("li", {
1238
+ className: W.item,
1239
+ children: [r > 0 && /* @__PURE__ */ d("span", {
1240
+ className: W.separator,
1156
1241
  "aria-hidden": "true",
1157
1242
  children: i
1158
- }), /* @__PURE__ */ d("div", {
1159
- className: `${H.step} ${t.switcher ? H.switchable : ""}`,
1243
+ }), /* @__PURE__ */ f("div", {
1244
+ className: `${W.step} ${t.switcher ? W.switchable : ""}`,
1160
1245
  children: [t.href ? (() => {
1161
1246
  let i = {
1162
- className: H.label,
1247
+ className: W.label,
1163
1248
  href: t.href,
1164
1249
  title: n === "truncate" ? t.label : void 0,
1165
1250
  onClick: t.onClick,
1166
1251
  "aria-current": r === e.length - 1 ? "page" : void 0,
1167
- children: /* @__PURE__ */ d(l, { children: [t.icon && /* @__PURE__ */ u("span", {
1168
- className: H.icon,
1252
+ children: /* @__PURE__ */ f(u, { children: [t.icon && /* @__PURE__ */ d("span", {
1253
+ className: W.icon,
1169
1254
  "aria-hidden": "true",
1170
- children: ke(t.icon)
1171
- }), /* @__PURE__ */ u("span", {
1172
- className: H.text,
1255
+ children: Oe(t.icon)
1256
+ }), /* @__PURE__ */ d("span", {
1257
+ className: W.text,
1173
1258
  children: t.label
1174
1259
  })] })
1175
1260
  };
1176
- return a ? a(t, i) : /* @__PURE__ */ u("a", { ...i });
1177
- })() : /* @__PURE__ */ d("span", {
1178
- className: H.label,
1261
+ return a ? a(t, i) : /* @__PURE__ */ d("a", { ...i });
1262
+ })() : /* @__PURE__ */ f("span", {
1263
+ className: W.label,
1179
1264
  title: n === "truncate" ? t.label : void 0,
1180
1265
  "aria-current": r === e.length - 1 ? "page" : void 0,
1181
- children: [t.icon && /* @__PURE__ */ u("span", {
1182
- className: H.icon,
1266
+ children: [t.icon && /* @__PURE__ */ d("span", {
1267
+ className: W.icon,
1183
1268
  "aria-hidden": "true",
1184
- children: ke(t.icon)
1185
- }), /* @__PURE__ */ u("span", {
1186
- className: H.text,
1269
+ children: Oe(t.icon)
1270
+ }), /* @__PURE__ */ d("span", {
1271
+ className: W.text,
1187
1272
  children: t.label
1188
1273
  })]
1189
- }), t.switcher && /* @__PURE__ */ d(D.Root, {
1274
+ }), t.switcher && /* @__PURE__ */ f(O.Root, {
1190
1275
  value: t.switcher.value,
1191
- onValueChange: (e) => e === Ae ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1276
+ onValueChange: (e) => e === ke ? t.switcher.action?.onSelect() : t.switcher.onValueChange(e),
1192
1277
  disabled: t.switcher.disabled || t.switcher.options.length === 0 && !t.switcher.action,
1193
- children: [/* @__PURE__ */ u(D.Trigger, {
1194
- className: H.trigger,
1278
+ children: [/* @__PURE__ */ d(O.Trigger, {
1279
+ className: W.trigger,
1195
1280
  "aria-label": `${t.switcher.label}: ${t.label}`,
1196
- children: /* @__PURE__ */ u(D.Icon, {
1281
+ children: /* @__PURE__ */ d(O.Icon, {
1197
1282
  "aria-hidden": "true",
1198
- className: H.icon,
1199
- children: /* @__PURE__ */ u(y, {
1283
+ className: W.icon,
1284
+ children: /* @__PURE__ */ d(b, {
1200
1285
  size: 14,
1201
1286
  color: "currentColor"
1202
1287
  })
1203
1288
  })
1204
- }), /* @__PURE__ */ u(D.Portal, { children: /* @__PURE__ */ u(D.Content, {
1205
- className: `${z.content} ${H.menu}`,
1289
+ }), /* @__PURE__ */ d(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
1290
+ className: `${V.content} ${W.menu}`,
1206
1291
  position: "popper",
1207
1292
  align: "end",
1208
1293
  sideOffset: 4,
1209
1294
  collisionPadding: 8,
1210
- children: /* @__PURE__ */ d(D.Viewport, {
1211
- className: z.viewport,
1212
- children: [t.switcher.options.map((e) => /* @__PURE__ */ d(D.Item, {
1295
+ children: /* @__PURE__ */ f(O.Viewport, {
1296
+ className: V.viewport,
1297
+ children: [t.switcher.options.map((e) => /* @__PURE__ */ f(O.Item, {
1213
1298
  value: e.value,
1214
- className: z.item,
1299
+ className: V.item,
1215
1300
  textValue: e.label,
1216
- children: [/* @__PURE__ */ d("span", {
1217
- className: H.option,
1218
- children: [e.icon && /* @__PURE__ */ u("span", {
1219
- className: H.icon,
1301
+ children: [/* @__PURE__ */ f("span", {
1302
+ className: W.option,
1303
+ children: [e.icon && /* @__PURE__ */ d("span", {
1304
+ className: W.icon,
1220
1305
  "aria-hidden": "true",
1221
1306
  children: e.icon
1222
- }), /* @__PURE__ */ u(D.ItemText, { children: e.label })]
1223
- }), /* @__PURE__ */ u(D.ItemIndicator, {
1224
- className: z.itemIndicator,
1225
- children: /* @__PURE__ */ u(m, {
1307
+ }), /* @__PURE__ */ d(O.ItemText, { children: e.label })]
1308
+ }), /* @__PURE__ */ d(O.ItemIndicator, {
1309
+ className: V.itemIndicator,
1310
+ children: /* @__PURE__ */ d(h, {
1226
1311
  size: 12,
1227
1312
  color: "currentColor"
1228
1313
  })
1229
1314
  })]
1230
- }, e.value)), t.switcher.action && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(D.Separator, { className: H.menuDivider }), /* @__PURE__ */ u(D.Item, {
1231
- value: Ae,
1232
- className: z.item,
1315
+ }, e.value)), t.switcher.action && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(O.Separator, { className: W.menuDivider }), /* @__PURE__ */ d(O.Item, {
1316
+ value: ke,
1317
+ className: V.item,
1233
1318
  textValue: t.switcher.action.label,
1234
- children: /* @__PURE__ */ d("span", {
1235
- className: H.option,
1236
- children: [/* @__PURE__ */ u("span", {
1237
- className: H.icon,
1319
+ children: /* @__PURE__ */ f("span", {
1320
+ className: W.option,
1321
+ children: [/* @__PURE__ */ d("span", {
1322
+ className: W.icon,
1238
1323
  "aria-hidden": "true",
1239
- children: /* @__PURE__ */ u(x, {
1324
+ children: /* @__PURE__ */ d(S, {
1240
1325
  size: 14,
1241
1326
  color: "currentColor"
1242
1327
  })
1243
- }), /* @__PURE__ */ u(D.ItemText, { children: t.switcher.action.label })]
1328
+ }), /* @__PURE__ */ d(O.ItemText, { children: t.switcher.action.label })]
1244
1329
  })
1245
1330
  })] })]
1246
1331
  })
@@ -1249,7 +1334,7 @@ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap"
1249
1334
  })]
1250
1335
  }, t.id))
1251
1336
  })
1252
- }), Me = {
1337
+ }), je = {
1253
1338
  wrapper: "_wrapper_1a9jo_1",
1254
1339
  track: "_track_1a9jo_8",
1255
1340
  fill: "_fill_1a9jo_36",
@@ -1257,42 +1342,43 @@ var Ae = "\0action", je = ({ items: e, size: t = "default", overflow: n = "wrap"
1257
1342
  };
1258
1343
  //#endregion
1259
1344
  //#region src/components/ProgressBar/ProgressBar.tsx
1260
- function Ne({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1345
+ function Me({ value: e, showLabel: t = !1, fulfilledColor: n = !1, className: r = "" }) {
1261
1346
  let i = Math.min(100, Math.max(0, e)), a = `${Math.round(i)}%`, o = n && i >= 100 ? "var(--CPureBlue)" : void 0;
1262
- return /* @__PURE__ */ d("div", {
1263
- className: `${Me.wrapper} ${r}`,
1347
+ return /* @__PURE__ */ f("div", {
1348
+ className: `${je.wrapper} ${r}`,
1264
1349
  role: "progressbar",
1265
1350
  "aria-valuenow": i,
1266
1351
  "aria-valuemin": 0,
1267
1352
  "aria-valuemax": 100,
1268
- children: [/* @__PURE__ */ u("div", {
1269
- className: Me.track,
1270
- children: /* @__PURE__ */ u("div", {
1271
- className: Me.fill,
1353
+ children: [/* @__PURE__ */ d("div", {
1354
+ className: je.track,
1355
+ children: /* @__PURE__ */ d("div", {
1356
+ className: je.fill,
1272
1357
  style: {
1273
1358
  width: `${i}%`,
1274
1359
  backgroundColor: o
1275
1360
  }
1276
1361
  })
1277
- }), t && /* @__PURE__ */ u("span", {
1278
- className: Me.label,
1362
+ }), t && /* @__PURE__ */ d("span", {
1363
+ className: je.label,
1279
1364
  "aria-hidden": "true",
1280
1365
  children: a
1281
1366
  })]
1282
1367
  });
1283
1368
  }
1284
- var Pe = {
1369
+ var Ne = {
1285
1370
  chip: "_chip_iaxe0_1",
1286
1371
  large: "_large_iaxe0_14"
1287
1372
  };
1288
1373
  //#endregion
1289
1374
  //#region src/components/Chip/Chip.tsx
1290
- function Fe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1375
+ function Pe({ children: t, color: n, textColor: r, className: i, icon: a, size: o = "default" }) {
1291
1376
  let s = {};
1292
- return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ d("span", {
1377
+ return n && (s.backgroundColor = n), r && (s.color = r), /* @__PURE__ */ f("span", {
1293
1378
  className: [
1294
- Pe.chip,
1295
- o === "large" && Pe.large,
1379
+ Ne.chip,
1380
+ "indx-chip",
1381
+ o === "large" && Ne.large,
1296
1382
  i
1297
1383
  ].filter(Boolean).join(" "),
1298
1384
  style: s,
@@ -1302,7 +1388,7 @@ function Fe({ children: t, color: n, textColor: r, className: i, icon: a, size:
1302
1388
  }), t]
1303
1389
  });
1304
1390
  }
1305
- var U = {
1391
+ var G = {
1306
1392
  root: "_root_ok48u_3",
1307
1393
  icon: "_icon_ok48u_16",
1308
1394
  body: "_body_ok48u_17",
@@ -1313,77 +1399,77 @@ var U = {
1313
1399
  success: "_success_ok48u_24",
1314
1400
  warning: "_warning_ok48u_25",
1315
1401
  destructive: "_destructive_ok48u_26"
1316
- }, Ie = {
1317
- success: /* @__PURE__ */ u(m, {}),
1318
- warning: /* @__PURE__ */ u(w, {}),
1319
- destructive: /* @__PURE__ */ u(w, {})
1402
+ }, Fe = {
1403
+ success: /* @__PURE__ */ d(h, {}),
1404
+ warning: /* @__PURE__ */ d(T, {}),
1405
+ destructive: /* @__PURE__ */ d(T, {})
1320
1406
  };
1321
- function Le(t) {
1407
+ function Ie(t) {
1322
1408
  return e.isValidElement(t) ? e.cloneElement(t, {
1323
1409
  size: 16,
1324
1410
  color: "currentColor"
1325
1411
  }) : t;
1326
1412
  }
1327
- var Re = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1328
- let a = t === void 0 ? Ie[e] : t;
1329
- return /* @__PURE__ */ d("div", {
1413
+ var Le = ({ variant: e = "default", icon: t, className: n = "", children: r, role: i }) => {
1414
+ let a = t === void 0 ? Fe[e] : t;
1415
+ return /* @__PURE__ */ f("div", {
1330
1416
  role: i ?? (e === "destructive" || e === "warning" ? "alert" : "status"),
1331
- className: `${U.root} ${U[e]} ${n}`,
1332
- children: [a && /* @__PURE__ */ u("span", {
1333
- className: U.icon,
1417
+ className: `${G.root} ${G[e]} ${n}`,
1418
+ children: [a && /* @__PURE__ */ d("span", {
1419
+ className: G.icon,
1334
1420
  "aria-hidden": "true",
1335
- children: Le(a)
1336
- }), /* @__PURE__ */ u("div", {
1337
- className: U.body,
1421
+ children: Ie(a)
1422
+ }), /* @__PURE__ */ d("div", {
1423
+ className: G.body,
1338
1424
  children: r
1339
1425
  })]
1340
1426
  });
1341
- }, ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1342
- className: `${U.title} ${t}`,
1427
+ }, Re = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
1428
+ className: `${G.title} ${t}`,
1343
1429
  children: e
1344
- }), Be = ({ children: e, className: t = "" }) => /* @__PURE__ */ u("div", {
1345
- className: `${U.description} ${t}`,
1430
+ }), ze = ({ children: e, className: t = "" }) => /* @__PURE__ */ d("div", {
1431
+ className: `${G.description} ${t}`,
1346
1432
  children: e
1347
- }), Ve = {
1433
+ }), Be = {
1348
1434
  root: "_root_1aak8_10",
1349
1435
  main: "_main_1aak8_33",
1350
1436
  aside: "_aside_1aak8_34",
1351
1437
  message: "_message_1aak8_41"
1352
- }, He = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ d("div", {
1438
+ }, Ve = ({ visible: e = !0, message: t, aside: n, children: r, className: i = "", "aria-label": a = "Unsaved changes" }) => e ? /* @__PURE__ */ f("div", {
1353
1439
  role: "region",
1354
1440
  "aria-label": a,
1355
- className: `${Ve.root} ${i}`,
1356
- children: [/* @__PURE__ */ d("div", {
1357
- className: Ve.main,
1358
- children: [r, t && /* @__PURE__ */ u("span", {
1359
- className: Ve.message,
1441
+ className: `${Be.root} ${i}`,
1442
+ children: [/* @__PURE__ */ f("div", {
1443
+ className: Be.main,
1444
+ children: [r, t && /* @__PURE__ */ d("span", {
1445
+ className: Be.message,
1360
1446
  children: t
1361
1447
  })]
1362
- }), n && /* @__PURE__ */ u("div", {
1363
- className: Ve.aside,
1448
+ }), n && /* @__PURE__ */ d("div", {
1449
+ className: Be.aside,
1364
1450
  children: n
1365
1451
  })]
1366
- }) : null, Ue = {
1452
+ }) : null, He = {
1367
1453
  tooltip: "_tooltip_1de7z_1",
1368
1454
  arrow: "_arrow_1de7z_13"
1369
1455
  };
1370
1456
  //#endregion
1371
1457
  //#region src/components/Tooltip/Tooltip.tsx
1372
- function We({ content: e, position: t = "top", children: n, className: r }) {
1373
- return /* @__PURE__ */ u(k.Provider, {
1458
+ function Ue({ content: e, position: t = "top", children: n, className: r }) {
1459
+ return /* @__PURE__ */ d(A.Provider, {
1374
1460
  delayDuration: 80,
1375
- children: /* @__PURE__ */ d(k.Root, { children: [/* @__PURE__ */ u(k.Trigger, {
1461
+ children: /* @__PURE__ */ f(A.Root, { children: [/* @__PURE__ */ d(A.Trigger, {
1376
1462
  asChild: !0,
1377
1463
  children: n
1378
- }), /* @__PURE__ */ u(k.Portal, { children: /* @__PURE__ */ d(k.Content, {
1464
+ }), /* @__PURE__ */ d(A.Portal, { children: /* @__PURE__ */ f(A.Content, {
1379
1465
  side: t,
1380
1466
  sideOffset: 7,
1381
- className: [Ue.tooltip, r].filter(Boolean).join(" "),
1382
- children: [e, /* @__PURE__ */ u(k.Arrow, { className: Ue.arrow })]
1467
+ className: [He.tooltip, r].filter(Boolean).join(" "),
1468
+ children: [e, /* @__PURE__ */ d(A.Arrow, { className: He.arrow })]
1383
1469
  }) })] })
1384
1470
  });
1385
1471
  }
1386
- var W = {
1472
+ var K = {
1387
1473
  wrapper: "_wrapper_1wrxy_1",
1388
1474
  chart: "_chart_1wrxy_8",
1389
1475
  svg: "_svg_1wrxy_33",
@@ -1400,34 +1486,34 @@ var W = {
1400
1486
  marker: "_marker_1wrxy_111",
1401
1487
  tooltipMarker: "_tooltipMarker_1wrxy_115",
1402
1488
  markerDot: "_markerDot_1wrxy_119"
1403
- }, Ge = "var(--lv4)", G = 12, Ke = 20, qe = 8, Je = 28, K = 20;
1404
- function Ye(e) {
1489
+ }, We = "var(--lv4)", q = 12, Ge = 20, Ke = 8, qe = 28, J = 20;
1490
+ function Je(e) {
1405
1491
  return Number.isInteger(e) ? String(e) : e.toLocaleString(void 0, { maximumFractionDigits: 2 });
1406
1492
  }
1407
- function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: l, markers: f }) {
1408
- let p = s(null), [m, h] = c(0), [g, _] = c(null);
1493
+ function Ye({ series: e, labels: t, type: n = "line", height: a = 200, showLegend: o = !0, className: s, markers: u }) {
1494
+ let p = c(null), [m, h] = l(0), [g, _] = l(null);
1409
1495
  i(() => {
1410
1496
  let e = p.current;
1411
1497
  if (!e) return;
1412
1498
  let t = new ResizeObserver(([e]) => h(e.contentRect.width));
1413
1499
  return t.observe(e), h(e.clientWidth), () => t.disconnect();
1414
1500
  }, []);
1415
- 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 = (() => {
1501
+ let v = t?.length ? qe : Ke, y = Math.max(m - J - Ge, 0), b = Math.max(a - q - 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 = (() => {
1416
1502
  if (!t || t.length <= 1 || y <= 0) return 1;
1417
1503
  let e = Math.max(...t.map((e) => e.length)) * 6 + 12, n = Math.max(Math.floor(y / e), 1);
1418
1504
  return Math.ceil(t.length / n);
1419
- })(), 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) => {
1505
+ })(), D = T <= 1 || y / (T - 1) >= 12, O = (e) => q + (1 - (e - C) / w) * b, k = (e) => T <= 1 ? J + y / 2 : J + e / (T - 1) * y, A = r((e) => {
1420
1506
  if (T === 0) return;
1421
1507
  let t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, i = e.clientY - t.top;
1422
1508
  if (n === "line") {
1423
- let e = Math.round((r - K) / y * (T - 1));
1509
+ let e = Math.round((r - J) / y * (T - 1));
1424
1510
  _({
1425
1511
  index: Math.max(0, Math.min(T - 1, e)),
1426
1512
  x: r,
1427
1513
  y: i
1428
1514
  });
1429
1515
  } else {
1430
- let e = y / T, t = Math.floor((r - K) / e);
1516
+ let e = y / T, t = Math.floor((r - J) / e);
1431
1517
  _({
1432
1518
  index: Math.max(0, Math.min(T - 1, t)),
1433
1519
  x: r,
@@ -1440,33 +1526,33 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1440
1526
  y
1441
1527
  ]), j = r((e) => {
1442
1528
  e.pointerType === "mouse" && _(null);
1443
- }, []), ee = /* @__PURE__ */ u("line", {
1444
- x1: K,
1445
- y1: G + b * .5,
1446
- x2: K + y,
1447
- y2: G + b * .5,
1529
+ }, []), M = /* @__PURE__ */ d("line", {
1530
+ x1: J,
1531
+ y1: q + b * .5,
1532
+ x2: J + y,
1533
+ y2: q + b * .5,
1448
1534
  stroke: "var(--chart-midline)",
1449
1535
  strokeWidth: "0.5"
1450
- }), te = /* @__PURE__ */ u("line", {
1451
- x1: K,
1452
- y1: G + b,
1453
- x2: K + y,
1454
- y2: G + b,
1536
+ }), N = /* @__PURE__ */ d("line", {
1537
+ x1: J,
1538
+ y1: q + b,
1539
+ x2: J + y,
1540
+ y2: q + b,
1455
1541
  stroke: "var(--chart-baseline)",
1456
1542
  strokeWidth: "1"
1457
- }), ne = g && n === "bar" ? (() => {
1543
+ }), P = g && n === "bar" ? (() => {
1458
1544
  let e = y / T;
1459
- return /* @__PURE__ */ u("rect", {
1460
- x: K + g.index * e,
1461
- y: G,
1545
+ return /* @__PURE__ */ d("rect", {
1546
+ x: J + g.index * e,
1547
+ y: q,
1462
1548
  width: e,
1463
1549
  height: b,
1464
1550
  fill: "var(--chart-column-hover)"
1465
1551
  });
1466
- })() : null, re = () => e.map((e, t) => {
1552
+ })() : null, ee = () => e.map((e, t) => {
1467
1553
  if (!e.data.length) return null;
1468
- let n = e.color ?? Ge;
1469
- return /* @__PURE__ */ d("g", { children: [/* @__PURE__ */ u("polyline", {
1554
+ let n = e.color ?? We;
1555
+ return /* @__PURE__ */ f("g", { children: [/* @__PURE__ */ d("polyline", {
1470
1556
  points: e.data.map((e, t) => `${k(t).toFixed(2)},${O(e).toFixed(2)}`).join(" "),
1471
1557
  fill: "none",
1472
1558
  stroke: n,
@@ -1477,7 +1563,7 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1477
1563
  let r = g?.index === t;
1478
1564
  if (!r && !D) return null;
1479
1565
  let i = r ? D ? 10 : 7 : 5, a = i / 2;
1480
- return /* @__PURE__ */ u("rect", {
1566
+ return /* @__PURE__ */ d("rect", {
1481
1567
  x: k(t) - a,
1482
1568
  y: O(e) - a,
1483
1569
  width: i,
@@ -1485,12 +1571,12 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1485
1571
  fill: n
1486
1572
  }, t);
1487
1573
  })] }, t);
1488
- }), ie = () => {
1574
+ }), te = () => {
1489
1575
  if (!T) return null;
1490
- let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i = G + b;
1576
+ let t = e.length, n = y / T, r = Math.max((n - 2 * (t + 1)) / t, 2), i = q + b;
1491
1577
  return e.map((e, t) => e.data.map((a, o) => {
1492
- let s = K + o * n + 2 + t * (r + 2), c = O(a);
1493
- return /* @__PURE__ */ u("rect", {
1578
+ let s = J + o * n + 2 + t * (r + 2), c = O(a);
1579
+ return /* @__PURE__ */ d("rect", {
1494
1580
  x: s,
1495
1581
  y: c,
1496
1582
  width: r,
@@ -1498,29 +1584,29 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1498
1584
  fill: e.color ?? "var(--chart-bar)"
1499
1585
  }, `${t}-${o}`);
1500
1586
  }));
1501
- }, M = () => {
1587
+ }, F = () => {
1502
1588
  if (!t?.length) return null;
1503
- let e = G + b + 18, r = t.length - 1;
1504
- return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ u("text", {
1505
- x: n === "line" ? k(i) : K + (i + .5) * (y / T),
1589
+ let e = q + b + 18, r = t.length - 1;
1590
+ return t.map((t, i) => (r - i) % E === 0 ? /* @__PURE__ */ d("text", {
1591
+ x: n === "line" ? k(i) : J + (i + .5) * (y / T),
1506
1592
  y: e,
1507
1593
  textAnchor: n !== "line" || r === 0 ? "middle" : i === 0 ? "start" : i === r ? "end" : "middle",
1508
1594
  fill: "var(--lv4)",
1509
1595
  style: { font: "var(--text-2xs)" },
1510
1596
  children: t
1511
1597
  }, i) : null);
1512
- }, N = g && n === "line" ? /* @__PURE__ */ u("line", {
1598
+ }, I = g && n === "line" ? /* @__PURE__ */ d("line", {
1513
1599
  x1: k(g.index),
1514
- y1: G,
1600
+ y1: q,
1515
1601
  x2: k(g.index),
1516
- y2: G + b,
1602
+ y2: q + b,
1517
1603
  stroke: "var(--chart-crosshair)",
1518
1604
  strokeWidth: "1",
1519
1605
  strokeDasharray: "3 3"
1520
- }) : null, ae = g ? (() => {
1606
+ }) : null, L = g ? (() => {
1521
1607
  let n = t?.[g.index] ?? String(g.index + 1), r = Math.min(Math.max(g.x, 60), m - 60);
1522
- return /* @__PURE__ */ d("div", {
1523
- className: W.tooltip,
1608
+ return /* @__PURE__ */ f("div", {
1609
+ className: K.tooltip,
1524
1610
  style: g.y < 80 ? {
1525
1611
  left: r,
1526
1612
  top: g.y + 12,
@@ -1531,85 +1617,85 @@ function Xe({ series: e, labels: t, type: n = "line", height: a = 200, showLegen
1531
1617
  transform: "translate(-50%, -100%)"
1532
1618
  },
1533
1619
  children: [
1534
- /* @__PURE__ */ u("div", {
1535
- className: W.tooltipLabel,
1620
+ /* @__PURE__ */ d("div", {
1621
+ className: K.tooltipLabel,
1536
1622
  children: n
1537
1623
  }),
1538
- e.map((e, t) => /* @__PURE__ */ d("div", {
1539
- className: W.tooltipRow,
1624
+ e.map((e, t) => /* @__PURE__ */ f("div", {
1625
+ className: K.tooltipRow,
1540
1626
  children: [
1541
- /* @__PURE__ */ u("span", {
1542
- className: W.tooltipDot,
1543
- style: { background: e.color ?? Ge }
1627
+ /* @__PURE__ */ d("span", {
1628
+ className: K.tooltipDot,
1629
+ style: { background: e.color ?? We }
1544
1630
  }),
1545
- /* @__PURE__ */ u("span", {
1546
- className: W.tooltipName,
1631
+ /* @__PURE__ */ d("span", {
1632
+ className: K.tooltipName,
1547
1633
  children: e.label
1548
1634
  }),
1549
- /* @__PURE__ */ u("span", {
1550
- className: W.tooltipValue,
1551
- children: Ye(e.data[g.index] ?? 0)
1635
+ /* @__PURE__ */ d("span", {
1636
+ className: K.tooltipValue,
1637
+ children: Je(e.data[g.index] ?? 0)
1552
1638
  })
1553
1639
  ]
1554
1640
  }, t)),
1555
- f?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ d("div", {
1556
- className: `${W.tooltipRow} ${W.tooltipMarker}`,
1557
- children: [/* @__PURE__ */ u("span", { className: `${W.tooltipDot} ${W.markerDot}` }), /* @__PURE__ */ u("span", {
1558
- className: W.tooltipName,
1641
+ u?.filter((e) => e.index === g.index).map((e, t) => /* @__PURE__ */ f("div", {
1642
+ className: `${K.tooltipRow} ${K.tooltipMarker}`,
1643
+ children: [/* @__PURE__ */ d("span", { className: `${K.tooltipDot} ${K.markerDot}` }), /* @__PURE__ */ d("span", {
1644
+ className: K.tooltipName,
1559
1645
  children: e.label
1560
1646
  })]
1561
1647
  }, `m${t}`))
1562
1648
  ]
1563
1649
  });
1564
1650
  })() : null;
1565
- return /* @__PURE__ */ d("div", {
1566
- className: [W.wrapper, l].filter(Boolean).join(" "),
1567
- children: [/* @__PURE__ */ d("div", {
1651
+ return /* @__PURE__ */ f("div", {
1652
+ className: [K.wrapper, s].filter(Boolean).join(" "),
1653
+ children: [/* @__PURE__ */ f("div", {
1568
1654
  ref: p,
1569
- className: W.chart,
1655
+ className: K.chart,
1570
1656
  style: { height: a },
1571
- children: [m > 0 && /* @__PURE__ */ d("svg", {
1657
+ children: [m > 0 && /* @__PURE__ */ f("svg", {
1572
1658
  width: m,
1573
1659
  height: a,
1574
- className: W.svg,
1660
+ className: K.svg,
1575
1661
  onPointerMove: A,
1576
1662
  onPointerDown: A,
1577
1663
  onPointerLeave: j,
1578
1664
  children: [
1579
- ee,
1580
- te,
1581
- ne,
1665
+ M,
1582
1666
  N,
1583
- n === "line" ? re() : ie(),
1584
- f && T > 0 && [...new Set(f.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
1585
- let t = n === "line" ? k(e) : K + (e + .5) * (y / T);
1586
- return /* @__PURE__ */ u("rect", {
1587
- className: W.marker,
1667
+ P,
1668
+ I,
1669
+ n === "line" ? ee() : te(),
1670
+ u && T > 0 && [...new Set(u.map((e) => e.index).filter((e) => e >= 0 && e < T))].map((e) => {
1671
+ let t = n === "line" ? k(e) : J + (e + .5) * (y / T);
1672
+ return /* @__PURE__ */ d("rect", {
1673
+ className: K.marker,
1588
1674
  x: t - 3,
1589
- y: G + b - 3,
1675
+ y: q + b - 3,
1590
1676
  width: 6,
1591
1677
  height: 6
1592
1678
  }, `m${e}`);
1593
1679
  }),
1594
- M()
1680
+ F()
1595
1681
  ]
1596
- }), ae]
1597
- }), o && e.length > 1 && /* @__PURE__ */ u("div", {
1598
- className: W.legend,
1599
- children: e.map((e, t) => /* @__PURE__ */ d("div", {
1600
- className: W.legendItem,
1601
- children: [/* @__PURE__ */ u("div", {
1602
- className: W.legendMark,
1603
- style: { background: e.color ?? Ge }
1604
- }), /* @__PURE__ */ u("span", {
1605
- className: W.legendLabel,
1682
+ }), L]
1683
+ }), o && e.length > 1 && /* @__PURE__ */ d("div", {
1684
+ className: K.legend,
1685
+ children: e.map((e, t) => /* @__PURE__ */ f("div", {
1686
+ className: K.legendItem,
1687
+ children: [/* @__PURE__ */ d("div", {
1688
+ className: K.legendMark,
1689
+ style: { background: e.color ?? We }
1690
+ }), /* @__PURE__ */ d("span", {
1691
+ className: K.legendLabel,
1606
1692
  children: e.label
1607
1693
  })]
1608
1694
  }, t))
1609
1695
  })]
1610
1696
  });
1611
1697
  }
1612
- var q = {
1698
+ var Y = {
1613
1699
  sparkline: "_sparkline_fqcg9_4",
1614
1700
  line: "_line_fqcg9_12",
1615
1701
  partial: "_partial_fqcg9_22",
@@ -1617,65 +1703,93 @@ var q = {
1617
1703
  bars: "_bars_fqcg9_34",
1618
1704
  bar: "_bar_fqcg9_34",
1619
1705
  baseline: "_baseline_fqcg9_48"
1620
- }, Ze = 100, J = 100;
1621
- 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 }) {
1622
- 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", {
1623
- className: [q.sparkline, p].filter(Boolean).join(" "),
1706
+ }, Xe = 100, Ze = 100;
1707
+ function Qe({ values: e, type: t = "line", width: n = "100%", height: r = 24, color: i = "currentColor", fill: o = !1, baseline: s = !1, lastIsPartial: c = !1, gap: l = 1, idleColor: p, ariaLabel: m, className: h }) {
1708
+ let g = `spark-${a().replace(/:/g, "")}`, _ = e.filter((e) => Number.isFinite(e)), v = m == null, y = _.length ? Math.max(..._) : 0, b = _.length ? Math.min(..._) : 0, x = y - b || 1, S = Ze - 12, C = (e) => 94 - (e - b) / x * S, w = (e) => /* @__PURE__ */ f("svg", {
1709
+ className: [Y.sparkline, h].filter(Boolean).join(" "),
1624
1710
  style: {
1625
1711
  width: n,
1626
1712
  height: r,
1627
1713
  color: i
1628
1714
  },
1629
- viewBox: `0 0 ${Ze} ${J}`,
1715
+ viewBox: `0 0 ${Xe} ${Ze}`,
1630
1716
  preserveAspectRatio: "none",
1631
- role: h ? void 0 : "img",
1632
- "aria-label": f,
1633
- "aria-hidden": h || void 0,
1717
+ role: v ? void 0 : "img",
1718
+ "aria-label": m,
1719
+ "aria-hidden": v || void 0,
1634
1720
  focusable: "false",
1635
- children: [e, o && /* @__PURE__ */ u("line", {
1721
+ children: [e, s && /* @__PURE__ */ d("line", {
1636
1722
  x1: "0",
1637
- y1: J - .5,
1638
- x2: Ze,
1639
- y2: J - .5,
1640
- className: q.baseline,
1723
+ y1: Ze - .5,
1724
+ x2: Xe,
1725
+ y2: Ze - .5,
1726
+ className: Y.baseline,
1641
1727
  vectorEffect: "non-scaling-stroke"
1642
1728
  })]
1643
1729
  });
1644
- if (m.length < 2) return x(null);
1645
- if (t === "bar") return /* @__PURE__ */ u("div", {
1646
- className: [q.bars, p].filter(Boolean).join(" "),
1730
+ if (_.length < 2) return w(null);
1731
+ if (t === "bar") return /* @__PURE__ */ d("div", {
1732
+ className: [Y.bars, h].filter(Boolean).join(" "),
1647
1733
  style: {
1648
1734
  width: n,
1649
1735
  height: r,
1650
1736
  color: i,
1651
- gap: c,
1652
- borderBottomWidth: +!!o
1737
+ gap: l,
1738
+ borderBottomWidth: +!!s
1653
1739
  },
1654
- role: h ? void 0 : "img",
1655
- "aria-label": f,
1656
- "aria-hidden": h || void 0,
1657
- children: m.map((e, t) => /* @__PURE__ */ u("span", {
1658
- className: q.bar,
1659
- style: { height: `${Math.max((e - _) / v * 100, 2)}%` }
1740
+ role: v ? void 0 : "img",
1741
+ "aria-label": m,
1742
+ "aria-hidden": v || void 0,
1743
+ children: _.map((e, t) => /* @__PURE__ */ d("span", {
1744
+ className: Y.bar,
1745
+ style: { height: `${Math.max((e - b) / x * 100, 2)}%` }
1660
1746
  }, t))
1661
1747
  });
1662
- 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);
1663
- return x(/* @__PURE__ */ d(l, { children: [a && /* @__PURE__ */ u("polygon", {
1664
- className: q.fill,
1665
- points: `0,${J} ${w} ${Ze},${J}`
1666
- }), s ? /* @__PURE__ */ d(l, { children: [m.length > 2 && /* @__PURE__ */ u("polyline", {
1667
- className: q.line,
1668
- points: C(0, m.length - 1),
1669
- vectorEffect: "non-scaling-stroke"
1670
- }), /* @__PURE__ */ u("polyline", {
1671
- className: `${q.line} ${q.partial}`,
1672
- points: C(m.length - 2, 2),
1673
- vectorEffect: "non-scaling-stroke"
1674
- })] }) : /* @__PURE__ */ u("polyline", {
1675
- className: q.line,
1676
- points: w,
1677
- vectorEffect: "non-scaling-stroke"
1678
- })] }));
1748
+ let T = Xe / (_.length - 1), E = (e, t) => _.slice(e, e + t).map((t, n) => `${(e + n) * T},${C(t)}`).join(" "), D = E(0, _.length), O = p != null && _.some((e) => e === 0), k = O ? { stroke: `url(#${g})` } : void 0, A = O ? { fill: `url(#${g})` } : void 0;
1749
+ return w(/* @__PURE__ */ f(u, { children: [
1750
+ O && /* @__PURE__ */ d("defs", { children: /* @__PURE__ */ d("linearGradient", {
1751
+ id: g,
1752
+ gradientUnits: "userSpaceOnUse",
1753
+ x1: "0",
1754
+ y1: "0",
1755
+ x2: Xe,
1756
+ y2: "0",
1757
+ children: (() => {
1758
+ let e = _.length - 1, t = (e) => _[e] === 0 && _[e + 1] === 0 ? p : "currentColor", n = .2 / e;
1759
+ return Array.from({ length: e }, (r, i) => {
1760
+ let a = t(i), o = i / e + (i > 0 && t(i - 1) !== a ? n : 0), s = (i + 1) / e - (i < e - 1 && t(i + 1) !== a ? n : 0);
1761
+ return [/* @__PURE__ */ d("stop", {
1762
+ offset: o,
1763
+ style: { stopColor: a }
1764
+ }, `${i}a`), /* @__PURE__ */ d("stop", {
1765
+ offset: s,
1766
+ style: { stopColor: a }
1767
+ }, `${i}b`)];
1768
+ }).flat();
1769
+ })()
1770
+ }) }),
1771
+ o && /* @__PURE__ */ d("polygon", {
1772
+ className: Y.fill,
1773
+ points: `0,${Ze} ${D} ${Xe},${Ze}`,
1774
+ style: A
1775
+ }),
1776
+ c ? /* @__PURE__ */ f(u, { children: [_.length > 2 && /* @__PURE__ */ d("polyline", {
1777
+ className: Y.line,
1778
+ points: E(0, _.length - 1),
1779
+ vectorEffect: "non-scaling-stroke",
1780
+ style: k
1781
+ }), /* @__PURE__ */ d("polyline", {
1782
+ className: `${Y.line} ${Y.partial}`,
1783
+ points: E(_.length - 2, 2),
1784
+ vectorEffect: "non-scaling-stroke",
1785
+ style: k
1786
+ })] }) : /* @__PURE__ */ d("polyline", {
1787
+ className: Y.line,
1788
+ points: D,
1789
+ vectorEffect: "non-scaling-stroke",
1790
+ style: k
1791
+ })
1792
+ ] }));
1679
1793
  }
1680
1794
  var $e = {
1681
1795
  wrapper: "_wrapper_17ws4_1",
@@ -1687,28 +1801,28 @@ var $e = {
1687
1801
  //#endregion
1688
1802
  //#region src/components/Textarea/Textarea.tsx
1689
1803
  function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, rows: o = 4, ...s }) {
1690
- let c = e.useId(), l = a || c, f = `${l}-error`, p = n || !i;
1691
- return /* @__PURE__ */ d("div", {
1804
+ let c = e.useId(), l = a || c, u = `${l}-error`, p = n || !i;
1805
+ return /* @__PURE__ */ f("div", {
1692
1806
  className: `${$e.wrapper} ${r}`,
1693
1807
  children: [
1694
- t && /* @__PURE__ */ d("label", {
1808
+ t && /* @__PURE__ */ f("label", {
1695
1809
  htmlFor: l,
1696
1810
  className: $e.label,
1697
- children: [t, s.required && /* @__PURE__ */ u("span", {
1811
+ children: [t, s.required && /* @__PURE__ */ d("span", {
1698
1812
  "aria-label": "required",
1699
1813
  children: " *"
1700
1814
  })]
1701
1815
  }),
1702
- /* @__PURE__ */ u("textarea", {
1816
+ /* @__PURE__ */ d("textarea", {
1703
1817
  id: l,
1704
1818
  rows: o,
1705
1819
  className: `${$e.textarea} ${p ? $e.error : ""}`,
1706
1820
  "aria-invalid": p ? "true" : "false",
1707
- "aria-describedby": n ? f : void 0,
1821
+ "aria-describedby": n ? u : void 0,
1708
1822
  ...s
1709
1823
  }),
1710
- n && /* @__PURE__ */ u("span", {
1711
- id: f,
1824
+ n && /* @__PURE__ */ d("span", {
1825
+ id: u,
1712
1826
  className: $e.errorText,
1713
1827
  role: "alert",
1714
1828
  children: n
@@ -1716,34 +1830,34 @@ function et({ label: t, error: n, className: r = "", isValid: i = !0, id: a, row
1716
1830
  ]
1717
1831
  });
1718
1832
  }
1719
- var Y = {
1833
+ var tt = {
1720
1834
  overlay: "_overlay_xud7c_1",
1721
1835
  content: "_content_xud7c_8",
1722
1836
  title: "_title_xud7c_26",
1723
1837
  description: "_description_xud7c_34",
1724
1838
  close: "_close_xud7c_40",
1725
1839
  srOnly: "_srOnly_xud7c_62"
1726
- }, tt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ d(A.Root, {
1840
+ }, nt = ({ trigger: e, children: t, open: n, onOpenChange: r, title: i, description: a, className: o = "", showClose: s = !0 }) => /* @__PURE__ */ f(j.Root, {
1727
1841
  open: n,
1728
1842
  onOpenChange: r,
1729
- children: [e && /* @__PURE__ */ u(A.Trigger, {
1843
+ children: [e && /* @__PURE__ */ d(j.Trigger, {
1730
1844
  asChild: !0,
1731
1845
  children: e
1732
- }), /* @__PURE__ */ d(A.Portal, { children: [/* @__PURE__ */ u(A.Overlay, { className: Y.overlay }), /* @__PURE__ */ d(A.Content, {
1733
- className: `${Y.content} ${o}`,
1846
+ }), /* @__PURE__ */ f(j.Portal, { children: [/* @__PURE__ */ d(j.Overlay, { className: tt.overlay }), /* @__PURE__ */ f(j.Content, {
1847
+ className: `${tt.content} ${o}`,
1734
1848
  children: [
1735
- /* @__PURE__ */ u(A.Title, {
1736
- className: i ? Y.title : Y.srOnly,
1849
+ /* @__PURE__ */ d(j.Title, {
1850
+ className: i ? tt.title : tt.srOnly,
1737
1851
  children: i || "Dialog"
1738
1852
  }),
1739
- a && /* @__PURE__ */ u(A.Description, {
1740
- className: Y.description,
1853
+ a && /* @__PURE__ */ d(j.Description, {
1854
+ className: tt.description,
1741
1855
  children: a
1742
1856
  }),
1743
- s && /* @__PURE__ */ u(A.Close, {
1744
- className: Y.close,
1857
+ s && /* @__PURE__ */ d(j.Close, {
1858
+ className: tt.close,
1745
1859
  "aria-label": "Close",
1746
- children: /* @__PURE__ */ u(T, {
1860
+ children: /* @__PURE__ */ d(E, {
1747
1861
  size: 16,
1748
1862
  color: "currentColor"
1749
1863
  })
@@ -1770,7 +1884,7 @@ var Y = {
1770
1884
  today: "_today_aimna_131",
1771
1885
  selected: "_selected_aimna_136",
1772
1886
  errorText: "_errorText_aimna_142"
1773
- }, nt = [
1887
+ }, rt = [
1774
1888
  "Mo",
1775
1889
  "Tu",
1776
1890
  "We",
@@ -1778,7 +1892,7 @@ var Y = {
1778
1892
  "Fr",
1779
1893
  "Sa",
1780
1894
  "Su"
1781
- ], rt = [
1895
+ ], it = [
1782
1896
  "January",
1783
1897
  "February",
1784
1898
  "March",
@@ -1792,30 +1906,30 @@ var Y = {
1792
1906
  "November",
1793
1907
  "December"
1794
1908
  ];
1795
- function it(e) {
1909
+ function at(e) {
1796
1910
  let t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
1797
1911
  return `${e.getFullYear()}-${t}-${n}`;
1798
1912
  }
1799
- function at(e, t) {
1913
+ function ot(e, t) {
1800
1914
  return !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
1801
1915
  }
1802
- function ot(e, t) {
1916
+ function st(e, t) {
1803
1917
  let n = (new Date(e, t, 1).getDay() + 6) % 7, r = [];
1804
1918
  for (let i = 0; i < 42; i++) r.push(new Date(e, t, 1 - n + i));
1805
1919
  return r;
1806
1920
  }
1807
- 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 }) => {
1808
- 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) => {
1921
+ var ct = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", error: a, isValid: o = !0, disabled: s = !1, className: c = "", formatDate: u = at }) => {
1922
+ let p = e.useId(), m = `${p}-error`, h = !!a || !o, [y, b] = l(!1), x = /* @__PURE__ */ new Date(), S = t ?? x, [C, w] = l(S.getFullYear()), [T, E] = l(S.getMonth()), [D, O] = l(S), A = e.useRef(/* @__PURE__ */ new Map()), j = e.useRef(!1), M = (e) => {
1809
1923
  if (e) {
1810
1924
  let e = t ?? /* @__PURE__ */ new Date();
1811
- k(e), w(e.getFullYear()), E(e.getMonth());
1925
+ O(e), w(e.getFullYear()), E(e.getMonth());
1812
1926
  }
1813
1927
  b(e);
1814
1928
  };
1815
1929
  e.useEffect(() => {
1816
- j.current &&= (A.current.get(it(D))?.focus(), !1);
1930
+ j.current &&= (A.current.get(at(D))?.focus(), !1);
1817
1931
  }, [D]);
1818
- let te = (e, t) => {
1932
+ let N = (e, t) => {
1819
1933
  let n = new Date(t), r = {
1820
1934
  ArrowLeft: -1,
1821
1935
  ArrowRight: 1,
@@ -1829,101 +1943,101 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1829
1943
  let t = n.getDate();
1830
1944
  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()));
1831
1945
  } else return;
1832
- e.preventDefault(), j.current = !0, k(n), w(n.getFullYear()), E(n.getMonth());
1946
+ e.preventDefault(), j.current = !0, O(n), w(n.getFullYear()), E(n.getMonth());
1833
1947
  };
1834
1948
  e.useEffect(() => {
1835
1949
  y && t && (w(t.getFullYear()), E(t.getMonth()));
1836
1950
  }, [y]);
1837
- let ne = () => {
1951
+ let P = () => {
1838
1952
  T === 0 ? (E(11), w(C - 1)) : E(T - 1);
1839
- }, re = () => {
1953
+ }, ee = () => {
1840
1954
  T === 11 ? (E(0), w(C + 1)) : E(T + 1);
1841
- }, ie = (e) => {
1955
+ }, te = (e) => {
1842
1956
  n?.(e), b(!1);
1843
- }, M = ot(C, T);
1844
- return /* @__PURE__ */ d("div", {
1845
- className: `${X.wrapper} ${l}`,
1957
+ }, F = st(C, T);
1958
+ return /* @__PURE__ */ f("div", {
1959
+ className: `${X.wrapper} ${c}`,
1846
1960
  children: [
1847
- r && /* @__PURE__ */ u("span", {
1961
+ r && /* @__PURE__ */ d("span", {
1848
1962
  id: `${p}-label`,
1849
1963
  className: X.label,
1850
1964
  children: r
1851
1965
  }),
1852
- /* @__PURE__ */ d(O.Root, {
1966
+ /* @__PURE__ */ f(k.Root, {
1853
1967
  open: y,
1854
- onOpenChange: ee,
1855
- children: [/* @__PURE__ */ u(O.Trigger, {
1968
+ onOpenChange: M,
1969
+ children: [/* @__PURE__ */ d(k.Trigger, {
1856
1970
  asChild: !0,
1857
- children: /* @__PURE__ */ d("button", {
1971
+ children: /* @__PURE__ */ f("button", {
1858
1972
  type: "button",
1859
- className: `${X.trigger} ${v ? X.error : ""}`,
1973
+ className: `${X.trigger} ${h ? X.error : ""}`,
1860
1974
  disabled: s,
1861
1975
  "aria-labelledby": r ? `${p}-label ${p}-value` : void 0,
1862
- "aria-invalid": v ? "true" : "false",
1976
+ "aria-invalid": h ? "true" : "false",
1863
1977
  "aria-describedby": a ? m : void 0,
1864
- children: [/* @__PURE__ */ u("span", {
1978
+ children: [/* @__PURE__ */ d("span", {
1865
1979
  id: `${p}-value`,
1866
1980
  className: t ? X.valueText : X.placeholder,
1867
- children: t ? f(t) : i
1868
- }), /* @__PURE__ */ u(h, {
1981
+ children: t ? u(t) : i
1982
+ }), /* @__PURE__ */ d(g, {
1869
1983
  size: 14,
1870
1984
  color: "currentColor"
1871
1985
  })]
1872
1986
  })
1873
- }), /* @__PURE__ */ u(O.Portal, { children: /* @__PURE__ */ d(O.Content, {
1987
+ }), /* @__PURE__ */ d(k.Portal, { children: /* @__PURE__ */ f(k.Content, {
1874
1988
  className: X.calendar,
1875
1989
  align: "start",
1876
1990
  sideOffset: 5,
1877
1991
  "aria-label": r ? `${r} calendar` : "Choose a date",
1878
1992
  onOpenAutoFocus: (e) => {
1879
- e.preventDefault(), A.current.get(it(D))?.focus();
1993
+ e.preventDefault(), A.current.get(at(D))?.focus();
1880
1994
  },
1881
1995
  children: [
1882
- /* @__PURE__ */ d("div", {
1996
+ /* @__PURE__ */ f("div", {
1883
1997
  className: X.header,
1884
1998
  children: [
1885
- /* @__PURE__ */ u("button", {
1999
+ /* @__PURE__ */ d("button", {
1886
2000
  type: "button",
1887
2001
  className: X.navButton,
1888
- onClick: ne,
2002
+ onClick: P,
1889
2003
  "aria-label": "Previous month",
1890
- children: /* @__PURE__ */ u(g, {
2004
+ children: /* @__PURE__ */ d(_, {
1891
2005
  size: 14,
1892
2006
  color: "currentColor"
1893
2007
  })
1894
2008
  }),
1895
- /* @__PURE__ */ d("span", {
2009
+ /* @__PURE__ */ f("span", {
1896
2010
  className: X.monthLabel,
1897
2011
  children: [
1898
- rt[T],
2012
+ it[T],
1899
2013
  " ",
1900
2014
  C
1901
2015
  ]
1902
2016
  }),
1903
- /* @__PURE__ */ u("button", {
2017
+ /* @__PURE__ */ d("button", {
1904
2018
  type: "button",
1905
2019
  className: X.navButton,
1906
- onClick: re,
2020
+ onClick: ee,
1907
2021
  "aria-label": "Next month",
1908
- children: /* @__PURE__ */ u(_, {
2022
+ children: /* @__PURE__ */ d(v, {
1909
2023
  size: 14,
1910
2024
  color: "currentColor"
1911
2025
  })
1912
2026
  })
1913
2027
  ]
1914
2028
  }),
1915
- /* @__PURE__ */ u("div", {
2029
+ /* @__PURE__ */ d("div", {
1916
2030
  className: X.weekdays,
1917
- children: nt.map((e) => /* @__PURE__ */ u("span", {
2031
+ children: rt.map((e) => /* @__PURE__ */ d("span", {
1918
2032
  className: X.weekday,
1919
2033
  children: e
1920
2034
  }, e))
1921
2035
  }),
1922
- /* @__PURE__ */ u("div", {
2036
+ /* @__PURE__ */ d("div", {
1923
2037
  className: X.grid,
1924
- children: M.map((e) => {
1925
- let n = e.getMonth() !== T, r = at(e, t), i = at(e, x);
1926
- return /* @__PURE__ */ u("button", {
2038
+ children: F.map((e) => {
2039
+ let n = e.getMonth() !== T, r = ot(e, t), i = ot(e, x);
2040
+ return /* @__PURE__ */ d("button", {
1927
2041
  type: "button",
1928
2042
  className: [
1929
2043
  X.day,
@@ -1931,9 +2045,9 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1931
2045
  r ? X.selected : "",
1932
2046
  i && !r ? X.today : ""
1933
2047
  ].filter(Boolean).join(" "),
1934
- onClick: () => ie(e),
2048
+ onClick: () => te(e),
1935
2049
  ref: (t) => {
1936
- t ? A.current.set(it(e), t) : A.current.delete(it(e));
2050
+ t ? A.current.set(at(e), t) : A.current.delete(at(e));
1937
2051
  },
1938
2052
  "aria-label": e.toLocaleDateString(void 0, {
1939
2053
  weekday: "long",
@@ -1943,8 +2057,8 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1943
2057
  }),
1944
2058
  "aria-pressed": r,
1945
2059
  "aria-current": i ? "date" : void 0,
1946
- tabIndex: at(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
1947
- onKeyDown: (t) => te(t, e),
2060
+ tabIndex: ot(e, D) || D.getMonth() !== T && e.getDate() === 1 && !n ? 0 : -1,
2061
+ onKeyDown: (t) => N(t, e),
1948
2062
  children: e.getDate()
1949
2063
  }, e.toISOString());
1950
2064
  })
@@ -1952,7 +2066,7 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1952
2066
  ]
1953
2067
  }) })]
1954
2068
  }),
1955
- a && /* @__PURE__ */ u("span", {
2069
+ a && /* @__PURE__ */ d("span", {
1956
2070
  id: m,
1957
2071
  className: X.errorText,
1958
2072
  role: "alert",
@@ -1960,7 +2074,77 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1960
2074
  })
1961
2075
  ]
1962
2076
  });
1963
- }, Z = {
2077
+ }, lt = {
2078
+ skeleton: "_skeleton_fo2zs_11",
2079
+ "indx-skeleton-pulse": "_indx-skeleton-pulse_fo2zs_1",
2080
+ level3: "_level3_fo2zs_20",
2081
+ appear: "_appear_fo2zs_25",
2082
+ "indx-skeleton-appear": "_indx-skeleton-appear_fo2zs_1"
2083
+ }, ut = (e) => typeof e == "number" ? `${e}px` : e;
2084
+ function dt({ width: e = "100%", height: t = 10, level: n = 2, delay: r = 0, appear: i = !0, className: a = "", style: o }) {
2085
+ return /* @__PURE__ */ d("span", {
2086
+ "aria-hidden": "true",
2087
+ className: `${lt.skeleton} ${n === 3 ? lt.level3 : ""} ${i ? lt.appear : ""} ${a}`,
2088
+ style: {
2089
+ width: ut(e),
2090
+ height: ut(t),
2091
+ "--skeleton-delay": `${r}s`,
2092
+ ...o
2093
+ }
2094
+ });
2095
+ }
2096
+ var Z = {
2097
+ stat: "_stat_1un6s_2",
2098
+ label: "_label_1un6s_17",
2099
+ hinted: "_hinted_1un6s_23",
2100
+ value: "_value_1un6s_30",
2101
+ icon: "_icon_1un6s_44",
2102
+ foot: "_foot_1un6s_50",
2103
+ group: "_group_1un6s_60",
2104
+ fixed: "_fixed_1un6s_66",
2105
+ many: "_many_1un6s_71",
2106
+ pairs: "_pairs_1un6s_75"
2107
+ }, ft = 28;
2108
+ function pt({ label: e, value: r, icon: i, color: a, hint: o, children: s, className: c = "" }) {
2109
+ let l = /* @__PURE__ */ d("span", {
2110
+ className: `${Z.label} ${o ? Z.hinted : ""}`,
2111
+ children: e
2112
+ }), u = i && n(i) ? t(i, {
2113
+ size: i.props.size ?? 28,
2114
+ color: i.props.color ?? "currentColor"
2115
+ }) : i;
2116
+ return /* @__PURE__ */ f("div", {
2117
+ className: `${Z.stat} ${c}`,
2118
+ children: [
2119
+ o ? /* @__PURE__ */ d(Ue, {
2120
+ content: o,
2121
+ children: l
2122
+ }) : l,
2123
+ /* @__PURE__ */ f("span", {
2124
+ className: Z.value,
2125
+ style: a ? { color: a } : void 0,
2126
+ children: [u != null && /* @__PURE__ */ d("span", {
2127
+ className: Z.icon,
2128
+ "aria-hidden": "true",
2129
+ children: u
2130
+ }), r]
2131
+ }),
2132
+ s != null && /* @__PURE__ */ d("span", {
2133
+ className: Z.foot,
2134
+ children: s
2135
+ })
2136
+ ]
2137
+ });
2138
+ }
2139
+ function mt({ children: e, columns: t, className: n = "" }) {
2140
+ let r = t ? `${Z.fixed} ${t > 3 ? Z.many : ""} ${t > 2 ? Z.pairs : ""}` : "";
2141
+ return /* @__PURE__ */ d("div", {
2142
+ className: `${Z.group} ${r} ${n}`,
2143
+ style: t ? { "--stat-columns": t } : void 0,
2144
+ children: e
2145
+ });
2146
+ }
2147
+ var Q = {
1964
2148
  root: "_root_biiv1_1",
1965
2149
  micro: "_micro_biiv1_7",
1966
2150
  default: "_default_biiv1_8",
@@ -1976,13 +2160,13 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
1976
2160
  panelTrigger: "_panelTrigger_biiv1_77",
1977
2161
  viewport: "_viewport_biiv1_60",
1978
2162
  content: "_content_biiv1_110"
1979
- }, ct = {
2163
+ }, ht = {
1980
2164
  micro: 14,
1981
2165
  default: 14,
1982
2166
  large: 21
1983
- }, 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) => {
2167
+ }, gt = e.createContext("default"), _t = typeof window > "u" ? e.useEffect : e.useLayoutEffect, vt = 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 }, u) => {
1984
2168
  let p = e.useRef(null), m = e.useRef(!1);
1985
- ut(() => {
2169
+ _t(() => {
1986
2170
  let e = p.current;
1987
2171
  if (!e || r !== "trigger") return;
1988
2172
  let t = () => {
@@ -2011,141 +2195,144 @@ var st = ({ value: t, onChange: n, label: r, placeholder: i = "Select a date", e
2011
2195
  let h = {
2012
2196
  ...o,
2013
2197
  ...i === void 0 ? {} : { "--panel-width": typeof i == "number" ? `${i}px` : i }
2014
- }, g = r === "trigger" ? Z.panelTrigger : r === "end" ? Z.alignEnd : "";
2015
- return /* @__PURE__ */ u(lt.Provider, {
2198
+ }, g = r === "trigger" ? Q.panelTrigger : r === "end" ? Q.alignEnd : "";
2199
+ return /* @__PURE__ */ d(gt.Provider, {
2016
2200
  value: t,
2017
- children: /* @__PURE__ */ d(j.Root, {
2201
+ children: /* @__PURE__ */ f(M.Root, {
2018
2202
  ...l,
2019
2203
  ref: (e) => {
2020
- p.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
2204
+ p.current = e, typeof u == "function" ? u(e) : u && (u.current = e);
2021
2205
  },
2022
2206
  "aria-label": c,
2023
2207
  style: h,
2024
- className: `${Z.root} ${Z[t]} ${n === "end" ? Z.alignList : ""} ${g} ${a}`,
2025
- children: [s, /* @__PURE__ */ u("div", {
2026
- className: Z.viewportPosition,
2027
- children: /* @__PURE__ */ u(j.Viewport, { className: Z.viewport })
2208
+ className: `${Q.root} ${Q[t]} ${n === "end" ? Q.alignList : ""} ${g} ${a}`,
2209
+ children: [s, /* @__PURE__ */ d("div", {
2210
+ className: Q.viewportPosition,
2211
+ children: /* @__PURE__ */ d(M.Viewport, { className: Q.viewport })
2028
2212
  })]
2029
2213
  })
2030
2214
  });
2031
2215
  });
2032
- dt.displayName = "NavigationMenu";
2033
- var ft = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.List, {
2216
+ vt.displayName = "NavigationMenu";
2217
+ var yt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.List, {
2034
2218
  ...t,
2035
2219
  ref: n,
2036
- className: `${Z.list} ${e}`
2220
+ className: `${Q.list} ${e}`
2037
2221
  }));
2038
- ft.displayName = "NavigationMenuList";
2039
- var pt = j.Item;
2040
- function mt({ icon: t }) {
2041
- let n = e.useContext(lt);
2042
- return t ? /* @__PURE__ */ u("span", {
2043
- className: Z.icon,
2222
+ yt.displayName = "NavigationMenuList";
2223
+ var bt = M.Item;
2224
+ function xt({ icon: t }) {
2225
+ let n = e.useContext(gt);
2226
+ return t ? /* @__PURE__ */ d("span", {
2227
+ className: Q.icon,
2044
2228
  "aria-hidden": "true",
2045
2229
  children: e.cloneElement(t, {
2046
- size: ct[n],
2230
+ size: ht[n],
2047
2231
  color: "currentColor"
2048
2232
  })
2049
2233
  }) : null;
2050
2234
  }
2051
- var ht = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
2052
- let o = e.useContext(lt);
2053
- return /* @__PURE__ */ d(j.Trigger, {
2235
+ var St = e.forwardRef(({ className: t = "", icon: n, children: r, ...i }, a) => {
2236
+ let o = e.useContext(gt);
2237
+ return /* @__PURE__ */ f(M.Trigger, {
2054
2238
  ...i,
2055
2239
  ref: a,
2056
- className: `${Z.control} ${t}`,
2240
+ className: `${Q.control} ${t}`,
2057
2241
  children: [
2058
- /* @__PURE__ */ u(mt, { icon: n }),
2242
+ /* @__PURE__ */ d(xt, { icon: n }),
2059
2243
  r,
2060
- /* @__PURE__ */ u("span", {
2061
- className: Z.caret,
2244
+ /* @__PURE__ */ d("span", {
2245
+ className: Q.caret,
2062
2246
  "aria-hidden": "true",
2063
- children: /* @__PURE__ */ u(h, {
2064
- size: ct[o],
2247
+ children: /* @__PURE__ */ d(g, {
2248
+ size: ht[o],
2065
2249
  color: "currentColor"
2066
2250
  })
2067
2251
  })
2068
2252
  ]
2069
2253
  });
2070
2254
  });
2071
- ht.displayName = "NavigationMenuTrigger";
2072
- var gt = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ u(j.Content, {
2255
+ St.displayName = "NavigationMenuTrigger";
2256
+ var Ct = e.forwardRef(({ className: e = "", ...t }, n) => /* @__PURE__ */ d(M.Content, {
2073
2257
  ...t,
2074
2258
  ref: n,
2075
- className: `${Z.content} ${e}`
2259
+ className: `${Q.content} ${e}`
2076
2260
  }));
2077
- gt.displayName = "NavigationMenuContent";
2078
- var _t = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ u(j.Link, {
2261
+ Ct.displayName = "NavigationMenuContent";
2262
+ var wt = e.forwardRef(({ variant: e = "panel", icon: t, className: n = "", children: r, ...i }, a) => /* @__PURE__ */ d(M.Link, {
2079
2263
  ...i,
2080
2264
  ref: a,
2081
- className: `${e === "navigation" ? Z.control : Z.link} ${n}`,
2082
- children: e === "navigation" && !i.asChild ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(mt, { icon: t }), r] }) : r
2265
+ className: `${e === "navigation" ? Q.control : Q.link} ${n}`,
2266
+ children: e === "navigation" && !i.asChild ? /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(xt, { icon: t }), r] }) : r
2083
2267
  }));
2084
- _t.displayName = "NavigationMenuLink";
2085
- var Q = {
2086
- panel: "_panel_1hiss_6",
2087
- header: "_header_1hiss_14",
2088
- thread: "_thread_1hiss_15",
2089
- footer: "_footer_1hiss_24",
2090
- hints: "_hints_1hiss_25",
2091
- kbd: "_kbd_1hiss_33",
2092
- userRow: "_userRow_1hiss_47",
2093
- userMsg: "_userMsg_1hiss_48",
2094
- assistant: "_assistant_1hiss_59",
2095
- assistantHead: "_assistantHead_1hiss_60",
2096
- assistantBody: "_assistantBody_1hiss_68",
2097
- composer: "_composer_1hiss_74",
2098
- composerField: "_composerField_1hiss_82",
2099
- composerIcon: "_composerIcon_1hiss_89",
2100
- composerInput: "_composerInput_1hiss_98",
2101
- composerButton: "_composerButton_1hiss_118",
2102
- ref: "_ref_1hiss_121",
2103
- citationLink: "_citationLink_1hiss_141",
2104
- citationNumber: "_citationNumber_1hiss_145",
2105
- label: "_label_1hiss_148",
2106
- stack: "_stack_1hiss_149",
2107
- wrap: "_wrap_1hiss_150",
2108
- status: "_status_1hiss_151",
2109
- statusSpinner: "_statusSpinner_1hiss_152",
2110
- suggestions: "_suggestions_1hiss_153",
2111
- actions: "_actions_1hiss_154",
2112
- actionsSpacer: "_actionsSpacer_1hiss_155"
2268
+ wt.displayName = "NavigationMenuLink";
2269
+ var $ = {
2270
+ panel: "_panel_98mmj_7",
2271
+ header: "_header_98mmj_15",
2272
+ thread: "_thread_98mmj_16",
2273
+ footer: "_footer_98mmj_25",
2274
+ hints: "_hints_98mmj_28",
2275
+ kbd: "_kbd_98mmj_36",
2276
+ userRow: "_userRow_98mmj_50",
2277
+ userMsg: "_userMsg_98mmj_51",
2278
+ assistant: "_assistant_98mmj_62",
2279
+ assistantHead: "_assistantHead_98mmj_63",
2280
+ assistantBody: "_assistantBody_98mmj_71",
2281
+ composer: "_composer_98mmj_78",
2282
+ composerWrap: "_composerWrap_98mmj_91",
2283
+ composerOver: "_composerOver_98mmj_92",
2284
+ composerNote: "_composerNote_98mmj_95",
2285
+ composerField: "_composerField_98mmj_96",
2286
+ composerIcon: "_composerIcon_98mmj_103",
2287
+ composerInput: "_composerInput_98mmj_112",
2288
+ composerButton: "_composerButton_98mmj_138",
2289
+ ref: "_ref_98mmj_142",
2290
+ citationLink: "_citationLink_98mmj_162",
2291
+ citationNumber: "_citationNumber_98mmj_166",
2292
+ label: "_label_98mmj_169",
2293
+ stack: "_stack_98mmj_170",
2294
+ wrap: "_wrap_98mmj_171",
2295
+ status: "_status_98mmj_172",
2296
+ statusSpinner: "_statusSpinner_98mmj_173",
2297
+ suggestions: "_suggestions_98mmj_174",
2298
+ actions: "_actions_98mmj_175",
2299
+ actionsSpacer: "_actionsSpacer_98mmj_176"
2113
2300
  };
2114
2301
  //#endregion
2115
2302
  //#region src/components/Chat/ChatPanel.tsx
2116
- function vt({ children: e }) {
2117
- return /* @__PURE__ */ u("kbd", {
2118
- className: Q.kbd,
2303
+ function Tt({ children: e }) {
2304
+ return /* @__PURE__ */ d("kbd", {
2305
+ className: $.kbd,
2119
2306
  children: e
2120
2307
  });
2121
2308
  }
2122
- var yt = /* @__PURE__ */ d(l, { children: [
2123
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "↵" }), " send"] }),
2124
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "⇧↵" }), " new line"] }),
2125
- /* @__PURE__ */ d("span", { children: [/* @__PURE__ */ u(vt, { children: "esc" }), " close"] })
2309
+ var Et = /* @__PURE__ */ f(u, { children: [
2310
+ /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "↵" }), " send"] }),
2311
+ /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "⇧↵" }), " new line"] }),
2312
+ /* @__PURE__ */ f("span", { children: [/* @__PURE__ */ d(Tt, { children: "esc" }), " close"] })
2126
2313
  ] });
2127
- function bt({ header: e, children: t, composer: n, hints: r = yt, className: i = "", threadRef: a, "aria-label": o }) {
2128
- return /* @__PURE__ */ d("div", {
2129
- className: `${Q.panel} ${i}`,
2314
+ function Dt({ header: e, children: t, composer: n, hints: r = Et, className: i = "", threadRef: a, "aria-label": o }) {
2315
+ return /* @__PURE__ */ f("div", {
2316
+ className: `${$.panel} ${i}`,
2130
2317
  "aria-label": o,
2131
2318
  children: [
2132
- e && /* @__PURE__ */ u("div", {
2133
- className: Q.header,
2319
+ e && /* @__PURE__ */ d("div", {
2320
+ className: $.header,
2134
2321
  children: e
2135
2322
  }),
2136
- /* @__PURE__ */ u("div", {
2137
- className: Q.thread,
2323
+ /* @__PURE__ */ d("div", {
2324
+ className: $.thread,
2138
2325
  ref: a,
2139
2326
  role: "log",
2140
2327
  "aria-live": "polite",
2141
2328
  children: t
2142
2329
  }),
2143
- n && /* @__PURE__ */ u("div", {
2144
- className: Q.footer,
2330
+ n && /* @__PURE__ */ d("div", {
2331
+ className: $.footer,
2145
2332
  children: n
2146
2333
  }),
2147
- r !== !1 && r && /* @__PURE__ */ u("div", {
2148
- className: Q.hints,
2334
+ r !== !1 && r && /* @__PURE__ */ d("div", {
2335
+ className: $.hints,
2149
2336
  children: r
2150
2337
  })
2151
2338
  ]
@@ -2153,104 +2340,116 @@ function bt({ header: e, children: t, composer: n, hints: r = yt, className: i =
2153
2340
  }
2154
2341
  //#endregion
2155
2342
  //#region src/components/Chat/Message.tsx
2156
- function xt({ children: e, className: t = "" }) {
2157
- return /* @__PURE__ */ u("div", {
2158
- className: Q.userRow,
2159
- children: /* @__PURE__ */ u("div", {
2160
- className: `${Q.userMsg} ${t}`,
2343
+ function Ot({ children: e, className: t = "" }) {
2344
+ return /* @__PURE__ */ d("div", {
2345
+ className: $.userRow,
2346
+ children: /* @__PURE__ */ d("div", {
2347
+ className: `${$.userMsg} ${t}`,
2161
2348
  children: e
2162
2349
  })
2163
2350
  });
2164
2351
  }
2165
- function St({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2166
- return /* @__PURE__ */ d("div", {
2167
- className: `${Q.assistant} ${r}`,
2168
- children: [/* @__PURE__ */ d("div", {
2169
- className: Q.assistantHead,
2170
- children: [t === void 0 ? /* @__PURE__ */ u(f, {
2352
+ function kt({ label: e = "Assistant", icon: t, children: n, className: r = "" }) {
2353
+ return /* @__PURE__ */ f("div", {
2354
+ className: `${$.assistant} ${r}`,
2355
+ children: [/* @__PURE__ */ f("div", {
2356
+ className: $.assistantHead,
2357
+ children: [t === void 0 ? /* @__PURE__ */ d(p, {
2171
2358
  color: "currentColor",
2172
2359
  size: 14
2173
- }) : t, /* @__PURE__ */ u("span", { children: e })]
2174
- }), /* @__PURE__ */ u("div", {
2175
- className: Q.assistantBody,
2360
+ }) : t, /* @__PURE__ */ d("span", { children: e })]
2361
+ }), /* @__PURE__ */ d("div", {
2362
+ className: $.assistantBody,
2176
2363
  children: n
2177
2364
  })]
2178
2365
  });
2179
2366
  }
2180
2367
  //#endregion
2181
2368
  //#region src/components/Chat/Composer.tsx
2182
- 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) {
2183
- let x = s(null);
2184
- o(b, () => ({ focus: () => x.current?.focus() }), []), i(() => {
2185
- let e = x.current;
2369
+ var At = 18, jt = e.forwardRef(function({ value: e, onChange: t, onSend: n, onStop: a, streaming: s = !1, placeholder: l = "Ask a question…", disabled: u = !1, autoFocus: h = !1, icon: g, maxLines: _ = 6, maxLength: v, className: y = "", "aria-label": b = "Message" }, x) {
2370
+ let S = c(null);
2371
+ o(x, () => ({ focus: () => S.current?.focus() }), []), i(() => {
2372
+ let e = S.current;
2186
2373
  if (!e) return;
2187
2374
  e.style.height = "auto";
2188
- let t = Ct * _ + 12;
2375
+ let t = At * _ + 12;
2189
2376
  e.style.height = `${Math.min(e.scrollHeight, t)}px`;
2190
2377
  }, [e, _]);
2191
- let S = !c && !m && e.trim().length > 0, w = r(() => {
2192
- S && n(e.trim());
2378
+ let C = v !== void 0 && v > 0 && e.length > v, T = !s && !u && !C && e.trim().length > 0, E = r(() => {
2379
+ T && n(e.trim());
2193
2380
  }, [
2194
- S,
2381
+ T,
2195
2382
  n,
2196
2383
  e
2197
2384
  ]);
2198
- return /* @__PURE__ */ d("div", {
2199
- className: `${Q.composer} ${v}`,
2200
- children: [/* @__PURE__ */ d("div", {
2201
- className: Q.composerField,
2202
- children: [g !== null && /* @__PURE__ */ u("span", {
2203
- className: Q.composerIcon,
2204
- "aria-hidden": "true",
2205
- children: g === void 0 ? /* @__PURE__ */ u(f, {
2206
- color: "currentColor",
2207
- size: 21
2208
- }) : g
2209
- }), /* @__PURE__ */ u("textarea", {
2210
- ref: x,
2211
- className: Q.composerInput,
2212
- rows: 1,
2213
- value: e,
2214
- placeholder: l,
2215
- disabled: m,
2216
- autoFocus: h,
2217
- "aria-label": y,
2218
- onChange: (e) => t(e.target.value),
2219
- onKeyDown: (e) => {
2220
- e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), w());
2221
- }
2385
+ return /* @__PURE__ */ f("div", {
2386
+ className: $.composerWrap,
2387
+ children: [/* @__PURE__ */ f("div", {
2388
+ className: `${$.composer} ${C ? $.composerOver : ""} ${y}`,
2389
+ children: [/* @__PURE__ */ f("div", {
2390
+ className: $.composerField,
2391
+ children: [g !== null && /* @__PURE__ */ d("span", {
2392
+ className: $.composerIcon,
2393
+ "aria-hidden": "true",
2394
+ children: g === void 0 ? /* @__PURE__ */ d(p, {
2395
+ color: "currentColor",
2396
+ size: 21
2397
+ }) : g
2398
+ }), /* @__PURE__ */ d("textarea", {
2399
+ ref: S,
2400
+ className: $.composerInput,
2401
+ rows: 1,
2402
+ value: e,
2403
+ placeholder: l,
2404
+ disabled: u,
2405
+ autoFocus: h,
2406
+ "aria-label": b,
2407
+ onChange: (e) => t(e.target.value),
2408
+ onKeyDown: (e) => {
2409
+ e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing && (e.preventDefault(), E());
2410
+ }
2411
+ })]
2412
+ }), /* @__PURE__ */ d("div", {
2413
+ className: $.composerButton,
2414
+ children: s ? /* @__PURE__ */ d(I, {
2415
+ variant: "secondary",
2416
+ size: "micro",
2417
+ "aria-label": "Stop",
2418
+ iconLeft: /* @__PURE__ */ d(w, {}),
2419
+ onClick: a
2420
+ }) : /* @__PURE__ */ d(I, {
2421
+ variant: "primary",
2422
+ size: "micro",
2423
+ "aria-label": "Send",
2424
+ iconLeft: /* @__PURE__ */ d(m, {}),
2425
+ disabled: !T,
2426
+ onClick: E
2427
+ })
2222
2428
  })]
2223
- }), /* @__PURE__ */ u("div", {
2224
- className: Q.composerButton,
2225
- children: c ? /* @__PURE__ */ u(M, {
2226
- variant: "secondary",
2227
- size: "micro",
2228
- "aria-label": "Stop",
2229
- iconLeft: /* @__PURE__ */ u(C, {}),
2230
- onClick: a
2231
- }) : /* @__PURE__ */ u(M, {
2232
- variant: "primary",
2233
- size: "micro",
2234
- "aria-label": "Send",
2235
- iconLeft: /* @__PURE__ */ u(p, {}),
2236
- disabled: !S,
2237
- onClick: w
2238
- })
2429
+ }), C && /* @__PURE__ */ f("p", {
2430
+ className: $.composerNote,
2431
+ role: "status",
2432
+ children: [
2433
+ e.length.toLocaleString(),
2434
+ " of ",
2435
+ v.toLocaleString(),
2436
+ " characters. Shorten it to send."
2437
+ ]
2239
2438
  })]
2240
2439
  });
2241
2440
  });
2242
2441
  //#endregion
2243
2442
  //#region src/components/Chat/Citation.tsx
2244
- function Tt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2245
- let a = `${Q.ref} ${i}`;
2246
- return t ? /* @__PURE__ */ u("a", {
2443
+ function Mt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2444
+ let a = `${$.ref} ${i}`;
2445
+ return t ? /* @__PURE__ */ d("a", {
2247
2446
  href: t,
2248
2447
  className: a,
2249
2448
  onClick: n,
2250
2449
  title: r,
2251
2450
  "aria-label": `Source ${e}${r ? `: ${r}` : ""}`,
2252
2451
  children: e
2253
- }) : /* @__PURE__ */ u("button", {
2452
+ }) : /* @__PURE__ */ d("button", {
2254
2453
  type: "button",
2255
2454
  className: a,
2256
2455
  onClick: n,
@@ -2259,34 +2458,34 @@ function Tt({ n: e, href: t, onClick: n, title: r, className: i = "" }) {
2259
2458
  children: e
2260
2459
  });
2261
2460
  }
2262
- function Et({ items: e, label: t = "Sources", className: n = "" }) {
2263
- return e.length === 0 ? null : /* @__PURE__ */ d("div", {
2264
- className: `${Q.stack} ${n}`,
2265
- children: [/* @__PURE__ */ u("div", {
2266
- className: Q.label,
2461
+ function Nt({ items: e, label: t = "Sources", className: n = "" }) {
2462
+ return e.length === 0 ? null : /* @__PURE__ */ f("div", {
2463
+ className: `${$.stack} ${n}`,
2464
+ children: [/* @__PURE__ */ d("div", {
2465
+ className: $.label,
2267
2466
  children: t
2268
- }), /* @__PURE__ */ u("div", {
2269
- className: Q.wrap,
2467
+ }), /* @__PURE__ */ d("div", {
2468
+ className: $.wrap,
2270
2469
  children: e.map((e) => {
2271
- let t = /* @__PURE__ */ d(Fe, {
2470
+ let t = /* @__PURE__ */ f(Pe, {
2272
2471
  icon: e.icon,
2273
2472
  children: [
2274
- /* @__PURE__ */ u("span", {
2275
- className: Q.citationNumber,
2473
+ /* @__PURE__ */ d("span", {
2474
+ className: $.citationNumber,
2276
2475
  children: e.n
2277
2476
  }),
2278
2477
  " ",
2279
2478
  e.title
2280
2479
  ]
2281
2480
  });
2282
- return e.href ? /* @__PURE__ */ u("a", {
2481
+ return e.href ? /* @__PURE__ */ d("a", {
2283
2482
  href: e.href,
2284
- className: Q.citationLink,
2483
+ className: $.citationLink,
2285
2484
  onClick: e.onClick,
2286
2485
  children: t
2287
- }, e.n) : /* @__PURE__ */ u("button", {
2486
+ }, e.n) : /* @__PURE__ */ d("button", {
2288
2487
  type: "button",
2289
- className: Q.citationLink,
2488
+ className: $.citationLink,
2290
2489
  onClick: e.onClick,
2291
2490
  children: t
2292
2491
  }, e.n);
@@ -2296,27 +2495,30 @@ function Et({ items: e, label: t = "Sources", className: n = "" }) {
2296
2495
  }
2297
2496
  //#endregion
2298
2497
  //#region src/components/Chat/StreamStatus.tsx
2299
- function Dt({ children: e, className: t = "" }) {
2300
- return /* @__PURE__ */ d("div", {
2301
- className: `${Q.status} ${t}`,
2498
+ function Pt({ children: e, spinner: t, className: n = "" }) {
2499
+ return /* @__PURE__ */ f("div", {
2500
+ className: `${$.status} ${n}`,
2302
2501
  role: "status",
2303
- children: [/* @__PURE__ */ u("span", {
2304
- className: Q.statusSpinner,
2305
- children: /* @__PURE__ */ u(ie, { size: 14 })
2306
- }), /* @__PURE__ */ u("span", { children: e })]
2502
+ children: [/* @__PURE__ */ d("span", {
2503
+ className: $.statusSpinner,
2504
+ children: /* @__PURE__ */ d(F, {
2505
+ name: t,
2506
+ size: 14
2507
+ })
2508
+ }), /* @__PURE__ */ d("span", { children: e })]
2307
2509
  });
2308
2510
  }
2309
2511
  //#endregion
2310
2512
  //#region src/components/Chat/Suggestions.tsx
2311
- function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2312
- return /* @__PURE__ */ d("div", {
2313
- className: `${Q.suggestions} ${r}`,
2314
- children: [/* @__PURE__ */ u("div", {
2315
- className: Q.label,
2513
+ function Ft({ items: e, onPick: t, label: n = "Try asking", className: r = "" }) {
2514
+ return /* @__PURE__ */ f("div", {
2515
+ className: `${$.suggestions} ${r}`,
2516
+ children: [/* @__PURE__ */ d("div", {
2517
+ className: $.label,
2316
2518
  children: n
2317
- }), /* @__PURE__ */ u("div", {
2318
- className: Q.wrap,
2319
- children: e.map((e) => /* @__PURE__ */ u(M, {
2519
+ }), /* @__PURE__ */ d("div", {
2520
+ className: $.wrap,
2521
+ children: e.map((e) => /* @__PURE__ */ d(I, {
2320
2522
  variant: "secondary",
2321
2523
  size: "micro",
2322
2524
  onClick: () => t(e),
@@ -2327,43 +2529,43 @@ function Ot({ items: e, onPick: t, label: n = "Try asking", className: r = "" })
2327
2529
  }
2328
2530
  //#endregion
2329
2531
  //#region src/components/Chat/AnswerActions.tsx
2330
- function kt({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2331
- return /* @__PURE__ */ d("div", {
2332
- className: `${Q.actions} ${i}`,
2532
+ function It({ onCopy: e, copied: t = !1, onFollowUp: n, followUpLabel: r = "Ask a follow-up", className: i = "" }) {
2533
+ return /* @__PURE__ */ f("div", {
2534
+ className: `${$.actions} ${i}`,
2333
2535
  children: [
2334
- e && /* @__PURE__ */ u(M, {
2536
+ e && /* @__PURE__ */ d(I, {
2335
2537
  variant: "ghost",
2336
2538
  size: "micro",
2337
- iconLeft: u(t ? m : v, {}),
2539
+ iconLeft: d(t ? h : y, {}),
2338
2540
  onClick: e,
2339
2541
  children: t ? "Copied" : "Copy"
2340
2542
  }),
2341
- /* @__PURE__ */ u("span", { className: Q.actionsSpacer }),
2342
- n && /* @__PURE__ */ u(M, {
2543
+ /* @__PURE__ */ d("span", { className: $.actionsSpacer }),
2544
+ n && /* @__PURE__ */ d(I, {
2343
2545
  variant: "ghost",
2344
2546
  size: "micro",
2345
- iconRight: /* @__PURE__ */ u(_, {}),
2547
+ iconRight: /* @__PURE__ */ d(v, {}),
2346
2548
  onClick: n,
2347
2549
  children: r
2348
2550
  })
2349
2551
  ]
2350
2552
  });
2351
2553
  }
2352
- var At = {
2554
+ var Lt = {
2353
2555
  truncate: "_truncate_za4sm_1",
2354
2556
  start: "_start_za4sm_13"
2355
2557
  };
2356
2558
  //#endregion
2357
2559
  //#region src/components/Truncate/Truncate.tsx
2358
- function jt({ children: e, side: t = "end", title: n, className: r = "" }) {
2560
+ function Rt({ children: e, side: t = "end", title: n, className: r = "" }) {
2359
2561
  let i = n ?? (typeof e == "string" ? e : void 0);
2360
- return /* @__PURE__ */ u("span", {
2361
- className: `${At.truncate} ${t === "start" ? At.start : ""} ${r}`,
2562
+ return /* @__PURE__ */ d("span", {
2563
+ className: `${Lt.truncate} ${t === "start" ? Lt.start : ""} ${r}`,
2362
2564
  title: i,
2363
- children: t === "start" ? /* @__PURE__ */ u("bdi", { children: e }) : e
2565
+ children: t === "start" ? /* @__PURE__ */ d("bdi", { children: e }) : e
2364
2566
  });
2365
2567
  }
2366
- var $ = {
2568
+ var zt = {
2367
2569
  disclosure: "_disclosure_94bgy_1",
2368
2570
  trigger: "_trigger_94bgy_7",
2369
2571
  summary: "_summary_94bgy_31",
@@ -2372,36 +2574,84 @@ var $ = {
2372
2574
  };
2373
2575
  //#endregion
2374
2576
  //#region src/components/Disclosure/Disclosure.tsx
2375
- function Mt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2376
- let [s, c] = e.useState(i), l = r ?? s, f = e.useId();
2377
- return /* @__PURE__ */ d("div", {
2378
- className: `${$.disclosure} ${o}`,
2577
+ function Bt({ summary: t, children: n, open: r, defaultOpen: i = !1, onOpenChange: a, className: o = "" }) {
2578
+ let [s, c] = e.useState(i), l = r ?? s, u = e.useId();
2579
+ return /* @__PURE__ */ f("div", {
2580
+ className: `${zt.disclosure} ${o}`,
2379
2581
  "data-state": l ? "open" : "closed",
2380
- children: [/* @__PURE__ */ d("button", {
2582
+ children: [/* @__PURE__ */ f("button", {
2381
2583
  type: "button",
2382
- className: $.trigger,
2584
+ className: zt.trigger,
2383
2585
  "aria-expanded": l,
2384
- "aria-controls": l ? f : void 0,
2586
+ "aria-controls": l ? u : void 0,
2385
2587
  onClick: () => {
2386
2588
  r === void 0 && c(!l), a?.(!l);
2387
2589
  },
2388
- children: [/* @__PURE__ */ u("span", {
2389
- className: $.summary,
2590
+ children: [/* @__PURE__ */ d("span", {
2591
+ className: zt.summary,
2390
2592
  children: t
2391
- }), /* @__PURE__ */ u("span", {
2392
- className: $.chevron,
2593
+ }), /* @__PURE__ */ d("span", {
2594
+ className: zt.chevron,
2393
2595
  "aria-hidden": "true",
2394
- children: u(l ? h : _, {
2596
+ children: d(l ? g : v, {
2395
2597
  size: 14,
2396
2598
  color: "currentColor"
2397
2599
  })
2398
2600
  })]
2399
- }), l && /* @__PURE__ */ u("div", {
2400
- id: f,
2401
- className: $.content,
2601
+ }), l && /* @__PURE__ */ d("div", {
2602
+ id: u,
2603
+ className: zt.content,
2402
2604
  children: n
2403
2605
  })]
2404
2606
  });
2405
2607
  }
2608
+ var Vt = {
2609
+ field: "_field_5juos_1",
2610
+ code: "_code_5juos_16",
2611
+ status: "_status_5juos_31"
2612
+ };
2613
+ //#endregion
2614
+ //#region src/components/CodeCopy/CodeCopy.tsx
2615
+ async function Ht(e) {
2616
+ if (navigator.clipboard && window.isSecureContext) try {
2617
+ return await navigator.clipboard.writeText(e), !0;
2618
+ } catch {}
2619
+ let t = document.createElement("textarea");
2620
+ t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.left = "-9999px", document.body.appendChild(t), t.select();
2621
+ try {
2622
+ return document.execCommand("copy");
2623
+ } catch {
2624
+ return !1;
2625
+ } finally {
2626
+ t.remove();
2627
+ }
2628
+ }
2629
+ function Ut({ code: e, className: t, onCopy: n }) {
2630
+ let [r, a] = l(!1), o = c(void 0);
2631
+ return i(() => () => clearTimeout(o.current), []), /* @__PURE__ */ f("div", {
2632
+ className: [Vt.field, t].filter(Boolean).join(" "),
2633
+ children: [
2634
+ /* @__PURE__ */ d("code", {
2635
+ className: Vt.code,
2636
+ children: e
2637
+ }),
2638
+ /* @__PURE__ */ d(I, {
2639
+ size: "micro",
2640
+ variant: "ghost",
2641
+ iconLeft: d(r ? h : y, {}),
2642
+ onClick: async () => {
2643
+ await Ht(e) && (a(!0), n?.(), clearTimeout(o.current), o.current = setTimeout(() => a(!1), 2e3));
2644
+ },
2645
+ "aria-label": r ? "Copied" : "Copy",
2646
+ title: r ? "Copied" : "Copy"
2647
+ }),
2648
+ /* @__PURE__ */ d("span", {
2649
+ className: Vt.status,
2650
+ role: "status",
2651
+ children: r ? "Copied" : ""
2652
+ })
2653
+ ]
2654
+ });
2655
+ }
2406
2656
  //#endregion
2407
- 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 };
2657
+ export { Le as Alert, ze as AlertDescription, Re as AlertTitle, It as AnswerActions, kt as AssistantMessage, ie as Base, Ae as Breadcrumbs, I as Button, Ye as Chart, Dt as ChatPanel, ne as Checkbox, Pe as Chip, Nt as CitationList, Mt as CitationRef, Ut as CodeCopy, jt as Composer, ct as DatePicker, Bt as Disclosure, ae as FilterPanelBase, le as InputField, Tt as Kbd, nt as Modal, vt as NavigationMenu, Ct as NavigationMenuContent, bt as NavigationMenuItem, wt as NavigationMenuLink, yt as NavigationMenuList, St as NavigationMenuTrigger, ve as Popover, Me as ProgressBar, de as RadioButton, ft as STAT_ICON_SIZE, Ve as SaveBar, se as SearchField, ge as Select, dt as Skeleton, he as Slider, Qe as Sparkline, F as Spinner, pt as Stat, mt as StatGroup, Pt as StreamStatus, Ft as Suggestions, ye as Table, Se as TableCell, be as TableHeader, we as TableIcon, xe as TableRow, Ce as TableValue, De as Tabs, et as Textarea, pe as ToggleSwitch, Ue as Tooltip, Rt as Truncate, Ot as UserMessage, Et as defaultChatHints, te as spinnerNames };