@versini/sassysaint 8.24.8 → 8.25.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.DlLSjExD.js → AboutChangelog.DZ1-iJ5A.js} +2 -2
- package/dist/chunks/{AboutEntry.DNuypnSn.js → AboutEntry.Okn300Ka.js} +19 -18
- package/dist/chunks/{App.CU8DPgBK.js → App.BeMVpu5U.js} +139 -138
- package/dist/chunks/{Chart.CUrSaDT3.js → Chart.Bpkp6pxX.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.2TUzypYP.js → ChatBubbleAssistant.C2qF6aep.js} +3 -3
- package/dist/chunks/{HistoryEntry.DQcqMjle.js → HistoryEntry.BMFZA7sy.js} +103 -112
- package/dist/chunks/{I3HPI4QX.DlQpQsgt.js → I3HPI4QX.CZKfF4QS.js} +1 -1
- package/dist/chunks/{ProfileEntry.Iwbm1rap.js → ProfileEntry.CvSmmgnk.js} +11 -20
- package/dist/chunks/{SettingsEntry.D9S_YV-z.js → SettingsEntry.zQ7rDphM.js} +64 -65
- package/dist/chunks/UsageEntry.DjUX5B6l.js +87 -0
- package/dist/chunks/{index.BmP4cAmg.js → index.C6GUxeYR.js} +3 -3
- package/dist/chunks/{index.D4ynJuQN.js → index.CWHaDvJC.js} +1 -1
- package/dist/chunks/{index.CRbaU3g8.js → index.Cdwqyz44.js} +2 -2
- package/dist/chunks/{index.CkC1cqoG.js → index.DoY59F_M.js} +1 -1
- package/dist/chunks/{index.CRciMWyd.js → index.Dw1w26Sa.js} +1 -1
- package/dist/chunks/{index.CxVK8gmr.js → index.Ryu4fNCl.js} +2 -2
- package/dist/chunks/{useMarkdown.BP64kEQI.js → useMarkdown.DzobZvVM.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/UsageEntry.BRpaSd7j.js +0 -96
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as lo, pendingThenable as ba, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as pt, noop as Er, isServer as kr, isValidTimeout as va, focusManager as uo, fetchState as ho, replaceData as wa, notifyManager as kn, timeUntilStale as fo, shouldThrowError as mo, useQueryClient as po, I as re, ACTION_SORT as go, ACTION_SEARCH as yo, ACTION_RESET_PROMPT as _n, ACTION_TOGGLE_PROMPT as Sn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ue, isElectron as Ea, isProbablyiPhone as yt, L as Tn, j as gt, C as ka, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as bo, LOCAL_STORAGE_REASONING_DISCLOSURE as vo, TOAST_CHAT_SAVED as wo, TOAST_PROVIDER_CHANGED as Eo, PROMPT_CLASSNAME as ko, PROMPT_EDITABLE_AREA_CLASSNAME as _o, ERROR_MESSAGE as So, ROLE_INTERNAL as _r, CLIPBOARD_PROMPT as _a, isProbablyMobile as Xe, INPUT_PLACEHOLDER_TEXT_MOBILE as Sa, INPUT_PLACEHOLDER_TEXT_ENTER as Ta, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ca, INPUT_BOTTOM_OFFSET_EXTRA as To, INPUT_BOTTOM_OFFSET as Cn, FOOTER_DISCLAIMER as Co, LOG_OUT as Ia, getMessageContaintWrapperClass as Io, UI_FOOTER_BUFFER as In, UI_BUTTON_SCROLL_BUFFER as xo, Logo as Ro, UI_DEFAULT_MAIN_HEIGHT as xa, APP_CLASSNAME as Ao, getMainPaddingClass as Ra, r as No, LOCAL_STORAGE_SORT as Oo, LOCAL_STORAGE_SEARCH as $o } from "./index.
|
2
|
+
import { Subscribable as lo, pendingThenable as ba, resolveEnabled as ke, shallowEqualObjects as wr, resolveStaleTime as pt, noop as Er, isServer as kr, isValidTimeout as va, focusManager as uo, fetchState as ho, replaceData as wa, notifyManager as kn, timeUntilStale as fo, shouldThrowError as mo, useQueryClient as po, I as re, ACTION_SORT as go, ACTION_SEARCH as yo, ACTION_RESET_PROMPT as _n, ACTION_TOGGLE_PROMPT as Sn, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, n as Ue, isElectron as Ea, isProbablyiPhone as yt, L as Tn, j as gt, C as ka, LOCAL_STORAGE_PREFIX as Ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as bo, LOCAL_STORAGE_REASONING_DISCLOSURE as vo, TOAST_CHAT_SAVED as wo, TOAST_PROVIDER_CHANGED as Eo, PROMPT_CLASSNAME as ko, PROMPT_EDITABLE_AREA_CLASSNAME as _o, ERROR_MESSAGE as So, ROLE_INTERNAL as _r, CLIPBOARD_PROMPT as _a, isProbablyMobile as Xe, INPUT_PLACEHOLDER_TEXT_MOBILE as Sa, INPUT_PLACEHOLDER_TEXT_ENTER as Ta, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ca, INPUT_BOTTOM_OFFSET_EXTRA as To, INPUT_BOTTOM_OFFSET as Cn, FOOTER_DISCLAIMER as Co, LOG_OUT as Ia, getMessageContaintWrapperClass as Io, UI_FOOTER_BUFFER as In, UI_BUTTON_SCROLL_BUFFER as xo, Logo as Ro, UI_DEFAULT_MAIN_HEIGHT as xa, APP_CLASSNAME as Ao, getMainPaddingClass as Ra, r as No, LOCAL_STORAGE_SORT as Oo, LOCAL_STORAGE_SEARCH as $o } from "./index.Ryu4fNCl.js";
|
3
3
|
import * as Y from "react";
|
4
4
|
import Z, { useEffect as $, useRef as R, useState as F, useCallback as W, useSyncExternalStore as Po, useMemo as he, useId as Wr, useContext as X, useLayoutEffect as Ne, createContext as xn, useDebugValue as Mo, forwardRef as Rn, Suspense as An, lazy as nt, useReducer as St } from "react";
|
5
5
|
import p from "clsx";
|
@@ -1912,7 +1912,7 @@ const ot = Z.createContext({
|
|
1912
1912
|
stickyHeader: !1,
|
1913
1913
|
stickyFooter: !1,
|
1914
1914
|
compact: !1
|
1915
|
-
}),
|
1915
|
+
}), zf = ({
|
1916
1916
|
children: e,
|
1917
1917
|
mode: t = "system",
|
1918
1918
|
caption: r,
|
@@ -1951,7 +1951,7 @@ const ot = Z.createContext({
|
|
1951
1951
|
)
|
1952
1952
|
}
|
1953
1953
|
);
|
1954
|
-
},
|
1954
|
+
}, Ff = ({
|
1955
1955
|
children: e,
|
1956
1956
|
className: t,
|
1957
1957
|
...r
|
@@ -1964,7 +1964,7 @@ const ot = Z.createContext({
|
|
1964
1964
|
stickyHeader: a.stickyHeader
|
1965
1965
|
});
|
1966
1966
|
return /* @__PURE__ */ i("thead", { className: n, ...r, children: e });
|
1967
|
-
},
|
1967
|
+
}, jf = ({
|
1968
1968
|
children: e,
|
1969
1969
|
className: t,
|
1970
1970
|
...r
|
@@ -1977,10 +1977,10 @@ const ot = Z.createContext({
|
|
1977
1977
|
stickyFooter: a.stickyFooter
|
1978
1978
|
});
|
1979
1979
|
return /* @__PURE__ */ i("tfoot", { className: n, ...r, children: e });
|
1980
|
-
},
|
1980
|
+
}, Wf = ({ children: e, ...t }) => {
|
1981
1981
|
const r = X(ot);
|
1982
1982
|
return r.cellWrapper = Ze, /* @__PURE__ */ i("tbody", { ...t, children: e });
|
1983
|
-
},
|
1983
|
+
}, Kf = ({
|
1984
1984
|
children: e,
|
1985
1985
|
className: t,
|
1986
1986
|
...r
|
@@ -2006,7 +2006,7 @@ const ot = Z.createContext({
|
|
2006
2006
|
align: a
|
2007
2007
|
});
|
2008
2008
|
return a ? /* @__PURE__ */ i(o, { className: c, ...n, children: /* @__PURE__ */ i("div", { className: l, children: e }) }) : /* @__PURE__ */ i(o, { className: c, ...n, children: e });
|
2009
|
-
},
|
2009
|
+
}, Gf = ({
|
2010
2010
|
align: e,
|
2011
2011
|
children: t,
|
2012
2012
|
buttonClassName: r,
|
@@ -2287,6 +2287,7 @@ const Ha = ({
|
|
2287
2287
|
getServerCapabilities {
|
2288
2288
|
version
|
2289
2289
|
models
|
2290
|
+
buildTime
|
2290
2291
|
}
|
2291
2292
|
}`,
|
2292
2293
|
GET_CHANGELOGS: `query GetChangelogs {
|
@@ -2457,13 +2458,13 @@ const Ha = ({
|
|
2457
2458
|
CHANGELOGS: "changelogs",
|
2458
2459
|
PREFERENCES: "preferences",
|
2459
2460
|
USAGE: "usage"
|
2460
|
-
},
|
2461
|
+
}, Jf = () => st({
|
2461
2462
|
queryKey: [it.CAPABILITIES],
|
2462
2463
|
queryFn: async () => await ct({
|
2463
2464
|
type: Ve.GET_SERVER_CAPABILITIES,
|
2464
2465
|
noAuth: !0
|
2465
2466
|
})
|
2466
|
-
}),
|
2467
|
+
}), qf = () => st({
|
2467
2468
|
queryKey: [it.CHANGELOGS],
|
2468
2469
|
queryFn: async () => await ct({
|
2469
2470
|
type: Ve.GET_CHANGELOGS,
|
@@ -2484,7 +2485,7 @@ const Ha = ({
|
|
2484
2485
|
type: Ve.GET_USER_PREFERENCES,
|
2485
2486
|
getAccessToken: t
|
2486
2487
|
})
|
2487
|
-
}),
|
2488
|
+
}), Yf = ({
|
2488
2489
|
user: e,
|
2489
2490
|
getAccessToken: t
|
2490
2491
|
}) => st({
|
@@ -2518,7 +2519,7 @@ const Ha = ({
|
|
2518
2519
|
type: Ve.GET_CHATS,
|
2519
2520
|
getAccessToken: a
|
2520
2521
|
})
|
2521
|
-
}),
|
2522
|
+
}), Qf = ({
|
2522
2523
|
user: e,
|
2523
2524
|
month: t,
|
2524
2525
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
@@ -4856,7 +4857,7 @@ const cd = "z-20", ld = "z-10", dd = "user", Gt = "assistant", ra = "OpenAI", Is
|
|
4856
4857
|
[ud]: [vd]
|
4857
4858
|
}, Rs = {
|
4858
4859
|
REASONING: "sassy:advanced:reasoning"
|
4859
|
-
}, Ed = "x-callisto-chat-id",
|
4860
|
+
}, Ed = "x-callisto-chat-id", Xf = (e) => {
|
4860
4861
|
for (const [t, r] of Object.entries(
|
4861
4862
|
wd
|
4862
4863
|
))
|
@@ -4914,7 +4915,7 @@ try {
|
|
4914
4915
|
});
|
4915
4916
|
} catch {
|
4916
4917
|
}
|
4917
|
-
const
|
4918
|
+
const Zf = {
|
4918
4919
|
PASSKEY: "passkey"
|
4919
4920
|
}, tt = {
|
4920
4921
|
ALG: "RS256",
|
@@ -7441,7 +7442,7 @@ const rh = (e) => {
|
|
7441
7442
|
] });
|
7442
7443
|
};
|
7443
7444
|
let pr = null, gr = null;
|
7444
|
-
const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = async () => (gr || (gr = import("./index.
|
7445
|
+
const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = async () => (gr || (gr = import("./index.Ryu4fNCl.js").then((e) => e.utilities)), gr), nh = async () => {
|
7445
7446
|
try {
|
7446
7447
|
await Promise.all([Gs(), Js()]);
|
7447
7448
|
} catch {
|
@@ -7462,7 +7463,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7462
7463
|
}, 100);
|
7463
7464
|
} catch {
|
7464
7465
|
}
|
7465
|
-
}, Ys = (e, t) => qs(e, "success", t),
|
7466
|
+
}, Ys = (e, t) => qs(e, "success", t), nm = (e, t) => qs(e, "error", t), Qs = ({
|
7466
7467
|
className: e
|
7467
7468
|
}) => {
|
7468
7469
|
const { user: t, getAccessToken: r } = Ue(), {
|
@@ -8165,18 +8166,18 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8165
8166
|
}
|
8166
8167
|
);
|
8167
8168
|
}, Ih = nt(
|
8168
|
-
() => import("./ProfileEntry.
|
8169
|
+
() => import("./ProfileEntry.CvSmmgnk.js").then((e) => ({ default: e.Profile }))
|
8169
8170
|
), xh = nt(
|
8170
|
-
() => import("./SettingsEntry.
|
8171
|
+
() => import("./SettingsEntry.zQ7rDphM.js").then((e) => ({
|
8171
8172
|
default: e.SettingsPanel
|
8172
8173
|
}))
|
8173
8174
|
), Rh = nt(
|
8174
|
-
() => import("./HistoryEntry.
|
8175
|
+
() => import("./HistoryEntry.BMFZA7sy.js").then((e) => ({ default: e.HistoryPanel }))
|
8175
8176
|
), Ah = nt(
|
8176
|
-
() => import("./AboutEntry.
|
8177
|
+
() => import("./AboutEntry.Okn300Ka.js").then((e) => ({ default: e.About }))
|
8177
8178
|
), Nh = nt(
|
8178
|
-
() => import("./UsageEntry.
|
8179
|
-
), Oh = (
|
8179
|
+
() => import("./UsageEntry.DjUX5B6l.js").then((e) => ({ default: e.Usage }))
|
8180
|
+
), Oh = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
|
8180
8181
|
switch (e) {
|
8181
8182
|
case "profile":
|
8182
8183
|
return /* @__PURE__ */ i(Ih, { open: t, onOpenChange: r });
|
@@ -8191,11 +8192,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8191
8192
|
default:
|
8192
8193
|
return null;
|
8193
8194
|
}
|
8194
|
-
})() }) : null,
|
8195
|
+
})() }) : null, $h = ({
|
8195
8196
|
isComponent: e = !1
|
8196
8197
|
}) => {
|
8197
8198
|
const { logout: t, getAccessToken: r } = Ue(), [a, n] = F(null), [s, o] = F(!1), [c, l] = F(!1), [d, f] = F(!1), u = W(() => {
|
8198
|
-
d || (import("./ProfileEntry.
|
8199
|
+
d || (import("./ProfileEntry.CvSmmgnk.js"), import("./SettingsEntry.zQ7rDphM.js"), import("./HistoryEntry.BMFZA7sy.js"), import("./AboutEntry.Okn300Ka.js"), import("./UsageEntry.DjUX5B6l.js"), f(!0));
|
8199
8200
|
}, [d]), h = (y) => {
|
8200
8201
|
n(y);
|
8201
8202
|
}, m = () => {
|
@@ -8226,7 +8227,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8226
8227
|
}
|
8227
8228
|
),
|
8228
8229
|
/* @__PURE__ */ i(
|
8229
|
-
|
8230
|
+
Oh,
|
8230
8231
|
{
|
8231
8232
|
type: a,
|
8232
8233
|
open: a !== null,
|
@@ -8329,7 +8330,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8329
8330
|
}
|
8330
8331
|
) })
|
8331
8332
|
] });
|
8332
|
-
}, zt = "av-bubble", gn = "av-button", ua = "icon", to = "button", Fr = "link",
|
8333
|
+
}, zt = "av-bubble", gn = "av-button", ua = "icon", to = "button", Fr = "link", Ph = ({
|
8333
8334
|
type: e,
|
8334
8335
|
size: t,
|
8335
8336
|
labelRight: r,
|
@@ -8365,7 +8366,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8365
8366
|
"h-12": t === "large" && s && (r || a)
|
8366
8367
|
});
|
8367
8368
|
}
|
8368
|
-
},
|
8369
|
+
}, Mh = ({
|
8369
8370
|
type: e,
|
8370
8371
|
size: t,
|
8371
8372
|
labelRight: r,
|
@@ -8388,7 +8389,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8388
8389
|
[o]: t === "large" && (r || a)
|
8389
8390
|
});
|
8390
8391
|
}
|
8391
|
-
},
|
8392
|
+
}, Lh = ({
|
8392
8393
|
mode: e,
|
8393
8394
|
noBackground: t,
|
8394
8395
|
truncate: r,
|
@@ -8424,7 +8425,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8424
8425
|
return p("not-prose text-copy-lighter", {
|
8425
8426
|
truncate: r
|
8426
8427
|
});
|
8427
|
-
},
|
8428
|
+
}, Dh = ({
|
8428
8429
|
mode: e,
|
8429
8430
|
noBackground: t,
|
8430
8431
|
variant: r
|
@@ -8454,13 +8455,13 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8454
8455
|
if (r === "selected")
|
8455
8456
|
return "bg-action-selected-dark";
|
8456
8457
|
}
|
8457
|
-
},
|
8458
|
+
}, Bh = ({
|
8458
8459
|
radius: e
|
8459
8460
|
}) => p({
|
8460
8461
|
"rounded-full": e === "large",
|
8461
8462
|
"rounded-md": e === "medium",
|
8462
8463
|
"rounded-xs": e === "small"
|
8463
|
-
}),
|
8464
|
+
}), Hh = ({
|
8464
8465
|
mode: e,
|
8465
8466
|
disabled: t,
|
8466
8467
|
variant: r
|
@@ -8490,7 +8491,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8490
8491
|
});
|
8491
8492
|
if (r === "selected")
|
8492
8493
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
8493
|
-
},
|
8494
|
+
}, Uh = ({
|
8494
8495
|
mode: e,
|
8495
8496
|
disabled: t,
|
8496
8497
|
variant: r
|
@@ -8520,7 +8521,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8520
8521
|
});
|
8521
8522
|
if (r === "selected")
|
8522
8523
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
8523
|
-
},
|
8524
|
+
}, Vh = ({
|
8524
8525
|
mode: e,
|
8525
8526
|
noBorder: t,
|
8526
8527
|
variant: r
|
@@ -8550,14 +8551,14 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8550
8551
|
});
|
8551
8552
|
if (r === "selected")
|
8552
8553
|
return "border border-border-selected-dark";
|
8553
|
-
},
|
8554
|
+
}, zh = ({
|
8554
8555
|
focusMode: e
|
8555
8556
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
8556
8557
|
"focus:outline-focus-dark": e === "dark",
|
8557
8558
|
"focus:outline-focus-light": e === "light",
|
8558
8559
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
8559
8560
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
8560
|
-
}),
|
8561
|
+
}), Fh = ({
|
8561
8562
|
mode: e,
|
8562
8563
|
raw: t,
|
8563
8564
|
iconClassName: r
|
@@ -8569,11 +8570,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8569
8570
|
"dark:text-copy-accent-dark": e === "system"
|
8570
8571
|
},
|
8571
8572
|
r
|
8572
|
-
),
|
8573
|
+
), jh = ({
|
8573
8574
|
animated: e
|
8574
8575
|
}) => p({
|
8575
8576
|
"transition-opacity duration-300 ease-in-out": e
|
8576
|
-
}),
|
8577
|
+
}), Wh = ({
|
8577
8578
|
type: e,
|
8578
8579
|
className: t,
|
8579
8580
|
raw: r,
|
@@ -8593,15 +8594,15 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8593
8594
|
animated: v
|
8594
8595
|
}) => (h || (h = "primary"), r ? p(gn, t) : p(
|
8595
8596
|
gn,
|
8596
|
-
|
8597
|
+
Lh({
|
8597
8598
|
mode: a,
|
8598
8599
|
variant: h,
|
8599
8600
|
noBackground: u,
|
8600
8601
|
truncate: m
|
8601
8602
|
}),
|
8602
|
-
|
8603
|
-
|
8604
|
-
|
8603
|
+
Dh({ mode: a, noBackground: u, variant: h }),
|
8604
|
+
Bh({ radius: y }),
|
8605
|
+
Ph({
|
8605
8606
|
type: e,
|
8606
8607
|
size: c,
|
8607
8608
|
labelRight: d,
|
@@ -8609,11 +8610,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8609
8610
|
align: g,
|
8610
8611
|
animated: v
|
8611
8612
|
}),
|
8612
|
-
|
8613
|
-
|
8614
|
-
|
8613
|
+
Mh({ type: e, size: c, labelRight: d, labelLeft: f }),
|
8614
|
+
Vh({ mode: a, variant: h, noBorder: l }),
|
8615
|
+
zh({ focusMode: n }),
|
8616
|
+
Hh({ mode: a, variant: h, disabled: s }),
|
8615
8617
|
Uh({ mode: a, variant: h, disabled: s }),
|
8616
|
-
Vh({ mode: a, variant: h, disabled: s }),
|
8617
8618
|
{
|
8618
8619
|
"w-full": o,
|
8619
8620
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
@@ -8622,7 +8623,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8622
8623
|
"transition-[width] duration-300 ease-in": v
|
8623
8624
|
}),
|
8624
8625
|
t
|
8625
|
-
)),
|
8626
|
+
)), Kh = (e, t, r) => {
|
8626
8627
|
var a;
|
8627
8628
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
8628
8629
|
}, ro = Z.forwardRef((e, t) => {
|
@@ -8632,20 +8633,20 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8632
8633
|
{
|
8633
8634
|
ref: t,
|
8634
8635
|
onClick: (s) => {
|
8635
|
-
|
8636
|
+
Kh(s, a, r);
|
8636
8637
|
},
|
8637
8638
|
...n
|
8638
8639
|
}
|
8639
8640
|
);
|
8640
8641
|
});
|
8641
8642
|
ro.displayName = "BaseButton";
|
8642
|
-
function
|
8643
|
+
function Gh() {
|
8643
8644
|
const e = R(!1);
|
8644
8645
|
return $(() => (e.current = !0, () => {
|
8645
8646
|
e.current = !1;
|
8646
8647
|
}), []), W(() => e.current, []);
|
8647
8648
|
}
|
8648
|
-
function
|
8649
|
+
function Jh(e) {
|
8649
8650
|
return he(() => e.every((t) => t == null) ? () => {
|
8650
8651
|
} : (t) => {
|
8651
8652
|
e.forEach((r) => {
|
@@ -8653,7 +8654,7 @@ function qh(e) {
|
|
8653
8654
|
});
|
8654
8655
|
}, [...e]);
|
8655
8656
|
}
|
8656
|
-
const
|
8657
|
+
const qh = {
|
8657
8658
|
x: 0,
|
8658
8659
|
y: 0,
|
8659
8660
|
width: 0,
|
@@ -8664,7 +8665,7 @@ const Yh = {
|
|
8664
8665
|
right: 0
|
8665
8666
|
};
|
8666
8667
|
function br(e) {
|
8667
|
-
const t =
|
8668
|
+
const t = Gh(), r = R(0), a = R(null), [n, s] = F(qh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
8668
8669
|
const l = c[0];
|
8669
8670
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
8670
8671
|
a.current && t() && s(l.contentRect);
|
@@ -8681,14 +8682,14 @@ const Dt = {
|
|
8681
8682
|
// w-8
|
8682
8683
|
large: 48
|
8683
8684
|
// w-12
|
8684
|
-
},
|
8685
|
+
}, Yh = {
|
8685
8686
|
small: 8 * 2,
|
8686
8687
|
// px-2 x 2
|
8687
8688
|
medium: 12 * 2,
|
8688
8689
|
// px-3 x 2
|
8689
8690
|
large: 16 * 2
|
8690
8691
|
// px-4 x 2
|
8691
|
-
},
|
8692
|
+
}, Qh = 2, Xh = 300, ha = Z.forwardRef(
|
8692
8693
|
({
|
8693
8694
|
children: e,
|
8694
8695
|
disabled: t = !1,
|
@@ -8712,7 +8713,7 @@ const Dt = {
|
|
8712
8713
|
animated: S = !1,
|
8713
8714
|
...O
|
8714
8715
|
}, I) => {
|
8715
|
-
const b =
|
8716
|
+
const b = Wh({
|
8716
8717
|
type: ua,
|
8717
8718
|
mode: r,
|
8718
8719
|
focusMode: a,
|
@@ -8729,15 +8730,15 @@ const Dt = {
|
|
8729
8730
|
radius: v,
|
8730
8731
|
variant: w,
|
8731
8732
|
animated: S
|
8732
|
-
}), _ =
|
8733
|
+
}), _ = Fh({ mode: r, raw: c, iconClassName: C }), k = jh({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, V] = br(), [A, z] = br(), [P, J] = br(), Q = R(0), L = R(null), M = R(null), q = Jh([I, L]);
|
8733
8734
|
return Ne(() => {
|
8734
|
-
P && P.current && S && (Q.current = J.width +
|
8735
|
+
P && P.current && S && (Q.current = J.width + Yh[u] + (l ? 0 : Qh), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
|
8735
8736
|
}, [J, P, u, l, S]), Ne(() => {
|
8736
8737
|
if (L && L.current && S) {
|
8737
8738
|
let B = Dt[u];
|
8738
8739
|
h && E && V.width > 0 ? B = V.width + Q.current : m && A && z.width > 0 && (B = z.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Dt[u] && (M.current = setTimeout(() => {
|
8739
8740
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
8740
|
-
},
|
8741
|
+
}, Xh * 0.8))), B === Dt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
8741
8742
|
}
|
8742
8743
|
}, [
|
8743
8744
|
V,
|
@@ -8814,7 +8815,7 @@ try {
|
|
8814
8815
|
});
|
8815
8816
|
} catch {
|
8816
8817
|
}
|
8817
|
-
const
|
8818
|
+
const Zh = Z.forwardRef(
|
8818
8819
|
({
|
8819
8820
|
children: e,
|
8820
8821
|
mode: t = "system",
|
@@ -8852,7 +8853,7 @@ const ef = Z.forwardRef(
|
|
8852
8853
|
) });
|
8853
8854
|
}
|
8854
8855
|
);
|
8855
|
-
|
8856
|
+
Zh.displayName = "ButtonSort";
|
8856
8857
|
const ao = ({
|
8857
8858
|
children: e,
|
8858
8859
|
fill: t,
|
@@ -8896,7 +8897,7 @@ try {
|
|
8896
8897
|
});
|
8897
8898
|
} catch {
|
8898
8899
|
}
|
8899
|
-
const
|
8900
|
+
const ef = ({
|
8900
8901
|
className: e,
|
8901
8902
|
viewBox: t,
|
8902
8903
|
title: r,
|
@@ -8922,7 +8923,7 @@ const tf = ({
|
|
8922
8923
|
/* @__PURE__ */ i("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" })
|
8923
8924
|
]
|
8924
8925
|
}
|
8925
|
-
),
|
8926
|
+
), tf = ({
|
8926
8927
|
className: e,
|
8927
8928
|
viewBox: t,
|
8928
8929
|
title: r,
|
@@ -8953,20 +8954,20 @@ try {
|
|
8953
8954
|
});
|
8954
8955
|
} catch {
|
8955
8956
|
}
|
8956
|
-
const
|
8957
|
+
const rf = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
8957
8958
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
8958
8959
|
"lg:max-w-3xl": e === "left" && !t
|
8959
|
-
}),
|
8960
|
+
}), af = ({ kind: e }) => p({
|
8960
8961
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
8961
8962
|
"bg-surface-accent": e === "right"
|
8962
|
-
}),
|
8963
|
+
}), nf = ({ kind: e }) => p(
|
8963
8964
|
"prose prose-dark dark:prose-lighter",
|
8964
8965
|
"prose-blockquote:my-1",
|
8965
8966
|
"prose-ol:my-1 prose-ul:my-1",
|
8966
8967
|
{
|
8967
8968
|
"text-copy-lighter": e === "right"
|
8968
8969
|
}
|
8969
|
-
),
|
8970
|
+
), sf = ({ kind: e, tail: t }) => {
|
8970
8971
|
if (t)
|
8971
8972
|
return p(
|
8972
8973
|
`${zt}-${e}-tail`,
|
@@ -8987,7 +8988,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
8987
8988
|
"rounded-tr-xl": e === "left",
|
8988
8989
|
"rounded-tl-xl": e === "right"
|
8989
8990
|
});
|
8990
|
-
},
|
8991
|
+
}, of = ({
|
8991
8992
|
kind: e,
|
8992
8993
|
className: t,
|
8993
8994
|
contentClassName: r,
|
@@ -9005,10 +9006,10 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9005
9006
|
), o = p(
|
9006
9007
|
`${zt}-content`,
|
9007
9008
|
"flex flex-col empty:hidden",
|
9008
|
-
|
9009
|
-
sf({ kind: e }),
|
9009
|
+
rf({ kind: e, noMaxWidth: a }),
|
9010
9010
|
nf({ kind: e }),
|
9011
|
-
|
9011
|
+
af({ kind: e }),
|
9012
|
+
sf({ kind: e, tail: n }),
|
9012
9013
|
r
|
9013
9014
|
), c = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
|
9014
9015
|
"ml-2": e === "left" && !n,
|
@@ -9022,7 +9023,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9022
9023
|
footer: c,
|
9023
9024
|
copyButton: l
|
9024
9025
|
};
|
9025
|
-
},
|
9026
|
+
}, cf = "FOOTER_EMPTY", no = ({
|
9026
9027
|
children: e,
|
9027
9028
|
kind: t = "left",
|
9028
9029
|
className: r,
|
@@ -9035,7 +9036,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9035
9036
|
noMaxWidth: d = !1,
|
9036
9037
|
tail: f = !1
|
9037
9038
|
}) => {
|
9038
|
-
const [u, h] = F(!1), m =
|
9039
|
+
const [u, h] = F(!1), m = of({
|
9039
9040
|
kind: t,
|
9040
9041
|
className: r,
|
9041
9042
|
contentClassName: a,
|
@@ -9056,7 +9057,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9056
9057
|
/* @__PURE__ */ i("div", { className: m.main, children: e }),
|
9057
9058
|
n && Object.keys(n).map((v, w) => {
|
9058
9059
|
const C = n[v];
|
9059
|
-
return C ===
|
9060
|
+
return C === cf ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: m.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${v}-${w}`) : C ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: m.footer, children: [
|
9060
9061
|
v,
|
9061
9062
|
": ",
|
9062
9063
|
C
|
@@ -9075,7 +9076,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9075
9076
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
9076
9077
|
onClick: y,
|
9077
9078
|
disabled: u,
|
9078
|
-
children: u ? /* @__PURE__ */ i(
|
9079
|
+
children: u ? /* @__PURE__ */ i(ef, { size: "size-3" }) : /* @__PURE__ */ i(tf, { size: "size-3" })
|
9079
9080
|
}
|
9080
9081
|
) })
|
9081
9082
|
] });
|
@@ -9093,7 +9094,7 @@ try {
|
|
9093
9094
|
});
|
9094
9095
|
} catch {
|
9095
9096
|
}
|
9096
|
-
const bn = "av-spinner",
|
9097
|
+
const bn = "av-spinner", lf = ({
|
9097
9098
|
spinnerRef: e,
|
9098
9099
|
mode: t = "system",
|
9099
9100
|
type: r = "circle",
|
@@ -9140,7 +9141,7 @@ try {
|
|
9140
9141
|
});
|
9141
9142
|
} catch {
|
9142
9143
|
}
|
9143
|
-
const vn = "av-button", Zt = "icon", fa = "button", jr = "link",
|
9144
|
+
const vn = "av-button", Zt = "icon", fa = "button", jr = "link", df = ({
|
9144
9145
|
type: e,
|
9145
9146
|
size: t,
|
9146
9147
|
labelRight: r,
|
@@ -9176,7 +9177,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9176
9177
|
"h-12": t === "large" && s && (r || a)
|
9177
9178
|
});
|
9178
9179
|
}
|
9179
|
-
},
|
9180
|
+
}, uf = ({
|
9180
9181
|
type: e,
|
9181
9182
|
size: t,
|
9182
9183
|
labelRight: r,
|
@@ -9199,7 +9200,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9199
9200
|
[o]: t === "large" && (r || a)
|
9200
9201
|
});
|
9201
9202
|
}
|
9202
|
-
},
|
9203
|
+
}, hf = ({
|
9203
9204
|
mode: e,
|
9204
9205
|
noBackground: t,
|
9205
9206
|
truncate: r,
|
@@ -9235,7 +9236,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9235
9236
|
return p("not-prose text-copy-lighter", {
|
9236
9237
|
truncate: r
|
9237
9238
|
});
|
9238
|
-
},
|
9239
|
+
}, ff = ({
|
9239
9240
|
mode: e,
|
9240
9241
|
noBackground: t,
|
9241
9242
|
variant: r
|
@@ -9265,13 +9266,13 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9265
9266
|
if (r === "selected")
|
9266
9267
|
return "bg-action-selected-dark";
|
9267
9268
|
}
|
9268
|
-
},
|
9269
|
+
}, mf = ({
|
9269
9270
|
radius: e
|
9270
9271
|
}) => p({
|
9271
9272
|
"rounded-full": e === "large",
|
9272
9273
|
"rounded-md": e === "medium",
|
9273
9274
|
"rounded-xs": e === "small"
|
9274
|
-
}),
|
9275
|
+
}), pf = ({
|
9275
9276
|
mode: e,
|
9276
9277
|
disabled: t,
|
9277
9278
|
variant: r
|
@@ -9301,7 +9302,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9301
9302
|
});
|
9302
9303
|
if (r === "selected")
|
9303
9304
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
9304
|
-
},
|
9305
|
+
}, gf = ({
|
9305
9306
|
mode: e,
|
9306
9307
|
disabled: t,
|
9307
9308
|
variant: r
|
@@ -9331,7 +9332,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9331
9332
|
});
|
9332
9333
|
if (r === "selected")
|
9333
9334
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
9334
|
-
},
|
9335
|
+
}, yf = ({
|
9335
9336
|
mode: e,
|
9336
9337
|
noBorder: t,
|
9337
9338
|
variant: r
|
@@ -9361,14 +9362,14 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9361
9362
|
});
|
9362
9363
|
if (r === "selected")
|
9363
9364
|
return "border border-border-selected-dark";
|
9364
|
-
},
|
9365
|
+
}, bf = ({
|
9365
9366
|
focusMode: e
|
9366
9367
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
9367
9368
|
"focus:outline-focus-dark": e === "dark",
|
9368
9369
|
"focus:outline-focus-light": e === "light",
|
9369
9370
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
9370
9371
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
9371
|
-
}),
|
9372
|
+
}), vf = ({
|
9372
9373
|
mode: e,
|
9373
9374
|
raw: t,
|
9374
9375
|
iconClassName: r
|
@@ -9380,7 +9381,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9380
9381
|
"dark:text-copy-accent-dark": e === "system"
|
9381
9382
|
},
|
9382
9383
|
r
|
9383
|
-
),
|
9384
|
+
), wf = ({
|
9384
9385
|
animated: e
|
9385
9386
|
}) => p({
|
9386
9387
|
"transition-opacity duration-300 ease-in-out": e
|
@@ -9404,15 +9405,15 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9404
9405
|
animated: v
|
9405
9406
|
}) => (h || (h = "primary"), r ? p(vn, t) : p(
|
9406
9407
|
vn,
|
9407
|
-
|
9408
|
+
hf({
|
9408
9409
|
mode: a,
|
9409
9410
|
variant: h,
|
9410
9411
|
noBackground: u,
|
9411
9412
|
truncate: m
|
9412
9413
|
}),
|
9413
|
-
|
9414
|
-
|
9415
|
-
|
9414
|
+
ff({ mode: a, noBackground: u, variant: h }),
|
9415
|
+
mf({ radius: y }),
|
9416
|
+
df({
|
9416
9417
|
type: e,
|
9417
9418
|
size: c,
|
9418
9419
|
labelRight: d,
|
@@ -9420,11 +9421,11 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9420
9421
|
align: g,
|
9421
9422
|
animated: v
|
9422
9423
|
}),
|
9423
|
-
|
9424
|
-
|
9425
|
-
|
9424
|
+
uf({ type: e, size: c, labelRight: d, labelLeft: f }),
|
9425
|
+
yf({ mode: a, variant: h, noBorder: l }),
|
9426
|
+
bf({ focusMode: n }),
|
9427
|
+
pf({ mode: a, variant: h, disabled: s }),
|
9426
9428
|
gf({ mode: a, variant: h, disabled: s }),
|
9427
|
-
yf({ mode: a, variant: h, disabled: s }),
|
9428
9429
|
{
|
9429
9430
|
"w-full": o,
|
9430
9431
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
@@ -9433,7 +9434,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9433
9434
|
"transition-[width] duration-300 ease-in": e === Zt && v
|
9434
9435
|
}),
|
9435
9436
|
t
|
9436
|
-
)),
|
9437
|
+
)), Ef = (e, t, r) => {
|
9437
9438
|
var a;
|
9438
9439
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
9439
9440
|
}, ma = Z.forwardRef((e, t) => {
|
@@ -9443,7 +9444,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9443
9444
|
{
|
9444
9445
|
ref: t,
|
9445
9446
|
onClick: (s) => {
|
9446
|
-
|
9447
|
+
Ef(s, a, r);
|
9447
9448
|
},
|
9448
9449
|
...n
|
9449
9450
|
}
|
@@ -9493,13 +9494,13 @@ const oo = Z.forwardRef(
|
|
9493
9494
|
}
|
9494
9495
|
);
|
9495
9496
|
oo.displayName = "Button";
|
9496
|
-
function
|
9497
|
+
function kf() {
|
9497
9498
|
const e = R(!1);
|
9498
9499
|
return $(() => (e.current = !0, () => {
|
9499
9500
|
e.current = !1;
|
9500
9501
|
}), []), W(() => e.current, []);
|
9501
9502
|
}
|
9502
|
-
function
|
9503
|
+
function _f(e) {
|
9503
9504
|
return he(() => e.every((t) => t == null) ? () => {
|
9504
9505
|
} : (t) => {
|
9505
9506
|
e.forEach((r) => {
|
@@ -9507,7 +9508,7 @@ function Sf(e) {
|
|
9507
9508
|
});
|
9508
9509
|
}, [...e]);
|
9509
9510
|
}
|
9510
|
-
const
|
9511
|
+
const Sf = {
|
9511
9512
|
x: 0,
|
9512
9513
|
y: 0,
|
9513
9514
|
width: 0,
|
@@ -9518,7 +9519,7 @@ const Tf = {
|
|
9518
9519
|
right: 0
|
9519
9520
|
};
|
9520
9521
|
function vr(e) {
|
9521
|
-
const t =
|
9522
|
+
const t = kf(), r = R(0), a = R(null), [n, s] = F(Sf), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
9522
9523
|
const l = c[0];
|
9523
9524
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
9524
9525
|
a.current && t() && s(l.contentRect);
|
@@ -9535,14 +9536,14 @@ const Bt = {
|
|
9535
9536
|
// w-8
|
9536
9537
|
large: 48
|
9537
9538
|
// w-12
|
9538
|
-
},
|
9539
|
+
}, Tf = {
|
9539
9540
|
small: 8 * 2,
|
9540
9541
|
// px-2 x 2
|
9541
9542
|
medium: 12 * 2,
|
9542
9543
|
// px-3 x 2
|
9543
9544
|
large: 16 * 2
|
9544
9545
|
// px-4 x 2
|
9545
|
-
},
|
9546
|
+
}, Cf = 2, If = 300, io = Z.forwardRef(
|
9546
9547
|
({
|
9547
9548
|
children: e,
|
9548
9549
|
disabled: t = !1,
|
@@ -9583,15 +9584,15 @@ const Bt = {
|
|
9583
9584
|
radius: v,
|
9584
9585
|
variant: w,
|
9585
9586
|
animated: S
|
9586
|
-
}), _ =
|
9587
|
+
}), _ = vf({ mode: r, raw: c, iconClassName: C }), k = wf({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, V] = vr(), [A, z] = vr(), [P, J] = vr(), Q = R(0), L = R(null), M = R(null), q = _f([I, L]);
|
9587
9588
|
return Ne(() => {
|
9588
|
-
P && P.current && S && (Q.current = J.width +
|
9589
|
+
P && P.current && S && (Q.current = J.width + Tf[u] + (l ? 0 : Cf), L.current && !L.current.style.width && (L.current.style.width = `${Bt[u]}px`));
|
9589
9590
|
}, [J, P, u, l, S]), Ne(() => {
|
9590
9591
|
if (L && L.current && S) {
|
9591
9592
|
let B = Bt[u];
|
9592
9593
|
h && E && V.width > 0 ? B = V.width + Q.current : m && A && z.width > 0 && (B = z.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Bt[u] && (M.current = setTimeout(() => {
|
9593
9594
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
9594
|
-
},
|
9595
|
+
}, If * 0.8))), B === Bt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
9595
9596
|
}
|
9596
9597
|
}, [
|
9597
9598
|
V,
|
@@ -9668,7 +9669,7 @@ try {
|
|
9668
9669
|
});
|
9669
9670
|
} catch {
|
9670
9671
|
}
|
9671
|
-
const
|
9672
|
+
const xf = Z.forwardRef(
|
9672
9673
|
({
|
9673
9674
|
children: e,
|
9674
9675
|
mode: t = "system",
|
@@ -9706,10 +9707,10 @@ const Rf = Z.forwardRef(
|
|
9706
9707
|
) });
|
9707
9708
|
}
|
9708
9709
|
);
|
9709
|
-
|
9710
|
-
const
|
9710
|
+
xf.displayName = "ButtonSort";
|
9711
|
+
const Rf = 200, Af = ({
|
9711
9712
|
string: e,
|
9712
|
-
idealLength: t =
|
9713
|
+
idealLength: t = Rf
|
9713
9714
|
}) => {
|
9714
9715
|
if (e.length <= t)
|
9715
9716
|
return { string: e, isTruncated: !1 };
|
@@ -9720,7 +9721,7 @@ const Af = 200, Nf = ({
|
|
9720
9721
|
string: e.slice(0, t + r),
|
9721
9722
|
isTruncated: !0
|
9722
9723
|
};
|
9723
|
-
},
|
9724
|
+
}, Nf = ({
|
9724
9725
|
children: e,
|
9725
9726
|
length: t = 200,
|
9726
9727
|
mode: r = "system",
|
@@ -9729,7 +9730,7 @@ const Af = 200, Nf = ({
|
|
9729
9730
|
const [n, s] = F(!1);
|
9730
9731
|
if (typeof e != "string")
|
9731
9732
|
return e;
|
9732
|
-
const { string: o, isTruncated: c } =
|
9733
|
+
const { string: o, isTruncated: c } = Af({
|
9733
9734
|
string: e,
|
9734
9735
|
idealLength: t
|
9735
9736
|
});
|
@@ -9763,7 +9764,7 @@ try {
|
|
9763
9764
|
});
|
9764
9765
|
} catch {
|
9765
9766
|
}
|
9766
|
-
const
|
9767
|
+
const Of = ({ content: e }) => /* @__PURE__ */ i(
|
9767
9768
|
no,
|
9768
9769
|
{
|
9769
9770
|
tail: !0,
|
@@ -9771,14 +9772,14 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9771
9772
|
copyToClipboard: e,
|
9772
9773
|
copyToClipboardFocusMode: "light",
|
9773
9774
|
className: "mt-3",
|
9774
|
-
children: /* @__PURE__ */ i(
|
9775
|
+
children: /* @__PURE__ */ i(Nf, { mode: "light", focusMode: "light", children: e })
|
9775
9776
|
}
|
9776
|
-
), En = 2,
|
9777
|
+
), En = 2, $f = nt(
|
9777
9778
|
() => import(
|
9778
9779
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9779
|
-
"./ChatBubbleAssistant.
|
9780
|
+
"./ChatBubbleAssistant.C2qF6aep.js"
|
9780
9781
|
)
|
9781
|
-
),
|
9782
|
+
), Pf = Z.memo(
|
9782
9783
|
({
|
9783
9784
|
role: e,
|
9784
9785
|
content: t,
|
@@ -9789,8 +9790,8 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9789
9790
|
const {
|
9790
9791
|
state: { restoring: s, streaming: o }
|
9791
9792
|
} = X(be);
|
9792
|
-
return e === dd && t ? /* @__PURE__ */ i(
|
9793
|
-
|
9793
|
+
return e === dd && t ? /* @__PURE__ */ i(Of, { content: t }) : o && (e === Gt || e === _r) && (!t || t && t.length < En) ? /* @__PURE__ */ i(no, { tail: !0, children: /* @__PURE__ */ i(lf, { type: "dots" }) }) : (e === Gt || e === _r) && t && t.length >= En ? /* @__PURE__ */ i(An, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
|
9794
|
+
$f,
|
9794
9795
|
{
|
9795
9796
|
role: e,
|
9796
9797
|
content: t,
|
@@ -9801,7 +9802,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9801
9802
|
}
|
9802
9803
|
) }) : null;
|
9803
9804
|
}
|
9804
|
-
),
|
9805
|
+
), Mf = () => {
|
9805
9806
|
const { messages: e } = lt(), t = e ? e.map((r, a) => r.role === Gt ? a : -1).filter((r) => r !== -1).pop() : -1;
|
9806
9807
|
return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
|
9807
9808
|
let n;
|
@@ -9817,7 +9818,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9817
9818
|
}), c = o && o.length > 0 ? o.filter(Boolean).join(`
|
9818
9819
|
`) : void 0, l = r.role === Gt && a === t;
|
9819
9820
|
return /* @__PURE__ */ i(
|
9820
|
-
|
9821
|
+
Pf,
|
9821
9822
|
{
|
9822
9823
|
role: r.role,
|
9823
9824
|
content: c,
|
@@ -9828,7 +9829,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9828
9829
|
s
|
9829
9830
|
);
|
9830
9831
|
}) }) : null;
|
9831
|
-
},
|
9832
|
+
}, Lf = () => {
|
9832
9833
|
const { isAuthenticated: e } = Ue(), { ref: t, inViewport: r } = Li(), a = R(null), n = R(null), {
|
9833
9834
|
state: { footerPosition: s, footerHeight: o, footerOffset: c }
|
9834
9835
|
} = X(sa), {
|
@@ -9849,7 +9850,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9849
9850
|
}, [s, o, c]), /* @__PURE__ */ T(ue, { children: [
|
9850
9851
|
/* @__PURE__ */ T("div", { className: f, ref: a, children: [
|
9851
9852
|
/* @__PURE__ */ i(Ro, {}),
|
9852
|
-
/* @__PURE__ */ i(
|
9853
|
+
/* @__PURE__ */ i(Mf, {}),
|
9853
9854
|
/* @__PURE__ */ i("div", { ref: t, className: "scroll-marker" }),
|
9854
9855
|
/* @__PURE__ */ i("div", { ref: n, className: "pt-20" })
|
9855
9856
|
] }),
|
@@ -9977,7 +9978,7 @@ function co({
|
|
9977
9978
|
className: Ra({
|
9978
9979
|
extraClass: "mt-5"
|
9979
9980
|
}),
|
9980
|
-
children: /* @__PURE__ */ i(
|
9981
|
+
children: /* @__PURE__ */ i($h, { isComponent: e })
|
9981
9982
|
}
|
9982
9983
|
),
|
9983
9984
|
/* @__PURE__ */ i(
|
@@ -9991,7 +9992,7 @@ function co({
|
|
9991
9992
|
style: {
|
9992
9993
|
height: n
|
9993
9994
|
},
|
9994
|
-
children: /* @__PURE__ */ i(
|
9995
|
+
children: /* @__PURE__ */ i(Lf, {})
|
9995
9996
|
}
|
9996
9997
|
),
|
9997
9998
|
/* @__PURE__ */ i(Ch, { isComponent: e })
|
@@ -10006,51 +10007,51 @@ function co({
|
|
10006
10007
|
);
|
10007
10008
|
}
|
10008
10009
|
co.displayName = "App";
|
10009
|
-
const
|
10010
|
+
const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: co }, Symbol.toStringTag, { value: "Module" }));
|
10010
10011
|
export {
|
10011
|
-
|
10012
|
-
|
10012
|
+
Ff as $e,
|
10013
|
+
sm as App,
|
10013
10014
|
sh as ButtonScroll,
|
10014
10015
|
Zn as CHAT_SET_PROVIDER,
|
10015
10016
|
et as CHAT_SET_STATUS,
|
10016
10017
|
be as ChatContext,
|
10017
10018
|
Ge as ConfirmationPanel,
|
10018
10019
|
jt as E,
|
10019
|
-
|
10020
|
-
|
10021
|
-
|
10020
|
+
jf as Fe,
|
10021
|
+
Wf as Ge,
|
10022
|
+
zf as He,
|
10022
10023
|
aa as HistoryContext,
|
10023
10024
|
Ha as LazyToastContainerWrapper,
|
10024
|
-
|
10025
|
+
cf as Me,
|
10025
10026
|
xs as O,
|
10026
10027
|
no as Oe,
|
10027
10028
|
bc as Pe,
|
10028
10029
|
ht as R,
|
10029
10030
|
Ve as SERVICE_TYPES,
|
10030
|
-
|
10031
|
+
Gf as Ye,
|
10031
10032
|
gi as a,
|
10032
10033
|
hi as a$1,
|
10033
10034
|
Oe as at,
|
10034
10035
|
Li as b,
|
10035
10036
|
ps as getDefaultExportFromCjs,
|
10036
10037
|
Vi as i,
|
10037
|
-
|
10038
|
+
Xf as j,
|
10038
10039
|
es as mutateCall,
|
10039
10040
|
ra as n,
|
10040
|
-
|
10041
|
+
Zf as nt,
|
10041
10042
|
Is as o,
|
10042
10043
|
ki as p,
|
10043
10044
|
ci as p$1,
|
10044
|
-
|
10045
|
+
Kf as qe,
|
10045
10046
|
Xu as rr,
|
10046
10047
|
Ic as setNewProvider,
|
10047
|
-
|
10048
|
+
nm as showErrorToast,
|
10048
10049
|
Ys as showSuccessToast,
|
10049
10050
|
lt as useAiChat,
|
10050
|
-
|
10051
|
+
qf as useChangelogs,
|
10051
10052
|
ts as useChatsHistory,
|
10052
|
-
|
10053
|
-
|
10054
|
-
|
10053
|
+
Qf as useChatsUsage,
|
10054
|
+
Jf as useServerCapabilities,
|
10055
|
+
Yf as useUserChatStats,
|
10055
10056
|
Yt as useUserPreferences
|
10056
10057
|
};
|