@versini/sassysaint 7.2.2 → 7.2.4
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.Bvwfu_LF.js +5888 -0
- package/dist/chunks/{ChatBubbleAssistant.Bbf47pgU.js → ChatBubbleAssistant.BfHYzXjt.js} +4 -4
- package/dist/chunks/{HeaderEntry.ChT4kr64.js → HeaderEntry.lXhWh2KT.js} +350 -356
- package/dist/chunks/{MarkdownWithExtra.CVSBeRVq.js → MarkdownWithExtra.B7mInZQZ.js} +451 -450
- package/dist/chunks/index.CEGm_qGg.js +4864 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/App.WHYUIJUD.js +0 -6759
- package/dist/chunks/index.CLI5DiPT.js +0 -3872
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t, Fragment as D } from "react/jsx-runtime";
|
|
2
|
-
import { f as $,
|
|
3
|
-
import { i as oe,
|
|
4
|
-
import wt, { useRef as v, useState as C, useContext as se, useCallback as Oe, useEffect as
|
|
2
|
+
import { f as $, useServerCapabilities as Xe, R as P, CARDS as k, renderDataAsList as ne, pluralize as pe, ABOUT_TITLE as qe, un as G, INFINITE_SCROLL_LIMIT as Se, INFINITE_SCROLL_THRESHOLD as Ne, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT as Qe, re as J, serviceCall as ee, SERVICE_TYPES as te, setNewProvider as Ze, ACTION_SORT as we, useChatsHistory as Je, LOCAL_STORAGE_SEARCH as et, HISTORY_TITLE as tt, fe as me, C as K, ACTION_SEARCH as rt, debounce as at, M as nt, isElectron as ot, L as W, j as M, l as ve, durationFormatter as st, useUserChatStats as lt, PROFILE_TITLE as ct, useUserPreferences as Re, PROMPTS_DESCRIPTION as it, LOCAL_STORAGE_CHAT_DETAILS as dt, SETTINGS_TITLE as ut, APP_NAME as mt, getCurrentGeoLocation as ht, LOG_OUT as Ae } from "./index.CEGm_qGg.js";
|
|
3
|
+
import { i as oe, Ze as re, HistoryContext as Le, ChatContext as Pe, E as ye, ConfirmationPanel as Me, Ue as ft, je as pt, Fe as de, Le as L, De as gt, $e as yt, p as bt, z as xt, We as kt, CHAT_RESTORE as Ct, B as q, m as Tt, _e as Et, me as St, R as Q, P as Nt } from "./App.Bvwfu_LF.js";
|
|
4
|
+
import wt, { useRef as v, useState as C, useContext as se, useCallback as Oe, useEffect as V, Fragment as vt, useLayoutEffect as Z, useMemo as ze, useId as At, useReducer as It } from "react";
|
|
5
5
|
import g from "clsx";
|
|
6
6
|
const _t = ({
|
|
7
7
|
className: e,
|
|
8
|
-
viewBox:
|
|
9
|
-
title:
|
|
10
|
-
monotone:
|
|
8
|
+
viewBox: n,
|
|
9
|
+
title: a,
|
|
10
|
+
monotone: o,
|
|
11
11
|
...r
|
|
12
12
|
}) => /* @__PURE__ */ d(
|
|
13
13
|
$,
|
|
14
14
|
{
|
|
15
15
|
defaultViewBox: "0 0 512 512",
|
|
16
16
|
size: "size-5",
|
|
17
|
-
viewBox:
|
|
17
|
+
viewBox: n,
|
|
18
18
|
className: e,
|
|
19
|
-
title:
|
|
19
|
+
title: a || "Back",
|
|
20
20
|
...r,
|
|
21
21
|
children: [
|
|
22
22
|
/* @__PURE__ */ t(
|
|
23
23
|
"path",
|
|
24
24
|
{
|
|
25
25
|
d: "M66.6 320c0 1.8.1 3.5.4 5.3C84.9 431.3 177 512 288 512c123.7 0 224-100.3 224-224 0-111-80.7-203.1-186.7-220.9-1.8-.3-3.6-.4-5.3-.4-15.3 0-28.9 11.1-31.5 26.7-2.9 17.4 8.8 33.9 26.3 36.9C390.4 142.9 448 208.8 448 288c0 88.4-71.6 160-160 160-79.2 0-145.1-57.6-157.8-133.3-2.9-17.4-19.4-29.2-36.9-26.3-15.6 2.6-26.7 16.2-26.7 31.5z",
|
|
26
|
-
opacity:
|
|
26
|
+
opacity: o ? "1" : "0.4"
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
29
|
/* @__PURE__ */ t("path", { d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.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 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0" })
|
|
@@ -31,25 +31,25 @@ const _t = ({
|
|
|
31
31
|
}
|
|
32
32
|
), Rt = ({
|
|
33
33
|
className: e,
|
|
34
|
-
viewBox:
|
|
35
|
-
title:
|
|
36
|
-
monotone:
|
|
34
|
+
viewBox: n,
|
|
35
|
+
title: a,
|
|
36
|
+
monotone: o,
|
|
37
37
|
...r
|
|
38
38
|
}) => /* @__PURE__ */ d(
|
|
39
39
|
$,
|
|
40
40
|
{
|
|
41
41
|
defaultViewBox: "0 0 448 512",
|
|
42
42
|
size: "size-5",
|
|
43
|
-
viewBox:
|
|
43
|
+
viewBox: n,
|
|
44
44
|
className: e,
|
|
45
|
-
title:
|
|
45
|
+
title: a || "Delete",
|
|
46
46
|
...r,
|
|
47
47
|
children: [
|
|
48
48
|
/* @__PURE__ */ t(
|
|
49
49
|
"path",
|
|
50
50
|
{
|
|
51
51
|
d: "M32 96v352c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16z",
|
|
52
|
-
opacity:
|
|
52
|
+
opacity: o ? "1" : "0.4"
|
|
53
53
|
}
|
|
54
54
|
),
|
|
55
55
|
/* @__PURE__ */ t("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 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
|
|
@@ -57,25 +57,25 @@ const _t = ({
|
|
|
57
57
|
}
|
|
58
58
|
), Lt = ({
|
|
59
59
|
className: e,
|
|
60
|
-
viewBox:
|
|
61
|
-
title:
|
|
62
|
-
monotone:
|
|
60
|
+
viewBox: n,
|
|
61
|
+
title: a,
|
|
62
|
+
monotone: o,
|
|
63
63
|
...r
|
|
64
64
|
}) => /* @__PURE__ */ d(
|
|
65
65
|
$,
|
|
66
66
|
{
|
|
67
67
|
defaultViewBox: "0 0 512 512",
|
|
68
68
|
size: "size-5",
|
|
69
|
-
viewBox:
|
|
69
|
+
viewBox: n,
|
|
70
70
|
className: e,
|
|
71
|
-
title:
|
|
71
|
+
title: a || "History",
|
|
72
72
|
...r,
|
|
73
73
|
children: [
|
|
74
74
|
/* @__PURE__ */ t(
|
|
75
75
|
"path",
|
|
76
76
|
{
|
|
77
77
|
d: "M0 57.9V168c0 13.3 10.7 24 24 24h110.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9",
|
|
78
|
-
opacity:
|
|
78
|
+
opacity: o ? "1" : "0.4"
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
81
|
/* @__PURE__ */ t("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" })
|
|
@@ -83,18 +83,18 @@ const _t = ({
|
|
|
83
83
|
}
|
|
84
84
|
), Pt = ({
|
|
85
85
|
className: e,
|
|
86
|
-
viewBox:
|
|
87
|
-
title:
|
|
88
|
-
monotone:
|
|
86
|
+
viewBox: n,
|
|
87
|
+
title: a,
|
|
88
|
+
monotone: o,
|
|
89
89
|
...r
|
|
90
90
|
}) => /* @__PURE__ */ d(
|
|
91
91
|
$,
|
|
92
92
|
{
|
|
93
93
|
defaultViewBox: "0 0 512 512",
|
|
94
94
|
size: "size-5",
|
|
95
|
-
viewBox:
|
|
95
|
+
viewBox: n,
|
|
96
96
|
className: e,
|
|
97
|
-
title:
|
|
97
|
+
title: a || "Info",
|
|
98
98
|
...r,
|
|
99
99
|
children: [
|
|
100
100
|
/* @__PURE__ */ t(
|
|
@@ -109,18 +109,18 @@ const _t = ({
|
|
|
109
109
|
}
|
|
110
110
|
), Mt = ({
|
|
111
111
|
className: e,
|
|
112
|
-
viewBox:
|
|
113
|
-
title:
|
|
114
|
-
monotone:
|
|
112
|
+
viewBox: n,
|
|
113
|
+
title: a,
|
|
114
|
+
monotone: o,
|
|
115
115
|
...r
|
|
116
116
|
}) => /* @__PURE__ */ d(
|
|
117
117
|
$,
|
|
118
118
|
{
|
|
119
119
|
defaultViewBox: "0 0 576 512",
|
|
120
120
|
size: "size-5",
|
|
121
|
-
viewBox:
|
|
121
|
+
viewBox: n,
|
|
122
122
|
className: e,
|
|
123
|
-
title:
|
|
123
|
+
title: a || "Profile",
|
|
124
124
|
...r,
|
|
125
125
|
children: [
|
|
126
126
|
/* @__PURE__ */ t(
|
|
@@ -135,25 +135,25 @@ const _t = ({
|
|
|
135
135
|
}
|
|
136
136
|
), Ot = ({
|
|
137
137
|
className: e,
|
|
138
|
-
viewBox:
|
|
139
|
-
title:
|
|
140
|
-
monotone:
|
|
138
|
+
viewBox: n,
|
|
139
|
+
title: a,
|
|
140
|
+
monotone: o,
|
|
141
141
|
...r
|
|
142
142
|
}) => /* @__PURE__ */ d(
|
|
143
143
|
$,
|
|
144
144
|
{
|
|
145
145
|
defaultViewBox: "0 0 512 512",
|
|
146
146
|
size: "size-5",
|
|
147
|
-
viewBox:
|
|
147
|
+
viewBox: n,
|
|
148
148
|
className: e,
|
|
149
|
-
title:
|
|
149
|
+
title: a || "Restore",
|
|
150
150
|
...r,
|
|
151
151
|
children: [
|
|
152
152
|
/* @__PURE__ */ t(
|
|
153
153
|
"path",
|
|
154
154
|
{
|
|
155
155
|
d: "M128 80v16h64V80c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v224c0 8.8-7.2 16-16 16h-16v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80",
|
|
156
|
-
opacity:
|
|
156
|
+
opacity: o ? "1" : "0.4"
|
|
157
157
|
}
|
|
158
158
|
),
|
|
159
159
|
/* @__PURE__ */ t("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
|
|
@@ -161,97 +161,91 @@ const _t = ({
|
|
|
161
161
|
}
|
|
162
162
|
), zt = ({
|
|
163
163
|
className: e,
|
|
164
|
-
viewBox:
|
|
165
|
-
title:
|
|
166
|
-
monotone:
|
|
164
|
+
viewBox: n,
|
|
165
|
+
title: a,
|
|
166
|
+
monotone: o,
|
|
167
167
|
...r
|
|
168
168
|
}) => /* @__PURE__ */ t(
|
|
169
169
|
$,
|
|
170
170
|
{
|
|
171
171
|
defaultViewBox: "0 0 448 512",
|
|
172
172
|
size: "size-5",
|
|
173
|
-
viewBox:
|
|
173
|
+
viewBox: n,
|
|
174
174
|
className: e,
|
|
175
|
-
title:
|
|
175
|
+
title: a || "Settings",
|
|
176
176
|
...r,
|
|
177
177
|
children: /* @__PURE__ */ t("path", { d: "M432 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0m-160 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0M64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96" })
|
|
178
178
|
}
|
|
179
179
|
), Ht = ({
|
|
180
180
|
className: e,
|
|
181
|
-
viewBox:
|
|
182
|
-
title:
|
|
183
|
-
monotone:
|
|
181
|
+
viewBox: n,
|
|
182
|
+
title: a,
|
|
183
|
+
monotone: o,
|
|
184
184
|
...r
|
|
185
185
|
}) => /* @__PURE__ */ d(
|
|
186
186
|
$,
|
|
187
187
|
{
|
|
188
188
|
defaultViewBox: "0 0 512 512",
|
|
189
189
|
size: "size-5",
|
|
190
|
-
viewBox:
|
|
190
|
+
viewBox: n,
|
|
191
191
|
className: e,
|
|
192
|
-
title:
|
|
192
|
+
title: a || "Sliders",
|
|
193
193
|
...r,
|
|
194
194
|
children: [
|
|
195
195
|
/* @__PURE__ */ t(
|
|
196
196
|
"path",
|
|
197
197
|
{
|
|
198
198
|
d: "M0 96c0-17.7 14.3-32 32-32h86.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h246.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h54.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m233.3-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H233.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H265.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32h-54.7c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32z",
|
|
199
|
-
opacity:
|
|
199
|
+
opacity: o ? "1" : "0.4"
|
|
200
200
|
}
|
|
201
201
|
),
|
|
202
202
|
/* @__PURE__ */ t("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
|
|
203
203
|
]
|
|
204
204
|
}
|
|
205
205
|
), Bt = () => {
|
|
206
|
-
const {
|
|
207
|
-
data: a,
|
|
208
|
-
error: r,
|
|
209
|
-
isLoading: c
|
|
210
|
-
} = dt({
|
|
211
|
-
getAccessToken: e
|
|
212
|
-
}), s = (a == null ? void 0 : a.version) || "", i = (a == null ? void 0 : a.models) || [];
|
|
206
|
+
const e = oe(), n = oe(), { data: a, error: o, isLoading: r } = Xe(), c = (a == null ? void 0 : a.version) || "", s = (a == null ? void 0 : a.models) || [];
|
|
213
207
|
return /* @__PURE__ */ d(D, { children: [
|
|
214
208
|
/* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
|
|
215
209
|
P,
|
|
216
210
|
{
|
|
217
211
|
header: k.ABOUT.TITLE_CLIENT,
|
|
218
212
|
className: "prose-dark dark:prose-lighter",
|
|
219
|
-
children: ne(
|
|
220
|
-
[k.ABOUT.VERSION]: "7.2.
|
|
221
|
-
[k.ABOUT.BUILD_TIMESTAMP]: "02/
|
|
213
|
+
children: ne(e, {
|
|
214
|
+
[k.ABOUT.VERSION]: "7.2.4",
|
|
215
|
+
[k.ABOUT.BUILD_TIMESTAMP]: "02/17/2025 10:31 AM EST"
|
|
222
216
|
})
|
|
223
217
|
}
|
|
224
218
|
) }),
|
|
225
|
-
|
|
219
|
+
o || r ? null : /* @__PURE__ */ t(
|
|
226
220
|
P,
|
|
227
221
|
{
|
|
228
222
|
header: k.ABOUT.TITLE_SERVER,
|
|
229
223
|
className: "prose-dark dark:prose-lighter",
|
|
230
224
|
children: ne(n, {
|
|
231
|
-
[k.ABOUT.VERSION]:
|
|
232
|
-
[pe(k.ABOUT.PROVIDER,
|
|
225
|
+
[k.ABOUT.VERSION]: c,
|
|
226
|
+
[pe(k.ABOUT.PROVIDER, s.length)]: /* @__PURE__ */ t(D, { children: s.map((i) => /* @__PURE__ */ t("div", { className: "text-right", children: i }, i)) })
|
|
233
227
|
})
|
|
234
228
|
}
|
|
235
229
|
)
|
|
236
230
|
] });
|
|
237
231
|
}, Dt = ({
|
|
238
232
|
open: e,
|
|
239
|
-
onOpenChange:
|
|
240
|
-
}) => /* @__PURE__ */ t(re, { open: e, onOpenChange:
|
|
233
|
+
onOpenChange: n
|
|
234
|
+
}) => /* @__PURE__ */ t(re, { open: e, onOpenChange: n, title: qe, children: /* @__PURE__ */ t(Bt, {}) }), $t = async (e, n, a, o, r, c) => {
|
|
241
235
|
try {
|
|
242
236
|
const s = await ee({
|
|
243
|
-
accessToken:
|
|
237
|
+
accessToken: o,
|
|
244
238
|
type: te.GET_CHAT,
|
|
245
239
|
params: {
|
|
246
240
|
id: e.id
|
|
247
241
|
}
|
|
248
242
|
});
|
|
249
|
-
s.status === 200 && (s.data.provider !== c && await
|
|
243
|
+
s.status === 200 && (s.data.provider !== c && await Ze({
|
|
250
244
|
provider: s.data.provider,
|
|
251
|
-
accessToken:
|
|
245
|
+
accessToken: o,
|
|
252
246
|
username: r
|
|
253
|
-
}),
|
|
254
|
-
type:
|
|
247
|
+
}), n({
|
|
248
|
+
type: Ct,
|
|
255
249
|
payload: {
|
|
256
250
|
id: e.id,
|
|
257
251
|
model: s.data.model,
|
|
@@ -259,26 +253,26 @@ const _t = ({
|
|
|
259
253
|
usage: s.data.usage,
|
|
260
254
|
messages: s.data.messages
|
|
261
255
|
}
|
|
262
|
-
}),
|
|
256
|
+
}), a(!1));
|
|
263
257
|
} catch {
|
|
264
258
|
}
|
|
265
259
|
}, Vt = ({
|
|
266
260
|
filteredHistory: e,
|
|
267
|
-
dispatch:
|
|
268
|
-
onOpenChange:
|
|
269
|
-
mutate:
|
|
261
|
+
dispatch: n,
|
|
262
|
+
onOpenChange: a,
|
|
263
|
+
mutate: o
|
|
270
264
|
}) => {
|
|
271
265
|
var I;
|
|
272
|
-
const { user: r, getAccessToken: c } =
|
|
266
|
+
const { user: r, getAccessToken: c } = G(), s = v(null), i = v({
|
|
273
267
|
id: 0,
|
|
274
268
|
timestamp: "",
|
|
275
269
|
message: ""
|
|
276
|
-
}), [
|
|
270
|
+
}), [f, p] = C(!1), [m, y] = C(
|
|
277
271
|
Se + Ne
|
|
278
|
-
), { state: x, dispatch: l } = se(
|
|
279
|
-
state: { provider:
|
|
280
|
-
} = se(
|
|
281
|
-
key: ge +
|
|
272
|
+
), { state: x, dispatch: l } = se(Le), {
|
|
273
|
+
state: { provider: h }
|
|
274
|
+
} = se(Pe), [, T] = ye({
|
|
275
|
+
key: ge + Qe,
|
|
282
276
|
initialValue: x.sortDirection
|
|
283
277
|
}), S = (u) => {
|
|
284
278
|
switch (x.sortDirection) {
|
|
@@ -311,13 +305,13 @@ const _t = ({
|
|
|
311
305
|
userId: (r == null ? void 0 : r.username) || "",
|
|
312
306
|
id: u.id
|
|
313
307
|
}
|
|
314
|
-
}),
|
|
308
|
+
}), o();
|
|
315
309
|
} catch {
|
|
316
310
|
}
|
|
317
311
|
}, _ = Oe((u) => {
|
|
318
312
|
u[0].isIntersecting && y((R) => R + Se);
|
|
319
313
|
}, []);
|
|
320
|
-
return
|
|
314
|
+
return V(() => {
|
|
321
315
|
const u = {
|
|
322
316
|
// root: null,
|
|
323
317
|
rootMargin: "20px"
|
|
@@ -325,9 +319,9 @@ const _t = ({
|
|
|
325
319
|
s.current && w.observe(s.current);
|
|
326
320
|
}), /* @__PURE__ */ d(D, { children: [
|
|
327
321
|
/* @__PURE__ */ d(
|
|
328
|
-
|
|
322
|
+
Me,
|
|
329
323
|
{
|
|
330
|
-
showConfirmation:
|
|
324
|
+
showConfirmation: f,
|
|
331
325
|
setShowConfirmation: p,
|
|
332
326
|
action: b,
|
|
333
327
|
customStrings: {
|
|
@@ -352,11 +346,11 @@ const _t = ({
|
|
|
352
346
|
]
|
|
353
347
|
}
|
|
354
348
|
),
|
|
355
|
-
/* @__PURE__ */ d(
|
|
356
|
-
/* @__PURE__ */ t(
|
|
349
|
+
/* @__PURE__ */ d(ft, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
|
350
|
+
/* @__PURE__ */ t(pt, { children: /* @__PURE__ */ d(de, { children: [
|
|
357
351
|
/* @__PURE__ */ t(L, { className: "sr-only", children: "Row" }),
|
|
358
352
|
/* @__PURE__ */ t(
|
|
359
|
-
|
|
353
|
+
gt,
|
|
360
354
|
{
|
|
361
355
|
buttonClassName: "text-xs sm:text-sm",
|
|
362
356
|
cellId: "timestamp",
|
|
@@ -373,11 +367,11 @@ const _t = ({
|
|
|
373
367
|
/* @__PURE__ */ t(L, { className: "text-xs sm:text-sm", children: "Provider" }),
|
|
374
368
|
/* @__PURE__ */ t(L, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
375
369
|
] }) }),
|
|
376
|
-
/* @__PURE__ */ t(
|
|
370
|
+
/* @__PURE__ */ t(yt, { children: e.slice(0, m).map((u, w) => {
|
|
377
371
|
var E, N;
|
|
378
372
|
const R = u.summary || (u.messages.length > 0 ? (E = u.messages[0]) == null ? void 0 : E.content : "");
|
|
379
373
|
return ((N = u == null ? void 0 : u.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ d(vt, { children: [
|
|
380
|
-
w ===
|
|
374
|
+
w === m - Ne && /* @__PURE__ */ t("tr", { ref: s }),
|
|
381
375
|
/* @__PURE__ */ d(de, { children: [
|
|
382
376
|
/* @__PURE__ */ t(L, { children: w + 1 }),
|
|
383
377
|
/* @__PURE__ */ t(
|
|
@@ -407,8 +401,8 @@ const _t = ({
|
|
|
407
401
|
className: "text-gray-400",
|
|
408
402
|
align: "center",
|
|
409
403
|
children: [
|
|
410
|
-
u.model && u.model.startsWith("claude") && /* @__PURE__ */ t(
|
|
411
|
-
u.model && u.model.startsWith("gpt") && /* @__PURE__ */ t(
|
|
404
|
+
u.model && u.model.startsWith("claude") && /* @__PURE__ */ t(bt, { size: "size-4 sm:size-5" }),
|
|
405
|
+
u.model && u.model.startsWith("gpt") && /* @__PURE__ */ t(xt, { size: "size-4 sm:size-5" })
|
|
412
406
|
]
|
|
413
407
|
}
|
|
414
408
|
),
|
|
@@ -424,11 +418,11 @@ const _t = ({
|
|
|
424
418
|
const O = await c();
|
|
425
419
|
$t(
|
|
426
420
|
u,
|
|
427
|
-
o,
|
|
428
421
|
n,
|
|
422
|
+
a,
|
|
429
423
|
O,
|
|
430
424
|
(r == null ? void 0 : r.username) || "",
|
|
431
|
-
|
|
425
|
+
h
|
|
432
426
|
);
|
|
433
427
|
},
|
|
434
428
|
children: /* @__PURE__ */ t(Ot, { size: "size-3", monotone: !0 })
|
|
@@ -446,7 +440,7 @@ const _t = ({
|
|
|
446
440
|
id: u.id,
|
|
447
441
|
timestamp: u.timestamp,
|
|
448
442
|
message: u.messages.length > 0 ? (O = u.messages[0]) == null ? void 0 : O.content : ""
|
|
449
|
-
}, p(!
|
|
443
|
+
}, p(!f);
|
|
450
444
|
},
|
|
451
445
|
children: /* @__PURE__ */ t("div", { className: "text-red-400", children: /* @__PURE__ */ t(Rt, { size: "size-3", monotone: !0 }) })
|
|
452
446
|
}
|
|
@@ -455,7 +449,7 @@ const _t = ({
|
|
|
455
449
|
] })
|
|
456
450
|
] }, `${k.HISTORY.TITLE}-${u.id}-${w}`) : null;
|
|
457
451
|
}) }),
|
|
458
|
-
/* @__PURE__ */ t(
|
|
452
|
+
/* @__PURE__ */ t(kt, { children: /* @__PURE__ */ t(de, { children: /* @__PURE__ */ t(L, { colSpan: 1e3, children: /* @__PURE__ */ t("div", { children: pe(
|
|
459
453
|
`${e.length} chat`,
|
|
460
454
|
e.length
|
|
461
455
|
) }) }) }) })
|
|
@@ -463,35 +457,35 @@ const _t = ({
|
|
|
463
457
|
] });
|
|
464
458
|
}, Ft = ({
|
|
465
459
|
open: e,
|
|
466
|
-
onOpenChange:
|
|
460
|
+
onOpenChange: n
|
|
467
461
|
}) => {
|
|
468
|
-
const { getAccessToken:
|
|
462
|
+
const { getAccessToken: a, user: o } = G(), {
|
|
469
463
|
state: { lastTriggeredTimestamp: r },
|
|
470
464
|
dispatch: c
|
|
471
|
-
} = se(
|
|
465
|
+
} = se(Pe), { state: s, dispatch: i } = se(Le), { data: f, mutate: p } = Je({
|
|
472
466
|
keys: [
|
|
473
|
-
|
|
467
|
+
o == null ? void 0 : o.username,
|
|
474
468
|
s.searchString,
|
|
475
469
|
s.sortDirection,
|
|
476
470
|
r || 0
|
|
477
471
|
],
|
|
478
|
-
getAccessToken:
|
|
479
|
-
}),
|
|
480
|
-
key: ge +
|
|
472
|
+
getAccessToken: a
|
|
473
|
+
}), m = v(null), [, y] = ye({
|
|
474
|
+
key: ge + et,
|
|
481
475
|
initialValue: s.searchString
|
|
482
476
|
}), [x, l] = C([]);
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}, [
|
|
486
|
-
const
|
|
477
|
+
V(() => {
|
|
478
|
+
f && l(f);
|
|
479
|
+
}, [f]);
|
|
480
|
+
const h = async (b) => {
|
|
487
481
|
y(b), i({
|
|
488
|
-
type:
|
|
482
|
+
type: rt,
|
|
489
483
|
payload: { searchString: b }
|
|
490
484
|
});
|
|
491
|
-
}, T =
|
|
492
|
-
|
|
485
|
+
}, T = at((b) => {
|
|
486
|
+
h(b.target.value.trim());
|
|
493
487
|
}, 500);
|
|
494
|
-
return /* @__PURE__ */ t(re, { open: e, onOpenChange:
|
|
488
|
+
return /* @__PURE__ */ t(re, { open: e, onOpenChange: n, title: tt, children: /* @__PURE__ */ d(D, { children: [
|
|
495
489
|
/* @__PURE__ */ t("form", { autoComplete: "off", onSubmit: async (b) => {
|
|
496
490
|
b.preventDefault();
|
|
497
491
|
}, children: /* @__PURE__ */ t(
|
|
@@ -500,7 +494,7 @@ const _t = ({
|
|
|
500
494
|
autoCapitalize: "off",
|
|
501
495
|
autoComplete: "off",
|
|
502
496
|
autoCorrect: "off",
|
|
503
|
-
ref:
|
|
497
|
+
ref: m,
|
|
504
498
|
defaultValue: s.searchString,
|
|
505
499
|
focusMode: "light",
|
|
506
500
|
mode: "dark",
|
|
@@ -520,7 +514,7 @@ const _t = ({
|
|
|
520
514
|
size: "small",
|
|
521
515
|
onClick: () => {
|
|
522
516
|
var b;
|
|
523
|
-
|
|
517
|
+
h(""), (b = m.current) != null && b.value && (m.current.value = "", m.current.focus());
|
|
524
518
|
},
|
|
525
519
|
children: "Reset"
|
|
526
520
|
}
|
|
@@ -534,13 +528,13 @@ const _t = ({
|
|
|
534
528
|
mutate: p,
|
|
535
529
|
filteredHistory: x,
|
|
536
530
|
dispatch: c,
|
|
537
|
-
onOpenChange:
|
|
531
|
+
onOpenChange: n
|
|
538
532
|
}
|
|
539
533
|
) })
|
|
540
534
|
] }) });
|
|
541
535
|
}, Ut = ({ stats: e }) => {
|
|
542
|
-
const { isAuthenticated:
|
|
543
|
-
return
|
|
536
|
+
const { isAuthenticated: n, user: a, registeringForPasskey: o, authenticationType: r } = G(), c = oe(), s = oe(), i = (a == null ? void 0 : a.username) || "";
|
|
537
|
+
return n && i ? /* @__PURE__ */ d(D, { children: [
|
|
544
538
|
/* @__PURE__ */ t(
|
|
545
539
|
P,
|
|
546
540
|
{
|
|
@@ -548,11 +542,11 @@ const _t = ({
|
|
|
548
542
|
className: "prose-dark dark:prose-lighter",
|
|
549
543
|
children: ne(c, {
|
|
550
544
|
[k.PREFERENCES.NAME]: i,
|
|
551
|
-
[k.PREFERENCES.EMAIL]: (
|
|
545
|
+
[k.PREFERENCES.EMAIL]: (a == null ? void 0 : a.email) || ""
|
|
552
546
|
})
|
|
553
547
|
}
|
|
554
548
|
),
|
|
555
|
-
r !==
|
|
549
|
+
r !== nt.PASSKEY && !ot() && /* @__PURE__ */ d(
|
|
556
550
|
P,
|
|
557
551
|
{
|
|
558
552
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -567,7 +561,7 @@ const _t = ({
|
|
|
567
561
|
{
|
|
568
562
|
size: "small",
|
|
569
563
|
className: "mt-2",
|
|
570
|
-
onClick:
|
|
564
|
+
onClick: o,
|
|
571
565
|
labelLeft: k.PREFERENCES.PASSKEY_BUTTON,
|
|
572
566
|
children: /* @__PURE__ */ t(ve, { size: "size-5", monotone: !0 })
|
|
573
567
|
}
|
|
@@ -582,7 +576,7 @@ const _t = ({
|
|
|
582
576
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
583
577
|
children: ne(s, {
|
|
584
578
|
[pe(k.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
|
|
585
|
-
[k.MAIN_STATISTICS.PROCESSING_TIME]:
|
|
579
|
+
[k.MAIN_STATISTICS.PROCESSING_TIME]: st(
|
|
586
580
|
e.averageProcessingTimes
|
|
587
581
|
)
|
|
588
582
|
})
|
|
@@ -591,26 +585,26 @@ const _t = ({
|
|
|
591
585
|
] }) : null;
|
|
592
586
|
}, Gt = ({
|
|
593
587
|
open: e,
|
|
594
|
-
onOpenChange:
|
|
588
|
+
onOpenChange: n
|
|
595
589
|
}) => {
|
|
596
|
-
const { getAccessToken:
|
|
590
|
+
const { getAccessToken: a, user: o } = G(), {
|
|
597
591
|
data: r,
|
|
598
592
|
error: c,
|
|
599
593
|
isLoading: s
|
|
600
|
-
} =
|
|
601
|
-
keys: [
|
|
602
|
-
getAccessToken:
|
|
594
|
+
} = lt({
|
|
595
|
+
keys: [o == null ? void 0 : o.username],
|
|
596
|
+
getAccessToken: a
|
|
603
597
|
});
|
|
604
|
-
return c || s ? null : /* @__PURE__ */ t(re, { open: e, onOpenChange:
|
|
598
|
+
return c || s ? null : /* @__PURE__ */ t(re, { open: e, onOpenChange: n, title: ct, children: /* @__PURE__ */ t(Ut, { stats: r }) });
|
|
605
599
|
};
|
|
606
600
|
/*!
|
|
607
|
-
@versini/ui-textarea v3.0.
|
|
601
|
+
@versini/ui-textarea v3.0.17
|
|
608
602
|
© 2025 gizmette.com
|
|
609
603
|
*/
|
|
610
604
|
try {
|
|
611
605
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
612
|
-
version: "3.0.
|
|
613
|
-
buildTime: "
|
|
606
|
+
version: "3.0.17",
|
|
607
|
+
buildTime: "02/16/2025 06:39 PM EST",
|
|
614
608
|
homepage: "https://github.com/aversini/ui-components",
|
|
615
609
|
license: "MIT"
|
|
616
610
|
});
|
|
@@ -619,15 +613,15 @@ try {
|
|
|
619
613
|
const He = "av-text-area", Yt = "av-text-area-wrapper", ue = "av-text-area-helper-text", jt = "av-text-area__control--right", Kt = "av-text-area__control--left";
|
|
620
614
|
function Wt() {
|
|
621
615
|
const e = v(!1);
|
|
622
|
-
return
|
|
616
|
+
return V(() => (e.current = !0, () => {
|
|
623
617
|
e.current = !1;
|
|
624
618
|
}), []), Oe(() => e.current, []);
|
|
625
619
|
}
|
|
626
620
|
function Xt(e) {
|
|
627
|
-
return ze(() => e.every((
|
|
628
|
-
} : (
|
|
629
|
-
e.forEach((
|
|
630
|
-
typeof
|
|
621
|
+
return ze(() => e.every((n) => n == null) ? () => {
|
|
622
|
+
} : (n) => {
|
|
623
|
+
e.forEach((a) => {
|
|
624
|
+
typeof a == "function" ? a(n) : a != null && (a.current = n);
|
|
631
625
|
});
|
|
632
626
|
}, e);
|
|
633
627
|
}
|
|
@@ -642,44 +636,44 @@ const qt = {
|
|
|
642
636
|
right: 0
|
|
643
637
|
};
|
|
644
638
|
function Ie(e) {
|
|
645
|
-
const
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
|
|
639
|
+
const n = Wt(), a = v(0), o = v(null), [r, c] = C(qt), s = ze(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
640
|
+
const f = i[0];
|
|
641
|
+
f && (cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => {
|
|
642
|
+
o.current && n() && c(f.contentRect);
|
|
649
643
|
}));
|
|
650
|
-
}), [
|
|
651
|
-
return
|
|
652
|
-
s == null || s.disconnect(),
|
|
653
|
-
}), [s, e]), [
|
|
644
|
+
}), [n]);
|
|
645
|
+
return V(() => (o.current && (s == null || s.observe(o.current, e)), () => {
|
|
646
|
+
s == null || s.disconnect(), a.current && cancelAnimationFrame(a.current);
|
|
647
|
+
}), [s, e]), [o, r];
|
|
654
648
|
}
|
|
655
649
|
function Qt({
|
|
656
650
|
value: e,
|
|
657
|
-
defaultValue:
|
|
658
|
-
finalValue:
|
|
659
|
-
onChange:
|
|
651
|
+
defaultValue: n,
|
|
652
|
+
finalValue: a,
|
|
653
|
+
onChange: o = () => {
|
|
660
654
|
},
|
|
661
655
|
initialControlledDelay: r = 0
|
|
662
656
|
}) {
|
|
663
|
-
const [c, s] = C(!1), [i,
|
|
664
|
-
|
|
665
|
-
), p = (
|
|
666
|
-
m
|
|
657
|
+
const [c, s] = C(!1), [i, f] = C(
|
|
658
|
+
n !== void 0 ? n : a
|
|
659
|
+
), p = (m) => {
|
|
660
|
+
f(m), o == null || o(m);
|
|
667
661
|
};
|
|
668
|
-
return
|
|
662
|
+
return V(() => {
|
|
669
663
|
(async () => e !== void 0 && !c && r > 0 && (await new Promise(
|
|
670
|
-
(
|
|
664
|
+
(m) => setTimeout(m, r)
|
|
671
665
|
), s(!0)))();
|
|
672
|
-
}, [e, r, c]), e !== void 0 ? !c && r > 0 ? ["",
|
|
666
|
+
}, [e, r, c]), e !== void 0 ? !c && r > 0 ? ["", o, !0] : [e, o, !0] : [i, p, !1];
|
|
673
667
|
}
|
|
674
668
|
function Zt(e) {
|
|
675
|
-
const
|
|
669
|
+
const n = At();
|
|
676
670
|
if (!e)
|
|
677
|
-
return
|
|
671
|
+
return n;
|
|
678
672
|
if (typeof e == "number" || typeof e == "string")
|
|
679
|
-
return `${e}${
|
|
673
|
+
return `${e}${n}`;
|
|
680
674
|
if (typeof e == "object") {
|
|
681
|
-
const { id:
|
|
682
|
-
return typeof
|
|
675
|
+
const { id: a, prefix: o = "" } = e;
|
|
676
|
+
return typeof a == "number" || typeof a == "string" ? `${o}${a}` : `${o}${n}`;
|
|
683
677
|
}
|
|
684
678
|
}
|
|
685
679
|
const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
|
|
@@ -690,12 +684,12 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
|
|
|
690
684
|
progressbar: null,
|
|
691
685
|
status: "polite",
|
|
692
686
|
timer: "assertive"
|
|
693
|
-
}, er = (e,
|
|
694
|
-
switch (
|
|
687
|
+
}, er = (e, n) => {
|
|
688
|
+
switch (n == null ? void 0 : n.type) {
|
|
695
689
|
case Be:
|
|
696
690
|
return {
|
|
697
691
|
...e,
|
|
698
|
-
announcement:
|
|
692
|
+
announcement: n.payload
|
|
699
693
|
};
|
|
700
694
|
case De:
|
|
701
695
|
return {
|
|
@@ -707,46 +701,46 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
|
|
|
707
701
|
}
|
|
708
702
|
}, tr = ({
|
|
709
703
|
onAnnouncementClear: e,
|
|
710
|
-
dispatch:
|
|
704
|
+
dispatch: n
|
|
711
705
|
}) => {
|
|
712
|
-
|
|
706
|
+
n({
|
|
713
707
|
type: De
|
|
714
708
|
}), typeof e == "function" && e();
|
|
715
709
|
}, _e = ({
|
|
716
710
|
children: e,
|
|
717
|
-
clearAnnouncementDelay:
|
|
718
|
-
clearAnnouncementTimeoutRef:
|
|
719
|
-
onAnnouncementClear:
|
|
711
|
+
clearAnnouncementDelay: n,
|
|
712
|
+
clearAnnouncementTimeoutRef: a,
|
|
713
|
+
onAnnouncementClear: o,
|
|
720
714
|
dispatch: r
|
|
721
715
|
}) => {
|
|
722
|
-
clearTimeout(
|
|
716
|
+
clearTimeout(a.current), e !== null && r({
|
|
723
717
|
type: Be,
|
|
724
718
|
payload: e
|
|
725
|
-
}),
|
|
719
|
+
}), n && (a.current = setTimeout(
|
|
726
720
|
() => tr({
|
|
727
|
-
onAnnouncementClear:
|
|
721
|
+
onAnnouncementClear: o,
|
|
728
722
|
dispatch: r
|
|
729
723
|
}),
|
|
730
|
-
|
|
724
|
+
n
|
|
731
725
|
));
|
|
732
726
|
}, rr = ({
|
|
733
727
|
children: e,
|
|
734
|
-
announcementTimeoutRef:
|
|
735
|
-
announcementDelay:
|
|
736
|
-
clearAnnouncementDelay:
|
|
728
|
+
announcementTimeoutRef: n,
|
|
729
|
+
announcementDelay: a,
|
|
730
|
+
clearAnnouncementDelay: o,
|
|
737
731
|
clearAnnouncementTimeoutRef: r,
|
|
738
732
|
onAnnouncementClear: c,
|
|
739
733
|
dispatch: s
|
|
740
734
|
}) => {
|
|
741
|
-
clearTimeout(
|
|
735
|
+
clearTimeout(n.current), a ? n.current = setTimeout(_e, a, {
|
|
742
736
|
children: e,
|
|
743
|
-
clearAnnouncementDelay:
|
|
737
|
+
clearAnnouncementDelay: o,
|
|
744
738
|
clearAnnouncementTimeoutRef: r,
|
|
745
739
|
onAnnouncementClear: c,
|
|
746
740
|
dispatch: s
|
|
747
741
|
}) : _e({
|
|
748
742
|
children: e,
|
|
749
|
-
clearAnnouncementDelay:
|
|
743
|
+
clearAnnouncementDelay: o,
|
|
750
744
|
clearAnnouncementTimeoutRef: r,
|
|
751
745
|
onAnnouncementClear: c,
|
|
752
746
|
dispatch: s
|
|
@@ -754,26 +748,26 @@ const Be = "SET_ANNOUNCEMENT", De = "CLEAR_ANNOUNCEMENT", Jt = {
|
|
|
754
748
|
};
|
|
755
749
|
function ar({
|
|
756
750
|
children: e,
|
|
757
|
-
className:
|
|
758
|
-
politeness:
|
|
759
|
-
role:
|
|
751
|
+
className: n,
|
|
752
|
+
politeness: a,
|
|
753
|
+
role: o = null,
|
|
760
754
|
announcementDelay: r,
|
|
761
755
|
clearAnnouncementDelay: c,
|
|
762
756
|
onAnnouncementClear: s,
|
|
763
757
|
visible: i,
|
|
764
|
-
...
|
|
758
|
+
...f
|
|
765
759
|
}) {
|
|
766
|
-
const p = v(null),
|
|
760
|
+
const p = v(null), m = v(null), [y, x] = It(er, {
|
|
767
761
|
announcement: null
|
|
768
762
|
});
|
|
769
|
-
let l =
|
|
770
|
-
typeof l > "u" && (l =
|
|
763
|
+
let l = a;
|
|
764
|
+
typeof l > "u" && (l = o ? Jt[o] : "assertive"), V(() => {
|
|
771
765
|
rr({
|
|
772
766
|
announcementTimeoutRef: p,
|
|
773
767
|
announcementDelay: r,
|
|
774
768
|
children: e,
|
|
775
769
|
clearAnnouncementDelay: c,
|
|
776
|
-
clearAnnouncementTimeoutRef:
|
|
770
|
+
clearAnnouncementTimeoutRef: m,
|
|
777
771
|
onAnnouncementClear: s,
|
|
778
772
|
dispatch: x
|
|
779
773
|
});
|
|
@@ -783,28 +777,28 @@ function ar({
|
|
|
783
777
|
c,
|
|
784
778
|
s
|
|
785
779
|
]);
|
|
786
|
-
const
|
|
780
|
+
const h = g(n, {
|
|
787
781
|
"sr-only": !i
|
|
788
782
|
});
|
|
789
783
|
return /* @__PURE__ */ t(
|
|
790
784
|
"div",
|
|
791
785
|
{
|
|
792
786
|
"aria-live": l,
|
|
793
|
-
...
|
|
794
|
-
className:
|
|
795
|
-
...
|
|
787
|
+
...o && { role: o },
|
|
788
|
+
className: h,
|
|
789
|
+
...f,
|
|
796
790
|
children: y.announcement
|
|
797
791
|
}
|
|
798
792
|
);
|
|
799
793
|
}
|
|
800
794
|
/*!
|
|
801
|
-
@versini/ui-liveregion v1.3.
|
|
795
|
+
@versini/ui-liveregion v1.3.9
|
|
802
796
|
© 2025 gizmette.com
|
|
803
797
|
*/
|
|
804
798
|
try {
|
|
805
799
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
806
|
-
version: "1.3.
|
|
807
|
-
buildTime: "
|
|
800
|
+
version: "1.3.9",
|
|
801
|
+
buildTime: "02/16/2025 06:39 PM EST",
|
|
808
802
|
homepage: "https://github.com/aversini/ui-components",
|
|
809
803
|
license: "MIT"
|
|
810
804
|
});
|
|
@@ -824,21 +818,21 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
824
818
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
825
819
|
}), lr = ({
|
|
826
820
|
noBorder: e,
|
|
827
|
-
error:
|
|
821
|
+
error: n
|
|
828
822
|
}) => g("border-2", {
|
|
829
|
-
"border-border-dark": !e && !
|
|
830
|
-
"focus:border-border-dark": !e &&
|
|
831
|
-
"border-border-error-dark": !e &&
|
|
823
|
+
"border-border-dark": !e && !n,
|
|
824
|
+
"focus:border-border-dark": !e && n,
|
|
825
|
+
"border-border-error-dark": !e && n,
|
|
832
826
|
"border-transparent": e
|
|
833
827
|
}), cr = ({
|
|
834
828
|
disabled: e,
|
|
835
|
-
raw:
|
|
836
|
-
error:
|
|
837
|
-
mode:
|
|
829
|
+
raw: n,
|
|
830
|
+
error: a,
|
|
831
|
+
mode: o,
|
|
838
832
|
leftElement: r,
|
|
839
833
|
rightElement: c
|
|
840
834
|
}) => {
|
|
841
|
-
if (
|
|
835
|
+
if (n)
|
|
842
836
|
return "";
|
|
843
837
|
if (e)
|
|
844
838
|
return g(
|
|
@@ -847,77 +841,77 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
847
841
|
"translate-x-[12px]": c === !0 && !r || !c && !r
|
|
848
842
|
}
|
|
849
843
|
);
|
|
850
|
-
if (!
|
|
844
|
+
if (!a)
|
|
851
845
|
return g(
|
|
852
846
|
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
|
853
847
|
{
|
|
854
848
|
"translate-x-[12px]": c === !0 && !r || !c && !r,
|
|
855
|
-
"text-copy-medium":
|
|
856
|
-
"text-copy-dark":
|
|
857
|
-
"text-copy-dark dark:text-copy-medium":
|
|
858
|
-
"text-copy-medium dark:text-copy-dark":
|
|
849
|
+
"text-copy-medium": o === "dark",
|
|
850
|
+
"text-copy-dark": o === "light",
|
|
851
|
+
"text-copy-dark dark:text-copy-medium": o === "system",
|
|
852
|
+
"text-copy-medium dark:text-copy-dark": o === "alt-system"
|
|
859
853
|
}
|
|
860
854
|
);
|
|
861
|
-
if (
|
|
855
|
+
if (a)
|
|
862
856
|
return g(
|
|
863
857
|
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
|
864
858
|
{
|
|
865
859
|
"translate-x-[12px]": c === !0 && !r || !c && !r,
|
|
866
|
-
"text-copy-medium":
|
|
867
|
-
"text-copy-error-dark":
|
|
868
|
-
"text-copy-error-dark dark:text-copy-error-light":
|
|
869
|
-
"text-copy-medium dark:text-copy-error-dark":
|
|
860
|
+
"text-copy-medium": o === "dark",
|
|
861
|
+
"text-copy-error-dark": o === "light",
|
|
862
|
+
"text-copy-error-dark dark:text-copy-error-light": o === "system",
|
|
863
|
+
"text-copy-medium dark:text-copy-error-dark": o === "alt-system"
|
|
870
864
|
}
|
|
871
865
|
);
|
|
872
866
|
}, ir = ({
|
|
873
867
|
error: e,
|
|
874
|
-
raw:
|
|
875
|
-
mode:
|
|
876
|
-
disabled:
|
|
868
|
+
raw: n,
|
|
869
|
+
mode: a,
|
|
870
|
+
disabled: o
|
|
877
871
|
}) => {
|
|
878
|
-
if (
|
|
872
|
+
if (n)
|
|
879
873
|
return "";
|
|
880
|
-
if (
|
|
874
|
+
if (o)
|
|
881
875
|
return g(
|
|
882
876
|
ue,
|
|
883
877
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
884
878
|
);
|
|
885
879
|
if (!e)
|
|
886
880
|
return g(ue, "absolute px-2 font-medium", {
|
|
887
|
-
"text-copy-medium":
|
|
888
|
-
"text-copy-dark":
|
|
889
|
-
"text-copy-dark dark:text-copy-medium":
|
|
890
|
-
"text-copy-medium dark:text-copy-dark":
|
|
881
|
+
"text-copy-medium": a === "dark",
|
|
882
|
+
"text-copy-dark": a === "light",
|
|
883
|
+
"text-copy-dark dark:text-copy-medium": a === "system",
|
|
884
|
+
"text-copy-medium dark:text-copy-dark": a === "alt-system"
|
|
891
885
|
});
|
|
892
886
|
if (e)
|
|
893
887
|
return g(ue, "absolute px-2 font-medium", {
|
|
894
|
-
"text-copy-error-light":
|
|
895
|
-
"text-copy-error-dark":
|
|
896
|
-
"text-copy-error-dark dark:text-copy-error-light":
|
|
897
|
-
"dark:text-copy-error-dark text-copy-error-light":
|
|
888
|
+
"text-copy-error-light": a === "dark",
|
|
889
|
+
"text-copy-error-dark": a === "light",
|
|
890
|
+
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
891
|
+
"dark:text-copy-error-dark text-copy-error-light": a === "alt-system"
|
|
898
892
|
});
|
|
899
893
|
}, dr = ({
|
|
900
894
|
className: e,
|
|
901
|
-
textAreaClassName:
|
|
902
|
-
raw:
|
|
903
|
-
focusMode:
|
|
895
|
+
textAreaClassName: n,
|
|
896
|
+
raw: a,
|
|
897
|
+
focusMode: o,
|
|
904
898
|
disabled: r,
|
|
905
899
|
noBorder: c,
|
|
906
900
|
error: s,
|
|
907
901
|
mode: i,
|
|
908
|
-
leftElement:
|
|
902
|
+
leftElement: f,
|
|
909
903
|
rightElement: p
|
|
910
904
|
}) => {
|
|
911
|
-
const
|
|
905
|
+
const m = a ? e : g(
|
|
912
906
|
"relative flex w-full flex-col justify-center",
|
|
913
907
|
Yt,
|
|
914
908
|
e
|
|
915
|
-
), y =
|
|
909
|
+
), y = a ? g(n) : g(
|
|
916
910
|
He,
|
|
917
|
-
|
|
911
|
+
n,
|
|
918
912
|
nr(),
|
|
919
913
|
or({ mode: i }),
|
|
920
|
-
sr({ focusMode:
|
|
914
|
+
sr({ focusMode: o }),
|
|
921
915
|
lr({
|
|
922
916
|
noBorder: c,
|
|
923
917
|
error: s
|
|
@@ -925,38 +919,38 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
925
919
|
{
|
|
926
920
|
"disabled:cursor-not-allowed disabled:opacity-50": r
|
|
927
921
|
}
|
|
928
|
-
), x =
|
|
922
|
+
), x = a ? void 0 : "sr-only", l = cr({
|
|
929
923
|
disabled: r,
|
|
930
|
-
raw:
|
|
924
|
+
raw: a,
|
|
931
925
|
error: s,
|
|
932
926
|
mode: i,
|
|
933
927
|
rightElement: p,
|
|
934
|
-
leftElement:
|
|
935
|
-
}),
|
|
928
|
+
leftElement: f
|
|
929
|
+
}), h = ir({
|
|
936
930
|
error: s,
|
|
937
|
-
raw:
|
|
931
|
+
raw: a,
|
|
938
932
|
mode: i,
|
|
939
933
|
disabled: r
|
|
940
|
-
}), T =
|
|
934
|
+
}), T = a ? void 0 : g(jt, "absolute"), S = a ? void 0 : g(Kt, "absolute");
|
|
941
935
|
return {
|
|
942
|
-
wrapper:
|
|
936
|
+
wrapper: m,
|
|
943
937
|
textArea: y,
|
|
944
938
|
accessibleLabel: x,
|
|
945
939
|
visibleLabel: l,
|
|
946
|
-
helperText:
|
|
940
|
+
helperText: h,
|
|
947
941
|
rightElement: T,
|
|
948
942
|
leftElement: S
|
|
949
943
|
};
|
|
950
944
|
}, ur = ({
|
|
951
945
|
scrollHeight: e,
|
|
952
|
-
currentHeight:
|
|
953
|
-
currentLabelOffset:
|
|
954
|
-
currentHelperTextOffset:
|
|
946
|
+
currentHeight: n,
|
|
947
|
+
currentLabelOffset: a = 0,
|
|
948
|
+
currentHelperTextOffset: o = 0
|
|
955
949
|
}) => {
|
|
956
950
|
let r, c;
|
|
957
|
-
if (e > 0 && e !==
|
|
958
|
-
const s = e -
|
|
959
|
-
r =
|
|
951
|
+
if (e > 0 && e !== n) {
|
|
952
|
+
const s = e - n, i = Math.abs(s / 24);
|
|
953
|
+
r = a + -1 * Math.sign(s) * (12 * i), c = o + Math.sign(s) * (12 * i);
|
|
960
954
|
}
|
|
961
955
|
return {
|
|
962
956
|
labelOffset: r,
|
|
@@ -966,20 +960,20 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
966
960
|
}, he = wt.forwardRef(
|
|
967
961
|
({
|
|
968
962
|
id: e,
|
|
969
|
-
name:
|
|
970
|
-
label:
|
|
971
|
-
error:
|
|
963
|
+
name: n,
|
|
964
|
+
label: a,
|
|
965
|
+
error: o = !1,
|
|
972
966
|
raw: r = !1,
|
|
973
967
|
className: c,
|
|
974
968
|
textAreaClassName: s,
|
|
975
969
|
mode: i = "system",
|
|
976
|
-
focusMode:
|
|
970
|
+
focusMode: f = "system",
|
|
977
971
|
value: p,
|
|
978
|
-
defaultValue:
|
|
972
|
+
defaultValue: m,
|
|
979
973
|
disabled: y = !1,
|
|
980
974
|
noBorder: x = !1,
|
|
981
975
|
labelId: l,
|
|
982
|
-
helperText:
|
|
976
|
+
helperText: h = "",
|
|
983
977
|
helperTextOnFocus: T = !1,
|
|
984
978
|
rightElement: S,
|
|
985
979
|
leftElement: b,
|
|
@@ -989,14 +983,14 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
989
983
|
...w
|
|
990
984
|
}, R) => {
|
|
991
985
|
var E;
|
|
992
|
-
const N = v(null), O = Xt([R, N]), [be,
|
|
993
|
-
!!(!T &&
|
|
994
|
-
), Ue = `${
|
|
986
|
+
const N = v(null), O = Xt([R, N]), [be, F] = Ie(), [Y, z] = Ie(), j = v(80), ae = v(-25), H = v(null), xe = v(30), le = v(null), X = Zt({ id: e, prefix: `${He}-` }), [ke, $e] = C(0), [Ce, Ve] = C(0), [Fe, Te] = C(
|
|
987
|
+
!!(!T && h)
|
|
988
|
+
), Ue = `${n} error, ${h}`, U = dr({
|
|
995
989
|
className: c,
|
|
996
990
|
textAreaClassName: s,
|
|
997
|
-
error:
|
|
991
|
+
error: o,
|
|
998
992
|
raw: r,
|
|
999
|
-
focusMode:
|
|
993
|
+
focusMode: f,
|
|
1000
994
|
disabled: y,
|
|
1001
995
|
noBorder: x,
|
|
1002
996
|
mode: i,
|
|
@@ -1005,7 +999,7 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1005
999
|
}), [B, Ge] = Qt({
|
|
1006
1000
|
value: p,
|
|
1007
1001
|
initialControlledDelay: 20,
|
|
1008
|
-
defaultValue:
|
|
1002
|
+
defaultValue: m,
|
|
1009
1003
|
onChange: (A) => {
|
|
1010
1004
|
_ && _({
|
|
1011
1005
|
target: {
|
|
@@ -1016,13 +1010,13 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1016
1010
|
}), Ye = (A) => {
|
|
1017
1011
|
Ge(A.target.value);
|
|
1018
1012
|
}, je = (A) => {
|
|
1019
|
-
T &&
|
|
1013
|
+
T && h && Te(!0), I && I(A);
|
|
1020
1014
|
}, Ke = (A) => {
|
|
1021
|
-
T &&
|
|
1015
|
+
T && h && !B && Te(!1), u && u(A);
|
|
1022
1016
|
};
|
|
1023
1017
|
return Z(() => {
|
|
1024
|
-
|
|
1025
|
-
}, [
|
|
1018
|
+
F && F.width && $e(F.width + 18 + 10);
|
|
1019
|
+
}, [F]), Z(() => {
|
|
1026
1020
|
z && z.width && Ve(z.width + 18 + 10);
|
|
1027
1021
|
}, [z]), Z(() => {
|
|
1028
1022
|
r || N && N.current && B !== void 0 && (N.current.style.height = "inherit", N.current.style.height = N.current.scrollHeight + "px");
|
|
@@ -1054,21 +1048,21 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1054
1048
|
}, [B, r]), z.width > 0 && ((E = H == null ? void 0 : H.current) == null || E.style.setProperty(
|
|
1055
1049
|
"--tw-translate-x",
|
|
1056
1050
|
`${12 + z.width + 5}px`
|
|
1057
|
-
)), /* @__PURE__ */ d("div", { className:
|
|
1051
|
+
)), /* @__PURE__ */ d("div", { className: U.wrapper, children: [
|
|
1058
1052
|
/* @__PURE__ */ t(
|
|
1059
1053
|
"label",
|
|
1060
1054
|
{
|
|
1061
1055
|
htmlFor: X,
|
|
1062
1056
|
id: l,
|
|
1063
|
-
className:
|
|
1064
|
-
children:
|
|
1057
|
+
className: U.accessibleLabel,
|
|
1058
|
+
children: a
|
|
1065
1059
|
}
|
|
1066
1060
|
),
|
|
1067
1061
|
b && /* @__PURE__ */ t(
|
|
1068
1062
|
"div",
|
|
1069
1063
|
{
|
|
1070
1064
|
ref: Y,
|
|
1071
|
-
className:
|
|
1065
|
+
className: U.leftElement,
|
|
1072
1066
|
children: b
|
|
1073
1067
|
}
|
|
1074
1068
|
),
|
|
@@ -1077,13 +1071,13 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1077
1071
|
{
|
|
1078
1072
|
ref: O,
|
|
1079
1073
|
id: X,
|
|
1080
|
-
name:
|
|
1074
|
+
name: n,
|
|
1081
1075
|
disabled: y,
|
|
1082
1076
|
placeholder: r ? void 0 : " ",
|
|
1083
|
-
className:
|
|
1077
|
+
className: U.textArea,
|
|
1084
1078
|
rows: 1,
|
|
1085
|
-
...
|
|
1086
|
-
...
|
|
1079
|
+
...h && { "aria-describedby": `${X}-helper` },
|
|
1080
|
+
...o && { "aria-invalid": "true" },
|
|
1087
1081
|
...S && !b && !r && { style: { paddingRight: ke } },
|
|
1088
1082
|
...b && !S && !r && { style: { paddingLeft: Ce } },
|
|
1089
1083
|
...S && b && !r && {
|
|
@@ -1105,8 +1099,8 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1105
1099
|
ref: H,
|
|
1106
1100
|
"aria-hidden": !0,
|
|
1107
1101
|
htmlFor: X,
|
|
1108
|
-
className: `${
|
|
1109
|
-
children:
|
|
1102
|
+
className: `${U.visibleLabel}`,
|
|
1103
|
+
children: a
|
|
1110
1104
|
}
|
|
1111
1105
|
),
|
|
1112
1106
|
Fe && /* @__PURE__ */ t(
|
|
@@ -1114,31 +1108,31 @@ const nr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1114
1108
|
{
|
|
1115
1109
|
ref: le,
|
|
1116
1110
|
id: `${X}-helper`,
|
|
1117
|
-
className:
|
|
1118
|
-
children:
|
|
1111
|
+
className: U.helperText,
|
|
1112
|
+
children: h
|
|
1119
1113
|
}
|
|
1120
1114
|
),
|
|
1121
1115
|
S && /* @__PURE__ */ t(
|
|
1122
1116
|
"div",
|
|
1123
1117
|
{
|
|
1124
1118
|
ref: be,
|
|
1125
|
-
className:
|
|
1119
|
+
className: U.rightElement,
|
|
1126
1120
|
children: S
|
|
1127
1121
|
}
|
|
1128
1122
|
),
|
|
1129
|
-
|
|
1123
|
+
o && h && /* @__PURE__ */ t(ar, { politeness: "polite", clearAnnouncementDelay: 500, children: Ue })
|
|
1130
1124
|
] });
|
|
1131
1125
|
}
|
|
1132
1126
|
);
|
|
1133
1127
|
he.displayName = "TextArea";
|
|
1134
1128
|
/*!
|
|
1135
|
-
@versini/ui-toggle v3.0.
|
|
1129
|
+
@versini/ui-toggle v3.0.10
|
|
1136
1130
|
© 2025 gizmette.com
|
|
1137
1131
|
*/
|
|
1138
1132
|
try {
|
|
1139
1133
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
1140
|
-
version: "3.0.
|
|
1141
|
-
buildTime: "
|
|
1134
|
+
version: "3.0.10",
|
|
1135
|
+
buildTime: "02/16/2025 06:39 PM EST",
|
|
1142
1136
|
homepage: "https://github.com/aversini/ui-components",
|
|
1143
1137
|
license: "MIT"
|
|
1144
1138
|
});
|
|
@@ -1177,17 +1171,17 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1177
1171
|
"after:content-['']"
|
|
1178
1172
|
), yr = ({
|
|
1179
1173
|
mode: e,
|
|
1180
|
-
noBorder:
|
|
1174
|
+
noBorder: n
|
|
1181
1175
|
}) => g({
|
|
1182
|
-
border: !
|
|
1176
|
+
border: !n,
|
|
1183
1177
|
"border-border-dark bg-surface-medium": e === "light",
|
|
1184
1178
|
"border-border-light bg-surface-darker": e === "dark",
|
|
1185
1179
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
1186
1180
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
1187
1181
|
}), br = ({
|
|
1188
1182
|
mode: e,
|
|
1189
|
-
labelHidden:
|
|
1190
|
-
}) =>
|
|
1183
|
+
labelHidden: n
|
|
1184
|
+
}) => n ? "sr-only" : g("ml-2 text-sm", {
|
|
1191
1185
|
"text-copy-dark": e === "light",
|
|
1192
1186
|
"text-copy-lighter": e === "dark",
|
|
1193
1187
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
@@ -1198,40 +1192,40 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1198
1192
|
e
|
|
1199
1193
|
), kr = ({
|
|
1200
1194
|
mode: e,
|
|
1201
|
-
focusMode:
|
|
1202
|
-
labelHidden:
|
|
1203
|
-
className:
|
|
1195
|
+
focusMode: n,
|
|
1196
|
+
labelHidden: a,
|
|
1197
|
+
className: o,
|
|
1204
1198
|
noBorder: r
|
|
1205
1199
|
}) => ({
|
|
1206
1200
|
toggle: g(
|
|
1207
1201
|
hr(),
|
|
1208
1202
|
yr({ mode: e, noBorder: r }),
|
|
1209
|
-
fr({ focusMode:
|
|
1203
|
+
fr({ focusMode: n }),
|
|
1210
1204
|
gr(),
|
|
1211
1205
|
pr()
|
|
1212
1206
|
),
|
|
1213
|
-
label: br({ mode: e, labelHidden:
|
|
1207
|
+
label: br({ mode: e, labelHidden: a }),
|
|
1214
1208
|
input: "peer sr-only",
|
|
1215
|
-
wrapper: xr({ className:
|
|
1209
|
+
wrapper: xr({ className: o })
|
|
1216
1210
|
}), fe = ({
|
|
1217
1211
|
checked: e = !1,
|
|
1218
|
-
onChange:
|
|
1219
|
-
label:
|
|
1220
|
-
labelHidden:
|
|
1212
|
+
onChange: n,
|
|
1213
|
+
label: a,
|
|
1214
|
+
labelHidden: o = !1,
|
|
1221
1215
|
name: r,
|
|
1222
1216
|
mode: c = "system",
|
|
1223
1217
|
focusMode: s = "system",
|
|
1224
1218
|
className: i,
|
|
1225
|
-
noBorder:
|
|
1219
|
+
noBorder: f = !1
|
|
1226
1220
|
}) => {
|
|
1227
1221
|
const p = kr({
|
|
1228
1222
|
mode: c,
|
|
1229
1223
|
focusMode: s,
|
|
1230
|
-
labelHidden:
|
|
1224
|
+
labelHidden: o,
|
|
1231
1225
|
className: i,
|
|
1232
|
-
noBorder:
|
|
1233
|
-
}),
|
|
1234
|
-
|
|
1226
|
+
noBorder: f
|
|
1227
|
+
}), m = (y) => {
|
|
1228
|
+
n == null || n(y.target.checked);
|
|
1235
1229
|
};
|
|
1236
1230
|
return /* @__PURE__ */ d("label", { className: p.wrapper, children: [
|
|
1237
1231
|
/* @__PURE__ */ t(
|
|
@@ -1241,30 +1235,30 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1241
1235
|
checked: e,
|
|
1242
1236
|
type: "checkbox",
|
|
1243
1237
|
className: p.input,
|
|
1244
|
-
onChange:
|
|
1238
|
+
onChange: m
|
|
1245
1239
|
}
|
|
1246
1240
|
),
|
|
1247
1241
|
/* @__PURE__ */ t("div", { className: p.toggle }),
|
|
1248
|
-
/* @__PURE__ */ t("span", { className: p.label, children:
|
|
1242
|
+
/* @__PURE__ */ t("span", { className: p.label, children: a })
|
|
1249
1243
|
] });
|
|
1250
1244
|
}, Cr = ({
|
|
1251
1245
|
open: e,
|
|
1252
|
-
onOpenChange:
|
|
1246
|
+
onOpenChange: n
|
|
1253
1247
|
}) => {
|
|
1254
|
-
const { getAccessToken:
|
|
1248
|
+
const { getAccessToken: a, user: o } = G(), {
|
|
1255
1249
|
data: r,
|
|
1256
1250
|
error: c,
|
|
1257
1251
|
isLoading: s,
|
|
1258
1252
|
mutate: i
|
|
1259
|
-
} =
|
|
1260
|
-
keys: [
|
|
1261
|
-
getAccessToken:
|
|
1253
|
+
} = Re({
|
|
1254
|
+
keys: [o == null ? void 0 : o.username],
|
|
1255
|
+
getAccessToken: a,
|
|
1262
1256
|
isPaused: !0
|
|
1263
|
-
}), [
|
|
1257
|
+
}), [f, p] = C({
|
|
1264
1258
|
prompts: []
|
|
1265
|
-
}),
|
|
1259
|
+
}), m = ({
|
|
1266
1260
|
slot: l,
|
|
1267
|
-
checked:
|
|
1261
|
+
checked: h,
|
|
1268
1262
|
label: T,
|
|
1269
1263
|
content: S,
|
|
1270
1264
|
privateChat: b = !1
|
|
@@ -1274,7 +1268,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1274
1268
|
slot: l,
|
|
1275
1269
|
label: T,
|
|
1276
1270
|
content: S,
|
|
1277
|
-
enabled:
|
|
1271
|
+
enabled: h,
|
|
1278
1272
|
privateChat: b
|
|
1279
1273
|
}, w = I.findIndex((R) => R.slot === l);
|
|
1280
1274
|
return w === -1 ? {
|
|
@@ -1289,19 +1283,19 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1289
1283
|
l.preventDefault();
|
|
1290
1284
|
try {
|
|
1291
1285
|
await ee({
|
|
1292
|
-
accessToken: await
|
|
1286
|
+
accessToken: await a(),
|
|
1293
1287
|
type: te.SET_USER_PREFERENCES,
|
|
1294
1288
|
params: {
|
|
1295
|
-
user:
|
|
1296
|
-
tags:
|
|
1289
|
+
user: o == null ? void 0 : o.username,
|
|
1290
|
+
tags: f.prompts
|
|
1297
1291
|
}
|
|
1298
1292
|
});
|
|
1299
1293
|
} catch {
|
|
1300
1294
|
}
|
|
1301
1295
|
}, x = () => {
|
|
1302
|
-
i({ ...r }),
|
|
1296
|
+
i({ ...r }), n(!1);
|
|
1303
1297
|
};
|
|
1304
|
-
return
|
|
1298
|
+
return V(() => {
|
|
1305
1299
|
r != null && r.tags && p({ prompts: r.tags });
|
|
1306
1300
|
}, [r]), c || s ? null : /* @__PURE__ */ d(
|
|
1307
1301
|
re,
|
|
@@ -1333,7 +1327,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1333
1327
|
variant: "danger",
|
|
1334
1328
|
focusMode: "light",
|
|
1335
1329
|
onClick: async (l) => {
|
|
1336
|
-
|
|
1330
|
+
n(!1), await y(l);
|
|
1337
1331
|
},
|
|
1338
1332
|
children: "Save"
|
|
1339
1333
|
}
|
|
@@ -1342,8 +1336,8 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1342
1336
|
}
|
|
1343
1337
|
),
|
|
1344
1338
|
children: [
|
|
1345
|
-
/* @__PURE__ */ t("p", { children:
|
|
1346
|
-
|
|
1339
|
+
/* @__PURE__ */ t("p", { children: it }),
|
|
1340
|
+
f.prompts && f.prompts.map((l) => /* @__PURE__ */ d(
|
|
1347
1341
|
P,
|
|
1348
1342
|
{
|
|
1349
1343
|
header: `Prompt ${l.slot + 1}`,
|
|
@@ -1356,11 +1350,11 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1356
1350
|
label: "Label",
|
|
1357
1351
|
name: `prompt${l.slot}-label`,
|
|
1358
1352
|
value: l.label,
|
|
1359
|
-
onChange: (
|
|
1360
|
-
|
|
1353
|
+
onChange: (h) => {
|
|
1354
|
+
m({
|
|
1361
1355
|
slot: l.slot,
|
|
1362
1356
|
checked: l.enabled,
|
|
1363
|
-
label:
|
|
1357
|
+
label: h.target.value,
|
|
1364
1358
|
content: l.content
|
|
1365
1359
|
});
|
|
1366
1360
|
}
|
|
@@ -1372,12 +1366,12 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1372
1366
|
label: "Content",
|
|
1373
1367
|
name: `prompt${l.slot}-content`,
|
|
1374
1368
|
value: l.content,
|
|
1375
|
-
onChange: (
|
|
1376
|
-
|
|
1369
|
+
onChange: (h) => {
|
|
1370
|
+
m({
|
|
1377
1371
|
slot: l.slot,
|
|
1378
1372
|
checked: l.enabled,
|
|
1379
1373
|
label: l.label,
|
|
1380
|
-
content:
|
|
1374
|
+
content: h.target.value
|
|
1381
1375
|
});
|
|
1382
1376
|
}
|
|
1383
1377
|
}
|
|
@@ -1390,10 +1384,10 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1390
1384
|
noBorder: !0,
|
|
1391
1385
|
label: "Enabled",
|
|
1392
1386
|
name: l.slot.toString(),
|
|
1393
|
-
onChange: (
|
|
1394
|
-
|
|
1387
|
+
onChange: (h) => {
|
|
1388
|
+
m({
|
|
1395
1389
|
slot: l.slot,
|
|
1396
|
-
checked:
|
|
1390
|
+
checked: h,
|
|
1397
1391
|
label: l.label,
|
|
1398
1392
|
content: l.content
|
|
1399
1393
|
});
|
|
@@ -1408,13 +1402,13 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1408
1402
|
noBorder: !0,
|
|
1409
1403
|
label: "Temporary Chat",
|
|
1410
1404
|
name: `private-${l.slot.toString()}`,
|
|
1411
|
-
onChange: (
|
|
1412
|
-
|
|
1405
|
+
onChange: (h) => {
|
|
1406
|
+
m({
|
|
1413
1407
|
slot: l.slot,
|
|
1414
1408
|
checked: l.enabled,
|
|
1415
1409
|
label: l.label,
|
|
1416
1410
|
content: l.content,
|
|
1417
|
-
privateChat:
|
|
1411
|
+
privateChat: h
|
|
1418
1412
|
});
|
|
1419
1413
|
},
|
|
1420
1414
|
checked: l.privateChat
|
|
@@ -1429,20 +1423,20 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1429
1423
|
);
|
|
1430
1424
|
}, Tr = ({
|
|
1431
1425
|
open: e,
|
|
1432
|
-
onOpenChange:
|
|
1426
|
+
onOpenChange: n
|
|
1433
1427
|
}) => {
|
|
1434
|
-
const { getAccessToken:
|
|
1428
|
+
const { getAccessToken: a, user: o } = G(), {
|
|
1435
1429
|
data: r,
|
|
1436
1430
|
error: c,
|
|
1437
1431
|
isLoading: s,
|
|
1438
1432
|
mutate: i
|
|
1439
|
-
} =
|
|
1440
|
-
keys: [
|
|
1441
|
-
getAccessToken:
|
|
1442
|
-
}), [
|
|
1433
|
+
} = Re({
|
|
1434
|
+
keys: [o == null ? void 0 : o.username],
|
|
1435
|
+
getAccessToken: a
|
|
1436
|
+
}), [f, p] = C(!1), [m, y] = C({
|
|
1443
1437
|
loadingLocation: !1
|
|
1444
|
-
}), [x, l] = C(""), [
|
|
1445
|
-
key: ge +
|
|
1438
|
+
}), [x, l] = C(""), [h, T] = C(""), [S, b] = ye({
|
|
1439
|
+
key: ge + dt,
|
|
1446
1440
|
initialValue: !1
|
|
1447
1441
|
}), _ = (E) => {
|
|
1448
1442
|
b(E);
|
|
@@ -1450,12 +1444,12 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1450
1444
|
E.preventDefault();
|
|
1451
1445
|
try {
|
|
1452
1446
|
await ee({
|
|
1453
|
-
accessToken: await
|
|
1447
|
+
accessToken: await a(),
|
|
1454
1448
|
type: te.SET_USER_PREFERENCES,
|
|
1455
1449
|
params: {
|
|
1456
|
-
user:
|
|
1450
|
+
user: o == null ? void 0 : o.username,
|
|
1457
1451
|
instructions: x,
|
|
1458
|
-
location:
|
|
1452
|
+
location: h,
|
|
1459
1453
|
provider: r.provider
|
|
1460
1454
|
}
|
|
1461
1455
|
}), i(), y({
|
|
@@ -1468,15 +1462,15 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1468
1462
|
loadingLocation: !0
|
|
1469
1463
|
}), T("...");
|
|
1470
1464
|
try {
|
|
1471
|
-
const E = Date.now(), N = await
|
|
1472
|
-
accessToken: await
|
|
1465
|
+
const E = Date.now(), N = await ht(), O = await ee({
|
|
1466
|
+
accessToken: await a(),
|
|
1473
1467
|
type: te.GET_LOCATION,
|
|
1474
1468
|
params: {
|
|
1475
1469
|
latitude: N.latitude,
|
|
1476
1470
|
longitude: N.longitude
|
|
1477
1471
|
}
|
|
1478
|
-
}),
|
|
1479
|
-
if (
|
|
1472
|
+
}), F = Date.now() - E;
|
|
1473
|
+
if (F < 2e3 && await new Promise((Y) => setTimeout(Y, 2e3 - F)), O.status === 200) {
|
|
1480
1474
|
const { city: Y, state: z, country: j, displayName: ae } = O.data, H = Y && z && j ? `${Y}, ${z}, ${j}` : ae;
|
|
1481
1475
|
y({
|
|
1482
1476
|
loadingLocation: !1
|
|
@@ -1488,18 +1482,18 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1488
1482
|
} catch {
|
|
1489
1483
|
}
|
|
1490
1484
|
}, w = () => {
|
|
1491
|
-
p(!
|
|
1485
|
+
p(!f);
|
|
1492
1486
|
}, R = () => {
|
|
1493
|
-
i({ ...r }),
|
|
1487
|
+
i({ ...r }), n(!1);
|
|
1494
1488
|
};
|
|
1495
|
-
return
|
|
1489
|
+
return V(() => {
|
|
1496
1490
|
r != null && r.instructions && l(r.instructions), r != null && r.location && T(r.location);
|
|
1497
1491
|
}, [r]), c || s ? null : /* @__PURE__ */ t(
|
|
1498
1492
|
re,
|
|
1499
1493
|
{
|
|
1500
1494
|
open: e,
|
|
1501
1495
|
onOpenChange: R,
|
|
1502
|
-
title:
|
|
1496
|
+
title: ut,
|
|
1503
1497
|
footer: /* @__PURE__ */ d(
|
|
1504
1498
|
W,
|
|
1505
1499
|
{
|
|
@@ -1524,7 +1518,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1524
1518
|
variant: "danger",
|
|
1525
1519
|
focusMode: "light",
|
|
1526
1520
|
onClick: async (E) => {
|
|
1527
|
-
|
|
1521
|
+
n(!1), await I(E);
|
|
1528
1522
|
},
|
|
1529
1523
|
children: "Save"
|
|
1530
1524
|
}
|
|
@@ -1533,7 +1527,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1533
1527
|
}
|
|
1534
1528
|
),
|
|
1535
1529
|
children: /* @__PURE__ */ d(D, { children: [
|
|
1536
|
-
|
|
1530
|
+
f && /* @__PURE__ */ t(Cr, { open: f, onOpenChange: p }),
|
|
1537
1531
|
/* @__PURE__ */ d(
|
|
1538
1532
|
P,
|
|
1539
1533
|
{
|
|
@@ -1580,7 +1574,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1580
1574
|
children: [
|
|
1581
1575
|
/* @__PURE__ */ d("p", { className: "text-sm", children: [
|
|
1582
1576
|
"What would you like ",
|
|
1583
|
-
/* @__PURE__ */ t("em", { children:
|
|
1577
|
+
/* @__PURE__ */ t("em", { children: mt }),
|
|
1584
1578
|
" to know about you to provide better responses?"
|
|
1585
1579
|
] }),
|
|
1586
1580
|
/* @__PURE__ */ t(
|
|
@@ -1615,7 +1609,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1615
1609
|
mode: "alt-system",
|
|
1616
1610
|
name: "location",
|
|
1617
1611
|
label: "Location",
|
|
1618
|
-
value:
|
|
1612
|
+
value: h,
|
|
1619
1613
|
onChange: (E) => {
|
|
1620
1614
|
T(E.target.value);
|
|
1621
1615
|
},
|
|
@@ -1628,9 +1622,9 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1628
1622
|
className: "mt-2",
|
|
1629
1623
|
size: "small",
|
|
1630
1624
|
noBorder: !0,
|
|
1631
|
-
disabled:
|
|
1625
|
+
disabled: m.loadingLocation,
|
|
1632
1626
|
onClick: u,
|
|
1633
|
-
children:
|
|
1627
|
+
children: m.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
1634
1628
|
}
|
|
1635
1629
|
)
|
|
1636
1630
|
]
|
|
@@ -1640,14 +1634,14 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1640
1634
|
}
|
|
1641
1635
|
);
|
|
1642
1636
|
}, Ar = ({ isComponent: e = !1 }) => {
|
|
1643
|
-
const { logout:
|
|
1637
|
+
const { logout: n } = G(), [a, o] = C(!1), [r, c] = C(!1), [s, i] = C(!1), [f, p] = C(!1), [m, y] = C(!1);
|
|
1644
1638
|
return /* @__PURE__ */ d(D, { children: [
|
|
1645
1639
|
/* @__PURE__ */ t(
|
|
1646
|
-
|
|
1640
|
+
Me,
|
|
1647
1641
|
{
|
|
1648
|
-
showConfirmation:
|
|
1642
|
+
showConfirmation: m,
|
|
1649
1643
|
setShowConfirmation: y,
|
|
1650
|
-
action:
|
|
1644
|
+
action: n,
|
|
1651
1645
|
customStrings: {
|
|
1652
1646
|
confirmAction: Ae,
|
|
1653
1647
|
cancelAction: "Cancel",
|
|
@@ -1656,10 +1650,10 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1656
1650
|
children: /* @__PURE__ */ t("p", { children: "Are you sure you want to log out?" })
|
|
1657
1651
|
}
|
|
1658
1652
|
),
|
|
1659
|
-
/* @__PURE__ */ t(Gt, { open:
|
|
1653
|
+
/* @__PURE__ */ t(Gt, { open: a, onOpenChange: o }),
|
|
1660
1654
|
/* @__PURE__ */ t(Tr, { open: r, onOpenChange: c }),
|
|
1661
1655
|
s && /* @__PURE__ */ t(Ft, { open: s, onOpenChange: i }),
|
|
1662
|
-
/* @__PURE__ */ t(Dt, { open:
|
|
1656
|
+
/* @__PURE__ */ t(Dt, { open: f, onOpenChange: p }),
|
|
1663
1657
|
/* @__PURE__ */ t("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ t(W, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(M, { children: /* @__PURE__ */ t(
|
|
1664
1658
|
Et,
|
|
1665
1659
|
{
|
|
@@ -1679,7 +1673,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1679
1673
|
{
|
|
1680
1674
|
label: "Profile",
|
|
1681
1675
|
onClick: () => {
|
|
1682
|
-
|
|
1676
|
+
o(!a);
|
|
1683
1677
|
},
|
|
1684
1678
|
icon: /* @__PURE__ */ t(Mt, {})
|
|
1685
1679
|
}
|
|
@@ -1709,7 +1703,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1709
1703
|
{
|
|
1710
1704
|
label: "About",
|
|
1711
1705
|
onClick: () => {
|
|
1712
|
-
p(!
|
|
1706
|
+
p(!f);
|
|
1713
1707
|
},
|
|
1714
1708
|
icon: /* @__PURE__ */ t(Pt, {})
|
|
1715
1709
|
}
|
|
@@ -1721,7 +1715,7 @@ const mr = "av-toggle", hr = () => g("peer", "h-6", "w-11", "rounded-full"), fr
|
|
|
1721
1715
|
{
|
|
1722
1716
|
label: "Log out",
|
|
1723
1717
|
onClick: () => {
|
|
1724
|
-
y(!
|
|
1718
|
+
y(!m);
|
|
1725
1719
|
},
|
|
1726
1720
|
icon: /* @__PURE__ */ t("div", { className: "text-red-700", children: /* @__PURE__ */ t(_t, { monotone: !0 }) })
|
|
1727
1721
|
}
|