@versini/sassysaint 8.4.8 → 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.DauQUiN1.js → App.CGaiQZvF.js} +832 -769
- package/dist/chunks/{ChatBubbleAssistant.DzcEB1od.js → ChatBubbleAssistant.BjhCY6rx.js} +29 -29
- package/dist/chunks/{J3FDRF32.DxvcgiC0.js → J3FDRF32.CPDDJOmT.js} +1 -1
- package/dist/chunks/{index.BnpZli-7.js → index.BI_o2s_q.js} +21 -21
- package/dist/chunks/{index.DMedEQ2M.js → index.BJ_JWy-S.js} +1 -1
- package/dist/chunks/{index.DPgCCdvs.js → index.DXV4Hh42.js} +3 -3
- package/dist/chunks/{index.BqzA8FXo.js → index.DwCt_tqb.js} +1 -1
- package/dist/chunks/{index.D7w-XYMZ.js → index.OKJ5UBcZ.js} +1 -1
- package/dist/chunks/{index.wsAeQTGr.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()
|
@@ -2407,8 +2407,10 @@ const Vt = "FOOTER_BOTTOM", Ea = "FOOTER_TOP", mr = "APP_SET_FOOTER_POSITION", u
|
|
2407
2407
|
user: e,
|
2408
2408
|
searchString: t,
|
2409
2409
|
sortDirection: r,
|
2410
|
-
getAccessToken: a
|
2410
|
+
getAccessToken: a,
|
2411
|
+
enabled: n = !0
|
2411
2412
|
}) => Tr({
|
2413
|
+
enabled: n,
|
2412
2414
|
staleTime: 60 * 1e3,
|
2413
2415
|
// 1 minute
|
2414
2416
|
queryKey: ["chats", e, t, r],
|
@@ -2571,41 +2573,41 @@ function sd() {
|
|
2571
2573
|
const f = JSON.parse(l, i);
|
2572
2574
|
if (f === null || typeof f != "object")
|
2573
2575
|
return f;
|
2574
|
-
const u = d && d.protoAction || "error",
|
2575
|
-
if (u === "ignore" &&
|
2576
|
+
const u = d && d.protoAction || "error", h = d && d.constructorAction || "error";
|
2577
|
+
if (u === "ignore" && h === "ignore")
|
2576
2578
|
return f;
|
2577
|
-
if (u !== "ignore" &&
|
2579
|
+
if (u !== "ignore" && h !== "ignore") {
|
2578
2580
|
if (t.test(l) === !1 && r.test(l) === !1)
|
2579
2581
|
return f;
|
2580
|
-
} else if (u !== "ignore" &&
|
2582
|
+
} else if (u !== "ignore" && h === "ignore") {
|
2581
2583
|
if (t.test(l) === !1)
|
2582
2584
|
return f;
|
2583
2585
|
} else if (r.test(l) === !1)
|
2584
2586
|
return f;
|
2585
|
-
return n(f, { protoAction: u, constructorAction:
|
2587
|
+
return n(f, { protoAction: u, constructorAction: h, safe: d && d.safe });
|
2586
2588
|
}
|
2587
2589
|
function n(l, { protoAction: i = "error", constructorAction: d = "error", safe: f } = {}) {
|
2588
2590
|
let u = [l];
|
2589
2591
|
for (; u.length; ) {
|
2590
|
-
const
|
2592
|
+
const h = u;
|
2591
2593
|
u = [];
|
2592
|
-
for (const
|
2593
|
-
if (i !== "ignore" && Object.prototype.hasOwnProperty.call(
|
2594
|
+
for (const m of h) {
|
2595
|
+
if (i !== "ignore" && Object.prototype.hasOwnProperty.call(m, "__proto__")) {
|
2594
2596
|
if (f === !0)
|
2595
2597
|
return null;
|
2596
2598
|
if (i === "error")
|
2597
2599
|
throw new SyntaxError("Object contains forbidden prototype property");
|
2598
|
-
delete
|
2600
|
+
delete m.__proto__;
|
2599
2601
|
}
|
2600
|
-
if (d !== "ignore" && Object.prototype.hasOwnProperty.call(
|
2602
|
+
if (d !== "ignore" && Object.prototype.hasOwnProperty.call(m, "constructor") && Object.prototype.hasOwnProperty.call(m.constructor, "prototype")) {
|
2601
2603
|
if (f === !0)
|
2602
2604
|
return null;
|
2603
2605
|
if (d === "error")
|
2604
2606
|
throw new SyntaxError("Object contains forbidden prototype property");
|
2605
|
-
delete
|
2607
|
+
delete m.constructor;
|
2606
2608
|
}
|
2607
|
-
for (const g in
|
2608
|
-
const y =
|
2609
|
+
for (const g in m) {
|
2610
|
+
const y = m[g];
|
2609
2611
|
y && typeof y == "object" && u.push(y);
|
2610
2612
|
}
|
2611
2613
|
}
|
@@ -3179,15 +3181,15 @@ var Ld = nn.map((e) => e.code), Md = (e) => {
|
|
3179
3181
|
throw new Error(`Failed to parse stream string. Invalid code ${r}.`);
|
3180
3182
|
const a = r, n = e.slice(t + 1), o = JSON.parse(n);
|
3181
3183
|
return $d[a].parse(o);
|
3182
|
-
},
|
3183
|
-
function
|
3184
|
+
}, Dd = 10;
|
3185
|
+
function Bd(e, t) {
|
3184
3186
|
const r = new Uint8Array(t);
|
3185
3187
|
let a = 0;
|
3186
3188
|
for (const n of e)
|
3187
3189
|
r.set(n, a), a += n.length;
|
3188
3190
|
return e.length = 0, r;
|
3189
3191
|
}
|
3190
|
-
async function
|
3192
|
+
async function Pd({
|
3191
3193
|
stream: e,
|
3192
3194
|
onTextPart: t,
|
3193
3195
|
onReasoningPart: r,
|
@@ -3200,8 +3202,8 @@ async function Dd({
|
|
3200
3202
|
onToolCallDeltaPart: d,
|
3201
3203
|
onToolCallPart: f,
|
3202
3204
|
onToolResultPart: u,
|
3203
|
-
onMessageAnnotationsPart:
|
3204
|
-
onFinishMessagePart:
|
3205
|
+
onMessageAnnotationsPart: h,
|
3206
|
+
onFinishMessagePart: m,
|
3205
3207
|
onFinishStepPart: g,
|
3206
3208
|
onStartStepPart: y
|
3207
3209
|
}) {
|
@@ -3209,11 +3211,11 @@ async function Dd({
|
|
3209
3211
|
let T = 0;
|
3210
3212
|
for (; ; ) {
|
3211
3213
|
const { value: I } = await v.read();
|
3212
|
-
if (I && (_.push(I), T += I.length, I[I.length - 1] !==
|
3214
|
+
if (I && (_.push(I), T += I.length, I[I.length - 1] !== Dd))
|
3213
3215
|
continue;
|
3214
3216
|
if (_.length === 0)
|
3215
3217
|
break;
|
3216
|
-
const C =
|
3218
|
+
const C = Bd(_, T);
|
3217
3219
|
T = 0;
|
3218
3220
|
const k = w.decode(C, { stream: !0 }).split(`
|
3219
3221
|
`).filter((x) => x !== "").map(Md);
|
@@ -3241,7 +3243,7 @@ async function Dd({
|
|
3241
3243
|
await (l == null ? void 0 : l(b));
|
3242
3244
|
break;
|
3243
3245
|
case "message_annotations":
|
3244
|
-
await (
|
3246
|
+
await (h == null ? void 0 : h(b));
|
3245
3247
|
break;
|
3246
3248
|
case "tool_call_streaming_start":
|
3247
3249
|
await (i == null ? void 0 : i(b));
|
@@ -3256,7 +3258,7 @@ async function Dd({
|
|
3256
3258
|
await (u == null ? void 0 : u(b));
|
3257
3259
|
break;
|
3258
3260
|
case "finish_message":
|
3259
|
-
await (
|
3261
|
+
await (m == null ? void 0 : m(b));
|
3260
3262
|
break;
|
3261
3263
|
case "finish_step":
|
3262
3264
|
await (g == null ? void 0 : g(b));
|
@@ -3294,7 +3296,7 @@ async function zd({
|
|
3294
3296
|
content: "",
|
3295
3297
|
parts: []
|
3296
3298
|
};
|
3297
|
-
let
|
3299
|
+
let h, m, g;
|
3298
3300
|
function y(k, x) {
|
3299
3301
|
const b = u.parts.find(
|
3300
3302
|
(E) => E.type === "tool-invocation" && E.toolInvocation.toolCallId === k
|
@@ -3332,31 +3334,31 @@ async function zd({
|
|
3332
3334
|
replaceLastMessage: d
|
3333
3335
|
});
|
3334
3336
|
}
|
3335
|
-
await
|
3337
|
+
await Pd({
|
3336
3338
|
stream: e,
|
3337
3339
|
onTextPart(k) {
|
3338
|
-
|
3340
|
+
h == null ? (h = {
|
3339
3341
|
type: "text",
|
3340
3342
|
text: k
|
3341
|
-
}, u.parts.push(
|
3343
|
+
}, u.parts.push(h)) : h.text += k, u.content += k, C();
|
3342
3344
|
},
|
3343
3345
|
onReasoningPart(k) {
|
3344
3346
|
var x;
|
3345
|
-
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 = {
|
3346
3348
|
type: "reasoning",
|
3347
3349
|
reasoning: k,
|
3348
3350
|
details: [g]
|
3349
|
-
}, u.parts.push(
|
3351
|
+
}, u.parts.push(m)) : m.reasoning += k, u.reasoning = ((x = u.reasoning) != null ? x : "") + k, C();
|
3350
3352
|
},
|
3351
3353
|
onReasoningSignaturePart(k) {
|
3352
3354
|
g != null && (g.signature = k.signature);
|
3353
3355
|
},
|
3354
3356
|
onRedactedReasoningPart(k) {
|
3355
|
-
|
3357
|
+
m == null && (m = {
|
3356
3358
|
type: "reasoning",
|
3357
3359
|
reasoning: "",
|
3358
3360
|
details: []
|
3359
|
-
}, u.parts.push(
|
3361
|
+
}, u.parts.push(m)), m.details.push({
|
3360
3362
|
type: "redacted",
|
3361
3363
|
data: k.data
|
3362
3364
|
}), g = void 0, C();
|
@@ -3439,7 +3441,7 @@ async function zd({
|
|
3439
3441
|
w == null ? w = [...k] : w.push(...k), C();
|
3440
3442
|
},
|
3441
3443
|
onFinishStepPart(k) {
|
3442
|
-
f += 1,
|
3444
|
+
f += 1, h = k.isContinued ? h : void 0, m = void 0, g = void 0;
|
3443
3445
|
},
|
3444
3446
|
onStartStepPart(k) {
|
3445
3447
|
d || (u.id = k.messageId);
|
@@ -3506,11 +3508,11 @@ async function Hd({
|
|
3506
3508
|
onFinish: d,
|
3507
3509
|
onToolCall: f,
|
3508
3510
|
generateId: u,
|
3509
|
-
fetch:
|
3510
|
-
lastMessage:
|
3511
|
+
fetch: h = Ud(),
|
3512
|
+
lastMessage: m
|
3511
3513
|
}) {
|
3512
3514
|
var g, y;
|
3513
|
-
const v = await
|
3515
|
+
const v = await h(e, {
|
3514
3516
|
method: "POST",
|
3515
3517
|
body: JSON.stringify(t),
|
3516
3518
|
headers: {
|
@@ -3548,7 +3550,7 @@ async function Hd({
|
|
3548
3550
|
await zd({
|
3549
3551
|
stream: v.body,
|
3550
3552
|
update: i,
|
3551
|
-
lastMessage:
|
3553
|
+
lastMessage: m,
|
3552
3554
|
onToolCall: f,
|
3553
3555
|
onFinish({ message: w, finishReason: _, usage: T }) {
|
3554
3556
|
d && w != null && d(w, { usage: T, finishReason: _ });
|
@@ -3705,17 +3707,17 @@ function qd() {
|
|
3705
3707
|
if (Xn) return qr;
|
3706
3708
|
Xn = 1;
|
3707
3709
|
var e = V;
|
3708
|
-
function t(u,
|
3709
|
-
return u ===
|
3710
|
+
function t(u, h) {
|
3711
|
+
return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
|
3710
3712
|
}
|
3711
3713
|
var r = typeof Object.is == "function" ? Object.is : t, a = e.useState, n = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
|
3712
|
-
function l(u,
|
3713
|
-
var
|
3714
|
+
function l(u, h) {
|
3715
|
+
var m = h(), g = a({ inst: { value: m, getSnapshot: h } }), y = g[0].inst, v = g[1];
|
3714
3716
|
return o(
|
3715
3717
|
function() {
|
3716
|
-
y.value =
|
3718
|
+
y.value = m, y.getSnapshot = h, i(y) && v({ inst: y });
|
3717
3719
|
},
|
3718
|
-
[u,
|
3720
|
+
[u, m, h]
|
3719
3721
|
), n(
|
3720
3722
|
function() {
|
3721
3723
|
return i(y) && v({ inst: y }), u(function() {
|
@@ -3723,20 +3725,20 @@ function qd() {
|
|
3723
3725
|
});
|
3724
3726
|
},
|
3725
3727
|
[u]
|
3726
|
-
), s(
|
3728
|
+
), s(m), m;
|
3727
3729
|
}
|
3728
3730
|
function i(u) {
|
3729
|
-
var
|
3731
|
+
var h = u.getSnapshot;
|
3730
3732
|
u = u.value;
|
3731
3733
|
try {
|
3732
|
-
var
|
3733
|
-
return !r(u,
|
3734
|
+
var m = h();
|
3735
|
+
return !r(u, m);
|
3734
3736
|
} catch {
|
3735
3737
|
return !0;
|
3736
3738
|
}
|
3737
3739
|
}
|
3738
|
-
function d(u,
|
3739
|
-
return
|
3740
|
+
function d(u, h) {
|
3741
|
+
return h();
|
3740
3742
|
}
|
3741
3743
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : l;
|
3742
3744
|
return qr.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, qr;
|
@@ -3754,10 +3756,10 @@ var Yr = {};
|
|
3754
3756
|
var Zn;
|
3755
3757
|
function Yd() {
|
3756
3758
|
return Zn || (Zn = 1, process.env.NODE_ENV !== "production" && function() {
|
3757
|
-
function e(
|
3758
|
-
return
|
3759
|
+
function e(m, g) {
|
3760
|
+
return m === g && (m !== 0 || 1 / m === 1 / g) || m !== m && g !== g;
|
3759
3761
|
}
|
3760
|
-
function t(
|
3762
|
+
function t(m, g) {
|
3761
3763
|
f || n.startTransition === void 0 || (f = !0, console.error(
|
3762
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."
|
3763
3765
|
));
|
@@ -3776,32 +3778,32 @@ function Yd() {
|
|
3776
3778
|
function() {
|
3777
3779
|
w.value = y, w.getSnapshot = g, r(w) && _({ inst: w });
|
3778
3780
|
},
|
3779
|
-
[
|
3781
|
+
[m, y, g]
|
3780
3782
|
), l(
|
3781
3783
|
function() {
|
3782
|
-
return r(w) && _({ inst: w }),
|
3784
|
+
return r(w) && _({ inst: w }), m(function() {
|
3783
3785
|
r(w) && _({ inst: w });
|
3784
3786
|
});
|
3785
3787
|
},
|
3786
|
-
[
|
3788
|
+
[m]
|
3787
3789
|
), d(y), y;
|
3788
3790
|
}
|
3789
|
-
function r(
|
3790
|
-
var g =
|
3791
|
-
|
3791
|
+
function r(m) {
|
3792
|
+
var g = m.getSnapshot;
|
3793
|
+
m = m.value;
|
3792
3794
|
try {
|
3793
3795
|
var y = g();
|
3794
|
-
return !o(
|
3796
|
+
return !o(m, y);
|
3795
3797
|
} catch {
|
3796
3798
|
return !0;
|
3797
3799
|
}
|
3798
3800
|
}
|
3799
|
-
function a(
|
3801
|
+
function a(m, g) {
|
3800
3802
|
return g();
|
3801
3803
|
}
|
3802
3804
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
3803
|
-
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,
|
3804
|
-
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());
|
3805
3807
|
}()), Yr;
|
3806
3808
|
}
|
3807
3809
|
var eo;
|
@@ -3838,7 +3840,7 @@ const qe = /* @__PURE__ */ new WeakMap(), tt = () => {
|
|
3838
3840
|
), Aa = Object, q = (e) => e === be, Ve = (e) => typeof e == "function", nt = (e, t) => ({
|
3839
3841
|
...e,
|
3840
3842
|
...t
|
3841
|
-
}), 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) => {
|
3842
3844
|
const r = qe.get(e);
|
3843
3845
|
return [
|
3844
3846
|
// Getter
|
@@ -3883,26 +3885,26 @@ const Zd = () => $a, [La, Ma] = Jt && window.addEventListener ? [
|
|
3883
3885
|
}, nu = {
|
3884
3886
|
initFocus: tu,
|
3885
3887
|
initReconnect: ru
|
3886
|
-
}, 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 && ([
|
3887
3889
|
"slow-2g",
|
3888
3890
|
"2g"
|
3889
3891
|
].includes(Qr.effectiveType) || Qr.saveData), sr = /* @__PURE__ */ new WeakMap(), Xr = (e, t) => Aa.prototype.toString.call(e) === `[object ${t}]`;
|
3890
3892
|
let su = 0;
|
3891
|
-
const
|
3893
|
+
const Da = (e) => {
|
3892
3894
|
const t = typeof e, r = Xr(e, "Date"), a = Xr(e, "RegExp"), n = Xr(e, "Object");
|
3893
3895
|
let o, s;
|
3894
3896
|
if (Aa(e) === e && !r && !a) {
|
3895
3897
|
if (o = sr.get(e), o) return o;
|
3896
3898
|
if (o = ++su + "~", sr.set(e, o), Array.isArray(e)) {
|
3897
3899
|
for (o = "@", s = 0; s < e.length; s++)
|
3898
|
-
o +=
|
3900
|
+
o += Da(e[s]) + ",";
|
3899
3901
|
sr.set(e, o);
|
3900
3902
|
}
|
3901
3903
|
if (n) {
|
3902
3904
|
o = "#";
|
3903
3905
|
const l = Aa.keys(e).sort();
|
3904
3906
|
for (; !q(s = l.pop()); )
|
3905
|
-
q(e[s]) || (o += s + ":" +
|
3907
|
+
q(e[s]) || (o += s + ":" + Da(e[s]) + ",");
|
3906
3908
|
sr.set(e, o);
|
3907
3909
|
}
|
3908
3910
|
} else
|
@@ -3916,14 +3918,14 @@ const Ba = (e) => {
|
|
3916
3918
|
e = "";
|
3917
3919
|
}
|
3918
3920
|
const t = e;
|
3919
|
-
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) : "", [
|
3920
3922
|
e,
|
3921
3923
|
t
|
3922
3924
|
];
|
3923
3925
|
};
|
3924
3926
|
let iu = 0;
|
3925
|
-
const
|
3926
|
-
async function
|
3927
|
+
const Ba = () => ++iu;
|
3928
|
+
async function Bs(...e) {
|
3927
3929
|
const [t, r, a, n] = e, o = nt({
|
3928
3930
|
populateCache: !0,
|
3929
3931
|
throwOnError: !0
|
@@ -3933,27 +3935,27 @@ async function Ps(...e) {
|
|
3933
3935
|
let s = o.populateCache;
|
3934
3936
|
const l = o.rollbackOnError;
|
3935
3937
|
let i = o.optimisticData;
|
3936
|
-
const d = (
|
3938
|
+
const d = (h) => typeof l == "function" ? l(h) : l !== !1, f = o.throwOnError;
|
3937
3939
|
if (Ve(r)) {
|
3938
|
-
const
|
3940
|
+
const h = r, m = [], g = t.keys();
|
3939
3941
|
for (const y of g)
|
3940
3942
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
3941
|
-
!/^\$(inf|sub)\$/.test(y) &&
|
3942
|
-
return Promise.all(
|
3943
|
+
!/^\$(inf|sub)\$/.test(y) && h(t.get(y)._k) && m.push(y);
|
3944
|
+
return Promise.all(m.map(u));
|
3943
3945
|
}
|
3944
3946
|
return u(r);
|
3945
|
-
async function u(
|
3946
|
-
const [
|
3947
|
-
if (!
|
3948
|
-
const [g, y] =
|
3949
|
-
const $ = v[
|
3950
|
-
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;
|
3951
3953
|
};
|
3952
3954
|
if (e.length < 3)
|
3953
3955
|
return I();
|
3954
3956
|
let C = a, k;
|
3955
|
-
const x =
|
3956
|
-
w[
|
3957
|
+
const x = Ba();
|
3958
|
+
w[m] = [
|
3957
3959
|
x,
|
3958
3960
|
0
|
3959
3961
|
];
|
@@ -3970,7 +3972,7 @@ async function Ps(...e) {
|
|
3970
3972
|
if (C && Ms(C))
|
3971
3973
|
if (C = await C.catch(($) => {
|
3972
3974
|
k = $;
|
3973
|
-
}), x !== w[
|
3975
|
+
}), x !== w[m][0]) {
|
3974
3976
|
if (k) throw k;
|
3975
3977
|
return C;
|
3976
3978
|
} else k && b && d(k) && (s = !0, y({
|
@@ -3991,7 +3993,7 @@ async function Ps(...e) {
|
|
3991
3993
|
error: be,
|
3992
3994
|
_c: be
|
3993
3995
|
});
|
3994
|
-
if (w[
|
3996
|
+
if (w[m][1] = Ba(), Promise.resolve(I()).then(() => {
|
3995
3997
|
y({
|
3996
3998
|
_c: be
|
3997
3999
|
});
|
@@ -4007,17 +4009,17 @@ const oo = (e, t) => {
|
|
4007
4009
|
e[r][0] && e[r][0](t);
|
4008
4010
|
}, lu = (e, t) => {
|
4009
4011
|
if (!qe.has(e)) {
|
4010
|
-
const r = nt(nu, t), a = {}, n =
|
4012
|
+
const r = nt(nu, t), a = {}, n = Bs.bind(be, e);
|
4011
4013
|
let o = tt;
|
4012
4014
|
const s = {}, l = (f, u) => {
|
4013
|
-
const
|
4014
|
-
return s[f] =
|
4015
|
-
}, 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) => {
|
4016
4018
|
e.set(f, u);
|
4017
|
-
const
|
4018
|
-
if (
|
4019
|
-
for (const g of
|
4020
|
-
g(u,
|
4019
|
+
const m = s[f];
|
4020
|
+
if (m)
|
4021
|
+
for (const g of m)
|
4022
|
+
g(u, h);
|
4021
4023
|
}, d = () => {
|
4022
4024
|
if (!qe.has(e) && (qe.set(e, [
|
4023
4025
|
a,
|
@@ -4048,7 +4050,7 @@ const oo = (e, t) => {
|
|
4048
4050
|
}, cu = (e, t, r, a, n) => {
|
4049
4051
|
const o = r.errorRetryCount, s = n.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
4050
4052
|
!q(o) && s > o || setTimeout(a, l, n);
|
4051
|
-
}, du = Ra, [
|
4053
|
+
}, du = Ra, [Ps, uu] = lu(/* @__PURE__ */ new Map()), fu = nt(
|
4052
4054
|
{
|
4053
4055
|
// events
|
4054
4056
|
onLoadingSlow: tt,
|
@@ -4069,7 +4071,7 @@ const oo = (e, t) => {
|
|
4069
4071
|
// providers
|
4070
4072
|
compare: du,
|
4071
4073
|
isPaused: () => !1,
|
4072
|
-
cache:
|
4074
|
+
cache: Ps,
|
4073
4075
|
mutate: uu,
|
4074
4076
|
fallback: {}
|
4075
4077
|
},
|
@@ -4093,7 +4095,7 @@ const oo = (e, t) => {
|
|
4093
4095
|
null,
|
4094
4096
|
(e[1] === null ? e[2] : e[1]) || {}
|
4095
4097
|
], vu = () => nt(fu, ee(mu)), _u = (e) => (t, r, a) => e(t, r && ((...o) => {
|
4096
|
-
const [s] = sn(t), [, , , l] = qe.get(
|
4098
|
+
const [s] = sn(t), [, , , l] = qe.get(Ps);
|
4097
4099
|
if (s.startsWith(pu))
|
4098
4100
|
return r(...o);
|
4099
4101
|
const i = l[s];
|
@@ -4135,7 +4137,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4135
4137
|
}), ea = {
|
4136
4138
|
dedupe: !0
|
4137
4139
|
}, Tu = (e, t, r) => {
|
4138
|
-
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) => {
|
4139
4141
|
for (const Z in M) {
|
4140
4142
|
const K = Z;
|
4141
4143
|
if (K === "data") {
|
@@ -4158,7 +4160,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4158
4160
|
return [
|
4159
4161
|
() => {
|
4160
4162
|
const de = z(R());
|
4161
|
-
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);
|
4162
4164
|
},
|
4163
4165
|
() => pe
|
4164
4166
|
];
|
@@ -4167,14 +4169,14 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4167
4169
|
w
|
4168
4170
|
]), j = Kd.useSyncExternalStore(Y(
|
4169
4171
|
(P) => L(w, (z, Z) => {
|
4170
|
-
|
4172
|
+
D(Z, z) || P();
|
4171
4173
|
}),
|
4172
4174
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4173
4175
|
[
|
4174
4176
|
a,
|
4175
4177
|
w
|
4176
4178
|
]
|
4177
|
-
), 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(
|
4178
4180
|
async (P) => {
|
4179
4181
|
const z = k.current;
|
4180
4182
|
if (!w || !z || I.current || b().isPaused())
|
@@ -4197,7 +4199,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4197
4199
|
se && de() && b().onLoadingSlow(w, r);
|
4198
4200
|
}, r.loadingTimeout), y[w] = [
|
4199
4201
|
z(_),
|
4200
|
-
|
4202
|
+
Ba()
|
4201
4203
|
]), [Z, K] = y[w], Z = await Z, ae && setTimeout(Mt, r.dedupingInterval), !y[w] || y[w][1] !== K)
|
4202
4204
|
return ae && de() && b().onDiscarded(w), !1;
|
4203
4205
|
Ne.error = be;
|
@@ -4213,7 +4215,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4213
4215
|
Mt();
|
4214
4216
|
const ke = b(), { shouldRetryOnError: gt } = ke;
|
4215
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) => {
|
4216
|
-
const yt =
|
4218
|
+
const yt = m[w];
|
4217
4219
|
yt && yt[0] && yt[0](to, ar);
|
4218
4220
|
}, {
|
4219
4221
|
retryCount: (pe.retryCount || 0) + 1,
|
@@ -4239,7 +4241,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4239
4241
|
]
|
4240
4242
|
), H = Y(
|
4241
4243
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
4242
|
-
(...P) =>
|
4244
|
+
(...P) => Bs(a, C.current, ...P),
|
4243
4245
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4244
4246
|
[]
|
4245
4247
|
);
|
@@ -4249,7 +4251,7 @@ const Zr = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4249
4251
|
if (!w) return;
|
4250
4252
|
const P = Ge.bind(be, ea);
|
4251
4253
|
let z = 0;
|
4252
|
-
const K = xu(w,
|
4254
|
+
const K = xu(w, m, (se, pe = {}) => {
|
4253
4255
|
if (se == Os) {
|
4254
4256
|
const ae = Date.now();
|
4255
4257
|
b().revalidateOnFocus && ae > z && E() && (z = ae + b().focusThrottleInterval, P());
|
@@ -4342,7 +4344,7 @@ function io(e, t) {
|
|
4342
4344
|
}
|
4343
4345
|
function Su(e) {
|
4344
4346
|
const [t, r] = F(e);
|
4345
|
-
return
|
4347
|
+
return B(() => {
|
4346
4348
|
Na(e, t) || r(e);
|
4347
4349
|
}, [e, t]), t;
|
4348
4350
|
}
|
@@ -4359,8 +4361,8 @@ function Nu({
|
|
4359
4361
|
onResponse: d,
|
4360
4362
|
onFinish: f,
|
4361
4363
|
onError: u,
|
4362
|
-
credentials:
|
4363
|
-
headers:
|
4364
|
+
credentials: h,
|
4365
|
+
headers: m,
|
4364
4366
|
body: g,
|
4365
4367
|
generateId: y = an,
|
4366
4368
|
fetch: v,
|
@@ -4375,25 +4377,25 @@ function Nu({
|
|
4375
4377
|
null,
|
4376
4378
|
{ fallbackData: x }
|
4377
4379
|
), R = O(b || []);
|
4378
|
-
|
4380
|
+
B(() => {
|
4379
4381
|
R.current = b || [];
|
4380
4382
|
}, [b]);
|
4381
4383
|
const { data: S, mutate: L } = ir([C, "streamData"], null), $ = O(S);
|
4382
|
-
|
4384
|
+
B(() => {
|
4383
4385
|
$.current = S;
|
4384
4386
|
}, [S]);
|
4385
|
-
const { data: M = "ready", mutate: U } = ir([C, "status"], null), { data:
|
4386
|
-
credentials:
|
4387
|
-
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,
|
4388
4390
|
body: g
|
4389
4391
|
});
|
4390
|
-
|
4392
|
+
B(() => {
|
4391
4393
|
J.current = {
|
4392
|
-
credentials:
|
4393
|
-
headers:
|
4394
|
+
credentials: h,
|
4395
|
+
headers: m,
|
4394
4396
|
body: g
|
4395
4397
|
};
|
4396
|
-
}, [
|
4398
|
+
}, [h, m, g]);
|
4397
4399
|
const me = Y(
|
4398
4400
|
async (H) => {
|
4399
4401
|
var oe, P;
|
@@ -4606,7 +4608,7 @@ function Nu({
|
|
4606
4608
|
setMessages: st,
|
4607
4609
|
data: S,
|
4608
4610
|
setData: je,
|
4609
|
-
error:
|
4611
|
+
error: D,
|
4610
4612
|
append: Le,
|
4611
4613
|
reload: Ie,
|
4612
4614
|
stop: Xe,
|
@@ -4630,9 +4632,9 @@ function ht(e = {}) {
|
|
4630
4632
|
if (!t)
|
4631
4633
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
4632
4634
|
const r = O(e);
|
4633
|
-
return
|
4635
|
+
return B(() => {
|
4634
4636
|
r.current = e;
|
4635
|
-
}, [e]),
|
4637
|
+
}, [e]), B(() => {
|
4636
4638
|
const { onFinish: a, onError: n, onResponse: o, onToolCall: s } = r.current;
|
4637
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), () => {
|
4638
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);
|
@@ -4644,7 +4646,7 @@ function Ru({
|
|
4644
4646
|
value: t
|
4645
4647
|
}) {
|
4646
4648
|
const r = O(lo());
|
4647
|
-
|
4649
|
+
B(() => {
|
4648
4650
|
r.current = lo();
|
4649
4651
|
}, [t]);
|
4650
4652
|
const a = Y(
|
@@ -4724,13 +4726,13 @@ const Au = "z-20", Ou = "z-10", Nr = V.createContext({
|
|
4724
4726
|
}
|
4725
4727
|
});
|
4726
4728
|
/*!
|
4727
|
-
@versini/ui-tooltip v1.3.
|
4729
|
+
@versini/ui-tooltip v1.3.11
|
4728
4730
|
© 2025 gizmette.com
|
4729
4731
|
*/
|
4730
4732
|
try {
|
4731
4733
|
window.__VERSINI_UI_TOOLTIP__ || (window.__VERSINI_UI_TOOLTIP__ = {
|
4732
|
-
version: "1.3.
|
4733
|
-
buildTime: "03/
|
4734
|
+
version: "1.3.11",
|
4735
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
4734
4736
|
homepage: "https://github.com/aversini/ui-components",
|
4735
4737
|
license: "MIT"
|
4736
4738
|
});
|
@@ -4744,11 +4746,11 @@ const $u = "av-tooltip", Lu = "av-tooltip-arrow", Ht = Math.min, _t = Math.max,
|
|
4744
4746
|
right: "left",
|
4745
4747
|
bottom: "top",
|
4746
4748
|
top: "bottom"
|
4747
|
-
},
|
4749
|
+
}, Du = {
|
4748
4750
|
start: "end",
|
4749
4751
|
end: "start"
|
4750
4752
|
};
|
4751
|
-
function
|
4753
|
+
function Pa(e, t, r) {
|
4752
4754
|
return _t(e, Ht(t, r));
|
4753
4755
|
}
|
4754
4756
|
function Kt(e, t) {
|
@@ -4772,18 +4774,18 @@ function Rt(e) {
|
|
4772
4774
|
function un(e) {
|
4773
4775
|
return Fs(Rt(e));
|
4774
4776
|
}
|
4775
|
-
function
|
4777
|
+
function Bu(e, t, r) {
|
4776
4778
|
r === void 0 && (r = !1);
|
4777
4779
|
const a = Qt(e), n = un(e), o = dn(n);
|
4778
4780
|
let s = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
4779
4781
|
return t.reference[o] > t.floating[o] && (s = vr(s)), [s, vr(s)];
|
4780
4782
|
}
|
4781
|
-
function
|
4783
|
+
function Pu(e) {
|
4782
4784
|
const t = vr(e);
|
4783
4785
|
return [za(e), t, za(t)];
|
4784
4786
|
}
|
4785
4787
|
function za(e) {
|
4786
|
-
return e.replace(/start|end/g, (t) =>
|
4788
|
+
return e.replace(/start|end/g, (t) => Du[t]);
|
4787
4789
|
}
|
4788
4790
|
function zu(e, t, r) {
|
4789
4791
|
const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], s = ["bottom", "top"];
|
@@ -4846,48 +4848,48 @@ function co(e, t, r) {
|
|
4846
4848
|
reference: a,
|
4847
4849
|
floating: n
|
4848
4850
|
} = e;
|
4849
|
-
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,
|
4850
|
-
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;
|
4851
4853
|
switch (i) {
|
4852
4854
|
case "top":
|
4853
|
-
|
4855
|
+
m = {
|
4854
4856
|
x: f,
|
4855
4857
|
y: a.y - n.height
|
4856
4858
|
};
|
4857
4859
|
break;
|
4858
4860
|
case "bottom":
|
4859
|
-
|
4861
|
+
m = {
|
4860
4862
|
x: f,
|
4861
4863
|
y: a.y + a.height
|
4862
4864
|
};
|
4863
4865
|
break;
|
4864
4866
|
case "right":
|
4865
|
-
|
4867
|
+
m = {
|
4866
4868
|
x: a.x + a.width,
|
4867
4869
|
y: u
|
4868
4870
|
};
|
4869
4871
|
break;
|
4870
4872
|
case "left":
|
4871
|
-
|
4873
|
+
m = {
|
4872
4874
|
x: a.x - n.width,
|
4873
4875
|
y: u
|
4874
4876
|
};
|
4875
4877
|
break;
|
4876
4878
|
default:
|
4877
|
-
|
4879
|
+
m = {
|
4878
4880
|
x: a.x,
|
4879
4881
|
y: a.y
|
4880
4882
|
};
|
4881
4883
|
}
|
4882
4884
|
switch (Qt(t)) {
|
4883
4885
|
case "start":
|
4884
|
-
|
4886
|
+
m[s] -= h * (r && d ? -1 : 1);
|
4885
4887
|
break;
|
4886
4888
|
case "end":
|
4887
|
-
|
4889
|
+
m[s] += h * (r && d ? -1 : 1);
|
4888
4890
|
break;
|
4889
4891
|
}
|
4890
|
-
return
|
4892
|
+
return m;
|
4891
4893
|
}
|
4892
4894
|
const Uu = async (e, t, r) => {
|
4893
4895
|
const {
|
@@ -4903,7 +4905,7 @@ const Uu = async (e, t, r) => {
|
|
4903
4905
|
}), {
|
4904
4906
|
x: f,
|
4905
4907
|
y: u
|
4906
|
-
} = co(d, a, i),
|
4908
|
+
} = co(d, a, i), h = a, m = {}, g = 0;
|
4907
4909
|
for (let y = 0; y < l.length; y++) {
|
4908
4910
|
const {
|
4909
4911
|
name: v,
|
@@ -4917,9 +4919,9 @@ const Uu = async (e, t, r) => {
|
|
4917
4919
|
x: f,
|
4918
4920
|
y: u,
|
4919
4921
|
initialPlacement: a,
|
4920
|
-
placement:
|
4922
|
+
placement: h,
|
4921
4923
|
strategy: n,
|
4922
|
-
middlewareData:
|
4924
|
+
middlewareData: m,
|
4923
4925
|
rects: d,
|
4924
4926
|
platform: s,
|
4925
4927
|
elements: {
|
@@ -4927,27 +4929,27 @@ const Uu = async (e, t, r) => {
|
|
4927
4929
|
floating: t
|
4928
4930
|
}
|
4929
4931
|
});
|
4930
|
-
f = _ ?? f, u = T ?? u,
|
4931
|
-
...
|
4932
|
+
f = _ ?? f, u = T ?? u, m = {
|
4933
|
+
...m,
|
4932
4934
|
[v]: {
|
4933
|
-
...
|
4935
|
+
...m[v],
|
4934
4936
|
...I
|
4935
4937
|
}
|
4936
|
-
}, 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({
|
4937
4939
|
reference: e,
|
4938
4940
|
floating: t,
|
4939
4941
|
strategy: n
|
4940
4942
|
}) : C.rects), {
|
4941
4943
|
x: f,
|
4942
4944
|
y: u
|
4943
|
-
} = co(d,
|
4945
|
+
} = co(d, h, i)), y = -1);
|
4944
4946
|
}
|
4945
4947
|
return {
|
4946
4948
|
x: f,
|
4947
4949
|
y: u,
|
4948
|
-
placement:
|
4950
|
+
placement: h,
|
4949
4951
|
strategy: n,
|
4950
|
-
middlewareData:
|
4952
|
+
middlewareData: m
|
4951
4953
|
};
|
4952
4954
|
};
|
4953
4955
|
async function Hs(e, t) {
|
@@ -4964,9 +4966,9 @@ async function Hs(e, t) {
|
|
4964
4966
|
boundary: d = "clippingAncestors",
|
4965
4967
|
rootBoundary: f = "viewport",
|
4966
4968
|
elementContext: u = "floating",
|
4967
|
-
altBoundary:
|
4968
|
-
padding:
|
4969
|
-
} = 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({
|
4970
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)),
|
4971
4973
|
boundary: d,
|
4972
4974
|
rootBoundary: f,
|
@@ -5013,23 +5015,23 @@ const Hu = (e) => ({
|
|
5013
5015
|
} = Kt(e, t) || {};
|
5014
5016
|
if (d == null)
|
5015
5017
|
return {};
|
5016
|
-
const u = Us(f),
|
5018
|
+
const u = Us(f), h = {
|
5017
5019
|
x: r,
|
5018
5020
|
y: a
|
5019
|
-
},
|
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));
|
5020
5022
|
let x = k ? k[T] : 0;
|
5021
5023
|
(!x || !await (s.isElement == null ? void 0 : s.isElement(k))) && (x = l.floating[T] || o.floating[g]);
|
5022
|
-
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;
|
5023
5025
|
return {
|
5024
|
-
[
|
5026
|
+
[m]: h[m] + W,
|
5025
5027
|
data: {
|
5026
|
-
[
|
5028
|
+
[m]: U,
|
5027
5029
|
centerOffset: M - U - W,
|
5028
|
-
...
|
5030
|
+
...D && {
|
5029
5031
|
alignmentOffset: W
|
5030
5032
|
}
|
5031
5033
|
},
|
5032
|
-
reset:
|
5034
|
+
reset: D
|
5033
5035
|
};
|
5034
5036
|
}
|
5035
5037
|
}), ju = function(e) {
|
@@ -5048,20 +5050,20 @@ const Hu = (e) => ({
|
|
5048
5050
|
} = t, {
|
5049
5051
|
mainAxis: f = !0,
|
5050
5052
|
crossAxis: u = !0,
|
5051
|
-
fallbackPlacements:
|
5052
|
-
fallbackStrategy:
|
5053
|
+
fallbackPlacements: h,
|
5054
|
+
fallbackStrategy: m = "bestFit",
|
5053
5055
|
fallbackAxisSideDirection: g = "none",
|
5054
5056
|
flipAlignment: y = !0,
|
5055
5057
|
...v
|
5056
5058
|
} = Kt(e, t);
|
5057
5059
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
5058
5060
|
return {};
|
5059
|
-
const w = ut(n), _ = Rt(l), T = ut(l) === l, I = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), C =
|
5060
|
-
!
|
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));
|
5061
5063
|
const x = [l, ...C], b = await Hs(t, v), E = [];
|
5062
5064
|
let R = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
5063
5065
|
if (f && E.push(b[w]), u) {
|
5064
|
-
const M =
|
5066
|
+
const M = Bu(n, s, I);
|
5065
5067
|
E.push(b[M[0]], b[M[1]]);
|
5066
5068
|
}
|
5067
5069
|
if (R = [...R, {
|
@@ -5080,9 +5082,9 @@ const Hu = (e) => ({
|
|
5080
5082
|
placement: U
|
5081
5083
|
}
|
5082
5084
|
};
|
5083
|
-
let
|
5084
|
-
if (!
|
5085
|
-
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) {
|
5086
5088
|
case "bestFit": {
|
5087
5089
|
var $;
|
5088
5090
|
const W = ($ = R.filter((j) => {
|
@@ -5094,17 +5096,17 @@ const Hu = (e) => ({
|
|
5094
5096
|
}
|
5095
5097
|
return !0;
|
5096
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];
|
5097
|
-
W && (
|
5099
|
+
W && (D = W);
|
5098
5100
|
break;
|
5099
5101
|
}
|
5100
5102
|
case "initialPlacement":
|
5101
|
-
|
5103
|
+
D = l;
|
5102
5104
|
break;
|
5103
5105
|
}
|
5104
|
-
if (n !==
|
5106
|
+
if (n !== D)
|
5105
5107
|
return {
|
5106
5108
|
reset: {
|
5107
|
-
placement:
|
5109
|
+
placement: D
|
5108
5110
|
}
|
5109
5111
|
};
|
5110
5112
|
}
|
@@ -5119,8 +5121,8 @@ async function Gu(e, t) {
|
|
5119
5121
|
elements: n
|
5120
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);
|
5121
5123
|
let {
|
5122
|
-
mainAxis:
|
5123
|
-
crossAxis:
|
5124
|
+
mainAxis: h,
|
5125
|
+
crossAxis: m,
|
5124
5126
|
alignmentAxis: g
|
5125
5127
|
} = typeof u == "number" ? {
|
5126
5128
|
mainAxis: u,
|
@@ -5131,12 +5133,12 @@ async function Gu(e, t) {
|
|
5131
5133
|
crossAxis: u.crossAxis || 0,
|
5132
5134
|
alignmentAxis: u.alignmentAxis
|
5133
5135
|
};
|
5134
|
-
return l && typeof g == "number" && (
|
5135
|
-
x:
|
5136
|
-
y:
|
5136
|
+
return l && typeof g == "number" && (m = l === "end" ? g * -1 : g), i ? {
|
5137
|
+
x: m * f,
|
5138
|
+
y: h * d
|
5137
5139
|
} : {
|
5138
|
-
x:
|
5139
|
-
y:
|
5140
|
+
x: h * d,
|
5141
|
+
y: m * f
|
5140
5142
|
};
|
5141
5143
|
}
|
5142
5144
|
const Wu = function(e) {
|
@@ -5189,19 +5191,19 @@ const Wu = function(e) {
|
|
5189
5191
|
} = Kt(e, t), d = {
|
5190
5192
|
x: r,
|
5191
5193
|
y: a
|
5192
|
-
}, f = await Hs(t, i), u = Rt(ut(n)),
|
5193
|
-
let
|
5194
|
+
}, f = await Hs(t, i), u = Rt(ut(n)), h = Fs(u);
|
5195
|
+
let m = d[h], g = d[u];
|
5194
5196
|
if (o) {
|
5195
|
-
const v =
|
5196
|
-
|
5197
|
+
const v = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", _ = m + f[v], T = m - f[w];
|
5198
|
+
m = Pa(_, m, T);
|
5197
5199
|
}
|
5198
5200
|
if (s) {
|
5199
5201
|
const v = u === "y" ? "top" : "left", w = u === "y" ? "bottom" : "right", _ = g + f[v], T = g - f[w];
|
5200
|
-
g =
|
5202
|
+
g = Pa(_, g, T);
|
5201
5203
|
}
|
5202
5204
|
const y = l.fn({
|
5203
5205
|
...t,
|
5204
|
-
[
|
5206
|
+
[h]: m,
|
5205
5207
|
[u]: g
|
5206
5208
|
});
|
5207
5209
|
return {
|
@@ -5210,7 +5212,7 @@ const Wu = function(e) {
|
|
5210
5212
|
x: y.x - r,
|
5211
5213
|
y: y.y - a,
|
5212
5214
|
enabled: {
|
5213
|
-
[
|
5215
|
+
[h]: o,
|
5214
5216
|
[u]: s
|
5215
5217
|
}
|
5216
5218
|
}
|
@@ -5370,9 +5372,9 @@ function jt(e, t, r, a) {
|
|
5370
5372
|
const l = Qu(o, r, a) ? Js(o) : Fe(0);
|
5371
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;
|
5372
5374
|
if (o) {
|
5373
|
-
const
|
5374
|
-
let g =
|
5375
|
-
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; ) {
|
5376
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;
|
5377
5379
|
i *= v.x, d *= v.y, f *= v.x, u *= v.y, i += T, d += I, g = Te(y), y = fo(g);
|
5378
5380
|
}
|
@@ -5415,15 +5417,15 @@ function Xu(e) {
|
|
5415
5417
|
}, d = Fe(1);
|
5416
5418
|
const f = Fe(0), u = He(a);
|
5417
5419
|
if ((u || !u && !o) && (($t(a) !== "body" || Xt(s)) && (i = Or(a)), He(a))) {
|
5418
|
-
const
|
5419
|
-
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;
|
5420
5422
|
}
|
5421
|
-
const
|
5423
|
+
const h = s && !u && !o ? Ks(s, i, !0) : Fe(0);
|
5422
5424
|
return {
|
5423
5425
|
width: r.width * d.x,
|
5424
5426
|
height: r.height * d.y,
|
5425
|
-
x: r.x * d.x - i.scrollLeft * d.x + f.x +
|
5426
|
-
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
|
5427
5429
|
};
|
5428
5430
|
}
|
5429
5431
|
function Zu(e) {
|
@@ -5537,8 +5539,8 @@ function sf(e, t, r) {
|
|
5537
5539
|
const i = Fe(0);
|
5538
5540
|
if (a || !a && !o)
|
5539
5541
|
if (($t(t) !== "body" || Xt(n)) && (l = Or(t)), a) {
|
5540
|
-
const
|
5541
|
-
i.x =
|
5542
|
+
const h = jt(t, !0, o, t);
|
5543
|
+
i.x = h.x + t.clientLeft, i.y = h.y + t.clientTop;
|
5542
5544
|
} else n && (i.x = mn(n));
|
5543
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;
|
5544
5546
|
return {
|
@@ -5618,7 +5620,7 @@ const df = {
|
|
5618
5620
|
}, po = ["mousedown", "touchstart"];
|
5619
5621
|
function gf(e, t, r) {
|
5620
5622
|
const a = O(null);
|
5621
|
-
return
|
5623
|
+
return B(() => {
|
5622
5624
|
const n = (o) => {
|
5623
5625
|
const s = o ? o.target : void 0;
|
5624
5626
|
if (Array.isArray(r)) {
|
@@ -5643,7 +5645,7 @@ function yf(e, t) {
|
|
5643
5645
|
}, [t]), l = Y(() => {
|
5644
5646
|
a(!1), window.clearInterval(n.current || -1), n.current = -1;
|
5645
5647
|
}, []);
|
5646
|
-
return
|
5648
|
+
return B(() => (o.current = e, r && s(), l), [e, r, s, l]), { start: s, stop: l, active: r };
|
5647
5649
|
}
|
5648
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 = ({
|
5649
5651
|
mode: e
|
@@ -5692,7 +5694,7 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5692
5694
|
}) => {
|
5693
5695
|
const i = gf(() => {
|
5694
5696
|
y.stop(), g(!1);
|
5695
|
-
}), d = O(null), f = O(null), [u,
|
5697
|
+
}), d = O(null), f = O(null), [u, h] = F(!1), [m, g] = F(!1), y = yf(() => {
|
5696
5698
|
g(!1);
|
5697
5699
|
}, xf), v = wf({
|
5698
5700
|
mode: a,
|
@@ -5739,15 +5741,15 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5739
5741
|
});
|
5740
5742
|
}
|
5741
5743
|
}, [r, w, i]);
|
5742
|
-
|
5744
|
+
B(() => {
|
5743
5745
|
(async () => u && await _())();
|
5744
5746
|
}, [_, u]);
|
5745
5747
|
const T = () => {
|
5746
|
-
|
5748
|
+
h(!1), g(!0), y.start();
|
5747
5749
|
}, I = () => {
|
5748
|
-
|
5750
|
+
m || h(!0);
|
5749
5751
|
}, C = () => {
|
5750
|
-
|
5752
|
+
m || h(!1);
|
5751
5753
|
};
|
5752
5754
|
return /* @__PURE__ */ N(
|
5753
5755
|
"div",
|
@@ -5812,12 +5814,12 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5812
5814
|
*/
|
5813
5815
|
[]
|
5814
5816
|
);
|
5815
|
-
const u = (
|
5816
|
-
|
5817
|
-
},
|
5818
|
-
|
5817
|
+
const u = (m) => {
|
5818
|
+
m.preventDefault(), l();
|
5819
|
+
}, h = (m) => {
|
5820
|
+
m.preventDefault(), f();
|
5819
5821
|
};
|
5820
|
-
return
|
5822
|
+
return B(() => {
|
5821
5823
|
ua() || ((t === !0 || r === !0) && !d.current && i.current && (d.current = !0, i.current.focus()), t === !1 && d.current && (d.current = !1));
|
5822
5824
|
}, [t, r]), /* @__PURE__ */ c(
|
5823
5825
|
mt,
|
@@ -5834,21 +5836,21 @@ const lr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, bf = (
|
|
5834
5836
|
focusMode: "light",
|
5835
5837
|
label: "New Chat",
|
5836
5838
|
ref: i,
|
5837
|
-
onClick: t || r ? u :
|
5838
|
-
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 })
|
5839
5841
|
}
|
5840
5842
|
)
|
5841
5843
|
}
|
5842
5844
|
);
|
5843
5845
|
};
|
5844
5846
|
/*!
|
5845
|
-
@versini/ui-panel v1.
|
5847
|
+
@versini/ui-panel v1.4.1
|
5846
5848
|
© 2025 gizmette.com
|
5847
5849
|
*/
|
5848
5850
|
try {
|
5849
5851
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
5850
|
-
version: "1.
|
5851
|
-
buildTime: "03/
|
5852
|
+
version: "1.4.1",
|
5853
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
5852
5854
|
homepage: "https://github.com/aversini/ui-components",
|
5853
5855
|
license: "MIT"
|
5854
5856
|
});
|
@@ -6098,7 +6100,7 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6098
6100
|
animated: e
|
6099
6101
|
}) => p({
|
6100
6102
|
"transition-opacity duration-300 ease-in": e
|
6101
|
-
}),
|
6103
|
+
}), Df = ({
|
6102
6104
|
type: e,
|
6103
6105
|
className: t,
|
6104
6106
|
raw: r,
|
@@ -6111,20 +6113,20 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6111
6113
|
labelRight: d,
|
6112
6114
|
labelLeft: f,
|
6113
6115
|
noBackground: u,
|
6114
|
-
variant:
|
6115
|
-
noTruncate:
|
6116
|
+
variant: h,
|
6117
|
+
noTruncate: m,
|
6116
6118
|
align: g,
|
6117
6119
|
radius: y,
|
6118
6120
|
animated: v
|
6119
|
-
}) => (
|
6121
|
+
}) => (h || (h = "primary"), r ? p(vo, t) : p(
|
6120
6122
|
vo,
|
6121
6123
|
Cf({
|
6122
6124
|
mode: a,
|
6123
|
-
variant:
|
6125
|
+
variant: h,
|
6124
6126
|
noBackground: u,
|
6125
|
-
noTruncate:
|
6127
|
+
noTruncate: m
|
6126
6128
|
}),
|
6127
|
-
Sf({ mode: a, noBackground: u, variant:
|
6129
|
+
Sf({ mode: a, noBackground: u, variant: h }),
|
6128
6130
|
Nf({ radius: y }),
|
6129
6131
|
Ef({
|
6130
6132
|
type: e,
|
@@ -6135,10 +6137,10 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6135
6137
|
animated: v
|
6136
6138
|
}),
|
6137
6139
|
If({ type: e, size: l, labelRight: d, labelLeft: f }),
|
6138
|
-
Of({ mode: a, variant:
|
6140
|
+
Of({ mode: a, variant: h, noBorder: i }),
|
6139
6141
|
$f({ focusMode: n }),
|
6140
|
-
Rf({ mode: a, variant:
|
6141
|
-
Af({ mode: a, variant:
|
6142
|
+
Rf({ mode: a, variant: h, disabled: o }),
|
6143
|
+
Af({ mode: a, variant: h, disabled: o }),
|
6142
6144
|
{
|
6143
6145
|
"w-full": s,
|
6144
6146
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -6147,7 +6149,7 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6147
6149
|
"transition-[width] duration-300 ease-in-out": e === $r && v
|
6148
6150
|
}),
|
6149
6151
|
t
|
6150
|
-
)),
|
6152
|
+
)), Bf = (e, t, r) => {
|
6151
6153
|
var a;
|
6152
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);
|
6153
6155
|
}, ei = V.forwardRef((e, t) => {
|
@@ -6157,16 +6159,16 @@ const yo = "av-messagebox", bo = "av-panel", vo = "av-button", $r = "icon", Zs =
|
|
6157
6159
|
{
|
6158
6160
|
ref: t,
|
6159
6161
|
onClick: (o) => {
|
6160
|
-
|
6162
|
+
Bf(o, a, r);
|
6161
6163
|
},
|
6162
6164
|
...n
|
6163
6165
|
}
|
6164
6166
|
);
|
6165
6167
|
});
|
6166
6168
|
ei.displayName = "BaseButton";
|
6167
|
-
function
|
6169
|
+
function Pf() {
|
6168
6170
|
const e = O(!1);
|
6169
|
-
return
|
6171
|
+
return B(() => (e.current = !0, () => {
|
6170
6172
|
e.current = !1;
|
6171
6173
|
}), []), Y(() => e.current, []);
|
6172
6174
|
}
|
@@ -6189,13 +6191,13 @@ const Vf = {
|
|
6189
6191
|
right: 0
|
6190
6192
|
};
|
6191
6193
|
function aa(e) {
|
6192
|
-
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) => {
|
6193
6195
|
const i = l[0];
|
6194
6196
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6195
6197
|
a.current && t() && o(i.contentRect);
|
6196
6198
|
}));
|
6197
6199
|
}), [t]);
|
6198
|
-
return
|
6200
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
6199
6201
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
6200
6202
|
}), [s, e]), [a, n];
|
6201
6203
|
}
|
@@ -6227,8 +6229,8 @@ const Ff = {
|
|
6227
6229
|
"aria-label": d,
|
6228
6230
|
label: f,
|
6229
6231
|
size: u = "medium",
|
6230
|
-
labelRight:
|
6231
|
-
labelLeft:
|
6232
|
+
labelRight: h,
|
6233
|
+
labelLeft: m,
|
6232
6234
|
noBackground: g = !1,
|
6233
6235
|
align: y = "center",
|
6234
6236
|
radius: v = "large",
|
@@ -6237,7 +6239,7 @@ const Ff = {
|
|
6237
6239
|
animated: T = !1,
|
6238
6240
|
...I
|
6239
6241
|
}, C) => {
|
6240
|
-
const k =
|
6242
|
+
const k = Df({
|
6241
6243
|
type: $r,
|
6242
6244
|
mode: r,
|
6243
6245
|
focusMode: a,
|
@@ -6247,24 +6249,24 @@ const Ff = {
|
|
6247
6249
|
className: o,
|
6248
6250
|
noBorder: i,
|
6249
6251
|
size: u,
|
6250
|
-
labelRight:
|
6251
|
-
labelLeft:
|
6252
|
+
labelRight: h,
|
6253
|
+
labelLeft: m,
|
6252
6254
|
noBackground: g,
|
6253
6255
|
align: y,
|
6254
6256
|
radius: v,
|
6255
6257
|
variant: w,
|
6256
6258
|
animated: T
|
6257
|
-
}), 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]);
|
6258
6260
|
return ge(() => {
|
6259
6261
|
$ && $.current && T && (U.current = M.width + Uf[u] + (i ? 0 : Hf));
|
6260
6262
|
}, [M, $, u, i, T]), ge(() => {
|
6261
|
-
|
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`));
|
6262
6264
|
}, [
|
6263
6265
|
R,
|
6264
|
-
|
6266
|
+
h,
|
6265
6267
|
E,
|
6266
6268
|
L,
|
6267
|
-
|
6269
|
+
m,
|
6268
6270
|
S,
|
6269
6271
|
u,
|
6270
6272
|
T
|
@@ -6281,7 +6283,7 @@ const Ff = {
|
|
6281
6283
|
/* @__PURE__ */ c(
|
6282
6284
|
_o,
|
6283
6285
|
{
|
6284
|
-
label:
|
6286
|
+
label: m,
|
6285
6287
|
labelRef: S,
|
6286
6288
|
labelClass: b,
|
6287
6289
|
labelInnerClass: "pr-2"
|
@@ -6291,7 +6293,7 @@ const Ff = {
|
|
6291
6293
|
/* @__PURE__ */ c(
|
6292
6294
|
_o,
|
6293
6295
|
{
|
6294
|
-
label:
|
6296
|
+
label: h,
|
6295
6297
|
labelRef: E,
|
6296
6298
|
labelClass: b,
|
6297
6299
|
labelInnerClass: "pl-2"
|
@@ -6309,13 +6311,13 @@ const Ff = {
|
|
6309
6311
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
6310
6312
|
pn.displayName = "ButtonIcon";
|
6311
6313
|
/*!
|
6312
|
-
@versini/ui-button v4.2.
|
6314
|
+
@versini/ui-button v4.2.11
|
6313
6315
|
© 2025 gizmette.com
|
6314
6316
|
*/
|
6315
6317
|
try {
|
6316
6318
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
6317
|
-
version: "4.2.
|
6318
|
-
buildTime: "03/
|
6319
|
+
version: "4.2.11",
|
6320
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
6319
6321
|
homepage: "https://github.com/aversini/ui-components",
|
6320
6322
|
license: "MIT"
|
6321
6323
|
});
|
@@ -6372,32 +6374,32 @@ const Gf = ({
|
|
6372
6374
|
...i
|
6373
6375
|
}) => {
|
6374
6376
|
const d = p(o, a);
|
6375
|
-
return /* @__PURE__ */
|
6376
|
-
|
6377
|
-
|
6378
|
-
|
6379
|
-
|
6380
|
-
|
6381
|
-
|
6382
|
-
|
6383
|
-
|
6384
|
-
|
6385
|
-
|
6386
|
-
|
6387
|
-
children:
|
6388
|
-
|
6389
|
-
|
6390
|
-
|
6391
|
-
|
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
|
+
) });
|
6392
6394
|
};
|
6393
6395
|
/*!
|
6394
|
-
@versini/ui-svgicon v4.
|
6396
|
+
@versini/ui-svgicon v4.1.1
|
6395
6397
|
© 2025 gizmette.com
|
6396
6398
|
*/
|
6397
6399
|
try {
|
6398
6400
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
6399
|
-
version: "4.
|
6400
|
-
buildTime: "
|
6401
|
+
version: "4.1.1",
|
6402
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6401
6403
|
homepage: "https://github.com/aversini/ui-components",
|
6402
6404
|
license: "MIT"
|
6403
6405
|
});
|
@@ -6428,13 +6430,13 @@ const Wf = ({
|
|
6428
6430
|
}
|
6429
6431
|
);
|
6430
6432
|
/*!
|
6431
|
-
@versini/ui-icons v4.
|
6433
|
+
@versini/ui-icons v4.8.1
|
6432
6434
|
© 2025 gizmette.com
|
6433
6435
|
*/
|
6434
6436
|
try {
|
6435
6437
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
6436
|
-
version: "4.
|
6437
|
-
buildTime: "
|
6438
|
+
version: "4.8.1",
|
6439
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6438
6440
|
homepage: "https://github.com/aversini/ui-components",
|
6439
6441
|
license: "MIT"
|
6440
6442
|
});
|
@@ -6449,12 +6451,12 @@ function qf({
|
|
6449
6451
|
const [a, n] = te.useState(e), [o, s] = te.useState(), [l, i] = te.useState(), d = t ?? a, f = r ?? n, u = Yo({
|
6450
6452
|
open: d,
|
6451
6453
|
onOpenChange: f
|
6452
|
-
}),
|
6454
|
+
}), h = u.context, m = Jo(h, {
|
6453
6455
|
enabled: t == null
|
6454
|
-
}), g = Ko(
|
6456
|
+
}), g = Ko(h, {
|
6455
6457
|
outsidePress: !1,
|
6456
6458
|
outsidePressEvent: "mousedown"
|
6457
|
-
}), y = Qo(
|
6459
|
+
}), y = Qo(h), v = Xo([m, g, y]);
|
6458
6460
|
return te.useMemo(
|
6459
6461
|
() => ({
|
6460
6462
|
open: d,
|
@@ -6515,34 +6517,39 @@ const Jf = te.forwardRef(function(e, t) {
|
|
6515
6517
|
}) });
|
6516
6518
|
});
|
6517
6519
|
/*!
|
6518
|
-
@versini/ui-modal v1.2.
|
6520
|
+
@versini/ui-modal v1.2.12
|
6519
6521
|
© 2025 gizmette.com
|
6520
6522
|
*/
|
6521
6523
|
try {
|
6522
6524
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
6523
|
-
version: "1.2.
|
6524
|
-
buildTime: "03/
|
6525
|
+
version: "1.2.12",
|
6526
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
6525
6527
|
homepage: "https://github.com/aversini/ui-components",
|
6526
6528
|
license: "MIT"
|
6527
6529
|
});
|
6528
6530
|
} catch {
|
6529
6531
|
}
|
6530
|
-
const
|
6532
|
+
const Pt = "panel", cr = "messagebox", Zf = ({
|
6531
6533
|
className: e,
|
6532
6534
|
kind: t,
|
6533
|
-
borderMode: r
|
6535
|
+
borderMode: r,
|
6536
|
+
animation: a
|
6534
6537
|
}) => ({
|
6535
|
-
main: p(
|
6536
|
-
|
6537
|
-
|
6538
|
-
|
6539
|
-
|
6540
|
-
|
6541
|
-
|
6542
|
-
|
6543
|
-
|
6544
|
-
|
6545
|
-
|
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
|
+
),
|
6546
6553
|
content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
|
6547
6554
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
6548
6555
|
header: "sm:p-4 mb-0 p-2",
|
@@ -6554,35 +6561,60 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6554
6561
|
children: a,
|
6555
6562
|
footer: n,
|
6556
6563
|
borderMode: o = "light",
|
6557
|
-
kind: s =
|
6558
|
-
className: l
|
6564
|
+
kind: s = Pt,
|
6565
|
+
className: l,
|
6566
|
+
animation: i = !1
|
6559
6567
|
}) => {
|
6560
|
-
const
|
6561
|
-
|
6562
|
-
|
6563
|
-
|
6564
|
-
|
6565
|
-
|
6566
|
-
|
6567
|
-
|
6568
|
-
|
6569
|
-
|
6570
|
-
|
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,
|
6571
6597
|
{
|
6572
|
-
|
6573
|
-
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
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
|
+
)
|
6577
6609
|
}
|
6578
|
-
)
|
6579
|
-
|
6580
|
-
|
6581
|
-
|
6582
|
-
|
6583
|
-
|
6584
|
-
|
6585
|
-
|
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
|
+
) }) });
|
6586
6618
|
}, gn = ({
|
6587
6619
|
showConfirmation: e,
|
6588
6620
|
setShowConfirmation: t,
|
@@ -6592,6 +6624,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6592
6624
|
}) => /* @__PURE__ */ c(
|
6593
6625
|
Zt,
|
6594
6626
|
{
|
6627
|
+
animation: !0,
|
6595
6628
|
kind: "messagebox",
|
6596
6629
|
open: e,
|
6597
6630
|
onOpenChange: t,
|
@@ -6719,7 +6752,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6719
6752
|
focusMode: s = "system",
|
6720
6753
|
...l
|
6721
6754
|
}, i) => {
|
6722
|
-
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({
|
6723
6756
|
nodeId: T,
|
6724
6757
|
open: d,
|
6725
6758
|
onOpenChange: (J) => {
|
@@ -6735,16 +6768,16 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6735
6768
|
ignoreMouse: !1
|
6736
6769
|
}), E = Qo(x, { role: "menu" }), R = Ko(x, { bubbles: !0 }), S = ul(x, {
|
6737
6770
|
listRef: y,
|
6738
|
-
activeIndex:
|
6771
|
+
activeIndex: m,
|
6739
6772
|
nested: !1,
|
6740
6773
|
onNavigate: g,
|
6741
6774
|
loop: !0
|
6742
6775
|
}), L = fl(x, {
|
6743
6776
|
listRef: v,
|
6744
6777
|
onMatch: d ? g : void 0,
|
6745
|
-
activeIndex:
|
6746
|
-
}), { getReferenceProps: $, getFloatingProps: M, getItemProps: U } = Xo([b, E, R, S, L]),
|
6747
|
-
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,
|
6748
6781
|
focusMode: s,
|
6749
6782
|
mode: o
|
6750
6783
|
} : {}, j = V.cloneElement(
|
@@ -6762,7 +6795,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6762
6795
|
)
|
6763
6796
|
}
|
6764
6797
|
);
|
6765
|
-
return
|
6798
|
+
return B(() => {
|
6766
6799
|
if (!_)
|
6767
6800
|
return;
|
6768
6801
|
function J() {
|
@@ -6771,7 +6804,7 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6771
6804
|
return _.events.on("click", J), () => {
|
6772
6805
|
_.events.off("click", J);
|
6773
6806
|
};
|
6774
|
-
}, [_, n]),
|
6807
|
+
}, [_, n]), B(() => {
|
6775
6808
|
d && _ && _.events.emit("menuopen", { nodeId: T });
|
6776
6809
|
}, [_, d, T]), /* @__PURE__ */ N(hl, { id: T, children: [
|
6777
6810
|
j,
|
@@ -6779,10 +6812,10 @@ const Dt = "panel", cr = "messagebox", Zf = ({
|
|
6779
6812
|
Fa.Provider,
|
6780
6813
|
{
|
6781
6814
|
value: {
|
6782
|
-
activeIndex:
|
6815
|
+
activeIndex: m,
|
6783
6816
|
setActiveIndex: g,
|
6784
6817
|
getItemProps: U,
|
6785
|
-
setHasFocusInside:
|
6818
|
+
setHasFocusInside: h,
|
6786
6819
|
isOpen: d
|
6787
6820
|
},
|
6788
6821
|
children: /* @__PURE__ */ c(ml, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ c(Wo, { children: /* @__PURE__ */ c(
|
@@ -6823,32 +6856,32 @@ const th = ({
|
|
6823
6856
|
...i
|
6824
6857
|
}) => {
|
6825
6858
|
const d = p(o, a);
|
6826
|
-
return /* @__PURE__ */
|
6827
|
-
|
6828
|
-
|
6829
|
-
|
6830
|
-
|
6831
|
-
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6835
|
-
|
6836
|
-
|
6837
|
-
|
6838
|
-
children:
|
6839
|
-
|
6840
|
-
|
6841
|
-
|
6842
|
-
|
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
|
+
) });
|
6843
6876
|
};
|
6844
6877
|
/*!
|
6845
|
-
@versini/ui-svgicon v4.
|
6878
|
+
@versini/ui-svgicon v4.1.1
|
6846
6879
|
© 2025 gizmette.com
|
6847
6880
|
*/
|
6848
6881
|
try {
|
6849
6882
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
6850
|
-
version: "4.
|
6851
|
-
buildTime: "
|
6883
|
+
version: "4.1.1",
|
6884
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6852
6885
|
homepage: "https://github.com/aversini/ui-components",
|
6853
6886
|
license: "MIT"
|
6854
6887
|
});
|
@@ -6882,13 +6915,13 @@ const rh = ({
|
|
6882
6915
|
}
|
6883
6916
|
);
|
6884
6917
|
/*!
|
6885
|
-
@versini/ui-icons v4.
|
6918
|
+
@versini/ui-icons v4.8.1
|
6886
6919
|
© 2025 gizmette.com
|
6887
6920
|
*/
|
6888
6921
|
try {
|
6889
6922
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
6890
|
-
version: "4.
|
6891
|
-
buildTime: "
|
6923
|
+
version: "4.8.1",
|
6924
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
6892
6925
|
homepage: "https://github.com/aversini/ui-components",
|
6893
6926
|
license: "MIT"
|
6894
6927
|
});
|
@@ -6906,7 +6939,7 @@ const Ye = te.forwardRef(
|
|
6906
6939
|
...l
|
6907
6940
|
}, i) => {
|
6908
6941
|
let d = "";
|
6909
|
-
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]);
|
6910
6943
|
if (a && n)
|
6911
6944
|
return /* @__PURE__ */ c(
|
6912
6945
|
"div",
|
@@ -6915,7 +6948,7 @@ const Ye = te.forwardRef(
|
|
6915
6948
|
...f.getItemProps({
|
6916
6949
|
onClick(y) {
|
6917
6950
|
var v;
|
6918
|
-
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"));
|
6919
6952
|
}
|
6920
6953
|
}),
|
6921
6954
|
children: n
|
@@ -6933,7 +6966,7 @@ const Ye = te.forwardRef(
|
|
6933
6966
|
"button",
|
6934
6967
|
{
|
6935
6968
|
...l,
|
6936
|
-
ref:
|
6969
|
+
ref: m,
|
6937
6970
|
role: "menuitem",
|
6938
6971
|
className: g,
|
6939
6972
|
tabIndex: 0,
|
@@ -6941,7 +6974,7 @@ const Ye = te.forwardRef(
|
|
6941
6974
|
...f.getItemProps({
|
6942
6975
|
onClick(y) {
|
6943
6976
|
var v;
|
6944
|
-
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"));
|
6945
6978
|
},
|
6946
6979
|
onFocus(y) {
|
6947
6980
|
var v;
|
@@ -6972,13 +7005,13 @@ const ah = ({ className: e, ...t }) => {
|
|
6972
7005
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
6973
7006
|
};
|
6974
7007
|
/*!
|
6975
|
-
@versini/ui-menu v3.3.
|
7008
|
+
@versini/ui-menu v3.3.2
|
6976
7009
|
© 2025 gizmette.com
|
6977
7010
|
*/
|
6978
7011
|
try {
|
6979
7012
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
6980
|
-
version: "3.3.
|
6981
|
-
buildTime: "
|
7013
|
+
version: "3.3.2",
|
7014
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
6982
7015
|
homepage: "https://github.com/aversini/ui-components",
|
6983
7016
|
license: "MIT"
|
6984
7017
|
});
|
@@ -6996,16 +7029,16 @@ const nh = (e) => {
|
|
6996
7029
|
const { dispatch: r, setChatId: a, setInitialMessages: n } = ee(_e), { dispatch: o } = ee(ln), { getAccessToken: s, user: l } = Se(), { data: i, isSuccess: d } = Cr({
|
6997
7030
|
user: l == null ? void 0 : l.username,
|
6998
7031
|
getAccessToken: s
|
6999
|
-
}), f = (u,
|
7032
|
+
}), f = (u, h, m) => {
|
7000
7033
|
u.preventDefault(), a(at()), n([]), r({
|
7001
7034
|
type: Yt,
|
7002
7035
|
payload: {
|
7003
|
-
privateChat:
|
7036
|
+
privateChat: m
|
7004
7037
|
}
|
7005
7038
|
}), o({
|
7006
|
-
type:
|
7039
|
+
type: Po,
|
7007
7040
|
payload: {
|
7008
|
-
prompt:
|
7041
|
+
prompt: h
|
7009
7042
|
}
|
7010
7043
|
});
|
7011
7044
|
};
|
@@ -7025,28 +7058,28 @@ const nh = (e) => {
|
|
7025
7058
|
children: [
|
7026
7059
|
/* @__PURE__ */ c(ai, { children: "Prompts" }),
|
7027
7060
|
i && i.tags && i.tags.map((u) => {
|
7028
|
-
let
|
7061
|
+
let h = null;
|
7029
7062
|
switch (u.slot) {
|
7030
7063
|
case 0:
|
7031
|
-
|
7064
|
+
h = /* @__PURE__ */ c(Vl, {});
|
7032
7065
|
break;
|
7033
7066
|
case 1:
|
7034
|
-
|
7067
|
+
h = /* @__PURE__ */ c(Ul, {});
|
7035
7068
|
break;
|
7036
7069
|
case 2:
|
7037
|
-
|
7070
|
+
h = /* @__PURE__ */ c(jl, {});
|
7038
7071
|
break;
|
7039
7072
|
default:
|
7040
|
-
|
7073
|
+
h = null;
|
7041
7074
|
break;
|
7042
7075
|
}
|
7043
7076
|
return u.enabled && u.label && u.content && /* @__PURE__ */ c(
|
7044
7077
|
Ye,
|
7045
7078
|
{
|
7046
7079
|
label: u.label,
|
7047
|
-
icon:
|
7048
|
-
onClick: (
|
7049
|
-
|
7080
|
+
icon: h,
|
7081
|
+
onClick: (m) => f(
|
7082
|
+
m,
|
7050
7083
|
u.content,
|
7051
7084
|
u == null ? void 0 : u.privateChat
|
7052
7085
|
)
|
@@ -7068,8 +7101,8 @@ const nh = (e) => {
|
|
7068
7101
|
u.preventDefault();
|
7069
7102
|
try {
|
7070
7103
|
if (l && s && n) {
|
7071
|
-
const
|
7072
|
-
role:
|
7104
|
+
const h = s.filter(({ content: m }) => m).map(({ role: m, content: g, id: y }) => ({
|
7105
|
+
role: m,
|
7073
7106
|
content: g,
|
7074
7107
|
id: y
|
7075
7108
|
}));
|
@@ -7079,7 +7112,7 @@ const nh = (e) => {
|
|
7079
7112
|
params: {
|
7080
7113
|
userId: (t == null ? void 0 : t.username) || "",
|
7081
7114
|
id: l,
|
7082
|
-
messages:
|
7115
|
+
messages: h,
|
7083
7116
|
provider: n,
|
7084
7117
|
usage: a
|
7085
7118
|
}
|
@@ -7088,7 +7121,7 @@ const nh = (e) => {
|
|
7088
7121
|
} catch {
|
7089
7122
|
}
|
7090
7123
|
};
|
7091
|
-
return
|
7124
|
+
return B(() => {
|
7092
7125
|
o && (s == null ? void 0 : s.length) > 0 ? d(!0) : d(!1);
|
7093
7126
|
}, [o, s]), i && /* @__PURE__ */ c(
|
7094
7127
|
mt,
|
@@ -7188,17 +7221,17 @@ function fh(e, t, r = 300) {
|
|
7188
7221
|
}
|
7189
7222
|
function ni({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: n = 300 }) {
|
7190
7223
|
return function({ children: o, position: s, preventExitTransition: l, done: i, nodeRef: d, isIn: f, playToast: u }) {
|
7191
|
-
let
|
7224
|
+
let h = r ? `${e}--${s}` : e, m = r ? `${t}--${s}` : t, g = O(0);
|
7192
7225
|
return ge(() => {
|
7193
|
-
let y = d.current, v =
|
7226
|
+
let y = d.current, v = h.split(" "), w = (_) => {
|
7194
7227
|
_.target === d.current && (u(), y.removeEventListener("animationend", w), y.removeEventListener("animationcancel", w), g.current === 0 && _.type !== "animationcancel" && y.classList.remove(...v));
|
7195
7228
|
};
|
7196
7229
|
y.classList.add(...v), y.addEventListener("animationend", w), y.addEventListener("animationcancel", w);
|
7197
|
-
}, []),
|
7230
|
+
}, []), B(() => {
|
7198
7231
|
let y = d.current, v = () => {
|
7199
7232
|
y.removeEventListener("animationend", v), a ? fh(y, i, n) : i();
|
7200
7233
|
};
|
7201
|
-
f || (l ? v() : (g.current = 1, y.className += ` ${
|
7234
|
+
f || (l ? v() : (g.current = 1, y.className += ` ${m}`, y.addEventListener("animationend", v)));
|
7202
7235
|
}, [f]), V.createElement(V.Fragment, null, o);
|
7203
7236
|
};
|
7204
7237
|
}
|
@@ -7214,21 +7247,21 @@ function hh({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
|
7214
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" })));
|
7215
7248
|
}
|
7216
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 }) {
|
7217
|
-
let u = n || s && l === 0,
|
7218
|
-
s && (
|
7219
|
-
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 : () => {
|
7220
7253
|
d && r();
|
7221
7254
|
} };
|
7222
|
-
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 }));
|
7223
7256
|
}
|
7224
7257
|
var ph = 1, si = () => `${ph++}`;
|
7225
7258
|
function gh(e, t, r) {
|
7226
7259
|
let a = 1, n = 0, o = [], s = [], l = t, i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (_) => (d.add(_), () => d.delete(_)), u = () => {
|
7227
7260
|
s = Array.from(i.values()), d.forEach((_) => _());
|
7228
|
-
},
|
7261
|
+
}, h = ({ containerId: _, toastId: T, updateId: I }) => {
|
7229
7262
|
let C = _ ? _ !== e : e !== 1, k = i.has(T) && I == null;
|
7230
7263
|
return C || k;
|
7231
|
-
},
|
7264
|
+
}, m = (_, T) => {
|
7232
7265
|
i.forEach((I) => {
|
7233
7266
|
var C;
|
7234
7267
|
(T == null || T === I.props.toastId) && ((C = I.toggle) == null || C.call(I, _));
|
@@ -7250,8 +7283,8 @@ function gh(e, t, r) {
|
|
7250
7283
|
let { toastId: C, updateId: k } = _.props, x = k == null;
|
7251
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));
|
7252
7285
|
};
|
7253
|
-
return { id: e, props: l, observe: f, toggle:
|
7254
|
-
if (
|
7286
|
+
return { id: e, props: l, observe: f, toggle: m, removeToast: y, toasts: i, clearQueue: v, buildToast: (_, T) => {
|
7287
|
+
if (h(T)) return;
|
7255
7288
|
let { toastId: I, updateId: C, data: k, staleId: x, delay: b } = T, E = C == null;
|
7256
7289
|
E && n++;
|
7257
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) {
|
@@ -7359,16 +7392,16 @@ function Eh(e) {
|
|
7359
7392
|
function tr(e, t) {
|
7360
7393
|
return ci(e, t), t.toastId;
|
7361
7394
|
}
|
7362
|
-
function
|
7395
|
+
function Dr(e, t) {
|
7363
7396
|
return { ...t, type: t && t.type || e, toastId: Eh(t) };
|
7364
7397
|
}
|
7365
|
-
function
|
7366
|
-
return (t, r) => tr(t,
|
7398
|
+
function Br(e) {
|
7399
|
+
return (t, r) => tr(t, Dr(e, r));
|
7367
7400
|
}
|
7368
7401
|
function Q(e, t) {
|
7369
|
-
return tr(e,
|
7402
|
+
return tr(e, Dr("default", t));
|
7370
7403
|
}
|
7371
|
-
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 }));
|
7372
7405
|
function Ih(e, { pending: t, error: r, success: a }, n) {
|
7373
7406
|
let o;
|
7374
7407
|
t && (o = ft(t) ? Q.loading(t, n) : Q.loading(t.render, { ...n, ...t }));
|
@@ -7377,18 +7410,18 @@ function Ih(e, { pending: t, error: r, success: a }, n) {
|
|
7377
7410
|
Q.dismiss(o);
|
7378
7411
|
return;
|
7379
7412
|
}
|
7380
|
-
let
|
7381
|
-
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;
|
7382
7415
|
}, i = Ke(e) ? e() : e;
|
7383
7416
|
return i.then((d) => l("success", a, d)).catch((d) => l("error", r, d)), i;
|
7384
7417
|
}
|
7385
7418
|
Q.promise = Ih;
|
7386
|
-
Q.success =
|
7387
|
-
Q.info =
|
7388
|
-
Q.error =
|
7389
|
-
Q.warning =
|
7419
|
+
Q.success = Br("success");
|
7420
|
+
Q.info = Br("info");
|
7421
|
+
Q.error = Br("error");
|
7422
|
+
Q.warning = Br("warning");
|
7390
7423
|
Q.warn = Q.warning;
|
7391
|
-
Q.dark = (e, t) => tr(e,
|
7424
|
+
Q.dark = (e, t) => tr(e, Dr("default", { theme: "dark", ...t }));
|
7392
7425
|
function Ch(e) {
|
7393
7426
|
_h(e);
|
7394
7427
|
}
|
@@ -7427,15 +7460,15 @@ function Sh(e) {
|
|
7427
7460
|
}
|
7428
7461
|
function Nh(e) {
|
7429
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;
|
7430
|
-
kh({ id: e.toastId, containerId: e.containerId, fn: r }),
|
7431
|
-
if (e.pauseOnFocusLoss) return
|
7432
|
-
|
7463
|
+
kh({ id: e.toastId, containerId: e.containerId, fn: r }), B(() => {
|
7464
|
+
if (e.pauseOnFocusLoss) return h(), () => {
|
7465
|
+
m();
|
7433
7466
|
};
|
7434
7467
|
}, [e.pauseOnFocusLoss]);
|
7435
|
-
function
|
7468
|
+
function h() {
|
7436
7469
|
document.hasFocus() || w(), window.addEventListener("focus", v), window.addEventListener("blur", w);
|
7437
7470
|
}
|
7438
|
-
function
|
7471
|
+
function m() {
|
7439
7472
|
window.removeEventListener("focus", v), window.removeEventListener("blur", w);
|
7440
7473
|
}
|
7441
7474
|
function g(x) {
|
@@ -7485,33 +7518,33 @@ function Nh(e) {
|
|
7485
7518
|
f && f(x), s.canCloseOnClick && d(!0);
|
7486
7519
|
}), { playToast: v, pauseToast: w, isRunning: t, preventExitTransition: a, toastRef: o, eventHandlers: k };
|
7487
7520
|
}
|
7488
|
-
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 });
|
7489
7522
|
function Ah(e) {
|
7490
|
-
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" }));
|
7491
7524
|
}
|
7492
7525
|
function Oh(e) {
|
7493
|
-
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" }));
|
7494
7527
|
}
|
7495
7528
|
function $h(e) {
|
7496
|
-
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" }));
|
7497
7530
|
}
|
7498
7531
|
function Lh(e) {
|
7499
|
-
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" }));
|
7500
7533
|
}
|
7501
7534
|
function Mh() {
|
7502
7535
|
return V.createElement("div", { className: "Toastify__spinner" });
|
7503
7536
|
}
|
7504
|
-
var Ga = { info: Oh, warning: Ah, success: $h, error: Lh, spinner: Mh },
|
7505
|
-
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 }) {
|
7506
7539
|
let n = null, o = { theme: e, type: t };
|
7507
|
-
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;
|
7508
7541
|
}
|
7509
|
-
var
|
7510
|
-
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:
|
7511
|
-
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 })));
|
7512
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" };
|
7513
7546
|
function fi(e) {
|
7514
|
-
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;
|
7515
7548
|
function g(v) {
|
7516
7549
|
let w = p("Toastify__toast-container", `Toastify__toast-container--${v}`, { "Toastify__toast-container--rtl": u });
|
7517
7550
|
return Ke(d) ? d({ position: v, rtl: u, defaultClassName: w }) : p(w, Ua(d));
|
@@ -7530,20 +7563,20 @@ function fi(e) {
|
|
7530
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;
|
7531
7564
|
});
|
7532
7565
|
}
|
7533
|
-
}, [a, i, r]),
|
7566
|
+
}, [a, i, r]), B(() => {
|
7534
7567
|
function v(w) {
|
7535
7568
|
var _;
|
7536
7569
|
let T = o.current;
|
7537
|
-
|
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());
|
7538
7571
|
}
|
7539
7572
|
return document.addEventListener("keydown", v), () => {
|
7540
7573
|
document.removeEventListener("keydown", v);
|
7541
7574
|
};
|
7542
|
-
}, [
|
7575
|
+
}, [m]), V.createElement("section", { ref: o, className: "Toastify", id: h, onMouseEnter: () => {
|
7543
7576
|
r && (n(!1), Q.pause());
|
7544
7577
|
}, onMouseLeave: y, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": t["aria-label"] }, s((v, w) => {
|
7545
7578
|
let _ = w.length ? { ...f } : { ...f, pointerEvents: "none" };
|
7546
|
-
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)));
|
7547
7580
|
}));
|
7548
7581
|
}
|
7549
7582
|
const Fh = ({
|
@@ -7557,14 +7590,14 @@ const Fh = ({
|
|
7557
7590
|
} = ee(_e), { getAccessToken: s, user: l } = Se(), { status: i } = ht(), { isSuccess: d, refetch: f } = Cr({
|
7558
7591
|
user: l == null ? void 0 : l.username,
|
7559
7592
|
getAccessToken: s
|
7560
|
-
}), u = async (
|
7593
|
+
}), u = async (h) => {
|
7561
7594
|
try {
|
7562
|
-
n(at()), o([]),
|
7563
|
-
provider:
|
7595
|
+
n(at()), o([]), h !== r && (await ms({
|
7596
|
+
provider: h,
|
7564
7597
|
accessToken: await s(),
|
7565
7598
|
username: (l == null ? void 0 : l.username) || ""
|
7566
7599
|
}), f(), Q.success(
|
7567
|
-
`${zo} ${
|
7600
|
+
`${zo} ${h}`,
|
7568
7601
|
fa({
|
7569
7602
|
containerId: "toggle-provider",
|
7570
7603
|
transition: Wa
|
@@ -7666,6 +7699,7 @@ const Fh = ({
|
|
7666
7699
|
const { user: e, getAccessToken: t } = Se(), {
|
7667
7700
|
state: { streaming: r, lastResetTimestamp: a }
|
7668
7701
|
} = ee(_e), { state: n, dispatch: o } = ee(ln), { state: s } = ee(Nr), { refetch: l } = ps({
|
7702
|
+
enabled: !1,
|
7669
7703
|
user: (e == null ? void 0 : e.username) || "",
|
7670
7704
|
searchString: s.searchString,
|
7671
7705
|
sortDirection: s.sortDirection,
|
@@ -7675,8 +7709,8 @@ const Fh = ({
|
|
7675
7709
|
setInput: d,
|
7676
7710
|
handleInputChange: f,
|
7677
7711
|
handleSubmit: u,
|
7678
|
-
setMessages:
|
7679
|
-
status:
|
7712
|
+
setMessages: h,
|
7713
|
+
status: m
|
7680
7714
|
} = ht({
|
7681
7715
|
onFinish: (b, { usage: E }) => {
|
7682
7716
|
l(), g({
|
@@ -7687,7 +7721,7 @@ const Fh = ({
|
|
7687
7721
|
});
|
7688
7722
|
},
|
7689
7723
|
onError: () => {
|
7690
|
-
|
7724
|
+
h((b) => [
|
7691
7725
|
...b,
|
7692
7726
|
{
|
7693
7727
|
id: at(),
|
@@ -7697,8 +7731,8 @@ const Fh = ({
|
|
7697
7731
|
]);
|
7698
7732
|
}
|
7699
7733
|
});
|
7700
|
-
|
7701
|
-
switch (
|
7734
|
+
B(() => {
|
7735
|
+
switch (m) {
|
7702
7736
|
case "ready":
|
7703
7737
|
g({
|
7704
7738
|
type: vt,
|
@@ -7733,7 +7767,7 @@ const Fh = ({
|
|
7733
7767
|
loading: !1,
|
7734
7768
|
streaming: !1
|
7735
7769
|
}
|
7736
|
-
}),
|
7770
|
+
}), h((b) => [
|
7737
7771
|
...b,
|
7738
7772
|
{
|
7739
7773
|
id: at(),
|
@@ -7743,7 +7777,7 @@ const Fh = ({
|
|
7743
7777
|
]);
|
7744
7778
|
break;
|
7745
7779
|
}
|
7746
|
-
}, [
|
7780
|
+
}, [m, h]);
|
7747
7781
|
const { dispatch: g } = ee(_e), y = O(!1), v = O(0), w = O(null), _ = O(null), T = Ft(), I = Wh({
|
7748
7782
|
className: ""
|
7749
7783
|
}), C = Y(() => {
|
@@ -7775,16 +7809,16 @@ const Fh = ({
|
|
7775
7809
|
_ && _.current && !ua() && _.current.focus();
|
7776
7810
|
}
|
7777
7811
|
]
|
7778
|
-
]),
|
7812
|
+
]), B(() => {
|
7779
7813
|
if (n.prompt !== "") {
|
7780
7814
|
const b = n.prompt.endsWith(":") && !n.prompt.endsWith(": ") ? n.prompt + " " : n.prompt;
|
7781
7815
|
b.indexOf(Sn) !== -1 ? navigator.clipboard.readText().then((R) => {
|
7782
7816
|
d(b.replace(Sn, R));
|
7783
7817
|
}) : d(b), !ua() && _.current && _.current.focus(), o({
|
7784
|
-
type:
|
7818
|
+
type: Bo
|
7785
7819
|
});
|
7786
7820
|
}
|
7787
|
-
}, [n, o, d]),
|
7821
|
+
}, [n, o, d]), B(() => {
|
7788
7822
|
if (y.current === !1) {
|
7789
7823
|
y.current = !0, !i && dr(_);
|
7790
7824
|
return;
|
@@ -7792,7 +7826,7 @@ const Fh = ({
|
|
7792
7826
|
a > 0 && a !== v.current ? (v.current = a, setTimeout(() => {
|
7793
7827
|
_.current && (!i && dr(_), _.current.focus());
|
7794
7828
|
}, qh)) : r === !1 && !i && (dr(_), _.current && _.current.focus());
|
7795
|
-
}, [a, r, i]),
|
7829
|
+
}, [a, r, i]), B(() => {
|
7796
7830
|
n.lastTriggeredTimestamp && setTimeout(() => {
|
7797
7831
|
C();
|
7798
7832
|
}, 100);
|
@@ -7828,21 +7862,21 @@ const Fh = ({
|
|
7828
7862
|
state: { footerHeight: n, footerPosition: o },
|
7829
7863
|
dispatch: s
|
7830
7864
|
} = ee(cn), { messages: l } = ht(), { height: i } = ic(), { height: d } = lc(), [f, u] = ss();
|
7831
|
-
return
|
7865
|
+
return B(() => {
|
7832
7866
|
n !== u.height && s({
|
7833
7867
|
type: us,
|
7834
7868
|
payload: {
|
7835
7869
|
footerHeight: u.height
|
7836
7870
|
}
|
7837
7871
|
});
|
7838
|
-
}, [u.height, n, s]),
|
7872
|
+
}, [u.height, n, s]), B(() => {
|
7839
7873
|
var g, y, v, w;
|
7840
7874
|
if (!f || !f.current)
|
7841
7875
|
return;
|
7842
|
-
const
|
7876
|
+
const h = i - d, m = (g = f == null ? void 0 : f.current) == null ? void 0 : g.style.getPropertyValue(ur);
|
7843
7877
|
if (o === Ea && (t && !r || a)) {
|
7844
|
-
const _ =
|
7845
|
-
|
7878
|
+
const _ = h > 0 && h < 100 ? Io : Eo;
|
7879
|
+
m !== `${_}px` && (s({
|
7846
7880
|
type: mr,
|
7847
7881
|
payload: {
|
7848
7882
|
footerPosition: Vt,
|
@@ -7851,8 +7885,8 @@ const Fh = ({
|
|
7851
7885
|
}), (y = f == null ? void 0 : f.current) == null || y.style.setProperty(ur, `${_}px`));
|
7852
7886
|
}
|
7853
7887
|
if (o === Vt) {
|
7854
|
-
const _ =
|
7855
|
-
|
7888
|
+
const _ = h > 0 && h < 100 ? Io : Eo;
|
7889
|
+
m !== `${_}px` && (s({
|
7856
7890
|
type: mr,
|
7857
7891
|
payload: {
|
7858
7892
|
footerPosition: Vt,
|
@@ -7862,7 +7896,7 @@ const Fh = ({
|
|
7862
7896
|
}
|
7863
7897
|
if (!t && !r && !a && l.length === 0 && i > 0 && u.height > 0) {
|
7864
7898
|
const _ = `${i - u.height - (e ? 300 : 245)}`;
|
7865
|
-
|
7899
|
+
m !== `${_}px` && Number(_) > 0 && (s({
|
7866
7900
|
type: mr,
|
7867
7901
|
payload: {
|
7868
7902
|
footerPosition: Ea,
|
@@ -7898,7 +7932,7 @@ const Fh = ({
|
|
7898
7932
|
),
|
7899
7933
|
children: [
|
7900
7934
|
/* @__PURE__ */ c(Kh, {}),
|
7901
|
-
/* @__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 })
|
7902
7936
|
]
|
7903
7937
|
}
|
7904
7938
|
);
|
@@ -7906,18 +7940,18 @@ const Fh = ({
|
|
7906
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) || [];
|
7907
7941
|
return /* @__PURE__ */ N(he, { children: [
|
7908
7942
|
/* @__PURE__ */ c("div", { className: "mb-4", children: /* @__PURE__ */ c(
|
7909
|
-
|
7943
|
+
Pe,
|
7910
7944
|
{
|
7911
7945
|
header: le.ABOUT.TITLE_CLIENT,
|
7912
7946
|
className: "prose-dark dark:prose-lighter",
|
7913
7947
|
children: gr(e, {
|
7914
|
-
[le.ABOUT.VERSION]: "8.4.
|
7915
|
-
[le.ABOUT.BUILD_TIMESTAMP]: "03/
|
7948
|
+
[le.ABOUT.VERSION]: "8.4.10",
|
7949
|
+
[le.ABOUT.BUILD_TIMESTAMP]: "03/10/2025 02:20 PM EDT"
|
7916
7950
|
})
|
7917
7951
|
}
|
7918
7952
|
) }),
|
7919
7953
|
a ? /* @__PURE__ */ c(
|
7920
|
-
|
7954
|
+
Pe,
|
7921
7955
|
{
|
7922
7956
|
header: le.ABOUT.TITLE_SERVER,
|
7923
7957
|
className: "prose-dark dark:prose-lighter",
|
@@ -7931,7 +7965,16 @@ const Fh = ({
|
|
7931
7965
|
}, Zh = ({
|
7932
7966
|
open: e,
|
7933
7967
|
onOpenChange: t
|
7934
|
-
}) => /* @__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 = ({
|
7935
7978
|
filteredHistory: e,
|
7936
7979
|
dispatch: t,
|
7937
7980
|
onOpenChange: r,
|
@@ -7944,17 +7987,17 @@ const Fh = ({
|
|
7944
7987
|
message: ""
|
7945
7988
|
}), [i, d] = F(!1), [f, u] = F(
|
7946
7989
|
Rn + An
|
7947
|
-
), { state:
|
7990
|
+
), { state: h, dispatch: m } = ee(Nr), {
|
7948
7991
|
state: { provider: g },
|
7949
7992
|
setChatId: y,
|
7950
7993
|
setInitialMessages: v
|
7951
7994
|
} = ee(_e), { setInput: w } = ht(), [, _] = Ct({
|
7952
7995
|
key: It + Vo,
|
7953
|
-
initialValue:
|
7996
|
+
initialValue: h.sortDirection
|
7954
7997
|
}), T = (b) => {
|
7955
|
-
switch (
|
7998
|
+
switch (h.sortDirection) {
|
7956
7999
|
case ze.ASC:
|
7957
|
-
_(ze.DESC),
|
8000
|
+
_(ze.DESC), m({
|
7958
8001
|
type: ca,
|
7959
8002
|
payload: {
|
7960
8003
|
sortedCell: b,
|
@@ -7963,7 +8006,7 @@ const Fh = ({
|
|
7963
8006
|
});
|
7964
8007
|
break;
|
7965
8008
|
default:
|
7966
|
-
_(ze.ASC),
|
8009
|
+
_(ze.ASC), m({
|
7967
8010
|
type: ca,
|
7968
8011
|
payload: {
|
7969
8012
|
sortedCell: b,
|
@@ -7983,7 +8026,7 @@ const Fh = ({
|
|
7983
8026
|
id: b.id
|
7984
8027
|
}
|
7985
8028
|
}), a(""), Q.error(
|
7986
|
-
|
8029
|
+
Pi,
|
7987
8030
|
fa({
|
7988
8031
|
autoClose: 2e3,
|
7989
8032
|
containerId: "history-table",
|
@@ -8027,7 +8070,7 @@ const Fh = ({
|
|
8027
8070
|
}, k = Y((b) => {
|
8028
8071
|
b[0].isIntersecting && u((R) => R + Rn);
|
8029
8072
|
}, []);
|
8030
|
-
return
|
8073
|
+
return B(() => {
|
8031
8074
|
const b = {
|
8032
8075
|
// root: null,
|
8033
8076
|
rootMargin: "20px"
|
@@ -8063,8 +8106,8 @@ const Fh = ({
|
|
8063
8106
|
}
|
8064
8107
|
),
|
8065
8108
|
/* @__PURE__ */ c(fi, { containerId: "history-table" }),
|
8066
|
-
/* @__PURE__ */ N(
|
8067
|
-
/* @__PURE__ */ c(
|
8109
|
+
/* @__PURE__ */ N(Bc, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
8110
|
+
/* @__PURE__ */ c(Pc, { children: /* @__PURE__ */ N(jr, { children: [
|
8068
8111
|
/* @__PURE__ */ c(Re, { className: "sr-only", children: "Row" }),
|
8069
8112
|
/* @__PURE__ */ c(
|
8070
8113
|
Fc,
|
@@ -8072,8 +8115,8 @@ const Fh = ({
|
|
8072
8115
|
buttonClassName: "text-xs sm:text-sm",
|
8073
8116
|
cellId: "timestamp",
|
8074
8117
|
align: "left",
|
8075
|
-
sortDirection:
|
8076
|
-
sortedCell:
|
8118
|
+
sortDirection: h.sortDirection,
|
8119
|
+
sortedCell: h.sortedCell,
|
8077
8120
|
onClick: () => {
|
8078
8121
|
T("timestamp");
|
8079
8122
|
},
|
@@ -8178,7 +8221,8 @@ const Fh = ({
|
|
8178
8221
|
}) => {
|
8179
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(
|
8180
8223
|
i.sortDirection
|
8181
|
-
), { data:
|
8224
|
+
), { data: h, refetch: m } = ps({
|
8225
|
+
enabled: e,
|
8182
8226
|
user: (a == null ? void 0 : a.username) || "",
|
8183
8227
|
searchString: i.searchString,
|
8184
8228
|
sortDirection: f,
|
@@ -8187,71 +8231,80 @@ const Fh = ({
|
|
8187
8231
|
key: It + Fo,
|
8188
8232
|
initialValue: i.searchString
|
8189
8233
|
});
|
8190
|
-
|
8234
|
+
B(() => {
|
8191
8235
|
i.sortDirection !== f && u(i.sortDirection);
|
8192
|
-
}, [i, f]),
|
8193
|
-
|
8194
|
-
}, [
|
8236
|
+
}, [i, f]), B(() => {
|
8237
|
+
h && s(h);
|
8238
|
+
}, [h]);
|
8195
8239
|
const y = async (_) => {
|
8196
8240
|
g(_), d({
|
8197
|
-
type:
|
8241
|
+
type: Do,
|
8198
8242
|
payload: { searchString: _ }
|
8199
8243
|
});
|
8200
8244
|
}, v = Fi((_) => {
|
8201
8245
|
y(_.target.value.trim());
|
8202
8246
|
}, 500);
|
8203
|
-
return /* @__PURE__ */ c(
|
8204
|
-
|
8205
|
-
|
8206
|
-
|
8207
|
-
|
8208
|
-
|
8209
|
-
|
8210
|
-
|
8211
|
-
|
8212
|
-
|
8213
|
-
|
8214
|
-
|
8215
|
-
ref: l,
|
8216
|
-
defaultValue: i.searchString,
|
8217
|
-
focusMode: "light",
|
8218
|
-
mode: "light",
|
8219
|
-
name: "Search",
|
8220
|
-
label: "Search",
|
8221
|
-
onChange: v,
|
8222
|
-
className: "my-2",
|
8223
|
-
rightElement: /* @__PURE__ */ c("div", { className: "text-copy-dark", children: /* @__PURE__ */ c(
|
8224
|
-
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,
|
8225
8259
|
{
|
8226
|
-
|
8227
|
-
|
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",
|
8228
8271
|
label: "Search",
|
8229
|
-
|
8230
|
-
|
8231
|
-
|
8232
|
-
|
8233
|
-
|
8234
|
-
|
8235
|
-
|
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
|
8236
8298
|
}
|
8237
8299
|
) })
|
8238
|
-
}
|
8239
|
-
|
8240
|
-
|
8241
|
-
em,
|
8242
|
-
{
|
8243
|
-
mutate: h,
|
8244
|
-
filteredHistory: o,
|
8245
|
-
dispatch: n,
|
8246
|
-
onOpenChange: t
|
8247
|
-
}
|
8248
|
-
) })
|
8249
|
-
] }) });
|
8300
|
+
] })
|
8301
|
+
}
|
8302
|
+
);
|
8250
8303
|
}, rm = ({ stats: e }) => {
|
8251
8304
|
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Se(), o = Ft(), s = Ft(), l = (r == null ? void 0 : r.username) || "";
|
8252
8305
|
return t && l ? /* @__PURE__ */ N(he, { children: [
|
8253
8306
|
/* @__PURE__ */ c(
|
8254
|
-
|
8307
|
+
Pe,
|
8255
8308
|
{
|
8256
8309
|
header: le.PREFERENCES.TITLE,
|
8257
8310
|
className: "prose-dark dark:prose-lighter",
|
@@ -8262,7 +8315,7 @@ const Fh = ({
|
|
8262
8315
|
}
|
8263
8316
|
),
|
8264
8317
|
n !== Ui.PASSKEY && !da() && /* @__PURE__ */ N(
|
8265
|
-
|
8318
|
+
Pe,
|
8266
8319
|
{
|
8267
8320
|
className: "prose-dark dark:prose-lighter mt-4",
|
8268
8321
|
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ N(wr, { columnGap: 3, alignVertical: "center", children: [
|
@@ -8285,7 +8338,7 @@ const Fh = ({
|
|
8285
8338
|
}
|
8286
8339
|
),
|
8287
8340
|
/* @__PURE__ */ c(
|
8288
|
-
|
8341
|
+
Pe,
|
8289
8342
|
{
|
8290
8343
|
header: le.MAIN_STATISTICS.TITLE,
|
8291
8344
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -8306,16 +8359,25 @@ const Fh = ({
|
|
8306
8359
|
user: a == null ? void 0 : a.username,
|
8307
8360
|
getAccessToken: r
|
8308
8361
|
});
|
8309
|
-
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;
|
8310
8372
|
};
|
8311
8373
|
/*!
|
8312
|
-
@versini/ui-textarea v3.0.
|
8374
|
+
@versini/ui-textarea v3.0.20
|
8313
8375
|
© 2025 gizmette.com
|
8314
8376
|
*/
|
8315
8377
|
try {
|
8316
8378
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
8317
|
-
version: "3.0.
|
8318
|
-
buildTime: "03/
|
8379
|
+
version: "3.0.20",
|
8380
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
8319
8381
|
homepage: "https://github.com/aversini/ui-components",
|
8320
8382
|
license: "MIT"
|
8321
8383
|
});
|
@@ -8324,7 +8386,7 @@ try {
|
|
8324
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";
|
8325
8387
|
function im() {
|
8326
8388
|
const e = O(!1);
|
8327
|
-
return
|
8389
|
+
return B(() => (e.current = !0, () => {
|
8328
8390
|
e.current = !1;
|
8329
8391
|
}), []), Y(() => e.current, []);
|
8330
8392
|
}
|
@@ -8353,7 +8415,7 @@ function Co(e) {
|
|
8353
8415
|
a.current && t() && o(i.contentRect);
|
8354
8416
|
}));
|
8355
8417
|
}), [t]);
|
8356
|
-
return
|
8418
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
8357
8419
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
8358
8420
|
}), [s, e]), [a, n];
|
8359
8421
|
}
|
@@ -8370,7 +8432,7 @@ function dm({
|
|
8370
8432
|
), d = (f) => {
|
8371
8433
|
i(f), a == null || a(f);
|
8372
8434
|
};
|
8373
|
-
return
|
8435
|
+
return B(() => {
|
8374
8436
|
(async () => e !== void 0 && !o && n > 0 && (await new Promise(
|
8375
8437
|
(f) => setTimeout(f, n)
|
8376
8438
|
), s(!0)))();
|
@@ -8468,11 +8530,11 @@ function gm({
|
|
8468
8530
|
visible: l,
|
8469
8531
|
...i
|
8470
8532
|
}) {
|
8471
|
-
const d = O(null), f = O(null), [u,
|
8533
|
+
const d = O(null), f = O(null), [u, h] = Dt(hm, {
|
8472
8534
|
announcement: null
|
8473
8535
|
});
|
8474
|
-
let
|
8475
|
-
typeof
|
8536
|
+
let m = r;
|
8537
|
+
typeof m > "u" && (m = a ? fm[a] : "assertive"), B(() => {
|
8476
8538
|
pm({
|
8477
8539
|
announcementTimeoutRef: d,
|
8478
8540
|
announcementDelay: n,
|
@@ -8480,7 +8542,7 @@ function gm({
|
|
8480
8542
|
clearAnnouncementDelay: o,
|
8481
8543
|
clearAnnouncementTimeoutRef: f,
|
8482
8544
|
onAnnouncementClear: s,
|
8483
|
-
dispatch:
|
8545
|
+
dispatch: h
|
8484
8546
|
});
|
8485
8547
|
}, [
|
8486
8548
|
e,
|
@@ -8494,7 +8556,7 @@ function gm({
|
|
8494
8556
|
return /* @__PURE__ */ c(
|
8495
8557
|
"div",
|
8496
8558
|
{
|
8497
|
-
"aria-live":
|
8559
|
+
"aria-live": m,
|
8498
8560
|
...a && { role: a },
|
8499
8561
|
className: g,
|
8500
8562
|
...i,
|
@@ -8503,13 +8565,13 @@ function gm({
|
|
8503
8565
|
);
|
8504
8566
|
}
|
8505
8567
|
/*!
|
8506
|
-
@versini/ui-liveregion v1.3.
|
8568
|
+
@versini/ui-liveregion v1.3.11
|
8507
8569
|
© 2025 gizmette.com
|
8508
8570
|
*/
|
8509
8571
|
try {
|
8510
8572
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
8511
|
-
version: "1.3.
|
8512
|
-
buildTime: "03/
|
8573
|
+
version: "1.3.11",
|
8574
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
8513
8575
|
homepage: "https://github.com/aversini/ui-components",
|
8514
8576
|
license: "MIT"
|
8515
8577
|
});
|
@@ -8630,7 +8692,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8630
8692
|
{
|
8631
8693
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
8632
8694
|
}
|
8633
|
-
),
|
8695
|
+
), h = r ? void 0 : "sr-only", m = wm({
|
8634
8696
|
disabled: n,
|
8635
8697
|
raw: r,
|
8636
8698
|
error: s,
|
@@ -8646,8 +8708,8 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8646
8708
|
return {
|
8647
8709
|
wrapper: f,
|
8648
8710
|
textArea: u,
|
8649
|
-
accessibleLabel:
|
8650
|
-
visibleLabel:
|
8711
|
+
accessibleLabel: h,
|
8712
|
+
visibleLabel: m,
|
8651
8713
|
helperText: g,
|
8652
8714
|
rightElement: y,
|
8653
8715
|
leftElement: v
|
@@ -8682,8 +8744,8 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8682
8744
|
value: d,
|
8683
8745
|
defaultValue: f,
|
8684
8746
|
disabled: u = !1,
|
8685
|
-
noBorder:
|
8686
|
-
labelId:
|
8747
|
+
noBorder: h = !1,
|
8748
|
+
labelId: m,
|
8687
8749
|
helperText: g = "",
|
8688
8750
|
helperTextOnFocus: y = !1,
|
8689
8751
|
rightElement: v,
|
@@ -8694,7 +8756,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8694
8756
|
...C
|
8695
8757
|
}, k) => {
|
8696
8758
|
var x;
|
8697
|
-
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(
|
8698
8760
|
!!(!y && g)
|
8699
8761
|
), Me = `${t} error, ${g}`, we = xm({
|
8700
8762
|
className: o,
|
@@ -8703,7 +8765,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8703
8765
|
raw: n,
|
8704
8766
|
focusMode: i,
|
8705
8767
|
disabled: u,
|
8706
|
-
noBorder:
|
8768
|
+
noBorder: h,
|
8707
8769
|
mode: l,
|
8708
8770
|
rightElement: !!v,
|
8709
8771
|
leftElement: !!w
|
@@ -8734,7 +8796,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8734
8796
|
}, [Ce, n]), ge(() => {
|
8735
8797
|
n || setTimeout(() => {
|
8736
8798
|
var P;
|
8737
|
-
(P =
|
8799
|
+
(P = D == null ? void 0 : D.current) == null || P.style.setProperty(
|
8738
8800
|
"--av-text-area-wrapper-transition",
|
8739
8801
|
Ce ? "none" : "all 0.2s ease-out"
|
8740
8802
|
);
|
@@ -8748,7 +8810,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8748
8810
|
currentLabelOffset: U.current,
|
8749
8811
|
currentHelperTextOffset: W.current
|
8750
8812
|
});
|
8751
|
-
Z && (U.current = Z, (P =
|
8813
|
+
Z && (U.current = Z, (P = D == null ? void 0 : D.current) == null || P.style.setProperty(
|
8752
8814
|
"--av-text-area-label",
|
8753
8815
|
`${Z}px`
|
8754
8816
|
)), K && (W.current = K, (z = j == null ? void 0 : j.current) == null || z.style.setProperty(
|
@@ -8756,7 +8818,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8756
8818
|
`${K}px`
|
8757
8819
|
)), M.current = se || M.current;
|
8758
8820
|
}
|
8759
|
-
}, [Ce, n]), $.width > 0 && ((x =
|
8821
|
+
}, [Ce, n]), $.width > 0 && ((x = D == null ? void 0 : D.current) == null || x.style.setProperty(
|
8760
8822
|
"--tw-translate-x",
|
8761
8823
|
`${12 + $.width + 5}px`
|
8762
8824
|
)), /* @__PURE__ */ N("div", { className: we.wrapper, children: [
|
@@ -8764,7 +8826,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8764
8826
|
"label",
|
8765
8827
|
{
|
8766
8828
|
htmlFor: J,
|
8767
|
-
id:
|
8829
|
+
id: m,
|
8768
8830
|
className: we.accessibleLabel,
|
8769
8831
|
children: r
|
8770
8832
|
}
|
@@ -8807,7 +8869,7 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8807
8869
|
!n && /* @__PURE__ */ c(
|
8808
8870
|
"label",
|
8809
8871
|
{
|
8810
|
-
ref:
|
8872
|
+
ref: D,
|
8811
8873
|
"aria-hidden": !0,
|
8812
8874
|
htmlFor: J,
|
8813
8875
|
className: `${we.visibleLabel}`,
|
@@ -8837,13 +8899,13 @@ const ym = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8837
8899
|
);
|
8838
8900
|
qa.displayName = "TextArea";
|
8839
8901
|
/*!
|
8840
|
-
@versini/ui-toggle v3.0.
|
8902
|
+
@versini/ui-toggle v3.0.12
|
8841
8903
|
© 2025 gizmette.com
|
8842
8904
|
*/
|
8843
8905
|
try {
|
8844
8906
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
8845
|
-
version: "3.0.
|
8846
|
-
buildTime: "
|
8907
|
+
version: "3.0.12",
|
8908
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
8847
8909
|
homepage: "https://github.com/aversini/ui-components",
|
8848
8910
|
license: "MIT"
|
8849
8911
|
});
|
@@ -8967,7 +9029,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
8967
9029
|
loadingLocation: !1
|
8968
9030
|
}), [d, f] = F({
|
8969
9031
|
prompts: []
|
8970
|
-
}), [u,
|
9032
|
+
}), [u, h] = F(""), [m, g] = F(""), [y, v] = Ct({
|
8971
9033
|
key: It + Gi,
|
8972
9034
|
initialValue: !1
|
8973
9035
|
}), w = (k) => {
|
@@ -8981,7 +9043,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
8981
9043
|
params: {
|
8982
9044
|
user: a == null ? void 0 : a.username,
|
8983
9045
|
instructions: u,
|
8984
|
-
location:
|
9046
|
+
location: m,
|
8985
9047
|
provider: n == null ? void 0 : n.provider,
|
8986
9048
|
tags: d.prompts
|
8987
9049
|
}
|
@@ -9040,11 +9102,12 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9040
9102
|
});
|
9041
9103
|
});
|
9042
9104
|
};
|
9043
|
-
return
|
9044
|
-
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 });
|
9045
9107
|
}, [n]), o ? /* @__PURE__ */ c(
|
9046
9108
|
Zt,
|
9047
9109
|
{
|
9110
|
+
animation: !0,
|
9048
9111
|
open: e,
|
9049
9112
|
onOpenChange: I,
|
9050
9113
|
title: Wi,
|
@@ -9082,7 +9145,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9082
9145
|
),
|
9083
9146
|
children: /* @__PURE__ */ N(he, { children: [
|
9084
9147
|
/* @__PURE__ */ N(
|
9085
|
-
|
9148
|
+
Pe,
|
9086
9149
|
{
|
9087
9150
|
header: le.SETTINGS_DETAILS.TITLE,
|
9088
9151
|
className: "prose-dark dark:prose-lighter",
|
@@ -9103,7 +9166,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9103
9166
|
}
|
9104
9167
|
),
|
9105
9168
|
/* @__PURE__ */ N(
|
9106
|
-
|
9169
|
+
Pe,
|
9107
9170
|
{
|
9108
9171
|
header: "Custom Instructions",
|
9109
9172
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -9124,7 +9187,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9124
9187
|
label: "Custom Instructions",
|
9125
9188
|
value: u,
|
9126
9189
|
onChange: (k) => {
|
9127
|
-
|
9190
|
+
h(k.target.value);
|
9128
9191
|
},
|
9129
9192
|
helperText: "Press ENTER to add a new line."
|
9130
9193
|
}
|
@@ -9133,7 +9196,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9133
9196
|
}
|
9134
9197
|
),
|
9135
9198
|
/* @__PURE__ */ N(
|
9136
|
-
|
9199
|
+
Pe,
|
9137
9200
|
{
|
9138
9201
|
header: "Location",
|
9139
9202
|
className: "prose-dark dark:prose-lighter mt-4",
|
@@ -9145,7 +9208,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9145
9208
|
mode: "alt-system",
|
9146
9209
|
name: "location",
|
9147
9210
|
label: "Location",
|
9148
|
-
value:
|
9211
|
+
value: m,
|
9149
9212
|
onChange: (k) => {
|
9150
9213
|
g(k.target.value);
|
9151
9214
|
},
|
@@ -9167,14 +9230,14 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9167
9230
|
}
|
9168
9231
|
),
|
9169
9232
|
/* @__PURE__ */ N(
|
9170
|
-
|
9233
|
+
Pe,
|
9171
9234
|
{
|
9172
9235
|
header: le.SETTINGS_PROMPTS.TITLE,
|
9173
9236
|
className: "prose-dark dark:prose-lighter mt-4",
|
9174
9237
|
children: [
|
9175
9238
|
/* @__PURE__ */ c("p", { className: "text-sm", children: Yi }),
|
9176
9239
|
d.prompts && d.prompts.slice(0, 3).map((k) => /* @__PURE__ */ N(
|
9177
|
-
|
9240
|
+
Pe,
|
9178
9241
|
{
|
9179
9242
|
mode: "dark",
|
9180
9243
|
noBorder: !0,
|
@@ -9309,7 +9372,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9309
9372
|
onClick: () => {
|
9310
9373
|
l(!s);
|
9311
9374
|
},
|
9312
|
-
icon: /* @__PURE__ */ c(
|
9375
|
+
icon: /* @__PURE__ */ c(Bl, {})
|
9313
9376
|
}
|
9314
9377
|
),
|
9315
9378
|
/* @__PURE__ */ c(
|
@@ -9319,7 +9382,7 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9319
9382
|
onClick: () => {
|
9320
9383
|
d(!i);
|
9321
9384
|
},
|
9322
|
-
icon: /* @__PURE__ */ c(
|
9385
|
+
icon: /* @__PURE__ */ c(Pl, {})
|
9323
9386
|
}
|
9324
9387
|
),
|
9325
9388
|
!e && /* @__PURE__ */ N(he, { children: [
|
@@ -9344,19 +9407,19 @@ const Em = "av-toggle", Im = () => p("peer", "h-6", "w-11", "rounded-full"), Cm
|
|
9344
9407
|
] });
|
9345
9408
|
};
|
9346
9409
|
/*!
|
9347
|
-
@versini/ui-bubble v3.4.
|
9410
|
+
@versini/ui-bubble v3.4.1
|
9348
9411
|
© 2025 gizmette.com
|
9349
9412
|
*/
|
9350
9413
|
try {
|
9351
9414
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
9352
|
-
version: "3.4.
|
9353
|
-
buildTime: "03/
|
9415
|
+
version: "3.4.1",
|
9416
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
9354
9417
|
homepage: "https://github.com/aversini/ui-components",
|
9355
9418
|
license: "MIT"
|
9356
9419
|
});
|
9357
9420
|
} catch {
|
9358
9421
|
}
|
9359
|
-
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 = ({
|
9360
9423
|
type: e,
|
9361
9424
|
size: t,
|
9362
9425
|
labelRight: r,
|
@@ -9392,7 +9455,7 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9392
9455
|
"h-12": t === "large" && o && (r || a)
|
9393
9456
|
});
|
9394
9457
|
}
|
9395
|
-
},
|
9458
|
+
}, Bm = ({
|
9396
9459
|
type: e,
|
9397
9460
|
size: t,
|
9398
9461
|
labelRight: r,
|
@@ -9415,7 +9478,7 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9415
9478
|
[s]: t === "large" && (r || a)
|
9416
9479
|
});
|
9417
9480
|
}
|
9418
|
-
},
|
9481
|
+
}, Pm = ({
|
9419
9482
|
mode: e,
|
9420
9483
|
noBackground: t,
|
9421
9484
|
noTruncate: r,
|
@@ -9613,22 +9676,22 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9613
9676
|
labelRight: d,
|
9614
9677
|
labelLeft: f,
|
9615
9678
|
noBackground: u,
|
9616
|
-
variant:
|
9617
|
-
noTruncate:
|
9679
|
+
variant: h,
|
9680
|
+
noTruncate: m,
|
9618
9681
|
align: g,
|
9619
9682
|
radius: y,
|
9620
9683
|
animated: v
|
9621
|
-
}) => (
|
9684
|
+
}) => (h || (h = "primary"), r ? p(No, t) : p(
|
9622
9685
|
No,
|
9623
|
-
|
9686
|
+
Pm({
|
9624
9687
|
mode: a,
|
9625
|
-
variant:
|
9688
|
+
variant: h,
|
9626
9689
|
noBackground: u,
|
9627
|
-
noTruncate:
|
9690
|
+
noTruncate: m
|
9628
9691
|
}),
|
9629
|
-
zm({ mode: a, noBackground: u, variant:
|
9692
|
+
zm({ mode: a, noBackground: u, variant: h }),
|
9630
9693
|
Vm({ radius: y }),
|
9631
|
-
|
9694
|
+
Dm({
|
9632
9695
|
type: e,
|
9633
9696
|
size: l,
|
9634
9697
|
labelRight: d,
|
@@ -9636,11 +9699,11 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9636
9699
|
align: g,
|
9637
9700
|
animated: v
|
9638
9701
|
}),
|
9639
|
-
|
9640
|
-
Hm({ mode: a, variant:
|
9702
|
+
Bm({ type: e, size: l, labelRight: d, labelLeft: f }),
|
9703
|
+
Hm({ mode: a, variant: h, noBorder: i }),
|
9641
9704
|
jm({ focusMode: n }),
|
9642
|
-
Fm({ mode: a, variant:
|
9643
|
-
Um({ mode: a, variant:
|
9705
|
+
Fm({ mode: a, variant: h, disabled: o }),
|
9706
|
+
Um({ mode: a, variant: h, disabled: o }),
|
9644
9707
|
{
|
9645
9708
|
"w-full": s,
|
9646
9709
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -9668,7 +9731,7 @@ const pr = "av-bubble", No = "av-button", zr = "icon", bi = "button", Ya = "link
|
|
9668
9731
|
vi.displayName = "BaseButton";
|
9669
9732
|
function Jm() {
|
9670
9733
|
const e = O(!1);
|
9671
|
-
return
|
9734
|
+
return B(() => (e.current = !0, () => {
|
9672
9735
|
e.current = !1;
|
9673
9736
|
}), []), Y(() => e.current, []);
|
9674
9737
|
}
|
@@ -9697,7 +9760,7 @@ function oa(e) {
|
|
9697
9760
|
a.current && t() && o(i.contentRect);
|
9698
9761
|
}));
|
9699
9762
|
}), [t]);
|
9700
|
-
return
|
9763
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
9701
9764
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
9702
9765
|
}), [s, e]), [a, n];
|
9703
9766
|
}
|
@@ -9729,8 +9792,8 @@ const Xm = {
|
|
9729
9792
|
"aria-label": d,
|
9730
9793
|
label: f,
|
9731
9794
|
size: u = "medium",
|
9732
|
-
labelRight:
|
9733
|
-
labelLeft:
|
9795
|
+
labelRight: h,
|
9796
|
+
labelLeft: m,
|
9734
9797
|
noBackground: g = !1,
|
9735
9798
|
align: y = "center",
|
9736
9799
|
radius: v = "large",
|
@@ -9749,24 +9812,24 @@ const Xm = {
|
|
9749
9812
|
className: o,
|
9750
9813
|
noBorder: i,
|
9751
9814
|
size: u,
|
9752
|
-
labelRight:
|
9753
|
-
labelLeft:
|
9815
|
+
labelRight: h,
|
9816
|
+
labelLeft: m,
|
9754
9817
|
noBackground: g,
|
9755
9818
|
align: y,
|
9756
9819
|
radius: v,
|
9757
9820
|
variant: w,
|
9758
9821
|
animated: T
|
9759
|
-
}), 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]);
|
9760
9823
|
return ge(() => {
|
9761
9824
|
$ && $.current && T && (U.current = M.width + Zm[u] + (i ? 0 : ep));
|
9762
9825
|
}, [M, $, u, i, T]), ge(() => {
|
9763
|
-
|
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`));
|
9764
9827
|
}, [
|
9765
9828
|
R,
|
9766
|
-
|
9829
|
+
h,
|
9767
9830
|
E,
|
9768
9831
|
L,
|
9769
|
-
|
9832
|
+
m,
|
9770
9833
|
S,
|
9771
9834
|
u,
|
9772
9835
|
T
|
@@ -9783,7 +9846,7 @@ const Xm = {
|
|
9783
9846
|
/* @__PURE__ */ c(
|
9784
9847
|
Ro,
|
9785
9848
|
{
|
9786
|
-
label:
|
9849
|
+
label: m,
|
9787
9850
|
labelRef: S,
|
9788
9851
|
labelClass: b,
|
9789
9852
|
labelInnerClass: "pr-2"
|
@@ -9793,7 +9856,7 @@ const Xm = {
|
|
9793
9856
|
/* @__PURE__ */ c(
|
9794
9857
|
Ro,
|
9795
9858
|
{
|
9796
|
-
label:
|
9859
|
+
label: h,
|
9797
9860
|
labelRef: E,
|
9798
9861
|
labelClass: b,
|
9799
9862
|
labelInnerClass: "pl-2"
|
@@ -9811,13 +9874,13 @@ const Xm = {
|
|
9811
9874
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
9812
9875
|
yn.displayName = "ButtonIcon";
|
9813
9876
|
/*!
|
9814
|
-
@versini/ui-button v4.2.
|
9877
|
+
@versini/ui-button v4.2.11
|
9815
9878
|
© 2025 gizmette.com
|
9816
9879
|
*/
|
9817
9880
|
try {
|
9818
9881
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
9819
|
-
version: "4.2.
|
9820
|
-
buildTime: "03/
|
9882
|
+
version: "4.2.11",
|
9883
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
9821
9884
|
homepage: "https://github.com/aversini/ui-components",
|
9822
9885
|
license: "MIT"
|
9823
9886
|
});
|
@@ -9874,32 +9937,32 @@ const _i = ({
|
|
9874
9937
|
...i
|
9875
9938
|
}) => {
|
9876
9939
|
const d = p(o, a);
|
9877
|
-
return /* @__PURE__ */
|
9878
|
-
|
9879
|
-
|
9880
|
-
|
9881
|
-
|
9882
|
-
|
9883
|
-
|
9884
|
-
|
9885
|
-
|
9886
|
-
|
9887
|
-
|
9888
|
-
|
9889
|
-
children:
|
9890
|
-
|
9891
|
-
|
9892
|
-
|
9893
|
-
|
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
|
+
) });
|
9894
9957
|
};
|
9895
9958
|
/*!
|
9896
|
-
@versini/ui-svgicon v4.
|
9959
|
+
@versini/ui-svgicon v4.1.1
|
9897
9960
|
© 2025 gizmette.com
|
9898
9961
|
*/
|
9899
9962
|
try {
|
9900
9963
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
9901
|
-
version: "4.
|
9902
|
-
buildTime: "
|
9964
|
+
version: "4.1.1",
|
9965
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
9903
9966
|
homepage: "https://github.com/aversini/ui-components",
|
9904
9967
|
license: "MIT"
|
9905
9968
|
});
|
@@ -9950,13 +10013,13 @@ const rp = ({
|
|
9950
10013
|
}
|
9951
10014
|
);
|
9952
10015
|
/*!
|
9953
|
-
@versini/ui-icons v4.
|
10016
|
+
@versini/ui-icons v4.8.1
|
9954
10017
|
© 2025 gizmette.com
|
9955
10018
|
*/
|
9956
10019
|
try {
|
9957
10020
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
9958
|
-
version: "4.
|
9959
|
-
buildTime: "
|
10021
|
+
version: "4.8.1",
|
10022
|
+
buildTime: "02/27/2025 03:46 PM EST",
|
9960
10023
|
homepage: "https://github.com/aversini/ui-components",
|
9961
10024
|
license: "MIT"
|
9962
10025
|
});
|
@@ -10045,33 +10108,33 @@ const np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10045
10108
|
noMaxWidth: d = !1,
|
10046
10109
|
tail: f = !1
|
10047
10110
|
}) => {
|
10048
|
-
const [u,
|
10111
|
+
const [u, h] = F(!1), m = lp({
|
10049
10112
|
kind: t,
|
10050
10113
|
className: r,
|
10051
10114
|
contentClassName: a,
|
10052
10115
|
noMaxWidth: d,
|
10053
10116
|
tail: f
|
10054
10117
|
}), g = !!s && (typeof s == "function" || typeof s == "string" || typeof e == "string"), y = () => {
|
10055
|
-
|
10118
|
+
h(!0), typeof s == "function" ? s(e) : typeof s == "string" ? navigator.clipboard.writeText(s) : typeof e == "string" && navigator.clipboard.writeText(e);
|
10056
10119
|
};
|
10057
|
-
return
|
10120
|
+
return B(() => {
|
10058
10121
|
let v;
|
10059
10122
|
return u && (v = window.setTimeout(() => {
|
10060
|
-
|
10123
|
+
h(!1);
|
10061
10124
|
}, 3e3)), () => {
|
10062
10125
|
clearTimeout(v);
|
10063
10126
|
};
|
10064
|
-
}, [u]), /* @__PURE__ */ N("div", { className:
|
10127
|
+
}, [u]), /* @__PURE__ */ N("div", { className: m.wrapper, children: [
|
10065
10128
|
/* @__PURE__ */ N("div", { children: [
|
10066
|
-
/* @__PURE__ */ c("div", { className:
|
10067
|
-
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: [
|
10068
10131
|
v,
|
10069
10132
|
": ",
|
10070
10133
|
n[v]
|
10071
10134
|
] }) }, `${v}-${w}`) : null),
|
10072
10135
|
o && o
|
10073
10136
|
] }),
|
10074
|
-
g && /* @__PURE__ */ c("div", { className:
|
10137
|
+
g && /* @__PURE__ */ c("div", { className: m.copyButton, children: /* @__PURE__ */ c(
|
10075
10138
|
yn,
|
10076
10139
|
{
|
10077
10140
|
noBorder: !0,
|
@@ -10088,13 +10151,13 @@ const np = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10088
10151
|
] });
|
10089
10152
|
};
|
10090
10153
|
/*!
|
10091
|
-
@versini/ui-spinner v3.0.
|
10154
|
+
@versini/ui-spinner v3.0.12
|
10092
10155
|
© 2025 gizmette.com
|
10093
10156
|
*/
|
10094
10157
|
try {
|
10095
10158
|
window.__VERSINI_UI_SPINNER__ || (window.__VERSINI_UI_SPINNER__ = {
|
10096
|
-
version: "3.0.
|
10097
|
-
buildTime: "
|
10159
|
+
version: "3.0.12",
|
10160
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
10098
10161
|
homepage: "https://github.com/aversini/ui-components",
|
10099
10162
|
license: "MIT"
|
10100
10163
|
});
|
@@ -10390,20 +10453,20 @@ const Ao = "av-spinner", wi = ({
|
|
10390
10453
|
labelRight: d,
|
10391
10454
|
labelLeft: f,
|
10392
10455
|
noBackground: u,
|
10393
|
-
variant:
|
10394
|
-
noTruncate:
|
10456
|
+
variant: h,
|
10457
|
+
noTruncate: m,
|
10395
10458
|
align: g,
|
10396
10459
|
radius: y,
|
10397
10460
|
animated: v
|
10398
|
-
}) => (
|
10461
|
+
}) => (h || (h = "primary"), r ? p(Oo, t) : p(
|
10399
10462
|
Oo,
|
10400
10463
|
up({
|
10401
10464
|
mode: a,
|
10402
|
-
variant:
|
10465
|
+
variant: h,
|
10403
10466
|
noBackground: u,
|
10404
|
-
noTruncate:
|
10467
|
+
noTruncate: m
|
10405
10468
|
}),
|
10406
|
-
fp({ mode: a, noBackground: u, variant:
|
10469
|
+
fp({ mode: a, noBackground: u, variant: h }),
|
10407
10470
|
hp({ radius: y }),
|
10408
10471
|
cp({
|
10409
10472
|
type: e,
|
@@ -10414,10 +10477,10 @@ const Ao = "av-spinner", wi = ({
|
|
10414
10477
|
animated: v
|
10415
10478
|
}),
|
10416
10479
|
dp({ type: e, size: l, labelRight: d, labelLeft: f }),
|
10417
|
-
gp({ mode: a, variant:
|
10480
|
+
gp({ mode: a, variant: h, noBorder: i }),
|
10418
10481
|
yp({ focusMode: n }),
|
10419
|
-
mp({ mode: a, variant:
|
10420
|
-
pp({ mode: a, variant:
|
10482
|
+
mp({ mode: a, variant: h, disabled: o }),
|
10483
|
+
pp({ mode: a, variant: h, disabled: o }),
|
10421
10484
|
{
|
10422
10485
|
"w-full": s,
|
10423
10486
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
@@ -10457,8 +10520,8 @@ const xi = V.forwardRef(
|
|
10457
10520
|
variant: d = "primary",
|
10458
10521
|
noTruncate: f = !1,
|
10459
10522
|
radius: u = "large",
|
10460
|
-
...
|
10461
|
-
},
|
10523
|
+
...h
|
10524
|
+
}, m) => {
|
10462
10525
|
const g = ki({
|
10463
10526
|
type: vn,
|
10464
10527
|
mode: r,
|
@@ -10476,10 +10539,10 @@ const xi = V.forwardRef(
|
|
10476
10539
|
return /* @__PURE__ */ c(
|
10477
10540
|
_n,
|
10478
10541
|
{
|
10479
|
-
ref:
|
10542
|
+
ref: m,
|
10480
10543
|
className: g,
|
10481
10544
|
disabled: t,
|
10482
|
-
...
|
10545
|
+
...h,
|
10483
10546
|
children: e
|
10484
10547
|
}
|
10485
10548
|
);
|
@@ -10488,7 +10551,7 @@ const xi = V.forwardRef(
|
|
10488
10551
|
xi.displayName = "Button";
|
10489
10552
|
function wp() {
|
10490
10553
|
const e = O(!1);
|
10491
|
-
return
|
10554
|
+
return B(() => (e.current = !0, () => {
|
10492
10555
|
e.current = !1;
|
10493
10556
|
}), []), Y(() => e.current, []);
|
10494
10557
|
}
|
@@ -10517,7 +10580,7 @@ function sa(e) {
|
|
10517
10580
|
a.current && t() && o(i.contentRect);
|
10518
10581
|
}));
|
10519
10582
|
}), [t]);
|
10520
|
-
return
|
10583
|
+
return B(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
10521
10584
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
10522
10585
|
}), [s, e]), [a, n];
|
10523
10586
|
}
|
@@ -10549,8 +10612,8 @@ const Tp = {
|
|
10549
10612
|
"aria-label": d,
|
10550
10613
|
label: f,
|
10551
10614
|
size: u = "medium",
|
10552
|
-
labelRight:
|
10553
|
-
labelLeft:
|
10615
|
+
labelRight: h,
|
10616
|
+
labelLeft: m,
|
10554
10617
|
noBackground: g = !1,
|
10555
10618
|
align: y = "center",
|
10556
10619
|
radius: v = "large",
|
@@ -10569,24 +10632,24 @@ const Tp = {
|
|
10569
10632
|
className: o,
|
10570
10633
|
noBorder: i,
|
10571
10634
|
size: u,
|
10572
|
-
labelRight:
|
10573
|
-
labelLeft:
|
10635
|
+
labelRight: h,
|
10636
|
+
labelLeft: m,
|
10574
10637
|
noBackground: g,
|
10575
10638
|
align: y,
|
10576
10639
|
radius: v,
|
10577
10640
|
variant: w,
|
10578
10641
|
animated: T
|
10579
|
-
}), 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]);
|
10580
10643
|
return ge(() => {
|
10581
10644
|
$ && $.current && T && (U.current = M.width + Ep[u] + (i ? 0 : Ip));
|
10582
10645
|
}, [M, $, u, i, T]), ge(() => {
|
10583
|
-
|
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`));
|
10584
10647
|
}, [
|
10585
10648
|
R,
|
10586
|
-
|
10649
|
+
h,
|
10587
10650
|
E,
|
10588
10651
|
L,
|
10589
|
-
|
10652
|
+
m,
|
10590
10653
|
S,
|
10591
10654
|
u,
|
10592
10655
|
T
|
@@ -10603,7 +10666,7 @@ const Tp = {
|
|
10603
10666
|
/* @__PURE__ */ c(
|
10604
10667
|
$o,
|
10605
10668
|
{
|
10606
|
-
label:
|
10669
|
+
label: m,
|
10607
10670
|
labelRef: S,
|
10608
10671
|
labelClass: b,
|
10609
10672
|
labelInnerClass: "pr-2"
|
@@ -10613,7 +10676,7 @@ const Tp = {
|
|
10613
10676
|
/* @__PURE__ */ c(
|
10614
10677
|
$o,
|
10615
10678
|
{
|
10616
|
-
label:
|
10679
|
+
label: h,
|
10617
10680
|
labelRef: E,
|
10618
10681
|
labelClass: b,
|
10619
10682
|
labelInnerClass: "pl-2"
|
@@ -10631,13 +10694,13 @@ const Tp = {
|
|
10631
10694
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
10632
10695
|
Ti.displayName = "ButtonIcon";
|
10633
10696
|
/*!
|
10634
|
-
@versini/ui-button v4.2.
|
10697
|
+
@versini/ui-button v4.2.11
|
10635
10698
|
© 2025 gizmette.com
|
10636
10699
|
*/
|
10637
10700
|
try {
|
10638
10701
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
10639
|
-
version: "4.2.
|
10640
|
-
buildTime: "03/
|
10702
|
+
version: "4.2.11",
|
10703
|
+
buildTime: "03/10/2025 02:04 PM EDT",
|
10641
10704
|
homepage: "https://github.com/aversini/ui-components",
|
10642
10705
|
license: "MIT"
|
10643
10706
|
});
|
@@ -10726,13 +10789,13 @@ const Sp = 200, Np = ({
|
|
10726
10789
|
] });
|
10727
10790
|
};
|
10728
10791
|
/*!
|
10729
|
-
@versini/ui-truncate v3.0.
|
10792
|
+
@versini/ui-truncate v3.0.28
|
10730
10793
|
© 2025 gizmette.com
|
10731
10794
|
*/
|
10732
10795
|
try {
|
10733
10796
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
10734
|
-
version: "3.0.
|
10735
|
-
buildTime: "03/
|
10797
|
+
version: "3.0.28",
|
10798
|
+
buildTime: "03/10/2025 02:05 PM EDT",
|
10736
10799
|
homepage: "https://github.com/aversini/ui-components",
|
10737
10800
|
license: "MIT"
|
10738
10801
|
});
|
@@ -10751,7 +10814,7 @@ const Ap = ({ content: e }) => /* @__PURE__ */ c(
|
|
10751
10814
|
), Op = al(
|
10752
10815
|
() => import(
|
10753
10816
|
/* webpackChunkName: "LazyMessageAssistant" */
|
10754
|
-
"./ChatBubbleAssistant.
|
10817
|
+
"./ChatBubbleAssistant.BjhCY6rx.js"
|
10755
10818
|
).then((e) => e.ChatBubbleAssistant)
|
10756
10819
|
), $p = V.memo(
|
10757
10820
|
({
|
@@ -10818,9 +10881,9 @@ const Ap = ({ content: e }) => /* @__PURE__ */ c(
|
|
10818
10881
|
block: "end"
|
10819
10882
|
});
|
10820
10883
|
}, []);
|
10821
|
-
return
|
10884
|
+
return B(() => {
|
10822
10885
|
i && u();
|
10823
|
-
}, [i, u]),
|
10886
|
+
}, [i, u]), B(() => {
|
10824
10887
|
d.current = o === Vt ? s + l + Uo + Xi : 0;
|
10825
10888
|
}, [o, s, l]), /* @__PURE__ */ N(he, { children: [
|
10826
10889
|
/* @__PURE__ */ N("div", { className: f, ref: a, children: [
|
@@ -10843,24 +10906,24 @@ function Ei({
|
|
10843
10906
|
isComponent: e = !1,
|
10844
10907
|
headerHeight: t = 0
|
10845
10908
|
}) {
|
10846
|
-
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({
|
10847
10910
|
key: It + Fo,
|
10848
10911
|
initialValue: ""
|
10849
|
-
}), [
|
10912
|
+
}), [m] = Ct({
|
10850
10913
|
key: It + Vo,
|
10851
10914
|
initialValue: ze.ASC
|
10852
|
-
}), [g, y] =
|
10915
|
+
}), [g, y] = Dt(Wc, {
|
10853
10916
|
footerPosition: "FOOTER_TOP",
|
10854
10917
|
footerHeight: 0,
|
10855
10918
|
footerOffset: 0
|
10856
|
-
}), [v, w] =
|
10857
|
-
searchString:
|
10919
|
+
}), [v, w] = Dt(Yc, {
|
10920
|
+
searchString: h,
|
10858
10921
|
sortedCell: "timestamp",
|
10859
|
-
sortDirection:
|
10860
|
-
}), [_, T] =
|
10922
|
+
sortDirection: m
|
10923
|
+
}), [_, T] = Dt(Jc, {
|
10861
10924
|
prompt: "",
|
10862
10925
|
lastTriggeredTimestamp: 0
|
10863
|
-
}), [I, C] =
|
10926
|
+
}), [I, C] = Dt(qc, {
|
10864
10927
|
provider: "",
|
10865
10928
|
// OpenAI, Anthropic, etc.
|
10866
10929
|
privateChat: !1,
|
@@ -10874,20 +10937,20 @@ function Ei({
|
|
10874
10937
|
user: r == null ? void 0 : r.username,
|
10875
10938
|
getAccessToken: a
|
10876
10939
|
});
|
10877
|
-
return
|
10940
|
+
return B(() => {
|
10878
10941
|
var x;
|
10879
10942
|
(x = document.getElementById("logo")) == null || x.classList.add("fadeOut"), setTimeout(() => {
|
10880
10943
|
var b;
|
10881
10944
|
(b = document.getElementById("root")) == null || b.classList.replace("app-hidden", "fadeIn");
|
10882
10945
|
}, 500);
|
10883
|
-
}),
|
10946
|
+
}), B(() => {
|
10884
10947
|
k && k.provider && C({
|
10885
10948
|
type: rn,
|
10886
10949
|
payload: {
|
10887
10950
|
provider: k.provider
|
10888
10951
|
}
|
10889
10952
|
});
|
10890
|
-
}, [k]),
|
10953
|
+
}, [k]), B(() => {
|
10891
10954
|
if (g.footerPosition === "FOOTER_BOTTOM") {
|
10892
10955
|
const x = `calc(${l.height}px + 20px)`;
|
10893
10956
|
o(
|
@@ -10942,7 +11005,7 @@ function Ei({
|
|
10942
11005
|
noMargin: !0,
|
10943
11006
|
noPadding: !0,
|
10944
11007
|
noBorder: !0,
|
10945
|
-
className:
|
11008
|
+
className: Dn({
|
10946
11009
|
extraClass: "mt-5"
|
10947
11010
|
}),
|
10948
11011
|
children: /* @__PURE__ */ c(Mm, { isComponent: e })
|
@@ -10951,7 +11014,7 @@ function Ei({
|
|
10951
11014
|
/* @__PURE__ */ c(
|
10952
11015
|
el,
|
10953
11016
|
{
|
10954
|
-
className:
|
11017
|
+
className: Dn({
|
10955
11018
|
extraClass: "transition-all ease-in-out duration-500"
|
10956
11019
|
}),
|
10957
11020
|
noMargin: !0,
|