@versini/sassysaint 5.5.18 → 5.5.19
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.oZoXeHpk.js → App.CN26Vdes.js} +427 -408
- package/dist/chunks/{HeaderToolbar.BS7wgkaB.js → HeaderToolbar.RG5VcCoN.js} +671 -628
- package/dist/chunks/{MarkdownWithExtra.D6_F01Wo.js → MarkdownWithExtra.D9aZRrcd.js} +283 -276
- package/dist/chunks/{MessageAssistant.D9gVxi35.js → MessageAssistant.DpLJVr9t.js} +3 -3
- package/dist/chunks/{index.Dc-g6Ljy.js → index.DaKlCgCU.js} +86 -72
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { g as
|
|
3
|
-
import { AppContext as ve, HistoryContext as
|
|
1
|
+
import { jsx as a, jsxs as y, Fragment as z } from "react/jsx-runtime";
|
|
2
|
+
import { g as A, R as O, CARDS as S, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as Ft, L as Y, j as M, C as G, un as Q, INFINITE_SCROLL_LIMIT as Fe, INFINITE_SCROLL_THRESHOLD as Ge, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Gt, P as J, ACTION_RESET as et, ACTION_RESTORE as Vt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Ut, HISTORY_TITLE as Ht, ye as Ie, ACTION_SEARCH as jt, debounce as Wt, M as Kt, z as Ue, durationFormatter as Yt, PROFILE_TITLE as Zt, TAGS_DESCRIPTION as qt, ACTION_SET_TAGS as Qt, DEFAULT_AI_ENGINE as me, LOCAL_STORAGE_ENGINE_TOGGLE as tt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as X, APP_NAME as er, ACTION_ENGINE as rt, getCurrentGeoLocation as tr, LOG_OUT as He } from "./index.DaKlCgCU.js";
|
|
3
|
+
import { AppContext as ve, HistoryContext as at, E as le, ge as rr, he as ar, ue as xe, ie as P, ye as or, me as nr, be as sr, serviceCall as $, SERVICE_TYPES as D, f as W, TagsContext as ir, Pe as je, NewChatButton as cr } from "./App.CN26Vdes.js";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import I, { useId as ze, forwardRef as
|
|
5
|
+
import I, { useId as ze, forwardRef as ot, useState as R, useRef as Z, useContext as F, useEffect as q, useCallback as lr, Fragment as dr, useLayoutEffect as We } from "react";
|
|
6
6
|
import w from "clsx";
|
|
7
|
-
import { useFloatingTree as nt, useFloatingNodeId as ur, useListItem as st, useFloating as it, offset as mr, flip as hr, shift as gr, autoUpdate as fr, useClick as ct, useRole as lt, useDismiss as dt, useListNavigation as pr, useTypeahead as br, useInteractions as ut, useMergeRefs as
|
|
7
|
+
import { useFloatingTree as nt, useFloatingNodeId as ur, useListItem as st, useFloating as it, offset as mr, flip as hr, shift as gr, autoUpdate as fr, useClick as ct, useRole as lt, useDismiss as dt, useListNavigation as pr, useTypeahead as br, useInteractions as ut, useMergeRefs as Ae, FloatingNode as vr, FloatingList as yr, FloatingPortal as mt, FloatingFocusManager as ht, FloatingTree as kr, FloatingOverlay as wr } from "@floating-ui/react";
|
|
8
8
|
const gt = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
title: r,
|
|
12
|
-
monotone:
|
|
12
|
+
monotone: o,
|
|
13
13
|
...n
|
|
14
|
-
}) => /* @__PURE__ */
|
|
15
|
-
|
|
14
|
+
}) => /* @__PURE__ */ a(
|
|
15
|
+
A,
|
|
16
16
|
{
|
|
17
|
-
defaultViewBox: "0 0
|
|
17
|
+
defaultViewBox: "0 0 24 24",
|
|
18
18
|
size: "size-5",
|
|
19
19
|
viewBox: t,
|
|
20
20
|
className: e,
|
|
21
21
|
title: r || "Anthropic",
|
|
22
22
|
...n,
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ a("path", { d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z" })
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), Nr = ({
|
|
26
26
|
className: e,
|
|
27
27
|
viewBox: t,
|
|
28
28
|
title: r,
|
|
29
|
-
monotone:
|
|
29
|
+
monotone: o,
|
|
30
30
|
...n
|
|
31
31
|
}) => /* @__PURE__ */ y(
|
|
32
|
-
|
|
32
|
+
A,
|
|
33
33
|
{
|
|
34
34
|
defaultViewBox: "0 0 512 512",
|
|
35
35
|
size: "size-5",
|
|
@@ -38,24 +38,31 @@ const gt = ({
|
|
|
38
38
|
title: r || "Back",
|
|
39
39
|
...n,
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ a(
|
|
42
42
|
"path",
|
|
43
43
|
{
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
className: "fa-secondary",
|
|
45
|
+
opacity: o ? "1" : "0.4",
|
|
46
|
+
d: "M66.6 320c0 1.8 .1 3.5 .4 5.3C84.9 431.3 177 512 288 512c123.7 0 224-100.3 224-224c0-111-80.7-203.1-186.7-220.9c-1.8-.3-3.6-.4-5.3-.4c-15.3 0-28.9 11.1-31.5 26.7c-2.9 17.4 8.8 33.9 26.3 36.9C390.4 142.9 448 208.8 448 288c0 88.4-71.6 160-160 160c-79.2 0-145.1-57.6-157.8-133.3c-2.9-17.4-19.4-29.2-36.9-26.3c-15.6 2.6-26.7 16.2-26.7 31.5z"
|
|
46
47
|
}
|
|
47
48
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ a(
|
|
50
|
+
"path",
|
|
51
|
+
{
|
|
52
|
+
className: "fa-primary",
|
|
53
|
+
d: "M32 0L192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-82.7 0L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3 64 192c0 17.7-14.3 32-32 32s-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0z"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
49
56
|
]
|
|
50
57
|
}
|
|
51
|
-
),
|
|
58
|
+
), Cr = ({
|
|
52
59
|
className: e,
|
|
53
60
|
viewBox: t,
|
|
54
61
|
title: r,
|
|
55
|
-
monotone:
|
|
62
|
+
monotone: o,
|
|
56
63
|
...n
|
|
57
64
|
}) => /* @__PURE__ */ y(
|
|
58
|
-
|
|
65
|
+
A,
|
|
59
66
|
{
|
|
60
67
|
defaultViewBox: "0 0 448 512",
|
|
61
68
|
size: "size-5",
|
|
@@ -64,24 +71,31 @@ const gt = ({
|
|
|
64
71
|
title: r || "Delete",
|
|
65
72
|
...n,
|
|
66
73
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ a(
|
|
68
75
|
"path",
|
|
69
76
|
{
|
|
70
|
-
|
|
71
|
-
|
|
77
|
+
className: "fa-secondary",
|
|
78
|
+
opacity: o ? "1" : "0.4",
|
|
79
|
+
d: "M32 96l0 352c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-352L32 96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16l0 224c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-224z"
|
|
72
80
|
}
|
|
73
81
|
),
|
|
74
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ a(
|
|
83
|
+
"path",
|
|
84
|
+
{
|
|
85
|
+
className: "fa-primary",
|
|
86
|
+
d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0z"
|
|
87
|
+
}
|
|
88
|
+
)
|
|
75
89
|
]
|
|
76
90
|
}
|
|
77
91
|
), xr = ({
|
|
78
92
|
className: e,
|
|
79
93
|
viewBox: t,
|
|
80
94
|
title: r,
|
|
81
|
-
monotone:
|
|
95
|
+
monotone: o,
|
|
82
96
|
...n
|
|
83
97
|
}) => /* @__PURE__ */ y(
|
|
84
|
-
|
|
98
|
+
A,
|
|
85
99
|
{
|
|
86
100
|
defaultViewBox: "0 0 512 512",
|
|
87
101
|
size: "size-5",
|
|
@@ -90,24 +104,31 @@ const gt = ({
|
|
|
90
104
|
title: r || "Edit",
|
|
91
105
|
...n,
|
|
92
106
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ a(
|
|
94
108
|
"path",
|
|
95
109
|
{
|
|
96
|
-
|
|
97
|
-
|
|
110
|
+
className: "fa-secondary",
|
|
111
|
+
opacity: o ? "1" : "0.4",
|
|
112
|
+
d: "M0 160c0-53 43-96 96-96l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l256 0c17.7 0 32-14.3 32-32l0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96c0 53-43 96-96 96L96 512c-53 0-96-43-96-96L0 160z"
|
|
98
113
|
}
|
|
99
114
|
),
|
|
100
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ a(
|
|
116
|
+
"path",
|
|
117
|
+
{
|
|
118
|
+
className: "fa-primary",
|
|
119
|
+
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"
|
|
120
|
+
}
|
|
121
|
+
)
|
|
101
122
|
]
|
|
102
123
|
}
|
|
103
124
|
), Tr = ({
|
|
104
125
|
className: e,
|
|
105
126
|
viewBox: t,
|
|
106
127
|
title: r,
|
|
107
|
-
monotone:
|
|
128
|
+
monotone: o,
|
|
108
129
|
...n
|
|
109
130
|
}) => /* @__PURE__ */ y(
|
|
110
|
-
|
|
131
|
+
A,
|
|
111
132
|
{
|
|
112
133
|
defaultViewBox: "0 0 512 512",
|
|
113
134
|
size: "size-5",
|
|
@@ -116,24 +137,31 @@ const gt = ({
|
|
|
116
137
|
title: r || "History",
|
|
117
138
|
...n,
|
|
118
139
|
children: [
|
|
119
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ a(
|
|
120
141
|
"path",
|
|
121
142
|
{
|
|
122
|
-
|
|
123
|
-
|
|
143
|
+
className: "fa-secondary",
|
|
144
|
+
opacity: o ? "1" : "0.4",
|
|
145
|
+
d: "M0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9z"
|
|
124
146
|
}
|
|
125
147
|
),
|
|
126
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ a(
|
|
149
|
+
"path",
|
|
150
|
+
{
|
|
151
|
+
className: "fa-primary",
|
|
152
|
+
d: "M256 128c13.3 0 24 10.7 24 24l0 94.1 65 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-17l0-104c0-13.3 10.7-24 24-24z"
|
|
153
|
+
}
|
|
154
|
+
)
|
|
127
155
|
]
|
|
128
156
|
}
|
|
129
157
|
), Ir = ({
|
|
130
158
|
className: e,
|
|
131
159
|
viewBox: t,
|
|
132
160
|
title: r,
|
|
133
|
-
monotone:
|
|
161
|
+
monotone: o,
|
|
134
162
|
...n
|
|
135
163
|
}) => /* @__PURE__ */ y(
|
|
136
|
-
|
|
164
|
+
A,
|
|
137
165
|
{
|
|
138
166
|
defaultViewBox: "0 0 512 512",
|
|
139
167
|
size: "size-5",
|
|
@@ -142,24 +170,31 @@ const gt = ({
|
|
|
142
170
|
title: r || "Info",
|
|
143
171
|
...n,
|
|
144
172
|
children: [
|
|
145
|
-
/* @__PURE__ */
|
|
173
|
+
/* @__PURE__ */ a(
|
|
146
174
|
"path",
|
|
147
175
|
{
|
|
176
|
+
className: "fa-secondary",
|
|
148
177
|
opacity: "0.4",
|
|
149
|
-
d: "
|
|
178
|
+
d: "M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zm192-8c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24zm96-88a32 32 0 1 1 -64 0 32 32 0 1 1 64 0z"
|
|
150
179
|
}
|
|
151
180
|
),
|
|
152
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ a(
|
|
182
|
+
"path",
|
|
183
|
+
{
|
|
184
|
+
className: "fa-primary",
|
|
185
|
+
d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM192 248c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24z"
|
|
186
|
+
}
|
|
187
|
+
)
|
|
153
188
|
]
|
|
154
189
|
}
|
|
155
190
|
), ft = ({
|
|
156
191
|
className: e,
|
|
157
192
|
viewBox: t,
|
|
158
193
|
title: r,
|
|
159
|
-
monotone:
|
|
194
|
+
monotone: o,
|
|
160
195
|
...n
|
|
161
|
-
}) => /* @__PURE__ */
|
|
162
|
-
|
|
196
|
+
}) => /* @__PURE__ */ a(
|
|
197
|
+
A,
|
|
163
198
|
{
|
|
164
199
|
defaultViewBox: "0 0 24 24",
|
|
165
200
|
size: "size-5",
|
|
@@ -167,22 +202,16 @@ const gt = ({
|
|
|
167
202
|
className: e,
|
|
168
203
|
title: r || "OpenAI",
|
|
169
204
|
...n,
|
|
170
|
-
children: /* @__PURE__ */
|
|
171
|
-
"path",
|
|
172
|
-
{
|
|
173
|
-
fill: "currentColor",
|
|
174
|
-
d: "M22.282 9.821a6 6 0 0 0-.516-4.91a6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a6 6 0 0 0-3.998 2.9a6.05 6.05 0 0 0 .743 7.097a5.98 5.98 0 0 0 .51 4.911a6.05 6.05 0 0 0 6.515 2.9A6 6 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206a6 6 0 0 0 3.997-2.9a6.06 6.06 0 0 0-.747-7.073M13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081l4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085l4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354l-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667m2.01-3.023l-.141-.085l-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135l-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.8.8 0 0 0-.393.681zm1.097-2.365l2.602-1.5l2.607 1.5v2.999l-2.597 1.5l-2.607-1.5Z"
|
|
175
|
-
}
|
|
176
|
-
)
|
|
205
|
+
children: /* @__PURE__ */ a("path", { d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" })
|
|
177
206
|
}
|
|
178
207
|
), Er = ({
|
|
179
208
|
className: e,
|
|
180
209
|
viewBox: t,
|
|
181
210
|
title: r,
|
|
182
|
-
monotone:
|
|
211
|
+
monotone: o,
|
|
183
212
|
...n
|
|
184
213
|
}) => /* @__PURE__ */ y(
|
|
185
|
-
|
|
214
|
+
A,
|
|
186
215
|
{
|
|
187
216
|
defaultViewBox: "0 0 576 512",
|
|
188
217
|
size: "size-5",
|
|
@@ -191,24 +220,31 @@ const gt = ({
|
|
|
191
220
|
title: r || "Profile",
|
|
192
221
|
...n,
|
|
193
222
|
children: [
|
|
194
|
-
/* @__PURE__ */
|
|
223
|
+
/* @__PURE__ */ a(
|
|
195
224
|
"path",
|
|
196
225
|
{
|
|
226
|
+
className: "fa-secondary",
|
|
197
227
|
opacity: "0.4",
|
|
198
|
-
d: "
|
|
228
|
+
d: "M0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zM64 368c0-44.2 35.8-80 80-80l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L80 384c-8.8 0-16-7.2-16-16zM240 192a64 64 0 1 1 -128 0 64 64 0 1 1 128 0zm112-16c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16zm0 64c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"
|
|
199
229
|
}
|
|
200
230
|
),
|
|
201
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ a(
|
|
232
|
+
"path",
|
|
233
|
+
{
|
|
234
|
+
className: "fa-primary",
|
|
235
|
+
d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80l-64 0z"
|
|
236
|
+
}
|
|
237
|
+
)
|
|
202
238
|
]
|
|
203
239
|
}
|
|
204
240
|
), _r = ({
|
|
205
241
|
className: e,
|
|
206
242
|
viewBox: t,
|
|
207
243
|
title: r,
|
|
208
|
-
monotone:
|
|
244
|
+
monotone: o,
|
|
209
245
|
...n
|
|
210
246
|
}) => /* @__PURE__ */ y(
|
|
211
|
-
|
|
247
|
+
A,
|
|
212
248
|
{
|
|
213
249
|
defaultViewBox: "0 0 512 512",
|
|
214
250
|
size: "size-5",
|
|
@@ -217,24 +253,31 @@ const gt = ({
|
|
|
217
253
|
title: r || "Restore",
|
|
218
254
|
...n,
|
|
219
255
|
children: [
|
|
220
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ a(
|
|
221
257
|
"path",
|
|
222
258
|
{
|
|
223
|
-
|
|
224
|
-
|
|
259
|
+
className: "fa-secondary",
|
|
260
|
+
opacity: o ? "1" : "0.4",
|
|
261
|
+
d: "M128 80l0 16 64 0 0-16c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 224c0 8.8-7.2 16-16 16l-16 0 0 64 16 0c44.2 0 80-35.8 80-80l0-224c0-44.2-35.8-80-80-80L208 0c-44.2 0-80 35.8-80 80z"
|
|
225
262
|
}
|
|
226
263
|
),
|
|
227
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ a(
|
|
265
|
+
"path",
|
|
266
|
+
{
|
|
267
|
+
className: "fa-primary",
|
|
268
|
+
d: "M64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 128zm32 64l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 256c-17.7 0-32-14.3-32-32s14.3-32 32-32z"
|
|
269
|
+
}
|
|
270
|
+
)
|
|
228
271
|
]
|
|
229
272
|
}
|
|
230
273
|
), Sr = ({
|
|
231
274
|
className: e,
|
|
232
275
|
viewBox: t,
|
|
233
276
|
title: r,
|
|
234
|
-
monotone:
|
|
277
|
+
monotone: o,
|
|
235
278
|
...n
|
|
236
|
-
}) => /* @__PURE__ */
|
|
237
|
-
|
|
279
|
+
}) => /* @__PURE__ */ a(
|
|
280
|
+
A,
|
|
238
281
|
{
|
|
239
282
|
defaultViewBox: "0 0 448 512",
|
|
240
283
|
size: "size-5",
|
|
@@ -242,16 +285,16 @@ const gt = ({
|
|
|
242
285
|
className: e,
|
|
243
286
|
title: r || "Settings",
|
|
244
287
|
...n,
|
|
245
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ a("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" })
|
|
246
289
|
}
|
|
247
290
|
), Rr = ({
|
|
248
291
|
className: e,
|
|
249
292
|
viewBox: t,
|
|
250
293
|
title: r,
|
|
251
|
-
monotone:
|
|
294
|
+
monotone: o,
|
|
252
295
|
...n
|
|
253
296
|
}) => /* @__PURE__ */ y(
|
|
254
|
-
|
|
297
|
+
A,
|
|
255
298
|
{
|
|
256
299
|
defaultViewBox: "0 0 512 512",
|
|
257
300
|
size: "size-5",
|
|
@@ -260,19 +303,19 @@ const gt = ({
|
|
|
260
303
|
title: r || "Sliders",
|
|
261
304
|
...n,
|
|
262
305
|
children: [
|
|
263
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ a(
|
|
264
307
|
"path",
|
|
265
308
|
{
|
|
266
309
|
className: "fa-secondary",
|
|
267
|
-
opacity:
|
|
268
|
-
d: "
|
|
310
|
+
opacity: o ? "1" : "0.4",
|
|
311
|
+
d: "M0 96C0 78.3 14.3 64 32 64l86.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l246.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 288c-17.7 0-32-14.3-32-32zM0 416c0-17.7 14.3-32 32-32l54.7 0c-2.1 4.9-3.8 10.1-4.9 15.4c-.6 2.7-1 5.4-1.3 8.2c-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32L32 448c-17.7 0-32-14.3-32-32zm233.3-32L480 384c17.7 0 32 14.3 32 32s-14.3 32-32 32l-246.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320L480 64c17.7 0 32 14.3 32 32s-14.3 32-32 32l-214.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160l54.7 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-54.7 0c2.1-4.9 3.8-10.1 4.9-15.4c.6-2.7 1-5.4 1.3-8.2c.1-1.4 .3-2.8 .3-4.2s.1-2.8 .1-4.2c0-11.4-2.4-22.2-6.7-32z"
|
|
269
312
|
}
|
|
270
313
|
),
|
|
271
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ a(
|
|
272
315
|
"path",
|
|
273
316
|
{
|
|
274
317
|
className: "fa-primary",
|
|
275
|
-
d: "
|
|
318
|
+
d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm112 0A80 80 0 1 0 80 416a80 80 0 1 0 160 0zm80-160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm112 0a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160z"
|
|
276
319
|
}
|
|
277
320
|
)
|
|
278
321
|
]
|
|
@@ -301,24 +344,24 @@ const Ee = g.createContext({
|
|
|
301
344
|
return t.displayName || t.name || "Component";
|
|
302
345
|
}
|
|
303
346
|
return "Element";
|
|
304
|
-
}, pt =
|
|
347
|
+
}, pt = ot(
|
|
305
348
|
({
|
|
306
349
|
trigger: e,
|
|
307
350
|
children: t,
|
|
308
351
|
label: r = "Open menu",
|
|
309
|
-
defaultPlacement:
|
|
352
|
+
defaultPlacement: o = "bottom-start",
|
|
310
353
|
onOpenChange: n,
|
|
311
354
|
mode: s = "system",
|
|
312
355
|
focusMode: i = "system",
|
|
313
356
|
...c
|
|
314
357
|
}, l) => {
|
|
315
|
-
const [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(null), k =
|
|
358
|
+
const [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(null), k = Z([]), b = Z([]), N = F(Ee), x = nt(), m = ur(), C = st(), { floatingStyles: E, refs: L, context: _ } = it({
|
|
316
359
|
nodeId: m,
|
|
317
360
|
open: d,
|
|
318
|
-
onOpenChange: (
|
|
319
|
-
u(
|
|
361
|
+
onOpenChange: (oe) => {
|
|
362
|
+
u(oe), n == null || n(oe);
|
|
320
363
|
},
|
|
321
|
-
placement:
|
|
364
|
+
placement: o,
|
|
322
365
|
strategy: "fixed",
|
|
323
366
|
middleware: [mr({ mainAxis: 10 }), hr(), gr()],
|
|
324
367
|
whileElementsMounted: fr
|
|
@@ -326,7 +369,7 @@ const Ee = g.createContext({
|
|
|
326
369
|
event: "mousedown",
|
|
327
370
|
toggle: !0,
|
|
328
371
|
ignoreMouse: !1
|
|
329
|
-
}),
|
|
372
|
+
}), V = lt(_, { role: "menu" }), U = dt(_, { bubbles: !0 }), H = pr(_, {
|
|
330
373
|
listRef: k,
|
|
331
374
|
activeIndex: v,
|
|
332
375
|
nested: !1,
|
|
@@ -336,62 +379,62 @@ const Ee = g.createContext({
|
|
|
336
379
|
listRef: b,
|
|
337
380
|
onMatch: d ? h : void 0,
|
|
338
381
|
activeIndex: v
|
|
339
|
-
}), { getReferenceProps:
|
|
340
|
-
noInternalClick:
|
|
382
|
+
}), { getReferenceProps: ae, getFloatingProps: Ce, getItemProps: B } = ut([T, V, U, H, re]), De = Ke(e) === "Button" || Ke(e) === "ButtonIcon", $t = De ? {
|
|
383
|
+
noInternalClick: De,
|
|
341
384
|
focusMode: i,
|
|
342
385
|
mode: s
|
|
343
|
-
} : {},
|
|
386
|
+
} : {}, Dt = I.cloneElement(
|
|
344
387
|
e,
|
|
345
388
|
{
|
|
346
389
|
...$t,
|
|
347
390
|
"aria-label": r,
|
|
348
391
|
"data-open": d ? "" : void 0,
|
|
349
392
|
"data-focus-inside": f ? "" : void 0,
|
|
350
|
-
ref:
|
|
351
|
-
...
|
|
352
|
-
|
|
393
|
+
ref: Ae([L.setReference, C.ref, l]),
|
|
394
|
+
...ae(
|
|
395
|
+
N.getItemProps({
|
|
353
396
|
...c
|
|
354
397
|
})
|
|
355
398
|
)
|
|
356
399
|
}
|
|
357
400
|
);
|
|
358
|
-
return
|
|
401
|
+
return q(() => {
|
|
359
402
|
if (!x)
|
|
360
403
|
return;
|
|
361
|
-
function
|
|
404
|
+
function oe() {
|
|
362
405
|
u(!1), n == null || n(!1);
|
|
363
406
|
}
|
|
364
|
-
return x.events.on("click",
|
|
365
|
-
x.events.off("click",
|
|
407
|
+
return x.events.on("click", oe), () => {
|
|
408
|
+
x.events.off("click", oe);
|
|
366
409
|
};
|
|
367
|
-
}, [x, n]),
|
|
410
|
+
}, [x, n]), q(() => {
|
|
368
411
|
d && x && x.events.emit("menuopen", { nodeId: m });
|
|
369
412
|
}, [x, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
|
|
370
|
-
|
|
371
|
-
/* @__PURE__ */
|
|
413
|
+
Dt,
|
|
414
|
+
/* @__PURE__ */ a(
|
|
372
415
|
Ee.Provider,
|
|
373
416
|
{
|
|
374
417
|
value: {
|
|
375
418
|
activeIndex: v,
|
|
376
419
|
setActiveIndex: h,
|
|
377
|
-
getItemProps:
|
|
420
|
+
getItemProps: B,
|
|
378
421
|
setHasFocusInside: p,
|
|
379
422
|
isOpen: d
|
|
380
423
|
},
|
|
381
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ a(yr, { elementsRef: k, labelsRef: b, children: d && /* @__PURE__ */ a(mt, { children: /* @__PURE__ */ a(
|
|
382
425
|
ht,
|
|
383
426
|
{
|
|
384
427
|
context: _,
|
|
385
428
|
modal: !1,
|
|
386
429
|
initialFocus: 0,
|
|
387
430
|
returnFocus: !0,
|
|
388
|
-
children: /* @__PURE__ */
|
|
431
|
+
children: /* @__PURE__ */ a(
|
|
389
432
|
"div",
|
|
390
433
|
{
|
|
391
|
-
ref:
|
|
434
|
+
ref: L.setFloating,
|
|
392
435
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
393
436
|
style: E,
|
|
394
|
-
...
|
|
437
|
+
...Ce(),
|
|
395
438
|
children: t
|
|
396
439
|
}
|
|
397
440
|
)
|
|
@@ -401,7 +444,7 @@ const Ee = g.createContext({
|
|
|
401
444
|
)
|
|
402
445
|
] });
|
|
403
446
|
}
|
|
404
|
-
), _e =
|
|
447
|
+
), _e = ot((e, t) => /* @__PURE__ */ a(kr, { children: /* @__PURE__ */ a(pt, { ...e, ref: t }) }));
|
|
405
448
|
_e.displayName = "Menu";
|
|
406
449
|
pt.displayName = "MenuComponent";
|
|
407
450
|
const j = g.forwardRef(
|
|
@@ -409,14 +452,14 @@ const j = g.forwardRef(
|
|
|
409
452
|
label: e,
|
|
410
453
|
disabled: t,
|
|
411
454
|
icon: r,
|
|
412
|
-
raw:
|
|
455
|
+
raw: o = !1,
|
|
413
456
|
children: n,
|
|
414
457
|
ignoreClick: s = !1,
|
|
415
458
|
...i
|
|
416
459
|
}, c) => {
|
|
417
460
|
let l = "";
|
|
418
|
-
const d = g.useContext(Ee), u = st({ label: t ? null : e }), f = nt(), p =
|
|
419
|
-
return
|
|
461
|
+
const d = g.useContext(Ee), u = st({ label: t ? null : e }), f = nt(), p = Ae([u.ref, c]);
|
|
462
|
+
return o && n ? /* @__PURE__ */ a(
|
|
420
463
|
"div",
|
|
421
464
|
{
|
|
422
465
|
role: "menuitem",
|
|
@@ -449,7 +492,7 @@ const j = g.forwardRef(
|
|
|
449
492
|
}),
|
|
450
493
|
children: [
|
|
451
494
|
r,
|
|
452
|
-
e && /* @__PURE__ */
|
|
495
|
+
e && /* @__PURE__ */ a("span", { className: l, children: e })
|
|
453
496
|
]
|
|
454
497
|
}
|
|
455
498
|
));
|
|
@@ -458,16 +501,16 @@ const j = g.forwardRef(
|
|
|
458
501
|
j.displayName = "MenuItem";
|
|
459
502
|
const Mr = ({ className: e, ...t }) => {
|
|
460
503
|
const r = w(e, "my-1 border-t border-border-medium");
|
|
461
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ a("div", { className: r, ...t });
|
|
462
505
|
};
|
|
463
506
|
/*!
|
|
464
|
-
@versini/ui-menu v3.0.
|
|
507
|
+
@versini/ui-menu v3.0.2
|
|
465
508
|
© 2025 gizmette.com
|
|
466
509
|
*/
|
|
467
510
|
try {
|
|
468
511
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
469
|
-
version: "3.0.
|
|
470
|
-
buildTime: "01/
|
|
512
|
+
version: "3.0.2",
|
|
513
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
471
514
|
homepage: "https://github.com/aversini/ui-components",
|
|
472
515
|
license: "MIT"
|
|
473
516
|
});
|
|
@@ -486,16 +529,16 @@ try {
|
|
|
486
529
|
});
|
|
487
530
|
} catch {
|
|
488
531
|
}
|
|
489
|
-
const
|
|
490
|
-
function
|
|
532
|
+
const Lr = "av-togglegroup", zr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
|
|
533
|
+
function Pe(e, t = []) {
|
|
491
534
|
let r = [];
|
|
492
|
-
function
|
|
535
|
+
function o(s, i) {
|
|
493
536
|
const c = g.createContext(i), l = r.length;
|
|
494
537
|
r = [...r, i];
|
|
495
538
|
const d = (f) => {
|
|
496
539
|
var p;
|
|
497
|
-
const { scope: v, children: h, ...k } = f, b = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[l]) || c,
|
|
498
|
-
return /* @__PURE__ */
|
|
540
|
+
const { scope: v, children: h, ...k } = f, b = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[l]) || c, N = g.useMemo(() => k, Object.values(k));
|
|
541
|
+
return /* @__PURE__ */ a(b.Provider, { value: N, children: h });
|
|
499
542
|
};
|
|
500
543
|
d.displayName = s + "Provider";
|
|
501
544
|
function u(f, p) {
|
|
@@ -517,18 +560,18 @@ function Be(e, t = []) {
|
|
|
517
560
|
);
|
|
518
561
|
};
|
|
519
562
|
};
|
|
520
|
-
return n.scopeName = e, [
|
|
563
|
+
return n.scopeName = e, [o, Pr(n, ...t)];
|
|
521
564
|
}
|
|
522
|
-
function
|
|
565
|
+
function Pr(...e) {
|
|
523
566
|
const t = e[0];
|
|
524
567
|
if (e.length === 1) return t;
|
|
525
568
|
const r = () => {
|
|
526
|
-
const
|
|
569
|
+
const o = e.map((n) => ({
|
|
527
570
|
useScope: n(),
|
|
528
571
|
scopeName: n.scopeName
|
|
529
572
|
}));
|
|
530
573
|
return function(n) {
|
|
531
|
-
const s =
|
|
574
|
+
const s = o.reduce((i, { useScope: c, scopeName: l }) => {
|
|
532
575
|
const d = c(n)[`__scope${l}`];
|
|
533
576
|
return { ...i, ...d };
|
|
534
577
|
}, {});
|
|
@@ -545,14 +588,14 @@ function Ye(e, t) {
|
|
|
545
588
|
function bt(...e) {
|
|
546
589
|
return (t) => {
|
|
547
590
|
let r = !1;
|
|
548
|
-
const
|
|
591
|
+
const o = e.map((n) => {
|
|
549
592
|
const s = Ye(n, t);
|
|
550
593
|
return !r && typeof s == "function" && (r = !0), s;
|
|
551
594
|
});
|
|
552
595
|
if (r)
|
|
553
596
|
return () => {
|
|
554
|
-
for (let n = 0; n <
|
|
555
|
-
const s =
|
|
597
|
+
for (let n = 0; n < o.length; n++) {
|
|
598
|
+
const s = o[n];
|
|
556
599
|
typeof s == "function" ? s() : Ye(e[n], null);
|
|
557
600
|
}
|
|
558
601
|
};
|
|
@@ -562,20 +605,20 @@ function Se(...e) {
|
|
|
562
605
|
return g.useCallback(bt(...e), e);
|
|
563
606
|
}
|
|
564
607
|
var pe = g.forwardRef((e, t) => {
|
|
565
|
-
const { children: r, ...
|
|
608
|
+
const { children: r, ...o } = e, n = g.Children.toArray(r), s = n.find(Or);
|
|
566
609
|
if (s) {
|
|
567
610
|
const i = s.props.children, c = n.map((l) => l === s ? g.Children.count(i) > 1 ? g.Children.only(null) : g.isValidElement(i) ? i.props.children : null : l);
|
|
568
|
-
return /* @__PURE__ */
|
|
611
|
+
return /* @__PURE__ */ a(Re, { ...o, ref: t, children: g.isValidElement(i) ? g.cloneElement(i, void 0, c) : null });
|
|
569
612
|
}
|
|
570
|
-
return /* @__PURE__ */
|
|
613
|
+
return /* @__PURE__ */ a(Re, { ...o, ref: t, children: r });
|
|
571
614
|
});
|
|
572
615
|
pe.displayName = "Slot";
|
|
573
616
|
var Re = g.forwardRef((e, t) => {
|
|
574
|
-
const { children: r, ...
|
|
617
|
+
const { children: r, ...o } = e;
|
|
575
618
|
if (g.isValidElement(r)) {
|
|
576
|
-
const n =
|
|
619
|
+
const n = Dr(r);
|
|
577
620
|
return g.cloneElement(r, {
|
|
578
|
-
...$r(
|
|
621
|
+
...$r(o, r.props),
|
|
579
622
|
// @ts-ignore
|
|
580
623
|
ref: t ? bt(t, n) : n
|
|
581
624
|
});
|
|
@@ -583,26 +626,26 @@ var Re = g.forwardRef((e, t) => {
|
|
|
583
626
|
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
584
627
|
});
|
|
585
628
|
Re.displayName = "SlotClone";
|
|
586
|
-
var
|
|
629
|
+
var Br = ({ children: e }) => /* @__PURE__ */ a(z, { children: e });
|
|
587
630
|
function Or(e) {
|
|
588
|
-
return g.isValidElement(e) && e.type ===
|
|
631
|
+
return g.isValidElement(e) && e.type === Br;
|
|
589
632
|
}
|
|
590
633
|
function $r(e, t) {
|
|
591
634
|
const r = { ...t };
|
|
592
|
-
for (const
|
|
593
|
-
const n = e[
|
|
594
|
-
/^on[A-Z]/.test(
|
|
635
|
+
for (const o in t) {
|
|
636
|
+
const n = e[o], s = t[o];
|
|
637
|
+
/^on[A-Z]/.test(o) ? n && s ? r[o] = (...i) => {
|
|
595
638
|
s(...i), n(...i);
|
|
596
|
-
} : n && (r[
|
|
639
|
+
} : n && (r[o] = n) : o === "style" ? r[o] = { ...n, ...s } : o === "className" && (r[o] = [n, s].filter(Boolean).join(" "));
|
|
597
640
|
}
|
|
598
641
|
return { ...e, ...r };
|
|
599
642
|
}
|
|
600
|
-
function
|
|
643
|
+
function Dr(e) {
|
|
601
644
|
var t, r;
|
|
602
|
-
let
|
|
603
|
-
return n ? e.ref : (
|
|
645
|
+
let o = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = o && "isReactWarning" in o && o.isReactWarning;
|
|
646
|
+
return n ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = o && "isReactWarning" in o && o.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
604
647
|
}
|
|
605
|
-
var
|
|
648
|
+
var Fr = [
|
|
606
649
|
"a",
|
|
607
650
|
"button",
|
|
608
651
|
"div",
|
|
@@ -619,39 +662,39 @@ var Dr = [
|
|
|
619
662
|
"span",
|
|
620
663
|
"svg",
|
|
621
664
|
"ul"
|
|
622
|
-
], de =
|
|
623
|
-
const r = g.forwardRef((
|
|
624
|
-
const { asChild: s, ...i } =
|
|
625
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
665
|
+
], de = Fr.reduce((e, t) => {
|
|
666
|
+
const r = g.forwardRef((o, n) => {
|
|
667
|
+
const { asChild: s, ...i } = o, c = s ? pe : t;
|
|
668
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a(c, { ...i, ref: n });
|
|
626
669
|
});
|
|
627
670
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
628
671
|
}, {});
|
|
629
672
|
function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
630
|
-
return function(
|
|
631
|
-
if (e == null || e(
|
|
632
|
-
return t == null ? void 0 : t(
|
|
673
|
+
return function(o) {
|
|
674
|
+
if (e == null || e(o), r === !1 || !o.defaultPrevented)
|
|
675
|
+
return t == null ? void 0 : t(o);
|
|
633
676
|
};
|
|
634
677
|
}
|
|
635
|
-
function
|
|
636
|
-
const t = e + "CollectionProvider", [r,
|
|
678
|
+
function Gr(e) {
|
|
679
|
+
const t = e + "CollectionProvider", [r, o] = Pe(t), [n, s] = r(
|
|
637
680
|
t,
|
|
638
681
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
639
682
|
), i = (v) => {
|
|
640
|
-
const { scope: h, children: k } = v, b = I.useRef(null),
|
|
641
|
-
return /* @__PURE__ */
|
|
683
|
+
const { scope: h, children: k } = v, b = I.useRef(null), N = I.useRef(/* @__PURE__ */ new Map()).current;
|
|
684
|
+
return /* @__PURE__ */ a(n, { scope: h, itemMap: N, collectionRef: b, children: k });
|
|
642
685
|
};
|
|
643
686
|
i.displayName = t;
|
|
644
687
|
const c = e + "CollectionSlot", l = I.forwardRef(
|
|
645
688
|
(v, h) => {
|
|
646
|
-
const { scope: k, children: b } = v,
|
|
647
|
-
return /* @__PURE__ */
|
|
689
|
+
const { scope: k, children: b } = v, N = s(c, k), x = Se(h, N.collectionRef);
|
|
690
|
+
return /* @__PURE__ */ a(pe, { ref: x, children: b });
|
|
648
691
|
}
|
|
649
692
|
);
|
|
650
693
|
l.displayName = c;
|
|
651
694
|
const d = e + "CollectionItemSlot", u = "data-radix-collection-item", f = I.forwardRef(
|
|
652
695
|
(v, h) => {
|
|
653
|
-
const { scope: k, children: b, ...
|
|
654
|
-
return I.useEffect(() => (
|
|
696
|
+
const { scope: k, children: b, ...N } = v, x = I.useRef(null), m = Se(h, x), C = s(d, k);
|
|
697
|
+
return I.useEffect(() => (C.itemMap.set(x, { ref: x, ...N }), () => void C.itemMap.delete(x))), /* @__PURE__ */ a(pe, { [u]: "", ref: m, children: b });
|
|
655
698
|
}
|
|
656
699
|
);
|
|
657
700
|
f.displayName = d;
|
|
@@ -662,32 +705,32 @@ function Fr(e) {
|
|
|
662
705
|
if (!k) return [];
|
|
663
706
|
const b = Array.from(k.querySelectorAll(`[${u}]`));
|
|
664
707
|
return Array.from(h.itemMap.values()).sort(
|
|
665
|
-
(
|
|
708
|
+
(N, x) => b.indexOf(N.ref.current) - b.indexOf(x.ref.current)
|
|
666
709
|
);
|
|
667
710
|
}, [h.collectionRef, h.itemMap]);
|
|
668
711
|
}
|
|
669
712
|
return [
|
|
670
713
|
{ Provider: i, Slot: l, ItemSlot: f },
|
|
671
714
|
p,
|
|
672
|
-
|
|
715
|
+
o
|
|
673
716
|
];
|
|
674
717
|
}
|
|
675
|
-
var
|
|
676
|
-
},
|
|
677
|
-
}),
|
|
718
|
+
var Vr = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
|
|
719
|
+
}, Ur = g.useId || (() => {
|
|
720
|
+
}), Hr = 0;
|
|
678
721
|
function jr(e) {
|
|
679
|
-
const [t, r] = g.useState(
|
|
680
|
-
return
|
|
681
|
-
r((
|
|
722
|
+
const [t, r] = g.useState(Ur());
|
|
723
|
+
return Vr(() => {
|
|
724
|
+
r((o) => o ?? String(Hr++));
|
|
682
725
|
}, [e]), t ? `radix-${t}` : "";
|
|
683
726
|
}
|
|
684
|
-
function
|
|
727
|
+
function Be(e) {
|
|
685
728
|
const t = g.useRef(e);
|
|
686
729
|
return g.useEffect(() => {
|
|
687
730
|
t.current = e;
|
|
688
731
|
}), g.useMemo(() => (...r) => {
|
|
689
|
-
var
|
|
690
|
-
return (
|
|
732
|
+
var o;
|
|
733
|
+
return (o = t.current) == null ? void 0 : o.call(t, ...r);
|
|
691
734
|
}, []);
|
|
692
735
|
}
|
|
693
736
|
function ye({
|
|
@@ -696,7 +739,7 @@ function ye({
|
|
|
696
739
|
onChange: r = () => {
|
|
697
740
|
}
|
|
698
741
|
}) {
|
|
699
|
-
const [
|
|
742
|
+
const [o, n] = Wr({ defaultProp: t, onChange: r }), s = e !== void 0, i = s ? e : o, c = Be(r), l = g.useCallback(
|
|
700
743
|
(d) => {
|
|
701
744
|
if (s) {
|
|
702
745
|
const u = typeof d == "function" ? d(e) : d;
|
|
@@ -712,27 +755,27 @@ function Wr({
|
|
|
712
755
|
defaultProp: e,
|
|
713
756
|
onChange: t
|
|
714
757
|
}) {
|
|
715
|
-
const r = g.useState(e), [
|
|
758
|
+
const r = g.useState(e), [o] = r, n = g.useRef(o), s = Be(t);
|
|
716
759
|
return g.useEffect(() => {
|
|
717
|
-
n.current !==
|
|
718
|
-
}, [
|
|
760
|
+
n.current !== o && (s(o), n.current = o);
|
|
761
|
+
}, [o, n, s]), r;
|
|
719
762
|
}
|
|
720
763
|
var Kr = g.createContext(void 0);
|
|
721
764
|
function vt(e) {
|
|
722
765
|
const t = g.useContext(Kr);
|
|
723
766
|
return e || t || "ltr";
|
|
724
767
|
}
|
|
725
|
-
var Te = "rovingFocusGroup.onEntryFocus", Yr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Me, yt,
|
|
768
|
+
var Te = "rovingFocusGroup.onEntryFocus", Yr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Me, yt, Zr] = Gr(ke), [qr, kt] = Pe(
|
|
726
769
|
ke,
|
|
727
|
-
[
|
|
728
|
-
), [Qr, Xr] =
|
|
729
|
-
(e, t) => /* @__PURE__ */
|
|
770
|
+
[Zr]
|
|
771
|
+
), [Qr, Xr] = qr(ke), wt = g.forwardRef(
|
|
772
|
+
(e, t) => /* @__PURE__ */ a(Me.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a(Me.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ a(Jr, { ...e, ref: t }) }) })
|
|
730
773
|
);
|
|
731
774
|
wt.displayName = ke;
|
|
732
775
|
var Jr = g.forwardRef((e, t) => {
|
|
733
776
|
const {
|
|
734
777
|
__scopeRovingFocusGroup: r,
|
|
735
|
-
orientation:
|
|
778
|
+
orientation: o,
|
|
736
779
|
loop: n = !1,
|
|
737
780
|
dir: s,
|
|
738
781
|
currentTabStopId: i,
|
|
@@ -745,16 +788,16 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
745
788
|
prop: i,
|
|
746
789
|
defaultProp: c,
|
|
747
790
|
onChange: l
|
|
748
|
-
}), [
|
|
791
|
+
}), [N, x] = g.useState(!1), m = Be(d), C = yt(r), E = g.useRef(!1), [L, _] = g.useState(0);
|
|
749
792
|
return g.useEffect(() => {
|
|
750
793
|
const T = p.current;
|
|
751
794
|
if (T)
|
|
752
795
|
return T.addEventListener(Te, m), () => T.removeEventListener(Te, m);
|
|
753
|
-
}, [m]), /* @__PURE__ */
|
|
796
|
+
}, [m]), /* @__PURE__ */ a(
|
|
754
797
|
Qr,
|
|
755
798
|
{
|
|
756
799
|
scope: r,
|
|
757
|
-
orientation:
|
|
800
|
+
orientation: o,
|
|
758
801
|
dir: h,
|
|
759
802
|
loop: n,
|
|
760
803
|
currentTabStopId: k,
|
|
@@ -771,11 +814,11 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
771
814
|
() => _((T) => T - 1),
|
|
772
815
|
[]
|
|
773
816
|
),
|
|
774
|
-
children: /* @__PURE__ */
|
|
817
|
+
children: /* @__PURE__ */ a(
|
|
775
818
|
de.div,
|
|
776
819
|
{
|
|
777
|
-
tabIndex:
|
|
778
|
-
"data-orientation":
|
|
820
|
+
tabIndex: N || L === 0 ? -1 : 0,
|
|
821
|
+
"data-orientation": o,
|
|
779
822
|
...f,
|
|
780
823
|
ref: v,
|
|
781
824
|
style: { outline: "none", ...e.style },
|
|
@@ -783,14 +826,14 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
783
826
|
E.current = !0;
|
|
784
827
|
}),
|
|
785
828
|
onFocus: K(e.onFocus, (T) => {
|
|
786
|
-
const
|
|
787
|
-
if (T.target === T.currentTarget &&
|
|
788
|
-
const
|
|
789
|
-
if (T.currentTarget.dispatchEvent(
|
|
790
|
-
const
|
|
829
|
+
const V = !E.current;
|
|
830
|
+
if (T.target === T.currentTarget && V && !N) {
|
|
831
|
+
const U = new CustomEvent(Te, Yr);
|
|
832
|
+
if (T.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
833
|
+
const H = C().filter((B) => B.focusable), re = H.find((B) => B.active), ae = H.find((B) => B.id === k), Ce = [re, ae, ...H].filter(
|
|
791
834
|
Boolean
|
|
792
|
-
).map((
|
|
793
|
-
xt(
|
|
835
|
+
).map((B) => B.ref.current);
|
|
836
|
+
xt(Ce, u);
|
|
794
837
|
}
|
|
795
838
|
}
|
|
796
839
|
E.current = !1;
|
|
@@ -800,26 +843,26 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
800
843
|
)
|
|
801
844
|
}
|
|
802
845
|
);
|
|
803
|
-
}),
|
|
846
|
+
}), Nt = "RovingFocusGroupItem", Ct = g.forwardRef(
|
|
804
847
|
(e, t) => {
|
|
805
848
|
const {
|
|
806
849
|
__scopeRovingFocusGroup: r,
|
|
807
|
-
focusable:
|
|
850
|
+
focusable: o = !0,
|
|
808
851
|
active: n = !1,
|
|
809
852
|
tabStopId: s,
|
|
810
853
|
...i
|
|
811
|
-
} = e, c = jr(), l = s || c, d = Xr(
|
|
854
|
+
} = e, c = jr(), l = s || c, d = Xr(Nt, r), u = d.currentTabStopId === l, f = yt(r), { onFocusableItemAdd: p, onFocusableItemRemove: v } = d;
|
|
812
855
|
return g.useEffect(() => {
|
|
813
|
-
if (
|
|
856
|
+
if (o)
|
|
814
857
|
return p(), () => v();
|
|
815
|
-
}, [
|
|
858
|
+
}, [o, p, v]), /* @__PURE__ */ a(
|
|
816
859
|
Me.ItemSlot,
|
|
817
860
|
{
|
|
818
861
|
scope: r,
|
|
819
862
|
id: l,
|
|
820
|
-
focusable:
|
|
863
|
+
focusable: o,
|
|
821
864
|
active: n,
|
|
822
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ a(
|
|
823
866
|
de.span,
|
|
824
867
|
{
|
|
825
868
|
tabIndex: u ? 0 : -1,
|
|
@@ -827,7 +870,7 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
827
870
|
...i,
|
|
828
871
|
ref: t,
|
|
829
872
|
onMouseDown: K(e.onMouseDown, (h) => {
|
|
830
|
-
|
|
873
|
+
o ? d.onItemFocus(l) : h.preventDefault();
|
|
831
874
|
}),
|
|
832
875
|
onFocus: K(e.onFocus, () => d.onItemFocus(l)),
|
|
833
876
|
onKeyDown: K(e.onKeyDown, (h) => {
|
|
@@ -836,16 +879,16 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
836
879
|
return;
|
|
837
880
|
}
|
|
838
881
|
if (h.target !== h.currentTarget) return;
|
|
839
|
-
const k =
|
|
882
|
+
const k = ra(h, d.orientation, d.dir);
|
|
840
883
|
if (k !== void 0) {
|
|
841
884
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
842
885
|
h.preventDefault();
|
|
843
|
-
let b = f().filter((
|
|
886
|
+
let b = f().filter((N) => N.focusable).map((N) => N.ref.current);
|
|
844
887
|
if (k === "last") b.reverse();
|
|
845
888
|
else if (k === "prev" || k === "next") {
|
|
846
889
|
k === "prev" && b.reverse();
|
|
847
|
-
const
|
|
848
|
-
b = d.loop ?
|
|
890
|
+
const N = b.indexOf(h.currentTarget);
|
|
891
|
+
b = d.loop ? aa(b, N + 1) : b.slice(N + 1);
|
|
849
892
|
}
|
|
850
893
|
setTimeout(() => xt(b));
|
|
851
894
|
}
|
|
@@ -856,8 +899,8 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
856
899
|
);
|
|
857
900
|
}
|
|
858
901
|
);
|
|
859
|
-
|
|
860
|
-
var
|
|
902
|
+
Ct.displayName = Nt;
|
|
903
|
+
var ea = {
|
|
861
904
|
ArrowLeft: "prev",
|
|
862
905
|
ArrowUp: "prev",
|
|
863
906
|
ArrowRight: "next",
|
|
@@ -867,29 +910,29 @@ var eo = {
|
|
|
867
910
|
PageDown: "last",
|
|
868
911
|
End: "last"
|
|
869
912
|
};
|
|
870
|
-
function
|
|
913
|
+
function ta(e, t) {
|
|
871
914
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
872
915
|
}
|
|
873
|
-
function
|
|
874
|
-
const
|
|
875
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(
|
|
876
|
-
return
|
|
916
|
+
function ra(e, t, r) {
|
|
917
|
+
const o = ta(e.key, r);
|
|
918
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
919
|
+
return ea[o];
|
|
877
920
|
}
|
|
878
921
|
function xt(e, t = !1) {
|
|
879
922
|
const r = document.activeElement;
|
|
880
|
-
for (const
|
|
881
|
-
if (
|
|
923
|
+
for (const o of e)
|
|
924
|
+
if (o === r || (o.focus({ preventScroll: t }), document.activeElement !== r)) return;
|
|
882
925
|
}
|
|
883
|
-
function
|
|
884
|
-
return e.map((r,
|
|
926
|
+
function aa(e, t) {
|
|
927
|
+
return e.map((r, o) => e[(t + o) % e.length]);
|
|
885
928
|
}
|
|
886
|
-
var
|
|
887
|
-
const { pressed: r, defaultPressed:
|
|
929
|
+
var oa = wt, na = Ct, sa = "Toggle", Tt = g.forwardRef((e, t) => {
|
|
930
|
+
const { pressed: r, defaultPressed: o = !1, onPressedChange: n, ...s } = e, [i = !1, c] = ye({
|
|
888
931
|
prop: r,
|
|
889
932
|
onChange: n,
|
|
890
|
-
defaultProp:
|
|
933
|
+
defaultProp: o
|
|
891
934
|
});
|
|
892
|
-
return /* @__PURE__ */
|
|
935
|
+
return /* @__PURE__ */ a(
|
|
893
936
|
de.button,
|
|
894
937
|
{
|
|
895
938
|
type: "button",
|
|
@@ -904,31 +947,31 @@ var ao = wt, no = Nt, so = "Toggle", Tt = g.forwardRef((e, t) => {
|
|
|
904
947
|
}
|
|
905
948
|
);
|
|
906
949
|
});
|
|
907
|
-
Tt.displayName =
|
|
908
|
-
var ee = "ToggleGroup", [It,
|
|
950
|
+
Tt.displayName = sa;
|
|
951
|
+
var ee = "ToggleGroup", [It, mo] = Pe(ee, [
|
|
909
952
|
kt
|
|
910
953
|
]), Et = kt(), Oe = I.forwardRef((e, t) => {
|
|
911
|
-
const { type: r, ...
|
|
954
|
+
const { type: r, ...o } = e;
|
|
912
955
|
if (r === "single")
|
|
913
|
-
return /* @__PURE__ */
|
|
956
|
+
return /* @__PURE__ */ a(ia, { ...o, ref: t });
|
|
914
957
|
if (r === "multiple")
|
|
915
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ a(ca, { ...o, ref: t });
|
|
916
959
|
throw new Error(`Missing prop \`type\` expected on \`${ee}\``);
|
|
917
960
|
});
|
|
918
961
|
Oe.displayName = ee;
|
|
919
|
-
var [_t, St] = It(ee),
|
|
962
|
+
var [_t, St] = It(ee), ia = I.forwardRef((e, t) => {
|
|
920
963
|
const {
|
|
921
964
|
value: r,
|
|
922
|
-
defaultValue:
|
|
965
|
+
defaultValue: o,
|
|
923
966
|
onValueChange: n = () => {
|
|
924
967
|
},
|
|
925
968
|
...s
|
|
926
969
|
} = e, [i, c] = ye({
|
|
927
970
|
prop: r,
|
|
928
|
-
defaultProp:
|
|
971
|
+
defaultProp: o,
|
|
929
972
|
onChange: n
|
|
930
973
|
});
|
|
931
|
-
return /* @__PURE__ */
|
|
974
|
+
return /* @__PURE__ */ a(
|
|
932
975
|
_t,
|
|
933
976
|
{
|
|
934
977
|
scope: e.__scopeToggleGroup,
|
|
@@ -936,19 +979,19 @@ var [_t, St] = It(ee), io = I.forwardRef((e, t) => {
|
|
|
936
979
|
value: i ? [i] : [],
|
|
937
980
|
onItemActivate: c,
|
|
938
981
|
onItemDeactivate: I.useCallback(() => c(""), [c]),
|
|
939
|
-
children: /* @__PURE__ */
|
|
982
|
+
children: /* @__PURE__ */ a(Rt, { ...s, ref: t })
|
|
940
983
|
}
|
|
941
984
|
);
|
|
942
|
-
}),
|
|
985
|
+
}), ca = I.forwardRef((e, t) => {
|
|
943
986
|
const {
|
|
944
987
|
value: r,
|
|
945
|
-
defaultValue:
|
|
988
|
+
defaultValue: o,
|
|
946
989
|
onValueChange: n = () => {
|
|
947
990
|
},
|
|
948
991
|
...s
|
|
949
992
|
} = e, [i = [], c] = ye({
|
|
950
993
|
prop: r,
|
|
951
|
-
defaultProp:
|
|
994
|
+
defaultProp: o,
|
|
952
995
|
onChange: n
|
|
953
996
|
}), l = I.useCallback(
|
|
954
997
|
(u) => c((f = []) => [...f, u]),
|
|
@@ -957,7 +1000,7 @@ var [_t, St] = It(ee), io = I.forwardRef((e, t) => {
|
|
|
957
1000
|
(u) => c((f = []) => f.filter((p) => p !== u)),
|
|
958
1001
|
[c]
|
|
959
1002
|
);
|
|
960
|
-
return /* @__PURE__ */
|
|
1003
|
+
return /* @__PURE__ */ a(
|
|
961
1004
|
_t,
|
|
962
1005
|
{
|
|
963
1006
|
scope: e.__scopeToggleGroup,
|
|
@@ -965,86 +1008,86 @@ var [_t, St] = It(ee), io = I.forwardRef((e, t) => {
|
|
|
965
1008
|
value: i,
|
|
966
1009
|
onItemActivate: l,
|
|
967
1010
|
onItemDeactivate: d,
|
|
968
|
-
children: /* @__PURE__ */
|
|
1011
|
+
children: /* @__PURE__ */ a(Rt, { ...s, ref: t })
|
|
969
1012
|
}
|
|
970
1013
|
);
|
|
971
1014
|
});
|
|
972
1015
|
Oe.displayName = ee;
|
|
973
|
-
var [
|
|
1016
|
+
var [la, da] = It(ee), Rt = I.forwardRef(
|
|
974
1017
|
(e, t) => {
|
|
975
1018
|
const {
|
|
976
1019
|
__scopeToggleGroup: r,
|
|
977
|
-
disabled:
|
|
1020
|
+
disabled: o = !1,
|
|
978
1021
|
rovingFocus: n = !0,
|
|
979
1022
|
orientation: s,
|
|
980
1023
|
dir: i,
|
|
981
1024
|
loop: c = !0,
|
|
982
1025
|
...l
|
|
983
1026
|
} = e, d = Et(r), u = vt(i), f = { role: "group", dir: u, ...l };
|
|
984
|
-
return /* @__PURE__ */
|
|
985
|
-
|
|
1027
|
+
return /* @__PURE__ */ a(la, { scope: r, rovingFocus: n, disabled: o, children: n ? /* @__PURE__ */ a(
|
|
1028
|
+
oa,
|
|
986
1029
|
{
|
|
987
1030
|
asChild: !0,
|
|
988
1031
|
...d,
|
|
989
1032
|
orientation: s,
|
|
990
1033
|
dir: u,
|
|
991
1034
|
loop: c,
|
|
992
|
-
children: /* @__PURE__ */
|
|
1035
|
+
children: /* @__PURE__ */ a(de.div, { ...f, ref: t })
|
|
993
1036
|
}
|
|
994
|
-
) : /* @__PURE__ */
|
|
1037
|
+
) : /* @__PURE__ */ a(de.div, { ...f, ref: t }) });
|
|
995
1038
|
}
|
|
996
1039
|
), be = "ToggleGroupItem", Mt = I.forwardRef(
|
|
997
1040
|
(e, t) => {
|
|
998
|
-
const r = St(be, e.__scopeToggleGroup),
|
|
999
|
-
return
|
|
1000
|
-
|
|
1041
|
+
const r = St(be, e.__scopeToggleGroup), o = da(be, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), s = r.value.includes(e.value), i = o.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, l = I.useRef(null);
|
|
1042
|
+
return o.rovingFocus ? /* @__PURE__ */ a(
|
|
1043
|
+
na,
|
|
1001
1044
|
{
|
|
1002
1045
|
asChild: !0,
|
|
1003
1046
|
...n,
|
|
1004
1047
|
focusable: !i,
|
|
1005
1048
|
active: s,
|
|
1006
1049
|
ref: l,
|
|
1007
|
-
children: /* @__PURE__ */
|
|
1050
|
+
children: /* @__PURE__ */ a(Ze, { ...c, ref: t })
|
|
1008
1051
|
}
|
|
1009
|
-
) : /* @__PURE__ */
|
|
1052
|
+
) : /* @__PURE__ */ a(Ze, { ...c, ref: t });
|
|
1010
1053
|
}
|
|
1011
1054
|
);
|
|
1012
1055
|
Mt.displayName = be;
|
|
1013
|
-
var
|
|
1056
|
+
var Ze = I.forwardRef(
|
|
1014
1057
|
(e, t) => {
|
|
1015
|
-
const { __scopeToggleGroup: r, value:
|
|
1016
|
-
return /* @__PURE__ */
|
|
1058
|
+
const { __scopeToggleGroup: r, value: o, ...n } = e, s = St(be, r), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = s.type === "single" ? i : void 0;
|
|
1059
|
+
return /* @__PURE__ */ a(
|
|
1017
1060
|
Tt,
|
|
1018
1061
|
{
|
|
1019
1062
|
...c,
|
|
1020
1063
|
...n,
|
|
1021
1064
|
ref: t,
|
|
1022
1065
|
onPressedChange: (l) => {
|
|
1023
|
-
l ? s.onItemActivate(
|
|
1066
|
+
l ? s.onItemActivate(o) : s.onItemDeactivate(o);
|
|
1024
1067
|
}
|
|
1025
1068
|
}
|
|
1026
1069
|
);
|
|
1027
1070
|
}
|
|
1028
|
-
),
|
|
1029
|
-
const
|
|
1071
|
+
), ua = Oe, ma = Mt;
|
|
1072
|
+
const Lt = I.createContext({
|
|
1030
1073
|
size: "medium",
|
|
1031
1074
|
focusMode: "system",
|
|
1032
1075
|
mode: "system"
|
|
1033
|
-
}),
|
|
1076
|
+
}), ha = ({ focusMode: e }) => w("focus:outline", "focus:outline-2", "focus:outline-offset", {
|
|
1034
1077
|
"focus:outline-focus-light": e === "light",
|
|
1035
1078
|
"focus:outline-focus-dark": e === "dark",
|
|
1036
1079
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1037
1080
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1038
|
-
}),
|
|
1081
|
+
}), ga = ({ mode: e }) => w({
|
|
1039
1082
|
"data-[state=on]:bg-surface-medium": e === "dark",
|
|
1040
1083
|
"data-[state=on]:bg-surface-lightest": e === "light",
|
|
1041
1084
|
"data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
|
|
1042
1085
|
"data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
|
|
1043
|
-
}),
|
|
1086
|
+
}), fa = ({ size: e }) => w({
|
|
1044
1087
|
"h-5 px-2": e === "small",
|
|
1045
1088
|
"h-6 px-3": e === "medium",
|
|
1046
1089
|
"h-7 px-4": e === "large"
|
|
1047
|
-
}),
|
|
1090
|
+
}), pa = ({ mode: e }) => w(
|
|
1048
1091
|
zr,
|
|
1049
1092
|
"px-1",
|
|
1050
1093
|
"relative",
|
|
@@ -1058,26 +1101,26 @@ const At = I.createContext({
|
|
|
1058
1101
|
"border-surface-light dark:border-surface-darker": e === "system",
|
|
1059
1102
|
"border-surface-darker dark:border-surface-light": e === "alt-system"
|
|
1060
1103
|
}
|
|
1061
|
-
),
|
|
1104
|
+
), ba = ({
|
|
1062
1105
|
focusMode: e,
|
|
1063
1106
|
mode: t,
|
|
1064
1107
|
size: r
|
|
1065
1108
|
}) => ({
|
|
1066
|
-
wrapperClass:
|
|
1109
|
+
wrapperClass: pa({ mode: t }),
|
|
1067
1110
|
itemClass: w(
|
|
1068
|
-
|
|
1111
|
+
Ar,
|
|
1069
1112
|
"flex items-center justify-center bg-transparent",
|
|
1070
1113
|
"rounded-sm",
|
|
1071
1114
|
"transition duration-200 ease",
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1115
|
+
fa({ size: r }),
|
|
1116
|
+
ha({ focusMode: e }),
|
|
1117
|
+
ga({ mode: t })
|
|
1075
1118
|
)
|
|
1076
|
-
}),
|
|
1119
|
+
}), va = ({
|
|
1077
1120
|
mode: e,
|
|
1078
1121
|
className: t
|
|
1079
1122
|
}) => w(
|
|
1080
|
-
|
|
1123
|
+
Lr,
|
|
1081
1124
|
"inline-flex p-1",
|
|
1082
1125
|
"rounded-sm",
|
|
1083
1126
|
{
|
|
@@ -1087,11 +1130,11 @@ const At = I.createContext({
|
|
|
1087
1130
|
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
1088
1131
|
},
|
|
1089
1132
|
t
|
|
1090
|
-
),
|
|
1133
|
+
), ya = ({
|
|
1091
1134
|
children: e,
|
|
1092
1135
|
value: t,
|
|
1093
1136
|
onValueChange: r,
|
|
1094
|
-
disabled:
|
|
1137
|
+
disabled: o,
|
|
1095
1138
|
mode: n = "system",
|
|
1096
1139
|
focusMode: s = "system",
|
|
1097
1140
|
size: i = "medium",
|
|
@@ -1099,11 +1142,11 @@ const At = I.createContext({
|
|
|
1099
1142
|
className: l,
|
|
1100
1143
|
...d
|
|
1101
1144
|
}) => {
|
|
1102
|
-
const u =
|
|
1103
|
-
return /* @__PURE__ */
|
|
1104
|
-
|
|
1145
|
+
const u = va({ mode: n, className: l }), f = { size: i, focusMode: s, mode: n };
|
|
1146
|
+
return /* @__PURE__ */ a(Lt.Provider, { value: f, children: /* @__PURE__ */ a(
|
|
1147
|
+
ua,
|
|
1105
1148
|
{
|
|
1106
|
-
disabled:
|
|
1149
|
+
disabled: o,
|
|
1107
1150
|
className: u,
|
|
1108
1151
|
value: t,
|
|
1109
1152
|
defaultValue: c,
|
|
@@ -1113,14 +1156,14 @@ const At = I.createContext({
|
|
|
1113
1156
|
children: e
|
|
1114
1157
|
}
|
|
1115
1158
|
) });
|
|
1116
|
-
},
|
|
1117
|
-
const { size: r, focusMode:
|
|
1118
|
-
focusMode:
|
|
1159
|
+
}, ka = ({ value: e, disabled: t }) => {
|
|
1160
|
+
const { size: r, focusMode: o, mode: n } = F(Lt), { itemClass: s, wrapperClass: i } = ba({
|
|
1161
|
+
focusMode: o,
|
|
1119
1162
|
mode: n,
|
|
1120
1163
|
size: r
|
|
1121
1164
|
});
|
|
1122
|
-
return /* @__PURE__ */
|
|
1123
|
-
|
|
1165
|
+
return /* @__PURE__ */ a("div", { className: i, children: /* @__PURE__ */ a(
|
|
1166
|
+
ma,
|
|
1124
1167
|
{
|
|
1125
1168
|
disabled: t,
|
|
1126
1169
|
className: s,
|
|
@@ -1130,29 +1173,29 @@ const At = I.createContext({
|
|
|
1130
1173
|
) });
|
|
1131
1174
|
};
|
|
1132
1175
|
/*!
|
|
1133
|
-
@versini/ui-panel v1.3.
|
|
1176
|
+
@versini/ui-panel v1.3.3
|
|
1134
1177
|
© 2025 gizmette.com
|
|
1135
1178
|
*/
|
|
1136
1179
|
try {
|
|
1137
1180
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
1138
|
-
version: "1.3.
|
|
1139
|
-
buildTime: "01/04/2025
|
|
1181
|
+
version: "1.3.3",
|
|
1182
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1140
1183
|
homepage: "https://github.com/aversini/ui-components",
|
|
1141
1184
|
license: "MIT"
|
|
1142
1185
|
});
|
|
1143
1186
|
} catch {
|
|
1144
1187
|
}
|
|
1145
|
-
const
|
|
1188
|
+
const qe = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt = "button", Le = "link", wa = ({
|
|
1146
1189
|
type: e,
|
|
1147
1190
|
size: t,
|
|
1148
1191
|
labelRight: r,
|
|
1149
|
-
labelLeft:
|
|
1192
|
+
labelLeft: o,
|
|
1150
1193
|
align: n
|
|
1151
1194
|
}) => {
|
|
1152
1195
|
const s = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
1153
1196
|
switch (e) {
|
|
1154
1197
|
case zt:
|
|
1155
|
-
case
|
|
1198
|
+
case Le:
|
|
1156
1199
|
return w({
|
|
1157
1200
|
[s]: t === "small",
|
|
1158
1201
|
[i]: t === "medium",
|
|
@@ -1163,46 +1206,46 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1163
1206
|
"justify-center": n === "center",
|
|
1164
1207
|
"justify-start": n === "left",
|
|
1165
1208
|
"justify-end": n === "right",
|
|
1166
|
-
"h-6 w-6 p-0": t === "small" && !(r ||
|
|
1167
|
-
"h-6 px-2": t === "small" && (r ||
|
|
1168
|
-
"h-8 w-8 p-1": t === "medium" && !(r ||
|
|
1169
|
-
"h-8 px-3": t === "medium" && (r ||
|
|
1170
|
-
"h-12 w-12 p-2": t === "large" && !(r ||
|
|
1171
|
-
"h-12 px-4": t === "large" && (r ||
|
|
1209
|
+
"h-6 w-6 p-0": t === "small" && !(r || o),
|
|
1210
|
+
"h-6 px-2": t === "small" && (r || o),
|
|
1211
|
+
"h-8 w-8 p-1": t === "medium" && !(r || o),
|
|
1212
|
+
"h-8 px-3": t === "medium" && (r || o),
|
|
1213
|
+
"h-12 w-12 p-2": t === "large" && !(r || o),
|
|
1214
|
+
"h-12 px-4": t === "large" && (r || o)
|
|
1172
1215
|
});
|
|
1173
1216
|
}
|
|
1174
|
-
},
|
|
1217
|
+
}, Na = ({
|
|
1175
1218
|
type: e,
|
|
1176
1219
|
size: t,
|
|
1177
1220
|
labelRight: r,
|
|
1178
|
-
labelLeft:
|
|
1221
|
+
labelLeft: o
|
|
1179
1222
|
}) => {
|
|
1180
1223
|
const n = "text-sm font-medium", s = "text-base font-medium", i = "text-lg font-medium";
|
|
1181
1224
|
switch (e) {
|
|
1182
1225
|
case zt:
|
|
1183
|
-
case
|
|
1226
|
+
case Le:
|
|
1184
1227
|
return w({
|
|
1185
|
-
"text-center": e ===
|
|
1228
|
+
"text-center": e === Le,
|
|
1186
1229
|
[n]: t === "small",
|
|
1187
1230
|
[s]: t === "medium",
|
|
1188
1231
|
[i]: t === "large"
|
|
1189
1232
|
});
|
|
1190
1233
|
case we:
|
|
1191
1234
|
return w({
|
|
1192
|
-
[n]: t === "small" && (r ||
|
|
1193
|
-
[s]: t === "medium" && (r ||
|
|
1194
|
-
[i]: t === "large" && (r ||
|
|
1235
|
+
[n]: t === "small" && (r || o),
|
|
1236
|
+
[s]: t === "medium" && (r || o),
|
|
1237
|
+
[i]: t === "large" && (r || o)
|
|
1195
1238
|
});
|
|
1196
1239
|
}
|
|
1197
|
-
},
|
|
1240
|
+
}, Ca = ({
|
|
1198
1241
|
mode: e,
|
|
1199
1242
|
noBackground: t,
|
|
1200
1243
|
noTruncate: r,
|
|
1201
|
-
variant:
|
|
1244
|
+
variant: o
|
|
1202
1245
|
}) => {
|
|
1203
1246
|
if (t)
|
|
1204
1247
|
return "not-prose";
|
|
1205
|
-
if (
|
|
1248
|
+
if (o === "primary")
|
|
1206
1249
|
return w("not-prose", {
|
|
1207
1250
|
truncate: !r,
|
|
1208
1251
|
"text-copy-light": e === "dark" || e === "system",
|
|
@@ -1210,7 +1253,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1210
1253
|
"dark:text-copy-lighter": e === "system",
|
|
1211
1254
|
"dark:text-copy-light": e === "alt-system"
|
|
1212
1255
|
});
|
|
1213
|
-
if (
|
|
1256
|
+
if (o === "secondary")
|
|
1214
1257
|
return w("not-prose", {
|
|
1215
1258
|
truncate: !r,
|
|
1216
1259
|
"text-copy-light": e === "light" || e === "system",
|
|
@@ -1218,7 +1261,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1218
1261
|
"dark:text-copy-lighter": e === "alt-system",
|
|
1219
1262
|
"dark:text-copy-light": e === "system"
|
|
1220
1263
|
});
|
|
1221
|
-
if (
|
|
1264
|
+
if (o === "danger")
|
|
1222
1265
|
return w("not-prose", {
|
|
1223
1266
|
truncate: !r,
|
|
1224
1267
|
"text-copy-light": e === "dark" || e === "system",
|
|
@@ -1226,11 +1269,11 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1226
1269
|
"dark:text-copy-lighter": e === "system",
|
|
1227
1270
|
"dark:text-copy-light": e === "alt-system"
|
|
1228
1271
|
});
|
|
1229
|
-
if (
|
|
1272
|
+
if (o === "selected")
|
|
1230
1273
|
return w("not-prose text-copy-lighter", {
|
|
1231
1274
|
truncate: !r
|
|
1232
1275
|
});
|
|
1233
|
-
},
|
|
1276
|
+
}, xa = ({
|
|
1234
1277
|
mode: e,
|
|
1235
1278
|
noBackground: t,
|
|
1236
1279
|
variant: r
|
|
@@ -1260,13 +1303,13 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1260
1303
|
if (r === "selected")
|
|
1261
1304
|
return "bg-action-selected-dark";
|
|
1262
1305
|
}
|
|
1263
|
-
},
|
|
1306
|
+
}, Ta = ({
|
|
1264
1307
|
radius: e
|
|
1265
1308
|
}) => w({
|
|
1266
1309
|
"rounded-full": e === "large",
|
|
1267
1310
|
"rounded-md": e === "medium",
|
|
1268
1311
|
"rounded-sm": e === "small"
|
|
1269
|
-
}),
|
|
1312
|
+
}), Ia = ({
|
|
1270
1313
|
mode: e,
|
|
1271
1314
|
disabled: t,
|
|
1272
1315
|
variant: r
|
|
@@ -1296,7 +1339,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1296
1339
|
});
|
|
1297
1340
|
if (r === "selected")
|
|
1298
1341
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
1299
|
-
},
|
|
1342
|
+
}, Ea = ({
|
|
1300
1343
|
mode: e,
|
|
1301
1344
|
disabled: t,
|
|
1302
1345
|
variant: r
|
|
@@ -1326,7 +1369,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1326
1369
|
});
|
|
1327
1370
|
if (r === "selected")
|
|
1328
1371
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
1329
|
-
},
|
|
1372
|
+
}, _a = ({
|
|
1330
1373
|
mode: e,
|
|
1331
1374
|
noBorder: t,
|
|
1332
1375
|
variant: r
|
|
@@ -1356,18 +1399,18 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1356
1399
|
});
|
|
1357
1400
|
if (r === "selected")
|
|
1358
1401
|
return "border border-border-selected-dark";
|
|
1359
|
-
},
|
|
1402
|
+
}, Sa = ({
|
|
1360
1403
|
focusMode: e
|
|
1361
1404
|
}) => w("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
1362
1405
|
"focus:outline-focus-dark": e === "dark",
|
|
1363
1406
|
"focus:outline-focus-light": e === "light",
|
|
1364
1407
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1365
1408
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1366
|
-
}),
|
|
1409
|
+
}), At = ({
|
|
1367
1410
|
type: e,
|
|
1368
1411
|
className: t,
|
|
1369
1412
|
raw: r,
|
|
1370
|
-
mode:
|
|
1413
|
+
mode: o,
|
|
1371
1414
|
focusMode: n,
|
|
1372
1415
|
disabled: s,
|
|
1373
1416
|
fullWidth: i,
|
|
@@ -1382,54 +1425,54 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1382
1425
|
radius: k
|
|
1383
1426
|
}) => (p || (p = "primary"), r ? w(Xe, t) : w(
|
|
1384
1427
|
Xe,
|
|
1385
|
-
|
|
1386
|
-
mode:
|
|
1428
|
+
Ca({
|
|
1429
|
+
mode: o,
|
|
1387
1430
|
variant: p,
|
|
1388
1431
|
noBackground: f,
|
|
1389
1432
|
noTruncate: v
|
|
1390
1433
|
}),
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1434
|
+
xa({ mode: o, noBackground: f, variant: p }),
|
|
1435
|
+
Ta({ radius: k }),
|
|
1436
|
+
wa({
|
|
1394
1437
|
type: e,
|
|
1395
1438
|
size: c,
|
|
1396
1439
|
labelRight: d,
|
|
1397
1440
|
labelLeft: u,
|
|
1398
1441
|
align: h
|
|
1399
1442
|
}),
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1443
|
+
Na({ type: e, size: c, labelRight: d, labelLeft: u }),
|
|
1444
|
+
_a({ mode: o, variant: p, noBorder: l }),
|
|
1445
|
+
Sa({ focusMode: n }),
|
|
1446
|
+
Ia({ mode: o, variant: p, disabled: s }),
|
|
1447
|
+
Ea({ mode: o, variant: p, disabled: s }),
|
|
1405
1448
|
{
|
|
1406
1449
|
"w-full": i,
|
|
1407
1450
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
1408
1451
|
},
|
|
1409
1452
|
t
|
|
1410
|
-
)),
|
|
1411
|
-
var
|
|
1412
|
-
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((
|
|
1453
|
+
)), Ra = (e, t, r) => {
|
|
1454
|
+
var o;
|
|
1455
|
+
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((o = e == null ? void 0 : e.currentTarget) == null ? void 0 : o.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
1413
1456
|
}, $e = I.forwardRef((e, t) => {
|
|
1414
|
-
const { onClick: r, noInternalClick:
|
|
1415
|
-
return /* @__PURE__ */
|
|
1457
|
+
const { onClick: r, noInternalClick: o = !1, ...n } = e;
|
|
1458
|
+
return /* @__PURE__ */ a(
|
|
1416
1459
|
"button",
|
|
1417
1460
|
{
|
|
1418
1461
|
ref: t,
|
|
1419
1462
|
onClick: (s) => {
|
|
1420
|
-
|
|
1463
|
+
Ra(s, o, r);
|
|
1421
1464
|
},
|
|
1422
1465
|
...n
|
|
1423
1466
|
}
|
|
1424
1467
|
);
|
|
1425
1468
|
});
|
|
1426
1469
|
$e.displayName = "BaseButton";
|
|
1427
|
-
const
|
|
1470
|
+
const Pt = I.forwardRef(
|
|
1428
1471
|
({
|
|
1429
1472
|
children: e,
|
|
1430
1473
|
disabled: t = !1,
|
|
1431
1474
|
mode: r = "system",
|
|
1432
|
-
focusMode:
|
|
1475
|
+
focusMode: o = "system",
|
|
1433
1476
|
fullWidth: n = !1,
|
|
1434
1477
|
className: s,
|
|
1435
1478
|
type: i = "button",
|
|
@@ -1443,13 +1486,13 @@ const Bt = I.forwardRef(
|
|
|
1443
1486
|
noBackground: h = !1,
|
|
1444
1487
|
align: k = "center",
|
|
1445
1488
|
radius: b = "large",
|
|
1446
|
-
variant:
|
|
1489
|
+
variant: N = "primary",
|
|
1447
1490
|
...x
|
|
1448
1491
|
}, m) => {
|
|
1449
|
-
const
|
|
1492
|
+
const C = At({
|
|
1450
1493
|
type: we,
|
|
1451
1494
|
mode: r,
|
|
1452
|
-
focusMode:
|
|
1495
|
+
focusMode: o,
|
|
1453
1496
|
fullWidth: n,
|
|
1454
1497
|
disabled: t,
|
|
1455
1498
|
raw: c,
|
|
@@ -1461,7 +1504,7 @@ const Bt = I.forwardRef(
|
|
|
1461
1504
|
noBackground: h,
|
|
1462
1505
|
align: k,
|
|
1463
1506
|
radius: b,
|
|
1464
|
-
variant:
|
|
1507
|
+
variant: N
|
|
1465
1508
|
}), E = w({
|
|
1466
1509
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1467
1510
|
"text-copy-light": r === "dark" && !c,
|
|
@@ -1472,40 +1515,40 @@ const Bt = I.forwardRef(
|
|
|
1472
1515
|
$e,
|
|
1473
1516
|
{
|
|
1474
1517
|
ref: m,
|
|
1475
|
-
className:
|
|
1518
|
+
className: C,
|
|
1476
1519
|
disabled: t,
|
|
1477
1520
|
type: i,
|
|
1478
1521
|
"aria-label": d || u,
|
|
1479
1522
|
...x,
|
|
1480
1523
|
children: [
|
|
1481
|
-
v && /* @__PURE__ */
|
|
1482
|
-
/* @__PURE__ */
|
|
1483
|
-
p && /* @__PURE__ */
|
|
1524
|
+
v && /* @__PURE__ */ a("span", { className: "pr-2", children: v }),
|
|
1525
|
+
/* @__PURE__ */ a("div", { className: E, children: e }),
|
|
1526
|
+
p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
|
|
1484
1527
|
]
|
|
1485
1528
|
}
|
|
1486
1529
|
);
|
|
1487
1530
|
}
|
|
1488
1531
|
);
|
|
1489
|
-
|
|
1532
|
+
Pt.displayName = "ButtonIcon";
|
|
1490
1533
|
/*!
|
|
1491
|
-
@versini/ui-button v4.0.
|
|
1534
|
+
@versini/ui-button v4.0.3
|
|
1492
1535
|
© 2025 gizmette.com
|
|
1493
1536
|
*/
|
|
1494
1537
|
try {
|
|
1495
1538
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1496
|
-
version: "4.0.
|
|
1497
|
-
buildTime: "01/04/2025
|
|
1539
|
+
version: "4.0.3",
|
|
1540
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1498
1541
|
homepage: "https://github.com/aversini/ui-components",
|
|
1499
1542
|
license: "MIT"
|
|
1500
1543
|
});
|
|
1501
1544
|
} catch {
|
|
1502
1545
|
}
|
|
1503
|
-
const
|
|
1546
|
+
const Ma = I.forwardRef(
|
|
1504
1547
|
({
|
|
1505
1548
|
children: e,
|
|
1506
1549
|
disabled: t = !1,
|
|
1507
1550
|
mode: r = "system",
|
|
1508
|
-
focusMode:
|
|
1551
|
+
focusMode: o = "system",
|
|
1509
1552
|
fullWidth: n = !1,
|
|
1510
1553
|
className: s,
|
|
1511
1554
|
type: i = "button",
|
|
@@ -1519,13 +1562,13 @@ const Ao = I.forwardRef(
|
|
|
1519
1562
|
noBackground: h = !1,
|
|
1520
1563
|
align: k = "center",
|
|
1521
1564
|
active: b = !1,
|
|
1522
|
-
radius:
|
|
1565
|
+
radius: N = "large",
|
|
1523
1566
|
...x
|
|
1524
1567
|
}, m) => {
|
|
1525
|
-
const
|
|
1568
|
+
const C = At({
|
|
1526
1569
|
type: we,
|
|
1527
1570
|
mode: r,
|
|
1528
|
-
focusMode:
|
|
1571
|
+
focusMode: o,
|
|
1529
1572
|
fullWidth: n,
|
|
1530
1573
|
disabled: t,
|
|
1531
1574
|
raw: c,
|
|
@@ -1536,13 +1579,13 @@ const Ao = I.forwardRef(
|
|
|
1536
1579
|
labelLeft: v,
|
|
1537
1580
|
noBackground: h,
|
|
1538
1581
|
align: k,
|
|
1539
|
-
radius:
|
|
1582
|
+
radius: N
|
|
1540
1583
|
}), E = w({
|
|
1541
1584
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1542
1585
|
"text-copy-light": r === "dark" && !c,
|
|
1543
1586
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
1544
1587
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1545
|
-
}),
|
|
1588
|
+
}), L = b ? w(
|
|
1546
1589
|
"relative",
|
|
1547
1590
|
"focus-within:static",
|
|
1548
1591
|
"focus-within:after:border-transparent",
|
|
@@ -1559,39 +1602,39 @@ const Ao = I.forwardRef(
|
|
|
1559
1602
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
1560
1603
|
}
|
|
1561
1604
|
) : "";
|
|
1562
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ a("div", { className: L, children: /* @__PURE__ */ y(
|
|
1563
1606
|
$e,
|
|
1564
1607
|
{
|
|
1565
1608
|
ref: m,
|
|
1566
|
-
className:
|
|
1609
|
+
className: C,
|
|
1567
1610
|
disabled: t,
|
|
1568
1611
|
type: i,
|
|
1569
1612
|
"aria-label": d || u,
|
|
1570
1613
|
...x,
|
|
1571
1614
|
children: [
|
|
1572
|
-
v && /* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
1574
|
-
p && /* @__PURE__ */
|
|
1615
|
+
v && /* @__PURE__ */ a("span", { className: "pr-2", children: v }),
|
|
1616
|
+
/* @__PURE__ */ a("div", { className: E, children: e }),
|
|
1617
|
+
p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
|
|
1575
1618
|
]
|
|
1576
1619
|
}
|
|
1577
1620
|
) });
|
|
1578
1621
|
}
|
|
1579
1622
|
);
|
|
1580
|
-
|
|
1581
|
-
const
|
|
1623
|
+
Ma.displayName = "ButtonSort";
|
|
1624
|
+
const La = ({
|
|
1582
1625
|
children: e,
|
|
1583
1626
|
fill: t,
|
|
1584
1627
|
viewBox: r,
|
|
1585
|
-
className:
|
|
1628
|
+
className: o,
|
|
1586
1629
|
defaultViewBox: n,
|
|
1587
1630
|
size: s,
|
|
1588
1631
|
title: i,
|
|
1589
1632
|
semantic: c = !1,
|
|
1590
1633
|
...l
|
|
1591
1634
|
}) => {
|
|
1592
|
-
const d = w(s,
|
|
1635
|
+
const d = w(s, o);
|
|
1593
1636
|
return /* @__PURE__ */ y(z, { children: [
|
|
1594
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ a(
|
|
1595
1638
|
"svg",
|
|
1596
1639
|
{
|
|
1597
1640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1605,7 +1648,7 @@ const zo = ({
|
|
|
1605
1648
|
children: e
|
|
1606
1649
|
}
|
|
1607
1650
|
),
|
|
1608
|
-
i && c && /* @__PURE__ */
|
|
1651
|
+
i && c && /* @__PURE__ */ a("span", { className: "sr-only", children: i })
|
|
1609
1652
|
] });
|
|
1610
1653
|
};
|
|
1611
1654
|
/*!
|
|
@@ -1615,20 +1658,20 @@ const zo = ({
|
|
|
1615
1658
|
try {
|
|
1616
1659
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
1617
1660
|
version: "4.0.0",
|
|
1618
|
-
buildTime: "01/04/2025
|
|
1661
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1619
1662
|
homepage: "https://github.com/aversini/ui-components",
|
|
1620
1663
|
license: "MIT"
|
|
1621
1664
|
});
|
|
1622
1665
|
} catch {
|
|
1623
1666
|
}
|
|
1624
|
-
const
|
|
1667
|
+
const za = ({
|
|
1625
1668
|
className: e,
|
|
1626
1669
|
viewBox: t,
|
|
1627
1670
|
title: r,
|
|
1628
|
-
monotone:
|
|
1671
|
+
monotone: o,
|
|
1629
1672
|
...n
|
|
1630
|
-
}) => /* @__PURE__ */
|
|
1631
|
-
|
|
1673
|
+
}) => /* @__PURE__ */ a(
|
|
1674
|
+
La,
|
|
1632
1675
|
{
|
|
1633
1676
|
defaultViewBox: "0 0 384 512",
|
|
1634
1677
|
size: "size-5",
|
|
@@ -1636,29 +1679,29 @@ const Lo = ({
|
|
|
1636
1679
|
className: e,
|
|
1637
1680
|
title: r || "Close",
|
|
1638
1681
|
...n,
|
|
1639
|
-
children: /* @__PURE__ */
|
|
1682
|
+
children: /* @__PURE__ */ a("path", { d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z" })
|
|
1640
1683
|
}
|
|
1641
1684
|
);
|
|
1642
1685
|
/*!
|
|
1643
|
-
@versini/ui-icons v4.
|
|
1686
|
+
@versini/ui-icons v4.2.0
|
|
1644
1687
|
© 2025 gizmette.com
|
|
1645
1688
|
*/
|
|
1646
1689
|
try {
|
|
1647
1690
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1648
|
-
version: "4.
|
|
1649
|
-
buildTime: "01/04/2025
|
|
1691
|
+
version: "4.2.0",
|
|
1692
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1650
1693
|
homepage: "https://github.com/aversini/ui-components",
|
|
1651
1694
|
license: "MIT"
|
|
1652
1695
|
});
|
|
1653
1696
|
} catch {
|
|
1654
1697
|
}
|
|
1655
|
-
const
|
|
1656
|
-
function
|
|
1698
|
+
const Bt = g.createContext(null);
|
|
1699
|
+
function Aa({
|
|
1657
1700
|
initialOpen: e = !1,
|
|
1658
1701
|
open: t,
|
|
1659
1702
|
onOpenChange: r
|
|
1660
1703
|
} = {}) {
|
|
1661
|
-
const [
|
|
1704
|
+
const [o, n] = g.useState(e), [s, i] = g.useState(), [c, l] = g.useState(), d = t ?? o, u = r ?? n, f = it({
|
|
1662
1705
|
open: d,
|
|
1663
1706
|
onOpenChange: u
|
|
1664
1707
|
}), p = f.context, v = ct(p, {
|
|
@@ -1681,46 +1724,46 @@ function Bo({
|
|
|
1681
1724
|
[d, u, b, f, s, c]
|
|
1682
1725
|
);
|
|
1683
1726
|
}
|
|
1684
|
-
const
|
|
1685
|
-
const e = g.useContext(
|
|
1727
|
+
const Ne = () => {
|
|
1728
|
+
const e = g.useContext(Bt);
|
|
1686
1729
|
if (e == null)
|
|
1687
1730
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1688
1731
|
return e;
|
|
1689
1732
|
};
|
|
1690
|
-
function
|
|
1733
|
+
function Pa({
|
|
1691
1734
|
children: e,
|
|
1692
1735
|
...t
|
|
1693
1736
|
}) {
|
|
1694
|
-
const r =
|
|
1695
|
-
return /* @__PURE__ */
|
|
1737
|
+
const r = Aa(t);
|
|
1738
|
+
return /* @__PURE__ */ a(Bt.Provider, { value: r, children: e });
|
|
1696
1739
|
}
|
|
1697
|
-
const
|
|
1698
|
-
const { context: r, ...
|
|
1740
|
+
const Ba = g.forwardRef(function(e, t) {
|
|
1741
|
+
const { context: r, ...o } = Ne(), n = Ae([o.refs.setFloating, t]);
|
|
1699
1742
|
if (!r.open)
|
|
1700
1743
|
return null;
|
|
1701
1744
|
const { overlayBackground: s, ...i } = e, c = w("grid place-items-center", {
|
|
1702
1745
|
[`${s}`]: s,
|
|
1703
1746
|
"bg-black sm:bg-black/[.8]": !s
|
|
1704
1747
|
});
|
|
1705
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ a(mt, { children: /* @__PURE__ */ a(wr, { className: c, lockScroll: !0, children: /* @__PURE__ */ a(ht, { context: r, children: /* @__PURE__ */ a(
|
|
1706
1749
|
"div",
|
|
1707
1750
|
{
|
|
1708
1751
|
ref: n,
|
|
1709
|
-
"aria-labelledby":
|
|
1710
|
-
"aria-describedby":
|
|
1711
|
-
...
|
|
1752
|
+
"aria-labelledby": o.labelId,
|
|
1753
|
+
"aria-describedby": o.descriptionId,
|
|
1754
|
+
...o.getFloatingProps(i),
|
|
1712
1755
|
children: i.children
|
|
1713
1756
|
}
|
|
1714
1757
|
) }) }) });
|
|
1715
|
-
}),
|
|
1716
|
-
const { setLabelId:
|
|
1717
|
-
return g.useLayoutEffect(() => (
|
|
1718
|
-
}),
|
|
1719
|
-
const { setDescriptionId:
|
|
1720
|
-
return g.useLayoutEffect(() => (
|
|
1721
|
-
}),
|
|
1722
|
-
const { setOpen: r } =
|
|
1723
|
-
return /* @__PURE__ */
|
|
1758
|
+
}), Oa = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1759
|
+
const { setLabelId: o } = Ne(), n = ze();
|
|
1760
|
+
return g.useLayoutEffect(() => (o(n), () => o(void 0)), [n, o]), /* @__PURE__ */ a("h1", { ...t, ref: r, id: n, children: e });
|
|
1761
|
+
}), $a = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1762
|
+
const { setDescriptionId: o } = Ne(), n = ze();
|
|
1763
|
+
return g.useLayoutEffect(() => (o(n), () => o(void 0)), [n, o]), /* @__PURE__ */ a("div", { ...t, ref: r, id: n, children: e });
|
|
1764
|
+
}), Da = g.forwardRef(function(e, t) {
|
|
1765
|
+
const { setOpen: r } = Ne(), { trigger: o, className: n, ...s } = e, i = g.useCallback(() => r(!1), [r]);
|
|
1766
|
+
return /* @__PURE__ */ a("div", { className: n, children: g.cloneElement(o, {
|
|
1724
1767
|
ref: t,
|
|
1725
1768
|
onClick: i,
|
|
1726
1769
|
...s
|
|
@@ -1733,13 +1776,13 @@ const Oo = g.forwardRef(function(e, t) {
|
|
|
1733
1776
|
try {
|
|
1734
1777
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
1735
1778
|
version: "1.2.0",
|
|
1736
|
-
buildTime: "01/04/2025
|
|
1779
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1737
1780
|
homepage: "https://github.com/aversini/ui-components",
|
|
1738
1781
|
license: "MIT"
|
|
1739
1782
|
});
|
|
1740
1783
|
} catch {
|
|
1741
1784
|
}
|
|
1742
|
-
const se = "panel", ue = "messagebox",
|
|
1785
|
+
const se = "panel", ue = "messagebox", Fa = ({
|
|
1743
1786
|
className: e,
|
|
1744
1787
|
kind: t,
|
|
1745
1788
|
borderMode: r
|
|
@@ -1747,8 +1790,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1747
1790
|
main: w("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
1748
1791
|
[`${Qe} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === se,
|
|
1749
1792
|
[`${Qe} w-full sm:w-[95%] md:max-w-2xl`]: t === se && !e,
|
|
1750
|
-
[`${
|
|
1751
|
-
[`${
|
|
1793
|
+
[`${qe} rounded-lg border-2`]: t === ue,
|
|
1794
|
+
[`${qe} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === ue && !e,
|
|
1752
1795
|
[`${e}`]: !!e,
|
|
1753
1796
|
"sm:border-border-dark": r === "dark" && t === se,
|
|
1754
1797
|
"sm:border-border-accent": r === "light" && t === se,
|
|
@@ -1763,78 +1806,78 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1763
1806
|
open: e,
|
|
1764
1807
|
onOpenChange: t,
|
|
1765
1808
|
title: r,
|
|
1766
|
-
children:
|
|
1809
|
+
children: o,
|
|
1767
1810
|
footer: n,
|
|
1768
1811
|
borderMode: s = "light",
|
|
1769
1812
|
kind: i = se,
|
|
1770
1813
|
className: c
|
|
1771
1814
|
}) => {
|
|
1772
|
-
const l =
|
|
1773
|
-
return
|
|
1815
|
+
const l = Z(""), d = Fa({ className: c, kind: i, borderMode: s });
|
|
1816
|
+
return q(() => (e && (l.current = document.title, document.title = `${r} | ${l.current}`), () => {
|
|
1774
1817
|
e && (document.title = l.current);
|
|
1775
|
-
}), [r, e]), /* @__PURE__ */
|
|
1818
|
+
}), [r, e]), /* @__PURE__ */ a(z, { children: e && /* @__PURE__ */ a(Pa, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Ba, { className: d.main, children: [
|
|
1776
1819
|
/* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
|
|
1820
|
+
/* @__PURE__ */ a(
|
|
1821
|
+
Da,
|
|
1779
1822
|
{
|
|
1780
1823
|
className: d.close,
|
|
1781
|
-
trigger: /* @__PURE__ */
|
|
1782
|
-
|
|
1824
|
+
trigger: /* @__PURE__ */ a(
|
|
1825
|
+
Pt,
|
|
1783
1826
|
{
|
|
1784
1827
|
mode: "dark",
|
|
1785
1828
|
focusMode: "light",
|
|
1786
1829
|
noBorder: !0,
|
|
1787
1830
|
label: "Close",
|
|
1788
|
-
children: /* @__PURE__ */
|
|
1831
|
+
children: /* @__PURE__ */ a(za, {})
|
|
1789
1832
|
}
|
|
1790
1833
|
)
|
|
1791
1834
|
}
|
|
1792
1835
|
),
|
|
1793
|
-
/* @__PURE__ */
|
|
1836
|
+
/* @__PURE__ */ a(Oa, { className: d.header, children: r })
|
|
1794
1837
|
] }),
|
|
1795
|
-
/* @__PURE__ */
|
|
1796
|
-
n && /* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ a($a, { className: d.content, children: o }),
|
|
1839
|
+
n && /* @__PURE__ */ a("div", { className: d.footer, children: n })
|
|
1797
1840
|
] }) }) });
|
|
1798
|
-
},
|
|
1799
|
-
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "",
|
|
1841
|
+
}, Ga = ({ stats: e }) => {
|
|
1842
|
+
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", o = (e == null ? void 0 : e.models) || [], n = fe(), s = fe();
|
|
1800
1843
|
return /* @__PURE__ */ y(z, { children: [
|
|
1801
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
|
|
1802
1845
|
O,
|
|
1803
1846
|
{
|
|
1804
1847
|
header: S.ABOUT.TITLE_CLIENT,
|
|
1805
1848
|
className: "prose-dark dark:prose-lighter",
|
|
1806
1849
|
children: he(n, {
|
|
1807
|
-
[S.ABOUT.VERSION]: "5.19.
|
|
1808
|
-
[S.ABOUT.BUILD_TIMESTAMP]: "01/04/2025
|
|
1850
|
+
[S.ABOUT.VERSION]: "5.19.5",
|
|
1851
|
+
[S.ABOUT.BUILD_TIMESTAMP]: "01/04/2025 04:45 PM EST"
|
|
1809
1852
|
})
|
|
1810
1853
|
}
|
|
1811
1854
|
) }),
|
|
1812
|
-
/* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ a(
|
|
1813
1856
|
O,
|
|
1814
1857
|
{
|
|
1815
1858
|
header: S.ABOUT.TITLE_SERVER,
|
|
1816
1859
|
className: "prose-dark dark:prose-lighter",
|
|
1817
1860
|
children: he(s, {
|
|
1818
1861
|
[S.ABOUT.VERSION]: r,
|
|
1819
|
-
[ge(S.ABOUT.ENGINE,
|
|
1820
|
-
[ge(S.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */
|
|
1862
|
+
[ge(S.ABOUT.ENGINE, o.length)]: /* @__PURE__ */ a(z, { children: o.map((i) => /* @__PURE__ */ a("div", { className: "text-right", children: i }, i)) }),
|
|
1863
|
+
[ge(S.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ a(z, { children: t.map((i) => /* @__PURE__ */ a("div", { className: "text-right", children: i }, i)) })
|
|
1821
1864
|
})
|
|
1822
1865
|
}
|
|
1823
1866
|
)
|
|
1824
1867
|
] });
|
|
1825
|
-
},
|
|
1868
|
+
}, Va = ({
|
|
1826
1869
|
open: e,
|
|
1827
1870
|
onOpenChange: t
|
|
1828
1871
|
}) => {
|
|
1829
|
-
const { serverStats: r } =
|
|
1830
|
-
return /* @__PURE__ */
|
|
1872
|
+
const { serverStats: r } = F(ve);
|
|
1873
|
+
return /* @__PURE__ */ a(te, { open: e, onOpenChange: t, title: Ft, children: /* @__PURE__ */ a(Ga, { stats: r }) });
|
|
1831
1874
|
}, Ot = ({
|
|
1832
1875
|
showConfirmation: e,
|
|
1833
1876
|
setShowConfirmation: t,
|
|
1834
1877
|
action: r,
|
|
1835
|
-
children:
|
|
1878
|
+
children: o,
|
|
1836
1879
|
customStrings: n
|
|
1837
|
-
}) => /* @__PURE__ */
|
|
1880
|
+
}) => /* @__PURE__ */ a(
|
|
1838
1881
|
te,
|
|
1839
1882
|
{
|
|
1840
1883
|
kind: "messagebox",
|
|
@@ -1842,8 +1885,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1842
1885
|
onOpenChange: t,
|
|
1843
1886
|
title: n.title,
|
|
1844
1887
|
footer: /* @__PURE__ */ y(Y, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
|
|
1888
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
1889
|
+
G,
|
|
1847
1890
|
{
|
|
1848
1891
|
mode: "dark",
|
|
1849
1892
|
variant: "secondary",
|
|
@@ -1854,8 +1897,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1854
1897
|
children: n.cancelAction
|
|
1855
1898
|
}
|
|
1856
1899
|
) }),
|
|
1857
|
-
/* @__PURE__ */
|
|
1858
|
-
|
|
1900
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
1901
|
+
G,
|
|
1859
1902
|
{
|
|
1860
1903
|
mode: "dark",
|
|
1861
1904
|
variant: "danger",
|
|
@@ -1867,13 +1910,13 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1867
1910
|
}
|
|
1868
1911
|
) })
|
|
1869
1912
|
] }),
|
|
1870
|
-
children:
|
|
1913
|
+
children: o
|
|
1871
1914
|
}
|
|
1872
|
-
),
|
|
1915
|
+
), Ua = async (e, t, r, o) => {
|
|
1873
1916
|
try {
|
|
1874
1917
|
const n = await $({
|
|
1875
|
-
accessToken:
|
|
1876
|
-
type:
|
|
1918
|
+
accessToken: o,
|
|
1919
|
+
type: D.GET_CHAT,
|
|
1877
1920
|
params: {
|
|
1878
1921
|
id: e.id
|
|
1879
1922
|
}
|
|
@@ -1881,7 +1924,7 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1881
1924
|
n.status === 200 && (t({
|
|
1882
1925
|
type: et
|
|
1883
1926
|
}), t({
|
|
1884
|
-
type:
|
|
1927
|
+
type: Vt,
|
|
1885
1928
|
payload: {
|
|
1886
1929
|
id: e.id,
|
|
1887
1930
|
model: n.data.model,
|
|
@@ -1891,27 +1934,27 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1891
1934
|
}), r(!1));
|
|
1892
1935
|
} catch {
|
|
1893
1936
|
}
|
|
1894
|
-
},
|
|
1937
|
+
}, Ha = ({
|
|
1895
1938
|
filteredHistory: e,
|
|
1896
1939
|
setFilteredHistory: t,
|
|
1897
1940
|
dispatch: r,
|
|
1898
|
-
onOpenChange:
|
|
1941
|
+
onOpenChange: o
|
|
1899
1942
|
}) => {
|
|
1900
1943
|
var x;
|
|
1901
|
-
const { user: n, getAccessToken: s } = Q(), i =
|
|
1944
|
+
const { user: n, getAccessToken: s } = Q(), i = Z(null), c = Z({
|
|
1902
1945
|
id: 0,
|
|
1903
1946
|
timestamp: "",
|
|
1904
1947
|
message: ""
|
|
1905
1948
|
}), [l, d] = R(!1), [u, f] = R(
|
|
1906
|
-
|
|
1907
|
-
), { state: p, dispatch: v } =
|
|
1908
|
-
key: ce +
|
|
1949
|
+
Fe + Ge
|
|
1950
|
+
), { state: p, dispatch: v } = F(at), [, h] = le({
|
|
1951
|
+
key: ce + Gt,
|
|
1909
1952
|
initialValue: p.sortDirection
|
|
1910
1953
|
}), k = (m) => {
|
|
1911
1954
|
switch (p.sortDirection) {
|
|
1912
1955
|
case W.ASC:
|
|
1913
1956
|
h(W.DESC), v({
|
|
1914
|
-
type:
|
|
1957
|
+
type: Ve,
|
|
1915
1958
|
payload: {
|
|
1916
1959
|
sortedCell: m,
|
|
1917
1960
|
sortDirection: W.DESC
|
|
@@ -1920,7 +1963,7 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1920
1963
|
break;
|
|
1921
1964
|
default:
|
|
1922
1965
|
h(W.ASC), v({
|
|
1923
|
-
type:
|
|
1966
|
+
type: Ve,
|
|
1924
1967
|
payload: {
|
|
1925
1968
|
sortedCell: m,
|
|
1926
1969
|
sortDirection: W.ASC
|
|
@@ -1931,9 +1974,9 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1931
1974
|
}, b = async () => {
|
|
1932
1975
|
const m = c.current;
|
|
1933
1976
|
try {
|
|
1934
|
-
const
|
|
1977
|
+
const C = await $({
|
|
1935
1978
|
accessToken: await s(),
|
|
1936
|
-
type:
|
|
1979
|
+
type: D.DELETE_CHAT,
|
|
1937
1980
|
params: {
|
|
1938
1981
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1939
1982
|
id: m.id,
|
|
@@ -1943,18 +1986,18 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1943
1986
|
truncateSize: 100
|
|
1944
1987
|
}
|
|
1945
1988
|
});
|
|
1946
|
-
|
|
1989
|
+
C.status === 200 && t({ data: C.data });
|
|
1947
1990
|
} catch {
|
|
1948
1991
|
}
|
|
1949
|
-
},
|
|
1950
|
-
m[0].isIntersecting && f((E) => E +
|
|
1992
|
+
}, N = lr((m) => {
|
|
1993
|
+
m[0].isIntersecting && f((E) => E + Fe);
|
|
1951
1994
|
}, []);
|
|
1952
|
-
return
|
|
1995
|
+
return q(() => {
|
|
1953
1996
|
const m = {
|
|
1954
1997
|
// root: null,
|
|
1955
1998
|
rootMargin: "20px"
|
|
1956
|
-
},
|
|
1957
|
-
i.current &&
|
|
1999
|
+
}, C = new IntersectionObserver(N, m);
|
|
2000
|
+
i.current && C.observe(i.current);
|
|
1958
2001
|
}), /* @__PURE__ */ y(z, { children: [
|
|
1959
2002
|
/* @__PURE__ */ y(
|
|
1960
2003
|
Ot,
|
|
@@ -1968,17 +2011,17 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1968
2011
|
title: "Delete chat"
|
|
1969
2012
|
},
|
|
1970
2013
|
children: [
|
|
1971
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ a("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
1972
2015
|
/* @__PURE__ */ y("ul", { className: "m-0", children: [
|
|
1973
2016
|
/* @__PURE__ */ y("li", { children: [
|
|
1974
2017
|
"Timestamp:",
|
|
1975
2018
|
" ",
|
|
1976
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ a("span", { className: "text-lg", children: c.current && c.current.timestamp })
|
|
1977
2020
|
] }),
|
|
1978
2021
|
/* @__PURE__ */ y("li", { children: [
|
|
1979
2022
|
"First message:",
|
|
1980
2023
|
" ",
|
|
1981
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ a("span", { className: "text-lg", children: (x = c.current) == null ? void 0 : x.message })
|
|
1982
2025
|
] })
|
|
1983
2026
|
] })
|
|
1984
2027
|
]
|
|
@@ -1992,10 +2035,10 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1992
2035
|
compact: !0,
|
|
1993
2036
|
wrapperClassName: "max-h-[60vh] min-h-[60vh]",
|
|
1994
2037
|
children: [
|
|
1995
|
-
/* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
/* @__PURE__ */
|
|
1998
|
-
|
|
2038
|
+
/* @__PURE__ */ a(ar, { children: /* @__PURE__ */ y(xe, { children: [
|
|
2039
|
+
/* @__PURE__ */ a(P, { className: "sr-only", children: "Row" }),
|
|
2040
|
+
/* @__PURE__ */ a(
|
|
2041
|
+
or,
|
|
1999
2042
|
{
|
|
2000
2043
|
buttonClassName: "text-xs sm:text-sm",
|
|
2001
2044
|
cellId: "timestamp",
|
|
@@ -2008,18 +2051,18 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2008
2051
|
children: "Date"
|
|
2009
2052
|
}
|
|
2010
2053
|
),
|
|
2011
|
-
/* @__PURE__ */
|
|
2012
|
-
/* @__PURE__ */
|
|
2013
|
-
/* @__PURE__ */
|
|
2054
|
+
/* @__PURE__ */ a(P, { className: "text-xs sm:text-sm", children: "First message" }),
|
|
2055
|
+
/* @__PURE__ */ a(P, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
2056
|
+
/* @__PURE__ */ a(P, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
2014
2057
|
] }) }),
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
var E,
|
|
2058
|
+
/* @__PURE__ */ a(nr, { children: e.data.slice(0, u).map((m, C) => {
|
|
2059
|
+
var E, L;
|
|
2017
2060
|
return ((E = m == null ? void 0 : m.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ y(dr, { children: [
|
|
2018
|
-
|
|
2061
|
+
C === u - Ge && /* @__PURE__ */ a("tr", { ref: i }),
|
|
2019
2062
|
/* @__PURE__ */ y(xe, { children: [
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
|
|
2063
|
+
/* @__PURE__ */ a(P, { children: C + 1 }),
|
|
2064
|
+
/* @__PURE__ */ a(
|
|
2065
|
+
P,
|
|
2023
2066
|
{
|
|
2024
2067
|
component: "th",
|
|
2025
2068
|
scope: "row",
|
|
@@ -2027,31 +2070,31 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2027
2070
|
children: m.timestamp.split(",")[0]
|
|
2028
2071
|
}
|
|
2029
2072
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
|
|
2073
|
+
/* @__PURE__ */ a(
|
|
2074
|
+
P,
|
|
2032
2075
|
{
|
|
2033
2076
|
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
|
2034
2077
|
style: {
|
|
2035
2078
|
wordBreak: "break-word"
|
|
2036
2079
|
},
|
|
2037
|
-
children: m.messages.length > 0 ? (
|
|
2080
|
+
children: m.messages.length > 0 ? (L = m.messages[0]) == null ? void 0 : L.content : ""
|
|
2038
2081
|
}
|
|
2039
2082
|
),
|
|
2040
2083
|
/* @__PURE__ */ y(
|
|
2041
|
-
|
|
2084
|
+
P,
|
|
2042
2085
|
{
|
|
2043
2086
|
component: "th",
|
|
2044
2087
|
scope: "row",
|
|
2045
2088
|
className: "text-gray-400",
|
|
2046
2089
|
align: "center",
|
|
2047
2090
|
children: [
|
|
2048
|
-
m.model && m.model.startsWith("claude") && /* @__PURE__ */
|
|
2049
|
-
m.model && m.model.startsWith("gpt") && /* @__PURE__ */
|
|
2091
|
+
m.model && m.model.startsWith("claude") && /* @__PURE__ */ a(gt, { size: "size-4 sm:size-5" }),
|
|
2092
|
+
m.model && m.model.startsWith("gpt") && /* @__PURE__ */ a(ft, { size: "size-4 sm:size-5" })
|
|
2050
2093
|
]
|
|
2051
2094
|
}
|
|
2052
2095
|
),
|
|
2053
|
-
/* @__PURE__ */ y(
|
|
2054
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ y(P, { align: "right", children: [
|
|
2097
|
+
/* @__PURE__ */ a(
|
|
2055
2098
|
J,
|
|
2056
2099
|
{
|
|
2057
2100
|
className: "mr-2",
|
|
@@ -2060,17 +2103,17 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2060
2103
|
label: "Restore chat",
|
|
2061
2104
|
onClick: async () => {
|
|
2062
2105
|
const _ = await s();
|
|
2063
|
-
|
|
2106
|
+
Ua(
|
|
2064
2107
|
m,
|
|
2065
2108
|
r,
|
|
2066
|
-
|
|
2109
|
+
o,
|
|
2067
2110
|
_
|
|
2068
2111
|
);
|
|
2069
2112
|
},
|
|
2070
|
-
children: /* @__PURE__ */
|
|
2113
|
+
children: /* @__PURE__ */ a(_r, { size: "size-3", monotone: !0 })
|
|
2071
2114
|
}
|
|
2072
2115
|
),
|
|
2073
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ a(
|
|
2074
2117
|
J,
|
|
2075
2118
|
{
|
|
2076
2119
|
focusMode: "alt-system",
|
|
@@ -2084,14 +2127,14 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2084
2127
|
message: m.messages.length > 0 ? (_ = m.messages[0]) == null ? void 0 : _.content : ""
|
|
2085
2128
|
}, d(!l);
|
|
2086
2129
|
},
|
|
2087
|
-
children: /* @__PURE__ */
|
|
2130
|
+
children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(Cr, { size: "size-3", monotone: !0 }) })
|
|
2088
2131
|
}
|
|
2089
2132
|
)
|
|
2090
2133
|
] })
|
|
2091
2134
|
] })
|
|
2092
|
-
] }, `${S.HISTORY.TITLE}-${m.id}-${
|
|
2135
|
+
] }, `${S.HISTORY.TITLE}-${m.id}-${C}`) : null;
|
|
2093
2136
|
}) }),
|
|
2094
|
-
/* @__PURE__ */
|
|
2137
|
+
/* @__PURE__ */ a(sr, { children: /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a(P, { colSpan: 1e3, children: /* @__PURE__ */ a("div", { children: ge(
|
|
2095
2138
|
`${e.data.length} chat`,
|
|
2096
2139
|
e.data.length
|
|
2097
2140
|
) }) }) }) })
|
|
@@ -2103,19 +2146,19 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2103
2146
|
searchString: e,
|
|
2104
2147
|
username: t,
|
|
2105
2148
|
accessToken: r,
|
|
2106
|
-
direction:
|
|
2149
|
+
direction: o = W.ASC
|
|
2107
2150
|
}) => {
|
|
2108
2151
|
if (!t)
|
|
2109
2152
|
return [];
|
|
2110
2153
|
try {
|
|
2111
2154
|
const n = await $({
|
|
2112
2155
|
accessToken: r,
|
|
2113
|
-
type:
|
|
2156
|
+
type: D.GET_CHATS,
|
|
2114
2157
|
params: {
|
|
2115
2158
|
userId: t,
|
|
2116
2159
|
searchString: e,
|
|
2117
2160
|
limit: 1,
|
|
2118
|
-
direction:
|
|
2161
|
+
direction: o,
|
|
2119
2162
|
truncateSize: 100
|
|
2120
2163
|
}
|
|
2121
2164
|
});
|
|
@@ -2125,21 +2168,21 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2125
2168
|
return [];
|
|
2126
2169
|
}
|
|
2127
2170
|
return [];
|
|
2128
|
-
},
|
|
2171
|
+
}, ja = ({
|
|
2129
2172
|
open: e,
|
|
2130
2173
|
onOpenChange: t
|
|
2131
2174
|
}) => {
|
|
2132
|
-
const { isAuthenticated: r, getAccessToken:
|
|
2133
|
-
key: ce +
|
|
2175
|
+
const { isAuthenticated: r, getAccessToken: o, user: n } = Q(), s = Z(null), i = Z(!1), { dispatch: c } = F(ve), { state: l, dispatch: d } = F(at), [, u] = le({
|
|
2176
|
+
key: ce + Ut,
|
|
2134
2177
|
initialValue: l.searchString
|
|
2135
2178
|
}), [f, p] = R({
|
|
2136
2179
|
data: [],
|
|
2137
2180
|
sortedDirection: l.sortDirection
|
|
2138
2181
|
}), v = async (b) => {
|
|
2139
|
-
const
|
|
2182
|
+
const N = await o(), x = await Je({
|
|
2140
2183
|
searchString: b,
|
|
2141
2184
|
username: n == null ? void 0 : n.username,
|
|
2142
|
-
accessToken:
|
|
2185
|
+
accessToken: N,
|
|
2143
2186
|
direction: l.sortDirection
|
|
2144
2187
|
});
|
|
2145
2188
|
p({
|
|
@@ -2157,23 +2200,23 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2157
2200
|
return We(() => {
|
|
2158
2201
|
i.current || (async () => {
|
|
2159
2202
|
i.current = !0;
|
|
2160
|
-
const b = await
|
|
2203
|
+
const b = await o(), N = await Je({
|
|
2161
2204
|
searchString: l.searchString,
|
|
2162
2205
|
username: n == null ? void 0 : n.username,
|
|
2163
2206
|
accessToken: b,
|
|
2164
2207
|
direction: l.sortDirection
|
|
2165
2208
|
});
|
|
2166
2209
|
p({
|
|
2167
|
-
data:
|
|
2210
|
+
data: N,
|
|
2168
2211
|
sortedDirection: l.sortDirection
|
|
2169
2212
|
});
|
|
2170
2213
|
})();
|
|
2171
2214
|
}), We(() => {
|
|
2172
2215
|
if (l.sortDirection !== f.sortedDirection) {
|
|
2173
|
-
const b = [...f.data].sort((
|
|
2216
|
+
const b = [...f.data].sort((N, x) => {
|
|
2174
2217
|
if (l.sortedCell === "timestamp") {
|
|
2175
|
-
const m = new Date(
|
|
2176
|
-
return l.sortDirection === W.ASC ? m -
|
|
2218
|
+
const m = new Date(N[l.sortedCell]).getTime(), C = new Date(x[l.sortedCell]).getTime();
|
|
2219
|
+
return l.sortDirection === W.ASC ? m - C : C - m;
|
|
2177
2220
|
}
|
|
2178
2221
|
return 0;
|
|
2179
2222
|
});
|
|
@@ -2182,8 +2225,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2182
2225
|
sortedDirection: l.sortDirection
|
|
2183
2226
|
});
|
|
2184
2227
|
}
|
|
2185
|
-
}, [f, l]), r ? f && f.data && /* @__PURE__ */
|
|
2186
|
-
/* @__PURE__ */
|
|
2228
|
+
}, [f, l]), r ? f && f.data && /* @__PURE__ */ a(te, { open: e, onOpenChange: t, title: Ht, children: /* @__PURE__ */ y(z, { children: [
|
|
2229
|
+
/* @__PURE__ */ a("form", { autoComplete: "off", onSubmit: k, children: /* @__PURE__ */ a(
|
|
2187
2230
|
Ie,
|
|
2188
2231
|
{
|
|
2189
2232
|
autoCapitalize: "off",
|
|
@@ -2198,8 +2241,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2198
2241
|
onChange: h,
|
|
2199
2242
|
className: "mt-2 mb-2",
|
|
2200
2243
|
...l.searchString && {
|
|
2201
|
-
rightElement: /* @__PURE__ */
|
|
2202
|
-
|
|
2244
|
+
rightElement: /* @__PURE__ */ a(
|
|
2245
|
+
G,
|
|
2203
2246
|
{
|
|
2204
2247
|
type: "button",
|
|
2205
2248
|
disabled: !l.searchString,
|
|
@@ -2217,8 +2260,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2217
2260
|
}
|
|
2218
2261
|
}
|
|
2219
2262
|
) }),
|
|
2220
|
-
/* @__PURE__ */
|
|
2221
|
-
|
|
2263
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ a(
|
|
2264
|
+
Ha,
|
|
2222
2265
|
{
|
|
2223
2266
|
filteredHistory: f,
|
|
2224
2267
|
setFilteredHistory: p,
|
|
@@ -2227,10 +2270,10 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2227
2270
|
}
|
|
2228
2271
|
) })
|
|
2229
2272
|
] }) }) : null;
|
|
2230
|
-
},
|
|
2231
|
-
const { isAuthenticated: t, user: r, registeringForPasskey:
|
|
2273
|
+
}, Wa = ({ stats: e }) => {
|
|
2274
|
+
const { isAuthenticated: t, user: r, registeringForPasskey: o, authenticationType: n } = Q(), s = fe(), i = fe(), c = (r == null ? void 0 : r.username) || "";
|
|
2232
2275
|
return t && c ? /* @__PURE__ */ y(z, { children: [
|
|
2233
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ a(
|
|
2234
2277
|
O,
|
|
2235
2278
|
{
|
|
2236
2279
|
header: S.PREFERENCES.TITLE,
|
|
@@ -2245,26 +2288,26 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2245
2288
|
O,
|
|
2246
2289
|
{
|
|
2247
2290
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2248
|
-
header: /* @__PURE__ */
|
|
2249
|
-
/* @__PURE__ */
|
|
2250
|
-
/* @__PURE__ */
|
|
2291
|
+
header: /* @__PURE__ */ a("h2", { className: "m-0", children: /* @__PURE__ */ y(Y, { columnGap: 3, alignVertical: "center", children: [
|
|
2292
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(Ue, { size: "size-8" }) }),
|
|
2293
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a("div", { children: S.PREFERENCES.PASSKEY_TITLE }) })
|
|
2251
2294
|
] }) }),
|
|
2252
2295
|
children: [
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ a("p", { children: S.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2297
|
+
/* @__PURE__ */ a(
|
|
2255
2298
|
J,
|
|
2256
2299
|
{
|
|
2257
2300
|
size: "small",
|
|
2258
2301
|
className: "mt-2",
|
|
2259
|
-
onClick:
|
|
2302
|
+
onClick: o,
|
|
2260
2303
|
labelLeft: S.PREFERENCES.PASSKEY_BUTTON,
|
|
2261
|
-
children: /* @__PURE__ */
|
|
2304
|
+
children: /* @__PURE__ */ a(Ue, { size: "size-5", monotone: !0 })
|
|
2262
2305
|
}
|
|
2263
2306
|
)
|
|
2264
2307
|
]
|
|
2265
2308
|
}
|
|
2266
2309
|
),
|
|
2267
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ a(
|
|
2268
2311
|
O,
|
|
2269
2312
|
{
|
|
2270
2313
|
header: S.MAIN_STATISTICS.TITLE,
|
|
@@ -2278,29 +2321,29 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2278
2321
|
}
|
|
2279
2322
|
)
|
|
2280
2323
|
] }) : null;
|
|
2281
|
-
},
|
|
2324
|
+
}, Ka = ({
|
|
2282
2325
|
open: e,
|
|
2283
2326
|
onOpenChange: t
|
|
2284
2327
|
}) => {
|
|
2285
|
-
const [r,
|
|
2328
|
+
const [r, o] = R({
|
|
2286
2329
|
averageProcessingTimes: 0,
|
|
2287
2330
|
totalChats: 0
|
|
2288
2331
|
}), { getAccessToken: n, user: s } = Q();
|
|
2289
|
-
return
|
|
2332
|
+
return q(() => {
|
|
2290
2333
|
!e || !s || (async () => {
|
|
2291
2334
|
try {
|
|
2292
2335
|
const i = await $({
|
|
2293
2336
|
accessToken: await n(),
|
|
2294
|
-
type:
|
|
2337
|
+
type: D.GET_CHATS_STATS,
|
|
2295
2338
|
params: {
|
|
2296
2339
|
userId: s.username
|
|
2297
2340
|
}
|
|
2298
2341
|
});
|
|
2299
|
-
i.status === 200 &&
|
|
2342
|
+
i.status === 200 && o(i.data);
|
|
2300
2343
|
} catch {
|
|
2301
2344
|
}
|
|
2302
2345
|
})();
|
|
2303
|
-
}, [e, n, s]), /* @__PURE__ */
|
|
2346
|
+
}, [e, n, s]), /* @__PURE__ */ a(te, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ a(Wa, { stats: r }) });
|
|
2304
2347
|
};
|
|
2305
2348
|
/*!
|
|
2306
2349
|
@versini/ui-toggle v3.0.0
|
|
@@ -2315,7 +2358,7 @@ try {
|
|
|
2315
2358
|
});
|
|
2316
2359
|
} catch {
|
|
2317
2360
|
}
|
|
2318
|
-
const
|
|
2361
|
+
const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa = ({
|
|
2319
2362
|
focusMode: e
|
|
2320
2363
|
}) => w(
|
|
2321
2364
|
"peer-focus:outline",
|
|
@@ -2327,14 +2370,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2327
2370
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
2328
2371
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
2329
2372
|
}
|
|
2330
|
-
),
|
|
2373
|
+
), Qa = () => w(
|
|
2331
2374
|
"peer-checked:after:translate-x-full",
|
|
2332
2375
|
// background color when checked
|
|
2333
2376
|
"peer-checked:bg-violet-500",
|
|
2334
2377
|
// knob circle and border color when checked
|
|
2335
2378
|
"peer-checked:after:bg-white",
|
|
2336
2379
|
"peer-checked:after:border-white"
|
|
2337
|
-
),
|
|
2380
|
+
), Xa = () => w(
|
|
2338
2381
|
"after:left-[2px]",
|
|
2339
2382
|
"after:top-[2px]",
|
|
2340
2383
|
"after:border",
|
|
@@ -2346,7 +2389,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2346
2389
|
"after:rounded-full",
|
|
2347
2390
|
"after:transition-all",
|
|
2348
2391
|
"after:content-['']"
|
|
2349
|
-
),
|
|
2392
|
+
), Ja = ({
|
|
2350
2393
|
mode: e,
|
|
2351
2394
|
noBorder: t
|
|
2352
2395
|
}) => w({
|
|
@@ -2355,7 +2398,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2355
2398
|
"border-border-light bg-surface-darker": e === "dark",
|
|
2356
2399
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
2357
2400
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
2358
|
-
}),
|
|
2401
|
+
}), eo = ({
|
|
2359
2402
|
mode: e,
|
|
2360
2403
|
labelHidden: t
|
|
2361
2404
|
}) => t ? "sr-only" : w("ml-2 text-sm", {
|
|
@@ -2363,49 +2406,49 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2363
2406
|
"text-copy-lighter": e === "dark",
|
|
2364
2407
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
2365
2408
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
2366
|
-
}),
|
|
2367
|
-
|
|
2409
|
+
}), to = ({ className: e }) => w(
|
|
2410
|
+
Ya,
|
|
2368
2411
|
"relative flex cursor-pointer items-center",
|
|
2369
2412
|
e
|
|
2370
|
-
),
|
|
2413
|
+
), ro = ({
|
|
2371
2414
|
mode: e,
|
|
2372
2415
|
focusMode: t,
|
|
2373
2416
|
labelHidden: r,
|
|
2374
|
-
className:
|
|
2417
|
+
className: o,
|
|
2375
2418
|
noBorder: n
|
|
2376
2419
|
}) => ({
|
|
2377
2420
|
toggle: w(
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2421
|
+
Za(),
|
|
2422
|
+
Ja({ mode: e, noBorder: n }),
|
|
2423
|
+
qa({ focusMode: t }),
|
|
2424
|
+
Xa(),
|
|
2425
|
+
Qa()
|
|
2383
2426
|
),
|
|
2384
|
-
label:
|
|
2427
|
+
label: eo({ mode: e, labelHidden: r }),
|
|
2385
2428
|
input: "peer sr-only",
|
|
2386
|
-
wrapper:
|
|
2429
|
+
wrapper: to({ className: o })
|
|
2387
2430
|
}), ie = ({
|
|
2388
2431
|
checked: e = !1,
|
|
2389
2432
|
onChange: t,
|
|
2390
2433
|
label: r,
|
|
2391
|
-
labelHidden:
|
|
2434
|
+
labelHidden: o = !1,
|
|
2392
2435
|
name: n,
|
|
2393
2436
|
mode: s = "system",
|
|
2394
2437
|
focusMode: i = "system",
|
|
2395
2438
|
className: c,
|
|
2396
2439
|
noBorder: l = !1
|
|
2397
2440
|
}) => {
|
|
2398
|
-
const d =
|
|
2441
|
+
const d = ro({
|
|
2399
2442
|
mode: s,
|
|
2400
2443
|
focusMode: i,
|
|
2401
|
-
labelHidden:
|
|
2444
|
+
labelHidden: o,
|
|
2402
2445
|
className: c,
|
|
2403
2446
|
noBorder: l
|
|
2404
2447
|
}), u = (f) => {
|
|
2405
2448
|
t == null || t(f.target.checked);
|
|
2406
2449
|
};
|
|
2407
2450
|
return /* @__PURE__ */ y("label", { className: d.wrapper, children: [
|
|
2408
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ a(
|
|
2409
2452
|
"input",
|
|
2410
2453
|
{
|
|
2411
2454
|
name: n,
|
|
@@ -2415,14 +2458,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2415
2458
|
onChange: u
|
|
2416
2459
|
}
|
|
2417
2460
|
),
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ a("div", { className: d.toggle }),
|
|
2462
|
+
/* @__PURE__ */ a("span", { className: d.label, children: r })
|
|
2420
2463
|
] });
|
|
2421
|
-
},
|
|
2464
|
+
}, ao = ({
|
|
2422
2465
|
open: e,
|
|
2423
2466
|
onOpenChange: t
|
|
2424
2467
|
}) => {
|
|
2425
|
-
const { state: r, dispatch:
|
|
2468
|
+
const { state: r, dispatch: o } = F(ir), { getAccessToken: n, user: s } = Q(), [i, c] = R({
|
|
2426
2469
|
tags: [...r.tags]
|
|
2427
2470
|
}), l = ({
|
|
2428
2471
|
slot: u,
|
|
@@ -2436,11 +2479,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2436
2479
|
label: p,
|
|
2437
2480
|
content: v,
|
|
2438
2481
|
enabled: f
|
|
2439
|
-
},
|
|
2440
|
-
return
|
|
2482
|
+
}, N = k.findIndex((x) => x.slot === u);
|
|
2483
|
+
return N === -1 ? {
|
|
2441
2484
|
...h,
|
|
2442
2485
|
tags: [...k, { ...b, slot: u }]
|
|
2443
|
-
} : (k[
|
|
2486
|
+
} : (k[N] = b, {
|
|
2444
2487
|
...h,
|
|
2445
2488
|
tags: [...k]
|
|
2446
2489
|
});
|
|
@@ -2450,12 +2493,12 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2450
2493
|
try {
|
|
2451
2494
|
await $({
|
|
2452
2495
|
accessToken: await n(),
|
|
2453
|
-
type:
|
|
2496
|
+
type: D.SET_USER_PREFERENCES,
|
|
2454
2497
|
params: {
|
|
2455
2498
|
user: s == null ? void 0 : s.username,
|
|
2456
2499
|
tags: i.tags
|
|
2457
2500
|
}
|
|
2458
|
-
}),
|
|
2501
|
+
}), o({
|
|
2459
2502
|
type: Qt,
|
|
2460
2503
|
payload: {
|
|
2461
2504
|
tags: i.tags
|
|
@@ -2477,8 +2520,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2477
2520
|
alignHorizontal: "flex-end",
|
|
2478
2521
|
className: "pb-8 sm:pb-0",
|
|
2479
2522
|
children: [
|
|
2480
|
-
/* @__PURE__ */
|
|
2481
|
-
|
|
2523
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2524
|
+
G,
|
|
2482
2525
|
{
|
|
2483
2526
|
mode: "dark",
|
|
2484
2527
|
variant: "secondary",
|
|
@@ -2489,8 +2532,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2489
2532
|
children: "Cancel"
|
|
2490
2533
|
}
|
|
2491
2534
|
) }),
|
|
2492
|
-
/* @__PURE__ */
|
|
2493
|
-
|
|
2535
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2536
|
+
G,
|
|
2494
2537
|
{
|
|
2495
2538
|
mode: "dark",
|
|
2496
2539
|
variant: "danger",
|
|
@@ -2505,7 +2548,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2505
2548
|
}
|
|
2506
2549
|
),
|
|
2507
2550
|
children: [
|
|
2508
|
-
/* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ a("p", { children: qt }),
|
|
2509
2552
|
i.tags && i.tags.map((u) => /* @__PURE__ */ y(
|
|
2510
2553
|
O,
|
|
2511
2554
|
{
|
|
@@ -2513,7 +2556,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2513
2556
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2514
2557
|
children: [
|
|
2515
2558
|
/* @__PURE__ */ y(Y, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2516
|
-
/* @__PURE__ */
|
|
2559
|
+
/* @__PURE__ */ a(M, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ a(
|
|
2517
2560
|
Ie,
|
|
2518
2561
|
{
|
|
2519
2562
|
label: "Label",
|
|
@@ -2529,7 +2572,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2529
2572
|
}
|
|
2530
2573
|
}
|
|
2531
2574
|
) }),
|
|
2532
|
-
/* @__PURE__ */
|
|
2575
|
+
/* @__PURE__ */ a(M, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ a(
|
|
2533
2576
|
Ie,
|
|
2534
2577
|
{
|
|
2535
2578
|
label: "Content",
|
|
@@ -2546,7 +2589,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2546
2589
|
}
|
|
2547
2590
|
) })
|
|
2548
2591
|
] }),
|
|
2549
|
-
/* @__PURE__ */
|
|
2592
|
+
/* @__PURE__ */ a(
|
|
2550
2593
|
ie,
|
|
2551
2594
|
{
|
|
2552
2595
|
className: "mt-2",
|
|
@@ -2571,11 +2614,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2571
2614
|
]
|
|
2572
2615
|
}
|
|
2573
2616
|
);
|
|
2574
|
-
},
|
|
2617
|
+
}, oo = ({
|
|
2575
2618
|
open: e,
|
|
2576
2619
|
onOpenChange: t
|
|
2577
2620
|
}) => {
|
|
2578
|
-
const { dispatch: r } =
|
|
2621
|
+
const { dispatch: r } = F(ve), { getAccessToken: o, user: n } = Q(), [s, i] = R(!1), [c, l] = R({
|
|
2579
2622
|
loaded: !1,
|
|
2580
2623
|
instructions: "",
|
|
2581
2624
|
loadingLocation: !1,
|
|
@@ -2593,8 +2636,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2593
2636
|
m.preventDefault();
|
|
2594
2637
|
try {
|
|
2595
2638
|
await $({
|
|
2596
|
-
accessToken: await
|
|
2597
|
-
type:
|
|
2639
|
+
accessToken: await o(),
|
|
2640
|
+
type: D.SET_USER_PREFERENCES,
|
|
2598
2641
|
params: {
|
|
2599
2642
|
user: n == null ? void 0 : n.username,
|
|
2600
2643
|
instructions: c.instructions,
|
|
@@ -2616,18 +2659,18 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2616
2659
|
loadingLocation: !0
|
|
2617
2660
|
}));
|
|
2618
2661
|
try {
|
|
2619
|
-
const m = Date.now(),
|
|
2620
|
-
accessToken: await
|
|
2621
|
-
type:
|
|
2662
|
+
const m = Date.now(), C = await tr(), E = await $({
|
|
2663
|
+
accessToken: await o(),
|
|
2664
|
+
type: D.GET_LOCATION,
|
|
2622
2665
|
params: {
|
|
2623
|
-
latitude:
|
|
2624
|
-
longitude:
|
|
2666
|
+
latitude: C.latitude,
|
|
2667
|
+
longitude: C.longitude
|
|
2625
2668
|
}
|
|
2626
2669
|
}), _ = Date.now() - m;
|
|
2627
2670
|
if (_ < 2e3 && await new Promise((T) => setTimeout(T, 2e3 - _)), E.status === 200) {
|
|
2628
|
-
const { city: T, state:
|
|
2629
|
-
l((
|
|
2630
|
-
...
|
|
2671
|
+
const { city: T, state: V, country: U, displayName: H } = E.data, re = T && V && U ? `${T}, ${V}, ${U}` : H;
|
|
2672
|
+
l((ae) => ({
|
|
2673
|
+
...ae,
|
|
2631
2674
|
loaded: !0,
|
|
2632
2675
|
location: re,
|
|
2633
2676
|
loadingLocation: !1
|
|
@@ -2642,19 +2685,19 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2642
2685
|
} catch {
|
|
2643
2686
|
}
|
|
2644
2687
|
}, b = (m) => {
|
|
2645
|
-
l((
|
|
2646
|
-
...
|
|
2688
|
+
l((C) => ({
|
|
2689
|
+
...C,
|
|
2647
2690
|
engine: m ? ne : X
|
|
2648
2691
|
}));
|
|
2649
|
-
},
|
|
2650
|
-
l((
|
|
2651
|
-
...
|
|
2692
|
+
}, N = (m) => {
|
|
2693
|
+
l((C) => ({
|
|
2694
|
+
...C,
|
|
2652
2695
|
engine: m ? X : ne
|
|
2653
2696
|
}));
|
|
2654
2697
|
}, x = () => {
|
|
2655
2698
|
i(!s);
|
|
2656
2699
|
};
|
|
2657
|
-
return
|
|
2700
|
+
return q(() => {
|
|
2658
2701
|
if (!e || !n) {
|
|
2659
2702
|
l({
|
|
2660
2703
|
loaded: !1,
|
|
@@ -2668,14 +2711,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2668
2711
|
(async () => {
|
|
2669
2712
|
try {
|
|
2670
2713
|
const m = await $({
|
|
2671
|
-
accessToken: await
|
|
2672
|
-
type:
|
|
2714
|
+
accessToken: await o(),
|
|
2715
|
+
type: D.GET_USER_PREFERENCES,
|
|
2673
2716
|
params: {
|
|
2674
2717
|
user: n.username
|
|
2675
2718
|
}
|
|
2676
2719
|
});
|
|
2677
|
-
m.status === 200 && l((
|
|
2678
|
-
...
|
|
2720
|
+
m.status === 200 && l((C) => ({
|
|
2721
|
+
...C,
|
|
2679
2722
|
loaded: !0,
|
|
2680
2723
|
instructions: m.data.instructions || "",
|
|
2681
2724
|
location: m.data.location || "",
|
|
@@ -2684,7 +2727,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2684
2727
|
} catch {
|
|
2685
2728
|
}
|
|
2686
2729
|
})();
|
|
2687
|
-
}, [n, e]), /* @__PURE__ */
|
|
2730
|
+
}, [n, e]), /* @__PURE__ */ a(
|
|
2688
2731
|
te,
|
|
2689
2732
|
{
|
|
2690
2733
|
open: e,
|
|
@@ -2697,8 +2740,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2697
2740
|
alignHorizontal: "flex-end",
|
|
2698
2741
|
className: "pb-8 sm:pb-0",
|
|
2699
2742
|
children: [
|
|
2700
|
-
/* @__PURE__ */
|
|
2701
|
-
|
|
2743
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2744
|
+
G,
|
|
2702
2745
|
{
|
|
2703
2746
|
mode: "dark",
|
|
2704
2747
|
variant: "secondary",
|
|
@@ -2709,8 +2752,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2709
2752
|
children: "Cancel"
|
|
2710
2753
|
}
|
|
2711
2754
|
) }),
|
|
2712
|
-
/* @__PURE__ */
|
|
2713
|
-
|
|
2755
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2756
|
+
G,
|
|
2714
2757
|
{
|
|
2715
2758
|
mode: "dark",
|
|
2716
2759
|
variant: "danger",
|
|
@@ -2725,15 +2768,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2725
2768
|
}
|
|
2726
2769
|
),
|
|
2727
2770
|
children: /* @__PURE__ */ y(z, { children: [
|
|
2728
|
-
s && /* @__PURE__ */
|
|
2771
|
+
s && /* @__PURE__ */ a(ao, { open: s, onOpenChange: i }),
|
|
2729
2772
|
/* @__PURE__ */ y(
|
|
2730
2773
|
O,
|
|
2731
2774
|
{
|
|
2732
2775
|
header: S.SETTINGS_ENGINE.TITLE,
|
|
2733
2776
|
className: "prose-dark dark:prose-lighter",
|
|
2734
2777
|
children: [
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: "Select the AI engine that will be used to generate responses." }),
|
|
2779
|
+
/* @__PURE__ */ a(
|
|
2737
2780
|
ie,
|
|
2738
2781
|
{
|
|
2739
2782
|
noBorder: !0,
|
|
@@ -2743,19 +2786,19 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2743
2786
|
checked: c.engine === ne
|
|
2744
2787
|
}
|
|
2745
2788
|
),
|
|
2746
|
-
/* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ a(
|
|
2747
2790
|
ie,
|
|
2748
2791
|
{
|
|
2749
2792
|
className: "mt-2",
|
|
2750
2793
|
noBorder: !0,
|
|
2751
2794
|
label: X,
|
|
2752
2795
|
name: X,
|
|
2753
|
-
onChange:
|
|
2796
|
+
onChange: N,
|
|
2754
2797
|
checked: c.engine === X
|
|
2755
2798
|
}
|
|
2756
2799
|
),
|
|
2757
|
-
/* @__PURE__ */
|
|
2758
|
-
/* @__PURE__ */
|
|
2800
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: "This option introduces a new menu at the top of the screen, enabling you to quickly switch between engines." }),
|
|
2801
|
+
/* @__PURE__ */ a(
|
|
2759
2802
|
ie,
|
|
2760
2803
|
{
|
|
2761
2804
|
className: "mt-2",
|
|
@@ -2766,8 +2809,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2766
2809
|
checked: d
|
|
2767
2810
|
}
|
|
2768
2811
|
),
|
|
2769
|
-
/* @__PURE__ */
|
|
2770
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more." }),
|
|
2813
|
+
/* @__PURE__ */ a(
|
|
2771
2814
|
ie,
|
|
2772
2815
|
{
|
|
2773
2816
|
className: "mt-2",
|
|
@@ -2778,15 +2821,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2778
2821
|
checked: f
|
|
2779
2822
|
}
|
|
2780
2823
|
),
|
|
2781
|
-
/* @__PURE__ */
|
|
2782
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ a("h3", { className: "border-b-2 border-slate-400", children: "Tags" }),
|
|
2825
|
+
/* @__PURE__ */ a(
|
|
2783
2826
|
J,
|
|
2784
2827
|
{
|
|
2785
2828
|
className: "mt-2",
|
|
2786
2829
|
size: "small",
|
|
2787
2830
|
onClick: x,
|
|
2788
2831
|
labelLeft: "Edit Custom Tags",
|
|
2789
|
-
children: /* @__PURE__ */
|
|
2832
|
+
children: /* @__PURE__ */ a(xr, { size: "size-3", monotone: !0 })
|
|
2790
2833
|
}
|
|
2791
2834
|
)
|
|
2792
2835
|
]
|
|
@@ -2800,10 +2843,10 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2800
2843
|
children: [
|
|
2801
2844
|
/* @__PURE__ */ y("p", { children: [
|
|
2802
2845
|
"What would you like ",
|
|
2803
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ a("em", { children: er }),
|
|
2804
2847
|
" to know about you to provide better responses?"
|
|
2805
2848
|
] }),
|
|
2806
|
-
/* @__PURE__ */
|
|
2849
|
+
/* @__PURE__ */ a(
|
|
2807
2850
|
je,
|
|
2808
2851
|
{
|
|
2809
2852
|
mode: "alt-system",
|
|
@@ -2814,8 +2857,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2814
2857
|
label: "Custom Instructions",
|
|
2815
2858
|
value: c.instructions,
|
|
2816
2859
|
onChange: (m) => {
|
|
2817
|
-
l((
|
|
2818
|
-
...
|
|
2860
|
+
l((C) => ({
|
|
2861
|
+
...C,
|
|
2819
2862
|
loaded: !0,
|
|
2820
2863
|
instructions: m.target.value
|
|
2821
2864
|
}));
|
|
@@ -2832,8 +2875,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2832
2875
|
header: "Location",
|
|
2833
2876
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2834
2877
|
children: [
|
|
2835
|
-
/* @__PURE__ */
|
|
2836
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ a("p", { children: "You can share your location to receive customized responses based on your area." }),
|
|
2879
|
+
/* @__PURE__ */ a(
|
|
2837
2880
|
je,
|
|
2838
2881
|
{
|
|
2839
2882
|
mode: "alt-system",
|
|
@@ -2841,8 +2884,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2841
2884
|
label: "Location",
|
|
2842
2885
|
value: c.location,
|
|
2843
2886
|
onChange: (m) => {
|
|
2844
|
-
l((
|
|
2845
|
-
...
|
|
2887
|
+
l((C) => ({
|
|
2888
|
+
...C,
|
|
2846
2889
|
loaded: !0,
|
|
2847
2890
|
location: m.target.value
|
|
2848
2891
|
}));
|
|
@@ -2850,8 +2893,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2850
2893
|
helperText: "Enter your location or press auto-detect."
|
|
2851
2894
|
}
|
|
2852
2895
|
),
|
|
2853
|
-
/* @__PURE__ */
|
|
2854
|
-
|
|
2896
|
+
/* @__PURE__ */ a(
|
|
2897
|
+
G,
|
|
2855
2898
|
{
|
|
2856
2899
|
className: "mt-2",
|
|
2857
2900
|
size: "small",
|
|
@@ -2867,65 +2910,65 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2867
2910
|
] })
|
|
2868
2911
|
}
|
|
2869
2912
|
);
|
|
2870
|
-
},
|
|
2871
|
-
const { state: e, dispatch: t, serverStats: r } =
|
|
2913
|
+
}, ho = () => {
|
|
2914
|
+
const { state: e, dispatch: t, serverStats: r } = F(ve), [o, n] = R((e == null ? void 0 : e.engine) || me), [s, i] = R(!1), [c, l] = R(!1), [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(!1), [k] = le({
|
|
2872
2915
|
key: ce + tt,
|
|
2873
2916
|
initialValue: !1
|
|
2874
|
-
}), { logout: b, getAccessToken:
|
|
2917
|
+
}), { logout: b, getAccessToken: N, user: x } = Q(), m = () => {
|
|
2875
2918
|
i(!s);
|
|
2876
|
-
},
|
|
2919
|
+
}, C = () => {
|
|
2877
2920
|
l(!c);
|
|
2878
2921
|
}, E = () => {
|
|
2879
2922
|
u(!d);
|
|
2880
|
-
},
|
|
2923
|
+
}, L = () => {
|
|
2881
2924
|
p(!f);
|
|
2882
2925
|
}, _ = () => {
|
|
2883
2926
|
h(!v);
|
|
2884
2927
|
};
|
|
2885
|
-
return
|
|
2886
|
-
e && e.engine && e.engine !==
|
|
2887
|
-
}, [e,
|
|
2888
|
-
/* @__PURE__ */
|
|
2928
|
+
return q(() => {
|
|
2929
|
+
e && e.engine && e.engine !== o && n(e.engine);
|
|
2930
|
+
}, [e, o]), /* @__PURE__ */ y(z, { children: [
|
|
2931
|
+
/* @__PURE__ */ a(
|
|
2889
2932
|
Ot,
|
|
2890
2933
|
{
|
|
2891
2934
|
showConfirmation: v,
|
|
2892
2935
|
setShowConfirmation: h,
|
|
2893
2936
|
action: b,
|
|
2894
2937
|
customStrings: {
|
|
2895
|
-
confirmAction:
|
|
2938
|
+
confirmAction: He,
|
|
2896
2939
|
cancelAction: "Cancel",
|
|
2897
|
-
title:
|
|
2940
|
+
title: He
|
|
2898
2941
|
},
|
|
2899
|
-
children: /* @__PURE__ */
|
|
2942
|
+
children: /* @__PURE__ */ a("p", { children: "Are you sure you want to log out?" })
|
|
2900
2943
|
}
|
|
2901
2944
|
),
|
|
2902
|
-
/* @__PURE__ */
|
|
2903
|
-
/* @__PURE__ */
|
|
2904
|
-
/* @__PURE__ */
|
|
2905
|
-
/* @__PURE__ */
|
|
2906
|
-
/* @__PURE__ */
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
/* @__PURE__ */
|
|
2909
|
-
k && r && /* @__PURE__ */
|
|
2945
|
+
/* @__PURE__ */ a(Ka, { open: s, onOpenChange: i }),
|
|
2946
|
+
/* @__PURE__ */ a(oo, { open: c, onOpenChange: l }),
|
|
2947
|
+
/* @__PURE__ */ a(ja, { open: d, onOpenChange: u }),
|
|
2948
|
+
/* @__PURE__ */ a(Va, { open: f, onOpenChange: p }),
|
|
2949
|
+
/* @__PURE__ */ a("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ y(Y, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
|
2950
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(cr, { mode: "dark", radius: "large" }) }),
|
|
2951
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ y(Y, { children: [
|
|
2952
|
+
k && r && /* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2910
2953
|
_e,
|
|
2911
2954
|
{
|
|
2912
2955
|
mode: "dark",
|
|
2913
2956
|
focusMode: "light",
|
|
2914
|
-
trigger: /* @__PURE__ */
|
|
2957
|
+
trigger: /* @__PURE__ */ a(J, { className: "mr-2", children: e && e.engine === X ? /* @__PURE__ */ a(gt, {}) : /* @__PURE__ */ a(ft, {}) }),
|
|
2915
2958
|
defaultPlacement: "bottom-start",
|
|
2916
|
-
children: /* @__PURE__ */
|
|
2917
|
-
|
|
2959
|
+
children: /* @__PURE__ */ a(j, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ a(
|
|
2960
|
+
ya,
|
|
2918
2961
|
{
|
|
2919
2962
|
size: "small",
|
|
2920
2963
|
mode: "dark",
|
|
2921
2964
|
focusMode: "light",
|
|
2922
|
-
value:
|
|
2965
|
+
value: o,
|
|
2923
2966
|
onValueChange: async (T) => {
|
|
2924
2967
|
if (T)
|
|
2925
2968
|
try {
|
|
2926
2969
|
await $({
|
|
2927
|
-
accessToken: await
|
|
2928
|
-
type:
|
|
2970
|
+
accessToken: await N(),
|
|
2971
|
+
type: D.SET_USER_PREFERENCES,
|
|
2929
2972
|
params: {
|
|
2930
2973
|
user: x == null ? void 0 : x.username,
|
|
2931
2974
|
engine: T
|
|
@@ -2941,59 +2984,59 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2941
2984
|
} catch {
|
|
2942
2985
|
}
|
|
2943
2986
|
},
|
|
2944
|
-
children: r && r.engines.map((T) => /* @__PURE__ */
|
|
2987
|
+
children: r && r.engines.map((T) => /* @__PURE__ */ a(ka, { value: T }, T))
|
|
2945
2988
|
}
|
|
2946
2989
|
) })
|
|
2947
2990
|
}
|
|
2948
2991
|
) }),
|
|
2949
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ y(
|
|
2950
2993
|
_e,
|
|
2951
2994
|
{
|
|
2952
2995
|
mode: "dark",
|
|
2953
2996
|
focusMode: "light",
|
|
2954
|
-
trigger: /* @__PURE__ */
|
|
2997
|
+
trigger: /* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(Sr, {}) }),
|
|
2955
2998
|
defaultPlacement: "bottom-end",
|
|
2956
2999
|
children: [
|
|
2957
|
-
/* @__PURE__ */
|
|
3000
|
+
/* @__PURE__ */ a(
|
|
2958
3001
|
j,
|
|
2959
3002
|
{
|
|
2960
3003
|
label: "Profile",
|
|
2961
3004
|
onClick: m,
|
|
2962
|
-
icon: /* @__PURE__ */
|
|
3005
|
+
icon: /* @__PURE__ */ a(Er, {})
|
|
2963
3006
|
}
|
|
2964
3007
|
),
|
|
2965
|
-
/* @__PURE__ */
|
|
3008
|
+
/* @__PURE__ */ a(
|
|
2966
3009
|
j,
|
|
2967
3010
|
{
|
|
2968
3011
|
label: "Settings",
|
|
2969
|
-
onClick:
|
|
2970
|
-
icon: /* @__PURE__ */
|
|
3012
|
+
onClick: C,
|
|
3013
|
+
icon: /* @__PURE__ */ a(Rr, {})
|
|
2971
3014
|
}
|
|
2972
3015
|
),
|
|
2973
|
-
/* @__PURE__ */
|
|
3016
|
+
/* @__PURE__ */ a(
|
|
2974
3017
|
j,
|
|
2975
3018
|
{
|
|
2976
3019
|
label: "History",
|
|
2977
3020
|
onClick: E,
|
|
2978
|
-
icon: /* @__PURE__ */
|
|
3021
|
+
icon: /* @__PURE__ */ a(Tr, {})
|
|
2979
3022
|
}
|
|
2980
3023
|
),
|
|
2981
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ a(
|
|
2982
3025
|
j,
|
|
2983
3026
|
{
|
|
2984
3027
|
label: "About",
|
|
2985
|
-
onClick:
|
|
2986
|
-
icon: /* @__PURE__ */
|
|
3028
|
+
onClick: L,
|
|
3029
|
+
icon: /* @__PURE__ */ a(Ir, {})
|
|
2987
3030
|
}
|
|
2988
3031
|
),
|
|
2989
3032
|
e && e.id && !e.isComponent && /* @__PURE__ */ y(z, { children: [
|
|
2990
|
-
/* @__PURE__ */
|
|
2991
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ a(Mr, {}),
|
|
3034
|
+
/* @__PURE__ */ a(
|
|
2992
3035
|
j,
|
|
2993
3036
|
{
|
|
2994
3037
|
label: "Log out",
|
|
2995
3038
|
onClick: _,
|
|
2996
|
-
icon: /* @__PURE__ */
|
|
3039
|
+
icon: /* @__PURE__ */ a("div", { className: "text-red-700", children: /* @__PURE__ */ a(Nr, { monotone: !0 }) })
|
|
2997
3040
|
}
|
|
2998
3041
|
)
|
|
2999
3042
|
] })
|
|
@@ -3005,5 +3048,5 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
3005
3048
|
] });
|
|
3006
3049
|
};
|
|
3007
3050
|
export {
|
|
3008
|
-
|
|
3051
|
+
ho as default
|
|
3009
3052
|
};
|