@versini/sassysaint 1.0.9 → 1.0.10
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.C6D9sIPY.js → App.D3bDw_9b.js} +25 -25
- package/dist/chunks/{LazyHeader.p9mJYmhc.js → LazyHeader.dzy1rQlY.js} +19 -19
- package/dist/chunks/{LazyMarkdownWithExtra.CA6Eg_N6.js → LazyMarkdownWithExtra.B2OqwN1y.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.uUafovZf.js → LazyMessageAssistant.D3A035f8.js} +4 -4
- package/dist/chunks/{index.BcV6McvW.3HAbnzVE.js → index.BcV6McvW.De7qagut.js} +1 -1
- package/dist/chunks/{index.t9wD3Z9D.js → index.Ctkx8F84.js} +1638 -1625
- package/dist/chunks/{useLocalStorage.DagJSzA9.js → useLocalStorage.D_0bF6Yy.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as a, Fragment as me } from "react/jsx-runtime";
|
|
2
|
-
import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q,
|
|
3
|
-
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.
|
|
4
|
-
import pr, { useState as R, useEffect as
|
|
2
|
+
import { O as Ve, s as Be, S as De, f$1 as $e, M as ze, U as Ue, r as Fe, o as Pe, n as ge, l as Ge, a as W, isLastMessageFromRole as ye, x as fe, CANCEL as je, CLEAR as We, ACTION_RESET as he, ROLE_ASSISTANT as L, ROLE_INTERNAL as X, ROLE_USER as Q, Wr as K, ROLE_SYSTEM as Ye, ROLE_HIDDEN as qe, MODEL_GPT4 as xe, STATS_SEPARATOR as ae, ACTION_MODEL as be, ACTION_MESSAGE as H, TYPE_QUESTION as Je, SEND as Qe, ACTION_STREAMING as ke, ERROR_MESSAGE as Xe, getMessageContaintWrapperClass as Ke, MessagesContainerHeader as Ze, ACTION_SEARCH as er, ACTION_SORT as rr, ACTION_RESTORE as tr, ACTION_LOCATION as _, getCurrentGeoLocation as or, c as sr, AppFooter as ar, LOCAL_STORAGE_PREFIX as Y, LOCAL_STORAGE_SEARCH as nr, LOCAL_STORAGE_SORT as lr, LOCAL_STORAGE_LOCATION as cr } from "./index.Ctkx8F84.js";
|
|
3
|
+
import { g as Ce, AppContext as U, restCall as ir, E as q, serviceCall as ne, SERVICE_TYPES as le, HistoryContext as dr, k as ur } from "./useLocalStorage.D_0bF6Yy.js";
|
|
4
|
+
import pr, { useState as R, useEffect as E, useRef as x, useLayoutEffect as D, useContext as Z, lazy as mr, Suspense as ce, useReducer as ie, useCallback as gr } from "react";
|
|
5
5
|
import y from "clsx";
|
|
6
6
|
const yr = ({
|
|
7
7
|
className: e,
|
|
@@ -104,7 +104,7 @@ const yr = ({
|
|
|
104
104
|
const [u, i] = R(!1), h = Cr({ kind: r, className: o, spacing: g }), b = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), k = () => {
|
|
105
105
|
i(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
106
106
|
};
|
|
107
|
-
return
|
|
107
|
+
return E(() => {
|
|
108
108
|
let p;
|
|
109
109
|
return u && (p = window.setTimeout(() => {
|
|
110
110
|
i(!1);
|
|
@@ -158,14 +158,14 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
158
158
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
159
159
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
160
160
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
161
|
-
}),
|
|
161
|
+
}), Er = ({
|
|
162
162
|
focusMode: e
|
|
163
163
|
}) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
164
164
|
"focus:outline-focus-dark": e === "dark",
|
|
165
165
|
"focus:outline-focus-light": e === "light",
|
|
166
166
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
167
167
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
168
|
-
}),
|
|
168
|
+
}), Nr = ({
|
|
169
169
|
noBorder: e,
|
|
170
170
|
error: r
|
|
171
171
|
}) => y("border-2", {
|
|
@@ -245,8 +245,8 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
245
245
|
r,
|
|
246
246
|
Sr(),
|
|
247
247
|
Ar({ mode: g }),
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
Er({ focusMode: t }),
|
|
249
|
+
Nr({
|
|
250
250
|
noBorder: n,
|
|
251
251
|
error: l
|
|
252
252
|
}),
|
|
@@ -308,12 +308,12 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
308
308
|
helperTextOnFocus: T = !1,
|
|
309
309
|
rightElement: m,
|
|
310
310
|
onChange: d,
|
|
311
|
-
onFocus:
|
|
311
|
+
onFocus: N,
|
|
312
312
|
onBlur: V,
|
|
313
313
|
spacing: O,
|
|
314
314
|
...Se
|
|
315
315
|
}, Ae) => {
|
|
316
|
-
const v = x(null),
|
|
316
|
+
const v = x(null), Ee = $e([Ae, v]), B = x(null), F = x(80), re = x(-25), M = x(null), te = x(30), P = x(null), I = ze({ id: e, prefix: `${ge}-` }), [Ne, Oe] = R(0), [we, oe] = R(
|
|
317
317
|
!!(!T && p)
|
|
318
318
|
), Le = `${r} error, ${p}`, w = Lr({
|
|
319
319
|
className: n,
|
|
@@ -338,7 +338,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
338
338
|
}), Me = (C) => {
|
|
339
339
|
Re(C.target.value);
|
|
340
340
|
}, Ie = (C) => {
|
|
341
|
-
T && p && oe(!0),
|
|
341
|
+
T && p && oe(!0), N && N(C);
|
|
342
342
|
}, _e = (C) => {
|
|
343
343
|
T && p && !A && oe(!1), V && V(C);
|
|
344
344
|
};
|
|
@@ -384,7 +384,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
384
384
|
/* @__PURE__ */ a(
|
|
385
385
|
"textarea",
|
|
386
386
|
{
|
|
387
|
-
ref:
|
|
387
|
+
ref: Ee,
|
|
388
388
|
id: I,
|
|
389
389
|
name: r,
|
|
390
390
|
disabled: h,
|
|
@@ -393,7 +393,7 @@ const Sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
393
393
|
rows: 1,
|
|
394
394
|
...p && { "aria-describedby": `${I}-helper` },
|
|
395
395
|
...t && { "aria-invalid": "true" },
|
|
396
|
-
...m && !s && { style: { paddingRight:
|
|
396
|
+
...m && !s && { style: { paddingRight: Ne } },
|
|
397
397
|
value: A,
|
|
398
398
|
onChange: Me,
|
|
399
399
|
onFocus: Ie,
|
|
@@ -462,7 +462,7 @@ const Vr = () => {
|
|
|
462
462
|
type: he
|
|
463
463
|
});
|
|
464
464
|
};
|
|
465
|
-
return
|
|
465
|
+
return E(() => {
|
|
466
466
|
(r == null ? void 0 : r.streaming) === !0 && !s.current && t.current && (s.current = !0, t.current.focus()), (r == null ? void 0 : r.streaming) === !1 && (s.current = !1);
|
|
467
467
|
}, [r]), ye(L, r) ? /* @__PURE__ */ a("div", { className: o, children: /* @__PURE__ */ a(
|
|
468
468
|
fe,
|
|
@@ -475,7 +475,7 @@ const Vr = () => {
|
|
|
475
475
|
children: r != null && r.streaming ? je : We
|
|
476
476
|
}
|
|
477
477
|
) }) : null;
|
|
478
|
-
}, ue = mr(() => import("./LazyMessageAssistant.
|
|
478
|
+
}, ue = mr(() => import("./LazyMessageAssistant.D3A035f8.js").then((e) => e.LazyMessageAssistant)), Br = () => {
|
|
479
479
|
const { state: e } = Z(U);
|
|
480
480
|
return /* @__PURE__ */ S(me, { children: [
|
|
481
481
|
e && e.messages.length > 0 && e.messages.map((r, o) => {
|
|
@@ -521,7 +521,7 @@ const Vr = () => {
|
|
|
521
521
|
const { state: e, dispatch: r } = Z(U), [o, t] = R(""), { getAccessToken: s, user: n } = K(), l = x(!1), c = x(null), g = x(
|
|
522
522
|
null
|
|
523
523
|
);
|
|
524
|
-
|
|
524
|
+
E(() => {
|
|
525
525
|
(async () => {
|
|
526
526
|
var h;
|
|
527
527
|
if (!e || e.messages.length === 0) {
|
|
@@ -554,10 +554,10 @@ const Vr = () => {
|
|
|
554
554
|
z(r, !1);
|
|
555
555
|
break;
|
|
556
556
|
}
|
|
557
|
-
const d = p.decode(m, { stream: !0 }),
|
|
558
|
-
if (
|
|
559
|
-
const V = d.substring(0,
|
|
560
|
-
d.substring(
|
|
557
|
+
const d = p.decode(m, { stream: !0 }), N = d.indexOf(ae);
|
|
558
|
+
if (N !== -1) {
|
|
559
|
+
const V = d.substring(0, N), O = JSON.parse(
|
|
560
|
+
d.substring(N + ae.length)
|
|
561
561
|
);
|
|
562
562
|
r({
|
|
563
563
|
type: be,
|
|
@@ -608,7 +608,7 @@ const Vr = () => {
|
|
|
608
608
|
}
|
|
609
609
|
}), t("");
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return E(() => {
|
|
612
612
|
(e == null ? void 0 : e.streaming) === !1 && !l.current && c.current && (l.current = !0, c.current.focus()), (e == null ? void 0 : e.streaming) === !0 && l.current === !0 && (l.current = !1);
|
|
613
613
|
}, [e]), /* @__PURE__ */ a("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ a(
|
|
614
614
|
Te,
|
|
@@ -782,7 +782,7 @@ function ve({ isComponent: e = !1 }) {
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}, [c]);
|
|
785
|
-
return
|
|
785
|
+
return E(() => {
|
|
786
786
|
k.version !== "" || o.current || (async () => {
|
|
787
787
|
try {
|
|
788
788
|
o.current = !0;
|
|
@@ -794,7 +794,7 @@ function ve({ isComponent: e = !1 }) {
|
|
|
794
794
|
} catch {
|
|
795
795
|
}
|
|
796
796
|
})();
|
|
797
|
-
}, [k, s]),
|
|
797
|
+
}, [k, s]), E(() => {
|
|
798
798
|
t && ((!c || c.accuracy === 0) && (async () => {
|
|
799
799
|
const m = await or();
|
|
800
800
|
g(m), i({
|
|
@@ -809,7 +809,7 @@ function ve({ isComponent: e = !1 }) {
|
|
|
809
809
|
location: c
|
|
810
810
|
}
|
|
811
811
|
}));
|
|
812
|
-
}, [t, c, g, u.location]),
|
|
812
|
+
}, [t, c, g, u.location]), E(() => {
|
|
813
813
|
!u.location || u.location.accuracy === 0 || u.location.city || r.current || (async () => {
|
|
814
814
|
var m;
|
|
815
815
|
r.current = !0;
|
|
@@ -839,7 +839,7 @@ function ve({ isComponent: e = !1 }) {
|
|
|
839
839
|
T();
|
|
840
840
|
}
|
|
841
841
|
})();
|
|
842
|
-
}, [u, c, s, T]),
|
|
842
|
+
}, [u, c, s, T]), E(() => {
|
|
843
843
|
var m;
|
|
844
844
|
(m = document.getElementById("logo")) == null || m.classList.add("fadeOut"), setTimeout(() => {
|
|
845
845
|
var d;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { O as D, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as F, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as
|
|
2
|
+
import { O as D, i$1 as le, N as de, p as De, o as _e, g as A, N$1 as _, CARDS as C, renderDataAsList as F, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Ve, durationFormatter as Ce, NA as Pe, ROLE_ASSISTANT as Fe, extractAverage as Ge, GPT4_MAX_TOKENS as $e, Wr as U, STATS as Ne, b as q, j as M, x as Z, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ke, truncate as Ye, ACTION_SORT as re, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as Je, HISTORY_TITLE as qe, LOCAL_STORAGE_CHAT_DETAILS as Qe, LOCAL_STORAGE_LOCATION as Ze, G$1 as et, f$2 as tt, ACTION_LOCATION as me, getCurrentGeoLocation as st, convertLatitudeToDMS as at, convertLongitudeToDMS as nt, PROFILE_TITLE as rt, LOG_OUT as ue } from "./index.Ctkx8F84.js";
|
|
3
3
|
import * as ce from "react";
|
|
4
|
-
import ot, { forwardRef as Te, useState as T, useRef as
|
|
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.
|
|
4
|
+
import ot, { forwardRef as Te, useState as T, useRef as G, useContext as R, useEffect as L, Suspense as ct, lazy as it, useId as lt } from "react";
|
|
5
|
+
import { g as dt, AppContext as j, serviceCall as se, SERVICE_TYPES as ae, HistoryContext as ye, E as te, k as v, et as mt, at as ut, lt as oe, J as H, ct as ht, st as pt, rt as ft } from "./useLocalStorage.D_0bF6Yy.js";
|
|
6
6
|
import k from "clsx";
|
|
7
7
|
import { useFloatingTree as be, useFloatingNodeId as gt, useListItem as Se, useFloating as Ct, offset as Nt, flip as Tt, shift as yt, autoUpdate as bt, useClick as St, useRole as wt, useDismiss as kt, useListNavigation as Et, useTypeahead as xt, useInteractions as vt, useMergeRefs as we, FloatingNode as At, FloatingList as It, FloatingPortal as Ht, FloatingFocusManager as Mt, FloatingTree as Rt } from "@floating-ui/react";
|
|
8
8
|
const ie = ce.createContext({
|
|
@@ -37,7 +37,7 @@ const ie = ce.createContext({
|
|
|
37
37
|
focusMode: d = "system",
|
|
38
38
|
...h
|
|
39
39
|
}, m) => {
|
|
40
|
-
const [N, u] = T(!1), [y, b] = T(!1), [S, f] = T(null), E =
|
|
40
|
+
const [N, u] = T(!1), [y, b] = T(!1), [S, f] = T(null), E = G([]), i = G([]), 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) => {
|
|
@@ -197,7 +197,7 @@ const Lt = ({ className: e, ...s }) => {
|
|
|
197
197
|
header: "p-4 mb-0",
|
|
198
198
|
close: "p-4"
|
|
199
199
|
}), K = (e) => it(
|
|
200
|
-
() => import("./index.BcV6McvW.
|
|
200
|
+
() => import("./index.BcV6McvW.De7qagut.js").then((s) => ({
|
|
201
201
|
default: s[e]
|
|
202
202
|
}))
|
|
203
203
|
), _t = K("Modal"), zt = K("ModalClose"), Bt = K("ModalContent"), Vt = K("ModalDescription"), Pt = K("ModalHeading"), Y = ({
|
|
@@ -210,7 +210,7 @@ const Lt = ({ className: e, ...s }) => {
|
|
|
210
210
|
kind: l = P,
|
|
211
211
|
className: d
|
|
212
212
|
}) => {
|
|
213
|
-
const h =
|
|
213
|
+
const h = G(""), m = Dt({ className: d, kind: l, borderMode: o });
|
|
214
214
|
return L(() => (e && (h.current = document.title, document.title = `${a} | ${h.current}`), () => {
|
|
215
215
|
e && (document.title = h.current);
|
|
216
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: [
|
|
@@ -236,7 +236,7 @@ const Lt = ({ className: e, ...s }) => {
|
|
|
236
236
|
/* @__PURE__ */ t(Vt, { className: m.content, children: n }),
|
|
237
237
|
r && /* @__PURE__ */ t("div", { className: m.footer, children: r })
|
|
238
238
|
] }) }) });
|
|
239
|
-
}, Ft = () => k("peer", "h-6", "w-11", "rounded-full"),
|
|
239
|
+
}, Ft = () => k("peer", "h-6", "w-11", "rounded-full"), Gt = ({
|
|
240
240
|
focusMode: e
|
|
241
241
|
}) => k(
|
|
242
242
|
"peer-focus:outline",
|
|
@@ -248,7 +248,7 @@ const Lt = ({ className: e, ...s }) => {
|
|
|
248
248
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
249
249
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
250
250
|
}
|
|
251
|
-
),
|
|
251
|
+
), $t = () => k(
|
|
252
252
|
"peer-checked:after:translate-x-full",
|
|
253
253
|
// background color when checked
|
|
254
254
|
"peer-checked:bg-violet-500",
|
|
@@ -298,9 +298,9 @@ const Lt = ({ className: e, ...s }) => {
|
|
|
298
298
|
toggle: k(
|
|
299
299
|
Ft(),
|
|
300
300
|
jt({ mode: e, noBorder: r }),
|
|
301
|
-
|
|
301
|
+
Gt({ focusMode: s }),
|
|
302
302
|
Ut(),
|
|
303
|
-
|
|
303
|
+
$t()
|
|
304
304
|
),
|
|
305
305
|
label: Kt({ mode: e, labelHidden: a }),
|
|
306
306
|
input: "peer sr-only",
|
|
@@ -590,11 +590,11 @@ const Lt = ({ className: e, ...s }) => {
|
|
|
590
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" })
|
|
591
591
|
}
|
|
592
592
|
);
|
|
593
|
-
function
|
|
593
|
+
function $(e) {
|
|
594
594
|
return lt();
|
|
595
595
|
}
|
|
596
596
|
const ns = ({ stats: e }) => {
|
|
597
|
-
const s = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], r =
|
|
597
|
+
const s = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], r = $(), o = $();
|
|
598
598
|
return /* @__PURE__ */ c(w, { children: [
|
|
599
599
|
/* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
|
|
600
600
|
_,
|
|
@@ -602,8 +602,8 @@ const ns = ({ stats: e }) => {
|
|
|
602
602
|
header: C.ABOUT.TITLE_CLIENT,
|
|
603
603
|
className: "prose-dark dark:prose-lighter",
|
|
604
604
|
children: F(r, {
|
|
605
|
-
[C.ABOUT.VERSION]: "3.4.
|
|
606
|
-
[C.ABOUT.BUILD_TIMESTAMP]: "
|
|
605
|
+
[C.ABOUT.VERSION]: "3.4.4",
|
|
606
|
+
[C.ABOUT.BUILD_TIMESTAMP]: "08/01/2024 08:14 AM EDT"
|
|
607
607
|
})
|
|
608
608
|
}
|
|
609
609
|
) }),
|
|
@@ -635,7 +635,7 @@ const ns = ({ stats: e }) => {
|
|
|
635
635
|
return ((n = a == null ? void 0 : a.message) == null ? void 0 : n.role) === Fe && typeof ((r = a == null ? void 0 : a.message) == null ? void 0 : r.processingTime) == "number";
|
|
636
636
|
}
|
|
637
637
|
).map((a) => a.message.processingTime);
|
|
638
|
-
return
|
|
638
|
+
return Ge({
|
|
639
639
|
data: s,
|
|
640
640
|
formatter: os
|
|
641
641
|
});
|
|
@@ -643,7 +643,7 @@ const ns = ({ stats: e }) => {
|
|
|
643
643
|
isAuthenticated: e,
|
|
644
644
|
stats: s
|
|
645
645
|
}) => {
|
|
646
|
-
const { state: a } = R(j), n =
|
|
646
|
+
const { state: a } = R(j), n = $e - Number(a == null ? void 0 : a.usage), r = $(), o = $();
|
|
647
647
|
return e ? /* @__PURE__ */ c(w, { children: [
|
|
648
648
|
a && a.messages.length > 0 && /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
|
|
649
649
|
_,
|
|
@@ -783,7 +783,7 @@ const hs = async (e, s, a, n) => {
|
|
|
783
783
|
onOpenChange: r
|
|
784
784
|
}) => {
|
|
785
785
|
var i;
|
|
786
|
-
const { user: o, getAccessToken: l } = U(), d =
|
|
786
|
+
const { user: o, getAccessToken: l } = U(), d = G({
|
|
787
787
|
id: 0,
|
|
788
788
|
timestamp: "",
|
|
789
789
|
message: ""
|
|
@@ -967,7 +967,7 @@ const fs = ({
|
|
|
967
967
|
onOpenChange: e,
|
|
968
968
|
historyData: s
|
|
969
969
|
}) => {
|
|
970
|
-
const { isAuthenticated: a } = U(), n =
|
|
970
|
+
const { isAuthenticated: a } = U(), n = G(null), { dispatch: r } = R(j), { state: o, dispatch: l } = R(ye), [, d] = te({
|
|
971
971
|
key: ee + We,
|
|
972
972
|
initialValue: o.searchString
|
|
973
973
|
}), [h, m] = T(s), [N, u] = T({
|
|
@@ -1044,7 +1044,7 @@ const fs = ({
|
|
|
1044
1044
|
}), [, l, d] = te({
|
|
1045
1045
|
key: ee + Ze,
|
|
1046
1046
|
initialValue: { latitude: 0, longitude: 0, accuracy: 0 }
|
|
1047
|
-
}), [h, m] = T(!0), N =
|
|
1047
|
+
}), [h, m] = T(!0), N = $(), { state: u, dispatch: y } = R(j), b = (s == null ? void 0 : s.username) || "", S = (i) => {
|
|
1048
1048
|
o(i);
|
|
1049
1049
|
}, f = async () => {
|
|
1050
1050
|
m(!1), d(), y({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.D3A035f8.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.
|
|
3
|
-
import { AppContext as Ei, E as Ai } from "./useLocalStorage.
|
|
2
|
+
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.Ctkx8F84.js";
|
|
3
|
+
import { AppContext as Ei, E as Ai } from "./useLocalStorage.D_0bF6Yy.js";
|
|
4
4
|
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.
|
|
5
|
+
import { T as ut } from "./App.D3bDw_9b.js";
|
|
6
6
|
import cn from "clsx";
|
|
7
7
|
const Li = ({
|
|
8
8
|
spinnerRef: e,
|
|
@@ -8618,7 +8618,7 @@ function sf(e) {
|
|
|
8618
8618
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8619
8619
|
}
|
|
8620
8620
|
const cf = Ii(
|
|
8621
|
-
() => import("./LazyMarkdownWithExtra.
|
|
8621
|
+
() => import("./LazyMarkdownWithExtra.B2OqwN1y.js")
|
|
8622
8622
|
), In = {
|
|
8623
8623
|
MODEL: "Model",
|
|
8624
8624
|
PLUGIN: "Plugin",
|
|
@@ -3,7 +3,7 @@ import y from "clsx";
|
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
|
|
5
5
|
import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
|
|
6
|
-
import { S as j } from "./index.
|
|
6
|
+
import { S as j } from "./index.Ctkx8F84.js";
|
|
7
7
|
const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
|
|
8
8
|
alert: null,
|
|
9
9
|
alertdialog: null,
|