@versini/sassysaint 8.103.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.BXx3Q80k.js → AboutChangelog.BDsTnpdn.js} +2 -2
- package/dist/chunks/{AboutEntry.CdQKsx6D.js → AboutEntry.C3Y_6vyK.js} +7 -7
- package/dist/chunks/{App.DW64ZWLu.js → App.mxgwgTJI.js} +350 -330
- package/dist/chunks/{Chart.d50oFi8n.js → Chart.Bb8GekRa.js} +3 -3
- package/dist/chunks/{ChatBubbleAssistant.BdVyN2Uf.js → ChatBubbleAssistant.BOfIJ2mi.js} +5 -5
- package/dist/chunks/{ChatBubbleUser.5G9szJ6a.js → ChatBubbleUser.Cf0Aas2V.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.Bxs-QZG7.js → ChatHistoryTable.DMg_BeJQ.js} +4 -4
- package/dist/chunks/{HistoryEntry.CT1xtS2-.js → HistoryEntry.CsubfQOb.js} +6 -6
- package/dist/chunks/{LoginEntry.5LQ_KgTW.js → LoginEntry.BAlXB81G.js} +4 -4
- package/dist/chunks/{LogoEntry.6qiqQvsR.js → LogoEntry.Bw0P7g4x.js} +1 -1
- package/dist/chunks/{MemoriesEntry.iiWd_aho.js → MemoriesEntry.Cs7R8WdN.js} +5 -5
- package/dist/chunks/{ProfileEntry.B6MlPrKG.js → ProfileEntry.TGFPHyLG.js} +4 -4
- package/dist/chunks/{SettingsEntry.DkJ4A3_D.js → SettingsEntry.Cwlr6D0l.js} +5 -5
- package/dist/chunks/{Table.BhrqbdFB.js → Table.CC1z7H60.js} +1 -1
- package/dist/chunks/{UsageEntry.T-x25SV6.js → UsageEntry.Ckb1qHWi.js} +5 -5
- package/dist/chunks/{index.BdycVN-e.js → index.B3jB5nr2.js} +2 -2
- package/dist/chunks/{index.B3qrrL3M.js → index.BN198o-_.js} +1 -1
- package/dist/chunks/{index.DZLmoywI.js → index.BZ6mPn7m.js} +1 -1
- package/dist/chunks/{index.C_zcphV3.js → index.BeB9u080.js} +1 -1
- package/dist/chunks/{index.B0vVRIH9.js → index.BtID-o5p.js} +3 -3
- package/dist/chunks/{index.CvBYHWDk.js → index.CCXo6Mk7.js} +1 -1
- package/dist/chunks/{index.BkMbFcIa.js → index.DRjDB9FH.js} +1 -1
- package/dist/chunks/{index.B67ntArh.js → index.DlAFSWVf.js} +2 -2
- package/dist/chunks/{index.BoWzKh20.js → index.Q4OQSjm9.js} +1 -1
- package/dist/chunks/{index.CMc0hRZz.js → index.dweb7WDw.js} +1 -1
- package/dist/chunks/{useMarkdown.zcaEkCYN.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
|
{
|
|
@@ -7877,7 +7877,7 @@ try {
|
|
|
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"])',
|
|
@@ -8007,7 +8007,7 @@ function lb({ open: e, onClose: t, children: n, className: r, style: o, title: s
|
|
|
8007
8007
|
"backdrop:bg-black sm:backdrop:bg-black/80",
|
|
8008
8008
|
r
|
|
8009
8009
|
);
|
|
8010
|
-
return /* @__PURE__ */
|
|
8010
|
+
return /* @__PURE__ */ D("dialog", {
|
|
8011
8011
|
ref: c,
|
|
8012
8012
|
"aria-labelledby": a,
|
|
8013
8013
|
"aria-describedby": l,
|
|
@@ -8125,25 +8125,25 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8125
8125
|
/**
|
|
8126
8126
|
* Messagebox styles
|
|
8127
8127
|
*/
|
|
8128
|
-
[`${nb} rounded-3xl border`]: t ===
|
|
8128
|
+
[`${nb} rounded-3xl border`]: t === qe,
|
|
8129
8129
|
/**
|
|
8130
8130
|
* Widths and max widths for Messagebox when no className is provided
|
|
8131
8131
|
*/
|
|
8132
|
-
"w-[95%] sm:w-[50%] md:max-w-2xl": t ===
|
|
8132
|
+
"w-[95%] sm:w-[50%] md:max-w-2xl": t === qe && !e,
|
|
8133
8133
|
/**
|
|
8134
8134
|
* Heights and max heights for Messagebox
|
|
8135
8135
|
*/
|
|
8136
|
-
"h-64": t ===
|
|
8136
|
+
"h-64": t === qe && l === /* inlined export .SMALL */
|
|
8137
8137
|
"small",
|
|
8138
|
-
"h-80": t ===
|
|
8138
|
+
"h-80": t === qe && l === /* inlined export .MEDIUM */
|
|
8139
8139
|
"medium",
|
|
8140
|
-
"h-96": t ===
|
|
8140
|
+
"h-96": t === qe && l === /* inlined export .LARGE */
|
|
8141
8141
|
"large",
|
|
8142
8142
|
/**
|
|
8143
8143
|
* Messagebox border colors
|
|
8144
8144
|
*/
|
|
8145
|
-
"border-border-dark": n === "dark" && t ===
|
|
8146
|
-
"border-border-accent": n === "light" && t ===
|
|
8145
|
+
"border-border-dark": n === "dark" && t === qe,
|
|
8146
|
+
"border-border-accent": n === "light" && t === qe,
|
|
8147
8147
|
[`${e}`]: !!e
|
|
8148
8148
|
}),
|
|
8149
8149
|
innerWrapper: "content flex flex-col rounded-[inherit] relative min-h-full",
|
|
@@ -8157,14 +8157,14 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8157
8157
|
"panel",
|
|
8158
8158
|
"sm:rounded-b-3xl": t === /* inlined export .TYPE_PANEL */
|
|
8159
8159
|
"panel",
|
|
8160
|
-
"rounded-b-3xl": t ===
|
|
8160
|
+
"rounded-b-3xl": t === qe
|
|
8161
8161
|
}),
|
|
8162
8162
|
header: Z("flex flex-row-reverse items-center justify-between h-12", ha({
|
|
8163
8163
|
blurEffect: i
|
|
8164
8164
|
}), "top-0", {
|
|
8165
8165
|
"sm:rounded-t-3xl": t === /* inlined export .TYPE_PANEL */
|
|
8166
8166
|
"panel",
|
|
8167
|
-
"rounded-t-3xl": t ===
|
|
8167
|
+
"rounded-t-3xl": t === qe
|
|
8168
8168
|
}),
|
|
8169
8169
|
title: "mb-0 pt-2 pl-4 pr-2 pb-2",
|
|
8170
8170
|
closeWrapper: "pr-[18px]",
|
|
@@ -8262,10 +8262,10 @@ const ha = ({ blurEffect: e }) => Z("absolute left-0 right-0 z-20 backdrop-brigh
|
|
|
8262
8262
|
style: f,
|
|
8263
8263
|
title: n,
|
|
8264
8264
|
initialFocus: m,
|
|
8265
|
-
children: /* @__PURE__ */
|
|
8265
|
+
children: /* @__PURE__ */ D("div", {
|
|
8266
8266
|
className: w.innerWrapper,
|
|
8267
8267
|
children: [
|
|
8268
|
-
/* @__PURE__ */
|
|
8268
|
+
/* @__PURE__ */ D("div", {
|
|
8269
8269
|
className: w.header,
|
|
8270
8270
|
children: [
|
|
8271
8271
|
/* @__PURE__ */ g("div", {
|
|
@@ -8495,7 +8495,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8495
8495
|
subLabel: !!m
|
|
8496
8496
|
}), y = (E) => {
|
|
8497
8497
|
u || p(1), t?.(E.target.checked);
|
|
8498
|
-
}, w = m ? /* @__PURE__ */
|
|
8498
|
+
}, w = m ? /* @__PURE__ */ D("span", {
|
|
8499
8499
|
className: "flex flex-col gap-0.5",
|
|
8500
8500
|
children: [
|
|
8501
8501
|
/* @__PURE__ */ g("span", {
|
|
@@ -8511,11 +8511,11 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8511
8511
|
className: f.label,
|
|
8512
8512
|
children: n
|
|
8513
8513
|
});
|
|
8514
|
-
return /* @__PURE__ */
|
|
8514
|
+
return /* @__PURE__ */ D("label", {
|
|
8515
8515
|
className: f.wrapper,
|
|
8516
8516
|
children: [
|
|
8517
8517
|
h === "left" && w,
|
|
8518
|
-
/* @__PURE__ */
|
|
8518
|
+
/* @__PURE__ */ D("div", {
|
|
8519
8519
|
className: f.toggleWrapper,
|
|
8520
8520
|
children: [
|
|
8521
8521
|
/* @__PURE__ */ g("input", {
|
|
@@ -8565,7 +8565,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8565
8565
|
toggleChecked: c,
|
|
8566
8566
|
onToggleChange: d
|
|
8567
8567
|
}) => {
|
|
8568
|
-
const u = G(null), h = /* @__PURE__ */
|
|
8568
|
+
const u = G(null), h = /* @__PURE__ */ D(co, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
8569
8569
|
/* @__PURE__ */ g(Ut, { children: !s && /* @__PURE__ */ g(
|
|
8570
8570
|
Cb,
|
|
8571
8571
|
{
|
|
@@ -8587,7 +8587,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8587
8587
|
children: o.confirmAction
|
|
8588
8588
|
}
|
|
8589
8589
|
) })
|
|
8590
|
-
] }), m = a ? /* @__PURE__ */
|
|
8590
|
+
] }), m = a ? /* @__PURE__ */ D(
|
|
8591
8591
|
co,
|
|
8592
8592
|
{
|
|
8593
8593
|
alignHorizontal: "space-between",
|
|
@@ -8632,7 +8632,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8632
8632
|
const { getAccessToken: t, user: n } = Le(), {
|
|
8633
8633
|
state: { privateChat: r, provider: o, tokenUsage: s },
|
|
8634
8634
|
dispatch: i
|
|
8635
|
-
} = 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({
|
|
8636
8636
|
key: je + uu,
|
|
8637
8637
|
initialValue: ""
|
|
8638
8638
|
}), E = mr(tr.TOOL.MEMORIES), { data: _, isSuccess: v } = yt({
|
|
@@ -8679,7 +8679,7 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8679
8679
|
});
|
|
8680
8680
|
}
|
|
8681
8681
|
};
|
|
8682
|
-
return /* @__PURE__ */
|
|
8682
|
+
return /* @__PURE__ */ D(Rt, { children: [
|
|
8683
8683
|
p && /* @__PURE__ */ g(
|
|
8684
8684
|
mn,
|
|
8685
8685
|
{
|
|
@@ -8697,8 +8697,8 @@ const hb = "av-toggle", gb = ({ narrow: e }) => Z(
|
|
|
8697
8697
|
cancelAction: "Cancel",
|
|
8698
8698
|
title: "Private Chat"
|
|
8699
8699
|
},
|
|
8700
|
-
children: /* @__PURE__ */
|
|
8701
|
-
/* @__PURE__ */
|
|
8700
|
+
children: /* @__PURE__ */ D("ul", { children: [
|
|
8701
|
+
/* @__PURE__ */ D("li", { children: [
|
|
8702
8702
|
"In Private Mode, your messages will not be saved to your chat history. ",
|
|
8703
8703
|
E && "Memories will also be disabled."
|
|
8704
8704
|
] }),
|
|
@@ -8985,14 +8985,14 @@ function Ac(e) {
|
|
|
8985
8985
|
const t = b.useContext($b);
|
|
8986
8986
|
return e || t || "ltr";
|
|
8987
8987
|
}
|
|
8988
|
-
function
|
|
8988
|
+
function Ge(e) {
|
|
8989
8989
|
const t = b.useRef(e);
|
|
8990
8990
|
return b.useEffect(() => {
|
|
8991
8991
|
t.current = e;
|
|
8992
8992
|
}), b.useMemo(() => (...n) => t.current?.(...n), []);
|
|
8993
8993
|
}
|
|
8994
8994
|
function zb(e, t = globalThis?.document) {
|
|
8995
|
-
const n =
|
|
8995
|
+
const n = Ge(e);
|
|
8996
8996
|
b.useEffect(() => {
|
|
8997
8997
|
const r = (o) => {
|
|
8998
8998
|
o.key === "Escape" && n(o);
|
|
@@ -9065,7 +9065,7 @@ var jb = "DismissableLayerBranch", Bb = b.forwardRef((e, t) => {
|
|
|
9065
9065
|
});
|
|
9066
9066
|
Bb.displayName = jb;
|
|
9067
9067
|
function Vb(e, t = globalThis?.document) {
|
|
9068
|
-
const n =
|
|
9068
|
+
const n = Ge(e), r = b.useRef(!1), o = b.useRef(() => {
|
|
9069
9069
|
});
|
|
9070
9070
|
return b.useEffect(() => {
|
|
9071
9071
|
const s = (a) => {
|
|
@@ -9095,7 +9095,7 @@ function Vb(e, t = globalThis?.document) {
|
|
|
9095
9095
|
};
|
|
9096
9096
|
}
|
|
9097
9097
|
function Hb(e, t = globalThis?.document) {
|
|
9098
|
-
const n =
|
|
9098
|
+
const n = Ge(e), r = b.useRef(!1);
|
|
9099
9099
|
return b.useEffect(() => {
|
|
9100
9100
|
const o = (s) => {
|
|
9101
9101
|
s.target && !r.current && Nc(Ub, n, { originalEvent: s }, {
|
|
@@ -9136,7 +9136,7 @@ var qr = "focusScope.autoFocusOnMount", Qr = "focusScope.autoFocusOnUnmount", Ea
|
|
|
9136
9136
|
onMountAutoFocus: o,
|
|
9137
9137
|
onUnmountAutoFocus: s,
|
|
9138
9138
|
...i
|
|
9139
|
-
} = 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({
|
|
9140
9140
|
paused: !1,
|
|
9141
9141
|
pause() {
|
|
9142
9142
|
this.paused = !0;
|
|
@@ -9333,35 +9333,35 @@ function ow(e) {
|
|
|
9333
9333
|
isPositioned: !1
|
|
9334
9334
|
}), [h, m] = b.useState(r);
|
|
9335
9335
|
gr(h, r) || m(r);
|
|
9336
|
-
const [p, f] = b.useState(null), [y, w] = b.useState(null), E = b.useCallback((
|
|
9337
|
-
|
|
9338
|
-
}, []), _ = b.useCallback((
|
|
9339
|
-
|
|
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),
|
|
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(() => {
|
|
9341
9341
|
if (!T.current || !S.current)
|
|
9342
9342
|
return;
|
|
9343
|
-
const
|
|
9343
|
+
const $ = {
|
|
9344
9344
|
placement: t,
|
|
9345
9345
|
strategy: n,
|
|
9346
9346
|
middleware: h
|
|
9347
9347
|
};
|
|
9348
|
-
H.current && (
|
|
9348
|
+
H.current && ($.platform = H.current), Ic(T.current, S.current, $).then((A) => {
|
|
9349
9349
|
const ie = {
|
|
9350
9350
|
...A,
|
|
9351
9351
|
// The floating element's position may be recomputed while it's closed
|
|
9352
9352
|
// but still mounted (such as when transitioning out). To ensure
|
|
9353
9353
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
9354
9354
|
// setting it to `true` when `open === false` (must be specified).
|
|
9355
|
-
isPositioned:
|
|
9355
|
+
isPositioned: k.current !== !1
|
|
9356
9356
|
};
|
|
9357
9357
|
R.current && !gr(x.current, ie) && (x.current = ie, qa.flushSync(() => {
|
|
9358
9358
|
u(ie);
|
|
9359
9359
|
}));
|
|
9360
9360
|
});
|
|
9361
|
-
}, [h, t, n, H,
|
|
9361
|
+
}, [h, t, n, H, k]);
|
|
9362
9362
|
Xn(() => {
|
|
9363
|
-
c === !1 && x.current.isPositioned && (x.current.isPositioned = !1, u((
|
|
9364
|
-
|
|
9363
|
+
c === !1 && x.current.isPositioned && (x.current.isPositioned = !1, u(($) => ({
|
|
9364
|
+
...$,
|
|
9365
9365
|
isPositioned: !1
|
|
9366
9366
|
})));
|
|
9367
9367
|
}, [c]);
|
|
@@ -9371,10 +9371,10 @@ function ow(e) {
|
|
|
9371
9371
|
}), []), Xn(() => {
|
|
9372
9372
|
if (v && (T.current = v), I && (S.current = I), v && I) {
|
|
9373
9373
|
if (N.current)
|
|
9374
|
-
return N.current(v, I,
|
|
9375
|
-
|
|
9374
|
+
return N.current(v, I, L);
|
|
9375
|
+
L();
|
|
9376
9376
|
}
|
|
9377
|
-
}, [v, I,
|
|
9377
|
+
}, [v, I, L, N, O]);
|
|
9378
9378
|
const X = b.useMemo(() => ({
|
|
9379
9379
|
reference: T,
|
|
9380
9380
|
floating: S,
|
|
@@ -9384,16 +9384,16 @@ function ow(e) {
|
|
|
9384
9384
|
reference: v,
|
|
9385
9385
|
floating: I
|
|
9386
9386
|
}), [v, I]), q = b.useMemo(() => {
|
|
9387
|
-
const
|
|
9387
|
+
const $ = {
|
|
9388
9388
|
position: n,
|
|
9389
9389
|
left: 0,
|
|
9390
9390
|
top: 0
|
|
9391
9391
|
};
|
|
9392
9392
|
if (!U.floating)
|
|
9393
|
-
return
|
|
9393
|
+
return $;
|
|
9394
9394
|
const A = Ta(U.floating, d.x), ie = Ta(U.floating, d.y);
|
|
9395
9395
|
return a ? {
|
|
9396
|
-
|
|
9396
|
+
...$,
|
|
9397
9397
|
transform: "translate(" + A + "px, " + ie + "px)",
|
|
9398
9398
|
...Mc(U.floating) >= 1.5 && {
|
|
9399
9399
|
willChange: "transform"
|
|
@@ -9406,11 +9406,11 @@ function ow(e) {
|
|
|
9406
9406
|
}, [n, a, U.floating, d.x, d.y]);
|
|
9407
9407
|
return b.useMemo(() => ({
|
|
9408
9408
|
...d,
|
|
9409
|
-
update:
|
|
9409
|
+
update: L,
|
|
9410
9410
|
refs: X,
|
|
9411
9411
|
elements: U,
|
|
9412
9412
|
floatingStyles: q
|
|
9413
|
-
}), [d,
|
|
9413
|
+
}), [d, L, X, U, q]);
|
|
9414
9414
|
}
|
|
9415
9415
|
const sw = (e) => {
|
|
9416
9416
|
function t(n) {
|
|
@@ -9526,12 +9526,12 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9526
9526
|
updatePositionStrategy: m = "optimized",
|
|
9527
9527
|
onPlaced: p,
|
|
9528
9528
|
...f
|
|
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],
|
|
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 = {
|
|
9530
9530
|
padding: N,
|
|
9531
9531
|
boundary: H.filter(ww),
|
|
9532
9532
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
9533
|
-
altBoundary:
|
|
9534
|
-
}, { refs: R, floatingStyles: X, placement: U, isPositioned: q, middlewareData:
|
|
9533
|
+
altBoundary: k
|
|
9534
|
+
}, { refs: R, floatingStyles: X, placement: U, isPositioned: q, middlewareData: $ } = ow({
|
|
9535
9535
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
9536
9536
|
strategy: "fixed",
|
|
9537
9537
|
placement: O,
|
|
@@ -9547,11 +9547,11 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9547
9547
|
mainAxis: !0,
|
|
9548
9548
|
crossAxis: !1,
|
|
9549
9549
|
limiter: u === "partial" ? cw() : void 0,
|
|
9550
|
-
...
|
|
9550
|
+
...L
|
|
9551
9551
|
}),
|
|
9552
|
-
l && lw({ ...
|
|
9552
|
+
l && lw({ ...L }),
|
|
9553
9553
|
uw({
|
|
9554
|
-
...
|
|
9554
|
+
...L,
|
|
9555
9555
|
apply: ({ elements: se, rects: Et, availableWidth: kr, availableHeight: Rn }) => {
|
|
9556
9556
|
const { width: Yt, height: Pr } = Et.reference, Pt = se.floating.style;
|
|
9557
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`);
|
|
@@ -9559,15 +9559,15 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9559
9559
|
}),
|
|
9560
9560
|
v && fw({ element: v, padding: a }),
|
|
9561
9561
|
_w({ arrowWidth: S, arrowHeight: x }),
|
|
9562
|
-
h && dw({ strategy: "referenceHidden", ...
|
|
9562
|
+
h && dw({ strategy: "referenceHidden", ...L })
|
|
9563
9563
|
]
|
|
9564
|
-
}), [A, ie] = Hc(U), ve =
|
|
9564
|
+
}), [A, ie] = Hc(U), ve = Ge(p);
|
|
9565
9565
|
vt(() => {
|
|
9566
9566
|
q && ve?.();
|
|
9567
9567
|
}, [q, ve]);
|
|
9568
|
-
const
|
|
9568
|
+
const Je = $.arrow?.x, at = $.arrow?.y, ye = $.arrow?.centerOffset !== 0, [Ce, Xe] = b.useState();
|
|
9569
9569
|
return vt(() => {
|
|
9570
|
-
w &&
|
|
9570
|
+
w && Xe(window.getComputedStyle(w).zIndex);
|
|
9571
9571
|
}, [w]), /* @__PURE__ */ g(
|
|
9572
9572
|
"div",
|
|
9573
9573
|
{
|
|
@@ -9580,13 +9580,13 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9580
9580
|
minWidth: "max-content",
|
|
9581
9581
|
zIndex: Ce,
|
|
9582
9582
|
"--radix-popper-transform-origin": [
|
|
9583
|
-
|
|
9584
|
-
|
|
9583
|
+
$.transformOrigin?.x,
|
|
9584
|
+
$.transformOrigin?.y
|
|
9585
9585
|
].join(" "),
|
|
9586
9586
|
// hide the content if using the hide middleware and should be hidden
|
|
9587
9587
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
9588
9588
|
// as if the PopperContent isn't there at all
|
|
9589
|
-
|
|
9589
|
+
...$.hide?.referenceHidden && {
|
|
9590
9590
|
visibility: "hidden",
|
|
9591
9591
|
pointerEvents: "none"
|
|
9592
9592
|
}
|
|
@@ -9598,7 +9598,7 @@ var Xo = "PopperContent", [vw, yw] = Lc(Xo), jc = b.forwardRef(
|
|
|
9598
9598
|
scope: n,
|
|
9599
9599
|
placedSide: A,
|
|
9600
9600
|
onArrowChange: I,
|
|
9601
|
-
arrowX:
|
|
9601
|
+
arrowX: Je,
|
|
9602
9602
|
arrowY: at,
|
|
9603
9603
|
shouldHideArrow: ye,
|
|
9604
9604
|
children: /* @__PURE__ */ g(
|
|
@@ -9785,7 +9785,7 @@ var Mw = b.forwardRef((e, t) => {
|
|
|
9785
9785
|
defaultProp: a ?? null,
|
|
9786
9786
|
onChange: l,
|
|
9787
9787
|
caller: Cn
|
|
9788
|
-
}), [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);
|
|
9789
9789
|
return b.useEffect(() => {
|
|
9790
9790
|
const x = h.current;
|
|
9791
9791
|
if (x)
|
|
@@ -9827,7 +9827,7 @@ var Mw = b.forwardRef((e, t) => {
|
|
|
9827
9827
|
if (x.target === x.currentTarget && O && !w) {
|
|
9828
9828
|
const N = new CustomEvent(to, Rw);
|
|
9829
9829
|
if (x.currentTarget.dispatchEvent(N), !N.defaultPrevented) {
|
|
9830
|
-
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(
|
|
9831
9831
|
Boolean
|
|
9832
9832
|
).map((U) => U.ref.current);
|
|
9833
9833
|
Qc(X, d);
|
|
@@ -10386,8 +10386,8 @@ function I_(e) {
|
|
|
10386
10386
|
return !1;
|
|
10387
10387
|
if (!r.current && "changedTouches" in f && (_ || v) && (r.current = I), !I)
|
|
10388
10388
|
return !0;
|
|
10389
|
-
var
|
|
10390
|
-
return w_(
|
|
10389
|
+
var k = r.current || I;
|
|
10390
|
+
return w_(k, y, f, k === "h" ? _ : v);
|
|
10391
10391
|
}, []), l = b.useCallback(function(f) {
|
|
10392
10392
|
var y = f;
|
|
10393
10393
|
if (!(!zt.length || zt[zt.length - 1] !== s)) {
|
|
@@ -10459,7 +10459,7 @@ var Ao = ["Enter", " "], x_ = ["ArrowDown", "PageUp", "Home"], ll = ["ArrowUp",
|
|
|
10459
10459
|
$c,
|
|
10460
10460
|
Yc
|
|
10461
10461
|
]), xn = $c(), dl = Yc(), [fl, _t] = kt(Tn), [P_, An] = kt(Tn), pl = (e) => {
|
|
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 =
|
|
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);
|
|
10463
10463
|
return b.useEffect(() => {
|
|
10464
10464
|
const m = () => {
|
|
10465
10465
|
d.current = !0, document.addEventListener("pointerdown", p, { capture: !0, once: !0 }), document.addEventListener("pointermove", p, { capture: !0, once: !0 });
|
|
@@ -10562,14 +10562,14 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10562
10562
|
onDismiss: m,
|
|
10563
10563
|
disableOutsideScroll: p,
|
|
10564
10564
|
...f
|
|
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),
|
|
10566
|
-
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;
|
|
10567
10567
|
(function se(Et) {
|
|
10568
10568
|
N.current = Et, window.clearTimeout(O.current), Et !== "" && (O.current = window.setTimeout(() => se(""), 1e3));
|
|
10569
|
-
})(ie),
|
|
10569
|
+
})(ie), Xe && setTimeout(() => Xe.focus());
|
|
10570
10570
|
};
|
|
10571
10571
|
b.useEffect(() => () => window.clearTimeout(O.current), []), Wb();
|
|
10572
|
-
const
|
|
10572
|
+
const $ = b.useCallback((A) => L.current === k.current?.side && Q_(A, k.current?.area), []);
|
|
10573
10573
|
return /* @__PURE__ */ g(
|
|
10574
10574
|
L_,
|
|
10575
10575
|
{
|
|
@@ -10577,25 +10577,25 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10577
10577
|
searchRef: N,
|
|
10578
10578
|
onItemEnter: b.useCallback(
|
|
10579
10579
|
(A) => {
|
|
10580
|
-
|
|
10580
|
+
$(A) && A.preventDefault();
|
|
10581
10581
|
},
|
|
10582
|
-
[
|
|
10582
|
+
[$]
|
|
10583
10583
|
),
|
|
10584
10584
|
onItemLeave: b.useCallback(
|
|
10585
10585
|
(A) => {
|
|
10586
|
-
|
|
10586
|
+
$(A) || (S.current?.focus(), T(null));
|
|
10587
10587
|
},
|
|
10588
|
-
[
|
|
10588
|
+
[$]
|
|
10589
10589
|
),
|
|
10590
10590
|
onTriggerLeave: b.useCallback(
|
|
10591
10591
|
(A) => {
|
|
10592
|
-
|
|
10592
|
+
$(A) && A.preventDefault();
|
|
10593
10593
|
},
|
|
10594
|
-
[
|
|
10594
|
+
[$]
|
|
10595
10595
|
),
|
|
10596
10596
|
pointerGraceTimerRef: H,
|
|
10597
10597
|
onPointerGraceIntentChange: b.useCallback((A) => {
|
|
10598
|
-
|
|
10598
|
+
k.current = A;
|
|
10599
10599
|
}, []),
|
|
10600
10600
|
children: /* @__PURE__ */ g(X, { ...U, children: /* @__PURE__ */ g(
|
|
10601
10601
|
kc,
|
|
@@ -10643,13 +10643,13 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10643
10643
|
ref: x,
|
|
10644
10644
|
style: { outline: "none", ...f.style },
|
|
10645
10645
|
onKeyDown: W(f.onKeyDown, (A) => {
|
|
10646
|
-
const ve = A.target.closest("[data-radix-menu-content]") === A.currentTarget,
|
|
10647
|
-
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));
|
|
10648
10648
|
const ye = S.current;
|
|
10649
10649
|
if (A.target !== ye || !A_.includes(A.key)) return;
|
|
10650
10650
|
A.preventDefault();
|
|
10651
|
-
const
|
|
10652
|
-
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);
|
|
10653
10653
|
}),
|
|
10654
10654
|
onBlur: W(e.onBlur, (A) => {
|
|
10655
10655
|
A.currentTarget.contains(A.target) || (window.clearTimeout(O.current), N.current = "");
|
|
@@ -10659,8 +10659,8 @@ var xe = "MenuContent", [L_, es] = kt(xe), gl = b.forwardRef(
|
|
|
10659
10659
|
vn((A) => {
|
|
10660
10660
|
const ie = A.target, ve = R.current !== A.clientX;
|
|
10661
10661
|
if (A.currentTarget.contains(ie) && ve) {
|
|
10662
|
-
const
|
|
10663
|
-
|
|
10662
|
+
const Je = A.clientX > R.current ? "right" : "left";
|
|
10663
|
+
L.current = Je, R.current = A.clientX;
|
|
10664
10664
|
}
|
|
10665
10665
|
})
|
|
10666
10666
|
)
|
|
@@ -10787,7 +10787,7 @@ var wl = "MenuRadioGroup", [B_, V_] = kt(
|
|
|
10787
10787
|
} }
|
|
10788
10788
|
), _l = b.forwardRef(
|
|
10789
10789
|
(e, t) => {
|
|
10790
|
-
const { value: n, onValueChange: r, ...o } = e, s =
|
|
10790
|
+
const { value: n, onValueChange: r, ...o } = e, s = Ge(r);
|
|
10791
10791
|
return /* @__PURE__ */ g(B_, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ g(ns, { ...o, ref: t }) });
|
|
10792
10792
|
}
|
|
10793
10793
|
);
|
|
@@ -10859,7 +10859,7 @@ var G_ = "MenuArrow", xl = b.forwardRef(
|
|
|
10859
10859
|
);
|
|
10860
10860
|
xl.displayName = G_;
|
|
10861
10861
|
var os = "MenuSub", [K_, Al] = kt(os), Rl = (e) => {
|
|
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 =
|
|
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);
|
|
10863
10863
|
return b.useEffect(() => (s.open === !1 && u(!1), () => u(!1)), [s.open, u]), /* @__PURE__ */ g(Wc, { ...i, children: /* @__PURE__ */ g(
|
|
10864
10864
|
fl,
|
|
10865
10865
|
{
|
|
@@ -11213,13 +11213,13 @@ var LE = "DropdownMenuSubContent", Hl = b.forwardRef((e, t) => {
|
|
|
11213
11213
|
Hl.displayName = LE;
|
|
11214
11214
|
var $E = Dl, zE = $l, Wl = zl, ZE = Fl, FE = Ul, Pa = jl, UE = Bl, jE = ME, BE = Vl, VE = Hl;
|
|
11215
11215
|
/*!
|
|
11216
|
-
@versini/ui-dropdown v1.1
|
|
11216
|
+
@versini/ui-dropdown v1.2.1
|
|
11217
11217
|
© 2025 gizmette.com
|
|
11218
11218
|
*/
|
|
11219
11219
|
try {
|
|
11220
11220
|
window.__VERSINI_UI_DROPDOWN__ || (window.__VERSINI_UI_DROPDOWN__ = {
|
|
11221
|
-
version: "1.1
|
|
11222
|
-
buildTime: "12/
|
|
11221
|
+
version: "1.2.1",
|
|
11222
|
+
buildTime: "12/18/2025 09:09 AM EST",
|
|
11223
11223
|
homepage: "https://www.npmjs.com/package/@versini/ui-dropdown",
|
|
11224
11224
|
license: "MIT"
|
|
11225
11225
|
});
|
|
@@ -11238,13 +11238,13 @@ const Ma = (e) => {
|
|
|
11238
11238
|
return "Element";
|
|
11239
11239
|
};
|
|
11240
11240
|
/*!
|
|
11241
|
-
@versini/ui-dropdown v1.1
|
|
11241
|
+
@versini/ui-dropdown v1.2.1
|
|
11242
11242
|
© 2025 gizmette.com
|
|
11243
11243
|
*/
|
|
11244
11244
|
try {
|
|
11245
11245
|
window.__VERSINI_UI_DROPDOWN__ || (window.__VERSINI_UI_DROPDOWN__ = {
|
|
11246
|
-
version: "1.1
|
|
11247
|
-
buildTime: "12/
|
|
11246
|
+
version: "1.2.1",
|
|
11247
|
+
buildTime: "12/18/2025 09:09 AM EST",
|
|
11248
11248
|
homepage: "https://www.npmjs.com/package/@versini/ui-dropdown",
|
|
11249
11249
|
license: "MIT"
|
|
11250
11250
|
});
|
|
@@ -11260,7 +11260,7 @@ const HE = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11260
11260
|
"aria-label": n,
|
|
11261
11261
|
ref: f
|
|
11262
11262
|
}) : null;
|
|
11263
|
-
return /* @__PURE__ */
|
|
11263
|
+
return /* @__PURE__ */ D($E, {
|
|
11264
11264
|
onOpenChange: (E) => {
|
|
11265
11265
|
if (d(E), o?.(E), E && f.current) {
|
|
11266
11266
|
const _ = f.current.closest("dialog");
|
|
@@ -11295,14 +11295,21 @@ const HE = "z-100 rounded-md bg-surface-light shadow-sm shadow-border-dark outli
|
|
|
11295
11295
|
});
|
|
11296
11296
|
};
|
|
11297
11297
|
Nr.displayName = "DropdownMenu";
|
|
11298
|
-
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, {
|
|
11299
11299
|
children: [
|
|
11300
|
-
/* @__PURE__ */
|
|
11300
|
+
/* @__PURE__ */ D(BE, {
|
|
11301
11301
|
className: GE,
|
|
11302
|
-
disabled:
|
|
11302
|
+
disabled: r,
|
|
11303
11303
|
children: [
|
|
11304
|
-
/* @__PURE__ */
|
|
11305
|
-
|
|
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
|
+
]
|
|
11306
11313
|
}),
|
|
11307
11314
|
/* @__PURE__ */ g(Gu, {
|
|
11308
11315
|
className: "ml-2",
|
|
@@ -11314,10 +11321,10 @@ const Gl = ({ label: e, children: t, disabled: n = !1, sideOffset: r = 2, alignO
|
|
|
11314
11321
|
/* @__PURE__ */ g(Wl, {
|
|
11315
11322
|
children: /* @__PURE__ */ g(VE, {
|
|
11316
11323
|
className: WE,
|
|
11317
|
-
sideOffset:
|
|
11318
|
-
alignOffset:
|
|
11324
|
+
sideOffset: o,
|
|
11325
|
+
alignOffset: s,
|
|
11319
11326
|
loop: !0,
|
|
11320
|
-
children:
|
|
11327
|
+
children: n
|
|
11321
11328
|
})
|
|
11322
11329
|
})
|
|
11323
11330
|
]
|
|
@@ -11331,22 +11338,29 @@ const Kl = ({ className: e, ...t }) => {
|
|
|
11331
11338
|
});
|
|
11332
11339
|
};
|
|
11333
11340
|
Kl.displayName = "DropdownMenuSeparator";
|
|
11334
|
-
const br = ({ className: e,
|
|
11335
|
-
const
|
|
11336
|
-
return /* @__PURE__ */
|
|
11337
|
-
className:
|
|
11338
|
-
...
|
|
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
|
+
]
|
|
11339
11353
|
});
|
|
11340
11354
|
};
|
|
11341
11355
|
br.displayName = "DropdownMenuGroupLabel";
|
|
11342
11356
|
/*!
|
|
11343
|
-
@versini/ui-dropdown v1.1
|
|
11357
|
+
@versini/ui-dropdown v1.2.1
|
|
11344
11358
|
© 2025 gizmette.com
|
|
11345
11359
|
*/
|
|
11346
11360
|
try {
|
|
11347
11361
|
window.__VERSINI_UI_DROPDOWN__ || (window.__VERSINI_UI_DROPDOWN__ = {
|
|
11348
|
-
version: "1.1
|
|
11349
|
-
buildTime: "12/
|
|
11362
|
+
version: "1.2.1",
|
|
11363
|
+
buildTime: "12/18/2025 09:09 AM EST",
|
|
11350
11364
|
homepage: "https://www.npmjs.com/package/@versini/ui-dropdown",
|
|
11351
11365
|
license: "MIT"
|
|
11352
11366
|
});
|
|
@@ -11367,7 +11381,7 @@ const JE = Z("flex flex-row items-center", "w-full", "m-0 first:mt-0 mt-2 sm:mt-
|
|
|
11367
11381
|
const h = Z(JE, {
|
|
11368
11382
|
"bg-none": !t && !i
|
|
11369
11383
|
});
|
|
11370
|
-
return /* @__PURE__ */
|
|
11384
|
+
return /* @__PURE__ */ D(Pa, {
|
|
11371
11385
|
className: h,
|
|
11372
11386
|
disabled: t,
|
|
11373
11387
|
onSelect: (p) => {
|
|
@@ -11402,7 +11416,7 @@ const XE = (e) => {
|
|
|
11402
11416
|
className: e,
|
|
11403
11417
|
defaultPlacement: t = "top-start"
|
|
11404
11418
|
}) => {
|
|
11405
|
-
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({
|
|
11406
11420
|
user: a?.username,
|
|
11407
11421
|
getAccessToken: i
|
|
11408
11422
|
}), h = (f, y) => {
|
|
@@ -11417,7 +11431,7 @@ const XE = (e) => {
|
|
|
11417
11431
|
prompt: f
|
|
11418
11432
|
}
|
|
11419
11433
|
});
|
|
11420
|
-
}, m = u && d && d.tags && XE(d.tags), p = /* @__PURE__ */
|
|
11434
|
+
}, m = u && d && d.tags && XE(d.tags), p = /* @__PURE__ */ D(
|
|
11421
11435
|
Nr,
|
|
11422
11436
|
{
|
|
11423
11437
|
mode: "light",
|
|
@@ -11487,7 +11501,7 @@ const XE = (e) => {
|
|
|
11487
11501
|
dispatch: r,
|
|
11488
11502
|
setChatId: o,
|
|
11489
11503
|
setInitialMessages: s
|
|
11490
|
-
} = ue($e), [i, a] =
|
|
11504
|
+
} = ue($e), [i, a] = Ke(), [l, c] = V(!1), [d, u] = V(!1), [h, m] = Qe({
|
|
11491
11505
|
key: je + du,
|
|
11492
11506
|
initialValue: ""
|
|
11493
11507
|
}), [p, f] = V(!1), y = (E) => {
|
|
@@ -11503,7 +11517,7 @@ const XE = (e) => {
|
|
|
11503
11517
|
}
|
|
11504
11518
|
});
|
|
11505
11519
|
};
|
|
11506
|
-
return /* @__PURE__ */
|
|
11520
|
+
return /* @__PURE__ */ D(Rt, { children: [
|
|
11507
11521
|
d && /* @__PURE__ */ g(
|
|
11508
11522
|
mn,
|
|
11509
11523
|
{
|
|
@@ -11535,7 +11549,7 @@ const XE = (e) => {
|
|
|
11535
11549
|
cancelAction: "Cancel",
|
|
11536
11550
|
title: "Reasoning Chat"
|
|
11537
11551
|
},
|
|
11538
|
-
children: /* @__PURE__ */
|
|
11552
|
+
children: /* @__PURE__ */ D("ul", { children: [
|
|
11539
11553
|
/* @__PURE__ */ g("li", { children: 'Your chat session will use "reasoning" model capabilities.' }),
|
|
11540
11554
|
/* @__PURE__ */ g("li", { children: "Response times will increase. Be patient." }),
|
|
11541
11555
|
/* @__PURE__ */ g("li", { children: "If you refresh your browser, the setting will revert to the default (non-reasoning) chat." })
|
|
@@ -11582,7 +11596,7 @@ const XE = (e) => {
|
|
|
11582
11596
|
}) => {
|
|
11583
11597
|
const { getAccessToken: t, user: n } = Le(), {
|
|
11584
11598
|
state: { loading: r, streaming: o }
|
|
11585
|
-
} = ue($e), [s, i] =
|
|
11599
|
+
} = ue($e), [s, i] = Ke(), { data: a, isSuccess: l } = yt({
|
|
11586
11600
|
user: n?.username,
|
|
11587
11601
|
getAccessToken: t
|
|
11588
11602
|
});
|
|
@@ -11700,14 +11714,14 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11700
11714
|
}), pS = ({
|
|
11701
11715
|
files: e,
|
|
11702
11716
|
clearFile: t
|
|
11703
|
-
}) => e && e.length > 0 && /* @__PURE__ */
|
|
11704
|
-
/* @__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(
|
|
11705
11719
|
"div",
|
|
11706
11720
|
{
|
|
11707
11721
|
className: "inline-flex items-center bg-slate-700 text-copy-lighter text-xs px-2 py-1 rounded-md",
|
|
11708
11722
|
children: [
|
|
11709
11723
|
/* @__PURE__ */ g("span", { className: "max-w-[150px] truncate", children: n.name }),
|
|
11710
|
-
/* @__PURE__ */
|
|
11724
|
+
/* @__PURE__ */ D("span", { className: "mx-1 text-gray-400", children: [
|
|
11711
11725
|
"(",
|
|
11712
11726
|
er(n.size),
|
|
11713
11727
|
")"
|
|
@@ -11729,7 +11743,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11729
11743
|
},
|
|
11730
11744
|
`${n.name}-${r}`
|
|
11731
11745
|
)) }),
|
|
11732
|
-
/* @__PURE__ */
|
|
11746
|
+
/* @__PURE__ */ D("div", { className: "text-xs text-gray-400 mt-1 pl-1", children: [
|
|
11733
11747
|
"Total: ",
|
|
11734
11748
|
er(Yl(Array.from(e))),
|
|
11735
11749
|
" /",
|
|
@@ -11829,10 +11843,10 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11829
11843
|
}), { data: x } = yt({
|
|
11830
11844
|
user: e?.username,
|
|
11831
11845
|
getAccessToken: t
|
|
11832
|
-
}), 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({
|
|
11833
11847
|
oledMode: u,
|
|
11834
11848
|
placeholderColor: U(q.Placeholder)
|
|
11835
|
-
}), 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({
|
|
11836
11850
|
onFinish: (Y) => {
|
|
11837
11851
|
S();
|
|
11838
11852
|
const le = Y.message?.metadata;
|
|
@@ -11843,7 +11857,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11843
11857
|
}
|
|
11844
11858
|
});
|
|
11845
11859
|
}
|
|
11846
|
-
}), se = tS(!!
|
|
11860
|
+
}), se = tS(!!Xe.length), Et = B(
|
|
11847
11861
|
(Y) => {
|
|
11848
11862
|
Ce(Y.target.value);
|
|
11849
11863
|
},
|
|
@@ -11999,7 +12013,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
11999
12013
|
headers: {
|
|
12000
12014
|
"Content-Type": "application/json",
|
|
12001
12015
|
authorization: `Bearer ${de}`,
|
|
12002
|
-
[gu]:
|
|
12016
|
+
[gu]: Je
|
|
12003
12017
|
},
|
|
12004
12018
|
body: {
|
|
12005
12019
|
reasoning: m
|
|
@@ -12013,7 +12027,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12013
12027
|
[
|
|
12014
12028
|
"mod+K",
|
|
12015
12029
|
() => {
|
|
12016
|
-
R && R.current && !
|
|
12030
|
+
R && R.current && !Ve() && R.current.focus();
|
|
12017
12031
|
}
|
|
12018
12032
|
]
|
|
12019
12033
|
]), F(() => {
|
|
@@ -12022,7 +12036,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12022
12036
|
Y.indexOf(ms) !== -1 ? navigator.clipboard.readText().then((le) => {
|
|
12023
12037
|
const St = le.startsWith("http://") || le.startsWith("https://") ? le : `"""${le}"""`;
|
|
12024
12038
|
Ce(Y.replace(ms, St));
|
|
12025
|
-
}) : Ce(Y), !
|
|
12039
|
+
}) : Ce(Y), !Ve() && R.current && R.current.focus(), I({
|
|
12026
12040
|
type: Fa
|
|
12027
12041
|
});
|
|
12028
12042
|
}
|
|
@@ -12031,16 +12045,16 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12031
12045
|
H.current = !0, !ye && Bn(R);
|
|
12032
12046
|
return;
|
|
12033
12047
|
}
|
|
12034
|
-
y > 0 && y !==
|
|
12048
|
+
y > 0 && y !== k.current ? (k.current = y, setTimeout(() => {
|
|
12035
12049
|
R.current && (!ye && Bn(R), R.current.focus());
|
|
12036
|
-
}, IS)) : p === !1 && !ye && (Bn(R), !
|
|
12050
|
+
}, IS)) : p === !1 && !ye && (Bn(R), !Ve() && R.current && R.current.focus());
|
|
12037
12051
|
}, [y, p, ye]), F(() => {
|
|
12038
12052
|
v.lastTriggeredTimestamp && setTimeout(() => {
|
|
12039
12053
|
Yt();
|
|
12040
12054
|
}, 100);
|
|
12041
12055
|
}, [v.lastTriggeredTimestamp, Yt]), F(() => {
|
|
12042
12056
|
w === 0 && (N.current && (N.current.value = ""), i(null));
|
|
12043
|
-
}, [w]), /* @__PURE__ */
|
|
12057
|
+
}, [w]), /* @__PURE__ */ D(Rt, { children: [
|
|
12044
12058
|
/* @__PURE__ */ g(
|
|
12045
12059
|
mn,
|
|
12046
12060
|
{
|
|
@@ -12057,9 +12071,9 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12057
12071
|
children: /* @__PURE__ */ g("p", { className: "m-0", children: O.current })
|
|
12058
12072
|
}
|
|
12059
12073
|
),
|
|
12060
|
-
/* @__PURE__ */ g("div", { className:
|
|
12074
|
+
/* @__PURE__ */ g("div", { className: $.wrapper, ref: L, children: /* @__PURE__ */ D("form", { onSubmit: cs, children: [
|
|
12061
12075
|
/* @__PURE__ */ g("div", { id: X, className: "sr-only", children: Ya }),
|
|
12062
|
-
/* @__PURE__ */
|
|
12076
|
+
/* @__PURE__ */ D("div", { className: "relative pb-3 sm:pb-0", children: [
|
|
12063
12077
|
/* @__PURE__ */ g(
|
|
12064
12078
|
"textarea",
|
|
12065
12079
|
{
|
|
@@ -12073,7 +12087,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12073
12087
|
onKeyDown: Wv([
|
|
12074
12088
|
[c ? "enter" : "mod+Enter", cs]
|
|
12075
12089
|
]),
|
|
12076
|
-
className:
|
|
12090
|
+
className: $.textArea,
|
|
12077
12091
|
"aria-labelledby": X
|
|
12078
12092
|
}
|
|
12079
12093
|
),
|
|
@@ -12091,7 +12105,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12091
12105
|
)
|
|
12092
12106
|
] }),
|
|
12093
12107
|
/* @__PURE__ */ g(pS, { files: s, clearFile: nu }),
|
|
12094
|
-
/* @__PURE__ */
|
|
12108
|
+
/* @__PURE__ */ D("div", { className: "p-2 flex items-center", children: [
|
|
12095
12109
|
/* @__PURE__ */ g(eS, { className: "order-7 ml-auto" }),
|
|
12096
12110
|
/* @__PURE__ */ g(
|
|
12097
12111
|
tb,
|
|
@@ -12142,7 +12156,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12142
12156
|
dispatch: a
|
|
12143
12157
|
} = ue(yn), [l] = V(
|
|
12144
12158
|
() => hs[Math.floor(Math.random() * hs.length)]
|
|
12145
|
-
), 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(() => {
|
|
12146
12160
|
const I = c ? yu : d ? bu : Ha;
|
|
12147
12161
|
return c ? _ > 70 && _ < 500 ? Lr / 2 : I : d ? y ? Lr : I : _ > 0 && _ < 100 ? Lr : I;
|
|
12148
12162
|
}, [_, c, d, y]);
|
|
@@ -12212,7 +12226,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12212
12226
|
"transition-all duration-300 ease-in-out": d
|
|
12213
12227
|
}
|
|
12214
12228
|
),
|
|
12215
|
-
children: /* @__PURE__ */
|
|
12229
|
+
children: /* @__PURE__ */ D("div", { className: io({ fullScreen: i }), children: [
|
|
12216
12230
|
/* @__PURE__ */ g(NS, {}),
|
|
12217
12231
|
/* @__PURE__ */ g(
|
|
12218
12232
|
"div",
|
|
@@ -12249,7 +12263,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12249
12263
|
state: { privateChat: n },
|
|
12250
12264
|
setChatId: r,
|
|
12251
12265
|
setInitialMessages: o
|
|
12252
|
-
} = 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(() => {
|
|
12253
12267
|
h || (Cv(), m(!0));
|
|
12254
12268
|
}, [h]), {
|
|
12255
12269
|
isSuccess: f,
|
|
@@ -12260,28 +12274,28 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12260
12274
|
getAccessToken: s
|
|
12261
12275
|
}), E = Pe(() => {
|
|
12262
12276
|
if (ls(l, c)) {
|
|
12263
|
-
const
|
|
12264
|
-
(R) =>
|
|
12277
|
+
const k = wu(l), L = ao.filter(
|
|
12278
|
+
(R) => k.includes(
|
|
12265
12279
|
R.id
|
|
12266
12280
|
)
|
|
12267
12281
|
);
|
|
12268
|
-
return
|
|
12282
|
+
return L.length > 0 ? L : ao;
|
|
12269
12283
|
}
|
|
12270
12284
|
return ao;
|
|
12271
12285
|
}, [l, c]), _ = Pe(() => ls(l, c) ? Iu(l) : /* @__PURE__ */ new Map(), [l, c]), v = Pe(() => {
|
|
12272
12286
|
if (!w?.useNestedModelSelection)
|
|
12273
12287
|
return !1;
|
|
12274
|
-
for (const
|
|
12275
|
-
if (
|
|
12288
|
+
for (const k of _.values())
|
|
12289
|
+
if (k.length > 1)
|
|
12276
12290
|
return !0;
|
|
12277
12291
|
return !1;
|
|
12278
|
-
}, [w?.useNestedModelSelection, _]), I = async (
|
|
12292
|
+
}, [w?.useNestedModelSelection, _]), I = async (k) => {
|
|
12279
12293
|
try {
|
|
12280
|
-
r(mt()), o([]),
|
|
12281
|
-
provider:
|
|
12294
|
+
r(mt()), o([]), k !== w?.provider && (await us({
|
|
12295
|
+
provider: k,
|
|
12282
12296
|
accessToken: await s(),
|
|
12283
12297
|
username: i?.username || ""
|
|
12284
|
-
}), y(), await ur(`${gs} ${
|
|
12298
|
+
}), y(), await ur(`${gs} ${k}`, {
|
|
12285
12299
|
containerId: "toggle-provider"
|
|
12286
12300
|
})), t({
|
|
12287
12301
|
type: Vt,
|
|
@@ -12291,18 +12305,18 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12291
12305
|
});
|
|
12292
12306
|
} catch {
|
|
12293
12307
|
}
|
|
12294
|
-
}, T = async (
|
|
12308
|
+
}, T = async (k, L) => {
|
|
12295
12309
|
try {
|
|
12296
|
-
if (r(mt()), o([]),
|
|
12310
|
+
if (r(mt()), o([]), k !== w?.provider || L !== w?.model) {
|
|
12297
12311
|
await us({
|
|
12298
|
-
provider:
|
|
12299
|
-
model:
|
|
12312
|
+
provider: k,
|
|
12313
|
+
model: L,
|
|
12300
12314
|
accessToken: await s(),
|
|
12301
12315
|
username: i?.username || ""
|
|
12302
12316
|
}), y();
|
|
12303
|
-
const R = $r[
|
|
12317
|
+
const R = $r[L] || L;
|
|
12304
12318
|
await ur(
|
|
12305
|
-
`${gs} ${
|
|
12319
|
+
`${gs} ${k} (${R})`,
|
|
12306
12320
|
{
|
|
12307
12321
|
containerId: "toggle-provider"
|
|
12308
12322
|
}
|
|
@@ -12317,8 +12331,8 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12317
12331
|
} catch {
|
|
12318
12332
|
}
|
|
12319
12333
|
}, S = w && f, x = S && E.find(
|
|
12320
|
-
(
|
|
12321
|
-
)?.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(
|
|
12322
12336
|
Nr,
|
|
12323
12337
|
{
|
|
12324
12338
|
mode: "light",
|
|
@@ -12344,37 +12358,43 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12344
12358
|
defaultPlacement: "top-start",
|
|
12345
12359
|
children: [
|
|
12346
12360
|
/* @__PURE__ */ g(br, { children: "Providers" }),
|
|
12347
|
-
S && E.map((
|
|
12348
|
-
const
|
|
12349
|
-
return v &&
|
|
12350
|
-
/* @__PURE__ */
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
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(
|
|
12355
12375
|
ke,
|
|
12356
12376
|
{
|
|
12357
|
-
selected: w.provider ===
|
|
12377
|
+
selected: w.provider === k.id && w.model === X,
|
|
12358
12378
|
label: $r[X] || X,
|
|
12359
|
-
onClick: () => T(
|
|
12379
|
+
onClick: () => T(k.id, X)
|
|
12360
12380
|
},
|
|
12361
12381
|
X
|
|
12362
12382
|
))
|
|
12363
|
-
] },
|
|
12383
|
+
] }, k.id) : /* @__PURE__ */ g(
|
|
12364
12384
|
ke,
|
|
12365
12385
|
{
|
|
12366
|
-
selected: w.provider ===
|
|
12367
|
-
label:
|
|
12368
|
-
icon: /* @__PURE__ */ g(
|
|
12369
|
-
onClick: () => I(
|
|
12386
|
+
selected: w.provider === k.id,
|
|
12387
|
+
label: k.label,
|
|
12388
|
+
icon: /* @__PURE__ */ g(k.icon, {}),
|
|
12389
|
+
onClick: () => I(k.id)
|
|
12370
12390
|
},
|
|
12371
|
-
|
|
12391
|
+
k.id
|
|
12372
12392
|
);
|
|
12373
12393
|
})
|
|
12374
12394
|
]
|
|
12375
12395
|
}
|
|
12376
12396
|
) });
|
|
12377
|
-
return S ? /* @__PURE__ */
|
|
12397
|
+
return S ? /* @__PURE__ */ D("div", { className: "flex items-center", children: [
|
|
12378
12398
|
/* @__PURE__ */ g(
|
|
12379
12399
|
wt,
|
|
12380
12400
|
{
|
|
@@ -12399,38 +12419,38 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12399
12419
|
}, MS = ot(
|
|
12400
12420
|
() => import(
|
|
12401
12421
|
/* webpackChunkName: "modal-chunk" */
|
|
12402
|
-
"./ProfileEntry.
|
|
12422
|
+
"./ProfileEntry.TGFPHyLG.js"
|
|
12403
12423
|
).then((e) => ({
|
|
12404
12424
|
default: e.Profile
|
|
12405
12425
|
}))
|
|
12406
12426
|
), DS = ot(
|
|
12407
12427
|
() => import(
|
|
12408
12428
|
/* webpackChunkName: "modal-chunk" */
|
|
12409
|
-
"./SettingsEntry.
|
|
12429
|
+
"./SettingsEntry.Cwlr6D0l.js"
|
|
12410
12430
|
).then((e) => ({
|
|
12411
12431
|
default: e.SettingsPanel
|
|
12412
12432
|
}))
|
|
12413
12433
|
), LS = ot(
|
|
12414
12434
|
() => import(
|
|
12415
12435
|
/* webpackChunkName: "modal-chunk" */
|
|
12416
|
-
"./HistoryEntry.
|
|
12436
|
+
"./HistoryEntry.CsubfQOb.js"
|
|
12417
12437
|
).then((e) => ({
|
|
12418
12438
|
default: e.HistoryPanel
|
|
12419
12439
|
}))
|
|
12420
12440
|
), $S = ot(
|
|
12421
12441
|
() => import(
|
|
12422
12442
|
/* webpackChunkName: "modal-chunk" */
|
|
12423
|
-
"./AboutEntry.
|
|
12443
|
+
"./AboutEntry.C3Y_6vyK.js"
|
|
12424
12444
|
).then((e) => ({ default: e.About }))
|
|
12425
12445
|
), zS = ot(
|
|
12426
12446
|
() => import(
|
|
12427
12447
|
/* webpackChunkName: "modal-chunk" */
|
|
12428
|
-
"./UsageEntry.
|
|
12448
|
+
"./UsageEntry.Ckb1qHWi.js"
|
|
12429
12449
|
).then((e) => ({ default: e.Usage }))
|
|
12430
12450
|
), ZS = ot(
|
|
12431
12451
|
() => import(
|
|
12432
12452
|
/* webpackChunkName: "modal-chunk" */
|
|
12433
|
-
"./MemoriesEntry.
|
|
12453
|
+
"./MemoriesEntry.Cs7R8WdN.js"
|
|
12434
12454
|
).then((e) => ({ default: e.default }))
|
|
12435
12455
|
), FS = ({
|
|
12436
12456
|
open: e,
|
|
@@ -12467,7 +12487,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12467
12487
|
}) => {
|
|
12468
12488
|
const {
|
|
12469
12489
|
state: { oledMode: t }
|
|
12470
|
-
} = 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({
|
|
12471
12491
|
user: o?.username,
|
|
12472
12492
|
getAccessToken: r
|
|
12473
12493
|
}), [d, u] = V(null), [h, m] = V(!1), [p, f] = V(!1), [y, w] = V(!1), E = mr(tr.TOOL.MEMORIES);
|
|
@@ -12478,23 +12498,23 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12478
12498
|
p || Promise.all([
|
|
12479
12499
|
import(
|
|
12480
12500
|
/* webpackChunkName: "modal-chunk" */
|
|
12481
|
-
"./ProfileEntry.
|
|
12501
|
+
"./ProfileEntry.TGFPHyLG.js"
|
|
12482
12502
|
),
|
|
12483
12503
|
import(
|
|
12484
12504
|
/* webpackChunkName: "modal-chunk" */
|
|
12485
|
-
"./SettingsEntry.
|
|
12505
|
+
"./SettingsEntry.Cwlr6D0l.js"
|
|
12486
12506
|
),
|
|
12487
12507
|
import(
|
|
12488
12508
|
/* webpackChunkName: "modal-chunk" */
|
|
12489
|
-
"./HistoryEntry.
|
|
12509
|
+
"./HistoryEntry.CsubfQOb.js"
|
|
12490
12510
|
),
|
|
12491
12511
|
import(
|
|
12492
12512
|
/* webpackChunkName: "modal-chunk" */
|
|
12493
|
-
"./AboutEntry.
|
|
12513
|
+
"./AboutEntry.C3Y_6vyK.js"
|
|
12494
12514
|
),
|
|
12495
12515
|
import(
|
|
12496
12516
|
/* webpackChunkName: "modal-chunk" */
|
|
12497
|
-
"./UsageEntry.
|
|
12517
|
+
"./UsageEntry.Ckb1qHWi.js"
|
|
12498
12518
|
)
|
|
12499
12519
|
]).finally(() => f(!0));
|
|
12500
12520
|
}, [p]), v = B((O) => {
|
|
@@ -12525,7 +12545,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12525
12545
|
* focus.
|
|
12526
12546
|
*/
|
|
12527
12547
|
[]
|
|
12528
|
-
), /* @__PURE__ */
|
|
12548
|
+
), /* @__PURE__ */ D(Rt, { children: [
|
|
12529
12549
|
/* @__PURE__ */ g(
|
|
12530
12550
|
mn,
|
|
12531
12551
|
{
|
|
@@ -12555,7 +12575,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12555
12575
|
"bg-slate-900": !t,
|
|
12556
12576
|
"bg-slate-900/95 dark:bg-slate-900": t
|
|
12557
12577
|
}),
|
|
12558
|
-
children: /* @__PURE__ */
|
|
12578
|
+
children: /* @__PURE__ */ D(
|
|
12559
12579
|
co,
|
|
12560
12580
|
{
|
|
12561
12581
|
alignHorizontal: "space-between",
|
|
@@ -12570,7 +12590,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12570
12590
|
label: "Profile, Settings, etc.",
|
|
12571
12591
|
mode: "light",
|
|
12572
12592
|
placement: "left",
|
|
12573
|
-
trigger: /* @__PURE__ */
|
|
12593
|
+
trigger: /* @__PURE__ */ D(
|
|
12574
12594
|
Nr,
|
|
12575
12595
|
{
|
|
12576
12596
|
mode: "light",
|
|
@@ -12636,7 +12656,7 @@ const nS = [".png", ".jpg", ".jpeg", ".webp"], rS = [".pdf", ".txt"], oS = [
|
|
|
12636
12656
|
icon: /* @__PURE__ */ g(bd, {})
|
|
12637
12657
|
}
|
|
12638
12658
|
),
|
|
12639
|
-
!e && /* @__PURE__ */
|
|
12659
|
+
!e && /* @__PURE__ */ D(Rt, { children: [
|
|
12640
12660
|
/* @__PURE__ */ g(Kl, {}),
|
|
12641
12661
|
/* @__PURE__ */ g(
|
|
12642
12662
|
ke,
|
|
@@ -12753,12 +12773,12 @@ const za = "av-spinner", eu = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12753
12773
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
12754
12774
|
"fill-copy-accent dark:fill-copy-dark": t === "alt-system"
|
|
12755
12775
|
});
|
|
12756
|
-
return /* @__PURE__ */
|
|
12776
|
+
return /* @__PURE__ */ D("div", {
|
|
12757
12777
|
ref: e,
|
|
12758
12778
|
className: o,
|
|
12759
12779
|
role: "status",
|
|
12760
12780
|
children: [
|
|
12761
|
-
n === "dots" && /* @__PURE__ */
|
|
12781
|
+
n === "dots" && /* @__PURE__ */ D("svg", {
|
|
12762
12782
|
className: "h-8 w-8",
|
|
12763
12783
|
children: [
|
|
12764
12784
|
/* @__PURE__ */ g("circle", {
|
|
@@ -12788,18 +12808,18 @@ const za = "av-spinner", eu = ({ spinnerRef: e, mode: t = "system", type: n = "c
|
|
|
12788
12808
|
]
|
|
12789
12809
|
});
|
|
12790
12810
|
}, HS = ot(
|
|
12791
|
-
() => import("./index.
|
|
12811
|
+
() => import("./index.BeB9u080.js").then((e) => ({ default: e.Bubble }))
|
|
12792
12812
|
), is = (e) => /* @__PURE__ */ g(nr, { fallback: /* @__PURE__ */ g("span", { className: "inline-block" }), children: /* @__PURE__ */ g(HS, { ...e }) });
|
|
12793
12813
|
is.displayName = "AsyncBubble";
|
|
12794
12814
|
const Za = 1, WS = 150, GS = ot(
|
|
12795
12815
|
() => import(
|
|
12796
12816
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
12797
|
-
"./ChatBubbleAssistant.
|
|
12817
|
+
"./ChatBubbleAssistant.BOfIJ2mi.js"
|
|
12798
12818
|
)
|
|
12799
12819
|
), KS = ot(
|
|
12800
12820
|
() => import(
|
|
12801
12821
|
/* webpackChunkName: "LazyMessageUser" */
|
|
12802
|
-
"./ChatBubbleUser.
|
|
12822
|
+
"./ChatBubbleUser.Cf0Aas2V.js"
|
|
12803
12823
|
)
|
|
12804
12824
|
), YS = it.memo(
|
|
12805
12825
|
({
|
|
@@ -12862,7 +12882,7 @@ function XS(e) {
|
|
|
12862
12882
|
}
|
|
12863
12883
|
const qS = () => {
|
|
12864
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;
|
|
12865
|
-
return e && e.length > 0 ? /* @__PURE__ */
|
|
12885
|
+
return e && e.length > 0 ? /* @__PURE__ */ D("div", { className: "space-y-6 mt-2 @container", children: [
|
|
12866
12886
|
e?.map((s, i) => {
|
|
12867
12887
|
let a;
|
|
12868
12888
|
const l = `${i}-${s.role}`, c = JS(s), d = XS(s), u = s.role === an && i === n;
|
|
@@ -12900,8 +12920,8 @@ const qS = () => {
|
|
|
12900
12920
|
c && y();
|
|
12901
12921
|
}, [c, y]), F(() => {
|
|
12902
12922
|
u.current = s === rn ? i + a + Ga + Au + 15 : 0;
|
|
12903
|
-
}, [s, i, a]), /* @__PURE__ */
|
|
12904
|
-
/* @__PURE__ */
|
|
12923
|
+
}, [s, i, a]), /* @__PURE__ */ D(Rt, { children: [
|
|
12924
|
+
/* @__PURE__ */ D("div", { className: p, ref: r, children: [
|
|
12905
12925
|
/* @__PURE__ */ g(
|
|
12906
12926
|
Ed,
|
|
12907
12927
|
{
|
|
@@ -12936,33 +12956,33 @@ function tu({
|
|
|
12936
12956
|
isComponent: e = !1,
|
|
12937
12957
|
headerHeight: t = 0
|
|
12938
12958
|
}) {
|
|
12939
|
-
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({
|
|
12940
12960
|
key: je + Du,
|
|
12941
12961
|
initialValue: ""
|
|
12942
|
-
}), [m] =
|
|
12962
|
+
}), [m] = Qe({
|
|
12943
12963
|
key: je + Mu,
|
|
12944
12964
|
initialValue: fs
|
|
12945
|
-
}), [p] =
|
|
12965
|
+
}), [p] = Qe({
|
|
12946
12966
|
key: je + zu,
|
|
12947
12967
|
initialValue: nn.DESC
|
|
12948
|
-
}), [f] =
|
|
12968
|
+
}), [f] = Qe({
|
|
12949
12969
|
key: je + Zu,
|
|
12950
12970
|
initialValue: nn.ASC
|
|
12951
|
-
}), [y] =
|
|
12971
|
+
}), [y] = Qe({
|
|
12952
12972
|
key: Lu,
|
|
12953
12973
|
initialValue: !1
|
|
12954
|
-
}), [w] =
|
|
12974
|
+
}), [w] = Qe({
|
|
12955
12975
|
key: $u,
|
|
12956
12976
|
initialValue: !1
|
|
12957
12977
|
}), E = Pe(() => ({
|
|
12958
12978
|
footerPosition: lo,
|
|
12959
12979
|
footerHeight: 0,
|
|
12960
|
-
footerOffset:
|
|
12980
|
+
footerOffset: Ve() ? Ha : 0,
|
|
12961
12981
|
oledMode: !1,
|
|
12962
12982
|
fullScreen: !1,
|
|
12963
12983
|
themeMode: Ou
|
|
12964
12984
|
}), []), [_, v] = On(Sd, E), I = Pe(() => {
|
|
12965
|
-
const U =
|
|
12985
|
+
const U = Ve(), q = ja();
|
|
12966
12986
|
return U && q ? "mt-1" : "mt-5";
|
|
12967
12987
|
}, []), S = {
|
|
12968
12988
|
searchString: h,
|
|
@@ -12982,7 +13002,7 @@ function tu({
|
|
|
12982
13002
|
), [N, H] = On(Rv, {
|
|
12983
13003
|
prompt: "",
|
|
12984
13004
|
lastTriggeredTimestamp: 0
|
|
12985
|
-
}), [
|
|
13005
|
+
}), [k, L] = On(xv, {
|
|
12986
13006
|
provider: "",
|
|
12987
13007
|
// OpenAI, Anthropic, etc.
|
|
12988
13008
|
privateChat: !1,
|
|
@@ -13009,7 +13029,7 @@ function tu({
|
|
|
13009
13029
|
currentChatId: l,
|
|
13010
13030
|
setChatId: c,
|
|
13011
13031
|
setInitialMessages: u,
|
|
13012
|
-
dispatchChat:
|
|
13032
|
+
dispatchChat: L
|
|
13013
13033
|
}), F(() => {
|
|
13014
13034
|
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
|
13015
13035
|
}, []), F(() => {
|
|
@@ -13031,7 +13051,7 @@ function tu({
|
|
|
13031
13051
|
payload: { themePalette: R.themePalette }
|
|
13032
13052
|
});
|
|
13033
13053
|
}, [R]), F(() => {
|
|
13034
|
-
R && R.provider &&
|
|
13054
|
+
R && R.provider && L({
|
|
13035
13055
|
type: ic,
|
|
13036
13056
|
payload: {
|
|
13037
13057
|
provider: R.provider
|
|
@@ -13053,7 +13073,7 @@ function tu({
|
|
|
13053
13073
|
);
|
|
13054
13074
|
} else
|
|
13055
13075
|
s(
|
|
13056
|
-
|
|
13076
|
+
Ve() ? `${ku}px` : `${ds}px`
|
|
13057
13077
|
);
|
|
13058
13078
|
}, [
|
|
13059
13079
|
_.footerPosition,
|
|
@@ -13077,12 +13097,12 @@ function tu({
|
|
|
13077
13097
|
$e.Provider,
|
|
13078
13098
|
{
|
|
13079
13099
|
value: {
|
|
13080
|
-
state:
|
|
13081
|
-
dispatch:
|
|
13100
|
+
state: k,
|
|
13101
|
+
dispatch: L,
|
|
13082
13102
|
setChatId: c,
|
|
13083
13103
|
setInitialMessages: u
|
|
13084
13104
|
},
|
|
13085
|
-
children: /* @__PURE__ */
|
|
13105
|
+
children: /* @__PURE__ */ D(
|
|
13086
13106
|
Lv,
|
|
13087
13107
|
{
|
|
13088
13108
|
value: {
|
|
@@ -13096,7 +13116,7 @@ function tu({
|
|
|
13096
13116
|
},
|
|
13097
13117
|
children: [
|
|
13098
13118
|
/* @__PURE__ */ g($v, { chatId: l }),
|
|
13099
|
-
/* @__PURE__ */
|
|
13119
|
+
/* @__PURE__ */ D("div", { className: Ad, children: [
|
|
13100
13120
|
/* @__PURE__ */ g(na, { containerId: "toggle-save" }),
|
|
13101
13121
|
/* @__PURE__ */ g(na, { containerId: "toggle-provider" })
|
|
13102
13122
|
] }),
|
|
@@ -13158,6 +13178,6 @@ export {
|
|
|
13158
13178
|
bt as useAiChat,
|
|
13159
13179
|
mr as useCapability,
|
|
13160
13180
|
BS as useInViewport,
|
|
13161
|
-
|
|
13181
|
+
Qe as useLocalStorage,
|
|
13162
13182
|
mt as v4
|
|
13163
13183
|
};
|