@versini/sassysaint 8.76.0 → 8.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/chunks/{AboutChangelog.0kKcS_nT.js → AboutChangelog.tVLL6MtY.js} +10 -9
  2. package/dist/chunks/{AboutEntry.pKgicvGA.js → AboutEntry.D9MonPwL.js} +11 -11
  3. package/dist/chunks/App.CusyBC2e.js +9011 -0
  4. package/dist/chunks/{Chart.DD1RkG8X.js → Chart.bKur3H71.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.K55U7Bno.js → ChatBubbleAssistant.CEZZn7AD.js} +25 -23
  6. package/dist/chunks/ChatBubbleUser.BYLIgaHX.js +131 -0
  7. package/dist/chunks/ChatHistoryTable.D9mUtUwJ.js +237 -0
  8. package/dist/chunks/HistoryEntry.DarYFRIp.js +316 -0
  9. package/dist/chunks/{ProfileEntry.Bb-kLfDX.js → ProfileEntry.C_Y--pVY.js} +26 -26
  10. package/dist/chunks/{SettingsEntry.DrmBVh-w.js → SettingsEntry.DffchAfB.js} +39 -39
  11. package/dist/chunks/Table.DBfFG7qO.js +359 -0
  12. package/dist/chunks/{UsageEntry.O3YdUF30.js → UsageEntry.C73mIvmD.js} +19 -19
  13. package/dist/chunks/{UserMemoriesPanel.Dl5GlyBr.js → UserMemoriesPanel.DXx_9ifJ.js} +184 -210
  14. package/dist/chunks/index.AVBqcs3f.js +266 -0
  15. package/dist/chunks/{index.DUl-LwyU.js → index.B4-jvDi6.js} +1 -1
  16. package/dist/chunks/{index.DEKgWsou.js → index.BVMzTtBw.js} +1 -1
  17. package/dist/chunks/index.BcYESdDV.js +7894 -0
  18. package/dist/chunks/{index.DGkW9g6n.js → index.ClJfV5zs.js} +3 -3
  19. package/dist/chunks/{index.BeIiCAAq.js → index.Hv_qeE7S.js} +2 -2
  20. package/dist/chunks/{index.B9mUNJfd.js → index.Ly8CrT48.js} +1 -1
  21. package/dist/chunks/index.bx7cnejn.js +153 -0
  22. package/dist/chunks/{useMarkdown.Bf7wGKkC.js → useMarkdown.KipSXqDZ.js} +2004 -2130
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +2 -2
  26. package/package.json +5 -5
  27. package/dist/chunks/App.CtFpHv2O.js +0 -10007
  28. package/dist/chunks/ChatBubbleUser.DsX56Kxx.js +0 -128
  29. package/dist/chunks/ChatHistoryTable.BvEUTjiq.js +0 -288
  30. package/dist/chunks/HistoryEntry.BSOPWYO2.js +0 -333
  31. package/dist/chunks/Table.BbIvEnBz.js +0 -456
  32. package/dist/chunks/index.BNusLsEn.js +0 -357
  33. package/dist/chunks/index.Czv_1MTM.js +0 -7203
  34. package/dist/chunks/index.icjUE8II.js +0 -249
@@ -1,51 +1,51 @@
1
1
  import { jsxs as s, jsx as t, Fragment as A } from "react/jsx-runtime";
2
- import { n as Pe, useEntitlements as Be, useUserPreferences as Ge, C as ce, LOCAL_STORAGE_OLED_MODE as Ue, LOCAL_STORAGE_FULL_SCREEN as Fe, canEvaluateModels as Ve, H as We, getCacheInfo as $e, isServiceWorkerEnabled as ze, SETTINGS_TITLE as He, S as p, CARDS as r, b as je, C$1 as R, PROMPTS_DESCRIPTION as Ye, L as qe, j as ie, applyOledMode as de, getCurrentGeoLocation as Ke, graphQLRequest as me, handleServiceWorkerToggle as Qe, SERVICE_TYPES as ue } from "./index.Czv_1MTM.js";
3
- import { AppContext as Je, useCapability as he, E as pe, oe as Xe, G as l, APP_SET_OLED_MODE as Ee, APP_SET_FULL_SCREEN as Se } from "./App.CtFpHv2O.js";
4
- import { Re as Ne } from "./index.BNusLsEn.js";
2
+ import { n as Pe, useEntitlements as Be, useUserPreferences as Ue, C as ce, useLocalStorage as ie, LOCAL_STORAGE_OLED_MODE as Ge, LOCAL_STORAGE_FULL_SCREEN as Fe, canEvaluateModels as Ve, H as We, getCacheInfo as $e, isServiceWorkerEnabled as ze, SETTINGS_TITLE as He, Card as p, CARDS as r, b as je, Button as x, PROMPTS_DESCRIPTION as Ye, L as qe, j as de, applyOledMode as me, getCurrentGeoLocation as Ke, graphQLRequest as ue, handleServiceWorkerToggle as Qe, SERVICE_TYPES as he } from "./index.BcYESdDV.js";
3
+ import { AppContext as Je, useCapability as pe, Panel as Xe, Toggle as l, APP_SET_OLED_MODE as Ee, APP_SET_FULL_SCREEN as Se } from "./App.CusyBC2e.js";
4
+ import { TextArea as Ne } from "./index.AVBqcs3f.js";
5
5
  import { useContext as Ze, useState as n, useMemo as et, useCallback as tt, useEffect as ge } from "react";
6
6
  const lt = ({
7
7
  open: fe,
8
- onOpenChange: x
8
+ onOpenChange: R
9
9
  }) => {
10
10
  const { getAccessToken: y, user: P } = Pe(), { allowedModels: k, status: B } = Be(), { dispatch: g } = Ze(Je), {
11
11
  data: o,
12
12
  isSuccess: Te,
13
- refetch: G
14
- } = Ge({
13
+ refetch: U
14
+ } = Ue({
15
15
  user: P?.username,
16
16
  getAccessToken: y
17
- }), [U, f] = n({
17
+ }), [G, f] = n({
18
18
  loadingLocation: !1
19
19
  }), [w, F] = n({
20
20
  prompts: []
21
- }), [V, W] = n(""), [$, T] = n(""), [z, H] = n(!1), [j, Y] = n(!1), [C, q] = n(!1), [I, K] = n(!1), [Q, J] = n(!1), [D, X] = n(!1), [E, Z] = n(null), [ee, te] = n(!1), [oe, se] = n(!1), ae = he(ce.TOOL.MEMORIES), ne = he(ce.ADDON.REASONING), [i, Ce] = pe({
22
- key: Ue,
21
+ }), [V, W] = n(""), [$, T] = n(""), [z, H] = n(!1), [j, Y] = n(!1), [C, q] = n(!1), [I, K] = n(!1), [Q, J] = n(!1), [L, X] = n(!1), [E, Z] = n(null), [ee, te] = n(!1), [oe, se] = n(!1), ae = pe(ce.TOOL.MEMORIES), ne = pe(ce.ADDON.REASONING), [i, Ce] = ie({
22
+ key: Ge,
23
23
  initialValue: !1
24
- }), [m, Ie] = pe({
24
+ }), [m, Ie] = ie({
25
25
  key: Fe,
26
26
  initialValue: !1
27
- }), [u, L] = n(!1), [S, _] = n(!1), be = et(() => Ve(k, B) ? We(k) : !1, [k, B]), ye = (e) => {
27
+ }), [u, D] = n(!1), [S, _] = n(!1), be = et(() => Ve(k, B) ? We(k) : !1, [k, B]), ye = (e) => {
28
28
  se(e);
29
29
  }, ke = (e) => {
30
30
  H(e);
31
31
  }, we = (e) => {
32
32
  ae && Y(e);
33
- }, De = (e) => {
34
- K(e);
35
33
  }, Le = (e) => {
34
+ K(e);
35
+ }, De = (e) => {
36
36
  ne && J(e);
37
37
  }, _e = (e) => {
38
38
  X(e);
39
39
  }, Me = (e) => {
40
- L(e);
40
+ D(e);
41
41
  }, Oe = (e) => {
42
42
  _(e);
43
43
  }, ve = async (e) => {
44
44
  e.preventDefault();
45
45
  try {
46
- await me({
46
+ await ue({
47
47
  accessToken: await y(),
48
- type: ue.SET_USER_PREFERENCES,
48
+ type: he.SET_USER_PREFERENCES,
49
49
  params: {
50
50
  user: P?.username,
51
51
  instructions: V,
@@ -56,21 +56,21 @@ const lt = ({
56
56
  * model preference so the user relies solely on provider defaults.
57
57
  * Empty string signals to backend to use provider's default model.
58
58
  */
59
- model: D && o?.model || "",
59
+ model: L && o?.model || "",
60
60
  tags: w.prompts,
61
61
  sendOnEnter: z,
62
62
  useMemory: j,
63
63
  showDetails: oe,
64
64
  showReasoningButton: Q,
65
- useNestedModelSelection: D
65
+ useNestedModelSelection: L
66
66
  }
67
- }), I !== C && (await Qe(I), q(I)), u !== i && (Ce(u), de(u), g({
67
+ }), I !== C && (await Qe(I), q(I)), u !== i && (Ce(u), me(u), g({
68
68
  type: Ee,
69
69
  payload: { oledMode: u }
70
70
  })), S !== m && (Ie(S), g({
71
71
  type: Se,
72
72
  payload: { fullScreen: S }
73
- })), G(), f({
73
+ })), U(), f({
74
74
  loadingLocation: !1
75
75
  });
76
76
  } catch {
@@ -80,32 +80,32 @@ const lt = ({
80
80
  loadingLocation: !0
81
81
  }), T("...");
82
82
  try {
83
- const e = Date.now(), a = await Ke(), b = await me({
83
+ const e = Date.now(), a = await Ke(), b = await ue({
84
84
  accessToken: await y(),
85
- type: ue.GET_LOCATION,
85
+ type: he.GET_LOCATION,
86
86
  params: {
87
87
  latitude: a.latitude,
88
88
  longitude: a.longitude
89
89
  }
90
90
  }), h = Date.now() - e;
91
- h < 2e3 && await new Promise((xe) => setTimeout(xe, 2e3 - h));
92
- const { city: d, state: c, country: N, displayName: v } = b.data, Re = d && c && N ? `${d}, ${c}, ${N}` : v;
91
+ h < 2e3 && await new Promise((Re) => setTimeout(Re, 2e3 - h));
92
+ const { city: d, state: c, country: N, displayName: v } = b.data, xe = d && c && N ? `${d}, ${c}, ${N}` : v;
93
93
  f({
94
94
  loadingLocation: !1
95
- }), T(Re);
95
+ }), T(xe);
96
96
  } catch {
97
97
  f({
98
98
  loadingLocation: !1
99
99
  });
100
100
  }
101
101
  }, re = () => {
102
- u !== i && (L(i), de(i), g({
102
+ u !== i && (D(i), me(i), g({
103
103
  type: Ee,
104
104
  payload: { oledMode: i }
105
105
  })), S !== m && (_(m), g({
106
106
  type: Se,
107
107
  payload: { fullScreen: m }
108
- })), G(), x(!1);
108
+ })), U(), R(!1);
109
109
  }, M = ({
110
110
  enabled: e = !1,
111
111
  privateChat: a = !1,
@@ -144,7 +144,7 @@ const lt = ({
144
144
  return;
145
145
  o.instructions && W(o.instructions), o.location && T(o.location), o.tags && F({ prompts: o.tags }), o.sendOnEnter !== void 0 && H(o.sendOnEnter), o.useMemory !== void 0 && Y(o.useMemory), o.showDetails !== void 0 && se(o.showDetails), o.showReasoningButton !== void 0 && J(o.showReasoningButton), o.useNestedModelSelection !== void 0 && X(o.useNestedModelSelection);
146
146
  const e = ze();
147
- q(e), K(e), L(i), _(m);
147
+ q(e), K(e), D(i), _(m);
148
148
  }, [o, i, m]), ge(() => {
149
149
  C ? le() : Z(null);
150
150
  }, [C, le]), Te ? /* @__PURE__ */ s(
@@ -162,8 +162,8 @@ const lt = ({
162
162
  alignHorizontal: "flex-end",
163
163
  className: "pb-8 sm:pb-0",
164
164
  children: [
165
- /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(
166
- R,
165
+ /* @__PURE__ */ t(de, { children: /* @__PURE__ */ t(
166
+ x,
167
167
  {
168
168
  mode: "dark",
169
169
  variant: "secondary",
@@ -173,13 +173,13 @@ const lt = ({
173
173
  children: "Cancel"
174
174
  }
175
175
  ) }),
176
- /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(
177
- R,
176
+ /* @__PURE__ */ t(de, { children: /* @__PURE__ */ t(
177
+ x,
178
178
  {
179
179
  mode: "dark",
180
180
  focusMode: "light",
181
181
  onClick: async (e) => {
182
- x(!1), await ve(e);
182
+ R(!1), await ve(e);
183
183
  },
184
184
  children: "Save"
185
185
  }
@@ -292,15 +292,15 @@ const lt = ({
292
292
  }
293
293
  ),
294
294
  /* @__PURE__ */ t(
295
- R,
295
+ x,
296
296
  {
297
297
  className: "mt-2",
298
298
  size: "small",
299
299
  noBorder: !0,
300
300
  variant: "secondary",
301
- disabled: U.loadingLocation,
301
+ disabled: G.loadingLocation,
302
302
  onClick: Ae,
303
- children: U.loadingLocation ? "Detecting..." : "Auto-detect"
303
+ children: G.loadingLocation ? "Detecting..." : "Auto-detect"
304
304
  }
305
305
  )
306
306
  ]
@@ -404,7 +404,7 @@ const lt = ({
404
404
  className: "mt-2",
405
405
  label: "Show Reasoning Button",
406
406
  name: "show-reasoning-button",
407
- onChange: Le,
407
+ onChange: De,
408
408
  checked: Q
409
409
  }
410
410
  )
@@ -420,7 +420,7 @@ const lt = ({
420
420
  label: "Enable Model Selection",
421
421
  name: "use-nested-model-selection",
422
422
  onChange: _e,
423
- checked: D
423
+ checked: L
424
424
  }
425
425
  )
426
426
  ] }),
@@ -459,7 +459,7 @@ const lt = ({
459
459
  className: "mt-2",
460
460
  label: "Enable Assets Caching",
461
461
  name: "enable-service-worker",
462
- onChange: De,
462
+ onChange: Le,
463
463
  checked: I
464
464
  }
465
465
  ),
@@ -0,0 +1,359 @@
1
+ import { jsx as l, jsxs as y } from "react/jsx-runtime";
2
+ import { ButtonSort_private as f } from "./index.BcYESdDV.js";
3
+ import o from "clsx";
4
+ import v, { useContext as b } from "react";
5
+ import { e as k } from "./App.CusyBC2e.js";
6
+ /*!
7
+ @versini/ui-icons v4.15.1
8
+ © 2025 gizmette.com
9
+ */
10
+ try {
11
+ window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
12
+ version: "4.15.1",
13
+ buildTime: "11/03/2025 07:21 PM EST",
14
+ homepage: "https://github.com/aversini/ui-icons",
15
+ license: "MIT"
16
+ });
17
+ } catch {
18
+ }
19
+ /*!
20
+ @versini/ui-svgicon v4.3.0
21
+ © 2025 gizmette.com
22
+ */
23
+ try {
24
+ window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
25
+ version: "4.3.0",
26
+ buildTime: "11/03/2025 07:21 PM EST",
27
+ homepage: "https://github.com/aversini/ui-icons",
28
+ license: "MIT"
29
+ });
30
+ } catch {
31
+ }
32
+ const N = ({ children: e, fill: a, viewBox: t, className: s, defaultViewBox: r, size: d, title: n, semantic: i = !1, ...c }) => {
33
+ const m = o(d, s);
34
+ return /* @__PURE__ */ y("svg", {
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ className: m,
37
+ viewBox: t || r,
38
+ fill: a || "currentColor",
39
+ role: "img",
40
+ "aria-hidden": !i,
41
+ focusable: !1,
42
+ ...c,
43
+ children: [
44
+ n && i && /* @__PURE__ */ l("title", {
45
+ children: n
46
+ }),
47
+ e
48
+ ]
49
+ });
50
+ }, C = ({ className: e, viewBox: a, title: t, monotone: s, ...r }) => /* @__PURE__ */ y(N, {
51
+ defaultViewBox: "0 0 576 512",
52
+ size: "size-5",
53
+ viewBox: a,
54
+ className: e,
55
+ title: t || "Sort",
56
+ ...r,
57
+ children: [
58
+ /* @__PURE__ */ l("path", {
59
+ d: "M297.4 137.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.3-41.4V448c0 17.7 14.3 32 32 32s32-14.3 32-32V141.3l41.4 41.4c12.5 12.5 32.8 12.5 45.3 0 6.2-6.2 9.4-14.4 9.4-22.6s-3.1-16.4-9.4-22.6l-96-96c-6.3-6.4-14.5-9.5-22.7-9.5s-16.4 3.1-22.6 9.4z",
60
+ opacity: s ? "1" : "0.4"
61
+ }),
62
+ /* @__PURE__ */ l("path", {
63
+ d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z"
64
+ })
65
+ ]
66
+ }), I = ({ className: e, viewBox: a, title: t, monotone: s, ...r }) => /* @__PURE__ */ y(N, {
67
+ defaultViewBox: "0 0 576 512",
68
+ size: "size-5",
69
+ viewBox: a,
70
+ className: e,
71
+ title: t || "Sort Down",
72
+ ...r,
73
+ children: [
74
+ /* @__PURE__ */ l("path", {
75
+ d: "M288 64c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32",
76
+ opacity: s ? "1" : "0.4"
77
+ }),
78
+ /* @__PURE__ */ l("path", {
79
+ d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4"
80
+ })
81
+ ]
82
+ }), S = ({ className: e, viewBox: a, title: t, monotone: s, ...r }) => /* @__PURE__ */ y(N, {
83
+ defaultViewBox: "0 0 576 512",
84
+ size: "size-5",
85
+ viewBox: a,
86
+ className: e,
87
+ title: t || "Sort Up",
88
+ ...r,
89
+ children: [
90
+ /* @__PURE__ */ l("path", {
91
+ d: "M288 64c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32s-14.3 32-32 32h-32c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32h-96c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h160c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32m0 128c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H320c-17.7 0-32-14.3-32-32",
92
+ opacity: s ? "1" : "0.4"
93
+ }),
94
+ /* @__PURE__ */ l("path", {
95
+ d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V146.3l-32.4 35.3c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32"
96
+ })
97
+ ]
98
+ }), p = v.createContext({
99
+ mode: "light",
100
+ cellWrapper: "thead",
101
+ stickyHeader: !1,
102
+ stickyFooter: !1,
103
+ compact: !1
104
+ }), x = "thead", u = "tfoot", _ = "tbody", V = ({
105
+ mode: e,
106
+ className: a,
107
+ wrapperClassName: t,
108
+ stickyHeader: s,
109
+ stickyFooter: r
110
+ }) => ({
111
+ wrapper: o(
112
+ "not-prose relative w-full rounded-lg shadow-md",
113
+ {
114
+ "overflow-x-auto": !s && !r,
115
+ "overflow-y-scroll": s || r,
116
+ "bg-surface-darker": e === "dark" || e === "system",
117
+ "bg-surface-light": e === "light" || e === "alt-system",
118
+ "dark:bg-surface-light": e === "system",
119
+ "dark:bg-surface-darker": e === "alt-system",
120
+ "text-copy-light": e === "dark",
121
+ "text-copy-dark": e === "light",
122
+ "text-copy-light dark:text-copy-dark": e === "system",
123
+ "text-copy-dark dark:text-copy-light": e === "alt-system"
124
+ },
125
+ t
126
+ ),
127
+ table: o("my-0 w-full text-left text-sm", a, {
128
+ "text-copy-light": e === "dark",
129
+ "text-copy-dark": e === "light",
130
+ "text-copy-light dark:text-copy-dark": e === "system",
131
+ "text-copy-dark dark:text-copy-light": e === "alt-system"
132
+ }),
133
+ caption: o("py-2 text-sm font-bold", {
134
+ "text-copy-light": e === "dark",
135
+ "text-copy-dark": e === "light",
136
+ "text-copy-light dark:text-copy-dark": e === "system",
137
+ "text-copy-dark dark:text-copy-light": e === "alt-system"
138
+ })
139
+ }), z = ({
140
+ className: e,
141
+ stickyHeader: a,
142
+ mode: t
143
+ }) => o(
144
+ {
145
+ "sticky top-0 z-10": a,
146
+ "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "dark",
147
+ "shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && t === "system",
148
+ "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": a && t === "light",
149
+ "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": a && t === "alt-system"
150
+ },
151
+ e
152
+ ), B = ({
153
+ className: e,
154
+ stickyFooter: a,
155
+ mode: t
156
+ }) => o(
157
+ {
158
+ "sticky bottom-0 z-10": a,
159
+ "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "dark",
160
+ "shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && t === "system",
161
+ "shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": a && t === "light",
162
+ "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": a && t === "alt-system"
163
+ },
164
+ e
165
+ ), H = ({
166
+ mode: e,
167
+ className: a,
168
+ cellWrapper: t
169
+ }) => t === x || t === u ? o(
170
+ {
171
+ "bg-table-head-dark": e === "dark" || e === "system",
172
+ "bg-table-head-light": e === "light" || e === "alt-system",
173
+ "dark:bg-table-head-light": e === "system",
174
+ "dark:bg-table-head-dark": e === "alt-system"
175
+ },
176
+ a
177
+ ) : o(
178
+ "border-b last:border-0",
179
+ {
180
+ "border-table-dark": e === "dark" || e === "system",
181
+ "odd:bg-table-dark-odd even:bg-table-dark-even": t === _ && e === "dark",
182
+ "border-table-light": e === "light" || e === "alt-system",
183
+ "odd:bg-table-light-odd even:bg-table-light-even": t === _ && e === "light",
184
+ "dark:border-table-light": e === "system",
185
+ "odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === _ && e === "system",
186
+ "dark:border-table-dark": e === "alt-system",
187
+ "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === _ && e === "alt-system"
188
+ },
189
+ a
190
+ ), M = ({
191
+ cellWrapper: e,
192
+ className: a,
193
+ compact: t,
194
+ mode: s,
195
+ align: r
196
+ }) => ({
197
+ alignClasses: o({
198
+ "flex justify-start text-left": r === "left",
199
+ "flex justify-center text-center": r === "center",
200
+ "flex justify-end text-right": r === "right"
201
+ }),
202
+ mainClasses: o(
203
+ {
204
+ "text-copy-light": s === "dark" || s === "system",
205
+ "text-copy-dark": s === "light" || s === "alt-system",
206
+ "dark:text-copy-dark": s === "system",
207
+ "dark:text-copy-light": s === "alt-system",
208
+ "px-4 py-3": !t && (e === x || e === u),
209
+ "p-4": !t && e === _,
210
+ "px-2 py-1.5": t
211
+ },
212
+ a
213
+ )
214
+ }), W = ({
215
+ buttonClassName: e
216
+ }) => o("rounded-none text-sm", e), U = ({
217
+ children: e,
218
+ mode: a = "system",
219
+ caption: t,
220
+ compact: s,
221
+ summary: r,
222
+ className: d,
223
+ wrapperClassName: n,
224
+ maxHeight: i,
225
+ stickyHeader: c,
226
+ stickyFooter: m,
227
+ ...h
228
+ }) => {
229
+ const g = V({
230
+ mode: a,
231
+ className: d,
232
+ wrapperClassName: n,
233
+ stickyHeader: c,
234
+ stickyFooter: m
235
+ });
236
+ return /* @__PURE__ */ l(
237
+ p.Provider,
238
+ {
239
+ value: { mode: a, stickyHeader: c, stickyFooter: m, compact: s },
240
+ children: /* @__PURE__ */ l(
241
+ "div",
242
+ {
243
+ className: g.wrapper,
244
+ ...i && {
245
+ style: { maxHeight: i }
246
+ },
247
+ children: /* @__PURE__ */ y("table", { className: g.table, summary: r, ...h, children: [
248
+ t && /* @__PURE__ */ l("caption", { className: g.caption, children: t }),
249
+ e
250
+ ] })
251
+ }
252
+ )
253
+ }
254
+ );
255
+ }, O = ({
256
+ children: e,
257
+ className: a,
258
+ ...t
259
+ }) => {
260
+ const s = b(p);
261
+ s.cellWrapper = x;
262
+ const r = z({
263
+ className: a,
264
+ mode: s.mode,
265
+ stickyHeader: s.stickyHeader
266
+ });
267
+ return /* @__PURE__ */ l("thead", { className: r, ...t, children: e });
268
+ }, G = ({
269
+ children: e,
270
+ className: a,
271
+ ...t
272
+ }) => {
273
+ const s = b(p);
274
+ s.cellWrapper = u;
275
+ const r = B({
276
+ className: a,
277
+ mode: s.mode,
278
+ stickyFooter: s.stickyFooter
279
+ });
280
+ return /* @__PURE__ */ l("tfoot", { className: r, ...t, children: e });
281
+ }, L = ({ children: e, ...a }) => {
282
+ const t = b(p);
283
+ return t.cellWrapper = _, /* @__PURE__ */ l("tbody", { ...a, children: e });
284
+ }, P = ({
285
+ children: e,
286
+ className: a,
287
+ ...t
288
+ }) => {
289
+ const s = b(p), r = H({
290
+ mode: s.mode,
291
+ cellWrapper: s.cellWrapper,
292
+ className: a
293
+ });
294
+ return /* @__PURE__ */ l("tr", { className: r, ...t, children: e });
295
+ }, E = ({
296
+ children: e,
297
+ component: a,
298
+ className: t,
299
+ align: s,
300
+ ...r
301
+ }) => {
302
+ const d = b(p), n = a || (d.cellWrapper === x ? "th" : "td"), { mainClasses: i, alignClasses: c } = M({
303
+ cellWrapper: d.cellWrapper,
304
+ className: t,
305
+ mode: d.mode,
306
+ compact: d.compact,
307
+ align: s
308
+ });
309
+ return s ? /* @__PURE__ */ l(n, { className: i, ...r, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(n, { className: i, ...r, children: e });
310
+ }, A = ({
311
+ align: e,
312
+ children: a,
313
+ buttonClassName: t,
314
+ className: s,
315
+ component: r,
316
+ focusMode: d = "alt-system",
317
+ mode: n = "alt-system",
318
+ onClick: i,
319
+ sortDirection: c,
320
+ sortedCell: m,
321
+ cellId: h,
322
+ ...g
323
+ }) => {
324
+ const w = W({ buttonClassName: t });
325
+ return /* @__PURE__ */ l(
326
+ E,
327
+ {
328
+ component: r,
329
+ className: s,
330
+ role: "columnheader",
331
+ "aria-sort": c === k.ASC && m === h ? "ascending" : c === k.DESC && m === h ? "descending" : "other",
332
+ ...g,
333
+ children: /* @__PURE__ */ l(
334
+ f,
335
+ {
336
+ active: m === h,
337
+ className: w,
338
+ onClick: i,
339
+ align: e,
340
+ noBorder: !0,
341
+ focusMode: d,
342
+ mode: n,
343
+ fullWidth: !0,
344
+ labelRight: a,
345
+ children: c === k.ASC && m === h ? /* @__PURE__ */ l(S, { className: "size-4", monotone: !0 }) : c === k.DESC && m === h ? /* @__PURE__ */ l(I, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(C, { className: "size-4", monotone: !0 })
346
+ }
347
+ )
348
+ }
349
+ );
350
+ };
351
+ export {
352
+ G as D,
353
+ A as F,
354
+ P as G,
355
+ L as H,
356
+ E as M,
357
+ U as W,
358
+ O as j
359
+ };
@@ -1,31 +1,31 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as C, C$1 as i, pluralize as h } from "./index.Czv_1MTM.js";
3
- import { oe as H } from "./App.CtFpHv2O.js";
4
- import { useState as A, Suspense as K, lazy as j } from "react";
2
+ import { n as f, useUniqueId as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, Card as g, renderDataAsList as P, CARDS as a, L as p, j as A, Button as i, pluralize as m } from "./index.BcYESdDV.js";
3
+ import { Panel as H } from "./App.CusyBC2e.js";
4
+ import { useState as C, Suspense as K, lazy as j } from "react";
5
5
  const s = [0, 3, 6, 9], n = {
6
6
  TOKEN: "token",
7
7
  MODEL: "model"
8
8
  }, w = j(() => import(
9
9
  /* webpackChunkName: "LazyChart" */
10
- "./Chart.DD1RkG8X.js"
10
+ "./Chart.bKur3H71.js"
11
11
  )), R = ({
12
12
  open: k,
13
13
  onOpenChange: E
14
14
  }) => {
15
- const { getAccessToken: u, user: T } = f(), N = v(), { data: t, isSuccess: x } = _({
15
+ const { getAccessToken: h, user: T } = f(), N = v(), { data: t, isSuccess: x } = _({
16
16
  user: T?.username,
17
- getAccessToken: u
17
+ getAccessToken: h
18
18
  }), { data: r, isSuccess: M } = z({
19
19
  user: T?.username,
20
- getAccessToken: u
21
- }), O = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [c, S] = A(O), [o, I] = A(n.MODEL), U = (d) => {
20
+ getAccessToken: h
21
+ }), O = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [c, I] = C(O), [o, S] = C(n.MODEL), U = (d) => {
22
22
  d.preventDefault();
23
- const m = (s.indexOf(c) + 1) % s.length;
24
- S(s[m]);
23
+ const u = (s.indexOf(c) + 1) % s.length;
24
+ I(s[u]);
25
25
  }, D = (d) => {
26
26
  d.preventDefault();
27
- const m = (s.indexOf(c) - 1 + s.length) % s.length;
28
- S(s[m]);
27
+ const u = (s.indexOf(c) - 1 + s.length) % s.length;
28
+ I(s[u]);
29
29
  };
30
30
  return /* @__PURE__ */ l(
31
31
  H,
@@ -45,12 +45,12 @@ const s = [0, 3, 6, 9], n = {
45
45
  children: x ? P(
46
46
  N,
47
47
  {
48
- [h(a.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
49
- [h(
48
+ [m(a.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
49
+ [m(
50
50
  a.MAIN_STATISTICS.TOTAL_PRIVATE,
51
51
  t.privateChats
52
52
  )]: t.privateChats,
53
- [h(
53
+ [m(
54
54
  a.MAIN_STATISTICS.TOTAL_DELETED,
55
55
  t.deletedChats
56
56
  )]: t.deletedChats
@@ -66,11 +66,11 @@ const s = [0, 3, 6, 9], n = {
66
66
  className: "prose-dark dark:prose-lighter mt-4 min-h-[555px]",
67
67
  noBorder: !0,
68
68
  children: M && r && r.tokenUsage && r.tokenUsage.series && r.tokenUsage.series.length ? /* @__PURE__ */ l(K, { fallback: /* @__PURE__ */ e("div", {}), children: [
69
- /* @__PURE__ */ e(p, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ l(C, { children: [
69
+ /* @__PURE__ */ e(p, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ l(A, { children: [
70
70
  /* @__PURE__ */ e(
71
71
  i,
72
72
  {
73
- onClick: () => I(n.MODEL),
73
+ onClick: () => S(n.MODEL),
74
74
  size: "small",
75
75
  noBorder: !0,
76
76
  mode: o === n.MODEL ? "dark" : "light",
@@ -81,7 +81,7 @@ const s = [0, 3, 6, 9], n = {
81
81
  /* @__PURE__ */ e(
82
82
  i,
83
83
  {
84
- onClick: () => I(n.TOKEN),
84
+ onClick: () => S(n.TOKEN),
85
85
  size: "small",
86
86
  noBorder: !0,
87
87
  mode: o === n.TOKEN ? "dark" : "light",
@@ -97,7 +97,7 @@ const s = [0, 3, 6, 9], n = {
97
97
  viewMode: o
98
98
  }
99
99
  ),
100
- /* @__PURE__ */ e(p, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ l(C, { children: [
100
+ /* @__PURE__ */ e(p, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ l(A, { children: [
101
101
  /* @__PURE__ */ e(
102
102
  i,
103
103
  {