@versini/sassysaint 1.0.7 → 1.0.9

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,10 +1,10 @@
1
1
  import { jsxs as c, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { O, i$1 as Le, N as De, p as Oe, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as P, pluralize as q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as fe, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, _n as G, STATS as ge, b as W, j as M, x as Q, LOCAL_STORAGE_PREFIX as Z, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ke, truncate as Ye, ACTION_SORT as ne, LOCAL_STORAGE_SEARCH as Je, G as We, ACTION_SEARCH as Xe, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, J as et, f$2 as tt, ACTION_LOCATION as le, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as nt, PROFILE_TITLE as rt, LOG_OUT as de } from "./index.DgZgswqQ.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 $e, GPT4_MAX_TOKENS as Ge, Nr 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, j$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.t9wD3Z9D.js";
3
3
  import * as ce from "react";
4
- import ot, { forwardRef as Ce, useState as T, useRef as F, useContext as R, useEffect as L, Suspense as ct, lazy as it, useId as lt } from "react";
5
- import { g as dt, AppContext as U, serviceCall as te, SERVICE_TYPES as se, HistoryContext as Ne, E as ee, k as v, et as ut, at as mt, lt as re, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.D3_0xm5E.js";
6
- import E from "clsx";
7
- import { useFloatingTree as Te, useFloatingNodeId as gt, useListItem as ye, useFloating as Ct, offset as Nt, flip as Tt, shift as yt, autoUpdate as bt, useClick as St, useRole as wt, useDismiss as Et, useListNavigation as kt, useTypeahead as xt, useInteractions as vt, useMergeRefs as be, FloatingNode as At, FloatingList as It, FloatingPortal as Ht, FloatingFocusManager as Mt, FloatingTree as Rt } from "@floating-ui/react";
4
+ import ot, { forwardRef as Te, useState as T, useRef as $, 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.DagJSzA9.js";
6
+ import k from "clsx";
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({
9
9
  getItemProps: () => ({}),
10
10
  activeIndex: null,
@@ -14,7 +14,7 @@ const ie = ce.createContext({
14
14
  setHasFocusInside: () => {
15
15
  },
16
16
  isOpen: !1
17
- }), ue = (e) => {
17
+ }), he = (e) => {
18
18
  if (typeof e == "string")
19
19
  return e;
20
20
  if (typeof e == "function")
@@ -25,7 +25,7 @@ const ie = ce.createContext({
25
25
  return s.displayName || s.name || "Component";
26
26
  }
27
27
  return "Element";
28
- }, Se = Ce(
28
+ }, ke = Te(
29
29
  ({
30
30
  trigger: e,
31
31
  children: s,
@@ -35,44 +35,44 @@ const ie = ce.createContext({
35
35
  spacing: o,
36
36
  mode: l = "system",
37
37
  focusMode: d = "system",
38
- ...u
39
- }, f) => {
40
- const [N, m] = T(!1), [y, b] = T(!1), [S, p] = T(null), k = F([]), i = F([]), h = R(ie), g = Te(), x = gt(), z = ye(), { floatingStyles: ae, refs: Y, context: I } = Ct({
38
+ ...h
39
+ }, m) => {
40
+ const [N, u] = T(!1), [y, b] = T(!1), [S, f] = T(null), E = $([]), i = $([]), p = R(ie), g = be(), x = gt(), z = Se(), { floatingStyles: ne, refs: W, context: I } = Ct({
41
41
  nodeId: x,
42
42
  open: N,
43
43
  onOpenChange: (V) => {
44
- m(V), r == null || r(V);
44
+ u(V), r == null || r(V);
45
45
  },
46
46
  placement: n,
47
47
  strategy: "fixed",
48
48
  middleware: [Nt({ mainAxis: 10 }), Tt(), yt()],
49
49
  whileElementsMounted: bt
50
- }), J = St(I, {
50
+ }), X = St(I, {
51
51
  event: "mousedown",
52
52
  toggle: !0,
53
53
  ignoreMouse: !1
54
- }), B = wt(I, { role: "menu" }), ke = Et(I, { bubbles: !0 }), xe = kt(I, {
55
- listRef: k,
54
+ }), B = wt(I, { role: "menu" }), ve = kt(I, { bubbles: !0 }), Ae = Et(I, {
55
+ listRef: E,
56
56
  activeIndex: S,
57
57
  nested: !1,
58
- onNavigate: p,
58
+ onNavigate: f,
59
59
  loop: !0
60
- }), ve = xt(I, {
60
+ }), Ie = xt(I, {
61
61
  listRef: i,
62
- onMatch: N ? p : void 0,
62
+ onMatch: N ? f : void 0,
63
63
  activeIndex: S
64
- }), { getReferenceProps: Ae, getFloatingProps: Ie, getItemProps: He } = vt([J, B, ke, xe, ve]), Me = ue(e) === "Button" || ue(e) === "ButtonIcon", Re = ot.cloneElement(e, {
64
+ }), { getReferenceProps: He, getFloatingProps: Me, getItemProps: Re } = vt([X, B, ve, Ae, Ie]), Le = he(e) === "Button" || he(e) === "ButtonIcon", Oe = ot.cloneElement(e, {
65
65
  mode: l,
66
66
  focusMode: d,
67
67
  spacing: o,
68
- noInternalClick: Me,
68
+ noInternalClick: Le,
69
69
  "aria-label": a,
70
70
  "data-open": N ? "" : void 0,
71
71
  "data-focus-inside": y ? "" : void 0,
72
- ref: be([Y.setReference, z.ref, f]),
73
- ...Ae(
74
- h.getItemProps({
75
- ...u
72
+ ref: we([W.setReference, z.ref, m]),
73
+ ...He(
74
+ p.getItemProps({
75
+ ...h
76
76
  })
77
77
  )
78
78
  });
@@ -80,7 +80,7 @@ const ie = ce.createContext({
80
80
  if (!g)
81
81
  return;
82
82
  function V() {
83
- m(!1), r == null || r(!1);
83
+ u(!1), r == null || r(!1);
84
84
  }
85
85
  return g.events.on("click", V), () => {
86
86
  g.events.off("click", V);
@@ -88,18 +88,18 @@ const ie = ce.createContext({
88
88
  }, [g, r]), L(() => {
89
89
  N && g && g.events.emit("menuopen", { nodeId: x });
90
90
  }, [g, N, x]), /* @__PURE__ */ c(At, { id: x, children: [
91
- Re,
91
+ Oe,
92
92
  /* @__PURE__ */ t(
93
93
  ie.Provider,
94
94
  {
95
95
  value: {
96
96
  activeIndex: S,
97
- setActiveIndex: p,
98
- getItemProps: He,
97
+ setActiveIndex: f,
98
+ getItemProps: Re,
99
99
  setHasFocusInside: b,
100
100
  isOpen: N
101
101
  },
102
- children: /* @__PURE__ */ t(It, { elementsRef: k, labelsRef: i, children: N && /* @__PURE__ */ t(Ht, { children: /* @__PURE__ */ t(
102
+ children: /* @__PURE__ */ t(It, { elementsRef: E, labelsRef: i, children: N && /* @__PURE__ */ t(Ht, { children: /* @__PURE__ */ t(
103
103
  Mt,
104
104
  {
105
105
  context: I,
@@ -109,10 +109,10 @@ const ie = ce.createContext({
109
109
  children: /* @__PURE__ */ t(
110
110
  "div",
111
111
  {
112
- ref: Y.setFloating,
112
+ ref: W.setFloating,
113
113
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
114
- style: ae,
115
- ...Ie(),
114
+ style: ne,
115
+ ...Me(),
116
116
  children: s
117
117
  }
118
118
  )
@@ -122,28 +122,28 @@ const ie = ce.createContext({
122
122
  )
123
123
  ] });
124
124
  }
125
- ), we = Ce((e, s) => /* @__PURE__ */ t(Rt, { children: /* @__PURE__ */ t(Se, { ...e, ref: s }) }));
126
- we.displayName = "Menu";
127
- Se.displayName = "MenuComponent";
128
- const D = ce.forwardRef(({ label: e, disabled: s, icon: a, ...n }, r) => {
129
- const o = ce.useContext(ie), l = ye({ label: s ? null : e }), d = Te();
125
+ ), Ee = Te((e, s) => /* @__PURE__ */ t(Rt, { children: /* @__PURE__ */ t(ke, { ...e, ref: s }) }));
126
+ Ee.displayName = "Menu";
127
+ ke.displayName = "MenuComponent";
128
+ const O = ce.forwardRef(({ label: e, disabled: s, icon: a, ...n }, r) => {
129
+ const o = ce.useContext(ie), l = Se({ label: s ? null : e }), d = be();
130
130
  return /* @__PURE__ */ c(
131
131
  "button",
132
132
  {
133
133
  ...n,
134
- ref: be([l.ref, r]),
134
+ ref: we([l.ref, r]),
135
135
  role: "menuitem",
136
136
  className: "m-0 flex w-full rounded-md border border-transparent bg-none px-3 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
137
137
  tabIndex: 0,
138
138
  disabled: s,
139
139
  ...o.getItemProps({
140
- onClick(u) {
141
- var f;
142
- (f = n.onClick) == null || f.call(n, u), d == null || d.events.emit("click");
140
+ onClick(h) {
141
+ var m;
142
+ (m = n.onClick) == null || m.call(n, h), d == null || d.events.emit("click");
143
143
  },
144
- onFocus(u) {
145
- var f;
146
- (f = n.onFocus) == null || f.call(n, u), o.setHasFocusInside(!0);
144
+ onFocus(h) {
145
+ var m;
146
+ (m = n.onFocus) == null || m.call(n, h), o.setHasFocusInside(!0);
147
147
  }
148
148
  }),
149
149
  children: [
@@ -153,11 +153,11 @@ const D = ce.forwardRef(({ label: e, disabled: s, icon: a, ...n }, r) => {
153
153
  }
154
154
  );
155
155
  });
156
- D.displayName = "MenuItem";
156
+ O.displayName = "MenuItem";
157
157
  const Lt = ({ className: e, ...s }) => {
158
- const a = E(e, "my-1 border-t border-border-medium");
158
+ const a = k(e, "my-1 border-t border-border-medium");
159
159
  return /* @__PURE__ */ t("div", { className: a, ...s });
160
- }, Dt = ({
160
+ }, Ot = ({
161
161
  className: e,
162
162
  viewBox: s,
163
163
  spacing: a,
@@ -176,67 +176,69 @@ const Lt = ({ className: e, ...s }) => {
176
176
  ...o,
177
177
  children: /* @__PURE__ */ t("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z" })
178
178
  }
179
- ), X = "panel", oe = "messagebox", Ot = ({
180
- kind: e,
181
- borderMode: s
179
+ ), P = "panel", J = "messagebox", Dt = ({
180
+ className: e,
181
+ kind: s,
182
+ borderMode: a
182
183
  }) => ({
183
- main: E(
184
- "prose prose-lighter flex flex-col bg-surface-medium md:max-w-2xl",
185
- {
186
- [`${Le} h-full min-h-[95%] w-full sm:h-auto sm:min-h-[10rem] sm:w-[95%] sm:rounded-lg sm:border-2`]: e === X,
187
- [`${De} w-[95%] rounded-lg border-2 sm:w-[50%]`]: e === oe,
188
- "sm:border-border-dark": s === "dark" && e === X,
189
- "sm:border-border-accent": s === "light" && e === X,
190
- "border-border-dark": s === "dark" && e === oe,
191
- "border-border-accent": s === "light" && e === oe
192
- }
193
- ),
184
+ main: k("prose prose-lighter flex flex-col bg-surface-medium", {
185
+ [`${le} h-full min-h-[95%] sm:h-auto sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: s === P,
186
+ [`${le} w-full sm:w-[95%] md:max-w-2xl`]: s === P && !e,
187
+ [`${de} rounded-lg border-2`]: s === J,
188
+ [`${de} w-[95%] sm:w-[50%] md:max-w-2xl`]: s === J && !e,
189
+ [`${e}`]: !!e,
190
+ "sm:border-border-dark": a === "dark" && s === P,
191
+ "sm:border-border-accent": a === "light" && s === P,
192
+ "border-border-dark": a === "dark" && s === J,
193
+ "border-border-accent": a === "light" && s === J
194
+ }),
194
195
  content: "flex flex-grow flex-col py-2 sm:py-4 px-4",
195
196
  footer: "flex flex-grow flex-col p-4",
196
197
  header: "p-4 mb-0",
197
198
  close: "p-4"
198
- }), j = (e) => it(
199
- () => import("./index.DruzEDnN.6FKRzVGI.js").then((s) => ({
199
+ }), K = (e) => it(
200
+ () => import("./index.BcV6McvW.3HAbnzVE.js").then((s) => ({
200
201
  default: s[e]
201
202
  }))
202
- ), _t = j("Modal"), zt = j("ModalClose"), Bt = j("ModalContent"), Vt = j("ModalDescription"), Pt = j("ModalHeading"), K = ({
203
+ ), _t = K("Modal"), zt = K("ModalClose"), Bt = K("ModalContent"), Vt = K("ModalDescription"), Pt = K("ModalHeading"), Y = ({
203
204
  open: e,
204
205
  onOpenChange: s,
205
206
  title: a,
206
207
  children: n,
207
208
  footer: r,
208
209
  borderMode: o = "light",
209
- kind: l = X
210
+ kind: l = P,
211
+ className: d
210
212
  }) => {
211
- const d = F(""), u = Ot({ kind: l, borderMode: o });
212
- return L(() => (e && (d.current = document.title, document.title = `${a} | ${d.current}`), () => {
213
- e && (document.title = d.current);
214
- }), [a, e]), /* @__PURE__ */ t(ct, { fallback: /* @__PURE__ */ t("div", {}), children: e && /* @__PURE__ */ t(_t, { open: e, onOpenChange: s, children: /* @__PURE__ */ c(Bt, { className: u.main, children: [
213
+ const h = $(""), m = Dt({ className: d, kind: l, borderMode: o });
214
+ return L(() => (e && (h.current = document.title, document.title = `${a} | ${h.current}`), () => {
215
+ e && (document.title = h.current);
216
+ }), [a, e]), /* @__PURE__ */ t(ct, { fallback: /* @__PURE__ */ t("div", {}), children: e && /* @__PURE__ */ t(_t, { open: e, onOpenChange: s, children: /* @__PURE__ */ c(Bt, { className: m.main, children: [
215
217
  /* @__PURE__ */ c("div", { className: "flex flex-row-reverse items-center justify-between", children: [
216
218
  /* @__PURE__ */ t(
217
219
  zt,
218
220
  {
219
- className: u.close,
221
+ className: m.close,
220
222
  trigger: /* @__PURE__ */ t(
221
- O,
223
+ D,
222
224
  {
223
225
  mode: "dark",
224
226
  focusMode: "light",
225
227
  noBorder: !0,
226
228
  label: "Close",
227
- children: /* @__PURE__ */ t(Dt, {})
229
+ children: /* @__PURE__ */ t(Ot, {})
228
230
  }
229
231
  )
230
232
  }
231
233
  ),
232
- /* @__PURE__ */ t(Pt, { className: u.header, children: a })
234
+ /* @__PURE__ */ t(Pt, { className: m.header, children: a })
233
235
  ] }),
234
- /* @__PURE__ */ t(Vt, { className: u.content, children: n }),
235
- r && /* @__PURE__ */ t("div", { className: u.footer, children: r })
236
+ /* @__PURE__ */ t(Vt, { className: m.content, children: n }),
237
+ r && /* @__PURE__ */ t("div", { className: m.footer, children: r })
236
238
  ] }) }) });
237
- }, Ft = () => E("peer", "h-6", "w-11", "rounded-full"), $t = ({
239
+ }, Ft = () => k("peer", "h-6", "w-11", "rounded-full"), $t = ({
238
240
  focusMode: e
239
- }) => E(
241
+ }) => k(
240
242
  "peer-focus:outline",
241
243
  "peer-focus:outline-2",
242
244
  "peer-focus:outline-offset-2",
@@ -246,14 +248,14 @@ const Lt = ({ className: e, ...s }) => {
246
248
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
247
249
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
248
250
  }
249
- ), Gt = () => E(
251
+ ), Gt = () => k(
250
252
  "peer-checked:after:translate-x-full",
251
253
  // background color when checked
252
254
  "peer-checked:bg-violet-500",
253
255
  // knob circle and border color when checked
254
256
  "peer-checked:after:bg-white",
255
257
  "peer-checked:after:border-white"
256
- ), Ut = () => E(
258
+ ), Ut = () => k(
257
259
  "after:left-[2px]",
258
260
  "after:top-[2px]",
259
261
  "after:border",
@@ -268,7 +270,7 @@ const Lt = ({ className: e, ...s }) => {
268
270
  ), jt = ({
269
271
  mode: e,
270
272
  noBorder: s
271
- }) => E({
273
+ }) => k({
272
274
  border: !s,
273
275
  "border-border-dark bg-surface-medium": e === "light",
274
276
  "border-border-light bg-surface-darker": e === "dark",
@@ -277,23 +279,23 @@ const Lt = ({ className: e, ...s }) => {
277
279
  }), Kt = ({
278
280
  mode: e,
279
281
  labelHidden: s
280
- }) => s ? "sr-only" : E("ml-2 text-sm", {
282
+ }) => s ? "sr-only" : k("ml-2 text-sm", {
281
283
  "text-copy-dark": e === "light",
282
284
  "text-copy-lighter": e === "dark",
283
285
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
284
286
  "text-copy-dark dark:text-copy-lighter": e === "system"
285
- }), Yt = ({ spacing: e }) => E(
286
- Oe,
287
+ }), Yt = ({ spacing: e }) => k(
288
+ De,
287
289
  "relative flex cursor-pointer items-center",
288
290
  _e(e)
289
- ), Jt = ({
291
+ ), Wt = ({
290
292
  mode: e,
291
293
  focusMode: s,
292
294
  labelHidden: a,
293
295
  spacing: n,
294
296
  noBorder: r
295
297
  }) => ({
296
- toggle: E(
298
+ toggle: k(
297
299
  Ft(),
298
300
  jt({ mode: e, noBorder: r }),
299
301
  $t({ focusMode: s }),
@@ -303,7 +305,7 @@ const Lt = ({ className: e, ...s }) => {
303
305
  label: Kt({ mode: e, labelHidden: a }),
304
306
  input: "peer sr-only",
305
307
  wrapper: Yt({ spacing: n })
306
- }), Wt = ({
308
+ }), Xt = ({
307
309
  checked: e = !1,
308
310
  onChange: s,
309
311
  label: a,
@@ -312,32 +314,32 @@ const Lt = ({ className: e, ...s }) => {
312
314
  mode: o = "system",
313
315
  focusMode: l = "system",
314
316
  spacing: d,
315
- noBorder: u = !1
317
+ noBorder: h = !1
316
318
  }) => {
317
- const f = Jt({
319
+ const m = Wt({
318
320
  mode: o,
319
321
  focusMode: l,
320
322
  labelHidden: n,
321
323
  spacing: d,
322
- noBorder: u
323
- }), N = (m) => {
324
- s == null || s(m.target.checked);
324
+ noBorder: h
325
+ }), N = (u) => {
326
+ s == null || s(u.target.checked);
325
327
  };
326
- return /* @__PURE__ */ c("label", { className: f.wrapper, children: [
328
+ return /* @__PURE__ */ c("label", { className: m.wrapper, children: [
327
329
  /* @__PURE__ */ t(
328
330
  "input",
329
331
  {
330
332
  name: r,
331
333
  checked: e,
332
334
  type: "checkbox",
333
- className: f.input,
335
+ className: m.input,
334
336
  onChange: N
335
337
  }
336
338
  ),
337
- /* @__PURE__ */ t("div", { className: f.toggle }),
338
- /* @__PURE__ */ t("span", { className: f.label, children: a })
339
+ /* @__PURE__ */ t("div", { className: m.toggle }),
340
+ /* @__PURE__ */ t("span", { className: m.label, children: a })
339
341
  ] });
340
- }, Xt = ({
342
+ }, Jt = ({
341
343
  className: e,
342
344
  viewBox: s,
343
345
  spacing: a,
@@ -505,7 +507,7 @@ const Lt = ({ className: e, ...s }) => {
505
507
  /* @__PURE__ */ t("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16H272c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80H144z" })
506
508
  ]
507
509
  }
508
- ), me = ({
510
+ ), pe = ({
509
511
  className: e,
510
512
  viewBox: s,
511
513
  spacing: a,
@@ -588,20 +590,20 @@ const Lt = ({ className: e, ...s }) => {
588
590
  children: /* @__PURE__ */ t("path", { d: "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" })
589
591
  }
590
592
  );
591
- function $(e) {
593
+ function G(e) {
592
594
  return lt();
593
595
  }
594
596
  const ns = ({ stats: e }) => {
595
- const s = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], r = $(), o = $();
597
+ const s = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], r = G(), o = G();
596
598
  return /* @__PURE__ */ c(w, { children: [
597
599
  /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
598
600
  _,
599
601
  {
600
602
  header: C.ABOUT.TITLE_CLIENT,
601
603
  className: "prose-dark dark:prose-lighter",
602
- children: P(r, {
603
- [C.ABOUT.VERSION]: "3.4.1",
604
- [C.ABOUT.BUILD_TIMESTAMP]: "07/16/2024 07:36 PM EDT"
604
+ children: F(r, {
605
+ [C.ABOUT.VERSION]: "3.4.3",
606
+ [C.ABOUT.BUILD_TIMESTAMP]: "07/23/2024 01:46 PM EDT"
605
607
  })
606
608
  }
607
609
  ) }),
@@ -610,10 +612,10 @@ const ns = ({ stats: e }) => {
610
612
  {
611
613
  header: C.ABOUT.TITLE_SERVER,
612
614
  className: "prose-dark dark:prose-lighter",
613
- children: P(o, {
615
+ children: F(o, {
614
616
  [C.ABOUT.VERSION]: a,
615
- [q(C.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ t(w, { children: n.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) }),
616
- [q(C.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ t(w, { children: s.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) })
617
+ [Q(C.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ t(w, { children: n.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) }),
618
+ [Q(C.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ t(w, { children: s.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) })
617
619
  })
618
620
  }
619
621
  )
@@ -622,9 +624,9 @@ const ns = ({ stats: e }) => {
622
624
  open: e,
623
625
  onOpenChange: s
624
626
  }) => {
625
- const { serverStats: a } = R(U);
626
- return /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: ze, children: /* @__PURE__ */ t(ns, { stats: a }) });
627
- }, os = (e) => fe(e), cs = (e) => {
627
+ const { serverStats: a } = R(j);
628
+ return /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: ze, children: /* @__PURE__ */ t(ns, { stats: a }) });
629
+ }, os = (e) => Ce(e), cs = (e) => {
628
630
  if (!e || e.length === 0)
629
631
  return Pe;
630
632
  const s = e.filter(
@@ -641,14 +643,14 @@ const ns = ({ stats: e }) => {
641
643
  isAuthenticated: e,
642
644
  stats: s
643
645
  }) => {
644
- const { state: a } = R(U), n = Ge - Number(a == null ? void 0 : a.usage), r = $(), o = $();
646
+ const { state: a } = R(j), n = Ge - Number(a == null ? void 0 : a.usage), r = G(), o = G();
645
647
  return e ? /* @__PURE__ */ c(w, { children: [
646
648
  a && a.messages.length > 0 && /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
647
649
  _,
648
650
  {
649
651
  header: C.CURRENT_STATISTICS.TITLE,
650
652
  className: "prose-dark dark:prose-lighter",
651
- children: P(r, {
653
+ children: F(r, {
652
654
  [C.CURRENT_STATISTICS.MODEL_NAME]: (a == null ? void 0 : a.model) || Be,
653
655
  [C.CURRENT_STATISTICS.TOKENS_USED]: a == null ? void 0 : a.usage,
654
656
  [C.CURRENT_STATISTICS.REMAINING_TOKENS]: Ve.format(n),
@@ -661,9 +663,9 @@ const ns = ({ stats: e }) => {
661
663
  {
662
664
  header: C.MAIN_STATISTICS.TITLE,
663
665
  className: "prose-dark dark:prose-lighter",
664
- children: P(o, {
665
- [q(C.MAIN_STATISTICS.TOTAL, s.totalChats)]: s.totalChats,
666
- [C.MAIN_STATISTICS.PROCESSING_TIME]: fe(
666
+ children: F(o, {
667
+ [Q(C.MAIN_STATISTICS.TOTAL, s.totalChats)]: s.totalChats,
668
+ [C.MAIN_STATISTICS.PROCESSING_TIME]: Ce(
667
669
  s.averageProcessingTimes
668
670
  )
669
671
  })
@@ -677,13 +679,13 @@ const ns = ({ stats: e }) => {
677
679
  const [a, n] = T({
678
680
  averageProcessingTimes: 0,
679
681
  totalChats: 0
680
- }), { isAuthenticated: r, getAccessToken: o, user: l } = G();
682
+ }), { isAuthenticated: r, getAccessToken: o, user: l } = U();
681
683
  return L(() => {
682
684
  !e || !l || (async () => {
683
685
  try {
684
- const d = await te({
686
+ const d = await se({
685
687
  accessToken: await o(),
686
- type: se.GET_CHATS_STATS,
688
+ type: ae.GET_CHATS_STATS,
687
689
  params: {
688
690
  userId: l.username
689
691
  }
@@ -692,23 +694,23 @@ const ns = ({ stats: e }) => {
692
694
  } catch {
693
695
  }
694
696
  })();
695
- }, [e, o, l]), /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: ge, children: /* @__PURE__ */ t(is, { isAuthenticated: r, stats: a }) });
696
- }, Ee = ({
697
+ }, [e, o, l]), /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: Ne, children: /* @__PURE__ */ t(is, { isAuthenticated: r, stats: a }) });
698
+ }, xe = ({
697
699
  showConfirmation: e,
698
700
  setShowConfirmation: s,
699
701
  action: a,
700
702
  children: n,
701
703
  customStrings: r
702
704
  }) => /* @__PURE__ */ t(
703
- K,
705
+ Y,
704
706
  {
705
707
  kind: "messagebox",
706
708
  open: e,
707
709
  onOpenChange: s,
708
710
  title: r.title,
709
- footer: /* @__PURE__ */ c(W, { columnGap: 2, alignHorizontal: "flex-end", children: [
711
+ footer: /* @__PURE__ */ c(q, { columnGap: 2, alignHorizontal: "flex-end", children: [
710
712
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
711
- Q,
713
+ Z,
712
714
  {
713
715
  mode: "dark",
714
716
  variant: "secondary",
@@ -720,7 +722,7 @@ const ns = ({ stats: e }) => {
720
722
  }
721
723
  ) }),
722
724
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
723
- Q,
725
+ Z,
724
726
  {
725
727
  mode: "dark",
726
728
  variant: "danger",
@@ -735,10 +737,10 @@ const ns = ({ stats: e }) => {
735
737
  children: n
736
738
  }
737
739
  );
738
- var ds = typeof window < "u", us = function(e, s) {
740
+ var ds = typeof window < "u", ms = function(e, s) {
739
741
  return ds ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
740
- }, ms = function(e, s) {
741
- var a = T(us(e)), n = a[0], r = a[1];
742
+ }, us = function(e, s) {
743
+ var a = T(ms(e)), n = a[0], r = a[1];
742
744
  return L(function() {
743
745
  var o = !0, l = window.matchMedia(e), d = function() {
744
746
  o && r(!!l.matches);
@@ -750,9 +752,9 @@ var ds = typeof window < "u", us = function(e, s) {
750
752
  };
751
753
  const hs = async (e, s, a, n) => {
752
754
  try {
753
- const r = await te({
755
+ const r = await se({
754
756
  accessToken: n,
755
- type: se.GET_CHAT,
757
+ type: ae.GET_CHAT,
756
758
  params: {
757
759
  id: e.id
758
760
  }
@@ -770,7 +772,7 @@ const hs = async (e, s, a, n) => {
770
772
  }), a(!1));
771
773
  } catch {
772
774
  }
773
- }, he = (e) => {
775
+ }, fe = (e) => {
774
776
  const s = e[0];
775
777
  return Ye(s == null ? void 0 : s.content, 100);
776
778
  }, ps = ({
@@ -781,52 +783,52 @@ const hs = async (e, s, a, n) => {
781
783
  onOpenChange: r
782
784
  }) => {
783
785
  var i;
784
- const { user: o, getAccessToken: l } = G(), d = F({
786
+ const { user: o, getAccessToken: l } = U(), d = $({
785
787
  id: 0,
786
788
  timestamp: "",
787
789
  message: ""
788
- }), [u, f] = T(!1), N = ms("(min-width: 480px)"), { state: m, dispatch: y } = R(Ne), [, b] = ee({
789
- key: Z + Ue,
790
- initialValue: m.sortDirection
790
+ }), [h, m] = T(!1), N = us("(min-width: 480px)"), { state: u, dispatch: y } = R(ye), [, b] = te({
791
+ key: ee + Ue,
792
+ initialValue: u.sortDirection
791
793
  }), S = e.data.sort(
792
- (h, g) => {
793
- switch (m.sortedCell) {
794
+ (p, g) => {
795
+ switch (u.sortedCell) {
794
796
  case "timestamp":
795
- if (m.sortDirection === v.ASC)
796
- return new Date(h[m.sortedCell]).getTime() - new Date(g[m.sortedCell]).getTime();
797
- if (m.sortDirection === v.DESC)
798
- return new Date(g[m.sortedCell]).getTime() - new Date(h[m.sortedCell]).getTime();
797
+ if (u.sortDirection === v.ASC)
798
+ return new Date(p[u.sortedCell]).getTime() - new Date(g[u.sortedCell]).getTime();
799
+ if (u.sortDirection === v.DESC)
800
+ return new Date(g[u.sortedCell]).getTime() - new Date(p[u.sortedCell]).getTime();
799
801
  break;
800
802
  default:
801
803
  return 0;
802
804
  }
803
805
  return 0;
804
806
  }
805
- ), p = (h) => {
806
- switch (m.sortDirection) {
807
+ ), f = (p) => {
808
+ switch (u.sortDirection) {
807
809
  case !1:
808
810
  b(v.ASC), y({
809
- type: ne,
811
+ type: re,
810
812
  payload: {
811
- sortedCell: h,
813
+ sortedCell: p,
812
814
  sortDirection: v.ASC
813
815
  }
814
816
  });
815
817
  break;
816
818
  case v.ASC:
817
819
  b(v.DESC), y({
818
- type: ne,
820
+ type: re,
819
821
  payload: {
820
- sortedCell: h,
822
+ sortedCell: p,
821
823
  sortDirection: v.DESC
822
824
  }
823
825
  });
824
826
  break;
825
827
  default:
826
828
  b(v.ASC), y({
827
- type: ne,
829
+ type: re,
828
830
  payload: {
829
- sortedCell: h,
831
+ sortedCell: p,
830
832
  sortDirection: v.ASC
831
833
  }
832
834
  });
@@ -835,19 +837,19 @@ const hs = async (e, s, a, n) => {
835
837
  };
836
838
  return /* @__PURE__ */ c(w, { children: [
837
839
  /* @__PURE__ */ c(
838
- Ee,
840
+ xe,
839
841
  {
840
- showConfirmation: u,
841
- setShowConfirmation: f,
842
+ showConfirmation: h,
843
+ setShowConfirmation: m,
842
844
  action: async () => {
843
- const h = d.current;
845
+ const p = d.current;
844
846
  try {
845
- const g = await te({
847
+ const g = await se({
846
848
  accessToken: await l(),
847
- type: se.DELETE_CHAT,
849
+ type: ae.DELETE_CHAT,
848
850
  params: {
849
851
  userId: (o == null ? void 0 : o.username) || "",
850
- id: h.id
852
+ id: p.id
851
853
  }
852
854
  });
853
855
  g.status === 200 && (a(g.data), s({ data: g.data }));
@@ -876,18 +878,18 @@ const hs = async (e, s, a, n) => {
876
878
  ]
877
879
  }
878
880
  ),
879
- /* @__PURE__ */ c(ut, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
880
- /* @__PURE__ */ t(mt, { children: /* @__PURE__ */ c(re, { children: [
881
+ /* @__PURE__ */ c(mt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
882
+ /* @__PURE__ */ t(ut, { children: /* @__PURE__ */ c(oe, { children: [
881
883
  N && /* @__PURE__ */ t(H, { className: "sr-only", children: "Row" }),
882
884
  /* @__PURE__ */ t(
883
885
  ht,
884
886
  {
885
887
  cellId: "timestamp",
886
888
  align: "left",
887
- sortDirection: m.sortDirection,
888
- sortedCell: m.sortedCell,
889
+ sortDirection: u.sortDirection,
890
+ sortedCell: u.sortedCell,
889
891
  onClick: () => {
890
- p("timestamp");
892
+ f("timestamp");
891
893
  },
892
894
  children: "Date"
893
895
  }
@@ -895,9 +897,9 @@ const hs = async (e, s, a, n) => {
895
897
  /* @__PURE__ */ t(H, { children: "First message" }),
896
898
  /* @__PURE__ */ t(H, { className: "text-right", children: "Actions" })
897
899
  ] }) }),
898
- /* @__PURE__ */ t(pt, { children: S.map((h, g) => {
900
+ /* @__PURE__ */ t(pt, { children: S.map((p, g) => {
899
901
  var x;
900
- return ((x = h == null ? void 0 : h.messages) == null ? void 0 : x.length) > 0 ? /* @__PURE__ */ c(re, { children: [
902
+ return ((x = p == null ? void 0 : p.messages) == null ? void 0 : x.length) > 0 ? /* @__PURE__ */ c(oe, { children: [
901
903
  N && /* @__PURE__ */ t(H, { children: g + 1 }),
902
904
  /* @__PURE__ */ t(
903
905
  H,
@@ -905,13 +907,13 @@ const hs = async (e, s, a, n) => {
905
907
  component: "th",
906
908
  scope: "row",
907
909
  className: "font-medium text-gray-400 sm:whitespace-nowrap",
908
- children: h.timestamp
910
+ children: p.timestamp
909
911
  }
910
912
  ),
911
- /* @__PURE__ */ t(H, { className: "max-w-[100px] text-white sm:max-w-full", children: he(h.messages) }),
913
+ /* @__PURE__ */ t(H, { className: "max-w-[100px] text-white sm:max-w-full", children: fe(p.messages) }),
912
914
  /* @__PURE__ */ t(H, { children: /* @__PURE__ */ c("div", { className: "flex justify-end gap-2", children: [
913
915
  /* @__PURE__ */ t(
914
- O,
916
+ D,
915
917
  {
916
918
  focusMode: "alt-system",
917
919
  noBorder: !0,
@@ -919,7 +921,7 @@ const hs = async (e, s, a, n) => {
919
921
  onClick: async () => {
920
922
  const z = await l();
921
923
  hs(
922
- h,
924
+ p,
923
925
  n,
924
926
  r,
925
927
  z
@@ -929,32 +931,32 @@ const hs = async (e, s, a, n) => {
929
931
  }
930
932
  ),
931
933
  /* @__PURE__ */ t(
932
- O,
934
+ D,
933
935
  {
934
936
  focusMode: "alt-system",
935
937
  noBorder: !0,
936
938
  label: "Delete chat",
937
939
  onClick: () => {
938
940
  d.current = {
939
- id: h.id,
940
- timestamp: h.timestamp,
941
- message: he(h.messages)
942
- }, f(!u);
941
+ id: p.id,
942
+ timestamp: p.timestamp,
943
+ message: fe(p.messages)
944
+ }, m(!h);
943
945
  },
944
946
  children: /* @__PURE__ */ t("div", { className: "text-red-400", children: /* @__PURE__ */ t(Qt, { className: "h-3 w-3", monotone: !0 }) })
945
947
  }
946
948
  )
947
949
  ] }) })
948
- ] }, `${C.HISTORY.TITLE}-${h.id}-${g}`) : null;
950
+ ] }, `${C.HISTORY.TITLE}-${p.id}-${g}`) : null;
949
951
  }) }),
950
- /* @__PURE__ */ t(ft, { children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(H, { colSpan: 4, children: /* @__PURE__ */ t("div", { children: q(
952
+ /* @__PURE__ */ t(ft, { children: /* @__PURE__ */ t(oe, { children: /* @__PURE__ */ t(H, { colSpan: 4, children: /* @__PURE__ */ t("div", { children: Q(
951
953
  `${e.data.length} chat`,
952
954
  e.data.length
953
955
  ) }) }) }) })
954
956
  ] })
955
957
  ] });
956
958
  };
957
- function pe(e, s) {
959
+ function ge(e, s) {
958
960
  return s ? e.filter(
959
961
  (a) => a.messages.some(
960
962
  (n) => n.content !== null && n.content.toLowerCase().includes(s.toLowerCase())
@@ -965,35 +967,35 @@ const fs = ({
965
967
  onOpenChange: e,
966
968
  historyData: s
967
969
  }) => {
968
- const { isAuthenticated: a } = G(), n = F(null), { dispatch: r } = R(U), { state: o, dispatch: l } = R(Ne), [, d] = ee({
969
- key: Z + Je,
970
+ const { isAuthenticated: a } = U(), n = $(null), { dispatch: r } = R(j), { state: o, dispatch: l } = R(ye), [, d] = te({
971
+ key: ee + We,
970
972
  initialValue: o.searchString
971
- }), [u, f] = T(s), [N, m] = T({
972
- data: u
973
- }), y = (p) => {
974
- const k = pe(u, p);
975
- m({
976
- data: k
977
- }), d(p), l({
978
- type: Xe,
979
- payload: { searchString: p }
973
+ }), [h, m] = T(s), [N, u] = T({
974
+ data: h
975
+ }), y = (f) => {
976
+ const E = ge(h, f);
977
+ u({
978
+ data: E
979
+ }), d(f), l({
980
+ type: Je,
981
+ payload: { searchString: f }
980
982
  });
981
- }, b = (p) => {
982
- y(p.target.value);
983
- }, S = async (p) => {
984
- p.preventDefault();
983
+ }, b = (f) => {
984
+ y(f.target.value);
985
+ }, S = async (f) => {
986
+ f.preventDefault();
985
987
  };
986
988
  return L(() => {
987
- const p = pe(
988
- u,
989
+ const f = ge(
990
+ h,
989
991
  o.searchString
990
992
  );
991
- m({
992
- data: p
993
+ u({
994
+ data: f
993
995
  });
994
- }, [u, o.searchString]), a ? N && N.data && /* @__PURE__ */ c(w, { children: [
996
+ }, [h, o.searchString]), a ? N && N.data && /* @__PURE__ */ c(w, { children: [
995
997
  /* @__PURE__ */ t("form", { autoComplete: "off", onSubmit: S, children: /* @__PURE__ */ t(
996
- We,
998
+ Xe,
997
999
  {
998
1000
  ref: n,
999
1001
  defaultValue: o.searchString,
@@ -1004,15 +1006,15 @@ const fs = ({
1004
1006
  spacing: { t: 2, b: 2 },
1005
1007
  ...o.searchString && {
1006
1008
  rightElement: /* @__PURE__ */ t(
1007
- Q,
1009
+ Z,
1008
1010
  {
1009
1011
  disabled: !o.searchString,
1010
1012
  mode: "dark",
1011
1013
  noBorder: !0,
1012
1014
  size: "small",
1013
1015
  onClick: () => {
1014
- var p;
1015
- y(""), (p = n.current) != null && p.value && (n.current.value = "", n.current.focus());
1016
+ var f;
1017
+ y(""), (f = n.current) != null && f.value && (n.current.value = "", n.current.focus());
1016
1018
  },
1017
1019
  children: "Reset"
1018
1020
  }
@@ -1024,8 +1026,8 @@ const fs = ({
1024
1026
  ps,
1025
1027
  {
1026
1028
  filteredHistory: N,
1027
- setFilteredHistory: m,
1028
- setFullHistory: f,
1029
+ setFilteredHistory: u,
1030
+ setFullHistory: m,
1029
1031
  dispatch: r,
1030
1032
  onOpenChange: e
1031
1033
  }
@@ -1035,18 +1037,18 @@ const fs = ({
1035
1037
  open: e,
1036
1038
  onOpenChange: s,
1037
1039
  historyData: a
1038
- }) => /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: qe, children: /* @__PURE__ */ t(fs, { onOpenChange: s, historyData: a }) }), Cs = () => {
1039
- const { isAuthenticated: e, user: s, registeringForPasskey: a, authenticationType: n } = G(), [r, o] = ee({
1040
- key: Z + Qe,
1040
+ }) => /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: qe, children: /* @__PURE__ */ t(fs, { onOpenChange: s, historyData: a }) }), Cs = () => {
1041
+ const { isAuthenticated: e, user: s, registeringForPasskey: a, authenticationType: n } = U(), [r, o] = te({
1042
+ key: ee + Qe,
1041
1043
  initialValue: !1
1042
- }), [, l, d] = ee({
1043
- key: Z + Ze,
1044
+ }), [, l, d] = te({
1045
+ key: ee + Ze,
1044
1046
  initialValue: { latitude: 0, longitude: 0, accuracy: 0 }
1045
- }), [u, f] = T(!0), N = $(), { state: m, dispatch: y } = R(U), b = (s == null ? void 0 : s.username) || "", S = (i) => {
1047
+ }), [h, m] = T(!0), N = G(), { state: u, dispatch: y } = R(j), b = (s == null ? void 0 : s.username) || "", S = (i) => {
1046
1048
  o(i);
1047
- }, p = async () => {
1048
- f(!1), d(), y({
1049
- type: le,
1049
+ }, f = async () => {
1050
+ m(!1), d(), y({
1051
+ type: me,
1050
1052
  payload: {
1051
1053
  location: {
1052
1054
  latitude: 0,
@@ -1057,7 +1059,7 @@ const fs = ({
1057
1059
  });
1058
1060
  const i = await st();
1059
1061
  l(i), y({
1060
- type: le,
1062
+ type: me,
1061
1063
  payload: {
1062
1064
  location: i
1063
1065
  }
@@ -1065,15 +1067,15 @@ const fs = ({
1065
1067
  };
1066
1068
  L(() => {
1067
1069
  let i;
1068
- return u || (i = window.setTimeout(() => {
1069
- f(!0);
1070
+ return h || (i = window.setTimeout(() => {
1071
+ m(!0);
1070
1072
  }, 3e3)), () => {
1071
1073
  clearTimeout(i);
1072
1074
  };
1073
- }, [u]);
1074
- const k = (i) => {
1075
+ }, [h]);
1076
+ const E = (i) => {
1075
1077
  if (i != null && i.city && (i != null && i.country) && (i != null && i.region))
1076
- return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ c(W, { alignVertical: "center", columnGap: 4, children: [
1078
+ return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ c(q, { alignVertical: "center", columnGap: 4, children: [
1077
1079
  /* @__PURE__ */ c(M, { children: [
1078
1080
  /* @__PURE__ */ c("div", { className: "text-right", children: [
1079
1081
  i.city,
@@ -1083,29 +1085,29 @@ const fs = ({
1083
1085
  /* @__PURE__ */ t("div", { className: "text-right", children: i.country })
1084
1086
  ] }),
1085
1087
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1086
- O,
1088
+ D,
1087
1089
  {
1088
- disabled: !u,
1090
+ disabled: !h,
1089
1091
  size: "small",
1090
1092
  className: "mt-2",
1091
- onClick: p,
1092
- children: /* @__PURE__ */ t(me, { className: "size-3", monotone: !0 })
1093
+ onClick: f,
1094
+ children: /* @__PURE__ */ t(pe, { className: "size-3", monotone: !0 })
1093
1095
  }
1094
1096
  ) })
1095
1097
  ] }) });
1096
- const h = at(i == null ? void 0 : i.latitude), g = nt(i == null ? void 0 : i.longitude);
1097
- return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ c(W, { alignVertical: "center", columnGap: 4, children: [
1098
+ const p = at(i == null ? void 0 : i.latitude), g = nt(i == null ? void 0 : i.longitude);
1099
+ return /* @__PURE__ */ t(w, { children: /* @__PURE__ */ c(q, { alignVertical: "center", columnGap: 4, children: [
1098
1100
  /* @__PURE__ */ c(M, { children: [
1099
- /* @__PURE__ */ t("div", { children: h }),
1101
+ /* @__PURE__ */ t("div", { children: p }),
1100
1102
  /* @__PURE__ */ t("div", { children: g })
1101
1103
  ] }),
1102
1104
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
1103
- O,
1105
+ D,
1104
1106
  {
1105
1107
  size: "small",
1106
1108
  className: "mt-2",
1107
- onClick: p,
1108
- children: /* @__PURE__ */ t(me, { className: "size-3", monotone: !0 })
1109
+ onClick: f,
1110
+ children: /* @__PURE__ */ t(pe, { className: "size-3", monotone: !0 })
1109
1111
  }
1110
1112
  ) })
1111
1113
  ] }) });
@@ -1116,11 +1118,11 @@ const fs = ({
1116
1118
  {
1117
1119
  header: C.PREFERENCES.TITLE,
1118
1120
  className: "prose-dark dark:prose-lighter",
1119
- children: P(N, {
1121
+ children: F(N, {
1120
1122
  [C.PREFERENCES.NAME]: b,
1121
1123
  // [CARDS.PREFERENCES.EMAIL]: endUser.email,
1122
1124
  [C.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ t(
1123
- Wt,
1125
+ Xt,
1124
1126
  {
1125
1127
  noBorder: !0,
1126
1128
  labelHidden: !0,
@@ -1130,7 +1132,7 @@ const fs = ({
1130
1132
  checked: r
1131
1133
  }
1132
1134
  ),
1133
- [C.PREFERENCES.LOCATION]: k(m == null ? void 0 : m.location)
1135
+ [C.PREFERENCES.LOCATION]: E(u == null ? void 0 : u.location)
1134
1136
  })
1135
1137
  }
1136
1138
  ),
@@ -1139,13 +1141,13 @@ const fs = ({
1139
1141
  {
1140
1142
  spacing: { t: 4 },
1141
1143
  className: "prose-dark dark:prose-lighter",
1142
- header: /* @__PURE__ */ t("h2", { className: "m-0", children: /* @__PURE__ */ c(W, { columnGap: 3, alignVertical: "center", children: [
1144
+ header: /* @__PURE__ */ t("h2", { className: "m-0", children: /* @__PURE__ */ c(q, { columnGap: 3, alignVertical: "center", children: [
1143
1145
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(tt, { className: "size-6 text-center" }) }),
1144
1146
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t("div", { children: "Passkey" }) })
1145
1147
  ] }) }),
1146
1148
  children: [
1147
1149
  "Sign in without a password using a passkey (face or fingerprint sign-in).",
1148
- /* @__PURE__ */ t(Q, { spacing: { t: 2 }, onClick: a, children: "Create a Passkey" })
1150
+ /* @__PURE__ */ t(Z, { spacing: { t: 2 }, onClick: a, children: "Create a Passkey" })
1149
1151
  ]
1150
1152
  }
1151
1153
  )
@@ -1153,31 +1155,31 @@ const fs = ({
1153
1155
  }, Ns = ({
1154
1156
  open: e,
1155
1157
  onOpenChange: s
1156
- }) => /* @__PURE__ */ t(K, { open: e, onOpenChange: s, title: rt, children: /* @__PURE__ */ t(Cs, {}) }), ks = () => {
1157
- const { state: e } = R(U), [s, a] = T(!1), [n, r] = T(!1), [o, l] = T(!1), [d, u] = T(!1), [f, N] = T([]), [m, y] = T(!1), [b, S] = T({
1158
+ }) => /* @__PURE__ */ t(Y, { open: e, onOpenChange: s, title: rt, children: /* @__PURE__ */ t(Cs, {}) }), Es = () => {
1159
+ const { state: e } = R(j), [s, a] = T(!1), [n, r] = T(!1), [o, l] = T(!1), [d, h] = T(!1), [m, N] = T([]), [u, y] = T(!1), [b, S] = T({
1158
1160
  done: !1,
1159
1161
  progress: !1,
1160
1162
  timestamp: Date.now()
1161
- }), { logout: p, getAccessToken: k, user: i } = G(), h = () => {
1163
+ }), { logout: f, getAccessToken: E, user: i } = U(), p = () => {
1162
1164
  a(!s);
1163
1165
  }, g = () => {
1164
1166
  r(!n);
1165
1167
  }, x = () => {
1166
1168
  l(!o);
1167
1169
  }, z = () => {
1168
- u(!d);
1169
- }, ae = async (I) => {
1170
- const J = Date.now();
1171
- if (I && !(!i || !e || b.progress || b.done === !0 && J - b.timestamp < 5e3)) {
1170
+ h(!d);
1171
+ }, ne = async (I) => {
1172
+ const X = Date.now();
1173
+ if (I && !(!i || !e || b.progress || b.done === !0 && X - b.timestamp < 5e3)) {
1172
1174
  S({
1173
1175
  done: !0,
1174
1176
  progress: !0,
1175
- timestamp: J
1177
+ timestamp: X
1176
1178
  });
1177
1179
  try {
1178
- const B = await te({
1179
- accessToken: await k(),
1180
- type: se.GET_CHATS,
1180
+ const B = await se({
1181
+ accessToken: await E(),
1182
+ type: ae.GET_CHATS,
1181
1183
  params: {
1182
1184
  userId: i.username
1183
1185
  }
@@ -1195,20 +1197,20 @@ const fs = ({
1195
1197
  });
1196
1198
  }
1197
1199
  }
1198
- }, Y = () => {
1199
- y(!m);
1200
+ }, W = () => {
1201
+ y(!u);
1200
1202
  };
1201
1203
  return /* @__PURE__ */ c(w, { children: [
1202
1204
  /* @__PURE__ */ t(
1203
- Ee,
1205
+ xe,
1204
1206
  {
1205
- showConfirmation: m,
1207
+ showConfirmation: u,
1206
1208
  setShowConfirmation: y,
1207
- action: p,
1209
+ action: f,
1208
1210
  customStrings: {
1209
- confirmAction: de,
1211
+ confirmAction: ue,
1210
1212
  cancelAction: "Cancel",
1211
- title: de
1213
+ title: ue
1212
1214
  },
1213
1215
  children: /* @__PURE__ */ t("p", { children: "Are you sure you want to log out?" })
1214
1216
  }
@@ -1220,37 +1222,37 @@ const fs = ({
1220
1222
  {
1221
1223
  open: o,
1222
1224
  onOpenChange: l,
1223
- historyData: f
1225
+ historyData: m
1224
1226
  }
1225
1227
  ),
1226
- /* @__PURE__ */ t(rs, { open: d, onOpenChange: u }),
1228
+ /* @__PURE__ */ t(rs, { open: d, onOpenChange: h }),
1227
1229
  /* @__PURE__ */ t("div", { className: "relative", children: /* @__PURE__ */ t("div", { className: "absolute bottom-[-28px] right-[-7px]", children: /* @__PURE__ */ c(
1228
- we,
1230
+ Ee,
1229
1231
  {
1230
1232
  mode: "dark",
1231
1233
  focusMode: "light",
1232
- trigger: /* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(as, {}) }),
1234
+ trigger: /* @__PURE__ */ t(D, { children: /* @__PURE__ */ t(as, {}) }),
1233
1235
  defaultPlacement: "bottom-end",
1234
- onOpenChange: ae,
1236
+ onOpenChange: ne,
1235
1237
  children: [
1236
1238
  /* @__PURE__ */ t(
1237
- D,
1239
+ O,
1238
1240
  {
1239
1241
  label: "Profile",
1240
- onClick: h,
1242
+ onClick: p,
1241
1243
  icon: /* @__PURE__ */ t(ts, {})
1242
1244
  }
1243
1245
  ),
1244
1246
  /* @__PURE__ */ t(
1245
- D,
1247
+ O,
1246
1248
  {
1247
- label: ge,
1249
+ label: Ne,
1248
1250
  onClick: g,
1249
1251
  icon: /* @__PURE__ */ t(qt, {})
1250
1252
  }
1251
1253
  ),
1252
1254
  /* @__PURE__ */ t(
1253
- D,
1255
+ O,
1254
1256
  {
1255
1257
  label: "History",
1256
1258
  onClick: x,
@@ -1258,7 +1260,7 @@ const fs = ({
1258
1260
  }
1259
1261
  ),
1260
1262
  /* @__PURE__ */ t(
1261
- D,
1263
+ O,
1262
1264
  {
1263
1265
  label: "About",
1264
1266
  onClick: z,
@@ -1268,11 +1270,11 @@ const fs = ({
1268
1270
  e && e.id && !e.isComponent && /* @__PURE__ */ c(w, { children: [
1269
1271
  /* @__PURE__ */ t(Lt, {}),
1270
1272
  /* @__PURE__ */ t(
1271
- D,
1273
+ O,
1272
1274
  {
1273
1275
  label: "Log out",
1274
- onClick: Y,
1275
- icon: /* @__PURE__ */ t("div", { className: "text-red-700", children: /* @__PURE__ */ t(Xt, { monotone: !0 }) })
1276
+ onClick: W,
1277
+ icon: /* @__PURE__ */ t("div", { className: "text-red-700", children: /* @__PURE__ */ t(Jt, { monotone: !0 }) })
1276
1278
  }
1277
1279
  )
1278
1280
  ] })
@@ -1282,5 +1284,5 @@ const fs = ({
1282
1284
  ] });
1283
1285
  };
1284
1286
  export {
1285
- ks as default
1287
+ Es as default
1286
1288
  };