@versini/sassysaint 8.25.0 → 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.BAbCbCoR.js → AboutChangelog.DZ1-iJ5A.js} +2 -2
- package/dist/chunks/{AboutEntry.CCqQ0Ggh.js → AboutEntry.Okn300Ka.js} +8 -8
- package/dist/chunks/{App._AgszNs-.js → App.BeMVpu5U.js} +138 -138
- package/dist/chunks/{Chart.KniauJPi.js → Chart.Bpkp6pxX.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CgnmkLWA.js → ChatBubbleAssistant.C2qF6aep.js} +3 -3
- package/dist/chunks/{HistoryEntry.BsLCRi5A.js → HistoryEntry.BMFZA7sy.js} +103 -112
- package/dist/chunks/{I3HPI4QX.B6M64iYO.js → I3HPI4QX.CZKfF4QS.js} +1 -1
- package/dist/chunks/{ProfileEntry.Dw68Fulu.js → ProfileEntry.CvSmmgnk.js} +11 -20
- package/dist/chunks/{SettingsEntry.DK5ClUuQ.js → SettingsEntry.zQ7rDphM.js} +64 -65
- package/dist/chunks/UsageEntry.DjUX5B6l.js +87 -0
- package/dist/chunks/{index.DaB0udoY.js → index.C6GUxeYR.js} +3 -3
- package/dist/chunks/{index.CZtrhwzu.js → index.CWHaDvJC.js} +1 -1
- package/dist/chunks/{index.BGnSFve0.js → index.Cdwqyz44.js} +2 -2
- package/dist/chunks/{index.DCay6ird.js → index.DoY59F_M.js} +1 -1
- package/dist/chunks/{index.DiFp-IfK.js → index.Dw1w26Sa.js} +1 -1
- package/dist/chunks/{index.DzKPIAXc.js → index.Ryu4fNCl.js} +2 -2
- package/dist/chunks/{useMarkdown.Ba2Fkemy.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.zFWoBow-.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,
|
@@ -2458,13 +2458,13 @@ const Ha = ({
|
|
2458
2458
|
CHANGELOGS: "changelogs",
|
2459
2459
|
PREFERENCES: "preferences",
|
2460
2460
|
USAGE: "usage"
|
2461
|
-
},
|
2461
|
+
}, Jf = () => st({
|
2462
2462
|
queryKey: [it.CAPABILITIES],
|
2463
2463
|
queryFn: async () => await ct({
|
2464
2464
|
type: Ve.GET_SERVER_CAPABILITIES,
|
2465
2465
|
noAuth: !0
|
2466
2466
|
})
|
2467
|
-
}),
|
2467
|
+
}), qf = () => st({
|
2468
2468
|
queryKey: [it.CHANGELOGS],
|
2469
2469
|
queryFn: async () => await ct({
|
2470
2470
|
type: Ve.GET_CHANGELOGS,
|
@@ -2485,7 +2485,7 @@ const Ha = ({
|
|
2485
2485
|
type: Ve.GET_USER_PREFERENCES,
|
2486
2486
|
getAccessToken: t
|
2487
2487
|
})
|
2488
|
-
}),
|
2488
|
+
}), Yf = ({
|
2489
2489
|
user: e,
|
2490
2490
|
getAccessToken: t
|
2491
2491
|
}) => st({
|
@@ -2519,7 +2519,7 @@ const Ha = ({
|
|
2519
2519
|
type: Ve.GET_CHATS,
|
2520
2520
|
getAccessToken: a
|
2521
2521
|
})
|
2522
|
-
}),
|
2522
|
+
}), Qf = ({
|
2523
2523
|
user: e,
|
2524
2524
|
month: t,
|
2525
2525
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
@@ -4857,7 +4857,7 @@ const cd = "z-20", ld = "z-10", dd = "user", Gt = "assistant", ra = "OpenAI", Is
|
|
4857
4857
|
[ud]: [vd]
|
4858
4858
|
}, Rs = {
|
4859
4859
|
REASONING: "sassy:advanced:reasoning"
|
4860
|
-
}, Ed = "x-callisto-chat-id",
|
4860
|
+
}, Ed = "x-callisto-chat-id", Xf = (e) => {
|
4861
4861
|
for (const [t, r] of Object.entries(
|
4862
4862
|
wd
|
4863
4863
|
))
|
@@ -4915,7 +4915,7 @@ try {
|
|
4915
4915
|
});
|
4916
4916
|
} catch {
|
4917
4917
|
}
|
4918
|
-
const
|
4918
|
+
const Zf = {
|
4919
4919
|
PASSKEY: "passkey"
|
4920
4920
|
}, tt = {
|
4921
4921
|
ALG: "RS256",
|
@@ -7442,7 +7442,7 @@ const rh = (e) => {
|
|
7442
7442
|
] });
|
7443
7443
|
};
|
7444
7444
|
let pr = null, gr = null;
|
7445
|
-
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 () => {
|
7446
7446
|
try {
|
7447
7447
|
await Promise.all([Gs(), Js()]);
|
7448
7448
|
} catch {
|
@@ -7463,7 +7463,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
7463
7463
|
}, 100);
|
7464
7464
|
} catch {
|
7465
7465
|
}
|
7466
|
-
}, Ys = (e, t) => qs(e, "success", t),
|
7466
|
+
}, Ys = (e, t) => qs(e, "success", t), nm = (e, t) => qs(e, "error", t), Qs = ({
|
7467
7467
|
className: e
|
7468
7468
|
}) => {
|
7469
7469
|
const { user: t, getAccessToken: r } = Ue(), {
|
@@ -8166,18 +8166,18 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8166
8166
|
}
|
8167
8167
|
);
|
8168
8168
|
}, Ih = nt(
|
8169
|
-
() => import("./ProfileEntry.
|
8169
|
+
() => import("./ProfileEntry.CvSmmgnk.js").then((e) => ({ default: e.Profile }))
|
8170
8170
|
), xh = nt(
|
8171
|
-
() => import("./SettingsEntry.
|
8171
|
+
() => import("./SettingsEntry.zQ7rDphM.js").then((e) => ({
|
8172
8172
|
default: e.SettingsPanel
|
8173
8173
|
}))
|
8174
8174
|
), Rh = nt(
|
8175
|
-
() => import("./HistoryEntry.
|
8175
|
+
() => import("./HistoryEntry.BMFZA7sy.js").then((e) => ({ default: e.HistoryPanel }))
|
8176
8176
|
), Ah = nt(
|
8177
|
-
() => import("./AboutEntry.
|
8177
|
+
() => import("./AboutEntry.Okn300Ka.js").then((e) => ({ default: e.About }))
|
8178
8178
|
), Nh = nt(
|
8179
|
-
() => import("./UsageEntry.
|
8180
|
-
), 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: (() => {
|
8181
8181
|
switch (e) {
|
8182
8182
|
case "profile":
|
8183
8183
|
return /* @__PURE__ */ i(Ih, { open: t, onOpenChange: r });
|
@@ -8192,11 +8192,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8192
8192
|
default:
|
8193
8193
|
return null;
|
8194
8194
|
}
|
8195
|
-
})() }) : null,
|
8195
|
+
})() }) : null, $h = ({
|
8196
8196
|
isComponent: e = !1
|
8197
8197
|
}) => {
|
8198
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(() => {
|
8199
|
-
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));
|
8200
8200
|
}, [d]), h = (y) => {
|
8201
8201
|
n(y);
|
8202
8202
|
}, m = () => {
|
@@ -8227,7 +8227,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8227
8227
|
}
|
8228
8228
|
),
|
8229
8229
|
/* @__PURE__ */ i(
|
8230
|
-
|
8230
|
+
Oh,
|
8231
8231
|
{
|
8232
8232
|
type: a,
|
8233
8233
|
open: a !== null,
|
@@ -8330,7 +8330,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8330
8330
|
}
|
8331
8331
|
) })
|
8332
8332
|
] });
|
8333
|
-
}, 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 = ({
|
8334
8334
|
type: e,
|
8335
8335
|
size: t,
|
8336
8336
|
labelRight: r,
|
@@ -8366,7 +8366,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8366
8366
|
"h-12": t === "large" && s && (r || a)
|
8367
8367
|
});
|
8368
8368
|
}
|
8369
|
-
},
|
8369
|
+
}, Mh = ({
|
8370
8370
|
type: e,
|
8371
8371
|
size: t,
|
8372
8372
|
labelRight: r,
|
@@ -8389,7 +8389,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8389
8389
|
[o]: t === "large" && (r || a)
|
8390
8390
|
});
|
8391
8391
|
}
|
8392
|
-
},
|
8392
|
+
}, Lh = ({
|
8393
8393
|
mode: e,
|
8394
8394
|
noBackground: t,
|
8395
8395
|
truncate: r,
|
@@ -8425,7 +8425,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8425
8425
|
return p("not-prose text-copy-lighter", {
|
8426
8426
|
truncate: r
|
8427
8427
|
});
|
8428
|
-
},
|
8428
|
+
}, Dh = ({
|
8429
8429
|
mode: e,
|
8430
8430
|
noBackground: t,
|
8431
8431
|
variant: r
|
@@ -8455,13 +8455,13 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8455
8455
|
if (r === "selected")
|
8456
8456
|
return "bg-action-selected-dark";
|
8457
8457
|
}
|
8458
|
-
},
|
8458
|
+
}, Bh = ({
|
8459
8459
|
radius: e
|
8460
8460
|
}) => p({
|
8461
8461
|
"rounded-full": e === "large",
|
8462
8462
|
"rounded-md": e === "medium",
|
8463
8463
|
"rounded-xs": e === "small"
|
8464
|
-
}),
|
8464
|
+
}), Hh = ({
|
8465
8465
|
mode: e,
|
8466
8466
|
disabled: t,
|
8467
8467
|
variant: r
|
@@ -8491,7 +8491,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8491
8491
|
});
|
8492
8492
|
if (r === "selected")
|
8493
8493
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
8494
|
-
},
|
8494
|
+
}, Uh = ({
|
8495
8495
|
mode: e,
|
8496
8496
|
disabled: t,
|
8497
8497
|
variant: r
|
@@ -8521,7 +8521,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8521
8521
|
});
|
8522
8522
|
if (r === "selected")
|
8523
8523
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
8524
|
-
},
|
8524
|
+
}, Vh = ({
|
8525
8525
|
mode: e,
|
8526
8526
|
noBorder: t,
|
8527
8527
|
variant: r
|
@@ -8551,14 +8551,14 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8551
8551
|
});
|
8552
8552
|
if (r === "selected")
|
8553
8553
|
return "border border-border-selected-dark";
|
8554
|
-
},
|
8554
|
+
}, zh = ({
|
8555
8555
|
focusMode: e
|
8556
8556
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
8557
8557
|
"focus:outline-focus-dark": e === "dark",
|
8558
8558
|
"focus:outline-focus-light": e === "light",
|
8559
8559
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
8560
8560
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
8561
|
-
}),
|
8561
|
+
}), Fh = ({
|
8562
8562
|
mode: e,
|
8563
8563
|
raw: t,
|
8564
8564
|
iconClassName: r
|
@@ -8570,11 +8570,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8570
8570
|
"dark:text-copy-accent-dark": e === "system"
|
8571
8571
|
},
|
8572
8572
|
r
|
8573
|
-
),
|
8573
|
+
), jh = ({
|
8574
8574
|
animated: e
|
8575
8575
|
}) => p({
|
8576
8576
|
"transition-opacity duration-300 ease-in-out": e
|
8577
|
-
}),
|
8577
|
+
}), Wh = ({
|
8578
8578
|
type: e,
|
8579
8579
|
className: t,
|
8580
8580
|
raw: r,
|
@@ -8594,15 +8594,15 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8594
8594
|
animated: v
|
8595
8595
|
}) => (h || (h = "primary"), r ? p(gn, t) : p(
|
8596
8596
|
gn,
|
8597
|
-
|
8597
|
+
Lh({
|
8598
8598
|
mode: a,
|
8599
8599
|
variant: h,
|
8600
8600
|
noBackground: u,
|
8601
8601
|
truncate: m
|
8602
8602
|
}),
|
8603
|
-
|
8604
|
-
|
8605
|
-
|
8603
|
+
Dh({ mode: a, noBackground: u, variant: h }),
|
8604
|
+
Bh({ radius: y }),
|
8605
|
+
Ph({
|
8606
8606
|
type: e,
|
8607
8607
|
size: c,
|
8608
8608
|
labelRight: d,
|
@@ -8610,11 +8610,11 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8610
8610
|
align: g,
|
8611
8611
|
animated: v
|
8612
8612
|
}),
|
8613
|
-
|
8614
|
-
|
8615
|
-
|
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 }),
|
8616
8617
|
Uh({ mode: a, variant: h, disabled: s }),
|
8617
|
-
Vh({ mode: a, variant: h, disabled: s }),
|
8618
8618
|
{
|
8619
8619
|
"w-full": o,
|
8620
8620
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
@@ -8623,7 +8623,7 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8623
8623
|
"transition-[width] duration-300 ease-in": v
|
8624
8624
|
}),
|
8625
8625
|
t
|
8626
|
-
)),
|
8626
|
+
)), Kh = (e, t, r) => {
|
8627
8627
|
var a;
|
8628
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);
|
8629
8629
|
}, ro = Z.forwardRef((e, t) => {
|
@@ -8633,20 +8633,20 @@ const Gs = async () => (pr || (pr = import("./index.B8EJY2WR.js")), pr), Js = as
|
|
8633
8633
|
{
|
8634
8634
|
ref: t,
|
8635
8635
|
onClick: (s) => {
|
8636
|
-
|
8636
|
+
Kh(s, a, r);
|
8637
8637
|
},
|
8638
8638
|
...n
|
8639
8639
|
}
|
8640
8640
|
);
|
8641
8641
|
});
|
8642
8642
|
ro.displayName = "BaseButton";
|
8643
|
-
function
|
8643
|
+
function Gh() {
|
8644
8644
|
const e = R(!1);
|
8645
8645
|
return $(() => (e.current = !0, () => {
|
8646
8646
|
e.current = !1;
|
8647
8647
|
}), []), W(() => e.current, []);
|
8648
8648
|
}
|
8649
|
-
function
|
8649
|
+
function Jh(e) {
|
8650
8650
|
return he(() => e.every((t) => t == null) ? () => {
|
8651
8651
|
} : (t) => {
|
8652
8652
|
e.forEach((r) => {
|
@@ -8654,7 +8654,7 @@ function qh(e) {
|
|
8654
8654
|
});
|
8655
8655
|
}, [...e]);
|
8656
8656
|
}
|
8657
|
-
const
|
8657
|
+
const qh = {
|
8658
8658
|
x: 0,
|
8659
8659
|
y: 0,
|
8660
8660
|
width: 0,
|
@@ -8665,7 +8665,7 @@ const Yh = {
|
|
8665
8665
|
right: 0
|
8666
8666
|
};
|
8667
8667
|
function br(e) {
|
8668
|
-
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) => {
|
8669
8669
|
const l = c[0];
|
8670
8670
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
8671
8671
|
a.current && t() && s(l.contentRect);
|
@@ -8682,14 +8682,14 @@ const Dt = {
|
|
8682
8682
|
// w-8
|
8683
8683
|
large: 48
|
8684
8684
|
// w-12
|
8685
|
-
},
|
8685
|
+
}, Yh = {
|
8686
8686
|
small: 8 * 2,
|
8687
8687
|
// px-2 x 2
|
8688
8688
|
medium: 12 * 2,
|
8689
8689
|
// px-3 x 2
|
8690
8690
|
large: 16 * 2
|
8691
8691
|
// px-4 x 2
|
8692
|
-
},
|
8692
|
+
}, Qh = 2, Xh = 300, ha = Z.forwardRef(
|
8693
8693
|
({
|
8694
8694
|
children: e,
|
8695
8695
|
disabled: t = !1,
|
@@ -8713,7 +8713,7 @@ const Dt = {
|
|
8713
8713
|
animated: S = !1,
|
8714
8714
|
...O
|
8715
8715
|
}, I) => {
|
8716
|
-
const b =
|
8716
|
+
const b = Wh({
|
8717
8717
|
type: ua,
|
8718
8718
|
mode: r,
|
8719
8719
|
focusMode: a,
|
@@ -8730,15 +8730,15 @@ const Dt = {
|
|
8730
8730
|
radius: v,
|
8731
8731
|
variant: w,
|
8732
8732
|
animated: S
|
8733
|
-
}), _ =
|
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]);
|
8734
8734
|
return Ne(() => {
|
8735
|
-
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`));
|
8736
8736
|
}, [J, P, u, l, S]), Ne(() => {
|
8737
8737
|
if (L && L.current && S) {
|
8738
8738
|
let B = Dt[u];
|
8739
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(() => {
|
8740
8740
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
8741
|
-
},
|
8741
|
+
}, Xh * 0.8))), B === Dt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
8742
8742
|
}
|
8743
8743
|
}, [
|
8744
8744
|
V,
|
@@ -8815,7 +8815,7 @@ try {
|
|
8815
8815
|
});
|
8816
8816
|
} catch {
|
8817
8817
|
}
|
8818
|
-
const
|
8818
|
+
const Zh = Z.forwardRef(
|
8819
8819
|
({
|
8820
8820
|
children: e,
|
8821
8821
|
mode: t = "system",
|
@@ -8853,7 +8853,7 @@ const ef = Z.forwardRef(
|
|
8853
8853
|
) });
|
8854
8854
|
}
|
8855
8855
|
);
|
8856
|
-
|
8856
|
+
Zh.displayName = "ButtonSort";
|
8857
8857
|
const ao = ({
|
8858
8858
|
children: e,
|
8859
8859
|
fill: t,
|
@@ -8897,7 +8897,7 @@ try {
|
|
8897
8897
|
});
|
8898
8898
|
} catch {
|
8899
8899
|
}
|
8900
|
-
const
|
8900
|
+
const ef = ({
|
8901
8901
|
className: e,
|
8902
8902
|
viewBox: t,
|
8903
8903
|
title: r,
|
@@ -8923,7 +8923,7 @@ const tf = ({
|
|
8923
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" })
|
8924
8924
|
]
|
8925
8925
|
}
|
8926
|
-
),
|
8926
|
+
), tf = ({
|
8927
8927
|
className: e,
|
8928
8928
|
viewBox: t,
|
8929
8929
|
title: r,
|
@@ -8954,20 +8954,20 @@ try {
|
|
8954
8954
|
});
|
8955
8955
|
} catch {
|
8956
8956
|
}
|
8957
|
-
const
|
8957
|
+
const rf = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
8958
8958
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
8959
8959
|
"lg:max-w-3xl": e === "left" && !t
|
8960
|
-
}),
|
8960
|
+
}), af = ({ kind: e }) => p({
|
8961
8961
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
8962
8962
|
"bg-surface-accent": e === "right"
|
8963
|
-
}),
|
8963
|
+
}), nf = ({ kind: e }) => p(
|
8964
8964
|
"prose prose-dark dark:prose-lighter",
|
8965
8965
|
"prose-blockquote:my-1",
|
8966
8966
|
"prose-ol:my-1 prose-ul:my-1",
|
8967
8967
|
{
|
8968
8968
|
"text-copy-lighter": e === "right"
|
8969
8969
|
}
|
8970
|
-
),
|
8970
|
+
), sf = ({ kind: e, tail: t }) => {
|
8971
8971
|
if (t)
|
8972
8972
|
return p(
|
8973
8973
|
`${zt}-${e}-tail`,
|
@@ -8988,7 +8988,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
8988
8988
|
"rounded-tr-xl": e === "left",
|
8989
8989
|
"rounded-tl-xl": e === "right"
|
8990
8990
|
});
|
8991
|
-
},
|
8991
|
+
}, of = ({
|
8992
8992
|
kind: e,
|
8993
8993
|
className: t,
|
8994
8994
|
contentClassName: r,
|
@@ -9006,10 +9006,10 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9006
9006
|
), o = p(
|
9007
9007
|
`${zt}-content`,
|
9008
9008
|
"flex flex-col empty:hidden",
|
9009
|
-
|
9010
|
-
sf({ kind: e }),
|
9009
|
+
rf({ kind: e, noMaxWidth: a }),
|
9011
9010
|
nf({ kind: e }),
|
9012
|
-
|
9011
|
+
af({ kind: e }),
|
9012
|
+
sf({ kind: e, tail: n }),
|
9013
9013
|
r
|
9014
9014
|
), c = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
|
9015
9015
|
"ml-2": e === "left" && !n,
|
@@ -9023,7 +9023,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9023
9023
|
footer: c,
|
9024
9024
|
copyButton: l
|
9025
9025
|
};
|
9026
|
-
},
|
9026
|
+
}, cf = "FOOTER_EMPTY", no = ({
|
9027
9027
|
children: e,
|
9028
9028
|
kind: t = "left",
|
9029
9029
|
className: r,
|
@@ -9036,7 +9036,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9036
9036
|
noMaxWidth: d = !1,
|
9037
9037
|
tail: f = !1
|
9038
9038
|
}) => {
|
9039
|
-
const [u, h] = F(!1), m =
|
9039
|
+
const [u, h] = F(!1), m = of({
|
9040
9040
|
kind: t,
|
9041
9041
|
className: r,
|
9042
9042
|
contentClassName: a,
|
@@ -9057,7 +9057,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9057
9057
|
/* @__PURE__ */ i("div", { className: m.main, children: e }),
|
9058
9058
|
n && Object.keys(n).map((v, w) => {
|
9059
9059
|
const C = n[v];
|
9060
|
-
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: [
|
9061
9061
|
v,
|
9062
9062
|
": ",
|
9063
9063
|
C
|
@@ -9076,7 +9076,7 @@ const af = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
9076
9076
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
9077
9077
|
onClick: y,
|
9078
9078
|
disabled: u,
|
9079
|
-
children: u ? /* @__PURE__ */ i(
|
9079
|
+
children: u ? /* @__PURE__ */ i(ef, { size: "size-3" }) : /* @__PURE__ */ i(tf, { size: "size-3" })
|
9080
9080
|
}
|
9081
9081
|
) })
|
9082
9082
|
] });
|
@@ -9094,7 +9094,7 @@ try {
|
|
9094
9094
|
});
|
9095
9095
|
} catch {
|
9096
9096
|
}
|
9097
|
-
const bn = "av-spinner",
|
9097
|
+
const bn = "av-spinner", lf = ({
|
9098
9098
|
spinnerRef: e,
|
9099
9099
|
mode: t = "system",
|
9100
9100
|
type: r = "circle",
|
@@ -9141,7 +9141,7 @@ try {
|
|
9141
9141
|
});
|
9142
9142
|
} catch {
|
9143
9143
|
}
|
9144
|
-
const vn = "av-button", Zt = "icon", fa = "button", jr = "link",
|
9144
|
+
const vn = "av-button", Zt = "icon", fa = "button", jr = "link", df = ({
|
9145
9145
|
type: e,
|
9146
9146
|
size: t,
|
9147
9147
|
labelRight: r,
|
@@ -9177,7 +9177,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9177
9177
|
"h-12": t === "large" && s && (r || a)
|
9178
9178
|
});
|
9179
9179
|
}
|
9180
|
-
},
|
9180
|
+
}, uf = ({
|
9181
9181
|
type: e,
|
9182
9182
|
size: t,
|
9183
9183
|
labelRight: r,
|
@@ -9200,7 +9200,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9200
9200
|
[o]: t === "large" && (r || a)
|
9201
9201
|
});
|
9202
9202
|
}
|
9203
|
-
},
|
9203
|
+
}, hf = ({
|
9204
9204
|
mode: e,
|
9205
9205
|
noBackground: t,
|
9206
9206
|
truncate: r,
|
@@ -9236,7 +9236,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9236
9236
|
return p("not-prose text-copy-lighter", {
|
9237
9237
|
truncate: r
|
9238
9238
|
});
|
9239
|
-
},
|
9239
|
+
}, ff = ({
|
9240
9240
|
mode: e,
|
9241
9241
|
noBackground: t,
|
9242
9242
|
variant: r
|
@@ -9266,13 +9266,13 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9266
9266
|
if (r === "selected")
|
9267
9267
|
return "bg-action-selected-dark";
|
9268
9268
|
}
|
9269
|
-
},
|
9269
|
+
}, mf = ({
|
9270
9270
|
radius: e
|
9271
9271
|
}) => p({
|
9272
9272
|
"rounded-full": e === "large",
|
9273
9273
|
"rounded-md": e === "medium",
|
9274
9274
|
"rounded-xs": e === "small"
|
9275
|
-
}),
|
9275
|
+
}), pf = ({
|
9276
9276
|
mode: e,
|
9277
9277
|
disabled: t,
|
9278
9278
|
variant: r
|
@@ -9302,7 +9302,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9302
9302
|
});
|
9303
9303
|
if (r === "selected")
|
9304
9304
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
9305
|
-
},
|
9305
|
+
}, gf = ({
|
9306
9306
|
mode: e,
|
9307
9307
|
disabled: t,
|
9308
9308
|
variant: r
|
@@ -9332,7 +9332,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9332
9332
|
});
|
9333
9333
|
if (r === "selected")
|
9334
9334
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
9335
|
-
},
|
9335
|
+
}, yf = ({
|
9336
9336
|
mode: e,
|
9337
9337
|
noBorder: t,
|
9338
9338
|
variant: r
|
@@ -9362,14 +9362,14 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9362
9362
|
});
|
9363
9363
|
if (r === "selected")
|
9364
9364
|
return "border border-border-selected-dark";
|
9365
|
-
},
|
9365
|
+
}, bf = ({
|
9366
9366
|
focusMode: e
|
9367
9367
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
9368
9368
|
"focus:outline-focus-dark": e === "dark",
|
9369
9369
|
"focus:outline-focus-light": e === "light",
|
9370
9370
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
9371
9371
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
9372
|
-
}),
|
9372
|
+
}), vf = ({
|
9373
9373
|
mode: e,
|
9374
9374
|
raw: t,
|
9375
9375
|
iconClassName: r
|
@@ -9381,7 +9381,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9381
9381
|
"dark:text-copy-accent-dark": e === "system"
|
9382
9382
|
},
|
9383
9383
|
r
|
9384
|
-
),
|
9384
|
+
), wf = ({
|
9385
9385
|
animated: e
|
9386
9386
|
}) => p({
|
9387
9387
|
"transition-opacity duration-300 ease-in-out": e
|
@@ -9405,15 +9405,15 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9405
9405
|
animated: v
|
9406
9406
|
}) => (h || (h = "primary"), r ? p(vn, t) : p(
|
9407
9407
|
vn,
|
9408
|
-
|
9408
|
+
hf({
|
9409
9409
|
mode: a,
|
9410
9410
|
variant: h,
|
9411
9411
|
noBackground: u,
|
9412
9412
|
truncate: m
|
9413
9413
|
}),
|
9414
|
-
|
9415
|
-
|
9416
|
-
|
9414
|
+
ff({ mode: a, noBackground: u, variant: h }),
|
9415
|
+
mf({ radius: y }),
|
9416
|
+
df({
|
9417
9417
|
type: e,
|
9418
9418
|
size: c,
|
9419
9419
|
labelRight: d,
|
@@ -9421,11 +9421,11 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9421
9421
|
align: g,
|
9422
9422
|
animated: v
|
9423
9423
|
}),
|
9424
|
-
|
9425
|
-
|
9426
|
-
|
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 }),
|
9427
9428
|
gf({ mode: a, variant: h, disabled: s }),
|
9428
|
-
yf({ mode: a, variant: h, disabled: s }),
|
9429
9429
|
{
|
9430
9430
|
"w-full": o,
|
9431
9431
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
@@ -9434,7 +9434,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9434
9434
|
"transition-[width] duration-300 ease-in": e === Zt && v
|
9435
9435
|
}),
|
9436
9436
|
t
|
9437
|
-
)),
|
9437
|
+
)), Ef = (e, t, r) => {
|
9438
9438
|
var a;
|
9439
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);
|
9440
9440
|
}, ma = Z.forwardRef((e, t) => {
|
@@ -9444,7 +9444,7 @@ const vn = "av-button", Zt = "icon", fa = "button", jr = "link", uf = ({
|
|
9444
9444
|
{
|
9445
9445
|
ref: t,
|
9446
9446
|
onClick: (s) => {
|
9447
|
-
|
9447
|
+
Ef(s, a, r);
|
9448
9448
|
},
|
9449
9449
|
...n
|
9450
9450
|
}
|
@@ -9494,13 +9494,13 @@ const oo = Z.forwardRef(
|
|
9494
9494
|
}
|
9495
9495
|
);
|
9496
9496
|
oo.displayName = "Button";
|
9497
|
-
function
|
9497
|
+
function kf() {
|
9498
9498
|
const e = R(!1);
|
9499
9499
|
return $(() => (e.current = !0, () => {
|
9500
9500
|
e.current = !1;
|
9501
9501
|
}), []), W(() => e.current, []);
|
9502
9502
|
}
|
9503
|
-
function
|
9503
|
+
function _f(e) {
|
9504
9504
|
return he(() => e.every((t) => t == null) ? () => {
|
9505
9505
|
} : (t) => {
|
9506
9506
|
e.forEach((r) => {
|
@@ -9508,7 +9508,7 @@ function Sf(e) {
|
|
9508
9508
|
});
|
9509
9509
|
}, [...e]);
|
9510
9510
|
}
|
9511
|
-
const
|
9511
|
+
const Sf = {
|
9512
9512
|
x: 0,
|
9513
9513
|
y: 0,
|
9514
9514
|
width: 0,
|
@@ -9519,7 +9519,7 @@ const Tf = {
|
|
9519
9519
|
right: 0
|
9520
9520
|
};
|
9521
9521
|
function vr(e) {
|
9522
|
-
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) => {
|
9523
9523
|
const l = c[0];
|
9524
9524
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
9525
9525
|
a.current && t() && s(l.contentRect);
|
@@ -9536,14 +9536,14 @@ const Bt = {
|
|
9536
9536
|
// w-8
|
9537
9537
|
large: 48
|
9538
9538
|
// w-12
|
9539
|
-
},
|
9539
|
+
}, Tf = {
|
9540
9540
|
small: 8 * 2,
|
9541
9541
|
// px-2 x 2
|
9542
9542
|
medium: 12 * 2,
|
9543
9543
|
// px-3 x 2
|
9544
9544
|
large: 16 * 2
|
9545
9545
|
// px-4 x 2
|
9546
|
-
},
|
9546
|
+
}, Cf = 2, If = 300, io = Z.forwardRef(
|
9547
9547
|
({
|
9548
9548
|
children: e,
|
9549
9549
|
disabled: t = !1,
|
@@ -9584,15 +9584,15 @@ const Bt = {
|
|
9584
9584
|
radius: v,
|
9585
9585
|
variant: w,
|
9586
9586
|
animated: S
|
9587
|
-
}), _ =
|
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]);
|
9588
9588
|
return Ne(() => {
|
9589
|
-
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`));
|
9590
9590
|
}, [J, P, u, l, S]), Ne(() => {
|
9591
9591
|
if (L && L.current && S) {
|
9592
9592
|
let B = Bt[u];
|
9593
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(() => {
|
9594
9594
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
9595
|
-
},
|
9595
|
+
}, If * 0.8))), B === Bt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
9596
9596
|
}
|
9597
9597
|
}, [
|
9598
9598
|
V,
|
@@ -9669,7 +9669,7 @@ try {
|
|
9669
9669
|
});
|
9670
9670
|
} catch {
|
9671
9671
|
}
|
9672
|
-
const
|
9672
|
+
const xf = Z.forwardRef(
|
9673
9673
|
({
|
9674
9674
|
children: e,
|
9675
9675
|
mode: t = "system",
|
@@ -9707,10 +9707,10 @@ const Rf = Z.forwardRef(
|
|
9707
9707
|
) });
|
9708
9708
|
}
|
9709
9709
|
);
|
9710
|
-
|
9711
|
-
const
|
9710
|
+
xf.displayName = "ButtonSort";
|
9711
|
+
const Rf = 200, Af = ({
|
9712
9712
|
string: e,
|
9713
|
-
idealLength: t =
|
9713
|
+
idealLength: t = Rf
|
9714
9714
|
}) => {
|
9715
9715
|
if (e.length <= t)
|
9716
9716
|
return { string: e, isTruncated: !1 };
|
@@ -9721,7 +9721,7 @@ const Af = 200, Nf = ({
|
|
9721
9721
|
string: e.slice(0, t + r),
|
9722
9722
|
isTruncated: !0
|
9723
9723
|
};
|
9724
|
-
},
|
9724
|
+
}, Nf = ({
|
9725
9725
|
children: e,
|
9726
9726
|
length: t = 200,
|
9727
9727
|
mode: r = "system",
|
@@ -9730,7 +9730,7 @@ const Af = 200, Nf = ({
|
|
9730
9730
|
const [n, s] = F(!1);
|
9731
9731
|
if (typeof e != "string")
|
9732
9732
|
return e;
|
9733
|
-
const { string: o, isTruncated: c } =
|
9733
|
+
const { string: o, isTruncated: c } = Af({
|
9734
9734
|
string: e,
|
9735
9735
|
idealLength: t
|
9736
9736
|
});
|
@@ -9764,7 +9764,7 @@ try {
|
|
9764
9764
|
});
|
9765
9765
|
} catch {
|
9766
9766
|
}
|
9767
|
-
const
|
9767
|
+
const Of = ({ content: e }) => /* @__PURE__ */ i(
|
9768
9768
|
no,
|
9769
9769
|
{
|
9770
9770
|
tail: !0,
|
@@ -9772,14 +9772,14 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9772
9772
|
copyToClipboard: e,
|
9773
9773
|
copyToClipboardFocusMode: "light",
|
9774
9774
|
className: "mt-3",
|
9775
|
-
children: /* @__PURE__ */ i(
|
9775
|
+
children: /* @__PURE__ */ i(Nf, { mode: "light", focusMode: "light", children: e })
|
9776
9776
|
}
|
9777
|
-
), En = 2,
|
9777
|
+
), En = 2, $f = nt(
|
9778
9778
|
() => import(
|
9779
9779
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9780
|
-
"./ChatBubbleAssistant.
|
9780
|
+
"./ChatBubbleAssistant.C2qF6aep.js"
|
9781
9781
|
)
|
9782
|
-
),
|
9782
|
+
), Pf = Z.memo(
|
9783
9783
|
({
|
9784
9784
|
role: e,
|
9785
9785
|
content: t,
|
@@ -9790,8 +9790,8 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9790
9790
|
const {
|
9791
9791
|
state: { restoring: s, streaming: o }
|
9792
9792
|
} = X(be);
|
9793
|
-
return e === dd && t ? /* @__PURE__ */ i(
|
9794
|
-
|
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,
|
9795
9795
|
{
|
9796
9796
|
role: e,
|
9797
9797
|
content: t,
|
@@ -9802,7 +9802,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9802
9802
|
}
|
9803
9803
|
) }) : null;
|
9804
9804
|
}
|
9805
|
-
),
|
9805
|
+
), Mf = () => {
|
9806
9806
|
const { messages: e } = lt(), t = e ? e.map((r, a) => r.role === Gt ? a : -1).filter((r) => r !== -1).pop() : -1;
|
9807
9807
|
return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
|
9808
9808
|
let n;
|
@@ -9818,7 +9818,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9818
9818
|
}), c = o && o.length > 0 ? o.filter(Boolean).join(`
|
9819
9819
|
`) : void 0, l = r.role === Gt && a === t;
|
9820
9820
|
return /* @__PURE__ */ i(
|
9821
|
-
|
9821
|
+
Pf,
|
9822
9822
|
{
|
9823
9823
|
role: r.role,
|
9824
9824
|
content: c,
|
@@ -9829,7 +9829,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9829
9829
|
s
|
9830
9830
|
);
|
9831
9831
|
}) }) : null;
|
9832
|
-
},
|
9832
|
+
}, Lf = () => {
|
9833
9833
|
const { isAuthenticated: e } = Ue(), { ref: t, inViewport: r } = Li(), a = R(null), n = R(null), {
|
9834
9834
|
state: { footerPosition: s, footerHeight: o, footerOffset: c }
|
9835
9835
|
} = X(sa), {
|
@@ -9850,7 +9850,7 @@ const $f = ({ content: e }) => /* @__PURE__ */ i(
|
|
9850
9850
|
}, [s, o, c]), /* @__PURE__ */ T(ue, { children: [
|
9851
9851
|
/* @__PURE__ */ T("div", { className: f, ref: a, children: [
|
9852
9852
|
/* @__PURE__ */ i(Ro, {}),
|
9853
|
-
/* @__PURE__ */ i(
|
9853
|
+
/* @__PURE__ */ i(Mf, {}),
|
9854
9854
|
/* @__PURE__ */ i("div", { ref: t, className: "scroll-marker" }),
|
9855
9855
|
/* @__PURE__ */ i("div", { ref: n, className: "pt-20" })
|
9856
9856
|
] }),
|
@@ -9978,7 +9978,7 @@ function co({
|
|
9978
9978
|
className: Ra({
|
9979
9979
|
extraClass: "mt-5"
|
9980
9980
|
}),
|
9981
|
-
children: /* @__PURE__ */ i(
|
9981
|
+
children: /* @__PURE__ */ i($h, { isComponent: e })
|
9982
9982
|
}
|
9983
9983
|
),
|
9984
9984
|
/* @__PURE__ */ i(
|
@@ -9992,7 +9992,7 @@ function co({
|
|
9992
9992
|
style: {
|
9993
9993
|
height: n
|
9994
9994
|
},
|
9995
|
-
children: /* @__PURE__ */ i(
|
9995
|
+
children: /* @__PURE__ */ i(Lf, {})
|
9996
9996
|
}
|
9997
9997
|
),
|
9998
9998
|
/* @__PURE__ */ i(Ch, { isComponent: e })
|
@@ -10007,51 +10007,51 @@ function co({
|
|
10007
10007
|
);
|
10008
10008
|
}
|
10009
10009
|
co.displayName = "App";
|
10010
|
-
const
|
10010
|
+
const sm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: co }, Symbol.toStringTag, { value: "Module" }));
|
10011
10011
|
export {
|
10012
|
-
|
10013
|
-
|
10012
|
+
Ff as $e,
|
10013
|
+
sm as App,
|
10014
10014
|
sh as ButtonScroll,
|
10015
10015
|
Zn as CHAT_SET_PROVIDER,
|
10016
10016
|
et as CHAT_SET_STATUS,
|
10017
10017
|
be as ChatContext,
|
10018
10018
|
Ge as ConfirmationPanel,
|
10019
10019
|
jt as E,
|
10020
|
-
|
10021
|
-
|
10022
|
-
|
10020
|
+
jf as Fe,
|
10021
|
+
Wf as Ge,
|
10022
|
+
zf as He,
|
10023
10023
|
aa as HistoryContext,
|
10024
10024
|
Ha as LazyToastContainerWrapper,
|
10025
|
-
|
10025
|
+
cf as Me,
|
10026
10026
|
xs as O,
|
10027
10027
|
no as Oe,
|
10028
10028
|
bc as Pe,
|
10029
10029
|
ht as R,
|
10030
10030
|
Ve as SERVICE_TYPES,
|
10031
|
-
|
10031
|
+
Gf as Ye,
|
10032
10032
|
gi as a,
|
10033
10033
|
hi as a$1,
|
10034
10034
|
Oe as at,
|
10035
10035
|
Li as b,
|
10036
10036
|
ps as getDefaultExportFromCjs,
|
10037
10037
|
Vi as i,
|
10038
|
-
|
10038
|
+
Xf as j,
|
10039
10039
|
es as mutateCall,
|
10040
10040
|
ra as n,
|
10041
|
-
|
10041
|
+
Zf as nt,
|
10042
10042
|
Is as o,
|
10043
10043
|
ki as p,
|
10044
10044
|
ci as p$1,
|
10045
|
-
|
10045
|
+
Kf as qe,
|
10046
10046
|
Xu as rr,
|
10047
10047
|
Ic as setNewProvider,
|
10048
|
-
|
10048
|
+
nm as showErrorToast,
|
10049
10049
|
Ys as showSuccessToast,
|
10050
10050
|
lt as useAiChat,
|
10051
|
-
|
10051
|
+
qf as useChangelogs,
|
10052
10052
|
ts as useChatsHistory,
|
10053
|
-
|
10054
|
-
|
10055
|
-
|
10053
|
+
Qf as useChatsUsage,
|
10054
|
+
Jf as useServerCapabilities,
|
10055
|
+
Yf as useUserChatStats,
|
10056
10056
|
Yt as useUserPreferences
|
10057
10057
|
};
|