@versini/sassysaint 8.124.0 → 8.126.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.Cx_wPJ7Z.js → AboutChangelog.y8yfq4eS.js} +2 -2
- package/dist/chunks/{AboutEntry.DmNrMr5s.js → AboutEntry.CLzuzflL.js} +8 -8
- package/dist/chunks/{App.BzXfTo0l.js → App.-eg2aIep.js} +812 -801
- package/dist/chunks/{BubbleActions.Ce6tfTUh.js → BubbleActions.BC6bPZml.js} +3 -3
- package/dist/chunks/{ButtonIconDelete.jHkJLbpb.js → ButtonIconDelete.Zl-ctgi7.js} +19 -18
- package/dist/chunks/{Chart._j38jx2j.js → Chart.C7v4Yrhp.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CkQRnSQt.js → ChatBubbleAssistant.CCq0_B58.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.DMJbYD3z.js → ChatBubbleUser.C7gtc_kh.js} +4 -4
- package/dist/chunks/{GenericPanel.DmIVt33k.js → GenericPanel.7LMc775H.js} +1 -1
- package/dist/chunks/{HistoryEntry.Cq6AUyXj.js → HistoryEntry.Bz7a6Bem.js} +87 -87
- package/dist/chunks/{LoginEntry.X1jBcMKD.js → LoginEntry.DJ-wqr-L.js} +4 -4
- package/dist/chunks/{LogoEntry.C2Nrhfij.js → LogoEntry.ByusSkIJ.js} +1 -1
- package/dist/chunks/{MemoriesEntry.BljMJwoe.js → MemoriesEntry.uaGNQRyj.js} +6 -6
- package/dist/chunks/{ProfileEntry.vB7iyiQe.js → ProfileEntry.CFjS5ztM.js} +6 -6
- package/dist/chunks/{SettingsEntry.WDa-6Ahy.js → SettingsEntry.DK9QZ6yj.js} +6 -6
- package/dist/chunks/{UsageEntry.CAtBTMVV.js → UsageEntry.BzzbV0A4.js} +6 -6
- package/dist/chunks/{_baseUniq.BzsifY_A.js → _baseUniq.DhlKnES5.js} +1 -1
- package/dist/chunks/{arc.B3lKcxnQ.js → arc.Brcc_IEk.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.BFw7ZYGi.js → architecture-U656AL7Q.DVFE0hfZ.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.DW4_F9jT.js → architectureDiagram-VXUJARFQ.BkSp89fJ.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.99a2hvnj.js → blockDiagram-VD42YOAC.DgYdp655.js} +5 -5
- package/dist/chunks/{browser.CqPCGHhZ.js → browser.rKkdZBWz.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.myMIBFPP.js → c4Diagram-YG6GDRKO.BkIthKAj.js} +2 -2
- package/dist/chunks/{channel.Dkod3nLl.js → channel.I_BBDI4B.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.C0KRn8vY.js → chunk-4BX2VUAB.CZ7Tfv3P.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.Dw_54Cwl.js → chunk-55IACEB6.pDWAxI0Z.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.CQQl7odk.js → chunk-B4BG7PRW.Ck9Icqbf.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.DtwHmQbD.js → chunk-DI55MBZ5.8YRqD3_g.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.Dw-3jbfc.js → chunk-FMBD7UC4.CyMr_Cq0.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.DRzByK1N.js → chunk-QN33PNHL.MozVXw7l.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.CCoztZwn.js → chunk-QZHKN3VN.8ZHjN_iq.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.DUj8ncNV.js → chunk-TZMSLE5B.B_Tdnqcw.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.cwLdwiQY.js → classDiagram-2ON5EDUG.BvpFy8VU.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.cwLdwiQY.js → classDiagram-v2-WZHVMYZB.BvpFy8VU.js} +2 -2
- package/dist/chunks/{clone.DlO4Hr4-.js → clone.CX-h_mcE.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.B_u1DhXJ.js → cose-bilkent-S5V4N54A.DijTCPsU.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.TBSnBVmF.js → dagre-6UL2VRFP.ZkBOdsiV.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.DLpLnaMT.js → diagram-PSM6KHXK.qhgEGMkh.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.iJhCSncs.js → diagram-QEK2KX5R.CCxEDYzq.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.DzTERqf6.js → diagram-S2PKOQOG.ByybMnvg.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.CWynsTWD.js → erDiagram-Q2GNP2WA.Bq0QQAzQ.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.CUp4f8Ee.js → flowDiagram-NV44I4VS.C5jeV11l.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.BwMInK9h.js → ganttDiagram-JELNMOA3.CX3m_XBd.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.DBVb1BdV.js → gitGraph-F6HP7TQM.DyP7zKA-.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.j-nQ2JMn.js → gitGraphDiagram-NY62KEGX.Dqs6kEPo.js} +4 -4
- package/dist/chunks/{graph.BYpjTE9p.js → graph.BmSU3EQ3.js} +2 -2
- package/dist/chunks/{index.CRokoEy5.js → index.9qGP0oyh.js} +1 -1
- package/dist/chunks/{index.CSlM5RvZ.js → index.BS9UqT8G.js} +1 -1
- package/dist/chunks/{index.TAyzxG2x.js → index.Bg-ureJQ.js} +1 -1
- package/dist/chunks/{index.BFB2eeJO.js → index.ByXLoznH.js} +1 -1
- package/dist/chunks/{index.DsvBmOFD.js → index.DI6YPuXQ.js} +1 -1
- package/dist/chunks/{index.7rI3Zh6S.js → index.DR8JSq3p.js} +3 -3
- package/dist/chunks/{index.DGtZMa5X.js → index.D_hdJ3yp.js} +1 -1
- package/dist/chunks/{index.Cm_5g9xp.js → index.KoZIit7c.js} +2 -2
- package/dist/chunks/{index.C6m5EDTb.js → index.kUAkaVxN.js} +3 -3
- package/dist/chunks/{index.C09rfIPz.js → index.wNocmUkc.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.BgH6c6De.js → info-NVLQJR56.DSYjsQhb.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.BZPdtfIu.js → infoDiagram-WHAUD3N6.B_QWKiGD.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.D315Q2BL.js → journeyDiagram-XKPGCS4Q.D13NM_jI.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.BCjgsWf5.js → kanban-definition-3W4ZIXB7.BW2fJXMb.js} +2 -2
- package/dist/chunks/{layout.9eeN3x8q.js → layout.DXFZfI_v.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.CoF1zxxn.js → mermaid-parser.core.oWEsV7Vh.js} +10 -10
- package/dist/chunks/{min.Db-v_EbW.js → min.ZBTOF0du.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.Gn_j5hFa.js → mindmap-definition-VGOIOE7T.ClyuQGjj.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.C7CPhtVD.js → packet-BFZMPI3H.B8xdKVKJ.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.DPOlEPeF.js → pie-7BOR55EZ.DGxeR5Vn.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.H9WpXELq.js → pieDiagram-ADFJNKIX.LXBSnOeX.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CRrm72Te.js → quadrantDiagram-AYHSOK5B.sUnuK7as.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.BTlYEVpC.js → radar-NHE76QYJ.CLksGj06.js} +1 -1
- package/dist/chunks/{rehype-mermaid.Ho-bmgDt.js → rehype-mermaid.hijL8KJp.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.CoxuILcQ.js → requirementDiagram-UZGBJVZJ.j3hFwP4f.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.CQ35FCEw.js → sankeyDiagram-TZEHDZUN.CHWynfNM.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.Dimfha52.js → sequenceDiagram-WL72ISMW.BerTw6Wd.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.DHY9BdZ2.js → stateDiagram-FKZM4ZOC.DM9qYL-8.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BIeOiDVI.js → stateDiagram-v2-4FDKWEC3.BlSmrHnJ.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.rQIKlqdA.js → timeline-definition-IT6M3QCI.CN63yk_o.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.DDkoXxdM.js → treemap-KMMF4GRG.DrHkuc0q.js} +1 -1
- package/dist/chunks/{useMarkdown.DZkkRI9v.js → useMarkdown.CabEGOKb.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.Jw3wJAbf.js → xychartDiagram-PRI3JC2R.C6yY1ILk.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as b, Fragment as S, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as I, useUserPreferences as M } from "./index.
|
|
3
|
-
import { ButtonIcon as g, IconCopied as _, IconCopy as z, ChatContext as H, IconBranch as N, TOAST_CHAT_BRANCHED as R } from "./LogoEntry.
|
|
2
|
+
import { n as I, useUserPreferences as M } from "./index.KoZIit7c.js";
|
|
3
|
+
import { ButtonIcon as g, IconCopied as _, IconCopy as z, ChatContext as H, IconBranch as N, TOAST_CHAT_BRANCHED as R } from "./LogoEntry.ByusSkIJ.js";
|
|
4
4
|
import { useState as k, useRef as E, useCallback as y, useEffect as O, useContext as L } from "react";
|
|
5
|
-
import { ResponsiveTooltip as w, useAiChat as U, v4 as j, CHAT_RESET as D, CHAT_SET_ATTACHMENTS as F, CHAT_SET_STATUS as P, showSuccessToast as q, CHAT_SCROLL_TO_BOTTOM as G } from "./App.
|
|
5
|
+
import { ResponsiveTooltip as w, useAiChat as U, v4 as j, CHAT_RESET as D, CHAT_SET_ATTACHMENTS as F, CHAT_SET_STATUS as P, showSuccessToast as q, CHAT_SCROLL_TO_BOTTOM as G } from "./App.-eg2aIep.js";
|
|
6
6
|
const J = ({ children: e, richText: a = !1, mode: o = "system", focusMode: l = "system" }) => {
|
|
7
7
|
const [n, c] = k(!1), r = E(null), p = y(async () => {
|
|
8
8
|
if (navigator.clipboard)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as i, jsxs as A, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
-
import ve, { useRef as
|
|
3
|
-
import { IconSearch as xe, Button as He, CellWrapper as E, BlurEffects as B, IconSortUp as Se, IconSortDown as
|
|
4
|
-
import { Card as Ie } from "./index.
|
|
5
|
-
import { TextInput as Fe } from "./index.
|
|
2
|
+
import ve, { useRef as w, useState as S, useLayoutEffect as L, createContext as ye, useContext as Ce, useCallback as D, useMemo as Q, useId as ke, useEffect as Z } from "react";
|
|
3
|
+
import { IconSearch as xe, Button as He, CellWrapper as E, BlurEffects as B, IconSortUp as Se, IconSortDown as we, IconSort as Te, ButtonIcon as Ne, IconDelete as Ae } from "./LogoEntry.ByusSkIJ.js";
|
|
4
|
+
import { Card as Ie } from "./index.BS9UqT8G.js";
|
|
5
|
+
import { TextInput as Fe } from "./index.wNocmUkc.js";
|
|
6
6
|
import f from "clsx";
|
|
7
|
-
import { ResponsiveTooltip as Re } from "./App.
|
|
7
|
+
import { ResponsiveTooltip as Re } from "./App.-eg2aIep.js";
|
|
8
8
|
const Be = 300;
|
|
9
9
|
function De(e, n) {
|
|
10
|
-
const { duration: r = Be, enabled: s = !0 } = n ?? {}, t =
|
|
10
|
+
const { duration: r = Be, enabled: s = !0 } = n ?? {}, t = w(null), [o, a] = S({
|
|
11
11
|
height: "auto",
|
|
12
12
|
isAnimating: !1
|
|
13
|
-
}), c =
|
|
13
|
+
}), c = w(0), u = w(e), l = w(0), d = w(null);
|
|
14
14
|
L(() => {
|
|
15
15
|
if (!t.current || !s)
|
|
16
16
|
return;
|
|
@@ -110,6 +110,7 @@ const st = ({ children: e, dependency: n, duration: r, enabled: s = !0, classNam
|
|
|
110
110
|
{
|
|
111
111
|
mode: "light",
|
|
112
112
|
size: "small",
|
|
113
|
+
className: "min-w-28",
|
|
113
114
|
disabled: a,
|
|
114
115
|
onClick: t,
|
|
115
116
|
children: "Reset Search"
|
|
@@ -126,7 +127,7 @@ function ot(e) {
|
|
|
126
127
|
return f("contents", e);
|
|
127
128
|
}
|
|
128
129
|
function at(e, n) {
|
|
129
|
-
const r = Ce(I), s =
|
|
130
|
+
const r = Ce(I), s = w([]);
|
|
130
131
|
L(() => {
|
|
131
132
|
const t = e.current, o = r.columns && (r.stickyHeader || r.stickyFooter);
|
|
132
133
|
if (!t || !o || !r.setMeasuredColumnWidths)
|
|
@@ -157,13 +158,13 @@ function at(e, n) {
|
|
|
157
158
|
n
|
|
158
159
|
]);
|
|
159
160
|
}
|
|
160
|
-
const
|
|
161
|
-
[ne]:
|
|
161
|
+
const T = (e) => e === "dark", N = (e) => e === "light", b = (e) => e === "system", y = (e) => e === "alt-system", te = (e) => T(e) || b(e), re = (e) => N(e) || y(e), Ee = (e) => !!(e && e !== B.NONE), j = (e) => e === E.HEADER, se = (e) => e === E.FOOTER, ne = "text-copy-light", U = "text-copy-dark", $ = "text-copy-light dark:text-copy-dark", oe = "text-copy-dark dark:text-copy-light", ee = ({ mode: e }) => f({
|
|
162
|
+
[ne]: T(e),
|
|
162
163
|
[U]: N(e),
|
|
163
164
|
[$]: b(e),
|
|
164
165
|
[oe]: y(e)
|
|
165
166
|
}), W = ({ mode: e, hasBlur: n }) => f({
|
|
166
|
-
[U]:
|
|
167
|
+
[U]: T(e) && !n || N(e),
|
|
167
168
|
[$]: b(e) && n,
|
|
168
169
|
"text-copy-dark dark:text-copy-dark": (b(e) || y(e)) && !n
|
|
169
170
|
}), ze = ({ mode: e }) => f({
|
|
@@ -185,7 +186,7 @@ const w = (e) => e === "dark", N = (e) => e === "light", b = (e) => e === "syste
|
|
|
185
186
|
"backdrop-blur-lg": e === B.LARGE
|
|
186
187
|
}), Me = ({ mode: e }) => f("text-lg font-medium", {
|
|
187
188
|
[U]: N(e),
|
|
188
|
-
[ne]:
|
|
189
|
+
[ne]: T(e),
|
|
189
190
|
[oe]: y(e),
|
|
190
191
|
[$]: b(e)
|
|
191
192
|
}), Ge = ({ mode: e }) => ({
|
|
@@ -258,17 +259,17 @@ const w = (e) => e === "dark", N = (e) => e === "light", b = (e) => e === "syste
|
|
|
258
259
|
}, {
|
|
259
260
|
"font-bold": j(e) || se(e)
|
|
260
261
|
}, "first:group-data-active:relative", "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", "first:group-data-active:self-stretch first:group-data-active:flex first:group-data-active:items-center", {
|
|
261
|
-
"first:group-data-active:before:bg-table-active-dark":
|
|
262
|
+
"first:group-data-active:before:bg-table-active-dark": T(t),
|
|
262
263
|
"first:group-data-active:before:bg-table-active-light": N(t),
|
|
263
264
|
"first:group-data-active:before:bg-table-active-dark dark:first:group-data-active:before:bg-table-active-light": b(t),
|
|
264
265
|
"first:group-data-active:before:bg-table-active-light dark:first:group-data-active:before:bg-table-active-dark": y(t)
|
|
265
266
|
}, {
|
|
266
267
|
"self-stretch flex items-center": o || a,
|
|
267
|
-
"border-l border-l-table-dark": o &&
|
|
268
|
+
"border-l border-l-table-dark": o && T(t),
|
|
268
269
|
"border-l border-l-table-light": o && N(t),
|
|
269
270
|
"border-l border-l-table-dark dark:border-l-table-light": o && b(t),
|
|
270
271
|
"border-l border-l-table-light dark:border-l-table-dark": o && y(t),
|
|
271
|
-
"border-r border-r-table-dark": a &&
|
|
272
|
+
"border-r border-r-table-dark": a && T(t),
|
|
272
273
|
"border-r border-r-table-light": a && N(t),
|
|
273
274
|
"border-r border-r-table-dark dark:border-r-table-light": a && b(t),
|
|
274
275
|
"border-r border-r-table-light dark:border-r-table-dark": a && y(t)
|
|
@@ -473,10 +474,10 @@ const Xe = (e) => e ? f(
|
|
|
473
474
|
}, h = () => g && t === "asc" ? /* @__PURE__ */ i(Se, {
|
|
474
475
|
size: "size-4",
|
|
475
476
|
monotone: !0
|
|
476
|
-
}) : g && t === "desc" ? /* @__PURE__ */ i(
|
|
477
|
+
}) : g && t === "desc" ? /* @__PURE__ */ i(we, {
|
|
477
478
|
size: "size-4",
|
|
478
479
|
monotone: !0
|
|
479
|
-
}) : /* @__PURE__ */ i(
|
|
480
|
+
}) : /* @__PURE__ */ i(Te, {
|
|
480
481
|
size: "size-4",
|
|
481
482
|
monotone: !0
|
|
482
483
|
}), k = () => g && t === "asc" ? "ascending" : g && t === "desc" ? "descending" : "other";
|
|
@@ -534,7 +535,7 @@ const Pe = ({ caption: e, captionClassName: n, className: r, children: s, ...t }
|
|
|
534
535
|
};
|
|
535
536
|
Pe.displayName = "DataGridHeader";
|
|
536
537
|
const Ye = ({ caption: e, captionClassName: n, captionId: r, className: s, ctx: t, children: o, ...a }) => {
|
|
537
|
-
const c =
|
|
538
|
+
const c = w(null);
|
|
538
539
|
return Z(() => (t.registerHeader?.(), () => {
|
|
539
540
|
t.unregisterHeader?.();
|
|
540
541
|
}), [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Up } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultExportFromCjs as Pn, isProbablyMobile as $p } from "./App.
|
|
2
|
+
import { getDefaultExportFromCjs as Pn, isProbablyMobile as $p } from "./App.-eg2aIep.js";
|
|
3
3
|
import Vp, { useMemo as qp } from "react";
|
|
4
|
-
import { TRIMESTERS_SHORT as Zp, TRIMESTERS as Mn, TIME_RANGES as xs, TIME_RANGE_LABELS as Sn } from "./LogoEntry.
|
|
4
|
+
import { TRIMESTERS_SHORT as Zp, TRIMESTERS as Mn, TIME_RANGES as xs, TIME_RANGE_LABELS as Sn } from "./LogoEntry.ByusSkIJ.js";
|
|
5
5
|
var ys = { exports: {} }, Kp = ys.exports, Tn;
|
|
6
6
|
function _p() {
|
|
7
7
|
return Tn || (Tn = 1, (function(Ce, ce) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as vt } from "react/jsx-runtime";
|
|
2
|
-
import { n as as, useUserPreferences as os, formatTimestamp as St } 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 St } from "./index.KoZIit7c.js";
|
|
3
|
+
import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.-eg2aIep.js";
|
|
4
4
|
import Ht from "clsx";
|
|
5
5
|
import fs, { useState as Ae, useEffect as Jt, useContext as Vt } from "react";
|
|
6
|
-
import { useMarkdown as hs } from "./useMarkdown.
|
|
7
|
-
import { ChatContext as ds, AppContext as ms } from "./LogoEntry.
|
|
8
|
-
import { BubbleActions as ps } from "./BubbleActions.
|
|
6
|
+
import { useMarkdown as hs } from "./useMarkdown.CabEGOKb.js";
|
|
7
|
+
import { ChatContext as ds, AppContext as ms } from "./LogoEntry.ByusSkIJ.js";
|
|
8
|
+
import { BubbleActions as ps } from "./BubbleActions.BC6bPZml.js";
|
|
9
9
|
const Me = {
|
|
10
10
|
isEmpty: !0
|
|
11
11
|
};
|
|
@@ -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.-eg2aIep.js";
|
|
3
|
+
import { Button as C } from "./LogoEntry.ByusSkIJ.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.CabEGOKb.js";
|
|
6
|
+
import { BubbleCopyToClipboard as I } from "./BubbleActions.BC6bPZml.js";
|
|
7
7
|
const L = 200, h = ({ string: e, idealLength: r = L }) => {
|
|
8
8
|
if (e.length <= r)
|
|
9
9
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e, jsxs as p, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { y as L, V as ee, INFINITE_SCROLL_THRESHOLD as ue, INFINITE_SCROLL_LIMIT as he, n as ae, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_SORT_TIMESTAMP as fe, LOCAL_STORAGE_SORT_TOKEN_USAGE as pe, LOCAL_STORAGE_SORT as Ce, LOCAL_STORAGE_CHAT_ID as ye, useDeleteChat as Se, graphQLRequest as ge, SERVICE_TYPES as Te, ACTION_SORT as xe, LOCAL_STORAGE_SEARCH as Ae, LOCAL_STORAGE_KEYWORD_MATCH_ALL as De, LOCAL_STORAGE_HISTORY_WITH_MEDIA_ONLY as _e, LOCAL_STORAGE_HISTORY_WITH_SHARED_ONLY as ke, useChatsHistory as we, useUserChatStats as Re, ACTION_SEARCH as Ee } from "./index.
|
|
3
|
-
import { DataGridContext as X, useColumnMeasurement as Ie, getBodyClass as be, DataGridHeader as Oe, DataGridRow as oe, DataGridCell as w, DataGridCellSort as Q, ButtonIconDelete as Le, DataGrid as Ne, InlineFilter as ve, AnimatedWrapper as He } from "./ButtonIconDelete.
|
|
4
|
-
import { pluralize as te, isProbablyMobile as le, numberFormatter as Me, ResponsiveTooltip as Ge, useAiChat as Fe, useLocalStorage as v, LazyToastContainerWrapper as Be, v4 as Ue, CHAT_RESET as Pe, CHAT_SET_ATTACHMENTS as Ve, CHAT_SET_STATUS as We, showErrorToast as Ye, ConfirmationPanel as $e, debounce as qe, Toggle as Z, ButtonCancel as Ke } from "./App.
|
|
2
|
+
import { y as L, V as ee, INFINITE_SCROLL_THRESHOLD as ue, INFINITE_SCROLL_LIMIT as he, n as ae, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_SORT_TIMESTAMP as fe, LOCAL_STORAGE_SORT_TOKEN_USAGE as pe, LOCAL_STORAGE_SORT as Ce, LOCAL_STORAGE_CHAT_ID as ye, useDeleteChat as Se, graphQLRequest as ge, SERVICE_TYPES as Te, ACTION_SORT as xe, LOCAL_STORAGE_SEARCH as Ae, LOCAL_STORAGE_KEYWORD_MATCH_ALL as De, LOCAL_STORAGE_HISTORY_WITH_MEDIA_ONLY as _e, LOCAL_STORAGE_HISTORY_WITH_SHARED_ONLY as ke, useChatsHistory as we, useUserChatStats as Re, ACTION_SEARCH as Ee } from "./index.KoZIit7c.js";
|
|
3
|
+
import { DataGridContext as X, useColumnMeasurement as Ie, getBodyClass as be, DataGridHeader as Oe, DataGridRow as oe, DataGridCell as w, DataGridCellSort as Q, ButtonIconDelete as Le, DataGrid as Ne, InlineFilter as ve, AnimatedWrapper as He } from "./ButtonIconDelete.Zl-ctgi7.js";
|
|
4
|
+
import { pluralize as te, isProbablyMobile as le, numberFormatter as Me, ResponsiveTooltip as Ge, useAiChat as Fe, useLocalStorage as v, LazyToastContainerWrapper as Be, v4 as Ue, CHAT_RESET as Pe, CHAT_SET_ATTACHMENTS as Ve, CHAT_SET_STATUS as We, showErrorToast as Ye, ConfirmationPanel as $e, debounce as qe, Toggle as Z, ButtonCancel as Ke } from "./App.-eg2aIep.js";
|
|
5
5
|
import { forwardRef as je, useContext as z, useRef as H, useState as W, useCallback as Y, useEffect as F, useImperativeHandle as ze, useMemo as J } from "react";
|
|
6
|
-
import { CellWrapper as ne, ButtonIcon as Xe, IconRestore as Qe, CARDS as Ze, HistoryContext as ie, ChatContext as Je, SortDirections as G, APP_CLASSNAME as et, TOAST_CHAT_DELETED as tt, HISTORY_TITLE as nt } from "./LogoEntry.
|
|
7
|
-
import { GenericPanel as rt } from "./GenericPanel.
|
|
8
|
-
import { Pill as re } from "./index.
|
|
6
|
+
import { CellWrapper as ne, ButtonIcon as Xe, IconRestore as Qe, CARDS as Ze, HistoryContext as ie, ChatContext as Je, SortDirections as G, APP_CLASSNAME as et, TOAST_CHAT_DELETED as tt, HISTORY_TITLE as nt } from "./LogoEntry.ByusSkIJ.js";
|
|
7
|
+
import { GenericPanel as rt } from "./GenericPanel.7LMc775H.js";
|
|
8
|
+
import { Pill as re } from "./index.ByXLoznH.js";
|
|
9
9
|
import K from "clsx";
|
|
10
10
|
const st = 20, at = 5, ot = "20px", se = "data-row-index";
|
|
11
11
|
function lt(t) {
|
|
@@ -18,8 +18,8 @@ function lt(t) {
|
|
|
18
18
|
}
|
|
19
19
|
return null;
|
|
20
20
|
}
|
|
21
|
-
function it({ data: t, children: n, batchSize:
|
|
22
|
-
const
|
|
21
|
+
function it({ data: t, children: n, batchSize: m = st, threshold: o = at, rootMargin: C = ot, onVisibleCountChange: x, className: g }, i) {
|
|
22
|
+
const c = z(X), A = H(null), u = H(null), l = H(null), s = t.length, D = Math.min(m + o, s), [d, R] = W(D), T = d < s, h = Y((r) => {
|
|
23
23
|
const S = A.current;
|
|
24
24
|
if (!S)
|
|
25
25
|
return;
|
|
@@ -35,20 +35,20 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
35
35
|
F(() => {
|
|
36
36
|
if (l.current !== null) {
|
|
37
37
|
const r = l.current;
|
|
38
|
-
r <
|
|
38
|
+
r < d && (requestAnimationFrame(() => {
|
|
39
39
|
h(r);
|
|
40
40
|
}), l.current = null);
|
|
41
41
|
}
|
|
42
42
|
}, [
|
|
43
|
-
|
|
43
|
+
d,
|
|
44
44
|
h
|
|
45
|
-
]), ze(
|
|
45
|
+
]), ze(i, () => ({
|
|
46
46
|
scrollToIndex: (r) => {
|
|
47
47
|
if (r < 0 || r >= s) {
|
|
48
48
|
console.warn(`scrollToIndex: index ${r} is out of bounds (0-${s - 1})`);
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
if (r <
|
|
51
|
+
if (r < d) {
|
|
52
52
|
h(r);
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
@@ -57,34 +57,34 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
57
57
|
}
|
|
58
58
|
}), [
|
|
59
59
|
s,
|
|
60
|
-
|
|
60
|
+
d,
|
|
61
61
|
o,
|
|
62
62
|
h
|
|
63
63
|
]), F(() => {
|
|
64
|
-
R(Math.min(
|
|
64
|
+
R(Math.min(m + o, s));
|
|
65
65
|
}, [
|
|
66
66
|
s,
|
|
67
|
-
|
|
67
|
+
m,
|
|
68
68
|
o
|
|
69
69
|
]), F(() => {
|
|
70
|
-
x?.(
|
|
70
|
+
x?.(d, s);
|
|
71
71
|
}, [
|
|
72
|
-
|
|
72
|
+
d,
|
|
73
73
|
s,
|
|
74
74
|
x
|
|
75
75
|
]);
|
|
76
76
|
const y = Y((r) => {
|
|
77
|
-
r[0]?.isIntersecting && R((f) => Math.min(f +
|
|
77
|
+
r[0]?.isIntersecting && R((f) => Math.min(f + m, s));
|
|
78
78
|
}, [
|
|
79
|
-
|
|
79
|
+
m,
|
|
80
80
|
s
|
|
81
81
|
]), E = Y((r) => {
|
|
82
|
-
if (
|
|
82
|
+
if (u.current && (u.current.disconnect(), u.current = null), r && T) {
|
|
83
83
|
const S = lt(r);
|
|
84
|
-
|
|
84
|
+
u.current = new IntersectionObserver(y, {
|
|
85
85
|
root: S,
|
|
86
86
|
rootMargin: C
|
|
87
|
-
}),
|
|
87
|
+
}), u.current.observe(r);
|
|
88
88
|
}
|
|
89
89
|
}, [
|
|
90
90
|
T,
|
|
@@ -92,20 +92,20 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
92
92
|
C
|
|
93
93
|
]);
|
|
94
94
|
F(() => () => {
|
|
95
|
-
|
|
95
|
+
u.current?.disconnect();
|
|
96
96
|
}, []);
|
|
97
|
-
const O = J(() => T ? Math.max(0,
|
|
97
|
+
const O = J(() => T ? Math.max(0, d - o) : -1, [
|
|
98
98
|
T,
|
|
99
|
-
|
|
99
|
+
d,
|
|
100
100
|
o
|
|
101
101
|
]), U = J(() => ({
|
|
102
|
-
...
|
|
102
|
+
...c,
|
|
103
103
|
cellWrapper: ne.BODY
|
|
104
104
|
}), [
|
|
105
|
-
|
|
105
|
+
c
|
|
106
106
|
]), M = J(() => {
|
|
107
|
-
const r = [], S = Math.min(
|
|
108
|
-
for (let f = 0; f <
|
|
107
|
+
const r = [], S = Math.min(d, s) - 1;
|
|
108
|
+
for (let f = 0; f < d && f < s; f++) {
|
|
109
109
|
f === O && r.push(/* @__PURE__ */ e("div", {
|
|
110
110
|
ref: E,
|
|
111
111
|
"aria-hidden": "true",
|
|
@@ -129,7 +129,7 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
129
129
|
})
|
|
130
130
|
}, f));
|
|
131
131
|
}
|
|
132
|
-
return O ===
|
|
132
|
+
return O === d && T && r.push(/* @__PURE__ */ e("div", {
|
|
133
133
|
ref: E,
|
|
134
134
|
"aria-hidden": "true",
|
|
135
135
|
style: {
|
|
@@ -139,7 +139,7 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
139
139
|
}, "__infinite-scroll-marker-end__")), r;
|
|
140
140
|
}, [
|
|
141
141
|
t,
|
|
142
|
-
|
|
142
|
+
d,
|
|
143
143
|
s,
|
|
144
144
|
O,
|
|
145
145
|
T,
|
|
@@ -151,7 +151,7 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
151
151
|
const P = be(g);
|
|
152
152
|
return /* @__PURE__ */ e(X.Provider, {
|
|
153
153
|
value: {
|
|
154
|
-
...
|
|
154
|
+
...c,
|
|
155
155
|
cellWrapper: ne.BODY
|
|
156
156
|
},
|
|
157
157
|
children: /* @__PURE__ */ e("div", {
|
|
@@ -165,13 +165,13 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
|
|
|
165
165
|
const ct = /* @__PURE__ */ je(it), dt = ({
|
|
166
166
|
sortDirection: t,
|
|
167
167
|
sortedCell: n,
|
|
168
|
-
onSortChange:
|
|
168
|
+
onSortChange: m,
|
|
169
169
|
caption: o,
|
|
170
170
|
isSearchActive: C = !1,
|
|
171
171
|
showTokenUsage: x = !0
|
|
172
172
|
}) => {
|
|
173
|
-
const g = (
|
|
174
|
-
|
|
173
|
+
const g = (i) => {
|
|
174
|
+
m(i);
|
|
175
175
|
};
|
|
176
176
|
return /* @__PURE__ */ e(Oe, { caption: o, children: /* @__PURE__ */ p(oe, { children: [
|
|
177
177
|
/* @__PURE__ */ e(w, { className: "invisible", children: "Row" }),
|
|
@@ -219,8 +219,8 @@ const ct = /* @__PURE__ */ je(it), dt = ({
|
|
|
219
219
|
/* @__PURE__ */ e(w, { align: "right", className: "text-xs sm:text-sm", children: "Actions" })
|
|
220
220
|
] }) });
|
|
221
221
|
};
|
|
222
|
-
function mt(t, n,
|
|
223
|
-
return
|
|
222
|
+
function mt(t, n, m) {
|
|
223
|
+
return m && n > t ? `Showing ${te(`${t} chat`, t)} out of ${n}` : te(`${t} chat`, t);
|
|
224
224
|
}
|
|
225
225
|
const j = {
|
|
226
226
|
rowNumber: "dark:text-copy-medium",
|
|
@@ -231,18 +231,18 @@ const j = {
|
|
|
231
231
|
function ut({
|
|
232
232
|
item: t,
|
|
233
233
|
index: n,
|
|
234
|
-
onClickRestore:
|
|
234
|
+
onClickRestore: m,
|
|
235
235
|
onClickDelete: o,
|
|
236
236
|
showTokenUsage: C = !0,
|
|
237
237
|
isActive: x = !1
|
|
238
238
|
}) {
|
|
239
|
-
const g = t.timestamp.split(",")[0],
|
|
240
|
-
(
|
|
241
|
-
|
|
239
|
+
const g = t.timestamp.split(",")[0], i = t.similarityScore !== void 0 && t.similarityScore !== null ? Math.round(t.similarityScore * 100) : null, c = i !== null && i <= 20 ? "error" : i !== null && i <= 39 ? "warning" : "success", A = t.keywordMatch === !0, u = /* @__PURE__ */ e(w, { className: K(j.summary), children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
|
|
240
|
+
(i !== null || A) && /* @__PURE__ */ p("div", { className: "flex flex-wrap gap-1", children: [
|
|
241
|
+
i !== null && /* @__PURE__ */ e(
|
|
242
242
|
re,
|
|
243
243
|
{
|
|
244
|
-
variant:
|
|
245
|
-
label: `${
|
|
244
|
+
variant: c,
|
|
245
|
+
label: `${i}% semantic`
|
|
246
246
|
}
|
|
247
247
|
),
|
|
248
248
|
A && /* @__PURE__ */ e(re, { variant: "information", label: "keyword" })
|
|
@@ -261,7 +261,7 @@ function ut({
|
|
|
261
261
|
label: "Restore chat",
|
|
262
262
|
variant: "primary",
|
|
263
263
|
onClick: async () => {
|
|
264
|
-
await
|
|
264
|
+
await m(t);
|
|
265
265
|
},
|
|
266
266
|
children: /* @__PURE__ */ e(
|
|
267
267
|
Qe,
|
|
@@ -289,12 +289,12 @@ function ut({
|
|
|
289
289
|
return /* @__PURE__ */ p(oe, { active: x, children: [
|
|
290
290
|
/* @__PURE__ */ e(w, { className: K(j.rowNumber), children: n + 1 }),
|
|
291
291
|
C ? /* @__PURE__ */ p(B, { children: [
|
|
292
|
-
|
|
292
|
+
u,
|
|
293
293
|
l,
|
|
294
294
|
s
|
|
295
295
|
] }) : /* @__PURE__ */ p(B, { children: [
|
|
296
296
|
l,
|
|
297
|
-
|
|
297
|
+
u
|
|
298
298
|
] }),
|
|
299
299
|
D
|
|
300
300
|
] });
|
|
@@ -302,22 +302,22 @@ function ut({
|
|
|
302
302
|
const ht = ({
|
|
303
303
|
filteredHistory: t,
|
|
304
304
|
sortDirection: n,
|
|
305
|
-
sortedCell:
|
|
305
|
+
sortedCell: m,
|
|
306
306
|
onSortChange: o,
|
|
307
307
|
onClickRestore: C,
|
|
308
308
|
onClickDelete: x,
|
|
309
309
|
isLoading: g = !1,
|
|
310
|
-
totalHistoryCount:
|
|
311
|
-
isFiltered:
|
|
310
|
+
totalHistoryCount: i,
|
|
311
|
+
isFiltered: c = !1,
|
|
312
312
|
isSearchActive: A = !1,
|
|
313
|
-
activeChatId:
|
|
313
|
+
activeChatId: u
|
|
314
314
|
}) => {
|
|
315
315
|
const l = le(), s = H(null), D = H(!1);
|
|
316
316
|
F(() => {
|
|
317
|
-
if (!
|
|
317
|
+
if (!u || D.current)
|
|
318
318
|
return;
|
|
319
319
|
const h = t.findIndex(
|
|
320
|
-
(y) => y.id ===
|
|
320
|
+
(y) => y.id === u
|
|
321
321
|
);
|
|
322
322
|
if (h !== -1) {
|
|
323
323
|
D.current = !0;
|
|
@@ -326,13 +326,13 @@ const ht = ({
|
|
|
326
326
|
}, 100);
|
|
327
327
|
return () => clearTimeout(y);
|
|
328
328
|
}
|
|
329
|
-
}, [
|
|
329
|
+
}, [u, t]), F(() => {
|
|
330
330
|
D.current = !1;
|
|
331
|
-
}, [
|
|
332
|
-
const
|
|
331
|
+
}, [u]);
|
|
332
|
+
const d = mt(
|
|
333
333
|
t.length,
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
i ?? t.length,
|
|
335
|
+
c
|
|
336
336
|
);
|
|
337
337
|
return /* @__PURE__ */ p(
|
|
338
338
|
Ne,
|
|
@@ -350,9 +350,9 @@ const ht = ({
|
|
|
350
350
|
dt,
|
|
351
351
|
{
|
|
352
352
|
sortDirection: n,
|
|
353
|
-
sortedCell:
|
|
353
|
+
sortedCell: m,
|
|
354
354
|
onSortChange: o,
|
|
355
|
-
caption:
|
|
355
|
+
caption: d,
|
|
356
356
|
isSearchActive: A,
|
|
357
357
|
showTokenUsage: !l
|
|
358
358
|
}
|
|
@@ -372,7 +372,7 @@ const ht = ({
|
|
|
372
372
|
onClickRestore: C,
|
|
373
373
|
onClickDelete: x,
|
|
374
374
|
showTokenUsage: !l,
|
|
375
|
-
isActive:
|
|
375
|
+
isActive: u === h.id
|
|
376
376
|
},
|
|
377
377
|
`${Ze.HISTORY.TITLE}-${h.id}-${y}`
|
|
378
378
|
)
|
|
@@ -384,14 +384,14 @@ const ht = ({
|
|
|
384
384
|
}, ft = ({
|
|
385
385
|
filteredHistory: t,
|
|
386
386
|
onOpenChange: n,
|
|
387
|
-
mutate:
|
|
387
|
+
mutate: m,
|
|
388
388
|
isLoading: o = !1,
|
|
389
389
|
totalHistoryCount: C,
|
|
390
390
|
isFiltered: x = !1,
|
|
391
391
|
isSearchActive: g = !1,
|
|
392
|
-
requestConfirmation:
|
|
392
|
+
requestConfirmation: i
|
|
393
393
|
}) => {
|
|
394
|
-
const { user:
|
|
394
|
+
const { user: c, getAccessToken: A } = ae(), u = H({
|
|
395
395
|
id: "",
|
|
396
396
|
timestamp: "",
|
|
397
397
|
message: ""
|
|
@@ -399,7 +399,7 @@ const ht = ({
|
|
|
399
399
|
sortDirection: l.sortDirection || G.DESC,
|
|
400
400
|
sortedCell: l.sortedCell || L
|
|
401
401
|
}, {
|
|
402
|
-
setChatId:
|
|
402
|
+
setChatId: d,
|
|
403
403
|
setInitialMessages: R,
|
|
404
404
|
dispatch: T
|
|
405
405
|
} = z(Je), { setInput: h } = Fe(), [y, E] = v({
|
|
@@ -439,9 +439,9 @@ const ht = ({
|
|
|
439
439
|
}, f = async (a) => {
|
|
440
440
|
try {
|
|
441
441
|
await r({
|
|
442
|
-
userId:
|
|
442
|
+
userId: c?.username || "",
|
|
443
443
|
id: a
|
|
444
|
-
}),
|
|
444
|
+
}), m(""), await Ye(tt, {
|
|
445
445
|
autoClose: 2e3,
|
|
446
446
|
containerId: "history-table"
|
|
447
447
|
});
|
|
@@ -466,15 +466,15 @@ const ht = ({
|
|
|
466
466
|
restoredTimestamp: _.data?.timestamp || "",
|
|
467
467
|
restoredUsage: _.data?.tokenUsage || 0
|
|
468
468
|
}
|
|
469
|
-
}), h(""),
|
|
469
|
+
}), h(""), d(a.id), R(_.data.messages), n(!1);
|
|
470
470
|
} catch {
|
|
471
471
|
}
|
|
472
472
|
}, $ = (a) => {
|
|
473
|
-
|
|
473
|
+
u.current = {
|
|
474
474
|
id: a.id,
|
|
475
475
|
timestamp: a.timestamp,
|
|
476
476
|
message: a.summary
|
|
477
|
-
},
|
|
477
|
+
}, i(
|
|
478
478
|
() => f(a.id),
|
|
479
479
|
/* @__PURE__ */ p(B, { children: [
|
|
480
480
|
/* @__PURE__ */ e("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
@@ -489,7 +489,7 @@ const ht = ({
|
|
|
489
489
|
] })
|
|
490
490
|
] })
|
|
491
491
|
] })
|
|
492
|
-
), P === a.id && (
|
|
492
|
+
), P === a.id && (d(Ue()), R([]), h(""), T({
|
|
493
493
|
type: Pe,
|
|
494
494
|
payload: {
|
|
495
495
|
privateChat: !1,
|
|
@@ -525,13 +525,13 @@ const ht = ({
|
|
|
525
525
|
open: t,
|
|
526
526
|
onOpenChange: n
|
|
527
527
|
}) => {
|
|
528
|
-
const
|
|
528
|
+
const m = H(null), { getAccessToken: o, user: C } = ae(), [x, g] = W([]), i = H(null), { state: c, dispatch: A } = z(ie), [, u] = v({
|
|
529
529
|
key: N + Ae,
|
|
530
|
-
initialValue:
|
|
530
|
+
initialValue: c.searchString
|
|
531
531
|
}), [l, s] = v({
|
|
532
532
|
key: N + De,
|
|
533
533
|
initialValue: !0
|
|
534
|
-
}), [D,
|
|
534
|
+
}), [D, d] = v({
|
|
535
535
|
key: N + _e,
|
|
536
536
|
initialValue: !1
|
|
537
537
|
}), [R, T] = v({
|
|
@@ -552,9 +552,9 @@ const ht = ({
|
|
|
552
552
|
} = we({
|
|
553
553
|
enabled: t,
|
|
554
554
|
user: C?.username || "",
|
|
555
|
-
searchString:
|
|
556
|
-
sortDirection:
|
|
557
|
-
sortedCell:
|
|
555
|
+
searchString: c.searchString || "",
|
|
556
|
+
sortDirection: c.sortDirection || G.DESC,
|
|
557
|
+
sortedCell: c.sortedCell || L,
|
|
558
558
|
getAccessToken: o,
|
|
559
559
|
keywordMatchAll: l,
|
|
560
560
|
withMediaOnly: D,
|
|
@@ -567,7 +567,7 @@ const ht = ({
|
|
|
567
567
|
S && g(S);
|
|
568
568
|
}, [S]);
|
|
569
569
|
const _ = async (k) => {
|
|
570
|
-
|
|
570
|
+
u(k), A({
|
|
571
571
|
type: Ee,
|
|
572
572
|
payload: { searchString: k }
|
|
573
573
|
});
|
|
@@ -576,7 +576,7 @@ const ht = ({
|
|
|
576
576
|
}, 800), q = (k) => {
|
|
577
577
|
s(k);
|
|
578
578
|
}, ce = (k) => {
|
|
579
|
-
|
|
579
|
+
d(k);
|
|
580
580
|
}, de = (k) => {
|
|
581
581
|
T(k);
|
|
582
582
|
};
|
|
@@ -601,13 +601,13 @@ const ht = ({
|
|
|
601
601
|
open: t,
|
|
602
602
|
onOpenChange: n,
|
|
603
603
|
title: nt,
|
|
604
|
-
initialFocus:
|
|
605
|
-
footer: /* @__PURE__ */ e(Ke, { onOpenChange: n, ref:
|
|
604
|
+
initialFocus: m,
|
|
605
|
+
footer: /* @__PURE__ */ e(Ke, { onOpenChange: n, ref: m }),
|
|
606
606
|
children: /* @__PURE__ */ p("div", { className: "flex h-full flex-col gap-4", children: [
|
|
607
607
|
/* @__PURE__ */ e(
|
|
608
608
|
ve,
|
|
609
609
|
{
|
|
610
|
-
header: I &&
|
|
610
|
+
header: I && c.searchString ? "Loading..." : c.searchString ? "Filters applied" : "Filters",
|
|
611
611
|
toggles: /* @__PURE__ */ p(B, { children: [
|
|
612
612
|
/* @__PURE__ */ e(
|
|
613
613
|
Z,
|
|
@@ -643,12 +643,12 @@ const ht = ({
|
|
|
643
643
|
}
|
|
644
644
|
)
|
|
645
645
|
] }),
|
|
646
|
-
inputSearchRef:
|
|
646
|
+
inputSearchRef: i,
|
|
647
647
|
onSearchChange: V,
|
|
648
|
-
defaultValue:
|
|
649
|
-
resetDisabled:
|
|
648
|
+
defaultValue: c.searchString,
|
|
649
|
+
resetDisabled: c.searchString === "",
|
|
650
650
|
onResetSearch: () => {
|
|
651
|
-
_(""),
|
|
651
|
+
_(""), i.current?.value && (i.current.value = "", i.current.focus());
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
),
|
|
@@ -661,8 +661,8 @@ const ht = ({
|
|
|
661
661
|
onOpenChange: n,
|
|
662
662
|
isLoading: I,
|
|
663
663
|
totalHistoryCount: b,
|
|
664
|
-
isFiltered: !!
|
|
665
|
-
isSearchActive: !!
|
|
664
|
+
isFiltered: !!c.searchString,
|
|
665
|
+
isSearchActive: !!c.searchString,
|
|
666
666
|
requestConfirmation: P
|
|
667
667
|
}
|
|
668
668
|
) })
|
|
@@ -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.KoZIit7c.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.ByusSkIJ.js";
|
|
4
|
+
import { Card as B } from "./index.BS9UqT8G.js";
|
|
5
|
+
import { TextInput as O, TextInputMask as T } from "./index.wNocmUkc.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({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Z, { useRef as b, useEffect as Q, useCallback as $1, useState as t2, useMemo as h1, useContext as e2, useId as c2, useLayoutEffect as _1 } from "react";
|
|
2
2
|
import { jsxs as a, jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import l from "clsx";
|
|
4
|
-
import { B as p, Z as o2, l as s2, E as n2 } from "./index.
|
|
4
|
+
import { B as p, Z as o2, l as s2, E as n2 } from "./index.KoZIit7c.js";
|
|
5
5
|
const r2 = {
|
|
6
6
|
ASC: "asc",
|
|
7
7
|
DESC: "desc"
|