@versini/sassysaint 5.5.16 → 5.5.18

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, 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.DzbWJbnE.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.8ppM3BRY.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.Dc-g6Ljy.js";
3
+ import { AppContext as ve, HistoryContext as ot, E as le, ge as rr, he as or, ue as xe, 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.oZoXeHpk.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";
@@ -22,7 +22,7 @@ const gt = ({
22
22
  ...n,
23
23
  children: /* @__PURE__ */ o("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" })
24
24
  }
25
- ), xr = ({
25
+ ), Cr = ({
26
26
  className: e,
27
27
  viewBox: t,
28
28
  title: r,
@@ -48,7 +48,7 @@ const gt = ({
48
48
  /* @__PURE__ */ o("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" })
49
49
  ]
50
50
  }
51
- ), Cr = ({
51
+ ), Nr = ({
52
52
  className: e,
53
53
  viewBox: t,
54
54
  title: r,
@@ -74,7 +74,7 @@ const gt = ({
74
74
  /* @__PURE__ */ o("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8z" })
75
75
  ]
76
76
  }
77
- ), Nr = ({
77
+ ), xr = ({
78
78
  className: e,
79
79
  viewBox: t,
80
80
  title: r,
@@ -312,7 +312,7 @@ const Ee = g.createContext({
312
312
  focusMode: i = "system",
313
313
  ...c
314
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({
315
+ const [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(null), k = q([]), b = q([]), C = D(Ee), x = nt(), m = ur(), N = st(), { floatingStyles: E, refs: A, context: _ } = it({
316
316
  nodeId: m,
317
317
  open: d,
318
318
  onOpenChange: (ae) => {
@@ -336,7 +336,7 @@ const Ee = g.createContext({
336
336
  listRef: b,
337
337
  onMatch: d ? h : void 0,
338
338
  activeIndex: v
339
- }), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps: P } = ut([T, H, G, U, re]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", $t = Ve ? {
339
+ }), { getReferenceProps: oe, getFloatingProps: Ne, getItemProps: P } = ut([T, H, G, U, re]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", $t = Ve ? {
340
340
  noInternalClick: Ve,
341
341
  focusMode: i,
342
342
  mode: s
@@ -347,26 +347,26 @@ 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, C.ref, l]),
350
+ ref: Le([A.setReference, N.ref, l]),
351
351
  ...oe(
352
- x.getItemProps({
352
+ C.getItemProps({
353
353
  ...c
354
354
  })
355
355
  )
356
356
  }
357
357
  );
358
358
  return Z(() => {
359
- if (!N)
359
+ if (!x)
360
360
  return;
361
361
  function ae() {
362
362
  u(!1), n == null || n(!1);
363
363
  }
364
- return N.events.on("click", ae), () => {
365
- N.events.off("click", ae);
364
+ return x.events.on("click", ae), () => {
365
+ x.events.off("click", ae);
366
366
  };
367
- }, [N, n]), Z(() => {
368
- d && N && N.events.emit("menuopen", { nodeId: m });
369
- }, [N, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
367
+ }, [x, n]), Z(() => {
368
+ d && x && x.events.emit("menuopen", { nodeId: m });
369
+ }, [x, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
370
370
  Vt,
371
371
  /* @__PURE__ */ o(
372
372
  Ee.Provider,
@@ -391,7 +391,7 @@ const Ee = g.createContext({
391
391
  ref: A.setFloating,
392
392
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
393
393
  style: E,
394
- ...Ce(),
394
+ ...Ne(),
395
395
  children: t
396
396
  }
397
397
  )
@@ -494,8 +494,8 @@ function Be(e, t = []) {
494
494
  r = [...r, i];
495
495
  const d = (f) => {
496
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 });
497
+ const { scope: v, children: h, ...k } = f, b = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[l]) || c, C = g.useMemo(() => k, Object.values(k));
498
+ return /* @__PURE__ */ o(b.Provider, { value: C, children: h });
499
499
  };
500
500
  d.displayName = s + "Provider";
501
501
  function u(f, p) {
@@ -637,21 +637,21 @@ function Fr(e) {
637
637
  t,
638
638
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
639
639
  ), i = (v) => {
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 });
640
+ const { scope: h, children: k } = v, b = I.useRef(null), C = I.useRef(/* @__PURE__ */ new Map()).current;
641
+ return /* @__PURE__ */ o(n, { scope: h, itemMap: C, collectionRef: b, children: k });
642
642
  };
643
643
  i.displayName = t;
644
644
  const c = e + "CollectionSlot", l = I.forwardRef(
645
645
  (v, h) => {
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 });
646
+ const { scope: k, children: b } = v, C = s(c, k), x = Se(h, C.collectionRef);
647
+ return /* @__PURE__ */ o(pe, { ref: x, children: b });
648
648
  }
649
649
  );
650
650
  l.displayName = c;
651
651
  const d = e + "CollectionItemSlot", u = "data-radix-collection-item", f = I.forwardRef(
652
652
  (v, h) => {
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 });
653
+ const { scope: k, children: b, ...C } = v, x = I.useRef(null), m = Se(h, x), N = s(d, k);
654
+ return I.useEffect(() => (N.itemMap.set(x, { ref: x, ...C }), () => void N.itemMap.delete(x))), /* @__PURE__ */ o(pe, { [u]: "", ref: m, children: b });
655
655
  }
656
656
  );
657
657
  f.displayName = d;
@@ -662,7 +662,7 @@ function Fr(e) {
662
662
  if (!k) return [];
663
663
  const b = Array.from(k.querySelectorAll(`[${u}]`));
664
664
  return Array.from(h.itemMap.values()).sort(
665
- (x, N) => b.indexOf(x.ref.current) - b.indexOf(N.ref.current)
665
+ (C, x) => b.indexOf(C.ref.current) - b.indexOf(x.ref.current)
666
666
  );
667
667
  }, [h.collectionRef, h.itemMap]);
668
668
  }
@@ -745,7 +745,7 @@ var Jr = g.forwardRef((e, t) => {
745
745
  prop: i,
746
746
  defaultProp: c,
747
747
  onChange: l
748
- }), [x, N] = g.useState(!1), m = Pe(d), C = yt(r), E = g.useRef(!1), [A, _] = g.useState(0);
748
+ }), [C, x] = g.useState(!1), m = Pe(d), N = yt(r), E = g.useRef(!1), [A, _] = g.useState(0);
749
749
  return g.useEffect(() => {
750
750
  const T = p.current;
751
751
  if (T)
@@ -762,7 +762,7 @@ var Jr = g.forwardRef((e, t) => {
762
762
  (T) => b(T),
763
763
  [b]
764
764
  ),
765
- onItemShiftTab: g.useCallback(() => N(!0), []),
765
+ onItemShiftTab: g.useCallback(() => x(!0), []),
766
766
  onFocusableItemAdd: g.useCallback(
767
767
  () => _((T) => T + 1),
768
768
  []
@@ -774,7 +774,7 @@ var Jr = g.forwardRef((e, t) => {
774
774
  children: /* @__PURE__ */ o(
775
775
  de.div,
776
776
  {
777
- tabIndex: x || A === 0 ? -1 : 0,
777
+ tabIndex: C || A === 0 ? -1 : 0,
778
778
  "data-orientation": a,
779
779
  ...f,
780
780
  ref: v,
@@ -784,23 +784,23 @@ var Jr = g.forwardRef((e, t) => {
784
784
  }),
785
785
  onFocus: K(e.onFocus, (T) => {
786
786
  const H = !E.current;
787
- if (T.target === T.currentTarget && H && !x) {
787
+ if (T.target === T.currentTarget && H && !C) {
788
788
  const G = new CustomEvent(Te, Yr);
789
789
  if (T.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
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(
790
+ const U = N().filter((P) => P.focusable), re = U.find((P) => P.active), oe = U.find((P) => P.id === k), Ne = [re, oe, ...U].filter(
791
791
  Boolean
792
792
  ).map((P) => P.ref.current);
793
- Nt(Ce, u);
793
+ xt(Ne, u);
794
794
  }
795
795
  }
796
796
  E.current = !1;
797
797
  }),
798
- onBlur: K(e.onBlur, () => N(!1))
798
+ onBlur: K(e.onBlur, () => x(!1))
799
799
  }
800
800
  )
801
801
  }
802
802
  );
803
- }), xt = "RovingFocusGroupItem", Ct = g.forwardRef(
803
+ }), Ct = "RovingFocusGroupItem", Nt = g.forwardRef(
804
804
  (e, t) => {
805
805
  const {
806
806
  __scopeRovingFocusGroup: r,
@@ -808,7 +808,7 @@ var Jr = g.forwardRef((e, t) => {
808
808
  active: n = !1,
809
809
  tabStopId: s,
810
810
  ...i
811
- } = e, c = jr(), l = s || c, d = Xr(xt, r), u = d.currentTabStopId === l, f = yt(r), { onFocusableItemAdd: p, onFocusableItemRemove: v } = d;
811
+ } = e, c = jr(), l = s || c, d = Xr(Ct, r), u = d.currentTabStopId === l, f = yt(r), { onFocusableItemAdd: p, onFocusableItemRemove: v } = d;
812
812
  return g.useEffect(() => {
813
813
  if (a)
814
814
  return p(), () => v();
@@ -840,14 +840,14 @@ var Jr = g.forwardRef((e, t) => {
840
840
  if (k !== void 0) {
841
841
  if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
842
842
  h.preventDefault();
843
- let b = f().filter((x) => x.focusable).map((x) => x.ref.current);
843
+ let b = f().filter((C) => C.focusable).map((C) => C.ref.current);
844
844
  if (k === "last") b.reverse();
845
845
  else if (k === "prev" || k === "next") {
846
846
  k === "prev" && b.reverse();
847
- const x = b.indexOf(h.currentTarget);
848
- b = d.loop ? oo(b, x + 1) : b.slice(x + 1);
847
+ const C = b.indexOf(h.currentTarget);
848
+ b = d.loop ? oo(b, C + 1) : b.slice(C + 1);
849
849
  }
850
- setTimeout(() => Nt(b));
850
+ setTimeout(() => xt(b));
851
851
  }
852
852
  })
853
853
  }
@@ -856,7 +856,7 @@ var Jr = g.forwardRef((e, t) => {
856
856
  );
857
857
  }
858
858
  );
859
- Ct.displayName = xt;
859
+ Nt.displayName = Ct;
860
860
  var eo = {
861
861
  ArrowLeft: "prev",
862
862
  ArrowUp: "prev",
@@ -875,7 +875,7 @@ function ro(e, t, r) {
875
875
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
876
876
  return eo[a];
877
877
  }
878
- function Nt(e, t = !1) {
878
+ function xt(e, t = !1) {
879
879
  const r = document.activeElement;
880
880
  for (const a of e)
881
881
  if (a === r || (a.focus({ preventScroll: t }), document.activeElement !== r)) return;
@@ -883,7 +883,7 @@ function Nt(e, t = !1) {
883
883
  function oo(e, t) {
884
884
  return e.map((r, a) => e[(t + a) % e.length]);
885
885
  }
886
- var ao = wt, no = Ct, so = "Toggle", Tt = g.forwardRef((e, t) => {
886
+ var ao = wt, no = Nt, so = "Toggle", Tt = g.forwardRef((e, t) => {
887
887
  const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [i = !1, c] = ye({
888
888
  prop: r,
889
889
  onChange: n,
@@ -1130,19 +1130,19 @@ const At = I.createContext({
1130
1130
  ) });
1131
1131
  };
1132
1132
  /*!
1133
- @versini/ui-panel v1.3.0
1133
+ @versini/ui-panel v1.3.1
1134
1134
  © 2025 gizmette.com
1135
1135
  */
1136
1136
  try {
1137
1137
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
1138
- version: "1.3.0",
1139
- buildTime: "01/03/2025 10:45 AM EST",
1138
+ version: "1.3.1",
1139
+ buildTime: "01/04/2025 10:03 AM EST",
1140
1140
  homepage: "https://github.com/aversini/ui-components",
1141
1141
  license: "MIT"
1142
1142
  });
1143
1143
  } catch {
1144
1144
  }
1145
- const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt = "button", Ae = "link", xo = ({
1145
+ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt = "button", Ae = "link", Co = ({
1146
1146
  type: e,
1147
1147
  size: t,
1148
1148
  labelRight: r,
@@ -1171,7 +1171,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
1171
1171
  "h-12 px-4": t === "large" && (r || a)
1172
1172
  });
1173
1173
  }
1174
- }, Co = ({
1174
+ }, No = ({
1175
1175
  type: e,
1176
1176
  size: t,
1177
1177
  labelRight: r,
@@ -1194,7 +1194,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
1194
1194
  [i]: t === "large" && (r || a)
1195
1195
  });
1196
1196
  }
1197
- }, No = ({
1197
+ }, xo = ({
1198
1198
  mode: e,
1199
1199
  noBackground: t,
1200
1200
  noTruncate: r,
@@ -1205,34 +1205,30 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
1205
1205
  if (a === "primary")
1206
1206
  return w("not-prose", {
1207
1207
  truncate: !r,
1208
- "text-copy-light": e === "dark",
1209
- "text-copy-lighter": e === "light",
1210
- "text-copy-light dark:text-copy-lighter": e === "system",
1211
- "text-copy-lighter dark:text-copy-light": e === "alt-system"
1208
+ "text-copy-light": e === "dark" || e === "system",
1209
+ "text-copy-lighter": e === "light" || e === "alt-system",
1210
+ "dark:text-copy-lighter": e === "system",
1211
+ "dark:text-copy-light": e === "alt-system"
1212
1212
  });
1213
1213
  if (a === "secondary")
1214
1214
  return w("not-prose", {
1215
1215
  truncate: !r,
1216
- "text-copy-light": e === "light",
1217
- "text-copy-lighter": e === "dark",
1218
- "text-copy-light dark:text-copy-lighter": e === "alt-system",
1219
- "text-copy-lighter dark:text-copy-light": e === "system"
1216
+ "text-copy-light": e === "light" || e === "system",
1217
+ "text-copy-lighter": e === "dark" || e === "alt-system",
1218
+ "dark:text-copy-lighter": e === "alt-system",
1219
+ "dark:text-copy-light": e === "system"
1220
1220
  });
1221
1221
  if (a === "danger")
1222
1222
  return w("not-prose", {
1223
1223
  truncate: !r,
1224
- "text-copy-light": e === "dark",
1225
- "text-copy-lighter": e === "light",
1226
- "text-copy-light dark:text-copy-lighter": e === "system",
1227
- "text-copy-lighter dark:text-copy-light": e === "alt-system"
1224
+ "text-copy-light": e === "dark" || e === "system",
1225
+ "text-copy-lighter": e === "light" || e === "alt-system",
1226
+ "dark:text-copy-lighter": e === "system",
1227
+ "dark:text-copy-light": e === "alt-system"
1228
1228
  });
1229
1229
  if (a === "selected")
1230
- return w("not-prose", {
1231
- truncate: !r,
1232
- "text-copy-light": e === "dark",
1233
- "text-copy-lighter": e === "light",
1234
- "text-copy-light dark:text-copy-lighter": e === "system",
1235
- "text-copy-lighter dark:text-copy-light": e === "alt-system"
1230
+ return w("not-prose text-copy-lighter", {
1231
+ truncate: !r
1236
1232
  });
1237
1233
  }, To = ({
1238
1234
  mode: e,
@@ -1386,7 +1382,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
1386
1382
  radius: k
1387
1383
  }) => (p || (p = "primary"), r ? w(Xe, t) : w(
1388
1384
  Xe,
1389
- No({
1385
+ xo({
1390
1386
  mode: a,
1391
1387
  variant: p,
1392
1388
  noBackground: f,
@@ -1394,14 +1390,14 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
1394
1390
  }),
1395
1391
  To({ mode: a, noBackground: f, variant: p }),
1396
1392
  Io({ radius: k }),
1397
- xo({
1393
+ Co({
1398
1394
  type: e,
1399
1395
  size: c,
1400
1396
  labelRight: d,
1401
1397
  labelLeft: u,
1402
1398
  align: h
1403
1399
  }),
1404
- Co({ type: e, size: c, labelRight: d, labelLeft: u }),
1400
+ No({ type: e, size: c, labelRight: d, labelLeft: u }),
1405
1401
  So({ mode: a, variant: p, noBorder: l }),
1406
1402
  Ro({ focusMode: n }),
1407
1403
  Eo({ mode: a, variant: p, disabled: s }),
@@ -1447,10 +1443,10 @@ const Bt = I.forwardRef(
1447
1443
  noBackground: h = !1,
1448
1444
  align: k = "center",
1449
1445
  radius: b = "large",
1450
- variant: x = "primary",
1451
- ...N
1446
+ variant: C = "primary",
1447
+ ...x
1452
1448
  }, m) => {
1453
- const C = Lt({
1449
+ const N = Lt({
1454
1450
  type: we,
1455
1451
  mode: r,
1456
1452
  focusMode: a,
@@ -1465,7 +1461,7 @@ const Bt = I.forwardRef(
1465
1461
  noBackground: h,
1466
1462
  align: k,
1467
1463
  radius: b,
1468
- variant: x
1464
+ variant: C
1469
1465
  }), E = w({
1470
1466
  "text-copy-accent-dark": r === "light" && !c,
1471
1467
  "text-copy-light": r === "dark" && !c,
@@ -1476,11 +1472,11 @@ const Bt = I.forwardRef(
1476
1472
  $e,
1477
1473
  {
1478
1474
  ref: m,
1479
- className: C,
1475
+ className: N,
1480
1476
  disabled: t,
1481
1477
  type: i,
1482
1478
  "aria-label": d || u,
1483
- ...N,
1479
+ ...x,
1484
1480
  children: [
1485
1481
  v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
1486
1482
  /* @__PURE__ */ o("div", { className: E, children: e }),
@@ -1492,13 +1488,13 @@ const Bt = I.forwardRef(
1492
1488
  );
1493
1489
  Bt.displayName = "ButtonIcon";
1494
1490
  /*!
1495
- @versini/ui-button v4.0.0
1491
+ @versini/ui-button v4.0.1
1496
1492
  © 2025 gizmette.com
1497
1493
  */
1498
1494
  try {
1499
1495
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
1500
- version: "4.0.0",
1501
- buildTime: "01/03/2025 10:45 AM EST",
1496
+ version: "4.0.1",
1497
+ buildTime: "01/04/2025 10:02 AM EST",
1502
1498
  homepage: "https://github.com/aversini/ui-components",
1503
1499
  license: "MIT"
1504
1500
  });
@@ -1523,10 +1519,10 @@ const Ao = I.forwardRef(
1523
1519
  noBackground: h = !1,
1524
1520
  align: k = "center",
1525
1521
  active: b = !1,
1526
- radius: x = "large",
1527
- ...N
1522
+ radius: C = "large",
1523
+ ...x
1528
1524
  }, m) => {
1529
- const C = Lt({
1525
+ const N = Lt({
1530
1526
  type: we,
1531
1527
  mode: r,
1532
1528
  focusMode: a,
@@ -1540,7 +1536,7 @@ const Ao = I.forwardRef(
1540
1536
  labelLeft: v,
1541
1537
  noBackground: h,
1542
1538
  align: k,
1543
- radius: x
1539
+ radius: C
1544
1540
  }), E = w({
1545
1541
  "text-copy-accent-dark": r === "light" && !c,
1546
1542
  "text-copy-light": r === "dark" && !c,
@@ -1567,11 +1563,11 @@ const Ao = I.forwardRef(
1567
1563
  $e,
1568
1564
  {
1569
1565
  ref: m,
1570
- className: C,
1566
+ className: N,
1571
1567
  disabled: t,
1572
1568
  type: i,
1573
1569
  "aria-label": d || u,
1574
- ...N,
1570
+ ...x,
1575
1571
  children: [
1576
1572
  v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
1577
1573
  /* @__PURE__ */ o("div", { className: E, children: e }),
@@ -1619,7 +1615,7 @@ const zo = ({
1619
1615
  try {
1620
1616
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
1621
1617
  version: "4.0.0",
1622
- buildTime: "01/03/2025 10:45 AM EST",
1618
+ buildTime: "01/04/2025 10:02 AM EST",
1623
1619
  homepage: "https://github.com/aversini/ui-components",
1624
1620
  license: "MIT"
1625
1621
  });
@@ -1650,7 +1646,7 @@ const Lo = ({
1650
1646
  try {
1651
1647
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
1652
1648
  version: "4.0.0",
1653
- buildTime: "01/03/2025 10:45 AM EST",
1649
+ buildTime: "01/04/2025 10:02 AM EST",
1654
1650
  homepage: "https://github.com/aversini/ui-components",
1655
1651
  license: "MIT"
1656
1652
  });
@@ -1685,7 +1681,7 @@ function Bo({
1685
1681
  [d, u, b, f, s, c]
1686
1682
  );
1687
1683
  }
1688
- const xe = () => {
1684
+ const Ce = () => {
1689
1685
  const e = g.useContext(Pt);
1690
1686
  if (e == null)
1691
1687
  throw new Error("Modal components must be wrapped in <Modal />");
@@ -1699,7 +1695,7 @@ function Po({
1699
1695
  return /* @__PURE__ */ o(Pt.Provider, { value: r, children: e });
1700
1696
  }
1701
1697
  const Oo = g.forwardRef(function(e, t) {
1702
- const { context: r, ...a } = xe(), n = Le([a.refs.setFloating, t]);
1698
+ const { context: r, ...a } = Ce(), n = Le([a.refs.setFloating, t]);
1703
1699
  if (!r.open)
1704
1700
  return null;
1705
1701
  const { overlayBackground: s, ...i } = e, c = w("grid place-items-center", {
@@ -1717,13 +1713,13 @@ const Oo = g.forwardRef(function(e, t) {
1717
1713
  }
1718
1714
  ) }) }) });
1719
1715
  }), $o = g.forwardRef(function({ children: e, ...t }, r) {
1720
- const { setLabelId: a } = xe(), n = ze();
1716
+ const { setLabelId: a } = Ce(), n = ze();
1721
1717
  return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
1722
1718
  }), Vo = g.forwardRef(function({ children: e, ...t }, r) {
1723
- const { setDescriptionId: a } = xe(), n = ze();
1719
+ const { setDescriptionId: a } = Ce(), n = ze();
1724
1720
  return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
1725
1721
  }), Do = g.forwardRef(function(e, t) {
1726
- const { setOpen: r } = xe(), { trigger: a, className: n, ...s } = e, i = g.useCallback(() => r(!1), [r]);
1722
+ const { setOpen: r } = Ce(), { trigger: a, className: n, ...s } = e, i = g.useCallback(() => r(!1), [r]);
1727
1723
  return /* @__PURE__ */ o("div", { className: n, children: g.cloneElement(a, {
1728
1724
  ref: t,
1729
1725
  onClick: i,
@@ -1737,7 +1733,7 @@ const Oo = g.forwardRef(function(e, t) {
1737
1733
  try {
1738
1734
  window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
1739
1735
  version: "1.2.0",
1740
- buildTime: "01/03/2025 10:45 AM EST",
1736
+ buildTime: "01/04/2025 10:02 AM EST",
1741
1737
  homepage: "https://github.com/aversini/ui-components",
1742
1738
  license: "MIT"
1743
1739
  });
@@ -1808,8 +1804,8 @@ const se = "panel", ue = "messagebox", Fo = ({
1808
1804
  header: S.ABOUT.TITLE_CLIENT,
1809
1805
  className: "prose-dark dark:prose-lighter",
1810
1806
  children: he(n, {
1811
- [S.ABOUT.VERSION]: "5.19.2",
1812
- [S.ABOUT.BUILD_TIMESTAMP]: "01/03/2025 08:18 PM EST"
1807
+ [S.ABOUT.VERSION]: "5.19.4",
1808
+ [S.ABOUT.BUILD_TIMESTAMP]: "01/04/2025 10:55 AM EST"
1813
1809
  })
1814
1810
  }
1815
1811
  ) }),
@@ -1901,7 +1897,7 @@ const se = "panel", ue = "messagebox", Fo = ({
1901
1897
  dispatch: r,
1902
1898
  onOpenChange: a
1903
1899
  }) => {
1904
- var N;
1900
+ var x;
1905
1901
  const { user: n, getAccessToken: s } = Q(), i = q(null), c = q({
1906
1902
  id: 0,
1907
1903
  timestamp: "",
@@ -1935,7 +1931,7 @@ const se = "panel", ue = "messagebox", Fo = ({
1935
1931
  }, b = async () => {
1936
1932
  const m = c.current;
1937
1933
  try {
1938
- const C = await $({
1934
+ const N = await $({
1939
1935
  accessToken: await s(),
1940
1936
  type: V.DELETE_CHAT,
1941
1937
  params: {
@@ -1947,18 +1943,18 @@ const se = "panel", ue = "messagebox", Fo = ({
1947
1943
  truncateSize: 100
1948
1944
  }
1949
1945
  });
1950
- C.status === 200 && t({ data: C.data });
1946
+ N.status === 200 && t({ data: N.data });
1951
1947
  } catch {
1952
1948
  }
1953
- }, x = lr((m) => {
1949
+ }, C = lr((m) => {
1954
1950
  m[0].isIntersecting && f((E) => E + De);
1955
1951
  }, []);
1956
1952
  return Z(() => {
1957
1953
  const m = {
1958
1954
  // root: null,
1959
1955
  rootMargin: "20px"
1960
- }, C = new IntersectionObserver(x, m);
1961
- i.current && C.observe(i.current);
1956
+ }, N = new IntersectionObserver(C, m);
1957
+ i.current && N.observe(i.current);
1962
1958
  }), /* @__PURE__ */ y(z, { children: [
1963
1959
  /* @__PURE__ */ y(
1964
1960
  Ot,
@@ -1982,7 +1978,7 @@ const se = "panel", ue = "messagebox", Fo = ({
1982
1978
  /* @__PURE__ */ y("li", { children: [
1983
1979
  "First message:",
1984
1980
  " ",
1985
- /* @__PURE__ */ o("span", { className: "text-lg", children: (N = c.current) == null ? void 0 : N.message })
1981
+ /* @__PURE__ */ o("span", { className: "text-lg", children: (x = c.current) == null ? void 0 : x.message })
1986
1982
  ] })
1987
1983
  ] })
1988
1984
  ]
@@ -1996,7 +1992,7 @@ const se = "panel", ue = "messagebox", Fo = ({
1996
1992
  compact: !0,
1997
1993
  wrapperClassName: "max-h-[60vh] min-h-[60vh]",
1998
1994
  children: [
1999
- /* @__PURE__ */ o(or, { children: /* @__PURE__ */ y(Ne, { children: [
1995
+ /* @__PURE__ */ o(or, { children: /* @__PURE__ */ y(xe, { children: [
2000
1996
  /* @__PURE__ */ o(B, { className: "sr-only", children: "Row" }),
2001
1997
  /* @__PURE__ */ o(
2002
1998
  ar,
@@ -2016,19 +2012,19 @@ const se = "panel", ue = "messagebox", Fo = ({
2016
2012
  /* @__PURE__ */ o(B, { className: "text-xs sm:text-sm", children: "Model" }),
2017
2013
  /* @__PURE__ */ o(B, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2018
2014
  ] }) }),
2019
- /* @__PURE__ */ o(nr, { children: e.data.slice(0, u).map((m, C) => {
2015
+ /* @__PURE__ */ o(nr, { children: e.data.slice(0, u).map((m, N) => {
2020
2016
  var E, A;
2021
2017
  return ((E = m == null ? void 0 : m.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ y(dr, { children: [
2022
- C === u - Fe && /* @__PURE__ */ o("tr", { ref: i }),
2023
- /* @__PURE__ */ y(Ne, { children: [
2024
- /* @__PURE__ */ o(B, { children: C + 1 }),
2018
+ N === u - Fe && /* @__PURE__ */ o("tr", { ref: i }),
2019
+ /* @__PURE__ */ y(xe, { children: [
2020
+ /* @__PURE__ */ o(B, { children: N + 1 }),
2025
2021
  /* @__PURE__ */ o(
2026
2022
  B,
2027
2023
  {
2028
2024
  component: "th",
2029
2025
  scope: "row",
2030
2026
  className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
2031
- children: m.timestamp
2027
+ children: m.timestamp.split(",")[0]
2032
2028
  }
2033
2029
  ),
2034
2030
  /* @__PURE__ */ o(
@@ -2088,14 +2084,14 @@ const se = "panel", ue = "messagebox", Fo = ({
2088
2084
  message: m.messages.length > 0 ? (_ = m.messages[0]) == null ? void 0 : _.content : ""
2089
2085
  }, d(!l);
2090
2086
  },
2091
- children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 }) })
2087
+ children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Nr, { size: "size-3", monotone: !0 }) })
2092
2088
  }
2093
2089
  )
2094
2090
  ] })
2095
2091
  ] })
2096
- ] }, `${S.HISTORY.TITLE}-${m.id}-${C}`) : null;
2092
+ ] }, `${S.HISTORY.TITLE}-${m.id}-${N}`) : null;
2097
2093
  }) }),
2098
- /* @__PURE__ */ o(sr, { children: /* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(B, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: ge(
2094
+ /* @__PURE__ */ o(sr, { children: /* @__PURE__ */ o(xe, { children: /* @__PURE__ */ o(B, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: ge(
2099
2095
  `${e.data.length} chat`,
2100
2096
  e.data.length
2101
2097
  ) }) }) }) })
@@ -2140,14 +2136,14 @@ const se = "panel", ue = "messagebox", Fo = ({
2140
2136
  data: [],
2141
2137
  sortedDirection: l.sortDirection
2142
2138
  }), v = async (b) => {
2143
- const x = await a(), N = await Je({
2139
+ const C = await a(), x = await Je({
2144
2140
  searchString: b,
2145
2141
  username: n == null ? void 0 : n.username,
2146
- accessToken: x,
2142
+ accessToken: C,
2147
2143
  direction: l.sortDirection
2148
2144
  });
2149
2145
  p({
2150
- data: N,
2146
+ data: x,
2151
2147
  sortedDirection: l.sortDirection
2152
2148
  }), u(b), d({
2153
2149
  type: jt,
@@ -2161,23 +2157,23 @@ const se = "panel", ue = "messagebox", Fo = ({
2161
2157
  return We(() => {
2162
2158
  i.current || (async () => {
2163
2159
  i.current = !0;
2164
- const b = await a(), x = await Je({
2160
+ const b = await a(), C = await Je({
2165
2161
  searchString: l.searchString,
2166
2162
  username: n == null ? void 0 : n.username,
2167
2163
  accessToken: b,
2168
2164
  direction: l.sortDirection
2169
2165
  });
2170
2166
  p({
2171
- data: x,
2167
+ data: C,
2172
2168
  sortedDirection: l.sortDirection
2173
2169
  });
2174
2170
  })();
2175
2171
  }), We(() => {
2176
2172
  if (l.sortDirection !== f.sortedDirection) {
2177
- const b = [...f.data].sort((x, N) => {
2173
+ const b = [...f.data].sort((C, x) => {
2178
2174
  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;
2175
+ const m = new Date(C[l.sortedCell]).getTime(), N = new Date(x[l.sortedCell]).getTime();
2176
+ return l.sortDirection === W.ASC ? m - N : N - m;
2181
2177
  }
2182
2178
  return 0;
2183
2179
  });
@@ -2440,11 +2436,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2440
2436
  label: p,
2441
2437
  content: v,
2442
2438
  enabled: f
2443
- }, x = k.findIndex((N) => N.slot === u);
2444
- return x === -1 ? {
2439
+ }, C = k.findIndex((x) => x.slot === u);
2440
+ return C === -1 ? {
2445
2441
  ...h,
2446
2442
  tags: [...k, { ...b, slot: u }]
2447
- } : (k[x] = b, {
2443
+ } : (k[C] = b, {
2448
2444
  ...h,
2449
2445
  tags: [...k]
2450
2446
  });
@@ -2620,12 +2616,12 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2620
2616
  loadingLocation: !0
2621
2617
  }));
2622
2618
  try {
2623
- const m = Date.now(), C = await tr(), E = await $({
2619
+ const m = Date.now(), N = await tr(), E = await $({
2624
2620
  accessToken: await a(),
2625
2621
  type: V.GET_LOCATION,
2626
2622
  params: {
2627
- latitude: C.latitude,
2628
- longitude: C.longitude
2623
+ latitude: N.latitude,
2624
+ longitude: N.longitude
2629
2625
  }
2630
2626
  }), _ = Date.now() - m;
2631
2627
  if (_ < 2e3 && await new Promise((T) => setTimeout(T, 2e3 - _)), E.status === 200) {
@@ -2646,16 +2642,16 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2646
2642
  } catch {
2647
2643
  }
2648
2644
  }, b = (m) => {
2649
- l((C) => ({
2650
- ...C,
2645
+ l((N) => ({
2646
+ ...N,
2651
2647
  engine: m ? ne : X
2652
2648
  }));
2653
- }, x = (m) => {
2654
- l((C) => ({
2655
- ...C,
2649
+ }, C = (m) => {
2650
+ l((N) => ({
2651
+ ...N,
2656
2652
  engine: m ? X : ne
2657
2653
  }));
2658
- }, N = () => {
2654
+ }, x = () => {
2659
2655
  i(!s);
2660
2656
  };
2661
2657
  return Z(() => {
@@ -2678,8 +2674,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2678
2674
  user: n.username
2679
2675
  }
2680
2676
  });
2681
- m.status === 200 && l((C) => ({
2682
- ...C,
2677
+ m.status === 200 && l((N) => ({
2678
+ ...N,
2683
2679
  loaded: !0,
2684
2680
  instructions: m.data.instructions || "",
2685
2681
  location: m.data.location || "",
@@ -2754,7 +2750,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2754
2750
  noBorder: !0,
2755
2751
  label: X,
2756
2752
  name: X,
2757
- onChange: x,
2753
+ onChange: C,
2758
2754
  checked: c.engine === X
2759
2755
  }
2760
2756
  ),
@@ -2788,9 +2784,9 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2788
2784
  {
2789
2785
  className: "mt-2",
2790
2786
  size: "small",
2791
- onClick: N,
2787
+ onClick: x,
2792
2788
  labelLeft: "Edit Custom Tags",
2793
- children: /* @__PURE__ */ o(Nr, { size: "size-3", monotone: !0 })
2789
+ children: /* @__PURE__ */ o(xr, { size: "size-3", monotone: !0 })
2794
2790
  }
2795
2791
  )
2796
2792
  ]
@@ -2818,8 +2814,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2818
2814
  label: "Custom Instructions",
2819
2815
  value: c.instructions,
2820
2816
  onChange: (m) => {
2821
- l((C) => ({
2822
- ...C,
2817
+ l((N) => ({
2818
+ ...N,
2823
2819
  loaded: !0,
2824
2820
  instructions: m.target.value
2825
2821
  }));
@@ -2845,8 +2841,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2845
2841
  label: "Location",
2846
2842
  value: c.location,
2847
2843
  onChange: (m) => {
2848
- l((C) => ({
2849
- ...C,
2844
+ l((N) => ({
2845
+ ...N,
2850
2846
  loaded: !0,
2851
2847
  location: m.target.value
2852
2848
  }));
@@ -2875,9 +2871,9 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2875
2871
  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
2872
  key: ce + tt,
2877
2873
  initialValue: !1
2878
- }), { logout: b, getAccessToken: x, user: N } = Q(), m = () => {
2874
+ }), { logout: b, getAccessToken: C, user: x } = Q(), m = () => {
2879
2875
  i(!s);
2880
- }, C = () => {
2876
+ }, N = () => {
2881
2877
  l(!c);
2882
2878
  }, E = () => {
2883
2879
  u(!d);
@@ -2928,10 +2924,10 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2928
2924
  if (T)
2929
2925
  try {
2930
2926
  await $({
2931
- accessToken: await x(),
2927
+ accessToken: await C(),
2932
2928
  type: V.SET_USER_PREFERENCES,
2933
2929
  params: {
2934
- user: N == null ? void 0 : N.username,
2930
+ user: x == null ? void 0 : x.username,
2935
2931
  engine: T
2936
2932
  }
2937
2933
  }), t({
@@ -2970,7 +2966,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2970
2966
  j,
2971
2967
  {
2972
2968
  label: "Settings",
2973
- onClick: C,
2969
+ onClick: N,
2974
2970
  icon: /* @__PURE__ */ o(Rr, {})
2975
2971
  }
2976
2972
  ),
@@ -2997,7 +2993,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
2997
2993
  {
2998
2994
  label: "Log out",
2999
2995
  onClick: _,
3000
- icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(xr, { monotone: !0 }) })
2996
+ icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(Cr, { monotone: !0 }) })
3001
2997
  }
3002
2998
  )
3003
2999
  ] })