@versini/sassysaint 5.5.15 → 5.5.17

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,6 +1,6 @@
1
1
  import { jsx as o, jsxs as y, Fragment as z } from "react/jsx-runtime";
2
- import { g as L, R as O, CARDS as S, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as Dt, L as Y, j as M, C as F, un as Q, INFINITE_SCROLL_LIMIT as De, INFINITE_SCROLL_THRESHOLD as Fe, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ft, P as J, ACTION_RESET as et, ACTION_RESTORE as Ht, ACTION_SORT as He, LOCAL_STORAGE_SEARCH as Gt, ye as Ie, ACTION_SEARCH as Ut, debounce as jt, HISTORY_TITLE as Wt, M as Kt, z as Ge, durationFormatter as Yt, PROFILE_TITLE as qt, TAGS_DESCRIPTION as Zt, ACTION_SET_TAGS as Qt, DEFAULT_AI_ENGINE as me, LOCAL_STORAGE_ENGINE_TOGGLE as tt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as X, APP_NAME as er, ACTION_ENGINE as rt, getCurrentGeoLocation as tr, LOG_OUT as Ue } from "./index.BoMigxtu.js";
3
- import { AppContext as ve, HistoryContext as ot, E as le, ge as rr, he as or, ue as Ne, le as B, ye as ar, me as nr, be as sr, serviceCall as $, SERVICE_TYPES as V, f as W, TagsContext as ir, Pe as je, NewChatButton as cr } from "./App.C5LWDSuZ.js";
2
+ import { g as L, R as O, CARDS as S, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as Dt, L as Y, j as M, C as F, un as Q, INFINITE_SCROLL_LIMIT as De, INFINITE_SCROLL_THRESHOLD as Fe, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ft, P as J, ACTION_RESET as et, ACTION_RESTORE as Ht, ACTION_SORT as He, LOCAL_STORAGE_SEARCH as Gt, HISTORY_TITLE as Ut, ye as Ie, ACTION_SEARCH as jt, debounce as Wt, M as Kt, z as Ge, durationFormatter as Yt, PROFILE_TITLE as qt, TAGS_DESCRIPTION as Zt, ACTION_SET_TAGS as Qt, DEFAULT_AI_ENGINE as me, LOCAL_STORAGE_ENGINE_TOGGLE as tt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as X, APP_NAME as er, ACTION_ENGINE as rt, getCurrentGeoLocation as tr, LOG_OUT as Ue } from "./index.DfBlqXlL.js";
3
+ import { AppContext as ve, HistoryContext as ot, E as le, ge as rr, he as or, ue as Ne, le as B, ye as ar, me as nr, be as sr, serviceCall as $, SERVICE_TYPES as V, f as W, TagsContext as ir, Pe as je, NewChatButton as cr } from "./App.CGtB3zQZ.js";
4
4
  import * as g from "react";
5
5
  import I, { useId as ze, forwardRef as at, useState as R, useRef as q, useContext as D, useEffect as Z, useCallback as lr, Fragment as dr, useLayoutEffect as We } from "react";
6
6
  import w from "clsx";
@@ -311,12 +311,12 @@ const Ee = g.createContext({
311
311
  mode: s = "system",
312
312
  focusMode: i = "system",
313
313
  ...c
314
- }, u) => {
315
- const [d, l] = R(!1), [f, b] = R(!1), [v, h] = R(null), p = q([]), k = q([]), x = D(Ee), C = nt(), m = ur(), N = st(), { floatingStyles: E, refs: A, context: _ } = it({
314
+ }, l) => {
315
+ const [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(null), k = q([]), b = q([]), x = D(Ee), N = nt(), m = ur(), C = st(), { floatingStyles: E, refs: A, context: _ } = it({
316
316
  nodeId: m,
317
317
  open: d,
318
318
  onOpenChange: (ae) => {
319
- l(ae), n == null || n(ae);
319
+ u(ae), n == null || n(ae);
320
320
  },
321
321
  placement: a,
322
322
  strategy: "fixed",
@@ -327,13 +327,13 @@ const Ee = g.createContext({
327
327
  toggle: !0,
328
328
  ignoreMouse: !1
329
329
  }), H = lt(_, { role: "menu" }), G = dt(_, { bubbles: !0 }), U = pr(_, {
330
- listRef: p,
330
+ listRef: k,
331
331
  activeIndex: v,
332
332
  nested: !1,
333
333
  onNavigate: h,
334
334
  loop: !0
335
335
  }), re = br(_, {
336
- listRef: k,
336
+ listRef: b,
337
337
  onMatch: d ? h : void 0,
338
338
  activeIndex: v
339
339
  }), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps: P } = ut([T, H, G, U, re]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", $t = Ve ? {
@@ -347,7 +347,7 @@ const Ee = g.createContext({
347
347
  "aria-label": r,
348
348
  "data-open": d ? "" : void 0,
349
349
  "data-focus-inside": f ? "" : void 0,
350
- ref: Le([A.setReference, N.ref, u]),
350
+ ref: Le([A.setReference, C.ref, l]),
351
351
  ...oe(
352
352
  x.getItemProps({
353
353
  ...c
@@ -356,17 +356,17 @@ const Ee = g.createContext({
356
356
  }
357
357
  );
358
358
  return Z(() => {
359
- if (!C)
359
+ if (!N)
360
360
  return;
361
361
  function ae() {
362
- l(!1), n == null || n(!1);
362
+ u(!1), n == null || n(!1);
363
363
  }
364
- return C.events.on("click", ae), () => {
365
- C.events.off("click", ae);
364
+ return N.events.on("click", ae), () => {
365
+ N.events.off("click", ae);
366
366
  };
367
- }, [C, n]), Z(() => {
368
- d && C && C.events.emit("menuopen", { nodeId: m });
369
- }, [C, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
367
+ }, [N, n]), Z(() => {
368
+ d && N && N.events.emit("menuopen", { nodeId: m });
369
+ }, [N, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
370
370
  Vt,
371
371
  /* @__PURE__ */ o(
372
372
  Ee.Provider,
@@ -375,10 +375,10 @@ const Ee = g.createContext({
375
375
  activeIndex: v,
376
376
  setActiveIndex: h,
377
377
  getItemProps: P,
378
- setHasFocusInside: b,
378
+ setHasFocusInside: p,
379
379
  isOpen: d
380
380
  },
381
- children: /* @__PURE__ */ o(yr, { elementsRef: p, labelsRef: k, children: d && /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(
381
+ children: /* @__PURE__ */ o(yr, { elementsRef: k, labelsRef: b, children: d && /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(
382
382
  ht,
383
383
  {
384
384
  context: _,
@@ -414,8 +414,8 @@ const j = g.forwardRef(
414
414
  ignoreClick: s = !1,
415
415
  ...i
416
416
  }, c) => {
417
- let u = "";
418
- const d = g.useContext(Ee), l = st({ label: t ? null : e }), f = nt(), b = Le([l.ref, c]);
417
+ let l = "";
418
+ const d = g.useContext(Ee), u = st({ label: t ? null : e }), f = nt(), p = Le([u.ref, c]);
419
419
  return a && n ? /* @__PURE__ */ o(
420
420
  "div",
421
421
  {
@@ -428,11 +428,11 @@ const j = g.forwardRef(
428
428
  }),
429
429
  children: n
430
430
  }
431
- ) : (r && (u = "pl-2"), /* @__PURE__ */ y(
431
+ ) : (r && (l = "pl-2"), /* @__PURE__ */ y(
432
432
  "button",
433
433
  {
434
434
  ...i,
435
- ref: b,
435
+ ref: p,
436
436
  role: "menuitem",
437
437
  className: "m-0 flex w-full rounded-md border border-transparent bg-none px-2 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
438
438
  tabIndex: 0,
@@ -449,7 +449,7 @@ const j = g.forwardRef(
449
449
  }),
450
450
  children: [
451
451
  r,
452
- e && /* @__PURE__ */ o("span", { className: u, children: e })
452
+ e && /* @__PURE__ */ o("span", { className: l, children: e })
453
453
  ]
454
454
  }
455
455
  ));
@@ -490,22 +490,22 @@ const Ar = "av-togglegroup", zr = "av-togglegroup-item-wrapper", Lr = "av-toggle
490
490
  function Be(e, t = []) {
491
491
  let r = [];
492
492
  function a(s, i) {
493
- const c = g.createContext(i), u = r.length;
493
+ const c = g.createContext(i), l = r.length;
494
494
  r = [...r, i];
495
495
  const d = (f) => {
496
- var b;
497
- const { scope: v, children: h, ...p } = f, k = ((b = v == null ? void 0 : v[e]) == null ? void 0 : b[u]) || c, x = g.useMemo(() => p, Object.values(p));
498
- return /* @__PURE__ */ o(k.Provider, { value: x, children: h });
496
+ var p;
497
+ const { scope: v, children: h, ...k } = f, b = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[l]) || c, x = g.useMemo(() => k, Object.values(k));
498
+ return /* @__PURE__ */ o(b.Provider, { value: x, children: h });
499
499
  };
500
500
  d.displayName = s + "Provider";
501
- function l(f, b) {
501
+ function u(f, p) {
502
502
  var v;
503
- const h = ((v = b == null ? void 0 : b[e]) == null ? void 0 : v[u]) || c, p = g.useContext(h);
504
- if (p) return p;
503
+ const h = ((v = p == null ? void 0 : p[e]) == null ? void 0 : v[l]) || c, k = g.useContext(h);
504
+ if (k) return k;
505
505
  if (i !== void 0) return i;
506
506
  throw new Error(`\`${f}\` must be used within \`${s}\``);
507
507
  }
508
- return [d, l];
508
+ return [d, u];
509
509
  }
510
510
  const n = () => {
511
511
  const s = r.map((i) => g.createContext(i));
@@ -528,8 +528,8 @@ function Br(...e) {
528
528
  scopeName: n.scopeName
529
529
  }));
530
530
  return function(n) {
531
- const s = a.reduce((i, { useScope: c, scopeName: u }) => {
532
- const d = c(n)[`__scope${u}`];
531
+ const s = a.reduce((i, { useScope: c, scopeName: l }) => {
532
+ const d = c(n)[`__scope${l}`];
533
533
  return { ...i, ...d };
534
534
  }, {});
535
535
  return g.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
@@ -564,7 +564,7 @@ function Se(...e) {
564
564
  var pe = g.forwardRef((e, t) => {
565
565
  const { children: r, ...a } = e, n = g.Children.toArray(r), s = n.find(Or);
566
566
  if (s) {
567
- const i = s.props.children, c = n.map((u) => u === s ? g.Children.count(i) > 1 ? g.Children.only(null) : g.isValidElement(i) ? i.props.children : null : u);
567
+ const i = s.props.children, c = n.map((l) => l === s ? g.Children.count(i) > 1 ? g.Children.only(null) : g.isValidElement(i) ? i.props.children : null : l);
568
568
  return /* @__PURE__ */ o(Re, { ...a, ref: t, children: g.isValidElement(i) ? g.cloneElement(i, void 0, c) : null });
569
569
  }
570
570
  return /* @__PURE__ */ o(Re, { ...a, ref: t, children: r });
@@ -637,38 +637,38 @@ function Fr(e) {
637
637
  t,
638
638
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
639
639
  ), i = (v) => {
640
- const { scope: h, children: p } = v, k = I.useRef(null), x = I.useRef(/* @__PURE__ */ new Map()).current;
641
- return /* @__PURE__ */ o(n, { scope: h, itemMap: x, collectionRef: k, children: p });
640
+ const { scope: h, children: k } = v, b = I.useRef(null), x = I.useRef(/* @__PURE__ */ new Map()).current;
641
+ return /* @__PURE__ */ o(n, { scope: h, itemMap: x, collectionRef: b, children: k });
642
642
  };
643
643
  i.displayName = t;
644
- const c = e + "CollectionSlot", u = I.forwardRef(
644
+ const c = e + "CollectionSlot", l = I.forwardRef(
645
645
  (v, h) => {
646
- const { scope: p, children: k } = v, x = s(c, p), C = Se(h, x.collectionRef);
647
- return /* @__PURE__ */ o(pe, { ref: C, children: k });
646
+ const { scope: k, children: b } = v, x = s(c, k), N = Se(h, x.collectionRef);
647
+ return /* @__PURE__ */ o(pe, { ref: N, children: b });
648
648
  }
649
649
  );
650
- u.displayName = c;
651
- const d = e + "CollectionItemSlot", l = "data-radix-collection-item", f = I.forwardRef(
650
+ l.displayName = c;
651
+ const d = e + "CollectionItemSlot", u = "data-radix-collection-item", f = I.forwardRef(
652
652
  (v, h) => {
653
- const { scope: p, children: k, ...x } = v, C = I.useRef(null), m = Se(h, C), N = s(d, p);
654
- return I.useEffect(() => (N.itemMap.set(C, { ref: C, ...x }), () => void N.itemMap.delete(C))), /* @__PURE__ */ o(pe, { [l]: "", ref: m, children: k });
653
+ const { scope: k, children: b, ...x } = v, N = I.useRef(null), m = Se(h, N), C = s(d, k);
654
+ return I.useEffect(() => (C.itemMap.set(N, { ref: N, ...x }), () => void C.itemMap.delete(N))), /* @__PURE__ */ o(pe, { [u]: "", ref: m, children: b });
655
655
  }
656
656
  );
657
657
  f.displayName = d;
658
- function b(v) {
658
+ function p(v) {
659
659
  const h = s(e + "CollectionConsumer", v);
660
660
  return I.useCallback(() => {
661
- const p = h.collectionRef.current;
662
- if (!p) return [];
663
- const k = Array.from(p.querySelectorAll(`[${l}]`));
661
+ const k = h.collectionRef.current;
662
+ if (!k) return [];
663
+ const b = Array.from(k.querySelectorAll(`[${u}]`));
664
664
  return Array.from(h.itemMap.values()).sort(
665
- (x, C) => k.indexOf(x.ref.current) - k.indexOf(C.ref.current)
665
+ (x, N) => b.indexOf(x.ref.current) - b.indexOf(N.ref.current)
666
666
  );
667
667
  }, [h.collectionRef, h.itemMap]);
668
668
  }
669
669
  return [
670
- { Provider: i, Slot: u, ItemSlot: f },
671
- b,
670
+ { Provider: i, Slot: l, ItemSlot: f },
671
+ p,
672
672
  a
673
673
  ];
674
674
  }
@@ -696,17 +696,17 @@ function ye({
696
696
  onChange: r = () => {
697
697
  }
698
698
  }) {
699
- const [a, n] = Wr({ defaultProp: t, onChange: r }), s = e !== void 0, i = s ? e : a, c = Pe(r), u = g.useCallback(
699
+ const [a, n] = Wr({ defaultProp: t, onChange: r }), s = e !== void 0, i = s ? e : a, c = Pe(r), l = g.useCallback(
700
700
  (d) => {
701
701
  if (s) {
702
- const l = typeof d == "function" ? d(e) : d;
703
- l !== e && c(l);
702
+ const u = typeof d == "function" ? d(e) : d;
703
+ u !== e && c(u);
704
704
  } else
705
705
  n(d);
706
706
  },
707
707
  [s, e, n, c]
708
708
  );
709
- return [i, u];
709
+ return [i, l];
710
710
  }
711
711
  function Wr({
712
712
  defaultProp: e,
@@ -737,17 +737,17 @@ var Jr = g.forwardRef((e, t) => {
737
737
  dir: s,
738
738
  currentTabStopId: i,
739
739
  defaultCurrentTabStopId: c,
740
- onCurrentTabStopIdChange: u,
740
+ onCurrentTabStopIdChange: l,
741
741
  onEntryFocus: d,
742
- preventScrollOnEntryFocus: l = !1,
742
+ preventScrollOnEntryFocus: u = !1,
743
743
  ...f
744
- } = e, b = g.useRef(null), v = Se(t, b), h = vt(s), [p = null, k] = ye({
744
+ } = e, p = g.useRef(null), v = Se(t, p), h = vt(s), [k = null, b] = ye({
745
745
  prop: i,
746
746
  defaultProp: c,
747
- onChange: u
748
- }), [x, C] = g.useState(!1), m = Pe(d), N = yt(r), E = g.useRef(!1), [A, _] = g.useState(0);
747
+ onChange: l
748
+ }), [x, N] = g.useState(!1), m = Pe(d), C = yt(r), E = g.useRef(!1), [A, _] = g.useState(0);
749
749
  return g.useEffect(() => {
750
- const T = b.current;
750
+ const T = p.current;
751
751
  if (T)
752
752
  return T.addEventListener(Te, m), () => T.removeEventListener(Te, m);
753
753
  }, [m]), /* @__PURE__ */ o(
@@ -757,12 +757,12 @@ var Jr = g.forwardRef((e, t) => {
757
757
  orientation: a,
758
758
  dir: h,
759
759
  loop: n,
760
- currentTabStopId: p,
760
+ currentTabStopId: k,
761
761
  onItemFocus: g.useCallback(
762
- (T) => k(T),
763
- [k]
762
+ (T) => b(T),
763
+ [b]
764
764
  ),
765
- onItemShiftTab: g.useCallback(() => C(!0), []),
765
+ onItemShiftTab: g.useCallback(() => N(!0), []),
766
766
  onFocusableItemAdd: g.useCallback(
767
767
  () => _((T) => T + 1),
768
768
  []
@@ -787,15 +787,15 @@ var Jr = g.forwardRef((e, t) => {
787
787
  if (T.target === T.currentTarget && H && !x) {
788
788
  const G = new CustomEvent(Te, Yr);
789
789
  if (T.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
790
- const U = N().filter((P) => P.focusable), re = U.find((P) => P.active), oe = U.find((P) => P.id === p), Ce = [re, oe, ...U].filter(
790
+ const U = C().filter((P) => P.focusable), re = U.find((P) => P.active), oe = U.find((P) => P.id === k), Ce = [re, oe, ...U].filter(
791
791
  Boolean
792
792
  ).map((P) => P.ref.current);
793
- Nt(Ce, l);
793
+ Nt(Ce, u);
794
794
  }
795
795
  }
796
796
  E.current = !1;
797
797
  }),
798
- onBlur: K(e.onBlur, () => C(!1))
798
+ onBlur: K(e.onBlur, () => N(!1))
799
799
  }
800
800
  )
801
801
  }
@@ -808,46 +808,46 @@ var Jr = g.forwardRef((e, t) => {
808
808
  active: n = !1,
809
809
  tabStopId: s,
810
810
  ...i
811
- } = e, c = jr(), u = s || c, d = Xr(xt, r), l = d.currentTabStopId === u, f = yt(r), { onFocusableItemAdd: b, onFocusableItemRemove: v } = d;
811
+ } = e, c = jr(), l = s || c, d = Xr(xt, r), u = d.currentTabStopId === l, f = yt(r), { onFocusableItemAdd: p, onFocusableItemRemove: v } = d;
812
812
  return g.useEffect(() => {
813
813
  if (a)
814
- return b(), () => v();
815
- }, [a, b, v]), /* @__PURE__ */ o(
814
+ return p(), () => v();
815
+ }, [a, p, v]), /* @__PURE__ */ o(
816
816
  Me.ItemSlot,
817
817
  {
818
818
  scope: r,
819
- id: u,
819
+ id: l,
820
820
  focusable: a,
821
821
  active: n,
822
822
  children: /* @__PURE__ */ o(
823
823
  de.span,
824
824
  {
825
- tabIndex: l ? 0 : -1,
825
+ tabIndex: u ? 0 : -1,
826
826
  "data-orientation": d.orientation,
827
827
  ...i,
828
828
  ref: t,
829
829
  onMouseDown: K(e.onMouseDown, (h) => {
830
- a ? d.onItemFocus(u) : h.preventDefault();
830
+ a ? d.onItemFocus(l) : h.preventDefault();
831
831
  }),
832
- onFocus: K(e.onFocus, () => d.onItemFocus(u)),
832
+ onFocus: K(e.onFocus, () => d.onItemFocus(l)),
833
833
  onKeyDown: K(e.onKeyDown, (h) => {
834
834
  if (h.key === "Tab" && h.shiftKey) {
835
835
  d.onItemShiftTab();
836
836
  return;
837
837
  }
838
838
  if (h.target !== h.currentTarget) return;
839
- const p = ro(h, d.orientation, d.dir);
840
- if (p !== void 0) {
839
+ const k = ro(h, d.orientation, d.dir);
840
+ if (k !== void 0) {
841
841
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
842
842
  h.preventDefault();
843
- let k = f().filter((x) => x.focusable).map((x) => x.ref.current);
844
- if (p === "last") k.reverse();
845
- else if (p === "prev" || p === "next") {
846
- p === "prev" && k.reverse();
847
- const x = k.indexOf(h.currentTarget);
848
- k = d.loop ? oo(k, x + 1) : k.slice(x + 1);
843
+ let b = f().filter((x) => x.focusable).map((x) => x.ref.current);
844
+ if (k === "last") b.reverse();
845
+ else if (k === "prev" || k === "next") {
846
+ k === "prev" && b.reverse();
847
+ const x = b.indexOf(h.currentTarget);
848
+ b = d.loop ? oo(b, x + 1) : b.slice(x + 1);
849
849
  }
850
- setTimeout(() => Nt(k));
850
+ setTimeout(() => Nt(b));
851
851
  }
852
852
  })
853
853
  }
@@ -905,7 +905,7 @@ var ao = wt, no = Ct, so = "Toggle", Tt = g.forwardRef((e, t) => {
905
905
  );
906
906
  });
907
907
  Tt.displayName = so;
908
- var ee = "ToggleGroup", [It, ha] = Be(ee, [
908
+ var ee = "ToggleGroup", [It, ma] = Be(ee, [
909
909
  kt
910
910
  ]), Et = kt(), Oe = I.forwardRef((e, t) => {
911
911
  const { type: r, ...a } = e;
@@ -950,11 +950,11 @@ var [_t, St] = It(ee), io = I.forwardRef((e, t) => {
950
950
  prop: r,
951
951
  defaultProp: a,
952
952
  onChange: n
953
- }), u = I.useCallback(
954
- (l) => c((f = []) => [...f, l]),
953
+ }), l = I.useCallback(
954
+ (u) => c((f = []) => [...f, u]),
955
955
  [c]
956
956
  ), d = I.useCallback(
957
- (l) => c((f = []) => f.filter((b) => b !== l)),
957
+ (u) => c((f = []) => f.filter((p) => p !== u)),
958
958
  [c]
959
959
  );
960
960
  return /* @__PURE__ */ o(
@@ -963,7 +963,7 @@ var [_t, St] = It(ee), io = I.forwardRef((e, t) => {
963
963
  scope: e.__scopeToggleGroup,
964
964
  type: "multiple",
965
965
  value: i,
966
- onItemActivate: u,
966
+ onItemActivate: l,
967
967
  onItemDeactivate: d,
968
968
  children: /* @__PURE__ */ o(Rt, { ...s, ref: t })
969
969
  }
@@ -979,15 +979,15 @@ var [lo, uo] = It(ee), Rt = I.forwardRef(
979
979
  orientation: s,
980
980
  dir: i,
981
981
  loop: c = !0,
982
- ...u
983
- } = e, d = Et(r), l = vt(i), f = { role: "group", dir: l, ...u };
982
+ ...l
983
+ } = e, d = Et(r), u = vt(i), f = { role: "group", dir: u, ...l };
984
984
  return /* @__PURE__ */ o(lo, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
985
985
  ao,
986
986
  {
987
987
  asChild: !0,
988
988
  ...d,
989
989
  orientation: s,
990
- dir: l,
990
+ dir: u,
991
991
  loop: c,
992
992
  children: /* @__PURE__ */ o(de.div, { ...f, ref: t })
993
993
  }
@@ -995,7 +995,7 @@ var [lo, uo] = It(ee), Rt = I.forwardRef(
995
995
  }
996
996
  ), be = "ToggleGroupItem", Mt = I.forwardRef(
997
997
  (e, t) => {
998
- const r = St(be, e.__scopeToggleGroup), a = uo(be, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), s = r.value.includes(e.value), i = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, u = I.useRef(null);
998
+ const r = St(be, e.__scopeToggleGroup), a = uo(be, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), s = r.value.includes(e.value), i = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, l = I.useRef(null);
999
999
  return a.rovingFocus ? /* @__PURE__ */ o(
1000
1000
  no,
1001
1001
  {
@@ -1003,7 +1003,7 @@ var [lo, uo] = It(ee), Rt = I.forwardRef(
1003
1003
  ...n,
1004
1004
  focusable: !i,
1005
1005
  active: s,
1006
- ref: u,
1006
+ ref: l,
1007
1007
  children: /* @__PURE__ */ o(qe, { ...c, ref: t })
1008
1008
  }
1009
1009
  ) : /* @__PURE__ */ o(qe, { ...c, ref: t });
@@ -1019,8 +1019,8 @@ var qe = I.forwardRef(
1019
1019
  ...c,
1020
1020
  ...n,
1021
1021
  ref: t,
1022
- onPressedChange: (u) => {
1023
- u ? s.onItemActivate(a) : s.onItemDeactivate(a);
1022
+ onPressedChange: (l) => {
1023
+ l ? s.onItemActivate(a) : s.onItemDeactivate(a);
1024
1024
  }
1025
1025
  }
1026
1026
  );
@@ -1096,15 +1096,15 @@ const At = I.createContext({
1096
1096
  focusMode: s = "system",
1097
1097
  size: i = "medium",
1098
1098
  defaultValue: c,
1099
- className: u,
1099
+ className: l,
1100
1100
  ...d
1101
1101
  }) => {
1102
- const l = yo({ mode: n, className: u }), f = { size: i, focusMode: s, mode: n };
1102
+ const u = yo({ mode: n, className: l }), f = { size: i, focusMode: s, mode: n };
1103
1103
  return /* @__PURE__ */ o(At.Provider, { value: f, children: /* @__PURE__ */ o(
1104
1104
  mo,
1105
1105
  {
1106
1106
  disabled: a,
1107
- className: l,
1107
+ className: u,
1108
1108
  value: t,
1109
1109
  defaultValue: c,
1110
1110
  onValueChange: r,
@@ -1376,36 +1376,36 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
1376
1376
  disabled: s,
1377
1377
  fullWidth: i,
1378
1378
  size: c,
1379
- noBorder: u,
1379
+ noBorder: l,
1380
1380
  labelRight: d,
1381
- labelLeft: l,
1381
+ labelLeft: u,
1382
1382
  noBackground: f,
1383
- variant: b,
1383
+ variant: p,
1384
1384
  noTruncate: v,
1385
1385
  align: h,
1386
- radius: p
1387
- }) => (b || (b = "primary"), r ? w(Xe, t) : w(
1386
+ radius: k
1387
+ }) => (p || (p = "primary"), r ? w(Xe, t) : w(
1388
1388
  Xe,
1389
1389
  No({
1390
1390
  mode: a,
1391
- variant: b,
1391
+ variant: p,
1392
1392
  noBackground: f,
1393
1393
  noTruncate: v
1394
1394
  }),
1395
- To({ mode: a, noBackground: f, variant: b }),
1396
- Io({ radius: p }),
1395
+ To({ mode: a, noBackground: f, variant: p }),
1396
+ Io({ radius: k }),
1397
1397
  xo({
1398
1398
  type: e,
1399
1399
  size: c,
1400
1400
  labelRight: d,
1401
- labelLeft: l,
1401
+ labelLeft: u,
1402
1402
  align: h
1403
1403
  }),
1404
- Co({ type: e, size: c, labelRight: d, labelLeft: l }),
1405
- So({ mode: a, variant: b, noBorder: u }),
1404
+ Co({ type: e, size: c, labelRight: d, labelLeft: u }),
1405
+ So({ mode: a, variant: p, noBorder: l }),
1406
1406
  Ro({ focusMode: n }),
1407
- Eo({ mode: a, variant: b, disabled: s }),
1408
- _o({ mode: a, variant: b, disabled: s }),
1407
+ Eo({ mode: a, variant: p, disabled: s }),
1408
+ _o({ mode: a, variant: p, disabled: s }),
1409
1409
  {
1410
1410
  "w-full": i,
1411
1411
  "disabled:cursor-not-allowed disabled:opacity-50": s
@@ -1438,19 +1438,19 @@ const Bt = I.forwardRef(
1438
1438
  className: s,
1439
1439
  type: i = "button",
1440
1440
  raw: c = !1,
1441
- noBorder: u = !1,
1441
+ noBorder: l = !1,
1442
1442
  "aria-label": d,
1443
- label: l,
1443
+ label: u,
1444
1444
  size: f = "medium",
1445
- labelRight: b,
1445
+ labelRight: p,
1446
1446
  labelLeft: v,
1447
1447
  noBackground: h = !1,
1448
- align: p = "center",
1449
- radius: k = "large",
1448
+ align: k = "center",
1449
+ radius: b = "large",
1450
1450
  variant: x = "primary",
1451
- ...C
1451
+ ...N
1452
1452
  }, m) => {
1453
- const N = Lt({
1453
+ const C = Lt({
1454
1454
  type: we,
1455
1455
  mode: r,
1456
1456
  focusMode: a,
@@ -1458,13 +1458,13 @@ const Bt = I.forwardRef(
1458
1458
  disabled: t,
1459
1459
  raw: c,
1460
1460
  className: s,
1461
- noBorder: u,
1461
+ noBorder: l,
1462
1462
  size: f,
1463
- labelRight: b,
1463
+ labelRight: p,
1464
1464
  labelLeft: v,
1465
1465
  noBackground: h,
1466
- align: p,
1467
- radius: k,
1466
+ align: k,
1467
+ radius: b,
1468
1468
  variant: x
1469
1469
  }), E = w({
1470
1470
  "text-copy-accent-dark": r === "light" && !c,
@@ -1476,15 +1476,15 @@ const Bt = I.forwardRef(
1476
1476
  $e,
1477
1477
  {
1478
1478
  ref: m,
1479
- className: N,
1479
+ className: C,
1480
1480
  disabled: t,
1481
1481
  type: i,
1482
- "aria-label": d || l,
1483
- ...C,
1482
+ "aria-label": d || u,
1483
+ ...N,
1484
1484
  children: [
1485
1485
  v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
1486
1486
  /* @__PURE__ */ o("div", { className: E, children: e }),
1487
- b && /* @__PURE__ */ o("span", { className: "pl-2", children: b })
1487
+ p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
1488
1488
  ]
1489
1489
  }
1490
1490
  );
@@ -1514,19 +1514,19 @@ const Ao = I.forwardRef(
1514
1514
  className: s,
1515
1515
  type: i = "button",
1516
1516
  raw: c = !1,
1517
- noBorder: u = !1,
1517
+ noBorder: l = !1,
1518
1518
  "aria-label": d,
1519
- label: l,
1519
+ label: u,
1520
1520
  size: f = "medium",
1521
- labelRight: b,
1521
+ labelRight: p,
1522
1522
  labelLeft: v,
1523
1523
  noBackground: h = !1,
1524
- align: p = "center",
1525
- active: k = !1,
1524
+ align: k = "center",
1525
+ active: b = !1,
1526
1526
  radius: x = "large",
1527
- ...C
1527
+ ...N
1528
1528
  }, m) => {
1529
- const N = Lt({
1529
+ const C = Lt({
1530
1530
  type: we,
1531
1531
  mode: r,
1532
1532
  focusMode: a,
@@ -1534,19 +1534,19 @@ const Ao = I.forwardRef(
1534
1534
  disabled: t,
1535
1535
  raw: c,
1536
1536
  className: s,
1537
- noBorder: u,
1537
+ noBorder: l,
1538
1538
  size: f,
1539
- labelRight: b,
1539
+ labelRight: p,
1540
1540
  labelLeft: v,
1541
1541
  noBackground: h,
1542
- align: p,
1542
+ align: k,
1543
1543
  radius: x
1544
1544
  }), E = w({
1545
1545
  "text-copy-accent-dark": r === "light" && !c,
1546
1546
  "text-copy-light": r === "dark" && !c,
1547
1547
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
1548
1548
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
1549
- }), A = k ? w(
1549
+ }), A = b ? w(
1550
1550
  "relative",
1551
1551
  "focus-within:static",
1552
1552
  "focus-within:after:border-transparent",
@@ -1567,15 +1567,15 @@ const Ao = I.forwardRef(
1567
1567
  $e,
1568
1568
  {
1569
1569
  ref: m,
1570
- className: N,
1570
+ className: C,
1571
1571
  disabled: t,
1572
1572
  type: i,
1573
- "aria-label": d || l,
1574
- ...C,
1573
+ "aria-label": d || u,
1574
+ ...N,
1575
1575
  children: [
1576
1576
  v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
1577
1577
  /* @__PURE__ */ o("div", { className: E, children: e }),
1578
- b && /* @__PURE__ */ o("span", { className: "pl-2", children: b })
1578
+ p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
1579
1579
  ]
1580
1580
  }
1581
1581
  ) });
@@ -1591,7 +1591,7 @@ const zo = ({
1591
1591
  size: s,
1592
1592
  title: i,
1593
1593
  semantic: c = !1,
1594
- ...u
1594
+ ...l
1595
1595
  }) => {
1596
1596
  const d = w(s, a);
1597
1597
  return /* @__PURE__ */ y(z, { children: [
@@ -1605,7 +1605,7 @@ const zo = ({
1605
1605
  role: "img",
1606
1606
  "aria-hidden": !c,
1607
1607
  focusable: !1,
1608
- ...u,
1608
+ ...l,
1609
1609
  children: e
1610
1610
  }
1611
1611
  ),
@@ -1662,27 +1662,27 @@ function Bo({
1662
1662
  open: t,
1663
1663
  onOpenChange: r
1664
1664
  } = {}) {
1665
- const [a, n] = g.useState(e), [s, i] = g.useState(), [c, u] = g.useState(), d = t ?? a, l = r ?? n, f = it({
1665
+ const [a, n] = g.useState(e), [s, i] = g.useState(), [c, l] = g.useState(), d = t ?? a, u = r ?? n, f = it({
1666
1666
  open: d,
1667
- onOpenChange: l
1668
- }), b = f.context, v = ct(b, {
1667
+ onOpenChange: u
1668
+ }), p = f.context, v = ct(p, {
1669
1669
  enabled: t == null
1670
- }), h = dt(b, {
1670
+ }), h = dt(p, {
1671
1671
  outsidePress: !1,
1672
1672
  outsidePressEvent: "mousedown"
1673
- }), p = lt(b), k = ut([v, h, p]);
1673
+ }), k = lt(p), b = ut([v, h, k]);
1674
1674
  return g.useMemo(
1675
1675
  () => ({
1676
1676
  open: d,
1677
- setOpen: l,
1678
- ...k,
1677
+ setOpen: u,
1678
+ ...b,
1679
1679
  ...f,
1680
1680
  labelId: s,
1681
1681
  descriptionId: c,
1682
1682
  setLabelId: i,
1683
- setDescriptionId: u
1683
+ setDescriptionId: l
1684
1684
  }),
1685
- [d, l, k, f, s, c]
1685
+ [d, u, b, f, s, c]
1686
1686
  );
1687
1687
  }
1688
1688
  const xe = () => {
@@ -1773,9 +1773,9 @@ const se = "panel", ue = "messagebox", Fo = ({
1773
1773
  kind: i = se,
1774
1774
  className: c
1775
1775
  }) => {
1776
- const u = q(""), d = Fo({ className: c, kind: i, borderMode: s });
1777
- return Z(() => (e && (u.current = document.title, document.title = `${r} | ${u.current}`), () => {
1778
- e && (document.title = u.current);
1776
+ const l = q(""), d = Fo({ className: c, kind: i, borderMode: s });
1777
+ return Z(() => (e && (l.current = document.title, document.title = `${r} | ${l.current}`), () => {
1778
+ e && (document.title = l.current);
1779
1779
  }), [r, e]), /* @__PURE__ */ o(z, { children: e && /* @__PURE__ */ o(Po, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Oo, { className: d.main, children: [
1780
1780
  /* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1781
1781
  /* @__PURE__ */ o(
@@ -1808,8 +1808,8 @@ const se = "panel", ue = "messagebox", Fo = ({
1808
1808
  header: S.ABOUT.TITLE_CLIENT,
1809
1809
  className: "prose-dark dark:prose-lighter",
1810
1810
  children: he(n, {
1811
- [S.ABOUT.VERSION]: "5.19.1",
1812
- [S.ABOUT.BUILD_TIMESTAMP]: "01/03/2025 07:52 PM EST"
1811
+ [S.ABOUT.VERSION]: "5.19.3",
1812
+ [S.ABOUT.BUILD_TIMESTAMP]: "01/04/2025 09:25 AM EST"
1813
1813
  })
1814
1814
  }
1815
1815
  ) }),
@@ -1901,18 +1901,18 @@ const se = "panel", ue = "messagebox", Fo = ({
1901
1901
  dispatch: r,
1902
1902
  onOpenChange: a
1903
1903
  }) => {
1904
- var C;
1904
+ var N;
1905
1905
  const { user: n, getAccessToken: s } = Q(), i = q(null), c = q({
1906
1906
  id: 0,
1907
1907
  timestamp: "",
1908
1908
  message: ""
1909
- }), [u, d] = R(!1), [l, f] = R(
1909
+ }), [l, d] = R(!1), [u, f] = R(
1910
1910
  De + Fe
1911
- ), { state: b, dispatch: v } = D(ot), [, h] = le({
1911
+ ), { state: p, dispatch: v } = D(ot), [, h] = le({
1912
1912
  key: ce + Ft,
1913
- initialValue: b.sortDirection
1914
- }), p = (m) => {
1915
- switch (b.sortDirection) {
1913
+ initialValue: p.sortDirection
1914
+ }), k = (m) => {
1915
+ switch (p.sortDirection) {
1916
1916
  case W.ASC:
1917
1917
  h(W.DESC), v({
1918
1918
  type: He,
@@ -1932,22 +1932,22 @@ const se = "panel", ue = "messagebox", Fo = ({
1932
1932
  });
1933
1933
  break;
1934
1934
  }
1935
- }, k = async () => {
1935
+ }, b = async () => {
1936
1936
  const m = c.current;
1937
1937
  try {
1938
- const N = await $({
1938
+ const C = await $({
1939
1939
  accessToken: await s(),
1940
1940
  type: V.DELETE_CHAT,
1941
1941
  params: {
1942
1942
  userId: (n == null ? void 0 : n.username) || "",
1943
1943
  id: m.id,
1944
1944
  limit: 1,
1945
- searchString: b.searchString,
1946
- direction: b.sortDirection,
1945
+ searchString: p.searchString,
1946
+ direction: p.sortDirection,
1947
1947
  truncateSize: 100
1948
1948
  }
1949
1949
  });
1950
- N.status === 200 && t({ data: N.data });
1950
+ C.status === 200 && t({ data: C.data });
1951
1951
  } catch {
1952
1952
  }
1953
1953
  }, x = lr((m) => {
@@ -1957,15 +1957,15 @@ const se = "panel", ue = "messagebox", Fo = ({
1957
1957
  const m = {
1958
1958
  // root: null,
1959
1959
  rootMargin: "20px"
1960
- }, N = new IntersectionObserver(x, m);
1961
- i.current && N.observe(i.current);
1960
+ }, C = new IntersectionObserver(x, m);
1961
+ i.current && C.observe(i.current);
1962
1962
  }), /* @__PURE__ */ y(z, { children: [
1963
1963
  /* @__PURE__ */ y(
1964
1964
  Ot,
1965
1965
  {
1966
- showConfirmation: u,
1966
+ showConfirmation: l,
1967
1967
  setShowConfirmation: d,
1968
- action: k,
1968
+ action: b,
1969
1969
  customStrings: {
1970
1970
  confirmAction: "Delete",
1971
1971
  cancelAction: "Cancel",
@@ -1982,7 +1982,7 @@ const se = "panel", ue = "messagebox", Fo = ({
1982
1982
  /* @__PURE__ */ y("li", { children: [
1983
1983
  "First message:",
1984
1984
  " ",
1985
- /* @__PURE__ */ o("span", { className: "text-lg", children: (C = c.current) == null ? void 0 : C.message })
1985
+ /* @__PURE__ */ o("span", { className: "text-lg", children: (N = c.current) == null ? void 0 : N.message })
1986
1986
  ] })
1987
1987
  ] })
1988
1988
  ]
@@ -2004,10 +2004,10 @@ const se = "panel", ue = "messagebox", Fo = ({
2004
2004
  buttonClassName: "text-xs sm:text-sm",
2005
2005
  cellId: "timestamp",
2006
2006
  align: "left",
2007
- sortDirection: b.sortDirection,
2008
- sortedCell: b.sortedCell,
2007
+ sortDirection: p.sortDirection,
2008
+ sortedCell: p.sortedCell,
2009
2009
  onClick: () => {
2010
- p("timestamp");
2010
+ k("timestamp");
2011
2011
  },
2012
2012
  children: "Date"
2013
2013
  }
@@ -2016,19 +2016,19 @@ const se = "panel", ue = "messagebox", Fo = ({
2016
2016
  /* @__PURE__ */ o(B, { className: "text-xs sm:text-sm", children: "Model" }),
2017
2017
  /* @__PURE__ */ o(B, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2018
2018
  ] }) }),
2019
- /* @__PURE__ */ o(nr, { children: e.data.slice(0, l).map((m, N) => {
2019
+ /* @__PURE__ */ o(nr, { children: e.data.slice(0, u).map((m, C) => {
2020
2020
  var E, A;
2021
2021
  return ((E = m == null ? void 0 : m.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ y(dr, { children: [
2022
- N === l - Fe && /* @__PURE__ */ o("tr", { ref: i }),
2022
+ C === u - Fe && /* @__PURE__ */ o("tr", { ref: i }),
2023
2023
  /* @__PURE__ */ y(Ne, { children: [
2024
- /* @__PURE__ */ o(B, { children: N + 1 }),
2024
+ /* @__PURE__ */ o(B, { children: C + 1 }),
2025
2025
  /* @__PURE__ */ o(
2026
2026
  B,
2027
2027
  {
2028
2028
  component: "th",
2029
2029
  scope: "row",
2030
2030
  className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
2031
- children: m.timestamp
2031
+ children: m.timestamp.split(",")[0]
2032
2032
  }
2033
2033
  ),
2034
2034
  /* @__PURE__ */ o(
@@ -2086,14 +2086,14 @@ const se = "panel", ue = "messagebox", Fo = ({
2086
2086
  id: m.id,
2087
2087
  timestamp: m.timestamp,
2088
2088
  message: m.messages.length > 0 ? (_ = m.messages[0]) == null ? void 0 : _.content : ""
2089
- }, d(!u);
2089
+ }, d(!l);
2090
2090
  },
2091
2091
  children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 }) })
2092
2092
  }
2093
2093
  )
2094
2094
  ] })
2095
2095
  ] })
2096
- ] }, `${S.HISTORY.TITLE}-${m.id}-${N}`) : null;
2096
+ ] }, `${S.HISTORY.TITLE}-${m.id}-${C}`) : null;
2097
2097
  }) }),
2098
2098
  /* @__PURE__ */ o(sr, { children: /* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(B, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: ge(
2099
2099
  `${e.data.length} chat`,
@@ -2129,88 +2129,91 @@ const se = "panel", ue = "messagebox", Fo = ({
2129
2129
  return [];
2130
2130
  }
2131
2131
  return [];
2132
- }, Wo = ({ onOpenChange: e }) => {
2133
- const { isAuthenticated: t, getAccessToken: r, user: a } = Q(), n = q(null), s = q(!1), { dispatch: i } = D(ve), { state: c, dispatch: u } = D(ot), [, d] = le({
2132
+ }, Wo = ({
2133
+ open: e,
2134
+ onOpenChange: t
2135
+ }) => {
2136
+ const { isAuthenticated: r, getAccessToken: a, user: n } = Q(), s = q(null), i = q(!1), { dispatch: c } = D(ve), { state: l, dispatch: d } = D(ot), [, u] = le({
2134
2137
  key: ce + Gt,
2135
- initialValue: c.searchString
2136
- }), [l, f] = R({
2138
+ initialValue: l.searchString
2139
+ }), [f, p] = R({
2137
2140
  data: [],
2138
- sortedDirection: c.sortDirection
2139
- }), b = async (p) => {
2140
- const k = await r(), x = await Je({
2141
- searchString: p,
2142
- username: a == null ? void 0 : a.username,
2143
- accessToken: k,
2144
- direction: c.sortDirection
2141
+ sortedDirection: l.sortDirection
2142
+ }), v = async (b) => {
2143
+ const x = await a(), N = await Je({
2144
+ searchString: b,
2145
+ username: n == null ? void 0 : n.username,
2146
+ accessToken: x,
2147
+ direction: l.sortDirection
2145
2148
  });
2146
- f({
2147
- data: x,
2148
- sortedDirection: c.sortDirection
2149
- }), d(p), u({
2150
- type: Ut,
2151
- payload: { searchString: p }
2149
+ p({
2150
+ data: N,
2151
+ sortedDirection: l.sortDirection
2152
+ }), u(b), d({
2153
+ type: jt,
2154
+ payload: { searchString: b }
2152
2155
  });
2153
- }, v = jt((p) => {
2154
- b(p.target.value);
2155
- }, 500), h = async (p) => {
2156
- p.preventDefault();
2156
+ }, h = Wt((b) => {
2157
+ v(b.target.value);
2158
+ }, 500), k = async (b) => {
2159
+ b.preventDefault();
2157
2160
  };
2158
2161
  return We(() => {
2159
- s.current || (async () => {
2160
- s.current = !0;
2161
- const p = await r(), k = await Je({
2162
- searchString: c.searchString,
2163
- username: a == null ? void 0 : a.username,
2164
- accessToken: p,
2165
- direction: c.sortDirection
2162
+ i.current || (async () => {
2163
+ i.current = !0;
2164
+ const b = await a(), x = await Je({
2165
+ searchString: l.searchString,
2166
+ username: n == null ? void 0 : n.username,
2167
+ accessToken: b,
2168
+ direction: l.sortDirection
2166
2169
  });
2167
- f({
2168
- data: k,
2169
- sortedDirection: c.sortDirection
2170
+ p({
2171
+ data: x,
2172
+ sortedDirection: l.sortDirection
2170
2173
  });
2171
2174
  })();
2172
2175
  }), We(() => {
2173
- if (c.sortDirection !== l.sortedDirection) {
2174
- const p = [...l.data].sort((k, x) => {
2175
- if (c.sortedCell === "timestamp") {
2176
- const C = new Date(k[c.sortedCell]).getTime(), m = new Date(x[c.sortedCell]).getTime();
2177
- return c.sortDirection === W.ASC ? C - m : m - C;
2176
+ if (l.sortDirection !== f.sortedDirection) {
2177
+ const b = [...f.data].sort((x, N) => {
2178
+ if (l.sortedCell === "timestamp") {
2179
+ const m = new Date(x[l.sortedCell]).getTime(), C = new Date(N[l.sortedCell]).getTime();
2180
+ return l.sortDirection === W.ASC ? m - C : C - m;
2178
2181
  }
2179
2182
  return 0;
2180
2183
  });
2181
- f({
2182
- data: p,
2183
- sortedDirection: c.sortDirection
2184
+ p({
2185
+ data: b,
2186
+ sortedDirection: l.sortDirection
2184
2187
  });
2185
2188
  }
2186
- }, [l, c]), t ? l && l.data && /* @__PURE__ */ y(z, { children: [
2187
- /* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: h, children: /* @__PURE__ */ o(
2189
+ }, [f, l]), r ? f && f.data && /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Ut, children: /* @__PURE__ */ y(z, { children: [
2190
+ /* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: k, children: /* @__PURE__ */ o(
2188
2191
  Ie,
2189
2192
  {
2190
2193
  autoCapitalize: "off",
2191
2194
  autoComplete: "off",
2192
2195
  autoCorrect: "off",
2193
- ref: n,
2194
- defaultValue: c.searchString,
2196
+ ref: s,
2197
+ defaultValue: l.searchString,
2195
2198
  focusMode: "light",
2196
2199
  mode: "dark",
2197
2200
  name: "Search",
2198
2201
  label: "Search",
2199
- onChange: v,
2202
+ onChange: h,
2200
2203
  className: "mt-2 mb-2",
2201
- ...c.searchString && {
2204
+ ...l.searchString && {
2202
2205
  rightElement: /* @__PURE__ */ o(
2203
2206
  F,
2204
2207
  {
2205
2208
  type: "button",
2206
- disabled: !c.searchString,
2209
+ disabled: !l.searchString,
2207
2210
  mode: "light",
2208
2211
  focusMode: "light",
2209
2212
  noBorder: !0,
2210
2213
  size: "small",
2211
2214
  onClick: () => {
2212
- var p;
2213
- b(""), (p = n.current) != null && p.value && (n.current.value = "", n.current.focus());
2215
+ var b;
2216
+ v(""), (b = s.current) != null && b.value && (s.current.value = "", s.current.focus());
2214
2217
  },
2215
2218
  children: "Reset"
2216
2219
  }
@@ -2221,17 +2224,14 @@ const se = "panel", ue = "messagebox", Fo = ({
2221
2224
  /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ o(
2222
2225
  jo,
2223
2226
  {
2224
- filteredHistory: l,
2225
- setFilteredHistory: f,
2226
- dispatch: i,
2227
- onOpenChange: e
2227
+ filteredHistory: f,
2228
+ setFilteredHistory: p,
2229
+ dispatch: c,
2230
+ onOpenChange: t
2228
2231
  }
2229
2232
  ) })
2230
- ] }) : null;
2231
- }, Ko = ({
2232
- open: e,
2233
- onOpenChange: t
2234
- }) => /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Wt, children: /* @__PURE__ */ o(Wo, { onOpenChange: t }) }), Yo = ({ stats: e }) => {
2233
+ ] }) }) : null;
2234
+ }, Ko = ({ stats: e }) => {
2235
2235
  const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Q(), s = fe(), i = fe(), c = (r == null ? void 0 : r.username) || "";
2236
2236
  return t && c ? /* @__PURE__ */ y(z, { children: [
2237
2237
  /* @__PURE__ */ o(
@@ -2282,7 +2282,7 @@ const se = "panel", ue = "messagebox", Fo = ({
2282
2282
  }
2283
2283
  )
2284
2284
  ] }) : null;
2285
- }, qo = ({
2285
+ }, Yo = ({
2286
2286
  open: e,
2287
2287
  onOpenChange: t
2288
2288
  }) => {
@@ -2304,7 +2304,7 @@ const se = "panel", ue = "messagebox", Fo = ({
2304
2304
  } catch {
2305
2305
  }
2306
2306
  })();
2307
- }, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Yo, { stats: r }) });
2307
+ }, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Ko, { stats: r }) });
2308
2308
  };
2309
2309
  /*!
2310
2310
  @versini/ui-toggle v3.0.0
@@ -2319,7 +2319,7 @@ try {
2319
2319
  });
2320
2320
  } catch {
2321
2321
  }
2322
- const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo = ({
2322
+ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo = ({
2323
2323
  focusMode: e
2324
2324
  }) => w(
2325
2325
  "peer-focus:outline",
@@ -2331,14 +2331,14 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2331
2331
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
2332
2332
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
2333
2333
  }
2334
- ), Jo = () => w(
2334
+ ), Xo = () => w(
2335
2335
  "peer-checked:after:translate-x-full",
2336
2336
  // background color when checked
2337
2337
  "peer-checked:bg-violet-500",
2338
2338
  // knob circle and border color when checked
2339
2339
  "peer-checked:after:bg-white",
2340
2340
  "peer-checked:after:border-white"
2341
- ), ea = () => w(
2341
+ ), Jo = () => w(
2342
2342
  "after:left-[2px]",
2343
2343
  "after:top-[2px]",
2344
2344
  "after:border",
@@ -2350,7 +2350,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2350
2350
  "after:rounded-full",
2351
2351
  "after:transition-all",
2352
2352
  "after:content-['']"
2353
- ), ta = ({
2353
+ ), ea = ({
2354
2354
  mode: e,
2355
2355
  noBorder: t
2356
2356
  }) => w({
@@ -2359,7 +2359,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2359
2359
  "border-border-light bg-surface-darker": e === "dark",
2360
2360
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
2361
2361
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
2362
- }), ra = ({
2362
+ }), ta = ({
2363
2363
  mode: e,
2364
2364
  labelHidden: t
2365
2365
  }) => t ? "sr-only" : w("ml-2 text-sm", {
@@ -2367,11 +2367,11 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2367
2367
  "text-copy-lighter": e === "dark",
2368
2368
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
2369
2369
  "text-copy-dark dark:text-copy-lighter": e === "system"
2370
- }), oa = ({ className: e }) => w(
2371
- Zo,
2370
+ }), ra = ({ className: e }) => w(
2371
+ qo,
2372
2372
  "relative flex cursor-pointer items-center",
2373
2373
  e
2374
- ), aa = ({
2374
+ ), oa = ({
2375
2375
  mode: e,
2376
2376
  focusMode: t,
2377
2377
  labelHidden: r,
@@ -2379,15 +2379,15 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2379
2379
  noBorder: n
2380
2380
  }) => ({
2381
2381
  toggle: w(
2382
- Qo(),
2383
- ta({ mode: e, noBorder: n }),
2384
- Xo({ focusMode: t }),
2385
- ea(),
2386
- Jo()
2382
+ Zo(),
2383
+ ea({ mode: e, noBorder: n }),
2384
+ Qo({ focusMode: t }),
2385
+ Jo(),
2386
+ Xo()
2387
2387
  ),
2388
- label: ra({ mode: e, labelHidden: r }),
2388
+ label: ta({ mode: e, labelHidden: r }),
2389
2389
  input: "peer sr-only",
2390
- wrapper: oa({ className: a })
2390
+ wrapper: ra({ className: a })
2391
2391
  }), ie = ({
2392
2392
  checked: e = !1,
2393
2393
  onChange: t,
@@ -2397,15 +2397,15 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2397
2397
  mode: s = "system",
2398
2398
  focusMode: i = "system",
2399
2399
  className: c,
2400
- noBorder: u = !1
2400
+ noBorder: l = !1
2401
2401
  }) => {
2402
- const d = aa({
2402
+ const d = oa({
2403
2403
  mode: s,
2404
2404
  focusMode: i,
2405
2405
  labelHidden: a,
2406
2406
  className: c,
2407
- noBorder: u
2408
- }), l = (f) => {
2407
+ noBorder: l
2408
+ }), u = (f) => {
2409
2409
  t == null || t(f.target.checked);
2410
2410
  };
2411
2411
  return /* @__PURE__ */ y("label", { className: d.wrapper, children: [
@@ -2416,41 +2416,41 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2416
2416
  checked: e,
2417
2417
  type: "checkbox",
2418
2418
  className: d.input,
2419
- onChange: l
2419
+ onChange: u
2420
2420
  }
2421
2421
  ),
2422
2422
  /* @__PURE__ */ o("div", { className: d.toggle }),
2423
2423
  /* @__PURE__ */ o("span", { className: d.label, children: r })
2424
2424
  ] });
2425
- }, na = ({
2425
+ }, aa = ({
2426
2426
  open: e,
2427
2427
  onOpenChange: t
2428
2428
  }) => {
2429
2429
  const { state: r, dispatch: a } = D(ir), { getAccessToken: n, user: s } = Q(), [i, c] = R({
2430
2430
  tags: [...r.tags]
2431
- }), u = ({
2432
- slot: l,
2431
+ }), l = ({
2432
+ slot: u,
2433
2433
  checked: f,
2434
- label: b,
2434
+ label: p,
2435
2435
  content: v
2436
2436
  }) => {
2437
2437
  c((h) => {
2438
- const p = h.tags, k = {
2439
- slot: l,
2440
- label: b,
2438
+ const k = h.tags, b = {
2439
+ slot: u,
2440
+ label: p,
2441
2441
  content: v,
2442
2442
  enabled: f
2443
- }, x = p.findIndex((C) => C.slot === l);
2443
+ }, x = k.findIndex((N) => N.slot === u);
2444
2444
  return x === -1 ? {
2445
2445
  ...h,
2446
- tags: [...p, { ...k, slot: l }]
2447
- } : (p[x] = k, {
2446
+ tags: [...k, { ...b, slot: u }]
2447
+ } : (k[x] = b, {
2448
2448
  ...h,
2449
- tags: [...p]
2449
+ tags: [...k]
2450
2450
  });
2451
2451
  });
2452
- }, d = async (l) => {
2453
- l.preventDefault();
2452
+ }, d = async (u) => {
2453
+ u.preventDefault();
2454
2454
  try {
2455
2455
  await $({
2456
2456
  accessToken: await n(),
@@ -2499,8 +2499,8 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2499
2499
  mode: "dark",
2500
2500
  variant: "danger",
2501
2501
  focusMode: "light",
2502
- onClick: async (l) => {
2503
- t(!1), await d(l);
2502
+ onClick: async (u) => {
2503
+ t(!1), await d(u);
2504
2504
  },
2505
2505
  children: "Save"
2506
2506
  }
@@ -2510,10 +2510,10 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2510
2510
  ),
2511
2511
  children: [
2512
2512
  /* @__PURE__ */ o("p", { children: Zt }),
2513
- i.tags && i.tags.map((l) => /* @__PURE__ */ y(
2513
+ i.tags && i.tags.map((u) => /* @__PURE__ */ y(
2514
2514
  O,
2515
2515
  {
2516
- header: `Tag ${l.slot + 1}`,
2516
+ header: `Tag ${u.slot + 1}`,
2517
2517
  className: "prose-dark dark:prose-lighter mb-2",
2518
2518
  children: [
2519
2519
  /* @__PURE__ */ y(Y, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
@@ -2521,14 +2521,14 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2521
2521
  Ie,
2522
2522
  {
2523
2523
  label: "Label",
2524
- name: `tag${l.slot}-label`,
2525
- value: l.label,
2524
+ name: `tag${u.slot}-label`,
2525
+ value: u.label,
2526
2526
  onChange: (f) => {
2527
- u({
2528
- slot: l.slot,
2529
- checked: l.enabled,
2527
+ l({
2528
+ slot: u.slot,
2529
+ checked: u.enabled,
2530
2530
  label: f.target.value,
2531
- content: l.content
2531
+ content: u.content
2532
2532
  });
2533
2533
  }
2534
2534
  }
@@ -2537,13 +2537,13 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2537
2537
  Ie,
2538
2538
  {
2539
2539
  label: "Content",
2540
- name: `tag${l.slot}-content`,
2541
- value: l.content,
2540
+ name: `tag${u.slot}-content`,
2541
+ value: u.content,
2542
2542
  onChange: (f) => {
2543
- u({
2544
- slot: l.slot,
2545
- checked: l.enabled,
2546
- label: l.label,
2543
+ l({
2544
+ slot: u.slot,
2545
+ checked: u.enabled,
2546
+ label: u.label,
2547
2547
  content: f.target.value
2548
2548
  });
2549
2549
  }
@@ -2556,43 +2556,43 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2556
2556
  className: "mt-2",
2557
2557
  noBorder: !0,
2558
2558
  label: "Enabled",
2559
- name: l.slot.toString(),
2559
+ name: u.slot.toString(),
2560
2560
  onChange: (f) => {
2561
- u({
2562
- slot: l.slot,
2561
+ l({
2562
+ slot: u.slot,
2563
2563
  checked: f,
2564
- label: l.label,
2565
- content: l.content
2564
+ label: u.label,
2565
+ content: u.content
2566
2566
  });
2567
2567
  },
2568
- checked: l.enabled
2568
+ checked: u.enabled
2569
2569
  }
2570
2570
  )
2571
2571
  ]
2572
2572
  },
2573
- `tag-slot-${l.slot}`
2573
+ `tag-slot-${u.slot}`
2574
2574
  ))
2575
2575
  ]
2576
2576
  }
2577
2577
  );
2578
- }, sa = ({
2578
+ }, na = ({
2579
2579
  open: e,
2580
2580
  onOpenChange: t
2581
2581
  }) => {
2582
- const { dispatch: r } = D(ve), { getAccessToken: a, user: n } = Q(), [s, i] = R(!1), [c, u] = R({
2582
+ const { dispatch: r } = D(ve), { getAccessToken: a, user: n } = Q(), [s, i] = R(!1), [c, l] = R({
2583
2583
  loaded: !1,
2584
2584
  instructions: "",
2585
2585
  loadingLocation: !1,
2586
2586
  location: "",
2587
2587
  engine: me
2588
- }), [d, l] = le({
2588
+ }), [d, u] = le({
2589
2589
  key: ce + tt,
2590
2590
  initialValue: !1
2591
- }), [f, b] = le({
2591
+ }), [f, p] = le({
2592
2592
  key: ce + Xt,
2593
2593
  initialValue: !1
2594
2594
  }), v = (m) => {
2595
- b(m);
2595
+ p(m);
2596
2596
  }, h = async (m) => {
2597
2597
  m.preventDefault();
2598
2598
  try {
@@ -2613,31 +2613,31 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2613
2613
  });
2614
2614
  } catch {
2615
2615
  }
2616
- }, p = async () => {
2617
- u((m) => ({
2616
+ }, k = async () => {
2617
+ l((m) => ({
2618
2618
  ...m,
2619
2619
  location: "...",
2620
2620
  loadingLocation: !0
2621
2621
  }));
2622
2622
  try {
2623
- const m = Date.now(), N = await tr(), E = await $({
2623
+ const m = Date.now(), C = await tr(), E = await $({
2624
2624
  accessToken: await a(),
2625
2625
  type: V.GET_LOCATION,
2626
2626
  params: {
2627
- latitude: N.latitude,
2628
- longitude: N.longitude
2627
+ latitude: C.latitude,
2628
+ longitude: C.longitude
2629
2629
  }
2630
2630
  }), _ = Date.now() - m;
2631
2631
  if (_ < 2e3 && await new Promise((T) => setTimeout(T, 2e3 - _)), E.status === 200) {
2632
2632
  const { city: T, state: H, country: G, displayName: U } = E.data, re = T && H && G ? `${T}, ${H}, ${G}` : U;
2633
- u((oe) => ({
2633
+ l((oe) => ({
2634
2634
  ...oe,
2635
2635
  loaded: !0,
2636
2636
  location: re,
2637
2637
  loadingLocation: !1
2638
2638
  }));
2639
2639
  } else
2640
- u((T) => ({
2640
+ l((T) => ({
2641
2641
  ...T,
2642
2642
  loaded: !0,
2643
2643
  location: "",
@@ -2645,22 +2645,22 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2645
2645
  }));
2646
2646
  } catch {
2647
2647
  }
2648
- }, k = (m) => {
2649
- u((N) => ({
2650
- ...N,
2648
+ }, b = (m) => {
2649
+ l((C) => ({
2650
+ ...C,
2651
2651
  engine: m ? ne : X
2652
2652
  }));
2653
2653
  }, x = (m) => {
2654
- u((N) => ({
2655
- ...N,
2654
+ l((C) => ({
2655
+ ...C,
2656
2656
  engine: m ? X : ne
2657
2657
  }));
2658
- }, C = () => {
2658
+ }, N = () => {
2659
2659
  i(!s);
2660
2660
  };
2661
2661
  return Z(() => {
2662
2662
  if (!e || !n) {
2663
- u({
2663
+ l({
2664
2664
  loaded: !1,
2665
2665
  loadingLocation: !1,
2666
2666
  instructions: "",
@@ -2678,8 +2678,8 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2678
2678
  user: n.username
2679
2679
  }
2680
2680
  });
2681
- m.status === 200 && u((N) => ({
2682
- ...N,
2681
+ m.status === 200 && l((C) => ({
2682
+ ...C,
2683
2683
  loaded: !0,
2684
2684
  instructions: m.data.instructions || "",
2685
2685
  location: m.data.location || "",
@@ -2729,7 +2729,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2729
2729
  }
2730
2730
  ),
2731
2731
  children: /* @__PURE__ */ y(z, { children: [
2732
- s && /* @__PURE__ */ o(na, { open: s, onOpenChange: i }),
2732
+ s && /* @__PURE__ */ o(aa, { open: s, onOpenChange: i }),
2733
2733
  /* @__PURE__ */ y(
2734
2734
  O,
2735
2735
  {
@@ -2743,7 +2743,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2743
2743
  noBorder: !0,
2744
2744
  label: ne,
2745
2745
  name: ne,
2746
- onChange: k,
2746
+ onChange: b,
2747
2747
  checked: c.engine === ne
2748
2748
  }
2749
2749
  ),
@@ -2766,7 +2766,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2766
2766
  noBorder: !0,
2767
2767
  label: "Show Quick Engine Toggle Menu",
2768
2768
  name: "show-toggle-engine-menu",
2769
- onChange: l,
2769
+ onChange: u,
2770
2770
  checked: d
2771
2771
  }
2772
2772
  ),
@@ -2788,7 +2788,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2788
2788
  {
2789
2789
  className: "mt-2",
2790
2790
  size: "small",
2791
- onClick: C,
2791
+ onClick: N,
2792
2792
  labelLeft: "Edit Custom Tags",
2793
2793
  children: /* @__PURE__ */ o(Nr, { size: "size-3", monotone: !0 })
2794
2794
  }
@@ -2818,8 +2818,8 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2818
2818
  label: "Custom Instructions",
2819
2819
  value: c.instructions,
2820
2820
  onChange: (m) => {
2821
- u((N) => ({
2822
- ...N,
2821
+ l((C) => ({
2822
+ ...C,
2823
2823
  loaded: !0,
2824
2824
  instructions: m.target.value
2825
2825
  }));
@@ -2845,8 +2845,8 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2845
2845
  label: "Location",
2846
2846
  value: c.location,
2847
2847
  onChange: (m) => {
2848
- u((N) => ({
2849
- ...N,
2848
+ l((C) => ({
2849
+ ...C,
2850
2850
  loaded: !0,
2851
2851
  location: m.target.value
2852
2852
  }));
@@ -2861,7 +2861,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2861
2861
  size: "small",
2862
2862
  noBorder: !0,
2863
2863
  disabled: c.loadingLocation,
2864
- onClick: p,
2864
+ onClick: k,
2865
2865
  children: c.loadingLocation ? "Detecting..." : "Auto-detect"
2866
2866
  }
2867
2867
  )
@@ -2871,18 +2871,18 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2871
2871
  ] })
2872
2872
  }
2873
2873
  );
2874
- }, ga = () => {
2875
- const { state: e, dispatch: t, serverStats: r } = D(ve), [a, n] = R((e == null ? void 0 : e.engine) || me), [s, i] = R(!1), [c, u] = R(!1), [d, l] = R(!1), [f, b] = R(!1), [v, h] = R(!1), [p] = le({
2874
+ }, ha = () => {
2875
+ const { state: e, dispatch: t, serverStats: r } = D(ve), [a, n] = R((e == null ? void 0 : e.engine) || me), [s, i] = R(!1), [c, l] = R(!1), [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(!1), [k] = le({
2876
2876
  key: ce + tt,
2877
2877
  initialValue: !1
2878
- }), { logout: k, getAccessToken: x, user: C } = Q(), m = () => {
2878
+ }), { logout: b, getAccessToken: x, user: N } = Q(), m = () => {
2879
2879
  i(!s);
2880
- }, N = () => {
2881
- u(!c);
2880
+ }, C = () => {
2881
+ l(!c);
2882
2882
  }, E = () => {
2883
- l(!d);
2883
+ u(!d);
2884
2884
  }, A = () => {
2885
- b(!f);
2885
+ p(!f);
2886
2886
  }, _ = () => {
2887
2887
  h(!v);
2888
2888
  };
@@ -2894,7 +2894,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2894
2894
  {
2895
2895
  showConfirmation: v,
2896
2896
  setShowConfirmation: h,
2897
- action: k,
2897
+ action: b,
2898
2898
  customStrings: {
2899
2899
  confirmAction: Ue,
2900
2900
  cancelAction: "Cancel",
@@ -2903,14 +2903,14 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2903
2903
  children: /* @__PURE__ */ o("p", { children: "Are you sure you want to log out?" })
2904
2904
  }
2905
2905
  ),
2906
- /* @__PURE__ */ o(qo, { open: s, onOpenChange: i }),
2907
- /* @__PURE__ */ o(sa, { open: c, onOpenChange: u }),
2908
- /* @__PURE__ */ o(Ko, { open: d, onOpenChange: l }),
2909
- /* @__PURE__ */ o(Go, { open: f, onOpenChange: b }),
2906
+ /* @__PURE__ */ o(Yo, { open: s, onOpenChange: i }),
2907
+ /* @__PURE__ */ o(na, { open: c, onOpenChange: l }),
2908
+ /* @__PURE__ */ o(Wo, { open: d, onOpenChange: u }),
2909
+ /* @__PURE__ */ o(Go, { open: f, onOpenChange: p }),
2910
2910
  /* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ y(Y, { alignHorizontal: "space-between", alignVertical: "center", children: [
2911
2911
  /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(cr, { mode: "dark", radius: "large" }) }),
2912
2912
  /* @__PURE__ */ o(M, { children: /* @__PURE__ */ y(Y, { children: [
2913
- p && r && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
2913
+ k && r && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
2914
2914
  _e,
2915
2915
  {
2916
2916
  mode: "dark",
@@ -2931,7 +2931,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2931
2931
  accessToken: await x(),
2932
2932
  type: V.SET_USER_PREFERENCES,
2933
2933
  params: {
2934
- user: C == null ? void 0 : C.username,
2934
+ user: N == null ? void 0 : N.username,
2935
2935
  engine: T
2936
2936
  }
2937
2937
  }), t({
@@ -2970,7 +2970,7 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
2970
2970
  j,
2971
2971
  {
2972
2972
  label: "Settings",
2973
- onClick: N,
2973
+ onClick: C,
2974
2974
  icon: /* @__PURE__ */ o(Rr, {})
2975
2975
  }
2976
2976
  ),
@@ -3009,5 +3009,5 @@ const Zo = "av-toggle", Qo = () => w("peer", "h-6", "w-11", "rounded-full"), Xo
3009
3009
  ] });
3010
3010
  };
3011
3011
  export {
3012
- ga as default
3012
+ ha as default
3013
3013
  };