@versini/sassysaint 8.117.0 → 8.118.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.Bn_KfUZc.js → AboutChangelog.NMMfTbp4.js} +2 -2
- package/dist/chunks/{AboutEntry.GETrm77g.js → AboutEntry.8kXGiBKr.js} +7 -7
- package/dist/chunks/{App.BzCbkgv8.js → App.MBikKP52.js} +618 -615
- package/dist/chunks/{BubbleActions.CbQ9BHWl.js → BubbleActions.u9muFBXv.js} +3 -3
- package/dist/chunks/{ButtonIconDelete.B5IpSZrD.js → ButtonIconDelete.UIDZwKOu.js} +2 -2
- package/dist/chunks/{Chart.Czhhtzdx.js → Chart.IEDLbK1M.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DESMaXGq.js → ChatBubbleAssistant.Cn1keoow.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.B_Sniupu.js → ChatBubbleUser.DUizsIIv.js} +4 -4
- package/dist/chunks/{ChatHistoryTable.LPF05gFQ.js → ChatHistoryTable.DIT1MlOO.js} +4 -4
- package/dist/chunks/HistoryEntry.sZ_AMeUu.js +341 -0
- package/dist/chunks/InlineFilter.1dVMRTxM.js +58 -0
- package/dist/chunks/{LoginEntry.Bf8vuUIL.js → LoginEntry.BnHprT7f.js} +4 -4
- package/dist/chunks/{LogoEntry.yn5_B-fa.js → LogoEntry.uN5foS5i.js} +1 -1
- package/dist/chunks/MemoriesEntry.CpxdE30v.js +698 -0
- package/dist/chunks/{ProfileEntry.DitROf-m.js → ProfileEntry.BMpJic5U.js} +4 -4
- package/dist/chunks/{SettingsEntry.DUMuo462.js → SettingsEntry.B8xGufV0.js} +5 -5
- package/dist/chunks/{UsageEntry.CFMWYodz.js → UsageEntry.B1zVYUBb.js} +5 -5
- package/dist/chunks/{_baseUniq.D6y3dh-S.js → _baseUniq.BeocMcb-.js} +1 -1
- package/dist/chunks/{arc.CitIvzp8.js → arc.C-CDR6Sz.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.IEP3vDFZ.js → architecture-U656AL7Q.DQ7Jtm55.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.BhDBUrYi.js → architectureDiagram-VXUJARFQ.Ceo3pgxm.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.BFTM8GAn.js → blockDiagram-VD42YOAC.BvjaUl_a.js} +5 -5
- package/dist/chunks/{browser.DK_o_vwl.js → browser.DvUqvHKQ.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.B1vLaqvZ.js → c4Diagram-YG6GDRKO.D8dful9J.js} +2 -2
- package/dist/chunks/{channel.PCRnhDz7.js → channel.B6Qvl469.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.C6rU7w6S.js → chunk-4BX2VUAB.CtVNPH4N.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.BpJZHN1o.js → chunk-55IACEB6.C0X4Jue2.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.F4PL3cMr.js → chunk-B4BG7PRW.Conu6DQr.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.BF8GKejt.js → chunk-DI55MBZ5.Dg38hF9_.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.B1OYwU0R.js → chunk-FMBD7UC4.BsUH0rhB.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL.BD5brt5t.js → chunk-QN33PNHL.0RjA_wXX.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.D5WYYv36.js → chunk-QZHKN3VN.Dz6HmVZY.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.C-MZAsEe.js → chunk-TZMSLE5B.Dxuv9zIm.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.C5vYqJ4o.js → classDiagram-2ON5EDUG.CRdX6xMs.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.C5vYqJ4o.js → classDiagram-v2-WZHVMYZB.CRdX6xMs.js} +2 -2
- package/dist/chunks/{clone.REJ_Pnlj.js → clone.ByaUA-r2.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.DXqAwGZ0.js → cose-bilkent-S5V4N54A.B5YgIJoQ.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.CoGy5JIV.js → dagre-6UL2VRFP.uIiQ6FUj.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.D9vCcidT.js → diagram-PSM6KHXK.Bv8fX1RC.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.6csREdR0.js → diagram-QEK2KX5R.CY_Rq5A7.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.YPf4qVIj.js → diagram-S2PKOQOG.BfXCT4NH.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.CGV8xXOX.js → erDiagram-Q2GNP2WA.BQrPmQkr.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.eQKIimm7.js → flowDiagram-NV44I4VS.DZwCRz8X.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.BazHhqv4.js → ganttDiagram-JELNMOA3.CpqB-Lco.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.Cb-fQXsF.js → gitGraph-F6HP7TQM.HmdqWT9j.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.Dvqk5LX3.js → gitGraphDiagram-NY62KEGX.i87uZR96.js} +4 -4
- package/dist/chunks/{graph.CgbRK_Pv.js → graph.C_jA5HK0.js} +2 -2
- package/dist/chunks/{index.CX_kqcF4.js → index.BHwQBUwd.js} +1 -1
- package/dist/chunks/{index.Bzms2RRF.js → index.BaE2Lbfd.js} +1 -1
- package/dist/chunks/{index.DzZEadJV.js → index.BggKJCTP.js} +1 -1
- package/dist/chunks/{index.BMJ9q_CF.js → index.Bm1g0K7E.js} +3 -3
- package/dist/chunks/{index.OAZ5W9VH.js → index.BrfxZy3k.js} +2 -2
- package/dist/chunks/{index.BkPtehbe.js → index.C5piY5Ss.js} +1 -1
- package/dist/chunks/{index.BEg4_Utt.js → index.Y9mwgfBs.js} +1 -1
- package/dist/chunks/{index.BkL02aS1.js → index.cXGGRddQ.js} +3 -3
- package/dist/chunks/{index.hL-ju5aR.js → index.g3S1xCER.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.53x0eQWW.js → info-NVLQJR56.ITJfPEdI.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.BlrSZ-3e.js → infoDiagram-WHAUD3N6.fkRhLS2k.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.CJqy8tkA.js → journeyDiagram-XKPGCS4Q.BtGrOEeN.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.CRKN0s6T.js → kanban-definition-3W4ZIXB7.B5uNw32c.js} +2 -2
- package/dist/chunks/{layout.B3vPW_pZ.js → layout.CqkuHUdu.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.ChRIRaJW.js → mermaid-parser.core.Ci-ITaRl.js} +10 -10
- package/dist/chunks/{min.CnRvIY0R.js → min.ZkscJwva.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.D_ABLFPV.js → mindmap-definition-VGOIOE7T.B6kzhC94.js} +4 -4
- package/dist/chunks/{packet-BFZMPI3H.CxGfStzw.js → packet-BFZMPI3H.BMbAoa6x.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.DNt3EJ4F.js → pie-7BOR55EZ.BMdBvM8R.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.DIQfkreO.js → pieDiagram-ADFJNKIX.-lbBXtjO.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.CiwquW9n.js → quadrantDiagram-AYHSOK5B.Davn6069.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.BjalOWfU.js → radar-NHE76QYJ.DYto8RZU.js} +1 -1
- package/dist/chunks/{rehype-mermaid.DiVW4LDn.js → rehype-mermaid.CSGNYSn9.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.zxucHbPP.js → requirementDiagram-UZGBJVZJ.FMUxUq0R.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.DD-PyOn-.js → sankeyDiagram-TZEHDZUN.DTIl9DDr.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.DR9lsGWA.js → sequenceDiagram-WL72ISMW.Bc9ucdVx.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.CsNkAXRg.js → stateDiagram-FKZM4ZOC.DiBSTbjk.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.8NFC4sNp.js → stateDiagram-v2-4FDKWEC3.C3xcoMwn.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.KVweqk-o.js → timeline-definition-IT6M3QCI.BC01Xx8r.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.VQYaLH7h.js → treemap-KMMF4GRG.oysg6M_i.js} +1 -1
- package/dist/chunks/{useMarkdown.BwBe50mc.js → useMarkdown.D8WEecQ3.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.DLJNhHkJ.js → xychartDiagram-PRI3JC2R.C3TO2yCs.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/dist/chunks/HistoryEntry.CbyRX9rD.js +0 -375
- package/dist/chunks/MemoriesEntry.Bljvi6W9.js +0 -649
|
@@ -1,8 +1,8 @@
|
|
|
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, x as Su, a as Cu, i as xu, s as Tu, W 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.
|
|
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, x as Su, a as Cu, i as xu, s as Tu, W 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.BrfxZy3k.js";
|
|
3
3
|
import * as w from "react";
|
|
4
4
|
import Ze, { useSyncExternalStore as Xn, useCallback as J, useEffect as U, useRef as V, useState as B, createContext as ti, useContext as de, useMemo as Ae, useId as ni, useLayoutEffect as wn, cloneElement as ri, Suspense as mo, lazy as yt, useReducer as Dn } from "react";
|
|
5
|
-
import { TableCellSortDirections as rn, ChatContext as Le, ButtonIcon as jt, useTheme as Ke, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Hu, Button as oi, 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 si, 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 _n, useUniqueId as ld, CLIPBOARD_PROMPT as hs, FOOTER_DISCLAIMERS as gs, useResizeObserver as ai, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as ho, 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.
|
|
5
|
+
import { TableCellSortDirections as rn, ChatContext as Le, ButtonIcon as jt, useTheme as Ke, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Hu, Button as oi, 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 si, 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 _n, useUniqueId as ld, CLIPBOARD_PROMPT as hs, FOOTER_DISCLAIMERS as gs, useResizeObserver as ai, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as ho, 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.uN5foS5i.js";
|
|
6
6
|
import M, { clsx as lt } from "clsx";
|
|
7
7
|
import { useFloatingParentNodeId as Od, FloatingTree as Nd, useMergeRefs as Pd, FloatingNode as Md, FloatingPortal as kd, FloatingOverlay as Dd, FloatingFocusManager as $d, useFloatingNodeId as Ld, useFloating as zd, useClick as Fd, useDismiss as Zd, useRole as Ud, useInteractions as jd } from "@floating-ui/react";
|
|
8
8
|
import * as ii from "react-dom";
|
|
@@ -56,7 +56,7 @@ function et({ key: e, initialValue: t }) {
|
|
|
56
56
|
i
|
|
57
57
|
];
|
|
58
58
|
}
|
|
59
|
-
const
|
|
59
|
+
const O0 = (e, t) => {
|
|
60
60
|
let n;
|
|
61
61
|
return (...r) => {
|
|
62
62
|
window.clearTimeout(n), n = window.setTimeout(() => e(...r), t);
|
|
@@ -73,12 +73,12 @@ const R0 = (e, t) => {
|
|
|
73
73
|
"iPad"
|
|
74
74
|
].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Wd(), n = navigator.maxTouchPoints > 1;
|
|
75
75
|
return e && t && n;
|
|
76
|
-
}, Yd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0,
|
|
76
|
+
}, Yd = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, N0 = (e, t) => t === 1 ? e : `${e}s`, P0 = new Intl.NumberFormat("en", {
|
|
77
77
|
signDisplay: "never",
|
|
78
78
|
maximumFractionDigits: 0
|
|
79
|
-
}),
|
|
79
|
+
}), M0 = (e) => window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, function(n, r) {
|
|
80
80
|
return String.fromCharCode(+`0x${r}`);
|
|
81
|
-
})),
|
|
81
|
+
})), k0 = (e) => decodeURIComponent(window.atob(e).split("").map(function(t) {
|
|
82
82
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
|
83
83
|
}).join(""));
|
|
84
84
|
var li = "vercel.ai.error", Jd = Symbol.for(li), _s, Es, ut = class ui extends (Es = Error, _s = Jd, Es) {
|
|
@@ -6355,14 +6355,14 @@ const Jv = ({ chatId: e }) => {
|
|
|
6355
6355
|
} = de(Le), r = V(e), o = V(!1);
|
|
6356
6356
|
return U(() => {
|
|
6357
6357
|
const s = r.current !== e, i = t.length > 0;
|
|
6358
|
-
|
|
6358
|
+
s && !i ? (window.localStorage.removeItem(
|
|
6359
|
+
He + Kn
|
|
6360
|
+
), o.current = !1) : i && !n ? (window.localStorage.setItem(
|
|
6359
6361
|
He + Kn,
|
|
6360
6362
|
JSON.stringify(e)
|
|
6361
|
-
), o.current = !0) : n && i
|
|
6362
|
-
He + Kn
|
|
6363
|
-
) : s && o.current && (window.localStorage.removeItem(
|
|
6363
|
+
), o.current = !0) : n && i && window.localStorage.removeItem(
|
|
6364
6364
|
He + Kn
|
|
6365
|
-
),
|
|
6365
|
+
), r.current = e;
|
|
6366
6366
|
}, [e, t.length, n]), null;
|
|
6367
6367
|
};
|
|
6368
6368
|
let Fn = !1, Kr = null;
|
|
@@ -6391,41 +6391,43 @@ const la = ({
|
|
|
6391
6391
|
};
|
|
6392
6392
|
}
|
|
6393
6393
|
}, []), n && Kr ? /* @__PURE__ */ g(Kr, { containerId: e, ...t }) : null;
|
|
6394
|
-
}, Kv = ({
|
|
6394
|
+
}, Kv = 1e3, Xv = ({
|
|
6395
6395
|
currentChatId: e,
|
|
6396
6396
|
setChatId: t,
|
|
6397
6397
|
setInitialMessages: n,
|
|
6398
|
-
dispatchChat: r
|
|
6398
|
+
dispatchChat: r,
|
|
6399
|
+
lastResetTimestamp: o
|
|
6399
6400
|
}) => {
|
|
6400
|
-
const { user:
|
|
6401
|
+
const { user: s, getAccessToken: i } = $e(), [a, c] = B(!1), [l] = et({
|
|
6401
6402
|
key: He + Kn,
|
|
6402
6403
|
initialValue: ""
|
|
6403
|
-
}),
|
|
6404
|
-
chatId:
|
|
6405
|
-
getAccessToken:
|
|
6406
|
-
enabled:
|
|
6404
|
+
}), d = !!l && !a && !!s?.username && l !== e, { data: u } = pu({
|
|
6405
|
+
chatId: d ? l : void 0,
|
|
6406
|
+
getAccessToken: i,
|
|
6407
|
+
enabled: d
|
|
6407
6408
|
});
|
|
6408
6409
|
return U(() => {
|
|
6409
|
-
!
|
|
6410
|
+
!u || !d || a || o > 0 && Date.now() - o < Kv || u.messages && (r({
|
|
6410
6411
|
type: It,
|
|
6411
6412
|
payload: {
|
|
6412
6413
|
streaming: !1,
|
|
6413
6414
|
loading: !1,
|
|
6414
6415
|
restoring: !0,
|
|
6415
|
-
restoredModel:
|
|
6416
|
-
restoredTimestamp:
|
|
6417
|
-
restoredUsage:
|
|
6416
|
+
restoredModel: u?.model || "",
|
|
6417
|
+
restoredTimestamp: u?.timestamp || "",
|
|
6418
|
+
restoredUsage: u?.tokenUsage || 0
|
|
6418
6419
|
}
|
|
6419
|
-
}), t(
|
|
6420
|
+
}), t(l), n(u.messages), c(!0));
|
|
6420
6421
|
}, [
|
|
6422
|
+
u,
|
|
6421
6423
|
d,
|
|
6424
|
+
a,
|
|
6422
6425
|
l,
|
|
6423
|
-
i,
|
|
6424
|
-
c,
|
|
6425
6426
|
t,
|
|
6426
6427
|
n,
|
|
6427
|
-
r
|
|
6428
|
-
|
|
6428
|
+
r,
|
|
6429
|
+
o
|
|
6430
|
+
]), { hasRestoredFromCache: a };
|
|
6429
6431
|
};
|
|
6430
6432
|
function ua(e, t) {
|
|
6431
6433
|
U(() => (window.addEventListener(e, t, {
|
|
@@ -6435,7 +6437,7 @@ function ua(e, t) {
|
|
|
6435
6437
|
t
|
|
6436
6438
|
]);
|
|
6437
6439
|
}
|
|
6438
|
-
function
|
|
6440
|
+
function qv() {
|
|
6439
6441
|
const [e, t] = B({
|
|
6440
6442
|
width: 0,
|
|
6441
6443
|
height: 0
|
|
@@ -6447,7 +6449,7 @@ function Xv() {
|
|
|
6447
6449
|
}, []);
|
|
6448
6450
|
return ua("resize", n), ua("orientationchange", n), U(n, []), e;
|
|
6449
6451
|
}
|
|
6450
|
-
function
|
|
6452
|
+
function Qv() {
|
|
6451
6453
|
const [e, t] = B({
|
|
6452
6454
|
width: 0,
|
|
6453
6455
|
height: 0
|
|
@@ -6467,8 +6469,8 @@ function qv() {
|
|
|
6467
6469
|
n
|
|
6468
6470
|
]), e;
|
|
6469
6471
|
}
|
|
6470
|
-
const
|
|
6471
|
-
function
|
|
6472
|
+
const ey = "z-20", ty = "z-10";
|
|
6473
|
+
function ny(e) {
|
|
6472
6474
|
const [t, n] = B(!1);
|
|
6473
6475
|
return U(() => {
|
|
6474
6476
|
if (!e) {
|
|
@@ -6485,7 +6487,7 @@ function ty(e) {
|
|
|
6485
6487
|
};
|
|
6486
6488
|
}, [e]), t;
|
|
6487
6489
|
}
|
|
6488
|
-
function
|
|
6490
|
+
function ry(e) {
|
|
6489
6491
|
const t = e.toLowerCase().split("+").map((s) => s.trim()), n = {
|
|
6490
6492
|
alt: t.includes("alt"),
|
|
6491
6493
|
ctrl: t.includes("ctrl"),
|
|
@@ -6504,7 +6506,7 @@ function ny(e) {
|
|
|
6504
6506
|
key: o
|
|
6505
6507
|
};
|
|
6506
6508
|
}
|
|
6507
|
-
function
|
|
6509
|
+
function oy(e, t) {
|
|
6508
6510
|
const { alt: n, ctrl: r, meta: o, mod: s, shift: i, key: a } = e, { altKey: c, ctrlKey: l, metaKey: d, shiftKey: u, key: h } = t;
|
|
6509
6511
|
if (n !== c)
|
|
6510
6512
|
return !1;
|
|
@@ -6516,9 +6518,9 @@ function ry(e, t) {
|
|
|
6516
6518
|
return i !== u ? !1 : !!(a && (h.toLowerCase() === a.toLowerCase() || t.code.replace("Key", "").toLowerCase() === a.toLowerCase()));
|
|
6517
6519
|
}
|
|
6518
6520
|
function dc(e) {
|
|
6519
|
-
return (t) => ry(
|
|
6521
|
+
return (t) => oy(ry(e), t);
|
|
6520
6522
|
}
|
|
6521
|
-
function
|
|
6523
|
+
function sy(e) {
|
|
6522
6524
|
return (t) => {
|
|
6523
6525
|
const n = "nativeEvent" in t ? t.nativeEvent : t;
|
|
6524
6526
|
e.forEach(([r, o, s = {
|
|
@@ -6528,7 +6530,7 @@ function oy(e) {
|
|
|
6528
6530
|
});
|
|
6529
6531
|
};
|
|
6530
6532
|
}
|
|
6531
|
-
function
|
|
6533
|
+
function ay(e, t, n = !1) {
|
|
6532
6534
|
return e.target instanceof HTMLElement ? (n || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
|
6533
6535
|
}
|
|
6534
6536
|
function Vo(e, t = [
|
|
@@ -6541,7 +6543,7 @@ function Vo(e, t = [
|
|
|
6541
6543
|
e.forEach(([s, i, a = {
|
|
6542
6544
|
preventDefault: !0
|
|
6543
6545
|
}]) => {
|
|
6544
|
-
dc(s)(o) &&
|
|
6546
|
+
dc(s)(o) && ay(o, t, n) && (a.preventDefault && o.preventDefault(), i(o));
|
|
6545
6547
|
});
|
|
6546
6548
|
};
|
|
6547
6549
|
return document.documentElement.addEventListener("keydown", r), () => document.documentElement.removeEventListener("keydown", r);
|
|
@@ -6551,15 +6553,15 @@ function Vo(e, t = [
|
|
|
6551
6553
|
n
|
|
6552
6554
|
]);
|
|
6553
6555
|
}
|
|
6554
|
-
const
|
|
6556
|
+
const iy = ["top", "right", "bottom", "left"], mt = Math.min, Se = Math.max, fr = Math.round, Zn = Math.floor, Ge = (e) => ({
|
|
6555
6557
|
x: e,
|
|
6556
6558
|
y: e
|
|
6557
|
-
}),
|
|
6559
|
+
}), cy = {
|
|
6558
6560
|
left: "right",
|
|
6559
6561
|
right: "left",
|
|
6560
6562
|
bottom: "top",
|
|
6561
6563
|
top: "bottom"
|
|
6562
|
-
},
|
|
6564
|
+
}, ly = {
|
|
6563
6565
|
start: "end",
|
|
6564
6566
|
end: "start"
|
|
6565
6567
|
};
|
|
@@ -6581,48 +6583,48 @@ function Wo(e) {
|
|
|
6581
6583
|
function Go(e) {
|
|
6582
6584
|
return e === "y" ? "height" : "width";
|
|
6583
6585
|
}
|
|
6584
|
-
const
|
|
6586
|
+
const uy = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
6585
6587
|
function Ve(e) {
|
|
6586
|
-
return
|
|
6588
|
+
return uy.has(rt(e)) ? "y" : "x";
|
|
6587
6589
|
}
|
|
6588
6590
|
function Yo(e) {
|
|
6589
6591
|
return Wo(Ve(e));
|
|
6590
6592
|
}
|
|
6591
|
-
function
|
|
6593
|
+
function dy(e, t, n) {
|
|
6592
6594
|
n === void 0 && (n = !1);
|
|
6593
6595
|
const r = Yt(e), o = Yo(e), s = Go(o);
|
|
6594
6596
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
6595
6597
|
return t.reference[s] > t.floating[s] && (i = pr(i)), [i, pr(i)];
|
|
6596
6598
|
}
|
|
6597
|
-
function
|
|
6599
|
+
function fy(e) {
|
|
6598
6600
|
const t = pr(e);
|
|
6599
6601
|
return [Io(e), t, Io(t)];
|
|
6600
6602
|
}
|
|
6601
6603
|
function Io(e) {
|
|
6602
|
-
return e.replace(/start|end/g, (t) =>
|
|
6604
|
+
return e.replace(/start|end/g, (t) => ly[t]);
|
|
6603
6605
|
}
|
|
6604
|
-
const da = ["left", "right"], fa = ["right", "left"],
|
|
6605
|
-
function
|
|
6606
|
+
const da = ["left", "right"], fa = ["right", "left"], py = ["top", "bottom"], my = ["bottom", "top"];
|
|
6607
|
+
function hy(e, t, n) {
|
|
6606
6608
|
switch (e) {
|
|
6607
6609
|
case "top":
|
|
6608
6610
|
case "bottom":
|
|
6609
6611
|
return n ? t ? fa : da : t ? da : fa;
|
|
6610
6612
|
case "left":
|
|
6611
6613
|
case "right":
|
|
6612
|
-
return t ?
|
|
6614
|
+
return t ? py : my;
|
|
6613
6615
|
default:
|
|
6614
6616
|
return [];
|
|
6615
6617
|
}
|
|
6616
6618
|
}
|
|
6617
|
-
function
|
|
6619
|
+
function gy(e, t, n, r) {
|
|
6618
6620
|
const o = Yt(e);
|
|
6619
|
-
let s =
|
|
6621
|
+
let s = hy(rt(e), n === "start", r);
|
|
6620
6622
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Io)))), s;
|
|
6621
6623
|
}
|
|
6622
6624
|
function pr(e) {
|
|
6623
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
6625
|
+
return e.replace(/left|right|bottom|top/g, (t) => cy[t]);
|
|
6624
6626
|
}
|
|
6625
|
-
function
|
|
6627
|
+
function vy(e) {
|
|
6626
6628
|
return {
|
|
6627
6629
|
top: 0,
|
|
6628
6630
|
right: 0,
|
|
@@ -6632,7 +6634,7 @@ function gy(e) {
|
|
|
6632
6634
|
};
|
|
6633
6635
|
}
|
|
6634
6636
|
function fc(e) {
|
|
6635
|
-
return typeof e != "number" ?
|
|
6637
|
+
return typeof e != "number" ? vy(e) : {
|
|
6636
6638
|
top: e,
|
|
6637
6639
|
right: e,
|
|
6638
6640
|
bottom: e,
|
|
@@ -6705,7 +6707,7 @@ function pa(e, t, n) {
|
|
|
6705
6707
|
}
|
|
6706
6708
|
return m;
|
|
6707
6709
|
}
|
|
6708
|
-
const
|
|
6710
|
+
const yy = async (e, t, n) => {
|
|
6709
6711
|
const {
|
|
6710
6712
|
placement: r = "bottom",
|
|
6711
6713
|
strategy: o = "absolute",
|
|
@@ -6811,7 +6813,7 @@ async function mn(e, t) {
|
|
|
6811
6813
|
right: (S.right - b.right + p.right) / E.x
|
|
6812
6814
|
};
|
|
6813
6815
|
}
|
|
6814
|
-
const
|
|
6816
|
+
const by = (e) => ({
|
|
6815
6817
|
name: "arrow",
|
|
6816
6818
|
options: e,
|
|
6817
6819
|
async fn(t) {
|
|
@@ -6848,7 +6850,7 @@ const yy = (e) => ({
|
|
|
6848
6850
|
reset: H
|
|
6849
6851
|
};
|
|
6850
6852
|
}
|
|
6851
|
-
}),
|
|
6853
|
+
}), wy = function(e) {
|
|
6852
6854
|
return e === void 0 && (e = {}), {
|
|
6853
6855
|
name: "flip",
|
|
6854
6856
|
options: e,
|
|
@@ -6872,12 +6874,12 @@ const yy = (e) => ({
|
|
|
6872
6874
|
} = nt(e, t);
|
|
6873
6875
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
6874
6876
|
return {};
|
|
6875
|
-
const b = rt(o), _ = Ve(a), y = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = h || (y || !f ? [pr(a)] :
|
|
6876
|
-
!h && T && S.push(...
|
|
6877
|
+
const b = rt(o), _ = Ve(a), y = rt(a) === a, E = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), S = h || (y || !f ? [pr(a)] : fy(a)), T = p !== "none";
|
|
6878
|
+
!h && T && S.push(...gy(a, f, p, E));
|
|
6877
6879
|
const x = [a, ...S], I = await mn(t, v), k = [];
|
|
6878
6880
|
let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
6879
6881
|
if (d && k.push(I[b]), u) {
|
|
6880
|
-
const z =
|
|
6882
|
+
const z = dy(o, i, E);
|
|
6881
6883
|
k.push(I[z[0]], I[z[1]]);
|
|
6882
6884
|
}
|
|
6883
6885
|
if (D = [...D, {
|
|
@@ -6939,9 +6941,9 @@ function ma(e, t) {
|
|
|
6939
6941
|
};
|
|
6940
6942
|
}
|
|
6941
6943
|
function ha(e) {
|
|
6942
|
-
return
|
|
6944
|
+
return iy.some((t) => e[t] >= 0);
|
|
6943
6945
|
}
|
|
6944
|
-
const
|
|
6946
|
+
const _y = function(e) {
|
|
6945
6947
|
return e === void 0 && (e = {}), {
|
|
6946
6948
|
name: "hide",
|
|
6947
6949
|
options: e,
|
|
@@ -6983,7 +6985,7 @@ const wy = function(e) {
|
|
|
6983
6985
|
}
|
|
6984
6986
|
};
|
|
6985
6987
|
}, pc = /* @__PURE__ */ new Set(["left", "top"]);
|
|
6986
|
-
async function
|
|
6988
|
+
async function Ey(e, t) {
|
|
6987
6989
|
const {
|
|
6988
6990
|
placement: n,
|
|
6989
6991
|
platform: r,
|
|
@@ -7010,7 +7012,7 @@ async function _y(e, t) {
|
|
|
7010
7012
|
y: m * d
|
|
7011
7013
|
};
|
|
7012
7014
|
}
|
|
7013
|
-
const
|
|
7015
|
+
const Sy = function(e) {
|
|
7014
7016
|
return e === void 0 && (e = 0), {
|
|
7015
7017
|
name: "offset",
|
|
7016
7018
|
options: e,
|
|
@@ -7021,7 +7023,7 @@ const Ey = function(e) {
|
|
|
7021
7023
|
y: s,
|
|
7022
7024
|
placement: i,
|
|
7023
7025
|
middlewareData: a
|
|
7024
|
-
} = t, c = await
|
|
7026
|
+
} = t, c = await Ey(t, e);
|
|
7025
7027
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
7026
7028
|
x: o + c.x,
|
|
7027
7029
|
y: s + c.y,
|
|
@@ -7032,7 +7034,7 @@ const Ey = function(e) {
|
|
|
7032
7034
|
};
|
|
7033
7035
|
}
|
|
7034
7036
|
};
|
|
7035
|
-
},
|
|
7037
|
+
}, Cy = function(e) {
|
|
7036
7038
|
return e === void 0 && (e = {}), {
|
|
7037
7039
|
name: "shift",
|
|
7038
7040
|
options: e,
|
|
@@ -7088,7 +7090,7 @@ const Ey = function(e) {
|
|
|
7088
7090
|
};
|
|
7089
7091
|
}
|
|
7090
7092
|
};
|
|
7091
|
-
},
|
|
7093
|
+
}, xy = function(e) {
|
|
7092
7094
|
return e === void 0 && (e = {}), {
|
|
7093
7095
|
options: e,
|
|
7094
7096
|
fn(t) {
|
|
@@ -7130,7 +7132,7 @@ const Ey = function(e) {
|
|
|
7130
7132
|
};
|
|
7131
7133
|
}
|
|
7132
7134
|
};
|
|
7133
|
-
},
|
|
7135
|
+
}, Ty = function(e) {
|
|
7134
7136
|
return e === void 0 && (e = {}), {
|
|
7135
7137
|
name: "size",
|
|
7136
7138
|
options: e,
|
|
@@ -7197,7 +7199,7 @@ function Ye(e) {
|
|
|
7197
7199
|
function ga(e) {
|
|
7198
7200
|
return !xr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ce(e).ShadowRoot;
|
|
7199
7201
|
}
|
|
7200
|
-
const
|
|
7202
|
+
const Iy = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
7201
7203
|
function Tn(e) {
|
|
7202
7204
|
const {
|
|
7203
7205
|
overflow: t,
|
|
@@ -7205,15 +7207,15 @@ function Tn(e) {
|
|
|
7205
7207
|
overflowY: r,
|
|
7206
7208
|
display: o
|
|
7207
7209
|
} = De(e);
|
|
7208
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
7210
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Iy.has(o);
|
|
7209
7211
|
}
|
|
7210
|
-
const
|
|
7211
|
-
function
|
|
7212
|
-
return
|
|
7212
|
+
const Ay = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
7213
|
+
function Ry(e) {
|
|
7214
|
+
return Ay.has(Jt(e));
|
|
7213
7215
|
}
|
|
7214
|
-
const
|
|
7216
|
+
const Oy = [":popover-open", ":modal"];
|
|
7215
7217
|
function Tr(e) {
|
|
7216
|
-
return
|
|
7218
|
+
return Oy.some((t) => {
|
|
7217
7219
|
try {
|
|
7218
7220
|
return e.matches(t);
|
|
7219
7221
|
} catch {
|
|
@@ -7221,12 +7223,12 @@ function Tr(e) {
|
|
|
7221
7223
|
}
|
|
7222
7224
|
});
|
|
7223
7225
|
}
|
|
7224
|
-
const
|
|
7226
|
+
const Ny = ["transform", "translate", "scale", "rotate", "perspective"], Py = ["transform", "translate", "scale", "rotate", "perspective", "filter"], My = ["paint", "layout", "strict", "content"];
|
|
7225
7227
|
function Jo(e) {
|
|
7226
7228
|
const t = Ko(), n = ke(e) ? De(e) : e;
|
|
7227
|
-
return
|
|
7229
|
+
return Ny.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Py.some((r) => (n.willChange || "").includes(r)) || My.some((r) => (n.contain || "").includes(r));
|
|
7228
7230
|
}
|
|
7229
|
-
function
|
|
7231
|
+
function ky(e) {
|
|
7230
7232
|
let t = ht(e);
|
|
7231
7233
|
for (; Ye(t) && !Wt(t); ) {
|
|
7232
7234
|
if (Jo(t))
|
|
@@ -7240,9 +7242,9 @@ function My(e) {
|
|
|
7240
7242
|
function Ko() {
|
|
7241
7243
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
7242
7244
|
}
|
|
7243
|
-
const
|
|
7245
|
+
const Dy = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
7244
7246
|
function Wt(e) {
|
|
7245
|
-
return
|
|
7247
|
+
return Dy.has(Jt(e));
|
|
7246
7248
|
}
|
|
7247
7249
|
function De(e) {
|
|
7248
7250
|
return Ce(e).getComputedStyle(e);
|
|
@@ -7313,15 +7315,15 @@ function Zt(e) {
|
|
|
7313
7315
|
y: a
|
|
7314
7316
|
};
|
|
7315
7317
|
}
|
|
7316
|
-
const
|
|
7318
|
+
const $y = /* @__PURE__ */ Ge(0);
|
|
7317
7319
|
function vc(e) {
|
|
7318
7320
|
const t = Ce(e);
|
|
7319
|
-
return !Ko() || !t.visualViewport ?
|
|
7321
|
+
return !Ko() || !t.visualViewport ? $y : {
|
|
7320
7322
|
x: t.visualViewport.offsetLeft,
|
|
7321
7323
|
y: t.visualViewport.offsetTop
|
|
7322
7324
|
};
|
|
7323
7325
|
}
|
|
7324
|
-
function
|
|
7326
|
+
function Ly(e, t, n) {
|
|
7325
7327
|
return t === void 0 && (t = !1), !n || t && n !== Ce(e) ? !1 : t;
|
|
7326
7328
|
}
|
|
7327
7329
|
function Rt(e, t, n, r) {
|
|
@@ -7329,7 +7331,7 @@ function Rt(e, t, n, r) {
|
|
|
7329
7331
|
const o = e.getBoundingClientRect(), s = Xo(e);
|
|
7330
7332
|
let i = Ge(1);
|
|
7331
7333
|
t && (r ? ke(r) && (i = Zt(r)) : i = Zt(e));
|
|
7332
|
-
const a =
|
|
7334
|
+
const a = Ly(s, n, r) ? vc(s) : Ge(0);
|
|
7333
7335
|
let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, d = o.width / i.x, u = o.height / i.y;
|
|
7334
7336
|
if (s) {
|
|
7335
7337
|
const h = Ce(s), m = r && ke(r) ? Ce(r) : r;
|
|
@@ -7357,7 +7359,7 @@ function yc(e, t) {
|
|
|
7357
7359
|
y: o
|
|
7358
7360
|
};
|
|
7359
7361
|
}
|
|
7360
|
-
function
|
|
7362
|
+
function zy(e) {
|
|
7361
7363
|
let {
|
|
7362
7364
|
elements: t,
|
|
7363
7365
|
rect: n,
|
|
@@ -7384,10 +7386,10 @@ function Ly(e) {
|
|
|
7384
7386
|
y: n.y * l.y - c.scrollTop * l.y + d.y + h.y
|
|
7385
7387
|
};
|
|
7386
7388
|
}
|
|
7387
|
-
function
|
|
7389
|
+
function Fy(e) {
|
|
7388
7390
|
return Array.from(e.getClientRects());
|
|
7389
7391
|
}
|
|
7390
|
-
function
|
|
7392
|
+
function Zy(e) {
|
|
7391
7393
|
const t = Xe(e), n = Ir(e), r = e.ownerDocument.body, o = Se(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Se(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7392
7394
|
let i = -n.scrollLeft + Ar(e);
|
|
7393
7395
|
const a = -n.scrollTop;
|
|
@@ -7399,7 +7401,7 @@ function Fy(e) {
|
|
|
7399
7401
|
};
|
|
7400
7402
|
}
|
|
7401
7403
|
const va = 25;
|
|
7402
|
-
function
|
|
7404
|
+
function Uy(e, t) {
|
|
7403
7405
|
const n = Ce(e), r = Xe(e), o = n.visualViewport;
|
|
7404
7406
|
let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
|
|
7405
7407
|
if (o) {
|
|
@@ -7419,8 +7421,8 @@ function Zy(e, t) {
|
|
|
7419
7421
|
y: c
|
|
7420
7422
|
};
|
|
7421
7423
|
}
|
|
7422
|
-
const
|
|
7423
|
-
function
|
|
7424
|
+
const jy = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
7425
|
+
function By(e, t) {
|
|
7424
7426
|
const n = Rt(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ye(e) ? Zt(e) : Ge(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, l = r * s.y;
|
|
7425
7427
|
return {
|
|
7426
7428
|
width: i,
|
|
@@ -7432,11 +7434,11 @@ function jy(e, t) {
|
|
|
7432
7434
|
function ya(e, t, n) {
|
|
7433
7435
|
let r;
|
|
7434
7436
|
if (t === "viewport")
|
|
7435
|
-
r =
|
|
7437
|
+
r = Uy(e, n);
|
|
7436
7438
|
else if (t === "document")
|
|
7437
|
-
r =
|
|
7439
|
+
r = Zy(Xe(e));
|
|
7438
7440
|
else if (ke(t))
|
|
7439
|
-
r =
|
|
7441
|
+
r = By(t, n);
|
|
7440
7442
|
else {
|
|
7441
7443
|
const o = vc(e);
|
|
7442
7444
|
r = {
|
|
@@ -7452,7 +7454,7 @@ function bc(e, t) {
|
|
|
7452
7454
|
const n = ht(e);
|
|
7453
7455
|
return n === t || !ke(n) || Wt(n) ? !1 : De(n).position === "fixed" || bc(n, t);
|
|
7454
7456
|
}
|
|
7455
|
-
function
|
|
7457
|
+
function Hy(e, t) {
|
|
7456
7458
|
const n = t.get(e);
|
|
7457
7459
|
if (n)
|
|
7458
7460
|
return n;
|
|
@@ -7461,18 +7463,18 @@ function By(e, t) {
|
|
|
7461
7463
|
let i = s ? ht(e) : e;
|
|
7462
7464
|
for (; ke(i) && !Wt(i); ) {
|
|
7463
7465
|
const a = De(i), c = Jo(i);
|
|
7464
|
-
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o &&
|
|
7466
|
+
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && jy.has(o.position) || Tn(i) && !c && bc(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = ht(i);
|
|
7465
7467
|
}
|
|
7466
7468
|
return t.set(e, r), r;
|
|
7467
7469
|
}
|
|
7468
|
-
function
|
|
7470
|
+
function Vy(e) {
|
|
7469
7471
|
let {
|
|
7470
7472
|
element: t,
|
|
7471
7473
|
boundary: n,
|
|
7472
7474
|
rootBoundary: r,
|
|
7473
7475
|
strategy: o
|
|
7474
7476
|
} = e;
|
|
7475
|
-
const i = [...n === "clippingAncestors" ? Tr(t) ? [] :
|
|
7477
|
+
const i = [...n === "clippingAncestors" ? Tr(t) ? [] : Hy(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, d) => {
|
|
7476
7478
|
const u = ya(t, d, o);
|
|
7477
7479
|
return l.top = Se(u.top, l.top), l.right = mt(u.right, l.right), l.bottom = mt(u.bottom, l.bottom), l.left = Se(u.left, l.left), l;
|
|
7478
7480
|
}, ya(t, a, o));
|
|
@@ -7483,7 +7485,7 @@ function Hy(e) {
|
|
|
7483
7485
|
y: c.top
|
|
7484
7486
|
};
|
|
7485
7487
|
}
|
|
7486
|
-
function
|
|
7488
|
+
function Wy(e) {
|
|
7487
7489
|
const {
|
|
7488
7490
|
width: t,
|
|
7489
7491
|
height: n
|
|
@@ -7493,7 +7495,7 @@ function Vy(e) {
|
|
|
7493
7495
|
height: n
|
|
7494
7496
|
};
|
|
7495
7497
|
}
|
|
7496
|
-
function
|
|
7498
|
+
function Gy(e, t, n) {
|
|
7497
7499
|
const r = Ye(t), o = Xe(t), s = n === "fixed", i = Rt(e, !0, s, t);
|
|
7498
7500
|
let a = {
|
|
7499
7501
|
scrollLeft: 0,
|
|
@@ -7542,14 +7544,14 @@ function wc(e, t) {
|
|
|
7542
7544
|
return n;
|
|
7543
7545
|
}
|
|
7544
7546
|
let r = ba(e, t);
|
|
7545
|
-
for (; r &&
|
|
7547
|
+
for (; r && Ry(r) && Xr(r); )
|
|
7546
7548
|
r = ba(r, t);
|
|
7547
|
-
return r && Wt(r) && Xr(r) && !Jo(r) ? n : r ||
|
|
7549
|
+
return r && Wt(r) && Xr(r) && !Jo(r) ? n : r || ky(e) || n;
|
|
7548
7550
|
}
|
|
7549
|
-
const
|
|
7551
|
+
const Yy = async function(e) {
|
|
7550
7552
|
const t = this.getOffsetParent || wc, n = this.getDimensions, r = await n(e.floating);
|
|
7551
7553
|
return {
|
|
7552
|
-
reference:
|
|
7554
|
+
reference: Gy(e.reference, await t(e.floating), e.strategy),
|
|
7553
7555
|
floating: {
|
|
7554
7556
|
x: 0,
|
|
7555
7557
|
y: 0,
|
|
@@ -7558,25 +7560,25 @@ const Gy = async function(e) {
|
|
|
7558
7560
|
}
|
|
7559
7561
|
};
|
|
7560
7562
|
};
|
|
7561
|
-
function
|
|
7563
|
+
function Jy(e) {
|
|
7562
7564
|
return De(e).direction === "rtl";
|
|
7563
7565
|
}
|
|
7564
|
-
const
|
|
7565
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
7566
|
+
const Ky = {
|
|
7567
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: zy,
|
|
7566
7568
|
getDocumentElement: Xe,
|
|
7567
|
-
getClippingRect:
|
|
7569
|
+
getClippingRect: Vy,
|
|
7568
7570
|
getOffsetParent: wc,
|
|
7569
|
-
getElementRects:
|
|
7570
|
-
getClientRects:
|
|
7571
|
-
getDimensions:
|
|
7571
|
+
getElementRects: Yy,
|
|
7572
|
+
getClientRects: Fy,
|
|
7573
|
+
getDimensions: Wy,
|
|
7572
7574
|
getScale: Zt,
|
|
7573
7575
|
isElement: ke,
|
|
7574
|
-
isRTL:
|
|
7576
|
+
isRTL: Jy
|
|
7575
7577
|
};
|
|
7576
7578
|
function _c(e, t) {
|
|
7577
7579
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
7578
7580
|
}
|
|
7579
|
-
function
|
|
7581
|
+
function Xy(e, t) {
|
|
7580
7582
|
let n = null, r;
|
|
7581
7583
|
const o = Xe(e);
|
|
7582
7584
|
function s() {
|
|
@@ -7622,7 +7624,7 @@ function Ky(e, t) {
|
|
|
7622
7624
|
}
|
|
7623
7625
|
return i(!0), s;
|
|
7624
7626
|
}
|
|
7625
|
-
function
|
|
7627
|
+
function qy(e, t, n, r) {
|
|
7626
7628
|
r === void 0 && (r = {});
|
|
7627
7629
|
const {
|
|
7628
7630
|
ancestorScroll: o = !0,
|
|
@@ -7636,7 +7638,7 @@ function Xy(e, t, n, r) {
|
|
|
7636
7638
|
passive: !0
|
|
7637
7639
|
}), s && b.addEventListener("resize", n);
|
|
7638
7640
|
});
|
|
7639
|
-
const u = l && a ?
|
|
7641
|
+
const u = l && a ? Xy(l, n) : null;
|
|
7640
7642
|
let h = -1, m = null;
|
|
7641
7643
|
i && (m = new ResizeObserver((b) => {
|
|
7642
7644
|
let [_] = b;
|
|
@@ -7658,15 +7660,15 @@ function Xy(e, t, n, r) {
|
|
|
7658
7660
|
}), u?.(), (b = m) == null || b.disconnect(), m = null, c && cancelAnimationFrame(p);
|
|
7659
7661
|
};
|
|
7660
7662
|
}
|
|
7661
|
-
const Ec =
|
|
7663
|
+
const Ec = Sy, Sc = Cy, Cc = wy, Qy = Ty, eb = _y, Ro = by, tb = xy, xc = (e, t, n) => {
|
|
7662
7664
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
7663
|
-
platform:
|
|
7665
|
+
platform: Ky,
|
|
7664
7666
|
...n
|
|
7665
7667
|
}, s = {
|
|
7666
7668
|
...o.platform,
|
|
7667
7669
|
_c: r
|
|
7668
7670
|
};
|
|
7669
|
-
return
|
|
7671
|
+
return yy(e, t, {
|
|
7670
7672
|
...o,
|
|
7671
7673
|
platform: s
|
|
7672
7674
|
});
|
|
@@ -7675,7 +7677,7 @@ const wa = [
|
|
|
7675
7677
|
"mousedown",
|
|
7676
7678
|
"touchstart"
|
|
7677
7679
|
];
|
|
7678
|
-
function
|
|
7680
|
+
function nb(e, t, n) {
|
|
7679
7681
|
const r = V(null);
|
|
7680
7682
|
return U(() => {
|
|
7681
7683
|
const o = (s) => {
|
|
@@ -7694,7 +7696,7 @@ function tb(e, t, n) {
|
|
|
7694
7696
|
t
|
|
7695
7697
|
]), r;
|
|
7696
7698
|
}
|
|
7697
|
-
function
|
|
7699
|
+
function rb(e, t) {
|
|
7698
7700
|
const [n, r] = B(!1), o = V(null), s = V(null), i = J(() => {
|
|
7699
7701
|
r((c) => (!c && (!o.current || o.current === -1) && (o.current = window.setInterval(s.current, t)), !0));
|
|
7700
7702
|
}, [
|
|
@@ -7713,27 +7715,27 @@ function nb(e, t) {
|
|
|
7713
7715
|
active: n
|
|
7714
7716
|
};
|
|
7715
7717
|
}
|
|
7716
|
-
const
|
|
7718
|
+
const ob = "av-tooltip", sb = "av-tooltip-arrow", Un = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, ab = () => M("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), _a = ({ mode: e }) => M({
|
|
7717
7719
|
"bg-surface-darker": e === "dark" || e === "system",
|
|
7718
7720
|
"bg-surface-lighter": e === "light" || e === "alt-system",
|
|
7719
7721
|
"dark:bg-surface-lighter": e === "system",
|
|
7720
7722
|
"dark:bg-surface-darker": e === "alt-system"
|
|
7721
|
-
}),
|
|
7723
|
+
}), ib = ({ mode: e }) => M({
|
|
7722
7724
|
"text-copy-light": e === "dark" || e === "system",
|
|
7723
7725
|
"text-copy-dark": e === "light" || e === "alt-system",
|
|
7724
7726
|
"dark:text-copy-dark": e === "system",
|
|
7725
7727
|
"dark:text-copy-light": e === "alt-system"
|
|
7726
|
-
}),
|
|
7728
|
+
}), cb = ({ mode: e }) => M({
|
|
7727
7729
|
"shadow-md": e === "light" || e === "alt-system",
|
|
7728
7730
|
"dark:shadow-md": e === "system"
|
|
7729
|
-
}),
|
|
7730
|
-
const o = M("relative inline-block", t), s = M(
|
|
7731
|
-
mode: e
|
|
7732
|
-
}), ab({
|
|
7731
|
+
}), lb = () => M("absolute", "size-2", "transform rotate-45"), ub = ({ mode: e, className: t, tooltipClassName: n, arrowClassName: r }) => {
|
|
7732
|
+
const o = M("relative inline-block", t), s = M(ob, ab(), _a({
|
|
7733
7733
|
mode: e
|
|
7734
7734
|
}), ib({
|
|
7735
7735
|
mode: e
|
|
7736
|
-
}),
|
|
7736
|
+
}), cb({
|
|
7737
|
+
mode: e
|
|
7738
|
+
}), n), i = M(sb, lb(), _a({
|
|
7737
7739
|
mode: e
|
|
7738
7740
|
}), r);
|
|
7739
7741
|
return {
|
|
@@ -7741,19 +7743,19 @@ const rb = "av-tooltip", ob = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
|
|
|
7741
7743
|
arrow: i,
|
|
7742
7744
|
wrapper: o
|
|
7743
7745
|
};
|
|
7744
|
-
},
|
|
7746
|
+
}, db = ({ animationDuration: e = 300 }) => ({
|
|
7745
7747
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
|
7746
|
-
}),
|
|
7747
|
-
const l =
|
|
7748
|
+
}), fb = 5e3, pb = ({ trigger: e, label: t, placement: n = "top", mode: r = "system", animationDuration: o = 300, delay: s = 0, className: i, tooltipClassName: a, arrowClassName: c }) => {
|
|
7749
|
+
const l = nb(() => {
|
|
7748
7750
|
y.stop(), v(!1);
|
|
7749
|
-
}), d = V(null), u = V(null), h = V(null), [m, p] = B(!1), [f, v] = B(!1), [b, _] = B(!1), y =
|
|
7751
|
+
}), d = V(null), u = V(null), h = V(null), [m, p] = B(!1), [f, v] = B(!1), [b, _] = B(!1), y = rb(() => {
|
|
7750
7752
|
v(!1);
|
|
7751
|
-
},
|
|
7753
|
+
}, fb), E = ub({
|
|
7752
7754
|
mode: r,
|
|
7753
7755
|
className: i,
|
|
7754
7756
|
tooltipClassName: a,
|
|
7755
7757
|
arrowClassName: c
|
|
7756
|
-
}), S =
|
|
7758
|
+
}), S = db({
|
|
7757
7759
|
animationDuration: o
|
|
7758
7760
|
}), T = J(async () => {
|
|
7759
7761
|
if (l.current && d.current && u.current) {
|
|
@@ -7843,7 +7845,7 @@ const rb = "av-tooltip", ob = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
|
|
|
7843
7845
|
trigger: e,
|
|
7844
7846
|
className: t,
|
|
7845
7847
|
...n
|
|
7846
|
-
}) => Ae(() => We(), []) ? /* @__PURE__ */ g("div", { className: t, children: e }) : /* @__PURE__ */ g(
|
|
7848
|
+
}) => Ae(() => We(), []) ? /* @__PURE__ */ g("div", { className: t, children: e }) : /* @__PURE__ */ g(pb, { delay: 500, className: t, trigger: e, ...n }), In = ({
|
|
7847
7849
|
label: e,
|
|
7848
7850
|
labelRight: t,
|
|
7849
7851
|
placement: n = "top-end",
|
|
@@ -7883,7 +7885,7 @@ const rb = "av-tooltip", ob = "av-tooltip-arrow", Un = (e, t = "px") => typeof e
|
|
|
7883
7885
|
trigger: t ? /* @__PURE__ */ g(jt, { ...m, labelRight: t, children: s }) : /* @__PURE__ */ g(jt, { ...m, children: s })
|
|
7884
7886
|
}
|
|
7885
7887
|
);
|
|
7886
|
-
},
|
|
7888
|
+
}, mb = ({
|
|
7887
7889
|
className: e,
|
|
7888
7890
|
onClick: t
|
|
7889
7891
|
}) => {
|
|
@@ -7914,7 +7916,7 @@ function Tc(e, t) {
|
|
|
7914
7916
|
};
|
|
7915
7917
|
}, [e, t]);
|
|
7916
7918
|
}
|
|
7917
|
-
const
|
|
7919
|
+
const hb = ({
|
|
7918
7920
|
className: e
|
|
7919
7921
|
}) => {
|
|
7920
7922
|
const { getAccessToken: t, user: n } = $e(), {
|
|
@@ -8020,8 +8022,8 @@ const Ic = async () => (qr || (qr = import(
|
|
|
8020
8022
|
"./index.ri2Dr1rJ.js"
|
|
8021
8023
|
)), qr), Ac = async () => (Qr || (Qr = import(
|
|
8022
8024
|
/* webpackChunkName: "toast-utilities" */
|
|
8023
|
-
"./index.
|
|
8024
|
-
).then((e) => e.utilities)), Qr),
|
|
8025
|
+
"./index.BrfxZy3k.js"
|
|
8026
|
+
).then((e) => e.utilities)), Qr), gb = async () => {
|
|
8025
8027
|
try {
|
|
8026
8028
|
await Promise.all([Ic(), Ac()]);
|
|
8027
8029
|
} catch {
|
|
@@ -8042,12 +8044,12 @@ const Ic = async () => (qr || (qr = import(
|
|
|
8042
8044
|
}, 100);
|
|
8043
8045
|
} catch {
|
|
8044
8046
|
}
|
|
8045
|
-
}, Ea = (e, t) => Rc(e, "success", t),
|
|
8047
|
+
}, Ea = (e, t) => Rc(e, "success", t), vb = (e, t) => Rc(e, "error", t), hr = (e) => {
|
|
8046
8048
|
const { check: t } = Do();
|
|
8047
8049
|
return t(e);
|
|
8048
8050
|
};
|
|
8049
|
-
const
|
|
8050
|
-
function
|
|
8051
|
+
const yb = "av-messagebox", bb = "av-panel", Qe = "messagebox", Oc = /* @__PURE__ */ ti(null);
|
|
8052
|
+
function wb({ initialOpen: e = !1, open: t, onOpenChange: n, initialFocus: r } = {}) {
|
|
8051
8053
|
const [o, s] = B(e), [i, a] = B(), [c, l] = B(), d = t ?? o, u = n ?? s, h = Ld(), m = zd({
|
|
8052
8054
|
nodeId: h,
|
|
8053
8055
|
open: d,
|
|
@@ -8094,13 +8096,13 @@ const Or = () => {
|
|
|
8094
8096
|
return e;
|
|
8095
8097
|
};
|
|
8096
8098
|
function Sa({ children: e, ...t }) {
|
|
8097
|
-
const n =
|
|
8099
|
+
const n = wb(t);
|
|
8098
8100
|
return /* @__PURE__ */ g(Oc.Provider, {
|
|
8099
8101
|
value: n,
|
|
8100
8102
|
children: e
|
|
8101
8103
|
});
|
|
8102
8104
|
}
|
|
8103
|
-
function
|
|
8105
|
+
function _b(e) {
|
|
8104
8106
|
return Od() === null ? /* @__PURE__ */ g(Nd, {
|
|
8105
8107
|
children: /* @__PURE__ */ g(Sa, {
|
|
8106
8108
|
...e
|
|
@@ -8109,7 +8111,7 @@ function wb(e) {
|
|
|
8109
8111
|
...e
|
|
8110
8112
|
});
|
|
8111
8113
|
}
|
|
8112
|
-
function
|
|
8114
|
+
function Eb({ ref: e, overlayBackground: t, ...n }) {
|
|
8113
8115
|
const { context: r, nodeId: o, ...s } = Or(), i = Pd([
|
|
8114
8116
|
s.refs.setFloating,
|
|
8115
8117
|
e
|
|
@@ -8140,7 +8142,7 @@ function _b({ ref: e, overlayBackground: t, ...n }) {
|
|
|
8140
8142
|
})
|
|
8141
8143
|
});
|
|
8142
8144
|
}
|
|
8143
|
-
function
|
|
8145
|
+
function Sb({ children: e, ref: t, ...n }) {
|
|
8144
8146
|
const { setLabelId: r } = Or(), o = ni();
|
|
8145
8147
|
return wn(() => (r(o), () => r(void 0)), [
|
|
8146
8148
|
o,
|
|
@@ -8152,7 +8154,7 @@ function Eb({ children: e, ref: t, ...n }) {
|
|
|
8152
8154
|
children: e
|
|
8153
8155
|
});
|
|
8154
8156
|
}
|
|
8155
|
-
function
|
|
8157
|
+
function Cb({ children: e, ref: t, ...n }) {
|
|
8156
8158
|
const { setDescriptionId: r } = Or(), o = ni();
|
|
8157
8159
|
return wn(() => (r(o), () => r(void 0)), [
|
|
8158
8160
|
o,
|
|
@@ -8164,7 +8166,7 @@ function Sb({ children: e, ref: t, ...n }) {
|
|
|
8164
8166
|
children: e
|
|
8165
8167
|
});
|
|
8166
8168
|
}
|
|
8167
|
-
function
|
|
8169
|
+
function xb({ ref: e, trigger: t, className: n, ...r }) {
|
|
8168
8170
|
const { setOpen: o } = Or(), s = J(() => o(!1), [
|
|
8169
8171
|
o
|
|
8170
8172
|
]);
|
|
@@ -8186,7 +8188,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8186
8188
|
"large",
|
|
8187
8189
|
"bg-surface-darker": e === /* inlined export .NONE */
|
|
8188
8190
|
"none"
|
|
8189
|
-
}),
|
|
8191
|
+
}), Tb = ({ className: e, kind: t, borderMode: n, animation: r, maxWidth: o = (
|
|
8190
8192
|
/* inlined export .MEDIUM */
|
|
8191
8193
|
"medium"
|
|
8192
8194
|
), maxHeight: s, blurEffect: i = (
|
|
@@ -8207,7 +8209,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8207
8209
|
/**
|
|
8208
8210
|
* Panel styles
|
|
8209
8211
|
*/
|
|
8210
|
-
[`${
|
|
8212
|
+
[`${bb} sm:rounded-3xl sm:border`]: t === /* inlined export .TYPE_PANEL */
|
|
8211
8213
|
"panel",
|
|
8212
8214
|
/**
|
|
8213
8215
|
* Widths and max widths for Panel when no className is provided
|
|
@@ -8244,7 +8246,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8244
8246
|
/**
|
|
8245
8247
|
* Messagebox styles
|
|
8246
8248
|
*/
|
|
8247
|
-
[`${
|
|
8249
|
+
[`${yb} rounded-3xl border`]: t === Qe,
|
|
8248
8250
|
/**
|
|
8249
8251
|
* Widths and max widths for Messagebox when no className is provided
|
|
8250
8252
|
*/
|
|
@@ -8315,7 +8317,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8315
8317
|
),
|
|
8316
8318
|
content: "p-4 rounded-3xl"
|
|
8317
8319
|
};
|
|
8318
|
-
},
|
|
8320
|
+
}, Ib = ({ open: e, onOpenChange: t, title: n, children: r, footer: o, borderMode: s = "light", kind: i = (
|
|
8319
8321
|
/* inlined export .TYPE_PANEL */
|
|
8320
8322
|
"panel"
|
|
8321
8323
|
), className: a, animation: c = !1, animationType: l = (
|
|
@@ -8333,7 +8335,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8333
8335
|
opacity: 0
|
|
8334
8336
|
} : {
|
|
8335
8337
|
transform: "translateY(-100vh)"
|
|
8336
|
-
} : {}), b =
|
|
8338
|
+
} : {}), b = Tb({
|
|
8337
8339
|
className: a,
|
|
8338
8340
|
kind: i,
|
|
8339
8341
|
borderMode: s,
|
|
@@ -8371,22 +8373,22 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8371
8373
|
c,
|
|
8372
8374
|
l
|
|
8373
8375
|
]), /* @__PURE__ */ g(ct, {
|
|
8374
|
-
children: e && /* @__PURE__ */ g(
|
|
8376
|
+
children: e && /* @__PURE__ */ g(_b, {
|
|
8375
8377
|
open: e,
|
|
8376
8378
|
onOpenChange: t,
|
|
8377
8379
|
initialFocus: m,
|
|
8378
|
-
children: /* @__PURE__ */ g(
|
|
8380
|
+
children: /* @__PURE__ */ g(Eb, {
|
|
8379
8381
|
className: b.outerWrapper,
|
|
8380
8382
|
style: {
|
|
8381
8383
|
...f
|
|
8382
8384
|
},
|
|
8383
|
-
children: /* @__PURE__ */ F(
|
|
8385
|
+
children: /* @__PURE__ */ F(Cb, {
|
|
8384
8386
|
className: b.innerWrapper,
|
|
8385
8387
|
children: [
|
|
8386
8388
|
/* @__PURE__ */ F("div", {
|
|
8387
8389
|
className: b.header,
|
|
8388
8390
|
children: [
|
|
8389
|
-
/* @__PURE__ */ g(
|
|
8391
|
+
/* @__PURE__ */ g(xb, {
|
|
8390
8392
|
className: b.closeWrapper,
|
|
8391
8393
|
trigger: /* @__PURE__ */ g("button", {
|
|
8392
8394
|
className: b.closeButton,
|
|
@@ -8409,7 +8411,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8409
8411
|
})
|
|
8410
8412
|
})
|
|
8411
8413
|
}),
|
|
8412
|
-
/* @__PURE__ */ g(
|
|
8414
|
+
/* @__PURE__ */ g(Sb, {
|
|
8413
8415
|
className: b.title,
|
|
8414
8416
|
children: n
|
|
8415
8417
|
})
|
|
@@ -8434,7 +8436,7 @@ const Ca = ({ blurEffect: e }) => M("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8434
8436
|
};
|
|
8435
8437
|
const eo = 50, xa = 120;
|
|
8436
8438
|
let je = null, jn = 0;
|
|
8437
|
-
const
|
|
8439
|
+
const Ab = () => {
|
|
8438
8440
|
if (typeof window > "u" || je && document.body.contains(je))
|
|
8439
8441
|
return;
|
|
8440
8442
|
const e = document.querySelector('label[data-haptic-singleton="true"]');
|
|
@@ -8447,21 +8449,21 @@ const Ib = () => {
|
|
|
8447
8449
|
t.type = "checkbox", t.setAttribute("switch", ""), t.style.display = "none", t.setAttribute("aria-hidden", "true"), t.dataset.hapticSingleton = "true";
|
|
8448
8450
|
const n = document.createElement("label");
|
|
8449
8451
|
n.style.display = "none", n.setAttribute("aria-hidden", "true"), n.dataset.hapticSingleton = "true", n.appendChild(t), document.body.appendChild(n), je = n;
|
|
8450
|
-
}, Ab = () => {
|
|
8451
|
-
je && document.body && document.body.contains(je) && document.body.removeChild(je), je = null;
|
|
8452
8452
|
}, Rb = () => {
|
|
8453
|
+
je && document.body && document.body.contains(je) && document.body.removeChild(je), je = null;
|
|
8454
|
+
}, Ob = () => {
|
|
8453
8455
|
const e = V(/* @__PURE__ */ new Set());
|
|
8454
8456
|
U(() => {
|
|
8455
8457
|
jn++;
|
|
8456
8458
|
try {
|
|
8457
|
-
|
|
8459
|
+
Ab();
|
|
8458
8460
|
} catch (r) {
|
|
8459
8461
|
throw jn--, r;
|
|
8460
8462
|
}
|
|
8461
8463
|
return () => {
|
|
8462
8464
|
for (const r of e.current)
|
|
8463
8465
|
clearTimeout(r);
|
|
8464
|
-
e.current.clear(), jn--, jn === 0 &&
|
|
8466
|
+
e.current.clear(), jn--, jn === 0 && Rb();
|
|
8465
8467
|
};
|
|
8466
8468
|
}, []);
|
|
8467
8469
|
const t = J(() => {
|
|
@@ -8496,7 +8498,7 @@ const Ib = () => {
|
|
|
8496
8498
|
])
|
|
8497
8499
|
};
|
|
8498
8500
|
};
|
|
8499
|
-
const
|
|
8501
|
+
const Nb = "av-toggle", Pb = ({ narrow: e }) => M(
|
|
8500
8502
|
"peer",
|
|
8501
8503
|
"rounded-full",
|
|
8502
8504
|
{
|
|
@@ -8505,12 +8507,12 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8505
8507
|
},
|
|
8506
8508
|
// Smooth background/border transition when toggling
|
|
8507
8509
|
"transition-colors duration-300 ease-in-out motion-reduce:transition-none"
|
|
8508
|
-
),
|
|
8510
|
+
), Mb = ({ focusMode: e }) => M("peer-focus:outline", "peer-focus:outline-2", "peer-focus:outline-offset-2", {
|
|
8509
8511
|
"peer-focus:outline-focus-dark": e === "dark",
|
|
8510
8512
|
"peer-focus:outline-focus-light": e === "light",
|
|
8511
8513
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
8512
8514
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
8513
|
-
}),
|
|
8515
|
+
}), kb = ({ narrow: e }) => M(
|
|
8514
8516
|
{
|
|
8515
8517
|
"peer-checked:after:translate-x-full": !e,
|
|
8516
8518
|
"peer-checked:after:translate-x-4": e
|
|
@@ -8520,12 +8522,12 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8520
8522
|
// knob circle and border color when checked
|
|
8521
8523
|
"peer-checked:after:bg-white",
|
|
8522
8524
|
"peer-checked:after:border-white"
|
|
8523
|
-
),
|
|
8525
|
+
), Db = ({ narrow: e }) => M("after:left-[2px]", "after:top-[2px]", "after:border", "after:border-surface-light dark:after:border-surface-medium", "after:bg-surface-light dark:after:bg-surface-medium", "after:absolute", "after:transition-all after:duration-300 after:ease-in-out after:motion-reduce:transition-none after:will-change-transform", "after:content-['']", "after:rounded-full", {
|
|
8524
8526
|
// Normal toggle knob (circle)
|
|
8525
8527
|
"after:h-5 after:w-5": !e,
|
|
8526
8528
|
// Narrow toggle knob (oval)
|
|
8527
8529
|
" after:h-4 after:w-7": e
|
|
8528
|
-
}),
|
|
8530
|
+
}), $b = ({ mode: e, noBorder: t }) => M({
|
|
8529
8531
|
border: !t,
|
|
8530
8532
|
"border-border-medium bg-surface-medium": e === "light",
|
|
8531
8533
|
"border-border-light bg-surface-darker": e === "dark",
|
|
@@ -8544,17 +8546,17 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8544
8546
|
"text-copy-lighter/60 dark:text-copy-dark/60": t === "alt-system" && o,
|
|
8545
8547
|
"text-copy-dark/60 dark:text-copy-lighter/60": t === "system" && o,
|
|
8546
8548
|
"text-xs": o
|
|
8547
|
-
})),
|
|
8548
|
-
toggle: M(
|
|
8549
|
+
})), Lb = ({ className: e }) => M(Nb, "relative flex cursor-pointer items-center", e), zb = () => "relative inline-block", Fb = ({ mode: e, focusMode: t, labelHidden: n, className: r, noBorder: o, narrow: s, labelMode: i, labelPosition: a = "right", subLabel: c }) => ({
|
|
8550
|
+
toggle: M(Pb({
|
|
8549
8551
|
narrow: s
|
|
8550
|
-
}),
|
|
8552
|
+
}), $b({
|
|
8551
8553
|
mode: e,
|
|
8552
8554
|
noBorder: o
|
|
8553
|
-
}),
|
|
8555
|
+
}), Mb({
|
|
8554
8556
|
focusMode: t
|
|
8555
|
-
}),
|
|
8557
|
+
}), Db({
|
|
8556
8558
|
narrow: s
|
|
8557
|
-
}),
|
|
8559
|
+
}), kb({
|
|
8558
8560
|
narrow: s
|
|
8559
8561
|
})),
|
|
8560
8562
|
label: Ta({
|
|
@@ -8571,12 +8573,12 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8571
8573
|
subLabel: c
|
|
8572
8574
|
}),
|
|
8573
8575
|
input: "peer sr-only",
|
|
8574
|
-
wrapper:
|
|
8576
|
+
wrapper: Lb({
|
|
8575
8577
|
className: r
|
|
8576
8578
|
}),
|
|
8577
|
-
toggleWrapper:
|
|
8578
|
-
}),
|
|
8579
|
-
const { haptic: p } =
|
|
8579
|
+
toggleWrapper: zb()
|
|
8580
|
+
}), Zb = ({ checked: e = !1, onChange: t, label: n, labelHidden: r = !1, name: o, mode: s = "system", focusMode: i = "system", labelMode: a, className: c, noBorder: l = !1, narrow: d = !1, noHaptic: u = !1, labelPosition: h = "right", subLabel: m }) => {
|
|
8581
|
+
const { haptic: p } = Ob(), f = Fb({
|
|
8580
8582
|
mode: s,
|
|
8581
8583
|
focusMode: i,
|
|
8582
8584
|
labelHidden: r,
|
|
@@ -8626,7 +8628,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8626
8628
|
h === "right" && b
|
|
8627
8629
|
]
|
|
8628
8630
|
});
|
|
8629
|
-
},
|
|
8631
|
+
}, Ub = ({
|
|
8630
8632
|
onOpenChange: e,
|
|
8631
8633
|
label: t = "Dismiss",
|
|
8632
8634
|
ref: n
|
|
@@ -8661,7 +8663,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8661
8663
|
}) => {
|
|
8662
8664
|
const h = V(null), m = /* @__PURE__ */ F("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
|
|
8663
8665
|
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: !s && /* @__PURE__ */ g(
|
|
8664
|
-
|
|
8666
|
+
Ub,
|
|
8665
8667
|
{
|
|
8666
8668
|
onOpenChange: t,
|
|
8667
8669
|
label: o.cancelAction,
|
|
@@ -8683,7 +8685,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8683
8685
|
) })
|
|
8684
8686
|
] }), p = c ? /* @__PURE__ */ F("div", { className: "flex flex-wrap justify-between items-center gap-x-2", children: [
|
|
8685
8687
|
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto grow", children: /* @__PURE__ */ g(
|
|
8686
|
-
|
|
8688
|
+
Zb,
|
|
8687
8689
|
{
|
|
8688
8690
|
narrow: !0,
|
|
8689
8691
|
mode: "dark",
|
|
@@ -8700,7 +8702,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8700
8702
|
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto grow", children: m })
|
|
8701
8703
|
] }) : m;
|
|
8702
8704
|
return /* @__PURE__ */ g(
|
|
8703
|
-
|
|
8705
|
+
Ib,
|
|
8704
8706
|
{
|
|
8705
8707
|
kind: "messagebox",
|
|
8706
8708
|
open: e,
|
|
@@ -8713,7 +8715,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8713
8715
|
children: r
|
|
8714
8716
|
}
|
|
8715
8717
|
);
|
|
8716
|
-
},
|
|
8718
|
+
}, jb = ({
|
|
8717
8719
|
className: e
|
|
8718
8720
|
}) => {
|
|
8719
8721
|
const { getAccessToken: t, user: n } = $e(), {
|
|
@@ -8761,7 +8763,7 @@ const Ob = "av-toggle", Nb = ({ narrow: e }) => M(
|
|
|
8761
8763
|
}
|
|
8762
8764
|
});
|
|
8763
8765
|
} catch {
|
|
8764
|
-
await
|
|
8766
|
+
await vb("Failed to toggle privacy. Please try again.", {
|
|
8765
8767
|
containerId: "toggle-privacy"
|
|
8766
8768
|
});
|
|
8767
8769
|
}
|
|
@@ -8880,9 +8882,9 @@ function An(e, t = []) {
|
|
|
8880
8882
|
);
|
|
8881
8883
|
};
|
|
8882
8884
|
};
|
|
8883
|
-
return o.scopeName = e, [r,
|
|
8885
|
+
return o.scopeName = e, [r, Bb(o, ...t)];
|
|
8884
8886
|
}
|
|
8885
|
-
function
|
|
8887
|
+
function Bb(...e) {
|
|
8886
8888
|
const t = e[0];
|
|
8887
8889
|
if (e.length === 1) return t;
|
|
8888
8890
|
const n = () => {
|
|
@@ -8901,7 +8903,7 @@ function jb(...e) {
|
|
|
8901
8903
|
return n.scopeName = t.scopeName, n;
|
|
8902
8904
|
}
|
|
8903
8905
|
var gt = globalThis?.document ? w.useLayoutEffect : () => {
|
|
8904
|
-
},
|
|
8906
|
+
}, Hb = w[" useInsertionEffect ".trim().toString()] || gt;
|
|
8905
8907
|
function qo({
|
|
8906
8908
|
prop: e,
|
|
8907
8909
|
defaultProp: t,
|
|
@@ -8909,7 +8911,7 @@ function qo({
|
|
|
8909
8911
|
},
|
|
8910
8912
|
caller: r
|
|
8911
8913
|
}) {
|
|
8912
|
-
const [o, s, i] =
|
|
8914
|
+
const [o, s, i] = Vb({
|
|
8913
8915
|
defaultProp: t,
|
|
8914
8916
|
onChange: n
|
|
8915
8917
|
}), a = e !== void 0, c = a ? e : o;
|
|
@@ -8925,7 +8927,7 @@ function qo({
|
|
|
8925
8927
|
const l = w.useCallback(
|
|
8926
8928
|
(d) => {
|
|
8927
8929
|
if (a) {
|
|
8928
|
-
const u =
|
|
8930
|
+
const u = Wb(d) ? d(e) : d;
|
|
8929
8931
|
u !== e && i.current?.(u);
|
|
8930
8932
|
} else
|
|
8931
8933
|
s(d);
|
|
@@ -8934,24 +8936,24 @@ function qo({
|
|
|
8934
8936
|
);
|
|
8935
8937
|
return [c, l];
|
|
8936
8938
|
}
|
|
8937
|
-
function
|
|
8939
|
+
function Vb({
|
|
8938
8940
|
defaultProp: e,
|
|
8939
8941
|
onChange: t
|
|
8940
8942
|
}) {
|
|
8941
8943
|
const [n, r] = w.useState(e), o = w.useRef(n), s = w.useRef(t);
|
|
8942
|
-
return
|
|
8944
|
+
return Hb(() => {
|
|
8943
8945
|
s.current = t;
|
|
8944
8946
|
}, [t]), w.useEffect(() => {
|
|
8945
8947
|
o.current !== n && (s.current?.(n), o.current = n);
|
|
8946
8948
|
}, [n, o]), [n, r, s];
|
|
8947
8949
|
}
|
|
8948
|
-
function
|
|
8950
|
+
function Wb(e) {
|
|
8949
8951
|
return typeof e == "function";
|
|
8950
8952
|
}
|
|
8951
8953
|
// @__NO_SIDE_EFFECTS__
|
|
8952
8954
|
function gr(e) {
|
|
8953
|
-
const t = /* @__PURE__ */
|
|
8954
|
-
const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(
|
|
8955
|
+
const t = /* @__PURE__ */ Gb(e), n = w.forwardRef((r, o) => {
|
|
8956
|
+
const { children: s, ...i } = r, a = w.Children.toArray(s), c = a.find(Jb);
|
|
8955
8957
|
if (c) {
|
|
8956
8958
|
const l = c.props.children, d = a.map((u) => u === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : u);
|
|
8957
8959
|
return /* @__PURE__ */ g(t, { ...i, ref: o, children: w.isValidElement(l) ? w.cloneElement(l, void 0, d) : null });
|
|
@@ -8961,22 +8963,22 @@ function gr(e) {
|
|
|
8961
8963
|
return n.displayName = `${e}.Slot`, n;
|
|
8962
8964
|
}
|
|
8963
8965
|
// @__NO_SIDE_EFFECTS__
|
|
8964
|
-
function
|
|
8966
|
+
function Gb(e) {
|
|
8965
8967
|
const t = w.forwardRef((n, r) => {
|
|
8966
8968
|
const { children: o, ...s } = n;
|
|
8967
8969
|
if (w.isValidElement(o)) {
|
|
8968
|
-
const i =
|
|
8970
|
+
const i = Xb(o), a = Kb(s, o.props);
|
|
8969
8971
|
return o.type !== w.Fragment && (a.ref = r ? Nr(r, i) : i), w.cloneElement(o, a);
|
|
8970
8972
|
}
|
|
8971
8973
|
return w.Children.count(o) > 1 ? w.Children.only(null) : null;
|
|
8972
8974
|
});
|
|
8973
8975
|
return t.displayName = `${e}.SlotClone`, t;
|
|
8974
8976
|
}
|
|
8975
|
-
var
|
|
8976
|
-
function
|
|
8977
|
-
return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
8977
|
+
var Yb = /* @__PURE__ */ Symbol("radix.slottable");
|
|
8978
|
+
function Jb(e) {
|
|
8979
|
+
return w.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Yb;
|
|
8978
8980
|
}
|
|
8979
|
-
function
|
|
8981
|
+
function Kb(e, t) {
|
|
8980
8982
|
const n = { ...t };
|
|
8981
8983
|
for (const r in t) {
|
|
8982
8984
|
const o = e[r], s = t[r];
|
|
@@ -8987,11 +8989,11 @@ function Jb(e, t) {
|
|
|
8987
8989
|
}
|
|
8988
8990
|
return { ...e, ...n };
|
|
8989
8991
|
}
|
|
8990
|
-
function
|
|
8992
|
+
function Xb(e) {
|
|
8991
8993
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
8992
8994
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
8993
8995
|
}
|
|
8994
|
-
var
|
|
8996
|
+
var qb = [
|
|
8995
8997
|
"a",
|
|
8996
8998
|
"button",
|
|
8997
8999
|
"div",
|
|
@@ -9009,7 +9011,7 @@ var Xb = [
|
|
|
9009
9011
|
"span",
|
|
9010
9012
|
"svg",
|
|
9011
9013
|
"ul"
|
|
9012
|
-
], be =
|
|
9014
|
+
], be = qb.reduce((e, t) => {
|
|
9013
9015
|
const n = /* @__PURE__ */ gr(`Primitive.${t}`), r = w.forwardRef((o, s) => {
|
|
9014
9016
|
const { asChild: i, ...a } = o, c = i ? n : t;
|
|
9015
9017
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ g(c, { ...a, ref: s });
|
|
@@ -9061,9 +9063,9 @@ function Pc(e) {
|
|
|
9061
9063
|
r
|
|
9062
9064
|
];
|
|
9063
9065
|
}
|
|
9064
|
-
var
|
|
9066
|
+
var Qb = w.createContext(void 0);
|
|
9065
9067
|
function Mc(e) {
|
|
9066
|
-
const t = w.useContext(
|
|
9068
|
+
const t = w.useContext(Qb);
|
|
9067
9069
|
return e || t || "ltr";
|
|
9068
9070
|
}
|
|
9069
9071
|
function Je(e) {
|
|
@@ -9072,7 +9074,7 @@ function Je(e) {
|
|
|
9072
9074
|
t.current = e;
|
|
9073
9075
|
}), w.useMemo(() => (...n) => t.current?.(...n), []);
|
|
9074
9076
|
}
|
|
9075
|
-
function
|
|
9077
|
+
function ew(e, t = globalThis?.document) {
|
|
9076
9078
|
const n = Je(e);
|
|
9077
9079
|
w.useEffect(() => {
|
|
9078
9080
|
const r = (o) => {
|
|
@@ -9081,7 +9083,7 @@ function Qb(e, t = globalThis?.document) {
|
|
|
9081
9083
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
9082
9084
|
}, [n, t]);
|
|
9083
9085
|
}
|
|
9084
|
-
var
|
|
9086
|
+
var tw = "DismissableLayer", Oo = "dismissableLayer.update", nw = "dismissableLayer.pointerDownOutside", rw = "dismissableLayer.focusOutside", Aa, kc = w.createContext({
|
|
9085
9087
|
layers: /* @__PURE__ */ new Set(),
|
|
9086
9088
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
9087
9089
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -9095,14 +9097,14 @@ var ew = "DismissableLayer", Oo = "dismissableLayer.update", tw = "dismissableLa
|
|
|
9095
9097
|
onInteractOutside: i,
|
|
9096
9098
|
onDismiss: a,
|
|
9097
9099
|
...c
|
|
9098
|
-
} = e, l = w.useContext(kc), [d, u] = w.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (x) => u(x)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(v), _ = d ? f.indexOf(d) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S =
|
|
9100
|
+
} = e, l = w.useContext(kc), [d, u] = w.useState(null), h = d?.ownerDocument ?? globalThis?.document, [, m] = w.useState({}), p = we(t, (x) => u(x)), f = Array.from(l.layers), [v] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(v), _ = d ? f.indexOf(d) : -1, y = l.layersWithOutsidePointerEventsDisabled.size > 0, E = _ >= b, S = aw((x) => {
|
|
9099
9101
|
const I = x.target, k = [...l.branches].some((D) => D.contains(I));
|
|
9100
9102
|
!E || k || (o?.(x), i?.(x), x.defaultPrevented || a?.());
|
|
9101
|
-
}, h), T =
|
|
9103
|
+
}, h), T = iw((x) => {
|
|
9102
9104
|
const I = x.target;
|
|
9103
9105
|
[...l.branches].some((D) => D.contains(I)) || (s?.(x), i?.(x), x.defaultPrevented || a?.());
|
|
9104
9106
|
}, h);
|
|
9105
|
-
return
|
|
9107
|
+
return ew((x) => {
|
|
9106
9108
|
_ === l.layers.size - 1 && (r?.(x), !x.defaultPrevented && a && (x.preventDefault(), a()));
|
|
9107
9109
|
}, h), w.useEffect(() => {
|
|
9108
9110
|
if (d)
|
|
@@ -9133,8 +9135,8 @@ var ew = "DismissableLayer", Oo = "dismissableLayer.update", tw = "dismissableLa
|
|
|
9133
9135
|
);
|
|
9134
9136
|
}
|
|
9135
9137
|
);
|
|
9136
|
-
Dc.displayName =
|
|
9137
|
-
var
|
|
9138
|
+
Dc.displayName = tw;
|
|
9139
|
+
var ow = "DismissableLayerBranch", sw = w.forwardRef((e, t) => {
|
|
9138
9140
|
const n = w.useContext(kc), r = w.useRef(null), o = we(t, r);
|
|
9139
9141
|
return w.useEffect(() => {
|
|
9140
9142
|
const s = r.current;
|
|
@@ -9144,8 +9146,8 @@ var rw = "DismissableLayerBranch", ow = w.forwardRef((e, t) => {
|
|
|
9144
9146
|
};
|
|
9145
9147
|
}, [n.branches]), /* @__PURE__ */ g(be.div, { ...e, ref: o });
|
|
9146
9148
|
});
|
|
9147
|
-
|
|
9148
|
-
function
|
|
9149
|
+
sw.displayName = ow;
|
|
9150
|
+
function aw(e, t = globalThis?.document) {
|
|
9149
9151
|
const n = Je(e), r = w.useRef(!1), o = w.useRef(() => {
|
|
9150
9152
|
});
|
|
9151
9153
|
return w.useEffect(() => {
|
|
@@ -9153,7 +9155,7 @@ function sw(e, t = globalThis?.document) {
|
|
|
9153
9155
|
if (a.target && !r.current) {
|
|
9154
9156
|
let c = function() {
|
|
9155
9157
|
$c(
|
|
9156
|
-
|
|
9158
|
+
nw,
|
|
9157
9159
|
n,
|
|
9158
9160
|
l,
|
|
9159
9161
|
{ discrete: !0 }
|
|
@@ -9175,11 +9177,11 @@ function sw(e, t = globalThis?.document) {
|
|
|
9175
9177
|
onPointerDownCapture: () => r.current = !0
|
|
9176
9178
|
};
|
|
9177
9179
|
}
|
|
9178
|
-
function
|
|
9180
|
+
function iw(e, t = globalThis?.document) {
|
|
9179
9181
|
const n = Je(e), r = w.useRef(!1);
|
|
9180
9182
|
return w.useEffect(() => {
|
|
9181
9183
|
const o = (s) => {
|
|
9182
|
-
s.target && !r.current && $c(
|
|
9184
|
+
s.target && !r.current && $c(rw, n, { originalEvent: s }, {
|
|
9183
9185
|
discrete: !1
|
|
9184
9186
|
});
|
|
9185
9187
|
};
|
|
@@ -9198,7 +9200,7 @@ function $c(e, t, n, { discrete: r }) {
|
|
|
9198
9200
|
t && o.addEventListener(e, t, { once: !0 }), r ? Nc(o, s) : o.dispatchEvent(s);
|
|
9199
9201
|
}
|
|
9200
9202
|
var to = 0;
|
|
9201
|
-
function
|
|
9203
|
+
function cw() {
|
|
9202
9204
|
w.useEffect(() => {
|
|
9203
9205
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
9204
9206
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Oa()), document.body.insertAdjacentElement("beforeend", e[1] ?? Oa()), to++, () => {
|
|
@@ -9210,7 +9212,7 @@ function Oa() {
|
|
|
9210
9212
|
const e = document.createElement("span");
|
|
9211
9213
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
9212
9214
|
}
|
|
9213
|
-
var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na = { bubbles: !1, cancelable: !0 },
|
|
9215
|
+
var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na = { bubbles: !1, cancelable: !0 }, lw = "FocusScope", Lc = w.forwardRef((e, t) => {
|
|
9214
9216
|
const {
|
|
9215
9217
|
loop: n = !1,
|
|
9216
9218
|
trapped: r = !1,
|
|
@@ -9253,7 +9255,7 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na
|
|
|
9253
9255
|
const f = document.activeElement;
|
|
9254
9256
|
if (!a.contains(f)) {
|
|
9255
9257
|
const b = new CustomEvent(no, Na);
|
|
9256
|
-
a.addEventListener(no, l), a.dispatchEvent(b), b.defaultPrevented || (
|
|
9258
|
+
a.addEventListener(no, l), a.dispatchEvent(b), b.defaultPrevented || (uw(hw(zc(a)), { select: !0 }), document.activeElement === f && st(a));
|
|
9257
9259
|
}
|
|
9258
9260
|
return () => {
|
|
9259
9261
|
a.removeEventListener(no, l), setTimeout(() => {
|
|
@@ -9268,7 +9270,7 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na
|
|
|
9268
9270
|
if (!n && !r || m.paused) return;
|
|
9269
9271
|
const v = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
|
|
9270
9272
|
if (v && b) {
|
|
9271
|
-
const _ = f.currentTarget, [y, E] =
|
|
9273
|
+
const _ = f.currentTarget, [y, E] = dw(_);
|
|
9272
9274
|
y && E ? !f.shiftKey && b === E ? (f.preventDefault(), n && st(y, { select: !0 })) : f.shiftKey && b === y && (f.preventDefault(), n && st(E, { select: !0 })) : b === _ && f.preventDefault();
|
|
9273
9275
|
}
|
|
9274
9276
|
},
|
|
@@ -9276,13 +9278,13 @@ var no = "focusScope.autoFocusOnMount", ro = "focusScope.autoFocusOnUnmount", Na
|
|
|
9276
9278
|
);
|
|
9277
9279
|
return /* @__PURE__ */ g(be.div, { tabIndex: -1, ...i, ref: h, onKeyDown: p });
|
|
9278
9280
|
});
|
|
9279
|
-
Lc.displayName =
|
|
9280
|
-
function
|
|
9281
|
+
Lc.displayName = lw;
|
|
9282
|
+
function uw(e, { select: t = !1 } = {}) {
|
|
9281
9283
|
const n = document.activeElement;
|
|
9282
9284
|
for (const r of e)
|
|
9283
9285
|
if (st(r, { select: t }), document.activeElement !== n) return;
|
|
9284
9286
|
}
|
|
9285
|
-
function
|
|
9287
|
+
function dw(e) {
|
|
9286
9288
|
const t = zc(e), n = Pa(t, e), r = Pa(t.reverse(), e);
|
|
9287
9289
|
return [n, r];
|
|
9288
9290
|
}
|
|
@@ -9298,9 +9300,9 @@ function zc(e) {
|
|
|
9298
9300
|
}
|
|
9299
9301
|
function Pa(e, t) {
|
|
9300
9302
|
for (const n of e)
|
|
9301
|
-
if (!
|
|
9303
|
+
if (!fw(n, { upTo: t })) return n;
|
|
9302
9304
|
}
|
|
9303
|
-
function
|
|
9305
|
+
function fw(e, { upTo: t }) {
|
|
9304
9306
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
9305
9307
|
for (; e; ) {
|
|
9306
9308
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -9309,17 +9311,17 @@ function dw(e, { upTo: t }) {
|
|
|
9309
9311
|
}
|
|
9310
9312
|
return !1;
|
|
9311
9313
|
}
|
|
9312
|
-
function
|
|
9314
|
+
function pw(e) {
|
|
9313
9315
|
return e instanceof HTMLInputElement && "select" in e;
|
|
9314
9316
|
}
|
|
9315
9317
|
function st(e, { select: t = !1 } = {}) {
|
|
9316
9318
|
if (e && e.focus) {
|
|
9317
9319
|
const n = document.activeElement;
|
|
9318
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
9320
|
+
e.focus({ preventScroll: !0 }), e !== n && pw(e) && t && e.select();
|
|
9319
9321
|
}
|
|
9320
9322
|
}
|
|
9321
|
-
var Ma =
|
|
9322
|
-
function
|
|
9323
|
+
var Ma = mw();
|
|
9324
|
+
function mw() {
|
|
9323
9325
|
let e = [];
|
|
9324
9326
|
return {
|
|
9325
9327
|
add(t) {
|
|
@@ -9335,19 +9337,19 @@ function ka(e, t) {
|
|
|
9335
9337
|
const n = [...e], r = n.indexOf(t);
|
|
9336
9338
|
return r !== -1 && n.splice(r, 1), n;
|
|
9337
9339
|
}
|
|
9338
|
-
function
|
|
9340
|
+
function hw(e) {
|
|
9339
9341
|
return e.filter((t) => t.tagName !== "A");
|
|
9340
9342
|
}
|
|
9341
|
-
var
|
|
9342
|
-
}),
|
|
9343
|
+
var gw = w[" useId ".trim().toString()] || (() => {
|
|
9344
|
+
}), vw = 0;
|
|
9343
9345
|
function vn(e) {
|
|
9344
|
-
const [t, n] = w.useState(
|
|
9346
|
+
const [t, n] = w.useState(gw());
|
|
9345
9347
|
return gt(() => {
|
|
9346
|
-
n((r) => r ?? String(
|
|
9348
|
+
n((r) => r ?? String(vw++));
|
|
9347
9349
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
9348
9350
|
}
|
|
9349
|
-
var
|
|
9350
|
-
}, tr =
|
|
9351
|
+
var yw = typeof document < "u", bw = function() {
|
|
9352
|
+
}, tr = yw ? wn : bw;
|
|
9351
9353
|
function vr(e, t) {
|
|
9352
9354
|
if (e === t)
|
|
9353
9355
|
return !0;
|
|
@@ -9391,7 +9393,7 @@ function oo(e) {
|
|
|
9391
9393
|
t.current = e;
|
|
9392
9394
|
}), t;
|
|
9393
9395
|
}
|
|
9394
|
-
function
|
|
9396
|
+
function ww(e) {
|
|
9395
9397
|
e === void 0 && (e = {});
|
|
9396
9398
|
const {
|
|
9397
9399
|
placement: t = "bottom",
|
|
@@ -9493,7 +9495,7 @@ function bw(e) {
|
|
|
9493
9495
|
floatingStyles: q
|
|
9494
9496
|
}), [d, R, Q, H, q]);
|
|
9495
9497
|
}
|
|
9496
|
-
const
|
|
9498
|
+
const _w = (e) => {
|
|
9497
9499
|
function t(n) {
|
|
9498
9500
|
return {}.hasOwnProperty.call(n, "current");
|
|
9499
9501
|
}
|
|
@@ -9514,29 +9516,29 @@ const ww = (e) => {
|
|
|
9514
9516
|
}).fn(n) : {};
|
|
9515
9517
|
}
|
|
9516
9518
|
};
|
|
9517
|
-
},
|
|
9519
|
+
}, Ew = (e, t) => ({
|
|
9518
9520
|
...Ec(e),
|
|
9519
9521
|
options: [e, t]
|
|
9520
|
-
}), Ew = (e, t) => ({
|
|
9521
|
-
...Sc(e),
|
|
9522
|
-
options: [e, t]
|
|
9523
9522
|
}), Sw = (e, t) => ({
|
|
9524
|
-
...
|
|
9523
|
+
...Sc(e),
|
|
9525
9524
|
options: [e, t]
|
|
9526
9525
|
}), Cw = (e, t) => ({
|
|
9527
|
-
...
|
|
9526
|
+
...tb(e),
|
|
9528
9527
|
options: [e, t]
|
|
9529
9528
|
}), xw = (e, t) => ({
|
|
9530
|
-
...
|
|
9529
|
+
...Cc(e),
|
|
9531
9530
|
options: [e, t]
|
|
9532
9531
|
}), Tw = (e, t) => ({
|
|
9533
9532
|
...Qy(e),
|
|
9534
9533
|
options: [e, t]
|
|
9535
9534
|
}), Iw = (e, t) => ({
|
|
9536
|
-
...
|
|
9535
|
+
...eb(e),
|
|
9536
|
+
options: [e, t]
|
|
9537
|
+
}), Aw = (e, t) => ({
|
|
9538
|
+
..._w(e),
|
|
9537
9539
|
options: [e, t]
|
|
9538
9540
|
});
|
|
9539
|
-
var
|
|
9541
|
+
var Rw = "Arrow", Zc = w.forwardRef((e, t) => {
|
|
9540
9542
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
9541
9543
|
return /* @__PURE__ */ g(
|
|
9542
9544
|
be.svg,
|
|
@@ -9551,9 +9553,9 @@ var Aw = "Arrow", Zc = w.forwardRef((e, t) => {
|
|
|
9551
9553
|
}
|
|
9552
9554
|
);
|
|
9553
9555
|
});
|
|
9554
|
-
Zc.displayName =
|
|
9555
|
-
var
|
|
9556
|
-
function
|
|
9556
|
+
Zc.displayName = Rw;
|
|
9557
|
+
var Ow = Zc;
|
|
9558
|
+
function Nw(e) {
|
|
9557
9559
|
const [t, n] = w.useState(void 0);
|
|
9558
9560
|
return gt(() => {
|
|
9559
9561
|
if (e) {
|
|
@@ -9575,9 +9577,9 @@ function Ow(e) {
|
|
|
9575
9577
|
n(void 0);
|
|
9576
9578
|
}, [e]), t;
|
|
9577
9579
|
}
|
|
9578
|
-
var Qo = "Popper", [Uc, jc] = An(Qo), [
|
|
9580
|
+
var Qo = "Popper", [Uc, jc] = An(Qo), [Pw, Bc] = Uc(Qo), Hc = (e) => {
|
|
9579
9581
|
const { __scopePopper: t, children: n } = e, [r, o] = w.useState(null);
|
|
9580
|
-
return /* @__PURE__ */ g(
|
|
9582
|
+
return /* @__PURE__ */ g(Pw, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
9581
9583
|
};
|
|
9582
9584
|
Hc.displayName = Qo;
|
|
9583
9585
|
var Vc = "PopperAnchor", Wc = w.forwardRef(
|
|
@@ -9590,7 +9592,7 @@ var Vc = "PopperAnchor", Wc = w.forwardRef(
|
|
|
9590
9592
|
}
|
|
9591
9593
|
);
|
|
9592
9594
|
Wc.displayName = Vc;
|
|
9593
|
-
var es = "PopperContent", [
|
|
9595
|
+
var es = "PopperContent", [Mw, kw] = Uc(es), Gc = w.forwardRef(
|
|
9594
9596
|
(e, t) => {
|
|
9595
9597
|
const {
|
|
9596
9598
|
__scopePopper: n,
|
|
@@ -9607,40 +9609,40 @@ var es = "PopperContent", [Pw, Mw] = Uc(es), Gc = w.forwardRef(
|
|
|
9607
9609
|
updatePositionStrategy: m = "optimized",
|
|
9608
9610
|
onPlaced: p,
|
|
9609
9611
|
...f
|
|
9610
|
-
} = e, v = Bc(es, n), [b, _] = w.useState(null), y = we(t, (ce) => _(ce)), [E, S] = w.useState(null), T =
|
|
9612
|
+
} = e, v = Bc(es, n), [b, _] = w.useState(null), y = we(t, (ce) => _(ce)), [E, S] = w.useState(null), T = Nw(E), x = T?.width ?? 0, I = T?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), D = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(l) ? l : [l], O = j.length > 0, R = {
|
|
9611
9613
|
padding: D,
|
|
9612
|
-
boundary: j.filter(
|
|
9614
|
+
boundary: j.filter($w),
|
|
9613
9615
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
9614
9616
|
altBoundary: O
|
|
9615
|
-
}, { refs: z, floatingStyles: Q, placement: H, isPositioned: q, middlewareData: $ } =
|
|
9617
|
+
}, { refs: z, floatingStyles: Q, placement: H, isPositioned: q, middlewareData: $ } = ww({
|
|
9616
9618
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
9617
9619
|
strategy: "fixed",
|
|
9618
9620
|
placement: k,
|
|
9619
|
-
whileElementsMounted: (...ce) =>
|
|
9621
|
+
whileElementsMounted: (...ce) => qy(...ce, {
|
|
9620
9622
|
animationFrame: m === "always"
|
|
9621
9623
|
}),
|
|
9622
9624
|
elements: {
|
|
9623
9625
|
reference: v.anchor
|
|
9624
9626
|
},
|
|
9625
9627
|
middleware: [
|
|
9626
|
-
|
|
9627
|
-
c &&
|
|
9628
|
+
Ew({ mainAxis: o + I, alignmentAxis: i }),
|
|
9629
|
+
c && Sw({
|
|
9628
9630
|
mainAxis: !0,
|
|
9629
9631
|
crossAxis: !1,
|
|
9630
|
-
limiter: u === "partial" ?
|
|
9632
|
+
limiter: u === "partial" ? Cw() : void 0,
|
|
9631
9633
|
...R
|
|
9632
9634
|
}),
|
|
9633
|
-
c &&
|
|
9634
|
-
|
|
9635
|
+
c && xw({ ...R }),
|
|
9636
|
+
Tw({
|
|
9635
9637
|
...R,
|
|
9636
9638
|
apply: ({ elements: ce, rects: _t, availableWidth: kn, availableHeight: Kt }) => {
|
|
9637
9639
|
const { width: $r, height: Lr } = _t.reference, Mt = ce.floating.style;
|
|
9638
9640
|
Mt.setProperty("--radix-popper-available-width", `${kn}px`), Mt.setProperty("--radix-popper-available-height", `${Kt}px`), Mt.setProperty("--radix-popper-anchor-width", `${$r}px`), Mt.setProperty("--radix-popper-anchor-height", `${Lr}px`);
|
|
9639
9641
|
}
|
|
9640
9642
|
}),
|
|
9641
|
-
E &&
|
|
9642
|
-
|
|
9643
|
-
h &&
|
|
9643
|
+
E && Aw({ element: E, padding: a }),
|
|
9644
|
+
Lw({ arrowWidth: x, arrowHeight: I }),
|
|
9645
|
+
h && Iw({ strategy: "referenceHidden", ...R })
|
|
9644
9646
|
]
|
|
9645
9647
|
}), [N, ie] = Kc(H), Te = Je(p);
|
|
9646
9648
|
gt(() => {
|
|
@@ -9674,7 +9676,7 @@ var es = "PopperContent", [Pw, Mw] = Uc(es), Gc = w.forwardRef(
|
|
|
9674
9676
|
},
|
|
9675
9677
|
dir: e.dir,
|
|
9676
9678
|
children: /* @__PURE__ */ g(
|
|
9677
|
-
|
|
9679
|
+
Mw,
|
|
9678
9680
|
{
|
|
9679
9681
|
scope: n,
|
|
9680
9682
|
placedSide: N,
|
|
@@ -9704,13 +9706,13 @@ var es = "PopperContent", [Pw, Mw] = Uc(es), Gc = w.forwardRef(
|
|
|
9704
9706
|
}
|
|
9705
9707
|
);
|
|
9706
9708
|
Gc.displayName = es;
|
|
9707
|
-
var Yc = "PopperArrow",
|
|
9709
|
+
var Yc = "PopperArrow", Dw = {
|
|
9708
9710
|
top: "bottom",
|
|
9709
9711
|
right: "left",
|
|
9710
9712
|
bottom: "top",
|
|
9711
9713
|
left: "right"
|
|
9712
9714
|
}, Jc = w.forwardRef(function(t, n) {
|
|
9713
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
9715
|
+
const { __scopePopper: r, ...o } = t, s = kw(Yc, r), i = Dw[s.placedSide];
|
|
9714
9716
|
return (
|
|
9715
9717
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
9716
9718
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -9739,7 +9741,7 @@ var Yc = "PopperArrow", kw = {
|
|
|
9739
9741
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
9740
9742
|
},
|
|
9741
9743
|
children: /* @__PURE__ */ g(
|
|
9742
|
-
|
|
9744
|
+
Ow,
|
|
9743
9745
|
{
|
|
9744
9746
|
...o,
|
|
9745
9747
|
ref: n,
|
|
@@ -9755,10 +9757,10 @@ var Yc = "PopperArrow", kw = {
|
|
|
9755
9757
|
);
|
|
9756
9758
|
});
|
|
9757
9759
|
Jc.displayName = Yc;
|
|
9758
|
-
function
|
|
9760
|
+
function $w(e) {
|
|
9759
9761
|
return e !== null;
|
|
9760
9762
|
}
|
|
9761
|
-
var
|
|
9763
|
+
var Lw = (e) => ({
|
|
9762
9764
|
name: "transformOrigin",
|
|
9763
9765
|
options: e,
|
|
9764
9766
|
fn(t) {
|
|
@@ -9771,23 +9773,23 @@ function Kc(e) {
|
|
|
9771
9773
|
const [t, n = "center"] = e.split("-");
|
|
9772
9774
|
return [t, n];
|
|
9773
9775
|
}
|
|
9774
|
-
var Xc = Hc,
|
|
9776
|
+
var Xc = Hc, zw = Wc, Fw = Gc, Zw = Jc, Uw = "Portal", qc = w.forwardRef((e, t) => {
|
|
9775
9777
|
const { container: n, ...r } = e, [o, s] = w.useState(!1);
|
|
9776
9778
|
gt(() => s(!0), []);
|
|
9777
9779
|
const i = n || o && globalThis?.document?.body;
|
|
9778
9780
|
return i ? Bd.createPortal(/* @__PURE__ */ g(be.div, { ...r, ref: t }), i) : null;
|
|
9779
9781
|
});
|
|
9780
|
-
qc.displayName =
|
|
9781
|
-
function
|
|
9782
|
+
qc.displayName = Uw;
|
|
9783
|
+
function jw(e, t) {
|
|
9782
9784
|
return w.useReducer((n, r) => t[n][r] ?? n, e);
|
|
9783
9785
|
}
|
|
9784
9786
|
var Rn = (e) => {
|
|
9785
|
-
const { present: t, children: n } = e, r =
|
|
9787
|
+
const { present: t, children: n } = e, r = Bw(t), o = typeof n == "function" ? n({ present: r.isPresent }) : w.Children.only(n), s = we(r.ref, Hw(o));
|
|
9786
9788
|
return typeof n == "function" || r.isPresent ? w.cloneElement(o, { ref: s }) : null;
|
|
9787
9789
|
};
|
|
9788
9790
|
Rn.displayName = "Presence";
|
|
9789
|
-
function
|
|
9790
|
-
const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] =
|
|
9791
|
+
function Bw(e) {
|
|
9792
|
+
const [t, n] = w.useState(), r = w.useRef(null), o = w.useRef(e), s = w.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = jw(i, {
|
|
9791
9793
|
mounted: {
|
|
9792
9794
|
UNMOUNT: "unmounted",
|
|
9793
9795
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -9838,18 +9840,18 @@ function jw(e) {
|
|
|
9838
9840
|
function Bn(e) {
|
|
9839
9841
|
return e?.animationName || "none";
|
|
9840
9842
|
}
|
|
9841
|
-
function
|
|
9843
|
+
function Hw(e) {
|
|
9842
9844
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
9843
9845
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
9844
9846
|
}
|
|
9845
|
-
var so = "rovingFocusGroup.onEntryFocus",
|
|
9847
|
+
var so = "rovingFocusGroup.onEntryFocus", Vw = { bubbles: !1, cancelable: !0 }, On = "RovingFocusGroup", [No, Qc, Ww] = Pc(On), [Gw, el] = An(
|
|
9846
9848
|
On,
|
|
9847
|
-
[
|
|
9848
|
-
), [
|
|
9849
|
-
(e, t) => /* @__PURE__ */ g(No.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(No.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(
|
|
9849
|
+
[Ww]
|
|
9850
|
+
), [Yw, Jw] = Gw(On), tl = w.forwardRef(
|
|
9851
|
+
(e, t) => /* @__PURE__ */ g(No.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(No.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ g(Kw, { ...e, ref: t }) }) })
|
|
9850
9852
|
);
|
|
9851
9853
|
tl.displayName = On;
|
|
9852
|
-
var
|
|
9854
|
+
var Kw = w.forwardRef((e, t) => {
|
|
9853
9855
|
const {
|
|
9854
9856
|
__scopeRovingFocusGroup: n,
|
|
9855
9857
|
orientation: r,
|
|
@@ -9872,7 +9874,7 @@ var Jw = w.forwardRef((e, t) => {
|
|
|
9872
9874
|
if (I)
|
|
9873
9875
|
return I.addEventListener(so, y), () => I.removeEventListener(so, y);
|
|
9874
9876
|
}, [y]), /* @__PURE__ */ g(
|
|
9875
|
-
|
|
9877
|
+
Yw,
|
|
9876
9878
|
{
|
|
9877
9879
|
scope: n,
|
|
9878
9880
|
orientation: r,
|
|
@@ -9906,7 +9908,7 @@ var Jw = w.forwardRef((e, t) => {
|
|
|
9906
9908
|
onFocus: G(e.onFocus, (I) => {
|
|
9907
9909
|
const k = !S.current;
|
|
9908
9910
|
if (I.target === I.currentTarget && k && !b) {
|
|
9909
|
-
const D = new CustomEvent(so,
|
|
9911
|
+
const D = new CustomEvent(so, Vw);
|
|
9910
9912
|
if (I.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
9911
9913
|
const j = E().filter((H) => H.focusable), O = j.find((H) => H.active), R = j.find((H) => H.id === f), Q = [O, R, ...j].filter(
|
|
9912
9914
|
Boolean
|
|
@@ -9930,7 +9932,7 @@ var Jw = w.forwardRef((e, t) => {
|
|
|
9930
9932
|
tabStopId: s,
|
|
9931
9933
|
children: i,
|
|
9932
9934
|
...a
|
|
9933
|
-
} = e, c = vn(), l = s || c, d =
|
|
9935
|
+
} = e, c = vn(), l = s || c, d = Jw(nl, n), u = d.currentTabStopId === l, h = Qc(n), { onFocusableItemAdd: m, onFocusableItemRemove: p, currentTabStopId: f } = d;
|
|
9934
9936
|
return w.useEffect(() => {
|
|
9935
9937
|
if (r)
|
|
9936
9938
|
return m(), () => p();
|
|
@@ -9958,7 +9960,7 @@ var Jw = w.forwardRef((e, t) => {
|
|
|
9958
9960
|
return;
|
|
9959
9961
|
}
|
|
9960
9962
|
if (v.target !== v.currentTarget) return;
|
|
9961
|
-
const b =
|
|
9963
|
+
const b = Qw(v, d.orientation, d.dir);
|
|
9962
9964
|
if (b !== void 0) {
|
|
9963
9965
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
9964
9966
|
v.preventDefault();
|
|
@@ -9967,7 +9969,7 @@ var Jw = w.forwardRef((e, t) => {
|
|
|
9967
9969
|
else if (b === "prev" || b === "next") {
|
|
9968
9970
|
b === "prev" && y.reverse();
|
|
9969
9971
|
const E = y.indexOf(v.currentTarget);
|
|
9970
|
-
y = d.loop ?
|
|
9972
|
+
y = d.loop ? e_(y, E + 1) : y.slice(E + 1);
|
|
9971
9973
|
}
|
|
9972
9974
|
setTimeout(() => ol(y));
|
|
9973
9975
|
}
|
|
@@ -9980,7 +9982,7 @@ var Jw = w.forwardRef((e, t) => {
|
|
|
9980
9982
|
}
|
|
9981
9983
|
);
|
|
9982
9984
|
rl.displayName = nl;
|
|
9983
|
-
var
|
|
9985
|
+
var Xw = {
|
|
9984
9986
|
ArrowLeft: "prev",
|
|
9985
9987
|
ArrowUp: "prev",
|
|
9986
9988
|
ArrowRight: "next",
|
|
@@ -9990,30 +9992,30 @@ var Kw = {
|
|
|
9990
9992
|
PageDown: "last",
|
|
9991
9993
|
End: "last"
|
|
9992
9994
|
};
|
|
9993
|
-
function
|
|
9995
|
+
function qw(e, t) {
|
|
9994
9996
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
9995
9997
|
}
|
|
9996
|
-
function
|
|
9997
|
-
const r =
|
|
9998
|
+
function Qw(e, t, n) {
|
|
9999
|
+
const r = qw(e.key, n);
|
|
9998
10000
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
9999
|
-
return
|
|
10001
|
+
return Xw[r];
|
|
10000
10002
|
}
|
|
10001
10003
|
function ol(e, t = !1) {
|
|
10002
10004
|
const n = document.activeElement;
|
|
10003
10005
|
for (const r of e)
|
|
10004
10006
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
10005
10007
|
}
|
|
10006
|
-
function
|
|
10008
|
+
function e_(e, t) {
|
|
10007
10009
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
10008
10010
|
}
|
|
10009
|
-
var
|
|
10011
|
+
var t_ = tl, n_ = rl, r_ = function(e) {
|
|
10010
10012
|
if (typeof document > "u")
|
|
10011
10013
|
return null;
|
|
10012
10014
|
var t = Array.isArray(e) ? e[0] : e;
|
|
10013
10015
|
return t.ownerDocument.body;
|
|
10014
10016
|
}, Dt = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Vn = {}, ao = 0, sl = function(e) {
|
|
10015
10017
|
return e && (e.host || sl(e.parentNode));
|
|
10016
|
-
},
|
|
10018
|
+
}, o_ = function(e, t) {
|
|
10017
10019
|
return t.map(function(n) {
|
|
10018
10020
|
if (e.contains(n))
|
|
10019
10021
|
return n;
|
|
@@ -10022,8 +10024,8 @@ var e_ = tl, t_ = rl, n_ = function(e) {
|
|
|
10022
10024
|
}).filter(function(n) {
|
|
10023
10025
|
return !!n;
|
|
10024
10026
|
});
|
|
10025
|
-
},
|
|
10026
|
-
var o =
|
|
10027
|
+
}, s_ = function(e, t, n, r) {
|
|
10028
|
+
var o = o_(t, Array.isArray(e) ? e : [e]);
|
|
10027
10029
|
Vn[n] || (Vn[n] = /* @__PURE__ */ new WeakMap());
|
|
10028
10030
|
var s = Vn[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(u) {
|
|
10029
10031
|
!u || a.has(u) || (a.add(u), l(u.parentNode));
|
|
@@ -10048,10 +10050,10 @@ var e_ = tl, t_ = rl, n_ = function(e) {
|
|
|
10048
10050
|
Dt.set(u, h), s.set(u, m), h || (Hn.has(u) || u.removeAttribute(r), Hn.delete(u)), m || u.removeAttribute(n);
|
|
10049
10051
|
}), ao--, ao || (Dt = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Vn = {});
|
|
10050
10052
|
};
|
|
10051
|
-
},
|
|
10053
|
+
}, a_ = function(e, t, n) {
|
|
10052
10054
|
n === void 0 && (n = "data-aria-hidden");
|
|
10053
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
10054
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
10055
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = r_(e);
|
|
10056
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), s_(r, o, n, "aria-hidden")) : function() {
|
|
10055
10057
|
return null;
|
|
10056
10058
|
};
|
|
10057
10059
|
}, Be = function() {
|
|
@@ -10071,16 +10073,16 @@ function al(e, t) {
|
|
|
10071
10073
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
10072
10074
|
return n;
|
|
10073
10075
|
}
|
|
10074
|
-
function
|
|
10076
|
+
function i_(e, t, n) {
|
|
10075
10077
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
10076
10078
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
10077
10079
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
10078
10080
|
}
|
|
10079
|
-
var nr = "right-scroll-bar-position", rr = "width-before-scroll-bar",
|
|
10081
|
+
var nr = "right-scroll-bar-position", rr = "width-before-scroll-bar", c_ = "with-scroll-bars-hidden", l_ = "--removed-body-scroll-bar-size";
|
|
10080
10082
|
function io(e, t) {
|
|
10081
10083
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
10082
10084
|
}
|
|
10083
|
-
function
|
|
10085
|
+
function u_(e, t) {
|
|
10084
10086
|
var n = B(function() {
|
|
10085
10087
|
return {
|
|
10086
10088
|
// value
|
|
@@ -10101,14 +10103,14 @@ function l_(e, t) {
|
|
|
10101
10103
|
})[0];
|
|
10102
10104
|
return n.callback = t, n.facade;
|
|
10103
10105
|
}
|
|
10104
|
-
var
|
|
10105
|
-
function
|
|
10106
|
-
var n =
|
|
10106
|
+
var d_ = typeof window < "u" ? w.useLayoutEffect : w.useEffect, $a = /* @__PURE__ */ new WeakMap();
|
|
10107
|
+
function f_(e, t) {
|
|
10108
|
+
var n = u_(null, function(r) {
|
|
10107
10109
|
return e.forEach(function(o) {
|
|
10108
10110
|
return io(o, r);
|
|
10109
10111
|
});
|
|
10110
10112
|
});
|
|
10111
|
-
return
|
|
10113
|
+
return d_(function() {
|
|
10112
10114
|
var r = $a.get(n);
|
|
10113
10115
|
if (r) {
|
|
10114
10116
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
@@ -10121,11 +10123,11 @@ function d_(e, t) {
|
|
|
10121
10123
|
$a.set(n, e);
|
|
10122
10124
|
}, [e]), n;
|
|
10123
10125
|
}
|
|
10124
|
-
function
|
|
10126
|
+
function p_(e) {
|
|
10125
10127
|
return e;
|
|
10126
10128
|
}
|
|
10127
|
-
function
|
|
10128
|
-
t === void 0 && (t =
|
|
10129
|
+
function m_(e, t) {
|
|
10130
|
+
t === void 0 && (t = p_);
|
|
10129
10131
|
var n = [], r = !1, o = {
|
|
10130
10132
|
read: function() {
|
|
10131
10133
|
if (r)
|
|
@@ -10179,9 +10181,9 @@ function p_(e, t) {
|
|
|
10179
10181
|
};
|
|
10180
10182
|
return o;
|
|
10181
10183
|
}
|
|
10182
|
-
function
|
|
10184
|
+
function h_(e) {
|
|
10183
10185
|
e === void 0 && (e = {});
|
|
10184
|
-
var t =
|
|
10186
|
+
var t = m_(null);
|
|
10185
10187
|
return t.options = Be({ async: !0, ssr: !1 }, e), t;
|
|
10186
10188
|
}
|
|
10187
10189
|
var il = function(e) {
|
|
@@ -10194,16 +10196,16 @@ var il = function(e) {
|
|
|
10194
10196
|
return w.createElement(r, Be({}, n));
|
|
10195
10197
|
};
|
|
10196
10198
|
il.isSideCarExport = !0;
|
|
10197
|
-
function
|
|
10199
|
+
function g_(e, t) {
|
|
10198
10200
|
return e.useMedium(t), il;
|
|
10199
10201
|
}
|
|
10200
|
-
var cl =
|
|
10202
|
+
var cl = h_(), co = function() {
|
|
10201
10203
|
}, Pr = w.forwardRef(function(e, t) {
|
|
10202
10204
|
var n = w.useRef(null), r = w.useState({
|
|
10203
10205
|
onScrollCapture: co,
|
|
10204
10206
|
onWheelCapture: co,
|
|
10205
10207
|
onTouchMoveCapture: co
|
|
10206
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, h = e.sideCar, m = e.noRelative, p = e.noIsolation, f = e.inert, v = e.allowPinchZoom, b = e.as, _ = b === void 0 ? "div" : b, y = e.gapMode, E = al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, T =
|
|
10208
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, d = e.enabled, u = e.shards, h = e.sideCar, m = e.noRelative, p = e.noIsolation, f = e.inert, v = e.allowPinchZoom, b = e.as, _ = b === void 0 ? "div" : b, y = e.gapMode, E = al(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, T = f_([n, t]), x = Be(Be({}, E), o);
|
|
10207
10209
|
return w.createElement(
|
|
10208
10210
|
w.Fragment,
|
|
10209
10211
|
null,
|
|
@@ -10220,37 +10222,37 @@ Pr.classNames = {
|
|
|
10220
10222
|
fullWidth: rr,
|
|
10221
10223
|
zeroRight: nr
|
|
10222
10224
|
};
|
|
10223
|
-
var
|
|
10225
|
+
var v_ = function() {
|
|
10224
10226
|
if (typeof __webpack_nonce__ < "u")
|
|
10225
10227
|
return __webpack_nonce__;
|
|
10226
10228
|
};
|
|
10227
|
-
function
|
|
10229
|
+
function y_() {
|
|
10228
10230
|
if (!document)
|
|
10229
10231
|
return null;
|
|
10230
10232
|
var e = document.createElement("style");
|
|
10231
10233
|
e.type = "text/css";
|
|
10232
|
-
var t =
|
|
10234
|
+
var t = v_();
|
|
10233
10235
|
return t && e.setAttribute("nonce", t), e;
|
|
10234
10236
|
}
|
|
10235
|
-
function
|
|
10237
|
+
function b_(e, t) {
|
|
10236
10238
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
10237
10239
|
}
|
|
10238
|
-
function
|
|
10240
|
+
function w_(e) {
|
|
10239
10241
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
10240
10242
|
t.appendChild(e);
|
|
10241
10243
|
}
|
|
10242
|
-
var
|
|
10244
|
+
var __ = function() {
|
|
10243
10245
|
var e = 0, t = null;
|
|
10244
10246
|
return {
|
|
10245
10247
|
add: function(n) {
|
|
10246
|
-
e == 0 && (t =
|
|
10248
|
+
e == 0 && (t = y_()) && (b_(t, n), w_(t)), e++;
|
|
10247
10249
|
},
|
|
10248
10250
|
remove: function() {
|
|
10249
10251
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
10250
10252
|
}
|
|
10251
10253
|
};
|
|
10252
|
-
},
|
|
10253
|
-
var e =
|
|
10254
|
+
}, E_ = function() {
|
|
10255
|
+
var e = __();
|
|
10254
10256
|
return function(t, n) {
|
|
10255
10257
|
w.useEffect(function() {
|
|
10256
10258
|
return e.add(t), function() {
|
|
@@ -10259,35 +10261,35 @@ var w_ = function() {
|
|
|
10259
10261
|
}, [t && n]);
|
|
10260
10262
|
};
|
|
10261
10263
|
}, ll = function() {
|
|
10262
|
-
var e =
|
|
10264
|
+
var e = E_(), t = function(n) {
|
|
10263
10265
|
var r = n.styles, o = n.dynamic;
|
|
10264
10266
|
return e(r, o), null;
|
|
10265
10267
|
};
|
|
10266
10268
|
return t;
|
|
10267
|
-
},
|
|
10269
|
+
}, S_ = {
|
|
10268
10270
|
left: 0,
|
|
10269
10271
|
top: 0,
|
|
10270
10272
|
right: 0,
|
|
10271
10273
|
gap: 0
|
|
10272
10274
|
}, lo = function(e) {
|
|
10273
10275
|
return parseInt(e || "", 10) || 0;
|
|
10274
|
-
},
|
|
10276
|
+
}, C_ = function(e) {
|
|
10275
10277
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
10276
10278
|
return [lo(n), lo(r), lo(o)];
|
|
10277
|
-
},
|
|
10279
|
+
}, x_ = function(e) {
|
|
10278
10280
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
10279
|
-
return
|
|
10280
|
-
var t =
|
|
10281
|
+
return S_;
|
|
10282
|
+
var t = C_(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
10281
10283
|
return {
|
|
10282
10284
|
left: t[0],
|
|
10283
10285
|
top: t[1],
|
|
10284
10286
|
right: t[2],
|
|
10285
10287
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
10286
10288
|
};
|
|
10287
|
-
},
|
|
10289
|
+
}, T_ = ll(), Ut = "data-scroll-locked", I_ = function(e, t, n, r) {
|
|
10288
10290
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
10289
10291
|
return n === void 0 && (n = "margin"), `
|
|
10290
|
-
.`.concat(
|
|
10292
|
+
.`.concat(c_, ` {
|
|
10291
10293
|
overflow: hidden `).concat(r, `;
|
|
10292
10294
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
10293
10295
|
}
|
|
@@ -10325,26 +10327,26 @@ var w_ = function() {
|
|
|
10325
10327
|
}
|
|
10326
10328
|
|
|
10327
10329
|
body[`).concat(Ut, `] {
|
|
10328
|
-
`).concat(
|
|
10330
|
+
`).concat(l_, ": ").concat(a, `px;
|
|
10329
10331
|
}
|
|
10330
10332
|
`);
|
|
10331
10333
|
}, La = function() {
|
|
10332
10334
|
var e = parseInt(document.body.getAttribute(Ut) || "0", 10);
|
|
10333
10335
|
return isFinite(e) ? e : 0;
|
|
10334
|
-
},
|
|
10336
|
+
}, A_ = function() {
|
|
10335
10337
|
w.useEffect(function() {
|
|
10336
10338
|
return document.body.setAttribute(Ut, (La() + 1).toString()), function() {
|
|
10337
10339
|
var e = La() - 1;
|
|
10338
10340
|
e <= 0 ? document.body.removeAttribute(Ut) : document.body.setAttribute(Ut, e.toString());
|
|
10339
10341
|
};
|
|
10340
10342
|
}, []);
|
|
10341
|
-
},
|
|
10343
|
+
}, R_ = function(e) {
|
|
10342
10344
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
10343
|
-
|
|
10345
|
+
A_();
|
|
10344
10346
|
var s = w.useMemo(function() {
|
|
10345
|
-
return
|
|
10347
|
+
return x_(o);
|
|
10346
10348
|
}, [o]);
|
|
10347
|
-
return w.createElement(
|
|
10349
|
+
return w.createElement(T_, { styles: I_(s, !t, o, n ? "" : "!important") });
|
|
10348
10350
|
}, Po = !1;
|
|
10349
10351
|
if (typeof window < "u")
|
|
10350
10352
|
try {
|
|
@@ -10357,7 +10359,7 @@ if (typeof window < "u")
|
|
|
10357
10359
|
} catch {
|
|
10358
10360
|
Po = !1;
|
|
10359
10361
|
}
|
|
10360
|
-
var $t = Po ? { passive: !1 } : !1,
|
|
10362
|
+
var $t = Po ? { passive: !1 } : !1, O_ = function(e) {
|
|
10361
10363
|
return e.tagName === "TEXTAREA";
|
|
10362
10364
|
}, ul = function(e, t) {
|
|
10363
10365
|
if (!(e instanceof Element))
|
|
@@ -10366,11 +10368,11 @@ var $t = Po ? { passive: !1 } : !1, R_ = function(e) {
|
|
|
10366
10368
|
return (
|
|
10367
10369
|
// not-not-scrollable
|
|
10368
10370
|
n[t] !== "hidden" && // contains scroll inside self
|
|
10369
|
-
!(n.overflowY === n.overflowX && !
|
|
10371
|
+
!(n.overflowY === n.overflowX && !O_(e) && n[t] === "visible")
|
|
10370
10372
|
);
|
|
10371
|
-
}, O_ = function(e) {
|
|
10372
|
-
return ul(e, "overflowY");
|
|
10373
10373
|
}, N_ = function(e) {
|
|
10374
|
+
return ul(e, "overflowY");
|
|
10375
|
+
}, P_ = function(e) {
|
|
10374
10376
|
return ul(e, "overflowX");
|
|
10375
10377
|
}, za = function(e, t) {
|
|
10376
10378
|
var n = t.ownerDocument, r = t;
|
|
@@ -10385,14 +10387,14 @@ var $t = Po ? { passive: !1 } : !1, R_ = function(e) {
|
|
|
10385
10387
|
r = r.parentNode;
|
|
10386
10388
|
} while (r && r !== n.body);
|
|
10387
10389
|
return !1;
|
|
10388
|
-
},
|
|
10390
|
+
}, M_ = function(e) {
|
|
10389
10391
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
10390
10392
|
return [
|
|
10391
10393
|
t,
|
|
10392
10394
|
n,
|
|
10393
10395
|
r
|
|
10394
10396
|
];
|
|
10395
|
-
},
|
|
10397
|
+
}, k_ = function(e) {
|
|
10396
10398
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
10397
10399
|
return [
|
|
10398
10400
|
t,
|
|
@@ -10400,13 +10402,13 @@ var $t = Po ? { passive: !1 } : !1, R_ = function(e) {
|
|
|
10400
10402
|
r
|
|
10401
10403
|
];
|
|
10402
10404
|
}, dl = function(e, t) {
|
|
10403
|
-
return e === "v" ?
|
|
10405
|
+
return e === "v" ? N_(t) : P_(t);
|
|
10404
10406
|
}, fl = function(e, t) {
|
|
10405
|
-
return e === "v" ?
|
|
10406
|
-
},
|
|
10407
|
+
return e === "v" ? M_(t) : k_(t);
|
|
10408
|
+
}, D_ = function(e, t) {
|
|
10407
10409
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
10408
|
-
},
|
|
10409
|
-
var s =
|
|
10410
|
+
}, $_ = function(e, t, n, r, o) {
|
|
10411
|
+
var s = D_(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, d = i > 0, u = 0, h = 0;
|
|
10410
10412
|
do {
|
|
10411
10413
|
if (!a)
|
|
10412
10414
|
break;
|
|
@@ -10426,22 +10428,22 @@ var $t = Po ? { passive: !1 } : !1, R_ = function(e) {
|
|
|
10426
10428
|
return [e.deltaX, e.deltaY];
|
|
10427
10429
|
}, Za = function(e) {
|
|
10428
10430
|
return e && "current" in e ? e.current : e;
|
|
10429
|
-
},
|
|
10431
|
+
}, L_ = function(e, t) {
|
|
10430
10432
|
return e[0] === t[0] && e[1] === t[1];
|
|
10431
|
-
},
|
|
10433
|
+
}, z_ = function(e) {
|
|
10432
10434
|
return `
|
|
10433
10435
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
10434
10436
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
10435
10437
|
`);
|
|
10436
|
-
},
|
|
10437
|
-
function
|
|
10438
|
-
var t = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(
|
|
10438
|
+
}, F_ = 0, Lt = [];
|
|
10439
|
+
function Z_(e) {
|
|
10440
|
+
var t = w.useRef([]), n = w.useRef([0, 0]), r = w.useRef(), o = w.useState(F_++)[0], s = w.useState(ll)[0], i = w.useRef(e);
|
|
10439
10441
|
w.useEffect(function() {
|
|
10440
10442
|
i.current = e;
|
|
10441
10443
|
}, [e]), w.useEffect(function() {
|
|
10442
10444
|
if (e.inert) {
|
|
10443
10445
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
10444
|
-
var f =
|
|
10446
|
+
var f = i_([e.lockRef.current], (e.shards || []).map(Za), !0).filter(Boolean);
|
|
10445
10447
|
return f.forEach(function(v) {
|
|
10446
10448
|
return v.classList.add("allow-interactivity-".concat(o));
|
|
10447
10449
|
}), function() {
|
|
@@ -10468,12 +10470,12 @@ function F_(e) {
|
|
|
10468
10470
|
if (!r.current && "changedTouches" in f && (y || E) && (r.current = S), !S)
|
|
10469
10471
|
return !0;
|
|
10470
10472
|
var O = r.current || S;
|
|
10471
|
-
return
|
|
10473
|
+
return $_(O, v, f, O === "h" ? y : E);
|
|
10472
10474
|
}, []), c = w.useCallback(function(f) {
|
|
10473
10475
|
var v = f;
|
|
10474
10476
|
if (!(!Lt.length || Lt[Lt.length - 1] !== s)) {
|
|
10475
10477
|
var b = "deltaY" in v ? Fa(v) : Gn(v), _ = t.current.filter(function(S) {
|
|
10476
|
-
return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) &&
|
|
10478
|
+
return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) && L_(S.delta, b);
|
|
10477
10479
|
})[0];
|
|
10478
10480
|
if (_ && _.should) {
|
|
10479
10481
|
v.cancelable && v.preventDefault();
|
|
@@ -10487,7 +10489,7 @@ function F_(e) {
|
|
|
10487
10489
|
}
|
|
10488
10490
|
}
|
|
10489
10491
|
}, []), l = w.useCallback(function(f, v, b, _) {
|
|
10490
|
-
var y = { name: f, delta: v, target: b, should: _, shadowParent:
|
|
10492
|
+
var y = { name: f, delta: v, target: b, should: _, shadowParent: U_(b) };
|
|
10491
10493
|
t.current.push(y), setTimeout(function() {
|
|
10492
10494
|
t.current = t.current.filter(function(E) {
|
|
10493
10495
|
return E !== y;
|
|
@@ -10515,31 +10517,31 @@ function F_(e) {
|
|
|
10515
10517
|
return w.createElement(
|
|
10516
10518
|
w.Fragment,
|
|
10517
10519
|
null,
|
|
10518
|
-
p ? w.createElement(s, { styles:
|
|
10519
|
-
m ? w.createElement(
|
|
10520
|
+
p ? w.createElement(s, { styles: z_(o) }) : null,
|
|
10521
|
+
m ? w.createElement(R_, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
10520
10522
|
);
|
|
10521
10523
|
}
|
|
10522
|
-
function
|
|
10524
|
+
function U_(e) {
|
|
10523
10525
|
for (var t = null; e !== null; )
|
|
10524
10526
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
10525
10527
|
return t;
|
|
10526
10528
|
}
|
|
10527
|
-
const
|
|
10529
|
+
const j_ = g_(cl, Z_);
|
|
10528
10530
|
var pl = w.forwardRef(function(e, t) {
|
|
10529
|
-
return w.createElement(Pr, Be({}, e, { ref: t, sideCar:
|
|
10531
|
+
return w.createElement(Pr, Be({}, e, { ref: t, sideCar: j_ }));
|
|
10530
10532
|
});
|
|
10531
10533
|
pl.classNames = Pr.classNames;
|
|
10532
|
-
var Mo = ["Enter", " "],
|
|
10534
|
+
var Mo = ["Enter", " "], B_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp", "PageDown", "End"], H_ = [...B_, ...ml], V_ = {
|
|
10533
10535
|
ltr: [...Mo, "ArrowRight"],
|
|
10534
10536
|
rtl: [...Mo, "ArrowLeft"]
|
|
10535
|
-
},
|
|
10537
|
+
}, W_ = {
|
|
10536
10538
|
ltr: ["ArrowLeft"],
|
|
10537
10539
|
rtl: ["ArrowRight"]
|
|
10538
|
-
}, Nn = "Menu", [yn,
|
|
10539
|
-
|
|
10540
|
+
}, Nn = "Menu", [yn, G_, Y_] = Pc(Nn), [Nt, hl] = An(Nn, [
|
|
10541
|
+
Y_,
|
|
10540
10542
|
jc,
|
|
10541
10543
|
el
|
|
10542
|
-
]), Pn = jc(), gl = el(), [vl, wt] = Nt(Nn), [
|
|
10544
|
+
]), Pn = jc(), gl = el(), [vl, wt] = Nt(Nn), [J_, Mn] = Nt(Nn), yl = (e) => {
|
|
10543
10545
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Pn(t), [c, l] = w.useState(null), d = w.useRef(!1), u = Je(s), h = Mc(o);
|
|
10544
10546
|
return w.useEffect(() => {
|
|
10545
10547
|
const m = () => {
|
|
@@ -10557,7 +10559,7 @@ var Mo = ["Enter", " "], j_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp",
|
|
|
10557
10559
|
content: c,
|
|
10558
10560
|
onContentChange: l,
|
|
10559
10561
|
children: /* @__PURE__ */ g(
|
|
10560
|
-
|
|
10562
|
+
J_,
|
|
10561
10563
|
{
|
|
10562
10564
|
scope: t,
|
|
10563
10565
|
onClose: w.useCallback(() => u(!1), [u]),
|
|
@@ -10571,31 +10573,31 @@ var Mo = ["Enter", " "], j_ = ["ArrowDown", "PageUp", "Home"], ml = ["ArrowUp",
|
|
|
10571
10573
|
) });
|
|
10572
10574
|
};
|
|
10573
10575
|
yl.displayName = Nn;
|
|
10574
|
-
var
|
|
10576
|
+
var K_ = "MenuAnchor", ts = w.forwardRef(
|
|
10575
10577
|
(e, t) => {
|
|
10576
10578
|
const { __scopeMenu: n, ...r } = e, o = Pn(n);
|
|
10577
|
-
return /* @__PURE__ */ g(
|
|
10579
|
+
return /* @__PURE__ */ g(zw, { ...o, ...r, ref: t });
|
|
10578
10580
|
}
|
|
10579
10581
|
);
|
|
10580
|
-
ts.displayName =
|
|
10581
|
-
var ns = "MenuPortal", [
|
|
10582
|
+
ts.displayName = K_;
|
|
10583
|
+
var ns = "MenuPortal", [X_, bl] = Nt(ns, {
|
|
10582
10584
|
forceMount: void 0
|
|
10583
10585
|
}), wl = (e) => {
|
|
10584
10586
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = wt(ns, t);
|
|
10585
|
-
return /* @__PURE__ */ g(
|
|
10587
|
+
return /* @__PURE__ */ g(X_, { scope: t, forceMount: n, children: /* @__PURE__ */ g(Rn, { present: n || s.open, children: /* @__PURE__ */ g(qc, { asChild: !0, container: o, children: r }) }) });
|
|
10586
10588
|
};
|
|
10587
10589
|
wl.displayName = ns;
|
|
10588
|
-
var Re = "MenuContent", [
|
|
10590
|
+
var Re = "MenuContent", [q_, rs] = Nt(Re), _l = w.forwardRef(
|
|
10589
10591
|
(e, t) => {
|
|
10590
10592
|
const n = bl(Re, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = wt(Re, e.__scopeMenu), i = Mn(Re, e.__scopeMenu);
|
|
10591
|
-
return /* @__PURE__ */ g(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g(Rn, { present: r || s.open, children: /* @__PURE__ */ g(yn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ g(
|
|
10593
|
+
return /* @__PURE__ */ g(yn.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ g(Rn, { present: r || s.open, children: /* @__PURE__ */ g(yn.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ g(Q_, { ...o, ref: t }) : /* @__PURE__ */ g(eE, { ...o, ref: t }) }) }) });
|
|
10592
10594
|
}
|
|
10593
|
-
),
|
|
10595
|
+
), Q_ = w.forwardRef(
|
|
10594
10596
|
(e, t) => {
|
|
10595
10597
|
const n = wt(Re, e.__scopeMenu), r = w.useRef(null), o = we(t, r);
|
|
10596
10598
|
return w.useEffect(() => {
|
|
10597
10599
|
const s = r.current;
|
|
10598
|
-
if (s) return
|
|
10600
|
+
if (s) return a_(s);
|
|
10599
10601
|
}, []), /* @__PURE__ */ g(
|
|
10600
10602
|
os,
|
|
10601
10603
|
{
|
|
@@ -10613,7 +10615,7 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10613
10615
|
}
|
|
10614
10616
|
);
|
|
10615
10617
|
}
|
|
10616
|
-
),
|
|
10618
|
+
), eE = w.forwardRef((e, t) => {
|
|
10617
10619
|
const n = wt(Re, e.__scopeMenu);
|
|
10618
10620
|
return /* @__PURE__ */ g(
|
|
10619
10621
|
os,
|
|
@@ -10626,7 +10628,7 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10626
10628
|
onDismiss: () => n.onOpenChange(!1)
|
|
10627
10629
|
}
|
|
10628
10630
|
);
|
|
10629
|
-
}),
|
|
10631
|
+
}), tE = /* @__PURE__ */ gr("MenuContent.ScrollLock"), os = w.forwardRef(
|
|
10630
10632
|
(e, t) => {
|
|
10631
10633
|
const {
|
|
10632
10634
|
__scopeMenu: n,
|
|
@@ -10643,16 +10645,16 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10643
10645
|
onDismiss: m,
|
|
10644
10646
|
disableOutsideScroll: p,
|
|
10645
10647
|
...f
|
|
10646
|
-
} = e, v = wt(Re, n), b = Mn(Re, n), _ = Pn(n), y = gl(n), E =
|
|
10647
|
-
const ie = D.current + N, Te = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Te.find((ce) => ce.ref.current === ze)?.textValue, Ee = Te.map((ce) => ce.textValue), Pt =
|
|
10648
|
+
} = e, v = wt(Re, n), b = Mn(Re, n), _ = Pn(n), y = gl(n), E = G_(n), [S, T] = w.useState(null), x = w.useRef(null), I = we(t, x, v.onContentChange), k = w.useRef(0), D = w.useRef(""), j = w.useRef(0), O = w.useRef(null), R = w.useRef("right"), z = w.useRef(0), Q = p ? pl : w.Fragment, H = p ? { as: tE, allowPinchZoom: !0 } : void 0, q = (N) => {
|
|
10649
|
+
const ie = D.current + N, Te = E().filter((ce) => !ce.disabled), ze = document.activeElement, me = Te.find((ce) => ce.ref.current === ze)?.textValue, Ee = Te.map((ce) => ce.textValue), Pt = pE(Ee, ie, me), qe = Te.find((ce) => ce.textValue === Pt)?.ref.current;
|
|
10648
10650
|
(function ce(_t) {
|
|
10649
10651
|
D.current = _t, window.clearTimeout(k.current), _t !== "" && (k.current = window.setTimeout(() => ce(""), 1e3));
|
|
10650
10652
|
})(ie), qe && setTimeout(() => qe.focus());
|
|
10651
10653
|
};
|
|
10652
|
-
w.useEffect(() => () => window.clearTimeout(k.current), []),
|
|
10653
|
-
const $ = w.useCallback((N) => R.current === O.current?.side &&
|
|
10654
|
+
w.useEffect(() => () => window.clearTimeout(k.current), []), cw();
|
|
10655
|
+
const $ = w.useCallback((N) => R.current === O.current?.side && hE(N, O.current?.area), []);
|
|
10654
10656
|
return /* @__PURE__ */ g(
|
|
10655
|
-
|
|
10657
|
+
q_,
|
|
10656
10658
|
{
|
|
10657
10659
|
scope: n,
|
|
10658
10660
|
searchRef: D,
|
|
@@ -10698,7 +10700,7 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10698
10700
|
onInteractOutside: h,
|
|
10699
10701
|
onDismiss: m,
|
|
10700
10702
|
children: /* @__PURE__ */ g(
|
|
10701
|
-
|
|
10703
|
+
t_,
|
|
10702
10704
|
{
|
|
10703
10705
|
asChild: !0,
|
|
10704
10706
|
...y,
|
|
@@ -10712,7 +10714,7 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10712
10714
|
}),
|
|
10713
10715
|
preventScrollOnEntryFocus: !0,
|
|
10714
10716
|
children: /* @__PURE__ */ g(
|
|
10715
|
-
|
|
10717
|
+
Fw,
|
|
10716
10718
|
{
|
|
10717
10719
|
role: "menu",
|
|
10718
10720
|
"aria-orientation": "vertical",
|
|
@@ -10727,10 +10729,10 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10727
10729
|
const Te = N.target.closest("[data-radix-menu-content]") === N.currentTarget, ze = N.ctrlKey || N.altKey || N.metaKey, me = N.key.length === 1;
|
|
10728
10730
|
Te && (N.key === "Tab" && N.preventDefault(), !ze && me && q(N.key));
|
|
10729
10731
|
const Ee = x.current;
|
|
10730
|
-
if (N.target !== Ee || !
|
|
10732
|
+
if (N.target !== Ee || !H_.includes(N.key)) return;
|
|
10731
10733
|
N.preventDefault();
|
|
10732
10734
|
const qe = E().filter((ce) => !ce.disabled).map((ce) => ce.ref.current);
|
|
10733
|
-
ml.includes(N.key) && qe.reverse(),
|
|
10735
|
+
ml.includes(N.key) && qe.reverse(), dE(qe);
|
|
10734
10736
|
}),
|
|
10735
10737
|
onBlur: G(e.onBlur, (N) => {
|
|
10736
10738
|
N.currentTarget.contains(N.target) || (window.clearTimeout(k.current), D.current = "");
|
|
@@ -10758,20 +10760,20 @@ var Re = "MenuContent", [X_, rs] = Nt(Re), _l = w.forwardRef(
|
|
|
10758
10760
|
}
|
|
10759
10761
|
);
|
|
10760
10762
|
_l.displayName = Re;
|
|
10761
|
-
var
|
|
10763
|
+
var nE = "MenuGroup", ss = w.forwardRef(
|
|
10762
10764
|
(e, t) => {
|
|
10763
10765
|
const { __scopeMenu: n, ...r } = e;
|
|
10764
10766
|
return /* @__PURE__ */ g(be.div, { role: "group", ...r, ref: t });
|
|
10765
10767
|
}
|
|
10766
10768
|
);
|
|
10767
|
-
ss.displayName =
|
|
10768
|
-
var
|
|
10769
|
+
ss.displayName = nE;
|
|
10770
|
+
var rE = "MenuLabel", El = w.forwardRef(
|
|
10769
10771
|
(e, t) => {
|
|
10770
10772
|
const { __scopeMenu: n, ...r } = e;
|
|
10771
10773
|
return /* @__PURE__ */ g(be.div, { ...r, ref: t });
|
|
10772
10774
|
}
|
|
10773
10775
|
);
|
|
10774
|
-
El.displayName =
|
|
10776
|
+
El.displayName = rE;
|
|
10775
10777
|
var yr = "MenuItem", Ua = "menu.itemSelect", Mr = w.forwardRef(
|
|
10776
10778
|
(e, t) => {
|
|
10777
10779
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = w.useRef(null), i = Mn(yr, e.__scopeMenu), a = rs(yr, e.__scopeMenu), c = we(t, s), l = w.useRef(!1), d = () => {
|
|
@@ -10815,7 +10817,7 @@ var Sl = w.forwardRef(
|
|
|
10815
10817
|
scope: n,
|
|
10816
10818
|
disabled: r,
|
|
10817
10819
|
textValue: o ?? h,
|
|
10818
|
-
children: /* @__PURE__ */ g(
|
|
10820
|
+
children: /* @__PURE__ */ g(n_, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ g(
|
|
10819
10821
|
be.div,
|
|
10820
10822
|
{
|
|
10821
10823
|
role: "menuitem",
|
|
@@ -10841,7 +10843,7 @@ var Sl = w.forwardRef(
|
|
|
10841
10843
|
}
|
|
10842
10844
|
);
|
|
10843
10845
|
}
|
|
10844
|
-
),
|
|
10846
|
+
), oE = "MenuCheckboxItem", Cl = w.forwardRef(
|
|
10845
10847
|
(e, t) => {
|
|
10846
10848
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
10847
10849
|
return /* @__PURE__ */ g(Rl, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ g(
|
|
@@ -10861,21 +10863,21 @@ var Sl = w.forwardRef(
|
|
|
10861
10863
|
) });
|
|
10862
10864
|
}
|
|
10863
10865
|
);
|
|
10864
|
-
Cl.displayName =
|
|
10865
|
-
var xl = "MenuRadioGroup", [
|
|
10866
|
+
Cl.displayName = oE;
|
|
10867
|
+
var xl = "MenuRadioGroup", [sE, aE] = Nt(
|
|
10866
10868
|
xl,
|
|
10867
10869
|
{ value: void 0, onValueChange: () => {
|
|
10868
10870
|
} }
|
|
10869
10871
|
), Tl = w.forwardRef(
|
|
10870
10872
|
(e, t) => {
|
|
10871
10873
|
const { value: n, onValueChange: r, ...o } = e, s = Je(r);
|
|
10872
|
-
return /* @__PURE__ */ g(
|
|
10874
|
+
return /* @__PURE__ */ g(sE, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ g(ss, { ...o, ref: t }) });
|
|
10873
10875
|
}
|
|
10874
10876
|
);
|
|
10875
10877
|
Tl.displayName = xl;
|
|
10876
10878
|
var Il = "MenuRadioItem", Al = w.forwardRef(
|
|
10877
10879
|
(e, t) => {
|
|
10878
|
-
const { value: n, ...r } = e, o =
|
|
10880
|
+
const { value: n, ...r } = e, o = aE(Il, e.__scopeMenu), s = n === o.value;
|
|
10879
10881
|
return /* @__PURE__ */ g(Rl, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ g(
|
|
10880
10882
|
Mr,
|
|
10881
10883
|
{
|
|
@@ -10894,12 +10896,12 @@ var Il = "MenuRadioItem", Al = w.forwardRef(
|
|
|
10894
10896
|
}
|
|
10895
10897
|
);
|
|
10896
10898
|
Al.displayName = Il;
|
|
10897
|
-
var as = "MenuItemIndicator", [Rl,
|
|
10899
|
+
var as = "MenuItemIndicator", [Rl, iE] = Nt(
|
|
10898
10900
|
as,
|
|
10899
10901
|
{ checked: !1 }
|
|
10900
10902
|
), Ol = w.forwardRef(
|
|
10901
10903
|
(e, t) => {
|
|
10902
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
10904
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = iE(as, n);
|
|
10903
10905
|
return /* @__PURE__ */ g(
|
|
10904
10906
|
Rn,
|
|
10905
10907
|
{
|
|
@@ -10917,7 +10919,7 @@ var as = "MenuItemIndicator", [Rl, aE] = Nt(
|
|
|
10917
10919
|
}
|
|
10918
10920
|
);
|
|
10919
10921
|
Ol.displayName = as;
|
|
10920
|
-
var
|
|
10922
|
+
var cE = "MenuSeparator", Nl = w.forwardRef(
|
|
10921
10923
|
(e, t) => {
|
|
10922
10924
|
const { __scopeMenu: n, ...r } = e;
|
|
10923
10925
|
return /* @__PURE__ */ g(
|
|
@@ -10931,15 +10933,15 @@ var iE = "MenuSeparator", Nl = w.forwardRef(
|
|
|
10931
10933
|
);
|
|
10932
10934
|
}
|
|
10933
10935
|
);
|
|
10934
|
-
Nl.displayName =
|
|
10935
|
-
var
|
|
10936
|
+
Nl.displayName = cE;
|
|
10937
|
+
var lE = "MenuArrow", Pl = w.forwardRef(
|
|
10936
10938
|
(e, t) => {
|
|
10937
10939
|
const { __scopeMenu: n, ...r } = e, o = Pn(n);
|
|
10938
|
-
return /* @__PURE__ */ g(
|
|
10940
|
+
return /* @__PURE__ */ g(Zw, { ...o, ...r, ref: t });
|
|
10939
10941
|
}
|
|
10940
10942
|
);
|
|
10941
|
-
Pl.displayName =
|
|
10942
|
-
var is = "MenuSub", [
|
|
10943
|
+
Pl.displayName = lE;
|
|
10944
|
+
var is = "MenuSub", [uE, Ml] = Nt(is), kl = (e) => {
|
|
10943
10945
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = wt(is, t), i = Pn(t), [a, c] = w.useState(null), [l, d] = w.useState(null), u = Je(o);
|
|
10944
10946
|
return w.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ g(Xc, { ...i, children: /* @__PURE__ */ g(
|
|
10945
10947
|
vl,
|
|
@@ -10950,7 +10952,7 @@ var is = "MenuSub", [lE, Ml] = Nt(is), kl = (e) => {
|
|
|
10950
10952
|
content: l,
|
|
10951
10953
|
onContentChange: d,
|
|
10952
10954
|
children: /* @__PURE__ */ g(
|
|
10953
|
-
|
|
10955
|
+
uE,
|
|
10954
10956
|
{
|
|
10955
10957
|
scope: t,
|
|
10956
10958
|
contentId: vn(),
|
|
@@ -11025,7 +11027,7 @@ var nn = "MenuSubTrigger", Dl = w.forwardRef(
|
|
|
11025
11027
|
),
|
|
11026
11028
|
onKeyDown: G(e.onKeyDown, (u) => {
|
|
11027
11029
|
const h = s.searchRef.current !== "";
|
|
11028
|
-
e.disabled || h && u.key === " " ||
|
|
11030
|
+
e.disabled || h && u.key === " " || V_[r.dir].includes(u.key) && (n.onOpenChange(!0), n.content?.focus(), u.preventDefault());
|
|
11029
11031
|
})
|
|
11030
11032
|
}
|
|
11031
11033
|
) });
|
|
@@ -11058,7 +11060,7 @@ var $l = "MenuSubContent", Ll = w.forwardRef(
|
|
|
11058
11060
|
i.onClose(), d.preventDefault();
|
|
11059
11061
|
}),
|
|
11060
11062
|
onKeyDown: G(e.onKeyDown, (d) => {
|
|
11061
|
-
const u = d.currentTarget.contains(d.target), h =
|
|
11063
|
+
const u = d.currentTarget.contains(d.target), h = W_[i.dir].includes(d.key);
|
|
11062
11064
|
u && h && (s.onOpenChange(!1), a.trigger?.focus(), d.preventDefault());
|
|
11063
11065
|
})
|
|
11064
11066
|
}
|
|
@@ -11075,24 +11077,24 @@ function br(e) {
|
|
|
11075
11077
|
function cs(e) {
|
|
11076
11078
|
return br(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
11077
11079
|
}
|
|
11078
|
-
function
|
|
11080
|
+
function dE(e) {
|
|
11079
11081
|
const t = document.activeElement;
|
|
11080
11082
|
for (const n of e)
|
|
11081
11083
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
11082
11084
|
}
|
|
11083
|
-
function
|
|
11085
|
+
function fE(e, t) {
|
|
11084
11086
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
11085
11087
|
}
|
|
11086
|
-
function
|
|
11088
|
+
function pE(e, t, n) {
|
|
11087
11089
|
const o = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
11088
|
-
let i =
|
|
11090
|
+
let i = fE(e, Math.max(s, 0));
|
|
11089
11091
|
o.length === 1 && (i = i.filter((l) => l !== n));
|
|
11090
11092
|
const c = i.find(
|
|
11091
11093
|
(l) => l.toLowerCase().startsWith(o.toLowerCase())
|
|
11092
11094
|
);
|
|
11093
11095
|
return c !== n ? c : void 0;
|
|
11094
11096
|
}
|
|
11095
|
-
function
|
|
11097
|
+
function mE(e, t) {
|
|
11096
11098
|
const { x: n, y: r } = e;
|
|
11097
11099
|
let o = !1;
|
|
11098
11100
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -11101,18 +11103,18 @@ function pE(e, t) {
|
|
|
11101
11103
|
}
|
|
11102
11104
|
return o;
|
|
11103
11105
|
}
|
|
11104
|
-
function
|
|
11106
|
+
function hE(e, t) {
|
|
11105
11107
|
if (!t) return !1;
|
|
11106
11108
|
const n = { x: e.clientX, y: e.clientY };
|
|
11107
|
-
return
|
|
11109
|
+
return mE(n, t);
|
|
11108
11110
|
}
|
|
11109
11111
|
function bn(e) {
|
|
11110
11112
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
11111
11113
|
}
|
|
11112
|
-
var
|
|
11114
|
+
var gE = yl, vE = ts, yE = wl, bE = _l, wE = ss, _E = El, EE = Mr, SE = Cl, CE = Tl, xE = Al, TE = Ol, IE = Nl, AE = Pl, RE = kl, OE = Dl, NE = Ll, kr = "DropdownMenu", [PE] = An(
|
|
11113
11115
|
kr,
|
|
11114
11116
|
[hl]
|
|
11115
|
-
), he = hl(), [
|
|
11117
|
+
), he = hl(), [ME, Fl] = PE(kr), Zl = (e) => {
|
|
11116
11118
|
const {
|
|
11117
11119
|
__scopeDropdownMenu: t,
|
|
11118
11120
|
children: n,
|
|
@@ -11128,7 +11130,7 @@ var hE = yl, gE = ts, vE = wl, yE = _l, bE = ss, wE = El, _E = Mr, EE = Cl, SE =
|
|
|
11128
11130
|
caller: kr
|
|
11129
11131
|
});
|
|
11130
11132
|
return /* @__PURE__ */ g(
|
|
11131
|
-
|
|
11133
|
+
ME,
|
|
11132
11134
|
{
|
|
11133
11135
|
scope: t,
|
|
11134
11136
|
triggerId: vn(),
|
|
@@ -11138,7 +11140,7 @@ var hE = yl, gE = ts, vE = wl, yE = _l, bE = ss, wE = El, _E = Mr, EE = Cl, SE =
|
|
|
11138
11140
|
onOpenChange: u,
|
|
11139
11141
|
onOpenToggle: w.useCallback(() => u((h) => !h), [u]),
|
|
11140
11142
|
modal: a,
|
|
11141
|
-
children: /* @__PURE__ */ g(
|
|
11143
|
+
children: /* @__PURE__ */ g(gE, { ...c, open: d, onOpenChange: u, dir: r, modal: a, children: n })
|
|
11142
11144
|
}
|
|
11143
11145
|
);
|
|
11144
11146
|
};
|
|
@@ -11146,7 +11148,7 @@ Zl.displayName = kr;
|
|
|
11146
11148
|
var Ul = "DropdownMenuTrigger", jl = w.forwardRef(
|
|
11147
11149
|
(e, t) => {
|
|
11148
11150
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Fl(Ul, n), i = he(n);
|
|
11149
|
-
return /* @__PURE__ */ g(
|
|
11151
|
+
return /* @__PURE__ */ g(vE, { asChild: !0, ...i, children: /* @__PURE__ */ g(
|
|
11150
11152
|
be.button,
|
|
11151
11153
|
{
|
|
11152
11154
|
type: "button",
|
|
@@ -11170,16 +11172,16 @@ var Ul = "DropdownMenuTrigger", jl = w.forwardRef(
|
|
|
11170
11172
|
}
|
|
11171
11173
|
);
|
|
11172
11174
|
jl.displayName = Ul;
|
|
11173
|
-
var
|
|
11175
|
+
var kE = "DropdownMenuPortal", Bl = (e) => {
|
|
11174
11176
|
const { __scopeDropdownMenu: t, ...n } = e, r = he(t);
|
|
11175
|
-
return /* @__PURE__ */ g(
|
|
11177
|
+
return /* @__PURE__ */ g(yE, { ...r, ...n });
|
|
11176
11178
|
};
|
|
11177
|
-
Bl.displayName =
|
|
11179
|
+
Bl.displayName = kE;
|
|
11178
11180
|
var Hl = "DropdownMenuContent", Vl = w.forwardRef(
|
|
11179
11181
|
(e, t) => {
|
|
11180
11182
|
const { __scopeDropdownMenu: n, ...r } = e, o = Fl(Hl, n), s = he(n), i = w.useRef(!1);
|
|
11181
11183
|
return /* @__PURE__ */ g(
|
|
11182
|
-
|
|
11184
|
+
bE,
|
|
11183
11185
|
{
|
|
11184
11186
|
id: o.contentId,
|
|
11185
11187
|
"aria-labelledby": o.triggerId,
|
|
@@ -11206,76 +11208,76 @@ var Hl = "DropdownMenuContent", Vl = w.forwardRef(
|
|
|
11206
11208
|
}
|
|
11207
11209
|
);
|
|
11208
11210
|
Vl.displayName = Hl;
|
|
11209
|
-
var
|
|
11211
|
+
var DE = "DropdownMenuGroup", $E = w.forwardRef(
|
|
11210
11212
|
(e, t) => {
|
|
11211
11213
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11212
|
-
return /* @__PURE__ */ g(
|
|
11214
|
+
return /* @__PURE__ */ g(wE, { ...o, ...r, ref: t });
|
|
11213
11215
|
}
|
|
11214
11216
|
);
|
|
11215
|
-
|
|
11216
|
-
var
|
|
11217
|
+
$E.displayName = DE;
|
|
11218
|
+
var LE = "DropdownMenuLabel", Wl = w.forwardRef(
|
|
11217
11219
|
(e, t) => {
|
|
11218
11220
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11219
|
-
return /* @__PURE__ */ g(
|
|
11221
|
+
return /* @__PURE__ */ g(_E, { ...o, ...r, ref: t });
|
|
11220
11222
|
}
|
|
11221
11223
|
);
|
|
11222
|
-
Wl.displayName =
|
|
11223
|
-
var
|
|
11224
|
+
Wl.displayName = LE;
|
|
11225
|
+
var zE = "DropdownMenuItem", Gl = w.forwardRef(
|
|
11224
11226
|
(e, t) => {
|
|
11225
11227
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11226
|
-
return /* @__PURE__ */ g(
|
|
11228
|
+
return /* @__PURE__ */ g(EE, { ...o, ...r, ref: t });
|
|
11227
11229
|
}
|
|
11228
11230
|
);
|
|
11229
|
-
Gl.displayName =
|
|
11230
|
-
var
|
|
11231
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11232
|
-
return /* @__PURE__ */ g(EE, { ...o, ...r, ref: t });
|
|
11233
|
-
});
|
|
11234
|
-
FE.displayName = zE;
|
|
11235
|
-
var ZE = "DropdownMenuRadioGroup", UE = w.forwardRef((e, t) => {
|
|
11231
|
+
Gl.displayName = zE;
|
|
11232
|
+
var FE = "DropdownMenuCheckboxItem", ZE = w.forwardRef((e, t) => {
|
|
11236
11233
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11237
11234
|
return /* @__PURE__ */ g(SE, { ...o, ...r, ref: t });
|
|
11238
11235
|
});
|
|
11239
|
-
|
|
11240
|
-
var
|
|
11236
|
+
ZE.displayName = FE;
|
|
11237
|
+
var UE = "DropdownMenuRadioGroup", jE = w.forwardRef((e, t) => {
|
|
11241
11238
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11242
11239
|
return /* @__PURE__ */ g(CE, { ...o, ...r, ref: t });
|
|
11243
11240
|
});
|
|
11244
|
-
|
|
11245
|
-
var
|
|
11241
|
+
jE.displayName = UE;
|
|
11242
|
+
var BE = "DropdownMenuRadioItem", HE = w.forwardRef((e, t) => {
|
|
11246
11243
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11247
11244
|
return /* @__PURE__ */ g(xE, { ...o, ...r, ref: t });
|
|
11248
11245
|
});
|
|
11249
|
-
|
|
11250
|
-
var
|
|
11246
|
+
HE.displayName = BE;
|
|
11247
|
+
var VE = "DropdownMenuItemIndicator", WE = w.forwardRef((e, t) => {
|
|
11251
11248
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11252
11249
|
return /* @__PURE__ */ g(TE, { ...o, ...r, ref: t });
|
|
11253
11250
|
});
|
|
11254
|
-
|
|
11255
|
-
var GE = "
|
|
11251
|
+
WE.displayName = VE;
|
|
11252
|
+
var GE = "DropdownMenuSeparator", Yl = w.forwardRef((e, t) => {
|
|
11253
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11254
|
+
return /* @__PURE__ */ g(IE, { ...o, ...r, ref: t });
|
|
11255
|
+
});
|
|
11256
|
+
Yl.displayName = GE;
|
|
11257
|
+
var YE = "DropdownMenuArrow", JE = w.forwardRef(
|
|
11256
11258
|
(e, t) => {
|
|
11257
11259
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11258
|
-
return /* @__PURE__ */ g(
|
|
11260
|
+
return /* @__PURE__ */ g(AE, { ...o, ...r, ref: t });
|
|
11259
11261
|
}
|
|
11260
11262
|
);
|
|
11261
|
-
|
|
11262
|
-
var
|
|
11263
|
+
JE.displayName = YE;
|
|
11264
|
+
var KE = (e) => {
|
|
11263
11265
|
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, i = he(t), [a, c] = qo({
|
|
11264
11266
|
prop: r,
|
|
11265
11267
|
defaultProp: s ?? !1,
|
|
11266
11268
|
onChange: o,
|
|
11267
11269
|
caller: "DropdownMenuSub"
|
|
11268
11270
|
});
|
|
11269
|
-
return /* @__PURE__ */ g(
|
|
11270
|
-
},
|
|
11271
|
+
return /* @__PURE__ */ g(RE, { ...i, open: a, onOpenChange: c, children: n });
|
|
11272
|
+
}, XE = "DropdownMenuSubTrigger", Jl = w.forwardRef((e, t) => {
|
|
11271
11273
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11272
|
-
return /* @__PURE__ */ g(
|
|
11274
|
+
return /* @__PURE__ */ g(OE, { ...o, ...r, ref: t });
|
|
11273
11275
|
});
|
|
11274
|
-
Jl.displayName =
|
|
11275
|
-
var
|
|
11276
|
+
Jl.displayName = XE;
|
|
11277
|
+
var qE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
|
|
11276
11278
|
const { __scopeDropdownMenu: n, ...r } = e, o = he(n);
|
|
11277
11279
|
return /* @__PURE__ */ g(
|
|
11278
|
-
|
|
11280
|
+
NE,
|
|
11279
11281
|
{
|
|
11280
11282
|
...o,
|
|
11281
11283
|
...r,
|
|
@@ -11291,8 +11293,8 @@ var XE = "DropdownMenuSubContent", Kl = w.forwardRef((e, t) => {
|
|
|
11291
11293
|
}
|
|
11292
11294
|
);
|
|
11293
11295
|
});
|
|
11294
|
-
Kl.displayName =
|
|
11295
|
-
var
|
|
11296
|
+
Kl.displayName = qE;
|
|
11297
|
+
var QE = Zl, eS = jl, Xl = Bl, tS = Vl, nS = Wl, ja = Gl, rS = Yl, oS = KE, sS = Jl, aS = Kl;
|
|
11296
11298
|
const Ba = (e) => {
|
|
11297
11299
|
if (typeof e == "string")
|
|
11298
11300
|
return e;
|
|
@@ -11305,7 +11307,7 @@ const Ba = (e) => {
|
|
|
11305
11307
|
}
|
|
11306
11308
|
return "Element";
|
|
11307
11309
|
};
|
|
11308
|
-
const
|
|
11310
|
+
const iS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 prose prose-dark", cS = "z-[60] rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-3 sm:p-2 mx-3", lS = M("flex items-center flex-row justify-between", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-[state=open]:bg-surface-lighter"), uS = (e) => e ? e.startsWith("top") ? "top" : e.startsWith("left") ? "left" : e.startsWith("right") ? "right" : "bottom" : "bottom", dS = (e) => !e || e.endsWith("-start") ? "start" : e.endsWith("-end") ? "end" : "center", Dr = ({ trigger: e, children: t, label: n = "Open menu", defaultPlacement: r = "bottom-start", onOpenChange: o, mode: s = "system", focusMode: i = "system", sideOffset: a = 10, modal: c = !0 }) => {
|
|
11309
11311
|
const [l, d] = B(!1), [u, h] = B(void 0), m = Ba(e) === "Button" || Ba(e) === "ButtonIcon", p = m ? {
|
|
11310
11312
|
noInternalClick: m,
|
|
11311
11313
|
focusMode: i,
|
|
@@ -11315,7 +11317,7 @@ const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11315
11317
|
"aria-label": n,
|
|
11316
11318
|
ref: f
|
|
11317
11319
|
}) : null;
|
|
11318
|
-
return /* @__PURE__ */ F(
|
|
11320
|
+
return /* @__PURE__ */ F(QE, {
|
|
11319
11321
|
onOpenChange: (_) => {
|
|
11320
11322
|
if (d(_), o?.(_), _ && f.current) {
|
|
11321
11323
|
const y = f.current.closest("dialog");
|
|
@@ -11330,18 +11332,18 @@ const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11330
11332
|
},
|
|
11331
11333
|
modal: c,
|
|
11332
11334
|
children: [
|
|
11333
|
-
/* @__PURE__ */ g(
|
|
11335
|
+
/* @__PURE__ */ g(eS, {
|
|
11334
11336
|
asChild: !0,
|
|
11335
11337
|
"data-state": l ? "open" : "closed",
|
|
11336
11338
|
children: v
|
|
11337
11339
|
}),
|
|
11338
11340
|
/* @__PURE__ */ g(Xl, {
|
|
11339
11341
|
container: u,
|
|
11340
|
-
children: /* @__PURE__ */ g(
|
|
11341
|
-
className:
|
|
11342
|
+
children: /* @__PURE__ */ g(tS, {
|
|
11343
|
+
className: iS,
|
|
11342
11344
|
sideOffset: a,
|
|
11343
|
-
side:
|
|
11344
|
-
align:
|
|
11345
|
+
side: uS(r),
|
|
11346
|
+
align: dS(r),
|
|
11345
11347
|
loop: !0,
|
|
11346
11348
|
children: t
|
|
11347
11349
|
})
|
|
@@ -11350,10 +11352,10 @@ const aS = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11350
11352
|
});
|
|
11351
11353
|
};
|
|
11352
11354
|
Dr.displayName = "DropdownMenu";
|
|
11353
|
-
const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ F(
|
|
11355
|
+
const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ F(oS, {
|
|
11354
11356
|
children: [
|
|
11355
|
-
/* @__PURE__ */ F(
|
|
11356
|
-
className:
|
|
11357
|
+
/* @__PURE__ */ F(sS, {
|
|
11358
|
+
className: lS,
|
|
11357
11359
|
disabled: r,
|
|
11358
11360
|
children: [
|
|
11359
11361
|
/* @__PURE__ */ F("span", {
|
|
@@ -11374,8 +11376,8 @@ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
|
|
|
11374
11376
|
]
|
|
11375
11377
|
}),
|
|
11376
11378
|
/* @__PURE__ */ g(Xl, {
|
|
11377
|
-
children: /* @__PURE__ */ g(
|
|
11378
|
-
className:
|
|
11379
|
+
children: /* @__PURE__ */ g(aS, {
|
|
11380
|
+
className: cS,
|
|
11379
11381
|
sideOffset: o,
|
|
11380
11382
|
alignOffset: s,
|
|
11381
11383
|
loop: !0,
|
|
@@ -11387,7 +11389,7 @@ const ql = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o =
|
|
|
11387
11389
|
ql.displayName = "DropdownMenuSub";
|
|
11388
11390
|
const Ql = ({ className: e, ...t }) => {
|
|
11389
11391
|
const n = M(e, "my-1 border-t border-border-medium");
|
|
11390
|
-
return /* @__PURE__ */ g(
|
|
11392
|
+
return /* @__PURE__ */ g(rS, {
|
|
11391
11393
|
className: n,
|
|
11392
11394
|
...t
|
|
11393
11395
|
});
|
|
@@ -11395,7 +11397,7 @@ const Ql = ({ className: e, ...t }) => {
|
|
|
11395
11397
|
Ql.displayName = "DropdownMenuSeparator";
|
|
11396
11398
|
const wr = ({ className: e, icon: t, children: n, ...r }) => {
|
|
11397
11399
|
const o = M(e, "pt-1 pb-2 mb-2", "text-sm text-copy-dark font-bold", "border-b border-border-medium", t && "flex items-center");
|
|
11398
|
-
return /* @__PURE__ */ F(
|
|
11400
|
+
return /* @__PURE__ */ F(nS, {
|
|
11399
11401
|
className: o,
|
|
11400
11402
|
...r,
|
|
11401
11403
|
children: [
|
|
@@ -11408,7 +11410,7 @@ const wr = ({ className: e, icon: t, children: n, ...r }) => {
|
|
|
11408
11410
|
});
|
|
11409
11411
|
};
|
|
11410
11412
|
wr.displayName = "DropdownMenuGroupLabel";
|
|
11411
|
-
const
|
|
11413
|
+
const fS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1", "rounded-md border border-transparent", "text-left text-base select-none cursor-pointer", "outline-hidden focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline", "disabled:cursor-not-allowed disabled:text-copy-medium", "data-highlighted:bg-surface-lighter data-highlighted:border-border-medium data-highlighted:underline", "data-disabled:cursor-not-allowed data-disabled:text-copy-medium"), Me = ({ label: e, disabled: t, icon: n, raw: r = !1, children: o, ignoreClick: s = !1, selected: i, onSelect: a, onClick: c, onFocus: l, ...d }) => {
|
|
11412
11414
|
let u = "";
|
|
11413
11415
|
if (r && o)
|
|
11414
11416
|
return /* @__PURE__ */ g(ja, {
|
|
@@ -11420,7 +11422,7 @@ const dS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
|
|
|
11420
11422
|
children: o
|
|
11421
11423
|
});
|
|
11422
11424
|
n && (u = "pl-2");
|
|
11423
|
-
const h = M(
|
|
11425
|
+
const h = M(fS, {
|
|
11424
11426
|
"bg-none": !t && !i
|
|
11425
11427
|
});
|
|
11426
11428
|
return /* @__PURE__ */ F(ja, {
|
|
@@ -11449,12 +11451,12 @@ const dS = M("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
|
|
|
11449
11451
|
});
|
|
11450
11452
|
};
|
|
11451
11453
|
Me.displayName = "DropdownMenuItem";
|
|
11452
|
-
const
|
|
11454
|
+
const pS = (e) => {
|
|
11453
11455
|
for (let t = 0; t < e.length; t++)
|
|
11454
11456
|
if (e[t].enabled)
|
|
11455
11457
|
return !0;
|
|
11456
11458
|
return !1;
|
|
11457
|
-
},
|
|
11459
|
+
}, mS = ({
|
|
11458
11460
|
className: e,
|
|
11459
11461
|
defaultPlacement: t = "top-start"
|
|
11460
11462
|
}) => {
|
|
@@ -11473,7 +11475,7 @@ const fS = (e) => {
|
|
|
11473
11475
|
prompt: f
|
|
11474
11476
|
}
|
|
11475
11477
|
});
|
|
11476
|
-
}, m = u && d && d.tags &&
|
|
11478
|
+
}, m = u && d && d.tags && pS(d.tags), p = /* @__PURE__ */ F(
|
|
11477
11479
|
Dr,
|
|
11478
11480
|
{
|
|
11479
11481
|
mode: "light",
|
|
@@ -11536,7 +11538,7 @@ const fS = (e) => {
|
|
|
11536
11538
|
trigger: p
|
|
11537
11539
|
}
|
|
11538
11540
|
) : /* @__PURE__ */ g("div", { className: e, children: p });
|
|
11539
|
-
},
|
|
11541
|
+
}, hS = ({
|
|
11540
11542
|
className: e
|
|
11541
11543
|
}) => {
|
|
11542
11544
|
const {
|
|
@@ -11625,7 +11627,7 @@ const fS = (e) => {
|
|
|
11625
11627
|
}
|
|
11626
11628
|
)
|
|
11627
11629
|
] });
|
|
11628
|
-
},
|
|
11630
|
+
}, gS = ({
|
|
11629
11631
|
className: e
|
|
11630
11632
|
}) => {
|
|
11631
11633
|
const { getAccessToken: t, user: n } = $e(), {
|
|
@@ -11652,7 +11654,7 @@ const fS = (e) => {
|
|
|
11652
11654
|
}
|
|
11653
11655
|
);
|
|
11654
11656
|
};
|
|
11655
|
-
function
|
|
11657
|
+
function vS(e) {
|
|
11656
11658
|
const [t, n] = B(
|
|
11657
11659
|
() => Ha()
|
|
11658
11660
|
);
|
|
@@ -11668,7 +11670,7 @@ function Ha() {
|
|
|
11668
11670
|
const e = (/* @__PURE__ */ new Date()).getHours();
|
|
11669
11671
|
return e >= 5 && e < 11 ? nd : e >= 11 && e < 12 ? rd : e >= 12 && e < 17 ? od : e >= 17 && e < 21 ? sd : e >= 21 && e < 24 ? ad : id;
|
|
11670
11672
|
}
|
|
11671
|
-
const
|
|
11673
|
+
const yS = [".png", ".jpg", ".jpeg", ".webp"], bS = [".pdf", ".txt"], wS = [
|
|
11672
11674
|
".js",
|
|
11673
11675
|
".cjs",
|
|
11674
11676
|
".mjs",
|
|
@@ -11683,28 +11685,28 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11683
11685
|
".json",
|
|
11684
11686
|
".md"
|
|
11685
11687
|
], Ct = [
|
|
11686
|
-
...yS,
|
|
11687
11688
|
...bS,
|
|
11688
|
-
...
|
|
11689
|
-
|
|
11689
|
+
...wS,
|
|
11690
|
+
...yS
|
|
11691
|
+
], ko = 400 * 1024, _S = "text/plain", or = (e) => {
|
|
11690
11692
|
if (e === 0)
|
|
11691
11693
|
return "0 Bytes";
|
|
11692
11694
|
const t = 1024, n = ["Bytes", "KB", "MB", "GB"], r = Math.floor(Math.log(e) / Math.log(t));
|
|
11693
11695
|
return parseFloat((e / Math.pow(t, r)).toFixed(2)) + " " + n[r];
|
|
11694
|
-
}, eu = (e) => e.reduce((t, n) => t + n.size, 0),
|
|
11696
|
+
}, eu = (e) => e.reduce((t, n) => t + n.size, 0), ES = (e) => e.type ? e : new File(
|
|
11695
11697
|
[e],
|
|
11696
11698
|
// Use the original file content
|
|
11697
11699
|
e.name,
|
|
11698
11700
|
{
|
|
11699
|
-
type:
|
|
11701
|
+
type: _S,
|
|
11700
11702
|
lastModified: e.lastModified
|
|
11701
11703
|
}
|
|
11702
|
-
),
|
|
11704
|
+
), SS = () => lt(
|
|
11703
11705
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
|
11704
|
-
),
|
|
11706
|
+
), CS = ({ oledMode: e }) => lt({
|
|
11705
11707
|
"bg-surface-darker/95 dark:bg-surface-darker": e,
|
|
11706
11708
|
"bg-surface-darker": !e
|
|
11707
|
-
}),
|
|
11709
|
+
}), xS = () => lt("text-copy-lighter caret-copy-light"), TS = ({ oledMode: e }) => lt(
|
|
11708
11710
|
"has-[.av-prompt-editable:focus]:outline",
|
|
11709
11711
|
"has-[.av-prompt-editable:focus]:outline-2",
|
|
11710
11712
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
|
@@ -11712,7 +11714,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11712
11714
|
"has-[.av-prompt-editable:focus]:outline-focus-light": !e,
|
|
11713
11715
|
"dark:has-[.av-prompt-editable:focus]:outline-focus-light has-[.av-prompt-editable:focus]:outline-focus-dark": e
|
|
11714
11716
|
}
|
|
11715
|
-
),
|
|
11717
|
+
), IS = (e) => lt(
|
|
11716
11718
|
"peer",
|
|
11717
11719
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
|
11718
11720
|
"h-6 pr-2 pl-3",
|
|
@@ -11720,22 +11722,22 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11720
11722
|
"sm:placeholder:text-sm",
|
|
11721
11723
|
"transition-all duration-300 ease-out",
|
|
11722
11724
|
e
|
|
11723
|
-
),
|
|
11725
|
+
), AS = ({
|
|
11724
11726
|
oledMode: e,
|
|
11725
11727
|
placeholderColor: t
|
|
11726
11728
|
}) => ({
|
|
11727
11729
|
wrapper: lt(
|
|
11728
11730
|
yu,
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11731
|
+
CS({ oledMode: e }),
|
|
11732
|
+
SS(),
|
|
11733
|
+
xS(),
|
|
11734
|
+
TS({ oledMode: e })
|
|
11733
11735
|
),
|
|
11734
11736
|
textArea: lt(
|
|
11735
11737
|
vu,
|
|
11736
|
-
|
|
11738
|
+
IS(t)
|
|
11737
11739
|
)
|
|
11738
|
-
}),
|
|
11740
|
+
}), RS = ({
|
|
11739
11741
|
files: e,
|
|
11740
11742
|
clearFile: t
|
|
11741
11743
|
}) => e && e.length > 0 && /* @__PURE__ */ F("div", { className: "px-4 py-2", children: [
|
|
@@ -11774,7 +11776,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11774
11776
|
" ",
|
|
11775
11777
|
or(ko)
|
|
11776
11778
|
] })
|
|
11777
|
-
] }), ls = 1200, tu = 200 * 1024,
|
|
11779
|
+
] }), ls = 1200, tu = 200 * 1024, OS = 0.85, Va = 0.5, NS = 0.1, PS = ["image/jpeg", "image/webp"], MS = ["image/png", "image/jpeg", "image/webp"], nu = (e) => MS.includes(e.type), kS = (e, t, n = ls) => {
|
|
11778
11780
|
if (e <= n && t <= n)
|
|
11779
11781
|
return { width: e, height: t };
|
|
11780
11782
|
const r = e / t;
|
|
@@ -11785,14 +11787,14 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11785
11787
|
width: Math.round(n * r),
|
|
11786
11788
|
height: n
|
|
11787
11789
|
};
|
|
11788
|
-
},
|
|
11790
|
+
}, DS = (e) => new Promise((t, n) => {
|
|
11789
11791
|
const r = new Image(), o = URL.createObjectURL(e);
|
|
11790
11792
|
r.onload = () => {
|
|
11791
11793
|
URL.revokeObjectURL(o), t(r);
|
|
11792
11794
|
}, r.onerror = () => {
|
|
11793
11795
|
URL.revokeObjectURL(o), n(new Error(`Failed to load image: ${e.name}`));
|
|
11794
11796
|
}, r.src = o;
|
|
11795
|
-
}),
|
|
11797
|
+
}), $S = (e, t, n) => new Promise((r, o) => {
|
|
11796
11798
|
e.toBlob(
|
|
11797
11799
|
(s) => {
|
|
11798
11800
|
s ? r(s) : o(new Error("Failed to convert canvas to blob"));
|
|
@@ -11800,11 +11802,11 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11800
11802
|
t,
|
|
11801
11803
|
n
|
|
11802
11804
|
);
|
|
11803
|
-
}),
|
|
11805
|
+
}), LS = (e) => e === "image/png" ? "image/jpeg" : e, zS = async (e, t = tu, n = ls) => {
|
|
11804
11806
|
if (!nu(e) || e.size <= t)
|
|
11805
11807
|
return e;
|
|
11806
11808
|
try {
|
|
11807
|
-
const r = await
|
|
11809
|
+
const r = await DS(e), { width: o, height: s } = kS(
|
|
11808
11810
|
r.naturalWidth,
|
|
11809
11811
|
r.naturalHeight,
|
|
11810
11812
|
n
|
|
@@ -11814,16 +11816,16 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11814
11816
|
if (!a)
|
|
11815
11817
|
return e;
|
|
11816
11818
|
a.fillStyle = "#FFFFFF", a.fillRect(0, 0, o, s), a.drawImage(r, 0, 0, o, s);
|
|
11817
|
-
const c =
|
|
11818
|
-
let d =
|
|
11819
|
+
const c = LS(e.type), l = PS.includes(c);
|
|
11820
|
+
let d = OS, u;
|
|
11819
11821
|
do {
|
|
11820
|
-
if (u = await
|
|
11822
|
+
if (u = await $S(
|
|
11821
11823
|
i,
|
|
11822
11824
|
c,
|
|
11823
11825
|
l ? d : 1
|
|
11824
11826
|
), u.size <= t || d <= Va)
|
|
11825
11827
|
break;
|
|
11826
|
-
d -=
|
|
11828
|
+
d -= NS;
|
|
11827
11829
|
} while (d >= Va);
|
|
11828
11830
|
if (u.size >= e.size)
|
|
11829
11831
|
return e;
|
|
@@ -11839,11 +11841,11 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11839
11841
|
} catch (r) {
|
|
11840
11842
|
return console.warn("Image compression failed, using original file:", r), e;
|
|
11841
11843
|
}
|
|
11842
|
-
},
|
|
11843
|
-
e.map((o) => nu(o) ?
|
|
11844
|
-
), ru = 24,
|
|
11845
|
-
e.current && (e.current.style.height = `${
|
|
11846
|
-
},
|
|
11844
|
+
}, FS = async (e, t = tu, n = ls) => await Promise.all(
|
|
11845
|
+
e.map((o) => nu(o) ? zS(o, t, n) : Promise.resolve(o))
|
|
11846
|
+
), ru = 24, ZS = 500, ou = 1, US = 5, jS = ru * ou, Wa = US * ru, BS = "ready", HS = "streaming", VS = "error", WS = "submitted", Yn = (e) => {
|
|
11847
|
+
e.current && (e.current.style.height = `${jS}px`);
|
|
11848
|
+
}, GS = () => {
|
|
11847
11849
|
const { user: e, getAccessToken: t } = $e(), n = hr(ir.ADDON.ATTACHMENTS), r = hr(ir.ADDON.REASONING), { allowedModels: o } = Do(), [s, i] = B(null), [a, c] = B(!1), [l, d] = B(!1), {
|
|
11848
11850
|
state: { oledMode: u }
|
|
11849
11851
|
} = de(_n), {
|
|
@@ -11860,7 +11862,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11860
11862
|
} = de(Le), { state: E, dispatch: S } = de($o), { data: T } = vt({
|
|
11861
11863
|
user: e?.username,
|
|
11862
11864
|
getAccessToken: t
|
|
11863
|
-
}), x = V(null), I = V(null), k = V(!1), D = V(0), j = V(0), O = V(null), R = V(null), z = ld(), [Q, H] = Ke(), q =
|
|
11865
|
+
}), x = V(null), I = V(null), k = V(!1), D = V(0), j = V(0), O = V(null), R = V(null), z = ld(), [Q, H] = Ke(), q = AS({
|
|
11864
11866
|
oledMode: u,
|
|
11865
11867
|
placeholderColor: Q(H.Placeholder)
|
|
11866
11868
|
}), $ = r && T?.showReasoningButton, { setMessages: N, status: ie, id: Te, sendMessage: ze, input: me, setInput: Ee, messages: Pt } = bt({
|
|
@@ -11873,7 +11875,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11873
11875
|
}
|
|
11874
11876
|
});
|
|
11875
11877
|
}
|
|
11876
|
-
}), qe =
|
|
11878
|
+
}), qe = vS(!!Pt.length), ce = J(
|
|
11877
11879
|
(Y) => {
|
|
11878
11880
|
Ee(Y.target.value);
|
|
11879
11881
|
},
|
|
@@ -11913,25 +11915,25 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11913
11915
|
]
|
|
11914
11916
|
), kn = J(
|
|
11915
11917
|
async (Y) => {
|
|
11916
|
-
Y ===
|
|
11918
|
+
Y === BS && h({
|
|
11917
11919
|
type: It,
|
|
11918
11920
|
payload: {
|
|
11919
11921
|
loading: !1,
|
|
11920
11922
|
streaming: !1
|
|
11921
11923
|
}
|
|
11922
|
-
}), Y ===
|
|
11924
|
+
}), Y === WS && h({
|
|
11923
11925
|
type: It,
|
|
11924
11926
|
payload: {
|
|
11925
11927
|
loading: !0,
|
|
11926
11928
|
streaming: !1
|
|
11927
11929
|
}
|
|
11928
|
-
}), Y ===
|
|
11930
|
+
}), Y === HS && h({
|
|
11929
11931
|
type: It,
|
|
11930
11932
|
payload: {
|
|
11931
11933
|
loading: !1,
|
|
11932
11934
|
streaming: !0
|
|
11933
11935
|
}
|
|
11934
|
-
}), Y ===
|
|
11936
|
+
}), Y === VS && setTimeout(() => {
|
|
11935
11937
|
f || (h({
|
|
11936
11938
|
type: It,
|
|
11937
11939
|
payload: {
|
|
@@ -11980,7 +11982,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
11980
11982
|
x.current = `Only ${Oe} files are allowed.`, c(!0);
|
|
11981
11983
|
return;
|
|
11982
11984
|
}
|
|
11983
|
-
const St = await
|
|
11985
|
+
const St = await FS(kt);
|
|
11984
11986
|
if (eu(St) > ko) {
|
|
11985
11987
|
x.current = `Total file size exceeds the limit of ${or(
|
|
11986
11988
|
ko
|
|
@@ -12019,7 +12021,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12019
12021
|
let ue;
|
|
12020
12022
|
if (s && s.length > 0) {
|
|
12021
12023
|
const kt = Array.from(s).map(
|
|
12022
|
-
(St) =>
|
|
12024
|
+
(St) => ES(St)
|
|
12023
12025
|
), Et = new DataTransfer();
|
|
12024
12026
|
kt.forEach((St) => Et.items.add(St)), ue = Et.files;
|
|
12025
12027
|
}
|
|
@@ -12064,7 +12066,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12064
12066
|
const Y = Date.now() - j.current < 600;
|
|
12065
12067
|
!me && !Y && Yn(R), R.current.focus();
|
|
12066
12068
|
}
|
|
12067
|
-
},
|
|
12069
|
+
}, ZS)) : p === !1 && !me && (Yn(R), !We() && R.current && R.current.focus());
|
|
12068
12070
|
}, [v, p, me]), U(() => {
|
|
12069
12071
|
Date.now() - j.current < 200 && me && requestAnimationFrame(() => {
|
|
12070
12072
|
Kt();
|
|
@@ -12101,7 +12103,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12101
12103
|
translate: "no",
|
|
12102
12104
|
onChange: uu,
|
|
12103
12105
|
value: me,
|
|
12104
|
-
onKeyDown:
|
|
12106
|
+
onKeyDown: sy([
|
|
12105
12107
|
[l ? "enter" : "mod+Enter", us]
|
|
12106
12108
|
]),
|
|
12107
12109
|
className: q.textArea,
|
|
@@ -12121,11 +12123,11 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12121
12123
|
}
|
|
12122
12124
|
)
|
|
12123
12125
|
] }),
|
|
12124
|
-
/* @__PURE__ */ g(
|
|
12126
|
+
/* @__PURE__ */ g(RS, { files: s, clearFile: Mt }),
|
|
12125
12127
|
/* @__PURE__ */ F("div", { className: "p-2 flex items-center", children: [
|
|
12126
|
-
/* @__PURE__ */ g(
|
|
12128
|
+
/* @__PURE__ */ g(gS, { className: "order-7 ml-auto" }),
|
|
12127
12129
|
/* @__PURE__ */ g(
|
|
12128
|
-
|
|
12130
|
+
hb,
|
|
12129
12131
|
{
|
|
12130
12132
|
className: M("order-1 sm:mr-2", {
|
|
12131
12133
|
"mr-3": $,
|
|
@@ -12134,7 +12136,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12134
12136
|
}
|
|
12135
12137
|
),
|
|
12136
12138
|
/* @__PURE__ */ g(
|
|
12137
|
-
|
|
12139
|
+
mS,
|
|
12138
12140
|
{
|
|
12139
12141
|
className: M("order-2 sm:mr-2", {
|
|
12140
12142
|
"mr-3": $,
|
|
@@ -12143,7 +12145,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12143
12145
|
}
|
|
12144
12146
|
),
|
|
12145
12147
|
n && /* @__PURE__ */ g(
|
|
12146
|
-
|
|
12148
|
+
mb,
|
|
12147
12149
|
{
|
|
12148
12150
|
className: M("order-3 sm:mr-2", {
|
|
12149
12151
|
"mr-3": $,
|
|
@@ -12152,9 +12154,9 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12152
12154
|
onClick: Lr
|
|
12153
12155
|
}
|
|
12154
12156
|
),
|
|
12155
|
-
$ && /* @__PURE__ */ g(
|
|
12157
|
+
$ && /* @__PURE__ */ g(hS, { className: M("order-4 mr-3 sm:mr-2") }),
|
|
12156
12158
|
/* @__PURE__ */ g(
|
|
12157
|
-
|
|
12159
|
+
jb,
|
|
12158
12160
|
{
|
|
12159
12161
|
className: M("order-5 mr-3 sm:mr-2", {
|
|
12160
12162
|
"mr-3": $,
|
|
@@ -12165,7 +12167,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12165
12167
|
] })
|
|
12166
12168
|
] }) })
|
|
12167
12169
|
] });
|
|
12168
|
-
}, Jn = "--sassy-bottom",
|
|
12170
|
+
}, Jn = "--sassy-bottom", YS = ({ isComponent: e }) => {
|
|
12169
12171
|
const {
|
|
12170
12172
|
state: { loading: t, streaming: n, restoring: r }
|
|
12171
12173
|
} = de(Le), {
|
|
@@ -12173,7 +12175,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12173
12175
|
dispatch: a
|
|
12174
12176
|
} = de(_n), [c] = B(
|
|
12175
12177
|
() => gs[Math.floor(Math.random() * gs.length)]
|
|
12176
|
-
), l = Ae(() => We(), []), d = Ae(() => Gd(), []), { messages: u } = bt(), [h, m] = ai(), [p, f] = Ke(), v =
|
|
12178
|
+
), l = Ae(() => We(), []), d = Ae(() => Gd(), []), { messages: u } = bt(), [h, m] = ai(), [p, f] = Ke(), v = ny(d), { height: b } = qv(), { height: _ } = Qv(), y = d ? 0 : b - _, E = Ae(() => {
|
|
12177
12179
|
const S = l ? _u : d ? Eu : Qa;
|
|
12178
12180
|
return l ? y > 70 && y < 500 ? Zr / 2 : S : d ? v ? Zr : S : y > 0 && y < 100 ? Zr : S;
|
|
12179
12181
|
}, [y, l, d, v]);
|
|
@@ -12238,13 +12240,13 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12238
12240
|
className: M(
|
|
12239
12241
|
"border-transparent mt-5",
|
|
12240
12242
|
"bottom-(--sassy-bottom)",
|
|
12241
|
-
|
|
12243
|
+
ey,
|
|
12242
12244
|
{
|
|
12243
12245
|
"transition-all duration-300 ease-in-out": d
|
|
12244
12246
|
}
|
|
12245
12247
|
),
|
|
12246
12248
|
children: /* @__PURE__ */ F("div", { className: fo({ fullScreen: i }), children: [
|
|
12247
|
-
/* @__PURE__ */ g(
|
|
12249
|
+
/* @__PURE__ */ g(GS, {}),
|
|
12248
12250
|
/* @__PURE__ */ g(
|
|
12249
12251
|
"div",
|
|
12250
12252
|
{
|
|
@@ -12274,14 +12276,14 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12274
12276
|
label: "Google Gemini",
|
|
12275
12277
|
icon: pd
|
|
12276
12278
|
}
|
|
12277
|
-
],
|
|
12279
|
+
], JS = ({ className: e }) => {
|
|
12278
12280
|
const {
|
|
12279
12281
|
dispatch: t,
|
|
12280
12282
|
state: { privateChat: n },
|
|
12281
12283
|
setChatId: r,
|
|
12282
12284
|
setInitialMessages: o
|
|
12283
12285
|
} = de(Le), { getAccessToken: s, user: i } = $e(), { status: a } = bt(), { allowedModels: c, status: l } = Do(), [d, u] = Ke(), [h, m] = B(!1), p = J(() => {
|
|
12284
|
-
h || (
|
|
12286
|
+
h || (gb(), m(!0));
|
|
12285
12287
|
}, [h]), {
|
|
12286
12288
|
isSuccess: f,
|
|
12287
12289
|
refetch: v,
|
|
@@ -12434,73 +12436,73 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12434
12436
|
}
|
|
12435
12437
|
)
|
|
12436
12438
|
] }) : /* @__PURE__ */ g("div", { className: e, children: D });
|
|
12437
|
-
},
|
|
12439
|
+
}, KS = yt(
|
|
12438
12440
|
() => import(
|
|
12439
12441
|
/* webpackChunkName: "modal-chunk" */
|
|
12440
|
-
"./ProfileEntry.
|
|
12442
|
+
"./ProfileEntry.BMpJic5U.js"
|
|
12441
12443
|
).then((e) => ({
|
|
12442
12444
|
default: e.Profile
|
|
12443
12445
|
}))
|
|
12444
|
-
),
|
|
12446
|
+
), XS = yt(
|
|
12445
12447
|
() => import(
|
|
12446
12448
|
/* webpackChunkName: "modal-chunk" */
|
|
12447
|
-
"./SettingsEntry.
|
|
12449
|
+
"./SettingsEntry.B8xGufV0.js"
|
|
12448
12450
|
).then((e) => ({
|
|
12449
12451
|
default: e.SettingsPanel
|
|
12450
12452
|
}))
|
|
12451
|
-
),
|
|
12453
|
+
), qS = yt(
|
|
12452
12454
|
() => import(
|
|
12453
12455
|
/* webpackChunkName: "modal-chunk" */
|
|
12454
|
-
"./HistoryEntry.
|
|
12456
|
+
"./HistoryEntry.sZ_AMeUu.js"
|
|
12455
12457
|
).then((e) => ({
|
|
12456
12458
|
default: e.HistoryPanel
|
|
12457
12459
|
}))
|
|
12458
|
-
),
|
|
12460
|
+
), QS = yt(
|
|
12459
12461
|
() => import(
|
|
12460
12462
|
/* webpackChunkName: "modal-chunk" */
|
|
12461
|
-
"./AboutEntry.
|
|
12463
|
+
"./AboutEntry.8kXGiBKr.js"
|
|
12462
12464
|
).then((e) => ({ default: e.About }))
|
|
12463
|
-
),
|
|
12465
|
+
), e0 = yt(
|
|
12464
12466
|
() => import(
|
|
12465
12467
|
/* webpackChunkName: "modal-chunk" */
|
|
12466
|
-
"./UsageEntry.
|
|
12468
|
+
"./UsageEntry.B1zVYUBb.js"
|
|
12467
12469
|
).then((e) => ({ default: e.Usage }))
|
|
12468
|
-
),
|
|
12470
|
+
), t0 = yt(
|
|
12469
12471
|
() => import(
|
|
12470
12472
|
/* webpackChunkName: "modal-chunk" */
|
|
12471
|
-
"./MemoriesEntry.
|
|
12473
|
+
"./MemoriesEntry.CpxdE30v.js"
|
|
12472
12474
|
).then((e) => ({ default: e.default }))
|
|
12473
|
-
),
|
|
12475
|
+
), n0 = ({
|
|
12474
12476
|
open: e,
|
|
12475
12477
|
onOpenChange: t
|
|
12476
12478
|
}) => {
|
|
12477
12479
|
const { user: n } = $e();
|
|
12478
12480
|
return /* @__PURE__ */ g(
|
|
12479
|
-
|
|
12481
|
+
t0,
|
|
12480
12482
|
{
|
|
12481
12483
|
open: e,
|
|
12482
12484
|
onOpenChange: t,
|
|
12483
12485
|
user: n?.username
|
|
12484
12486
|
}
|
|
12485
12487
|
);
|
|
12486
|
-
},
|
|
12488
|
+
}, r0 = ({ type: e, open: t, onOpenChange: n }) => t ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("div", {}), children: (() => {
|
|
12487
12489
|
switch (e) {
|
|
12488
12490
|
case "profile":
|
|
12489
|
-
return /* @__PURE__ */ g(JS, { open: t, onOpenChange: n });
|
|
12490
|
-
case "settings":
|
|
12491
12491
|
return /* @__PURE__ */ g(KS, { open: t, onOpenChange: n });
|
|
12492
|
-
case "
|
|
12492
|
+
case "settings":
|
|
12493
12493
|
return /* @__PURE__ */ g(XS, { open: t, onOpenChange: n });
|
|
12494
|
-
case "
|
|
12494
|
+
case "history":
|
|
12495
12495
|
return /* @__PURE__ */ g(qS, { open: t, onOpenChange: n });
|
|
12496
|
-
case "
|
|
12496
|
+
case "about":
|
|
12497
12497
|
return /* @__PURE__ */ g(QS, { open: t, onOpenChange: n });
|
|
12498
|
+
case "usage":
|
|
12499
|
+
return /* @__PURE__ */ g(e0, { open: t, onOpenChange: n });
|
|
12498
12500
|
case "memories":
|
|
12499
|
-
return /* @__PURE__ */ g(
|
|
12501
|
+
return /* @__PURE__ */ g(n0, { open: t, onOpenChange: n });
|
|
12500
12502
|
default:
|
|
12501
12503
|
return null;
|
|
12502
12504
|
}
|
|
12503
|
-
})() }) : null,
|
|
12505
|
+
})() }) : null, o0 = ({
|
|
12504
12506
|
isComponent: e = !1
|
|
12505
12507
|
}) => {
|
|
12506
12508
|
const {
|
|
@@ -12516,23 +12518,23 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12516
12518
|
p || Promise.all([
|
|
12517
12519
|
import(
|
|
12518
12520
|
/* webpackChunkName: "modal-chunk" */
|
|
12519
|
-
"./ProfileEntry.
|
|
12521
|
+
"./ProfileEntry.BMpJic5U.js"
|
|
12520
12522
|
),
|
|
12521
12523
|
import(
|
|
12522
12524
|
/* webpackChunkName: "modal-chunk" */
|
|
12523
|
-
"./SettingsEntry.
|
|
12525
|
+
"./SettingsEntry.B8xGufV0.js"
|
|
12524
12526
|
),
|
|
12525
12527
|
import(
|
|
12526
12528
|
/* webpackChunkName: "modal-chunk" */
|
|
12527
|
-
"./HistoryEntry.
|
|
12529
|
+
"./HistoryEntry.sZ_AMeUu.js"
|
|
12528
12530
|
),
|
|
12529
12531
|
import(
|
|
12530
12532
|
/* webpackChunkName: "modal-chunk" */
|
|
12531
|
-
"./AboutEntry.
|
|
12533
|
+
"./AboutEntry.8kXGiBKr.js"
|
|
12532
12534
|
),
|
|
12533
12535
|
import(
|
|
12534
12536
|
/* webpackChunkName: "modal-chunk" */
|
|
12535
|
-
"./UsageEntry.
|
|
12537
|
+
"./UsageEntry.B1zVYUBb.js"
|
|
12536
12538
|
)
|
|
12537
12539
|
]).finally(() => f(!0));
|
|
12538
12540
|
}, [p]), E = J((k) => {
|
|
@@ -12579,7 +12581,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12579
12581
|
}
|
|
12580
12582
|
),
|
|
12581
12583
|
/* @__PURE__ */ g(
|
|
12582
|
-
|
|
12584
|
+
r0,
|
|
12583
12585
|
{
|
|
12584
12586
|
type: d,
|
|
12585
12587
|
open: d !== null,
|
|
@@ -12594,7 +12596,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12594
12596
|
"bg-surface-darker/95 dark:bg-surface-darker": t
|
|
12595
12597
|
}),
|
|
12596
12598
|
children: /* @__PURE__ */ F("div", { className: "flex flex-wrap justify-between items-center", children: [
|
|
12597
|
-
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(
|
|
12599
|
+
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(JS, { className: "mr-2" }) }),
|
|
12598
12600
|
/* @__PURE__ */ g("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ g(
|
|
12599
12601
|
Rr,
|
|
12600
12602
|
{
|
|
@@ -12689,7 +12691,7 @@ const vS = [".png", ".jpg", ".jpeg", ".webp"], yS = [".pdf", ".txt"], bS = [
|
|
|
12689
12691
|
)
|
|
12690
12692
|
] });
|
|
12691
12693
|
};
|
|
12692
|
-
function
|
|
12694
|
+
function s0() {
|
|
12693
12695
|
const e = V(null), [t, n] = B(!1);
|
|
12694
12696
|
return {
|
|
12695
12697
|
ref: J((o) => {
|
|
@@ -12698,7 +12700,7 @@ function o0() {
|
|
|
12698
12700
|
inViewport: t
|
|
12699
12701
|
};
|
|
12700
12702
|
}
|
|
12701
|
-
const
|
|
12703
|
+
const a0 = ({
|
|
12702
12704
|
show: e,
|
|
12703
12705
|
bottom: t,
|
|
12704
12706
|
onClick: n,
|
|
@@ -12708,7 +12710,7 @@ const s0 = ({
|
|
|
12708
12710
|
{
|
|
12709
12711
|
style: { bottom: `${t}px` },
|
|
12710
12712
|
className: r || M(
|
|
12711
|
-
|
|
12713
|
+
ty,
|
|
12712
12714
|
"fixed left-1/2 transform -translate-x-1/2 isolate",
|
|
12713
12715
|
"transition-all duration-300 ease-in-out"
|
|
12714
12716
|
),
|
|
@@ -12746,10 +12748,10 @@ const s0 = ({
|
|
|
12746
12748
|
}
|
|
12747
12749
|
) : null;
|
|
12748
12750
|
const sr = "av-bubble";
|
|
12749
|
-
const
|
|
12751
|
+
const i0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
|
|
12750
12752
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
|
12751
12753
|
"lg:max-w-3xl": e === "left" && !t
|
|
12752
|
-
}),
|
|
12754
|
+
}), c0 = ({ kind: e, gradient: t }) => t ? t === "light" ? M({
|
|
12753
12755
|
"bg-linear-to-b from-surface-light/80 to-surface-light dark:from-surface-dark/80 dark:to-surface-dark": e === "left",
|
|
12754
12756
|
"bg-linear-to-b from-surface-accent/80 to-surface-accent": e === "right"
|
|
12755
12757
|
}) : t === "medium" ? M({
|
|
@@ -12761,9 +12763,9 @@ const a0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
|
|
|
12761
12763
|
}) : M({
|
|
12762
12764
|
"bg-surface-light dark:bg-surface-dark": e === "left",
|
|
12763
12765
|
"bg-surface-accent": e === "right"
|
|
12764
|
-
}),
|
|
12766
|
+
}), l0 = ({ kind: e }) => M("prose prose-dark dark:prose-lighter", "prose-blockquote:my-1", "prose-ol:my-1 prose-ul:my-1", {
|
|
12765
12767
|
"text-copy-lighter": e === "right"
|
|
12766
|
-
}),
|
|
12768
|
+
}), u0 = ({ kind: e, tail: t }) => {
|
|
12767
12769
|
if (t)
|
|
12768
12770
|
return M(`${sr}-${e}-tail`, "rounded-3xl", "relative", "before:content-['']", "before:w-3", "before:h-2", "before:absolute", "before:bottom-0", {
|
|
12769
12771
|
"last-bubble-right:before:right-0.5 last-bubble-right:before:border-l-8 last-bubble-right:before:border-l-surface-accent last-bubble-right:before:rounded-bl-[100%]": e === "right",
|
|
@@ -12774,18 +12776,18 @@ const a0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
|
|
|
12774
12776
|
"rounded-tr-xl": e === "left",
|
|
12775
12777
|
"rounded-tl-xl": e === "right"
|
|
12776
12778
|
});
|
|
12777
|
-
},
|
|
12779
|
+
}, d0 = ({ kind: e, className: t, contentClassName: n, footerClassName: r, noMaxWidth: o, tail: s, gradient: i }) => {
|
|
12778
12780
|
const a = M(sr, `${sr}-${e}`, "flex items-start", {
|
|
12779
12781
|
"flex-row-reverse": e === "right"
|
|
12780
|
-
}, t), c = M(`${sr}-content`, "flex flex-col empty:hidden",
|
|
12782
|
+
}, t), c = M(`${sr}-content`, "flex flex-col empty:hidden", i0({
|
|
12781
12783
|
kind: e,
|
|
12782
12784
|
noMaxWidth: o
|
|
12783
|
-
}),
|
|
12785
|
+
}), l0({
|
|
12784
12786
|
kind: e
|
|
12785
|
-
}),
|
|
12787
|
+
}), c0({
|
|
12786
12788
|
kind: e,
|
|
12787
12789
|
gradient: i
|
|
12788
|
-
}),
|
|
12790
|
+
}), u0({
|
|
12789
12791
|
kind: e,
|
|
12790
12792
|
tail: s
|
|
12791
12793
|
}), n), l = M("pr-2 pt-1 text-end text-xs text-copy-light", r), d = M("flex flex-col-reverse sm:flex-row", {
|
|
@@ -12801,8 +12803,8 @@ const a0 = ({ kind: e, noMaxWidth: t }) => M("px-4 py-2", {
|
|
|
12801
12803
|
action: d
|
|
12802
12804
|
};
|
|
12803
12805
|
};
|
|
12804
|
-
const
|
|
12805
|
-
const u =
|
|
12806
|
+
const f0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEmpty === !0, p0 = (e) => typeof e == "object" && e !== null && "key" in e && "value" in e, su = ({ children: e, kind: t = "left", className: n, contentClassName: r, footerClassName: o, footer: s, rawFooter: i, action: a, noMaxWidth: c = !1, tail: l = !1, gradient: d }) => {
|
|
12807
|
+
const u = d0({
|
|
12806
12808
|
kind: t,
|
|
12807
12809
|
className: n,
|
|
12808
12810
|
contentClassName: r,
|
|
@@ -12820,7 +12822,7 @@ const d0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEm
|
|
|
12820
12822
|
className: u.main,
|
|
12821
12823
|
children: e
|
|
12822
12824
|
}),
|
|
12823
|
-
s && s.map((h, m) =>
|
|
12825
|
+
s && s.map((h, m) => f0(h) ? /* @__PURE__ */ g("div", {
|
|
12824
12826
|
className: "prose-p:m-0",
|
|
12825
12827
|
children: /* @__PURE__ */ g("p", {
|
|
12826
12828
|
className: u.footer,
|
|
@@ -12830,7 +12832,7 @@ const d0 = (e) => typeof e == "object" && e !== null && "isEmpty" in e && e.isEm
|
|
|
12830
12832
|
children: " "
|
|
12831
12833
|
})
|
|
12832
12834
|
})
|
|
12833
|
-
}, `footer-empty-${m}`) :
|
|
12835
|
+
}, `footer-empty-${m}`) : p0(h) ? /* @__PURE__ */ g("div", {
|
|
12834
12836
|
className: "prose-p:m-0",
|
|
12835
12837
|
children: /* @__PURE__ */ F("p", {
|
|
12836
12838
|
className: u.footer,
|
|
@@ -12903,17 +12905,17 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12903
12905
|
})
|
|
12904
12906
|
]
|
|
12905
12907
|
});
|
|
12906
|
-
}, Ya = 1,
|
|
12908
|
+
}, Ya = 1, m0 = 150, h0 = yt(
|
|
12907
12909
|
() => import(
|
|
12908
12910
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
12909
|
-
"./ChatBubbleAssistant.
|
|
12911
|
+
"./ChatBubbleAssistant.Cn1keoow.js"
|
|
12910
12912
|
)
|
|
12911
|
-
),
|
|
12913
|
+
), g0 = yt(
|
|
12912
12914
|
() => import(
|
|
12913
12915
|
/* webpackChunkName: "LazyMessageUser" */
|
|
12914
|
-
"./ChatBubbleUser.
|
|
12916
|
+
"./ChatBubbleUser.DUizsIIv.js"
|
|
12915
12917
|
)
|
|
12916
|
-
),
|
|
12918
|
+
), v0 = Ze.memo(
|
|
12917
12919
|
({
|
|
12918
12920
|
role: e,
|
|
12919
12921
|
content: t,
|
|
@@ -12929,7 +12931,7 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12929
12931
|
);
|
|
12930
12932
|
return U(() => {
|
|
12931
12933
|
if (o && c && t && t.trim().length >= Ya) {
|
|
12932
|
-
const m = Date.now() - d.current, p =
|
|
12934
|
+
const m = Date.now() - d.current, p = m0 - m;
|
|
12933
12935
|
if (p > 0) {
|
|
12934
12936
|
const f = setTimeout(
|
|
12935
12937
|
() => l(!1),
|
|
@@ -12939,8 +12941,8 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12939
12941
|
}
|
|
12940
12942
|
l(!1);
|
|
12941
12943
|
}
|
|
12942
|
-
}, [t, c, o]), e === po && t ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(
|
|
12943
|
-
|
|
12944
|
+
}, [t, c, o]), e === po && t ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(g0, { content: t }) }) : e === an && o && (s === "submitted" || s === "streaming") && c ? /* @__PURE__ */ g(su, { tail: !0, children: /* @__PURE__ */ g(au, { type: "dots" }) }) : e === an && t && t.trim().length >= Ya ? /* @__PURE__ */ g(mo, { fallback: /* @__PURE__ */ g("span", {}), children: /* @__PURE__ */ g(
|
|
12945
|
+
h0,
|
|
12944
12946
|
{
|
|
12945
12947
|
role: e,
|
|
12946
12948
|
content: t,
|
|
@@ -12953,7 +12955,7 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12953
12955
|
}
|
|
12954
12956
|
) }) : null;
|
|
12955
12957
|
}
|
|
12956
|
-
),
|
|
12958
|
+
), y0 = (e) => {
|
|
12957
12959
|
if (e.parts && Array.isArray(e.parts)) {
|
|
12958
12960
|
const t = e.parts.filter((n) => n.type === "text").map((n) => n.text).filter(Boolean);
|
|
12959
12961
|
return t.length > 0 ? t.join(`
|
|
@@ -12962,7 +12964,7 @@ const Ga = "av-spinner", au = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12962
12964
|
if ("content" in e && typeof e.content == "string")
|
|
12963
12965
|
return e.content;
|
|
12964
12966
|
};
|
|
12965
|
-
function
|
|
12967
|
+
function b0(e) {
|
|
12966
12968
|
const t = e.metadata;
|
|
12967
12969
|
if (t?.model)
|
|
12968
12970
|
return { model: String(t.model) };
|
|
@@ -12986,11 +12988,11 @@ const iu = Ze.forwardRef((e, t) => {
|
|
|
12986
12988
|
return n && n.length > 0 ? /* @__PURE__ */ F("div", { className: "space-y-6 mt-2 @container", children: [
|
|
12987
12989
|
n?.map((c, l) => {
|
|
12988
12990
|
let d;
|
|
12989
|
-
const u = `${l}-${c.role}`, h =
|
|
12991
|
+
const u = `${l}-${c.role}`, h = y0(c), m = b0(c), p = c.role === an && l === o, f = l === a;
|
|
12990
12992
|
return /* @__PURE__ */ F(Ze.Fragment, { children: [
|
|
12991
12993
|
f && /* @__PURE__ */ g("div", { ref: t, className: "new-message-marker" }),
|
|
12992
12994
|
/* @__PURE__ */ g(
|
|
12993
|
-
|
|
12995
|
+
v0,
|
|
12994
12996
|
{
|
|
12995
12997
|
role: c.role,
|
|
12996
12998
|
content: h,
|
|
@@ -13008,8 +13010,8 @@ const iu = Ze.forwardRef((e, t) => {
|
|
|
13008
13010
|
] }) : null;
|
|
13009
13011
|
});
|
|
13010
13012
|
iu.displayName = "MessagesList";
|
|
13011
|
-
const
|
|
13012
|
-
const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } =
|
|
13013
|
+
const w0 = () => {
|
|
13014
|
+
const { isAuthenticated: e } = $e(), { ref: t, inViewport: n } = s0(), r = V(null), o = V(null), s = V(null), i = V(null), [a, c] = B(0), {
|
|
13013
13015
|
state: { footerPosition: l, footerHeight: d, footerOffset: u, oledMode: h }
|
|
13014
13016
|
} = de(_n), {
|
|
13015
13017
|
state: { loading: m, streaming: p, scrollToBottomTrigger: f }
|
|
@@ -13092,7 +13094,7 @@ const b0 = () => {
|
|
|
13092
13094
|
)
|
|
13093
13095
|
] }),
|
|
13094
13096
|
/* @__PURE__ */ g(
|
|
13095
|
-
|
|
13097
|
+
a0,
|
|
13096
13098
|
{
|
|
13097
13099
|
show: !n && l === on && !m && !p,
|
|
13098
13100
|
bottom: b.current,
|
|
@@ -13176,11 +13178,12 @@ function cu({
|
|
|
13176
13178
|
username: n?.username
|
|
13177
13179
|
}
|
|
13178
13180
|
}), [n?.username]);
|
|
13179
|
-
return
|
|
13181
|
+
return Xv({
|
|
13180
13182
|
currentChatId: c,
|
|
13181
13183
|
setChatId: l,
|
|
13182
13184
|
setInitialMessages: u,
|
|
13183
|
-
dispatchChat: R
|
|
13185
|
+
dispatchChat: R,
|
|
13186
|
+
lastResetTimestamp: O.lastResetTimestamp
|
|
13184
13187
|
}), U(() => {
|
|
13185
13188
|
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
|
13186
13189
|
}, []), U(() => {
|
|
@@ -13271,7 +13274,7 @@ function cu({
|
|
|
13271
13274
|
extraClass: S,
|
|
13272
13275
|
fullScreen: b
|
|
13273
13276
|
}),
|
|
13274
|
-
children: /* @__PURE__ */ g(
|
|
13277
|
+
children: /* @__PURE__ */ g(o0, { isComponent: e })
|
|
13275
13278
|
}
|
|
13276
13279
|
),
|
|
13277
13280
|
/* @__PURE__ */ g(
|
|
@@ -13281,10 +13284,10 @@ function cu({
|
|
|
13281
13284
|
style: {
|
|
13282
13285
|
height: o
|
|
13283
13286
|
},
|
|
13284
|
-
children: /* @__PURE__ */ g(
|
|
13287
|
+
children: /* @__PURE__ */ g(w0, {})
|
|
13285
13288
|
}
|
|
13286
13289
|
),
|
|
13287
|
-
/* @__PURE__ */ g(
|
|
13290
|
+
/* @__PURE__ */ g(YS, { isComponent: e })
|
|
13288
13291
|
]
|
|
13289
13292
|
}
|
|
13290
13293
|
)
|
|
@@ -13296,12 +13299,12 @@ function cu({
|
|
|
13296
13299
|
);
|
|
13297
13300
|
}
|
|
13298
13301
|
cu.displayName = "App";
|
|
13299
|
-
const
|
|
13302
|
+
const D0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: cu }, Symbol.toStringTag, { value: "Module" }));
|
|
13300
13303
|
export {
|
|
13301
|
-
|
|
13304
|
+
D0 as App,
|
|
13302
13305
|
su as Bubble,
|
|
13303
|
-
|
|
13304
|
-
|
|
13306
|
+
Ub as ButtonCancel,
|
|
13307
|
+
a0 as ButtonScroll,
|
|
13305
13308
|
Vt as CHAT_RESET,
|
|
13306
13309
|
zv as CHAT_SCROLL_TO_BOTTOM,
|
|
13307
13310
|
pn as CHAT_SET_ATTACHMENTS,
|
|
@@ -13312,22 +13315,22 @@ export {
|
|
|
13312
13315
|
Me as DropdownMenuItem,
|
|
13313
13316
|
ql as DropdownMenuSub,
|
|
13314
13317
|
la as LazyToastContainerWrapper,
|
|
13315
|
-
|
|
13318
|
+
Ib as Panel,
|
|
13316
13319
|
Rr as ResponsiveTooltip,
|
|
13317
|
-
|
|
13318
|
-
|
|
13320
|
+
Zb as Toggle,
|
|
13321
|
+
O0 as debounce,
|
|
13319
13322
|
rv as getDefaultExportFromCjs,
|
|
13320
13323
|
Bt as isProbablyMobile,
|
|
13321
|
-
|
|
13322
|
-
|
|
13323
|
-
|
|
13324
|
-
|
|
13325
|
-
|
|
13324
|
+
P0 as numberFormatter,
|
|
13325
|
+
M0 as obfuscate,
|
|
13326
|
+
N0 as pluralize,
|
|
13327
|
+
gb as preloadToast,
|
|
13328
|
+
vb as showErrorToast,
|
|
13326
13329
|
Ea as showSuccessToast,
|
|
13327
|
-
|
|
13330
|
+
k0 as unObfuscate,
|
|
13328
13331
|
bt as useAiChat,
|
|
13329
13332
|
hr as useCapability,
|
|
13330
|
-
|
|
13333
|
+
s0 as useInViewport,
|
|
13331
13334
|
et as useLocalStorage,
|
|
13332
13335
|
pt as v4
|
|
13333
13336
|
};
|