@versini/sassysaint 5.5.19 → 5.5.21
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.CN26Vdes.js → App.DhOL7eGv.js} +304 -302
- package/dist/chunks/{HeaderToolbar.RG5VcCoN.js → HeaderToolbar.B4yR6iL0.js} +595 -595
- package/dist/chunks/{MarkdownWithExtra.D9aZRrcd.js → MarkdownWithExtra.BV7XoKnH.js} +2 -2
- package/dist/chunks/{MessageAssistant.DpLJVr9t.js → MessageAssistant.Dv5-gw8Q.js} +3 -3
- package/dist/chunks/{index.DaKlCgCU.js → index.CEwE7VpW.js} +275 -275
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { g as A, R as O, CARDS as S, renderDataAsList as he, pluralize as
|
|
3
|
-
import { AppContext as ve, HistoryContext as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
1
|
+
import { jsx as o, jsxs as y, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { g as A, R as O, CARDS as S, renderDataAsList as he, pluralize as fe, ABOUT_TITLE as Ft, L as Y, j as M, C as G, un as Q, INFINITE_SCROLL_LIMIT as Fe, INFINITE_SCROLL_THRESHOLD as Ge, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Gt, P as J, ACTION_RESET as et, ACTION_RESTORE as Vt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Ut, HISTORY_TITLE as Ht, ye as Ee, ACTION_SEARCH as jt, debounce as Wt, M as Kt, z as Ue, durationFormatter as Yt, PROFILE_TITLE as Zt, PROMPTS_DESCRIPTION as qt, ACTION_SET_PROMPTS as Qt, DEFAULT_AI_ENGINE as me, LOCAL_STORAGE_ENGINE_TOGGLE as tt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as X, APP_NAME as er, ACTION_ENGINE as rt, getCurrentGeoLocation as tr, LOG_OUT as He } from "./index.CEwE7VpW.js";
|
|
3
|
+
import { AppContext as ve, HistoryContext as ot, E as le, ge as rr, he as or, ue as xe, ie as P, ye as ar, me as nr, be as sr, serviceCall as $, SERVICE_TYPES as D, f as W, PromptsContext as ir, Pe as je, NewChatButton as cr } from "./App.DhOL7eGv.js";
|
|
4
|
+
import * as f from "react";
|
|
5
|
+
import E, { useId as ze, forwardRef as at, useState as R, useRef as Z, useContext as F, useEffect as q, useCallback as lr, Fragment as dr, useLayoutEffect as We } from "react";
|
|
6
6
|
import w from "clsx";
|
|
7
|
-
import { useFloatingTree as nt, useFloatingNodeId as ur, useListItem as st, useFloating as it, offset as mr, flip as hr, shift as
|
|
8
|
-
const
|
|
7
|
+
import { useFloatingTree as nt, useFloatingNodeId as ur, useListItem as st, useFloating as it, offset as mr, flip as hr, shift as fr, autoUpdate as gr, useClick as ct, useRole as lt, useDismiss as dt, useListNavigation as pr, useTypeahead as br, useInteractions as ut, useMergeRefs as Ae, FloatingNode as vr, FloatingList as yr, FloatingPortal as mt, FloatingFocusManager as ht, FloatingTree as kr, FloatingOverlay as wr } from "@floating-ui/react";
|
|
8
|
+
const ft = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
title: r,
|
|
12
|
-
monotone:
|
|
12
|
+
monotone: a,
|
|
13
13
|
...n
|
|
14
|
-
}) => /* @__PURE__ */
|
|
14
|
+
}) => /* @__PURE__ */ o(
|
|
15
15
|
A,
|
|
16
16
|
{
|
|
17
17
|
defaultViewBox: "0 0 24 24",
|
|
@@ -20,13 +20,13 @@ const gt = ({
|
|
|
20
20
|
className: e,
|
|
21
21
|
title: r || "Anthropic",
|
|
22
22
|
...n,
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ o("path", { d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z" })
|
|
24
24
|
}
|
|
25
25
|
), Nr = ({
|
|
26
26
|
className: e,
|
|
27
27
|
viewBox: t,
|
|
28
28
|
title: r,
|
|
29
|
-
monotone:
|
|
29
|
+
monotone: a,
|
|
30
30
|
...n
|
|
31
31
|
}) => /* @__PURE__ */ y(
|
|
32
32
|
A,
|
|
@@ -38,15 +38,15 @@ const gt = ({
|
|
|
38
38
|
title: r || "Back",
|
|
39
39
|
...n,
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ o(
|
|
42
42
|
"path",
|
|
43
43
|
{
|
|
44
44
|
className: "fa-secondary",
|
|
45
|
-
opacity:
|
|
45
|
+
opacity: a ? "1" : "0.4",
|
|
46
46
|
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-224c0-111-80.7-203.1-186.7-220.9c-1.8-.3-3.6-.4-5.3-.4c-15.3 0-28.9 11.1-31.5 26.7c-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 160c-79.2 0-145.1-57.6-157.8-133.3c-2.9-17.4-19.4-29.2-36.9-26.3c-15.6 2.6-26.7 16.2-26.7 31.5z"
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ o(
|
|
50
50
|
"path",
|
|
51
51
|
{
|
|
52
52
|
className: "fa-primary",
|
|
@@ -59,7 +59,7 @@ const gt = ({
|
|
|
59
59
|
className: e,
|
|
60
60
|
viewBox: t,
|
|
61
61
|
title: r,
|
|
62
|
-
monotone:
|
|
62
|
+
monotone: a,
|
|
63
63
|
...n
|
|
64
64
|
}) => /* @__PURE__ */ y(
|
|
65
65
|
A,
|
|
@@ -71,15 +71,15 @@ const gt = ({
|
|
|
71
71
|
title: r || "Delete",
|
|
72
72
|
...n,
|
|
73
73
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ o(
|
|
75
75
|
"path",
|
|
76
76
|
{
|
|
77
77
|
className: "fa-secondary",
|
|
78
|
-
opacity:
|
|
78
|
+
opacity: a ? "1" : "0.4",
|
|
79
79
|
d: "M32 96l0 352c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-352L32 96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224z"
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ o(
|
|
83
83
|
"path",
|
|
84
84
|
{
|
|
85
85
|
className: "fa-primary",
|
|
@@ -92,7 +92,7 @@ const gt = ({
|
|
|
92
92
|
className: e,
|
|
93
93
|
viewBox: t,
|
|
94
94
|
title: r,
|
|
95
|
-
monotone:
|
|
95
|
+
monotone: a,
|
|
96
96
|
...n
|
|
97
97
|
}) => /* @__PURE__ */ y(
|
|
98
98
|
A,
|
|
@@ -104,15 +104,15 @@ const gt = ({
|
|
|
104
104
|
title: r || "Edit",
|
|
105
105
|
...n,
|
|
106
106
|
children: [
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ o(
|
|
108
108
|
"path",
|
|
109
109
|
{
|
|
110
110
|
className: "fa-secondary",
|
|
111
|
-
opacity:
|
|
111
|
+
opacity: a ? "1" : "0.4",
|
|
112
112
|
d: "M0 160c0-53 43-96 96-96l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32l0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96c0 53-43 96-96 96L96 512c-53 0-96-43-96-96L0 160z"
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ o(
|
|
116
116
|
"path",
|
|
117
117
|
{
|
|
118
118
|
className: "fa-primary",
|
|
@@ -121,11 +121,11 @@ const gt = ({
|
|
|
121
121
|
)
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
|
-
),
|
|
124
|
+
), Ir = ({
|
|
125
125
|
className: e,
|
|
126
126
|
viewBox: t,
|
|
127
127
|
title: r,
|
|
128
|
-
monotone:
|
|
128
|
+
monotone: a,
|
|
129
129
|
...n
|
|
130
130
|
}) => /* @__PURE__ */ y(
|
|
131
131
|
A,
|
|
@@ -137,15 +137,15 @@ const gt = ({
|
|
|
137
137
|
title: r || "History",
|
|
138
138
|
...n,
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ o(
|
|
141
141
|
"path",
|
|
142
142
|
{
|
|
143
143
|
className: "fa-secondary",
|
|
144
|
-
opacity:
|
|
144
|
+
opacity: a ? "1" : "0.4",
|
|
145
145
|
d: "M0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.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.4c-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.9z"
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ o(
|
|
149
149
|
"path",
|
|
150
150
|
{
|
|
151
151
|
className: "fa-primary",
|
|
@@ -154,11 +154,11 @@ const gt = ({
|
|
|
154
154
|
)
|
|
155
155
|
]
|
|
156
156
|
}
|
|
157
|
-
),
|
|
157
|
+
), Er = ({
|
|
158
158
|
className: e,
|
|
159
159
|
viewBox: t,
|
|
160
160
|
title: r,
|
|
161
|
-
monotone:
|
|
161
|
+
monotone: a,
|
|
162
162
|
...n
|
|
163
163
|
}) => /* @__PURE__ */ y(
|
|
164
164
|
A,
|
|
@@ -170,7 +170,7 @@ const gt = ({
|
|
|
170
170
|
title: r || "Info",
|
|
171
171
|
...n,
|
|
172
172
|
children: [
|
|
173
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ o(
|
|
174
174
|
"path",
|
|
175
175
|
{
|
|
176
176
|
className: "fa-secondary",
|
|
@@ -178,7 +178,7 @@ const gt = ({
|
|
|
178
178
|
d: "M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zm192-8c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24zm96-88a32 32 0 1 1 -64 0 32 32 0 1 1 64 0z"
|
|
179
179
|
}
|
|
180
180
|
),
|
|
181
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ o(
|
|
182
182
|
"path",
|
|
183
183
|
{
|
|
184
184
|
className: "fa-primary",
|
|
@@ -187,13 +187,13 @@ const gt = ({
|
|
|
187
187
|
)
|
|
188
188
|
]
|
|
189
189
|
}
|
|
190
|
-
),
|
|
190
|
+
), gt = ({
|
|
191
191
|
className: e,
|
|
192
192
|
viewBox: t,
|
|
193
193
|
title: r,
|
|
194
|
-
monotone:
|
|
194
|
+
monotone: a,
|
|
195
195
|
...n
|
|
196
|
-
}) => /* @__PURE__ */
|
|
196
|
+
}) => /* @__PURE__ */ o(
|
|
197
197
|
A,
|
|
198
198
|
{
|
|
199
199
|
defaultViewBox: "0 0 24 24",
|
|
@@ -202,13 +202,13 @@ const gt = ({
|
|
|
202
202
|
className: e,
|
|
203
203
|
title: r || "OpenAI",
|
|
204
204
|
...n,
|
|
205
|
-
children: /* @__PURE__ */
|
|
205
|
+
children: /* @__PURE__ */ o("path", { d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" })
|
|
206
206
|
}
|
|
207
|
-
),
|
|
207
|
+
), Tr = ({
|
|
208
208
|
className: e,
|
|
209
209
|
viewBox: t,
|
|
210
210
|
title: r,
|
|
211
|
-
monotone:
|
|
211
|
+
monotone: a,
|
|
212
212
|
...n
|
|
213
213
|
}) => /* @__PURE__ */ y(
|
|
214
214
|
A,
|
|
@@ -220,7 +220,7 @@ const gt = ({
|
|
|
220
220
|
title: r || "Profile",
|
|
221
221
|
...n,
|
|
222
222
|
children: [
|
|
223
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ o(
|
|
224
224
|
"path",
|
|
225
225
|
{
|
|
226
226
|
className: "fa-secondary",
|
|
@@ -228,7 +228,7 @@ const gt = ({
|
|
|
228
228
|
d: "M0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zM64 368c0-44.2 35.8-80 80-80l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L80 384c-8.8 0-16-7.2-16-16zM240 192a64 64 0 1 1 -128 0 64 64 0 1 1 128 0zm112-16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"
|
|
229
229
|
}
|
|
230
230
|
),
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ o(
|
|
232
232
|
"path",
|
|
233
233
|
{
|
|
234
234
|
className: "fa-primary",
|
|
@@ -241,7 +241,7 @@ const gt = ({
|
|
|
241
241
|
className: e,
|
|
242
242
|
viewBox: t,
|
|
243
243
|
title: r,
|
|
244
|
-
monotone:
|
|
244
|
+
monotone: a,
|
|
245
245
|
...n
|
|
246
246
|
}) => /* @__PURE__ */ y(
|
|
247
247
|
A,
|
|
@@ -253,15 +253,15 @@ const gt = ({
|
|
|
253
253
|
title: r || "Restore",
|
|
254
254
|
...n,
|
|
255
255
|
children: [
|
|
256
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ o(
|
|
257
257
|
"path",
|
|
258
258
|
{
|
|
259
259
|
className: "fa-secondary",
|
|
260
|
-
opacity:
|
|
260
|
+
opacity: a ? "1" : "0.4",
|
|
261
261
|
d: "M128 80l0 16 64 0 0-16c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 224c0 8.8-7.2 16-16 16l-16 0 0 64 16 0c44.2 0 80-35.8 80-80l0-224c0-44.2-35.8-80-80-80L208 0c-44.2 0-80 35.8-80 80z"
|
|
262
262
|
}
|
|
263
263
|
),
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ o(
|
|
265
265
|
"path",
|
|
266
266
|
{
|
|
267
267
|
className: "fa-primary",
|
|
@@ -274,9 +274,9 @@ const gt = ({
|
|
|
274
274
|
className: e,
|
|
275
275
|
viewBox: t,
|
|
276
276
|
title: r,
|
|
277
|
-
monotone:
|
|
277
|
+
monotone: a,
|
|
278
278
|
...n
|
|
279
|
-
}) => /* @__PURE__ */
|
|
279
|
+
}) => /* @__PURE__ */ o(
|
|
280
280
|
A,
|
|
281
281
|
{
|
|
282
282
|
defaultViewBox: "0 0 448 512",
|
|
@@ -285,13 +285,13 @@ const gt = ({
|
|
|
285
285
|
className: e,
|
|
286
286
|
title: r || "Settings",
|
|
287
287
|
...n,
|
|
288
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ o("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" })
|
|
289
289
|
}
|
|
290
290
|
), Rr = ({
|
|
291
291
|
className: e,
|
|
292
292
|
viewBox: t,
|
|
293
293
|
title: r,
|
|
294
|
-
monotone:
|
|
294
|
+
monotone: a,
|
|
295
295
|
...n
|
|
296
296
|
}) => /* @__PURE__ */ y(
|
|
297
297
|
A,
|
|
@@ -303,15 +303,15 @@ const gt = ({
|
|
|
303
303
|
title: r || "Sliders",
|
|
304
304
|
...n,
|
|
305
305
|
children: [
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ o(
|
|
307
307
|
"path",
|
|
308
308
|
{
|
|
309
309
|
className: "fa-secondary",
|
|
310
|
-
opacity:
|
|
310
|
+
opacity: a ? "1" : "0.4",
|
|
311
311
|
d: "M0 96C0 78.3 14.3 64 32 64l86.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l246.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 288c-17.7 0-32-14.3-32-32zM0 416c0-17.7 14.3-32 32-32l54.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 448c-17.7 0-32-14.3-32-32zm233.3-32L480 384c17.7 0 32 14.3 32 32s-14.3 32-32 32l-246.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320L480 64c17.7 0 32 14.3 32 32s-14.3 32-32 32l-214.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160l54.7 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-54.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32z"
|
|
312
312
|
}
|
|
313
313
|
),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ o(
|
|
315
315
|
"path",
|
|
316
316
|
{
|
|
317
317
|
className: "fa-primary",
|
|
@@ -321,10 +321,10 @@ const gt = ({
|
|
|
321
321
|
]
|
|
322
322
|
}
|
|
323
323
|
);
|
|
324
|
-
function
|
|
324
|
+
function ge(e) {
|
|
325
325
|
return ze();
|
|
326
326
|
}
|
|
327
|
-
const
|
|
327
|
+
const Te = f.createContext({
|
|
328
328
|
getItemProps: () => ({}),
|
|
329
329
|
activeIndex: null,
|
|
330
330
|
/* v8 ignore next 2 */
|
|
@@ -344,28 +344,28 @@ const Ee = g.createContext({
|
|
|
344
344
|
return t.displayName || t.name || "Component";
|
|
345
345
|
}
|
|
346
346
|
return "Element";
|
|
347
|
-
}, pt =
|
|
347
|
+
}, pt = at(
|
|
348
348
|
({
|
|
349
349
|
trigger: e,
|
|
350
350
|
children: t,
|
|
351
351
|
label: r = "Open menu",
|
|
352
|
-
defaultPlacement:
|
|
352
|
+
defaultPlacement: a = "bottom-start",
|
|
353
353
|
onOpenChange: n,
|
|
354
354
|
mode: s = "system",
|
|
355
355
|
focusMode: i = "system",
|
|
356
356
|
...c
|
|
357
357
|
}, l) => {
|
|
358
|
-
const [d, u] = R(!1), [
|
|
358
|
+
const [d, u] = R(!1), [g, p] = R(!1), [v, h] = R(null), k = Z([]), b = Z([]), N = F(Te), x = nt(), m = ur(), C = st(), { floatingStyles: T, refs: L, context: _ } = it({
|
|
359
359
|
nodeId: m,
|
|
360
360
|
open: d,
|
|
361
|
-
onOpenChange: (
|
|
362
|
-
u(
|
|
361
|
+
onOpenChange: (ae) => {
|
|
362
|
+
u(ae), n == null || n(ae);
|
|
363
363
|
},
|
|
364
|
-
placement:
|
|
364
|
+
placement: a,
|
|
365
365
|
strategy: "fixed",
|
|
366
|
-
middleware: [mr({ mainAxis: 10 }), hr(),
|
|
367
|
-
whileElementsMounted:
|
|
368
|
-
}),
|
|
366
|
+
middleware: [mr({ mainAxis: 10 }), hr(), fr()],
|
|
367
|
+
whileElementsMounted: gr
|
|
368
|
+
}), I = ct(_, {
|
|
369
369
|
event: "mousedown",
|
|
370
370
|
toggle: !0,
|
|
371
371
|
ignoreMouse: !1
|
|
@@ -379,19 +379,19 @@ const Ee = g.createContext({
|
|
|
379
379
|
listRef: b,
|
|
380
380
|
onMatch: d ? h : void 0,
|
|
381
381
|
activeIndex: v
|
|
382
|
-
}), { getReferenceProps:
|
|
382
|
+
}), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps: B } = ut([I, V, U, H, re]), De = Ke(e) === "Button" || Ke(e) === "ButtonIcon", $t = De ? {
|
|
383
383
|
noInternalClick: De,
|
|
384
384
|
focusMode: i,
|
|
385
385
|
mode: s
|
|
386
|
-
} : {}, Dt =
|
|
386
|
+
} : {}, Dt = E.cloneElement(
|
|
387
387
|
e,
|
|
388
388
|
{
|
|
389
389
|
...$t,
|
|
390
390
|
"aria-label": r,
|
|
391
391
|
"data-open": d ? "" : void 0,
|
|
392
|
-
"data-focus-inside":
|
|
392
|
+
"data-focus-inside": g ? "" : void 0,
|
|
393
393
|
ref: Ae([L.setReference, C.ref, l]),
|
|
394
|
-
...
|
|
394
|
+
...oe(
|
|
395
395
|
N.getItemProps({
|
|
396
396
|
...c
|
|
397
397
|
})
|
|
@@ -401,18 +401,18 @@ const Ee = g.createContext({
|
|
|
401
401
|
return q(() => {
|
|
402
402
|
if (!x)
|
|
403
403
|
return;
|
|
404
|
-
function
|
|
404
|
+
function ae() {
|
|
405
405
|
u(!1), n == null || n(!1);
|
|
406
406
|
}
|
|
407
|
-
return x.events.on("click",
|
|
408
|
-
x.events.off("click",
|
|
407
|
+
return x.events.on("click", ae), () => {
|
|
408
|
+
x.events.off("click", ae);
|
|
409
409
|
};
|
|
410
410
|
}, [x, n]), q(() => {
|
|
411
411
|
d && x && x.events.emit("menuopen", { nodeId: m });
|
|
412
412
|
}, [x, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
|
|
413
413
|
Dt,
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
|
|
414
|
+
/* @__PURE__ */ o(
|
|
415
|
+
Te.Provider,
|
|
416
416
|
{
|
|
417
417
|
value: {
|
|
418
418
|
activeIndex: v,
|
|
@@ -421,19 +421,19 @@ const Ee = g.createContext({
|
|
|
421
421
|
setHasFocusInside: p,
|
|
422
422
|
isOpen: d
|
|
423
423
|
},
|
|
424
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ o(yr, { elementsRef: k, labelsRef: b, children: d && /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(
|
|
425
425
|
ht,
|
|
426
426
|
{
|
|
427
427
|
context: _,
|
|
428
428
|
modal: !1,
|
|
429
429
|
initialFocus: 0,
|
|
430
430
|
returnFocus: !0,
|
|
431
|
-
children: /* @__PURE__ */
|
|
431
|
+
children: /* @__PURE__ */ o(
|
|
432
432
|
"div",
|
|
433
433
|
{
|
|
434
434
|
ref: L.setFloating,
|
|
435
435
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
436
|
-
style:
|
|
436
|
+
style: T,
|
|
437
437
|
...Ce(),
|
|
438
438
|
children: t
|
|
439
439
|
}
|
|
@@ -444,29 +444,29 @@ const Ee = g.createContext({
|
|
|
444
444
|
)
|
|
445
445
|
] });
|
|
446
446
|
}
|
|
447
|
-
), _e =
|
|
447
|
+
), _e = at((e, t) => /* @__PURE__ */ o(kr, { children: /* @__PURE__ */ o(pt, { ...e, ref: t }) }));
|
|
448
448
|
_e.displayName = "Menu";
|
|
449
449
|
pt.displayName = "MenuComponent";
|
|
450
|
-
const j =
|
|
450
|
+
const j = f.forwardRef(
|
|
451
451
|
({
|
|
452
452
|
label: e,
|
|
453
453
|
disabled: t,
|
|
454
454
|
icon: r,
|
|
455
|
-
raw:
|
|
455
|
+
raw: a = !1,
|
|
456
456
|
children: n,
|
|
457
457
|
ignoreClick: s = !1,
|
|
458
458
|
...i
|
|
459
459
|
}, c) => {
|
|
460
460
|
let l = "";
|
|
461
|
-
const d =
|
|
462
|
-
return
|
|
461
|
+
const d = f.useContext(Te), u = st({ label: t ? null : e }), g = nt(), p = Ae([u.ref, c]);
|
|
462
|
+
return a && n ? /* @__PURE__ */ o(
|
|
463
463
|
"div",
|
|
464
464
|
{
|
|
465
465
|
role: "menuitem",
|
|
466
466
|
...d.getItemProps({
|
|
467
467
|
onClick(v) {
|
|
468
468
|
var h;
|
|
469
|
-
s || ((h = i.onClick) == null || h.call(i, v),
|
|
469
|
+
s || ((h = i.onClick) == null || h.call(i, v), g == null || g.events.emit("click"));
|
|
470
470
|
}
|
|
471
471
|
}),
|
|
472
472
|
children: n
|
|
@@ -483,7 +483,7 @@ const j = g.forwardRef(
|
|
|
483
483
|
...d.getItemProps({
|
|
484
484
|
onClick(v) {
|
|
485
485
|
var h;
|
|
486
|
-
s || ((h = i.onClick) == null || h.call(i, v),
|
|
486
|
+
s || ((h = i.onClick) == null || h.call(i, v), g == null || g.events.emit("click"));
|
|
487
487
|
},
|
|
488
488
|
onFocus(v) {
|
|
489
489
|
var h;
|
|
@@ -492,7 +492,7 @@ const j = g.forwardRef(
|
|
|
492
492
|
}),
|
|
493
493
|
children: [
|
|
494
494
|
r,
|
|
495
|
-
e && /* @__PURE__ */
|
|
495
|
+
e && /* @__PURE__ */ o("span", { className: l, children: e })
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
));
|
|
@@ -501,7 +501,7 @@ const j = g.forwardRef(
|
|
|
501
501
|
j.displayName = "MenuItem";
|
|
502
502
|
const Mr = ({ className: e, ...t }) => {
|
|
503
503
|
const r = w(e, "my-1 border-t border-border-medium");
|
|
504
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ o("div", { className: r, ...t });
|
|
505
505
|
};
|
|
506
506
|
/*!
|
|
507
507
|
@versini/ui-menu v3.0.2
|
|
@@ -532,50 +532,50 @@ try {
|
|
|
532
532
|
const Lr = "av-togglegroup", zr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
|
|
533
533
|
function Pe(e, t = []) {
|
|
534
534
|
let r = [];
|
|
535
|
-
function
|
|
536
|
-
const c =
|
|
535
|
+
function a(s, i) {
|
|
536
|
+
const c = f.createContext(i), l = r.length;
|
|
537
537
|
r = [...r, i];
|
|
538
|
-
const d = (
|
|
538
|
+
const d = (g) => {
|
|
539
539
|
var p;
|
|
540
|
-
const { scope: v, children: h, ...k } =
|
|
541
|
-
return /* @__PURE__ */
|
|
540
|
+
const { scope: v, children: h, ...k } = g, b = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[l]) || c, N = f.useMemo(() => k, Object.values(k));
|
|
541
|
+
return /* @__PURE__ */ o(b.Provider, { value: N, children: h });
|
|
542
542
|
};
|
|
543
543
|
d.displayName = s + "Provider";
|
|
544
|
-
function u(
|
|
544
|
+
function u(g, p) {
|
|
545
545
|
var v;
|
|
546
|
-
const h = ((v = p == null ? void 0 : p[e]) == null ? void 0 : v[l]) || c, k =
|
|
546
|
+
const h = ((v = p == null ? void 0 : p[e]) == null ? void 0 : v[l]) || c, k = f.useContext(h);
|
|
547
547
|
if (k) return k;
|
|
548
548
|
if (i !== void 0) return i;
|
|
549
|
-
throw new Error(`\`${
|
|
549
|
+
throw new Error(`\`${g}\` must be used within \`${s}\``);
|
|
550
550
|
}
|
|
551
551
|
return [d, u];
|
|
552
552
|
}
|
|
553
553
|
const n = () => {
|
|
554
|
-
const s = r.map((i) =>
|
|
554
|
+
const s = r.map((i) => f.createContext(i));
|
|
555
555
|
return function(i) {
|
|
556
556
|
const c = (i == null ? void 0 : i[e]) || s;
|
|
557
|
-
return
|
|
557
|
+
return f.useMemo(
|
|
558
558
|
() => ({ [`__scope${e}`]: { ...i, [e]: c } }),
|
|
559
559
|
[i, c]
|
|
560
560
|
);
|
|
561
561
|
};
|
|
562
562
|
};
|
|
563
|
-
return n.scopeName = e, [
|
|
563
|
+
return n.scopeName = e, [a, Pr(n, ...t)];
|
|
564
564
|
}
|
|
565
565
|
function Pr(...e) {
|
|
566
566
|
const t = e[0];
|
|
567
567
|
if (e.length === 1) return t;
|
|
568
568
|
const r = () => {
|
|
569
|
-
const
|
|
569
|
+
const a = e.map((n) => ({
|
|
570
570
|
useScope: n(),
|
|
571
571
|
scopeName: n.scopeName
|
|
572
572
|
}));
|
|
573
573
|
return function(n) {
|
|
574
|
-
const s =
|
|
574
|
+
const s = a.reduce((i, { useScope: c, scopeName: l }) => {
|
|
575
575
|
const d = c(n)[`__scope${l}`];
|
|
576
576
|
return { ...i, ...d };
|
|
577
577
|
}, {});
|
|
578
|
-
return
|
|
578
|
+
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
579
579
|
};
|
|
580
580
|
};
|
|
581
581
|
return r.scopeName = t.scopeName, r;
|
|
@@ -588,62 +588,62 @@ function Ye(e, t) {
|
|
|
588
588
|
function bt(...e) {
|
|
589
589
|
return (t) => {
|
|
590
590
|
let r = !1;
|
|
591
|
-
const
|
|
591
|
+
const a = e.map((n) => {
|
|
592
592
|
const s = Ye(n, t);
|
|
593
593
|
return !r && typeof s == "function" && (r = !0), s;
|
|
594
594
|
});
|
|
595
595
|
if (r)
|
|
596
596
|
return () => {
|
|
597
|
-
for (let n = 0; n <
|
|
598
|
-
const s =
|
|
597
|
+
for (let n = 0; n < a.length; n++) {
|
|
598
|
+
const s = a[n];
|
|
599
599
|
typeof s == "function" ? s() : Ye(e[n], null);
|
|
600
600
|
}
|
|
601
601
|
};
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
function Se(...e) {
|
|
605
|
-
return
|
|
605
|
+
return f.useCallback(bt(...e), e);
|
|
606
606
|
}
|
|
607
|
-
var pe =
|
|
608
|
-
const { children: r, ...
|
|
607
|
+
var pe = f.forwardRef((e, t) => {
|
|
608
|
+
const { children: r, ...a } = e, n = f.Children.toArray(r), s = n.find(Or);
|
|
609
609
|
if (s) {
|
|
610
|
-
const i = s.props.children, c = n.map((l) => l === s ?
|
|
611
|
-
return /* @__PURE__ */
|
|
610
|
+
const i = s.props.children, c = n.map((l) => l === s ? f.Children.count(i) > 1 ? f.Children.only(null) : f.isValidElement(i) ? i.props.children : null : l);
|
|
611
|
+
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: f.isValidElement(i) ? f.cloneElement(i, void 0, c) : null });
|
|
612
612
|
}
|
|
613
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: r });
|
|
614
614
|
});
|
|
615
615
|
pe.displayName = "Slot";
|
|
616
|
-
var Re =
|
|
617
|
-
const { children: r, ...
|
|
618
|
-
if (
|
|
616
|
+
var Re = f.forwardRef((e, t) => {
|
|
617
|
+
const { children: r, ...a } = e;
|
|
618
|
+
if (f.isValidElement(r)) {
|
|
619
619
|
const n = Dr(r);
|
|
620
|
-
return
|
|
621
|
-
...$r(
|
|
620
|
+
return f.cloneElement(r, {
|
|
621
|
+
...$r(a, r.props),
|
|
622
622
|
// @ts-ignore
|
|
623
623
|
ref: t ? bt(t, n) : n
|
|
624
624
|
});
|
|
625
625
|
}
|
|
626
|
-
return
|
|
626
|
+
return f.Children.count(r) > 1 ? f.Children.only(null) : null;
|
|
627
627
|
});
|
|
628
628
|
Re.displayName = "SlotClone";
|
|
629
|
-
var Br = ({ children: e }) => /* @__PURE__ */
|
|
629
|
+
var Br = ({ children: e }) => /* @__PURE__ */ o(z, { children: e });
|
|
630
630
|
function Or(e) {
|
|
631
|
-
return
|
|
631
|
+
return f.isValidElement(e) && e.type === Br;
|
|
632
632
|
}
|
|
633
633
|
function $r(e, t) {
|
|
634
634
|
const r = { ...t };
|
|
635
|
-
for (const
|
|
636
|
-
const n = e[
|
|
637
|
-
/^on[A-Z]/.test(
|
|
635
|
+
for (const a in t) {
|
|
636
|
+
const n = e[a], s = t[a];
|
|
637
|
+
/^on[A-Z]/.test(a) ? n && s ? r[a] = (...i) => {
|
|
638
638
|
s(...i), n(...i);
|
|
639
|
-
} : n && (r[
|
|
639
|
+
} : n && (r[a] = n) : a === "style" ? r[a] = { ...n, ...s } : a === "className" && (r[a] = [n, s].filter(Boolean).join(" "));
|
|
640
640
|
}
|
|
641
641
|
return { ...e, ...r };
|
|
642
642
|
}
|
|
643
643
|
function Dr(e) {
|
|
644
644
|
var t, r;
|
|
645
|
-
let
|
|
646
|
-
return n ? e.ref : (
|
|
645
|
+
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
646
|
+
return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
647
647
|
}
|
|
648
648
|
var Fr = [
|
|
649
649
|
"a",
|
|
@@ -663,44 +663,44 @@ var Fr = [
|
|
|
663
663
|
"svg",
|
|
664
664
|
"ul"
|
|
665
665
|
], de = Fr.reduce((e, t) => {
|
|
666
|
-
const r =
|
|
667
|
-
const { asChild: s, ...i } =
|
|
668
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
666
|
+
const r = f.forwardRef((a, n) => {
|
|
667
|
+
const { asChild: s, ...i } = a, c = s ? pe : t;
|
|
668
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...i, ref: n });
|
|
669
669
|
});
|
|
670
670
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
671
671
|
}, {});
|
|
672
672
|
function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
673
|
-
return function(
|
|
674
|
-
if (e == null || e(
|
|
675
|
-
return t == null ? void 0 : t(
|
|
673
|
+
return function(a) {
|
|
674
|
+
if (e == null || e(a), r === !1 || !a.defaultPrevented)
|
|
675
|
+
return t == null ? void 0 : t(a);
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
678
|
function Gr(e) {
|
|
679
|
-
const t = e + "CollectionProvider", [r,
|
|
679
|
+
const t = e + "CollectionProvider", [r, a] = Pe(t), [n, s] = r(
|
|
680
680
|
t,
|
|
681
681
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
682
682
|
), i = (v) => {
|
|
683
|
-
const { scope: h, children: k } = v, b =
|
|
684
|
-
return /* @__PURE__ */
|
|
683
|
+
const { scope: h, children: k } = v, b = E.useRef(null), N = E.useRef(/* @__PURE__ */ new Map()).current;
|
|
684
|
+
return /* @__PURE__ */ o(n, { scope: h, itemMap: N, collectionRef: b, children: k });
|
|
685
685
|
};
|
|
686
686
|
i.displayName = t;
|
|
687
|
-
const c = e + "CollectionSlot", l =
|
|
687
|
+
const c = e + "CollectionSlot", l = E.forwardRef(
|
|
688
688
|
(v, h) => {
|
|
689
689
|
const { scope: k, children: b } = v, N = s(c, k), x = Se(h, N.collectionRef);
|
|
690
|
-
return /* @__PURE__ */
|
|
690
|
+
return /* @__PURE__ */ o(pe, { ref: x, children: b });
|
|
691
691
|
}
|
|
692
692
|
);
|
|
693
693
|
l.displayName = c;
|
|
694
|
-
const d = e + "CollectionItemSlot", u = "data-radix-collection-item",
|
|
694
|
+
const d = e + "CollectionItemSlot", u = "data-radix-collection-item", g = E.forwardRef(
|
|
695
695
|
(v, h) => {
|
|
696
|
-
const { scope: k, children: b, ...N } = v, x =
|
|
697
|
-
return
|
|
696
|
+
const { scope: k, children: b, ...N } = v, x = E.useRef(null), m = Se(h, x), C = s(d, k);
|
|
697
|
+
return E.useEffect(() => (C.itemMap.set(x, { ref: x, ...N }), () => void C.itemMap.delete(x))), /* @__PURE__ */ o(pe, { [u]: "", ref: m, children: b });
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
|
-
|
|
700
|
+
g.displayName = d;
|
|
701
701
|
function p(v) {
|
|
702
702
|
const h = s(e + "CollectionConsumer", v);
|
|
703
|
-
return
|
|
703
|
+
return E.useCallback(() => {
|
|
704
704
|
const k = h.collectionRef.current;
|
|
705
705
|
if (!k) return [];
|
|
706
706
|
const b = Array.from(k.querySelectorAll(`[${u}]`));
|
|
@@ -710,27 +710,27 @@ function Gr(e) {
|
|
|
710
710
|
}, [h.collectionRef, h.itemMap]);
|
|
711
711
|
}
|
|
712
712
|
return [
|
|
713
|
-
{ Provider: i, Slot: l, ItemSlot:
|
|
713
|
+
{ Provider: i, Slot: l, ItemSlot: g },
|
|
714
714
|
p,
|
|
715
|
-
|
|
715
|
+
a
|
|
716
716
|
];
|
|
717
717
|
}
|
|
718
|
-
var Vr = globalThis != null && globalThis.document ?
|
|
719
|
-
}, Ur =
|
|
718
|
+
var Vr = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
719
|
+
}, Ur = f.useId || (() => {
|
|
720
720
|
}), Hr = 0;
|
|
721
721
|
function jr(e) {
|
|
722
|
-
const [t, r] =
|
|
722
|
+
const [t, r] = f.useState(Ur());
|
|
723
723
|
return Vr(() => {
|
|
724
|
-
r((
|
|
724
|
+
r((a) => a ?? String(Hr++));
|
|
725
725
|
}, [e]), t ? `radix-${t}` : "";
|
|
726
726
|
}
|
|
727
727
|
function Be(e) {
|
|
728
|
-
const t =
|
|
729
|
-
return
|
|
728
|
+
const t = f.useRef(e);
|
|
729
|
+
return f.useEffect(() => {
|
|
730
730
|
t.current = e;
|
|
731
|
-
}),
|
|
732
|
-
var
|
|
733
|
-
return (
|
|
731
|
+
}), f.useMemo(() => (...r) => {
|
|
732
|
+
var a;
|
|
733
|
+
return (a = t.current) == null ? void 0 : a.call(t, ...r);
|
|
734
734
|
}, []);
|
|
735
735
|
}
|
|
736
736
|
function ye({
|
|
@@ -739,7 +739,7 @@ function ye({
|
|
|
739
739
|
onChange: r = () => {
|
|
740
740
|
}
|
|
741
741
|
}) {
|
|
742
|
-
const [
|
|
742
|
+
const [a, n] = Wr({ defaultProp: t, onChange: r }), s = e !== void 0, i = s ? e : a, c = Be(r), l = f.useCallback(
|
|
743
743
|
(d) => {
|
|
744
744
|
if (s) {
|
|
745
745
|
const u = typeof d == "function" ? d(e) : d;
|
|
@@ -755,27 +755,27 @@ function Wr({
|
|
|
755
755
|
defaultProp: e,
|
|
756
756
|
onChange: t
|
|
757
757
|
}) {
|
|
758
|
-
const r =
|
|
759
|
-
return
|
|
760
|
-
n.current !==
|
|
761
|
-
}, [
|
|
758
|
+
const r = f.useState(e), [a] = r, n = f.useRef(a), s = Be(t);
|
|
759
|
+
return f.useEffect(() => {
|
|
760
|
+
n.current !== a && (s(a), n.current = a);
|
|
761
|
+
}, [a, n, s]), r;
|
|
762
762
|
}
|
|
763
|
-
var Kr =
|
|
763
|
+
var Kr = f.createContext(void 0);
|
|
764
764
|
function vt(e) {
|
|
765
|
-
const t =
|
|
765
|
+
const t = f.useContext(Kr);
|
|
766
766
|
return e || t || "ltr";
|
|
767
767
|
}
|
|
768
|
-
var
|
|
768
|
+
var Ie = "rovingFocusGroup.onEntryFocus", Yr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Me, yt, Zr] = Gr(ke), [qr, kt] = Pe(
|
|
769
769
|
ke,
|
|
770
770
|
[Zr]
|
|
771
|
-
), [Qr, Xr] = qr(ke), wt =
|
|
772
|
-
(e, t) => /* @__PURE__ */
|
|
771
|
+
), [Qr, Xr] = qr(ke), wt = f.forwardRef(
|
|
772
|
+
(e, t) => /* @__PURE__ */ o(Me.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Me.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Jr, { ...e, ref: t }) }) })
|
|
773
773
|
);
|
|
774
774
|
wt.displayName = ke;
|
|
775
|
-
var Jr =
|
|
775
|
+
var Jr = f.forwardRef((e, t) => {
|
|
776
776
|
const {
|
|
777
777
|
__scopeRovingFocusGroup: r,
|
|
778
|
-
orientation:
|
|
778
|
+
orientation: a,
|
|
779
779
|
loop: n = !1,
|
|
780
780
|
dir: s,
|
|
781
781
|
currentTabStopId: i,
|
|
@@ -783,86 +783,86 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
783
783
|
onCurrentTabStopIdChange: l,
|
|
784
784
|
onEntryFocus: d,
|
|
785
785
|
preventScrollOnEntryFocus: u = !1,
|
|
786
|
-
...
|
|
787
|
-
} = e, p =
|
|
786
|
+
...g
|
|
787
|
+
} = e, p = f.useRef(null), v = Se(t, p), h = vt(s), [k = null, b] = ye({
|
|
788
788
|
prop: i,
|
|
789
789
|
defaultProp: c,
|
|
790
790
|
onChange: l
|
|
791
|
-
}), [N, x] =
|
|
792
|
-
return
|
|
793
|
-
const
|
|
794
|
-
if (
|
|
795
|
-
return
|
|
796
|
-
}, [m]), /* @__PURE__ */
|
|
791
|
+
}), [N, x] = f.useState(!1), m = Be(d), C = yt(r), T = f.useRef(!1), [L, _] = f.useState(0);
|
|
792
|
+
return f.useEffect(() => {
|
|
793
|
+
const I = p.current;
|
|
794
|
+
if (I)
|
|
795
|
+
return I.addEventListener(Ie, m), () => I.removeEventListener(Ie, m);
|
|
796
|
+
}, [m]), /* @__PURE__ */ o(
|
|
797
797
|
Qr,
|
|
798
798
|
{
|
|
799
799
|
scope: r,
|
|
800
|
-
orientation:
|
|
800
|
+
orientation: a,
|
|
801
801
|
dir: h,
|
|
802
802
|
loop: n,
|
|
803
803
|
currentTabStopId: k,
|
|
804
|
-
onItemFocus:
|
|
805
|
-
(
|
|
804
|
+
onItemFocus: f.useCallback(
|
|
805
|
+
(I) => b(I),
|
|
806
806
|
[b]
|
|
807
807
|
),
|
|
808
|
-
onItemShiftTab:
|
|
809
|
-
onFocusableItemAdd:
|
|
810
|
-
() => _((
|
|
808
|
+
onItemShiftTab: f.useCallback(() => x(!0), []),
|
|
809
|
+
onFocusableItemAdd: f.useCallback(
|
|
810
|
+
() => _((I) => I + 1),
|
|
811
811
|
[]
|
|
812
812
|
),
|
|
813
|
-
onFocusableItemRemove:
|
|
814
|
-
() => _((
|
|
813
|
+
onFocusableItemRemove: f.useCallback(
|
|
814
|
+
() => _((I) => I - 1),
|
|
815
815
|
[]
|
|
816
816
|
),
|
|
817
|
-
children: /* @__PURE__ */
|
|
817
|
+
children: /* @__PURE__ */ o(
|
|
818
818
|
de.div,
|
|
819
819
|
{
|
|
820
820
|
tabIndex: N || L === 0 ? -1 : 0,
|
|
821
|
-
"data-orientation":
|
|
822
|
-
...
|
|
821
|
+
"data-orientation": a,
|
|
822
|
+
...g,
|
|
823
823
|
ref: v,
|
|
824
824
|
style: { outline: "none", ...e.style },
|
|
825
825
|
onMouseDown: K(e.onMouseDown, () => {
|
|
826
|
-
|
|
826
|
+
T.current = !0;
|
|
827
827
|
}),
|
|
828
|
-
onFocus: K(e.onFocus, (
|
|
829
|
-
const V = !
|
|
830
|
-
if (
|
|
831
|
-
const U = new CustomEvent(
|
|
832
|
-
if (
|
|
833
|
-
const H = C().filter((B) => B.focusable), re = H.find((B) => B.active),
|
|
828
|
+
onFocus: K(e.onFocus, (I) => {
|
|
829
|
+
const V = !T.current;
|
|
830
|
+
if (I.target === I.currentTarget && V && !N) {
|
|
831
|
+
const U = new CustomEvent(Ie, Yr);
|
|
832
|
+
if (I.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
833
|
+
const H = C().filter((B) => B.focusable), re = H.find((B) => B.active), oe = H.find((B) => B.id === k), Ce = [re, oe, ...H].filter(
|
|
834
834
|
Boolean
|
|
835
835
|
).map((B) => B.ref.current);
|
|
836
836
|
xt(Ce, u);
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
|
-
|
|
839
|
+
T.current = !1;
|
|
840
840
|
}),
|
|
841
841
|
onBlur: K(e.onBlur, () => x(!1))
|
|
842
842
|
}
|
|
843
843
|
)
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
|
-
}), Nt = "RovingFocusGroupItem", Ct =
|
|
846
|
+
}), Nt = "RovingFocusGroupItem", Ct = f.forwardRef(
|
|
847
847
|
(e, t) => {
|
|
848
848
|
const {
|
|
849
849
|
__scopeRovingFocusGroup: r,
|
|
850
|
-
focusable:
|
|
850
|
+
focusable: a = !0,
|
|
851
851
|
active: n = !1,
|
|
852
852
|
tabStopId: s,
|
|
853
853
|
...i
|
|
854
|
-
} = e, c = jr(), l = s || c, d = Xr(Nt, r), u = d.currentTabStopId === l,
|
|
855
|
-
return
|
|
856
|
-
if (
|
|
854
|
+
} = e, c = jr(), l = s || c, d = Xr(Nt, r), u = d.currentTabStopId === l, g = yt(r), { onFocusableItemAdd: p, onFocusableItemRemove: v } = d;
|
|
855
|
+
return f.useEffect(() => {
|
|
856
|
+
if (a)
|
|
857
857
|
return p(), () => v();
|
|
858
|
-
}, [
|
|
858
|
+
}, [a, p, v]), /* @__PURE__ */ o(
|
|
859
859
|
Me.ItemSlot,
|
|
860
860
|
{
|
|
861
861
|
scope: r,
|
|
862
862
|
id: l,
|
|
863
|
-
focusable:
|
|
863
|
+
focusable: a,
|
|
864
864
|
active: n,
|
|
865
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ o(
|
|
866
866
|
de.span,
|
|
867
867
|
{
|
|
868
868
|
tabIndex: u ? 0 : -1,
|
|
@@ -870,7 +870,7 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
870
870
|
...i,
|
|
871
871
|
ref: t,
|
|
872
872
|
onMouseDown: K(e.onMouseDown, (h) => {
|
|
873
|
-
|
|
873
|
+
a ? d.onItemFocus(l) : h.preventDefault();
|
|
874
874
|
}),
|
|
875
875
|
onFocus: K(e.onFocus, () => d.onItemFocus(l)),
|
|
876
876
|
onKeyDown: K(e.onKeyDown, (h) => {
|
|
@@ -879,16 +879,16 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
879
879
|
return;
|
|
880
880
|
}
|
|
881
881
|
if (h.target !== h.currentTarget) return;
|
|
882
|
-
const k =
|
|
882
|
+
const k = ro(h, d.orientation, d.dir);
|
|
883
883
|
if (k !== void 0) {
|
|
884
884
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
885
885
|
h.preventDefault();
|
|
886
|
-
let b =
|
|
886
|
+
let b = g().filter((N) => N.focusable).map((N) => N.ref.current);
|
|
887
887
|
if (k === "last") b.reverse();
|
|
888
888
|
else if (k === "prev" || k === "next") {
|
|
889
889
|
k === "prev" && b.reverse();
|
|
890
890
|
const N = b.indexOf(h.currentTarget);
|
|
891
|
-
b = d.loop ?
|
|
891
|
+
b = d.loop ? oo(b, N + 1) : b.slice(N + 1);
|
|
892
892
|
}
|
|
893
893
|
setTimeout(() => xt(b));
|
|
894
894
|
}
|
|
@@ -900,7 +900,7 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
900
900
|
}
|
|
901
901
|
);
|
|
902
902
|
Ct.displayName = Nt;
|
|
903
|
-
var
|
|
903
|
+
var eo = {
|
|
904
904
|
ArrowLeft: "prev",
|
|
905
905
|
ArrowUp: "prev",
|
|
906
906
|
ArrowRight: "next",
|
|
@@ -910,29 +910,29 @@ var ea = {
|
|
|
910
910
|
PageDown: "last",
|
|
911
911
|
End: "last"
|
|
912
912
|
};
|
|
913
|
-
function
|
|
913
|
+
function to(e, t) {
|
|
914
914
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
915
915
|
}
|
|
916
|
-
function
|
|
917
|
-
const
|
|
918
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(
|
|
919
|
-
return
|
|
916
|
+
function ro(e, t, r) {
|
|
917
|
+
const a = to(e.key, r);
|
|
918
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
|
|
919
|
+
return eo[a];
|
|
920
920
|
}
|
|
921
921
|
function xt(e, t = !1) {
|
|
922
922
|
const r = document.activeElement;
|
|
923
|
-
for (const
|
|
924
|
-
if (
|
|
923
|
+
for (const a of e)
|
|
924
|
+
if (a === r || (a.focus({ preventScroll: t }), document.activeElement !== r)) return;
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
return e.map((r,
|
|
926
|
+
function oo(e, t) {
|
|
927
|
+
return e.map((r, a) => e[(t + a) % e.length]);
|
|
928
928
|
}
|
|
929
|
-
var
|
|
930
|
-
const { pressed: r, defaultPressed:
|
|
929
|
+
var ao = wt, no = Ct, so = "Toggle", It = f.forwardRef((e, t) => {
|
|
930
|
+
const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [i = !1, c] = ye({
|
|
931
931
|
prop: r,
|
|
932
932
|
onChange: n,
|
|
933
|
-
defaultProp:
|
|
933
|
+
defaultProp: a
|
|
934
934
|
});
|
|
935
|
-
return /* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ o(
|
|
936
936
|
de.button,
|
|
937
937
|
{
|
|
938
938
|
type: "button",
|
|
@@ -947,60 +947,60 @@ var oa = wt, na = Ct, sa = "Toggle", Tt = g.forwardRef((e, t) => {
|
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
949
|
});
|
|
950
|
-
|
|
951
|
-
var ee = "ToggleGroup", [
|
|
950
|
+
It.displayName = so;
|
|
951
|
+
var ee = "ToggleGroup", [Et, ma] = Pe(ee, [
|
|
952
952
|
kt
|
|
953
|
-
]),
|
|
954
|
-
const { type: r, ...
|
|
953
|
+
]), Tt = kt(), Oe = E.forwardRef((e, t) => {
|
|
954
|
+
const { type: r, ...a } = e;
|
|
955
955
|
if (r === "single")
|
|
956
|
-
return /* @__PURE__ */
|
|
956
|
+
return /* @__PURE__ */ o(io, { ...a, ref: t });
|
|
957
957
|
if (r === "multiple")
|
|
958
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ o(co, { ...a, ref: t });
|
|
959
959
|
throw new Error(`Missing prop \`type\` expected on \`${ee}\``);
|
|
960
960
|
});
|
|
961
961
|
Oe.displayName = ee;
|
|
962
|
-
var [_t, St] =
|
|
962
|
+
var [_t, St] = Et(ee), io = E.forwardRef((e, t) => {
|
|
963
963
|
const {
|
|
964
964
|
value: r,
|
|
965
|
-
defaultValue:
|
|
965
|
+
defaultValue: a,
|
|
966
966
|
onValueChange: n = () => {
|
|
967
967
|
},
|
|
968
968
|
...s
|
|
969
969
|
} = e, [i, c] = ye({
|
|
970
970
|
prop: r,
|
|
971
|
-
defaultProp:
|
|
971
|
+
defaultProp: a,
|
|
972
972
|
onChange: n
|
|
973
973
|
});
|
|
974
|
-
return /* @__PURE__ */
|
|
974
|
+
return /* @__PURE__ */ o(
|
|
975
975
|
_t,
|
|
976
976
|
{
|
|
977
977
|
scope: e.__scopeToggleGroup,
|
|
978
978
|
type: "single",
|
|
979
979
|
value: i ? [i] : [],
|
|
980
980
|
onItemActivate: c,
|
|
981
|
-
onItemDeactivate:
|
|
982
|
-
children: /* @__PURE__ */
|
|
981
|
+
onItemDeactivate: E.useCallback(() => c(""), [c]),
|
|
982
|
+
children: /* @__PURE__ */ o(Rt, { ...s, ref: t })
|
|
983
983
|
}
|
|
984
984
|
);
|
|
985
|
-
}),
|
|
985
|
+
}), co = E.forwardRef((e, t) => {
|
|
986
986
|
const {
|
|
987
987
|
value: r,
|
|
988
|
-
defaultValue:
|
|
988
|
+
defaultValue: a,
|
|
989
989
|
onValueChange: n = () => {
|
|
990
990
|
},
|
|
991
991
|
...s
|
|
992
992
|
} = e, [i = [], c] = ye({
|
|
993
993
|
prop: r,
|
|
994
|
-
defaultProp:
|
|
994
|
+
defaultProp: a,
|
|
995
995
|
onChange: n
|
|
996
|
-
}), l =
|
|
997
|
-
(u) => c((
|
|
996
|
+
}), l = E.useCallback(
|
|
997
|
+
(u) => c((g = []) => [...g, u]),
|
|
998
998
|
[c]
|
|
999
|
-
), d =
|
|
1000
|
-
(u) => c((
|
|
999
|
+
), d = E.useCallback(
|
|
1000
|
+
(u) => c((g = []) => g.filter((p) => p !== u)),
|
|
1001
1001
|
[c]
|
|
1002
1002
|
);
|
|
1003
|
-
return /* @__PURE__ */
|
|
1003
|
+
return /* @__PURE__ */ o(
|
|
1004
1004
|
_t,
|
|
1005
1005
|
{
|
|
1006
1006
|
scope: e.__scopeToggleGroup,
|
|
@@ -1008,86 +1008,86 @@ var [_t, St] = It(ee), ia = I.forwardRef((e, t) => {
|
|
|
1008
1008
|
value: i,
|
|
1009
1009
|
onItemActivate: l,
|
|
1010
1010
|
onItemDeactivate: d,
|
|
1011
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ o(Rt, { ...s, ref: t })
|
|
1012
1012
|
}
|
|
1013
1013
|
);
|
|
1014
1014
|
});
|
|
1015
1015
|
Oe.displayName = ee;
|
|
1016
|
-
var [
|
|
1016
|
+
var [lo, uo] = Et(ee), Rt = E.forwardRef(
|
|
1017
1017
|
(e, t) => {
|
|
1018
1018
|
const {
|
|
1019
1019
|
__scopeToggleGroup: r,
|
|
1020
|
-
disabled:
|
|
1020
|
+
disabled: a = !1,
|
|
1021
1021
|
rovingFocus: n = !0,
|
|
1022
1022
|
orientation: s,
|
|
1023
1023
|
dir: i,
|
|
1024
1024
|
loop: c = !0,
|
|
1025
1025
|
...l
|
|
1026
|
-
} = e, d =
|
|
1027
|
-
return /* @__PURE__ */
|
|
1028
|
-
|
|
1026
|
+
} = e, d = Tt(r), u = vt(i), g = { role: "group", dir: u, ...l };
|
|
1027
|
+
return /* @__PURE__ */ o(lo, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
|
|
1028
|
+
ao,
|
|
1029
1029
|
{
|
|
1030
1030
|
asChild: !0,
|
|
1031
1031
|
...d,
|
|
1032
1032
|
orientation: s,
|
|
1033
1033
|
dir: u,
|
|
1034
1034
|
loop: c,
|
|
1035
|
-
children: /* @__PURE__ */
|
|
1035
|
+
children: /* @__PURE__ */ o(de.div, { ...g, ref: t })
|
|
1036
1036
|
}
|
|
1037
|
-
) : /* @__PURE__ */
|
|
1037
|
+
) : /* @__PURE__ */ o(de.div, { ...g, ref: t }) });
|
|
1038
1038
|
}
|
|
1039
|
-
), be = "ToggleGroupItem", Mt =
|
|
1039
|
+
), be = "ToggleGroupItem", Mt = E.forwardRef(
|
|
1040
1040
|
(e, t) => {
|
|
1041
|
-
const r = St(be, e.__scopeToggleGroup),
|
|
1042
|
-
return
|
|
1043
|
-
|
|
1041
|
+
const r = St(be, e.__scopeToggleGroup), a = uo(be, e.__scopeToggleGroup), n = Tt(e.__scopeToggleGroup), s = r.value.includes(e.value), i = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, l = E.useRef(null);
|
|
1042
|
+
return a.rovingFocus ? /* @__PURE__ */ o(
|
|
1043
|
+
no,
|
|
1044
1044
|
{
|
|
1045
1045
|
asChild: !0,
|
|
1046
1046
|
...n,
|
|
1047
1047
|
focusable: !i,
|
|
1048
1048
|
active: s,
|
|
1049
1049
|
ref: l,
|
|
1050
|
-
children: /* @__PURE__ */
|
|
1050
|
+
children: /* @__PURE__ */ o(Ze, { ...c, ref: t })
|
|
1051
1051
|
}
|
|
1052
|
-
) : /* @__PURE__ */
|
|
1052
|
+
) : /* @__PURE__ */ o(Ze, { ...c, ref: t });
|
|
1053
1053
|
}
|
|
1054
1054
|
);
|
|
1055
1055
|
Mt.displayName = be;
|
|
1056
|
-
var Ze =
|
|
1056
|
+
var Ze = E.forwardRef(
|
|
1057
1057
|
(e, t) => {
|
|
1058
|
-
const { __scopeToggleGroup: r, value:
|
|
1059
|
-
return /* @__PURE__ */
|
|
1060
|
-
|
|
1058
|
+
const { __scopeToggleGroup: r, value: a, ...n } = e, s = St(be, r), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = s.type === "single" ? i : void 0;
|
|
1059
|
+
return /* @__PURE__ */ o(
|
|
1060
|
+
It,
|
|
1061
1061
|
{
|
|
1062
1062
|
...c,
|
|
1063
1063
|
...n,
|
|
1064
1064
|
ref: t,
|
|
1065
1065
|
onPressedChange: (l) => {
|
|
1066
|
-
l ? s.onItemActivate(
|
|
1066
|
+
l ? s.onItemActivate(a) : s.onItemDeactivate(a);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
);
|
|
1070
1070
|
}
|
|
1071
|
-
),
|
|
1072
|
-
const Lt =
|
|
1071
|
+
), mo = Oe, ho = Mt;
|
|
1072
|
+
const Lt = E.createContext({
|
|
1073
1073
|
size: "medium",
|
|
1074
1074
|
focusMode: "system",
|
|
1075
1075
|
mode: "system"
|
|
1076
|
-
}),
|
|
1076
|
+
}), fo = ({ focusMode: e }) => w("focus:outline", "focus:outline-2", "focus:outline-offset", {
|
|
1077
1077
|
"focus:outline-focus-light": e === "light",
|
|
1078
1078
|
"focus:outline-focus-dark": e === "dark",
|
|
1079
1079
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1080
1080
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1081
|
-
}),
|
|
1081
|
+
}), go = ({ mode: e }) => w({
|
|
1082
1082
|
"data-[state=on]:bg-surface-medium": e === "dark",
|
|
1083
1083
|
"data-[state=on]:bg-surface-lightest": e === "light",
|
|
1084
1084
|
"data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
|
|
1085
1085
|
"data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
|
|
1086
|
-
}),
|
|
1086
|
+
}), po = ({ size: e }) => w({
|
|
1087
1087
|
"h-5 px-2": e === "small",
|
|
1088
1088
|
"h-6 px-3": e === "medium",
|
|
1089
1089
|
"h-7 px-4": e === "large"
|
|
1090
|
-
}),
|
|
1090
|
+
}), bo = ({ mode: e }) => w(
|
|
1091
1091
|
zr,
|
|
1092
1092
|
"px-1",
|
|
1093
1093
|
"relative",
|
|
@@ -1101,22 +1101,22 @@ const Lt = I.createContext({
|
|
|
1101
1101
|
"border-surface-light dark:border-surface-darker": e === "system",
|
|
1102
1102
|
"border-surface-darker dark:border-surface-light": e === "alt-system"
|
|
1103
1103
|
}
|
|
1104
|
-
),
|
|
1104
|
+
), vo = ({
|
|
1105
1105
|
focusMode: e,
|
|
1106
1106
|
mode: t,
|
|
1107
1107
|
size: r
|
|
1108
1108
|
}) => ({
|
|
1109
|
-
wrapperClass:
|
|
1109
|
+
wrapperClass: bo({ mode: t }),
|
|
1110
1110
|
itemClass: w(
|
|
1111
1111
|
Ar,
|
|
1112
1112
|
"flex items-center justify-center bg-transparent",
|
|
1113
1113
|
"rounded-sm",
|
|
1114
1114
|
"transition duration-200 ease",
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1115
|
+
po({ size: r }),
|
|
1116
|
+
fo({ focusMode: e }),
|
|
1117
|
+
go({ mode: t })
|
|
1118
1118
|
)
|
|
1119
|
-
}),
|
|
1119
|
+
}), yo = ({
|
|
1120
1120
|
mode: e,
|
|
1121
1121
|
className: t
|
|
1122
1122
|
}) => w(
|
|
@@ -1130,11 +1130,11 @@ const Lt = I.createContext({
|
|
|
1130
1130
|
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
1131
1131
|
},
|
|
1132
1132
|
t
|
|
1133
|
-
),
|
|
1133
|
+
), ko = ({
|
|
1134
1134
|
children: e,
|
|
1135
1135
|
value: t,
|
|
1136
1136
|
onValueChange: r,
|
|
1137
|
-
disabled:
|
|
1137
|
+
disabled: a,
|
|
1138
1138
|
mode: n = "system",
|
|
1139
1139
|
focusMode: s = "system",
|
|
1140
1140
|
size: i = "medium",
|
|
@@ -1142,11 +1142,11 @@ const Lt = I.createContext({
|
|
|
1142
1142
|
className: l,
|
|
1143
1143
|
...d
|
|
1144
1144
|
}) => {
|
|
1145
|
-
const u =
|
|
1146
|
-
return /* @__PURE__ */
|
|
1147
|
-
|
|
1145
|
+
const u = yo({ mode: n, className: l }), g = { size: i, focusMode: s, mode: n };
|
|
1146
|
+
return /* @__PURE__ */ o(Lt.Provider, { value: g, children: /* @__PURE__ */ o(
|
|
1147
|
+
mo,
|
|
1148
1148
|
{
|
|
1149
|
-
disabled:
|
|
1149
|
+
disabled: a,
|
|
1150
1150
|
className: u,
|
|
1151
1151
|
value: t,
|
|
1152
1152
|
defaultValue: c,
|
|
@@ -1156,14 +1156,14 @@ const Lt = I.createContext({
|
|
|
1156
1156
|
children: e
|
|
1157
1157
|
}
|
|
1158
1158
|
) });
|
|
1159
|
-
},
|
|
1160
|
-
const { size: r, focusMode:
|
|
1161
|
-
focusMode:
|
|
1159
|
+
}, wo = ({ value: e, disabled: t }) => {
|
|
1160
|
+
const { size: r, focusMode: a, mode: n } = F(Lt), { itemClass: s, wrapperClass: i } = vo({
|
|
1161
|
+
focusMode: a,
|
|
1162
1162
|
mode: n,
|
|
1163
1163
|
size: r
|
|
1164
1164
|
});
|
|
1165
|
-
return /* @__PURE__ */
|
|
1166
|
-
|
|
1165
|
+
return /* @__PURE__ */ o("div", { className: i, children: /* @__PURE__ */ o(
|
|
1166
|
+
ho,
|
|
1167
1167
|
{
|
|
1168
1168
|
disabled: t,
|
|
1169
1169
|
className: s,
|
|
@@ -1185,11 +1185,11 @@ try {
|
|
|
1185
1185
|
});
|
|
1186
1186
|
} catch {
|
|
1187
1187
|
}
|
|
1188
|
-
const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt = "button", Le = "link",
|
|
1188
|
+
const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt = "button", Le = "link", No = ({
|
|
1189
1189
|
type: e,
|
|
1190
1190
|
size: t,
|
|
1191
1191
|
labelRight: r,
|
|
1192
|
-
labelLeft:
|
|
1192
|
+
labelLeft: a,
|
|
1193
1193
|
align: n
|
|
1194
1194
|
}) => {
|
|
1195
1195
|
const s = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
@@ -1206,19 +1206,19 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1206
1206
|
"justify-center": n === "center",
|
|
1207
1207
|
"justify-start": n === "left",
|
|
1208
1208
|
"justify-end": n === "right",
|
|
1209
|
-
"h-6 w-6 p-0": t === "small" && !(r ||
|
|
1210
|
-
"h-6 px-2": t === "small" && (r ||
|
|
1211
|
-
"h-8 w-8 p-1": t === "medium" && !(r ||
|
|
1212
|
-
"h-8 px-3": t === "medium" && (r ||
|
|
1213
|
-
"h-12 w-12 p-2": t === "large" && !(r ||
|
|
1214
|
-
"h-12 px-4": t === "large" && (r ||
|
|
1209
|
+
"h-6 w-6 p-0": t === "small" && !(r || a),
|
|
1210
|
+
"h-6 px-2": t === "small" && (r || a),
|
|
1211
|
+
"h-8 w-8 p-1": t === "medium" && !(r || a),
|
|
1212
|
+
"h-8 px-3": t === "medium" && (r || a),
|
|
1213
|
+
"h-12 w-12 p-2": t === "large" && !(r || a),
|
|
1214
|
+
"h-12 px-4": t === "large" && (r || a)
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
|
-
},
|
|
1217
|
+
}, Co = ({
|
|
1218
1218
|
type: e,
|
|
1219
1219
|
size: t,
|
|
1220
1220
|
labelRight: r,
|
|
1221
|
-
labelLeft:
|
|
1221
|
+
labelLeft: a
|
|
1222
1222
|
}) => {
|
|
1223
1223
|
const n = "text-sm font-medium", s = "text-base font-medium", i = "text-lg font-medium";
|
|
1224
1224
|
switch (e) {
|
|
@@ -1232,20 +1232,20 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1232
1232
|
});
|
|
1233
1233
|
case we:
|
|
1234
1234
|
return w({
|
|
1235
|
-
[n]: t === "small" && (r ||
|
|
1236
|
-
[s]: t === "medium" && (r ||
|
|
1237
|
-
[i]: t === "large" && (r ||
|
|
1235
|
+
[n]: t === "small" && (r || a),
|
|
1236
|
+
[s]: t === "medium" && (r || a),
|
|
1237
|
+
[i]: t === "large" && (r || a)
|
|
1238
1238
|
});
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1240
|
+
}, xo = ({
|
|
1241
1241
|
mode: e,
|
|
1242
1242
|
noBackground: t,
|
|
1243
1243
|
noTruncate: r,
|
|
1244
|
-
variant:
|
|
1244
|
+
variant: a
|
|
1245
1245
|
}) => {
|
|
1246
1246
|
if (t)
|
|
1247
1247
|
return "not-prose";
|
|
1248
|
-
if (
|
|
1248
|
+
if (a === "primary")
|
|
1249
1249
|
return w("not-prose", {
|
|
1250
1250
|
truncate: !r,
|
|
1251
1251
|
"text-copy-light": e === "dark" || e === "system",
|
|
@@ -1253,7 +1253,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1253
1253
|
"dark:text-copy-lighter": e === "system",
|
|
1254
1254
|
"dark:text-copy-light": e === "alt-system"
|
|
1255
1255
|
});
|
|
1256
|
-
if (
|
|
1256
|
+
if (a === "secondary")
|
|
1257
1257
|
return w("not-prose", {
|
|
1258
1258
|
truncate: !r,
|
|
1259
1259
|
"text-copy-light": e === "light" || e === "system",
|
|
@@ -1261,7 +1261,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1261
1261
|
"dark:text-copy-lighter": e === "alt-system",
|
|
1262
1262
|
"dark:text-copy-light": e === "system"
|
|
1263
1263
|
});
|
|
1264
|
-
if (
|
|
1264
|
+
if (a === "danger")
|
|
1265
1265
|
return w("not-prose", {
|
|
1266
1266
|
truncate: !r,
|
|
1267
1267
|
"text-copy-light": e === "dark" || e === "system",
|
|
@@ -1269,11 +1269,11 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1269
1269
|
"dark:text-copy-lighter": e === "system",
|
|
1270
1270
|
"dark:text-copy-light": e === "alt-system"
|
|
1271
1271
|
});
|
|
1272
|
-
if (
|
|
1272
|
+
if (a === "selected")
|
|
1273
1273
|
return w("not-prose text-copy-lighter", {
|
|
1274
1274
|
truncate: !r
|
|
1275
1275
|
});
|
|
1276
|
-
},
|
|
1276
|
+
}, Io = ({
|
|
1277
1277
|
mode: e,
|
|
1278
1278
|
noBackground: t,
|
|
1279
1279
|
variant: r
|
|
@@ -1303,13 +1303,13 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1303
1303
|
if (r === "selected")
|
|
1304
1304
|
return "bg-action-selected-dark";
|
|
1305
1305
|
}
|
|
1306
|
-
},
|
|
1306
|
+
}, Eo = ({
|
|
1307
1307
|
radius: e
|
|
1308
1308
|
}) => w({
|
|
1309
1309
|
"rounded-full": e === "large",
|
|
1310
1310
|
"rounded-md": e === "medium",
|
|
1311
1311
|
"rounded-sm": e === "small"
|
|
1312
|
-
}),
|
|
1312
|
+
}), To = ({
|
|
1313
1313
|
mode: e,
|
|
1314
1314
|
disabled: t,
|
|
1315
1315
|
variant: r
|
|
@@ -1339,7 +1339,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1339
1339
|
});
|
|
1340
1340
|
if (r === "selected")
|
|
1341
1341
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
1342
|
-
},
|
|
1342
|
+
}, _o = ({
|
|
1343
1343
|
mode: e,
|
|
1344
1344
|
disabled: t,
|
|
1345
1345
|
variant: r
|
|
@@ -1369,7 +1369,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1369
1369
|
});
|
|
1370
1370
|
if (r === "selected")
|
|
1371
1371
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
1372
|
-
},
|
|
1372
|
+
}, So = ({
|
|
1373
1373
|
mode: e,
|
|
1374
1374
|
noBorder: t,
|
|
1375
1375
|
variant: r
|
|
@@ -1399,7 +1399,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1399
1399
|
});
|
|
1400
1400
|
if (r === "selected")
|
|
1401
1401
|
return "border border-border-selected-dark";
|
|
1402
|
-
},
|
|
1402
|
+
}, Ro = ({
|
|
1403
1403
|
focusMode: e
|
|
1404
1404
|
}) => w("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
1405
1405
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -1410,7 +1410,7 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1410
1410
|
type: e,
|
|
1411
1411
|
className: t,
|
|
1412
1412
|
raw: r,
|
|
1413
|
-
mode:
|
|
1413
|
+
mode: a,
|
|
1414
1414
|
focusMode: n,
|
|
1415
1415
|
disabled: s,
|
|
1416
1416
|
fullWidth: i,
|
|
@@ -1418,61 +1418,61 @@ const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1418
1418
|
noBorder: l,
|
|
1419
1419
|
labelRight: d,
|
|
1420
1420
|
labelLeft: u,
|
|
1421
|
-
noBackground:
|
|
1421
|
+
noBackground: g,
|
|
1422
1422
|
variant: p,
|
|
1423
1423
|
noTruncate: v,
|
|
1424
1424
|
align: h,
|
|
1425
1425
|
radius: k
|
|
1426
1426
|
}) => (p || (p = "primary"), r ? w(Xe, t) : w(
|
|
1427
1427
|
Xe,
|
|
1428
|
-
|
|
1429
|
-
mode:
|
|
1428
|
+
xo({
|
|
1429
|
+
mode: a,
|
|
1430
1430
|
variant: p,
|
|
1431
|
-
noBackground:
|
|
1431
|
+
noBackground: g,
|
|
1432
1432
|
noTruncate: v
|
|
1433
1433
|
}),
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1434
|
+
Io({ mode: a, noBackground: g, variant: p }),
|
|
1435
|
+
Eo({ radius: k }),
|
|
1436
|
+
No({
|
|
1437
1437
|
type: e,
|
|
1438
1438
|
size: c,
|
|
1439
1439
|
labelRight: d,
|
|
1440
1440
|
labelLeft: u,
|
|
1441
1441
|
align: h
|
|
1442
1442
|
}),
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1443
|
+
Co({ type: e, size: c, labelRight: d, labelLeft: u }),
|
|
1444
|
+
So({ mode: a, variant: p, noBorder: l }),
|
|
1445
|
+
Ro({ focusMode: n }),
|
|
1446
|
+
To({ mode: a, variant: p, disabled: s }),
|
|
1447
|
+
_o({ mode: a, variant: p, disabled: s }),
|
|
1448
1448
|
{
|
|
1449
1449
|
"w-full": i,
|
|
1450
1450
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
1451
1451
|
},
|
|
1452
1452
|
t
|
|
1453
|
-
)),
|
|
1454
|
-
var
|
|
1455
|
-
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((
|
|
1456
|
-
}, $e =
|
|
1457
|
-
const { onClick: r, noInternalClick:
|
|
1458
|
-
return /* @__PURE__ */
|
|
1453
|
+
)), Mo = (e, t, r) => {
|
|
1454
|
+
var a;
|
|
1455
|
+
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
1456
|
+
}, $e = E.forwardRef((e, t) => {
|
|
1457
|
+
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
1458
|
+
return /* @__PURE__ */ o(
|
|
1459
1459
|
"button",
|
|
1460
1460
|
{
|
|
1461
1461
|
ref: t,
|
|
1462
1462
|
onClick: (s) => {
|
|
1463
|
-
|
|
1463
|
+
Mo(s, a, r);
|
|
1464
1464
|
},
|
|
1465
1465
|
...n
|
|
1466
1466
|
}
|
|
1467
1467
|
);
|
|
1468
1468
|
});
|
|
1469
1469
|
$e.displayName = "BaseButton";
|
|
1470
|
-
const Pt =
|
|
1470
|
+
const Pt = E.forwardRef(
|
|
1471
1471
|
({
|
|
1472
1472
|
children: e,
|
|
1473
1473
|
disabled: t = !1,
|
|
1474
1474
|
mode: r = "system",
|
|
1475
|
-
focusMode:
|
|
1475
|
+
focusMode: a = "system",
|
|
1476
1476
|
fullWidth: n = !1,
|
|
1477
1477
|
className: s,
|
|
1478
1478
|
type: i = "button",
|
|
@@ -1480,7 +1480,7 @@ const Pt = I.forwardRef(
|
|
|
1480
1480
|
noBorder: l = !1,
|
|
1481
1481
|
"aria-label": d,
|
|
1482
1482
|
label: u,
|
|
1483
|
-
size:
|
|
1483
|
+
size: g = "medium",
|
|
1484
1484
|
labelRight: p,
|
|
1485
1485
|
labelLeft: v,
|
|
1486
1486
|
noBackground: h = !1,
|
|
@@ -1492,20 +1492,20 @@ const Pt = I.forwardRef(
|
|
|
1492
1492
|
const C = At({
|
|
1493
1493
|
type: we,
|
|
1494
1494
|
mode: r,
|
|
1495
|
-
focusMode:
|
|
1495
|
+
focusMode: a,
|
|
1496
1496
|
fullWidth: n,
|
|
1497
1497
|
disabled: t,
|
|
1498
1498
|
raw: c,
|
|
1499
1499
|
className: s,
|
|
1500
1500
|
noBorder: l,
|
|
1501
|
-
size:
|
|
1501
|
+
size: g,
|
|
1502
1502
|
labelRight: p,
|
|
1503
1503
|
labelLeft: v,
|
|
1504
1504
|
noBackground: h,
|
|
1505
1505
|
align: k,
|
|
1506
1506
|
radius: b,
|
|
1507
1507
|
variant: N
|
|
1508
|
-
}),
|
|
1508
|
+
}), T = w({
|
|
1509
1509
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1510
1510
|
"text-copy-light": r === "dark" && !c,
|
|
1511
1511
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
@@ -1521,9 +1521,9 @@ const Pt = I.forwardRef(
|
|
|
1521
1521
|
"aria-label": d || u,
|
|
1522
1522
|
...x,
|
|
1523
1523
|
children: [
|
|
1524
|
-
v && /* @__PURE__ */
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
p && /* @__PURE__ */
|
|
1524
|
+
v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
|
|
1525
|
+
/* @__PURE__ */ o("div", { className: T, children: e }),
|
|
1526
|
+
p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
|
|
1527
1527
|
]
|
|
1528
1528
|
}
|
|
1529
1529
|
);
|
|
@@ -1543,12 +1543,12 @@ try {
|
|
|
1543
1543
|
});
|
|
1544
1544
|
} catch {
|
|
1545
1545
|
}
|
|
1546
|
-
const
|
|
1546
|
+
const Lo = E.forwardRef(
|
|
1547
1547
|
({
|
|
1548
1548
|
children: e,
|
|
1549
1549
|
disabled: t = !1,
|
|
1550
1550
|
mode: r = "system",
|
|
1551
|
-
focusMode:
|
|
1551
|
+
focusMode: a = "system",
|
|
1552
1552
|
fullWidth: n = !1,
|
|
1553
1553
|
className: s,
|
|
1554
1554
|
type: i = "button",
|
|
@@ -1556,7 +1556,7 @@ const Ma = I.forwardRef(
|
|
|
1556
1556
|
noBorder: l = !1,
|
|
1557
1557
|
"aria-label": d,
|
|
1558
1558
|
label: u,
|
|
1559
|
-
size:
|
|
1559
|
+
size: g = "medium",
|
|
1560
1560
|
labelRight: p,
|
|
1561
1561
|
labelLeft: v,
|
|
1562
1562
|
noBackground: h = !1,
|
|
@@ -1568,19 +1568,19 @@ const Ma = I.forwardRef(
|
|
|
1568
1568
|
const C = At({
|
|
1569
1569
|
type: we,
|
|
1570
1570
|
mode: r,
|
|
1571
|
-
focusMode:
|
|
1571
|
+
focusMode: a,
|
|
1572
1572
|
fullWidth: n,
|
|
1573
1573
|
disabled: t,
|
|
1574
1574
|
raw: c,
|
|
1575
1575
|
className: s,
|
|
1576
1576
|
noBorder: l,
|
|
1577
|
-
size:
|
|
1577
|
+
size: g,
|
|
1578
1578
|
labelRight: p,
|
|
1579
1579
|
labelLeft: v,
|
|
1580
1580
|
noBackground: h,
|
|
1581
1581
|
align: k,
|
|
1582
1582
|
radius: N
|
|
1583
|
-
}),
|
|
1583
|
+
}), T = w({
|
|
1584
1584
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1585
1585
|
"text-copy-light": r === "dark" && !c,
|
|
1586
1586
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
@@ -1602,7 +1602,7 @@ const Ma = I.forwardRef(
|
|
|
1602
1602
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
1603
1603
|
}
|
|
1604
1604
|
) : "";
|
|
1605
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ o("div", { className: L, children: /* @__PURE__ */ y(
|
|
1606
1606
|
$e,
|
|
1607
1607
|
{
|
|
1608
1608
|
ref: m,
|
|
@@ -1612,29 +1612,29 @@ const Ma = I.forwardRef(
|
|
|
1612
1612
|
"aria-label": d || u,
|
|
1613
1613
|
...x,
|
|
1614
1614
|
children: [
|
|
1615
|
-
v && /* @__PURE__ */
|
|
1616
|
-
/* @__PURE__ */
|
|
1617
|
-
p && /* @__PURE__ */
|
|
1615
|
+
v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
|
|
1616
|
+
/* @__PURE__ */ o("div", { className: T, children: e }),
|
|
1617
|
+
p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
|
|
1618
1618
|
]
|
|
1619
1619
|
}
|
|
1620
1620
|
) });
|
|
1621
1621
|
}
|
|
1622
1622
|
);
|
|
1623
|
-
|
|
1624
|
-
const
|
|
1623
|
+
Lo.displayName = "ButtonSort";
|
|
1624
|
+
const zo = ({
|
|
1625
1625
|
children: e,
|
|
1626
1626
|
fill: t,
|
|
1627
1627
|
viewBox: r,
|
|
1628
|
-
className:
|
|
1628
|
+
className: a,
|
|
1629
1629
|
defaultViewBox: n,
|
|
1630
1630
|
size: s,
|
|
1631
1631
|
title: i,
|
|
1632
1632
|
semantic: c = !1,
|
|
1633
1633
|
...l
|
|
1634
1634
|
}) => {
|
|
1635
|
-
const d = w(s,
|
|
1635
|
+
const d = w(s, a);
|
|
1636
1636
|
return /* @__PURE__ */ y(z, { children: [
|
|
1637
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ o(
|
|
1638
1638
|
"svg",
|
|
1639
1639
|
{
|
|
1640
1640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1648,7 +1648,7 @@ const La = ({
|
|
|
1648
1648
|
children: e
|
|
1649
1649
|
}
|
|
1650
1650
|
),
|
|
1651
|
-
i && c && /* @__PURE__ */
|
|
1651
|
+
i && c && /* @__PURE__ */ o("span", { className: "sr-only", children: i })
|
|
1652
1652
|
] });
|
|
1653
1653
|
};
|
|
1654
1654
|
/*!
|
|
@@ -1664,14 +1664,14 @@ try {
|
|
|
1664
1664
|
});
|
|
1665
1665
|
} catch {
|
|
1666
1666
|
}
|
|
1667
|
-
const
|
|
1667
|
+
const Ao = ({
|
|
1668
1668
|
className: e,
|
|
1669
1669
|
viewBox: t,
|
|
1670
1670
|
title: r,
|
|
1671
|
-
monotone:
|
|
1671
|
+
monotone: a,
|
|
1672
1672
|
...n
|
|
1673
|
-
}) => /* @__PURE__ */
|
|
1674
|
-
|
|
1673
|
+
}) => /* @__PURE__ */ o(
|
|
1674
|
+
zo,
|
|
1675
1675
|
{
|
|
1676
1676
|
defaultViewBox: "0 0 384 512",
|
|
1677
1677
|
size: "size-5",
|
|
@@ -1679,7 +1679,7 @@ const za = ({
|
|
|
1679
1679
|
className: e,
|
|
1680
1680
|
title: r || "Close",
|
|
1681
1681
|
...n,
|
|
1682
|
-
children: /* @__PURE__ */
|
|
1682
|
+
children: /* @__PURE__ */ o("path", { d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z" })
|
|
1683
1683
|
}
|
|
1684
1684
|
);
|
|
1685
1685
|
/*!
|
|
@@ -1695,75 +1695,75 @@ try {
|
|
|
1695
1695
|
});
|
|
1696
1696
|
} catch {
|
|
1697
1697
|
}
|
|
1698
|
-
const Bt =
|
|
1699
|
-
function
|
|
1698
|
+
const Bt = f.createContext(null);
|
|
1699
|
+
function Po({
|
|
1700
1700
|
initialOpen: e = !1,
|
|
1701
1701
|
open: t,
|
|
1702
1702
|
onOpenChange: r
|
|
1703
1703
|
} = {}) {
|
|
1704
|
-
const [
|
|
1704
|
+
const [a, n] = f.useState(e), [s, i] = f.useState(), [c, l] = f.useState(), d = t ?? a, u = r ?? n, g = it({
|
|
1705
1705
|
open: d,
|
|
1706
1706
|
onOpenChange: u
|
|
1707
|
-
}), p =
|
|
1707
|
+
}), p = g.context, v = ct(p, {
|
|
1708
1708
|
enabled: t == null
|
|
1709
1709
|
}), h = dt(p, {
|
|
1710
1710
|
outsidePress: !1,
|
|
1711
1711
|
outsidePressEvent: "mousedown"
|
|
1712
1712
|
}), k = lt(p), b = ut([v, h, k]);
|
|
1713
|
-
return
|
|
1713
|
+
return f.useMemo(
|
|
1714
1714
|
() => ({
|
|
1715
1715
|
open: d,
|
|
1716
1716
|
setOpen: u,
|
|
1717
1717
|
...b,
|
|
1718
|
-
...
|
|
1718
|
+
...g,
|
|
1719
1719
|
labelId: s,
|
|
1720
1720
|
descriptionId: c,
|
|
1721
1721
|
setLabelId: i,
|
|
1722
1722
|
setDescriptionId: l
|
|
1723
1723
|
}),
|
|
1724
|
-
[d, u, b,
|
|
1724
|
+
[d, u, b, g, s, c]
|
|
1725
1725
|
);
|
|
1726
1726
|
}
|
|
1727
1727
|
const Ne = () => {
|
|
1728
|
-
const e =
|
|
1728
|
+
const e = f.useContext(Bt);
|
|
1729
1729
|
if (e == null)
|
|
1730
1730
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1731
1731
|
return e;
|
|
1732
1732
|
};
|
|
1733
|
-
function
|
|
1733
|
+
function Bo({
|
|
1734
1734
|
children: e,
|
|
1735
1735
|
...t
|
|
1736
1736
|
}) {
|
|
1737
|
-
const r =
|
|
1738
|
-
return /* @__PURE__ */
|
|
1737
|
+
const r = Po(t);
|
|
1738
|
+
return /* @__PURE__ */ o(Bt.Provider, { value: r, children: e });
|
|
1739
1739
|
}
|
|
1740
|
-
const
|
|
1741
|
-
const { context: r, ...
|
|
1740
|
+
const Oo = f.forwardRef(function(e, t) {
|
|
1741
|
+
const { context: r, ...a } = Ne(), n = Ae([a.refs.setFloating, t]);
|
|
1742
1742
|
if (!r.open)
|
|
1743
1743
|
return null;
|
|
1744
1744
|
const { overlayBackground: s, ...i } = e, c = w("grid place-items-center", {
|
|
1745
1745
|
[`${s}`]: s,
|
|
1746
1746
|
"bg-black sm:bg-black/[.8]": !s
|
|
1747
1747
|
});
|
|
1748
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(wr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(ht, { context: r, children: /* @__PURE__ */ o(
|
|
1749
1749
|
"div",
|
|
1750
1750
|
{
|
|
1751
1751
|
ref: n,
|
|
1752
|
-
"aria-labelledby":
|
|
1753
|
-
"aria-describedby":
|
|
1754
|
-
...
|
|
1752
|
+
"aria-labelledby": a.labelId,
|
|
1753
|
+
"aria-describedby": a.descriptionId,
|
|
1754
|
+
...a.getFloatingProps(i),
|
|
1755
1755
|
children: i.children
|
|
1756
1756
|
}
|
|
1757
1757
|
) }) }) });
|
|
1758
|
-
}),
|
|
1759
|
-
const { setLabelId:
|
|
1760
|
-
return
|
|
1761
|
-
}),
|
|
1762
|
-
const { setDescriptionId:
|
|
1763
|
-
return
|
|
1764
|
-
}),
|
|
1765
|
-
const { setOpen: r } = Ne(), { trigger:
|
|
1766
|
-
return /* @__PURE__ */
|
|
1758
|
+
}), $o = f.forwardRef(function({ children: e, ...t }, r) {
|
|
1759
|
+
const { setLabelId: a } = Ne(), n = ze();
|
|
1760
|
+
return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
|
|
1761
|
+
}), Do = f.forwardRef(function({ children: e, ...t }, r) {
|
|
1762
|
+
const { setDescriptionId: a } = Ne(), n = ze();
|
|
1763
|
+
return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
|
|
1764
|
+
}), Fo = f.forwardRef(function(e, t) {
|
|
1765
|
+
const { setOpen: r } = Ne(), { trigger: a, className: n, ...s } = e, i = f.useCallback(() => r(!1), [r]);
|
|
1766
|
+
return /* @__PURE__ */ o("div", { className: n, children: f.cloneElement(a, {
|
|
1767
1767
|
ref: t,
|
|
1768
1768
|
onClick: i,
|
|
1769
1769
|
...s
|
|
@@ -1782,7 +1782,7 @@ try {
|
|
|
1782
1782
|
});
|
|
1783
1783
|
} catch {
|
|
1784
1784
|
}
|
|
1785
|
-
const se = "panel", ue = "messagebox",
|
|
1785
|
+
const se = "panel", ue = "messagebox", Go = ({
|
|
1786
1786
|
className: e,
|
|
1787
1787
|
kind: t,
|
|
1788
1788
|
borderMode: r
|
|
@@ -1806,78 +1806,78 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
1806
1806
|
open: e,
|
|
1807
1807
|
onOpenChange: t,
|
|
1808
1808
|
title: r,
|
|
1809
|
-
children:
|
|
1809
|
+
children: a,
|
|
1810
1810
|
footer: n,
|
|
1811
1811
|
borderMode: s = "light",
|
|
1812
1812
|
kind: i = se,
|
|
1813
1813
|
className: c
|
|
1814
1814
|
}) => {
|
|
1815
|
-
const l = Z(""), d =
|
|
1815
|
+
const l = Z(""), d = Go({ className: c, kind: i, borderMode: s });
|
|
1816
1816
|
return q(() => (e && (l.current = document.title, document.title = `${r} | ${l.current}`), () => {
|
|
1817
1817
|
e && (document.title = l.current);
|
|
1818
|
-
}), [r, e]), /* @__PURE__ */
|
|
1818
|
+
}), [r, e]), /* @__PURE__ */ o(z, { children: e && /* @__PURE__ */ o(Bo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Oo, { className: d.main, children: [
|
|
1819
1819
|
/* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1820
|
-
/* @__PURE__ */
|
|
1821
|
-
|
|
1820
|
+
/* @__PURE__ */ o(
|
|
1821
|
+
Fo,
|
|
1822
1822
|
{
|
|
1823
1823
|
className: d.close,
|
|
1824
|
-
trigger: /* @__PURE__ */
|
|
1824
|
+
trigger: /* @__PURE__ */ o(
|
|
1825
1825
|
Pt,
|
|
1826
1826
|
{
|
|
1827
1827
|
mode: "dark",
|
|
1828
1828
|
focusMode: "light",
|
|
1829
1829
|
noBorder: !0,
|
|
1830
1830
|
label: "Close",
|
|
1831
|
-
children: /* @__PURE__ */
|
|
1831
|
+
children: /* @__PURE__ */ o(Ao, {})
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
1834
1834
|
}
|
|
1835
1835
|
),
|
|
1836
|
-
/* @__PURE__ */
|
|
1836
|
+
/* @__PURE__ */ o($o, { className: d.header, children: r })
|
|
1837
1837
|
] }),
|
|
1838
|
-
/* @__PURE__ */
|
|
1839
|
-
n && /* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ o(Do, { className: d.content, children: a }),
|
|
1839
|
+
n && /* @__PURE__ */ o("div", { className: d.footer, children: n })
|
|
1840
1840
|
] }) }) });
|
|
1841
|
-
},
|
|
1842
|
-
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "",
|
|
1841
|
+
}, Vo = ({ stats: e }) => {
|
|
1842
|
+
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = ge(), s = ge();
|
|
1843
1843
|
return /* @__PURE__ */ y(z, { children: [
|
|
1844
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1845
1845
|
O,
|
|
1846
1846
|
{
|
|
1847
1847
|
header: S.ABOUT.TITLE_CLIENT,
|
|
1848
1848
|
className: "prose-dark dark:prose-lighter",
|
|
1849
1849
|
children: he(n, {
|
|
1850
|
-
[S.ABOUT.VERSION]: "5.19.
|
|
1851
|
-
[S.ABOUT.BUILD_TIMESTAMP]: "01/04/2025
|
|
1850
|
+
[S.ABOUT.VERSION]: "5.19.7",
|
|
1851
|
+
[S.ABOUT.BUILD_TIMESTAMP]: "01/04/2025 07:58 PM EST"
|
|
1852
1852
|
})
|
|
1853
1853
|
}
|
|
1854
1854
|
) }),
|
|
1855
|
-
/* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ o(
|
|
1856
1856
|
O,
|
|
1857
1857
|
{
|
|
1858
1858
|
header: S.ABOUT.TITLE_SERVER,
|
|
1859
1859
|
className: "prose-dark dark:prose-lighter",
|
|
1860
1860
|
children: he(s, {
|
|
1861
1861
|
[S.ABOUT.VERSION]: r,
|
|
1862
|
-
[
|
|
1863
|
-
[
|
|
1862
|
+
[fe(S.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(z, { children: a.map((i) => /* @__PURE__ */ o("div", { className: "text-right", children: i }, i)) }),
|
|
1863
|
+
[fe(S.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(z, { children: t.map((i) => /* @__PURE__ */ o("div", { className: "text-right", children: i }, i)) })
|
|
1864
1864
|
})
|
|
1865
1865
|
}
|
|
1866
1866
|
)
|
|
1867
1867
|
] });
|
|
1868
|
-
},
|
|
1868
|
+
}, Uo = ({
|
|
1869
1869
|
open: e,
|
|
1870
1870
|
onOpenChange: t
|
|
1871
1871
|
}) => {
|
|
1872
1872
|
const { serverStats: r } = F(ve);
|
|
1873
|
-
return /* @__PURE__ */
|
|
1873
|
+
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Ft, children: /* @__PURE__ */ o(Vo, { stats: r }) });
|
|
1874
1874
|
}, Ot = ({
|
|
1875
1875
|
showConfirmation: e,
|
|
1876
1876
|
setShowConfirmation: t,
|
|
1877
1877
|
action: r,
|
|
1878
|
-
children:
|
|
1878
|
+
children: a,
|
|
1879
1879
|
customStrings: n
|
|
1880
|
-
}) => /* @__PURE__ */
|
|
1880
|
+
}) => /* @__PURE__ */ o(
|
|
1881
1881
|
te,
|
|
1882
1882
|
{
|
|
1883
1883
|
kind: "messagebox",
|
|
@@ -1885,7 +1885,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
1885
1885
|
onOpenChange: t,
|
|
1886
1886
|
title: n.title,
|
|
1887
1887
|
footer: /* @__PURE__ */ y(Y, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1888
|
-
/* @__PURE__ */
|
|
1888
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
1889
1889
|
G,
|
|
1890
1890
|
{
|
|
1891
1891
|
mode: "dark",
|
|
@@ -1897,7 +1897,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
1897
1897
|
children: n.cancelAction
|
|
1898
1898
|
}
|
|
1899
1899
|
) }),
|
|
1900
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
1901
1901
|
G,
|
|
1902
1902
|
{
|
|
1903
1903
|
mode: "dark",
|
|
@@ -1910,12 +1910,12 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
1910
1910
|
}
|
|
1911
1911
|
) })
|
|
1912
1912
|
] }),
|
|
1913
|
-
children:
|
|
1913
|
+
children: a
|
|
1914
1914
|
}
|
|
1915
|
-
),
|
|
1915
|
+
), Ho = async (e, t, r, a) => {
|
|
1916
1916
|
try {
|
|
1917
1917
|
const n = await $({
|
|
1918
|
-
accessToken:
|
|
1918
|
+
accessToken: a,
|
|
1919
1919
|
type: D.GET_CHAT,
|
|
1920
1920
|
params: {
|
|
1921
1921
|
id: e.id
|
|
@@ -1934,20 +1934,20 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
1934
1934
|
}), r(!1));
|
|
1935
1935
|
} catch {
|
|
1936
1936
|
}
|
|
1937
|
-
},
|
|
1937
|
+
}, jo = ({
|
|
1938
1938
|
filteredHistory: e,
|
|
1939
1939
|
setFilteredHistory: t,
|
|
1940
1940
|
dispatch: r,
|
|
1941
|
-
onOpenChange:
|
|
1941
|
+
onOpenChange: a
|
|
1942
1942
|
}) => {
|
|
1943
1943
|
var x;
|
|
1944
1944
|
const { user: n, getAccessToken: s } = Q(), i = Z(null), c = Z({
|
|
1945
1945
|
id: 0,
|
|
1946
1946
|
timestamp: "",
|
|
1947
1947
|
message: ""
|
|
1948
|
-
}), [l, d] = R(!1), [u,
|
|
1948
|
+
}), [l, d] = R(!1), [u, g] = R(
|
|
1949
1949
|
Fe + Ge
|
|
1950
|
-
), { state: p, dispatch: v } = F(
|
|
1950
|
+
), { state: p, dispatch: v } = F(ot), [, h] = le({
|
|
1951
1951
|
key: ce + Gt,
|
|
1952
1952
|
initialValue: p.sortDirection
|
|
1953
1953
|
}), k = (m) => {
|
|
@@ -1990,7 +1990,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
1990
1990
|
} catch {
|
|
1991
1991
|
}
|
|
1992
1992
|
}, N = lr((m) => {
|
|
1993
|
-
m[0].isIntersecting &&
|
|
1993
|
+
m[0].isIntersecting && g((T) => T + Fe);
|
|
1994
1994
|
}, []);
|
|
1995
1995
|
return q(() => {
|
|
1996
1996
|
const m = {
|
|
@@ -2011,17 +2011,17 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2011
2011
|
title: "Delete chat"
|
|
2012
2012
|
},
|
|
2013
2013
|
children: [
|
|
2014
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ o("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
2015
2015
|
/* @__PURE__ */ y("ul", { className: "m-0", children: [
|
|
2016
2016
|
/* @__PURE__ */ y("li", { children: [
|
|
2017
2017
|
"Timestamp:",
|
|
2018
2018
|
" ",
|
|
2019
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ o("span", { className: "text-lg", children: c.current && c.current.timestamp })
|
|
2020
2020
|
] }),
|
|
2021
2021
|
/* @__PURE__ */ y("li", { children: [
|
|
2022
2022
|
"First message:",
|
|
2023
2023
|
" ",
|
|
2024
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ o("span", { className: "text-lg", children: (x = c.current) == null ? void 0 : x.message })
|
|
2025
2025
|
] })
|
|
2026
2026
|
] })
|
|
2027
2027
|
]
|
|
@@ -2035,10 +2035,10 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2035
2035
|
compact: !0,
|
|
2036
2036
|
wrapperClassName: "max-h-[60vh] min-h-[60vh]",
|
|
2037
2037
|
children: [
|
|
2038
|
-
/* @__PURE__ */
|
|
2039
|
-
/* @__PURE__ */
|
|
2040
|
-
/* @__PURE__ */
|
|
2041
|
-
|
|
2038
|
+
/* @__PURE__ */ o(or, { children: /* @__PURE__ */ y(xe, { children: [
|
|
2039
|
+
/* @__PURE__ */ o(P, { className: "sr-only", children: "Row" }),
|
|
2040
|
+
/* @__PURE__ */ o(
|
|
2041
|
+
ar,
|
|
2042
2042
|
{
|
|
2043
2043
|
buttonClassName: "text-xs sm:text-sm",
|
|
2044
2044
|
cellId: "timestamp",
|
|
@@ -2051,17 +2051,17 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2051
2051
|
children: "Date"
|
|
2052
2052
|
}
|
|
2053
2053
|
),
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ o(P, { className: "text-xs sm:text-sm", children: "First message" }),
|
|
2055
|
+
/* @__PURE__ */ o(P, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
2056
|
+
/* @__PURE__ */ o(P, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
2057
2057
|
] }) }),
|
|
2058
|
-
/* @__PURE__ */
|
|
2059
|
-
var
|
|
2060
|
-
return ((
|
|
2061
|
-
C === u - Ge && /* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ o(nr, { children: e.data.slice(0, u).map((m, C) => {
|
|
2059
|
+
var T, L;
|
|
2060
|
+
return ((T = m == null ? void 0 : m.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ y(dr, { children: [
|
|
2061
|
+
C === u - Ge && /* @__PURE__ */ o("tr", { ref: i }),
|
|
2062
2062
|
/* @__PURE__ */ y(xe, { children: [
|
|
2063
|
-
/* @__PURE__ */
|
|
2064
|
-
/* @__PURE__ */
|
|
2063
|
+
/* @__PURE__ */ o(P, { children: C + 1 }),
|
|
2064
|
+
/* @__PURE__ */ o(
|
|
2065
2065
|
P,
|
|
2066
2066
|
{
|
|
2067
2067
|
component: "th",
|
|
@@ -2070,7 +2070,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2070
2070
|
children: m.timestamp.split(",")[0]
|
|
2071
2071
|
}
|
|
2072
2072
|
),
|
|
2073
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ o(
|
|
2074
2074
|
P,
|
|
2075
2075
|
{
|
|
2076
2076
|
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
|
@@ -2088,13 +2088,13 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2088
2088
|
className: "text-gray-400",
|
|
2089
2089
|
align: "center",
|
|
2090
2090
|
children: [
|
|
2091
|
-
m.model && m.model.startsWith("claude") && /* @__PURE__ */
|
|
2092
|
-
m.model && m.model.startsWith("gpt") && /* @__PURE__ */
|
|
2091
|
+
m.model && m.model.startsWith("claude") && /* @__PURE__ */ o(ft, { size: "size-4 sm:size-5" }),
|
|
2092
|
+
m.model && m.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" })
|
|
2093
2093
|
]
|
|
2094
2094
|
}
|
|
2095
2095
|
),
|
|
2096
2096
|
/* @__PURE__ */ y(P, { align: "right", children: [
|
|
2097
|
-
/* @__PURE__ */
|
|
2097
|
+
/* @__PURE__ */ o(
|
|
2098
2098
|
J,
|
|
2099
2099
|
{
|
|
2100
2100
|
className: "mr-2",
|
|
@@ -2103,17 +2103,17 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2103
2103
|
label: "Restore chat",
|
|
2104
2104
|
onClick: async () => {
|
|
2105
2105
|
const _ = await s();
|
|
2106
|
-
|
|
2106
|
+
Ho(
|
|
2107
2107
|
m,
|
|
2108
2108
|
r,
|
|
2109
|
-
|
|
2109
|
+
a,
|
|
2110
2110
|
_
|
|
2111
2111
|
);
|
|
2112
2112
|
},
|
|
2113
|
-
children: /* @__PURE__ */
|
|
2113
|
+
children: /* @__PURE__ */ o(_r, { size: "size-3", monotone: !0 })
|
|
2114
2114
|
}
|
|
2115
2115
|
),
|
|
2116
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ o(
|
|
2117
2117
|
J,
|
|
2118
2118
|
{
|
|
2119
2119
|
focusMode: "alt-system",
|
|
@@ -2127,14 +2127,14 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2127
2127
|
message: m.messages.length > 0 ? (_ = m.messages[0]) == null ? void 0 : _.content : ""
|
|
2128
2128
|
}, d(!l);
|
|
2129
2129
|
},
|
|
2130
|
-
children: /* @__PURE__ */
|
|
2130
|
+
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 }) })
|
|
2131
2131
|
}
|
|
2132
2132
|
)
|
|
2133
2133
|
] })
|
|
2134
2134
|
] })
|
|
2135
2135
|
] }, `${S.HISTORY.TITLE}-${m.id}-${C}`) : null;
|
|
2136
2136
|
}) }),
|
|
2137
|
-
/* @__PURE__ */
|
|
2137
|
+
/* @__PURE__ */ o(sr, { children: /* @__PURE__ */ o(xe, { children: /* @__PURE__ */ o(P, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: fe(
|
|
2138
2138
|
`${e.data.length} chat`,
|
|
2139
2139
|
e.data.length
|
|
2140
2140
|
) }) }) }) })
|
|
@@ -2146,7 +2146,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2146
2146
|
searchString: e,
|
|
2147
2147
|
username: t,
|
|
2148
2148
|
accessToken: r,
|
|
2149
|
-
direction:
|
|
2149
|
+
direction: a = W.ASC
|
|
2150
2150
|
}) => {
|
|
2151
2151
|
if (!t)
|
|
2152
2152
|
return [];
|
|
@@ -2158,7 +2158,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2158
2158
|
userId: t,
|
|
2159
2159
|
searchString: e,
|
|
2160
2160
|
limit: 1,
|
|
2161
|
-
direction:
|
|
2161
|
+
direction: a,
|
|
2162
2162
|
truncateSize: 100
|
|
2163
2163
|
}
|
|
2164
2164
|
});
|
|
@@ -2168,18 +2168,18 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2168
2168
|
return [];
|
|
2169
2169
|
}
|
|
2170
2170
|
return [];
|
|
2171
|
-
},
|
|
2171
|
+
}, Wo = ({
|
|
2172
2172
|
open: e,
|
|
2173
2173
|
onOpenChange: t
|
|
2174
2174
|
}) => {
|
|
2175
|
-
const { isAuthenticated: r, getAccessToken:
|
|
2175
|
+
const { isAuthenticated: r, getAccessToken: a, user: n } = Q(), s = Z(null), i = Z(!1), { dispatch: c } = F(ve), { state: l, dispatch: d } = F(ot), [, u] = le({
|
|
2176
2176
|
key: ce + Ut,
|
|
2177
2177
|
initialValue: l.searchString
|
|
2178
|
-
}), [
|
|
2178
|
+
}), [g, p] = R({
|
|
2179
2179
|
data: [],
|
|
2180
2180
|
sortedDirection: l.sortDirection
|
|
2181
2181
|
}), v = async (b) => {
|
|
2182
|
-
const N = await
|
|
2182
|
+
const N = await a(), x = await Je({
|
|
2183
2183
|
searchString: b,
|
|
2184
2184
|
username: n == null ? void 0 : n.username,
|
|
2185
2185
|
accessToken: N,
|
|
@@ -2200,7 +2200,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2200
2200
|
return We(() => {
|
|
2201
2201
|
i.current || (async () => {
|
|
2202
2202
|
i.current = !0;
|
|
2203
|
-
const b = await
|
|
2203
|
+
const b = await a(), N = await Je({
|
|
2204
2204
|
searchString: l.searchString,
|
|
2205
2205
|
username: n == null ? void 0 : n.username,
|
|
2206
2206
|
accessToken: b,
|
|
@@ -2212,8 +2212,8 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2212
2212
|
});
|
|
2213
2213
|
})();
|
|
2214
2214
|
}), We(() => {
|
|
2215
|
-
if (l.sortDirection !==
|
|
2216
|
-
const b = [...
|
|
2215
|
+
if (l.sortDirection !== g.sortedDirection) {
|
|
2216
|
+
const b = [...g.data].sort((N, x) => {
|
|
2217
2217
|
if (l.sortedCell === "timestamp") {
|
|
2218
2218
|
const m = new Date(N[l.sortedCell]).getTime(), C = new Date(x[l.sortedCell]).getTime();
|
|
2219
2219
|
return l.sortDirection === W.ASC ? m - C : C - m;
|
|
@@ -2225,9 +2225,9 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2225
2225
|
sortedDirection: l.sortDirection
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
|
-
}, [
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
|
|
2228
|
+
}, [g, l]), r ? g && g.data && /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Ht, children: /* @__PURE__ */ y(z, { children: [
|
|
2229
|
+
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: k, children: /* @__PURE__ */ o(
|
|
2230
|
+
Ee,
|
|
2231
2231
|
{
|
|
2232
2232
|
autoCapitalize: "off",
|
|
2233
2233
|
autoComplete: "off",
|
|
@@ -2241,7 +2241,7 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2241
2241
|
onChange: h,
|
|
2242
2242
|
className: "mt-2 mb-2",
|
|
2243
2243
|
...l.searchString && {
|
|
2244
|
-
rightElement: /* @__PURE__ */
|
|
2244
|
+
rightElement: /* @__PURE__ */ o(
|
|
2245
2245
|
G,
|
|
2246
2246
|
{
|
|
2247
2247
|
type: "button",
|
|
@@ -2260,20 +2260,20 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
2262
|
) }),
|
|
2263
|
-
/* @__PURE__ */
|
|
2264
|
-
|
|
2263
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ o(
|
|
2264
|
+
jo,
|
|
2265
2265
|
{
|
|
2266
|
-
filteredHistory:
|
|
2266
|
+
filteredHistory: g,
|
|
2267
2267
|
setFilteredHistory: p,
|
|
2268
2268
|
dispatch: c,
|
|
2269
2269
|
onOpenChange: t
|
|
2270
2270
|
}
|
|
2271
2271
|
) })
|
|
2272
2272
|
] }) }) : null;
|
|
2273
|
-
},
|
|
2274
|
-
const { isAuthenticated: t, user: r, registeringForPasskey:
|
|
2273
|
+
}, Ko = ({ stats: e }) => {
|
|
2274
|
+
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Q(), s = ge(), i = ge(), c = (r == null ? void 0 : r.username) || "";
|
|
2275
2275
|
return t && c ? /* @__PURE__ */ y(z, { children: [
|
|
2276
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ o(
|
|
2277
2277
|
O,
|
|
2278
2278
|
{
|
|
2279
2279
|
header: S.PREFERENCES.TITLE,
|
|
@@ -2288,32 +2288,32 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2288
2288
|
O,
|
|
2289
2289
|
{
|
|
2290
2290
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2291
|
-
header: /* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2293
|
-
/* @__PURE__ */
|
|
2291
|
+
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(Y, { columnGap: 3, alignVertical: "center", children: [
|
|
2292
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(Ue, { size: "size-8" }) }),
|
|
2293
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o("div", { children: S.PREFERENCES.PASSKEY_TITLE }) })
|
|
2294
2294
|
] }) }),
|
|
2295
2295
|
children: [
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ o("p", { children: S.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2297
|
+
/* @__PURE__ */ o(
|
|
2298
2298
|
J,
|
|
2299
2299
|
{
|
|
2300
2300
|
size: "small",
|
|
2301
2301
|
className: "mt-2",
|
|
2302
|
-
onClick:
|
|
2302
|
+
onClick: a,
|
|
2303
2303
|
labelLeft: S.PREFERENCES.PASSKEY_BUTTON,
|
|
2304
|
-
children: /* @__PURE__ */
|
|
2304
|
+
children: /* @__PURE__ */ o(Ue, { size: "size-5", monotone: !0 })
|
|
2305
2305
|
}
|
|
2306
2306
|
)
|
|
2307
2307
|
]
|
|
2308
2308
|
}
|
|
2309
2309
|
),
|
|
2310
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ o(
|
|
2311
2311
|
O,
|
|
2312
2312
|
{
|
|
2313
2313
|
header: S.MAIN_STATISTICS.TITLE,
|
|
2314
2314
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2315
2315
|
children: he(i, {
|
|
2316
|
-
[
|
|
2316
|
+
[fe(S.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
|
|
2317
2317
|
[S.MAIN_STATISTICS.PROCESSING_TIME]: Yt(
|
|
2318
2318
|
e.averageProcessingTimes
|
|
2319
2319
|
)
|
|
@@ -2321,11 +2321,11 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2321
2321
|
}
|
|
2322
2322
|
)
|
|
2323
2323
|
] }) : null;
|
|
2324
|
-
},
|
|
2324
|
+
}, Yo = ({
|
|
2325
2325
|
open: e,
|
|
2326
2326
|
onOpenChange: t
|
|
2327
2327
|
}) => {
|
|
2328
|
-
const [r,
|
|
2328
|
+
const [r, a] = R({
|
|
2329
2329
|
averageProcessingTimes: 0,
|
|
2330
2330
|
totalChats: 0
|
|
2331
2331
|
}), { getAccessToken: n, user: s } = Q();
|
|
@@ -2339,11 +2339,11 @@ const se = "panel", ue = "messagebox", Fa = ({
|
|
|
2339
2339
|
userId: s.username
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
|
-
i.status === 200 &&
|
|
2342
|
+
i.status === 200 && a(i.data);
|
|
2343
2343
|
} catch {
|
|
2344
2344
|
}
|
|
2345
2345
|
})();
|
|
2346
|
-
}, [e, n, s]), /* @__PURE__ */
|
|
2346
|
+
}, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ o(Ko, { stats: r }) });
|
|
2347
2347
|
};
|
|
2348
2348
|
/*!
|
|
2349
2349
|
@versini/ui-toggle v3.0.0
|
|
@@ -2358,7 +2358,7 @@ try {
|
|
|
2358
2358
|
});
|
|
2359
2359
|
} catch {
|
|
2360
2360
|
}
|
|
2361
|
-
const
|
|
2361
|
+
const Zo = "av-toggle", qo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo = ({
|
|
2362
2362
|
focusMode: e
|
|
2363
2363
|
}) => w(
|
|
2364
2364
|
"peer-focus:outline",
|
|
@@ -2370,14 +2370,14 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2370
2370
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
2371
2371
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
2372
2372
|
}
|
|
2373
|
-
),
|
|
2373
|
+
), Xo = () => w(
|
|
2374
2374
|
"peer-checked:after:translate-x-full",
|
|
2375
2375
|
// background color when checked
|
|
2376
2376
|
"peer-checked:bg-violet-500",
|
|
2377
2377
|
// knob circle and border color when checked
|
|
2378
2378
|
"peer-checked:after:bg-white",
|
|
2379
2379
|
"peer-checked:after:border-white"
|
|
2380
|
-
),
|
|
2380
|
+
), Jo = () => w(
|
|
2381
2381
|
"after:left-[2px]",
|
|
2382
2382
|
"after:top-[2px]",
|
|
2383
2383
|
"after:border",
|
|
@@ -2389,7 +2389,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2389
2389
|
"after:rounded-full",
|
|
2390
2390
|
"after:transition-all",
|
|
2391
2391
|
"after:content-['']"
|
|
2392
|
-
),
|
|
2392
|
+
), ea = ({
|
|
2393
2393
|
mode: e,
|
|
2394
2394
|
noBorder: t
|
|
2395
2395
|
}) => w({
|
|
@@ -2398,7 +2398,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2398
2398
|
"border-border-light bg-surface-darker": e === "dark",
|
|
2399
2399
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
2400
2400
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
2401
|
-
}),
|
|
2401
|
+
}), ta = ({
|
|
2402
2402
|
mode: e,
|
|
2403
2403
|
labelHidden: t
|
|
2404
2404
|
}) => t ? "sr-only" : w("ml-2 text-sm", {
|
|
@@ -2406,49 +2406,49 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2406
2406
|
"text-copy-lighter": e === "dark",
|
|
2407
2407
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
2408
2408
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
2409
|
-
}),
|
|
2410
|
-
|
|
2409
|
+
}), ra = ({ className: e }) => w(
|
|
2410
|
+
Zo,
|
|
2411
2411
|
"relative flex cursor-pointer items-center",
|
|
2412
2412
|
e
|
|
2413
|
-
),
|
|
2413
|
+
), oa = ({
|
|
2414
2414
|
mode: e,
|
|
2415
2415
|
focusMode: t,
|
|
2416
2416
|
labelHidden: r,
|
|
2417
|
-
className:
|
|
2417
|
+
className: a,
|
|
2418
2418
|
noBorder: n
|
|
2419
2419
|
}) => ({
|
|
2420
2420
|
toggle: w(
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2421
|
+
qo(),
|
|
2422
|
+
ea({ mode: e, noBorder: n }),
|
|
2423
|
+
Qo({ focusMode: t }),
|
|
2424
|
+
Jo(),
|
|
2425
|
+
Xo()
|
|
2426
2426
|
),
|
|
2427
|
-
label:
|
|
2427
|
+
label: ta({ mode: e, labelHidden: r }),
|
|
2428
2428
|
input: "peer sr-only",
|
|
2429
|
-
wrapper:
|
|
2429
|
+
wrapper: ra({ className: a })
|
|
2430
2430
|
}), ie = ({
|
|
2431
2431
|
checked: e = !1,
|
|
2432
2432
|
onChange: t,
|
|
2433
2433
|
label: r,
|
|
2434
|
-
labelHidden:
|
|
2434
|
+
labelHidden: a = !1,
|
|
2435
2435
|
name: n,
|
|
2436
2436
|
mode: s = "system",
|
|
2437
2437
|
focusMode: i = "system",
|
|
2438
2438
|
className: c,
|
|
2439
2439
|
noBorder: l = !1
|
|
2440
2440
|
}) => {
|
|
2441
|
-
const d =
|
|
2441
|
+
const d = oa({
|
|
2442
2442
|
mode: s,
|
|
2443
2443
|
focusMode: i,
|
|
2444
|
-
labelHidden:
|
|
2444
|
+
labelHidden: a,
|
|
2445
2445
|
className: c,
|
|
2446
2446
|
noBorder: l
|
|
2447
|
-
}), u = (
|
|
2448
|
-
t == null || t(
|
|
2447
|
+
}), u = (g) => {
|
|
2448
|
+
t == null || t(g.target.checked);
|
|
2449
2449
|
};
|
|
2450
2450
|
return /* @__PURE__ */ y("label", { className: d.wrapper, children: [
|
|
2451
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ o(
|
|
2452
2452
|
"input",
|
|
2453
2453
|
{
|
|
2454
2454
|
name: n,
|
|
@@ -2458,34 +2458,34 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2458
2458
|
onChange: u
|
|
2459
2459
|
}
|
|
2460
2460
|
),
|
|
2461
|
-
/* @__PURE__ */
|
|
2462
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ o("div", { className: d.toggle }),
|
|
2462
|
+
/* @__PURE__ */ o("span", { className: d.label, children: r })
|
|
2463
2463
|
] });
|
|
2464
|
-
},
|
|
2464
|
+
}, aa = ({
|
|
2465
2465
|
open: e,
|
|
2466
2466
|
onOpenChange: t
|
|
2467
2467
|
}) => {
|
|
2468
|
-
const { state: r, dispatch:
|
|
2469
|
-
|
|
2468
|
+
const { state: r, dispatch: a } = F(ir), { getAccessToken: n, user: s } = Q(), [i, c] = R({
|
|
2469
|
+
prompts: [...r.prompts]
|
|
2470
2470
|
}), l = ({
|
|
2471
2471
|
slot: u,
|
|
2472
|
-
checked:
|
|
2472
|
+
checked: g,
|
|
2473
2473
|
label: p,
|
|
2474
2474
|
content: v
|
|
2475
2475
|
}) => {
|
|
2476
2476
|
c((h) => {
|
|
2477
|
-
const k = h.
|
|
2477
|
+
const k = h.prompts, b = {
|
|
2478
2478
|
slot: u,
|
|
2479
2479
|
label: p,
|
|
2480
2480
|
content: v,
|
|
2481
|
-
enabled:
|
|
2481
|
+
enabled: g
|
|
2482
2482
|
}, N = k.findIndex((x) => x.slot === u);
|
|
2483
2483
|
return N === -1 ? {
|
|
2484
2484
|
...h,
|
|
2485
|
-
|
|
2485
|
+
prompts: [...k, { ...b, slot: u }]
|
|
2486
2486
|
} : (k[N] = b, {
|
|
2487
2487
|
...h,
|
|
2488
|
-
|
|
2488
|
+
prompts: [...k]
|
|
2489
2489
|
});
|
|
2490
2490
|
});
|
|
2491
2491
|
}, d = async (u) => {
|
|
@@ -2496,12 +2496,12 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2496
2496
|
type: D.SET_USER_PREFERENCES,
|
|
2497
2497
|
params: {
|
|
2498
2498
|
user: s == null ? void 0 : s.username,
|
|
2499
|
-
tags: i.
|
|
2499
|
+
tags: i.prompts
|
|
2500
2500
|
}
|
|
2501
|
-
}),
|
|
2501
|
+
}), a({
|
|
2502
2502
|
type: Qt,
|
|
2503
2503
|
payload: {
|
|
2504
|
-
|
|
2504
|
+
prompts: i.prompts
|
|
2505
2505
|
}
|
|
2506
2506
|
});
|
|
2507
2507
|
} catch {
|
|
@@ -2512,7 +2512,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2512
2512
|
{
|
|
2513
2513
|
open: e,
|
|
2514
2514
|
onOpenChange: t,
|
|
2515
|
-
title: "
|
|
2515
|
+
title: "Prompts",
|
|
2516
2516
|
footer: /* @__PURE__ */ y(
|
|
2517
2517
|
Y,
|
|
2518
2518
|
{
|
|
@@ -2520,7 +2520,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2520
2520
|
alignHorizontal: "flex-end",
|
|
2521
2521
|
className: "pb-8 sm:pb-0",
|
|
2522
2522
|
children: [
|
|
2523
|
-
/* @__PURE__ */
|
|
2523
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2524
2524
|
G,
|
|
2525
2525
|
{
|
|
2526
2526
|
mode: "dark",
|
|
@@ -2532,7 +2532,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2532
2532
|
children: "Cancel"
|
|
2533
2533
|
}
|
|
2534
2534
|
) }),
|
|
2535
|
-
/* @__PURE__ */
|
|
2535
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2536
2536
|
G,
|
|
2537
2537
|
{
|
|
2538
2538
|
mode: "dark",
|
|
@@ -2548,58 +2548,58 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2548
2548
|
}
|
|
2549
2549
|
),
|
|
2550
2550
|
children: [
|
|
2551
|
-
/* @__PURE__ */
|
|
2552
|
-
i.
|
|
2551
|
+
/* @__PURE__ */ o("p", { children: qt }),
|
|
2552
|
+
i.prompts && i.prompts.map((u) => /* @__PURE__ */ y(
|
|
2553
2553
|
O,
|
|
2554
2554
|
{
|
|
2555
|
-
header: `
|
|
2555
|
+
header: `Prompt ${u.slot + 1}`,
|
|
2556
2556
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2557
2557
|
children: [
|
|
2558
2558
|
/* @__PURE__ */ y(Y, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
|
|
2559
|
+
/* @__PURE__ */ o(M, { span: 12, children: /* @__PURE__ */ o(
|
|
2560
|
+
Ee,
|
|
2561
2561
|
{
|
|
2562
2562
|
label: "Label",
|
|
2563
|
-
name: `
|
|
2563
|
+
name: `prompt${u.slot}-label`,
|
|
2564
2564
|
value: u.label,
|
|
2565
|
-
onChange: (
|
|
2565
|
+
onChange: (g) => {
|
|
2566
2566
|
l({
|
|
2567
2567
|
slot: u.slot,
|
|
2568
2568
|
checked: u.enabled,
|
|
2569
|
-
label:
|
|
2569
|
+
label: g.target.value,
|
|
2570
2570
|
content: u.content
|
|
2571
2571
|
});
|
|
2572
2572
|
}
|
|
2573
2573
|
}
|
|
2574
2574
|
) }),
|
|
2575
|
-
/* @__PURE__ */
|
|
2576
|
-
|
|
2575
|
+
/* @__PURE__ */ o(M, { span: 12, children: /* @__PURE__ */ o(
|
|
2576
|
+
Ee,
|
|
2577
2577
|
{
|
|
2578
2578
|
label: "Content",
|
|
2579
|
-
name: `
|
|
2579
|
+
name: `prompt${u.slot}-content`,
|
|
2580
2580
|
value: u.content,
|
|
2581
|
-
onChange: (
|
|
2581
|
+
onChange: (g) => {
|
|
2582
2582
|
l({
|
|
2583
2583
|
slot: u.slot,
|
|
2584
2584
|
checked: u.enabled,
|
|
2585
2585
|
label: u.label,
|
|
2586
|
-
content:
|
|
2586
|
+
content: g.target.value
|
|
2587
2587
|
});
|
|
2588
2588
|
}
|
|
2589
2589
|
}
|
|
2590
2590
|
) })
|
|
2591
2591
|
] }),
|
|
2592
|
-
/* @__PURE__ */
|
|
2592
|
+
/* @__PURE__ */ o(
|
|
2593
2593
|
ie,
|
|
2594
2594
|
{
|
|
2595
2595
|
className: "mt-2",
|
|
2596
2596
|
noBorder: !0,
|
|
2597
2597
|
label: "Enabled",
|
|
2598
2598
|
name: u.slot.toString(),
|
|
2599
|
-
onChange: (
|
|
2599
|
+
onChange: (g) => {
|
|
2600
2600
|
l({
|
|
2601
2601
|
slot: u.slot,
|
|
2602
|
-
checked:
|
|
2602
|
+
checked: g,
|
|
2603
2603
|
label: u.label,
|
|
2604
2604
|
content: u.content
|
|
2605
2605
|
});
|
|
@@ -2609,16 +2609,16 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2609
2609
|
)
|
|
2610
2610
|
]
|
|
2611
2611
|
},
|
|
2612
|
-
`
|
|
2612
|
+
`prompt-slot-${u.slot}`
|
|
2613
2613
|
))
|
|
2614
2614
|
]
|
|
2615
2615
|
}
|
|
2616
2616
|
);
|
|
2617
|
-
},
|
|
2617
|
+
}, na = ({
|
|
2618
2618
|
open: e,
|
|
2619
2619
|
onOpenChange: t
|
|
2620
2620
|
}) => {
|
|
2621
|
-
const { dispatch: r } = F(ve), { getAccessToken:
|
|
2621
|
+
const { dispatch: r } = F(ve), { getAccessToken: a, user: n } = Q(), [s, i] = R(!1), [c, l] = R({
|
|
2622
2622
|
loaded: !1,
|
|
2623
2623
|
instructions: "",
|
|
2624
2624
|
loadingLocation: !1,
|
|
@@ -2627,7 +2627,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2627
2627
|
}), [d, u] = le({
|
|
2628
2628
|
key: ce + tt,
|
|
2629
2629
|
initialValue: !1
|
|
2630
|
-
}), [
|
|
2630
|
+
}), [g, p] = le({
|
|
2631
2631
|
key: ce + Xt,
|
|
2632
2632
|
initialValue: !1
|
|
2633
2633
|
}), v = (m) => {
|
|
@@ -2636,7 +2636,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2636
2636
|
m.preventDefault();
|
|
2637
2637
|
try {
|
|
2638
2638
|
await $({
|
|
2639
|
-
accessToken: await
|
|
2639
|
+
accessToken: await a(),
|
|
2640
2640
|
type: D.SET_USER_PREFERENCES,
|
|
2641
2641
|
params: {
|
|
2642
2642
|
user: n == null ? void 0 : n.username,
|
|
@@ -2659,25 +2659,25 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2659
2659
|
loadingLocation: !0
|
|
2660
2660
|
}));
|
|
2661
2661
|
try {
|
|
2662
|
-
const m = Date.now(), C = await tr(),
|
|
2663
|
-
accessToken: await
|
|
2662
|
+
const m = Date.now(), C = await tr(), T = await $({
|
|
2663
|
+
accessToken: await a(),
|
|
2664
2664
|
type: D.GET_LOCATION,
|
|
2665
2665
|
params: {
|
|
2666
2666
|
latitude: C.latitude,
|
|
2667
2667
|
longitude: C.longitude
|
|
2668
2668
|
}
|
|
2669
2669
|
}), _ = Date.now() - m;
|
|
2670
|
-
if (_ < 2e3 && await new Promise((
|
|
2671
|
-
const { city:
|
|
2672
|
-
l((
|
|
2673
|
-
...
|
|
2670
|
+
if (_ < 2e3 && await new Promise((I) => setTimeout(I, 2e3 - _)), T.status === 200) {
|
|
2671
|
+
const { city: I, state: V, country: U, displayName: H } = T.data, re = I && V && U ? `${I}, ${V}, ${U}` : H;
|
|
2672
|
+
l((oe) => ({
|
|
2673
|
+
...oe,
|
|
2674
2674
|
loaded: !0,
|
|
2675
2675
|
location: re,
|
|
2676
2676
|
loadingLocation: !1
|
|
2677
2677
|
}));
|
|
2678
2678
|
} else
|
|
2679
|
-
l((
|
|
2680
|
-
...
|
|
2679
|
+
l((I) => ({
|
|
2680
|
+
...I,
|
|
2681
2681
|
loaded: !0,
|
|
2682
2682
|
location: "",
|
|
2683
2683
|
loadingLocation: !1
|
|
@@ -2711,7 +2711,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2711
2711
|
(async () => {
|
|
2712
2712
|
try {
|
|
2713
2713
|
const m = await $({
|
|
2714
|
-
accessToken: await
|
|
2714
|
+
accessToken: await a(),
|
|
2715
2715
|
type: D.GET_USER_PREFERENCES,
|
|
2716
2716
|
params: {
|
|
2717
2717
|
user: n.username
|
|
@@ -2727,7 +2727,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2727
2727
|
} catch {
|
|
2728
2728
|
}
|
|
2729
2729
|
})();
|
|
2730
|
-
}, [n, e]), /* @__PURE__ */
|
|
2730
|
+
}, [n, e]), /* @__PURE__ */ o(
|
|
2731
2731
|
te,
|
|
2732
2732
|
{
|
|
2733
2733
|
open: e,
|
|
@@ -2740,7 +2740,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2740
2740
|
alignHorizontal: "flex-end",
|
|
2741
2741
|
className: "pb-8 sm:pb-0",
|
|
2742
2742
|
children: [
|
|
2743
|
-
/* @__PURE__ */
|
|
2743
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2744
2744
|
G,
|
|
2745
2745
|
{
|
|
2746
2746
|
mode: "dark",
|
|
@@ -2752,7 +2752,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2752
2752
|
children: "Cancel"
|
|
2753
2753
|
}
|
|
2754
2754
|
) }),
|
|
2755
|
-
/* @__PURE__ */
|
|
2755
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2756
2756
|
G,
|
|
2757
2757
|
{
|
|
2758
2758
|
mode: "dark",
|
|
@@ -2768,15 +2768,15 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2768
2768
|
}
|
|
2769
2769
|
),
|
|
2770
2770
|
children: /* @__PURE__ */ y(z, { children: [
|
|
2771
|
-
s && /* @__PURE__ */
|
|
2771
|
+
s && /* @__PURE__ */ o(aa, { open: s, onOpenChange: i }),
|
|
2772
2772
|
/* @__PURE__ */ y(
|
|
2773
2773
|
O,
|
|
2774
2774
|
{
|
|
2775
2775
|
header: S.SETTINGS_ENGINE.TITLE,
|
|
2776
2776
|
className: "prose-dark dark:prose-lighter",
|
|
2777
2777
|
children: [
|
|
2778
|
-
/* @__PURE__ */
|
|
2779
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: "Select the AI engine that will be used to generate responses." }),
|
|
2779
|
+
/* @__PURE__ */ o(
|
|
2780
2780
|
ie,
|
|
2781
2781
|
{
|
|
2782
2782
|
noBorder: !0,
|
|
@@ -2786,7 +2786,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2786
2786
|
checked: c.engine === ne
|
|
2787
2787
|
}
|
|
2788
2788
|
),
|
|
2789
|
-
/* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ o(
|
|
2790
2790
|
ie,
|
|
2791
2791
|
{
|
|
2792
2792
|
className: "mt-2",
|
|
@@ -2797,8 +2797,8 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2797
2797
|
checked: c.engine === X
|
|
2798
2798
|
}
|
|
2799
2799
|
),
|
|
2800
|
-
/* @__PURE__ */
|
|
2801
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: "This option introduces a new menu at the top of the screen, enabling you to quickly switch between engines." }),
|
|
2801
|
+
/* @__PURE__ */ o(
|
|
2802
2802
|
ie,
|
|
2803
2803
|
{
|
|
2804
2804
|
className: "mt-2",
|
|
@@ -2809,8 +2809,8 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2809
2809
|
checked: d
|
|
2810
2810
|
}
|
|
2811
2811
|
),
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more." }),
|
|
2813
|
+
/* @__PURE__ */ o(
|
|
2814
2814
|
ie,
|
|
2815
2815
|
{
|
|
2816
2816
|
className: "mt-2",
|
|
@@ -2818,18 +2818,18 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2818
2818
|
label: "Show Message Statistics",
|
|
2819
2819
|
name: "show-message-statistics",
|
|
2820
2820
|
onChange: v,
|
|
2821
|
-
checked:
|
|
2821
|
+
checked: g
|
|
2822
2822
|
}
|
|
2823
2823
|
),
|
|
2824
|
-
/* @__PURE__ */
|
|
2825
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ o("h3", { className: "border-b-2 border-slate-400", children: "Prompts" }),
|
|
2825
|
+
/* @__PURE__ */ o(
|
|
2826
2826
|
J,
|
|
2827
2827
|
{
|
|
2828
2828
|
className: "mt-2",
|
|
2829
2829
|
size: "small",
|
|
2830
2830
|
onClick: x,
|
|
2831
|
-
labelLeft: "Edit Custom
|
|
2832
|
-
children: /* @__PURE__ */
|
|
2831
|
+
labelLeft: "Edit Custom Prompts",
|
|
2832
|
+
children: /* @__PURE__ */ o(xr, { size: "size-3", monotone: !0 })
|
|
2833
2833
|
}
|
|
2834
2834
|
)
|
|
2835
2835
|
]
|
|
@@ -2841,12 +2841,12 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2841
2841
|
header: "Custom Instructions",
|
|
2842
2842
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2843
2843
|
children: [
|
|
2844
|
-
/* @__PURE__ */ y("p", { children: [
|
|
2844
|
+
/* @__PURE__ */ y("p", { className: "text-sm", children: [
|
|
2845
2845
|
"What would you like ",
|
|
2846
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ o("em", { children: er }),
|
|
2847
2847
|
" to know about you to provide better responses?"
|
|
2848
2848
|
] }),
|
|
2849
|
-
/* @__PURE__ */
|
|
2849
|
+
/* @__PURE__ */ o(
|
|
2850
2850
|
je,
|
|
2851
2851
|
{
|
|
2852
2852
|
mode: "alt-system",
|
|
@@ -2875,8 +2875,8 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2875
2875
|
header: "Location",
|
|
2876
2876
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2877
2877
|
children: [
|
|
2878
|
-
/* @__PURE__ */
|
|
2879
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ o("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
|
2879
|
+
/* @__PURE__ */ o(
|
|
2880
2880
|
je,
|
|
2881
2881
|
{
|
|
2882
2882
|
mode: "alt-system",
|
|
@@ -2893,7 +2893,7 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2893
2893
|
helperText: "Enter your location or press auto-detect."
|
|
2894
2894
|
}
|
|
2895
2895
|
),
|
|
2896
|
-
/* @__PURE__ */
|
|
2896
|
+
/* @__PURE__ */ o(
|
|
2897
2897
|
G,
|
|
2898
2898
|
{
|
|
2899
2899
|
className: "mt-2",
|
|
@@ -2910,25 +2910,25 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2910
2910
|
] })
|
|
2911
2911
|
}
|
|
2912
2912
|
);
|
|
2913
|
-
},
|
|
2914
|
-
const { state: e, dispatch: t, serverStats: r } = F(ve), [
|
|
2913
|
+
}, ha = () => {
|
|
2914
|
+
const { state: e, dispatch: t, serverStats: r } = F(ve), [a, n] = R((e == null ? void 0 : e.engine) || me), [s, i] = R(!1), [c, l] = R(!1), [d, u] = R(!1), [g, p] = R(!1), [v, h] = R(!1), [k] = le({
|
|
2915
2915
|
key: ce + tt,
|
|
2916
2916
|
initialValue: !1
|
|
2917
2917
|
}), { logout: b, getAccessToken: N, user: x } = Q(), m = () => {
|
|
2918
2918
|
i(!s);
|
|
2919
2919
|
}, C = () => {
|
|
2920
2920
|
l(!c);
|
|
2921
|
-
},
|
|
2921
|
+
}, T = () => {
|
|
2922
2922
|
u(!d);
|
|
2923
2923
|
}, L = () => {
|
|
2924
|
-
p(!
|
|
2924
|
+
p(!g);
|
|
2925
2925
|
}, _ = () => {
|
|
2926
2926
|
h(!v);
|
|
2927
2927
|
};
|
|
2928
2928
|
return q(() => {
|
|
2929
|
-
e && e.engine && e.engine !==
|
|
2930
|
-
}, [e,
|
|
2931
|
-
/* @__PURE__ */
|
|
2929
|
+
e && e.engine && e.engine !== a && n(e.engine);
|
|
2930
|
+
}, [e, a]), /* @__PURE__ */ y(z, { children: [
|
|
2931
|
+
/* @__PURE__ */ o(
|
|
2932
2932
|
Ot,
|
|
2933
2933
|
{
|
|
2934
2934
|
showConfirmation: v,
|
|
@@ -2939,44 +2939,44 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2939
2939
|
cancelAction: "Cancel",
|
|
2940
2940
|
title: He
|
|
2941
2941
|
},
|
|
2942
|
-
children: /* @__PURE__ */
|
|
2942
|
+
children: /* @__PURE__ */ o("p", { children: "Are you sure you want to log out?" })
|
|
2943
2943
|
}
|
|
2944
2944
|
),
|
|
2945
|
-
/* @__PURE__ */
|
|
2946
|
-
/* @__PURE__ */
|
|
2947
|
-
/* @__PURE__ */
|
|
2948
|
-
/* @__PURE__ */
|
|
2949
|
-
/* @__PURE__ */
|
|
2950
|
-
/* @__PURE__ */
|
|
2951
|
-
/* @__PURE__ */
|
|
2952
|
-
k && r && /* @__PURE__ */
|
|
2945
|
+
/* @__PURE__ */ o(Yo, { open: s, onOpenChange: i }),
|
|
2946
|
+
/* @__PURE__ */ o(na, { open: c, onOpenChange: l }),
|
|
2947
|
+
/* @__PURE__ */ o(Wo, { open: d, onOpenChange: u }),
|
|
2948
|
+
/* @__PURE__ */ o(Uo, { open: g, onOpenChange: p }),
|
|
2949
|
+
/* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ y(Y, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
|
2950
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(cr, { mode: "dark", radius: "large" }) }),
|
|
2951
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ y(Y, { children: [
|
|
2952
|
+
k && r && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2953
2953
|
_e,
|
|
2954
2954
|
{
|
|
2955
2955
|
mode: "dark",
|
|
2956
2956
|
focusMode: "light",
|
|
2957
|
-
trigger: /* @__PURE__ */
|
|
2957
|
+
trigger: /* @__PURE__ */ o(J, { className: "mr-2", children: e && e.engine === X ? /* @__PURE__ */ o(ft, {}) : /* @__PURE__ */ o(gt, {}) }),
|
|
2958
2958
|
defaultPlacement: "bottom-start",
|
|
2959
|
-
children: /* @__PURE__ */
|
|
2960
|
-
|
|
2959
|
+
children: /* @__PURE__ */ o(j, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ o(
|
|
2960
|
+
ko,
|
|
2961
2961
|
{
|
|
2962
2962
|
size: "small",
|
|
2963
2963
|
mode: "dark",
|
|
2964
2964
|
focusMode: "light",
|
|
2965
|
-
value:
|
|
2966
|
-
onValueChange: async (
|
|
2967
|
-
if (
|
|
2965
|
+
value: a,
|
|
2966
|
+
onValueChange: async (I) => {
|
|
2967
|
+
if (I)
|
|
2968
2968
|
try {
|
|
2969
2969
|
await $({
|
|
2970
2970
|
accessToken: await N(),
|
|
2971
2971
|
type: D.SET_USER_PREFERENCES,
|
|
2972
2972
|
params: {
|
|
2973
2973
|
user: x == null ? void 0 : x.username,
|
|
2974
|
-
engine:
|
|
2974
|
+
engine: I
|
|
2975
2975
|
}
|
|
2976
2976
|
}), t({
|
|
2977
2977
|
type: rt,
|
|
2978
2978
|
payload: {
|
|
2979
|
-
engine:
|
|
2979
|
+
engine: I
|
|
2980
2980
|
}
|
|
2981
2981
|
}), t({
|
|
2982
2982
|
type: et
|
|
@@ -2984,59 +2984,59 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
2984
2984
|
} catch {
|
|
2985
2985
|
}
|
|
2986
2986
|
},
|
|
2987
|
-
children: r && r.engines.map((
|
|
2987
|
+
children: r && r.engines.map((I) => /* @__PURE__ */ o(wo, { value: I }, I))
|
|
2988
2988
|
}
|
|
2989
2989
|
) })
|
|
2990
2990
|
}
|
|
2991
2991
|
) }),
|
|
2992
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ y(
|
|
2993
2993
|
_e,
|
|
2994
2994
|
{
|
|
2995
2995
|
mode: "dark",
|
|
2996
2996
|
focusMode: "light",
|
|
2997
|
-
trigger: /* @__PURE__ */
|
|
2997
|
+
trigger: /* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(Sr, {}) }),
|
|
2998
2998
|
defaultPlacement: "bottom-end",
|
|
2999
2999
|
children: [
|
|
3000
|
-
/* @__PURE__ */
|
|
3000
|
+
/* @__PURE__ */ o(
|
|
3001
3001
|
j,
|
|
3002
3002
|
{
|
|
3003
3003
|
label: "Profile",
|
|
3004
3004
|
onClick: m,
|
|
3005
|
-
icon: /* @__PURE__ */
|
|
3005
|
+
icon: /* @__PURE__ */ o(Tr, {})
|
|
3006
3006
|
}
|
|
3007
3007
|
),
|
|
3008
|
-
/* @__PURE__ */
|
|
3008
|
+
/* @__PURE__ */ o(
|
|
3009
3009
|
j,
|
|
3010
3010
|
{
|
|
3011
3011
|
label: "Settings",
|
|
3012
3012
|
onClick: C,
|
|
3013
|
-
icon: /* @__PURE__ */
|
|
3013
|
+
icon: /* @__PURE__ */ o(Rr, {})
|
|
3014
3014
|
}
|
|
3015
3015
|
),
|
|
3016
|
-
/* @__PURE__ */
|
|
3016
|
+
/* @__PURE__ */ o(
|
|
3017
3017
|
j,
|
|
3018
3018
|
{
|
|
3019
3019
|
label: "History",
|
|
3020
|
-
onClick:
|
|
3021
|
-
icon: /* @__PURE__ */
|
|
3020
|
+
onClick: T,
|
|
3021
|
+
icon: /* @__PURE__ */ o(Ir, {})
|
|
3022
3022
|
}
|
|
3023
3023
|
),
|
|
3024
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ o(
|
|
3025
3025
|
j,
|
|
3026
3026
|
{
|
|
3027
3027
|
label: "About",
|
|
3028
3028
|
onClick: L,
|
|
3029
|
-
icon: /* @__PURE__ */
|
|
3029
|
+
icon: /* @__PURE__ */ o(Er, {})
|
|
3030
3030
|
}
|
|
3031
3031
|
),
|
|
3032
3032
|
e && e.id && !e.isComponent && /* @__PURE__ */ y(z, { children: [
|
|
3033
|
-
/* @__PURE__ */
|
|
3034
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ o(Mr, {}),
|
|
3034
|
+
/* @__PURE__ */ o(
|
|
3035
3035
|
j,
|
|
3036
3036
|
{
|
|
3037
3037
|
label: "Log out",
|
|
3038
3038
|
onClick: _,
|
|
3039
|
-
icon: /* @__PURE__ */
|
|
3039
|
+
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(Nr, { monotone: !0 }) })
|
|
3040
3040
|
}
|
|
3041
3041
|
)
|
|
3042
3042
|
] })
|
|
@@ -3048,5 +3048,5 @@ const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa
|
|
|
3048
3048
|
] });
|
|
3049
3049
|
};
|
|
3050
3050
|
export {
|
|
3051
|
-
|
|
3051
|
+
ha as default
|
|
3052
3052
|
};
|