@versini/sassysaint 5.5.24 → 5.5.25

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.
@@ -1,10 +1,10 @@
1
1
  import { jsx as o, jsxs as v, Fragment as z } from "react/jsx-runtime";
2
- import { g as P, un as D, R as F, CARDS as _, renderDataAsList as pe, pluralize as be, ABOUT_TITLE as Dt, L as Y, j as M, C as U, INFINITE_SCROLL_LIMIT as Ue, INFINITE_SCROLL_THRESHOLD as He, LOCAL_STORAGE_PREFIX as ue, LOCAL_STORAGE_SORT as Vt, P as te, ACTION_RESET as tt, ACTION_RESTORE as Gt, ACTION_SORT as je, LOCAL_STORAGE_SEARCH as Ut, HISTORY_TITLE as Ht, ye as Te, ACTION_SEARCH as jt, debounce as Wt, M as Kt, z as We, durationFormatter as Yt, PROFILE_TITLE as Zt, PROMPTS_DESCRIPTION as qt, DEFAULT_AI_ENGINE as Qt, LOCAL_STORAGE_ENGINE_TOGGLE as rt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as J, ENGINE_ANTHROPIC as ee, APP_NAME as er, getCurrentGeoLocation as tr, LOG_OUT as Ke } from "./index.fO85d_Gw.js";
2
+ import { g as P, un as D, R as F, CARDS as _, renderDataAsList as pe, pluralize as be, ABOUT_TITLE as Dt, L as K, j as M, C as U, INFINITE_SCROLL_LIMIT as Ge, INFINITE_SCROLL_THRESHOLD as Ue, LOCAL_STORAGE_PREFIX as ue, LOCAL_STORAGE_SORT as Vt, P as te, ACTION_RESET as et, ACTION_RESTORE as Gt, ACTION_SORT as He, LOCAL_STORAGE_SEARCH as Ut, HISTORY_TITLE as Ht, ye as Te, ACTION_SEARCH as jt, debounce as Wt, M as Kt, z as je, durationFormatter as Yt, PROFILE_TITLE as Zt, PROMPTS_DESCRIPTION as qt, DEFAULT_AI_ENGINE as Qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as J, ENGINE_ANTHROPIC as ee, APP_NAME as er, getCurrentGeoLocation as tr, LOG_OUT as We } from "./index.DBAc9xii.js";
3
3
  import * as h from "react";
4
- import E, { useId as ze, forwardRef as ot, useState as R, useRef as re, useContext as H, useEffect as Z, useCallback as rr, Fragment as or } from "react";
5
- import { useServerCapabilities as at, HistoryContext as Ae, E as me, ge as ar, he as nr, ue as Ie, ie as $, ye as sr, me as lr, be as cr, serviceCall as oe, SERVICE_TYPES as ae, f as ce, AppContext as Pe, useChatsHistory as ir, useUserChatStats as dr, useUserPreferences as Be, Pe as Ye, usePreloadChatsHistory as ur, NewChatButton as mr } from "./App.F-8gwPT4.js";
4
+ import E, { useId as ze, forwardRef as rt, useState as R, useRef as re, useContext as Y, useEffect as Z, useCallback as rr, Fragment as or } from "react";
6
5
  import w from "clsx";
7
- import { useFloatingTree as nt, useFloatingNodeId as hr, useListItem as st, useFloating as lt, offset as gr, flip as fr, shift as pr, autoUpdate as br, useClick as ct, useRole as it, useDismiss as dt, useListNavigation as vr, useTypeahead as yr, useInteractions as ut, useMergeRefs as Oe, FloatingNode as kr, FloatingList as wr, FloatingPortal as mt, FloatingFocusManager as ht, FloatingTree as Nr, FloatingOverlay as Cr } from "@floating-ui/react";
6
+ import { useFloatingTree as ot, useFloatingNodeId as ar, useListItem as at, useFloating as nt, offset as nr, flip as sr, shift as lr, autoUpdate as cr, useClick as st, useRole as lt, useDismiss as ct, useListNavigation as ir, useTypeahead as dr, useInteractions as it, useMergeRefs as Ae, FloatingNode as ur, FloatingList as mr, FloatingPortal as dt, FloatingFocusManager as ut, FloatingTree as hr, FloatingOverlay as gr } from "@floating-ui/react";
7
+ import { useServerCapabilities as mt, HistoryContext as ht, E as me, ge as fr, he as pr, ue as Ie, ie as $, ye as br, me as vr, be as yr, serviceCall as oe, SERVICE_TYPES as ae, f as ce, AppContext as Pe, useChatsHistory as kr, useUserChatStats as wr, useUserPreferences as Be, Fe as Ke, NewChatButton as Nr } from "./App.BX41JKCq.js";
8
8
  const gt = ({
9
9
  className: e,
10
10
  viewBox: t,
@@ -55,7 +55,7 @@ const gt = ({
55
55
  )
56
56
  ]
57
57
  }
58
- ), Ir = ({
58
+ ), Cr = ({
59
59
  className: e,
60
60
  viewBox: t,
61
61
  title: r,
@@ -88,7 +88,7 @@ const gt = ({
88
88
  )
89
89
  ]
90
90
  }
91
- ), Er = ({
91
+ ), Ir = ({
92
92
  className: e,
93
93
  viewBox: t,
94
94
  title: r,
@@ -121,7 +121,7 @@ const gt = ({
121
121
  )
122
122
  ]
123
123
  }
124
- ), Tr = ({
124
+ ), Er = ({
125
125
  className: e,
126
126
  viewBox: t,
127
127
  title: r,
@@ -154,7 +154,7 @@ const gt = ({
154
154
  )
155
155
  ]
156
156
  }
157
- ), _r = ({
157
+ ), Tr = ({
158
158
  className: e,
159
159
  viewBox: t,
160
160
  title: r,
@@ -204,7 +204,7 @@ const gt = ({
204
204
  ...n,
205
205
  children: /* @__PURE__ */ o("path", { d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" })
206
206
  }
207
- ), Sr = ({
207
+ ), _r = ({
208
208
  className: e,
209
209
  viewBox: t,
210
210
  title: r,
@@ -237,7 +237,7 @@ const gt = ({
237
237
  )
238
238
  ]
239
239
  }
240
- ), Rr = ({
240
+ ), Sr = ({
241
241
  className: e,
242
242
  viewBox: t,
243
243
  title: r,
@@ -270,7 +270,7 @@ const gt = ({
270
270
  )
271
271
  ]
272
272
  }
273
- ), Lr = ({
273
+ ), Rr = ({
274
274
  className: e,
275
275
  viewBox: t,
276
276
  title: r,
@@ -287,7 +287,7 @@ const gt = ({
287
287
  ...n,
288
288
  children: /* @__PURE__ */ o("path", { d: "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" })
289
289
  }
290
- ), Mr = ({
290
+ ), Lr = ({
291
291
  className: e,
292
292
  viewBox: t,
293
293
  title: r,
@@ -333,7 +333,7 @@ const _e = h.createContext({
333
333
  setHasFocusInside: () => {
334
334
  },
335
335
  isOpen: !1
336
- }), Ze = (e) => {
336
+ }), Ye = (e) => {
337
337
  if (typeof e == "string")
338
338
  return e;
339
339
  if (typeof e == "function")
@@ -344,7 +344,7 @@ const _e = h.createContext({
344
344
  return t.displayName || t.name || "Component";
345
345
  }
346
346
  return "Element";
347
- }, pt = ot(
347
+ }, pt = rt(
348
348
  ({
349
349
  trigger: e,
350
350
  children: t,
@@ -355,31 +355,31 @@ const _e = h.createContext({
355
355
  focusMode: l = "system",
356
356
  ...c
357
357
  }, u) => {
358
- const [i, f] = R(!1), [p, g] = R(!1), [d, m] = R(null), k = re([]), b = re([]), N = H(_e), C = nt(), y = hr(), x = st(), { floatingStyles: T, refs: A, context: L } = lt({
359
- nodeId: y,
358
+ const [i, f] = R(!1), [p, g] = R(!1), [d, m] = R(null), y = re([]), b = re([]), N = Y(_e), x = ot(), k = ar(), C = at(), { floatingStyles: T, refs: A, context: L } = nt({
359
+ nodeId: k,
360
360
  open: i,
361
361
  onOpenChange: (G) => {
362
362
  f(G), n == null || n(G);
363
363
  },
364
364
  placement: a,
365
365
  strategy: "fixed",
366
- middleware: [gr({ mainAxis: 10 }), fr(), pr()],
367
- whileElementsMounted: br
368
- }), S = ct(L, {
366
+ middleware: [nr({ mainAxis: 10 }), sr(), lr()],
367
+ whileElementsMounted: cr
368
+ }), S = st(L, {
369
369
  event: "mousedown",
370
370
  toggle: !0,
371
371
  ignoreMouse: !1
372
- }), q = it(L, { role: "menu" }), Q = dt(L, { bubbles: !0 }), V = vr(L, {
373
- listRef: k,
372
+ }), q = lt(L, { role: "menu" }), Q = ct(L, { bubbles: !0 }), V = ir(L, {
373
+ listRef: y,
374
374
  activeIndex: d,
375
375
  nested: !1,
376
376
  onNavigate: m,
377
377
  loop: !0
378
- }), I = yr(L, {
378
+ }), I = dr(L, {
379
379
  listRef: b,
380
380
  onMatch: i ? m : void 0,
381
381
  activeIndex: d
382
- }), { getReferenceProps: B, getFloatingProps: j, getItemProps: O } = ut([S, q, Q, V, I]), le = Ze(e) === "Button" || Ze(e) === "ButtonIcon", X = le ? {
382
+ }), { getReferenceProps: B, getFloatingProps: H, getItemProps: O } = it([S, q, Q, V, I]), le = Ye(e) === "Button" || Ye(e) === "ButtonIcon", X = le ? {
383
383
  noInternalClick: le,
384
384
  focusMode: l,
385
385
  mode: s
@@ -390,7 +390,7 @@ const _e = h.createContext({
390
390
  "aria-label": r,
391
391
  "data-open": i ? "" : void 0,
392
392
  "data-focus-inside": p ? "" : void 0,
393
- ref: Oe([A.setReference, x.ref, u]),
393
+ ref: Ae([A.setReference, C.ref, u]),
394
394
  ...B(
395
395
  N.getItemProps({
396
396
  ...c
@@ -399,17 +399,17 @@ const _e = h.createContext({
399
399
  }
400
400
  );
401
401
  return Z(() => {
402
- if (!C)
402
+ if (!x)
403
403
  return;
404
404
  function G() {
405
405
  f(!1), n == null || n(!1);
406
406
  }
407
- return C.events.on("click", G), () => {
408
- C.events.off("click", G);
407
+ return x.events.on("click", G), () => {
408
+ x.events.off("click", G);
409
409
  };
410
- }, [C, n]), Z(() => {
411
- i && C && C.events.emit("menuopen", { nodeId: y });
412
- }, [C, i, y]), /* @__PURE__ */ v(kr, { id: y, children: [
410
+ }, [x, n]), Z(() => {
411
+ i && x && x.events.emit("menuopen", { nodeId: k });
412
+ }, [x, i, k]), /* @__PURE__ */ v(ur, { id: k, children: [
413
413
  ge,
414
414
  /* @__PURE__ */ o(
415
415
  _e.Provider,
@@ -421,8 +421,8 @@ const _e = h.createContext({
421
421
  setHasFocusInside: g,
422
422
  isOpen: i
423
423
  },
424
- children: /* @__PURE__ */ o(wr, { elementsRef: k, labelsRef: b, children: i && /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(
425
- ht,
424
+ children: /* @__PURE__ */ o(mr, { elementsRef: y, labelsRef: b, children: i && /* @__PURE__ */ o(dt, { children: /* @__PURE__ */ o(
425
+ ut,
426
426
  {
427
427
  context: L,
428
428
  modal: !1,
@@ -434,7 +434,7 @@ const _e = h.createContext({
434
434
  ref: A.setFloating,
435
435
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
436
436
  style: T,
437
- ...j(),
437
+ ...H(),
438
438
  children: t
439
439
  }
440
440
  )
@@ -444,10 +444,10 @@ const _e = h.createContext({
444
444
  )
445
445
  ] });
446
446
  }
447
- ), $e = ot((e, t) => /* @__PURE__ */ o(Nr, { children: /* @__PURE__ */ o(pt, { ...e, ref: t }) }));
448
- $e.displayName = "Menu";
447
+ ), Oe = rt((e, t) => /* @__PURE__ */ o(hr, { children: /* @__PURE__ */ o(pt, { ...e, ref: t }) }));
448
+ Oe.displayName = "Menu";
449
449
  pt.displayName = "MenuComponent";
450
- const W = h.forwardRef(
450
+ const j = h.forwardRef(
451
451
  ({
452
452
  label: e,
453
453
  disabled: t,
@@ -458,7 +458,7 @@ const W = h.forwardRef(
458
458
  ...l
459
459
  }, c) => {
460
460
  let u = "";
461
- const i = h.useContext(_e), f = st({ label: t ? null : e }), p = nt(), g = Oe([f.ref, c]);
461
+ const i = h.useContext(_e), f = at({ label: t ? null : e }), p = ot(), g = Ae([f.ref, c]);
462
462
  return a && n ? /* @__PURE__ */ o(
463
463
  "div",
464
464
  {
@@ -498,38 +498,38 @@ const W = h.forwardRef(
498
498
  ));
499
499
  }
500
500
  );
501
- W.displayName = "MenuItem";
502
- const zr = ({ className: e, ...t }) => {
501
+ j.displayName = "MenuItem";
502
+ const Mr = ({ className: e, ...t }) => {
503
503
  const r = w(e, "my-1 border-t border-border-medium");
504
504
  return /* @__PURE__ */ o("div", { className: r, ...t });
505
505
  };
506
506
  /*!
507
- @versini/ui-menu v3.0.2
507
+ @versini/ui-menu v3.0.3
508
508
  © 2025 gizmette.com
509
509
  */
510
510
  try {
511
511
  window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
512
- version: "3.0.2",
513
- buildTime: "01/04/2025 04:09 PM EST",
512
+ version: "3.0.3",
513
+ buildTime: "01/06/2025 08:01 PM EST",
514
514
  homepage: "https://github.com/aversini/ui-components",
515
515
  license: "MIT"
516
516
  });
517
517
  } catch {
518
518
  }
519
519
  /*!
520
- @versini/ui-panel v1.3.3
520
+ @versini/ui-panel v1.3.4
521
521
  © 2025 gizmette.com
522
522
  */
523
523
  try {
524
524
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
525
- version: "1.3.3",
526
- buildTime: "01/04/2025 04:09 PM EST",
525
+ version: "1.3.4",
526
+ buildTime: "01/06/2025 08:01 PM EST",
527
527
  homepage: "https://github.com/aversini/ui-components",
528
528
  license: "MIT"
529
529
  });
530
530
  } catch {
531
531
  }
532
- const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt = "button", Se = "link", Ar = ({
532
+ const Ze = "av-messagebox", qe = "av-panel", Qe = "av-button", we = "icon", bt = "button", Se = "link", zr = ({
533
533
  type: e,
534
534
  size: t,
535
535
  labelRight: r,
@@ -558,7 +558,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
558
558
  "h-12 px-4": t === "large" && (r || a)
559
559
  });
560
560
  }
561
- }, Pr = ({
561
+ }, Ar = ({
562
562
  type: e,
563
563
  size: t,
564
564
  labelRight: r,
@@ -581,7 +581,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
581
581
  [l]: t === "large" && (r || a)
582
582
  });
583
583
  }
584
- }, Br = ({
584
+ }, Pr = ({
585
585
  mode: e,
586
586
  noBackground: t,
587
587
  noTruncate: r,
@@ -617,7 +617,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
617
617
  return w("not-prose text-copy-lighter", {
618
618
  truncate: !r
619
619
  });
620
- }, Or = ({
620
+ }, Br = ({
621
621
  mode: e,
622
622
  noBackground: t,
623
623
  variant: r
@@ -647,13 +647,13 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
647
647
  if (r === "selected")
648
648
  return "bg-action-selected-dark";
649
649
  }
650
- }, $r = ({
650
+ }, Or = ({
651
651
  radius: e
652
652
  }) => w({
653
653
  "rounded-full": e === "large",
654
654
  "rounded-md": e === "medium",
655
655
  "rounded-sm": e === "small"
656
- }), Fr = ({
656
+ }), $r = ({
657
657
  mode: e,
658
658
  disabled: t,
659
659
  variant: r
@@ -683,7 +683,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
683
683
  });
684
684
  if (r === "selected")
685
685
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
686
- }, Dr = ({
686
+ }, Fr = ({
687
687
  mode: e,
688
688
  disabled: t,
689
689
  variant: r
@@ -713,7 +713,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
713
713
  });
714
714
  if (r === "selected")
715
715
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
716
- }, Vr = ({
716
+ }, Dr = ({
717
717
  mode: e,
718
718
  noBorder: t,
719
719
  variant: r
@@ -743,7 +743,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
743
743
  });
744
744
  if (r === "selected")
745
745
  return "border border-border-selected-dark";
746
- }, Gr = ({
746
+ }, Vr = ({
747
747
  focusMode: e
748
748
  }) => w("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
749
749
  "focus:outline-focus-dark": e === "dark",
@@ -766,51 +766,51 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", bt =
766
766
  variant: g,
767
767
  noTruncate: d,
768
768
  align: m,
769
- radius: k
770
- }) => (g || (g = "primary"), r ? w(Xe, t) : w(
771
- Xe,
772
- Br({
769
+ radius: y
770
+ }) => (g || (g = "primary"), r ? w(Qe, t) : w(
771
+ Qe,
772
+ Pr({
773
773
  mode: a,
774
774
  variant: g,
775
775
  noBackground: p,
776
776
  noTruncate: d
777
777
  }),
778
- Or({ mode: a, noBackground: p, variant: g }),
779
- $r({ radius: k }),
780
- Ar({
778
+ Br({ mode: a, noBackground: p, variant: g }),
779
+ Or({ radius: y }),
780
+ zr({
781
781
  type: e,
782
782
  size: c,
783
783
  labelRight: i,
784
784
  labelLeft: f,
785
785
  align: m
786
786
  }),
787
- Pr({ type: e, size: c, labelRight: i, labelLeft: f }),
788
- Vr({ mode: a, variant: g, noBorder: u }),
789
- Gr({ focusMode: n }),
787
+ Ar({ type: e, size: c, labelRight: i, labelLeft: f }),
788
+ Dr({ mode: a, variant: g, noBorder: u }),
789
+ Vr({ focusMode: n }),
790
+ $r({ mode: a, variant: g, disabled: s }),
790
791
  Fr({ mode: a, variant: g, disabled: s }),
791
- Dr({ mode: a, variant: g, disabled: s }),
792
792
  {
793
793
  "w-full": l,
794
794
  "disabled:cursor-not-allowed disabled:opacity-50": s
795
795
  },
796
796
  t
797
- )), Ur = (e, t, r) => {
797
+ )), Gr = (e, t, r) => {
798
798
  var a;
799
799
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
800
- }, Fe = E.forwardRef((e, t) => {
800
+ }, $e = E.forwardRef((e, t) => {
801
801
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
802
802
  return /* @__PURE__ */ o(
803
803
  "button",
804
804
  {
805
805
  ref: t,
806
806
  onClick: (s) => {
807
- Ur(s, a, r);
807
+ Gr(s, a, r);
808
808
  },
809
809
  ...n
810
810
  }
811
811
  );
812
812
  });
813
- Fe.displayName = "BaseButton";
813
+ $e.displayName = "BaseButton";
814
814
  const yt = E.forwardRef(
815
815
  ({
816
816
  children: e,
@@ -828,12 +828,12 @@ const yt = E.forwardRef(
828
828
  labelRight: g,
829
829
  labelLeft: d,
830
830
  noBackground: m = !1,
831
- align: k = "center",
831
+ align: y = "center",
832
832
  radius: b = "large",
833
833
  variant: N = "primary",
834
- ...C
835
- }, y) => {
836
- const x = vt({
834
+ ...x
835
+ }, k) => {
836
+ const C = vt({
837
837
  type: we,
838
838
  mode: r,
839
839
  focusMode: a,
@@ -846,7 +846,7 @@ const yt = E.forwardRef(
846
846
  labelRight: g,
847
847
  labelLeft: d,
848
848
  noBackground: m,
849
- align: k,
849
+ align: y,
850
850
  radius: b,
851
851
  variant: N
852
852
  }), T = w({
@@ -856,14 +856,14 @@ const yt = E.forwardRef(
856
856
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
857
857
  });
858
858
  return /* @__PURE__ */ v(
859
- Fe,
859
+ $e,
860
860
  {
861
- ref: y,
862
- className: x,
861
+ ref: k,
862
+ className: C,
863
863
  disabled: t,
864
864
  type: l,
865
865
  "aria-label": i || f,
866
- ...C,
866
+ ...x,
867
867
  children: [
868
868
  d && /* @__PURE__ */ o("span", { className: "pr-2", children: d }),
869
869
  /* @__PURE__ */ o("div", { className: T, children: e }),
@@ -875,19 +875,19 @@ const yt = E.forwardRef(
875
875
  );
876
876
  yt.displayName = "ButtonIcon";
877
877
  /*!
878
- @versini/ui-button v4.0.3
878
+ @versini/ui-button v4.0.4
879
879
  © 2025 gizmette.com
880
880
  */
881
881
  try {
882
882
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
883
- version: "4.0.3",
884
- buildTime: "01/04/2025 04:09 PM EST",
883
+ version: "4.0.4",
884
+ buildTime: "01/06/2025 08:01 PM EST",
885
885
  homepage: "https://github.com/aversini/ui-components",
886
886
  license: "MIT"
887
887
  });
888
888
  } catch {
889
889
  }
890
- const Hr = E.forwardRef(
890
+ const Ur = E.forwardRef(
891
891
  ({
892
892
  children: e,
893
893
  disabled: t = !1,
@@ -904,12 +904,12 @@ const Hr = E.forwardRef(
904
904
  labelRight: g,
905
905
  labelLeft: d,
906
906
  noBackground: m = !1,
907
- align: k = "center",
907
+ align: y = "center",
908
908
  active: b = !1,
909
909
  radius: N = "large",
910
- ...C
911
- }, y) => {
912
- const x = vt({
910
+ ...x
911
+ }, k) => {
912
+ const C = vt({
913
913
  type: we,
914
914
  mode: r,
915
915
  focusMode: a,
@@ -922,7 +922,7 @@ const Hr = E.forwardRef(
922
922
  labelRight: g,
923
923
  labelLeft: d,
924
924
  noBackground: m,
925
- align: k,
925
+ align: y,
926
926
  radius: N
927
927
  }), T = w({
928
928
  "text-copy-accent-dark": r === "light" && !c,
@@ -947,14 +947,14 @@ const Hr = E.forwardRef(
947
947
  }
948
948
  ) : "";
949
949
  return /* @__PURE__ */ o("div", { className: A, children: /* @__PURE__ */ v(
950
- Fe,
950
+ $e,
951
951
  {
952
- ref: y,
953
- className: x,
952
+ ref: k,
953
+ className: C,
954
954
  disabled: t,
955
955
  type: l,
956
956
  "aria-label": i || f,
957
- ...C,
957
+ ...x,
958
958
  children: [
959
959
  d && /* @__PURE__ */ o("span", { className: "pr-2", children: d }),
960
960
  /* @__PURE__ */ o("div", { className: T, children: e }),
@@ -964,8 +964,8 @@ const Hr = E.forwardRef(
964
964
  ) });
965
965
  }
966
966
  );
967
- Hr.displayName = "ButtonSort";
968
- const jr = ({
967
+ Ur.displayName = "ButtonSort";
968
+ const Hr = ({
969
969
  children: e,
970
970
  fill: t,
971
971
  viewBox: r,
@@ -996,26 +996,26 @@ const jr = ({
996
996
  ] });
997
997
  };
998
998
  /*!
999
- @versini/ui-svgicon v4.0.0
999
+ @versini/ui-svgicon v4.0.1
1000
1000
  © 2025 gizmette.com
1001
1001
  */
1002
1002
  try {
1003
1003
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
1004
- version: "4.0.0",
1005
- buildTime: "01/04/2025 04:09 PM EST",
1004
+ version: "4.0.1",
1005
+ buildTime: "01/06/2025 08:00 PM EST",
1006
1006
  homepage: "https://github.com/aversini/ui-components",
1007
1007
  license: "MIT"
1008
1008
  });
1009
1009
  } catch {
1010
1010
  }
1011
- const Wr = ({
1011
+ const jr = ({
1012
1012
  className: e,
1013
1013
  viewBox: t,
1014
1014
  title: r,
1015
1015
  monotone: a,
1016
1016
  ...n
1017
1017
  }) => /* @__PURE__ */ o(
1018
- jr,
1018
+ Hr,
1019
1019
  {
1020
1020
  defaultViewBox: "0 0 384 512",
1021
1021
  size: "size-5",
@@ -1027,33 +1027,33 @@ const Wr = ({
1027
1027
  }
1028
1028
  );
1029
1029
  /*!
1030
- @versini/ui-icons v4.2.0
1030
+ @versini/ui-icons v4.2.1
1031
1031
  © 2025 gizmette.com
1032
1032
  */
1033
1033
  try {
1034
1034
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
1035
- version: "4.2.0",
1036
- buildTime: "01/04/2025 04:09 PM EST",
1035
+ version: "4.2.1",
1036
+ buildTime: "01/06/2025 08:00 PM EST",
1037
1037
  homepage: "https://github.com/aversini/ui-components",
1038
1038
  license: "MIT"
1039
1039
  });
1040
1040
  } catch {
1041
1041
  }
1042
1042
  const kt = h.createContext(null);
1043
- function Kr({
1043
+ function Wr({
1044
1044
  initialOpen: e = !1,
1045
1045
  open: t,
1046
1046
  onOpenChange: r
1047
1047
  } = {}) {
1048
- const [a, n] = h.useState(e), [s, l] = h.useState(), [c, u] = h.useState(), i = t ?? a, f = r ?? n, p = lt({
1048
+ const [a, n] = h.useState(e), [s, l] = h.useState(), [c, u] = h.useState(), i = t ?? a, f = r ?? n, p = nt({
1049
1049
  open: i,
1050
1050
  onOpenChange: f
1051
- }), g = p.context, d = ct(g, {
1051
+ }), g = p.context, d = st(g, {
1052
1052
  enabled: t == null
1053
- }), m = dt(g, {
1053
+ }), m = ct(g, {
1054
1054
  outsidePress: !1,
1055
1055
  outsidePressEvent: "mousedown"
1056
- }), k = it(g), b = ut([d, m, k]);
1056
+ }), y = lt(g), b = it([d, m, y]);
1057
1057
  return h.useMemo(
1058
1058
  () => ({
1059
1059
  open: i,
@@ -1074,22 +1074,22 @@ const Ne = () => {
1074
1074
  throw new Error("Modal components must be wrapped in <Modal />");
1075
1075
  return e;
1076
1076
  };
1077
- function Yr({
1077
+ function Kr({
1078
1078
  children: e,
1079
1079
  ...t
1080
1080
  }) {
1081
- const r = Kr(t);
1081
+ const r = Wr(t);
1082
1082
  return /* @__PURE__ */ o(kt.Provider, { value: r, children: e });
1083
1083
  }
1084
- const Zr = h.forwardRef(function(e, t) {
1085
- const { context: r, ...a } = Ne(), n = Oe([a.refs.setFloating, t]);
1084
+ const Yr = h.forwardRef(function(e, t) {
1085
+ const { context: r, ...a } = Ne(), n = Ae([a.refs.setFloating, t]);
1086
1086
  if (!r.open)
1087
1087
  return null;
1088
1088
  const { overlayBackground: s, ...l } = e, c = w("grid place-items-center", {
1089
1089
  [`${s}`]: s,
1090
1090
  "bg-black sm:bg-black/[.8]": !s
1091
1091
  });
1092
- return /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(Cr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(ht, { context: r, children: /* @__PURE__ */ o(
1092
+ return /* @__PURE__ */ o(dt, { children: /* @__PURE__ */ o(gr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(ut, { context: r, children: /* @__PURE__ */ o(
1093
1093
  "div",
1094
1094
  {
1095
1095
  ref: n,
@@ -1099,13 +1099,13 @@ const Zr = h.forwardRef(function(e, t) {
1099
1099
  children: l.children
1100
1100
  }
1101
1101
  ) }) }) });
1102
- }), qr = h.forwardRef(function({ children: e, ...t }, r) {
1102
+ }), Zr = h.forwardRef(function({ children: e, ...t }, r) {
1103
1103
  const { setLabelId: a } = Ne(), n = ze();
1104
1104
  return h.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
1105
- }), Qr = h.forwardRef(function({ children: e, ...t }, r) {
1105
+ }), qr = h.forwardRef(function({ children: e, ...t }, r) {
1106
1106
  const { setDescriptionId: a } = Ne(), n = ze();
1107
1107
  return h.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
1108
- }), Xr = h.forwardRef(function(e, t) {
1108
+ }), Qr = h.forwardRef(function(e, t) {
1109
1109
  const { setOpen: r } = Ne(), { trigger: a, className: n, ...s } = e, l = h.useCallback(() => r(!1), [r]);
1110
1110
  return /* @__PURE__ */ o("div", { className: n, children: h.cloneElement(a, {
1111
1111
  ref: t,
@@ -1114,28 +1114,28 @@ const Zr = h.forwardRef(function(e, t) {
1114
1114
  }) });
1115
1115
  });
1116
1116
  /*!
1117
- @versini/ui-modal v1.2.0
1117
+ @versini/ui-modal v1.2.1
1118
1118
  © 2025 gizmette.com
1119
1119
  */
1120
1120
  try {
1121
1121
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
1122
- version: "1.2.0",
1123
- buildTime: "01/04/2025 04:09 PM EST",
1122
+ version: "1.2.1",
1123
+ buildTime: "01/06/2025 08:00 PM EST",
1124
1124
  homepage: "https://github.com/aversini/ui-components",
1125
1125
  license: "MIT"
1126
1126
  });
1127
1127
  } catch {
1128
1128
  }
1129
- const ie = "panel", fe = "messagebox", Jr = ({
1129
+ const ie = "panel", fe = "messagebox", Xr = ({
1130
1130
  className: e,
1131
1131
  kind: t,
1132
1132
  borderMode: r
1133
1133
  }) => ({
1134
1134
  main: w("prose prose-lighter flex flex-col bg-surface-medium", {
1135
- [`${Qe} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === ie,
1136
- [`${Qe} w-full sm:w-[95%] md:max-w-2xl`]: t === ie && !e,
1137
- [`${qe} rounded-lg border-2`]: t === fe,
1138
- [`${qe} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === fe && !e,
1135
+ [`${qe} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === ie,
1136
+ [`${qe} w-full sm:w-[95%] md:max-w-2xl`]: t === ie && !e,
1137
+ [`${Ze} rounded-lg border-2`]: t === fe,
1138
+ [`${Ze} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === fe && !e,
1139
1139
  [`${e}`]: !!e,
1140
1140
  "sm:border-border-dark": r === "dark" && t === ie,
1141
1141
  "sm:border-border-accent": r === "light" && t === ie,
@@ -1156,13 +1156,13 @@ const ie = "panel", fe = "messagebox", Jr = ({
1156
1156
  kind: l = ie,
1157
1157
  className: c
1158
1158
  }) => {
1159
- const u = re(""), i = Jr({ className: c, kind: l, borderMode: s });
1159
+ const u = re(""), i = Xr({ className: c, kind: l, borderMode: s });
1160
1160
  return Z(() => (e && (u.current = document.title, document.title = `${r} | ${u.current}`), () => {
1161
1161
  e && (document.title = u.current);
1162
- }), [r, e]), /* @__PURE__ */ o(z, { children: e && /* @__PURE__ */ o(Yr, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Zr, { className: i.main, children: [
1162
+ }), [r, e]), /* @__PURE__ */ o(z, { children: e && /* @__PURE__ */ o(Kr, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Yr, { className: i.main, children: [
1163
1163
  /* @__PURE__ */ v("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1164
1164
  /* @__PURE__ */ o(
1165
- Xr,
1165
+ Qr,
1166
1166
  {
1167
1167
  className: i.close,
1168
1168
  trigger: /* @__PURE__ */ o(
@@ -1172,23 +1172,22 @@ const ie = "panel", fe = "messagebox", Jr = ({
1172
1172
  focusMode: "light",
1173
1173
  noBorder: !0,
1174
1174
  label: "Close",
1175
- children: /* @__PURE__ */ o(Wr, {})
1175
+ children: /* @__PURE__ */ o(jr, {})
1176
1176
  }
1177
1177
  )
1178
1178
  }
1179
1179
  ),
1180
- /* @__PURE__ */ o(qr, { className: i.header, children: r })
1180
+ /* @__PURE__ */ o(Zr, { className: i.header, children: r })
1181
1181
  ] }),
1182
- /* @__PURE__ */ o(Qr, { className: i.content, children: a }),
1182
+ /* @__PURE__ */ o(qr, { className: i.content, children: a }),
1183
1183
  n && /* @__PURE__ */ o("div", { className: i.footer, children: n })
1184
1184
  ] }) }) });
1185
- }, eo = () => {
1185
+ }, Jr = () => {
1186
1186
  const { getAccessToken: e } = D(), t = ve(), r = ve(), {
1187
1187
  data: a,
1188
1188
  error: n,
1189
1189
  isLoading: s
1190
- } = at({
1191
- keys: [],
1190
+ } = mt({
1192
1191
  getAccessToken: e
1193
1192
  }), l = (a == null ? void 0 : a.plugins) || [], c = (a == null ? void 0 : a.version) || "", u = (a == null ? void 0 : a.models) || [];
1194
1193
  return /* @__PURE__ */ v(z, { children: [
@@ -1198,8 +1197,8 @@ const ie = "panel", fe = "messagebox", Jr = ({
1198
1197
  header: _.ABOUT.TITLE_CLIENT,
1199
1198
  className: "prose-dark dark:prose-lighter",
1200
1199
  children: pe(t, {
1201
- [_.ABOUT.VERSION]: "5.19.10",
1202
- [_.ABOUT.BUILD_TIMESTAMP]: "01/06/2025 06:20 PM EST"
1200
+ [_.ABOUT.VERSION]: "5.19.11",
1201
+ [_.ABOUT.BUILD_TIMESTAMP]: "01/07/2025 09:42 AM EST"
1203
1202
  })
1204
1203
  }
1205
1204
  ) }),
@@ -1216,10 +1215,10 @@ const ie = "panel", fe = "messagebox", Jr = ({
1216
1215
  }
1217
1216
  )
1218
1217
  ] });
1219
- }, to = ({
1218
+ }, eo = ({
1220
1219
  open: e,
1221
1220
  onOpenChange: t
1222
- }) => /* @__PURE__ */ o(ne, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(eo, {}) }), wt = ({
1221
+ }) => /* @__PURE__ */ o(ne, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Jr, {}) }), wt = ({
1223
1222
  showConfirmation: e,
1224
1223
  setShowConfirmation: t,
1225
1224
  action: r,
@@ -1232,7 +1231,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1232
1231
  open: e,
1233
1232
  onOpenChange: t,
1234
1233
  title: n.title,
1235
- footer: /* @__PURE__ */ v(Y, { columnGap: 2, alignHorizontal: "flex-end", children: [
1234
+ footer: /* @__PURE__ */ v(K, { columnGap: 2, alignHorizontal: "flex-end", children: [
1236
1235
  /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
1237
1236
  U,
1238
1237
  {
@@ -1260,7 +1259,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1260
1259
  ] }),
1261
1260
  children: a
1262
1261
  }
1263
- ), ro = async (e, t, r, a) => {
1262
+ ), to = async (e, t, r, a) => {
1264
1263
  try {
1265
1264
  const n = await oe({
1266
1265
  accessToken: a,
@@ -1270,7 +1269,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1270
1269
  }
1271
1270
  });
1272
1271
  n.status === 200 && (t({
1273
- type: tt
1272
+ type: et
1274
1273
  }), t({
1275
1274
  type: Gt,
1276
1275
  payload: {
@@ -1282,65 +1281,65 @@ const ie = "panel", fe = "messagebox", Jr = ({
1282
1281
  }), r(!1));
1283
1282
  } catch {
1284
1283
  }
1285
- }, oo = ({
1284
+ }, ro = ({
1286
1285
  filteredHistory: e,
1287
1286
  dispatch: t,
1288
1287
  onOpenChange: r,
1289
1288
  mutate: a
1290
1289
  }) => {
1291
- var C;
1290
+ var x;
1292
1291
  const { user: n, getAccessToken: s } = D(), l = re(null), c = re({
1293
1292
  id: 0,
1294
1293
  timestamp: "",
1295
1294
  message: ""
1296
1295
  }), [u, i] = R(!1), [f, p] = R(
1297
- Ue + He
1298
- ), { state: g, dispatch: d } = H(Ae), [, m] = me({
1296
+ Ge + Ue
1297
+ ), { state: g, dispatch: d } = Y(ht), [, m] = me({
1299
1298
  key: ue + Vt,
1300
1299
  initialValue: g.sortDirection
1301
- }), k = (y) => {
1300
+ }), y = (k) => {
1302
1301
  switch (g.sortDirection) {
1303
1302
  case ce.ASC:
1304
1303
  m(ce.DESC), d({
1305
- type: je,
1304
+ type: He,
1306
1305
  payload: {
1307
- sortedCell: y,
1306
+ sortedCell: k,
1308
1307
  sortDirection: ce.DESC
1309
1308
  }
1310
1309
  });
1311
1310
  break;
1312
1311
  default:
1313
1312
  m(ce.ASC), d({
1314
- type: je,
1313
+ type: He,
1315
1314
  payload: {
1316
- sortedCell: y,
1315
+ sortedCell: k,
1317
1316
  sortDirection: ce.ASC
1318
1317
  }
1319
1318
  });
1320
1319
  break;
1321
1320
  }
1322
1321
  }, b = async () => {
1323
- const y = c.current;
1322
+ const k = c.current;
1324
1323
  try {
1325
1324
  await oe({
1326
1325
  accessToken: await s(),
1327
1326
  type: ae.DELETE_CHAT,
1328
1327
  params: {
1329
1328
  userId: (n == null ? void 0 : n.username) || "",
1330
- id: y.id
1329
+ id: k.id
1331
1330
  }
1332
1331
  }), a();
1333
1332
  } catch {
1334
1333
  }
1335
- }, N = rr((y) => {
1336
- y[0].isIntersecting && p((T) => T + Ue);
1334
+ }, N = rr((k) => {
1335
+ k[0].isIntersecting && p((T) => T + Ge);
1337
1336
  }, []);
1338
1337
  return Z(() => {
1339
- const y = {
1338
+ const k = {
1340
1339
  // root: null,
1341
1340
  rootMargin: "20px"
1342
- }, x = new IntersectionObserver(N, y);
1343
- l.current && x.observe(l.current);
1341
+ }, C = new IntersectionObserver(N, k);
1342
+ l.current && C.observe(l.current);
1344
1343
  }), /* @__PURE__ */ v(z, { children: [
1345
1344
  /* @__PURE__ */ v(
1346
1345
  wt,
@@ -1364,17 +1363,17 @@ const ie = "panel", fe = "messagebox", Jr = ({
1364
1363
  /* @__PURE__ */ v("li", { children: [
1365
1364
  "First message:",
1366
1365
  " ",
1367
- /* @__PURE__ */ o("span", { className: "text-lg", children: (C = c.current) == null ? void 0 : C.message })
1366
+ /* @__PURE__ */ o("span", { className: "text-lg", children: (x = c.current) == null ? void 0 : x.message })
1368
1367
  ] })
1369
1368
  ] })
1370
1369
  ]
1371
1370
  }
1372
1371
  ),
1373
- /* @__PURE__ */ v(ar, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
1374
- /* @__PURE__ */ o(nr, { children: /* @__PURE__ */ v(Ie, { children: [
1372
+ /* @__PURE__ */ v(fr, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
1373
+ /* @__PURE__ */ o(pr, { children: /* @__PURE__ */ v(Ie, { children: [
1375
1374
  /* @__PURE__ */ o($, { className: "sr-only", children: "Row" }),
1376
1375
  /* @__PURE__ */ o(
1377
- sr,
1376
+ br,
1378
1377
  {
1379
1378
  buttonClassName: "text-xs sm:text-sm",
1380
1379
  cellId: "timestamp",
@@ -1382,7 +1381,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1382
1381
  sortDirection: g.sortDirection,
1383
1382
  sortedCell: g.sortedCell,
1384
1383
  onClick: () => {
1385
- k("timestamp");
1384
+ y("timestamp");
1386
1385
  },
1387
1386
  children: "Date"
1388
1387
  }
@@ -1391,19 +1390,19 @@ const ie = "panel", fe = "messagebox", Jr = ({
1391
1390
  /* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "Model" }),
1392
1391
  /* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
1393
1392
  ] }) }),
1394
- /* @__PURE__ */ o(lr, { children: e.slice(0, f).map((y, x) => {
1393
+ /* @__PURE__ */ o(vr, { children: e.slice(0, f).map((k, C) => {
1395
1394
  var T, A;
1396
- return ((T = y == null ? void 0 : y.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ v(or, { children: [
1397
- x === f - He && /* @__PURE__ */ o("tr", { ref: l }),
1395
+ return ((T = k == null ? void 0 : k.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ v(or, { children: [
1396
+ C === f - Ue && /* @__PURE__ */ o("tr", { ref: l }),
1398
1397
  /* @__PURE__ */ v(Ie, { children: [
1399
- /* @__PURE__ */ o($, { children: x + 1 }),
1398
+ /* @__PURE__ */ o($, { children: C + 1 }),
1400
1399
  /* @__PURE__ */ o(
1401
1400
  $,
1402
1401
  {
1403
1402
  component: "th",
1404
1403
  scope: "row",
1405
1404
  className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
1406
- children: y.timestamp.split(",")[0]
1405
+ children: k.timestamp.split(",")[0]
1407
1406
  }
1408
1407
  ),
1409
1408
  /* @__PURE__ */ o(
@@ -1413,7 +1412,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1413
1412
  style: {
1414
1413
  wordBreak: "break-word"
1415
1414
  },
1416
- children: y.messages.length > 0 ? (A = y.messages[0]) == null ? void 0 : A.content : ""
1415
+ children: k.messages.length > 0 ? (A = k.messages[0]) == null ? void 0 : A.content : ""
1417
1416
  }
1418
1417
  ),
1419
1418
  /* @__PURE__ */ v(
@@ -1424,8 +1423,8 @@ const ie = "panel", fe = "messagebox", Jr = ({
1424
1423
  className: "text-gray-400",
1425
1424
  align: "center",
1426
1425
  children: [
1427
- y.model && y.model.startsWith("claude") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" }),
1428
- y.model && y.model.startsWith("gpt") && /* @__PURE__ */ o(ft, { size: "size-4 sm:size-5" })
1426
+ k.model && k.model.startsWith("claude") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" }),
1427
+ k.model && k.model.startsWith("gpt") && /* @__PURE__ */ o(ft, { size: "size-4 sm:size-5" })
1429
1428
  ]
1430
1429
  }
1431
1430
  ),
@@ -1439,14 +1438,14 @@ const ie = "panel", fe = "messagebox", Jr = ({
1439
1438
  label: "Restore chat",
1440
1439
  onClick: async () => {
1441
1440
  const L = await s();
1442
- ro(
1443
- y,
1441
+ to(
1442
+ k,
1444
1443
  t,
1445
1444
  r,
1446
1445
  L
1447
1446
  );
1448
1447
  },
1449
- children: /* @__PURE__ */ o(Rr, { size: "size-3", monotone: !0 })
1448
+ children: /* @__PURE__ */ o(Sr, { size: "size-3", monotone: !0 })
1450
1449
  }
1451
1450
  ),
1452
1451
  /* @__PURE__ */ o(
@@ -1458,29 +1457,29 @@ const ie = "panel", fe = "messagebox", Jr = ({
1458
1457
  onClick: () => {
1459
1458
  var L;
1460
1459
  c.current = {
1461
- id: y.id,
1462
- timestamp: y.timestamp,
1463
- message: y.messages.length > 0 ? (L = y.messages[0]) == null ? void 0 : L.content : ""
1460
+ id: k.id,
1461
+ timestamp: k.timestamp,
1462
+ message: k.messages.length > 0 ? (L = k.messages[0]) == null ? void 0 : L.content : ""
1464
1463
  }, i(!u);
1465
1464
  },
1466
- children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Ir, { size: "size-3", monotone: !0 }) })
1465
+ children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 }) })
1467
1466
  }
1468
1467
  )
1469
1468
  ] })
1470
1469
  ] })
1471
- ] }, `${_.HISTORY.TITLE}-${y.id}-${x}`) : null;
1470
+ ] }, `${_.HISTORY.TITLE}-${k.id}-${C}`) : null;
1472
1471
  }) }),
1473
- /* @__PURE__ */ o(cr, { children: /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o($, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: be(
1472
+ /* @__PURE__ */ o(yr, { children: /* @__PURE__ */ o(Ie, { children: /* @__PURE__ */ o($, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: be(
1474
1473
  `${e.length} chat`,
1475
1474
  e.length
1476
1475
  ) }) }) }) })
1477
1476
  ] })
1478
1477
  ] });
1479
- }, ao = ({
1478
+ }, oo = ({
1480
1479
  open: e,
1481
1480
  onOpenChange: t
1482
1481
  }) => {
1483
- const { getAccessToken: r, user: a } = D(), { dispatch: n } = H(Pe), { state: s, dispatch: l } = H(Ae), { data: c, mutate: u } = ir({
1482
+ const { getAccessToken: r, user: a } = D(), { dispatch: n } = Y(Pe), { state: s, dispatch: l } = Y(ht), { data: c, mutate: u } = kr({
1484
1483
  keys: [
1485
1484
  a == null ? void 0 : a.username,
1486
1485
  s.searchString,
@@ -1540,7 +1539,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1540
1539
  }
1541
1540
  ) }),
1542
1541
  /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ o(
1543
- oo,
1542
+ ro,
1544
1543
  {
1545
1544
  mutate: u,
1546
1545
  filteredHistory: p,
@@ -1549,7 +1548,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1549
1548
  }
1550
1549
  ) })
1551
1550
  ] }) });
1552
- }, no = ({ stats: e }) => {
1551
+ }, ao = ({ stats: e }) => {
1553
1552
  const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = D(), s = ve(), l = ve(), c = (r == null ? void 0 : r.username) || "";
1554
1553
  return t && c ? /* @__PURE__ */ v(z, { children: [
1555
1554
  /* @__PURE__ */ o(
@@ -1567,8 +1566,8 @@ const ie = "panel", fe = "messagebox", Jr = ({
1567
1566
  F,
1568
1567
  {
1569
1568
  className: "prose-dark dark:prose-lighter mt-4",
1570
- header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ v(Y, { columnGap: 3, alignVertical: "center", children: [
1571
- /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(We, { size: "size-8" }) }),
1569
+ header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ v(K, { columnGap: 3, alignVertical: "center", children: [
1570
+ /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(je, { size: "size-8" }) }),
1572
1571
  /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o("div", { children: _.PREFERENCES.PASSKEY_TITLE }) })
1573
1572
  ] }) }),
1574
1573
  children: [
@@ -1580,7 +1579,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1580
1579
  className: "mt-2",
1581
1580
  onClick: a,
1582
1581
  labelLeft: _.PREFERENCES.PASSKEY_BUTTON,
1583
- children: /* @__PURE__ */ o(We, { size: "size-5", monotone: !0 })
1582
+ children: /* @__PURE__ */ o(je, { size: "size-5", monotone: !0 })
1584
1583
  }
1585
1584
  )
1586
1585
  ]
@@ -1600,7 +1599,7 @@ const ie = "panel", fe = "messagebox", Jr = ({
1600
1599
  }
1601
1600
  )
1602
1601
  ] }) : null;
1603
- }, so = ({
1602
+ }, no = ({
1604
1603
  open: e,
1605
1604
  onOpenChange: t
1606
1605
  }) => {
@@ -1608,26 +1607,26 @@ const ie = "panel", fe = "messagebox", Jr = ({
1608
1607
  data: n,
1609
1608
  error: s,
1610
1609
  isLoading: l
1611
- } = dr({
1610
+ } = wr({
1612
1611
  keys: [a == null ? void 0 : a.username],
1613
1612
  getAccessToken: r
1614
1613
  });
1615
- return s || l ? null : /* @__PURE__ */ o(ne, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ o(no, { stats: n }) });
1614
+ return s || l ? null : /* @__PURE__ */ o(ne, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ o(ao, { stats: n }) });
1616
1615
  };
1617
1616
  /*!
1618
- @versini/ui-toggle v3.0.0
1617
+ @versini/ui-toggle v3.0.1
1619
1618
  © 2025 gizmette.com
1620
1619
  */
1621
1620
  try {
1622
1621
  window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
1623
- version: "3.0.0",
1624
- buildTime: "01/03/2025 10:45 AM EST",
1622
+ version: "3.0.1",
1623
+ buildTime: "01/06/2025 08:00 PM EST",
1625
1624
  homepage: "https://github.com/aversini/ui-components",
1626
1625
  license: "MIT"
1627
1626
  });
1628
1627
  } catch {
1629
1628
  }
1630
- const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io = ({
1629
+ const so = "av-toggle", lo = () => w("peer", "h-6", "w-11", "rounded-full"), co = ({
1631
1630
  focusMode: e
1632
1631
  }) => w(
1633
1632
  "peer-focus:outline",
@@ -1639,14 +1638,14 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1639
1638
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
1640
1639
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
1641
1640
  }
1642
- ), uo = () => w(
1641
+ ), io = () => w(
1643
1642
  "peer-checked:after:translate-x-full",
1644
1643
  // background color when checked
1645
1644
  "peer-checked:bg-violet-500",
1646
1645
  // knob circle and border color when checked
1647
1646
  "peer-checked:after:bg-white",
1648
1647
  "peer-checked:after:border-white"
1649
- ), mo = () => w(
1648
+ ), uo = () => w(
1650
1649
  "after:left-[2px]",
1651
1650
  "after:top-[2px]",
1652
1651
  "after:border",
@@ -1658,7 +1657,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1658
1657
  "after:rounded-full",
1659
1658
  "after:transition-all",
1660
1659
  "after:content-['']"
1661
- ), ho = ({
1660
+ ), mo = ({
1662
1661
  mode: e,
1663
1662
  noBorder: t
1664
1663
  }) => w({
@@ -1667,7 +1666,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1667
1666
  "border-border-light bg-surface-darker": e === "dark",
1668
1667
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
1669
1668
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
1670
- }), go = ({
1669
+ }), ho = ({
1671
1670
  mode: e,
1672
1671
  labelHidden: t
1673
1672
  }) => t ? "sr-only" : w("ml-2 text-sm", {
@@ -1675,11 +1674,11 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1675
1674
  "text-copy-lighter": e === "dark",
1676
1675
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
1677
1676
  "text-copy-dark dark:text-copy-lighter": e === "system"
1678
- }), fo = ({ className: e }) => w(
1679
- lo,
1677
+ }), go = ({ className: e }) => w(
1678
+ so,
1680
1679
  "relative flex cursor-pointer items-center",
1681
1680
  e
1682
- ), po = ({
1681
+ ), fo = ({
1683
1682
  mode: e,
1684
1683
  focusMode: t,
1685
1684
  labelHidden: r,
@@ -1687,15 +1686,15 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1687
1686
  noBorder: n
1688
1687
  }) => ({
1689
1688
  toggle: w(
1690
- co(),
1691
- ho({ mode: e, noBorder: n }),
1692
- io({ focusMode: t }),
1693
- mo(),
1694
- uo()
1689
+ lo(),
1690
+ mo({ mode: e, noBorder: n }),
1691
+ co({ focusMode: t }),
1692
+ uo(),
1693
+ io()
1695
1694
  ),
1696
- label: go({ mode: e, labelHidden: r }),
1695
+ label: ho({ mode: e, labelHidden: r }),
1697
1696
  input: "peer sr-only",
1698
- wrapper: fo({ className: a })
1697
+ wrapper: go({ className: a })
1699
1698
  }), de = ({
1700
1699
  checked: e = !1,
1701
1700
  onChange: t,
@@ -1707,7 +1706,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1707
1706
  className: c,
1708
1707
  noBorder: u = !1
1709
1708
  }) => {
1710
- const i = po({
1709
+ const i = fo({
1711
1710
  mode: s,
1712
1711
  focusMode: l,
1713
1712
  labelHidden: a,
@@ -1730,7 +1729,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1730
1729
  /* @__PURE__ */ o("div", { className: i.toggle }),
1731
1730
  /* @__PURE__ */ o("span", { className: i.label, children: r })
1732
1731
  ] });
1733
- }, bo = ({
1732
+ }, po = ({
1734
1733
  open: e,
1735
1734
  onOpenChange: t
1736
1735
  }) => {
@@ -1747,22 +1746,22 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1747
1746
  }), f = ({
1748
1747
  slot: d,
1749
1748
  checked: m,
1750
- label: k,
1749
+ label: y,
1751
1750
  content: b
1752
1751
  }) => {
1753
1752
  i((N) => {
1754
- const C = N.prompts, y = {
1753
+ const x = N.prompts, k = {
1755
1754
  slot: d,
1756
- label: k,
1755
+ label: y,
1757
1756
  content: b,
1758
1757
  enabled: m
1759
- }, x = C.findIndex((T) => T.slot === d);
1760
- return x === -1 ? {
1758
+ }, C = x.findIndex((T) => T.slot === d);
1759
+ return C === -1 ? {
1761
1760
  ...N,
1762
- prompts: [...C, { ...y, slot: d }]
1763
- } : (C[x] = y, {
1761
+ prompts: [...x, { ...k, slot: d }]
1762
+ } : (x[C] = k, {
1764
1763
  ...N,
1765
- prompts: [...C]
1764
+ prompts: [...x]
1766
1765
  });
1767
1766
  });
1768
1767
  }, p = async (d) => {
@@ -1790,7 +1789,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1790
1789
  onOpenChange: g,
1791
1790
  title: "Prompts",
1792
1791
  footer: /* @__PURE__ */ v(
1793
- Y,
1792
+ K,
1794
1793
  {
1795
1794
  columnGap: 2,
1796
1795
  alignHorizontal: "flex-end",
@@ -1829,7 +1828,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1829
1828
  header: `Prompt ${d.slot + 1}`,
1830
1829
  className: "prose-dark dark:prose-lighter mb-2",
1831
1830
  children: [
1832
- /* @__PURE__ */ v(Y, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
1831
+ /* @__PURE__ */ v(K, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
1833
1832
  /* @__PURE__ */ o(M, { span: 12, children: /* @__PURE__ */ o(
1834
1833
  Te,
1835
1834
  {
@@ -1888,7 +1887,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1888
1887
  ]
1889
1888
  }
1890
1889
  );
1891
- }, vo = ({
1890
+ }, bo = ({
1892
1891
  open: e,
1893
1892
  onOpenChange: t
1894
1893
  }) => {
@@ -1902,10 +1901,10 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1902
1901
  getAccessToken: r
1903
1902
  }), [u, i] = R(!1), [f, p] = R({
1904
1903
  loadingLocation: !1
1905
- }), [g, d] = R(""), [m, k] = R(""), [b, N] = R(Qt), [C, y] = me({
1906
- key: ue + rt,
1904
+ }), [g, d] = R(""), [m, y] = R(""), [b, N] = R(Qt), [x, k] = me({
1905
+ key: ue + tt,
1907
1906
  initialValue: !1
1908
- }), [x, T] = me({
1907
+ }), [C, T] = me({
1909
1908
  key: ue + Xt,
1910
1909
  initialValue: !1
1911
1910
  }), A = (I) => {
@@ -1930,9 +1929,9 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1930
1929
  }, S = async () => {
1931
1930
  p({
1932
1931
  loadingLocation: !0
1933
- }), k("...");
1932
+ }), y("...");
1934
1933
  try {
1935
- const I = Date.now(), B = await tr(), j = await oe({
1934
+ const I = Date.now(), B = await tr(), H = await oe({
1936
1935
  accessToken: await r(),
1937
1936
  type: ae.GET_LOCATION,
1938
1937
  params: {
@@ -1940,11 +1939,11 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1940
1939
  longitude: B.longitude
1941
1940
  }
1942
1941
  }), le = Date.now() - I;
1943
- if (le < 2e3 && await new Promise((X) => setTimeout(X, 2e3 - le)), j.status === 200) {
1944
- const { city: X, state: ge, country: G, displayName: $t } = j.data, Ft = X && ge && G ? `${X}, ${ge}, ${G}` : $t;
1942
+ if (le < 2e3 && await new Promise((X) => setTimeout(X, 2e3 - le)), H.status === 200) {
1943
+ const { city: X, state: ge, country: G, displayName: $t } = H.data, Ft = X && ge && G ? `${X}, ${ge}, ${G}` : $t;
1945
1944
  p({
1946
1945
  loadingLocation: !1
1947
- }), k(Ft);
1946
+ }), y(Ft);
1948
1947
  } else
1949
1948
  p({
1950
1949
  loadingLocation: !1
@@ -1959,7 +1958,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1959
1958
  c({ ...n }), t(!1);
1960
1959
  };
1961
1960
  return Z(() => {
1962
- n != null && n.instructions && d(n.instructions), n != null && n.location && k(n.location), n != null && n.engine && N(n.engine);
1961
+ n != null && n.instructions && d(n.instructions), n != null && n.location && y(n.location), n != null && n.engine && N(n.engine);
1963
1962
  }, [n]), s || l ? null : /* @__PURE__ */ o(
1964
1963
  ne,
1965
1964
  {
@@ -1967,7 +1966,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1967
1966
  onOpenChange: V,
1968
1967
  title: Jt,
1969
1968
  footer: /* @__PURE__ */ v(
1970
- Y,
1969
+ K,
1971
1970
  {
1972
1971
  columnGap: 2,
1973
1972
  alignHorizontal: "flex-end",
@@ -1999,7 +1998,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
1999
1998
  }
2000
1999
  ),
2001
2000
  children: /* @__PURE__ */ v(z, { children: [
2002
- u && /* @__PURE__ */ o(bo, { open: u, onOpenChange: i }),
2001
+ u && /* @__PURE__ */ o(po, { open: u, onOpenChange: i }),
2003
2002
  /* @__PURE__ */ v(
2004
2003
  F,
2005
2004
  {
@@ -2036,8 +2035,8 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
2036
2035
  noBorder: !0,
2037
2036
  label: "Show Quick Engine Toggle Menu",
2038
2037
  name: "show-toggle-engine-menu",
2039
- onChange: y,
2040
- checked: C
2038
+ onChange: k,
2039
+ checked: x
2041
2040
  }
2042
2041
  ),
2043
2042
  /* @__PURE__ */ o("p", { className: "text-sm", children: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more." }),
@@ -2049,7 +2048,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
2049
2048
  label: "Show Message Statistics",
2050
2049
  name: "show-message-statistics",
2051
2050
  onChange: A,
2052
- checked: x
2051
+ checked: C
2053
2052
  }
2054
2053
  ),
2055
2054
  /* @__PURE__ */ o("h3", { className: "border-b-2 border-slate-400", children: "Prompts" }),
@@ -2060,7 +2059,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
2060
2059
  size: "small",
2061
2060
  onClick: Q,
2062
2061
  labelLeft: "Edit Custom Prompts",
2063
- children: /* @__PURE__ */ o(Er, { size: "size-3", monotone: !0 })
2062
+ children: /* @__PURE__ */ o(Ir, { size: "size-3", monotone: !0 })
2064
2063
  }
2065
2064
  )
2066
2065
  ]
@@ -2078,7 +2077,7 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
2078
2077
  " to know about you to provide better responses?"
2079
2078
  ] }),
2080
2079
  /* @__PURE__ */ o(
2081
- Ye,
2080
+ Ke,
2082
2081
  {
2083
2082
  mode: "alt-system",
2084
2083
  autoCapitalize: "off",
@@ -2104,14 +2103,14 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
2104
2103
  children: [
2105
2104
  /* @__PURE__ */ o("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
2106
2105
  /* @__PURE__ */ o(
2107
- Ye,
2106
+ Ke,
2108
2107
  {
2109
2108
  mode: "alt-system",
2110
2109
  name: "location",
2111
2110
  label: "Location",
2112
2111
  value: m,
2113
2112
  onChange: (I) => {
2114
- k(I.target.value);
2113
+ y(I.target.value);
2115
2114
  },
2116
2115
  helperText: "Enter your location or press auto-detect."
2117
2116
  }
@@ -2135,34 +2134,34 @@ const lo = "av-toggle", co = () => w("peer", "h-6", "w-11", "rounded-full"), io
2135
2134
  );
2136
2135
  };
2137
2136
  /*!
2138
- @versini/ui-togglegroup v3.0.0
2137
+ @versini/ui-togglegroup v3.0.1
2139
2138
  © 2025 gizmette.com
2140
2139
  */
2141
2140
  try {
2142
2141
  window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
2143
- version: "3.0.0",
2144
- buildTime: "01/03/2025 10:45 AM EST",
2142
+ version: "3.0.1",
2143
+ buildTime: "01/06/2025 08:00 PM EST",
2145
2144
  homepage: "https://github.com/aversini/ui-components",
2146
2145
  license: "MIT"
2147
2146
  });
2148
2147
  } catch {
2149
2148
  }
2150
- const yo = "av-togglegroup", ko = "av-togglegroup-item-wrapper", wo = "av-togglegroup-item";
2151
- function De(e, t = []) {
2149
+ const vo = "av-togglegroup", yo = "av-togglegroup-item-wrapper", ko = "av-togglegroup-item";
2150
+ function Fe(e, t = []) {
2152
2151
  let r = [];
2153
2152
  function a(s, l) {
2154
2153
  const c = h.createContext(l), u = r.length;
2155
2154
  r = [...r, l];
2156
2155
  const i = (p) => {
2157
2156
  var g;
2158
- const { scope: d, children: m, ...k } = p, b = ((g = d == null ? void 0 : d[e]) == null ? void 0 : g[u]) || c, N = h.useMemo(() => k, Object.values(k));
2157
+ const { scope: d, children: m, ...y } = p, b = ((g = d == null ? void 0 : d[e]) == null ? void 0 : g[u]) || c, N = h.useMemo(() => y, Object.values(y));
2159
2158
  return /* @__PURE__ */ o(b.Provider, { value: N, children: m });
2160
2159
  };
2161
2160
  i.displayName = s + "Provider";
2162
2161
  function f(p, g) {
2163
2162
  var d;
2164
- const m = ((d = g == null ? void 0 : g[e]) == null ? void 0 : d[u]) || c, k = h.useContext(m);
2165
- if (k) return k;
2163
+ const m = ((d = g == null ? void 0 : g[e]) == null ? void 0 : d[u]) || c, y = h.useContext(m);
2164
+ if (y) return y;
2166
2165
  if (l !== void 0) return l;
2167
2166
  throw new Error(`\`${p}\` must be used within \`${s}\``);
2168
2167
  }
@@ -2178,9 +2177,9 @@ function De(e, t = []) {
2178
2177
  );
2179
2178
  };
2180
2179
  };
2181
- return n.scopeName = e, [a, No(n, ...t)];
2180
+ return n.scopeName = e, [a, wo(n, ...t)];
2182
2181
  }
2183
- function No(...e) {
2182
+ function wo(...e) {
2184
2183
  const t = e[0];
2185
2184
  if (e.length === 1) return t;
2186
2185
  const r = () => {
@@ -2198,7 +2197,7 @@ function No(...e) {
2198
2197
  };
2199
2198
  return r.scopeName = t.scopeName, r;
2200
2199
  }
2201
- function Je(e, t) {
2200
+ function Xe(e, t) {
2202
2201
  if (typeof e == "function")
2203
2202
  return e(t);
2204
2203
  e != null && (e.current = t);
@@ -2207,14 +2206,14 @@ function Nt(...e) {
2207
2206
  return (t) => {
2208
2207
  let r = !1;
2209
2208
  const a = e.map((n) => {
2210
- const s = Je(n, t);
2209
+ const s = Xe(n, t);
2211
2210
  return !r && typeof s == "function" && (r = !0), s;
2212
2211
  });
2213
2212
  if (r)
2214
2213
  return () => {
2215
2214
  for (let n = 0; n < a.length; n++) {
2216
2215
  const s = a[n];
2217
- typeof s == "function" ? s() : Je(e[n], null);
2216
+ typeof s == "function" ? s() : Xe(e[n], null);
2218
2217
  }
2219
2218
  };
2220
2219
  };
@@ -2234,9 +2233,9 @@ ye.displayName = "Slot";
2234
2233
  var Le = h.forwardRef((e, t) => {
2235
2234
  const { children: r, ...a } = e;
2236
2235
  if (h.isValidElement(r)) {
2237
- const n = Eo(r);
2236
+ const n = Io(r);
2238
2237
  return h.cloneElement(r, {
2239
- ...Io(a, r.props),
2238
+ ...Co(a, r.props),
2240
2239
  // @ts-ignore
2241
2240
  ref: t ? Nt(t, n) : n
2242
2241
  });
@@ -2244,11 +2243,11 @@ var Le = h.forwardRef((e, t) => {
2244
2243
  return h.Children.count(r) > 1 ? h.Children.only(null) : null;
2245
2244
  });
2246
2245
  Le.displayName = "SlotClone";
2247
- var Co = ({ children: e }) => /* @__PURE__ */ o(z, { children: e });
2246
+ var No = ({ children: e }) => /* @__PURE__ */ o(z, { children: e });
2248
2247
  function xo(e) {
2249
- return h.isValidElement(e) && e.type === Co;
2248
+ return h.isValidElement(e) && e.type === No;
2250
2249
  }
2251
- function Io(e, t) {
2250
+ function Co(e, t) {
2252
2251
  const r = { ...t };
2253
2252
  for (const a in t) {
2254
2253
  const n = e[a], s = t[a];
@@ -2258,12 +2257,12 @@ function Io(e, t) {
2258
2257
  }
2259
2258
  return { ...e, ...r };
2260
2259
  }
2261
- function Eo(e) {
2260
+ function Io(e) {
2262
2261
  var t, r;
2263
2262
  let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
2264
2263
  return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2265
2264
  }
2266
- var To = [
2265
+ var Eo = [
2267
2266
  "a",
2268
2267
  "button",
2269
2268
  "div",
@@ -2280,50 +2279,50 @@ var To = [
2280
2279
  "span",
2281
2280
  "svg",
2282
2281
  "ul"
2283
- ], he = To.reduce((e, t) => {
2282
+ ], he = Eo.reduce((e, t) => {
2284
2283
  const r = h.forwardRef((a, n) => {
2285
2284
  const { asChild: s, ...l } = a, c = s ? ye : t;
2286
2285
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...l, ref: n });
2287
2286
  });
2288
2287
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
2289
2288
  }, {});
2290
- function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
2289
+ function W(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
2291
2290
  return function(a) {
2292
2291
  if (e == null || e(a), r === !1 || !a.defaultPrevented)
2293
2292
  return t == null ? void 0 : t(a);
2294
2293
  };
2295
2294
  }
2296
- function _o(e) {
2297
- const t = e + "CollectionProvider", [r, a] = De(t), [n, s] = r(
2295
+ function To(e) {
2296
+ const t = e + "CollectionProvider", [r, a] = Fe(t), [n, s] = r(
2298
2297
  t,
2299
2298
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
2300
2299
  ), l = (d) => {
2301
- const { scope: m, children: k } = d, b = E.useRef(null), N = E.useRef(/* @__PURE__ */ new Map()).current;
2302
- return /* @__PURE__ */ o(n, { scope: m, itemMap: N, collectionRef: b, children: k });
2300
+ const { scope: m, children: y } = d, b = E.useRef(null), N = E.useRef(/* @__PURE__ */ new Map()).current;
2301
+ return /* @__PURE__ */ o(n, { scope: m, itemMap: N, collectionRef: b, children: y });
2303
2302
  };
2304
2303
  l.displayName = t;
2305
2304
  const c = e + "CollectionSlot", u = E.forwardRef(
2306
2305
  (d, m) => {
2307
- const { scope: k, children: b } = d, N = s(c, k), C = Re(m, N.collectionRef);
2308
- return /* @__PURE__ */ o(ye, { ref: C, children: b });
2306
+ const { scope: y, children: b } = d, N = s(c, y), x = Re(m, N.collectionRef);
2307
+ return /* @__PURE__ */ o(ye, { ref: x, children: b });
2309
2308
  }
2310
2309
  );
2311
2310
  u.displayName = c;
2312
2311
  const i = e + "CollectionItemSlot", f = "data-radix-collection-item", p = E.forwardRef(
2313
2312
  (d, m) => {
2314
- const { scope: k, children: b, ...N } = d, C = E.useRef(null), y = Re(m, C), x = s(i, k);
2315
- return E.useEffect(() => (x.itemMap.set(C, { ref: C, ...N }), () => void x.itemMap.delete(C))), /* @__PURE__ */ o(ye, { [f]: "", ref: y, children: b });
2313
+ const { scope: y, children: b, ...N } = d, x = E.useRef(null), k = Re(m, x), C = s(i, y);
2314
+ return E.useEffect(() => (C.itemMap.set(x, { ref: x, ...N }), () => void C.itemMap.delete(x))), /* @__PURE__ */ o(ye, { [f]: "", ref: k, children: b });
2316
2315
  }
2317
2316
  );
2318
2317
  p.displayName = i;
2319
2318
  function g(d) {
2320
2319
  const m = s(e + "CollectionConsumer", d);
2321
2320
  return E.useCallback(() => {
2322
- const k = m.collectionRef.current;
2323
- if (!k) return [];
2324
- const b = Array.from(k.querySelectorAll(`[${f}]`));
2321
+ const y = m.collectionRef.current;
2322
+ if (!y) return [];
2323
+ const b = Array.from(y.querySelectorAll(`[${f}]`));
2325
2324
  return Array.from(m.itemMap.values()).sort(
2326
- (N, C) => b.indexOf(N.ref.current) - b.indexOf(C.ref.current)
2325
+ (N, x) => b.indexOf(N.ref.current) - b.indexOf(x.ref.current)
2327
2326
  );
2328
2327
  }, [m.collectionRef, m.itemMap]);
2329
2328
  }
@@ -2333,16 +2332,16 @@ function _o(e) {
2333
2332
  a
2334
2333
  ];
2335
2334
  }
2336
- var So = globalThis != null && globalThis.document ? h.useLayoutEffect : () => {
2337
- }, Ro = h.useId || (() => {
2338
- }), Lo = 0;
2339
- function Mo(e) {
2340
- const [t, r] = h.useState(Ro());
2341
- return So(() => {
2342
- r((a) => a ?? String(Lo++));
2335
+ var _o = globalThis != null && globalThis.document ? h.useLayoutEffect : () => {
2336
+ }, So = h.useId || (() => {
2337
+ }), Ro = 0;
2338
+ function Lo(e) {
2339
+ const [t, r] = h.useState(So());
2340
+ return _o(() => {
2341
+ r((a) => a ?? String(Ro++));
2343
2342
  }, [e]), t ? `radix-${t}` : "";
2344
2343
  }
2345
- function Ve(e) {
2344
+ function De(e) {
2346
2345
  const t = h.useRef(e);
2347
2346
  return h.useEffect(() => {
2348
2347
  t.current = e;
@@ -2351,13 +2350,13 @@ function Ve(e) {
2351
2350
  return (a = t.current) == null ? void 0 : a.call(t, ...r);
2352
2351
  }, []);
2353
2352
  }
2354
- function Ce({
2353
+ function xe({
2355
2354
  prop: e,
2356
2355
  defaultProp: t,
2357
2356
  onChange: r = () => {
2358
2357
  }
2359
2358
  }) {
2360
- const [a, n] = zo({ defaultProp: t, onChange: r }), s = e !== void 0, l = s ? e : a, c = Ve(r), u = h.useCallback(
2359
+ const [a, n] = Mo({ defaultProp: t, onChange: r }), s = e !== void 0, l = s ? e : a, c = De(r), u = h.useCallback(
2361
2360
  (i) => {
2362
2361
  if (s) {
2363
2362
  const f = typeof i == "function" ? i(e) : i;
@@ -2369,28 +2368,28 @@ function Ce({
2369
2368
  );
2370
2369
  return [l, u];
2371
2370
  }
2372
- function zo({
2371
+ function Mo({
2373
2372
  defaultProp: e,
2374
2373
  onChange: t
2375
2374
  }) {
2376
- const r = h.useState(e), [a] = r, n = h.useRef(a), s = Ve(t);
2375
+ const r = h.useState(e), [a] = r, n = h.useRef(a), s = De(t);
2377
2376
  return h.useEffect(() => {
2378
2377
  n.current !== a && (s(a), n.current = a);
2379
2378
  }, [a, n, s]), r;
2380
2379
  }
2381
- var Ao = h.createContext(void 0);
2382
- function Ct(e) {
2383
- const t = h.useContext(Ao);
2380
+ var zo = h.createContext(void 0);
2381
+ function xt(e) {
2382
+ const t = h.useContext(zo);
2384
2383
  return e || t || "ltr";
2385
2384
  }
2386
- var Ee = "rovingFocusGroup.onEntryFocus", Po = { bubbles: !1, cancelable: !0 }, xe = "RovingFocusGroup", [Me, xt, Bo] = _o(xe), [Oo, It] = De(
2387
- xe,
2388
- [Bo]
2389
- ), [$o, Fo] = Oo(xe), Et = h.forwardRef(
2390
- (e, t) => /* @__PURE__ */ o(Me.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Me.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Do, { ...e, ref: t }) }) })
2385
+ var Ee = "rovingFocusGroup.onEntryFocus", Ao = { bubbles: !1, cancelable: !0 }, Ce = "RovingFocusGroup", [Me, Ct, Po] = To(Ce), [Bo, It] = Fe(
2386
+ Ce,
2387
+ [Po]
2388
+ ), [Oo, $o] = Bo(Ce), Et = h.forwardRef(
2389
+ (e, t) => /* @__PURE__ */ o(Me.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Me.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Fo, { ...e, ref: t }) }) })
2391
2390
  );
2392
- Et.displayName = xe;
2393
- var Do = h.forwardRef((e, t) => {
2391
+ Et.displayName = Ce;
2392
+ var Fo = h.forwardRef((e, t) => {
2394
2393
  const {
2395
2394
  __scopeRovingFocusGroup: r,
2396
2395
  orientation: a,
@@ -2402,28 +2401,28 @@ var Do = h.forwardRef((e, t) => {
2402
2401
  onEntryFocus: i,
2403
2402
  preventScrollOnEntryFocus: f = !1,
2404
2403
  ...p
2405
- } = e, g = h.useRef(null), d = Re(t, g), m = Ct(s), [k = null, b] = Ce({
2404
+ } = e, g = h.useRef(null), d = Re(t, g), m = xt(s), [y = null, b] = xe({
2406
2405
  prop: l,
2407
2406
  defaultProp: c,
2408
2407
  onChange: u
2409
- }), [N, C] = h.useState(!1), y = Ve(i), x = xt(r), T = h.useRef(!1), [A, L] = h.useState(0);
2408
+ }), [N, x] = h.useState(!1), k = De(i), C = Ct(r), T = h.useRef(!1), [A, L] = h.useState(0);
2410
2409
  return h.useEffect(() => {
2411
2410
  const S = g.current;
2412
2411
  if (S)
2413
- return S.addEventListener(Ee, y), () => S.removeEventListener(Ee, y);
2414
- }, [y]), /* @__PURE__ */ o(
2415
- $o,
2412
+ return S.addEventListener(Ee, k), () => S.removeEventListener(Ee, k);
2413
+ }, [k]), /* @__PURE__ */ o(
2414
+ Oo,
2416
2415
  {
2417
2416
  scope: r,
2418
2417
  orientation: a,
2419
2418
  dir: m,
2420
2419
  loop: n,
2421
- currentTabStopId: k,
2420
+ currentTabStopId: y,
2422
2421
  onItemFocus: h.useCallback(
2423
2422
  (S) => b(S),
2424
2423
  [b]
2425
2424
  ),
2426
- onItemShiftTab: h.useCallback(() => C(!0), []),
2425
+ onItemShiftTab: h.useCallback(() => x(!0), []),
2427
2426
  onFocusableItemAdd: h.useCallback(
2428
2427
  () => L((S) => S + 1),
2429
2428
  []
@@ -2440,23 +2439,23 @@ var Do = h.forwardRef((e, t) => {
2440
2439
  ...p,
2441
2440
  ref: d,
2442
2441
  style: { outline: "none", ...e.style },
2443
- onMouseDown: K(e.onMouseDown, () => {
2442
+ onMouseDown: W(e.onMouseDown, () => {
2444
2443
  T.current = !0;
2445
2444
  }),
2446
- onFocus: K(e.onFocus, (S) => {
2445
+ onFocus: W(e.onFocus, (S) => {
2447
2446
  const q = !T.current;
2448
2447
  if (S.target === S.currentTarget && q && !N) {
2449
- const Q = new CustomEvent(Ee, Po);
2448
+ const Q = new CustomEvent(Ee, Ao);
2450
2449
  if (S.currentTarget.dispatchEvent(Q), !Q.defaultPrevented) {
2451
- const V = x().filter((O) => O.focusable), I = V.find((O) => O.active), B = V.find((O) => O.id === k), j = [I, B, ...V].filter(
2450
+ const V = C().filter((O) => O.focusable), I = V.find((O) => O.active), B = V.find((O) => O.id === y), H = [I, B, ...V].filter(
2452
2451
  Boolean
2453
2452
  ).map((O) => O.ref.current);
2454
- St(j, f);
2453
+ St(H, f);
2455
2454
  }
2456
2455
  }
2457
2456
  T.current = !1;
2458
2457
  }),
2459
- onBlur: K(e.onBlur, () => C(!1))
2458
+ onBlur: W(e.onBlur, () => x(!1))
2460
2459
  }
2461
2460
  )
2462
2461
  }
@@ -2469,7 +2468,7 @@ var Do = h.forwardRef((e, t) => {
2469
2468
  active: n = !1,
2470
2469
  tabStopId: s,
2471
2470
  ...l
2472
- } = e, c = Mo(), u = s || c, i = Fo(Tt, r), f = i.currentTabStopId === u, p = xt(r), { onFocusableItemAdd: g, onFocusableItemRemove: d } = i;
2471
+ } = e, c = Lo(), u = s || c, i = $o(Tt, r), f = i.currentTabStopId === u, p = Ct(r), { onFocusableItemAdd: g, onFocusableItemRemove: d } = i;
2473
2472
  return h.useEffect(() => {
2474
2473
  if (a)
2475
2474
  return g(), () => d();
@@ -2487,26 +2486,26 @@ var Do = h.forwardRef((e, t) => {
2487
2486
  "data-orientation": i.orientation,
2488
2487
  ...l,
2489
2488
  ref: t,
2490
- onMouseDown: K(e.onMouseDown, (m) => {
2489
+ onMouseDown: W(e.onMouseDown, (m) => {
2491
2490
  a ? i.onItemFocus(u) : m.preventDefault();
2492
2491
  }),
2493
- onFocus: K(e.onFocus, () => i.onItemFocus(u)),
2494
- onKeyDown: K(e.onKeyDown, (m) => {
2492
+ onFocus: W(e.onFocus, () => i.onItemFocus(u)),
2493
+ onKeyDown: W(e.onKeyDown, (m) => {
2495
2494
  if (m.key === "Tab" && m.shiftKey) {
2496
2495
  i.onItemShiftTab();
2497
2496
  return;
2498
2497
  }
2499
2498
  if (m.target !== m.currentTarget) return;
2500
- const k = Uo(m, i.orientation, i.dir);
2501
- if (k !== void 0) {
2499
+ const y = Go(m, i.orientation, i.dir);
2500
+ if (y !== void 0) {
2502
2501
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
2503
2502
  m.preventDefault();
2504
2503
  let b = p().filter((N) => N.focusable).map((N) => N.ref.current);
2505
- if (k === "last") b.reverse();
2506
- else if (k === "prev" || k === "next") {
2507
- k === "prev" && b.reverse();
2504
+ if (y === "last") b.reverse();
2505
+ else if (y === "prev" || y === "next") {
2506
+ y === "prev" && b.reverse();
2508
2507
  const N = b.indexOf(m.currentTarget);
2509
- b = i.loop ? Ho(b, N + 1) : b.slice(N + 1);
2508
+ b = i.loop ? Uo(b, N + 1) : b.slice(N + 1);
2510
2509
  }
2511
2510
  setTimeout(() => St(b));
2512
2511
  }
@@ -2518,7 +2517,7 @@ var Do = h.forwardRef((e, t) => {
2518
2517
  }
2519
2518
  );
2520
2519
  _t.displayName = Tt;
2521
- var Vo = {
2520
+ var Do = {
2522
2521
  ArrowLeft: "prev",
2523
2522
  ArrowUp: "prev",
2524
2523
  ArrowRight: "next",
@@ -2528,24 +2527,24 @@ var Vo = {
2528
2527
  PageDown: "last",
2529
2528
  End: "last"
2530
2529
  };
2531
- function Go(e, t) {
2530
+ function Vo(e, t) {
2532
2531
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
2533
2532
  }
2534
- function Uo(e, t, r) {
2535
- const a = Go(e.key, r);
2533
+ function Go(e, t, r) {
2534
+ const a = Vo(e.key, r);
2536
2535
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
2537
- return Vo[a];
2536
+ return Do[a];
2538
2537
  }
2539
2538
  function St(e, t = !1) {
2540
2539
  const r = document.activeElement;
2541
2540
  for (const a of e)
2542
2541
  if (a === r || (a.focus({ preventScroll: t }), document.activeElement !== r)) return;
2543
2542
  }
2544
- function Ho(e, t) {
2543
+ function Uo(e, t) {
2545
2544
  return e.map((r, a) => e[(t + a) % e.length]);
2546
2545
  }
2547
- var jo = Et, Wo = _t, Ko = "Toggle", Rt = h.forwardRef((e, t) => {
2548
- const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [l = !1, c] = Ce({
2546
+ var Ho = Et, jo = _t, Wo = "Toggle", Rt = h.forwardRef((e, t) => {
2547
+ const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [l = !1, c] = xe({
2549
2548
  prop: r,
2550
2549
  onChange: n,
2551
2550
  defaultProp: a
@@ -2559,32 +2558,32 @@ var jo = Et, Wo = _t, Ko = "Toggle", Rt = h.forwardRef((e, t) => {
2559
2558
  "data-disabled": e.disabled ? "" : void 0,
2560
2559
  ...s,
2561
2560
  ref: t,
2562
- onClick: K(e.onClick, () => {
2561
+ onClick: W(e.onClick, () => {
2563
2562
  e.disabled || c(!l);
2564
2563
  })
2565
2564
  }
2566
2565
  );
2567
2566
  });
2568
- Rt.displayName = Ko;
2569
- var se = "ToggleGroup", [Lt, fa] = De(se, [
2567
+ Rt.displayName = Wo;
2568
+ var se = "ToggleGroup", [Lt, ga] = Fe(se, [
2570
2569
  It
2571
- ]), Mt = It(), Ge = E.forwardRef((e, t) => {
2570
+ ]), Mt = It(), Ve = E.forwardRef((e, t) => {
2572
2571
  const { type: r, ...a } = e;
2573
2572
  if (r === "single")
2574
- return /* @__PURE__ */ o(Yo, { ...a, ref: t });
2573
+ return /* @__PURE__ */ o(Ko, { ...a, ref: t });
2575
2574
  if (r === "multiple")
2576
- return /* @__PURE__ */ o(Zo, { ...a, ref: t });
2575
+ return /* @__PURE__ */ o(Yo, { ...a, ref: t });
2577
2576
  throw new Error(`Missing prop \`type\` expected on \`${se}\``);
2578
2577
  });
2579
- Ge.displayName = se;
2580
- var [zt, At] = Lt(se), Yo = E.forwardRef((e, t) => {
2578
+ Ve.displayName = se;
2579
+ var [zt, At] = Lt(se), Ko = E.forwardRef((e, t) => {
2581
2580
  const {
2582
2581
  value: r,
2583
2582
  defaultValue: a,
2584
2583
  onValueChange: n = () => {
2585
2584
  },
2586
2585
  ...s
2587
- } = e, [l, c] = Ce({
2586
+ } = e, [l, c] = xe({
2588
2587
  prop: r,
2589
2588
  defaultProp: a,
2590
2589
  onChange: n
@@ -2600,14 +2599,14 @@ var [zt, At] = Lt(se), Yo = E.forwardRef((e, t) => {
2600
2599
  children: /* @__PURE__ */ o(Pt, { ...s, ref: t })
2601
2600
  }
2602
2601
  );
2603
- }), Zo = E.forwardRef((e, t) => {
2602
+ }), Yo = E.forwardRef((e, t) => {
2604
2603
  const {
2605
2604
  value: r,
2606
2605
  defaultValue: a,
2607
2606
  onValueChange: n = () => {
2608
2607
  },
2609
2608
  ...s
2610
- } = e, [l = [], c] = Ce({
2609
+ } = e, [l = [], c] = xe({
2611
2610
  prop: r,
2612
2611
  defaultProp: a,
2613
2612
  onChange: n
@@ -2630,8 +2629,8 @@ var [zt, At] = Lt(se), Yo = E.forwardRef((e, t) => {
2630
2629
  }
2631
2630
  );
2632
2631
  });
2633
- Ge.displayName = se;
2634
- var [qo, Qo] = Lt(se), Pt = E.forwardRef(
2632
+ Ve.displayName = se;
2633
+ var [Zo, qo] = Lt(se), Pt = E.forwardRef(
2635
2634
  (e, t) => {
2636
2635
  const {
2637
2636
  __scopeToggleGroup: r,
@@ -2641,9 +2640,9 @@ var [qo, Qo] = Lt(se), Pt = E.forwardRef(
2641
2640
  dir: l,
2642
2641
  loop: c = !0,
2643
2642
  ...u
2644
- } = e, i = Mt(r), f = Ct(l), p = { role: "group", dir: f, ...u };
2645
- return /* @__PURE__ */ o(qo, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
2646
- jo,
2643
+ } = e, i = Mt(r), f = xt(l), p = { role: "group", dir: f, ...u };
2644
+ return /* @__PURE__ */ o(Zo, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
2645
+ Ho,
2647
2646
  {
2648
2647
  asChild: !0,
2649
2648
  ...i,
@@ -2656,22 +2655,22 @@ var [qo, Qo] = Lt(se), Pt = E.forwardRef(
2656
2655
  }
2657
2656
  ), ke = "ToggleGroupItem", Bt = E.forwardRef(
2658
2657
  (e, t) => {
2659
- const r = At(ke, e.__scopeToggleGroup), a = Qo(ke, e.__scopeToggleGroup), n = Mt(e.__scopeToggleGroup), s = r.value.includes(e.value), l = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: l }, u = E.useRef(null);
2658
+ const r = At(ke, e.__scopeToggleGroup), a = qo(ke, e.__scopeToggleGroup), n = Mt(e.__scopeToggleGroup), s = r.value.includes(e.value), l = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: l }, u = E.useRef(null);
2660
2659
  return a.rovingFocus ? /* @__PURE__ */ o(
2661
- Wo,
2660
+ jo,
2662
2661
  {
2663
2662
  asChild: !0,
2664
2663
  ...n,
2665
2664
  focusable: !l,
2666
2665
  active: s,
2667
2666
  ref: u,
2668
- children: /* @__PURE__ */ o(et, { ...c, ref: t })
2667
+ children: /* @__PURE__ */ o(Je, { ...c, ref: t })
2669
2668
  }
2670
- ) : /* @__PURE__ */ o(et, { ...c, ref: t });
2669
+ ) : /* @__PURE__ */ o(Je, { ...c, ref: t });
2671
2670
  }
2672
2671
  );
2673
2672
  Bt.displayName = ke;
2674
- var et = E.forwardRef(
2673
+ var Je = E.forwardRef(
2675
2674
  (e, t) => {
2676
2675
  const { __scopeToggleGroup: r, value: a, ...n } = e, s = At(ke, r), l = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = s.type === "single" ? l : void 0;
2677
2676
  return /* @__PURE__ */ o(
@@ -2686,27 +2685,27 @@ var et = E.forwardRef(
2686
2685
  }
2687
2686
  );
2688
2687
  }
2689
- ), Xo = Ge, Jo = Bt;
2688
+ ), Qo = Ve, Xo = Bt;
2690
2689
  const Ot = E.createContext({
2691
2690
  size: "medium",
2692
2691
  focusMode: "system",
2693
2692
  mode: "system"
2694
- }), ea = ({ focusMode: e }) => w("focus:outline", "focus:outline-2", "focus:outline-offset", {
2693
+ }), Jo = ({ focusMode: e }) => w("focus:outline", "focus:outline-2", "focus:outline-offset", {
2695
2694
  "focus:outline-focus-light": e === "light",
2696
2695
  "focus:outline-focus-dark": e === "dark",
2697
2696
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
2698
2697
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
2699
- }), ta = ({ mode: e }) => w({
2698
+ }), ea = ({ mode: e }) => w({
2700
2699
  "data-[state=on]:bg-surface-medium": e === "dark",
2701
2700
  "data-[state=on]:bg-surface-lightest": e === "light",
2702
2701
  "data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
2703
2702
  "data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
2704
- }), ra = ({ size: e }) => w({
2703
+ }), ta = ({ size: e }) => w({
2705
2704
  "h-5 px-2": e === "small",
2706
2705
  "h-6 px-3": e === "medium",
2707
2706
  "h-7 px-4": e === "large"
2708
- }), oa = ({ mode: e }) => w(
2709
- ko,
2707
+ }), ra = ({ mode: e }) => w(
2708
+ yo,
2710
2709
  "px-1",
2711
2710
  "relative",
2712
2711
  "border-r",
@@ -2719,26 +2718,26 @@ const Ot = E.createContext({
2719
2718
  "border-surface-light dark:border-surface-darker": e === "system",
2720
2719
  "border-surface-darker dark:border-surface-light": e === "alt-system"
2721
2720
  }
2722
- ), aa = ({
2721
+ ), oa = ({
2723
2722
  focusMode: e,
2724
2723
  mode: t,
2725
2724
  size: r
2726
2725
  }) => ({
2727
- wrapperClass: oa({ mode: t }),
2726
+ wrapperClass: ra({ mode: t }),
2728
2727
  itemClass: w(
2729
- wo,
2728
+ ko,
2730
2729
  "flex items-center justify-center bg-transparent",
2731
2730
  "rounded-sm",
2732
2731
  "transition duration-200 ease",
2733
- ra({ size: r }),
2734
- ea({ focusMode: e }),
2735
- ta({ mode: t })
2732
+ ta({ size: r }),
2733
+ Jo({ focusMode: e }),
2734
+ ea({ mode: t })
2736
2735
  )
2737
- }), na = ({
2736
+ }), aa = ({
2738
2737
  mode: e,
2739
2738
  className: t
2740
2739
  }) => w(
2741
- yo,
2740
+ vo,
2742
2741
  "inline-flex p-1",
2743
2742
  "rounded-sm",
2744
2743
  {
@@ -2748,7 +2747,7 @@ const Ot = E.createContext({
2748
2747
  "bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
2749
2748
  },
2750
2749
  t
2751
- ), sa = ({
2750
+ ), na = ({
2752
2751
  children: e,
2753
2752
  value: t,
2754
2753
  onValueChange: r,
@@ -2760,9 +2759,9 @@ const Ot = E.createContext({
2760
2759
  className: u,
2761
2760
  ...i
2762
2761
  }) => {
2763
- const f = na({ mode: n, className: u }), p = { size: l, focusMode: s, mode: n };
2762
+ const f = aa({ mode: n, className: u }), p = { size: l, focusMode: s, mode: n };
2764
2763
  return /* @__PURE__ */ o(Ot.Provider, { value: p, children: /* @__PURE__ */ o(
2765
- Xo,
2764
+ Qo,
2766
2765
  {
2767
2766
  disabled: a,
2768
2767
  className: f,
@@ -2774,14 +2773,14 @@ const Ot = E.createContext({
2774
2773
  children: e
2775
2774
  }
2776
2775
  ) });
2777
- }, la = ({ value: e, disabled: t }) => {
2778
- const { size: r, focusMode: a, mode: n } = H(Ot), { itemClass: s, wrapperClass: l } = aa({
2776
+ }, sa = ({ value: e, disabled: t }) => {
2777
+ const { size: r, focusMode: a, mode: n } = Y(Ot), { itemClass: s, wrapperClass: l } = oa({
2779
2778
  focusMode: a,
2780
2779
  mode: n,
2781
2780
  size: r
2782
2781
  });
2783
2782
  return /* @__PURE__ */ o("div", { className: l, children: /* @__PURE__ */ o(
2784
- Jo,
2783
+ Xo,
2785
2784
  {
2786
2785
  disabled: t,
2787
2786
  className: s,
@@ -2789,16 +2788,15 @@ const Ot = E.createContext({
2789
2788
  children: e
2790
2789
  }
2791
2790
  ) });
2792
- }, ca = () => {
2793
- const { state: e, dispatch: t } = H(Pe), { getAccessToken: r, user: a } = D(), [n] = me({
2794
- key: ue + rt,
2791
+ }, la = () => {
2792
+ const { state: e, dispatch: t } = Y(Pe), { getAccessToken: r, user: a } = D(), [n] = me({
2793
+ key: ue + tt,
2795
2794
  initialValue: !1
2796
2795
  }), {
2797
2796
  data: s,
2798
2797
  error: l,
2799
2798
  isLoading: c
2800
- } = at({
2801
- keys: [],
2799
+ } = mt({
2802
2800
  getAccessToken: r
2803
2801
  }), {
2804
2802
  data: u,
@@ -2810,14 +2808,14 @@ const Ot = E.createContext({
2810
2808
  getAccessToken: r
2811
2809
  });
2812
2810
  return l || c || i || f ? null : n && u && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
2813
- $e,
2811
+ Oe,
2814
2812
  {
2815
2813
  mode: "dark",
2816
2814
  focusMode: "light",
2817
2815
  trigger: /* @__PURE__ */ o(te, { className: "mr-2", children: u && u.engine === ee ? /* @__PURE__ */ o(gt, {}) : /* @__PURE__ */ o(ft, {}) }),
2818
2816
  defaultPlacement: "bottom-start",
2819
- children: /* @__PURE__ */ o(W, { raw: !0, children: /* @__PURE__ */ o(
2820
- sa,
2817
+ children: /* @__PURE__ */ o(j, { raw: !0, children: /* @__PURE__ */ o(
2818
+ na,
2821
2819
  {
2822
2820
  size: "small",
2823
2821
  mode: "dark",
@@ -2834,107 +2832,98 @@ const Ot = E.createContext({
2834
2832
  engine: g
2835
2833
  }
2836
2834
  }), p({ ...u }), e && (e == null ? void 0 : e.messages.length) > 0 && t({
2837
- type: tt
2835
+ type: et
2838
2836
  });
2839
2837
  } catch {
2840
2838
  }
2841
2839
  },
2842
- children: s && s.engines && s.engines.map((g) => /* @__PURE__ */ o(la, { value: g }, g))
2840
+ children: s && s.engines && s.engines.map((g) => /* @__PURE__ */ o(sa, { value: g }, g))
2843
2841
  }
2844
2842
  ) })
2845
2843
  }
2846
2844
  ) });
2847
- }, pa = () => {
2848
- const { logout: e, user: t, getAccessToken: r } = D(), { state: a } = H(Pe), { state: n } = H(Ae);
2849
- ur({
2850
- keys: [
2851
- t == null ? void 0 : t.username,
2852
- n.searchString,
2853
- n.sortDirection
2854
- ],
2855
- getAccessToken: r
2856
- });
2857
- const [s, l] = R(!1), [c, u] = R(!1), [i, f] = R(!1), [p, g] = R(!1), [d, m] = R(!1), k = () => {
2858
- l(!s);
2859
- }, b = () => {
2860
- u(!c);
2861
- }, N = () => {
2862
- f(!i);
2863
- }, C = () => {
2864
- g(!p);
2845
+ }, fa = () => {
2846
+ const { logout: e } = D(), { state: t } = Y(Pe), [r, a] = R(!1), [n, s] = R(!1), [l, c] = R(!1), [u, i] = R(!1), [f, p] = R(!1), g = () => {
2847
+ a(!r);
2848
+ }, d = () => {
2849
+ s(!n);
2850
+ }, m = () => {
2851
+ c(!l);
2865
2852
  }, y = () => {
2866
- m(!d);
2853
+ i(!u);
2854
+ }, b = () => {
2855
+ p(!f);
2867
2856
  };
2868
2857
  return /* @__PURE__ */ v(z, { children: [
2869
2858
  /* @__PURE__ */ o(
2870
2859
  wt,
2871
2860
  {
2872
- showConfirmation: d,
2873
- setShowConfirmation: m,
2861
+ showConfirmation: f,
2862
+ setShowConfirmation: p,
2874
2863
  action: e,
2875
2864
  customStrings: {
2876
- confirmAction: Ke,
2865
+ confirmAction: We,
2877
2866
  cancelAction: "Cancel",
2878
- title: Ke
2867
+ title: We
2879
2868
  },
2880
2869
  children: /* @__PURE__ */ o("p", { children: "Are you sure you want to log out?" })
2881
2870
  }
2882
2871
  ),
2883
- /* @__PURE__ */ o(so, { open: s, onOpenChange: l }),
2884
- /* @__PURE__ */ o(vo, { open: c, onOpenChange: u }),
2885
- i && /* @__PURE__ */ o(ao, { open: i, onOpenChange: f }),
2886
- /* @__PURE__ */ o(to, { open: p, onOpenChange: g }),
2887
- /* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ v(Y, { alignHorizontal: "space-between", alignVertical: "center", children: [
2888
- /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(mr, { mode: "dark", radius: "large" }) }),
2889
- /* @__PURE__ */ o(M, { children: /* @__PURE__ */ v(Y, { children: [
2890
- /* @__PURE__ */ o(ca, {}),
2872
+ /* @__PURE__ */ o(no, { open: r, onOpenChange: a }),
2873
+ /* @__PURE__ */ o(bo, { open: n, onOpenChange: s }),
2874
+ l && /* @__PURE__ */ o(oo, { open: l, onOpenChange: c }),
2875
+ /* @__PURE__ */ o(eo, { open: u, onOpenChange: i }),
2876
+ /* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ v(K, { alignHorizontal: "space-between", alignVertical: "center", children: [
2877
+ /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(Nr, { mode: "dark", radius: "large" }) }),
2878
+ /* @__PURE__ */ o(M, { children: /* @__PURE__ */ v(K, { children: [
2879
+ /* @__PURE__ */ o(la, {}),
2891
2880
  /* @__PURE__ */ o(M, { children: /* @__PURE__ */ v(
2892
- $e,
2881
+ Oe,
2893
2882
  {
2894
2883
  mode: "dark",
2895
2884
  focusMode: "light",
2896
- trigger: /* @__PURE__ */ o(te, { children: /* @__PURE__ */ o(Lr, {}) }),
2885
+ trigger: /* @__PURE__ */ o(te, { children: /* @__PURE__ */ o(Rr, {}) }),
2897
2886
  defaultPlacement: "bottom-end",
2898
2887
  children: [
2899
2888
  /* @__PURE__ */ o(
2900
- W,
2889
+ j,
2901
2890
  {
2902
2891
  label: "Profile",
2903
- onClick: k,
2904
- icon: /* @__PURE__ */ o(Sr, {})
2892
+ onClick: g,
2893
+ icon: /* @__PURE__ */ o(_r, {})
2905
2894
  }
2906
2895
  ),
2907
2896
  /* @__PURE__ */ o(
2908
- W,
2897
+ j,
2909
2898
  {
2910
2899
  label: "Settings",
2911
- onClick: b,
2912
- icon: /* @__PURE__ */ o(Mr, {})
2900
+ onClick: d,
2901
+ icon: /* @__PURE__ */ o(Lr, {})
2913
2902
  }
2914
2903
  ),
2915
2904
  /* @__PURE__ */ o(
2916
- W,
2905
+ j,
2917
2906
  {
2918
2907
  label: "History",
2919
- onClick: N,
2920
- icon: /* @__PURE__ */ o(Tr, {})
2908
+ onClick: m,
2909
+ icon: /* @__PURE__ */ o(Er, {})
2921
2910
  }
2922
2911
  ),
2923
2912
  /* @__PURE__ */ o(
2924
- W,
2913
+ j,
2925
2914
  {
2926
2915
  label: "About",
2927
- onClick: C,
2928
- icon: /* @__PURE__ */ o(_r, {})
2916
+ onClick: y,
2917
+ icon: /* @__PURE__ */ o(Tr, {})
2929
2918
  }
2930
2919
  ),
2931
- a && a.id && !a.isComponent && /* @__PURE__ */ v(z, { children: [
2932
- /* @__PURE__ */ o(zr, {}),
2920
+ t && t.id && !t.isComponent && /* @__PURE__ */ v(z, { children: [
2921
+ /* @__PURE__ */ o(Mr, {}),
2933
2922
  /* @__PURE__ */ o(
2934
- W,
2923
+ j,
2935
2924
  {
2936
2925
  label: "Log out",
2937
- onClick: y,
2926
+ onClick: b,
2938
2927
  icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(xr, { monotone: !0 }) })
2939
2928
  }
2940
2929
  )
@@ -2947,5 +2936,5 @@ const Ot = E.createContext({
2947
2936
  ] });
2948
2937
  };
2949
2938
  export {
2950
- pa as default
2939
+ fa as default
2951
2940
  };