@versini/sassysaint 5.5.17 → 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.CGtB3zQZ.js → App.CN26Vdes.js} +668 -661
- package/dist/chunks/{HeaderToolbar.2wFvK4Tt.js → HeaderToolbar.RG5VcCoN.js} +679 -640
- package/dist/chunks/{MarkdownWithExtra.BCy_BgBz.js → MarkdownWithExtra.D9aZRrcd.js} +283 -276
- package/dist/chunks/{MessageAssistant.CwEosJOq.js → MessageAssistant.DpLJVr9t.js} +3 -3
- package/dist/chunks/{index.DfBlqXlL.js → index.DaKlCgCU.js} +498 -488
- 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,59 +379,59 @@ 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
|
|
359
|
-
if (!
|
|
401
|
+
return q(() => {
|
|
402
|
+
if (!x)
|
|
360
403
|
return;
|
|
361
|
-
function
|
|
404
|
+
function oe() {
|
|
362
405
|
u(!1), n == null || n(!1);
|
|
363
406
|
}
|
|
364
|
-
return
|
|
365
|
-
|
|
407
|
+
return x.events.on("click", oe), () => {
|
|
408
|
+
x.events.off("click", oe);
|
|
366
409
|
};
|
|
367
|
-
}, [
|
|
368
|
-
d &&
|
|
369
|
-
}, [
|
|
370
|
-
|
|
371
|
-
/* @__PURE__ */
|
|
410
|
+
}, [x, n]), q(() => {
|
|
411
|
+
d && x && x.events.emit("menuopen", { nodeId: m });
|
|
412
|
+
}, [x, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
|
|
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(),
|
|
@@ -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(() => (C.itemMap.set(
|
|
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,
|
|
@@ -762,7 +805,7 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
762
805
|
(T) => b(T),
|
|
763
806
|
[b]
|
|
764
807
|
),
|
|
765
|
-
onItemShiftTab: g.useCallback(() =>
|
|
808
|
+
onItemShiftTab: g.useCallback(() => x(!0), []),
|
|
766
809
|
onFocusableItemAdd: g.useCallback(
|
|
767
810
|
() => _((T) => T + 1),
|
|
768
811
|
[]
|
|
@@ -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,43 +826,43 @@ 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
|
-
|
|
835
|
+
).map((B) => B.ref.current);
|
|
836
|
+
xt(Ce, u);
|
|
794
837
|
}
|
|
795
838
|
}
|
|
796
839
|
E.current = !1;
|
|
797
840
|
}),
|
|
798
|
-
onBlur: K(e.onBlur, () =>
|
|
841
|
+
onBlur: K(e.onBlur, () => x(!1))
|
|
799
842
|
}
|
|
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,18 +879,18 @@ 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
|
-
setTimeout(() =>
|
|
893
|
+
setTimeout(() => xt(b));
|
|
851
894
|
}
|
|
852
895
|
})
|
|
853
896
|
}
|
|
@@ -856,8 +899,8 @@ var Jr = g.forwardRef((e, t) => {
|
|
|
856
899
|
);
|
|
857
900
|
}
|
|
858
901
|
);
|
|
859
|
-
Ct.displayName =
|
|
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
|
-
function
|
|
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 = Ct, 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/
|
|
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,78 +1206,74 @@ 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
|
-
"text-copy-light": e === "dark",
|
|
1209
|
-
"text-copy-lighter": e === "light",
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1251
|
+
"text-copy-light": e === "dark" || e === "system",
|
|
1252
|
+
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
1253
|
+
"dark:text-copy-lighter": e === "system",
|
|
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
|
-
"text-copy-light": e === "light",
|
|
1217
|
-
"text-copy-lighter": e === "dark",
|
|
1218
|
-
"
|
|
1219
|
-
"
|
|
1259
|
+
"text-copy-light": e === "light" || e === "system",
|
|
1260
|
+
"text-copy-lighter": e === "dark" || e === "alt-system",
|
|
1261
|
+
"dark:text-copy-lighter": e === "alt-system",
|
|
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
|
-
"text-copy-light": e === "dark",
|
|
1225
|
-
"text-copy-lighter": e === "light",
|
|
1226
|
-
"
|
|
1227
|
-
"
|
|
1267
|
+
"text-copy-light": e === "dark" || e === "system",
|
|
1268
|
+
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
1269
|
+
"dark:text-copy-lighter": e === "system",
|
|
1270
|
+
"dark:text-copy-light": e === "alt-system"
|
|
1228
1271
|
});
|
|
1229
|
-
if (
|
|
1230
|
-
return w("not-prose", {
|
|
1231
|
-
truncate: !r
|
|
1232
|
-
"text-copy-light": e === "dark",
|
|
1233
|
-
"text-copy-lighter": e === "light",
|
|
1234
|
-
"text-copy-light dark:text-copy-lighter": e === "system",
|
|
1235
|
-
"text-copy-lighter dark:text-copy-light": e === "alt-system"
|
|
1272
|
+
if (o === "selected")
|
|
1273
|
+
return w("not-prose text-copy-lighter", {
|
|
1274
|
+
truncate: !r
|
|
1236
1275
|
});
|
|
1237
|
-
},
|
|
1276
|
+
}, xa = ({
|
|
1238
1277
|
mode: e,
|
|
1239
1278
|
noBackground: t,
|
|
1240
1279
|
variant: r
|
|
@@ -1264,13 +1303,13 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1264
1303
|
if (r === "selected")
|
|
1265
1304
|
return "bg-action-selected-dark";
|
|
1266
1305
|
}
|
|
1267
|
-
},
|
|
1306
|
+
}, Ta = ({
|
|
1268
1307
|
radius: e
|
|
1269
1308
|
}) => w({
|
|
1270
1309
|
"rounded-full": e === "large",
|
|
1271
1310
|
"rounded-md": e === "medium",
|
|
1272
1311
|
"rounded-sm": e === "small"
|
|
1273
|
-
}),
|
|
1312
|
+
}), Ia = ({
|
|
1274
1313
|
mode: e,
|
|
1275
1314
|
disabled: t,
|
|
1276
1315
|
variant: r
|
|
@@ -1300,7 +1339,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1300
1339
|
});
|
|
1301
1340
|
if (r === "selected")
|
|
1302
1341
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
1303
|
-
},
|
|
1342
|
+
}, Ea = ({
|
|
1304
1343
|
mode: e,
|
|
1305
1344
|
disabled: t,
|
|
1306
1345
|
variant: r
|
|
@@ -1330,7 +1369,7 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1330
1369
|
});
|
|
1331
1370
|
if (r === "selected")
|
|
1332
1371
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
1333
|
-
},
|
|
1372
|
+
}, _a = ({
|
|
1334
1373
|
mode: e,
|
|
1335
1374
|
noBorder: t,
|
|
1336
1375
|
variant: r
|
|
@@ -1360,18 +1399,18 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1360
1399
|
});
|
|
1361
1400
|
if (r === "selected")
|
|
1362
1401
|
return "border border-border-selected-dark";
|
|
1363
|
-
},
|
|
1402
|
+
}, Sa = ({
|
|
1364
1403
|
focusMode: e
|
|
1365
1404
|
}) => w("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
1366
1405
|
"focus:outline-focus-dark": e === "dark",
|
|
1367
1406
|
"focus:outline-focus-light": e === "light",
|
|
1368
1407
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1369
1408
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1370
|
-
}),
|
|
1409
|
+
}), At = ({
|
|
1371
1410
|
type: e,
|
|
1372
1411
|
className: t,
|
|
1373
1412
|
raw: r,
|
|
1374
|
-
mode:
|
|
1413
|
+
mode: o,
|
|
1375
1414
|
focusMode: n,
|
|
1376
1415
|
disabled: s,
|
|
1377
1416
|
fullWidth: i,
|
|
@@ -1386,54 +1425,54 @@ const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt =
|
|
|
1386
1425
|
radius: k
|
|
1387
1426
|
}) => (p || (p = "primary"), r ? w(Xe, t) : w(
|
|
1388
1427
|
Xe,
|
|
1389
|
-
|
|
1390
|
-
mode:
|
|
1428
|
+
Ca({
|
|
1429
|
+
mode: o,
|
|
1391
1430
|
variant: p,
|
|
1392
1431
|
noBackground: f,
|
|
1393
1432
|
noTruncate: v
|
|
1394
1433
|
}),
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1434
|
+
xa({ mode: o, noBackground: f, variant: p }),
|
|
1435
|
+
Ta({ radius: k }),
|
|
1436
|
+
wa({
|
|
1398
1437
|
type: e,
|
|
1399
1438
|
size: c,
|
|
1400
1439
|
labelRight: d,
|
|
1401
1440
|
labelLeft: u,
|
|
1402
1441
|
align: h
|
|
1403
1442
|
}),
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
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 }),
|
|
1409
1448
|
{
|
|
1410
1449
|
"w-full": i,
|
|
1411
1450
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
1412
1451
|
},
|
|
1413
1452
|
t
|
|
1414
|
-
)),
|
|
1415
|
-
var
|
|
1416
|
-
!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);
|
|
1417
1456
|
}, $e = I.forwardRef((e, t) => {
|
|
1418
|
-
const { onClick: r, noInternalClick:
|
|
1419
|
-
return /* @__PURE__ */
|
|
1457
|
+
const { onClick: r, noInternalClick: o = !1, ...n } = e;
|
|
1458
|
+
return /* @__PURE__ */ a(
|
|
1420
1459
|
"button",
|
|
1421
1460
|
{
|
|
1422
1461
|
ref: t,
|
|
1423
1462
|
onClick: (s) => {
|
|
1424
|
-
|
|
1463
|
+
Ra(s, o, r);
|
|
1425
1464
|
},
|
|
1426
1465
|
...n
|
|
1427
1466
|
}
|
|
1428
1467
|
);
|
|
1429
1468
|
});
|
|
1430
1469
|
$e.displayName = "BaseButton";
|
|
1431
|
-
const
|
|
1470
|
+
const Pt = I.forwardRef(
|
|
1432
1471
|
({
|
|
1433
1472
|
children: e,
|
|
1434
1473
|
disabled: t = !1,
|
|
1435
1474
|
mode: r = "system",
|
|
1436
|
-
focusMode:
|
|
1475
|
+
focusMode: o = "system",
|
|
1437
1476
|
fullWidth: n = !1,
|
|
1438
1477
|
className: s,
|
|
1439
1478
|
type: i = "button",
|
|
@@ -1447,13 +1486,13 @@ const Bt = I.forwardRef(
|
|
|
1447
1486
|
noBackground: h = !1,
|
|
1448
1487
|
align: k = "center",
|
|
1449
1488
|
radius: b = "large",
|
|
1450
|
-
variant:
|
|
1451
|
-
...
|
|
1489
|
+
variant: N = "primary",
|
|
1490
|
+
...x
|
|
1452
1491
|
}, m) => {
|
|
1453
|
-
const C =
|
|
1492
|
+
const C = At({
|
|
1454
1493
|
type: we,
|
|
1455
1494
|
mode: r,
|
|
1456
|
-
focusMode:
|
|
1495
|
+
focusMode: o,
|
|
1457
1496
|
fullWidth: n,
|
|
1458
1497
|
disabled: t,
|
|
1459
1498
|
raw: c,
|
|
@@ -1465,7 +1504,7 @@ const Bt = I.forwardRef(
|
|
|
1465
1504
|
noBackground: h,
|
|
1466
1505
|
align: k,
|
|
1467
1506
|
radius: b,
|
|
1468
|
-
variant:
|
|
1507
|
+
variant: N
|
|
1469
1508
|
}), E = w({
|
|
1470
1509
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1471
1510
|
"text-copy-light": r === "dark" && !c,
|
|
@@ -1480,36 +1519,36 @@ const Bt = I.forwardRef(
|
|
|
1480
1519
|
disabled: t,
|
|
1481
1520
|
type: i,
|
|
1482
1521
|
"aria-label": d || u,
|
|
1483
|
-
...
|
|
1522
|
+
...x,
|
|
1484
1523
|
children: [
|
|
1485
|
-
v && /* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */
|
|
1487
|
-
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 })
|
|
1488
1527
|
]
|
|
1489
1528
|
}
|
|
1490
1529
|
);
|
|
1491
1530
|
}
|
|
1492
1531
|
);
|
|
1493
|
-
|
|
1532
|
+
Pt.displayName = "ButtonIcon";
|
|
1494
1533
|
/*!
|
|
1495
|
-
@versini/ui-button v4.0.
|
|
1534
|
+
@versini/ui-button v4.0.3
|
|
1496
1535
|
© 2025 gizmette.com
|
|
1497
1536
|
*/
|
|
1498
1537
|
try {
|
|
1499
1538
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1500
|
-
version: "4.0.
|
|
1501
|
-
buildTime: "01/
|
|
1539
|
+
version: "4.0.3",
|
|
1540
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1502
1541
|
homepage: "https://github.com/aversini/ui-components",
|
|
1503
1542
|
license: "MIT"
|
|
1504
1543
|
});
|
|
1505
1544
|
} catch {
|
|
1506
1545
|
}
|
|
1507
|
-
const
|
|
1546
|
+
const Ma = I.forwardRef(
|
|
1508
1547
|
({
|
|
1509
1548
|
children: e,
|
|
1510
1549
|
disabled: t = !1,
|
|
1511
1550
|
mode: r = "system",
|
|
1512
|
-
focusMode:
|
|
1551
|
+
focusMode: o = "system",
|
|
1513
1552
|
fullWidth: n = !1,
|
|
1514
1553
|
className: s,
|
|
1515
1554
|
type: i = "button",
|
|
@@ -1523,13 +1562,13 @@ const Ao = I.forwardRef(
|
|
|
1523
1562
|
noBackground: h = !1,
|
|
1524
1563
|
align: k = "center",
|
|
1525
1564
|
active: b = !1,
|
|
1526
|
-
radius:
|
|
1527
|
-
...
|
|
1565
|
+
radius: N = "large",
|
|
1566
|
+
...x
|
|
1528
1567
|
}, m) => {
|
|
1529
|
-
const C =
|
|
1568
|
+
const C = At({
|
|
1530
1569
|
type: we,
|
|
1531
1570
|
mode: r,
|
|
1532
|
-
focusMode:
|
|
1571
|
+
focusMode: o,
|
|
1533
1572
|
fullWidth: n,
|
|
1534
1573
|
disabled: t,
|
|
1535
1574
|
raw: c,
|
|
@@ -1540,13 +1579,13 @@ const Ao = I.forwardRef(
|
|
|
1540
1579
|
labelLeft: v,
|
|
1541
1580
|
noBackground: h,
|
|
1542
1581
|
align: k,
|
|
1543
|
-
radius:
|
|
1582
|
+
radius: N
|
|
1544
1583
|
}), E = w({
|
|
1545
1584
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1546
1585
|
"text-copy-light": r === "dark" && !c,
|
|
1547
1586
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
1548
1587
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1549
|
-
}),
|
|
1588
|
+
}), L = b ? w(
|
|
1550
1589
|
"relative",
|
|
1551
1590
|
"focus-within:static",
|
|
1552
1591
|
"focus-within:after:border-transparent",
|
|
@@ -1563,7 +1602,7 @@ const Ao = I.forwardRef(
|
|
|
1563
1602
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
1564
1603
|
}
|
|
1565
1604
|
) : "";
|
|
1566
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ a("div", { className: L, children: /* @__PURE__ */ y(
|
|
1567
1606
|
$e,
|
|
1568
1607
|
{
|
|
1569
1608
|
ref: m,
|
|
@@ -1571,31 +1610,31 @@ const Ao = I.forwardRef(
|
|
|
1571
1610
|
disabled: t,
|
|
1572
1611
|
type: i,
|
|
1573
1612
|
"aria-label": d || u,
|
|
1574
|
-
...
|
|
1613
|
+
...x,
|
|
1575
1614
|
children: [
|
|
1576
|
-
v && /* @__PURE__ */
|
|
1577
|
-
/* @__PURE__ */
|
|
1578
|
-
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 })
|
|
1579
1618
|
]
|
|
1580
1619
|
}
|
|
1581
1620
|
) });
|
|
1582
1621
|
}
|
|
1583
1622
|
);
|
|
1584
|
-
|
|
1585
|
-
const
|
|
1623
|
+
Ma.displayName = "ButtonSort";
|
|
1624
|
+
const La = ({
|
|
1586
1625
|
children: e,
|
|
1587
1626
|
fill: t,
|
|
1588
1627
|
viewBox: r,
|
|
1589
|
-
className:
|
|
1628
|
+
className: o,
|
|
1590
1629
|
defaultViewBox: n,
|
|
1591
1630
|
size: s,
|
|
1592
1631
|
title: i,
|
|
1593
1632
|
semantic: c = !1,
|
|
1594
1633
|
...l
|
|
1595
1634
|
}) => {
|
|
1596
|
-
const d = w(s,
|
|
1635
|
+
const d = w(s, o);
|
|
1597
1636
|
return /* @__PURE__ */ y(z, { children: [
|
|
1598
|
-
/* @__PURE__ */
|
|
1637
|
+
/* @__PURE__ */ a(
|
|
1599
1638
|
"svg",
|
|
1600
1639
|
{
|
|
1601
1640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1609,7 +1648,7 @@ const zo = ({
|
|
|
1609
1648
|
children: e
|
|
1610
1649
|
}
|
|
1611
1650
|
),
|
|
1612
|
-
i && c && /* @__PURE__ */
|
|
1651
|
+
i && c && /* @__PURE__ */ a("span", { className: "sr-only", children: i })
|
|
1613
1652
|
] });
|
|
1614
1653
|
};
|
|
1615
1654
|
/*!
|
|
@@ -1619,20 +1658,20 @@ const zo = ({
|
|
|
1619
1658
|
try {
|
|
1620
1659
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
1621
1660
|
version: "4.0.0",
|
|
1622
|
-
buildTime: "01/
|
|
1661
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1623
1662
|
homepage: "https://github.com/aversini/ui-components",
|
|
1624
1663
|
license: "MIT"
|
|
1625
1664
|
});
|
|
1626
1665
|
} catch {
|
|
1627
1666
|
}
|
|
1628
|
-
const
|
|
1667
|
+
const za = ({
|
|
1629
1668
|
className: e,
|
|
1630
1669
|
viewBox: t,
|
|
1631
1670
|
title: r,
|
|
1632
|
-
monotone:
|
|
1671
|
+
monotone: o,
|
|
1633
1672
|
...n
|
|
1634
|
-
}) => /* @__PURE__ */
|
|
1635
|
-
|
|
1673
|
+
}) => /* @__PURE__ */ a(
|
|
1674
|
+
La,
|
|
1636
1675
|
{
|
|
1637
1676
|
defaultViewBox: "0 0 384 512",
|
|
1638
1677
|
size: "size-5",
|
|
@@ -1640,29 +1679,29 @@ const Lo = ({
|
|
|
1640
1679
|
className: e,
|
|
1641
1680
|
title: r || "Close",
|
|
1642
1681
|
...n,
|
|
1643
|
-
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" })
|
|
1644
1683
|
}
|
|
1645
1684
|
);
|
|
1646
1685
|
/*!
|
|
1647
|
-
@versini/ui-icons v4.
|
|
1686
|
+
@versini/ui-icons v4.2.0
|
|
1648
1687
|
© 2025 gizmette.com
|
|
1649
1688
|
*/
|
|
1650
1689
|
try {
|
|
1651
1690
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1652
|
-
version: "4.
|
|
1653
|
-
buildTime: "01/
|
|
1691
|
+
version: "4.2.0",
|
|
1692
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1654
1693
|
homepage: "https://github.com/aversini/ui-components",
|
|
1655
1694
|
license: "MIT"
|
|
1656
1695
|
});
|
|
1657
1696
|
} catch {
|
|
1658
1697
|
}
|
|
1659
|
-
const
|
|
1660
|
-
function
|
|
1698
|
+
const Bt = g.createContext(null);
|
|
1699
|
+
function Aa({
|
|
1661
1700
|
initialOpen: e = !1,
|
|
1662
1701
|
open: t,
|
|
1663
1702
|
onOpenChange: r
|
|
1664
1703
|
} = {}) {
|
|
1665
|
-
const [
|
|
1704
|
+
const [o, n] = g.useState(e), [s, i] = g.useState(), [c, l] = g.useState(), d = t ?? o, u = r ?? n, f = it({
|
|
1666
1705
|
open: d,
|
|
1667
1706
|
onOpenChange: u
|
|
1668
1707
|
}), p = f.context, v = ct(p, {
|
|
@@ -1685,46 +1724,46 @@ function Bo({
|
|
|
1685
1724
|
[d, u, b, f, s, c]
|
|
1686
1725
|
);
|
|
1687
1726
|
}
|
|
1688
|
-
const
|
|
1689
|
-
const e = g.useContext(
|
|
1727
|
+
const Ne = () => {
|
|
1728
|
+
const e = g.useContext(Bt);
|
|
1690
1729
|
if (e == null)
|
|
1691
1730
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1692
1731
|
return e;
|
|
1693
1732
|
};
|
|
1694
|
-
function
|
|
1733
|
+
function Pa({
|
|
1695
1734
|
children: e,
|
|
1696
1735
|
...t
|
|
1697
1736
|
}) {
|
|
1698
|
-
const r =
|
|
1699
|
-
return /* @__PURE__ */
|
|
1737
|
+
const r = Aa(t);
|
|
1738
|
+
return /* @__PURE__ */ a(Bt.Provider, { value: r, children: e });
|
|
1700
1739
|
}
|
|
1701
|
-
const
|
|
1702
|
-
const { context: r, ...
|
|
1740
|
+
const Ba = g.forwardRef(function(e, t) {
|
|
1741
|
+
const { context: r, ...o } = Ne(), n = Ae([o.refs.setFloating, t]);
|
|
1703
1742
|
if (!r.open)
|
|
1704
1743
|
return null;
|
|
1705
1744
|
const { overlayBackground: s, ...i } = e, c = w("grid place-items-center", {
|
|
1706
1745
|
[`${s}`]: s,
|
|
1707
1746
|
"bg-black sm:bg-black/[.8]": !s
|
|
1708
1747
|
});
|
|
1709
|
-
return /* @__PURE__ */
|
|
1748
|
+
return /* @__PURE__ */ a(mt, { children: /* @__PURE__ */ a(wr, { className: c, lockScroll: !0, children: /* @__PURE__ */ a(ht, { context: r, children: /* @__PURE__ */ a(
|
|
1710
1749
|
"div",
|
|
1711
1750
|
{
|
|
1712
1751
|
ref: n,
|
|
1713
|
-
"aria-labelledby":
|
|
1714
|
-
"aria-describedby":
|
|
1715
|
-
...
|
|
1752
|
+
"aria-labelledby": o.labelId,
|
|
1753
|
+
"aria-describedby": o.descriptionId,
|
|
1754
|
+
...o.getFloatingProps(i),
|
|
1716
1755
|
children: i.children
|
|
1717
1756
|
}
|
|
1718
1757
|
) }) }) });
|
|
1719
|
-
}),
|
|
1720
|
-
const { setLabelId:
|
|
1721
|
-
return g.useLayoutEffect(() => (
|
|
1722
|
-
}),
|
|
1723
|
-
const { setDescriptionId:
|
|
1724
|
-
return g.useLayoutEffect(() => (
|
|
1725
|
-
}),
|
|
1726
|
-
const { setOpen: r } =
|
|
1727
|
-
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, {
|
|
1728
1767
|
ref: t,
|
|
1729
1768
|
onClick: i,
|
|
1730
1769
|
...s
|
|
@@ -1737,13 +1776,13 @@ const Oo = g.forwardRef(function(e, t) {
|
|
|
1737
1776
|
try {
|
|
1738
1777
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
1739
1778
|
version: "1.2.0",
|
|
1740
|
-
buildTime: "01/
|
|
1779
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
1741
1780
|
homepage: "https://github.com/aversini/ui-components",
|
|
1742
1781
|
license: "MIT"
|
|
1743
1782
|
});
|
|
1744
1783
|
} catch {
|
|
1745
1784
|
}
|
|
1746
|
-
const se = "panel", ue = "messagebox",
|
|
1785
|
+
const se = "panel", ue = "messagebox", Fa = ({
|
|
1747
1786
|
className: e,
|
|
1748
1787
|
kind: t,
|
|
1749
1788
|
borderMode: r
|
|
@@ -1751,8 +1790,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1751
1790
|
main: w("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
1752
1791
|
[`${Qe} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === se,
|
|
1753
1792
|
[`${Qe} w-full sm:w-[95%] md:max-w-2xl`]: t === se && !e,
|
|
1754
|
-
[`${
|
|
1755
|
-
[`${
|
|
1793
|
+
[`${qe} rounded-lg border-2`]: t === ue,
|
|
1794
|
+
[`${qe} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === ue && !e,
|
|
1756
1795
|
[`${e}`]: !!e,
|
|
1757
1796
|
"sm:border-border-dark": r === "dark" && t === se,
|
|
1758
1797
|
"sm:border-border-accent": r === "light" && t === se,
|
|
@@ -1767,78 +1806,78 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1767
1806
|
open: e,
|
|
1768
1807
|
onOpenChange: t,
|
|
1769
1808
|
title: r,
|
|
1770
|
-
children:
|
|
1809
|
+
children: o,
|
|
1771
1810
|
footer: n,
|
|
1772
1811
|
borderMode: s = "light",
|
|
1773
1812
|
kind: i = se,
|
|
1774
1813
|
className: c
|
|
1775
1814
|
}) => {
|
|
1776
|
-
const l =
|
|
1777
|
-
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}`), () => {
|
|
1778
1817
|
e && (document.title = l.current);
|
|
1779
|
-
}), [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: [
|
|
1780
1819
|
/* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
|
|
1820
|
+
/* @__PURE__ */ a(
|
|
1821
|
+
Da,
|
|
1783
1822
|
{
|
|
1784
1823
|
className: d.close,
|
|
1785
|
-
trigger: /* @__PURE__ */
|
|
1786
|
-
|
|
1824
|
+
trigger: /* @__PURE__ */ a(
|
|
1825
|
+
Pt,
|
|
1787
1826
|
{
|
|
1788
1827
|
mode: "dark",
|
|
1789
1828
|
focusMode: "light",
|
|
1790
1829
|
noBorder: !0,
|
|
1791
1830
|
label: "Close",
|
|
1792
|
-
children: /* @__PURE__ */
|
|
1831
|
+
children: /* @__PURE__ */ a(za, {})
|
|
1793
1832
|
}
|
|
1794
1833
|
)
|
|
1795
1834
|
}
|
|
1796
1835
|
),
|
|
1797
|
-
/* @__PURE__ */
|
|
1836
|
+
/* @__PURE__ */ a(Oa, { className: d.header, children: r })
|
|
1798
1837
|
] }),
|
|
1799
|
-
/* @__PURE__ */
|
|
1800
|
-
n && /* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ a($a, { className: d.content, children: o }),
|
|
1839
|
+
n && /* @__PURE__ */ a("div", { className: d.footer, children: n })
|
|
1801
1840
|
] }) }) });
|
|
1802
|
-
},
|
|
1803
|
-
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();
|
|
1804
1843
|
return /* @__PURE__ */ y(z, { children: [
|
|
1805
|
-
/* @__PURE__ */
|
|
1844
|
+
/* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
|
|
1806
1845
|
O,
|
|
1807
1846
|
{
|
|
1808
1847
|
header: S.ABOUT.TITLE_CLIENT,
|
|
1809
1848
|
className: "prose-dark dark:prose-lighter",
|
|
1810
1849
|
children: he(n, {
|
|
1811
|
-
[S.ABOUT.VERSION]: "5.19.
|
|
1812
|
-
[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"
|
|
1813
1852
|
})
|
|
1814
1853
|
}
|
|
1815
1854
|
) }),
|
|
1816
|
-
/* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ a(
|
|
1817
1856
|
O,
|
|
1818
1857
|
{
|
|
1819
1858
|
header: S.ABOUT.TITLE_SERVER,
|
|
1820
1859
|
className: "prose-dark dark:prose-lighter",
|
|
1821
1860
|
children: he(s, {
|
|
1822
1861
|
[S.ABOUT.VERSION]: r,
|
|
1823
|
-
[ge(S.ABOUT.ENGINE,
|
|
1824
|
-
[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)) })
|
|
1825
1864
|
})
|
|
1826
1865
|
}
|
|
1827
1866
|
)
|
|
1828
1867
|
] });
|
|
1829
|
-
},
|
|
1868
|
+
}, Va = ({
|
|
1830
1869
|
open: e,
|
|
1831
1870
|
onOpenChange: t
|
|
1832
1871
|
}) => {
|
|
1833
|
-
const { serverStats: r } =
|
|
1834
|
-
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 }) });
|
|
1835
1874
|
}, Ot = ({
|
|
1836
1875
|
showConfirmation: e,
|
|
1837
1876
|
setShowConfirmation: t,
|
|
1838
1877
|
action: r,
|
|
1839
|
-
children:
|
|
1878
|
+
children: o,
|
|
1840
1879
|
customStrings: n
|
|
1841
|
-
}) => /* @__PURE__ */
|
|
1880
|
+
}) => /* @__PURE__ */ a(
|
|
1842
1881
|
te,
|
|
1843
1882
|
{
|
|
1844
1883
|
kind: "messagebox",
|
|
@@ -1846,8 +1885,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1846
1885
|
onOpenChange: t,
|
|
1847
1886
|
title: n.title,
|
|
1848
1887
|
footer: /* @__PURE__ */ y(Y, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
|
|
1888
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
1889
|
+
G,
|
|
1851
1890
|
{
|
|
1852
1891
|
mode: "dark",
|
|
1853
1892
|
variant: "secondary",
|
|
@@ -1858,8 +1897,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1858
1897
|
children: n.cancelAction
|
|
1859
1898
|
}
|
|
1860
1899
|
) }),
|
|
1861
|
-
/* @__PURE__ */
|
|
1862
|
-
|
|
1900
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
1901
|
+
G,
|
|
1863
1902
|
{
|
|
1864
1903
|
mode: "dark",
|
|
1865
1904
|
variant: "danger",
|
|
@@ -1871,13 +1910,13 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1871
1910
|
}
|
|
1872
1911
|
) })
|
|
1873
1912
|
] }),
|
|
1874
|
-
children:
|
|
1913
|
+
children: o
|
|
1875
1914
|
}
|
|
1876
|
-
),
|
|
1915
|
+
), Ua = async (e, t, r, o) => {
|
|
1877
1916
|
try {
|
|
1878
1917
|
const n = await $({
|
|
1879
|
-
accessToken:
|
|
1880
|
-
type:
|
|
1918
|
+
accessToken: o,
|
|
1919
|
+
type: D.GET_CHAT,
|
|
1881
1920
|
params: {
|
|
1882
1921
|
id: e.id
|
|
1883
1922
|
}
|
|
@@ -1885,7 +1924,7 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1885
1924
|
n.status === 200 && (t({
|
|
1886
1925
|
type: et
|
|
1887
1926
|
}), t({
|
|
1888
|
-
type:
|
|
1927
|
+
type: Vt,
|
|
1889
1928
|
payload: {
|
|
1890
1929
|
id: e.id,
|
|
1891
1930
|
model: n.data.model,
|
|
@@ -1895,27 +1934,27 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1895
1934
|
}), r(!1));
|
|
1896
1935
|
} catch {
|
|
1897
1936
|
}
|
|
1898
|
-
},
|
|
1937
|
+
}, Ha = ({
|
|
1899
1938
|
filteredHistory: e,
|
|
1900
1939
|
setFilteredHistory: t,
|
|
1901
1940
|
dispatch: r,
|
|
1902
|
-
onOpenChange:
|
|
1941
|
+
onOpenChange: o
|
|
1903
1942
|
}) => {
|
|
1904
|
-
var
|
|
1905
|
-
const { user: n, getAccessToken: s } = Q(), i =
|
|
1943
|
+
var x;
|
|
1944
|
+
const { user: n, getAccessToken: s } = Q(), i = Z(null), c = Z({
|
|
1906
1945
|
id: 0,
|
|
1907
1946
|
timestamp: "",
|
|
1908
1947
|
message: ""
|
|
1909
1948
|
}), [l, d] = R(!1), [u, f] = R(
|
|
1910
|
-
|
|
1911
|
-
), { state: p, dispatch: v } =
|
|
1912
|
-
key: ce +
|
|
1949
|
+
Fe + Ge
|
|
1950
|
+
), { state: p, dispatch: v } = F(at), [, h] = le({
|
|
1951
|
+
key: ce + Gt,
|
|
1913
1952
|
initialValue: p.sortDirection
|
|
1914
1953
|
}), k = (m) => {
|
|
1915
1954
|
switch (p.sortDirection) {
|
|
1916
1955
|
case W.ASC:
|
|
1917
1956
|
h(W.DESC), v({
|
|
1918
|
-
type:
|
|
1957
|
+
type: Ve,
|
|
1919
1958
|
payload: {
|
|
1920
1959
|
sortedCell: m,
|
|
1921
1960
|
sortDirection: W.DESC
|
|
@@ -1924,7 +1963,7 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1924
1963
|
break;
|
|
1925
1964
|
default:
|
|
1926
1965
|
h(W.ASC), v({
|
|
1927
|
-
type:
|
|
1966
|
+
type: Ve,
|
|
1928
1967
|
payload: {
|
|
1929
1968
|
sortedCell: m,
|
|
1930
1969
|
sortDirection: W.ASC
|
|
@@ -1937,7 +1976,7 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1937
1976
|
try {
|
|
1938
1977
|
const C = await $({
|
|
1939
1978
|
accessToken: await s(),
|
|
1940
|
-
type:
|
|
1979
|
+
type: D.DELETE_CHAT,
|
|
1941
1980
|
params: {
|
|
1942
1981
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1943
1982
|
id: m.id,
|
|
@@ -1950,14 +1989,14 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1950
1989
|
C.status === 200 && t({ data: C.data });
|
|
1951
1990
|
} catch {
|
|
1952
1991
|
}
|
|
1953
|
-
},
|
|
1954
|
-
m[0].isIntersecting && f((E) => E +
|
|
1992
|
+
}, N = lr((m) => {
|
|
1993
|
+
m[0].isIntersecting && f((E) => E + Fe);
|
|
1955
1994
|
}, []);
|
|
1956
|
-
return
|
|
1995
|
+
return q(() => {
|
|
1957
1996
|
const m = {
|
|
1958
1997
|
// root: null,
|
|
1959
1998
|
rootMargin: "20px"
|
|
1960
|
-
}, C = new IntersectionObserver(
|
|
1999
|
+
}, C = new IntersectionObserver(N, m);
|
|
1961
2000
|
i.current && C.observe(i.current);
|
|
1962
2001
|
}), /* @__PURE__ */ y(z, { children: [
|
|
1963
2002
|
/* @__PURE__ */ y(
|
|
@@ -1972,17 +2011,17 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1972
2011
|
title: "Delete chat"
|
|
1973
2012
|
},
|
|
1974
2013
|
children: [
|
|
1975
|
-
/* @__PURE__ */
|
|
2014
|
+
/* @__PURE__ */ a("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
1976
2015
|
/* @__PURE__ */ y("ul", { className: "m-0", children: [
|
|
1977
2016
|
/* @__PURE__ */ y("li", { children: [
|
|
1978
2017
|
"Timestamp:",
|
|
1979
2018
|
" ",
|
|
1980
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ a("span", { className: "text-lg", children: c.current && c.current.timestamp })
|
|
1981
2020
|
] }),
|
|
1982
2021
|
/* @__PURE__ */ y("li", { children: [
|
|
1983
2022
|
"First message:",
|
|
1984
2023
|
" ",
|
|
1985
|
-
/* @__PURE__ */
|
|
2024
|
+
/* @__PURE__ */ a("span", { className: "text-lg", children: (x = c.current) == null ? void 0 : x.message })
|
|
1986
2025
|
] })
|
|
1987
2026
|
] })
|
|
1988
2027
|
]
|
|
@@ -1996,10 +2035,10 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
1996
2035
|
compact: !0,
|
|
1997
2036
|
wrapperClassName: "max-h-[60vh] min-h-[60vh]",
|
|
1998
2037
|
children: [
|
|
1999
|
-
/* @__PURE__ */
|
|
2000
|
-
/* @__PURE__ */
|
|
2001
|
-
/* @__PURE__ */
|
|
2002
|
-
|
|
2038
|
+
/* @__PURE__ */ a(ar, { children: /* @__PURE__ */ y(xe, { children: [
|
|
2039
|
+
/* @__PURE__ */ a(P, { className: "sr-only", children: "Row" }),
|
|
2040
|
+
/* @__PURE__ */ a(
|
|
2041
|
+
or,
|
|
2003
2042
|
{
|
|
2004
2043
|
buttonClassName: "text-xs sm:text-sm",
|
|
2005
2044
|
cellId: "timestamp",
|
|
@@ -2012,18 +2051,18 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2012
2051
|
children: "Date"
|
|
2013
2052
|
}
|
|
2014
2053
|
),
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__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" })
|
|
2018
2057
|
] }) }),
|
|
2019
|
-
/* @__PURE__ */
|
|
2020
|
-
var E,
|
|
2058
|
+
/* @__PURE__ */ a(nr, { children: e.data.slice(0, u).map((m, C) => {
|
|
2059
|
+
var E, L;
|
|
2021
2060
|
return ((E = m == null ? void 0 : m.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ y(dr, { children: [
|
|
2022
|
-
C === u -
|
|
2023
|
-
/* @__PURE__ */ y(
|
|
2024
|
-
/* @__PURE__ */
|
|
2025
|
-
/* @__PURE__ */
|
|
2026
|
-
|
|
2061
|
+
C === u - Ge && /* @__PURE__ */ a("tr", { ref: i }),
|
|
2062
|
+
/* @__PURE__ */ y(xe, { children: [
|
|
2063
|
+
/* @__PURE__ */ a(P, { children: C + 1 }),
|
|
2064
|
+
/* @__PURE__ */ a(
|
|
2065
|
+
P,
|
|
2027
2066
|
{
|
|
2028
2067
|
component: "th",
|
|
2029
2068
|
scope: "row",
|
|
@@ -2031,31 +2070,31 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2031
2070
|
children: m.timestamp.split(",")[0]
|
|
2032
2071
|
}
|
|
2033
2072
|
),
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
|
|
2073
|
+
/* @__PURE__ */ a(
|
|
2074
|
+
P,
|
|
2036
2075
|
{
|
|
2037
2076
|
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
|
2038
2077
|
style: {
|
|
2039
2078
|
wordBreak: "break-word"
|
|
2040
2079
|
},
|
|
2041
|
-
children: m.messages.length > 0 ? (
|
|
2080
|
+
children: m.messages.length > 0 ? (L = m.messages[0]) == null ? void 0 : L.content : ""
|
|
2042
2081
|
}
|
|
2043
2082
|
),
|
|
2044
2083
|
/* @__PURE__ */ y(
|
|
2045
|
-
|
|
2084
|
+
P,
|
|
2046
2085
|
{
|
|
2047
2086
|
component: "th",
|
|
2048
2087
|
scope: "row",
|
|
2049
2088
|
className: "text-gray-400",
|
|
2050
2089
|
align: "center",
|
|
2051
2090
|
children: [
|
|
2052
|
-
m.model && m.model.startsWith("claude") && /* @__PURE__ */
|
|
2053
|
-
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" })
|
|
2054
2093
|
]
|
|
2055
2094
|
}
|
|
2056
2095
|
),
|
|
2057
|
-
/* @__PURE__ */ y(
|
|
2058
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ y(P, { align: "right", children: [
|
|
2097
|
+
/* @__PURE__ */ a(
|
|
2059
2098
|
J,
|
|
2060
2099
|
{
|
|
2061
2100
|
className: "mr-2",
|
|
@@ -2064,17 +2103,17 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2064
2103
|
label: "Restore chat",
|
|
2065
2104
|
onClick: async () => {
|
|
2066
2105
|
const _ = await s();
|
|
2067
|
-
|
|
2106
|
+
Ua(
|
|
2068
2107
|
m,
|
|
2069
2108
|
r,
|
|
2070
|
-
|
|
2109
|
+
o,
|
|
2071
2110
|
_
|
|
2072
2111
|
);
|
|
2073
2112
|
},
|
|
2074
|
-
children: /* @__PURE__ */
|
|
2113
|
+
children: /* @__PURE__ */ a(_r, { size: "size-3", monotone: !0 })
|
|
2075
2114
|
}
|
|
2076
2115
|
),
|
|
2077
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ a(
|
|
2078
2117
|
J,
|
|
2079
2118
|
{
|
|
2080
2119
|
focusMode: "alt-system",
|
|
@@ -2088,14 +2127,14 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2088
2127
|
message: m.messages.length > 0 ? (_ = m.messages[0]) == null ? void 0 : _.content : ""
|
|
2089
2128
|
}, d(!l);
|
|
2090
2129
|
},
|
|
2091
|
-
children: /* @__PURE__ */
|
|
2130
|
+
children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(Cr, { size: "size-3", monotone: !0 }) })
|
|
2092
2131
|
}
|
|
2093
2132
|
)
|
|
2094
2133
|
] })
|
|
2095
2134
|
] })
|
|
2096
2135
|
] }, `${S.HISTORY.TITLE}-${m.id}-${C}`) : null;
|
|
2097
2136
|
}) }),
|
|
2098
|
-
/* @__PURE__ */
|
|
2137
|
+
/* @__PURE__ */ a(sr, { children: /* @__PURE__ */ a(xe, { children: /* @__PURE__ */ a(P, { colSpan: 1e3, children: /* @__PURE__ */ a("div", { children: ge(
|
|
2099
2138
|
`${e.data.length} chat`,
|
|
2100
2139
|
e.data.length
|
|
2101
2140
|
) }) }) }) })
|
|
@@ -2107,19 +2146,19 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2107
2146
|
searchString: e,
|
|
2108
2147
|
username: t,
|
|
2109
2148
|
accessToken: r,
|
|
2110
|
-
direction:
|
|
2149
|
+
direction: o = W.ASC
|
|
2111
2150
|
}) => {
|
|
2112
2151
|
if (!t)
|
|
2113
2152
|
return [];
|
|
2114
2153
|
try {
|
|
2115
2154
|
const n = await $({
|
|
2116
2155
|
accessToken: r,
|
|
2117
|
-
type:
|
|
2156
|
+
type: D.GET_CHATS,
|
|
2118
2157
|
params: {
|
|
2119
2158
|
userId: t,
|
|
2120
2159
|
searchString: e,
|
|
2121
2160
|
limit: 1,
|
|
2122
|
-
direction:
|
|
2161
|
+
direction: o,
|
|
2123
2162
|
truncateSize: 100
|
|
2124
2163
|
}
|
|
2125
2164
|
});
|
|
@@ -2129,25 +2168,25 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2129
2168
|
return [];
|
|
2130
2169
|
}
|
|
2131
2170
|
return [];
|
|
2132
|
-
},
|
|
2171
|
+
}, ja = ({
|
|
2133
2172
|
open: e,
|
|
2134
2173
|
onOpenChange: t
|
|
2135
2174
|
}) => {
|
|
2136
|
-
const { isAuthenticated: r, getAccessToken:
|
|
2137
|
-
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,
|
|
2138
2177
|
initialValue: l.searchString
|
|
2139
2178
|
}), [f, p] = R({
|
|
2140
2179
|
data: [],
|
|
2141
2180
|
sortedDirection: l.sortDirection
|
|
2142
2181
|
}), v = async (b) => {
|
|
2143
|
-
const
|
|
2182
|
+
const N = await o(), x = await Je({
|
|
2144
2183
|
searchString: b,
|
|
2145
2184
|
username: n == null ? void 0 : n.username,
|
|
2146
|
-
accessToken:
|
|
2185
|
+
accessToken: N,
|
|
2147
2186
|
direction: l.sortDirection
|
|
2148
2187
|
});
|
|
2149
2188
|
p({
|
|
2150
|
-
data:
|
|
2189
|
+
data: x,
|
|
2151
2190
|
sortedDirection: l.sortDirection
|
|
2152
2191
|
}), u(b), d({
|
|
2153
2192
|
type: jt,
|
|
@@ -2161,22 +2200,22 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2161
2200
|
return We(() => {
|
|
2162
2201
|
i.current || (async () => {
|
|
2163
2202
|
i.current = !0;
|
|
2164
|
-
const b = await
|
|
2203
|
+
const b = await o(), N = await Je({
|
|
2165
2204
|
searchString: l.searchString,
|
|
2166
2205
|
username: n == null ? void 0 : n.username,
|
|
2167
2206
|
accessToken: b,
|
|
2168
2207
|
direction: l.sortDirection
|
|
2169
2208
|
});
|
|
2170
2209
|
p({
|
|
2171
|
-
data:
|
|
2210
|
+
data: N,
|
|
2172
2211
|
sortedDirection: l.sortDirection
|
|
2173
2212
|
});
|
|
2174
2213
|
})();
|
|
2175
2214
|
}), We(() => {
|
|
2176
2215
|
if (l.sortDirection !== f.sortedDirection) {
|
|
2177
|
-
const b = [...f.data].sort((
|
|
2216
|
+
const b = [...f.data].sort((N, x) => {
|
|
2178
2217
|
if (l.sortedCell === "timestamp") {
|
|
2179
|
-
const m = new Date(
|
|
2218
|
+
const m = new Date(N[l.sortedCell]).getTime(), C = new Date(x[l.sortedCell]).getTime();
|
|
2180
2219
|
return l.sortDirection === W.ASC ? m - C : C - m;
|
|
2181
2220
|
}
|
|
2182
2221
|
return 0;
|
|
@@ -2186,8 +2225,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2186
2225
|
sortedDirection: l.sortDirection
|
|
2187
2226
|
});
|
|
2188
2227
|
}
|
|
2189
|
-
}, [f, l]), r ? f && f.data && /* @__PURE__ */
|
|
2190
|
-
/* @__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(
|
|
2191
2230
|
Ie,
|
|
2192
2231
|
{
|
|
2193
2232
|
autoCapitalize: "off",
|
|
@@ -2202,8 +2241,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2202
2241
|
onChange: h,
|
|
2203
2242
|
className: "mt-2 mb-2",
|
|
2204
2243
|
...l.searchString && {
|
|
2205
|
-
rightElement: /* @__PURE__ */
|
|
2206
|
-
|
|
2244
|
+
rightElement: /* @__PURE__ */ a(
|
|
2245
|
+
G,
|
|
2207
2246
|
{
|
|
2208
2247
|
type: "button",
|
|
2209
2248
|
disabled: !l.searchString,
|
|
@@ -2221,8 +2260,8 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2221
2260
|
}
|
|
2222
2261
|
}
|
|
2223
2262
|
) }),
|
|
2224
|
-
/* @__PURE__ */
|
|
2225
|
-
|
|
2263
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ a(
|
|
2264
|
+
Ha,
|
|
2226
2265
|
{
|
|
2227
2266
|
filteredHistory: f,
|
|
2228
2267
|
setFilteredHistory: p,
|
|
@@ -2231,10 +2270,10 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2231
2270
|
}
|
|
2232
2271
|
) })
|
|
2233
2272
|
] }) }) : null;
|
|
2234
|
-
},
|
|
2235
|
-
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) || "";
|
|
2236
2275
|
return t && c ? /* @__PURE__ */ y(z, { children: [
|
|
2237
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ a(
|
|
2238
2277
|
O,
|
|
2239
2278
|
{
|
|
2240
2279
|
header: S.PREFERENCES.TITLE,
|
|
@@ -2249,26 +2288,26 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2249
2288
|
O,
|
|
2250
2289
|
{
|
|
2251
2290
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2252
|
-
header: /* @__PURE__ */
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
/* @__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 }) })
|
|
2255
2294
|
] }) }),
|
|
2256
2295
|
children: [
|
|
2257
|
-
/* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2296
|
+
/* @__PURE__ */ a("p", { children: S.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2297
|
+
/* @__PURE__ */ a(
|
|
2259
2298
|
J,
|
|
2260
2299
|
{
|
|
2261
2300
|
size: "small",
|
|
2262
2301
|
className: "mt-2",
|
|
2263
|
-
onClick:
|
|
2302
|
+
onClick: o,
|
|
2264
2303
|
labelLeft: S.PREFERENCES.PASSKEY_BUTTON,
|
|
2265
|
-
children: /* @__PURE__ */
|
|
2304
|
+
children: /* @__PURE__ */ a(Ue, { size: "size-5", monotone: !0 })
|
|
2266
2305
|
}
|
|
2267
2306
|
)
|
|
2268
2307
|
]
|
|
2269
2308
|
}
|
|
2270
2309
|
),
|
|
2271
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ a(
|
|
2272
2311
|
O,
|
|
2273
2312
|
{
|
|
2274
2313
|
header: S.MAIN_STATISTICS.TITLE,
|
|
@@ -2282,29 +2321,29 @@ const se = "panel", ue = "messagebox", Fo = ({
|
|
|
2282
2321
|
}
|
|
2283
2322
|
)
|
|
2284
2323
|
] }) : null;
|
|
2285
|
-
},
|
|
2324
|
+
}, Ka = ({
|
|
2286
2325
|
open: e,
|
|
2287
2326
|
onOpenChange: t
|
|
2288
2327
|
}) => {
|
|
2289
|
-
const [r,
|
|
2328
|
+
const [r, o] = R({
|
|
2290
2329
|
averageProcessingTimes: 0,
|
|
2291
2330
|
totalChats: 0
|
|
2292
2331
|
}), { getAccessToken: n, user: s } = Q();
|
|
2293
|
-
return
|
|
2332
|
+
return q(() => {
|
|
2294
2333
|
!e || !s || (async () => {
|
|
2295
2334
|
try {
|
|
2296
2335
|
const i = await $({
|
|
2297
2336
|
accessToken: await n(),
|
|
2298
|
-
type:
|
|
2337
|
+
type: D.GET_CHATS_STATS,
|
|
2299
2338
|
params: {
|
|
2300
2339
|
userId: s.username
|
|
2301
2340
|
}
|
|
2302
2341
|
});
|
|
2303
|
-
i.status === 200 &&
|
|
2342
|
+
i.status === 200 && o(i.data);
|
|
2304
2343
|
} catch {
|
|
2305
2344
|
}
|
|
2306
2345
|
})();
|
|
2307
|
-
}, [e, n, s]), /* @__PURE__ */
|
|
2346
|
+
}, [e, n, s]), /* @__PURE__ */ a(te, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ a(Wa, { stats: r }) });
|
|
2308
2347
|
};
|
|
2309
2348
|
/*!
|
|
2310
2349
|
@versini/ui-toggle v3.0.0
|
|
@@ -2319,7 +2358,7 @@ try {
|
|
|
2319
2358
|
});
|
|
2320
2359
|
} catch {
|
|
2321
2360
|
}
|
|
2322
|
-
const
|
|
2361
|
+
const Ya = "av-toggle", Za = () => w("peer", "h-6", "w-11", "rounded-full"), qa = ({
|
|
2323
2362
|
focusMode: e
|
|
2324
2363
|
}) => w(
|
|
2325
2364
|
"peer-focus:outline",
|
|
@@ -2331,14 +2370,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2331
2370
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
2332
2371
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
2333
2372
|
}
|
|
2334
|
-
),
|
|
2373
|
+
), Qa = () => w(
|
|
2335
2374
|
"peer-checked:after:translate-x-full",
|
|
2336
2375
|
// background color when checked
|
|
2337
2376
|
"peer-checked:bg-violet-500",
|
|
2338
2377
|
// knob circle and border color when checked
|
|
2339
2378
|
"peer-checked:after:bg-white",
|
|
2340
2379
|
"peer-checked:after:border-white"
|
|
2341
|
-
),
|
|
2380
|
+
), Xa = () => w(
|
|
2342
2381
|
"after:left-[2px]",
|
|
2343
2382
|
"after:top-[2px]",
|
|
2344
2383
|
"after:border",
|
|
@@ -2350,7 +2389,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2350
2389
|
"after:rounded-full",
|
|
2351
2390
|
"after:transition-all",
|
|
2352
2391
|
"after:content-['']"
|
|
2353
|
-
),
|
|
2392
|
+
), Ja = ({
|
|
2354
2393
|
mode: e,
|
|
2355
2394
|
noBorder: t
|
|
2356
2395
|
}) => w({
|
|
@@ -2359,7 +2398,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2359
2398
|
"border-border-light bg-surface-darker": e === "dark",
|
|
2360
2399
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
2361
2400
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
2362
|
-
}),
|
|
2401
|
+
}), eo = ({
|
|
2363
2402
|
mode: e,
|
|
2364
2403
|
labelHidden: t
|
|
2365
2404
|
}) => t ? "sr-only" : w("ml-2 text-sm", {
|
|
@@ -2367,49 +2406,49 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2367
2406
|
"text-copy-lighter": e === "dark",
|
|
2368
2407
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
2369
2408
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
2370
|
-
}),
|
|
2371
|
-
|
|
2409
|
+
}), to = ({ className: e }) => w(
|
|
2410
|
+
Ya,
|
|
2372
2411
|
"relative flex cursor-pointer items-center",
|
|
2373
2412
|
e
|
|
2374
|
-
),
|
|
2413
|
+
), ro = ({
|
|
2375
2414
|
mode: e,
|
|
2376
2415
|
focusMode: t,
|
|
2377
2416
|
labelHidden: r,
|
|
2378
|
-
className:
|
|
2417
|
+
className: o,
|
|
2379
2418
|
noBorder: n
|
|
2380
2419
|
}) => ({
|
|
2381
2420
|
toggle: w(
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2421
|
+
Za(),
|
|
2422
|
+
Ja({ mode: e, noBorder: n }),
|
|
2423
|
+
qa({ focusMode: t }),
|
|
2424
|
+
Xa(),
|
|
2425
|
+
Qa()
|
|
2387
2426
|
),
|
|
2388
|
-
label:
|
|
2427
|
+
label: eo({ mode: e, labelHidden: r }),
|
|
2389
2428
|
input: "peer sr-only",
|
|
2390
|
-
wrapper:
|
|
2429
|
+
wrapper: to({ className: o })
|
|
2391
2430
|
}), ie = ({
|
|
2392
2431
|
checked: e = !1,
|
|
2393
2432
|
onChange: t,
|
|
2394
2433
|
label: r,
|
|
2395
|
-
labelHidden:
|
|
2434
|
+
labelHidden: o = !1,
|
|
2396
2435
|
name: n,
|
|
2397
2436
|
mode: s = "system",
|
|
2398
2437
|
focusMode: i = "system",
|
|
2399
2438
|
className: c,
|
|
2400
2439
|
noBorder: l = !1
|
|
2401
2440
|
}) => {
|
|
2402
|
-
const d =
|
|
2441
|
+
const d = ro({
|
|
2403
2442
|
mode: s,
|
|
2404
2443
|
focusMode: i,
|
|
2405
|
-
labelHidden:
|
|
2444
|
+
labelHidden: o,
|
|
2406
2445
|
className: c,
|
|
2407
2446
|
noBorder: l
|
|
2408
2447
|
}), u = (f) => {
|
|
2409
2448
|
t == null || t(f.target.checked);
|
|
2410
2449
|
};
|
|
2411
2450
|
return /* @__PURE__ */ y("label", { className: d.wrapper, children: [
|
|
2412
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ a(
|
|
2413
2452
|
"input",
|
|
2414
2453
|
{
|
|
2415
2454
|
name: n,
|
|
@@ -2419,14 +2458,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2419
2458
|
onChange: u
|
|
2420
2459
|
}
|
|
2421
2460
|
),
|
|
2422
|
-
/* @__PURE__ */
|
|
2423
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ a("div", { className: d.toggle }),
|
|
2462
|
+
/* @__PURE__ */ a("span", { className: d.label, children: r })
|
|
2424
2463
|
] });
|
|
2425
|
-
},
|
|
2464
|
+
}, ao = ({
|
|
2426
2465
|
open: e,
|
|
2427
2466
|
onOpenChange: t
|
|
2428
2467
|
}) => {
|
|
2429
|
-
const { state: r, dispatch:
|
|
2468
|
+
const { state: r, dispatch: o } = F(ir), { getAccessToken: n, user: s } = Q(), [i, c] = R({
|
|
2430
2469
|
tags: [...r.tags]
|
|
2431
2470
|
}), l = ({
|
|
2432
2471
|
slot: u,
|
|
@@ -2440,11 +2479,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2440
2479
|
label: p,
|
|
2441
2480
|
content: v,
|
|
2442
2481
|
enabled: f
|
|
2443
|
-
},
|
|
2444
|
-
return
|
|
2482
|
+
}, N = k.findIndex((x) => x.slot === u);
|
|
2483
|
+
return N === -1 ? {
|
|
2445
2484
|
...h,
|
|
2446
2485
|
tags: [...k, { ...b, slot: u }]
|
|
2447
|
-
} : (k[
|
|
2486
|
+
} : (k[N] = b, {
|
|
2448
2487
|
...h,
|
|
2449
2488
|
tags: [...k]
|
|
2450
2489
|
});
|
|
@@ -2454,12 +2493,12 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2454
2493
|
try {
|
|
2455
2494
|
await $({
|
|
2456
2495
|
accessToken: await n(),
|
|
2457
|
-
type:
|
|
2496
|
+
type: D.SET_USER_PREFERENCES,
|
|
2458
2497
|
params: {
|
|
2459
2498
|
user: s == null ? void 0 : s.username,
|
|
2460
2499
|
tags: i.tags
|
|
2461
2500
|
}
|
|
2462
|
-
}),
|
|
2501
|
+
}), o({
|
|
2463
2502
|
type: Qt,
|
|
2464
2503
|
payload: {
|
|
2465
2504
|
tags: i.tags
|
|
@@ -2481,8 +2520,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2481
2520
|
alignHorizontal: "flex-end",
|
|
2482
2521
|
className: "pb-8 sm:pb-0",
|
|
2483
2522
|
children: [
|
|
2484
|
-
/* @__PURE__ */
|
|
2485
|
-
|
|
2523
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2524
|
+
G,
|
|
2486
2525
|
{
|
|
2487
2526
|
mode: "dark",
|
|
2488
2527
|
variant: "secondary",
|
|
@@ -2493,8 +2532,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2493
2532
|
children: "Cancel"
|
|
2494
2533
|
}
|
|
2495
2534
|
) }),
|
|
2496
|
-
/* @__PURE__ */
|
|
2497
|
-
|
|
2535
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2536
|
+
G,
|
|
2498
2537
|
{
|
|
2499
2538
|
mode: "dark",
|
|
2500
2539
|
variant: "danger",
|
|
@@ -2509,7 +2548,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2509
2548
|
}
|
|
2510
2549
|
),
|
|
2511
2550
|
children: [
|
|
2512
|
-
/* @__PURE__ */
|
|
2551
|
+
/* @__PURE__ */ a("p", { children: qt }),
|
|
2513
2552
|
i.tags && i.tags.map((u) => /* @__PURE__ */ y(
|
|
2514
2553
|
O,
|
|
2515
2554
|
{
|
|
@@ -2517,7 +2556,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2517
2556
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2518
2557
|
children: [
|
|
2519
2558
|
/* @__PURE__ */ y(Y, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2520
|
-
/* @__PURE__ */
|
|
2559
|
+
/* @__PURE__ */ a(M, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ a(
|
|
2521
2560
|
Ie,
|
|
2522
2561
|
{
|
|
2523
2562
|
label: "Label",
|
|
@@ -2533,7 +2572,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2533
2572
|
}
|
|
2534
2573
|
}
|
|
2535
2574
|
) }),
|
|
2536
|
-
/* @__PURE__ */
|
|
2575
|
+
/* @__PURE__ */ a(M, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ a(
|
|
2537
2576
|
Ie,
|
|
2538
2577
|
{
|
|
2539
2578
|
label: "Content",
|
|
@@ -2550,7 +2589,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2550
2589
|
}
|
|
2551
2590
|
) })
|
|
2552
2591
|
] }),
|
|
2553
|
-
/* @__PURE__ */
|
|
2592
|
+
/* @__PURE__ */ a(
|
|
2554
2593
|
ie,
|
|
2555
2594
|
{
|
|
2556
2595
|
className: "mt-2",
|
|
@@ -2575,11 +2614,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2575
2614
|
]
|
|
2576
2615
|
}
|
|
2577
2616
|
);
|
|
2578
|
-
},
|
|
2617
|
+
}, oo = ({
|
|
2579
2618
|
open: e,
|
|
2580
2619
|
onOpenChange: t
|
|
2581
2620
|
}) => {
|
|
2582
|
-
const { dispatch: r } =
|
|
2621
|
+
const { dispatch: r } = F(ve), { getAccessToken: o, user: n } = Q(), [s, i] = R(!1), [c, l] = R({
|
|
2583
2622
|
loaded: !1,
|
|
2584
2623
|
instructions: "",
|
|
2585
2624
|
loadingLocation: !1,
|
|
@@ -2597,8 +2636,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2597
2636
|
m.preventDefault();
|
|
2598
2637
|
try {
|
|
2599
2638
|
await $({
|
|
2600
|
-
accessToken: await
|
|
2601
|
-
type:
|
|
2639
|
+
accessToken: await o(),
|
|
2640
|
+
type: D.SET_USER_PREFERENCES,
|
|
2602
2641
|
params: {
|
|
2603
2642
|
user: n == null ? void 0 : n.username,
|
|
2604
2643
|
instructions: c.instructions,
|
|
@@ -2621,17 +2660,17 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2621
2660
|
}));
|
|
2622
2661
|
try {
|
|
2623
2662
|
const m = Date.now(), C = await tr(), E = await $({
|
|
2624
|
-
accessToken: await
|
|
2625
|
-
type:
|
|
2663
|
+
accessToken: await o(),
|
|
2664
|
+
type: D.GET_LOCATION,
|
|
2626
2665
|
params: {
|
|
2627
2666
|
latitude: C.latitude,
|
|
2628
2667
|
longitude: C.longitude
|
|
2629
2668
|
}
|
|
2630
2669
|
}), _ = Date.now() - m;
|
|
2631
2670
|
if (_ < 2e3 && await new Promise((T) => setTimeout(T, 2e3 - _)), E.status === 200) {
|
|
2632
|
-
const { city: T, state:
|
|
2633
|
-
l((
|
|
2634
|
-
...
|
|
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,
|
|
2635
2674
|
loaded: !0,
|
|
2636
2675
|
location: re,
|
|
2637
2676
|
loadingLocation: !1
|
|
@@ -2650,15 +2689,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2650
2689
|
...C,
|
|
2651
2690
|
engine: m ? ne : X
|
|
2652
2691
|
}));
|
|
2653
|
-
},
|
|
2692
|
+
}, N = (m) => {
|
|
2654
2693
|
l((C) => ({
|
|
2655
2694
|
...C,
|
|
2656
2695
|
engine: m ? X : ne
|
|
2657
2696
|
}));
|
|
2658
|
-
},
|
|
2697
|
+
}, x = () => {
|
|
2659
2698
|
i(!s);
|
|
2660
2699
|
};
|
|
2661
|
-
return
|
|
2700
|
+
return q(() => {
|
|
2662
2701
|
if (!e || !n) {
|
|
2663
2702
|
l({
|
|
2664
2703
|
loaded: !1,
|
|
@@ -2672,8 +2711,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2672
2711
|
(async () => {
|
|
2673
2712
|
try {
|
|
2674
2713
|
const m = await $({
|
|
2675
|
-
accessToken: await
|
|
2676
|
-
type:
|
|
2714
|
+
accessToken: await o(),
|
|
2715
|
+
type: D.GET_USER_PREFERENCES,
|
|
2677
2716
|
params: {
|
|
2678
2717
|
user: n.username
|
|
2679
2718
|
}
|
|
@@ -2688,7 +2727,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2688
2727
|
} catch {
|
|
2689
2728
|
}
|
|
2690
2729
|
})();
|
|
2691
|
-
}, [n, e]), /* @__PURE__ */
|
|
2730
|
+
}, [n, e]), /* @__PURE__ */ a(
|
|
2692
2731
|
te,
|
|
2693
2732
|
{
|
|
2694
2733
|
open: e,
|
|
@@ -2701,8 +2740,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2701
2740
|
alignHorizontal: "flex-end",
|
|
2702
2741
|
className: "pb-8 sm:pb-0",
|
|
2703
2742
|
children: [
|
|
2704
|
-
/* @__PURE__ */
|
|
2705
|
-
|
|
2743
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2744
|
+
G,
|
|
2706
2745
|
{
|
|
2707
2746
|
mode: "dark",
|
|
2708
2747
|
variant: "secondary",
|
|
@@ -2713,8 +2752,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2713
2752
|
children: "Cancel"
|
|
2714
2753
|
}
|
|
2715
2754
|
) }),
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
|
|
2755
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ a(
|
|
2756
|
+
G,
|
|
2718
2757
|
{
|
|
2719
2758
|
mode: "dark",
|
|
2720
2759
|
variant: "danger",
|
|
@@ -2729,15 +2768,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2729
2768
|
}
|
|
2730
2769
|
),
|
|
2731
2770
|
children: /* @__PURE__ */ y(z, { children: [
|
|
2732
|
-
s && /* @__PURE__ */
|
|
2771
|
+
s && /* @__PURE__ */ a(ao, { open: s, onOpenChange: i }),
|
|
2733
2772
|
/* @__PURE__ */ y(
|
|
2734
2773
|
O,
|
|
2735
2774
|
{
|
|
2736
2775
|
header: S.SETTINGS_ENGINE.TITLE,
|
|
2737
2776
|
className: "prose-dark dark:prose-lighter",
|
|
2738
2777
|
children: [
|
|
2739
|
-
/* @__PURE__ */
|
|
2740
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ a("p", { className: "text-xs", children: "Select the AI engine that will be used to generate responses." }),
|
|
2779
|
+
/* @__PURE__ */ a(
|
|
2741
2780
|
ie,
|
|
2742
2781
|
{
|
|
2743
2782
|
noBorder: !0,
|
|
@@ -2747,19 +2786,19 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2747
2786
|
checked: c.engine === ne
|
|
2748
2787
|
}
|
|
2749
2788
|
),
|
|
2750
|
-
/* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ a(
|
|
2751
2790
|
ie,
|
|
2752
2791
|
{
|
|
2753
2792
|
className: "mt-2",
|
|
2754
2793
|
noBorder: !0,
|
|
2755
2794
|
label: X,
|
|
2756
2795
|
name: X,
|
|
2757
|
-
onChange:
|
|
2796
|
+
onChange: N,
|
|
2758
2797
|
checked: c.engine === X
|
|
2759
2798
|
}
|
|
2760
2799
|
),
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
/* @__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(
|
|
2763
2802
|
ie,
|
|
2764
2803
|
{
|
|
2765
2804
|
className: "mt-2",
|
|
@@ -2770,8 +2809,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2770
2809
|
checked: d
|
|
2771
2810
|
}
|
|
2772
2811
|
),
|
|
2773
|
-
/* @__PURE__ */
|
|
2774
|
-
/* @__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(
|
|
2775
2814
|
ie,
|
|
2776
2815
|
{
|
|
2777
2816
|
className: "mt-2",
|
|
@@ -2782,15 +2821,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2782
2821
|
checked: f
|
|
2783
2822
|
}
|
|
2784
2823
|
),
|
|
2785
|
-
/* @__PURE__ */
|
|
2786
|
-
/* @__PURE__ */
|
|
2824
|
+
/* @__PURE__ */ a("h3", { className: "border-b-2 border-slate-400", children: "Tags" }),
|
|
2825
|
+
/* @__PURE__ */ a(
|
|
2787
2826
|
J,
|
|
2788
2827
|
{
|
|
2789
2828
|
className: "mt-2",
|
|
2790
2829
|
size: "small",
|
|
2791
|
-
onClick:
|
|
2830
|
+
onClick: x,
|
|
2792
2831
|
labelLeft: "Edit Custom Tags",
|
|
2793
|
-
children: /* @__PURE__ */
|
|
2832
|
+
children: /* @__PURE__ */ a(xr, { size: "size-3", monotone: !0 })
|
|
2794
2833
|
}
|
|
2795
2834
|
)
|
|
2796
2835
|
]
|
|
@@ -2804,10 +2843,10 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2804
2843
|
children: [
|
|
2805
2844
|
/* @__PURE__ */ y("p", { children: [
|
|
2806
2845
|
"What would you like ",
|
|
2807
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ a("em", { children: er }),
|
|
2808
2847
|
" to know about you to provide better responses?"
|
|
2809
2848
|
] }),
|
|
2810
|
-
/* @__PURE__ */
|
|
2849
|
+
/* @__PURE__ */ a(
|
|
2811
2850
|
je,
|
|
2812
2851
|
{
|
|
2813
2852
|
mode: "alt-system",
|
|
@@ -2836,8 +2875,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2836
2875
|
header: "Location",
|
|
2837
2876
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2838
2877
|
children: [
|
|
2839
|
-
/* @__PURE__ */
|
|
2840
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ a("p", { children: "You can share your location to receive customized responses based on your area." }),
|
|
2879
|
+
/* @__PURE__ */ a(
|
|
2841
2880
|
je,
|
|
2842
2881
|
{
|
|
2843
2882
|
mode: "alt-system",
|
|
@@ -2854,8 +2893,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2854
2893
|
helperText: "Enter your location or press auto-detect."
|
|
2855
2894
|
}
|
|
2856
2895
|
),
|
|
2857
|
-
/* @__PURE__ */
|
|
2858
|
-
|
|
2896
|
+
/* @__PURE__ */ a(
|
|
2897
|
+
G,
|
|
2859
2898
|
{
|
|
2860
2899
|
className: "mt-2",
|
|
2861
2900
|
size: "small",
|
|
@@ -2871,67 +2910,67 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2871
2910
|
] })
|
|
2872
2911
|
}
|
|
2873
2912
|
);
|
|
2874
|
-
},
|
|
2875
|
-
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({
|
|
2876
2915
|
key: ce + tt,
|
|
2877
2916
|
initialValue: !1
|
|
2878
|
-
}), { logout: b, getAccessToken:
|
|
2917
|
+
}), { logout: b, getAccessToken: N, user: x } = Q(), m = () => {
|
|
2879
2918
|
i(!s);
|
|
2880
2919
|
}, C = () => {
|
|
2881
2920
|
l(!c);
|
|
2882
2921
|
}, E = () => {
|
|
2883
2922
|
u(!d);
|
|
2884
|
-
},
|
|
2923
|
+
}, L = () => {
|
|
2885
2924
|
p(!f);
|
|
2886
2925
|
}, _ = () => {
|
|
2887
2926
|
h(!v);
|
|
2888
2927
|
};
|
|
2889
|
-
return
|
|
2890
|
-
e && e.engine && e.engine !==
|
|
2891
|
-
}, [e,
|
|
2892
|
-
/* @__PURE__ */
|
|
2928
|
+
return q(() => {
|
|
2929
|
+
e && e.engine && e.engine !== o && n(e.engine);
|
|
2930
|
+
}, [e, o]), /* @__PURE__ */ y(z, { children: [
|
|
2931
|
+
/* @__PURE__ */ a(
|
|
2893
2932
|
Ot,
|
|
2894
2933
|
{
|
|
2895
2934
|
showConfirmation: v,
|
|
2896
2935
|
setShowConfirmation: h,
|
|
2897
2936
|
action: b,
|
|
2898
2937
|
customStrings: {
|
|
2899
|
-
confirmAction:
|
|
2938
|
+
confirmAction: He,
|
|
2900
2939
|
cancelAction: "Cancel",
|
|
2901
|
-
title:
|
|
2940
|
+
title: He
|
|
2902
2941
|
},
|
|
2903
|
-
children: /* @__PURE__ */
|
|
2942
|
+
children: /* @__PURE__ */ a("p", { children: "Are you sure you want to log out?" })
|
|
2904
2943
|
}
|
|
2905
2944
|
),
|
|
2906
|
-
/* @__PURE__ */
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
/* @__PURE__ */
|
|
2909
|
-
/* @__PURE__ */
|
|
2910
|
-
/* @__PURE__ */
|
|
2911
|
-
/* @__PURE__ */
|
|
2912
|
-
/* @__PURE__ */
|
|
2913
|
-
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(
|
|
2914
2953
|
_e,
|
|
2915
2954
|
{
|
|
2916
2955
|
mode: "dark",
|
|
2917
2956
|
focusMode: "light",
|
|
2918
|
-
trigger: /* @__PURE__ */
|
|
2957
|
+
trigger: /* @__PURE__ */ a(J, { className: "mr-2", children: e && e.engine === X ? /* @__PURE__ */ a(gt, {}) : /* @__PURE__ */ a(ft, {}) }),
|
|
2919
2958
|
defaultPlacement: "bottom-start",
|
|
2920
|
-
children: /* @__PURE__ */
|
|
2921
|
-
|
|
2959
|
+
children: /* @__PURE__ */ a(j, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ a(
|
|
2960
|
+
ya,
|
|
2922
2961
|
{
|
|
2923
2962
|
size: "small",
|
|
2924
2963
|
mode: "dark",
|
|
2925
2964
|
focusMode: "light",
|
|
2926
|
-
value:
|
|
2965
|
+
value: o,
|
|
2927
2966
|
onValueChange: async (T) => {
|
|
2928
2967
|
if (T)
|
|
2929
2968
|
try {
|
|
2930
2969
|
await $({
|
|
2931
|
-
accessToken: await
|
|
2932
|
-
type:
|
|
2970
|
+
accessToken: await N(),
|
|
2971
|
+
type: D.SET_USER_PREFERENCES,
|
|
2933
2972
|
params: {
|
|
2934
|
-
user:
|
|
2973
|
+
user: x == null ? void 0 : x.username,
|
|
2935
2974
|
engine: T
|
|
2936
2975
|
}
|
|
2937
2976
|
}), t({
|
|
@@ -2945,59 +2984,59 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2945
2984
|
} catch {
|
|
2946
2985
|
}
|
|
2947
2986
|
},
|
|
2948
|
-
children: r && r.engines.map((T) => /* @__PURE__ */
|
|
2987
|
+
children: r && r.engines.map((T) => /* @__PURE__ */ a(ka, { value: T }, T))
|
|
2949
2988
|
}
|
|
2950
2989
|
) })
|
|
2951
2990
|
}
|
|
2952
2991
|
) }),
|
|
2953
|
-
/* @__PURE__ */
|
|
2992
|
+
/* @__PURE__ */ a(M, { children: /* @__PURE__ */ y(
|
|
2954
2993
|
_e,
|
|
2955
2994
|
{
|
|
2956
2995
|
mode: "dark",
|
|
2957
2996
|
focusMode: "light",
|
|
2958
|
-
trigger: /* @__PURE__ */
|
|
2997
|
+
trigger: /* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(Sr, {}) }),
|
|
2959
2998
|
defaultPlacement: "bottom-end",
|
|
2960
2999
|
children: [
|
|
2961
|
-
/* @__PURE__ */
|
|
3000
|
+
/* @__PURE__ */ a(
|
|
2962
3001
|
j,
|
|
2963
3002
|
{
|
|
2964
3003
|
label: "Profile",
|
|
2965
3004
|
onClick: m,
|
|
2966
|
-
icon: /* @__PURE__ */
|
|
3005
|
+
icon: /* @__PURE__ */ a(Er, {})
|
|
2967
3006
|
}
|
|
2968
3007
|
),
|
|
2969
|
-
/* @__PURE__ */
|
|
3008
|
+
/* @__PURE__ */ a(
|
|
2970
3009
|
j,
|
|
2971
3010
|
{
|
|
2972
3011
|
label: "Settings",
|
|
2973
3012
|
onClick: C,
|
|
2974
|
-
icon: /* @__PURE__ */
|
|
3013
|
+
icon: /* @__PURE__ */ a(Rr, {})
|
|
2975
3014
|
}
|
|
2976
3015
|
),
|
|
2977
|
-
/* @__PURE__ */
|
|
3016
|
+
/* @__PURE__ */ a(
|
|
2978
3017
|
j,
|
|
2979
3018
|
{
|
|
2980
3019
|
label: "History",
|
|
2981
3020
|
onClick: E,
|
|
2982
|
-
icon: /* @__PURE__ */
|
|
3021
|
+
icon: /* @__PURE__ */ a(Tr, {})
|
|
2983
3022
|
}
|
|
2984
3023
|
),
|
|
2985
|
-
/* @__PURE__ */
|
|
3024
|
+
/* @__PURE__ */ a(
|
|
2986
3025
|
j,
|
|
2987
3026
|
{
|
|
2988
3027
|
label: "About",
|
|
2989
|
-
onClick:
|
|
2990
|
-
icon: /* @__PURE__ */
|
|
3028
|
+
onClick: L,
|
|
3029
|
+
icon: /* @__PURE__ */ a(Ir, {})
|
|
2991
3030
|
}
|
|
2992
3031
|
),
|
|
2993
3032
|
e && e.id && !e.isComponent && /* @__PURE__ */ y(z, { children: [
|
|
2994
|
-
/* @__PURE__ */
|
|
2995
|
-
/* @__PURE__ */
|
|
3033
|
+
/* @__PURE__ */ a(Mr, {}),
|
|
3034
|
+
/* @__PURE__ */ a(
|
|
2996
3035
|
j,
|
|
2997
3036
|
{
|
|
2998
3037
|
label: "Log out",
|
|
2999
3038
|
onClick: _,
|
|
3000
|
-
icon: /* @__PURE__ */
|
|
3039
|
+
icon: /* @__PURE__ */ a("div", { className: "text-red-700", children: /* @__PURE__ */ a(Nr, { monotone: !0 }) })
|
|
3001
3040
|
}
|
|
3002
3041
|
)
|
|
3003
3042
|
] })
|
|
@@ -3009,5 +3048,5 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
3009
3048
|
] });
|
|
3010
3049
|
};
|
|
3011
3050
|
export {
|
|
3012
|
-
|
|
3051
|
+
ho as default
|
|
3013
3052
|
};
|