@versini/sassysaint 8.113.0 → 8.114.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.Ca_-0R2Z.js → AboutChangelog.BRKQCkR7.js} +2 -2
- package/dist/chunks/{AboutEntry.d0wBsNrA.js → AboutEntry.DJiEOY0P.js} +7 -7
- package/dist/chunks/{App.Cq8qzFk_.js → App.BAM2I5AW.js} +209 -206
- package/dist/chunks/{Bubble.Cv3jM5GI.js → Bubble.BVVtityP.js} +1 -1
- package/dist/chunks/{ButtonIconDelete.DLEr4aRh.js → ButtonIconDelete.7y-gm-Dt.js} +2 -2
- package/dist/chunks/{Chart.DtaEPJXs.js → Chart.DtjM-Aet.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CJ8KkIfU.js → ChatBubbleAssistant.BYoRcC_t.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.BqD9i861.js → ChatBubbleUser._O3tGQOo.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BsiGSi8P.js → ChatHistoryTable.B4Bkgt-a.js} +11 -11
- package/dist/chunks/{HistoryEntry.DwDFj_Ul.js → HistoryEntry.kjIxebIy.js} +38 -38
- package/dist/chunks/{LoginEntry.BobCLcqT.js → LoginEntry.CVyZjMRf.js} +4 -4
- package/dist/chunks/{LogoEntry.Bmkirjfi.js → LogoEntry.DsjEGI9Q.js} +212 -212
- package/dist/chunks/{MemoriesEntry.DJqg-T1a.js → MemoriesEntry.pWnmnsBR.js} +5 -5
- package/dist/chunks/{ProfileEntry.CmxgoGnW.js → ProfileEntry.CUV-9iMm.js} +4 -4
- package/dist/chunks/{SettingsEntry.DHDvN-1t.js → SettingsEntry.D7f2JSbh.js} +21 -21
- package/dist/chunks/{UsageEntry.BDfnFUrH.js → UsageEntry.Zc_UQH0X.js} +5 -5
- package/dist/chunks/{_baseUniq.Dqe5_Toi.js → _baseUniq.Dz8vqFYn.js} +1 -1
- package/dist/chunks/{arc.CGZV-MjU.js → arc.Cel1vAaw.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.C90Ax7My.js → architecture-U656AL7Q.Bau_6x2T.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.C0rS0fWw.js → architectureDiagram-VXUJARFQ.CTJCoMJR.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.DznxMf4F.js → blockDiagram-VD42YOAC.C1fZF2Qi.js} +5 -5
- package/dist/chunks/{browser.BnaQHHqz.js → browser.IFlLSBVr.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CWhiqagE.js → c4Diagram-YG6GDRKO.DxfEXSDw.js} +2 -2
- package/dist/chunks/{channel.BB9TnGcL.js → channel.Crqqf8xS.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.7Zy44KUT.js → chunk-4BX2VUAB.B1sp6OG-.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.Lg0HIhiW.js → chunk-55IACEB6.7jeAOT6R.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW._kvdklxD.js → chunk-B4BG7PRW.DpbI4cYu.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.ClpeQBli.js → chunk-DI55MBZ5.BiaDWUoQ.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.CqySj1TF.js → chunk-FMBD7UC4.BXyTIYDT.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.AHj100hS.js → chunk-QN33PNHL.CN1KQ5dZ.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.OZ_ibyKi.js → chunk-QZHKN3VN.Dy4HzwJh.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.BA1BUwQ7.js → chunk-TZMSLE5B.8O_SYqSk.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.CuY8-09E.js → classDiagram-2ON5EDUG.C6SjOQZA.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.CuY8-09E.js → classDiagram-v2-WZHVMYZB.C6SjOQZA.js} +2 -2
- package/dist/chunks/{clone.WhR2JIG7.js → clone.kHBv66Fv.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.BcOQBmqz.js → cose-bilkent-S5V4N54A.CfZ8BOz7.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.Cxd9fG-F.js → dagre-6UL2VRFP.CvznJZiK.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.CLlexIci.js → diagram-PSM6KHXK.DrCu00Da.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.BTEc1ujY.js → diagram-QEK2KX5R.bE9TmGHp.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.CbTML28c.js → diagram-S2PKOQOG.DEy1COfR.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.Df1MoHo8.js → erDiagram-Q2GNP2WA.D8b03MLg.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.jpS_I-dM.js → flowDiagram-NV44I4VS.DInwRk_j.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.Oku1ntVE.js → ganttDiagram-JELNMOA3.Dybk4mrA.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.D89wWij9.js → gitGraph-F6HP7TQM.CxG_IW1H.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.BptpVeuk.js → gitGraphDiagram-NY62KEGX.CeGGEPgi.js} +4 -4
- package/dist/chunks/{graph.Cj535hCW.js → graph.DxS0Bwc6.js} +2 -2
- package/dist/chunks/{index.Q9yZjdlK.js → index.BioJzCYL.js} +1 -1
- package/dist/chunks/{index.BdwPaWcz.js → index.BkomSwOE.js} +604 -554
- package/dist/chunks/{index.1ELMiZ8D.js → index.BodQYsJf.js} +3 -3
- package/dist/chunks/{index.BaCt_uGv.js → index.C5NafzGQ.js} +1 -1
- package/dist/chunks/{index.DWX-wHHb.js → index.Co-f17DV.js} +1 -1
- package/dist/chunks/{index.BWr_28b7.js → index.D85YI7Wl.js} +1 -1
- package/dist/chunks/{index.CM45pRF7.js → index.Dye0BS6x.js} +1 -1
- package/dist/chunks/{index.z-5IhSKr.js → index.kZl7F18r.js} +3 -3
- package/dist/chunks/{index.ycTAFvKg.js → index.pc6V2BBc.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.oTyx52uE.js → info-NVLQJR56.gbsK-wAt.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.g6JDcDNU.js → infoDiagram-WHAUD3N6.B1L4Txav.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.f_92qAl0.js → journeyDiagram-XKPGCS4Q.CzGFwIGW.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.B3gL60Q9.js → kanban-definition-3W4ZIXB7.D510ik0K.js} +2 -2
- package/dist/chunks/{layout.BLvY5Ig2.js → layout.BbStGyH7.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.DST2gLCf.js → mermaid-parser.core.DLoOBoS2.js} +10 -10
- package/dist/chunks/{min.DOBvLEmc.js → min.C2iTESft.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.CK488S2A.js → mindmap-definition-VGOIOE7T.BJ7Xufd2.js} +4 -4
- package/dist/chunks/{packet-BFZMPI3H.CF4QtBQx.js → packet-BFZMPI3H.CadD0Dpw.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.B93_9bCD.js → pie-7BOR55EZ.CmGOMfn4.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.C_yA28Ld.js → pieDiagram-ADFJNKIX.DvO6qHxs.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.ufnw7lik.js → quadrantDiagram-AYHSOK5B.BYidVb51.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.D7PBakm5.js → radar-NHE76QYJ.Bj6P60wg.js} +1 -1
- package/dist/chunks/{rehype-mermaid.8n0pbfjI.js → rehype-mermaid.B4U14ID3.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.Uc5GMBA0.js → requirementDiagram-UZGBJVZJ.CCDdZAAy.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BLq90Q-Y.js → sankeyDiagram-TZEHDZUN.CMA4B14I.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.CUq7bUmz.js → sequenceDiagram-WL72ISMW.JdF7_fNB.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.DaWP7cRp.js → stateDiagram-FKZM4ZOC.CTOT4T2A.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.CLTyxBua.js → stateDiagram-v2-4FDKWEC3.DcDToOq5.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.BZbALyFR.js → timeline-definition-IT6M3QCI.AOnuXGL7.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.B4HMZPBF.js → treemap-KMMF4GRG.h1nXfThB.js} +1 -1
- package/dist/chunks/{useMarkdown.BXgiegIf.js → useMarkdown.C3lDppOG.js} +942 -874
- package/dist/chunks/{xychartDiagram-PRI3JC2R.CZybyhJi.js → xychartDiagram-PRI3JC2R.BHkiS_uf.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { ButtonIcon as N, IconCopied as $, IconCopy as E } from "./LogoEntry.
|
|
2
|
+
import { ButtonIcon as N, IconCopied as $, IconCopy as E } from "./LogoEntry.DsjEGI9Q.js";
|
|
3
3
|
import { useState as z, useEffect as j } from "react";
|
|
4
4
|
import t from "clsx";
|
|
5
5
|
const u = "av-bubble";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s, jsxs as m, Fragment as C } from "react/jsx-runtime";
|
|
2
2
|
import o from "clsx";
|
|
3
|
-
import { ButtonIcon as x, TableCellSortDirections as k, IconSortUp as w, IconSortDown as N, IconSort as T, IconDelete as W } from "./LogoEntry.
|
|
3
|
+
import { ButtonIcon as x, TableCellSortDirections as k, IconSortUp as w, IconSortDown as N, IconSort as T, IconDelete as W } from "./LogoEntry.DsjEGI9Q.js";
|
|
4
4
|
import R, { useContext as y } from "react";
|
|
5
|
-
import { ResponsiveTooltip as S } from "./App.
|
|
5
|
+
import { ResponsiveTooltip as S } from "./App.BAM2I5AW.js";
|
|
6
6
|
function z({ children: e, mode: t = "system", className: r, active: a = !1, ref: l, ...n }) {
|
|
7
7
|
const c = a ? o("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", {
|
|
8
8
|
"after:border-table-light": t === "dark",
|
|
@@ -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.BAM2I5AW.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.DsjEGI9Q.js";
|
|
5
5
|
var hs = { exports: {} }, Dp = hs.exports, nn;
|
|
6
6
|
function Bp() {
|
|
7
7
|
return nn || (nn = 1, (function(Ae, pe) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as rs } 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, AsyncBubble as cs } from "./App.
|
|
2
|
+
import { n as as, useUserPreferences as os, formatTimestamp as vt } from "./index.BkomSwOE.js";
|
|
3
|
+
import { numberFormatter as ls, pluralize as us, AsyncBubble as cs } from "./App.BAM2I5AW.js";
|
|
4
4
|
import Ht from "clsx";
|
|
5
5
|
import fs, { useState as Ae, useEffect as Zt, useContext as Vt } from "react";
|
|
6
|
-
import { useMarkdown as hs } from "./useMarkdown.
|
|
7
|
-
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.
|
|
6
|
+
import { useMarkdown as hs } from "./useMarkdown.C3lDppOG.js";
|
|
7
|
+
import { ChatContext as ds, AppContext as ps } from "./LogoEntry.DsjEGI9Q.js";
|
|
8
8
|
const Me = {
|
|
9
9
|
isEmpty: !0
|
|
10
10
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, Fragment as C, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import { Button as b } from "./LogoEntry.
|
|
2
|
+
import { Button as b } from "./LogoEntry.DsjEGI9Q.js";
|
|
3
3
|
import { useState as k, useMemo as m, isValidElement as T, useEffect as H } from "react";
|
|
4
|
-
import { useMarkdown as h } from "./useMarkdown.
|
|
5
|
-
import { AsyncBubble as M } from "./App.
|
|
4
|
+
import { useMarkdown as h } from "./useMarkdown.C3lDppOG.js";
|
|
5
|
+
import { AsyncBubble as M } from "./App.BAM2I5AW.js";
|
|
6
6
|
const O = 200, w = ({ string: e, idealLength: r = O }) => {
|
|
7
7
|
if (e.length <= r)
|
|
8
8
|
return {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { y as T,
|
|
3
|
-
import { IconCloseLight as D, CARDS as B, ButtonIcon as M, IconRestore as z, IconStarInCircle as _, IconStarInCircleLight as $ } from "./LogoEntry.
|
|
2
|
+
import { y as T, V as N, INFINITE_SCROLL_THRESHOLD as L } from "./index.BkomSwOE.js";
|
|
3
|
+
import { IconCloseLight as D, CARDS as B, ButtonIcon as M, IconRestore as z, IconStarInCircle as _, IconStarInCircleLight as $ } from "./LogoEntry.DsjEGI9Q.js";
|
|
4
4
|
import { useState as Y, Fragment as K } from "react";
|
|
5
5
|
import i from "clsx";
|
|
6
|
-
import { Table as W, TableHead as G, TableRow as C, TableBody as H, TableCell as o, TableCellSort as w, ButtonIconDelete as
|
|
7
|
-
import { pluralize as A, ResponsiveTooltip as k, numberFormatter as
|
|
6
|
+
import { Table as W, TableHead as G, TableRow as C, TableBody as H, TableCell as o, TableCellSort as w, ButtonIconDelete as V } from "./ButtonIconDelete.7y-gm-Dt.js";
|
|
7
|
+
import { pluralize as A, ResponsiveTooltip as k, numberFormatter as j, isProbablyMobile as F } from "./App.BAM2I5AW.js";
|
|
8
8
|
const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
9
9
|
"border-border-information": t === "information",
|
|
10
10
|
"border-border-warning": t === "warning",
|
|
@@ -95,7 +95,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
95
95
|
isFiltered: E = !1,
|
|
96
96
|
isSearchActive: S = !1
|
|
97
97
|
}) => {
|
|
98
|
-
const y =
|
|
98
|
+
const y = F() ? Z : ee, I = (r) => {
|
|
99
99
|
switch (r) {
|
|
100
100
|
case l.ROW:
|
|
101
101
|
return /* @__PURE__ */ e(o, { className: "sr-only", children: "Row" }, r);
|
|
@@ -140,7 +140,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
140
140
|
default:
|
|
141
141
|
return null;
|
|
142
142
|
}
|
|
143
|
-
},
|
|
143
|
+
}, P = (r, s, g) => {
|
|
144
144
|
switch (r) {
|
|
145
145
|
case l.ROW:
|
|
146
146
|
return /* @__PURE__ */ e(o, { children: g + 1 }, r);
|
|
@@ -157,7 +157,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
157
157
|
r
|
|
158
158
|
);
|
|
159
159
|
case l.SUMMARY: {
|
|
160
|
-
const x = s.similarityScore !== void 0 && s.similarityScore !== null ? Math.round(s.similarityScore * 100) : null,
|
|
160
|
+
const x = s.similarityScore !== void 0 && s.similarityScore !== null ? Math.round(s.similarityScore * 100) : null, v = x !== null && x < 40 ? "warning" : "success", U = s.keywordMatch === !0;
|
|
161
161
|
return /* @__PURE__ */ e(
|
|
162
162
|
o,
|
|
163
163
|
{
|
|
@@ -173,7 +173,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
173
173
|
x !== null && /* @__PURE__ */ e(
|
|
174
174
|
R,
|
|
175
175
|
{
|
|
176
|
-
variant:
|
|
176
|
+
variant: v,
|
|
177
177
|
label: `${x}% semantic`
|
|
178
178
|
}
|
|
179
179
|
),
|
|
@@ -191,7 +191,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
191
191
|
{
|
|
192
192
|
className: i("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
193
193
|
align: "right",
|
|
194
|
-
children: s.tokenUsage ?
|
|
194
|
+
children: s.tokenUsage ? j.format(s.tokenUsage) : "0"
|
|
195
195
|
},
|
|
196
196
|
r
|
|
197
197
|
);
|
|
@@ -247,7 +247,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
247
247
|
}
|
|
248
248
|
),
|
|
249
249
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
250
|
+
V,
|
|
251
251
|
{
|
|
252
252
|
label: "Delete chat",
|
|
253
253
|
disabled: !1,
|
|
@@ -280,7 +280,7 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
280
280
|
/* @__PURE__ */ e(H, { children: u && t.length === 0 ? /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(o, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, n).map((r, s) => r?.summary ? /* @__PURE__ */ c(K, { children: [
|
|
281
281
|
s === n - L && /* @__PURE__ */ e("tr", { ref: p }),
|
|
282
282
|
/* @__PURE__ */ e(C, { children: y.map(
|
|
283
|
-
(g) =>
|
|
283
|
+
(g) => P(g, r, s)
|
|
284
284
|
) })
|
|
285
285
|
] }, `${B.HISTORY.TITLE}-${r.id}-${s}`) : null) })
|
|
286
286
|
]
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as Q, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as le, graphQLRequest as ce, SERVICE_TYPES as de, ACTION_SORT as he,
|
|
3
|
-
import { HistoryContext as te, ChatContext as Te, TableCellSortDirections as c, APP_CLASSNAME as ge, TOAST_CHAT_DELETED as Ae, HISTORY_TITLE as Ee, IconSearch as _e, Button as De } from "./LogoEntry.
|
|
4
|
-
import { Card as Le } from "./index.
|
|
5
|
-
import { useAiChat as
|
|
6
|
-
import { TextInput as Me } from "./index.
|
|
7
|
-
import
|
|
8
|
-
import { useRef as M, useState as D, useContext as X, useCallback as
|
|
2
|
+
import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as le, graphQLRequest as ce, SERVICE_TYPES as de, ACTION_SORT as he, V as me, LOCAL_STORAGE_SEARCH as ue, LOCAL_STORAGE_FAVORITES_ONLY as Ce, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Se, useUserChatStats as ye, ACTION_SEARCH as pe } from "./index.BkomSwOE.js";
|
|
3
|
+
import { HistoryContext as te, ChatContext as Te, TableCellSortDirections as c, APP_CLASSNAME as ge, TOAST_CHAT_DELETED as Ae, HISTORY_TITLE as Ee, IconSearch as _e, Button as De } from "./LogoEntry.DsjEGI9Q.js";
|
|
4
|
+
import { Card as Le } from "./index.Co-f17DV.js";
|
|
5
|
+
import { useAiChat as Oe, useLocalStorage as h, LazyToastContainerWrapper as be, v4 as ke, CHAT_RESET as ve, CHAT_SET_ATTACHMENTS as Re, CHAT_SET_STATUS as xe, showErrorToast as Ie, ConfirmationPanel as we, Panel as He, debounce as Ne, Toggle as $, ButtonCancel as Fe } from "./App.BAM2I5AW.js";
|
|
6
|
+
import { TextInput as Me } from "./index.Dye0BS6x.js";
|
|
7
|
+
import Ve from "clsx";
|
|
8
|
+
import { useRef as M, useState as D, useContext as X, useCallback as V, Suspense as Ge, lazy as ze, useEffect as Pe } from "react";
|
|
9
9
|
const Ue = ze(
|
|
10
10
|
() => import(
|
|
11
11
|
/* webpackChunkName: "history-table" */
|
|
12
|
-
"./ChatHistoryTable.
|
|
12
|
+
"./ChatHistoryTable.B4Bkgt-a.js"
|
|
13
13
|
).then((m) => ({ default: m.ChatHistoryTable }))
|
|
14
14
|
), Be = ({
|
|
15
15
|
filteredHistory: m,
|
|
16
16
|
onOpenChange: y,
|
|
17
17
|
mutate: p,
|
|
18
18
|
isLoading: L = !1,
|
|
19
|
-
totalHistoryCount:
|
|
20
|
-
isFiltered:
|
|
21
|
-
isSearchActive:
|
|
19
|
+
totalHistoryCount: O,
|
|
20
|
+
isFiltered: G = !1,
|
|
21
|
+
isSearchActive: b = !1,
|
|
22
22
|
requestConfirmation: u
|
|
23
23
|
}) => {
|
|
24
24
|
const { user: o, getAccessToken: T } = ee(), g = M(null), C = M({
|
|
25
25
|
id: "",
|
|
26
26
|
timestamp: "",
|
|
27
27
|
message: ""
|
|
28
|
-
}), [z,
|
|
28
|
+
}), [z, k] = D(
|
|
29
29
|
Z + ae
|
|
30
|
-
), { state: i, dispatch: P } = X(te),
|
|
30
|
+
), { state: i, dispatch: P } = X(te), v = {
|
|
31
31
|
searchString: i.searchString || "",
|
|
32
32
|
sortDirection: i.sortDirection || c.DESC,
|
|
33
33
|
sortedCell: i.sortedCell || F
|
|
@@ -35,7 +35,7 @@ const Ue = ze(
|
|
|
35
35
|
setChatId: f,
|
|
36
36
|
setInitialMessages: A,
|
|
37
37
|
dispatch: E
|
|
38
|
-
} = X(Te), { setInput: _ } =
|
|
38
|
+
} = X(Te), { setInput: _ } = Oe(), [R, x] = h({
|
|
39
39
|
key: d + re,
|
|
40
40
|
initialValue: c.DESC
|
|
41
41
|
}), [S, U] = h({
|
|
@@ -124,8 +124,8 @@ const Ue = ze(
|
|
|
124
124
|
] })
|
|
125
125
|
] })
|
|
126
126
|
] })
|
|
127
|
-
), w === e.id && (f(
|
|
128
|
-
type:
|
|
127
|
+
), w === e.id && (f(ke()), A([]), _(""), E({
|
|
128
|
+
type: ve,
|
|
129
129
|
payload: {
|
|
130
130
|
privateChat: !1,
|
|
131
131
|
reasoningText: !1
|
|
@@ -144,9 +144,9 @@ const Ue = ze(
|
|
|
144
144
|
}), p("");
|
|
145
145
|
} catch {
|
|
146
146
|
}
|
|
147
|
-
}, a =
|
|
148
|
-
e[0].isIntersecting &&
|
|
149
|
-
}, []), W =
|
|
147
|
+
}, a = V((e) => {
|
|
148
|
+
e[0].isIntersecting && k((r) => r + Z);
|
|
149
|
+
}, []), W = V(
|
|
150
150
|
(e) => {
|
|
151
151
|
if (g.current && g.current.disconnect(), e) {
|
|
152
152
|
const s = {
|
|
@@ -158,12 +158,12 @@ const Ue = ze(
|
|
|
158
158
|
[a]
|
|
159
159
|
);
|
|
160
160
|
return /* @__PURE__ */ n(Q, { children: [
|
|
161
|
-
/* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(
|
|
162
|
-
/* @__PURE__ */ t(
|
|
161
|
+
/* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(be, { containerId: "history-table" }) }),
|
|
162
|
+
/* @__PURE__ */ t(Ge, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
|
|
163
163
|
Ue,
|
|
164
164
|
{
|
|
165
165
|
filteredHistory: m,
|
|
166
|
-
historyState:
|
|
166
|
+
historyState: v,
|
|
167
167
|
lastEntryToLoad: z,
|
|
168
168
|
onClickSort: H,
|
|
169
169
|
onClickRestore: K,
|
|
@@ -171,9 +171,9 @@ const Ue = ze(
|
|
|
171
171
|
onClickFavorite: q,
|
|
172
172
|
infinityScrollMarkerRef: W,
|
|
173
173
|
isLoading: L,
|
|
174
|
-
totalHistoryCount:
|
|
175
|
-
isFiltered:
|
|
176
|
-
isSearchActive:
|
|
174
|
+
totalHistoryCount: O,
|
|
175
|
+
isFiltered: G,
|
|
176
|
+
isSearchActive: b
|
|
177
177
|
}
|
|
178
178
|
) })
|
|
179
179
|
] });
|
|
@@ -181,21 +181,21 @@ const Ue = ze(
|
|
|
181
181
|
open: m,
|
|
182
182
|
onOpenChange: y
|
|
183
183
|
}) => {
|
|
184
|
-
const p = M(null), { getAccessToken: L, user:
|
|
184
|
+
const p = M(null), { getAccessToken: L, user: O } = ee(), [G, b] = D([]), u = M(null), { state: o, dispatch: T } = X(te), [, g] = h({
|
|
185
185
|
key: d + ue,
|
|
186
186
|
initialValue: o.searchString
|
|
187
187
|
}), [C, z] = h({
|
|
188
188
|
key: d + Ce,
|
|
189
189
|
initialValue: !1
|
|
190
|
-
}), [
|
|
190
|
+
}), [k, i] = h({
|
|
191
191
|
key: d + fe,
|
|
192
192
|
initialValue: !0
|
|
193
|
-
}), [P,
|
|
193
|
+
}), [P, v] = D(!1), [f, A] = D(null), [E, _] = D(null), R = V(
|
|
194
194
|
(a, W) => {
|
|
195
|
-
A(() => a), _(W),
|
|
195
|
+
A(() => a), _(W), v(!0);
|
|
196
196
|
},
|
|
197
197
|
[]
|
|
198
|
-
), x =
|
|
198
|
+
), x = V(() => {
|
|
199
199
|
f && f(), A(null), _(null);
|
|
200
200
|
}, [f]), {
|
|
201
201
|
data: S,
|
|
@@ -204,18 +204,18 @@ const Ue = ze(
|
|
|
204
204
|
isError: w
|
|
205
205
|
} = Se({
|
|
206
206
|
enabled: m,
|
|
207
|
-
user:
|
|
207
|
+
user: O?.username || "",
|
|
208
208
|
searchString: o.searchString || "",
|
|
209
209
|
sortDirection: o.sortDirection || c.DESC,
|
|
210
210
|
sortedCell: o.sortedCell || F,
|
|
211
211
|
getAccessToken: L,
|
|
212
|
-
keywordMatchAll:
|
|
212
|
+
keywordMatchAll: k
|
|
213
213
|
}), { data: l } = ye({
|
|
214
|
-
user:
|
|
214
|
+
user: O?.username,
|
|
215
215
|
getAccessToken: L
|
|
216
216
|
}), B = l && l.totalChats ? l.totalChats - l.privateChats - l.deletedChats : 0;
|
|
217
217
|
Pe(() => {
|
|
218
|
-
S &&
|
|
218
|
+
S && b(
|
|
219
219
|
C ? S.filter((a) => a.favoriteChat === !0) : S
|
|
220
220
|
);
|
|
221
221
|
}, [S, C]);
|
|
@@ -238,7 +238,7 @@ const Ue = ze(
|
|
|
238
238
|
we,
|
|
239
239
|
{
|
|
240
240
|
showConfirmation: P,
|
|
241
|
-
setShowConfirmation:
|
|
241
|
+
setShowConfirmation: v,
|
|
242
242
|
action: x,
|
|
243
243
|
customStrings: {
|
|
244
244
|
confirmAction: "Delete",
|
|
@@ -304,7 +304,7 @@ const Ue = ze(
|
|
|
304
304
|
$,
|
|
305
305
|
{
|
|
306
306
|
name: "keyword-match-all",
|
|
307
|
-
checked:
|
|
307
|
+
checked: k,
|
|
308
308
|
onChange: q,
|
|
309
309
|
label: "Match all keywords",
|
|
310
310
|
narrow: !0,
|
|
@@ -331,7 +331,7 @@ const Ue = ze(
|
|
|
331
331
|
/* @__PURE__ */ n(
|
|
332
332
|
"div",
|
|
333
333
|
{
|
|
334
|
-
className:
|
|
334
|
+
className: Ve(
|
|
335
335
|
"flex flex-col sm:flex-row",
|
|
336
336
|
"max-h-[65vh]",
|
|
337
337
|
"sm:max-h-[75vh]",
|
|
@@ -343,7 +343,7 @@ const Ue = ze(
|
|
|
343
343
|
Be,
|
|
344
344
|
{
|
|
345
345
|
mutate: U,
|
|
346
|
-
filteredHistory:
|
|
346
|
+
filteredHistory: G,
|
|
347
347
|
onOpenChange: y,
|
|
348
348
|
isLoading: I,
|
|
349
349
|
totalHistoryCount: B,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { n as N, getLayoutPaddingClass as C, getMessageContaintWrapperClass as v, isTauri as w } from "./index.
|
|
3
|
-
import { Logo as k, PASSWORD_PLACEHOLDER as M, ButtonIcon as u, IconShow as I, IconHide as L, Button as y, LOG_IN as E, LOG_IN_PASSKEY as S, IconPasskey as P } from "./LogoEntry.
|
|
4
|
-
import { Card as B } from "./index.
|
|
5
|
-
import { TextInput as O, TextInputMask as T } from "./index.
|
|
2
|
+
import { n as N, getLayoutPaddingClass as C, getMessageContaintWrapperClass as v, isTauri as w } from "./index.BkomSwOE.js";
|
|
3
|
+
import { Logo as k, PASSWORD_PLACEHOLDER as M, ButtonIcon as u, IconShow as I, IconHide as L, Button as y, LOG_IN as E, LOG_IN_PASSKEY as S, IconPasskey as P } from "./LogoEntry.DsjEGI9Q.js";
|
|
4
|
+
import { Card as B } from "./index.Co-f17DV.js";
|
|
5
|
+
import { TextInput as O, TextInputMask as T } from "./index.Dye0BS6x.js";
|
|
6
6
|
import { useState as r, useEffect as f } from "react";
|
|
7
7
|
const G = () => {
|
|
8
8
|
const { login: h, logoutReason: o, loginWithPasskey: g } = N(), [t, l] = r(""), [d, n] = r(""), [m, p] = r(!0), [s, c] = r({
|