@univerjs/design 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +10 -10
- package/lib/es/index.js +666 -661
- package/lib/index.js +666 -661
- package/lib/umd/index.js +11 -11
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
|
-
import K, { forwardRef as He, useRef as ye, createElement as xt, useState as
|
|
2
|
+
import K, { forwardRef as He, useRef as ye, createElement as xt, useState as De, Children as Ei, cloneElement as As, createContext as kc, useMemo as lt, useContext as tn, isValidElement as Ls, useCallback as ft, useEffect as Qe, memo as Vi, useLayoutEffect as $s, version as rh, useImperativeHandle as Ic } from "react";
|
|
3
3
|
import { jsx as R, jsxs as ve, Fragment as pn } from "react/jsx-runtime";
|
|
4
4
|
import * as Ac from "react-dom";
|
|
5
5
|
import or, { createPortal as qi, unstable_batchedUpdates as nh, flushSync as es } from "react-dom";
|
|
@@ -209,7 +209,7 @@ function Zc() {
|
|
|
209
209
|
return n;
|
|
210
210
|
}
|
|
211
211
|
const Hs = "-", Ph = (e) => {
|
|
212
|
-
const t =
|
|
212
|
+
const t = Dh(e), {
|
|
213
213
|
conflictingClassGroups: r,
|
|
214
214
|
conflictingClassGroupModifiers: n
|
|
215
215
|
} = e;
|
|
@@ -242,7 +242,7 @@ const Hs = "-", Ph = (e) => {
|
|
|
242
242
|
if (r)
|
|
243
243
|
return "arbitrary.." + r;
|
|
244
244
|
}
|
|
245
|
-
},
|
|
245
|
+
}, Dh = (e) => {
|
|
246
246
|
const {
|
|
247
247
|
theme: t,
|
|
248
248
|
prefix: r
|
|
@@ -261,7 +261,7 @@ const Hs = "-", Ph = (e) => {
|
|
|
261
261
|
return;
|
|
262
262
|
}
|
|
263
263
|
if (typeof o == "function") {
|
|
264
|
-
if (
|
|
264
|
+
if (_h(o)) {
|
|
265
265
|
ts(o(n), t, r, n);
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
@@ -283,7 +283,7 @@ const Hs = "-", Ph = (e) => {
|
|
|
283
283
|
validators: []
|
|
284
284
|
}), r = r.nextPart.get(n);
|
|
285
285
|
}), r;
|
|
286
|
-
},
|
|
286
|
+
}, _h = (e) => e.isThemeGetter, Oh = (e, t) => t ? e.map(([r, n]) => {
|
|
287
287
|
const o = n.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([a, s]) => [t + a, s])) : i);
|
|
288
288
|
return [r, o];
|
|
289
289
|
}) : e, Th = (e) => {
|
|
@@ -437,7 +437,7 @@ const rt = (e) => {
|
|
|
437
437
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
438
438
|
jh.test(e) && !Vh.test(e)
|
|
439
439
|
), rd = () => !1, tm = (e) => qh.test(e), rm = (e) => Gh.test(e), nm = () => {
|
|
440
|
-
const e = rt("colors"), t = rt("spacing"), r = rt("blur"), n = rt("brightness"), o = rt("borderColor"), i = rt("borderRadius"), a = rt("borderSpacing"), s = rt("borderWidth"), l = rt("contrast"), c = rt("grayscale"), d = rt("hueRotate"), u = rt("invert"), y = rt("gap"), h = rt("gradientColorStops"), g = rt("gradientColorStopPositions"), w = rt("inset"), f = rt("margin"), v = rt("opacity"), m = rt("padding"), b = rt("saturate"), C = rt("scale"), x = rt("sepia"), S = rt("skew"), E = rt("space"), M = rt("translate"),
|
|
440
|
+
const e = rt("colors"), t = rt("spacing"), r = rt("blur"), n = rt("brightness"), o = rt("borderColor"), i = rt("borderRadius"), a = rt("borderSpacing"), s = rt("borderWidth"), l = rt("contrast"), c = rt("grayscale"), d = rt("hueRotate"), u = rt("invert"), y = rt("gap"), h = rt("gradientColorStops"), g = rt("gradientColorStopPositions"), w = rt("inset"), f = rt("margin"), v = rt("opacity"), m = rt("padding"), b = rt("saturate"), C = rt("scale"), x = rt("sepia"), S = rt("skew"), E = rt("space"), M = rt("translate"), _ = () => ["auto", "contain", "none"], P = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", Ne, t], I = () => [Ne, t], B = () => ["", Mr, Vr], $ = () => ["auto", $n, Ne], A = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], z = () => ["", "0", Ne], W = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [$n, Ne];
|
|
441
441
|
return {
|
|
442
442
|
cacheSize: 500,
|
|
443
443
|
separator: ":",
|
|
@@ -588,21 +588,21 @@ const rt = (e) => {
|
|
|
588
588
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
589
589
|
*/
|
|
590
590
|
overscroll: [{
|
|
591
|
-
overscroll:
|
|
591
|
+
overscroll: _()
|
|
592
592
|
}],
|
|
593
593
|
/**
|
|
594
594
|
* Overscroll Behavior X
|
|
595
595
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
596
596
|
*/
|
|
597
597
|
"overscroll-x": [{
|
|
598
|
-
"overscroll-x":
|
|
598
|
+
"overscroll-x": _()
|
|
599
599
|
}],
|
|
600
600
|
/**
|
|
601
601
|
* Overscroll Behavior Y
|
|
602
602
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
603
603
|
*/
|
|
604
604
|
"overscroll-y": [{
|
|
605
|
-
"overscroll-y":
|
|
605
|
+
"overscroll-y": _()
|
|
606
606
|
}],
|
|
607
607
|
/**
|
|
608
608
|
* Position
|
|
@@ -2470,7 +2470,7 @@ function ae(...e) {
|
|
|
2470
2470
|
return om(Zc(e));
|
|
2471
2471
|
}
|
|
2472
2472
|
function BE(e) {
|
|
2473
|
-
const { className: t, items: r } = e, [n, o] =
|
|
2473
|
+
const { className: t, items: r } = e, [n, o] = De(null), i = (a) => {
|
|
2474
2474
|
o(n === a ? null : a);
|
|
2475
2475
|
};
|
|
2476
2476
|
return /* @__PURE__ */ R(
|
|
@@ -2780,7 +2780,7 @@ const vm = Ws(
|
|
|
2780
2780
|
size: "middle"
|
|
2781
2781
|
}
|
|
2782
2782
|
}
|
|
2783
|
-
),
|
|
2783
|
+
), _r = He(
|
|
2784
2784
|
({ className: e, variant: t, size: r, asChild: n = !1, ...o }, i) => /* @__PURE__ */ R(
|
|
2785
2785
|
n ? sm : "button",
|
|
2786
2786
|
{
|
|
@@ -2791,7 +2791,7 @@ const vm = Ws(
|
|
|
2791
2791
|
}
|
|
2792
2792
|
)
|
|
2793
2793
|
);
|
|
2794
|
-
|
|
2794
|
+
_r.displayName = "Button";
|
|
2795
2795
|
const VE = ({
|
|
2796
2796
|
className: e,
|
|
2797
2797
|
orientation: t = "horizontal",
|
|
@@ -2866,10 +2866,10 @@ function od(e) {
|
|
|
2866
2866
|
}
|
|
2867
2867
|
var mi = { exports: {} }, pm = mi.exports, Wu;
|
|
2868
2868
|
function hm() {
|
|
2869
|
-
return Wu || (Wu = 1, function(e, t) {
|
|
2869
|
+
return Wu || (Wu = 1, (function(e, t) {
|
|
2870
2870
|
(function(r, n) {
|
|
2871
2871
|
e.exports = n();
|
|
2872
|
-
})(pm, function() {
|
|
2872
|
+
})(pm, (function() {
|
|
2873
2873
|
var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", a = "second", s = "minute", l = "hour", c = "day", d = "week", u = "month", y = "quarter", h = "year", g = "date", w = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
|
|
2874
2874
|
var A = ["th", "st", "nd", "rd"], O = $ % 100;
|
|
2875
2875
|
return "[" + $ + (A[(O - 20) % 10] || A[O] || A[0]) + "]";
|
|
@@ -2893,7 +2893,7 @@ function hm() {
|
|
|
2893
2893
|
S[x] = m;
|
|
2894
2894
|
var E = "$isDayjsObject", M = function($) {
|
|
2895
2895
|
return $ instanceof I || !(!$ || !$[E]);
|
|
2896
|
-
},
|
|
2896
|
+
}, _ = function $(A, O, L) {
|
|
2897
2897
|
var k;
|
|
2898
2898
|
if (!A) return x;
|
|
2899
2899
|
if (typeof A == "string") {
|
|
@@ -2911,16 +2911,16 @@ function hm() {
|
|
|
2911
2911
|
var O = typeof A == "object" ? A : {};
|
|
2912
2912
|
return O.date = $, O.args = arguments, new I(O);
|
|
2913
2913
|
}, T = C;
|
|
2914
|
-
T.l =
|
|
2914
|
+
T.l = _, T.i = M, T.w = function($, A) {
|
|
2915
2915
|
return P($, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
|
2916
2916
|
};
|
|
2917
|
-
var I = function() {
|
|
2917
|
+
var I = (function() {
|
|
2918
2918
|
function $(O) {
|
|
2919
|
-
this.$L =
|
|
2919
|
+
this.$L = _(O.locale, null, !0), this.parse(O), this.$x = this.$x || O.x || {}, this[E] = !0;
|
|
2920
2920
|
}
|
|
2921
2921
|
var A = $.prototype;
|
|
2922
2922
|
return A.parse = function(O) {
|
|
2923
|
-
this.$d = function(L) {
|
|
2923
|
+
this.$d = (function(L) {
|
|
2924
2924
|
var k = L.date, z = L.utc;
|
|
2925
2925
|
if (k === null) return /* @__PURE__ */ new Date(NaN);
|
|
2926
2926
|
if (T.u(k)) return /* @__PURE__ */ new Date();
|
|
@@ -2933,7 +2933,7 @@ function hm() {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
2935
|
return new Date(k);
|
|
2936
|
-
}(O), this.init();
|
|
2936
|
+
})(O), this.init();
|
|
2937
2937
|
}, A.init = function() {
|
|
2938
2938
|
var O = this.$d;
|
|
2939
2939
|
this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
|
|
@@ -3012,17 +3012,17 @@ function hm() {
|
|
|
3012
3012
|
}, A.format = function(O) {
|
|
3013
3013
|
var L = this, k = this.$locale();
|
|
3014
3014
|
if (!this.isValid()) return k.invalidDate || w;
|
|
3015
|
-
var z = O || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), H = this.$H, Y = this.$m, q = this.$M, G = k.weekdays, ee = k.months, pe = k.meridiem, ge = function(Q, N,
|
|
3016
|
-
return Q && (Q[N] || Q(L, z)) ||
|
|
3015
|
+
var z = O || "YYYY-MM-DDTHH:mm:ssZ", W = T.z(this), H = this.$H, Y = this.$m, q = this.$M, G = k.weekdays, ee = k.months, pe = k.meridiem, ge = function(Q, N, D, F) {
|
|
3016
|
+
return Q && (Q[N] || Q(L, z)) || D[N].slice(0, F);
|
|
3017
3017
|
}, j = function(Q) {
|
|
3018
3018
|
return T.s(H % 12 || 12, Q, "0");
|
|
3019
|
-
}, V = pe || function(Q, N,
|
|
3019
|
+
}, V = pe || function(Q, N, D) {
|
|
3020
3020
|
var F = Q < 12 ? "AM" : "PM";
|
|
3021
|
-
return
|
|
3021
|
+
return D ? F.toLowerCase() : F;
|
|
3022
3022
|
};
|
|
3023
|
-
return z.replace(v, function(Q, N) {
|
|
3024
|
-
return N || function(
|
|
3025
|
-
switch (
|
|
3023
|
+
return z.replace(v, (function(Q, N) {
|
|
3024
|
+
return N || (function(D) {
|
|
3025
|
+
switch (D) {
|
|
3026
3026
|
case "YY":
|
|
3027
3027
|
return String(L.$y).slice(-2);
|
|
3028
3028
|
case "YYYY":
|
|
@@ -3073,8 +3073,8 @@ function hm() {
|
|
|
3073
3073
|
return W;
|
|
3074
3074
|
}
|
|
3075
3075
|
return null;
|
|
3076
|
-
}(Q) || W.replace(":", "");
|
|
3077
|
-
});
|
|
3076
|
+
})(Q) || W.replace(":", "");
|
|
3077
|
+
}));
|
|
3078
3078
|
}, A.utcOffset = function() {
|
|
3079
3079
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3080
3080
|
}, A.diff = function(O, L, k) {
|
|
@@ -3116,7 +3116,7 @@ function hm() {
|
|
|
3116
3116
|
return S[this.$L];
|
|
3117
3117
|
}, A.locale = function(O, L) {
|
|
3118
3118
|
if (!O) return this.$L;
|
|
3119
|
-
var k = this.clone(), z =
|
|
3119
|
+
var k = this.clone(), z = _(O, L, !0);
|
|
3120
3120
|
return z && (k.$L = z), k;
|
|
3121
3121
|
}, A.clone = function() {
|
|
3122
3122
|
return T.w(this.$d, this);
|
|
@@ -3129,18 +3129,18 @@ function hm() {
|
|
|
3129
3129
|
}, A.toString = function() {
|
|
3130
3130
|
return this.$d.toUTCString();
|
|
3131
3131
|
}, $;
|
|
3132
|
-
}(), B = I.prototype;
|
|
3133
|
-
return P.prototype = B, [["$ms", i], ["$s", a], ["$m", s], ["$H", l], ["$W", c], ["$M", u], ["$y", h], ["$D", g]].forEach(function($) {
|
|
3132
|
+
})(), B = I.prototype;
|
|
3133
|
+
return P.prototype = B, [["$ms", i], ["$s", a], ["$m", s], ["$H", l], ["$W", c], ["$M", u], ["$y", h], ["$D", g]].forEach((function($) {
|
|
3134
3134
|
B[$[1]] = function(A) {
|
|
3135
3135
|
return this.$g(A, $[0], $[1]);
|
|
3136
3136
|
};
|
|
3137
|
-
}), P.extend = function($, A) {
|
|
3137
|
+
})), P.extend = function($, A) {
|
|
3138
3138
|
return $.$i || ($(A, I, P), $.$i = !0), P;
|
|
3139
|
-
}, P.locale =
|
|
3139
|
+
}, P.locale = _, P.isDayjs = M, P.unix = function($) {
|
|
3140
3140
|
return P(1e3 * $);
|
|
3141
3141
|
}, P.en = S[x], P.Ls = S, P.p = {}, P;
|
|
3142
|
-
});
|
|
3143
|
-
}(mi)), mi.exports;
|
|
3142
|
+
}));
|
|
3143
|
+
})(mi)), mi.exports;
|
|
3144
3144
|
}
|
|
3145
3145
|
var mm = hm();
|
|
3146
3146
|
const Ro = /* @__PURE__ */ js(mm), mn = "univer-scrollbar-thin univer-scrollbar-track-gray-50 univer-scrollbar-thumb-gray-300 dark:!univer-scrollbar-track-gray-900 dark:!univer-scrollbar-thumb-gray-700", Gn = "univer-border-gray-200 dark:!univer-border-gray-600 univer-border-solid", $t = ae(Gn, "univer-border"), GE = ae(Gn, "univer-border-l univer-border-b univer-border-0"), UE = ae(Gn, "univer-border-l univer-border-0"), KE = ae(Gn, "univer-border-t univer-border-0"), YE = ae(Gn, "univer-border-b univer-border-0"), XE = ae(Gn, "univer-border-r univer-border-0"), ZE = "univer-divide-gray-200 dark:!univer-divide-gray-600 univer-divide-y univer-divide-x-0 univer-divide-solid", QE = "univer-divide-gray-200 dark:!univer-divide-gray-600 univer-divide-x univer-divide-y-0 univer-divide-solid";
|
|
@@ -3187,7 +3187,7 @@ function Na(e) {
|
|
|
3187
3187
|
);
|
|
3188
3188
|
}
|
|
3189
3189
|
function rs(e) {
|
|
3190
|
-
const { className: t, max: r, min: n, showTime: o = !1, value: i, onValueChange: a } = e, { locale: s } = tn(Ir), { year: l, weekDays: c, months: d } = s == null ? void 0 : s.Calendar, u = /* @__PURE__ */ new Date(), [y, h] =
|
|
3190
|
+
const { className: t, max: r, min: n, showTime: o = !1, value: i, onValueChange: a } = e, { locale: s } = tn(Ir), { year: l, weekDays: c, months: d } = s == null ? void 0 : s.Calendar, u = /* @__PURE__ */ new Date(), [y, h] = De((i != null ? i : u).getFullYear()), [g, w] = De((i != null ? i : u).getMonth());
|
|
3191
3191
|
function f() {
|
|
3192
3192
|
w((P) => P === 0 ? (h((T) => T - 1), 11) : P - 1);
|
|
3193
3193
|
}
|
|
@@ -3220,7 +3220,7 @@ function rs(e) {
|
|
|
3220
3220
|
const T = (A = i == null ? void 0 : i.getHours()) != null ? A : u.getHours(), I = (O = i == null ? void 0 : i.getMinutes()) != null ? O : u.getMinutes(), B = (L = i == null ? void 0 : i.getSeconds()) != null ? L : u.getSeconds(), $ = new Date(y, g, P, T, I, B);
|
|
3221
3221
|
a == null || a($);
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function _(P) {
|
|
3224
3224
|
var A;
|
|
3225
3225
|
const T = P.getHours(), I = P.getMinutes(), B = P.getSeconds(), $ = new Date(y, g, (A = i == null ? void 0 : i.getDate()) != null ? A : u.getDate(), T, I, B);
|
|
3226
3226
|
a == null || a($);
|
|
@@ -3292,7 +3292,7 @@ function rs(e) {
|
|
|
3292
3292
|
gm,
|
|
3293
3293
|
{
|
|
3294
3294
|
value: i,
|
|
3295
|
-
onValueChange:
|
|
3295
|
+
onValueChange: _
|
|
3296
3296
|
}
|
|
3297
3297
|
)
|
|
3298
3298
|
]
|
|
@@ -3623,7 +3623,7 @@ function wr(e) {
|
|
|
3623
3623
|
return (n = t.current) == null ? void 0 : n.call(t, ...r);
|
|
3624
3624
|
}, []);
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function Dm(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3627
3627
|
const r = wr(e);
|
|
3628
3628
|
p.useEffect(() => {
|
|
3629
3629
|
const n = (o) => {
|
|
@@ -3632,7 +3632,7 @@ function _m(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3632
3632
|
return t.addEventListener("keydown", n, { capture: !0 }), () => t.removeEventListener("keydown", n, { capture: !0 });
|
|
3633
3633
|
}, [r, t]);
|
|
3634
3634
|
}
|
|
3635
|
-
var
|
|
3635
|
+
var _m = "DismissableLayer", ns = "dismissableLayer.update", Om = "dismissableLayer.pointerDownOutside", Tm = "dismissableLayer.focusOutside", ju, ad = p.createContext({
|
|
3636
3636
|
layers: /* @__PURE__ */ new Set(),
|
|
3637
3637
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3638
3638
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3648,13 +3648,13 @@ var Dm = "DismissableLayer", ns = "dismissableLayer.update", Om = "dismissableLa
|
|
|
3648
3648
|
onDismiss: s,
|
|
3649
3649
|
...l
|
|
3650
3650
|
} = e, c = p.useContext(ad), [d, u] = p.useState(null), y = (E = d == null ? void 0 : d.ownerDocument) != null ? E : globalThis == null ? void 0 : globalThis.document, [, h] = p.useState({}), g = ct(t, (M) => u(M)), w = Array.from(c.layers), [f] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), v = w.indexOf(f), m = d ? w.indexOf(d) : -1, b = c.layersWithOutsidePointerEventsDisabled.size > 0, C = m >= v, x = Am((M) => {
|
|
3651
|
-
const
|
|
3651
|
+
const _ = M.target, P = [...c.branches].some((T) => T.contains(_));
|
|
3652
3652
|
!C || P || (o == null || o(M), a == null || a(M), M.defaultPrevented || s == null || s());
|
|
3653
3653
|
}, y), S = Lm((M) => {
|
|
3654
|
-
const
|
|
3655
|
-
[...c.branches].some((T) => T.contains(
|
|
3654
|
+
const _ = M.target;
|
|
3655
|
+
[...c.branches].some((T) => T.contains(_)) || (i == null || i(M), a == null || a(M), M.defaultPrevented || s == null || s());
|
|
3656
3656
|
}, y);
|
|
3657
|
-
return
|
|
3657
|
+
return Dm((M) => {
|
|
3658
3658
|
m === c.layers.size - 1 && (n == null || n(M), !M.defaultPrevented && s && (M.preventDefault(), s()));
|
|
3659
3659
|
}, y), p.useEffect(() => {
|
|
3660
3660
|
if (d)
|
|
@@ -3685,7 +3685,7 @@ var Dm = "DismissableLayer", ns = "dismissableLayer.update", Om = "dismissableLa
|
|
|
3685
3685
|
);
|
|
3686
3686
|
}
|
|
3687
3687
|
);
|
|
3688
|
-
Un.displayName =
|
|
3688
|
+
Un.displayName = _m;
|
|
3689
3689
|
var km = "DismissableLayerBranch", Im = p.forwardRef((e, t) => {
|
|
3690
3690
|
const r = p.useContext(ad), n = p.useRef(null), o = ct(t, n);
|
|
3691
3691
|
return p.useEffect(() => {
|
|
@@ -3749,7 +3749,7 @@ function sd(e, t, r, { discrete: n }) {
|
|
|
3749
3749
|
const o = r.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
|
|
3750
3750
|
t && o.addEventListener(e, t, { once: !0 }), n ? id(o, i) : o.dispatchEvent(i);
|
|
3751
3751
|
}
|
|
3752
|
-
var
|
|
3752
|
+
var Da = "focusScope.autoFocusOnMount", _a = "focusScope.autoFocusOnUnmount", qu = { bubbles: !1, cancelable: !0 }, $m = "FocusScope", Ki = p.forwardRef((e, t) => {
|
|
3753
3753
|
const {
|
|
3754
3754
|
loop: r = !1,
|
|
3755
3755
|
trapped: n = !1,
|
|
@@ -3791,13 +3791,13 @@ var _a = "focusScope.autoFocusOnMount", Da = "focusScope.autoFocusOnUnmount", qu
|
|
|
3791
3791
|
Uu.add(h);
|
|
3792
3792
|
const w = document.activeElement;
|
|
3793
3793
|
if (!s.contains(w)) {
|
|
3794
|
-
const v = new CustomEvent(
|
|
3795
|
-
s.addEventListener(
|
|
3794
|
+
const v = new CustomEvent(Da, qu);
|
|
3795
|
+
s.addEventListener(Da, c), s.dispatchEvent(v), v.defaultPrevented || (zm(jm(ud(s)), { select: !0 }), document.activeElement === w && Yr(s));
|
|
3796
3796
|
}
|
|
3797
3797
|
return () => {
|
|
3798
|
-
s.removeEventListener(
|
|
3799
|
-
const v = new CustomEvent(
|
|
3800
|
-
s.addEventListener(
|
|
3798
|
+
s.removeEventListener(Da, c), setTimeout(() => {
|
|
3799
|
+
const v = new CustomEvent(_a, qu);
|
|
3800
|
+
s.addEventListener(_a, d), s.dispatchEvent(v), v.defaultPrevented || Yr(w != null ? w : document.body, { select: !0 }), s.removeEventListener(_a, d), Uu.remove(h);
|
|
3801
3801
|
}, 0);
|
|
3802
3802
|
};
|
|
3803
3803
|
}
|
|
@@ -3925,7 +3925,7 @@ function Gm(e) {
|
|
|
3925
3925
|
if (t) {
|
|
3926
3926
|
let d;
|
|
3927
3927
|
const u = (c = t.ownerDocument.defaultView) != null ? c : window, y = (g) => {
|
|
3928
|
-
const f = ei(n.current).includes(g.animationName);
|
|
3928
|
+
const f = ei(n.current).includes(CSS.escape(g.animationName));
|
|
3929
3929
|
if (g.target === t && f && (l("ANIMATION_END"), !o.current)) {
|
|
3930
3930
|
const v = t.style.animationFillMode;
|
|
3931
3931
|
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
@@ -3996,7 +3996,7 @@ function Ta(e, t) {
|
|
|
3996
3996
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3997
3997
|
}
|
|
3998
3998
|
function Zm(e, t) {
|
|
3999
|
-
var r =
|
|
3999
|
+
var r = De(function() {
|
|
4000
4000
|
return {
|
|
4001
4001
|
// value
|
|
4002
4002
|
value: e,
|
|
@@ -4118,12 +4118,12 @@ var dd = rg(), ka = function() {
|
|
|
4118
4118
|
onScrollCapture: ka,
|
|
4119
4119
|
onWheelCapture: ka,
|
|
4120
4120
|
onTouchMoveCapture: ka
|
|
4121
|
-
}), o = n[0], i = n[1], a = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, u = e.shards, y = e.sideCar, h = e.
|
|
4121
|
+
}), o = n[0], i = n[1], a = e.forwardProps, s = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, u = e.shards, y = e.sideCar, h = e.noRelative, g = e.noIsolation, w = e.inert, f = e.allowPinchZoom, v = e.as, m = v === void 0 ? "div" : v, b = e.gapMode, C = ld(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = y, S = Jm([r, t]), E = mr(mr({}, C), o);
|
|
4122
4122
|
return p.createElement(
|
|
4123
4123
|
p.Fragment,
|
|
4124
4124
|
null,
|
|
4125
|
-
d && p.createElement(
|
|
4126
|
-
a ? p.cloneElement(p.Children.only(s), mr(mr({},
|
|
4125
|
+
d && p.createElement(x, { sideCar: dd, removeScrollBar: c, shards: u, noRelative: h, noIsolation: g, inert: w, setCallbacks: i, allowPinchZoom: !!f, lockRef: r, gapMode: b }),
|
|
4126
|
+
a ? p.cloneElement(p.Children.only(s), mr(mr({}, E), { ref: S })) : p.createElement(m, mr({}, E, { className: l, ref: S }), s)
|
|
4127
4127
|
);
|
|
4128
4128
|
});
|
|
4129
4129
|
Yi.defaultProps = {
|
|
@@ -4323,8 +4323,12 @@ var Mn = os ? { passive: !1 } : !1, gg = function(e) {
|
|
|
4323
4323
|
}, Sg = function(e, t, r, n, o) {
|
|
4324
4324
|
var i = Cg(e, window.getComputedStyle(t).direction), a = i * n, s = r.target, l = t.contains(s), c = !1, d = a > 0, u = 0, y = 0;
|
|
4325
4325
|
do {
|
|
4326
|
+
if (!s)
|
|
4327
|
+
break;
|
|
4326
4328
|
var h = hd(e, s), g = h[0], w = h[1], f = h[2], v = w - f - i * g;
|
|
4327
|
-
(g || v) && pd(e, s) && (u += v, y += g)
|
|
4329
|
+
(g || v) && pd(e, s) && (u += v, y += g);
|
|
4330
|
+
var m = s.parentNode;
|
|
4331
|
+
s = m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? m.host : m;
|
|
4328
4332
|
} while (
|
|
4329
4333
|
// portaled content
|
|
4330
4334
|
!l && s !== document.body || // self content
|
|
@@ -4375,8 +4379,8 @@ function Pg(e) {
|
|
|
4375
4379
|
return !1;
|
|
4376
4380
|
if (!n.current && "changedTouches" in w && (b || C) && (n.current = x), !x)
|
|
4377
4381
|
return !0;
|
|
4378
|
-
var
|
|
4379
|
-
return Sg(
|
|
4382
|
+
var _ = n.current || x;
|
|
4383
|
+
return Sg(_, f, w, _ === "h" ? b : C);
|
|
4380
4384
|
}, []), l = p.useCallback(function(w) {
|
|
4381
4385
|
var f = w;
|
|
4382
4386
|
if (!(!Pn.length || Pn[Pn.length - 1] !== i)) {
|
|
@@ -4424,7 +4428,7 @@ function Pg(e) {
|
|
|
4424
4428
|
p.Fragment,
|
|
4425
4429
|
null,
|
|
4426
4430
|
g ? p.createElement(i, { styles: Rg(o) }) : null,
|
|
4427
|
-
h ? p.createElement(mg, { gapMode: e.gapMode }) : null
|
|
4431
|
+
h ? p.createElement(mg, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
4428
4432
|
);
|
|
4429
4433
|
}
|
|
4430
4434
|
function Ng(e) {
|
|
@@ -4432,12 +4436,12 @@ function Ng(e) {
|
|
|
4432
4436
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4433
4437
|
return t;
|
|
4434
4438
|
}
|
|
4435
|
-
const
|
|
4439
|
+
const Dg = ng(dd, Pg);
|
|
4436
4440
|
var Xi = p.forwardRef(function(e, t) {
|
|
4437
|
-
return p.createElement(Yi, mr({}, e, { ref: t, sideCar:
|
|
4441
|
+
return p.createElement(Yi, mr({}, e, { ref: t, sideCar: Dg }));
|
|
4438
4442
|
});
|
|
4439
4443
|
Xi.classNames = Yi.classNames;
|
|
4440
|
-
var
|
|
4444
|
+
var _g = function(e) {
|
|
4441
4445
|
if (typeof document > "u")
|
|
4442
4446
|
return null;
|
|
4443
4447
|
var t = Array.isArray(e) ? e[0] : e;
|
|
@@ -4481,8 +4485,8 @@ var Dg = function(e) {
|
|
|
4481
4485
|
};
|
|
4482
4486
|
}, qs = function(e, t, r) {
|
|
4483
4487
|
r === void 0 && (r = "data-aria-hidden");
|
|
4484
|
-
var n = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
4485
|
-
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), Tg(n, o, r, "aria-hidden")) : function() {
|
|
4488
|
+
var n = Array.from(Array.isArray(e) ? e : [e]), o = _g(e);
|
|
4489
|
+
return o ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live], script"))), Tg(n, o, r, "aria-hidden")) : function() {
|
|
4486
4490
|
return null;
|
|
4487
4491
|
};
|
|
4488
4492
|
}, Zi = "Dialog", [gd, tR] = Ar(Zi), [kg, ur] = gd(Zi), yd = (e) => {
|
|
@@ -4672,7 +4676,7 @@ var Md = "DialogDescription", Pd = p.forwardRef(
|
|
|
4672
4676
|
}
|
|
4673
4677
|
);
|
|
4674
4678
|
Pd.displayName = Md;
|
|
4675
|
-
var Nd = "DialogClose",
|
|
4679
|
+
var Nd = "DialogClose", Dd = p.forwardRef(
|
|
4676
4680
|
(e, t) => {
|
|
4677
4681
|
const { __scopeDialog: r, ...n } = e, o = ur(Nd, r);
|
|
4678
4682
|
return /* @__PURE__ */ R(
|
|
@@ -4686,16 +4690,16 @@ var Nd = "DialogClose", _d = p.forwardRef(
|
|
|
4686
4690
|
);
|
|
4687
4691
|
}
|
|
4688
4692
|
);
|
|
4689
|
-
|
|
4693
|
+
Dd.displayName = Nd;
|
|
4690
4694
|
function Ks(e) {
|
|
4691
4695
|
return e ? "open" : "closed";
|
|
4692
4696
|
}
|
|
4693
|
-
var
|
|
4697
|
+
var _d = "DialogTitleWarning", [rR, Od] = xm(_d, {
|
|
4694
4698
|
contentName: gn,
|
|
4695
4699
|
titleName: Us,
|
|
4696
4700
|
docsSlug: "dialog"
|
|
4697
4701
|
}), Hg = ({ titleId: e }) => {
|
|
4698
|
-
const t = Od(
|
|
4702
|
+
const t = Od(_d), r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4699
4703
|
|
|
4700
4704
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4701
4705
|
|
|
@@ -4710,7 +4714,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4710
4714
|
const o = (i = e.current) == null ? void 0 : i.getAttribute("aria-describedby");
|
|
4711
4715
|
t && o && (document.getElementById(t) || console.warn(n));
|
|
4712
4716
|
}, [n, e, t]), null;
|
|
4713
|
-
}, jg = yd, Vg = xd, Td = Cd, kd = Sd, Id = Rd, Ad = Pd, qg =
|
|
4717
|
+
}, jg = yd, Vg = xd, Td = Cd, kd = Sd, Id = Rd, Ad = Pd, qg = Dd;
|
|
4714
4718
|
const Gg = jg, Ug = Vg, Ld = He(({ className: e, ...t }, r) => /* @__PURE__ */ R(
|
|
4715
4719
|
Td,
|
|
4716
4720
|
{
|
|
@@ -4835,7 +4839,7 @@ function Kg(e = {}) {
|
|
|
4835
4839
|
x: Math.max(0, (f - 0) / 2),
|
|
4836
4840
|
y: Math.max(0, (v - 0) / 2)
|
|
4837
4841
|
};
|
|
4838
|
-
}, []), { defaultPosition: r = t(), enabled: n = !1 } = e, [o, i] =
|
|
4842
|
+
}, []), { defaultPosition: r = t(), enabled: n = !1 } = e, [o, i] = De(r), [a, s] = De(!1), l = ye(null), c = ye({ x: 0, y: 0 }), d = ye({ x: 0, y: 0 }), u = ye(!1);
|
|
4839
4843
|
Qe(() => {
|
|
4840
4844
|
if (!l.current || u.current || e.defaultPosition) return;
|
|
4841
4845
|
const { width: f, height: v } = l.current.getBoundingClientRect(), { innerWidth: m, innerHeight: b } = window, C = Math.max(0, (m - f) / 2), x = Math.max(0, (b - v) / 2);
|
|
@@ -4897,9 +4901,9 @@ function Bd(e) {
|
|
|
4897
4901
|
onClose: m,
|
|
4898
4902
|
onOk: b,
|
|
4899
4903
|
onCancel: C
|
|
4900
|
-
} = e, { locale: x } = tn(Ir), { position: S, isDragging: E, setElementRef: M, handleMouseDown:
|
|
4901
|
-
f && /* @__PURE__ */ R(
|
|
4902
|
-
w && /* @__PURE__ */ R(
|
|
4904
|
+
} = e, { locale: x } = tn(Ir), { position: S, isDragging: E, setElementRef: M, handleMouseDown: _ } = Kg({ defaultPosition: l, enabled: s }), P = d != null ? d : w || f ? /* @__PURE__ */ ve("div", { className: "univer-flex univer-justify-end univer-gap-2", children: [
|
|
4905
|
+
f && /* @__PURE__ */ R(_r, { onClick: C, children: (A = ($ = x == null ? void 0 : x.Confirm) == null ? void 0 : $.cancel) != null ? A : "Cancel" }),
|
|
4906
|
+
w && /* @__PURE__ */ R(_r, { variant: "primary", onClick: b, children: (L = (O = x == null ? void 0 : x.Confirm) == null ? void 0 : O.confirm) != null ? L : "OK" })
|
|
4903
4907
|
] }) : null, T = ft((k) => {
|
|
4904
4908
|
k && s && M(k);
|
|
4905
4909
|
}, [s, M]), I = ft((k) => {
|
|
@@ -4950,7 +4954,7 @@ function Bd(e) {
|
|
|
4950
4954
|
userSelect: s ? "none" : void 0,
|
|
4951
4955
|
touchAction: s ? "none" : void 0
|
|
4952
4956
|
},
|
|
4953
|
-
onMouseDown: s ?
|
|
4957
|
+
onMouseDown: s ? _ : void 0,
|
|
4954
4958
|
children: [
|
|
4955
4959
|
/* @__PURE__ */ R(Hd, { children: i }),
|
|
4956
4960
|
/* @__PURE__ */ R(Wd, { className: "univer-hidden" })
|
|
@@ -4995,7 +4999,7 @@ const Mi = (e, t, r) => {
|
|
|
4995
4999
|
return jd(n, o, i);
|
|
4996
5000
|
};
|
|
4997
5001
|
function Yg({ hsv: e, onChange: t }) {
|
|
4998
|
-
const [r, n] =
|
|
5002
|
+
const [r, n] = De(""), o = lt(() => Pi(e[0], e[1], e[2]), [e]);
|
|
4999
5003
|
Qe(() => {
|
|
5000
5004
|
n(o.replace(/^#/, ""));
|
|
5001
5005
|
}, [o]);
|
|
@@ -5030,7 +5034,7 @@ function Yg({ hsv: e, onChange: t }) {
|
|
|
5030
5034
|
] });
|
|
5031
5035
|
}
|
|
5032
5036
|
function Xg({ hsv: e, onChange: t }) {
|
|
5033
|
-
const [r, n] =
|
|
5037
|
+
const [r, n] = De({ r: 0, g: 0, b: 0 });
|
|
5034
5038
|
Qe(() => {
|
|
5035
5039
|
const [a, s, l] = Mi(e[0], e[1], e[2]);
|
|
5036
5040
|
n({
|
|
@@ -5145,7 +5149,7 @@ function Jg({ hsv: e, onChange: t }) {
|
|
|
5145
5149
|
);
|
|
5146
5150
|
}
|
|
5147
5151
|
function e0({ hsv: e, onChange: t, onChanged: r }) {
|
|
5148
|
-
const n = ye(null), o = ye(null), [i, a] =
|
|
5152
|
+
const n = ye(null), o = ye(null), [i, a] = De(!1);
|
|
5149
5153
|
Qe(() => {
|
|
5150
5154
|
const u = n.current;
|
|
5151
5155
|
if (!u) return;
|
|
@@ -5220,7 +5224,7 @@ function e0({ hsv: e, onChange: t, onChanged: r }) {
|
|
|
5220
5224
|
);
|
|
5221
5225
|
}
|
|
5222
5226
|
function t0({ hsv: e, onChange: t, onChanged: r }) {
|
|
5223
|
-
const [n, o] =
|
|
5227
|
+
const [n, o] = De(!1), i = ye(null), a = ye(null), s = lt(() => {
|
|
5224
5228
|
var y, h;
|
|
5225
5229
|
return (h = (y = a.current) == null ? void 0 : y.clientWidth) != null ? h : 0;
|
|
5226
5230
|
}, []), l = ft((y) => {
|
|
@@ -5281,7 +5285,7 @@ function t0({ hsv: e, onChange: t, onChanged: r }) {
|
|
|
5281
5285
|
const r0 = Vi(e0), n0 = Vi(t0), o0 = Vi(Zg), i0 = Vi(Jg);
|
|
5282
5286
|
function nR({ format: e = "hex", value: t = "#000000", onChange: r }) {
|
|
5283
5287
|
if (!Bs) return null;
|
|
5284
|
-
const { locale: n } = tn(Ir), [o, i] =
|
|
5288
|
+
const { locale: n } = tn(Ir), [o, i] = De([0, 100, 100]), [a, s] = De(!1), l = ft((y, h, g) => Mi(y, h, g), []);
|
|
5285
5289
|
Qe(() => {
|
|
5286
5290
|
try {
|
|
5287
5291
|
if (e === "hex") {
|
|
@@ -5372,8 +5376,8 @@ function nR({ format: e = "hex", value: t = "#000000", onChange: r }) {
|
|
|
5372
5376
|
}
|
|
5373
5377
|
),
|
|
5374
5378
|
/* @__PURE__ */ ve("footer", { className: "univer-flex univer-items-center univer-justify-end univer-gap-2", children: [
|
|
5375
|
-
/* @__PURE__ */ R(
|
|
5376
|
-
/* @__PURE__ */ R(
|
|
5379
|
+
/* @__PURE__ */ R(_r, { onClick: () => s(!1), children: n == null ? void 0 : n.ColorPicker.cancel }),
|
|
5380
|
+
/* @__PURE__ */ R(_r, { variant: "primary", onClick: u, children: n == null ? void 0 : n.ColorPicker.confirm })
|
|
5377
5381
|
] })
|
|
5378
5382
|
] })
|
|
5379
5383
|
}
|
|
@@ -5385,8 +5389,8 @@ function nR({ format: e = "hex", value: t = "#000000", onChange: r }) {
|
|
|
5385
5389
|
function a0(e) {
|
|
5386
5390
|
const { locale: t, cancelText: r, confirmText: n, onClose: o, onConfirm: i } = e;
|
|
5387
5391
|
return /* @__PURE__ */ ve("footer", { className: "univer-flex univer-items-center univer-justify-end univer-gap-2", children: [
|
|
5388
|
-
/* @__PURE__ */ R(
|
|
5389
|
-
/* @__PURE__ */ R(
|
|
5392
|
+
/* @__PURE__ */ R(_r, { onClick: o, children: r != null ? r : t == null ? void 0 : t.Confirm.cancel }),
|
|
5393
|
+
/* @__PURE__ */ R(_r, { variant: "primary", onClick: i, children: n != null ? n : t == null ? void 0 : t.Confirm.confirm })
|
|
5390
5394
|
] });
|
|
5391
5395
|
}
|
|
5392
5396
|
function oR(e) {
|
|
@@ -5454,10 +5458,10 @@ function d0(e, t, r) {
|
|
|
5454
5458
|
r === void 0 && (r = !1);
|
|
5455
5459
|
const n = Yn(e), o = Qs(e), i = Zs(o);
|
|
5456
5460
|
let a = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
5457
|
-
return t.reference[i] > t.floating[i] && (a =
|
|
5461
|
+
return t.reference[i] > t.floating[i] && (a = Di(a)), [a, Di(a)];
|
|
5458
5462
|
}
|
|
5459
5463
|
function f0(e) {
|
|
5460
|
-
const t =
|
|
5464
|
+
const t = Di(e);
|
|
5461
5465
|
return [as(e), t, as(t)];
|
|
5462
5466
|
}
|
|
5463
5467
|
function as(e) {
|
|
@@ -5481,7 +5485,7 @@ function m0(e, t, r, n) {
|
|
|
5481
5485
|
let i = h0(Tr(e), r === "start", n);
|
|
5482
5486
|
return o && (i = i.map((a) => a + "-" + o), t && (i = i.concat(i.map(as)))), i;
|
|
5483
5487
|
}
|
|
5484
|
-
function
|
|
5488
|
+
function Di(e) {
|
|
5485
5489
|
return e.replace(/left|right|bottom|top/g, (t) => u0[t]);
|
|
5486
5490
|
}
|
|
5487
5491
|
function g0(e) {
|
|
@@ -5501,7 +5505,7 @@ function qd(e) {
|
|
|
5501
5505
|
left: e
|
|
5502
5506
|
};
|
|
5503
5507
|
}
|
|
5504
|
-
function
|
|
5508
|
+
function _i(e) {
|
|
5505
5509
|
const {
|
|
5506
5510
|
x: t,
|
|
5507
5511
|
y: r,
|
|
@@ -5644,7 +5648,7 @@ async function Mo(e, t) {
|
|
|
5644
5648
|
elementContext: u = "floating",
|
|
5645
5649
|
altBoundary: y = !1,
|
|
5646
5650
|
padding: h = 0
|
|
5647
|
-
} = Or(t, e), g = qd(h), f = s[y ? u === "floating" ? "reference" : "floating" : u], v =
|
|
5651
|
+
} = Or(t, e), g = qd(h), f = s[y ? u === "floating" ? "reference" : "floating" : u], v = _i(await i.getClippingRect({
|
|
5648
5652
|
element: (r = await (i.isElement == null ? void 0 : i.isElement(f))) == null || r ? f : f.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
|
|
5649
5653
|
boundary: c,
|
|
5650
5654
|
rootBoundary: d,
|
|
@@ -5660,7 +5664,7 @@ async function Mo(e, t) {
|
|
|
5660
5664
|
} : {
|
|
5661
5665
|
x: 1,
|
|
5662
5666
|
y: 1
|
|
5663
|
-
}, x =
|
|
5667
|
+
}, x = _i(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
5664
5668
|
elements: s,
|
|
5665
5669
|
rect: m,
|
|
5666
5670
|
offsetParent: b,
|
|
@@ -5697,7 +5701,7 @@ const b0 = (e) => ({
|
|
|
5697
5701
|
}, h = Qs(o), g = Zs(h), w = await a.getDimensions(c), f = h === "y", v = f ? "top" : "left", m = f ? "bottom" : "right", b = f ? "clientHeight" : "clientWidth", C = i.reference[g] + i.reference[h] - y[h] - i.floating[g], x = y[h] - i.reference[h], S = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
|
|
5698
5702
|
let E = S ? S[b] : 0;
|
|
5699
5703
|
(!E || !await (a.isElement == null ? void 0 : a.isElement(S))) && (E = s.floating[b] || i.floating[g]);
|
|
5700
|
-
const M = C / 2 - x / 2,
|
|
5704
|
+
const M = C / 2 - x / 2, _ = E / 2 - w[g] / 2 - 1, P = Jr(u[v], _), T = Jr(u[m], _), I = P, B = E - w[g] - T, $ = E / 2 - w[g] / 2 + M, A = is(I, $, B), O = !l.arrow && Yn(o) != null && $ !== A && i.reference[g] / 2 - ($ < I ? P : T) - w[g] / 2 < 0, L = O ? $ < I ? $ - I : $ - B : 0;
|
|
5701
5705
|
return {
|
|
5702
5706
|
[h]: y[h] + L,
|
|
5703
5707
|
data: {
|
|
@@ -5734,18 +5738,18 @@ const b0 = (e) => ({
|
|
|
5734
5738
|
} = Or(e, t);
|
|
5735
5739
|
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
5736
5740
|
return {};
|
|
5737
|
-
const v = Tr(o), m = gr(s), b = Tr(s) === s, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = y || (b || !w ? [
|
|
5741
|
+
const v = Tr(o), m = gr(s), b = Tr(s) === s, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = y || (b || !w ? [Di(s)] : f0(s)), S = g !== "none";
|
|
5738
5742
|
!y && S && x.push(...m0(s, w, g, C));
|
|
5739
|
-
const E = [s, ...x], M = await Mo(t, f),
|
|
5743
|
+
const E = [s, ...x], M = await Mo(t, f), _ = [];
|
|
5740
5744
|
let P = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
5741
|
-
if (d &&
|
|
5745
|
+
if (d && _.push(M[v]), u) {
|
|
5742
5746
|
const $ = d0(o, a, C);
|
|
5743
|
-
|
|
5747
|
+
_.push(M[$[0]], M[$[1]]);
|
|
5744
5748
|
}
|
|
5745
5749
|
if (P = [...P, {
|
|
5746
5750
|
placement: o,
|
|
5747
|
-
overflows:
|
|
5748
|
-
}], !
|
|
5751
|
+
overflows: _
|
|
5752
|
+
}], !_.every(($) => $ <= 0)) {
|
|
5749
5753
|
var T, I;
|
|
5750
5754
|
const $ = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, A = E[$];
|
|
5751
5755
|
if (A && (!(u === "alignment" ? m !== gr(A) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -6024,8 +6028,8 @@ const S0 = function(e) {
|
|
|
6024
6028
|
availableWidth: M,
|
|
6025
6029
|
availableHeight: E
|
|
6026
6030
|
});
|
|
6027
|
-
const
|
|
6028
|
-
return g !==
|
|
6031
|
+
const _ = await a.getDimensions(s.floating);
|
|
6032
|
+
return g !== _.width || w !== _.height ? {
|
|
6029
6033
|
reset: {
|
|
6030
6034
|
rects: !0
|
|
6031
6035
|
}
|
|
@@ -6070,12 +6074,12 @@ function Ao(e) {
|
|
|
6070
6074
|
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !P0.has(o);
|
|
6071
6075
|
}
|
|
6072
6076
|
const N0 = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
6073
|
-
function
|
|
6077
|
+
function D0(e) {
|
|
6074
6078
|
return N0.has(Xn(e));
|
|
6075
6079
|
}
|
|
6076
|
-
const
|
|
6080
|
+
const _0 = [":popover-open", ":modal"];
|
|
6077
6081
|
function Ji(e) {
|
|
6078
|
-
return
|
|
6082
|
+
return _0.some((t) => {
|
|
6079
6083
|
try {
|
|
6080
6084
|
return e.matches(t);
|
|
6081
6085
|
} catch {
|
|
@@ -6201,7 +6205,7 @@ function yn(e, t, r, n) {
|
|
|
6201
6205
|
l *= f.x, c *= f.y, d *= f.x, u *= f.y, l += b, c += C, g = qt(w), w = ss(g);
|
|
6202
6206
|
}
|
|
6203
6207
|
}
|
|
6204
|
-
return
|
|
6208
|
+
return _i({
|
|
6205
6209
|
width: d,
|
|
6206
6210
|
height: u,
|
|
6207
6211
|
x: l,
|
|
@@ -6306,7 +6310,7 @@ function sl(e, t, r) {
|
|
|
6306
6310
|
height: t.height
|
|
6307
6311
|
};
|
|
6308
6312
|
}
|
|
6309
|
-
return
|
|
6313
|
+
return _i(n);
|
|
6310
6314
|
}
|
|
6311
6315
|
function Qd(e, t) {
|
|
6312
6316
|
const r = en(e);
|
|
@@ -6402,7 +6406,7 @@ function Jd(e, t) {
|
|
|
6402
6406
|
return r;
|
|
6403
6407
|
}
|
|
6404
6408
|
let n = ul(e, t);
|
|
6405
|
-
for (; n &&
|
|
6409
|
+
for (; n && D0(n) && La(n); )
|
|
6406
6410
|
n = ul(n, t);
|
|
6407
6411
|
return n && Hn(n) && La(n) && !Js(n) ? r : n || I0(e) || r;
|
|
6408
6412
|
}
|
|
@@ -6603,7 +6607,7 @@ function uy(e) {
|
|
|
6603
6607
|
k !== S.current && (S.current = k, w(k));
|
|
6604
6608
|
}, []), b = p.useCallback((k) => {
|
|
6605
6609
|
k !== E.current && (E.current = k, v(k));
|
|
6606
|
-
}, []), C = i || g, x = a || f, S = p.useRef(null), E = p.useRef(null), M = p.useRef(d),
|
|
6610
|
+
}, []), C = i || g, x = a || f, S = p.useRef(null), E = p.useRef(null), M = p.useRef(d), _ = l != null, P = $a(l), T = $a(o), I = $a(c), B = p.useCallback(() => {
|
|
6607
6611
|
if (!S.current || !E.current)
|
|
6608
6612
|
return;
|
|
6609
6613
|
const k = {
|
|
@@ -6640,7 +6644,7 @@ function uy(e) {
|
|
|
6640
6644
|
return P.current(C, x, B);
|
|
6641
6645
|
B();
|
|
6642
6646
|
}
|
|
6643
|
-
}, [C, x, B, P,
|
|
6647
|
+
}, [C, x, B, P, _]);
|
|
6644
6648
|
const A = p.useMemo(() => ({
|
|
6645
6649
|
reference: S,
|
|
6646
6650
|
floating: E,
|
|
@@ -6767,16 +6771,17 @@ var nu = "Popper", [nf, rn] = Ar(nu), [wy, of] = nf(nu), af = (e) => {
|
|
|
6767
6771
|
af.displayName = nu;
|
|
6768
6772
|
var sf = "PopperAnchor", uf = p.forwardRef(
|
|
6769
6773
|
(e, t) => {
|
|
6770
|
-
const { __scopePopper: r, virtualRef: n, ...o } = e, i = of(sf, r), a = p.useRef(null), s = ct(t, a);
|
|
6774
|
+
const { __scopePopper: r, virtualRef: n, ...o } = e, i = of(sf, r), a = p.useRef(null), s = ct(t, a), l = p.useRef(null);
|
|
6771
6775
|
return p.useEffect(() => {
|
|
6772
|
-
|
|
6776
|
+
const c = l.current;
|
|
6777
|
+
l.current = (n == null ? void 0 : n.current) || a.current, c !== l.current && i.onAnchorChange(l.current);
|
|
6773
6778
|
}), n ? null : /* @__PURE__ */ R(et.div, { ...o, ref: s });
|
|
6774
6779
|
}
|
|
6775
6780
|
);
|
|
6776
6781
|
uf.displayName = sf;
|
|
6777
6782
|
var ou = "PopperContent", [xy, Cy] = nf(ou), lf = p.forwardRef(
|
|
6778
6783
|
(e, t) => {
|
|
6779
|
-
var ge, j, V, Q, N,
|
|
6784
|
+
var ge, j, V, Q, N, D, F, U;
|
|
6780
6785
|
const {
|
|
6781
6786
|
__scopePopper: r,
|
|
6782
6787
|
side: n = "bottom",
|
|
@@ -6792,7 +6797,7 @@ var ou = "PopperContent", [xy, Cy] = nf(ou), lf = p.forwardRef(
|
|
|
6792
6797
|
updatePositionStrategy: h = "optimized",
|
|
6793
6798
|
onPlaced: g,
|
|
6794
6799
|
...w
|
|
6795
|
-
} = e, f = of(ou, r), [v, m] = p.useState(null), b = ct(t, (Z) => m(Z)), [C, x] = p.useState(null), S = by(C), E = (ge = S == null ? void 0 : S.width) != null ? ge : 0, M = (j = S == null ? void 0 : S.height) != null ? j : 0,
|
|
6800
|
+
} = e, f = of(ou, r), [v, m] = p.useState(null), b = ct(t, (Z) => m(Z)), [C, x] = p.useState(null), S = by(C), E = (ge = S == null ? void 0 : S.width) != null ? ge : 0, M = (j = S == null ? void 0 : S.height) != null ? j : 0, _ = n + (i !== "center" ? "-" + i : ""), P = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, T = Array.isArray(c) ? c : [c], I = T.length > 0, B = {
|
|
6796
6801
|
padding: P,
|
|
6797
6802
|
boundary: T.filter(Ey),
|
|
6798
6803
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6800,7 +6805,7 @@ var ou = "PopperContent", [xy, Cy] = nf(ou), lf = p.forwardRef(
|
|
|
6800
6805
|
}, { refs: $, floatingStyles: A, placement: O, isPositioned: L, middlewareData: k } = uy({
|
|
6801
6806
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
6802
6807
|
strategy: "fixed",
|
|
6803
|
-
placement:
|
|
6808
|
+
placement: _,
|
|
6804
6809
|
whileElementsMounted: (...Z) => Q0(...Z, {
|
|
6805
6810
|
animationFrame: h === "always"
|
|
6806
6811
|
}),
|
|
@@ -6846,7 +6851,7 @@ var ou = "PopperContent", [xy, Cy] = nf(ou), lf = p.forwardRef(
|
|
|
6846
6851
|
minWidth: "max-content",
|
|
6847
6852
|
zIndex: ee,
|
|
6848
6853
|
"--radix-popper-transform-origin": [
|
|
6849
|
-
(
|
|
6854
|
+
(D = k.transformOrigin) == null ? void 0 : D.x,
|
|
6850
6855
|
(F = k.transformOrigin) == null ? void 0 : F.y
|
|
6851
6856
|
].join(" "),
|
|
6852
6857
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -7017,7 +7022,7 @@ var mf = "PopoverTrigger", gf = p.forwardRef(
|
|
|
7017
7022
|
}
|
|
7018
7023
|
);
|
|
7019
7024
|
gf.displayName = mf;
|
|
7020
|
-
var iu = "PopoverPortal", [Ny,
|
|
7025
|
+
var iu = "PopoverPortal", [Ny, Dy] = vf(iu, {
|
|
7021
7026
|
forceMount: void 0
|
|
7022
7027
|
}), yf = (e) => {
|
|
7023
7028
|
const { __scopePopover: t, forceMount: r, children: n, container: o } = e, i = nn(iu, t);
|
|
@@ -7026,18 +7031,18 @@ var iu = "PopoverPortal", [Ny, _y] = vf(iu, {
|
|
|
7026
7031
|
yf.displayName = iu;
|
|
7027
7032
|
var Wn = "PopoverContent", bf = p.forwardRef(
|
|
7028
7033
|
(e, t) => {
|
|
7029
|
-
const r =
|
|
7034
|
+
const r = Dy(Wn, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, i = nn(Wn, e.__scopePopover);
|
|
7030
7035
|
return /* @__PURE__ */ R(zt, { present: n || i.open, children: i.modal ? /* @__PURE__ */ R(Oy, { ...o, ref: t }) : /* @__PURE__ */ R(Ty, { ...o, ref: t }) });
|
|
7031
7036
|
}
|
|
7032
7037
|
);
|
|
7033
7038
|
bf.displayName = Wn;
|
|
7034
|
-
var
|
|
7039
|
+
var _y = /* @__PURE__ */ hn("PopoverContent.RemoveScroll"), Oy = p.forwardRef(
|
|
7035
7040
|
(e, t) => {
|
|
7036
7041
|
const r = nn(Wn, e.__scopePopover), n = p.useRef(null), o = ct(t, n), i = p.useRef(!1);
|
|
7037
7042
|
return p.useEffect(() => {
|
|
7038
7043
|
const a = n.current;
|
|
7039
7044
|
if (a) return qs(a);
|
|
7040
|
-
}, []), /* @__PURE__ */ R(Xi, { as:
|
|
7045
|
+
}, []), /* @__PURE__ */ R(Xi, { as: _y, allowPinchZoom: !0, children: /* @__PURE__ */ R(
|
|
7041
7046
|
wf,
|
|
7042
7047
|
{
|
|
7043
7048
|
...e,
|
|
@@ -7221,7 +7226,7 @@ function Sf(e) {
|
|
|
7221
7226
|
open: o,
|
|
7222
7227
|
onOpenChange: i,
|
|
7223
7228
|
...a
|
|
7224
|
-
} = e, [s, l] =
|
|
7229
|
+
} = e, [s, l] = De(!1), c = o !== void 0, d = c ? o : s;
|
|
7225
7230
|
function u(y) {
|
|
7226
7231
|
n || (c || l(y), i == null || i(y));
|
|
7227
7232
|
}
|
|
@@ -7231,7 +7236,7 @@ function Sf(e) {
|
|
|
7231
7236
|
] });
|
|
7232
7237
|
}
|
|
7233
7238
|
function aR(e) {
|
|
7234
|
-
const { value: t, onValueChange: r, className: n } = e, [o, i] =
|
|
7239
|
+
const { value: t, onValueChange: r, className: n } = e, [o, i] = De(!1);
|
|
7235
7240
|
function a(s) {
|
|
7236
7241
|
r == null || r(s), i(!1);
|
|
7237
7242
|
}
|
|
@@ -7262,7 +7267,7 @@ function aR(e) {
|
|
|
7262
7267
|
);
|
|
7263
7268
|
}
|
|
7264
7269
|
function sR(e) {
|
|
7265
|
-
const { value: t = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()], onValueChange: r, className: n } = e, [o, i] =
|
|
7270
|
+
const { value: t = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()], onValueChange: r, className: n } = e, [o, i] = De(!1);
|
|
7266
7271
|
function a(s) {
|
|
7267
7272
|
let [l, c] = s;
|
|
7268
7273
|
l > c && ([l, c] = [c, l]), r == null || r([l, c]), i(!1);
|
|
@@ -7320,24 +7325,24 @@ function sR(e) {
|
|
|
7320
7325
|
}
|
|
7321
7326
|
var za = { exports: {} }, io = {}, bo = { exports: {} }, jy = bo.exports, dl;
|
|
7322
7327
|
function au() {
|
|
7323
|
-
return dl || (dl = 1, function(e, t) {
|
|
7328
|
+
return dl || (dl = 1, (function(e, t) {
|
|
7324
7329
|
(function(r, n) {
|
|
7325
7330
|
n(t);
|
|
7326
|
-
})(jy, function(r) {
|
|
7331
|
+
})(jy, (function(r) {
|
|
7327
7332
|
function n(j) {
|
|
7328
|
-
return function(Q, N,
|
|
7333
|
+
return function(Q, N, D, F, U, Z, X) {
|
|
7329
7334
|
return j(Q, N, X);
|
|
7330
7335
|
};
|
|
7331
7336
|
}
|
|
7332
7337
|
function o(j) {
|
|
7333
|
-
return function(Q, N,
|
|
7338
|
+
return function(Q, N, D, F) {
|
|
7334
7339
|
if (!Q || !N || typeof Q != "object" || typeof N != "object")
|
|
7335
|
-
return j(Q, N,
|
|
7340
|
+
return j(Q, N, D, F);
|
|
7336
7341
|
var U = F.get(Q), Z = F.get(N);
|
|
7337
7342
|
if (U && Z)
|
|
7338
7343
|
return U === N && Z === Q;
|
|
7339
7344
|
F.set(Q, N), F.set(N, Q);
|
|
7340
|
-
var X = j(Q, N,
|
|
7345
|
+
var X = j(Q, N, D, F);
|
|
7341
7346
|
return F.delete(Q), F.delete(N), X;
|
|
7342
7347
|
};
|
|
7343
7348
|
}
|
|
@@ -7360,28 +7365,28 @@ function au() {
|
|
|
7360
7365
|
}
|
|
7361
7366
|
var c = "[object Arguments]", d = "[object Boolean]", u = "[object Date]", y = "[object RegExp]", h = "[object Map]", g = "[object Number]", w = "[object Object]", f = "[object Set]", v = "[object String]", m = Object.prototype.toString;
|
|
7362
7367
|
function b(j) {
|
|
7363
|
-
var V = j.areArraysEqual, Q = j.areDatesEqual, N = j.areMapsEqual,
|
|
7368
|
+
var V = j.areArraysEqual, Q = j.areDatesEqual, N = j.areMapsEqual, D = j.areObjectsEqual, F = j.areRegExpsEqual, U = j.areSetsEqual, Z = j.createIsNestedEqual, X = Z(oe);
|
|
7364
7369
|
function oe(J, re, we) {
|
|
7365
7370
|
if (J === re)
|
|
7366
7371
|
return !0;
|
|
7367
7372
|
if (!J || !re || typeof J != "object" || typeof re != "object")
|
|
7368
7373
|
return J !== J && re !== re;
|
|
7369
7374
|
if (a(J) && a(re))
|
|
7370
|
-
return
|
|
7375
|
+
return D(J, re, X, we);
|
|
7371
7376
|
var xe = Array.isArray(J), he = Array.isArray(re);
|
|
7372
7377
|
if (xe || he)
|
|
7373
7378
|
return xe === he && V(J, re, X, we);
|
|
7374
7379
|
var te = m.call(J);
|
|
7375
|
-
return te !== m.call(re) ? !1 : te === u ? Q(J, re, X, we) : te === y ? F(J, re, X, we) : te === h ? N(J, re, X, we) : te === f ? U(J, re, X, we) : te === w || te === c ? s(J) || s(re) ? !1 :
|
|
7380
|
+
return te !== m.call(re) ? !1 : te === u ? Q(J, re, X, we) : te === y ? F(J, re, X, we) : te === h ? N(J, re, X, we) : te === f ? U(J, re, X, we) : te === w || te === c ? s(J) || s(re) ? !1 : D(J, re, X, we) : te === d || te === g || te === v ? l(J.valueOf(), re.valueOf()) : !1;
|
|
7376
7381
|
}
|
|
7377
7382
|
return oe;
|
|
7378
7383
|
}
|
|
7379
7384
|
function C(j, V, Q, N) {
|
|
7380
|
-
var
|
|
7381
|
-
if (V.length !==
|
|
7385
|
+
var D = j.length;
|
|
7386
|
+
if (V.length !== D)
|
|
7382
7387
|
return !1;
|
|
7383
|
-
for (;
|
|
7384
|
-
if (!Q(j[
|
|
7388
|
+
for (; D-- > 0; )
|
|
7389
|
+
if (!Q(j[D], V[D], D, D, j, V, N))
|
|
7385
7390
|
return !1;
|
|
7386
7391
|
return !0;
|
|
7387
7392
|
}
|
|
@@ -7390,28 +7395,28 @@ function au() {
|
|
|
7390
7395
|
return l(j.valueOf(), V.valueOf());
|
|
7391
7396
|
}
|
|
7392
7397
|
function E(j, V, Q, N) {
|
|
7393
|
-
var
|
|
7394
|
-
if (!
|
|
7398
|
+
var D = j.size === V.size;
|
|
7399
|
+
if (!D)
|
|
7395
7400
|
return !1;
|
|
7396
7401
|
if (!j.size)
|
|
7397
7402
|
return !0;
|
|
7398
7403
|
var F = {}, U = 0;
|
|
7399
7404
|
return j.forEach(function(Z, X) {
|
|
7400
|
-
if (
|
|
7405
|
+
if (D) {
|
|
7401
7406
|
var oe = !1, J = 0;
|
|
7402
7407
|
V.forEach(function(re, we) {
|
|
7403
7408
|
!oe && !F[J] && (oe = Q(X, we, U, J, j, V, N) && Q(Z, re, X, we, j, V, N)) && (F[J] = !0), J++;
|
|
7404
|
-
}), U++,
|
|
7409
|
+
}), U++, D = oe;
|
|
7405
7410
|
}
|
|
7406
|
-
}),
|
|
7411
|
+
}), D;
|
|
7407
7412
|
}
|
|
7408
|
-
var M = o(E),
|
|
7413
|
+
var M = o(E), _ = "_owner", P = Object.prototype.hasOwnProperty;
|
|
7409
7414
|
function T(j, V, Q, N) {
|
|
7410
|
-
var
|
|
7415
|
+
var D = Object.keys(j), F = D.length;
|
|
7411
7416
|
if (Object.keys(V).length !== F)
|
|
7412
7417
|
return !1;
|
|
7413
7418
|
for (var U; F-- > 0; ) {
|
|
7414
|
-
if (U =
|
|
7419
|
+
if (U = D[F], U === _) {
|
|
7415
7420
|
var Z = !!j.$$typeof, X = !!V.$$typeof;
|
|
7416
7421
|
if ((Z || X) && Z !== X)
|
|
7417
7422
|
return !1;
|
|
@@ -7426,20 +7431,20 @@ function au() {
|
|
|
7426
7431
|
return j.source === V.source && j.flags === V.flags;
|
|
7427
7432
|
}
|
|
7428
7433
|
function $(j, V, Q, N) {
|
|
7429
|
-
var
|
|
7430
|
-
if (!
|
|
7434
|
+
var D = j.size === V.size;
|
|
7435
|
+
if (!D)
|
|
7431
7436
|
return !1;
|
|
7432
7437
|
if (!j.size)
|
|
7433
7438
|
return !0;
|
|
7434
7439
|
var F = {};
|
|
7435
7440
|
return j.forEach(function(U, Z) {
|
|
7436
|
-
if (
|
|
7441
|
+
if (D) {
|
|
7437
7442
|
var X = !1, oe = 0;
|
|
7438
7443
|
V.forEach(function(J, re) {
|
|
7439
7444
|
!X && !F[oe] && (X = Q(U, J, Z, re, j, V, N)) && (F[oe] = !0), oe++;
|
|
7440
|
-
}),
|
|
7445
|
+
}), D = X;
|
|
7441
7446
|
}
|
|
7442
|
-
}),
|
|
7447
|
+
}), D;
|
|
7443
7448
|
}
|
|
7444
7449
|
var A = o($), O = Object.freeze({
|
|
7445
7450
|
areArraysEqual: C,
|
|
@@ -7484,13 +7489,13 @@ function au() {
|
|
|
7484
7489
|
}
|
|
7485
7490
|
function ge(j) {
|
|
7486
7491
|
var V = b(i(L, j(L)));
|
|
7487
|
-
return function(Q, N,
|
|
7488
|
-
return
|
|
7489
|
-
};
|
|
7492
|
+
return (function(Q, N, D) {
|
|
7493
|
+
return D === void 0 && (D = /* @__PURE__ */ new WeakMap()), V(Q, N, D);
|
|
7494
|
+
});
|
|
7490
7495
|
}
|
|
7491
7496
|
r.circularDeepEqual = q, r.circularShallowEqual = ee, r.createCustomCircularEqual = ge, r.createCustomEqual = pe, r.deepEqual = z, r.sameValueZeroEqual = l, r.shallowEqual = H, Object.defineProperty(r, "__esModule", { value: !0 });
|
|
7492
|
-
});
|
|
7493
|
-
}(bo, bo.exports)), bo.exports;
|
|
7497
|
+
}));
|
|
7498
|
+
})(bo, bo.exports)), bo.exports;
|
|
7494
7499
|
}
|
|
7495
7500
|
var ai = { exports: {} }, fl;
|
|
7496
7501
|
function su() {
|
|
@@ -7528,25 +7533,25 @@ function Zn() {
|
|
|
7528
7533
|
return N && N.__esModule ? N : { default: N };
|
|
7529
7534
|
}
|
|
7530
7535
|
function n(N) {
|
|
7531
|
-
let
|
|
7536
|
+
let D = 0, F;
|
|
7532
7537
|
for (let U = 0, Z = N.length; U < Z; U++)
|
|
7533
|
-
F = N[U].y + N[U].h, F >
|
|
7534
|
-
return
|
|
7538
|
+
F = N[U].y + N[U].h, F > D && (D = F);
|
|
7539
|
+
return D;
|
|
7535
7540
|
}
|
|
7536
7541
|
function o(N) {
|
|
7537
|
-
const
|
|
7542
|
+
const D = Array(N.length);
|
|
7538
7543
|
for (let F = 0, U = N.length; F < U; F++)
|
|
7539
|
-
|
|
7540
|
-
return
|
|
7544
|
+
D[F] = s(N[F]);
|
|
7545
|
+
return D;
|
|
7541
7546
|
}
|
|
7542
|
-
function i(N,
|
|
7547
|
+
function i(N, D) {
|
|
7543
7548
|
const F = Array(N.length);
|
|
7544
7549
|
for (let U = 0, Z = N.length; U < Z; U++)
|
|
7545
|
-
|
|
7550
|
+
D.i === N[U].i ? F[U] = D : F[U] = N[U];
|
|
7546
7551
|
return F;
|
|
7547
7552
|
}
|
|
7548
|
-
function a(N,
|
|
7549
|
-
let U = f(N,
|
|
7553
|
+
function a(N, D, F) {
|
|
7554
|
+
let U = f(N, D);
|
|
7550
7555
|
return U ? (U = F(s(U)), N = i(N, U), [N, U]) : [N, null];
|
|
7551
7556
|
}
|
|
7552
7557
|
function s(N) {
|
|
@@ -7569,21 +7574,21 @@ function Zn() {
|
|
|
7569
7574
|
isBounded: N.isBounded
|
|
7570
7575
|
};
|
|
7571
7576
|
}
|
|
7572
|
-
function l(N,
|
|
7573
|
-
return (0, e.deepEqual)(t.default.Children.map(N, (F) => F == null ? void 0 : F.key), t.default.Children.map(
|
|
7577
|
+
function l(N, D) {
|
|
7578
|
+
return (0, e.deepEqual)(t.default.Children.map(N, (F) => F == null ? void 0 : F.key), t.default.Children.map(D, (F) => F == null ? void 0 : F.key)) && (0, e.deepEqual)(t.default.Children.map(N, (F) => F == null ? void 0 : F.props["data-grid"]), t.default.Children.map(D, (F) => F == null ? void 0 : F.props["data-grid"]));
|
|
7574
7579
|
}
|
|
7575
7580
|
Te.fastRGLPropsEqual = Vy();
|
|
7576
|
-
function c(N,
|
|
7577
|
-
return N.left ===
|
|
7581
|
+
function c(N, D) {
|
|
7582
|
+
return N.left === D.left && N.top === D.top && N.width === D.width && N.height === D.height;
|
|
7578
7583
|
}
|
|
7579
|
-
function d(N,
|
|
7580
|
-
return !(N.i ===
|
|
7584
|
+
function d(N, D) {
|
|
7585
|
+
return !(N.i === D.i || N.x + N.w <= D.x || N.x >= D.x + D.w || N.y + N.h <= D.y || N.y >= D.y + D.h);
|
|
7581
7586
|
}
|
|
7582
|
-
function u(N,
|
|
7583
|
-
const Z = b(N), X = q(N,
|
|
7587
|
+
function u(N, D, F, U) {
|
|
7588
|
+
const Z = b(N), X = q(N, D), oe = Array(N.length);
|
|
7584
7589
|
for (let J = 0, re = X.length; J < re; J++) {
|
|
7585
7590
|
let we = s(X[J]);
|
|
7586
|
-
we.static || (we = g(Z, we,
|
|
7591
|
+
we.static || (we = g(Z, we, D, F, X, U), Z.push(we)), oe[N.indexOf(X[J])] = we, we.moved = !1;
|
|
7587
7592
|
}
|
|
7588
7593
|
return oe;
|
|
7589
7594
|
}
|
|
@@ -7591,95 +7596,95 @@ function Zn() {
|
|
|
7591
7596
|
x: "w",
|
|
7592
7597
|
y: "h"
|
|
7593
7598
|
};
|
|
7594
|
-
function h(N,
|
|
7599
|
+
function h(N, D, F, U) {
|
|
7595
7600
|
const Z = y[U];
|
|
7596
|
-
|
|
7597
|
-
const X = N.map((oe) => oe.i).indexOf(
|
|
7601
|
+
D[U] += 1;
|
|
7602
|
+
const X = N.map((oe) => oe.i).indexOf(D.i);
|
|
7598
7603
|
for (let oe = X + 1; oe < N.length; oe++) {
|
|
7599
7604
|
const J = N[oe];
|
|
7600
7605
|
if (!J.static) {
|
|
7601
|
-
if (J.y >
|
|
7602
|
-
d(
|
|
7606
|
+
if (J.y > D.y + D.h) break;
|
|
7607
|
+
d(D, J) && h(N, J, F + D[Z], U);
|
|
7603
7608
|
}
|
|
7604
7609
|
}
|
|
7605
|
-
|
|
7610
|
+
D[U] = F;
|
|
7606
7611
|
}
|
|
7607
|
-
function g(N,
|
|
7612
|
+
function g(N, D, F, U, Z, X) {
|
|
7608
7613
|
const oe = F === "vertical", J = F === "horizontal";
|
|
7609
7614
|
if (oe)
|
|
7610
|
-
for (
|
|
7611
|
-
|
|
7615
|
+
for (D.y = Math.min(n(N), D.y); D.y > 0 && !v(N, D); )
|
|
7616
|
+
D.y--;
|
|
7612
7617
|
else if (J)
|
|
7613
|
-
for (;
|
|
7614
|
-
|
|
7618
|
+
for (; D.x > 0 && !v(N, D); )
|
|
7619
|
+
D.x--;
|
|
7615
7620
|
let re;
|
|
7616
|
-
for (; (re = v(N,
|
|
7617
|
-
if (J ? h(Z,
|
|
7618
|
-
for (
|
|
7619
|
-
|
|
7620
|
-
return
|
|
7621
|
+
for (; (re = v(N, D)) && !(F === null && X); )
|
|
7622
|
+
if (J ? h(Z, D, re.x + re.w, "x") : h(Z, D, re.y + re.h, "y"), J && D.x + D.w > U)
|
|
7623
|
+
for (D.x = U - D.w, D.y++; D.x > 0 && !v(N, D); )
|
|
7624
|
+
D.x--;
|
|
7625
|
+
return D.y = Math.max(D.y, 0), D.x = Math.max(D.x, 0), D;
|
|
7621
7626
|
}
|
|
7622
|
-
function w(N,
|
|
7627
|
+
function w(N, D) {
|
|
7623
7628
|
const F = b(N);
|
|
7624
7629
|
for (let U = 0, Z = N.length; U < Z; U++) {
|
|
7625
7630
|
const X = N[U];
|
|
7626
|
-
if (X.x + X.w >
|
|
7631
|
+
if (X.x + X.w > D.cols && (X.x = D.cols - X.w), X.x < 0 && (X.x = 0, X.w = D.cols), !X.static) F.push(X);
|
|
7627
7632
|
else
|
|
7628
7633
|
for (; v(F, X); )
|
|
7629
7634
|
X.y++;
|
|
7630
7635
|
}
|
|
7631
7636
|
return N;
|
|
7632
7637
|
}
|
|
7633
|
-
function f(N,
|
|
7638
|
+
function f(N, D) {
|
|
7634
7639
|
for (let F = 0, U = N.length; F < U; F++)
|
|
7635
|
-
if (N[F].i ===
|
|
7640
|
+
if (N[F].i === D) return N[F];
|
|
7636
7641
|
}
|
|
7637
|
-
function v(N,
|
|
7642
|
+
function v(N, D) {
|
|
7638
7643
|
for (let F = 0, U = N.length; F < U; F++)
|
|
7639
|
-
if (d(N[F],
|
|
7644
|
+
if (d(N[F], D)) return N[F];
|
|
7640
7645
|
}
|
|
7641
|
-
function m(N,
|
|
7642
|
-
return N.filter((F) => d(F,
|
|
7646
|
+
function m(N, D) {
|
|
7647
|
+
return N.filter((F) => d(F, D));
|
|
7643
7648
|
}
|
|
7644
7649
|
function b(N) {
|
|
7645
|
-
return N.filter((
|
|
7650
|
+
return N.filter((D) => D.static);
|
|
7646
7651
|
}
|
|
7647
|
-
function C(N,
|
|
7648
|
-
if (
|
|
7649
|
-
`${
|
|
7650
|
-
const we =
|
|
7651
|
-
typeof F == "number" && (
|
|
7652
|
+
function C(N, D, F, U, Z, X, oe, J, re) {
|
|
7653
|
+
if (D.static && D.isDraggable !== !0 || D.y === U && D.x === F) return N;
|
|
7654
|
+
`${D.i}${String(F)}${String(U)}${D.x}${D.y}`;
|
|
7655
|
+
const we = D.x, xe = D.y;
|
|
7656
|
+
typeof F == "number" && (D.x = F), typeof U == "number" && (D.y = U), D.moved = !0;
|
|
7652
7657
|
let he = q(N, oe);
|
|
7653
7658
|
(oe === "vertical" && typeof U == "number" ? xe >= U : oe === "horizontal" && typeof F == "number" ? we >= F : !1) && (he = he.reverse());
|
|
7654
|
-
const We = m(he,
|
|
7659
|
+
const We = m(he, D), ke = We.length > 0;
|
|
7655
7660
|
if (ke && re)
|
|
7656
7661
|
return o(N);
|
|
7657
7662
|
if (ke && X)
|
|
7658
|
-
return `${
|
|
7663
|
+
return `${D.i}`, D.x = we, D.y = xe, D.moved = !1, N;
|
|
7659
7664
|
for (let Ee = 0, Ge = We.length; Ee < Ge; Ee++) {
|
|
7660
7665
|
const ze = We[Ee];
|
|
7661
|
-
`${
|
|
7666
|
+
`${D.i}${D.x}${D.y}${ze.i}${ze.x}${ze.y}`, !ze.moved && (ze.static ? N = x(N, ze, D, Z, oe) : N = x(N, D, ze, Z, oe));
|
|
7662
7667
|
}
|
|
7663
7668
|
return N;
|
|
7664
7669
|
}
|
|
7665
|
-
function x(N,
|
|
7666
|
-
const oe = Z === "horizontal", J = Z === "vertical", re =
|
|
7670
|
+
function x(N, D, F, U, Z, X) {
|
|
7671
|
+
const oe = Z === "horizontal", J = Z === "vertical", re = D.static;
|
|
7667
7672
|
if (U) {
|
|
7668
7673
|
U = !1;
|
|
7669
7674
|
const he = {
|
|
7670
|
-
x: oe ? Math.max(
|
|
7671
|
-
y: J ? Math.max(
|
|
7675
|
+
x: oe ? Math.max(D.x - F.w, 0) : F.x,
|
|
7676
|
+
y: J ? Math.max(D.y - F.h, 0) : F.y,
|
|
7672
7677
|
w: F.w,
|
|
7673
7678
|
h: F.h,
|
|
7674
7679
|
i: "-1"
|
|
7675
|
-
}, te = v(N, he), We = te && te.y + te.h >
|
|
7680
|
+
}, te = v(N, he), We = te && te.y + te.h > D.y, ke = te && D.x + D.w > te.x;
|
|
7676
7681
|
if (te) {
|
|
7677
7682
|
if (We && J)
|
|
7678
|
-
return C(N, F, void 0,
|
|
7683
|
+
return C(N, F, void 0, D.y + 1, U, re, Z);
|
|
7679
7684
|
if (We && Z == null)
|
|
7680
|
-
return
|
|
7685
|
+
return D.y = F.y, F.y = F.y + F.h, N;
|
|
7681
7686
|
if (ke && oe)
|
|
7682
|
-
return C(N,
|
|
7687
|
+
return C(N, D, F.x, void 0, U, re, Z);
|
|
7683
7688
|
} else return `${F.i}${he.x}${he.y}`, C(N, F, oe ? he.x : void 0, J ? he.y : void 0, U, re, Z);
|
|
7684
7689
|
}
|
|
7685
7690
|
const we = oe ? F.x + 1 : void 0, xe = J ? F.y + 1 : void 0;
|
|
@@ -7688,12 +7693,12 @@ function Zn() {
|
|
|
7688
7693
|
function S(N) {
|
|
7689
7694
|
return N * 100 + "%";
|
|
7690
7695
|
}
|
|
7691
|
-
const E = (N,
|
|
7696
|
+
const E = (N, D, F, U) => N + F > U ? D : F, M = (N, D, F) => N < 0 ? D : F, _ = (N) => Math.max(0, N), P = (N) => Math.max(0, N), T = (N, D, F) => {
|
|
7692
7697
|
let {
|
|
7693
7698
|
left: U,
|
|
7694
7699
|
height: Z,
|
|
7695
7700
|
width: X
|
|
7696
|
-
} =
|
|
7701
|
+
} = D;
|
|
7697
7702
|
const oe = N.top - (Z - N.height);
|
|
7698
7703
|
return {
|
|
7699
7704
|
left: U,
|
|
@@ -7701,39 +7706,39 @@ function Zn() {
|
|
|
7701
7706
|
height: M(oe, N.height, Z),
|
|
7702
7707
|
top: P(oe)
|
|
7703
7708
|
};
|
|
7704
|
-
}, I = (N,
|
|
7709
|
+
}, I = (N, D, F) => {
|
|
7705
7710
|
let {
|
|
7706
7711
|
top: U,
|
|
7707
7712
|
left: Z,
|
|
7708
7713
|
height: X,
|
|
7709
7714
|
width: oe
|
|
7710
|
-
} =
|
|
7715
|
+
} = D;
|
|
7711
7716
|
return {
|
|
7712
7717
|
top: U,
|
|
7713
7718
|
height: X,
|
|
7714
7719
|
width: E(N.left, N.width, oe, F),
|
|
7715
|
-
left:
|
|
7720
|
+
left: _(Z)
|
|
7716
7721
|
};
|
|
7717
|
-
}, B = (N,
|
|
7722
|
+
}, B = (N, D, F) => {
|
|
7718
7723
|
let {
|
|
7719
7724
|
top: U,
|
|
7720
7725
|
height: Z,
|
|
7721
7726
|
width: X
|
|
7722
|
-
} =
|
|
7727
|
+
} = D;
|
|
7723
7728
|
const oe = N.left - (X - N.width);
|
|
7724
7729
|
return {
|
|
7725
7730
|
height: Z,
|
|
7726
7731
|
width: oe < 0 ? N.width : E(N.left, N.width, X, F),
|
|
7727
7732
|
top: P(U),
|
|
7728
|
-
left:
|
|
7733
|
+
left: _(oe)
|
|
7729
7734
|
};
|
|
7730
|
-
}, $ = (N,
|
|
7735
|
+
}, $ = (N, D, F) => {
|
|
7731
7736
|
let {
|
|
7732
7737
|
top: U,
|
|
7733
7738
|
left: Z,
|
|
7734
7739
|
height: X,
|
|
7735
7740
|
width: oe
|
|
7736
|
-
} =
|
|
7741
|
+
} = D;
|
|
7737
7742
|
return {
|
|
7738
7743
|
width: oe,
|
|
7739
7744
|
left: Z,
|
|
@@ -7758,21 +7763,21 @@ function Zn() {
|
|
|
7758
7763
|
return T(arguments.length <= 0 ? void 0 : arguments[0], B(...arguments));
|
|
7759
7764
|
}
|
|
7760
7765
|
};
|
|
7761
|
-
function W(N,
|
|
7766
|
+
function W(N, D, F, U) {
|
|
7762
7767
|
const Z = z[N];
|
|
7763
|
-
return Z ? Z(
|
|
7764
|
-
...
|
|
7768
|
+
return Z ? Z(D, {
|
|
7769
|
+
...D,
|
|
7765
7770
|
...F
|
|
7766
7771
|
}, U) : F;
|
|
7767
7772
|
}
|
|
7768
7773
|
function H(N) {
|
|
7769
7774
|
let {
|
|
7770
|
-
top:
|
|
7775
|
+
top: D,
|
|
7771
7776
|
left: F,
|
|
7772
7777
|
width: U,
|
|
7773
7778
|
height: Z
|
|
7774
7779
|
} = N;
|
|
7775
|
-
const X = `translate(${F}px,${
|
|
7780
|
+
const X = `translate(${F}px,${D}px)`;
|
|
7776
7781
|
return {
|
|
7777
7782
|
transform: X,
|
|
7778
7783
|
WebkitTransform: X,
|
|
@@ -7786,36 +7791,36 @@ function Zn() {
|
|
|
7786
7791
|
}
|
|
7787
7792
|
function Y(N) {
|
|
7788
7793
|
let {
|
|
7789
|
-
top:
|
|
7794
|
+
top: D,
|
|
7790
7795
|
left: F,
|
|
7791
7796
|
width: U,
|
|
7792
7797
|
height: Z
|
|
7793
7798
|
} = N;
|
|
7794
7799
|
return {
|
|
7795
|
-
top: `${
|
|
7800
|
+
top: `${D}px`,
|
|
7796
7801
|
left: `${F}px`,
|
|
7797
7802
|
width: `${U}px`,
|
|
7798
7803
|
height: `${Z}px`,
|
|
7799
7804
|
position: "absolute"
|
|
7800
7805
|
};
|
|
7801
7806
|
}
|
|
7802
|
-
function q(N,
|
|
7803
|
-
return
|
|
7807
|
+
function q(N, D) {
|
|
7808
|
+
return D === "horizontal" ? ee(N) : D === "vertical" ? G(N) : N;
|
|
7804
7809
|
}
|
|
7805
7810
|
function G(N) {
|
|
7806
|
-
return N.slice(0).sort(function(
|
|
7807
|
-
return
|
|
7811
|
+
return N.slice(0).sort(function(D, F) {
|
|
7812
|
+
return D.y > F.y || D.y === F.y && D.x > F.x ? 1 : D.y === F.y && D.x === F.x ? 0 : -1;
|
|
7808
7813
|
});
|
|
7809
7814
|
}
|
|
7810
7815
|
function ee(N) {
|
|
7811
|
-
return N.slice(0).sort(function(
|
|
7812
|
-
return
|
|
7816
|
+
return N.slice(0).sort(function(D, F) {
|
|
7817
|
+
return D.x > F.x || D.x === F.x && D.y > F.y ? 1 : -1;
|
|
7813
7818
|
});
|
|
7814
7819
|
}
|
|
7815
|
-
function pe(N,
|
|
7820
|
+
function pe(N, D, F, U, Z) {
|
|
7816
7821
|
N = N || [];
|
|
7817
7822
|
const X = [];
|
|
7818
|
-
t.default.Children.forEach(
|
|
7823
|
+
t.default.Children.forEach(D, (J) => {
|
|
7819
7824
|
if ((J == null ? void 0 : J.key) == null) return;
|
|
7820
7825
|
const re = f(N, String(J.key)), we = J.props["data-grid"];
|
|
7821
7826
|
re && we == null ? X.push(s(re)) : we ? X.push(s({
|
|
@@ -7835,26 +7840,26 @@ function Zn() {
|
|
|
7835
7840
|
return Z ? oe : u(oe, U, F);
|
|
7836
7841
|
}
|
|
7837
7842
|
function ge(N) {
|
|
7838
|
-
let
|
|
7843
|
+
let D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout";
|
|
7839
7844
|
const F = ["x", "y", "w", "h"];
|
|
7840
|
-
if (!Array.isArray(N)) throw new Error(
|
|
7845
|
+
if (!Array.isArray(N)) throw new Error(D + " must be an array!");
|
|
7841
7846
|
for (let U = 0, Z = N.length; U < Z; U++) {
|
|
7842
7847
|
const X = N[U];
|
|
7843
7848
|
for (let oe = 0; oe < F.length; oe++) {
|
|
7844
7849
|
const J = F[oe], re = X[J];
|
|
7845
7850
|
if (typeof re != "number" || Number.isNaN(re))
|
|
7846
|
-
throw new Error(`ReactGridLayout: ${
|
|
7851
|
+
throw new Error(`ReactGridLayout: ${D}[${U}].${J} must be a number! Received: ${re} (${typeof re})`);
|
|
7847
7852
|
}
|
|
7848
7853
|
if (typeof X.i < "u" && typeof X.i != "string")
|
|
7849
|
-
throw new Error(`ReactGridLayout: ${
|
|
7854
|
+
throw new Error(`ReactGridLayout: ${D}[${U}].i must be a string! Received: ${X.i} (${typeof X.i})`);
|
|
7850
7855
|
}
|
|
7851
7856
|
}
|
|
7852
7857
|
function j(N) {
|
|
7853
7858
|
const {
|
|
7854
|
-
verticalCompact:
|
|
7859
|
+
verticalCompact: D,
|
|
7855
7860
|
compactType: F
|
|
7856
7861
|
} = N || {};
|
|
7857
|
-
return
|
|
7862
|
+
return D === !1 ? null : F;
|
|
7858
7863
|
}
|
|
7859
7864
|
function V() {
|
|
7860
7865
|
}
|
|
@@ -8061,9 +8066,9 @@ function lu() {
|
|
|
8061
8066
|
var e = oa(), t = n(Yy());
|
|
8062
8067
|
function r(E) {
|
|
8063
8068
|
if (typeof WeakMap != "function") return null;
|
|
8064
|
-
var M = /* @__PURE__ */ new WeakMap(),
|
|
8069
|
+
var M = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
8065
8070
|
return (r = function(P) {
|
|
8066
|
-
return P ?
|
|
8071
|
+
return P ? _ : M;
|
|
8067
8072
|
})(E);
|
|
8068
8073
|
}
|
|
8069
8074
|
function n(E, M) {
|
|
@@ -8071,100 +8076,100 @@ function lu() {
|
|
|
8071
8076
|
return E;
|
|
8072
8077
|
if (E === null || typeof E != "object" && typeof E != "function")
|
|
8073
8078
|
return { default: E };
|
|
8074
|
-
var
|
|
8075
|
-
if (
|
|
8076
|
-
return
|
|
8079
|
+
var _ = r(M);
|
|
8080
|
+
if (_ && _.has(E))
|
|
8081
|
+
return _.get(E);
|
|
8077
8082
|
var P = {}, T = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
8078
8083
|
for (var I in E)
|
|
8079
8084
|
if (I !== "default" && Object.prototype.hasOwnProperty.call(E, I)) {
|
|
8080
8085
|
var B = T ? Object.getOwnPropertyDescriptor(E, I) : null;
|
|
8081
8086
|
B && (B.get || B.set) ? Object.defineProperty(P, I, B) : P[I] = E[I];
|
|
8082
8087
|
}
|
|
8083
|
-
return P.default = E,
|
|
8088
|
+
return P.default = E, _ && _.set(E, P), P;
|
|
8084
8089
|
}
|
|
8085
8090
|
let o = "";
|
|
8086
8091
|
function i(E, M) {
|
|
8087
|
-
return o || (o = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(
|
|
8088
|
-
return (0, e.isFunction)(E[
|
|
8092
|
+
return o || (o = (0, e.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(_) {
|
|
8093
|
+
return (0, e.isFunction)(E[_]);
|
|
8089
8094
|
})), (0, e.isFunction)(E[o]) ? E[o](M) : !1;
|
|
8090
8095
|
}
|
|
8091
|
-
function a(E, M,
|
|
8096
|
+
function a(E, M, _) {
|
|
8092
8097
|
let P = E;
|
|
8093
8098
|
do {
|
|
8094
8099
|
if (i(P, M)) return !0;
|
|
8095
|
-
if (P ===
|
|
8100
|
+
if (P === _) return !1;
|
|
8096
8101
|
P = P.parentNode;
|
|
8097
8102
|
} while (P);
|
|
8098
8103
|
return !1;
|
|
8099
8104
|
}
|
|
8100
|
-
function s(E, M,
|
|
8105
|
+
function s(E, M, _, P) {
|
|
8101
8106
|
if (!E) return;
|
|
8102
8107
|
const T = {
|
|
8103
8108
|
capture: !0,
|
|
8104
8109
|
...P
|
|
8105
8110
|
};
|
|
8106
|
-
E.addEventListener ? E.addEventListener(M,
|
|
8111
|
+
E.addEventListener ? E.addEventListener(M, _, T) : E.attachEvent ? E.attachEvent("on" + M, _) : E["on" + M] = _;
|
|
8107
8112
|
}
|
|
8108
|
-
function l(E, M,
|
|
8113
|
+
function l(E, M, _, P) {
|
|
8109
8114
|
if (!E) return;
|
|
8110
8115
|
const T = {
|
|
8111
8116
|
capture: !0,
|
|
8112
8117
|
...P
|
|
8113
8118
|
};
|
|
8114
|
-
E.removeEventListener ? E.removeEventListener(M,
|
|
8119
|
+
E.removeEventListener ? E.removeEventListener(M, _, T) : E.detachEvent ? E.detachEvent("on" + M, _) : E["on" + M] = null;
|
|
8115
8120
|
}
|
|
8116
8121
|
function c(E) {
|
|
8117
8122
|
let M = E.clientHeight;
|
|
8118
|
-
const
|
|
8119
|
-
return M += (0, e.int)(
|
|
8123
|
+
const _ = E.ownerDocument.defaultView.getComputedStyle(E);
|
|
8124
|
+
return M += (0, e.int)(_.borderTopWidth), M += (0, e.int)(_.borderBottomWidth), M;
|
|
8120
8125
|
}
|
|
8121
8126
|
function d(E) {
|
|
8122
8127
|
let M = E.clientWidth;
|
|
8123
|
-
const
|
|
8124
|
-
return M += (0, e.int)(
|
|
8128
|
+
const _ = E.ownerDocument.defaultView.getComputedStyle(E);
|
|
8129
|
+
return M += (0, e.int)(_.borderLeftWidth), M += (0, e.int)(_.borderRightWidth), M;
|
|
8125
8130
|
}
|
|
8126
8131
|
function u(E) {
|
|
8127
8132
|
let M = E.clientHeight;
|
|
8128
|
-
const
|
|
8129
|
-
return M -= (0, e.int)(
|
|
8133
|
+
const _ = E.ownerDocument.defaultView.getComputedStyle(E);
|
|
8134
|
+
return M -= (0, e.int)(_.paddingTop), M -= (0, e.int)(_.paddingBottom), M;
|
|
8130
8135
|
}
|
|
8131
8136
|
function y(E) {
|
|
8132
8137
|
let M = E.clientWidth;
|
|
8133
|
-
const
|
|
8134
|
-
return M -= (0, e.int)(
|
|
8138
|
+
const _ = E.ownerDocument.defaultView.getComputedStyle(E);
|
|
8139
|
+
return M -= (0, e.int)(_.paddingLeft), M -= (0, e.int)(_.paddingRight), M;
|
|
8135
8140
|
}
|
|
8136
|
-
function h(E, M,
|
|
8141
|
+
function h(E, M, _) {
|
|
8137
8142
|
const T = M === M.ownerDocument.body ? {
|
|
8138
8143
|
left: 0,
|
|
8139
8144
|
top: 0
|
|
8140
|
-
} : M.getBoundingClientRect(), I = (E.clientX + M.scrollLeft - T.left) /
|
|
8145
|
+
} : M.getBoundingClientRect(), I = (E.clientX + M.scrollLeft - T.left) / _, B = (E.clientY + M.scrollTop - T.top) / _;
|
|
8141
8146
|
return {
|
|
8142
8147
|
x: I,
|
|
8143
8148
|
y: B
|
|
8144
8149
|
};
|
|
8145
8150
|
}
|
|
8146
8151
|
function g(E, M) {
|
|
8147
|
-
const
|
|
8152
|
+
const _ = f(E, M, "px");
|
|
8148
8153
|
return {
|
|
8149
|
-
[(0, t.browserPrefixToKey)("transform", t.default)]:
|
|
8154
|
+
[(0, t.browserPrefixToKey)("transform", t.default)]: _
|
|
8150
8155
|
};
|
|
8151
8156
|
}
|
|
8152
8157
|
function w(E, M) {
|
|
8153
8158
|
return f(E, M, "");
|
|
8154
8159
|
}
|
|
8155
|
-
function f(E, M,
|
|
8160
|
+
function f(E, M, _) {
|
|
8156
8161
|
let {
|
|
8157
8162
|
x: P,
|
|
8158
8163
|
y: T
|
|
8159
|
-
} = E, I = "translate(".concat(P).concat(
|
|
8164
|
+
} = E, I = "translate(".concat(P).concat(_, ",").concat(T).concat(_, ")");
|
|
8160
8165
|
if (M) {
|
|
8161
|
-
const B = "".concat(typeof M.x == "string" ? M.x : M.x +
|
|
8166
|
+
const B = "".concat(typeof M.x == "string" ? M.x : M.x + _), $ = "".concat(typeof M.y == "string" ? M.y : M.y + _);
|
|
8162
8167
|
I = "translate(".concat(B, ", ").concat($, ")") + I;
|
|
8163
8168
|
}
|
|
8164
8169
|
return I;
|
|
8165
8170
|
}
|
|
8166
8171
|
function v(E, M) {
|
|
8167
|
-
return E.targetTouches && (0, e.findInArray)(E.targetTouches, (
|
|
8172
|
+
return E.targetTouches && (0, e.findInArray)(E.targetTouches, (_) => M === _.identifier) || E.changedTouches && (0, e.findInArray)(E.changedTouches, (_) => M === _.identifier);
|
|
8168
8173
|
}
|
|
8169
8174
|
function m(E) {
|
|
8170
8175
|
if (E.targetTouches && E.targetTouches[0]) return E.targetTouches[0].identifier;
|
|
@@ -8418,8 +8423,8 @@ function Xy() {
|
|
|
8418
8423
|
y: C
|
|
8419
8424
|
} = m;
|
|
8420
8425
|
if (Array.isArray(this.props.grid)) {
|
|
8421
|
-
let M = b - this.lastX || 0,
|
|
8422
|
-
[M,
|
|
8426
|
+
let M = b - this.lastX || 0, _ = C - this.lastY || 0;
|
|
8427
|
+
[M, _] = (0, o.snapToGrid)(this.props.grid, M, _), b = this.lastX + M, C = this.lastY + _;
|
|
8423
8428
|
}
|
|
8424
8429
|
const x = (0, o.createCoreData)(this, b, C);
|
|
8425
8430
|
if (this.props.onStop(v, x) === !1 || this.mounted === !1) return !1;
|
|
@@ -8605,7 +8610,7 @@ function Xy() {
|
|
|
8605
8610
|
}
|
|
8606
8611
|
var Ml;
|
|
8607
8612
|
function Zy() {
|
|
8608
|
-
return Ml || (Ml = 1, function(e) {
|
|
8613
|
+
return Ml || (Ml = 1, (function(e) {
|
|
8609
8614
|
Object.defineProperty(e, "__esModule", {
|
|
8610
8615
|
value: !0
|
|
8611
8616
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
@@ -8706,12 +8711,12 @@ function Zy() {
|
|
|
8706
8711
|
};
|
|
8707
8712
|
if (this.props.bounds) {
|
|
8708
8713
|
const {
|
|
8709
|
-
x:
|
|
8714
|
+
x: _,
|
|
8710
8715
|
y: P
|
|
8711
8716
|
} = E;
|
|
8712
8717
|
E.x += this.state.slackX, E.y += this.state.slackY;
|
|
8713
8718
|
const [T, I] = (0, a.getBoundPosition)(this, E.x, E.y);
|
|
8714
|
-
E.x = T, E.y = I, E.slackX = this.state.slackX + (
|
|
8719
|
+
E.x = T, E.y = I, E.slackX = this.state.slackX + (_ - E.x), E.slackY = this.state.slackY + (P - E.y), S.x = E.x, S.y = E.y, S.deltaX = E.x - this.state.x, S.deltaY = E.y - this.state.y;
|
|
8715
8720
|
}
|
|
8716
8721
|
if (this.props.onDrag(C, S) === !1) return !1;
|
|
8717
8722
|
this.setState(E);
|
|
@@ -8725,10 +8730,10 @@ function Zy() {
|
|
|
8725
8730
|
};
|
|
8726
8731
|
if (!!this.props.position) {
|
|
8727
8732
|
const {
|
|
8728
|
-
x:
|
|
8733
|
+
x: _,
|
|
8729
8734
|
y: P
|
|
8730
8735
|
} = this.props.position;
|
|
8731
|
-
E.x =
|
|
8736
|
+
E.x = _, E.y = P;
|
|
8732
8737
|
}
|
|
8733
8738
|
this.setState(E);
|
|
8734
8739
|
}), this.state = {
|
|
@@ -8773,7 +8778,7 @@ function Zy() {
|
|
|
8773
8778
|
defaultPosition: S,
|
|
8774
8779
|
defaultClassName: E,
|
|
8775
8780
|
defaultClassNameDragging: M,
|
|
8776
|
-
defaultClassNameDragged:
|
|
8781
|
+
defaultClassNameDragged: _,
|
|
8777
8782
|
position: P,
|
|
8778
8783
|
positionOffset: T,
|
|
8779
8784
|
scale: I,
|
|
@@ -8789,7 +8794,7 @@ function Zy() {
|
|
|
8789
8794
|
this.state.isElementSVG ? A = (0, i.createSVGTransform)(z, T) : $ = (0, i.createCSSTransform)(z, T);
|
|
8790
8795
|
const W = (0, o.default)(x.props.className || "", E, {
|
|
8791
8796
|
[M]: this.state.dragging,
|
|
8792
|
-
[
|
|
8797
|
+
[_]: this.state.dragged
|
|
8793
8798
|
});
|
|
8794
8799
|
return /* @__PURE__ */ t.createElement(l.default, h({}, B, {
|
|
8795
8800
|
onStart: this.onDragStart,
|
|
@@ -8925,7 +8930,7 @@ function Zy() {
|
|
|
8925
8930
|
},
|
|
8926
8931
|
scale: 1
|
|
8927
8932
|
});
|
|
8928
|
-
}(ja)), ja;
|
|
8933
|
+
})(ja)), ja;
|
|
8929
8934
|
}
|
|
8930
8935
|
var Pl;
|
|
8931
8936
|
function cu() {
|
|
@@ -8988,10 +8993,10 @@ function Qy() {
|
|
|
8988
8993
|
}
|
|
8989
8994
|
return ui;
|
|
8990
8995
|
}
|
|
8991
|
-
var fo = {},
|
|
8996
|
+
var fo = {}, Dl;
|
|
8992
8997
|
function Pf() {
|
|
8993
|
-
if (
|
|
8994
|
-
|
|
8998
|
+
if (Dl) return fo;
|
|
8999
|
+
Dl = 1, fo.__esModule = !0, fo.resizableProps = void 0;
|
|
8995
9000
|
var e = t(/* @__PURE__ */ on());
|
|
8996
9001
|
cu();
|
|
8997
9002
|
function t(n) {
|
|
@@ -9104,10 +9109,10 @@ function Pf() {
|
|
|
9104
9109
|
};
|
|
9105
9110
|
return fo.resizableProps = r, fo;
|
|
9106
9111
|
}
|
|
9107
|
-
var
|
|
9112
|
+
var _l;
|
|
9108
9113
|
function Nf() {
|
|
9109
|
-
if (
|
|
9110
|
-
|
|
9114
|
+
if (_l) return co;
|
|
9115
|
+
_l = 1, co.__esModule = !0, co.default = void 0;
|
|
9111
9116
|
var e = a(K), t = cu(), r = Qy(), n = Pf(), o = ["children", "className", "draggableOpts", "width", "height", "handle", "handleSize", "lockAspectRatio", "axis", "minConstraints", "maxConstraints", "onResize", "onResizeStop", "onResizeStart", "resizeHandles", "transformScale"];
|
|
9112
9117
|
function i(v) {
|
|
9113
9118
|
if (typeof WeakMap != "function") return null;
|
|
@@ -9195,7 +9200,7 @@ function Nf() {
|
|
|
9195
9200
|
return C.__proto__ = x, C;
|
|
9196
9201
|
}, w(v, m);
|
|
9197
9202
|
}
|
|
9198
|
-
var f = /* @__PURE__ */ function(v) {
|
|
9203
|
+
var f = /* @__PURE__ */ (function(v) {
|
|
9199
9204
|
g(m, v);
|
|
9200
9205
|
function m() {
|
|
9201
9206
|
for (var C, x = arguments.length, S = new Array(x), E = 0; E < x; E++)
|
|
@@ -9208,18 +9213,18 @@ function Nf() {
|
|
|
9208
9213
|
}, b.resetData = function() {
|
|
9209
9214
|
this.lastHandleRect = this.slack = null;
|
|
9210
9215
|
}, b.runConstraints = function(x, S) {
|
|
9211
|
-
var E = this.props, M = E.minConstraints,
|
|
9212
|
-
if (!M && !
|
|
9216
|
+
var E = this.props, M = E.minConstraints, _ = E.maxConstraints, P = E.lockAspectRatio;
|
|
9217
|
+
if (!M && !_ && !P) return [x, S];
|
|
9213
9218
|
if (P) {
|
|
9214
9219
|
var T = this.props.width / this.props.height, I = x - this.props.width, B = S - this.props.height;
|
|
9215
9220
|
Math.abs(I) > Math.abs(B * T) ? S = x / T : x = S * T;
|
|
9216
9221
|
}
|
|
9217
9222
|
var $ = x, A = S, O = this.slack || [0, 0], L = O[0], k = O[1];
|
|
9218
|
-
return x += L, S += k, M && (x = Math.max(M[0], x), S = Math.max(M[1], S)),
|
|
9223
|
+
return x += L, S += k, M && (x = Math.max(M[0], x), S = Math.max(M[1], S)), _ && (x = Math.min(_[0], x), S = Math.min(_[1], S)), this.slack = [L + ($ - x), k + (A - S)], [x, S];
|
|
9219
9224
|
}, b.resizeHandler = function(x, S) {
|
|
9220
9225
|
var E = this;
|
|
9221
|
-
return function(M,
|
|
9222
|
-
var P =
|
|
9226
|
+
return function(M, _) {
|
|
9227
|
+
var P = _.node, T = _.deltaX, I = _.deltaY;
|
|
9223
9228
|
x === "onResizeStart" && E.resetData();
|
|
9224
9229
|
var B = (E.props.axis === "both" || E.props.axis === "x") && S !== "n" && S !== "s", $ = (E.props.axis === "both" || E.props.axis === "y") && S !== "e" && S !== "w";
|
|
9225
9230
|
if (!(!B && !$)) {
|
|
@@ -9257,14 +9262,14 @@ function Nf() {
|
|
|
9257
9262
|
});
|
|
9258
9263
|
if (typeof E == "function")
|
|
9259
9264
|
return E(x, S);
|
|
9260
|
-
var M = typeof E.type == "string",
|
|
9265
|
+
var M = typeof E.type == "string", _ = d({
|
|
9261
9266
|
ref: S
|
|
9262
9267
|
}, M ? {} : {
|
|
9263
9268
|
handleAxis: x
|
|
9264
9269
|
});
|
|
9265
|
-
return /* @__PURE__ */ e.cloneElement(E,
|
|
9270
|
+
return /* @__PURE__ */ e.cloneElement(E, _);
|
|
9266
9271
|
}, b.render = function() {
|
|
9267
|
-
var x = this, S = this.props, E = S.children, M = S.className,
|
|
9272
|
+
var x = this, S = this.props, E = S.children, M = S.className, _ = S.draggableOpts;
|
|
9268
9273
|
S.width, S.height, S.handle, S.handleSize, S.lockAspectRatio, S.axis, S.minConstraints, S.maxConstraints, S.onResize, S.onResizeStop, S.onResizeStart;
|
|
9269
9274
|
var P = S.resizeHandles;
|
|
9270
9275
|
S.transformScale;
|
|
@@ -9273,7 +9278,7 @@ function Nf() {
|
|
|
9273
9278
|
className: (M ? M + " " : "") + "react-resizable",
|
|
9274
9279
|
children: [].concat(E.props.children, P.map(function(I) {
|
|
9275
9280
|
var B, $ = (B = x.handleRefs[I]) != null ? B : x.handleRefs[I] = /* @__PURE__ */ e.createRef();
|
|
9276
|
-
return /* @__PURE__ */ e.createElement(t.DraggableCore, s({},
|
|
9281
|
+
return /* @__PURE__ */ e.createElement(t.DraggableCore, s({}, _, {
|
|
9277
9282
|
nodeRef: $,
|
|
9278
9283
|
key: "resizableHandle-" + I,
|
|
9279
9284
|
onStop: x.resizeHandler("onResizeStop", I),
|
|
@@ -9283,7 +9288,7 @@ function Nf() {
|
|
|
9283
9288
|
}))
|
|
9284
9289
|
}));
|
|
9285
9290
|
}, m;
|
|
9286
|
-
}(e.Component);
|
|
9291
|
+
})(e.Component);
|
|
9287
9292
|
return co.default = f, f.propTypes = n.resizableProps, f.defaultProps = {
|
|
9288
9293
|
axis: "both",
|
|
9289
9294
|
handleSize: [20, 20],
|
|
@@ -9388,7 +9393,7 @@ function Jy() {
|
|
|
9388
9393
|
return x.__proto__ = S, x;
|
|
9389
9394
|
}, f(m, b);
|
|
9390
9395
|
}
|
|
9391
|
-
var v = /* @__PURE__ */ function(m) {
|
|
9396
|
+
var v = /* @__PURE__ */ (function(m) {
|
|
9392
9397
|
w(b, m);
|
|
9393
9398
|
function b() {
|
|
9394
9399
|
for (var x, S = arguments.length, E = new Array(S), M = 0; M < S; M++)
|
|
@@ -9398,10 +9403,10 @@ function Jy() {
|
|
|
9398
9403
|
height: x.props.height,
|
|
9399
9404
|
propsWidth: x.props.width,
|
|
9400
9405
|
propsHeight: x.props.height
|
|
9401
|
-
}, x.onResize = function(
|
|
9406
|
+
}, x.onResize = function(_, P) {
|
|
9402
9407
|
var T = P.size;
|
|
9403
|
-
x.props.onResize ? (
|
|
9404
|
-
return x.props.onResize && x.props.onResize(
|
|
9408
|
+
x.props.onResize ? (_.persist == null || _.persist(), x.setState(T, function() {
|
|
9409
|
+
return x.props.onResize && x.props.onResize(_, P);
|
|
9405
9410
|
})) : x.setState(T);
|
|
9406
9411
|
}, x;
|
|
9407
9412
|
}
|
|
@@ -9417,7 +9422,7 @@ function Jy() {
|
|
|
9417
9422
|
return C.render = function() {
|
|
9418
9423
|
var S = this.props, E = S.handle, M = S.handleSize;
|
|
9419
9424
|
S.onResize;
|
|
9420
|
-
var
|
|
9425
|
+
var _ = S.onResizeStart, P = S.onResizeStop, T = S.draggableOpts, I = S.minConstraints, B = S.maxConstraints, $ = S.lockAspectRatio, A = S.axis;
|
|
9421
9426
|
S.width, S.height;
|
|
9422
9427
|
var O = S.resizeHandles, L = S.style, k = S.transformScale, z = g(S, o);
|
|
9423
9428
|
return /* @__PURE__ */ e.createElement(r.default, {
|
|
@@ -9429,7 +9434,7 @@ function Jy() {
|
|
|
9429
9434
|
lockAspectRatio: $,
|
|
9430
9435
|
maxConstraints: B,
|
|
9431
9436
|
minConstraints: I,
|
|
9432
|
-
onResizeStart:
|
|
9437
|
+
onResizeStart: _,
|
|
9433
9438
|
onResize: this.onResize,
|
|
9434
9439
|
onResizeStop: P,
|
|
9435
9440
|
resizeHandles: O,
|
|
@@ -9442,7 +9447,7 @@ function Jy() {
|
|
|
9442
9447
|
})
|
|
9443
9448
|
})));
|
|
9444
9449
|
}, b;
|
|
9445
|
-
}(e.Component);
|
|
9450
|
+
})(e.Component);
|
|
9446
9451
|
return vo.default = v, v.propTypes = d(d({}, n.resizableProps), {}, {
|
|
9447
9452
|
children: t.default.element
|
|
9448
9453
|
}), vo;
|
|
@@ -9454,7 +9459,7 @@ function eb() {
|
|
|
9454
9459
|
}, lo.exports.Resizable = Nf().default, lo.exports.ResizableBox = Jy().default), lo.exports;
|
|
9455
9460
|
}
|
|
9456
9461
|
var Nr = {}, kl;
|
|
9457
|
-
function
|
|
9462
|
+
function Df() {
|
|
9458
9463
|
if (kl) return Nr;
|
|
9459
9464
|
kl = 1, Object.defineProperty(Nr, "__esModule", {
|
|
9460
9465
|
value: !0
|
|
@@ -9577,7 +9582,7 @@ function tb() {
|
|
|
9577
9582
|
Il = 1, Object.defineProperty(ao, "__esModule", {
|
|
9578
9583
|
value: !0
|
|
9579
9584
|
}), ao.default = void 0;
|
|
9580
|
-
var e = c(K), t = or, r = c(/* @__PURE__ */ on()), n = cu(), o = eb(), i = Zn(), a = uu(), s =
|
|
9585
|
+
var e = c(K), t = or, r = c(/* @__PURE__ */ on()), n = cu(), o = eb(), i = Zn(), a = uu(), s = Df(), l = c(su());
|
|
9581
9586
|
function c(g) {
|
|
9582
9587
|
return g && g.__esModule ? g : { default: g };
|
|
9583
9588
|
}
|
|
@@ -9620,8 +9625,8 @@ function tb() {
|
|
|
9620
9625
|
offsetParent: x
|
|
9621
9626
|
} = v;
|
|
9622
9627
|
if (!x) return;
|
|
9623
|
-
const S = x.getBoundingClientRect(), E = v.getBoundingClientRect(), M = E.left / b,
|
|
9624
|
-
C.left = M -
|
|
9628
|
+
const S = x.getBoundingClientRect(), E = v.getBoundingClientRect(), M = E.left / b, _ = S.left / b, P = E.top / b, T = S.top / b;
|
|
9629
|
+
C.left = M - _ + x.scrollLeft, C.top = P - T + x.scrollTop, this.setState({
|
|
9625
9630
|
dragging: C
|
|
9626
9631
|
});
|
|
9627
9632
|
const {
|
|
@@ -9648,7 +9653,7 @@ function tb() {
|
|
|
9648
9653
|
let S = this.state.dragging.top + C, E = this.state.dragging.left + b;
|
|
9649
9654
|
const {
|
|
9650
9655
|
isBounded: M,
|
|
9651
|
-
i:
|
|
9656
|
+
i: _,
|
|
9652
9657
|
w: P,
|
|
9653
9658
|
h: T,
|
|
9654
9659
|
containerWidth: I
|
|
@@ -9683,7 +9688,7 @@ function tb() {
|
|
|
9683
9688
|
x: A,
|
|
9684
9689
|
y: O
|
|
9685
9690
|
} = (0, a.calcXY)(B, S, E, P, T);
|
|
9686
|
-
return x.call(this,
|
|
9691
|
+
return x.call(this, _, A, O, {
|
|
9687
9692
|
e: w,
|
|
9688
9693
|
node: m,
|
|
9689
9694
|
newPosition: $
|
|
@@ -9713,10 +9718,10 @@ function tb() {
|
|
|
9713
9718
|
dragging: null
|
|
9714
9719
|
});
|
|
9715
9720
|
const {
|
|
9716
|
-
x:
|
|
9721
|
+
x: _,
|
|
9717
9722
|
y: P
|
|
9718
9723
|
} = (0, a.calcXY)(this.getPositionParams(), E, S, b, C);
|
|
9719
|
-
return m.call(this, x,
|
|
9724
|
+
return m.call(this, x, _, P, {
|
|
9720
9725
|
e: w,
|
|
9721
9726
|
node: v,
|
|
9722
9727
|
newPosition: M
|
|
@@ -9841,7 +9846,7 @@ function tb() {
|
|
|
9841
9846
|
maxH: S,
|
|
9842
9847
|
transformScale: E,
|
|
9843
9848
|
resizeHandles: M,
|
|
9844
|
-
resizeHandle:
|
|
9849
|
+
resizeHandle: _
|
|
9845
9850
|
} = this.props, P = this.getPositionParams(), T = (0, a.calcGridItemPosition)(P, 0, 0, m, 0).width, I = (0, a.calcGridItemPosition)(P, 0, 0, b, C), B = (0, a.calcGridItemPosition)(P, 0, 0, x, S), $ = [I.width, I.height], A = [Math.min(B.width, T), Math.min(B.height, 1 / 0)];
|
|
9846
9851
|
return /* @__PURE__ */ e.default.createElement(
|
|
9847
9852
|
o.Resizable,
|
|
@@ -9859,7 +9864,7 @@ function tb() {
|
|
|
9859
9864
|
onResize: this.curryResizeHandler(f, this.onResize),
|
|
9860
9865
|
transformScale: E,
|
|
9861
9866
|
resizeHandles: M,
|
|
9862
|
-
handle:
|
|
9867
|
+
handle: _
|
|
9863
9868
|
},
|
|
9864
9869
|
w
|
|
9865
9870
|
);
|
|
@@ -9878,7 +9883,7 @@ function tb() {
|
|
|
9878
9883
|
const {
|
|
9879
9884
|
x: E,
|
|
9880
9885
|
y: M,
|
|
9881
|
-
i:
|
|
9886
|
+
i: _,
|
|
9882
9887
|
maxH: P,
|
|
9883
9888
|
minH: T,
|
|
9884
9889
|
containerWidth: I
|
|
@@ -9896,7 +9901,7 @@ function tb() {
|
|
|
9896
9901
|
w: O,
|
|
9897
9902
|
h: L
|
|
9898
9903
|
} = (0, a.calcWH)(this.getPositionParams(), A.width, A.height, E, M, x);
|
|
9899
|
-
O = (0, a.clamp)(O, Math.max(B, 1), $), L = (0, a.clamp)(L, T, P), S.call(this,
|
|
9904
|
+
O = (0, a.clamp)(O, Math.max(B, 1), $), L = (0, a.clamp)(L, T, P), S.call(this, _, O, L, {
|
|
9900
9905
|
e: w,
|
|
9901
9906
|
node: b,
|
|
9902
9907
|
size: A,
|
|
@@ -9914,7 +9919,7 @@ function tb() {
|
|
|
9914
9919
|
droppingPosition: x,
|
|
9915
9920
|
useCSSTransforms: S
|
|
9916
9921
|
} = this.props, E = (0, a.calcGridItemPosition)(this.getPositionParams(), w, f, v, m, this.state), M = e.default.Children.only(this.props.children);
|
|
9917
|
-
let
|
|
9922
|
+
let _ = /* @__PURE__ */ e.default.cloneElement(M, {
|
|
9918
9923
|
ref: this.elementRef,
|
|
9919
9924
|
className: (0, l.default)("react-grid-item", M.props.className, this.props.className, {
|
|
9920
9925
|
static: this.props.static,
|
|
@@ -9931,7 +9936,7 @@ function tb() {
|
|
|
9931
9936
|
...this.createStyle(E)
|
|
9932
9937
|
}
|
|
9933
9938
|
});
|
|
9934
|
-
return
|
|
9939
|
+
return _ = this.mixinResizable(_, E, C), _ = this.mixinDraggable(_, b), _;
|
|
9935
9940
|
}
|
|
9936
9941
|
};
|
|
9937
9942
|
return ao.default = h, d(h, "propTypes", {
|
|
@@ -10014,12 +10019,12 @@ function tb() {
|
|
|
10014
10019
|
}), ao;
|
|
10015
10020
|
}
|
|
10016
10021
|
var Al;
|
|
10017
|
-
function
|
|
10022
|
+
function _f() {
|
|
10018
10023
|
if (Al) return io;
|
|
10019
10024
|
Al = 1, Object.defineProperty(io, "__esModule", {
|
|
10020
10025
|
value: !0
|
|
10021
10026
|
}), io.default = void 0;
|
|
10022
|
-
var e = c(K), t = /* @__PURE__ */ au(), r = s(su()), n = Zn(), o = uu(), i = s(tb()), a = s(
|
|
10027
|
+
var e = c(K), t = /* @__PURE__ */ au(), r = s(su()), n = Zn(), o = uu(), i = s(tb()), a = s(Df());
|
|
10023
10028
|
function s(f) {
|
|
10024
10029
|
return f && f.__esModule ? f : { default: f };
|
|
10025
10030
|
}
|
|
@@ -10093,7 +10098,7 @@ function Df() {
|
|
|
10093
10098
|
layout: E
|
|
10094
10099
|
} = this.state, M = (0, n.getLayoutItem)(E, v);
|
|
10095
10100
|
if (!M) return;
|
|
10096
|
-
const
|
|
10101
|
+
const _ = {
|
|
10097
10102
|
w: M.w,
|
|
10098
10103
|
h: M.h,
|
|
10099
10104
|
x: M.x,
|
|
@@ -10104,7 +10109,7 @@ function Df() {
|
|
|
10104
10109
|
return this.setState({
|
|
10105
10110
|
oldDragItem: (0, n.cloneLayoutItem)(M),
|
|
10106
10111
|
oldLayout: E,
|
|
10107
|
-
activeDrag:
|
|
10112
|
+
activeDrag: _
|
|
10108
10113
|
}), this.props.onDragStart(E, M, M, null, x, S);
|
|
10109
10114
|
}), d(this, "onDrag", (v, m, b, C) => {
|
|
10110
10115
|
let {
|
|
@@ -10118,7 +10123,7 @@ function Df() {
|
|
|
10118
10123
|
layout: M
|
|
10119
10124
|
} = this.state;
|
|
10120
10125
|
const {
|
|
10121
|
-
cols:
|
|
10126
|
+
cols: _,
|
|
10122
10127
|
allowOverlap: P,
|
|
10123
10128
|
preventCollision: T
|
|
10124
10129
|
} = this.props, I = (0, n.getLayoutItem)(M, v);
|
|
@@ -10131,8 +10136,8 @@ function Df() {
|
|
|
10131
10136
|
placeholder: !0,
|
|
10132
10137
|
i: v
|
|
10133
10138
|
};
|
|
10134
|
-
M = (0, n.moveElement)(M, I, m, b, !0, T, (0, n.compactType)(this.props),
|
|
10135
|
-
layout: P ? M : (0, n.compact)(M, (0, n.compactType)(this.props),
|
|
10139
|
+
M = (0, n.moveElement)(M, I, m, b, !0, T, (0, n.compactType)(this.props), _, P), this.props.onDrag(M, E, I, B, x, S), this.setState({
|
|
10140
|
+
layout: P ? M : (0, n.compact)(M, (0, n.compactType)(this.props), _),
|
|
10136
10141
|
activeDrag: B
|
|
10137
10142
|
});
|
|
10138
10143
|
}), d(this, "onDragStop", (v, m, b, C) => {
|
|
@@ -10148,13 +10153,13 @@ function Df() {
|
|
|
10148
10153
|
layout: M
|
|
10149
10154
|
} = this.state;
|
|
10150
10155
|
const {
|
|
10151
|
-
cols:
|
|
10156
|
+
cols: _,
|
|
10152
10157
|
preventCollision: P,
|
|
10153
10158
|
allowOverlap: T
|
|
10154
10159
|
} = this.props, I = (0, n.getLayoutItem)(M, v);
|
|
10155
10160
|
if (!I) return;
|
|
10156
|
-
M = (0, n.moveElement)(M, I, m, b, !0, P, (0, n.compactType)(this.props),
|
|
10157
|
-
const $ = T ? M : (0, n.compact)(M, (0, n.compactType)(this.props),
|
|
10161
|
+
M = (0, n.moveElement)(M, I, m, b, !0, P, (0, n.compactType)(this.props), _, T);
|
|
10162
|
+
const $ = T ? M : (0, n.compact)(M, (0, n.compactType)(this.props), _);
|
|
10158
10163
|
this.props.onDragStop($, E, I, null, x, S);
|
|
10159
10164
|
const {
|
|
10160
10165
|
oldLayout: A
|
|
@@ -10186,7 +10191,7 @@ function Df() {
|
|
|
10186
10191
|
handle: M
|
|
10187
10192
|
} = C;
|
|
10188
10193
|
const {
|
|
10189
|
-
oldResizeItem:
|
|
10194
|
+
oldResizeItem: _
|
|
10190
10195
|
} = this.state, {
|
|
10191
10196
|
layout: P
|
|
10192
10197
|
} = this.state, {
|
|
@@ -10215,7 +10220,7 @@ function Df() {
|
|
|
10215
10220
|
static: !0,
|
|
10216
10221
|
i: v
|
|
10217
10222
|
};
|
|
10218
|
-
this.props.onResize(A,
|
|
10223
|
+
this.props.onResize(A, _, z, W, x, S), this.setState({
|
|
10219
10224
|
layout: B ? A : (0, n.compact)(A, (0, n.compactType)(this.props), T),
|
|
10220
10225
|
activeDrag: W
|
|
10221
10226
|
});
|
|
@@ -10228,9 +10233,9 @@ function Df() {
|
|
|
10228
10233
|
layout: E,
|
|
10229
10234
|
oldResizeItem: M
|
|
10230
10235
|
} = this.state, {
|
|
10231
|
-
cols:
|
|
10236
|
+
cols: _,
|
|
10232
10237
|
allowOverlap: P
|
|
10233
|
-
} = this.props, T = (0, n.getLayoutItem)(E, v), I = P ? E : (0, n.compact)(E, (0, n.compactType)(this.props),
|
|
10238
|
+
} = this.props, T = (0, n.getLayoutItem)(E, v), I = P ? E : (0, n.compact)(E, (0, n.compactType)(this.props), _);
|
|
10234
10239
|
this.props.onResizeStop(I, M, T, null, x, S);
|
|
10235
10240
|
const {
|
|
10236
10241
|
oldLayout: B
|
|
@@ -10255,7 +10260,7 @@ function Df() {
|
|
|
10255
10260
|
rowHeight: S,
|
|
10256
10261
|
maxRows: E,
|
|
10257
10262
|
width: M,
|
|
10258
|
-
containerPadding:
|
|
10263
|
+
containerPadding: _,
|
|
10259
10264
|
transformScale: P
|
|
10260
10265
|
} = this.props, T = b == null ? void 0 : b(v);
|
|
10261
10266
|
if (T === !1)
|
|
@@ -10287,7 +10292,7 @@ function Df() {
|
|
|
10287
10292
|
maxRows: E,
|
|
10288
10293
|
rowHeight: S,
|
|
10289
10294
|
containerWidth: M,
|
|
10290
|
-
containerPadding:
|
|
10295
|
+
containerPadding: _ || C
|
|
10291
10296
|
}, W = (0, o.calcXY)(z, O, A, I.w, I.h);
|
|
10292
10297
|
this.setState({
|
|
10293
10298
|
droppingDOMNode: /* @__PURE__ */ e.createElement("div", {
|
|
@@ -10389,7 +10394,7 @@ function Df() {
|
|
|
10389
10394
|
rowHeight: S,
|
|
10390
10395
|
maxRows: E,
|
|
10391
10396
|
useCSSTransforms: M,
|
|
10392
|
-
transformScale:
|
|
10397
|
+
transformScale: _
|
|
10393
10398
|
} = this.props;
|
|
10394
10399
|
return /* @__PURE__ */ e.createElement(i.default, {
|
|
10395
10400
|
w: v.w,
|
|
@@ -10408,7 +10413,7 @@ function Df() {
|
|
|
10408
10413
|
isResizable: !1,
|
|
10409
10414
|
isBounded: !1,
|
|
10410
10415
|
useCSSTransforms: M,
|
|
10411
|
-
transformScale:
|
|
10416
|
+
transformScale: _
|
|
10412
10417
|
}, /* @__PURE__ */ e.createElement("div", null));
|
|
10413
10418
|
}
|
|
10414
10419
|
/**
|
|
@@ -10426,7 +10431,7 @@ function Df() {
|
|
|
10426
10431
|
margin: S,
|
|
10427
10432
|
containerPadding: E,
|
|
10428
10433
|
rowHeight: M,
|
|
10429
|
-
maxRows:
|
|
10434
|
+
maxRows: _,
|
|
10430
10435
|
isDraggable: P,
|
|
10431
10436
|
isResizable: T,
|
|
10432
10437
|
isBounded: I,
|
|
@@ -10445,7 +10450,7 @@ function Df() {
|
|
|
10445
10450
|
cols: x,
|
|
10446
10451
|
margin: S,
|
|
10447
10452
|
containerPadding: E || S,
|
|
10448
|
-
maxRows:
|
|
10453
|
+
maxRows: _,
|
|
10449
10454
|
rowHeight: M,
|
|
10450
10455
|
cancel: A,
|
|
10451
10456
|
handle: O,
|
|
@@ -10586,7 +10591,7 @@ function rb() {
|
|
|
10586
10591
|
$l = 1, Object.defineProperty(po, "__esModule", {
|
|
10587
10592
|
value: !0
|
|
10588
10593
|
}), po.default = void 0;
|
|
10589
|
-
var e = l(K), t = a(/* @__PURE__ */ on()), r = /* @__PURE__ */ au(), n = Zn(), o = Of(), i = a(
|
|
10594
|
+
var e = l(K), t = a(/* @__PURE__ */ on()), r = /* @__PURE__ */ au(), n = Zn(), o = Of(), i = a(_f());
|
|
10590
10595
|
function a(f) {
|
|
10591
10596
|
return f && f.__esModule ? f : { default: f };
|
|
10592
10597
|
}
|
|
@@ -10688,13 +10693,13 @@ function rb() {
|
|
|
10688
10693
|
cols: b,
|
|
10689
10694
|
layouts: C,
|
|
10690
10695
|
compactType: x
|
|
10691
|
-
} = this.props, S = this.props.breakpoint || (0, o.getBreakpointFromWidth)(this.props.breakpoints, this.props.width), E = this.state.breakpoint, M = (0, o.getColsFromBreakpoint)(S, b),
|
|
10696
|
+
} = this.props, S = this.props.breakpoint || (0, o.getBreakpointFromWidth)(this.props.breakpoints, this.props.width), E = this.state.breakpoint, M = (0, o.getColsFromBreakpoint)(S, b), _ = {
|
|
10692
10697
|
...C
|
|
10693
10698
|
};
|
|
10694
10699
|
if (E !== S || v.breakpoints !== m || v.cols !== b) {
|
|
10695
|
-
E in
|
|
10696
|
-
let I = (0, o.findOrGenerateResponsiveLayout)(
|
|
10697
|
-
I = (0, n.synchronizeLayoutWithChildren)(I, this.props.children, M, x, this.props.allowOverlap),
|
|
10700
|
+
E in _ || (_[E] = (0, n.cloneLayout)(this.state.layout));
|
|
10701
|
+
let I = (0, o.findOrGenerateResponsiveLayout)(_, m, S, E, M, x);
|
|
10702
|
+
I = (0, n.synchronizeLayoutWithChildren)(I, this.props.children, M, x, this.props.allowOverlap), _[S] = I, this.props.onBreakpointChange(S, M), this.props.onLayoutChange(I, _), this.setState({
|
|
10698
10703
|
breakpoint: S,
|
|
10699
10704
|
layout: I,
|
|
10700
10705
|
cols: M
|
|
@@ -10713,7 +10718,7 @@ function rb() {
|
|
|
10713
10718
|
containerPadding: S,
|
|
10714
10719
|
onBreakpointChange: E,
|
|
10715
10720
|
onLayoutChange: M,
|
|
10716
|
-
onWidthChange:
|
|
10721
|
+
onWidthChange: _,
|
|
10717
10722
|
...P
|
|
10718
10723
|
} = this.props;
|
|
10719
10724
|
return /* @__PURE__ */ e.createElement(i.default, c({}, P, {
|
|
@@ -10802,7 +10807,7 @@ function rb() {
|
|
|
10802
10807
|
onWidthChange: n.noop
|
|
10803
10808
|
}), po;
|
|
10804
10809
|
}
|
|
10805
|
-
var li = {}, Tf = function() {
|
|
10810
|
+
var li = {}, Tf = (function() {
|
|
10806
10811
|
if (typeof Map < "u")
|
|
10807
10812
|
return Map;
|
|
10808
10813
|
function e(t, r) {
|
|
@@ -10813,7 +10818,7 @@ var li = {}, Tf = function() {
|
|
|
10813
10818
|
}
|
|
10814
10819
|
return (
|
|
10815
10820
|
/** @class */
|
|
10816
|
-
function() {
|
|
10821
|
+
(function() {
|
|
10817
10822
|
function t() {
|
|
10818
10823
|
this.__entries__ = [];
|
|
10819
10824
|
}
|
|
@@ -10846,17 +10851,17 @@ var li = {}, Tf = function() {
|
|
|
10846
10851
|
r.call(n, a[1], a[0]);
|
|
10847
10852
|
}
|
|
10848
10853
|
}, t;
|
|
10849
|
-
}()
|
|
10854
|
+
})()
|
|
10850
10855
|
);
|
|
10851
|
-
}(), us = typeof window < "u" && typeof document < "u" && window.document === document, Ti = function() {
|
|
10856
|
+
})(), us = typeof window < "u" && typeof document < "u" && window.document === document, Ti = (function() {
|
|
10852
10857
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
10853
|
-
}(), nb = function() {
|
|
10858
|
+
})(), nb = (function() {
|
|
10854
10859
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Ti) : function(e) {
|
|
10855
10860
|
return setTimeout(function() {
|
|
10856
10861
|
return e(Date.now());
|
|
10857
10862
|
}, 1e3 / 60);
|
|
10858
10863
|
};
|
|
10859
|
-
}(), ob = 2;
|
|
10864
|
+
})(), ob = 2;
|
|
10860
10865
|
function ib(e, t) {
|
|
10861
10866
|
var r = !1, n = !1, o = 0;
|
|
10862
10867
|
function i() {
|
|
@@ -10879,7 +10884,7 @@ function ib(e, t) {
|
|
|
10879
10884
|
}
|
|
10880
10885
|
var ab = 20, sb = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], ub = typeof MutationObserver < "u", lb = (
|
|
10881
10886
|
/** @class */
|
|
10882
|
-
function() {
|
|
10887
|
+
(function() {
|
|
10883
10888
|
function e() {
|
|
10884
10889
|
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = ib(this.refresh.bind(this), ab);
|
|
10885
10890
|
}
|
|
@@ -10915,8 +10920,8 @@ var ab = 20, sb = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
10915
10920
|
}, e.getInstance = function() {
|
|
10916
10921
|
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
10917
10922
|
}, e.instance_ = null, e;
|
|
10918
|
-
}()
|
|
10919
|
-
), kf = function(e, t) {
|
|
10923
|
+
})()
|
|
10924
|
+
), kf = (function(e, t) {
|
|
10920
10925
|
for (var r = 0, n = Object.keys(t); r < n.length; r++) {
|
|
10921
10926
|
var o = n[r];
|
|
10922
10927
|
Object.defineProperty(e, o, {
|
|
@@ -10927,10 +10932,10 @@ var ab = 20, sb = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
10927
10932
|
});
|
|
10928
10933
|
}
|
|
10929
10934
|
return e;
|
|
10930
|
-
}, Bn = function(e) {
|
|
10935
|
+
}), Bn = (function(e) {
|
|
10931
10936
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
10932
10937
|
return t || Ti;
|
|
10933
|
-
}, If = ia(0, 0, 0, 0);
|
|
10938
|
+
}), If = ia(0, 0, 0, 0);
|
|
10934
10939
|
function ki(e) {
|
|
10935
10940
|
return parseFloat(e) || 0;
|
|
10936
10941
|
}
|
|
@@ -10964,13 +10969,13 @@ function fb(e) {
|
|
|
10964
10969
|
}
|
|
10965
10970
|
return ia(o.left, o.top, s, l);
|
|
10966
10971
|
}
|
|
10967
|
-
var vb = /* @__PURE__ */ function() {
|
|
10972
|
+
var vb = /* @__PURE__ */ (function() {
|
|
10968
10973
|
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
10969
10974
|
return e instanceof Bn(e).SVGGraphicsElement;
|
|
10970
10975
|
} : function(e) {
|
|
10971
10976
|
return e instanceof Bn(e).SVGElement && typeof e.getBBox == "function";
|
|
10972
10977
|
};
|
|
10973
|
-
}();
|
|
10978
|
+
})();
|
|
10974
10979
|
function pb(e) {
|
|
10975
10980
|
return e === Bn(e).document.documentElement;
|
|
10976
10981
|
}
|
|
@@ -10995,7 +11000,7 @@ function ia(e, t, r, n) {
|
|
|
10995
11000
|
}
|
|
10996
11001
|
var gb = (
|
|
10997
11002
|
/** @class */
|
|
10998
|
-
function() {
|
|
11003
|
+
(function() {
|
|
10999
11004
|
function e(t) {
|
|
11000
11005
|
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = ia(0, 0, 0, 0), this.target = t;
|
|
11001
11006
|
}
|
|
@@ -11006,19 +11011,19 @@ var gb = (
|
|
|
11006
11011
|
var t = this.contentRect_;
|
|
11007
11012
|
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
11008
11013
|
}, e;
|
|
11009
|
-
}()
|
|
11014
|
+
})()
|
|
11010
11015
|
), yb = (
|
|
11011
11016
|
/** @class */
|
|
11012
|
-
/* @__PURE__ */ function() {
|
|
11017
|
+
/* @__PURE__ */ (function() {
|
|
11013
11018
|
function e(t, r) {
|
|
11014
11019
|
var n = mb(r);
|
|
11015
11020
|
kf(this, { target: t, contentRect: n });
|
|
11016
11021
|
}
|
|
11017
11022
|
return e;
|
|
11018
|
-
}()
|
|
11023
|
+
})()
|
|
11019
11024
|
), bb = (
|
|
11020
11025
|
/** @class */
|
|
11021
|
-
function() {
|
|
11026
|
+
(function() {
|
|
11022
11027
|
function e(t, r, n) {
|
|
11023
11028
|
if (this.activeObservations_ = [], this.observations_ = new Tf(), typeof t != "function")
|
|
11024
11029
|
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
@@ -11061,10 +11066,10 @@ var gb = (
|
|
|
11061
11066
|
}, e.prototype.hasActive = function() {
|
|
11062
11067
|
return this.activeObservations_.length > 0;
|
|
11063
11068
|
}, e;
|
|
11064
|
-
}()
|
|
11069
|
+
})()
|
|
11065
11070
|
), Af = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Tf(), Lf = (
|
|
11066
11071
|
/** @class */
|
|
11067
|
-
/* @__PURE__ */ function() {
|
|
11072
|
+
/* @__PURE__ */ (function() {
|
|
11068
11073
|
function e(t) {
|
|
11069
11074
|
if (!(this instanceof e))
|
|
11070
11075
|
throw new TypeError("Cannot call a class as a function.");
|
|
@@ -11074,7 +11079,7 @@ var gb = (
|
|
|
11074
11079
|
Af.set(this, n);
|
|
11075
11080
|
}
|
|
11076
11081
|
return e;
|
|
11077
|
-
}()
|
|
11082
|
+
})()
|
|
11078
11083
|
);
|
|
11079
11084
|
[
|
|
11080
11085
|
"observe",
|
|
@@ -11086,9 +11091,9 @@ var gb = (
|
|
|
11086
11091
|
return (t = Af.get(this))[e].apply(t, arguments);
|
|
11087
11092
|
};
|
|
11088
11093
|
});
|
|
11089
|
-
var $f = function() {
|
|
11094
|
+
var $f = (function() {
|
|
11090
11095
|
return typeof Ti.ResizeObserver < "u" ? Ti.ResizeObserver : Lf;
|
|
11091
|
-
}();
|
|
11096
|
+
})();
|
|
11092
11097
|
const wb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11093
11098
|
__proto__: null,
|
|
11094
11099
|
default: $f
|
|
@@ -11200,9 +11205,9 @@ function Cb() {
|
|
|
11200
11205
|
}
|
|
11201
11206
|
var Hl;
|
|
11202
11207
|
function Sb() {
|
|
11203
|
-
return Hl || (Hl = 1, function(e) {
|
|
11204
|
-
e.exports =
|
|
11205
|
-
}(za)), za.exports;
|
|
11208
|
+
return Hl || (Hl = 1, (function(e) {
|
|
11209
|
+
e.exports = _f().default, e.exports.utils = Zn(), e.exports.calculateUtils = uu(), e.exports.Responsive = rb().default, e.exports.Responsive.utils = Of(), e.exports.WidthProvider = Cb().default;
|
|
11210
|
+
})(za)), za.exports;
|
|
11206
11211
|
}
|
|
11207
11212
|
var zf = Sb();
|
|
11208
11213
|
const Eb = /* @__PURE__ */ js(zf), Rb = zf.WidthProvider(Eb);
|
|
@@ -11312,12 +11317,12 @@ function Hf(e, t) {
|
|
|
11312
11317
|
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ls(e, t) : void 0;
|
|
11313
11318
|
}
|
|
11314
11319
|
}
|
|
11315
|
-
function
|
|
11320
|
+
function Db() {
|
|
11316
11321
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11317
11322
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11318
11323
|
}
|
|
11319
11324
|
function ie(e, t) {
|
|
11320
|
-
return Pb(e) || Nb(e, t) || Hf(e, t) ||
|
|
11325
|
+
return Pb(e) || Nb(e, t) || Hf(e, t) || Db();
|
|
11321
11326
|
}
|
|
11322
11327
|
function du(e, t) {
|
|
11323
11328
|
if (e == null) return {};
|
|
@@ -11361,7 +11366,7 @@ function ne(e) {
|
|
|
11361
11366
|
function kr() {
|
|
11362
11367
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
11363
11368
|
}
|
|
11364
|
-
var cs = {},
|
|
11369
|
+
var cs = {}, _b = function(t) {
|
|
11365
11370
|
};
|
|
11366
11371
|
function Ob(e, t) {
|
|
11367
11372
|
}
|
|
@@ -11379,7 +11384,7 @@ function Qn(e, t) {
|
|
|
11379
11384
|
function Ib(e, t) {
|
|
11380
11385
|
Wf(Tb, e, t);
|
|
11381
11386
|
}
|
|
11382
|
-
Qn.preMessage =
|
|
11387
|
+
Qn.preMessage = _b;
|
|
11383
11388
|
Qn.resetWarned = kb;
|
|
11384
11389
|
Qn.noteOnce = Ib;
|
|
11385
11390
|
var Va = { exports: {} }, je = {};
|
|
@@ -11751,12 +11756,12 @@ var Xl = function(t) {
|
|
|
11751
11756
|
var M = sa(S, t);
|
|
11752
11757
|
if (!y || !kr() || w === void 0)
|
|
11753
11758
|
return null;
|
|
11754
|
-
var
|
|
11759
|
+
var _ = x === !1 || t1(), P = s;
|
|
11755
11760
|
return t && (P = /* @__PURE__ */ p.cloneElement(s, {
|
|
11756
11761
|
ref: M
|
|
11757
11762
|
})), /* @__PURE__ */ p.createElement(qf.Provider, {
|
|
11758
11763
|
value: C
|
|
11759
|
-
},
|
|
11764
|
+
}, _ ? P : /* @__PURE__ */ qi(P, x));
|
|
11760
11765
|
}), Ga = { exports: {} };
|
|
11761
11766
|
/*!
|
|
11762
11767
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -11765,7 +11770,7 @@ var Xl = function(t) {
|
|
|
11765
11770
|
*/
|
|
11766
11771
|
var Zl;
|
|
11767
11772
|
function r1() {
|
|
11768
|
-
return Zl || (Zl = 1, function(e) {
|
|
11773
|
+
return Zl || (Zl = 1, (function(e) {
|
|
11769
11774
|
(function() {
|
|
11770
11775
|
var t = {}.hasOwnProperty;
|
|
11771
11776
|
function r() {
|
|
@@ -11794,7 +11799,7 @@ function r1() {
|
|
|
11794
11799
|
}
|
|
11795
11800
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
11796
11801
|
})();
|
|
11797
|
-
}(Ga)), Ga.exports;
|
|
11802
|
+
})(Ga)), Ga.exports;
|
|
11798
11803
|
}
|
|
11799
11804
|
var n1 = r1();
|
|
11800
11805
|
const at = /* @__PURE__ */ js(n1);
|
|
@@ -11919,7 +11924,7 @@ function ca(e) {
|
|
|
11919
11924
|
return l1(this, r);
|
|
11920
11925
|
};
|
|
11921
11926
|
}
|
|
11922
|
-
var c1 = /* @__PURE__ */ function(e) {
|
|
11927
|
+
var c1 = /* @__PURE__ */ (function(e) {
|
|
11923
11928
|
la(r, e);
|
|
11924
11929
|
var t = ca(r);
|
|
11925
11930
|
function r() {
|
|
@@ -11931,7 +11936,7 @@ var c1 = /* @__PURE__ */ function(e) {
|
|
|
11931
11936
|
return this.props.children;
|
|
11932
11937
|
}
|
|
11933
11938
|
}]), r;
|
|
11934
|
-
}(p.Component);
|
|
11939
|
+
})(p.Component);
|
|
11935
11940
|
function d1(e, t) {
|
|
11936
11941
|
var r = e.children, n = e.disabled, o = p.useRef(null), i = p.useRef(null), a = p.useContext(vs), s = typeof r == "function", l = s ? r(o) : r, c = p.useRef({
|
|
11937
11942
|
width: -1,
|
|
@@ -11949,10 +11954,10 @@ function d1(e, t) {
|
|
|
11949
11954
|
var g = p.useRef(e);
|
|
11950
11955
|
g.current = e;
|
|
11951
11956
|
var w = p.useCallback(function(f) {
|
|
11952
|
-
var v = g.current, m = v.onResize, b = v.data, C = f.getBoundingClientRect(), x = C.width, S = C.height, E = f.offsetWidth, M = f.offsetHeight,
|
|
11953
|
-
if (c.current.width !==
|
|
11957
|
+
var v = g.current, m = v.onResize, b = v.data, C = f.getBoundingClientRect(), x = C.width, S = C.height, E = f.offsetWidth, M = f.offsetHeight, _ = Math.floor(x), P = Math.floor(S);
|
|
11958
|
+
if (c.current.width !== _ || c.current.height !== P || c.current.offsetWidth !== E || c.current.offsetHeight !== M) {
|
|
11954
11959
|
var T = {
|
|
11955
|
-
width:
|
|
11960
|
+
width: _,
|
|
11956
11961
|
height: P,
|
|
11957
11962
|
offsetWidth: E,
|
|
11958
11963
|
offsetHeight: M
|
|
@@ -12018,26 +12023,26 @@ function m1() {
|
|
|
12018
12023
|
var Jl = 0, ec = m1();
|
|
12019
12024
|
const g1 = ec ? (
|
|
12020
12025
|
// Use React `useId`
|
|
12021
|
-
function(t) {
|
|
12026
|
+
(function(t) {
|
|
12022
12027
|
var r = ec();
|
|
12023
12028
|
return t || r;
|
|
12024
|
-
}
|
|
12029
|
+
})
|
|
12025
12030
|
) : (
|
|
12026
12031
|
// Use compatible of `useId`
|
|
12027
|
-
function(t) {
|
|
12032
|
+
(function(t) {
|
|
12028
12033
|
var r = p.useState("ssr-id"), n = ie(r, 2), o = n[0], i = n[1];
|
|
12029
12034
|
return p.useEffect(function() {
|
|
12030
12035
|
var a = Jl;
|
|
12031
12036
|
Jl += 1, i("rc_unique_".concat(a));
|
|
12032
12037
|
}, []), t || o;
|
|
12033
|
-
}
|
|
12034
|
-
), y1 = function() {
|
|
12038
|
+
})
|
|
12039
|
+
), y1 = (function() {
|
|
12035
12040
|
if (typeof navigator > "u" || typeof window > "u")
|
|
12036
12041
|
return !1;
|
|
12037
12042
|
var e = navigator.userAgent || navigator.vendor || window.opera;
|
|
12038
12043
|
return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substr(0, 4));
|
|
12039
|
-
};
|
|
12040
|
-
var b1 = /* @__PURE__ */ p.createContext({}), w1 = /* @__PURE__ */ function(e) {
|
|
12044
|
+
});
|
|
12045
|
+
var b1 = /* @__PURE__ */ p.createContext({}), w1 = /* @__PURE__ */ (function(e) {
|
|
12041
12046
|
la(r, e);
|
|
12042
12047
|
var t = ca(r);
|
|
12043
12048
|
function r() {
|
|
@@ -12049,8 +12054,8 @@ var b1 = /* @__PURE__ */ p.createContext({}), w1 = /* @__PURE__ */ function(e) {
|
|
|
12049
12054
|
return this.props.children;
|
|
12050
12055
|
}
|
|
12051
12056
|
}]), r;
|
|
12052
|
-
}(p.Component);
|
|
12053
|
-
function
|
|
12057
|
+
})(p.Component);
|
|
12058
|
+
function Do(e) {
|
|
12054
12059
|
var t = p.useRef(!1), r = p.useState(e), n = ie(r, 2), o = n[0], i = n[1];
|
|
12055
12060
|
p.useEffect(function() {
|
|
12056
12061
|
return t.current = !1, function() {
|
|
@@ -12066,9 +12071,9 @@ function Ua(e) {
|
|
|
12066
12071
|
return e !== void 0;
|
|
12067
12072
|
}
|
|
12068
12073
|
function xi(e, t) {
|
|
12069
|
-
var r = t || {}, n = r.defaultValue, o = r.value, i = r.onChange, a = r.postState, s =
|
|
12074
|
+
var r = t || {}, n = r.defaultValue, o = r.value, i = r.onChange, a = r.postState, s = Do(function() {
|
|
12070
12075
|
return Ua(o) ? o : Ua(n) ? typeof n == "function" ? n() : n : typeof e == "function" ? e() : e;
|
|
12071
|
-
}), l = ie(s, 2), c = l[0], d = l[1], u = o !== void 0 ? o : c, y = a ? a(u) : u, h = Ot(i), g =
|
|
12076
|
+
}), l = ie(s, 2), c = l[0], d = l[1], u = o !== void 0 ? o : c, y = a ? a(u) : u, h = Ot(i), g = Do([u]), w = ie(g, 2), f = w[0], v = w[1];
|
|
12072
12077
|
ql(function() {
|
|
12073
12078
|
var b = f[0];
|
|
12074
12079
|
c !== b && h(c, b);
|
|
@@ -12131,7 +12136,7 @@ function ic(e, t) {
|
|
|
12131
12136
|
}
|
|
12132
12137
|
return "".concat(e, "-").concat(t);
|
|
12133
12138
|
}
|
|
12134
|
-
const R1 = function(e) {
|
|
12139
|
+
const R1 = (function(e) {
|
|
12135
12140
|
var t = ye();
|
|
12136
12141
|
function r(o) {
|
|
12137
12142
|
o && (o.removeEventListener(oc, e), o.removeEventListener(nc, e));
|
|
@@ -12144,7 +12149,7 @@ const R1 = function(e) {
|
|
|
12144
12149
|
r(t.current);
|
|
12145
12150
|
};
|
|
12146
12151
|
}, []), [n, r];
|
|
12147
|
-
};
|
|
12152
|
+
});
|
|
12148
12153
|
var av = kr() ? $s : Qe, sv = function(t) {
|
|
12149
12154
|
return +setTimeout(t, 16);
|
|
12150
12155
|
}, uv = function(t) {
|
|
@@ -12179,7 +12184,7 @@ gt.cancel = function(e) {
|
|
|
12179
12184
|
var t = hu.get(e);
|
|
12180
12185
|
return lv(e), uv(t);
|
|
12181
12186
|
};
|
|
12182
|
-
const M1 = function() {
|
|
12187
|
+
const M1 = (function() {
|
|
12183
12188
|
var e = p.useRef(null);
|
|
12184
12189
|
function t() {
|
|
12185
12190
|
gt.cancel(e.current);
|
|
@@ -12201,13 +12206,13 @@ const M1 = function() {
|
|
|
12201
12206
|
t();
|
|
12202
12207
|
};
|
|
12203
12208
|
}, []), [r, t];
|
|
12204
|
-
};
|
|
12205
|
-
var P1 = [nr, An, Ln, pu], N1 = [nr, ev], cv = !1,
|
|
12209
|
+
});
|
|
12210
|
+
var P1 = [nr, An, Ln, pu], N1 = [nr, ev], cv = !1, D1 = !0;
|
|
12206
12211
|
function dv(e) {
|
|
12207
12212
|
return e === Ln || e === pu;
|
|
12208
12213
|
}
|
|
12209
|
-
const
|
|
12210
|
-
var n =
|
|
12214
|
+
const _1 = (function(e, t, r) {
|
|
12215
|
+
var n = Do(tc), o = ie(n, 2), i = o[0], a = o[1], s = M1(), l = ie(s, 2), c = l[0], d = l[1];
|
|
12211
12216
|
function u() {
|
|
12212
12217
|
a(nr, !0);
|
|
12213
12218
|
}
|
|
@@ -12227,9 +12232,9 @@ const D1 = function(e, t, r) {
|
|
|
12227
12232
|
d();
|
|
12228
12233
|
};
|
|
12229
12234
|
}, []), [u, i];
|
|
12230
|
-
};
|
|
12235
|
+
});
|
|
12231
12236
|
function O1(e, t, r, n) {
|
|
12232
|
-
var o = n.motionEnter, i = o === void 0 ? !0 : o, a = n.motionAppear, s = a === void 0 ? !0 : a, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, u = n.motionLeaveImmediately, y = n.onAppearPrepare, h = n.onEnterPrepare, g = n.onLeavePrepare, w = n.onAppearStart, f = n.onEnterStart, v = n.onLeaveStart, m = n.onAppearActive, b = n.onEnterActive, C = n.onLeaveActive, x = n.onAppearEnd, S = n.onEnterEnd, E = n.onLeaveEnd, M = n.onVisibleChanged,
|
|
12237
|
+
var o = n.motionEnter, i = o === void 0 ? !0 : o, a = n.motionAppear, s = a === void 0 ? !0 : a, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, u = n.motionLeaveImmediately, y = n.onAppearPrepare, h = n.onEnterPrepare, g = n.onLeavePrepare, w = n.onAppearStart, f = n.onEnterStart, v = n.onLeaveStart, m = n.onAppearActive, b = n.onEnterActive, C = n.onLeaveActive, x = n.onAppearEnd, S = n.onEnterEnd, E = n.onLeaveEnd, M = n.onVisibleChanged, _ = Do(), P = ie(_, 2), T = P[0], I = P[1], B = x1(Xr), $ = ie(B, 2), A = $[0], O = $[1], L = Do(null), k = ie(L, 2), z = k[0], W = k[1], H = A(), Y = ye(!1), q = ye(null);
|
|
12233
12238
|
function G() {
|
|
12234
12239
|
return r();
|
|
12235
12240
|
}
|
|
@@ -12257,22 +12262,22 @@ function O1(e, t, r, n) {
|
|
|
12257
12262
|
default:
|
|
12258
12263
|
return {};
|
|
12259
12264
|
}
|
|
12260
|
-
},
|
|
12265
|
+
}, D = p.useMemo(function() {
|
|
12261
12266
|
return N(H);
|
|
12262
|
-
}, [H]), F =
|
|
12267
|
+
}, [H]), F = _1(H, !e, function(xe) {
|
|
12263
12268
|
if (xe === nr) {
|
|
12264
|
-
var he =
|
|
12269
|
+
var he = D[nr];
|
|
12265
12270
|
return he ? he(G()) : cv;
|
|
12266
12271
|
}
|
|
12267
|
-
if (X in
|
|
12272
|
+
if (X in D) {
|
|
12268
12273
|
var te;
|
|
12269
|
-
W(((te =
|
|
12274
|
+
W(((te = D[X]) === null || te === void 0 ? void 0 : te.call(D, G(), null)) || null);
|
|
12270
12275
|
}
|
|
12271
12276
|
return X === Ln && H !== Xr && (Q(G()), d > 0 && (clearTimeout(q.current), q.current = setTimeout(function() {
|
|
12272
12277
|
ge({
|
|
12273
12278
|
deadline: !0
|
|
12274
12279
|
});
|
|
12275
|
-
}, d))), X === ev && pe(),
|
|
12280
|
+
}, d))), X === ev && pe(), D1;
|
|
12276
12281
|
}), U = ie(F, 2), Z = U[0], X = U[1], oe = dv(X);
|
|
12277
12282
|
ee.current = oe;
|
|
12278
12283
|
var J = ye(null);
|
|
@@ -12301,7 +12306,7 @@ function O1(e, t, r, n) {
|
|
|
12301
12306
|
T && (re.current = !0), T !== void 0 && H === Xr && ((re.current || T) && (M == null || M(T)), re.current = !0);
|
|
12302
12307
|
}, [T, H]);
|
|
12303
12308
|
var we = z;
|
|
12304
|
-
return
|
|
12309
|
+
return D[nr] && X === An && (we = ne({
|
|
12305
12310
|
transition: "none"
|
|
12306
12311
|
}, we)), [H, X, we, T != null ? T : t];
|
|
12307
12312
|
}
|
|
@@ -12320,7 +12325,7 @@ function T1(e) {
|
|
|
12320
12325
|
return null;
|
|
12321
12326
|
}
|
|
12322
12327
|
}
|
|
12323
|
-
var x = O1(v, s, C, o), S = ie(x, 4), E = S[0], M = S[1],
|
|
12328
|
+
var x = O1(v, s, C, o), S = ie(x, 4), E = S[0], M = S[1], _ = S[2], P = S[3], T = p.useRef(P);
|
|
12324
12329
|
P && (T.current = !0);
|
|
12325
12330
|
var I = p.useCallback(function(k) {
|
|
12326
12331
|
m.current = k, fu(i, k);
|
|
@@ -12343,7 +12348,7 @@ function T1(e) {
|
|
|
12343
12348
|
var O = ic(y, "".concat(E, "-").concat(A));
|
|
12344
12349
|
B = u(ne(ne({}, $), {}, {
|
|
12345
12350
|
className: at(ic(y, E), Ce(Ce({}, O, O && A), y, typeof y == "string")),
|
|
12346
|
-
style:
|
|
12351
|
+
style: _
|
|
12347
12352
|
}), I);
|
|
12348
12353
|
}
|
|
12349
12354
|
if (/* @__PURE__ */ p.isValidElement(B) && Jn(B)) {
|
|
@@ -12415,7 +12420,7 @@ function I1() {
|
|
|
12415
12420
|
}
|
|
12416
12421
|
var A1 = ["component", "children", "onVisibleChanged", "onAllRemoved"], L1 = ["status"], $1 = ["eventProps", "visible", "children", "motionName", "motionAppear", "motionEnter", "motionLeave", "motionLeaveImmediately", "motionDeadline", "removeOnLeave", "leavedClassName", "onAppearPrepare", "onAppearStart", "onAppearActive", "onAppearEnd", "onEnterStart", "onEnterActive", "onEnterEnd", "onLeaveStart", "onLeaveActive", "onLeaveEnd"];
|
|
12417
12422
|
function z1(e) {
|
|
12418
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : da, r = /* @__PURE__ */ function(n) {
|
|
12423
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : da, r = /* @__PURE__ */ (function(n) {
|
|
12419
12424
|
la(i, n);
|
|
12420
12425
|
var o = ca(i);
|
|
12421
12426
|
function i() {
|
|
@@ -12485,7 +12490,7 @@ function z1(e) {
|
|
|
12485
12490
|
};
|
|
12486
12491
|
}
|
|
12487
12492
|
}]), i;
|
|
12488
|
-
}(p.Component);
|
|
12493
|
+
})(p.Component);
|
|
12489
12494
|
return Ce(r, "defaultProps", {
|
|
12490
12495
|
component: "div"
|
|
12491
12496
|
}), r;
|
|
@@ -12530,7 +12535,7 @@ var W1 = /* @__PURE__ */ p.memo(function(e) {
|
|
|
12530
12535
|
}, function(e, t) {
|
|
12531
12536
|
return t.cache;
|
|
12532
12537
|
}), B1 = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
12533
|
-
var r = e.popup, n = e.className, o = e.prefixCls, i = e.style, a = e.target, s = e.onVisibleChanged, l = e.open, c = e.keepDom, d = e.fresh, u = e.onClick, y = e.mask, h = e.arrow, g = e.arrowPos, w = e.align, f = e.motion, v = e.maskMotion, m = e.forceRender, b = e.getPopupContainer, C = e.autoDestroy, x = e.portal, S = e.zIndex, E = e.onMouseEnter, M = e.onMouseLeave,
|
|
12538
|
+
var r = e.popup, n = e.className, o = e.prefixCls, i = e.style, a = e.target, s = e.onVisibleChanged, l = e.open, c = e.keepDom, d = e.fresh, u = e.onClick, y = e.mask, h = e.arrow, g = e.arrowPos, w = e.align, f = e.motion, v = e.maskMotion, m = e.forceRender, b = e.getPopupContainer, C = e.autoDestroy, x = e.portal, S = e.zIndex, E = e.onMouseEnter, M = e.onMouseLeave, _ = e.onPointerEnter, P = e.onPointerDownCapture, T = e.ready, I = e.offsetX, B = e.offsetY, $ = e.offsetR, A = e.offsetB, O = e.onAlign, L = e.onPrepare, k = e.stretch, z = e.targetWidth, W = e.targetHeight, H = typeof r == "function" ? r() : r, Y = l || c, q = (b == null ? void 0 : b.length) > 0, G = p.useState(!b || !q), ee = ie(G, 2), pe = ee[0], ge = ee[1];
|
|
12534
12539
|
if (mt(function() {
|
|
12535
12540
|
!pe && q && a && ge(!0);
|
|
12536
12541
|
}, [pe, q, a]), !pe)
|
|
@@ -12542,7 +12547,7 @@ var W1 = /* @__PURE__ */ p.memo(function(e) {
|
|
|
12542
12547
|
bottom: j
|
|
12543
12548
|
};
|
|
12544
12549
|
if (T || !l) {
|
|
12545
|
-
var Q, N = w.points,
|
|
12550
|
+
var Q, N = w.points, D = w.dynamicInset || ((Q = w._experimental) === null || Q === void 0 ? void 0 : Q.dynamicInset), F = D && N[0][1] === "r", U = D && N[0][0] === "b";
|
|
12546
12551
|
F ? (V.right = $, V.left = j) : (V.left = I, V.right = j), U ? (V.bottom = A, V.top = j) : (V.top = B, V.bottom = j);
|
|
12547
12552
|
}
|
|
12548
12553
|
var Z = {};
|
|
@@ -12591,7 +12596,7 @@ var W1 = /* @__PURE__ */ p.memo(function(e) {
|
|
|
12591
12596
|
}, i),
|
|
12592
12597
|
onMouseEnter: E,
|
|
12593
12598
|
onMouseLeave: M,
|
|
12594
|
-
onPointerEnter:
|
|
12599
|
+
onPointerEnter: _,
|
|
12595
12600
|
onClick: u,
|
|
12596
12601
|
onPointerDownCapture: P
|
|
12597
12602
|
}, h && /* @__PURE__ */ p.createElement(F1, {
|
|
@@ -12621,7 +12626,7 @@ function V1(e, t, r, n) {
|
|
|
12621
12626
|
return e && (a.has("hover") && (a.delete("hover"), a.add("click")), s.has("hover") && (s.delete("hover"), s.add("click"))), [a, s];
|
|
12622
12627
|
}, [e, t, r, n]);
|
|
12623
12628
|
}
|
|
12624
|
-
const fv = function(e) {
|
|
12629
|
+
const fv = (function(e) {
|
|
12625
12630
|
if (!e)
|
|
12626
12631
|
return !1;
|
|
12627
12632
|
if (e instanceof Element) {
|
|
@@ -12639,7 +12644,7 @@ const fv = function(e) {
|
|
|
12639
12644
|
}
|
|
12640
12645
|
}
|
|
12641
12646
|
return !1;
|
|
12642
|
-
};
|
|
12647
|
+
});
|
|
12643
12648
|
function q1() {
|
|
12644
12649
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 ? arguments[2] : void 0;
|
|
12645
12650
|
return r ? e[0] === t[0] : e[0] === t[0] && e[1] === t[1];
|
|
@@ -12671,23 +12676,23 @@ function ws(e) {
|
|
|
12671
12676
|
}
|
|
12672
12677
|
return t;
|
|
12673
12678
|
}
|
|
12674
|
-
function
|
|
12679
|
+
function _o(e) {
|
|
12675
12680
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
12676
12681
|
return Number.isNaN(e) ? t : e;
|
|
12677
12682
|
}
|
|
12678
12683
|
function ho(e) {
|
|
12679
|
-
return
|
|
12684
|
+
return _o(parseFloat(e), 0);
|
|
12680
12685
|
}
|
|
12681
12686
|
function cc(e, t) {
|
|
12682
12687
|
var r = ne({}, e);
|
|
12683
12688
|
return (t || []).forEach(function(n) {
|
|
12684
12689
|
if (!(n instanceof HTMLBodyElement || n instanceof HTMLHtmlElement)) {
|
|
12685
|
-
var o = Bo(n).getComputedStyle(n), i = o.overflow, a = o.overflowClipMargin, s = o.borderTopWidth, l = o.borderBottomWidth, c = o.borderLeftWidth, d = o.borderRightWidth, u = n.getBoundingClientRect(), y = n.offsetHeight, h = n.clientHeight, g = n.offsetWidth, w = n.clientWidth, f = ho(s), v = ho(l), m = ho(c), b = ho(d), C =
|
|
12690
|
+
var o = Bo(n).getComputedStyle(n), i = o.overflow, a = o.overflowClipMargin, s = o.borderTopWidth, l = o.borderBottomWidth, c = o.borderLeftWidth, d = o.borderRightWidth, u = n.getBoundingClientRect(), y = n.offsetHeight, h = n.clientHeight, g = n.offsetWidth, w = n.clientWidth, f = ho(s), v = ho(l), m = ho(c), b = ho(d), C = _o(Math.round(u.width / g * 1e3) / 1e3), x = _o(Math.round(u.height / y * 1e3) / 1e3), S = (g - w - m - b) * C, E = (y - h - f - v) * x, M = f * x, _ = v * x, P = m * C, T = b * C, I = 0, B = 0;
|
|
12686
12691
|
if (i === "clip") {
|
|
12687
12692
|
var $ = ho(a);
|
|
12688
12693
|
I = $ * C, B = $ * x;
|
|
12689
12694
|
}
|
|
12690
|
-
var A = u.x + P - I, O = u.y + M - B, L = A + u.width + 2 * I - P - T - S, k = O + u.height + 2 * B - M -
|
|
12695
|
+
var A = u.x + P - I, O = u.y + M - B, L = A + u.width + 2 * I - P - T - S, k = O + u.height + 2 * B - M - _ - E;
|
|
12691
12696
|
r.left = Math.max(r.left, A), r.top = Math.max(r.top, O), r.right = Math.min(r.right, L), r.bottom = Math.min(r.bottom, k);
|
|
12692
12697
|
}
|
|
12693
12698
|
}), r;
|
|
@@ -12704,7 +12709,7 @@ function vc() {
|
|
|
12704
12709
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
12705
12710
|
return [e[0], e[1]];
|
|
12706
12711
|
}
|
|
12707
|
-
function
|
|
12712
|
+
function Dn(e, t) {
|
|
12708
12713
|
var r = t[0], n = t[1], o, i;
|
|
12709
12714
|
return r === "t" ? i = e.y : r === "b" ? i = e.y + e.height : i = e.y + e.height / 2, n === "l" ? o = e.x : n === "r" ? o = e.x + e.width : o = e.x + e.width / 2, {
|
|
12710
12715
|
x: o,
|
|
@@ -12743,12 +12748,12 @@ function U1(e, t, r, n, o, i, a) {
|
|
|
12743
12748
|
var w = Ot(function() {
|
|
12744
12749
|
if (t && r && e) {
|
|
12745
12750
|
let Kt = function(Rn, Br) {
|
|
12746
|
-
var jr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : We, ro = G.x + Rn, Zo = G.y + Br, Sa = ro + F, Ea = Zo +
|
|
12751
|
+
var jr = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : We, ro = G.x + Rn, Zo = G.y + Br, Sa = ro + F, Ea = Zo + D, Ra = Math.max(ro, jr.left), me = Math.max(Zo, jr.top), Se = Math.min(Sa, jr.right), ot = Math.min(Ea, jr.bottom);
|
|
12747
12752
|
return Math.max(0, (Se - Ra) * (ot - me));
|
|
12748
12753
|
}, Xo = function() {
|
|
12749
|
-
Wt = G.y + se, er = Wt +
|
|
12754
|
+
Wt = G.y + se, er = Wt + D, It = G.x + de, cr = It + F;
|
|
12750
12755
|
};
|
|
12751
|
-
var m, b, C, x, S = t, E = S.ownerDocument, M = Bo(S),
|
|
12756
|
+
var m, b, C, x, S = t, E = S.ownerDocument, M = Bo(S), _ = M.getComputedStyle(S), P = _.width, T = _.height, I = _.position, B = S.style.left, $ = S.style.top, A = S.style.right, O = S.style.bottom, L = S.style.overflow, k = ne(ne({}, o[n]), i), z = E.createElement("div");
|
|
12752
12757
|
(m = S.parentElement) === null || m === void 0 || m.appendChild(z), z.style.left = "".concat(S.offsetLeft, "px"), z.style.top = "".concat(S.offsetTop, "px"), z.style.position = I, z.style.height = "".concat(S.offsetHeight, "px"), z.style.width = "".concat(S.offsetWidth, "px"), S.style.left = "0", S.style.top = "0", S.style.right = "auto", S.style.bottom = "auto", S.style.overflow = "hidden";
|
|
12753
12758
|
var W;
|
|
12754
12759
|
if (Array.isArray(r))
|
|
@@ -12769,7 +12774,7 @@ function U1(e, t, r, n, o, i, a) {
|
|
|
12769
12774
|
}
|
|
12770
12775
|
var G = S.getBoundingClientRect();
|
|
12771
12776
|
G.x = (b = G.x) !== null && b !== void 0 ? b : G.left, G.y = (C = G.y) !== null && C !== void 0 ? C : G.top;
|
|
12772
|
-
var ee = E.documentElement, pe = ee.clientWidth, ge = ee.clientHeight, j = ee.scrollWidth, V = ee.scrollHeight, Q = ee.scrollTop, N = ee.scrollLeft,
|
|
12777
|
+
var ee = E.documentElement, pe = ee.clientWidth, ge = ee.clientHeight, j = ee.scrollWidth, V = ee.scrollHeight, Q = ee.scrollTop, N = ee.scrollLeft, D = G.height, F = G.width, U = W.height, Z = W.width, X = {
|
|
12773
12778
|
left: 0,
|
|
12774
12779
|
top: 0,
|
|
12775
12780
|
right: pe,
|
|
@@ -12785,19 +12790,19 @@ function U1(e, t, r, n, o, i, a) {
|
|
|
12785
12790
|
S.style.left = "auto", S.style.top = "auto", S.style.right = "0", S.style.bottom = "0";
|
|
12786
12791
|
var Ee = S.getBoundingClientRect();
|
|
12787
12792
|
S.style.left = B, S.style.top = $, S.style.right = A, S.style.bottom = O, S.style.overflow = L, (x = S.parentElement) === null || x === void 0 || x.removeChild(z);
|
|
12788
|
-
var Ge =
|
|
12793
|
+
var Ge = _o(Math.round(F / parseFloat(P) * 1e3) / 1e3), ze = _o(Math.round(D / parseFloat(T) * 1e3) / 1e3);
|
|
12789
12794
|
if (Ge === 0 || ze === 0 || No(r) && !fv(r))
|
|
12790
12795
|
return;
|
|
12791
12796
|
var Ie = k.offset, Ye = k.targetOffset, Je = fc(G, Ie), Ve = ie(Je, 2), Xe = Ve[0], Ae = Ve[1], Fe = fc(W, Ye), Ue = ie(Fe, 2), pt = Ue[0], st = Ue[1];
|
|
12792
12797
|
W.x -= pt, W.y -= st;
|
|
12793
|
-
var ht = k.points || [], Ft = ie(ht, 2), St = Ft[0], Tt = Ft[1], it = vc(Tt), le = vc(St),
|
|
12798
|
+
var ht = k.points || [], Ft = ie(ht, 2), St = Ft[0], Tt = Ft[1], it = vc(Tt), le = vc(St), _e = Dn(W, it), Re = Dn(G, le), ce = ne({}, k), de = _e.x - Re.x + Xe, se = _e.y - Re.y + Ae, Pe = Kt(de, se), nt = Kt(de, se, te), tt = Dn(W, ["t", "l"]), qe = Dn(G, ["t", "l"]), Zt = Dn(W, ["b", "r"]), yt = Dn(G, ["b", "r"]), kt = k.overflow || {}, Qt = kt.adjustX, $r = kt.adjustY, Ht = kt.shiftX, Et = kt.shiftY, Jt = function(Br) {
|
|
12794
12799
|
return typeof Br == "boolean" ? Br : Br >= 0;
|
|
12795
12800
|
}, Wt, er, It, cr;
|
|
12796
12801
|
Xo();
|
|
12797
12802
|
var Pt = Jt($r), Er = le[0] === it[0];
|
|
12798
12803
|
if (Pt && le[0] === "t" && (er > ke.bottom || h.current.bt)) {
|
|
12799
12804
|
var ue = se;
|
|
12800
|
-
Er ? ue -=
|
|
12805
|
+
Er ? ue -= D - U : ue = tt.y - yt.y - Ae;
|
|
12801
12806
|
var fe = Kt(de, ue), Me = Kt(de, ue, te);
|
|
12802
12807
|
// Of course use larger one
|
|
12803
12808
|
fe > Pe || fe === Pe && (!xe || // Choose recommend one
|
|
@@ -12805,7 +12810,7 @@ function U1(e, t, r, n, o, i, a) {
|
|
|
12805
12810
|
}
|
|
12806
12811
|
if (Pt && le[0] === "b" && (Wt < ke.top || h.current.tb)) {
|
|
12807
12812
|
var Oe = se;
|
|
12808
|
-
Er ? Oe +=
|
|
12813
|
+
Er ? Oe += D - U : Oe = Zt.y - qe.y - Ae;
|
|
12809
12814
|
var Ke = Kt(de, Oe), Gt = Kt(de, Oe, te);
|
|
12810
12815
|
// Of course use larger one
|
|
12811
12816
|
Ke > Pe || Ke === Pe && (!xe || // Choose recommend one
|
|
@@ -12815,10 +12820,10 @@ function U1(e, t, r, n, o, i, a) {
|
|
|
12815
12820
|
if (At && le[1] === "l" && (cr > ke.right || h.current.rl)) {
|
|
12816
12821
|
var tr = de;
|
|
12817
12822
|
dr ? tr -= F - Z : tr = tt.x - yt.x - Xe;
|
|
12818
|
-
var fr = Kt(tr, se),
|
|
12823
|
+
var fr = Kt(tr, se), _t = Kt(tr, se, te);
|
|
12819
12824
|
// Of course use larger one
|
|
12820
12825
|
fr > Pe || fr === Pe && (!xe || // Choose recommend one
|
|
12821
|
-
|
|
12826
|
+
_t >= nt) ? (h.current.rl = !0, de = tr, Xe = -Xe, ce.points = [Kr(le, 1), Kr(it, 1)]) : h.current.rl = !1;
|
|
12822
12827
|
}
|
|
12823
12828
|
if (At && le[1] === "r" && (It < ke.left || h.current.lr)) {
|
|
12824
12829
|
var rr = de;
|
|
@@ -12833,7 +12838,7 @@ function U1(e, t, r, n, o, i, a) {
|
|
|
12833
12838
|
typeof Bt == "number" && (It < te.left && (de -= It - te.left - Xe, W.x + Z < te.left + Bt && (de += W.x - te.left + Z - Bt)), cr > te.right && (de -= cr - te.right - Xe, W.x > te.right - Bt && (de += W.x - te.right + Bt)));
|
|
12834
12839
|
var jt = Et === !0 ? 0 : Et;
|
|
12835
12840
|
typeof jt == "number" && (Wt < te.top && (se -= Wt - te.top - Ae, W.y + U < te.top + jt && (se += W.y - te.top + U - jt)), er > te.bottom && (se -= er - te.bottom - Ae, W.y > te.bottom - jt && (se += W.y - te.bottom + jt)));
|
|
12836
|
-
var zr = G.x + de, Fr = zr + F, Ut = G.y + se, eo = Ut +
|
|
12841
|
+
var zr = G.x + de, Fr = zr + F, Ut = G.y + se, eo = Ut + D, Ze = W.x, Le = Ze + Z, Be = W.y, Rt = Be + U, Mt = Math.max(zr, Ze), Hr = Math.min(Fr, Le), Wr = (Mt + Hr) / 2, to = Wr - zr, En = Math.max(Ut, Be), sn = Math.min(eo, Rt), Rr = (En + sn) / 2, un = Rr - Ut;
|
|
12837
12842
|
a == null || a(t, ce);
|
|
12838
12843
|
var ln = Ee.right - G.x - (de + G.width), vr = Ee.bottom - G.y - (se + G.height);
|
|
12839
12844
|
Ge === 1 && (de = Math.round(de), ln = Math.round(ln)), ze === 1 && (se = Math.round(se), vr = Math.round(vr));
|
|
@@ -12916,7 +12921,7 @@ function Y1(e, t, r, n, o, i, a, s) {
|
|
|
12916
12921
|
var X1 = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
|
|
12917
12922
|
function Z1() {
|
|
12918
12923
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xf, t = /* @__PURE__ */ p.forwardRef(function(r, n) {
|
|
12919
|
-
var o = r.prefixCls, i = o === void 0 ? "rc-trigger-popup" : o, a = r.children, s = r.action, l = s === void 0 ? "hover" : s, c = r.showAction, d = r.hideAction, u = r.popupVisible, y = r.defaultPopupVisible, h = r.onPopupVisibleChange, g = r.afterPopupVisibleChange, w = r.mouseEnterDelay, f = r.mouseLeaveDelay, v = f === void 0 ? 0.1 : f, m = r.focusDelay, b = r.blurDelay, C = r.mask, x = r.maskClosable, S = x === void 0 ? !0 : x, E = r.getPopupContainer, M = r.forceRender,
|
|
12924
|
+
var o = r.prefixCls, i = o === void 0 ? "rc-trigger-popup" : o, a = r.children, s = r.action, l = s === void 0 ? "hover" : s, c = r.showAction, d = r.hideAction, u = r.popupVisible, y = r.defaultPopupVisible, h = r.onPopupVisibleChange, g = r.afterPopupVisibleChange, w = r.mouseEnterDelay, f = r.mouseLeaveDelay, v = f === void 0 ? 0.1 : f, m = r.focusDelay, b = r.blurDelay, C = r.mask, x = r.maskClosable, S = x === void 0 ? !0 : x, E = r.getPopupContainer, M = r.forceRender, _ = r.autoDestroy, P = r.destroyPopupOnHide, T = r.popup, I = r.popupClassName, B = r.popupStyle, $ = r.popupPlacement, A = r.builtinPlacements, O = A === void 0 ? {} : A, L = r.popupAlign, k = r.zIndex, z = r.stretch, W = r.getPopupClassNameFromAlign, H = r.fresh, Y = r.alignPoint, q = r.onPopupClick, G = r.onPopupAlign, ee = r.arrow, pe = r.popupMotion, ge = r.maskMotion, j = r.popupTransitionName, V = r.popupAnimation, Q = r.maskTransitionName, N = r.maskAnimation, D = r.className, F = r.getTriggerDOMNode, U = vt(r, X1), Z = _ || P || !1, X = p.useState(!1), oe = ie(X, 2), J = oe[0], re = oe[1];
|
|
12920
12925
|
mt(function() {
|
|
12921
12926
|
re(y1());
|
|
12922
12927
|
}, []);
|
|
@@ -12935,11 +12940,11 @@ function Z1() {
|
|
|
12935
12940
|
return (bt == null ? void 0 : bt.contains(me)) || ((Se = hs(bt)) === null || Se === void 0 ? void 0 : Se.host) === me || me === bt || (Ee == null ? void 0 : Ee.contains(me)) || ((ot = hs(Ee)) === null || ot === void 0 ? void 0 : ot.host) === me || me === Ee || Object.values(we.current).some(function(ut) {
|
|
12936
12941
|
return (ut == null ? void 0 : ut.contains(me)) || me === ut;
|
|
12937
12942
|
});
|
|
12938
|
-
}), Ft = lc(i, pe, V, j), St = lc(i, ge, N, Q), Tt = p.useState(y || !1), it = ie(Tt, 2), le = it[0],
|
|
12939
|
-
u === void 0 &&
|
|
12943
|
+
}), Ft = lc(i, pe, V, j), St = lc(i, ge, N, Q), Tt = p.useState(y || !1), it = ie(Tt, 2), le = it[0], _e = it[1], Re = u != null ? u : le, ce = Ot(function(me) {
|
|
12944
|
+
u === void 0 && _e(me);
|
|
12940
12945
|
});
|
|
12941
12946
|
mt(function() {
|
|
12942
|
-
|
|
12947
|
+
_e(u || !1);
|
|
12943
12948
|
}, [u]);
|
|
12944
12949
|
var de = p.useRef(Re);
|
|
12945
12950
|
de.current = Re;
|
|
@@ -12965,7 +12970,7 @@ function Z1() {
|
|
|
12965
12970
|
}, [Re]);
|
|
12966
12971
|
var $r = p.useState(null), Ht = ie($r, 2), Et = Ht[0], Jt = Ht[1], Wt = p.useState(null), er = ie(Wt, 2), It = er[0], cr = er[1], Pt = function(Se) {
|
|
12967
12972
|
cr([Se.clientX, Se.clientY]);
|
|
12968
|
-
}, Er = U1(Re, Ee, Y && It !== null ? It : Ve, $, O, L, G), ue = ie(Er, 11), fe = ue[0], Me = ue[1], Oe = ue[2], Ke = ue[3], Gt = ue[4], At = ue[5], dr = ue[6], tr = ue[7], fr = ue[8],
|
|
12973
|
+
}, Er = U1(Re, Ee, Y && It !== null ? It : Ve, $, O, L, G), ue = ie(Er, 11), fe = ue[0], Me = ue[1], Oe = ue[2], Ke = ue[3], Gt = ue[4], At = ue[5], dr = ue[6], tr = ue[7], fr = ue[8], _t = ue[9], rr = ue[10], Cn = V1(J, l, c, d), Sn = ie(Cn, 2), Bt = Sn[0], jt = Sn[1], zr = Bt.has("click"), Fr = jt.has("click") || jt.has("contextMenu"), Ut = Ot(function() {
|
|
12969
12974
|
kt || rr();
|
|
12970
12975
|
}), eo = function() {
|
|
12971
12976
|
de.current && Y && Fr && qe(!1);
|
|
@@ -12976,9 +12981,9 @@ function Z1() {
|
|
|
12976
12981
|
Re && !(O != null && O[$]) && Ut();
|
|
12977
12982
|
}, [JSON.stringify(L)]);
|
|
12978
12983
|
var Ze = p.useMemo(function() {
|
|
12979
|
-
var me = G1(O, i,
|
|
12980
|
-
return at(me, W == null ? void 0 : W(
|
|
12981
|
-
}, [
|
|
12984
|
+
var me = G1(O, i, _t, Y);
|
|
12985
|
+
return at(me, W == null ? void 0 : W(_t));
|
|
12986
|
+
}, [_t, W, O, i, Y]);
|
|
12982
12987
|
p.useImperativeHandle(n, function() {
|
|
12983
12988
|
return {
|
|
12984
12989
|
nativeElement: Ae.current,
|
|
@@ -13039,7 +13044,7 @@ function Z1() {
|
|
|
13039
13044
|
for (var ot = arguments.length, bt = new Array(ot > 1 ? ot - 1 : 0), ut = 1; ut < ot; ut++)
|
|
13040
13045
|
bt[ut - 1] = arguments[ut];
|
|
13041
13046
|
(Se = pt.onContextMenu) === null || Se === void 0 || Se.call.apply(Se, [pt, me].concat(bt));
|
|
13042
|
-
}),
|
|
13047
|
+
}), D && (st.className = at(pt.className, D));
|
|
13043
13048
|
var jr = ne(ne({}, pt), st), ro = {}, Zo = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
|
|
13044
13049
|
Zo.forEach(function(me) {
|
|
13045
13050
|
U[me] && (ro[me] = function() {
|
|
@@ -13085,7 +13090,7 @@ function Z1() {
|
|
|
13085
13090
|
forceRender: M,
|
|
13086
13091
|
autoDestroy: Z,
|
|
13087
13092
|
getPopupContainer: E,
|
|
13088
|
-
align:
|
|
13093
|
+
align: _t,
|
|
13089
13094
|
arrow: Ra,
|
|
13090
13095
|
arrowPos: Ea,
|
|
13091
13096
|
ready: fe,
|
|
@@ -13186,54 +13191,54 @@ var tw = /* @__PURE__ */ He(function(e, t) {
|
|
|
13186
13191
|
}), /* @__PURE__ */ K.cloneElement(i, {
|
|
13187
13192
|
ref: Jn(i) ? a : void 0
|
|
13188
13193
|
}));
|
|
13189
|
-
}),
|
|
13194
|
+
}), _n = {
|
|
13190
13195
|
adjustX: 1,
|
|
13191
13196
|
adjustY: 1
|
|
13192
13197
|
}, On = [0, 0], rw = {
|
|
13193
13198
|
topLeft: {
|
|
13194
13199
|
points: ["bl", "tl"],
|
|
13195
|
-
overflow:
|
|
13200
|
+
overflow: _n,
|
|
13196
13201
|
offset: [0, -4],
|
|
13197
13202
|
targetOffset: On
|
|
13198
13203
|
},
|
|
13199
13204
|
top: {
|
|
13200
13205
|
points: ["bc", "tc"],
|
|
13201
|
-
overflow:
|
|
13206
|
+
overflow: _n,
|
|
13202
13207
|
offset: [0, -4],
|
|
13203
13208
|
targetOffset: On
|
|
13204
13209
|
},
|
|
13205
13210
|
topRight: {
|
|
13206
13211
|
points: ["br", "tr"],
|
|
13207
|
-
overflow:
|
|
13212
|
+
overflow: _n,
|
|
13208
13213
|
offset: [0, -4],
|
|
13209
13214
|
targetOffset: On
|
|
13210
13215
|
},
|
|
13211
13216
|
bottomLeft: {
|
|
13212
13217
|
points: ["tl", "bl"],
|
|
13213
|
-
overflow:
|
|
13218
|
+
overflow: _n,
|
|
13214
13219
|
offset: [0, 4],
|
|
13215
13220
|
targetOffset: On
|
|
13216
13221
|
},
|
|
13217
13222
|
bottom: {
|
|
13218
13223
|
points: ["tc", "bc"],
|
|
13219
|
-
overflow:
|
|
13224
|
+
overflow: _n,
|
|
13220
13225
|
offset: [0, 4],
|
|
13221
13226
|
targetOffset: On
|
|
13222
13227
|
},
|
|
13223
13228
|
bottomRight: {
|
|
13224
13229
|
points: ["tr", "br"],
|
|
13225
|
-
overflow:
|
|
13230
|
+
overflow: _n,
|
|
13226
13231
|
offset: [0, 4],
|
|
13227
13232
|
targetOffset: On
|
|
13228
13233
|
}
|
|
13229
13234
|
}, nw = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
13230
13235
|
function ow(e, t) {
|
|
13231
|
-
var r, n = e.arrow, o = n === void 0 ? !1 : n, i = e.prefixCls, a = i === void 0 ? "rc-dropdown" : i, s = e.transitionName, l = e.animation, c = e.align, d = e.placement, u = d === void 0 ? "bottomLeft" : d, y = e.placements, h = y === void 0 ? rw : y, g = e.getPopupContainer, w = e.showAction, f = e.hideAction, v = e.overlayClassName, m = e.overlayStyle, b = e.visible, C = e.trigger, x = C === void 0 ? ["hover"] : C, S = e.autoFocus, E = e.overlay, M = e.children,
|
|
13236
|
+
var r, n = e.arrow, o = n === void 0 ? !1 : n, i = e.prefixCls, a = i === void 0 ? "rc-dropdown" : i, s = e.transitionName, l = e.animation, c = e.align, d = e.placement, u = d === void 0 ? "bottomLeft" : d, y = e.placements, h = y === void 0 ? rw : y, g = e.getPopupContainer, w = e.showAction, f = e.hideAction, v = e.overlayClassName, m = e.overlayStyle, b = e.visible, C = e.trigger, x = C === void 0 ? ["hover"] : C, S = e.autoFocus, E = e.overlay, M = e.children, _ = e.onVisibleChange, P = vt(e, nw), T = K.useState(), I = ie(T, 2), B = I[0], $ = I[1], A = "visible" in e ? b : B, O = K.useRef(null), L = K.useRef(null), k = K.useRef(null);
|
|
13232
13237
|
K.useImperativeHandle(t, function() {
|
|
13233
13238
|
return O.current;
|
|
13234
13239
|
});
|
|
13235
13240
|
var z = function(j) {
|
|
13236
|
-
$(j),
|
|
13241
|
+
$(j), _ == null || _(j);
|
|
13237
13242
|
};
|
|
13238
13243
|
ew({
|
|
13239
13244
|
visible: A,
|
|
@@ -13423,8 +13428,8 @@ var fw = p.forwardRef((e, t) => {
|
|
|
13423
13428
|
x.current = !0;
|
|
13424
13429
|
}),
|
|
13425
13430
|
onFocus: be(e.onFocus, (M) => {
|
|
13426
|
-
const
|
|
13427
|
-
if (M.target === M.currentTarget &&
|
|
13431
|
+
const _ = !x.current;
|
|
13432
|
+
if (M.target === M.currentTarget && _ && !v) {
|
|
13428
13433
|
const P = new CustomEvent(Ya, sw);
|
|
13429
13434
|
if (M.currentTarget.dispatchEvent(P), !P.defaultPrevented) {
|
|
13430
13435
|
const T = C().filter((O) => O.focusable), I = T.find((O) => O.active), B = T.find((O) => O.id === w), A = [I, B, ...T].filter(
|
|
@@ -13581,12 +13586,12 @@ var gu = "MenuPortal", [Pw, Pv] = xn(gu, {
|
|
|
13581
13586
|
return /* @__PURE__ */ R(Pw, { scope: t, forceMount: r, children: /* @__PURE__ */ R(zt, { present: r || i.open, children: /* @__PURE__ */ R(Kn, { asChild: !0, container: o, children: n }) }) });
|
|
13582
13587
|
};
|
|
13583
13588
|
Nv.displayName = gu;
|
|
13584
|
-
var Xt = "MenuContent", [Nw, yu] = xn(Xt),
|
|
13589
|
+
var Xt = "MenuContent", [Nw, yu] = xn(Xt), Dv = p.forwardRef(
|
|
13585
13590
|
(e, t) => {
|
|
13586
13591
|
const r = Pv(Xt, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, i = an(Xt, e.__scopeMenu), a = Go(Xt, e.__scopeMenu);
|
|
13587
|
-
return /* @__PURE__ */ R(Oo.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ R(zt, { present: n || i.open, children: /* @__PURE__ */ R(Oo.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ R(
|
|
13592
|
+
return /* @__PURE__ */ R(Oo.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ R(zt, { present: n || i.open, children: /* @__PURE__ */ R(Oo.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ R(Dw, { ...o, ref: t }) : /* @__PURE__ */ R(_w, { ...o, ref: t }) }) }) });
|
|
13588
13593
|
}
|
|
13589
|
-
),
|
|
13594
|
+
), Dw = p.forwardRef(
|
|
13590
13595
|
(e, t) => {
|
|
13591
13596
|
const r = an(Xt, e.__scopeMenu), n = p.useRef(null), o = ct(t, n);
|
|
13592
13597
|
return p.useEffect(() => {
|
|
@@ -13609,7 +13614,7 @@ var Xt = "MenuContent", [Nw, yu] = xn(Xt), _v = p.forwardRef(
|
|
|
13609
13614
|
}
|
|
13610
13615
|
);
|
|
13611
13616
|
}
|
|
13612
|
-
),
|
|
13617
|
+
), _w = p.forwardRef((e, t) => {
|
|
13613
13618
|
const r = an(Xt, e.__scopeMenu);
|
|
13614
13619
|
return /* @__PURE__ */ R(
|
|
13615
13620
|
bu,
|
|
@@ -13639,14 +13644,14 @@ var Xt = "MenuContent", [Nw, yu] = xn(Xt), _v = p.forwardRef(
|
|
|
13639
13644
|
onDismiss: h,
|
|
13640
13645
|
disableOutsideScroll: g,
|
|
13641
13646
|
...w
|
|
13642
|
-
} = e, f = an(Xt, r), v = Go(Xt, r), m = qo(r), b = Ev(r), C = Sw(r), [x, S] = p.useState(null), E = p.useRef(null), M = ct(t, E, f.onContentChange),
|
|
13647
|
+
} = e, f = an(Xt, r), v = Go(Xt, r), m = qo(r), b = Ev(r), C = Sw(r), [x, S] = p.useState(null), E = p.useRef(null), M = ct(t, E, f.onContentChange), _ = p.useRef(0), P = p.useRef(""), T = p.useRef(0), I = p.useRef(null), B = p.useRef("right"), $ = p.useRef(0), A = g ? Xi : p.Fragment, O = g ? { as: Ow, allowPinchZoom: !0 } : void 0, L = (z) => {
|
|
13643
13648
|
var ge, j;
|
|
13644
13649
|
const W = P.current + z, H = C().filter((V) => !V.disabled), Y = document.activeElement, q = (ge = H.find((V) => V.ref.current === Y)) == null ? void 0 : ge.textValue, G = H.map((V) => V.textValue), ee = jw(G, W, q), pe = (j = H.find((V) => V.textValue === ee)) == null ? void 0 : j.ref.current;
|
|
13645
13650
|
(function V(Q) {
|
|
13646
|
-
P.current = Q, window.clearTimeout(
|
|
13651
|
+
P.current = Q, window.clearTimeout(_.current), Q !== "" && (_.current = window.setTimeout(() => V(""), 1e3));
|
|
13647
13652
|
})(W), pe && setTimeout(() => pe.focus());
|
|
13648
13653
|
};
|
|
13649
|
-
p.useEffect(() => () => window.clearTimeout(
|
|
13654
|
+
p.useEffect(() => () => window.clearTimeout(_.current), []), Vs();
|
|
13650
13655
|
const k = p.useCallback((z) => {
|
|
13651
13656
|
var H, Y;
|
|
13652
13657
|
return B.current === ((H = I.current) == null ? void 0 : H.side) && qw(z, (Y = I.current) == null ? void 0 : Y.area);
|
|
@@ -13735,7 +13740,7 @@ var Xt = "MenuContent", [Nw, yu] = xn(Xt), _v = p.forwardRef(
|
|
|
13735
13740
|
Cv.includes(z.key) && pe.reverse(), Ww(pe);
|
|
13736
13741
|
}),
|
|
13737
13742
|
onBlur: be(e.onBlur, (z) => {
|
|
13738
|
-
z.currentTarget.contains(z.target) || (window.clearTimeout(
|
|
13743
|
+
z.currentTarget.contains(z.target) || (window.clearTimeout(_.current), P.current = "");
|
|
13739
13744
|
}),
|
|
13740
13745
|
onPointerMove: be(
|
|
13741
13746
|
e.onPointerMove,
|
|
@@ -13759,7 +13764,7 @@ var Xt = "MenuContent", [Nw, yu] = xn(Xt), _v = p.forwardRef(
|
|
|
13759
13764
|
);
|
|
13760
13765
|
}
|
|
13761
13766
|
);
|
|
13762
|
-
|
|
13767
|
+
Dv.displayName = Xt;
|
|
13763
13768
|
var Tw = "MenuGroup", wu = p.forwardRef(
|
|
13764
13769
|
(e, t) => {
|
|
13765
13770
|
const { __scopeMenu: r, ...n } = e;
|
|
@@ -13767,13 +13772,13 @@ var Tw = "MenuGroup", wu = p.forwardRef(
|
|
|
13767
13772
|
}
|
|
13768
13773
|
);
|
|
13769
13774
|
wu.displayName = Tw;
|
|
13770
|
-
var kw = "MenuLabel",
|
|
13775
|
+
var kw = "MenuLabel", _v = p.forwardRef(
|
|
13771
13776
|
(e, t) => {
|
|
13772
13777
|
const { __scopeMenu: r, ...n } = e;
|
|
13773
13778
|
return /* @__PURE__ */ R(et.div, { ...n, ref: t });
|
|
13774
13779
|
}
|
|
13775
13780
|
);
|
|
13776
|
-
|
|
13781
|
+
_v.displayName = kw;
|
|
13777
13782
|
var $i = "MenuItem", pc = "menu.itemSelect", fa = p.forwardRef(
|
|
13778
13783
|
(e, t) => {
|
|
13779
13784
|
const { disabled: r = !1, onSelect: n, ...o } = e, i = p.useRef(null), a = Go($i, e.__scopeMenu), s = yu($i, e.__scopeMenu), l = ct(t, i), c = p.useRef(!1), d = () => {
|
|
@@ -14122,10 +14127,10 @@ function qw(e, t) {
|
|
|
14122
14127
|
function To(e) {
|
|
14123
14128
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
14124
14129
|
}
|
|
14125
|
-
var Gw = Mv, Uw = mu, Kw = Nv, Yw =
|
|
14130
|
+
var Gw = Mv, Uw = mu, Kw = Nv, Yw = Dv, Xw = wu, Zw = _v, Qw = fa, Jw = Tv, ex = Iv, tx = Lv, rx = zv, nx = Fv, ox = Hv, ix = Bv, ax = jv, sx = qv, va = "DropdownMenu", [ux, pR] = Ar(
|
|
14126
14131
|
va,
|
|
14127
14132
|
[Sv]
|
|
14128
|
-
),
|
|
14133
|
+
), Dt = Sv(), [lx, Uv] = ux(va), Kv = (e) => {
|
|
14129
14134
|
const {
|
|
14130
14135
|
__scopeDropdownMenu: t,
|
|
14131
14136
|
children: r,
|
|
@@ -14134,7 +14139,7 @@ var Gw = Mv, Uw = mu, Kw = Nv, Yw = _v, Xw = wu, Zw = Dv, Qw = fa, Jw = Tv, ex =
|
|
|
14134
14139
|
defaultOpen: i,
|
|
14135
14140
|
onOpenChange: a,
|
|
14136
14141
|
modal: s = !0
|
|
14137
|
-
} = e, l =
|
|
14142
|
+
} = e, l = Dt(t), c = p.useRef(null), [d, u] = bn({
|
|
14138
14143
|
prop: o,
|
|
14139
14144
|
defaultProp: i != null ? i : !1,
|
|
14140
14145
|
onChange: a,
|
|
@@ -14158,7 +14163,7 @@ var Gw = Mv, Uw = mu, Kw = Nv, Yw = _v, Xw = wu, Zw = Dv, Qw = fa, Jw = Tv, ex =
|
|
|
14158
14163
|
Kv.displayName = va;
|
|
14159
14164
|
var Yv = "DropdownMenuTrigger", Xv = p.forwardRef(
|
|
14160
14165
|
(e, t) => {
|
|
14161
|
-
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, i = Uv(Yv, r), a =
|
|
14166
|
+
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, i = Uv(Yv, r), a = Dt(r);
|
|
14162
14167
|
return /* @__PURE__ */ R(Uw, { asChild: !0, ...a, children: /* @__PURE__ */ R(
|
|
14163
14168
|
et.button,
|
|
14164
14169
|
{
|
|
@@ -14184,13 +14189,13 @@ var Yv = "DropdownMenuTrigger", Xv = p.forwardRef(
|
|
|
14184
14189
|
);
|
|
14185
14190
|
Xv.displayName = Yv;
|
|
14186
14191
|
var cx = "DropdownMenuPortal", Zv = (e) => {
|
|
14187
|
-
const { __scopeDropdownMenu: t, ...r } = e, n =
|
|
14192
|
+
const { __scopeDropdownMenu: t, ...r } = e, n = Dt(t);
|
|
14188
14193
|
return /* @__PURE__ */ R(Kw, { ...n, ...r });
|
|
14189
14194
|
};
|
|
14190
14195
|
Zv.displayName = cx;
|
|
14191
14196
|
var Qv = "DropdownMenuContent", Jv = p.forwardRef(
|
|
14192
14197
|
(e, t) => {
|
|
14193
|
-
const { __scopeDropdownMenu: r, ...n } = e, o = Uv(Qv, r), i =
|
|
14198
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Uv(Qv, r), i = Dt(r), a = p.useRef(!1);
|
|
14194
14199
|
return /* @__PURE__ */ R(
|
|
14195
14200
|
Yw,
|
|
14196
14201
|
{
|
|
@@ -14222,59 +14227,59 @@ var Qv = "DropdownMenuContent", Jv = p.forwardRef(
|
|
|
14222
14227
|
Jv.displayName = Qv;
|
|
14223
14228
|
var dx = "DropdownMenuGroup", fx = p.forwardRef(
|
|
14224
14229
|
(e, t) => {
|
|
14225
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14230
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14226
14231
|
return /* @__PURE__ */ R(Xw, { ...o, ...n, ref: t });
|
|
14227
14232
|
}
|
|
14228
14233
|
);
|
|
14229
14234
|
fx.displayName = dx;
|
|
14230
14235
|
var vx = "DropdownMenuLabel", px = p.forwardRef(
|
|
14231
14236
|
(e, t) => {
|
|
14232
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14237
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14233
14238
|
return /* @__PURE__ */ R(Zw, { ...o, ...n, ref: t });
|
|
14234
14239
|
}
|
|
14235
14240
|
);
|
|
14236
14241
|
px.displayName = vx;
|
|
14237
14242
|
var hx = "DropdownMenuItem", ep = p.forwardRef(
|
|
14238
14243
|
(e, t) => {
|
|
14239
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14244
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14240
14245
|
return /* @__PURE__ */ R(Qw, { ...o, ...n, ref: t });
|
|
14241
14246
|
}
|
|
14242
14247
|
);
|
|
14243
14248
|
ep.displayName = hx;
|
|
14244
14249
|
var mx = "DropdownMenuCheckboxItem", tp = p.forwardRef((e, t) => {
|
|
14245
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14250
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14246
14251
|
return /* @__PURE__ */ R(Jw, { ...o, ...n, ref: t });
|
|
14247
14252
|
});
|
|
14248
14253
|
tp.displayName = mx;
|
|
14249
14254
|
var gx = "DropdownMenuRadioGroup", rp = p.forwardRef((e, t) => {
|
|
14250
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14255
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14251
14256
|
return /* @__PURE__ */ R(ex, { ...o, ...n, ref: t });
|
|
14252
14257
|
});
|
|
14253
14258
|
rp.displayName = gx;
|
|
14254
14259
|
var yx = "DropdownMenuRadioItem", np = p.forwardRef((e, t) => {
|
|
14255
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14260
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14256
14261
|
return /* @__PURE__ */ R(tx, { ...o, ...n, ref: t });
|
|
14257
14262
|
});
|
|
14258
14263
|
np.displayName = yx;
|
|
14259
14264
|
var bx = "DropdownMenuItemIndicator", op = p.forwardRef((e, t) => {
|
|
14260
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14265
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14261
14266
|
return /* @__PURE__ */ R(rx, { ...o, ...n, ref: t });
|
|
14262
14267
|
});
|
|
14263
14268
|
op.displayName = bx;
|
|
14264
14269
|
var wx = "DropdownMenuSeparator", ip = p.forwardRef((e, t) => {
|
|
14265
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14270
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14266
14271
|
return /* @__PURE__ */ R(nx, { ...o, ...n, ref: t });
|
|
14267
14272
|
});
|
|
14268
14273
|
ip.displayName = wx;
|
|
14269
14274
|
var xx = "DropdownMenuArrow", Cx = p.forwardRef(
|
|
14270
14275
|
(e, t) => {
|
|
14271
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14276
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14272
14277
|
return /* @__PURE__ */ R(ox, { ...o, ...n, ref: t });
|
|
14273
14278
|
}
|
|
14274
14279
|
);
|
|
14275
14280
|
Cx.displayName = xx;
|
|
14276
14281
|
var Sx = (e) => {
|
|
14277
|
-
const { __scopeDropdownMenu: t, children: r, open: n, onOpenChange: o, defaultOpen: i } = e, a =
|
|
14282
|
+
const { __scopeDropdownMenu: t, children: r, open: n, onOpenChange: o, defaultOpen: i } = e, a = Dt(t), [s, l] = bn({
|
|
14278
14283
|
prop: n,
|
|
14279
14284
|
defaultProp: i != null ? i : !1,
|
|
14280
14285
|
onChange: o,
|
|
@@ -14282,12 +14287,12 @@ var Sx = (e) => {
|
|
|
14282
14287
|
});
|
|
14283
14288
|
return /* @__PURE__ */ R(ix, { ...a, open: s, onOpenChange: l, children: r });
|
|
14284
14289
|
}, Ex = "DropdownMenuSubTrigger", ap = p.forwardRef((e, t) => {
|
|
14285
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14290
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14286
14291
|
return /* @__PURE__ */ R(ax, { ...o, ...n, ref: t });
|
|
14287
14292
|
});
|
|
14288
14293
|
ap.displayName = Ex;
|
|
14289
14294
|
var Rx = "DropdownMenuSubContent", sp = p.forwardRef((e, t) => {
|
|
14290
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
14295
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Dt(r);
|
|
14291
14296
|
return /* @__PURE__ */ R(
|
|
14292
14297
|
sx,
|
|
14293
14298
|
{
|
|
@@ -14306,7 +14311,7 @@ var Rx = "DropdownMenuSubContent", sp = p.forwardRef((e, t) => {
|
|
|
14306
14311
|
);
|
|
14307
14312
|
});
|
|
14308
14313
|
sp.displayName = Rx;
|
|
14309
|
-
var Mx = Kv, Px = Xv, up = Zv, Nx = Jv,
|
|
14314
|
+
var Mx = Kv, Px = Xv, up = Zv, Nx = Jv, Dx = ep, _x = tp, Ox = rp, Tx = np, lp = op, kx = ip, Ix = Sx, Ax = ap, Lx = sp;
|
|
14310
14315
|
function $x({
|
|
14311
14316
|
...e
|
|
14312
14317
|
}) {
|
|
@@ -14445,7 +14450,7 @@ function qx({
|
|
|
14445
14450
|
...n
|
|
14446
14451
|
}) {
|
|
14447
14452
|
return /* @__PURE__ */ R(
|
|
14448
|
-
|
|
14453
|
+
Dx,
|
|
14449
14454
|
{
|
|
14450
14455
|
"data-slot": "dropdown-menu-item",
|
|
14451
14456
|
"data-inset": t,
|
|
@@ -14473,7 +14478,7 @@ function Gx({
|
|
|
14473
14478
|
...o
|
|
14474
14479
|
}) {
|
|
14475
14480
|
return /* @__PURE__ */ ve(
|
|
14476
|
-
|
|
14481
|
+
_x,
|
|
14477
14482
|
{
|
|
14478
14483
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
14479
14484
|
className: ae(
|
|
@@ -14573,7 +14578,7 @@ function cp(e) {
|
|
|
14573
14578
|
open: o,
|
|
14574
14579
|
onOpenChange: i,
|
|
14575
14580
|
...a
|
|
14576
|
-
} = e, [s, l] =
|
|
14581
|
+
} = e, [s, l] = De(!1), c = o !== void 0, d = c ? o : s;
|
|
14577
14582
|
function u(h) {
|
|
14578
14583
|
n || (c || l(h), i == null || i(h));
|
|
14579
14584
|
}
|
|
@@ -14662,7 +14667,7 @@ function cp(e) {
|
|
|
14662
14667
|
] });
|
|
14663
14668
|
}
|
|
14664
14669
|
const Kx = kc(!1), hR = (e) => {
|
|
14665
|
-
const { label: t, desc: r, children: n, style: o, className: i, error: a, contentStyle: s, collapsable: l = !1, defaultCollapsed: c = !1 } = e, [d, u] =
|
|
14670
|
+
const { label: t, desc: r, children: n, style: o, className: i, error: a, contentStyle: s, collapsable: l = !1, defaultCollapsed: c = !1 } = e, [d, u] = De(c);
|
|
14666
14671
|
return /* @__PURE__ */ R(Kx.Provider, { value: !0, children: /* @__PURE__ */ ve("div", { "data-u-comp": "form-layout", className: ae("univer-mb-3 univer-flex univer-flex-col", i), style: o, children: [
|
|
14667
14672
|
t && /* @__PURE__ */ ve(
|
|
14668
14673
|
"div",
|
|
@@ -14760,7 +14765,7 @@ const Xa = `
|
|
|
14760
14765
|
hover:univer-text-white
|
|
14761
14766
|
`;
|
|
14762
14767
|
function gR(e) {
|
|
14763
|
-
const { className: t, images: r, open: n, onOpenChange: o } = e, [i, a] =
|
|
14768
|
+
const { className: t, images: r, open: n, onOpenChange: o } = e, [i, a] = De(!1), [s, l] = De(0), [c, d] = De(1), u = ye(null), y = lt(() => r[s], [s, r]);
|
|
14764
14769
|
if (Qe(() => {
|
|
14765
14770
|
n && u.current && u.current.focus();
|
|
14766
14771
|
}, [n]), Qe(() => {
|
|
@@ -15082,7 +15087,7 @@ function bR(e) {
|
|
|
15082
15087
|
open: i,
|
|
15083
15088
|
onOpenChange: a,
|
|
15084
15089
|
...s
|
|
15085
|
-
} = e, [l, c] =
|
|
15090
|
+
} = e, [l, c] = De(!1), d = i !== void 0, u = d ? i : l;
|
|
15086
15091
|
function y(h) {
|
|
15087
15092
|
n || (d || c(h), a == null || a(h));
|
|
15088
15093
|
}
|
|
@@ -15132,16 +15137,16 @@ const lC = Ws(
|
|
|
15132
15137
|
inputStyle: f,
|
|
15133
15138
|
...v
|
|
15134
15139
|
}, m) => {
|
|
15135
|
-
const b = (
|
|
15136
|
-
|
|
15137
|
-
}, C = (
|
|
15138
|
-
u == null || u(
|
|
15139
|
-
}, x = lt(() => s && i && !l || g, [s, l, g, i]), [S, E] =
|
|
15140
|
+
const b = (_) => {
|
|
15141
|
+
_.stopPropagation(), u == null || u("");
|
|
15142
|
+
}, C = (_) => {
|
|
15143
|
+
u == null || u(_.target.value);
|
|
15144
|
+
}, x = lt(() => s && i && !l || g, [s, l, g, i]), [S, E] = De(0), M = ye(null);
|
|
15140
15145
|
return Qe(() => {
|
|
15141
|
-
let
|
|
15142
|
-
return g && M.current && (
|
|
15146
|
+
let _ = null;
|
|
15147
|
+
return g && M.current && (_ = new MutationObserver(() => {
|
|
15143
15148
|
M.current && E(M.current.offsetWidth + 8);
|
|
15144
|
-
}),
|
|
15149
|
+
}), _.observe(M.current, { childList: !0, subtree: !0 }), E(M.current.offsetWidth + 8)), () => _ == null ? void 0 : _.disconnect();
|
|
15145
15150
|
}, [M.current]), /* @__PURE__ */ ve(
|
|
15146
15151
|
"div",
|
|
15147
15152
|
{
|
|
@@ -15227,13 +15232,13 @@ const lC = Ws(
|
|
|
15227
15232
|
onBlur: m,
|
|
15228
15233
|
allowEmpty: b = !1
|
|
15229
15234
|
}, C) => {
|
|
15230
|
-
const [x, S] =
|
|
15235
|
+
const [x, S] = De(
|
|
15231
15236
|
e !== void 0 ? e : t !== void 0 ? t : null
|
|
15232
|
-
), E = ye(x), [M,
|
|
15237
|
+
), E = ye(x), [M, _] = De($(x)), P = ye(null), T = ye(null), I = ye(null), B = (H) => {
|
|
15233
15238
|
C && (typeof C == "function" ? C(H) : C.current = H), P.current = H;
|
|
15234
15239
|
};
|
|
15235
15240
|
Qe(() => {
|
|
15236
|
-
e !== void 0 && (S(e), E.current = e,
|
|
15241
|
+
e !== void 0 && (S(e), E.current = e, _($(e)));
|
|
15237
15242
|
}, [e]), Qe(() => {
|
|
15238
15243
|
x !== null && (E.current = x);
|
|
15239
15244
|
}, [x]), Qe(() => () => {
|
|
@@ -15264,7 +15269,7 @@ const lC = Ws(
|
|
|
15264
15269
|
}
|
|
15265
15270
|
}
|
|
15266
15271
|
function O(H) {
|
|
15267
|
-
if (
|
|
15272
|
+
if (_(H), b && H === "") {
|
|
15268
15273
|
S(null), g == null || g(null);
|
|
15269
15274
|
return;
|
|
15270
15275
|
}
|
|
@@ -15277,13 +15282,13 @@ const lC = Ws(
|
|
|
15277
15282
|
g && g(null);
|
|
15278
15283
|
else {
|
|
15279
15284
|
const q = E.current;
|
|
15280
|
-
S(q),
|
|
15285
|
+
S(q), _($(q)), g && g(q);
|
|
15281
15286
|
}
|
|
15282
15287
|
m == null || m(H);
|
|
15283
15288
|
return;
|
|
15284
15289
|
}
|
|
15285
15290
|
let Y = x;
|
|
15286
|
-
o !== void 0 && Y > o && (Y = o), n !== void 0 && Y < n && (Y = n), Y !== x ? (S(Y),
|
|
15291
|
+
o !== void 0 && Y > o && (Y = o), n !== void 0 && Y < n && (Y = n), Y !== x ? (S(Y), _($(Y)), g == null || g(Y)) : _($(x)), m == null || m(H);
|
|
15287
15292
|
}
|
|
15288
15293
|
function k(H) {
|
|
15289
15294
|
if (h) return;
|
|
@@ -15291,7 +15296,7 @@ const lC = Ws(
|
|
|
15291
15296
|
let q;
|
|
15292
15297
|
x !== null ? q = x : E.current !== null ? q = E.current : q = n > 0 ? n : 0;
|
|
15293
15298
|
let G = q + Y;
|
|
15294
|
-
o !== void 0 && G > o && (G = o), n !== void 0 && G < n && (G = n), G !== q && (S(G), E.current = G,
|
|
15299
|
+
o !== void 0 && G > o && (G = o), n !== void 0 && G < n && (G = n), G !== q && (S(G), E.current = G, _($(G)), g == null || g(G));
|
|
15295
15300
|
}
|
|
15296
15301
|
function z(H) {
|
|
15297
15302
|
h || (w == null || w(H), H.key === "ArrowUp" ? (H.preventDefault(), k(!0)) : H.key === "ArrowDown" ? (H.preventDefault(), k(!1)) : H.key === "Enter" && (f == null || f(H)));
|
|
@@ -15330,7 +15335,7 @@ const lC = Ws(
|
|
|
15330
15335
|
),
|
|
15331
15336
|
children: [
|
|
15332
15337
|
/* @__PURE__ */ R(
|
|
15333
|
-
|
|
15338
|
+
_r,
|
|
15334
15339
|
{
|
|
15335
15340
|
className: "univer-relative !univer-h-1/2 univer-w-full univer-rounded-none univer-rounded-tr-md univer-border-none !univer-bg-transparent univer-text-xs after:univer-absolute after:-univer-bottom-px after:univer-block after:univer-h-px after:univer-w-full after:univer-bg-gray-200 after:univer-content-[''] dark:after:!univer-bg-gray-600",
|
|
15336
15341
|
tabIndex: -1,
|
|
@@ -15340,7 +15345,7 @@ const lC = Ws(
|
|
|
15340
15345
|
}
|
|
15341
15346
|
),
|
|
15342
15347
|
/* @__PURE__ */ R(
|
|
15343
|
-
|
|
15348
|
+
_r,
|
|
15344
15349
|
{
|
|
15345
15350
|
className: "!univer-h-1/2 univer-w-full univer-rounded-none univer-rounded-br-md univer-border-none !univer-bg-transparent univer-text-xs",
|
|
15346
15351
|
tabIndex: -1,
|
|
@@ -15405,8 +15410,8 @@ function fC(e, t) {
|
|
|
15405
15410
|
ref: t
|
|
15406
15411
|
}), C);
|
|
15407
15412
|
return a && (E = /* @__PURE__ */ p.createElement(wn, {
|
|
15408
|
-
onResize: function(
|
|
15409
|
-
var P =
|
|
15413
|
+
onResize: function(_) {
|
|
15414
|
+
var P = _.offsetWidth;
|
|
15410
15415
|
b(P);
|
|
15411
15416
|
},
|
|
15412
15417
|
disabled: s
|
|
@@ -15466,9 +15471,9 @@ function wC(e) {
|
|
|
15466
15471
|
return "+ ".concat(e.length, " ...");
|
|
15467
15472
|
}
|
|
15468
15473
|
function xC(e, t) {
|
|
15469
|
-
var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, s = e.renderRawItem, l = e.itemKey, c = e.itemWidth, d = c === void 0 ? 10 : c, u = e.ssr, y = e.style, h = e.className, g = e.maxCount, w = e.renderRest, f = e.renderRawRest, v = e.suffix, m = e.component, b = m === void 0 ? "div" : m, C = e.itemComponent, x = e.onVisibleChange, S = vt(e, bC), E = u === "full", M = pC(),
|
|
15474
|
+
var r = e.prefixCls, n = r === void 0 ? "rc-overflow" : r, o = e.data, i = o === void 0 ? [] : o, a = e.renderItem, s = e.renderRawItem, l = e.itemKey, c = e.itemWidth, d = c === void 0 ? 10 : c, u = e.ssr, y = e.style, h = e.className, g = e.maxCount, w = e.renderRest, f = e.renderRawRest, v = e.suffix, m = e.component, b = m === void 0 ? "div" : m, C = e.itemComponent, x = e.onVisibleChange, S = vt(e, bC), E = u === "full", M = pC(), _ = mo(M, null), P = ie(_, 2), T = P[0], I = P[1], B = T || 0, $ = mo(M, /* @__PURE__ */ new Map()), A = ie($, 2), O = A[0], L = A[1], k = mo(M, 0), z = ie(k, 2), W = z[0], H = z[1], Y = mo(M, 0), q = ie(Y, 2), G = q[0], ee = q[1], pe = mo(M, 0), ge = ie(pe, 2), j = ge[0], V = ge[1], Q = De(null), N = ie(Q, 2), D = N[0], F = N[1], U = De(null), Z = ie(U, 2), X = Z[0], oe = Z[1], J = p.useMemo(function() {
|
|
15470
15475
|
return X === null && E ? Number.MAX_SAFE_INTEGER : X || 0;
|
|
15471
|
-
}, [X, T]), re =
|
|
15476
|
+
}, [X, T]), re = De(!1), we = ie(re, 2), xe = we[0], he = we[1], te = "".concat(n, "-item"), We = Math.max(W, G), ke = g === wp, Ee = i.length && ke, Ge = g === xp, ze = Ee || typeof g == "number" && i.length > g, Ie = lt(function() {
|
|
15472
15477
|
var ce = i;
|
|
15473
15478
|
return Ee ? T === null && E ? ce = i : ce = i.slice(0, Math.min(i.length, B / d)) : typeof g == "number" && (ce = i.slice(0, g)), ce;
|
|
15474
15479
|
}, [i, d, T, g, Ee]), Ye = lt(function() {
|
|
@@ -15480,7 +15485,7 @@ function xC(e, t) {
|
|
|
15480
15485
|
return ce;
|
|
15481
15486
|
}, [a]);
|
|
15482
15487
|
function Xe(ce, de, se) {
|
|
15483
|
-
X === ce && (de === void 0 || de ===
|
|
15488
|
+
X === ce && (de === void 0 || de === D) || (oe(ce), se || (he(ce < i.length - 1), x == null || x(ce)), de !== void 0 && F(de));
|
|
15484
15489
|
}
|
|
15485
15490
|
function Ae(ce, de) {
|
|
15486
15491
|
I(de.clientWidth);
|
|
@@ -15527,9 +15532,9 @@ function xC(e, t) {
|
|
|
15527
15532
|
}
|
|
15528
15533
|
}, [B, O, G, j, Je, Ie]);
|
|
15529
15534
|
var ht = xe && !!Ye.length, Ft = {};
|
|
15530
|
-
|
|
15535
|
+
D !== null && Ee && (Ft = {
|
|
15531
15536
|
position: "absolute",
|
|
15532
|
-
left:
|
|
15537
|
+
left: D,
|
|
15533
15538
|
top: 0
|
|
15534
15539
|
});
|
|
15535
15540
|
var St = {
|
|
@@ -15565,13 +15570,13 @@ function xC(e, t) {
|
|
|
15565
15570
|
className: "".concat(te, "-rest"),
|
|
15566
15571
|
registerSize: Ue,
|
|
15567
15572
|
display: ht
|
|
15568
|
-
}, le = w || wC,
|
|
15573
|
+
}, le = w || wC, _e = f ? /* @__PURE__ */ p.createElement(Wi.Provider, {
|
|
15569
15574
|
value: ne(ne({}, St), it)
|
|
15570
15575
|
}, f(Ye)) : /* @__PURE__ */ p.createElement(So, $e({}, St, it), typeof le == "function" ? le(Ye) : le), Re = /* @__PURE__ */ p.createElement(b, $e({
|
|
15571
15576
|
className: at(!Ge && n, h),
|
|
15572
15577
|
style: y,
|
|
15573
15578
|
ref: t
|
|
15574
|
-
}, S), Ie.map(Tt), ze ?
|
|
15579
|
+
}, S), Ie.map(Tt), ze ? _e : null, v && /* @__PURE__ */ p.createElement(So, $e({}, St, {
|
|
15575
15580
|
responsive: ke,
|
|
15576
15581
|
responsiveDisabled: !Ee,
|
|
15577
15582
|
order: J,
|
|
@@ -15585,11 +15590,11 @@ function xC(e, t) {
|
|
|
15585
15590
|
disabled: !Ee
|
|
15586
15591
|
}, Re) : Re;
|
|
15587
15592
|
}
|
|
15588
|
-
var
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15592
|
-
|
|
15593
|
+
var Dr = /* @__PURE__ */ p.forwardRef(xC);
|
|
15594
|
+
Dr.displayName = "Overflow";
|
|
15595
|
+
Dr.Item = bp;
|
|
15596
|
+
Dr.RESPONSIVE = wp;
|
|
15597
|
+
Dr.INVALIDATE = xp;
|
|
15593
15598
|
function Cp(e, t) {
|
|
15594
15599
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = /* @__PURE__ */ new Set();
|
|
15595
15600
|
function o(i, a) {
|
|
@@ -15677,14 +15682,14 @@ function RC(e) {
|
|
|
15677
15682
|
});
|
|
15678
15683
|
return mc(e, t) && r.unshift(e), r;
|
|
15679
15684
|
}
|
|
15680
|
-
var Ss = lr.LEFT, Es = lr.RIGHT, Rs = lr.UP, Ci = lr.DOWN, Si = lr.ENTER,
|
|
15685
|
+
var Ss = lr.LEFT, Es = lr.RIGHT, Rs = lr.UP, Ci = lr.DOWN, Si = lr.ENTER, Dp = lr.ESC, go = lr.HOME, yo = lr.END, gc = [Rs, Ci, Ss, Es];
|
|
15681
15686
|
function MC(e, t, r, n) {
|
|
15682
15687
|
var o, i = "prev", a = "next", s = "children", l = "parent";
|
|
15683
15688
|
if (e === "inline" && n === Si)
|
|
15684
15689
|
return {
|
|
15685
15690
|
inlineTrigger: !0
|
|
15686
15691
|
};
|
|
15687
|
-
var c = Ce(Ce({}, Rs, i), Ci, a), d = Ce(Ce(Ce(Ce({}, Ss, r ? a : i), Es, r ? i : a), Ci, s), Si, s), u = Ce(Ce(Ce(Ce(Ce(Ce({}, Rs, i), Ci, a), Si, s),
|
|
15692
|
+
var c = Ce(Ce({}, Rs, i), Ci, a), d = Ce(Ce(Ce(Ce({}, Ss, r ? a : i), Es, r ? i : a), Ci, s), Si, s), u = Ce(Ce(Ce(Ce(Ce(Ce({}, Rs, i), Ci, a), Si, s), Dp, l), Ss, r ? s : l), Es, r ? l : s), y = {
|
|
15688
15693
|
inline: c,
|
|
15689
15694
|
horizontal: d,
|
|
15690
15695
|
vertical: u,
|
|
@@ -15759,7 +15764,7 @@ var Ms = function(t, r) {
|
|
|
15759
15764
|
element2key: i
|
|
15760
15765
|
};
|
|
15761
15766
|
};
|
|
15762
|
-
function
|
|
15767
|
+
function DC(e, t, r, n, o, i, a, s, l, c) {
|
|
15763
15768
|
var d = p.useRef(), u = p.useRef();
|
|
15764
15769
|
u.current = t;
|
|
15765
15770
|
var y = function() {
|
|
@@ -15771,12 +15776,12 @@ function _C(e, t, r, n, o, i, a, s, l, c) {
|
|
|
15771
15776
|
};
|
|
15772
15777
|
}, []), function(h) {
|
|
15773
15778
|
var g = h.which;
|
|
15774
|
-
if ([].concat(gc, [Si,
|
|
15779
|
+
if ([].concat(gc, [Si, Dp, go, yo]).includes(g)) {
|
|
15775
15780
|
var w = i(), f = Ms(w, n), v = f, m = v.elements, b = v.key2element, C = v.element2key, x = b.get(t), S = NC(x, m), E = C.get(S), M = MC(e, a(E, !0).length === 1, r, g);
|
|
15776
15781
|
if (!M && g !== go && g !== yo)
|
|
15777
15782
|
return;
|
|
15778
15783
|
(gc.includes(g) || [go, yo].includes(g)) && h.preventDefault();
|
|
15779
|
-
var
|
|
15784
|
+
var _ = function(L) {
|
|
15780
15785
|
if (L) {
|
|
15781
15786
|
var k = L, z = L.querySelector("a");
|
|
15782
15787
|
z != null && z.getAttribute("href") && (k = z);
|
|
@@ -15790,24 +15795,24 @@ function _C(e, t, r, n, o, i, a, s, l, c) {
|
|
|
15790
15795
|
var P;
|
|
15791
15796
|
!S || e === "inline" ? P = o.current : P = PC(S);
|
|
15792
15797
|
var T, I = Mu(P, m);
|
|
15793
|
-
g === go ? T = I[0] : g === yo ? T = I[I.length - 1] : T = yc(P, m, S, M.offset),
|
|
15798
|
+
g === go ? T = I[0] : g === yo ? T = I[I.length - 1] : T = yc(P, m, S, M.offset), _(T);
|
|
15794
15799
|
} else if (M.inlineTrigger)
|
|
15795
15800
|
l(E);
|
|
15796
15801
|
else if (M.offset > 0)
|
|
15797
15802
|
l(E, !0), y(), d.current = gt(function() {
|
|
15798
15803
|
f = Ms(w, n);
|
|
15799
15804
|
var O = S.getAttribute("aria-controls"), L = document.getElementById(O), k = yc(L, f.elements);
|
|
15800
|
-
|
|
15805
|
+
_(k);
|
|
15801
15806
|
}, 5);
|
|
15802
15807
|
else if (M.offset < 0) {
|
|
15803
15808
|
var B = a(E, !0), $ = B[B.length - 2], A = b.get($);
|
|
15804
|
-
l($, !1),
|
|
15809
|
+
l($, !1), _(A);
|
|
15805
15810
|
}
|
|
15806
15811
|
}
|
|
15807
15812
|
c == null || c(h);
|
|
15808
15813
|
};
|
|
15809
15814
|
}
|
|
15810
|
-
function
|
|
15815
|
+
function _C(e) {
|
|
15811
15816
|
Promise.resolve().then(e);
|
|
15812
15817
|
}
|
|
15813
15818
|
var Pu = "__RC_UTIL_PATH_SPLIT__", bc = function(t) {
|
|
@@ -15822,7 +15827,7 @@ function TC() {
|
|
|
15822
15827
|
var x = bc(C);
|
|
15823
15828
|
o.current.set(x, b), n.current.set(b, x), c.current += 1;
|
|
15824
15829
|
var S = c.current;
|
|
15825
|
-
|
|
15830
|
+
_C(function() {
|
|
15826
15831
|
S === c.current && u();
|
|
15827
15832
|
});
|
|
15828
15833
|
}, []), h = ft(function(b, C) {
|
|
@@ -15892,7 +15897,7 @@ function Nu(e, t) {
|
|
|
15892
15897
|
delete r[n];
|
|
15893
15898
|
}), r;
|
|
15894
15899
|
}
|
|
15895
|
-
function
|
|
15900
|
+
function _p(e, t, r, n) {
|
|
15896
15901
|
var o = p.useContext(sr), i = o.activeKey, a = o.onActive, s = o.onInactive, l = {
|
|
15897
15902
|
active: i === e
|
|
15898
15903
|
};
|
|
@@ -15932,7 +15937,7 @@ function Bi(e) {
|
|
|
15932
15937
|
}
|
|
15933
15938
|
}), r;
|
|
15934
15939
|
}
|
|
15935
|
-
var LC = ["title", "attribute", "elementRef"], $C = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], zC = ["active"], FC = /* @__PURE__ */ function(e) {
|
|
15940
|
+
var LC = ["title", "attribute", "elementRef"], $C = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], zC = ["active"], FC = /* @__PURE__ */ (function(e) {
|
|
15936
15941
|
la(r, e);
|
|
15937
15942
|
var t = ca(r);
|
|
15938
15943
|
function r() {
|
|
@@ -15942,17 +15947,17 @@ var LC = ["title", "attribute", "elementRef"], $C = ["style", "className", "even
|
|
|
15942
15947
|
key: "render",
|
|
15943
15948
|
value: function() {
|
|
15944
15949
|
var o = this.props, i = o.title, a = o.attribute, s = o.elementRef, l = vt(o, LC), c = Nu(l, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
15945
|
-
return Qn(!a, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ p.createElement(
|
|
15950
|
+
return Qn(!a, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ p.createElement(Dr.Item, $e({}, a, {
|
|
15946
15951
|
title: typeof i == "string" ? i : void 0
|
|
15947
15952
|
}, c, {
|
|
15948
15953
|
ref: s
|
|
15949
15954
|
}));
|
|
15950
15955
|
}
|
|
15951
15956
|
}]), r;
|
|
15952
|
-
}(p.Component), HC = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
15957
|
+
})(p.Component), HC = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
15953
15958
|
var r = e.style, n = e.className, o = e.eventKey;
|
|
15954
15959
|
e.warnKey;
|
|
15955
|
-
var i = e.disabled, a = e.itemIcon, s = e.children, l = e.role, c = e.onMouseEnter, d = e.onMouseLeave, u = e.onClick, y = e.onKeyDown, h = e.onFocus, g = vt(e, $C), w = Rp(o), f = p.useContext(sr), v = f.prefixCls, m = f.onItemClick, b = f.disabled, C = f.overflowDisabled, x = f.itemIcon, S = f.selectedKeys, E = f.onActive, M = p.useContext(Ru),
|
|
15960
|
+
var i = e.disabled, a = e.itemIcon, s = e.children, l = e.role, c = e.onMouseEnter, d = e.onMouseLeave, u = e.onClick, y = e.onKeyDown, h = e.onFocus, g = vt(e, $C), w = Rp(o), f = p.useContext(sr), v = f.prefixCls, m = f.onItemClick, b = f.disabled, C = f.overflowDisabled, x = f.itemIcon, S = f.selectedKeys, E = f.onActive, M = p.useContext(Ru), _ = M._internalRenderMenuItem, P = "".concat(v, "-item"), T = p.useRef(), I = p.useRef(), B = b || i, $ = sa(t, I), A = Uo(o), O = function(V) {
|
|
15956
15961
|
return {
|
|
15957
15962
|
key: o,
|
|
15958
15963
|
// Note: For legacy code is reversed which not like other antd component
|
|
@@ -15960,7 +15965,7 @@ var LC = ["title", "attribute", "elementRef"], $C = ["style", "className", "even
|
|
|
15960
15965
|
item: T.current,
|
|
15961
15966
|
domEvent: V
|
|
15962
15967
|
};
|
|
15963
|
-
}, L = a || x, k =
|
|
15968
|
+
}, L = a || x, k = _p(o, B, c, d), z = k.active, W = vt(k, zC), H = S.includes(o), Y = Op(A.length), q = function(V) {
|
|
15964
15969
|
if (!B) {
|
|
15965
15970
|
var Q = O(V);
|
|
15966
15971
|
u == null || u(Bi(Q)), m(Q);
|
|
@@ -15994,7 +15999,7 @@ var LC = ["title", "attribute", "elementRef"], $C = ["style", "className", "even
|
|
|
15994
15999
|
}),
|
|
15995
16000
|
icon: L
|
|
15996
16001
|
}));
|
|
15997
|
-
return
|
|
16002
|
+
return _ && (ge = _(ge, e, {
|
|
15998
16003
|
selected: H
|
|
15999
16004
|
})), ge;
|
|
16000
16005
|
});
|
|
@@ -16019,9 +16024,9 @@ var BC = ["className", "children"], jC = function(t, r) {
|
|
|
16019
16024
|
"data-menu-list": !0,
|
|
16020
16025
|
ref: r
|
|
16021
16026
|
}), o);
|
|
16022
|
-
},
|
|
16023
|
-
|
|
16024
|
-
function
|
|
16027
|
+
}, Du = /* @__PURE__ */ p.forwardRef(jC);
|
|
16028
|
+
Du.displayName = "SubMenuList";
|
|
16029
|
+
function _u(e, t) {
|
|
16025
16030
|
return Ii(e).map(function(r, n) {
|
|
16026
16031
|
if (/* @__PURE__ */ p.isValidElement(r)) {
|
|
16027
16032
|
var o, i, a = r.key, s = (o = (i = r.props) === null || i === void 0 ? void 0 : i.eventKey) !== null && o !== void 0 ? o : a, l = s == null;
|
|
@@ -16118,7 +16123,7 @@ var GC = {
|
|
|
16118
16123
|
"vertical-right": "leftTop"
|
|
16119
16124
|
};
|
|
16120
16125
|
function UC(e) {
|
|
16121
|
-
var t = e.prefixCls, r = e.visible, n = e.children, o = e.popup, i = e.popupStyle, a = e.popupClassName, s = e.popupOffset, l = e.disabled, c = e.mode, d = e.onVisibleChange, u = p.useContext(sr), y = u.getPopupContainer, h = u.rtl, g = u.subMenuOpenDelay, w = u.subMenuCloseDelay, f = u.builtinPlacements, v = u.triggerSubMenuAction, m = u.forceSubMenuRender, b = u.rootClassName, C = u.motion, x = u.defaultMotions, S = p.useState(!1), E = ie(S, 2), M = E[0],
|
|
16126
|
+
var t = e.prefixCls, r = e.visible, n = e.children, o = e.popup, i = e.popupStyle, a = e.popupClassName, s = e.popupOffset, l = e.disabled, c = e.mode, d = e.onVisibleChange, u = p.useContext(sr), y = u.getPopupContainer, h = u.rtl, g = u.subMenuOpenDelay, w = u.subMenuCloseDelay, f = u.builtinPlacements, v = u.triggerSubMenuAction, m = u.forceSubMenuRender, b = u.rootClassName, C = u.motion, x = u.defaultMotions, S = p.useState(!1), E = ie(S, 2), M = E[0], _ = E[1], P = ne(h ? ne({}, qC) : ne({}, VC), f), T = GC[c], I = kp(c, C, x), B = p.useRef(I);
|
|
16122
16127
|
c !== "inline" && (B.current = I);
|
|
16123
16128
|
var $ = ne(ne({}, B.current), {}, {
|
|
16124
16129
|
leavedClassName: "".concat(t, "-hidden"),
|
|
@@ -16127,7 +16132,7 @@ function UC(e) {
|
|
|
16127
16132
|
}), A = p.useRef();
|
|
16128
16133
|
return p.useEffect(function() {
|
|
16129
16134
|
return A.current = gt(function() {
|
|
16130
|
-
|
|
16135
|
+
_(r);
|
|
16131
16136
|
}), function() {
|
|
16132
16137
|
gt.cancel(A.current);
|
|
16133
16138
|
};
|
|
@@ -16176,7 +16181,7 @@ function KC(e) {
|
|
|
16176
16181
|
leavedClassName: "".concat(s, "-hidden")
|
|
16177
16182
|
}), function(C) {
|
|
16178
16183
|
var x = C.className, S = C.style;
|
|
16179
|
-
return /* @__PURE__ */ p.createElement(
|
|
16184
|
+
return /* @__PURE__ */ p.createElement(Du, {
|
|
16180
16185
|
id: t,
|
|
16181
16186
|
className: x,
|
|
16182
16187
|
style: S
|
|
@@ -16186,7 +16191,7 @@ function KC(e) {
|
|
|
16186
16191
|
var YC = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], XC = ["active"], ZC = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
16187
16192
|
var r = e.style, n = e.className, o = e.title, i = e.eventKey;
|
|
16188
16193
|
e.warnKey;
|
|
16189
|
-
var a = e.disabled, s = e.internalPopupClose, l = e.children, c = e.itemIcon, d = e.expandIcon, u = e.popupClassName, y = e.popupOffset, h = e.popupStyle, g = e.onClick, w = e.onMouseEnter, f = e.onMouseLeave, v = e.onTitleClick, m = e.onTitleMouseEnter, b = e.onTitleMouseLeave, C = vt(e, YC), x = Rp(i), S = p.useContext(sr), E = S.prefixCls, M = S.mode,
|
|
16194
|
+
var a = e.disabled, s = e.internalPopupClose, l = e.children, c = e.itemIcon, d = e.expandIcon, u = e.popupClassName, y = e.popupOffset, h = e.popupStyle, g = e.onClick, w = e.onMouseEnter, f = e.onMouseLeave, v = e.onTitleClick, m = e.onTitleMouseEnter, b = e.onTitleMouseLeave, C = vt(e, YC), x = Rp(i), S = p.useContext(sr), E = S.prefixCls, M = S.mode, _ = S.openKeys, P = S.disabled, T = S.overflowDisabled, I = S.activeKey, B = S.selectedKeys, $ = S.itemIcon, A = S.expandIcon, O = S.onItemClick, L = S.onOpenChange, k = S.onActive, z = p.useContext(Ru), W = z._internalRenderSubMenuItem, H = p.useContext(Np), Y = H.isSubPathKey, q = Uo(), G = "".concat(E, "-submenu"), ee = P || a, pe = p.useRef(), ge = p.useRef(), j = c != null ? c : $, V = d != null ? d : A, Q = _.includes(i), N = !T && Q, D = Y(B, i), F = _p(i, ee, m, b), U = F.active, Z = vt(F, XC), X = p.useState(!1), oe = ie(X, 2), J = oe[0], re = oe[1], we = function(Ue) {
|
|
16190
16195
|
ee || re(Ue);
|
|
16191
16196
|
}, xe = function(Ue) {
|
|
16192
16197
|
we(!0), w == null || w({
|
|
@@ -16251,7 +16256,7 @@ var YC = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
16251
16256
|
{
|
|
16252
16257
|
mode: Xe === "horizontal" ? "vertical" : Xe
|
|
16253
16258
|
},
|
|
16254
|
-
/* @__PURE__ */ p.createElement(
|
|
16259
|
+
/* @__PURE__ */ p.createElement(Du, {
|
|
16255
16260
|
id: Ie,
|
|
16256
16261
|
ref: ge
|
|
16257
16262
|
}, l)
|
|
@@ -16260,13 +16265,13 @@ var YC = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
16260
16265
|
onVisibleChange: Ge
|
|
16261
16266
|
}, Je);
|
|
16262
16267
|
}
|
|
16263
|
-
var Ae = /* @__PURE__ */ p.createElement(
|
|
16268
|
+
var Ae = /* @__PURE__ */ p.createElement(Dr.Item, $e({
|
|
16264
16269
|
ref: t,
|
|
16265
16270
|
role: "none"
|
|
16266
16271
|
}, C, {
|
|
16267
16272
|
component: "li",
|
|
16268
16273
|
style: r,
|
|
16269
|
-
className: at(G, "".concat(G, "-").concat(M), n, Ce(Ce(Ce(Ce({}, "".concat(G, "-open"), N), "".concat(G, "-active"), te), "".concat(G, "-selected"),
|
|
16274
|
+
className: at(G, "".concat(G, "-").concat(M), n, Ce(Ce(Ce(Ce({}, "".concat(G, "-open"), N), "".concat(G, "-active"), te), "".concat(G, "-selected"), D), "".concat(G, "-disabled"), ee)),
|
|
16270
16275
|
onMouseEnter: xe,
|
|
16271
16276
|
onMouseLeave: he
|
|
16272
16277
|
}), Je, !T && /* @__PURE__ */ p.createElement(KC, {
|
|
@@ -16275,7 +16280,7 @@ var YC = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
16275
16280
|
keyPath: q
|
|
16276
16281
|
}, l));
|
|
16277
16282
|
return W && (Ae = W(Ae, e, {
|
|
16278
|
-
selected:
|
|
16283
|
+
selected: D,
|
|
16279
16284
|
active: te,
|
|
16280
16285
|
open: N,
|
|
16281
16286
|
disabled: ee
|
|
@@ -16286,7 +16291,7 @@ var YC = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
16286
16291
|
expandIcon: V
|
|
16287
16292
|
}, Ae);
|
|
16288
16293
|
}), ba = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
16289
|
-
var r = e.eventKey, n = e.children, o = Uo(r), i =
|
|
16294
|
+
var r = e.eventKey, n = e.children, o = Uo(r), i = _u(n, o), a = ga();
|
|
16290
16295
|
p.useEffect(function() {
|
|
16291
16296
|
if (a)
|
|
16292
16297
|
return a.registerPath(r, o), function() {
|
|
@@ -16329,7 +16334,7 @@ var QC = ["className", "title", "eventKey", "children"], JC = /* @__PURE__ */ p.
|
|
|
16329
16334
|
className: "".concat(l, "-list")
|
|
16330
16335
|
}, o));
|
|
16331
16336
|
}), Ou = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
16332
|
-
var r = e.eventKey, n = e.children, o = Uo(r), i =
|
|
16337
|
+
var r = e.eventKey, n = e.children, o = Uo(r), i = _u(n, o), a = ga();
|
|
16333
16338
|
return a ? i : /* @__PURE__ */ p.createElement(JC, $e({
|
|
16334
16339
|
ref: t
|
|
16335
16340
|
}, Nu(e, ["warnKey"])), i);
|
|
@@ -16369,14 +16374,14 @@ function xc(e, t, r, n, o) {
|
|
|
16369
16374
|
group: Ou,
|
|
16370
16375
|
submenu: ba
|
|
16371
16376
|
}, n);
|
|
16372
|
-
return t && (i = Ns(t, a, o)),
|
|
16377
|
+
return t && (i = Ns(t, a, o)), _u(i, r);
|
|
16373
16378
|
}
|
|
16374
16379
|
var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], dn = [], rS = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
16375
|
-
var r, n = e, o = n.prefixCls, i = o === void 0 ? "rc-menu" : o, a = n.rootClassName, s = n.style, l = n.className, c = n.tabIndex, d = c === void 0 ? 0 : c, u = n.items, y = n.children, h = n.direction, g = n.id, w = n.mode, f = w === void 0 ? "vertical" : w, v = n.inlineCollapsed, m = n.disabled, b = n.disabledOverflow, C = n.subMenuOpenDelay, x = C === void 0 ? 0.1 : C, S = n.subMenuCloseDelay, E = S === void 0 ? 0.1 : S, M = n.forceSubMenuRender,
|
|
16380
|
+
var r, n = e, o = n.prefixCls, i = o === void 0 ? "rc-menu" : o, a = n.rootClassName, s = n.style, l = n.className, c = n.tabIndex, d = c === void 0 ? 0 : c, u = n.items, y = n.children, h = n.direction, g = n.id, w = n.mode, f = w === void 0 ? "vertical" : w, v = n.inlineCollapsed, m = n.disabled, b = n.disabledOverflow, C = n.subMenuOpenDelay, x = C === void 0 ? 0.1 : C, S = n.subMenuCloseDelay, E = S === void 0 ? 0.1 : S, M = n.forceSubMenuRender, _ = n.defaultOpenKeys, P = n.openKeys, T = n.activeKey, I = n.defaultActiveFirst, B = n.selectable, $ = B === void 0 ? !0 : B, A = n.multiple, O = A === void 0 ? !1 : A, L = n.defaultSelectedKeys, k = n.selectedKeys, z = n.onSelect, W = n.onDeselect, H = n.inlineIndent, Y = H === void 0 ? 24 : H, q = n.motion, G = n.defaultMotions, ee = n.triggerSubMenuAction, pe = ee === void 0 ? "hover" : ee, ge = n.builtinPlacements, j = n.itemIcon, V = n.expandIcon, Q = n.overflowedIndicator, N = Q === void 0 ? "..." : Q, D = n.overflowedIndicatorPopupClassName, F = n.getPopupContainer, U = n.onClick, Z = n.onOpenChange, X = n.onKeyDown;
|
|
16376
16381
|
n.openAnimation, n.openTransitionName;
|
|
16377
16382
|
var oe = n._internalRenderMenuItem, J = n._internalRenderSubMenuItem, re = n._internalComponents, we = vt(n, tS), xe = p.useMemo(function() {
|
|
16378
16383
|
return [xc(y, u, dn, re, i), xc(y, u, dn, {}, i)];
|
|
16379
|
-
}, [y, u, re]), he = ie(xe, 2), te = he[0], We = he[1], ke = p.useState(!1), Ee = ie(ke, 2), Ge = Ee[0], ze = Ee[1], Ie = p.useRef(), Ye = IC(g), Je = h === "rtl", Ve = xi(
|
|
16384
|
+
}, [y, u, re]), he = ie(xe, 2), te = he[0], We = he[1], ke = p.useState(!1), Ee = ie(ke, 2), Ge = Ee[0], ze = Ee[1], Ie = p.useRef(), Ye = IC(g), Je = h === "rtl", Ve = xi(_, {
|
|
16380
16385
|
value: P,
|
|
16381
16386
|
postState: function(Le) {
|
|
16382
16387
|
return Le || dn;
|
|
@@ -16389,10 +16394,10 @@ var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
16389
16394
|
Be ? es(Rt) : Rt();
|
|
16390
16395
|
}, pt = p.useState(Ae), st = ie(pt, 2), ht = st[0], Ft = st[1], St = p.useRef(!1), Tt = p.useMemo(function() {
|
|
16391
16396
|
return (f === "inline" || f === "vertical") && v ? ["vertical", v] : [f, !1];
|
|
16392
|
-
}, [f, v]), it = ie(Tt, 2), le = it[0],
|
|
16397
|
+
}, [f, v]), it = ie(Tt, 2), le = it[0], _e = it[1], Re = le === "inline", ce = p.useState(le), de = ie(ce, 2), se = de[0], Pe = de[1], nt = p.useState(_e), tt = ie(nt, 2), qe = tt[0], Zt = tt[1];
|
|
16393
16398
|
p.useEffect(function() {
|
|
16394
|
-
Pe(le), Zt(
|
|
16395
|
-
}, [le,
|
|
16399
|
+
Pe(le), Zt(_e), St.current && (Re ? Fe(ht) : Ue(dn));
|
|
16400
|
+
}, [le, _e]);
|
|
16396
16401
|
var yt = p.useState(0), kt = ie(yt, 2), Qt = kt[0], $r = kt[1], Ht = Qt >= te.length - 1 || se !== "horizontal" || b;
|
|
16397
16402
|
p.useEffect(function() {
|
|
16398
16403
|
Re && Ft(Ae);
|
|
@@ -16443,12 +16448,12 @@ var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
16443
16448
|
postState: function(Le) {
|
|
16444
16449
|
return Array.isArray(Le) ? Le : Le == null ? dn : [Le];
|
|
16445
16450
|
}
|
|
16446
|
-
}), fr = ie(tr, 2),
|
|
16451
|
+
}), fr = ie(tr, 2), _t = fr[0], rr = fr[1], Cn = function(Le) {
|
|
16447
16452
|
if ($) {
|
|
16448
|
-
var Be = Le.key, Rt =
|
|
16449
|
-
O ? Rt ? Mt =
|
|
16453
|
+
var Be = Le.key, Rt = _t.includes(Be), Mt;
|
|
16454
|
+
O ? Rt ? Mt = _t.filter(function(Wr) {
|
|
16450
16455
|
return Wr !== Be;
|
|
16451
|
-
}) : Mt = [].concat(Cr(
|
|
16456
|
+
}) : Mt = [].concat(Cr(_t), [Be]) : Mt = [Be], rr(Mt);
|
|
16452
16457
|
var Hr = ne(ne({}, Le), {}, {
|
|
16453
16458
|
selectedKeys: Mt
|
|
16454
16459
|
});
|
|
@@ -16473,7 +16478,7 @@ var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
16473
16478
|
}), jt = function(Le, Be) {
|
|
16474
16479
|
var Rt = Be != null ? Be : !Ae.includes(Le);
|
|
16475
16480
|
Bt(Le, Rt);
|
|
16476
|
-
}, zr =
|
|
16481
|
+
}, zr = DC(se, Ke, Je, Ye, Ie, Pt, cr, Gt, jt, X);
|
|
16477
16482
|
p.useEffect(function() {
|
|
16478
16483
|
ze(!0);
|
|
16479
16484
|
}, []);
|
|
@@ -16493,7 +16498,7 @@ var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
16493
16498
|
}, Ze)
|
|
16494
16499
|
);
|
|
16495
16500
|
})
|
|
16496
|
-
), eo = /* @__PURE__ */ p.createElement(
|
|
16501
|
+
), eo = /* @__PURE__ */ p.createElement(Dr, $e({
|
|
16497
16502
|
id: g,
|
|
16498
16503
|
ref: Ie,
|
|
16499
16504
|
prefixCls: "".concat(i, "-overflow"),
|
|
@@ -16515,10 +16520,10 @@ var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
16515
16520
|
title: N,
|
|
16516
16521
|
disabled: Ht,
|
|
16517
16522
|
internalPopupClose: Be === 0,
|
|
16518
|
-
popupClassName:
|
|
16523
|
+
popupClassName: D
|
|
16519
16524
|
}, Rt);
|
|
16520
16525
|
},
|
|
16521
|
-
maxCount: se !== "horizontal" || b ?
|
|
16526
|
+
maxCount: se !== "horizontal" || b ? Dr.INVALIDATE : Dr.RESPONSIVE,
|
|
16522
16527
|
ssr: "full",
|
|
16523
16528
|
"data-menu-list": !0,
|
|
16524
16529
|
onVisibleChange: function(Le) {
|
|
@@ -16542,7 +16547,7 @@ var tS = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
16542
16547
|
activeKey: Ke,
|
|
16543
16548
|
onActive: At,
|
|
16544
16549
|
onInactive: dr,
|
|
16545
|
-
selectedKeys:
|
|
16550
|
+
selectedKeys: _t,
|
|
16546
16551
|
inlineIndent: Y,
|
|
16547
16552
|
subMenuOpenDelay: x,
|
|
16548
16553
|
subMenuCloseDelay: E,
|
|
@@ -16594,7 +16599,7 @@ var nS = Object.freeze({
|
|
|
16594
16599
|
Ap.displayName = oS;
|
|
16595
16600
|
var iS = Ap, [wa, CR] = Ar("Tooltip", [
|
|
16596
16601
|
rn
|
|
16597
|
-
]), xa = rn(), Lp = "TooltipProvider", aS = 700,
|
|
16602
|
+
]), xa = rn(), Lp = "TooltipProvider", aS = 700, Ds = "tooltip.open", [sS, Tu] = wa(Lp), $p = (e) => {
|
|
16598
16603
|
const {
|
|
16599
16604
|
__scopeTooltip: t,
|
|
16600
16605
|
delayDuration: r = aS,
|
|
@@ -16643,7 +16648,7 @@ var Io = "Tooltip", [uS, Yo] = wa(Io), zp = (e) => {
|
|
|
16643
16648
|
prop: n,
|
|
16644
16649
|
defaultProp: o != null ? o : !1,
|
|
16645
16650
|
onChange: (E) => {
|
|
16646
|
-
E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
16651
|
+
E ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Ds))) : l.onClose(), i == null || i(E);
|
|
16647
16652
|
},
|
|
16648
16653
|
caller: Io
|
|
16649
16654
|
}), b = p.useMemo(() => v ? f.current ? "delayed-open" : "instant-open" : "closed", [v]), C = p.useCallback(() => {
|
|
@@ -16680,9 +16685,9 @@ var Io = "Tooltip", [uS, Yo] = wa(Io), zp = (e) => {
|
|
|
16680
16685
|
) });
|
|
16681
16686
|
};
|
|
16682
16687
|
zp.displayName = Io;
|
|
16683
|
-
var
|
|
16688
|
+
var _s = "TooltipTrigger", Fp = p.forwardRef(
|
|
16684
16689
|
(e, t) => {
|
|
16685
|
-
const { __scopeTooltip: r, ...n } = e, o = Yo(
|
|
16690
|
+
const { __scopeTooltip: r, ...n } = e, o = Yo(_s, r), i = Tu(_s, r), a = xa(r), s = p.useRef(null), l = ct(t, s, o.onTriggerChange), c = p.useRef(!1), d = p.useRef(!1), u = p.useCallback(() => c.current = !1, []);
|
|
16686
16691
|
return p.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ R($o, { asChild: !0, ...a, children: /* @__PURE__ */ R(
|
|
16687
16692
|
et.button,
|
|
16688
16693
|
{
|
|
@@ -16708,7 +16713,7 @@ var Ds = "TooltipTrigger", Fp = p.forwardRef(
|
|
|
16708
16713
|
) });
|
|
16709
16714
|
}
|
|
16710
16715
|
);
|
|
16711
|
-
Fp.displayName =
|
|
16716
|
+
Fp.displayName = _s;
|
|
16712
16717
|
var ku = "TooltipPortal", [lS, cS] = wa(ku, {
|
|
16713
16718
|
forceMount: void 0
|
|
16714
16719
|
}), Hp = (e) => {
|
|
@@ -16757,7 +16762,7 @@ var jn = "TooltipContent", Wp = p.forwardRef(
|
|
|
16757
16762
|
onPointerDownOutside: a,
|
|
16758
16763
|
...s
|
|
16759
16764
|
} = e, l = Yo(jn, r), c = xa(r), { onClose: d } = l;
|
|
16760
|
-
return p.useEffect(() => (document.addEventListener(
|
|
16765
|
+
return p.useEffect(() => (document.addEventListener(Ds, d), () => document.removeEventListener(Ds, d)), [d]), p.useEffect(() => {
|
|
16761
16766
|
if (l.trigger) {
|
|
16762
16767
|
const u = (y) => {
|
|
16763
16768
|
const h = y.target;
|
|
@@ -16903,7 +16908,7 @@ function wS(e) {
|
|
|
16903
16908
|
return r.pop(), t.length === 1 && r.length === 1 && t[0].x === r[0].x && t[0].y === r[0].y ? t : t.concat(r);
|
|
16904
16909
|
}
|
|
16905
16910
|
var xS = $p, CS = zp, SS = Fp, ES = Hp, RS = Wp, MS = Vp;
|
|
16906
|
-
const PS = xS, NS = CS,
|
|
16911
|
+
const PS = xS, NS = CS, DS = SS, _S = He(({ className: e, sideOffset: t = 4, children: r, ...n }, o) => /* @__PURE__ */ R(ES, { children: /* @__PURE__ */ ve(
|
|
16907
16912
|
RS,
|
|
16908
16913
|
{
|
|
16909
16914
|
ref: o,
|
|
@@ -16944,7 +16949,7 @@ function qp(e) {
|
|
|
16944
16949
|
showIfEllipsis: a = !1,
|
|
16945
16950
|
visible: s,
|
|
16946
16951
|
onVisibleChange: l
|
|
16947
|
-
} = e, [c, d] =
|
|
16952
|
+
} = e, [c, d] = De(!1), u = s !== void 0, y = u ? s : c, h = ye(null);
|
|
16948
16953
|
function g(v) {
|
|
16949
16954
|
return Math.abs(v.scrollWidth - v.clientWidth) > 1;
|
|
16950
16955
|
}
|
|
@@ -16956,7 +16961,7 @@ function qp(e) {
|
|
|
16956
16961
|
}
|
|
16957
16962
|
return /* @__PURE__ */ R(PS, { children: /* @__PURE__ */ ve(NS, { open: y, children: [
|
|
16958
16963
|
/* @__PURE__ */ R(
|
|
16959
|
-
|
|
16964
|
+
DS,
|
|
16960
16965
|
{
|
|
16961
16966
|
ref: h,
|
|
16962
16967
|
asChild: n,
|
|
@@ -16965,7 +16970,7 @@ function qp(e) {
|
|
|
16965
16970
|
children: t
|
|
16966
16971
|
}
|
|
16967
16972
|
),
|
|
16968
|
-
/* @__PURE__ */ R(
|
|
16973
|
+
/* @__PURE__ */ R(_S, { className: r, side: i, children: o })
|
|
16969
16974
|
] }) });
|
|
16970
16975
|
}
|
|
16971
16976
|
const SR = He((e, t) => {
|
|
@@ -17067,7 +17072,7 @@ const AS = /* @__PURE__ */ (() => {
|
|
|
17067
17072
|
return {
|
|
17068
17073
|
Messager: () => {
|
|
17069
17074
|
if (!Bs()) return null;
|
|
17070
|
-
const [n, o] =
|
|
17075
|
+
const [n, o] = De({ messages: [] });
|
|
17071
17076
|
return t = (i) => {
|
|
17072
17077
|
i || o({
|
|
17073
17078
|
messages: []
|
|
@@ -17118,7 +17123,7 @@ const AS = /* @__PURE__ */ (() => {
|
|
|
17118
17123
|
message: (n) => e(n),
|
|
17119
17124
|
removeMessage: t
|
|
17120
17125
|
};
|
|
17121
|
-
})(), { Messager: NR, message:
|
|
17126
|
+
})(), { Messager: NR, message: DR, removeMessage: _R } = AS;
|
|
17122
17127
|
function Gp(e, t) {
|
|
17123
17128
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Ai(e, t);
|
|
17124
17129
|
}
|
|
@@ -17139,7 +17144,7 @@ const Sc = {
|
|
|
17139
17144
|
}, Up = K.createContext(null);
|
|
17140
17145
|
var Kp = function(t) {
|
|
17141
17146
|
return t.scrollTop;
|
|
17142
|
-
}, Co = "unmounted", fn = "exited", vn = "entering", In = "entered", Os = "exiting", Lr = /* @__PURE__ */ function(e) {
|
|
17147
|
+
}, Co = "unmounted", fn = "exited", vn = "entering", In = "entered", Os = "exiting", Lr = /* @__PURE__ */ (function(e) {
|
|
17143
17148
|
Gp(t, e);
|
|
17144
17149
|
function t(n, o) {
|
|
17145
17150
|
var i;
|
|
@@ -17266,7 +17271,7 @@ var Kp = function(t) {
|
|
|
17266
17271
|
}, typeof a == "function" ? a(o, s) : K.cloneElement(K.Children.only(a), s))
|
|
17267
17272
|
);
|
|
17268
17273
|
}, t;
|
|
17269
|
-
}(K.Component);
|
|
17274
|
+
})(K.Component);
|
|
17270
17275
|
Lr.contextType = Up;
|
|
17271
17276
|
Lr.propTypes = {};
|
|
17272
17277
|
function kn() {
|
|
@@ -17298,7 +17303,7 @@ var FS = function(t, r) {
|
|
|
17298
17303
|
return t && r && r.split(" ").forEach(function(n) {
|
|
17299
17304
|
return zS(t, n);
|
|
17300
17305
|
});
|
|
17301
|
-
}, Iu = /* @__PURE__ */ function(e) {
|
|
17306
|
+
}, Iu = /* @__PURE__ */ (function(e) {
|
|
17302
17307
|
Gp(t, e);
|
|
17303
17308
|
function t() {
|
|
17304
17309
|
for (var n, o = arguments.length, i = new Array(o), a = 0; a < o; a++)
|
|
@@ -17356,13 +17361,13 @@ var FS = function(t, r) {
|
|
|
17356
17361
|
onExited: this.onExited
|
|
17357
17362
|
}));
|
|
17358
17363
|
}, t;
|
|
17359
|
-
}(K.Component);
|
|
17364
|
+
})(K.Component);
|
|
17360
17365
|
Iu.defaultProps = {
|
|
17361
17366
|
classNames: ""
|
|
17362
17367
|
};
|
|
17363
17368
|
Iu.propTypes = {};
|
|
17364
17369
|
function OR(e) {
|
|
17365
|
-
const { children: t, visible: r = !1, offset: n = [0, 0] } = e, o = ye(null), [i, a] =
|
|
17370
|
+
const { children: t, visible: r = !1, offset: n = [0, 0] } = e, o = ye(null), [i, a] = De(n), { mountContainer: s } = tn(Ir);
|
|
17366
17371
|
Qe(() => {
|
|
17367
17372
|
if (!r) {
|
|
17368
17373
|
a([-9999, -9999]);
|
|
@@ -17493,9 +17498,9 @@ function IR({
|
|
|
17493
17498
|
onChange: n,
|
|
17494
17499
|
className: o = ""
|
|
17495
17500
|
}) {
|
|
17496
|
-
const [i, a] =
|
|
17501
|
+
const [i, a] = De(
|
|
17497
17502
|
t !== void 0 ? t : r || e[0].value
|
|
17498
|
-
), [s, l] =
|
|
17503
|
+
), [s, l] = De({}), c = ye(/* @__PURE__ */ new Map()), d = ye(null);
|
|
17499
17504
|
Qe(() => {
|
|
17500
17505
|
t !== void 0 && t !== i && a(t);
|
|
17501
17506
|
}, [t]);
|
|
@@ -17602,7 +17607,7 @@ function LR(e) {
|
|
|
17602
17607
|
options: o = [],
|
|
17603
17608
|
borderless: i = !1,
|
|
17604
17609
|
onChange: a
|
|
17605
|
-
} = e, [s, l] =
|
|
17610
|
+
} = e, [s, l] = De(!1);
|
|
17606
17611
|
function c(y) {
|
|
17607
17612
|
l(y);
|
|
17608
17613
|
}
|
|
@@ -17694,7 +17699,7 @@ function $R(e) {
|
|
|
17694
17699
|
options: o = [],
|
|
17695
17700
|
borderless: i = !1,
|
|
17696
17701
|
onChange: a
|
|
17697
|
-
} = e, [s, l] =
|
|
17702
|
+
} = e, [s, l] = De(!1);
|
|
17698
17703
|
function c(h) {
|
|
17699
17704
|
l(h);
|
|
17700
17705
|
}
|
|
@@ -17807,7 +17812,7 @@ function zR({
|
|
|
17807
17812
|
);
|
|
17808
17813
|
}
|
|
17809
17814
|
const FR = (e) => {
|
|
17810
|
-
const { defaultChecked: t = !1, onChange: r } = e, [n, o] =
|
|
17815
|
+
const { defaultChecked: t = !1, onChange: r } = e, [n, o] = De(t), i = () => {
|
|
17811
17816
|
o(!n), r == null || r(!n);
|
|
17812
17817
|
};
|
|
17813
17818
|
return Qe(() => {
|
|
@@ -18169,7 +18174,7 @@ function vE(e) {
|
|
|
18169
18174
|
}
|
|
18170
18175
|
const pE = (e) => {
|
|
18171
18176
|
var t, r, n, o, i, a, s, l, c;
|
|
18172
|
-
const { invert: d, toast: u, unstyled: y, interacting: h, setHeights: g, visibleToasts: w, heights: f, index: v, toasts: m, expanded: b, removeToast: C, defaultRichColors: x, closeButton: S, style: E, cancelButtonStyle: M, actionButtonStyle:
|
|
18177
|
+
const { invert: d, toast: u, unstyled: y, interacting: h, setHeights: g, visibleToasts: w, heights: f, index: v, toasts: m, expanded: b, removeToast: C, defaultRichColors: x, closeButton: S, style: E, cancelButtonStyle: M, actionButtonStyle: _, className: P = "", descriptionClassName: T = "", duration: I, position: B, gap: $, expandByDefault: A, classNames: O, icons: L, closeButtonAriaLabel: k = "Close toast" } = e, [z, W] = K.useState(null), [H, Y] = K.useState(null), [q, G] = K.useState(!1), [ee, pe] = K.useState(!1), [ge, j] = K.useState(!1), [V, Q] = K.useState(!1), [N, D] = K.useState(!1), [F, U] = K.useState(0), [Z, X] = K.useState(0), oe = K.useRef(u.duration || I || Rc), J = K.useRef(null), re = K.useRef(null), we = v === 0, xe = v + 1 <= w, he = u.type, te = u.dismissible !== !1, We = u.className || "", ke = u.descriptionClassName || "", Ee = K.useMemo(() => f.findIndex((le) => le.toastId === u.id) || 0, [
|
|
18173
18178
|
f,
|
|
18174
18179
|
u.id
|
|
18175
18180
|
]), Ge = K.useMemo(() => {
|
|
@@ -18181,7 +18186,7 @@ const pE = (e) => {
|
|
|
18181
18186
|
]), ze = K.useMemo(() => u.duration || I || Rc, [
|
|
18182
18187
|
u.duration,
|
|
18183
18188
|
I
|
|
18184
|
-
]), Ie = K.useRef(0), Ye = K.useRef(0), Je = K.useRef(0), Ve = K.useRef(null), [Xe, Ae] = B.split("-"), Fe = K.useMemo(() => f.reduce((le,
|
|
18189
|
+
]), Ie = K.useRef(0), Ye = K.useRef(0), Je = K.useRef(0), Ve = K.useRef(null), [Xe, Ae] = B.split("-"), Fe = K.useMemo(() => f.reduce((le, _e, Re) => Re >= Ee ? le : le + _e.height, 0), [
|
|
18185
18190
|
f,
|
|
18186
18191
|
Ee
|
|
18187
18192
|
]), Ue = JS(), pt = u.invert || d, st = he === "loading";
|
|
@@ -18197,11 +18202,11 @@ const pE = (e) => {
|
|
|
18197
18202
|
}, []), K.useEffect(() => {
|
|
18198
18203
|
const le = re.current;
|
|
18199
18204
|
if (le) {
|
|
18200
|
-
const
|
|
18201
|
-
return X(
|
|
18205
|
+
const _e = le.getBoundingClientRect().height;
|
|
18206
|
+
return X(_e), g((Re) => [
|
|
18202
18207
|
{
|
|
18203
18208
|
toastId: u.id,
|
|
18204
|
-
height:
|
|
18209
|
+
height: _e,
|
|
18205
18210
|
position: u.position
|
|
18206
18211
|
},
|
|
18207
18212
|
...Re
|
|
@@ -18212,10 +18217,10 @@ const pE = (e) => {
|
|
|
18212
18217
|
u.id
|
|
18213
18218
|
]), K.useLayoutEffect(() => {
|
|
18214
18219
|
if (!q) return;
|
|
18215
|
-
const le = re.current,
|
|
18220
|
+
const le = re.current, _e = le.style.height;
|
|
18216
18221
|
le.style.height = "auto";
|
|
18217
18222
|
const Re = le.getBoundingClientRect().height;
|
|
18218
|
-
le.style.height =
|
|
18223
|
+
le.style.height = _e, X(Re), g((ce) => ce.find((se) => se.toastId === u.id) ? ce.map((se) => se.toastId === u.id ? {
|
|
18219
18224
|
...se,
|
|
18220
18225
|
height: Re
|
|
18221
18226
|
} : se) : [
|
|
@@ -18237,7 +18242,7 @@ const pE = (e) => {
|
|
|
18237
18242
|
u.cancel
|
|
18238
18243
|
]);
|
|
18239
18244
|
const ht = K.useCallback(() => {
|
|
18240
|
-
pe(!0), U(Ye.current), g((le) => le.filter((
|
|
18245
|
+
pe(!0), U(Ye.current), g((le) => le.filter((_e) => _e.toastId !== u.id)), setTimeout(() => {
|
|
18241
18246
|
C(u);
|
|
18242
18247
|
}, fE);
|
|
18243
18248
|
}, [
|
|
@@ -18276,9 +18281,9 @@ const pE = (e) => {
|
|
|
18276
18281
|
function Ft() {
|
|
18277
18282
|
var le;
|
|
18278
18283
|
if (L != null && L.loading) {
|
|
18279
|
-
var
|
|
18284
|
+
var _e;
|
|
18280
18285
|
return /* @__PURE__ */ K.createElement("div", {
|
|
18281
|
-
className: hr(O == null ? void 0 : O.loader, u == null || (
|
|
18286
|
+
className: hr(O == null ? void 0 : O.loader, u == null || (_e = u.classNames) == null ? void 0 : _e.loader, "sonner-loader"),
|
|
18282
18287
|
"data-visible": he === "loading"
|
|
18283
18288
|
}, L.loading);
|
|
18284
18289
|
}
|
|
@@ -18332,10 +18337,10 @@ const pE = (e) => {
|
|
|
18332
18337
|
})));
|
|
18333
18338
|
},
|
|
18334
18339
|
onPointerUp: () => {
|
|
18335
|
-
var le,
|
|
18340
|
+
var le, _e, Re;
|
|
18336
18341
|
if (V || !te) return;
|
|
18337
18342
|
Ve.current = null;
|
|
18338
|
-
const ce = Number(((le = re.current) == null ? void 0 : le.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), de = Number(((
|
|
18343
|
+
const ce = Number(((le = re.current) == null ? void 0 : le.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), de = Number(((_e = re.current) == null ? void 0 : _e.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), se = (/* @__PURE__ */ new Date()).getTime() - ((Re = J.current) == null ? void 0 : Re.getTime()), Pe = z === "x" ? ce : de, nt = Math.abs(Pe) / se;
|
|
18339
18344
|
if (Math.abs(Pe) >= dE || nt > 0.11) {
|
|
18340
18345
|
U(Ye.current), u.onDismiss == null || u.onDismiss.call(u, u), Y(z === "x" ? ce > 0 ? "right" : "left" : de > 0 ? "down" : "up"), ht(), Q(!0);
|
|
18341
18346
|
return;
|
|
@@ -18343,11 +18348,11 @@ const pE = (e) => {
|
|
|
18343
18348
|
var tt, qe;
|
|
18344
18349
|
(tt = re.current) == null || tt.style.setProperty("--swipe-amount-x", "0px"), (qe = re.current) == null || qe.style.setProperty("--swipe-amount-y", "0px");
|
|
18345
18350
|
}
|
|
18346
|
-
|
|
18351
|
+
D(!1), j(!1), W(null);
|
|
18347
18352
|
},
|
|
18348
18353
|
onPointerMove: (le) => {
|
|
18349
|
-
var
|
|
18350
|
-
if (!Ve.current || !te || ((
|
|
18354
|
+
var _e, Re, ce;
|
|
18355
|
+
if (!Ve.current || !te || ((_e = window.getSelection()) == null ? void 0 : _e.toString().length) > 0) return;
|
|
18351
18356
|
const se = le.clientY - Ve.current.y, Pe = le.clientX - Ve.current.x;
|
|
18352
18357
|
var nt;
|
|
18353
18358
|
const tt = (nt = e.swipeDirections) != null ? nt : vE(B);
|
|
@@ -18372,7 +18377,7 @@ const pE = (e) => {
|
|
|
18372
18377
|
const yt = Pe * Zt(Pe);
|
|
18373
18378
|
qe.x = Math.abs(yt) < Math.abs(Pe) ? yt : Pe;
|
|
18374
18379
|
}
|
|
18375
|
-
(Math.abs(qe.x) > 0 || Math.abs(qe.y) > 0) &&
|
|
18380
|
+
(Math.abs(qe.x) > 0 || Math.abs(qe.y) > 0) && D(!0), (Re = re.current) == null || Re.style.setProperty("--swipe-amount-x", `${qe.x}px`), (ce = re.current) == null || ce.style.setProperty("--swipe-amount-y", `${qe.y}px`);
|
|
18376
18381
|
}
|
|
18377
18382
|
}, Ge && !u.jsx && he !== "loading" ? /* @__PURE__ */ K.createElement("button", {
|
|
18378
18383
|
"aria-label": k,
|
|
@@ -18406,7 +18411,7 @@ const pE = (e) => {
|
|
|
18406
18411
|
}, u.cancel.label) : null, /* @__PURE__ */ K.isValidElement(u.action) ? u.action : u.action && pi(u.action) ? /* @__PURE__ */ K.createElement("button", {
|
|
18407
18412
|
"data-button": !0,
|
|
18408
18413
|
"data-action": !0,
|
|
18409
|
-
style: u.actionButtonStyle ||
|
|
18414
|
+
style: u.actionButtonStyle || _,
|
|
18410
18415
|
onClick: (le) => {
|
|
18411
18416
|
pi(u.action) && (u.action.onClick == null || u.action.onClick.call(u.action, le), !le.defaultPrevented && ht());
|
|
18412
18417
|
},
|
|
@@ -18452,7 +18457,7 @@ const mE = /* @__PURE__ */ K.forwardRef(function(t, r) {
|
|
|
18452
18457
|
], expand: s, closeButton: l, className: c, offset: d, mobileOffset: u, theme: y = "light", richColors: h, duration: g, style: w, visibleToasts: f = aE, toastOptions: v, dir: m = Mc(), gap: b = cE, icons: C, containerAriaLabel: x = "Notifications" } = t, [S, E] = K.useState([]), M = K.useMemo(() => n ? S.filter((q) => q.toasterId === n) : S.filter((q) => !q.toasterId), [
|
|
18453
18458
|
S,
|
|
18454
18459
|
n
|
|
18455
|
-
]),
|
|
18460
|
+
]), _ = K.useMemo(() => Array.from(new Set([
|
|
18456
18461
|
i
|
|
18457
18462
|
].concat(M.filter((q) => q.position).map((q) => q.position)))), [
|
|
18458
18463
|
M,
|
|
@@ -18549,7 +18554,7 @@ const mE = /* @__PURE__ */ K.forwardRef(function(t, r) {
|
|
|
18549
18554
|
"aria-relevant": "additions text",
|
|
18550
18555
|
"aria-atomic": "false",
|
|
18551
18556
|
suppressHydrationWarning: !0
|
|
18552
|
-
},
|
|
18557
|
+
}, _.map((q, G) => {
|
|
18553
18558
|
var ee;
|
|
18554
18559
|
const [pe, ge] = q.split("-");
|
|
18555
18560
|
return M.length ? /* @__PURE__ */ K.createElement("ol", {
|
|
@@ -18610,8 +18615,8 @@ const mE = /* @__PURE__ */ K.forwardRef(function(t, r) {
|
|
|
18610
18615
|
actionButtonStyle: v == null ? void 0 : v.actionButtonStyle,
|
|
18611
18616
|
closeButtonAriaLabel: v == null ? void 0 : v.closeButtonAriaLabel,
|
|
18612
18617
|
removeToast: Y,
|
|
18613
|
-
toasts: M.filter((
|
|
18614
|
-
heights: P.filter((
|
|
18618
|
+
toasts: M.filter((D) => D.position == j.position),
|
|
18619
|
+
heights: P.filter((D) => D.position == j.position),
|
|
18615
18620
|
setHeights: T,
|
|
18616
18621
|
expandByDefault: s,
|
|
18617
18622
|
gap: b,
|
|
@@ -18721,7 +18726,7 @@ function wE(e, t, r) {
|
|
|
18721
18726
|
}, [e]), [c];
|
|
18722
18727
|
}
|
|
18723
18728
|
var Pc = (typeof navigator > "u" ? "undefined" : wt(navigator)) === "object" && /Firefox/i.test(navigator.userAgent);
|
|
18724
|
-
const Qp = function(e, t, r, n) {
|
|
18729
|
+
const Qp = (function(e, t, r, n) {
|
|
18725
18730
|
var o = ye(!1), i = ye(null);
|
|
18726
18731
|
function a() {
|
|
18727
18732
|
clearTimeout(i.current), o.current = !0, i.current = setTimeout(function() {
|
|
@@ -18743,7 +18748,7 @@ const Qp = function(e, t, r, n) {
|
|
|
18743
18748
|
c > 0 && s.current.bottom;
|
|
18744
18749
|
return d && u ? (clearTimeout(i.current), o.current = !1) : (!u || o.current) && a(), !o.current && u;
|
|
18745
18750
|
};
|
|
18746
|
-
};
|
|
18751
|
+
});
|
|
18747
18752
|
function xE(e, t, r, n, o, i, a) {
|
|
18748
18753
|
var s = ye(0), l = ye(null), c = ye(null), d = ye(!1), u = Qp(t, r, n, o);
|
|
18749
18754
|
function y(m, b) {
|
|
@@ -18770,8 +18775,8 @@ function xE(e, t, r, n, o, i, a) {
|
|
|
18770
18775
|
}, 2);
|
|
18771
18776
|
var b = m.deltaX, C = m.deltaY, x = m.shiftKey, S = b, E = C;
|
|
18772
18777
|
(g.current === "sx" || !g.current && x && C && !b) && (S = C, E = 0, g.current = "sx");
|
|
18773
|
-
var M = Math.abs(S),
|
|
18774
|
-
g.current === null && (g.current = i && M >
|
|
18778
|
+
var M = Math.abs(S), _ = Math.abs(E);
|
|
18779
|
+
g.current === null && (g.current = i && M > _ ? "x" : "y"), g.current === "y" ? y(m, E) : h(m, S);
|
|
18775
18780
|
}
|
|
18776
18781
|
}
|
|
18777
18782
|
function v(m) {
|
|
@@ -18799,7 +18804,7 @@ function CE(e, t, r, n) {
|
|
|
18799
18804
|
};
|
|
18800
18805
|
return l;
|
|
18801
18806
|
}
|
|
18802
|
-
var SE = /* @__PURE__ */ function() {
|
|
18807
|
+
var SE = /* @__PURE__ */ (function() {
|
|
18803
18808
|
function e() {
|
|
18804
18809
|
Ho(this, e), Ce(this, "maps", void 0), Ce(this, "id", 0), Ce(this, "diffRecords", /* @__PURE__ */ new Map()), this.maps = /* @__PURE__ */ Object.create(null);
|
|
18805
18810
|
}
|
|
@@ -18828,7 +18833,7 @@ var SE = /* @__PURE__ */ function() {
|
|
|
18828
18833
|
return this.diffRecords;
|
|
18829
18834
|
}
|
|
18830
18835
|
}]), e;
|
|
18831
|
-
}();
|
|
18836
|
+
})();
|
|
18832
18837
|
function Nc(e) {
|
|
18833
18838
|
var t = parseFloat(e);
|
|
18834
18839
|
return isNaN(t) ? 0 : t;
|
|
@@ -18845,7 +18850,7 @@ function EE(e, t, r) {
|
|
|
18845
18850
|
var v = !1;
|
|
18846
18851
|
s.current.forEach(function(m, b) {
|
|
18847
18852
|
if (m && m.offsetParent) {
|
|
18848
|
-
var C = m.offsetHeight, x = getComputedStyle(m), S = x.marginTop, E = x.marginBottom, M = Nc(S),
|
|
18853
|
+
var C = m.offsetHeight, x = getComputedStyle(m), S = x.marginTop, E = x.marginBottom, M = Nc(S), _ = Nc(E), P = C + M + _;
|
|
18849
18854
|
l.current.get(b) !== P && (l.current.set(b, P), v = !0);
|
|
18850
18855
|
}
|
|
18851
18856
|
}), v && a(function(m) {
|
|
@@ -18870,7 +18875,7 @@ function EE(e, t, r) {
|
|
|
18870
18875
|
return d;
|
|
18871
18876
|
}, []), [y, u, l.current, i];
|
|
18872
18877
|
}
|
|
18873
|
-
var
|
|
18878
|
+
var Dc = 14 / 15;
|
|
18874
18879
|
function RE(e, t, r) {
|
|
18875
18880
|
var n = ye(!1), o = ye(0), i = ye(0), a = ye(null), s = ye(null), l, c = function(h) {
|
|
18876
18881
|
if (n.current) {
|
|
@@ -18878,7 +18883,7 @@ function RE(e, t, r) {
|
|
|
18878
18883
|
m ? o.current = g : i.current = w;
|
|
18879
18884
|
var b = r(m, m ? f : v, !1, h);
|
|
18880
18885
|
b && h.preventDefault(), clearInterval(s.current), b && (s.current = setInterval(function() {
|
|
18881
|
-
m ? f *=
|
|
18886
|
+
m ? f *= Dc : v *= Dc;
|
|
18882
18887
|
var C = Math.floor(m ? f : v);
|
|
18883
18888
|
(!r(m, C, !0) || Math.abs(C) <= 0.1) && clearInterval(s.current);
|
|
18884
18889
|
}, 16));
|
|
@@ -18903,7 +18908,7 @@ function RE(e, t, r) {
|
|
|
18903
18908
|
};
|
|
18904
18909
|
}, [e]);
|
|
18905
18910
|
}
|
|
18906
|
-
function
|
|
18911
|
+
function _c(e) {
|
|
18907
18912
|
return Math.floor(Math.pow(e, 0.5));
|
|
18908
18913
|
}
|
|
18909
18914
|
function ks(e, t) {
|
|
@@ -18932,10 +18937,10 @@ function ME(e, t, r) {
|
|
|
18932
18937
|
var g = ks(h, !1), w = n.getBoundingClientRect(), f = w.top, v = w.bottom;
|
|
18933
18938
|
if (g <= f) {
|
|
18934
18939
|
var m = f - g;
|
|
18935
|
-
a = -
|
|
18940
|
+
a = -_c(m), l();
|
|
18936
18941
|
} else if (g >= v) {
|
|
18937
18942
|
var b = g - v;
|
|
18938
|
-
a =
|
|
18943
|
+
a = _c(b), l();
|
|
18939
18944
|
} else
|
|
18940
18945
|
s();
|
|
18941
18946
|
}
|
|
@@ -18960,13 +18965,13 @@ function NE(e, t, r, n, o, i, a, s) {
|
|
|
18960
18965
|
i();
|
|
18961
18966
|
var h = u.targetAlign, g = u.originAlign, w = u.index, f = u.offset, v = e.current.clientHeight, m = !1, b = h, C = null;
|
|
18962
18967
|
if (v) {
|
|
18963
|
-
for (var x = h || g, S = 0, E = 0, M = 0,
|
|
18968
|
+
for (var x = h || g, S = 0, E = 0, M = 0, _ = Math.min(t.length - 1, w), P = 0; P <= _; P += 1) {
|
|
18964
18969
|
var T = o(t[P]);
|
|
18965
18970
|
E = S;
|
|
18966
18971
|
var I = r.get(T);
|
|
18967
18972
|
M = E + (I === void 0 ? n : I), S = M;
|
|
18968
18973
|
}
|
|
18969
|
-
for (var B = x === "top" ? f : v - f, $ =
|
|
18974
|
+
for (var B = x === "top" ? f : v - f, $ = _; $ >= 0; $ -= 1) {
|
|
18970
18975
|
var A = o(t[$]), O = r.get(A);
|
|
18971
18976
|
if (O === void 0) {
|
|
18972
18977
|
m = !0;
|
|
@@ -19018,7 +19023,7 @@ function NE(e, t, r, n, o, i, a, s) {
|
|
|
19018
19023
|
};
|
|
19019
19024
|
}
|
|
19020
19025
|
var Oc = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
19021
|
-
var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, a = e.onStartMove, s = e.onStopMove, l = e.onScroll, c = e.horizontal, d = e.spinSize, u = e.containerSize, y = e.style, h = e.thumbStyle, g = e.showScrollBar, w = p.useState(!1), f = ie(w, 2), v = f[0], m = f[1], b = p.useState(null), C = ie(b, 2), x = C[0], S = C[1], E = p.useState(null), M = ie(E, 2),
|
|
19026
|
+
var r = e.prefixCls, n = e.rtl, o = e.scrollOffset, i = e.scrollRange, a = e.onStartMove, s = e.onStopMove, l = e.onScroll, c = e.horizontal, d = e.spinSize, u = e.containerSize, y = e.style, h = e.thumbStyle, g = e.showScrollBar, w = p.useState(!1), f = ie(w, 2), v = f[0], m = f[1], b = p.useState(null), C = ie(b, 2), x = C[0], S = C[1], E = p.useState(null), M = ie(E, 2), _ = M[0], P = M[1], T = !n, I = p.useRef(), B = p.useRef(), $ = p.useState(g), A = ie($, 2), O = A[0], L = A[1], k = p.useRef(), z = function() {
|
|
19022
19027
|
g === !0 || g === !1 || (clearTimeout(k.current), L(!0), k.current = setTimeout(function() {
|
|
19023
19028
|
L(!1);
|
|
19024
19029
|
}, 3e3));
|
|
@@ -19027,33 +19032,33 @@ var Oc = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
|
19027
19032
|
return 0;
|
|
19028
19033
|
var N = o / W;
|
|
19029
19034
|
return N * H;
|
|
19030
|
-
}, [o, W, H]), q = function(
|
|
19031
|
-
|
|
19035
|
+
}, [o, W, H]), q = function(D) {
|
|
19036
|
+
D.stopPropagation(), D.preventDefault();
|
|
19032
19037
|
}, G = p.useRef({
|
|
19033
19038
|
top: Y,
|
|
19034
19039
|
dragging: v,
|
|
19035
19040
|
pageY: x,
|
|
19036
|
-
startTop:
|
|
19041
|
+
startTop: _
|
|
19037
19042
|
});
|
|
19038
19043
|
G.current = {
|
|
19039
19044
|
top: Y,
|
|
19040
19045
|
dragging: v,
|
|
19041
19046
|
pageY: x,
|
|
19042
|
-
startTop:
|
|
19047
|
+
startTop: _
|
|
19043
19048
|
};
|
|
19044
|
-
var ee = function(
|
|
19045
|
-
m(!0), S(ks(
|
|
19049
|
+
var ee = function(D) {
|
|
19050
|
+
m(!0), S(ks(D, c)), P(G.current.top), a(), D.stopPropagation(), D.preventDefault();
|
|
19046
19051
|
};
|
|
19047
19052
|
p.useEffect(function() {
|
|
19048
19053
|
var N = function(Z) {
|
|
19049
19054
|
Z.preventDefault();
|
|
19050
|
-
},
|
|
19051
|
-
return
|
|
19055
|
+
}, D = I.current, F = B.current;
|
|
19056
|
+
return D.addEventListener("touchstart", N, {
|
|
19052
19057
|
passive: !1
|
|
19053
19058
|
}), F.addEventListener("touchstart", ee, {
|
|
19054
19059
|
passive: !1
|
|
19055
19060
|
}), function() {
|
|
19056
|
-
|
|
19061
|
+
D.removeEventListener("touchstart", N), F.removeEventListener("touchstart", ee);
|
|
19057
19062
|
};
|
|
19058
19063
|
}, []);
|
|
19059
19064
|
var pe = p.useRef();
|
|
@@ -19061,7 +19066,7 @@ var Oc = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
|
19061
19066
|
var ge = p.useRef();
|
|
19062
19067
|
ge.current = H, p.useEffect(function() {
|
|
19063
19068
|
if (v) {
|
|
19064
|
-
var N,
|
|
19069
|
+
var N, D = function(Z) {
|
|
19065
19070
|
var X = G.current, oe = X.dragging, J = X.pageY, re = X.startTop;
|
|
19066
19071
|
gt.cancel(N);
|
|
19067
19072
|
var we = I.current.getBoundingClientRect(), xe = u / (c ? we.width : we.height);
|
|
@@ -19076,16 +19081,16 @@ var Oc = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
|
19076
19081
|
}, F = function() {
|
|
19077
19082
|
m(!1), s();
|
|
19078
19083
|
};
|
|
19079
|
-
return window.addEventListener("mousemove",
|
|
19084
|
+
return window.addEventListener("mousemove", D, {
|
|
19080
19085
|
passive: !0
|
|
19081
|
-
}), window.addEventListener("touchmove",
|
|
19086
|
+
}), window.addEventListener("touchmove", D, {
|
|
19082
19087
|
passive: !0
|
|
19083
19088
|
}), window.addEventListener("mouseup", F, {
|
|
19084
19089
|
passive: !0
|
|
19085
19090
|
}), window.addEventListener("touchend", F, {
|
|
19086
19091
|
passive: !0
|
|
19087
19092
|
}), function() {
|
|
19088
|
-
window.removeEventListener("mousemove",
|
|
19093
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("touchmove", D), window.removeEventListener("mouseup", F), window.removeEventListener("touchend", F), gt.cancel(N);
|
|
19089
19094
|
};
|
|
19090
19095
|
}
|
|
19091
19096
|
}, [v]), p.useEffect(function() {
|
|
@@ -19119,23 +19124,23 @@ var Oc = /* @__PURE__ */ p.forwardRef(function(e, t) {
|
|
|
19119
19124
|
style: ne(ne({}, Q), h),
|
|
19120
19125
|
onMouseDown: ee
|
|
19121
19126
|
}));
|
|
19122
|
-
}),
|
|
19127
|
+
}), DE = 20;
|
|
19123
19128
|
function Tc() {
|
|
19124
19129
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = e / t * e;
|
|
19125
|
-
return isNaN(r) && (r = 0), r = Math.max(r,
|
|
19130
|
+
return isNaN(r) && (r = 0), r = Math.max(r, DE), Math.floor(r);
|
|
19126
19131
|
}
|
|
19127
|
-
var
|
|
19132
|
+
var _E = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style", "data", "children", "itemKey", "virtual", "direction", "scrollWidth", "component", "onScroll", "onVirtualScroll", "onVisibleChange", "innerProps", "extraRender", "styles", "showScrollBar"], OE = [], TE = {
|
|
19128
19133
|
overflowY: "auto",
|
|
19129
19134
|
overflowAnchor: "none"
|
|
19130
19135
|
};
|
|
19131
19136
|
function kE(e, t) {
|
|
19132
|
-
var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, a = e.itemHeight, s = e.fullHeight, l = s === void 0 ? !0 : s, c = e.style, d = e.data, u = e.children, y = e.itemKey, h = e.virtual, g = e.direction, w = e.scrollWidth, f = e.component, v = f === void 0 ? "div" : f, m = e.onScroll, b = e.onVirtualScroll, C = e.onVisibleChange, x = e.innerProps, S = e.extraRender, E = e.styles, M = e.showScrollBar,
|
|
19137
|
+
var r = e.prefixCls, n = r === void 0 ? "rc-virtual-list" : r, o = e.className, i = e.height, a = e.itemHeight, s = e.fullHeight, l = s === void 0 ? !0 : s, c = e.style, d = e.data, u = e.children, y = e.itemKey, h = e.virtual, g = e.direction, w = e.scrollWidth, f = e.component, v = f === void 0 ? "div" : f, m = e.onScroll, b = e.onVirtualScroll, C = e.onVisibleChange, x = e.innerProps, S = e.extraRender, E = e.styles, M = e.showScrollBar, _ = M === void 0 ? "optional" : M, P = vt(e, _E), T = p.useCallback(function(ue) {
|
|
19133
19138
|
return typeof y == "function" ? y(ue) : ue == null ? void 0 : ue[y];
|
|
19134
19139
|
}, [y]), I = EE(T), B = ie(I, 4), $ = B[0], A = B[1], O = B[2], L = B[3], k = !!(h !== !1 && i && a), z = p.useMemo(function() {
|
|
19135
19140
|
return Object.values(O.maps).reduce(function(ue, fe) {
|
|
19136
19141
|
return ue + fe;
|
|
19137
19142
|
}, 0);
|
|
19138
|
-
}, [O.id, O.maps]), W = k && d && (Math.max(a * d.length, z) > i || !!w), H = g === "rtl", Y = at(n, Ce({}, "".concat(n, "-rtl"), H), o), q = d || OE, G = ye(), ee = ye(), pe = ye(), ge =
|
|
19143
|
+
}, [O.id, O.maps]), W = k && d && (Math.max(a * d.length, z) > i || !!w), H = g === "rtl", Y = at(n, Ce({}, "".concat(n, "-rtl"), H), o), q = d || OE, G = ye(), ee = ye(), pe = ye(), ge = De(0), j = ie(ge, 2), V = j[0], Q = j[1], N = De(0), D = ie(N, 2), F = D[0], U = D[1], Z = De(!1), X = ie(Z, 2), oe = X[0], J = X[1], re = function() {
|
|
19139
19144
|
J(!0);
|
|
19140
19145
|
}, we = function() {
|
|
19141
19146
|
J(!1);
|
|
@@ -19173,8 +19178,8 @@ function kE(e, t) {
|
|
|
19173
19178
|
};
|
|
19174
19179
|
}
|
|
19175
19180
|
for (var fe = 0, Me, Oe, Ke, Gt = q.length, At = 0; At < Gt; At += 1) {
|
|
19176
|
-
var dr = q[At], tr = T(dr), fr = O.get(tr),
|
|
19177
|
-
|
|
19181
|
+
var dr = q[At], tr = T(dr), fr = O.get(tr), _t = fe + (fr === void 0 ? a : fr);
|
|
19182
|
+
_t >= V && Me === void 0 && (Me = At, Oe = fe), _t > V + i && Ke === void 0 && (Ke = At), fe = _t;
|
|
19178
19183
|
}
|
|
19179
19184
|
return Me === void 0 && (Me = 0, Oe = 0, Ke = Math.ceil(i / a)), Ke === void 0 && (Ke = q.length - 1), Ke = Math.min(Ke + 1, q.length - 1), {
|
|
19180
19185
|
scrollHeight: fe,
|
|
@@ -19217,7 +19222,7 @@ function kE(e, t) {
|
|
|
19217
19222
|
var fe = ue;
|
|
19218
19223
|
return Number.isNaN(it.current) || (fe = Math.min(fe, it.current)), fe = Math.max(fe, 0), fe;
|
|
19219
19224
|
}
|
|
19220
|
-
var
|
|
19225
|
+
var _e = V <= 0, Re = V >= Tt, ce = F <= 0, de = F >= w, se = Qp(_e, Re, ce, de), Pe = function() {
|
|
19221
19226
|
return {
|
|
19222
19227
|
x: H ? -F : F,
|
|
19223
19228
|
y: V
|
|
@@ -19251,7 +19256,7 @@ function kE(e, t) {
|
|
|
19251
19256
|
var Oe = Me + ue;
|
|
19252
19257
|
return Oe;
|
|
19253
19258
|
});
|
|
19254
|
-
}), Qt = xE(k,
|
|
19259
|
+
}), Qt = xE(k, _e, Re, ce, de, !!w, kt), $r = ie(Qt, 2), Ht = $r[0], Et = $r[1];
|
|
19255
19260
|
RE(k, G, function(ue, fe, Me, Oe) {
|
|
19256
19261
|
var Ke = Oe;
|
|
19257
19262
|
return se(ue, fe, Me) ? !1 : !Ke || !Ke._virtualHandled ? (Ke && (Ke._virtualHandled = !0), Ht({
|
|
@@ -19266,7 +19271,7 @@ function kE(e, t) {
|
|
|
19266
19271
|
});
|
|
19267
19272
|
}), mt(function() {
|
|
19268
19273
|
function ue(Me) {
|
|
19269
|
-
var Oe =
|
|
19274
|
+
var Oe = _e && Me.detail < 0, Ke = Re && Me.detail > 0;
|
|
19270
19275
|
k && !Oe && !Ke && Me.preventDefault();
|
|
19271
19276
|
}
|
|
19272
19277
|
var fe = G.current;
|
|
@@ -19279,7 +19284,7 @@ function kE(e, t) {
|
|
|
19279
19284
|
}), function() {
|
|
19280
19285
|
fe.removeEventListener("wheel", Ht), fe.removeEventListener("DOMMouseScroll", Et), fe.removeEventListener("MozMousePixelScroll", ue);
|
|
19281
19286
|
};
|
|
19282
|
-
}, [k,
|
|
19287
|
+
}, [k, _e, Re]), mt(function() {
|
|
19283
19288
|
if (w) {
|
|
19284
19289
|
var ue = yt(F);
|
|
19285
19290
|
U(ue), tt({
|
|
@@ -19359,7 +19364,7 @@ function kE(e, t) {
|
|
|
19359
19364
|
containerSize: Fe.height,
|
|
19360
19365
|
style: E == null ? void 0 : E.verticalScrollBar,
|
|
19361
19366
|
thumbStyle: E == null ? void 0 : E.verticalScrollBarThumb,
|
|
19362
|
-
showScrollBar:
|
|
19367
|
+
showScrollBar: _
|
|
19363
19368
|
}), W && w > Fe.width && /* @__PURE__ */ p.createElement(Oc, {
|
|
19364
19369
|
ref: ht,
|
|
19365
19370
|
prefixCls: n,
|
|
@@ -19374,7 +19379,7 @@ function kE(e, t) {
|
|
|
19374
19379
|
horizontal: !0,
|
|
19375
19380
|
style: E == null ? void 0 : E.horizontalScrollBar,
|
|
19376
19381
|
thumbStyle: E == null ? void 0 : E.horizontalScrollBarThumb,
|
|
19377
|
-
showScrollBar:
|
|
19382
|
+
showScrollBar: _
|
|
19378
19383
|
}));
|
|
19379
19384
|
}
|
|
19380
19385
|
var Jp = /* @__PURE__ */ p.forwardRef(kE);
|
|
@@ -19467,7 +19472,7 @@ function th(e, t, r = 1) {
|
|
|
19467
19472
|
}), n;
|
|
19468
19473
|
}
|
|
19469
19474
|
function qR(e) {
|
|
19470
|
-
const { data: t = [], defaultCache: r, style: n, defaultExpandAll: o = !1, selectionMode: i = 1, valueGroup: a = [], onChange: s, onExpend: l, height: c = 200, itemHeight: d = 32, attachRender: u } = e, [y, h] =
|
|
19475
|
+
const { data: t = [], defaultCache: r, style: n, defaultExpandAll: o = !1, selectionMode: i = 1, valueGroup: a = [], onChange: s, onExpend: l, height: c = 200, itemHeight: d = 32, attachRender: u } = e, [y, h] = De({}), g = lt(() => /* @__PURE__ */ new Set(), []), w = lt(() => eh(t, r), [t, r]), f = lt(() => {
|
|
19471
19476
|
const C = /* @__PURE__ */ new Set();
|
|
19472
19477
|
return a.forEach((x) => {
|
|
19473
19478
|
w.findNodePathFromTreeWithCache(x).forEach((E) => C.add(E));
|
|
@@ -19486,7 +19491,7 @@ function qR(e) {
|
|
|
19486
19491
|
(x = C.children) != null && x.length && (g.has(C.key) ? g.delete(C.key) : g.add(C.key), h({})), !(i === 0 && C.children) && (l == null || l(C.key));
|
|
19487
19492
|
}
|
|
19488
19493
|
function b(C) {
|
|
19489
|
-
const { title: x, key: S, level: E = 0 } = C, M = e.treeNodeClassName,
|
|
19494
|
+
const { title: x, key: S, level: E = 0 } = C, M = e.treeNodeClassName, _ = g.has(S), P = f.has(S), T = LE(f, C);
|
|
19490
19495
|
return /* @__PURE__ */ R(
|
|
19491
19496
|
"div",
|
|
19492
19497
|
{
|
|
@@ -19503,7 +19508,7 @@ function qR(e) {
|
|
|
19503
19508
|
"span",
|
|
19504
19509
|
{
|
|
19505
19510
|
className: ae("univer-tree-icon", {
|
|
19506
|
-
"univer-tree-icon-expand":
|
|
19511
|
+
"univer-tree-icon-expand": _
|
|
19507
19512
|
}),
|
|
19508
19513
|
onClick: (I) => {
|
|
19509
19514
|
I.stopPropagation(), m(C);
|
|
@@ -19577,7 +19582,7 @@ export {
|
|
|
19577
19582
|
BE as Accordion,
|
|
19578
19583
|
jE as Avatar,
|
|
19579
19584
|
am as Badge,
|
|
19580
|
-
|
|
19585
|
+
_r as Button,
|
|
19581
19586
|
VE as ButtonGroup,
|
|
19582
19587
|
rs as Calendar,
|
|
19583
19588
|
JE as CascaderList,
|
|
@@ -19641,8 +19646,8 @@ export {
|
|
|
19641
19646
|
QR as greenTheme,
|
|
19642
19647
|
Bs as isBrowser,
|
|
19643
19648
|
jR as mergeTreeSelected,
|
|
19644
|
-
|
|
19645
|
-
|
|
19649
|
+
DR as message,
|
|
19650
|
+
_R as removeMessage,
|
|
19646
19651
|
GR as render,
|
|
19647
19652
|
KR as resizeObserverCtor,
|
|
19648
19653
|
mn as scrollbarClassName,
|