@versini/sassysaint 5.5.37 → 5.5.39
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.VcTEMlv1.js +5188 -0
- package/dist/chunks/{HeaderToolbar.BeLs87sR.js → HeaderToolbar.bZEPHk17.js} +519 -579
- package/dist/chunks/{MarkdownWithExtra.CxsVtJCN.js → MarkdownWithExtra.CAhDtGFi.js} +191 -198
- package/dist/chunks/{MessageAssistant.Dskbm0QC.js → MessageAssistant.YS3qhBfd.js} +6 -6
- package/dist/chunks/{index.gfLDgD4t.js → index.C73CRI-0.js} +309 -317
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
- package/dist/chunks/App.C9JOoJdo.js +0 -4114
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as h, jsx as a, Fragment as
|
|
2
|
-
import { g as
|
|
3
|
-
import { i as pe, useServerCapabilities as
|
|
1
|
+
import { jsxs as h, jsx as a, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import { g as F, un as G, R as H, CARDS as T, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as ht, L as X, j as R, C as U, INFINITE_SCROLL_LIMIT as Oe, INFINITE_SCROLL_THRESHOLD as Pe, LOCAL_STORAGE_PREFIX as _e, LOCAL_STORAGE_SORT as gt, Y as le, ACTION_RESET as pt, ACTION_RESTORE as ft, ACTION_SORT as ze, LOCAL_STORAGE_SEARCH as bt, HISTORY_TITLE as yt, ye as Ee, ACTION_SEARCH as kt, debounce as vt, M as xt, l as $e, durationFormatter as Nt, PROFILE_TITLE as wt, PROMPTS_DESCRIPTION as Et, DEFAULT_AI_ENGINE as Tt, LOCAL_STORAGE_CHAT_DETAILS as Ct, SETTINGS_TITLE as _t, ENGINE_OPENAI as Q, ENGINE_ANTHROPIC as re, APP_NAME as It, getCurrentGeoLocation as St, LOG_OUT as He } from "./index.C73CRI-0.js";
|
|
3
|
+
import { i as pe, useServerCapabilities as At, HistoryContext as je, E as Ie, ge as Rt, he as Lt, ue as Ne, le as $, ye as Mt, me as Bt, p as Ot, z as Pt, be as zt, serviceCall as ie, SERVICE_TYPES as ce, f as ae, AppContext as Ye, useChatsHistory as $t, useUserChatStats as Ht, useUserPreferences as We, m as Dt, _e as Vt, me$1 as Ut, R as oe, P as Ft } from "./App.VcTEMlv1.js";
|
|
4
4
|
import * as S from "react";
|
|
5
|
-
import be, { useId as Se, useRef as _, useEffect as
|
|
5
|
+
import be, { useId as Se, useRef as _, useEffect as D, useState as w, useContext as fe, useCallback as Ke, Fragment as Gt, useLayoutEffect as ne, useMemo as Xe, useReducer as jt } from "react";
|
|
6
6
|
import d from "clsx";
|
|
7
|
-
import { useMergeRefs as
|
|
8
|
-
const
|
|
7
|
+
import { useMergeRefs as Yt, FloatingPortal as Wt, FloatingOverlay as Kt, FloatingFocusManager as Xt, useFloating as qt, useClick as Qt, useDismiss as Jt, useRole as Zt, useInteractions as er } from "@floating-ui/react";
|
|
8
|
+
const tr = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: r,
|
|
11
11
|
title: t,
|
|
12
12
|
monotone: o,
|
|
13
13
|
...n
|
|
14
14
|
}) => /* @__PURE__ */ h(
|
|
15
|
-
|
|
15
|
+
F,
|
|
16
16
|
{
|
|
17
17
|
defaultViewBox: "0 0 512 512",
|
|
18
18
|
size: "size-5",
|
|
@@ -24,28 +24,21 @@ const Zt = ({
|
|
|
24
24
|
/* @__PURE__ */ a(
|
|
25
25
|
"path",
|
|
26
26
|
{
|
|
27
|
-
|
|
28
|
-
opacity: o ? "1" : "0.4"
|
|
29
|
-
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"
|
|
27
|
+
d: "M66.6 320c0 1.8.1 3.5.4 5.3C84.9 431.3 177 512 288 512c123.7 0 224-100.3 224-224 0-111-80.7-203.1-186.7-220.9-1.8-.3-3.6-.4-5.3-.4-15.3 0-28.9 11.1-31.5 26.7-2.9 17.4 8.8 33.9 26.3 36.9C390.4 142.9 448 208.8 448 288c0 88.4-71.6 160-160 160-79.2 0-145.1-57.6-157.8-133.3-2.9-17.4-19.4-29.2-36.9-26.3-15.6 2.6-26.7 16.2-26.7 31.5z",
|
|
28
|
+
opacity: o ? "1" : "0.4"
|
|
30
29
|
}
|
|
31
30
|
),
|
|
32
|
-
/* @__PURE__ */ a(
|
|
33
|
-
"path",
|
|
34
|
-
{
|
|
35
|
-
className: "fa-primary",
|
|
36
|
-
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"
|
|
37
|
-
}
|
|
38
|
-
)
|
|
31
|
+
/* @__PURE__ */ a("path", { d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0" })
|
|
39
32
|
]
|
|
40
33
|
}
|
|
41
|
-
),
|
|
34
|
+
), rr = ({
|
|
42
35
|
className: e,
|
|
43
36
|
viewBox: r,
|
|
44
37
|
title: t,
|
|
45
38
|
monotone: o,
|
|
46
39
|
...n
|
|
47
40
|
}) => /* @__PURE__ */ h(
|
|
48
|
-
|
|
41
|
+
F,
|
|
49
42
|
{
|
|
50
43
|
defaultViewBox: "0 0 448 512",
|
|
51
44
|
size: "size-5",
|
|
@@ -57,61 +50,21 @@ const Zt = ({
|
|
|
57
50
|
/* @__PURE__ */ a(
|
|
58
51
|
"path",
|
|
59
52
|
{
|
|
60
|
-
|
|
61
|
-
opacity: o ? "1" : "0.4"
|
|
62
|
-
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"
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
/* @__PURE__ */ a(
|
|
66
|
-
"path",
|
|
67
|
-
{
|
|
68
|
-
className: "fa-primary",
|
|
69
|
-
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"
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
), tr = ({
|
|
75
|
-
className: e,
|
|
76
|
-
viewBox: r,
|
|
77
|
-
title: t,
|
|
78
|
-
monotone: o,
|
|
79
|
-
...n
|
|
80
|
-
}) => /* @__PURE__ */ h(
|
|
81
|
-
D,
|
|
82
|
-
{
|
|
83
|
-
defaultViewBox: "0 0 512 512",
|
|
84
|
-
size: "size-5",
|
|
85
|
-
viewBox: r,
|
|
86
|
-
className: e,
|
|
87
|
-
title: t || "Edit",
|
|
88
|
-
...n,
|
|
89
|
-
children: [
|
|
90
|
-
/* @__PURE__ */ a(
|
|
91
|
-
"path",
|
|
92
|
-
{
|
|
93
|
-
className: "fa-secondary",
|
|
94
|
-
opacity: o ? "1" : "0.4",
|
|
95
|
-
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"
|
|
53
|
+
d: "M32 96v352c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16z",
|
|
54
|
+
opacity: o ? "1" : "0.4"
|
|
96
55
|
}
|
|
97
56
|
),
|
|
98
|
-
/* @__PURE__ */ a(
|
|
99
|
-
"path",
|
|
100
|
-
{
|
|
101
|
-
className: "fa-primary",
|
|
102
|
-
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"
|
|
103
|
-
}
|
|
104
|
-
)
|
|
57
|
+
/* @__PURE__ */ a("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
|
|
105
58
|
]
|
|
106
59
|
}
|
|
107
|
-
),
|
|
60
|
+
), ar = ({
|
|
108
61
|
className: e,
|
|
109
62
|
viewBox: r,
|
|
110
63
|
title: t,
|
|
111
64
|
monotone: o,
|
|
112
65
|
...n
|
|
113
66
|
}) => /* @__PURE__ */ h(
|
|
114
|
-
|
|
67
|
+
F,
|
|
115
68
|
{
|
|
116
69
|
defaultViewBox: "0 0 512 512",
|
|
117
70
|
size: "size-5",
|
|
@@ -123,28 +76,21 @@ const Zt = ({
|
|
|
123
76
|
/* @__PURE__ */ a(
|
|
124
77
|
"path",
|
|
125
78
|
{
|
|
126
|
-
|
|
127
|
-
opacity: o ? "1" : "0.4"
|
|
128
|
-
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"
|
|
79
|
+
d: "M0 57.9V168c0 13.3 10.7 24 24 24h110.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9",
|
|
80
|
+
opacity: o ? "1" : "0.4"
|
|
129
81
|
}
|
|
130
82
|
),
|
|
131
|
-
/* @__PURE__ */ a(
|
|
132
|
-
"path",
|
|
133
|
-
{
|
|
134
|
-
className: "fa-primary",
|
|
135
|
-
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"
|
|
136
|
-
}
|
|
137
|
-
)
|
|
83
|
+
/* @__PURE__ */ a("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
138
84
|
]
|
|
139
85
|
}
|
|
140
|
-
),
|
|
86
|
+
), or = ({
|
|
141
87
|
className: e,
|
|
142
88
|
viewBox: r,
|
|
143
89
|
title: t,
|
|
144
90
|
monotone: o,
|
|
145
91
|
...n
|
|
146
92
|
}) => /* @__PURE__ */ h(
|
|
147
|
-
|
|
93
|
+
F,
|
|
148
94
|
{
|
|
149
95
|
defaultViewBox: "0 0 512 512",
|
|
150
96
|
size: "size-5",
|
|
@@ -156,28 +102,21 @@ const Zt = ({
|
|
|
156
102
|
/* @__PURE__ */ a(
|
|
157
103
|
"path",
|
|
158
104
|
{
|
|
159
|
-
|
|
160
|
-
opacity: "
|
|
161
|
-
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"
|
|
105
|
+
d: "M0 256a256 256 0 1 0 512 0 256 256 0 1 0-512 0m192-8c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24m96-88a32 32 0 1 1-64 0 32 32 0 1 1 64 0",
|
|
106
|
+
opacity: ".4"
|
|
162
107
|
}
|
|
163
108
|
),
|
|
164
|
-
/* @__PURE__ */ a(
|
|
165
|
-
"path",
|
|
166
|
-
{
|
|
167
|
-
className: "fa-primary",
|
|
168
|
-
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"
|
|
169
|
-
}
|
|
170
|
-
)
|
|
109
|
+
/* @__PURE__ */ a("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64m-64 120c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-80c-13.3 0-24-10.7-24-24s10.7-24 24-24h24v-64h-24c-13.3 0-24-10.7-24-24" })
|
|
171
110
|
]
|
|
172
111
|
}
|
|
173
|
-
),
|
|
112
|
+
), nr = ({
|
|
174
113
|
className: e,
|
|
175
114
|
viewBox: r,
|
|
176
115
|
title: t,
|
|
177
116
|
monotone: o,
|
|
178
117
|
...n
|
|
179
118
|
}) => /* @__PURE__ */ h(
|
|
180
|
-
|
|
119
|
+
F,
|
|
181
120
|
{
|
|
182
121
|
defaultViewBox: "0 0 576 512",
|
|
183
122
|
size: "size-5",
|
|
@@ -189,28 +128,21 @@ const Zt = ({
|
|
|
189
128
|
/* @__PURE__ */ a(
|
|
190
129
|
"path",
|
|
191
130
|
{
|
|
192
|
-
|
|
193
|
-
opacity: "
|
|
194
|
-
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"
|
|
131
|
+
d: "M0 96v320c0 35.3 28.7 64 64 64h448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96m64 272c0-44.2 35.8-80 80-80h64c44.2 0 80 35.8 80 80 0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16m176-176a64 64 0 1 1-128 0 64 64 0 1 1 128 0m112-16c0-8.8 7.2-16 16-16h128c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16m0 64c0-8.8 7.2-16 16-16h128c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16m0 64c0-8.8 7.2-16 16-16h128c8.8 0 16 7.2 16 16s-7.2 16-16 16H368c-8.8 0-16-7.2-16-16",
|
|
132
|
+
opacity: ".4"
|
|
195
133
|
}
|
|
196
134
|
),
|
|
197
|
-
/* @__PURE__ */ a(
|
|
198
|
-
"path",
|
|
199
|
-
{
|
|
200
|
-
className: "fa-primary",
|
|
201
|
-
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"
|
|
202
|
-
}
|
|
203
|
-
)
|
|
135
|
+
/* @__PURE__ */ a("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128m-32 32c-44.2 0-80 35.8-80 80 0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16 0-44.2-35.8-80-80-80z" })
|
|
204
136
|
]
|
|
205
137
|
}
|
|
206
|
-
),
|
|
138
|
+
), sr = ({
|
|
207
139
|
className: e,
|
|
208
140
|
viewBox: r,
|
|
209
141
|
title: t,
|
|
210
142
|
monotone: o,
|
|
211
143
|
...n
|
|
212
144
|
}) => /* @__PURE__ */ h(
|
|
213
|
-
|
|
145
|
+
F,
|
|
214
146
|
{
|
|
215
147
|
defaultViewBox: "0 0 512 512",
|
|
216
148
|
size: "size-5",
|
|
@@ -222,28 +154,21 @@ const Zt = ({
|
|
|
222
154
|
/* @__PURE__ */ a(
|
|
223
155
|
"path",
|
|
224
156
|
{
|
|
225
|
-
|
|
226
|
-
opacity: o ? "1" : "0.4"
|
|
227
|
-
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"
|
|
157
|
+
d: "M128 80v16h64V80c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v224c0 8.8-7.2 16-16 16h-16v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80",
|
|
158
|
+
opacity: o ? "1" : "0.4"
|
|
228
159
|
}
|
|
229
160
|
),
|
|
230
|
-
/* @__PURE__ */ a(
|
|
231
|
-
"path",
|
|
232
|
-
{
|
|
233
|
-
className: "fa-primary",
|
|
234
|
-
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"
|
|
235
|
-
}
|
|
236
|
-
)
|
|
161
|
+
/* @__PURE__ */ a("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
|
|
237
162
|
]
|
|
238
163
|
}
|
|
239
|
-
),
|
|
164
|
+
), lr = ({
|
|
240
165
|
className: e,
|
|
241
166
|
viewBox: r,
|
|
242
167
|
title: t,
|
|
243
168
|
monotone: o,
|
|
244
169
|
...n
|
|
245
170
|
}) => /* @__PURE__ */ a(
|
|
246
|
-
|
|
171
|
+
F,
|
|
247
172
|
{
|
|
248
173
|
defaultViewBox: "0 0 448 512",
|
|
249
174
|
size: "size-5",
|
|
@@ -251,16 +176,16 @@ const Zt = ({
|
|
|
251
176
|
className: e,
|
|
252
177
|
title: t || "Settings",
|
|
253
178
|
...n,
|
|
254
|
-
children: /* @__PURE__ */ a("path", { d: "
|
|
179
|
+
children: /* @__PURE__ */ a("path", { d: "M432 256a48 48 0 1 1-96 0 48 48 0 1 1 96 0m-160 0a48 48 0 1 1-96 0 48 48 0 1 1 96 0M64 304a48 48 0 1 1 0-96 48 48 0 1 1 0 96" })
|
|
255
180
|
}
|
|
256
|
-
),
|
|
181
|
+
), ir = ({
|
|
257
182
|
className: e,
|
|
258
183
|
viewBox: r,
|
|
259
184
|
title: t,
|
|
260
185
|
monotone: o,
|
|
261
186
|
...n
|
|
262
187
|
}) => /* @__PURE__ */ h(
|
|
263
|
-
|
|
188
|
+
F,
|
|
264
189
|
{
|
|
265
190
|
defaultViewBox: "0 0 512 512",
|
|
266
191
|
size: "size-5",
|
|
@@ -272,49 +197,42 @@ const Zt = ({
|
|
|
272
197
|
/* @__PURE__ */ a(
|
|
273
198
|
"path",
|
|
274
199
|
{
|
|
275
|
-
|
|
276
|
-
opacity: o ? "1" : "0.4"
|
|
277
|
-
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"
|
|
200
|
+
d: "M0 96c0-17.7 14.3-32 32-32h86.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h246.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h54.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m233.3-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H233.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H265.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32h-54.7c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32z",
|
|
201
|
+
opacity: o ? "1" : "0.4"
|
|
278
202
|
}
|
|
279
203
|
),
|
|
280
|
-
/* @__PURE__ */ a(
|
|
281
|
-
"path",
|
|
282
|
-
{
|
|
283
|
-
className: "fa-primary",
|
|
284
|
-
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"
|
|
285
|
-
}
|
|
286
|
-
)
|
|
204
|
+
/* @__PURE__ */ a("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
|
|
287
205
|
]
|
|
288
206
|
}
|
|
289
207
|
);
|
|
290
208
|
/*!
|
|
291
|
-
@versini/ui-panel v1.3.
|
|
209
|
+
@versini/ui-panel v1.3.15
|
|
292
210
|
© 2025 gizmette.com
|
|
293
211
|
*/
|
|
294
212
|
try {
|
|
295
213
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
296
|
-
version: "1.3.
|
|
297
|
-
buildTime: "01/
|
|
214
|
+
version: "1.3.15",
|
|
215
|
+
buildTime: "01/20/2025 03:51 PM EST",
|
|
298
216
|
homepage: "https://github.com/aversini/ui-components",
|
|
299
217
|
license: "MIT"
|
|
300
218
|
});
|
|
301
219
|
} catch {
|
|
302
220
|
}
|
|
303
|
-
const
|
|
221
|
+
const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe = "button", Te = "link", cr = ({
|
|
304
222
|
type: e,
|
|
305
223
|
size: r,
|
|
306
224
|
labelRight: t,
|
|
307
225
|
labelLeft: o,
|
|
308
226
|
align: n
|
|
309
227
|
}) => {
|
|
310
|
-
const l = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3",
|
|
228
|
+
const l = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
|
|
311
229
|
switch (e) {
|
|
312
230
|
case qe:
|
|
313
231
|
case Te:
|
|
314
232
|
return d({
|
|
315
233
|
[l]: r === "small",
|
|
316
234
|
[s]: r === "medium",
|
|
317
|
-
[
|
|
235
|
+
[i]: r === "large"
|
|
318
236
|
});
|
|
319
237
|
case ye:
|
|
320
238
|
return d("inline-flex items-center", {
|
|
@@ -329,7 +247,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
329
247
|
"h-12 px-4": r === "large" && (t || o)
|
|
330
248
|
});
|
|
331
249
|
}
|
|
332
|
-
},
|
|
250
|
+
}, dr = ({
|
|
333
251
|
type: e,
|
|
334
252
|
size: r,
|
|
335
253
|
labelRight: t,
|
|
@@ -352,7 +270,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
352
270
|
[s]: r === "large" && (t || o)
|
|
353
271
|
});
|
|
354
272
|
}
|
|
355
|
-
},
|
|
273
|
+
}, mr = ({
|
|
356
274
|
mode: e,
|
|
357
275
|
noBackground: r,
|
|
358
276
|
noTruncate: t,
|
|
@@ -388,7 +306,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
388
306
|
return d("not-prose text-copy-lighter", {
|
|
389
307
|
truncate: !t
|
|
390
308
|
});
|
|
391
|
-
},
|
|
309
|
+
}, ur = ({
|
|
392
310
|
mode: e,
|
|
393
311
|
noBackground: r,
|
|
394
312
|
variant: t
|
|
@@ -418,13 +336,13 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
418
336
|
if (t === "selected")
|
|
419
337
|
return "bg-action-selected-dark";
|
|
420
338
|
}
|
|
421
|
-
},
|
|
339
|
+
}, hr = ({
|
|
422
340
|
radius: e
|
|
423
341
|
}) => d({
|
|
424
342
|
"rounded-full": e === "large",
|
|
425
343
|
"rounded-md": e === "medium",
|
|
426
344
|
"rounded-sm": e === "small"
|
|
427
|
-
}),
|
|
345
|
+
}), gr = ({
|
|
428
346
|
mode: e,
|
|
429
347
|
disabled: r,
|
|
430
348
|
variant: t
|
|
@@ -454,7 +372,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
454
372
|
});
|
|
455
373
|
if (t === "selected")
|
|
456
374
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
457
|
-
},
|
|
375
|
+
}, pr = ({
|
|
458
376
|
mode: e,
|
|
459
377
|
disabled: r,
|
|
460
378
|
variant: t
|
|
@@ -484,7 +402,7 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
484
402
|
});
|
|
485
403
|
if (t === "selected")
|
|
486
404
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
487
|
-
},
|
|
405
|
+
}, fr = ({
|
|
488
406
|
mode: e,
|
|
489
407
|
noBorder: r,
|
|
490
408
|
variant: t
|
|
@@ -514,14 +432,26 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
514
432
|
});
|
|
515
433
|
if (t === "selected")
|
|
516
434
|
return "border border-border-selected-dark";
|
|
517
|
-
},
|
|
435
|
+
}, br = ({
|
|
518
436
|
focusMode: e
|
|
519
437
|
}) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
520
438
|
"focus:outline-focus-dark": e === "dark",
|
|
521
439
|
"focus:outline-focus-light": e === "light",
|
|
522
440
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
523
441
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
524
|
-
}),
|
|
442
|
+
}), yr = ({
|
|
443
|
+
mode: e,
|
|
444
|
+
raw: r,
|
|
445
|
+
iconClassName: t
|
|
446
|
+
}) => r ? "" : d(
|
|
447
|
+
{
|
|
448
|
+
"text-copy-accent-dark": e === "light" || e === "alt-system",
|
|
449
|
+
"text-copy-light": e === "dark" || e === "system",
|
|
450
|
+
"dark:text-copy-light": e === "alt-system",
|
|
451
|
+
"dark:text-copy-accent-dark": e === "system"
|
|
452
|
+
},
|
|
453
|
+
t
|
|
454
|
+
), Qe = ({
|
|
525
455
|
type: e,
|
|
526
456
|
className: r,
|
|
527
457
|
raw: t,
|
|
@@ -529,59 +459,59 @@ const Ve = "av-messagebox", He = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
529
459
|
focusMode: n,
|
|
530
460
|
disabled: l,
|
|
531
461
|
fullWidth: s,
|
|
532
|
-
size:
|
|
462
|
+
size: i,
|
|
533
463
|
noBorder: u,
|
|
534
464
|
labelRight: m,
|
|
535
465
|
labelLeft: g,
|
|
536
466
|
noBackground: y,
|
|
537
467
|
variant: p,
|
|
538
|
-
noTruncate:
|
|
468
|
+
noTruncate: c,
|
|
539
469
|
align: f,
|
|
540
470
|
radius: v
|
|
541
471
|
}) => (p || (p = "primary"), t ? d(Ue, r) : d(
|
|
542
472
|
Ue,
|
|
543
|
-
|
|
473
|
+
mr({
|
|
544
474
|
mode: o,
|
|
545
475
|
variant: p,
|
|
546
476
|
noBackground: y,
|
|
547
|
-
noTruncate:
|
|
477
|
+
noTruncate: c
|
|
548
478
|
}),
|
|
549
|
-
|
|
550
|
-
|
|
479
|
+
ur({ mode: o, noBackground: y, variant: p }),
|
|
480
|
+
hr({ radius: v }),
|
|
551
481
|
cr({
|
|
552
482
|
type: e,
|
|
553
|
-
size:
|
|
483
|
+
size: i,
|
|
554
484
|
labelRight: m,
|
|
555
485
|
labelLeft: g,
|
|
556
486
|
align: f
|
|
557
487
|
}),
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
hr({ mode: o, variant: p, disabled: l }),
|
|
488
|
+
dr({ type: e, size: i, labelRight: m, labelLeft: g }),
|
|
489
|
+
fr({ mode: o, variant: p, noBorder: u }),
|
|
490
|
+
br({ focusMode: n }),
|
|
562
491
|
gr({ mode: o, variant: p, disabled: l }),
|
|
492
|
+
pr({ mode: o, variant: p, disabled: l }),
|
|
563
493
|
{
|
|
564
494
|
"w-full": s,
|
|
565
495
|
"disabled:cursor-not-allowed disabled:opacity-50": l
|
|
566
496
|
},
|
|
567
497
|
r
|
|
568
|
-
)),
|
|
498
|
+
)), kr = (e, r, t) => {
|
|
569
499
|
var o;
|
|
570
500
|
!r && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((o = e == null ? void 0 : e.currentTarget) == null ? void 0 : o.focus) == "function" && e.currentTarget.focus(), typeof t == "function" && t(e);
|
|
571
|
-
},
|
|
501
|
+
}, Ae = be.forwardRef((e, r) => {
|
|
572
502
|
const { onClick: t, noInternalClick: o = !1, ...n } = e;
|
|
573
503
|
return /* @__PURE__ */ a(
|
|
574
504
|
"button",
|
|
575
505
|
{
|
|
576
506
|
ref: r,
|
|
577
507
|
onClick: (l) => {
|
|
578
|
-
|
|
508
|
+
kr(l, o, t);
|
|
579
509
|
},
|
|
580
510
|
...n
|
|
581
511
|
}
|
|
582
512
|
);
|
|
583
513
|
});
|
|
584
|
-
|
|
514
|
+
Ae.displayName = "BaseButton";
|
|
585
515
|
const Je = be.forwardRef(
|
|
586
516
|
({
|
|
587
517
|
children: e,
|
|
@@ -591,53 +521,49 @@ const Je = be.forwardRef(
|
|
|
591
521
|
fullWidth: n = !1,
|
|
592
522
|
className: l,
|
|
593
523
|
type: s = "button",
|
|
594
|
-
raw:
|
|
524
|
+
raw: i = !1,
|
|
595
525
|
noBorder: u = !1,
|
|
596
526
|
"aria-label": m,
|
|
597
527
|
label: g,
|
|
598
528
|
size: y = "medium",
|
|
599
529
|
labelRight: p,
|
|
600
|
-
labelLeft:
|
|
530
|
+
labelLeft: c,
|
|
601
531
|
noBackground: f = !1,
|
|
602
532
|
align: v = "center",
|
|
603
533
|
radius: x = "large",
|
|
604
534
|
variant: k = "primary",
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
535
|
+
iconClassName: C,
|
|
536
|
+
...b
|
|
537
|
+
}, E) => {
|
|
538
|
+
const I = Qe({
|
|
608
539
|
type: ye,
|
|
609
540
|
mode: t,
|
|
610
541
|
focusMode: o,
|
|
611
542
|
fullWidth: n,
|
|
612
543
|
disabled: r,
|
|
613
|
-
raw:
|
|
544
|
+
raw: i,
|
|
614
545
|
className: l,
|
|
615
546
|
noBorder: u,
|
|
616
547
|
size: y,
|
|
617
548
|
labelRight: p,
|
|
618
|
-
labelLeft:
|
|
549
|
+
labelLeft: c,
|
|
619
550
|
noBackground: f,
|
|
620
551
|
align: v,
|
|
621
552
|
radius: x,
|
|
622
553
|
variant: k
|
|
623
|
-
}),
|
|
624
|
-
"text-copy-accent-dark": (t === "light" || t === "alt-system") && !c,
|
|
625
|
-
"text-copy-light": (t === "dark" || t === "system") && !c,
|
|
626
|
-
"dark:text-copy-light": t === "alt-system" && !c,
|
|
627
|
-
"dark:text-copy-accent-dark": t === "system" && !c
|
|
628
|
-
});
|
|
554
|
+
}), O = yr({ mode: t, raw: i, iconClassName: C });
|
|
629
555
|
return /* @__PURE__ */ h(
|
|
630
|
-
|
|
556
|
+
Ae,
|
|
631
557
|
{
|
|
632
|
-
ref:
|
|
633
|
-
className:
|
|
558
|
+
ref: E,
|
|
559
|
+
className: I,
|
|
634
560
|
disabled: r,
|
|
635
561
|
type: s,
|
|
636
562
|
"aria-label": m || g,
|
|
637
|
-
...
|
|
563
|
+
...b,
|
|
638
564
|
children: [
|
|
639
|
-
|
|
640
|
-
/* @__PURE__ */ a("div", { className:
|
|
565
|
+
c && /* @__PURE__ */ a("span", { className: "pr-2", children: c }),
|
|
566
|
+
/* @__PURE__ */ a("div", { className: O, children: e }),
|
|
641
567
|
p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
|
|
642
568
|
]
|
|
643
569
|
}
|
|
@@ -646,19 +572,19 @@ const Je = be.forwardRef(
|
|
|
646
572
|
);
|
|
647
573
|
Je.displayName = "ButtonIcon";
|
|
648
574
|
/*!
|
|
649
|
-
@versini/ui-button v4.
|
|
575
|
+
@versini/ui-button v4.1.4
|
|
650
576
|
© 2025 gizmette.com
|
|
651
577
|
*/
|
|
652
578
|
try {
|
|
653
579
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
654
|
-
version: "4.
|
|
655
|
-
buildTime: "01/
|
|
580
|
+
version: "4.1.4",
|
|
581
|
+
buildTime: "01/20/2025 03:51 PM EST",
|
|
656
582
|
homepage: "https://github.com/aversini/ui-components",
|
|
657
583
|
license: "MIT"
|
|
658
584
|
});
|
|
659
585
|
} catch {
|
|
660
586
|
}
|
|
661
|
-
const
|
|
587
|
+
const vr = be.forwardRef(
|
|
662
588
|
({
|
|
663
589
|
children: e,
|
|
664
590
|
disabled: r = !1,
|
|
@@ -667,13 +593,13 @@ const yr = be.forwardRef(
|
|
|
667
593
|
fullWidth: n = !1,
|
|
668
594
|
className: l,
|
|
669
595
|
type: s = "button",
|
|
670
|
-
raw:
|
|
596
|
+
raw: i = !1,
|
|
671
597
|
noBorder: u = !1,
|
|
672
598
|
"aria-label": m,
|
|
673
599
|
label: g,
|
|
674
600
|
size: y = "medium",
|
|
675
601
|
labelRight: p,
|
|
676
|
-
labelLeft:
|
|
602
|
+
labelLeft: c,
|
|
677
603
|
noBackground: f = !1,
|
|
678
604
|
align: v = "center",
|
|
679
605
|
active: x = !1,
|
|
@@ -686,21 +612,21 @@ const yr = be.forwardRef(
|
|
|
686
612
|
focusMode: o,
|
|
687
613
|
fullWidth: n,
|
|
688
614
|
disabled: r,
|
|
689
|
-
raw:
|
|
615
|
+
raw: i,
|
|
690
616
|
className: l,
|
|
691
617
|
noBorder: u,
|
|
692
618
|
size: y,
|
|
693
619
|
labelRight: p,
|
|
694
|
-
labelLeft:
|
|
620
|
+
labelLeft: c,
|
|
695
621
|
noBackground: f,
|
|
696
622
|
align: v,
|
|
697
623
|
radius: k
|
|
698
624
|
}), I = d({
|
|
699
|
-
"text-copy-accent-dark": t === "light" && !
|
|
700
|
-
"text-copy-light": t === "dark" && !
|
|
701
|
-
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !
|
|
702
|
-
"text-copy-light dark:text-copy-accent-dark": t === "system" && !
|
|
703
|
-
}),
|
|
625
|
+
"text-copy-accent-dark": t === "light" && !i,
|
|
626
|
+
"text-copy-light": t === "dark" && !i,
|
|
627
|
+
"text-copy-accent-dark dark:text-copy-light": t === "alt-system" && !i,
|
|
628
|
+
"text-copy-light dark:text-copy-accent-dark": t === "system" && !i
|
|
629
|
+
}), O = x ? d(
|
|
704
630
|
"relative",
|
|
705
631
|
"focus-within:static",
|
|
706
632
|
"focus-within:after:border-transparent",
|
|
@@ -717,8 +643,8 @@ const yr = be.forwardRef(
|
|
|
717
643
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
718
644
|
}
|
|
719
645
|
) : "";
|
|
720
|
-
return /* @__PURE__ */ a("div", { className:
|
|
721
|
-
|
|
646
|
+
return /* @__PURE__ */ a("div", { className: O, children: /* @__PURE__ */ h(
|
|
647
|
+
Ae,
|
|
722
648
|
{
|
|
723
649
|
ref: b,
|
|
724
650
|
className: E,
|
|
@@ -727,7 +653,7 @@ const yr = be.forwardRef(
|
|
|
727
653
|
"aria-label": m || g,
|
|
728
654
|
...C,
|
|
729
655
|
children: [
|
|
730
|
-
|
|
656
|
+
c && /* @__PURE__ */ a("span", { className: "pr-2", children: c }),
|
|
731
657
|
/* @__PURE__ */ a("div", { className: I, children: e }),
|
|
732
658
|
p && /* @__PURE__ */ a("span", { className: "pl-2", children: p })
|
|
733
659
|
]
|
|
@@ -735,8 +661,8 @@ const yr = be.forwardRef(
|
|
|
735
661
|
) });
|
|
736
662
|
}
|
|
737
663
|
);
|
|
738
|
-
|
|
739
|
-
const
|
|
664
|
+
vr.displayName = "ButtonSort";
|
|
665
|
+
const xr = ({
|
|
740
666
|
children: e,
|
|
741
667
|
fill: r,
|
|
742
668
|
viewBox: t,
|
|
@@ -744,11 +670,11 @@ const kr = ({
|
|
|
744
670
|
defaultViewBox: n,
|
|
745
671
|
size: l,
|
|
746
672
|
title: s,
|
|
747
|
-
semantic:
|
|
673
|
+
semantic: i = !1,
|
|
748
674
|
...u
|
|
749
675
|
}) => {
|
|
750
676
|
const m = d(l, o);
|
|
751
|
-
return /* @__PURE__ */ h(
|
|
677
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
752
678
|
/* @__PURE__ */ a(
|
|
753
679
|
"svg",
|
|
754
680
|
{
|
|
@@ -757,36 +683,36 @@ const kr = ({
|
|
|
757
683
|
viewBox: t || n,
|
|
758
684
|
fill: r || "currentColor",
|
|
759
685
|
role: "img",
|
|
760
|
-
"aria-hidden": !
|
|
686
|
+
"aria-hidden": !i,
|
|
761
687
|
focusable: !1,
|
|
762
688
|
...u,
|
|
763
689
|
children: e
|
|
764
690
|
}
|
|
765
691
|
),
|
|
766
|
-
s &&
|
|
692
|
+
s && i && /* @__PURE__ */ a("span", { className: "sr-only", children: s })
|
|
767
693
|
] });
|
|
768
694
|
};
|
|
769
695
|
/*!
|
|
770
|
-
@versini/ui-svgicon v4.0.
|
|
696
|
+
@versini/ui-svgicon v4.0.7
|
|
771
697
|
© 2025 gizmette.com
|
|
772
698
|
*/
|
|
773
699
|
try {
|
|
774
700
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
775
|
-
version: "4.0.
|
|
776
|
-
buildTime: "01/
|
|
701
|
+
version: "4.0.7",
|
|
702
|
+
buildTime: "01/20/2025 01:49 PM EST",
|
|
777
703
|
homepage: "https://github.com/aversini/ui-components",
|
|
778
704
|
license: "MIT"
|
|
779
705
|
});
|
|
780
706
|
} catch {
|
|
781
707
|
}
|
|
782
|
-
const
|
|
708
|
+
const Nr = ({
|
|
783
709
|
className: e,
|
|
784
710
|
viewBox: r,
|
|
785
711
|
title: t,
|
|
786
712
|
monotone: o,
|
|
787
713
|
...n
|
|
788
714
|
}) => /* @__PURE__ */ a(
|
|
789
|
-
|
|
715
|
+
xr,
|
|
790
716
|
{
|
|
791
717
|
defaultViewBox: "0 0 384 512",
|
|
792
718
|
size: "size-5",
|
|
@@ -794,37 +720,43 @@ const vr = ({
|
|
|
794
720
|
className: e,
|
|
795
721
|
title: t || "Close",
|
|
796
722
|
...n,
|
|
797
|
-
children: /* @__PURE__ */ a(
|
|
723
|
+
children: /* @__PURE__ */ a(
|
|
724
|
+
"path",
|
|
725
|
+
{
|
|
726
|
+
d: "M297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3z",
|
|
727
|
+
opacity: o ? "1" : "0.4"
|
|
728
|
+
}
|
|
729
|
+
)
|
|
798
730
|
}
|
|
799
731
|
);
|
|
800
732
|
/*!
|
|
801
|
-
@versini/ui-icons v4.
|
|
733
|
+
@versini/ui-icons v4.5.2
|
|
802
734
|
© 2025 gizmette.com
|
|
803
735
|
*/
|
|
804
736
|
try {
|
|
805
737
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
806
|
-
version: "4.
|
|
807
|
-
buildTime: "01/
|
|
738
|
+
version: "4.5.2",
|
|
739
|
+
buildTime: "01/20/2025 01:49 PM EST",
|
|
808
740
|
homepage: "https://github.com/aversini/ui-components",
|
|
809
741
|
license: "MIT"
|
|
810
742
|
});
|
|
811
743
|
} catch {
|
|
812
744
|
}
|
|
813
745
|
const Ze = S.createContext(null);
|
|
814
|
-
function
|
|
746
|
+
function wr({
|
|
815
747
|
initialOpen: e = !1,
|
|
816
748
|
open: r,
|
|
817
749
|
onOpenChange: t
|
|
818
750
|
} = {}) {
|
|
819
|
-
const [o, n] = S.useState(e), [l, s] = S.useState(), [
|
|
751
|
+
const [o, n] = S.useState(e), [l, s] = S.useState(), [i, u] = S.useState(), m = r ?? o, g = t ?? n, y = qt({
|
|
820
752
|
open: m,
|
|
821
753
|
onOpenChange: g
|
|
822
|
-
}), p = y.context,
|
|
754
|
+
}), p = y.context, c = Qt(p, {
|
|
823
755
|
enabled: r == null
|
|
824
|
-
}), f =
|
|
756
|
+
}), f = Jt(p, {
|
|
825
757
|
outsidePress: !1,
|
|
826
758
|
outsidePressEvent: "mousedown"
|
|
827
|
-
}), v =
|
|
759
|
+
}), v = Zt(p), x = er([c, f, v]);
|
|
828
760
|
return S.useMemo(
|
|
829
761
|
() => ({
|
|
830
762
|
open: m,
|
|
@@ -832,11 +764,11 @@ function xr({
|
|
|
832
764
|
...x,
|
|
833
765
|
...y,
|
|
834
766
|
labelId: l,
|
|
835
|
-
descriptionId:
|
|
767
|
+
descriptionId: i,
|
|
836
768
|
setLabelId: s,
|
|
837
769
|
setDescriptionId: u
|
|
838
770
|
}),
|
|
839
|
-
[m, g, x, y, l,
|
|
771
|
+
[m, g, x, y, l, i]
|
|
840
772
|
);
|
|
841
773
|
}
|
|
842
774
|
const ke = () => {
|
|
@@ -845,22 +777,22 @@ const ke = () => {
|
|
|
845
777
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
846
778
|
return e;
|
|
847
779
|
};
|
|
848
|
-
function
|
|
780
|
+
function Er({
|
|
849
781
|
children: e,
|
|
850
782
|
...r
|
|
851
783
|
}) {
|
|
852
|
-
const t =
|
|
784
|
+
const t = wr(r);
|
|
853
785
|
return /* @__PURE__ */ a(Ze.Provider, { value: t, children: e });
|
|
854
786
|
}
|
|
855
|
-
const
|
|
856
|
-
const { context: t, ...o } = ke(), n =
|
|
787
|
+
const Tr = S.forwardRef(function(e, r) {
|
|
788
|
+
const { context: t, ...o } = ke(), n = Yt([o.refs.setFloating, r]);
|
|
857
789
|
if (!t.open)
|
|
858
790
|
return null;
|
|
859
|
-
const { overlayBackground: l, ...s } = e,
|
|
791
|
+
const { overlayBackground: l, ...s } = e, i = d("grid place-items-center", {
|
|
860
792
|
[`${l}`]: l,
|
|
861
793
|
"bg-black sm:bg-black/[.8]": !l
|
|
862
794
|
});
|
|
863
|
-
return /* @__PURE__ */ a(
|
|
795
|
+
return /* @__PURE__ */ a(Wt, { children: /* @__PURE__ */ a(Kt, { className: i, lockScroll: !0, children: /* @__PURE__ */ a(Xt, { context: t, children: /* @__PURE__ */ a(
|
|
864
796
|
"div",
|
|
865
797
|
{
|
|
866
798
|
ref: n,
|
|
@@ -870,13 +802,13 @@ const wr = S.forwardRef(function(e, r) {
|
|
|
870
802
|
children: s.children
|
|
871
803
|
}
|
|
872
804
|
) }) }) });
|
|
873
|
-
}),
|
|
805
|
+
}), Cr = S.forwardRef(function({ children: e, ...r }, t) {
|
|
874
806
|
const { setLabelId: o } = ke(), n = Se();
|
|
875
807
|
return S.useLayoutEffect(() => (o(n), () => o(void 0)), [n, o]), /* @__PURE__ */ a("h1", { ...r, ref: t, id: n, children: e });
|
|
876
|
-
}),
|
|
808
|
+
}), _r = S.forwardRef(function({ children: e, ...r }, t) {
|
|
877
809
|
const { setDescriptionId: o } = ke(), n = Se();
|
|
878
810
|
return S.useLayoutEffect(() => (o(n), () => o(void 0)), [n, o]), /* @__PURE__ */ a("div", { ...r, ref: t, id: n, children: e });
|
|
879
|
-
}),
|
|
811
|
+
}), Ir = S.forwardRef(function(e, r) {
|
|
880
812
|
const { setOpen: t } = ke(), { trigger: o, className: n, ...l } = e, s = S.useCallback(() => t(!1), [t]);
|
|
881
813
|
return /* @__PURE__ */ a("div", { className: n, children: S.cloneElement(o, {
|
|
882
814
|
ref: r,
|
|
@@ -885,28 +817,28 @@ const wr = S.forwardRef(function(e, r) {
|
|
|
885
817
|
}) });
|
|
886
818
|
});
|
|
887
819
|
/*!
|
|
888
|
-
@versini/ui-modal v1.2.
|
|
820
|
+
@versini/ui-modal v1.2.8
|
|
889
821
|
© 2025 gizmette.com
|
|
890
822
|
*/
|
|
891
823
|
try {
|
|
892
824
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
893
|
-
version: "1.2.
|
|
894
|
-
buildTime: "01/
|
|
825
|
+
version: "1.2.8",
|
|
826
|
+
buildTime: "01/20/2025 03:51 PM EST",
|
|
895
827
|
homepage: "https://github.com/aversini/ui-components",
|
|
896
828
|
license: "MIT"
|
|
897
829
|
});
|
|
898
830
|
} catch {
|
|
899
831
|
}
|
|
900
|
-
const se = "panel", me = "messagebox",
|
|
832
|
+
const se = "panel", me = "messagebox", Sr = ({
|
|
901
833
|
className: e,
|
|
902
834
|
kind: r,
|
|
903
835
|
borderMode: t
|
|
904
836
|
}) => ({
|
|
905
837
|
main: d("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
906
|
-
[`${
|
|
907
|
-
[`${
|
|
908
|
-
[`${
|
|
909
|
-
[`${
|
|
838
|
+
[`${Ve} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: r === se,
|
|
839
|
+
[`${Ve} w-full sm:w-[95%] md:max-w-2xl`]: r === se && !e,
|
|
840
|
+
[`${De} rounded-lg border-2`]: r === me,
|
|
841
|
+
[`${De} w-[95%] sm:w-[50%] md:max-w-2xl`]: r === me && !e,
|
|
910
842
|
[`${e}`]: !!e,
|
|
911
843
|
"sm:border-border-dark": t === "dark" && r === se,
|
|
912
844
|
"sm:border-border-accent": t === "light" && r === se,
|
|
@@ -925,15 +857,15 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
925
857
|
footer: n,
|
|
926
858
|
borderMode: l = "light",
|
|
927
859
|
kind: s = se,
|
|
928
|
-
className:
|
|
860
|
+
className: i
|
|
929
861
|
}) => {
|
|
930
|
-
const u = _(""), m =
|
|
931
|
-
return
|
|
862
|
+
const u = _(""), m = Sr({ className: i, kind: s, borderMode: l });
|
|
863
|
+
return D(() => (e && (u.current = document.title, document.title = `${t} | ${u.current}`), () => {
|
|
932
864
|
e && (document.title = u.current);
|
|
933
|
-
}), [t, e]), /* @__PURE__ */ a(
|
|
865
|
+
}), [t, e]), /* @__PURE__ */ a(B, { children: e && /* @__PURE__ */ a(Er, { open: e, onOpenChange: r, children: /* @__PURE__ */ h(Tr, { className: m.main, children: [
|
|
934
866
|
/* @__PURE__ */ h("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
935
867
|
/* @__PURE__ */ a(
|
|
936
|
-
|
|
868
|
+
Ir,
|
|
937
869
|
{
|
|
938
870
|
className: m.close,
|
|
939
871
|
trigger: /* @__PURE__ */ a(
|
|
@@ -943,53 +875,53 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
943
875
|
focusMode: "light",
|
|
944
876
|
noBorder: !0,
|
|
945
877
|
label: "Close",
|
|
946
|
-
children: /* @__PURE__ */ a(
|
|
878
|
+
children: /* @__PURE__ */ a(Nr, {})
|
|
947
879
|
}
|
|
948
880
|
)
|
|
949
881
|
}
|
|
950
882
|
),
|
|
951
|
-
/* @__PURE__ */ a(
|
|
883
|
+
/* @__PURE__ */ a(Cr, { className: m.header, children: t })
|
|
952
884
|
] }),
|
|
953
|
-
/* @__PURE__ */ a(
|
|
885
|
+
/* @__PURE__ */ a(_r, { className: m.content, children: o }),
|
|
954
886
|
n && /* @__PURE__ */ a("div", { className: m.footer, children: n })
|
|
955
887
|
] }) }) });
|
|
956
|
-
},
|
|
888
|
+
}, Ar = () => {
|
|
957
889
|
const { getAccessToken: e } = G(), r = pe(), t = pe(), {
|
|
958
890
|
data: o,
|
|
959
891
|
error: n,
|
|
960
892
|
isLoading: l
|
|
961
|
-
} =
|
|
893
|
+
} = At({
|
|
962
894
|
getAccessToken: e
|
|
963
|
-
}), s = (o == null ? void 0 : o.plugins) || [],
|
|
964
|
-
return /* @__PURE__ */ h(
|
|
895
|
+
}), s = (o == null ? void 0 : o.plugins) || [], i = (o == null ? void 0 : o.version) || "", u = (o == null ? void 0 : o.models) || [];
|
|
896
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
965
897
|
/* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
|
|
966
|
-
|
|
898
|
+
H,
|
|
967
899
|
{
|
|
968
900
|
header: T.ABOUT.TITLE_CLIENT,
|
|
969
901
|
className: "prose-dark dark:prose-lighter",
|
|
970
902
|
children: he(r, {
|
|
971
|
-
[T.ABOUT.VERSION]: "5.
|
|
972
|
-
[T.ABOUT.BUILD_TIMESTAMP]: "01/
|
|
903
|
+
[T.ABOUT.VERSION]: "5.21.1",
|
|
904
|
+
[T.ABOUT.BUILD_TIMESTAMP]: "01/21/2025 08:17 AM EST"
|
|
973
905
|
})
|
|
974
906
|
}
|
|
975
907
|
) }),
|
|
976
908
|
n || l ? null : /* @__PURE__ */ a(
|
|
977
|
-
|
|
909
|
+
H,
|
|
978
910
|
{
|
|
979
911
|
header: T.ABOUT.TITLE_SERVER,
|
|
980
912
|
className: "prose-dark dark:prose-lighter",
|
|
981
913
|
children: he(t, {
|
|
982
|
-
[T.ABOUT.VERSION]:
|
|
983
|
-
[ge(T.ABOUT.ENGINE, u.length)]: /* @__PURE__ */ a(
|
|
984
|
-
[ge(T.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ a(
|
|
914
|
+
[T.ABOUT.VERSION]: i,
|
|
915
|
+
[ge(T.ABOUT.ENGINE, u.length)]: /* @__PURE__ */ a(B, { children: u.map((m) => /* @__PURE__ */ a("div", { className: "text-right", children: m }, m)) }),
|
|
916
|
+
[ge(T.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ a(B, { children: s.map((m) => /* @__PURE__ */ a("div", { className: "text-right", children: m }, m)) })
|
|
985
917
|
})
|
|
986
918
|
}
|
|
987
919
|
)
|
|
988
920
|
] });
|
|
989
|
-
},
|
|
921
|
+
}, Rr = ({
|
|
990
922
|
open: e,
|
|
991
923
|
onOpenChange: r
|
|
992
|
-
}) => /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: ht, children: /* @__PURE__ */ a(
|
|
924
|
+
}) => /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: ht, children: /* @__PURE__ */ a(Ar, {}) }), et = ({
|
|
993
925
|
showConfirmation: e,
|
|
994
926
|
setShowConfirmation: r,
|
|
995
927
|
action: t,
|
|
@@ -1003,8 +935,8 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1003
935
|
onOpenChange: r,
|
|
1004
936
|
title: n.title,
|
|
1005
937
|
footer: /* @__PURE__ */ h(X, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1006
|
-
/* @__PURE__ */ a(
|
|
1007
|
-
|
|
938
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
939
|
+
U,
|
|
1008
940
|
{
|
|
1009
941
|
mode: "dark",
|
|
1010
942
|
variant: "secondary",
|
|
@@ -1015,8 +947,8 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1015
947
|
children: n.cancelAction
|
|
1016
948
|
}
|
|
1017
949
|
) }),
|
|
1018
|
-
/* @__PURE__ */ a(
|
|
1019
|
-
|
|
950
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
951
|
+
U,
|
|
1020
952
|
{
|
|
1021
953
|
mode: "dark",
|
|
1022
954
|
variant: "danger",
|
|
@@ -1032,9 +964,9 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1032
964
|
}
|
|
1033
965
|
), Lr = async (e, r, t, o) => {
|
|
1034
966
|
try {
|
|
1035
|
-
const n = await
|
|
967
|
+
const n = await ie({
|
|
1036
968
|
accessToken: o,
|
|
1037
|
-
type:
|
|
969
|
+
type: ce.GET_CHAT,
|
|
1038
970
|
params: {
|
|
1039
971
|
id: e.id
|
|
1040
972
|
}
|
|
@@ -1052,27 +984,27 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1052
984
|
}), t(!1));
|
|
1053
985
|
} catch {
|
|
1054
986
|
}
|
|
1055
|
-
},
|
|
987
|
+
}, Mr = ({
|
|
1056
988
|
filteredHistory: e,
|
|
1057
989
|
dispatch: r,
|
|
1058
990
|
onOpenChange: t,
|
|
1059
991
|
mutate: o
|
|
1060
992
|
}) => {
|
|
1061
993
|
var C;
|
|
1062
|
-
const { user: n, getAccessToken: l } = G(), s = _(null),
|
|
994
|
+
const { user: n, getAccessToken: l } = G(), s = _(null), i = _({
|
|
1063
995
|
id: 0,
|
|
1064
996
|
timestamp: "",
|
|
1065
997
|
message: ""
|
|
1066
998
|
}), [u, m] = w(!1), [g, y] = w(
|
|
1067
|
-
|
|
1068
|
-
), { state: p, dispatch:
|
|
999
|
+
Oe + Pe
|
|
1000
|
+
), { state: p, dispatch: c } = fe(je), [, f] = Ie({
|
|
1069
1001
|
key: _e + gt,
|
|
1070
1002
|
initialValue: p.sortDirection
|
|
1071
1003
|
}), v = (b) => {
|
|
1072
1004
|
switch (p.sortDirection) {
|
|
1073
1005
|
case ae.ASC:
|
|
1074
|
-
f(ae.DESC),
|
|
1075
|
-
type:
|
|
1006
|
+
f(ae.DESC), c({
|
|
1007
|
+
type: ze,
|
|
1076
1008
|
payload: {
|
|
1077
1009
|
sortedCell: b,
|
|
1078
1010
|
sortDirection: ae.DESC
|
|
@@ -1080,8 +1012,8 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1080
1012
|
});
|
|
1081
1013
|
break;
|
|
1082
1014
|
default:
|
|
1083
|
-
f(ae.ASC),
|
|
1084
|
-
type:
|
|
1015
|
+
f(ae.ASC), c({
|
|
1016
|
+
type: ze,
|
|
1085
1017
|
payload: {
|
|
1086
1018
|
sortedCell: b,
|
|
1087
1019
|
sortDirection: ae.ASC
|
|
@@ -1090,11 +1022,11 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1090
1022
|
break;
|
|
1091
1023
|
}
|
|
1092
1024
|
}, x = async () => {
|
|
1093
|
-
const b =
|
|
1025
|
+
const b = i.current;
|
|
1094
1026
|
try {
|
|
1095
|
-
await
|
|
1027
|
+
await ie({
|
|
1096
1028
|
accessToken: await l(),
|
|
1097
|
-
type:
|
|
1029
|
+
type: ce.DELETE_CHAT,
|
|
1098
1030
|
params: {
|
|
1099
1031
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1100
1032
|
id: b.id
|
|
@@ -1103,15 +1035,15 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1103
1035
|
} catch {
|
|
1104
1036
|
}
|
|
1105
1037
|
}, k = Ke((b) => {
|
|
1106
|
-
b[0].isIntersecting && y((I) => I +
|
|
1038
|
+
b[0].isIntersecting && y((I) => I + Oe);
|
|
1107
1039
|
}, []);
|
|
1108
|
-
return
|
|
1040
|
+
return D(() => {
|
|
1109
1041
|
const b = {
|
|
1110
1042
|
// root: null,
|
|
1111
1043
|
rootMargin: "20px"
|
|
1112
1044
|
}, E = new IntersectionObserver(k, b);
|
|
1113
1045
|
s.current && E.observe(s.current);
|
|
1114
|
-
}), /* @__PURE__ */ h(
|
|
1046
|
+
}), /* @__PURE__ */ h(B, { children: [
|
|
1115
1047
|
/* @__PURE__ */ h(
|
|
1116
1048
|
et,
|
|
1117
1049
|
{
|
|
@@ -1129,22 +1061,22 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1129
1061
|
/* @__PURE__ */ h("li", { children: [
|
|
1130
1062
|
"Timestamp:",
|
|
1131
1063
|
" ",
|
|
1132
|
-
/* @__PURE__ */ a("span", { className: "text-lg", children:
|
|
1064
|
+
/* @__PURE__ */ a("span", { className: "text-lg", children: i.current && i.current.timestamp })
|
|
1133
1065
|
] }),
|
|
1134
1066
|
/* @__PURE__ */ h("li", { children: [
|
|
1135
1067
|
"First message:",
|
|
1136
1068
|
" ",
|
|
1137
|
-
/* @__PURE__ */ a("span", { className: "text-lg", children: (C =
|
|
1069
|
+
/* @__PURE__ */ a("span", { className: "text-lg", children: (C = i.current) == null ? void 0 : C.message })
|
|
1138
1070
|
] })
|
|
1139
1071
|
] })
|
|
1140
1072
|
]
|
|
1141
1073
|
}
|
|
1142
1074
|
),
|
|
1143
|
-
/* @__PURE__ */ h(
|
|
1144
|
-
/* @__PURE__ */ a(
|
|
1145
|
-
/* @__PURE__ */ a(
|
|
1075
|
+
/* @__PURE__ */ h(Rt, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
|
1076
|
+
/* @__PURE__ */ a(Lt, { children: /* @__PURE__ */ h(Ne, { children: [
|
|
1077
|
+
/* @__PURE__ */ a($, { className: "sr-only", children: "Row" }),
|
|
1146
1078
|
/* @__PURE__ */ a(
|
|
1147
|
-
|
|
1079
|
+
Mt,
|
|
1148
1080
|
{
|
|
1149
1081
|
buttonClassName: "text-xs sm:text-sm",
|
|
1150
1082
|
cellId: "timestamp",
|
|
@@ -1157,18 +1089,18 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1157
1089
|
children: "Date"
|
|
1158
1090
|
}
|
|
1159
1091
|
),
|
|
1160
|
-
/* @__PURE__ */ a(
|
|
1161
|
-
/* @__PURE__ */ a(
|
|
1162
|
-
/* @__PURE__ */ a(
|
|
1092
|
+
/* @__PURE__ */ a($, { className: "text-xs sm:text-sm", children: "First message" }),
|
|
1093
|
+
/* @__PURE__ */ a($, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
1094
|
+
/* @__PURE__ */ a($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
1163
1095
|
] }) }),
|
|
1164
|
-
/* @__PURE__ */ a(
|
|
1165
|
-
var I,
|
|
1166
|
-
return ((I = b == null ? void 0 : b.messages) == null ? void 0 : I.length) > 0 ? /* @__PURE__ */ h(
|
|
1167
|
-
E === g -
|
|
1096
|
+
/* @__PURE__ */ a(Bt, { children: e.slice(0, g).map((b, E) => {
|
|
1097
|
+
var I, O;
|
|
1098
|
+
return ((I = b == null ? void 0 : b.messages) == null ? void 0 : I.length) > 0 ? /* @__PURE__ */ h(Gt, { children: [
|
|
1099
|
+
E === g - Pe && /* @__PURE__ */ a("tr", { ref: s }),
|
|
1168
1100
|
/* @__PURE__ */ h(Ne, { children: [
|
|
1169
|
-
/* @__PURE__ */ a(
|
|
1101
|
+
/* @__PURE__ */ a($, { children: E + 1 }),
|
|
1170
1102
|
/* @__PURE__ */ a(
|
|
1171
|
-
|
|
1103
|
+
$,
|
|
1172
1104
|
{
|
|
1173
1105
|
component: "th",
|
|
1174
1106
|
scope: "row",
|
|
@@ -1177,29 +1109,29 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1177
1109
|
}
|
|
1178
1110
|
),
|
|
1179
1111
|
/* @__PURE__ */ a(
|
|
1180
|
-
|
|
1112
|
+
$,
|
|
1181
1113
|
{
|
|
1182
1114
|
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
|
1183
1115
|
style: {
|
|
1184
1116
|
wordBreak: "break-word"
|
|
1185
1117
|
},
|
|
1186
|
-
children: b.messages.length > 0 ? (
|
|
1118
|
+
children: b.messages.length > 0 ? (O = b.messages[0]) == null ? void 0 : O.content : ""
|
|
1187
1119
|
}
|
|
1188
1120
|
),
|
|
1189
1121
|
/* @__PURE__ */ h(
|
|
1190
|
-
|
|
1122
|
+
$,
|
|
1191
1123
|
{
|
|
1192
1124
|
component: "th",
|
|
1193
1125
|
scope: "row",
|
|
1194
1126
|
className: "text-gray-400",
|
|
1195
1127
|
align: "center",
|
|
1196
1128
|
children: [
|
|
1197
|
-
b.model && b.model.startsWith("claude") && /* @__PURE__ */ a(
|
|
1198
|
-
b.model && b.model.startsWith("gpt") && /* @__PURE__ */ a(
|
|
1129
|
+
b.model && b.model.startsWith("claude") && /* @__PURE__ */ a(Ot, { size: "size-4 sm:size-5" }),
|
|
1130
|
+
b.model && b.model.startsWith("gpt") && /* @__PURE__ */ a(Pt, { size: "size-4 sm:size-5" })
|
|
1199
1131
|
]
|
|
1200
1132
|
}
|
|
1201
1133
|
),
|
|
1202
|
-
/* @__PURE__ */ h(
|
|
1134
|
+
/* @__PURE__ */ h($, { align: "right", children: [
|
|
1203
1135
|
/* @__PURE__ */ a(
|
|
1204
1136
|
le,
|
|
1205
1137
|
{
|
|
@@ -1208,15 +1140,15 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1208
1140
|
noBorder: !0,
|
|
1209
1141
|
label: "Restore chat",
|
|
1210
1142
|
onClick: async () => {
|
|
1211
|
-
const
|
|
1143
|
+
const P = await l();
|
|
1212
1144
|
Lr(
|
|
1213
1145
|
b,
|
|
1214
1146
|
r,
|
|
1215
1147
|
t,
|
|
1216
|
-
|
|
1148
|
+
P
|
|
1217
1149
|
);
|
|
1218
1150
|
},
|
|
1219
|
-
children: /* @__PURE__ */ a(
|
|
1151
|
+
children: /* @__PURE__ */ a(sr, { size: "size-3", monotone: !0 })
|
|
1220
1152
|
}
|
|
1221
1153
|
),
|
|
1222
1154
|
/* @__PURE__ */ a(
|
|
@@ -1226,31 +1158,31 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1226
1158
|
noBorder: !0,
|
|
1227
1159
|
label: "Delete chat",
|
|
1228
1160
|
onClick: () => {
|
|
1229
|
-
var
|
|
1230
|
-
|
|
1161
|
+
var P;
|
|
1162
|
+
i.current = {
|
|
1231
1163
|
id: b.id,
|
|
1232
1164
|
timestamp: b.timestamp,
|
|
1233
|
-
message: b.messages.length > 0 ? (
|
|
1165
|
+
message: b.messages.length > 0 ? (P = b.messages[0]) == null ? void 0 : P.content : ""
|
|
1234
1166
|
}, m(!u);
|
|
1235
1167
|
},
|
|
1236
|
-
children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(
|
|
1168
|
+
children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(rr, { size: "size-3", monotone: !0 }) })
|
|
1237
1169
|
}
|
|
1238
1170
|
)
|
|
1239
1171
|
] })
|
|
1240
1172
|
] })
|
|
1241
1173
|
] }, `${T.HISTORY.TITLE}-${b.id}-${E}`) : null;
|
|
1242
1174
|
}) }),
|
|
1243
|
-
/* @__PURE__ */ a(
|
|
1175
|
+
/* @__PURE__ */ a(zt, { children: /* @__PURE__ */ a(Ne, { children: /* @__PURE__ */ a($, { colSpan: 1e3, children: /* @__PURE__ */ a("div", { children: ge(
|
|
1244
1176
|
`${e.length} chat`,
|
|
1245
1177
|
e.length
|
|
1246
1178
|
) }) }) }) })
|
|
1247
1179
|
] })
|
|
1248
1180
|
] });
|
|
1249
|
-
},
|
|
1181
|
+
}, Br = ({
|
|
1250
1182
|
open: e,
|
|
1251
1183
|
onOpenChange: r
|
|
1252
1184
|
}) => {
|
|
1253
|
-
const { getAccessToken: t, user: o } = G(), { state: n, dispatch: l } = fe(
|
|
1185
|
+
const { getAccessToken: t, user: o } = G(), { state: n, dispatch: l } = fe(Ye), { state: s, dispatch: i } = fe(je), { data: u, mutate: m } = $t({
|
|
1254
1186
|
keys: [
|
|
1255
1187
|
o == null ? void 0 : o.username,
|
|
1256
1188
|
s.searchString,
|
|
@@ -1261,19 +1193,19 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1261
1193
|
}), g = _(null), [, y] = Ie({
|
|
1262
1194
|
key: _e + bt,
|
|
1263
1195
|
initialValue: s.searchString
|
|
1264
|
-
}), [p,
|
|
1265
|
-
|
|
1266
|
-
u &&
|
|
1196
|
+
}), [p, c] = w([]);
|
|
1197
|
+
D(() => {
|
|
1198
|
+
u && c(u);
|
|
1267
1199
|
}, [u]);
|
|
1268
1200
|
const f = async (k) => {
|
|
1269
|
-
y(k),
|
|
1201
|
+
y(k), i({
|
|
1270
1202
|
type: kt,
|
|
1271
1203
|
payload: { searchString: k }
|
|
1272
1204
|
});
|
|
1273
1205
|
}, v = vt((k) => {
|
|
1274
1206
|
f(k.target.value.trim());
|
|
1275
1207
|
}, 500);
|
|
1276
|
-
return /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: yt, children: /* @__PURE__ */ h(
|
|
1208
|
+
return /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: yt, children: /* @__PURE__ */ h(B, { children: [
|
|
1277
1209
|
/* @__PURE__ */ a("form", { autoComplete: "off", onSubmit: async (k) => {
|
|
1278
1210
|
k.preventDefault();
|
|
1279
1211
|
}, children: /* @__PURE__ */ a(
|
|
@@ -1292,7 +1224,7 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1292
1224
|
className: "mt-2 mb-2",
|
|
1293
1225
|
...s.searchString && {
|
|
1294
1226
|
rightElement: /* @__PURE__ */ a(
|
|
1295
|
-
|
|
1227
|
+
U,
|
|
1296
1228
|
{
|
|
1297
1229
|
type: "button",
|
|
1298
1230
|
disabled: !s.searchString,
|
|
@@ -1311,7 +1243,7 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1311
1243
|
}
|
|
1312
1244
|
) }),
|
|
1313
1245
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ a(
|
|
1314
|
-
|
|
1246
|
+
Mr,
|
|
1315
1247
|
{
|
|
1316
1248
|
mutate: m,
|
|
1317
1249
|
filteredHistory: p,
|
|
@@ -1320,27 +1252,27 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1320
1252
|
}
|
|
1321
1253
|
) })
|
|
1322
1254
|
] }) });
|
|
1323
|
-
},
|
|
1324
|
-
const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), l = pe(), s = pe(),
|
|
1325
|
-
return r &&
|
|
1255
|
+
}, Or = ({ stats: e }) => {
|
|
1256
|
+
const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), l = pe(), s = pe(), i = (t == null ? void 0 : t.username) || "";
|
|
1257
|
+
return r && i ? /* @__PURE__ */ h(B, { children: [
|
|
1326
1258
|
/* @__PURE__ */ a(
|
|
1327
|
-
|
|
1259
|
+
H,
|
|
1328
1260
|
{
|
|
1329
1261
|
header: T.PREFERENCES.TITLE,
|
|
1330
1262
|
className: "prose-dark dark:prose-lighter",
|
|
1331
1263
|
children: he(l, {
|
|
1332
|
-
[T.PREFERENCES.NAME]:
|
|
1264
|
+
[T.PREFERENCES.NAME]: i,
|
|
1333
1265
|
[T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || ""
|
|
1334
1266
|
})
|
|
1335
1267
|
}
|
|
1336
1268
|
),
|
|
1337
1269
|
n !== xt.PASSKEY && /* @__PURE__ */ h(
|
|
1338
|
-
|
|
1270
|
+
H,
|
|
1339
1271
|
{
|
|
1340
1272
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
1341
1273
|
header: /* @__PURE__ */ a("h2", { className: "m-0", children: /* @__PURE__ */ h(X, { columnGap: 3, alignVertical: "center", children: [
|
|
1342
|
-
/* @__PURE__ */ a(
|
|
1343
|
-
/* @__PURE__ */ a(
|
|
1274
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a($e, { size: "size-8" }) }),
|
|
1275
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
|
|
1344
1276
|
] }) }),
|
|
1345
1277
|
children: [
|
|
1346
1278
|
/* @__PURE__ */ a("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
@@ -1358,7 +1290,7 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1358
1290
|
}
|
|
1359
1291
|
),
|
|
1360
1292
|
/* @__PURE__ */ a(
|
|
1361
|
-
|
|
1293
|
+
H,
|
|
1362
1294
|
{
|
|
1363
1295
|
header: T.MAIN_STATISTICS.TITLE,
|
|
1364
1296
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -1371,7 +1303,7 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1371
1303
|
}
|
|
1372
1304
|
)
|
|
1373
1305
|
] }) : null;
|
|
1374
|
-
},
|
|
1306
|
+
}, Pr = ({
|
|
1375
1307
|
open: e,
|
|
1376
1308
|
onOpenChange: r
|
|
1377
1309
|
}) => {
|
|
@@ -1379,33 +1311,33 @@ const se = "panel", me = "messagebox", _r = ({
|
|
|
1379
1311
|
data: n,
|
|
1380
1312
|
error: l,
|
|
1381
1313
|
isLoading: s
|
|
1382
|
-
} =
|
|
1314
|
+
} = Ht({
|
|
1383
1315
|
keys: [o == null ? void 0 : o.username],
|
|
1384
1316
|
getAccessToken: t
|
|
1385
1317
|
});
|
|
1386
|
-
return l || s ? null : /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: wt, children: /* @__PURE__ */ a(
|
|
1318
|
+
return l || s ? null : /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: wt, children: /* @__PURE__ */ a(Or, { stats: n }) });
|
|
1387
1319
|
};
|
|
1388
1320
|
/*!
|
|
1389
|
-
@versini/ui-textarea v3.0.
|
|
1321
|
+
@versini/ui-textarea v3.0.10
|
|
1390
1322
|
© 2025 gizmette.com
|
|
1391
1323
|
*/
|
|
1392
1324
|
try {
|
|
1393
1325
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
1394
|
-
version: "3.0.
|
|
1395
|
-
buildTime: "01/
|
|
1326
|
+
version: "3.0.10",
|
|
1327
|
+
buildTime: "01/20/2025 10:07 PM EST",
|
|
1396
1328
|
homepage: "https://github.com/aversini/ui-components",
|
|
1397
1329
|
license: "MIT"
|
|
1398
1330
|
});
|
|
1399
1331
|
} catch {
|
|
1400
1332
|
}
|
|
1401
|
-
const tt = "av-text-area",
|
|
1402
|
-
function
|
|
1333
|
+
const tt = "av-text-area", zr = "av-text-area-wrapper", we = "av-text-area-helper-text", $r = "av-text-area__control--right", Hr = "av-text-area__control--left";
|
|
1334
|
+
function Dr() {
|
|
1403
1335
|
const e = _(!1);
|
|
1404
|
-
return
|
|
1336
|
+
return D(() => (e.current = !0, () => {
|
|
1405
1337
|
e.current = !1;
|
|
1406
1338
|
}), []), Ke(() => e.current, []);
|
|
1407
1339
|
}
|
|
1408
|
-
function
|
|
1340
|
+
function Vr(e) {
|
|
1409
1341
|
return Xe(() => e.every((r) => r == null) ? () => {
|
|
1410
1342
|
} : (r) => {
|
|
1411
1343
|
e.forEach((t) => {
|
|
@@ -1413,7 +1345,7 @@ function Dr(e) {
|
|
|
1413
1345
|
});
|
|
1414
1346
|
}, e);
|
|
1415
1347
|
}
|
|
1416
|
-
const
|
|
1348
|
+
const Ur = {
|
|
1417
1349
|
x: 0,
|
|
1418
1350
|
y: 0,
|
|
1419
1351
|
width: 0,
|
|
@@ -1424,17 +1356,17 @@ const Vr = {
|
|
|
1424
1356
|
right: 0
|
|
1425
1357
|
};
|
|
1426
1358
|
function Fe(e) {
|
|
1427
|
-
const r =
|
|
1428
|
-
const u =
|
|
1359
|
+
const r = Dr(), t = _(0), o = _(null), [n, l] = w(Ur), s = Xe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
1360
|
+
const u = i[0];
|
|
1429
1361
|
u && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
1430
1362
|
o.current && r() && l(u.contentRect);
|
|
1431
1363
|
}));
|
|
1432
1364
|
}), [r]);
|
|
1433
|
-
return
|
|
1365
|
+
return D(() => (o.current && (s == null || s.observe(o.current, e)), () => {
|
|
1434
1366
|
s == null || s.disconnect(), t.current && cancelAnimationFrame(t.current);
|
|
1435
1367
|
}), [s, e]), [o, n];
|
|
1436
1368
|
}
|
|
1437
|
-
function
|
|
1369
|
+
function Fr({
|
|
1438
1370
|
value: e,
|
|
1439
1371
|
defaultValue: r,
|
|
1440
1372
|
finalValue: t,
|
|
@@ -1442,18 +1374,18 @@ function Hr({
|
|
|
1442
1374
|
},
|
|
1443
1375
|
initialControlledDelay: n = 0
|
|
1444
1376
|
}) {
|
|
1445
|
-
const [l, s] = w(!1), [
|
|
1377
|
+
const [l, s] = w(!1), [i, u] = w(
|
|
1446
1378
|
r !== void 0 ? r : t
|
|
1447
1379
|
), m = (g) => {
|
|
1448
1380
|
u(g), o == null || o(g);
|
|
1449
1381
|
};
|
|
1450
|
-
return
|
|
1382
|
+
return D(() => {
|
|
1451
1383
|
(async () => e !== void 0 && !l && n > 0 && (await new Promise(
|
|
1452
1384
|
(g) => setTimeout(g, n)
|
|
1453
1385
|
), s(!0)))();
|
|
1454
|
-
}, [e, n, l]), e !== void 0 ? !l && n > 0 ? ["", o, !0] : [e, o, !0] : [
|
|
1386
|
+
}, [e, n, l]), e !== void 0 ? !l && n > 0 ? ["", o, !0] : [e, o, !0] : [i, m, !1];
|
|
1455
1387
|
}
|
|
1456
|
-
function
|
|
1388
|
+
function Gr(e) {
|
|
1457
1389
|
const r = Se();
|
|
1458
1390
|
if (!e)
|
|
1459
1391
|
return r;
|
|
@@ -1464,7 +1396,7 @@ function Ur(e) {
|
|
|
1464
1396
|
return typeof t == "number" || typeof t == "string" ? `${o}${t}` : `${o}${r}`;
|
|
1465
1397
|
}
|
|
1466
1398
|
}
|
|
1467
|
-
const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT",
|
|
1399
|
+
const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", jr = {
|
|
1468
1400
|
alert: null,
|
|
1469
1401
|
alertdialog: null,
|
|
1470
1402
|
log: "polite",
|
|
@@ -1472,7 +1404,7 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
|
|
|
1472
1404
|
progressbar: null,
|
|
1473
1405
|
status: "polite",
|
|
1474
1406
|
timer: "assertive"
|
|
1475
|
-
},
|
|
1407
|
+
}, Yr = (e, r) => {
|
|
1476
1408
|
switch (r == null ? void 0 : r.type) {
|
|
1477
1409
|
case rt:
|
|
1478
1410
|
return {
|
|
@@ -1487,7 +1419,7 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
|
|
|
1487
1419
|
default:
|
|
1488
1420
|
return e;
|
|
1489
1421
|
}
|
|
1490
|
-
},
|
|
1422
|
+
}, Wr = ({
|
|
1491
1423
|
onAnnouncementClear: e,
|
|
1492
1424
|
dispatch: r
|
|
1493
1425
|
}) => {
|
|
@@ -1505,13 +1437,13 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
|
|
|
1505
1437
|
type: rt,
|
|
1506
1438
|
payload: e
|
|
1507
1439
|
}), r && (t.current = setTimeout(
|
|
1508
|
-
() =>
|
|
1440
|
+
() => Wr({
|
|
1509
1441
|
onAnnouncementClear: o,
|
|
1510
1442
|
dispatch: n
|
|
1511
1443
|
}),
|
|
1512
1444
|
r
|
|
1513
1445
|
));
|
|
1514
|
-
},
|
|
1446
|
+
}, Kr = ({
|
|
1515
1447
|
children: e,
|
|
1516
1448
|
announcementTimeoutRef: r,
|
|
1517
1449
|
announcementDelay: t,
|
|
@@ -1534,7 +1466,7 @@ const rt = "SET_ANNOUNCEMENT", at = "CLEAR_ANNOUNCEMENT", Fr = {
|
|
|
1534
1466
|
dispatch: s
|
|
1535
1467
|
});
|
|
1536
1468
|
};
|
|
1537
|
-
function
|
|
1469
|
+
function Xr({
|
|
1538
1470
|
children: e,
|
|
1539
1471
|
className: r,
|
|
1540
1472
|
politeness: t,
|
|
@@ -1542,15 +1474,15 @@ function Yr({
|
|
|
1542
1474
|
announcementDelay: n,
|
|
1543
1475
|
clearAnnouncementDelay: l,
|
|
1544
1476
|
onAnnouncementClear: s,
|
|
1545
|
-
visible:
|
|
1477
|
+
visible: i,
|
|
1546
1478
|
...u
|
|
1547
1479
|
}) {
|
|
1548
|
-
const m = _(null), g = _(null), [y, p] =
|
|
1480
|
+
const m = _(null), g = _(null), [y, p] = jt(Yr, {
|
|
1549
1481
|
announcement: null
|
|
1550
1482
|
});
|
|
1551
|
-
let
|
|
1552
|
-
typeof
|
|
1553
|
-
|
|
1483
|
+
let c = t;
|
|
1484
|
+
typeof c > "u" && (c = o ? jr[o] : "assertive"), D(() => {
|
|
1485
|
+
Kr({
|
|
1554
1486
|
announcementTimeoutRef: m,
|
|
1555
1487
|
announcementDelay: n,
|
|
1556
1488
|
children: e,
|
|
@@ -1566,12 +1498,12 @@ function Yr({
|
|
|
1566
1498
|
s
|
|
1567
1499
|
]);
|
|
1568
1500
|
const f = d(r, {
|
|
1569
|
-
"sr-only": !
|
|
1501
|
+
"sr-only": !i
|
|
1570
1502
|
});
|
|
1571
1503
|
return /* @__PURE__ */ a(
|
|
1572
1504
|
"div",
|
|
1573
1505
|
{
|
|
1574
|
-
"aria-live":
|
|
1506
|
+
"aria-live": c,
|
|
1575
1507
|
...o && { role: o },
|
|
1576
1508
|
className: f,
|
|
1577
1509
|
...u,
|
|
@@ -1580,31 +1512,31 @@ function Yr({
|
|
|
1580
1512
|
);
|
|
1581
1513
|
}
|
|
1582
1514
|
/*!
|
|
1583
|
-
@versini/ui-liveregion v1.3.
|
|
1515
|
+
@versini/ui-liveregion v1.3.7
|
|
1584
1516
|
© 2025 gizmette.com
|
|
1585
1517
|
*/
|
|
1586
1518
|
try {
|
|
1587
1519
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
1588
|
-
version: "1.3.
|
|
1589
|
-
buildTime: "01/
|
|
1520
|
+
version: "1.3.7",
|
|
1521
|
+
buildTime: "01/20/2025 10:07 PM EST",
|
|
1590
1522
|
homepage: "https://github.com/aversini/ui-components",
|
|
1591
1523
|
license: "MIT"
|
|
1592
1524
|
});
|
|
1593
1525
|
} catch {
|
|
1594
1526
|
}
|
|
1595
|
-
const
|
|
1527
|
+
const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Qr = ({ mode: e }) => d({
|
|
1596
1528
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1597
1529
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1598
1530
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1599
1531
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1600
|
-
}),
|
|
1532
|
+
}), Jr = ({
|
|
1601
1533
|
focusMode: e
|
|
1602
1534
|
}) => d("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1603
1535
|
"focus:outline-focus-dark": e === "dark",
|
|
1604
1536
|
"focus:outline-focus-light": e === "light",
|
|
1605
1537
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1606
1538
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1607
|
-
}),
|
|
1539
|
+
}), Zr = ({
|
|
1608
1540
|
noBorder: e,
|
|
1609
1541
|
error: r
|
|
1610
1542
|
}) => d("border-2", {
|
|
@@ -1612,7 +1544,7 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1612
1544
|
"focus:border-border-dark": !e && r,
|
|
1613
1545
|
"border-border-error-dark": !e && r,
|
|
1614
1546
|
"border-transparent": e
|
|
1615
|
-
}),
|
|
1547
|
+
}), ea = ({
|
|
1616
1548
|
disabled: e,
|
|
1617
1549
|
raw: r,
|
|
1618
1550
|
error: t,
|
|
@@ -1651,7 +1583,7 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1651
1583
|
"text-copy-medium dark:text-copy-error-dark": o === "alt-system"
|
|
1652
1584
|
}
|
|
1653
1585
|
);
|
|
1654
|
-
},
|
|
1586
|
+
}, ta = ({
|
|
1655
1587
|
error: e,
|
|
1656
1588
|
raw: r,
|
|
1657
1589
|
mode: t,
|
|
@@ -1678,7 +1610,7 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1678
1610
|
"text-copy-error-dark dark:text-copy-error-light": t === "system",
|
|
1679
1611
|
"dark:text-copy-error-dark text-copy-error-light": t === "alt-system"
|
|
1680
1612
|
});
|
|
1681
|
-
},
|
|
1613
|
+
}, ra = ({
|
|
1682
1614
|
className: e,
|
|
1683
1615
|
textAreaClassName: r,
|
|
1684
1616
|
raw: t,
|
|
@@ -1686,50 +1618,50 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1686
1618
|
disabled: n,
|
|
1687
1619
|
noBorder: l,
|
|
1688
1620
|
error: s,
|
|
1689
|
-
mode:
|
|
1621
|
+
mode: i,
|
|
1690
1622
|
leftElement: u,
|
|
1691
1623
|
rightElement: m
|
|
1692
1624
|
}) => {
|
|
1693
1625
|
const g = t ? e : d(
|
|
1694
1626
|
"relative flex w-full flex-col justify-center",
|
|
1695
|
-
|
|
1627
|
+
zr,
|
|
1696
1628
|
e
|
|
1697
1629
|
), y = t ? d(r) : d(
|
|
1698
1630
|
tt,
|
|
1699
1631
|
r,
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1632
|
+
qr(),
|
|
1633
|
+
Qr({ mode: i }),
|
|
1634
|
+
Jr({ focusMode: o }),
|
|
1635
|
+
Zr({
|
|
1704
1636
|
noBorder: l,
|
|
1705
1637
|
error: s
|
|
1706
1638
|
}),
|
|
1707
1639
|
{
|
|
1708
1640
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
1709
1641
|
}
|
|
1710
|
-
), p = t ? void 0 : "sr-only",
|
|
1642
|
+
), p = t ? void 0 : "sr-only", c = ea({
|
|
1711
1643
|
disabled: n,
|
|
1712
1644
|
raw: t,
|
|
1713
1645
|
error: s,
|
|
1714
|
-
mode:
|
|
1646
|
+
mode: i,
|
|
1715
1647
|
rightElement: m,
|
|
1716
1648
|
leftElement: u
|
|
1717
|
-
}), f =
|
|
1649
|
+
}), f = ta({
|
|
1718
1650
|
error: s,
|
|
1719
1651
|
raw: t,
|
|
1720
|
-
mode:
|
|
1652
|
+
mode: i,
|
|
1721
1653
|
disabled: n
|
|
1722
|
-
}), v = t ? void 0 : d(
|
|
1654
|
+
}), v = t ? void 0 : d($r, "absolute"), x = t ? void 0 : d(Hr, "absolute");
|
|
1723
1655
|
return {
|
|
1724
1656
|
wrapper: g,
|
|
1725
1657
|
textArea: y,
|
|
1726
1658
|
accessibleLabel: p,
|
|
1727
|
-
visibleLabel:
|
|
1659
|
+
visibleLabel: c,
|
|
1728
1660
|
helperText: f,
|
|
1729
1661
|
rightElement: v,
|
|
1730
1662
|
leftElement: x
|
|
1731
1663
|
};
|
|
1732
|
-
},
|
|
1664
|
+
}, aa = ({
|
|
1733
1665
|
scrollHeight: e,
|
|
1734
1666
|
currentHeight: r,
|
|
1735
1667
|
currentLabelOffset: t = 0,
|
|
@@ -1737,8 +1669,8 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1737
1669
|
}) => {
|
|
1738
1670
|
let n, l;
|
|
1739
1671
|
if (e > 0 && e !== r) {
|
|
1740
|
-
const s = e - r,
|
|
1741
|
-
n = t + -1 * Math.sign(s) * (12 *
|
|
1672
|
+
const s = e - r, i = Math.abs(s / 24);
|
|
1673
|
+
n = t + -1 * Math.sign(s) * (12 * i), l = o + Math.sign(s) * (12 * i);
|
|
1742
1674
|
}
|
|
1743
1675
|
return {
|
|
1744
1676
|
labelOffset: n,
|
|
@@ -1754,13 +1686,13 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1754
1686
|
raw: n = !1,
|
|
1755
1687
|
className: l,
|
|
1756
1688
|
textAreaClassName: s,
|
|
1757
|
-
mode:
|
|
1689
|
+
mode: i = "system",
|
|
1758
1690
|
focusMode: u = "system",
|
|
1759
1691
|
value: m,
|
|
1760
1692
|
defaultValue: g,
|
|
1761
1693
|
disabled: y = !1,
|
|
1762
1694
|
noBorder: p = !1,
|
|
1763
|
-
labelId:
|
|
1695
|
+
labelId: c,
|
|
1764
1696
|
helperText: f = "",
|
|
1765
1697
|
helperTextOnFocus: v = !1,
|
|
1766
1698
|
rightElement: x,
|
|
@@ -1769,11 +1701,11 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1769
1701
|
onFocus: b,
|
|
1770
1702
|
onBlur: E,
|
|
1771
1703
|
...I
|
|
1772
|
-
},
|
|
1773
|
-
var
|
|
1774
|
-
const
|
|
1704
|
+
}, O) => {
|
|
1705
|
+
var P;
|
|
1706
|
+
const L = _(null), de = Vr([O, L]), [N, M] = Fe(), [Z, j] = Fe(), q = _(80), Y = _(-25), z = _(null), ee = _(30), te = _(null), W = Gr({ id: e, prefix: `${tt}-` }), [Re, ot] = w(0), [Le, nt] = w(0), [st, Me] = w(
|
|
1775
1707
|
!!(!v && f)
|
|
1776
|
-
), lt = `${r} error, ${f}`, K =
|
|
1708
|
+
), lt = `${r} error, ${f}`, K = ra({
|
|
1777
1709
|
className: l,
|
|
1778
1710
|
textAreaClassName: s,
|
|
1779
1711
|
error: o,
|
|
@@ -1781,67 +1713,67 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1781
1713
|
focusMode: u,
|
|
1782
1714
|
disabled: y,
|
|
1783
1715
|
noBorder: p,
|
|
1784
|
-
mode:
|
|
1716
|
+
mode: i,
|
|
1785
1717
|
rightElement: !!x,
|
|
1786
1718
|
leftElement: !!k
|
|
1787
|
-
}), [
|
|
1719
|
+
}), [V, it] = Fr({
|
|
1788
1720
|
value: m,
|
|
1789
1721
|
initialControlledDelay: 20,
|
|
1790
1722
|
defaultValue: g,
|
|
1791
|
-
onChange: (
|
|
1723
|
+
onChange: (A) => {
|
|
1792
1724
|
C && C({
|
|
1793
1725
|
target: {
|
|
1794
|
-
value:
|
|
1726
|
+
value: A
|
|
1795
1727
|
}
|
|
1796
1728
|
});
|
|
1797
1729
|
}
|
|
1798
|
-
}),
|
|
1799
|
-
|
|
1800
|
-
}, dt = (
|
|
1801
|
-
v && f &&
|
|
1802
|
-
}, mt = (
|
|
1803
|
-
v && f && !
|
|
1730
|
+
}), ct = (A) => {
|
|
1731
|
+
it(A.target.value);
|
|
1732
|
+
}, dt = (A) => {
|
|
1733
|
+
v && f && Me(!0), b && b(A);
|
|
1734
|
+
}, mt = (A) => {
|
|
1735
|
+
v && f && !V && Me(!1), E && E(A);
|
|
1804
1736
|
};
|
|
1805
1737
|
return ne(() => {
|
|
1806
|
-
|
|
1807
|
-
}, [
|
|
1738
|
+
M && M.width && ot(M.width + 18 + 10);
|
|
1739
|
+
}, [M]), ne(() => {
|
|
1808
1740
|
j && j.width && nt(j.width + 18 + 10);
|
|
1809
1741
|
}, [j]), ne(() => {
|
|
1810
|
-
n ||
|
|
1811
|
-
}, [
|
|
1742
|
+
n || L && L.current && V !== void 0 && (L.current.style.height = "inherit", L.current.style.height = L.current.scrollHeight + "px");
|
|
1743
|
+
}, [V, n]), ne(() => {
|
|
1812
1744
|
n || setTimeout(() => {
|
|
1813
|
-
var
|
|
1814
|
-
(
|
|
1745
|
+
var A;
|
|
1746
|
+
(A = z == null ? void 0 : z.current) == null || A.style.setProperty(
|
|
1815
1747
|
"--av-text-area-wrapper-transition",
|
|
1816
|
-
|
|
1748
|
+
V ? "none" : "all 0.2s ease-out"
|
|
1817
1749
|
);
|
|
1818
1750
|
}, 0);
|
|
1819
|
-
}, [
|
|
1820
|
-
var
|
|
1821
|
-
if (!n &&
|
|
1822
|
-
const { labelOffset: ve, helperTextOffset: xe, scrollHeight: ut } =
|
|
1823
|
-
scrollHeight:
|
|
1751
|
+
}, [V, n]), ne(() => {
|
|
1752
|
+
var A, Be;
|
|
1753
|
+
if (!n && L && L.current && V !== void 0) {
|
|
1754
|
+
const { labelOffset: ve, helperTextOffset: xe, scrollHeight: ut } = aa({
|
|
1755
|
+
scrollHeight: L.current.scrollHeight,
|
|
1824
1756
|
currentHeight: q.current,
|
|
1825
|
-
currentLabelOffset:
|
|
1757
|
+
currentLabelOffset: Y.current,
|
|
1826
1758
|
currentHelperTextOffset: ee.current
|
|
1827
1759
|
});
|
|
1828
|
-
ve && (
|
|
1760
|
+
ve && (Y.current = ve, (A = z == null ? void 0 : z.current) == null || A.style.setProperty(
|
|
1829
1761
|
"--av-text-area-label",
|
|
1830
1762
|
`${ve}px`
|
|
1831
|
-
)), xe && (ee.current = xe, (
|
|
1763
|
+
)), xe && (ee.current = xe, (Be = te == null ? void 0 : te.current) == null || Be.style.setProperty(
|
|
1832
1764
|
"--av-text-area-helper-text",
|
|
1833
1765
|
`${xe}px`
|
|
1834
1766
|
)), q.current = ut || q.current;
|
|
1835
1767
|
}
|
|
1836
|
-
}, [
|
|
1768
|
+
}, [V, n]), j.width > 0 && ((P = z == null ? void 0 : z.current) == null || P.style.setProperty(
|
|
1837
1769
|
"--tw-translate-x",
|
|
1838
1770
|
`${12 + j.width + 5}px`
|
|
1839
1771
|
)), /* @__PURE__ */ h("div", { className: K.wrapper, children: [
|
|
1840
1772
|
/* @__PURE__ */ a(
|
|
1841
1773
|
"label",
|
|
1842
1774
|
{
|
|
1843
|
-
htmlFor:
|
|
1844
|
-
id:
|
|
1775
|
+
htmlFor: W,
|
|
1776
|
+
id: c,
|
|
1845
1777
|
className: K.accessibleLabel,
|
|
1846
1778
|
children: t
|
|
1847
1779
|
}
|
|
@@ -1858,24 +1790,24 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1858
1790
|
"textarea",
|
|
1859
1791
|
{
|
|
1860
1792
|
ref: de,
|
|
1861
|
-
id:
|
|
1793
|
+
id: W,
|
|
1862
1794
|
name: r,
|
|
1863
1795
|
disabled: y,
|
|
1864
1796
|
placeholder: n ? void 0 : " ",
|
|
1865
1797
|
className: K.textArea,
|
|
1866
1798
|
rows: 1,
|
|
1867
|
-
...f && { "aria-describedby": `${
|
|
1799
|
+
...f && { "aria-describedby": `${W}-helper` },
|
|
1868
1800
|
...o && { "aria-invalid": "true" },
|
|
1869
|
-
...x && !k && !n && { style: { paddingRight:
|
|
1870
|
-
...k && !x && !n && { style: { paddingLeft:
|
|
1801
|
+
...x && !k && !n && { style: { paddingRight: Re } },
|
|
1802
|
+
...k && !x && !n && { style: { paddingLeft: Le } },
|
|
1871
1803
|
...x && k && !n && {
|
|
1872
1804
|
style: {
|
|
1873
|
-
paddingRight:
|
|
1874
|
-
paddingLeft:
|
|
1805
|
+
paddingRight: Re,
|
|
1806
|
+
paddingLeft: Le
|
|
1875
1807
|
}
|
|
1876
1808
|
},
|
|
1877
|
-
value:
|
|
1878
|
-
onChange:
|
|
1809
|
+
value: V,
|
|
1810
|
+
onChange: ct,
|
|
1879
1811
|
onFocus: dt,
|
|
1880
1812
|
onBlur: mt,
|
|
1881
1813
|
...I
|
|
@@ -1884,9 +1816,9 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1884
1816
|
!n && /* @__PURE__ */ a(
|
|
1885
1817
|
"label",
|
|
1886
1818
|
{
|
|
1887
|
-
ref:
|
|
1819
|
+
ref: z,
|
|
1888
1820
|
"aria-hidden": !0,
|
|
1889
|
-
htmlFor:
|
|
1821
|
+
htmlFor: W,
|
|
1890
1822
|
className: `${K.visibleLabel}`,
|
|
1891
1823
|
children: t
|
|
1892
1824
|
}
|
|
@@ -1895,7 +1827,7 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1895
1827
|
"div",
|
|
1896
1828
|
{
|
|
1897
1829
|
ref: te,
|
|
1898
|
-
id: `${
|
|
1830
|
+
id: `${W}-helper`,
|
|
1899
1831
|
className: K.helperText,
|
|
1900
1832
|
children: f
|
|
1901
1833
|
}
|
|
@@ -1908,25 +1840,25 @@ const Kr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1908
1840
|
children: x
|
|
1909
1841
|
}
|
|
1910
1842
|
),
|
|
1911
|
-
o && f && /* @__PURE__ */ a(
|
|
1843
|
+
o && f && /* @__PURE__ */ a(Xr, { politeness: "polite", clearAnnouncementDelay: 500, children: lt })
|
|
1912
1844
|
] });
|
|
1913
1845
|
}
|
|
1914
1846
|
);
|
|
1915
1847
|
Ce.displayName = "TextArea";
|
|
1916
1848
|
/*!
|
|
1917
|
-
@versini/ui-toggle v3.0.
|
|
1849
|
+
@versini/ui-toggle v3.0.8
|
|
1918
1850
|
© 2025 gizmette.com
|
|
1919
1851
|
*/
|
|
1920
1852
|
try {
|
|
1921
1853
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
1922
|
-
version: "3.0.
|
|
1923
|
-
buildTime: "01/
|
|
1854
|
+
version: "3.0.8",
|
|
1855
|
+
buildTime: "01/20/2025 01:49 PM EST",
|
|
1924
1856
|
homepage: "https://github.com/aversini/ui-components",
|
|
1925
1857
|
license: "MIT"
|
|
1926
1858
|
});
|
|
1927
1859
|
} catch {
|
|
1928
1860
|
}
|
|
1929
|
-
const
|
|
1861
|
+
const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa = ({
|
|
1930
1862
|
focusMode: e
|
|
1931
1863
|
}) => d(
|
|
1932
1864
|
"peer-focus:outline",
|
|
@@ -1938,14 +1870,14 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
1938
1870
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
1939
1871
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
1940
1872
|
}
|
|
1941
|
-
),
|
|
1873
|
+
), la = () => d(
|
|
1942
1874
|
"peer-checked:after:translate-x-full",
|
|
1943
1875
|
// background color when checked
|
|
1944
1876
|
"peer-checked:bg-violet-500",
|
|
1945
1877
|
// knob circle and border color when checked
|
|
1946
1878
|
"peer-checked:after:bg-white",
|
|
1947
1879
|
"peer-checked:after:border-white"
|
|
1948
|
-
),
|
|
1880
|
+
), ia = () => d(
|
|
1949
1881
|
"after:left-[2px]",
|
|
1950
1882
|
"after:top-[2px]",
|
|
1951
1883
|
"after:border",
|
|
@@ -1957,7 +1889,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
1957
1889
|
"after:rounded-full",
|
|
1958
1890
|
"after:transition-all",
|
|
1959
1891
|
"after:content-['']"
|
|
1960
|
-
),
|
|
1892
|
+
), ca = ({
|
|
1961
1893
|
mode: e,
|
|
1962
1894
|
noBorder: r
|
|
1963
1895
|
}) => d({
|
|
@@ -1966,7 +1898,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
1966
1898
|
"border-border-light bg-surface-darker": e === "dark",
|
|
1967
1899
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
1968
1900
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
1969
|
-
}),
|
|
1901
|
+
}), da = ({
|
|
1970
1902
|
mode: e,
|
|
1971
1903
|
labelHidden: r
|
|
1972
1904
|
}) => r ? "sr-only" : d("ml-2 text-sm", {
|
|
@@ -1974,11 +1906,11 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
1974
1906
|
"text-copy-lighter": e === "dark",
|
|
1975
1907
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
1976
1908
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
1977
|
-
}),
|
|
1978
|
-
|
|
1909
|
+
}), ma = ({ className: e }) => d(
|
|
1910
|
+
oa,
|
|
1979
1911
|
"relative flex cursor-pointer items-center",
|
|
1980
1912
|
e
|
|
1981
|
-
),
|
|
1913
|
+
), ua = ({
|
|
1982
1914
|
mode: e,
|
|
1983
1915
|
focusMode: r,
|
|
1984
1916
|
labelHidden: t,
|
|
@@ -1986,15 +1918,15 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
1986
1918
|
noBorder: n
|
|
1987
1919
|
}) => ({
|
|
1988
1920
|
toggle: d(
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1921
|
+
na(),
|
|
1922
|
+
ca({ mode: e, noBorder: n }),
|
|
1923
|
+
sa({ focusMode: r }),
|
|
1924
|
+
ia(),
|
|
1925
|
+
la()
|
|
1994
1926
|
),
|
|
1995
|
-
label:
|
|
1927
|
+
label: da({ mode: e, labelHidden: t }),
|
|
1996
1928
|
input: "peer sr-only",
|
|
1997
|
-
wrapper:
|
|
1929
|
+
wrapper: ma({ className: o })
|
|
1998
1930
|
}), ue = ({
|
|
1999
1931
|
checked: e = !1,
|
|
2000
1932
|
onChange: r,
|
|
@@ -2003,14 +1935,14 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2003
1935
|
name: n,
|
|
2004
1936
|
mode: l = "system",
|
|
2005
1937
|
focusMode: s = "system",
|
|
2006
|
-
className:
|
|
1938
|
+
className: i,
|
|
2007
1939
|
noBorder: u = !1
|
|
2008
1940
|
}) => {
|
|
2009
|
-
const m =
|
|
1941
|
+
const m = ua({
|
|
2010
1942
|
mode: l,
|
|
2011
1943
|
focusMode: s,
|
|
2012
1944
|
labelHidden: o,
|
|
2013
|
-
className:
|
|
1945
|
+
className: i,
|
|
2014
1946
|
noBorder: u
|
|
2015
1947
|
}), g = (y) => {
|
|
2016
1948
|
r == null || r(y.target.checked);
|
|
@@ -2029,7 +1961,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2029
1961
|
/* @__PURE__ */ a("div", { className: m.toggle }),
|
|
2030
1962
|
/* @__PURE__ */ a("span", { className: m.label, children: t })
|
|
2031
1963
|
] });
|
|
2032
|
-
},
|
|
1964
|
+
}, ha = ({
|
|
2033
1965
|
open: e,
|
|
2034
1966
|
onOpenChange: r
|
|
2035
1967
|
}) => {
|
|
@@ -2037,39 +1969,39 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2037
1969
|
data: n,
|
|
2038
1970
|
error: l,
|
|
2039
1971
|
isLoading: s,
|
|
2040
|
-
mutate:
|
|
2041
|
-
} =
|
|
1972
|
+
mutate: i
|
|
1973
|
+
} = We({
|
|
2042
1974
|
keys: [o == null ? void 0 : o.username],
|
|
2043
1975
|
getAccessToken: t
|
|
2044
1976
|
}), [u, m] = w({
|
|
2045
1977
|
prompts: []
|
|
2046
1978
|
}), g = ({
|
|
2047
|
-
slot:
|
|
1979
|
+
slot: c,
|
|
2048
1980
|
checked: f,
|
|
2049
1981
|
label: v,
|
|
2050
1982
|
content: x
|
|
2051
1983
|
}) => {
|
|
2052
1984
|
m((k) => {
|
|
2053
1985
|
const C = k.prompts, b = {
|
|
2054
|
-
slot:
|
|
1986
|
+
slot: c,
|
|
2055
1987
|
label: v,
|
|
2056
1988
|
content: x,
|
|
2057
1989
|
enabled: f
|
|
2058
|
-
}, E = C.findIndex((I) => I.slot ===
|
|
1990
|
+
}, E = C.findIndex((I) => I.slot === c);
|
|
2059
1991
|
return E === -1 ? {
|
|
2060
1992
|
...k,
|
|
2061
|
-
prompts: [...C, { ...b, slot:
|
|
1993
|
+
prompts: [...C, { ...b, slot: c }]
|
|
2062
1994
|
} : (C[E] = b, {
|
|
2063
1995
|
...k,
|
|
2064
1996
|
prompts: [...C]
|
|
2065
1997
|
});
|
|
2066
1998
|
});
|
|
2067
|
-
}, y = async (
|
|
2068
|
-
|
|
1999
|
+
}, y = async (c) => {
|
|
2000
|
+
c.preventDefault();
|
|
2069
2001
|
try {
|
|
2070
|
-
await
|
|
2002
|
+
await ie({
|
|
2071
2003
|
accessToken: await t(),
|
|
2072
|
-
type:
|
|
2004
|
+
type: ce.SET_USER_PREFERENCES,
|
|
2073
2005
|
params: {
|
|
2074
2006
|
user: o == null ? void 0 : o.username,
|
|
2075
2007
|
tags: u.prompts
|
|
@@ -2078,9 +2010,9 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2078
2010
|
} catch {
|
|
2079
2011
|
}
|
|
2080
2012
|
}, p = () => {
|
|
2081
|
-
|
|
2013
|
+
i({ ...n }), r(!1);
|
|
2082
2014
|
};
|
|
2083
|
-
return
|
|
2015
|
+
return D(() => {
|
|
2084
2016
|
n != null && n.tags && m({ prompts: n.tags });
|
|
2085
2017
|
}, [n]), l || s ? null : /* @__PURE__ */ h(
|
|
2086
2018
|
J,
|
|
@@ -2095,8 +2027,8 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2095
2027
|
alignHorizontal: "flex-end",
|
|
2096
2028
|
className: "pb-8 sm:pb-0",
|
|
2097
2029
|
children: [
|
|
2098
|
-
/* @__PURE__ */ a(
|
|
2099
|
-
|
|
2030
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
2031
|
+
U,
|
|
2100
2032
|
{
|
|
2101
2033
|
mode: "dark",
|
|
2102
2034
|
variant: "secondary",
|
|
@@ -2105,14 +2037,14 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2105
2037
|
children: "Cancel"
|
|
2106
2038
|
}
|
|
2107
2039
|
) }),
|
|
2108
|
-
/* @__PURE__ */ a(
|
|
2109
|
-
|
|
2040
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
2041
|
+
U,
|
|
2110
2042
|
{
|
|
2111
2043
|
mode: "dark",
|
|
2112
2044
|
variant: "danger",
|
|
2113
2045
|
focusMode: "light",
|
|
2114
|
-
onClick: async (
|
|
2115
|
-
r(!1), await y(
|
|
2046
|
+
onClick: async (c) => {
|
|
2047
|
+
r(!1), await y(c);
|
|
2116
2048
|
},
|
|
2117
2049
|
children: "Save"
|
|
2118
2050
|
}
|
|
@@ -2122,40 +2054,40 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2122
2054
|
),
|
|
2123
2055
|
children: [
|
|
2124
2056
|
/* @__PURE__ */ a("p", { children: Et }),
|
|
2125
|
-
u.prompts && u.prompts.map((
|
|
2126
|
-
|
|
2057
|
+
u.prompts && u.prompts.map((c) => /* @__PURE__ */ h(
|
|
2058
|
+
H,
|
|
2127
2059
|
{
|
|
2128
|
-
header: `Prompt ${
|
|
2060
|
+
header: `Prompt ${c.slot + 1}`,
|
|
2129
2061
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2130
2062
|
children: [
|
|
2131
2063
|
/* @__PURE__ */ h(X, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2132
|
-
/* @__PURE__ */ a(
|
|
2064
|
+
/* @__PURE__ */ a(R, { span: 12, children: /* @__PURE__ */ a(
|
|
2133
2065
|
Ee,
|
|
2134
2066
|
{
|
|
2135
2067
|
label: "Label",
|
|
2136
|
-
name: `prompt${
|
|
2137
|
-
value:
|
|
2068
|
+
name: `prompt${c.slot}-label`,
|
|
2069
|
+
value: c.label,
|
|
2138
2070
|
onChange: (f) => {
|
|
2139
2071
|
g({
|
|
2140
|
-
slot:
|
|
2141
|
-
checked:
|
|
2072
|
+
slot: c.slot,
|
|
2073
|
+
checked: c.enabled,
|
|
2142
2074
|
label: f.target.value,
|
|
2143
|
-
content:
|
|
2075
|
+
content: c.content
|
|
2144
2076
|
});
|
|
2145
2077
|
}
|
|
2146
2078
|
}
|
|
2147
2079
|
) }),
|
|
2148
|
-
/* @__PURE__ */ a(
|
|
2080
|
+
/* @__PURE__ */ a(R, { span: 12, children: /* @__PURE__ */ a(
|
|
2149
2081
|
Ee,
|
|
2150
2082
|
{
|
|
2151
2083
|
label: "Content",
|
|
2152
|
-
name: `prompt${
|
|
2153
|
-
value:
|
|
2084
|
+
name: `prompt${c.slot}-content`,
|
|
2085
|
+
value: c.content,
|
|
2154
2086
|
onChange: (f) => {
|
|
2155
2087
|
g({
|
|
2156
|
-
slot:
|
|
2157
|
-
checked:
|
|
2158
|
-
label:
|
|
2088
|
+
slot: c.slot,
|
|
2089
|
+
checked: c.enabled,
|
|
2090
|
+
label: c.label,
|
|
2159
2091
|
content: f.target.value
|
|
2160
2092
|
});
|
|
2161
2093
|
}
|
|
@@ -2168,26 +2100,26 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2168
2100
|
className: "mt-2",
|
|
2169
2101
|
noBorder: !0,
|
|
2170
2102
|
label: "Enabled",
|
|
2171
|
-
name:
|
|
2103
|
+
name: c.slot.toString(),
|
|
2172
2104
|
onChange: (f) => {
|
|
2173
2105
|
g({
|
|
2174
|
-
slot:
|
|
2106
|
+
slot: c.slot,
|
|
2175
2107
|
checked: f,
|
|
2176
|
-
label:
|
|
2177
|
-
content:
|
|
2108
|
+
label: c.label,
|
|
2109
|
+
content: c.content
|
|
2178
2110
|
});
|
|
2179
2111
|
},
|
|
2180
|
-
checked:
|
|
2112
|
+
checked: c.enabled
|
|
2181
2113
|
}
|
|
2182
2114
|
)
|
|
2183
2115
|
]
|
|
2184
2116
|
},
|
|
2185
|
-
`prompt-slot-${
|
|
2117
|
+
`prompt-slot-${c.slot}`
|
|
2186
2118
|
))
|
|
2187
2119
|
]
|
|
2188
2120
|
}
|
|
2189
2121
|
);
|
|
2190
|
-
},
|
|
2122
|
+
}, ga = ({
|
|
2191
2123
|
open: e,
|
|
2192
2124
|
onOpenChange: r
|
|
2193
2125
|
}) => {
|
|
@@ -2195,13 +2127,13 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2195
2127
|
data: n,
|
|
2196
2128
|
error: l,
|
|
2197
2129
|
isLoading: s,
|
|
2198
|
-
mutate:
|
|
2199
|
-
} =
|
|
2130
|
+
mutate: i
|
|
2131
|
+
} = We({
|
|
2200
2132
|
keys: [o == null ? void 0 : o.username],
|
|
2201
2133
|
getAccessToken: t
|
|
2202
2134
|
}), [u, m] = w(!1), [g, y] = w({
|
|
2203
2135
|
loadingLocation: !1
|
|
2204
|
-
}), [p,
|
|
2136
|
+
}), [p, c] = w(""), [f, v] = w(""), [x, k] = w(Tt), [C, b] = Ie({
|
|
2205
2137
|
key: _e + Ct,
|
|
2206
2138
|
initialValue: !1
|
|
2207
2139
|
}), E = (N) => {
|
|
@@ -2209,53 +2141,53 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2209
2141
|
}, I = async (N) => {
|
|
2210
2142
|
N.preventDefault();
|
|
2211
2143
|
try {
|
|
2212
|
-
await
|
|
2144
|
+
await ie({
|
|
2213
2145
|
accessToken: await t(),
|
|
2214
|
-
type:
|
|
2146
|
+
type: ce.SET_USER_PREFERENCES,
|
|
2215
2147
|
params: {
|
|
2216
2148
|
user: o == null ? void 0 : o.username,
|
|
2217
2149
|
instructions: p,
|
|
2218
2150
|
location: f,
|
|
2219
2151
|
engine: x
|
|
2220
2152
|
}
|
|
2221
|
-
}),
|
|
2153
|
+
}), i(), y({
|
|
2222
2154
|
loadingLocation: !1
|
|
2223
2155
|
});
|
|
2224
2156
|
} catch {
|
|
2225
2157
|
}
|
|
2226
|
-
},
|
|
2158
|
+
}, O = async () => {
|
|
2227
2159
|
y({
|
|
2228
2160
|
loadingLocation: !0
|
|
2229
2161
|
}), v("...");
|
|
2230
2162
|
try {
|
|
2231
|
-
const N = Date.now(),
|
|
2163
|
+
const N = Date.now(), M = await St(), Z = await ie({
|
|
2232
2164
|
accessToken: await t(),
|
|
2233
|
-
type:
|
|
2165
|
+
type: ce.GET_LOCATION,
|
|
2234
2166
|
params: {
|
|
2235
|
-
latitude:
|
|
2236
|
-
longitude:
|
|
2167
|
+
latitude: M.latitude,
|
|
2168
|
+
longitude: M.longitude
|
|
2237
2169
|
}
|
|
2238
2170
|
}), q = Date.now() - N;
|
|
2239
|
-
if (q < 2e3 && await new Promise((
|
|
2240
|
-
const { city:
|
|
2171
|
+
if (q < 2e3 && await new Promise((Y) => setTimeout(Y, 2e3 - q)), Z.status === 200) {
|
|
2172
|
+
const { city: Y, state: z, country: ee, displayName: te } = Z.data, W = Y && z && ee ? `${Y}, ${z}, ${ee}` : te;
|
|
2241
2173
|
y({
|
|
2242
2174
|
loadingLocation: !1
|
|
2243
|
-
}), v(
|
|
2175
|
+
}), v(W);
|
|
2244
2176
|
} else
|
|
2245
2177
|
y({
|
|
2246
2178
|
loadingLocation: !1
|
|
2247
2179
|
});
|
|
2248
2180
|
} catch {
|
|
2249
2181
|
}
|
|
2250
|
-
},
|
|
2251
|
-
k(N ?
|
|
2252
|
-
},
|
|
2182
|
+
}, P = (N, M) => {
|
|
2183
|
+
k(N ? M : M === Q ? re : Q);
|
|
2184
|
+
}, L = () => {
|
|
2253
2185
|
m(!u);
|
|
2254
2186
|
}, de = () => {
|
|
2255
|
-
|
|
2187
|
+
i({ ...n }), r(!1);
|
|
2256
2188
|
};
|
|
2257
|
-
return
|
|
2258
|
-
n != null && n.instructions &&
|
|
2189
|
+
return D(() => {
|
|
2190
|
+
n != null && n.instructions && c(n.instructions), n != null && n.location && v(n.location), n != null && n.engine && k(n.engine);
|
|
2259
2191
|
}, [n]), l || s ? null : /* @__PURE__ */ a(
|
|
2260
2192
|
J,
|
|
2261
2193
|
{
|
|
@@ -2269,8 +2201,8 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2269
2201
|
alignHorizontal: "flex-end",
|
|
2270
2202
|
className: "pb-8 sm:pb-0",
|
|
2271
2203
|
children: [
|
|
2272
|
-
/* @__PURE__ */ a(
|
|
2273
|
-
|
|
2204
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
2205
|
+
U,
|
|
2274
2206
|
{
|
|
2275
2207
|
mode: "dark",
|
|
2276
2208
|
variant: "secondary",
|
|
@@ -2279,8 +2211,8 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2279
2211
|
children: "Cancel"
|
|
2280
2212
|
}
|
|
2281
2213
|
) }),
|
|
2282
|
-
/* @__PURE__ */ a(
|
|
2283
|
-
|
|
2214
|
+
/* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
2215
|
+
U,
|
|
2284
2216
|
{
|
|
2285
2217
|
mode: "dark",
|
|
2286
2218
|
variant: "danger",
|
|
@@ -2294,10 +2226,10 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2294
2226
|
]
|
|
2295
2227
|
}
|
|
2296
2228
|
),
|
|
2297
|
-
children: /* @__PURE__ */ h(
|
|
2298
|
-
u && /* @__PURE__ */ a(
|
|
2229
|
+
children: /* @__PURE__ */ h(B, { children: [
|
|
2230
|
+
u && /* @__PURE__ */ a(ha, { open: u, onOpenChange: m }),
|
|
2299
2231
|
/* @__PURE__ */ h(
|
|
2300
|
-
|
|
2232
|
+
H,
|
|
2301
2233
|
{
|
|
2302
2234
|
header: T.SETTINGS_ENGINE.TITLE,
|
|
2303
2235
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2309,7 +2241,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2309
2241
|
noBorder: !0,
|
|
2310
2242
|
label: Q,
|
|
2311
2243
|
name: Q,
|
|
2312
|
-
onChange: (N) =>
|
|
2244
|
+
onChange: (N) => P(N, Q),
|
|
2313
2245
|
checked: x === Q
|
|
2314
2246
|
}
|
|
2315
2247
|
),
|
|
@@ -2320,7 +2252,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2320
2252
|
noBorder: !0,
|
|
2321
2253
|
label: re,
|
|
2322
2254
|
name: re,
|
|
2323
|
-
onChange: (N) =>
|
|
2255
|
+
onChange: (N) => P(N, re),
|
|
2324
2256
|
checked: x === re
|
|
2325
2257
|
}
|
|
2326
2258
|
),
|
|
@@ -2342,16 +2274,16 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2342
2274
|
{
|
|
2343
2275
|
className: "mt-2",
|
|
2344
2276
|
size: "small",
|
|
2345
|
-
onClick:
|
|
2277
|
+
onClick: L,
|
|
2346
2278
|
labelLeft: "Edit Custom Prompts",
|
|
2347
|
-
children: /* @__PURE__ */ a(
|
|
2279
|
+
children: /* @__PURE__ */ a(Dt, { size: "size-3", monotone: !0 })
|
|
2348
2280
|
}
|
|
2349
2281
|
)
|
|
2350
2282
|
]
|
|
2351
2283
|
}
|
|
2352
2284
|
),
|
|
2353
2285
|
/* @__PURE__ */ h(
|
|
2354
|
-
|
|
2286
|
+
H,
|
|
2355
2287
|
{
|
|
2356
2288
|
header: "Custom Instructions",
|
|
2357
2289
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2372,7 +2304,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2372
2304
|
label: "Custom Instructions",
|
|
2373
2305
|
value: p,
|
|
2374
2306
|
onChange: (N) => {
|
|
2375
|
-
|
|
2307
|
+
c(N.target.value);
|
|
2376
2308
|
},
|
|
2377
2309
|
helperText: "Press ENTER to add a new line."
|
|
2378
2310
|
}
|
|
@@ -2381,7 +2313,7 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2381
2313
|
}
|
|
2382
2314
|
),
|
|
2383
2315
|
/* @__PURE__ */ h(
|
|
2384
|
-
|
|
2316
|
+
H,
|
|
2385
2317
|
{
|
|
2386
2318
|
header: "Location",
|
|
2387
2319
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2401,13 +2333,13 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2401
2333
|
}
|
|
2402
2334
|
),
|
|
2403
2335
|
/* @__PURE__ */ a(
|
|
2404
|
-
|
|
2336
|
+
U,
|
|
2405
2337
|
{
|
|
2406
2338
|
className: "mt-2",
|
|
2407
2339
|
size: "small",
|
|
2408
2340
|
noBorder: !0,
|
|
2409
2341
|
disabled: g.loadingLocation,
|
|
2410
|
-
onClick:
|
|
2342
|
+
onClick: O,
|
|
2411
2343
|
children: g.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
2412
2344
|
}
|
|
2413
2345
|
)
|
|
@@ -2417,19 +2349,19 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2417
2349
|
] })
|
|
2418
2350
|
}
|
|
2419
2351
|
);
|
|
2420
|
-
},
|
|
2421
|
-
const { logout: e } = G(), { state: r } = fe(
|
|
2352
|
+
}, xa = () => {
|
|
2353
|
+
const { logout: e } = G(), { state: r } = fe(Ye), [t, o] = w(!1), [n, l] = w(!1), [s, i] = w(!1), [u, m] = w(!1), [g, y] = w(!1), p = () => {
|
|
2422
2354
|
o(!t);
|
|
2423
|
-
},
|
|
2355
|
+
}, c = () => {
|
|
2424
2356
|
l(!n);
|
|
2425
2357
|
}, f = () => {
|
|
2426
|
-
|
|
2358
|
+
i(!s);
|
|
2427
2359
|
}, v = () => {
|
|
2428
2360
|
m(!u);
|
|
2429
2361
|
}, x = () => {
|
|
2430
2362
|
y(!g);
|
|
2431
2363
|
};
|
|
2432
|
-
return /* @__PURE__ */ h(
|
|
2364
|
+
return /* @__PURE__ */ h(B, { children: [
|
|
2433
2365
|
/* @__PURE__ */ a(
|
|
2434
2366
|
et,
|
|
2435
2367
|
{
|
|
@@ -2437,73 +2369,81 @@ const ra = "av-toggle", aa = () => d("peer", "h-6", "w-11", "rounded-full"), oa
|
|
|
2437
2369
|
setShowConfirmation: y,
|
|
2438
2370
|
action: e,
|
|
2439
2371
|
customStrings: {
|
|
2440
|
-
confirmAction:
|
|
2372
|
+
confirmAction: He,
|
|
2441
2373
|
cancelAction: "Cancel",
|
|
2442
|
-
title:
|
|
2374
|
+
title: He
|
|
2443
2375
|
},
|
|
2444
2376
|
children: /* @__PURE__ */ a("p", { children: "Are you sure you want to log out?" })
|
|
2445
2377
|
}
|
|
2446
2378
|
),
|
|
2447
|
-
/* @__PURE__ */ a(
|
|
2448
|
-
/* @__PURE__ */ a(
|
|
2449
|
-
s && /* @__PURE__ */ a(
|
|
2450
|
-
/* @__PURE__ */ a(
|
|
2451
|
-
/* @__PURE__ */ a("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ a(X, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ a(
|
|
2379
|
+
/* @__PURE__ */ a(Pr, { open: t, onOpenChange: o }),
|
|
2380
|
+
/* @__PURE__ */ a(ga, { open: n, onOpenChange: l }),
|
|
2381
|
+
s && /* @__PURE__ */ a(Br, { open: s, onOpenChange: i }),
|
|
2382
|
+
/* @__PURE__ */ a(Rr, { open: u, onOpenChange: m }),
|
|
2383
|
+
/* @__PURE__ */ a("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ a(X, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
2452
2384
|
Vt,
|
|
2453
2385
|
{
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2386
|
+
label: "Profile, Settings, etc.",
|
|
2387
|
+
mode: "light",
|
|
2388
|
+
placement: "left",
|
|
2389
|
+
trigger: /* @__PURE__ */ h(
|
|
2390
|
+
Ut,
|
|
2391
|
+
{
|
|
2392
|
+
mode: "dark",
|
|
2393
|
+
focusMode: "light",
|
|
2394
|
+
trigger: /* @__PURE__ */ a(le, { label: "Settings", children: /* @__PURE__ */ a(lr, {}) }),
|
|
2395
|
+
defaultPlacement: "bottom-end",
|
|
2396
|
+
children: [
|
|
2397
|
+
/* @__PURE__ */ a(
|
|
2398
|
+
oe,
|
|
2399
|
+
{
|
|
2400
|
+
label: "Profile",
|
|
2401
|
+
onClick: p,
|
|
2402
|
+
icon: /* @__PURE__ */ a(nr, {})
|
|
2403
|
+
}
|
|
2404
|
+
),
|
|
2405
|
+
/* @__PURE__ */ a(
|
|
2406
|
+
oe,
|
|
2407
|
+
{
|
|
2408
|
+
label: "Settings",
|
|
2409
|
+
onClick: c,
|
|
2410
|
+
icon: /* @__PURE__ */ a(ir, {})
|
|
2411
|
+
}
|
|
2412
|
+
),
|
|
2413
|
+
/* @__PURE__ */ a(
|
|
2414
|
+
oe,
|
|
2415
|
+
{
|
|
2416
|
+
label: "History",
|
|
2417
|
+
onClick: f,
|
|
2418
|
+
icon: /* @__PURE__ */ a(ar, {})
|
|
2419
|
+
}
|
|
2420
|
+
),
|
|
2421
|
+
/* @__PURE__ */ a(
|
|
2422
|
+
oe,
|
|
2423
|
+
{
|
|
2424
|
+
label: "About",
|
|
2425
|
+
onClick: v,
|
|
2426
|
+
icon: /* @__PURE__ */ a(or, {})
|
|
2427
|
+
}
|
|
2428
|
+
),
|
|
2429
|
+
r && r.id && !r.isComponent && /* @__PURE__ */ h(B, { children: [
|
|
2430
|
+
/* @__PURE__ */ a(Ft, {}),
|
|
2431
|
+
/* @__PURE__ */ a(
|
|
2432
|
+
oe,
|
|
2433
|
+
{
|
|
2434
|
+
label: "Log out",
|
|
2435
|
+
onClick: x,
|
|
2436
|
+
icon: /* @__PURE__ */ a("div", { className: "text-red-700", children: /* @__PURE__ */ a(tr, { monotone: !0 }) })
|
|
2437
|
+
}
|
|
2438
|
+
)
|
|
2439
|
+
] })
|
|
2440
|
+
]
|
|
2441
|
+
}
|
|
2442
|
+
)
|
|
2503
2443
|
}
|
|
2504
2444
|
) }) }) }) }) })
|
|
2505
2445
|
] });
|
|
2506
2446
|
};
|
|
2507
2447
|
export {
|
|
2508
|
-
|
|
2448
|
+
xa as default
|
|
2509
2449
|
};
|