@sheetxl/utils-react 0.8.0-beta.21 → 0.8.0-beta.22
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/esm/{C74v7_u2uwgwlCTV.mjs → BoN5GNv_OCJUxgqa.mjs} +2 -2
- package/browser/esm/{B8oCr4YRlNEgrVTE.mjs → CA9JhaRnLQnZ152c.mjs} +2 -2
- package/browser/esm/{B6U1YOdlMBIiMwIo.mjs → Hp5-MO2wVxkCzmog.mjs} +1 -1
- package/browser/esm/index.mjs +1103 -1088
- package/node/esm/{CZoJwu33P3QdiHsu.mjs → BQslMd4UYY47M7dX.mjs} +1 -1
- package/node/esm/{BRFcIf1L6jIUdzP7.mjs → BuKRRQ8FGiZxTYQ1.mjs} +1 -1
- package/node/esm/index.mjs +291 -275
- package/package.json +2 -2
- package/types/src/theme/ThemeStyle.d.ts +22 -0
- package/types/src/theme/index.d.ts +1 -0
- package/types/src/theme/themeAttrs.d.ts +5 -4
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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.22
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
@@ -2566,24 +2566,40 @@ function ar(e = {}) {
|
|
|
2566
2566
|
let p = a.join("\n");
|
|
2567
2567
|
return l && (p = `@scope (${l}){\n${p}\n}`), s && (p = `${sr}\n@layer ${s}{\n${p}\n}`), p;
|
|
2568
2568
|
}
|
|
2569
|
-
var cr = "data-sxl-theme-mode", ur = "data-sxl-theme-surface", hr = (e, t) => {
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
}, dr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, fr =
|
|
2573
|
-
|
|
2574
|
-
|
|
2569
|
+
var cr = "data-sxl-theme-mode", ur = "data-sxl-theme-surface", hr = (e, t) => ({
|
|
2570
|
+
[ur]: e,
|
|
2571
|
+
[cr]: t
|
|
2572
|
+
}), dr = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, fr = "sxl-theme-layer-order", pr = (e = document) => {
|
|
2573
|
+
if ("undefined" == typeof document) return;
|
|
2574
|
+
if (e.getElementById(fr)) return;
|
|
2575
|
+
const t = document.createElement("style");
|
|
2576
|
+
t.id = fr, t.textContent = sr, (e instanceof Document ? e.head : e).prepend(t);
|
|
2577
|
+
}, mr = w(({ css: e }) => {
|
|
2578
|
+
const t = z(null);
|
|
2579
|
+
return L(() => {
|
|
2580
|
+
const e = t.current?.getRootNode();
|
|
2581
|
+
(e instanceof Document || e instanceof ShadowRoot) && pr(e);
|
|
2582
|
+
}, []), R("style", {
|
|
2583
|
+
ref: t,
|
|
2584
|
+
children: e
|
|
2585
|
+
});
|
|
2586
|
+
});
|
|
2587
|
+
mr.displayName = "ThemeStyle";
|
|
2588
|
+
var gr = g("light");
|
|
2589
|
+
function _r(e) {
|
|
2590
|
+
const { mode: t, fallback: n } = e || {}, o = S(gr), r = n ?? o, [i, s] = A(() => {
|
|
2575
2591
|
if ("light" === t || "dark" === t) return {
|
|
2576
2592
|
themeMode: t,
|
|
2577
2593
|
source: "prop"
|
|
2578
2594
|
};
|
|
2579
2595
|
if ("undefined" != typeof document) {
|
|
2580
|
-
const e =
|
|
2596
|
+
const e = yr();
|
|
2581
2597
|
if (e) return {
|
|
2582
2598
|
themeMode: e,
|
|
2583
2599
|
source: "class"
|
|
2584
2600
|
};
|
|
2585
2601
|
}
|
|
2586
|
-
return
|
|
2602
|
+
return vr(r);
|
|
2587
2603
|
});
|
|
2588
2604
|
return M(() => {
|
|
2589
2605
|
const e = () => {
|
|
@@ -2592,11 +2608,11 @@ function pr(e) {
|
|
|
2592
2608
|
themeMode: t,
|
|
2593
2609
|
source: "prop"
|
|
2594
2610
|
})));
|
|
2595
|
-
const e =
|
|
2611
|
+
const e = yr();
|
|
2596
2612
|
s(e ? {
|
|
2597
2613
|
themeMode: e,
|
|
2598
2614
|
source: "class"
|
|
2599
|
-
} :
|
|
2615
|
+
} : vr(r));
|
|
2600
2616
|
}, n = new MutationObserver(e), o = [document.documentElement, document.body].filter(Boolean);
|
|
2601
2617
|
for (const e of o) n.observe(e, {
|
|
2602
2618
|
attributes: !0,
|
|
@@ -2608,25 +2624,25 @@ function pr(e) {
|
|
|
2608
2624
|
};
|
|
2609
2625
|
}, [t, r]), i;
|
|
2610
2626
|
}
|
|
2611
|
-
function
|
|
2627
|
+
function vr(e) {
|
|
2612
2628
|
return "system" === e ? {
|
|
2613
|
-
themeMode:
|
|
2629
|
+
themeMode: br(),
|
|
2614
2630
|
source: "media"
|
|
2615
2631
|
} : {
|
|
2616
2632
|
themeMode: e,
|
|
2617
2633
|
source: "fallback"
|
|
2618
2634
|
};
|
|
2619
2635
|
}
|
|
2620
|
-
function
|
|
2636
|
+
function yr() {
|
|
2621
2637
|
if ("undefined" == typeof document) return null;
|
|
2622
2638
|
const e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
|
|
2623
2639
|
return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
|
|
2624
2640
|
}
|
|
2625
|
-
function
|
|
2641
|
+
function br() {
|
|
2626
2642
|
return "undefined" == typeof window ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2627
2643
|
}
|
|
2628
|
-
var
|
|
2629
|
-
const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u =
|
|
2644
|
+
var wr = g(null), xr = () => S(wr), Sr = (e) => {
|
|
2645
|
+
const { light: t, dark: n, base: o, surfaces: r, mode: i, surface: s, isolate: l = !1, layer: a = "sxl-overrides", children: c } = e, u = xr(), h = T(() => ({
|
|
2630
2646
|
...o?.light ?? {},
|
|
2631
2647
|
...u?.light ?? {},
|
|
2632
2648
|
...t ?? {}
|
|
@@ -2642,7 +2658,7 @@ var vr = g(null), yr = () => S(vr), br = (e) => {
|
|
|
2642
2658
|
o?.dark,
|
|
2643
2659
|
u?.dark,
|
|
2644
2660
|
n
|
|
2645
|
-
]), p = dr("token", E()), { themeMode: m } =
|
|
2661
|
+
]), p = dr("token", E()), { themeMode: m } = _r("light" === i || "dark" === i ? { mode: i } : { fallback: "system" }), g = void 0 === i ? void 0 : "auto" === i ? m : i, _ = g ?? u?.mode, v = T(() => ar({
|
|
2646
2662
|
app: {
|
|
2647
2663
|
light: h,
|
|
2648
2664
|
dark: d
|
|
@@ -2668,38 +2684,38 @@ var vr = g(null), yr = () => S(vr), br = (e) => {
|
|
|
2668
2684
|
_,
|
|
2669
2685
|
h,
|
|
2670
2686
|
d
|
|
2671
|
-
]), b = R(
|
|
2687
|
+
]), b = R(mr, { css: v }), w = {};
|
|
2672
2688
|
g && (w[cr] = g), s && (w[ur] = s);
|
|
2673
2689
|
let x = c;
|
|
2674
2690
|
if (l || Object.keys(w).length > 0) {
|
|
2675
2691
|
const e = f.Children.only(c);
|
|
2676
2692
|
l && (w.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), x = f.cloneElement(e, w);
|
|
2677
2693
|
}
|
|
2678
|
-
return $(
|
|
2694
|
+
return $(wr.Provider, {
|
|
2679
2695
|
value: y,
|
|
2680
2696
|
children: [b, x]
|
|
2681
2697
|
});
|
|
2682
2698
|
};
|
|
2683
|
-
function
|
|
2699
|
+
function Mr(e, t) {
|
|
2684
2700
|
if (!e || "undefined" == typeof getComputedStyle) return;
|
|
2685
|
-
const n = getComputedStyle(e).getPropertyValue(
|
|
2701
|
+
const n = getComputedStyle(e).getPropertyValue(Cr(t)).trim();
|
|
2686
2702
|
return "" === n ? void 0 : n;
|
|
2687
2703
|
}
|
|
2688
|
-
function
|
|
2704
|
+
function Er(e, t) {
|
|
2689
2705
|
const n = {};
|
|
2690
2706
|
if (!e || "undefined" == typeof getComputedStyle) return n;
|
|
2691
2707
|
const o = getComputedStyle(e);
|
|
2692
2708
|
for (const e of t) {
|
|
2693
|
-
const t = o.getPropertyValue(
|
|
2709
|
+
const t = o.getPropertyValue(Cr(e)).trim();
|
|
2694
2710
|
"" !== t && (n[e] = t);
|
|
2695
2711
|
}
|
|
2696
2712
|
return n;
|
|
2697
2713
|
}
|
|
2698
|
-
function
|
|
2714
|
+
function Cr(e) {
|
|
2699
2715
|
return e.startsWith("--") ? e : `--sxl-${e}`;
|
|
2700
2716
|
}
|
|
2701
|
-
|
|
2702
|
-
var
|
|
2717
|
+
Sr.displayName = "TokenThemeProvider";
|
|
2718
|
+
var Lr = g(null), Tr = () => {
|
|
2703
2719
|
const e = (t, n) => {
|
|
2704
2720
|
if (null === n) return;
|
|
2705
2721
|
t.add(n);
|
|
@@ -2762,13 +2778,13 @@ var Mr = g(null), Er = () => {
|
|
|
2762
2778
|
})
|
|
2763
2779
|
};
|
|
2764
2780
|
return r;
|
|
2765
|
-
},
|
|
2781
|
+
}, kr = () => S(Lr), zr = (e) => {
|
|
2766
2782
|
const t = {};
|
|
2767
2783
|
return e ? (e.mode && (t[cr] = e.mode), e.surface && (t[ur] = e.surface), {
|
|
2768
2784
|
className: e.classes?.length ? e.classes.join(" ") : void 0,
|
|
2769
2785
|
attrs: t
|
|
2770
2786
|
}) : { attrs: t };
|
|
2771
|
-
},
|
|
2787
|
+
}, Ar = (e) => {
|
|
2772
2788
|
const t = e?.ownerDocument, n = x((e) => {
|
|
2773
2789
|
if (!t || "undefined" == typeof MutationObserver) return () => {};
|
|
2774
2790
|
const n = new MutationObserver(e);
|
|
@@ -2779,8 +2795,8 @@ var Mr = g(null), Er = () => {
|
|
|
2779
2795
|
}), () => n.disconnect();
|
|
2780
2796
|
}, [t]), o = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [r, i] = D(n, o, o).split("\n"), s = {};
|
|
2781
2797
|
return r && (s[cr] = r), i && (s[ur] = i), s;
|
|
2782
|
-
},
|
|
2783
|
-
const e = S(
|
|
2798
|
+
}, Dr = () => {
|
|
2799
|
+
const e = S(Lr), t = xr();
|
|
2784
2800
|
return T(() => {
|
|
2785
2801
|
const n = e?.themeScope;
|
|
2786
2802
|
return t?.scopeClass || t?.mode ? {
|
|
@@ -2793,16 +2809,16 @@ var Mr = g(null), Er = () => {
|
|
|
2793
2809
|
t?.scopeClass,
|
|
2794
2810
|
t?.mode
|
|
2795
2811
|
]);
|
|
2796
|
-
},
|
|
2812
|
+
}, Pr = "_float-popper_1z06c_1", Rr = "_float-popper-grow_1z06c_14", $r = "_entered_1z06c_22", Br = [0, 2], Or = (e) => {
|
|
2797
2813
|
const t = "function" == typeof e ? e() : e;
|
|
2798
2814
|
if (!t) return null;
|
|
2799
2815
|
if (1 === t.nodeType) return t;
|
|
2800
2816
|
const n = t.contextElement;
|
|
2801
2817
|
return n && 1 === n.nodeType ? n : null;
|
|
2802
|
-
},
|
|
2803
|
-
const { open: o, children: r, label: i, offsets: s =
|
|
2818
|
+
}, Hr = w(v((t, n) => {
|
|
2819
|
+
const { open: o, children: r, label: i, offsets: s = Br, anchorEl: l, anchorPosition: a, placement: c = "bottom-start", resizeOnOverflow: u = !0, boundary: h, shift: d = !1, transition: f = !0, container: p, zIndex: m, strategy: g = "absolute", themeFrom: _ = "provider", followAnchor: v = !1, style: y, className: b, onMount: w, onOpening: S, onOpen: E, onClosing: L, onClose: k, ...D } = t;
|
|
2804
2820
|
if (Array.isArray(r)) throw new Error("children can not be an array");
|
|
2805
|
-
const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = an(), se =
|
|
2821
|
+
const P = Yt(w ?? (() => {}), [w]), $ = Yt(S ?? (() => {}), [S]), B = Yt(E ?? (() => {}), [E]), O = Yt(L ?? (() => {}), [L]), I = Yt(k ?? (() => {}), [k]), [N, Z] = A(!1), [q, U] = A(!1), [G, J] = A(!1), [Q, ee] = A(), [te, ne] = A(), oe = z(null), re = z(null), { getPortalContainer: ie } = an(), se = Dr(), le = Ar(a ? null : Or(l)), ae = z(h);
|
|
2806
2822
|
ae.current = h;
|
|
2807
2823
|
const ce = !!h, ue = d ? "object" == typeof d ? d.padding ?? 0 : 0 : null, { mainAxis: he, crossAxis: de, alignmentAxis: fe } = Array.isArray(s) ? {
|
|
2808
2824
|
mainAxis: s[1] ?? 0,
|
|
@@ -2851,7 +2867,7 @@ var Mr = g(null), Er = () => {
|
|
|
2851
2867
|
return e && (e.width || e.height || e.x || e.y) ? (re.current = e, e) : re.current ?? new DOMRect(0, 0, 0, 0);
|
|
2852
2868
|
},
|
|
2853
2869
|
get contextElement() {
|
|
2854
|
-
if (!a) return
|
|
2870
|
+
if (!a) return Or(l) ?? void 0;
|
|
2855
2871
|
}
|
|
2856
2872
|
}), [a, l]), ge = T(() => v ? (e, t, n) => W(e, t, n, { animationFrame: !0 }) : W, [v]), { refs: _e, floatingStyles: ve, isPositioned: ye, placement: be, update: we } = X({
|
|
2857
2873
|
placement: c,
|
|
@@ -2893,7 +2909,7 @@ var Mr = g(null), Er = () => {
|
|
|
2893
2909
|
e.target === e.currentTarget && o && G && B?.();
|
|
2894
2910
|
}, [o, G]);
|
|
2895
2911
|
if (!N) return null;
|
|
2896
|
-
const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } =
|
|
2912
|
+
const Me = (be ?? c).startsWith("bottom") ? "left top" : "center bottom", { className: Ee, attrs: Ce } = zr(se);
|
|
2897
2913
|
let Le;
|
|
2898
2914
|
Le = "anchor" === _ ? {
|
|
2899
2915
|
...Ce,
|
|
@@ -2902,7 +2918,7 @@ var Mr = g(null), Er = () => {
|
|
|
2902
2918
|
const Te = m ?? Zo("popup"), ke = r || e.EmptyArray;
|
|
2903
2919
|
return H(R("div", {
|
|
2904
2920
|
ref: xe,
|
|
2905
|
-
className: F(
|
|
2921
|
+
className: F(Pr, b, Ee),
|
|
2906
2922
|
role: void 0,
|
|
2907
2923
|
"data-placement": be ?? c,
|
|
2908
2924
|
...Le,
|
|
@@ -2916,23 +2932,23 @@ var Mr = g(null), Er = () => {
|
|
|
2916
2932
|
},
|
|
2917
2933
|
...D,
|
|
2918
2934
|
children: f ? R("div", {
|
|
2919
|
-
className: F(
|
|
2935
|
+
className: F(Rr, { [$r]: G }),
|
|
2920
2936
|
style: { transformOrigin: Me },
|
|
2921
2937
|
onTransitionEnd: Se,
|
|
2922
2938
|
children: ke
|
|
2923
2939
|
}) : ke
|
|
2924
2940
|
}), p ?? ie());
|
|
2925
2941
|
}));
|
|
2926
|
-
|
|
2927
|
-
var
|
|
2942
|
+
Hr.displayName = "FloatPopper";
|
|
2943
|
+
var Ir = "_float-popup_juap7_1", Nr = (e) => {
|
|
2928
2944
|
const { closeFloat: t, closeFloatAll: n, floatReference: o, popupContainer: r, children: i, className: s, ...l } = e;
|
|
2929
2945
|
return R("div", {
|
|
2930
|
-
className: F("sxl-menu",
|
|
2946
|
+
className: F("sxl-menu", Ir, s),
|
|
2931
2947
|
...l,
|
|
2932
2948
|
children: i
|
|
2933
2949
|
});
|
|
2934
|
-
},
|
|
2935
|
-
const { floatReference: n, popupContainer: o, renderPopupPanel: r =
|
|
2950
|
+
}, Fr = "_float-panel_qj0za_1", Wr = w(v((e, t) => {
|
|
2951
|
+
const { floatReference: n, popupContainer: o, renderPopupPanel: r = Nr, children: i, className: s, ...l } = e, a = {
|
|
2936
2952
|
popupContainer: o,
|
|
2937
2953
|
floatReference: n,
|
|
2938
2954
|
children: i,
|
|
@@ -2940,7 +2956,7 @@ var Br = "_float-popup_juap7_1", Or = (e) => {
|
|
|
2940
2956
|
};
|
|
2941
2957
|
return R("div", {
|
|
2942
2958
|
ref: t,
|
|
2943
|
-
className: F(
|
|
2959
|
+
className: F(Fr, s),
|
|
2944
2960
|
tabIndex: 0,
|
|
2945
2961
|
children: R(Ro, {
|
|
2946
2962
|
render: r,
|
|
@@ -2948,11 +2964,11 @@ var Br = "_float-popup_juap7_1", Or = (e) => {
|
|
|
2948
2964
|
})
|
|
2949
2965
|
});
|
|
2950
2966
|
}));
|
|
2951
|
-
|
|
2952
|
-
var
|
|
2953
|
-
const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l =
|
|
2967
|
+
Wr.displayName = "FloatPanelSurface";
|
|
2968
|
+
var Kr = w(v((e, t) => {
|
|
2969
|
+
const { open: n, anchorEl: o, anchorPosition: r, label: i, floatReference: s, renderPopupPanel: l = Nr, propsPopper: a, onMount: c, onClosing: u, onClose: h, onOpening: d, onOpen: f, children: p, className: m, ...g } = e, _ = Yt(u ?? (() => {}), [u]), v = Yt(h ?? (() => {}), [h]), y = Yt(d ?? (() => {}), [d]), b = Yt(f ?? (() => {}), [f]), [w, x] = A(), S = z(null), M = Yt((e, t) => {
|
|
2954
2970
|
x(e), c?.(S.current, t);
|
|
2955
|
-
}, [c]), E = T(() => R(
|
|
2971
|
+
}, [c]), E = T(() => R(Wr, {
|
|
2956
2972
|
ref: S,
|
|
2957
2973
|
className: m,
|
|
2958
2974
|
floatReference: s,
|
|
@@ -2966,7 +2982,7 @@ var Nr = w(v((e, t) => {
|
|
|
2966
2982
|
w,
|
|
2967
2983
|
s
|
|
2968
2984
|
]);
|
|
2969
|
-
return R(
|
|
2985
|
+
return R(Hr, {
|
|
2970
2986
|
ref: t,
|
|
2971
2987
|
anchorEl: o,
|
|
2972
2988
|
anchorPosition: r,
|
|
@@ -2981,9 +2997,9 @@ var Nr = w(v((e, t) => {
|
|
|
2981
2997
|
children: E
|
|
2982
2998
|
});
|
|
2983
2999
|
}));
|
|
2984
|
-
|
|
2985
|
-
var
|
|
2986
|
-
const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(
|
|
3000
|
+
Kr.displayName = "FloatPanel";
|
|
3001
|
+
var Vr = (e) => R(Kr, { ...e }), jr = (e) => {
|
|
3002
|
+
const { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: o, themeScopeClass: r, themeSurface: i, themeMode: s, isolate: l, rootRef: a, children: c } = e, u = S(Lr), h = T(() => {
|
|
2987
3003
|
const e = u?.themeScope, l = r ? [...e?.classes ?? [], r] : e?.classes, a = i ?? e?.surface, c = s ?? e?.mode, h = l?.length || a || c ? {
|
|
2988
3004
|
classes: l,
|
|
2989
3005
|
surface: a,
|
|
@@ -3004,12 +3020,12 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3004
3020
|
s,
|
|
3005
3021
|
u
|
|
3006
3022
|
]), d = Lt();
|
|
3007
|
-
let f = R(
|
|
3023
|
+
let f = R(Lr.Provider, {
|
|
3008
3024
|
value: h,
|
|
3009
3025
|
children: c
|
|
3010
3026
|
});
|
|
3011
3027
|
const p = l || !d, m = z(null);
|
|
3012
|
-
p && null === m.current && (m.current =
|
|
3028
|
+
p && null === m.current && (m.current = Tr());
|
|
3013
3029
|
const g = p ? m.current : null;
|
|
3014
3030
|
g && (f = R(Ct, {
|
|
3015
3031
|
value: g,
|
|
@@ -3023,8 +3039,8 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3023
3039
|
a.current = null;
|
|
3024
3040
|
});
|
|
3025
3041
|
}, [a, _]), f;
|
|
3026
|
-
},
|
|
3027
|
-
const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f =
|
|
3042
|
+
}, Yr = (e) => {
|
|
3043
|
+
const { anchor: t, autoFocus: n = !0, disableClickAway: o = !1, label: r = null, parentFloat: i = null, onOpen: s, onClose: l, propsPopper: a, renderPopupPanel: c, renderFloatPanel: u } = e ?? {}, h = Yt(s ?? (() => {}), [s]), d = Yt(l ?? (() => {}), [l]), f = kr(), p = u ?? f?.renderFloatPanel ?? Vr, m = void 0 === c ? f?.renderPopupPanel ?? Nr : c, g = Lt(), [_, v] = A(null), [y, b] = A(!1), [w, S] = A(!1), E = T(() => i ?? g ?? Tr(), []), C = T(() => E.getRoot(), []), L = T(() => ({ label: r }), []), D = z(null), P = z(t);
|
|
3028
3044
|
M(() => {
|
|
3029
3045
|
P.current = t;
|
|
3030
3046
|
}, [t]);
|
|
@@ -3181,8 +3197,8 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3181
3197
|
reference: G,
|
|
3182
3198
|
isOpen: !0 === _
|
|
3183
3199
|
};
|
|
3184
|
-
},
|
|
3185
|
-
const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a =
|
|
3200
|
+
}, Xr = {}, Zr = (e) => {
|
|
3201
|
+
const { onPointerDown: t, style: n, splitDirection: o, paddingBefore: r = 0, paddingAfter: i = 0, disabled: s, key: l, propsHitArea: a = Xr, ...c } = e, u = "row" === o, { style: h, className: d, ...f } = a;
|
|
3186
3202
|
return R("div", {
|
|
3187
3203
|
style: {
|
|
3188
3204
|
...n,
|
|
@@ -3203,7 +3219,7 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3203
3219
|
...f
|
|
3204
3220
|
})
|
|
3205
3221
|
}, l);
|
|
3206
|
-
},
|
|
3222
|
+
}, qr = {}, Ur = (e, t, n = !0) => null === e ? null : null !== e.pixels ? n ? e.pixels : t - e.pixels : (n ? e.percent : 100 - e.percent) / 100 * t, Gr = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Jr = (e, t) => {
|
|
3207
3223
|
if (null == e) return null;
|
|
3208
3224
|
const n = {
|
|
3209
3225
|
percent: null,
|
|
@@ -3211,8 +3227,8 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3211
3227
|
};
|
|
3212
3228
|
let o = t;
|
|
3213
3229
|
return "string" == typeof e && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), o = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), o = !0), e = parseFloat(e)), o ? n.percent = e : n.pixels = e, Object.freeze(n);
|
|
3214
|
-
},
|
|
3215
|
-
const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b =
|
|
3230
|
+
}, Qr = w(v((e, t) => {
|
|
3231
|
+
const { elementBefore: n, elementAfter: o, splitDirection: r = "row", fixedPane: i = null, position: s, onPositionChange: l, minBefore: a, maxBefore: c, minAfter: u, maxAfter: h, children: d, className: f, style: p, disabled: m = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: b = qr, propsPane: w = qr, propsPaneBefore: x = qr, propsPaneAfter: S = qr, renderResizer: E = Zr } = e;
|
|
3216
3232
|
if (d) throw new Error("Use elementBefore and elementAfter instead of children.");
|
|
3217
3233
|
const C = T(() => y(o) && y(n), [o, n]), L = T(() => {
|
|
3218
3234
|
let e = null;
|
|
@@ -3221,19 +3237,19 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3221
3237
|
return {
|
|
3222
3238
|
fixedPaneOffset: e,
|
|
3223
3239
|
isPercent: t,
|
|
3224
|
-
minBefore:
|
|
3225
|
-
maxBefore:
|
|
3226
|
-
minAfter:
|
|
3227
|
-
maxAfter:
|
|
3240
|
+
minBefore: Jr(a, t),
|
|
3241
|
+
maxBefore: Jr(c, t),
|
|
3242
|
+
minAfter: Jr(u, t),
|
|
3243
|
+
maxAfter: Jr(h, t)
|
|
3228
3244
|
};
|
|
3229
3245
|
}, [
|
|
3230
3246
|
a,
|
|
3231
3247
|
c,
|
|
3232
3248
|
u,
|
|
3233
3249
|
h
|
|
3234
|
-
]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() =>
|
|
3250
|
+
]), k = Yt(l ?? (() => {}), [l]), [D, P] = A(() => Jr(s, null === i));
|
|
3235
3251
|
M(() => {
|
|
3236
|
-
P(
|
|
3252
|
+
P(Jr(s, null === i));
|
|
3237
3253
|
}, [s, i]);
|
|
3238
3254
|
const [B, { width: O, height: H }] = bo(), [I, { width: W, height: K }] = bo(), V = "row" === r ? W : K, j = "row" === r ? O : H, Y = T(() => ((e, t, n, o) => {
|
|
3239
3255
|
const r = [null, null], i = [null, null];
|
|
@@ -3243,13 +3259,13 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3243
3259
|
}), 0 === t) return void 0 !== e.pixels && null !== e.pixels ? 1 !== o.fixedPaneOffset ? (r[0] = e.pixels, i[1] = 100) : (r[1] = e.pixels - n, i[0] = 100) : void 0 !== e.percent && null !== e.percent && (1 !== o.fixedPaneOffset ? (i[0] = e.percent, i[1] = 100 - e.percent) : (i[1] = e.percent, i[0] = 100 - e.percent)), {
|
|
3244
3260
|
percents: i,
|
|
3245
3261
|
pixels: r,
|
|
3246
|
-
minBefore:
|
|
3247
|
-
maxBefore:
|
|
3248
|
-
minAfter:
|
|
3249
|
-
maxAfter:
|
|
3262
|
+
minBefore: Gr(o.minBefore, !0),
|
|
3263
|
+
maxBefore: Gr(o.maxBefore, !0),
|
|
3264
|
+
minAfter: Gr(o.minAfter),
|
|
3265
|
+
maxAfter: Gr(o.maxAfter)
|
|
3250
3266
|
};
|
|
3251
|
-
let s =
|
|
3252
|
-
u = (
|
|
3267
|
+
let s = Ur(e, t, 1 !== o.fixedPaneOffset) ?? 0, l = t - n, a = Ur(o.minBefore, l, !0) ?? 0, c = Ur(o.maxBefore, l, !0) ?? l, u = 0, h = 0, d = 0, f = l;
|
|
3268
|
+
u = (Ur(o.maxAfter, t, !1) ?? n) - n, h = Ur(o.minAfter, t, !1) ?? t, d = Math.max(a, u), f = Math.min(c, h), s = Math.max(d, Math.min(s, f)), h = Math.min(l - s, Ur(o.maxAfter, l - s, !0) ?? l), u = Math.min(l - s, Ur(o.minAfter, l - s, !0) ?? l), r[0] = s, r[1] = l - s;
|
|
3253
3269
|
const p = Math.max(0, Math.min(100, s / l * 100));
|
|
3254
3270
|
return i[0] = p, i[1] = 100 - p, {
|
|
3255
3271
|
percents: i,
|
|
@@ -3283,7 +3299,7 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3283
3299
|
flexDirection: r,
|
|
3284
3300
|
display: "flex"
|
|
3285
3301
|
}, { className: de, style: fe, onPointerDown: pe, ...me } = b, ge = Yt((e) => {
|
|
3286
|
-
const t =
|
|
3302
|
+
const t = Jr(e, null === i);
|
|
3287
3303
|
P(t);
|
|
3288
3304
|
}, [i]), _e = Yt((e) => {
|
|
3289
3305
|
if (m || !X) return;
|
|
@@ -3302,7 +3318,7 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3302
3318
|
j
|
|
3303
3319
|
]), ve = Yt((e) => {
|
|
3304
3320
|
if (document.removeEventListener("pointermove", _e), document.removeEventListener("touchmove", _e), document.removeEventListener("pointerup", ve), X && (Z(!1), D)) {
|
|
3305
|
-
if (G(D.pixels ?? 0), !
|
|
3321
|
+
if (G(D.pixels ?? 0), !Jr(s, null === i) || D.pixels !== s) {
|
|
3306
3322
|
const e = D.pixels ?? 0, t = {
|
|
3307
3323
|
pixels: e,
|
|
3308
3324
|
percent: D.percent ?? e / j * 100
|
|
@@ -3407,7 +3423,7 @@ var Fr = (e) => R(Nr, { ...e }), Wr = (e) => {
|
|
|
3407
3423
|
]
|
|
3408
3424
|
});
|
|
3409
3425
|
}));
|
|
3410
|
-
function
|
|
3426
|
+
function ei(e) {
|
|
3411
3427
|
if ("function" == typeof e) return e;
|
|
3412
3428
|
if ("string" == typeof e) {
|
|
3413
3429
|
const t = e.trim();
|
|
@@ -3440,12 +3456,12 @@ function Gr(e) {
|
|
|
3440
3456
|
return null;
|
|
3441
3457
|
}
|
|
3442
3458
|
}(t);
|
|
3443
|
-
if (e) return
|
|
3459
|
+
if (e) return oi(e);
|
|
3444
3460
|
}
|
|
3445
3461
|
if (t.startsWith("<")) {
|
|
3446
|
-
if (/^<\s*svg\b/i.test(t)) return
|
|
3462
|
+
if (/^<\s*svg\b/i.test(t)) return oi(t);
|
|
3447
3463
|
if (/^<\s*path\b/i.test(t)) {
|
|
3448
|
-
const e =
|
|
3464
|
+
const e = ti(t);
|
|
3449
3465
|
if (e) return { paths: [{ d: e }] };
|
|
3450
3466
|
}
|
|
3451
3467
|
return { paths: [{ d: t }] };
|
|
@@ -3457,7 +3473,7 @@ function Gr(e) {
|
|
|
3457
3473
|
for (const n of e) if ("string" == typeof n) {
|
|
3458
3474
|
const e = String(n).trim();
|
|
3459
3475
|
if (e.startsWith("<path")) {
|
|
3460
|
-
const n =
|
|
3476
|
+
const n = ti(e);
|
|
3461
3477
|
n && t.push({ d: n });
|
|
3462
3478
|
} else t.push({ d: e });
|
|
3463
3479
|
} else n && "object" == typeof n && "d" in n && "string" == typeof n.d && t.push({ ...n });
|
|
@@ -3465,14 +3481,14 @@ function Gr(e) {
|
|
|
3465
3481
|
}
|
|
3466
3482
|
return e;
|
|
3467
3483
|
}
|
|
3468
|
-
function
|
|
3484
|
+
function ti(e) {
|
|
3469
3485
|
const t = /\bd\s*=\s*(?:"([^"]+)"|'([^']+)')/i.exec(e);
|
|
3470
3486
|
return t ? t[1] ?? t[2] ?? null : null;
|
|
3471
3487
|
}
|
|
3472
|
-
function
|
|
3488
|
+
function ni(e) {
|
|
3473
3489
|
if ("svg" in e) return {
|
|
3474
3490
|
...e,
|
|
3475
|
-
svg:
|
|
3491
|
+
svg: ei(e.svg)
|
|
3476
3492
|
};
|
|
3477
3493
|
if ("url" in e) {
|
|
3478
3494
|
const t = "string" == typeof e.url ? { src: e.url } : e.url;
|
|
@@ -3490,7 +3506,7 @@ function Qr(e) {
|
|
|
3490
3506
|
}
|
|
3491
3507
|
return e;
|
|
3492
3508
|
}
|
|
3493
|
-
function
|
|
3509
|
+
function oi(e) {
|
|
3494
3510
|
try {
|
|
3495
3511
|
if ("undefined" != typeof DOMParser) {
|
|
3496
3512
|
const t = new DOMParser().parseFromString(e, "image/svg+xml"), n = t.querySelector("svg")?.getAttribute("viewBox") ?? void 0, o = [];
|
|
@@ -3523,9 +3539,9 @@ function ei(e) {
|
|
|
3523
3539
|
paths: o
|
|
3524
3540
|
};
|
|
3525
3541
|
}
|
|
3526
|
-
function
|
|
3542
|
+
function ri(e) {
|
|
3527
3543
|
const t = {};
|
|
3528
|
-
for (const [n, o] of Object.entries(e.icons)) t[n] =
|
|
3544
|
+
for (const [n, o] of Object.entries(e.icons)) t[n] = ni(o);
|
|
3529
3545
|
const n = {
|
|
3530
3546
|
label: e.meta?.label ?? "Unnamed",
|
|
3531
3547
|
version: e.meta?.version ?? "1.0.0",
|
|
@@ -3542,14 +3558,14 @@ function ti(e) {
|
|
|
3542
3558
|
const e = {};
|
|
3543
3559
|
for (const [t, n] of Object.entries(r)) {
|
|
3544
3560
|
const o = {};
|
|
3545
|
-
for (const [e, t] of Object.entries(n)) o[e] =
|
|
3561
|
+
for (const [e, t] of Object.entries(n)) o[e] = ni(t);
|
|
3546
3562
|
e[t] = o;
|
|
3547
3563
|
}
|
|
3548
3564
|
o.__overrides = e;
|
|
3549
3565
|
}
|
|
3550
3566
|
return o;
|
|
3551
3567
|
}
|
|
3552
|
-
function
|
|
3568
|
+
function ii() {
|
|
3553
3569
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
3554
3570
|
let n = "base", o = /* @__PURE__ */ new Map();
|
|
3555
3571
|
async function r(t) {
|
|
@@ -3560,7 +3576,7 @@ function ni() {
|
|
|
3560
3576
|
if (!o.loader) throw new Error(`No loader for icon pack: ${t}`);
|
|
3561
3577
|
o.loading = o.loader().then((e) => {
|
|
3562
3578
|
const t = e && "object" == typeof e && "default" in e ? e.default : e;
|
|
3563
|
-
o.pack =
|
|
3579
|
+
o.pack = ri(t);
|
|
3564
3580
|
}).catch((e) => {
|
|
3565
3581
|
throw o.loading = void 0, e;
|
|
3566
3582
|
});
|
|
@@ -3615,7 +3631,7 @@ function ni() {
|
|
|
3615
3631
|
return {
|
|
3616
3632
|
register: function(t, o) {
|
|
3617
3633
|
const r = e.get(t) ?? {};
|
|
3618
|
-
"function" == typeof o ? r.loader = o : r.pack =
|
|
3634
|
+
"function" == typeof o ? r.loader = o : r.pack = ri(o), e.set(t, r), n || (n = t);
|
|
3619
3635
|
},
|
|
3620
3636
|
prefetch: async function(e = n) {
|
|
3621
3637
|
const t = Array.isArray(e) ? e : [e];
|
|
@@ -3678,25 +3694,25 @@ function ni() {
|
|
|
3678
3694
|
}
|
|
3679
3695
|
};
|
|
3680
3696
|
}
|
|
3681
|
-
|
|
3682
|
-
var
|
|
3683
|
-
|
|
3684
|
-
var
|
|
3697
|
+
Qr.displayName = "SplitPane";
|
|
3698
|
+
var si = ii();
|
|
3699
|
+
si.register("base", () => import("./BQslMd4UYY47M7dX.mjs")), si.register("cf", () => import("./BuKRRQ8FGiZxTYQ1.mjs"));
|
|
3700
|
+
var li = (e) => R("svg", {
|
|
3685
3701
|
...e,
|
|
3686
3702
|
children: R("path", {})
|
|
3687
|
-
}),
|
|
3703
|
+
}), ai = {
|
|
3688
3704
|
Icon: "_Icon_16f7r_10",
|
|
3689
3705
|
"sxl-walk": "_sxl-walk_16f7r_1"
|
|
3690
|
-
},
|
|
3706
|
+
}, ci = w((t) => {
|
|
3691
3707
|
const { iconKey: n, packKey: o, className: r, style: i, role: s, title: l, size: a, ariaHidden: c, propsSource: u, children: h, ...d } = t, [f, p] = A(null);
|
|
3692
3708
|
M(() => {
|
|
3693
3709
|
let t = !0, r = o, i = n;
|
|
3694
3710
|
if (!i) {
|
|
3695
|
-
const t =
|
|
3711
|
+
const t = si.getPack(r);
|
|
3696
3712
|
p({
|
|
3697
3713
|
glyph: t ? { svg: e.EmptyArray } : void 0,
|
|
3698
3714
|
pack: t ?? void 0,
|
|
3699
|
-
packKey: r ??
|
|
3715
|
+
packKey: r ?? si.getActive()
|
|
3700
3716
|
});
|
|
3701
3717
|
return;
|
|
3702
3718
|
}
|
|
@@ -3704,7 +3720,7 @@ var ri = (e) => R("svg", {
|
|
|
3704
3720
|
const [e, t] = i.split(":");
|
|
3705
3721
|
r = e, i = t;
|
|
3706
3722
|
}
|
|
3707
|
-
return
|
|
3723
|
+
return si.resolve(i, { packKey: r }).then((e) => {
|
|
3708
3724
|
t && p(e);
|
|
3709
3725
|
}).catch(() => {}), () => {
|
|
3710
3726
|
t = !1;
|
|
@@ -3713,7 +3729,7 @@ var ri = (e) => R("svg", {
|
|
|
3713
3729
|
const m = f?.pack, g = f?.glyph, _ = f?.packKey;
|
|
3714
3730
|
let v = g ? g.svg : void 0;
|
|
3715
3731
|
const y = g && !v ? g.url : void 0, b = !g || v || y ? void 0 : g.emoji, w = null != a ? "number" == typeof a ? `${a}px` : a : void 0, x = T(() => [
|
|
3716
|
-
|
|
3732
|
+
ai.Icon,
|
|
3717
3733
|
"icon",
|
|
3718
3734
|
r
|
|
3719
3735
|
].filter(Boolean).join(" "), [r]), S = T(() => {
|
|
@@ -3749,8 +3765,8 @@ var ri = (e) => R("svg", {
|
|
|
3749
3765
|
return L(R(e, { ...t }));
|
|
3750
3766
|
}
|
|
3751
3767
|
const k = { viewBox: v?.viewBox ?? m?.meta.defaultViewBox ?? "0 0 24 24" };
|
|
3752
|
-
if ("function" == typeof v) return L(v(k) ?? R(
|
|
3753
|
-
if (!v) return L(R(
|
|
3768
|
+
if ("function" == typeof v) return L(v(k) ?? R(li, { ...k }));
|
|
3769
|
+
if (!v) return L(R(li, { ...k }));
|
|
3754
3770
|
const z = v.paths;
|
|
3755
3771
|
return L(R("svg", {
|
|
3756
3772
|
...k,
|
|
@@ -3765,7 +3781,7 @@ var ri = (e) => R("svg", {
|
|
|
3765
3781
|
}, t)) : null
|
|
3766
3782
|
}));
|
|
3767
3783
|
});
|
|
3768
|
-
function
|
|
3784
|
+
function ui(e) {
|
|
3769
3785
|
const { isWalking: t = !1, themedType: n = "primary", speed: o = 120, dashGap: r = 3, dashLength: i = 5, iconKey: s, packKey: l, style: a, className: c, ...u } = e, h = T(() => {
|
|
3770
3786
|
if (!t) return;
|
|
3771
3787
|
const e = {
|
|
@@ -3781,7 +3797,7 @@ function li(e) {
|
|
|
3781
3797
|
i,
|
|
3782
3798
|
n
|
|
3783
3799
|
]), d = T(() => t ? c + " walking" : c, [t, c]);
|
|
3784
|
-
return R(
|
|
3800
|
+
return R(ci, {
|
|
3785
3801
|
iconKey: s,
|
|
3786
3802
|
packKey: l,
|
|
3787
3803
|
className: d,
|
|
@@ -3792,7 +3808,7 @@ function li(e) {
|
|
|
3792
3808
|
...u
|
|
3793
3809
|
});
|
|
3794
3810
|
}
|
|
3795
|
-
var
|
|
3811
|
+
var hi = class {
|
|
3796
3812
|
constructor() {
|
|
3797
3813
|
this.store = /* @__PURE__ */ new Map();
|
|
3798
3814
|
}
|
|
@@ -3805,32 +3821,32 @@ var ai = class {
|
|
|
3805
3821
|
removeItem(e) {
|
|
3806
3822
|
this.store.delete(e);
|
|
3807
3823
|
}
|
|
3808
|
-
},
|
|
3824
|
+
}, di = g(null), fi = Object.freeze({}), pi = {
|
|
3809
3825
|
parse: (e) => e ? JSON.parse(e) : null,
|
|
3810
3826
|
stringify: JSON.stringify
|
|
3811
|
-
},
|
|
3812
|
-
store: new
|
|
3827
|
+
}, mi = /* @__PURE__ */ new Map(), gi = {
|
|
3828
|
+
store: new hi(),
|
|
3813
3829
|
namespace: "",
|
|
3814
|
-
serializer:
|
|
3830
|
+
serializer: pi,
|
|
3815
3831
|
onReady: (e) => {
|
|
3816
3832
|
e();
|
|
3817
3833
|
},
|
|
3818
3834
|
debounceMs: 0,
|
|
3819
|
-
defaultValues:
|
|
3835
|
+
defaultValues: fi,
|
|
3820
3836
|
notify: (e, t) => {
|
|
3821
|
-
const n =
|
|
3837
|
+
const n = mi.get(e);
|
|
3822
3838
|
n && n.forEach((e) => e(t));
|
|
3823
3839
|
},
|
|
3824
3840
|
subscribeKey: (e, t) => {
|
|
3825
|
-
const n =
|
|
3826
|
-
return n.add(t),
|
|
3827
|
-
const n =
|
|
3828
|
-
n && (n.delete(t), 0 === n.size &&
|
|
3841
|
+
const n = mi.get(e) ?? /* @__PURE__ */ new Set();
|
|
3842
|
+
return n.add(t), mi.set(e, n), () => {
|
|
3843
|
+
const n = mi.get(e);
|
|
3844
|
+
n && (n.delete(t), 0 === n.size && mi.delete(e));
|
|
3829
3845
|
};
|
|
3830
3846
|
}
|
|
3831
3847
|
};
|
|
3832
|
-
function
|
|
3833
|
-
const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(
|
|
3848
|
+
function _i(e, t, n = vi) {
|
|
3849
|
+
const { store: o, namespace: r, serializer: i, debounceMs: s, subscribeKey: l, notify: a, defaultValues: c } = S(di) || gi, u = n.serializer ?? i ?? pi, h = z(null), d = T(() => null == e ? null : `${r}:${e}`, [r, e]), f = d ? `${d}::v` : null, p = () => {
|
|
3834
3850
|
if (null != e && Object.prototype.hasOwnProperty.call(c, e)) return c[e];
|
|
3835
3851
|
const n = t;
|
|
3836
3852
|
return "function" == typeof n ? n() : n;
|
|
@@ -3910,11 +3926,11 @@ function pi(e, t, n = mi) {
|
|
|
3910
3926
|
x(() => C.current(), [])
|
|
3911
3927
|
];
|
|
3912
3928
|
}
|
|
3913
|
-
var
|
|
3914
|
-
function
|
|
3915
|
-
const { store: t, namespace: n = "", serializer: o =
|
|
3916
|
-
|
|
3917
|
-
const a = l.current, c = T(() => "undefined" == typeof window ? new
|
|
3929
|
+
var vi = {};
|
|
3930
|
+
function yi(e) {
|
|
3931
|
+
const { store: t, namespace: n = "", serializer: o = xi, debounceMs: r = 150, defaultValues: i = fi, children: s } = e, l = z(i);
|
|
3932
|
+
Si(l.current, i) || (l.current = i);
|
|
3933
|
+
const a = l.current, c = T(() => "undefined" == typeof window ? new hi() : t ?? new hi(), [t]), u = z(/* @__PURE__ */ new Map()), h = T(() => ({
|
|
3918
3934
|
store: c,
|
|
3919
3935
|
namespace: n,
|
|
3920
3936
|
serializer: o,
|
|
@@ -3947,19 +3963,19 @@ function gi(e) {
|
|
|
3947
3963
|
const t = e.slice(h.namespace.length + 1);
|
|
3948
3964
|
h.notify(t);
|
|
3949
3965
|
});
|
|
3950
|
-
}, [h]), R(
|
|
3966
|
+
}, [h]), R(di.Provider, {
|
|
3951
3967
|
value: h,
|
|
3952
3968
|
children: s
|
|
3953
3969
|
});
|
|
3954
3970
|
}
|
|
3955
|
-
var
|
|
3971
|
+
var bi, wi, xi = {
|
|
3956
3972
|
parse: (e) => null == e ? null : JSON.parse(e),
|
|
3957
3973
|
stringify: JSON.stringify
|
|
3958
|
-
},
|
|
3974
|
+
}, Si = (e, t) => {
|
|
3959
3975
|
if (e === t) return !0;
|
|
3960
3976
|
const n = Object.keys(e);
|
|
3961
3977
|
return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
|
|
3962
|
-
},
|
|
3978
|
+
}, Mi = class {
|
|
3963
3979
|
constructor(e = window.localStorage) {
|
|
3964
3980
|
this.storage = e;
|
|
3965
3981
|
}
|
|
@@ -3986,10 +4002,10 @@ var _i, vi, yi = {
|
|
|
3986
4002
|
};
|
|
3987
4003
|
return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
|
|
3988
4004
|
}
|
|
3989
|
-
},
|
|
3990
|
-
(
|
|
3991
|
-
let t =
|
|
3992
|
-
t || (t = /* @__PURE__ */ new Set(),
|
|
4005
|
+
}, Ei = /* @__PURE__ */ new WeakMap();
|
|
4006
|
+
(wi = bi || (bi = {})).begin = function(e) {
|
|
4007
|
+
let t = Ei.get(e);
|
|
4008
|
+
t || (t = /* @__PURE__ */ new Set(), Ei.set(e, t));
|
|
3993
4009
|
let n = () => {};
|
|
3994
4010
|
const o = new Promise((e) => {
|
|
3995
4011
|
n = e;
|
|
@@ -4000,25 +4016,25 @@ var _i, vi, yi = {
|
|
|
4000
4016
|
return () => {
|
|
4001
4017
|
r || (r = !0, i.delete(o), n());
|
|
4002
4018
|
};
|
|
4003
|
-
},
|
|
4004
|
-
return (
|
|
4019
|
+
}, wi.isPending = function(e) {
|
|
4020
|
+
return (Ei.get(e)?.size ?? 0) > 0;
|
|
4005
4021
|
};
|
|
4006
|
-
var
|
|
4007
|
-
const t =
|
|
4022
|
+
var Ci = async (e) => {
|
|
4023
|
+
const t = Ei.get(e);
|
|
4008
4024
|
for (; t && t.size > 0;) await Promise.allSettled([...t]);
|
|
4009
|
-
},
|
|
4010
|
-
const n = S(
|
|
4025
|
+
}, Li = g(null), Ti = (e) => f.createElement(Li.Provider, { value: e.scope }, e.children), ki = (e, t) => {
|
|
4026
|
+
const n = S(Li), o = void 0 === t ? n : t;
|
|
4011
4027
|
M(() => {
|
|
4012
|
-
if (o && e) return
|
|
4028
|
+
if (o && e) return bi.begin(o);
|
|
4013
4029
|
}, [o, e]);
|
|
4014
|
-
},
|
|
4030
|
+
}, zi = {
|
|
4015
4031
|
Horizontal: "horizontal",
|
|
4016
4032
|
Vertical: "vertical"
|
|
4017
|
-
},
|
|
4018
|
-
const { style: t, orientation: n =
|
|
4033
|
+
}, Ai = "_scrollbar_1kbpg_24", Di = "_track_1kbpg_35", Pi = "_thumb_1kbpg_47", Ri = "_scrollbar-button_1kbpg_96", $i = "_touch-thumb_1kbpg_131", Bi = "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", Oi = "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", Hi = { transform: "rotate(180deg)" }, Ii = (e) => {
|
|
4034
|
+
const { style: t, orientation: n = zi.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zi.Vertical ? Bi : Oi;
|
|
4019
4035
|
return R("button", {
|
|
4020
4036
|
style: t,
|
|
4021
|
-
className: F(
|
|
4037
|
+
className: F(Ri, `sxl-${n}`, "sxl-scroll-button"),
|
|
4022
4038
|
disabled: r,
|
|
4023
4039
|
...i,
|
|
4024
4040
|
children: R("svg", {
|
|
@@ -4028,23 +4044,23 @@ var Si = async (e) => {
|
|
|
4028
4044
|
children: R("path", { d: s })
|
|
4029
4045
|
})
|
|
4030
4046
|
});
|
|
4031
|
-
},
|
|
4032
|
-
const { style: t, orientation: n =
|
|
4047
|
+
}, Ni = (e) => {
|
|
4048
|
+
const { style: t, orientation: n = zi.Vertical, isBefore: o, disabled: r, ...i } = e, s = n === zi.Vertical ? Bi : Oi;
|
|
4033
4049
|
return R("button", {
|
|
4034
4050
|
style: t,
|
|
4035
|
-
className: F(
|
|
4051
|
+
className: F(Ri, `sxl-${n}`, "sxl-scroll-button"),
|
|
4036
4052
|
disabled: r,
|
|
4037
4053
|
...i,
|
|
4038
4054
|
children: R("svg", {
|
|
4039
4055
|
width: "9",
|
|
4040
4056
|
height: "9",
|
|
4041
4057
|
viewBox: "0 0 9 9",
|
|
4042
|
-
style:
|
|
4058
|
+
style: Hi,
|
|
4043
4059
|
children: R("path", { d: s })
|
|
4044
4060
|
})
|
|
4045
4061
|
});
|
|
4046
|
-
},
|
|
4047
|
-
const { style: t, orientation: n =
|
|
4062
|
+
}, Fi = (e) => {
|
|
4063
|
+
const { style: t, orientation: n = zi.Vertical, isBefore: o, ...r } = e, i = n === zi.Vertical;
|
|
4048
4064
|
return R("div", {
|
|
4049
4065
|
style: {
|
|
4050
4066
|
display: "flex",
|
|
@@ -4058,7 +4074,7 @@ var Si = async (e) => {
|
|
|
4058
4074
|
},
|
|
4059
4075
|
className: `sxl-scrollbar-button ${i ? "sxl-vertical" : "sxl-horizontal"} sxl-edge`,
|
|
4060
4076
|
...r,
|
|
4061
|
-
children: R(
|
|
4077
|
+
children: R(ci, {
|
|
4062
4078
|
style: {
|
|
4063
4079
|
transition: "opacity 240ms ease 0s",
|
|
4064
4080
|
opacity: e.disabled ? 0 : 1,
|
|
@@ -4068,7 +4084,7 @@ var Si = async (e) => {
|
|
|
4068
4084
|
iconKey: "MoreHorizontal"
|
|
4069
4085
|
})
|
|
4070
4086
|
});
|
|
4071
|
-
},
|
|
4087
|
+
}, Wi = 60, Ki = 260, Vi = 120, ji = (e) => {
|
|
4072
4088
|
const { vertical: t, getTrackRect: n, getThumb: o, onStart: r, onDragModeChange: i, edgeHoldIntervalMs: s = 60, pageInitialDelayMs: l = 260, pageRepeatDelayMs: a = 120 } = e;
|
|
4073
4089
|
let c = null, u = null, h = 0, d = 0, f = 1, p = 0, m = 0, g = 0, _ = null;
|
|
4074
4090
|
const v = () => {
|
|
@@ -4118,10 +4134,10 @@ var Si = async (e) => {
|
|
|
4118
4134
|
},
|
|
4119
4135
|
dispose: () => v()
|
|
4120
4136
|
};
|
|
4121
|
-
},
|
|
4137
|
+
}, Yi = (e) => {
|
|
4122
4138
|
const [t, n] = A(null), o = z(e);
|
|
4123
4139
|
o.current = e;
|
|
4124
|
-
const r = T(() =>
|
|
4140
|
+
const r = T(() => ji({
|
|
4125
4141
|
vertical: o.current.vertical,
|
|
4126
4142
|
getTrackRect: () => o.current.getTrackRect(),
|
|
4127
4143
|
getThumb: () => o.current.getThumb(),
|
|
@@ -4137,16 +4153,16 @@ var Si = async (e) => {
|
|
|
4137
4153
|
onPointerUp: r.onPointerUp,
|
|
4138
4154
|
dragMode: t
|
|
4139
4155
|
};
|
|
4140
|
-
},
|
|
4156
|
+
}, Xi = 22, Zi = 1.8, qi = 8, Ui = 4, Gi = 8, Ji = -2, Qi = (e = 22) => e / 2 + 8, es = (e = 22) => e + 16, ts = g(null), ns = (e) => {
|
|
4141
4157
|
const { value: t, children: n } = e;
|
|
4142
|
-
return R(
|
|
4158
|
+
return R(ts.Provider, {
|
|
4143
4159
|
value: t,
|
|
4144
4160
|
children: n
|
|
4145
4161
|
});
|
|
4146
|
-
},
|
|
4147
|
-
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 =
|
|
4148
|
-
if (!
|
|
4149
|
-
const _ = c ===
|
|
4162
|
+
}, os = () => S(ts), rs = Fe().supportsTouchEvents, is = (e) => e < 0 ? 0 : e > 1 ? 1 : e, ss = w(v((e, t) => {
|
|
4163
|
+
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 = zi.Vertical, fraction: u = 0, onScrollToFraction: h, onEdgeHold: d, onDraggingChange: f, currentTouchAnchor: p, key: m, ...g } = e;
|
|
4164
|
+
if (!rs) return null;
|
|
4165
|
+
const _ = c === zi.Vertical, v = os(), y = Yt(h ?? (() => {}), [h]), b = Yt(d ?? (() => {}), [d]), w = Yt(f ?? (() => {}), [f]), x = z(null), S = N([x, t]), E = Yt((e) => ({
|
|
4150
4166
|
dragging: e,
|
|
4151
4167
|
element: x.current,
|
|
4152
4168
|
source: "touch"
|
|
@@ -4164,7 +4180,7 @@ var Si = async (e) => {
|
|
|
4164
4180
|
count: 0,
|
|
4165
4181
|
timer: null
|
|
4166
4182
|
});
|
|
4167
|
-
k.current.isVertical = _, k.current.fraction =
|
|
4183
|
+
k.current.isVertical = _, k.current.fraction = is(u), k.current.hasEdgeHold = !!d;
|
|
4168
4184
|
const D = Yt(() => {
|
|
4169
4185
|
const e = k.current;
|
|
4170
4186
|
e.timer && clearTimeout(e.timer), e.timer = null;
|
|
@@ -4191,7 +4207,7 @@ var Si = async (e) => {
|
|
|
4191
4207
|
},
|
|
4192
4208
|
onPointerMoveOrWait: (e) => {
|
|
4193
4209
|
const t = k.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
|
|
4194
|
-
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(
|
|
4210
|
+
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(is(t.rawFraction)), $();
|
|
4195
4211
|
},
|
|
4196
4212
|
onPointerUp: (e) => {
|
|
4197
4213
|
const t = k.current;
|
|
@@ -4204,10 +4220,10 @@ var Si = async (e) => {
|
|
|
4204
4220
|
}, []), !v?.portalTarget) return null;
|
|
4205
4221
|
const O = 1.8 * s, I = _ ? s : O, W = _ ? O : s, K = _ ? v.viewportHeight : v.viewportWidth, V = _ ? v.height : v.width, j = Math.max(0, V - K), Y = _ ? v.reserveVertical : v.reserveHorizontal, X = Y > 0 ? -2 : 4, Z = Math.max(0, K - Y - O - 4 - X);
|
|
4206
4222
|
k.current.travel = Z;
|
|
4207
|
-
const q = j + 4 + O / 2 +
|
|
4223
|
+
const q = j + 4 + O / 2 + is(u) * Z;
|
|
4208
4224
|
let U, G;
|
|
4209
4225
|
return _ ? (U = v.width - v.crossInset - I / 2, G = q - W / 2) : (G = v.height - v.crossInset - W / 2, U = q - I / 2), H(R("div", {
|
|
4210
|
-
className: F("sxl-touch-thumb",
|
|
4226
|
+
className: F("sxl-touch-thumb", $i, a, { "sxl-dragging": C }),
|
|
4211
4227
|
ref: S,
|
|
4212
4228
|
style: {
|
|
4213
4229
|
left: U,
|
|
@@ -4232,15 +4248,15 @@ var Si = async (e) => {
|
|
|
4232
4248
|
...g
|
|
4233
4249
|
}), v.portalTarget, m);
|
|
4234
4250
|
}));
|
|
4235
|
-
|
|
4236
|
-
var
|
|
4237
|
-
const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l =
|
|
4251
|
+
ss.displayName = "TouchThumbHandle";
|
|
4252
|
+
var ls = 24, as = w(v((e, t) => {
|
|
4253
|
+
const { offset: n = 0, totalSize: o = 0, viewportSize: r = 0, style: i, className: s, orientation: l = zi.Vertical, onScrollOffset: a, onScroll: c, showCustomScrollButtons: u, scrollButtonIncrement: h = 200, scrollButtonInitialRepeatDelay: d = 260, scrollButtonAdditionalRepeatDelay: f = 120, minThumbSize: p = ls, maxThumbSize: m, renderScrollButtonStart: g = Ii, renderScrollButtonEnd: _ = Ni, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: w, onMouseDown: S, ...E } = e, C = "touch" === Mn(), L = u ?? !C;
|
|
4238
4254
|
Yt(c ?? (() => {}), [c]);
|
|
4239
4255
|
const [k, D] = A({
|
|
4240
4256
|
offset: 0,
|
|
4241
4257
|
length: 0,
|
|
4242
4258
|
disabled: !1
|
|
4243
|
-
}), B = z(-1), O = l ===
|
|
4259
|
+
}), B = z(-1), O = l === zi.Vertical, [H, { width: I, height: W }] = bo(), K = O ? W : I, V = z(null), j = N([H, V]), Y = Yt((e, t, n) => {
|
|
4244
4260
|
if (0 === t || 0 === n) {
|
|
4245
4261
|
const e = {
|
|
4246
4262
|
offset: 0,
|
|
@@ -4297,7 +4313,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4297
4313
|
r,
|
|
4298
4314
|
n,
|
|
4299
4315
|
q
|
|
4300
|
-
]), Q =
|
|
4316
|
+
]), Q = Yi({
|
|
4301
4317
|
vertical: O,
|
|
4302
4318
|
getTrackRect: () => V.current?.getBoundingClientRect() ?? null,
|
|
4303
4319
|
getThumb: () => k.disabled ? null : {
|
|
@@ -4339,7 +4355,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4339
4355
|
if (e) return null;
|
|
4340
4356
|
const t = R("div", {
|
|
4341
4357
|
...y,
|
|
4342
|
-
className: F(
|
|
4358
|
+
className: F(Pi, { "sxl-disabled": e }),
|
|
4343
4359
|
ref: ne,
|
|
4344
4360
|
role: "slider",
|
|
4345
4361
|
"aria-label": O ? "Rows" : "Columns",
|
|
@@ -4360,9 +4376,9 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4360
4376
|
});
|
|
4361
4377
|
if (!C || e) return t;
|
|
4362
4378
|
const o = Math.max(0, K - k.length);
|
|
4363
|
-
return $(P, { children: [t, R(
|
|
4379
|
+
return $(P, { children: [t, R(ss, {
|
|
4364
4380
|
...v,
|
|
4365
|
-
orientation: O ?
|
|
4381
|
+
orientation: O ? zi.Vertical : zi.Horizontal,
|
|
4366
4382
|
fraction: o > 0 ? k.offset / o : 0,
|
|
4367
4383
|
onScrollToFraction: (e) => X(e * o),
|
|
4368
4384
|
onEdgeHold: b,
|
|
@@ -4444,10 +4460,10 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4444
4460
|
n,
|
|
4445
4461
|
q,
|
|
4446
4462
|
re
|
|
4447
|
-
]), pe = O ? "vertical" : "horizontal", me = N([U, t]);
|
|
4463
|
+
]), pe = O ? "vertical" : "horizontal", me = `sxl-${pe}`, ge = N([U, t]);
|
|
4448
4464
|
return $("div", {
|
|
4449
|
-
ref:
|
|
4450
|
-
className: F(s,
|
|
4465
|
+
ref: ge,
|
|
4466
|
+
className: F(s, Ai, me, {
|
|
4451
4467
|
"sxl-dragging": ee,
|
|
4452
4468
|
"sxl-has-touch-thumb": C
|
|
4453
4469
|
}),
|
|
@@ -4463,7 +4479,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4463
4479
|
"aria-valuemax": q,
|
|
4464
4480
|
"aria-valuenow": n,
|
|
4465
4481
|
tabIndex: 0,
|
|
4466
|
-
className: F(
|
|
4482
|
+
className: F(Di, "sxl-track", me),
|
|
4467
4483
|
onMouseDown: S,
|
|
4468
4484
|
onPointerDown: Q.onPointerDown,
|
|
4469
4485
|
onPointerMove: Q.onPointerMove,
|
|
@@ -4474,24 +4490,24 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4474
4490
|
fe
|
|
4475
4491
|
]
|
|
4476
4492
|
});
|
|
4477
|
-
})),
|
|
4478
|
-
let t = null !==
|
|
4479
|
-
return t && (
|
|
4480
|
-
},
|
|
4481
|
-
let i =
|
|
4493
|
+
})), cs = Date.now, us = 1e3, hs = {}, ds = 1, fs = (e) => {
|
|
4494
|
+
let t = null !== hs[e];
|
|
4495
|
+
return t && (hs[e] = null), t;
|
|
4496
|
+
}, ps = (e, t, n, o = 0, r) => {
|
|
4497
|
+
let i = cs(), s = i, l = 0, a = 0, c = 0, u = ds++;
|
|
4482
4498
|
if (u % 20 == 0) {
|
|
4483
4499
|
const e = {};
|
|
4484
|
-
for (let t in
|
|
4485
|
-
|
|
4500
|
+
for (let t in hs) e[t] = !0;
|
|
4501
|
+
hs = e;
|
|
4486
4502
|
}
|
|
4487
4503
|
const h = function(d) {
|
|
4488
|
-
let f = !0 !== d, p =
|
|
4504
|
+
let f = !0 !== d, p = cs(), m = !0;
|
|
4489
4505
|
try {
|
|
4490
4506
|
m = (!t || t(u)) ?? !0;
|
|
4491
4507
|
} catch (e) {
|
|
4492
4508
|
m = !1;
|
|
4493
4509
|
}
|
|
4494
|
-
if (!
|
|
4510
|
+
if (!hs[u] || !m) return hs[u] = null, void n?.(60 - a / ((p - i) / us), u, !1);
|
|
4495
4511
|
if (f) {
|
|
4496
4512
|
c = Math.round((p - s) / 16.666666666666668) - 1;
|
|
4497
4513
|
for (let e = 0; e < Math.min(c, 4); e++) h(!0), a++;
|
|
@@ -4503,17 +4519,17 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4503
4519
|
} catch (e) {
|
|
4504
4520
|
_ = !1;
|
|
4505
4521
|
}
|
|
4506
|
-
!1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (
|
|
4522
|
+
!1 !== _ && 1 !== l || !f ? f && (s = p, requestAnimationFrame(h)) : (hs[u] = null, n?.(60 - a / ((p - i) / us), u, 1 === l || null == o));
|
|
4507
4523
|
};
|
|
4508
|
-
return
|
|
4509
|
-
},
|
|
4524
|
+
return hs[u] = !0, requestAnimationFrame(h), u;
|
|
4525
|
+
}, ms = function(e) {
|
|
4510
4526
|
return Math.pow(e - 1, 3) + 1;
|
|
4511
|
-
},
|
|
4527
|
+
}, gs = function(e) {
|
|
4512
4528
|
return (e /= .5) < 1 ? .5 * Math.pow(e, 3) : .5 * (Math.pow(e - 2, 3) + 2);
|
|
4513
|
-
},
|
|
4529
|
+
}, _s = Math.log(1.15) / 100, vs = (e) => {
|
|
4514
4530
|
const t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
|
|
4515
4531
|
return Math.sqrt(t * t + n * n);
|
|
4516
|
-
},
|
|
4532
|
+
}, ys = class {
|
|
4517
4533
|
constructor(e, t) {
|
|
4518
4534
|
this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isZooming = !1, this.__pinchStartDistance = 0, this.__gestureMoveX = 0, this.__gestureMoveY = 0, 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 = {
|
|
4519
4535
|
scrollingX: !0,
|
|
@@ -4567,7 +4583,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4567
4583
|
}
|
|
4568
4584
|
zoomTo(e, t = !1, n, o, r) {
|
|
4569
4585
|
if (!this.options.zooming) throw new Error("Zooming is not enabled!");
|
|
4570
|
-
r && (this.__zoomComplete = r), this.__isDecelerating && (
|
|
4586
|
+
r && (this.__zoomComplete = r), this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0);
|
|
4571
4587
|
const i = this.__zoomLevel;
|
|
4572
4588
|
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);
|
|
4573
4589
|
const s = e / i;
|
|
@@ -4586,7 +4602,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4586
4602
|
this.zoomTo(this.__zoomLevel * e, t, n, o, r);
|
|
4587
4603
|
}
|
|
4588
4604
|
scrollTo(e, t, n = !1, o) {
|
|
4589
|
-
if (this.__isDecelerating && (
|
|
4605
|
+
if (this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0), void 0 !== o && o !== this.__zoomLevel) {
|
|
4590
4606
|
if (!this.options.zooming) throw new Error("Zooming is not enabled!");
|
|
4591
4607
|
e *= o, t *= o, this.__computeScrollMax(o);
|
|
4592
4608
|
} else o = this.__zoomLevel;
|
|
@@ -4597,16 +4613,16 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4597
4613
|
this.scrollTo(o + (e || 0), r + (t || 0), n);
|
|
4598
4614
|
}
|
|
4599
4615
|
doMouseZoom(e, t, n, o) {
|
|
4600
|
-
const r = Math.exp(-e *
|
|
4616
|
+
const r = Math.exp(-e * _s);
|
|
4601
4617
|
return this.zoomTo(this.__zoomLevel * r, !1, n - this.__clientLeft, o - this.__clientTop);
|
|
4602
4618
|
}
|
|
4603
4619
|
doTouchStart(e, t) {
|
|
4604
4620
|
if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
|
|
4605
4621
|
if (t instanceof Date && (t = t.valueOf()), "number" != typeof t) throw new Error("Invalid timestamp value: " + t);
|
|
4606
4622
|
let n, o;
|
|
4607
|
-
this.__interruptedAnimation = !0, this.__isDecelerating && (
|
|
4623
|
+
this.__interruptedAnimation = !0, this.__isDecelerating && (fs(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (fs(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
|
|
4608
4624
|
let r = 1 === e.length;
|
|
4609
|
-
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.__pinchStartDistance = r ? 0 :
|
|
4625
|
+
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.__pinchStartDistance = r ? 0 : vs(e), this.__isGesturing = !r && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, 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;
|
|
4610
4626
|
}
|
|
4611
4627
|
doTouchMove(e, t) {
|
|
4612
4628
|
if (void 0 === e.length) throw new Error("Invalid touch list: " + e);
|
|
@@ -4615,7 +4631,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4615
4631
|
let n, o;
|
|
4616
4632
|
2 === e.length ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, o = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, o = e[0].pageY);
|
|
4617
4633
|
let r = this.__positions;
|
|
4618
|
-
const i = 2 === e.length && this.__pinchStartDistance > 0 ?
|
|
4634
|
+
const i = 2 === e.length && this.__pinchStartDistance > 0 ? vs(e) / this.__pinchStartDistance : 1;
|
|
4619
4635
|
if (this.__isDragging) {
|
|
4620
4636
|
let e = n - this.__lastTouchLeft, s = o - this.__lastTouchTop;
|
|
4621
4637
|
this.__gestureMoveX = e, this.__gestureMoveY = s;
|
|
@@ -4662,14 +4678,14 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4662
4678
|
}
|
|
4663
4679
|
__publish(e, t, n, o = !1) {
|
|
4664
4680
|
const r = this.__isAnimating;
|
|
4665
|
-
if (r && (
|
|
4681
|
+
if (r && (fs(r), this.__isAnimating = 0), o && this.options.animating) {
|
|
4666
4682
|
this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
|
|
4667
4683
|
const o = this.__scrollLeft, i = this.__scrollTop, s = this.__zoomLevel, l = e - o, a = t - i, c = n - s, u = (e, t, n = !1) => {
|
|
4668
4684
|
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));
|
|
4669
4685
|
}, h = (e) => this.__isAnimating === e, d = (e, t, n = !1) => {
|
|
4670
4686
|
t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete && (this.__zoomComplete(), this.__zoomComplete = null));
|
|
4671
4687
|
};
|
|
4672
|
-
this.__isAnimating =
|
|
4688
|
+
this.__isAnimating = ps(u, h, d, this.options.animationDuration, r ? ms : gs);
|
|
4673
4689
|
} 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));
|
|
4674
4690
|
}
|
|
4675
4691
|
__computeScrollMax(e = this.__zoomLevel) {
|
|
@@ -4681,7 +4697,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4681
4697
|
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;
|
|
4682
4698
|
} else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
|
|
4683
4699
|
const t = this.options.snapping ? 4 : .1;
|
|
4684
|
-
this.__isDecelerating =
|
|
4700
|
+
this.__isDecelerating = ps((e, t, n = !1) => {
|
|
4685
4701
|
this.__stepThroughDeceleration(n);
|
|
4686
4702
|
}, () => {
|
|
4687
4703
|
const e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
|
|
@@ -4707,11 +4723,11 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4707
4723
|
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);
|
|
4708
4724
|
}
|
|
4709
4725
|
}
|
|
4710
|
-
},
|
|
4726
|
+
}, bs = /* @__PURE__ */ new Set([
|
|
4711
4727
|
"auto",
|
|
4712
4728
|
"scroll",
|
|
4713
4729
|
"overlay"
|
|
4714
|
-
]),
|
|
4730
|
+
]), ws = /* @__PURE__ */ new Set(["contain", "none"]), xs = (e, t) => {
|
|
4715
4731
|
const { deltaX: n, deltaY: o, shiftKey: r } = e, i = r || Math.abs(n) > Math.abs(o), s = r ? o : i ? n : o;
|
|
4716
4732
|
if (0 === s) return null;
|
|
4717
4733
|
let l = e.target instanceof Element ? e.target : null;
|
|
@@ -4720,21 +4736,21 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4720
4736
|
const e = i ? l.scrollWidth - l.clientWidth : l.scrollHeight - l.clientHeight;
|
|
4721
4737
|
if (e > 0) {
|
|
4722
4738
|
const t = getComputedStyle(l);
|
|
4723
|
-
if (
|
|
4739
|
+
if (bs.has(i ? t.overflowX : t.overflowY)) {
|
|
4724
4740
|
const n = i ? l.scrollLeft : l.scrollTop;
|
|
4725
4741
|
if (s < 0 ? n > 0 : n < e - 1) return "native";
|
|
4726
|
-
if (
|
|
4742
|
+
if (ws.has(i ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
|
|
4727
4743
|
}
|
|
4728
4744
|
}
|
|
4729
4745
|
l = l.parentElement;
|
|
4730
4746
|
}
|
|
4731
4747
|
return null;
|
|
4732
|
-
},
|
|
4748
|
+
}, Ss = 100 / 3, Ms = G({
|
|
4733
4749
|
PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
|
|
4734
|
-
defaultRenderScrollbar: () =>
|
|
4735
|
-
getScrollTo: () =>
|
|
4736
|
-
getWheelOwner: () =>
|
|
4737
|
-
}),
|
|
4750
|
+
defaultRenderScrollbar: () => Cs,
|
|
4751
|
+
getScrollTo: () => Es,
|
|
4752
|
+
getWheelOwner: () => xs
|
|
4753
|
+
}), Es = (e, t, n, o, r = 0) => {
|
|
4738
4754
|
for (let r = 0; r < n.length; r++) {
|
|
4739
4755
|
const i = n[r].getBoundingClientRect();
|
|
4740
4756
|
let s = i.left - t, l = s + i.width;
|
|
@@ -4743,14 +4759,14 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4743
4759
|
} else if (Math.ceil(l) > Math.ceil(e) + 2) return l;
|
|
4744
4760
|
}
|
|
4745
4761
|
return r;
|
|
4746
|
-
},
|
|
4762
|
+
}, Cs = (e) => R(as, { ...e }), Ls = (e) => {
|
|
4747
4763
|
const t = e.ownerDocument?.defaultView;
|
|
4748
4764
|
return t ? t.getComputedStyle(e).touchAction : "";
|
|
4749
|
-
},
|
|
4765
|
+
}, Ts = (e) => {
|
|
4750
4766
|
const t = e.trim();
|
|
4751
4767
|
return "" === t || "auto" === t || "manipulation" === t || t.split(/\s+/).some((e) => e.startsWith("pan-"));
|
|
4752
|
-
},
|
|
4753
|
-
const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c =
|
|
4768
|
+
}, ks = "_scrollpane_zdrii_2", zs = "_scrollpane-content_zdrii_20", As = "_scrollpane-content-cell_zdrii_33", Ds = "_vertical-container_zdrii_42", Ps = "_horizontal-container_zdrii_50", Rs = "_corner-container_zdrii_59", $s = "_touch-thumb-overlay_zdrii_68", Bs = w(v((e, t) => {
|
|
4769
|
+
const { children: n, viewport: o, disableMouseWheel: r = !1, onWheelScroll: i, zoomable: s = !1, showHorizontalScrollbar: l = !0, showVerticalScrollbar: a = !0, renderScrollCorner: c = Os, renderScrollbarHorizontal: u = Cs, renderScrollbarVertical: h = Cs, style: d, className: f, disableTouch: p, ...m } = e, g = l && u, _ = a && h, v = Gt(o, (e) => e.getMetrics()), y = x((e, t) => {
|
|
4754
4770
|
if (!o) return;
|
|
4755
4771
|
const n = o.getTarget();
|
|
4756
4772
|
o.setTarget(e.left ?? n.left, e.top ?? n.top, t);
|
|
@@ -4799,12 +4815,12 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4799
4815
|
}), f = Yt((t) => {
|
|
4800
4816
|
const n = t.shiftKey, { deltaX: o, deltaY: r, deltaMode: i } = t, f = c.current && !n && (t.ctrlKey || t.metaKey);
|
|
4801
4817
|
if (!f && e.current) {
|
|
4802
|
-
const n =
|
|
4818
|
+
const n = xs(t, e.current);
|
|
4803
4819
|
if ("native" === n) return;
|
|
4804
4820
|
if ("contained" === n) return void t.preventDefault();
|
|
4805
4821
|
}
|
|
4806
4822
|
if (t.preventDefault(), f) {
|
|
4807
|
-
const e = 1 === i ?
|
|
4823
|
+
const e = 1 === i ? Ss : 2 === i ? 800 : 1, n = d.current;
|
|
4808
4824
|
if (n.deltaY += r * e, n.clientX = t.clientX, n.clientY = t.clientY, h.current) return;
|
|
4809
4825
|
h.current = window.requestAnimationFrame(() => {
|
|
4810
4826
|
h.current = null;
|
|
@@ -4884,10 +4900,10 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4884
4900
|
top: t
|
|
4885
4901
|
});
|
|
4886
4902
|
}, []), B = z(!1), O = x((e) => {
|
|
4887
|
-
1 === e.touches.length && (B.current = ((e, t, n =
|
|
4903
|
+
1 === e.touches.length && (B.current = ((e, t, n = Ls) => {
|
|
4888
4904
|
let o = e instanceof Element ? e : null;
|
|
4889
4905
|
for (; o && o !== t;) {
|
|
4890
|
-
if (!
|
|
4906
|
+
if (!Ts(n(o))) return !0;
|
|
4891
4907
|
o = o.parentElement;
|
|
4892
4908
|
}
|
|
4893
4909
|
return !1;
|
|
@@ -4905,7 +4921,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4905
4921
|
M(() => {
|
|
4906
4922
|
const e = b.current, t = !p && Fe().supportsTouchEvents;
|
|
4907
4923
|
if ((t || s) && e && v) {
|
|
4908
|
-
w.current || (w.current = new
|
|
4924
|
+
w.current || (w.current = new ys(P, {
|
|
4909
4925
|
scrollingX: !0,
|
|
4910
4926
|
scrollingY: !0,
|
|
4911
4927
|
decelerationRate: .95,
|
|
@@ -4938,7 +4954,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4938
4954
|
V(e), j(e);
|
|
4939
4955
|
}, [j]), q = T(() => {
|
|
4940
4956
|
if (!K) return null;
|
|
4941
|
-
const e =
|
|
4957
|
+
const e = es(), t = Math.min(Y, v?.width ?? Y), n = Math.min(X, v?.height ?? X);
|
|
4942
4958
|
return {
|
|
4943
4959
|
portalTarget: K,
|
|
4944
4960
|
width: Y,
|
|
@@ -4947,7 +4963,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4947
4963
|
viewportHeight: n,
|
|
4948
4964
|
reserveVertical: g ? e : 0,
|
|
4949
4965
|
reserveHorizontal: _ ? e : 0,
|
|
4950
|
-
crossInset:
|
|
4966
|
+
crossInset: Qi()
|
|
4951
4967
|
};
|
|
4952
4968
|
}, [
|
|
4953
4969
|
K,
|
|
@@ -4962,7 +4978,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4962
4978
|
const e = R(Ro, {
|
|
4963
4979
|
render: h,
|
|
4964
4980
|
props: {
|
|
4965
|
-
orientation:
|
|
4981
|
+
orientation: zi.Vertical,
|
|
4966
4982
|
offset: v?.top ?? 0,
|
|
4967
4983
|
viewportSize: v?.height ?? 0,
|
|
4968
4984
|
totalSize: v?.totalHeight ?? 0,
|
|
@@ -4972,7 +4988,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4972
4988
|
}
|
|
4973
4989
|
});
|
|
4974
4990
|
return R("div", {
|
|
4975
|
-
className: F("sxl-vertical-container",
|
|
4991
|
+
className: F("sxl-vertical-container", Ds),
|
|
4976
4992
|
children: e
|
|
4977
4993
|
});
|
|
4978
4994
|
}, [
|
|
@@ -4985,7 +5001,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4985
5001
|
const e = R(Ro, {
|
|
4986
5002
|
render: u,
|
|
4987
5003
|
props: {
|
|
4988
|
-
orientation:
|
|
5004
|
+
orientation: zi.Horizontal,
|
|
4989
5005
|
offset: v?.left ?? 0,
|
|
4990
5006
|
viewportSize: v?.width ?? 0,
|
|
4991
5007
|
totalSize: v?.totalWidth ?? 0,
|
|
@@ -4995,7 +5011,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
4995
5011
|
}
|
|
4996
5012
|
});
|
|
4997
5013
|
return R("div", {
|
|
4998
|
-
className: F("sxl-horizontal-container",
|
|
5014
|
+
className: F("sxl-horizontal-container", Ps),
|
|
4999
5015
|
children: e
|
|
5000
5016
|
});
|
|
5001
5017
|
}, [
|
|
@@ -5004,7 +5020,7 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
5004
5020
|
v?.width,
|
|
5005
5021
|
v?.totalWidth
|
|
5006
5022
|
]), J = T(() => _ && g ? R("div", {
|
|
5007
|
-
className: F("sxl-corner-container",
|
|
5023
|
+
className: F("sxl-corner-container", Rs),
|
|
5008
5024
|
children: R(Ro, {
|
|
5009
5025
|
render: c,
|
|
5010
5026
|
props: {}
|
|
@@ -5015,17 +5031,17 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
5015
5031
|
c
|
|
5016
5032
|
]);
|
|
5017
5033
|
return R("div", {
|
|
5018
|
-
className: F(f, "sxl-scrollpane",
|
|
5034
|
+
className: F(f, "sxl-scrollpane", ks),
|
|
5019
5035
|
style: d,
|
|
5020
5036
|
...m,
|
|
5021
5037
|
ref: b,
|
|
5022
|
-
children: R(
|
|
5038
|
+
children: R(ns, {
|
|
5023
5039
|
value: q,
|
|
5024
5040
|
children: $("div", {
|
|
5025
|
-
className: F("sxl-scrollpane-content",
|
|
5041
|
+
className: F("sxl-scrollpane-content", zs),
|
|
5026
5042
|
children: [
|
|
5027
5043
|
R("div", {
|
|
5028
|
-
className: F("sxl-scrollpane-content-cell",
|
|
5044
|
+
className: F("sxl-scrollpane-content-cell", As),
|
|
5029
5045
|
children: n
|
|
5030
5046
|
}),
|
|
5031
5047
|
_ ? U : null,
|
|
@@ -5033,15 +5049,15 @@ var rs = 24, is = w(v((e, t) => {
|
|
|
5033
5049
|
J,
|
|
5034
5050
|
W ? R("div", {
|
|
5035
5051
|
ref: Z,
|
|
5036
|
-
className: F("sxl-touch-thumb-overlay",
|
|
5052
|
+
className: F("sxl-touch-thumb-overlay", $s)
|
|
5037
5053
|
}) : null
|
|
5038
5054
|
]
|
|
5039
5055
|
})
|
|
5040
5056
|
})
|
|
5041
5057
|
});
|
|
5042
5058
|
}));
|
|
5043
|
-
|
|
5044
|
-
var
|
|
5059
|
+
Bs.displayName = "ScrollPane";
|
|
5060
|
+
var Os = (e) => {
|
|
5045
5061
|
const { size: t, style: n, ...o } = e;
|
|
5046
5062
|
return R("div", {
|
|
5047
5063
|
className: "sxl-corner",
|
|
@@ -5052,7 +5068,7 @@ var Rs = (e) => {
|
|
|
5052
5068
|
},
|
|
5053
5069
|
...o
|
|
5054
5070
|
});
|
|
5055
|
-
},
|
|
5071
|
+
}, Hs = class {
|
|
5056
5072
|
constructor(e) {
|
|
5057
5073
|
this._bounds = {
|
|
5058
5074
|
minLeft: 0,
|
|
@@ -5171,7 +5187,7 @@ var Rs = (e) => {
|
|
|
5171
5187
|
}
|
|
5172
5188
|
_applyBounds(e) {
|
|
5173
5189
|
this._bounds = e;
|
|
5174
|
-
const t =
|
|
5190
|
+
const t = Ys(this._target.left, e.minLeft, e.maxLeft), n = Ys(this._target.top, e.minTop, e.maxTop);
|
|
5175
5191
|
t === this._target.left && n === this._target.top || (this._target = {
|
|
5176
5192
|
left: t,
|
|
5177
5193
|
top: n
|
|
@@ -5193,12 +5209,12 @@ var Rs = (e) => {
|
|
|
5193
5209
|
return this._observe(e, "both");
|
|
5194
5210
|
}
|
|
5195
5211
|
_observe(e, t) {
|
|
5196
|
-
if (!e) return
|
|
5212
|
+
if (!e) return js;
|
|
5197
5213
|
const n = (e, n) => {
|
|
5198
5214
|
const o = this._measuredClient;
|
|
5199
5215
|
this._setMeasuredClient("height" === t ? o?.width ?? 0 : e, "width" === t ? o?.height ?? 0 : n);
|
|
5200
5216
|
};
|
|
5201
|
-
if (!
|
|
5217
|
+
if (!Vs()) return n(0, 0), js;
|
|
5202
5218
|
const o = new ResizeObserver((e) => {
|
|
5203
5219
|
const t = e[0]?.contentRect;
|
|
5204
5220
|
t && n(t.width, t.height);
|
|
@@ -5245,17 +5261,17 @@ var Rs = (e) => {
|
|
|
5245
5261
|
}
|
|
5246
5262
|
setTarget(e, t, n) {
|
|
5247
5263
|
const o = this._bounds;
|
|
5248
|
-
return e =
|
|
5264
|
+
return e = Ys(e, o.minLeft, o.maxLeft), t = Ys(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 = {
|
|
5249
5265
|
left: e,
|
|
5250
5266
|
top: t
|
|
5251
5267
|
}, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
|
|
5252
5268
|
}
|
|
5253
5269
|
_startAnimation() {
|
|
5254
|
-
const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width *
|
|
5255
|
-
this._anim = a <=
|
|
5270
|
+
const e = this._current, t = this._target, n = this._effClient(), o = n.width > 0 ? n.width * Fs : 1 / 0, r = n.height > 0 ? n.height * Fs : 1 / 0, i = Ys(e.left, t.left - o, t.left + o), s = Ys(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 * Ns);
|
|
5271
|
+
this._anim = a <= Ws ? null : {
|
|
5256
5272
|
fromLeft: i,
|
|
5257
5273
|
fromTop: s,
|
|
5258
|
-
start:
|
|
5274
|
+
start: Ks(),
|
|
5259
5275
|
duration: a
|
|
5260
5276
|
};
|
|
5261
5277
|
}
|
|
@@ -5294,7 +5310,7 @@ var Rs = (e) => {
|
|
|
5294
5310
|
const e = this._current, t = this._target, n = this._anim;
|
|
5295
5311
|
let o, r, i = !1;
|
|
5296
5312
|
if (n) {
|
|
5297
|
-
const e = (
|
|
5313
|
+
const e = (Ks() - n.start) / n.duration;
|
|
5298
5314
|
if (e >= 1) o = t.left, r = t.top, this._anim = null;
|
|
5299
5315
|
else {
|
|
5300
5316
|
const s = 1 - Math.pow(1 - e, 3);
|
|
@@ -5306,7 +5322,7 @@ var Rs = (e) => {
|
|
|
5306
5322
|
top: r
|
|
5307
5323
|
}, this._viewport = null, this._emit()), i;
|
|
5308
5324
|
}
|
|
5309
|
-
},
|
|
5325
|
+
}, Is = 200, Ns = 2.5, Fs = 1.5, Ws = 17, Ks = () => "undefined" != typeof performance ? performance.now() : Date.now(), Vs = () => "undefined" != typeof ResizeObserver, js = () => {}, Ys = (e, t, n) => Math.min(n, Math.max(t, e)), Xs = class {
|
|
5310
5326
|
constructor(e, t, n, o, r) {
|
|
5311
5327
|
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;
|
|
5312
5328
|
}
|
|
@@ -5419,8 +5435,8 @@ var Rs = (e) => {
|
|
|
5419
5435
|
setContent(e, t, n = 0, o = 0) {
|
|
5420
5436
|
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));
|
|
5421
5437
|
}
|
|
5422
|
-
},
|
|
5423
|
-
const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s =
|
|
5438
|
+
}, Zs = 300, qs = 100, Us = 1e6, Gs = 100, Js = 50, Qs = w(v((e, t) => {
|
|
5439
|
+
const { offset: n = 0, viewportSize: o = 0, totalSize: r = 0, minSize: i = 0, endGap: s = Zs, endScrollIncrement: l = qs, style: a = Oe, onMouseDown: c, onThumbDrag: u, onScrollOffset: h, onScroll: d, scaleLimit: f = Us, scaleFactor: p = Gs, precisionFactor: m = Js, renderScrollbar: g = Cs, ..._ } = e;
|
|
5424
5440
|
d && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
|
|
5425
5441
|
const v = Yt(c ?? (() => {}), [c]), [y, b] = A(!1), w = z(0), S = T(() => {
|
|
5426
5442
|
let e = 0 === f ? r : Math.min(r ?? 0, Math.max(i ?? 0, (n ?? 0) + (o ?? 0)) + (s ?? 0));
|
|
@@ -5477,8 +5493,8 @@ var Rs = (e) => {
|
|
|
5477
5493
|
}
|
|
5478
5494
|
});
|
|
5479
5495
|
}));
|
|
5480
|
-
|
|
5481
|
-
var
|
|
5496
|
+
Qs.displayName = "VirtualScrollbar";
|
|
5497
|
+
var el = "_scrollbar-themed_nj3vu_7", tl = (e) => ({
|
|
5482
5498
|
"--scrollbar-track-color": e.track,
|
|
5483
5499
|
"--scrollbar-thumb-color": e.thumb,
|
|
5484
5500
|
"--scrollbar-button-color": e.button || e.thumb,
|
|
@@ -5490,13 +5506,13 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5490
5506
|
"--scrollbar-border-radius": "9999px",
|
|
5491
5507
|
"--scrollbar-border-width": "2px",
|
|
5492
5508
|
"--scrollbar-min-thumb-size": "24px"
|
|
5493
|
-
}),
|
|
5509
|
+
}), nl = (e) => {
|
|
5494
5510
|
if ("undefined" == typeof window) return !1;
|
|
5495
5511
|
const t = co();
|
|
5496
5512
|
if (t?.overlaysContent) return t.boundingRect.height > 150;
|
|
5497
5513
|
const n = window.visualViewport;
|
|
5498
5514
|
return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
|
|
5499
|
-
},
|
|
5515
|
+
}, ol = (e) => {
|
|
5500
5516
|
const t = Object.freeze({ ...e }), n = !(t.disabled ?? "mouseOnly" === Fe().deviceType);
|
|
5501
5517
|
let o = {
|
|
5502
5518
|
active: !1,
|
|
@@ -5529,8 +5545,8 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5529
5545
|
i.delete(e);
|
|
5530
5546
|
})
|
|
5531
5547
|
};
|
|
5532
|
-
},
|
|
5533
|
-
const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ??
|
|
5548
|
+
}, rl = null, il = g(null), sl = (e) => {
|
|
5549
|
+
const { store: t, disabled: n, disableScrollIntoView: o, keepOnTap: r, children: i } = e, s = T(() => t ?? ol({
|
|
5534
5550
|
disabled: n,
|
|
5535
5551
|
disableScrollIntoView: o,
|
|
5536
5552
|
keepOnTap: r
|
|
@@ -5540,15 +5556,15 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5540
5556
|
o,
|
|
5541
5557
|
r
|
|
5542
5558
|
]);
|
|
5543
|
-
return _(
|
|
5544
|
-
},
|
|
5545
|
-
const e =
|
|
5559
|
+
return _(il.Provider, { value: s }, i);
|
|
5560
|
+
}, ll = () => S(il) ?? (rl || (rl = ol()), rl), al = () => {
|
|
5561
|
+
const e = ll();
|
|
5546
5562
|
return D(e.subscribe, e.getState, e.getState), e;
|
|
5547
|
-
},
|
|
5548
|
-
null === t &&
|
|
5549
|
-
},
|
|
5550
|
-
|
|
5551
|
-
}),
|
|
5563
|
+
}, cl = null, ul = null, hl = /* @__PURE__ */ new Set(), dl = (e, t) => {
|
|
5564
|
+
null === t && ul !== e || cl === t && ul === e || (cl = t, ul = null === t ? null : e, hl.forEach((e) => e()));
|
|
5565
|
+
}, fl = () => cl, pl = (e) => (hl.add(e), () => {
|
|
5566
|
+
hl.delete(e);
|
|
5567
|
+
}), ml = v((e, t) => {
|
|
5552
5568
|
const { floating: n, anchor: o = null, onShownChange: r, onKeyboardClose: i, className: s, style: l, children: a } = e, [c, u] = A(null), h = x((e) => {
|
|
5553
5569
|
u(e), "function" == typeof t ? t(e) : t && (t.current = e);
|
|
5554
5570
|
}, [t]), d = z(n);
|
|
@@ -5571,7 +5587,7 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5571
5587
|
const u = (e) => {
|
|
5572
5588
|
l && e !== a && (a = e, l.overlaysContent = e);
|
|
5573
5589
|
}, h = (t) => {
|
|
5574
|
-
t !== r && (r = t, c.style.opacity = t ? "1" : "0", c.style.pointerEvents = t ? "auto" : "none", t ||
|
|
5590
|
+
t !== r && (r = t, c.style.opacity = t ? "1" : "0", c.style.pointerEvents = t ? "auto" : "none", t || dl(e, null), f.current.onShownChange?.(t));
|
|
5575
5591
|
}, m = () => {
|
|
5576
5592
|
t = 0;
|
|
5577
5593
|
const n = window.visualViewport, r = n?.scale ?? 1, i = n?.offsetTop ?? 0, s = n?.height ?? window.innerHeight, u = d.current && !o;
|
|
@@ -5580,11 +5596,11 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5580
5596
|
const e = l.boundingRect.height;
|
|
5581
5597
|
c.style.bottom = "auto", c.style.top = i + s - (e + c.offsetHeight) / r + "px", c.style.left = `${n.offsetLeft}px`, c.style.width = n.width * r + "px", c.style.transform = `scale(${1 / r})`;
|
|
5582
5598
|
} else c.style.top = "auto", c.style.bottom = "env(keyboard-inset-height, 0px)", c.style.left = "0px", c.style.width = "100%", c.style.transform = "";
|
|
5583
|
-
c.style.transition = "opacity 150ms ease-out", h(!0),
|
|
5599
|
+
c.style.transition = "opacity 150ms ease-out", h(!0), dl(e, c.getBoundingClientRect().top);
|
|
5584
5600
|
return;
|
|
5585
5601
|
}
|
|
5586
5602
|
const f = u ? i + s - c.offsetHeight / r : i;
|
|
5587
|
-
c.style.bottom = "auto", c.style.top = `${f}px`, c.style.left = `${n?.offsetLeft ?? 0}px`, c.style.width = (n?.width ?? window.innerWidth) * r + "px", c.style.transform = 1 !== r ? `scale(${1 / r})` : "", u ? (c.style.transition = "opacity 150ms ease-out", h(!0),
|
|
5603
|
+
c.style.bottom = "auto", c.style.top = `${f}px`, c.style.left = `${n?.offsetLeft ?? 0}px`, c.style.width = (n?.width ?? window.innerWidth) * r + "px", c.style.transform = 1 !== r ? `scale(${1 / r})` : "", u ? (c.style.transition = "opacity 150ms ease-out", h(!0), dl(e, f)) : (c.style.transition = "none", h(!1));
|
|
5588
5604
|
}, g = () => {
|
|
5589
5605
|
t || (t = requestAnimationFrame(m));
|
|
5590
5606
|
}, _ = () => {
|
|
@@ -5594,10 +5610,10 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5594
5610
|
}, v = () => {
|
|
5595
5611
|
_(), g();
|
|
5596
5612
|
}, y = () => {
|
|
5597
|
-
v(), d.current && (
|
|
5613
|
+
v(), d.current && (nl(i) ? s = !0 : s && (s = !1, f.current.onKeyboardClose?.()));
|
|
5598
5614
|
}, b = () => {
|
|
5599
5615
|
s = !1, window.setTimeout(() => {
|
|
5600
|
-
|
|
5616
|
+
nl() || (i = window.innerHeight);
|
|
5601
5617
|
}, 300);
|
|
5602
5618
|
};
|
|
5603
5619
|
p.current = () => {
|
|
@@ -5611,12 +5627,12 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5611
5627
|
c.addEventListener("focusin", x), c.addEventListener("focusout", S), l?.addEventListener("geometrychange", y);
|
|
5612
5628
|
const M = window.visualViewport;
|
|
5613
5629
|
return M?.addEventListener("resize", y), M?.addEventListener("scroll", v), window.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), window.addEventListener("orientationchange", b), d.current && p.current(), m(), () => {
|
|
5614
|
-
cancelAnimationFrame(t), clearTimeout(n), w?.disconnect(), M?.removeEventListener("resize", y), M?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), c.removeEventListener("focusin", x), c.removeEventListener("focusout", S), l?.removeEventListener("geometrychange", y), u(!1), p.current = null,
|
|
5630
|
+
cancelAnimationFrame(t), clearTimeout(n), w?.disconnect(), M?.removeEventListener("resize", y), M?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), c.removeEventListener("focusin", x), c.removeEventListener("focusout", S), l?.removeEventListener("geometrychange", y), u(!1), p.current = null, dl(e, null), r && f.current.onShownChange?.(!1);
|
|
5615
5631
|
};
|
|
5616
5632
|
}, [c]), M(() => {
|
|
5617
5633
|
p.current?.();
|
|
5618
5634
|
}, [n]);
|
|
5619
|
-
const m =
|
|
5635
|
+
const m = Dr(), g = Ar(o), { className: _, attrs: v } = zr(m), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = an(), [, w] = A(0);
|
|
5620
5636
|
return M(() => {
|
|
5621
5637
|
c && !c.isConnected && w((e) => e + 1);
|
|
5622
5638
|
}), "undefined" == typeof document ? null : H(R("div", {
|
|
@@ -5637,12 +5653,12 @@ var Gs = "_scrollbar-themed_nj3vu_7", Js = (e) => ({
|
|
|
5637
5653
|
children: a
|
|
5638
5654
|
}), b());
|
|
5639
5655
|
});
|
|
5640
|
-
|
|
5641
|
-
var
|
|
5656
|
+
ml.displayName = "KeyboardAccessory";
|
|
5657
|
+
var gl = {
|
|
5642
5658
|
inset: 0,
|
|
5643
5659
|
offsetTop: 0
|
|
5644
|
-
},
|
|
5645
|
-
const t = _o(e), n = !!t &&
|
|
5660
|
+
}, _l = (e) => {
|
|
5661
|
+
const t = _o(e), n = !!t && nl(), o = t?.height, r = z(!1);
|
|
5646
5662
|
return M(() => {
|
|
5647
5663
|
if (void 0 === o) return;
|
|
5648
5664
|
const e = r.current;
|
|
@@ -5650,9 +5666,9 @@ var fl = {
|
|
|
5650
5666
|
}, [o, n]), t && n ? {
|
|
5651
5667
|
inset: Math.max(0, Math.round(window.innerHeight - t.height)),
|
|
5652
5668
|
offsetTop: Math.round(t.offsetTop)
|
|
5653
|
-
} :
|
|
5669
|
+
} : gl;
|
|
5654
5670
|
};
|
|
5655
|
-
var
|
|
5671
|
+
var vl = {
|
|
5656
5672
|
axis: q.oneOf([
|
|
5657
5673
|
"both",
|
|
5658
5674
|
"x",
|
|
@@ -5704,12 +5720,12 @@ var ml = {
|
|
|
5704
5720
|
const [t] = e;
|
|
5705
5721
|
return "both" === t.axis || "x" === t.axis ? q.number.isRequired(...e) : q.number(...e);
|
|
5706
5722
|
}
|
|
5707
|
-
},
|
|
5723
|
+
}, yl = class extends d.Component {
|
|
5708
5724
|
constructor(...e) {
|
|
5709
5725
|
super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
|
|
5710
5726
|
}
|
|
5711
5727
|
static {
|
|
5712
|
-
this.propTypes =
|
|
5728
|
+
this.propTypes = vl;
|
|
5713
5729
|
}
|
|
5714
5730
|
static {
|
|
5715
5731
|
this.defaultProps = {
|
|
@@ -5803,7 +5819,7 @@ var ml = {
|
|
|
5803
5819
|
}), w.className && b.props.className && (w.className = `${b.props.className} ${w.className}`), f.cloneElement(b, w);
|
|
5804
5820
|
var b, w;
|
|
5805
5821
|
}
|
|
5806
|
-
},
|
|
5822
|
+
}, bl = class extends d.Component {
|
|
5807
5823
|
constructor(...e) {
|
|
5808
5824
|
super(...e), this.state = {
|
|
5809
5825
|
width: this.props.width,
|
|
@@ -5817,7 +5833,7 @@ var ml = {
|
|
|
5817
5833
|
}
|
|
5818
5834
|
static {
|
|
5819
5835
|
this.propTypes = {
|
|
5820
|
-
...
|
|
5836
|
+
...vl,
|
|
5821
5837
|
children: q.element
|
|
5822
5838
|
};
|
|
5823
5839
|
}
|
|
@@ -5831,7 +5847,7 @@ var ml = {
|
|
|
5831
5847
|
}
|
|
5832
5848
|
render() {
|
|
5833
5849
|
const { handle: e, handleSize: t, onResize: n, onResizeStart: o, onResizeStop: r, draggableOpts: i, minConstraints: s, maxConstraints: l, lockAspectRatio: a, axis: c, width: u, height: h, resizeHandles: d, style: f, transformScale: p, ...m } = this.props;
|
|
5834
|
-
return R(
|
|
5850
|
+
return R(yl, {
|
|
5835
5851
|
axis: c,
|
|
5836
5852
|
draggableOpts: i,
|
|
5837
5853
|
handle: e,
|
|
@@ -5857,4 +5873,4 @@ var ml = {
|
|
|
5857
5873
|
});
|
|
5858
5874
|
}
|
|
5859
5875
|
};
|
|
5860
|
-
export { ne as ACCUMULATE, Bt as AnimationModeProvider,
|
|
5876
|
+
export { ne as ACCUMULATE, Bt as AnimationModeProvider, Xs as AxisViewport, Dt as Command, gt as CommandAnchorProvider, fe as CommandButtonEntryLabel, ce as CommandButtonRegistryContext, he as CommandButtonRegistryProvider, te as CommandButtonType, it as CommandChainContext, vt as CommandFallbackContext, wt as CommandFallbackProvider, St as CommandFocusProvider, lt as CommandOrderContext, re as CommandRegistry, Le as CommandRegistryContext, rt as CommandResolver, pt as CommandResolverContext, ke as CommandScope, ct as CommandScopeContext, dt as CommandScopeProvider, De as ConstantActivation, ae as DefaultCommandButtonRegistry, Ce as DefaultCommandCatalogService, ie as DefaultCommandRegistry, si as DefaultIconService, ci as DynamicIcon, Wi as EDGE_HOLD_INTERVAL_MS, Kr as FloatPanel, Wr as FloatPanelSurface, Hr as FloatPopper, jr as FloatProvider, Ct as FloatStackProvider, Pe as FocusActivation, Po as FocusKeyNavigation, or as INPUT_SELECTION_TINT, nr as INPUT_SELECTION_VAR, hi as InMemoryStore, Qe as KeyBindingDispatcher, Q as KeyCodes, J as KeyModifiers, ml as KeyboardAccessory, jn as LanguageStateKey, Re as LayerActivation, Mi as LocalStorageStore, Ae as ManualActivation, ee as MouseButtonCodes, Ot as NotifierType, Ki as PAGE_INITIAL_DELAY_MS, Vi as PAGE_REPEAT_DELAY_MS, bi as PendingRender, Ti as PendingRenderScope, yi as PersistentStateProvider, pe as QUICK_ACTION_TAG, Fo as ReactErrorBoundary, Vt as ReactNotifierProvider, $e as ReactUtils, Ro as RenderSlot, yl as Resizable, bl as ResizableBox, Bo as RoundedTab, Is as SCROLL_ANIMATION_MS, Uo as SERIES_COUNT, ir as SXL_THEME_LAYERS, sr as SXL_THEME_LAYER_ORDER, Bs as ScrollPane, Ms as ScrollUtils, as as Scrollbar, zi as ScrollbarOrientation, Qr as SplitPane, Zr as SplitPaneResizer, cr as THEME_MODE_ATTR, ur as THEME_SURFACE_ATTR, Zi as TOUCH_THUMB_ASPECT, qi as TOUCH_THUMB_MARGIN, Gi as TOUCH_THUMB_MARGIN_CROSS, Ji as TOUCH_THUMB_MARGIN_END, Ui as TOUCH_THUMB_MARGIN_START, Xi as TOUCH_THUMB_SIZE, gr as ThemeModeFallbackContext, mr as ThemeStyle, wr as TokenThemeContext, Sr as TokenThemeProvider, ns as TouchThumbFrameProvider, ss as TouchThumbHandle, Yo as UncaughtErrorBoundary, Hs as Viewport, sl as VirtualKeyboardProvider, Qs as VirtualScrollbar, ui as WalkingIcon, Xo as Z_INDEX, we as asCommandCatalog, ht as attachWhenReady, ar as buildThemeCSS, Se as chromeToPartial, qn as composeCaretRect, Ht as createBusyHandle, Ee as createCommandCatalogService, ii as createDynamicIconService, It as createNoopBusyHandle, ge as createResolvedCommand, dr as createThemeScopeClass, ji as createTrackDrag, ol as createVirtualKeyboardStore, Vr as defaultRenderFloatPanel, Nr as defaultRenderFloatPopupPanel, Fi as defaultRenderScrollButtonEdge, Ni as defaultRenderScrollButtonEnd, Ii as defaultRenderScrollButtonStart, Os as defaultRenderScrollCorner, Go as defaultTheme, pr as ensureThemeLayerOrder, Wn as exitEditMode, xe as fetchCatalog, zr as floatThemeScopeProps, Qt as getDevicePixelRatio, bn as getInputModality, fl as getKeyboardAccessoryTop, tl as getScrollbarCssVariables, Gn as getTextareaCaretRect, fo as getVisualViewportRect, Je as isCaretKey, nl as isVirtualKeyboardUp, tt as keyEventCanonicals, et as keyStrokeToCanonical, Io as lazyComponent, pn as measureUIText, Me as mergeChrome, qo as offsetZIndex, ye as parseShortcutString, oe as reduceDefinitions, ze as resolveAnchorSource, Mr as resolveToken, Er as resolveTokens, el as scrollbarThemedClassName, be as serializeShortcut, Nn as setEditMode, Kn as subscribeEditModeExit, xn as subscribeInputModality, pl as subscribeKeyboardAccessoryTop, po as subscribeVisualViewport, hr as themeSurfaceProps, er as themeVars, Qo as toVars, es as touchThumbCornerReserve, Qi as touchThumbCrossInset, Do as useAnimatedMeasure, $t as useAnimationMode, qt as useBoundSyncExternalStore, Yt as useCallbackRef, de as useCommandButtonEntry, ue as useCommandButtonRegistry, st as useCommandChain, ft as useCommandElement, _t as useCommandExecute, yt as useCommandFallback, Mt as useCommandFocusRestore, at as useCommandOrder, Te as useCommandRegistry, mt as useCommandResolver, ut as useCommandScope, zt as useCommands, At as useContributeCommands, Jt as useDevicePixelRatio, Vn as useEditMode, Lt as useFloat, kt as useFloatPopupOpen, Yr as useFloatStack, kr as useFloatSurface, tn as useFullscreen, an as useFullscreenPortal, Qn as useGlobalClipboard, so as useId, ao as useImperativeElement, Mn as useInputModality, vo as useIsomorphicLayoutEffect, _l as useKeyboardResize, Yn as useLanguage, Ho as useLazyRetry, Lo as useLocationSearch, bo as useMeasure, gn as useMouseDownAndHoldListener, jt as useNotifier, en as useOnClickOrFocusAway, Gt as useOptionalBoundSyncExternalStore, Zt as useOptionalSyncExternalStore, ki as usePendingRender, _i as usePersistentState, _r as useResolvedThemeMode, mn as useSynchronizedPointerHandler, fn as useTextSelectionDrag, Jn as useTextareaCaretRect, xr as useTokenThemeContext, os as useTouchThumbFrame, eo as useTraceUpdate, Yi as useTrackDrag, Xn as useTranslator, al as useVirtualKeyboard, ll as useVirtualKeyboardStore, _o as useVisualViewportRect, Ci as whenRenderSettled, Zo as zIndexVar };
|