@versini/sassysaint 5.3.2 → 5.3.3

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,11 +1,11 @@
1
1
  import { jsx as r, jsxs as v, Fragment as R } from "react/jsx-runtime";
2
- import { g as O, D as P, CARDS as w, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ie, numberFormatter as Mt, durationFormatter as Qe, NA as Lt, ROLE_ASSISTANT as Ot, extractAverage as Pt, GPT4_MAX_TOKENS as Bt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as $, LOCAL_STORAGE_SORT as Dt, O as Y, ACTION_RESET as Vt, ACTION_RESTORE as zt, truncate as $t, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Ht, me as Ft, ACTION_SEARCH as Gt, HISTORY_TITLE as Ut, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as jt, LOCAL_STORAGE_TAG_SUMMARIZE as ze, LOCAL_STORAGE_TAG_PROOFREAD as $e, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as we, TAGS as Ee, LOCAL_STORAGE_CHAT_DETAILS as Kt, G as Wt, v as Fe, PROFILE_TITLE as Yt, LOG_OUT as Ge } from "./index.DeDXpl8g.js";
3
- import { serviceCall as H, SERVICE_TYPES as F, E as G, f as D, ce as Zt, ge as qt, me as Ne, ie as z, ue as Xt, be as Jt, he as Qt, we as Ue } from "./index.DcfOXJ8N.js";
2
+ import { g as O, D as P, CARDS as T, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ie, numberFormatter as Mt, durationFormatter as Qe, NA as Lt, ROLE_ASSISTANT as Ot, extractAverage as Bt, GPT4_MAX_TOKENS as Pt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as $, LOCAL_STORAGE_SORT as Dt, O as Y, ACTION_RESET as Vt, ACTION_RESTORE as zt, truncate as $t, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Ht, me as Ft, ACTION_SEARCH as Gt, HISTORY_TITLE as Ut, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as we, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as jt, LOCAL_STORAGE_TAG_SUMMARIZE as ze, LOCAL_STORAGE_TAG_PROOFREAD as $e, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as Te, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Kt, G as Wt, v as Fe, PROFILE_TITLE as Yt, LOG_OUT as Ge } from "./index.BmoN5joz.js";
3
+ import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V, ce as Zt, ge as qt, me as Ee, ie as B, ue as Xt, be as Jt, he as Qt, we as Ue } from "./index.B3_1eKgu.js";
4
4
  import * as f from "react";
5
- import I, { useId as eo, forwardRef as nt, useState as S, useRef as ce, useContext as V, useEffect as U, Suspense as to, lazy as oo, useMemo as ro } from "react";
5
+ import x, { useId as eo, forwardRef as nt, useState as S, useRef as ce, useContext as z, useEffect as U, Suspense as to, lazy as oo, useMemo as ro } from "react";
6
6
  import C from "clsx";
7
7
  import { useFloatingTree as at, useFloatingNodeId as no, useListItem as st, useFloating as ao, offset as so, flip as io, shift as lo, autoUpdate as co, useClick as uo, useRole as mo, useDismiss as ho, useListNavigation as go, useTypeahead as po, useInteractions as fo, useMergeRefs as it, FloatingNode as bo, FloatingList as vo, FloatingPortal as yo, FloatingFocusManager as ko, FloatingTree as Co } from "@floating-ui/react";
8
- const To = ({
8
+ const wo = ({
9
9
  className: e,
10
10
  viewBox: t,
11
11
  spacing: o,
@@ -24,7 +24,7 @@ const To = ({
24
24
  ...s,
25
25
  children: /* @__PURE__ */ r("path", { d: "m147.487 0l70.081 175.78H256L185.919 0zM66.183 106.221l23.98-61.774l23.98 61.774zM70.07 0L0 175.78h39.18l14.33-36.914h73.308l14.328 36.914h39.179L110.255 0z" })
26
26
  }
27
- ), wo = ({
27
+ ), To = ({
28
28
  className: e,
29
29
  viewBox: t,
30
30
  spacing: o,
@@ -52,7 +52,7 @@ const To = ({
52
52
  /* @__PURE__ */ r("path", { d: "M32 0H192c17.7 0 32 14.3 32 32s-14.3 32-32 32H109.3L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32s-32-14.3-32-32V32C0 14.3 14.3 0 32 0z" })
53
53
  ]
54
54
  }
55
- ), Eo = ({
55
+ ), No = ({
56
56
  className: e,
57
57
  viewBox: t,
58
58
  spacing: o,
@@ -80,7 +80,7 @@ const To = ({
80
80
  /* @__PURE__ */ r("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
81
81
  ]
82
82
  }
83
- ), No = ({
83
+ ), Eo = ({
84
84
  className: e,
85
85
  viewBox: t,
86
86
  spacing: o,
@@ -136,7 +136,7 @@ const To = ({
136
136
  /* @__PURE__ */ r("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
137
137
  ]
138
138
  }
139
- ), Io = ({
139
+ ), xo = ({
140
140
  className: e,
141
141
  viewBox: t,
142
142
  spacing: o,
@@ -164,7 +164,7 @@ const To = ({
164
164
  /* @__PURE__ */ r("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
165
165
  ]
166
166
  }
167
- ), xo = ({
167
+ ), Io = ({
168
168
  className: e,
169
169
  viewBox: t,
170
170
  spacing: o,
@@ -296,7 +296,7 @@ const To = ({
296
296
  function de(e) {
297
297
  return eo();
298
298
  }
299
- const xe = f.createContext({
299
+ const Ie = f.createContext({
300
300
  getItemProps: () => ({}),
301
301
  activeIndex: null,
302
302
  /* v8 ignore next 2 */
@@ -328,8 +328,8 @@ const xe = f.createContext({
328
328
  focusMode: l = "system",
329
329
  ...h
330
330
  }, u) => {
331
- const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null), T = ce([]), p = ce([]), k = V(xe), E = at(), x = no(), M = st(), { floatingStyles: _, refs: B, context: N } = ao({
332
- nodeId: x,
331
+ const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null), w = ce([]), p = ce([]), k = z(Ie), N = at(), I = no(), M = st(), { floatingStyles: _, refs: D, context: E } = ao({
332
+ nodeId: I,
333
333
  open: m,
334
334
  onOpenChange: (ae) => {
335
335
  g(ae), a == null || a(ae);
@@ -338,17 +338,17 @@ const xe = f.createContext({
338
338
  strategy: "fixed",
339
339
  middleware: [so({ mainAxis: 10 }), io(), lo()],
340
340
  whileElementsMounted: co
341
- }), re = uo(N, {
341
+ }), re = uo(E, {
342
342
  event: "mousedown",
343
343
  toggle: !0,
344
344
  ignoreMouse: !1
345
- }), J = mo(N, { role: "menu" }), j = ho(N, { bubbles: !0 }), ne = go(N, {
346
- listRef: T,
345
+ }), J = mo(E, { role: "menu" }), j = ho(E, { bubbles: !0 }), ne = go(E, {
346
+ listRef: w,
347
347
  activeIndex: c,
348
348
  nested: !1,
349
349
  onNavigate: y,
350
350
  loop: !0
351
- }), L = po(N, {
351
+ }), L = po(E, {
352
352
  listRef: p,
353
353
  onMatch: m ? y : void 0,
354
354
  activeIndex: c
@@ -357,12 +357,12 @@ const xe = f.createContext({
357
357
  focusMode: l,
358
358
  mode: i,
359
359
  spacing: s
360
- } : {}, At = I.cloneElement(e, {
360
+ } : {}, At = x.cloneElement(e, {
361
361
  ..._t,
362
362
  "aria-label": o,
363
363
  "data-open": m ? "" : void 0,
364
364
  "data-focus-inside": b ? "" : void 0,
365
- ref: it([B.setReference, M.ref, u]),
365
+ ref: it([D.setReference, M.ref, u]),
366
366
  ...K(
367
367
  k.getItemProps({
368
368
  ...h
@@ -370,20 +370,20 @@ const xe = f.createContext({
370
370
  )
371
371
  });
372
372
  return U(() => {
373
- if (!E)
373
+ if (!N)
374
374
  return;
375
375
  function ae() {
376
376
  g(!1), a == null || a(!1);
377
377
  }
378
- return E.events.on("click", ae), () => {
379
- E.events.off("click", ae);
378
+ return N.events.on("click", ae), () => {
379
+ N.events.off("click", ae);
380
380
  };
381
- }, [E, a]), U(() => {
382
- m && E && E.events.emit("menuopen", { nodeId: x });
383
- }, [E, m, x]), /* @__PURE__ */ v(bo, { id: x, children: [
381
+ }, [N, a]), U(() => {
382
+ m && N && N.events.emit("menuopen", { nodeId: I });
383
+ }, [N, m, I]), /* @__PURE__ */ v(bo, { id: I, children: [
384
384
  At,
385
385
  /* @__PURE__ */ r(
386
- xe.Provider,
386
+ Ie.Provider,
387
387
  {
388
388
  value: {
389
389
  activeIndex: c,
@@ -392,17 +392,17 @@ const xe = f.createContext({
392
392
  setHasFocusInside: d,
393
393
  isOpen: m
394
394
  },
395
- children: /* @__PURE__ */ r(vo, { elementsRef: T, labelsRef: p, children: m && /* @__PURE__ */ r(yo, { children: /* @__PURE__ */ r(
395
+ children: /* @__PURE__ */ r(vo, { elementsRef: w, labelsRef: p, children: m && /* @__PURE__ */ r(yo, { children: /* @__PURE__ */ r(
396
396
  ko,
397
397
  {
398
- context: N,
398
+ context: E,
399
399
  modal: !1,
400
400
  initialFocus: 0,
401
401
  returnFocus: !0,
402
402
  children: /* @__PURE__ */ r(
403
403
  "div",
404
404
  {
405
- ref: B.setFloating,
405
+ ref: D.setFloating,
406
406
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
407
407
  style: _,
408
408
  ...A(),
@@ -428,7 +428,7 @@ const W = f.forwardRef(
428
428
  ignoreClick: s = !1,
429
429
  ...i
430
430
  }, l) => {
431
- const h = f.useContext(xe), u = st({ label: t ? null : e }), m = at(), g = it([u.ref, l]);
431
+ const h = f.useContext(Ie), u = st({ label: t ? null : e }), m = at(), g = it([u.ref, l]);
432
432
  return n && a ? /* @__PURE__ */ r(
433
433
  "div",
434
434
  {
@@ -499,15 +499,15 @@ try {
499
499
  });
500
500
  } catch {
501
501
  }
502
- const Lo = "av-togglegroup", Oo = "av-togglegroup-item-wrapper", Po = "av-togglegroup-item";
502
+ const Lo = "av-togglegroup", Oo = "av-togglegroup-item-wrapper", Bo = "av-togglegroup-item";
503
503
  function Le(e, t = []) {
504
504
  let o = [];
505
505
  function n(s, i) {
506
506
  const l = f.createContext(i), h = o.length;
507
507
  o = [...o, i];
508
508
  function u(g) {
509
- const { scope: b, children: d, ...c } = g, y = (b == null ? void 0 : b[e][h]) || l, T = f.useMemo(() => c, Object.values(c));
510
- return /* @__PURE__ */ r(y.Provider, { value: T, children: d });
509
+ const { scope: b, children: d, ...c } = g, y = (b == null ? void 0 : b[e][h]) || l, w = f.useMemo(() => c, Object.values(c));
510
+ return /* @__PURE__ */ r(y.Provider, { value: w, children: d });
511
511
  }
512
512
  function m(g, b) {
513
513
  const d = (b == null ? void 0 : b[e][h]) || l, c = f.useContext(d);
@@ -527,9 +527,9 @@ function Le(e, t = []) {
527
527
  );
528
528
  };
529
529
  };
530
- return a.scopeName = e, [n, Bo(a, ...t)];
530
+ return a.scopeName = e, [n, Po(a, ...t)];
531
531
  }
532
- function Bo(...e) {
532
+ function Po(...e) {
533
533
  const t = e[0];
534
534
  if (e.length === 1) return t;
535
535
  const o = () => {
@@ -632,32 +632,32 @@ function Go(e) {
632
632
  t,
633
633
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
634
634
  ), i = (d) => {
635
- const { scope: c, children: y } = d, T = I.useRef(null), p = I.useRef(/* @__PURE__ */ new Map()).current;
636
- return /* @__PURE__ */ r(a, { scope: c, itemMap: p, collectionRef: T, children: y });
635
+ const { scope: c, children: y } = d, w = x.useRef(null), p = x.useRef(/* @__PURE__ */ new Map()).current;
636
+ return /* @__PURE__ */ r(a, { scope: c, itemMap: p, collectionRef: w, children: y });
637
637
  };
638
638
  i.displayName = t;
639
- const l = e + "CollectionSlot", h = I.forwardRef(
639
+ const l = e + "CollectionSlot", h = x.forwardRef(
640
640
  (d, c) => {
641
- const { scope: y, children: T } = d, p = s(l, y), k = _e(c, p.collectionRef);
642
- return /* @__PURE__ */ r(be, { ref: k, children: T });
641
+ const { scope: y, children: w } = d, p = s(l, y), k = _e(c, p.collectionRef);
642
+ return /* @__PURE__ */ r(be, { ref: k, children: w });
643
643
  }
644
644
  );
645
645
  h.displayName = l;
646
- const u = e + "CollectionItemSlot", m = "data-radix-collection-item", g = I.forwardRef(
646
+ const u = e + "CollectionItemSlot", m = "data-radix-collection-item", g = x.forwardRef(
647
647
  (d, c) => {
648
- const { scope: y, children: T, ...p } = d, k = I.useRef(null), E = _e(c, k), x = s(u, y);
649
- return I.useEffect(() => (x.itemMap.set(k, { ref: k, ...p }), () => void x.itemMap.delete(k))), /* @__PURE__ */ r(be, { [m]: "", ref: E, children: T });
648
+ const { scope: y, children: w, ...p } = d, k = x.useRef(null), N = _e(c, k), I = s(u, y);
649
+ return x.useEffect(() => (I.itemMap.set(k, { ref: k, ...p }), () => void I.itemMap.delete(k))), /* @__PURE__ */ r(be, { [m]: "", ref: N, children: w });
650
650
  }
651
651
  );
652
652
  g.displayName = u;
653
653
  function b(d) {
654
654
  const c = s(e + "CollectionConsumer", d);
655
- return I.useCallback(() => {
655
+ return x.useCallback(() => {
656
656
  const y = c.collectionRef.current;
657
657
  if (!y) return [];
658
- const T = Array.from(y.querySelectorAll(`[${m}]`));
658
+ const w = Array.from(y.querySelectorAll(`[${m}]`));
659
659
  return Array.from(c.itemMap.values()).sort(
660
- (p, k) => T.indexOf(p.ref.current) - T.indexOf(k.ref.current)
660
+ (p, k) => w.indexOf(p.ref.current) - w.indexOf(k.ref.current)
661
661
  );
662
662
  }, [c.collectionRef, c.itemMap]);
663
663
  }
@@ -717,7 +717,7 @@ function dt(e) {
717
717
  const t = f.useContext(Zo);
718
718
  return e || t || "ltr";
719
719
  }
720
- var Ie = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re, ut, Xo] = Go(ke), [Jo, mt] = Le(
720
+ var xe = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re, ut, Xo] = Go(ke), [Jo, mt] = Le(
721
721
  ke,
722
722
  [Xo]
723
723
  ), [Qo, er] = Jo(ke), ht = f.forwardRef(
@@ -736,16 +736,16 @@ var tr = f.forwardRef((e, t) => {
736
736
  onEntryFocus: u,
737
737
  preventScrollOnEntryFocus: m = !1,
738
738
  ...g
739
- } = e, b = f.useRef(null), d = _e(t, b), c = dt(s), [y = null, T] = ye({
739
+ } = e, b = f.useRef(null), d = _e(t, b), c = dt(s), [y = null, w] = ye({
740
740
  prop: i,
741
741
  defaultProp: l,
742
742
  onChange: h
743
- }), [p, k] = f.useState(!1), E = Oe(u), x = ut(o), M = f.useRef(!1), [_, B] = f.useState(0);
743
+ }), [p, k] = f.useState(!1), N = Oe(u), I = ut(o), M = f.useRef(!1), [_, D] = f.useState(0);
744
744
  return f.useEffect(() => {
745
- const N = b.current;
746
- if (N)
747
- return N.addEventListener(Ie, E), () => N.removeEventListener(Ie, E);
748
- }, [E]), /* @__PURE__ */ r(
745
+ const E = b.current;
746
+ if (E)
747
+ return E.addEventListener(xe, N), () => E.removeEventListener(xe, N);
748
+ }, [N]), /* @__PURE__ */ r(
749
749
  Qo,
750
750
  {
751
751
  scope: o,
@@ -754,16 +754,16 @@ var tr = f.forwardRef((e, t) => {
754
754
  loop: a,
755
755
  currentTabStopId: y,
756
756
  onItemFocus: f.useCallback(
757
- (N) => T(N),
758
- [T]
757
+ (E) => w(E),
758
+ [w]
759
759
  ),
760
760
  onItemShiftTab: f.useCallback(() => k(!0), []),
761
761
  onFocusableItemAdd: f.useCallback(
762
- () => B((N) => N + 1),
762
+ () => D((E) => E + 1),
763
763
  []
764
764
  ),
765
765
  onFocusableItemRemove: f.useCallback(
766
- () => B((N) => N - 1),
766
+ () => D((E) => E - 1),
767
767
  []
768
768
  ),
769
769
  children: /* @__PURE__ */ r(
@@ -777,12 +777,12 @@ var tr = f.forwardRef((e, t) => {
777
777
  onMouseDown: Z(e.onMouseDown, () => {
778
778
  M.current = !0;
779
779
  }),
780
- onFocus: Z(e.onFocus, (N) => {
780
+ onFocus: Z(e.onFocus, (E) => {
781
781
  const re = !M.current;
782
- if (N.target === N.currentTarget && re && !p) {
783
- const J = new CustomEvent(Ie, qo);
784
- if (N.currentTarget.dispatchEvent(J), !J.defaultPrevented) {
785
- const j = x().filter((A) => A.focusable), ne = j.find((A) => A.active), L = j.find((A) => A.id === y), K = [ne, L, ...j].filter(
782
+ if (E.target === E.currentTarget && re && !p) {
783
+ const J = new CustomEvent(xe, qo);
784
+ if (E.currentTarget.dispatchEvent(J), !J.defaultPrevented) {
785
+ const j = I().filter((A) => A.focusable), ne = j.find((A) => A.active), L = j.find((A) => A.id === y), K = [ne, L, ...j].filter(
786
786
  Boolean
787
787
  ).map((A) => A.ref.current);
788
788
  ft(K, m);
@@ -835,14 +835,14 @@ var tr = f.forwardRef((e, t) => {
835
835
  if (y !== void 0) {
836
836
  if (c.metaKey || c.ctrlKey || c.altKey || c.shiftKey) return;
837
837
  c.preventDefault();
838
- let T = g().filter((p) => p.focusable).map((p) => p.ref.current);
839
- if (y === "last") T.reverse();
838
+ let w = g().filter((p) => p.focusable).map((p) => p.ref.current);
839
+ if (y === "last") w.reverse();
840
840
  else if (y === "prev" || y === "next") {
841
- y === "prev" && T.reverse();
842
- const p = T.indexOf(c.currentTarget);
843
- T = u.loop ? ar(T, p + 1) : T.slice(p + 1);
841
+ y === "prev" && w.reverse();
842
+ const p = w.indexOf(c.currentTarget);
843
+ w = u.loop ? ar(w, p + 1) : w.slice(p + 1);
844
844
  }
845
- setTimeout(() => ft(T));
845
+ setTimeout(() => ft(w));
846
846
  }
847
847
  })
848
848
  }
@@ -900,9 +900,9 @@ var sr = ht, ir = pt, lr = "Toggle", bt = f.forwardRef((e, t) => {
900
900
  );
901
901
  });
902
902
  bt.displayName = lr;
903
- var oe = "ToggleGroup", [vt, En] = Le(oe, [
903
+ var oe = "ToggleGroup", [vt, Nn] = Le(oe, [
904
904
  mt
905
- ]), yt = mt(), Pe = I.forwardRef((e, t) => {
905
+ ]), yt = mt(), Be = x.forwardRef((e, t) => {
906
906
  const { type: o, ...n } = e;
907
907
  if (o === "single")
908
908
  return /* @__PURE__ */ r(cr, { ...n, ref: t });
@@ -910,8 +910,8 @@ var oe = "ToggleGroup", [vt, En] = Le(oe, [
910
910
  return /* @__PURE__ */ r(dr, { ...n, ref: t });
911
911
  throw new Error(`Missing prop \`type\` expected on \`${oe}\``);
912
912
  });
913
- Pe.displayName = oe;
914
- var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
913
+ Be.displayName = oe;
914
+ var [kt, Ct] = vt(oe), cr = x.forwardRef((e, t) => {
915
915
  const {
916
916
  value: o,
917
917
  defaultValue: n,
@@ -930,11 +930,11 @@ var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
930
930
  type: "single",
931
931
  value: i ? [i] : [],
932
932
  onItemActivate: l,
933
- onItemDeactivate: I.useCallback(() => l(""), [l]),
934
- children: /* @__PURE__ */ r(Tt, { ...s, ref: t })
933
+ onItemDeactivate: x.useCallback(() => l(""), [l]),
934
+ children: /* @__PURE__ */ r(wt, { ...s, ref: t })
935
935
  }
936
936
  );
937
- }), dr = I.forwardRef((e, t) => {
937
+ }), dr = x.forwardRef((e, t) => {
938
938
  const {
939
939
  value: o,
940
940
  defaultValue: n,
@@ -945,10 +945,10 @@ var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
945
945
  prop: o,
946
946
  defaultProp: n,
947
947
  onChange: a
948
- }), h = I.useCallback(
948
+ }), h = x.useCallback(
949
949
  (m) => l((g = []) => [...g, m]),
950
950
  [l]
951
- ), u = I.useCallback(
951
+ ), u = x.useCallback(
952
952
  (m) => l((g = []) => g.filter((b) => b !== m)),
953
953
  [l]
954
954
  );
@@ -960,12 +960,12 @@ var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
960
960
  value: i,
961
961
  onItemActivate: h,
962
962
  onItemDeactivate: u,
963
- children: /* @__PURE__ */ r(Tt, { ...s, ref: t })
963
+ children: /* @__PURE__ */ r(wt, { ...s, ref: t })
964
964
  }
965
965
  );
966
966
  });
967
- Pe.displayName = oe;
968
- var [ur, mr] = vt(oe), Tt = I.forwardRef(
967
+ Be.displayName = oe;
968
+ var [ur, mr] = vt(oe), wt = x.forwardRef(
969
969
  (e, t) => {
970
970
  const {
971
971
  __scopeToggleGroup: o,
@@ -988,9 +988,9 @@ var [ur, mr] = vt(oe), Tt = I.forwardRef(
988
988
  }
989
989
  ) : /* @__PURE__ */ r(ue.div, { ...g, ref: t }) });
990
990
  }
991
- ), ve = "ToggleGroupItem", wt = I.forwardRef(
991
+ ), ve = "ToggleGroupItem", Tt = x.forwardRef(
992
992
  (e, t) => {
993
- const o = Ct(ve, e.__scopeToggleGroup), n = mr(ve, e.__scopeToggleGroup), a = yt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = n.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = I.useRef(null);
993
+ const o = Ct(ve, e.__scopeToggleGroup), n = mr(ve, e.__scopeToggleGroup), a = yt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = n.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = x.useRef(null);
994
994
  return n.rovingFocus ? /* @__PURE__ */ r(
995
995
  ir,
996
996
  {
@@ -1004,8 +1004,8 @@ var [ur, mr] = vt(oe), Tt = I.forwardRef(
1004
1004
  ) : /* @__PURE__ */ r(We, { ...l, ref: t });
1005
1005
  }
1006
1006
  );
1007
- wt.displayName = ve;
1008
- var We = I.forwardRef(
1007
+ Tt.displayName = ve;
1008
+ var We = x.forwardRef(
1009
1009
  (e, t) => {
1010
1010
  const { __scopeToggleGroup: o, value: n, ...a } = e, s = Ct(ve, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = s.type === "single" ? i : void 0;
1011
1011
  return /* @__PURE__ */ r(
@@ -1020,8 +1020,8 @@ var We = I.forwardRef(
1020
1020
  }
1021
1021
  );
1022
1022
  }
1023
- ), hr = Pe, gr = wt;
1024
- const Et = I.createContext({
1023
+ ), hr = Be, gr = Tt;
1024
+ const Nt = x.createContext({
1025
1025
  size: "medium",
1026
1026
  focusMode: "system",
1027
1027
  mode: "system"
@@ -1069,7 +1069,7 @@ const Et = I.createContext({
1069
1069
  }) => ({
1070
1070
  wrapperClass: yr({ mode: t }),
1071
1071
  itemClass: C(
1072
- Po,
1072
+ Bo,
1073
1073
  "flex items-center justify-center bg-transparent",
1074
1074
  "rounded-sm",
1075
1075
  "transition duration-200 ease",
@@ -1091,7 +1091,7 @@ const Et = I.createContext({
1091
1091
  "bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
1092
1092
  "bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
1093
1093
  }
1094
- ), Tr = ({
1094
+ ), wr = ({
1095
1095
  children: e,
1096
1096
  value: t,
1097
1097
  onValueChange: o,
@@ -1104,7 +1104,7 @@ const Et = I.createContext({
1104
1104
  ...u
1105
1105
  }) => {
1106
1106
  const m = Cr({ mode: a, spacing: h }), g = { size: i, focusMode: s, mode: a };
1107
- return /* @__PURE__ */ r(Et.Provider, { value: g, children: /* @__PURE__ */ r(
1107
+ return /* @__PURE__ */ r(Nt.Provider, { value: g, children: /* @__PURE__ */ r(
1108
1108
  hr,
1109
1109
  {
1110
1110
  disabled: n,
@@ -1117,8 +1117,8 @@ const Et = I.createContext({
1117
1117
  children: e
1118
1118
  }
1119
1119
  ) });
1120
- }, wr = ({ value: e, disabled: t }) => {
1121
- const { size: o, focusMode: n, mode: a } = V(Et), { itemClass: s, wrapperClass: i } = kr({
1120
+ }, Tr = ({ value: e, disabled: t }) => {
1121
+ const { size: o, focusMode: n, mode: a } = z(Nt), { itemClass: s, wrapperClass: i } = kr({
1122
1122
  focusMode: n,
1123
1123
  mode: a,
1124
1124
  size: o
@@ -1146,7 +1146,7 @@ try {
1146
1146
  });
1147
1147
  } catch {
1148
1148
  }
1149
- const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1149
+ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
1150
1150
  let t = "";
1151
1151
  if (typeof e == "number" || typeof e == "string")
1152
1152
  t = "m-" + e;
@@ -1155,7 +1155,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1155
1155
  (e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
1156
1156
  }
1157
1157
  return t;
1158
- }, Be = "icon", Nr = "button", Ir = "link", xr = ({
1158
+ }, Pe = "icon", Er = "button", xr = "link", Ir = ({
1159
1159
  type: e,
1160
1160
  size: t,
1161
1161
  labelRight: o,
@@ -1164,19 +1164,19 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1164
1164
  }) => {
1165
1165
  const s = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
1166
1166
  switch (e) {
1167
- case Nr:
1167
+ case Er:
1168
1168
  return C("px-4", {
1169
1169
  [s]: t === "small",
1170
1170
  [i]: t === "medium",
1171
1171
  [l]: t === "large"
1172
1172
  });
1173
- case Ir:
1173
+ case xr:
1174
1174
  return C("px-4 text-center", {
1175
1175
  [s]: t === "small",
1176
1176
  [i]: t === "medium",
1177
1177
  [l]: t === "large"
1178
1178
  });
1179
- case Be:
1179
+ case Pe:
1180
1180
  return C("inline-flex items-center", {
1181
1181
  "justify-center": a === "center",
1182
1182
  "justify-start": a === "left",
@@ -1310,7 +1310,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1310
1310
  "focus:outline-focus-light": e === "light",
1311
1311
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1312
1312
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1313
- }), Nt = ({
1313
+ }), Et = ({
1314
1314
  type: e,
1315
1315
  className: t,
1316
1316
  raw: o,
@@ -1330,9 +1330,9 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1330
1330
  }) => (d || (d = "primary"), o ? C(qe, t) : C(
1331
1331
  qe,
1332
1332
  t,
1333
- Er(g),
1333
+ Nr(g),
1334
1334
  Sr({ mode: n, variant: d, noBackground: b, noTruncate: c }),
1335
- xr({ type: e, size: l, labelRight: u, labelLeft: m, align: y }),
1335
+ Ir({ type: e, size: l, labelRight: u, labelLeft: m, align: y }),
1336
1336
  Rr({ mode: n, variant: d, noBorder: h }),
1337
1337
  Mr({ focusMode: a }),
1338
1338
  _r({ mode: n, variant: d, disabled: s }),
@@ -1344,7 +1344,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1344
1344
  )), Lr = (e, t, o) => {
1345
1345
  var n;
1346
1346
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof o == "function" && o(e);
1347
- }, De = I.forwardRef((e, t) => {
1347
+ }, De = x.forwardRef((e, t) => {
1348
1348
  const { onClick: o, noInternalClick: n = !1, ...a } = e;
1349
1349
  return /* @__PURE__ */ r(
1350
1350
  "button",
@@ -1358,7 +1358,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
1358
1358
  );
1359
1359
  });
1360
1360
  De.displayName = "BaseButton";
1361
- const It = I.forwardRef(
1361
+ const xt = x.forwardRef(
1362
1362
  ({
1363
1363
  children: e,
1364
1364
  disabled: t = !1,
@@ -1376,11 +1376,11 @@ const It = I.forwardRef(
1376
1376
  labelLeft: d,
1377
1377
  spacing: c,
1378
1378
  noBackground: y = !1,
1379
- align: T = "center",
1379
+ align: w = "center",
1380
1380
  ...p
1381
1381
  }, k) => {
1382
- const E = Nt({
1383
- type: Be,
1382
+ const N = Et({
1383
+ type: Pe,
1384
1384
  mode: o,
1385
1385
  focusMode: n,
1386
1386
  fullWidth: a,
@@ -1393,8 +1393,8 @@ const It = I.forwardRef(
1393
1393
  labelLeft: d,
1394
1394
  spacing: c,
1395
1395
  noBackground: y,
1396
- align: T
1397
- }), x = C({
1396
+ align: w
1397
+ }), I = C({
1398
1398
  "text-copy-accent-dark": o === "light" && !l,
1399
1399
  "text-copy-light": o === "dark" && !l,
1400
1400
  "text-copy-accent-dark dark:text-copy-light": o === "alt-system" && !l,
@@ -1404,21 +1404,21 @@ const It = I.forwardRef(
1404
1404
  De,
1405
1405
  {
1406
1406
  ref: k,
1407
- className: E,
1407
+ className: N,
1408
1408
  disabled: t,
1409
1409
  type: i,
1410
1410
  "aria-label": u || m,
1411
1411
  ...p,
1412
1412
  children: [
1413
1413
  d && /* @__PURE__ */ r("span", { className: "pr-2", children: d }),
1414
- /* @__PURE__ */ r("div", { className: x, children: e }),
1414
+ /* @__PURE__ */ r("div", { className: I, children: e }),
1415
1415
  b && /* @__PURE__ */ r("span", { className: "pl-2", children: b })
1416
1416
  ]
1417
1417
  }
1418
1418
  );
1419
1419
  }
1420
1420
  );
1421
- It.displayName = "ButtonIcon";
1421
+ xt.displayName = "ButtonIcon";
1422
1422
  /*!
1423
1423
  @versini/ui-button v1.1.10
1424
1424
  © 2024 gizmette.com
@@ -1432,7 +1432,7 @@ try {
1432
1432
  });
1433
1433
  } catch {
1434
1434
  }
1435
- const Or = I.forwardRef(
1435
+ const Or = x.forwardRef(
1436
1436
  ({
1437
1437
  children: e,
1438
1438
  disabled: t = !1,
@@ -1450,12 +1450,12 @@ const Or = I.forwardRef(
1450
1450
  labelLeft: d,
1451
1451
  spacing: c,
1452
1452
  noBackground: y = !1,
1453
- align: T = "center",
1453
+ align: w = "center",
1454
1454
  active: p = !1,
1455
1455
  ...k
1456
- }, E) => {
1457
- const x = Nt({
1458
- type: Be,
1456
+ }, N) => {
1457
+ const I = Et({
1458
+ type: Pe,
1459
1459
  mode: o,
1460
1460
  focusMode: n,
1461
1461
  fullWidth: a,
@@ -1468,7 +1468,7 @@ const Or = I.forwardRef(
1468
1468
  labelLeft: d,
1469
1469
  spacing: c,
1470
1470
  noBackground: y,
1471
- align: T
1471
+ align: w
1472
1472
  }), M = C({
1473
1473
  "text-copy-accent-dark": o === "light" && !l,
1474
1474
  "text-copy-light": o === "dark" && !l,
@@ -1494,8 +1494,8 @@ const Or = I.forwardRef(
1494
1494
  return /* @__PURE__ */ r("div", { className: _, children: /* @__PURE__ */ v(
1495
1495
  De,
1496
1496
  {
1497
- ref: E,
1498
- className: x,
1497
+ ref: N,
1498
+ className: I,
1499
1499
  disabled: t,
1500
1500
  type: i,
1501
1501
  "aria-label": u || m,
@@ -1510,7 +1510,7 @@ const Or = I.forwardRef(
1510
1510
  }
1511
1511
  );
1512
1512
  Or.displayName = "ButtonSort";
1513
- const Pr = (e) => {
1513
+ const Br = (e) => {
1514
1514
  let t = "";
1515
1515
  if (typeof e == "number" || typeof e == "string")
1516
1516
  t = "m-" + e;
@@ -1519,7 +1519,7 @@ const Pr = (e) => {
1519
1519
  (e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
1520
1520
  }
1521
1521
  return t;
1522
- }, Br = ({
1522
+ }, Pr = ({
1523
1523
  children: e,
1524
1524
  fill: t,
1525
1525
  viewBox: o,
@@ -1531,7 +1531,7 @@ const Pr = (e) => {
1531
1531
  semantic: h = !1,
1532
1532
  ...u
1533
1533
  }) => {
1534
- const m = Pr(i), g = C(
1534
+ const m = Br(i), g = C(
1535
1535
  m,
1536
1536
  n || s
1537
1537
  );
@@ -1574,7 +1574,7 @@ const Dr = ({
1574
1574
  monotone: a,
1575
1575
  ...s
1576
1576
  }) => /* @__PURE__ */ r(
1577
- Br,
1577
+ Pr,
1578
1578
  {
1579
1579
  defaultViewBox: "0 0 384 512",
1580
1580
  defaultClassName: "size-5",
@@ -1643,7 +1643,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1643
1643
  {
1644
1644
  className: u.close,
1645
1645
  trigger: /* @__PURE__ */ r(
1646
- It,
1646
+ xt,
1647
1647
  {
1648
1648
  mode: "dark",
1649
1649
  focusMode: "light",
@@ -1665,23 +1665,23 @@ const se = "panel", ge = "messagebox", Vr = ({
1665
1665
  /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
1666
1666
  P,
1667
1667
  {
1668
- header: w.ABOUT.TITLE_CLIENT,
1668
+ header: T.ABOUT.TITLE_CLIENT,
1669
1669
  className: "prose-dark dark:prose-lighter",
1670
1670
  children: le(a, {
1671
- [w.ABOUT.VERSION]: "5.3.1",
1672
- [w.ABOUT.BUILD_TIMESTAMP]: "10/06/2024 12:56 PM EDT"
1671
+ [T.ABOUT.VERSION]: "5.4.0",
1672
+ [T.ABOUT.BUILD_TIMESTAMP]: "10/09/2024 08:51 AM EDT"
1673
1673
  })
1674
1674
  }
1675
1675
  ) }),
1676
1676
  /* @__PURE__ */ r(
1677
1677
  P,
1678
1678
  {
1679
- header: w.ABOUT.TITLE_SERVER,
1679
+ header: T.ABOUT.TITLE_SERVER,
1680
1680
  className: "prose-dark dark:prose-lighter",
1681
1681
  children: le(s, {
1682
- [w.ABOUT.VERSION]: o,
1683
- [fe(w.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ r(R, { children: n.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) }),
1684
- [fe(w.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ r(R, { children: t.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) })
1682
+ [T.ABOUT.VERSION]: o,
1683
+ [fe(T.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ r(R, { children: n.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) }),
1684
+ [fe(T.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ r(R, { children: t.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) })
1685
1685
  })
1686
1686
  }
1687
1687
  )
@@ -1690,7 +1690,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1690
1690
  open: e,
1691
1691
  onOpenChange: t
1692
1692
  }) => {
1693
- const { serverStats: o } = V(me);
1693
+ const { serverStats: o } = z(me);
1694
1694
  return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Rt, children: /* @__PURE__ */ r(Ur, { stats: o }) });
1695
1695
  }, Kr = (e) => Qe(e), Wr = (e) => {
1696
1696
  if (!e || e.length === 0)
@@ -1701,7 +1701,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1701
1701
  return ((n = o == null ? void 0 : o.message) == null ? void 0 : n.role) === Ot && typeof ((a = o == null ? void 0 : o.message) == null ? void 0 : a.processingTime) == "number";
1702
1702
  }
1703
1703
  ).map((o) => o.message.processingTime);
1704
- return Pt({
1704
+ return Bt({
1705
1705
  data: t,
1706
1706
  formatter: Kr
1707
1707
  });
@@ -1709,29 +1709,29 @@ const se = "panel", ge = "messagebox", Vr = ({
1709
1709
  isAuthenticated: e,
1710
1710
  stats: t
1711
1711
  }) => {
1712
- const { state: o } = V(me), n = Bt - Number(o == null ? void 0 : o.usage), a = de(), s = de();
1712
+ const { state: o } = z(me), n = Pt - Number(o == null ? void 0 : o.usage), a = de(), s = de();
1713
1713
  return e ? /* @__PURE__ */ v(R, { children: [
1714
1714
  o && o.messages.length > 0 && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
1715
1715
  P,
1716
1716
  {
1717
- header: w.CURRENT_STATISTICS.TITLE,
1717
+ header: T.CURRENT_STATISTICS.TITLE,
1718
1718
  className: "prose-dark dark:prose-lighter",
1719
1719
  children: le(a, {
1720
- [w.CURRENT_STATISTICS.MODEL_NAME]: (o == null ? void 0 : o.model) || ie,
1721
- [w.CURRENT_STATISTICS.TOKENS_USED]: o == null ? void 0 : o.usage,
1722
- [w.CURRENT_STATISTICS.REMAINING_TOKENS]: Mt.format(n),
1723
- [w.CURRENT_STATISTICS.PROCESSING_TIME]: Wr(o == null ? void 0 : o.messages)
1720
+ [T.CURRENT_STATISTICS.MODEL_NAME]: (o == null ? void 0 : o.model) || ie,
1721
+ [T.CURRENT_STATISTICS.TOKENS_USED]: o == null ? void 0 : o.usage,
1722
+ [T.CURRENT_STATISTICS.REMAINING_TOKENS]: Mt.format(n),
1723
+ [T.CURRENT_STATISTICS.PROCESSING_TIME]: Wr(o == null ? void 0 : o.messages)
1724
1724
  })
1725
1725
  }
1726
1726
  ) }),
1727
1727
  /* @__PURE__ */ r(
1728
1728
  P,
1729
1729
  {
1730
- header: w.MAIN_STATISTICS.TITLE,
1730
+ header: T.MAIN_STATISTICS.TITLE,
1731
1731
  className: "prose-dark dark:prose-lighter",
1732
1732
  children: le(s, {
1733
- [fe(w.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
1734
- [w.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
1733
+ [fe(T.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
1734
+ [T.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
1735
1735
  t.averageProcessingTimes
1736
1736
  )
1737
1737
  })
@@ -1761,7 +1761,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1761
1761
  }
1762
1762
  })();
1763
1763
  }, [e, s, i]), /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: et, children: /* @__PURE__ */ r(Yr, { isAuthenticated: a, stats: o }) });
1764
- }, xt = ({
1764
+ }, It = ({
1765
1765
  showConfirmation: e,
1766
1766
  setShowConfirmation: t,
1767
1767
  action: o,
@@ -1847,21 +1847,21 @@ const Qr = async (e, t, o, n) => {
1847
1847
  dispatch: o,
1848
1848
  onOpenChange: n
1849
1849
  }) => {
1850
- var T;
1850
+ var w;
1851
1851
  const { user: a, getAccessToken: s } = te(), i = ce({
1852
1852
  id: 0,
1853
1853
  timestamp: "",
1854
1854
  message: ""
1855
- }), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } = V(tt), [, b] = G({
1855
+ }), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } = z(tt), [, b] = G({
1856
1856
  key: $ + Dt,
1857
1857
  initialValue: m.sortDirection
1858
1858
  }), d = e.data.sort(
1859
1859
  (p, k) => {
1860
1860
  switch (m.sortedCell) {
1861
1861
  case "timestamp":
1862
- if (m.sortDirection === D.ASC)
1862
+ if (m.sortDirection === V.ASC)
1863
1863
  return new Date(p[m.sortedCell]).getTime() - new Date(k[m.sortedCell]).getTime();
1864
- if (m.sortDirection === D.DESC)
1864
+ if (m.sortDirection === V.DESC)
1865
1865
  return new Date(k[m.sortedCell]).getTime() - new Date(p[m.sortedCell]).getTime();
1866
1866
  break;
1867
1867
  default:
@@ -1872,29 +1872,29 @@ const Qr = async (e, t, o, n) => {
1872
1872
  ), c = (p) => {
1873
1873
  switch (m.sortDirection) {
1874
1874
  case !1:
1875
- b(D.ASC), g({
1875
+ b(V.ASC), g({
1876
1876
  type: Ce,
1877
1877
  payload: {
1878
1878
  sortedCell: p,
1879
- sortDirection: D.ASC
1879
+ sortDirection: V.ASC
1880
1880
  }
1881
1881
  });
1882
1882
  break;
1883
- case D.ASC:
1884
- b(D.DESC), g({
1883
+ case V.ASC:
1884
+ b(V.DESC), g({
1885
1885
  type: Ce,
1886
1886
  payload: {
1887
1887
  sortedCell: p,
1888
- sortDirection: D.DESC
1888
+ sortDirection: V.DESC
1889
1889
  }
1890
1890
  });
1891
1891
  break;
1892
1892
  default:
1893
- b(D.ASC), g({
1893
+ b(V.ASC), g({
1894
1894
  type: Ce,
1895
1895
  payload: {
1896
1896
  sortedCell: p,
1897
- sortDirection: D.ASC
1897
+ sortDirection: V.ASC
1898
1898
  }
1899
1899
  });
1900
1900
  break;
@@ -1902,7 +1902,7 @@ const Qr = async (e, t, o, n) => {
1902
1902
  };
1903
1903
  return /* @__PURE__ */ v(R, { children: [
1904
1904
  /* @__PURE__ */ v(
1905
- xt,
1905
+ It,
1906
1906
  {
1907
1907
  showConfirmation: l,
1908
1908
  setShowConfirmation: h,
@@ -1937,15 +1937,15 @@ const Qr = async (e, t, o, n) => {
1937
1937
  /* @__PURE__ */ v("li", { children: [
1938
1938
  "First message:",
1939
1939
  " ",
1940
- /* @__PURE__ */ r("span", { className: "text-lg", children: (T = i.current) == null ? void 0 : T.message })
1940
+ /* @__PURE__ */ r("span", { className: "text-lg", children: (w = i.current) == null ? void 0 : w.message })
1941
1941
  ] })
1942
1942
  ] })
1943
1943
  ]
1944
1944
  }
1945
1945
  ),
1946
1946
  /* @__PURE__ */ v(Zt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
1947
- /* @__PURE__ */ r(qt, { children: /* @__PURE__ */ v(Ne, { children: [
1948
- u && /* @__PURE__ */ r(z, { className: "sr-only", children: "Row" }),
1947
+ /* @__PURE__ */ r(qt, { children: /* @__PURE__ */ v(Ee, { children: [
1948
+ u && /* @__PURE__ */ r(B, { className: "sr-only", children: "Row" }),
1949
1949
  /* @__PURE__ */ r(
1950
1950
  Xt,
1951
1951
  {
@@ -1959,15 +1959,16 @@ const Qr = async (e, t, o, n) => {
1959
1959
  children: "Date"
1960
1960
  }
1961
1961
  ),
1962
- /* @__PURE__ */ r(z, { children: "First message" }),
1963
- /* @__PURE__ */ r(z, { className: "text-right", children: "Actions" })
1962
+ /* @__PURE__ */ r(B, { children: "First message" }),
1963
+ /* @__PURE__ */ r(B, { className: "hidden md:table-cell", children: "Model" }),
1964
+ /* @__PURE__ */ r(B, { className: "text-right", children: "Actions" })
1964
1965
  ] }) }),
1965
1966
  /* @__PURE__ */ r(Jt, { children: d.map((p, k) => {
1966
- var E;
1967
- return ((E = p == null ? void 0 : p.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ v(Ne, { children: [
1968
- u && /* @__PURE__ */ r(z, { children: k + 1 }),
1967
+ var N;
1968
+ return ((N = p == null ? void 0 : p.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ v(Ee, { children: [
1969
+ u && /* @__PURE__ */ r(B, { children: k + 1 }),
1969
1970
  /* @__PURE__ */ r(
1970
- z,
1971
+ B,
1971
1972
  {
1972
1973
  component: "th",
1973
1974
  scope: "row",
@@ -1975,8 +1976,17 @@ const Qr = async (e, t, o, n) => {
1975
1976
  children: p.timestamp
1976
1977
  }
1977
1978
  ),
1978
- /* @__PURE__ */ r(z, { className: "max-w-[100px] text-white sm:max-w-full", children: Xe(p.messages) }),
1979
- /* @__PURE__ */ r(z, { children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
1979
+ /* @__PURE__ */ r(B, { className: "max-w-[100px] text-white sm:max-w-full", children: Xe(p.messages) }),
1980
+ /* @__PURE__ */ r(
1981
+ B,
1982
+ {
1983
+ component: "th",
1984
+ scope: "row",
1985
+ className: "hidden md:table-cell font-medium text-gray-400 sm:whitespace-nowrap",
1986
+ children: p.model
1987
+ }
1988
+ ),
1989
+ /* @__PURE__ */ r(B, { children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
1980
1990
  /* @__PURE__ */ r(
1981
1991
  Y,
1982
1992
  {
@@ -1984,12 +1994,12 @@ const Qr = async (e, t, o, n) => {
1984
1994
  noBorder: !0,
1985
1995
  label: "Restore chat",
1986
1996
  onClick: async () => {
1987
- const x = await s();
1997
+ const I = await s();
1988
1998
  Qr(
1989
1999
  p,
1990
2000
  o,
1991
2001
  n,
1992
- x
2002
+ I
1993
2003
  );
1994
2004
  },
1995
2005
  children: /* @__PURE__ */ r(Ao, { className: "h-3 w-3", monotone: !0 })
@@ -2008,13 +2018,13 @@ const Qr = async (e, t, o, n) => {
2008
2018
  message: Xe(p.messages)
2009
2019
  }, h(!l);
2010
2020
  },
2011
- children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(No, { className: "h-3 w-3", monotone: !0 }) })
2021
+ children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(Eo, { className: "h-3 w-3", monotone: !0 }) })
2012
2022
  }
2013
2023
  )
2014
2024
  ] }) })
2015
- ] }, `${w.HISTORY.TITLE}-${p.id}-${k}`) : null;
2025
+ ] }, `${T.HISTORY.TITLE}-${p.id}-${k}`) : null;
2016
2026
  }) }),
2017
- /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(z, { colSpan: 4, children: /* @__PURE__ */ r("div", { children: fe(
2027
+ /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(Ee, { children: /* @__PURE__ */ r(B, { colSpan: 5, children: /* @__PURE__ */ r("div", { children: fe(
2018
2028
  `${e.data.length} chat`,
2019
2029
  e.data.length
2020
2030
  ) }) }) }) })
@@ -2032,7 +2042,7 @@ const tn = ({
2032
2042
  onOpenChange: e,
2033
2043
  historyData: t
2034
2044
  }) => {
2035
- const { isAuthenticated: o } = te(), n = ce(null), { dispatch: a } = V(me), { state: s, dispatch: i } = V(tt), [, l] = G({
2045
+ const { isAuthenticated: o } = te(), n = ce(null), { dispatch: a } = z(me), { state: s, dispatch: i } = z(tt), [, l] = G({
2036
2046
  key: $ + Ht,
2037
2047
  initialValue: s.searchString
2038
2048
  }), h = ro(() => t, [t]), [u, m] = S({
@@ -2101,7 +2111,16 @@ const tn = ({
2101
2111
  open: e,
2102
2112
  onOpenChange: t,
2103
2113
  historyData: o
2104
- }) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Ut, children: /* @__PURE__ */ r(tn, { onOpenChange: t, historyData: o }) });
2114
+ }) => /* @__PURE__ */ r(
2115
+ X,
2116
+ {
2117
+ open: e,
2118
+ onOpenChange: t,
2119
+ title: Ut,
2120
+ className: "max-2-xl sm:max-w-4xl xl:max-w-5xl",
2121
+ children: /* @__PURE__ */ r(tn, { onOpenChange: t, historyData: o })
2122
+ }
2123
+ );
2105
2124
  /*!
2106
2125
  @versini/ui-toggle v1.0.7
2107
2126
  © 2024 gizmette.com
@@ -2231,7 +2250,7 @@ const rn = "av-toggle", nn = (e) => {
2231
2250
  open: e,
2232
2251
  onOpenChange: t
2233
2252
  }) => {
2234
- const { dispatch: o } = V(me), { getAccessToken: n, user: a } = te(), [s, i] = S({
2253
+ const { dispatch: o } = z(me), { getAccessToken: n, user: a } = te(), [s, i] = S({
2235
2254
  loaded: !1,
2236
2255
  instructions: "",
2237
2256
  loadingLocation: !1,
@@ -2276,9 +2295,9 @@ const rn = "av-toggle", nn = (e) => {
2276
2295
  }
2277
2296
  }), p = Date.now() - d;
2278
2297
  if (p < 2e3 && await new Promise((k) => setTimeout(k, 2e3 - p)), y.status === 200) {
2279
- const { city: k, state: E, country: x, displayName: M } = y.data, _ = k && E && x ? `${k}, ${E}, ${x}` : M;
2280
- i((B) => ({
2281
- ...B,
2298
+ const { city: k, state: N, country: I, displayName: M } = y.data, _ = k && N && I ? `${k}, ${N}, ${I}` : M;
2299
+ i((D) => ({
2300
+ ...D,
2282
2301
  loaded: !0,
2283
2302
  location: _,
2284
2303
  loadingLocation: !1
@@ -2295,12 +2314,12 @@ const rn = "av-toggle", nn = (e) => {
2295
2314
  }, g = (d) => {
2296
2315
  i((c) => ({
2297
2316
  ...c,
2298
- engine: d ? Te : pe
2317
+ engine: d ? we : pe
2299
2318
  }));
2300
2319
  }, b = (d) => {
2301
2320
  i((c) => ({
2302
2321
  ...c,
2303
- engine: d ? pe : Te
2322
+ engine: d ? pe : we
2304
2323
  }));
2305
2324
  };
2306
2325
  return U(() => {
@@ -2388,7 +2407,7 @@ const rn = "av-toggle", nn = (e) => {
2388
2407
  label: "OpenAI",
2389
2408
  name: "OpenAI",
2390
2409
  onChange: g,
2391
- checked: s.engine === Te
2410
+ checked: s.engine === we
2392
2411
  }
2393
2412
  ),
2394
2413
  /* @__PURE__ */ r(
@@ -2402,7 +2421,7 @@ const rn = "av-toggle", nn = (e) => {
2402
2421
  checked: s.engine === pe
2403
2422
  }
2404
2423
  ),
2405
- /* @__PURE__ */ r("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI. It also cannot take advantage yet of internal helper tools such as the OpenWeather or Google Images plugin." }),
2424
+ /* @__PURE__ */ r("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI." }),
2406
2425
  /* @__PURE__ */ r(
2407
2426
  q,
2408
2427
  {
@@ -2511,13 +2530,13 @@ const rn = "av-toggle", nn = (e) => {
2511
2530
  }, m = (g) => {
2512
2531
  l(g);
2513
2532
  };
2514
- return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(P, { header: w.TAGS.TITLE, className: "prose-dark dark:prose-lighter", children: [
2515
- /* @__PURE__ */ r("p", { children: w.TAGS.DESCRIPTION }),
2533
+ return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(P, { header: T.TAGS.TITLE, className: "prose-dark dark:prose-lighter", children: [
2534
+ /* @__PURE__ */ r("p", { children: T.TAGS.DESCRIPTION }),
2516
2535
  /* @__PURE__ */ r(
2517
2536
  q,
2518
2537
  {
2519
2538
  noBorder: !0,
2520
- label: we[Ee.SUMMARIZE_ARTICLE].label,
2539
+ label: Te[Ne.SUMMARIZE_ARTICLE].label,
2521
2540
  name: ze,
2522
2541
  onChange: h,
2523
2542
  checked: o
@@ -2528,7 +2547,7 @@ const rn = "av-toggle", nn = (e) => {
2528
2547
  {
2529
2548
  spacing: { t: 2 },
2530
2549
  noBorder: !0,
2531
- label: we[Ee.PROOFREAD_CONTENT].label,
2550
+ label: Te[Ne.PROOFREAD_CONTENT].label,
2532
2551
  name: $e,
2533
2552
  onChange: u,
2534
2553
  checked: a
@@ -2539,7 +2558,7 @@ const rn = "av-toggle", nn = (e) => {
2539
2558
  {
2540
2559
  spacing: { t: 2 },
2541
2560
  noBorder: !0,
2542
- label: we[Ee.REPHRASE_CONTENT].label,
2561
+ label: Te[Ne.REPHRASE_CONTENT].label,
2543
2562
  name: He,
2544
2563
  onChange: m,
2545
2564
  checked: i
@@ -2569,19 +2588,19 @@ const rn = "av-toggle", nn = (e) => {
2569
2588
  /* @__PURE__ */ v(
2570
2589
  P,
2571
2590
  {
2572
- header: w.PREFERENCES.TITLE,
2591
+ header: T.PREFERENCES.TITLE,
2573
2592
  className: "prose-dark dark:prose-lighter",
2574
2593
  children: [
2575
2594
  le(m, {
2576
- [w.PREFERENCES.NAME]: g,
2577
- [w.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2578
- [w.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ r(
2595
+ [T.PREFERENCES.NAME]: g,
2596
+ [T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2597
+ [T.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ r(
2579
2598
  q,
2580
2599
  {
2581
2600
  noBorder: !0,
2582
2601
  labelHidden: !0,
2583
- label: w.PREFERENCES.ENGINE_DETAILS,
2584
- name: w.PREFERENCES.ENGINE_DETAILS,
2602
+ label: T.PREFERENCES.ENGINE_DETAILS,
2603
+ name: T.PREFERENCES.ENGINE_DETAILS,
2585
2604
  onChange: b,
2586
2605
  checked: a
2587
2606
  }
@@ -2617,17 +2636,17 @@ const rn = "av-toggle", nn = (e) => {
2617
2636
  className: "prose-dark dark:prose-lighter",
2618
2637
  header: /* @__PURE__ */ r("h2", { className: "m-0", children: /* @__PURE__ */ v(Me, { columnGap: 3, alignVertical: "center", children: [
2619
2638
  /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(Fe, { className: "size-8" }) }),
2620
- /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children: w.PREFERENCES.PASSKEY_TITLE }) })
2639
+ /* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
2621
2640
  ] }) }),
2622
2641
  children: [
2623
- /* @__PURE__ */ r("p", { children: w.PREFERENCES.PASSKEY_INSTRUCTIONS }),
2642
+ /* @__PURE__ */ r("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
2624
2643
  /* @__PURE__ */ r(
2625
2644
  Y,
2626
2645
  {
2627
2646
  size: "small",
2628
2647
  spacing: { t: 2 },
2629
2648
  onClick: o,
2630
- labelLeft: w.PREFERENCES.PASSKEY_BUTTON,
2649
+ labelLeft: T.PREFERENCES.PASSKEY_BUTTON,
2631
2650
  children: /* @__PURE__ */ r(Fe, { className: "size-5", monotone: !0 })
2632
2651
  }
2633
2652
  )
@@ -2638,17 +2657,17 @@ const rn = "av-toggle", nn = (e) => {
2638
2657
  }, bn = ({
2639
2658
  open: e,
2640
2659
  onOpenChange: t
2641
- }) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Yt, children: /* @__PURE__ */ r(fn, {}) }), Nn = () => {
2642
- const { state: e, dispatch: t, serverStats: o } = V(me), [n, a] = S((e == null ? void 0 : e.engine) || ie), [s, i] = S(!1), [l, h] = S(!1), [u, m] = S(!1), [g, b] = S(!1), [d, c] = S([]), [y, T] = S(!1), [p, k] = S({
2660
+ }) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Yt, children: /* @__PURE__ */ r(fn, {}) }), En = () => {
2661
+ const { state: e, dispatch: t, serverStats: o } = z(me), [n, a] = S((e == null ? void 0 : e.engine) || ie), [s, i] = S(!1), [l, h] = S(!1), [u, m] = S(!1), [g, b] = S(!1), [d, c] = S([]), [y, w] = S(!1), [p, k] = S({
2643
2662
  done: !1,
2644
2663
  progress: !1,
2645
2664
  timestamp: Date.now()
2646
- }), [E] = G({
2665
+ }), [N] = G({
2647
2666
  key: $ + ot,
2648
2667
  initialValue: !1
2649
- }), { logout: x, getAccessToken: M, user: _ } = te(), B = () => {
2668
+ }), { logout: I, getAccessToken: M, user: _ } = te(), D = () => {
2650
2669
  i(!s);
2651
- }, N = () => {
2670
+ }, E = () => {
2652
2671
  h(!l);
2653
2672
  }, re = () => {
2654
2673
  m(!u);
@@ -2684,17 +2703,17 @@ const rn = "av-toggle", nn = (e) => {
2684
2703
  }
2685
2704
  }
2686
2705
  }, ne = () => {
2687
- T(!y);
2706
+ w(!y);
2688
2707
  };
2689
2708
  return U(() => {
2690
2709
  e && e.engine && e.engine !== n && a(e.engine);
2691
2710
  }, [e, n]), /* @__PURE__ */ v(R, { children: [
2692
2711
  /* @__PURE__ */ r(
2693
- xt,
2712
+ It,
2694
2713
  {
2695
2714
  showConfirmation: y,
2696
- setShowConfirmation: T,
2697
- action: x,
2715
+ setShowConfirmation: w,
2716
+ action: I,
2698
2717
  customStrings: {
2699
2718
  confirmAction: Ge,
2700
2719
  cancelAction: "Cancel",
@@ -2715,15 +2734,15 @@ const rn = "av-toggle", nn = (e) => {
2715
2734
  ),
2716
2735
  /* @__PURE__ */ r(jr, { open: g, onOpenChange: b }),
2717
2736
  /* @__PURE__ */ v("div", { className: "relative", children: [
2718
- E && o && /* @__PURE__ */ r("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ r(
2737
+ N && o && /* @__PURE__ */ r("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ r(
2719
2738
  Se,
2720
2739
  {
2721
2740
  mode: "dark",
2722
2741
  focusMode: "light",
2723
- trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(To, {}) : /* @__PURE__ */ r(So, {}) }),
2742
+ trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(wo, {}) : /* @__PURE__ */ r(So, {}) }),
2724
2743
  defaultPlacement: "bottom-start",
2725
2744
  children: /* @__PURE__ */ r(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ r(
2726
- Tr,
2745
+ wr,
2727
2746
  {
2728
2747
  size: "small",
2729
2748
  mode: "dark",
@@ -2748,7 +2767,7 @@ const rn = "av-toggle", nn = (e) => {
2748
2767
  } catch {
2749
2768
  }
2750
2769
  },
2751
- children: o && o.engines.map((L) => /* @__PURE__ */ r(wr, { value: L }, L))
2770
+ children: o && o.engines.map((L) => /* @__PURE__ */ r(Tr, { value: L }, L))
2752
2771
  }
2753
2772
  ) })
2754
2773
  }
@@ -2766,7 +2785,7 @@ const rn = "av-toggle", nn = (e) => {
2766
2785
  W,
2767
2786
  {
2768
2787
  label: "Profile",
2769
- onClick: B,
2788
+ onClick: D,
2770
2789
  icon: /* @__PURE__ */ r(_o, {})
2771
2790
  }
2772
2791
  ),
@@ -2774,8 +2793,8 @@ const rn = "av-toggle", nn = (e) => {
2774
2793
  W,
2775
2794
  {
2776
2795
  label: et,
2777
- onClick: N,
2778
- icon: /* @__PURE__ */ r(Eo, {})
2796
+ onClick: E,
2797
+ icon: /* @__PURE__ */ r(No, {})
2779
2798
  }
2780
2799
  ),
2781
2800
  /* @__PURE__ */ r(
@@ -2783,7 +2802,7 @@ const rn = "av-toggle", nn = (e) => {
2783
2802
  {
2784
2803
  label: "History",
2785
2804
  onClick: re,
2786
- icon: /* @__PURE__ */ r(Io, {})
2805
+ icon: /* @__PURE__ */ r(xo, {})
2787
2806
  }
2788
2807
  ),
2789
2808
  /* @__PURE__ */ r(
@@ -2791,7 +2810,7 @@ const rn = "av-toggle", nn = (e) => {
2791
2810
  {
2792
2811
  label: "About",
2793
2812
  onClick: J,
2794
- icon: /* @__PURE__ */ r(xo, {})
2813
+ icon: /* @__PURE__ */ r(Io, {})
2795
2814
  }
2796
2815
  ),
2797
2816
  e && e.id && !e.isComponent && /* @__PURE__ */ v(R, { children: [
@@ -2801,7 +2820,7 @@ const rn = "av-toggle", nn = (e) => {
2801
2820
  {
2802
2821
  label: "Log out",
2803
2822
  onClick: ne,
2804
- icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(wo, { monotone: !0 }) })
2823
+ icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(To, { monotone: !0 }) })
2805
2824
  }
2806
2825
  )
2807
2826
  ] })
@@ -2812,5 +2831,5 @@ const rn = "av-toggle", nn = (e) => {
2812
2831
  ] });
2813
2832
  };
2814
2833
  export {
2815
- Nn as default
2834
+ En as default
2816
2835
  };