@versini/sassysaint 1.0.10 → 1.0.11

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,15 +1,15 @@
1
- import { jsxs as S, jsx as a, Fragment as me } from "react/jsx-runtime";
2
- import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, Wr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.Ctkx8F84.js";
3
- import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.D_0bF6Yy.js";
1
+ import { jsxs as S, jsx as n, Fragment as me } from "react/jsx-runtime";
2
+ import { O as Be, s as Ve, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, Wr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.eFSALEqy.js";
3
+ import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.CsBq2ZMB.js";
4
4
  import pr, { useState as R, useEffect as E, useRef as x, useLayoutEffect as D, useContext as Z, lazy as mr, Suspense as ce, useReducer as ie, useCallback as gr } from "react";
5
- import y from "clsx";
5
+ import g from "clsx";
6
6
  const yr = ({
7
7
  className: e,
8
8
  viewBox: r,
9
9
  spacing: o,
10
10
  title: t,
11
11
  monotone: s,
12
- ...n
12
+ ...a
13
13
  }) => /* @__PURE__ */ S(
14
14
  Ce,
15
15
  {
@@ -19,16 +19,16 @@ const yr = ({
19
19
  className: e,
20
20
  spacing: o,
21
21
  title: t || "Copied",
22
- ...n,
22
+ ...a,
23
23
  children: [
24
- /* @__PURE__ */ a(
24
+ /* @__PURE__ */ n(
25
25
  "path",
26
26
  {
27
27
  opacity: "0.4",
28
28
  d: "M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM337 209L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"
29
29
  }
30
30
  ),
31
- /* @__PURE__ */ a("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
31
+ /* @__PURE__ */ n("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
32
32
  ]
33
33
  }
34
34
  ), fr = ({
@@ -37,8 +37,8 @@ const yr = ({
37
37
  spacing: o,
38
38
  title: t,
39
39
  monotone: s,
40
- ...n
41
- }) => /* @__PURE__ */ a(
40
+ ...a
41
+ }) => /* @__PURE__ */ n(
42
42
  Ce,
43
43
  {
44
44
  defaultViewBox: "0 0 512 512",
@@ -47,18 +47,18 @@ const yr = ({
47
47
  className: e,
48
48
  spacing: o,
49
49
  title: t || "Copy",
50
- ...n,
51
- children: /* @__PURE__ */ a("path", { d: "M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z" })
50
+ ...a,
51
+ children: /* @__PURE__ */ n("path", { d: "M64 464H288c8.8 0 16-7.2 16-16V384h48v64c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h64v48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM224 304H448c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H224c-8.8 0-16 7.2-16 16V288c0 8.8 7.2 16 16 16zm-64-16V64c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V288c0 35.3-28.7 64-64 64H224c-35.3 0-64-28.7-64-64z" })
52
52
  }
53
- ), hr = () => "p-4 sm:max-w-md md:max-w-2xl", xr = ({ kind: e }) => y({
53
+ ), hr = () => "p-4 sm:max-w-md md:max-w-2xl", xr = ({ kind: e }) => g({
54
54
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
55
55
  "bg-surface-accent": e === "right"
56
- }), br = ({ kind: e }) => y(
56
+ }), br = ({ kind: e }) => g(
57
57
  "prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
58
58
  {
59
59
  "text-copy-lighter": e === "right"
60
60
  }
61
- ), kr = ({ kind: e }) => y("rounded-b-xl", {
61
+ ), kr = ({ kind: e }) => g("rounded-b-xl", {
62
62
  "rounded-tr-xl": e === "left",
63
63
  "rounded-tl-xl": e === "right"
64
64
  }), Cr = ({
@@ -66,28 +66,28 @@ const yr = ({
66
66
  className: r,
67
67
  spacing: o
68
68
  }) => {
69
- const t = y(
69
+ const t = g(
70
70
  r,
71
- Be,
71
+ Ve,
72
72
  "flex items-start",
73
73
  De(o),
74
74
  {
75
75
  "flex-row-reverse": e === "right"
76
76
  }
77
- ), s = y(
77
+ ), s = g(
78
78
  "flex flex-col empty:hidden",
79
79
  hr(),
80
80
  br({ kind: e }),
81
81
  xr({ kind: e }),
82
82
  kr({ kind: e })
83
- ), n = "pr-2 pt-1 text-end text-xs text-copy-light", l = y("flex flex-col-reverse gap-2 sm:flex-row", {
83
+ ), a = "pr-2 pt-1 text-end text-xs text-copy-light", l = g("flex flex-col-reverse gap-2 sm:flex-row", {
84
84
  "ml-2": e === "left",
85
85
  "mr-2": e === "right"
86
86
  });
87
87
  return {
88
88
  wrapper: t,
89
89
  main: s,
90
- footer: n,
90
+ footer: a,
91
91
  copyButton: l
92
92
  };
93
93
  }, Tr = ({
@@ -96,43 +96,43 @@ const yr = ({
96
96
  className: o,
97
97
  footer: t,
98
98
  rawFooter: s,
99
- copyToClipboard: n,
99
+ copyToClipboard: a,
100
100
  copyToClipboardFocusMode: l = "system",
101
- copyToClipboardMode: c = "system",
102
- spacing: g
101
+ copyToClipboardMode: h = "system",
102
+ spacing: c
103
103
  }) => {
104
- const [u, i] = R(!1), h = Cr({ kind: r, className: o, spacing: g }), b = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), k = () => {
105
- i(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
104
+ const [y, i] = R(!1), p = Cr({ kind: r, className: o, spacing: c }), b = !!a && (typeof a == "function" || typeof a == "string" || typeof e == "string"), T = () => {
105
+ i(!0), typeof a == "function" ? a(e) : typeof a == "string" ? navigator.clipboard.writeText(a) : typeof e == "string" && navigator.clipboard.writeText(e);
106
106
  };
107
107
  return E(() => {
108
- let p;
109
- return u && (p = window.setTimeout(() => {
108
+ let d;
109
+ return y && (d = window.setTimeout(() => {
110
110
  i(!1);
111
111
  }, 3e3)), () => {
112
- clearTimeout(p);
112
+ clearTimeout(d);
113
113
  };
114
- }, [u]), /* @__PURE__ */ S("div", { className: h.wrapper, children: [
114
+ }, [y]), /* @__PURE__ */ S("div", { className: p.wrapper, children: [
115
115
  /* @__PURE__ */ S("div", { children: [
116
- /* @__PURE__ */ a("div", { className: h.main, children: e }),
117
- t && Object.keys(t).map((p) => t[p] ? /* @__PURE__ */ a("div", { className: "prose-p:m-0", children: /* @__PURE__ */ S("p", { className: h.footer, children: [
118
- p,
116
+ /* @__PURE__ */ n("div", { className: p.main, children: e }),
117
+ t && Object.keys(t).map((d) => t[d] ? /* @__PURE__ */ n("div", { className: "prose-p:m-0", children: /* @__PURE__ */ S("p", { className: p.footer, children: [
118
+ d,
119
119
  ": ",
120
- t[p]
121
- ] }) }, `-${p}`) : null),
120
+ t[d]
121
+ ] }) }, `-${d}`) : null),
122
122
  s && s
123
123
  ] }),
124
- b && /* @__PURE__ */ a("div", { className: h.copyButton, children: /* @__PURE__ */ a(
125
- Ve,
124
+ b && /* @__PURE__ */ n("div", { className: p.copyButton, children: /* @__PURE__ */ n(
125
+ Be,
126
126
  {
127
127
  noBorder: !0,
128
128
  noBackground: !0,
129
129
  size: "small",
130
- mode: c,
130
+ mode: h,
131
131
  focusMode: l,
132
- label: u ? "Copied to clipboard" : "Copy to clipboard",
133
- onClick: k,
134
- disabled: u,
135
- children: u ? /* @__PURE__ */ a(yr, { className: "size-3" }) : /* @__PURE__ */ a(fr, { className: "size-3" })
132
+ label: y ? "Copied to clipboard" : "Copy to clipboard",
133
+ onClick: T,
134
+ disabled: y,
135
+ children: y ? /* @__PURE__ */ n(yr, { className: "size-3" }) : /* @__PURE__ */ n(fr, { className: "size-3" })
136
136
  }
137
137
  ) })
138
138
  ] });
@@ -144,23 +144,23 @@ function vr({
144
144
  onChange: t = () => {
145
145
  }
146
146
  }) {
147
- const [s, n] = R(
147
+ const [s, a] = R(
148
148
  r !== void 0 ? r : o
149
149
  );
150
150
  return e !== void 0 ? [e, t, !0] : [s, (l) => {
151
- n(l), t == null || t(l);
151
+ a(l), t == null || t(l);
152
152
  }, !1];
153
153
  }
154
154
  const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Ar = ({
155
155
  mode: e
156
- }) => y({
156
+ }) => g({
157
157
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
158
158
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
159
159
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
160
160
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
161
161
  }), Er = ({
162
162
  focusMode: e
163
- }) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
163
+ }) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
164
164
  "focus:outline-focus-dark": e === "dark",
165
165
  "focus:outline-focus-light": e === "light",
166
166
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -168,7 +168,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
168
168
  }), Nr = ({
169
169
  noBorder: e,
170
170
  error: r
171
- }) => y("border-2", {
171
+ }) => g("border-2", {
172
172
  "border-border-dark": !e && !r,
173
173
  "focus:border-border-dark": !e && r,
174
174
  "border-border-error-dark": !e && r,
@@ -182,16 +182,16 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
182
182
  if (r)
183
183
  return "";
184
184
  if (e)
185
- return y("absolute px-2 cursor-not-allowed opacity-50 font-medium");
185
+ return g("absolute px-2 cursor-not-allowed opacity-50 font-medium");
186
186
  if (!o)
187
- return y("absolute px-2 cursor-text font-medium", {
187
+ return g("absolute px-2 cursor-text font-medium", {
188
188
  "text-copy-medium": t === "dark",
189
189
  "text-copy-dark": t === "light",
190
190
  "text-copy-dark dark:text-copy-medium": t === "system",
191
191
  "text-copy-medium dark:text-copy-dark": t === "alt-system"
192
192
  });
193
193
  if (o)
194
- return y("absolute px-2 cursor-text font-medium", {
194
+ return g("absolute px-2 cursor-text font-medium", {
195
195
  "text-copy-medium": t === "dark",
196
196
  "text-copy-error-dark": t === "light",
197
197
  "text-copy-error-dark dark:text-copy-error-light": t === "system",
@@ -206,19 +206,19 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
206
206
  if (r)
207
207
  return "";
208
208
  if (t)
209
- return y(
209
+ return g(
210
210
  W,
211
211
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
212
212
  );
213
213
  if (!e)
214
- return y(W, "absolute px-2 font-medium", {
214
+ return g(W, "absolute px-2 font-medium", {
215
215
  "text-copy-medium": o === "dark",
216
216
  "text-copy-dark": o === "light",
217
217
  "text-copy-dark dark:text-copy-medium": o === "system",
218
218
  "text-copy-medium dark:text-copy-dark": o === "alt-system"
219
219
  });
220
220
  if (e)
221
- return y(W, "absolute px-2 font-medium", {
221
+ return g(W, "absolute px-2 font-medium", {
222
222
  "text-copy-error-light": o === "dark",
223
223
  "text-copy-error-dark": o === "light",
224
224
  "text-copy-error-dark dark:text-copy-error-light": o === "system",
@@ -230,47 +230,47 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
230
230
  raw: o,
231
231
  focusMode: t,
232
232
  disabled: s,
233
- noBorder: n,
233
+ noBorder: a,
234
234
  error: l,
235
- spacing: c,
236
- mode: g
235
+ spacing: h,
236
+ mode: c
237
237
  }) => {
238
- const u = o ? e : y(
238
+ const y = o ? e : g(
239
239
  "relative flex w-full flex-col justify-center",
240
240
  Fe,
241
241
  e,
242
- Pe(c)
243
- ), i = o ? y(r) : y(
242
+ Pe(h)
243
+ ), i = o ? g(r) : g(
244
244
  ge,
245
245
  r,
246
246
  Sr(),
247
- Ar({ mode: g }),
247
+ Ar({ mode: c }),
248
248
  Er({ focusMode: t }),
249
249
  Nr({
250
- noBorder: n,
250
+ noBorder: a,
251
251
  error: l
252
252
  }),
253
253
  {
254
254
  "disabled:cursor-not-allowed disabled:opacity-50": s
255
255
  }
256
- ), h = o ? void 0 : "sr-only", b = Or({
256
+ ), p = o ? void 0 : "sr-only", b = Or({
257
257
  disabled: s,
258
258
  raw: o,
259
259
  error: l,
260
- mode: g
261
- }), k = wr({
260
+ mode: c
261
+ }), T = wr({
262
262
  error: l,
263
263
  raw: o,
264
- mode: g,
264
+ mode: c,
265
265
  disabled: s
266
- }), p = o ? void 0 : y(Ge, "absolute");
266
+ }), d = o ? void 0 : g(Ge, "absolute");
267
267
  return {
268
- wrapper: u,
268
+ wrapper: y,
269
269
  textArea: i,
270
- accessibleLabel: h,
270
+ accessibleLabel: p,
271
271
  visibleLabel: b,
272
- helperText: k,
273
- rightElement: p
272
+ helperText: T,
273
+ rightElement: d
274
274
  };
275
275
  }, Rr = ({
276
276
  scrollHeight: e,
@@ -278,14 +278,14 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
278
278
  currentLabelOffset: o = 0,
279
279
  currentHelperTextOffset: t = 0
280
280
  }) => {
281
- let s, n;
281
+ let s, a;
282
282
  if (e > 0 && e !== r) {
283
- const l = e - r, c = Math.abs(l / 24);
284
- s = o + -1 * Math.sign(l) * (12 * c), n = t + Math.sign(l) * (12 * c);
283
+ const l = e - r, h = Math.abs(l / 24);
284
+ s = o + -1 * Math.sign(l) * (12 * h), a = t + Math.sign(l) * (12 * h);
285
285
  }
286
286
  return {
287
287
  labelOffset: s,
288
- helperTextOffset: n,
288
+ helperTextOffset: a,
289
289
  scrollHeight: e
290
290
  };
291
291
  }, Te = pr.forwardRef(
@@ -295,67 +295,67 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
295
295
  label: o,
296
296
  error: t = !1,
297
297
  raw: s = !1,
298
- className: n,
298
+ className: a,
299
299
  textAreaClassName: l,
300
- mode: c = "system",
301
- focusMode: g = "system",
302
- value: u,
300
+ mode: h = "system",
301
+ focusMode: c = "system",
302
+ value: y,
303
303
  defaultValue: i,
304
- disabled: h = !1,
304
+ disabled: p = !1,
305
305
  noBorder: b = !1,
306
- labelId: k,
307
- helperText: p = "",
308
- helperTextOnFocus: T = !1,
309
- rightElement: m,
310
- onChange: d,
311
- onFocus: N,
312
- onBlur: V,
306
+ labelId: T,
307
+ helperText: d = "",
308
+ helperTextOnFocus: N = !1,
309
+ rightElement: C,
310
+ onChange: m,
311
+ onFocus: u,
312
+ onBlur: B,
313
313
  spacing: O,
314
314
  ...Se
315
315
  }, Ae) => {
316
- const v = x(null), Ee = $e([Ae, v]), B = x(null), F = x(80), re = x(-25), M = x(null), te = x(30), P = x(null), I = ze({ id: e, prefix: `${ge}-` }), [Ne, Oe] = R(0), [we, oe] = R(
317
- !!(!T && p)
318
- ), Le = `${r} error, ${p}`, w = Lr({
319
- className: n,
316
+ const v = x(null), Ee = $e([Ae, v]), V = x(null), F = x(80), re = x(-25), M = x(null), te = x(30), P = x(null), I = ze({ id: e, prefix: `${ge}-` }), [Ne, Oe] = R(0), [we, oe] = R(
317
+ !!(!N && d)
318
+ ), Le = `${r} error, ${d}`, w = Lr({
319
+ className: a,
320
320
  textAreaClassName: l,
321
321
  error: t,
322
322
  raw: s,
323
- focusMode: g,
324
- disabled: h,
323
+ focusMode: c,
324
+ disabled: p,
325
325
  noBorder: b,
326
326
  spacing: O,
327
- mode: c
327
+ mode: h
328
328
  }), [A, Re] = vr({
329
- value: u,
329
+ value: y,
330
330
  defaultValue: i,
331
- onChange: (C) => {
332
- d && d({
331
+ onChange: (k) => {
332
+ m && m({
333
333
  target: {
334
- value: C
334
+ value: k
335
335
  }
336
336
  });
337
337
  }
338
- }), Me = (C) => {
339
- Re(C.target.value);
340
- }, Ie = (C) => {
341
- T && p && oe(!0), N && N(C);
342
- }, _e = (C) => {
343
- T && p && !A && oe(!1), V && V(C);
338
+ }), Me = (k) => {
339
+ Re(k.target.value);
340
+ }, Ie = (k) => {
341
+ N && d && oe(!0), u && u(k);
342
+ }, _e = (k) => {
343
+ N && d && !A && oe(!1), B && B(k);
344
344
  };
345
345
  return D(() => {
346
- !s && m && B.current && B.current.offsetWidth > 0 && Oe(B.current.offsetWidth + 18 + 10);
347
- }, [m, s]), D(() => {
346
+ !s && C && V.current && V.current.offsetWidth > 0 && Oe(V.current.offsetWidth + 18 + 10);
347
+ }, [C, s]), D(() => {
348
348
  s || v && v.current && A !== void 0 && (v.current.style.height = "inherit", v.current.style.height = v.current.scrollHeight + "px");
349
349
  }, [A, s]), D(() => {
350
350
  s || setTimeout(() => {
351
- var C;
352
- (C = M == null ? void 0 : M.current) == null || C.style.setProperty(
351
+ var k;
352
+ (k = M == null ? void 0 : M.current) == null || k.style.setProperty(
353
353
  "--av-text-area-wrapper-transition",
354
354
  A ? "none" : "all 0.2s ease-out"
355
355
  );
356
356
  }, 0);
357
357
  }, [A, s]), D(() => {
358
- var C, se;
358
+ var k, se;
359
359
  if (!s && v && v.current && A !== void 0) {
360
360
  const { labelOffset: G, helperTextOffset: j, scrollHeight: He } = Rr({
361
361
  scrollHeight: v.current.scrollHeight,
@@ -363,7 +363,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
363
363
  currentLabelOffset: re.current,
364
364
  currentHelperTextOffset: te.current
365
365
  });
366
- G && (re.current = G, (C = M == null ? void 0 : M.current) == null || C.style.setProperty(
366
+ G && (re.current = G, (k = M == null ? void 0 : M.current) == null || k.style.setProperty(
367
367
  "--av-text-area-label",
368
368
  `${G}px`
369
369
  )), j && (te.current = j, (se = P == null ? void 0 : P.current) == null || se.style.setProperty(
@@ -372,28 +372,28 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
372
372
  )), F.current = He || F.current;
373
373
  }
374
374
  }, [A, s]), /* @__PURE__ */ S("div", { className: w.wrapper, children: [
375
- /* @__PURE__ */ a(
375
+ /* @__PURE__ */ n(
376
376
  "label",
377
377
  {
378
378
  htmlFor: I,
379
- id: k,
379
+ id: T,
380
380
  className: w.accessibleLabel,
381
381
  children: o
382
382
  }
383
383
  ),
384
- /* @__PURE__ */ a(
384
+ /* @__PURE__ */ n(
385
385
  "textarea",
386
386
  {
387
387
  ref: Ee,
388
388
  id: I,
389
389
  name: r,
390
- disabled: h,
390
+ disabled: p,
391
391
  placeholder: s ? void 0 : " ",
392
392
  className: w.textArea,
393
393
  rows: 1,
394
- ...p && { "aria-describedby": `${I}-helper` },
394
+ ...d && { "aria-describedby": `${I}-helper` },
395
395
  ...t && { "aria-invalid": "true" },
396
- ...m && !s && { style: { paddingRight: Ne } },
396
+ ...C && !s && { style: { paddingRight: Ne } },
397
397
  value: A,
398
398
  onChange: Me,
399
399
  onFocus: Ie,
@@ -401,7 +401,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
401
401
  ...Se
402
402
  }
403
403
  ),
404
- !s && /* @__PURE__ */ a(
404
+ !s && /* @__PURE__ */ n(
405
405
  "label",
406
406
  {
407
407
  ref: M,
@@ -411,24 +411,24 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
411
411
  children: o
412
412
  }
413
413
  ),
414
- we && /* @__PURE__ */ a(
414
+ we && /* @__PURE__ */ n(
415
415
  "div",
416
416
  {
417
417
  ref: P,
418
418
  id: `${I}-helper`,
419
419
  className: w.helperText,
420
- children: p
420
+ children: d
421
421
  }
422
422
  ),
423
- m && /* @__PURE__ */ a(
423
+ C && /* @__PURE__ */ n(
424
424
  "div",
425
425
  {
426
- ref: B,
426
+ ref: V,
427
427
  className: w.rightElement,
428
- children: m
428
+ children: C
429
429
  }
430
430
  ),
431
- t && p && /* @__PURE__ */ a(Ue, { politeness: "polite", clearAnnouncementDelay: 500, children: Le })
431
+ t && d && /* @__PURE__ */ n(Ue, { politeness: "polite", clearAnnouncementDelay: 500, children: Le })
432
432
  ] });
433
433
  }
434
434
  );
@@ -456,38 +456,38 @@ function ee(e, r, o) {
456
456
  var t = e.random || (e.rng || _r)();
457
457
  return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Mr(t);
458
458
  }
459
- const Vr = () => {
460
- const { dispatch: e, state: r } = Z(U), o = "mt-2 flex justify-center rounded-md", t = x(null), s = x(!1), n = (l) => {
459
+ const Br = () => {
460
+ const { dispatch: e, state: r } = Z(U), o = "mt-2 flex justify-center rounded-md", t = x(null), s = x(!1), a = (l) => {
461
461
  l.preventDefault(), e({
462
462
  type: he
463
463
  });
464
464
  };
465
465
  return E(() => {
466
466
  (r == null ? void 0 : r.streaming) === !0 && !s.current && t.current && (s.current = !0, t.current.focus()), (r == null ? void 0 : r.streaming) === !1 && (s.current = !1);
467
- }, [r]), ye(L, r) ? /* @__PURE__ */ a("div", { className: o, children: /* @__PURE__ */ a(
467
+ }, [r]), ye(L, r) ? /* @__PURE__ */ n("div", { className: o, children: /* @__PURE__ */ n(
468
468
  fe,
469
469
  {
470
470
  ref: t,
471
471
  noBorder: !0,
472
- onClick: n,
472
+ onClick: a,
473
473
  mode: "dark",
474
474
  focusMode: "light",
475
475
  children: r != null && r.streaming ? je : We
476
476
  }
477
477
  ) }) : null;
478
- }, ue = mr(() => import("./LazyMessageAssistant.D3A035f8.js").then((e) => e.LazyMessageAssistant)), Br = () => {
478
+ }, ue = mr(() => import("./LazyMessageAssistant.IDa3mLgE.js").then((e) => e.LazyMessageAssistant)), Vr = () => {
479
479
  const { state: e } = Z(U);
480
480
  return /* @__PURE__ */ S(me, { children: [
481
481
  e && e.messages.length > 0 && e.messages.map((r, o) => {
482
- const { role: t, content: s, name: n, processingTime: l } = r.message;
483
- return (t === L || t === X) && s ? /* @__PURE__ */ a(ce, { fallback: /* @__PURE__ */ a("span", {}), children: /* @__PURE__ */ a(
482
+ const { role: t, content: s, name: a, processingTime: l } = r.message;
483
+ return (t === L || t === X) && s ? /* @__PURE__ */ n(ce, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(
484
484
  ue,
485
485
  {
486
- name: n,
486
+ name: a,
487
487
  processingTime: l,
488
488
  children: s
489
489
  }
490
- ) }, `${o}-${t}`) : t === Q && s ? /* @__PURE__ */ a(
490
+ ) }, `${o}-${t}`) : t === Q && s ? /* @__PURE__ */ n(
491
491
  Tr,
492
492
  {
493
493
  kind: "right",
@@ -498,7 +498,7 @@ const Vr = () => {
498
498
  `${o}-${t}`
499
499
  ) : null;
500
500
  }),
501
- ye(Q, e) && /* @__PURE__ */ a(ce, { fallback: /* @__PURE__ */ a("span", {}), children: /* @__PURE__ */ a(ue, { loading: !0 }) })
501
+ ye(Q, e) && /* @__PURE__ */ n(ce, { fallback: /* @__PURE__ */ n("span", {}), children: /* @__PURE__ */ n(ue, { loading: !0 }) })
502
502
  ] });
503
503
  }, z = (e, r) => {
504
504
  e({
@@ -518,14 +518,14 @@ const Vr = () => {
518
518
  }
519
519
  });
520
520
  }, Dr = () => {
521
- const { state: e, dispatch: r } = Z(U), [o, t] = R(""), { getAccessToken: s, user: n } = K(), l = x(!1), c = x(null), g = x(
521
+ const { state: e, dispatch: r } = Z(U), [o, t] = R(""), { getAccessToken: s, user: a } = K(), l = x(!1), h = x(null), c = x(
522
522
  null
523
523
  );
524
524
  E(() => {
525
525
  (async () => {
526
- var h;
526
+ var p;
527
527
  if (!e || e.messages.length === 0) {
528
- (h = g == null ? void 0 : g.current) == null || h.cancel();
528
+ (p = c == null ? void 0 : c.current) == null || p.cancel();
529
529
  return;
530
530
  }
531
531
  const i = e.messages[e.messages.length - 1];
@@ -537,27 +537,27 @@ const Vr = () => {
537
537
  data: {
538
538
  messages: e.messages,
539
539
  model: xe,
540
- user: (n == null ? void 0 : n.username) || "",
540
+ user: (a == null ? void 0 : a.username) || "",
541
541
  id: e.id,
542
542
  location: e.location,
543
543
  usage: e.usage
544
544
  }
545
545
  });
546
546
  if (b && b.ok) {
547
- const k = ee();
548
- g.current = b.body.getReader();
549
- const p = new TextDecoder();
547
+ const T = ee();
548
+ c.current = b.body.getReader();
549
+ const d = new TextDecoder();
550
550
  for (; ; ) {
551
551
  z(r, !0);
552
- const { done: T, value: m } = await g.current.read();
553
- if (T) {
552
+ const { done: N, value: C } = await c.current.read();
553
+ if (N) {
554
554
  z(r, !1);
555
555
  break;
556
556
  }
557
- const d = p.decode(m, { stream: !0 }), N = d.indexOf(ae);
558
- if (N !== -1) {
559
- const V = d.substring(0, N), O = JSON.parse(
560
- d.substring(N + ae.length)
557
+ const m = d.decode(C, { stream: !0 }), u = m.indexOf(ae);
558
+ if (u !== -1) {
559
+ const B = m.substring(0, u), O = JSON.parse(
560
+ m.substring(u + ae.length)
561
561
  );
562
562
  r({
563
563
  type: be,
@@ -569,9 +569,9 @@ const Vr = () => {
569
569
  type: H,
570
570
  payload: {
571
571
  message: {
572
- content: V,
572
+ content: B,
573
573
  role: L,
574
- messageId: k,
574
+ messageId: T,
575
575
  processingTime: O.processingTime,
576
576
  name: O.name
577
577
  }
@@ -583,9 +583,9 @@ const Vr = () => {
583
583
  type: H,
584
584
  payload: {
585
585
  message: {
586
- content: d,
586
+ content: m,
587
587
  role: L,
588
- messageId: k
588
+ messageId: T
589
589
  }
590
590
  }
591
591
  });
@@ -597,7 +597,7 @@ const Vr = () => {
597
597
  }
598
598
  })();
599
599
  }, [e == null ? void 0 : e.messages]);
600
- const u = async (i) => {
600
+ const y = async (i) => {
601
601
  i.preventDefault(), r({
602
602
  type: H,
603
603
  payload: {
@@ -609,13 +609,13 @@ const Vr = () => {
609
609
  }), t("");
610
610
  };
611
611
  return E(() => {
612
- (e == null ? void 0 : e.streaming) === !1 && !l.current && c.current && (l.current = !0, c.current.focus()), (e == null ? void 0 : e.streaming) === !0 && l.current === !0 && (l.current = !1);
613
- }, [e]), /* @__PURE__ */ a("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ a(
612
+ (e == null ? void 0 : e.streaming) === !1 && !l.current && h.current && (l.current = !0, h.current.focus()), (e == null ? void 0 : e.streaming) === !0 && l.current === !0 && (l.current = !1);
613
+ }, [e]), /* @__PURE__ */ n("form", { className: "mt-2", onSubmit: y, children: /* @__PURE__ */ n(
614
614
  Te,
615
615
  {
616
616
  mode: "dark",
617
617
  focusMode: "light",
618
- ref: c,
618
+ ref: h,
619
619
  name: "chat-input",
620
620
  label: Je,
621
621
  helperText: "Press ENTER to add a new line",
@@ -623,7 +623,7 @@ const Vr = () => {
623
623
  required: !0,
624
624
  value: o,
625
625
  onChange: (i) => t(i.target.value),
626
- rightElement: /* @__PURE__ */ a(
626
+ rightElement: /* @__PURE__ */ n(
627
627
  fe,
628
628
  {
629
629
  disabled: e == null ? void 0 : e.streaming,
@@ -640,11 +640,11 @@ const Vr = () => {
640
640
  const { isAuthenticated: e } = K(), r = Ke(e);
641
641
  return /* @__PURE__ */ S(me, { children: [
642
642
  /* @__PURE__ */ S("div", { className: r, children: [
643
- /* @__PURE__ */ a(Ze, {}),
644
- /* @__PURE__ */ a(Br, {})
643
+ /* @__PURE__ */ n(Ze, {}),
644
+ /* @__PURE__ */ n(Vr, {})
645
645
  ] }),
646
- /* @__PURE__ */ a(Vr, {}),
647
- /* @__PURE__ */ a(Dr, {})
646
+ /* @__PURE__ */ n(Br, {}),
647
+ /* @__PURE__ */ n(Dr, {})
648
648
  ] });
649
649
  }, zr = (e, r) => (r == null ? void 0 : r.type) === er ? {
650
650
  searchString: r.payload.searchString,
@@ -674,25 +674,25 @@ const Vr = () => {
674
674
  };
675
675
  }
676
676
  if ((r == null ? void 0 : r.type) === H) {
677
- const o = r.payload.message.role, t = r.payload.message.content, s = r.payload.message.name, n = r.payload.message.processingTime, l = r.payload.message.messageId;
677
+ const o = r.payload.message.role, t = r.payload.message.content, s = r.payload.message.name, a = r.payload.message.processingTime, l = r.payload.message.messageId;
678
678
  if (o !== "") {
679
- const c = {
679
+ const h = {
680
680
  role: o,
681
681
  content: t,
682
682
  name: s,
683
- processingTime: n,
683
+ processingTime: a,
684
684
  messageId: l
685
685
  };
686
686
  if (o === L) {
687
- const g = e.messages.findIndex(
688
- (u) => u.message.messageId === l
687
+ const c = e.messages.findIndex(
688
+ (y) => y.message.messageId === l
689
689
  );
690
- if (g !== -1) {
691
- const u = e.messages.map((i, h) => h === g ? {
690
+ if (c !== -1) {
691
+ const y = e.messages.map((i, p) => p === c ? {
692
692
  message: {
693
693
  ...i.message,
694
694
  content: `${i.message.content}${t}`,
695
- processingTime: n,
695
+ processingTime: a,
696
696
  name: s
697
697
  }
698
698
  } : i);
@@ -702,7 +702,7 @@ const Vr = () => {
702
702
  usage: e.usage,
703
703
  location: e.location,
704
704
  isComponent: e.isComponent,
705
- messages: u
705
+ messages: y
706
706
  };
707
707
  }
708
708
  }
@@ -715,7 +715,7 @@ const Vr = () => {
715
715
  messages: [
716
716
  ...e.messages,
717
717
  {
718
- message: c
718
+ message: h
719
719
  }
720
720
  ]
721
721
  };
@@ -748,31 +748,31 @@ const Vr = () => {
748
748
  } : e;
749
749
  };
750
750
  function ve({ isComponent: e = !1 }) {
751
- const r = x(!1), o = x(!1), { isAuthenticated: t, getAccessToken: s } = K(), [n] = q({
751
+ const r = x(!1), o = x(!1), t = x(!1), { isAuthenticated: s, getAccessToken: a } = K(), [l] = q({
752
752
  key: Y + nr,
753
753
  initialValue: ""
754
- }), [l] = q({
754
+ }), [h] = q({
755
755
  key: Y + lr,
756
756
  initialValue: ur.ASC
757
- }), [c, g] = q({
757
+ }), [c, y] = q({
758
758
  key: Y + cr,
759
759
  initialValue: { latitude: 0, longitude: 0, accuracy: 0 }
760
- }), [u, i] = ie(Ur, {
760
+ }), [i, p] = ie(Ur, {
761
761
  id: ee(),
762
762
  model: xe,
763
763
  usage: 0,
764
764
  messages: [],
765
765
  isComponent: e
766
- }), [h, b] = ie(zr, {
767
- searchString: n,
766
+ }), [b, T] = ie(zr, {
767
+ searchString: l,
768
768
  sortedCell: "timestamp",
769
- sortDirection: l
770
- }), [k, p] = R({
769
+ sortDirection: h
770
+ }), [d, N] = R({
771
771
  version: "",
772
772
  models: [],
773
773
  plugins: []
774
- }), T = gr(() => {
775
- i({
774
+ }), C = gr(() => {
775
+ p({
776
776
  type: _,
777
777
  payload: {
778
778
  location: {
@@ -783,78 +783,78 @@ function ve({ isComponent: e = !1 }) {
783
783
  });
784
784
  }, [c]);
785
785
  return E(() => {
786
- k.version !== "" || o.current || (async () => {
786
+ d.version !== "" || t.current || (async () => {
787
787
  try {
788
- o.current = !0;
788
+ t.current = !0;
789
789
  const m = await ne({
790
- accessToken: await s(),
790
+ accessToken: await a(),
791
791
  type: le.ABOUT
792
792
  });
793
- o.current = !1, m.status === 200 && p(m.data);
793
+ t.current = !1, m.status === 200 && N(m.data);
794
794
  } catch {
795
795
  }
796
796
  })();
797
- }, [k, s]), E(() => {
798
- t && ((!c || c.accuracy === 0) && (async () => {
797
+ }, [d, a]), E(() => {
798
+ s && (r.current || ((!c || c.accuracy === 0) && (r.current = !0, (async () => {
799
799
  const m = await or();
800
- g(m), i({
800
+ y(m), p({
801
801
  type: _,
802
802
  payload: {
803
803
  location: m
804
804
  }
805
805
  });
806
- })(), c && c.accuracy !== 0 && !u.location && i({
806
+ })()), c && c.accuracy !== 0 && !i.location && p({
807
807
  type: _,
808
808
  payload: {
809
809
  location: c
810
810
  }
811
- }));
812
- }, [t, c, g, u.location]), E(() => {
813
- !u.location || u.location.accuracy === 0 || u.location.city || r.current || (async () => {
811
+ })));
812
+ }, [s, c, y, i.location]), E(() => {
813
+ !i.location || i.location.accuracy === 0 || i.location.city || o.current || (async () => {
814
814
  var m;
815
- r.current = !0;
815
+ o.current = !0;
816
816
  try {
817
- const d = await ne({
818
- accessToken: await s(),
817
+ const u = await ne({
818
+ accessToken: await a(),
819
819
  type: le.GET_LOCATION,
820
820
  params: {
821
821
  latitude: c.latitude,
822
822
  longitude: c.longitude
823
823
  }
824
824
  });
825
- r.current = !1, d.status !== 200 || ((m = d == null ? void 0 : d.errors) == null ? void 0 : m.length) > 0 || !d.data || !d.data.city || !d.data.region || !d.data.country ? T() : i({
825
+ o.current = !1, u.status !== 200 || ((m = u == null ? void 0 : u.errors) == null ? void 0 : m.length) > 0 || !u.data || !u.data.city || !u.data.region || !u.data.country ? C() : p({
826
826
  type: _,
827
827
  payload: {
828
828
  location: {
829
829
  ...c,
830
- city: d.data.city,
831
- region: d.data.region,
832
- regionShort: d.data.regionShort,
833
- country: d.data.country,
834
- countryShort: d.data.countryShort
830
+ city: u.data.city,
831
+ region: u.data.region,
832
+ regionShort: u.data.regionShort,
833
+ country: u.data.country,
834
+ countryShort: u.data.countryShort
835
835
  }
836
836
  }
837
837
  });
838
838
  } catch {
839
- T();
839
+ C();
840
840
  }
841
841
  })();
842
- }, [u, c, s, T]), E(() => {
842
+ }, [i, c, a, C]), E(() => {
843
843
  var m;
844
844
  (m = document.getElementById("logo")) == null || m.classList.add("fadeOut"), setTimeout(() => {
845
- var d;
846
- (d = document.getElementById("root")) == null || d.classList.replace("app-hidden", "fadeIn");
845
+ var u;
846
+ (u = document.getElementById("root")) == null || u.classList.replace("app-hidden", "fadeIn");
847
847
  }, 500);
848
- }), /* @__PURE__ */ a(U.Provider, { value: { state: u, dispatch: i, serverStats: k }, children: /* @__PURE__ */ S(
848
+ }), /* @__PURE__ */ n(U.Provider, { value: { state: i, dispatch: p, serverStats: d }, children: /* @__PURE__ */ S(
849
849
  dr.Provider,
850
850
  {
851
851
  value: {
852
- state: h,
853
- dispatch: b
852
+ state: b,
853
+ dispatch: T
854
854
  },
855
855
  children: [
856
- /* @__PURE__ */ a(sr, { children: /* @__PURE__ */ a($r, {}) }),
857
- /* @__PURE__ */ a(ar, { serverStats: k })
856
+ /* @__PURE__ */ n(sr, { children: /* @__PURE__ */ n($r, {}) }),
857
+ /* @__PURE__ */ n(ar, { serverStats: d })
858
858
  ]
859
859
  }
860
860
  ) });
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { O as D, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as F, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, Wr as U, STATS as Ne, b as q, j as M, x as Z, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ke, truncate as Ye, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, G$1 as et, f$2 as tt, ACTION_LOCATION as me, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as nt, PROFILE_TITLE as rt, LOG_OUT as ue } from "./index.Ctkx8F84.js";
2
+ import { O as D, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as F, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, Wr as U, STATS as Ne, b as q, j as M, x as Z, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ke, truncate as Ye, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, G$1 as et, f$2 as tt, ACTION_LOCATION as me, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as nt, PROFILE_TITLE as rt, LOG_OUT as ue } from "./index.eFSALEqy.js";
3
3
  import * as ce from "react";
4
4
  import ot, { forwardRef as Te, useState as T, useRef as G, useContext as R, useEffect as L, Suspense as ct, lazy as it, useId as lt } from "react";
5
- import { g as dt, AppContext as j, serviceCall as se, SERVICE_TYPES as ae, HistoryContext as ye, E as te, k as v, et as mt, at as ut, lt as oe, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.D_0bF6Yy.js";
5
+ import { g as dt, AppContext as j, serviceCall as se, SERVICE_TYPES as ae, HistoryContext as ye, E as te, k as v, et as mt, at as ut, lt as oe, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.CsBq2ZMB.js";
6
6
  import k from "clsx";
7
7
  import { useFloatingTree as be, useFloatingNodeId as gt, useListItem as Se, useFloating as Ct, offset as Nt, flip as Tt, shift as yt, autoUpdate as bt, useClick as St, useRole as wt, useDismiss as kt, useListNavigation as Et, useTypeahead as xt, useInteractions as vt, useMergeRefs as we, FloatingNode as At, FloatingList as It, FloatingPortal as Ht, FloatingFocusManager as Mt, FloatingTree as Rt } from "@floating-ui/react";
8
8
  const ie = ce.createContext({
@@ -197,7 +197,7 @@ const Lt = ({ className: e, ...s }) => {
197
197
  header: "p-4 mb-0",
198
198
  close: "p-4"
199
199
  }), K = (e) => it(
200
- () => import("./index.BcV6McvW.De7qagut.js").then((s) => ({
200
+ () => import("./index.BcV6McvW.U50izDOU.js").then((s) => ({
201
201
  default: s[e]
202
202
  }))
203
203
  ), _t = K("Modal"), zt = K("ModalClose"), Bt = K("ModalContent"), Vt = K("ModalDescription"), Pt = K("ModalHeading"), Y = ({
@@ -602,8 +602,8 @@ const ns = ({ stats: e }) => {
602
602
  header: C.ABOUT.TITLE_CLIENT,
603
603
  className: "prose-dark dark:prose-lighter",
604
604
  children: F(r, {
605
- [C.ABOUT.VERSION]: "3.4.4",
606
- [C.ABOUT.BUILD_TIMESTAMP]: "08/01/2024 08:14 AM EDT"
605
+ [C.ABOUT.VERSION]: "3.4.5",
606
+ [C.ABOUT.BUILD_TIMESTAMP]: "08/01/2024 07:46 PM EDT"
607
607
  })
608
608
  }
609
609
  ) }),
@@ -1,5 +1,5 @@
1
1
  import { jsx as _i } from "react/jsx-runtime";
2
- import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.D3A035f8.js";
2
+ import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.IDa3mLgE.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
2
- import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.Ctkx8F84.js";
3
- import { AppContext as Ei, E as Ai } from "./useLocalStorage.D_0bF6Yy.js";
2
+ import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.eFSALEqy.js";
3
+ import { AppContext as Ei, E as Ai } from "./useLocalStorage.CsBq2ZMB.js";
4
4
  import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
5
- import { T as ut } from "./App.D3bDw_9b.js";
5
+ import { T as ut } from "./App.CILpzJEh.js";
6
6
  import cn from "clsx";
7
7
  const Li = ({
8
8
  spinnerRef: e,
@@ -8618,7 +8618,7 @@ function sf(e) {
8618
8618
  i.push(af(n)), o.push(Tc()), l.push(Pc(n));
8619
8619
  }
8620
8620
  const cf = Ii(
8621
- () => import("./LazyMarkdownWithExtra.B2OqwN1y.js")
8621
+ () => import("./LazyMarkdownWithExtra.BPTMdcU8.js")
8622
8622
  ), In = {
8623
8623
  MODEL: "Model",
8624
8624
  PLUGIN: "Plugin",
@@ -3,7 +3,7 @@ import y from "clsx";
3
3
  import * as c from "react";
4
4
  import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
5
5
  import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
6
- import { S as j } from "./index.Ctkx8F84.js";
6
+ import { S as j } from "./index.eFSALEqy.js";
7
7
  const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
8
8
  alert: null,
9
9
  alertdialog: null,
@@ -3709,7 +3709,7 @@ const po = "ASK! ME! ANYTHING!", pr = "Sassy Saint", go = "gizmette.com", fo = "
3709
3709
  row1: /* @__PURE__ */ v("div", { children: [
3710
3710
  pr,
3711
3711
  " v",
3712
- "3.4.4",
3712
+ "3.4.5",
3713
3713
  " - ",
3714
3714
  wo,
3715
3715
  et && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
@@ -3721,7 +3721,7 @@ const po = "ASK! ME! ANYTHING!", pr = "Sassy Saint", go = "gizmette.com", fo = "
3721
3721
  go
3722
3722
  ] })
3723
3723
  }
3724
- ), To = At(() => import("./LazyHeader.dzy1rQlY.js")), So = () => {
3724
+ ), To = At(() => import("./LazyHeader.YhIHsK0M.js")), So = () => {
3725
3725
  const { isAuthenticated: e } = Ze();
3726
3726
  return /* @__PURE__ */ v(me, { children: [
3727
3727
  e && /* @__PURE__ */ l(kt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(To, {}) }),
@@ -3832,14 +3832,14 @@ const po = "ASK! ME! ANYTHING!", pr = "Sassy Saint", go = "gizmette.com", fo = "
3832
3832
  ] }),
3833
3833
  /* @__PURE__ */ l(Eo, {})
3834
3834
  ] });
3835
- }, Io = new URL(document.location.href).searchParams, Ao = !!Io.get("debug") || !1, ko = At(() => import("./App.D3bDw_9b.js").then((e) => e.App)), _o = ({ isComponent: e }) => {
3835
+ }, Io = new URL(document.location.href).searchParams, Ao = !!Io.get("debug") || !1, ko = At(() => import("./App.CILpzJEh.js").then((e) => e.App)), _o = ({ isComponent: e }) => {
3836
3836
  const { isAuthenticated: t } = Ze();
3837
3837
  return t ? /* @__PURE__ */ l(kt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(ko, { isComponent: e }) }) : /* @__PURE__ */ l(vo, {});
3838
3838
  }, Ro = ({
3839
3839
  isComponent: e = !1,
3840
3840
  domain: t = In
3841
3841
  }) => /* @__PURE__ */ l(me, { children: /* @__PURE__ */ l(hn, { clientId: pn, domain: t, debug: Ao, children: /* @__PURE__ */ l(_o, { isComponent: e }) }) }), No = ({ domain: e }) => /* @__PURE__ */ l(Ro, { isComponent: !0, domain: e });
3842
- No.displayName = "SassySaint-3.4.4";
3842
+ No.displayName = "SassySaint-3.4.5";
3843
3843
  export {
3844
3844
  sr as A,
3845
3845
  Cs as ABOUT_TITLE,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as _, Fragment as M, jsx as l } from "react/jsx-runtime";
2
2
  import m from "clsx";
3
3
  import w, { useContext as k, useSyncExternalStore as W, useCallback as S, useEffect as P } from "react";
4
- import { A as U, i as F, f as q, S as j, MODEL_GPT4 as J } from "./index.Ctkx8F84.js";
4
+ import { A as U, i as F, f as q, S as j, MODEL_GPT4 as J } from "./index.eFSALEqy.js";
5
5
  const Q = (e) => {
6
6
  let a = "";
7
7
  if (typeof e == "number" || typeof e == "string")
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.Ctkx8F84.js";
2
+ import { SassySaint as a } from "../../chunks/index.eFSALEqy.js";
3
3
  export {
4
4
  a as SassySaint
5
5
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { SassySaint as r } from "./chunks/index.Ctkx8F84.js";
1
+ import { SassySaint as r } from "./chunks/index.eFSALEqy.js";
2
2
  /*!
3
- @sassysaint/client v3.4.4
3
+ @sassysaint/client v3.4.5
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "3.4.4",
9
- buildTime: "08/01/2024 08:14 AM EDT",
8
+ version: "3.4.5",
9
+ buildTime: "08/01/2024 07:46 PM EDT",
10
10
  license: "MIT"
11
11
  });
12
12
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "react-dom": "18.3.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@sassysaint/client": "3.4.4",
33
+ "@sassysaint/client": "3.4.5",
34
34
  "@versini/ui-styles": "1.9.3"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "e54f2bf417a44540037223027f6b57de639056ef"
44
+ "gitHead": "ef2e3518d5179f83112b0a4a5b6fe47850db5c1f"
45
45
  }