@sheetxl/utils-react 0.8.0-beta.4 → 0.8.0-beta.6
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/{fw5WNnhzqSBOfVql.cjs → YFvC9nIpxy3b5ZTk.cjs} +1 -1
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/wW5CllvkH2ZVrahP.cjs +1 -0
- package/browser/esm/{DL_B0mk_DcK8jJvZ.mjs → BOuCGM_ShKu1isoO.mjs} +1 -1
- package/browser/esm/{DMdwCdRQ-QbsMuLQ.mjs → K8Q6fkeEl0Ll2hAD.mjs} +2 -2
- package/browser/esm/index.mjs +311 -301
- package/browser/esm/{BxaBAJDNKCKgWyAw.mjs → uwfuiZoEBqDf8BOV.mjs} +16 -2
- package/node/esm/{BzVOR2xcr52Z_2yz.mjs → CQHgXLAKZGPGgQvx.mjs} +1 -1
- package/node/esm/{BerYaZU00kR4Yaop.mjs → DdbxsvNY1fzbSaA7.mjs} +15 -1
- package/node/esm/index.mjs +318 -308
- package/package.json +2 -2
- package/types/src/hooks/LanguageState.d.ts +1 -1
- package/types/src/persistence/PersistentStateProvider.d.ts +3 -0
- package/types/src/persistence/Types.d.ts +18 -4
- package/types/src/persistence/_Context.d.ts +3 -2
- package/types/src/persistence/index.d.ts +2 -2
- package/types/src/persistence/{usePersistenceState.d.ts → usePersistentState.d.ts} +10 -8
- package/browser/cjs/DO0nIGKXa_DxYcn6.cjs +0 -1
- package/types/src/persistence/PersistenceStateProvider.d.ts +0 -3
package/browser/esm/index.mjs
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._dragging_at5p4_10,._dragging_at5p4_10 *{user-select:text!important}._float-popper_csci8_1{max-width:100%;max-height:100%;display:flex}._float-popper-grow_csci8_7{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_csci8_7._entered_csci8_15{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_1f1r8_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);border-radius:4px;outline:none;display:flex;overflow:auto;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}._float-tooltip_1l6qz_1{box-sizing:border-box;max-width:300px;color:var(--sxl-color-base-100,#fff);background-color:color-mix(in srgb, var(--sxl-color-base-content,#464646) 92%, transparent);pointer-events:none;word-wrap:break-word;border-radius:4px;padding:2px 6px;font-size:.6875rem;font-weight:500;line-height:1.4}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .has-touch-thumb,& .has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_14aps_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_14aps_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_14aps_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_14aps_47:hover{background:var(--scrollbar-active-color)}&.vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_14aps_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_14aps_35{width:100%}}&.horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_14aps_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_14aps_35{height:100%}}&.dragging{& ._thumb_14aps_47{background:var(--scrollbar-active-color)}}&.has-touch-thumb{visibility:hidden}& ._scrollbar-button_14aps_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.vertical{width:var(--scrollbar-width)}&.horizontal{height:var(--scrollbar-height)}}}._touch-thumb_14aps_131{cursor:grab;pointer-events:all;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
3
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.6
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
7
|
*/
|
|
8
|
-
import { i as e, n as t, r as n, t as r } from "./
|
|
8
|
+
import { i as e, n as t, r as n, t as r } from "./K8Q6fkeEl0Ll2hAD.mjs";
|
|
9
9
|
import { CommonUtils as i, DefaultLanguagePackService as a, DefaultNotifier as o, ExpectedError as s, InternalClipboard as c, Notifier as l, TimerUtils as u, fetchLocaleResourceAll as d, formatMessage as f, loadPackageLocales as p, mergeMessageFiles as m, onResourceRootsChange as h, resolveLocaleChain as g } from "@sheetxl/utils";
|
|
10
10
|
import * as _ from "react";
|
|
11
11
|
import v, { Component as y, cloneElement as b, createContext as x, createElement as S, forwardRef as C, isValidElement as w, lazy as T, memo as E, useCallback as D, useContext as O, useEffect as k, useId as A, useImperativeHandle as j, useLayoutEffect as M, useMemo as N, useReducer as P, useRef as F, useState as I, useSyncExternalStore as L, version as R } from "react";
|
|
12
12
|
import { Fragment as z, jsx as B, jsxs as ee } from "react/jsx-runtime";
|
|
13
13
|
import { createRoot as te } from "react-dom/client";
|
|
14
14
|
import * as ne from "react-dom";
|
|
15
|
-
import V, { createPortal as H, unstable_batchedUpdates as
|
|
16
|
-
var
|
|
15
|
+
import V, { createPortal as H, unstable_batchedUpdates as U } from "react-dom";
|
|
16
|
+
var W = Object.create, G = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ie = Object.getOwnPropertyNames, K = Object.getPrototypeOf, ae = Object.prototype.hasOwnProperty, oe = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), se = (e, t) => {
|
|
17
17
|
let n = {};
|
|
18
|
-
for (var r in e)
|
|
18
|
+
for (var r in e) G(n, r, {
|
|
19
19
|
get: e[r],
|
|
20
20
|
enumerable: !0
|
|
21
21
|
});
|
|
22
|
-
return t ||
|
|
23
|
-
}, ce = (e, t, n) => (n = e == null ? {} :
|
|
24
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i, a = ie(t), o = 0, s = a.length; o < s; o++) i = a[o], ae.call(e, i) || i === n ||
|
|
22
|
+
return t || G(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
23
|
+
}, ce = (e, t, n) => (n = e == null ? {} : W(K(e)), ((e, t, n, r) => {
|
|
24
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i, a = ie(t), o = 0, s = a.length; o < s; o++) i = a[o], ae.call(e, i) || i === n || G(e, i, {
|
|
25
25
|
get: ((e) => t[e]).bind(null, i),
|
|
26
|
-
enumerable: !(r =
|
|
26
|
+
enumerable: !(r = re(t, i)) || r.enumerable
|
|
27
27
|
});
|
|
28
28
|
return e;
|
|
29
|
-
})(!t && e && e.__esModule ? n :
|
|
29
|
+
})(!t && e && e.__esModule ? n : G(n, "default", {
|
|
30
30
|
value: e,
|
|
31
31
|
enumerable: !0
|
|
32
32
|
}), e)), le = {
|
|
@@ -2074,7 +2074,7 @@ var tr = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
|
|
|
2074
2074
|
}, fr = null;
|
|
2075
2075
|
fr ||= (e, t, n = {}) => {
|
|
2076
2076
|
let r, i, a = !1, o = !1, s = [], { unmountIfNoConsumers: c = !1 } = n, l = (e) => {
|
|
2077
|
-
i = e,
|
|
2077
|
+
i = e, U(() => s.forEach((t) => t(e)));
|
|
2078
2078
|
}, u = () => (o ||= (i = typeof e == "function" ? e() : e, !0), i);
|
|
2079
2079
|
return () => {
|
|
2080
2080
|
let [n, o] = I(u);
|
|
@@ -3366,17 +3366,17 @@ var La = (e, t) => {
|
|
|
3366
3366
|
}, za = "_float-popper_csci8_1", Ba = "_float-popper-grow_csci8_7", Va = "_entered_csci8_15", Ha = [0, 2], Ua = E(C((e, t) => {
|
|
3367
3367
|
let { open: n, children: r, label: a, offsets: o = Ha, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, followAnchor: d = !1, style: f, className: p, onMount: m, onOpening: h, onOpen: g, onClosing: v, onClose: y, ...b } = e;
|
|
3368
3368
|
if (Array.isArray(r)) throw Error("children can not be an array");
|
|
3369
|
-
let x = J(m ?? (() => {}), [m]), S = J(h ?? (() => {}), [h]), C = J(g ?? (() => {}), [g]), w = J(v ?? (() => {}), [v]), T = J(y ?? (() => {}), [y]), [E, O] = I(!1), [A, M] = I(!1), [P, L] = I(!1), [R, z] = I(), [ee, te] = I(), V = F(null),
|
|
3370
|
-
let e =
|
|
3371
|
-
return
|
|
3372
|
-
classes:
|
|
3369
|
+
let x = J(m ?? (() => {}), [m]), S = J(h ?? (() => {}), [h]), C = J(g ?? (() => {}), [g]), w = J(v ?? (() => {}), [v]), T = J(y ?? (() => {}), [y]), [E, O] = I(!1), [A, M] = I(!1), [P, L] = I(!1), [R, z] = I(), [ee, te] = I(), V = F(null), U = F(null), { getPortalContainer: W } = Jn(), G = gi(), re = li(), ie = N(() => {
|
|
3370
|
+
let e = G?.themeScope;
|
|
3371
|
+
return re?.scopeClass || re?.mode ? {
|
|
3372
|
+
classes: re?.scopeClass ? [...e?.classes ?? [], re.scopeClass] : e?.classes,
|
|
3373
3373
|
surface: e?.surface,
|
|
3374
|
-
mode: e?.mode ??
|
|
3374
|
+
mode: e?.mode ?? re?.mode
|
|
3375
3375
|
} : e;
|
|
3376
3376
|
}, [
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3377
|
+
G?.themeScope,
|
|
3378
|
+
re?.scopeClass,
|
|
3379
|
+
re?.mode
|
|
3380
3380
|
]), K = N(() => {
|
|
3381
3381
|
let e = [La({
|
|
3382
3382
|
mainAxis: o[1] ?? 0,
|
|
@@ -3404,7 +3404,7 @@ var La = (e, t) => {
|
|
|
3404
3404
|
getBoundingClientRect: () => {
|
|
3405
3405
|
if (c) return new DOMRect(c.left || 0, c.top || 0, 0, 0);
|
|
3406
3406
|
let t = e()?.getBoundingClientRect?.();
|
|
3407
|
-
return t && (t.width || t.height || t.x || t.y) ? (
|
|
3407
|
+
return t && (t.width || t.height || t.x || t.y) ? (U.current = t, t) : U.current ?? new DOMRect(0, 0, 0, 0);
|
|
3408
3408
|
},
|
|
3409
3409
|
get contextElement() {
|
|
3410
3410
|
if (c) return;
|
|
@@ -3581,7 +3581,7 @@ var La = (e, t) => {
|
|
|
3581
3581
|
onTransitionEnd: fe,
|
|
3582
3582
|
children: r || i.EmptyArray
|
|
3583
3583
|
})
|
|
3584
|
-
}),
|
|
3584
|
+
}), W());
|
|
3585
3585
|
}));
|
|
3586
3586
|
Ua.displayName = "FloatPopper";
|
|
3587
3587
|
var Wa = "_float-popup_juap7_1", Ga = (e) => {
|
|
@@ -3735,10 +3735,10 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3735
3735
|
w.floatByParents.set(C.key, K.key), v(!0);
|
|
3736
3736
|
});
|
|
3737
3737
|
}, [ne, V] = P((e) => e + 1, 0), H = D((e) => h === null ? null : h({
|
|
3738
|
-
closeFloat:
|
|
3738
|
+
closeFloat: G,
|
|
3739
3739
|
closeFloatAll: ie,
|
|
3740
3740
|
...e
|
|
3741
|
-
}), [h]),
|
|
3741
|
+
}), [h]), U = h === null, W = J((e = 120) => w.debounce(e, te, /* @__PURE__ */ new Set([K]), !1)(), [te]), G = J((e = 60) => w.debounce(e, R, w.descendants(K), !0)(), [R]), re = J((e = 360) => w.debounce(e, j, w.descendants(w.getChildRef(K)), !0)(), [j]), ie = J(z, [z]), K = N(() => ({
|
|
3742
3742
|
key: T,
|
|
3743
3743
|
isRoot: !1,
|
|
3744
3744
|
label: i,
|
|
@@ -3749,9 +3749,9 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3749
3749
|
onChildHidden: () => {
|
|
3750
3750
|
S(!1);
|
|
3751
3751
|
},
|
|
3752
|
-
open:
|
|
3753
|
-
close:
|
|
3754
|
-
closeChild:
|
|
3752
|
+
open: W,
|
|
3753
|
+
close: G,
|
|
3754
|
+
closeChild: re,
|
|
3755
3755
|
closeAll: ie,
|
|
3756
3756
|
getRoot: () => w,
|
|
3757
3757
|
floatElement: () => E.current,
|
|
@@ -3760,12 +3760,12 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3760
3760
|
k(() => {
|
|
3761
3761
|
w.statesByMovables.set(T, K);
|
|
3762
3762
|
}, [K]), k(() => () => {
|
|
3763
|
-
w.statesByMovables.delete(T),
|
|
3763
|
+
w.statesByMovables.delete(T), G(0);
|
|
3764
3764
|
}, []), k(() => {
|
|
3765
|
-
_ && !
|
|
3766
|
-
}, [_,
|
|
3765
|
+
_ && !U && (b(!0), C.onChildVisible());
|
|
3766
|
+
}, [_, U]);
|
|
3767
3767
|
let ae = D((e) => {
|
|
3768
|
-
e.which === ue.Escape && (e.preventDefault(), e.stopPropagation(),
|
|
3768
|
+
e.which === ue.Escape && (e.preventDefault(), e.stopPropagation(), G(0));
|
|
3769
3769
|
}, []), oe = D(() => {
|
|
3770
3770
|
let e = ee.current, t = E.current;
|
|
3771
3771
|
e && t && (requestAnimationFrame(() => {
|
|
@@ -3784,7 +3784,7 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3784
3784
|
});
|
|
3785
3785
|
}, [n]), [ce, le] = I();
|
|
3786
3786
|
k(() => {
|
|
3787
|
-
|
|
3787
|
+
U && (_ ? d?.() : !1 === _ && f?.()), le(y ? B($t, {
|
|
3788
3788
|
value: K,
|
|
3789
3789
|
children: m({
|
|
3790
3790
|
...p?.propsFloatPanel,
|
|
@@ -3814,7 +3814,7 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3814
3814
|
y,
|
|
3815
3815
|
_,
|
|
3816
3816
|
i,
|
|
3817
|
-
|
|
3817
|
+
U,
|
|
3818
3818
|
c,
|
|
3819
3819
|
H,
|
|
3820
3820
|
m,
|
|
@@ -3929,7 +3929,7 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3929
3929
|
ne,
|
|
3930
3930
|
te,
|
|
3931
3931
|
i
|
|
3932
|
-
]), [H,
|
|
3932
|
+
]), [H, U] = I(!1), W = J(g ?? (() => {}), [g]), G = J(_ ?? (() => {}), [_]), re = J(v ?? (() => {}), [v]), ie = F(null), K = F(null), ae = F(null), { style: oe, className: se, ...ce } = b, le = {
|
|
3933
3933
|
minWidth: 0,
|
|
3934
3934
|
minHeight: 0,
|
|
3935
3935
|
maxWidth: "100%",
|
|
@@ -3955,7 +3955,7 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3955
3955
|
n = i === "row" ? (e.clientX ?? e.touches?.[0]?.clientX) - t.x : (e.clientY ?? e.touches?.[0]?.clientY) - t.y, n = Math.max(0, Math.min(ne, n)), E.fixedPaneOffset === 1 && (n = ne - n), o && O?.pixels === n || A({
|
|
3956
3956
|
pixels: n,
|
|
3957
3957
|
percent: null
|
|
3958
|
-
}),
|
|
3958
|
+
}), G?.(n), e.stopPropagation(), e.preventDefault();
|
|
3959
3959
|
}, [
|
|
3960
3960
|
E,
|
|
3961
3961
|
i,
|
|
@@ -3964,8 +3964,8 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3964
3964
|
O,
|
|
3965
3965
|
ne
|
|
3966
3966
|
]), Se = J((e) => {
|
|
3967
|
-
if (document.removeEventListener("pointermove", xe), document.removeEventListener("touchmove", xe), document.removeEventListener("pointerup", Se), H && (
|
|
3968
|
-
if (
|
|
3967
|
+
if (document.removeEventListener("pointermove", xe), document.removeEventListener("touchmove", xe), document.removeEventListener("pointerup", Se), H && (U(!1), O)) {
|
|
3968
|
+
if (re(O.pixels ?? 0), !ao(o, a === null) || O.pixels !== o) {
|
|
3969
3969
|
let e = O.pixels ?? 0, t = {
|
|
3970
3970
|
pixels: e,
|
|
3971
3971
|
percent: O.percent ?? e / ne * 100
|
|
@@ -3981,7 +3981,7 @@ var Za = (e) => B(Ja, { ...e }), Qa = (e) => {
|
|
|
3981
3981
|
a,
|
|
3982
3982
|
ne
|
|
3983
3983
|
]), Ce = J((e) => {
|
|
3984
|
-
ve?.(e), e.defaultPrevented || h || H || (
|
|
3984
|
+
ve?.(e), e.defaultPrevented || h || H || (U(!0), W(), document.addEventListener("pointermove", xe, { passive: !1 }), document.addEventListener("touchmove", xe, { passive: !1 }), document.addEventListener("pointerup", Se, { passive: !1 }));
|
|
3985
3985
|
}, [ve]), we = Pr(t, () => ({
|
|
3986
3986
|
setPosition: be,
|
|
3987
3987
|
isSplitPane: () => !0
|
|
@@ -4081,147 +4081,157 @@ var so = class {
|
|
|
4081
4081
|
removeItem(e) {
|
|
4082
4082
|
this.store.delete(e);
|
|
4083
4083
|
}
|
|
4084
|
-
}, co = x(null), lo = {
|
|
4084
|
+
}, co = x(null), lo = Object.freeze({}), uo = {
|
|
4085
4085
|
parse: (e) => e ? JSON.parse(e) : null,
|
|
4086
4086
|
stringify: JSON.stringify
|
|
4087
|
-
},
|
|
4087
|
+
}, fo = /* @__PURE__ */ new Map(), po = {
|
|
4088
4088
|
store: new so(),
|
|
4089
4089
|
namespace: "",
|
|
4090
|
-
serializer:
|
|
4090
|
+
serializer: uo,
|
|
4091
4091
|
onReady: (e) => {
|
|
4092
4092
|
e();
|
|
4093
4093
|
},
|
|
4094
4094
|
debounceMs: 0,
|
|
4095
|
+
defaultValues: lo,
|
|
4095
4096
|
notify: (e, t) => {
|
|
4096
|
-
let n =
|
|
4097
|
+
let n = fo.get(e);
|
|
4097
4098
|
n && n.forEach((e) => e(t));
|
|
4098
4099
|
},
|
|
4099
4100
|
subscribeKey: (e, t) => {
|
|
4100
|
-
let n =
|
|
4101
|
-
return n.add(t),
|
|
4102
|
-
let n =
|
|
4103
|
-
n && (n.delete(t), n.size === 0 &&
|
|
4101
|
+
let n = fo.get(e) ?? /* @__PURE__ */ new Set();
|
|
4102
|
+
return n.add(t), fo.set(e, n), () => {
|
|
4103
|
+
let n = fo.get(e);
|
|
4104
|
+
n && (n.delete(t), n.size === 0 && fo.delete(e));
|
|
4104
4105
|
};
|
|
4105
4106
|
}
|
|
4106
4107
|
};
|
|
4107
|
-
function
|
|
4108
|
-
let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c } = O(co) ||
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4108
|
+
function mo(e, t, n = ho) {
|
|
4109
|
+
let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = O(co) || po, u = n.serializer ?? a ?? uo, d = F(null), f = N(() => e == null ? null : `${i}:${e}`, [i, e]), p = f ? `${f}::v` : null, m = () => {
|
|
4110
|
+
if (e != null && Object.prototype.hasOwnProperty.call(l, e)) return l[e];
|
|
4111
|
+
let n = t;
|
|
4112
|
+
return typeof n == "function" ? n() : n;
|
|
4113
|
+
}, [h, g] = I(() => {
|
|
4114
|
+
if (f == null) return m();
|
|
4115
|
+
let e, t = r.getItem(f);
|
|
4116
|
+
if (t == null) return m();
|
|
4115
4117
|
try {
|
|
4116
|
-
e =
|
|
4118
|
+
e = u.parse(t);
|
|
4117
4119
|
} catch {
|
|
4118
|
-
e =
|
|
4120
|
+
e = m();
|
|
4119
4121
|
}
|
|
4120
4122
|
return e;
|
|
4121
|
-
}),
|
|
4122
|
-
|
|
4123
|
-
let
|
|
4123
|
+
}), _ = F(h);
|
|
4124
|
+
_.current = h;
|
|
4125
|
+
let v = F(!1);
|
|
4124
4126
|
k(() => {
|
|
4125
|
-
|
|
4126
|
-
}, [
|
|
4127
|
-
if (
|
|
4127
|
+
f ?? g(m());
|
|
4128
|
+
}, [f]), k(() => {
|
|
4129
|
+
if (f == null) return;
|
|
4128
4130
|
let e = !0;
|
|
4129
|
-
return
|
|
4130
|
-
let [
|
|
4131
|
-
if (!e ||
|
|
4132
|
-
let
|
|
4131
|
+
return v.current = !1, (async () => {
|
|
4132
|
+
let [t, i] = await Promise.all([r.getItem(f), p ? r.getItem(p) : Promise.resolve(null)]);
|
|
4133
|
+
if (!e || v.current) return;
|
|
4134
|
+
let a;
|
|
4133
4135
|
try {
|
|
4134
|
-
|
|
4136
|
+
a = t == null ? void 0 : u.parse(t);
|
|
4135
4137
|
} catch {}
|
|
4136
|
-
let
|
|
4137
|
-
|
|
4138
|
+
let o = i == null ? void 0 : Number.parseInt(i, 10);
|
|
4139
|
+
a === void 0 ? a = m() : n.version != null && o !== void 0 && o !== n.version && n.migrate && (a = n.migrate(a, o), r.setItem(f, u.stringify(a)), p && r.setItem(p, String(n.version))), e && a !== void 0 && g(a);
|
|
4138
4140
|
})(), () => {
|
|
4139
4141
|
e = !1;
|
|
4140
4142
|
};
|
|
4141
4143
|
}, [
|
|
4142
4144
|
r,
|
|
4143
|
-
d,
|
|
4144
4145
|
f,
|
|
4146
|
+
p,
|
|
4145
4147
|
n.version,
|
|
4146
4148
|
n.migrate,
|
|
4147
|
-
|
|
4149
|
+
u,
|
|
4148
4150
|
l
|
|
4149
4151
|
]), k(() => {
|
|
4150
|
-
if (
|
|
4151
|
-
let t = e === void 0 ? r.getItem(
|
|
4152
|
+
if (f != null && e != null) return s(e, (e) => {
|
|
4153
|
+
let t = e === void 0 ? r.getItem(f) : e;
|
|
4152
4154
|
if (t != null) try {
|
|
4153
|
-
|
|
4155
|
+
g(u.parse(t));
|
|
4154
4156
|
} catch {}
|
|
4155
4157
|
});
|
|
4156
4158
|
}, [
|
|
4157
4159
|
r,
|
|
4158
|
-
|
|
4160
|
+
f,
|
|
4159
4161
|
s,
|
|
4160
4162
|
e,
|
|
4161
|
-
|
|
4163
|
+
u
|
|
4162
4164
|
]);
|
|
4163
|
-
let
|
|
4164
|
-
|
|
4165
|
+
let y = (e) => {
|
|
4166
|
+
f != null && (r.setItem(f, u.stringify(e)), n.version != null && p && r.setItem(p, String(n.version)));
|
|
4165
4167
|
};
|
|
4166
4168
|
return k(() => () => {
|
|
4167
|
-
|
|
4169
|
+
d.current && clearTimeout(d.current);
|
|
4168
4170
|
}, []), [
|
|
4169
|
-
|
|
4171
|
+
h,
|
|
4170
4172
|
(t) => {
|
|
4171
|
-
let n = typeof t == "function" ? t(
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
}, o) :
|
|
4173
|
+
let n = typeof t == "function" ? t(_.current) : t;
|
|
4174
|
+
v.current = !0, _.current = n, g(n), d.current && clearTimeout(d.current), o > 0 ? d.current = setTimeout(() => {
|
|
4175
|
+
y(n);
|
|
4176
|
+
}, o) : y(n), e != null && c(e, u.stringify(n));
|
|
4175
4177
|
},
|
|
4176
4178
|
() => {
|
|
4177
|
-
|
|
4178
|
-
let e = t === void 0 ? void 0 :
|
|
4179
|
-
|
|
4179
|
+
v.current = !0, d.current && clearTimeout(d.current), f != null && (r.removeItem(f), p != null && r.removeItem(p));
|
|
4180
|
+
let e = t === void 0 ? void 0 : m();
|
|
4181
|
+
g(e);
|
|
4180
4182
|
}
|
|
4181
4183
|
];
|
|
4182
4184
|
}
|
|
4183
|
-
var
|
|
4184
|
-
function
|
|
4185
|
-
let { store: t, namespace: n = "", serializer: r =
|
|
4186
|
-
|
|
4185
|
+
var ho = {};
|
|
4186
|
+
function go(e) {
|
|
4187
|
+
let { store: t, namespace: n = "", serializer: r = _o, debounceMs: i = 150, defaultValues: a = lo, children: o } = e, s = F(a);
|
|
4188
|
+
vo(s.current, a) || (s.current = a);
|
|
4189
|
+
let c = s.current, l = N(() => typeof window > "u" ? new so() : t ?? new so(), [t]), u = F(/* @__PURE__ */ new Map()), d = N(() => ({
|
|
4190
|
+
store: l,
|
|
4187
4191
|
namespace: n,
|
|
4188
4192
|
serializer: r,
|
|
4189
4193
|
debounceMs: i,
|
|
4194
|
+
defaultValues: c,
|
|
4190
4195
|
onReady: (e) => {
|
|
4191
|
-
|
|
4196
|
+
l.onReady ? l.onReady?.(e) : e();
|
|
4192
4197
|
},
|
|
4193
4198
|
notify(e, t) {
|
|
4194
|
-
let n =
|
|
4199
|
+
let n = u.current.get(e);
|
|
4195
4200
|
n && n.forEach((e) => e(t));
|
|
4196
4201
|
},
|
|
4197
4202
|
subscribeKey(e, t) {
|
|
4198
|
-
let n =
|
|
4203
|
+
let n = u.current, r = n.get(e) ?? /* @__PURE__ */ new Set();
|
|
4199
4204
|
return r.add(t), n.set(e, r), () => {
|
|
4200
4205
|
let r = n.get(e);
|
|
4201
4206
|
r && (r.delete(t), r.size === 0 && n.delete(e));
|
|
4202
4207
|
};
|
|
4203
4208
|
}
|
|
4204
4209
|
}), [
|
|
4205
|
-
|
|
4210
|
+
l,
|
|
4206
4211
|
n,
|
|
4207
4212
|
r,
|
|
4208
|
-
i
|
|
4213
|
+
i,
|
|
4214
|
+
c
|
|
4209
4215
|
]);
|
|
4210
4216
|
return k(() => {
|
|
4211
|
-
if (
|
|
4212
|
-
if (!e.startsWith(
|
|
4213
|
-
let t = e.slice(
|
|
4214
|
-
|
|
4217
|
+
if (d.store.subscribe) return d.store.subscribe((e) => {
|
|
4218
|
+
if (!e.startsWith(d.namespace + ":")) return;
|
|
4219
|
+
let t = e.slice(d.namespace.length + 1);
|
|
4220
|
+
d.notify(t);
|
|
4215
4221
|
});
|
|
4216
|
-
}, [
|
|
4217
|
-
value:
|
|
4218
|
-
children:
|
|
4222
|
+
}, [d]), B(co.Provider, {
|
|
4223
|
+
value: d,
|
|
4224
|
+
children: o
|
|
4219
4225
|
});
|
|
4220
4226
|
}
|
|
4221
|
-
var
|
|
4227
|
+
var _o = {
|
|
4222
4228
|
parse: (e) => e == null ? null : JSON.parse(e),
|
|
4223
4229
|
stringify: JSON.stringify
|
|
4224
|
-
},
|
|
4230
|
+
}, vo = (e, t) => {
|
|
4231
|
+
if (e === t) return !0;
|
|
4232
|
+
let n = Object.keys(e);
|
|
4233
|
+
return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
|
|
4234
|
+
}, yo = class {
|
|
4225
4235
|
constructor(e = window.localStorage) {
|
|
4226
4236
|
this.storage = e;
|
|
4227
4237
|
}
|
|
@@ -4251,11 +4261,11 @@ var go = {
|
|
|
4251
4261
|
}, Z = {
|
|
4252
4262
|
Horizontal: "horizontal",
|
|
4253
4263
|
Vertical: "vertical"
|
|
4254
|
-
},
|
|
4255
|
-
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ?
|
|
4264
|
+
}, bo = "_scrollbar_14aps_24", xo = "_track_14aps_35", So = "_thumb_14aps_47", Co = "_scrollbar-button_14aps_96", wo = "_touch-thumb_14aps_131", To = "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", Eo = "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", Do = { transform: "rotate(180deg)" }, Oo = (e) => {
|
|
4265
|
+
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? To : Eo;
|
|
4256
4266
|
return B("button", {
|
|
4257
4267
|
style: t,
|
|
4258
|
-
className: Y(
|
|
4268
|
+
className: Y(Co, n, "scroll-button"),
|
|
4259
4269
|
disabled: i,
|
|
4260
4270
|
...a,
|
|
4261
4271
|
children: B("svg", {
|
|
@@ -4265,22 +4275,22 @@ var go = {
|
|
|
4265
4275
|
children: B("path", { d: o })
|
|
4266
4276
|
})
|
|
4267
4277
|
});
|
|
4268
|
-
},
|
|
4269
|
-
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ?
|
|
4278
|
+
}, ko = (e) => {
|
|
4279
|
+
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? To : Eo;
|
|
4270
4280
|
return B("button", {
|
|
4271
4281
|
style: t,
|
|
4272
|
-
className: Y(
|
|
4282
|
+
className: Y(Co, n, "scroll-button"),
|
|
4273
4283
|
disabled: i,
|
|
4274
4284
|
...a,
|
|
4275
4285
|
children: B("svg", {
|
|
4276
4286
|
width: "9",
|
|
4277
4287
|
height: "9",
|
|
4278
4288
|
viewBox: "0 0 9 9",
|
|
4279
|
-
style:
|
|
4289
|
+
style: Do,
|
|
4280
4290
|
children: B("path", { d: o })
|
|
4281
4291
|
})
|
|
4282
4292
|
});
|
|
4283
|
-
},
|
|
4293
|
+
}, Ao = (e) => {
|
|
4284
4294
|
let { style: n, orientation: r = Z.Vertical, isBefore: i, ...a } = e, o = r === Z.Vertical;
|
|
4285
4295
|
return B("div", {
|
|
4286
4296
|
style: {
|
|
@@ -4305,7 +4315,7 @@ var go = {
|
|
|
4305
4315
|
iconKey: "MoreHorizontal"
|
|
4306
4316
|
})
|
|
4307
4317
|
});
|
|
4308
|
-
},
|
|
4318
|
+
}, jo = 60, Mo = 260, No = 120, Po = (e) => {
|
|
4309
4319
|
let { vertical: t, getTrackRect: n, getThumb: r, onStart: i, onDragModeChange: a, edgeHoldIntervalMs: o = 60, pageInitialDelayMs: s = 260, pageRepeatDelayMs: c = 120 } = e, l = null, u = null, d = 0, f = 0, p = 1, m = 0, h = 0, g = 0, _ = null, v = () => {
|
|
4310
4320
|
_ && clearTimeout(_), _ = null;
|
|
4311
4321
|
}, y = (e) => {
|
|
@@ -4353,10 +4363,10 @@ var go = {
|
|
|
4353
4363
|
},
|
|
4354
4364
|
dispose: () => v()
|
|
4355
4365
|
};
|
|
4356
|
-
},
|
|
4366
|
+
}, Fo = (e) => {
|
|
4357
4367
|
let [t, n] = I(null), r = F(e);
|
|
4358
4368
|
r.current = e;
|
|
4359
|
-
let i = N(() =>
|
|
4369
|
+
let i = N(() => Po({
|
|
4360
4370
|
vertical: r.current.vertical,
|
|
4361
4371
|
getTrackRect: () => r.current.getTrackRect(),
|
|
4362
4372
|
getThumb: () => r.current.getThumb(),
|
|
@@ -4372,16 +4382,16 @@ var go = {
|
|
|
4372
4382
|
onPointerUp: i.onPointerUp,
|
|
4373
4383
|
dragMode: t
|
|
4374
4384
|
};
|
|
4375
|
-
},
|
|
4385
|
+
}, Io = 22, Lo = 1.8, Ro = 8, zo = 4, Bo = 8, Vo = -2, Ho = (e = 22) => e / 2 + 8, Uo = (e = 22) => e + 16, Wo = x(null), Go = (e) => {
|
|
4376
4386
|
let { value: t, children: n } = e;
|
|
4377
|
-
return B(
|
|
4387
|
+
return B(Wo.Provider, {
|
|
4378
4388
|
value: t,
|
|
4379
4389
|
children: n
|
|
4380
4390
|
});
|
|
4381
|
-
},
|
|
4391
|
+
}, Ko = () => O(Wo), qo = mt().supportsTouchEvents, Jo = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Yo = E(C((e, t) => {
|
|
4382
4392
|
let { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: r = "var(--sxl-color-base-100, white)", fillColor: i = "var(--sxl-color-neutral, grey)", borderWidth: a = 3, size: o = 22, style: s, className: c, orientation: l = Z.Vertical, fraction: u = 0, onScrollToFraction: d, onEdgeHold: f, onDraggingChange: p, currentTouchAnchor: m, key: h, ...g } = e;
|
|
4383
|
-
if (!
|
|
4384
|
-
let _ = l === Z.Vertical, v =
|
|
4393
|
+
if (!qo) return null;
|
|
4394
|
+
let _ = l === Z.Vertical, v = Ko(), y = J(d ?? (() => {}), [d]), b = J(f ?? (() => {}), [f]), x = J(p ?? (() => {}), [p]), S = F(null), C = N(() => xn([S, t]), [t]), w = J((e) => ({
|
|
4385
4395
|
dragging: e,
|
|
4386
4396
|
element: S.current,
|
|
4387
4397
|
source: "touch"
|
|
@@ -4399,7 +4409,7 @@ var go = {
|
|
|
4399
4409
|
count: 0,
|
|
4400
4410
|
timer: null
|
|
4401
4411
|
});
|
|
4402
|
-
D.current.isVertical = _, D.current.fraction =
|
|
4412
|
+
D.current.isVertical = _, D.current.fraction = Jo(u), D.current.hasEdgeHold = !!f;
|
|
4403
4413
|
let O = J(() => {
|
|
4404
4414
|
let e = D.current;
|
|
4405
4415
|
e.timer && clearTimeout(e.timer), e.timer = null;
|
|
@@ -4427,7 +4437,7 @@ var go = {
|
|
|
4427
4437
|
},
|
|
4428
4438
|
onPointerMoveOrWait: (e) => {
|
|
4429
4439
|
let t = D.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
|
|
4430
|
-
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(
|
|
4440
|
+
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Jo(t.rawFraction)), j();
|
|
4431
4441
|
},
|
|
4432
4442
|
onPointerUp: (e) => {
|
|
4433
4443
|
let t = D.current;
|
|
@@ -4438,15 +4448,15 @@ var go = {
|
|
|
4438
4448
|
let e = D.current;
|
|
4439
4449
|
e.timer && clearTimeout(e.timer), e.dragging && (e.dragging = !1, x?.(w(!1)));
|
|
4440
4450
|
}, []), !v?.portalTarget) return null;
|
|
4441
|
-
let P = 1.8 * o, L = _ ? o : P, R = _ ? P : o, z = _ ? v.viewportHeight : v.viewportWidth, ee = _ ? v.height : v.width, te = Math.max(0, ee - z), ne = _ ? v.reserveVertical : v.reserveHorizontal, V = ne > 0 ? -2 : 4,
|
|
4442
|
-
D.current.travel =
|
|
4443
|
-
let
|
|
4444
|
-
return _ ? (
|
|
4445
|
-
className: Y("touch-thumb",
|
|
4451
|
+
let P = 1.8 * o, L = _ ? o : P, R = _ ? P : o, z = _ ? v.viewportHeight : v.viewportWidth, ee = _ ? v.height : v.width, te = Math.max(0, ee - z), ne = _ ? v.reserveVertical : v.reserveHorizontal, V = ne > 0 ? -2 : 4, U = Math.max(0, z - ne - P - 4 - V);
|
|
4452
|
+
D.current.travel = U;
|
|
4453
|
+
let W = te + 4 + P / 2 + Jo(u) * U, G, re;
|
|
4454
|
+
return _ ? (G = v.width - v.crossInset - L / 2, re = W - R / 2) : (re = v.height - v.crossInset - R / 2, G = W - L / 2), H(B("div", {
|
|
4455
|
+
className: Y("touch-thumb", wo, c, { dragging: T }),
|
|
4446
4456
|
ref: C,
|
|
4447
4457
|
style: {
|
|
4448
|
-
left:
|
|
4449
|
-
top:
|
|
4458
|
+
left: G,
|
|
4459
|
+
top: re,
|
|
4450
4460
|
width: L,
|
|
4451
4461
|
height: R,
|
|
4452
4462
|
zIndex: 20,
|
|
@@ -4467,9 +4477,9 @@ var go = {
|
|
|
4467
4477
|
...g
|
|
4468
4478
|
}), v.portalTarget, h);
|
|
4469
4479
|
}));
|
|
4470
|
-
|
|
4471
|
-
var
|
|
4472
|
-
let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m =
|
|
4480
|
+
Yo.displayName = "TouchThumbHandle";
|
|
4481
|
+
var Xo = 24, Zo = E(C((e, t) => {
|
|
4482
|
+
let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m = Xo, maxThumbSize: h, renderScrollButtonStart: g = Oo, renderScrollButtonEnd: _ = ko, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: S, ...C } = e, w = mt().primaryInput === "touch", T = u ?? !w;
|
|
4473
4483
|
J(l ?? (() => {}), [l]);
|
|
4474
4484
|
let [E, O] = I({
|
|
4475
4485
|
offset: 0,
|
|
@@ -4508,7 +4518,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4508
4518
|
r,
|
|
4509
4519
|
R,
|
|
4510
4520
|
E
|
|
4511
|
-
]),
|
|
4521
|
+
]), U = J((e) => {
|
|
4512
4522
|
O(V(e, i, r)), c?.(e, i, r), A.current = e;
|
|
4513
4523
|
}, [
|
|
4514
4524
|
c,
|
|
@@ -4525,14 +4535,14 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4525
4535
|
j,
|
|
4526
4536
|
R
|
|
4527
4537
|
]);
|
|
4528
|
-
let
|
|
4529
|
-
let t = Math.max(1, Math.floor(.9 * i)), r = e > 0 ? Math.min(
|
|
4530
|
-
|
|
4538
|
+
let W = Math.max(0, r - i), G = Pr(t, () => ({ isScrollbar: () => !0 }), []), re = J((e) => {
|
|
4539
|
+
let t = Math.max(1, Math.floor(.9 * i)), r = e > 0 ? Math.min(W, n + t) : Math.max(0, n - t);
|
|
4540
|
+
U(r);
|
|
4531
4541
|
}, [
|
|
4532
4542
|
i,
|
|
4533
4543
|
n,
|
|
4534
|
-
|
|
4535
|
-
]), ie =
|
|
4544
|
+
W
|
|
4545
|
+
]), ie = Fo({
|
|
4536
4546
|
vertical: j,
|
|
4537
4547
|
getTrackRect: () => te.current?.getBoundingClientRect() ?? null,
|
|
4538
4548
|
getThumb: () => E.disabled ? null : {
|
|
@@ -4553,7 +4563,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4553
4563
|
}),
|
|
4554
4564
|
dragMode: "thumb"
|
|
4555
4565
|
}) : {
|
|
4556
|
-
page:
|
|
4566
|
+
page: re,
|
|
4557
4567
|
dragMode: "page"
|
|
4558
4568
|
}, [
|
|
4559
4569
|
E,
|
|
@@ -4562,25 +4572,25 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4562
4572
|
])
|
|
4563
4573
|
}), K = ie.dragMode === "thumb", ae = J((e) => {
|
|
4564
4574
|
let t = Math.max(1, Math.floor(.9 * i));
|
|
4565
|
-
j ? (e.key === "ArrowDown" && H(Math.min(
|
|
4575
|
+
j ? (e.key === "ArrowDown" && H(Math.min(W, n + 1)), e.key === "ArrowUp" && H(Math.max(0, n - 1)), e.key === "PageDown" && H(Math.min(W, n + t)), e.key === "PageUp" && H(Math.max(0, n - t)), e.key === "Home" && H(0), e.key === "End" && H(W)) : (e.key === "ArrowRight" && H(Math.min(W, n + 1)), e.key === "ArrowLeft" && H(Math.max(0, n - 1)), e.key === "PageDown" && H(Math.min(W, n + t)), e.key === "PageUp" && H(Math.max(0, n - t)), e.key === "Home" && H(0), e.key === "End" && H(W));
|
|
4566
4576
|
}, [
|
|
4567
4577
|
j,
|
|
4568
4578
|
i,
|
|
4569
4579
|
r,
|
|
4570
4580
|
n,
|
|
4571
|
-
|
|
4581
|
+
W
|
|
4572
4582
|
]), oe = F(null), se = N(() => {
|
|
4573
4583
|
let e = E.disabled;
|
|
4574
4584
|
if (e) return null;
|
|
4575
4585
|
let t = B("div", {
|
|
4576
4586
|
...y,
|
|
4577
|
-
className: Y(
|
|
4587
|
+
className: Y(So, { disabled: e }),
|
|
4578
4588
|
ref: oe,
|
|
4579
4589
|
role: "slider",
|
|
4580
4590
|
"aria-label": j ? "Rows" : "Columns",
|
|
4581
4591
|
"aria-orientation": j ? "vertical" : "horizontal",
|
|
4582
4592
|
"aria-valuemin": 0,
|
|
4583
|
-
"aria-valuemax":
|
|
4593
|
+
"aria-valuemax": W,
|
|
4584
4594
|
"aria-valuenow": n,
|
|
4585
4595
|
tabIndex: 0,
|
|
4586
4596
|
style: {
|
|
@@ -4595,7 +4605,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4595
4605
|
});
|
|
4596
4606
|
if (!w || e) return t;
|
|
4597
4607
|
let r = Math.max(0, R - E.length);
|
|
4598
|
-
return ee(z, { children: [t, B(
|
|
4608
|
+
return ee(z, { children: [t, B(Yo, {
|
|
4599
4609
|
...v,
|
|
4600
4610
|
orientation: j ? Z.Vertical : Z.Horizontal,
|
|
4601
4611
|
fraction: r > 0 ? E.offset / r : 0,
|
|
@@ -4606,7 +4616,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4606
4616
|
}, [
|
|
4607
4617
|
E,
|
|
4608
4618
|
m,
|
|
4609
|
-
|
|
4619
|
+
W,
|
|
4610
4620
|
n,
|
|
4611
4621
|
j,
|
|
4612
4622
|
w,
|
|
@@ -4620,7 +4630,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4620
4630
|
let e;
|
|
4621
4631
|
e = typeof d == "function" ? d(n, i, r) : n - d;
|
|
4622
4632
|
let t = Math.max(0, e);
|
|
4623
|
-
return
|
|
4633
|
+
return U(t), le(t), t;
|
|
4624
4634
|
}, [
|
|
4625
4635
|
d,
|
|
4626
4636
|
n,
|
|
@@ -4629,12 +4639,12 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4629
4639
|
]), de = J(() => {
|
|
4630
4640
|
let e;
|
|
4631
4641
|
e = typeof d == "function" ? d(n, i, r) : n + d;
|
|
4632
|
-
let t = Math.min(
|
|
4633
|
-
return
|
|
4642
|
+
let t = Math.min(W, e);
|
|
4643
|
+
return U(t), le(t), t;
|
|
4634
4644
|
}, [
|
|
4635
4645
|
d,
|
|
4636
4646
|
n,
|
|
4637
|
-
|
|
4647
|
+
W,
|
|
4638
4648
|
i,
|
|
4639
4649
|
r
|
|
4640
4650
|
]), fe = F(null), pe = F(null), q = D(() => {
|
|
@@ -4663,7 +4673,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4663
4673
|
ce
|
|
4664
4674
|
]), ge = N(() => T ? _?.({
|
|
4665
4675
|
orientation: s,
|
|
4666
|
-
disabled: n >=
|
|
4676
|
+
disabled: n >= W,
|
|
4667
4677
|
onMouseUp: q,
|
|
4668
4678
|
onMouseLeave: q,
|
|
4669
4679
|
onMouseDown: () => me(n, !0, !1)
|
|
@@ -4671,12 +4681,12 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4671
4681
|
T,
|
|
4672
4682
|
s,
|
|
4673
4683
|
n,
|
|
4674
|
-
|
|
4684
|
+
W,
|
|
4675
4685
|
ce
|
|
4676
4686
|
]), _e = j ? "vertical" : "horizontal";
|
|
4677
4687
|
return ee("div", {
|
|
4678
|
-
ref: xn([
|
|
4679
|
-
className: Y(o,
|
|
4688
|
+
ref: xn([G, t]),
|
|
4689
|
+
className: Y(o, bo, _e, {
|
|
4680
4690
|
dragging: K,
|
|
4681
4691
|
"has-touch-thumb": w
|
|
4682
4692
|
}),
|
|
@@ -4689,10 +4699,10 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4689
4699
|
role: "scrollbar",
|
|
4690
4700
|
"aria-orientation": _e,
|
|
4691
4701
|
"aria-valuemin": 0,
|
|
4692
|
-
"aria-valuemax":
|
|
4702
|
+
"aria-valuemax": W,
|
|
4693
4703
|
"aria-valuenow": n,
|
|
4694
4704
|
tabIndex: 0,
|
|
4695
|
-
className: Y(
|
|
4705
|
+
className: Y(xo, "track", _e),
|
|
4696
4706
|
onMouseDown: S,
|
|
4697
4707
|
onPointerDown: ie.onPointerDown,
|
|
4698
4708
|
onPointerMove: ie.onPointerMove,
|
|
@@ -4703,24 +4713,24 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4703
4713
|
ge
|
|
4704
4714
|
]
|
|
4705
4715
|
});
|
|
4706
|
-
})),
|
|
4707
|
-
let t =
|
|
4708
|
-
return t && (
|
|
4709
|
-
},
|
|
4710
|
-
let a =
|
|
4716
|
+
})), Qo = Date.now, $o = 1e3, es = {}, ts = 1, ns = (e) => {
|
|
4717
|
+
let t = es[e] !== null;
|
|
4718
|
+
return t && (es[e] = null), t;
|
|
4719
|
+
}, rs = (e, t, n, r = 0, i) => {
|
|
4720
|
+
let a = Qo(), o = a, s = 0, c = 0, l = 0, u = ts++;
|
|
4711
4721
|
if (u % 20 == 0) {
|
|
4712
4722
|
let e = {};
|
|
4713
|
-
for (let t in
|
|
4714
|
-
|
|
4723
|
+
for (let t in es) e[t] = !0;
|
|
4724
|
+
es = e;
|
|
4715
4725
|
}
|
|
4716
4726
|
let d = function(f) {
|
|
4717
|
-
let p = !0 !== f, m =
|
|
4727
|
+
let p = !0 !== f, m = Qo(), h = !0;
|
|
4718
4728
|
try {
|
|
4719
4729
|
h = (!t || t(u)) ?? !0;
|
|
4720
4730
|
} catch {
|
|
4721
4731
|
h = !1;
|
|
4722
4732
|
}
|
|
4723
|
-
if (!
|
|
4733
|
+
if (!es[u] || !h) return es[u] = null, void n?.(60 - c / ((m - a) / $o), u, !1);
|
|
4724
4734
|
if (p) {
|
|
4725
4735
|
l = Math.round((m - o) / 16.666666666666668) - 1;
|
|
4726
4736
|
for (let e = 0; e < Math.min(l, 4); e++) d(!0), c++;
|
|
@@ -4732,14 +4742,14 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4732
4742
|
} catch {
|
|
4733
4743
|
_ = !1;
|
|
4734
4744
|
}
|
|
4735
|
-
!1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (
|
|
4745
|
+
!1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (es[u] = null, n?.(60 - c / ((m - a) / $o), u, s === 1 || r == null));
|
|
4736
4746
|
};
|
|
4737
|
-
return
|
|
4738
|
-
},
|
|
4747
|
+
return es[u] = !0, requestAnimationFrame(d), u;
|
|
4748
|
+
}, is = function(e) {
|
|
4739
4749
|
return (e - 1) ** 3 + 1;
|
|
4740
|
-
},
|
|
4750
|
+
}, as = function(e) {
|
|
4741
4751
|
return (e /= .5) < 1 ? .5 * e ** 3 : .5 * ((e - 2) ** 3 + 2);
|
|
4742
|
-
},
|
|
4752
|
+
}, os = class {
|
|
4743
4753
|
constructor(e, t) {
|
|
4744
4754
|
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 = {
|
|
4745
4755
|
scrollingX: !0,
|
|
@@ -4793,7 +4803,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4793
4803
|
}
|
|
4794
4804
|
zoomTo(e, t = !1, n, r, i) {
|
|
4795
4805
|
if (!this.options.zooming) throw Error("Zooming is not enabled!");
|
|
4796
|
-
i && (this.__zoomComplete = i), this.__isDecelerating &&= (
|
|
4806
|
+
i && (this.__zoomComplete = i), this.__isDecelerating &&= (ns(this.__isDecelerating), 0);
|
|
4797
4807
|
let a = this.__zoomLevel;
|
|
4798
4808
|
n === void 0 && (n = this.__clientWidth / 2), r === void 0 && (r = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
|
|
4799
4809
|
let o = e / a, s = o * (this.__scrollLeft + n) - n, c = o * (this.__scrollTop + r) - r;
|
|
@@ -4803,7 +4813,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4803
4813
|
this.zoomTo(this.__zoomLevel * e, t, n, r, i);
|
|
4804
4814
|
}
|
|
4805
4815
|
scrollTo(e, t, n = !1, r = 1) {
|
|
4806
|
-
if (this.__isDecelerating &&= (
|
|
4816
|
+
if (this.__isDecelerating &&= (ns(this.__isDecelerating), 0), r !== void 0 && r !== this.__zoomLevel) {
|
|
4807
4817
|
if (!this.options.zooming) throw Error("Zooming is not enabled!");
|
|
4808
4818
|
e *= r, t *= r, this.__computeScrollMax(r);
|
|
4809
4819
|
} else r = this.__zoomLevel;
|
|
@@ -4821,7 +4831,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4821
4831
|
if (e.length === void 0) throw Error("Invalid touch list: " + e);
|
|
4822
4832
|
if (t instanceof Date && (t = t.valueOf()), typeof t != "number") throw Error("Invalid timestamp value: " + t);
|
|
4823
4833
|
let n, r;
|
|
4824
|
-
this.__interruptedAnimation = !0, this.__isDecelerating && (
|
|
4834
|
+
this.__interruptedAnimation = !0, this.__isDecelerating && (ns(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (ns(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
|
|
4825
4835
|
let i = e.length === 1;
|
|
4826
4836
|
i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__lastTouchLeft = n, this.__lastTouchTop = r, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !i && !!this.options.scrollingX, this.__enableScrollY = !i && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !i, this.__isSingleTouch = i, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
|
|
4827
4837
|
}
|
|
@@ -4876,14 +4886,14 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4876
4886
|
}
|
|
4877
4887
|
__publish(e, t, n, r = !1) {
|
|
4878
4888
|
let i = this.__isAnimating;
|
|
4879
|
-
if (i && (
|
|
4889
|
+
if (i && (ns(i), this.__isAnimating = 0), r && this.options.animating) {
|
|
4880
4890
|
this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
|
|
4881
4891
|
let r = this.__scrollLeft, a = this.__scrollTop, o = this.__zoomLevel, s = e - r, c = t - a, l = n - o, u = (e, t, n = !1) => {
|
|
4882
4892
|
n && (this.__scrollLeft = r + s * e, this.__scrollTop = a + c * e, this.__zoomLevel = o + l * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
|
|
4883
4893
|
}, d = (e) => this.__isAnimating === e, f = (e, t, n = !1) => {
|
|
4884
4894
|
t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete &&= (this.__zoomComplete(), null));
|
|
4885
4895
|
};
|
|
4886
|
-
this.__isAnimating =
|
|
4896
|
+
this.__isAnimating = rs(u, d, f, this.options.animationDuration, i ? is : as);
|
|
4887
4897
|
} 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(), null));
|
|
4888
4898
|
}
|
|
4889
4899
|
__computeScrollMax(e = this.__zoomLevel) {
|
|
@@ -4895,7 +4905,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4895
4905
|
this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / r) * r, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / r) * r;
|
|
4896
4906
|
} else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
|
|
4897
4907
|
let t = this.options.snapping ? 4 : .1;
|
|
4898
|
-
this.__isDecelerating =
|
|
4908
|
+
this.__isDecelerating = rs((e, t, n = !1) => {
|
|
4899
4909
|
this.__stepThroughDeceleration(n);
|
|
4900
4910
|
}, () => {
|
|
4901
4911
|
let e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
|
|
@@ -4921,10 +4931,10 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4921
4931
|
t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? r = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (r = this.__maxDecelerationScrollTop - n), e !== 0 && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * i : this.__decelerationVelocityX = e * a), r !== 0 && (r * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += r * i : this.__decelerationVelocityY = r * a);
|
|
4922
4932
|
}
|
|
4923
4933
|
}
|
|
4924
|
-
},
|
|
4925
|
-
defaultRenderScrollbar: () =>
|
|
4926
|
-
getScrollTo: () =>
|
|
4927
|
-
}),
|
|
4934
|
+
}, ss = se({
|
|
4935
|
+
defaultRenderScrollbar: () => ls,
|
|
4936
|
+
getScrollTo: () => cs
|
|
4937
|
+
}), cs = (e, t, n, r, i = 0) => {
|
|
4928
4938
|
for (let i = 0; i < n.length; i++) {
|
|
4929
4939
|
let a = n[i].getBoundingClientRect(), o = a.left - t, s = o + a.width;
|
|
4930
4940
|
if (r) {
|
|
@@ -4932,8 +4942,8 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
4932
4942
|
} else if (Math.ceil(s) > Math.ceil(e) + 2) return s;
|
|
4933
4943
|
}
|
|
4934
4944
|
return i;
|
|
4935
|
-
},
|
|
4936
|
-
let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, showHorizontalScrollbar: o = !0, showVerticalScrollbar: s = !0, renderScrollCorner: c =
|
|
4945
|
+
}, ls = (e) => B(Zo, { ...e }), us = "_scrollpane_zdrii_2", ds = "_scrollpane-content_zdrii_20", fs = "_scrollpane-content-cell_zdrii_33", ps = "_vertical-container_zdrii_42", ms = "_horizontal-container_zdrii_50", hs = "_corner-container_zdrii_59", gs = "_touch-thumb-overlay_zdrii_68", _s = E(C((e, t) => {
|
|
4946
|
+
let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, showHorizontalScrollbar: o = !0, showVerticalScrollbar: s = !0, renderScrollCorner: c = vs, renderScrollbarHorizontal: l = ls, renderScrollbarVertical: u = ls, style: d, className: f, disableTouch: p, ...m } = e, h = o && l, g = s && u, _ = zn(r, (e) => e.getMetrics()), v = D((e, t) => {
|
|
4937
4947
|
if (!r) return;
|
|
4938
4948
|
let n = r.getTarget();
|
|
4939
4949
|
r.setTarget(e.left ?? n.left, e.top ?? n.top, t);
|
|
@@ -5002,7 +5012,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5002
5012
|
}, []);
|
|
5003
5013
|
k(() => {
|
|
5004
5014
|
let e = y.current;
|
|
5005
|
-
return !p && mt().supportsTouchEvents && e && _ && (b.current ||= new
|
|
5015
|
+
return !p && mt().supportsTouchEvents && e && _ && (b.current ||= new os(S, {
|
|
5006
5016
|
scrollingX: !0,
|
|
5007
5017
|
scrollingY: !0,
|
|
5008
5018
|
decelerationRate: .95,
|
|
@@ -5026,7 +5036,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5026
5036
|
j(e), M(e);
|
|
5027
5037
|
}, [M]), z = N(() => {
|
|
5028
5038
|
if (!A) return null;
|
|
5029
|
-
let e =
|
|
5039
|
+
let e = Uo(), t = Math.min(P, _?.width ?? P), n = Math.min(L, _?.height ?? L);
|
|
5030
5040
|
return {
|
|
5031
5041
|
portalTarget: A,
|
|
5032
5042
|
width: P,
|
|
@@ -5035,7 +5045,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5035
5045
|
viewportHeight: n,
|
|
5036
5046
|
reserveVertical: h ? e : 0,
|
|
5037
5047
|
reserveHorizontal: g ? e : 0,
|
|
5038
|
-
crossInset:
|
|
5048
|
+
crossInset: Ho()
|
|
5039
5049
|
};
|
|
5040
5050
|
}, [
|
|
5041
5051
|
A,
|
|
@@ -5057,7 +5067,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5057
5067
|
}
|
|
5058
5068
|
});
|
|
5059
5069
|
return B("div", {
|
|
5060
|
-
className: Y("vertical-container",
|
|
5070
|
+
className: Y("vertical-container", ps),
|
|
5061
5071
|
children: e
|
|
5062
5072
|
});
|
|
5063
5073
|
}, [
|
|
@@ -5077,7 +5087,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5077
5087
|
}
|
|
5078
5088
|
});
|
|
5079
5089
|
return B("div", {
|
|
5080
|
-
className: Y("horizontal-container",
|
|
5090
|
+
className: Y("horizontal-container", ms),
|
|
5081
5091
|
children: e
|
|
5082
5092
|
});
|
|
5083
5093
|
}, [
|
|
@@ -5086,7 +5096,7 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5086
5096
|
_?.width,
|
|
5087
5097
|
_?.totalWidth
|
|
5088
5098
|
]), V = N(() => g && h ? B("div", {
|
|
5089
|
-
className: Y("corner-container",
|
|
5099
|
+
className: Y("corner-container", hs),
|
|
5090
5100
|
children: c({})
|
|
5091
5101
|
}) : null, [
|
|
5092
5102
|
g,
|
|
@@ -5094,17 +5104,17 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5094
5104
|
c
|
|
5095
5105
|
]);
|
|
5096
5106
|
return B("div", {
|
|
5097
|
-
className: Y(f, "scrollpane",
|
|
5107
|
+
className: Y(f, "scrollpane", us),
|
|
5098
5108
|
style: d,
|
|
5099
5109
|
...m,
|
|
5100
5110
|
ref: y,
|
|
5101
|
-
children: B(
|
|
5111
|
+
children: B(Go, {
|
|
5102
5112
|
value: z,
|
|
5103
5113
|
children: ee("div", {
|
|
5104
|
-
className: Y("scrollpane-content",
|
|
5114
|
+
className: Y("scrollpane-content", ds),
|
|
5105
5115
|
children: [
|
|
5106
5116
|
B("div", {
|
|
5107
|
-
className: Y("scrollpane-content-cell",
|
|
5117
|
+
className: Y("scrollpane-content-cell", fs),
|
|
5108
5118
|
children: n
|
|
5109
5119
|
}),
|
|
5110
5120
|
g ? te : null,
|
|
@@ -5112,15 +5122,15 @@ var Jo = 24, Yo = E(C((e, t) => {
|
|
|
5112
5122
|
V,
|
|
5113
5123
|
O ? B("div", {
|
|
5114
5124
|
ref: R,
|
|
5115
|
-
className: Y("touch-thumb-overlay",
|
|
5125
|
+
className: Y("touch-thumb-overlay", gs)
|
|
5116
5126
|
}) : null
|
|
5117
5127
|
]
|
|
5118
5128
|
})
|
|
5119
5129
|
})
|
|
5120
5130
|
});
|
|
5121
5131
|
}));
|
|
5122
|
-
|
|
5123
|
-
var
|
|
5132
|
+
_s.displayName = "ScrollPane";
|
|
5133
|
+
var vs = (e) => {
|
|
5124
5134
|
let { size: t, style: n, ...r } = e;
|
|
5125
5135
|
return B("div", {
|
|
5126
5136
|
className: "corner",
|
|
@@ -5131,7 +5141,7 @@ var gs = (e) => {
|
|
|
5131
5141
|
},
|
|
5132
5142
|
...r
|
|
5133
5143
|
});
|
|
5134
|
-
},
|
|
5144
|
+
}, ys = class {
|
|
5135
5145
|
constructor(e) {
|
|
5136
5146
|
this._bounds = {
|
|
5137
5147
|
minLeft: 0,
|
|
@@ -5241,7 +5251,7 @@ var gs = (e) => {
|
|
|
5241
5251
|
}
|
|
5242
5252
|
_applyBounds(e) {
|
|
5243
5253
|
this._bounds = e;
|
|
5244
|
-
let t =
|
|
5254
|
+
let t = Ds(this._target.left, e.minLeft, e.maxLeft), n = Ds(this._target.top, e.minTop, e.maxTop);
|
|
5245
5255
|
t === this._target.left && n === this._target.top || (this._target = {
|
|
5246
5256
|
left: t,
|
|
5247
5257
|
top: n
|
|
@@ -5263,12 +5273,12 @@ var gs = (e) => {
|
|
|
5263
5273
|
return this._observe(e, "both");
|
|
5264
5274
|
}
|
|
5265
5275
|
_observe(e, t) {
|
|
5266
|
-
if (!e) return
|
|
5276
|
+
if (!e) return Es;
|
|
5267
5277
|
let n = (e, n) => {
|
|
5268
5278
|
let r = this._measuredClient;
|
|
5269
5279
|
this._setMeasuredClient(t === "height" ? r?.width ?? 0 : e, t === "width" ? r?.height ?? 0 : n);
|
|
5270
5280
|
};
|
|
5271
|
-
if (!
|
|
5281
|
+
if (!Ts()) return n(0, 0), Es;
|
|
5272
5282
|
let r = new ResizeObserver((e) => {
|
|
5273
5283
|
let t = e[0]?.contentRect;
|
|
5274
5284
|
t && n(t.width, t.height);
|
|
@@ -5315,17 +5325,17 @@ var gs = (e) => {
|
|
|
5315
5325
|
}
|
|
5316
5326
|
setTarget(e, t, n) {
|
|
5317
5327
|
let r = this._bounds;
|
|
5318
|
-
return e =
|
|
5328
|
+
return e = Ds(e, r.minLeft, r.maxLeft), t = Ds(t, r.minTop, r.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
|
|
5319
5329
|
left: e,
|
|
5320
5330
|
top: t
|
|
5321
5331
|
}, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
|
|
5322
5332
|
}
|
|
5323
5333
|
_startAnimation() {
|
|
5324
|
-
let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width *
|
|
5325
|
-
this._anim = c <=
|
|
5334
|
+
let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width * Ss : Infinity, i = n.height > 0 ? n.height * Ss : Infinity, a = Ds(e.left, t.left - r, t.left + r), o = Ds(e.top, t.top - i, t.top + i), s = Math.max(Math.abs(t.left - a), Math.abs(t.top - o)), c = Math.min(200, s * xs);
|
|
5335
|
+
this._anim = c <= Cs ? null : {
|
|
5326
5336
|
fromLeft: a,
|
|
5327
5337
|
fromTop: o,
|
|
5328
|
-
start:
|
|
5338
|
+
start: ws(),
|
|
5329
5339
|
duration: c
|
|
5330
5340
|
};
|
|
5331
5341
|
}
|
|
@@ -5356,7 +5366,7 @@ var gs = (e) => {
|
|
|
5356
5366
|
_advance() {
|
|
5357
5367
|
let e = this._current, t = this._target, n = this._anim, r, i, a = !1;
|
|
5358
5368
|
if (n) {
|
|
5359
|
-
let e = (
|
|
5369
|
+
let e = (ws() - n.start) / n.duration;
|
|
5360
5370
|
if (e >= 1) r = t.left, i = t.top, this._anim = null;
|
|
5361
5371
|
else {
|
|
5362
5372
|
let o = 1 - (1 - e) ** 3;
|
|
@@ -5368,7 +5378,7 @@ var gs = (e) => {
|
|
|
5368
5378
|
top: i
|
|
5369
5379
|
}, this._viewport = null, this._emit()), a;
|
|
5370
5380
|
}
|
|
5371
|
-
},
|
|
5381
|
+
}, bs = 200, xs = 2.5, Ss = 1.5, Cs = 17, ws = () => typeof performance < "u" ? performance.now() : Date.now(), Ts = () => typeof ResizeObserver < "u", Es = () => {}, Ds = (e, t, n) => Math.min(n, Math.max(t, e)), Os = class {
|
|
5372
5382
|
constructor(e, t, n, r, i) {
|
|
5373
5383
|
this._h = e, this._v = t, this._followH = n, this._followV = r, this._zoomCtrl = i, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
|
|
5374
5384
|
}
|
|
@@ -5475,8 +5485,8 @@ var gs = (e) => {
|
|
|
5475
5485
|
setContent(e, t, n = 0, r = 0) {
|
|
5476
5486
|
this._same ? this._h.setContent(e, t, n, r) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, r));
|
|
5477
5487
|
}
|
|
5478
|
-
},
|
|
5479
|
-
let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o =
|
|
5488
|
+
}, ks = 300, As = 100, js = 1e6, Ms = 100, Ns = 50, Ps = E(C((e, t) => {
|
|
5489
|
+
let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o = ks, endScrollIncrement: s = As, style: c = ut, onMouseDown: l, onThumbDrag: u, onScrollOffset: d, onScroll: f, scaleLimit: p = js, scaleFactor: m = Ms, precisionFactor: h = Ns, renderScrollbar: g = ls, ..._ } = e;
|
|
5480
5490
|
f && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
|
|
5481
5491
|
let v = J(l ?? (() => {}), [l]), [y, b] = I(!1), x = F(0), S = N(() => {
|
|
5482
5492
|
let e = p === 0 ? i : Math.min(i ?? 0, Math.max(a ?? 0, (n ?? 0) + (r ?? 0)) + (o ?? 0));
|
|
@@ -5530,8 +5540,8 @@ var gs = (e) => {
|
|
|
5530
5540
|
ref: t
|
|
5531
5541
|
});
|
|
5532
5542
|
}));
|
|
5533
|
-
|
|
5534
|
-
var
|
|
5543
|
+
Ps.displayName = "VirtualScrollbar";
|
|
5544
|
+
var Fs = "_scrollbar-themed_nj3vu_7", Is = (e) => ({
|
|
5535
5545
|
"--scrollbar-track-color": e.track,
|
|
5536
5546
|
"--scrollbar-thumb-color": e.thumb,
|
|
5537
5547
|
"--scrollbar-button-color": e.button || e.thumb,
|
|
@@ -5543,10 +5553,10 @@ var Ns = "_scrollbar-themed_nj3vu_7", Ps = (e) => ({
|
|
|
5543
5553
|
"--scrollbar-border-radius": "9999px",
|
|
5544
5554
|
"--scrollbar-border-width": "2px",
|
|
5545
5555
|
"--scrollbar-min-thumb-size": "24px"
|
|
5546
|
-
}),
|
|
5556
|
+
}), Ls = oe((e, t) => {
|
|
5547
5557
|
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
5548
|
-
}),
|
|
5549
|
-
var n =
|
|
5558
|
+
}), Rs = oe((e, t) => {
|
|
5559
|
+
var n = Ls();
|
|
5550
5560
|
function r() {}
|
|
5551
5561
|
function i() {}
|
|
5552
5562
|
i.resetWarningCache = r, t.exports = function() {
|
|
@@ -5586,70 +5596,70 @@ var Ns = "_scrollbar-themed_nj3vu_7", Ps = (e) => ({
|
|
|
5586
5596
|
return a.PropTypes = a, a;
|
|
5587
5597
|
};
|
|
5588
5598
|
}), Q = ce(oe((e, t) => {
|
|
5589
|
-
t.exports =
|
|
5599
|
+
t.exports = Rs()();
|
|
5590
5600
|
})(), 1);
|
|
5591
|
-
function
|
|
5601
|
+
function zs(e, t) {
|
|
5592
5602
|
for (let n = 0, r = e.length; n < r; n++) if (t.apply(t, [
|
|
5593
5603
|
e[n],
|
|
5594
5604
|
n,
|
|
5595
5605
|
e
|
|
5596
5606
|
])) return e[n];
|
|
5597
5607
|
}
|
|
5598
|
-
function
|
|
5608
|
+
function Bs(e) {
|
|
5599
5609
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
5600
5610
|
}
|
|
5601
|
-
function
|
|
5611
|
+
function Vs(e) {
|
|
5602
5612
|
return typeof e == "number" && !isNaN(e);
|
|
5603
5613
|
}
|
|
5604
5614
|
function $(e) {
|
|
5605
5615
|
return parseInt(e, 10);
|
|
5606
5616
|
}
|
|
5607
|
-
function
|
|
5617
|
+
function Hs(e, t, n) {
|
|
5608
5618
|
if (e[t]) return /* @__PURE__ */ Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`);
|
|
5609
5619
|
}
|
|
5610
|
-
var
|
|
5620
|
+
var Us = [
|
|
5611
5621
|
"Moz",
|
|
5612
5622
|
"Webkit",
|
|
5613
5623
|
"O",
|
|
5614
5624
|
"ms"
|
|
5615
5625
|
];
|
|
5616
|
-
function
|
|
5626
|
+
function Ws(e, t) {
|
|
5617
5627
|
return t ? `${t}${function(e) {
|
|
5618
5628
|
let t = "", n = !0;
|
|
5619
5629
|
for (let r = 0; r < e.length; r++) n ? (t += e[r].toUpperCase(), n = !1) : e[r] === "-" ? n = !0 : t += e[r];
|
|
5620
5630
|
return t;
|
|
5621
5631
|
}(e)}` : e;
|
|
5622
5632
|
}
|
|
5623
|
-
var
|
|
5633
|
+
var Gs = function(e = "transform") {
|
|
5624
5634
|
if (typeof window > "u") return "";
|
|
5625
5635
|
let t = window.document?.documentElement?.style;
|
|
5626
5636
|
if (!t || e in t) return "";
|
|
5627
|
-
for (let n = 0; n <
|
|
5637
|
+
for (let n = 0; n < Us.length; n++) if (Ws(e, Us[n]) in t) return Us[n];
|
|
5628
5638
|
return "";
|
|
5629
|
-
}(),
|
|
5630
|
-
function
|
|
5631
|
-
|
|
5639
|
+
}(), Ks = "";
|
|
5640
|
+
function qs(e, t) {
|
|
5641
|
+
Ks ||= zs([
|
|
5632
5642
|
"matches",
|
|
5633
5643
|
"webkitMatchesSelector",
|
|
5634
5644
|
"mozMatchesSelector",
|
|
5635
5645
|
"msMatchesSelector",
|
|
5636
5646
|
"oMatchesSelector"
|
|
5637
5647
|
], function(t) {
|
|
5638
|
-
return
|
|
5648
|
+
return Bs(e[t]);
|
|
5639
5649
|
}) ?? "";
|
|
5640
|
-
let n = e[
|
|
5641
|
-
return !!
|
|
5650
|
+
let n = e[Ks];
|
|
5651
|
+
return !!Bs(n) && !!n.call(e, t);
|
|
5642
5652
|
}
|
|
5643
|
-
function
|
|
5653
|
+
function Js(e, t, n) {
|
|
5644
5654
|
let r = e;
|
|
5645
5655
|
do {
|
|
5646
|
-
if (
|
|
5656
|
+
if (qs(r, t)) return !0;
|
|
5647
5657
|
if (r === n) return !1;
|
|
5648
5658
|
r = r.parentNode;
|
|
5649
5659
|
} while (r);
|
|
5650
5660
|
return !1;
|
|
5651
5661
|
}
|
|
5652
|
-
function
|
|
5662
|
+
function Ys(e, t, n, r) {
|
|
5653
5663
|
if (!e) return;
|
|
5654
5664
|
let i = {
|
|
5655
5665
|
capture: !0,
|
|
@@ -5657,7 +5667,7 @@ function qs(e, t, n, r) {
|
|
|
5657
5667
|
}, a = n;
|
|
5658
5668
|
e.addEventListener ? e.addEventListener(t, a, i) : e.attachEvent ? e.attachEvent("on" + t, a) : e["on" + t] = a;
|
|
5659
5669
|
}
|
|
5660
|
-
function
|
|
5670
|
+
function Xs(e, t, n, r) {
|
|
5661
5671
|
if (!e) return;
|
|
5662
5672
|
let i = {
|
|
5663
5673
|
capture: !0,
|
|
@@ -5665,27 +5675,27 @@ function Js(e, t, n, r) {
|
|
|
5665
5675
|
}, a = n;
|
|
5666
5676
|
e.removeEventListener ? e.removeEventListener(t, a, i) : e.detachEvent ? e.detachEvent("on" + t, a) : e["on" + t] = null;
|
|
5667
5677
|
}
|
|
5668
|
-
function
|
|
5678
|
+
function Zs(e) {
|
|
5669
5679
|
let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
5670
5680
|
return t += $(n.borderTopWidth), t += $(n.borderBottomWidth), t;
|
|
5671
5681
|
}
|
|
5672
|
-
function
|
|
5682
|
+
function Qs(e) {
|
|
5673
5683
|
let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
5674
5684
|
return t += $(n.borderLeftWidth), t += $(n.borderRightWidth), t;
|
|
5675
5685
|
}
|
|
5676
|
-
function
|
|
5686
|
+
function $s(e) {
|
|
5677
5687
|
let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
5678
5688
|
return t -= $(n.paddingTop), t -= $(n.paddingBottom), t;
|
|
5679
5689
|
}
|
|
5680
|
-
function
|
|
5690
|
+
function ec(e) {
|
|
5681
5691
|
let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
5682
5692
|
return t -= $(n.paddingLeft), t -= $(n.paddingRight), t;
|
|
5683
5693
|
}
|
|
5684
|
-
function
|
|
5694
|
+
function tc({ x: e, y: t }, n, r) {
|
|
5685
5695
|
let i = `translate(${e}${r},${t}${r})`;
|
|
5686
5696
|
return n && (i = `translate(${typeof n.x == "string" ? n.x : n.x + r}, ${typeof n.y == "string" ? n.y : n.y + r})` + i), i;
|
|
5687
5697
|
}
|
|
5688
|
-
function
|
|
5698
|
+
function nc(e, t) {
|
|
5689
5699
|
if (!e) return;
|
|
5690
5700
|
let n = e.getElementById("react-draggable-style-el");
|
|
5691
5701
|
if (!n) {
|
|
@@ -5696,12 +5706,12 @@ function ec(e, t) {
|
|
|
5696
5706
|
var r, i;
|
|
5697
5707
|
e.body && (r = e.body, i = "react-draggable-transparent-selection", r.classList ? r.classList.add(i) : r.className.match(RegExp(`(?:^|\\s)${i}(?!\\S)`)) || (r.className += ` ${i}`));
|
|
5698
5708
|
}
|
|
5699
|
-
function
|
|
5709
|
+
function rc(e) {
|
|
5700
5710
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
5701
|
-
|
|
5702
|
-
}) :
|
|
5711
|
+
ic(e);
|
|
5712
|
+
}) : ic(e);
|
|
5703
5713
|
}
|
|
5704
|
-
function
|
|
5714
|
+
function ic(e) {
|
|
5705
5715
|
var t, n;
|
|
5706
5716
|
if (e) try {
|
|
5707
5717
|
e.body && (t = e.body, n = "react-draggable-transparent-selection", t.classList ? t.classList.remove(n) : t.className = t.className.replace(RegExp(`(?:^|\\s)${n}(?!\\S)`, "g"), ""));
|
|
@@ -5713,21 +5723,21 @@ function nc(e) {
|
|
|
5713
5723
|
}
|
|
5714
5724
|
} catch {}
|
|
5715
5725
|
}
|
|
5716
|
-
function
|
|
5726
|
+
function ac(e, t, n) {
|
|
5717
5727
|
return [Math.round(t / e[0]) * e[0], Math.round(n / e[1]) * e[1]];
|
|
5718
5728
|
}
|
|
5719
|
-
function
|
|
5729
|
+
function oc(e) {
|
|
5720
5730
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
5721
5731
|
}
|
|
5722
|
-
function
|
|
5732
|
+
function sc(e) {
|
|
5723
5733
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
5724
5734
|
}
|
|
5725
|
-
function
|
|
5735
|
+
function cc(e, t, n) {
|
|
5726
5736
|
let r = typeof t == "number" ? function(e, t) {
|
|
5727
|
-
return e.targetTouches &&
|
|
5737
|
+
return e.targetTouches && zs(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && zs(e.changedTouches, (e) => t === e.identifier);
|
|
5728
5738
|
}(e, t) : null;
|
|
5729
5739
|
if (typeof t == "number" && !r) return null;
|
|
5730
|
-
let i =
|
|
5740
|
+
let i = dc(n);
|
|
5731
5741
|
return function(e, t, n) {
|
|
5732
5742
|
let r = t === t.ownerDocument.body ? {
|
|
5733
5743
|
left: 0,
|
|
@@ -5739,8 +5749,8 @@ function oc(e, t, n) {
|
|
|
5739
5749
|
};
|
|
5740
5750
|
}(r || e, n.props.offsetParent || i.offsetParent || i.ownerDocument.body, n.props.scale);
|
|
5741
5751
|
}
|
|
5742
|
-
function
|
|
5743
|
-
let r = !
|
|
5752
|
+
function lc(e, t, n) {
|
|
5753
|
+
let r = !Vs(e.lastX), i = dc(e);
|
|
5744
5754
|
return r ? {
|
|
5745
5755
|
node: i,
|
|
5746
5756
|
deltaX: 0,
|
|
@@ -5759,7 +5769,7 @@ function sc(e, t, n) {
|
|
|
5759
5769
|
y: n
|
|
5760
5770
|
};
|
|
5761
5771
|
}
|
|
5762
|
-
function
|
|
5772
|
+
function uc(e, t) {
|
|
5763
5773
|
let n = e.props.scale;
|
|
5764
5774
|
return {
|
|
5765
5775
|
node: t.node,
|
|
@@ -5771,46 +5781,46 @@ function cc(e, t) {
|
|
|
5771
5781
|
lastY: e.state.y
|
|
5772
5782
|
};
|
|
5773
5783
|
}
|
|
5774
|
-
function
|
|
5784
|
+
function dc(e) {
|
|
5775
5785
|
let t = e.findDOMNode();
|
|
5776
5786
|
if (!t) throw Error("<DraggableCore>: Unmounted during event!");
|
|
5777
5787
|
return t;
|
|
5778
5788
|
}
|
|
5779
|
-
var
|
|
5789
|
+
var fc = {
|
|
5780
5790
|
start: "touchstart",
|
|
5781
5791
|
move: "touchmove",
|
|
5782
5792
|
stop: "touchend"
|
|
5783
|
-
},
|
|
5793
|
+
}, pc = {
|
|
5784
5794
|
start: "mousedown",
|
|
5785
5795
|
move: "mousemove",
|
|
5786
5796
|
stop: "mouseup"
|
|
5787
|
-
},
|
|
5797
|
+
}, mc = pc, hc = class extends _.Component {
|
|
5788
5798
|
constructor() {
|
|
5789
5799
|
super(...arguments), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, this.touchIdentifier = null, this.mounted = !1, this.handleDragStart = (e) => {
|
|
5790
5800
|
if (this.props.onMouseDown(e), !this.props.allowAnyClick && (typeof e.button == "number" && e.button !== 0 || e.ctrlKey)) return !1;
|
|
5791
5801
|
let t = this.findDOMNode();
|
|
5792
5802
|
if (!t || !t.ownerDocument || !t.ownerDocument.body) throw Error("<DraggableCore> not mounted on DragStart!");
|
|
5793
5803
|
let { ownerDocument: n } = t;
|
|
5794
|
-
if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !
|
|
5804
|
+
if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !Js(e.target, this.props.handle, t) || this.props.cancel && Js(e.target, this.props.cancel, t)) return;
|
|
5795
5805
|
e.type !== "touchstart" || this.props.allowMobileScroll || e.preventDefault();
|
|
5796
5806
|
let r = function(e) {
|
|
5797
5807
|
return e.targetTouches && e.targetTouches[0] ? e.targetTouches[0].identifier : e.changedTouches && e.changedTouches[0] ? e.changedTouches[0].identifier : void 0;
|
|
5798
5808
|
}(e);
|
|
5799
5809
|
this.touchIdentifier = r;
|
|
5800
|
-
let i =
|
|
5810
|
+
let i = cc(e, r, this);
|
|
5801
5811
|
if (i == null) return;
|
|
5802
|
-
let { x: a, y: o } = i, s =
|
|
5803
|
-
this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack &&
|
|
5812
|
+
let { x: a, y: o } = i, s = lc(this, a, o);
|
|
5813
|
+
this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack && nc(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, Ys(n, mc.move, this.handleDrag), Ys(n, mc.stop, this.handleDragStop));
|
|
5804
5814
|
}, this.handleDrag = (e) => {
|
|
5805
|
-
let t =
|
|
5815
|
+
let t = cc(e, this.touchIdentifier, this);
|
|
5806
5816
|
if (t == null) return;
|
|
5807
5817
|
let { x: n, y: r } = t;
|
|
5808
5818
|
if (Array.isArray(this.props.grid)) {
|
|
5809
5819
|
let e = n - this.lastX, t = r - this.lastY;
|
|
5810
|
-
if ([e, t] =
|
|
5820
|
+
if ([e, t] = ac(this.props.grid, e, t), !e && !t) return;
|
|
5811
5821
|
n = this.lastX + e, r = this.lastY + t;
|
|
5812
5822
|
}
|
|
5813
|
-
let i =
|
|
5823
|
+
let i = lc(this, n, r);
|
|
5814
5824
|
if (!1 !== this.props.onDrag(e, i) && !1 !== this.mounted) this.lastX = n, this.lastY = r;
|
|
5815
5825
|
else try {
|
|
5816
5826
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
@@ -5820,30 +5830,30 @@ var uc = {
|
|
|
5820
5830
|
}
|
|
5821
5831
|
}, this.handleDragStop = (e) => {
|
|
5822
5832
|
if (!this.dragging) return;
|
|
5823
|
-
let t =
|
|
5833
|
+
let t = cc(e, this.touchIdentifier, this);
|
|
5824
5834
|
if (t == null) return;
|
|
5825
5835
|
let { x: n, y: r } = t;
|
|
5826
5836
|
if (Array.isArray(this.props.grid)) {
|
|
5827
5837
|
let e = n - this.lastX || 0, t = r - this.lastY || 0;
|
|
5828
|
-
[e, t] =
|
|
5838
|
+
[e, t] = ac(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
|
|
5829
5839
|
}
|
|
5830
|
-
let i =
|
|
5840
|
+
let i = lc(this, n, r);
|
|
5831
5841
|
if (!1 === this.props.onStop(e, i) || !1 === this.mounted) return !1;
|
|
5832
5842
|
let a = this.findDOMNode();
|
|
5833
|
-
a && this.props.enableUserSelectHack &&
|
|
5834
|
-
}, this.onMouseDown = (e) => (
|
|
5843
|
+
a && this.props.enableUserSelectHack && rc(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (Xs(a.ownerDocument, mc.move, this.handleDrag), Xs(a.ownerDocument, mc.stop, this.handleDragStop));
|
|
5844
|
+
}, this.onMouseDown = (e) => (mc = pc, this.handleDragStart(e)), this.onMouseUp = (e) => (mc = pc, this.handleDragStop(e)), this.onTouchStart = (e) => (mc = fc, this.handleDragStart(e)), this.onTouchEnd = (e) => (mc = fc, this.handleDragStop(e));
|
|
5835
5845
|
}
|
|
5836
5846
|
componentDidMount() {
|
|
5837
5847
|
this.mounted = !0;
|
|
5838
5848
|
let e = this.findDOMNode();
|
|
5839
|
-
e &&
|
|
5849
|
+
e && Ys(e, fc.start, this.onTouchStart, { passive: !1 });
|
|
5840
5850
|
}
|
|
5841
5851
|
componentWillUnmount() {
|
|
5842
5852
|
this.mounted = !1;
|
|
5843
5853
|
let e = this.findDOMNode();
|
|
5844
5854
|
if (e) {
|
|
5845
5855
|
let { ownerDocument: t } = e;
|
|
5846
|
-
|
|
5856
|
+
Xs(t, pc.move, this.handleDrag), Xs(t, fc.move, this.handleDrag), Xs(t, pc.stop, this.handleDragStop), Xs(t, fc.stop, this.handleDragStop), Xs(e, fc.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && rc(t);
|
|
5847
5857
|
}
|
|
5848
5858
|
}
|
|
5849
5859
|
findDOMNode() {
|
|
@@ -5859,7 +5869,7 @@ var uc = {
|
|
|
5859
5869
|
});
|
|
5860
5870
|
}
|
|
5861
5871
|
};
|
|
5862
|
-
|
|
5872
|
+
hc.displayName = "DraggableCore", hc.propTypes = {
|
|
5863
5873
|
allowAnyClick: Q.default.bool,
|
|
5864
5874
|
allowMobileScroll: Q.default.bool,
|
|
5865
5875
|
children: Q.default.node.isRequired,
|
|
@@ -5878,10 +5888,10 @@ pc.displayName = "DraggableCore", pc.propTypes = {
|
|
|
5878
5888
|
onStop: Q.default.func,
|
|
5879
5889
|
onMouseDown: Q.default.func,
|
|
5880
5890
|
scale: Q.default.number,
|
|
5881
|
-
className:
|
|
5882
|
-
style:
|
|
5883
|
-
transform:
|
|
5884
|
-
},
|
|
5891
|
+
className: Hs,
|
|
5892
|
+
style: Hs,
|
|
5893
|
+
transform: Hs
|
|
5894
|
+
}, hc.defaultProps = {
|
|
5885
5895
|
allowAnyClick: !1,
|
|
5886
5896
|
allowMobileScroll: !1,
|
|
5887
5897
|
disabled: !1,
|
|
@@ -5892,17 +5902,17 @@ pc.displayName = "DraggableCore", pc.propTypes = {
|
|
|
5892
5902
|
onMouseDown: function() {},
|
|
5893
5903
|
scale: 1
|
|
5894
5904
|
};
|
|
5895
|
-
var
|
|
5905
|
+
var gc = class extends _.Component {
|
|
5896
5906
|
constructor(e) {
|
|
5897
5907
|
super(e), this.onDragStart = (e, t) => {
|
|
5898
|
-
if (!1 === this.props.onStart(e,
|
|
5908
|
+
if (!1 === this.props.onStart(e, uc(this, t))) return !1;
|
|
5899
5909
|
this.setState({
|
|
5900
5910
|
dragging: !0,
|
|
5901
5911
|
dragged: !0
|
|
5902
5912
|
});
|
|
5903
5913
|
}, this.onDrag = (e, t) => {
|
|
5904
5914
|
if (!this.state.dragging) return !1;
|
|
5905
|
-
let n =
|
|
5915
|
+
let n = uc(this, t), r = {
|
|
5906
5916
|
x: n.x,
|
|
5907
5917
|
y: n.y,
|
|
5908
5918
|
slackX: 0,
|
|
@@ -5922,7 +5932,7 @@ var mc = class extends _.Component {
|
|
|
5922
5932
|
bottom: e.bottom
|
|
5923
5933
|
};
|
|
5924
5934
|
}(r);
|
|
5925
|
-
let i =
|
|
5935
|
+
let i = dc(e);
|
|
5926
5936
|
if (typeof r == "string") {
|
|
5927
5937
|
let { ownerDocument: e } = i, t = e.defaultView;
|
|
5928
5938
|
if (!t) throw Error("Cannot resolve the owner window of the draggable node.");
|
|
@@ -5932,18 +5942,18 @@ var mc = class extends _.Component {
|
|
|
5932
5942
|
r = {
|
|
5933
5943
|
left: -i.offsetLeft + $(s.paddingLeft) + $(o.marginLeft),
|
|
5934
5944
|
top: -i.offsetTop + $(s.paddingTop) + $(o.marginTop),
|
|
5935
|
-
right:
|
|
5936
|
-
bottom:
|
|
5945
|
+
right: ec(a) - Qs(i) - i.offsetLeft + $(s.paddingRight) - $(o.marginRight),
|
|
5946
|
+
bottom: $s(a) - Zs(i) - i.offsetTop + $(s.paddingBottom) - $(o.marginBottom)
|
|
5937
5947
|
};
|
|
5938
5948
|
}
|
|
5939
|
-
return
|
|
5949
|
+
return Vs(r.right) && (t = Math.min(t, r.right)), Vs(r.bottom) && (n = Math.min(n, r.bottom)), Vs(r.left) && (t = Math.max(t, r.left)), Vs(r.top) && (n = Math.max(n, r.top)), [t, n];
|
|
5940
5950
|
}(this, r.x, r.y);
|
|
5941
5951
|
r.x = i, r.y = a, r.slackX = this.state.slackX + (e - r.x), r.slackY = this.state.slackY + (t - r.y), n.x = r.x, n.y = r.y, n.deltaX = r.x - this.state.x, n.deltaY = r.y - this.state.y;
|
|
5942
5952
|
}
|
|
5943
5953
|
if (!1 === this.props.onDrag(e, n)) return !1;
|
|
5944
5954
|
this.setState(r);
|
|
5945
5955
|
}, this.onDragStop = (e, t) => {
|
|
5946
|
-
if (!this.state.dragging || !1 === this.props.onStop(e,
|
|
5956
|
+
if (!this.state.dragging || !1 === this.props.onStop(e, uc(this, t))) return !1;
|
|
5947
5957
|
let n = {
|
|
5948
5958
|
dragging: !1,
|
|
5949
5959
|
slackX: 0,
|
|
@@ -5985,20 +5995,20 @@ var mc = class extends _.Component {
|
|
|
5985
5995
|
}
|
|
5986
5996
|
render() {
|
|
5987
5997
|
let { axis: e, bounds: t, children: n, defaultPosition: r, defaultClassName: i, defaultClassNameDragging: a, defaultClassNameDragged: o, position: s, positionOffset: c, scale: l, ...u } = this.props, d = {}, f = null, p = !s || this.state.dragging, m = s || r, h = {
|
|
5988
|
-
x:
|
|
5989
|
-
y:
|
|
5998
|
+
x: oc(this) && p ? this.state.x : m.x,
|
|
5999
|
+
y: sc(this) && p ? this.state.y : m.y
|
|
5990
6000
|
};
|
|
5991
6001
|
this.state.isElementSVG ? f = function(e, t) {
|
|
5992
|
-
return
|
|
6002
|
+
return tc(e, t, "");
|
|
5993
6003
|
}(h, c) : d = function(e, t) {
|
|
5994
|
-
let n =
|
|
5995
|
-
return { [
|
|
6004
|
+
let n = tc(e, t, "px");
|
|
6005
|
+
return { [Ws("transform", Gs)]: n };
|
|
5996
6006
|
}(h, c);
|
|
5997
6007
|
let g = _.Children.only(n), v = Y(g.props.className || "", i, {
|
|
5998
6008
|
[a]: this.state.dragging,
|
|
5999
6009
|
[o]: this.state.dragged
|
|
6000
6010
|
});
|
|
6001
|
-
return _.createElement(
|
|
6011
|
+
return _.createElement(hc, {
|
|
6002
6012
|
...u,
|
|
6003
6013
|
onStart: this.onDragStart,
|
|
6004
6014
|
onDrag: this.onDrag,
|
|
@@ -6013,8 +6023,8 @@ var mc = class extends _.Component {
|
|
|
6013
6023
|
}));
|
|
6014
6024
|
}
|
|
6015
6025
|
};
|
|
6016
|
-
|
|
6017
|
-
...
|
|
6026
|
+
gc.displayName = "Draggable", gc.propTypes = {
|
|
6027
|
+
...hc.propTypes,
|
|
6018
6028
|
axis: Q.default.oneOf([
|
|
6019
6029
|
"both",
|
|
6020
6030
|
"x",
|
|
@@ -6046,11 +6056,11 @@ mc.displayName = "Draggable", mc.propTypes = {
|
|
|
6046
6056
|
x: Q.default.number,
|
|
6047
6057
|
y: Q.default.number
|
|
6048
6058
|
}),
|
|
6049
|
-
className:
|
|
6050
|
-
style:
|
|
6051
|
-
transform:
|
|
6052
|
-
},
|
|
6053
|
-
...
|
|
6059
|
+
className: Hs,
|
|
6060
|
+
style: Hs,
|
|
6061
|
+
transform: Hs
|
|
6062
|
+
}, gc.defaultProps = {
|
|
6063
|
+
...hc.defaultProps,
|
|
6054
6064
|
axis: "both",
|
|
6055
6065
|
bounds: !1,
|
|
6056
6066
|
defaultClassName: "react-draggable",
|
|
@@ -6062,7 +6072,7 @@ mc.displayName = "Draggable", mc.propTypes = {
|
|
|
6062
6072
|
},
|
|
6063
6073
|
scale: 1
|
|
6064
6074
|
};
|
|
6065
|
-
var
|
|
6075
|
+
var _c = {
|
|
6066
6076
|
axis: Q.default.oneOf([
|
|
6067
6077
|
"both",
|
|
6068
6078
|
"x",
|
|
@@ -6114,12 +6124,12 @@ var hc = {
|
|
|
6114
6124
|
let [t] = e;
|
|
6115
6125
|
return t.axis === "both" || t.axis === "x" ? Q.default.number.isRequired(...e) : Q.default.number(...e);
|
|
6116
6126
|
}
|
|
6117
|
-
},
|
|
6127
|
+
}, vc = class extends _.Component {
|
|
6118
6128
|
constructor(...e) {
|
|
6119
6129
|
super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
|
|
6120
6130
|
}
|
|
6121
6131
|
static {
|
|
6122
|
-
this.propTypes =
|
|
6132
|
+
this.propTypes = _c;
|
|
6123
6133
|
}
|
|
6124
6134
|
static {
|
|
6125
6135
|
this.defaultProps = {
|
|
@@ -6193,7 +6203,7 @@ var hc = {
|
|
|
6193
6203
|
className: (t ? `${t} ` : "") + "react-resizable",
|
|
6194
6204
|
children: [..._.Children.toArray(e.props.children), ...m.map((e) => {
|
|
6195
6205
|
let t = this.handleRefs[e] ?? (this.handleRefs[e] = _.createRef());
|
|
6196
|
-
return S(
|
|
6206
|
+
return S(hc, {
|
|
6197
6207
|
...n,
|
|
6198
6208
|
nodeRef: t,
|
|
6199
6209
|
key: `resizableHandle-${e}`,
|
|
@@ -6208,7 +6218,7 @@ var hc = {
|
|
|
6208
6218
|
}), b.className && y.props.className && (b.className = `${y.props.className} ${b.className}`), v.cloneElement(y, b);
|
|
6209
6219
|
var y, b;
|
|
6210
6220
|
}
|
|
6211
|
-
},
|
|
6221
|
+
}, yc = class extends _.Component {
|
|
6212
6222
|
constructor(...e) {
|
|
6213
6223
|
super(...e), this.state = {
|
|
6214
6224
|
width: this.props.width,
|
|
@@ -6222,7 +6232,7 @@ var hc = {
|
|
|
6222
6232
|
}
|
|
6223
6233
|
static {
|
|
6224
6234
|
this.propTypes = {
|
|
6225
|
-
...
|
|
6235
|
+
..._c,
|
|
6226
6236
|
children: Q.default.element
|
|
6227
6237
|
};
|
|
6228
6238
|
}
|
|
@@ -6236,7 +6246,7 @@ var hc = {
|
|
|
6236
6246
|
}
|
|
6237
6247
|
render() {
|
|
6238
6248
|
let { handle: e, handleSize: t, onResize: n, onResizeStart: r, onResizeStop: i, draggableOpts: a, minConstraints: o, maxConstraints: s, lockAspectRatio: c, axis: l, width: u, height: d, resizeHandles: f, style: p, transformScale: m, ...h } = this.props;
|
|
6239
|
-
return B(
|
|
6249
|
+
return B(vc, {
|
|
6240
6250
|
axis: l,
|
|
6241
6251
|
draggableOpts: a,
|
|
6242
6252
|
handle: e,
|
|
@@ -6262,4 +6272,4 @@ var hc = {
|
|
|
6262
6272
|
});
|
|
6263
6273
|
}
|
|
6264
6274
|
};
|
|
6265
|
-
export { pe as ACCUMULATE, cn as AnimationModeProvider,
|
|
6275
|
+
export { pe as ACCUMULATE, cn as AnimationModeProvider, Os as AxisViewport, rn as Command, Ut as CommandAnchorProvider, Ce as CommandButtonEntryLabel, ye as CommandButtonRegistryContext, xe as CommandButtonRegistryProvider, fe as CommandButtonType, Mt as CommandChainContext, Gt as CommandFallbackContext, Jt as CommandFallbackProvider, Xt as CommandFocusProvider, Pt as CommandOrderContext, me as CommandRegistry, Le as CommandRegistryContext, jt as CommandResolver, Vt as CommandResolverContext, ze as CommandScope, It as CommandScopeContext, zt as CommandScopeProvider, He as ConstantActivation, ve as DefaultCommandButtonRegistry, Ie as DefaultCommandCatalogService, he as DefaultCommandRegistry, n as DefaultIconService, jn as DefaultReactNotifier, t as DynamicIcon, jo as EDGE_HOLD_INTERVAL_MS, Ja as FloatPanel, qa as FloatPanelSurface, Ua as FloatPopper, Qa as FloatProvider, $t as FloatStackProvider, Xa as FloatTooltip, Ue as FocusActivation, Sn as FocusKeyNavigation, Yr as INPUT_SELECTION_TINT, Jr as INPUT_SELECTION_VAR, so as InMemoryStore, Et as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, vr as LanguageStateKey, We as LayerActivation, yo as LocalStorageStore, Ve as ManualActivation, de as MouseButtonCodes, On as NotifierType, Mo as PAGE_INITIAL_DELAY_MS, No as PAGE_REPEAT_DELAY_MS, go as PersistentStateProvider, we as QUICK_ACTION_TAG, Ir as ReactErrorBoundary, Nn as ReactNotifierProvider, ct as ReactUtils, vc as Resizable, yc as ResizableBox, wn as RoundedTab, bs as SCROLL_ANIMATION_MS, Hr as SERIES_COUNT, Zr as SXL_THEME_LAYERS, Qr as SXL_THEME_LAYER_ORDER, _s as ScrollPane, ss as ScrollUtils, Zo as Scrollbar, Z as ScrollbarOrientation, oo as SplitPane, to as SplitPaneResizer, ti as THEME_MODE_ATTR, ni as THEME_SURFACE_ATTR, Lo as TOUCH_THUMB_ASPECT, Ro as TOUCH_THUMB_MARGIN, Bo as TOUCH_THUMB_MARGIN_CROSS, Vo as TOUCH_THUMB_MARGIN_END, zo as TOUCH_THUMB_MARGIN_START, Io as TOUCH_THUMB_SIZE, ci as TokenThemeContext, ui as TokenThemeProvider, yn as ToolTipPlacement, Go as TouchThumbFrameProvider, Yo as TouchThumbHandle, Vr as UncaughtErrorBoundary, ys as Viewport, Ps as VirtualScrollbar, r as WalkingIcon, je as asCommandCatalog, Rt as attachWhenReady, ei as buildThemeCSS, Ne as chromeToPartial, Sr as composeCaretRect, kn as createBusyHandle, Fe as createCommandCatalogService, e as createDynamicIconService, An as createNoopBusyHandle, Ee as createResolvedCommand, ii as createThemeScopeClass, Po as createTrackDrag, Ga as defaultCreateFloatPopupPanel, Ao as defaultCreateScrollEdgeButton, ko as defaultCreateScrollEndButton, Oo as defaultCreateScrollStartButton, Za as defaultRenderFloatPanel, vs as defaultRenderScrollCorner, Ur as defaultTheme, Me as fetchCatalog, _i as floatThemeScopeProps, Vn as getDevicePixelRatio, Is as getScrollbarCssVariables, wr as getTextareaCaretRect, Tt as isCaretKey, Ot as keyEventCanonicals, Dt as keyStrokeToCanonical, Dn as lazyComponent, Pe as mergeChrome, ke as parseShortcutString, q as reduceDefinitions, Be as resolveAnchorSource, di as resolveToken, fi as resolveTokens, Fs as scrollbarThemedClassName, Ae as serializeShortcut, gr as setEditMode, ri as themeSurfaceProps, Kr as themeVars, Gr as toVars, Uo as touchThumbCornerReserve, Ho as touchThumbCrossInset, vn as useAnimatedMeasure, sn as useAnimationMode, Ln as useBoundSyncExternalStore, J as useCallbackRef, Se as useCommandButtonEntry, be as useCommandButtonRegistry, Nt as useCommandChain, Bt as useCommandElement, Wt as useCommandExecute, Kt as useCommandFallback, Zt as useCommandFocusRestore, Ft as useCommandOrder, Re as useCommandRegistry, Ht as useCommandResolver, Lt as useCommandScope, tn as useCommands, nn as useContributeCommands, Bn as useDevicePixelRatio, _r as useEditMode, en as useFloat, $a as useFloatStack, gi as useFloatSurface, Un as useFullscreen, Jn as useFullscreenPortal, Er as useGlobalClipboard, Mr as useId, Pr as useImperativeElement, yr as useLanguage, En as useLazyRetry, er as useMouseDownAndHoldListener, Pn as useNotifier, Hn as useOnClickOrFocusAway, zn as useOptionalBoundSyncExternalStore, In as useOptionalSyncExternalStore, mo as usePersistentState, ai as useResolvedThemeMode, $n as useSynchronizedPointerHandler, Qn as useTextSelectionDrag, Tr as useTextareaCaretRect, li as useTokenThemeContext, Ko as useTouchThumbFrame, Dr as useTraceUpdate, Fo as useTrackDrag, br as useTranslator };
|