@versini/sassysaint 8.102.0 → 8.104.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.BjWVLIQD.js → AboutChangelog.BDsTnpdn.js} +2 -2
- package/dist/chunks/{AboutEntry.DtG0q0tF.js → AboutEntry.C3Y_6vyK.js} +7 -7
- package/dist/chunks/{App.BJtvqe9f.js → App.mxgwgTJI.js} +370 -344
- package/dist/chunks/{Chart.JSsHXdZa.js → Chart.Bb8GekRa.js} +3 -3
- package/dist/chunks/{ChatBubbleAssistant.tmUyE8kG.js → ChatBubbleAssistant.BOfIJ2mi.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.CY8XWo-m.js → ChatBubbleUser.Cf0Aas2V.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.C83D9Jpn.js → ChatHistoryTable.DMg_BeJQ.js} +4 -4
- package/dist/chunks/{HistoryEntry.CdEgciAH.js → HistoryEntry.CsubfQOb.js} +6 -6
- package/dist/chunks/{LoginEntry.DiJsyzQY.js → LoginEntry.BAlXB81G.js} +4 -4
- package/dist/chunks/{LogoEntry.B8J4DeEF.js → LogoEntry.Bw0P7g4x.js} +1 -1
- package/dist/chunks/{MemoriesEntry.B45O88uM.js → MemoriesEntry.Cs7R8WdN.js} +5 -5
- package/dist/chunks/{ProfileEntry.CpLsxuQA.js → ProfileEntry.TGFPHyLG.js} +4 -4
- package/dist/chunks/{SettingsEntry.oesgXUco.js → SettingsEntry.Cwlr6D0l.js} +5 -5
- package/dist/chunks/{Table.DWXJUUxE.js → Table.CC1z7H60.js} +1 -1
- package/dist/chunks/{UsageEntry.Cx9GmvTk.js → UsageEntry.Ckb1qHWi.js} +5 -5
- package/dist/chunks/{index.CLrLzvGb.js → index.B3jB5nr2.js} +2 -2
- package/dist/chunks/{index.BiDUG1NB.js → index.BN198o-_.js} +1 -1
- package/dist/chunks/{index.CCHlMhtx.js → index.BZ6mPn7m.js} +1 -1
- package/dist/chunks/{index.DRIMKMdl.js → index.BeB9u080.js} +1 -1
- package/dist/chunks/{index.DlZGeZEa.js → index.BtID-o5p.js} +3 -3
- package/dist/chunks/{index.B9Ppyjsl.js → index.CCXo6Mk7.js} +1 -1
- package/dist/chunks/{index.Do9wNVu3.js → index.DRjDB9FH.js} +1 -1
- package/dist/chunks/{index.repkxdHI.js → index.DlAFSWVf.js} +2 -2
- package/dist/chunks/{index.DyQuKlln.js → index.Q4OQSjm9.js} +1 -1
- package/dist/chunks/{index.D5Yvr-PI.js → index.dweb7WDw.js} +1 -1
- package/dist/chunks/{useMarkdown.C4_Gnttl.js → useMarkdown.DL4pJ9IY.js} +7 -7
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as g, jsxs as
|
|
2
|
-
import { ACTION_SORT as su, ACTION_SEARCH as au, ACTION_RESET_PROMPT as Fa, ACTION_TOGGLE_PROMPT as Ua, LOCAL_STORAGE_PREFIX as je, LOCAL_STORAGE_CHAT_ID as Hn, n as Le, isDev as iu, isPWAMode as ja, isTauri as sn, useChat as cu, isProbablyiPhone as
|
|
1
|
+
import { jsx as g, jsxs as D, Fragment as Rt } from "react/jsx-runtime";
|
|
2
|
+
import { ACTION_SORT as su, ACTION_SEARCH as au, ACTION_RESET_PROMPT as Fa, ACTION_TOGGLE_PROMPT as Ua, LOCAL_STORAGE_PREFIX as je, LOCAL_STORAGE_CHAT_ID as Hn, n as Le, isDev as iu, isPWAMode as ja, isTauri as sn, useChat as cu, isProbablyiPhone as Ve, DEFAULT_ICON_ACTION_SIZE as tt, useUserPreferences as yt, serverUrl as Ba, useEntitlements as Oo, useSaveChat as lu, LOCAL_STORAGE_PRIVATE_DISCLOSURE as uu, w as tr, LOCAL_STORAGE_REASONING_DISCLOSURE as du, PROMPT_EDITABLE_AREA_CLASSNAME as fu, PROMPT_CLASSNAME as pu, useChatsHistory as mu, j as Va, ERROR_MESSAGE as hu, o as an, U as gu, isProbablyiPad as vu, INPUT_BOTTOM_OFFSET_IPHONE as yu, INPUT_BOTTOM_OFFSET_IPAD as bu, INPUT_BOTTOM_OFFSET as Ha, INPUT_BOTTOM_OFFSET_EXTRA as Lr, getLayoutPaddingClass as io, canEvaluateModels as ls, k as wu, a as _u, i as Eu, s as Su, x as Iu, p as $r, setNewProvider as us, useQueryClient as Cu, n$1 as Wa, useServerCapabilities as Tu, getMessageContaintWrapperClass as xu, UI_FOOTER_BUFFER as Ga, UI_BUTTON_SCROLL_BUFFER as Au, isProbablyMobile as Ru, UI_DEFAULT_MAIN_HEIGHT as ds, e as Ou, applyOledMode as Nu, UI_DEFAULT_MAIN_HEIGHT_IPHONE as ku, y as fs, v as Pu, LOCAL_STORAGE_SORT as Mu, LOCAL_STORAGE_SEARCH as Du, LOCAL_STORAGE_OLED_MODE as Lu, LOCAL_STORAGE_FULL_SCREEN as $u, LOCAL_STORAGE_SORT_TIMESTAMP as zu, LOCAL_STORAGE_SORT_TOKEN_USAGE as Zu } from "./index.DlAFSWVf.js";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import it, { useSyncExternalStore as Wn, useCallback as B, useEffect as F, useRef as G, useState as V, createContext as Fu, useContext as ue, useMemo as Pe, useId as ps, useLayoutEffect as No, cloneElement as Uu, Suspense as nr, lazy as ot, useReducer as On } from "react";
|
|
5
|
-
import { e as nn, ChatContext as $e, useTheme as
|
|
5
|
+
import { e as nn, ChatContext as $e, useTheme as Ke, ButtonIcon as st, IconAddLight as ju, IconCloseLight as Bu, IconEditLight as Vu, Button as Ka, L as co, j as Ut, IconLockedLight as Hu, IconUnlockedLight as Wu, IconNext as Gu, IconSelected as Ku, IconUnSelected as Yu, PromptsContext as ko, IconBookSparklesLight as Ju, IconRewrite as Xu, IconProofread as qu, IconMagic as Qu, IconLightBulbLight as ed, IconSendLight as td, INPUT_PLACEHOLDER_TEXT_IN_SESSION as Ya, 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 yn, HistoryContext as Ja, useUniqueId as ld, CLIPBOARD_PROMPT as ms, FOOTER_DISCLAIMERS as hs, useResizeObserver as Xa, APP_SET_FOOTER_HEIGHT as ud, FOOTER_TOP as lo, FOOTER_BOTTOM as rn, APP_SET_FOOTER_POSITION as zr, IconOpenAI as dd, IconAnthropic as fd, IconGoogleGemini as pd, TOAST_PROVIDER_CHANGED as gs, LOG_OUT as vs, 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 Id, APP_SET_FULL_SCREEN as Cd, APP_SET_THEME_MODE as Td, APP_SET_THEME_PALETTE as xd, APP_CLASSNAME as Ad, TOAST_CACHE_ENABLED as Rd, TOAST_CACHE_DISABLED as Od } from "./LogoEntry.Bw0P7g4x.js";
|
|
6
6
|
import Z, { clsx as ut } from "clsx";
|
|
7
7
|
import * as qa from "react-dom";
|
|
8
8
|
import Nd from "react-dom";
|
|
@@ -31,7 +31,7 @@ const ys = (e, t) => {
|
|
|
31
31
|
}, kd = (e) => {
|
|
32
32
|
window.localStorage.removeItem(e), Qa(e, null);
|
|
33
33
|
}, bs = (e) => window.localStorage.getItem(e), Pd = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
34
|
-
function
|
|
34
|
+
function Qe({ key: e, initialValue: t }) {
|
|
35
35
|
const r = Wn(Pd, () => bs(e)), o = B((a) => {
|
|
36
36
|
try {
|
|
37
37
|
const l = typeof a == "function" ? a(JSON.parse(r)) : a;
|
|
@@ -407,7 +407,7 @@ function Nt(e, t, n) {
|
|
|
407
407
|
const r = new e._zod.constr(t ?? e._zod.def);
|
|
408
408
|
return (!t || n?.parent) && (r._zod.parent = e), r;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function P(e) {
|
|
411
411
|
const t = e;
|
|
412
412
|
if (!t)
|
|
413
413
|
return {};
|
|
@@ -1800,7 +1800,7 @@ const Xt = /* @__PURE__ */ Hp();
|
|
|
1800
1800
|
function Wp(e, t) {
|
|
1801
1801
|
return new e({
|
|
1802
1802
|
type: "string",
|
|
1803
|
-
...
|
|
1803
|
+
...P(t)
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
1806
|
function Gp(e, t) {
|
|
@@ -1809,7 +1809,7 @@ function Gp(e, t) {
|
|
|
1809
1809
|
format: "email",
|
|
1810
1810
|
check: "string_format",
|
|
1811
1811
|
abort: !1,
|
|
1812
|
-
...
|
|
1812
|
+
...P(t)
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
1815
|
function ks(e, t) {
|
|
@@ -1818,7 +1818,7 @@ function ks(e, t) {
|
|
|
1818
1818
|
format: "guid",
|
|
1819
1819
|
check: "string_format",
|
|
1820
1820
|
abort: !1,
|
|
1821
|
-
...
|
|
1821
|
+
...P(t)
|
|
1822
1822
|
});
|
|
1823
1823
|
}
|
|
1824
1824
|
function Kp(e, t) {
|
|
@@ -1827,7 +1827,7 @@ function Kp(e, t) {
|
|
|
1827
1827
|
format: "uuid",
|
|
1828
1828
|
check: "string_format",
|
|
1829
1829
|
abort: !1,
|
|
1830
|
-
...
|
|
1830
|
+
...P(t)
|
|
1831
1831
|
});
|
|
1832
1832
|
}
|
|
1833
1833
|
function Yp(e, t) {
|
|
@@ -1837,7 +1837,7 @@ function Yp(e, t) {
|
|
|
1837
1837
|
check: "string_format",
|
|
1838
1838
|
abort: !1,
|
|
1839
1839
|
version: "v4",
|
|
1840
|
-
...
|
|
1840
|
+
...P(t)
|
|
1841
1841
|
});
|
|
1842
1842
|
}
|
|
1843
1843
|
function Jp(e, t) {
|
|
@@ -1847,7 +1847,7 @@ function Jp(e, t) {
|
|
|
1847
1847
|
check: "string_format",
|
|
1848
1848
|
abort: !1,
|
|
1849
1849
|
version: "v6",
|
|
1850
|
-
...
|
|
1850
|
+
...P(t)
|
|
1851
1851
|
});
|
|
1852
1852
|
}
|
|
1853
1853
|
function Xp(e, t) {
|
|
@@ -1857,7 +1857,7 @@ function Xp(e, t) {
|
|
|
1857
1857
|
check: "string_format",
|
|
1858
1858
|
abort: !1,
|
|
1859
1859
|
version: "v7",
|
|
1860
|
-
...
|
|
1860
|
+
...P(t)
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
1863
|
function qp(e, t) {
|
|
@@ -1866,7 +1866,7 @@ function qp(e, t) {
|
|
|
1866
1866
|
format: "url",
|
|
1867
1867
|
check: "string_format",
|
|
1868
1868
|
abort: !1,
|
|
1869
|
-
...
|
|
1869
|
+
...P(t)
|
|
1870
1870
|
});
|
|
1871
1871
|
}
|
|
1872
1872
|
function Qp(e, t) {
|
|
@@ -1875,7 +1875,7 @@ function Qp(e, t) {
|
|
|
1875
1875
|
format: "emoji",
|
|
1876
1876
|
check: "string_format",
|
|
1877
1877
|
abort: !1,
|
|
1878
|
-
...
|
|
1878
|
+
...P(t)
|
|
1879
1879
|
});
|
|
1880
1880
|
}
|
|
1881
1881
|
function em(e, t) {
|
|
@@ -1884,7 +1884,7 @@ function em(e, t) {
|
|
|
1884
1884
|
format: "nanoid",
|
|
1885
1885
|
check: "string_format",
|
|
1886
1886
|
abort: !1,
|
|
1887
|
-
...
|
|
1887
|
+
...P(t)
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
1890
|
function tm(e, t) {
|
|
@@ -1893,7 +1893,7 @@ function tm(e, t) {
|
|
|
1893
1893
|
format: "cuid",
|
|
1894
1894
|
check: "string_format",
|
|
1895
1895
|
abort: !1,
|
|
1896
|
-
...
|
|
1896
|
+
...P(t)
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
1899
|
function nm(e, t) {
|
|
@@ -1902,7 +1902,7 @@ function nm(e, t) {
|
|
|
1902
1902
|
format: "cuid2",
|
|
1903
1903
|
check: "string_format",
|
|
1904
1904
|
abort: !1,
|
|
1905
|
-
...
|
|
1905
|
+
...P(t)
|
|
1906
1906
|
});
|
|
1907
1907
|
}
|
|
1908
1908
|
function rm(e, t) {
|
|
@@ -1911,7 +1911,7 @@ function rm(e, t) {
|
|
|
1911
1911
|
format: "ulid",
|
|
1912
1912
|
check: "string_format",
|
|
1913
1913
|
abort: !1,
|
|
1914
|
-
...
|
|
1914
|
+
...P(t)
|
|
1915
1915
|
});
|
|
1916
1916
|
}
|
|
1917
1917
|
function om(e, t) {
|
|
@@ -1920,7 +1920,7 @@ function om(e, t) {
|
|
|
1920
1920
|
format: "xid",
|
|
1921
1921
|
check: "string_format",
|
|
1922
1922
|
abort: !1,
|
|
1923
|
-
...
|
|
1923
|
+
...P(t)
|
|
1924
1924
|
});
|
|
1925
1925
|
}
|
|
1926
1926
|
function sm(e, t) {
|
|
@@ -1929,7 +1929,7 @@ function sm(e, t) {
|
|
|
1929
1929
|
format: "ksuid",
|
|
1930
1930
|
check: "string_format",
|
|
1931
1931
|
abort: !1,
|
|
1932
|
-
...
|
|
1932
|
+
...P(t)
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
function am(e, t) {
|
|
@@ -1938,7 +1938,7 @@ function am(e, t) {
|
|
|
1938
1938
|
format: "ipv4",
|
|
1939
1939
|
check: "string_format",
|
|
1940
1940
|
abort: !1,
|
|
1941
|
-
...
|
|
1941
|
+
...P(t)
|
|
1942
1942
|
});
|
|
1943
1943
|
}
|
|
1944
1944
|
function im(e, t) {
|
|
@@ -1947,7 +1947,7 @@ function im(e, t) {
|
|
|
1947
1947
|
format: "ipv6",
|
|
1948
1948
|
check: "string_format",
|
|
1949
1949
|
abort: !1,
|
|
1950
|
-
...
|
|
1950
|
+
...P(t)
|
|
1951
1951
|
});
|
|
1952
1952
|
}
|
|
1953
1953
|
function cm(e, t) {
|
|
@@ -1956,7 +1956,7 @@ function cm(e, t) {
|
|
|
1956
1956
|
format: "cidrv4",
|
|
1957
1957
|
check: "string_format",
|
|
1958
1958
|
abort: !1,
|
|
1959
|
-
...
|
|
1959
|
+
...P(t)
|
|
1960
1960
|
});
|
|
1961
1961
|
}
|
|
1962
1962
|
function lm(e, t) {
|
|
@@ -1965,7 +1965,7 @@ function lm(e, t) {
|
|
|
1965
1965
|
format: "cidrv6",
|
|
1966
1966
|
check: "string_format",
|
|
1967
1967
|
abort: !1,
|
|
1968
|
-
...
|
|
1968
|
+
...P(t)
|
|
1969
1969
|
});
|
|
1970
1970
|
}
|
|
1971
1971
|
function um(e, t) {
|
|
@@ -1974,7 +1974,7 @@ function um(e, t) {
|
|
|
1974
1974
|
format: "base64",
|
|
1975
1975
|
check: "string_format",
|
|
1976
1976
|
abort: !1,
|
|
1977
|
-
...
|
|
1977
|
+
...P(t)
|
|
1978
1978
|
});
|
|
1979
1979
|
}
|
|
1980
1980
|
function dm(e, t) {
|
|
@@ -1983,7 +1983,7 @@ function dm(e, t) {
|
|
|
1983
1983
|
format: "base64url",
|
|
1984
1984
|
check: "string_format",
|
|
1985
1985
|
abort: !1,
|
|
1986
|
-
...
|
|
1986
|
+
...P(t)
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
1989
|
function fm(e, t) {
|
|
@@ -1992,7 +1992,7 @@ function fm(e, t) {
|
|
|
1992
1992
|
format: "e164",
|
|
1993
1993
|
check: "string_format",
|
|
1994
1994
|
abort: !1,
|
|
1995
|
-
...
|
|
1995
|
+
...P(t)
|
|
1996
1996
|
});
|
|
1997
1997
|
}
|
|
1998
1998
|
function pm(e, t) {
|
|
@@ -2001,7 +2001,7 @@ function pm(e, t) {
|
|
|
2001
2001
|
format: "jwt",
|
|
2002
2002
|
check: "string_format",
|
|
2003
2003
|
abort: !1,
|
|
2004
|
-
...
|
|
2004
|
+
...P(t)
|
|
2005
2005
|
});
|
|
2006
2006
|
}
|
|
2007
2007
|
function mm(e, t) {
|
|
@@ -2012,7 +2012,7 @@ function mm(e, t) {
|
|
|
2012
2012
|
offset: !1,
|
|
2013
2013
|
local: !1,
|
|
2014
2014
|
precision: null,
|
|
2015
|
-
...
|
|
2015
|
+
...P(t)
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
2018
|
function hm(e, t) {
|
|
@@ -2020,7 +2020,7 @@ function hm(e, t) {
|
|
|
2020
2020
|
type: "string",
|
|
2021
2021
|
format: "date",
|
|
2022
2022
|
check: "string_format",
|
|
2023
|
-
...
|
|
2023
|
+
...P(t)
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
function gm(e, t) {
|
|
@@ -2029,7 +2029,7 @@ function gm(e, t) {
|
|
|
2029
2029
|
format: "time",
|
|
2030
2030
|
check: "string_format",
|
|
2031
2031
|
precision: null,
|
|
2032
|
-
...
|
|
2032
|
+
...P(t)
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
2035
|
function vm(e, t) {
|
|
@@ -2037,14 +2037,14 @@ function vm(e, t) {
|
|
|
2037
2037
|
type: "string",
|
|
2038
2038
|
format: "duration",
|
|
2039
2039
|
check: "string_format",
|
|
2040
|
-
...
|
|
2040
|
+
...P(t)
|
|
2041
2041
|
});
|
|
2042
2042
|
}
|
|
2043
2043
|
function ym(e, t) {
|
|
2044
2044
|
return new e({
|
|
2045
2045
|
type: "number",
|
|
2046
2046
|
checks: [],
|
|
2047
|
-
...
|
|
2047
|
+
...P(t)
|
|
2048
2048
|
});
|
|
2049
2049
|
}
|
|
2050
2050
|
function bm(e, t) {
|
|
@@ -2053,19 +2053,19 @@ function bm(e, t) {
|
|
|
2053
2053
|
check: "number_format",
|
|
2054
2054
|
abort: !1,
|
|
2055
2055
|
format: "safeint",
|
|
2056
|
-
...
|
|
2056
|
+
...P(t)
|
|
2057
2057
|
});
|
|
2058
2058
|
}
|
|
2059
2059
|
function wm(e, t) {
|
|
2060
2060
|
return new e({
|
|
2061
2061
|
type: "boolean",
|
|
2062
|
-
...
|
|
2062
|
+
...P(t)
|
|
2063
2063
|
});
|
|
2064
2064
|
}
|
|
2065
2065
|
function _m(e, t) {
|
|
2066
2066
|
return new e({
|
|
2067
2067
|
type: "null",
|
|
2068
|
-
...
|
|
2068
|
+
...P(t)
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
2071
2071
|
function Em(e) {
|
|
@@ -2076,13 +2076,13 @@ function Em(e) {
|
|
|
2076
2076
|
function Sm(e, t) {
|
|
2077
2077
|
return new e({
|
|
2078
2078
|
type: "never",
|
|
2079
|
-
...
|
|
2079
|
+
...P(t)
|
|
2080
2080
|
});
|
|
2081
2081
|
}
|
|
2082
2082
|
function Ps(e, t) {
|
|
2083
2083
|
return new Ci({
|
|
2084
2084
|
check: "less_than",
|
|
2085
|
-
...
|
|
2085
|
+
...P(t),
|
|
2086
2086
|
value: e,
|
|
2087
2087
|
inclusive: !1
|
|
2088
2088
|
});
|
|
@@ -2090,7 +2090,7 @@ function Ps(e, t) {
|
|
|
2090
2090
|
function Fr(e, t) {
|
|
2091
2091
|
return new Ci({
|
|
2092
2092
|
check: "less_than",
|
|
2093
|
-
...
|
|
2093
|
+
...P(t),
|
|
2094
2094
|
value: e,
|
|
2095
2095
|
inclusive: !0
|
|
2096
2096
|
});
|
|
@@ -2098,7 +2098,7 @@ function Fr(e, t) {
|
|
|
2098
2098
|
function Ms(e, t) {
|
|
2099
2099
|
return new Ti({
|
|
2100
2100
|
check: "greater_than",
|
|
2101
|
-
...
|
|
2101
|
+
...P(t),
|
|
2102
2102
|
value: e,
|
|
2103
2103
|
inclusive: !1
|
|
2104
2104
|
});
|
|
@@ -2106,7 +2106,7 @@ function Ms(e, t) {
|
|
|
2106
2106
|
function Ur(e, t) {
|
|
2107
2107
|
return new Ti({
|
|
2108
2108
|
check: "greater_than",
|
|
2109
|
-
...
|
|
2109
|
+
...P(t),
|
|
2110
2110
|
value: e,
|
|
2111
2111
|
inclusive: !0
|
|
2112
2112
|
});
|
|
@@ -2114,28 +2114,28 @@ function Ur(e, t) {
|
|
|
2114
2114
|
function Ds(e, t) {
|
|
2115
2115
|
return new $f({
|
|
2116
2116
|
check: "multiple_of",
|
|
2117
|
-
...
|
|
2117
|
+
...P(t),
|
|
2118
2118
|
value: e
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
2121
|
function Ni(e, t) {
|
|
2122
2122
|
return new Zf({
|
|
2123
2123
|
check: "max_length",
|
|
2124
|
-
...
|
|
2124
|
+
...P(t),
|
|
2125
2125
|
maximum: e
|
|
2126
2126
|
});
|
|
2127
2127
|
}
|
|
2128
2128
|
function ar(e, t) {
|
|
2129
2129
|
return new Ff({
|
|
2130
2130
|
check: "min_length",
|
|
2131
|
-
...
|
|
2131
|
+
...P(t),
|
|
2132
2132
|
minimum: e
|
|
2133
2133
|
});
|
|
2134
2134
|
}
|
|
2135
2135
|
function ki(e, t) {
|
|
2136
2136
|
return new Uf({
|
|
2137
2137
|
check: "length_equals",
|
|
2138
|
-
...
|
|
2138
|
+
...P(t),
|
|
2139
2139
|
length: e
|
|
2140
2140
|
});
|
|
2141
2141
|
}
|
|
@@ -2143,7 +2143,7 @@ function Im(e, t) {
|
|
|
2143
2143
|
return new jf({
|
|
2144
2144
|
check: "string_format",
|
|
2145
2145
|
format: "regex",
|
|
2146
|
-
...
|
|
2146
|
+
...P(t),
|
|
2147
2147
|
pattern: e
|
|
2148
2148
|
});
|
|
2149
2149
|
}
|
|
@@ -2151,21 +2151,21 @@ function Cm(e) {
|
|
|
2151
2151
|
return new Bf({
|
|
2152
2152
|
check: "string_format",
|
|
2153
2153
|
format: "lowercase",
|
|
2154
|
-
...
|
|
2154
|
+
...P(e)
|
|
2155
2155
|
});
|
|
2156
2156
|
}
|
|
2157
2157
|
function Tm(e) {
|
|
2158
2158
|
return new Vf({
|
|
2159
2159
|
check: "string_format",
|
|
2160
2160
|
format: "uppercase",
|
|
2161
|
-
...
|
|
2161
|
+
...P(e)
|
|
2162
2162
|
});
|
|
2163
2163
|
}
|
|
2164
2164
|
function xm(e, t) {
|
|
2165
2165
|
return new Hf({
|
|
2166
2166
|
check: "string_format",
|
|
2167
2167
|
format: "includes",
|
|
2168
|
-
...
|
|
2168
|
+
...P(t),
|
|
2169
2169
|
includes: e
|
|
2170
2170
|
});
|
|
2171
2171
|
}
|
|
@@ -2173,7 +2173,7 @@ function Am(e, t) {
|
|
|
2173
2173
|
return new Wf({
|
|
2174
2174
|
check: "string_format",
|
|
2175
2175
|
format: "starts_with",
|
|
2176
|
-
...
|
|
2176
|
+
...P(t),
|
|
2177
2177
|
prefix: e
|
|
2178
2178
|
});
|
|
2179
2179
|
}
|
|
@@ -2181,7 +2181,7 @@ function Rm(e, t) {
|
|
|
2181
2181
|
return new Gf({
|
|
2182
2182
|
check: "string_format",
|
|
2183
2183
|
format: "ends_with",
|
|
2184
|
-
...
|
|
2184
|
+
...P(t),
|
|
2185
2185
|
suffix: e
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
@@ -2210,11 +2210,11 @@ function Mm(e, t, n) {
|
|
|
2210
2210
|
// get element() {
|
|
2211
2211
|
// return element;
|
|
2212
2212
|
// },
|
|
2213
|
-
...
|
|
2213
|
+
...P(n)
|
|
2214
2214
|
});
|
|
2215
2215
|
}
|
|
2216
2216
|
function Dm(e, t, n) {
|
|
2217
|
-
const r =
|
|
2217
|
+
const r = P(n);
|
|
2218
2218
|
return r.abort ?? (r.abort = !0), new e({
|
|
2219
2219
|
type: "custom",
|
|
2220
2220
|
check: "custom",
|
|
@@ -2227,7 +2227,7 @@ function Lm(e, t, n) {
|
|
|
2227
2227
|
type: "custom",
|
|
2228
2228
|
check: "custom",
|
|
2229
2229
|
fn: t,
|
|
2230
|
-
...
|
|
2230
|
+
...P(n)
|
|
2231
2231
|
});
|
|
2232
2232
|
}
|
|
2233
2233
|
class Ls {
|
|
@@ -2916,7 +2916,7 @@ function pe(e, t) {
|
|
|
2916
2916
|
get shape() {
|
|
2917
2917
|
return wr(this, "shape", { ...e }), this.shape;
|
|
2918
2918
|
},
|
|
2919
|
-
...
|
|
2919
|
+
...P(t)
|
|
2920
2920
|
};
|
|
2921
2921
|
return new $i(n);
|
|
2922
2922
|
}
|
|
@@ -2927,7 +2927,7 @@ function re(e, t) {
|
|
|
2927
2927
|
return wr(this, "shape", { ...e }), this.shape;
|
|
2928
2928
|
},
|
|
2929
2929
|
catchall: Li(),
|
|
2930
|
-
...
|
|
2930
|
+
...P(t)
|
|
2931
2931
|
});
|
|
2932
2932
|
}
|
|
2933
2933
|
const zi = /* @__PURE__ */ C("ZodUnion", (e, t) => {
|
|
@@ -2937,7 +2937,7 @@ function Ae(e, t) {
|
|
|
2937
2937
|
return new zi({
|
|
2938
2938
|
type: "union",
|
|
2939
2939
|
options: e,
|
|
2940
|
-
...
|
|
2940
|
+
...P(t)
|
|
2941
2941
|
});
|
|
2942
2942
|
}
|
|
2943
2943
|
const Eh = /* @__PURE__ */ C("ZodDiscriminatedUnion", (e, t) => {
|
|
@@ -2948,7 +2948,7 @@ function Sh(e, t, n) {
|
|
|
2948
2948
|
type: "union",
|
|
2949
2949
|
options: t,
|
|
2950
2950
|
discriminator: e,
|
|
2951
|
-
...
|
|
2951
|
+
...P(n)
|
|
2952
2952
|
});
|
|
2953
2953
|
}
|
|
2954
2954
|
const Ih = /* @__PURE__ */ C("ZodIntersection", (e, t) => {
|
|
@@ -2969,7 +2969,7 @@ function po(e, t, n) {
|
|
|
2969
2969
|
type: "record",
|
|
2970
2970
|
keyType: e,
|
|
2971
2971
|
valueType: t,
|
|
2972
|
-
...
|
|
2972
|
+
...P(n)
|
|
2973
2973
|
});
|
|
2974
2974
|
}
|
|
2975
2975
|
const mo = /* @__PURE__ */ C("ZodEnum", (e, t) => {
|
|
@@ -2985,7 +2985,7 @@ const mo = /* @__PURE__ */ C("ZodEnum", (e, t) => {
|
|
|
2985
2985
|
return new mo({
|
|
2986
2986
|
...t,
|
|
2987
2987
|
checks: [],
|
|
2988
|
-
...
|
|
2988
|
+
...P(o),
|
|
2989
2989
|
entries: s
|
|
2990
2990
|
});
|
|
2991
2991
|
}, e.exclude = (r, o) => {
|
|
@@ -2998,7 +2998,7 @@ const mo = /* @__PURE__ */ C("ZodEnum", (e, t) => {
|
|
|
2998
2998
|
return new mo({
|
|
2999
2999
|
...t,
|
|
3000
3000
|
checks: [],
|
|
3001
|
-
...
|
|
3001
|
+
...P(o),
|
|
3002
3002
|
entries: s
|
|
3003
3003
|
});
|
|
3004
3004
|
};
|
|
@@ -3008,7 +3008,7 @@ function Zi(e, t) {
|
|
|
3008
3008
|
return new mo({
|
|
3009
3009
|
type: "enum",
|
|
3010
3010
|
entries: n,
|
|
3011
|
-
...
|
|
3011
|
+
...P(t)
|
|
3012
3012
|
});
|
|
3013
3013
|
}
|
|
3014
3014
|
const xh = /* @__PURE__ */ C("ZodLiteral", (e, t) => {
|
|
@@ -3024,7 +3024,7 @@ function j(e, t) {
|
|
|
3024
3024
|
return new xh({
|
|
3025
3025
|
type: "literal",
|
|
3026
3026
|
values: Array.isArray(e) ? e : [e],
|
|
3027
|
-
...
|
|
3027
|
+
...P(t)
|
|
3028
3028
|
});
|
|
3029
3029
|
}
|
|
3030
3030
|
const Ah = /* @__PURE__ */ C("ZodTransform", (e, t) => {
|
|
@@ -3096,7 +3096,7 @@ function Dh(e, t) {
|
|
|
3096
3096
|
return new Ui({
|
|
3097
3097
|
type: "nonoptional",
|
|
3098
3098
|
innerType: e,
|
|
3099
|
-
...
|
|
3099
|
+
...P(t)
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
3102
|
const Lh = /* @__PURE__ */ C("ZodCatch", (e, t) => {
|
|
@@ -3173,7 +3173,7 @@ function ir(e, t = {
|
|
|
3173
3173
|
check: "custom",
|
|
3174
3174
|
fn: (r) => r instanceof e,
|
|
3175
3175
|
abort: !0,
|
|
3176
|
-
...
|
|
3176
|
+
...P(t)
|
|
3177
3177
|
});
|
|
3178
3178
|
return n._zod.bag.Class = e, n;
|
|
3179
3179
|
}
|
|
@@ -5797,7 +5797,7 @@ const rc = async () => (Hr || (Hr = import(
|
|
|
5797
5797
|
"./index.790ujKXR.js"
|
|
5798
5798
|
)), Hr), oc = async () => (Wr || (Wr = import(
|
|
5799
5799
|
/* webpackChunkName: "toast-utilities" */
|
|
5800
|
-
"./index.
|
|
5800
|
+
"./index.DlAFSWVf.js"
|
|
5801
5801
|
).then((e) => e.utilities)), Wr), Cv = async () => {
|
|
5802
5802
|
try {
|
|
5803
5803
|
await Promise.all([rc(), oc()]);
|
|
@@ -6177,7 +6177,7 @@ const na = ({
|
|
|
6177
6177
|
setInitialMessages: n,
|
|
6178
6178
|
dispatchChat: r
|
|
6179
6179
|
}) => {
|
|
6180
|
-
const { user: o, getAccessToken: s } = Le(), [i, a] = V(!1), [l] =
|
|
6180
|
+
const { user: o, getAccessToken: s } = Le(), [i, a] = V(!1), [l] = Qe({
|
|
6181
6181
|
key: je + Hn,
|
|
6182
6182
|
initialValue: ""
|
|
6183
6183
|
}), d = (iu || ja() || sn()) && !!l && !i && !!o?.username && l !== e, { data: u } = cu({
|
|
@@ -6382,7 +6382,7 @@ function jo(e, t = [
|
|
|
6382
6382
|
n
|
|
6383
6383
|
]);
|
|
6384
6384
|
}
|
|
6385
|
-
const Kv = ["top", "right", "bottom", "left"], ht = Math.min, Ee = Math.max, dr = Math.round, Dn = Math.floor,
|
|
6385
|
+
const Kv = ["top", "right", "bottom", "left"], ht = Math.min, Ee = Math.max, dr = Math.round, Dn = Math.floor, He = (e) => ({
|
|
6386
6386
|
x: e,
|
|
6387
6387
|
y: e
|
|
6388
6388
|
}), Yv = {
|
|
@@ -6666,7 +6666,7 @@ const ay = (e) => ({
|
|
|
6666
6666
|
}, m = Ho(o), p = Vo(m), f = await i.getDimensions(c), y = m === "y", w = y ? "top" : "left", E = y ? "bottom" : "right", _ = y ? "clientHeight" : "clientWidth", v = s.reference[p] + s.reference[m] - h[m] - s.floating[p], I = h[m] - s.reference[m], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
6667
6667
|
let S = T ? T[_] : 0;
|
|
6668
6668
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = a.floating[_] || s.floating[p]);
|
|
6669
|
-
const x = v / 2 - I / 2, O = S / 2 - f[p] / 2 - 1, N = ht(u[w], O), H = ht(u[E], O),
|
|
6669
|
+
const x = v / 2 - I / 2, O = S / 2 - f[p] / 2 - 1, N = ht(u[w], O), H = ht(u[E], O), k = N, L = S - f[p] - H, R = S / 2 - f[p] / 2 + x, X = wo(k, R, L), U = !l.arrow && Gt(o) != null && R !== X && s.reference[p] / 2 - (R < k ? N : H) - f[p] / 2 < 0, q = U ? R < k ? R - k : R - L : 0;
|
|
6670
6670
|
return {
|
|
6671
6671
|
[m]: h[m] + q,
|
|
6672
6672
|
data: {
|
|
@@ -6715,11 +6715,11 @@ const ay = (e) => ({
|
|
|
6715
6715
|
placement: o,
|
|
6716
6716
|
overflows: O
|
|
6717
6717
|
}], !O.every((R) => R <= 0)) {
|
|
6718
|
-
var H,
|
|
6718
|
+
var H, k;
|
|
6719
6719
|
const R = (((H = s.flip) == null ? void 0 : H.index) || 0) + 1, X = S[R];
|
|
6720
6720
|
if (X && (!(u === "alignment" ? E !== Be(X) : !1) || // We leave the current main axis only if every placement on that axis
|
|
6721
6721
|
// overflows the main axis.
|
|
6722
|
-
N.every((
|
|
6722
|
+
N.every(($) => Be($.placement) === E ? $.overflows[0] > 0 : !0)))
|
|
6723
6723
|
return {
|
|
6724
6724
|
data: {
|
|
6725
6725
|
index: R,
|
|
@@ -6729,20 +6729,20 @@ const ay = (e) => ({
|
|
|
6729
6729
|
placement: X
|
|
6730
6730
|
}
|
|
6731
6731
|
};
|
|
6732
|
-
let U = (
|
|
6732
|
+
let U = (k = N.filter((q) => q.overflows[0] <= 0).sort((q, $) => q.overflows[1] - $.overflows[1])[0]) == null ? void 0 : k.placement;
|
|
6733
6733
|
if (!U)
|
|
6734
6734
|
switch (m) {
|
|
6735
6735
|
case "bestFit": {
|
|
6736
|
-
var
|
|
6737
|
-
const q = (
|
|
6736
|
+
var L;
|
|
6737
|
+
const q = (L = N.filter(($) => {
|
|
6738
6738
|
if (T) {
|
|
6739
|
-
const A = Be(
|
|
6739
|
+
const A = Be($.placement);
|
|
6740
6740
|
return A === E || // Create a bias to the `y` side axis due to horizontal
|
|
6741
6741
|
// reading directions favoring greater width.
|
|
6742
6742
|
A === "y";
|
|
6743
6743
|
}
|
|
6744
6744
|
return !0;
|
|
6745
|
-
}).map((
|
|
6745
|
+
}).map(($) => [$.placement, $.overflows.filter((A) => A > 0).reduce((A, ie) => A + ie, 0)]).sort(($, A) => $[1] - A[1])[0]) == null ? void 0 : L[0];
|
|
6746
6746
|
q && (U = q);
|
|
6747
6747
|
break;
|
|
6748
6748
|
}
|
|
@@ -6985,8 +6985,8 @@ const uy = function(e) {
|
|
|
6985
6985
|
const E = f - d.top - d.bottom, _ = p - d.left - d.right, v = ht(f - d[y], E), I = ht(p - d[w], _), T = !t.middlewareData.shift;
|
|
6986
6986
|
let S = v, x = I;
|
|
6987
6987
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (x = _), (r = t.middlewareData.shift) != null && r.enabled.y && (S = E), T && !h) {
|
|
6988
|
-
const N = Ee(d.left, 0), H = Ee(d.right, 0),
|
|
6989
|
-
m ? x = p - 2 * (N !== 0 || H !== 0 ? N + H : Ee(d.left, d.right)) : S = f - 2 * (
|
|
6988
|
+
const N = Ee(d.left, 0), H = Ee(d.right, 0), k = Ee(d.top, 0), L = Ee(d.bottom, 0);
|
|
6989
|
+
m ? x = p - 2 * (N !== 0 || H !== 0 ? N + H : Ee(d.left, d.right)) : S = f - 2 * (k !== 0 || L !== 0 ? k + L : Ee(d.top, d.bottom));
|
|
6990
6990
|
}
|
|
6991
6991
|
await l({
|
|
6992
6992
|
...t,
|
|
@@ -7012,7 +7012,7 @@ function Se(e) {
|
|
|
7012
7012
|
var t;
|
|
7013
7013
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
7014
7014
|
}
|
|
7015
|
-
function
|
|
7015
|
+
function Ye(e) {
|
|
7016
7016
|
var t;
|
|
7017
7017
|
return (t = (pc(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
7018
7018
|
}
|
|
@@ -7022,7 +7022,7 @@ function pc(e) {
|
|
|
7022
7022
|
function Me(e) {
|
|
7023
7023
|
return Sr() ? e instanceof Element || e instanceof Se(e).Element : !1;
|
|
7024
7024
|
}
|
|
7025
|
-
function
|
|
7025
|
+
function We(e) {
|
|
7026
7026
|
return Sr() ? e instanceof HTMLElement || e instanceof Se(e).HTMLElement : !1;
|
|
7027
7027
|
}
|
|
7028
7028
|
function la(e) {
|
|
@@ -7059,7 +7059,7 @@ function Wo(e) {
|
|
|
7059
7059
|
}
|
|
7060
7060
|
function _y(e) {
|
|
7061
7061
|
let t = gt(e);
|
|
7062
|
-
for (;
|
|
7062
|
+
for (; We(t) && !Ht(t); ) {
|
|
7063
7063
|
if (Wo(t))
|
|
7064
7064
|
return t;
|
|
7065
7065
|
if (Ir(t))
|
|
@@ -7095,13 +7095,13 @@ function gt(e) {
|
|
|
7095
7095
|
e.assignedSlot || // DOM Element detected.
|
|
7096
7096
|
e.parentNode || // ShadowRoot detected.
|
|
7097
7097
|
la(e) && e.host || // Fallback.
|
|
7098
|
-
|
|
7098
|
+
Ye(e)
|
|
7099
7099
|
);
|
|
7100
7100
|
return la(t) ? t.host : t;
|
|
7101
7101
|
}
|
|
7102
7102
|
function mc(e) {
|
|
7103
7103
|
const t = gt(e);
|
|
7104
|
-
return Ht(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
7104
|
+
return Ht(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : We(t) && En(t) ? t : mc(t);
|
|
7105
7105
|
}
|
|
7106
7106
|
function pn(e, t, n) {
|
|
7107
7107
|
var r;
|
|
@@ -7119,7 +7119,7 @@ function Eo(e) {
|
|
|
7119
7119
|
function hc(e) {
|
|
7120
7120
|
const t = De(e);
|
|
7121
7121
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
7122
|
-
const o =
|
|
7122
|
+
const o = We(e), s = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, a = dr(n) !== s || dr(r) !== i;
|
|
7123
7123
|
return a && (n = s, r = i), {
|
|
7124
7124
|
width: n,
|
|
7125
7125
|
height: r,
|
|
@@ -7131,8 +7131,8 @@ function Ko(e) {
|
|
|
7131
7131
|
}
|
|
7132
7132
|
function jt(e) {
|
|
7133
7133
|
const t = Ko(e);
|
|
7134
|
-
if (!
|
|
7135
|
-
return
|
|
7134
|
+
if (!We(t))
|
|
7135
|
+
return He(1);
|
|
7136
7136
|
const n = t.getBoundingClientRect(), {
|
|
7137
7137
|
width: r,
|
|
7138
7138
|
height: o,
|
|
@@ -7144,7 +7144,7 @@ function jt(e) {
|
|
|
7144
7144
|
y: a
|
|
7145
7145
|
};
|
|
7146
7146
|
}
|
|
7147
|
-
const Sy = /* @__PURE__ */
|
|
7147
|
+
const Sy = /* @__PURE__ */ He(0);
|
|
7148
7148
|
function gc(e) {
|
|
7149
7149
|
const t = Se(e);
|
|
7150
7150
|
return !Go() || !t.visualViewport ? Sy : {
|
|
@@ -7158,9 +7158,9 @@ function Iy(e, t, n) {
|
|
|
7158
7158
|
function Ot(e, t, n, r) {
|
|
7159
7159
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
7160
7160
|
const o = e.getBoundingClientRect(), s = Ko(e);
|
|
7161
|
-
let i =
|
|
7161
|
+
let i = He(1);
|
|
7162
7162
|
t && (r ? Me(r) && (i = jt(r)) : i = jt(e));
|
|
7163
|
-
const a = Iy(s, n, r) ? gc(s) :
|
|
7163
|
+
const a = Iy(s, n, r) ? gc(s) : He(0);
|
|
7164
7164
|
let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, d = o.width / i.x, u = o.height / i.y;
|
|
7165
7165
|
if (s) {
|
|
7166
7166
|
const h = Se(s), m = r && Me(r) ? Se(r) : r;
|
|
@@ -7179,7 +7179,7 @@ function Ot(e, t, n, r) {
|
|
|
7179
7179
|
}
|
|
7180
7180
|
function Tr(e, t) {
|
|
7181
7181
|
const n = Cr(e).scrollLeft;
|
|
7182
|
-
return t ? t.left + n : Ot(
|
|
7182
|
+
return t ? t.left + n : Ot(Ye(e)).left + n;
|
|
7183
7183
|
}
|
|
7184
7184
|
function vc(e, t) {
|
|
7185
7185
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Tr(e, n), o = n.top + t.scrollTop;
|
|
@@ -7195,19 +7195,19 @@ function Cy(e) {
|
|
|
7195
7195
|
offsetParent: r,
|
|
7196
7196
|
strategy: o
|
|
7197
7197
|
} = e;
|
|
7198
|
-
const s = o === "fixed", i =
|
|
7198
|
+
const s = o === "fixed", i = Ye(r), a = t ? Ir(t.floating) : !1;
|
|
7199
7199
|
if (r === i || a && s)
|
|
7200
7200
|
return n;
|
|
7201
7201
|
let l = {
|
|
7202
7202
|
scrollLeft: 0,
|
|
7203
7203
|
scrollTop: 0
|
|
7204
|
-
}, c =
|
|
7205
|
-
const d =
|
|
7206
|
-
if ((u || !u && !s) && ((Kt(r) !== "body" || En(i)) && (l = Cr(r)),
|
|
7204
|
+
}, c = He(1);
|
|
7205
|
+
const d = He(0), u = We(r);
|
|
7206
|
+
if ((u || !u && !s) && ((Kt(r) !== "body" || En(i)) && (l = Cr(r)), We(r))) {
|
|
7207
7207
|
const m = Ot(r);
|
|
7208
7208
|
c = jt(r), d.x = m.x + r.clientLeft, d.y = m.y + r.clientTop;
|
|
7209
7209
|
}
|
|
7210
|
-
const h = i && !u && !s ? vc(i, l) :
|
|
7210
|
+
const h = i && !u && !s ? vc(i, l) : He(0);
|
|
7211
7211
|
return {
|
|
7212
7212
|
width: n.width * c.x,
|
|
7213
7213
|
height: n.height * c.y,
|
|
@@ -7219,7 +7219,7 @@ function Ty(e) {
|
|
|
7219
7219
|
return Array.from(e.getClientRects());
|
|
7220
7220
|
}
|
|
7221
7221
|
function xy(e) {
|
|
7222
|
-
const t =
|
|
7222
|
+
const t = Ye(e), n = Cr(e), r = e.ownerDocument.body, o = Ee(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Ee(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7223
7223
|
let i = -n.scrollLeft + Tr(e);
|
|
7224
7224
|
const a = -n.scrollTop;
|
|
7225
7225
|
return De(r).direction === "rtl" && (i += Ee(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -7231,7 +7231,7 @@ function xy(e) {
|
|
|
7231
7231
|
}
|
|
7232
7232
|
const ua = 25;
|
|
7233
7233
|
function Ay(e, t) {
|
|
7234
|
-
const n = Se(e), r =
|
|
7234
|
+
const n = Se(e), r = Ye(e), o = n.visualViewport;
|
|
7235
7235
|
let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
|
|
7236
7236
|
if (o) {
|
|
7237
7237
|
s = o.width, i = o.height;
|
|
@@ -7252,7 +7252,7 @@ function Ay(e, t) {
|
|
|
7252
7252
|
}
|
|
7253
7253
|
const Ry = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
7254
7254
|
function Oy(e, t) {
|
|
7255
|
-
const n = Ot(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s =
|
|
7255
|
+
const n = Ot(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = We(e) ? jt(e) : He(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
|
|
7256
7256
|
return {
|
|
7257
7257
|
width: i,
|
|
7258
7258
|
height: a,
|
|
@@ -7265,7 +7265,7 @@ function da(e, t, n) {
|
|
|
7265
7265
|
if (t === "viewport")
|
|
7266
7266
|
r = Ay(e, n);
|
|
7267
7267
|
else if (t === "document")
|
|
7268
|
-
r = xy(
|
|
7268
|
+
r = xy(Ye(e));
|
|
7269
7269
|
else if (Me(t))
|
|
7270
7270
|
r = Oy(t, n);
|
|
7271
7271
|
else {
|
|
@@ -7325,12 +7325,12 @@ function Py(e) {
|
|
|
7325
7325
|
};
|
|
7326
7326
|
}
|
|
7327
7327
|
function My(e, t, n) {
|
|
7328
|
-
const r =
|
|
7328
|
+
const r = We(t), o = Ye(t), s = n === "fixed", i = Ot(e, !0, s, t);
|
|
7329
7329
|
let a = {
|
|
7330
7330
|
scrollLeft: 0,
|
|
7331
7331
|
scrollTop: 0
|
|
7332
7332
|
};
|
|
7333
|
-
const l =
|
|
7333
|
+
const l = He(0);
|
|
7334
7334
|
function c() {
|
|
7335
7335
|
l.x = Tr(o);
|
|
7336
7336
|
}
|
|
@@ -7340,7 +7340,7 @@ function My(e, t, n) {
|
|
|
7340
7340
|
l.x = m.x + t.clientLeft, l.y = m.y + t.clientTop;
|
|
7341
7341
|
} else o && c();
|
|
7342
7342
|
s && !r && o && c();
|
|
7343
|
-
const d = o && !r && !s ? vc(o, a) :
|
|
7343
|
+
const d = o && !r && !s ? vc(o, a) : He(0), u = i.left + a.scrollLeft - l.x - d.x, h = i.top + a.scrollTop - l.y - d.y;
|
|
7344
7344
|
return {
|
|
7345
7345
|
x: u,
|
|
7346
7346
|
y: h,
|
|
@@ -7352,18 +7352,18 @@ function Yr(e) {
|
|
|
7352
7352
|
return De(e).position === "static";
|
|
7353
7353
|
}
|
|
7354
7354
|
function fa(e, t) {
|
|
7355
|
-
if (!
|
|
7355
|
+
if (!We(e) || De(e).position === "fixed")
|
|
7356
7356
|
return null;
|
|
7357
7357
|
if (t)
|
|
7358
7358
|
return t(e);
|
|
7359
7359
|
let n = e.offsetParent;
|
|
7360
|
-
return
|
|
7360
|
+
return Ye(e) === n && (n = n.ownerDocument.body), n;
|
|
7361
7361
|
}
|
|
7362
7362
|
function bc(e, t) {
|
|
7363
7363
|
const n = Se(e);
|
|
7364
7364
|
if (Ir(e))
|
|
7365
7365
|
return n;
|
|
7366
|
-
if (!
|
|
7366
|
+
if (!We(e)) {
|
|
7367
7367
|
let o = gt(e);
|
|
7368
7368
|
for (; o && !Ht(o); ) {
|
|
7369
7369
|
if (Me(o) && !Yr(o))
|
|
@@ -7394,7 +7394,7 @@ function Ly(e) {
|
|
|
7394
7394
|
}
|
|
7395
7395
|
const $y = {
|
|
7396
7396
|
convertOffsetParentRelativeRectToViewportRelativeRect: Cy,
|
|
7397
|
-
getDocumentElement:
|
|
7397
|
+
getDocumentElement: Ye,
|
|
7398
7398
|
getClippingRect: ky,
|
|
7399
7399
|
getOffsetParent: bc,
|
|
7400
7400
|
getElementRects: Dy,
|
|
@@ -7409,7 +7409,7 @@ function wc(e, t) {
|
|
|
7409
7409
|
}
|
|
7410
7410
|
function zy(e, t) {
|
|
7411
7411
|
let n = null, r;
|
|
7412
|
-
const o =
|
|
7412
|
+
const o = Ye(e);
|
|
7413
7413
|
function s() {
|
|
7414
7414
|
var a;
|
|
7415
7415
|
clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
|
|
@@ -7622,7 +7622,7 @@ const Hy = "av-tooltip", Wy = "av-tooltip-arrow", Ln = (e, t = "px") => typeof e
|
|
|
7622
7622
|
animationDuration: o
|
|
7623
7623
|
}), T = B(async () => {
|
|
7624
7624
|
if (c.current && d.current && u.current) {
|
|
7625
|
-
const { x: N, y: H, middlewareData:
|
|
7625
|
+
const { x: N, y: H, middlewareData: k, placement: L } = await Ic(c.current, d.current, {
|
|
7626
7626
|
placement: n,
|
|
7627
7627
|
middleware: [
|
|
7628
7628
|
_c(10),
|
|
@@ -7648,10 +7648,10 @@ const Hy = "av-tooltip", Wy = "av-tooltip-arrow", Ln = (e, t = "px") => typeof e
|
|
|
7648
7648
|
right: "left",
|
|
7649
7649
|
bottom: "top",
|
|
7650
7650
|
left: "right"
|
|
7651
|
-
}[
|
|
7651
|
+
}[L.split("-")[0]];
|
|
7652
7652
|
u?.current?.style && Object.assign(u.current.style, {
|
|
7653
|
-
left: Ln(
|
|
7654
|
-
top: Ln(
|
|
7653
|
+
left: Ln(k.arrow?.x),
|
|
7654
|
+
top: Ln(k.arrow?.y),
|
|
7655
7655
|
right: "",
|
|
7656
7656
|
bottom: "",
|
|
7657
7657
|
[R]: "-4px"
|
|
@@ -7679,7 +7679,7 @@ const Hy = "av-tooltip", Wy = "av-tooltip-arrow", Ln = (e, t = "px") => typeof e
|
|
|
7679
7679
|
}, O = () => {
|
|
7680
7680
|
h.current && (clearTimeout(h.current), h.current = null), f || p(!1);
|
|
7681
7681
|
};
|
|
7682
|
-
return /* @__PURE__ */
|
|
7682
|
+
return /* @__PURE__ */ D("div", {
|
|
7683
7683
|
className: v.wrapper,
|
|
7684
7684
|
ref: c,
|
|
7685
7685
|
onMouseEnter: x,
|
|
@@ -7687,7 +7687,7 @@ const Hy = "av-tooltip", Wy = "av-tooltip-arrow", Ln = (e, t = "px") => typeof e
|
|
|
7687
7687
|
onClick: S,
|
|
7688
7688
|
children: [
|
|
7689
7689
|
e,
|
|
7690
|
-
m && /* @__PURE__ */
|
|
7690
|
+
m && /* @__PURE__ */ D("div", {
|
|
7691
7691
|
role: "tooltip",
|
|
7692
7692
|
ref: d,
|
|
7693
7693
|
className: v.tooltip,
|
|
@@ -7708,11 +7708,11 @@ const Hy = "av-tooltip", Wy = "av-tooltip-arrow", Ln = (e, t = "px") => typeof e
|
|
|
7708
7708
|
trigger: e,
|
|
7709
7709
|
className: t,
|
|
7710
7710
|
...n
|
|
7711
|
-
}) => Pe(() =>
|
|
7711
|
+
}) => Pe(() => Ve(), []) ? /* @__PURE__ */ g("div", { className: t, children: e }) : /* @__PURE__ */ g(Qy, { delay: 500, className: t, trigger: e, ...n }), eb = ({
|
|
7712
7712
|
className: e,
|
|
7713
7713
|
onClick: t
|
|
7714
7714
|
}) => {
|
|
7715
|
-
const [n, r] =
|
|
7715
|
+
const [n, r] = Ke();
|
|
7716
7716
|
return /* @__PURE__ */ g(
|
|
7717
7717
|
wt,
|
|
7718
7718
|
{
|
|
@@ -7758,7 +7758,7 @@ const tb = ({
|
|
|
7758
7758
|
dispatch: s,
|
|
7759
7759
|
setChatId: i,
|
|
7760
7760
|
setInitialMessages: a
|
|
7761
|
-
} = ue($e), { id: l, setInput: c, stop: d } = bt(), u = G(null), h = G(!1), [m, p] =
|
|
7761
|
+
} = ue($e), { id: l, setInput: c, stop: d } = bt(), u = G(null), h = G(!1), [m, p] = Ke(), { data: f, isSuccess: y } = yt({
|
|
7762
7762
|
user: n?.username,
|
|
7763
7763
|
getAccessToken: t
|
|
7764
7764
|
}), w = m(p.NewChat), E = B(() => {
|
|
@@ -7823,7 +7823,7 @@ const tb = ({
|
|
|
7823
7823
|
I.preventDefault(), E();
|
|
7824
7824
|
};
|
|
7825
7825
|
return F(() => {
|
|
7826
|
-
|
|
7826
|
+
Ve() || ((r === !0 || o === !0) && !h.current && u.current && (h.current = !0, u.current.focus()), r === !1 && h.current && (h.current = !1));
|
|
7827
7827
|
}, [r, o]), /* @__PURE__ */ g(
|
|
7828
7828
|
wt,
|
|
7829
7829
|
{
|
|
@@ -7865,19 +7865,19 @@ const tb = ({
|
|
|
7865
7865
|
return t(e);
|
|
7866
7866
|
};
|
|
7867
7867
|
/*!
|
|
7868
|
-
@versini/ui-panel v8.0.
|
|
7868
|
+
@versini/ui-panel v8.0.1
|
|
7869
7869
|
© 2025 gizmette.com
|
|
7870
7870
|
*/
|
|
7871
7871
|
try {
|
|
7872
7872
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
7873
|
-
version: "8.0.
|
|
7874
|
-
buildTime: "12/
|
|
7873
|
+
version: "8.0.1",
|
|
7874
|
+
buildTime: "12/17/2025 07:04 PM EST",
|
|
7875
7875
|
homepage: "https://www.npmjs.com/package/@versini/ui-panel",
|
|
7876
7876
|
license: "MIT"
|
|
7877
7877
|
});
|
|
7878
7878
|
} catch {
|
|
7879
7879
|
}
|
|
7880
|
-
const nb = "av-messagebox", rb = "av-panel",
|
|
7880
|
+
const nb = "av-messagebox", rb = "av-panel", qe = "messagebox", et = [];
|
|
7881
7881
|
let Io = !1;
|
|
7882
7882
|
function ob() {
|
|
7883
7883
|
return Io;
|
|
@@ -7893,14 +7893,14 @@ function sb(e) {
|
|
|
7893
7893
|
}
|
|
7894
7894
|
}
|
|
7895
7895
|
function ab(e) {
|
|
7896
|
-
|
|
7896
|
+
et.length > 0 && et[et.length - 1].removeListeners(), et.push(e), e.addListeners();
|
|
7897
7897
|
}
|
|
7898
7898
|
function ib(e) {
|
|
7899
|
-
const t =
|
|
7899
|
+
const t = et.findIndex((r) => r.dialogRef === e);
|
|
7900
7900
|
if (t === -1)
|
|
7901
7901
|
return;
|
|
7902
|
-
const [n] =
|
|
7903
|
-
n.removeListeners(),
|
|
7902
|
+
const [n] = et.splice(t, 1);
|
|
7903
|
+
n.removeListeners(), et.length > 0 && et[et.length - 1].addListeners();
|
|
7904
7904
|
}
|
|
7905
7905
|
const cb = [
|
|
7906
7906
|
'a[href]:not([disabled]):not([tabindex="-1"])',
|
|
@@ -7992,16 +7992,22 @@ function lb({ open: e, onClose: t, children: n, className: r, style: o, title: s
|
|
|
7992
7992
|
]), !e)
|
|
7993
7993
|
return null;
|
|
7994
7994
|
const E = Z(
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
7995
|
+
/**
|
|
7996
|
+
* Center the dialog on screen with fixed positioning. Native dialog uses
|
|
7997
|
+
* position: fixed by default. On mobile: inset-0 + no margin for full screen.
|
|
7998
|
+
* On desktop: inset-x-0 + top/bottom auto for vertical centering with
|
|
7999
|
+
* shrink-to-fit.
|
|
8000
|
+
*/
|
|
8001
|
+
"fixed inset-0 m-0 sm:inset-auto sm:inset-x-0 sm:top-1/2 sm:-translate-y-1/2 sm:mx-auto max-h-none max-w-none p-0",
|
|
8002
|
+
/**
|
|
8003
|
+
* Backdrop styling via Tailwind's backdrop: variant for ::backdrop
|
|
8004
|
+
* pseudo-element. Full black on mobile, 80% opacity on desktop (matches
|
|
8005
|
+
* original overlay).
|
|
8006
|
+
*/
|
|
8001
8007
|
"backdrop:bg-black sm:backdrop:bg-black/80",
|
|
8002
8008
|
r
|
|
8003
8009
|
);
|
|
8004
|
-
return /* @__PURE__ */
|
|
8010
|
+
return /* @__PURE__ */ D("dialog", {
|
|
8005
8011
|
ref: c,
|
|
8006
8012
|
"aria-labelledby": a,
|
|
8007
8013
|
"aria-describedby": l,
|
|
@@ -8098,15 +8104,15 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8098
8104
|
"large",
|
|
8099
8105
|
/**
|
|
8100
8106
|
* Heights and max heights for Panel
|
|
8101
|
-
* Mobile: full height
|
|
8107
|
+
* Mobile: full height (h-full works with inset-0), Desktop: shrink-to-fit with max-height constraint
|
|
8102
8108
|
*/
|
|
8103
|
-
"min-h-
|
|
8109
|
+
"h-full sm:h-auto min-h-40 sm:min-h-0 max-h-full sm:max-h-[40vh]": t === /* inlined export .TYPE_PANEL */
|
|
8104
8110
|
"panel" && l === /* inlined export .SMALL */
|
|
8105
8111
|
"small",
|
|
8106
|
-
"min-h-
|
|
8112
|
+
"h-full sm:h-auto min-h-40 sm:min-h-0 max-h-full sm:max-h-[60vh]": t === /* inlined export .TYPE_PANEL */
|
|
8107
8113
|
"panel" && l === /* inlined export .MEDIUM */
|
|
8108
8114
|
"medium",
|
|
8109
|
-
"min-h-
|
|
8115
|
+
"h-full sm:h-auto min-h-40 sm:min-h-0 max-h-full sm:max-h-[95vh]": t === /* inlined export .TYPE_PANEL */
|
|
8110
8116
|
"panel" && l === /* inlined export .LARGE */
|
|
8111
8117
|
"large",
|
|
8112
8118
|
/**
|
|
@@ -8119,25 +8125,25 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8119
8125
|
/**
|
|
8120
8126
|
* Messagebox styles
|
|
8121
8127
|
*/
|
|
8122
|
-
[`${nb} rounded-3xl border`]: t ===
|
|
8128
|
+
[`${nb} rounded-3xl border`]: t === qe,
|
|
8123
8129
|
/**
|
|
8124
8130
|
* Widths and max widths for Messagebox when no className is provided
|
|
8125
8131
|
*/
|
|
8126
|
-
"w-[95%] sm:w-[50%] md:max-w-2xl": t ===
|
|
8132
|
+
"w-[95%] sm:w-[50%] md:max-w-2xl": t === qe && !e,
|
|
8127
8133
|
/**
|
|
8128
8134
|
* Heights and max heights for Messagebox
|
|
8129
8135
|
*/
|
|
8130
|
-
"h-64": t ===
|
|
8136
|
+
"h-64": t === qe && l === /* inlined export .SMALL */
|
|
8131
8137
|
"small",
|
|
8132
|
-
"h-80": t ===
|
|
8138
|
+
"h-80": t === qe && l === /* inlined export .MEDIUM */
|
|
8133
8139
|
"medium",
|
|
8134
|
-
"h-96": t ===
|
|
8140
|
+
"h-96": t === qe && l === /* inlined export .LARGE */
|
|
8135
8141
|
"large",
|
|
8136
8142
|
/**
|
|
8137
8143
|
* Messagebox border colors
|
|
8138
8144
|
*/
|
|
8139
|
-
"border-border-dark": n === "dark" && t ===
|
|
8140
|
-
"border-border-accent": n === "light" && t ===
|
|
8145
|
+
"border-border-dark": n === "dark" && t === qe,
|
|
8146
|
+
"border-border-accent": n === "light" && t === qe,
|
|
8141
8147
|
[`${e}`]: !!e
|
|
8142
8148
|
}),
|
|
8143
8149
|
innerWrapper: "content flex flex-col rounded-[inherit] relative min-h-full",
|
|
@@ -8151,20 +8157,20 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8151
8157
|
"panel",
|
|
8152
8158
|
"sm:rounded-b-3xl": t === /* inlined export .TYPE_PANEL */
|
|
8153
8159
|
"panel",
|
|
8154
|
-
"rounded-b-3xl": t ===
|
|
8160
|
+
"rounded-b-3xl": t === qe
|
|
8155
8161
|
}),
|
|
8156
8162
|
header: Z("flex flex-row-reverse items-center justify-between h-12", ha({
|
|
8157
8163
|
blurEffect: i
|
|
8158
8164
|
}), "top-0", {
|
|
8159
8165
|
"sm:rounded-t-3xl": t === /* inlined export .TYPE_PANEL */
|
|
8160
8166
|
"panel",
|
|
8161
|
-
"rounded-t-3xl": t ===
|
|
8167
|
+
"rounded-t-3xl": t === qe
|
|
8162
8168
|
}),
|
|
8163
8169
|
title: "mb-0 pt-2 pl-4 pr-2 pb-2",
|
|
8164
8170
|
closeWrapper: "pr-[18px]",
|
|
8165
8171
|
closeButton: Z(
|
|
8166
8172
|
"flex items-center justify-center",
|
|
8167
|
-
"size-
|
|
8173
|
+
"size-3",
|
|
8168
8174
|
"p-1",
|
|
8169
8175
|
"rounded-full",
|
|
8170
8176
|
"border",
|
|
@@ -8256,10 +8262,10 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8256
8262
|
style: f,
|
|
8257
8263
|
title: n,
|
|
8258
8264
|
initialFocus: m,
|
|
8259
|
-
children: /* @__PURE__ */
|
|
8265
|
+
children: /* @__PURE__ */ D("div", {
|
|
8260
8266
|
className: w.innerWrapper,
|
|
8261
8267
|
children: [
|
|
8262
|
-
/* @__PURE__ */
|
|
8268
|
+
/* @__PURE__ */ D("div", {
|
|
8263
8269
|
className: w.header,
|
|
8264
8270
|
children: [
|
|
8265
8271
|
/* @__PURE__ */ g("div", {
|
|
@@ -8489,7 +8495,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8489
8495
|
subLabel: !!m
|
|
8490
8496
|
}), y = (E) => {
|
|
8491
8497
|
u || p(1), t?.(E.target.checked);
|
|
8492
|
-
}, w = m ? /* @__PURE__ */
|
|
8498
|
+
}, w = m ? /* @__PURE__ */ D("span", {
|
|
8493
8499
|
className: "flex flex-col gap-0.5",
|
|
8494
8500
|
children: [
|
|
8495
8501
|
/* @__PURE__ */ g("span", {
|
|
@@ -8505,11 +8511,11 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8505
8511
|
className: f.label,
|
|
8506
8512
|
children: n
|
|
8507
8513
|
});
|
|
8508
|
-
return /* @__PURE__ */
|
|
8514
|
+
return /* @__PURE__ */ D("label", {
|
|
8509
8515
|
className: f.wrapper,
|
|
8510
8516
|
children: [
|
|
8511
8517
|
h === "left" && w,
|
|
8512
|
-
/* @__PURE__ */
|
|
8518
|
+
/* @__PURE__ */ D("div", {
|
|
8513
8519
|
className: f.toggleWrapper,
|
|
8514
8520
|
children: [
|
|
8515
8521
|
/* @__PURE__ */ g("input", {
|
|
@@ -8559,7 +8565,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8559
8565
|
toggleChecked: c,
|
|
8560
8566
|
onToggleChange: d
|
|
8561
8567
|
}) => {
|
|
8562
|
-
const u = G(null), h = /* @__PURE__ */
|
|
8568
|
+
const u = G(null), h = /* @__PURE__ */ D(co, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
8563
8569
|
/* @__PURE__ */ g(Ut, { children: !s && /* @__PURE__ */ g(
|
|
8564
8570
|
Cb,
|
|
8565
8571
|
{
|
|
@@ -8581,7 +8587,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8581
8587
|
children: o.confirmAction
|
|
8582
8588
|
}
|
|
8583
8589
|
) })
|
|
8584
|
-
] }), m = a ? /* @__PURE__ */
|
|
8590
|
+
] }), m = a ? /* @__PURE__ */ D(
|
|
8585
8591
|
co,
|
|
8586
8592
|
{
|
|
8587
8593
|
alignHorizontal: "space-between",
|
|
@@ -8626,7 +8632,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8626
8632
|
const { getAccessToken: t, user: n } = Le(), {
|
|
8627
8633
|
state: { privateChat: r, provider: o, tokenUsage: s },
|
|
8628
8634
|
dispatch: i
|
|
8629
|
-
} = ue($e), { messages: a, id: l } = bt(), { mutateAsync: c } = lu({ getAccessToken: t }), [d, u] =
|
|
8635
|
+
} = ue($e), { messages: a, id: l } = bt(), { mutateAsync: c } = lu({ getAccessToken: t }), [d, u] = Ke(), [h, m] = V(!1), [p, f] = V(!1), [y, w] = Qe({
|
|
8630
8636
|
key: je + uu,
|
|
8631
8637
|
initialValue: ""
|
|
8632
8638
|
}), E = mr(tr.TOOL.MEMORIES), { data: _, isSuccess: v } = yt({
|
|
@@ -8673,7 +8679,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8673
8679
|
});
|
|
8674
8680
|
}
|
|
8675
8681
|
};
|
|
8676
|
-
return /* @__PURE__ */
|
|
8682
|
+
return /* @__PURE__ */ D(Rt, { children: [
|
|
8677
8683
|
p && /* @__PURE__ */ g(
|
|
8678
8684
|
mn,
|
|
8679
8685
|
{
|
|
@@ -8691,8 +8697,8 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8691
8697
|
cancelAction: "Cancel",
|
|
8692
8698
|
title: "Private Chat"
|
|
8693
8699
|
},
|
|
8694
|
-
children: /* @__PURE__ */
|
|
8695
|
-
/* @__PURE__ */
|
|
8700
|
+
children: /* @__PURE__ */ D("ul", { children: [
|
|
8701
|
+
/* @__PURE__ */ D("li", { children: [
|
|
8696
8702
|
"In Private Mode, your messages will not be saved to your chat history. ",
|
|
8697
8703
|
E && "Memories will also be disabled."
|
|
8698
8704
|
] }),
|
|
@@ -8979,14 +8985,14 @@ function Ac(e) {
|
|
|
8979
8985
|
const t = b.useContext($b);
|
|
8980
8986
|
return e || t || "ltr";
|
|
8981
8987
|
}
|
|
8982
|
-
function
|
|
8988
|
+
function Ge(e) {
|
|
8983
8989
|
const t = b.useRef(e);
|
|
8984
8990
|
return b.useEffect(() => {
|
|
8985
8991
|
t.current = e;
|
|
8986
8992
|
}), b.useMemo(() => (...n) => t.current?.(...n), []);
|
|
8987
8993
|
}
|
|
8988
8994
|
function zb(e, t = globalThis?.document) {
|
|
8989
|
-
const n =
|
|
8995
|
+
const n = Ge(e);
|
|
8990
8996
|
b.useEffect(() => {
|
|
8991
8997
|
const r = (o) => {
|
|
8992
8998
|
o.key === "Escape" && n(o);
|
|
@@ -9059,7 +9065,7 @@ var jb = "DismissableLayerBranch", Bb = b.forwardRef((e, t) => {
|
|
|
9059
9065
|
});
|
|
9060
9066
|
Bb.displayName = jb;
|
|
9061
9067
|
function Vb(e, t = globalThis?.document) {
|
|
9062
|
-
const n =
|
|
9068
|
+
const n = Ge(e), r = b.useRef(!1), o = b.useRef(() => {
|
|
9063
9069
|
});
|
|
9064
9070
|
return b.useEffect(() => {
|
|
9065
9071
|
const s = (a) => {
|
|
@@ -9089,7 +9095,7 @@ function Vb(e, t = globalThis?.document) {
|
|
|
9089
9095
|
};
|
|
9090
9096
|
}
|
|
9091
9097
|
function Hb(e, t = globalThis?.document) {
|
|
9092
|
-
const n =
|
|
9098
|
+
const n = Ge(e), r = b.useRef(!1);
|
|
9093
9099
|
return b.useEffect(() => {
|
|
9094
9100
|
const o = (s) => {
|
|
9095
9101
|
s.target && !r.current && Nc(Ub, n, { originalEvent: s }, {
|
|
@@ -9130,7 +9136,7 @@ var qr = "focusScope.autoFocusOnMount", Qr = "focusScope.autoFocusOnUnmount", Ea
|
|
|
9130
9136
|
onMountAutoFocus: o,
|
|
9131
9137
|
onUnmountAutoFocus: s,
|
|
9132
9138
|
...i
|
|
9133
|
-
} = e, [a, l] = b.useState(null), c =
|
|
9139
|
+
} = e, [a, l] = b.useState(null), c = Ge(o), d = Ge(s), u = b.useRef(null), h = we(t, (f) => l(f)), m = b.useRef({
|
|
9134
9140
|
paused: !1,
|
|
9135
9141
|
pause() {
|
|
9136
9142
|
this.paused = !0;
|
|
@@ -9327,35 +9333,35 @@ function ow(e) {
|
|
|
9327
9333
|
isPositioned: !1
|
|
9328
9334
|
}), [h, m] = b.useState(r);
|
|
9329
9335
|
gr(h, r) || m(r);
|
|
9330
|
-
const [p, f] = b.useState(null), [y, w] = b.useState(null), E = b.useCallback((
|
|
9331
|
-
|
|
9332
|
-
}, []), _ = b.useCallback((
|
|
9333
|
-
|
|
9334
|
-
}, []), v = s || p, I = i || y, T = b.useRef(null), S = b.useRef(null), x = b.useRef(d), O = l != null, N = eo(l), H = eo(o),
|
|
9336
|
+
const [p, f] = b.useState(null), [y, w] = b.useState(null), E = b.useCallback(($) => {
|
|
9337
|
+
$ !== T.current && (T.current = $, f($));
|
|
9338
|
+
}, []), _ = b.useCallback(($) => {
|
|
9339
|
+
$ !== S.current && (S.current = $, w($));
|
|
9340
|
+
}, []), v = s || p, I = i || y, T = b.useRef(null), S = b.useRef(null), x = b.useRef(d), O = l != null, N = eo(l), H = eo(o), k = eo(c), L = b.useCallback(() => {
|
|
9335
9341
|
if (!T.current || !S.current)
|
|
9336
9342
|
return;
|
|
9337
|
-
const
|
|
9343
|
+
const $ = {
|
|
9338
9344
|
placement: t,
|
|
9339
9345
|
strategy: n,
|
|
9340
9346
|
middleware: h
|
|
9341
9347
|
};
|
|
9342
|
-
H.current && (
|
|
9348
|
+
H.current && ($.platform = H.current), Ic(T.current, S.current, $).then((A) => {
|
|
9343
9349
|
const ie = {
|
|
9344
9350
|
...A,
|
|
9345
9351
|
// The floating element's position may be recomputed while it's closed
|
|
9346
9352
|
// but still mounted (such as when transitioning out). To ensure
|
|
9347
9353
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
9348
9354
|
// setting it to `true` when `open === false` (must be specified).
|
|
9349
|
-
isPositioned:
|
|
9355
|
+
isPositioned: k.current !== !1
|
|
9350
9356
|
};
|
|
9351
9357
|
R.current && !gr(x.current, ie) && (x.current = ie, qa.flushSync(() => {
|
|
9352
9358
|
u(ie);
|
|
9353
9359
|
}));
|
|
9354
9360
|
});
|
|
9355
|
-
}, [h, t, n, H,
|
|
9361
|
+
}, [h, t, n, H, k]);
|
|
9356
9362
|
Xn(() => {
|
|
9357
|
-
c === !1 && x.current.isPositioned && (x.current.isPositioned = !1, u((
|
|
9358
|
-
|
|
9363
|
+
c === !1 && x.current.isPositioned && (x.current.isPositioned = !1, u(($) => ({
|
|
9364
|
+
...$,
|
|
9359
9365
|
isPositioned: !1
|
|
9360
9366
|
})));
|
|
9361
9367
|
}, [c]);
|
|
@@ -9365,10 +9371,10 @@ function ow(e) {
|
|
|
9365
9371
|
}), []), Xn(() => {
|
|
9366
9372
|
if (v && (T.current = v), I && (S.current = I), v && I) {
|
|
9367
9373
|
if (N.current)
|
|
9368
|
-
return N.current(v, I,
|
|
9369
|
-
|
|
9374
|
+
return N.current(v, I, L);
|
|
9375
|
+
L();
|
|
9370
9376
|
}
|
|
9371
|
-
}, [v, I,
|
|
9377
|
+
}, [v, I, L, N, O]);
|
|
9372
9378
|
const X = b.useMemo(() => ({
|
|
9373
9379
|
reference: T,
|
|
9374
9380
|
floating: S,
|
|
@@ -9378,16 +9384,16 @@ function ow(e) {
|
|
|
9378
9384
|
reference: v,
|
|
9379
9385
|
floating: I
|
|
9380
9386
|
}), [v, I]), q = b.useMemo(() => {
|
|
9381
|
-
const
|
|
9387
|
+
const $ = {
|
|
9382
9388
|
position: n,
|
|
9383
9389
|
left: 0,
|
|
9384
9390
|
top: 0
|
|
9385
9391
|
};
|
|
9386
9392
|
if (!U.floating)
|
|
9387
|
-
return
|
|
9393
|
+
return $;
|
|
9388
9394
|
const A = Ta(U.floating, d.x), ie = Ta(U.floating, d.y);
|
|
9389
9395
|
return a ? {
|
|
9390
|
-
|
|
9396
|
+
...$,
|
|
9391
9397
|
transform: "translate(" + A + "px, " + ie + "px)",
|
|
9392
9398
|
...Mc(U.floating) >= 1.5 && {
|
|
9393
9399
|
willChange: "transform"
|
|
@@ -9400,11 +9406,11 @@ function ow(e) {
|
|
|
9400
9406
|
}, [n, a, U.floating, d.x, d.y]);
|
|
9401
9407
|
return b.useMemo(() => ({
|
|
9402
9408
|
...d,
|
|
9403
|
-
update:
|
|
9409
|
+
update: L,
|
|
9404
9410
|
refs: X,
|
|
9405
9411
|
elements: U,
|
|
9406
9412
|
floatingStyles: q
|
|
9407
|
-
}), [d,
|
|
9413
|
+
}), [d, L, X, U, q]);
|
|
9408
9414
|
}
|
|
9409
9415
|
const sw = (e) => {
|
|
9410
9416
|
function t(n) {
|
|
@@ -9520,12 +9526,12 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9520
9526
|
updatePositionStrategy: m = "optimized",
|
|
9521
9527
|
onPlaced: p,
|
|
9522
9528
|
...f
|
|
9523
|
-
} = e, y = zc(Xo, n), [w, E] = b.useState(null), _ = we(t, (se) => E(se)), [v, I] = b.useState(null), T = hw(v), S = T?.width ?? 0, x = T?.height ?? 0, O = r + (s !== "center" ? "-" + s : ""), N = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, H = Array.isArray(c) ? c : [c],
|
|
9529
|
+
} = e, y = zc(Xo, n), [w, E] = b.useState(null), _ = we(t, (se) => E(se)), [v, I] = b.useState(null), T = hw(v), S = T?.width ?? 0, x = T?.height ?? 0, O = r + (s !== "center" ? "-" + s : ""), N = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, H = Array.isArray(c) ? c : [c], k = H.length > 0, L = {
|
|
9524
9530
|
padding: N,
|
|
9525
9531
|
boundary: H.filter(ww),
|
|
9526
9532
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
9527
|
-
altBoundary:
|
|
9528
|
-
}, { refs: R, floatingStyles: X, placement: U, isPositioned: q, middlewareData:
|
|
9533
|
+
altBoundary: k
|
|
9534
|
+
}, { refs: R, floatingStyles: X, placement: U, isPositioned: q, middlewareData: $ } = ow({
|
|
9529
9535
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
9530
9536
|
strategy: "fixed",
|
|
9531
9537
|
placement: O,
|
|
@@ -9541,11 +9547,11 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9541
9547
|
mainAxis: !0,
|
|
9542
9548
|
crossAxis: !1,
|
|
9543
9549
|
limiter: u === "partial" ? cw() : void 0,
|
|
9544
|
-
...
|
|
9550
|
+
...L
|
|
9545
9551
|
}),
|
|
9546
|
-
l && lw({ ...
|
|
9552
|
+
l && lw({ ...L }),
|
|
9547
9553
|
uw({
|
|
9548
|
-
...
|
|
9554
|
+
...L,
|
|
9549
9555
|
apply: ({ elements: se, rects: Et, availableWidth: kr, availableHeight: Rn }) => {
|
|
9550
9556
|
const { width: Yt, height: Pr } = Et.reference, Pt = se.floating.style;
|
|
9551
9557
|
Pt.setProperty("--radix-popper-available-width", `${kr}px`), Pt.setProperty("--radix-popper-available-height", `${Rn}px`), Pt.setProperty("--radix-popper-anchor-width", `${Yt}px`), Pt.setProperty("--radix-popper-anchor-height", `${Pr}px`);
|
|
@@ -9553,15 +9559,15 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9553
9559
|
}),
|
|
9554
9560
|
v && fw({ element: v, padding: a }),
|
|
9555
9561
|
_w({ arrowWidth: S, arrowHeight: x }),
|
|
9556
|
-
h && dw({ strategy: "referenceHidden", ...
|
|
9562
|
+
h && dw({ strategy: "referenceHidden", ...L })
|
|
9557
9563
|
]
|
|
9558
|
-
}), [A, ie] = Hc(U), ve =
|
|
9564
|
+
}), [A, ie] = Hc(U), ve = Ge(p);
|
|
9559
9565
|
vt(() => {
|
|
9560
9566
|
q && ve?.();
|
|
9561
9567
|
}, [q, ve]);
|
|
9562
|
-
const
|
|
9568
|
+
const Je = $.arrow?.x, at = $.arrow?.y, ye = $.arrow?.centerOffset !== 0, [Ce, Xe] = b.useState();
|
|
9563
9569
|
return vt(() => {
|
|
9564
|
-
w &&
|
|
9570
|
+
w && Xe(window.getComputedStyle(w).zIndex);
|
|
9565
9571
|
}, [w]), /* @__PURE__ */ g(
|
|
9566
9572
|
"div",
|
|
9567
9573
|
{
|
|
@@ -9574,13 +9580,13 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9574
9580
|
minWidth: "max-content",
|
|
9575
9581
|
zIndex: Ce,
|
|
9576
9582
|
"--radix-popper-transform-origin": [
|
|
9577
|
-
|
|
9578
|
-
|
|
9583
|
+
$.transformOrigin?.x,
|
|
9584
|
+
$.transformOrigin?.y
|
|
9579
9585
|
].join(" "),
|
|
9580
9586
|
// hide the content if using the hide middleware and should be hidden
|
|
9581
9587
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
9582
9588
|
// as if the PopperContent isn't there at all
|
|
9583
|
-
|
|
9589
|
+
...$.hide?.referenceHidden && {
|
|
9584
9590
|
visibility: "hidden",
|
|
9585
9591
|
pointerEvents: "none"
|
|
9586
9592
|
}
|
|
@@ -9592,7 +9598,7 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9592
9598
|
scope: n,
|
|
9593
9599
|
placedSide: A,
|
|
9594
9600
|
onArrowChange: I,
|
|
9595
|
-
arrowX:
|
|
9601
|
+
arrowX: Je,
|
|
9596
9602
|
arrowY: at,
|
|
9597
9603
|
shouldHideArrow: ye,
|
|
9598
9604
|
children: /* @__PURE__ */ g(
|
|
@@ -9779,7 +9785,7 @@ var Mw = b.forwardRef((e, t) => {
|
|
|
9779
9785
|
defaultProp: a ?? null,
|
|
9780
9786
|
onChange: l,
|
|
9781
9787
|
caller: Cn
|
|
9782
|
-
}), [w, E] = b.useState(!1), _ =
|
|
9788
|
+
}), [w, E] = b.useState(!1), _ = Ge(c), v = Kc(n), I = b.useRef(!1), [T, S] = b.useState(0);
|
|
9783
9789
|
return b.useEffect(() => {
|
|
9784
9790
|
const x = h.current;
|
|
9785
9791
|
if (x)
|
|
@@ -9821,7 +9827,7 @@ var Mw = b.forwardRef((e, t) => {
|
|
|
9821
9827
|
if (x.target === x.currentTarget && O && !w) {
|
|
9822
9828
|
const N = new CustomEvent(to, Rw);
|
|
9823
9829
|
if (x.currentTarget.dispatchEvent(N), !N.defaultPrevented) {
|
|
9824
|
-
const H = v().filter((U) => U.focusable),
|
|
9830
|
+
const H = v().filter((U) => U.focusable), k = H.find((U) => U.active), L = H.find((U) => U.id === f), X = [k, L, ...H].filter(
|
|
9825
9831
|
Boolean
|
|
9826
9832
|
).map((U) => U.ref.current);
|
|
9827
9833
|
Qc(X, d);
|
|
@@ -10380,8 +10386,8 @@ function I_(e) {
|
|
|
10380
10386
|
return !1;
|
|
10381
10387
|
if (!r.current && "changedTouches" in f && (_ || v) && (r.current = I), !I)
|
|
10382
10388
|
return !0;
|
|
10383
|
-
var
|
|
10384
|
-
return w_(
|
|
10389
|
+
var k = r.current || I;
|
|
10390
|
+
return w_(k, y, f, k === "h" ? _ : v);
|
|
10385
10391
|
}, []), l = b.useCallback(function(f) {
|
|
10386
10392
|
var y = f;
|
|
10387
10393
|
if (!(!zt.length || zt[zt.length - 1] !== s)) {
|
|
@@ -10453,7 +10459,7 @@ var Ao = ["Enter", " "], x_ = ["ArrowDown", "PageUp", "Home"], ll = ["ArrowUp",
|
|
|
10453
10459
|
$c,
|
|
10454
10460
|
Yc
|
|
10455
10461
|
]), xn = $c(), dl = Yc(), [fl, _t] = kt(Tn), [P_, An] = kt(Tn), pl = (e) => {
|
|
10456
|
-
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = xn(t), [l, c] = b.useState(null), d = b.useRef(!1), u =
|
|
10462
|
+
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = xn(t), [l, c] = b.useState(null), d = b.useRef(!1), u = Ge(s), h = Ac(o);
|
|
10457
10463
|
return b.useEffect(() => {
|
|
10458
10464
|
const m = () => {
|
|
10459
10465
|
d.current = !0, document.addEventListener("pointerdown", p, { capture: !0, once: !0 }), document.addEventListener("pointermove", p, { capture: !0, once: !0 });
|
|
@@ -10556,14 +10562,14 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10556
10562
|
onDismiss: m,
|
|
10557
10563
|
disableOutsideScroll: p,
|
|
10558
10564
|
...f
|
|
10559
|
-
} = e, y = _t(xe, n), w = An(xe, n), E = xn(n), _ = dl(n), v = N_(n), [I, T] = b.useState(null), S = b.useRef(null), x = we(t, S, y.onContentChange), O = b.useRef(0), N = b.useRef(""), H = b.useRef(0),
|
|
10560
|
-
const ie = N.current + A, ve = v().filter((se) => !se.disabled),
|
|
10565
|
+
} = e, y = _t(xe, n), w = An(xe, n), E = xn(n), _ = dl(n), v = N_(n), [I, T] = b.useState(null), S = b.useRef(null), x = we(t, S, y.onContentChange), O = b.useRef(0), N = b.useRef(""), H = b.useRef(0), k = b.useRef(null), L = b.useRef("right"), R = b.useRef(0), X = p ? cl : b.Fragment, U = p ? { as: Z_, allowPinchZoom: !0 } : void 0, q = (A) => {
|
|
10566
|
+
const ie = N.current + A, ve = v().filter((se) => !se.disabled), Je = document.activeElement, at = ve.find((se) => se.ref.current === Je)?.textValue, ye = ve.map((se) => se.textValue), Ce = X_(ye, ie, at), Xe = ve.find((se) => se.textValue === Ce)?.ref.current;
|
|
10561
10567
|
(function se(Et) {
|
|
10562
10568
|
N.current = Et, window.clearTimeout(O.current), Et !== "" && (O.current = window.setTimeout(() => se(""), 1e3));
|
|
10563
|
-
})(ie),
|
|
10569
|
+
})(ie), Xe && setTimeout(() => Xe.focus());
|
|
10564
10570
|
};
|
|
10565
10571
|
b.useEffect(() => () => window.clearTimeout(O.current), []), Wb();
|
|
10566
|
-
const
|
|
10572
|
+
const $ = b.useCallback((A) => L.current === k.current?.side && Q_(A, k.current?.area), []);
|
|
10567
10573
|
return /* @__PURE__ */ g(
|
|
10568
10574
|
L_,
|
|
10569
10575
|
{
|
|
@@ -10571,25 +10577,25 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10571
10577
|
searchRef: N,
|
|
10572
10578
|
onItemEnter: b.useCallback(
|
|
10573
10579
|
(A) => {
|
|
10574
|
-
|
|
10580
|
+
$(A) && A.preventDefault();
|
|
10575
10581
|
},
|
|
10576
|
-
[
|
|
10582
|
+
[$]
|
|
10577
10583
|
),
|
|
10578
10584
|
onItemLeave: b.useCallback(
|
|
10579
10585
|
(A) => {
|
|
10580
|
-
|
|
10586
|
+
$(A) || (S.current?.focus(), T(null));
|
|
10581
10587
|
},
|
|
10582
|
-
[
|
|
10588
|
+
[$]
|
|
10583
10589
|
),
|
|
10584
10590
|
onTriggerLeave: b.useCallback(
|
|
10585
10591
|
(A) => {
|
|
10586
|
-
|
|
10592
|
+
$(A) && A.preventDefault();
|
|
10587
10593
|
},
|
|
10588
|
-
[
|
|
10594
|
+
[$]
|
|
10589
10595
|
),
|
|
10590
10596
|
pointerGraceTimerRef: H,
|
|
10591
10597
|
onPointerGraceIntentChange: b.useCallback((A) => {
|
|
10592
|
-
|
|
10598
|
+
k.current = A;
|
|
10593
10599
|
}, []),
|
|
10594
10600
|
children: /* @__PURE__ */ g(X, { ...U, children: /* @__PURE__ */ g(
|
|
10595
10601
|
kc,
|
|
@@ -10637,13 +10643,13 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10637
10643
|
ref: x,
|
|
10638
10644
|
style: { outline: "none", ...f.style },
|
|
10639
10645
|
onKeyDown: W(f.onKeyDown, (A) => {
|
|
10640
|
-
const ve = A.target.closest("[data-radix-menu-content]") === A.currentTarget,
|
|
10641
|
-
ve && (A.key === "Tab" && A.preventDefault(), !
|
|
10646
|
+
const ve = A.target.closest("[data-radix-menu-content]") === A.currentTarget, Je = A.ctrlKey || A.altKey || A.metaKey, at = A.key.length === 1;
|
|
10647
|
+
ve && (A.key === "Tab" && A.preventDefault(), !Je && at && q(A.key));
|
|
10642
10648
|
const ye = S.current;
|
|
10643
10649
|
if (A.target !== ye || !A_.includes(A.key)) return;
|
|
10644
10650
|
A.preventDefault();
|
|
10645
|
-
const
|
|
10646
|
-
ll.includes(A.key) &&
|
|
10651
|
+
const Xe = v().filter((se) => !se.disabled).map((se) => se.ref.current);
|
|
10652
|
+
ll.includes(A.key) && Xe.reverse(), Y_(Xe);
|
|
10647
10653
|
}),
|
|
10648
10654
|
onBlur: W(e.onBlur, (A) => {
|
|
10649
10655
|
A.currentTarget.contains(A.target) || (window.clearTimeout(O.current), N.current = "");
|
|
@@ -10653,8 +10659,8 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10653
10659
|
vn((A) => {
|
|
10654
10660
|
const ie = A.target, ve = R.current !== A.clientX;
|
|
10655
10661
|
if (A.currentTarget.contains(ie) && ve) {
|
|
10656
|
-
const
|
|
10657
|
-
|
|
10662
|
+
const Je = A.clientX > R.current ? "right" : "left";
|
|
10663
|
+
L.current = Je, R.current = A.clientX;
|
|
10658
10664
|
}
|
|
10659
10665
|
})
|
|
10660
10666
|
)
|
|
@@ -10781,7 +10787,7 @@ var wl = "MenuRadioGroup", [B_, V_] = kt(
|
|
|
10781
10787
|
} }
|
|
10782
10788
|
), _l = b.forwardRef(
|
|
10783
10789
|
(e, t) => {
|
|
10784
|
-
const { value: n, onValueChange: r, ...o } = e, s =
|
|
10790
|
+
const { value: n, onValueChange: r, ...o } = e, s = Ge(r);
|
|
10785
10791
|
return /* @__PURE__ */ g(B_, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ g(ns, { ...o, ref: t }) });
|
|
10786
10792
|
}
|
|
10787
10793
|
);
|
|
@@ -10853,7 +10859,7 @@ var G_ = "MenuArrow", xl = b.forwardRef(
|
|
|
10853
10859
|
);
|
|
10854
10860
|
xl.displayName = G_;
|
|
10855
10861
|
var os = "MenuSub", [K_, Al] = kt(os), Rl = (e) => {
|
|
10856
|
-
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = _t(os, t), i = xn(t), [a, l] = b.useState(null), [c, d] = b.useState(null), u =
|
|
10862
|
+
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = _t(os, t), i = xn(t), [a, l] = b.useState(null), [c, d] = b.useState(null), u = Ge(o);
|
|
10857
10863
|
return b.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ g(Wc, { ...i, children: /* @__PURE__ */ g(
|
|
10858
10864
|
fl,
|
|
10859
10865
|
{
|
|
@@ -11207,13 +11213,13 @@ var LE = "DropdownMenuSubContent", Hl = b.forwardRef((e, t) => {
|
|
|
11207
11213
|
Hl.displayName = LE;
|
|
11208
11214
|
var $E = Dl, zE = $l, Wl = zl, ZE = Fl, FE = Ul, Pa = jl, UE = Bl, jE = ME, BE = Vl, VE = Hl;
|
|
11209
11215
|
/*!
|
|
11210
|
-
@versini/ui-dropdown v1.1
|
|
11216
|
+
@versini/ui-dropdown v1.2.1
|
|
11211
11217
|
© 2025 gizmette.com
|
|
11212
11218
|
*/
|
|
11213
11219
|
try {
|
|
11214
11220
|
window.__VERSINI_UI_DROPDOWN__ || (window.__VERSINI_UI_DROPDOWN__ = {
|
|
11215
|
-
version: "1.1
|
|
11216
|
-
buildTime: "12/
|
|
11221
|
+
version: "1.2.1",
|
|
11222
|
+
buildTime: "12/18/2025 09:09 AM EST",
|
|
11217
11223
|
homepage: "https://www.npmjs.com/package/@versini/ui-dropdown",
|
|
11218
11224
|
license: "MIT"
|
|
11219
11225
|
});
|
|
@@ -11232,13 +11238,13 @@ const Ma = (e) => {
|
|
|
11232
11238
|
return "Element";
|
|
11233
11239
|
};
|
|
11234
11240
|
/*!
|
|
11235
|
-
@versini/ui-dropdown v1.1
|
|
11241
|
+
@versini/ui-dropdown v1.2.1
|
|
11236
11242
|
© 2025 gizmette.com
|
|
11237
11243
|
*/
|
|
11238
11244
|
try {
|
|
11239
11245
|
window.__VERSINI_UI_DROPDOWN__ || (window.__VERSINI_UI_DROPDOWN__ = {
|
|
11240
|
-
version: "1.1
|
|
11241
|
-
buildTime: "12/
|
|
11246
|
+
version: "1.2.1",
|
|
11247
|
+
buildTime: "12/18/2025 09:09 AM EST",
|
|
11242
11248
|
homepage: "https://www.npmjs.com/package/@versini/ui-dropdown",
|
|
11243
11249
|
license: "MIT"
|
|
11244
11250
|
});
|
|
@@ -11254,7 +11260,7 @@ const HE = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11254
11260
|
"aria-label": n,
|
|
11255
11261
|
ref: f
|
|
11256
11262
|
}) : null;
|
|
11257
|
-
return /* @__PURE__ */
|
|
11263
|
+
return /* @__PURE__ */ D($E, {
|
|
11258
11264
|
onOpenChange: (E) => {
|
|
11259
11265
|
if (d(E), o?.(E), E && f.current) {
|
|
11260
11266
|
const _ = f.current.closest("dialog");
|
|
@@ -11289,14 +11295,21 @@ const HE = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11289
11295
|
});
|
|
11290
11296
|
};
|
|
11291
11297
|
Nr.displayName = "DropdownMenu";
|
|
11292
|
-
const Gl = ({ label: e,
|
|
11298
|
+
const Gl = ({ label: e, icon: t, children: n, disabled: r = !1, sideOffset: o = 2, alignOffset: s = -4 }) => /* @__PURE__ */ D(jE, {
|
|
11293
11299
|
children: [
|
|
11294
|
-
/* @__PURE__ */
|
|
11300
|
+
/* @__PURE__ */ D(BE, {
|
|
11295
11301
|
className: GE,
|
|
11296
|
-
disabled:
|
|
11302
|
+
disabled: r,
|
|
11297
11303
|
children: [
|
|
11298
|
-
/* @__PURE__ */
|
|
11299
|
-
|
|
11304
|
+
/* @__PURE__ */ D("span", {
|
|
11305
|
+
className: "flex items-center",
|
|
11306
|
+
children: [
|
|
11307
|
+
t,
|
|
11308
|
+
/* @__PURE__ */ g("span", {
|
|
11309
|
+
className: t ? "pl-2" : "",
|
|
11310
|
+
children: e
|
|
11311
|
+
})
|
|
11312
|
+
]
|
|
11300
11313
|
}),
|
|
11301
11314
|
/* @__PURE__ */ g(Gu, {
|
|
11302
11315
|
className: "ml-2",
|
|
@@ -11308,10 +11321,10 @@ const Gl = ({ label: e, children: t, disabled: n = !1, sideOffset: r = 2, alignO
|
|
|
11308
11321
|
/* @__PURE__ */ g(Wl, {
|
|
11309
11322
|
children: /* @__PURE__ */ g(VE, {
|
|
11310
11323
|
className: WE,
|
|
11311
|
-
sideOffset:
|
|
11312
|
-
alignOffset:
|
|
11324
|
+
sideOffset: o,
|
|
11325
|
+
alignOffset: s,
|
|
11313
11326
|
loop: !0,
|
|
11314
|
-
children:
|
|
11327
|
+
children: n
|
|
11315
11328
|
})
|
|
11316
11329
|
})
|
|
11317
11330
|
]
|
|
@@ -11325,22 +11338,29 @@ const Kl = ({ className: e, ...t }) => {
|
|
|
11325
11338
|
});
|
|
11326
11339
|
};
|
|
11327
11340
|
Kl.displayName = "DropdownMenuSeparator";
|
|
11328
|
-
const br = ({ className: e,
|
|
11329
|
-
const
|
|
11330
|
-
return /* @__PURE__ */
|
|
11331
|
-
className:
|
|
11332
|
-
...
|
|
11341
|
+
const br = ({ className: e, icon: t, children: n, ...r }) => {
|
|
11342
|
+
const o = Z(e, "pt-1 pb-2 mb-2", "text-sm text-copy-dark font-bold", "border-b border-border-medium", t && "flex items-center");
|
|
11343
|
+
return /* @__PURE__ */ D(FE, {
|
|
11344
|
+
className: o,
|
|
11345
|
+
...r,
|
|
11346
|
+
children: [
|
|
11347
|
+
t,
|
|
11348
|
+
/* @__PURE__ */ g("span", {
|
|
11349
|
+
className: t ? "px-2" : "",
|
|
11350
|
+
children: n
|
|
11351
|
+
})
|
|
11352
|
+
]
|
|
11333
11353
|
});
|
|
11334
11354
|
};
|
|
11335
11355
|
br.displayName = "DropdownMenuGroupLabel";
|
|
11336
11356
|
/*!
|
|
11337
|
-
@versini/ui-dropdown v1.1
|
|
11357
|
+
@versini/ui-dropdown v1.2.1
|
|
11338
11358
|
© 2025 gizmette.com
|
|
11339
11359
|
*/
|
|
11340
11360
|
try {
|
|
11341
11361
|
window.__VERSINI_UI_DROPDOWN__ || (window.__VERSINI_UI_DROPDOWN__ = {
|
|
11342
|
-
version: "1.1
|
|
11343
|
-
buildTime: "12/
|
|
11362
|
+
version: "1.2.1",
|
|
11363
|
+
buildTime: "12/18/2025 09:09 AM EST",
|
|
11344
11364
|
homepage: "https://www.npmjs.com/package/@versini/ui-dropdown",
|
|
11345
11365
|
license: "MIT"
|
|
11346
11366
|
});
|
|
@@ -11361,7 +11381,7 @@ const JE = Z("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
|
|
|
11361
11381
|
const h = Z(JE, {
|
|
11362
11382
|
"bg-none": !t && !i
|
|
11363
11383
|
});
|
|
11364
|
-
return /* @__PURE__ */
|
|
11384
|
+
return /* @__PURE__ */ D(Pa, {
|
|
11365
11385
|
className: h,
|
|
11366
11386
|
disabled: t,
|
|
11367
11387
|
onSelect: (p) => {
|
|
@@ -11396,7 +11416,7 @@ const XE = (e) => {
|
|
|
11396
11416
|
className: e,
|
|
11397
11417
|
defaultPlacement: t = "top-start"
|
|
11398
11418
|
}) => {
|
|
11399
|
-
const { dispatch: n, setChatId: r, setInitialMessages: o } = ue($e), { dispatch: s } = ue(ko), { getAccessToken: i, user: a } = Le(), [l, c] =
|
|
11419
|
+
const { dispatch: n, setChatId: r, setInitialMessages: o } = ue($e), { dispatch: s } = ue(ko), { getAccessToken: i, user: a } = Le(), [l, c] = Ke(), { data: d, isSuccess: u } = yt({
|
|
11400
11420
|
user: a?.username,
|
|
11401
11421
|
getAccessToken: i
|
|
11402
11422
|
}), h = (f, y) => {
|
|
@@ -11411,7 +11431,7 @@ const XE = (e) => {
|
|
|
11411
11431
|
prompt: f
|
|
11412
11432
|
}
|
|
11413
11433
|
});
|
|
11414
|
-
}, m = u && d && d.tags && XE(d.tags), p = /* @__PURE__ */
|
|
11434
|
+
}, m = u && d && d.tags && XE(d.tags), p = /* @__PURE__ */ D(
|
|
11415
11435
|
Nr,
|
|
11416
11436
|
{
|
|
11417
11437
|
mode: "light",
|
|
@@ -11481,7 +11501,7 @@ const XE = (e) => {
|
|
|
11481
11501
|
dispatch: r,
|
|
11482
11502
|
setChatId: o,
|
|
11483
11503
|
setInitialMessages: s
|
|
11484
|
-
} = ue($e), [i, a] =
|
|
11504
|
+
} = ue($e), [i, a] = Ke(), [l, c] = V(!1), [d, u] = V(!1), [h, m] = Qe({
|
|
11485
11505
|
key: je + du,
|
|
11486
11506
|
initialValue: ""
|
|
11487
11507
|
}), [p, f] = V(!1), y = (E) => {
|
|
@@ -11497,7 +11517,7 @@ const XE = (e) => {
|
|
|
11497
11517
|
}
|
|
11498
11518
|
});
|
|
11499
11519
|
};
|
|
11500
|
-
return /* @__PURE__ */
|
|
11520
|
+
return /* @__PURE__ */ D(Rt, { children: [
|
|
11501
11521
|
d && /* @__PURE__ */ g(
|
|
11502
11522
|
mn,
|
|
11503
11523
|
{
|
|
@@ -11529,7 +11549,7 @@ const XE = (e) => {
|
|
|
11529
11549
|
cancelAction: "Cancel",
|
|
11530
11550
|
title: "Reasoning Chat"
|
|
11531
11551
|
},
|
|
11532
|
-
children: /* @__PURE__ */
|
|
11552
|
+
children: /* @__PURE__ */ D("ul", { children: [
|
|
11533
11553
|
/* @__PURE__ */ g("li", { children: 'Your chat session will use "reasoning" model capabilities.' }),
|
|
11534
11554
|
/* @__PURE__ */ g("li", { children: "Response times will increase. Be patient." }),
|
|
11535
11555
|
/* @__PURE__ */ g("li", { children: "If you refresh your browser, the setting will revert to the default (non-reasoning) chat." })
|
|
@@ -11576,7 +11596,7 @@ const XE = (e) => {
|
|
|
11576
11596
|
}) => {
|
|
11577
11597
|
const { getAccessToken: t, user: n } = Le(), {
|
|
11578
11598
|
state: { loading: r, streaming: o }
|
|
11579
|
-
} = ue($e), [s, i] =
|
|
11599
|
+
} = ue($e), [s, i] = Ke(), { data: a, isSuccess: l } = yt({
|
|
11580
11600
|
user: n?.username,
|
|
11581
11601
|
getAccessToken: t
|
|
11582
11602
|
});
|
|
@@ -11694,14 +11714,14 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11694
11714
|
}), pS = ({
|
|
11695
11715
|
files: e,
|
|
11696
11716
|
clearFile: t
|
|
11697
|
-
}) => e && e.length > 0 && /* @__PURE__ */
|
|
11698
|
-
/* @__PURE__ */ g("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((n, r) => /* @__PURE__ */
|
|
11717
|
+
}) => e && e.length > 0 && /* @__PURE__ */ D("div", { className: "px-4 py-2", children: [
|
|
11718
|
+
/* @__PURE__ */ g("div", { className: "flex flex-wrap gap-2", children: Array.from(e).map((n, r) => /* @__PURE__ */ D(
|
|
11699
11719
|
"div",
|
|
11700
11720
|
{
|
|
11701
11721
|
className: "inline-flex items-center bg-slate-700 text-copy-lighter text-xs px-2 py-1 rounded-md",
|
|
11702
11722
|
children: [
|
|
11703
11723
|
/* @__PURE__ */ g("span", { className: "max-w-[150px] truncate", children: n.name }),
|
|
11704
|
-
/* @__PURE__ */
|
|
11724
|
+
/* @__PURE__ */ D("span", { className: "mx-1 text-gray-400", children: [
|
|
11705
11725
|
"(",
|
|
11706
11726
|
er(n.size),
|
|
11707
11727
|
")"
|
|
@@ -11723,7 +11743,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11723
11743
|
},
|
|
11724
11744
|
`${n.name}-${r}`
|
|
11725
11745
|
)) }),
|
|
11726
|
-
/* @__PURE__ */
|
|
11746
|
+
/* @__PURE__ */ D("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
|
|
11727
11747
|
"Total: ",
|
|
11728
11748
|
er(Yl(Array.from(e))),
|
|
11729
11749
|
" /",
|
|
@@ -11823,10 +11843,10 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11823
11843
|
}), { data: x } = yt({
|
|
11824
11844
|
user: e?.username,
|
|
11825
11845
|
getAccessToken: t
|
|
11826
|
-
}), O = G(null), N = G(null), H = G(!1),
|
|
11846
|
+
}), O = G(null), N = G(null), H = G(!1), k = G(0), L = G(null), R = G(null), X = ld(), [U, q] = Ke(), $ = fS({
|
|
11827
11847
|
oledMode: u,
|
|
11828
11848
|
placeholderColor: U(q.Placeholder)
|
|
11829
|
-
}), A = r && x?.showReasoningButton, { setMessages: ie, status: ve, id:
|
|
11849
|
+
}), A = r && x?.showReasoningButton, { setMessages: ie, status: ve, id: Je, sendMessage: at, input: ye, setInput: Ce, messages: Xe } = bt({
|
|
11830
11850
|
onFinish: (Y) => {
|
|
11831
11851
|
S();
|
|
11832
11852
|
const le = Y.message?.metadata;
|
|
@@ -11837,7 +11857,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11837
11857
|
}
|
|
11838
11858
|
});
|
|
11839
11859
|
}
|
|
11840
|
-
}), se = tS(!!
|
|
11860
|
+
}), se = tS(!!Xe.length), Et = B(
|
|
11841
11861
|
(Y) => {
|
|
11842
11862
|
Ce(Y.target.value);
|
|
11843
11863
|
},
|
|
@@ -11993,7 +12013,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11993
12013
|
headers: {
|
|
11994
12014
|
"Content-Type": "application/json",
|
|
11995
12015
|
authorization: `Bearer ${de}`,
|
|
11996
|
-
[gu]:
|
|
12016
|
+
[gu]: Je
|
|
11997
12017
|
},
|
|
11998
12018
|
body: {
|
|
11999
12019
|
reasoning: m
|
|
@@ -12007,7 +12027,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12007
12027
|
[
|
|
12008
12028
|
"mod+K",
|
|
12009
12029
|
() => {
|
|
12010
|
-
R && R.current && !
|
|
12030
|
+
R && R.current && !Ve() && R.current.focus();
|
|
12011
12031
|
}
|
|
12012
12032
|
]
|
|
12013
12033
|
]), F(() => {
|
|
@@ -12016,7 +12036,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12016
12036
|
Y.indexOf(ms) !== -1 ? navigator.clipboard.readText().then((le) => {
|
|
12017
12037
|
const St = le.startsWith("http://") || le.startsWith("https://") ? le : `"""${le}"""`;
|
|
12018
12038
|
Ce(Y.replace(ms, St));
|
|
12019
|
-
}) : Ce(Y), !
|
|
12039
|
+
}) : Ce(Y), !Ve() && R.current && R.current.focus(), I({
|
|
12020
12040
|
type: Fa
|
|
12021
12041
|
});
|
|
12022
12042
|
}
|
|
@@ -12025,16 +12045,16 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12025
12045
|
H.current = !0, !ye && Bn(R);
|
|
12026
12046
|
return;
|
|
12027
12047
|
}
|
|
12028
|
-
y > 0 && y !==
|
|
12048
|
+
y > 0 && y !== k.current ? (k.current = y, setTimeout(() => {
|
|
12029
12049
|
R.current && (!ye && Bn(R), R.current.focus());
|
|
12030
|
-
}, IS)) : p === !1 && !ye && (Bn(R), !
|
|
12050
|
+
}, IS)) : p === !1 && !ye && (Bn(R), !Ve() && R.current && R.current.focus());
|
|
12031
12051
|
}, [y, p, ye]), F(() => {
|
|
12032
12052
|
v.lastTriggeredTimestamp && setTimeout(() => {
|
|
12033
12053
|
Yt();
|
|
12034
12054
|
}, 100);
|
|
12035
12055
|
}, [v.lastTriggeredTimestamp, Yt]), F(() => {
|
|
12036
12056
|
w === 0 && (N.current && (N.current.value = ""), i(null));
|
|
12037
|
-
}, [w]), /* @__PURE__ */
|
|
12057
|
+
}, [w]), /* @__PURE__ */ D(Rt, { children: [
|
|
12038
12058
|
/* @__PURE__ */ g(
|
|
12039
12059
|
mn,
|
|
12040
12060
|
{
|
|
@@ -12051,9 +12071,9 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12051
12071
|
children: /* @__PURE__ */ g("p", { className: "m-0", children: O.current })
|
|
12052
12072
|
}
|
|
12053
12073
|
),
|
|
12054
|
-
/* @__PURE__ */ g("div", { className:
|
|
12074
|
+
/* @__PURE__ */ g("div", { className: $.wrapper, ref: L, children: /* @__PURE__ */ D("form", { onSubmit: cs, children: [
|
|
12055
12075
|
/* @__PURE__ */ g("div", { id: X, className: "sr-only", children: Ya }),
|
|
12056
|
-
/* @__PURE__ */
|
|
12076
|
+
/* @__PURE__ */ D("div", { className: "relative pb-3 sm:pb-0", children: [
|
|
12057
12077
|
/* @__PURE__ */ g(
|
|
12058
12078
|
"textarea",
|
|
12059
12079
|
{
|
|
@@ -12067,7 +12087,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12067
12087
|
onKeyDown: Wv([
|
|
12068
12088
|
[c ? "enter" : "mod+Enter", cs]
|
|
12069
12089
|
]),
|
|
12070
|
-
className:
|
|
12090
|
+
className: $.textArea,
|
|
12071
12091
|
"aria-labelledby": X
|
|
12072
12092
|
}
|
|
12073
12093
|
),
|
|
@@ -12085,7 +12105,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12085
12105
|
)
|
|
12086
12106
|
] }),
|
|
12087
12107
|
/* @__PURE__ */ g(pS, { files: s, clearFile: nu }),
|
|
12088
|
-
/* @__PURE__ */
|
|
12108
|
+
/* @__PURE__ */ D("div", { className: "p-2 flex items-center", children: [
|
|
12089
12109
|
/* @__PURE__ */ g(eS, { className: "order-7 ml-auto" }),
|
|
12090
12110
|
/* @__PURE__ */ g(
|
|
12091
12111
|
tb,
|
|
@@ -12136,7 +12156,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12136
12156
|
dispatch: a
|
|
12137
12157
|
} = ue(yn), [l] = V(
|
|
12138
12158
|
() => hs[Math.floor(Math.random() * hs.length)]
|
|
12139
|
-
), c = Pe(() =>
|
|
12159
|
+
), c = Pe(() => Ve(), []), d = Pe(() => vu(), []), { messages: u } = bt(), [h, m] = Xa(), [p, f] = Ke(), y = Bv(d), { height: w } = Zv(), { height: E } = Fv(), _ = d ? 0 : w - E, v = Pe(() => {
|
|
12140
12160
|
const I = c ? yu : d ? bu : Ha;
|
|
12141
12161
|
return c ? _ > 70 && _ < 500 ? Lr / 2 : I : d ? y ? Lr : I : _ > 0 && _ < 100 ? Lr : I;
|
|
12142
12162
|
}, [_, c, d, y]);
|
|
@@ -12206,7 +12226,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12206
12226
|
"transition-all duration-300 ease-in-out": d
|
|
12207
12227
|
}
|
|
12208
12228
|
),
|
|
12209
|
-
children: /* @__PURE__ */
|
|
12229
|
+
children: /* @__PURE__ */ D("div", { className: io({ fullScreen: i }), children: [
|
|
12210
12230
|
/* @__PURE__ */ g(NS, {}),
|
|
12211
12231
|
/* @__PURE__ */ g(
|
|
12212
12232
|
"div",
|
|
@@ -12243,7 +12263,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12243
12263
|
state: { privateChat: n },
|
|
12244
12264
|
setChatId: r,
|
|
12245
12265
|
setInitialMessages: o
|
|
12246
|
-
} = ue($e), { getAccessToken: s, user: i } = Le(), { status: a } = bt(), { allowedModels: l, status: c } = Oo(), [d, u] =
|
|
12266
|
+
} = ue($e), { getAccessToken: s, user: i } = Le(), { status: a } = bt(), { allowedModels: l, status: c } = Oo(), [d, u] = Ke(), [h, m] = V(!1), p = B(() => {
|
|
12247
12267
|
h || (Cv(), m(!0));
|
|
12248
12268
|
}, [h]), {
|
|
12249
12269
|
isSuccess: f,
|
|
@@ -12254,28 +12274,28 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12254
12274
|
getAccessToken: s
|
|
12255
12275
|
}), E = Pe(() => {
|
|
12256
12276
|
if (ls(l, c)) {
|
|
12257
|
-
const
|
|
12258
|
-
(R) =>
|
|
12277
|
+
const k = wu(l), L = ao.filter(
|
|
12278
|
+
(R) => k.includes(
|
|
12259
12279
|
R.id
|
|
12260
12280
|
)
|
|
12261
12281
|
);
|
|
12262
|
-
return
|
|
12282
|
+
return L.length > 0 ? L : ao;
|
|
12263
12283
|
}
|
|
12264
12284
|
return ao;
|
|
12265
12285
|
}, [l, c]), _ = Pe(() => ls(l, c) ? Iu(l) : /* @__PURE__ */ new Map(), [l, c]), v = Pe(() => {
|
|
12266
12286
|
if (!w?.useNestedModelSelection)
|
|
12267
12287
|
return !1;
|
|
12268
|
-
for (const
|
|
12269
|
-
if (
|
|
12288
|
+
for (const k of _.values())
|
|
12289
|
+
if (k.length > 1)
|
|
12270
12290
|
return !0;
|
|
12271
12291
|
return !1;
|
|
12272
|
-
}, [w?.useNestedModelSelection, _]), I = async (
|
|
12292
|
+
}, [w?.useNestedModelSelection, _]), I = async (k) => {
|
|
12273
12293
|
try {
|
|
12274
|
-
r(mt()), o([]),
|
|
12275
|
-
provider:
|
|
12294
|
+
r(mt()), o([]), k !== w?.provider && (await us({
|
|
12295
|
+
provider: k,
|
|
12276
12296
|
accessToken: await s(),
|
|
12277
12297
|
username: i?.username || ""
|
|
12278
|
-
}), y(), await ur(`${gs} ${
|
|
12298
|
+
}), y(), await ur(`${gs} ${k}`, {
|
|
12279
12299
|
containerId: "toggle-provider"
|
|
12280
12300
|
})), t({
|
|
12281
12301
|
type: Vt,
|
|
@@ -12285,18 +12305,18 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12285
12305
|
});
|
|
12286
12306
|
} catch {
|
|
12287
12307
|
}
|
|
12288
|
-
}, T = async (
|
|
12308
|
+
}, T = async (k, L) => {
|
|
12289
12309
|
try {
|
|
12290
|
-
if (r(mt()), o([]),
|
|
12310
|
+
if (r(mt()), o([]), k !== w?.provider || L !== w?.model) {
|
|
12291
12311
|
await us({
|
|
12292
|
-
provider:
|
|
12293
|
-
model:
|
|
12312
|
+
provider: k,
|
|
12313
|
+
model: L,
|
|
12294
12314
|
accessToken: await s(),
|
|
12295
12315
|
username: i?.username || ""
|
|
12296
12316
|
}), y();
|
|
12297
|
-
const R = $r[
|
|
12317
|
+
const R = $r[L] || L;
|
|
12298
12318
|
await ur(
|
|
12299
|
-
`${gs} ${
|
|
12319
|
+
`${gs} ${k} (${R})`,
|
|
12300
12320
|
{
|
|
12301
12321
|
containerId: "toggle-provider"
|
|
12302
12322
|
}
|
|
@@ -12311,8 +12331,8 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12311
12331
|
} catch {
|
|
12312
12332
|
}
|
|
12313
12333
|
}, S = w && f, x = S && E.find(
|
|
12314
|
-
(
|
|
12315
|
-
)?.icon || E[0]?.icon, O = Pe(() => !w?.useNestedModelSelection || !w?.model || !l || !Va(w.model, l) ? null : $r[w.model] || w.model, [w?.useNestedModelSelection, w?.model, l]), N = /* @__PURE__ */ g(Rt, { children: /* @__PURE__ */
|
|
12334
|
+
(k) => w.provider === k.id
|
|
12335
|
+
)?.icon || E[0]?.icon, O = Pe(() => !w?.useNestedModelSelection || !w?.model || !l || !Va(w.model, l) ? null : $r[w.model] || w.model, [w?.useNestedModelSelection, w?.model, l]), N = /* @__PURE__ */ g(Rt, { children: /* @__PURE__ */ D(
|
|
12316
12336
|
Nr,
|
|
12317
12337
|
{
|
|
12318
12338
|
mode: "light",
|
|
@@ -12338,37 +12358,43 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12338
12358
|
defaultPlacement: "top-start",
|
|
12339
12359
|
children: [
|
|
12340
12360
|
/* @__PURE__ */ g(br, { children: "Providers" }),
|
|
12341
|
-
S && E.map((
|
|
12342
|
-
const
|
|
12343
|
-
return v &&
|
|
12344
|
-
/* @__PURE__ */
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12361
|
+
S && E.map((k) => {
|
|
12362
|
+
const L = _.get(k.id) || [];
|
|
12363
|
+
return v && L.length > 1 ? /* @__PURE__ */ D(Gl, { label: k.label, children: [
|
|
12364
|
+
/* @__PURE__ */ D(
|
|
12365
|
+
br,
|
|
12366
|
+
{
|
|
12367
|
+
...k.icon && !Ve() && { icon: /* @__PURE__ */ g(k.icon, {}) },
|
|
12368
|
+
children: [
|
|
12369
|
+
k.label,
|
|
12370
|
+
" Models"
|
|
12371
|
+
]
|
|
12372
|
+
}
|
|
12373
|
+
),
|
|
12374
|
+
L.map((X) => /* @__PURE__ */ g(
|
|
12349
12375
|
ke,
|
|
12350
12376
|
{
|
|
12351
|
-
selected: w.provider ===
|
|
12377
|
+
selected: w.provider === k.id && w.model === X,
|
|
12352
12378
|
label: $r[X] || X,
|
|
12353
|
-
onClick: () => T(
|
|
12379
|
+
onClick: () => T(k.id, X)
|
|
12354
12380
|
},
|
|
12355
12381
|
X
|
|
12356
12382
|
))
|
|
12357
|
-
] },
|
|
12383
|
+
] }, k.id) : /* @__PURE__ */ g(
|
|
12358
12384
|
ke,
|
|
12359
12385
|
{
|
|
12360
|
-
selected: w.provider ===
|
|
12361
|
-
label:
|
|
12362
|
-
icon: /* @__PURE__ */ g(
|
|
12363
|
-
onClick: () => I(
|
|
12386
|
+
selected: w.provider === k.id,
|
|
12387
|
+
label: k.label,
|
|
12388
|
+
icon: /* @__PURE__ */ g(k.icon, {}),
|
|
12389
|
+
onClick: () => I(k.id)
|
|
12364
12390
|
},
|
|
12365
|
-
|
|
12391
|
+
k.id
|
|
12366
12392
|
);
|
|
12367
12393
|
})
|
|
12368
12394
|
]
|
|
12369
12395
|
}
|
|
12370
12396
|
) });
|
|
12371
|
-
return S ? /* @__PURE__ */
|
|
12397
|
+
return S ? /* @__PURE__ */ D("div", { className: "flex items-center", children: [
|
|
12372
12398
|
/* @__PURE__ */ g(
|
|
12373
12399
|
wt,
|
|
12374
12400
|
{
|
|
@@ -12393,38 +12419,38 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12393
12419
|
}, MS = ot(
|
|
12394
12420
|
() => import(
|
|
12395
12421
|
/* webpackChunkName: "modal-chunk" */
|
|
12396
|
-
"./ProfileEntry.
|
|
12422
|
+
"./ProfileEntry.TGFPHyLG.js"
|
|
12397
12423
|
).then((e) => ({
|
|
12398
12424
|
default: e.Profile
|
|
12399
12425
|
}))
|
|
12400
12426
|
), DS = ot(
|
|
12401
12427
|
() => import(
|
|
12402
12428
|
/* webpackChunkName: "modal-chunk" */
|
|
12403
|
-
"./SettingsEntry.
|
|
12429
|
+
"./SettingsEntry.Cwlr6D0l.js"
|
|
12404
12430
|
).then((e) => ({
|
|
12405
12431
|
default: e.SettingsPanel
|
|
12406
12432
|
}))
|
|
12407
12433
|
), LS = ot(
|
|
12408
12434
|
() => import(
|
|
12409
12435
|
/* webpackChunkName: "modal-chunk" */
|
|
12410
|
-
"./HistoryEntry.
|
|
12436
|
+
"./HistoryEntry.CsubfQOb.js"
|
|
12411
12437
|
).then((e) => ({
|
|
12412
12438
|
default: e.HistoryPanel
|
|
12413
12439
|
}))
|
|
12414
12440
|
), $S = ot(
|
|
12415
12441
|
() => import(
|
|
12416
12442
|
/* webpackChunkName: "modal-chunk" */
|
|
12417
|
-
"./AboutEntry.
|
|
12443
|
+
"./AboutEntry.C3Y_6vyK.js"
|
|
12418
12444
|
).then((e) => ({ default: e.About }))
|
|
12419
12445
|
), zS = ot(
|
|
12420
12446
|
() => import(
|
|
12421
12447
|
/* webpackChunkName: "modal-chunk" */
|
|
12422
|
-
"./UsageEntry.
|
|
12448
|
+
"./UsageEntry.Ckb1qHWi.js"
|
|
12423
12449
|
).then((e) => ({ default: e.Usage }))
|
|
12424
12450
|
), ZS = ot(
|
|
12425
12451
|
() => import(
|
|
12426
12452
|
/* webpackChunkName: "modal-chunk" */
|
|
12427
|
-
"./MemoriesEntry.
|
|
12453
|
+
"./MemoriesEntry.Cs7R8WdN.js"
|
|
12428
12454
|
).then((e) => ({ default: e.default }))
|
|
12429
12455
|
), FS = ({
|
|
12430
12456
|
open: e,
|
|
@@ -12461,7 +12487,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12461
12487
|
}) => {
|
|
12462
12488
|
const {
|
|
12463
12489
|
state: { oledMode: t }
|
|
12464
|
-
} = ue(yn), { logout: n, getAccessToken: r, user: o } = Le(), s = Cu(), [i, a] =
|
|
12490
|
+
} = ue(yn), { logout: n, getAccessToken: r, user: o } = Le(), s = Cu(), [i, a] = Ke(), { data: l, isSuccess: c } = yt({
|
|
12465
12491
|
user: o?.username,
|
|
12466
12492
|
getAccessToken: r
|
|
12467
12493
|
}), [d, u] = V(null), [h, m] = V(!1), [p, f] = V(!1), [y, w] = V(!1), E = mr(tr.TOOL.MEMORIES);
|
|
@@ -12472,23 +12498,23 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12472
12498
|
p || Promise.all([
|
|
12473
12499
|
import(
|
|
12474
12500
|
/* webpackChunkName: "modal-chunk" */
|
|
12475
|
-
"./ProfileEntry.
|
|
12501
|
+
"./ProfileEntry.TGFPHyLG.js"
|
|
12476
12502
|
),
|
|
12477
12503
|
import(
|
|
12478
12504
|
/* webpackChunkName: "modal-chunk" */
|
|
12479
|
-
"./SettingsEntry.
|
|
12505
|
+
"./SettingsEntry.Cwlr6D0l.js"
|
|
12480
12506
|
),
|
|
12481
12507
|
import(
|
|
12482
12508
|
/* webpackChunkName: "modal-chunk" */
|
|
12483
|
-
"./HistoryEntry.
|
|
12509
|
+
"./HistoryEntry.CsubfQOb.js"
|
|
12484
12510
|
),
|
|
12485
12511
|
import(
|
|
12486
12512
|
/* webpackChunkName: "modal-chunk" */
|
|
12487
|
-
"./AboutEntry.
|
|
12513
|
+
"./AboutEntry.C3Y_6vyK.js"
|
|
12488
12514
|
),
|
|
12489
12515
|
import(
|
|
12490
12516
|
/* webpackChunkName: "modal-chunk" */
|
|
12491
|
-
"./UsageEntry.
|
|
12517
|
+
"./UsageEntry.Ckb1qHWi.js"
|
|
12492
12518
|
)
|
|
12493
12519
|
]).finally(() => f(!0));
|
|
12494
12520
|
}, [p]), v = B((O) => {
|
|
@@ -12519,7 +12545,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12519
12545
|
* focus.
|
|
12520
12546
|
*/
|
|
12521
12547
|
[]
|
|
12522
|
-
), /* @__PURE__ */
|
|
12548
|
+
), /* @__PURE__ */ D(Rt, { children: [
|
|
12523
12549
|
/* @__PURE__ */ g(
|
|
12524
12550
|
mn,
|
|
12525
12551
|
{
|
|
@@ -12549,7 +12575,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12549
12575
|
"bg-slate-900": !t,
|
|
12550
12576
|
"bg-slate-900/95 dark:bg-slate-900": t
|
|
12551
12577
|
}),
|
|
12552
|
-
children: /* @__PURE__ */
|
|
12578
|
+
children: /* @__PURE__ */ D(
|
|
12553
12579
|
co,
|
|
12554
12580
|
{
|
|
12555
12581
|
alignHorizontal: "space-between",
|
|
@@ -12564,7 +12590,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12564
12590
|
label: "Profile, Settings, etc.",
|
|
12565
12591
|
mode: "light",
|
|
12566
12592
|
placement: "left",
|
|
12567
|
-
trigger: /* @__PURE__ */
|
|
12593
|
+
trigger: /* @__PURE__ */ D(
|
|
12568
12594
|
Nr,
|
|
12569
12595
|
{
|
|
12570
12596
|
mode: "light",
|
|
@@ -12630,7 +12656,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12630
12656
|
icon: /* @__PURE__ */ g(bd, {})
|
|
12631
12657
|
}
|
|
12632
12658
|
),
|
|
12633
|
-
!e && /* @__PURE__ */
|
|
12659
|
+
!e && /* @__PURE__ */ D(Rt, { children: [
|
|
12634
12660
|
/* @__PURE__ */ g(Kl, {}),
|
|
12635
12661
|
/* @__PURE__ */ g(
|
|
12636
12662
|
ke,
|
|
@@ -12747,12 +12773,12 @@ const za = "av-spinner", eu = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12747
12773
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
12748
12774
|
"fill-copy-accent dark:fill-copy-dark": t === "alt-system"
|
|
12749
12775
|
});
|
|
12750
|
-
return /* @__PURE__ */
|
|
12776
|
+
return /* @__PURE__ */ D("div", {
|
|
12751
12777
|
ref: e,
|
|
12752
12778
|
className: o,
|
|
12753
12779
|
role: "status",
|
|
12754
12780
|
children: [
|
|
12755
|
-
n === "dots" && /* @__PURE__ */
|
|
12781
|
+
n === "dots" && /* @__PURE__ */ D("svg", {
|
|
12756
12782
|
className: "h-8 w-8",
|
|
12757
12783
|
children: [
|
|
12758
12784
|
/* @__PURE__ */ g("circle", {
|
|
@@ -12782,18 +12808,18 @@ const za = "av-spinner", eu = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12782
12808
|
]
|
|
12783
12809
|
});
|
|
12784
12810
|
}, HS = ot(
|
|
12785
|
-
() => import("./index.
|
|
12811
|
+
() => import("./index.BeB9u080.js").then((e) => ({ default: e.Bubble }))
|
|
12786
12812
|
), is = (e) => /* @__PURE__ */ g(nr, { fallback: /* @__PURE__ */ g("span", { className: "inline-block" }), children: /* @__PURE__ */ g(HS, { ...e }) });
|
|
12787
12813
|
is.displayName = "AsyncBubble";
|
|
12788
12814
|
const Za = 1, WS = 150, GS = ot(
|
|
12789
12815
|
() => import(
|
|
12790
12816
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
12791
|
-
"./ChatBubbleAssistant.
|
|
12817
|
+
"./ChatBubbleAssistant.BOfIJ2mi.js"
|
|
12792
12818
|
)
|
|
12793
12819
|
), KS = ot(
|
|
12794
12820
|
() => import(
|
|
12795
12821
|
/* webpackChunkName: "LazyMessageUser" */
|
|
12796
|
-
"./ChatBubbleUser.
|
|
12822
|
+
"./ChatBubbleUser.Cf0Aas2V.js"
|
|
12797
12823
|
)
|
|
12798
12824
|
), YS = it.memo(
|
|
12799
12825
|
({
|
|
@@ -12856,7 +12882,7 @@ function XS(e) {
|
|
|
12856
12882
|
}
|
|
12857
12883
|
const qS = () => {
|
|
12858
12884
|
const { messages: e, status: t } = bt(), n = e ? e.map((s, i) => s.role === an ? i : -1).filter((s) => s !== -1).pop() : -1, r = e && e.length > 0 ? e[e.length - 1] : null, o = (t === "submitted" || t === "streaming") && r?.role === Wa;
|
|
12859
|
-
return e && e.length > 0 ? /* @__PURE__ */
|
|
12885
|
+
return e && e.length > 0 ? /* @__PURE__ */ D("div", { className: "space-y-6 mt-2 @container", children: [
|
|
12860
12886
|
e?.map((s, i) => {
|
|
12861
12887
|
let a;
|
|
12862
12888
|
const l = `${i}-${s.role}`, c = JS(s), d = XS(s), u = s.role === an && i === n;
|
|
@@ -12894,8 +12920,8 @@ const qS = () => {
|
|
|
12894
12920
|
c && y();
|
|
12895
12921
|
}, [c, y]), F(() => {
|
|
12896
12922
|
u.current = s === rn ? i + a + Ga + Au + 15 : 0;
|
|
12897
|
-
}, [s, i, a]), /* @__PURE__ */
|
|
12898
|
-
/* @__PURE__ */
|
|
12923
|
+
}, [s, i, a]), /* @__PURE__ */ D(Rt, { children: [
|
|
12924
|
+
/* @__PURE__ */ D("div", { className: p, ref: r, children: [
|
|
12899
12925
|
/* @__PURE__ */ g(
|
|
12900
12926
|
Ed,
|
|
12901
12927
|
{
|
|
@@ -12930,33 +12956,33 @@ function tu({
|
|
|
12930
12956
|
isComponent: e = !1,
|
|
12931
12957
|
headerHeight: t = 0
|
|
12932
12958
|
}) {
|
|
12933
|
-
const { user: n, getAccessToken: r } = Le(), [o, s] = V(`${ds}px`), [i, a] = Xa(), [l, c] = V(mt()), [d, u] = V([]), [h] =
|
|
12959
|
+
const { user: n, getAccessToken: r } = Le(), [o, s] = V(`${ds}px`), [i, a] = Xa(), [l, c] = V(mt()), [d, u] = V([]), [h] = Qe({
|
|
12934
12960
|
key: je + Du,
|
|
12935
12961
|
initialValue: ""
|
|
12936
|
-
}), [m] =
|
|
12962
|
+
}), [m] = Qe({
|
|
12937
12963
|
key: je + Mu,
|
|
12938
12964
|
initialValue: fs
|
|
12939
|
-
}), [p] =
|
|
12965
|
+
}), [p] = Qe({
|
|
12940
12966
|
key: je + zu,
|
|
12941
12967
|
initialValue: nn.DESC
|
|
12942
|
-
}), [f] =
|
|
12968
|
+
}), [f] = Qe({
|
|
12943
12969
|
key: je + Zu,
|
|
12944
12970
|
initialValue: nn.ASC
|
|
12945
|
-
}), [y] =
|
|
12971
|
+
}), [y] = Qe({
|
|
12946
12972
|
key: Lu,
|
|
12947
12973
|
initialValue: !1
|
|
12948
|
-
}), [w] =
|
|
12974
|
+
}), [w] = Qe({
|
|
12949
12975
|
key: $u,
|
|
12950
12976
|
initialValue: !1
|
|
12951
12977
|
}), E = Pe(() => ({
|
|
12952
12978
|
footerPosition: lo,
|
|
12953
12979
|
footerHeight: 0,
|
|
12954
|
-
footerOffset:
|
|
12980
|
+
footerOffset: Ve() ? Ha : 0,
|
|
12955
12981
|
oledMode: !1,
|
|
12956
12982
|
fullScreen: !1,
|
|
12957
12983
|
themeMode: Ou
|
|
12958
12984
|
}), []), [_, v] = On(Sd, E), I = Pe(() => {
|
|
12959
|
-
const U =
|
|
12985
|
+
const U = Ve(), q = ja();
|
|
12960
12986
|
return U && q ? "mt-1" : "mt-5";
|
|
12961
12987
|
}, []), S = {
|
|
12962
12988
|
searchString: h,
|
|
@@ -12976,7 +13002,7 @@ function tu({
|
|
|
12976
13002
|
), [N, H] = On(Rv, {
|
|
12977
13003
|
prompt: "",
|
|
12978
13004
|
lastTriggeredTimestamp: 0
|
|
12979
|
-
}), [
|
|
13005
|
+
}), [k, L] = On(xv, {
|
|
12980
13006
|
provider: "",
|
|
12981
13007
|
// OpenAI, Anthropic, etc.
|
|
12982
13008
|
privateChat: !1,
|
|
@@ -13003,7 +13029,7 @@ function tu({
|
|
|
13003
13029
|
currentChatId: l,
|
|
13004
13030
|
setChatId: c,
|
|
13005
13031
|
setInitialMessages: u,
|
|
13006
|
-
dispatchChat:
|
|
13032
|
+
dispatchChat: L
|
|
13007
13033
|
}), F(() => {
|
|
13008
13034
|
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
|
13009
13035
|
}, []), F(() => {
|
|
@@ -13025,7 +13051,7 @@ function tu({
|
|
|
13025
13051
|
payload: { themePalette: R.themePalette }
|
|
13026
13052
|
});
|
|
13027
13053
|
}, [R]), F(() => {
|
|
13028
|
-
R && R.provider &&
|
|
13054
|
+
R && R.provider && L({
|
|
13029
13055
|
type: ic,
|
|
13030
13056
|
payload: {
|
|
13031
13057
|
provider: R.provider
|
|
@@ -13047,7 +13073,7 @@ function tu({
|
|
|
13047
13073
|
);
|
|
13048
13074
|
} else
|
|
13049
13075
|
s(
|
|
13050
|
-
|
|
13076
|
+
Ve() ? `${ku}px` : `${ds}px`
|
|
13051
13077
|
);
|
|
13052
13078
|
}, [
|
|
13053
13079
|
_.footerPosition,
|
|
@@ -13071,12 +13097,12 @@ function tu({
|
|
|
13071
13097
|
$e.Provider,
|
|
13072
13098
|
{
|
|
13073
13099
|
value: {
|
|
13074
|
-
state:
|
|
13075
|
-
dispatch:
|
|
13100
|
+
state: k,
|
|
13101
|
+
dispatch: L,
|
|
13076
13102
|
setChatId: c,
|
|
13077
13103
|
setInitialMessages: u
|
|
13078
13104
|
},
|
|
13079
|
-
children: /* @__PURE__ */
|
|
13105
|
+
children: /* @__PURE__ */ D(
|
|
13080
13106
|
Lv,
|
|
13081
13107
|
{
|
|
13082
13108
|
value: {
|
|
@@ -13090,7 +13116,7 @@ function tu({
|
|
|
13090
13116
|
},
|
|
13091
13117
|
children: [
|
|
13092
13118
|
/* @__PURE__ */ g($v, { chatId: l }),
|
|
13093
|
-
/* @__PURE__ */
|
|
13119
|
+
/* @__PURE__ */ D("div", { className: Ad, children: [
|
|
13094
13120
|
/* @__PURE__ */ g(na, { containerId: "toggle-save" }),
|
|
13095
13121
|
/* @__PURE__ */ g(na, { containerId: "toggle-provider" })
|
|
13096
13122
|
] }),
|
|
@@ -13152,6 +13178,6 @@ export {
|
|
|
13152
13178
|
bt as useAiChat,
|
|
13153
13179
|
mr as useCapability,
|
|
13154
13180
|
BS as useInViewport,
|
|
13155
|
-
|
|
13181
|
+
Qe as useLocalStorage,
|
|
13156
13182
|
mt as v4
|
|
13157
13183
|
};
|