@versini/sassysaint 8.4.9 → 8.4.10
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.CZtGCPv4.js → App.CGaiQZvF.js} +827 -768
- package/dist/chunks/{ChatBubbleAssistant.DEkp-Nxn.js → ChatBubbleAssistant.BjhCY6rx.js} +29 -29
- package/dist/chunks/{J3FDRF32.BMz8FeYZ.js → J3FDRF32.CPDDJOmT.js} +1 -1
- package/dist/chunks/{index.DD_MXTif.js → index.BI_o2s_q.js} +21 -21
- package/dist/chunks/{index.B4bVaXVF.js → index.BJ_JWy-S.js} +1 -1
- package/dist/chunks/{index.CZSseoKv.js → index.DXV4Hh42.js} +3 -3
- package/dist/chunks/{index.Dp9AX3IQ.js → index.DwCt_tqb.js} +1 -1
- package/dist/chunks/{index.Dk-zB1I9.js → index.OKJ5UBcZ.js} +1 -1
- package/dist/chunks/{index.ibJebACv.js → index.Orkeq2XG.js} +2 -2
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -4,12 +4,12 @@ var kn = (e) => {
|
|
4
4
|
var Fr = (e, t, r) => t.has(e) || kn("Cannot " + r);
|
5
5
|
var A = (e, t, r) => (Fr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ue = (e, t, r) => t.has(e) ? kn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), re = (e, t, r, a) => (Fr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), ie = (e, t, r) => (Fr(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as N, Fragment as he } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as Ii, pendingThenable as xn, resolveEnabled as
|
7
|
+
import { Subscribable as Ii, pendingThenable as xn, resolveEnabled as Be, shallowEqualObjects as ia, resolveStaleTime as hr, noop as Ci, isServer as la, isValidTimeout as Tn, focusManager as Si, fetchState as Ni, replaceData as En, notifyManager as Mo, timeUntilStale as Ri, useQueryClient as Ai, I as ne, ACTION_SORT as ca, ACTION_SEARCH as Do, ACTION_RESET_PROMPT as Bo, ACTION_TOGGLE_PROMPT as Po, DEFAULT_AI_PROVIDER as Oi, isElectron as da, isProbablyiPhone as ua, re as Ae, DEFAULT_ICON_ACTION_SIZE as Je, L as wr, j as rt, C as zt, LOCAL_STORAGE_PREFIX as It, LOCAL_STORAGE_PRIVATE_DISCLOSURE as $i, un as Se, PROVIDER_ANTHROPIC as Ur, PROVIDER_OPENAI as In, TOAST_PROVIDER_CHANGED as zo, toastOptions as fa, PROMPT_CLASSNAME as Li, PROMPT_EDITABLE_AREA_CLASSNAME as Mi, ROLE_INTERNAL as ha, ERROR_MESSAGE as Cn, CLIPBOARD_PROMPT as Sn, INPUT_PLACEHOLDER_TEXT as Nn, FOOTER_DISCLAIMER as Di, S as Pe, CARDS as le, renderDataAsList as gr, pluralize as Ka, ABOUT_TITLE as Bi, INFINITE_SCROLL_LIMIT as Rn, INFINITE_SCROLL_THRESHOLD as An, LOCAL_STORAGE_SORT as Vo, TOAST_CHAT_DELETED as Pi, LOCAL_STORAGE_SEARCH as Fo, HISTORY_TITLE as zi, fe as Vi, debounce as Fi, M as Ui, l as On, durationFormatter as Hi, PROFILE_TITLE as ji, LOCAL_STORAGE_CHAT_DETAILS as Gi, SETTINGS_TITLE as Wi, APP_NAME as qi, PROMPTS_DESCRIPTION as Yi, getCurrentGeoLocation as Ji, LOG_OUT as $n, ROLE_USER as Ki, ROLE_ASSISTANT as Ln, getMessageContaintWrapperClass as Qi, UI_FOOTER_BUFFER as Uo, UI_BUTTON_SCROLL_BUFFER as Xi, Logo as Zi, UI_DEFAULT_MAIN_HEIGHT as Mn, getMainPaddingClass as Dn, I$1 as el } from "./index.BI_o2s_q.js";
|
8
8
|
import p from "clsx";
|
9
9
|
import * as te from "react";
|
10
|
-
import V, { useEffect as
|
10
|
+
import V, { useEffect as B, useRef as O, useState as F, useCallback as Y, useSyncExternalStore as Ho, useMemo as Ee, useId as kr, useLayoutEffect as ge, useContext as ee, createContext as jo, useDebugValue as tl, forwardRef as Go, isValidElement as xr, cloneElement as Qa, Fragment as rl, useReducer as Dt, lazy as al, Suspense as nl } from "react";
|
11
11
|
import { useMergeRefs as Xa, FloatingPortal as Wo, FloatingOverlay as ol, FloatingFocusManager as qo, useFloating as Yo, useClick as Jo, useDismiss as Ko, useRole as Qo, useInteractions as Xo, useFloatingTree as Zo, useFloatingNodeId as sl, useListItem as es, offset as il, flip as ll, shift as cl, autoUpdate as dl, useListNavigation as ul, useTypeahead as fl, FloatingNode as hl, FloatingList as ml, FloatingTree as pl } from "@floating-ui/react";
|
12
|
-
var xe, G, Wt, ye, lt, kt, Ze,
|
12
|
+
var xe, G, Wt, ye, lt, kt, Ze, De, qt, xt, Tt, ct, dt, et, Et, X, Bt, ma, pa, ga, ya, ba, va, _a, ts, Lo, gl = (Lo = class extends Ii {
|
13
13
|
constructor(t, r) {
|
14
14
|
super();
|
15
15
|
ue(this, X);
|
@@ -20,7 +20,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
20
20
|
ue(this, lt);
|
21
21
|
ue(this, kt);
|
22
22
|
ue(this, Ze);
|
23
|
-
ue(this,
|
23
|
+
ue(this, De);
|
24
24
|
ue(this, qt);
|
25
25
|
ue(this, xt);
|
26
26
|
// This property keeps track of the last query with defined data.
|
@@ -30,7 +30,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
30
30
|
ue(this, dt);
|
31
31
|
ue(this, et);
|
32
32
|
ue(this, Et, /* @__PURE__ */ new Set());
|
33
|
-
this.options = r, re(this, xe, t), re(this,
|
33
|
+
this.options = r, re(this, xe, t), re(this, De, null), re(this, Ze, xn()), this.options.experimental_prefetchInRender || A(this, Ze).reject(
|
34
34
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
35
35
|
), this.bindMethods(), this.setOptions(r);
|
36
36
|
}
|
@@ -38,7 +38,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
38
38
|
this.refetch = this.refetch.bind(this);
|
39
39
|
}
|
40
40
|
onSubscribe() {
|
41
|
-
this.listeners.size === 1 && (A(this, G).addObserver(this),
|
41
|
+
this.listeners.size === 1 && (A(this, G).addObserver(this), Bn(A(this, G), this.options) ? ie(this, X, Bt).call(this) : this.updateResult(), ie(this, X, ya).call(this));
|
42
42
|
}
|
43
43
|
onUnsubscribe() {
|
44
44
|
this.hasListeners() || this.destroy();
|
@@ -62,7 +62,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
62
62
|
}
|
63
63
|
setOptions(t, r) {
|
64
64
|
const a = this.options, n = A(this, G);
|
65
|
-
if (this.options = A(this, xe).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof
|
65
|
+
if (this.options = A(this, xe).defaultQueryOptions(t), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Be(this.options.enabled, A(this, G)) != "boolean")
|
66
66
|
throw new Error(
|
67
67
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
68
68
|
);
|
@@ -72,14 +72,14 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
72
72
|
observer: this
|
73
73
|
});
|
74
74
|
const o = this.hasListeners();
|
75
|
-
o &&
|
75
|
+
o && Pn(
|
76
76
|
A(this, G),
|
77
77
|
n,
|
78
78
|
this.options,
|
79
79
|
a
|
80
|
-
) && ie(this, X,
|
80
|
+
) && ie(this, X, Bt).call(this), this.updateResult(r), o && (A(this, G) !== n || Be(this.options.enabled, A(this, G)) !== Be(a.enabled, A(this, G)) || hr(this.options.staleTime, A(this, G)) !== hr(a.staleTime, A(this, G))) && ie(this, X, ma).call(this);
|
81
81
|
const s = ie(this, X, pa).call(this);
|
82
|
-
o && (A(this, G) !== n ||
|
82
|
+
o && (A(this, G) !== n || Be(this.options.enabled, A(this, G)) !== Be(a.enabled, A(this, G)) || s !== A(this, et)) && ie(this, X, ga).call(this, s);
|
83
83
|
}
|
84
84
|
getOptimisticResult(t) {
|
85
85
|
const r = A(this, xe).getQueryCache().build(A(this, xe), t), a = this.createResult(r, t);
|
@@ -114,7 +114,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
114
114
|
return a.fetch().then(() => this.createResult(a, r));
|
115
115
|
}
|
116
116
|
fetch(t) {
|
117
|
-
return ie(this, X,
|
117
|
+
return ie(this, X, Bt).call(this, {
|
118
118
|
...t,
|
119
119
|
cancelRefetch: t.cancelRefetch ?? !0
|
120
120
|
}).then(() => (this.updateResult(), A(this, ye)));
|
@@ -122,9 +122,9 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
122
122
|
createResult(t, r) {
|
123
123
|
var b;
|
124
124
|
const a = A(this, G), n = this.options, o = A(this, ye), s = A(this, lt), l = A(this, kt), d = t !== a ? t.state : A(this, Wt), { state: f } = t;
|
125
|
-
let u = { ...f },
|
125
|
+
let u = { ...f }, h = !1, m;
|
126
126
|
if (r._optimisticResults) {
|
127
|
-
const E = this.hasListeners(), R = !E &&
|
127
|
+
const E = this.hasListeners(), R = !E && Bn(t, r), S = E && Pn(t, a, r, n);
|
128
128
|
(R || S) && (u = {
|
129
129
|
...u,
|
130
130
|
...Ni(f.data, t.options)
|
@@ -133,16 +133,16 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
133
133
|
let { error: g, errorUpdatedAt: y, status: v } = u;
|
134
134
|
if (r.select && u.data !== void 0)
|
135
135
|
if (o && u.data === (s == null ? void 0 : s.data) && r.select === A(this, qt))
|
136
|
-
|
136
|
+
m = A(this, xt);
|
137
137
|
else
|
138
138
|
try {
|
139
|
-
re(this, qt, r.select),
|
139
|
+
re(this, qt, r.select), m = r.select(u.data), m = En(o == null ? void 0 : o.data, m, r), re(this, xt, m), re(this, De, null);
|
140
140
|
} catch (E) {
|
141
|
-
re(this,
|
141
|
+
re(this, De, E);
|
142
142
|
}
|
143
143
|
else
|
144
|
-
|
145
|
-
if (r.placeholderData !== void 0 &&
|
144
|
+
m = u.data;
|
145
|
+
if (r.placeholderData !== void 0 && m === void 0 && v === "pending") {
|
146
146
|
let E;
|
147
147
|
if (o != null && o.isPlaceholderData && r.placeholderData === (l == null ? void 0 : l.placeholderData))
|
148
148
|
E = o.data;
|
@@ -151,18 +151,18 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
151
151
|
A(this, Tt)
|
152
152
|
) : r.placeholderData, r.select && E !== void 0)
|
153
153
|
try {
|
154
|
-
E = r.select(E), re(this,
|
154
|
+
E = r.select(E), re(this, De, null);
|
155
155
|
} catch (R) {
|
156
|
-
re(this,
|
156
|
+
re(this, De, R);
|
157
157
|
}
|
158
|
-
E !== void 0 && (v = "success",
|
158
|
+
E !== void 0 && (v = "success", m = En(
|
159
159
|
o == null ? void 0 : o.data,
|
160
160
|
E,
|
161
161
|
r
|
162
|
-
),
|
162
|
+
), h = !0);
|
163
163
|
}
|
164
|
-
A(this,
|
165
|
-
const w = u.fetchStatus === "fetching", _ = v === "pending", T = v === "error", I = _ && w, C =
|
164
|
+
A(this, De) && (g = A(this, De), m = A(this, xt), y = Date.now(), v = "error");
|
165
|
+
const w = u.fetchStatus === "fetching", _ = v === "pending", T = v === "error", I = _ && w, C = m !== void 0, x = {
|
166
166
|
status: v,
|
167
167
|
fetchStatus: u.fetchStatus,
|
168
168
|
isPending: _,
|
@@ -170,7 +170,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
170
170
|
isError: T,
|
171
171
|
isInitialLoading: I,
|
172
172
|
isLoading: I,
|
173
|
-
data:
|
173
|
+
data: m,
|
174
174
|
dataUpdatedAt: u.dataUpdatedAt,
|
175
175
|
error: g,
|
176
176
|
errorUpdatedAt: y,
|
@@ -183,7 +183,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
183
183
|
isRefetching: w && !_,
|
184
184
|
isLoadingError: T && !C,
|
185
185
|
isPaused: u.fetchStatus === "paused",
|
186
|
-
isPlaceholderData:
|
186
|
+
isPlaceholderData: h,
|
187
187
|
isRefetchError: T && C,
|
188
188
|
isStale: Za(t, r),
|
189
189
|
refetch: this.refetch,
|
@@ -234,7 +234,7 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
234
234
|
onQueryUpdate() {
|
235
235
|
this.updateResult(), this.hasListeners() && ie(this, X, ya).call(this);
|
236
236
|
}
|
237
|
-
}, xe = new WeakMap(), G = new WeakMap(), Wt = new WeakMap(), ye = new WeakMap(), lt = new WeakMap(), kt = new WeakMap(), Ze = new WeakMap(),
|
237
|
+
}, xe = new WeakMap(), G = new WeakMap(), Wt = new WeakMap(), ye = new WeakMap(), lt = new WeakMap(), kt = new WeakMap(), Ze = new WeakMap(), De = new WeakMap(), qt = new WeakMap(), xt = new WeakMap(), Tt = new WeakMap(), ct = new WeakMap(), dt = new WeakMap(), et = new WeakMap(), Et = new WeakMap(), X = new WeakSet(), Bt = function(t) {
|
238
238
|
ie(this, X, _a).call(this);
|
239
239
|
let r = A(this, G).fetch(
|
240
240
|
this.options,
|
@@ -256,8 +256,8 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
256
256
|
}, pa = function() {
|
257
257
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(A(this, G)) : this.options.refetchInterval) ?? !1;
|
258
258
|
}, ga = function(t) {
|
259
|
-
ie(this, X, va).call(this), re(this, et, t), !(la ||
|
260
|
-
(this.options.refetchIntervalInBackground || Si.isFocused()) && ie(this, X,
|
259
|
+
ie(this, X, va).call(this), re(this, et, t), !(la || Be(this.options.enabled, A(this, G)) === !1 || !Tn(A(this, et)) || A(this, et) === 0) && re(this, dt, setInterval(() => {
|
260
|
+
(this.options.refetchIntervalInBackground || Si.isFocused()) && ie(this, X, Bt).call(this);
|
261
261
|
}, A(this, et)));
|
262
262
|
}, ya = function() {
|
263
263
|
ie(this, X, ma).call(this), ie(this, X, ga).call(this, ie(this, X, pa).call(this));
|
@@ -282,23 +282,23 @@ var xe, G, Wt, ye, lt, kt, Ze, Be, qt, xt, Tt, ct, dt, et, Et, X, Pt, ma, pa, ga
|
|
282
282
|
});
|
283
283
|
}, Lo);
|
284
284
|
function yl(e, t) {
|
285
|
-
return
|
285
|
+
return Be(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
286
286
|
}
|
287
|
-
function
|
287
|
+
function Bn(e, t) {
|
288
288
|
return yl(e, t) || e.state.data !== void 0 && wa(e, t, t.refetchOnMount);
|
289
289
|
}
|
290
290
|
function wa(e, t, r) {
|
291
|
-
if (
|
291
|
+
if (Be(t.enabled, e) !== !1) {
|
292
292
|
const a = typeof r == "function" ? r(e) : r;
|
293
293
|
return a === "always" || a !== !1 && Za(e, t);
|
294
294
|
}
|
295
295
|
return !1;
|
296
296
|
}
|
297
|
-
function
|
298
|
-
return (e !== t ||
|
297
|
+
function Pn(e, t, r, a) {
|
298
|
+
return (e !== t || Be(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Za(e, r);
|
299
299
|
}
|
300
300
|
function Za(e, t) {
|
301
|
-
return
|
301
|
+
return Be(t.enabled, e) !== !1 && e.isStaleByTime(hr(t.staleTime, e));
|
302
302
|
}
|
303
303
|
function bl(e, t) {
|
304
304
|
return !ia(e.getCurrentResult(), t);
|
@@ -341,13 +341,13 @@ var El = (e, t) => {
|
|
341
341
|
r.clearReset();
|
342
342
|
});
|
343
343
|
function Al(e, t, r) {
|
344
|
-
var u,
|
344
|
+
var u, h, m, g, y;
|
345
345
|
if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
|
346
346
|
throw new Error(
|
347
347
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
348
348
|
);
|
349
349
|
const a = Ai(r), n = _l(), o = xl(), s = a.defaultQueryOptions(e);
|
350
|
-
(
|
350
|
+
(h = (u = a.getDefaultOptions().queries) == null ? void 0 : u._experimental_beforeQuery) == null || h.call(
|
351
351
|
u,
|
352
352
|
s
|
353
353
|
), process.env.NODE_ENV !== "production" && (s.queryFn || console.error(
|
@@ -381,8 +381,8 @@ function Al(e, t, r) {
|
|
381
381
|
suspense: s.suspense
|
382
382
|
}))
|
383
383
|
throw d.error;
|
384
|
-
if ((g = (
|
385
|
-
|
384
|
+
if ((g = (m = a.getDefaultOptions().queries) == null ? void 0 : m._experimental_afterQuery) == null || g.call(
|
385
|
+
m,
|
386
386
|
s,
|
387
387
|
d
|
388
388
|
), s.experimental_prefetchInRender && !la && Nl(d, n)) {
|
@@ -546,7 +546,7 @@ const ka = ({
|
|
546
546
|
/* @__PURE__ */ c("path", { d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7 54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" })
|
547
547
|
]
|
548
548
|
}
|
549
|
-
),
|
549
|
+
), Dl = ({
|
550
550
|
className: e,
|
551
551
|
viewBox: t,
|
552
552
|
title: r,
|
@@ -572,7 +572,7 @@ const ka = ({
|
|
572
572
|
/* @__PURE__ */ c("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.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.5l167.3-167.4z" })
|
573
573
|
]
|
574
574
|
}
|
575
|
-
),
|
575
|
+
), Bl = ({
|
576
576
|
className: e,
|
577
577
|
viewBox: t,
|
578
578
|
title: r,
|
@@ -598,7 +598,7 @@ const ka = ({
|
|
598
598
|
/* @__PURE__ */ c("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" })
|
599
599
|
]
|
600
600
|
}
|
601
|
-
),
|
601
|
+
), Pl = ({
|
602
602
|
className: e,
|
603
603
|
viewBox: t,
|
604
604
|
title: r,
|
@@ -920,13 +920,13 @@ const ka = ({
|
|
920
920
|
}
|
921
921
|
);
|
922
922
|
/*!
|
923
|
-
@versini/ui-header v3.0.
|
923
|
+
@versini/ui-header v3.0.14
|
924
924
|
© 2025 gizmette.com
|
925
925
|
*/
|
926
926
|
try {
|
927
927
|
window.__VERSINI_UI_HEADER__ || (window.__VERSINI_UI_HEADER__ = {
|
928
|
-
version: "3.0.
|
929
|
-
buildTime: "
|
928
|
+
version: "3.0.14",
|
929
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
930
930
|
homepage: "https://github.com/aversini/ui-components",
|
931
931
|
license: "MIT"
|
932
932
|
});
|
@@ -981,7 +981,7 @@ function Xl(e) {
|
|
981
981
|
};
|
982
982
|
}
|
983
983
|
function Zl(e, t) {
|
984
|
-
const { alt: r, ctrl: a, meta: n, mod: o, shift: s, key: l } = e, { altKey: i, ctrlKey: d, metaKey: f, shiftKey: u, key:
|
984
|
+
const { alt: r, ctrl: a, meta: n, mod: o, shift: s, key: l } = e, { altKey: i, ctrlKey: d, metaKey: f, shiftKey: u, key: h } = t;
|
985
985
|
if (r !== i)
|
986
986
|
return !1;
|
987
987
|
if (o) {
|
@@ -989,7 +989,7 @@ function Zl(e, t) {
|
|
989
989
|
return !1;
|
990
990
|
} else if (a !== d || n !== f)
|
991
991
|
return !1;
|
992
|
-
return s !== u ? !1 : !!(l && (
|
992
|
+
return s !== u ? !1 : !!(l && (h.toLowerCase() === l.toLowerCase() || t.code.replace("Key", "").toLowerCase() === l.toLowerCase()));
|
993
993
|
}
|
994
994
|
function as(e) {
|
995
995
|
return (t) => Zl(Xl(e), t);
|
@@ -1006,7 +1006,7 @@ function tc(e, t, r = !1) {
|
|
1006
1006
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
1007
1007
|
}
|
1008
1008
|
function ns(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
1009
|
-
|
1009
|
+
B(() => {
|
1010
1010
|
const a = (n) => {
|
1011
1011
|
e.forEach(
|
1012
1012
|
([o, s, l = { preventDefault: !0 }]) => {
|
@@ -1028,7 +1028,7 @@ function rc() {
|
|
1028
1028
|
}
|
1029
1029
|
function ac() {
|
1030
1030
|
const e = O(!1);
|
1031
|
-
return
|
1031
|
+
return B(() => (e.current = !0, () => {
|
1032
1032
|
e.current = !1;
|
1033
1033
|
}), []), Y(() => e.current, []);
|
1034
1034
|
}
|
@@ -1062,7 +1062,7 @@ function Ct({
|
|
1062
1062
|
}, [t, a]), o = Y(() => {
|
1063
1063
|
a(null);
|
1064
1064
|
}, [a]);
|
1065
|
-
return
|
1065
|
+
return B(() => {
|
1066
1066
|
try {
|
1067
1067
|
Un(e) === null && typeof t < "u" && Fn(e, t);
|
1068
1068
|
} catch (s) {
|
@@ -1087,7 +1087,7 @@ function ss(e) {
|
|
1087
1087
|
a.current && t() && o(i.contentRect);
|
1088
1088
|
}));
|
1089
1089
|
}), [t]);
|
1090
|
-
return
|
1090
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
1091
1091
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
1092
1092
|
}), [s, e]), [a, n];
|
1093
1093
|
}
|
@@ -1095,7 +1095,7 @@ function Ft(e) {
|
|
1095
1095
|
return kr();
|
1096
1096
|
}
|
1097
1097
|
function Hn(e, t) {
|
1098
|
-
|
1098
|
+
B(() => (window.addEventListener(e, t, {
|
1099
1099
|
passive: !0
|
1100
1100
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
1101
1101
|
}
|
@@ -1109,7 +1109,7 @@ function ic() {
|
|
1109
1109
|
height: window.innerHeight || 0
|
1110
1110
|
});
|
1111
1111
|
}, []);
|
1112
|
-
return Hn("resize", r), Hn("orientationchange", r),
|
1112
|
+
return Hn("resize", r), Hn("orientationchange", r), B(r, []), e;
|
1113
1113
|
}
|
1114
1114
|
function lc() {
|
1115
1115
|
const [e, t] = F({
|
@@ -1122,7 +1122,7 @@ function lc() {
|
|
1122
1122
|
height: ((n = window == null ? void 0 : window.visualViewport) == null ? void 0 : n.height) || window.innerHeight || 0
|
1123
1123
|
});
|
1124
1124
|
}, []);
|
1125
|
-
return
|
1125
|
+
return B(() => (r(), window.visualViewport && (window.visualViewport.addEventListener("resize", r, {
|
1126
1126
|
passive: !0
|
1127
1127
|
}), window.visualViewport.addEventListener("orientationchange", r, {
|
1128
1128
|
passive: !0
|
@@ -1131,13 +1131,13 @@ function lc() {
|
|
1131
1131
|
}), [r]), e;
|
1132
1132
|
}
|
1133
1133
|
/*!
|
1134
|
-
@versini/ui-table v3.1.
|
1134
|
+
@versini/ui-table v3.1.11
|
1135
1135
|
© 2025 gizmette.com
|
1136
1136
|
*/
|
1137
1137
|
try {
|
1138
1138
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
1139
|
-
version: "3.1.
|
1140
|
-
buildTime: "03/
|
1139
|
+
version: "3.1.11",
|
1140
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
1141
1141
|
homepage: "https://github.com/aversini/ui-components",
|
1142
1142
|
license: "MIT"
|
1143
1143
|
});
|
@@ -1515,20 +1515,20 @@ const Er = "thead", en = "tfoot", bt = "tbody", ze = {
|
|
1515
1515
|
labelRight: d,
|
1516
1516
|
labelLeft: f,
|
1517
1517
|
noBackground: u,
|
1518
|
-
variant:
|
1519
|
-
noTruncate:
|
1518
|
+
variant: h,
|
1519
|
+
noTruncate: m,
|
1520
1520
|
align: g,
|
1521
1521
|
radius: y,
|
1522
1522
|
animated: v
|
1523
|
-
}) => (
|
1523
|
+
}) => (h || (h = "primary"), r ? p(jn, t) : p(
|
1524
1524
|
jn,
|
1525
1525
|
yc({
|
1526
1526
|
mode: a,
|
1527
|
-
variant:
|
1527
|
+
variant: h,
|
1528
1528
|
noBackground: u,
|
1529
|
-
noTruncate:
|
1529
|
+
noTruncate: m
|
1530
1530
|
}),
|
1531
|
-
bc({ mode: a, noBackground: u, variant:
|
1531
|
+
bc({ mode: a, noBackground: u, variant: h }),
|
1532
1532
|
vc({ radius: y }),
|
1533
1533
|
pc({
|
1534
1534
|
type: e,
|
@@ -1539,10 +1539,10 @@ const Er = "thead", en = "tfoot", bt = "tbody", ze = {
|
|
1539
1539
|
animated: v
|
1540
1540
|
}),
|
1541
1541
|
gc({ type: e, size: l, labelRight: d, labelLeft: f }),
|
1542
|
-
kc({ mode: a, variant:
|
1542
|
+
kc({ mode: a, variant: h, noBorder: i }),
|
1543
1543
|
xc({ focusMode: n }),
|
1544
|
-
_c({ mode: a, variant:
|
1545
|
-
wc({ mode: a, variant:
|
1544
|
+
_c({ mode: a, variant: h, disabled: o }),
|
1545
|
+
wc({ mode: a, variant: h, disabled: o }),
|
1546
1546
|
{
|
1547
1547
|
"w-full": s,
|
1548
1548
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -1570,7 +1570,7 @@ const Er = "thead", en = "tfoot", bt = "tbody", ze = {
|
|
1570
1570
|
ls.displayName = "BaseButton";
|
1571
1571
|
function Sc() {
|
1572
1572
|
const e = O(!1);
|
1573
|
-
return
|
1573
|
+
return B(() => (e.current = !0, () => {
|
1574
1574
|
e.current = !1;
|
1575
1575
|
}), []), Y(() => e.current, []);
|
1576
1576
|
}
|
@@ -1599,7 +1599,7 @@ function Hr(e) {
|
|
1599
1599
|
a.current && t() && o(i.contentRect);
|
1600
1600
|
}));
|
1601
1601
|
}), [t]);
|
1602
|
-
return
|
1602
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
1603
1603
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
1604
1604
|
}), [s, e]), [a, n];
|
1605
1605
|
}
|
@@ -1631,8 +1631,8 @@ const Ac = {
|
|
1631
1631
|
"aria-label": d,
|
1632
1632
|
label: f,
|
1633
1633
|
size: u = "medium",
|
1634
|
-
labelRight:
|
1635
|
-
labelLeft:
|
1634
|
+
labelRight: h,
|
1635
|
+
labelLeft: m,
|
1636
1636
|
noBackground: g = !1,
|
1637
1637
|
align: y = "center",
|
1638
1638
|
radius: v = "large",
|
@@ -1651,24 +1651,24 @@ const Ac = {
|
|
1651
1651
|
className: o,
|
1652
1652
|
noBorder: i,
|
1653
1653
|
size: u,
|
1654
|
-
labelRight:
|
1655
|
-
labelLeft:
|
1654
|
+
labelRight: h,
|
1655
|
+
labelLeft: m,
|
1656
1656
|
noBackground: g,
|
1657
1657
|
align: y,
|
1658
1658
|
radius: v,
|
1659
1659
|
variant: w,
|
1660
1660
|
animated: T
|
1661
|
-
}), x = Tc({ mode: r, raw: l, iconClassName: _ }), b = Ec({ animated: T }), [E, R] = Hr(), [S, L] = Hr(), [$, M] = Hr(), U = O(0),
|
1661
|
+
}), x = Tc({ mode: r, raw: l, iconClassName: _ }), b = Ec({ animated: T }), [E, R] = Hr(), [S, L] = Hr(), [$, M] = Hr(), U = O(0), D = O(null), W = Nc([C, D]);
|
1662
1662
|
return ge(() => {
|
1663
1663
|
$ && $.current && T && (U.current = M.width + Oc[u] + (i ? 0 : $c));
|
1664
1664
|
}, [M, $, u, i, T]), ge(() => {
|
1665
|
-
|
1665
|
+
D && D.current && T && (h && E && R.width > 0 ? (E.current && (E.current.style.opacity = "100"), D.current.style.width = `${R.width + U.current}px`) : m && L.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${L.width + U.current}px`) : (E.current && (E.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Ac[u]}px`));
|
1666
1666
|
}, [
|
1667
1667
|
R,
|
1668
|
-
|
1668
|
+
h,
|
1669
1669
|
E,
|
1670
1670
|
L,
|
1671
|
-
|
1671
|
+
m,
|
1672
1672
|
S,
|
1673
1673
|
u,
|
1674
1674
|
T
|
@@ -1685,7 +1685,7 @@ const Ac = {
|
|
1685
1685
|
/* @__PURE__ */ c(
|
1686
1686
|
Gn,
|
1687
1687
|
{
|
1688
|
-
label:
|
1688
|
+
label: m,
|
1689
1689
|
labelRef: S,
|
1690
1690
|
labelClass: b,
|
1691
1691
|
labelInnerClass: "pr-2"
|
@@ -1695,7 +1695,7 @@ const Ac = {
|
|
1695
1695
|
/* @__PURE__ */ c(
|
1696
1696
|
Gn,
|
1697
1697
|
{
|
1698
|
-
label:
|
1698
|
+
label: h,
|
1699
1699
|
labelRef: E,
|
1700
1700
|
labelClass: b,
|
1701
1701
|
labelInnerClass: "pl-2"
|
@@ -1713,13 +1713,13 @@ const Ac = {
|
|
1713
1713
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
1714
1714
|
cs.displayName = "ButtonIcon";
|
1715
1715
|
/*!
|
1716
|
-
@versini/ui-button v4.2.
|
1716
|
+
@versini/ui-button v4.2.11
|
1717
1717
|
© 2025 gizmette.com
|
1718
1718
|
*/
|
1719
1719
|
try {
|
1720
1720
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
1721
|
-
version: "4.2.
|
1722
|
-
buildTime: "03/
|
1721
|
+
version: "4.2.11",
|
1722
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
1723
1723
|
homepage: "https://github.com/aversini/ui-components",
|
1724
1724
|
license: "MIT"
|
1725
1725
|
});
|
@@ -1776,32 +1776,32 @@ const tn = ({
|
|
1776
1776
|
...i
|
1777
1777
|
}) => {
|
1778
1778
|
const d = p(o, a);
|
1779
|
-
return /* @__PURE__ */
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
|
1790
|
-
|
1791
|
-
children:
|
1792
|
-
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1779
|
+
return /* @__PURE__ */ c(he, { children: /* @__PURE__ */ N(
|
1780
|
+
"svg",
|
1781
|
+
{
|
1782
|
+
xmlns: "http://www.w3.org/2000/svg",
|
1783
|
+
className: d,
|
1784
|
+
viewBox: r || n,
|
1785
|
+
fill: t || "currentColor",
|
1786
|
+
role: "img",
|
1787
|
+
"aria-hidden": !l,
|
1788
|
+
focusable: !1,
|
1789
|
+
...i,
|
1790
|
+
children: [
|
1791
|
+
s && l && /* @__PURE__ */ c("title", { children: s }),
|
1792
|
+
e
|
1793
|
+
]
|
1794
|
+
}
|
1795
|
+
) });
|
1796
1796
|
};
|
1797
1797
|
/*!
|
1798
|
-
@versini/ui-svgicon v4.
|
1798
|
+
@versini/ui-svgicon v4.1.1
|
1799
1799
|
© 2025 gizmette.com
|
1800
1800
|
*/
|
1801
1801
|
try {
|
1802
1802
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
1803
|
-
version: "4.
|
1804
|
-
buildTime: "
|
1803
|
+
version: "4.1.1",
|
1804
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
1805
1805
|
homepage: "https://github.com/aversini/ui-components",
|
1806
1806
|
license: "MIT"
|
1807
1807
|
});
|
@@ -1859,7 +1859,7 @@ const Lc = ({
|
|
1859
1859
|
/* @__PURE__ */ c("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
|
1860
1860
|
]
|
1861
1861
|
}
|
1862
|
-
),
|
1862
|
+
), Dc = ({
|
1863
1863
|
className: e,
|
1864
1864
|
viewBox: t,
|
1865
1865
|
title: r,
|
@@ -1887,13 +1887,13 @@ const Lc = ({
|
|
1887
1887
|
}
|
1888
1888
|
);
|
1889
1889
|
/*!
|
1890
|
-
@versini/ui-icons v4.
|
1890
|
+
@versini/ui-icons v4.8.1
|
1891
1891
|
© 2025 gizmette.com
|
1892
1892
|
*/
|
1893
1893
|
try {
|
1894
1894
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
1895
|
-
version: "4.
|
1896
|
-
buildTime: "
|
1895
|
+
version: "4.8.1",
|
1896
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
1897
1897
|
homepage: "https://github.com/aversini/ui-components",
|
1898
1898
|
license: "MIT"
|
1899
1899
|
});
|
@@ -1905,7 +1905,7 @@ const Ot = V.createContext({
|
|
1905
1905
|
stickyHeader: !1,
|
1906
1906
|
stickyFooter: !1,
|
1907
1907
|
compact: !1
|
1908
|
-
}),
|
1908
|
+
}), Bc = ({
|
1909
1909
|
children: e,
|
1910
1910
|
mode: t = "system",
|
1911
1911
|
caption: r,
|
@@ -1944,7 +1944,7 @@ const Ot = V.createContext({
|
|
1944
1944
|
)
|
1945
1945
|
}
|
1946
1946
|
);
|
1947
|
-
},
|
1947
|
+
}, Pc = ({
|
1948
1948
|
children: e,
|
1949
1949
|
className: t,
|
1950
1950
|
...r
|
@@ -2013,7 +2013,7 @@ const Ot = V.createContext({
|
|
2013
2013
|
cellId: f,
|
2014
2014
|
...u
|
2015
2015
|
}) => {
|
2016
|
-
const
|
2016
|
+
const h = mc({ buttonClassName: r });
|
2017
2017
|
return /* @__PURE__ */ c(
|
2018
2018
|
Re,
|
2019
2019
|
{
|
@@ -2026,7 +2026,7 @@ const Ot = V.createContext({
|
|
2026
2026
|
ds,
|
2027
2027
|
{
|
2028
2028
|
active: d === f,
|
2029
|
-
className:
|
2029
|
+
className: h,
|
2030
2030
|
onClick: l,
|
2031
2031
|
align: e,
|
2032
2032
|
noBorder: !0,
|
@@ -2034,7 +2034,7 @@ const Ot = V.createContext({
|
|
2034
2034
|
mode: s,
|
2035
2035
|
fullWidth: !0,
|
2036
2036
|
labelRight: t,
|
2037
|
-
children: i === ze.ASC && d === f ? /* @__PURE__ */ c(
|
2037
|
+
children: i === ze.ASC && d === f ? /* @__PURE__ */ c(Dc, { className: "size-4", monotone: !0 }) : i === ze.DESC && d === f ? /* @__PURE__ */ c(Mc, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Lc, { className: "size-4", monotone: !0 })
|
2038
2038
|
}
|
2039
2039
|
)
|
2040
2040
|
}
|
@@ -2125,7 +2125,7 @@ const Vt = "FOOTER_BOTTOM", Ea = "FOOTER_TOP", mr = "APP_SET_FOOTER_POSITION", u
|
|
2125
2125
|
}
|
2126
2126
|
}, Yc = (e, t) => {
|
2127
2127
|
switch (t == null ? void 0 : t.type) {
|
2128
|
-
case
|
2128
|
+
case Do:
|
2129
2129
|
return {
|
2130
2130
|
searchString: t.payload.searchString,
|
2131
2131
|
sortedCell: e.sortedCell,
|
@@ -2142,12 +2142,12 @@ const Vt = "FOOTER_BOTTOM", Ea = "FOOTER_TOP", mr = "APP_SET_FOOTER_POSITION", u
|
|
2142
2142
|
}
|
2143
2143
|
}, Jc = (e, t) => {
|
2144
2144
|
switch (t == null ? void 0 : t.type) {
|
2145
|
-
case
|
2145
|
+
case Po:
|
2146
2146
|
return {
|
2147
2147
|
prompt: t.payload.prompt,
|
2148
2148
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
2149
2149
|
};
|
2150
|
-
case
|
2150
|
+
case Bo:
|
2151
2151
|
return {
|
2152
2152
|
prompt: "",
|
2153
2153
|
lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
|
@@ -2573,41 +2573,41 @@ function sd() {
|
|
2573
2573
|
const f = JSON.parse(l, i);
|
2574
2574
|
if (f === null || typeof f != "object")
|
2575
2575
|
return f;
|
2576
|
-
const u = d && d.protoAction || "error",
|
2577
|
-
if (u === "ignore" &&
|
2576
|
+
const u = d && d.protoAction || "error", h = d && d.constructorAction || "error";
|
2577
|
+
if (u === "ignore" && h === "ignore")
|
2578
2578
|
return f;
|
2579
|
-
if (u !== "ignore" &&
|
2579
|
+
if (u !== "ignore" && h !== "ignore") {
|
2580
2580
|
if (t.test(l) === !1 && r.test(l) === !1)
|
2581
2581
|
return f;
|
2582
|
-
} else if (u !== "ignore" &&
|
2582
|
+
} else if (u !== "ignore" && h === "ignore") {
|
2583
2583
|
if (t.test(l) === !1)
|
2584
2584
|
return f;
|
2585
2585
|
} else if (r.test(l) === !1)
|
2586
2586
|
return f;
|
2587
|
-
return n(f, { protoAction: u, constructorAction:
|
2587
|
+
return n(f, { protoAction: u, constructorAction: h, safe: d && d.safe });
|
2588
2588
|
}
|
2589
2589
|
function n(l, { protoAction: i = "error", constructorAction: d = "error", safe: f } = {}) {
|
2590
2590
|
let u = [l];
|
2591
2591
|
for (; u.length; ) {
|
2592
|
-
const
|
2592
|
+
const h = u;
|
2593
2593
|
u = [];
|
2594
|
-
for (const
|
2595
|
-
if (i !== "ignore" && Object.prototype.hasOwnProperty.call(
|
2594
|
+
for (const m of h) {
|
2595
|
+
if (i !== "ignore" && Object.prototype.hasOwnProperty.call(m, "__proto__")) {
|
2596
2596
|
if (f === !0)
|
2597
2597
|
return null;
|
2598
2598
|
if (i === "error")
|
2599
2599
|
throw new SyntaxError("Object contains forbidden prototype property");
|
2600
|
-
delete
|
2600
|
+
delete m.__proto__;
|
2601
2601
|
}
|
2602
|
-
if (d !== "ignore" && Object.prototype.hasOwnProperty.call(
|
2602
|
+
if (d !== "ignore" && Object.prototype.hasOwnProperty.call(m, "constructor") && Object.prototype.hasOwnProperty.call(m.constructor, "prototype")) {
|
2603
2603
|
if (f === !0)
|
2604
2604
|
return null;
|
2605
2605
|
if (d === "error")
|
2606
2606
|
throw new SyntaxError("Object contains forbidden prototype property");
|
2607
|
-
delete
|
2607
|
+
delete m.constructor;
|
2608
2608
|
}
|
2609
|
-
for (const g in
|
2610
|
-
const y =
|
2609
|
+
for (const g in m) {
|
2610
|
+
const y = m[g];
|
2611
2611
|
y && typeof y == "object" && u.push(y);
|
2612
2612
|
}
|
2613
2613
|
}
|
@@ -3181,15 +3181,15 @@ var Ld = nn.map((e) => e.code), Md = (e) => {
|
|
3181
3181
|
throw new Error(`Failed to parse stream string. Invalid code ${r}.`);
|
3182
3182
|
const a = r, n = e.slice(t + 1), o = JSON.parse(n);
|
3183
3183
|
return $d[a].parse(o);
|
3184
|
-
},
|
3185
|
-
function
|
3184
|
+
}, Dd = 10;
|
3185
|
+
function Bd(e, t) {
|
3186
3186
|
const r = new Uint8Array(t);
|
3187
3187
|
let a = 0;
|
3188
3188
|
for (const n of e)
|
3189
3189
|
r.set(n, a), a += n.length;
|
3190
3190
|
return e.length = 0, r;
|
3191
3191
|
}
|
3192
|
-
async function
|
3192
|
+
async function Pd({
|
3193
3193
|
stream: e,
|
3194
3194
|
onTextPart: t,
|
3195
3195
|
onReasoningPart: r,
|
@@ -3202,8 +3202,8 @@ async function Dd({
|
|
3202
3202
|
onToolCallDeltaPart: d,
|
3203
3203
|
onToolCallPart: f,
|
3204
3204
|
onToolResultPart: u,
|
3205
|
-
onMessageAnnotationsPart:
|
3206
|
-
onFinishMessagePart:
|
3205
|
+
onMessageAnnotationsPart: h,
|
3206
|
+
onFinishMessagePart: m,
|
3207
3207
|
onFinishStepPart: g,
|
3208
3208
|
onStartStepPart: y
|
3209
3209
|
}) {
|
@@ -3211,11 +3211,11 @@ async function Dd({
|
|
3211
3211
|
let T = 0;
|
3212
3212
|
for (; ; ) {
|
3213
3213
|
const { value: I } = await v.read();
|
3214
|
-
if (I && (_.push(I), T += I.length, I[I.length - 1] !==
|
3214
|
+
if (I && (_.push(I), T += I.length, I[I.length - 1] !== Dd))
|
3215
3215
|
continue;
|
3216
3216
|
if (_.length === 0)
|
3217
3217
|
break;
|
3218
|
-
const C =
|
3218
|
+
const C = Bd(_, T);
|
3219
3219
|
T = 0;
|
3220
3220
|
const k = w.decode(C, { stream: !0 }).split(`
|
3221
3221
|
`).filter((x) => x !== "").map(Md);
|
@@ -3243,7 +3243,7 @@ async function Dd({
|
|
3243
3243
|
await (l == null ? void 0 : l(b));
|
3244
3244
|
break;
|
3245
3245
|
case "message_annotations":
|
3246
|
-
await (
|
3246
|
+
await (h == null ? void 0 : h(b));
|
3247
3247
|
break;
|
3248
3248
|
case "tool_call_streaming_start":
|
3249
3249
|
await (i == null ? void 0 : i(b));
|
@@ -3258,7 +3258,7 @@ async function Dd({
|
|
3258
3258
|
await (u == null ? void 0 : u(b));
|
3259
3259
|
break;
|
3260
3260
|
case "finish_message":
|
3261
|
-
await (
|
3261
|
+
await (m == null ? void 0 : m(b));
|
3262
3262
|
break;
|
3263
3263
|
case "finish_step":
|
3264
3264
|
await (g == null ? void 0 : g(b));
|
@@ -3296,7 +3296,7 @@ async function zd({
|
|
3296
3296
|
content: "",
|
3297
3297
|
parts: []
|
3298
3298
|
};
|
3299
|
-
let
|
3299
|
+
let h, m, g;
|
3300
3300
|
function y(k, x) {
|
3301
3301
|
const b = u.parts.find(
|
3302
3302
|
(E) => E.type === "tool-invocation" && E.toolInvocation.toolCallId === k
|
@@ -3334,31 +3334,31 @@ async function zd({
|
|
3334
3334
|
replaceLastMessage: d
|
3335
3335
|
});
|
3336
3336
|
}
|
3337
|
-
await
|
3337
|
+
await Pd({
|
3338
3338
|
stream: e,
|
3339
3339
|
onTextPart(k) {
|
3340
|
-
|
3340
|
+
h == null ? (h = {
|
3341
3341
|
type: "text",
|
3342
3342
|
text: k
|
3343
|
-
}, u.parts.push(
|
3343
|
+
}, u.parts.push(h)) : h.text += k, u.content += k, C();
|
3344
3344
|
},
|
3345
3345
|
onReasoningPart(k) {
|
3346
3346
|
var x;
|
3347
|
-
g == null ? (g = { type: "text", text: k },
|
3347
|
+
g == null ? (g = { type: "text", text: k }, m != null && m.details.push(g)) : g.text += k, m == null ? (m = {
|
3348
3348
|
type: "reasoning",
|
3349
3349
|
reasoning: k,
|
3350
3350
|
details: [g]
|
3351
|
-
}, u.parts.push(
|
3351
|
+
}, u.parts.push(m)) : m.reasoning += k, u.reasoning = ((x = u.reasoning) != null ? x : "") + k, C();
|
3352
3352
|
},
|
3353
3353
|
onReasoningSignaturePart(k) {
|
3354
3354
|
g != null && (g.signature = k.signature);
|
3355
3355
|
},
|
3356
3356
|
onRedactedReasoningPart(k) {
|
3357
|
-
|
3357
|
+
m == null && (m = {
|
3358
3358
|
type: "reasoning",
|
3359
3359
|
reasoning: "",
|
3360
3360
|
details: []
|
3361
|
-
}, u.parts.push(
|
3361
|
+
}, u.parts.push(m)), m.details.push({
|
3362
3362
|
type: "redacted",
|
3363
3363
|
data: k.data
|
3364
3364
|
}), g = void 0, C();
|
@@ -3441,7 +3441,7 @@ async function zd({
|
|
3441
3441
|
w == null ? w = [...k] : w.push(...k), C();
|
3442
3442
|
},
|
3443
3443
|
onFinishStepPart(k) {
|
3444
|
-
f += 1,
|
3444
|
+
f += 1, h = k.isContinued ? h : void 0, m = void 0, g = void 0;
|
3445
3445
|
},
|
3446
3446
|
onStartStepPart(k) {
|
3447
3447
|
d || (u.id = k.messageId);
|
@@ -3508,11 +3508,11 @@ async function Hd({
|
|
3508
3508
|
onFinish: d,
|
3509
3509
|
onToolCall: f,
|
3510
3510
|
generateId: u,
|
3511
|
-
fetch:
|
3512
|
-
lastMessage:
|
3511
|
+
fetch: h = Ud(),
|
3512
|
+
lastMessage: m
|
3513
3513
|
}) {
|
3514
3514
|
var g, y;
|
3515
|
-
const v = await
|
3515
|
+
const v = await h(e, {
|
3516
3516
|
method: "POST",
|
3517
3517
|
body: JSON.stringify(t),
|
3518
3518
|
headers: {
|
@@ -3550,7 +3550,7 @@ async function Hd({
|
|
3550
3550
|
await zd({
|
3551
3551
|
stream: v.body,
|
3552
3552
|
update: i,
|
3553
|
-
lastMessage:
|
3553
|
+
lastMessage: m,
|
3554
3554
|
onToolCall: f,
|
3555
3555
|
onFinish({ message: w, finishReason: _, usage: T }) {
|
3556
3556
|
d && w != null && d(w, { usage: T, finishReason: _ });
|
@@ -3707,17 +3707,17 @@ function qd() {
|
|
3707
3707
|
if (Xn) return qr;
|
3708
3708
|
Xn = 1;
|
3709
3709
|
var e = V;
|
3710
|
-
function t(u,
|
3711
|
-
return u ===
|
3710
|
+
function t(u, h) {
|
3711
|
+
return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
|
3712
3712
|
}
|
3713
3713
|
var r = typeof Object.is == "function" ? Object.is : t, a = e.useState, n = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
|
3714
|
-
function l(u,
|
3715
|
-
var
|
3714
|
+
function l(u, h) {
|
3715
|
+
var m = h(), g = a({ inst: { value: m, getSnapshot: h } }), y = g[0].inst, v = g[1];
|
3716
3716
|
return o(
|
3717
3717
|
function() {
|
3718
|
-
y.value =
|
3718
|
+
y.value = m, y.getSnapshot = h, i(y) && v({ inst: y });
|
3719
3719
|
},
|
3720
|
-
[u,
|
3720
|
+
[u, m, h]
|
3721
3721
|
), n(
|
3722
3722
|
function() {
|
3723
3723
|
return i(y) && v({ inst: y }), u(function() {
|
@@ -3725,20 +3725,20 @@ function qd() {
|
|
3725
3725
|
});
|
3726
3726
|
},
|
3727
3727
|
[u]
|
3728
|
-
), s(
|
3728
|
+
), s(m), m;
|
3729
3729
|
}
|
3730
3730
|
function i(u) {
|
3731
|
-
var
|
3731
|
+
var h = u.getSnapshot;
|
3732
3732
|
u = u.value;
|
3733
3733
|
try {
|
3734
|
-
var
|
3735
|
-
return !r(u,
|
3734
|
+
var m = h();
|
3735
|
+
return !r(u, m);
|
3736
3736
|
} catch {
|
3737
3737
|
return !0;
|
3738
3738
|
}
|
3739
3739
|
}
|
3740
|
-
function d(u,
|
3741
|
-
return
|
3740
|
+
function d(u, h) {
|
3741
|
+
return h();
|
3742
3742
|
}
|
3743
3743
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : l;
|
3744
3744
|
return qr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, qr;
|
@@ -3756,10 +3756,10 @@ var Yr = {};
|
|
3756
3756
|
var Zn;
|
3757
3757
|
function Yd() {
|
3758
3758
|
return Zn || (Zn = 1, process.env.NODE_ENV !== "production" && function() {
|
3759
|
-
function e(
|
3760
|
-
return
|
3759
|
+
function e(m, g) {
|
3760
|
+
return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
|
3761
3761
|
}
|
3762
|
-
function t(
|
3762
|
+
function t(m, g) {
|
3763
3763
|
f || n.startTransition === void 0 || (f = !0, console.error(
|
3764
3764
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
3765
3765
|
));
|
@@ -3778,32 +3778,32 @@ function Yd() {
|
|
3778
3778
|
function() {
|
3779
3779
|
w.value = y, w.getSnapshot = g, r(w) && _({ inst: w });
|
3780
3780
|
},
|
3781
|
-
[
|
3781
|
+
[m, y, g]
|
3782
3782
|
), l(
|
3783
3783
|
function() {
|
3784
|
-
return r(w) && _({ inst: w }),
|
3784
|
+
return r(w) && _({ inst: w }), m(function() {
|
3785
3785
|
r(w) && _({ inst: w });
|
3786
3786
|
});
|
3787
3787
|
},
|
3788
|
-
[
|
3788
|
+
[m]
|
3789
3789
|
), d(y), y;
|
3790
3790
|
}
|
3791
|
-
function r(
|
3792
|
-
var g =
|
3793
|
-
|
3791
|
+
function r(m) {
|
3792
|
+
var g = m.getSnapshot;
|
3793
|
+
m = m.value;
|
3794
3794
|
try {
|
3795
3795
|
var y = g();
|
3796
|
-
return !o(
|
3796
|
+
return !o(m, y);
|
3797
3797
|
} catch {
|
3798
3798
|
return !0;
|
3799
3799
|
}
|
3800
3800
|
}
|
3801
|
-
function a(
|
3801
|
+
function a(m, g) {
|
3802
3802
|
return g();
|
3803
3803
|
}
|
3804
3804
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
3805
|
-
var n = V, o = typeof Object.is == "function" ? Object.is : e, s = n.useState, l = n.useEffect, i = n.useLayoutEffect, d = n.useDebugValue, f = !1, u = !1,
|
3806
|
-
Yr.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore :
|
3805
|
+
var n = V, o = typeof Object.is == "function" ? Object.is : e, s = n.useState, l = n.useEffect, i = n.useLayoutEffect, d = n.useDebugValue, f = !1, u = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
|
3806
|
+
Yr.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
3807
3807
|
}()), Yr;
|
3808
3808
|
}
|
3809
3809
|
var eo;
|
@@ -3840,7 +3840,7 @@ const qe = /* @__PURE__ */ new WeakMap(), tt = () => {
|
|
3840
3840
|
), Aa = Object, q = (e) => e === be, Ve = (e) => typeof e == "function", nt = (e, t) => ({
|
3841
3841
|
...e,
|
3842
3842
|
...t
|
3843
|
-
}), Ms = (e) => Ve(e.then), Jr = {}, or = {}, on = "undefined", Jt = typeof window != on, Oa = typeof document != on, Qd = Jt && "Deno" in window, Xd = () => Jt && typeof window.requestAnimationFrame != on,
|
3843
|
+
}), Ms = (e) => Ve(e.then), Jr = {}, or = {}, on = "undefined", Jt = typeof window != on, Oa = typeof document != on, Qd = Jt && "Deno" in window, Xd = () => Jt && typeof window.requestAnimationFrame != on, Ds = (e, t) => {
|
3844
3844
|
const r = qe.get(e);
|
3845
3845
|
return [
|
3846
3846
|
// Getter
|
@@ -3885,26 +3885,26 @@ const Zd = () => $a, [La, Ma] = Jt && window.addEventListener ? [
|
|
3885
3885
|
}, nu = {
|
3886
3886
|
initFocus: tu,
|
3887
3887
|
initReconnect: ru
|
3888
|
-
}, ao = !V.useId, Ut = !Jt || Qd, ou = (e) => Xd() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Kr = Ut ?
|
3888
|
+
}, ao = !V.useId, Ut = !Jt || Qd, ou = (e) => Xd() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Kr = Ut ? B : ge, Qr = typeof navigator < "u" && navigator.connection, no = !Ut && Qr && ([
|
3889
3889
|
"slow-2g",
|
3890
3890
|
"2g"
|
3891
3891
|
].includes(Qr.effectiveType) || Qr.saveData), sr = /* @__PURE__ */ new WeakMap(), Xr = (e, t) => Aa.prototype.toString.call(e) === `[object ${t}]`;
|
3892
3892
|
let su = 0;
|
3893
|
-
const
|
3893
|
+
const Da = (e) => {
|
3894
3894
|
const t = typeof e, r = Xr(e, "Date"), a = Xr(e, "RegExp"), n = Xr(e, "Object");
|
3895
3895
|
let o, s;
|
3896
3896
|
if (Aa(e) === e && !r && !a) {
|
3897
3897
|
if (o = sr.get(e), o) return o;
|
3898
3898
|
if (o = ++su + "~", sr.set(e, o), Array.isArray(e)) {
|
3899
3899
|
for (o = "@", s = 0; s < e.length; s++)
|
3900
|
-
o +=
|
3900
|
+
o += Da(e[s]) + ",";
|
3901
3901
|
sr.set(e, o);
|
3902
3902
|
}
|
3903
3903
|
if (n) {
|
3904
3904
|
o = "#";
|
3905
3905
|
const l = Aa.keys(e).sort();
|
3906
3906
|
for (; !q(s = l.pop()); )
|
3907
|
-
q(e[s]) || (o += s + ":" +
|
3907
|
+
q(e[s]) || (o += s + ":" + Da(e[s]) + ",");
|
3908
3908
|
sr.set(e, o);
|
3909
3909
|
}
|
3910
3910
|
} else
|
@@ -3918,14 +3918,14 @@ const Ba = (e) => {
|
|
3918
3918
|
e = "";
|
3919
3919
|
}
|
3920
3920
|
const t = e;
|
3921
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
3921
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Da(e) : "", [
|
3922
3922
|
e,
|
3923
3923
|
t
|
3924
3924
|
];
|
3925
3925
|
};
|
3926
3926
|
let iu = 0;
|
3927
|
-
const
|
3928
|
-
async function
|
3927
|
+
const Ba = () => ++iu;
|
3928
|
+
async function Bs(...e) {
|
3929
3929
|
const [t, r, a, n] = e, o = nt({
|
3930
3930
|
populateCache: !0,
|
3931
3931
|
throwOnError: !0
|
@@ -3935,27 +3935,27 @@ async function Ps(...e) {
|
|
3935
3935
|
let s = o.populateCache;
|
3936
3936
|
const l = o.rollbackOnError;
|
3937
3937
|
let i = o.optimisticData;
|
3938
|
-
const d = (
|
3938
|
+
const d = (h) => typeof l == "function" ? l(h) : l !== !1, f = o.throwOnError;
|
3939
3939
|
if (Ve(r)) {
|
3940
|
-
const
|
3940
|
+
const h = r, m = [], g = t.keys();
|
3941
3941
|
for (const y of g)
|
3942
3942
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
3943
|
-
!/^\$(inf|sub)\$/.test(y) &&
|
3944
|
-
return Promise.all(
|
3943
|
+
!/^\$(inf|sub)\$/.test(y) && h(t.get(y)._k) && m.push(y);
|
3944
|
+
return Promise.all(m.map(u));
|
3945
3945
|
}
|
3946
3946
|
return u(r);
|
3947
|
-
async function u(
|
3948
|
-
const [
|
3949
|
-
if (!
|
3950
|
-
const [g, y] =
|
3951
|
-
const $ = v[
|
3952
|
-
return (Ve(o.revalidate) ? o.revalidate(g().data,
|
3947
|
+
async function u(h) {
|
3948
|
+
const [m] = sn(h);
|
3949
|
+
if (!m) return;
|
3950
|
+
const [g, y] = Ds(t, m), [v, w, _, T] = qe.get(t), I = () => {
|
3951
|
+
const $ = v[m];
|
3952
|
+
return (Ve(o.revalidate) ? o.revalidate(g().data, h) : o.revalidate !== !1) && (delete _[m], delete T[m], $ && $[0]) ? $[0](Ls).then(() => g().data) : g().data;
|
3953
3953
|
};
|
3954
3954
|
if (e.length < 3)
|
3955
3955
|
return I();
|
3956
3956
|
let C = a, k;
|
3957
|
-
const x =
|
3958
|
-
w[
|
3957
|
+
const x = Ba();
|
3958
|
+
w[m] = [
|
3959
3959
|
x,
|
3960
3960
|
0
|
3961
3961
|
];
|
@@ -3972,7 +3972,7 @@ async function Ps(...e) {
|
|
3972
3972
|
if (C && Ms(C))
|
3973
3973
|
if (C = await C.catch(($) => {
|
3974
3974
|
k = $;
|
3975
|
-
}), x !== w[
|
3975
|
+
}), x !== w[m][0]) {
|
3976
3976
|
if (k) throw k;
|
3977
3977
|
return C;
|
3978
3978
|
} else k && b && d(k) && (s = !0, y({
|
@@ -3993,7 +3993,7 @@ async function Ps(...e) {
|
|
3993
3993
|
error: be,
|
3994
3994
|
_c: be
|
3995
3995
|
});
|
3996
|
-
if (w[
|
3996
|
+
if (w[m][1] = Ba(), Promise.resolve(I()).then(() => {
|
3997
3997
|
y({
|
3998
3998
|
_c: be
|
3999
3999
|
});
|
@@ -4009,17 +4009,17 @@ const oo = (e, t) => {
|
|
4009
4009
|
e[r][0] && e[r][0](t);
|
4010
4010
|
}, lu = (e, t) => {
|
4011
4011
|
if (!qe.has(e)) {
|
4012
|
-
const r = nt(nu, t), a = {}, n =
|
4012
|
+
const r = nt(nu, t), a = {}, n = Bs.bind(be, e);
|
4013
4013
|
let o = tt;
|
4014
4014
|
const s = {}, l = (f, u) => {
|
4015
|
-
const
|
4016
|
-
return s[f] =
|
4017
|
-
}, i = (f, u,
|
4015
|
+
const h = s[f] || [];
|
4016
|
+
return s[f] = h, h.push(u), () => h.splice(h.indexOf(u), 1);
|
4017
|
+
}, i = (f, u, h) => {
|
4018
4018
|
e.set(f, u);
|
4019
|
-
const
|
4020
|
-
if (
|
4021
|
-
for (const g of
|
4022
|
-
g(u,
|
4019
|
+
const m = s[f];
|
4020
|
+
if (m)
|
4021
|
+
for (const g of m)
|
4022
|
+
g(u, h);
|
4023
4023
|
}, d = () => {
|
4024
4024
|
if (!qe.has(e) && (qe.set(e, [
|
4025
4025
|
a,
|
@@ -4050,7 +4050,7 @@ const oo = (e, t) => {
|
|
4050
4050
|
}, cu = (e, t, r, a, n) => {
|
4051
4051
|
const o = r.errorRetryCount, s = n.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
4052
4052
|
!q(o) && s > o || setTimeout(a, l, n);
|
4053
|
-
}, du = Ra, [
|
4053
|
+
}, du = Ra, [Ps, uu] = lu(/* @__PURE__ */ new Map()), fu = nt(
|
4054
4054
|
{
|
4055
4055
|
// events
|
4056
4056
|
onLoadingSlow: tt,
|
@@ -4071,7 +4071,7 @@ const oo = (e, t) => {
|
|
4071
4071
|
// providers
|
4072
4072
|
compare: du,
|
4073
4073
|
isPaused: () => !1,
|
4074
|
-
cache:
|
4074
|
+
cache: Ps,
|
4075
4075
|
mutate: uu,
|
4076
4076
|
fallback: {}
|
4077
4077
|
},
|
@@ -4095,7 +4095,7 @@ const oo = (e, t) => {
|
|
4095
4095
|
null,
|
4096
4096
|
(e[1] === null ? e[2] : e[1]) || {}
|
4097
4097
|
], vu = () => nt(fu, ee(mu)), _u = (e) => (t, r, a) => e(t, r && ((...o) => {
|
4098
|
-
const [s] = sn(t), [, , , l] = qe.get(
|
4098
|
+
const [s] = sn(t), [, , , l] = qe.get(Ps);
|
4099
4099
|
if (s.startsWith(pu))
|
4100
4100
|
return r(...o);
|
4101
4101
|
const i = l[s];
|
@@ -4137,7 +4137,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4137
4137
|
}), ea = {
|
4138
4138
|
dedupe: !0
|
4139
4139
|
}, Tu = (e, t, r) => {
|
4140
|
-
const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData:
|
4140
|
+
const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, g, y, v] = qe.get(a), [w, _] = sn(e), T = O(!1), I = O(!1), C = O(w), k = O(t), x = O(r), b = () => x.current, E = () => b().isVisible() && b().isOnline(), [R, S, L, $] = Ds(a, w), M = O({}).current, U = q(s) ? q(r.fallback) ? be : r.fallback[w] : s, D = (P, z) => {
|
4141
4141
|
for (const Z in M) {
|
4142
4142
|
const K = Z;
|
4143
4143
|
if (K === "data") {
|
@@ -4160,7 +4160,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4160
4160
|
return [
|
4161
4161
|
() => {
|
4162
4162
|
const de = z(R());
|
4163
|
-
return
|
4163
|
+
return D(de, ae) ? (ae.data = de.data, ae.isLoading = de.isLoading, ae.isValidating = de.isValidating, ae.error = de.error, ae) : (ae = de, de);
|
4164
4164
|
},
|
4165
4165
|
() => pe
|
4166
4166
|
];
|
@@ -4169,14 +4169,14 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4169
4169
|
w
|
4170
4170
|
]), j = Kd.useSyncExternalStore(Y(
|
4171
4171
|
(P) => L(w, (z, Z) => {
|
4172
|
-
|
4172
|
+
D(Z, z) || P();
|
4173
4173
|
}),
|
4174
4174
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4175
4175
|
[
|
4176
4176
|
a,
|
4177
4177
|
w
|
4178
4178
|
]
|
4179
|
-
), W[0], W[1]), J = !T.current, me =
|
4179
|
+
), W[0], W[1]), J = !T.current, me = m[w] && m[w].length > 0, Le = j.data, Ie = q(Le) ? U && Ms(U) ? Zr(U) : U : Le, Xe = j.error, st = O(Ie), je = h ? q(Le) ? q(st.current) ? Ie : st.current : Le : Ie, Me = me && !q(Xe) ? !1 : J && !q(l) ? l : b().isPaused() ? !1 : o ? q(Ie) ? !1 : i : q(Ie) || i, we = !!(w && t && J && Me), Ce = q(j.isValidating) ? we : j.isValidating, Lt = q(j.isLoading) ? we : j.isLoading, Ge = Y(
|
4180
4180
|
async (P) => {
|
4181
4181
|
const z = k.current;
|
4182
4182
|
if (!w || !z || I.current || b().isPaused())
|
@@ -4199,7 +4199,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4199
4199
|
se && de() && b().onLoadingSlow(w, r);
|
4200
4200
|
}, r.loadingTimeout), y[w] = [
|
4201
4201
|
z(_),
|
4202
|
-
|
4202
|
+
Ba()
|
4203
4203
|
]), [Z, K] = y[w], Z = await Z, ae && setTimeout(Mt, r.dedupingInterval), !y[w] || y[w][1] !== K)
|
4204
4204
|
return ae && de() && b().onDiscarded(w), !1;
|
4205
4205
|
Ne.error = be;
|
@@ -4215,7 +4215,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4215
4215
|
Mt();
|
4216
4216
|
const ke = b(), { shouldRetryOnError: gt } = ke;
|
4217
4217
|
ke.isPaused() || (Ne.error = ce, ae && de() && (ke.onError(ce, w, ke), (gt === !0 || Ve(gt) && gt(ce)) && (!b().revalidateOnFocus || !b().revalidateOnReconnect || E()) && ke.onErrorRetry(ce, w, ke, (ar) => {
|
4218
|
-
const yt =
|
4218
|
+
const yt = m[w];
|
4219
4219
|
yt && yt[0] && yt[0](to, ar);
|
4220
4220
|
}, {
|
4221
4221
|
retryCount: (pe.retryCount || 0) + 1,
|
@@ -4241,7 +4241,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4241
4241
|
]
|
4242
4242
|
), H = Y(
|
4243
4243
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
4244
|
-
(...P) =>
|
4244
|
+
(...P) => Bs(a, C.current, ...P),
|
4245
4245
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4246
4246
|
[]
|
4247
4247
|
);
|
@@ -4251,7 +4251,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4251
4251
|
if (!w) return;
|
4252
4252
|
const P = Ge.bind(be, ea);
|
4253
4253
|
let z = 0;
|
4254
|
-
const K = xu(w,
|
4254
|
+
const K = xu(w, m, (se, pe = {}) => {
|
4255
4255
|
if (se == Os) {
|
4256
4256
|
const ae = Date.now();
|
4257
4257
|
b().revalidateOnFocus && ae > z && E() && (z = ae + b().focusThrottleInterval, P());
|
@@ -4344,7 +4344,7 @@ function io(e, t) {
|
|
4344
4344
|
}
|
4345
4345
|
function Su(e) {
|
4346
4346
|
const [t, r] = F(e);
|
4347
|
-
return
|
4347
|
+
return B(() => {
|
4348
4348
|
Na(e, t) || r(e);
|
4349
4349
|
}, [e, t]), t;
|
4350
4350
|
}
|
@@ -4361,8 +4361,8 @@ function Nu({
|
|
4361
4361
|
onResponse: d,
|
4362
4362
|
onFinish: f,
|
4363
4363
|
onError: u,
|
4364
|
-
credentials:
|
4365
|
-
headers:
|
4364
|
+
credentials: h,
|
4365
|
+
headers: m,
|
4366
4366
|
body: g,
|
4367
4367
|
generateId: y = an,
|
4368
4368
|
fetch: v,
|
@@ -4377,25 +4377,25 @@ function Nu({
|
|
4377
4377
|
null,
|
4378
4378
|
{ fallbackData: x }
|
4379
4379
|
), R = O(b || []);
|
4380
|
-
|
4380
|
+
B(() => {
|
4381
4381
|
R.current = b || [];
|
4382
4382
|
}, [b]);
|
4383
4383
|
const { data: S, mutate: L } = ir([C, "streamData"], null), $ = O(S);
|
4384
|
-
|
4384
|
+
B(() => {
|
4385
4385
|
$.current = S;
|
4386
4386
|
}, [S]);
|
4387
|
-
const { data: M = "ready", mutate: U } = ir([C, "status"], null), { data:
|
4388
|
-
credentials:
|
4389
|
-
headers:
|
4387
|
+
const { data: M = "ready", mutate: U } = ir([C, "status"], null), { data: D = void 0, mutate: W } = ir([C, "error"], null), j = O(null), J = O({
|
4388
|
+
credentials: h,
|
4389
|
+
headers: m,
|
4390
4390
|
body: g
|
4391
4391
|
});
|
4392
|
-
|
4392
|
+
B(() => {
|
4393
4393
|
J.current = {
|
4394
|
-
credentials:
|
4395
|
-
headers:
|
4394
|
+
credentials: h,
|
4395
|
+
headers: m,
|
4396
4396
|
body: g
|
4397
4397
|
};
|
4398
|
-
}, [
|
4398
|
+
}, [h, m, g]);
|
4399
4399
|
const me = Y(
|
4400
4400
|
async (H) => {
|
4401
4401
|
var oe, P;
|
@@ -4608,7 +4608,7 @@ function Nu({
|
|
4608
4608
|
setMessages: st,
|
4609
4609
|
data: S,
|
4610
4610
|
setData: je,
|
4611
|
-
error:
|
4611
|
+
error: D,
|
4612
4612
|
append: Le,
|
4613
4613
|
reload: Ie,
|
4614
4614
|
stop: Xe,
|
@@ -4632,9 +4632,9 @@ function ht(e = {}) {
|
|
4632
4632
|
if (!t)
|
4633
4633
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
4634
4634
|
const r = O(e);
|
4635
|
-
return
|
4635
|
+
return B(() => {
|
4636
4636
|
r.current = e;
|
4637
|
-
}, [e]),
|
4637
|
+
}, [e]), B(() => {
|
4638
4638
|
const { onFinish: a, onError: n, onResponse: o, onToolCall: s } = r.current;
|
4639
4639
|
return a && t.handlers.onFinish.add(a), n && t.handlers.onError.add(n), o && t.handlers.onResponse.add(o), s && t.handlers.onToolCall.add(s), () => {
|
4640
4640
|
a && t.handlers.onFinish.delete(a), n && t.handlers.onError.delete(n), o && t.handlers.onResponse.delete(o), s && t.handlers.onToolCall.delete(s);
|
@@ -4646,7 +4646,7 @@ function Ru({
|
|
4646
4646
|
value: t
|
4647
4647
|
}) {
|
4648
4648
|
const r = O(lo());
|
4649
|
-
|
4649
|
+
B(() => {
|
4650
4650
|
r.current = lo();
|
4651
4651
|
}, [t]);
|
4652
4652
|
const a = Y(
|
@@ -4726,13 +4726,13 @@ const Au = "z-20", Ou = "z-10", Nr = V.createContext({
|
|
4726
4726
|
}
|
4727
4727
|
});
|
4728
4728
|
/*!
|
4729
|
-
@versini/ui-tooltip v1.3.
|
4729
|
+
@versini/ui-tooltip v1.3.11
|
4730
4730
|
© 2025 gizmette.com
|
4731
4731
|
*/
|
4732
4732
|
try {
|
4733
4733
|
window.__VERSINI_UI_TOOLTIP__ || (window.__VERSINI_UI_TOOLTIP__ = {
|
4734
|
-
version: "1.3.
|
4735
|
-
buildTime: "03/
|
4734
|
+
version: "1.3.11",
|
4735
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
4736
4736
|
homepage: "https://github.com/aversini/ui-components",
|
4737
4737
|
license: "MIT"
|
4738
4738
|
});
|
@@ -4746,11 +4746,11 @@ const $u = "av-tooltip", Lu = "av-tooltip-arrow", Ht = Math.min, _t = Math.max,
|
|
4746
4746
|
right: "left",
|
4747
4747
|
bottom: "top",
|
4748
4748
|
top: "bottom"
|
4749
|
-
},
|
4749
|
+
}, Du = {
|
4750
4750
|
start: "end",
|
4751
4751
|
end: "start"
|
4752
4752
|
};
|
4753
|
-
function
|
4753
|
+
function Pa(e, t, r) {
|
4754
4754
|
return _t(e, Ht(t, r));
|
4755
4755
|
}
|
4756
4756
|
function Kt(e, t) {
|
@@ -4774,18 +4774,18 @@ function Rt(e) {
|
|
4774
4774
|
function un(e) {
|
4775
4775
|
return Fs(Rt(e));
|
4776
4776
|
}
|
4777
|
-
function
|
4777
|
+
function Bu(e, t, r) {
|
4778
4778
|
r === void 0 && (r = !1);
|
4779
4779
|
const a = Qt(e), n = un(e), o = dn(n);
|
4780
4780
|
let s = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
4781
4781
|
return t.reference[o] > t.floating[o] && (s = vr(s)), [s, vr(s)];
|
4782
4782
|
}
|
4783
|
-
function
|
4783
|
+
function Pu(e) {
|
4784
4784
|
const t = vr(e);
|
4785
4785
|
return [za(e), t, za(t)];
|
4786
4786
|
}
|
4787
4787
|
function za(e) {
|
4788
|
-
return e.replace(/start|end/g, (t) =>
|
4788
|
+
return e.replace(/start|end/g, (t) => Du[t]);
|
4789
4789
|
}
|
4790
4790
|
function zu(e, t, r) {
|
4791
4791
|
const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], s = ["bottom", "top"];
|
@@ -4848,48 +4848,48 @@ function co(e, t, r) {
|
|
4848
4848
|
reference: a,
|
4849
4849
|
floating: n
|
4850
4850
|
} = e;
|
4851
|
-
const o = Rt(t), s = un(t), l = dn(s), i = ut(t), d = o === "y", f = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2,
|
4852
|
-
let
|
4851
|
+
const o = Rt(t), s = un(t), l = dn(s), i = ut(t), d = o === "y", f = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, h = a[l] / 2 - n[l] / 2;
|
4852
|
+
let m;
|
4853
4853
|
switch (i) {
|
4854
4854
|
case "top":
|
4855
|
-
|
4855
|
+
m = {
|
4856
4856
|
x: f,
|
4857
4857
|
y: a.y - n.height
|
4858
4858
|
};
|
4859
4859
|
break;
|
4860
4860
|
case "bottom":
|
4861
|
-
|
4861
|
+
m = {
|
4862
4862
|
x: f,
|
4863
4863
|
y: a.y + a.height
|
4864
4864
|
};
|
4865
4865
|
break;
|
4866
4866
|
case "right":
|
4867
|
-
|
4867
|
+
m = {
|
4868
4868
|
x: a.x + a.width,
|
4869
4869
|
y: u
|
4870
4870
|
};
|
4871
4871
|
break;
|
4872
4872
|
case "left":
|
4873
|
-
|
4873
|
+
m = {
|
4874
4874
|
x: a.x - n.width,
|
4875
4875
|
y: u
|
4876
4876
|
};
|
4877
4877
|
break;
|
4878
4878
|
default:
|
4879
|
-
|
4879
|
+
m = {
|
4880
4880
|
x: a.x,
|
4881
4881
|
y: a.y
|
4882
4882
|
};
|
4883
4883
|
}
|
4884
4884
|
switch (Qt(t)) {
|
4885
4885
|
case "start":
|
4886
|
-
|
4886
|
+
m[s] -= h * (r && d ? -1 : 1);
|
4887
4887
|
break;
|
4888
4888
|
case "end":
|
4889
|
-
|
4889
|
+
m[s] += h * (r && d ? -1 : 1);
|
4890
4890
|
break;
|
4891
4891
|
}
|
4892
|
-
return
|
4892
|
+
return m;
|
4893
4893
|
}
|
4894
4894
|
const Uu = async (e, t, r) => {
|
4895
4895
|
const {
|
@@ -4905,7 +4905,7 @@ const Uu = async (e, t, r) => {
|
|
4905
4905
|
}), {
|
4906
4906
|
x: f,
|
4907
4907
|
y: u
|
4908
|
-
} = co(d, a, i),
|
4908
|
+
} = co(d, a, i), h = a, m = {}, g = 0;
|
4909
4909
|
for (let y = 0; y < l.length; y++) {
|
4910
4910
|
const {
|
4911
4911
|
name: v,
|
@@ -4919,9 +4919,9 @@ const Uu = async (e, t, r) => {
|
|
4919
4919
|
x: f,
|
4920
4920
|
y: u,
|
4921
4921
|
initialPlacement: a,
|
4922
|
-
placement:
|
4922
|
+
placement: h,
|
4923
4923
|
strategy: n,
|
4924
|
-
middlewareData:
|
4924
|
+
middlewareData: m,
|
4925
4925
|
rects: d,
|
4926
4926
|
platform: s,
|
4927
4927
|
elements: {
|
@@ -4929,27 +4929,27 @@ const Uu = async (e, t, r) => {
|
|
4929
4929
|
floating: t
|
4930
4930
|
}
|
4931
4931
|
});
|
4932
|
-
f = _ ?? f, u = T ?? u,
|
4933
|
-
...
|
4932
|
+
f = _ ?? f, u = T ?? u, m = {
|
4933
|
+
...m,
|
4934
4934
|
[v]: {
|
4935
|
-
...
|
4935
|
+
...m[v],
|
4936
4936
|
...I
|
4937
4937
|
}
|
4938
|
-
}, C && g <= 50 && (g++, typeof C == "object" && (C.placement && (
|
4938
|
+
}, C && g <= 50 && (g++, typeof C == "object" && (C.placement && (h = C.placement), C.rects && (d = C.rects === !0 ? await s.getElementRects({
|
4939
4939
|
reference: e,
|
4940
4940
|
floating: t,
|
4941
4941
|
strategy: n
|
4942
4942
|
}) : C.rects), {
|
4943
4943
|
x: f,
|
4944
4944
|
y: u
|
4945
|
-
} = co(d,
|
4945
|
+
} = co(d, h, i)), y = -1);
|
4946
4946
|
}
|
4947
4947
|
return {
|
4948
4948
|
x: f,
|
4949
4949
|
y: u,
|
4950
|
-
placement:
|
4950
|
+
placement: h,
|
4951
4951
|
strategy: n,
|
4952
|
-
middlewareData:
|
4952
|
+
middlewareData: m
|
4953
4953
|
};
|
4954
4954
|
};
|
4955
4955
|
async function Hs(e, t) {
|
@@ -4966,9 +4966,9 @@ async function Hs(e, t) {
|
|
4966
4966
|
boundary: d = "clippingAncestors",
|
4967
4967
|
rootBoundary: f = "viewport",
|
4968
4968
|
elementContext: u = "floating",
|
4969
|
-
altBoundary:
|
4970
|
-
padding:
|
4971
|
-
} = Kt(t, e), g = Us(
|
4969
|
+
altBoundary: h = !1,
|
4970
|
+
padding: m = 0
|
4971
|
+
} = Kt(t, e), g = Us(m), y = l[h ? u === "floating" ? "reference" : "floating" : u], v = _r(await o.getClippingRect({
|
4972
4972
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(y))) == null || r ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
4973
4973
|
boundary: d,
|
4974
4974
|
rootBoundary: f,
|
@@ -5015,23 +5015,23 @@ const Hu = (e) => ({
|
|
5015
5015
|
} = Kt(e, t) || {};
|
5016
5016
|
if (d == null)
|
5017
5017
|
return {};
|
5018
|
-
const u = Us(f),
|
5018
|
+
const u = Us(f), h = {
|
5019
5019
|
x: r,
|
5020
5020
|
y: a
|
5021
|
-
},
|
5021
|
+
}, m = un(n), g = dn(m), y = await s.getDimensions(d), v = m === "y", w = v ? "top" : "left", _ = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", I = o.reference[g] + o.reference[m] - h[m] - o.floating[g], C = h[m] - o.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
5022
5022
|
let x = k ? k[T] : 0;
|
5023
5023
|
(!x || !await (s.isElement == null ? void 0 : s.isElement(k))) && (x = l.floating[T] || o.floating[g]);
|
5024
|
-
const b = I / 2 - C / 2, E = x / 2 - y[g] / 2 - 1, R = Ht(u[w], E), S = Ht(u[_], E), L = R, $ = x - y[g] - S, M = x / 2 - y[g] / 2 + b, U =
|
5024
|
+
const b = I / 2 - C / 2, E = x / 2 - y[g] / 2 - 1, R = Ht(u[w], E), S = Ht(u[_], E), L = R, $ = x - y[g] - S, M = x / 2 - y[g] / 2 + b, U = Pa(L, M, $), D = !i.arrow && Qt(n) != null && M !== U && o.reference[g] / 2 - (M < L ? R : S) - y[g] / 2 < 0, W = D ? M < L ? M - L : M - $ : 0;
|
5025
5025
|
return {
|
5026
|
-
[
|
5026
|
+
[m]: h[m] + W,
|
5027
5027
|
data: {
|
5028
|
-
[
|
5028
|
+
[m]: U,
|
5029
5029
|
centerOffset: M - U - W,
|
5030
|
-
...
|
5030
|
+
...D && {
|
5031
5031
|
alignmentOffset: W
|
5032
5032
|
}
|
5033
5033
|
},
|
5034
|
-
reset:
|
5034
|
+
reset: D
|
5035
5035
|
};
|
5036
5036
|
}
|
5037
5037
|
}), ju = function(e) {
|
@@ -5050,20 +5050,20 @@ const Hu = (e) => ({
|
|
5050
5050
|
} = t, {
|
5051
5051
|
mainAxis: f = !0,
|
5052
5052
|
crossAxis: u = !0,
|
5053
|
-
fallbackPlacements:
|
5054
|
-
fallbackStrategy:
|
5053
|
+
fallbackPlacements: h,
|
5054
|
+
fallbackStrategy: m = "bestFit",
|
5055
5055
|
fallbackAxisSideDirection: g = "none",
|
5056
5056
|
flipAlignment: y = !0,
|
5057
5057
|
...v
|
5058
5058
|
} = Kt(e, t);
|
5059
5059
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
5060
5060
|
return {};
|
5061
|
-
const w = ut(n), _ = Rt(l), T = ut(l) === l, I = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), C =
|
5062
|
-
!
|
5061
|
+
const w = ut(n), _ = Rt(l), T = ut(l) === l, I = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), C = h || (T || !y ? [vr(l)] : Pu(l)), k = g !== "none";
|
5062
|
+
!h && k && C.push(...Vu(l, y, g, I));
|
5063
5063
|
const x = [l, ...C], b = await Hs(t, v), E = [];
|
5064
5064
|
let R = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
5065
5065
|
if (f && E.push(b[w]), u) {
|
5066
|
-
const M =
|
5066
|
+
const M = Bu(n, s, I);
|
5067
5067
|
E.push(b[M[0]], b[M[1]]);
|
5068
5068
|
}
|
5069
5069
|
if (R = [...R, {
|
@@ -5082,9 +5082,9 @@ const Hu = (e) => ({
|
|
5082
5082
|
placement: U
|
5083
5083
|
}
|
5084
5084
|
};
|
5085
|
-
let
|
5086
|
-
if (!
|
5087
|
-
switch (
|
5085
|
+
let D = (L = R.filter((W) => W.overflows[0] <= 0).sort((W, j) => W.overflows[1] - j.overflows[1])[0]) == null ? void 0 : L.placement;
|
5086
|
+
if (!D)
|
5087
|
+
switch (m) {
|
5088
5088
|
case "bestFit": {
|
5089
5089
|
var $;
|
5090
5090
|
const W = ($ = R.filter((j) => {
|
@@ -5096,17 +5096,17 @@ const Hu = (e) => ({
|
|
5096
5096
|
}
|
5097
5097
|
return !0;
|
5098
5098
|
}).map((j) => [j.placement, j.overflows.filter((J) => J > 0).reduce((J, me) => J + me, 0)]).sort((j, J) => j[1] - J[1])[0]) == null ? void 0 : $[0];
|
5099
|
-
W && (
|
5099
|
+
W && (D = W);
|
5100
5100
|
break;
|
5101
5101
|
}
|
5102
5102
|
case "initialPlacement":
|
5103
|
-
|
5103
|
+
D = l;
|
5104
5104
|
break;
|
5105
5105
|
}
|
5106
|
-
if (n !==
|
5106
|
+
if (n !== D)
|
5107
5107
|
return {
|
5108
5108
|
reset: {
|
5109
|
-
placement:
|
5109
|
+
placement: D
|
5110
5110
|
}
|
5111
5111
|
};
|
5112
5112
|
}
|
@@ -5121,8 +5121,8 @@ async function Gu(e, t) {
|
|
5121
5121
|
elements: n
|
5122
5122
|
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), s = ut(r), l = Qt(r), i = Rt(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, f = o && i ? -1 : 1, u = Kt(t, e);
|
5123
5123
|
let {
|
5124
|
-
mainAxis:
|
5125
|
-
crossAxis:
|
5124
|
+
mainAxis: h,
|
5125
|
+
crossAxis: m,
|
5126
5126
|
alignmentAxis: g
|
5127
5127
|
} = typeof u == "number" ? {
|
5128
5128
|
mainAxis: u,
|
@@ -5133,12 +5133,12 @@ async function Gu(e, t) {
|
|
5133
5133
|
crossAxis: u.crossAxis || 0,
|
5134
5134
|
alignmentAxis: u.alignmentAxis
|
5135
5135
|
};
|
5136
|
-
return l && typeof g == "number" && (
|
5137
|
-
x:
|
5138
|
-
y:
|
5136
|
+
return l && typeof g == "number" && (m = l === "end" ? g * -1 : g), i ? {
|
5137
|
+
x: m * f,
|
5138
|
+
y: h * d
|
5139
5139
|
} : {
|
5140
|
-
x:
|
5141
|
-
y:
|
5140
|
+
x: h * d,
|
5141
|
+
y: m * f
|
5142
5142
|
};
|
5143
5143
|
}
|
5144
5144
|
const Wu = function(e) {
|
@@ -5191,19 +5191,19 @@ const Wu = function(e) {
|
|
5191
5191
|
} = Kt(e, t), d = {
|
5192
5192
|
x: r,
|
5193
5193
|
y: a
|
5194
|
-
}, f = await Hs(t, i), u = Rt(ut(n)),
|
5195
|
-
let
|
5194
|
+
}, f = await Hs(t, i), u = Rt(ut(n)), h = Fs(u);
|
5195
|
+
let m = d[h], g = d[u];
|
5196
5196
|
if (o) {
|
5197
|
-
const v =
|
5198
|
-
|
5197
|
+
const v = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", _ = m + f[v], T = m - f[w];
|
5198
|
+
m = Pa(_, m, T);
|
5199
5199
|
}
|
5200
5200
|
if (s) {
|
5201
5201
|
const v = u === "y" ? "top" : "left", w = u === "y" ? "bottom" : "right", _ = g + f[v], T = g - f[w];
|
5202
|
-
g =
|
5202
|
+
g = Pa(_, g, T);
|
5203
5203
|
}
|
5204
5204
|
const y = l.fn({
|
5205
5205
|
...t,
|
5206
|
-
[
|
5206
|
+
[h]: m,
|
5207
5207
|
[u]: g
|
5208
5208
|
});
|
5209
5209
|
return {
|
@@ -5212,7 +5212,7 @@ const Wu = function(e) {
|
|
5212
5212
|
x: y.x - r,
|
5213
5213
|
y: y.y - a,
|
5214
5214
|
enabled: {
|
5215
|
-
[
|
5215
|
+
[h]: o,
|
5216
5216
|
[u]: s
|
5217
5217
|
}
|
5218
5218
|
}
|
@@ -5372,9 +5372,9 @@ function jt(e, t, r, a) {
|
|
5372
5372
|
const l = Qu(o, r, a) ? Js(o) : Fe(0);
|
5373
5373
|
let i = (n.left + l.x) / s.x, d = (n.top + l.y) / s.y, f = n.width / s.x, u = n.height / s.y;
|
5374
5374
|
if (o) {
|
5375
|
-
const
|
5376
|
-
let g =
|
5377
|
-
for (; y && a &&
|
5375
|
+
const h = Te(o), m = a && Oe(a) ? Te(a) : a;
|
5376
|
+
let g = h, y = fo(g);
|
5377
|
+
for (; y && a && m !== g; ) {
|
5378
5378
|
const v = wt(y), w = y.getBoundingClientRect(), _ = $e(y), T = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * v.x, I = w.top + (y.clientTop + parseFloat(_.paddingTop)) * v.y;
|
5379
5379
|
i *= v.x, d *= v.y, f *= v.x, u *= v.y, i += T, d += I, g = Te(y), y = fo(g);
|
5380
5380
|
}
|
@@ -5417,15 +5417,15 @@ function Xu(e) {
|
|
5417
5417
|
}, d = Fe(1);
|
5418
5418
|
const f = Fe(0), u = He(a);
|
5419
5419
|
if ((u || !u && !o) && (($t(a) !== "body" || Xt(s)) && (i = Or(a)), He(a))) {
|
5420
|
-
const
|
5421
|
-
d = wt(a), f.x =
|
5420
|
+
const m = jt(a);
|
5421
|
+
d = wt(a), f.x = m.x + a.clientLeft, f.y = m.y + a.clientTop;
|
5422
5422
|
}
|
5423
|
-
const
|
5423
|
+
const h = s && !u && !o ? Ks(s, i, !0) : Fe(0);
|
5424
5424
|
return {
|
5425
5425
|
width: r.width * d.x,
|
5426
5426
|
height: r.height * d.y,
|
5427
|
-
x: r.x * d.x - i.scrollLeft * d.x + f.x +
|
5428
|
-
y: r.y * d.y - i.scrollTop * d.y + f.y +
|
5427
|
+
x: r.x * d.x - i.scrollLeft * d.x + f.x + h.x,
|
5428
|
+
y: r.y * d.y - i.scrollTop * d.y + f.y + h.y
|
5429
5429
|
};
|
5430
5430
|
}
|
5431
5431
|
function Zu(e) {
|
@@ -5539,8 +5539,8 @@ function sf(e, t, r) {
|
|
5539
5539
|
const i = Fe(0);
|
5540
5540
|
if (a || !a && !o)
|
5541
5541
|
if (($t(t) !== "body" || Xt(n)) && (l = Or(t)), a) {
|
5542
|
-
const
|
5543
|
-
i.x =
|
5542
|
+
const h = jt(t, !0, o, t);
|
5543
|
+
i.x = h.x + t.clientLeft, i.y = h.y + t.clientTop;
|
5544
5544
|
} else n && (i.x = mn(n));
|
5545
5545
|
const d = n && !a && !o ? Ks(n, l) : Fe(0), f = s.left + l.scrollLeft - i.x - d.x, u = s.top + l.scrollTop - i.y - d.y;
|
5546
5546
|
return {
|
@@ -5620,7 +5620,7 @@ const df = {
|
|
5620
5620
|
}, po = ["mousedown", "touchstart"];
|
5621
5621
|
function gf(e, t, r) {
|
5622
5622
|
const a = O(null);
|
5623
|
-
return
|
5623
|
+
return B(() => {
|
5624
5624
|
const n = (o) => {
|
5625
5625
|
const s = o ? o.target : void 0;
|
5626
5626
|
if (Array.isArray(r)) {
|
@@ -5645,7 +5645,7 @@ function yf(e, t) {
|
|
5645
5645
|
}, [t]), l = Y(() => {
|
5646
5646
|
a(!1), window.clearInterval(n.current || -1), n.current = -1;
|
5647
5647
|
}, []);
|
5648
|
-
return
|
5648
|
+
return B(() => (o.current = e, r && s(), l), [e, r, s, l]), { start: s, stop: l, active: r };
|
5649
5649
|
}
|
5650
5650
|
const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), go = ({
|
5651
5651
|
mode: e
|
@@ -5694,7 +5694,7 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5694
5694
|
}) => {
|
5695
5695
|
const i = gf(() => {
|
5696
5696
|
y.stop(), g(!1);
|
5697
|
-
}), d = O(null), f = O(null), [u,
|
5697
|
+
}), d = O(null), f = O(null), [u, h] = F(!1), [m, g] = F(!1), y = yf(() => {
|
5698
5698
|
g(!1);
|
5699
5699
|
}, xf), v = wf({
|
5700
5700
|
mode: a,
|
@@ -5741,15 +5741,15 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5741
5741
|
});
|
5742
5742
|
}
|
5743
5743
|
}, [r, w, i]);
|
5744
|
-
|
5744
|
+
B(() => {
|
5745
5745
|
(async () => u && await _())();
|
5746
5746
|
}, [_, u]);
|
5747
5747
|
const T = () => {
|
5748
|
-
|
5748
|
+
h(!1), g(!0), y.start();
|
5749
5749
|
}, I = () => {
|
5750
|
-
|
5750
|
+
m || h(!0);
|
5751
5751
|
}, C = () => {
|
5752
|
-
|
5752
|
+
m || h(!1);
|
5753
5753
|
};
|
5754
5754
|
return /* @__PURE__ */ N(
|
5755
5755
|
"div",
|
@@ -5814,12 +5814,12 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5814
5814
|
*/
|
5815
5815
|
[]
|
5816
5816
|
);
|
5817
|
-
const u = (
|
5818
|
-
|
5819
|
-
},
|
5820
|
-
|
5817
|
+
const u = (m) => {
|
5818
|
+
m.preventDefault(), l();
|
5819
|
+
}, h = (m) => {
|
5820
|
+
m.preventDefault(), f();
|
5821
5821
|
};
|
5822
|
-
return
|
5822
|
+
return B(() => {
|
5823
5823
|
ua() || ((t === !0 || r === !0) && !d.current && i.current && (d.current = !0, i.current.focus()), t === !1 && d.current && (d.current = !1));
|
5824
5824
|
}, [t, r]), /* @__PURE__ */ c(
|
5825
5825
|
mt,
|
@@ -5836,21 +5836,21 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5836
5836
|
focusMode: "light",
|
5837
5837
|
label: "New Chat",
|
5838
5838
|
ref: i,
|
5839
|
-
onClick: t || r ? u :
|
5840
|
-
children: t || r ? /* @__PURE__ */ c(rs, { size: Je, monotone: !0 }) : /* @__PURE__ */ c(
|
5839
|
+
onClick: t || r ? u : h,
|
5840
|
+
children: t || r ? /* @__PURE__ */ c(rs, { size: Je, monotone: !0 }) : /* @__PURE__ */ c(Dl, { size: Je })
|
5841
5841
|
}
|
5842
5842
|
)
|
5843
5843
|
}
|
5844
5844
|
);
|
5845
5845
|
};
|
5846
5846
|
/*!
|
5847
|
-
@versini/ui-panel v1.
|
5847
|
+
@versini/ui-panel v1.4.1
|
5848
5848
|
© 2025 gizmette.com
|
5849
5849
|
*/
|
5850
5850
|
try {
|
5851
5851
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
5852
|
-
version: "1.
|
5853
|
-
buildTime: "03/
|
5852
|
+
version: "1.4.1",
|
5853
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
5854
5854
|
homepage: "https://github.com/aversini/ui-components",
|
5855
5855
|
license: "MIT"
|
5856
5856
|
});
|
@@ -6100,7 +6100,7 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6100
6100
|
animated: e
|
6101
6101
|
}) => p({
|
6102
6102
|
"transition-opacity duration-300 ease-in": e
|
6103
|
-
}),
|
6103
|
+
}), Df = ({
|
6104
6104
|
type: e,
|
6105
6105
|
className: t,
|
6106
6106
|
raw: r,
|
@@ -6113,20 +6113,20 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6113
6113
|
labelRight: d,
|
6114
6114
|
labelLeft: f,
|
6115
6115
|
noBackground: u,
|
6116
|
-
variant:
|
6117
|
-
noTruncate:
|
6116
|
+
variant: h,
|
6117
|
+
noTruncate: m,
|
6118
6118
|
align: g,
|
6119
6119
|
radius: y,
|
6120
6120
|
animated: v
|
6121
|
-
}) => (
|
6121
|
+
}) => (h || (h = "primary"), r ? p(vo, t) : p(
|
6122
6122
|
vo,
|
6123
6123
|
Cf({
|
6124
6124
|
mode: a,
|
6125
|
-
variant:
|
6125
|
+
variant: h,
|
6126
6126
|
noBackground: u,
|
6127
|
-
noTruncate:
|
6127
|
+
noTruncate: m
|
6128
6128
|
}),
|
6129
|
-
Sf({ mode: a, noBackground: u, variant:
|
6129
|
+
Sf({ mode: a, noBackground: u, variant: h }),
|
6130
6130
|
Nf({ radius: y }),
|
6131
6131
|
Ef({
|
6132
6132
|
type: e,
|
@@ -6137,10 +6137,10 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6137
6137
|
animated: v
|
6138
6138
|
}),
|
6139
6139
|
If({ type: e, size: l, labelRight: d, labelLeft: f }),
|
6140
|
-
Of({ mode: a, variant:
|
6140
|
+
Of({ mode: a, variant: h, noBorder: i }),
|
6141
6141
|
$f({ focusMode: n }),
|
6142
|
-
Rf({ mode: a, variant:
|
6143
|
-
Af({ mode: a, variant:
|
6142
|
+
Rf({ mode: a, variant: h, disabled: o }),
|
6143
|
+
Af({ mode: a, variant: h, disabled: o }),
|
6144
6144
|
{
|
6145
6145
|
"w-full": s,
|
6146
6146
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -6149,7 +6149,7 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6149
6149
|
"transition-[width] duration-300 ease-in-out": e === $r && v
|
6150
6150
|
}),
|
6151
6151
|
t
|
6152
|
-
)),
|
6152
|
+
)), Bf = (e, t, r) => {
|
6153
6153
|
var a;
|
6154
6154
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
6155
6155
|
}, ei = V.forwardRef((e, t) => {
|
@@ -6159,16 +6159,16 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6159
6159
|
{
|
6160
6160
|
ref: t,
|
6161
6161
|
onClick: (o) => {
|
6162
|
-
|
6162
|
+
Bf(o, a, r);
|
6163
6163
|
},
|
6164
6164
|
...n
|
6165
6165
|
}
|
6166
6166
|
);
|
6167
6167
|
});
|
6168
6168
|
ei.displayName = "BaseButton";
|
6169
|
-
function
|
6169
|
+
function Pf() {
|
6170
6170
|
const e = O(!1);
|
6171
|
-
return
|
6171
|
+
return B(() => (e.current = !0, () => {
|
6172
6172
|
e.current = !1;
|
6173
6173
|
}), []), Y(() => e.current, []);
|
6174
6174
|
}
|
@@ -6191,13 +6191,13 @@ const Vf = {
|
|
6191
6191
|
right: 0
|
6192
6192
|
};
|
6193
6193
|
function aa(e) {
|
6194
|
-
const t =
|
6194
|
+
const t = Pf(), r = O(0), a = O(null), [n, o] = F(Vf), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
6195
6195
|
const i = l[0];
|
6196
6196
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6197
6197
|
a.current && t() && o(i.contentRect);
|
6198
6198
|
}));
|
6199
6199
|
}), [t]);
|
6200
|
-
return
|
6200
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
6201
6201
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
6202
6202
|
}), [s, e]), [a, n];
|
6203
6203
|
}
|
@@ -6229,8 +6229,8 @@ const Ff = {
|
|
6229
6229
|
"aria-label": d,
|
6230
6230
|
label: f,
|
6231
6231
|
size: u = "medium",
|
6232
|
-
labelRight:
|
6233
|
-
labelLeft:
|
6232
|
+
labelRight: h,
|
6233
|
+
labelLeft: m,
|
6234
6234
|
noBackground: g = !1,
|
6235
6235
|
align: y = "center",
|
6236
6236
|
radius: v = "large",
|
@@ -6239,7 +6239,7 @@ const Ff = {
|
|
6239
6239
|
animated: T = !1,
|
6240
6240
|
...I
|
6241
6241
|
}, C) => {
|
6242
|
-
const k =
|
6242
|
+
const k = Df({
|
6243
6243
|
type: $r,
|
6244
6244
|
mode: r,
|
6245
6245
|
focusMode: a,
|
@@ -6249,24 +6249,24 @@ const Ff = {
|
|
6249
6249
|
className: o,
|
6250
6250
|
noBorder: i,
|
6251
6251
|
size: u,
|
6252
|
-
labelRight:
|
6253
|
-
labelLeft:
|
6252
|
+
labelRight: h,
|
6253
|
+
labelLeft: m,
|
6254
6254
|
noBackground: g,
|
6255
6255
|
align: y,
|
6256
6256
|
radius: v,
|
6257
6257
|
variant: w,
|
6258
6258
|
animated: T
|
6259
|
-
}), x = Lf({ mode: r, raw: l, iconClassName: _ }), b = Mf({ animated: T }), [E, R] = aa(), [S, L] = aa(), [$, M] = aa(), U = O(0),
|
6259
|
+
}), x = Lf({ mode: r, raw: l, iconClassName: _ }), b = Mf({ animated: T }), [E, R] = aa(), [S, L] = aa(), [$, M] = aa(), U = O(0), D = O(null), W = zf([C, D]);
|
6260
6260
|
return ge(() => {
|
6261
6261
|
$ && $.current && T && (U.current = M.width + Uf[u] + (i ? 0 : Hf));
|
6262
6262
|
}, [M, $, u, i, T]), ge(() => {
|
6263
|
-
|
6263
|
+
D && D.current && T && (h && E && R.width > 0 ? (E.current && (E.current.style.opacity = "100"), D.current.style.width = `${R.width + U.current}px`) : m && L.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${L.width + U.current}px`) : (E.current && (E.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Ff[u]}px`));
|
6264
6264
|
}, [
|
6265
6265
|
R,
|
6266
|
-
|
6266
|
+
h,
|
6267
6267
|
E,
|
6268
6268
|
L,
|
6269
|
-
|
6269
|
+
m,
|
6270
6270
|
S,
|
6271
6271
|
u,
|
6272
6272
|
T
|
@@ -6283,7 +6283,7 @@ const Ff = {
|
|
6283
6283
|
/* @__PURE__ */ c(
|
6284
6284
|
_o,
|
6285
6285
|
{
|
6286
|
-
label:
|
6286
|
+
label: m,
|
6287
6287
|
labelRef: S,
|
6288
6288
|
labelClass: b,
|
6289
6289
|
labelInnerClass: "pr-2"
|
@@ -6293,7 +6293,7 @@ const Ff = {
|
|
6293
6293
|
/* @__PURE__ */ c(
|
6294
6294
|
_o,
|
6295
6295
|
{
|
6296
|
-
label:
|
6296
|
+
label: h,
|
6297
6297
|
labelRef: E,
|
6298
6298
|
labelClass: b,
|
6299
6299
|
labelInnerClass: "pl-2"
|
@@ -6311,13 +6311,13 @@ const Ff = {
|
|
6311
6311
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
6312
6312
|
pn.displayName = "ButtonIcon";
|
6313
6313
|
/*!
|
6314
|
-
@versini/ui-button v4.2.
|
6314
|
+
@versini/ui-button v4.2.11
|
6315
6315
|
© 2025 gizmette.com
|
6316
6316
|
*/
|
6317
6317
|
try {
|
6318
6318
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
6319
|
-
version: "4.2.
|
6320
|
-
buildTime: "03/
|
6319
|
+
version: "4.2.11",
|
6320
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
6321
6321
|
homepage: "https://github.com/aversini/ui-components",
|
6322
6322
|
license: "MIT"
|
6323
6323
|
});
|
@@ -6374,32 +6374,32 @@ const Gf = ({
|
|
6374
6374
|
...i
|
6375
6375
|
}) => {
|
6376
6376
|
const d = p(o, a);
|
6377
|
-
return /* @__PURE__ */
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6381
|
-
|
6382
|
-
|
6383
|
-
|
6384
|
-
|
6385
|
-
|
6386
|
-
|
6387
|
-
|
6388
|
-
|
6389
|
-
children:
|
6390
|
-
|
6391
|
-
|
6392
|
-
|
6393
|
-
|
6377
|
+
return /* @__PURE__ */ c(he, { children: /* @__PURE__ */ N(
|
6378
|
+
"svg",
|
6379
|
+
{
|
6380
|
+
xmlns: "http://www.w3.org/2000/svg",
|
6381
|
+
className: d,
|
6382
|
+
viewBox: r || n,
|
6383
|
+
fill: t || "currentColor",
|
6384
|
+
role: "img",
|
6385
|
+
"aria-hidden": !l,
|
6386
|
+
focusable: !1,
|
6387
|
+
...i,
|
6388
|
+
children: [
|
6389
|
+
s && l && /* @__PURE__ */ c("title", { children: s }),
|
6390
|
+
e
|
6391
|
+
]
|
6392
|
+
}
|
6393
|
+
) });
|
6394
6394
|
};
|
6395
6395
|
/*!
|
6396
|
-
@versini/ui-svgicon v4.
|
6396
|
+
@versini/ui-svgicon v4.1.1
|
6397
6397
|
© 2025 gizmette.com
|
6398
6398
|
*/
|
6399
6399
|
try {
|
6400
6400
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
6401
|
-
version: "4.
|
6402
|
-
buildTime: "
|
6401
|
+
version: "4.1.1",
|
6402
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6403
6403
|
homepage: "https://github.com/aversini/ui-components",
|
6404
6404
|
license: "MIT"
|
6405
6405
|
});
|
@@ -6430,13 +6430,13 @@ const Wf = ({
|
|
6430
6430
|
}
|
6431
6431
|
);
|
6432
6432
|
/*!
|
6433
|
-
@versini/ui-icons v4.
|
6433
|
+
@versini/ui-icons v4.8.1
|
6434
6434
|
© 2025 gizmette.com
|
6435
6435
|
*/
|
6436
6436
|
try {
|
6437
6437
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
6438
|
-
version: "4.
|
6439
|
-
buildTime: "
|
6438
|
+
version: "4.8.1",
|
6439
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6440
6440
|
homepage: "https://github.com/aversini/ui-components",
|
6441
6441
|
license: "MIT"
|
6442
6442
|
});
|
@@ -6451,12 +6451,12 @@ function qf({
|
|
6451
6451
|
const [a, n] = te.useState(e), [o, s] = te.useState(), [l, i] = te.useState(), d = t ?? a, f = r ?? n, u = Yo({
|
6452
6452
|
open: d,
|
6453
6453
|
onOpenChange: f
|
6454
|
-
}),
|
6454
|
+
}), h = u.context, m = Jo(h, {
|
6455
6455
|
enabled: t == null
|
6456
|
-
}), g = Ko(
|
6456
|
+
}), g = Ko(h, {
|
6457
6457
|
outsidePress: !1,
|
6458
6458
|
outsidePressEvent: "mousedown"
|
6459
|
-
}), y = Qo(
|
6459
|
+
}), y = Qo(h), v = Xo([m, g, y]);
|
6460
6460
|
return te.useMemo(
|
6461
6461
|
() => ({
|
6462
6462
|
open: d,
|
@@ -6517,34 +6517,39 @@ const Jf = te.forwardRef(function(e, t) {
|
|
6517
6517
|
}) });
|
6518
6518
|
});
|
6519
6519
|
/*!
|
6520
|
-
@versini/ui-modal v1.2.
|
6520
|
+
@versini/ui-modal v1.2.12
|
6521
6521
|
© 2025 gizmette.com
|
6522
6522
|
*/
|
6523
6523
|
try {
|
6524
6524
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
6525
|
-
version: "1.2.
|
6526
|
-
buildTime: "03/
|
6525
|
+
version: "1.2.12",
|
6526
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
6527
6527
|
homepage: "https://github.com/aversini/ui-components",
|
6528
6528
|
license: "MIT"
|
6529
6529
|
});
|
6530
6530
|
} catch {
|
6531
6531
|
}
|
6532
|
-
const
|
6532
|
+
const Pt = "panel", cr = "messagebox", Zf = ({
|
6533
6533
|
className: e,
|
6534
6534
|
kind: t,
|
6535
|
-
borderMode: r
|
6535
|
+
borderMode: r,
|
6536
|
+
animation: a
|
6536
6537
|
}) => ({
|
6537
|
-
main: p(
|
6538
|
-
|
6539
|
-
|
6540
|
-
|
6541
|
-
|
6542
|
-
|
6543
|
-
|
6544
|
-
|
6545
|
-
|
6546
|
-
|
6547
|
-
|
6538
|
+
main: p(
|
6539
|
+
"prose prose-lighter flex flex-col bg-surface-medium",
|
6540
|
+
{
|
6541
|
+
"opacity-0 transition-opacity duration-700": a,
|
6542
|
+
[`${bo} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Pt,
|
6543
|
+
[`${bo} w-full sm:w-[95%] md:max-w-2xl`]: t === Pt && !e,
|
6544
|
+
[`${yo} rounded-lg border-2`]: t === cr,
|
6545
|
+
[`${yo} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === cr && !e,
|
6546
|
+
[`${e}`]: !!e,
|
6547
|
+
"sm:border-border-dark": r === "dark" && t === Pt,
|
6548
|
+
"sm:border-border-accent": r === "light" && t === Pt,
|
6549
|
+
"border-border-dark": r === "dark" && t === cr,
|
6550
|
+
"border-border-accent": r === "light" && t === cr
|
6551
|
+
}
|
6552
|
+
),
|
6548
6553
|
content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
|
6549
6554
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
6550
6555
|
header: "sm:p-4 mb-0 p-2",
|
@@ -6556,35 +6561,60 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6556
6561
|
children: a,
|
6557
6562
|
footer: n,
|
6558
6563
|
borderMode: o = "light",
|
6559
|
-
kind: s =
|
6560
|
-
className: l
|
6564
|
+
kind: s = Pt,
|
6565
|
+
className: l,
|
6566
|
+
animation: i = !1
|
6561
6567
|
}) => {
|
6562
|
-
const
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6568
|
-
|
6569
|
-
|
6570
|
-
|
6571
|
-
|
6572
|
-
|
6568
|
+
const d = O(""), f = O({ opacity: 0 }), [, u] = F(!1), h = Zf({
|
6569
|
+
className: l,
|
6570
|
+
kind: s,
|
6571
|
+
borderMode: o,
|
6572
|
+
animation: i
|
6573
|
+
});
|
6574
|
+
return B(() => (e && (d.current = document.title, document.title = `${r} | ${d.current}`), () => {
|
6575
|
+
e && (document.title = d.current);
|
6576
|
+
}), [r, e]), B(() => {
|
6577
|
+
if (!i) {
|
6578
|
+
u(!0), f.current = { opacity: 1 };
|
6579
|
+
return;
|
6580
|
+
}
|
6581
|
+
if (e) {
|
6582
|
+
u(!1), f.current = { opacity: 0 };
|
6583
|
+
const m = setTimeout(() => {
|
6584
|
+
u(!0), f.current = { opacity: 1 };
|
6585
|
+
}, 100);
|
6586
|
+
return () => clearTimeout(m);
|
6587
|
+
}
|
6588
|
+
}, [e, i]), /* @__PURE__ */ c(he, { children: e && /* @__PURE__ */ c(Yf, { open: e, onOpenChange: t, children: /* @__PURE__ */ N(
|
6589
|
+
Jf,
|
6590
|
+
{
|
6591
|
+
className: h.main,
|
6592
|
+
style: f.current,
|
6593
|
+
children: [
|
6594
|
+
/* @__PURE__ */ N("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
6595
|
+
/* @__PURE__ */ c(
|
6596
|
+
Xf,
|
6573
6597
|
{
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6598
|
+
className: h.close,
|
6599
|
+
trigger: /* @__PURE__ */ c(
|
6600
|
+
pn,
|
6601
|
+
{
|
6602
|
+
mode: "dark",
|
6603
|
+
focusMode: "light",
|
6604
|
+
noBorder: !0,
|
6605
|
+
label: "Close",
|
6606
|
+
children: /* @__PURE__ */ c(Wf, {})
|
6607
|
+
}
|
6608
|
+
)
|
6579
6609
|
}
|
6580
|
-
)
|
6581
|
-
|
6582
|
-
|
6583
|
-
|
6584
|
-
|
6585
|
-
|
6586
|
-
|
6587
|
-
|
6610
|
+
),
|
6611
|
+
/* @__PURE__ */ c(Kf, { className: h.header, children: r })
|
6612
|
+
] }),
|
6613
|
+
/* @__PURE__ */ c(Qf, { className: h.content, children: a }),
|
6614
|
+
n && /* @__PURE__ */ c("div", { className: h.footer, children: n })
|
6615
|
+
]
|
6616
|
+
}
|
6617
|
+
) }) });
|
6588
6618
|
}, gn = ({
|
6589
6619
|
showConfirmation: e,
|
6590
6620
|
setShowConfirmation: t,
|
@@ -6594,6 +6624,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6594
6624
|
}) => /* @__PURE__ */ c(
|
6595
6625
|
Zt,
|
6596
6626
|
{
|
6627
|
+
animation: !0,
|
6597
6628
|
kind: "messagebox",
|
6598
6629
|
open: e,
|
6599
6630
|
onOpenChange: t,
|
@@ -6721,7 +6752,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6721
6752
|
focusMode: s = "system",
|
6722
6753
|
...l
|
6723
6754
|
}, i) => {
|
6724
|
-
const [d, f] = F(!1), [u,
|
6755
|
+
const [d, f] = F(!1), [u, h] = F(!1), [m, g] = F(null), y = O([]), v = O([]), w = ee(Fa), _ = Zo(), T = sl(), I = es(), { floatingStyles: C, refs: k, context: x } = Yo({
|
6725
6756
|
nodeId: T,
|
6726
6757
|
open: d,
|
6727
6758
|
onOpenChange: (J) => {
|
@@ -6737,16 +6768,16 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6737
6768
|
ignoreMouse: !1
|
6738
6769
|
}), E = Qo(x, { role: "menu" }), R = Ko(x, { bubbles: !0 }), S = ul(x, {
|
6739
6770
|
listRef: y,
|
6740
|
-
activeIndex:
|
6771
|
+
activeIndex: m,
|
6741
6772
|
nested: !1,
|
6742
6773
|
onNavigate: g,
|
6743
6774
|
loop: !0
|
6744
6775
|
}), L = fl(x, {
|
6745
6776
|
listRef: v,
|
6746
6777
|
onMatch: d ? g : void 0,
|
6747
|
-
activeIndex:
|
6748
|
-
}), { getReferenceProps: $, getFloatingProps: M, getItemProps: U } = Xo([b, E, R, S, L]),
|
6749
|
-
noInternalClick:
|
6778
|
+
activeIndex: m
|
6779
|
+
}), { getReferenceProps: $, getFloatingProps: M, getItemProps: U } = Xo([b, E, R, S, L]), D = wo(e) === "Button" || wo(e) === "ButtonIcon", W = D ? {
|
6780
|
+
noInternalClick: D,
|
6750
6781
|
focusMode: s,
|
6751
6782
|
mode: o
|
6752
6783
|
} : {}, j = V.cloneElement(
|
@@ -6764,7 +6795,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6764
6795
|
)
|
6765
6796
|
}
|
6766
6797
|
);
|
6767
|
-
return
|
6798
|
+
return B(() => {
|
6768
6799
|
if (!_)
|
6769
6800
|
return;
|
6770
6801
|
function J() {
|
@@ -6773,7 +6804,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6773
6804
|
return _.events.on("click", J), () => {
|
6774
6805
|
_.events.off("click", J);
|
6775
6806
|
};
|
6776
|
-
}, [_, n]),
|
6807
|
+
}, [_, n]), B(() => {
|
6777
6808
|
d && _ && _.events.emit("menuopen", { nodeId: T });
|
6778
6809
|
}, [_, d, T]), /* @__PURE__ */ N(hl, { id: T, children: [
|
6779
6810
|
j,
|
@@ -6781,10 +6812,10 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6781
6812
|
Fa.Provider,
|
6782
6813
|
{
|
6783
6814
|
value: {
|
6784
|
-
activeIndex:
|
6815
|
+
activeIndex: m,
|
6785
6816
|
setActiveIndex: g,
|
6786
6817
|
getItemProps: U,
|
6787
|
-
setHasFocusInside:
|
6818
|
+
setHasFocusInside: h,
|
6788
6819
|
isOpen: d
|
6789
6820
|
},
|
6790
6821
|
children: /* @__PURE__ */ c(ml, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ c(Wo, { children: /* @__PURE__ */ c(
|
@@ -6825,32 +6856,32 @@ const th = ({
|
|
6825
6856
|
...i
|
6826
6857
|
}) => {
|
6827
6858
|
const d = p(o, a);
|
6828
|
-
return /* @__PURE__ */
|
6829
|
-
|
6830
|
-
|
6831
|
-
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6835
|
-
|
6836
|
-
|
6837
|
-
|
6838
|
-
|
6839
|
-
|
6840
|
-
children:
|
6841
|
-
|
6842
|
-
|
6843
|
-
|
6844
|
-
|
6859
|
+
return /* @__PURE__ */ c(he, { children: /* @__PURE__ */ N(
|
6860
|
+
"svg",
|
6861
|
+
{
|
6862
|
+
xmlns: "http://www.w3.org/2000/svg",
|
6863
|
+
className: d,
|
6864
|
+
viewBox: r || n,
|
6865
|
+
fill: t || "currentColor",
|
6866
|
+
role: "img",
|
6867
|
+
"aria-hidden": !l,
|
6868
|
+
focusable: !1,
|
6869
|
+
...i,
|
6870
|
+
children: [
|
6871
|
+
s && l && /* @__PURE__ */ c("title", { children: s }),
|
6872
|
+
e
|
6873
|
+
]
|
6874
|
+
}
|
6875
|
+
) });
|
6845
6876
|
};
|
6846
6877
|
/*!
|
6847
|
-
@versini/ui-svgicon v4.
|
6878
|
+
@versini/ui-svgicon v4.1.1
|
6848
6879
|
© 2025 gizmette.com
|
6849
6880
|
*/
|
6850
6881
|
try {
|
6851
6882
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
6852
|
-
version: "4.
|
6853
|
-
buildTime: "
|
6883
|
+
version: "4.1.1",
|
6884
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6854
6885
|
homepage: "https://github.com/aversini/ui-components",
|
6855
6886
|
license: "MIT"
|
6856
6887
|
});
|
@@ -6884,13 +6915,13 @@ const rh = ({
|
|
6884
6915
|
}
|
6885
6916
|
);
|
6886
6917
|
/*!
|
6887
|
-
@versini/ui-icons v4.
|
6918
|
+
@versini/ui-icons v4.8.1
|
6888
6919
|
© 2025 gizmette.com
|
6889
6920
|
*/
|
6890
6921
|
try {
|
6891
6922
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
6892
|
-
version: "4.
|
6893
|
-
buildTime: "
|
6923
|
+
version: "4.8.1",
|
6924
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6894
6925
|
homepage: "https://github.com/aversini/ui-components",
|
6895
6926
|
license: "MIT"
|
6896
6927
|
});
|
@@ -6908,7 +6939,7 @@ const Ye = te.forwardRef(
|
|
6908
6939
|
...l
|
6909
6940
|
}, i) => {
|
6910
6941
|
let d = "";
|
6911
|
-
const f = te.useContext(Fa), u = es({ label: t ? null : e }),
|
6942
|
+
const f = te.useContext(Fa), u = es({ label: t ? null : e }), h = Zo(), m = Xa([u.ref, i]);
|
6912
6943
|
if (a && n)
|
6913
6944
|
return /* @__PURE__ */ c(
|
6914
6945
|
"div",
|
@@ -6917,7 +6948,7 @@ const Ye = te.forwardRef(
|
|
6917
6948
|
...f.getItemProps({
|
6918
6949
|
onClick(y) {
|
6919
6950
|
var v;
|
6920
|
-
o || ((v = l.onClick) == null || v.call(l, y),
|
6951
|
+
o || ((v = l.onClick) == null || v.call(l, y), h == null || h.events.emit("click"));
|
6921
6952
|
}
|
6922
6953
|
}),
|
6923
6954
|
children: n
|
@@ -6935,7 +6966,7 @@ const Ye = te.forwardRef(
|
|
6935
6966
|
"button",
|
6936
6967
|
{
|
6937
6968
|
...l,
|
6938
|
-
ref:
|
6969
|
+
ref: m,
|
6939
6970
|
role: "menuitem",
|
6940
6971
|
className: g,
|
6941
6972
|
tabIndex: 0,
|
@@ -6943,7 +6974,7 @@ const Ye = te.forwardRef(
|
|
6943
6974
|
...f.getItemProps({
|
6944
6975
|
onClick(y) {
|
6945
6976
|
var v;
|
6946
|
-
o || ((v = l.onClick) == null || v.call(l, y),
|
6977
|
+
o || ((v = l.onClick) == null || v.call(l, y), h == null || h.events.emit("click"));
|
6947
6978
|
},
|
6948
6979
|
onFocus(y) {
|
6949
6980
|
var v;
|
@@ -6974,13 +7005,13 @@ const ah = ({ className: e, ...t }) => {
|
|
6974
7005
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
6975
7006
|
};
|
6976
7007
|
/*!
|
6977
|
-
@versini/ui-menu v3.3.
|
7008
|
+
@versini/ui-menu v3.3.2
|
6978
7009
|
© 2025 gizmette.com
|
6979
7010
|
*/
|
6980
7011
|
try {
|
6981
7012
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
6982
|
-
version: "3.3.
|
6983
|
-
buildTime: "
|
7013
|
+
version: "3.3.2",
|
7014
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
6984
7015
|
homepage: "https://github.com/aversini/ui-components",
|
6985
7016
|
license: "MIT"
|
6986
7017
|
});
|
@@ -6998,16 +7029,16 @@ const nh = (e) => {
|
|
6998
7029
|
const { dispatch: r, setChatId: a, setInitialMessages: n } = ee(_e), { dispatch: o } = ee(ln), { getAccessToken: s, user: l } = Se(), { data: i, isSuccess: d } = Cr({
|
6999
7030
|
user: l == null ? void 0 : l.username,
|
7000
7031
|
getAccessToken: s
|
7001
|
-
}), f = (u,
|
7032
|
+
}), f = (u, h, m) => {
|
7002
7033
|
u.preventDefault(), a(at()), n([]), r({
|
7003
7034
|
type: Yt,
|
7004
7035
|
payload: {
|
7005
|
-
privateChat:
|
7036
|
+
privateChat: m
|
7006
7037
|
}
|
7007
7038
|
}), o({
|
7008
|
-
type:
|
7039
|
+
type: Po,
|
7009
7040
|
payload: {
|
7010
|
-
prompt:
|
7041
|
+
prompt: h
|
7011
7042
|
}
|
7012
7043
|
});
|
7013
7044
|
};
|
@@ -7027,28 +7058,28 @@ const nh = (e) => {
|
|
7027
7058
|
children: [
|
7028
7059
|
/* @__PURE__ */ c(ai, { children: "Prompts" }),
|
7029
7060
|
i && i.tags && i.tags.map((u) => {
|
7030
|
-
let
|
7061
|
+
let h = null;
|
7031
7062
|
switch (u.slot) {
|
7032
7063
|
case 0:
|
7033
|
-
|
7064
|
+
h = /* @__PURE__ */ c(Vl, {});
|
7034
7065
|
break;
|
7035
7066
|
case 1:
|
7036
|
-
|
7067
|
+
h = /* @__PURE__ */ c(Ul, {});
|
7037
7068
|
break;
|
7038
7069
|
case 2:
|
7039
|
-
|
7070
|
+
h = /* @__PURE__ */ c(jl, {});
|
7040
7071
|
break;
|
7041
7072
|
default:
|
7042
|
-
|
7073
|
+
h = null;
|
7043
7074
|
break;
|
7044
7075
|
}
|
7045
7076
|
return u.enabled && u.label && u.content && /* @__PURE__ */ c(
|
7046
7077
|
Ye,
|
7047
7078
|
{
|
7048
7079
|
label: u.label,
|
7049
|
-
icon:
|
7050
|
-
onClick: (
|
7051
|
-
|
7080
|
+
icon: h,
|
7081
|
+
onClick: (m) => f(
|
7082
|
+
m,
|
7052
7083
|
u.content,
|
7053
7084
|
u == null ? void 0 : u.privateChat
|
7054
7085
|
)
|
@@ -7070,8 +7101,8 @@ const nh = (e) => {
|
|
7070
7101
|
u.preventDefault();
|
7071
7102
|
try {
|
7072
7103
|
if (l && s && n) {
|
7073
|
-
const
|
7074
|
-
role:
|
7104
|
+
const h = s.filter(({ content: m }) => m).map(({ role: m, content: g, id: y }) => ({
|
7105
|
+
role: m,
|
7075
7106
|
content: g,
|
7076
7107
|
id: y
|
7077
7108
|
}));
|
@@ -7081,7 +7112,7 @@ const nh = (e) => {
|
|
7081
7112
|
params: {
|
7082
7113
|
userId: (t == null ? void 0 : t.username) || "",
|
7083
7114
|
id: l,
|
7084
|
-
messages:
|
7115
|
+
messages: h,
|
7085
7116
|
provider: n,
|
7086
7117
|
usage: a
|
7087
7118
|
}
|
@@ -7090,7 +7121,7 @@ const nh = (e) => {
|
|
7090
7121
|
} catch {
|
7091
7122
|
}
|
7092
7123
|
};
|
7093
|
-
return
|
7124
|
+
return B(() => {
|
7094
7125
|
o && (s == null ? void 0 : s.length) > 0 ? d(!0) : d(!1);
|
7095
7126
|
}, [o, s]), i && /* @__PURE__ */ c(
|
7096
7127
|
mt,
|
@@ -7190,17 +7221,17 @@ function fh(e, t, r = 300) {
|
|
7190
7221
|
}
|
7191
7222
|
function ni({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: n = 300 }) {
|
7192
7223
|
return function({ children: o, position: s, preventExitTransition: l, done: i, nodeRef: d, isIn: f, playToast: u }) {
|
7193
|
-
let
|
7224
|
+
let h = r ? `${e}--${s}` : e, m = r ? `${t}--${s}` : t, g = O(0);
|
7194
7225
|
return ge(() => {
|
7195
|
-
let y = d.current, v =
|
7226
|
+
let y = d.current, v = h.split(" "), w = (_) => {
|
7196
7227
|
_.target === d.current && (u(), y.removeEventListener("animationend", w), y.removeEventListener("animationcancel", w), g.current === 0 && _.type !== "animationcancel" && y.classList.remove(...v));
|
7197
7228
|
};
|
7198
7229
|
y.classList.add(...v), y.addEventListener("animationend", w), y.addEventListener("animationcancel", w);
|
7199
|
-
}, []),
|
7230
|
+
}, []), B(() => {
|
7200
7231
|
let y = d.current, v = () => {
|
7201
7232
|
y.removeEventListener("animationend", v), a ? fh(y, i, n) : i();
|
7202
7233
|
};
|
7203
|
-
f || (l ? v() : (g.current = 1, y.className += ` ${
|
7234
|
+
f || (l ? v() : (g.current = 1, y.className += ` ${m}`, y.addEventListener("animationend", v)));
|
7204
7235
|
}, [f]), V.createElement(V.Fragment, null, o);
|
7205
7236
|
};
|
7206
7237
|
}
|
@@ -7216,21 +7247,21 @@ function hh({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
|
7216
7247
|
}, "aria-label": r }, V.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, V.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
7217
7248
|
}
|
7218
7249
|
function mh({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: n, className: o, controlledProgress: s, progress: l, rtl: i, isIn: d, theme: f }) {
|
7219
|
-
let u = n || s && l === 0,
|
7220
|
-
s && (
|
7221
|
-
let
|
7250
|
+
let u = n || s && l === 0, h = { animationDuration: `${e}ms`, animationPlayState: t ? "running" : "paused" };
|
7251
|
+
s && (h.transform = `scaleX(${l})`);
|
7252
|
+
let m = p("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": i }), g = Ke(o) ? o({ rtl: i, type: a, defaultClassName: m }) : p(m, o), y = { [s && l >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && l < 1 ? null : () => {
|
7222
7253
|
d && r();
|
7223
7254
|
} };
|
7224
|
-
return V.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": u }, V.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}` }), V.createElement("div", { role: "progressbar", "aria-hidden": u ? "true" : "false", "aria-label": "notification timer", className: g, style:
|
7255
|
+
return V.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": u }, V.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}` }), V.createElement("div", { role: "progressbar", "aria-hidden": u ? "true" : "false", "aria-label": "notification timer", className: g, style: h, ...y }));
|
7225
7256
|
}
|
7226
7257
|
var ph = 1, si = () => `${ph++}`;
|
7227
7258
|
function gh(e, t, r) {
|
7228
7259
|
let a = 1, n = 0, o = [], s = [], l = t, i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (_) => (d.add(_), () => d.delete(_)), u = () => {
|
7229
7260
|
s = Array.from(i.values()), d.forEach((_) => _());
|
7230
|
-
},
|
7261
|
+
}, h = ({ containerId: _, toastId: T, updateId: I }) => {
|
7231
7262
|
let C = _ ? _ !== e : e !== 1, k = i.has(T) && I == null;
|
7232
7263
|
return C || k;
|
7233
|
-
},
|
7264
|
+
}, m = (_, T) => {
|
7234
7265
|
i.forEach((I) => {
|
7235
7266
|
var C;
|
7236
7267
|
(T == null || T === I.props.toastId) && ((C = I.toggle) == null || C.call(I, _));
|
@@ -7252,8 +7283,8 @@ function gh(e, t, r) {
|
|
7252
7283
|
let { toastId: C, updateId: k } = _.props, x = k == null;
|
7253
7284
|
_.staleId && i.delete(_.staleId), _.isActive = !0, i.set(C, _), u(), r(ko(_, x ? "added" : "updated")), x && ((I = (T = _.props).onOpen) == null || I.call(T));
|
7254
7285
|
};
|
7255
|
-
return { id: e, props: l, observe: f, toggle:
|
7256
|
-
if (
|
7286
|
+
return { id: e, props: l, observe: f, toggle: m, removeToast: y, toasts: i, clearQueue: v, buildToast: (_, T) => {
|
7287
|
+
if (h(T)) return;
|
7257
7288
|
let { toastId: I, updateId: C, data: k, staleId: x, delay: b } = T, E = C == null;
|
7258
7289
|
E && n++;
|
7259
7290
|
let R = { ...l, style: l.toastStyle, key: a++, ...Object.fromEntries(Object.entries(T).filter(([L, $]) => $ != null)), toastId: I, updateId: C, data: k, isIn: !1, className: Ua(T.className || l.toastClassName), progressClassName: Ua(T.progressClassName || l.progressClassName), autoClose: T.isLoading ? !1 : uh(T.autoClose, l.autoClose), closeToast(L) {
|
@@ -7361,16 +7392,16 @@ function Eh(e) {
|
|
7361
7392
|
function tr(e, t) {
|
7362
7393
|
return ci(e, t), t.toastId;
|
7363
7394
|
}
|
7364
|
-
function
|
7395
|
+
function Dr(e, t) {
|
7365
7396
|
return { ...t, type: t && t.type || e, toastId: Eh(t) };
|
7366
7397
|
}
|
7367
|
-
function
|
7368
|
-
return (t, r) => tr(t,
|
7398
|
+
function Br(e) {
|
7399
|
+
return (t, r) => tr(t, Dr(e, r));
|
7369
7400
|
}
|
7370
7401
|
function Q(e, t) {
|
7371
|
-
return tr(e,
|
7402
|
+
return tr(e, Dr("default", t));
|
7372
7403
|
}
|
7373
|
-
Q.loading = (e, t) => tr(e,
|
7404
|
+
Q.loading = (e, t) => tr(e, Dr("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t }));
|
7374
7405
|
function Ih(e, { pending: t, error: r, success: a }, n) {
|
7375
7406
|
let o;
|
7376
7407
|
t && (o = ft(t) ? Q.loading(t, n) : Q.loading(t.render, { ...n, ...t }));
|
@@ -7379,18 +7410,18 @@ function Ih(e, { pending: t, error: r, success: a }, n) {
|
|
7379
7410
|
Q.dismiss(o);
|
7380
7411
|
return;
|
7381
7412
|
}
|
7382
|
-
let
|
7383
|
-
return o ? Q.update(o, { ...
|
7413
|
+
let h = { type: d, ...s, ...n, data: u }, m = ft(f) ? { render: f } : f;
|
7414
|
+
return o ? Q.update(o, { ...h, ...m }) : Q(m.render, { ...h, ...m }), u;
|
7384
7415
|
}, i = Ke(e) ? e() : e;
|
7385
7416
|
return i.then((d) => l("success", a, d)).catch((d) => l("error", r, d)), i;
|
7386
7417
|
}
|
7387
7418
|
Q.promise = Ih;
|
7388
|
-
Q.success =
|
7389
|
-
Q.info =
|
7390
|
-
Q.error =
|
7391
|
-
Q.warning =
|
7419
|
+
Q.success = Br("success");
|
7420
|
+
Q.info = Br("info");
|
7421
|
+
Q.error = Br("error");
|
7422
|
+
Q.warning = Br("warning");
|
7392
7423
|
Q.warn = Q.warning;
|
7393
|
-
Q.dark = (e, t) => tr(e,
|
7424
|
+
Q.dark = (e, t) => tr(e, Dr("default", { theme: "dark", ...t }));
|
7394
7425
|
function Ch(e) {
|
7395
7426
|
_h(e);
|
7396
7427
|
}
|
@@ -7429,15 +7460,15 @@ function Sh(e) {
|
|
7429
7460
|
}
|
7430
7461
|
function Nh(e) {
|
7431
7462
|
let [t, r] = F(!1), [a, n] = F(!1), o = O(null), s = O({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: i, closeToast: d, onClick: f, closeOnClick: u } = e;
|
7432
|
-
kh({ id: e.toastId, containerId: e.containerId, fn: r }),
|
7433
|
-
if (e.pauseOnFocusLoss) return
|
7434
|
-
|
7463
|
+
kh({ id: e.toastId, containerId: e.containerId, fn: r }), B(() => {
|
7464
|
+
if (e.pauseOnFocusLoss) return h(), () => {
|
7465
|
+
m();
|
7435
7466
|
};
|
7436
7467
|
}, [e.pauseOnFocusLoss]);
|
7437
|
-
function
|
7468
|
+
function h() {
|
7438
7469
|
document.hasFocus() || w(), window.addEventListener("focus", v), window.addEventListener("blur", w);
|
7439
7470
|
}
|
7440
|
-
function
|
7471
|
+
function m() {
|
7441
7472
|
window.removeEventListener("focus", v), window.removeEventListener("blur", w);
|
7442
7473
|
}
|
7443
7474
|
function g(x) {
|
@@ -7487,33 +7518,33 @@ function Nh(e) {
|
|
7487
7518
|
f && f(x), s.canCloseOnClick && d(!0);
|
7488
7519
|
}), { playToast: v, pauseToast: w, isRunning: t, preventExitTransition: a, toastRef: o, eventHandlers: k };
|
7489
7520
|
}
|
7490
|
-
var Rh = typeof window < "u" ? ge :
|
7521
|
+
var Rh = typeof window < "u" ? ge : B, Pr = ({ theme: e, type: t, isLoading: r, ...a }) => V.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`, ...a });
|
7491
7522
|
function Ah(e) {
|
7492
|
-
return V.createElement(
|
7523
|
+
return V.createElement(Pr, { ...e }, V.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
7493
7524
|
}
|
7494
7525
|
function Oh(e) {
|
7495
|
-
return V.createElement(
|
7526
|
+
return V.createElement(Pr, { ...e }, V.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
7496
7527
|
}
|
7497
7528
|
function $h(e) {
|
7498
|
-
return V.createElement(
|
7529
|
+
return V.createElement(Pr, { ...e }, V.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
7499
7530
|
}
|
7500
7531
|
function Lh(e) {
|
7501
|
-
return V.createElement(
|
7532
|
+
return V.createElement(Pr, { ...e }, V.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
7502
7533
|
}
|
7503
7534
|
function Mh() {
|
7504
7535
|
return V.createElement("div", { className: "Toastify__spinner" });
|
7505
7536
|
}
|
7506
|
-
var Ga = { info: Oh, warning: Ah, success: $h, error: Lh, spinner: Mh },
|
7507
|
-
function
|
7537
|
+
var Ga = { info: Oh, warning: Ah, success: $h, error: Lh, spinner: Mh }, Dh = (e) => e in Ga;
|
7538
|
+
function Bh({ theme: e, type: t, isLoading: r, icon: a }) {
|
7508
7539
|
let n = null, o = { theme: e, type: t };
|
7509
|
-
return a === !1 || (Ke(a) ? n = a({ ...o, isLoading: r }) : xr(a) ? n = Qa(a, o) : r ? n = Ga.spinner() :
|
7540
|
+
return a === !1 || (Ke(a) ? n = a({ ...o, isLoading: r }) : xr(a) ? n = Qa(a, o) : r ? n = Ga.spinner() : Dh(t) && (n = Ga[t](o))), n;
|
7510
7541
|
}
|
7511
|
-
var
|
7512
|
-
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: n, playToast: o } = Nh(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast:
|
7513
|
-
return s === !1 || (Ke(s) ? j = s(W) : xr(s) ? j = Qa(s, W) : j = hh(W)), V.createElement(
|
7542
|
+
var Ph = (e) => {
|
7543
|
+
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: n, playToast: o } = Nh(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: h, transition: m, position: g, className: y, style: v, progressClassName: w, updateId: _, role: T, progress: I, rtl: C, toastId: k, deleteToast: x, isIn: b, isLoading: E, closeOnClick: R, theme: S, ariaLabel: L } = e, $ = p("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": C }, { "Toastify__toast--close-on-click": R }), M = Ke(y) ? y({ rtl: C, position: g, type: f, defaultClassName: $ }) : p($, y), U = Bh(e), D = !!I || !i, W = { closeToast: h, type: f, theme: S }, j = null;
|
7544
|
+
return s === !1 || (Ke(s) ? j = s(W) : xr(s) ? j = Qa(s, W) : j = hh(W)), V.createElement(m, { isIn: b, done: x, position: g, preventExitTransition: r, nodeRef: a, playToast: o }, V.createElement("div", { id: k, tabIndex: 0, onClick: d, "data-in": b, className: M, ...n, style: v, ref: a, ...b && { role: T, "aria-label": L } }, U != null && V.createElement("div", { className: p("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !E }) }, U), oi(l, e, !t), j, !e.customProgressBar && V.createElement(mh, { ..._ && !D ? { key: `p-${_}` } : {}, rtl: C, theme: S, delay: i, isRunning: t, isIn: b, closeToast: h, hide: u, type: f, className: w, controlledProgress: D, progress: I || 0 })));
|
7514
7545
|
}, ui = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), zh = ni(ui("bounce", !0)), Wa = ni(ui("slide", !0)), Vh = { position: "top-right", transition: zh, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" };
|
7515
7546
|
function fi(e) {
|
7516
|
-
let t = { ...Vh, ...e }, r = e.stacked, [a, n] = F(!0), o = O(null), { getToastToRender: s, isToastActive: l, count: i } = Sh(t), { className: d, style: f, rtl: u, containerId:
|
7547
|
+
let t = { ...Vh, ...e }, r = e.stacked, [a, n] = F(!0), o = O(null), { getToastToRender: s, isToastActive: l, count: i } = Sh(t), { className: d, style: f, rtl: u, containerId: h, hotKeys: m } = t;
|
7517
7548
|
function g(v) {
|
7518
7549
|
let w = p("Toastify__toast-container", `Toastify__toast-container--${v}`, { "Toastify__toast-container--rtl": u });
|
7519
7550
|
return Ke(d) ? d({ position: v, rtl: u, defaultClassName: w }) : p(w, Ua(d));
|
@@ -7532,20 +7563,20 @@ function fi(e) {
|
|
7532
7563
|
b.style.setProperty("--y", `${T ? E : E * -1}px`), b.style.setProperty("--g", `${_}`), b.style.setProperty("--s", `${1 - (a ? C : 0)}`), I += b.offsetHeight, C += 0.025;
|
7533
7564
|
});
|
7534
7565
|
}
|
7535
|
-
}, [a, i, r]),
|
7566
|
+
}, [a, i, r]), B(() => {
|
7536
7567
|
function v(w) {
|
7537
7568
|
var _;
|
7538
7569
|
let T = o.current;
|
7539
|
-
|
7570
|
+
m(w) && ((_ = T.querySelector('[tabIndex="0"]')) == null || _.focus(), n(!1), Q.pause()), w.key === "Escape" && (document.activeElement === T || T != null && T.contains(document.activeElement)) && (n(!0), Q.play());
|
7540
7571
|
}
|
7541
7572
|
return document.addEventListener("keydown", v), () => {
|
7542
7573
|
document.removeEventListener("keydown", v);
|
7543
7574
|
};
|
7544
|
-
}, [
|
7575
|
+
}, [m]), V.createElement("section", { ref: o, className: "Toastify", id: h, onMouseEnter: () => {
|
7545
7576
|
r && (n(!1), Q.pause());
|
7546
7577
|
}, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((v, w) => {
|
7547
7578
|
let _ = w.length ? { ...f } : { ...f, pointerEvents: "none" };
|
7548
|
-
return V.createElement("div", { tabIndex: -1, className: g(v), "data-stacked": r, style: _, key: `c-${v}` }, w.map(({ content: T, props: I }) => V.createElement(
|
7579
|
+
return V.createElement("div", { tabIndex: -1, className: g(v), "data-stacked": r, style: _, key: `c-${v}` }, w.map(({ content: T, props: I }) => V.createElement(Ph, { ...I, stacked: r, collapseAll: y, isIn: l(I.toastId, I.containerId), key: `t-${I.key}` }, T)));
|
7549
7580
|
}));
|
7550
7581
|
}
|
7551
7582
|
const Fh = ({
|
@@ -7559,14 +7590,14 @@ const Fh = ({
|
|
7559
7590
|
} = ee(_e), { getAccessToken: s, user: l } = Se(), { status: i } = ht(), { isSuccess: d, refetch: f } = Cr({
|
7560
7591
|
user: l == null ? void 0 : l.username,
|
7561
7592
|
getAccessToken: s
|
7562
|
-
}), u = async (
|
7593
|
+
}), u = async (h) => {
|
7563
7594
|
try {
|
7564
|
-
n(at()), o([]),
|
7565
|
-
provider:
|
7595
|
+
n(at()), o([]), h !== r && (await ms({
|
7596
|
+
provider: h,
|
7566
7597
|
accessToken: await s(),
|
7567
7598
|
username: (l == null ? void 0 : l.username) || ""
|
7568
7599
|
}), f(), Q.success(
|
7569
|
-
`${zo} ${
|
7600
|
+
`${zo} ${h}`,
|
7570
7601
|
fa({
|
7571
7602
|
containerId: "toggle-provider",
|
7572
7603
|
transition: Wa
|
@@ -7678,8 +7709,8 @@ const Fh = ({
|
|
7678
7709
|
setInput: d,
|
7679
7710
|
handleInputChange: f,
|
7680
7711
|
handleSubmit: u,
|
7681
|
-
setMessages:
|
7682
|
-
status:
|
7712
|
+
setMessages: h,
|
7713
|
+
status: m
|
7683
7714
|
} = ht({
|
7684
7715
|
onFinish: (b, { usage: E }) => {
|
7685
7716
|
l(), g({
|
@@ -7690,7 +7721,7 @@ const Fh = ({
|
|
7690
7721
|
});
|
7691
7722
|
},
|
7692
7723
|
onError: () => {
|
7693
|
-
|
7724
|
+
h((b) => [
|
7694
7725
|
...b,
|
7695
7726
|
{
|
7696
7727
|
id: at(),
|
@@ -7700,8 +7731,8 @@ const Fh = ({
|
|
7700
7731
|
]);
|
7701
7732
|
}
|
7702
7733
|
});
|
7703
|
-
|
7704
|
-
switch (
|
7734
|
+
B(() => {
|
7735
|
+
switch (m) {
|
7705
7736
|
case "ready":
|
7706
7737
|
g({
|
7707
7738
|
type: vt,
|
@@ -7736,7 +7767,7 @@ const Fh = ({
|
|
7736
7767
|
loading: !1,
|
7737
7768
|
streaming: !1
|
7738
7769
|
}
|
7739
|
-
}),
|
7770
|
+
}), h((b) => [
|
7740
7771
|
...b,
|
7741
7772
|
{
|
7742
7773
|
id: at(),
|
@@ -7746,7 +7777,7 @@ const Fh = ({
|
|
7746
7777
|
]);
|
7747
7778
|
break;
|
7748
7779
|
}
|
7749
|
-
}, [
|
7780
|
+
}, [m, h]);
|
7750
7781
|
const { dispatch: g } = ee(_e), y = O(!1), v = O(0), w = O(null), _ = O(null), T = Ft(), I = Wh({
|
7751
7782
|
className: ""
|
7752
7783
|
}), C = Y(() => {
|
@@ -7778,16 +7809,16 @@ const Fh = ({
|
|
7778
7809
|
_ && _.current && !ua() && _.current.focus();
|
7779
7810
|
}
|
7780
7811
|
]
|
7781
|
-
]),
|
7812
|
+
]), B(() => {
|
7782
7813
|
if (n.prompt !== "") {
|
7783
7814
|
const b = n.prompt.endsWith(":") && !n.prompt.endsWith(": ") ? n.prompt + " " : n.prompt;
|
7784
7815
|
b.indexOf(Sn) !== -1 ? navigator.clipboard.readText().then((R) => {
|
7785
7816
|
d(b.replace(Sn, R));
|
7786
7817
|
}) : d(b), !ua() && _.current && _.current.focus(), o({
|
7787
|
-
type:
|
7818
|
+
type: Bo
|
7788
7819
|
});
|
7789
7820
|
}
|
7790
|
-
}, [n, o, d]),
|
7821
|
+
}, [n, o, d]), B(() => {
|
7791
7822
|
if (y.current === !1) {
|
7792
7823
|
y.current = !0, !i && dr(_);
|
7793
7824
|
return;
|
@@ -7795,7 +7826,7 @@ const Fh = ({
|
|
7795
7826
|
a > 0 && a !== v.current ? (v.current = a, setTimeout(() => {
|
7796
7827
|
_.current && (!i && dr(_), _.current.focus());
|
7797
7828
|
}, qh)) : r === !1 && !i && (dr(_), _.current && _.current.focus());
|
7798
|
-
}, [a, r, i]),
|
7829
|
+
}, [a, r, i]), B(() => {
|
7799
7830
|
n.lastTriggeredTimestamp && setTimeout(() => {
|
7800
7831
|
C();
|
7801
7832
|
}, 100);
|
@@ -7831,21 +7862,21 @@ const Fh = ({
|
|
7831
7862
|
state: { footerHeight: n, footerPosition: o },
|
7832
7863
|
dispatch: s
|
7833
7864
|
} = ee(cn), { messages: l } = ht(), { height: i } = ic(), { height: d } = lc(), [f, u] = ss();
|
7834
|
-
return
|
7865
|
+
return B(() => {
|
7835
7866
|
n !== u.height && s({
|
7836
7867
|
type: us,
|
7837
7868
|
payload: {
|
7838
7869
|
footerHeight: u.height
|
7839
7870
|
}
|
7840
7871
|
});
|
7841
|
-
}, [u.height, n, s]),
|
7872
|
+
}, [u.height, n, s]), B(() => {
|
7842
7873
|
var g, y, v, w;
|
7843
7874
|
if (!f || !f.current)
|
7844
7875
|
return;
|
7845
|
-
const
|
7876
|
+
const h = i - d, m = (g = f == null ? void 0 : f.current) == null ? void 0 : g.style.getPropertyValue(ur);
|
7846
7877
|
if (o === Ea && (t && !r || a)) {
|
7847
|
-
const _ =
|
7848
|
-
|
7878
|
+
const _ = h > 0 && h < 100 ? Io : Eo;
|
7879
|
+
m !== `${_}px` && (s({
|
7849
7880
|
type: mr,
|
7850
7881
|
payload: {
|
7851
7882
|
footerPosition: Vt,
|
@@ -7854,8 +7885,8 @@ const Fh = ({
|
|
7854
7885
|
}), (y = f == null ? void 0 : f.current) == null || y.style.setProperty(ur, `${_}px`));
|
7855
7886
|
}
|
7856
7887
|
if (o === Vt) {
|
7857
|
-
const _ =
|
7858
|
-
|
7888
|
+
const _ = h > 0 && h < 100 ? Io : Eo;
|
7889
|
+
m !== `${_}px` && (s({
|
7859
7890
|
type: mr,
|
7860
7891
|
payload: {
|
7861
7892
|
footerPosition: Vt,
|
@@ -7865,7 +7896,7 @@ const Fh = ({
|
|
7865
7896
|
}
|
7866
7897
|
if (!t && !r && !a && l.length === 0 && i > 0 && u.height > 0) {
|
7867
7898
|
const _ = `${i - u.height - (e ? 300 : 245)}`;
|
7868
|
-
|
7899
|
+
m !== `${_}px` && Number(_) > 0 && (s({
|
7869
7900
|
type: mr,
|
7870
7901
|
payload: {
|
7871
7902
|
footerPosition: Ea,
|
@@ -7901,7 +7932,7 @@ const Fh = ({
|
|
7901
7932
|
),
|
7902
7933
|
children: [
|
7903
7934
|
/* @__PURE__ */ c(Kh, {}),
|
7904
|
-
/* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children:
|
7935
|
+
/* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Di })
|
7905
7936
|
]
|
7906
7937
|
}
|
7907
7938
|
);
|
@@ -7909,18 +7940,18 @@ const Fh = ({
|
|
7909
7940
|
const e = Ft(), t = Ft(), { data: r, isSuccess: a } = Kc(), n = (r == null ? void 0 : r.version) || "", o = (r == null ? void 0 : r.models) || [];
|
7910
7941
|
return /* @__PURE__ */ N(he, { children: [
|
7911
7942
|
/* @__PURE__ */ c("div", { className: "mb-4", children: /* @__PURE__ */ c(
|
7912
|
-
|
7943
|
+
Pe,
|
7913
7944
|
{
|
7914
7945
|
header: le.ABOUT.TITLE_CLIENT,
|
7915
7946
|
className: "prose-dark dark:prose-lighter",
|
7916
7947
|
children: gr(e, {
|
7917
|
-
[le.ABOUT.VERSION]: "8.4.
|
7918
|
-
[le.ABOUT.BUILD_TIMESTAMP]: "03/10/2025
|
7948
|
+
[le.ABOUT.VERSION]: "8.4.10",
|
7949
|
+
[le.ABOUT.BUILD_TIMESTAMP]: "03/10/2025 02:20 PM EDT"
|
7919
7950
|
})
|
7920
7951
|
}
|
7921
7952
|
) }),
|
7922
7953
|
a ? /* @__PURE__ */ c(
|
7923
|
-
|
7954
|
+
Pe,
|
7924
7955
|
{
|
7925
7956
|
header: le.ABOUT.TITLE_SERVER,
|
7926
7957
|
className: "prose-dark dark:prose-lighter",
|
@@ -7934,7 +7965,16 @@ const Fh = ({
|
|
7934
7965
|
}, Zh = ({
|
7935
7966
|
open: e,
|
7936
7967
|
onOpenChange: t
|
7937
|
-
}) => /* @__PURE__ */ c(
|
7968
|
+
}) => /* @__PURE__ */ c(
|
7969
|
+
Zt,
|
7970
|
+
{
|
7971
|
+
animation: !0,
|
7972
|
+
open: e,
|
7973
|
+
onOpenChange: t,
|
7974
|
+
title: Bi,
|
7975
|
+
children: /* @__PURE__ */ c(Xh, {})
|
7976
|
+
}
|
7977
|
+
), em = ({
|
7938
7978
|
filteredHistory: e,
|
7939
7979
|
dispatch: t,
|
7940
7980
|
onOpenChange: r,
|
@@ -7947,17 +7987,17 @@ const Fh = ({
|
|
7947
7987
|
message: ""
|
7948
7988
|
}), [i, d] = F(!1), [f, u] = F(
|
7949
7989
|
Rn + An
|
7950
|
-
), { state:
|
7990
|
+
), { state: h, dispatch: m } = ee(Nr), {
|
7951
7991
|
state: { provider: g },
|
7952
7992
|
setChatId: y,
|
7953
7993
|
setInitialMessages: v
|
7954
7994
|
} = ee(_e), { setInput: w } = ht(), [, _] = Ct({
|
7955
7995
|
key: It + Vo,
|
7956
|
-
initialValue:
|
7996
|
+
initialValue: h.sortDirection
|
7957
7997
|
}), T = (b) => {
|
7958
|
-
switch (
|
7998
|
+
switch (h.sortDirection) {
|
7959
7999
|
case ze.ASC:
|
7960
|
-
_(ze.DESC),
|
8000
|
+
_(ze.DESC), m({
|
7961
8001
|
type: ca,
|
7962
8002
|
payload: {
|
7963
8003
|
sortedCell: b,
|
@@ -7966,7 +8006,7 @@ const Fh = ({
|
|
7966
8006
|
});
|
7967
8007
|
break;
|
7968
8008
|
default:
|
7969
|
-
_(ze.ASC),
|
8009
|
+
_(ze.ASC), m({
|
7970
8010
|
type: ca,
|
7971
8011
|
payload: {
|
7972
8012
|
sortedCell: b,
|
@@ -7986,7 +8026,7 @@ const Fh = ({
|
|
7986
8026
|
id: b.id
|
7987
8027
|
}
|
7988
8028
|
}), a(""), Q.error(
|
7989
|
-
|
8029
|
+
Pi,
|
7990
8030
|
fa({
|
7991
8031
|
autoClose: 2e3,
|
7992
8032
|
containerId: "history-table",
|
@@ -8030,7 +8070,7 @@ const Fh = ({
|
|
8030
8070
|
}, k = Y((b) => {
|
8031
8071
|
b[0].isIntersecting && u((R) => R + Rn);
|
8032
8072
|
}, []);
|
8033
|
-
return
|
8073
|
+
return B(() => {
|
8034
8074
|
const b = {
|
8035
8075
|
// root: null,
|
8036
8076
|
rootMargin: "20px"
|
@@ -8066,8 +8106,8 @@ const Fh = ({
|
|
8066
8106
|
}
|
8067
8107
|
),
|
8068
8108
|
/* @__PURE__ */ c(fi, { containerId: "history-table" }),
|
8069
|
-
/* @__PURE__ */ N(
|
8070
|
-
/* @__PURE__ */ c(
|
8109
|
+
/* @__PURE__ */ N(Bc, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
8110
|
+
/* @__PURE__ */ c(Pc, { children: /* @__PURE__ */ N(jr, { children: [
|
8071
8111
|
/* @__PURE__ */ c(Re, { className: "sr-only", children: "Row" }),
|
8072
8112
|
/* @__PURE__ */ c(
|
8073
8113
|
Fc,
|
@@ -8075,8 +8115,8 @@ const Fh = ({
|
|
8075
8115
|
buttonClassName: "text-xs sm:text-sm",
|
8076
8116
|
cellId: "timestamp",
|
8077
8117
|
align: "left",
|
8078
|
-
sortDirection:
|
8079
|
-
sortedCell:
|
8118
|
+
sortDirection: h.sortDirection,
|
8119
|
+
sortedCell: h.sortedCell,
|
8080
8120
|
onClick: () => {
|
8081
8121
|
T("timestamp");
|
8082
8122
|
},
|
@@ -8181,7 +8221,7 @@ const Fh = ({
|
|
8181
8221
|
}) => {
|
8182
8222
|
const { getAccessToken: r, user: a } = Se(), { dispatch: n } = ee(_e), [o, s] = F([]), l = O(null), { state: i, dispatch: d } = ee(Nr), [f, u] = F(
|
8183
8223
|
i.sortDirection
|
8184
|
-
), { data:
|
8224
|
+
), { data: h, refetch: m } = ps({
|
8185
8225
|
enabled: e,
|
8186
8226
|
user: (a == null ? void 0 : a.username) || "",
|
8187
8227
|
searchString: i.searchString,
|
@@ -8191,71 +8231,80 @@ const Fh = ({
|
|
8191
8231
|
key: It + Fo,
|
8192
8232
|
initialValue: i.searchString
|
8193
8233
|
});
|
8194
|
-
|
8234
|
+
B(() => {
|
8195
8235
|
i.sortDirection !== f && u(i.sortDirection);
|
8196
|
-
}, [i, f]),
|
8197
|
-
|
8198
|
-
}, [
|
8236
|
+
}, [i, f]), B(() => {
|
8237
|
+
h && s(h);
|
8238
|
+
}, [h]);
|
8199
8239
|
const y = async (_) => {
|
8200
8240
|
g(_), d({
|
8201
|
-
type:
|
8241
|
+
type: Do,
|
8202
8242
|
payload: { searchString: _ }
|
8203
8243
|
});
|
8204
8244
|
}, v = Fi((_) => {
|
8205
8245
|
y(_.target.value.trim());
|
8206
8246
|
}, 500);
|
8207
|
-
return /* @__PURE__ */ c(
|
8208
|
-
|
8209
|
-
|
8210
|
-
|
8211
|
-
|
8212
|
-
|
8213
|
-
|
8214
|
-
|
8215
|
-
|
8216
|
-
|
8217
|
-
|
8218
|
-
|
8219
|
-
ref: l,
|
8220
|
-
defaultValue: i.searchString,
|
8221
|
-
focusMode: "light",
|
8222
|
-
mode: "light",
|
8223
|
-
name: "Search",
|
8224
|
-
label: "Search",
|
8225
|
-
onChange: v,
|
8226
|
-
className: "my-2",
|
8227
|
-
rightElement: /* @__PURE__ */ c("div", { className: "text-copy-dark", children: /* @__PURE__ */ c(
|
8228
|
-
Ae,
|
8247
|
+
return /* @__PURE__ */ c(
|
8248
|
+
Zt,
|
8249
|
+
{
|
8250
|
+
animation: !0,
|
8251
|
+
open: e,
|
8252
|
+
onOpenChange: t,
|
8253
|
+
title: zi,
|
8254
|
+
children: /* @__PURE__ */ N(he, { children: [
|
8255
|
+
/* @__PURE__ */ c("form", { autoComplete: "off", onSubmit: async (_) => {
|
8256
|
+
_.preventDefault();
|
8257
|
+
}, children: /* @__PURE__ */ c(
|
8258
|
+
Vi,
|
8229
8259
|
{
|
8230
|
-
|
8231
|
-
|
8260
|
+
placeholder: "Search",
|
8261
|
+
labelHidden: !0,
|
8262
|
+
noBorder: !0,
|
8263
|
+
autoCapitalize: "off",
|
8264
|
+
autoComplete: "off",
|
8265
|
+
autoCorrect: "off",
|
8266
|
+
ref: l,
|
8267
|
+
defaultValue: i.searchString,
|
8268
|
+
focusMode: "light",
|
8269
|
+
mode: "light",
|
8270
|
+
name: "Search",
|
8232
8271
|
label: "Search",
|
8233
|
-
|
8234
|
-
|
8235
|
-
|
8236
|
-
|
8237
|
-
|
8238
|
-
|
8239
|
-
|
8272
|
+
onChange: v,
|
8273
|
+
className: "my-2",
|
8274
|
+
rightElement: /* @__PURE__ */ c("div", { className: "text-copy-dark", children: /* @__PURE__ */ c(
|
8275
|
+
Ae,
|
8276
|
+
{
|
8277
|
+
mode: "dark",
|
8278
|
+
focusMode: "dark",
|
8279
|
+
label: "Search",
|
8280
|
+
size: "small",
|
8281
|
+
onClick: () => {
|
8282
|
+
var _;
|
8283
|
+
y(""), (_ = l.current) != null && _.value && (l.current.value = "", l.current.focus());
|
8284
|
+
},
|
8285
|
+
disabled: i.searchString === "",
|
8286
|
+
children: i.searchString !== "" ? /* @__PURE__ */ c(rs, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ c(Gl, { monotone: !0, size: "size-3" })
|
8287
|
+
}
|
8288
|
+
) })
|
8289
|
+
}
|
8290
|
+
) }),
|
8291
|
+
/* @__PURE__ */ c("div", { className: "flex flex-col sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ c(
|
8292
|
+
em,
|
8293
|
+
{
|
8294
|
+
mutate: m,
|
8295
|
+
filteredHistory: o,
|
8296
|
+
dispatch: n,
|
8297
|
+
onOpenChange: t
|
8240
8298
|
}
|
8241
8299
|
) })
|
8242
|
-
}
|
8243
|
-
|
8244
|
-
|
8245
|
-
em,
|
8246
|
-
{
|
8247
|
-
mutate: h,
|
8248
|
-
filteredHistory: o,
|
8249
|
-
dispatch: n,
|
8250
|
-
onOpenChange: t
|
8251
|
-
}
|
8252
|
-
) })
|
8253
|
-
] }) });
|
8300
|
+
] })
|
8301
|
+
}
|
8302
|
+
);
|
8254
8303
|
}, rm = ({ stats: e }) => {
|
8255
8304
|
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Se(), o = Ft(), s = Ft(), l = (r == null ? void 0 : r.username) || "";
|
8256
8305
|
return t && l ? /* @__PURE__ */ N(he, { children: [
|
8257
8306
|
/* @__PURE__ */ c(
|
8258
|
-
|
8307
|
+
Pe,
|
8259
8308
|
{
|
8260
8309
|
header: le.PREFERENCES.TITLE,
|
8261
8310
|
className: "prose-dark dark:prose-lighter",
|
@@ -8266,7 +8315,7 @@ const Fh = ({
|
|
8266
8315
|
}
|
8267
8316
|
),
|
8268
8317
|
n !== Ui.PASSKEY && !da() && /* @__PURE__ */ N(
|
8269
|
-
|
8318
|
+
Pe,
|
8270
8319
|
{
|
8271
8320
|
className: "prose-dark dark:prose-lighter mt-4",
|
8272
8321
|
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ N(wr, { columnGap: 3, alignVertical: "center", children: [
|
@@ -8289,7 +8338,7 @@ const Fh = ({
|
|
8289
8338
|
}
|
8290
8339
|
),
|
8291
8340
|
/* @__PURE__ */ c(
|
8292
|
-
|
8341
|
+
Pe,
|
8293
8342
|
{
|
8294
8343
|
header: le.MAIN_STATISTICS.TITLE,
|
8295
8344
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -8310,16 +8359,25 @@ const Fh = ({
|
|
8310
8359
|
user: a == null ? void 0 : a.username,
|
8311
8360
|
getAccessToken: r
|
8312
8361
|
});
|
8313
|
-
return o ? /* @__PURE__ */ c(
|
8362
|
+
return o ? /* @__PURE__ */ c(
|
8363
|
+
Zt,
|
8364
|
+
{
|
8365
|
+
animation: !0,
|
8366
|
+
open: e,
|
8367
|
+
onOpenChange: t,
|
8368
|
+
title: ji,
|
8369
|
+
children: /* @__PURE__ */ c(rm, { stats: n })
|
8370
|
+
}
|
8371
|
+
) : null;
|
8314
8372
|
};
|
8315
8373
|
/*!
|
8316
|
-
@versini/ui-textarea v3.0.
|
8374
|
+
@versini/ui-textarea v3.0.20
|
8317
8375
|
© 2025 gizmette.com
|
8318
8376
|
*/
|
8319
8377
|
try {
|
8320
8378
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
8321
|
-
version: "3.0.
|
8322
|
-
buildTime: "03/
|
8379
|
+
version: "3.0.20",
|
8380
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
8323
8381
|
homepage: "https://github.com/aversini/ui-components",
|
8324
8382
|
license: "MIT"
|
8325
8383
|
});
|
@@ -8328,7 +8386,7 @@ try {
|
|
8328
8386
|
const pi = "av-text-area", nm = "av-text-area-wrapper", na = "av-text-area-helper-text", om = "av-text-area__control--right", sm = "av-text-area__control--left";
|
8329
8387
|
function im() {
|
8330
8388
|
const e = O(!1);
|
8331
|
-
return
|
8389
|
+
return B(() => (e.current = !0, () => {
|
8332
8390
|
e.current = !1;
|
8333
8391
|
}), []), Y(() => e.current, []);
|
8334
8392
|
}
|
@@ -8357,7 +8415,7 @@ function Co(e) {
|
|
8357
8415
|
a.current && t() && o(i.contentRect);
|
8358
8416
|
}));
|
8359
8417
|
}), [t]);
|
8360
|
-
return
|
8418
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
8361
8419
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
8362
8420
|
}), [s, e]), [a, n];
|
8363
8421
|
}
|
@@ -8374,7 +8432,7 @@ function dm({
|
|
8374
8432
|
), d = (f) => {
|
8375
8433
|
i(f), a == null || a(f);
|
8376
8434
|
};
|
8377
|
-
return
|
8435
|
+
return B(() => {
|
8378
8436
|
(async () => e !== void 0 && !o && n > 0 && (await new Promise(
|
8379
8437
|
(f) => setTimeout(f, n)
|
8380
8438
|
), s(!0)))();
|
@@ -8472,11 +8530,11 @@ function gm({
|
|
8472
8530
|
visible: l,
|
8473
8531
|
...i
|
8474
8532
|
}) {
|
8475
|
-
const d = O(null), f = O(null), [u,
|
8533
|
+
const d = O(null), f = O(null), [u, h] = Dt(hm, {
|
8476
8534
|
announcement: null
|
8477
8535
|
});
|
8478
|
-
let
|
8479
|
-
typeof
|
8536
|
+
let m = r;
|
8537
|
+
typeof m > "u" && (m = a ? fm[a] : "assertive"), B(() => {
|
8480
8538
|
pm({
|
8481
8539
|
announcementTimeoutRef: d,
|
8482
8540
|
announcementDelay: n,
|
@@ -8484,7 +8542,7 @@ function gm({
|
|
8484
8542
|
clearAnnouncementDelay: o,
|
8485
8543
|
clearAnnouncementTimeoutRef: f,
|
8486
8544
|
onAnnouncementClear: s,
|
8487
|
-
dispatch:
|
8545
|
+
dispatch: h
|
8488
8546
|
});
|
8489
8547
|
}, [
|
8490
8548
|
e,
|
@@ -8498,7 +8556,7 @@ function gm({
|
|
8498
8556
|
return /* @__PURE__ */ c(
|
8499
8557
|
"div",
|
8500
8558
|
{
|
8501
|
-
"aria-live":
|
8559
|
+
"aria-live": m,
|
8502
8560
|
...a && { role: a },
|
8503
8561
|
className: g,
|
8504
8562
|
...i,
|
@@ -8507,13 +8565,13 @@ function gm({
|
|
8507
8565
|
);
|
8508
8566
|
}
|
8509
8567
|
/*!
|
8510
|
-
@versini/ui-liveregion v1.3.
|
8568
|
+
@versini/ui-liveregion v1.3.11
|
8511
8569
|
© 2025 gizmette.com
|
8512
8570
|
*/
|
8513
8571
|
try {
|
8514
8572
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
8515
|
-
version: "1.3.
|
8516
|
-
buildTime: "03/
|
8573
|
+
version: "1.3.11",
|
8574
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
8517
8575
|
homepage: "https://github.com/aversini/ui-components",
|
8518
8576
|
license: "MIT"
|
8519
8577
|
});
|
@@ -8634,7 +8692,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8634
8692
|
{
|
8635
8693
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
8636
8694
|
}
|
8637
|
-
),
|
8695
|
+
), h = r ? void 0 : "sr-only", m = wm({
|
8638
8696
|
disabled: n,
|
8639
8697
|
raw: r,
|
8640
8698
|
error: s,
|
@@ -8650,8 +8708,8 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8650
8708
|
return {
|
8651
8709
|
wrapper: f,
|
8652
8710
|
textArea: u,
|
8653
|
-
accessibleLabel:
|
8654
|
-
visibleLabel:
|
8711
|
+
accessibleLabel: h,
|
8712
|
+
visibleLabel: m,
|
8655
8713
|
helperText: g,
|
8656
8714
|
rightElement: y,
|
8657
8715
|
leftElement: v
|
@@ -8686,8 +8744,8 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8686
8744
|
value: d,
|
8687
8745
|
defaultValue: f,
|
8688
8746
|
disabled: u = !1,
|
8689
|
-
noBorder:
|
8690
|
-
labelId:
|
8747
|
+
noBorder: h = !1,
|
8748
|
+
labelId: m,
|
8691
8749
|
helperText: g = "",
|
8692
8750
|
helperTextOnFocus: y = !1,
|
8693
8751
|
rightElement: v,
|
@@ -8698,7 +8756,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8698
8756
|
...C
|
8699
8757
|
}, k) => {
|
8700
8758
|
var x;
|
8701
|
-
const b = O(null), E = lm([k, b]), [R, S] = Co(), [L, $] = Co(), M = O(80), U = O(-25),
|
8759
|
+
const b = O(null), E = lm([k, b]), [R, S] = Co(), [L, $] = Co(), M = O(80), U = O(-25), D = O(null), W = O(30), j = O(null), J = um({ id: e, prefix: `${pi}-` }), [me, Le] = F(0), [Ie, Xe] = F(0), [st, je] = F(
|
8702
8760
|
!!(!y && g)
|
8703
8761
|
), Me = `${t} error, ${g}`, we = xm({
|
8704
8762
|
className: o,
|
@@ -8707,7 +8765,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8707
8765
|
raw: n,
|
8708
8766
|
focusMode: i,
|
8709
8767
|
disabled: u,
|
8710
|
-
noBorder:
|
8768
|
+
noBorder: h,
|
8711
8769
|
mode: l,
|
8712
8770
|
rightElement: !!v,
|
8713
8771
|
leftElement: !!w
|
@@ -8738,7 +8796,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8738
8796
|
}, [Ce, n]), ge(() => {
|
8739
8797
|
n || setTimeout(() => {
|
8740
8798
|
var P;
|
8741
|
-
(P =
|
8799
|
+
(P = D == null ? void 0 : D.current) == null || P.style.setProperty(
|
8742
8800
|
"--av-text-area-wrapper-transition",
|
8743
8801
|
Ce ? "none" : "all 0.2s ease-out"
|
8744
8802
|
);
|
@@ -8752,7 +8810,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8752
8810
|
currentLabelOffset: U.current,
|
8753
8811
|
currentHelperTextOffset: W.current
|
8754
8812
|
});
|
8755
|
-
Z && (U.current = Z, (P =
|
8813
|
+
Z && (U.current = Z, (P = D == null ? void 0 : D.current) == null || P.style.setProperty(
|
8756
8814
|
"--av-text-area-label",
|
8757
8815
|
`${Z}px`
|
8758
8816
|
)), K && (W.current = K, (z = j == null ? void 0 : j.current) == null || z.style.setProperty(
|
@@ -8760,7 +8818,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8760
8818
|
`${K}px`
|
8761
8819
|
)), M.current = se || M.current;
|
8762
8820
|
}
|
8763
|
-
}, [Ce, n]), $.width > 0 && ((x =
|
8821
|
+
}, [Ce, n]), $.width > 0 && ((x = D == null ? void 0 : D.current) == null || x.style.setProperty(
|
8764
8822
|
"--tw-translate-x",
|
8765
8823
|
`${12 + $.width + 5}px`
|
8766
8824
|
)), /* @__PURE__ */ N("div", { className: we.wrapper, children: [
|
@@ -8768,7 +8826,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8768
8826
|
"label",
|
8769
8827
|
{
|
8770
8828
|
htmlFor: J,
|
8771
|
-
id:
|
8829
|
+
id: m,
|
8772
8830
|
className: we.accessibleLabel,
|
8773
8831
|
children: r
|
8774
8832
|
}
|
@@ -8811,7 +8869,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8811
8869
|
!n && /* @__PURE__ */ c(
|
8812
8870
|
"label",
|
8813
8871
|
{
|
8814
|
-
ref:
|
8872
|
+
ref: D,
|
8815
8873
|
"aria-hidden": !0,
|
8816
8874
|
htmlFor: J,
|
8817
8875
|
className: `${we.visibleLabel}`,
|
@@ -8841,13 +8899,13 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8841
8899
|
);
|
8842
8900
|
qa.displayName = "TextArea";
|
8843
8901
|
/*!
|
8844
|
-
@versini/ui-toggle v3.0.
|
8902
|
+
@versini/ui-toggle v3.0.12
|
8845
8903
|
© 2025 gizmette.com
|
8846
8904
|
*/
|
8847
8905
|
try {
|
8848
8906
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
8849
|
-
version: "3.0.
|
8850
|
-
buildTime: "
|
8907
|
+
version: "3.0.12",
|
8908
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
8851
8909
|
homepage: "https://github.com/aversini/ui-components",
|
8852
8910
|
license: "MIT"
|
8853
8911
|
});
|
@@ -8971,7 +9029,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
8971
9029
|
loadingLocation: !1
|
8972
9030
|
}), [d, f] = F({
|
8973
9031
|
prompts: []
|
8974
|
-
}), [u,
|
9032
|
+
}), [u, h] = F(""), [m, g] = F(""), [y, v] = Ct({
|
8975
9033
|
key: It + Gi,
|
8976
9034
|
initialValue: !1
|
8977
9035
|
}), w = (k) => {
|
@@ -8985,7 +9043,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
8985
9043
|
params: {
|
8986
9044
|
user: a == null ? void 0 : a.username,
|
8987
9045
|
instructions: u,
|
8988
|
-
location:
|
9046
|
+
location: m,
|
8989
9047
|
provider: n == null ? void 0 : n.provider,
|
8990
9048
|
tags: d.prompts
|
8991
9049
|
}
|
@@ -9044,11 +9102,12 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9044
9102
|
});
|
9045
9103
|
});
|
9046
9104
|
};
|
9047
|
-
return
|
9048
|
-
n != null && n.instructions &&
|
9105
|
+
return B(() => {
|
9106
|
+
n != null && n.instructions && h(n.instructions), n != null && n.location && g(n.location), n != null && n.tags && f({ prompts: n.tags });
|
9049
9107
|
}, [n]), o ? /* @__PURE__ */ c(
|
9050
9108
|
Zt,
|
9051
9109
|
{
|
9110
|
+
animation: !0,
|
9052
9111
|
open: e,
|
9053
9112
|
onOpenChange: I,
|
9054
9113
|
title: Wi,
|
@@ -9086,7 +9145,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9086
9145
|
),
|
9087
9146
|
children: /* @__PURE__ */ N(he, { children: [
|
9088
9147
|
/* @__PURE__ */ N(
|
9089
|
-
|
9148
|
+
Pe,
|
9090
9149
|
{
|
9091
9150
|
header: le.SETTINGS_DETAILS.TITLE,
|
9092
9151
|
className: "prose-dark dark:prose-lighter",
|
@@ -9107,7 +9166,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9107
9166
|
}
|
9108
9167
|
),
|
9109
9168
|
/* @__PURE__ */ N(
|
9110
|
-
|
9169
|
+
Pe,
|
9111
9170
|
{
|
9112
9171
|
header: "Custom Instructions",
|
9113
9172
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -9128,7 +9187,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9128
9187
|
label: "Custom Instructions",
|
9129
9188
|
value: u,
|
9130
9189
|
onChange: (k) => {
|
9131
|
-
|
9190
|
+
h(k.target.value);
|
9132
9191
|
},
|
9133
9192
|
helperText: "Press ENTER to add a new line."
|
9134
9193
|
}
|
@@ -9137,7 +9196,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9137
9196
|
}
|
9138
9197
|
),
|
9139
9198
|
/* @__PURE__ */ N(
|
9140
|
-
|
9199
|
+
Pe,
|
9141
9200
|
{
|
9142
9201
|
header: "Location",
|
9143
9202
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -9149,7 +9208,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9149
9208
|
mode: "alt-system",
|
9150
9209
|
name: "location",
|
9151
9210
|
label: "Location",
|
9152
|
-
value:
|
9211
|
+
value: m,
|
9153
9212
|
onChange: (k) => {
|
9154
9213
|
g(k.target.value);
|
9155
9214
|
},
|
@@ -9171,14 +9230,14 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9171
9230
|
}
|
9172
9231
|
),
|
9173
9232
|
/* @__PURE__ */ N(
|
9174
|
-
|
9233
|
+
Pe,
|
9175
9234
|
{
|
9176
9235
|
header: le.SETTINGS_PROMPTS.TITLE,
|
9177
9236
|
className: "prose-dark dark:prose-lighter mt-4",
|
9178
9237
|
children: [
|
9179
9238
|
/* @__PURE__ */ c("p", { className: "text-sm", children: Yi }),
|
9180
9239
|
d.prompts && d.prompts.slice(0, 3).map((k) => /* @__PURE__ */ N(
|
9181
|
-
|
9240
|
+
Pe,
|
9182
9241
|
{
|
9183
9242
|
mode: "dark",
|
9184
9243
|
noBorder: !0,
|
@@ -9313,7 +9372,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9313
9372
|
onClick: () => {
|
9314
9373
|
l(!s);
|
9315
9374
|
},
|
9316
|
-
icon: /* @__PURE__ */ c(
|
9375
|
+
icon: /* @__PURE__ */ c(Bl, {})
|
9317
9376
|
}
|
9318
9377
|
),
|
9319
9378
|
/* @__PURE__ */ c(
|
@@ -9323,7 +9382,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9323
9382
|
onClick: () => {
|
9324
9383
|
d(!i);
|
9325
9384
|
},
|
9326
|
-
icon: /* @__PURE__ */ c(
|
9385
|
+
icon: /* @__PURE__ */ c(Pl, {})
|
9327
9386
|
}
|
9328
9387
|
),
|
9329
9388
|
!e && /* @__PURE__ */ N(he, { children: [
|
@@ -9348,19 +9407,19 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9348
9407
|
] });
|
9349
9408
|
};
|
9350
9409
|
/*!
|
9351
|
-
@versini/ui-bubble v3.4.
|
9410
|
+
@versini/ui-bubble v3.4.1
|
9352
9411
|
© 2025 gizmette.com
|
9353
9412
|
*/
|
9354
9413
|
try {
|
9355
9414
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
9356
|
-
version: "3.4.
|
9357
|
-
buildTime: "03/
|
9415
|
+
version: "3.4.1",
|
9416
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
9358
9417
|
homepage: "https://github.com/aversini/ui-components",
|
9359
9418
|
license: "MIT"
|
9360
9419
|
});
|
9361
9420
|
} catch {
|
9362
9421
|
}
|
9363
|
-
const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link",
|
9422
|
+
const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link", Dm = ({
|
9364
9423
|
type: e,
|
9365
9424
|
size: t,
|
9366
9425
|
labelRight: r,
|
@@ -9396,7 +9455,7 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9396
9455
|
"h-12": t === "large" && o && (r || a)
|
9397
9456
|
});
|
9398
9457
|
}
|
9399
|
-
},
|
9458
|
+
}, Bm = ({
|
9400
9459
|
type: e,
|
9401
9460
|
size: t,
|
9402
9461
|
labelRight: r,
|
@@ -9419,7 +9478,7 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9419
9478
|
[s]: t === "large" && (r || a)
|
9420
9479
|
});
|
9421
9480
|
}
|
9422
|
-
},
|
9481
|
+
}, Pm = ({
|
9423
9482
|
mode: e,
|
9424
9483
|
noBackground: t,
|
9425
9484
|
noTruncate: r,
|
@@ -9617,22 +9676,22 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9617
9676
|
labelRight: d,
|
9618
9677
|
labelLeft: f,
|
9619
9678
|
noBackground: u,
|
9620
|
-
variant:
|
9621
|
-
noTruncate:
|
9679
|
+
variant: h,
|
9680
|
+
noTruncate: m,
|
9622
9681
|
align: g,
|
9623
9682
|
radius: y,
|
9624
9683
|
animated: v
|
9625
|
-
}) => (
|
9684
|
+
}) => (h || (h = "primary"), r ? p(No, t) : p(
|
9626
9685
|
No,
|
9627
|
-
|
9686
|
+
Pm({
|
9628
9687
|
mode: a,
|
9629
|
-
variant:
|
9688
|
+
variant: h,
|
9630
9689
|
noBackground: u,
|
9631
|
-
noTruncate:
|
9690
|
+
noTruncate: m
|
9632
9691
|
}),
|
9633
|
-
zm({ mode: a, noBackground: u, variant:
|
9692
|
+
zm({ mode: a, noBackground: u, variant: h }),
|
9634
9693
|
Vm({ radius: y }),
|
9635
|
-
|
9694
|
+
Dm({
|
9636
9695
|
type: e,
|
9637
9696
|
size: l,
|
9638
9697
|
labelRight: d,
|
@@ -9640,11 +9699,11 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9640
9699
|
align: g,
|
9641
9700
|
animated: v
|
9642
9701
|
}),
|
9643
|
-
|
9644
|
-
Hm({ mode: a, variant:
|
9702
|
+
Bm({ type: e, size: l, labelRight: d, labelLeft: f }),
|
9703
|
+
Hm({ mode: a, variant: h, noBorder: i }),
|
9645
9704
|
jm({ focusMode: n }),
|
9646
|
-
Fm({ mode: a, variant:
|
9647
|
-
Um({ mode: a, variant:
|
9705
|
+
Fm({ mode: a, variant: h, disabled: o }),
|
9706
|
+
Um({ mode: a, variant: h, disabled: o }),
|
9648
9707
|
{
|
9649
9708
|
"w-full": s,
|
9650
9709
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -9672,7 +9731,7 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9672
9731
|
vi.displayName = "BaseButton";
|
9673
9732
|
function Jm() {
|
9674
9733
|
const e = O(!1);
|
9675
|
-
return
|
9734
|
+
return B(() => (e.current = !0, () => {
|
9676
9735
|
e.current = !1;
|
9677
9736
|
}), []), Y(() => e.current, []);
|
9678
9737
|
}
|
@@ -9701,7 +9760,7 @@ function oa(e) {
|
|
9701
9760
|
a.current && t() && o(i.contentRect);
|
9702
9761
|
}));
|
9703
9762
|
}), [t]);
|
9704
|
-
return
|
9763
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
9705
9764
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
9706
9765
|
}), [s, e]), [a, n];
|
9707
9766
|
}
|
@@ -9733,8 +9792,8 @@ const Xm = {
|
|
9733
9792
|
"aria-label": d,
|
9734
9793
|
label: f,
|
9735
9794
|
size: u = "medium",
|
9736
|
-
labelRight:
|
9737
|
-
labelLeft:
|
9795
|
+
labelRight: h,
|
9796
|
+
labelLeft: m,
|
9738
9797
|
noBackground: g = !1,
|
9739
9798
|
align: y = "center",
|
9740
9799
|
radius: v = "large",
|
@@ -9753,24 +9812,24 @@ const Xm = {
|
|
9753
9812
|
className: o,
|
9754
9813
|
noBorder: i,
|
9755
9814
|
size: u,
|
9756
|
-
labelRight:
|
9757
|
-
labelLeft:
|
9815
|
+
labelRight: h,
|
9816
|
+
labelLeft: m,
|
9758
9817
|
noBackground: g,
|
9759
9818
|
align: y,
|
9760
9819
|
radius: v,
|
9761
9820
|
variant: w,
|
9762
9821
|
animated: T
|
9763
|
-
}), x = Gm({ mode: r, raw: l, iconClassName: _ }), b = Wm({ animated: T }), [E, R] = oa(), [S, L] = oa(), [$, M] = oa(), U = O(0),
|
9822
|
+
}), x = Gm({ mode: r, raw: l, iconClassName: _ }), b = Wm({ animated: T }), [E, R] = oa(), [S, L] = oa(), [$, M] = oa(), U = O(0), D = O(null), W = Km([C, D]);
|
9764
9823
|
return ge(() => {
|
9765
9824
|
$ && $.current && T && (U.current = M.width + Zm[u] + (i ? 0 : ep));
|
9766
9825
|
}, [M, $, u, i, T]), ge(() => {
|
9767
|
-
|
9826
|
+
D && D.current && T && (h && E && R.width > 0 ? (E.current && (E.current.style.opacity = "100"), D.current.style.width = `${R.width + U.current}px`) : m && L.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${L.width + U.current}px`) : (E.current && (E.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Xm[u]}px`));
|
9768
9827
|
}, [
|
9769
9828
|
R,
|
9770
|
-
|
9829
|
+
h,
|
9771
9830
|
E,
|
9772
9831
|
L,
|
9773
|
-
|
9832
|
+
m,
|
9774
9833
|
S,
|
9775
9834
|
u,
|
9776
9835
|
T
|
@@ -9787,7 +9846,7 @@ const Xm = {
|
|
9787
9846
|
/* @__PURE__ */ c(
|
9788
9847
|
Ro,
|
9789
9848
|
{
|
9790
|
-
label:
|
9849
|
+
label: m,
|
9791
9850
|
labelRef: S,
|
9792
9851
|
labelClass: b,
|
9793
9852
|
labelInnerClass: "pr-2"
|
@@ -9797,7 +9856,7 @@ const Xm = {
|
|
9797
9856
|
/* @__PURE__ */ c(
|
9798
9857
|
Ro,
|
9799
9858
|
{
|
9800
|
-
label:
|
9859
|
+
label: h,
|
9801
9860
|
labelRef: E,
|
9802
9861
|
labelClass: b,
|
9803
9862
|
labelInnerClass: "pl-2"
|
@@ -9815,13 +9874,13 @@ const Xm = {
|
|
9815
9874
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
9816
9875
|
yn.displayName = "ButtonIcon";
|
9817
9876
|
/*!
|
9818
|
-
@versini/ui-button v4.2.
|
9877
|
+
@versini/ui-button v4.2.11
|
9819
9878
|
© 2025 gizmette.com
|
9820
9879
|
*/
|
9821
9880
|
try {
|
9822
9881
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
9823
|
-
version: "4.2.
|
9824
|
-
buildTime: "03/
|
9882
|
+
version: "4.2.11",
|
9883
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
9825
9884
|
homepage: "https://github.com/aversini/ui-components",
|
9826
9885
|
license: "MIT"
|
9827
9886
|
});
|
@@ -9878,32 +9937,32 @@ const _i = ({
|
|
9878
9937
|
...i
|
9879
9938
|
}) => {
|
9880
9939
|
const d = p(o, a);
|
9881
|
-
return /* @__PURE__ */
|
9882
|
-
|
9883
|
-
|
9884
|
-
|
9885
|
-
|
9886
|
-
|
9887
|
-
|
9888
|
-
|
9889
|
-
|
9890
|
-
|
9891
|
-
|
9892
|
-
|
9893
|
-
children:
|
9894
|
-
|
9895
|
-
|
9896
|
-
|
9897
|
-
|
9940
|
+
return /* @__PURE__ */ c(he, { children: /* @__PURE__ */ N(
|
9941
|
+
"svg",
|
9942
|
+
{
|
9943
|
+
xmlns: "http://www.w3.org/2000/svg",
|
9944
|
+
className: d,
|
9945
|
+
viewBox: r || n,
|
9946
|
+
fill: t || "currentColor",
|
9947
|
+
role: "img",
|
9948
|
+
"aria-hidden": !l,
|
9949
|
+
focusable: !1,
|
9950
|
+
...i,
|
9951
|
+
children: [
|
9952
|
+
s && l && /* @__PURE__ */ c("title", { children: s }),
|
9953
|
+
e
|
9954
|
+
]
|
9955
|
+
}
|
9956
|
+
) });
|
9898
9957
|
};
|
9899
9958
|
/*!
|
9900
|
-
@versini/ui-svgicon v4.
|
9959
|
+
@versini/ui-svgicon v4.1.1
|
9901
9960
|
© 2025 gizmette.com
|
9902
9961
|
*/
|
9903
9962
|
try {
|
9904
9963
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
9905
|
-
version: "4.
|
9906
|
-
buildTime: "
|
9964
|
+
version: "4.1.1",
|
9965
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
9907
9966
|
homepage: "https://github.com/aversini/ui-components",
|
9908
9967
|
license: "MIT"
|
9909
9968
|
});
|
@@ -9954,13 +10013,13 @@ const rp = ({
|
|
9954
10013
|
}
|
9955
10014
|
);
|
9956
10015
|
/*!
|
9957
|
-
@versini/ui-icons v4.
|
10016
|
+
@versini/ui-icons v4.8.1
|
9958
10017
|
© 2025 gizmette.com
|
9959
10018
|
*/
|
9960
10019
|
try {
|
9961
10020
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
9962
|
-
version: "4.
|
9963
|
-
buildTime: "
|
10021
|
+
version: "4.8.1",
|
10022
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
9964
10023
|
homepage: "https://github.com/aversini/ui-components",
|
9965
10024
|
license: "MIT"
|
9966
10025
|
});
|
@@ -10049,33 +10108,33 @@ const np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10049
10108
|
noMaxWidth: d = !1,
|
10050
10109
|
tail: f = !1
|
10051
10110
|
}) => {
|
10052
|
-
const [u,
|
10111
|
+
const [u, h] = F(!1), m = lp({
|
10053
10112
|
kind: t,
|
10054
10113
|
className: r,
|
10055
10114
|
contentClassName: a,
|
10056
10115
|
noMaxWidth: d,
|
10057
10116
|
tail: f
|
10058
10117
|
}), g = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), y = () => {
|
10059
|
-
|
10118
|
+
h(!0), typeof s == "function" ? s(e) : typeof s == "string" ? navigator.clipboard.writeText(s) : typeof e == "string" && navigator.clipboard.writeText(e);
|
10060
10119
|
};
|
10061
|
-
return
|
10120
|
+
return B(() => {
|
10062
10121
|
let v;
|
10063
10122
|
return u && (v = window.setTimeout(() => {
|
10064
|
-
|
10123
|
+
h(!1);
|
10065
10124
|
}, 3e3)), () => {
|
10066
10125
|
clearTimeout(v);
|
10067
10126
|
};
|
10068
|
-
}, [u]), /* @__PURE__ */ N("div", { className:
|
10127
|
+
}, [u]), /* @__PURE__ */ N("div", { className: m.wrapper, children: [
|
10069
10128
|
/* @__PURE__ */ N("div", { children: [
|
10070
|
-
/* @__PURE__ */ c("div", { className:
|
10071
|
-
n && Object.keys(n).map((v, w) => n[v] ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ N("p", { className:
|
10129
|
+
/* @__PURE__ */ c("div", { className: m.main, children: e }),
|
10130
|
+
n && Object.keys(n).map((v, w) => n[v] ? /* @__PURE__ */ c("div", { className: "prose-p:m-0", children: /* @__PURE__ */ N("p", { className: m.footer, children: [
|
10072
10131
|
v,
|
10073
10132
|
": ",
|
10074
10133
|
n[v]
|
10075
10134
|
] }) }, `${v}-${w}`) : null),
|
10076
10135
|
o && o
|
10077
10136
|
] }),
|
10078
|
-
g && /* @__PURE__ */ c("div", { className:
|
10137
|
+
g && /* @__PURE__ */ c("div", { className: m.copyButton, children: /* @__PURE__ */ c(
|
10079
10138
|
yn,
|
10080
10139
|
{
|
10081
10140
|
noBorder: !0,
|
@@ -10092,13 +10151,13 @@ const np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10092
10151
|
] });
|
10093
10152
|
};
|
10094
10153
|
/*!
|
10095
|
-
@versini/ui-spinner v3.0.
|
10154
|
+
@versini/ui-spinner v3.0.12
|
10096
10155
|
© 2025 gizmette.com
|
10097
10156
|
*/
|
10098
10157
|
try {
|
10099
10158
|
window.__VERSINI_UI_SPINNER__ || (window.__VERSINI_UI_SPINNER__ = {
|
10100
|
-
version: "3.0.
|
10101
|
-
buildTime: "
|
10159
|
+
version: "3.0.12",
|
10160
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
10102
10161
|
homepage: "https://github.com/aversini/ui-components",
|
10103
10162
|
license: "MIT"
|
10104
10163
|
});
|
@@ -10394,20 +10453,20 @@ const Ao = "av-spinner", wi = ({
|
|
10394
10453
|
labelRight: d,
|
10395
10454
|
labelLeft: f,
|
10396
10455
|
noBackground: u,
|
10397
|
-
variant:
|
10398
|
-
noTruncate:
|
10456
|
+
variant: h,
|
10457
|
+
noTruncate: m,
|
10399
10458
|
align: g,
|
10400
10459
|
radius: y,
|
10401
10460
|
animated: v
|
10402
|
-
}) => (
|
10461
|
+
}) => (h || (h = "primary"), r ? p(Oo, t) : p(
|
10403
10462
|
Oo,
|
10404
10463
|
up({
|
10405
10464
|
mode: a,
|
10406
|
-
variant:
|
10465
|
+
variant: h,
|
10407
10466
|
noBackground: u,
|
10408
|
-
noTruncate:
|
10467
|
+
noTruncate: m
|
10409
10468
|
}),
|
10410
|
-
fp({ mode: a, noBackground: u, variant:
|
10469
|
+
fp({ mode: a, noBackground: u, variant: h }),
|
10411
10470
|
hp({ radius: y }),
|
10412
10471
|
cp({
|
10413
10472
|
type: e,
|
@@ -10418,10 +10477,10 @@ const Ao = "av-spinner", wi = ({
|
|
10418
10477
|
animated: v
|
10419
10478
|
}),
|
10420
10479
|
dp({ type: e, size: l, labelRight: d, labelLeft: f }),
|
10421
|
-
gp({ mode: a, variant:
|
10480
|
+
gp({ mode: a, variant: h, noBorder: i }),
|
10422
10481
|
yp({ focusMode: n }),
|
10423
|
-
mp({ mode: a, variant:
|
10424
|
-
pp({ mode: a, variant:
|
10482
|
+
mp({ mode: a, variant: h, disabled: o }),
|
10483
|
+
pp({ mode: a, variant: h, disabled: o }),
|
10425
10484
|
{
|
10426
10485
|
"w-full": s,
|
10427
10486
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -10461,8 +10520,8 @@ const xi = V.forwardRef(
|
|
10461
10520
|
variant: d = "primary",
|
10462
10521
|
noTruncate: f = !1,
|
10463
10522
|
radius: u = "large",
|
10464
|
-
...
|
10465
|
-
},
|
10523
|
+
...h
|
10524
|
+
}, m) => {
|
10466
10525
|
const g = ki({
|
10467
10526
|
type: vn,
|
10468
10527
|
mode: r,
|
@@ -10480,10 +10539,10 @@ const xi = V.forwardRef(
|
|
10480
10539
|
return /* @__PURE__ */ c(
|
10481
10540
|
_n,
|
10482
10541
|
{
|
10483
|
-
ref:
|
10542
|
+
ref: m,
|
10484
10543
|
className: g,
|
10485
10544
|
disabled: t,
|
10486
|
-
...
|
10545
|
+
...h,
|
10487
10546
|
children: e
|
10488
10547
|
}
|
10489
10548
|
);
|
@@ -10492,7 +10551,7 @@ const xi = V.forwardRef(
|
|
10492
10551
|
xi.displayName = "Button";
|
10493
10552
|
function wp() {
|
10494
10553
|
const e = O(!1);
|
10495
|
-
return
|
10554
|
+
return B(() => (e.current = !0, () => {
|
10496
10555
|
e.current = !1;
|
10497
10556
|
}), []), Y(() => e.current, []);
|
10498
10557
|
}
|
@@ -10521,7 +10580,7 @@ function sa(e) {
|
|
10521
10580
|
a.current && t() && o(i.contentRect);
|
10522
10581
|
}));
|
10523
10582
|
}), [t]);
|
10524
|
-
return
|
10583
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
10525
10584
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
10526
10585
|
}), [s, e]), [a, n];
|
10527
10586
|
}
|
@@ -10553,8 +10612,8 @@ const Tp = {
|
|
10553
10612
|
"aria-label": d,
|
10554
10613
|
label: f,
|
10555
10614
|
size: u = "medium",
|
10556
|
-
labelRight:
|
10557
|
-
labelLeft:
|
10615
|
+
labelRight: h,
|
10616
|
+
labelLeft: m,
|
10558
10617
|
noBackground: g = !1,
|
10559
10618
|
align: y = "center",
|
10560
10619
|
radius: v = "large",
|
@@ -10573,24 +10632,24 @@ const Tp = {
|
|
10573
10632
|
className: o,
|
10574
10633
|
noBorder: i,
|
10575
10634
|
size: u,
|
10576
|
-
labelRight:
|
10577
|
-
labelLeft:
|
10635
|
+
labelRight: h,
|
10636
|
+
labelLeft: m,
|
10578
10637
|
noBackground: g,
|
10579
10638
|
align: y,
|
10580
10639
|
radius: v,
|
10581
10640
|
variant: w,
|
10582
10641
|
animated: T
|
10583
|
-
}), x = bp({ mode: r, raw: l, iconClassName: _ }), b = vp({ animated: T }), [E, R] = sa(), [S, L] = sa(), [$, M] = sa(), U = O(0),
|
10642
|
+
}), x = bp({ mode: r, raw: l, iconClassName: _ }), b = vp({ animated: T }), [E, R] = sa(), [S, L] = sa(), [$, M] = sa(), U = O(0), D = O(null), W = kp([C, D]);
|
10584
10643
|
return ge(() => {
|
10585
10644
|
$ && $.current && T && (U.current = M.width + Ep[u] + (i ? 0 : Ip));
|
10586
10645
|
}, [M, $, u, i, T]), ge(() => {
|
10587
|
-
|
10646
|
+
D && D.current && T && (h && E && R.width > 0 ? (E.current && (E.current.style.opacity = "100"), D.current.style.width = `${R.width + U.current}px`) : m && L.width > 0 ? (S.current && (S.current.style.opacity = "100"), D.current.style.width = `${L.width + U.current}px`) : (E.current && (E.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), D.current.style.width = `${Tp[u]}px`));
|
10588
10647
|
}, [
|
10589
10648
|
R,
|
10590
|
-
|
10649
|
+
h,
|
10591
10650
|
E,
|
10592
10651
|
L,
|
10593
|
-
|
10652
|
+
m,
|
10594
10653
|
S,
|
10595
10654
|
u,
|
10596
10655
|
T
|
@@ -10607,7 +10666,7 @@ const Tp = {
|
|
10607
10666
|
/* @__PURE__ */ c(
|
10608
10667
|
$o,
|
10609
10668
|
{
|
10610
|
-
label:
|
10669
|
+
label: m,
|
10611
10670
|
labelRef: S,
|
10612
10671
|
labelClass: b,
|
10613
10672
|
labelInnerClass: "pr-2"
|
@@ -10617,7 +10676,7 @@ const Tp = {
|
|
10617
10676
|
/* @__PURE__ */ c(
|
10618
10677
|
$o,
|
10619
10678
|
{
|
10620
|
-
label:
|
10679
|
+
label: h,
|
10621
10680
|
labelRef: E,
|
10622
10681
|
labelClass: b,
|
10623
10682
|
labelInnerClass: "pl-2"
|
@@ -10635,13 +10694,13 @@ const Tp = {
|
|
10635
10694
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
10636
10695
|
Ti.displayName = "ButtonIcon";
|
10637
10696
|
/*!
|
10638
|
-
@versini/ui-button v4.2.
|
10697
|
+
@versini/ui-button v4.2.11
|
10639
10698
|
© 2025 gizmette.com
|
10640
10699
|
*/
|
10641
10700
|
try {
|
10642
10701
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
10643
|
-
version: "4.2.
|
10644
|
-
buildTime: "03/
|
10702
|
+
version: "4.2.11",
|
10703
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
10645
10704
|
homepage: "https://github.com/aversini/ui-components",
|
10646
10705
|
license: "MIT"
|
10647
10706
|
});
|
@@ -10730,13 +10789,13 @@ const Sp = 200, Np = ({
|
|
10730
10789
|
] });
|
10731
10790
|
};
|
10732
10791
|
/*!
|
10733
|
-
@versini/ui-truncate v3.0.
|
10792
|
+
@versini/ui-truncate v3.0.28
|
10734
10793
|
© 2025 gizmette.com
|
10735
10794
|
*/
|
10736
10795
|
try {
|
10737
10796
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
10738
|
-
version: "3.0.
|
10739
|
-
buildTime: "03/
|
10797
|
+
version: "3.0.28",
|
10798
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
10740
10799
|
homepage: "https://github.com/aversini/ui-components",
|
10741
10800
|
license: "MIT"
|
10742
10801
|
});
|
@@ -10755,7 +10814,7 @@ const Ap = ({ content: e }) => /* @__PURE__ */ c(
|
|
10755
10814
|
), Op = al(
|
10756
10815
|
() => import(
|
10757
10816
|
/* webpackChunkName: "LazyMessageAssistant" */
|
10758
|
-
"./ChatBubbleAssistant.
|
10817
|
+
"./ChatBubbleAssistant.BjhCY6rx.js"
|
10759
10818
|
).then((e) => e.ChatBubbleAssistant)
|
10760
10819
|
), $p = V.memo(
|
10761
10820
|
({
|
@@ -10822,9 +10881,9 @@ const Ap = ({ content: e }) => /* @__PURE__ */ c(
|
|
10822
10881
|
block: "end"
|
10823
10882
|
});
|
10824
10883
|
}, []);
|
10825
|
-
return
|
10884
|
+
return B(() => {
|
10826
10885
|
i && u();
|
10827
|
-
}, [i, u]),
|
10886
|
+
}, [i, u]), B(() => {
|
10828
10887
|
d.current = o === Vt ? s + l + Uo + Xi : 0;
|
10829
10888
|
}, [o, s, l]), /* @__PURE__ */ N(he, { children: [
|
10830
10889
|
/* @__PURE__ */ N("div", { className: f, ref: a, children: [
|
@@ -10847,24 +10906,24 @@ function Ei({
|
|
10847
10906
|
isComponent: e = !1,
|
10848
10907
|
headerHeight: t = 0
|
10849
10908
|
}) {
|
10850
|
-
const { user: r, getAccessToken: a } = Se(), [n, o] = F(`${Mn}px`), [s, l] = ss(), [i, d] = F(at()), [f, u] = F([]), [
|
10909
|
+
const { user: r, getAccessToken: a } = Se(), [n, o] = F(`${Mn}px`), [s, l] = ss(), [i, d] = F(at()), [f, u] = F([]), [h] = Ct({
|
10851
10910
|
key: It + Fo,
|
10852
10911
|
initialValue: ""
|
10853
|
-
}), [
|
10912
|
+
}), [m] = Ct({
|
10854
10913
|
key: It + Vo,
|
10855
10914
|
initialValue: ze.ASC
|
10856
|
-
}), [g, y] =
|
10915
|
+
}), [g, y] = Dt(Wc, {
|
10857
10916
|
footerPosition: "FOOTER_TOP",
|
10858
10917
|
footerHeight: 0,
|
10859
10918
|
footerOffset: 0
|
10860
|
-
}), [v, w] =
|
10861
|
-
searchString:
|
10919
|
+
}), [v, w] = Dt(Yc, {
|
10920
|
+
searchString: h,
|
10862
10921
|
sortedCell: "timestamp",
|
10863
|
-
sortDirection:
|
10864
|
-
}), [_, T] =
|
10922
|
+
sortDirection: m
|
10923
|
+
}), [_, T] = Dt(Jc, {
|
10865
10924
|
prompt: "",
|
10866
10925
|
lastTriggeredTimestamp: 0
|
10867
|
-
}), [I, C] =
|
10926
|
+
}), [I, C] = Dt(qc, {
|
10868
10927
|
provider: "",
|
10869
10928
|
// OpenAI, Anthropic, etc.
|
10870
10929
|
privateChat: !1,
|
@@ -10878,20 +10937,20 @@ function Ei({
|
|
10878
10937
|
user: r == null ? void 0 : r.username,
|
10879
10938
|
getAccessToken: a
|
10880
10939
|
});
|
10881
|
-
return
|
10940
|
+
return B(() => {
|
10882
10941
|
var x;
|
10883
10942
|
(x = document.getElementById("logo")) == null || x.classList.add("fadeOut"), setTimeout(() => {
|
10884
10943
|
var b;
|
10885
10944
|
(b = document.getElementById("root")) == null || b.classList.replace("app-hidden", "fadeIn");
|
10886
10945
|
}, 500);
|
10887
|
-
}),
|
10946
|
+
}), B(() => {
|
10888
10947
|
k && k.provider && C({
|
10889
10948
|
type: rn,
|
10890
10949
|
payload: {
|
10891
10950
|
provider: k.provider
|
10892
10951
|
}
|
10893
10952
|
});
|
10894
|
-
}, [k]),
|
10953
|
+
}, [k]), B(() => {
|
10895
10954
|
if (g.footerPosition === "FOOTER_BOTTOM") {
|
10896
10955
|
const x = `calc(${l.height}px + 20px)`;
|
10897
10956
|
o(
|
@@ -10946,7 +11005,7 @@ function Ei({
|
|
10946
11005
|
noMargin: !0,
|
10947
11006
|
noPadding: !0,
|
10948
11007
|
noBorder: !0,
|
10949
|
-
className:
|
11008
|
+
className: Dn({
|
10950
11009
|
extraClass: "mt-5"
|
10951
11010
|
}),
|
10952
11011
|
children: /* @__PURE__ */ c(Mm, { isComponent: e })
|
@@ -10955,7 +11014,7 @@ function Ei({
|
|
10955
11014
|
/* @__PURE__ */ c(
|
10956
11015
|
el,
|
10957
11016
|
{
|
10958
|
-
className:
|
11017
|
+
className: Dn({
|
10959
11018
|
extraClass: "transition-all ease-in-out duration-500"
|
10960
11019
|
}),
|
10961
11020
|
noMargin: !0,
|