@versini/sassysaint 8.15.0 → 8.15.1
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/{AboutChangelog.DiL_Lfz8.js → AboutChangelog.CmDBx6P4.js} +2 -2
- package/dist/chunks/{App.BuxkL8jO.js → App.qXdvcHNB.js} +209 -234
- package/dist/chunks/{C2Q2AJ2U.G_RcA3sL.js → C2Q2AJ2U.Ba5UqVe7.js} +1 -1
- package/dist/chunks/{Chart.kZTvVvsD.js → Chart.CvtIc1e3.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CZn5WUNj.js → ChatBubbleAssistant.DFqip4ex.js} +3 -3
- package/dist/chunks/{index.D50o64eF.js → index.B2dWomTr.js} +1 -1
- package/dist/chunks/{index.BVTbakGo.js → index.BYjX-jmw.js} +2 -2
- package/dist/chunks/{index.w2x0E4UV.js → index.BcgrkZTm.js} +2 -2
- package/dist/chunks/{index.gMQbznBL.js → index.DlvS-MZo.js} +3 -3
- package/dist/chunks/{index.DpscOrKi.js → index.DokI56cc.js} +1 -1
- package/dist/chunks/{index.Au56MqKu.js → index.dltBp_7w.js} +1 -1
- package/dist/chunks/{useMarkdown.CqUCoyTu.js → useMarkdown.H0ny_Wbh.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -4,7 +4,7 @@ var $o = (e) => {
|
|
4
4
|
var qr = (e, t, r) => t.has(e) || $o("Cannot " + r);
|
5
5
|
var O = (e, t, r) => (qr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), ge = (e, t, r) => t.has(e) ? $o("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), le = (e, t, r, a) => (qr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), fe = (e, t, r) => (qr(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as N, Fragment as de } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as Gi, pendingThenable as Lo, resolveEnabled as He, shallowEqualObjects as ha, resolveStaleTime as xr, noop as ji, isServer as ma, isValidTimeout as Mo, focusManager as Wi, fetchState as qi, replaceData as Do, notifyManager as qn, timeUntilStale as Yi, useQueryClient as Ji, I as ne, ACTION_SORT as pa, ACTION_SEARCH as Yn, ACTION_RESET_PROMPT as Jn, ACTION_TOGGLE_PROMPT as Kn, re as Ne, DEFAULT_ICON_ACTION_SIZE as Ye, Qr as Oe, isElectron as ga, isProbablyiPhone as ya, L as ar, j as We, C as yt, LOCAL_STORAGE_PREFIX as bt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ki, LOCAL_STORAGE_REASONING_DISCLOSURE as Qi, TOAST_CHAT_SAVED as Xi, toastOptions as Ir, TOAST_PROVIDER_CHANGED as Qn, PROMPT_CLASSNAME as Zi, PROMPT_EDITABLE_AREA_CLASSNAME as el, ERROR_MESSAGE as tl, ROLE_INTERNAL as ba, CLIPBOARD_PROMPT as Bo, isProbablyMobile as st, qr as Xn, GRANTS as Zn, INPUT_PLACEHOLDER_TEXT as Po, FOOTER_DISCLAIMER as rl, S as Me, renderDataAsList as Sr, CARDS as ce, pluralize as Yt, ABOUT_TITLE as al, INFINITE_SCROLL_LIMIT as zo, INFINITE_SCROLL_THRESHOLD as Vo, LOCAL_STORAGE_SORT as es, APP_CLASSNAME as ts, TOAST_CHAT_DELETED as ol, LOCAL_STORAGE_SEARCH as rs, HISTORY_TITLE as nl, fe as sl, debounce as il, x as ll, l as Fo, PROFILE_TITLE as cl, LOCAL_STORAGE_CHAT_DETAILS as dl, SETTINGS_TITLE as ul, APP_NAME as fl, PROMPTS_DESCRIPTION as hl, getCurrentGeoLocation as ml, USAGE_TITLE as pl, LOG_OUT as Uo, getMessageContaintWrapperClass as gl, UI_FOOTER_BUFFER as as, UI_BUTTON_SCROLL_BUFFER as yl, Logo as bl, UI_DEFAULT_MAIN_HEIGHT as Ho, getMainPaddingClass as Go, r as vl } from "./index.
|
7
|
+
import { Subscribable as Gi, pendingThenable as Lo, resolveEnabled as He, shallowEqualObjects as ha, resolveStaleTime as xr, noop as ji, isServer as ma, isValidTimeout as Mo, focusManager as Wi, fetchState as qi, replaceData as Do, notifyManager as qn, timeUntilStale as Yi, useQueryClient as Ji, I as ne, ACTION_SORT as pa, ACTION_SEARCH as Yn, ACTION_RESET_PROMPT as Jn, ACTION_TOGGLE_PROMPT as Kn, re as Ne, DEFAULT_ICON_ACTION_SIZE as Ye, Qr as Oe, isElectron as ga, isProbablyiPhone as ya, L as ar, j as We, C as yt, LOCAL_STORAGE_PREFIX as bt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ki, LOCAL_STORAGE_REASONING_DISCLOSURE as Qi, TOAST_CHAT_SAVED as Xi, toastOptions as Ir, TOAST_PROVIDER_CHANGED as Qn, PROMPT_CLASSNAME as Zi, PROMPT_EDITABLE_AREA_CLASSNAME as el, ERROR_MESSAGE as tl, ROLE_INTERNAL as ba, CLIPBOARD_PROMPT as Bo, isProbablyMobile as st, qr as Xn, GRANTS as Zn, INPUT_PLACEHOLDER_TEXT as Po, FOOTER_DISCLAIMER as rl, S as Me, renderDataAsList as Sr, CARDS as ce, pluralize as Yt, ABOUT_TITLE as al, INFINITE_SCROLL_LIMIT as zo, INFINITE_SCROLL_THRESHOLD as Vo, LOCAL_STORAGE_SORT as es, APP_CLASSNAME as ts, TOAST_CHAT_DELETED as ol, LOCAL_STORAGE_SEARCH as rs, HISTORY_TITLE as nl, fe as sl, debounce as il, x as ll, l as Fo, PROFILE_TITLE as cl, LOCAL_STORAGE_CHAT_DETAILS as dl, SETTINGS_TITLE as ul, APP_NAME as fl, PROMPTS_DESCRIPTION as hl, getCurrentGeoLocation as ml, USAGE_TITLE as pl, LOG_OUT as Uo, getMessageContaintWrapperClass as gl, UI_FOOTER_BUFFER as as, UI_BUTTON_SCROLL_BUFFER as yl, Logo as bl, UI_DEFAULT_MAIN_HEIGHT as Ho, getMainPaddingClass as Go, r as vl } from "./index.BYjX-jmw.js";
|
8
8
|
import * as oe from "react";
|
9
9
|
import U, { useEffect as z, useRef as L, useState as V, useCallback as Y, useSyncExternalStore as os, useMemo as $e, useId as Lr, useContext as re, useLayoutEffect as we, isValidElement as Mr, cloneElement as eo, createContext as ns, useDebugValue as _l, forwardRef as ss, Suspense as to, lazy as ro, Fragment as wl, useReducer as jt } from "react";
|
10
10
|
import g from "clsx";
|
@@ -8047,30 +8047,7 @@ const pm = (e) => {
|
|
8047
8047
|
)
|
8048
8048
|
}
|
8049
8049
|
) }) : null;
|
8050
|
-
}, _m = [
|
8051
|
-
".doc",
|
8052
|
-
".docx",
|
8053
|
-
".xls",
|
8054
|
-
".xlsx",
|
8055
|
-
".ppt",
|
8056
|
-
".pptx",
|
8057
|
-
".pdf",
|
8058
|
-
".txt"
|
8059
|
-
], wm = [
|
8060
|
-
".ppt",
|
8061
|
-
".pptx",
|
8062
|
-
".key",
|
8063
|
-
".odp",
|
8064
|
-
".pps",
|
8065
|
-
".ppsx"
|
8066
|
-
], km = [
|
8067
|
-
".xls",
|
8068
|
-
".xlsx",
|
8069
|
-
".ods",
|
8070
|
-
".csv",
|
8071
|
-
".tsv",
|
8072
|
-
".numbers"
|
8073
|
-
], xm = [
|
8050
|
+
}, _m = [".pdf", ".txt"], wm = [
|
8074
8051
|
".js",
|
8075
8052
|
".cjs",
|
8076
8053
|
".mjs",
|
@@ -8086,31 +8063,29 @@ const pm = (e) => {
|
|
8086
8063
|
".md"
|
8087
8064
|
], ca = [
|
8088
8065
|
..._m,
|
8089
|
-
...wm
|
8090
|
-
|
8091
|
-
...xm
|
8092
|
-
], Ka = 400 * 1024, Tm = "text/plain", Em = () => g(
|
8066
|
+
...wm
|
8067
|
+
], Ka = 400 * 1024, km = "text/plain", xm = () => g(
|
8093
8068
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
8094
|
-
), Ln = () => g("bg-surface-darker"),
|
8069
|
+
), Ln = () => g("bg-surface-darker"), Tm = () => g("text-copy-lighter caret-copy-light"), Em = () => g(
|
8095
8070
|
"has-[.av-prompt-editable:focus]:outline",
|
8096
8071
|
"has-[.av-prompt-editable:focus]:outline-2",
|
8097
8072
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
8098
8073
|
"has-[.av-prompt-editable:focus]:outline-focus-light"
|
8099
|
-
),
|
8074
|
+
), Cm = () => g(
|
8100
8075
|
"peer",
|
8101
8076
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
8102
8077
|
"h-6 pr-2 pl-4"
|
8103
|
-
),
|
8078
|
+
), Im = ({ className: e }) => {
|
8104
8079
|
const t = g(
|
8105
8080
|
Zi,
|
8106
|
-
|
8081
|
+
xm(),
|
8107
8082
|
Ln(),
|
8108
|
-
|
8109
|
-
|
8083
|
+
Tm(),
|
8084
|
+
Em(),
|
8110
8085
|
e
|
8111
8086
|
), r = g(
|
8112
8087
|
el,
|
8113
|
-
|
8088
|
+
Cm(),
|
8114
8089
|
Ln()
|
8115
8090
|
);
|
8116
8091
|
return {
|
@@ -8122,15 +8097,15 @@ const pm = (e) => {
|
|
8122
8097
|
return "0 Bytes";
|
8123
8098
|
const t = 1024, r = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
|
8124
8099
|
return parseFloat((e / Math.pow(t, a)).toFixed(2)) + " " + r[a];
|
8125
|
-
}, Ri = (e) => e.reduce((t, r) => t + r.size, 0),
|
8100
|
+
}, Ri = (e) => e.reduce((t, r) => t + r.size, 0), Sm = (e) => e.type ? e : new File(
|
8126
8101
|
[e],
|
8127
8102
|
// Use the original file content
|
8128
8103
|
e.name,
|
8129
8104
|
{
|
8130
|
-
type:
|
8105
|
+
type: km,
|
8131
8106
|
lastModified: e.lastModified
|
8132
8107
|
}
|
8133
|
-
),
|
8108
|
+
), Nm = ({
|
8134
8109
|
files: e,
|
8135
8110
|
clearFile: t
|
8136
8111
|
}) => e && e.length > 0 && /* @__PURE__ */ N("div", { className: "px-4 py-2", children: [
|
@@ -8169,9 +8144,9 @@ const pm = (e) => {
|
|
8169
8144
|
" ",
|
8170
8145
|
Er(Ka)
|
8171
8146
|
] })
|
8172
|
-
] }), Ai = 24,
|
8173
|
-
e.current && (e.current.style.height = `${
|
8174
|
-
},
|
8147
|
+
] }), Ai = 24, Rm = 500, Oi = 2, Am = 5, Om = Ai * Oi, Mn = Am * Ai, $m = "ready", Lm = "streaming", Mm = "error", Dm = "submitted", _r = (e) => {
|
8148
|
+
e.current && (e.current.style.height = `${Om}px`);
|
8149
|
+
}, Bm = () => {
|
8175
8150
|
const { user: e, getAccessToken: t } = Oe(), [r, a] = V(!1), [o, n] = V(null), [s, l] = V(!1), {
|
8176
8151
|
dispatch: i,
|
8177
8152
|
state: { reasoning: d, streaming: f, aborted: u, lastResetTimestamp: h, attachments: m }
|
@@ -8181,7 +8156,7 @@ const pm = (e) => {
|
|
8181
8156
|
searchString: b.searchString,
|
8182
8157
|
sortDirection: b.sortDirection,
|
8183
8158
|
getAccessToken: t
|
8184
|
-
}), w = L(null), k = L(null), C = L(!1), I = L(0), _ = L(null), x = L(null), E = Kt(), T =
|
8159
|
+
}), w = L(null), k = L(null), C = L(!1), I = L(0), _ = L(null), x = L(null), E = Kt(), T = Im({
|
8185
8160
|
className: ""
|
8186
8161
|
}), {
|
8187
8162
|
input: S,
|
@@ -8202,25 +8177,25 @@ const pm = (e) => {
|
|
8202
8177
|
}
|
8203
8178
|
}), j = Y(
|
8204
8179
|
async (W) => {
|
8205
|
-
W ===
|
8180
|
+
W === $m && i({
|
8206
8181
|
type: ht,
|
8207
8182
|
payload: {
|
8208
8183
|
loading: !1,
|
8209
8184
|
streaming: !1
|
8210
8185
|
}
|
8211
|
-
}), W ===
|
8186
|
+
}), W === Dm && i({
|
8212
8187
|
type: ht,
|
8213
8188
|
payload: {
|
8214
8189
|
loading: !0,
|
8215
8190
|
streaming: !1
|
8216
8191
|
}
|
8217
|
-
}), W ===
|
8192
|
+
}), W === Lm && i({
|
8218
8193
|
type: ht,
|
8219
8194
|
payload: {
|
8220
8195
|
loading: !1,
|
8221
8196
|
streaming: !0
|
8222
8197
|
}
|
8223
|
-
}), W ===
|
8198
|
+
}), W === Mm && setTimeout(() => {
|
8224
8199
|
u || (i({
|
8225
8200
|
type: ht,
|
8226
8201
|
payload: {
|
@@ -8307,7 +8282,7 @@ const pm = (e) => {
|
|
8307
8282
|
let se;
|
8308
8283
|
if (o && o.length > 0) {
|
8309
8284
|
const be = Array.from(o).map(
|
8310
|
-
(ve) =>
|
8285
|
+
(ve) => Sm(ve)
|
8311
8286
|
), Ce = new DataTransfer();
|
8312
8287
|
be.forEach((ve) => Ce.items.add(ve)), se = Ce.files;
|
8313
8288
|
}
|
@@ -8348,7 +8323,7 @@ const pm = (e) => {
|
|
8348
8323
|
}
|
8349
8324
|
h > 0 && h !== I.current ? (I.current = h, setTimeout(() => {
|
8350
8325
|
x.current && (!S && _r(x), x.current.focus());
|
8351
|
-
},
|
8326
|
+
}, Rm)) : f === !1 && !S && (_r(x), x.current && x.current.focus());
|
8352
8327
|
}, [h, f, S]), z(() => {
|
8353
8328
|
p.lastTriggeredTimestamp && setTimeout(() => {
|
8354
8329
|
H();
|
@@ -8410,7 +8385,7 @@ const pm = (e) => {
|
|
8410
8385
|
}
|
8411
8386
|
)
|
8412
8387
|
] }),
|
8413
|
-
/* @__PURE__ */ c(
|
8388
|
+
/* @__PURE__ */ c(Nm, { files: o, clearFile: Le }),
|
8414
8389
|
/* @__PURE__ */ N("div", { className: "p-2 flex items-center", children: [
|
8415
8390
|
/* @__PURE__ */ c(bm, { className: "order-6 ml-auto" }),
|
8416
8391
|
/* @__PURE__ */ c(Mh, { className: "order-1 mr-4 sm:mr-2" }),
|
@@ -8430,7 +8405,7 @@ const pm = (e) => {
|
|
8430
8405
|
] })
|
8431
8406
|
] }) })
|
8432
8407
|
] });
|
8433
|
-
}, wr = "--sassy-bottom", Dn = 16, Bn = 76,
|
8408
|
+
}, wr = "--sassy-bottom", Dn = 16, Bn = 76, Pm = ({ isComponent: e }) => {
|
8434
8409
|
const {
|
8435
8410
|
state: { loading: t, streaming: r, restoring: a }
|
8436
8411
|
} = re(Re), {
|
@@ -8506,17 +8481,17 @@ const pm = (e) => {
|
|
8506
8481
|
Of
|
8507
8482
|
),
|
8508
8483
|
children: [
|
8509
|
-
/* @__PURE__ */ c(
|
8484
|
+
/* @__PURE__ */ c(Bm, {}),
|
8510
8485
|
/* @__PURE__ */ c("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: rl })
|
8511
8486
|
]
|
8512
8487
|
}
|
8513
8488
|
);
|
8514
|
-
},
|
8489
|
+
}, zm = ro(
|
8515
8490
|
() => import(
|
8516
8491
|
/* webpackChunkName: "LazyAboutChangelog" */
|
8517
|
-
"./AboutChangelog.
|
8492
|
+
"./AboutChangelog.CmDBx6P4.js"
|
8518
8493
|
)
|
8519
|
-
),
|
8494
|
+
), Vm = () => {
|
8520
8495
|
const e = Kt(), t = Kt(), { data: r, isSuccess: a } = Yd(), { data: o, isSuccess: n } = Jd(), s = (r == null ? void 0 : r.version) || "", l = (r == null ? void 0 : r.models) || [];
|
8521
8496
|
return /* @__PURE__ */ N(de, { children: [
|
8522
8497
|
/* @__PURE__ */ c(
|
@@ -8525,8 +8500,8 @@ const pm = (e) => {
|
|
8525
8500
|
header: ce.ABOUT.TITLE_CLIENT,
|
8526
8501
|
className: "prose-dark dark:prose-lighter mb-4",
|
8527
8502
|
children: Sr(e, {
|
8528
|
-
[ce.ABOUT.VERSION]: "8.15.
|
8529
|
-
[ce.ABOUT.BUILD_TIMESTAMP]: "04/
|
8503
|
+
[ce.ABOUT.VERSION]: "8.15.1",
|
8504
|
+
[ce.ABOUT.BUILD_TIMESTAMP]: "04/24/2025 10:33 AM EDT"
|
8530
8505
|
})
|
8531
8506
|
}
|
8532
8507
|
),
|
@@ -8548,18 +8523,18 @@ const pm = (e) => {
|
|
8548
8523
|
header: ce.ABOUT.TITLE_CHANGELOG,
|
8549
8524
|
headerClassName: "av-card__header mt-0 border-b-2 border-border-accent mb-4 leading-10",
|
8550
8525
|
className: "prose-lighter dark:prose-lighter min-h-[334px]",
|
8551
|
-
children: n ? /* @__PURE__ */ c(to, { fallback: /* @__PURE__ */ c("div", { children: "Loading..." }), children: /* @__PURE__ */ c(
|
8526
|
+
children: n ? /* @__PURE__ */ c(to, { fallback: /* @__PURE__ */ c("div", { children: "Loading..." }), children: /* @__PURE__ */ c(zm, { content: o.client }) }) : null
|
8552
8527
|
}
|
8553
8528
|
)
|
8554
8529
|
] });
|
8555
|
-
},
|
8530
|
+
}, Fm = ({
|
8556
8531
|
open: e,
|
8557
8532
|
onOpenChange: t
|
8558
|
-
}) => /* @__PURE__ */ c(Ht, { open: e, onOpenChange: t, title: al, children: /* @__PURE__ */ c(
|
8533
|
+
}) => /* @__PURE__ */ c(Ht, { open: e, onOpenChange: t, title: al, children: /* @__PURE__ */ c(Vm, {}) }), Um = {
|
8559
8534
|
[yo]: ys,
|
8560
8535
|
[Vr]: vs,
|
8561
8536
|
[bo]: bs
|
8562
|
-
},
|
8537
|
+
}, Hm = ({
|
8563
8538
|
filteredHistory: e,
|
8564
8539
|
dispatch: t,
|
8565
8540
|
onOpenChange: r,
|
@@ -8717,7 +8692,7 @@ const pm = (e) => {
|
|
8717
8692
|
] }) }),
|
8718
8693
|
/* @__PURE__ */ c(sd, { children: e.slice(0, f).map((T, S) => {
|
8719
8694
|
var M, P;
|
8720
|
-
const R = T.summary || (T.messages.length > 0 ? (M = T.messages[0]) == null ? void 0 : M.content : ""), $ = T.model ? Hf(T.model) : null, A = $ ?
|
8695
|
+
const R = T.summary || (T.messages.length > 0 ? (M = T.messages[0]) == null ? void 0 : M.content : ""), $ = T.model ? Hf(T.model) : null, A = $ ? Um[$] : null;
|
8721
8696
|
return ((P = T == null ? void 0 : T.messages) == null ? void 0 : P.length) > 0 ? /* @__PURE__ */ N(wl, { children: [
|
8722
8697
|
S === f - Vo && /* @__PURE__ */ c("tr", { ref: s }),
|
8723
8698
|
/* @__PURE__ */ N(Jr, { children: [
|
@@ -8800,7 +8775,7 @@ const pm = (e) => {
|
|
8800
8775
|
) }) }) }) })
|
8801
8776
|
] })
|
8802
8777
|
] });
|
8803
|
-
},
|
8778
|
+
}, Gm = ({
|
8804
8779
|
open: e,
|
8805
8780
|
onOpenChange: t
|
8806
8781
|
}) => {
|
@@ -8874,7 +8849,7 @@ const pm = (e) => {
|
|
8874
8849
|
}
|
8875
8850
|
) }),
|
8876
8851
|
/* @__PURE__ */ c("div", { className: "flex flex-col sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ c(
|
8877
|
-
|
8852
|
+
Hm,
|
8878
8853
|
{
|
8879
8854
|
mutate: m,
|
8880
8855
|
filteredHistory: n,
|
@@ -8885,7 +8860,7 @@ const pm = (e) => {
|
|
8885
8860
|
] })
|
8886
8861
|
}
|
8887
8862
|
);
|
8888
|
-
},
|
8863
|
+
}, jm = () => {
|
8889
8864
|
const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = Oe(), o = Kt(), n = (t == null ? void 0 : t.username) || "";
|
8890
8865
|
return e && n ? /* @__PURE__ */ N(de, { children: [
|
8891
8866
|
/* @__PURE__ */ c(
|
@@ -8923,7 +8898,7 @@ const pm = (e) => {
|
|
8923
8898
|
}
|
8924
8899
|
)
|
8925
8900
|
] }) : null;
|
8926
|
-
},
|
8901
|
+
}, Wm = ({
|
8927
8902
|
open: e,
|
8928
8903
|
onOpenChange: t
|
8929
8904
|
}) => /* @__PURE__ */ c(
|
@@ -8933,16 +8908,16 @@ const pm = (e) => {
|
|
8933
8908
|
open: e,
|
8934
8909
|
onOpenChange: t,
|
8935
8910
|
title: cl,
|
8936
|
-
children: /* @__PURE__ */ c(
|
8911
|
+
children: /* @__PURE__ */ c(jm, {})
|
8937
8912
|
}
|
8938
|
-
), $i = "av-text-area",
|
8939
|
-
function
|
8913
|
+
), $i = "av-text-area", qm = "av-text-area-wrapper", da = "av-text-area-helper-text", Ym = "av-text-area__control--right", Jm = "av-text-area__control--left";
|
8914
|
+
function Km() {
|
8940
8915
|
const e = L(!1);
|
8941
8916
|
return z(() => (e.current = !0, () => {
|
8942
8917
|
e.current = !1;
|
8943
8918
|
}), []), Y(() => e.current, []);
|
8944
8919
|
}
|
8945
|
-
function
|
8920
|
+
function Qm(e) {
|
8946
8921
|
return $e(() => e.every((t) => t == null) ? () => {
|
8947
8922
|
} : (t) => {
|
8948
8923
|
e.forEach((r) => {
|
@@ -8950,7 +8925,7 @@ function Zm(e) {
|
|
8950
8925
|
});
|
8951
8926
|
}, e);
|
8952
8927
|
}
|
8953
|
-
const
|
8928
|
+
const Xm = {
|
8954
8929
|
x: 0,
|
8955
8930
|
y: 0,
|
8956
8931
|
width: 0,
|
@@ -8961,7 +8936,7 @@ const ep = {
|
|
8961
8936
|
right: 0
|
8962
8937
|
};
|
8963
8938
|
function Pn(e) {
|
8964
|
-
const t =
|
8939
|
+
const t = Km(), r = L(0), a = L(null), [o, n] = V(Xm), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
8965
8940
|
const i = l[0];
|
8966
8941
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
8967
8942
|
a.current && t() && n(i.contentRect);
|
@@ -8971,7 +8946,7 @@ function Pn(e) {
|
|
8971
8946
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
8972
8947
|
}), [s, e]), [a, o];
|
8973
8948
|
}
|
8974
|
-
function
|
8949
|
+
function Zm({
|
8975
8950
|
value: e,
|
8976
8951
|
defaultValue: t,
|
8977
8952
|
finalValue: r,
|
@@ -8990,7 +8965,7 @@ function tp({
|
|
8990
8965
|
), s(!0)))();
|
8991
8966
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [l, d, !1];
|
8992
8967
|
}
|
8993
|
-
function
|
8968
|
+
function ep(e) {
|
8994
8969
|
const t = Lr();
|
8995
8970
|
if (!e)
|
8996
8971
|
return t;
|
@@ -9001,7 +8976,7 @@ function rp(e) {
|
|
9001
8976
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
9002
8977
|
}
|
9003
8978
|
}
|
9004
|
-
const Li = "SET_ANNOUNCEMENT", Mi = "CLEAR_ANNOUNCEMENT",
|
8979
|
+
const Li = "SET_ANNOUNCEMENT", Mi = "CLEAR_ANNOUNCEMENT", tp = {
|
9005
8980
|
alert: null,
|
9006
8981
|
alertdialog: null,
|
9007
8982
|
log: "polite",
|
@@ -9009,7 +8984,7 @@ const Li = "SET_ANNOUNCEMENT", Mi = "CLEAR_ANNOUNCEMENT", ap = {
|
|
9009
8984
|
progressbar: null,
|
9010
8985
|
status: "polite",
|
9011
8986
|
timer: "assertive"
|
9012
|
-
},
|
8987
|
+
}, rp = (e, t) => {
|
9013
8988
|
switch (t == null ? void 0 : t.type) {
|
9014
8989
|
case Li:
|
9015
8990
|
return {
|
@@ -9024,7 +8999,7 @@ const Li = "SET_ANNOUNCEMENT", Mi = "CLEAR_ANNOUNCEMENT", ap = {
|
|
9024
8999
|
default:
|
9025
9000
|
return e;
|
9026
9001
|
}
|
9027
|
-
},
|
9002
|
+
}, ap = ({
|
9028
9003
|
onAnnouncementClear: e,
|
9029
9004
|
dispatch: t
|
9030
9005
|
}) => {
|
@@ -9042,13 +9017,13 @@ const Li = "SET_ANNOUNCEMENT", Mi = "CLEAR_ANNOUNCEMENT", ap = {
|
|
9042
9017
|
type: Li,
|
9043
9018
|
payload: e
|
9044
9019
|
}), t && (r.current = setTimeout(
|
9045
|
-
() =>
|
9020
|
+
() => ap({
|
9046
9021
|
onAnnouncementClear: a,
|
9047
9022
|
dispatch: o
|
9048
9023
|
}),
|
9049
9024
|
t
|
9050
9025
|
));
|
9051
|
-
},
|
9026
|
+
}, op = ({
|
9052
9027
|
children: e,
|
9053
9028
|
announcementTimeoutRef: t,
|
9054
9029
|
announcementDelay: r,
|
@@ -9071,7 +9046,7 @@ const Li = "SET_ANNOUNCEMENT", Mi = "CLEAR_ANNOUNCEMENT", ap = {
|
|
9071
9046
|
dispatch: s
|
9072
9047
|
});
|
9073
9048
|
};
|
9074
|
-
function
|
9049
|
+
function np({
|
9075
9050
|
children: e,
|
9076
9051
|
className: t,
|
9077
9052
|
politeness: r,
|
@@ -9082,12 +9057,12 @@ function ip({
|
|
9082
9057
|
visible: l,
|
9083
9058
|
...i
|
9084
9059
|
}) {
|
9085
|
-
const d = L(null), f = L(null), [u, h] = jt(
|
9060
|
+
const d = L(null), f = L(null), [u, h] = jt(rp, {
|
9086
9061
|
announcement: null
|
9087
9062
|
});
|
9088
9063
|
let m = r;
|
9089
|
-
typeof m > "u" && (m = a ?
|
9090
|
-
|
9064
|
+
typeof m > "u" && (m = a ? tp[a] : "assertive"), z(() => {
|
9065
|
+
op({
|
9091
9066
|
announcementTimeoutRef: d,
|
9092
9067
|
announcementDelay: o,
|
9093
9068
|
children: e,
|
@@ -9129,19 +9104,19 @@ try {
|
|
9129
9104
|
});
|
9130
9105
|
} catch {
|
9131
9106
|
}
|
9132
|
-
const
|
9107
|
+
const sp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ip = ({ mode: e }) => g({
|
9133
9108
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
9134
9109
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
9135
9110
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
9136
9111
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
9137
|
-
}),
|
9112
|
+
}), lp = ({
|
9138
9113
|
focusMode: e
|
9139
9114
|
}) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
|
9140
9115
|
"focus:outline-focus-dark": e === "dark",
|
9141
9116
|
"focus:outline-focus-light": e === "light",
|
9142
9117
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
9143
9118
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
9144
|
-
}),
|
9119
|
+
}), cp = ({
|
9145
9120
|
noBorder: e,
|
9146
9121
|
error: t
|
9147
9122
|
}) => g("border-2", {
|
@@ -9149,7 +9124,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9149
9124
|
"focus:border-border-dark": !e && t,
|
9150
9125
|
"border-border-error-dark": !e && t,
|
9151
9126
|
"border-transparent": e
|
9152
|
-
}),
|
9127
|
+
}), dp = ({
|
9153
9128
|
disabled: e,
|
9154
9129
|
raw: t,
|
9155
9130
|
error: r,
|
@@ -9188,7 +9163,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9188
9163
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
9189
9164
|
}
|
9190
9165
|
);
|
9191
|
-
},
|
9166
|
+
}, up = ({
|
9192
9167
|
error: e,
|
9193
9168
|
raw: t,
|
9194
9169
|
mode: r,
|
@@ -9215,7 +9190,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9215
9190
|
"text-copy-error-dark dark:text-copy-error-light": r === "system",
|
9216
9191
|
"dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
|
9217
9192
|
});
|
9218
|
-
},
|
9193
|
+
}, fp = ({
|
9219
9194
|
className: e,
|
9220
9195
|
textAreaClassName: t,
|
9221
9196
|
raw: r,
|
@@ -9229,34 +9204,34 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9229
9204
|
}) => {
|
9230
9205
|
const f = r ? e : g(
|
9231
9206
|
"relative flex w-full flex-col justify-center",
|
9232
|
-
|
9207
|
+
qm,
|
9233
9208
|
e
|
9234
9209
|
), u = r ? g(t) : g(
|
9235
9210
|
$i,
|
9236
9211
|
t,
|
9237
|
-
|
9238
|
-
|
9239
|
-
|
9240
|
-
|
9212
|
+
sp(),
|
9213
|
+
ip({ mode: l }),
|
9214
|
+
lp({ focusMode: a }),
|
9215
|
+
cp({
|
9241
9216
|
noBorder: n,
|
9242
9217
|
error: s
|
9243
9218
|
}),
|
9244
9219
|
{
|
9245
9220
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
9246
9221
|
}
|
9247
|
-
), h = r ? void 0 : "sr-only", m =
|
9222
|
+
), h = r ? void 0 : "sr-only", m = dp({
|
9248
9223
|
disabled: o,
|
9249
9224
|
raw: r,
|
9250
9225
|
error: s,
|
9251
9226
|
mode: l,
|
9252
9227
|
rightElement: d,
|
9253
9228
|
leftElement: i
|
9254
|
-
}), p =
|
9229
|
+
}), p = up({
|
9255
9230
|
error: s,
|
9256
9231
|
raw: r,
|
9257
9232
|
mode: l,
|
9258
9233
|
disabled: o
|
9259
|
-
}), y = r ? void 0 : g(
|
9234
|
+
}), y = r ? void 0 : g(Ym, "absolute"), b = r ? void 0 : g(Jm, "absolute");
|
9260
9235
|
return {
|
9261
9236
|
wrapper: f,
|
9262
9237
|
textArea: u,
|
@@ -9266,7 +9241,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9266
9241
|
rightElement: y,
|
9267
9242
|
leftElement: b
|
9268
9243
|
};
|
9269
|
-
},
|
9244
|
+
}, hp = ({
|
9270
9245
|
scrollHeight: e,
|
9271
9246
|
currentHeight: t,
|
9272
9247
|
currentLabelOffset: r = 0,
|
@@ -9308,9 +9283,9 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9308
9283
|
...I
|
9309
9284
|
}, _) => {
|
9310
9285
|
var x;
|
9311
|
-
const E = L(null), T =
|
9286
|
+
const E = L(null), T = Qm([_, E]), [S, R] = Pn(), [$, A] = Pn(), M = L(80), P = L(-25), D = L(null), j = L(30), H = L(null), J = ep({ id: e, prefix: `${$i}-` }), [he, Le] = V(0), [Ee, Be] = V(0), [Ke, W] = V(
|
9312
9287
|
!!(!y && p)
|
9313
|
-
), ae = `${t} error, ${p}`, se =
|
9288
|
+
), ae = `${t} error, ${p}`, se = fp({
|
9314
9289
|
className: n,
|
9315
9290
|
textAreaClassName: s,
|
9316
9291
|
error: a,
|
@@ -9321,7 +9296,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9321
9296
|
mode: l,
|
9322
9297
|
rightElement: !!b,
|
9323
9298
|
leftElement: !!v
|
9324
|
-
}), [be, Ce] =
|
9299
|
+
}), [be, Ce] = Zm({
|
9325
9300
|
value: d,
|
9326
9301
|
initialControlledDelay: 20,
|
9327
9302
|
defaultValue: f,
|
@@ -9356,7 +9331,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9356
9331
|
}, [be, o]), we(() => {
|
9357
9332
|
var B, F;
|
9358
9333
|
if (!o && E && E.current && be !== void 0) {
|
9359
|
-
const { labelOffset: K, helperTextOffset: X, scrollHeight: ue } =
|
9334
|
+
const { labelOffset: K, helperTextOffset: X, scrollHeight: ue } = hp({
|
9360
9335
|
scrollHeight: E.current.scrollHeight,
|
9361
9336
|
currentHeight: M.current,
|
9362
9337
|
currentLabelOffset: P.current,
|
@@ -9445,7 +9420,7 @@ const lp = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9445
9420
|
children: b
|
9446
9421
|
}
|
9447
9422
|
),
|
9448
|
-
a && p && /* @__PURE__ */ c(
|
9423
|
+
a && p && /* @__PURE__ */ c(np, { politeness: "polite", clearAnnouncementDelay: 500, children: ae })
|
9449
9424
|
] });
|
9450
9425
|
}
|
9451
9426
|
);
|
@@ -9463,7 +9438,7 @@ try {
|
|
9463
9438
|
});
|
9464
9439
|
} catch {
|
9465
9440
|
}
|
9466
|
-
const
|
9441
|
+
const mp = "av-toggle", pp = () => g("peer", "h-6", "w-11", "rounded-full"), gp = ({
|
9467
9442
|
focusMode: e
|
9468
9443
|
}) => g(
|
9469
9444
|
"peer-focus:outline",
|
@@ -9475,14 +9450,14 @@ const gp = "av-toggle", yp = () => g("peer", "h-6", "w-11", "rounded-full"), bp
|
|
9475
9450
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
9476
9451
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
9477
9452
|
}
|
9478
|
-
),
|
9453
|
+
), yp = () => g(
|
9479
9454
|
"peer-checked:after:translate-x-full",
|
9480
9455
|
// background color when checked
|
9481
9456
|
"peer-checked:bg-violet-500",
|
9482
9457
|
// knob circle and border color when checked
|
9483
9458
|
"peer-checked:after:bg-white",
|
9484
9459
|
"peer-checked:after:border-white"
|
9485
|
-
),
|
9460
|
+
), bp = () => g(
|
9486
9461
|
"after:left-[2px]",
|
9487
9462
|
"after:top-[2px]",
|
9488
9463
|
"after:border",
|
@@ -9494,7 +9469,7 @@ const gp = "av-toggle", yp = () => g("peer", "h-6", "w-11", "rounded-full"), bp
|
|
9494
9469
|
"after:rounded-full",
|
9495
9470
|
"after:transition-all",
|
9496
9471
|
"after:content-['']"
|
9497
|
-
),
|
9472
|
+
), vp = ({
|
9498
9473
|
mode: e,
|
9499
9474
|
noBorder: t
|
9500
9475
|
}) => g({
|
@@ -9503,7 +9478,7 @@ const gp = "av-toggle", yp = () => g("peer", "h-6", "w-11", "rounded-full"), bp
|
|
9503
9478
|
"border-border-light bg-surface-darker": e === "dark",
|
9504
9479
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
9505
9480
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
9506
|
-
}),
|
9481
|
+
}), _p = ({
|
9507
9482
|
mode: e,
|
9508
9483
|
labelHidden: t
|
9509
9484
|
}) => t ? "sr-only" : g("ml-2 text-sm", {
|
@@ -9511,11 +9486,11 @@ const gp = "av-toggle", yp = () => g("peer", "h-6", "w-11", "rounded-full"), bp
|
|
9511
9486
|
"text-copy-lighter": e === "dark",
|
9512
9487
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
9513
9488
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
9514
|
-
}),
|
9515
|
-
|
9489
|
+
}), wp = ({ className: e }) => g(
|
9490
|
+
mp,
|
9516
9491
|
"relative flex cursor-pointer items-center",
|
9517
9492
|
e
|
9518
|
-
),
|
9493
|
+
), kp = ({
|
9519
9494
|
mode: e,
|
9520
9495
|
focusMode: t,
|
9521
9496
|
labelHidden: r,
|
@@ -9523,15 +9498,15 @@ const gp = "av-toggle", yp = () => g("peer", "h-6", "w-11", "rounded-full"), bp
|
|
9523
9498
|
noBorder: o
|
9524
9499
|
}) => ({
|
9525
9500
|
toggle: g(
|
9526
|
-
|
9527
|
-
|
9528
|
-
|
9529
|
-
|
9530
|
-
|
9501
|
+
pp(),
|
9502
|
+
vp({ mode: e, noBorder: o }),
|
9503
|
+
gp({ focusMode: t }),
|
9504
|
+
bp(),
|
9505
|
+
yp()
|
9531
9506
|
),
|
9532
|
-
label:
|
9507
|
+
label: _p({ mode: e, labelHidden: r }),
|
9533
9508
|
input: "peer sr-only",
|
9534
|
-
wrapper:
|
9509
|
+
wrapper: wp({ className: a })
|
9535
9510
|
}), kr = ({
|
9536
9511
|
checked: e = !1,
|
9537
9512
|
onChange: t,
|
@@ -9543,7 +9518,7 @@ const gp = "av-toggle", yp = () => g("peer", "h-6", "w-11", "rounded-full"), bp
|
|
9543
9518
|
className: l,
|
9544
9519
|
noBorder: i = !1
|
9545
9520
|
}) => {
|
9546
|
-
const d =
|
9521
|
+
const d = kp({
|
9547
9522
|
mode: n,
|
9548
9523
|
focusMode: s,
|
9549
9524
|
labelHidden: a,
|
@@ -9580,7 +9555,7 @@ try {
|
|
9580
9555
|
});
|
9581
9556
|
} catch {
|
9582
9557
|
}
|
9583
|
-
const
|
9558
|
+
const xp = ({
|
9584
9559
|
open: e,
|
9585
9560
|
onOpenChange: t
|
9586
9561
|
}) => {
|
@@ -9872,10 +9847,10 @@ const Ep = ({
|
|
9872
9847
|
] })
|
9873
9848
|
}
|
9874
9849
|
) : null;
|
9875
|
-
}, ft = [0, 3, 6, 9],
|
9850
|
+
}, ft = [0, 3, 6, 9], Tp = ro(() => import(
|
9876
9851
|
/* webpackChunkName: "LazyChart" */
|
9877
|
-
"./Chart.
|
9878
|
-
)),
|
9852
|
+
"./Chart.CvtIc1e3.js"
|
9853
|
+
)), Ep = ({
|
9879
9854
|
open: e,
|
9880
9855
|
onOpenChange: t
|
9881
9856
|
}) => {
|
@@ -9931,7 +9906,7 @@ const Ep = ({
|
|
9931
9906
|
className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
|
9932
9907
|
children: i && l && l.usage && l.usage.series && l.usage.series.length ? /* @__PURE__ */ N(to, { fallback: /* @__PURE__ */ c("div", {}), children: [
|
9933
9908
|
/* @__PURE__ */ c("div", { className: "pt-4" }),
|
9934
|
-
/* @__PURE__ */ c(
|
9909
|
+
/* @__PURE__ */ c(Tp, { usage: l.usage.series, page: f }),
|
9935
9910
|
/* @__PURE__ */ c(ar, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ N(We, { children: [
|
9936
9911
|
/* @__PURE__ */ c(
|
9937
9912
|
yt,
|
@@ -9960,7 +9935,7 @@ const Ep = ({
|
|
9960
9935
|
] })
|
9961
9936
|
}
|
9962
9937
|
);
|
9963
|
-
},
|
9938
|
+
}, Cp = ({
|
9964
9939
|
isComponent: e = !1
|
9965
9940
|
}) => {
|
9966
9941
|
const { logout: t, getAccessToken: r } = Oe(), [a, o] = V(!1), [n, s] = V(!1), [l, i] = V(!1), [d, f] = V(!1), [u, h] = V(!1), [m, p] = V(!1), [y, b] = V(!1), v = () => {
|
@@ -9998,11 +9973,11 @@ const Ep = ({
|
|
9998
9973
|
children: /* @__PURE__ */ c("p", { children: "Are you sure you want to log out?" })
|
9999
9974
|
}
|
10000
9975
|
),
|
10001
|
-
a && /* @__PURE__ */ c(
|
10002
|
-
n && /* @__PURE__ */ c(
|
10003
|
-
l && /* @__PURE__ */ c(
|
10004
|
-
d && /* @__PURE__ */ c(
|
10005
|
-
u && /* @__PURE__ */ c(
|
9976
|
+
a && /* @__PURE__ */ c(Wm, { open: a, onOpenChange: o }),
|
9977
|
+
n && /* @__PURE__ */ c(xp, { open: n, onOpenChange: s }),
|
9978
|
+
l && /* @__PURE__ */ c(Gm, { open: l, onOpenChange: i }),
|
9979
|
+
d && /* @__PURE__ */ c(Fm, { open: d, onOpenChange: f }),
|
9980
|
+
u && /* @__PURE__ */ c(Ep, { open: u, onOpenChange: h }),
|
10006
9981
|
/* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ N(
|
10007
9982
|
ar,
|
10008
9983
|
{
|
@@ -10091,7 +10066,7 @@ const Ep = ({
|
|
10091
10066
|
}
|
10092
10067
|
) })
|
10093
10068
|
] });
|
10094
|
-
}, Cr = "av-bubble", Vn = "av-button", So = "icon", Di = "button", Xa = "link",
|
10069
|
+
}, Cr = "av-bubble", Vn = "av-button", So = "icon", Di = "button", Xa = "link", Ip = ({
|
10095
10070
|
type: e,
|
10096
10071
|
size: t,
|
10097
10072
|
labelRight: r,
|
@@ -10127,7 +10102,7 @@ const Ep = ({
|
|
10127
10102
|
"h-12": t === "large" && n && (r || a)
|
10128
10103
|
});
|
10129
10104
|
}
|
10130
|
-
},
|
10105
|
+
}, Sp = ({
|
10131
10106
|
type: e,
|
10132
10107
|
size: t,
|
10133
10108
|
labelRight: r,
|
@@ -10150,7 +10125,7 @@ const Ep = ({
|
|
10150
10125
|
[s]: t === "large" && (r || a)
|
10151
10126
|
});
|
10152
10127
|
}
|
10153
|
-
},
|
10128
|
+
}, Np = ({
|
10154
10129
|
mode: e,
|
10155
10130
|
noBackground: t,
|
10156
10131
|
truncate: r,
|
@@ -10186,7 +10161,7 @@ const Ep = ({
|
|
10186
10161
|
return g("not-prose text-copy-lighter", {
|
10187
10162
|
truncate: r
|
10188
10163
|
});
|
10189
|
-
},
|
10164
|
+
}, Rp = ({
|
10190
10165
|
mode: e,
|
10191
10166
|
noBackground: t,
|
10192
10167
|
variant: r
|
@@ -10216,13 +10191,13 @@ const Ep = ({
|
|
10216
10191
|
if (r === "selected")
|
10217
10192
|
return "bg-action-selected-dark";
|
10218
10193
|
}
|
10219
|
-
},
|
10194
|
+
}, Ap = ({
|
10220
10195
|
radius: e
|
10221
10196
|
}) => g({
|
10222
10197
|
"rounded-full": e === "large",
|
10223
10198
|
"rounded-md": e === "medium",
|
10224
10199
|
"rounded-xs": e === "small"
|
10225
|
-
}),
|
10200
|
+
}), Op = ({
|
10226
10201
|
mode: e,
|
10227
10202
|
disabled: t,
|
10228
10203
|
variant: r
|
@@ -10252,7 +10227,7 @@ const Ep = ({
|
|
10252
10227
|
});
|
10253
10228
|
if (r === "selected")
|
10254
10229
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
10255
|
-
},
|
10230
|
+
}, $p = ({
|
10256
10231
|
mode: e,
|
10257
10232
|
disabled: t,
|
10258
10233
|
variant: r
|
@@ -10282,7 +10257,7 @@ const Ep = ({
|
|
10282
10257
|
});
|
10283
10258
|
if (r === "selected")
|
10284
10259
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
10285
|
-
},
|
10260
|
+
}, Lp = ({
|
10286
10261
|
mode: e,
|
10287
10262
|
noBorder: t,
|
10288
10263
|
variant: r
|
@@ -10312,14 +10287,14 @@ const Ep = ({
|
|
10312
10287
|
});
|
10313
10288
|
if (r === "selected")
|
10314
10289
|
return "border border-border-selected-dark";
|
10315
|
-
},
|
10290
|
+
}, Mp = ({
|
10316
10291
|
focusMode: e
|
10317
10292
|
}) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
10318
10293
|
"focus:outline-focus-dark": e === "dark",
|
10319
10294
|
"focus:outline-focus-light": e === "light",
|
10320
10295
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
10321
10296
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
10322
|
-
}),
|
10297
|
+
}), Dp = ({
|
10323
10298
|
mode: e,
|
10324
10299
|
raw: t,
|
10325
10300
|
iconClassName: r
|
@@ -10331,11 +10306,11 @@ const Ep = ({
|
|
10331
10306
|
"dark:text-copy-accent-dark": e === "system"
|
10332
10307
|
},
|
10333
10308
|
r
|
10334
|
-
),
|
10309
|
+
), Bp = ({
|
10335
10310
|
animated: e
|
10336
10311
|
}) => g({
|
10337
10312
|
"transition-opacity duration-300 ease-in": e
|
10338
|
-
}),
|
10313
|
+
}), Pp = ({
|
10339
10314
|
type: e,
|
10340
10315
|
className: t,
|
10341
10316
|
raw: r,
|
@@ -10355,15 +10330,15 @@ const Ep = ({
|
|
10355
10330
|
animated: b
|
10356
10331
|
}) => (h || (h = "primary"), r ? g(Vn, t) : g(
|
10357
10332
|
Vn,
|
10358
|
-
|
10333
|
+
Np({
|
10359
10334
|
mode: a,
|
10360
10335
|
variant: h,
|
10361
10336
|
noBackground: u,
|
10362
10337
|
truncate: m
|
10363
10338
|
}),
|
10364
|
-
|
10365
|
-
|
10366
|
-
|
10339
|
+
Rp({ mode: a, noBackground: u, variant: h }),
|
10340
|
+
Ap({ radius: y }),
|
10341
|
+
Ip({
|
10367
10342
|
type: e,
|
10368
10343
|
size: l,
|
10369
10344
|
labelRight: d,
|
@@ -10371,11 +10346,11 @@ const Ep = ({
|
|
10371
10346
|
align: p,
|
10372
10347
|
animated: b
|
10373
10348
|
}),
|
10374
|
-
|
10375
|
-
|
10376
|
-
|
10377
|
-
|
10378
|
-
|
10349
|
+
Sp({ type: e, size: l, labelRight: d, labelLeft: f }),
|
10350
|
+
Lp({ mode: a, variant: h, noBorder: i }),
|
10351
|
+
Mp({ focusMode: o }),
|
10352
|
+
Op({ mode: a, variant: h, disabled: n }),
|
10353
|
+
$p({ mode: a, variant: h, disabled: n }),
|
10379
10354
|
{
|
10380
10355
|
"w-full": s,
|
10381
10356
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -10384,7 +10359,7 @@ const Ep = ({
|
|
10384
10359
|
"transition-[width] duration-300 ease-in-out": b
|
10385
10360
|
}),
|
10386
10361
|
t
|
10387
|
-
)),
|
10362
|
+
)), zp = (e, t, r) => {
|
10388
10363
|
var a;
|
10389
10364
|
!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);
|
10390
10365
|
}, Bi = U.forwardRef((e, t) => {
|
@@ -10394,20 +10369,20 @@ const Ep = ({
|
|
10394
10369
|
{
|
10395
10370
|
ref: t,
|
10396
10371
|
onClick: (n) => {
|
10397
|
-
|
10372
|
+
zp(n, a, r);
|
10398
10373
|
},
|
10399
10374
|
...o
|
10400
10375
|
}
|
10401
10376
|
);
|
10402
10377
|
});
|
10403
10378
|
Bi.displayName = "BaseButton";
|
10404
|
-
function
|
10379
|
+
function Vp() {
|
10405
10380
|
const e = L(!1);
|
10406
10381
|
return z(() => (e.current = !0, () => {
|
10407
10382
|
e.current = !1;
|
10408
10383
|
}), []), Y(() => e.current, []);
|
10409
10384
|
}
|
10410
|
-
function
|
10385
|
+
function Fp(e) {
|
10411
10386
|
return $e(() => e.every((t) => t == null) ? () => {
|
10412
10387
|
} : (t) => {
|
10413
10388
|
e.forEach((r) => {
|
@@ -10415,7 +10390,7 @@ function Hp(e) {
|
|
10415
10390
|
});
|
10416
10391
|
}, e);
|
10417
10392
|
}
|
10418
|
-
const
|
10393
|
+
const Up = {
|
10419
10394
|
x: 0,
|
10420
10395
|
y: 0,
|
10421
10396
|
width: 0,
|
@@ -10426,7 +10401,7 @@ const Gp = {
|
|
10426
10401
|
right: 0
|
10427
10402
|
};
|
10428
10403
|
function ua(e) {
|
10429
|
-
const t =
|
10404
|
+
const t = Vp(), r = L(0), a = L(null), [o, n] = V(Up), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
10430
10405
|
const i = l[0];
|
10431
10406
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
10432
10407
|
a.current && t() && n(i.contentRect);
|
@@ -10436,21 +10411,21 @@ function ua(e) {
|
|
10436
10411
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
10437
10412
|
}), [s, e]), [a, o];
|
10438
10413
|
}
|
10439
|
-
const
|
10414
|
+
const Hp = {
|
10440
10415
|
small: 24,
|
10441
10416
|
// w-6
|
10442
10417
|
medium: 32,
|
10443
10418
|
// w-8
|
10444
10419
|
large: 48
|
10445
10420
|
// w-12
|
10446
|
-
},
|
10421
|
+
}, Gp = {
|
10447
10422
|
small: 8 * 2,
|
10448
10423
|
// px-2 x 2
|
10449
10424
|
medium: 12 * 2,
|
10450
10425
|
// px-3 x 2
|
10451
10426
|
large: 16 * 2
|
10452
10427
|
// px-4 x 2
|
10453
|
-
},
|
10428
|
+
}, jp = 2, No = U.forwardRef(
|
10454
10429
|
({
|
10455
10430
|
children: e,
|
10456
10431
|
disabled: t = !1,
|
@@ -10474,7 +10449,7 @@ const jp = {
|
|
10474
10449
|
animated: k = !1,
|
10475
10450
|
...C
|
10476
10451
|
}, I) => {
|
10477
|
-
const _ =
|
10452
|
+
const _ = Pp({
|
10478
10453
|
type: So,
|
10479
10454
|
mode: r,
|
10480
10455
|
focusMode: a,
|
@@ -10491,11 +10466,11 @@ const jp = {
|
|
10491
10466
|
radius: b,
|
10492
10467
|
variant: v,
|
10493
10468
|
animated: k
|
10494
|
-
}), x =
|
10469
|
+
}), x = Dp({ mode: r, raw: l, iconClassName: w }), E = Bp({ animated: k }), [T, S] = ua(), [R, $] = ua(), [A, M] = ua(), P = L(0), D = L(null), j = Fp([I, D]);
|
10495
10470
|
return we(() => {
|
10496
|
-
A && A.current && k && (P.current = M.width +
|
10471
|
+
A && A.current && k && (P.current = M.width + Gp[u] + (i ? 0 : jp));
|
10497
10472
|
}, [M, A, u, i, k]), we(() => {
|
10498
|
-
D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${
|
10473
|
+
D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${Hp[u]}px`));
|
10499
10474
|
}, [
|
10500
10475
|
S,
|
10501
10476
|
h,
|
@@ -10558,7 +10533,7 @@ try {
|
|
10558
10533
|
});
|
10559
10534
|
} catch {
|
10560
10535
|
}
|
10561
|
-
const
|
10536
|
+
const Wp = U.forwardRef(
|
10562
10537
|
({
|
10563
10538
|
children: e,
|
10564
10539
|
mode: t = "system",
|
@@ -10596,7 +10571,7 @@ const Yp = U.forwardRef(
|
|
10596
10571
|
) });
|
10597
10572
|
}
|
10598
10573
|
);
|
10599
|
-
|
10574
|
+
Wp.displayName = "ButtonSort";
|
10600
10575
|
const Pi = ({
|
10601
10576
|
children: e,
|
10602
10577
|
fill: t,
|
@@ -10640,7 +10615,7 @@ try {
|
|
10640
10615
|
});
|
10641
10616
|
} catch {
|
10642
10617
|
}
|
10643
|
-
const
|
10618
|
+
const qp = ({
|
10644
10619
|
className: e,
|
10645
10620
|
viewBox: t,
|
10646
10621
|
title: r,
|
@@ -10666,7 +10641,7 @@ const Jp = ({
|
|
10666
10641
|
/* @__PURE__ */ c("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
10667
10642
|
]
|
10668
10643
|
}
|
10669
|
-
),
|
10644
|
+
), Yp = ({
|
10670
10645
|
className: e,
|
10671
10646
|
viewBox: t,
|
10672
10647
|
title: r,
|
@@ -10697,20 +10672,20 @@ try {
|
|
10697
10672
|
});
|
10698
10673
|
} catch {
|
10699
10674
|
}
|
10700
|
-
const
|
10675
|
+
const Jp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
|
10701
10676
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
10702
10677
|
"lg:max-w-3xl": e === "left" && !t
|
10703
|
-
}),
|
10678
|
+
}), Kp = ({ kind: e }) => g({
|
10704
10679
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
10705
10680
|
"bg-surface-accent": e === "right"
|
10706
|
-
}),
|
10681
|
+
}), Qp = ({ kind: e }) => g(
|
10707
10682
|
"prose prose-dark dark:prose-lighter",
|
10708
10683
|
"prose-blockquote:my-1",
|
10709
10684
|
"prose-ol:my-1 prose-ul:my-1",
|
10710
10685
|
{
|
10711
10686
|
"text-copy-lighter": e === "right"
|
10712
10687
|
}
|
10713
|
-
),
|
10688
|
+
), Xp = ({ kind: e, tail: t }) => {
|
10714
10689
|
if (t)
|
10715
10690
|
return g(
|
10716
10691
|
`${Cr}-${e}-tail`,
|
@@ -10731,7 +10706,7 @@ const Qp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
|
|
10731
10706
|
"rounded-tr-xl": e === "left",
|
10732
10707
|
"rounded-tl-xl": e === "right"
|
10733
10708
|
});
|
10734
|
-
},
|
10709
|
+
}, Zp = ({
|
10735
10710
|
kind: e,
|
10736
10711
|
className: t,
|
10737
10712
|
contentClassName: r,
|
@@ -10749,10 +10724,10 @@ const Qp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
|
|
10749
10724
|
), s = g(
|
10750
10725
|
`${Cr}-content`,
|
10751
10726
|
"flex flex-col empty:hidden",
|
10752
|
-
|
10753
|
-
|
10754
|
-
|
10755
|
-
|
10727
|
+
Jp({ kind: e, noMaxWidth: a }),
|
10728
|
+
Qp({ kind: e }),
|
10729
|
+
Kp({ kind: e }),
|
10730
|
+
Xp({ kind: e, tail: o }),
|
10756
10731
|
r
|
10757
10732
|
), l = "pr-2 pt-1 text-end text-xs text-copy-light", i = g("flex flex-col-reverse sm:flex-row", {
|
10758
10733
|
"ml-2": e === "left" && !o,
|
@@ -10779,7 +10754,7 @@ const Qp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
|
|
10779
10754
|
noMaxWidth: d = !1,
|
10780
10755
|
tail: f = !1
|
10781
10756
|
}) => {
|
10782
|
-
const [u, h] = V(!1), m =
|
10757
|
+
const [u, h] = V(!1), m = Zp({
|
10783
10758
|
kind: t,
|
10784
10759
|
className: r,
|
10785
10760
|
contentClassName: a,
|
@@ -10816,7 +10791,7 @@ const Qp = ({ kind: e, noMaxWidth: t }) => g("px-4 py-2", {
|
|
10816
10791
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
10817
10792
|
onClick: y,
|
10818
10793
|
disabled: u,
|
10819
|
-
children: u ? /* @__PURE__ */ c(
|
10794
|
+
children: u ? /* @__PURE__ */ c(qp, { size: "size-3" }) : /* @__PURE__ */ c(Yp, { size: "size-3" })
|
10820
10795
|
}
|
10821
10796
|
) })
|
10822
10797
|
] });
|
@@ -10834,7 +10809,7 @@ try {
|
|
10834
10809
|
});
|
10835
10810
|
} catch {
|
10836
10811
|
}
|
10837
|
-
const Un = "av-spinner",
|
10812
|
+
const Un = "av-spinner", eg = ({
|
10838
10813
|
spinnerRef: e,
|
10839
10814
|
mode: t = "system",
|
10840
10815
|
type: r = "circle",
|
@@ -10881,7 +10856,7 @@ try {
|
|
10881
10856
|
});
|
10882
10857
|
} catch {
|
10883
10858
|
}
|
10884
|
-
const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link",
|
10859
|
+
const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", tg = ({
|
10885
10860
|
type: e,
|
10886
10861
|
size: t,
|
10887
10862
|
labelRight: r,
|
@@ -10917,7 +10892,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
10917
10892
|
"h-12": t === "large" && n && (r || a)
|
10918
10893
|
});
|
10919
10894
|
}
|
10920
|
-
},
|
10895
|
+
}, rg = ({
|
10921
10896
|
type: e,
|
10922
10897
|
size: t,
|
10923
10898
|
labelRight: r,
|
@@ -10940,7 +10915,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
10940
10915
|
[s]: t === "large" && (r || a)
|
10941
10916
|
});
|
10942
10917
|
}
|
10943
|
-
},
|
10918
|
+
}, ag = ({
|
10944
10919
|
mode: e,
|
10945
10920
|
noBackground: t,
|
10946
10921
|
truncate: r,
|
@@ -10976,7 +10951,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
10976
10951
|
return g("not-prose text-copy-lighter", {
|
10977
10952
|
truncate: r
|
10978
10953
|
});
|
10979
|
-
},
|
10954
|
+
}, og = ({
|
10980
10955
|
mode: e,
|
10981
10956
|
noBackground: t,
|
10982
10957
|
variant: r
|
@@ -11006,13 +10981,13 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11006
10981
|
if (r === "selected")
|
11007
10982
|
return "bg-action-selected-dark";
|
11008
10983
|
}
|
11009
|
-
},
|
10984
|
+
}, ng = ({
|
11010
10985
|
radius: e
|
11011
10986
|
}) => g({
|
11012
10987
|
"rounded-full": e === "large",
|
11013
10988
|
"rounded-md": e === "medium",
|
11014
10989
|
"rounded-xs": e === "small"
|
11015
|
-
}),
|
10990
|
+
}), sg = ({
|
11016
10991
|
mode: e,
|
11017
10992
|
disabled: t,
|
11018
10993
|
variant: r
|
@@ -11042,7 +11017,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11042
11017
|
});
|
11043
11018
|
if (r === "selected")
|
11044
11019
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
11045
|
-
},
|
11020
|
+
}, ig = ({
|
11046
11021
|
mode: e,
|
11047
11022
|
disabled: t,
|
11048
11023
|
variant: r
|
@@ -11072,7 +11047,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11072
11047
|
});
|
11073
11048
|
if (r === "selected")
|
11074
11049
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
11075
|
-
},
|
11050
|
+
}, lg = ({
|
11076
11051
|
mode: e,
|
11077
11052
|
noBorder: t,
|
11078
11053
|
variant: r
|
@@ -11102,14 +11077,14 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11102
11077
|
});
|
11103
11078
|
if (r === "selected")
|
11104
11079
|
return "border border-border-selected-dark";
|
11105
|
-
},
|
11080
|
+
}, cg = ({
|
11106
11081
|
focusMode: e
|
11107
11082
|
}) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
11108
11083
|
"focus:outline-focus-dark": e === "dark",
|
11109
11084
|
"focus:outline-focus-light": e === "light",
|
11110
11085
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
11111
11086
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
11112
|
-
}),
|
11087
|
+
}), dg = ({
|
11113
11088
|
mode: e,
|
11114
11089
|
raw: t,
|
11115
11090
|
iconClassName: r
|
@@ -11121,7 +11096,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11121
11096
|
"dark:text-copy-accent-dark": e === "system"
|
11122
11097
|
},
|
11123
11098
|
r
|
11124
|
-
),
|
11099
|
+
), ug = ({
|
11125
11100
|
animated: e
|
11126
11101
|
}) => g({
|
11127
11102
|
"transition-opacity duration-300 ease-in": e
|
@@ -11145,15 +11120,15 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11145
11120
|
animated: b
|
11146
11121
|
}) => (h || (h = "primary"), r ? g(Hn, t) : g(
|
11147
11122
|
Hn,
|
11148
|
-
|
11123
|
+
ag({
|
11149
11124
|
mode: a,
|
11150
11125
|
variant: h,
|
11151
11126
|
noBackground: u,
|
11152
11127
|
truncate: m
|
11153
11128
|
}),
|
11154
|
-
|
11155
|
-
|
11156
|
-
|
11129
|
+
og({ mode: a, noBackground: u, variant: h }),
|
11130
|
+
ng({ radius: y }),
|
11131
|
+
tg({
|
11157
11132
|
type: e,
|
11158
11133
|
size: l,
|
11159
11134
|
labelRight: d,
|
@@ -11161,11 +11136,11 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11161
11136
|
align: p,
|
11162
11137
|
animated: b
|
11163
11138
|
}),
|
11164
|
-
|
11165
|
-
|
11166
|
-
|
11167
|
-
|
11168
|
-
|
11139
|
+
rg({ type: e, size: l, labelRight: d, labelLeft: f }),
|
11140
|
+
lg({ mode: a, variant: h, noBorder: i }),
|
11141
|
+
cg({ focusMode: o }),
|
11142
|
+
sg({ mode: a, variant: h, disabled: n }),
|
11143
|
+
ig({ mode: a, variant: h, disabled: n }),
|
11169
11144
|
{
|
11170
11145
|
"w-full": s,
|
11171
11146
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
@@ -11174,7 +11149,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11174
11149
|
"transition-[width] duration-300 ease-in-out": e === Wr && b
|
11175
11150
|
}),
|
11176
11151
|
t
|
11177
|
-
)),
|
11152
|
+
)), fg = (e, t, r) => {
|
11178
11153
|
var a;
|
11179
11154
|
!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);
|
11180
11155
|
}, Ao = U.forwardRef((e, t) => {
|
@@ -11184,7 +11159,7 @@ const Hn = "av-button", Wr = "icon", Ro = "button", Za = "link", ag = ({
|
|
11184
11159
|
{
|
11185
11160
|
ref: t,
|
11186
11161
|
onClick: (n) => {
|
11187
|
-
|
11162
|
+
fg(n, a, r);
|
11188
11163
|
},
|
11189
11164
|
...o
|
11190
11165
|
}
|
@@ -11234,13 +11209,13 @@ const Fi = U.forwardRef(
|
|
11234
11209
|
}
|
11235
11210
|
);
|
11236
11211
|
Fi.displayName = "Button";
|
11237
|
-
function
|
11212
|
+
function hg() {
|
11238
11213
|
const e = L(!1);
|
11239
11214
|
return z(() => (e.current = !0, () => {
|
11240
11215
|
e.current = !1;
|
11241
11216
|
}), []), Y(() => e.current, []);
|
11242
11217
|
}
|
11243
|
-
function
|
11218
|
+
function mg(e) {
|
11244
11219
|
return $e(() => e.every((t) => t == null) ? () => {
|
11245
11220
|
} : (t) => {
|
11246
11221
|
e.forEach((r) => {
|
@@ -11248,7 +11223,7 @@ function gg(e) {
|
|
11248
11223
|
});
|
11249
11224
|
}, e);
|
11250
11225
|
}
|
11251
|
-
const
|
11226
|
+
const pg = {
|
11252
11227
|
x: 0,
|
11253
11228
|
y: 0,
|
11254
11229
|
width: 0,
|
@@ -11259,7 +11234,7 @@ const yg = {
|
|
11259
11234
|
right: 0
|
11260
11235
|
};
|
11261
11236
|
function fa(e) {
|
11262
|
-
const t =
|
11237
|
+
const t = hg(), r = L(0), a = L(null), [o, n] = V(pg), s = $e(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
11263
11238
|
const i = l[0];
|
11264
11239
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
11265
11240
|
a.current && t() && n(i.contentRect);
|
@@ -11269,21 +11244,21 @@ function fa(e) {
|
|
11269
11244
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
11270
11245
|
}), [s, e]), [a, o];
|
11271
11246
|
}
|
11272
|
-
const
|
11247
|
+
const gg = {
|
11273
11248
|
small: 24,
|
11274
11249
|
// w-6
|
11275
11250
|
medium: 32,
|
11276
11251
|
// w-8
|
11277
11252
|
large: 48
|
11278
11253
|
// w-12
|
11279
|
-
},
|
11254
|
+
}, yg = {
|
11280
11255
|
small: 8 * 2,
|
11281
11256
|
// px-2 x 2
|
11282
11257
|
medium: 12 * 2,
|
11283
11258
|
// px-3 x 2
|
11284
11259
|
large: 16 * 2
|
11285
11260
|
// px-4 x 2
|
11286
|
-
},
|
11261
|
+
}, bg = 2, Ui = U.forwardRef(
|
11287
11262
|
({
|
11288
11263
|
children: e,
|
11289
11264
|
disabled: t = !1,
|
@@ -11324,11 +11299,11 @@ const bg = {
|
|
11324
11299
|
radius: b,
|
11325
11300
|
variant: v,
|
11326
11301
|
animated: k
|
11327
|
-
}), x =
|
11302
|
+
}), x = dg({ mode: r, raw: l, iconClassName: w }), E = ug({ animated: k }), [T, S] = fa(), [R, $] = fa(), [A, M] = fa(), P = L(0), D = L(null), j = mg([I, D]);
|
11328
11303
|
return we(() => {
|
11329
|
-
A && A.current && k && (P.current = M.width +
|
11304
|
+
A && A.current && k && (P.current = M.width + yg[u] + (i ? 0 : bg));
|
11330
11305
|
}, [M, A, u, i, k]), we(() => {
|
11331
|
-
D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${
|
11306
|
+
D && D.current && k && (h && T && S.width > 0 ? (T.current && (T.current.style.opacity = "100"), D.current.style.width = `${S.width + P.current}px`) : m && $.width > 0 ? (R.current && (R.current.style.opacity = "100"), D.current.style.width = `${$.width + P.current}px`) : (T.current && (T.current.style.opacity = "0"), R.current && (R.current.style.opacity = "0"), D.current.style.width = `${gg[u]}px`));
|
11332
11307
|
}, [
|
11333
11308
|
S,
|
11334
11309
|
h,
|
@@ -11391,7 +11366,7 @@ try {
|
|
11391
11366
|
});
|
11392
11367
|
} catch {
|
11393
11368
|
}
|
11394
|
-
const
|
11369
|
+
const vg = U.forwardRef(
|
11395
11370
|
({
|
11396
11371
|
children: e,
|
11397
11372
|
mode: t = "system",
|
@@ -11429,10 +11404,10 @@ const wg = U.forwardRef(
|
|
11429
11404
|
) });
|
11430
11405
|
}
|
11431
11406
|
);
|
11432
|
-
|
11433
|
-
const
|
11407
|
+
vg.displayName = "ButtonSort";
|
11408
|
+
const _g = 200, wg = ({
|
11434
11409
|
string: e,
|
11435
|
-
idealLength: t =
|
11410
|
+
idealLength: t = _g
|
11436
11411
|
}) => {
|
11437
11412
|
if (e.length <= t)
|
11438
11413
|
return { string: e, isTruncated: !1 };
|
@@ -11443,7 +11418,7 @@ const kg = 200, xg = ({
|
|
11443
11418
|
string: e.slice(0, t + r),
|
11444
11419
|
isTruncated: !0
|
11445
11420
|
};
|
11446
|
-
},
|
11421
|
+
}, kg = ({
|
11447
11422
|
children: e,
|
11448
11423
|
length: t = 200,
|
11449
11424
|
mode: r = "system",
|
@@ -11452,7 +11427,7 @@ const kg = 200, xg = ({
|
|
11452
11427
|
const [o, n] = V(!1);
|
11453
11428
|
if (typeof e != "string")
|
11454
11429
|
return e;
|
11455
|
-
const { string: s, isTruncated: l } =
|
11430
|
+
const { string: s, isTruncated: l } = wg({
|
11456
11431
|
string: e,
|
11457
11432
|
idealLength: t
|
11458
11433
|
});
|
@@ -11486,7 +11461,7 @@ try {
|
|
11486
11461
|
});
|
11487
11462
|
} catch {
|
11488
11463
|
}
|
11489
|
-
const
|
11464
|
+
const xg = ({ content: e }) => /* @__PURE__ */ c(
|
11490
11465
|
zi,
|
11491
11466
|
{
|
11492
11467
|
tail: !0,
|
@@ -11494,14 +11469,14 @@ const Eg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11494
11469
|
copyToClipboard: e,
|
11495
11470
|
copyToClipboardFocusMode: "light",
|
11496
11471
|
className: "mt-3",
|
11497
|
-
children: /* @__PURE__ */ c(
|
11472
|
+
children: /* @__PURE__ */ c(kg, { mode: "light", focusMode: "light", children: e })
|
11498
11473
|
}
|
11499
|
-
), jn = 2,
|
11474
|
+
), jn = 2, Tg = ro(
|
11500
11475
|
() => import(
|
11501
11476
|
/* webpackChunkName: "LazyMessageAssistant" */
|
11502
|
-
"./ChatBubbleAssistant.
|
11477
|
+
"./ChatBubbleAssistant.DFqip4ex.js"
|
11503
11478
|
)
|
11504
|
-
),
|
11479
|
+
), Eg = U.memo(
|
11505
11480
|
({
|
11506
11481
|
role: e,
|
11507
11482
|
content: t,
|
@@ -11511,8 +11486,8 @@ const Eg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11511
11486
|
const {
|
11512
11487
|
state: { restoring: o, streaming: n }
|
11513
11488
|
} = re(Re);
|
11514
|
-
return e === Lf && t ? /* @__PURE__ */ c(
|
11515
|
-
|
11489
|
+
return e === Lf && t ? /* @__PURE__ */ c(xg, { content: t }) : n && (e === vn || e === ba) && (!t || t && t.length < jn) ? /* @__PURE__ */ c(zi, { tail: !0, children: /* @__PURE__ */ c(eg, { type: "dots" }) }) : (e === vn || e === ba) && t && t.length >= jn ? /* @__PURE__ */ c(to, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
|
11490
|
+
Tg,
|
11516
11491
|
{
|
11517
11492
|
role: e,
|
11518
11493
|
content: t,
|
@@ -11522,7 +11497,7 @@ const Eg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11522
11497
|
}
|
11523
11498
|
) }) : null;
|
11524
11499
|
}
|
11525
|
-
),
|
11500
|
+
), Cg = () => {
|
11526
11501
|
const { messages: e } = xt();
|
11527
11502
|
return e && e.length > 0 ? /* @__PURE__ */ c("div", { className: "space-y-6 mt-2 @container", children: e == null ? void 0 : e.map((t, r) => {
|
11528
11503
|
let a;
|
@@ -11539,7 +11514,7 @@ const Eg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11539
11514
|
}), s = n && n.length > 0 ? n.filter(Boolean).join(`
|
11540
11515
|
`) : void 0;
|
11541
11516
|
return /* @__PURE__ */ c(
|
11542
|
-
|
11517
|
+
Eg,
|
11543
11518
|
{
|
11544
11519
|
role: t.role,
|
11545
11520
|
content: s,
|
@@ -11549,7 +11524,7 @@ const Eg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11549
11524
|
o
|
11550
11525
|
);
|
11551
11526
|
}) }) : null;
|
11552
|
-
},
|
11527
|
+
}, Ig = () => {
|
11553
11528
|
const { isAuthenticated: e } = Oe(), { ref: t, inViewport: r } = kc(), a = L(null), o = L(null), {
|
11554
11529
|
state: { footerPosition: n, footerHeight: s, footerOffset: l }
|
11555
11530
|
} = re(_o), {
|
@@ -11570,7 +11545,7 @@ const Eg = ({ content: e }) => /* @__PURE__ */ c(
|
|
11570
11545
|
}, [n, s, l]), /* @__PURE__ */ N(de, { children: [
|
11571
11546
|
/* @__PURE__ */ N("div", { className: f, ref: a, children: [
|
11572
11547
|
/* @__PURE__ */ c(bl, {}),
|
11573
|
-
/* @__PURE__ */ c(
|
11548
|
+
/* @__PURE__ */ c(Cg, {}),
|
11574
11549
|
/* @__PURE__ */ c("div", { ref: t, className: "scroll-marker" }),
|
11575
11550
|
/* @__PURE__ */ c("div", { ref: o, className: "pt-20" })
|
11576
11551
|
] }),
|
@@ -11697,7 +11672,7 @@ function Hi({
|
|
11697
11672
|
className: Go({
|
11698
11673
|
extraClass: "mt-5"
|
11699
11674
|
}),
|
11700
|
-
children: /* @__PURE__ */ c(
|
11675
|
+
children: /* @__PURE__ */ c(Cp, { isComponent: e })
|
11701
11676
|
}
|
11702
11677
|
),
|
11703
11678
|
/* @__PURE__ */ c(
|
@@ -11711,10 +11686,10 @@ function Hi({
|
|
11711
11686
|
style: {
|
11712
11687
|
height: o
|
11713
11688
|
},
|
11714
|
-
children: /* @__PURE__ */ c(
|
11689
|
+
children: /* @__PURE__ */ c(Ig, {})
|
11715
11690
|
}
|
11716
11691
|
),
|
11717
|
-
/* @__PURE__ */ c(
|
11692
|
+
/* @__PURE__ */ c(Pm, { isComponent: e })
|
11718
11693
|
]
|
11719
11694
|
}
|
11720
11695
|
)
|
@@ -11726,9 +11701,9 @@ function Hi({
|
|
11726
11701
|
);
|
11727
11702
|
}
|
11728
11703
|
Hi.displayName = "App";
|
11729
|
-
const
|
11704
|
+
const Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Hi }, Symbol.toStringTag, { value: "Module" }));
|
11730
11705
|
export {
|
11731
|
-
|
11706
|
+
Lg as App,
|
11732
11707
|
ym as ButtonScroll,
|
11733
11708
|
Re as ChatContext,
|
11734
11709
|
vt as E,
|