@versini/sassysaint 8.119.0 → 8.119.2
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.B3zToB4T.js → AboutChangelog.D2F7IsfA.js} +2 -2
- package/dist/chunks/{AboutEntry.Dc0GMtzL.js → AboutEntry.6St28Lf5.js} +7 -7
- package/dist/chunks/{App.Bcw00dJK.js → App.Dx0i7v1f.js} +16 -16
- package/dist/chunks/{BubbleActions.BcwPpzhU.js → BubbleActions.rlJwcUek.js} +3 -3
- package/dist/chunks/ButtonIconDelete.D1XluRE7.js +512 -0
- package/dist/chunks/{Chart.B0oqrdYo.js → Chart.ClEQYypc.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DAwx85Wd.js → ChatBubbleAssistant.BaNEs-WH.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.BRTLYDmZ.js → ChatBubbleUser.BKQwt_MT.js} +4 -4
- package/dist/chunks/HistoryDataGrid.EVORyJf2.js +479 -0
- package/dist/chunks/{HistoryEntry.4GpBDf9x.js → HistoryEntry.B88FZSWr.js} +5 -5
- package/dist/chunks/{InlineFilter.Cv_LUpTp.js → InlineFilter.BC6p53ao.js} +3 -3
- package/dist/chunks/{LoginEntry.5bQhuYQl.js → LoginEntry.ChP-sVI8.js} +4 -4
- package/dist/chunks/{LogoEntry.CN5P16eA.js → LogoEntry.BX2BbPnz.js} +2 -2
- package/dist/chunks/{MemoriesEntry.D0q1U5FD.js → MemoriesEntry.7VLaTZvU.js} +6 -6
- package/dist/chunks/{ProfileEntry.Ck-5SP70.js → ProfileEntry.DjAWes3a.js} +4 -4
- package/dist/chunks/{SettingsEntry.CfB9DKIp.js → SettingsEntry.o9nEUETW.js} +5 -5
- package/dist/chunks/{UsageEntry.BCFJMOjQ.js → UsageEntry.CRYw7M5Q.js} +5 -5
- package/dist/chunks/{_baseUniq.DRTEXwBu.js → _baseUniq.qYL6t1qv.js} +1 -1
- package/dist/chunks/{arc.x_GRGNuD.js → arc.Cym5wUzu.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DSfD0nUy.js → architecture-U656AL7Q.DS4pgkMC.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.CAS-oDjc.js → architectureDiagram-VXUJARFQ.BvDQXBtF.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.P_XB2AgQ.js → blockDiagram-VD42YOAC.q0iBwpIB.js} +5 -5
- package/dist/chunks/{browser.oW1ZW8ge.js → browser.B2MccGxb.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.Dc9Vyv3k.js → c4Diagram-YG6GDRKO.TUW7Jr-h.js} +2 -2
- package/dist/chunks/{channel.TjlRRr3U.js → channel.BbbTuklR.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.BwgmyLAX.js → chunk-4BX2VUAB.CeJFN81d.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.Cgq1oeLK.js → chunk-55IACEB6.kkb8e0kJ.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.Ds2wbzEG.js → chunk-B4BG7PRW.BCtv4gxR.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.Bft9jyaz.js → chunk-DI55MBZ5.BRNj1QQD.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.DF-Zr883.js → chunk-FMBD7UC4.DX4dWsGY.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.BVMRH_Hs.js → chunk-QN33PNHL.H_LPM2vF.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.DS306ds1.js → chunk-QZHKN3VN.BMYfiX1a.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.Cl4RUaGp.js → chunk-TZMSLE5B.YB2DMjFF.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.DbFfjSp_.js → classDiagram-2ON5EDUG.BVw5YdVW.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.DbFfjSp_.js → classDiagram-v2-WZHVMYZB.BVw5YdVW.js} +2 -2
- package/dist/chunks/{clone.B8XxgJj0.js → clone.CR4Q6L6w.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.CL-tsB7O.js → cose-bilkent-S5V4N54A.DL75oZVQ.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.7xKesqEK.js → dagre-6UL2VRFP.skxnrW0m.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.D6JNXJQr.js → diagram-PSM6KHXK.CIKSCwqj.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.VaJKE9Ih.js → diagram-QEK2KX5R.CXfUdwio.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.BjCuqhPd.js → diagram-S2PKOQOG.DNP0yPuz.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.BYnxwTG-.js → erDiagram-Q2GNP2WA.DsDL14E8.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.DefWDma3.js → flowDiagram-NV44I4VS.KyT8VEH0.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.BrEeaW2n.js → ganttDiagram-JELNMOA3.BIc6-yIF.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.C4_YWAr0.js → gitGraph-F6HP7TQM.DZQnBw57.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.GGrXKGya.js → gitGraphDiagram-NY62KEGX.dp5Oo2Wm.js} +4 -4
- package/dist/chunks/{graph.BxDrvENy.js → graph.Daj4nkbR.js} +2 -2
- package/dist/chunks/{index.DvThh-C6.js → index.B0nO3wvT.js} +1 -1
- package/dist/chunks/{index.CR0NHbVR.js → index.BbXK13Js.js} +1 -1
- package/dist/chunks/{index.DS9SCH32.js → index.BpBKcgEW.js} +1 -1
- package/dist/chunks/{index.o4ZD5ALX.js → index.C-7h2KOd.js} +2 -2
- package/dist/chunks/{index.DOwjLeiM.js → index.C0ecFrQh.js} +1 -1
- package/dist/chunks/{index.CZRaE0eA.js → index.CFO0VGN_.js} +1 -1
- package/dist/chunks/{index.CsAjUl3G.js → index.CHSGxc4N.js} +3 -3
- package/dist/chunks/{index.BMADibmh.js → index.Cxl91Epa.js} +3 -3
- package/dist/chunks/{index.tqKeN7sl.js → index.Dx1p6vnB.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.E0G9wIVE.js → info-NVLQJR56.B1sH-qdY.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.CY9ADLsc.js → infoDiagram-WHAUD3N6.1AjxKmSb.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.BZHhK7w4.js → journeyDiagram-XKPGCS4Q.BXUWA_H0.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.DQSZD0Em.js → kanban-definition-3W4ZIXB7.DwKUNSwB.js} +2 -2
- package/dist/chunks/{layout.DUh_4gWb.js → layout.BurBG7fo.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.lAJFSSvC.js → mermaid-parser.core.BYpuHuuP.js} +10 -10
- package/dist/chunks/{min.B3NH5ZNz.js → min.BUzVe1CC.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.CVTcq_-S.js → mindmap-definition-VGOIOE7T.CcFtF2ym.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.CaaCaP6S.js → packet-BFZMPI3H.BYUkRp22.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.Ctr5Wngs.js → pie-7BOR55EZ.D9vQx_ny.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.v0K5SYBL.js → pieDiagram-ADFJNKIX.iNvnYxgY.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CSGhc5R-.js → quadrantDiagram-AYHSOK5B.DUv-EOEE.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.BYJioslS.js → radar-NHE76QYJ.Cr-FgGCd.js} +1 -1
- package/dist/chunks/{rehype-mermaid.CYJb7tO-.js → rehype-mermaid.CNWjRv7t.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.07FdvPam.js → requirementDiagram-UZGBJVZJ.BoczNkNl.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BJQl-LVq.js → sankeyDiagram-TZEHDZUN.PNrd5uuL.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.D3HP-wCt.js → sequenceDiagram-WL72ISMW.K8gyhsmA.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.uXuYKEnS.js → stateDiagram-FKZM4ZOC.lVblIqCD.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.i7NR_lBC.js → stateDiagram-v2-4FDKWEC3.ChcG_M0g.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.CfrxZtW7.js → timeline-definition-IT6M3QCI.i6kfP-GH.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.D0E-EXib.js → treemap-KMMF4GRG.E6EpEM17.js} +1 -1
- package/dist/chunks/{useMarkdown.CVmi3L7b.js → useMarkdown.JIM6TAXs.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.BedGeb-X.js → xychartDiagram-PRI3JC2R.wqxzlkjJ.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +4 -4
- package/dist/chunks/ButtonIconDelete.CASHORv6.js +0 -523
- package/dist/chunks/HistoryDataGrid.Bg984Jd_.js +0 -465
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useInViewport as m, ButtonScroll as n } from "./App.
|
|
2
|
+
import { useInViewport as m, ButtonScroll as n } from "./App.Dx0i7v1f.js";
|
|
3
3
|
import { useRef as f, useCallback as u, useLayoutEffect as p } from "react";
|
|
4
|
-
import { useMarkdown as d } from "./useMarkdown.
|
|
4
|
+
import { useMarkdown as d } from "./useMarkdown.JIM6TAXs.js";
|
|
5
5
|
const b = ({ content: o }) => {
|
|
6
6
|
const [l, t] = d(), { ref: a, inViewport: i } = m(), e = f(null), c = u(() => {
|
|
7
7
|
e.current && e.current.scrollIntoView({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as p, Fragment as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { pluralize as f, isProbablyMobile as g, Panel as A, ButtonCancel as B } from "./App.
|
|
2
|
+
import { pluralize as f, isProbablyMobile as g, Panel as A, ButtonCancel as B } from "./App.Dx0i7v1f.js";
|
|
3
3
|
import { Suspense as E, lazy as I, useRef as S } from "react";
|
|
4
|
-
import { useUniqueId as c, CARDS as r, ABOUT_TITLE as C } from "./LogoEntry.
|
|
5
|
-
import { Card as o } from "./index.
|
|
4
|
+
import { useUniqueId as c, CARDS as r, ABOUT_TITLE as C } from "./LogoEntry.BX2BbPnz.js";
|
|
5
|
+
import { Card as o } from "./index.Dx1p6vnB.js";
|
|
6
6
|
import O from "clsx";
|
|
7
|
-
import { useServerCapabilities as U, useChangelogs as N, renderDataAsList as d } from "./index.
|
|
7
|
+
import { useServerCapabilities as U, useChangelogs as N, renderDataAsList as d } from "./index.C-7h2KOd.js";
|
|
8
8
|
const x = I(
|
|
9
9
|
() => import(
|
|
10
10
|
/* webpackChunkName: "LazyAboutChangelog" */
|
|
11
|
-
"./AboutChangelog.
|
|
11
|
+
"./AboutChangelog.D2F7IsfA.js"
|
|
12
12
|
)
|
|
13
13
|
), L = () => {
|
|
14
14
|
const a = c(), i = c(), { data: s, isSuccess: m } = U(), { data: u, isSuccess: b } = N(), h = s?.version || "", t = s?.models || [], T = s?.buildTime || "";
|
|
@@ -20,8 +20,8 @@ const x = I(
|
|
|
20
20
|
className: "prose-dark dark:prose-lighter mb-4",
|
|
21
21
|
noBorder: !0,
|
|
22
22
|
children: d(a, {
|
|
23
|
-
[r.ABOUT.VERSION]: "8.119.
|
|
24
|
-
[r.ABOUT.BUILD_TIMESTAMP]: "01/
|
|
23
|
+
[r.ABOUT.VERSION]: "8.119.2",
|
|
24
|
+
[r.ABOUT.BUILD_TIMESTAMP]: "01/11/2026 05:00 PM EST"
|
|
25
25
|
})
|
|
26
26
|
}
|
|
27
27
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as g, jsxs as F, Fragment as ct } from "react/jsx-runtime";
|
|
2
|
-
import { ACTION_SORT as du, ACTION_SEARCH as fu, ACTION_RESET_PROMPT as Ja, ACTION_TOGGLE_PROMPT as Ka, LOCAL_STORAGE_PREFIX as He, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as pu, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as ar, useUserPreferences as vt, serverUrl as Xa, useEntitlements as Do, useSaveChat as mu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as hu, F as ir, LOCAL_STORAGE_REASONING_DISCLOSURE as gu, PROMPT_EDITABLE_AREA_CLASSNAME as vu, PROMPT_CLASSNAME as yu, X as qa, ERROR_MESSAGE as bu, o as an, v as wu, INPUT_BOTTOM_OFFSET_IPHONE as _u, INPUT_BOTTOM_OFFSET_IPAD as Eu, INPUT_BOTTOM_OFFSET as Qa, INPUT_BOTTOM_OFFSET_EXTRA as Zr, getLayoutPaddingClass as fo, canEvaluateModels as ds, W as Su, a as Cu, i as xu, s as Tu, x as Iu, c as Ur, setNewProvider as fs, useQueryClient as Au, n$1 as po, useServerCapabilities as Ru, getMessageContaintWrapperClass as Ou, UI_FOOTER_BUFFER as ei, UI_BUTTON_SCROLL_BUFFER as Nu, UI_DEFAULT_MAIN_HEIGHT as ps, e as Pu, applyOledMode as Mu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ku, y as ms, V as Du, LOCAL_STORAGE_SORT as $u, LOCAL_STORAGE_SEARCH as Lu, LOCAL_STORAGE_OLED_MODE as zu, LOCAL_STORAGE_FULL_SCREEN as Fu, LOCAL_STORAGE_SORT_TIMESTAMP as Zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Uu } from "./index.
|
|
3
|
-
import { SortDirections as rn, ChatContext as Le, ButtonIcon as jt, useTheme as Ke, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Hu, Button as ti, IconLockedLight as Vu, IconUnlockedLight as Wu, IconNext as Gu, IconSelected as Yu, IconUnSelected as Ju, PromptsContext as $o, IconBookSparklesLight as Ku, IconRewrite as Xu, IconProofread as qu, IconMagic as Qu, IconLightBulbLight as ed, IconSendLight as td, INPUT_PLACEHOLDER_TEXT_IN_SESSION as ni, INPUT_PLACEHOLDER_TEXT_MORNING as nd, INPUT_PLACEHOLDER_TEXT_TODAY as rd, INPUT_PLACEHOLDER_TEXT_AFTERNOON as od, INPUT_PLACEHOLDER_TEXT_EVENING as sd, INPUT_PLACEHOLDER_TEXT_NIGHT as ad, INPUT_PLACEHOLDER_TEXT_DEFAULT as id, IconClose as cd, AppContext as wn, useUniqueId as ld, CLIPBOARD_PROMPT as hs, FOOTER_DISCLAIMERS as gs, useResizeObserver as ri, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as mo, FOOTER_BOTTOM as on, APP_SET_FOOTER_POSITION as jr, IconOpenAI as dd, IconAnthropic as fd, IconGoogleGemini as pd, TOAST_PROVIDER_CHANGED as vs, LOG_OUT as ys, IconProfile as md, IconSliders as hd, IconHistory as gd, IconEditUser as vd, IconChart as yd, IconInfo as bd, IconBack as wd, IconSettings as _d, Logo as Ed, appReducer as Sd, APP_SET_OLED_MODE as Cd, APP_SET_FULL_SCREEN as xd, APP_SET_THEME_MODE as Td, APP_SET_THEME_PALETTE as Id, HistoryContext as Ad, APP_CLASSNAME as Rd } from "./LogoEntry.
|
|
2
|
+
import { ACTION_SORT as du, ACTION_SEARCH as fu, ACTION_RESET_PROMPT as Ja, ACTION_TOGGLE_PROMPT as Ka, LOCAL_STORAGE_PREFIX as He, LOCAL_STORAGE_CHAT_ID as Kn, n as $e, useChat as pu, DEFAULT_ICON_ACTION_SIZE as tt, isTauri as ar, useUserPreferences as vt, serverUrl as Xa, useEntitlements as Do, useSaveChat as mu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as hu, F as ir, LOCAL_STORAGE_REASONING_DISCLOSURE as gu, PROMPT_EDITABLE_AREA_CLASSNAME as vu, PROMPT_CLASSNAME as yu, X as qa, ERROR_MESSAGE as bu, o as an, v as wu, INPUT_BOTTOM_OFFSET_IPHONE as _u, INPUT_BOTTOM_OFFSET_IPAD as Eu, INPUT_BOTTOM_OFFSET as Qa, INPUT_BOTTOM_OFFSET_EXTRA as Zr, getLayoutPaddingClass as fo, canEvaluateModels as ds, W as Su, a as Cu, i as xu, s as Tu, x as Iu, c as Ur, setNewProvider as fs, useQueryClient as Au, n$1 as po, useServerCapabilities as Ru, getMessageContaintWrapperClass as Ou, UI_FOOTER_BUFFER as ei, UI_BUTTON_SCROLL_BUFFER as Nu, UI_DEFAULT_MAIN_HEIGHT as ps, e as Pu, applyOledMode as Mu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ku, y as ms, V as Du, LOCAL_STORAGE_SORT as $u, LOCAL_STORAGE_SEARCH as Lu, LOCAL_STORAGE_OLED_MODE as zu, LOCAL_STORAGE_FULL_SCREEN as Fu, LOCAL_STORAGE_SORT_TIMESTAMP as Zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Uu } from "./index.C-7h2KOd.js";
|
|
3
|
+
import { SortDirections as rn, ChatContext as Le, ButtonIcon as jt, useTheme as Ke, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Hu, Button as ti, IconLockedLight as Vu, IconUnlockedLight as Wu, IconNext as Gu, IconSelected as Yu, IconUnSelected as Ju, PromptsContext as $o, IconBookSparklesLight as Ku, IconRewrite as Xu, IconProofread as qu, IconMagic as Qu, IconLightBulbLight as ed, IconSendLight as td, INPUT_PLACEHOLDER_TEXT_IN_SESSION as ni, INPUT_PLACEHOLDER_TEXT_MORNING as nd, INPUT_PLACEHOLDER_TEXT_TODAY as rd, INPUT_PLACEHOLDER_TEXT_AFTERNOON as od, INPUT_PLACEHOLDER_TEXT_EVENING as sd, INPUT_PLACEHOLDER_TEXT_NIGHT as ad, INPUT_PLACEHOLDER_TEXT_DEFAULT as id, IconClose as cd, AppContext as wn, useUniqueId as ld, CLIPBOARD_PROMPT as hs, FOOTER_DISCLAIMERS as gs, useResizeObserver as ri, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as mo, FOOTER_BOTTOM as on, APP_SET_FOOTER_POSITION as jr, IconOpenAI as dd, IconAnthropic as fd, IconGoogleGemini as pd, TOAST_PROVIDER_CHANGED as vs, LOG_OUT as ys, IconProfile as md, IconSliders as hd, IconHistory as gd, IconEditUser as vd, IconChart as yd, IconInfo as bd, IconBack as wd, IconSettings as _d, Logo as Ed, appReducer as Sd, APP_SET_OLED_MODE as Cd, APP_SET_FULL_SCREEN as xd, APP_SET_THEME_MODE as Td, APP_SET_THEME_PALETTE as Id, HistoryContext as Ad, APP_CLASSNAME as Rd } from "./LogoEntry.BX2BbPnz.js";
|
|
4
4
|
import * as w from "react";
|
|
5
5
|
import Ze, { useSyncExternalStore as Xn, useCallback as J, useEffect as U, useRef as V, useState as B, createContext as oi, useContext as de, useMemo as Ae, useId as si, useLayoutEffect as _n, cloneElement as ai, Suspense as ho, lazy as yt, useReducer as Dn } from "react";
|
|
6
6
|
import M, { clsx as lt } from "clsx";
|
|
@@ -8024,7 +8024,7 @@ const Ic = async () => (qr || (qr = import(
|
|
|
8024
8024
|
"./index.ri2Dr1rJ.js"
|
|
8025
8025
|
)), qr), Ac = async () => (Qr || (Qr = import(
|
|
8026
8026
|
/* webpackChunkName: "toast-utilities" */
|
|
8027
|
-
"./index.
|
|
8027
|
+
"./index.C-7h2KOd.js"
|
|
8028
8028
|
).then((e) => e.utilities)), Qr), vb = async () => {
|
|
8029
8029
|
try {
|
|
8030
8030
|
await Promise.all([Ic(), Ac()]);
|
|
@@ -12441,38 +12441,38 @@ const bS = [".png", ".jpg", ".jpeg", ".webp"], wS = [".pdf", ".txt"], _S = [
|
|
|
12441
12441
|
}, XS = yt(
|
|
12442
12442
|
() => import(
|
|
12443
12443
|
/* webpackChunkName: "modal-chunk" */
|
|
12444
|
-
"./ProfileEntry.
|
|
12444
|
+
"./ProfileEntry.DjAWes3a.js"
|
|
12445
12445
|
).then((e) => ({
|
|
12446
12446
|
default: e.Profile
|
|
12447
12447
|
}))
|
|
12448
12448
|
), qS = yt(
|
|
12449
12449
|
() => import(
|
|
12450
12450
|
/* webpackChunkName: "modal-chunk" */
|
|
12451
|
-
"./SettingsEntry.
|
|
12451
|
+
"./SettingsEntry.o9nEUETW.js"
|
|
12452
12452
|
).then((e) => ({
|
|
12453
12453
|
default: e.SettingsPanel
|
|
12454
12454
|
}))
|
|
12455
12455
|
), QS = yt(
|
|
12456
12456
|
() => import(
|
|
12457
12457
|
/* webpackChunkName: "modal-chunk" */
|
|
12458
|
-
"./HistoryEntry.
|
|
12458
|
+
"./HistoryEntry.B88FZSWr.js"
|
|
12459
12459
|
).then((e) => ({
|
|
12460
12460
|
default: e.HistoryPanel
|
|
12461
12461
|
}))
|
|
12462
12462
|
), e0 = yt(
|
|
12463
12463
|
() => import(
|
|
12464
12464
|
/* webpackChunkName: "modal-chunk" */
|
|
12465
|
-
"./AboutEntry.
|
|
12465
|
+
"./AboutEntry.6St28Lf5.js"
|
|
12466
12466
|
).then((e) => ({ default: e.About }))
|
|
12467
12467
|
), t0 = yt(
|
|
12468
12468
|
() => import(
|
|
12469
12469
|
/* webpackChunkName: "modal-chunk" */
|
|
12470
|
-
"./UsageEntry.
|
|
12470
|
+
"./UsageEntry.CRYw7M5Q.js"
|
|
12471
12471
|
).then((e) => ({ default: e.Usage }))
|
|
12472
12472
|
), n0 = yt(
|
|
12473
12473
|
() => import(
|
|
12474
12474
|
/* webpackChunkName: "modal-chunk" */
|
|
12475
|
-
"./MemoriesEntry.
|
|
12475
|
+
"./MemoriesEntry.7VLaTZvU.js"
|
|
12476
12476
|
).then((e) => ({ default: e.default }))
|
|
12477
12477
|
), r0 = ({
|
|
12478
12478
|
open: e,
|
|
@@ -12520,23 +12520,23 @@ const bS = [".png", ".jpg", ".jpeg", ".webp"], wS = [".pdf", ".txt"], _S = [
|
|
|
12520
12520
|
p || Promise.all([
|
|
12521
12521
|
import(
|
|
12522
12522
|
/* webpackChunkName: "modal-chunk" */
|
|
12523
|
-
"./ProfileEntry.
|
|
12523
|
+
"./ProfileEntry.DjAWes3a.js"
|
|
12524
12524
|
),
|
|
12525
12525
|
import(
|
|
12526
12526
|
/* webpackChunkName: "modal-chunk" */
|
|
12527
|
-
"./SettingsEntry.
|
|
12527
|
+
"./SettingsEntry.o9nEUETW.js"
|
|
12528
12528
|
),
|
|
12529
12529
|
import(
|
|
12530
12530
|
/* webpackChunkName: "modal-chunk" */
|
|
12531
|
-
"./HistoryEntry.
|
|
12531
|
+
"./HistoryEntry.B88FZSWr.js"
|
|
12532
12532
|
),
|
|
12533
12533
|
import(
|
|
12534
12534
|
/* webpackChunkName: "modal-chunk" */
|
|
12535
|
-
"./AboutEntry.
|
|
12535
|
+
"./AboutEntry.6St28Lf5.js"
|
|
12536
12536
|
),
|
|
12537
12537
|
import(
|
|
12538
12538
|
/* webpackChunkName: "modal-chunk" */
|
|
12539
|
-
"./UsageEntry.
|
|
12539
|
+
"./UsageEntry.CRYw7M5Q.js"
|
|
12540
12540
|
)
|
|
12541
12541
|
]).finally(() => f(!0));
|
|
12542
12542
|
}, [p]), E = J((k) => {
|
|
@@ -12910,12 +12910,12 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12910
12910
|
}, Ya = 1, h0 = 150, g0 = yt(
|
|
12911
12911
|
() => import(
|
|
12912
12912
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
12913
|
-
"./ChatBubbleAssistant.
|
|
12913
|
+
"./ChatBubbleAssistant.BaNEs-WH.js"
|
|
12914
12914
|
)
|
|
12915
12915
|
), v0 = yt(
|
|
12916
12916
|
() => import(
|
|
12917
12917
|
/* webpackChunkName: "LazyMessageUser" */
|
|
12918
|
-
"./ChatBubbleUser.
|
|
12918
|
+
"./ChatBubbleUser.BKQwt_MT.js"
|
|
12919
12919
|
)
|
|
12920
12920
|
), y0 = Ze.memo(
|
|
12921
12921
|
({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as C, Fragment as B, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as v, useUserPreferences as A } from "./index.
|
|
3
|
-
import { ButtonIcon as h, IconCopied as S, IconCopy as I, ChatContext as _, IconBranch as M, TOAST_CHAT_BRANCHED as z } from "./LogoEntry.
|
|
2
|
+
import { n as v, useUserPreferences as A } from "./index.C-7h2KOd.js";
|
|
3
|
+
import { ButtonIcon as h, IconCopied as S, IconCopy as I, ChatContext as _, IconBranch as M, TOAST_CHAT_BRANCHED as z } from "./LogoEntry.BX2BbPnz.js";
|
|
4
4
|
import { useState as H, useRef as N, useCallback as g, useEffect as R, useContext as k } from "react";
|
|
5
|
-
import { ResponsiveTooltip as T, useAiChat as E, v4 as O, CHAT_RESET as L, CHAT_SET_ATTACHMENTS as U, CHAT_SET_STATUS as j, showSuccessToast as D, CHAT_SCROLL_TO_BOTTOM as F } from "./App.
|
|
5
|
+
import { ResponsiveTooltip as T, useAiChat as E, v4 as O, CHAT_RESET as L, CHAT_SET_ATTACHMENTS as U, CHAT_SET_STATUS as j, showSuccessToast as D, CHAT_SCROLL_TO_BOTTOM as F } from "./App.Dx0i7v1f.js";
|
|
6
6
|
const P = ({ children: e, richText: r = !1, mode: a = "system", focusMode: l = "system" }) => {
|
|
7
7
|
const [o, c] = H(!1), n = N(null), p = g(async () => {
|
|
8
8
|
if (navigator.clipboard)
|
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
import u from "clsx";
|
|
2
|
+
import ae, { createContext as oe, useContext as ne, useRef as q, useLayoutEffect as P, useState as N, useCallback as I, useMemo as $, useId as le, useEffect as V } from "react";
|
|
3
|
+
import { jsx as l, jsxs as T, Fragment as ie } from "react/jsx-runtime";
|
|
4
|
+
import { CellWrapper as m, BlurEffects as R, ButtonIcon as U, IconSortUp as de, IconSortDown as ce, IconSort as ue, IconDelete as fe } from "./LogoEntry.BX2BbPnz.js";
|
|
5
|
+
import { ResponsiveTooltip as ge } from "./App.Dx0i7v1f.js";
|
|
6
|
+
const x = oe({
|
|
7
|
+
mode: "system"
|
|
8
|
+
});
|
|
9
|
+
function De(e, r) {
|
|
10
|
+
return e ? u("contents", r) : u("flex flex-col", r);
|
|
11
|
+
}
|
|
12
|
+
function Be(e, r) {
|
|
13
|
+
const s = ne(x), a = q([]);
|
|
14
|
+
P(() => {
|
|
15
|
+
const t = e.current, o = s.columns && (s.stickyHeader || s.stickyFooter);
|
|
16
|
+
if (!t || !o || !s.setMeasuredColumnWidths)
|
|
17
|
+
return;
|
|
18
|
+
const i = t.querySelector('[role="row"]');
|
|
19
|
+
if (!i)
|
|
20
|
+
return;
|
|
21
|
+
const d = i.querySelectorAll('[role="cell"], [role="columnheader"], [role="gridcell"]');
|
|
22
|
+
if (d.length === 0)
|
|
23
|
+
return;
|
|
24
|
+
const c = () => {
|
|
25
|
+
const n = Array.from(d).map((h) => h.getBoundingClientRect().width), b = a.current;
|
|
26
|
+
(n.length !== b.length || n.some((h, k) => h !== b[k])) && (a.current = n, s.setMeasuredColumnWidths?.(n));
|
|
27
|
+
};
|
|
28
|
+
c();
|
|
29
|
+
const f = new ResizeObserver(() => {
|
|
30
|
+
c();
|
|
31
|
+
});
|
|
32
|
+
f.observe(t);
|
|
33
|
+
for (const n of d)
|
|
34
|
+
f.observe(n);
|
|
35
|
+
return () => f.disconnect();
|
|
36
|
+
}, [
|
|
37
|
+
s.columns,
|
|
38
|
+
s.stickyHeader,
|
|
39
|
+
s.stickyFooter,
|
|
40
|
+
s.setMeasuredColumnWidths,
|
|
41
|
+
r
|
|
42
|
+
]);
|
|
43
|
+
}
|
|
44
|
+
const D = ({ mode: e }) => u({
|
|
45
|
+
"text-copy-light": e === "dark",
|
|
46
|
+
"text-copy-dark": e === "light",
|
|
47
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
48
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
49
|
+
}), be = ({ mode: e }) => u({
|
|
50
|
+
"bg-surface-darker": e === "dark" || e === "system",
|
|
51
|
+
"bg-surface-light": e === "light" || e === "alt-system",
|
|
52
|
+
"dark:bg-surface-light": e === "system",
|
|
53
|
+
"dark:bg-surface-darker": e === "alt-system"
|
|
54
|
+
}), _ = ({ mode: e, hasBlur: r, sticky: s }) => u({
|
|
55
|
+
// Semi-transparent for blur effect.
|
|
56
|
+
"bg-surface-darkest/50": r && s && (e === "dark" || e === "system"),
|
|
57
|
+
"bg-surface-medium/50": r && s && (e === "light" || e === "alt-system"),
|
|
58
|
+
"dark:bg-surface-medium/50": r && s && e === "system",
|
|
59
|
+
"dark:bg-surface-darkest/50": r && s && e === "alt-system",
|
|
60
|
+
// Solid backgrounds.
|
|
61
|
+
"bg-surface-darkest": !r && (e === "dark" || e === "system"),
|
|
62
|
+
"bg-surface-medium-light": !r && (e === "light" || e === "alt-system"),
|
|
63
|
+
"dark:bg-surface-medium-light": !r && e === "system",
|
|
64
|
+
"dark:bg-surface-darkest": !r && e === "alt-system"
|
|
65
|
+
}), he = ({ mode: e }) => u({
|
|
66
|
+
"border-table-dark": e === "dark" || e === "system",
|
|
67
|
+
"border-table-light": e === "light" || e === "alt-system",
|
|
68
|
+
"dark:border-table-light": e === "system",
|
|
69
|
+
"dark:border-table-dark": e === "alt-system"
|
|
70
|
+
}), ye = ({ blurEffect: e }) => u({
|
|
71
|
+
"backdrop-blur-sm": e === R.SMALL,
|
|
72
|
+
"backdrop-blur-md": e === R.MEDIUM,
|
|
73
|
+
"backdrop-blur-lg": e === R.LARGE
|
|
74
|
+
}), pe = ({ mode: e }) => u("text-lg font-medium", {
|
|
75
|
+
"text-copy-dark": e === "light",
|
|
76
|
+
"text-copy-light": e === "dark",
|
|
77
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system",
|
|
78
|
+
"text-copy-light dark:text-copy-dark": e === "system"
|
|
79
|
+
}), me = ({ mode: e }) => ({
|
|
80
|
+
inner: "relative",
|
|
81
|
+
overlay: u("absolute inset-0 z-20 cursor-not-allowed rounded-lg", "backdrop-blur-xs bg-white/30 dark:bg-black/30"),
|
|
82
|
+
loadingWrapper: u("absolute z-30 top-0 left-0 right-0 h-[min(100%,100vh)]", "flex items-center justify-center", "pointer-events-none"),
|
|
83
|
+
loadingText: pe({
|
|
84
|
+
mode: e
|
|
85
|
+
})
|
|
86
|
+
}), ke = ({ mode: e, className: r, wrapperClassName: s, stickyHeader: a, stickyFooter: t, loading: o, hasColumns: i }) => {
|
|
87
|
+
const d = o ? me({
|
|
88
|
+
mode: e
|
|
89
|
+
}) : null, c = a || t;
|
|
90
|
+
return {
|
|
91
|
+
overlay: d?.overlay ?? "",
|
|
92
|
+
inner: d?.inner ?? "",
|
|
93
|
+
loadingWrapper: d?.loadingWrapper ?? "",
|
|
94
|
+
loadingText: d?.loadingText ?? "",
|
|
95
|
+
wrapper: u("not-prose relative w-full rounded-lg shadow-md", {
|
|
96
|
+
"overflow-x-auto": !c && !o,
|
|
97
|
+
"overflow-hidden flex flex-col": c || o
|
|
98
|
+
}, be({
|
|
99
|
+
mode: e
|
|
100
|
+
}), D({
|
|
101
|
+
mode: e
|
|
102
|
+
}), s),
|
|
103
|
+
scrollableContent: u("overflow-y-auto overflow-x-hidden rounded-[inherit] flex-1 min-h-0"),
|
|
104
|
+
grid: u("my-0 w-full text-left text-sm", i ? "grid" : "flex flex-col", r, D({
|
|
105
|
+
mode: e
|
|
106
|
+
}))
|
|
107
|
+
};
|
|
108
|
+
}, ve = ({ className: e, stickyHeader: r, mode: s, blurEffect: a, hasColumns: t }) => {
|
|
109
|
+
const o = !!(a && a !== R.NONE);
|
|
110
|
+
return t && !r ? u("contents", _({
|
|
111
|
+
mode: s,
|
|
112
|
+
hasBlur: o,
|
|
113
|
+
sticky: !!r
|
|
114
|
+
}), D({
|
|
115
|
+
mode: s
|
|
116
|
+
}), e) : u("flex flex-col", "border-b border-table-medium shadow-md", {
|
|
117
|
+
"absolute left-0 right-0 z-20 top-0 rounded-t-lg": r
|
|
118
|
+
}, _({
|
|
119
|
+
mode: s,
|
|
120
|
+
hasBlur: o,
|
|
121
|
+
sticky: !!r
|
|
122
|
+
}), D({
|
|
123
|
+
mode: s
|
|
124
|
+
}), r && ye({
|
|
125
|
+
blurEffect: a
|
|
126
|
+
}), e);
|
|
127
|
+
}, Ce = ({ captionClassName: e, hasColumns: r }) => u("py-2 text-sm text-center font-bold", r && "col-span-full", e), xe = ({ mode: e, className: r, cellWrapper: s, isLastRow: a }) => {
|
|
128
|
+
const t = "group grid items-center";
|
|
129
|
+
return s === m.HEADER || s === m.FOOTER ? u(t, r) : u(t, a !== void 0 ? a ? "border-b border-b-transparent dark:border-b-transparent" : "border-b" : "border-b last:border-0", "hover:bg-surface-medium hover:text-copy-light", he({
|
|
130
|
+
mode: e
|
|
131
|
+
}), r);
|
|
132
|
+
}, L = ({ cellWrapper: e, className: r, compact: s, align: a, mode: t, borderLeft: o, borderRight: i }) => {
|
|
133
|
+
const d = e === m.HEADER, c = e === m.FOOTER;
|
|
134
|
+
return u(
|
|
135
|
+
// Base padding.
|
|
136
|
+
{
|
|
137
|
+
"px-2 py-1": s,
|
|
138
|
+
"px-4 py-3": !s
|
|
139
|
+
},
|
|
140
|
+
// Text alignment.
|
|
141
|
+
{
|
|
142
|
+
"text-left justify-start": a === "left" || !a,
|
|
143
|
+
"text-center justify-center": a === "center",
|
|
144
|
+
"text-right justify-end": a === "right"
|
|
145
|
+
},
|
|
146
|
+
// Header/footer specific styles.
|
|
147
|
+
{
|
|
148
|
+
"font-bold": d || c
|
|
149
|
+
},
|
|
150
|
+
// Active row indicator.
|
|
151
|
+
"first:group-data-[active]:relative",
|
|
152
|
+
"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",
|
|
153
|
+
"first:group-data-[active]:self-stretch first:group-data-[active]:flex first:group-data-[active]:items-center",
|
|
154
|
+
// Active indicator color based on theme mode.
|
|
155
|
+
{
|
|
156
|
+
"first:group-data-[active]:before:bg-table-active-dark": t === "dark",
|
|
157
|
+
"first:group-data-[active]:before:bg-table-active-light": t === "light",
|
|
158
|
+
"first:group-data-[active]:before:bg-table-active-dark dark:first:group-data-[active]:before:bg-table-active-light": t === "system",
|
|
159
|
+
"first:group-data-[active]:before:bg-table-active-light dark:first:group-data-[active]:before:bg-table-active-dark": t === "alt-system"
|
|
160
|
+
},
|
|
161
|
+
// Vertical borders.
|
|
162
|
+
{
|
|
163
|
+
"self-stretch flex items-center": o || i,
|
|
164
|
+
"border-l border-l-table-dark": o && t === "dark",
|
|
165
|
+
"border-l border-l-table-light": o && t === "light",
|
|
166
|
+
"border-l border-l-table-dark dark:border-l-table-light": o && t === "system",
|
|
167
|
+
"border-l border-l-table-light dark:border-l-table-dark": o && t === "alt-system",
|
|
168
|
+
"border-r border-r-table-dark": i && t === "dark",
|
|
169
|
+
"border-r border-r-table-light": i && t === "light",
|
|
170
|
+
"border-r border-r-table-dark dark:border-r-table-light": i && t === "system",
|
|
171
|
+
"border-r border-r-table-light dark:border-r-table-dark": i && t === "alt-system"
|
|
172
|
+
},
|
|
173
|
+
r
|
|
174
|
+
);
|
|
175
|
+
}, He = (e) => e === m.HEADER ? "columnheader" : "gridcell";
|
|
176
|
+
const ze = ({ className: e, wrapperClassName: r, children: s, mode: a = "system", compact: t = !1, stickyHeader: o = !1, stickyFooter: i = !1, blurEffect: d = R.NONE, maxHeight: c, loading: f = !1, columns: n, ...b }) => {
|
|
177
|
+
const [g, h] = N(0), [k, H] = N(0), [y, E] = N(0), [v, B] = N(0), [F, J] = N([]), z = I(() => h((p) => p + 1), []), M = I(() => h((p) => p - 1), []), j = I(() => H((p) => p + 1), []), O = I(() => H((p) => p - 1), []), K = g > 0, Q = k > 0, w = o && K, S = i && Q, [X, Y] = N(void 0), A = I((p) => {
|
|
178
|
+
Y(p);
|
|
179
|
+
}, []), C = $(() => ke({
|
|
180
|
+
mode: a,
|
|
181
|
+
className: e,
|
|
182
|
+
wrapperClassName: r,
|
|
183
|
+
stickyHeader: w,
|
|
184
|
+
stickyFooter: S,
|
|
185
|
+
loading: !!f,
|
|
186
|
+
hasColumns: !!n
|
|
187
|
+
}), [
|
|
188
|
+
a,
|
|
189
|
+
e,
|
|
190
|
+
r,
|
|
191
|
+
w,
|
|
192
|
+
S,
|
|
193
|
+
f,
|
|
194
|
+
n
|
|
195
|
+
]), Z = $(() => ({
|
|
196
|
+
mode: a,
|
|
197
|
+
compact: t,
|
|
198
|
+
stickyHeader: w,
|
|
199
|
+
stickyFooter: S,
|
|
200
|
+
blurEffect: d,
|
|
201
|
+
columns: n,
|
|
202
|
+
measuredColumnWidths: F,
|
|
203
|
+
setCaptionId: A,
|
|
204
|
+
registerHeader: z,
|
|
205
|
+
unregisterHeader: M,
|
|
206
|
+
registerFooter: j,
|
|
207
|
+
unregisterFooter: O,
|
|
208
|
+
setHeaderHeight: E,
|
|
209
|
+
setFooterHeight: B,
|
|
210
|
+
setMeasuredColumnWidths: J
|
|
211
|
+
}), [
|
|
212
|
+
a,
|
|
213
|
+
t,
|
|
214
|
+
w,
|
|
215
|
+
S,
|
|
216
|
+
d,
|
|
217
|
+
n,
|
|
218
|
+
F,
|
|
219
|
+
A,
|
|
220
|
+
z,
|
|
221
|
+
M,
|
|
222
|
+
j,
|
|
223
|
+
O
|
|
224
|
+
]), G = c ? {
|
|
225
|
+
maxHeight: typeof c == "number" ? `${c}px` : c
|
|
226
|
+
} : void 0, ee = {
|
|
227
|
+
...G,
|
|
228
|
+
paddingTop: w ? y : void 0,
|
|
229
|
+
paddingBottom: S ? v : void 0
|
|
230
|
+
}, te = w || S, re = n ? {
|
|
231
|
+
gridTemplateColumns: n.join(" ")
|
|
232
|
+
} : void 0, W = /* @__PURE__ */ l("div", {
|
|
233
|
+
role: "grid",
|
|
234
|
+
"aria-labelledby": X,
|
|
235
|
+
className: C.grid,
|
|
236
|
+
style: re,
|
|
237
|
+
...b,
|
|
238
|
+
children: s
|
|
239
|
+
}), se = typeof f == "string" ? f : f ? "Loading..." : null;
|
|
240
|
+
return /* @__PURE__ */ l(x.Provider, {
|
|
241
|
+
value: Z,
|
|
242
|
+
children: /* @__PURE__ */ T("div", {
|
|
243
|
+
className: C.inner,
|
|
244
|
+
children: [
|
|
245
|
+
f && /* @__PURE__ */ T(ie, {
|
|
246
|
+
children: [
|
|
247
|
+
/* @__PURE__ */ l("div", {
|
|
248
|
+
className: C.overlay,
|
|
249
|
+
"aria-hidden": "true"
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ l("div", {
|
|
252
|
+
className: C.loadingWrapper,
|
|
253
|
+
children: /* @__PURE__ */ l("span", {
|
|
254
|
+
className: C.loadingText,
|
|
255
|
+
role: "status",
|
|
256
|
+
children: se
|
|
257
|
+
})
|
|
258
|
+
})
|
|
259
|
+
]
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ l("div", {
|
|
262
|
+
className: C.wrapper,
|
|
263
|
+
style: G,
|
|
264
|
+
children: te ? /* @__PURE__ */ l("div", {
|
|
265
|
+
className: C.scrollableContent,
|
|
266
|
+
style: ee,
|
|
267
|
+
children: W
|
|
268
|
+
}) : W
|
|
269
|
+
})
|
|
270
|
+
]
|
|
271
|
+
})
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
const Me = ({ className: e, children: r, align: s, borderLeft: a, borderRight: t, colSpan: o, style: i, ...d }) => /* @__PURE__ */ l(x.Consumer, {
|
|
275
|
+
children: ({ mode: c, compact: f, cellWrapper: n }) => {
|
|
276
|
+
const b = L({
|
|
277
|
+
cellWrapper: n,
|
|
278
|
+
className: e,
|
|
279
|
+
mode: c,
|
|
280
|
+
compact: f,
|
|
281
|
+
align: s,
|
|
282
|
+
borderLeft: a,
|
|
283
|
+
borderRight: t
|
|
284
|
+
}), g = He(n), h = o && o > 1 ? {
|
|
285
|
+
...i,
|
|
286
|
+
gridColumn: `span ${o}`
|
|
287
|
+
} : i;
|
|
288
|
+
return /* @__PURE__ */ l("div", {
|
|
289
|
+
role: g,
|
|
290
|
+
className: b,
|
|
291
|
+
style: h,
|
|
292
|
+
...d,
|
|
293
|
+
children: r
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
function we({ children: e, mode: r = "system", className: s, active: a = !1, ref: t, ...o }) {
|
|
298
|
+
const i = a ? u("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", {
|
|
299
|
+
"after:border-table-light": r === "dark",
|
|
300
|
+
"after:border-table-dark": r === "light",
|
|
301
|
+
"after:border-table-light dark:after:border-table-dark": r === "system",
|
|
302
|
+
"after:border-table-dark dark:after:border-table-light": r === "alt-system"
|
|
303
|
+
}) : "";
|
|
304
|
+
return /* @__PURE__ */ l("div", {
|
|
305
|
+
className: i,
|
|
306
|
+
children: /* @__PURE__ */ l(U, {
|
|
307
|
+
className: s,
|
|
308
|
+
ref: t,
|
|
309
|
+
mode: r,
|
|
310
|
+
radius: "small",
|
|
311
|
+
size: "small",
|
|
312
|
+
align: "center",
|
|
313
|
+
...o,
|
|
314
|
+
children: e
|
|
315
|
+
})
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
const je = ({ className: e, children: r, cellId: s, onSort: a, sortDirection: t, sortedCell: o, slotLeft: i, slotRight: d, buttonClassName: c, focusMode: f = "alt-system", align: n, ...b }) => {
|
|
319
|
+
const g = o === s, h = () => {
|
|
320
|
+
a && a(s, g && t ? t : void 0);
|
|
321
|
+
}, k = () => g && t === "asc" ? /* @__PURE__ */ l(de, {
|
|
322
|
+
className: "size-4",
|
|
323
|
+
monotone: !0
|
|
324
|
+
}) : g && t === "desc" ? /* @__PURE__ */ l(ce, {
|
|
325
|
+
className: "size-4",
|
|
326
|
+
monotone: !0
|
|
327
|
+
}) : /* @__PURE__ */ l(ue, {
|
|
328
|
+
className: "size-4",
|
|
329
|
+
monotone: !0
|
|
330
|
+
}), H = () => g && t === "asc" ? "ascending" : g && t === "desc" ? "descending" : "other";
|
|
331
|
+
return /* @__PURE__ */ l(x.Consumer, {
|
|
332
|
+
children: ({ mode: y, compact: E, cellWrapper: v }) => {
|
|
333
|
+
const B = L({
|
|
334
|
+
cellWrapper: v,
|
|
335
|
+
className: e,
|
|
336
|
+
mode: y,
|
|
337
|
+
compact: E,
|
|
338
|
+
align: n
|
|
339
|
+
}), F = u("flex", {
|
|
340
|
+
"justify-start": n === "left" || !n,
|
|
341
|
+
"justify-center": n === "center",
|
|
342
|
+
"justify-end": n === "right"
|
|
343
|
+
});
|
|
344
|
+
return /* @__PURE__ */ l("div", {
|
|
345
|
+
className: B,
|
|
346
|
+
role: "columnheader",
|
|
347
|
+
"aria-sort": H(),
|
|
348
|
+
...b,
|
|
349
|
+
children: /* @__PURE__ */ T("div", {
|
|
350
|
+
className: F,
|
|
351
|
+
children: [
|
|
352
|
+
i,
|
|
353
|
+
/* @__PURE__ */ l(we, {
|
|
354
|
+
active: g,
|
|
355
|
+
className: c,
|
|
356
|
+
onClick: h,
|
|
357
|
+
noBorder: !0,
|
|
358
|
+
focusMode: f,
|
|
359
|
+
mode: y,
|
|
360
|
+
labelRight: r,
|
|
361
|
+
children: k()
|
|
362
|
+
}),
|
|
363
|
+
d
|
|
364
|
+
]
|
|
365
|
+
})
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
const Se = ({ caption: e, captionClassName: r, className: s, children: a, ...t }) => {
|
|
371
|
+
const o = le();
|
|
372
|
+
return /* @__PURE__ */ l(x.Consumer, {
|
|
373
|
+
children: (i) => /* @__PURE__ */ l(Ne, {
|
|
374
|
+
caption: e,
|
|
375
|
+
captionClassName: r,
|
|
376
|
+
captionId: o,
|
|
377
|
+
className: s,
|
|
378
|
+
ctx: i,
|
|
379
|
+
...t,
|
|
380
|
+
children: a
|
|
381
|
+
})
|
|
382
|
+
});
|
|
383
|
+
};
|
|
384
|
+
Se.displayName = "DataGridHeader";
|
|
385
|
+
const Ne = ({ caption: e, captionClassName: r, captionId: s, className: a, ctx: t, children: o, ...i }) => {
|
|
386
|
+
const d = !!t.columns, c = q(null);
|
|
387
|
+
return V(() => (t.registerHeader?.(), () => {
|
|
388
|
+
t.unregisterHeader?.();
|
|
389
|
+
}), [
|
|
390
|
+
t.registerHeader,
|
|
391
|
+
t.unregisterHeader
|
|
392
|
+
]), V(() => (e && t.setCaptionId && t.setCaptionId(s), () => {
|
|
393
|
+
t.setCaptionId && t.setCaptionId(void 0);
|
|
394
|
+
}), [
|
|
395
|
+
e,
|
|
396
|
+
s,
|
|
397
|
+
t.setCaptionId
|
|
398
|
+
]), P(() => {
|
|
399
|
+
const f = c.current;
|
|
400
|
+
if (!f || !t.stickyHeader || !t.setHeaderHeight)
|
|
401
|
+
return;
|
|
402
|
+
const n = new ResizeObserver((b) => {
|
|
403
|
+
const g = b[0]?.borderBoxSize?.[0]?.blockSize;
|
|
404
|
+
g !== void 0 && t.setHeaderHeight?.(g);
|
|
405
|
+
});
|
|
406
|
+
return n.observe(f), () => n.disconnect();
|
|
407
|
+
}, [
|
|
408
|
+
t.stickyHeader,
|
|
409
|
+
t.setHeaderHeight
|
|
410
|
+
]), /* @__PURE__ */ l(x.Provider, {
|
|
411
|
+
value: {
|
|
412
|
+
...t,
|
|
413
|
+
cellWrapper: m.HEADER
|
|
414
|
+
},
|
|
415
|
+
children: /* @__PURE__ */ T("div", {
|
|
416
|
+
ref: c,
|
|
417
|
+
role: "rowgroup",
|
|
418
|
+
className: ve({
|
|
419
|
+
className: a,
|
|
420
|
+
stickyHeader: t.stickyHeader,
|
|
421
|
+
mode: t.mode,
|
|
422
|
+
blurEffect: t.blurEffect,
|
|
423
|
+
hasColumns: d
|
|
424
|
+
}),
|
|
425
|
+
...i,
|
|
426
|
+
children: [
|
|
427
|
+
e && /* @__PURE__ */ l("div", {
|
|
428
|
+
id: s,
|
|
429
|
+
className: Ce({
|
|
430
|
+
captionClassName: r,
|
|
431
|
+
hasColumns: d
|
|
432
|
+
}),
|
|
433
|
+
children: e
|
|
434
|
+
}),
|
|
435
|
+
o
|
|
436
|
+
]
|
|
437
|
+
})
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
const Oe = ({ className: e, children: r, active: s, style: a, ...t }) => {
|
|
441
|
+
const o = ae.Children.count(r);
|
|
442
|
+
return /* @__PURE__ */ l(x.Consumer, {
|
|
443
|
+
children: ({ mode: i, cellWrapper: d, stickyHeader: c, stickyFooter: f, columns: n, measuredColumnWidths: b, isLastRow: g }) => {
|
|
444
|
+
const h = d === m.HEADER && c, k = d === m.FOOTER && f, H = h || k;
|
|
445
|
+
let y;
|
|
446
|
+
return n ? H ? b && b.length === n.length && b.some((v) => v > 0) ? y = {
|
|
447
|
+
gridTemplateColumns: b.map((v) => `${v}px`).join(" ")
|
|
448
|
+
} : y = {
|
|
449
|
+
gridTemplateColumns: n.join(" ")
|
|
450
|
+
} : y = {
|
|
451
|
+
gridColumn: "1 / -1",
|
|
452
|
+
gridTemplateColumns: "subgrid"
|
|
453
|
+
} : y = {
|
|
454
|
+
gridTemplateColumns: `repeat(${o}, minmax(0, 1fr))`
|
|
455
|
+
}, /* @__PURE__ */ l("div", {
|
|
456
|
+
role: "row",
|
|
457
|
+
className: xe({
|
|
458
|
+
mode: i,
|
|
459
|
+
className: e,
|
|
460
|
+
cellWrapper: d,
|
|
461
|
+
isLastRow: g
|
|
462
|
+
}),
|
|
463
|
+
style: {
|
|
464
|
+
...y,
|
|
465
|
+
...a
|
|
466
|
+
},
|
|
467
|
+
"data-active": s || void 0,
|
|
468
|
+
...t,
|
|
469
|
+
children: r
|
|
470
|
+
});
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
}, Ae = ({
|
|
474
|
+
label: e,
|
|
475
|
+
disabled: r,
|
|
476
|
+
onClick: s
|
|
477
|
+
}) => /* @__PURE__ */ l(
|
|
478
|
+
ge,
|
|
479
|
+
{
|
|
480
|
+
label: e,
|
|
481
|
+
placement: "top",
|
|
482
|
+
trigger: /* @__PURE__ */ l(
|
|
483
|
+
U,
|
|
484
|
+
{
|
|
485
|
+
noBorder: !0,
|
|
486
|
+
variant: "primary",
|
|
487
|
+
label: e,
|
|
488
|
+
disabled: r,
|
|
489
|
+
onClick: s,
|
|
490
|
+
children: /* @__PURE__ */ l(
|
|
491
|
+
fe,
|
|
492
|
+
{
|
|
493
|
+
size: "size-3",
|
|
494
|
+
monotone: !0,
|
|
495
|
+
className: "text-copy-error-dark dark:text-copy-error-light"
|
|
496
|
+
}
|
|
497
|
+
)
|
|
498
|
+
}
|
|
499
|
+
)
|
|
500
|
+
}
|
|
501
|
+
);
|
|
502
|
+
export {
|
|
503
|
+
Ae as ButtonIconDelete,
|
|
504
|
+
ze as DataGrid,
|
|
505
|
+
Me as DataGridCell,
|
|
506
|
+
je as DataGridCellSort,
|
|
507
|
+
x as DataGridContext,
|
|
508
|
+
Se as DataGridHeader,
|
|
509
|
+
Oe as DataGridRow,
|
|
510
|
+
De as getBodyClass,
|
|
511
|
+
Be as useColumnMeasurement
|
|
512
|
+
};
|