@versini/sassysaint 1.0.13 → 2.0.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.
- package/dist/chunks/{App.WT_JMB-P.js → App.B5-6f2Kg.js} +15 -15
- package/dist/chunks/{LazyHeader.CDeNMEns.js → LazyHeader.kRDKzfpE.js} +327 -327
- package/dist/chunks/{LazyMarkdownWithExtra.JlXLVBc-.js → LazyMarkdownWithExtra.DwaycQtZ.js} +23 -18
- package/dist/chunks/{LazyMessageAssistant.Ct8xA2HE.js → LazyMessageAssistant.DvruzVWY.js} +4 -4
- package/dist/chunks/{index.CJJY2C9o.js → index.CeSKqv8k.js} +1418 -1832
- package/dist/chunks/{index.DbAx5fhD.DTsRcXtK.js → index.DbAx5fhD.PJ5E1yDy.js} +1 -1
- package/dist/chunks/{useLocalStorage.CzVJ5Eng.js → useLocalStorage.BQ-iH78L.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as c, jsx as e, Fragment as
|
|
2
|
-
import { O as
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { O as _, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as z, CARDS as N, renderDataAsList as $, pluralize as Z, 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, zr as Y, STATS as Ne, b as F, j as E, x as ee, LOCAL_STORAGE_PREFIX as te, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, Y as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, f$2 as et, ACTION_LOCATION as me, getCurrentGeoLocation as tt, convertLatitudeToDMS as at, convertLongitudeToDMS as st, PROFILE_TITLE as nt, LOG_OUT as ue } from "./index.CeSKqv8k.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
|
-
import
|
|
5
|
-
import { g as
|
|
6
|
-
import
|
|
7
|
-
import { useFloatingTree as be, useFloatingNodeId as
|
|
4
|
+
import rt, { forwardRef as Te, useState as T, useRef as U, useContext as R, useEffect as O, Suspense as ot, lazy as ct, useId as it } from "react";
|
|
5
|
+
import { g as lt, AppContext as K, serviceCall as se, SERVICE_TYPES as ne, HistoryContext as ye, E as ae, k as I, et as dt, at as mt, lt as oe, J as M, ct as ut, st as ht, rt as pt } from "./useLocalStorage.BQ-iH78L.js";
|
|
6
|
+
import v from "clsx";
|
|
7
|
+
import { useFloatingTree as be, useFloatingNodeId as ft, useListItem as Se, useFloating as gt, offset as Ct, flip as Nt, shift as Tt, autoUpdate as yt, useClick as bt, useRole as St, useDismiss as wt, useListNavigation as kt, useTypeahead as xt, useInteractions as Et, useMergeRefs as we, FloatingNode as vt, FloatingList as It, FloatingPortal as At, FloatingFocusManager as Ht, FloatingTree as Mt } from "@floating-ui/react";
|
|
8
8
|
const ie = ce.createContext({
|
|
9
9
|
getItemProps: () => ({}),
|
|
10
10
|
activeIndex: null,
|
|
@@ -37,81 +37,81 @@ const ie = ce.createContext({
|
|
|
37
37
|
focusMode: l = "system",
|
|
38
38
|
...h
|
|
39
39
|
}, d) => {
|
|
40
|
-
const [
|
|
40
|
+
const [g, u] = T(!1), [y, S] = T(!1), [b, C] = T(null), f = U([]), k = U([]), m = R(ie), p = be(), w = ft(), L = Se(), { floatingStyles: B, refs: J, context: H } = gt({
|
|
41
41
|
nodeId: w,
|
|
42
|
-
open:
|
|
43
|
-
onOpenChange: (
|
|
44
|
-
|
|
42
|
+
open: g,
|
|
43
|
+
onOpenChange: (P) => {
|
|
44
|
+
u(P), r == null || r(P);
|
|
45
45
|
},
|
|
46
46
|
placement: n,
|
|
47
47
|
strategy: "fixed",
|
|
48
|
-
middleware: [
|
|
49
|
-
whileElementsMounted:
|
|
50
|
-
}), q =
|
|
48
|
+
middleware: [Ct({ mainAxis: 10 }), Nt(), Tt()],
|
|
49
|
+
whileElementsMounted: yt
|
|
50
|
+
}), q = bt(H, {
|
|
51
51
|
event: "mousedown",
|
|
52
52
|
toggle: !0,
|
|
53
53
|
ignoreMouse: !1
|
|
54
|
-
}),
|
|
55
|
-
listRef:
|
|
56
|
-
activeIndex:
|
|
54
|
+
}), V = St(H, { role: "menu" }), ve = wt(H, { bubbles: !0 }), Ie = kt(H, {
|
|
55
|
+
listRef: f,
|
|
56
|
+
activeIndex: b,
|
|
57
57
|
nested: !1,
|
|
58
|
-
onNavigate:
|
|
58
|
+
onNavigate: C,
|
|
59
59
|
loop: !0
|
|
60
|
-
}),
|
|
61
|
-
listRef:
|
|
62
|
-
onMatch:
|
|
63
|
-
activeIndex:
|
|
64
|
-
}), { getReferenceProps: He, getFloatingProps: Me, getItemProps: Re } =
|
|
60
|
+
}), Ae = xt(H, {
|
|
61
|
+
listRef: k,
|
|
62
|
+
onMatch: g ? C : void 0,
|
|
63
|
+
activeIndex: b
|
|
64
|
+
}), { getReferenceProps: He, getFloatingProps: Me, getItemProps: Re } = Et([q, V, ve, Ie, Ae]), Le = he(t) === "Button" || he(t) === "ButtonIcon", Oe = rt.cloneElement(t, {
|
|
65
65
|
mode: i,
|
|
66
66
|
focusMode: l,
|
|
67
67
|
spacing: o,
|
|
68
68
|
noInternalClick: Le,
|
|
69
69
|
"aria-label": s,
|
|
70
|
-
"data-open":
|
|
70
|
+
"data-open": g ? "" : void 0,
|
|
71
71
|
"data-focus-inside": y ? "" : void 0,
|
|
72
|
-
ref: we([
|
|
72
|
+
ref: we([J.setReference, L.ref, d]),
|
|
73
73
|
...He(
|
|
74
|
-
|
|
74
|
+
m.getItemProps({
|
|
75
75
|
...h
|
|
76
76
|
})
|
|
77
77
|
)
|
|
78
78
|
});
|
|
79
79
|
return O(() => {
|
|
80
|
-
if (!
|
|
80
|
+
if (!p)
|
|
81
81
|
return;
|
|
82
|
-
function
|
|
83
|
-
|
|
82
|
+
function P() {
|
|
83
|
+
u(!1), r == null || r(!1);
|
|
84
84
|
}
|
|
85
|
-
return
|
|
86
|
-
|
|
85
|
+
return p.events.on("click", P), () => {
|
|
86
|
+
p.events.off("click", P);
|
|
87
87
|
};
|
|
88
|
-
}, [
|
|
89
|
-
|
|
90
|
-
}, [
|
|
88
|
+
}, [p, r]), O(() => {
|
|
89
|
+
g && p && p.events.emit("menuopen", { nodeId: w });
|
|
90
|
+
}, [p, g, w]), /* @__PURE__ */ c(vt, { id: w, children: [
|
|
91
91
|
Oe,
|
|
92
92
|
/* @__PURE__ */ e(
|
|
93
93
|
ie.Provider,
|
|
94
94
|
{
|
|
95
95
|
value: {
|
|
96
|
-
activeIndex:
|
|
97
|
-
setActiveIndex:
|
|
96
|
+
activeIndex: b,
|
|
97
|
+
setActiveIndex: C,
|
|
98
98
|
getItemProps: Re,
|
|
99
|
-
setHasFocusInside:
|
|
100
|
-
isOpen:
|
|
99
|
+
setHasFocusInside: S,
|
|
100
|
+
isOpen: g
|
|
101
101
|
},
|
|
102
|
-
children: /* @__PURE__ */ e(It, { elementsRef:
|
|
103
|
-
|
|
102
|
+
children: /* @__PURE__ */ e(It, { elementsRef: f, labelsRef: k, children: g && /* @__PURE__ */ e(At, { children: /* @__PURE__ */ e(
|
|
103
|
+
Ht,
|
|
104
104
|
{
|
|
105
|
-
context:
|
|
105
|
+
context: H,
|
|
106
106
|
modal: !1,
|
|
107
107
|
initialFocus: 0,
|
|
108
108
|
returnFocus: !0,
|
|
109
109
|
children: /* @__PURE__ */ e(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
|
-
ref:
|
|
112
|
+
ref: J.setFloating,
|
|
113
113
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
114
|
-
style:
|
|
114
|
+
style: B,
|
|
115
115
|
...Me(),
|
|
116
116
|
children: a
|
|
117
117
|
}
|
|
@@ -122,10 +122,10 @@ const ie = ce.createContext({
|
|
|
122
122
|
)
|
|
123
123
|
] });
|
|
124
124
|
}
|
|
125
|
-
),
|
|
126
|
-
|
|
125
|
+
), xe = Te((t, a) => /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ e(ke, { ...t, ref: a }) }));
|
|
126
|
+
xe.displayName = "Menu";
|
|
127
127
|
ke.displayName = "MenuComponent";
|
|
128
|
-
const
|
|
128
|
+
const D = ce.forwardRef(({ label: t, disabled: a, icon: s, ...n }, r) => {
|
|
129
129
|
const o = ce.useContext(ie), i = Se({ label: a ? null : t }), l = be();
|
|
130
130
|
return /* @__PURE__ */ c(
|
|
131
131
|
"button",
|
|
@@ -153,11 +153,11 @@ const _ = ce.forwardRef(({ label: t, disabled: a, icon: s, ...n }, r) => {
|
|
|
153
153
|
}
|
|
154
154
|
);
|
|
155
155
|
});
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
const s =
|
|
156
|
+
D.displayName = "MenuItem";
|
|
157
|
+
const Rt = ({ className: t, ...a }) => {
|
|
158
|
+
const s = v(t, "my-1 border-t border-border-medium");
|
|
159
159
|
return /* @__PURE__ */ e("div", { className: s, ...a });
|
|
160
|
-
},
|
|
160
|
+
}, Lt = ({
|
|
161
161
|
className: t,
|
|
162
162
|
viewBox: a,
|
|
163
163
|
spacing: s,
|
|
@@ -165,7 +165,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
165
165
|
monotone: r,
|
|
166
166
|
...o
|
|
167
167
|
}) => /* @__PURE__ */ e(
|
|
168
|
-
|
|
168
|
+
lt,
|
|
169
169
|
{
|
|
170
170
|
defaultViewBox: "0 0 384 512",
|
|
171
171
|
defaultClassName: "size-5",
|
|
@@ -176,19 +176,19 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
176
176
|
...o,
|
|
177
177
|
children: /* @__PURE__ */ e("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
|
-
),
|
|
179
|
+
), G = "panel", Q = "messagebox", Ot = ({
|
|
180
180
|
className: t,
|
|
181
181
|
kind: a,
|
|
182
182
|
borderMode: s
|
|
183
183
|
}) => ({
|
|
184
|
-
main:
|
|
185
|
-
[`${le} h-full min-h-[95%] sm:h-auto sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: a ===
|
|
186
|
-
[`${le} w-full sm:w-[95%] md:max-w-2xl`]: a ===
|
|
184
|
+
main: v("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`]: a === G,
|
|
186
|
+
[`${le} w-full sm:w-[95%] md:max-w-2xl`]: a === G && !t,
|
|
187
187
|
[`${de} rounded-lg border-2`]: a === Q,
|
|
188
188
|
[`${de} w-[95%] sm:w-[50%] md:max-w-2xl`]: a === Q && !t,
|
|
189
189
|
[`${t}`]: !!t,
|
|
190
|
-
"sm:border-border-dark": s === "dark" && a ===
|
|
191
|
-
"sm:border-border-accent": s === "light" && a ===
|
|
190
|
+
"sm:border-border-dark": s === "dark" && a === G,
|
|
191
|
+
"sm:border-border-accent": s === "light" && a === G,
|
|
192
192
|
"border-border-dark": s === "dark" && a === Q,
|
|
193
193
|
"border-border-accent": s === "light" && a === Q
|
|
194
194
|
}),
|
|
@@ -196,49 +196,49 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
196
196
|
footer: "flex flex-grow flex-col p-4",
|
|
197
197
|
header: "p-4 mb-0",
|
|
198
198
|
close: "p-4"
|
|
199
|
-
}),
|
|
200
|
-
() => import("./index.DbAx5fhD.
|
|
199
|
+
}), W = (t) => ct(
|
|
200
|
+
() => import("./index.DbAx5fhD.PJ5E1yDy.js").then((a) => ({
|
|
201
201
|
default: a[t]
|
|
202
202
|
}))
|
|
203
|
-
),
|
|
203
|
+
), Dt = W("Modal"), _t = W("ModalClose"), zt = W("ModalContent"), Bt = W("ModalDescription"), Vt = W("ModalHeading"), X = ({
|
|
204
204
|
open: t,
|
|
205
205
|
onOpenChange: a,
|
|
206
206
|
title: s,
|
|
207
207
|
children: n,
|
|
208
208
|
footer: r,
|
|
209
209
|
borderMode: o = "light",
|
|
210
|
-
kind: i =
|
|
210
|
+
kind: i = G,
|
|
211
211
|
className: l
|
|
212
212
|
}) => {
|
|
213
|
-
const h =
|
|
213
|
+
const h = U(""), d = Ot({ className: l, kind: i, borderMode: o });
|
|
214
214
|
return O(() => (t && (h.current = document.title, document.title = `${s} | ${h.current}`), () => {
|
|
215
215
|
t && (document.title = h.current);
|
|
216
|
-
}), [s, t]), /* @__PURE__ */ e(
|
|
216
|
+
}), [s, t]), /* @__PURE__ */ e(ot, { fallback: /* @__PURE__ */ e("div", {}), children: t && /* @__PURE__ */ e(Dt, { open: t, onOpenChange: a, children: /* @__PURE__ */ c(zt, { className: d.main, children: [
|
|
217
217
|
/* @__PURE__ */ c("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
218
218
|
/* @__PURE__ */ e(
|
|
219
|
-
|
|
219
|
+
_t,
|
|
220
220
|
{
|
|
221
221
|
className: d.close,
|
|
222
222
|
trigger: /* @__PURE__ */ e(
|
|
223
|
-
|
|
223
|
+
_,
|
|
224
224
|
{
|
|
225
225
|
mode: "dark",
|
|
226
226
|
focusMode: "light",
|
|
227
227
|
noBorder: !0,
|
|
228
228
|
label: "Close",
|
|
229
|
-
children: /* @__PURE__ */ e(
|
|
229
|
+
children: /* @__PURE__ */ e(Lt, {})
|
|
230
230
|
}
|
|
231
231
|
)
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
|
-
/* @__PURE__ */ e(
|
|
234
|
+
/* @__PURE__ */ e(Vt, { className: d.header, children: s })
|
|
235
235
|
] }),
|
|
236
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ e(Bt, { className: d.content, children: n }),
|
|
237
237
|
r && /* @__PURE__ */ e("div", { className: d.footer, children: r })
|
|
238
238
|
] }) }) });
|
|
239
|
-
},
|
|
239
|
+
}, Pt = () => v("peer", "h-6", "w-11", "rounded-full"), Ft = ({
|
|
240
240
|
focusMode: t
|
|
241
|
-
}) =>
|
|
241
|
+
}) => v(
|
|
242
242
|
"peer-focus:outline",
|
|
243
243
|
"peer-focus:outline-2",
|
|
244
244
|
"peer-focus:outline-offset-2",
|
|
@@ -248,14 +248,14 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
248
248
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": t === "alt-system",
|
|
249
249
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": t === "system"
|
|
250
250
|
}
|
|
251
|
-
),
|
|
251
|
+
), Gt = () => v(
|
|
252
252
|
"peer-checked:after:translate-x-full",
|
|
253
253
|
// background color when checked
|
|
254
254
|
"peer-checked:bg-violet-500",
|
|
255
255
|
// knob circle and border color when checked
|
|
256
256
|
"peer-checked:after:bg-white",
|
|
257
257
|
"peer-checked:after:border-white"
|
|
258
|
-
),
|
|
258
|
+
), $t = () => v(
|
|
259
259
|
"after:left-[2px]",
|
|
260
260
|
"after:top-[2px]",
|
|
261
261
|
"after:border",
|
|
@@ -267,45 +267,45 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
267
267
|
"after:rounded-full",
|
|
268
268
|
"after:transition-all",
|
|
269
269
|
"after:content-['']"
|
|
270
|
-
),
|
|
270
|
+
), Ut = ({
|
|
271
271
|
mode: t,
|
|
272
272
|
noBorder: a
|
|
273
|
-
}) =>
|
|
273
|
+
}) => v({
|
|
274
274
|
border: !a,
|
|
275
275
|
"border-border-dark bg-surface-medium": t === "light",
|
|
276
276
|
"border-border-light bg-surface-darker": t === "dark",
|
|
277
277
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": t === "alt-system",
|
|
278
278
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": t === "system"
|
|
279
|
-
}),
|
|
279
|
+
}), jt = ({
|
|
280
280
|
mode: t,
|
|
281
281
|
labelHidden: a
|
|
282
|
-
}) => a ? "sr-only" :
|
|
282
|
+
}) => a ? "sr-only" : v("ml-2 text-sm", {
|
|
283
283
|
"text-copy-dark": t === "light",
|
|
284
284
|
"text-copy-lighter": t === "dark",
|
|
285
285
|
"text-copy-lighter dark:text-copy-dark": t === "alt-system",
|
|
286
286
|
"text-copy-dark dark:text-copy-lighter": t === "system"
|
|
287
|
-
}),
|
|
287
|
+
}), Yt = ({ spacing: t }) => v(
|
|
288
288
|
De,
|
|
289
289
|
"relative flex cursor-pointer items-center",
|
|
290
290
|
_e(t)
|
|
291
|
-
),
|
|
291
|
+
), Kt = ({
|
|
292
292
|
mode: t,
|
|
293
293
|
focusMode: a,
|
|
294
294
|
labelHidden: s,
|
|
295
295
|
spacing: n,
|
|
296
296
|
noBorder: r
|
|
297
297
|
}) => ({
|
|
298
|
-
toggle:
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
298
|
+
toggle: v(
|
|
299
|
+
Pt(),
|
|
300
|
+
Ut({ mode: t, noBorder: r }),
|
|
301
|
+
Ft({ focusMode: a }),
|
|
302
|
+
$t(),
|
|
303
|
+
Gt()
|
|
304
304
|
),
|
|
305
|
-
label:
|
|
305
|
+
label: jt({ mode: t, labelHidden: s }),
|
|
306
306
|
input: "peer sr-only",
|
|
307
|
-
wrapper:
|
|
308
|
-
}),
|
|
307
|
+
wrapper: Yt({ spacing: n })
|
|
308
|
+
}), Wt = ({
|
|
309
309
|
checked: t = !1,
|
|
310
310
|
onChange: a,
|
|
311
311
|
label: s,
|
|
@@ -316,14 +316,14 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
316
316
|
spacing: l,
|
|
317
317
|
noBorder: h = !1
|
|
318
318
|
}) => {
|
|
319
|
-
const d =
|
|
319
|
+
const d = Kt({
|
|
320
320
|
mode: o,
|
|
321
321
|
focusMode: i,
|
|
322
322
|
labelHidden: n,
|
|
323
323
|
spacing: l,
|
|
324
324
|
noBorder: h
|
|
325
|
-
}),
|
|
326
|
-
a == null || a(
|
|
325
|
+
}), g = (u) => {
|
|
326
|
+
a == null || a(u.target.checked);
|
|
327
327
|
};
|
|
328
328
|
return /* @__PURE__ */ c("label", { className: d.wrapper, children: [
|
|
329
329
|
/* @__PURE__ */ e(
|
|
@@ -333,13 +333,13 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
333
333
|
checked: t,
|
|
334
334
|
type: "checkbox",
|
|
335
335
|
className: d.input,
|
|
336
|
-
onChange:
|
|
336
|
+
onChange: g
|
|
337
337
|
}
|
|
338
338
|
),
|
|
339
339
|
/* @__PURE__ */ e("div", { className: d.toggle }),
|
|
340
340
|
/* @__PURE__ */ e("span", { className: d.label, children: s })
|
|
341
341
|
] });
|
|
342
|
-
},
|
|
342
|
+
}, Xt = ({
|
|
343
343
|
className: t,
|
|
344
344
|
viewBox: a,
|
|
345
345
|
spacing: s,
|
|
@@ -347,7 +347,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
347
347
|
monotone: r,
|
|
348
348
|
...o
|
|
349
349
|
}) => /* @__PURE__ */ c(
|
|
350
|
-
|
|
350
|
+
A,
|
|
351
351
|
{
|
|
352
352
|
defaultViewBox: "0 0 512 512",
|
|
353
353
|
defaultClassName: "size-5",
|
|
@@ -367,7 +367,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
367
367
|
/* @__PURE__ */ e("path", { d: "M32 0H192c17.7 0 32 14.3 32 32s-14.3 32-32 32H109.3L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32s-32-14.3-32-32V32C0 14.3 14.3 0 32 0z" })
|
|
368
368
|
]
|
|
369
369
|
}
|
|
370
|
-
),
|
|
370
|
+
), Jt = ({
|
|
371
371
|
className: t,
|
|
372
372
|
viewBox: a,
|
|
373
373
|
spacing: s,
|
|
@@ -375,7 +375,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
375
375
|
monotone: r,
|
|
376
376
|
...o
|
|
377
377
|
}) => /* @__PURE__ */ c(
|
|
378
|
-
|
|
378
|
+
A,
|
|
379
379
|
{
|
|
380
380
|
defaultViewBox: "0 0 448 512",
|
|
381
381
|
defaultClassName: "size-5",
|
|
@@ -395,7 +395,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
395
395
|
/* @__PURE__ */ e("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
|
|
396
396
|
]
|
|
397
397
|
}
|
|
398
|
-
),
|
|
398
|
+
), qt = ({
|
|
399
399
|
className: t,
|
|
400
400
|
viewBox: a,
|
|
401
401
|
spacing: s,
|
|
@@ -403,7 +403,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
403
403
|
monotone: r,
|
|
404
404
|
...o
|
|
405
405
|
}) => /* @__PURE__ */ c(
|
|
406
|
-
|
|
406
|
+
A,
|
|
407
407
|
{
|
|
408
408
|
defaultViewBox: "0 0 448 512",
|
|
409
409
|
defaultClassName: "size-5",
|
|
@@ -423,7 +423,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
423
423
|
/* @__PURE__ */ e("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8z" })
|
|
424
424
|
]
|
|
425
425
|
}
|
|
426
|
-
),
|
|
426
|
+
), Qt = ({
|
|
427
427
|
className: t,
|
|
428
428
|
viewBox: a,
|
|
429
429
|
spacing: s,
|
|
@@ -431,7 +431,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
431
431
|
monotone: r,
|
|
432
432
|
...o
|
|
433
433
|
}) => /* @__PURE__ */ c(
|
|
434
|
-
|
|
434
|
+
A,
|
|
435
435
|
{
|
|
436
436
|
defaultViewBox: "0 0 512 512",
|
|
437
437
|
defaultClassName: "size-5",
|
|
@@ -451,7 +451,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
451
451
|
/* @__PURE__ */ e("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
452
452
|
]
|
|
453
453
|
}
|
|
454
|
-
),
|
|
454
|
+
), Zt = ({
|
|
455
455
|
className: t,
|
|
456
456
|
viewBox: a,
|
|
457
457
|
spacing: s,
|
|
@@ -459,7 +459,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
459
459
|
monotone: r,
|
|
460
460
|
...o
|
|
461
461
|
}) => /* @__PURE__ */ c(
|
|
462
|
-
|
|
462
|
+
A,
|
|
463
463
|
{
|
|
464
464
|
defaultViewBox: "0 0 512 512",
|
|
465
465
|
defaultClassName: "size-5",
|
|
@@ -479,7 +479,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
479
479
|
/* @__PURE__ */ e("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM192 248c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h24V272H216c-13.3 0-24-10.7-24-24z" })
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
|
-
),
|
|
482
|
+
), ea = ({
|
|
483
483
|
className: t,
|
|
484
484
|
viewBox: a,
|
|
485
485
|
spacing: s,
|
|
@@ -487,7 +487,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
487
487
|
monotone: r,
|
|
488
488
|
...o
|
|
489
489
|
}) => /* @__PURE__ */ c(
|
|
490
|
-
|
|
490
|
+
A,
|
|
491
491
|
{
|
|
492
492
|
defaultViewBox: "0 0 576 512",
|
|
493
493
|
defaultClassName: "size-5",
|
|
@@ -515,7 +515,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
515
515
|
monotone: r,
|
|
516
516
|
...o
|
|
517
517
|
}) => /* @__PURE__ */ c(
|
|
518
|
-
|
|
518
|
+
A,
|
|
519
519
|
{
|
|
520
520
|
defaultViewBox: "0 0 512 512",
|
|
521
521
|
defaultClassName: "size-5",
|
|
@@ -542,7 +542,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
542
542
|
)
|
|
543
543
|
]
|
|
544
544
|
}
|
|
545
|
-
),
|
|
545
|
+
), ta = ({
|
|
546
546
|
className: t,
|
|
547
547
|
viewBox: a,
|
|
548
548
|
spacing: s,
|
|
@@ -550,7 +550,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
550
550
|
monotone: r,
|
|
551
551
|
...o
|
|
552
552
|
}) => /* @__PURE__ */ c(
|
|
553
|
-
|
|
553
|
+
A,
|
|
554
554
|
{
|
|
555
555
|
defaultViewBox: "0 0 512 512",
|
|
556
556
|
defaultClassName: "size-5",
|
|
@@ -570,7 +570,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
570
570
|
/* @__PURE__ */ e("path", { d: "M64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H64zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32z" })
|
|
571
571
|
]
|
|
572
572
|
}
|
|
573
|
-
),
|
|
573
|
+
), aa = ({
|
|
574
574
|
className: t,
|
|
575
575
|
viewBox: a,
|
|
576
576
|
spacing: s,
|
|
@@ -578,7 +578,7 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
578
578
|
monotone: r,
|
|
579
579
|
...o
|
|
580
580
|
}) => /* @__PURE__ */ e(
|
|
581
|
-
|
|
581
|
+
A,
|
|
582
582
|
{
|
|
583
583
|
defaultViewBox: "0 0 448 512",
|
|
584
584
|
defaultClassName: "size-5",
|
|
@@ -590,43 +590,43 @@ const Lt = ({ className: t, ...a }) => {
|
|
|
590
590
|
children: /* @__PURE__ */ e("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" })
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
|
-
function
|
|
594
|
-
return
|
|
593
|
+
function j(t) {
|
|
594
|
+
return it();
|
|
595
595
|
}
|
|
596
|
-
const
|
|
597
|
-
const a = (t == null ? void 0 : t.plugins) || [], s = (t == null ? void 0 : t.version) || "", n = (t == null ? void 0 : t.models) || [], r =
|
|
598
|
-
return /* @__PURE__ */ c(
|
|
596
|
+
const sa = ({ stats: t }) => {
|
|
597
|
+
const a = (t == null ? void 0 : t.plugins) || [], s = (t == null ? void 0 : t.version) || "", n = (t == null ? void 0 : t.models) || [], r = j(), o = j();
|
|
598
|
+
return /* @__PURE__ */ c(x, { children: [
|
|
599
599
|
/* @__PURE__ */ e("div", { className: "mb-4", children: /* @__PURE__ */ e(
|
|
600
|
-
|
|
600
|
+
z,
|
|
601
601
|
{
|
|
602
|
-
header:
|
|
602
|
+
header: N.ABOUT.TITLE_CLIENT,
|
|
603
603
|
className: "prose-dark dark:prose-lighter",
|
|
604
|
-
children:
|
|
605
|
-
[
|
|
606
|
-
[
|
|
604
|
+
children: $(r, {
|
|
605
|
+
[N.ABOUT.VERSION]: "4.0.0",
|
|
606
|
+
[N.ABOUT.BUILD_TIMESTAMP]: "08/24/2024 12:54 PM EDT"
|
|
607
607
|
})
|
|
608
608
|
}
|
|
609
609
|
) }),
|
|
610
610
|
/* @__PURE__ */ e(
|
|
611
|
-
|
|
611
|
+
z,
|
|
612
612
|
{
|
|
613
|
-
header:
|
|
613
|
+
header: N.ABOUT.TITLE_SERVER,
|
|
614
614
|
className: "prose-dark dark:prose-lighter",
|
|
615
|
-
children:
|
|
616
|
-
[
|
|
617
|
-
[Z(
|
|
618
|
-
[Z(
|
|
615
|
+
children: $(o, {
|
|
616
|
+
[N.ABOUT.VERSION]: s,
|
|
617
|
+
[Z(N.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ e(x, { children: n.map((i) => /* @__PURE__ */ e("div", { className: "text-right", children: i }, i)) }),
|
|
618
|
+
[Z(N.ABOUT.PLUGIN, a.length)]: /* @__PURE__ */ e(x, { children: a.map((i) => /* @__PURE__ */ e("div", { className: "text-right", children: i }, i)) })
|
|
619
619
|
})
|
|
620
620
|
}
|
|
621
621
|
)
|
|
622
622
|
] });
|
|
623
|
-
},
|
|
623
|
+
}, na = ({
|
|
624
624
|
open: t,
|
|
625
625
|
onOpenChange: a
|
|
626
626
|
}) => {
|
|
627
|
-
const { serverStats: s } =
|
|
628
|
-
return /* @__PURE__ */ e(
|
|
629
|
-
},
|
|
627
|
+
const { serverStats: s } = R(K);
|
|
628
|
+
return /* @__PURE__ */ e(X, { open: t, onOpenChange: a, title: ze, children: /* @__PURE__ */ e(sa, { stats: s }) });
|
|
629
|
+
}, ra = (t) => Ce(t), oa = (t) => {
|
|
630
630
|
if (!t || t.length === 0)
|
|
631
631
|
return Pe;
|
|
632
632
|
const a = t.filter(
|
|
@@ -637,49 +637,49 @@ const na = ({ stats: t }) => {
|
|
|
637
637
|
).map((s) => s.message.processingTime);
|
|
638
638
|
return Ge({
|
|
639
639
|
data: a,
|
|
640
|
-
formatter:
|
|
640
|
+
formatter: ra
|
|
641
641
|
});
|
|
642
|
-
},
|
|
642
|
+
}, ca = ({
|
|
643
643
|
isAuthenticated: t,
|
|
644
644
|
stats: a
|
|
645
645
|
}) => {
|
|
646
|
-
const { state: s } =
|
|
647
|
-
return t ? /* @__PURE__ */ c(
|
|
646
|
+
const { state: s } = R(K), n = $e - Number(s == null ? void 0 : s.usage), r = j(), o = j();
|
|
647
|
+
return t ? /* @__PURE__ */ c(x, { children: [
|
|
648
648
|
s && s.messages.length > 0 && /* @__PURE__ */ e("div", { className: "mb-4", children: /* @__PURE__ */ e(
|
|
649
|
-
|
|
649
|
+
z,
|
|
650
650
|
{
|
|
651
|
-
header:
|
|
651
|
+
header: N.CURRENT_STATISTICS.TITLE,
|
|
652
652
|
className: "prose-dark dark:prose-lighter",
|
|
653
|
-
children:
|
|
654
|
-
[
|
|
655
|
-
[
|
|
656
|
-
[
|
|
657
|
-
[
|
|
653
|
+
children: $(r, {
|
|
654
|
+
[N.CURRENT_STATISTICS.MODEL_NAME]: (s == null ? void 0 : s.model) || Be,
|
|
655
|
+
[N.CURRENT_STATISTICS.TOKENS_USED]: s == null ? void 0 : s.usage,
|
|
656
|
+
[N.CURRENT_STATISTICS.REMAINING_TOKENS]: Ve.format(n),
|
|
657
|
+
[N.CURRENT_STATISTICS.PROCESSING_TIME]: oa(s == null ? void 0 : s.messages)
|
|
658
658
|
})
|
|
659
659
|
}
|
|
660
660
|
) }),
|
|
661
661
|
/* @__PURE__ */ e(
|
|
662
|
-
|
|
662
|
+
z,
|
|
663
663
|
{
|
|
664
|
-
header:
|
|
664
|
+
header: N.MAIN_STATISTICS.TITLE,
|
|
665
665
|
className: "prose-dark dark:prose-lighter",
|
|
666
|
-
children:
|
|
667
|
-
[Z(
|
|
668
|
-
[
|
|
666
|
+
children: $(o, {
|
|
667
|
+
[Z(N.MAIN_STATISTICS.TOTAL, a.totalChats)]: a.totalChats,
|
|
668
|
+
[N.MAIN_STATISTICS.PROCESSING_TIME]: Ce(
|
|
669
669
|
a.averageProcessingTimes
|
|
670
670
|
)
|
|
671
671
|
})
|
|
672
672
|
}
|
|
673
673
|
)
|
|
674
674
|
] }) : null;
|
|
675
|
-
},
|
|
675
|
+
}, ia = ({
|
|
676
676
|
open: t,
|
|
677
677
|
onOpenChange: a
|
|
678
678
|
}) => {
|
|
679
679
|
const [s, n] = T({
|
|
680
680
|
averageProcessingTimes: 0,
|
|
681
681
|
totalChats: 0
|
|
682
|
-
}), { isAuthenticated: r, getAccessToken: o, user: i } =
|
|
682
|
+
}), { isAuthenticated: r, getAccessToken: o, user: i } = Y();
|
|
683
683
|
return O(() => {
|
|
684
684
|
!t || !i || (async () => {
|
|
685
685
|
try {
|
|
@@ -694,21 +694,21 @@ const na = ({ stats: t }) => {
|
|
|
694
694
|
} catch {
|
|
695
695
|
}
|
|
696
696
|
})();
|
|
697
|
-
}, [t, o, i]), /* @__PURE__ */ e(
|
|
698
|
-
},
|
|
697
|
+
}, [t, o, i]), /* @__PURE__ */ e(X, { open: t, onOpenChange: a, title: Ne, children: /* @__PURE__ */ e(ca, { isAuthenticated: r, stats: s }) });
|
|
698
|
+
}, Ee = ({
|
|
699
699
|
showConfirmation: t,
|
|
700
700
|
setShowConfirmation: a,
|
|
701
701
|
action: s,
|
|
702
702
|
children: n,
|
|
703
703
|
customStrings: r
|
|
704
704
|
}) => /* @__PURE__ */ e(
|
|
705
|
-
|
|
705
|
+
X,
|
|
706
706
|
{
|
|
707
707
|
kind: "messagebox",
|
|
708
708
|
open: t,
|
|
709
709
|
onOpenChange: a,
|
|
710
710
|
title: r.title,
|
|
711
|
-
footer: /* @__PURE__ */ c(
|
|
711
|
+
footer: /* @__PURE__ */ c(F, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
712
712
|
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
713
713
|
ee,
|
|
714
714
|
{
|
|
@@ -737,10 +737,10 @@ const na = ({ stats: t }) => {
|
|
|
737
737
|
children: n
|
|
738
738
|
}
|
|
739
739
|
);
|
|
740
|
-
var
|
|
741
|
-
return
|
|
742
|
-
},
|
|
743
|
-
var s = T(
|
|
740
|
+
var la = typeof window < "u", da = function(t, a) {
|
|
741
|
+
return la ? window.matchMedia(t).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
742
|
+
}, ma = function(t, a) {
|
|
743
|
+
var s = T(da(t)), n = s[0], r = s[1];
|
|
744
744
|
return O(function() {
|
|
745
745
|
var o = !0, i = window.matchMedia(t), l = function() {
|
|
746
746
|
o && r(!!i.matches);
|
|
@@ -750,7 +750,7 @@ var da = typeof window < "u", ma = function(t, a) {
|
|
|
750
750
|
};
|
|
751
751
|
}, [t]), n;
|
|
752
752
|
};
|
|
753
|
-
const
|
|
753
|
+
const ua = async (t, a, s, n) => {
|
|
754
754
|
try {
|
|
755
755
|
const r = await se({
|
|
756
756
|
accessToken: n,
|
|
@@ -775,84 +775,84 @@ const ha = async (t, a, s, n) => {
|
|
|
775
775
|
}, fe = (t) => {
|
|
776
776
|
const a = t[0];
|
|
777
777
|
return Ke(a == null ? void 0 : a.content, 100);
|
|
778
|
-
},
|
|
778
|
+
}, ha = ({
|
|
779
779
|
filteredHistory: t,
|
|
780
780
|
setFilteredHistory: a,
|
|
781
781
|
setFullHistory: s,
|
|
782
782
|
dispatch: n,
|
|
783
783
|
onOpenChange: r
|
|
784
784
|
}) => {
|
|
785
|
-
var
|
|
786
|
-
const { user: o, getAccessToken: i } =
|
|
785
|
+
var k;
|
|
786
|
+
const { user: o, getAccessToken: i } = Y(), l = U({
|
|
787
787
|
id: 0,
|
|
788
788
|
timestamp: "",
|
|
789
789
|
message: ""
|
|
790
|
-
}), [h, d] = T(!1),
|
|
790
|
+
}), [h, d] = T(!1), g = ma("(min-width: 480px)"), { state: u, dispatch: y } = R(ye), [, S] = ae({
|
|
791
791
|
key: te + Ue,
|
|
792
|
-
initialValue:
|
|
793
|
-
}),
|
|
794
|
-
(
|
|
795
|
-
switch (
|
|
792
|
+
initialValue: u.sortDirection
|
|
793
|
+
}), b = t.data.sort(
|
|
794
|
+
(m, p) => {
|
|
795
|
+
switch (u.sortedCell) {
|
|
796
796
|
case "timestamp":
|
|
797
|
-
if (
|
|
798
|
-
return new Date(u
|
|
799
|
-
if (
|
|
800
|
-
return new Date(
|
|
797
|
+
if (u.sortDirection === I.ASC)
|
|
798
|
+
return new Date(m[u.sortedCell]).getTime() - new Date(p[u.sortedCell]).getTime();
|
|
799
|
+
if (u.sortDirection === I.DESC)
|
|
800
|
+
return new Date(p[u.sortedCell]).getTime() - new Date(m[u.sortedCell]).getTime();
|
|
801
801
|
break;
|
|
802
802
|
default:
|
|
803
803
|
return 0;
|
|
804
804
|
}
|
|
805
805
|
return 0;
|
|
806
806
|
}
|
|
807
|
-
),
|
|
808
|
-
switch (
|
|
807
|
+
), C = (m) => {
|
|
808
|
+
switch (u.sortDirection) {
|
|
809
809
|
case !1:
|
|
810
|
-
|
|
810
|
+
S(I.ASC), y({
|
|
811
811
|
type: re,
|
|
812
812
|
payload: {
|
|
813
|
-
sortedCell:
|
|
813
|
+
sortedCell: m,
|
|
814
814
|
sortDirection: I.ASC
|
|
815
815
|
}
|
|
816
816
|
});
|
|
817
817
|
break;
|
|
818
818
|
case I.ASC:
|
|
819
|
-
|
|
819
|
+
S(I.DESC), y({
|
|
820
820
|
type: re,
|
|
821
821
|
payload: {
|
|
822
|
-
sortedCell:
|
|
822
|
+
sortedCell: m,
|
|
823
823
|
sortDirection: I.DESC
|
|
824
824
|
}
|
|
825
825
|
});
|
|
826
826
|
break;
|
|
827
827
|
default:
|
|
828
|
-
|
|
828
|
+
S(I.ASC), y({
|
|
829
829
|
type: re,
|
|
830
830
|
payload: {
|
|
831
|
-
sortedCell:
|
|
831
|
+
sortedCell: m,
|
|
832
832
|
sortDirection: I.ASC
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
835
|
break;
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
|
-
return /* @__PURE__ */ c(
|
|
838
|
+
return /* @__PURE__ */ c(x, { children: [
|
|
839
839
|
/* @__PURE__ */ c(
|
|
840
|
-
|
|
840
|
+
Ee,
|
|
841
841
|
{
|
|
842
842
|
showConfirmation: h,
|
|
843
843
|
setShowConfirmation: d,
|
|
844
844
|
action: async () => {
|
|
845
|
-
const
|
|
845
|
+
const m = l.current;
|
|
846
846
|
try {
|
|
847
|
-
const
|
|
847
|
+
const p = await se({
|
|
848
848
|
accessToken: await i(),
|
|
849
849
|
type: ne.DELETE_CHAT,
|
|
850
850
|
params: {
|
|
851
851
|
userId: (o == null ? void 0 : o.username) || "",
|
|
852
|
-
id:
|
|
852
|
+
id: m.id
|
|
853
853
|
}
|
|
854
854
|
});
|
|
855
|
-
|
|
855
|
+
p.status === 200 && (s(p.data), a({ data: p.data }));
|
|
856
856
|
} catch {
|
|
857
857
|
}
|
|
858
858
|
},
|
|
@@ -872,84 +872,84 @@ const ha = async (t, a, s, n) => {
|
|
|
872
872
|
/* @__PURE__ */ c("li", { children: [
|
|
873
873
|
"First message:",
|
|
874
874
|
" ",
|
|
875
|
-
/* @__PURE__ */ e("span", { className: "text-lg", children: (
|
|
875
|
+
/* @__PURE__ */ e("span", { className: "text-lg", children: (k = l.current) == null ? void 0 : k.message })
|
|
876
876
|
] })
|
|
877
877
|
] })
|
|
878
878
|
]
|
|
879
879
|
}
|
|
880
880
|
),
|
|
881
|
-
/* @__PURE__ */ c(
|
|
882
|
-
/* @__PURE__ */ e(
|
|
883
|
-
|
|
881
|
+
/* @__PURE__ */ c(dt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
|
|
882
|
+
/* @__PURE__ */ e(mt, { children: /* @__PURE__ */ c(oe, { children: [
|
|
883
|
+
g && /* @__PURE__ */ e(M, { className: "sr-only", children: "Row" }),
|
|
884
884
|
/* @__PURE__ */ e(
|
|
885
|
-
|
|
885
|
+
ut,
|
|
886
886
|
{
|
|
887
887
|
cellId: "timestamp",
|
|
888
888
|
align: "left",
|
|
889
|
-
sortDirection:
|
|
890
|
-
sortedCell:
|
|
889
|
+
sortDirection: u.sortDirection,
|
|
890
|
+
sortedCell: u.sortedCell,
|
|
891
891
|
onClick: () => {
|
|
892
|
-
|
|
892
|
+
C("timestamp");
|
|
893
893
|
},
|
|
894
894
|
children: "Date"
|
|
895
895
|
}
|
|
896
896
|
),
|
|
897
|
-
/* @__PURE__ */ e(
|
|
898
|
-
/* @__PURE__ */ e(
|
|
897
|
+
/* @__PURE__ */ e(M, { children: "First message" }),
|
|
898
|
+
/* @__PURE__ */ e(M, { className: "text-right", children: "Actions" })
|
|
899
899
|
] }) }),
|
|
900
|
-
/* @__PURE__ */ e(
|
|
900
|
+
/* @__PURE__ */ e(ht, { children: b.map((m, p) => {
|
|
901
901
|
var w;
|
|
902
|
-
return ((w =
|
|
903
|
-
|
|
902
|
+
return ((w = m == null ? void 0 : m.messages) == null ? void 0 : w.length) > 0 ? /* @__PURE__ */ c(oe, { children: [
|
|
903
|
+
g && /* @__PURE__ */ e(M, { children: p + 1 }),
|
|
904
904
|
/* @__PURE__ */ e(
|
|
905
|
-
|
|
905
|
+
M,
|
|
906
906
|
{
|
|
907
907
|
component: "th",
|
|
908
908
|
scope: "row",
|
|
909
909
|
className: "font-medium text-gray-400 sm:whitespace-nowrap",
|
|
910
|
-
children:
|
|
910
|
+
children: m.timestamp
|
|
911
911
|
}
|
|
912
912
|
),
|
|
913
|
-
/* @__PURE__ */ e(
|
|
914
|
-
/* @__PURE__ */ e(
|
|
913
|
+
/* @__PURE__ */ e(M, { className: "max-w-[100px] text-white sm:max-w-full", children: fe(m.messages) }),
|
|
914
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ c("div", { className: "flex justify-end gap-2", children: [
|
|
915
915
|
/* @__PURE__ */ e(
|
|
916
|
-
|
|
916
|
+
_,
|
|
917
917
|
{
|
|
918
918
|
focusMode: "alt-system",
|
|
919
919
|
noBorder: !0,
|
|
920
920
|
label: "Restore chat",
|
|
921
921
|
onClick: async () => {
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
|
|
922
|
+
const L = await i();
|
|
923
|
+
ua(
|
|
924
|
+
m,
|
|
925
925
|
n,
|
|
926
926
|
r,
|
|
927
|
-
|
|
927
|
+
L
|
|
928
928
|
);
|
|
929
929
|
},
|
|
930
|
-
children: /* @__PURE__ */ e(
|
|
930
|
+
children: /* @__PURE__ */ e(ta, { className: "h-3 w-3", monotone: !0 })
|
|
931
931
|
}
|
|
932
932
|
),
|
|
933
933
|
/* @__PURE__ */ e(
|
|
934
|
-
|
|
934
|
+
_,
|
|
935
935
|
{
|
|
936
936
|
focusMode: "alt-system",
|
|
937
937
|
noBorder: !0,
|
|
938
938
|
label: "Delete chat",
|
|
939
939
|
onClick: () => {
|
|
940
940
|
l.current = {
|
|
941
|
-
id:
|
|
942
|
-
timestamp:
|
|
943
|
-
message: fe(
|
|
941
|
+
id: m.id,
|
|
942
|
+
timestamp: m.timestamp,
|
|
943
|
+
message: fe(m.messages)
|
|
944
944
|
}, d(!h);
|
|
945
945
|
},
|
|
946
|
-
children: /* @__PURE__ */ e("div", { className: "text-red-400", children: /* @__PURE__ */ e(
|
|
946
|
+
children: /* @__PURE__ */ e("div", { className: "text-red-400", children: /* @__PURE__ */ e(qt, { className: "h-3 w-3", monotone: !0 }) })
|
|
947
947
|
}
|
|
948
948
|
)
|
|
949
949
|
] }) })
|
|
950
|
-
] }, `${
|
|
950
|
+
] }, `${N.HISTORY.TITLE}-${m.id}-${p}`) : null;
|
|
951
951
|
}) }),
|
|
952
|
-
/* @__PURE__ */ e(
|
|
952
|
+
/* @__PURE__ */ e(pt, { children: /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(M, { colSpan: 4, children: /* @__PURE__ */ e("div", { children: Z(
|
|
953
953
|
`${t.data.length} chat`,
|
|
954
954
|
t.data.length
|
|
955
955
|
) }) }) }) })
|
|
@@ -963,38 +963,38 @@ function ge(t, a) {
|
|
|
963
963
|
)
|
|
964
964
|
) : t;
|
|
965
965
|
}
|
|
966
|
-
const
|
|
966
|
+
const pa = ({
|
|
967
967
|
onOpenChange: t,
|
|
968
968
|
historyData: a
|
|
969
969
|
}) => {
|
|
970
|
-
const { isAuthenticated: s } =
|
|
970
|
+
const { isAuthenticated: s } = Y(), n = U(null), { dispatch: r } = R(K), { state: o, dispatch: i } = R(ye), [, l] = ae({
|
|
971
971
|
key: te + We,
|
|
972
972
|
initialValue: o.searchString
|
|
973
|
-
}), [h, d] = T(a), [
|
|
973
|
+
}), [h, d] = T(a), [g, u] = T({
|
|
974
974
|
data: h
|
|
975
|
-
}), y = (
|
|
976
|
-
const
|
|
977
|
-
|
|
978
|
-
data:
|
|
979
|
-
}), l(
|
|
975
|
+
}), y = (C) => {
|
|
976
|
+
const f = ge(h, C);
|
|
977
|
+
u({
|
|
978
|
+
data: f
|
|
979
|
+
}), l(C), i({
|
|
980
980
|
type: Je,
|
|
981
|
-
payload: { searchString:
|
|
981
|
+
payload: { searchString: C }
|
|
982
982
|
});
|
|
983
|
-
},
|
|
984
|
-
y(
|
|
985
|
-
},
|
|
986
|
-
|
|
983
|
+
}, S = (C) => {
|
|
984
|
+
y(C.target.value);
|
|
985
|
+
}, b = async (C) => {
|
|
986
|
+
C.preventDefault();
|
|
987
987
|
};
|
|
988
988
|
return O(() => {
|
|
989
|
-
const
|
|
989
|
+
const C = ge(
|
|
990
990
|
h,
|
|
991
991
|
o.searchString
|
|
992
992
|
);
|
|
993
|
-
|
|
994
|
-
data:
|
|
993
|
+
u({
|
|
994
|
+
data: C
|
|
995
995
|
});
|
|
996
|
-
}, [h, o.searchString]), s ?
|
|
997
|
-
/* @__PURE__ */ e("form", { autoComplete: "off", onSubmit:
|
|
996
|
+
}, [h, o.searchString]), s ? g && g.data && /* @__PURE__ */ c(x, { children: [
|
|
997
|
+
/* @__PURE__ */ e("form", { autoComplete: "off", onSubmit: b, children: /* @__PURE__ */ e(
|
|
998
998
|
Xe,
|
|
999
999
|
{
|
|
1000
1000
|
ref: n,
|
|
@@ -1002,7 +1002,7 @@ const fa = ({
|
|
|
1002
1002
|
focusMode: "light",
|
|
1003
1003
|
name: "Search",
|
|
1004
1004
|
label: "Search",
|
|
1005
|
-
onChange:
|
|
1005
|
+
onChange: S,
|
|
1006
1006
|
spacing: { t: 2, b: 2 },
|
|
1007
1007
|
...o.searchString && {
|
|
1008
1008
|
rightElement: /* @__PURE__ */ e(
|
|
@@ -1013,8 +1013,8 @@ const fa = ({
|
|
|
1013
1013
|
noBorder: !0,
|
|
1014
1014
|
size: "small",
|
|
1015
1015
|
onClick: () => {
|
|
1016
|
-
var
|
|
1017
|
-
y(""), (
|
|
1016
|
+
var C;
|
|
1017
|
+
y(""), (C = n.current) != null && C.value && (n.current.value = "", n.current.focus());
|
|
1018
1018
|
},
|
|
1019
1019
|
children: "Reset"
|
|
1020
1020
|
}
|
|
@@ -1023,31 +1023,31 @@ const fa = ({
|
|
|
1023
1023
|
}
|
|
1024
1024
|
) }),
|
|
1025
1025
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ e(
|
|
1026
|
-
|
|
1026
|
+
ha,
|
|
1027
1027
|
{
|
|
1028
|
-
filteredHistory:
|
|
1029
|
-
setFilteredHistory:
|
|
1028
|
+
filteredHistory: g,
|
|
1029
|
+
setFilteredHistory: u,
|
|
1030
1030
|
setFullHistory: d,
|
|
1031
1031
|
dispatch: r,
|
|
1032
1032
|
onOpenChange: t
|
|
1033
1033
|
}
|
|
1034
1034
|
) })
|
|
1035
1035
|
] }) : null;
|
|
1036
|
-
},
|
|
1036
|
+
}, fa = ({
|
|
1037
1037
|
open: t,
|
|
1038
1038
|
onOpenChange: a,
|
|
1039
1039
|
historyData: s
|
|
1040
|
-
}) => /* @__PURE__ */ e(
|
|
1041
|
-
const { isAuthenticated: t, user: a, registeringForPasskey: s
|
|
1040
|
+
}) => /* @__PURE__ */ e(X, { open: t, onOpenChange: a, title: qe, children: /* @__PURE__ */ e(pa, { onOpenChange: a, historyData: s }) }), ga = () => {
|
|
1041
|
+
const { isAuthenticated: t, user: a, registeringForPasskey: s } = Y(), [n, r] = ae({
|
|
1042
1042
|
key: te + Qe,
|
|
1043
1043
|
initialValue: !1
|
|
1044
|
-
}), [,
|
|
1044
|
+
}), [, o, i] = ae({
|
|
1045
1045
|
key: te + Ze,
|
|
1046
1046
|
initialValue: { latitude: 0, longitude: 0, accuracy: 0 }
|
|
1047
|
-
}), [
|
|
1048
|
-
|
|
1049
|
-
},
|
|
1050
|
-
|
|
1047
|
+
}), [l, h] = T(!0), d = j(), { state: g, dispatch: u } = R(K), y = (a == null ? void 0 : a.username) || "", S = (f) => {
|
|
1048
|
+
r(f);
|
|
1049
|
+
}, b = async () => {
|
|
1050
|
+
h(!1), i(), u({
|
|
1051
1051
|
type: me,
|
|
1052
1052
|
payload: {
|
|
1053
1053
|
location: {
|
|
@@ -1057,148 +1057,148 @@ const fa = ({
|
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1060
|
+
const f = await tt();
|
|
1061
|
+
o(f), u({
|
|
1062
1062
|
type: me,
|
|
1063
1063
|
payload: {
|
|
1064
|
-
location:
|
|
1064
|
+
location: f
|
|
1065
1065
|
}
|
|
1066
1066
|
});
|
|
1067
1067
|
};
|
|
1068
1068
|
O(() => {
|
|
1069
|
-
let
|
|
1070
|
-
return
|
|
1071
|
-
|
|
1069
|
+
let f;
|
|
1070
|
+
return l || (f = window.setTimeout(() => {
|
|
1071
|
+
h(!0);
|
|
1072
1072
|
}, 3e3)), () => {
|
|
1073
|
-
clearTimeout(
|
|
1073
|
+
clearTimeout(f);
|
|
1074
1074
|
};
|
|
1075
|
-
}, [
|
|
1076
|
-
const
|
|
1077
|
-
const { city:
|
|
1078
|
-
if (
|
|
1079
|
-
return /* @__PURE__ */ e(
|
|
1080
|
-
/* @__PURE__ */ e(E, { children:
|
|
1075
|
+
}, [l]);
|
|
1076
|
+
const C = (f) => {
|
|
1077
|
+
const { city: k, state: m, country: p, displayName: w } = f || {};
|
|
1078
|
+
if (k && p && m || w)
|
|
1079
|
+
return /* @__PURE__ */ e(x, { children: /* @__PURE__ */ c(F, { alignVertical: "center", columnGap: 4, children: [
|
|
1080
|
+
/* @__PURE__ */ e(E, { children: k && m && p ? /* @__PURE__ */ c("div", { className: "mt-2", children: [
|
|
1081
1081
|
/* @__PURE__ */ c("div", { className: "text-right", children: [
|
|
1082
|
-
|
|
1082
|
+
k,
|
|
1083
1083
|
", ",
|
|
1084
|
-
|
|
1084
|
+
m
|
|
1085
1085
|
] }),
|
|
1086
|
-
/* @__PURE__ */ e("div", { className: "text-right", children:
|
|
1087
|
-
] }) :
|
|
1086
|
+
/* @__PURE__ */ e("div", { className: "text-right", children: p })
|
|
1087
|
+
] }) : w ? /* @__PURE__ */ e("div", { className: "mt-2 text-right", children: w }) : null }),
|
|
1088
1088
|
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
1089
|
-
|
|
1089
|
+
_,
|
|
1090
1090
|
{
|
|
1091
|
-
disabled: !
|
|
1091
|
+
disabled: !l,
|
|
1092
1092
|
size: "small",
|
|
1093
1093
|
className: "mt-2",
|
|
1094
|
-
onClick:
|
|
1094
|
+
onClick: b,
|
|
1095
1095
|
children: /* @__PURE__ */ e(pe, { className: "size-3", monotone: !0 })
|
|
1096
1096
|
}
|
|
1097
1097
|
) })
|
|
1098
1098
|
] }) });
|
|
1099
|
-
const
|
|
1100
|
-
return /* @__PURE__ */ e(
|
|
1099
|
+
const L = at(f == null ? void 0 : f.latitude), B = st(f == null ? void 0 : f.longitude);
|
|
1100
|
+
return /* @__PURE__ */ e(x, { children: /* @__PURE__ */ c(F, { alignVertical: "center", columnGap: 4, children: [
|
|
1101
1101
|
/* @__PURE__ */ c(E, { children: [
|
|
1102
|
-
/* @__PURE__ */ e("div", { children:
|
|
1103
|
-
/* @__PURE__ */ e("div", { children:
|
|
1102
|
+
/* @__PURE__ */ e("div", { children: L }),
|
|
1103
|
+
/* @__PURE__ */ e("div", { children: B })
|
|
1104
1104
|
] }),
|
|
1105
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
1105
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(_, { size: "small", onClick: b, children: /* @__PURE__ */ e(pe, { className: "size-3", monotone: !0 }) }) })
|
|
1106
1106
|
] }) });
|
|
1107
1107
|
};
|
|
1108
|
-
return t &&
|
|
1108
|
+
return t && y ? /* @__PURE__ */ c(x, { children: [
|
|
1109
1109
|
/* @__PURE__ */ e(
|
|
1110
|
-
|
|
1110
|
+
z,
|
|
1111
1111
|
{
|
|
1112
|
-
header:
|
|
1112
|
+
header: N.PREFERENCES.TITLE,
|
|
1113
1113
|
className: "prose-dark dark:prose-lighter",
|
|
1114
|
-
children:
|
|
1115
|
-
[
|
|
1116
|
-
[
|
|
1117
|
-
|
|
1114
|
+
children: $(d, {
|
|
1115
|
+
[N.PREFERENCES.NAME]: y,
|
|
1116
|
+
[N.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ e(
|
|
1117
|
+
Wt,
|
|
1118
1118
|
{
|
|
1119
1119
|
noBorder: !0,
|
|
1120
1120
|
labelHidden: !0,
|
|
1121
|
-
label:
|
|
1122
|
-
name:
|
|
1121
|
+
label: N.PREFERENCES.ENGINE_DETAILS,
|
|
1122
|
+
name: N.PREFERENCES.ENGINE_DETAILS,
|
|
1123
1123
|
onChange: S,
|
|
1124
|
-
checked:
|
|
1124
|
+
checked: n
|
|
1125
1125
|
}
|
|
1126
1126
|
),
|
|
1127
|
-
[
|
|
1127
|
+
[N.PREFERENCES.LOCATION]: C(g == null ? void 0 : g.location)
|
|
1128
1128
|
})
|
|
1129
1129
|
}
|
|
1130
1130
|
),
|
|
1131
|
-
|
|
1132
|
-
|
|
1131
|
+
/* @__PURE__ */ e(
|
|
1132
|
+
z,
|
|
1133
1133
|
{
|
|
1134
1134
|
spacing: { t: 4 },
|
|
1135
1135
|
className: "prose-dark dark:prose-lighter",
|
|
1136
|
-
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ c(
|
|
1137
|
-
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
1136
|
+
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ c(F, { columnGap: 3, alignVertical: "center", children: [
|
|
1137
|
+
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(et, { className: "size-6 text-center" }) }),
|
|
1138
1138
|
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e("div", { children: "Passkey" }) })
|
|
1139
1139
|
] }) }),
|
|
1140
|
-
children: /* @__PURE__ */ c(
|
|
1140
|
+
children: /* @__PURE__ */ c(F, { columnGap: 3, alignVertical: "center", children: [
|
|
1141
1141
|
/* @__PURE__ */ e(E, { children: "Sign in without a password using a passkey (face or fingerprint sign-in)." }),
|
|
1142
1142
|
/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(ee, { spacing: { t: 2 }, onClick: s, children: "Create a Passkey" }) })
|
|
1143
1143
|
] })
|
|
1144
1144
|
}
|
|
1145
1145
|
)
|
|
1146
1146
|
] }) : null;
|
|
1147
|
-
},
|
|
1147
|
+
}, Ca = ({
|
|
1148
1148
|
open: t,
|
|
1149
1149
|
onOpenChange: a
|
|
1150
|
-
}) => /* @__PURE__ */ e(
|
|
1151
|
-
const { state: t } =
|
|
1150
|
+
}) => /* @__PURE__ */ e(X, { open: t, onOpenChange: a, title: nt, children: /* @__PURE__ */ e(ga, {}) }), ka = () => {
|
|
1151
|
+
const { state: t } = R(K), [a, s] = T(!1), [n, r] = T(!1), [o, i] = T(!1), [l, h] = T(!1), [d, g] = T([]), [u, y] = T(!1), [S, b] = T({
|
|
1152
1152
|
done: !1,
|
|
1153
1153
|
progress: !1,
|
|
1154
1154
|
timestamp: Date.now()
|
|
1155
|
-
}), { logout:
|
|
1155
|
+
}), { logout: C, getAccessToken: f, user: k } = Y(), m = () => {
|
|
1156
1156
|
s(!a);
|
|
1157
|
-
},
|
|
1157
|
+
}, p = () => {
|
|
1158
1158
|
r(!n);
|
|
1159
1159
|
}, w = () => {
|
|
1160
1160
|
i(!o);
|
|
1161
|
-
},
|
|
1161
|
+
}, L = () => {
|
|
1162
1162
|
h(!l);
|
|
1163
|
-
},
|
|
1163
|
+
}, B = async (H) => {
|
|
1164
1164
|
const q = Date.now();
|
|
1165
|
-
if (
|
|
1166
|
-
|
|
1165
|
+
if (H && !(!k || !t || S.progress || S.done === !0 && q - S.timestamp < 5e3)) {
|
|
1166
|
+
b({
|
|
1167
1167
|
done: !0,
|
|
1168
1168
|
progress: !0,
|
|
1169
1169
|
timestamp: q
|
|
1170
1170
|
});
|
|
1171
1171
|
try {
|
|
1172
|
-
const
|
|
1173
|
-
accessToken: await
|
|
1172
|
+
const V = await se({
|
|
1173
|
+
accessToken: await f(),
|
|
1174
1174
|
type: ne.GET_CHATS,
|
|
1175
1175
|
params: {
|
|
1176
|
-
userId:
|
|
1176
|
+
userId: k.username
|
|
1177
1177
|
}
|
|
1178
1178
|
});
|
|
1179
|
-
|
|
1179
|
+
V.status === 200 && (g(V.data), b({
|
|
1180
1180
|
done: !0,
|
|
1181
1181
|
progress: !1,
|
|
1182
1182
|
timestamp: Date.now()
|
|
1183
1183
|
}));
|
|
1184
1184
|
} catch {
|
|
1185
|
-
|
|
1185
|
+
b({
|
|
1186
1186
|
done: !0,
|
|
1187
1187
|
progress: !1,
|
|
1188
1188
|
timestamp: Date.now()
|
|
1189
1189
|
});
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
},
|
|
1193
|
-
y(!
|
|
1192
|
+
}, J = () => {
|
|
1193
|
+
y(!u);
|
|
1194
1194
|
};
|
|
1195
|
-
return /* @__PURE__ */ c(
|
|
1195
|
+
return /* @__PURE__ */ c(x, { children: [
|
|
1196
1196
|
/* @__PURE__ */ e(
|
|
1197
|
-
|
|
1197
|
+
Ee,
|
|
1198
1198
|
{
|
|
1199
|
-
showConfirmation:
|
|
1199
|
+
showConfirmation: u,
|
|
1200
1200
|
setShowConfirmation: y,
|
|
1201
|
-
action:
|
|
1201
|
+
action: C,
|
|
1202
1202
|
customStrings: {
|
|
1203
1203
|
confirmAction: ue,
|
|
1204
1204
|
cancelAction: "Cancel",
|
|
@@ -1207,66 +1207,66 @@ const fa = ({
|
|
|
1207
1207
|
children: /* @__PURE__ */ e("p", { children: "Are you sure you want to log out?" })
|
|
1208
1208
|
}
|
|
1209
1209
|
),
|
|
1210
|
-
/* @__PURE__ */ e(
|
|
1211
|
-
/* @__PURE__ */ e(
|
|
1210
|
+
/* @__PURE__ */ e(Ca, { open: a, onOpenChange: s }),
|
|
1211
|
+
/* @__PURE__ */ e(ia, { open: n, onOpenChange: r }),
|
|
1212
1212
|
/* @__PURE__ */ e(
|
|
1213
|
-
|
|
1213
|
+
fa,
|
|
1214
1214
|
{
|
|
1215
1215
|
open: o,
|
|
1216
1216
|
onOpenChange: i,
|
|
1217
1217
|
historyData: d
|
|
1218
1218
|
}
|
|
1219
1219
|
),
|
|
1220
|
-
/* @__PURE__ */ e(
|
|
1220
|
+
/* @__PURE__ */ e(na, { open: l, onOpenChange: h }),
|
|
1221
1221
|
/* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e("div", { className: "absolute bottom-[-28px] right-[-7px]", children: /* @__PURE__ */ c(
|
|
1222
|
-
|
|
1222
|
+
xe,
|
|
1223
1223
|
{
|
|
1224
1224
|
mode: "dark",
|
|
1225
1225
|
focusMode: "light",
|
|
1226
|
-
trigger: /* @__PURE__ */ e(
|
|
1226
|
+
trigger: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(aa, {}) }),
|
|
1227
1227
|
defaultPlacement: "bottom-end",
|
|
1228
|
-
onOpenChange:
|
|
1228
|
+
onOpenChange: B,
|
|
1229
1229
|
children: [
|
|
1230
1230
|
/* @__PURE__ */ e(
|
|
1231
|
-
|
|
1231
|
+
D,
|
|
1232
1232
|
{
|
|
1233
1233
|
label: "Profile",
|
|
1234
|
-
onClick:
|
|
1235
|
-
icon: /* @__PURE__ */ e(
|
|
1234
|
+
onClick: m,
|
|
1235
|
+
icon: /* @__PURE__ */ e(ea, {})
|
|
1236
1236
|
}
|
|
1237
1237
|
),
|
|
1238
1238
|
/* @__PURE__ */ e(
|
|
1239
|
-
|
|
1239
|
+
D,
|
|
1240
1240
|
{
|
|
1241
1241
|
label: Ne,
|
|
1242
|
-
onClick:
|
|
1243
|
-
icon: /* @__PURE__ */ e(
|
|
1242
|
+
onClick: p,
|
|
1243
|
+
icon: /* @__PURE__ */ e(Jt, {})
|
|
1244
1244
|
}
|
|
1245
1245
|
),
|
|
1246
1246
|
/* @__PURE__ */ e(
|
|
1247
|
-
|
|
1247
|
+
D,
|
|
1248
1248
|
{
|
|
1249
1249
|
label: "History",
|
|
1250
1250
|
onClick: w,
|
|
1251
|
-
icon: /* @__PURE__ */ e(
|
|
1251
|
+
icon: /* @__PURE__ */ e(Qt, {})
|
|
1252
1252
|
}
|
|
1253
1253
|
),
|
|
1254
1254
|
/* @__PURE__ */ e(
|
|
1255
|
-
|
|
1255
|
+
D,
|
|
1256
1256
|
{
|
|
1257
1257
|
label: "About",
|
|
1258
|
-
onClick:
|
|
1259
|
-
icon: /* @__PURE__ */ e(
|
|
1258
|
+
onClick: L,
|
|
1259
|
+
icon: /* @__PURE__ */ e(Zt, {})
|
|
1260
1260
|
}
|
|
1261
1261
|
),
|
|
1262
|
-
t && t.id && !t.isComponent && /* @__PURE__ */ c(
|
|
1263
|
-
/* @__PURE__ */ e(
|
|
1262
|
+
t && t.id && !t.isComponent && /* @__PURE__ */ c(x, { children: [
|
|
1263
|
+
/* @__PURE__ */ e(Rt, {}),
|
|
1264
1264
|
/* @__PURE__ */ e(
|
|
1265
|
-
|
|
1265
|
+
D,
|
|
1266
1266
|
{
|
|
1267
1267
|
label: "Log out",
|
|
1268
|
-
onClick:
|
|
1269
|
-
icon: /* @__PURE__ */ e("div", { className: "text-red-700", children: /* @__PURE__ */ e(
|
|
1268
|
+
onClick: J,
|
|
1269
|
+
icon: /* @__PURE__ */ e("div", { className: "text-red-700", children: /* @__PURE__ */ e(Xt, { monotone: !0 }) })
|
|
1270
1270
|
}
|
|
1271
1271
|
)
|
|
1272
1272
|
] })
|
|
@@ -1276,5 +1276,5 @@ const fa = ({
|
|
|
1276
1276
|
] });
|
|
1277
1277
|
};
|
|
1278
1278
|
export {
|
|
1279
|
-
|
|
1279
|
+
ka as default
|
|
1280
1280
|
};
|