@sheetxl/utils-react 0.8.0-beta.4 → 0.8.0-beta.5
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/browser/cjs/index.cjs +2 -2
- package/browser/esm/{DL_B0mk_DcK8jJvZ.mjs → B4PJtIazZlYB6W9_.mjs} +1 -1
- package/browser/esm/{BxaBAJDNKCKgWyAw.mjs → CNYL4NlMcPAd1GD1.mjs} +2 -2
- package/browser/esm/{DMdwCdRQ-QbsMuLQ.mjs → Deku7hTLCs4v0tqx.mjs} +2 -2
- package/browser/esm/index.mjs +311 -301
- package/node/esm/{BerYaZU00kR4Yaop.mjs → C772PCaAJA8X5IgJ.mjs} +1 -1
- package/node/esm/{BzVOR2xcr52Z_2yz.mjs → D36LxEXtaQioLHfh.mjs} +1 -1
- package/node/esm/index.mjs +318 -308
- package/package.json +2 -2
- package/types/src/persistence/Types.d.ts +15 -1
- package/types/src/persistence/_Context.d.ts +1 -0
- package/types/src/persistence/usePersistenceState.d.ts +7 -5
package/node/esm/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.5
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
7
|
import { CommonUtils as e, DefaultLanguagePackService as t, DefaultNotifier as n, ExpectedError as o, InternalClipboard as r, Notifier as i, TimerUtils as s, fetchLocaleResourceAll as l, formatMessage as a, loadPackageLocales as c, mergeMessageFiles as h, onResourceRootsChange as u, resolveLocaleChain as d } from "@sheetxl/utils";
|
|
8
8
|
import * as f from "react";
|
|
9
|
-
import p, { Component as m, cloneElement as g, createContext as _, createElement as v, forwardRef as y, isValidElement as b, lazy as w, memo as x, useCallback as S, useContext as C, useEffect as M, useId as E, useImperativeHandle as
|
|
9
|
+
import p, { Component as m, cloneElement as g, createContext as _, createElement as v, forwardRef as y, isValidElement as b, lazy as w, memo as x, useCallback as S, useContext as C, useEffect as M, useId as E, useImperativeHandle as k, useLayoutEffect as T, useMemo as L, useReducer as D, useRef as P, useState as A, useSyncExternalStore as z } from "react";
|
|
10
10
|
import { Fragment as R, jsx as $, jsxs as B } from "react/jsx-runtime";
|
|
11
|
-
import * as
|
|
12
|
-
import { useMeasure as
|
|
11
|
+
import * as H from "detect-it";
|
|
12
|
+
import { useMeasure as I } from "react-use";
|
|
13
13
|
import { mergeRefs as N } from "react-merge-refs";
|
|
14
14
|
import { createRoot as O } from "react-dom/client";
|
|
15
15
|
import { createPortal as F, unstable_batchedUpdates as W } from "react-dom";
|
|
@@ -559,9 +559,9 @@ function Ee(e = se) {
|
|
|
559
559
|
dispose: () => S()
|
|
560
560
|
};
|
|
561
561
|
}
|
|
562
|
-
var
|
|
562
|
+
var ke = Ee(), Te = _(null);
|
|
563
563
|
function Le() {
|
|
564
|
-
return C(
|
|
564
|
+
return C(Te);
|
|
565
565
|
}
|
|
566
566
|
var De = class e {
|
|
567
567
|
constructor(e, t = null, n) {
|
|
@@ -911,12 +911,12 @@ var Ae = class {
|
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
913
|
}, Be = J({
|
|
914
|
-
EmptyCssProperties: () =>
|
|
914
|
+
EmptyCssProperties: () => Ie,
|
|
915
915
|
createSyntheticEvent: () => Ze,
|
|
916
916
|
detectIt: () => We,
|
|
917
917
|
edgeCenter: () => Xe,
|
|
918
918
|
edgeTrailingShift: () => Ue,
|
|
919
|
-
focusableNodeNames: () =>
|
|
919
|
+
focusableNodeNames: () => He,
|
|
920
920
|
getDevicePixelRatio: () => Ke,
|
|
921
921
|
isEditable: () => Oe,
|
|
922
922
|
replaceRangeText: () => Fe,
|
|
@@ -924,11 +924,11 @@ var Ae = class {
|
|
|
924
924
|
snapDeviceWidth: () => Ve,
|
|
925
925
|
snapLineCenter: () => Ye,
|
|
926
926
|
toPrettyKeyCode: () => qe
|
|
927
|
-
}),
|
|
927
|
+
}), He = /* @__PURE__ */ new Set([
|
|
928
928
|
"INPUT",
|
|
929
929
|
"TEXTAREA",
|
|
930
930
|
"SELECT"
|
|
931
|
-
]),
|
|
931
|
+
]), Ie = {}, Ne = /* @__PURE__ */ new Set([
|
|
932
932
|
"button",
|
|
933
933
|
"checkbox",
|
|
934
934
|
"radio",
|
|
@@ -953,7 +953,7 @@ function Fe(e, t, n, o) {
|
|
|
953
953
|
return e.setRangeText(o, t, n, "end"), e.dispatchEvent(new Event("input", { bubbles: !0 })), !0;
|
|
954
954
|
}
|
|
955
955
|
function We() {
|
|
956
|
-
return
|
|
956
|
+
return H;
|
|
957
957
|
}
|
|
958
958
|
function Ke() {
|
|
959
959
|
return "undefined" != typeof window && window.devicePixelRatio || 1;
|
|
@@ -1308,11 +1308,11 @@ var St = _(null), Ct = St.Provider;
|
|
|
1308
1308
|
function Mt() {
|
|
1309
1309
|
return C(St);
|
|
1310
1310
|
}
|
|
1311
|
-
var Et = _(null),
|
|
1311
|
+
var Et = _(null), kt = Et.Provider, Tt = () => C(Et);
|
|
1312
1312
|
function Lt(e, t) {
|
|
1313
1313
|
const n = gt(), o = bt(), r = L(() => Array.isArray(e) ? [...e] : [e], [Array.isArray(e) ? e.join("\0") : String(e)]), i = P(t);
|
|
1314
1314
|
i.current = t;
|
|
1315
|
-
const s =
|
|
1315
|
+
const s = Tt(), l = P(s);
|
|
1316
1316
|
l.current = s;
|
|
1317
1317
|
const a = Mt(), c = P(a);
|
|
1318
1318
|
return c.current = a, L(() => n ? r.map((e) => {
|
|
@@ -1369,7 +1369,7 @@ var Pt = J({
|
|
|
1369
1369
|
CommandFocusProvider: () => Ct,
|
|
1370
1370
|
CommandOrderContext: () => at,
|
|
1371
1371
|
CommandRegistry: () => ie,
|
|
1372
|
-
CommandRegistryContext: () =>
|
|
1372
|
+
CommandRegistryContext: () => Te,
|
|
1373
1373
|
CommandResolver: () => it,
|
|
1374
1374
|
CommandResolverContext: () => mt,
|
|
1375
1375
|
CommandScope: () => De,
|
|
@@ -1377,7 +1377,7 @@ var Pt = J({
|
|
|
1377
1377
|
CommandScopeProvider: () => ft,
|
|
1378
1378
|
ConstantActivation: () => ze,
|
|
1379
1379
|
DefaultCommandButtonRegistry: () => ce,
|
|
1380
|
-
DefaultCommandCatalogService: () =>
|
|
1380
|
+
DefaultCommandCatalogService: () => ke,
|
|
1381
1381
|
DefaultCommandRegistry: () => se,
|
|
1382
1382
|
FocusActivation: () => Re,
|
|
1383
1383
|
KeyBindingDispatcher: () => et,
|
|
@@ -1430,7 +1430,7 @@ function $t({ children: e }) {
|
|
|
1430
1430
|
children: e
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
|
-
var Bt = 3,
|
|
1433
|
+
var Bt = 3, Ht = .5, It = 50, Nt = (e) => ({
|
|
1434
1434
|
x: e.x,
|
|
1435
1435
|
y: e.y,
|
|
1436
1436
|
width: e.width,
|
|
@@ -1441,7 +1441,7 @@ var Bt = 3, It = .5, Ht = 50, Nt = (e) => ({
|
|
|
1441
1441
|
bottom: e.bottom
|
|
1442
1442
|
});
|
|
1443
1443
|
function Ot(e = {}) {
|
|
1444
|
-
const { threshold: t =
|
|
1444
|
+
const { threshold: t = Ht, stillnessThreshold: n = Bt, maxHierarchyDepth: o = It } = e, [r, i] = I(), s = P(null), [l, a] = D((e) => e + 1, 0), c = P(void 0), h = P({
|
|
1445
1445
|
x: 0,
|
|
1446
1446
|
y: 0,
|
|
1447
1447
|
width: 0,
|
|
@@ -1586,7 +1586,7 @@ function Kt(e, t, n = !1) {
|
|
|
1586
1586
|
}, "");
|
|
1587
1587
|
}
|
|
1588
1588
|
var Vt = x(y((e, t) => {
|
|
1589
|
-
const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] =
|
|
1589
|
+
const { className: n, style: o, children: r, radius: i = 4, strokeWidth: s = 1, strokeColor: l = "grey", variant: a = "tab", clipInset: c, ...h } = e, [u, { width: d, height: f }] = I(), p = P(null), m = c?.top ?? 0, _ = c?.right ?? 0, v = c?.bottom ?? 0, y = c?.left ?? 0, w = L(() => {
|
|
1590
1590
|
const e = d - _, t = f - v;
|
|
1591
1591
|
return Kt(`M ${y} ${m} L ${e} ${m} L ${e} ${t} L ${y} ${t} Z`, i);
|
|
1592
1592
|
}, [
|
|
@@ -1933,7 +1933,7 @@ function wn(e) {
|
|
|
1933
1933
|
const v = r ? "pointer" : "mouse", y = S((e) => {
|
|
1934
1934
|
e.stopPropagation(), e.stopImmediatePropagation(), e.preventDefault();
|
|
1935
1935
|
}, []), b = tn((e) => {
|
|
1936
|
-
document.removeEventListener(`${v}move`, C), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup",
|
|
1936
|
+
document.removeEventListener(`${v}move`, C), document.removeEventListener(`${v}up`, b), document.removeEventListener("keydown", E), document.removeEventListener("keyup", k), document.removeEventListener("touchstart", y, { capture: !0 }), document.removeEventListener("touchmove", y, { capture: !0 }), window.removeEventListener("blur", w), g(), window.requestAnimationFrame(() => {
|
|
1937
1937
|
if (!1 === c.current) return;
|
|
1938
1938
|
c.current = !1;
|
|
1939
1939
|
const t = e, n = d.current;
|
|
@@ -1960,7 +1960,7 @@ function wn(e) {
|
|
|
1960
1960
|
altKey: e.altKey,
|
|
1961
1961
|
metaKey: e.metaKey
|
|
1962
1962
|
}, x();
|
|
1963
|
-
}, []),
|
|
1963
|
+
}, []), k = tn((e) => {
|
|
1964
1964
|
p.current = {
|
|
1965
1965
|
ctrlKey: e.ctrlKey,
|
|
1966
1966
|
shiftKey: e.shiftKey,
|
|
@@ -1974,7 +1974,7 @@ function wn(e) {
|
|
|
1974
1974
|
shiftKey: e.shiftKey,
|
|
1975
1975
|
altKey: e.altKey,
|
|
1976
1976
|
metaKey: e.metaKey
|
|
1977
|
-
}, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, C, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup",
|
|
1977
|
+
}, !1 !== s(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${v}up`, b, { passive: !1 }), document.addEventListener(`${v}move`, C, { passive: !1 }), document.addEventListener("keydown", E, { passive: !1 }), document.addEventListener("keyup", k, { passive: !1 }), window.addEventListener("blur", w, { passive: !0 }), r && i && (document.addEventListener("touchstart", y, {
|
|
1978
1978
|
passive: !1,
|
|
1979
1979
|
capture: !0
|
|
1980
1980
|
}), document.addEventListener("touchmove", y, {
|
|
@@ -1996,19 +1996,19 @@ var Sn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
|
|
|
1996
1996
|
const o = P(e);
|
|
1997
1997
|
if ("function" != typeof t) throw new Error("function expected as hook body parameter. got " + typeof t);
|
|
1998
1998
|
const r = t();
|
|
1999
|
-
return
|
|
1999
|
+
return T(() => {
|
|
2000
2000
|
o.current !== r && (o.current = r, n(r));
|
|
2001
2001
|
}, [n, r]), null;
|
|
2002
2002
|
}, Cn = (e) => {
|
|
2003
2003
|
console && console.warn && console.warn(e);
|
|
2004
|
-
}, Mn = globalThis, En = 1,
|
|
2004
|
+
}, Mn = globalThis, En = 1, kn = !1, Tn = !1, Ln = [], Dn = [], Pn = () => {
|
|
2005
2005
|
Dn.forEach((e) => e());
|
|
2006
2006
|
}, An = ({ automaticContainerInternalUseOnly: e }) => {
|
|
2007
2007
|
const [t, n] = A([]), o = P([]);
|
|
2008
|
-
return o.current = t, e || !1 !==
|
|
2008
|
+
return o.current = t, e || !1 !== kn || (Tn = !0), M(() => {
|
|
2009
2009
|
let t = !0;
|
|
2010
2010
|
function r() {
|
|
2011
|
-
if (t) return Dn[0] !== r ? (e || !0 !==
|
|
2011
|
+
if (t) return Dn[0] !== r ? (e || !0 !== kn || Cn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => [])) : void n([...Ln]);
|
|
2012
2012
|
}
|
|
2013
2013
|
return Dn.push(r), Pn(), () => {
|
|
2014
2014
|
t = !1, o.current?.length > 0 && Cn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), Dn.splice(Dn.indexOf(r), 1), Pn();
|
|
@@ -2023,7 +2023,7 @@ var Sn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
|
|
|
2023
2023
|
return Ln.push({
|
|
2024
2024
|
hook: e,
|
|
2025
2025
|
key: t
|
|
2026
|
-
}), 0 === Dn.length && !1 ===
|
|
2026
|
+
}), 0 === Dn.length && !1 === Tn && (kn = !0, n = An, Mn.document && Mn.document.createElement ? O(Mn.document.createElement("div")).render($(n, { automaticContainerInternalUseOnly: !0 })) : Cn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.")), Pn(), () => {
|
|
2027
2027
|
Ln.splice(Ln.findIndex((e) => e.key === t), 1), Pn();
|
|
2028
2028
|
};
|
|
2029
2029
|
}, Rn = null;
|
|
@@ -2045,15 +2045,15 @@ Rn || (Rn = (e, t, n = {}) => {
|
|
|
2045
2045
|
});
|
|
2046
2046
|
var $n = Rn, Bn = () => {
|
|
2047
2047
|
console.warn("You must call useEditMode before setting its state.");
|
|
2048
|
-
},
|
|
2048
|
+
}, Hn = $n(null, () => {
|
|
2049
2049
|
const [e, t] = A(null);
|
|
2050
2050
|
return Bn = t, e;
|
|
2051
|
-
}),
|
|
2051
|
+
}), In = (e) => {
|
|
2052
2052
|
Bn((t) => ("function" == typeof e && (e = e(t)), t?.onModeChange?.(e ?? null), e));
|
|
2053
2053
|
}, Nn = () => {
|
|
2054
|
-
const e =
|
|
2054
|
+
const e = Hn();
|
|
2055
2055
|
return L(() => ({
|
|
2056
|
-
setMode:
|
|
2056
|
+
setMode: In,
|
|
2057
2057
|
getMode: () => e
|
|
2058
2058
|
}), [e]);
|
|
2059
2059
|
}, On = { Active: "language" };
|
|
@@ -2180,7 +2180,7 @@ function qn(e, t = !0) {
|
|
|
2180
2180
|
n.current = e;
|
|
2181
2181
|
});
|
|
2182
2182
|
}
|
|
2183
|
-
var Zn = !1, Gn = 0, Jn = "undefined" != typeof document ?
|
|
2183
|
+
var Zn = !1, Gn = 0, Jn = "undefined" != typeof document ? T : M, Qn = () => "sheetxl-ui-" + Gn++;
|
|
2184
2184
|
var eo = p["useId".toString()], to = null != eo ? eo : function() {
|
|
2185
2185
|
const [e, t] = A(() => Zn ? Qn() : void 0);
|
|
2186
2186
|
return Jn(() => {
|
|
@@ -2191,7 +2191,7 @@ var eo = p["useId".toString()], to = null != eo ? eo : function() {
|
|
|
2191
2191
|
}, no = [];
|
|
2192
2192
|
function oo(e, t, n = no, o) {
|
|
2193
2193
|
const r = P(null);
|
|
2194
|
-
return
|
|
2194
|
+
return k(e, () => {
|
|
2195
2195
|
const e = void 0 === o ? r.current : o;
|
|
2196
2196
|
if (!e) return;
|
|
2197
2197
|
const n = t?.();
|
|
@@ -2416,10 +2416,10 @@ function Co(e = {}) {
|
|
|
2416
2416
|
let p = a.join("\n");
|
|
2417
2417
|
return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${xo}\n@layer ${s}{\n${p}\n}`), p;
|
|
2418
2418
|
}
|
|
2419
|
-
var Mo = "data-sxl-theme-mode", Eo = "data-sxl-theme-surface",
|
|
2419
|
+
var Mo = "data-sxl-theme-mode", Eo = "data-sxl-theme-surface", ko = (e, t) => {
|
|
2420
2420
|
const n = { [Eo]: e };
|
|
2421
2421
|
return t && (n[Mo] = t), n;
|
|
2422
|
-
},
|
|
2422
|
+
}, To = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`;
|
|
2423
2423
|
function Lo(e) {
|
|
2424
2424
|
const { mode: t } = e || {}, [n, o] = A(() => {
|
|
2425
2425
|
if ("light" === t || "dark" === t) return {
|
|
@@ -2493,7 +2493,7 @@ var Ao = _(null), zo = () => C(Ao), Ro = (e) => {
|
|
|
2493
2493
|
o?.dark,
|
|
2494
2494
|
h?.dark,
|
|
2495
2495
|
n
|
|
2496
|
-
]), f =
|
|
2496
|
+
]), f = To("token", E()), { themeMode: m } = Lo("light" === i || "dark" === i ? { mode: i } : void 0), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? h?.mode, v = L(() => Co({
|
|
2497
2497
|
app: {
|
|
2498
2498
|
light: u,
|
|
2499
2499
|
dark: d
|
|
@@ -2533,7 +2533,7 @@ var Ao = _(null), zo = () => C(Ao), Ro = (e) => {
|
|
|
2533
2533
|
};
|
|
2534
2534
|
function $o(e, t) {
|
|
2535
2535
|
if (!e || "undefined" == typeof getComputedStyle) return;
|
|
2536
|
-
const n = getComputedStyle(e).getPropertyValue(
|
|
2536
|
+
const n = getComputedStyle(e).getPropertyValue(Ho(t)).trim();
|
|
2537
2537
|
return "" === n ? void 0 : n;
|
|
2538
2538
|
}
|
|
2539
2539
|
function Bo(e, t) {
|
|
@@ -2541,16 +2541,16 @@ function Bo(e, t) {
|
|
|
2541
2541
|
if (!e || "undefined" == typeof getComputedStyle) return n;
|
|
2542
2542
|
const o = getComputedStyle(e);
|
|
2543
2543
|
for (const e of t) {
|
|
2544
|
-
const t = o.getPropertyValue(
|
|
2544
|
+
const t = o.getPropertyValue(Ho(e)).trim();
|
|
2545
2545
|
"" !== t && (n[e] = t);
|
|
2546
2546
|
}
|
|
2547
2547
|
return n;
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2549
|
+
function Ho(e) {
|
|
2550
2550
|
return e.startsWith("--") ? e : `--sxl-${e}`;
|
|
2551
2551
|
}
|
|
2552
2552
|
Ro.displayName = "TokenThemeProvider";
|
|
2553
|
-
var
|
|
2553
|
+
var Io = _(null), No = () => {
|
|
2554
2554
|
const e = (n, o) => {
|
|
2555
2555
|
if (null === o) return;
|
|
2556
2556
|
n.add(o);
|
|
@@ -2597,7 +2597,7 @@ var Ho = _(null), No = () => {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
2599
|
return t;
|
|
2600
|
-
}, Oo = () => C(
|
|
2600
|
+
}, Oo = () => C(Io), Fo = (e) => {
|
|
2601
2601
|
const t = {};
|
|
2602
2602
|
return e ? (e.mode && (t[Mo] = e.mode), e.surface && (t[Eo] = e.surface), {
|
|
2603
2603
|
className: e.classes?.length ? e.classes.join(" ") : void 0,
|
|
@@ -2606,7 +2606,7 @@ var Ho = _(null), No = () => {
|
|
|
2606
2606
|
}, Wo = "_float-popper_csci8_1", Ko = "_float-popper-grow_csci8_7", Vo = "_entered_csci8_15", jo = [0, 2], Yo = x(y((t, n) => {
|
|
2607
2607
|
const { open: o, children: r, label: i, offsets: s = jo, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: h = !0, followAnchor: u = !1, style: d, className: f, onMount: p, onOpening: m, onOpen: g, onClosing: _, onClose: v, ...y } = t;
|
|
2608
2608
|
if (Array.isArray(r)) throw new Error("children can not be an array");
|
|
2609
|
-
const b = tn(p ?? (() => {}), [p]), w = tn(m ?? (() => {}), [m]), x = tn(g ?? (() => {}), [g]), C = tn(_ ?? (() => {}), [_]), E = tn(v ?? (() => {}), [v]), [
|
|
2609
|
+
const b = tn(p ?? (() => {}), [p]), w = tn(m ?? (() => {}), [m]), x = tn(g ?? (() => {}), [g]), C = tn(_ ?? (() => {}), [_]), E = tn(v ?? (() => {}), [v]), [T, D] = A(!1), [z, R] = A(!1), [B, H] = A(!1), [I, N] = A(), [O, W] = A(), q = P(null), Z = P(null), { getPortalContainer: G } = gn(), J = Oo(), Q = zo(), ee = L(() => {
|
|
2610
2610
|
const e = J?.themeScope;
|
|
2611
2611
|
return Q?.scopeClass || Q?.mode ? {
|
|
2612
2612
|
classes: Q?.scopeClass ? [...e?.classes ?? [], Q.scopeClass] : e?.classes,
|
|
@@ -2656,35 +2656,35 @@ var Ho = _(null), No = () => {
|
|
|
2656
2656
|
}), ae = S((e) => {
|
|
2657
2657
|
q.current = e, oe.setFloating(e);
|
|
2658
2658
|
}, [oe]);
|
|
2659
|
-
|
|
2659
|
+
k(n, () => ({
|
|
2660
2660
|
instance: () => q.current ? { update: le } : null,
|
|
2661
2661
|
element: () => q.current
|
|
2662
2662
|
}), [le]), M(() => {
|
|
2663
2663
|
o && D(!0);
|
|
2664
2664
|
}, [o]), M(() => {
|
|
2665
|
-
|
|
2665
|
+
T && ie && !z && (R(!0), b?.(q.current, { update: le }));
|
|
2666
2666
|
}, [
|
|
2667
|
-
|
|
2667
|
+
T,
|
|
2668
2668
|
ie,
|
|
2669
2669
|
z
|
|
2670
2670
|
]), M(() => {
|
|
2671
|
-
o && z ? w?.() : !o &&
|
|
2671
|
+
o && z ? w?.() : !o && T && C?.();
|
|
2672
2672
|
}, [o, z]), M(() => {
|
|
2673
|
-
if (
|
|
2674
|
-
const e = requestAnimationFrame(() =>
|
|
2673
|
+
if (T && z && o) {
|
|
2674
|
+
const e = requestAnimationFrame(() => H(!0));
|
|
2675
2675
|
return () => cancelAnimationFrame(e);
|
|
2676
2676
|
}
|
|
2677
2677
|
}, [
|
|
2678
|
-
|
|
2678
|
+
T,
|
|
2679
2679
|
z,
|
|
2680
2680
|
o
|
|
2681
2681
|
]), M(() => {
|
|
2682
|
-
!o &&
|
|
2683
|
-
}, [o,
|
|
2682
|
+
!o && T && (H(!1), D(!1), R(!1), E?.());
|
|
2683
|
+
}, [o, T]);
|
|
2684
2684
|
const ce = tn((e) => {
|
|
2685
2685
|
e.target === e.currentTarget && o && B && x?.();
|
|
2686
2686
|
}, [o, B]);
|
|
2687
|
-
if (!
|
|
2687
|
+
if (!T) return null;
|
|
2688
2688
|
const he = (se ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: ue, attrs: de } = Fo(ee);
|
|
2689
2689
|
if (!ue && !de["data-sxl-theme-mode"] && !de["data-sxl-theme-surface"]) {
|
|
2690
2690
|
const e = "function" == typeof l ? l() : l, t = e instanceof HTMLElement ? e : null, n = t?.closest(`[${Mo}]`)?.getAttribute(Mo), o = t?.closest(`[${Eo}]`)?.getAttribute(Eo);
|
|
@@ -2697,10 +2697,10 @@ var Ho = _(null), No = () => {
|
|
|
2697
2697
|
...de,
|
|
2698
2698
|
style: {
|
|
2699
2699
|
...re,
|
|
2700
|
-
maxHeight: h ?
|
|
2700
|
+
maxHeight: h ? I : void 0,
|
|
2701
2701
|
maxWidth: h ? O : void 0,
|
|
2702
2702
|
zIndex: o ? 1300 : 1299,
|
|
2703
|
-
pointerEvents:
|
|
2703
|
+
pointerEvents: T && o ? void 0 : "none",
|
|
2704
2704
|
...d
|
|
2705
2705
|
},
|
|
2706
2706
|
...y,
|
|
@@ -2787,7 +2787,7 @@ var Jo = "_float-tooltip_1l6qz_1", Qo = x(y((e, t) => {
|
|
|
2787
2787
|
}));
|
|
2788
2788
|
Qo.displayName = "FloatTooltip";
|
|
2789
2789
|
var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
2790
|
-
const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = C(
|
|
2790
|
+
const { renderFloatPanel: t, createPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, h = C(Io), u = L(() => {
|
|
2791
2791
|
const e = h?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, u = l?.length || a || c ? {
|
|
2792
2792
|
classes: l,
|
|
2793
2793
|
surface: a,
|
|
@@ -2807,15 +2807,15 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2807
2807
|
i,
|
|
2808
2808
|
s,
|
|
2809
2809
|
h
|
|
2810
|
-
]), d =
|
|
2811
|
-
let f = $(
|
|
2810
|
+
]), d = Tt();
|
|
2811
|
+
let f = $(Io.Provider, {
|
|
2812
2812
|
value: u,
|
|
2813
2813
|
children: c
|
|
2814
2814
|
});
|
|
2815
2815
|
const p = l || !d, m = P(null);
|
|
2816
2816
|
p && null === m.current && (m.current = No());
|
|
2817
2817
|
const g = p ? m.current : null;
|
|
2818
|
-
g && (f = $(
|
|
2818
|
+
g && (f = $(kt, {
|
|
2819
2819
|
value: g,
|
|
2820
2820
|
children: f
|
|
2821
2821
|
}));
|
|
@@ -2828,7 +2828,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2828
2828
|
});
|
|
2829
2829
|
}, [a, _]), f;
|
|
2830
2830
|
}, nr = (e) => {
|
|
2831
|
-
const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = tn(s ?? (() => {}), [s]), d = tn(l ?? (() => {}), [l]), f = Oo(), p = h ?? f?.renderFloatPanel ?? er, m = void 0 === c ? f?.createPopupPanel ?? Xo : c, g =
|
|
2831
|
+
const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, createPopupPanel: c, renderFloatPanel: h } = e ?? {}, u = tn(s ?? (() => {}), [s]), d = tn(l ?? (() => {}), [l]), f = Oo(), p = h ?? f?.renderFloatPanel ?? er, m = void 0 === c ? f?.createPopupPanel ?? Xo : c, g = Tt(), [_, v] = A(null), [y, b] = A(!1), [w, x] = A(!1), C = L(() => i ?? g ?? No(), []), E = L(() => C.getRoot(), []), k = L(() => ({ label: r }), []), T = P(null), z = P(t);
|
|
2832
2832
|
M(() => {
|
|
2833
2833
|
z.current = t;
|
|
2834
2834
|
}, [t]);
|
|
@@ -2836,22 +2836,22 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2836
2836
|
const t = E.floatByParents.get(e);
|
|
2837
2837
|
let n = null;
|
|
2838
2838
|
return t && (n = E.statesByMovables.get(t)?.close(0) ?? null), n;
|
|
2839
|
-
}, B = () => R(G.key), [
|
|
2839
|
+
}, B = () => R(G.key), [H, I] = A(null), N = () => {
|
|
2840
2840
|
if (!_) return V(), null;
|
|
2841
2841
|
const e = new Promise((e) => {
|
|
2842
|
-
|
|
2842
|
+
I((t) => [...t ?? [], { resolve: e }]);
|
|
2843
2843
|
});
|
|
2844
2844
|
return B(), E.floatByParents.delete(C.key), v(!1), e;
|
|
2845
2845
|
};
|
|
2846
2846
|
M(() => {
|
|
2847
|
-
if (
|
|
2848
|
-
for (const e of
|
|
2849
|
-
|
|
2847
|
+
if (H) {
|
|
2848
|
+
for (const e of H) e.resolve();
|
|
2849
|
+
I(null);
|
|
2850
2850
|
}
|
|
2851
2851
|
}, [
|
|
2852
2852
|
y,
|
|
2853
2853
|
w,
|
|
2854
|
-
|
|
2854
|
+
H
|
|
2855
2855
|
]);
|
|
2856
2856
|
const O = S(() => {
|
|
2857
2857
|
let e = C;
|
|
@@ -2861,7 +2861,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2861
2861
|
if (_) return void V();
|
|
2862
2862
|
C && E.statesByMovables.get(C.key)?.open(0);
|
|
2863
2863
|
const e = E.floatByParents.get(C.key);
|
|
2864
|
-
e && e !==
|
|
2864
|
+
e && e !== k && E.statesByMovables.get(e)?.close(0);
|
|
2865
2865
|
const t = document.activeElement;
|
|
2866
2866
|
t && t !== document.body && "function" == typeof t.focus && (F.current = t), requestAnimationFrame(() => {
|
|
2867
2867
|
E.floatByParents.set(C.key, G.key), v(!0);
|
|
@@ -2871,7 +2871,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2871
2871
|
closeFloatAll: Z,
|
|
2872
2872
|
...e
|
|
2873
2873
|
}), [m]), Y = null === m, U = tn((e = 120) => E.debounce(e, W, /* @__PURE__ */ new Set([G]), !1)(), [W]), X = tn((e = 60) => E.debounce(e, N, E.descendants(G), !0)(), [N]), q = tn((e = 360) => E.debounce(e, B, E.descendants(E.getChildRef(G)), !0)(), [B]), Z = tn(O, [O]), G = L(() => ({
|
|
2874
|
-
key:
|
|
2874
|
+
key: k,
|
|
2875
2875
|
isRoot: !1,
|
|
2876
2876
|
label: r,
|
|
2877
2877
|
parent: C,
|
|
@@ -2886,25 +2886,25 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2886
2886
|
closeChild: q,
|
|
2887
2887
|
closeAll: Z,
|
|
2888
2888
|
getRoot: () => E,
|
|
2889
|
-
floatElement: () =>
|
|
2889
|
+
floatElement: () => T.current,
|
|
2890
2890
|
anchorElement: () => z.current
|
|
2891
2891
|
}), []);
|
|
2892
2892
|
M(() => {
|
|
2893
|
-
E.statesByMovables.set(
|
|
2893
|
+
E.statesByMovables.set(k, G);
|
|
2894
2894
|
}, [G]), M(() => () => {
|
|
2895
|
-
E.statesByMovables.delete(
|
|
2895
|
+
E.statesByMovables.delete(k), X(0);
|
|
2896
2896
|
}, []), M(() => {
|
|
2897
2897
|
_ && !Y && (b(!0), C.onChildVisible());
|
|
2898
2898
|
}, [_, Y]);
|
|
2899
2899
|
const J = S((e) => {
|
|
2900
2900
|
e.which === ee.Escape && (e.preventDefault(), e.stopPropagation(), X(0));
|
|
2901
2901
|
}, []), Q = S(() => {
|
|
2902
|
-
const e = F.current, t =
|
|
2902
|
+
const e = F.current, t = T.current;
|
|
2903
2903
|
e && t && (requestAnimationFrame(() => {
|
|
2904
2904
|
(t.contains(document.activeElement) || document.activeElement === document.body) && e.focus();
|
|
2905
2905
|
}), F.current = null), d?.();
|
|
2906
2906
|
}, []), te = S((e) => {
|
|
2907
|
-
|
|
2907
|
+
T.current = e;
|
|
2908
2908
|
if (e.addEventListener("focusin", (e) => {
|
|
2909
2909
|
F.current || (F.current = e.relatedTarget);
|
|
2910
2910
|
}, {
|
|
@@ -2917,7 +2917,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
2917
2917
|
});
|
|
2918
2918
|
}, [n]), [ne, oe] = A();
|
|
2919
2919
|
M(() => {
|
|
2920
|
-
Y && (_ ? u?.() : !1 === _ && d?.()), oe(y ? $(
|
|
2920
|
+
Y && (_ ? u?.() : !1 === _ && d?.()), oe(y ? $(kt, {
|
|
2921
2921
|
value: G,
|
|
2922
2922
|
children: p({
|
|
2923
2923
|
...f?.propsFloatPanel,
|
|
@@ -3013,7 +3013,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3013
3013
|
}, cr = x(y((e, t) => {
|
|
3014
3014
|
const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: h, maxAfter: u, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = ir, propsPane: w = ir, propsPaneBefore: x = ir, propsPaneAfter: S = ir, renderResizer: C = rr } = e;
|
|
3015
3015
|
if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
|
|
3016
|
-
const E = L(() => b(o) && b(n), [o, n]),
|
|
3016
|
+
const E = L(() => b(o) && b(n), [o, n]), k = L(() => {
|
|
3017
3017
|
let e = null;
|
|
3018
3018
|
i && ("before" === i ? e = 0 : "after" === i && (e = 1));
|
|
3019
3019
|
const t = null === e;
|
|
@@ -3030,11 +3030,11 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3030
3030
|
c,
|
|
3031
3031
|
h,
|
|
3032
3032
|
u
|
|
3033
|
-
]),
|
|
3033
|
+
]), T = tn(l ?? (() => {}), [l]), [D, z] = A(() => ar(s, null === i));
|
|
3034
3034
|
M(() => {
|
|
3035
3035
|
z(ar(s, null === i));
|
|
3036
3036
|
}, [s, i]);
|
|
3037
|
-
const [R, { width:
|
|
3037
|
+
const [R, { width: H, height: O }] = I(), [F, { width: W, height: V }] = I(), j = "row" === r ? W : V, Y = "row" === r ? H : O, U = L(() => ((e, t, n, o) => {
|
|
3038
3038
|
const r = [null, null], i = [null, null];
|
|
3039
3039
|
if (e || (e = {
|
|
3040
3040
|
percent: null === o.fixedPaneOffset ? 50 : null,
|
|
@@ -3058,8 +3058,8 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3058
3058
|
maxBefore: `${r[0]}px`,
|
|
3059
3059
|
maxAfter: `${r[1]}px`
|
|
3060
3060
|
};
|
|
3061
|
-
})(D, Y, j,
|
|
3062
|
-
|
|
3061
|
+
})(D, Y, j, k), [
|
|
3062
|
+
k,
|
|
3063
3063
|
D,
|
|
3064
3064
|
Y,
|
|
3065
3065
|
j,
|
|
@@ -3088,12 +3088,12 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3088
3088
|
if (m || !X) return;
|
|
3089
3089
|
const t = we.current?.getBoundingClientRect();
|
|
3090
3090
|
let n = 0;
|
|
3091
|
-
n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(Y, n)), 1 ===
|
|
3091
|
+
n = "row" === r ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(Y, n)), 1 === k.fixedPaneOffset && (n = Y - n), s && D?.pixels === n || z({
|
|
3092
3092
|
pixels: n,
|
|
3093
3093
|
percent: null
|
|
3094
3094
|
}), G?.(n), e.stopPropagation(), e.preventDefault();
|
|
3095
3095
|
}, [
|
|
3096
|
-
|
|
3096
|
+
k,
|
|
3097
3097
|
r,
|
|
3098
3098
|
m,
|
|
3099
3099
|
X,
|
|
@@ -3106,7 +3106,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3106
3106
|
pixels: e,
|
|
3107
3107
|
percent: D.percent ?? e / Y * 100
|
|
3108
3108
|
};
|
|
3109
|
-
|
|
3109
|
+
T(t);
|
|
3110
3110
|
}
|
|
3111
3111
|
e.stopPropagation(), e.preventDefault();
|
|
3112
3112
|
}
|
|
@@ -3150,7 +3150,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3150
3150
|
const e = {
|
|
3151
3151
|
...ie,
|
|
3152
3152
|
...le,
|
|
3153
|
-
flex: 0 ===
|
|
3153
|
+
flex: 0 === k.fixedPaneOffset && null !== U?.pixels[0] ? `0 0 ${Math.round(U?.pixels[0] ?? 0)}px` : `1 1 ${Math.round(U?.percents[0] ?? 100)}%`,
|
|
3154
3154
|
[`min${Se}`]: U?.minBefore,
|
|
3155
3155
|
[`max${Se}`]: o ? U?.maxBefore : "100%"
|
|
3156
3156
|
};
|
|
@@ -3166,14 +3166,14 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3166
3166
|
n,
|
|
3167
3167
|
w,
|
|
3168
3168
|
x,
|
|
3169
|
-
|
|
3169
|
+
k,
|
|
3170
3170
|
U
|
|
3171
3171
|
]), Me = L(() => {
|
|
3172
3172
|
if (!o) return null;
|
|
3173
3173
|
const e = {
|
|
3174
3174
|
...ie,
|
|
3175
3175
|
...he,
|
|
3176
|
-
flex: 1 ===
|
|
3176
|
+
flex: 1 === k.fixedPaneOffset && null !== U?.pixels[1] ? `0 0 ${Math.round(U?.pixels[1] ?? 0)}px` : `1 1 ${Math.round(U?.percents[1] ?? 100)}%`,
|
|
3177
3177
|
[`min${Se}`]: U?.minAfter,
|
|
3178
3178
|
[`max${Se}`]: n ? U?.maxAfter : "100%"
|
|
3179
3179
|
};
|
|
@@ -3189,7 +3189,7 @@ var er = (e) => $(Go, { ...e }), tr = (e) => {
|
|
|
3189
3189
|
o,
|
|
3190
3190
|
w,
|
|
3191
3191
|
S,
|
|
3192
|
-
|
|
3192
|
+
k,
|
|
3193
3193
|
U
|
|
3194
3194
|
]);
|
|
3195
3195
|
return B("div", {
|
|
@@ -3476,7 +3476,7 @@ function mr() {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
cr.displayName = "SplitPane";
|
|
3478
3478
|
var gr = mr();
|
|
3479
|
-
gr.register("base", () => import("./
|
|
3479
|
+
gr.register("base", () => import("./C772PCaAJA8X5IgJ.mjs")), gr.register("cf", () => import("./D36LxEXtaQioLHfh.mjs"));
|
|
3480
3480
|
var _r = (e) => $("svg", {
|
|
3481
3481
|
...e,
|
|
3482
3482
|
children: $("path", {})
|
|
@@ -3515,7 +3515,7 @@ var _r = (e) => $("svg", {
|
|
|
3515
3515
|
].filter(Boolean).join(" "), [r]), S = L(() => {
|
|
3516
3516
|
const e = { ...i };
|
|
3517
3517
|
return e["--icon-size"] = w, e;
|
|
3518
|
-
}, [i, w]), C = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0),
|
|
3518
|
+
}, [i, w]), C = s ?? (l ? "img" : "presentation"), E = c ?? (!l || void 0), k = (e) => $("span", {
|
|
3519
3519
|
className: x,
|
|
3520
3520
|
style: S,
|
|
3521
3521
|
role: C,
|
|
@@ -3526,15 +3526,15 @@ var _r = (e) => $("svg", {
|
|
|
3526
3526
|
...d,
|
|
3527
3527
|
children: e
|
|
3528
3528
|
});
|
|
3529
|
-
if (u) return
|
|
3530
|
-
if (b) return
|
|
3531
|
-
if (y) return
|
|
3529
|
+
if (u) return k(u);
|
|
3530
|
+
if (b) return k($("span", { children: "string" == typeof b ? b : b.text }));
|
|
3531
|
+
if (y) return k($("img", {
|
|
3532
3532
|
src: y.src,
|
|
3533
3533
|
alt: l ?? ""
|
|
3534
3534
|
}));
|
|
3535
3535
|
if (g && "react" in g) {
|
|
3536
3536
|
const e = g.react;
|
|
3537
|
-
return
|
|
3537
|
+
return k($(e, {
|
|
3538
3538
|
className: x,
|
|
3539
3539
|
style: S,
|
|
3540
3540
|
role: C,
|
|
@@ -3544,12 +3544,12 @@ var _r = (e) => $("svg", {
|
|
|
3544
3544
|
...h
|
|
3545
3545
|
}));
|
|
3546
3546
|
}
|
|
3547
|
-
const
|
|
3548
|
-
if ("function" == typeof v) return
|
|
3549
|
-
if (!v) return
|
|
3547
|
+
const T = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
|
|
3548
|
+
if ("function" == typeof v) return k(v(T) ?? $(_r, { ...T }));
|
|
3549
|
+
if (!v) return k($(_r, { ...T }));
|
|
3550
3550
|
const D = v.paths;
|
|
3551
|
-
return
|
|
3552
|
-
...
|
|
3551
|
+
return k($("svg", {
|
|
3552
|
+
...T,
|
|
3553
3553
|
children: D ? D.map((e, t) => $("path", {
|
|
3554
3554
|
d: e.d,
|
|
3555
3555
|
className: e.className,
|
|
@@ -3601,147 +3601,157 @@ var wr = class {
|
|
|
3601
3601
|
removeItem(e) {
|
|
3602
3602
|
this.store.delete(e);
|
|
3603
3603
|
}
|
|
3604
|
-
}, xr = _(null), Sr = {
|
|
3604
|
+
}, xr = _(null), Sr = Object.freeze({}), Cr = {
|
|
3605
3605
|
parse: (e) => e ? JSON.parse(e) : null,
|
|
3606
3606
|
stringify: JSON.stringify
|
|
3607
|
-
},
|
|
3607
|
+
}, Mr = /* @__PURE__ */ new Map(), Er = {
|
|
3608
3608
|
store: new wr(),
|
|
3609
3609
|
namespace: "",
|
|
3610
|
-
serializer:
|
|
3610
|
+
serializer: Cr,
|
|
3611
3611
|
onReady: (e) => {
|
|
3612
3612
|
e();
|
|
3613
3613
|
},
|
|
3614
3614
|
debounceMs: 0,
|
|
3615
|
+
defaultValues: Sr,
|
|
3615
3616
|
notify: (e, t) => {
|
|
3616
|
-
const n =
|
|
3617
|
+
const n = Mr.get(e);
|
|
3617
3618
|
n && n.forEach((e) => e(t));
|
|
3618
3619
|
},
|
|
3619
3620
|
subscribeKey: (e, t) => {
|
|
3620
|
-
const n =
|
|
3621
|
-
return n.add(t),
|
|
3622
|
-
const n =
|
|
3623
|
-
n && (n.delete(t), 0 === n.size &&
|
|
3621
|
+
const n = Mr.get(e) ?? /* @__PURE__ */ new Set();
|
|
3622
|
+
return n.add(t), Mr.set(e, n), () => {
|
|
3623
|
+
const n = Mr.get(e);
|
|
3624
|
+
n && (n.delete(t), 0 === n.size && Mr.delete(e));
|
|
3624
3625
|
};
|
|
3625
3626
|
}
|
|
3626
3627
|
};
|
|
3627
|
-
function
|
|
3628
|
-
const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a } = C(xr) ||
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3628
|
+
function kr(e, t, n = Tr) {
|
|
3629
|
+
const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = C(xr) || Er, h = n.serializer ?? i ?? Cr, u = P(null), d = L(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
|
|
3630
|
+
if (null != e && Object.prototype.hasOwnProperty.call(c, e)) return c[e];
|
|
3631
|
+
const n = t;
|
|
3632
|
+
return "function" == typeof n ? n() : n;
|
|
3633
|
+
}, [m, g] = A(() => {
|
|
3634
|
+
if (null == d) return p();
|
|
3635
|
+
let e, t = o.getItem(d);
|
|
3636
|
+
if (null == t) return p();
|
|
3635
3637
|
try {
|
|
3636
|
-
e =
|
|
3638
|
+
e = h.parse(t);
|
|
3637
3639
|
} catch {
|
|
3638
|
-
e =
|
|
3640
|
+
e = p();
|
|
3639
3641
|
}
|
|
3640
3642
|
return e;
|
|
3641
|
-
}),
|
|
3642
|
-
|
|
3643
|
-
const
|
|
3643
|
+
}), _ = P(m);
|
|
3644
|
+
_.current = m;
|
|
3645
|
+
const v = P(!1);
|
|
3644
3646
|
M(() => {
|
|
3645
|
-
null ==
|
|
3646
|
-
}, [
|
|
3647
|
-
if (null ==
|
|
3647
|
+
null == d && g(p());
|
|
3648
|
+
}, [d]), M(() => {
|
|
3649
|
+
if (null == d) return;
|
|
3648
3650
|
let e = !0;
|
|
3649
|
-
return
|
|
3650
|
-
const [
|
|
3651
|
-
if (!e ||
|
|
3652
|
-
let
|
|
3651
|
+
return v.current = !1, (async () => {
|
|
3652
|
+
const [t, r] = await Promise.all([o.getItem(d), f ? o.getItem(f) : Promise.resolve(null)]);
|
|
3653
|
+
if (!e || v.current) return;
|
|
3654
|
+
let i;
|
|
3653
3655
|
try {
|
|
3654
|
-
|
|
3656
|
+
i = null == t ? void 0 : h.parse(t);
|
|
3655
3657
|
} catch {}
|
|
3656
|
-
const
|
|
3657
|
-
void 0 ===
|
|
3658
|
+
const s = null == r ? void 0 : Number.parseInt(r, 10);
|
|
3659
|
+
void 0 === i ? i = p() : null != n.version && void 0 !== s && s !== n.version && n.migrate && (i = n.migrate(i, s), o.setItem(d, h.stringify(i)), f && o.setItem(f, String(n.version))), e && void 0 !== i && g(i);
|
|
3658
3660
|
})(), () => {
|
|
3659
3661
|
e = !1;
|
|
3660
3662
|
};
|
|
3661
3663
|
}, [
|
|
3662
3664
|
o,
|
|
3663
|
-
u,
|
|
3664
3665
|
d,
|
|
3666
|
+
f,
|
|
3665
3667
|
n.version,
|
|
3666
3668
|
n.migrate,
|
|
3667
|
-
|
|
3669
|
+
h,
|
|
3668
3670
|
c
|
|
3669
3671
|
]), M(() => {
|
|
3670
|
-
if (null !=
|
|
3671
|
-
const t = void 0 !== e ? e : o.getItem(
|
|
3672
|
+
if (null != d && null != e) return l(e, (e) => {
|
|
3673
|
+
const t = void 0 !== e ? e : o.getItem(d);
|
|
3672
3674
|
if (null != t) try {
|
|
3673
|
-
|
|
3675
|
+
g(h.parse(t));
|
|
3674
3676
|
} catch {}
|
|
3675
3677
|
});
|
|
3676
3678
|
}, [
|
|
3677
3679
|
o,
|
|
3678
|
-
|
|
3680
|
+
d,
|
|
3679
3681
|
l,
|
|
3680
3682
|
e,
|
|
3681
|
-
|
|
3683
|
+
h
|
|
3682
3684
|
]);
|
|
3683
|
-
const
|
|
3684
|
-
null !=
|
|
3685
|
+
const y = (e) => {
|
|
3686
|
+
null != d && (o.setItem(d, h.stringify(e)), null != n.version && f && o.setItem(f, String(n.version)));
|
|
3685
3687
|
};
|
|
3686
3688
|
return M(() => () => {
|
|
3687
|
-
|
|
3689
|
+
u.current && clearTimeout(u.current);
|
|
3688
3690
|
}, []), [
|
|
3689
|
-
|
|
3691
|
+
m,
|
|
3690
3692
|
(t) => {
|
|
3691
|
-
const n = "function" == typeof t ? t(
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
}, s) :
|
|
3693
|
+
const n = "function" == typeof t ? t(_.current) : t;
|
|
3694
|
+
v.current = !0, _.current = n, g(n), u.current && clearTimeout(u.current), s > 0 ? u.current = setTimeout(() => {
|
|
3695
|
+
y(n);
|
|
3696
|
+
}, s) : y(n), null != e && a(e, h.stringify(n));
|
|
3695
3697
|
},
|
|
3696
3698
|
() => {
|
|
3697
|
-
|
|
3698
|
-
const e = void 0 !== t ?
|
|
3699
|
-
|
|
3699
|
+
v.current = !0, u.current && clearTimeout(u.current), null != d && (o.removeItem(d), null != f && o.removeItem(f));
|
|
3700
|
+
const e = void 0 !== t ? p() : void 0;
|
|
3701
|
+
g(e);
|
|
3700
3702
|
}
|
|
3701
3703
|
];
|
|
3702
3704
|
}
|
|
3703
3705
|
var Tr = {};
|
|
3704
|
-
function
|
|
3705
|
-
const { store: t, namespace: n = "", serializer: o =
|
|
3706
|
-
|
|
3706
|
+
function Lr(e) {
|
|
3707
|
+
const { store: t, namespace: n = "", serializer: o = Dr, debounceMs: r = 150, defaultValues: i = Sr, children: s } = e, l = P(i);
|
|
3708
|
+
Pr(l.current, i) || (l.current = i);
|
|
3709
|
+
const a = l.current, c = L(() => "undefined" == typeof window ? new wr() : t ?? new wr(), [t]), h = P(/* @__PURE__ */ new Map()), u = L(() => ({
|
|
3710
|
+
store: c,
|
|
3707
3711
|
namespace: n,
|
|
3708
3712
|
serializer: o,
|
|
3709
3713
|
debounceMs: r,
|
|
3714
|
+
defaultValues: a,
|
|
3710
3715
|
onReady: (e) => {
|
|
3711
|
-
|
|
3716
|
+
c.onReady ? c.onReady?.(e) : e();
|
|
3712
3717
|
},
|
|
3713
3718
|
notify(e, t) {
|
|
3714
|
-
const n =
|
|
3719
|
+
const n = h.current.get(e);
|
|
3715
3720
|
n && n.forEach((e) => e(t));
|
|
3716
3721
|
},
|
|
3717
3722
|
subscribeKey(e, t) {
|
|
3718
|
-
const n =
|
|
3723
|
+
const n = h.current, o = n.get(e) ?? /* @__PURE__ */ new Set();
|
|
3719
3724
|
return o.add(t), n.set(e, o), () => {
|
|
3720
3725
|
const o = n.get(e);
|
|
3721
3726
|
o && (o.delete(t), 0 === o.size && n.delete(e));
|
|
3722
3727
|
};
|
|
3723
3728
|
}
|
|
3724
3729
|
}), [
|
|
3725
|
-
|
|
3730
|
+
c,
|
|
3726
3731
|
n,
|
|
3727
3732
|
o,
|
|
3728
|
-
r
|
|
3733
|
+
r,
|
|
3734
|
+
a
|
|
3729
3735
|
]);
|
|
3730
3736
|
return M(() => {
|
|
3731
|
-
if (
|
|
3732
|
-
if (!e.startsWith(
|
|
3733
|
-
const t = e.slice(
|
|
3734
|
-
|
|
3737
|
+
if (u.store.subscribe) return u.store.subscribe((e) => {
|
|
3738
|
+
if (!e.startsWith(u.namespace + ":")) return;
|
|
3739
|
+
const t = e.slice(u.namespace.length + 1);
|
|
3740
|
+
u.notify(t);
|
|
3735
3741
|
});
|
|
3736
|
-
}, [
|
|
3737
|
-
value:
|
|
3738
|
-
children:
|
|
3742
|
+
}, [u]), $(xr.Provider, {
|
|
3743
|
+
value: u,
|
|
3744
|
+
children: s
|
|
3739
3745
|
});
|
|
3740
3746
|
}
|
|
3741
|
-
var
|
|
3747
|
+
var Dr = {
|
|
3742
3748
|
parse: (e) => null == e ? null : JSON.parse(e),
|
|
3743
3749
|
stringify: JSON.stringify
|
|
3744
|
-
},
|
|
3750
|
+
}, Pr = (e, t) => {
|
|
3751
|
+
if (e === t) return !0;
|
|
3752
|
+
const n = Object.keys(e);
|
|
3753
|
+
return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
|
|
3754
|
+
}, Ar = class {
|
|
3745
3755
|
constructor(e = window.localStorage) {
|
|
3746
3756
|
this.storage = e;
|
|
3747
3757
|
}
|
|
@@ -3768,14 +3778,14 @@ var Lr = {
|
|
|
3768
3778
|
};
|
|
3769
3779
|
return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
|
|
3770
3780
|
}
|
|
3771
|
-
},
|
|
3781
|
+
}, zr = {
|
|
3772
3782
|
Horizontal: "horizontal",
|
|
3773
3783
|
Vertical: "vertical"
|
|
3774
|
-
},
|
|
3775
|
-
const { style: t, orientation: n =
|
|
3784
|
+
}, Rr = "_scrollbar_14aps_24", $r = "_track_14aps_35", Br = "_thumb_14aps_47", Hr = "_scrollbar-button_14aps_96", Ir = "_touch-thumb_14aps_131", Nr = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", Or = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", Fr = { transform: "rotate(180deg)" }, Wr = (e) => {
|
|
3785
|
+
const { style: t, orientation: n = zr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zr.Vertical ? Nr : Or;
|
|
3776
3786
|
return $("button", {
|
|
3777
3787
|
style: t,
|
|
3778
|
-
className: K(
|
|
3788
|
+
className: K(Hr, n, "scroll-button"),
|
|
3779
3789
|
disabled: r,
|
|
3780
3790
|
...i,
|
|
3781
3791
|
children: $("svg", {
|
|
@@ -3785,23 +3795,23 @@ var Lr = {
|
|
|
3785
3795
|
children: $("path", { d: s })
|
|
3786
3796
|
})
|
|
3787
3797
|
});
|
|
3788
|
-
},
|
|
3789
|
-
const { style: t, orientation: n =
|
|
3798
|
+
}, Kr = (e) => {
|
|
3799
|
+
const { style: t, orientation: n = zr.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zr.Vertical ? Nr : Or;
|
|
3790
3800
|
return $("button", {
|
|
3791
3801
|
style: t,
|
|
3792
|
-
className: K(
|
|
3802
|
+
className: K(Hr, n, "scroll-button"),
|
|
3793
3803
|
disabled: r,
|
|
3794
3804
|
...i,
|
|
3795
3805
|
children: $("svg", {
|
|
3796
3806
|
width: "9",
|
|
3797
3807
|
height: "9",
|
|
3798
3808
|
viewBox: "0 0 9 9",
|
|
3799
|
-
style:
|
|
3809
|
+
style: Fr,
|
|
3800
3810
|
children: $("path", { d: s })
|
|
3801
3811
|
})
|
|
3802
3812
|
});
|
|
3803
|
-
},
|
|
3804
|
-
const { style: t, orientation: n =
|
|
3813
|
+
}, Vr = (e) => {
|
|
3814
|
+
const { style: t, orientation: n = zr.Vertical, isBefore: o, ...r } = e, i = n === zr.Vertical;
|
|
3805
3815
|
return $("div", {
|
|
3806
3816
|
style: {
|
|
3807
3817
|
display: "flex",
|
|
@@ -3825,7 +3835,7 @@ var Lr = {
|
|
|
3825
3835
|
iconKey: "MoreHorizontal"
|
|
3826
3836
|
})
|
|
3827
3837
|
});
|
|
3828
|
-
},
|
|
3838
|
+
}, jr = 60, Yr = 260, Ur = 120, Xr = (e) => {
|
|
3829
3839
|
const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
|
|
3830
3840
|
let c = null, h = null, u = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
|
|
3831
3841
|
const v = () => {
|
|
@@ -3875,10 +3885,10 @@ var Lr = {
|
|
|
3875
3885
|
},
|
|
3876
3886
|
dispose: () => v()
|
|
3877
3887
|
};
|
|
3878
|
-
},
|
|
3888
|
+
}, qr = (e) => {
|
|
3879
3889
|
const [t, n] = A(null), o = P(e);
|
|
3880
3890
|
o.current = e;
|
|
3881
|
-
const r = L(() =>
|
|
3891
|
+
const r = L(() => Xr({
|
|
3882
3892
|
vertical: o.current.vertical,
|
|
3883
3893
|
getTrackRect: () => o.current.getTrackRect(),
|
|
3884
3894
|
getThumb: () => o.current.getThumb(),
|
|
@@ -3894,20 +3904,20 @@ var Lr = {
|
|
|
3894
3904
|
onPointerUp: r.onPointerUp,
|
|
3895
3905
|
dragMode: t
|
|
3896
3906
|
};
|
|
3897
|
-
},
|
|
3907
|
+
}, Zr = 22, Gr = 1.8, Jr = 8, Qr = 4, ei = 8, ti = -2, ni = (e = 22) => e / 2 + 8, oi = (e = 22) => e + 16, ri = _(null), ii = (e) => {
|
|
3898
3908
|
const { value: t, children: n } = e;
|
|
3899
|
-
return $(
|
|
3909
|
+
return $(ri.Provider, {
|
|
3900
3910
|
value: t,
|
|
3901
3911
|
children: n
|
|
3902
3912
|
});
|
|
3903
|
-
},
|
|
3904
|
-
const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c =
|
|
3905
|
-
if (!
|
|
3906
|
-
const _ = c ===
|
|
3913
|
+
}, si = () => C(ri), li = We().supportsTouchEvents, ai = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ci = x(y((e, t) => {
|
|
3914
|
+
const { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: o = "var(--sxl-color-base-100, white)", fillColor: r = "var(--sxl-color-neutral, grey)", borderWidth: i = 3, size: s = 22, style: l, className: a, orientation: c = zr.Vertical, fraction: h = 0, onScrollToFraction: u, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
|
|
3915
|
+
if (!li) return null;
|
|
3916
|
+
const _ = c === zr.Vertical, v = si(), y = tn(u ?? (() => {}), [u]), b = tn(d ?? (() => {}), [d]), w = tn(f ?? (() => {}), [f]), x = P(null), S = L(() => N([x, t]), [t]), C = tn((e) => ({
|
|
3907
3917
|
dragging: e,
|
|
3908
3918
|
element: x.current,
|
|
3909
3919
|
source: "touch"
|
|
3910
|
-
}), []), [E,
|
|
3920
|
+
}), []), [E, k] = A(!1), T = P({
|
|
3911
3921
|
isVertical: _,
|
|
3912
3922
|
travel: 0,
|
|
3913
3923
|
startAlong: 0,
|
|
@@ -3921,12 +3931,12 @@ var Lr = {
|
|
|
3921
3931
|
count: 0,
|
|
3922
3932
|
timer: null
|
|
3923
3933
|
});
|
|
3924
|
-
|
|
3934
|
+
T.current.isVertical = _, T.current.fraction = ai(h), T.current.hasEdgeHold = !!d;
|
|
3925
3935
|
const D = tn(() => {
|
|
3926
|
-
const e =
|
|
3936
|
+
const e = T.current;
|
|
3927
3937
|
e.timer && clearTimeout(e.timer), e.timer = null;
|
|
3928
3938
|
}, []), z = tn(() => {
|
|
3929
|
-
const e =
|
|
3939
|
+
const e = T.current;
|
|
3930
3940
|
if (e.timer = null, !e.edge || !e.dragging) return;
|
|
3931
3941
|
e.count++;
|
|
3932
3942
|
const t = Math.max(0, e.edge > 0 ? e.rawFraction - 1 : -e.rawFraction) * e.travel;
|
|
@@ -3936,7 +3946,7 @@ var Lr = {
|
|
|
3936
3946
|
overshootPx: t
|
|
3937
3947
|
}) && (e.timer = setTimeout(z, 60));
|
|
3938
3948
|
}, []), R = tn(() => {
|
|
3939
|
-
const e =
|
|
3949
|
+
const e = T.current;
|
|
3940
3950
|
if (!e.hasEdgeHold) return;
|
|
3941
3951
|
const t = e.rawFraction < 0 ? -1 : e.rawFraction > 1 ? 1 : 0;
|
|
3942
3952
|
t !== e.edge && (e.edge = t, D(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(z, 60)));
|
|
@@ -3944,33 +3954,33 @@ var Lr = {
|
|
|
3944
3954
|
processTouch: !0,
|
|
3945
3955
|
consumeTouch: !0,
|
|
3946
3956
|
onPointerDown: (e, t) => {
|
|
3947
|
-
const n =
|
|
3948
|
-
n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0,
|
|
3957
|
+
const n = T.current;
|
|
3958
|
+
n.startAlong = n.isVertical ? e.clientY : e.clientX, n.startFraction = n.fraction, n.rawFraction = n.fraction, n.edge = 0, n.dragging = !0, k(!0), w?.(C(!0)), e.preventDefault(), e.stopPropagation();
|
|
3949
3959
|
},
|
|
3950
3960
|
onPointerMoveOrWait: (e) => {
|
|
3951
|
-
const t =
|
|
3952
|
-
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(
|
|
3961
|
+
const t = T.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
|
|
3962
|
+
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(ai(t.rawFraction)), R();
|
|
3953
3963
|
},
|
|
3954
3964
|
onPointerUp: (e) => {
|
|
3955
|
-
const t =
|
|
3956
|
-
t.edge = 0, t.dragging = !1, D(),
|
|
3965
|
+
const t = T.current;
|
|
3966
|
+
t.edge = 0, t.dragging = !1, D(), k(!1), w?.(C(!1)), e.preventDefault(), e.stopPropagation();
|
|
3957
3967
|
}
|
|
3958
3968
|
}), []));
|
|
3959
3969
|
if (M(() => () => {
|
|
3960
|
-
const e =
|
|
3970
|
+
const e = T.current;
|
|
3961
3971
|
e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, w?.(C(!1)));
|
|
3962
3972
|
}, []), !v?.portalTarget) return null;
|
|
3963
|
-
const
|
|
3964
|
-
|
|
3965
|
-
const q = j + 4 +
|
|
3973
|
+
const H = 1.8 * s, I = _ ? s : H, O = _ ? H : s, W = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - W), Y = _ ? v.reserveVertical : v.reserveHorizontal, U = Y > 0 ? -2 : 4, X = Math.max(0, W - Y - H - 4 - U);
|
|
3974
|
+
T.current.travel = X;
|
|
3975
|
+
const q = j + 4 + H / 2 + ai(h) * X;
|
|
3966
3976
|
let Z, G;
|
|
3967
|
-
return _ ? (Z = v.width - v.crossInset -
|
|
3968
|
-
className: K("touch-thumb",
|
|
3977
|
+
return _ ? (Z = v.width - v.crossInset - I / 2, G = q - O / 2) : (G = v.height - v.crossInset - O / 2, Z = q - I / 2), F($("div", {
|
|
3978
|
+
className: K("touch-thumb", Ir, a, { dragging: E }),
|
|
3969
3979
|
ref: S,
|
|
3970
3980
|
style: {
|
|
3971
3981
|
left: Z,
|
|
3972
3982
|
top: G,
|
|
3973
|
-
width:
|
|
3983
|
+
width: I,
|
|
3974
3984
|
height: O,
|
|
3975
3985
|
zIndex: 20,
|
|
3976
3986
|
borderWidth: `${i}px`,
|
|
@@ -3990,15 +4000,15 @@ var Lr = {
|
|
|
3990
4000
|
...g
|
|
3991
4001
|
}), v.portalTarget, m);
|
|
3992
4002
|
}));
|
|
3993
|
-
|
|
3994
|
-
var
|
|
3995
|
-
const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l =
|
|
4003
|
+
ci.displayName = "TouchThumbHandle";
|
|
4004
|
+
var hi = 24, ui = x(y((e, t) => {
|
|
4005
|
+
const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = zr.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: h, scrollButtonIncrement: u = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = hi, maxThumbSize: m, renderScrollButtonStart: g = Wr, renderScrollButtonEnd: _ = Kr, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: x, ...C } = e, E = "touch" === We().primaryInput, k = h ?? !E;
|
|
3996
4006
|
tn(c ?? (() => {}), [c]);
|
|
3997
|
-
const [
|
|
4007
|
+
const [T, D] = A({
|
|
3998
4008
|
offset: 0,
|
|
3999
4009
|
length: 0,
|
|
4000
4010
|
disabled: !1
|
|
4001
|
-
}), z = P(-1),
|
|
4011
|
+
}), z = P(-1), H = l === zr.Vertical, [O, { width: F, height: W }] = I(), V = H ? W : F, j = P(null), Y = L(() => N([O, j]), [O]), U = tn((e, t, n) => {
|
|
4002
4012
|
if (0 === t || 0 === n) {
|
|
4003
4013
|
const e = {
|
|
4004
4014
|
offset: 0,
|
|
@@ -4030,7 +4040,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4030
4040
|
r,
|
|
4031
4041
|
o,
|
|
4032
4042
|
V,
|
|
4033
|
-
|
|
4043
|
+
T
|
|
4034
4044
|
]), q = tn((e) => {
|
|
4035
4045
|
D(U(e, r, o)), a?.(e, r, o), z.current = e;
|
|
4036
4046
|
}, [
|
|
@@ -4045,7 +4055,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4045
4055
|
}, [
|
|
4046
4056
|
r,
|
|
4047
4057
|
o,
|
|
4048
|
-
|
|
4058
|
+
H,
|
|
4049
4059
|
V
|
|
4050
4060
|
]);
|
|
4051
4061
|
const Z = Math.max(0, o - r), G = oo(t, () => ({ isScrollbar: () => !0 }), []), J = tn((e) => {
|
|
@@ -4055,14 +4065,14 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4055
4065
|
r,
|
|
4056
4066
|
n,
|
|
4057
4067
|
Z
|
|
4058
|
-
]), Q =
|
|
4059
|
-
vertical:
|
|
4068
|
+
]), Q = qr({
|
|
4069
|
+
vertical: H,
|
|
4060
4070
|
getTrackRect: () => j.current?.getBoundingClientRect() ?? null,
|
|
4061
|
-
getThumb: () =>
|
|
4062
|
-
offset:
|
|
4063
|
-
length:
|
|
4071
|
+
getThumb: () => T.disabled ? null : {
|
|
4072
|
+
offset: T.offset,
|
|
4073
|
+
length: T.length
|
|
4064
4074
|
},
|
|
4065
|
-
onStart: tn((e) =>
|
|
4075
|
+
onStart: tn((e) => T.disabled ? null : "thumb" === e ? (w?.({
|
|
4066
4076
|
dragging: !0,
|
|
4067
4077
|
element: ne.current,
|
|
4068
4078
|
source: "thumb"
|
|
@@ -4079,29 +4089,29 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4079
4089
|
page: J,
|
|
4080
4090
|
dragMode: "page"
|
|
4081
4091
|
}, [
|
|
4082
|
-
|
|
4092
|
+
T,
|
|
4083
4093
|
b,
|
|
4084
4094
|
w
|
|
4085
4095
|
])
|
|
4086
4096
|
}), ee = "thumb" === Q.dragMode, te = tn((e) => {
|
|
4087
4097
|
const t = Math.max(1, Math.floor(.9 * r));
|
|
4088
|
-
|
|
4098
|
+
H ? ("ArrowDown" === e.key && X(Math.min(Z, n + 1)), "ArrowUp" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z)) : ("ArrowRight" === e.key && X(Math.min(Z, n + 1)), "ArrowLeft" === e.key && X(Math.max(0, n - 1)), "PageDown" === e.key && X(Math.min(Z, n + t)), "PageUp" === e.key && X(Math.max(0, n - t)), "Home" === e.key && X(0), "End" === e.key && X(Z));
|
|
4089
4099
|
}, [
|
|
4090
|
-
|
|
4100
|
+
H,
|
|
4091
4101
|
r,
|
|
4092
4102
|
o,
|
|
4093
4103
|
n,
|
|
4094
4104
|
Z
|
|
4095
4105
|
]), ne = P(null), oe = L(() => {
|
|
4096
|
-
const e =
|
|
4106
|
+
const e = T.disabled;
|
|
4097
4107
|
if (e) return null;
|
|
4098
4108
|
const t = $("div", {
|
|
4099
4109
|
...y,
|
|
4100
|
-
className: K(
|
|
4110
|
+
className: K(Br, { disabled: e }),
|
|
4101
4111
|
ref: ne,
|
|
4102
4112
|
role: "slider",
|
|
4103
|
-
"aria-label":
|
|
4104
|
-
"aria-orientation":
|
|
4113
|
+
"aria-label": H ? "Rows" : "Columns",
|
|
4114
|
+
"aria-orientation": H ? "vertical" : "horizontal",
|
|
4105
4115
|
"aria-valuemin": 0,
|
|
4106
4116
|
"aria-valuemax": Z,
|
|
4107
4117
|
"aria-valuenow": n,
|
|
@@ -4109,29 +4119,29 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4109
4119
|
style: {
|
|
4110
4120
|
...y?.style,
|
|
4111
4121
|
position: "relative",
|
|
4112
|
-
[
|
|
4113
|
-
[
|
|
4114
|
-
transform:
|
|
4115
|
-
[
|
|
4122
|
+
[H ? "height" : "width"]: `${T.length}px`,
|
|
4123
|
+
[H ? "width" : "height"]: "100%",
|
|
4124
|
+
transform: H ? `translateY(${T.offset}px)` : `translateX(${T.offset}px)`,
|
|
4125
|
+
[H ? "minHeight" : "minWidth"]: `${p}px`
|
|
4116
4126
|
},
|
|
4117
4127
|
onMouseDown: x
|
|
4118
4128
|
});
|
|
4119
4129
|
if (!E || e) return t;
|
|
4120
|
-
const o = Math.max(0, V -
|
|
4121
|
-
return B(R, { children: [t, $(
|
|
4130
|
+
const o = Math.max(0, V - T.length);
|
|
4131
|
+
return B(R, { children: [t, $(ci, {
|
|
4122
4132
|
...v,
|
|
4123
|
-
orientation:
|
|
4124
|
-
fraction: o > 0 ?
|
|
4133
|
+
orientation: H ? zr.Vertical : zr.Horizontal,
|
|
4134
|
+
fraction: o > 0 ? T.offset / o : 0,
|
|
4125
4135
|
onScrollToFraction: (e) => X(e * o),
|
|
4126
4136
|
onEdgeHold: b,
|
|
4127
4137
|
onDraggingChange: w
|
|
4128
4138
|
})] });
|
|
4129
4139
|
}, [
|
|
4130
|
-
|
|
4140
|
+
T,
|
|
4131
4141
|
p,
|
|
4132
4142
|
Z,
|
|
4133
4143
|
n,
|
|
4134
|
-
|
|
4144
|
+
H,
|
|
4135
4145
|
E,
|
|
4136
4146
|
x,
|
|
4137
4147
|
v,
|
|
@@ -4173,33 +4183,33 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4173
4183
|
he
|
|
4174
4184
|
]);
|
|
4175
4185
|
M(() => () => he(), [he]);
|
|
4176
|
-
const de = L(() =>
|
|
4186
|
+
const de = L(() => k ? g?.({
|
|
4177
4187
|
orientation: l,
|
|
4178
4188
|
disabled: n <= 0,
|
|
4179
4189
|
onMouseUp: he,
|
|
4180
4190
|
onMouseLeave: he,
|
|
4181
4191
|
onMouseDown: () => ue(n, !0, !0)
|
|
4182
4192
|
}) : null, [
|
|
4183
|
-
|
|
4193
|
+
k,
|
|
4184
4194
|
l,
|
|
4185
4195
|
n,
|
|
4186
4196
|
re
|
|
4187
|
-
]), fe = L(() =>
|
|
4197
|
+
]), fe = L(() => k ? _?.({
|
|
4188
4198
|
orientation: l,
|
|
4189
4199
|
disabled: n >= Z,
|
|
4190
4200
|
onMouseUp: he,
|
|
4191
4201
|
onMouseLeave: he,
|
|
4192
4202
|
onMouseDown: () => ue(n, !0, !1)
|
|
4193
4203
|
}) : null, [
|
|
4194
|
-
|
|
4204
|
+
k,
|
|
4195
4205
|
l,
|
|
4196
4206
|
n,
|
|
4197
4207
|
Z,
|
|
4198
4208
|
re
|
|
4199
|
-
]), pe =
|
|
4209
|
+
]), pe = H ? "vertical" : "horizontal";
|
|
4200
4210
|
return B("div", {
|
|
4201
4211
|
ref: N([G, t]),
|
|
4202
|
-
className: K(s,
|
|
4212
|
+
className: K(s, Rr, pe, {
|
|
4203
4213
|
dragging: ee,
|
|
4204
4214
|
"has-touch-thumb": E
|
|
4205
4215
|
}),
|
|
@@ -4215,7 +4225,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4215
4225
|
"aria-valuemax": Z,
|
|
4216
4226
|
"aria-valuenow": n,
|
|
4217
4227
|
tabIndex: 0,
|
|
4218
|
-
className: K(
|
|
4228
|
+
className: K($r, "track", pe),
|
|
4219
4229
|
onMouseDown: x,
|
|
4220
4230
|
onPointerDown: Q.onPointerDown,
|
|
4221
4231
|
onPointerMove: Q.onPointerMove,
|
|
@@ -4226,24 +4236,24 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4226
4236
|
fe
|
|
4227
4237
|
]
|
|
4228
4238
|
});
|
|
4229
|
-
})),
|
|
4230
|
-
let t = null !==
|
|
4231
|
-
return t && (
|
|
4232
|
-
},
|
|
4233
|
-
let i =
|
|
4239
|
+
})), di = Date.now, fi = 1e3, pi = {}, mi = 1, gi = (e) => {
|
|
4240
|
+
let t = null !== pi[e];
|
|
4241
|
+
return t && (pi[e] = null), t;
|
|
4242
|
+
}, _i = (e, t, n, o = 0, r) => {
|
|
4243
|
+
let i = di(), s = i, l = 0, a = 0, c = 0, h = mi++;
|
|
4234
4244
|
if (h % 20 == 0) {
|
|
4235
4245
|
const e = {};
|
|
4236
|
-
for (let t in
|
|
4237
|
-
|
|
4246
|
+
for (let t in pi) e[t] = !0;
|
|
4247
|
+
pi = e;
|
|
4238
4248
|
}
|
|
4239
4249
|
const u = function(d) {
|
|
4240
|
-
let f = !0 !== d, p =
|
|
4250
|
+
let f = !0 !== d, p = di(), m = !0;
|
|
4241
4251
|
try {
|
|
4242
4252
|
m = (!t || t(h)) ?? !0;
|
|
4243
4253
|
} catch (e) {
|
|
4244
4254
|
m = !1;
|
|
4245
4255
|
}
|
|
4246
|
-
if (!
|
|
4256
|
+
if (!pi[h] || !m) return pi[h] = null, void n?.(60 - a / ((p - i) / fi), h, !1);
|
|
4247
4257
|
if (f) {
|
|
4248
4258
|
c = Math.round((p - s) / 16.666666666666668) - 1;
|
|
4249
4259
|
for (let e = 0; e < Math.min(c, 4); e++) u(!0), a++;
|
|
@@ -4255,14 +4265,14 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4255
4265
|
} catch (e) {
|
|
4256
4266
|
_ = !1;
|
|
4257
4267
|
}
|
|
4258
|
-
!1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (
|
|
4268
|
+
!1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(u)) : (pi[h] = null, n?.(60 - a / ((p - i) / fi), h, 1 === l || null == o));
|
|
4259
4269
|
};
|
|
4260
|
-
return
|
|
4261
|
-
},
|
|
4270
|
+
return pi[h] = !0, requestAnimationFrame(u), h;
|
|
4271
|
+
}, vi = function(e) {
|
|
4262
4272
|
return Math.pow(e - 1, 3) + 1;
|
|
4263
|
-
},
|
|
4273
|
+
}, yi = function(e) {
|
|
4264
4274
|
return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
|
|
4265
|
-
},
|
|
4275
|
+
}, bi = class {
|
|
4266
4276
|
constructor(e, t) {
|
|
4267
4277
|
this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
|
|
4268
4278
|
scrollingX: !0,
|
|
@@ -4316,7 +4326,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4316
4326
|
}
|
|
4317
4327
|
zoomTo(e, t = !1, n, o, r) {
|
|
4318
4328
|
if (!this.options.zooming) throw new Error("Zooming is not enabled!");
|
|
4319
|
-
r && (this.__zoomComplete = r), this.__isDecelerating && (
|
|
4329
|
+
r && (this.__zoomComplete = r), this.__isDecelerating && (gi(this.__isDecelerating), this.__isDecelerating = 0);
|
|
4320
4330
|
const i = this.__zoomLevel;
|
|
4321
4331
|
void 0 === n && (n = this.__clientWidth / 2), void 0 === o && (o = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
|
|
4322
4332
|
const s = e / i;
|
|
@@ -4327,7 +4337,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4327
4337
|
this.zoomTo(this.__zoomLevel * e, t, n, o, r);
|
|
4328
4338
|
}
|
|
4329
4339
|
scrollTo(e, t, n = !1, o = 1) {
|
|
4330
|
-
if (this.__isDecelerating && (
|
|
4340
|
+
if (this.__isDecelerating && (gi(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
|
|
4331
4341
|
if (!this.options.zooming) throw new Error("Zooming is not enabled!");
|
|
4332
4342
|
e *= o, t *= o, this.__computeScrollMax(o);
|
|
4333
4343
|
} else o = this.__zoomLevel;
|
|
@@ -4345,7 +4355,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4345
4355
|
if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
|
|
4346
4356
|
if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
|
|
4347
4357
|
let n, o;
|
|
4348
|
-
this.__interruptedAnimation = !0, this.__isDecelerating && (
|
|
4358
|
+
this.__interruptedAnimation = !0, this.__isDecelerating && (gi(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (gi(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
|
|
4349
4359
|
let r = 1 === e.length;
|
|
4350
4360
|
r ? (n = e[0].pageX, o = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = o, this.__zoomLevelStart = this.__zoomLevel, this.__lastTouchLeft = n, this.__lastTouchTop = o, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !r && !!this.options.scrollingX, this.__enableScrollY = !r && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !r, this.__isSingleTouch = r, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
|
|
4351
4361
|
}
|
|
@@ -4400,14 +4410,14 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4400
4410
|
}
|
|
4401
4411
|
__publish(e, t, n, o = !1) {
|
|
4402
4412
|
const r = this.__isAnimating;
|
|
4403
|
-
if (r && (
|
|
4413
|
+
if (r && (gi(r), this.__isAnimating = 0), o && this.options.animating) {
|
|
4404
4414
|
this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
|
|
4405
4415
|
const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, h = (e, t, n = !1) => {
|
|
4406
4416
|
n && (this.__scrollLeft = o + l * e, this.__scrollTop = i + a * e, this.__zoomLevel = s + c * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
|
|
4407
4417
|
}, u = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
|
|
4408
4418
|
t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
|
|
4409
4419
|
};
|
|
4410
|
-
this.__isAnimating =
|
|
4420
|
+
this.__isAnimating = _i(h, u, d, this.options.animationDuration, r ? vi : yi);
|
|
4411
4421
|
} else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
|
|
4412
4422
|
}
|
|
4413
4423
|
__computeScrollMax(e = this.__zoomLevel) {
|
|
@@ -4419,7 +4429,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4419
4429
|
this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / o) * o, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / o) * o;
|
|
4420
4430
|
} else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
|
|
4421
4431
|
const t = this.options.snapping ? 4 : .1;
|
|
4422
|
-
this.__isDecelerating =
|
|
4432
|
+
this.__isDecelerating = _i((e, t, n = !1) => {
|
|
4423
4433
|
this.__stepThroughDeceleration(n);
|
|
4424
4434
|
}, () => {
|
|
4425
4435
|
const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
|
|
@@ -4445,10 +4455,10 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4445
4455
|
t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? o = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (o = this.__maxDecelerationScrollTop - n), 0 !== e && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * r : this.__decelerationVelocityX = e * i), 0 !== o && (o * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += o * r : this.__decelerationVelocityY = o * i);
|
|
4446
4456
|
}
|
|
4447
4457
|
}
|
|
4448
|
-
},
|
|
4449
|
-
defaultRenderScrollbar: () =>
|
|
4450
|
-
getScrollTo: () =>
|
|
4451
|
-
}),
|
|
4458
|
+
}, wi = J({
|
|
4459
|
+
defaultRenderScrollbar: () => Si,
|
|
4460
|
+
getScrollTo: () => xi
|
|
4461
|
+
}), xi = (e, t, n, o, r = 0) => {
|
|
4452
4462
|
for (let r = 0; r < n.length; r++) {
|
|
4453
4463
|
const i = n[r].getBoundingClientRect();
|
|
4454
4464
|
let s = i.left - t, l = s + i.width;
|
|
@@ -4457,8 +4467,8 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4457
4467
|
} else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
|
|
4458
4468
|
}
|
|
4459
4469
|
return r;
|
|
4460
|
-
},
|
|
4461
|
-
const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a =
|
|
4470
|
+
}, Si = (e) => $(ui, { ...e }), Ci = "_scrollpane_zdrii_2", Mi = "_scrollpane-content_zdrii_20", Ei = "_scrollpane-content-cell_zdrii_33", ki = "_vertical-container_zdrii_42", Ti = "_horizontal-container_zdrii_50", Li = "_corner-container_zdrii_59", Di = "_touch-thumb-overlay_zdrii_68", Pi = x(y((e, t) => {
|
|
4471
|
+
const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, showHorizontalScrollbar: s = !0, showVerticalScrollbar: l = !0, renderScrollCorner: a = Ai, renderScrollbarHorizontal: c = Si, renderScrollbarVertical: h = Si, style: u, className: d, disableTouch: f, ...p } = e, m = s && c, g = l && h, _ = ln(o, (e) => e.getMetrics()), v = S((e, t) => {
|
|
4462
4472
|
if (!o) return;
|
|
4463
4473
|
const n = o.getTarget();
|
|
4464
4474
|
o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
|
|
@@ -4522,25 +4532,25 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4522
4532
|
e.touches.length, b.current?.doTouchStart(e.touches, e.timeStamp);
|
|
4523
4533
|
}, []), E = S((e) => {
|
|
4524
4534
|
e.preventDefault(), e.touches.length, b.current, b.current, b.current, b.current?.doTouchMove(e.touches, e.timeStamp);
|
|
4525
|
-
}, []),
|
|
4535
|
+
}, []), k = S((e) => {
|
|
4526
4536
|
b.current?.doTouchEnd(e.timeStamp);
|
|
4527
|
-
}, []),
|
|
4537
|
+
}, []), T = S(({ containerWidth: e, containerHeight: t, totalWidth: n, totalHeight: o }) => {
|
|
4528
4538
|
b.current && b.current.setDimensions(e, t, n, o);
|
|
4529
4539
|
}, []);
|
|
4530
4540
|
M(() => {
|
|
4531
4541
|
const e = y.current;
|
|
4532
|
-
return !f && We().supportsTouchEvents && e && _ && (b.current || (b.current = new
|
|
4542
|
+
return !f && We().supportsTouchEvents && e && _ && (b.current || (b.current = new bi(x, {
|
|
4533
4543
|
scrollingX: !0,
|
|
4534
4544
|
scrollingY: !0,
|
|
4535
4545
|
decelerationRate: .95,
|
|
4536
4546
|
penetrationAcceleration: .08
|
|
4537
|
-
})), We().supportsTouchEvents && (e.addEventListener("touchstart", C, { passive: !1 }), e.addEventListener("touchend",
|
|
4547
|
+
})), We().supportsTouchEvents && (e.addEventListener("touchstart", C, { passive: !1 }), e.addEventListener("touchend", k), e.addEventListener("touchmove", E, { passive: !1 })), T({
|
|
4538
4548
|
containerWidth: _?.width,
|
|
4539
4549
|
containerHeight: _?.height,
|
|
4540
4550
|
totalWidth: _?.totalWidth,
|
|
4541
4551
|
totalHeight: _?.totalHeight
|
|
4542
4552
|
})), () => {
|
|
4543
|
-
e?.removeEventListener("touchstart", C), e?.removeEventListener("touchend",
|
|
4553
|
+
e?.removeEventListener("touchstart", C), e?.removeEventListener("touchend", k), e?.removeEventListener("touchmove", E);
|
|
4544
4554
|
};
|
|
4545
4555
|
}, [
|
|
4546
4556
|
_?.width,
|
|
@@ -4549,11 +4559,11 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4549
4559
|
_?.totalHeight,
|
|
4550
4560
|
f
|
|
4551
4561
|
]);
|
|
4552
|
-
const D = We().supportsTouchEvents, [z, R] = A(null), [
|
|
4553
|
-
R(e),
|
|
4554
|
-
}, [
|
|
4562
|
+
const D = We().supportsTouchEvents, [z, R] = A(null), [H, { width: N, height: O }] = I(), F = S((e) => {
|
|
4563
|
+
R(e), H(e);
|
|
4564
|
+
}, [H]), W = L(() => {
|
|
4555
4565
|
if (!z) return null;
|
|
4556
|
-
const e =
|
|
4566
|
+
const e = oi(), t = Math.min(N, _?.width ?? N), n = Math.min(O, _?.height ?? O);
|
|
4557
4567
|
return {
|
|
4558
4568
|
portalTarget: z,
|
|
4559
4569
|
width: N,
|
|
@@ -4562,7 +4572,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4562
4572
|
viewportHeight: n,
|
|
4563
4573
|
reserveVertical: m ? e : 0,
|
|
4564
4574
|
reserveHorizontal: g ? e : 0,
|
|
4565
|
-
crossInset:
|
|
4575
|
+
crossInset: ni()
|
|
4566
4576
|
};
|
|
4567
4577
|
}, [
|
|
4568
4578
|
z,
|
|
@@ -4575,7 +4585,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4575
4585
|
]), V = L(() => {
|
|
4576
4586
|
if (!g) return null;
|
|
4577
4587
|
const e = h({
|
|
4578
|
-
orientation:
|
|
4588
|
+
orientation: zr.Vertical,
|
|
4579
4589
|
offset: _?.top ?? 0,
|
|
4580
4590
|
viewportSize: _?.height ?? 0,
|
|
4581
4591
|
totalSize: _?.totalHeight ?? 0,
|
|
@@ -4584,7 +4594,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4584
4594
|
}
|
|
4585
4595
|
});
|
|
4586
4596
|
return $("div", {
|
|
4587
|
-
className: K("vertical-container",
|
|
4597
|
+
className: K("vertical-container", ki),
|
|
4588
4598
|
children: e
|
|
4589
4599
|
});
|
|
4590
4600
|
}, [
|
|
@@ -4595,7 +4605,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4595
4605
|
]), j = L(() => {
|
|
4596
4606
|
if (!m) return null;
|
|
4597
4607
|
const e = c({
|
|
4598
|
-
orientation:
|
|
4608
|
+
orientation: zr.Horizontal,
|
|
4599
4609
|
offset: _?.left ?? 0,
|
|
4600
4610
|
viewportSize: _?.width ?? 0,
|
|
4601
4611
|
totalSize: _?.totalWidth ?? 0,
|
|
@@ -4604,7 +4614,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4604
4614
|
}
|
|
4605
4615
|
});
|
|
4606
4616
|
return $("div", {
|
|
4607
|
-
className: K("horizontal-container",
|
|
4617
|
+
className: K("horizontal-container", Ti),
|
|
4608
4618
|
children: e
|
|
4609
4619
|
});
|
|
4610
4620
|
}, [
|
|
@@ -4613,7 +4623,7 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4613
4623
|
_?.width,
|
|
4614
4624
|
_?.totalWidth
|
|
4615
4625
|
]), Y = L(() => g && m ? $("div", {
|
|
4616
|
-
className: K("corner-container",
|
|
4626
|
+
className: K("corner-container", Li),
|
|
4617
4627
|
children: a({})
|
|
4618
4628
|
}) : null, [
|
|
4619
4629
|
g,
|
|
@@ -4621,17 +4631,17 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4621
4631
|
a
|
|
4622
4632
|
]);
|
|
4623
4633
|
return $("div", {
|
|
4624
|
-
className: K(d, "scrollpane",
|
|
4634
|
+
className: K(d, "scrollpane", Ci),
|
|
4625
4635
|
style: u,
|
|
4626
4636
|
...p,
|
|
4627
4637
|
ref: y,
|
|
4628
|
-
children: $(
|
|
4638
|
+
children: $(ii, {
|
|
4629
4639
|
value: W,
|
|
4630
4640
|
children: B("div", {
|
|
4631
|
-
className: K("scrollpane-content",
|
|
4641
|
+
className: K("scrollpane-content", Mi),
|
|
4632
4642
|
children: [
|
|
4633
4643
|
$("div", {
|
|
4634
|
-
className: K("scrollpane-content-cell",
|
|
4644
|
+
className: K("scrollpane-content-cell", Ei),
|
|
4635
4645
|
children: n
|
|
4636
4646
|
}),
|
|
4637
4647
|
g ? V : null,
|
|
@@ -4639,15 +4649,15 @@ var ai = 24, ci = x(y((e, t) => {
|
|
|
4639
4649
|
Y,
|
|
4640
4650
|
D ? $("div", {
|
|
4641
4651
|
ref: F,
|
|
4642
|
-
className: K("touch-thumb-overlay",
|
|
4652
|
+
className: K("touch-thumb-overlay", Di)
|
|
4643
4653
|
}) : null
|
|
4644
4654
|
]
|
|
4645
4655
|
})
|
|
4646
4656
|
})
|
|
4647
4657
|
});
|
|
4648
4658
|
}));
|
|
4649
|
-
|
|
4650
|
-
var
|
|
4659
|
+
Pi.displayName = "ScrollPane";
|
|
4660
|
+
var Ai = (e) => {
|
|
4651
4661
|
const { size: t, style: n, ...o } = e;
|
|
4652
4662
|
return $("div", {
|
|
4653
4663
|
className: "corner",
|
|
@@ -4658,7 +4668,7 @@ var Di = (e) => {
|
|
|
4658
4668
|
},
|
|
4659
4669
|
...o
|
|
4660
4670
|
});
|
|
4661
|
-
},
|
|
4671
|
+
}, zi = class {
|
|
4662
4672
|
constructor(e) {
|
|
4663
4673
|
this._bounds = {
|
|
4664
4674
|
minLeft: 0,
|
|
@@ -4768,7 +4778,7 @@ var Di = (e) => {
|
|
|
4768
4778
|
}
|
|
4769
4779
|
_applyBounds(e) {
|
|
4770
4780
|
this._bounds = e;
|
|
4771
|
-
const t =
|
|
4781
|
+
const t = Fi(this._target.left, e.minLeft, e.maxLeft), n = Fi(this._target.top, e.minTop, e.maxTop);
|
|
4772
4782
|
t === this._target.left && n === this._target.top || (this._target = {
|
|
4773
4783
|
left: t,
|
|
4774
4784
|
top: n
|
|
@@ -4790,12 +4800,12 @@ var Di = (e) => {
|
|
|
4790
4800
|
return this._observe(e, "both");
|
|
4791
4801
|
}
|
|
4792
4802
|
_observe(e, t) {
|
|
4793
|
-
if (!e) return
|
|
4803
|
+
if (!e) return Oi;
|
|
4794
4804
|
const n = (e, n) => {
|
|
4795
4805
|
const o = this._measuredClient;
|
|
4796
4806
|
this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
|
|
4797
4807
|
};
|
|
4798
|
-
if (!
|
|
4808
|
+
if (!Ni()) return n(0, 0), Oi;
|
|
4799
4809
|
const o = new ResizeObserver((e) => {
|
|
4800
4810
|
const t = e[0]?.contentRect;
|
|
4801
4811
|
t && n(t.width, t.height);
|
|
@@ -4842,17 +4852,17 @@ var Di = (e) => {
|
|
|
4842
4852
|
}
|
|
4843
4853
|
setTarget(e, t, n) {
|
|
4844
4854
|
const o = this._bounds;
|
|
4845
|
-
return e =
|
|
4855
|
+
return e = Fi(e, o.minLeft, o.maxLeft), t = Fi(t, o.minTop, o.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
|
|
4846
4856
|
left: e,
|
|
4847
4857
|
top: t
|
|
4848
4858
|
}, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
|
|
4849
4859
|
}
|
|
4850
4860
|
_startAnimation() {
|
|
4851
|
-
const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width *
|
|
4852
|
-
this._anim = a <=
|
|
4861
|
+
const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Bi : Infinity, r = n.height > 0 ? n.height * Bi : Infinity, i = Fi(e.left, t.left - o, t.left + o), s = Fi(e.top, t.top - r, t.top + r), l = Math.max(Math.abs(t.left - i), Math.abs(t.top - s)), a = Math.min(200, l * $i);
|
|
4862
|
+
this._anim = a <= Hi ? null : {
|
|
4853
4863
|
fromLeft: i,
|
|
4854
4864
|
fromTop: s,
|
|
4855
|
-
start:
|
|
4865
|
+
start: Ii(),
|
|
4856
4866
|
duration: a
|
|
4857
4867
|
};
|
|
4858
4868
|
}
|
|
@@ -4884,7 +4894,7 @@ var Di = (e) => {
|
|
|
4884
4894
|
const e = this._current, t = this._target, n = this._anim;
|
|
4885
4895
|
let o, r, i = !1;
|
|
4886
4896
|
if (n) {
|
|
4887
|
-
const e = (
|
|
4897
|
+
const e = (Ii() - n.start) / n.duration;
|
|
4888
4898
|
if (e >= 1) o = t.left, r = t.top, this._anim = null;
|
|
4889
4899
|
else {
|
|
4890
4900
|
const s = 1 - Math.pow(1 - e, 3);
|
|
@@ -4896,7 +4906,7 @@ var Di = (e) => {
|
|
|
4896
4906
|
top: r
|
|
4897
4907
|
}, this._viewport = null, this._emit()), i;
|
|
4898
4908
|
}
|
|
4899
|
-
},
|
|
4909
|
+
}, Ri = 200, $i = 2.5, Bi = 1.5, Hi = 17, Ii = () => "undefined" != typeof performance ? performance.now() : Date.now(), Ni = () => "undefined" != typeof ResizeObserver, Oi = () => {}, Fi = (e, t, n) => Math.min(n, Math.max(t, e)), Wi = class {
|
|
4900
4910
|
constructor(e, t, n, o, r) {
|
|
4901
4911
|
this._h = e, this._v = t, this._followH = n, this._followV = o, this._zoomCtrl = r, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
|
|
4902
4912
|
}
|
|
@@ -5003,8 +5013,8 @@ var Di = (e) => {
|
|
|
5003
5013
|
setContent(e, t, n = 0, o = 0) {
|
|
5004
5014
|
this._same ? this._h.setContent(e, t, n, o) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, o));
|
|
5005
5015
|
}
|
|
5006
|
-
},
|
|
5007
|
-
const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s =
|
|
5016
|
+
}, Ki = 300, Vi = 100, ji = 1e6, Yi = 100, Ui = 50, Xi = x(y((e, t) => {
|
|
5017
|
+
const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Ki, endScrollIncrement: l = Vi, style: a = Ie, onMouseDown: c, onThumbDrag: h, onScrollOffset: u, onScroll: d, scaleLimit: f = ji, scaleFactor: p = Yi, precisionFactor: m = Ui, renderScrollbar: g = Si, ..._ } = e;
|
|
5008
5018
|
d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
|
|
5009
5019
|
const v = tn(c ?? (() => {}), [c]), [y, b] = A(!1), w = P(0), x = L(() => {
|
|
5010
5020
|
let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
|
|
@@ -5040,11 +5050,11 @@ var Di = (e) => {
|
|
|
5040
5050
|
u
|
|
5041
5051
|
]), E = tn((e) => {
|
|
5042
5052
|
b(e.dragging), h?.(e);
|
|
5043
|
-
}, [h]),
|
|
5044
|
-
document.removeEventListener("mousemove",
|
|
5053
|
+
}, [h]), k = S((e) => {}, []), T = S((e) => {
|
|
5054
|
+
document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", T), b(!1);
|
|
5045
5055
|
}, []), D = S((e) => {
|
|
5046
|
-
b(!0), v?.(e), document.addEventListener("mousemove",
|
|
5047
|
-
}, [
|
|
5056
|
+
b(!0), v?.(e), document.addEventListener("mousemove", k, { passive: !0 }), document.addEventListener("mouseup", T, { passive: !0 });
|
|
5057
|
+
}, [k, T]);
|
|
5048
5058
|
return g({
|
|
5049
5059
|
style: a,
|
|
5050
5060
|
..._,
|
|
@@ -5058,8 +5068,8 @@ var Di = (e) => {
|
|
|
5058
5068
|
ref: t
|
|
5059
5069
|
});
|
|
5060
5070
|
}));
|
|
5061
|
-
|
|
5062
|
-
var
|
|
5071
|
+
Xi.displayName = "VirtualScrollbar";
|
|
5072
|
+
var qi = "_scrollbar-themed_nj3vu_7", Zi = (e) => ({
|
|
5063
5073
|
"--scrollbar-track-color": e.track,
|
|
5064
5074
|
"--scrollbar-thumb-color": e.thumb,
|
|
5065
5075
|
"--scrollbar-button-color": e.button || e.thumb,
|
|
@@ -5072,7 +5082,7 @@ var Ui = "_scrollbar-themed_nj3vu_7", Xi = (e) => ({
|
|
|
5072
5082
|
"--scrollbar-border-width": "2px",
|
|
5073
5083
|
"--scrollbar-min-thumb-size": "24px"
|
|
5074
5084
|
});
|
|
5075
|
-
var
|
|
5085
|
+
var Gi = {
|
|
5076
5086
|
axis: Z.oneOf([
|
|
5077
5087
|
"both",
|
|
5078
5088
|
"x",
|
|
@@ -5124,12 +5134,12 @@ var qi = {
|
|
|
5124
5134
|
const [t] = e;
|
|
5125
5135
|
return "both" === t.axis || "x" === t.axis ? Z.number.isRequired(...e) : Z.number(...e);
|
|
5126
5136
|
}
|
|
5127
|
-
},
|
|
5137
|
+
}, Ji = class extends f.Component {
|
|
5128
5138
|
constructor(...e) {
|
|
5129
5139
|
super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
|
|
5130
5140
|
}
|
|
5131
5141
|
static {
|
|
5132
|
-
this.propTypes =
|
|
5142
|
+
this.propTypes = Gi;
|
|
5133
5143
|
}
|
|
5134
5144
|
static {
|
|
5135
5145
|
this.defaultProps = {
|
|
@@ -5223,7 +5233,7 @@ var qi = {
|
|
|
5223
5233
|
}), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), p.cloneElement(b, w);
|
|
5224
5234
|
var b, w;
|
|
5225
5235
|
}
|
|
5226
|
-
},
|
|
5236
|
+
}, Qi = class extends f.Component {
|
|
5227
5237
|
constructor(...e) {
|
|
5228
5238
|
super(...e), this.state = {
|
|
5229
5239
|
width: this.props.width,
|
|
@@ -5237,7 +5247,7 @@ var qi = {
|
|
|
5237
5247
|
}
|
|
5238
5248
|
static {
|
|
5239
5249
|
this.propTypes = {
|
|
5240
|
-
...
|
|
5250
|
+
...Gi,
|
|
5241
5251
|
children: Z.element
|
|
5242
5252
|
};
|
|
5243
5253
|
}
|
|
@@ -5251,7 +5261,7 @@ var qi = {
|
|
|
5251
5261
|
}
|
|
5252
5262
|
render() {
|
|
5253
5263
|
const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: h, height: u, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
|
|
5254
|
-
return $(
|
|
5264
|
+
return $(Ji, {
|
|
5255
5265
|
axis: c,
|
|
5256
5266
|
draggableOpts: i,
|
|
5257
5267
|
handle: e,
|
|
@@ -5277,4 +5287,4 @@ var qi = {
|
|
|
5277
5287
|
});
|
|
5278
5288
|
}
|
|
5279
5289
|
};
|
|
5280
|
-
export { oe as ACCUMULATE, $t as AnimationModeProvider,
|
|
5290
|
+
export { oe as ACCUMULATE, $t as AnimationModeProvider, Wi as AxisViewport, Pt as Command, _t as CommandAnchorProvider, pe as CommandButtonEntryLabel, he as CommandButtonRegistryContext, de as CommandButtonRegistryProvider, ne as CommandButtonType, st as CommandChainContext, yt as CommandFallbackContext, xt as CommandFallbackProvider, Ct as CommandFocusProvider, at as CommandOrderContext, ie as CommandRegistry, Te as CommandRegistryContext, it as CommandResolver, mt as CommandResolverContext, De as CommandScope, ht as CommandScopeContext, ft as CommandScopeProvider, ze as ConstantActivation, ce as DefaultCommandButtonRegistry, ke as DefaultCommandCatalogService, se as DefaultCommandRegistry, gr as DefaultIconService, Gt as DefaultReactNotifier, yr as DynamicIcon, jr as EDGE_HOLD_INTERVAL_MS, Go as FloatPanel, Zo as FloatPanelSurface, Yo as FloatPopper, tr as FloatProvider, kt as FloatStackProvider, Qo as FloatTooltip, Re as FocusActivation, Wt as FocusKeyNavigation, yo as INPUT_SELECTION_TINT, vo as INPUT_SELECTION_VAR, wr as InMemoryStore, et as KeyBindingDispatcher, ee as KeyCodes, Q as KeyModifiers, On as LanguageStateKey, $e as LayerActivation, Ar as LocalStorageStore, Ae as ManualActivation, te as MouseButtonCodes, Xt as NotifierType, Yr as PAGE_INITIAL_DELAY_MS, Ur as PAGE_REPEAT_DELAY_MS, Lr as PersistenceStateProvider, me as QUICK_ACTION_TAG, io as ReactErrorBoundary, Qt as ReactNotifierProvider, Be as ReactUtils, Ji as Resizable, Qi as ResizableBox, Vt as RoundedTab, Ri as SCROLL_ANIMATION_MS, uo as SERIES_COUNT, wo as SXL_THEME_LAYERS, xo as SXL_THEME_LAYER_ORDER, Pi as ScrollPane, wi as ScrollUtils, ui as Scrollbar, zr as ScrollbarOrientation, cr as SplitPane, rr as SplitPaneResizer, Mo as THEME_MODE_ATTR, Eo as THEME_SURFACE_ATTR, Gr as TOUCH_THUMB_ASPECT, Jr as TOUCH_THUMB_MARGIN, ei as TOUCH_THUMB_MARGIN_CROSS, ti as TOUCH_THUMB_MARGIN_END, Qr as TOUCH_THUMB_MARGIN_START, Zr as TOUCH_THUMB_SIZE, Ao as TokenThemeContext, Ro as TokenThemeProvider, Ft as ToolTipPlacement, ii as TouchThumbFrameProvider, ci as TouchThumbHandle, ho as UncaughtErrorBoundary, zi as Viewport, Xi as VirtualScrollbar, br as WalkingIcon, xe as asCommandCatalog, dt as attachWhenReady, Co as buildThemeCSS, Ce as chromeToPartial, Vn as composeCaretRect, qt as createBusyHandle, Ee as createCommandCatalogService, mr as createDynamicIconService, Zt as createNoopBusyHandle, _e as createResolvedCommand, To as createThemeScopeClass, Xr as createTrackDrag, Xo as defaultCreateFloatPopupPanel, Vr as defaultCreateScrollEdgeButton, Kr as defaultCreateScrollEndButton, Wr as defaultCreateScrollStartButton, er as defaultRenderFloatPanel, Ai as defaultRenderScrollCorner, fo as defaultTheme, Se as fetchCatalog, Fo as floatThemeScopeProps, cn as getDevicePixelRatio, Zi as getScrollbarCssVariables, Yn as getTextareaCaretRect, Qe as isCaretKey, nt as keyEventCanonicals, tt as keyStrokeToCanonical, Ut as lazyComponent, Me as mergeChrome, be as parseShortcutString, re as reduceDefinitions, Pe as resolveAnchorSource, $o as resolveToken, Bo as resolveTokens, qi as scrollbarThemedClassName, we as serializeShortcut, In as setEditMode, ko as themeSurfaceProps, go as themeVars, mo as toVars, oi as touchThumbCornerReserve, ni as touchThumbCrossInset, Ot as useAnimatedMeasure, Rt as useAnimationMode, rn as useBoundSyncExternalStore, tn as useCallbackRef, fe as useCommandButtonEntry, ue as useCommandButtonRegistry, lt as useCommandChain, pt as useCommandElement, vt as useCommandExecute, bt as useCommandFallback, Mt as useCommandFocusRestore, ct as useCommandOrder, Le as useCommandRegistry, gt as useCommandResolver, ut as useCommandScope, Lt as useCommands, Dt as useContributeCommands, an as useDevicePixelRatio, Nn as useEditMode, Tt as useFloat, nr as useFloatStack, Oo as useFloatSurface, un as useFullscreen, gn as useFullscreenPortal, Xn as useGlobalClipboard, to as useId, oo as useImperativeElement, Fn as useLanguage, Yt as useLazyRetry, xn as useMouseDownAndHoldListener, en as useNotifier, hn as useOnClickOrFocusAway, ln as useOptionalBoundSyncExternalStore, on as useOptionalSyncExternalStore, kr as usePersistenceState, Lo as useResolvedThemeMode, wn as useSynchronizedPointerHandler, bn as useTextSelectionDrag, Un as useTextareaCaretRect, zo as useTokenThemeContext, si as useTouchThumbFrame, qn as useTraceUpdate, qr as useTrackDrag, Wn as useTranslator };
|