@versini/sassysaint 5.3.5 → 5.3.7
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.DIp3e6vV.js → App.C-au1CV7.js} +21 -21
- package/dist/chunks/{LazyHeader.DsjaU53d.js → LazyHeader.CpSRHduY.js} +535 -548
- package/dist/chunks/{LazyMarkdownWithExtra.DITzdYV4.js → LazyMarkdownWithExtra.BAEZPXtS.js} +11 -11
- package/dist/chunks/{LazyMessageAssistant.C_Ht2zFE.js → LazyMessageAssistant.De9R5w_u.js} +7 -7
- package/dist/chunks/{index.D5p6GpnU.C8lskEhG.js → index.AUArUGH7.FZU7Bha5.js} +10 -10
- package/dist/chunks/{index.B3_1eKgu.js → index.C8-dCwmB.js} +206 -199
- package/dist/chunks/{index.CckjgePJ.js → index.Htlj5BwD.js} +187 -186
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as r, jsxs as v, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { g as O,
|
|
3
|
-
import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V,
|
|
2
|
+
import { g as O, E as P, CARDS as w, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Lt, DEFAULT_AI_ENGINE as ie, numberFormatter as Ot, durationFormatter as Qe, NA as Bt, ROLE_ASSISTANT as Pt, extractAverage as zt, GPT4_MAX_TOKENS as Vt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as D, LOCAL_STORAGE_SORT as $t, O as Y, ACTION_RESET as Dt, ACTION_RESTORE as Ht, truncate as Ft, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Gt, me as Ut, ACTION_SEARCH as jt, HISTORY_TITLE as Kt, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as Wt, LOCAL_STORAGE_TAG_SUMMARIZE as $e, LOCAL_STORAGE_TAG_PROOFREAD as De, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as we, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Yt, G as Zt, v as Fe, PROFILE_TITLE as qt, LOG_OUT as Ge } from "./index.Htlj5BwD.js";
|
|
3
|
+
import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V, ge as Xt, he as Jt, ue as Ee, de as B, pe as Qt, me as eo, be as to, we as Ue } from "./index.C8-dCwmB.js";
|
|
4
4
|
import * as f from "react";
|
|
5
|
-
import x, { useId as
|
|
5
|
+
import x, { useId as oo, forwardRef as at, useState as S, useRef as ce, useContext as $, useEffect as U, Suspense as ro, lazy as ao, useMemo as no } from "react";
|
|
6
6
|
import C from "clsx";
|
|
7
|
-
import { useFloatingTree as
|
|
8
|
-
const
|
|
7
|
+
import { useFloatingTree as nt, useFloatingNodeId as so, useListItem as st, useFloating as io, offset as lo, flip as co, shift as uo, autoUpdate as mo, useClick as ho, useRole as go, useDismiss as po, useListNavigation as fo, useTypeahead as bo, useInteractions as vo, useMergeRefs as it, FloatingNode as yo, FloatingList as ko, FloatingPortal as Co, FloatingFocusManager as To, FloatingTree as wo } from "@floating-ui/react";
|
|
8
|
+
const lt = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
spacing: o,
|
|
12
|
-
title:
|
|
13
|
-
monotone:
|
|
12
|
+
title: a,
|
|
13
|
+
monotone: n,
|
|
14
14
|
...s
|
|
15
15
|
}) => /* @__PURE__ */ r(
|
|
16
16
|
O,
|
|
@@ -20,16 +20,16 @@ const wo = ({
|
|
|
20
20
|
viewBox: t,
|
|
21
21
|
className: e,
|
|
22
22
|
spacing: o,
|
|
23
|
-
title:
|
|
23
|
+
title: a || "Anthropic",
|
|
24
24
|
...s,
|
|
25
25
|
children: /* @__PURE__ */ r("path", { d: "m147.487 0l70.081 175.78H256L185.919 0zM66.183 106.221l23.98-61.774l23.98 61.774zM70.07 0L0 175.78h39.18l14.33-36.914h73.308l14.328 36.914h39.179L110.255 0z" })
|
|
26
26
|
}
|
|
27
|
-
),
|
|
27
|
+
), No = ({
|
|
28
28
|
className: e,
|
|
29
29
|
viewBox: t,
|
|
30
30
|
spacing: o,
|
|
31
|
-
title:
|
|
32
|
-
monotone:
|
|
31
|
+
title: a,
|
|
32
|
+
monotone: n,
|
|
33
33
|
...s
|
|
34
34
|
}) => /* @__PURE__ */ v(
|
|
35
35
|
O,
|
|
@@ -39,25 +39,25 @@ const wo = ({
|
|
|
39
39
|
viewBox: t,
|
|
40
40
|
className: e,
|
|
41
41
|
spacing: o,
|
|
42
|
-
title:
|
|
42
|
+
title: a || "Back",
|
|
43
43
|
...s,
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ r(
|
|
46
46
|
"path",
|
|
47
47
|
{
|
|
48
|
-
opacity:
|
|
48
|
+
opacity: n ? "1" : "0.4",
|
|
49
49
|
d: "M288.4 93.4c2.9-17.4 19.4-29.2 36.9-26.3C431.3 84.9 512 177 512 288c0 123.7-100.3 224-224 224C177 512 84.9 431.3 67.1 325.3c-2.9-17.4 8.8-33.9 26.3-36.9s33.9 8.8 36.9 26.3C142.9 390.4 208.8 448 288 448c88.4 0 160-71.6 160-160c0-79.2-57.6-145.1-133.3-157.8c-17.4-2.9-29.2-19.4-26.3-36.9z"
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
52
|
/* @__PURE__ */ r("path", { d: "M32 0H192c17.7 0 32 14.3 32 32s-14.3 32-32 32H109.3L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32s-32-14.3-32-32V32C0 14.3 14.3 0 32 0z" })
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
|
-
),
|
|
55
|
+
), Eo = ({
|
|
56
56
|
className: e,
|
|
57
57
|
viewBox: t,
|
|
58
58
|
spacing: o,
|
|
59
|
-
title:
|
|
60
|
-
monotone:
|
|
59
|
+
title: a,
|
|
60
|
+
monotone: n,
|
|
61
61
|
...s
|
|
62
62
|
}) => /* @__PURE__ */ v(
|
|
63
63
|
O,
|
|
@@ -67,25 +67,25 @@ const wo = ({
|
|
|
67
67
|
viewBox: t,
|
|
68
68
|
className: e,
|
|
69
69
|
spacing: o,
|
|
70
|
-
title:
|
|
70
|
+
title: a || "Chart",
|
|
71
71
|
...s,
|
|
72
72
|
children: [
|
|
73
73
|
/* @__PURE__ */ r(
|
|
74
74
|
"path",
|
|
75
75
|
{
|
|
76
|
-
opacity:
|
|
76
|
+
opacity: n ? "1" : "0.4",
|
|
77
77
|
d: "M160 80c0-26.5 21.5-48 48-48h32c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V80z"
|
|
78
78
|
}
|
|
79
79
|
),
|
|
80
80
|
/* @__PURE__ */ r("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
|
-
),
|
|
83
|
+
), xo = ({
|
|
84
84
|
className: e,
|
|
85
85
|
viewBox: t,
|
|
86
86
|
spacing: o,
|
|
87
|
-
title:
|
|
88
|
-
monotone:
|
|
87
|
+
title: a,
|
|
88
|
+
monotone: n,
|
|
89
89
|
...s
|
|
90
90
|
}) => /* @__PURE__ */ v(
|
|
91
91
|
O,
|
|
@@ -95,13 +95,13 @@ const wo = ({
|
|
|
95
95
|
viewBox: t,
|
|
96
96
|
className: e,
|
|
97
97
|
spacing: o,
|
|
98
|
-
title:
|
|
98
|
+
title: a || "Delete",
|
|
99
99
|
...s,
|
|
100
100
|
children: [
|
|
101
101
|
/* @__PURE__ */ r(
|
|
102
102
|
"path",
|
|
103
103
|
{
|
|
104
|
-
opacity:
|
|
104
|
+
opacity: n ? "1" : "0.4",
|
|
105
105
|
d: "M416 96H32V448c0 35.3 28.7 64 64 64H352c35.3 0 64-28.7 64-64V96zM144 176V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16zm96 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16zm96 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16z"
|
|
106
106
|
}
|
|
107
107
|
),
|
|
@@ -112,8 +112,8 @@ const wo = ({
|
|
|
112
112
|
className: e,
|
|
113
113
|
viewBox: t,
|
|
114
114
|
spacing: o,
|
|
115
|
-
title:
|
|
116
|
-
monotone:
|
|
115
|
+
title: a,
|
|
116
|
+
monotone: n,
|
|
117
117
|
...s
|
|
118
118
|
}) => /* @__PURE__ */ v(
|
|
119
119
|
O,
|
|
@@ -123,25 +123,25 @@ const wo = ({
|
|
|
123
123
|
viewBox: t,
|
|
124
124
|
className: e,
|
|
125
125
|
spacing: o,
|
|
126
|
-
title:
|
|
126
|
+
title: a || "Edit",
|
|
127
127
|
...s,
|
|
128
128
|
children: [
|
|
129
129
|
/* @__PURE__ */ r(
|
|
130
130
|
"path",
|
|
131
131
|
{
|
|
132
|
-
opacity:
|
|
132
|
+
opacity: n ? "1" : "0.4",
|
|
133
133
|
d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
|
|
134
134
|
}
|
|
135
135
|
),
|
|
136
136
|
/* @__PURE__ */ r("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
|
-
),
|
|
139
|
+
), Io = ({
|
|
140
140
|
className: e,
|
|
141
141
|
viewBox: t,
|
|
142
142
|
spacing: o,
|
|
143
|
-
title:
|
|
144
|
-
monotone:
|
|
143
|
+
title: a,
|
|
144
|
+
monotone: n,
|
|
145
145
|
...s
|
|
146
146
|
}) => /* @__PURE__ */ v(
|
|
147
147
|
O,
|
|
@@ -151,25 +151,25 @@ const wo = ({
|
|
|
151
151
|
viewBox: t,
|
|
152
152
|
className: e,
|
|
153
153
|
spacing: o,
|
|
154
|
-
title:
|
|
154
|
+
title: a || "History",
|
|
155
155
|
...s,
|
|
156
156
|
children: [
|
|
157
157
|
/* @__PURE__ */ r(
|
|
158
158
|
"path",
|
|
159
159
|
{
|
|
160
|
-
opacity:
|
|
160
|
+
opacity: n ? "1" : "0.4",
|
|
161
161
|
d: "M120.2 120.2C155 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.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8z"
|
|
162
162
|
}
|
|
163
163
|
),
|
|
164
164
|
/* @__PURE__ */ r("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
|
-
),
|
|
167
|
+
), So = ({
|
|
168
168
|
className: e,
|
|
169
169
|
viewBox: t,
|
|
170
170
|
spacing: o,
|
|
171
|
-
title:
|
|
172
|
-
monotone:
|
|
171
|
+
title: a,
|
|
172
|
+
monotone: n,
|
|
173
173
|
...s
|
|
174
174
|
}) => /* @__PURE__ */ v(
|
|
175
175
|
O,
|
|
@@ -179,7 +179,7 @@ const wo = ({
|
|
|
179
179
|
viewBox: t,
|
|
180
180
|
className: e,
|
|
181
181
|
spacing: o,
|
|
182
|
-
title:
|
|
182
|
+
title: a || "Info",
|
|
183
183
|
...s,
|
|
184
184
|
children: [
|
|
185
185
|
/* @__PURE__ */ r(
|
|
@@ -192,12 +192,12 @@ const wo = ({
|
|
|
192
192
|
/* @__PURE__ */ r("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM192 248c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h24V272H216c-13.3 0-24-10.7-24-24z" })
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
|
-
),
|
|
195
|
+
), ct = ({
|
|
196
196
|
className: e,
|
|
197
197
|
viewBox: t,
|
|
198
198
|
spacing: o,
|
|
199
|
-
title:
|
|
200
|
-
monotone:
|
|
199
|
+
title: a,
|
|
200
|
+
monotone: n,
|
|
201
201
|
...s
|
|
202
202
|
}) => /* @__PURE__ */ r(
|
|
203
203
|
O,
|
|
@@ -207,7 +207,7 @@ const wo = ({
|
|
|
207
207
|
viewBox: t,
|
|
208
208
|
className: e,
|
|
209
209
|
spacing: o,
|
|
210
|
-
title:
|
|
210
|
+
title: a || "OpenAI",
|
|
211
211
|
...s,
|
|
212
212
|
children: /* @__PURE__ */ r(
|
|
213
213
|
"path",
|
|
@@ -221,8 +221,8 @@ const wo = ({
|
|
|
221
221
|
className: e,
|
|
222
222
|
viewBox: t,
|
|
223
223
|
spacing: o,
|
|
224
|
-
title:
|
|
225
|
-
monotone:
|
|
224
|
+
title: a,
|
|
225
|
+
monotone: n,
|
|
226
226
|
...s
|
|
227
227
|
}) => /* @__PURE__ */ v(
|
|
228
228
|
O,
|
|
@@ -232,7 +232,7 @@ const wo = ({
|
|
|
232
232
|
viewBox: t,
|
|
233
233
|
className: e,
|
|
234
234
|
spacing: o,
|
|
235
|
-
title:
|
|
235
|
+
title: a || "Profile",
|
|
236
236
|
...s,
|
|
237
237
|
children: [
|
|
238
238
|
/* @__PURE__ */ r(
|
|
@@ -249,8 +249,8 @@ const wo = ({
|
|
|
249
249
|
className: e,
|
|
250
250
|
viewBox: t,
|
|
251
251
|
spacing: o,
|
|
252
|
-
title:
|
|
253
|
-
monotone:
|
|
252
|
+
title: a,
|
|
253
|
+
monotone: n,
|
|
254
254
|
...s
|
|
255
255
|
}) => /* @__PURE__ */ v(
|
|
256
256
|
O,
|
|
@@ -260,13 +260,13 @@ const wo = ({
|
|
|
260
260
|
viewBox: t,
|
|
261
261
|
className: e,
|
|
262
262
|
spacing: o,
|
|
263
|
-
title:
|
|
263
|
+
title: a || "Restore",
|
|
264
264
|
...s,
|
|
265
265
|
children: [
|
|
266
266
|
/* @__PURE__ */ r(
|
|
267
267
|
"path",
|
|
268
268
|
{
|
|
269
|
-
opacity:
|
|
269
|
+
opacity: n ? "1" : "0.4",
|
|
270
270
|
d: "M208 64H432c8.8 0 16 7.2 16 16V304c0 8.8-7.2 16-16 16H416v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80V96h64V80c0-8.8 7.2-16 16-16z"
|
|
271
271
|
}
|
|
272
272
|
),
|
|
@@ -277,8 +277,8 @@ const wo = ({
|
|
|
277
277
|
className: e,
|
|
278
278
|
viewBox: t,
|
|
279
279
|
spacing: o,
|
|
280
|
-
title:
|
|
281
|
-
monotone:
|
|
280
|
+
title: a,
|
|
281
|
+
monotone: n,
|
|
282
282
|
...s
|
|
283
283
|
}) => /* @__PURE__ */ r(
|
|
284
284
|
O,
|
|
@@ -288,13 +288,13 @@ const wo = ({
|
|
|
288
288
|
viewBox: t,
|
|
289
289
|
className: e,
|
|
290
290
|
spacing: o,
|
|
291
|
-
title:
|
|
291
|
+
title: a || "Settings",
|
|
292
292
|
...s,
|
|
293
293
|
children: /* @__PURE__ */ r("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" })
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
function de(e) {
|
|
297
|
-
return
|
|
297
|
+
return oo();
|
|
298
298
|
}
|
|
299
299
|
const Ie = f.createContext({
|
|
300
300
|
getItemProps: () => ({}),
|
|
@@ -316,53 +316,53 @@ const Ie = f.createContext({
|
|
|
316
316
|
return t.displayName || t.name || "Component";
|
|
317
317
|
}
|
|
318
318
|
return "Element";
|
|
319
|
-
},
|
|
319
|
+
}, dt = at(
|
|
320
320
|
({
|
|
321
321
|
trigger: e,
|
|
322
322
|
children: t,
|
|
323
323
|
label: o = "Open menu",
|
|
324
|
-
defaultPlacement:
|
|
325
|
-
onOpenChange:
|
|
324
|
+
defaultPlacement: a = "bottom-start",
|
|
325
|
+
onOpenChange: n,
|
|
326
326
|
spacing: s,
|
|
327
327
|
mode: i = "system",
|
|
328
328
|
focusMode: l = "system",
|
|
329
329
|
...h
|
|
330
330
|
}, u) => {
|
|
331
|
-
const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null),
|
|
331
|
+
const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null), T = ce([]), p = ce([]), k = $(Ie), N = nt(), I = so(), M = st(), { floatingStyles: _, refs: z, context: E } = io({
|
|
332
332
|
nodeId: I,
|
|
333
333
|
open: m,
|
|
334
|
-
onOpenChange: (
|
|
335
|
-
g(
|
|
334
|
+
onOpenChange: (ne) => {
|
|
335
|
+
g(ne), n == null || n(ne);
|
|
336
336
|
},
|
|
337
|
-
placement:
|
|
337
|
+
placement: a,
|
|
338
338
|
strategy: "fixed",
|
|
339
|
-
middleware: [
|
|
340
|
-
whileElementsMounted:
|
|
341
|
-
}), re =
|
|
339
|
+
middleware: [lo({ mainAxis: 10 }), co(), uo()],
|
|
340
|
+
whileElementsMounted: mo
|
|
341
|
+
}), re = ho(E, {
|
|
342
342
|
event: "mousedown",
|
|
343
343
|
toggle: !0,
|
|
344
344
|
ignoreMouse: !1
|
|
345
|
-
}), J =
|
|
346
|
-
listRef:
|
|
345
|
+
}), J = go(E, { role: "menu" }), j = po(E, { bubbles: !0 }), ae = fo(E, {
|
|
346
|
+
listRef: T,
|
|
347
347
|
activeIndex: c,
|
|
348
348
|
nested: !1,
|
|
349
349
|
onNavigate: y,
|
|
350
350
|
loop: !0
|
|
351
|
-
}), L =
|
|
351
|
+
}), L = bo(E, {
|
|
352
352
|
listRef: p,
|
|
353
353
|
onMatch: m ? y : void 0,
|
|
354
354
|
activeIndex: c
|
|
355
|
-
}), { getReferenceProps: K, getFloatingProps: A, getItemProps:
|
|
355
|
+
}), { getReferenceProps: K, getFloatingProps: A, getItemProps: At } = vo([re, J, j, ae, L]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", Rt = Ve ? {
|
|
356
356
|
noInternalClick: Ve,
|
|
357
357
|
focusMode: l,
|
|
358
358
|
mode: i,
|
|
359
359
|
spacing: s
|
|
360
|
-
} : {},
|
|
361
|
-
...
|
|
360
|
+
} : {}, Mt = x.cloneElement(e, {
|
|
361
|
+
...Rt,
|
|
362
362
|
"aria-label": o,
|
|
363
363
|
"data-open": m ? "" : void 0,
|
|
364
364
|
"data-focus-inside": b ? "" : void 0,
|
|
365
|
-
ref: it([
|
|
365
|
+
ref: it([z.setReference, M.ref, u]),
|
|
366
366
|
...K(
|
|
367
367
|
k.getItemProps({
|
|
368
368
|
...h
|
|
@@ -372,28 +372,28 @@ const Ie = f.createContext({
|
|
|
372
372
|
return U(() => {
|
|
373
373
|
if (!N)
|
|
374
374
|
return;
|
|
375
|
-
function
|
|
376
|
-
g(!1),
|
|
375
|
+
function ne() {
|
|
376
|
+
g(!1), n == null || n(!1);
|
|
377
377
|
}
|
|
378
|
-
return N.events.on("click",
|
|
379
|
-
N.events.off("click",
|
|
378
|
+
return N.events.on("click", ne), () => {
|
|
379
|
+
N.events.off("click", ne);
|
|
380
380
|
};
|
|
381
|
-
}, [N,
|
|
381
|
+
}, [N, n]), U(() => {
|
|
382
382
|
m && N && N.events.emit("menuopen", { nodeId: I });
|
|
383
|
-
}, [N, m, I]), /* @__PURE__ */ v(
|
|
384
|
-
|
|
383
|
+
}, [N, m, I]), /* @__PURE__ */ v(yo, { id: I, children: [
|
|
384
|
+
Mt,
|
|
385
385
|
/* @__PURE__ */ r(
|
|
386
386
|
Ie.Provider,
|
|
387
387
|
{
|
|
388
388
|
value: {
|
|
389
389
|
activeIndex: c,
|
|
390
390
|
setActiveIndex: y,
|
|
391
|
-
getItemProps:
|
|
391
|
+
getItemProps: At,
|
|
392
392
|
setHasFocusInside: d,
|
|
393
393
|
isOpen: m
|
|
394
394
|
},
|
|
395
|
-
children: /* @__PURE__ */ r(
|
|
396
|
-
|
|
395
|
+
children: /* @__PURE__ */ r(ko, { elementsRef: T, labelsRef: p, children: m && /* @__PURE__ */ r(Co, { children: /* @__PURE__ */ r(
|
|
396
|
+
To,
|
|
397
397
|
{
|
|
398
398
|
context: E,
|
|
399
399
|
modal: !1,
|
|
@@ -402,7 +402,7 @@ const Ie = f.createContext({
|
|
|
402
402
|
children: /* @__PURE__ */ r(
|
|
403
403
|
"div",
|
|
404
404
|
{
|
|
405
|
-
ref:
|
|
405
|
+
ref: z.setFloating,
|
|
406
406
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
407
407
|
style: _,
|
|
408
408
|
...A(),
|
|
@@ -415,21 +415,21 @@ const Ie = f.createContext({
|
|
|
415
415
|
)
|
|
416
416
|
] });
|
|
417
417
|
}
|
|
418
|
-
), Se =
|
|
418
|
+
), Se = at((e, t) => /* @__PURE__ */ r(wo, { children: /* @__PURE__ */ r(dt, { ...e, ref: t }) }));
|
|
419
419
|
Se.displayName = "Menu";
|
|
420
|
-
|
|
420
|
+
dt.displayName = "MenuComponent";
|
|
421
421
|
const W = f.forwardRef(
|
|
422
422
|
({
|
|
423
423
|
label: e,
|
|
424
424
|
disabled: t,
|
|
425
425
|
icon: o,
|
|
426
|
-
raw:
|
|
427
|
-
children:
|
|
426
|
+
raw: a = !1,
|
|
427
|
+
children: n,
|
|
428
428
|
ignoreClick: s = !1,
|
|
429
429
|
...i
|
|
430
430
|
}, l) => {
|
|
431
|
-
const h = f.useContext(Ie), u = st({ label: t ? null : e }), m =
|
|
432
|
-
return
|
|
431
|
+
const h = f.useContext(Ie), u = st({ label: t ? null : e }), m = nt(), g = it([u.ref, l]);
|
|
432
|
+
return a && n ? /* @__PURE__ */ r(
|
|
433
433
|
"div",
|
|
434
434
|
{
|
|
435
435
|
role: "menuitem",
|
|
@@ -439,7 +439,7 @@ const W = f.forwardRef(
|
|
|
439
439
|
s || ((d = i.onClick) == null || d.call(i, b), m == null || m.events.emit("click"));
|
|
440
440
|
}
|
|
441
441
|
}),
|
|
442
|
-
children:
|
|
442
|
+
children: n
|
|
443
443
|
}
|
|
444
444
|
) : /* @__PURE__ */ v(
|
|
445
445
|
"button",
|
|
@@ -474,40 +474,40 @@ const Mo = ({ className: e, ...t }) => {
|
|
|
474
474
|
return /* @__PURE__ */ r("div", { className: o, ...t });
|
|
475
475
|
};
|
|
476
476
|
/*!
|
|
477
|
-
@versini/ui-menu v1.1.
|
|
477
|
+
@versini/ui-menu v1.1.1
|
|
478
478
|
© 2024 gizmette.com
|
|
479
479
|
*/
|
|
480
480
|
try {
|
|
481
481
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
482
|
-
version: "1.1.
|
|
483
|
-
buildTime: "
|
|
482
|
+
version: "1.1.1",
|
|
483
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
484
484
|
homepage: "https://github.com/aversini/ui-components",
|
|
485
485
|
license: "MIT"
|
|
486
486
|
});
|
|
487
487
|
} catch {
|
|
488
488
|
}
|
|
489
489
|
/*!
|
|
490
|
-
@versini/ui-togglegroup v1.1.
|
|
490
|
+
@versini/ui-togglegroup v1.1.1
|
|
491
491
|
© 2024 gizmette.com
|
|
492
492
|
*/
|
|
493
493
|
try {
|
|
494
494
|
window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
|
|
495
|
-
version: "1.1.
|
|
496
|
-
buildTime: "
|
|
495
|
+
version: "1.1.1",
|
|
496
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
497
497
|
homepage: "https://github.com/aversini/ui-components",
|
|
498
498
|
license: "MIT"
|
|
499
499
|
});
|
|
500
500
|
} catch {
|
|
501
501
|
}
|
|
502
|
-
const Lo = "av-togglegroup", Oo = "av-togglegroup-item-wrapper",
|
|
502
|
+
const Lo = "av-togglegroup", Oo = "av-togglegroup-item-wrapper", Bo = "av-togglegroup-item";
|
|
503
503
|
function Le(e, t = []) {
|
|
504
504
|
let o = [];
|
|
505
|
-
function
|
|
505
|
+
function a(s, i) {
|
|
506
506
|
const l = f.createContext(i), h = o.length;
|
|
507
507
|
o = [...o, i];
|
|
508
508
|
function u(g) {
|
|
509
|
-
const { scope: b, children: d, ...c } = g, y = (b == null ? void 0 : b[e][h]) || l,
|
|
510
|
-
return /* @__PURE__ */ r(y.Provider, { value:
|
|
509
|
+
const { scope: b, children: d, ...c } = g, y = (b == null ? void 0 : b[e][h]) || l, T = f.useMemo(() => c, Object.values(c));
|
|
510
|
+
return /* @__PURE__ */ r(y.Provider, { value: T, children: d });
|
|
511
511
|
}
|
|
512
512
|
function m(g, b) {
|
|
513
513
|
const d = (b == null ? void 0 : b[e][h]) || l, c = f.useContext(d);
|
|
@@ -517,7 +517,7 @@ function Le(e, t = []) {
|
|
|
517
517
|
}
|
|
518
518
|
return u.displayName = s + "Provider", [u, m];
|
|
519
519
|
}
|
|
520
|
-
const
|
|
520
|
+
const n = () => {
|
|
521
521
|
const s = o.map((i) => f.createContext(i));
|
|
522
522
|
return function(i) {
|
|
523
523
|
const l = (i == null ? void 0 : i[e]) || s;
|
|
@@ -527,19 +527,19 @@ function Le(e, t = []) {
|
|
|
527
527
|
);
|
|
528
528
|
};
|
|
529
529
|
};
|
|
530
|
-
return
|
|
530
|
+
return n.scopeName = e, [a, Po(n, ...t)];
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Po(...e) {
|
|
533
533
|
const t = e[0];
|
|
534
534
|
if (e.length === 1) return t;
|
|
535
535
|
const o = () => {
|
|
536
|
-
const
|
|
537
|
-
useScope:
|
|
538
|
-
scopeName:
|
|
536
|
+
const a = e.map((n) => ({
|
|
537
|
+
useScope: n(),
|
|
538
|
+
scopeName: n.scopeName
|
|
539
539
|
}));
|
|
540
|
-
return function(
|
|
541
|
-
const s =
|
|
542
|
-
const u = l(
|
|
540
|
+
return function(n) {
|
|
541
|
+
const s = a.reduce((i, { useScope: l, scopeName: h }) => {
|
|
542
|
+
const u = l(n)[`__scope${h}`];
|
|
543
543
|
return { ...i, ...u };
|
|
544
544
|
}, {});
|
|
545
545
|
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
@@ -547,55 +547,55 @@ function Bo(...e) {
|
|
|
547
547
|
};
|
|
548
548
|
return o.scopeName = t.scopeName, o;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function zo(e, t) {
|
|
551
551
|
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
return (t) => e.forEach((o) =>
|
|
553
|
+
function ut(...e) {
|
|
554
|
+
return (t) => e.forEach((o) => zo(o, t));
|
|
555
555
|
}
|
|
556
556
|
function _e(...e) {
|
|
557
|
-
return f.useCallback(
|
|
557
|
+
return f.useCallback(ut(...e), e);
|
|
558
558
|
}
|
|
559
559
|
var be = f.forwardRef((e, t) => {
|
|
560
|
-
const { children: o, ...
|
|
560
|
+
const { children: o, ...a } = e, n = f.Children.toArray(o), s = n.find($o);
|
|
561
561
|
if (s) {
|
|
562
|
-
const i = s.props.children, l =
|
|
563
|
-
return /* @__PURE__ */ r(Ae, { ...
|
|
562
|
+
const i = s.props.children, l = n.map((h) => h === s ? f.Children.count(i) > 1 ? f.Children.only(null) : f.isValidElement(i) ? i.props.children : null : h);
|
|
563
|
+
return /* @__PURE__ */ r(Ae, { ...a, ref: t, children: f.isValidElement(i) ? f.cloneElement(i, void 0, l) : null });
|
|
564
564
|
}
|
|
565
|
-
return /* @__PURE__ */ r(Ae, { ...
|
|
565
|
+
return /* @__PURE__ */ r(Ae, { ...a, ref: t, children: o });
|
|
566
566
|
});
|
|
567
567
|
be.displayName = "Slot";
|
|
568
568
|
var Ae = f.forwardRef((e, t) => {
|
|
569
|
-
const { children: o, ...
|
|
569
|
+
const { children: o, ...a } = e;
|
|
570
570
|
if (f.isValidElement(o)) {
|
|
571
|
-
const
|
|
571
|
+
const n = Ho(o);
|
|
572
572
|
return f.cloneElement(o, {
|
|
573
|
-
|
|
573
|
+
...Do(a, o.props),
|
|
574
574
|
// @ts-ignore
|
|
575
|
-
ref: t ?
|
|
575
|
+
ref: t ? ut(t, n) : n
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
return f.Children.count(o) > 1 ? f.Children.only(null) : null;
|
|
579
579
|
});
|
|
580
580
|
Ae.displayName = "SlotClone";
|
|
581
581
|
var Vo = ({ children: e }) => /* @__PURE__ */ r(R, { children: e });
|
|
582
|
-
function
|
|
582
|
+
function $o(e) {
|
|
583
583
|
return f.isValidElement(e) && e.type === Vo;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Do(e, t) {
|
|
586
586
|
const o = { ...t };
|
|
587
|
-
for (const
|
|
588
|
-
const
|
|
589
|
-
/^on[A-Z]/.test(
|
|
590
|
-
s(...i),
|
|
591
|
-
} :
|
|
587
|
+
for (const a in t) {
|
|
588
|
+
const n = e[a], s = t[a];
|
|
589
|
+
/^on[A-Z]/.test(a) ? n && s ? o[a] = (...i) => {
|
|
590
|
+
s(...i), n(...i);
|
|
591
|
+
} : n && (o[a] = n) : a === "style" ? o[a] = { ...n, ...s } : a === "className" && (o[a] = [n, s].filter(Boolean).join(" "));
|
|
592
592
|
}
|
|
593
593
|
return { ...e, ...o };
|
|
594
594
|
}
|
|
595
595
|
function Ho(e) {
|
|
596
596
|
var t, o;
|
|
597
|
-
let
|
|
598
|
-
return
|
|
597
|
+
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
598
|
+
return n ? e.ref : (a = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
599
599
|
}
|
|
600
600
|
var Fo = [
|
|
601
601
|
"a",
|
|
@@ -615,38 +615,38 @@ var Fo = [
|
|
|
615
615
|
"svg",
|
|
616
616
|
"ul"
|
|
617
617
|
], ue = Fo.reduce((e, t) => {
|
|
618
|
-
const o = f.forwardRef((
|
|
619
|
-
const { asChild: s, ...i } =
|
|
620
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ r(l, { ...i, ref:
|
|
618
|
+
const o = f.forwardRef((a, n) => {
|
|
619
|
+
const { asChild: s, ...i } = a, l = s ? be : t;
|
|
620
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ r(l, { ...i, ref: n });
|
|
621
621
|
});
|
|
622
622
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
623
623
|
}, {});
|
|
624
624
|
function Z(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
|
|
625
|
-
return function(
|
|
626
|
-
if (e == null || e(
|
|
627
|
-
return t == null ? void 0 : t(
|
|
625
|
+
return function(a) {
|
|
626
|
+
if (e == null || e(a), o === !1 || !a.defaultPrevented)
|
|
627
|
+
return t == null ? void 0 : t(a);
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
630
|
function Go(e) {
|
|
631
|
-
const t = e + "CollectionProvider", [o,
|
|
631
|
+
const t = e + "CollectionProvider", [o, a] = Le(t), [n, s] = o(
|
|
632
632
|
t,
|
|
633
633
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
634
634
|
), i = (d) => {
|
|
635
|
-
const { scope: c, children: y } = d,
|
|
636
|
-
return /* @__PURE__ */ r(
|
|
635
|
+
const { scope: c, children: y } = d, T = x.useRef(null), p = x.useRef(/* @__PURE__ */ new Map()).current;
|
|
636
|
+
return /* @__PURE__ */ r(n, { scope: c, itemMap: p, collectionRef: T, children: y });
|
|
637
637
|
};
|
|
638
638
|
i.displayName = t;
|
|
639
639
|
const l = e + "CollectionSlot", h = x.forwardRef(
|
|
640
640
|
(d, c) => {
|
|
641
|
-
const { scope: y, children:
|
|
642
|
-
return /* @__PURE__ */ r(be, { ref: k, children:
|
|
641
|
+
const { scope: y, children: T } = d, p = s(l, y), k = _e(c, p.collectionRef);
|
|
642
|
+
return /* @__PURE__ */ r(be, { ref: k, children: T });
|
|
643
643
|
}
|
|
644
644
|
);
|
|
645
645
|
h.displayName = l;
|
|
646
646
|
const u = e + "CollectionItemSlot", m = "data-radix-collection-item", g = x.forwardRef(
|
|
647
647
|
(d, c) => {
|
|
648
|
-
const { scope: y, children:
|
|
649
|
-
return x.useEffect(() => (I.itemMap.set(k, { ref: k, ...p }), () => void I.itemMap.delete(k))), /* @__PURE__ */ r(be, { [m]: "", ref: N, children:
|
|
648
|
+
const { scope: y, children: T, ...p } = d, k = x.useRef(null), N = _e(c, k), I = s(u, y);
|
|
649
|
+
return x.useEffect(() => (I.itemMap.set(k, { ref: k, ...p }), () => void I.itemMap.delete(k))), /* @__PURE__ */ r(be, { [m]: "", ref: N, children: T });
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
652
|
g.displayName = u;
|
|
@@ -655,16 +655,16 @@ function Go(e) {
|
|
|
655
655
|
return x.useCallback(() => {
|
|
656
656
|
const y = c.collectionRef.current;
|
|
657
657
|
if (!y) return [];
|
|
658
|
-
const
|
|
658
|
+
const T = Array.from(y.querySelectorAll(`[${m}]`));
|
|
659
659
|
return Array.from(c.itemMap.values()).sort(
|
|
660
|
-
(p, k) =>
|
|
660
|
+
(p, k) => T.indexOf(p.ref.current) - T.indexOf(k.ref.current)
|
|
661
661
|
);
|
|
662
662
|
}, [c.collectionRef, c.itemMap]);
|
|
663
663
|
}
|
|
664
664
|
return [
|
|
665
665
|
{ Provider: i, Slot: h, ItemSlot: g },
|
|
666
666
|
b,
|
|
667
|
-
|
|
667
|
+
a
|
|
668
668
|
];
|
|
669
669
|
}
|
|
670
670
|
var Uo = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
@@ -673,7 +673,7 @@ var Uo = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
|
673
673
|
function Wo(e) {
|
|
674
674
|
const [t, o] = f.useState(jo());
|
|
675
675
|
return Uo(() => {
|
|
676
|
-
o((
|
|
676
|
+
o((a) => a ?? String(Ko++));
|
|
677
677
|
}, [e]), t ? `radix-${t}` : "";
|
|
678
678
|
}
|
|
679
679
|
function Oe(e) {
|
|
@@ -681,8 +681,8 @@ function Oe(e) {
|
|
|
681
681
|
return f.useEffect(() => {
|
|
682
682
|
t.current = e;
|
|
683
683
|
}), f.useMemo(() => (...o) => {
|
|
684
|
-
var
|
|
685
|
-
return (
|
|
684
|
+
var a;
|
|
685
|
+
return (a = t.current) == null ? void 0 : a.call(t, ...o);
|
|
686
686
|
}, []);
|
|
687
687
|
}
|
|
688
688
|
function ye({
|
|
@@ -691,15 +691,15 @@ function ye({
|
|
|
691
691
|
onChange: o = () => {
|
|
692
692
|
}
|
|
693
693
|
}) {
|
|
694
|
-
const [
|
|
694
|
+
const [a, n] = Yo({ defaultProp: t, onChange: o }), s = e !== void 0, i = s ? e : a, l = Oe(o), h = f.useCallback(
|
|
695
695
|
(u) => {
|
|
696
696
|
if (s) {
|
|
697
697
|
const m = typeof u == "function" ? u(e) : u;
|
|
698
698
|
m !== e && l(m);
|
|
699
699
|
} else
|
|
700
|
-
|
|
700
|
+
n(u);
|
|
701
701
|
},
|
|
702
|
-
[s, e,
|
|
702
|
+
[s, e, n, l]
|
|
703
703
|
);
|
|
704
704
|
return [i, h];
|
|
705
705
|
}
|
|
@@ -707,28 +707,28 @@ function Yo({
|
|
|
707
707
|
defaultProp: e,
|
|
708
708
|
onChange: t
|
|
709
709
|
}) {
|
|
710
|
-
const o = f.useState(e), [
|
|
710
|
+
const o = f.useState(e), [a] = o, n = f.useRef(a), s = Oe(t);
|
|
711
711
|
return f.useEffect(() => {
|
|
712
|
-
|
|
713
|
-
}, [
|
|
712
|
+
n.current !== a && (s(a), n.current = a);
|
|
713
|
+
}, [a, n, s]), o;
|
|
714
714
|
}
|
|
715
715
|
var Zo = f.createContext(void 0);
|
|
716
|
-
function
|
|
716
|
+
function mt(e) {
|
|
717
717
|
const t = f.useContext(Zo);
|
|
718
718
|
return e || t || "ltr";
|
|
719
719
|
}
|
|
720
|
-
var xe = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re,
|
|
720
|
+
var xe = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re, ht, Xo] = Go(ke), [Jo, gt] = Le(
|
|
721
721
|
ke,
|
|
722
722
|
[Xo]
|
|
723
|
-
), [Qo, er] = Jo(ke),
|
|
723
|
+
), [Qo, er] = Jo(ke), pt = f.forwardRef(
|
|
724
724
|
(e, t) => /* @__PURE__ */ r(Re.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(Re.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(tr, { ...e, ref: t }) }) })
|
|
725
725
|
);
|
|
726
|
-
|
|
726
|
+
pt.displayName = ke;
|
|
727
727
|
var tr = f.forwardRef((e, t) => {
|
|
728
728
|
const {
|
|
729
729
|
__scopeRovingFocusGroup: o,
|
|
730
|
-
orientation:
|
|
731
|
-
loop:
|
|
730
|
+
orientation: a,
|
|
731
|
+
loop: n = !1,
|
|
732
732
|
dir: s,
|
|
733
733
|
currentTabStopId: i,
|
|
734
734
|
defaultCurrentTabStopId: l,
|
|
@@ -736,11 +736,11 @@ var tr = f.forwardRef((e, t) => {
|
|
|
736
736
|
onEntryFocus: u,
|
|
737
737
|
preventScrollOnEntryFocus: m = !1,
|
|
738
738
|
...g
|
|
739
|
-
} = e, b = f.useRef(null), d = _e(t, b), c =
|
|
739
|
+
} = e, b = f.useRef(null), d = _e(t, b), c = mt(s), [y = null, T] = ye({
|
|
740
740
|
prop: i,
|
|
741
741
|
defaultProp: l,
|
|
742
742
|
onChange: h
|
|
743
|
-
}), [p, k] = f.useState(!1), N = Oe(u), I =
|
|
743
|
+
}), [p, k] = f.useState(!1), N = Oe(u), I = ht(o), M = f.useRef(!1), [_, z] = f.useState(0);
|
|
744
744
|
return f.useEffect(() => {
|
|
745
745
|
const E = b.current;
|
|
746
746
|
if (E)
|
|
@@ -749,28 +749,28 @@ var tr = f.forwardRef((e, t) => {
|
|
|
749
749
|
Qo,
|
|
750
750
|
{
|
|
751
751
|
scope: o,
|
|
752
|
-
orientation:
|
|
752
|
+
orientation: a,
|
|
753
753
|
dir: c,
|
|
754
|
-
loop:
|
|
754
|
+
loop: n,
|
|
755
755
|
currentTabStopId: y,
|
|
756
756
|
onItemFocus: f.useCallback(
|
|
757
|
-
(E) =>
|
|
758
|
-
[
|
|
757
|
+
(E) => T(E),
|
|
758
|
+
[T]
|
|
759
759
|
),
|
|
760
760
|
onItemShiftTab: f.useCallback(() => k(!0), []),
|
|
761
761
|
onFocusableItemAdd: f.useCallback(
|
|
762
|
-
() =>
|
|
762
|
+
() => z((E) => E + 1),
|
|
763
763
|
[]
|
|
764
764
|
),
|
|
765
765
|
onFocusableItemRemove: f.useCallback(
|
|
766
|
-
() =>
|
|
766
|
+
() => z((E) => E - 1),
|
|
767
767
|
[]
|
|
768
768
|
),
|
|
769
769
|
children: /* @__PURE__ */ r(
|
|
770
770
|
ue.div,
|
|
771
771
|
{
|
|
772
772
|
tabIndex: p || _ === 0 ? -1 : 0,
|
|
773
|
-
"data-orientation":
|
|
773
|
+
"data-orientation": a,
|
|
774
774
|
...g,
|
|
775
775
|
ref: d,
|
|
776
776
|
style: { outline: "none", ...e.style },
|
|
@@ -782,10 +782,10 @@ var tr = f.forwardRef((e, t) => {
|
|
|
782
782
|
if (E.target === E.currentTarget && re && !p) {
|
|
783
783
|
const J = new CustomEvent(xe, qo);
|
|
784
784
|
if (E.currentTarget.dispatchEvent(J), !J.defaultPrevented) {
|
|
785
|
-
const j = I().filter((A) => A.focusable),
|
|
785
|
+
const j = I().filter((A) => A.focusable), ae = j.find((A) => A.active), L = j.find((A) => A.id === y), K = [ae, L, ...j].filter(
|
|
786
786
|
Boolean
|
|
787
787
|
).map((A) => A.ref.current);
|
|
788
|
-
|
|
788
|
+
vt(K, m);
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
M.current = !1;
|
|
@@ -795,25 +795,25 @@ var tr = f.forwardRef((e, t) => {
|
|
|
795
795
|
)
|
|
796
796
|
}
|
|
797
797
|
);
|
|
798
|
-
}),
|
|
798
|
+
}), ft = "RovingFocusGroupItem", bt = f.forwardRef(
|
|
799
799
|
(e, t) => {
|
|
800
800
|
const {
|
|
801
801
|
__scopeRovingFocusGroup: o,
|
|
802
|
-
focusable:
|
|
803
|
-
active:
|
|
802
|
+
focusable: a = !0,
|
|
803
|
+
active: n = !1,
|
|
804
804
|
tabStopId: s,
|
|
805
805
|
...i
|
|
806
|
-
} = e, l = Wo(), h = s || l, u = er(
|
|
806
|
+
} = e, l = Wo(), h = s || l, u = er(ft, o), m = u.currentTabStopId === h, g = ht(o), { onFocusableItemAdd: b, onFocusableItemRemove: d } = u;
|
|
807
807
|
return f.useEffect(() => {
|
|
808
|
-
if (
|
|
808
|
+
if (a)
|
|
809
809
|
return b(), () => d();
|
|
810
|
-
}, [
|
|
810
|
+
}, [a, b, d]), /* @__PURE__ */ r(
|
|
811
811
|
Re.ItemSlot,
|
|
812
812
|
{
|
|
813
813
|
scope: o,
|
|
814
814
|
id: h,
|
|
815
|
-
focusable:
|
|
816
|
-
active:
|
|
815
|
+
focusable: a,
|
|
816
|
+
active: n,
|
|
817
817
|
children: /* @__PURE__ */ r(
|
|
818
818
|
ue.span,
|
|
819
819
|
{
|
|
@@ -822,7 +822,7 @@ var tr = f.forwardRef((e, t) => {
|
|
|
822
822
|
...i,
|
|
823
823
|
ref: t,
|
|
824
824
|
onMouseDown: Z(e.onMouseDown, (c) => {
|
|
825
|
-
|
|
825
|
+
a ? u.onItemFocus(h) : c.preventDefault();
|
|
826
826
|
}),
|
|
827
827
|
onFocus: Z(e.onFocus, () => u.onItemFocus(h)),
|
|
828
828
|
onKeyDown: Z(e.onKeyDown, (c) => {
|
|
@@ -831,18 +831,18 @@ var tr = f.forwardRef((e, t) => {
|
|
|
831
831
|
return;
|
|
832
832
|
}
|
|
833
833
|
if (c.target !== c.currentTarget) return;
|
|
834
|
-
const y =
|
|
834
|
+
const y = ar(c, u.orientation, u.dir);
|
|
835
835
|
if (y !== void 0) {
|
|
836
836
|
if (c.metaKey || c.ctrlKey || c.altKey || c.shiftKey) return;
|
|
837
837
|
c.preventDefault();
|
|
838
|
-
let
|
|
839
|
-
if (y === "last")
|
|
838
|
+
let T = g().filter((p) => p.focusable).map((p) => p.ref.current);
|
|
839
|
+
if (y === "last") T.reverse();
|
|
840
840
|
else if (y === "prev" || y === "next") {
|
|
841
|
-
y === "prev" &&
|
|
842
|
-
const p =
|
|
843
|
-
|
|
841
|
+
y === "prev" && T.reverse();
|
|
842
|
+
const p = T.indexOf(c.currentTarget);
|
|
843
|
+
T = u.loop ? nr(T, p + 1) : T.slice(p + 1);
|
|
844
844
|
}
|
|
845
|
-
setTimeout(() =>
|
|
845
|
+
setTimeout(() => vt(T));
|
|
846
846
|
}
|
|
847
847
|
})
|
|
848
848
|
}
|
|
@@ -851,7 +851,7 @@ var tr = f.forwardRef((e, t) => {
|
|
|
851
851
|
);
|
|
852
852
|
}
|
|
853
853
|
);
|
|
854
|
-
|
|
854
|
+
bt.displayName = ft;
|
|
855
855
|
var or = {
|
|
856
856
|
ArrowLeft: "prev",
|
|
857
857
|
ArrowUp: "prev",
|
|
@@ -865,24 +865,24 @@ var or = {
|
|
|
865
865
|
function rr(e, t) {
|
|
866
866
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
867
867
|
}
|
|
868
|
-
function
|
|
869
|
-
const
|
|
870
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(
|
|
871
|
-
return or[
|
|
868
|
+
function ar(e, t, o) {
|
|
869
|
+
const a = rr(e.key, o);
|
|
870
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
|
|
871
|
+
return or[a];
|
|
872
872
|
}
|
|
873
|
-
function
|
|
873
|
+
function vt(e, t = !1) {
|
|
874
874
|
const o = document.activeElement;
|
|
875
|
-
for (const
|
|
876
|
-
if (
|
|
875
|
+
for (const a of e)
|
|
876
|
+
if (a === o || (a.focus({ preventScroll: t }), document.activeElement !== o)) return;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
879
|
-
return e.map((o,
|
|
878
|
+
function nr(e, t) {
|
|
879
|
+
return e.map((o, a) => e[(t + a) % e.length]);
|
|
880
880
|
}
|
|
881
|
-
var sr =
|
|
882
|
-
const { pressed: o, defaultPressed:
|
|
881
|
+
var sr = pt, ir = bt, lr = "Toggle", yt = f.forwardRef((e, t) => {
|
|
882
|
+
const { pressed: o, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [i = !1, l] = ye({
|
|
883
883
|
prop: o,
|
|
884
|
-
onChange:
|
|
885
|
-
defaultProp:
|
|
884
|
+
onChange: n,
|
|
885
|
+
defaultProp: a
|
|
886
886
|
});
|
|
887
887
|
return /* @__PURE__ */ r(
|
|
888
888
|
ue.button,
|
|
@@ -899,52 +899,52 @@ var sr = ht, ir = pt, lr = "Toggle", bt = f.forwardRef((e, t) => {
|
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
901
|
});
|
|
902
|
-
|
|
903
|
-
var oe = "ToggleGroup", [
|
|
904
|
-
|
|
905
|
-
]),
|
|
906
|
-
const { type: o, ...
|
|
902
|
+
yt.displayName = lr;
|
|
903
|
+
var oe = "ToggleGroup", [kt, wa] = Le(oe, [
|
|
904
|
+
gt
|
|
905
|
+
]), Ct = gt(), Be = x.forwardRef((e, t) => {
|
|
906
|
+
const { type: o, ...a } = e;
|
|
907
907
|
if (o === "single")
|
|
908
|
-
return /* @__PURE__ */ r(cr, { ...
|
|
908
|
+
return /* @__PURE__ */ r(cr, { ...a, ref: t });
|
|
909
909
|
if (o === "multiple")
|
|
910
|
-
return /* @__PURE__ */ r(dr, { ...
|
|
910
|
+
return /* @__PURE__ */ r(dr, { ...a, ref: t });
|
|
911
911
|
throw new Error(`Missing prop \`type\` expected on \`${oe}\``);
|
|
912
912
|
});
|
|
913
|
-
|
|
914
|
-
var [
|
|
913
|
+
Be.displayName = oe;
|
|
914
|
+
var [Tt, wt] = kt(oe), cr = x.forwardRef((e, t) => {
|
|
915
915
|
const {
|
|
916
916
|
value: o,
|
|
917
|
-
defaultValue:
|
|
918
|
-
onValueChange:
|
|
917
|
+
defaultValue: a,
|
|
918
|
+
onValueChange: n = () => {
|
|
919
919
|
},
|
|
920
920
|
...s
|
|
921
921
|
} = e, [i, l] = ye({
|
|
922
922
|
prop: o,
|
|
923
|
-
defaultProp:
|
|
924
|
-
onChange:
|
|
923
|
+
defaultProp: a,
|
|
924
|
+
onChange: n
|
|
925
925
|
});
|
|
926
926
|
return /* @__PURE__ */ r(
|
|
927
|
-
|
|
927
|
+
Tt,
|
|
928
928
|
{
|
|
929
929
|
scope: e.__scopeToggleGroup,
|
|
930
930
|
type: "single",
|
|
931
931
|
value: i ? [i] : [],
|
|
932
932
|
onItemActivate: l,
|
|
933
933
|
onItemDeactivate: x.useCallback(() => l(""), [l]),
|
|
934
|
-
children: /* @__PURE__ */ r(
|
|
934
|
+
children: /* @__PURE__ */ r(Nt, { ...s, ref: t })
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
937
|
}), dr = x.forwardRef((e, t) => {
|
|
938
938
|
const {
|
|
939
939
|
value: o,
|
|
940
|
-
defaultValue:
|
|
941
|
-
onValueChange:
|
|
940
|
+
defaultValue: a,
|
|
941
|
+
onValueChange: n = () => {
|
|
942
942
|
},
|
|
943
943
|
...s
|
|
944
944
|
} = e, [i = [], l] = ye({
|
|
945
945
|
prop: o,
|
|
946
|
-
defaultProp:
|
|
947
|
-
onChange:
|
|
946
|
+
defaultProp: a,
|
|
947
|
+
onChange: n
|
|
948
948
|
}), h = x.useCallback(
|
|
949
949
|
(m) => l((g = []) => [...g, m]),
|
|
950
950
|
[l]
|
|
@@ -953,30 +953,30 @@ var [kt, Ct] = vt(oe), cr = x.forwardRef((e, t) => {
|
|
|
953
953
|
[l]
|
|
954
954
|
);
|
|
955
955
|
return /* @__PURE__ */ r(
|
|
956
|
-
|
|
956
|
+
Tt,
|
|
957
957
|
{
|
|
958
958
|
scope: e.__scopeToggleGroup,
|
|
959
959
|
type: "multiple",
|
|
960
960
|
value: i,
|
|
961
961
|
onItemActivate: h,
|
|
962
962
|
onItemDeactivate: u,
|
|
963
|
-
children: /* @__PURE__ */ r(
|
|
963
|
+
children: /* @__PURE__ */ r(Nt, { ...s, ref: t })
|
|
964
964
|
}
|
|
965
965
|
);
|
|
966
966
|
});
|
|
967
|
-
|
|
968
|
-
var [ur, mr] =
|
|
967
|
+
Be.displayName = oe;
|
|
968
|
+
var [ur, mr] = kt(oe), Nt = x.forwardRef(
|
|
969
969
|
(e, t) => {
|
|
970
970
|
const {
|
|
971
971
|
__scopeToggleGroup: o,
|
|
972
|
-
disabled:
|
|
973
|
-
rovingFocus:
|
|
972
|
+
disabled: a = !1,
|
|
973
|
+
rovingFocus: n = !0,
|
|
974
974
|
orientation: s,
|
|
975
975
|
dir: i,
|
|
976
976
|
loop: l = !0,
|
|
977
977
|
...h
|
|
978
|
-
} = e, u =
|
|
979
|
-
return /* @__PURE__ */ r(ur, { scope: o, rovingFocus:
|
|
978
|
+
} = e, u = Ct(o), m = mt(i), g = { role: "group", dir: m, ...h };
|
|
979
|
+
return /* @__PURE__ */ r(ur, { scope: o, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ r(
|
|
980
980
|
sr,
|
|
981
981
|
{
|
|
982
982
|
asChild: !0,
|
|
@@ -988,14 +988,14 @@ var [ur, mr] = vt(oe), wt = x.forwardRef(
|
|
|
988
988
|
}
|
|
989
989
|
) : /* @__PURE__ */ r(ue.div, { ...g, ref: t }) });
|
|
990
990
|
}
|
|
991
|
-
), ve = "ToggleGroupItem",
|
|
991
|
+
), ve = "ToggleGroupItem", Et = x.forwardRef(
|
|
992
992
|
(e, t) => {
|
|
993
|
-
const o =
|
|
994
|
-
return
|
|
993
|
+
const o = wt(ve, e.__scopeToggleGroup), a = mr(ve, e.__scopeToggleGroup), n = Ct(e.__scopeToggleGroup), s = o.value.includes(e.value), i = a.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = x.useRef(null);
|
|
994
|
+
return a.rovingFocus ? /* @__PURE__ */ r(
|
|
995
995
|
ir,
|
|
996
996
|
{
|
|
997
997
|
asChild: !0,
|
|
998
|
-
...
|
|
998
|
+
...n,
|
|
999
999
|
focusable: !i,
|
|
1000
1000
|
active: s,
|
|
1001
1001
|
ref: h,
|
|
@@ -1004,24 +1004,24 @@ var [ur, mr] = vt(oe), wt = x.forwardRef(
|
|
|
1004
1004
|
) : /* @__PURE__ */ r(We, { ...l, ref: t });
|
|
1005
1005
|
}
|
|
1006
1006
|
);
|
|
1007
|
-
|
|
1007
|
+
Et.displayName = ve;
|
|
1008
1008
|
var We = x.forwardRef(
|
|
1009
1009
|
(e, t) => {
|
|
1010
|
-
const { __scopeToggleGroup: o, value:
|
|
1010
|
+
const { __scopeToggleGroup: o, value: a, ...n } = e, s = wt(ve, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = s.type === "single" ? i : void 0;
|
|
1011
1011
|
return /* @__PURE__ */ r(
|
|
1012
|
-
|
|
1012
|
+
yt,
|
|
1013
1013
|
{
|
|
1014
1014
|
...l,
|
|
1015
|
-
...
|
|
1015
|
+
...n,
|
|
1016
1016
|
ref: t,
|
|
1017
1017
|
onPressedChange: (h) => {
|
|
1018
|
-
h ? s.onItemActivate(
|
|
1018
|
+
h ? s.onItemActivate(a) : s.onItemDeactivate(a);
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
1021
|
);
|
|
1022
1022
|
}
|
|
1023
|
-
), hr =
|
|
1024
|
-
const
|
|
1023
|
+
), hr = Be, gr = Et;
|
|
1024
|
+
const xt = x.createContext({
|
|
1025
1025
|
size: "medium",
|
|
1026
1026
|
focusMode: "system",
|
|
1027
1027
|
mode: "system"
|
|
@@ -1069,7 +1069,7 @@ const Nt = x.createContext({
|
|
|
1069
1069
|
}) => ({
|
|
1070
1070
|
wrapperClass: yr({ mode: t }),
|
|
1071
1071
|
itemClass: C(
|
|
1072
|
-
|
|
1072
|
+
Bo,
|
|
1073
1073
|
"flex items-center justify-center bg-transparent",
|
|
1074
1074
|
"rounded-sm",
|
|
1075
1075
|
"transition duration-200 ease",
|
|
@@ -1091,23 +1091,23 @@ const Nt = x.createContext({
|
|
|
1091
1091
|
"bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
|
|
1092
1092
|
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
1093
1093
|
}
|
|
1094
|
-
),
|
|
1094
|
+
), Tr = ({
|
|
1095
1095
|
children: e,
|
|
1096
1096
|
value: t,
|
|
1097
1097
|
onValueChange: o,
|
|
1098
|
-
disabled:
|
|
1099
|
-
mode:
|
|
1098
|
+
disabled: a,
|
|
1099
|
+
mode: n = "system",
|
|
1100
1100
|
focusMode: s = "system",
|
|
1101
1101
|
size: i = "medium",
|
|
1102
1102
|
defaultValue: l,
|
|
1103
1103
|
spacing: h,
|
|
1104
1104
|
...u
|
|
1105
1105
|
}) => {
|
|
1106
|
-
const m = Cr({ mode:
|
|
1107
|
-
return /* @__PURE__ */ r(
|
|
1106
|
+
const m = Cr({ mode: n, spacing: h }), g = { size: i, focusMode: s, mode: n };
|
|
1107
|
+
return /* @__PURE__ */ r(xt.Provider, { value: g, children: /* @__PURE__ */ r(
|
|
1108
1108
|
hr,
|
|
1109
1109
|
{
|
|
1110
|
-
disabled:
|
|
1110
|
+
disabled: a,
|
|
1111
1111
|
className: m,
|
|
1112
1112
|
value: t,
|
|
1113
1113
|
defaultValue: l,
|
|
@@ -1117,10 +1117,10 @@ const Nt = x.createContext({
|
|
|
1117
1117
|
children: e
|
|
1118
1118
|
}
|
|
1119
1119
|
) });
|
|
1120
|
-
},
|
|
1121
|
-
const { size: o, focusMode:
|
|
1122
|
-
focusMode:
|
|
1123
|
-
mode:
|
|
1120
|
+
}, wr = ({ value: e, disabled: t }) => {
|
|
1121
|
+
const { size: o, focusMode: a, mode: n } = $(xt), { itemClass: s, wrapperClass: i } = kr({
|
|
1122
|
+
focusMode: a,
|
|
1123
|
+
mode: n,
|
|
1124
1124
|
size: o
|
|
1125
1125
|
});
|
|
1126
1126
|
return /* @__PURE__ */ r("div", { className: i, children: /* @__PURE__ */ r(
|
|
@@ -1134,13 +1134,13 @@ const Nt = x.createContext({
|
|
|
1134
1134
|
) });
|
|
1135
1135
|
};
|
|
1136
1136
|
/*!
|
|
1137
|
-
@versini/ui-panel v1.0.
|
|
1137
|
+
@versini/ui-panel v1.0.15
|
|
1138
1138
|
© 2024 gizmette.com
|
|
1139
1139
|
*/
|
|
1140
1140
|
try {
|
|
1141
1141
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
1142
|
-
version: "1.0.
|
|
1143
|
-
buildTime: "
|
|
1142
|
+
version: "1.0.15",
|
|
1143
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
1144
1144
|
homepage: "https://github.com/aversini/ui-components",
|
|
1145
1145
|
license: "MIT"
|
|
1146
1146
|
});
|
|
@@ -1155,12 +1155,12 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
|
1155
1155
|
(e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
|
|
1156
1156
|
}
|
|
1157
1157
|
return t;
|
|
1158
|
-
},
|
|
1158
|
+
}, Pe = "icon", Er = "button", xr = "link", Ir = ({
|
|
1159
1159
|
type: e,
|
|
1160
1160
|
size: t,
|
|
1161
1161
|
labelRight: o,
|
|
1162
|
-
labelLeft:
|
|
1163
|
-
align:
|
|
1162
|
+
labelLeft: a,
|
|
1163
|
+
align: n
|
|
1164
1164
|
}) => {
|
|
1165
1165
|
const s = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
|
|
1166
1166
|
switch (e) {
|
|
@@ -1176,28 +1176,28 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
|
1176
1176
|
[i]: t === "medium",
|
|
1177
1177
|
[l]: t === "large"
|
|
1178
1178
|
});
|
|
1179
|
-
case
|
|
1179
|
+
case Pe:
|
|
1180
1180
|
return C("inline-flex items-center", {
|
|
1181
|
-
"justify-center":
|
|
1182
|
-
"justify-start":
|
|
1183
|
-
"justify-end":
|
|
1184
|
-
"h-6 w-6 p-0": t === "small" && !(o ||
|
|
1185
|
-
"h-6 px-4 text-sm font-medium": t === "small" && (o ||
|
|
1186
|
-
"h-8 w-8 p-1": t === "medium" && !(o ||
|
|
1187
|
-
"h-8 px-4 text-base font-medium": t === "medium" && (o ||
|
|
1188
|
-
"h-12 w-12 p-2": t === "large" && !(o ||
|
|
1189
|
-
"h-12 px-4 text-lg font-medium": t === "large" && (o ||
|
|
1181
|
+
"justify-center": n === "center",
|
|
1182
|
+
"justify-start": n === "left",
|
|
1183
|
+
"justify-end": n === "right",
|
|
1184
|
+
"h-6 w-6 p-0": t === "small" && !(o || a),
|
|
1185
|
+
"h-6 px-4 text-sm font-medium": t === "small" && (o || a),
|
|
1186
|
+
"h-8 w-8 p-1": t === "medium" && !(o || a),
|
|
1187
|
+
"h-8 px-4 text-base font-medium": t === "medium" && (o || a),
|
|
1188
|
+
"h-12 w-12 p-2": t === "large" && !(o || a),
|
|
1189
|
+
"h-12 px-4 text-lg font-medium": t === "large" && (o || a)
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
1192
|
}, Sr = ({
|
|
1193
1193
|
mode: e,
|
|
1194
1194
|
noBackground: t,
|
|
1195
1195
|
noTruncate: o,
|
|
1196
|
-
variant:
|
|
1196
|
+
variant: a
|
|
1197
1197
|
}) => {
|
|
1198
1198
|
if (t)
|
|
1199
1199
|
return "not-prose rounded-full";
|
|
1200
|
-
if (
|
|
1200
|
+
if (a === "primary")
|
|
1201
1201
|
return C("not-prose rounded-full", {
|
|
1202
1202
|
truncate: !o,
|
|
1203
1203
|
"bg-action-dark text-copy-light": e === "dark",
|
|
@@ -1205,7 +1205,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
|
1205
1205
|
"bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "system",
|
|
1206
1206
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
1207
1207
|
});
|
|
1208
|
-
if (
|
|
1208
|
+
if (a === "secondary")
|
|
1209
1209
|
return C("not-prose rounded-full", {
|
|
1210
1210
|
truncate: !o,
|
|
1211
1211
|
"bg-action-dark text-copy-light": e === "light",
|
|
@@ -1213,7 +1213,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
|
1213
1213
|
"bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "alt-system",
|
|
1214
1214
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
1215
1215
|
});
|
|
1216
|
-
if (
|
|
1216
|
+
if (a === "danger")
|
|
1217
1217
|
return C("not-prose rounded-full", {
|
|
1218
1218
|
truncate: !o,
|
|
1219
1219
|
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
@@ -1310,12 +1310,12 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
|
1310
1310
|
"focus:outline-focus-light": e === "light",
|
|
1311
1311
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1312
1312
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1313
|
-
}),
|
|
1313
|
+
}), It = ({
|
|
1314
1314
|
type: e,
|
|
1315
1315
|
className: t,
|
|
1316
1316
|
raw: o,
|
|
1317
|
-
mode:
|
|
1318
|
-
focusMode:
|
|
1317
|
+
mode: a,
|
|
1318
|
+
focusMode: n,
|
|
1319
1319
|
disabled: s,
|
|
1320
1320
|
fullWidth: i,
|
|
1321
1321
|
size: l,
|
|
@@ -1331,40 +1331,40 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
|
1331
1331
|
qe,
|
|
1332
1332
|
t,
|
|
1333
1333
|
Nr(g),
|
|
1334
|
-
Sr({ mode:
|
|
1334
|
+
Sr({ mode: a, variant: d, noBackground: b, noTruncate: c }),
|
|
1335
1335
|
Ir({ type: e, size: l, labelRight: u, labelLeft: m, align: y }),
|
|
1336
|
-
Rr({ mode:
|
|
1337
|
-
Mr({ focusMode:
|
|
1338
|
-
_r({ mode:
|
|
1339
|
-
Ar({ mode:
|
|
1336
|
+
Rr({ mode: a, variant: d, noBorder: h }),
|
|
1337
|
+
Mr({ focusMode: n }),
|
|
1338
|
+
_r({ mode: a, variant: d, disabled: s }),
|
|
1339
|
+
Ar({ mode: a, variant: d, disabled: s }),
|
|
1340
1340
|
{
|
|
1341
1341
|
"w-full": i,
|
|
1342
1342
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
1343
1343
|
}
|
|
1344
1344
|
)), Lr = (e, t, o) => {
|
|
1345
|
-
var
|
|
1346
|
-
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((
|
|
1347
|
-
},
|
|
1348
|
-
const { onClick: o, noInternalClick:
|
|
1345
|
+
var a;
|
|
1346
|
+
!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 o == "function" && o(e);
|
|
1347
|
+
}, ze = x.forwardRef((e, t) => {
|
|
1348
|
+
const { onClick: o, noInternalClick: a = !1, ...n } = e;
|
|
1349
1349
|
return /* @__PURE__ */ r(
|
|
1350
1350
|
"button",
|
|
1351
1351
|
{
|
|
1352
1352
|
ref: t,
|
|
1353
1353
|
onClick: (s) => {
|
|
1354
|
-
Lr(s,
|
|
1354
|
+
Lr(s, a, o);
|
|
1355
1355
|
},
|
|
1356
|
-
...
|
|
1356
|
+
...n
|
|
1357
1357
|
}
|
|
1358
1358
|
);
|
|
1359
1359
|
});
|
|
1360
|
-
|
|
1361
|
-
const
|
|
1360
|
+
ze.displayName = "BaseButton";
|
|
1361
|
+
const St = x.forwardRef(
|
|
1362
1362
|
({
|
|
1363
1363
|
children: e,
|
|
1364
1364
|
disabled: t = !1,
|
|
1365
1365
|
mode: o = "system",
|
|
1366
|
-
focusMode:
|
|
1367
|
-
fullWidth:
|
|
1366
|
+
focusMode: a = "system",
|
|
1367
|
+
fullWidth: n = !1,
|
|
1368
1368
|
className: s,
|
|
1369
1369
|
type: i = "button",
|
|
1370
1370
|
raw: l = !1,
|
|
@@ -1376,14 +1376,14 @@ const xt = x.forwardRef(
|
|
|
1376
1376
|
labelLeft: d,
|
|
1377
1377
|
spacing: c,
|
|
1378
1378
|
noBackground: y = !1,
|
|
1379
|
-
align:
|
|
1379
|
+
align: T = "center",
|
|
1380
1380
|
...p
|
|
1381
1381
|
}, k) => {
|
|
1382
|
-
const N =
|
|
1383
|
-
type:
|
|
1382
|
+
const N = It({
|
|
1383
|
+
type: Pe,
|
|
1384
1384
|
mode: o,
|
|
1385
|
-
focusMode:
|
|
1386
|
-
fullWidth:
|
|
1385
|
+
focusMode: a,
|
|
1386
|
+
fullWidth: n,
|
|
1387
1387
|
disabled: t,
|
|
1388
1388
|
raw: l,
|
|
1389
1389
|
className: s,
|
|
@@ -1393,7 +1393,7 @@ const xt = x.forwardRef(
|
|
|
1393
1393
|
labelLeft: d,
|
|
1394
1394
|
spacing: c,
|
|
1395
1395
|
noBackground: y,
|
|
1396
|
-
align:
|
|
1396
|
+
align: T
|
|
1397
1397
|
}), I = C({
|
|
1398
1398
|
"text-copy-accent-dark": o === "light" && !l,
|
|
1399
1399
|
"text-copy-light": o === "dark" && !l,
|
|
@@ -1401,7 +1401,7 @@ const xt = x.forwardRef(
|
|
|
1401
1401
|
"text-copy-light dark:text-copy-accent-dark": o === "system" && !l
|
|
1402
1402
|
});
|
|
1403
1403
|
return /* @__PURE__ */ v(
|
|
1404
|
-
|
|
1404
|
+
ze,
|
|
1405
1405
|
{
|
|
1406
1406
|
ref: k,
|
|
1407
1407
|
className: N,
|
|
@@ -1418,15 +1418,15 @@ const xt = x.forwardRef(
|
|
|
1418
1418
|
);
|
|
1419
1419
|
}
|
|
1420
1420
|
);
|
|
1421
|
-
|
|
1421
|
+
St.displayName = "ButtonIcon";
|
|
1422
1422
|
/*!
|
|
1423
|
-
@versini/ui-button v1.1.
|
|
1423
|
+
@versini/ui-button v1.1.11
|
|
1424
1424
|
© 2024 gizmette.com
|
|
1425
1425
|
*/
|
|
1426
1426
|
try {
|
|
1427
1427
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1428
|
-
version: "1.1.
|
|
1429
|
-
buildTime: "
|
|
1428
|
+
version: "1.1.11",
|
|
1429
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
1430
1430
|
homepage: "https://github.com/aversini/ui-components",
|
|
1431
1431
|
license: "MIT"
|
|
1432
1432
|
});
|
|
@@ -1437,8 +1437,8 @@ const Or = x.forwardRef(
|
|
|
1437
1437
|
children: e,
|
|
1438
1438
|
disabled: t = !1,
|
|
1439
1439
|
mode: o = "system",
|
|
1440
|
-
focusMode:
|
|
1441
|
-
fullWidth:
|
|
1440
|
+
focusMode: a = "system",
|
|
1441
|
+
fullWidth: n = !1,
|
|
1442
1442
|
className: s,
|
|
1443
1443
|
type: i = "button",
|
|
1444
1444
|
raw: l = !1,
|
|
@@ -1450,15 +1450,15 @@ const Or = x.forwardRef(
|
|
|
1450
1450
|
labelLeft: d,
|
|
1451
1451
|
spacing: c,
|
|
1452
1452
|
noBackground: y = !1,
|
|
1453
|
-
align:
|
|
1453
|
+
align: T = "center",
|
|
1454
1454
|
active: p = !1,
|
|
1455
1455
|
...k
|
|
1456
1456
|
}, N) => {
|
|
1457
|
-
const I =
|
|
1458
|
-
type:
|
|
1457
|
+
const I = It({
|
|
1458
|
+
type: Pe,
|
|
1459
1459
|
mode: o,
|
|
1460
|
-
focusMode:
|
|
1461
|
-
fullWidth:
|
|
1460
|
+
focusMode: a,
|
|
1461
|
+
fullWidth: n,
|
|
1462
1462
|
disabled: t,
|
|
1463
1463
|
raw: l,
|
|
1464
1464
|
className: s,
|
|
@@ -1468,7 +1468,7 @@ const Or = x.forwardRef(
|
|
|
1468
1468
|
labelLeft: d,
|
|
1469
1469
|
spacing: c,
|
|
1470
1470
|
noBackground: y,
|
|
1471
|
-
align:
|
|
1471
|
+
align: T
|
|
1472
1472
|
}), M = C({
|
|
1473
1473
|
"text-copy-accent-dark": o === "light" && !l,
|
|
1474
1474
|
"text-copy-light": o === "dark" && !l,
|
|
@@ -1492,7 +1492,7 @@ const Or = x.forwardRef(
|
|
|
1492
1492
|
}
|
|
1493
1493
|
) : "";
|
|
1494
1494
|
return /* @__PURE__ */ r("div", { className: _, children: /* @__PURE__ */ v(
|
|
1495
|
-
|
|
1495
|
+
ze,
|
|
1496
1496
|
{
|
|
1497
1497
|
ref: N,
|
|
1498
1498
|
className: I,
|
|
@@ -1510,7 +1510,7 @@ const Or = x.forwardRef(
|
|
|
1510
1510
|
}
|
|
1511
1511
|
);
|
|
1512
1512
|
Or.displayName = "ButtonSort";
|
|
1513
|
-
const
|
|
1513
|
+
const Br = (e) => {
|
|
1514
1514
|
let t = "";
|
|
1515
1515
|
if (typeof e == "number" || typeof e == "string")
|
|
1516
1516
|
t = "m-" + e;
|
|
@@ -1519,21 +1519,21 @@ const Pr = (e) => {
|
|
|
1519
1519
|
(e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
|
|
1520
1520
|
}
|
|
1521
1521
|
return t;
|
|
1522
|
-
},
|
|
1522
|
+
}, Pr = ({
|
|
1523
1523
|
children: e,
|
|
1524
1524
|
fill: t,
|
|
1525
1525
|
viewBox: o,
|
|
1526
|
-
className:
|
|
1527
|
-
defaultViewBox:
|
|
1526
|
+
className: a,
|
|
1527
|
+
defaultViewBox: n,
|
|
1528
1528
|
defaultClassName: s,
|
|
1529
1529
|
spacing: i,
|
|
1530
1530
|
title: l,
|
|
1531
1531
|
semantic: h = !1,
|
|
1532
1532
|
...u
|
|
1533
1533
|
}) => {
|
|
1534
|
-
const m =
|
|
1534
|
+
const m = Br(i), g = C(
|
|
1535
1535
|
m,
|
|
1536
|
-
|
|
1536
|
+
a || s
|
|
1537
1537
|
);
|
|
1538
1538
|
return /* @__PURE__ */ v(R, { children: [
|
|
1539
1539
|
/* @__PURE__ */ r(
|
|
@@ -1541,7 +1541,7 @@ const Pr = (e) => {
|
|
|
1541
1541
|
{
|
|
1542
1542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1543
1543
|
className: g,
|
|
1544
|
-
viewBox: o ||
|
|
1544
|
+
viewBox: o || n,
|
|
1545
1545
|
fill: t || "currentColor",
|
|
1546
1546
|
role: "img",
|
|
1547
1547
|
"aria-hidden": !h,
|
|
@@ -1554,46 +1554,46 @@ const Pr = (e) => {
|
|
|
1554
1554
|
] });
|
|
1555
1555
|
};
|
|
1556
1556
|
/*!
|
|
1557
|
-
@versini/ui-private v1.4.
|
|
1557
|
+
@versini/ui-private v1.4.18
|
|
1558
1558
|
© 2024 gizmette.com
|
|
1559
1559
|
*/
|
|
1560
1560
|
try {
|
|
1561
1561
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
1562
|
-
version: "1.4.
|
|
1563
|
-
buildTime: "
|
|
1562
|
+
version: "1.4.18",
|
|
1563
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
1564
1564
|
homepage: "https://github.com/aversini/ui-components",
|
|
1565
1565
|
license: "MIT"
|
|
1566
1566
|
});
|
|
1567
1567
|
} catch {
|
|
1568
1568
|
}
|
|
1569
|
-
const
|
|
1569
|
+
const zr = ({
|
|
1570
1570
|
className: e,
|
|
1571
1571
|
viewBox: t,
|
|
1572
1572
|
spacing: o,
|
|
1573
|
-
title:
|
|
1574
|
-
monotone:
|
|
1573
|
+
title: a,
|
|
1574
|
+
monotone: n,
|
|
1575
1575
|
...s
|
|
1576
1576
|
}) => /* @__PURE__ */ r(
|
|
1577
|
-
|
|
1577
|
+
Pr,
|
|
1578
1578
|
{
|
|
1579
1579
|
defaultViewBox: "0 0 384 512",
|
|
1580
1580
|
defaultClassName: "size-5",
|
|
1581
1581
|
viewBox: t,
|
|
1582
1582
|
className: e,
|
|
1583
1583
|
spacing: o,
|
|
1584
|
-
title:
|
|
1584
|
+
title: a || "Close",
|
|
1585
1585
|
...s,
|
|
1586
1586
|
children: /* @__PURE__ */ r("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z" })
|
|
1587
1587
|
}
|
|
1588
1588
|
);
|
|
1589
1589
|
/*!
|
|
1590
|
-
@versini/ui-icons v1.15.
|
|
1590
|
+
@versini/ui-icons v1.15.2
|
|
1591
1591
|
© 2024 gizmette.com
|
|
1592
1592
|
*/
|
|
1593
1593
|
try {
|
|
1594
1594
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1595
|
-
version: "1.15.
|
|
1596
|
-
buildTime: "
|
|
1595
|
+
version: "1.15.2",
|
|
1596
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
1597
1597
|
homepage: "https://github.com/aversini/ui-components",
|
|
1598
1598
|
license: "MIT"
|
|
1599
1599
|
});
|
|
@@ -1619,16 +1619,16 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1619
1619
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
|
1620
1620
|
header: "sm:p-4 mb-0 p-2",
|
|
1621
1621
|
close: "sm:p-4 p-2"
|
|
1622
|
-
}), he = (e) =>
|
|
1623
|
-
() => import("./index.
|
|
1622
|
+
}), he = (e) => ao(
|
|
1623
|
+
() => import("./index.AUArUGH7.FZU7Bha5.js").then((t) => ({
|
|
1624
1624
|
default: t[e]
|
|
1625
1625
|
}))
|
|
1626
|
-
),
|
|
1626
|
+
), $r = he("Modal"), Dr = he("ModalClose"), Hr = he("ModalContent"), Fr = he("ModalDescription"), Gr = he("ModalHeading"), X = ({
|
|
1627
1627
|
open: e,
|
|
1628
1628
|
onOpenChange: t,
|
|
1629
1629
|
title: o,
|
|
1630
|
-
children:
|
|
1631
|
-
footer:
|
|
1630
|
+
children: a,
|
|
1631
|
+
footer: n,
|
|
1632
1632
|
borderMode: s = "light",
|
|
1633
1633
|
kind: i = se,
|
|
1634
1634
|
className: l
|
|
@@ -1636,52 +1636,52 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1636
1636
|
const h = ce(""), u = Vr({ className: l, kind: i, borderMode: s });
|
|
1637
1637
|
return U(() => (e && (h.current = document.title, document.title = `${o} | ${h.current}`), () => {
|
|
1638
1638
|
e && (document.title = h.current);
|
|
1639
|
-
}), [o, e]), /* @__PURE__ */ r(
|
|
1639
|
+
}), [o, e]), /* @__PURE__ */ r(ro, { fallback: /* @__PURE__ */ r("div", {}), children: e && /* @__PURE__ */ r($r, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Hr, { className: u.main, children: [
|
|
1640
1640
|
/* @__PURE__ */ v("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1641
1641
|
/* @__PURE__ */ r(
|
|
1642
|
-
|
|
1642
|
+
Dr,
|
|
1643
1643
|
{
|
|
1644
1644
|
className: u.close,
|
|
1645
1645
|
trigger: /* @__PURE__ */ r(
|
|
1646
|
-
|
|
1646
|
+
St,
|
|
1647
1647
|
{
|
|
1648
1648
|
mode: "dark",
|
|
1649
1649
|
focusMode: "light",
|
|
1650
1650
|
noBorder: !0,
|
|
1651
1651
|
label: "Close",
|
|
1652
|
-
children: /* @__PURE__ */ r(
|
|
1652
|
+
children: /* @__PURE__ */ r(zr, {})
|
|
1653
1653
|
}
|
|
1654
1654
|
)
|
|
1655
1655
|
}
|
|
1656
1656
|
),
|
|
1657
1657
|
/* @__PURE__ */ r(Gr, { className: u.header, children: o })
|
|
1658
1658
|
] }),
|
|
1659
|
-
/* @__PURE__ */ r(Fr, { className: u.content, children:
|
|
1660
|
-
|
|
1659
|
+
/* @__PURE__ */ r(Fr, { className: u.content, children: a }),
|
|
1660
|
+
n && /* @__PURE__ */ r("div", { className: u.footer, children: n })
|
|
1661
1661
|
] }) }) });
|
|
1662
1662
|
}, Ur = ({ stats: e }) => {
|
|
1663
|
-
const t = (e == null ? void 0 : e.plugins) || [], o = (e == null ? void 0 : e.version) || "",
|
|
1663
|
+
const t = (e == null ? void 0 : e.plugins) || [], o = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = de(), s = de();
|
|
1664
1664
|
return /* @__PURE__ */ v(R, { children: [
|
|
1665
1665
|
/* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
|
|
1666
|
-
|
|
1666
|
+
P,
|
|
1667
1667
|
{
|
|
1668
|
-
header:
|
|
1668
|
+
header: w.ABOUT.TITLE_CLIENT,
|
|
1669
1669
|
className: "prose-dark dark:prose-lighter",
|
|
1670
|
-
children: le(
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1670
|
+
children: le(n, {
|
|
1671
|
+
[w.ABOUT.VERSION]: "5.4.3",
|
|
1672
|
+
[w.ABOUT.BUILD_TIMESTAMP]: "11/19/2024 04:03 PM EST"
|
|
1673
1673
|
})
|
|
1674
1674
|
}
|
|
1675
1675
|
) }),
|
|
1676
1676
|
/* @__PURE__ */ r(
|
|
1677
|
-
|
|
1677
|
+
P,
|
|
1678
1678
|
{
|
|
1679
|
-
header:
|
|
1679
|
+
header: w.ABOUT.TITLE_SERVER,
|
|
1680
1680
|
className: "prose-dark dark:prose-lighter",
|
|
1681
1681
|
children: le(s, {
|
|
1682
|
-
[
|
|
1683
|
-
[fe(
|
|
1684
|
-
[fe(
|
|
1682
|
+
[w.ABOUT.VERSION]: o,
|
|
1683
|
+
[fe(w.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ r(R, { children: a.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) }),
|
|
1684
|
+
[fe(w.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ r(R, { children: t.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) })
|
|
1685
1685
|
})
|
|
1686
1686
|
}
|
|
1687
1687
|
)
|
|
@@ -1690,18 +1690,18 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1690
1690
|
open: e,
|
|
1691
1691
|
onOpenChange: t
|
|
1692
1692
|
}) => {
|
|
1693
|
-
const { serverStats: o } =
|
|
1694
|
-
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title:
|
|
1693
|
+
const { serverStats: o } = $(me);
|
|
1694
|
+
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Lt, children: /* @__PURE__ */ r(Ur, { stats: o }) });
|
|
1695
1695
|
}, Kr = (e) => Qe(e), Wr = (e) => {
|
|
1696
1696
|
if (!e || e.length === 0)
|
|
1697
|
-
return
|
|
1697
|
+
return Bt;
|
|
1698
1698
|
const t = e.filter(
|
|
1699
1699
|
(o) => {
|
|
1700
|
-
var
|
|
1701
|
-
return ((
|
|
1700
|
+
var a, n;
|
|
1701
|
+
return ((a = o == null ? void 0 : o.message) == null ? void 0 : a.role) === Pt && typeof ((n = o == null ? void 0 : o.message) == null ? void 0 : n.processingTime) == "number";
|
|
1702
1702
|
}
|
|
1703
1703
|
).map((o) => o.message.processingTime);
|
|
1704
|
-
return
|
|
1704
|
+
return zt({
|
|
1705
1705
|
data: t,
|
|
1706
1706
|
formatter: Kr
|
|
1707
1707
|
});
|
|
@@ -1709,29 +1709,29 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1709
1709
|
isAuthenticated: e,
|
|
1710
1710
|
stats: t
|
|
1711
1711
|
}) => {
|
|
1712
|
-
const { state: o } =
|
|
1712
|
+
const { state: o } = $(me), a = Vt - Number(o == null ? void 0 : o.usage), n = de(), s = de();
|
|
1713
1713
|
return e ? /* @__PURE__ */ v(R, { children: [
|
|
1714
1714
|
o && o.messages.length > 0 && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
|
|
1715
|
-
|
|
1715
|
+
P,
|
|
1716
1716
|
{
|
|
1717
|
-
header:
|
|
1717
|
+
header: w.CURRENT_STATISTICS.TITLE,
|
|
1718
1718
|
className: "prose-dark dark:prose-lighter",
|
|
1719
|
-
children: le(
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1719
|
+
children: le(n, {
|
|
1720
|
+
[w.CURRENT_STATISTICS.MODEL_NAME]: (o == null ? void 0 : o.model) || ie,
|
|
1721
|
+
[w.CURRENT_STATISTICS.TOKENS_USED]: o == null ? void 0 : o.usage,
|
|
1722
|
+
[w.CURRENT_STATISTICS.REMAINING_TOKENS]: Ot.format(a),
|
|
1723
|
+
[w.CURRENT_STATISTICS.PROCESSING_TIME]: Wr(o == null ? void 0 : o.messages)
|
|
1724
1724
|
})
|
|
1725
1725
|
}
|
|
1726
1726
|
) }),
|
|
1727
1727
|
/* @__PURE__ */ r(
|
|
1728
|
-
|
|
1728
|
+
P,
|
|
1729
1729
|
{
|
|
1730
|
-
header:
|
|
1730
|
+
header: w.MAIN_STATISTICS.TITLE,
|
|
1731
1731
|
className: "prose-dark dark:prose-lighter",
|
|
1732
1732
|
children: le(s, {
|
|
1733
|
-
[fe(
|
|
1734
|
-
[
|
|
1733
|
+
[fe(w.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
|
|
1734
|
+
[w.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
|
|
1735
1735
|
t.averageProcessingTimes
|
|
1736
1736
|
)
|
|
1737
1737
|
})
|
|
@@ -1742,10 +1742,10 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1742
1742
|
open: e,
|
|
1743
1743
|
onOpenChange: t
|
|
1744
1744
|
}) => {
|
|
1745
|
-
const [o,
|
|
1745
|
+
const [o, a] = S({
|
|
1746
1746
|
averageProcessingTimes: 0,
|
|
1747
1747
|
totalChats: 0
|
|
1748
|
-
}), { isAuthenticated:
|
|
1748
|
+
}), { isAuthenticated: n, getAccessToken: s, user: i } = te();
|
|
1749
1749
|
return U(() => {
|
|
1750
1750
|
!e || !i || (async () => {
|
|
1751
1751
|
try {
|
|
@@ -1756,24 +1756,24 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1756
1756
|
userId: i.username
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
|
-
l.status === 200 &&
|
|
1759
|
+
l.status === 200 && a(l.data);
|
|
1760
1760
|
} catch {
|
|
1761
1761
|
}
|
|
1762
1762
|
})();
|
|
1763
|
-
}, [e, s, i]), /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: et, children: /* @__PURE__ */ r(Yr, { isAuthenticated:
|
|
1764
|
-
},
|
|
1763
|
+
}, [e, s, i]), /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: et, children: /* @__PURE__ */ r(Yr, { isAuthenticated: n, stats: o }) });
|
|
1764
|
+
}, _t = ({
|
|
1765
1765
|
showConfirmation: e,
|
|
1766
1766
|
setShowConfirmation: t,
|
|
1767
1767
|
action: o,
|
|
1768
|
-
children:
|
|
1769
|
-
customStrings:
|
|
1768
|
+
children: a,
|
|
1769
|
+
customStrings: n
|
|
1770
1770
|
}) => /* @__PURE__ */ r(
|
|
1771
1771
|
X,
|
|
1772
1772
|
{
|
|
1773
1773
|
kind: "messagebox",
|
|
1774
1774
|
open: e,
|
|
1775
1775
|
onOpenChange: t,
|
|
1776
|
-
title:
|
|
1776
|
+
title: n.title,
|
|
1777
1777
|
footer: /* @__PURE__ */ v(Me, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1778
1778
|
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(
|
|
1779
1779
|
Q,
|
|
@@ -1784,7 +1784,7 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1784
1784
|
onClick: () => {
|
|
1785
1785
|
t(!1);
|
|
1786
1786
|
},
|
|
1787
|
-
children:
|
|
1787
|
+
children: n.cancelAction
|
|
1788
1788
|
}
|
|
1789
1789
|
) }),
|
|
1790
1790
|
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(
|
|
@@ -1796,64 +1796,64 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1796
1796
|
onClick: () => {
|
|
1797
1797
|
t(!1), o();
|
|
1798
1798
|
},
|
|
1799
|
-
children:
|
|
1799
|
+
children: n.confirmAction
|
|
1800
1800
|
}
|
|
1801
1801
|
) })
|
|
1802
1802
|
] }),
|
|
1803
|
-
children:
|
|
1803
|
+
children: a
|
|
1804
1804
|
}
|
|
1805
1805
|
);
|
|
1806
1806
|
var qr = typeof window < "u", Xr = function(e, t) {
|
|
1807
1807
|
return qr ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
1808
1808
|
}, Jr = function(e, t) {
|
|
1809
|
-
var o = S(Xr(e)),
|
|
1809
|
+
var o = S(Xr(e)), a = o[0], n = o[1];
|
|
1810
1810
|
return U(function() {
|
|
1811
1811
|
var s = !0, i = window.matchMedia(e), l = function() {
|
|
1812
|
-
s &&
|
|
1812
|
+
s && n(!!i.matches);
|
|
1813
1813
|
};
|
|
1814
|
-
return i.addEventListener("change", l),
|
|
1814
|
+
return i.addEventListener("change", l), n(i.matches), function() {
|
|
1815
1815
|
s = !1, i.removeEventListener("change", l);
|
|
1816
1816
|
};
|
|
1817
|
-
}, [e]),
|
|
1817
|
+
}, [e]), a;
|
|
1818
1818
|
};
|
|
1819
|
-
const Qr = async (e, t, o,
|
|
1819
|
+
const Qr = async (e, t, o, a) => {
|
|
1820
1820
|
try {
|
|
1821
|
-
const
|
|
1822
|
-
accessToken:
|
|
1821
|
+
const n = await H({
|
|
1822
|
+
accessToken: a,
|
|
1823
1823
|
type: F.GET_CHAT,
|
|
1824
1824
|
params: {
|
|
1825
1825
|
id: e.id
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
|
-
|
|
1829
|
-
type:
|
|
1828
|
+
n.status === 200 && (t({
|
|
1829
|
+
type: Dt
|
|
1830
1830
|
}), t({
|
|
1831
|
-
type:
|
|
1831
|
+
type: Ht,
|
|
1832
1832
|
payload: {
|
|
1833
1833
|
id: e.id,
|
|
1834
|
-
model:
|
|
1835
|
-
usage:
|
|
1836
|
-
messages:
|
|
1834
|
+
model: n.data.model,
|
|
1835
|
+
usage: n.data.usage,
|
|
1836
|
+
messages: n.data.messages
|
|
1837
1837
|
}
|
|
1838
1838
|
}), o(!1));
|
|
1839
1839
|
} catch {
|
|
1840
1840
|
}
|
|
1841
1841
|
}, Xe = (e) => {
|
|
1842
1842
|
const t = e[0];
|
|
1843
|
-
return
|
|
1844
|
-
},
|
|
1843
|
+
return Ft(t == null ? void 0 : t.content, 100);
|
|
1844
|
+
}, ea = ({
|
|
1845
1845
|
filteredHistory: e,
|
|
1846
1846
|
setFilteredHistory: t,
|
|
1847
1847
|
dispatch: o,
|
|
1848
|
-
onOpenChange:
|
|
1848
|
+
onOpenChange: a
|
|
1849
1849
|
}) => {
|
|
1850
|
-
var
|
|
1851
|
-
const { user:
|
|
1850
|
+
var T;
|
|
1851
|
+
const { user: n, getAccessToken: s } = te(), i = ce({
|
|
1852
1852
|
id: 0,
|
|
1853
1853
|
timestamp: "",
|
|
1854
1854
|
message: ""
|
|
1855
|
-
}), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } =
|
|
1856
|
-
key:
|
|
1855
|
+
}), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } = $(tt), [, b] = G({
|
|
1856
|
+
key: D + $t,
|
|
1857
1857
|
initialValue: m.sortDirection
|
|
1858
1858
|
}), d = e.data.sort(
|
|
1859
1859
|
(p, k) => {
|
|
@@ -1902,7 +1902,7 @@ const Qr = async (e, t, o, n) => {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
return /* @__PURE__ */ v(R, { children: [
|
|
1904
1904
|
/* @__PURE__ */ v(
|
|
1905
|
-
|
|
1905
|
+
_t,
|
|
1906
1906
|
{
|
|
1907
1907
|
showConfirmation: l,
|
|
1908
1908
|
setShowConfirmation: h,
|
|
@@ -1913,7 +1913,7 @@ const Qr = async (e, t, o, n) => {
|
|
|
1913
1913
|
accessToken: await s(),
|
|
1914
1914
|
type: F.DELETE_CHAT,
|
|
1915
1915
|
params: {
|
|
1916
|
-
userId: (
|
|
1916
|
+
userId: (n == null ? void 0 : n.username) || "",
|
|
1917
1917
|
id: p.id
|
|
1918
1918
|
}
|
|
1919
1919
|
});
|
|
@@ -1937,18 +1937,19 @@ const Qr = async (e, t, o, n) => {
|
|
|
1937
1937
|
/* @__PURE__ */ v("li", { children: [
|
|
1938
1938
|
"First message:",
|
|
1939
1939
|
" ",
|
|
1940
|
-
/* @__PURE__ */ r("span", { className: "text-lg", children: (
|
|
1940
|
+
/* @__PURE__ */ r("span", { className: "text-lg", children: (T = i.current) == null ? void 0 : T.message })
|
|
1941
1941
|
] })
|
|
1942
1942
|
] })
|
|
1943
1943
|
]
|
|
1944
1944
|
}
|
|
1945
1945
|
),
|
|
1946
|
-
/* @__PURE__ */ v(
|
|
1947
|
-
/* @__PURE__ */ r(
|
|
1948
|
-
u && /* @__PURE__ */ r(
|
|
1946
|
+
/* @__PURE__ */ v(Xt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
|
|
1947
|
+
/* @__PURE__ */ r(Jt, { children: /* @__PURE__ */ v(Ee, { children: [
|
|
1948
|
+
u && /* @__PURE__ */ r(B, { className: "sr-only", children: "Row" }),
|
|
1949
1949
|
/* @__PURE__ */ r(
|
|
1950
|
-
|
|
1950
|
+
Qt,
|
|
1951
1951
|
{
|
|
1952
|
+
buttonClassName: "text-xs sm:text-sm",
|
|
1952
1953
|
cellId: "timestamp",
|
|
1953
1954
|
align: "left",
|
|
1954
1955
|
sortDirection: m.sortDirection,
|
|
@@ -1959,34 +1960,29 @@ const Qr = async (e, t, o, n) => {
|
|
|
1959
1960
|
children: "Date"
|
|
1960
1961
|
}
|
|
1961
1962
|
),
|
|
1962
|
-
/* @__PURE__ */ r(
|
|
1963
|
-
/* @__PURE__ */ r(
|
|
1964
|
-
/* @__PURE__ */ r(
|
|
1963
|
+
/* @__PURE__ */ r(B, { className: "text-xs sm:text-sm", children: "First message" }),
|
|
1964
|
+
/* @__PURE__ */ r(B, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
1965
|
+
/* @__PURE__ */ r(B, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
1965
1966
|
] }) }),
|
|
1966
|
-
/* @__PURE__ */ r(
|
|
1967
|
+
/* @__PURE__ */ r(eo, { children: d.map((p, k) => {
|
|
1967
1968
|
var N;
|
|
1968
1969
|
return ((N = p == null ? void 0 : p.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ v(Ee, { children: [
|
|
1969
|
-
u && /* @__PURE__ */ r(
|
|
1970
|
+
u && /* @__PURE__ */ r(B, { children: k + 1 }),
|
|
1970
1971
|
/* @__PURE__ */ r(
|
|
1971
|
-
|
|
1972
|
+
B,
|
|
1972
1973
|
{
|
|
1973
1974
|
component: "th",
|
|
1974
1975
|
scope: "row",
|
|
1975
|
-
className: "
|
|
1976
|
+
className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm",
|
|
1976
1977
|
children: p.timestamp
|
|
1977
1978
|
}
|
|
1978
1979
|
),
|
|
1979
|
-
/* @__PURE__ */ r(
|
|
1980
|
-
/* @__PURE__ */
|
|
1981
|
-
|
|
1982
|
-
{
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
className: "hidden md:table-cell font-medium text-gray-400 sm:whitespace-nowrap",
|
|
1986
|
-
children: p.model
|
|
1987
|
-
}
|
|
1988
|
-
),
|
|
1989
|
-
/* @__PURE__ */ r(P, { children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
|
|
1980
|
+
/* @__PURE__ */ r(B, { className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm", children: Xe(p.messages) }),
|
|
1981
|
+
/* @__PURE__ */ v(B, { component: "th", scope: "row", className: "text-gray-400", children: [
|
|
1982
|
+
p.model && p.model.startsWith("claude") && /* @__PURE__ */ r(lt, { className: "size-4 sm:size-5" }),
|
|
1983
|
+
p.model && p.model.startsWith("gpt") && /* @__PURE__ */ r(ct, { className: "size-4 sm:size-5" })
|
|
1984
|
+
] }),
|
|
1985
|
+
/* @__PURE__ */ r(B, { className: "px-2", children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
|
|
1990
1986
|
/* @__PURE__ */ r(
|
|
1991
1987
|
Y,
|
|
1992
1988
|
{
|
|
@@ -1998,7 +1994,7 @@ const Qr = async (e, t, o, n) => {
|
|
|
1998
1994
|
Qr(
|
|
1999
1995
|
p,
|
|
2000
1996
|
o,
|
|
2001
|
-
|
|
1997
|
+
a,
|
|
2002
1998
|
I
|
|
2003
1999
|
);
|
|
2004
2000
|
},
|
|
@@ -2018,13 +2014,13 @@ const Qr = async (e, t, o, n) => {
|
|
|
2018
2014
|
message: Xe(p.messages)
|
|
2019
2015
|
}, h(!l);
|
|
2020
2016
|
},
|
|
2021
|
-
children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(
|
|
2017
|
+
children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(xo, { className: "h-3 w-3", monotone: !0 }) })
|
|
2022
2018
|
}
|
|
2023
2019
|
)
|
|
2024
2020
|
] }) })
|
|
2025
|
-
] }, `${
|
|
2021
|
+
] }, `${w.HISTORY.TITLE}-${p.id}-${k}`) : null;
|
|
2026
2022
|
}) }),
|
|
2027
|
-
/* @__PURE__ */ r(
|
|
2023
|
+
/* @__PURE__ */ r(to, { children: /* @__PURE__ */ r(Ee, { children: /* @__PURE__ */ r(B, { colSpan: 5, children: /* @__PURE__ */ r("div", { children: fe(
|
|
2028
2024
|
`${e.data.length} chat`,
|
|
2029
2025
|
e.data.length
|
|
2030
2026
|
) }) }) }) })
|
|
@@ -2034,25 +2030,25 @@ const Qr = async (e, t, o, n) => {
|
|
|
2034
2030
|
function Je(e, t) {
|
|
2035
2031
|
return t ? e.filter(
|
|
2036
2032
|
(o) => o.messages.some(
|
|
2037
|
-
(
|
|
2033
|
+
(a) => a.content !== null && a.content.toLowerCase().includes(t.toLowerCase())
|
|
2038
2034
|
)
|
|
2039
2035
|
) : e;
|
|
2040
2036
|
}
|
|
2041
|
-
const
|
|
2037
|
+
const ta = ({
|
|
2042
2038
|
onOpenChange: e,
|
|
2043
2039
|
historyData: t
|
|
2044
2040
|
}) => {
|
|
2045
|
-
const { isAuthenticated: o } = te(),
|
|
2046
|
-
key:
|
|
2041
|
+
const { isAuthenticated: o } = te(), a = ce(null), { dispatch: n } = $(me), { state: s, dispatch: i } = $(tt), [, l] = G({
|
|
2042
|
+
key: D + Gt,
|
|
2047
2043
|
initialValue: s.searchString
|
|
2048
|
-
}), h =
|
|
2044
|
+
}), h = no(() => t, [t]), [u, m] = S({
|
|
2049
2045
|
data: h
|
|
2050
2046
|
}), g = (c) => {
|
|
2051
2047
|
const y = Je(h, c);
|
|
2052
2048
|
m({
|
|
2053
2049
|
data: y
|
|
2054
2050
|
}), l(c), i({
|
|
2055
|
-
type:
|
|
2051
|
+
type: jt,
|
|
2056
2052
|
payload: { searchString: c }
|
|
2057
2053
|
});
|
|
2058
2054
|
}, b = (c) => {
|
|
@@ -2070,11 +2066,11 @@ const tn = ({
|
|
|
2070
2066
|
});
|
|
2071
2067
|
}, [t, s.searchString]), o ? u && u.data && /* @__PURE__ */ v(R, { children: [
|
|
2072
2068
|
/* @__PURE__ */ r("form", { autoComplete: "off", onSubmit: d, children: /* @__PURE__ */ r(
|
|
2073
|
-
|
|
2069
|
+
Ut,
|
|
2074
2070
|
{
|
|
2075
2071
|
autoComplete: "off",
|
|
2076
2072
|
autoCorrect: "off",
|
|
2077
|
-
ref:
|
|
2073
|
+
ref: a,
|
|
2078
2074
|
defaultValue: s.searchString,
|
|
2079
2075
|
focusMode: "light",
|
|
2080
2076
|
name: "Search",
|
|
@@ -2091,7 +2087,7 @@ const tn = ({
|
|
|
2091
2087
|
size: "small",
|
|
2092
2088
|
onClick: () => {
|
|
2093
2089
|
var c;
|
|
2094
|
-
g(""), (c =
|
|
2090
|
+
g(""), (c = a.current) != null && c.value && (a.current.value = "", a.current.focus());
|
|
2095
2091
|
},
|
|
2096
2092
|
children: "Reset"
|
|
2097
2093
|
}
|
|
@@ -2100,43 +2096,34 @@ const tn = ({
|
|
|
2100
2096
|
}
|
|
2101
2097
|
) }),
|
|
2102
2098
|
/* @__PURE__ */ r("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ r(
|
|
2103
|
-
|
|
2099
|
+
ea,
|
|
2104
2100
|
{
|
|
2105
2101
|
filteredHistory: u,
|
|
2106
2102
|
setFilteredHistory: m,
|
|
2107
|
-
dispatch:
|
|
2103
|
+
dispatch: n,
|
|
2108
2104
|
onOpenChange: e
|
|
2109
2105
|
}
|
|
2110
2106
|
) })
|
|
2111
2107
|
] }) : null;
|
|
2112
|
-
},
|
|
2108
|
+
}, oa = ({
|
|
2113
2109
|
open: e,
|
|
2114
2110
|
onOpenChange: t,
|
|
2115
2111
|
historyData: o
|
|
2116
|
-
}) => /* @__PURE__ */ r(
|
|
2117
|
-
X,
|
|
2118
|
-
{
|
|
2119
|
-
open: e,
|
|
2120
|
-
onOpenChange: t,
|
|
2121
|
-
title: Ut,
|
|
2122
|
-
className: "max-2-xl sm:max-w-4xl xl:max-w-5xl",
|
|
2123
|
-
children: /* @__PURE__ */ r(tn, { onOpenChange: t, historyData: o })
|
|
2124
|
-
}
|
|
2125
|
-
);
|
|
2112
|
+
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Kt, children: /* @__PURE__ */ r(ta, { onOpenChange: t, historyData: o }) });
|
|
2126
2113
|
/*!
|
|
2127
|
-
@versini/ui-toggle v1.0.
|
|
2114
|
+
@versini/ui-toggle v1.0.8
|
|
2128
2115
|
© 2024 gizmette.com
|
|
2129
2116
|
*/
|
|
2130
2117
|
try {
|
|
2131
2118
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
2132
|
-
version: "1.0.
|
|
2133
|
-
buildTime: "
|
|
2119
|
+
version: "1.0.8",
|
|
2120
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2134
2121
|
homepage: "https://github.com/aversini/ui-components",
|
|
2135
2122
|
license: "MIT"
|
|
2136
2123
|
});
|
|
2137
2124
|
} catch {
|
|
2138
2125
|
}
|
|
2139
|
-
const
|
|
2126
|
+
const ra = "av-toggle", aa = (e) => {
|
|
2140
2127
|
let t = "";
|
|
2141
2128
|
if (typeof e == "number" || typeof e == "string")
|
|
2142
2129
|
t = "m-" + e;
|
|
@@ -2145,7 +2132,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2145
2132
|
(e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
|
|
2146
2133
|
}
|
|
2147
2134
|
return t;
|
|
2148
|
-
},
|
|
2135
|
+
}, na = () => C("peer", "h-6", "w-11", "rounded-full"), sa = ({
|
|
2149
2136
|
focusMode: e
|
|
2150
2137
|
}) => C(
|
|
2151
2138
|
"peer-focus:outline",
|
|
@@ -2157,14 +2144,14 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2157
2144
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
2158
2145
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
2159
2146
|
}
|
|
2160
|
-
),
|
|
2147
|
+
), ia = () => C(
|
|
2161
2148
|
"peer-checked:after:translate-x-full",
|
|
2162
2149
|
// background color when checked
|
|
2163
2150
|
"peer-checked:bg-violet-500",
|
|
2164
2151
|
// knob circle and border color when checked
|
|
2165
2152
|
"peer-checked:after:bg-white",
|
|
2166
2153
|
"peer-checked:after:border-white"
|
|
2167
|
-
),
|
|
2154
|
+
), la = () => C(
|
|
2168
2155
|
"after:left-[2px]",
|
|
2169
2156
|
"after:top-[2px]",
|
|
2170
2157
|
"after:border",
|
|
@@ -2176,7 +2163,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2176
2163
|
"after:rounded-full",
|
|
2177
2164
|
"after:transition-all",
|
|
2178
2165
|
"after:content-['']"
|
|
2179
|
-
),
|
|
2166
|
+
), ca = ({
|
|
2180
2167
|
mode: e,
|
|
2181
2168
|
noBorder: t
|
|
2182
2169
|
}) => C({
|
|
@@ -2185,7 +2172,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2185
2172
|
"border-border-light bg-surface-darker": e === "dark",
|
|
2186
2173
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
2187
2174
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
2188
|
-
}),
|
|
2175
|
+
}), da = ({
|
|
2189
2176
|
mode: e,
|
|
2190
2177
|
labelHidden: t
|
|
2191
2178
|
}) => t ? "sr-only" : C("ml-2 text-sm", {
|
|
@@ -2193,42 +2180,42 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2193
2180
|
"text-copy-lighter": e === "dark",
|
|
2194
2181
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
2195
2182
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
2196
|
-
}),
|
|
2197
|
-
|
|
2183
|
+
}), ua = ({ spacing: e }) => C(
|
|
2184
|
+
ra,
|
|
2198
2185
|
"relative flex cursor-pointer items-center",
|
|
2199
|
-
|
|
2200
|
-
),
|
|
2186
|
+
aa(e)
|
|
2187
|
+
), ma = ({
|
|
2201
2188
|
mode: e,
|
|
2202
2189
|
focusMode: t,
|
|
2203
2190
|
labelHidden: o,
|
|
2204
|
-
spacing:
|
|
2205
|
-
noBorder:
|
|
2191
|
+
spacing: a,
|
|
2192
|
+
noBorder: n
|
|
2206
2193
|
}) => ({
|
|
2207
2194
|
toggle: C(
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2195
|
+
na(),
|
|
2196
|
+
ca({ mode: e, noBorder: n }),
|
|
2197
|
+
sa({ focusMode: t }),
|
|
2198
|
+
la(),
|
|
2199
|
+
ia()
|
|
2213
2200
|
),
|
|
2214
|
-
label:
|
|
2201
|
+
label: da({ mode: e, labelHidden: o }),
|
|
2215
2202
|
input: "peer sr-only",
|
|
2216
|
-
wrapper:
|
|
2203
|
+
wrapper: ua({ spacing: a })
|
|
2217
2204
|
}), q = ({
|
|
2218
2205
|
checked: e = !1,
|
|
2219
2206
|
onChange: t,
|
|
2220
2207
|
label: o,
|
|
2221
|
-
labelHidden:
|
|
2222
|
-
name:
|
|
2208
|
+
labelHidden: a = !1,
|
|
2209
|
+
name: n,
|
|
2223
2210
|
mode: s = "system",
|
|
2224
2211
|
focusMode: i = "system",
|
|
2225
2212
|
spacing: l,
|
|
2226
2213
|
noBorder: h = !1
|
|
2227
2214
|
}) => {
|
|
2228
|
-
const u =
|
|
2215
|
+
const u = ma({
|
|
2229
2216
|
mode: s,
|
|
2230
2217
|
focusMode: i,
|
|
2231
|
-
labelHidden:
|
|
2218
|
+
labelHidden: a,
|
|
2232
2219
|
spacing: l,
|
|
2233
2220
|
noBorder: h
|
|
2234
2221
|
}), m = (g) => {
|
|
@@ -2238,7 +2225,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2238
2225
|
/* @__PURE__ */ r(
|
|
2239
2226
|
"input",
|
|
2240
2227
|
{
|
|
2241
|
-
name:
|
|
2228
|
+
name: n,
|
|
2242
2229
|
checked: e,
|
|
2243
2230
|
type: "checkbox",
|
|
2244
2231
|
className: u.input,
|
|
@@ -2248,27 +2235,27 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2248
2235
|
/* @__PURE__ */ r("div", { className: u.toggle }),
|
|
2249
2236
|
/* @__PURE__ */ r("span", { className: u.label, children: o })
|
|
2250
2237
|
] });
|
|
2251
|
-
},
|
|
2238
|
+
}, ha = ({
|
|
2252
2239
|
open: e,
|
|
2253
2240
|
onOpenChange: t
|
|
2254
2241
|
}) => {
|
|
2255
|
-
const { dispatch: o } =
|
|
2242
|
+
const { dispatch: o } = $(me), { getAccessToken: a, user: n } = te(), [s, i] = S({
|
|
2256
2243
|
loaded: !1,
|
|
2257
2244
|
instructions: "",
|
|
2258
2245
|
loadingLocation: !1,
|
|
2259
2246
|
location: "",
|
|
2260
2247
|
engine: ie
|
|
2261
2248
|
}), [l, h] = G({
|
|
2262
|
-
key:
|
|
2249
|
+
key: D + ot,
|
|
2263
2250
|
initialValue: !1
|
|
2264
2251
|
}), u = async (d) => {
|
|
2265
2252
|
d.preventDefault();
|
|
2266
2253
|
try {
|
|
2267
2254
|
await H({
|
|
2268
|
-
accessToken: await
|
|
2255
|
+
accessToken: await a(),
|
|
2269
2256
|
type: F.SET_USER_PREFERENCES,
|
|
2270
2257
|
params: {
|
|
2271
|
-
user:
|
|
2258
|
+
user: n == null ? void 0 : n.username,
|
|
2272
2259
|
instructions: s.instructions,
|
|
2273
2260
|
location: s.location,
|
|
2274
2261
|
engine: s.engine
|
|
@@ -2288,8 +2275,8 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2288
2275
|
loadingLocation: !0
|
|
2289
2276
|
}));
|
|
2290
2277
|
try {
|
|
2291
|
-
const d = Date.now(), c = await
|
|
2292
|
-
accessToken: await
|
|
2278
|
+
const d = Date.now(), c = await Wt(), y = await H({
|
|
2279
|
+
accessToken: await a(),
|
|
2293
2280
|
type: F.GET_LOCATION,
|
|
2294
2281
|
params: {
|
|
2295
2282
|
latitude: c.latitude,
|
|
@@ -2298,8 +2285,8 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2298
2285
|
}), p = Date.now() - d;
|
|
2299
2286
|
if (p < 2e3 && await new Promise((k) => setTimeout(k, 2e3 - p)), y.status === 200) {
|
|
2300
2287
|
const { city: k, state: N, country: I, displayName: M } = y.data, _ = k && N && I ? `${k}, ${N}, ${I}` : M;
|
|
2301
|
-
i((
|
|
2302
|
-
...
|
|
2288
|
+
i((z) => ({
|
|
2289
|
+
...z,
|
|
2303
2290
|
loaded: !0,
|
|
2304
2291
|
location: _,
|
|
2305
2292
|
loadingLocation: !1
|
|
@@ -2316,16 +2303,16 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2316
2303
|
}, g = (d) => {
|
|
2317
2304
|
i((c) => ({
|
|
2318
2305
|
...c,
|
|
2319
|
-
engine: d ?
|
|
2306
|
+
engine: d ? Te : pe
|
|
2320
2307
|
}));
|
|
2321
2308
|
}, b = (d) => {
|
|
2322
2309
|
i((c) => ({
|
|
2323
2310
|
...c,
|
|
2324
|
-
engine: d ? pe :
|
|
2311
|
+
engine: d ? pe : Te
|
|
2325
2312
|
}));
|
|
2326
2313
|
};
|
|
2327
2314
|
return U(() => {
|
|
2328
|
-
if (!e || !
|
|
2315
|
+
if (!e || !n) {
|
|
2329
2316
|
i({
|
|
2330
2317
|
loaded: !1,
|
|
2331
2318
|
loadingLocation: !1,
|
|
@@ -2338,10 +2325,10 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2338
2325
|
(async () => {
|
|
2339
2326
|
try {
|
|
2340
2327
|
const d = await H({
|
|
2341
|
-
accessToken: await
|
|
2328
|
+
accessToken: await a(),
|
|
2342
2329
|
type: F.GET_USER_PREFERENCES,
|
|
2343
2330
|
params: {
|
|
2344
|
-
user:
|
|
2331
|
+
user: n.username
|
|
2345
2332
|
}
|
|
2346
2333
|
});
|
|
2347
2334
|
d.status === 200 && i((c) => ({
|
|
@@ -2354,7 +2341,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2354
2341
|
} catch {
|
|
2355
2342
|
}
|
|
2356
2343
|
})();
|
|
2357
|
-
}, [
|
|
2344
|
+
}, [n, e]), /* @__PURE__ */ r(R, { children: s.loaded && /* @__PURE__ */ r(
|
|
2358
2345
|
X,
|
|
2359
2346
|
{
|
|
2360
2347
|
open: e,
|
|
@@ -2396,7 +2383,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2396
2383
|
),
|
|
2397
2384
|
children: /* @__PURE__ */ v(R, { children: [
|
|
2398
2385
|
/* @__PURE__ */ v(
|
|
2399
|
-
|
|
2386
|
+
P,
|
|
2400
2387
|
{
|
|
2401
2388
|
header: "AI Engine",
|
|
2402
2389
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2409,7 +2396,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2409
2396
|
label: "OpenAI",
|
|
2410
2397
|
name: "OpenAI",
|
|
2411
2398
|
onChange: g,
|
|
2412
|
-
checked: s.engine ===
|
|
2399
|
+
checked: s.engine === Te
|
|
2413
2400
|
}
|
|
2414
2401
|
),
|
|
2415
2402
|
/* @__PURE__ */ r(
|
|
@@ -2440,7 +2427,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2440
2427
|
}
|
|
2441
2428
|
),
|
|
2442
2429
|
/* @__PURE__ */ v(
|
|
2443
|
-
|
|
2430
|
+
P,
|
|
2444
2431
|
{
|
|
2445
2432
|
spacing: { t: 4 },
|
|
2446
2433
|
header: "Custom Instructions",
|
|
@@ -2471,7 +2458,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2471
2458
|
}
|
|
2472
2459
|
),
|
|
2473
2460
|
/* @__PURE__ */ v(
|
|
2474
|
-
|
|
2461
|
+
P,
|
|
2475
2462
|
{
|
|
2476
2463
|
header: "Location",
|
|
2477
2464
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2512,34 +2499,34 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2512
2499
|
] })
|
|
2513
2500
|
}
|
|
2514
2501
|
) });
|
|
2515
|
-
},
|
|
2502
|
+
}, ga = ({
|
|
2516
2503
|
open: e,
|
|
2517
2504
|
onOpenChange: t
|
|
2518
2505
|
}) => {
|
|
2519
|
-
const [o,
|
|
2520
|
-
key:
|
|
2506
|
+
const [o, a] = G({
|
|
2507
|
+
key: D + $e,
|
|
2521
2508
|
initialValue: !1
|
|
2522
|
-
}), [
|
|
2523
|
-
key:
|
|
2509
|
+
}), [n, s] = G({
|
|
2510
|
+
key: D + De,
|
|
2524
2511
|
initialValue: !1
|
|
2525
2512
|
}), [i, l] = G({
|
|
2526
|
-
key:
|
|
2513
|
+
key: D + He,
|
|
2527
2514
|
initialValue: !1
|
|
2528
2515
|
}), h = (g) => {
|
|
2529
|
-
|
|
2516
|
+
a(g);
|
|
2530
2517
|
}, u = (g) => {
|
|
2531
2518
|
s(g);
|
|
2532
2519
|
}, m = (g) => {
|
|
2533
2520
|
l(g);
|
|
2534
2521
|
};
|
|
2535
|
-
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(
|
|
2536
|
-
/* @__PURE__ */ r("p", { children:
|
|
2522
|
+
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(P, { header: w.TAGS.TITLE, className: "prose-dark dark:prose-lighter", children: [
|
|
2523
|
+
/* @__PURE__ */ r("p", { children: w.TAGS.DESCRIPTION }),
|
|
2537
2524
|
/* @__PURE__ */ r(
|
|
2538
2525
|
q,
|
|
2539
2526
|
{
|
|
2540
2527
|
noBorder: !0,
|
|
2541
|
-
label:
|
|
2542
|
-
name:
|
|
2528
|
+
label: we[Ne.SUMMARIZE_ARTICLE].label,
|
|
2529
|
+
name: $e,
|
|
2543
2530
|
onChange: h,
|
|
2544
2531
|
checked: o
|
|
2545
2532
|
}
|
|
@@ -2549,10 +2536,10 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2549
2536
|
{
|
|
2550
2537
|
spacing: { t: 2 },
|
|
2551
2538
|
noBorder: !0,
|
|
2552
|
-
label:
|
|
2553
|
-
name:
|
|
2539
|
+
label: we[Ne.PROOFREAD_CONTENT].label,
|
|
2540
|
+
name: De,
|
|
2554
2541
|
onChange: u,
|
|
2555
|
-
checked:
|
|
2542
|
+
checked: n
|
|
2556
2543
|
}
|
|
2557
2544
|
),
|
|
2558
2545
|
/* @__PURE__ */ r(
|
|
@@ -2560,16 +2547,16 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2560
2547
|
{
|
|
2561
2548
|
spacing: { t: 2 },
|
|
2562
2549
|
noBorder: !0,
|
|
2563
|
-
label:
|
|
2550
|
+
label: we[Ne.REPHRASE_CONTENT].label,
|
|
2564
2551
|
name: He,
|
|
2565
2552
|
onChange: m,
|
|
2566
2553
|
checked: i
|
|
2567
2554
|
}
|
|
2568
2555
|
)
|
|
2569
2556
|
] }) });
|
|
2570
|
-
},
|
|
2571
|
-
const { isAuthenticated: e, user: t, registeringForPasskey: o, authenticationType:
|
|
2572
|
-
key:
|
|
2557
|
+
}, pa = () => {
|
|
2558
|
+
const { isAuthenticated: e, user: t, registeringForPasskey: o, authenticationType: a } = te(), [n, s] = G({
|
|
2559
|
+
key: D + Yt,
|
|
2573
2560
|
initialValue: !1
|
|
2574
2561
|
}), [i, l] = S(!1), [h, u] = S(!1), m = de(), g = (t == null ? void 0 : t.username) || "", b = (y) => {
|
|
2575
2562
|
s(y);
|
|
@@ -2580,31 +2567,31 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2580
2567
|
};
|
|
2581
2568
|
return e && g ? /* @__PURE__ */ v(R, { children: [
|
|
2582
2569
|
i && /* @__PURE__ */ r(
|
|
2583
|
-
|
|
2570
|
+
ha,
|
|
2584
2571
|
{
|
|
2585
2572
|
open: i,
|
|
2586
2573
|
onOpenChange: l
|
|
2587
2574
|
}
|
|
2588
2575
|
),
|
|
2589
|
-
h && /* @__PURE__ */ r(
|
|
2576
|
+
h && /* @__PURE__ */ r(ga, { open: h, onOpenChange: u }),
|
|
2590
2577
|
/* @__PURE__ */ v(
|
|
2591
|
-
|
|
2578
|
+
P,
|
|
2592
2579
|
{
|
|
2593
|
-
header:
|
|
2580
|
+
header: w.PREFERENCES.TITLE,
|
|
2594
2581
|
className: "prose-dark dark:prose-lighter",
|
|
2595
2582
|
children: [
|
|
2596
2583
|
le(m, {
|
|
2597
|
-
[
|
|
2598
|
-
[
|
|
2599
|
-
[
|
|
2584
|
+
[w.PREFERENCES.NAME]: g,
|
|
2585
|
+
[w.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
|
|
2586
|
+
[w.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ r(
|
|
2600
2587
|
q,
|
|
2601
2588
|
{
|
|
2602
2589
|
noBorder: !0,
|
|
2603
2590
|
labelHidden: !0,
|
|
2604
|
-
label:
|
|
2605
|
-
name:
|
|
2591
|
+
label: w.PREFERENCES.ENGINE_DETAILS,
|
|
2592
|
+
name: w.PREFERENCES.ENGINE_DETAILS,
|
|
2606
2593
|
onChange: b,
|
|
2607
|
-
checked:
|
|
2594
|
+
checked: n
|
|
2608
2595
|
}
|
|
2609
2596
|
)
|
|
2610
2597
|
}),
|
|
@@ -2631,24 +2618,24 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2631
2618
|
]
|
|
2632
2619
|
}
|
|
2633
2620
|
),
|
|
2634
|
-
|
|
2635
|
-
|
|
2621
|
+
a !== Zt.PASSKEY && /* @__PURE__ */ v(
|
|
2622
|
+
P,
|
|
2636
2623
|
{
|
|
2637
2624
|
spacing: { t: 4 },
|
|
2638
2625
|
className: "prose-dark dark:prose-lighter",
|
|
2639
2626
|
header: /* @__PURE__ */ r("h2", { className: "m-0", children: /* @__PURE__ */ v(Me, { columnGap: 3, alignVertical: "center", children: [
|
|
2640
2627
|
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(Fe, { className: "size-8" }) }),
|
|
2641
|
-
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children:
|
|
2628
|
+
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children: w.PREFERENCES.PASSKEY_TITLE }) })
|
|
2642
2629
|
] }) }),
|
|
2643
2630
|
children: [
|
|
2644
|
-
/* @__PURE__ */ r("p", { children:
|
|
2631
|
+
/* @__PURE__ */ r("p", { children: w.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2645
2632
|
/* @__PURE__ */ r(
|
|
2646
2633
|
Y,
|
|
2647
2634
|
{
|
|
2648
2635
|
size: "small",
|
|
2649
2636
|
spacing: { t: 2 },
|
|
2650
2637
|
onClick: o,
|
|
2651
|
-
labelLeft:
|
|
2638
|
+
labelLeft: w.PREFERENCES.PASSKEY_BUTTON,
|
|
2652
2639
|
children: /* @__PURE__ */ r(Fe, { className: "size-5", monotone: !0 })
|
|
2653
2640
|
}
|
|
2654
2641
|
)
|
|
@@ -2656,18 +2643,18 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2656
2643
|
}
|
|
2657
2644
|
)
|
|
2658
2645
|
] }) : null;
|
|
2659
|
-
},
|
|
2646
|
+
}, fa = ({
|
|
2660
2647
|
open: e,
|
|
2661
2648
|
onOpenChange: t
|
|
2662
|
-
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title:
|
|
2663
|
-
const { state: e, dispatch: t, serverStats: o } =
|
|
2649
|
+
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ r(pa, {}) }), Na = () => {
|
|
2650
|
+
const { state: e, dispatch: t, serverStats: o } = $(me), [a, n] = S((e == null ? void 0 : e.engine) || ie), [s, i] = S(!1), [l, h] = S(!1), [u, m] = S(!1), [g, b] = S(!1), [d, c] = S([]), [y, T] = S(!1), [p, k] = S({
|
|
2664
2651
|
done: !1,
|
|
2665
2652
|
progress: !1,
|
|
2666
2653
|
timestamp: Date.now()
|
|
2667
2654
|
}), [N] = G({
|
|
2668
|
-
key:
|
|
2655
|
+
key: D + ot,
|
|
2669
2656
|
initialValue: !1
|
|
2670
|
-
}), { logout: I, getAccessToken: M, user: _ } = te(),
|
|
2657
|
+
}), { logout: I, getAccessToken: M, user: _ } = te(), z = () => {
|
|
2671
2658
|
i(!s);
|
|
2672
2659
|
}, E = () => {
|
|
2673
2660
|
h(!l);
|
|
@@ -2704,17 +2691,17 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2704
2691
|
});
|
|
2705
2692
|
}
|
|
2706
2693
|
}
|
|
2707
|
-
},
|
|
2708
|
-
|
|
2694
|
+
}, ae = () => {
|
|
2695
|
+
T(!y);
|
|
2709
2696
|
};
|
|
2710
2697
|
return U(() => {
|
|
2711
|
-
e && e.engine && e.engine !==
|
|
2712
|
-
}, [e,
|
|
2698
|
+
e && e.engine && e.engine !== a && n(e.engine);
|
|
2699
|
+
}, [e, a]), /* @__PURE__ */ v(R, { children: [
|
|
2713
2700
|
/* @__PURE__ */ r(
|
|
2714
|
-
|
|
2701
|
+
_t,
|
|
2715
2702
|
{
|
|
2716
2703
|
showConfirmation: y,
|
|
2717
|
-
setShowConfirmation:
|
|
2704
|
+
setShowConfirmation: T,
|
|
2718
2705
|
action: I,
|
|
2719
2706
|
customStrings: {
|
|
2720
2707
|
confirmAction: Ge,
|
|
@@ -2724,10 +2711,10 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2724
2711
|
children: /* @__PURE__ */ r("p", { children: "Are you sure you want to log out?" })
|
|
2725
2712
|
}
|
|
2726
2713
|
),
|
|
2727
|
-
/* @__PURE__ */ r(
|
|
2714
|
+
/* @__PURE__ */ r(fa, { open: s, onOpenChange: i }),
|
|
2728
2715
|
/* @__PURE__ */ r(Zr, { open: l, onOpenChange: h }),
|
|
2729
2716
|
/* @__PURE__ */ r(
|
|
2730
|
-
|
|
2717
|
+
oa,
|
|
2731
2718
|
{
|
|
2732
2719
|
open: u,
|
|
2733
2720
|
onOpenChange: m,
|
|
@@ -2741,15 +2728,15 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2741
2728
|
{
|
|
2742
2729
|
mode: "dark",
|
|
2743
2730
|
focusMode: "light",
|
|
2744
|
-
trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(
|
|
2731
|
+
trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(lt, {}) : /* @__PURE__ */ r(ct, {}) }),
|
|
2745
2732
|
defaultPlacement: "bottom-start",
|
|
2746
2733
|
children: /* @__PURE__ */ r(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ r(
|
|
2747
|
-
|
|
2734
|
+
Tr,
|
|
2748
2735
|
{
|
|
2749
2736
|
size: "small",
|
|
2750
2737
|
mode: "dark",
|
|
2751
2738
|
focusMode: "light",
|
|
2752
|
-
value:
|
|
2739
|
+
value: a,
|
|
2753
2740
|
onValueChange: async (L) => {
|
|
2754
2741
|
if (L)
|
|
2755
2742
|
try {
|
|
@@ -2769,7 +2756,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2769
2756
|
} catch {
|
|
2770
2757
|
}
|
|
2771
2758
|
},
|
|
2772
|
-
children: o && o.engines.map((L) => /* @__PURE__ */ r(
|
|
2759
|
+
children: o && o.engines.map((L) => /* @__PURE__ */ r(wr, { value: L }, L))
|
|
2773
2760
|
}
|
|
2774
2761
|
) })
|
|
2775
2762
|
}
|
|
@@ -2787,7 +2774,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2787
2774
|
W,
|
|
2788
2775
|
{
|
|
2789
2776
|
label: "Profile",
|
|
2790
|
-
onClick:
|
|
2777
|
+
onClick: z,
|
|
2791
2778
|
icon: /* @__PURE__ */ r(_o, {})
|
|
2792
2779
|
}
|
|
2793
2780
|
),
|
|
@@ -2796,7 +2783,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2796
2783
|
{
|
|
2797
2784
|
label: et,
|
|
2798
2785
|
onClick: E,
|
|
2799
|
-
icon: /* @__PURE__ */ r(
|
|
2786
|
+
icon: /* @__PURE__ */ r(Eo, {})
|
|
2800
2787
|
}
|
|
2801
2788
|
),
|
|
2802
2789
|
/* @__PURE__ */ r(
|
|
@@ -2804,7 +2791,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2804
2791
|
{
|
|
2805
2792
|
label: "History",
|
|
2806
2793
|
onClick: re,
|
|
2807
|
-
icon: /* @__PURE__ */ r(
|
|
2794
|
+
icon: /* @__PURE__ */ r(Io, {})
|
|
2808
2795
|
}
|
|
2809
2796
|
),
|
|
2810
2797
|
/* @__PURE__ */ r(
|
|
@@ -2812,7 +2799,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2812
2799
|
{
|
|
2813
2800
|
label: "About",
|
|
2814
2801
|
onClick: J,
|
|
2815
|
-
icon: /* @__PURE__ */ r(
|
|
2802
|
+
icon: /* @__PURE__ */ r(So, {})
|
|
2816
2803
|
}
|
|
2817
2804
|
),
|
|
2818
2805
|
e && e.id && !e.isComponent && /* @__PURE__ */ v(R, { children: [
|
|
@@ -2821,8 +2808,8 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2821
2808
|
W,
|
|
2822
2809
|
{
|
|
2823
2810
|
label: "Log out",
|
|
2824
|
-
onClick:
|
|
2825
|
-
icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(
|
|
2811
|
+
onClick: ae,
|
|
2812
|
+
icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(No, { monotone: !0 }) })
|
|
2826
2813
|
}
|
|
2827
2814
|
)
|
|
2828
2815
|
] })
|
|
@@ -2833,5 +2820,5 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2833
2820
|
] });
|
|
2834
2821
|
};
|
|
2835
2822
|
export {
|
|
2836
|
-
|
|
2823
|
+
Na as default
|
|
2837
2824
|
};
|