@versini/sassysaint 8.123.0 → 8.124.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.
Files changed (84) hide show
  1. package/dist/chunks/{AboutChangelog.2b4KllZd.js → AboutChangelog.Cx_wPJ7Z.js} +2 -2
  2. package/dist/chunks/AboutEntry.DmNrMr5s.js +75 -0
  3. package/dist/chunks/{App.B_LD-vR0.js → App.BzXfTo0l.js} +2991 -2961
  4. package/dist/chunks/{BubbleActions.DTbMzW7Z.js → BubbleActions.Ce6tfTUh.js} +3 -3
  5. package/dist/chunks/{ButtonIconDelete.Bz-eNl50.js → ButtonIconDelete.jHkJLbpb.js} +4 -4
  6. package/dist/chunks/{Chart.CsUQ6BC_.js → Chart._j38jx2j.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.9yXdO78H.js → ChatBubbleAssistant.CkQRnSQt.js} +5 -5
  8. package/dist/chunks/{ChatBubbleUser.Zx32Vast.js → ChatBubbleUser.DMJbYD3z.js} +4 -4
  9. package/dist/chunks/GenericPanel.DmIVt33k.js +26 -0
  10. package/dist/chunks/{HistoryEntry.BrWVv3Ht.js → HistoryEntry.Cq6AUyXj.js} +89 -92
  11. package/dist/chunks/{LoginEntry.DEGPxs5r.js → LoginEntry.X1jBcMKD.js} +4 -4
  12. package/dist/chunks/{LogoEntry.B_z9Z3M8.js → LogoEntry.C2Nrhfij.js} +1 -1
  13. package/dist/chunks/{MemoriesEntry.DK3ujPS1.js → MemoriesEntry.BljMJwoe.js} +104 -107
  14. package/dist/chunks/{ProfileEntry.AocAbsku.js → ProfileEntry.vB7iyiQe.js} +62 -64
  15. package/dist/chunks/{SettingsEntry.CwfjIKPJ.js → SettingsEntry.WDa-6Ahy.js} +74 -76
  16. package/dist/chunks/{UsageEntry.uZCmdgqM.js → UsageEntry.CAtBTMVV.js} +68 -70
  17. package/dist/chunks/{_baseUniq.C8HdfQH2.js → _baseUniq.BzsifY_A.js} +1 -1
  18. package/dist/chunks/{arc.Ra7O3rum.js → arc.B3lKcxnQ.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.BB18gzA_.js → architecture-U656AL7Q.BFw7ZYGi.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.DPcCGn6O.js → architectureDiagram-VXUJARFQ.DW4_F9jT.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.BY6WNivV.js → blockDiagram-VD42YOAC.99a2hvnj.js} +5 -5
  22. package/dist/chunks/{browser.5cmTf-no.js → browser.CqPCGHhZ.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.BV46OiQA.js → c4Diagram-YG6GDRKO.myMIBFPP.js} +2 -2
  24. package/dist/chunks/{channel.DQic9pyC.js → channel.Dkod3nLl.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.C_06byXU.js → chunk-4BX2VUAB.C0KRn8vY.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.CCuxDebN.js → chunk-55IACEB6.Dw_54Cwl.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.BXh24WoS.js → chunk-B4BG7PRW.CQQl7odk.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.BFSADeqI.js → chunk-DI55MBZ5.DtwHmQbD.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.yQCTEezB.js → chunk-FMBD7UC4.Dw-3jbfc.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.c7v3jei8.js → chunk-QN33PNHL.DRzByK1N.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.D5Goy_jc.js → chunk-QZHKN3VN.CCoztZwn.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.Db1SY_yc.js → chunk-TZMSLE5B.DUj8ncNV.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.CWCjlp4V.js → classDiagram-2ON5EDUG.cwLdwiQY.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.CWCjlp4V.js → classDiagram-v2-WZHVMYZB.cwLdwiQY.js} +2 -2
  35. package/dist/chunks/{clone.DSp7aupr.js → clone.DlO4Hr4-.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.D7q6FQwl.js → cose-bilkent-S5V4N54A.B_u1DhXJ.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.DpMx3i6h.js → dagre-6UL2VRFP.TBSnBVmF.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.M6UyMSHA.js → diagram-PSM6KHXK.DLpLnaMT.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.VE43YUIc.js → diagram-QEK2KX5R.iJhCSncs.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.zDWy68f2.js → diagram-S2PKOQOG.DzTERqf6.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.-jbdKq4R.js → erDiagram-Q2GNP2WA.CWynsTWD.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.CGg4MUOQ.js → flowDiagram-NV44I4VS.CUp4f8Ee.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.DmhJyzDl.js → ganttDiagram-JELNMOA3.BwMInK9h.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.1wv59Q1r.js → gitGraph-F6HP7TQM.DBVb1BdV.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.YLGGNdEP.js → gitGraphDiagram-NY62KEGX.j-nQ2JMn.js} +4 -4
  46. package/dist/chunks/{graph.BYoh5-LR.js → graph.BYpjTE9p.js} +2 -2
  47. package/dist/chunks/{index.CKdtlPDt.js → index.7rI3Zh6S.js} +3 -3
  48. package/dist/chunks/{index.D9YGZJvd.js → index.BFB2eeJO.js} +1 -1
  49. package/dist/chunks/{index.BBQ9YA1A.js → index.C09rfIPz.js} +1 -1
  50. package/dist/chunks/{index.CWjP4XNc.js → index.C6m5EDTb.js} +3 -3
  51. package/dist/chunks/{index.CgzUcaZl.js → index.CRokoEy5.js} +1 -1
  52. package/dist/chunks/{index.CzU9anvi.js → index.CSlM5RvZ.js} +1 -1
  53. package/dist/chunks/{index.BqpPP_Qo.js → index.Cm_5g9xp.js} +2 -2
  54. package/dist/chunks/{index.BdkrSQGX.js → index.DGtZMa5X.js} +1 -1
  55. package/dist/chunks/{index.SlB0lWhv.js → index.DsvBmOFD.js} +1 -1
  56. package/dist/chunks/{index.CPvhzPtL.js → index.TAyzxG2x.js} +1 -1
  57. package/dist/chunks/{info-NVLQJR56.DI1hYUZz.js → info-NVLQJR56.BgH6c6De.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.BNOSPFJn.js → infoDiagram-WHAUD3N6.BZPdtfIu.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.D8dj4q37.js → journeyDiagram-XKPGCS4Q.D315Q2BL.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.BmNqB2-l.js → kanban-definition-3W4ZIXB7.BCjgsWf5.js} +2 -2
  61. package/dist/chunks/{layout.mMx6y2Pz.js → layout.9eeN3x8q.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.oqKnYEL4.js → mermaid-parser.core.CoF1zxxn.js} +10 -10
  63. package/dist/chunks/{min.3TgVSBMD.js → min.Db-v_EbW.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.B5qssEA-.js → mindmap-definition-VGOIOE7T.Gn_j5hFa.js} +3 -3
  65. package/dist/chunks/{packet-BFZMPI3H.CrC8NvWk.js → packet-BFZMPI3H.C7CPhtVD.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.DHbl4pxc.js → pie-7BOR55EZ.DPOlEPeF.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.CYOcE02w.js → pieDiagram-ADFJNKIX.H9WpXELq.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.B7jLhGq_.js → quadrantDiagram-AYHSOK5B.CRrm72Te.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.DVGleN7L.js → radar-NHE76QYJ.BTlYEVpC.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.Dpx1ScMs.js → rehype-mermaid.Ho-bmgDt.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.cquXzCW7.js → requirementDiagram-UZGBJVZJ.CoxuILcQ.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.CKKwZCSA.js → sankeyDiagram-TZEHDZUN.CQ35FCEw.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.0x1WkjsU.js → sequenceDiagram-WL72ISMW.Dimfha52.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.CTYt5iL3.js → stateDiagram-FKZM4ZOC.DHY9BdZ2.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.C0y3zYNK.js → stateDiagram-v2-4FDKWEC3.BIeOiDVI.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.dbaugo2t.js → timeline-definition-IT6M3QCI.rQIKlqdA.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.DHyW_wIs.js → treemap-KMMF4GRG.DDkoXxdM.js} +1 -1
  78. package/dist/chunks/{useMarkdown.DTcNqkyN.js → useMarkdown.DZkkRI9v.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.DvTp-PjK.js → xychartDiagram-PRI3JC2R.Jw3wJAbf.js} +1 -1
  80. package/dist/components/SassySaint/SassySaint.js +1 -1
  81. package/dist/index.js +3 -3
  82. package/dist/style.css +1 -1
  83. package/package.json +3 -3
  84. package/dist/chunks/AboutEntry.BYQKcrCI.js +0 -77
@@ -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.BqpPP_Qo.js";
3
- import { ButtonIcon as g, IconCopied as _, IconCopy as z, ChatContext as H, IconBranch as N, TOAST_CHAT_BRANCHED as R } from "./LogoEntry.B_z9Z3M8.js";
2
+ import { n as I, useUserPreferences as M } from "./index.Cm_5g9xp.js";
3
+ import { ButtonIcon as g, IconCopied as _, IconCopy as z, ChatContext as H, IconBranch as N, TOAST_CHAT_BRANCHED as R } from "./LogoEntry.C2Nrhfij.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.B_LD-vR0.js";
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.BzXfTo0l.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,10 +1,10 @@
1
1
  import { jsx as i, jsxs as A, Fragment as pe } from "react/jsx-runtime";
2
2
  import ve, { useRef as T, 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 Te, IconSort as we, ButtonIcon as Ne, IconDelete as Ae } from "./LogoEntry.B_z9Z3M8.js";
4
- import { Card as Ie } from "./index.CzU9anvi.js";
5
- import { TextInput as Fe } from "./index.BBQ9YA1A.js";
3
+ import { IconSearch as xe, Button as He, CellWrapper as E, BlurEffects as B, IconSortUp as Se, IconSortDown as Te, IconSort as we, ButtonIcon as Ne, IconDelete as Ae } from "./LogoEntry.C2Nrhfij.js";
4
+ import { Card as Ie } from "./index.CSlM5RvZ.js";
5
+ import { TextInput as Fe } from "./index.C09rfIPz.js";
6
6
  import f from "clsx";
7
- import { ResponsiveTooltip as Re } from "./App.B_LD-vR0.js";
7
+ import { ResponsiveTooltip as Re } from "./App.BzXfTo0l.js";
8
8
  const Be = 300;
9
9
  function De(e, n) {
10
10
  const { duration: r = Be, enabled: s = !0 } = n ?? {}, t = T(null), [o, a] = S({
@@ -1,7 +1,7 @@
1
1
  import { jsx as Up } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as Pn, isProbablyMobile as $p } from "./App.B_LD-vR0.js";
2
+ import { getDefaultExportFromCjs as Pn, isProbablyMobile as $p } from "./App.BzXfTo0l.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.B_z9Z3M8.js";
4
+ import { TRIMESTERS_SHORT as Zp, TRIMESTERS as Mn, TIME_RANGES as xs, TIME_RANGE_LABELS as Sn } from "./LogoEntry.C2Nrhfij.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.BqpPP_Qo.js";
3
- import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.B_LD-vR0.js";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as St } from "./index.Cm_5g9xp.js";
3
+ import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.BzXfTo0l.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.DTcNqkyN.js";
7
- import { ChatContext as ds, AppContext as ms } from "./LogoEntry.B_z9Z3M8.js";
8
- import { BubbleActions as ps } from "./BubbleActions.DTbMzW7Z.js";
6
+ import { useMarkdown as hs } from "./useMarkdown.DZkkRI9v.js";
7
+ import { ChatContext as ds, AppContext as ms } from "./LogoEntry.C2Nrhfij.js";
8
+ import { BubbleActions as ps } from "./BubbleActions.Ce6tfTUh.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.B_LD-vR0.js";
3
- import { Button as C } from "./LogoEntry.B_z9Z3M8.js";
2
+ import { Bubble as k } from "./App.BzXfTo0l.js";
3
+ import { Button as C } from "./LogoEntry.C2Nrhfij.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.DTcNqkyN.js";
6
- import { BubbleCopyToClipboard as I } from "./BubbleActions.DTbMzW7Z.js";
5
+ import { useMarkdown as w } from "./useMarkdown.DZkkRI9v.js";
6
+ import { BubbleCopyToClipboard as I } from "./BubbleActions.Ce6tfTUh.js";
7
7
  const L = 200, h = ({ string: e, idealLength: r = L }) => {
8
8
  if (e.length <= r)
9
9
  return {
@@ -0,0 +1,26 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Panel as l, isProbablyMobile as f } from "./App.BzXfTo0l.js";
3
+ const s = ({
4
+ open: r,
5
+ onOpenChange: a,
6
+ title: n,
7
+ children: o,
8
+ initialFocus: i,
9
+ footer: t
10
+ }) => /* @__PURE__ */ e(
11
+ l,
12
+ {
13
+ open: r,
14
+ onOpenChange: a,
15
+ title: n,
16
+ animation: !0,
17
+ animationType: "fade",
18
+ blurEffect: f() ? "none" : "large",
19
+ initialFocus: i,
20
+ footer: /* @__PURE__ */ e("div", { className: "flex flex-wrap justify-end gap-x-2", children: t }),
21
+ children: o
22
+ }
23
+ );
24
+ export {
25
+ s as GenericPanel
26
+ };
@@ -1,10 +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 ye, LOCAL_STORAGE_CHAT_ID as Ce, 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 we, useChatsHistory as ke, useUserChatStats as Re, ACTION_SEARCH as Ee } from "./index.BqpPP_Qo.js";
3
- import { DataGridContext as X, useColumnMeasurement as be, getBodyClass as Ie, DataGridHeader as Oe, DataGridRow as oe, DataGridCell as k, DataGridCellSort as Q, ButtonIconDelete as Le, DataGrid as Ne, InlineFilter as ve, AnimatedWrapper as He } from "./ButtonIconDelete.Bz-eNl50.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, Panel as qe, debounce as Ke, Toggle as Z, ButtonCancel as je } from "./App.B_LD-vR0.js";
5
- import { forwardRef as ze, useContext as z, useRef as H, useState as W, useCallback as Y, useEffect as F, useImperativeHandle as Xe, useMemo as J } from "react";
6
- import { CellWrapper as ne, ButtonIcon as Qe, IconRestore as Ze, CARDS as Je, HistoryContext as ie, ChatContext as et, SortDirections as G, APP_CLASSNAME as tt, TOAST_CHAT_DELETED as nt, HISTORY_TITLE as rt } from "./LogoEntry.B_z9Z3M8.js";
7
- import { Pill as re } from "./index.D9YGZJvd.js";
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.Cm_5g9xp.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.jHkJLbpb.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.BzXfTo0l.js";
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.C2Nrhfij.js";
7
+ import { GenericPanel as rt } from "./GenericPanel.DmIVt33k.js";
8
+ import { Pill as re } from "./index.BFB2eeJO.js";
8
9
  import K from "clsx";
9
10
  const st = 20, at = 5, ot = "20px", se = "data-row-index";
10
11
  function lt(t) {
@@ -17,15 +18,15 @@ function lt(t) {
17
18
  }
18
19
  return null;
19
20
  }
20
- function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMargin: y = ot, onVisibleCountChange: x, className: g }, u) {
21
+ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMargin: C = ot, onVisibleCountChange: x, className: g }, u) {
21
22
  const i = z(X), A = H(null), m = H(null), l = H(null), s = t.length, D = Math.min(d + o, s), [c, R] = W(D), T = c < s, h = Y((r) => {
22
23
  const S = A.current;
23
24
  if (!S)
24
25
  return;
25
26
  const f = S.querySelector(`[${se}="${r}"]`);
26
27
  if (f) {
27
- const b = f.querySelector('[role="row"]');
28
- b && b.scrollIntoView({
28
+ const I = f.querySelector('[role="row"]');
29
+ I && I.scrollIntoView({
29
30
  behavior: "smooth",
30
31
  block: "center"
31
32
  });
@@ -41,7 +42,7 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
41
42
  }, [
42
43
  c,
43
44
  h
44
- ]), Xe(u, () => ({
45
+ ]), ze(u, () => ({
45
46
  scrollToIndex: (r) => {
46
47
  if (r < 0 || r >= s) {
47
48
  console.warn(`scrollToIndex: index ${r} is out of bounds (0-${s - 1})`);
@@ -72,7 +73,7 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
72
73
  s,
73
74
  x
74
75
  ]);
75
- const C = Y((r) => {
76
+ const y = Y((r) => {
76
77
  r[0]?.isIntersecting && R((f) => Math.min(f + d, s));
77
78
  }, [
78
79
  d,
@@ -80,15 +81,15 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
80
81
  ]), E = Y((r) => {
81
82
  if (m.current && (m.current.disconnect(), m.current = null), r && T) {
82
83
  const S = lt(r);
83
- m.current = new IntersectionObserver(C, {
84
+ m.current = new IntersectionObserver(y, {
84
85
  root: S,
85
- rootMargin: y
86
+ rootMargin: C
86
87
  }), m.current.observe(r);
87
88
  }
88
89
  }, [
89
90
  T,
90
- C,
91
- y
91
+ y,
92
+ C
92
93
  ]);
93
94
  F(() => () => {
94
95
  m.current?.disconnect();
@@ -113,11 +114,11 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
113
114
  background: "transparent"
114
115
  }
115
116
  }, "__infinite-scroll-marker-inline__"));
116
- const b = !T && f === S;
117
+ const I = !T && f === S;
117
118
  r.push(/* @__PURE__ */ e(X.Provider, {
118
119
  value: {
119
120
  ...U,
120
- isLastRow: b
121
+ isLastRow: I
121
122
  },
122
123
  children: /* @__PURE__ */ e("div", {
123
124
  [se]: f,
@@ -146,8 +147,8 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
146
147
  E,
147
148
  U
148
149
  ]);
149
- be(A, M);
150
- const P = Ie(g);
150
+ Ie(A, M);
151
+ const P = be(g);
151
152
  return /* @__PURE__ */ e(X.Provider, {
152
153
  value: {
153
154
  ...i,
@@ -161,22 +162,22 @@ function it({ data: t, children: n, batchSize: d = st, threshold: o = at, rootMa
161
162
  })
162
163
  });
163
164
  }
164
- const ct = /* @__PURE__ */ ze(it), dt = ({
165
+ const ct = /* @__PURE__ */ je(it), dt = ({
165
166
  sortDirection: t,
166
167
  sortedCell: n,
167
168
  onSortChange: d,
168
169
  caption: o,
169
- isSearchActive: y = !1,
170
+ isSearchActive: C = !1,
170
171
  showTokenUsage: x = !0
171
172
  }) => {
172
173
  const g = (u) => {
173
174
  d(u);
174
175
  };
175
176
  return /* @__PURE__ */ e(Oe, { caption: o, children: /* @__PURE__ */ p(oe, { children: [
176
- /* @__PURE__ */ e(k, { className: "invisible", children: "Row" }),
177
+ /* @__PURE__ */ e(w, { className: "invisible", children: "Row" }),
177
178
  x ? /* @__PURE__ */ p(B, { children: [
178
- /* @__PURE__ */ e(k, { className: "text-xs sm:text-sm", children: "Summary" }),
179
- y ? /* @__PURE__ */ e(k, { className: "text-xs sm:text-sm", children: "Date" }) : /* @__PURE__ */ e(
179
+ /* @__PURE__ */ e(w, { className: "text-xs sm:text-sm", children: "Summary" }),
180
+ C ? /* @__PURE__ */ e(w, { className: "text-xs sm:text-sm", children: "Date" }) : /* @__PURE__ */ e(
180
181
  Q,
181
182
  {
182
183
  buttonClassName: "text-xs sm:text-sm",
@@ -188,7 +189,7 @@ const ct = /* @__PURE__ */ ze(it), dt = ({
188
189
  children: "Date"
189
190
  }
190
191
  ),
191
- y ? /* @__PURE__ */ e(k, { align: "right", className: "text-xs sm:text-sm", children: "Tokens" }) : /* @__PURE__ */ e(
192
+ C ? /* @__PURE__ */ e(w, { align: "right", className: "text-xs sm:text-sm", children: "Tokens" }) : /* @__PURE__ */ e(
192
193
  Q,
193
194
  {
194
195
  buttonClassName: "text-xs sm:text-sm",
@@ -201,7 +202,7 @@ const ct = /* @__PURE__ */ ze(it), dt = ({
201
202
  }
202
203
  )
203
204
  ] }) : /* @__PURE__ */ p(B, { children: [
204
- y ? /* @__PURE__ */ e(k, { className: "text-xs sm:text-sm", children: "Date" }) : /* @__PURE__ */ e(
205
+ C ? /* @__PURE__ */ e(w, { className: "text-xs sm:text-sm", children: "Date" }) : /* @__PURE__ */ e(
205
206
  Q,
206
207
  {
207
208
  buttonClassName: "text-xs sm:text-sm",
@@ -213,9 +214,9 @@ const ct = /* @__PURE__ */ ze(it), dt = ({
213
214
  children: "Date"
214
215
  }
215
216
  ),
216
- /* @__PURE__ */ e(k, { className: "text-xs sm:text-sm", children: "Summary" })
217
+ /* @__PURE__ */ e(w, { className: "text-xs sm:text-sm", children: "Summary" })
217
218
  ] }),
218
- /* @__PURE__ */ e(k, { align: "right", className: "text-xs sm:text-sm", children: "Actions" })
219
+ /* @__PURE__ */ e(w, { align: "right", className: "text-xs sm:text-sm", children: "Actions" })
219
220
  ] }) });
220
221
  };
221
222
  function mt(t, n, d) {
@@ -232,10 +233,10 @@ function ut({
232
233
  index: n,
233
234
  onClickRestore: d,
234
235
  onClickDelete: o,
235
- showTokenUsage: y = !0,
236
+ showTokenUsage: C = !0,
236
237
  isActive: x = !1
237
238
  }) {
238
- const g = t.timestamp.split(",")[0], u = t.similarityScore !== void 0 && t.similarityScore !== null ? Math.round(t.similarityScore * 100) : null, i = u !== null && u < 40 ? "warning" : "success", A = t.keywordMatch === !0, m = /* @__PURE__ */ e(k, { className: K(j.summary), children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
239
+ const g = t.timestamp.split(",")[0], u = t.similarityScore !== void 0 && t.similarityScore !== null ? Math.round(t.similarityScore * 100) : null, i = u !== null && u < 40 ? "warning" : "success", A = t.keywordMatch === !0, m = /* @__PURE__ */ e(w, { className: K(j.summary), children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-1", children: [
239
240
  (u !== null || A) && /* @__PURE__ */ p("div", { className: "flex flex-wrap gap-1", children: [
240
241
  u !== null && /* @__PURE__ */ e(
241
242
  re,
@@ -247,14 +248,14 @@ function ut({
247
248
  A && /* @__PURE__ */ e(re, { variant: "information", label: "keyword" })
248
249
  ] }),
249
250
  le() ? /* @__PURE__ */ e("span", { title: t.summary, children: t.summary }) : /* @__PURE__ */ e("span", { className: "truncate", title: t.summary, children: t.summary })
250
- ] }) }), l = /* @__PURE__ */ e(k, { className: K(j.timestamp), children: g }), s = y ? /* @__PURE__ */ e(k, { align: "right", className: K(j.tokenUsage), children: t.tokenUsage ? Me.format(t.tokenUsage) : "0" }) : null, D = /* @__PURE__ */ e(k, { align: "center", borderLeft: !0, children: /* @__PURE__ */ p("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
251
+ ] }) }), l = /* @__PURE__ */ e(w, { className: K(j.timestamp), children: g }), s = C ? /* @__PURE__ */ e(w, { align: "right", className: K(j.tokenUsage), children: t.tokenUsage ? Me.format(t.tokenUsage) : "0" }) : null, D = /* @__PURE__ */ e(w, { align: "center", borderLeft: !0, children: /* @__PURE__ */ p("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
251
252
  /* @__PURE__ */ e(
252
253
  Ge,
253
254
  {
254
255
  label: "Restore chat",
255
256
  placement: "top",
256
257
  trigger: /* @__PURE__ */ e(
257
- Qe,
258
+ Xe,
258
259
  {
259
260
  noBorder: !0,
260
261
  label: "Restore chat",
@@ -263,7 +264,7 @@ function ut({
263
264
  await d(t);
264
265
  },
265
266
  children: /* @__PURE__ */ e(
266
- Ze,
267
+ Qe,
267
268
  {
268
269
  size: "size-3",
269
270
  monotone: !0,
@@ -286,8 +287,8 @@ function ut({
286
287
  )
287
288
  ] }) });
288
289
  return /* @__PURE__ */ p(oe, { active: x, children: [
289
- /* @__PURE__ */ e(k, { className: K(j.rowNumber), children: n + 1 }),
290
- y ? /* @__PURE__ */ p(B, { children: [
290
+ /* @__PURE__ */ e(w, { className: K(j.rowNumber), children: n + 1 }),
291
+ C ? /* @__PURE__ */ p(B, { children: [
291
292
  m,
292
293
  l,
293
294
  s
@@ -303,7 +304,7 @@ const ht = ({
303
304
  sortDirection: n,
304
305
  sortedCell: d,
305
306
  onSortChange: o,
306
- onClickRestore: y,
307
+ onClickRestore: C,
307
308
  onClickDelete: x,
308
309
  isLoading: g = !1,
309
310
  totalHistoryCount: u,
@@ -316,14 +317,14 @@ const ht = ({
316
317
  if (!m || D.current)
317
318
  return;
318
319
  const h = t.findIndex(
319
- (C) => C.id === m
320
+ (y) => y.id === m
320
321
  );
321
322
  if (h !== -1) {
322
323
  D.current = !0;
323
- const C = setTimeout(() => {
324
+ const y = setTimeout(() => {
324
325
  s.current?.scrollToIndex(h);
325
326
  }, 100);
326
- return () => clearTimeout(C);
327
+ return () => clearTimeout(y);
327
328
  }
328
329
  }, [m, t]), F(() => {
329
330
  D.current = !1;
@@ -363,17 +364,17 @@ const ht = ({
363
364
  data: t.filter((h) => h?.summary),
364
365
  batchSize: he,
365
366
  threshold: ue,
366
- children: (h, C) => /* @__PURE__ */ e(
367
+ children: (h, y) => /* @__PURE__ */ e(
367
368
  ut,
368
369
  {
369
370
  item: h,
370
- index: C,
371
- onClickRestore: y,
371
+ index: y,
372
+ onClickRestore: C,
372
373
  onClickDelete: x,
373
374
  showTokenUsage: !l,
374
375
  isActive: m === h.id
375
376
  },
376
- `${Je.HISTORY.TITLE}-${h.id}-${C}`
377
+ `${Ze.HISTORY.TITLE}-${h.id}-${y}`
377
378
  )
378
379
  }
379
380
  )
@@ -385,7 +386,7 @@ const ht = ({
385
386
  onOpenChange: n,
386
387
  mutate: d,
387
388
  isLoading: o = !1,
388
- totalHistoryCount: y,
389
+ totalHistoryCount: C,
389
390
  isFiltered: x = !1,
390
391
  isSearchActive: g = !1,
391
392
  requestConfirmation: u
@@ -401,30 +402,30 @@ const ht = ({
401
402
  setChatId: c,
402
403
  setInitialMessages: R,
403
404
  dispatch: T
404
- } = z(et), { setInput: h } = Fe(), [C, E] = v({
405
+ } = z(Je), { setInput: h } = Fe(), [y, E] = v({
405
406
  key: N + fe,
406
407
  initialValue: G.DESC
407
408
  }), [O, U] = v({
408
409
  key: N + pe,
409
410
  initialValue: G.ASC
410
411
  }), [, M] = v({
411
- key: N + ye,
412
+ key: N + Ce,
412
413
  initialValue: L
413
414
  }), [P] = v({
414
- key: N + Ce,
415
+ key: N + ye,
415
416
  initialValue: ""
416
417
  }), { mutateAsync: r } = Se({ getAccessToken: A }), S = (a) => {
417
- const I = l.sortedCell === a;
418
+ const b = l.sortedCell === a;
418
419
  let _, V;
419
420
  switch (a) {
420
421
  case L:
421
- V = E, _ = I ? l.sortDirection : C;
422
+ V = E, _ = b ? l.sortDirection : y;
422
423
  break;
423
424
  case ee:
424
- V = U, _ = I ? l.sortDirection : O;
425
+ V = U, _ = b ? l.sortDirection : O;
425
426
  break;
426
427
  default:
427
- V = E, _ = I ? l.sortDirection : C;
428
+ V = E, _ = b ? l.sortDirection : y;
428
429
  break;
429
430
  }
430
431
  const q = _ === G.ASC ? G.DESC : G.ASC;
@@ -440,16 +441,16 @@ const ht = ({
440
441
  await r({
441
442
  userId: i?.username || "",
442
443
  id: a
443
- }), d(""), await Ye(nt, {
444
+ }), d(""), await Ye(tt, {
444
445
  autoClose: 2e3,
445
446
  containerId: "history-table"
446
447
  });
447
448
  } catch {
448
449
  }
449
- }, b = async (a) => {
450
+ }, I = async (a) => {
450
451
  try {
451
- const I = await A(), _ = await ge({
452
- accessToken: I,
452
+ const b = await A(), _ = await ge({
453
+ accessToken: b,
453
454
  type: Te.GET_CHAT,
454
455
  params: {
455
456
  id: a.id
@@ -502,7 +503,7 @@ const ht = ({
502
503
  }));
503
504
  };
504
505
  return /* @__PURE__ */ p("div", { children: [
505
- /* @__PURE__ */ e("div", { className: tt, children: /* @__PURE__ */ e(Be, { containerId: "history-table" }) }),
506
+ /* @__PURE__ */ e("div", { className: et, children: /* @__PURE__ */ e(Be, { containerId: "history-table" }) }),
506
507
  /* @__PURE__ */ e(
507
508
  ht,
508
509
  {
@@ -510,21 +511,21 @@ const ht = ({
510
511
  sortDirection: D.sortDirection,
511
512
  sortedCell: D.sortedCell,
512
513
  onSortChange: S,
513
- onClickRestore: b,
514
+ onClickRestore: I,
514
515
  onClickDelete: $,
515
516
  isLoading: o,
516
- totalHistoryCount: y,
517
+ totalHistoryCount: C,
517
518
  isFiltered: x,
518
519
  isSearchActive: g,
519
520
  activeChatId: P
520
521
  }
521
522
  )
522
523
  ] });
523
- }, Dt = ({
524
+ }, _t = ({
524
525
  open: t,
525
526
  onOpenChange: n
526
527
  }) => {
527
- const d = H(null), { getAccessToken: o, user: y } = ae(), [x, g] = W([]), u = H(null), { state: i, dispatch: A } = z(ie), [, m] = v({
528
+ const d = H(null), { getAccessToken: o, user: C } = ae(), [x, g] = W([]), u = H(null), { state: i, dispatch: A } = z(ie), [, m] = v({
528
529
  key: N + Ae,
529
530
  initialValue: i.searchString
530
531
  }), [l, s] = v({
@@ -534,11 +535,11 @@ const ht = ({
534
535
  key: N + _e,
535
536
  initialValue: !1
536
537
  }), [R, T] = v({
537
- key: N + we,
538
+ key: N + ke,
538
539
  initialValue: !1
539
- }), [h, C] = W(!1), [E, O] = W(null), [U, M] = W(null), P = Y(
540
- (w, me) => {
541
- O(() => w), M(me), C(!0);
540
+ }), [h, y] = W(!1), [E, O] = W(null), [U, M] = W(null), P = Y(
541
+ (k, me) => {
542
+ O(() => k), M(me), y(!0);
542
543
  },
543
544
  []
544
545
  ), r = Y(() => {
@@ -546,11 +547,11 @@ const ht = ({
546
547
  }, [E]), {
547
548
  data: S,
548
549
  refetch: f,
549
- isLoading: b,
550
+ isLoading: I,
550
551
  isError: $
551
- } = ke({
552
+ } = we({
552
553
  enabled: t,
553
- user: y?.username || "",
554
+ user: C?.username || "",
554
555
  searchString: i.searchString || "",
555
556
  sortDirection: i.sortDirection || G.DESC,
556
557
  sortedCell: i.sortedCell || L,
@@ -559,32 +560,32 @@ const ht = ({
559
560
  withMediaOnly: D,
560
561
  withSharedOnly: R
561
562
  }), { data: a } = Re({
562
- user: y?.username,
563
+ user: C?.username,
563
564
  getAccessToken: o
564
- }), I = a && a.totalChats ? a.totalChats - a.privateChats - a.deletedChats : 0;
565
+ }), b = a && a.totalChats ? a.totalChats - a.privateChats - a.deletedChats : 0;
565
566
  F(() => {
566
567
  S && g(S);
567
568
  }, [S]);
568
- const _ = async (w) => {
569
- m(w), A({
569
+ const _ = async (k) => {
570
+ m(k), A({
570
571
  type: Ee,
571
- payload: { searchString: w }
572
+ payload: { searchString: k }
572
573
  });
573
- }, V = Ke((w) => {
574
- _(w.target.value.trim());
575
- }, 800), q = (w) => {
576
- s(w);
577
- }, ce = (w) => {
578
- c(w);
579
- }, de = (w) => {
580
- T(w);
574
+ }, V = qe((k) => {
575
+ _(k.target.value.trim());
576
+ }, 800), q = (k) => {
577
+ s(k);
578
+ }, ce = (k) => {
579
+ c(k);
580
+ }, de = (k) => {
581
+ T(k);
581
582
  };
582
583
  return /* @__PURE__ */ p(B, { children: [
583
584
  /* @__PURE__ */ e(
584
585
  $e,
585
586
  {
586
587
  showConfirmation: h,
587
- setShowConfirmation: C,
588
+ setShowConfirmation: y,
588
589
  action: r,
589
590
  customStrings: {
590
591
  confirmAction: "Delete",
@@ -595,22 +596,18 @@ const ht = ({
595
596
  }
596
597
  ),
597
598
  /* @__PURE__ */ e(
598
- qe,
599
+ rt,
599
600
  {
600
601
  open: t,
601
602
  onOpenChange: n,
602
- title: rt,
603
- animation: !0,
604
- animationType: "fade",
605
- blurEffect: "large",
603
+ title: nt,
606
604
  initialFocus: d,
607
- className: "h-full sm:h-max",
608
- footer: /* @__PURE__ */ e("div", { className: "flex flex-wrap justify-end gap-x-2 pb-8 sm:pb-0", children: /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(je, { onOpenChange: n, ref: d }) }) }),
605
+ footer: /* @__PURE__ */ e(Ke, { onOpenChange: n, ref: d }),
609
606
  children: /* @__PURE__ */ p("div", { className: "flex h-full flex-col gap-4", children: [
610
607
  /* @__PURE__ */ e(
611
608
  ve,
612
609
  {
613
- header: b && i.searchString ? "Loading..." : i.searchString ? "Filters applied" : "Filters",
610
+ header: I && i.searchString ? "Loading..." : i.searchString ? "Filters applied" : "Filters",
614
611
  toggles: /* @__PURE__ */ p(B, { children: [
615
612
  /* @__PURE__ */ e(
616
613
  Z,
@@ -662,8 +659,8 @@ const ht = ({
662
659
  mutate: f,
663
660
  filteredHistory: x,
664
661
  onOpenChange: n,
665
- isLoading: b,
666
- totalHistoryCount: I,
662
+ isLoading: I,
663
+ totalHistoryCount: b,
667
664
  isFiltered: !!i.searchString,
668
665
  isSearchActive: !!i.searchString,
669
666
  requestConfirmation: P
@@ -675,5 +672,5 @@ const ht = ({
675
672
  ] });
676
673
  };
677
674
  export {
678
- Dt as HistoryPanel
675
+ _t as HistoryPanel
679
676
  };
@@ -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.BqpPP_Qo.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.B_z9Z3M8.js";
4
- import { Card as B } from "./index.CzU9anvi.js";
5
- import { TextInput as O, TextInputMask as T } from "./index.BBQ9YA1A.js";
2
+ import { n as N, getLayoutPaddingClass as C, getMessageContaintWrapperClass as v, isTauri as w } from "./index.Cm_5g9xp.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.C2Nrhfij.js";
4
+ import { Card as B } from "./index.CSlM5RvZ.js";
5
+ import { TextInput as O, TextInputMask as T } from "./index.C09rfIPz.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.BqpPP_Qo.js";
4
+ import { B as p, Z as o2, l as s2, E as n2 } from "./index.Cm_5g9xp.js";
5
5
  const r2 = {
6
6
  ASC: "asc",
7
7
  DESC: "desc"