@versini/sassysaint 8.118.4 → 8.119.0
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.Dspi4cmi.js → AboutChangelog.B3zToB4T.js} +2 -2
- package/dist/chunks/{AboutEntry.DxWZPlbg.js → AboutEntry.Dc0GMtzL.js} +7 -7
- package/dist/chunks/{App.yIuQGm0t.js → App.Bcw00dJK.js} +647 -646
- package/dist/chunks/{BubbleActions.BMYwxyEv.js → BubbleActions.BcwPpzhU.js} +3 -3
- package/dist/chunks/ButtonIconDelete.CASHORv6.js +523 -0
- package/dist/chunks/{Chart.C1IWoXDe.js → Chart.B0oqrdYo.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BKlO1McH.js → ChatBubbleAssistant.DAwx85Wd.js} +9 -6
- package/dist/chunks/{ChatBubbleUser.CSjDB1B9.js → ChatBubbleUser.BRTLYDmZ.js} +4 -4
- package/dist/chunks/HistoryDataGrid.Bg984Jd_.js +465 -0
- package/dist/chunks/HistoryEntry.4GpBDf9x.js +305 -0
- package/dist/chunks/InlineFilter.Cv_LUpTp.js +123 -0
- package/dist/chunks/{LoginEntry.BEPZiizw.js → LoginEntry.5bQhuYQl.js} +4 -4
- package/dist/chunks/{LogoEntry.BZFz5IRw.js → LogoEntry.CN5P16eA.js} +175 -163
- package/dist/chunks/{MemoriesEntry.C40K6l5F.js → MemoriesEntry.D0q1U5FD.js} +234 -206
- package/dist/chunks/{ProfileEntry.C0WTyHem.js → ProfileEntry.Ck-5SP70.js} +4 -4
- package/dist/chunks/{SettingsEntry.B1WFVdjg.js → SettingsEntry.CfB9DKIp.js} +5 -5
- package/dist/chunks/{UsageEntry.CPOickJC.js → UsageEntry.BCFJMOjQ.js} +5 -5
- package/dist/chunks/{_baseUniq.YXUy3_Q9.js → _baseUniq.DRTEXwBu.js} +1 -1
- package/dist/chunks/{arc.CgPKPJv0.js → arc.x_GRGNuD.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.D2ZUn_s6.js → architecture-U656AL7Q.DSfD0nUy.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.DbVJLkeI.js → architectureDiagram-VXUJARFQ.CAS-oDjc.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.DFlSEVyA.js → blockDiagram-VD42YOAC.P_XB2AgQ.js} +5 -5
- package/dist/chunks/{browser.DtDEL-3A.js → browser.oW1ZW8ge.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CiBMNtX8.js → c4Diagram-YG6GDRKO.Dc9Vyv3k.js} +2 -2
- package/dist/chunks/{channel.DS55bkfq.js → channel.TjlRRr3U.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.t3AfQtrb.js → chunk-4BX2VUAB.BwgmyLAX.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.tlGBBIP8.js → chunk-55IACEB6.Cgq1oeLK.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.DB-Y3GhQ.js → chunk-B4BG7PRW.Ds2wbzEG.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.CkwKVFLI.js → chunk-DI55MBZ5.Bft9jyaz.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.CRLAfQmx.js → chunk-FMBD7UC4.DF-Zr883.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.DF4bWkbp.js → chunk-QN33PNHL.BVMRH_Hs.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.BijmX3ar.js → chunk-QZHKN3VN.DS306ds1.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.BIvqaR0r.js → chunk-TZMSLE5B.Cl4RUaGp.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.SU5U-1P1.js → classDiagram-2ON5EDUG.DbFfjSp_.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.SU5U-1P1.js → classDiagram-v2-WZHVMYZB.DbFfjSp_.js} +2 -2
- package/dist/chunks/{clone.8clUx6ET.js → clone.B8XxgJj0.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.DnWtIsYd.js → cose-bilkent-S5V4N54A.CL-tsB7O.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.C8KeFvOQ.js → dagre-6UL2VRFP.7xKesqEK.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.DnzHPurw.js → diagram-PSM6KHXK.D6JNXJQr.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.DCKZbQSh.js → diagram-QEK2KX5R.VaJKE9Ih.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.lY2nb2ry.js → diagram-S2PKOQOG.BjCuqhPd.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.BYtHx1uZ.js → erDiagram-Q2GNP2WA.BYnxwTG-.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.G-nRLM7M.js → flowDiagram-NV44I4VS.DefWDma3.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.B7RwC1m-.js → ganttDiagram-JELNMOA3.BrEeaW2n.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.Chwk8Igs.js → gitGraph-F6HP7TQM.C4_YWAr0.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.BQpsCwST.js → gitGraphDiagram-NY62KEGX.GGrXKGya.js} +4 -4
- package/dist/chunks/{graph.toxuN_lw.js → graph.BxDrvENy.js} +2 -2
- package/dist/chunks/{index.KxPrp_tf.js → index.BMADibmh.js} +3 -3
- package/dist/chunks/{index.ChIqgESd.js → index.CR0NHbVR.js} +1 -1
- package/dist/chunks/{index.mDr9FsVI.js → index.CZRaE0eA.js} +1 -1
- package/dist/chunks/{index.7D5oQmQR.js → index.CsAjUl3G.js} +3 -3
- package/dist/chunks/{index.petd1VFV.js → index.DOwjLeiM.js} +1 -1
- package/dist/chunks/{index.D_muERB9.js → index.DS9SCH32.js} +1 -1
- package/dist/chunks/{index.Bt339Jho.js → index.DvThh-C6.js} +1 -1
- package/dist/chunks/{index.hGvmkGha.js → index.o4ZD5ALX.js} +2 -2
- package/dist/chunks/{index.BlDUpXR0.js → index.tqKeN7sl.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.DqwhVDNM.js → info-NVLQJR56.E0G9wIVE.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.Bz9PwgrD.js → infoDiagram-WHAUD3N6.CY9ADLsc.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.b8ugCUee.js → journeyDiagram-XKPGCS4Q.BZHhK7w4.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.ruPmZWrk.js → kanban-definition-3W4ZIXB7.DQSZD0Em.js} +2 -2
- package/dist/chunks/{layout.Bw1IU1i2.js → layout.DUh_4gWb.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.BgEYW9Yt.js → mermaid-parser.core.lAJFSSvC.js} +10 -10
- package/dist/chunks/{min.C98rd9wr.js → min.B3NH5ZNz.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.VWXpOB6F.js → mindmap-definition-VGOIOE7T.CVTcq_-S.js} +257 -232
- package/dist/chunks/{packet-BFZMPI3H.BYL6GQTI.js → packet-BFZMPI3H.CaaCaP6S.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.BbY5iD1e.js → pie-7BOR55EZ.Ctr5Wngs.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.CsOtW7r-.js → pieDiagram-ADFJNKIX.v0K5SYBL.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.7UFNI_vX.js → quadrantDiagram-AYHSOK5B.CSGhc5R-.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.DvagCir3.js → radar-NHE76QYJ.BYJioslS.js} +1 -1
- package/dist/chunks/{rehype-mermaid.hM-_EEUn.js → rehype-mermaid.CYJb7tO-.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.CBvrcwfU.js → requirementDiagram-UZGBJVZJ.07FdvPam.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DwPokg-1.js → sankeyDiagram-TZEHDZUN.BJQl-LVq.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.DTlYi-bq.js → sequenceDiagram-WL72ISMW.D3HP-wCt.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.B3zjLqs6.js → stateDiagram-FKZM4ZOC.uXuYKEnS.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.M0ePKl-7.js → stateDiagram-v2-4FDKWEC3.i7NR_lBC.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.QqZxgHc2.js → timeline-definition-IT6M3QCI.CfrxZtW7.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.BmCv7l6d.js → treemap-KMMF4GRG.D0E-EXib.js} +1 -1
- package/dist/chunks/{useMarkdown.ZHvHgCd8.js → useMarkdown.CVmi3L7b.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.CPjv7vTS.js → xychartDiagram-PRI3JC2R.BedGeb-X.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/chunks/ButtonIconDelete.BMqZFgu1.js +0 -326
- package/dist/chunks/ChatHistoryTable.B8dA3To0.js +0 -322
- package/dist/chunks/HistoryEntry.Bhv62llk.js +0 -333
- package/dist/chunks/useAnimatedHeight.3F4Xj7iE.js +0 -91
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as C, Fragment as B, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as v, useUserPreferences as A } from "./index.
|
|
3
|
-
import { ButtonIcon as h, IconCopied as S, IconCopy as I, ChatContext as _, IconBranch as M, TOAST_CHAT_BRANCHED as z } from "./LogoEntry.
|
|
2
|
+
import { n as v, useUserPreferences as A } from "./index.o4ZD5ALX.js";
|
|
3
|
+
import { ButtonIcon as h, IconCopied as S, IconCopy as I, ChatContext as _, IconBranch as M, TOAST_CHAT_BRANCHED as z } from "./LogoEntry.CN5P16eA.js";
|
|
4
4
|
import { useState as H, useRef as N, useCallback as g, useEffect as R, useContext as k } from "react";
|
|
5
|
-
import { ResponsiveTooltip as T, useAiChat as E, v4 as O, CHAT_RESET as L, CHAT_SET_ATTACHMENTS as U, CHAT_SET_STATUS as j, showSuccessToast as D, CHAT_SCROLL_TO_BOTTOM as F } from "./App.
|
|
5
|
+
import { ResponsiveTooltip as T, useAiChat as E, v4 as O, CHAT_RESET as L, CHAT_SET_ATTACHMENTS as U, CHAT_SET_STATUS as j, showSuccessToast as D, CHAT_SCROLL_TO_BOTTOM as F } from "./App.Bcw00dJK.js";
|
|
6
6
|
const P = ({ children: e, richText: r = !1, mode: a = "system", focusMode: l = "system" }) => {
|
|
7
7
|
const [o, c] = H(!1), n = N(null), p = g(async () => {
|
|
8
8
|
if (navigator.clipboard)
|
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
import c from "clsx";
|
|
2
|
+
import re, { createContext as se, useContext as ae, useLayoutEffect as q, useState as w, useCallback as I, useMemo as W, useId as ne, useRef as oe, useEffect as $ } from "react";
|
|
3
|
+
import { jsx as o, jsxs as D, Fragment as le } from "react/jsx-runtime";
|
|
4
|
+
import { CellWrapper as m, BlurEffects as R, ButtonIcon as P, IconSortUp as ie, IconSortDown as de, IconSort as ce, IconDelete as ue } from "./LogoEntry.CN5P16eA.js";
|
|
5
|
+
import { ResponsiveTooltip as ge } from "./App.Bcw00dJK.js";
|
|
6
|
+
const C = se({
|
|
7
|
+
mode: "system"
|
|
8
|
+
});
|
|
9
|
+
function Fe(e, r) {
|
|
10
|
+
return e ? c("contents", r) : c("flex flex-col", r);
|
|
11
|
+
}
|
|
12
|
+
function ze(e, r) {
|
|
13
|
+
const s = ae(C);
|
|
14
|
+
q(() => {
|
|
15
|
+
const a = e.current, t = s.columns && (s.stickyHeader || s.stickyFooter);
|
|
16
|
+
if (!a || !t || !s.setMeasuredColumnWidths)
|
|
17
|
+
return;
|
|
18
|
+
const n = a.querySelector('[role="row"]');
|
|
19
|
+
if (!n)
|
|
20
|
+
return;
|
|
21
|
+
const l = n.querySelectorAll('[role="cell"], [role="columnheader"], [role="gridcell"]');
|
|
22
|
+
if (l.length === 0)
|
|
23
|
+
return;
|
|
24
|
+
const d = () => {
|
|
25
|
+
const g = Array.from(l).map((i) => i.getBoundingClientRect().width);
|
|
26
|
+
s.setMeasuredColumnWidths?.(g);
|
|
27
|
+
};
|
|
28
|
+
d();
|
|
29
|
+
const u = new ResizeObserver(() => {
|
|
30
|
+
d();
|
|
31
|
+
});
|
|
32
|
+
u.observe(a);
|
|
33
|
+
for (const g of l)
|
|
34
|
+
u.observe(g);
|
|
35
|
+
return () => u.disconnect();
|
|
36
|
+
}, [
|
|
37
|
+
s.columns,
|
|
38
|
+
s.stickyHeader,
|
|
39
|
+
s.stickyFooter,
|
|
40
|
+
s.setMeasuredColumnWidths,
|
|
41
|
+
r
|
|
42
|
+
]);
|
|
43
|
+
}
|
|
44
|
+
const F = ({ mode: e }) => c({
|
|
45
|
+
"text-copy-light": e === "dark",
|
|
46
|
+
"text-copy-dark": e === "light",
|
|
47
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
48
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
49
|
+
}), be = ({ mode: e }) => c({
|
|
50
|
+
"bg-surface-darker": e === "dark" || e === "system",
|
|
51
|
+
"bg-surface-light": e === "light" || e === "alt-system",
|
|
52
|
+
"dark:bg-surface-light": e === "system",
|
|
53
|
+
"dark:bg-surface-darker": e === "alt-system"
|
|
54
|
+
}), V = ({ mode: e, hasBlur: r, sticky: s }) => c({
|
|
55
|
+
// Semi-transparent for blur effect.
|
|
56
|
+
"bg-surface-darkest/50": r && s && (e === "dark" || e === "system"),
|
|
57
|
+
"bg-surface-light/50": r && s && (e === "light" || e === "alt-system"),
|
|
58
|
+
"dark:bg-surface-light/50": r && s && e === "system",
|
|
59
|
+
"dark:bg-surface-darkest/50": r && s && e === "alt-system",
|
|
60
|
+
// Solid backgrounds.
|
|
61
|
+
"bg-surface-darkest": !r && (e === "dark" || e === "system"),
|
|
62
|
+
"bg-surface-light": !r && (e === "light" || e === "alt-system"),
|
|
63
|
+
"dark:bg-surface-light": !r && e === "system",
|
|
64
|
+
"dark:bg-surface-darkest": !r && e === "alt-system"
|
|
65
|
+
}), fe = ({ mode: e }) => c({
|
|
66
|
+
"border-table-dark": e === "dark" || e === "system",
|
|
67
|
+
"border-table-light": e === "light" || e === "alt-system",
|
|
68
|
+
"dark:border-table-light": e === "system",
|
|
69
|
+
"dark:border-table-dark": e === "alt-system"
|
|
70
|
+
}), he = ({ blurEffect: e }) => c({
|
|
71
|
+
"backdrop-blur-sm": e === R.SMALL,
|
|
72
|
+
"backdrop-blur-md": e === R.MEDIUM,
|
|
73
|
+
"backdrop-blur-lg": e === R.LARGE
|
|
74
|
+
}), ye = ({ mode: e }) => c("size-8", "align-[-0.125em]", "border-4", "inline-block animate-spin rounded-full border-solid border-current border-r-transparent motion-reduce:animate-[spin_1.5s_linear_infinite]", {
|
|
75
|
+
"text-copy-dark": e === "light",
|
|
76
|
+
"text-copy-light": e === "dark",
|
|
77
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system",
|
|
78
|
+
"text-copy-light dark:text-copy-dark": e === "system"
|
|
79
|
+
}), pe = ({ mode: e }) => ({
|
|
80
|
+
inner: "relative",
|
|
81
|
+
overlay: c("absolute inset-0 z-20 cursor-not-allowed", "backdrop-blur-xs bg-white/30 dark:bg-black/30"),
|
|
82
|
+
spinnerWrapper: c("absolute z-30 top-0 left-0 right-0 h-[min(100%,100vh)]", "flex items-center justify-center", "pointer-events-none"),
|
|
83
|
+
spinner: ye({
|
|
84
|
+
mode: e
|
|
85
|
+
})
|
|
86
|
+
}), ke = ({ mode: e, className: r, wrapperClassName: s, stickyHeader: a, stickyFooter: t, disabled: n, hasColumns: l }) => {
|
|
87
|
+
const d = n ? pe({
|
|
88
|
+
mode: e
|
|
89
|
+
}) : null, u = a || t;
|
|
90
|
+
return {
|
|
91
|
+
overlay: d?.overlay ?? "",
|
|
92
|
+
inner: d?.inner ?? "",
|
|
93
|
+
spinnerWrapper: d?.spinnerWrapper ?? "",
|
|
94
|
+
spinner: d?.spinner ?? "",
|
|
95
|
+
wrapper: c("not-prose relative w-full rounded-lg shadow-md", {
|
|
96
|
+
"overflow-x-auto": !u && !n,
|
|
97
|
+
"overflow-hidden flex flex-col": u || n
|
|
98
|
+
}, be({
|
|
99
|
+
mode: e
|
|
100
|
+
}), F({
|
|
101
|
+
mode: e
|
|
102
|
+
}), s),
|
|
103
|
+
scrollableContent: c("overflow-y-auto overflow-x-hidden rounded-[inherit] flex-1 min-h-0"),
|
|
104
|
+
grid: c("my-0 w-full text-left text-sm", l ? "grid" : "flex flex-col", r, F({
|
|
105
|
+
mode: e
|
|
106
|
+
}))
|
|
107
|
+
};
|
|
108
|
+
}, ve = ({ className: e, stickyHeader: r, mode: s, blurEffect: a, hasColumns: t }) => {
|
|
109
|
+
const n = !!(a && a !== R.NONE);
|
|
110
|
+
return t && !r ? c("contents", V({
|
|
111
|
+
mode: s,
|
|
112
|
+
hasBlur: n,
|
|
113
|
+
sticky: !!r
|
|
114
|
+
}), F({
|
|
115
|
+
mode: s
|
|
116
|
+
}), e) : c("flex flex-col", {
|
|
117
|
+
"absolute left-0 right-0 z-20 top-0 rounded-t-lg": r
|
|
118
|
+
}, V({
|
|
119
|
+
mode: s,
|
|
120
|
+
hasBlur: n,
|
|
121
|
+
sticky: !!r
|
|
122
|
+
}), F({
|
|
123
|
+
mode: s
|
|
124
|
+
}), r && he({
|
|
125
|
+
blurEffect: a
|
|
126
|
+
}), e);
|
|
127
|
+
}, me = ({ captionClassName: e, hasColumns: r }) => c("py-2 text-sm text-center font-bold", r && "col-span-full", e), Ce = ({ mode: e, className: r, cellWrapper: s }) => {
|
|
128
|
+
const a = "group grid items-center";
|
|
129
|
+
return s === m.HEADER || s === m.FOOTER ? c(a, r) : c(a, "border-b last:border-0", fe({
|
|
130
|
+
mode: e
|
|
131
|
+
}), {
|
|
132
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": e === "dark",
|
|
133
|
+
"hover:bg-table-dark-hover": e === "dark",
|
|
134
|
+
"odd:bg-table-light-odd even:bg-table-light-even": e === "light",
|
|
135
|
+
"hover:bg-table-light-hover": e === "light",
|
|
136
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": e === "system",
|
|
137
|
+
"hover:bg-table-dark-hover dark:hover:bg-table-light-hover": e === "system",
|
|
138
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": e === "alt-system",
|
|
139
|
+
"hover:bg-table-light-hover dark:hover:bg-table-dark-hover": e === "alt-system"
|
|
140
|
+
}, r);
|
|
141
|
+
}, U = ({ cellWrapper: e, className: r, compact: s, align: a, mode: t, borderLeft: n, borderRight: l }) => {
|
|
142
|
+
const d = e === m.HEADER;
|
|
143
|
+
return c(
|
|
144
|
+
// Base padding.
|
|
145
|
+
{
|
|
146
|
+
"px-2 py-1": s,
|
|
147
|
+
"px-4 py-3": !s
|
|
148
|
+
},
|
|
149
|
+
// Text alignment.
|
|
150
|
+
{
|
|
151
|
+
"text-left justify-start": a === "left" || !a,
|
|
152
|
+
"text-center justify-center": a === "center",
|
|
153
|
+
"text-right justify-end": a === "right"
|
|
154
|
+
},
|
|
155
|
+
// Header/footer specific styles.
|
|
156
|
+
{
|
|
157
|
+
"font-semibold": d
|
|
158
|
+
},
|
|
159
|
+
// Active row indicator.
|
|
160
|
+
"first:group-data-[active]:relative",
|
|
161
|
+
"first:group-data-[active]:before:absolute first:group-data-[active]:before:left-0 first:group-data-[active]:before:top-0 first:group-data-[active]:before:bottom-0 first:group-data-[active]:before:w-1",
|
|
162
|
+
"first:group-data-[active]:self-stretch first:group-data-[active]:flex first:group-data-[active]:items-center",
|
|
163
|
+
// Active indicator color based on theme mode.
|
|
164
|
+
{
|
|
165
|
+
"first:group-data-[active]:before:bg-table-active-dark": t === "dark",
|
|
166
|
+
"first:group-data-[active]:before:bg-table-active-light": t === "light",
|
|
167
|
+
"first:group-data-[active]:before:bg-table-active-dark dark:first:group-data-[active]:before:bg-table-active-light": t === "system",
|
|
168
|
+
"first:group-data-[active]:before:bg-table-active-light dark:first:group-data-[active]:before:bg-table-active-dark": t === "alt-system"
|
|
169
|
+
},
|
|
170
|
+
// Vertical borders.
|
|
171
|
+
{
|
|
172
|
+
"self-stretch flex items-center": n || l,
|
|
173
|
+
"border-l border-l-table-dark": n && t === "dark",
|
|
174
|
+
"border-l border-l-table-light": n && t === "light",
|
|
175
|
+
"border-l border-l-table-dark dark:border-l-table-light": n && t === "system",
|
|
176
|
+
"border-l border-l-table-light dark:border-l-table-dark": n && t === "alt-system",
|
|
177
|
+
"border-r border-r-table-dark": l && t === "dark",
|
|
178
|
+
"border-r border-r-table-light": l && t === "light",
|
|
179
|
+
"border-r border-r-table-dark dark:border-r-table-light": l && t === "system",
|
|
180
|
+
"border-r border-r-table-light dark:border-r-table-dark": l && t === "alt-system"
|
|
181
|
+
},
|
|
182
|
+
r
|
|
183
|
+
);
|
|
184
|
+
}, xe = (e) => e === m.HEADER ? "columnheader" : "gridcell";
|
|
185
|
+
const Be = ({ className: e, wrapperClassName: r, children: s, mode: a = "system", compact: t = !1, stickyHeader: n = !1, stickyFooter: l = !1, blurEffect: d = R.NONE, maxHeight: u, disabled: g = !1, columns: i, ...f }) => {
|
|
186
|
+
const [b, p] = w(0), [N, h] = w(0), [x, k] = w(0), [z, B] = w(0), [E, L] = w([]), M = I(() => p((y) => y + 1), []), j = I(() => p((y) => y - 1), []), A = I(() => h((y) => y + 1), []), G = I(() => h((y) => y - 1), []), J = b > 0, K = N > 0, H = n && J, S = l && K, [Q, X] = w(void 0), T = I((y) => {
|
|
187
|
+
X(y);
|
|
188
|
+
}, []), v = W(() => ke({
|
|
189
|
+
mode: a,
|
|
190
|
+
className: e,
|
|
191
|
+
wrapperClassName: r,
|
|
192
|
+
stickyHeader: H,
|
|
193
|
+
stickyFooter: S,
|
|
194
|
+
disabled: g,
|
|
195
|
+
hasColumns: !!i
|
|
196
|
+
}), [
|
|
197
|
+
a,
|
|
198
|
+
e,
|
|
199
|
+
r,
|
|
200
|
+
H,
|
|
201
|
+
S,
|
|
202
|
+
g,
|
|
203
|
+
i
|
|
204
|
+
]), Y = W(() => ({
|
|
205
|
+
mode: a,
|
|
206
|
+
compact: t,
|
|
207
|
+
stickyHeader: H,
|
|
208
|
+
stickyFooter: S,
|
|
209
|
+
blurEffect: d,
|
|
210
|
+
columns: i,
|
|
211
|
+
measuredColumnWidths: E,
|
|
212
|
+
setCaptionId: T,
|
|
213
|
+
registerHeader: M,
|
|
214
|
+
unregisterHeader: j,
|
|
215
|
+
registerFooter: A,
|
|
216
|
+
unregisterFooter: G,
|
|
217
|
+
setHeaderHeight: k,
|
|
218
|
+
setFooterHeight: B,
|
|
219
|
+
setMeasuredColumnWidths: L
|
|
220
|
+
}), [
|
|
221
|
+
a,
|
|
222
|
+
t,
|
|
223
|
+
H,
|
|
224
|
+
S,
|
|
225
|
+
d,
|
|
226
|
+
i,
|
|
227
|
+
E,
|
|
228
|
+
T,
|
|
229
|
+
M,
|
|
230
|
+
j,
|
|
231
|
+
A,
|
|
232
|
+
G
|
|
233
|
+
]), O = u ? {
|
|
234
|
+
maxHeight: typeof u == "number" ? `${u}px` : u
|
|
235
|
+
} : void 0, Z = {
|
|
236
|
+
...O,
|
|
237
|
+
paddingTop: H ? x : void 0,
|
|
238
|
+
paddingBottom: S ? z : void 0
|
|
239
|
+
}, ee = H || S, te = i ? {
|
|
240
|
+
gridTemplateColumns: i.join(" ")
|
|
241
|
+
} : void 0, _ = /* @__PURE__ */ o("div", {
|
|
242
|
+
role: "grid",
|
|
243
|
+
"aria-labelledby": Q,
|
|
244
|
+
className: v.grid,
|
|
245
|
+
style: te,
|
|
246
|
+
...f,
|
|
247
|
+
children: s
|
|
248
|
+
});
|
|
249
|
+
return /* @__PURE__ */ o(C.Provider, {
|
|
250
|
+
value: Y,
|
|
251
|
+
children: /* @__PURE__ */ D("div", {
|
|
252
|
+
className: v.inner,
|
|
253
|
+
children: [
|
|
254
|
+
g && /* @__PURE__ */ D(le, {
|
|
255
|
+
children: [
|
|
256
|
+
/* @__PURE__ */ o("div", {
|
|
257
|
+
className: v.overlay,
|
|
258
|
+
"aria-hidden": "true"
|
|
259
|
+
}),
|
|
260
|
+
/* @__PURE__ */ o("div", {
|
|
261
|
+
className: v.spinnerWrapper,
|
|
262
|
+
children: /* @__PURE__ */ o("div", {
|
|
263
|
+
className: v.spinner,
|
|
264
|
+
role: "status",
|
|
265
|
+
children: /* @__PURE__ */ o("span", {
|
|
266
|
+
className: "sr-only",
|
|
267
|
+
children: "Loading..."
|
|
268
|
+
})
|
|
269
|
+
})
|
|
270
|
+
})
|
|
271
|
+
]
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ o("div", {
|
|
274
|
+
className: v.wrapper,
|
|
275
|
+
style: O,
|
|
276
|
+
children: ee ? /* @__PURE__ */ o("div", {
|
|
277
|
+
className: v.scrollableContent,
|
|
278
|
+
style: Z,
|
|
279
|
+
children: _
|
|
280
|
+
}) : _
|
|
281
|
+
})
|
|
282
|
+
]
|
|
283
|
+
})
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
const Me = ({ className: e, children: r, align: s, borderLeft: a, borderRight: t, colSpan: n, style: l, ...d }) => /* @__PURE__ */ o(C.Consumer, {
|
|
287
|
+
children: ({ mode: u, compact: g, cellWrapper: i }) => {
|
|
288
|
+
const f = U({
|
|
289
|
+
cellWrapper: i,
|
|
290
|
+
className: e,
|
|
291
|
+
mode: u,
|
|
292
|
+
compact: g,
|
|
293
|
+
align: s,
|
|
294
|
+
borderLeft: a,
|
|
295
|
+
borderRight: t
|
|
296
|
+
}), b = xe(i), p = n && n > 1 ? {
|
|
297
|
+
...l,
|
|
298
|
+
gridColumn: `span ${n}`
|
|
299
|
+
} : l;
|
|
300
|
+
return /* @__PURE__ */ o("div", {
|
|
301
|
+
role: b,
|
|
302
|
+
className: f,
|
|
303
|
+
style: p,
|
|
304
|
+
...d,
|
|
305
|
+
children: r
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
function He({ children: e, mode: r = "system", className: s, active: a = !1, ref: t, ...n }) {
|
|
310
|
+
const l = a ? c("relative", "focus-within:static", "focus-within:after:border-transparent", "after:absolute", "after:content-['']", "after:border-b-2", "after:-bottom-1", "after:left-0", "after:right-0", {
|
|
311
|
+
"after:border-table-light": r === "dark",
|
|
312
|
+
"after:border-table-dark": r === "light",
|
|
313
|
+
"after:border-table-light dark:after:border-table-dark": r === "system",
|
|
314
|
+
"after:border-table-dark dark:after:border-table-light": r === "alt-system"
|
|
315
|
+
}) : "";
|
|
316
|
+
return /* @__PURE__ */ o("div", {
|
|
317
|
+
className: l,
|
|
318
|
+
children: /* @__PURE__ */ o(P, {
|
|
319
|
+
className: s,
|
|
320
|
+
ref: t,
|
|
321
|
+
mode: r,
|
|
322
|
+
radius: "small",
|
|
323
|
+
size: "small",
|
|
324
|
+
align: "center",
|
|
325
|
+
...n,
|
|
326
|
+
children: e
|
|
327
|
+
})
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
const je = ({ className: e, children: r, cellId: s, onSort: a, sortDirection: t, sortedCell: n, slotLeft: l, slotRight: d, buttonClassName: u, focusMode: g = "alt-system", align: i, ...f }) => {
|
|
331
|
+
const b = n === s, p = () => {
|
|
332
|
+
a && a(s, b && t ? t : void 0);
|
|
333
|
+
}, N = () => b && t === "asc" ? /* @__PURE__ */ o(ie, {
|
|
334
|
+
className: "size-4",
|
|
335
|
+
monotone: !0
|
|
336
|
+
}) : b && t === "desc" ? /* @__PURE__ */ o(de, {
|
|
337
|
+
className: "size-4",
|
|
338
|
+
monotone: !0
|
|
339
|
+
}) : /* @__PURE__ */ o(ce, {
|
|
340
|
+
className: "size-4",
|
|
341
|
+
monotone: !0
|
|
342
|
+
}), h = () => b && t === "asc" ? "ascending" : b && t === "desc" ? "descending" : "other";
|
|
343
|
+
return /* @__PURE__ */ o(C.Consumer, {
|
|
344
|
+
children: ({ mode: x, compact: k, cellWrapper: z }) => {
|
|
345
|
+
const B = U({
|
|
346
|
+
cellWrapper: z,
|
|
347
|
+
className: e,
|
|
348
|
+
mode: x,
|
|
349
|
+
compact: k,
|
|
350
|
+
align: i
|
|
351
|
+
}), E = c("flex", {
|
|
352
|
+
"justify-start": i === "left" || !i,
|
|
353
|
+
"justify-center": i === "center",
|
|
354
|
+
"justify-end": i === "right"
|
|
355
|
+
});
|
|
356
|
+
return /* @__PURE__ */ o("div", {
|
|
357
|
+
className: B,
|
|
358
|
+
role: "columnheader",
|
|
359
|
+
"aria-sort": h(),
|
|
360
|
+
...f,
|
|
361
|
+
children: /* @__PURE__ */ D("div", {
|
|
362
|
+
className: E,
|
|
363
|
+
children: [
|
|
364
|
+
l,
|
|
365
|
+
/* @__PURE__ */ o(He, {
|
|
366
|
+
active: b,
|
|
367
|
+
className: u,
|
|
368
|
+
onClick: p,
|
|
369
|
+
noBorder: !0,
|
|
370
|
+
focusMode: g,
|
|
371
|
+
mode: x,
|
|
372
|
+
labelRight: r,
|
|
373
|
+
children: N()
|
|
374
|
+
}),
|
|
375
|
+
d
|
|
376
|
+
]
|
|
377
|
+
})
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
};
|
|
382
|
+
const Se = ({ caption: e, captionClassName: r, className: s, children: a, ...t }) => {
|
|
383
|
+
const n = ne();
|
|
384
|
+
return /* @__PURE__ */ o(C.Consumer, {
|
|
385
|
+
children: (l) => /* @__PURE__ */ o(we, {
|
|
386
|
+
caption: e,
|
|
387
|
+
captionClassName: r,
|
|
388
|
+
captionId: n,
|
|
389
|
+
className: s,
|
|
390
|
+
ctx: l,
|
|
391
|
+
...t,
|
|
392
|
+
children: a
|
|
393
|
+
})
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
Se.displayName = "DataGridHeader";
|
|
397
|
+
const we = ({ caption: e, captionClassName: r, captionId: s, className: a, ctx: t, children: n, ...l }) => {
|
|
398
|
+
const d = !!t.columns, u = oe(null);
|
|
399
|
+
return $(() => (t.registerHeader?.(), () => {
|
|
400
|
+
t.unregisterHeader?.();
|
|
401
|
+
}), [
|
|
402
|
+
t.registerHeader,
|
|
403
|
+
t.unregisterHeader
|
|
404
|
+
]), $(() => (e && t.setCaptionId && t.setCaptionId(s), () => {
|
|
405
|
+
t.setCaptionId && t.setCaptionId(void 0);
|
|
406
|
+
}), [
|
|
407
|
+
e,
|
|
408
|
+
s,
|
|
409
|
+
t.setCaptionId
|
|
410
|
+
]), q(() => {
|
|
411
|
+
const g = u.current;
|
|
412
|
+
if (!g || !t.stickyHeader || !t.setHeaderHeight)
|
|
413
|
+
return;
|
|
414
|
+
const i = new ResizeObserver((f) => {
|
|
415
|
+
const b = f[0]?.borderBoxSize?.[0]?.blockSize;
|
|
416
|
+
b !== void 0 && t.setHeaderHeight?.(b);
|
|
417
|
+
});
|
|
418
|
+
return i.observe(g), () => i.disconnect();
|
|
419
|
+
}, [
|
|
420
|
+
t.stickyHeader,
|
|
421
|
+
t.setHeaderHeight
|
|
422
|
+
]), /* @__PURE__ */ o(C.Provider, {
|
|
423
|
+
value: {
|
|
424
|
+
...t,
|
|
425
|
+
cellWrapper: m.HEADER
|
|
426
|
+
},
|
|
427
|
+
children: /* @__PURE__ */ D("div", {
|
|
428
|
+
ref: u,
|
|
429
|
+
role: "rowgroup",
|
|
430
|
+
className: ve({
|
|
431
|
+
className: a,
|
|
432
|
+
stickyHeader: t.stickyHeader,
|
|
433
|
+
mode: t.mode,
|
|
434
|
+
blurEffect: t.blurEffect,
|
|
435
|
+
hasColumns: d
|
|
436
|
+
}),
|
|
437
|
+
...l,
|
|
438
|
+
children: [
|
|
439
|
+
e && /* @__PURE__ */ o("div", {
|
|
440
|
+
id: s,
|
|
441
|
+
className: me({
|
|
442
|
+
captionClassName: r,
|
|
443
|
+
hasColumns: d
|
|
444
|
+
}),
|
|
445
|
+
children: e
|
|
446
|
+
}),
|
|
447
|
+
n
|
|
448
|
+
]
|
|
449
|
+
})
|
|
450
|
+
});
|
|
451
|
+
};
|
|
452
|
+
const Ae = ({ className: e, children: r, active: s, style: a, ...t }) => {
|
|
453
|
+
const n = re.Children.count(r);
|
|
454
|
+
return /* @__PURE__ */ o(C.Consumer, {
|
|
455
|
+
children: ({ mode: l, cellWrapper: d, stickyHeader: u, stickyFooter: g, columns: i, measuredColumnWidths: f }) => {
|
|
456
|
+
const b = d === m.HEADER && u, p = d === m.FOOTER && g, N = b || p;
|
|
457
|
+
let h;
|
|
458
|
+
return i ? N ? f && f.length === i.length && f.some((k) => k > 0) ? h = {
|
|
459
|
+
gridTemplateColumns: f.map((k) => `${k}px`).join(" ")
|
|
460
|
+
} : h = {
|
|
461
|
+
gridTemplateColumns: i.join(" ")
|
|
462
|
+
} : h = {
|
|
463
|
+
gridColumn: "1 / -1",
|
|
464
|
+
gridTemplateColumns: "subgrid"
|
|
465
|
+
} : h = {
|
|
466
|
+
gridTemplateColumns: `repeat(${n}, minmax(0, 1fr))`
|
|
467
|
+
}, /* @__PURE__ */ o("div", {
|
|
468
|
+
role: "row",
|
|
469
|
+
className: Ce({
|
|
470
|
+
mode: l,
|
|
471
|
+
className: e,
|
|
472
|
+
cellWrapper: d
|
|
473
|
+
}),
|
|
474
|
+
style: {
|
|
475
|
+
...h,
|
|
476
|
+
...a
|
|
477
|
+
},
|
|
478
|
+
"data-active": s || void 0,
|
|
479
|
+
...t,
|
|
480
|
+
children: r
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
}, Ge = ({
|
|
485
|
+
label: e,
|
|
486
|
+
disabled: r,
|
|
487
|
+
onClick: s
|
|
488
|
+
}) => /* @__PURE__ */ o(
|
|
489
|
+
ge,
|
|
490
|
+
{
|
|
491
|
+
label: e,
|
|
492
|
+
placement: "top",
|
|
493
|
+
trigger: /* @__PURE__ */ o(
|
|
494
|
+
P,
|
|
495
|
+
{
|
|
496
|
+
noBorder: !0,
|
|
497
|
+
variant: "primary",
|
|
498
|
+
label: e,
|
|
499
|
+
disabled: r,
|
|
500
|
+
onClick: s,
|
|
501
|
+
children: /* @__PURE__ */ o(
|
|
502
|
+
ue,
|
|
503
|
+
{
|
|
504
|
+
size: "size-3",
|
|
505
|
+
monotone: !0,
|
|
506
|
+
className: "text-copy-error-dark dark:text-copy-error-light"
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
}
|
|
510
|
+
)
|
|
511
|
+
}
|
|
512
|
+
);
|
|
513
|
+
export {
|
|
514
|
+
Ge as ButtonIconDelete,
|
|
515
|
+
Be as DataGrid,
|
|
516
|
+
Me as DataGridCell,
|
|
517
|
+
je as DataGridCellSort,
|
|
518
|
+
C as DataGridContext,
|
|
519
|
+
Se as DataGridHeader,
|
|
520
|
+
Ae as DataGridRow,
|
|
521
|
+
Fe as getBodyClass,
|
|
522
|
+
ze as useColumnMeasurement
|
|
523
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Pp } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultExportFromCjs as dn, isProbablyMobile as Op } from "./App.
|
|
2
|
+
import { getDefaultExportFromCjs as dn, isProbablyMobile as Op } from "./App.Bcw00dJK.js";
|
|
3
3
|
import Lp, { useMemo as Ep } from "react";
|
|
4
|
-
import { TRIMESTERS_SHORT as Ip, TRIMESTERS as on, TIME_RANGES as ls, TIME_RANGE_LABELS as an } from "./LogoEntry.
|
|
4
|
+
import { TRIMESTERS_SHORT as Ip, TRIMESTERS as on, TIME_RANGES as ls, TIME_RANGE_LABELS as an } from "./LogoEntry.CN5P16eA.js";
|
|
5
5
|
var hs = { exports: {} }, Dp = hs.exports, nn;
|
|
6
6
|
function Bp() {
|
|
7
7
|
return nn || (nn = 1, (function(Ae, pe) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as vt } from "react/jsx-runtime";
|
|
2
|
-
import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.
|
|
3
|
-
import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.
|
|
2
|
+
import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.o4ZD5ALX.js";
|
|
3
|
+
import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.Bcw00dJK.js";
|
|
4
4
|
import Zt from "clsx";
|
|
5
5
|
import fs, { useState as Ae, useEffect as Jt, useContext as St } from "react";
|
|
6
|
-
import { useMarkdown as hs } from "./useMarkdown.
|
|
7
|
-
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.
|
|
8
|
-
import { BubbleActions as ms } from "./BubbleActions.
|
|
6
|
+
import { useMarkdown as hs } from "./useMarkdown.CVmi3L7b.js";
|
|
7
|
+
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.CN5P16eA.js";
|
|
8
|
+
import { BubbleActions as ms } from "./BubbleActions.BcwPpzhU.js";
|
|
9
9
|
const Me = {
|
|
10
10
|
isEmpty: !0
|
|
11
11
|
};
|
|
@@ -2804,7 +2804,10 @@ function xa(e, t = !0) {
|
|
|
2804
2804
|
duration: 2,
|
|
2805
2805
|
// Easing function: starts fast and decelerates toward the end.
|
|
2806
2806
|
ease: "easeOut",
|
|
2807
|
-
|
|
2807
|
+
/**
|
|
2808
|
+
* Callback invoked on each animation frame with the latest interpolated
|
|
2809
|
+
* value.
|
|
2810
|
+
*/
|
|
2808
2811
|
onUpdate(c) {
|
|
2809
2812
|
s(Math.floor(c));
|
|
2810
2813
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, Fragment as S, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import { Bubble as k } from "./App.
|
|
3
|
-
import { Button as C } from "./LogoEntry.
|
|
2
|
+
import { Bubble as k } from "./App.Bcw00dJK.js";
|
|
3
|
+
import { Button as C } from "./LogoEntry.CN5P16eA.js";
|
|
4
4
|
import { useState as H, useMemo as m, isValidElement as T, useEffect as O } from "react";
|
|
5
|
-
import { useMarkdown as w } from "./useMarkdown.
|
|
6
|
-
import { BubbleCopyToClipboard as I } from "./BubbleActions.
|
|
5
|
+
import { useMarkdown as w } from "./useMarkdown.CVmi3L7b.js";
|
|
6
|
+
import { BubbleCopyToClipboard as I } from "./BubbleActions.BcwPpzhU.js";
|
|
7
7
|
const L = 200, h = ({ string: e, idealLength: r = L }) => {
|
|
8
8
|
if (e.length <= r)
|
|
9
9
|
return {
|