@motiadev/ui 0.5.2-beta.103 → 0.5.2-beta.104-780167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/panel.d.ts +4 -3
- package/dist/components/ui/panel.d.ts.map +1 -1
- package/dist/index.cjs +18 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +813 -812
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as p from "react";
|
|
|
2
2
|
import ve, { forwardRef as Ie, useMemo as Xn, useLayoutEffect as lo, useEffect as je, useState as Ae, createElement as Me, createContext as qa, useContext as uo, useRef as le, useImperativeHandle as fo, useCallback as ie } from "react";
|
|
3
3
|
import * as po from "react-dom";
|
|
4
4
|
import Za from "react-dom";
|
|
5
|
-
var
|
|
5
|
+
var zt = { exports: {} }, vt = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -70,7 +70,7 @@ function Qa() {
|
|
|
70
70
|
switch (typeof y.tag == "number" && console.error(
|
|
71
71
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
72
72
|
), y.$$typeof) {
|
|
73
|
-
case
|
|
73
|
+
case v:
|
|
74
74
|
return "Portal";
|
|
75
75
|
case w:
|
|
76
76
|
return (y.displayName || "Context") + ".Provider";
|
|
@@ -153,12 +153,12 @@ function Qa() {
|
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), y = this.props.ref, y !== void 0 ? y : null;
|
|
155
155
|
}
|
|
156
|
-
function u(y, j, U, P, _,
|
|
157
|
-
return U =
|
|
158
|
-
$$typeof:
|
|
156
|
+
function u(y, j, U, P, _, z, L, k) {
|
|
157
|
+
return U = z.ref, y = {
|
|
158
|
+
$$typeof: h,
|
|
159
159
|
type: y,
|
|
160
160
|
key: j,
|
|
161
|
-
props:
|
|
161
|
+
props: z,
|
|
162
162
|
_owner: _
|
|
163
163
|
}, (U !== void 0 ? U : null) !== null ? Object.defineProperty(y, "ref", {
|
|
164
164
|
enumerable: !1,
|
|
@@ -185,7 +185,7 @@ function Qa() {
|
|
|
185
185
|
value: k
|
|
186
186
|
}), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
|
|
187
187
|
}
|
|
188
|
-
function d(y, j, U, P, _,
|
|
188
|
+
function d(y, j, U, P, _, z, L, k) {
|
|
189
189
|
var T = j.children;
|
|
190
190
|
if (T !== void 0)
|
|
191
191
|
if (P)
|
|
@@ -227,7 +227,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
227
227
|
), u(
|
|
228
228
|
y,
|
|
229
229
|
T,
|
|
230
|
-
|
|
230
|
+
z,
|
|
231
231
|
_,
|
|
232
232
|
o(),
|
|
233
233
|
U,
|
|
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function l(y) {
|
|
239
|
-
typeof y == "object" && y !== null && y.$$typeof ===
|
|
239
|
+
typeof y == "object" && y !== null && y.$$typeof === h && y._store && (y._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var f = ve,
|
|
241
|
+
var f = ve, h = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), w = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), N = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), V = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $ = Object.prototype.hasOwnProperty, q = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
f = {
|
|
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
s
|
|
252
252
|
)(), A = B(r(s)), I = {};
|
|
253
253
|
bt.Fragment = g, bt.jsx = function(y, j, U, P, _) {
|
|
254
|
-
var
|
|
254
|
+
var z = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return d(
|
|
256
256
|
y,
|
|
257
257
|
j,
|
|
@@ -259,11 +259,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
!1,
|
|
260
260
|
P,
|
|
261
261
|
_,
|
|
262
|
-
|
|
263
|
-
|
|
262
|
+
z ? Error("react-stack-top-frame") : Z,
|
|
263
|
+
z ? B(r(y)) : A
|
|
264
264
|
);
|
|
265
265
|
}, bt.jsxs = function(y, j, U, P, _) {
|
|
266
|
-
var
|
|
266
|
+
var z = 1e4 > V.recentlyCreatedOwnerStacks++;
|
|
267
267
|
return d(
|
|
268
268
|
y,
|
|
269
269
|
j,
|
|
@@ -271,15 +271,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
271
271
|
!0,
|
|
272
272
|
P,
|
|
273
273
|
_,
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
z ? Error("react-stack-top-frame") : Z,
|
|
275
|
+
z ? B(r(y)) : A
|
|
276
276
|
);
|
|
277
277
|
};
|
|
278
278
|
}()), bt;
|
|
279
279
|
}
|
|
280
280
|
var Rr;
|
|
281
281
|
function ei() {
|
|
282
|
-
return Rr || (Rr = 1, process.env.NODE_ENV === "production" ?
|
|
282
|
+
return Rr || (Rr = 1, process.env.NODE_ENV === "production" ? zt.exports = Ja() : zt.exports = Qa()), zt.exports;
|
|
283
283
|
}
|
|
284
284
|
var m = ei();
|
|
285
285
|
function Pr(e, t) {
|
|
@@ -375,9 +375,9 @@ const kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = go, s
|
|
|
375
375
|
let [l, f] = d;
|
|
376
376
|
return f === void 0 || (u[l] = f), u;
|
|
377
377
|
}, {}), c = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((u, d) => {
|
|
378
|
-
let { class: l, className: f, ...
|
|
379
|
-
return Object.entries(
|
|
380
|
-
let [g, b] =
|
|
378
|
+
let { class: l, className: f, ...h } = d;
|
|
379
|
+
return Object.entries(h).every((v) => {
|
|
380
|
+
let [g, b] = v;
|
|
381
381
|
return Array.isArray(b) ? b.includes({
|
|
382
382
|
...s,
|
|
383
383
|
...i
|
|
@@ -498,26 +498,26 @@ const kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = go, s
|
|
|
498
498
|
let r = (o) => {
|
|
499
499
|
const s = [];
|
|
500
500
|
let a = 0, i = 0, c = 0, u;
|
|
501
|
-
for (let
|
|
502
|
-
let g = o[
|
|
501
|
+
for (let v = 0; v < o.length; v++) {
|
|
502
|
+
let g = o[v];
|
|
503
503
|
if (a === 0 && i === 0) {
|
|
504
504
|
if (g === $n) {
|
|
505
|
-
s.push(o.slice(c,
|
|
505
|
+
s.push(o.slice(c, v)), c = v + fi;
|
|
506
506
|
continue;
|
|
507
507
|
}
|
|
508
508
|
if (g === "/") {
|
|
509
|
-
u =
|
|
509
|
+
u = v;
|
|
510
510
|
continue;
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
g === "[" ? a++ : g === "]" ? a-- : g === "(" ? i++ : g === ")" && i--;
|
|
514
514
|
}
|
|
515
|
-
const d = s.length === 0 ? o : o.substring(c), l = mi(d), f = l !== d,
|
|
515
|
+
const d = s.length === 0 ? o : o.substring(c), l = mi(d), f = l !== d, h = u && u > c ? u - c : void 0;
|
|
516
516
|
return {
|
|
517
517
|
modifiers: s,
|
|
518
518
|
hasImportantModifier: f,
|
|
519
519
|
baseClassName: l,
|
|
520
|
-
maybePostfixModifierPosition:
|
|
520
|
+
maybePostfixModifierPosition: h
|
|
521
521
|
};
|
|
522
522
|
};
|
|
523
523
|
if (t) {
|
|
@@ -566,27 +566,27 @@ const kr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ar = go, s
|
|
|
566
566
|
const d = i[u], {
|
|
567
567
|
isExternal: l,
|
|
568
568
|
modifiers: f,
|
|
569
|
-
hasImportantModifier:
|
|
570
|
-
baseClassName:
|
|
569
|
+
hasImportantModifier: h,
|
|
570
|
+
baseClassName: v,
|
|
571
571
|
maybePostfixModifierPosition: g
|
|
572
572
|
} = n(d);
|
|
573
573
|
if (l) {
|
|
574
574
|
c = d + (c.length > 0 ? " " + c : c);
|
|
575
575
|
continue;
|
|
576
576
|
}
|
|
577
|
-
let b = !!g, x = r(b ?
|
|
577
|
+
let b = !!g, x = r(b ? v.substring(0, g) : v);
|
|
578
578
|
if (!x) {
|
|
579
579
|
if (!b) {
|
|
580
580
|
c = d + (c.length > 0 ? " " + c : c);
|
|
581
581
|
continue;
|
|
582
582
|
}
|
|
583
|
-
if (x = r(
|
|
583
|
+
if (x = r(v), !x) {
|
|
584
584
|
c = d + (c.length > 0 ? " " + c : c);
|
|
585
585
|
continue;
|
|
586
586
|
}
|
|
587
587
|
b = !1;
|
|
588
588
|
}
|
|
589
|
-
const E = s(f).join(":"), w =
|
|
589
|
+
const E = s(f).join(":"), w = h ? E + Fn : E, C = w + x;
|
|
590
590
|
if (a.includes(C))
|
|
591
591
|
continue;
|
|
592
592
|
a.push(C);
|
|
@@ -638,14 +638,14 @@ const oe = (e) => {
|
|
|
638
638
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
639
639
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
640
640
|
Si.test(e) && !Ei.test(e)
|
|
641
|
-
), yo = () => !1, Mi = (e) => Ri.test(e), Ni = (e) => Pi.test(e), _i = (e) => !O(e) && !
|
|
641
|
+
), yo = () => !1, Mi = (e) => Ri.test(e), Ni = (e) => Pi.test(e), _i = (e) => !O(e) && !D(e), Ii = (e) => lt(e, So, yo), O = (e) => bo.test(e), We = (e) => lt(e, Eo, Ai), Cn = (e) => lt(e, ji, X), _r = (e) => lt(e, wo, yo), Ti = (e) => lt(e, Co, Ni), jt = (e) => lt(e, Ro, Mi), D = (e) => xo.test(e), xt = (e) => ut(e, Eo), Oi = (e) => ut(e, Li), Ir = (e) => ut(e, wo), Di = (e) => ut(e, So), zi = (e) => ut(e, Co), Lt = (e) => ut(e, Ro, !0), lt = (e, t, n) => {
|
|
642
642
|
const r = bo.exec(e);
|
|
643
643
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
644
644
|
}, ut = (e, t, n = !1) => {
|
|
645
645
|
const r = xo.exec(e);
|
|
646
646
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
647
647
|
}, wo = (e) => e === "position" || e === "percentage", Co = (e) => e === "image" || e === "url", So = (e) => e === "length" || e === "size" || e === "bg-size", Eo = (e) => e === "length", ji = (e) => e === "number", Li = (e) => e === "family-name", Ro = (e) => e === "shadow", Fi = () => {
|
|
648
|
-
const e = oe("color"), t = oe("font"), n = oe("text"), r = oe("font-weight"), o = oe("tracking"), s = oe("leading"), a = oe("breakpoint"), i = oe("container"), c = oe("spacing"), u = oe("radius"), d = oe("shadow"), l = oe("inset-shadow"), f = oe("text-shadow"),
|
|
648
|
+
const e = oe("color"), t = oe("font"), n = oe("text"), r = oe("font-weight"), o = oe("tracking"), s = oe("leading"), a = oe("breakpoint"), i = oe("container"), c = oe("spacing"), u = oe("radius"), d = oe("shadow"), l = oe("inset-shadow"), f = oe("text-shadow"), h = oe("drop-shadow"), v = oe("blur"), g = oe("perspective"), b = oe("aspect"), x = oe("ease"), E = oe("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
649
649
|
"center",
|
|
650
650
|
"top",
|
|
651
651
|
"bottom",
|
|
@@ -663,30 +663,30 @@ const oe = (e) => {
|
|
|
663
663
|
"bottom-left",
|
|
664
664
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
665
665
|
"left-bottom"
|
|
666
|
-
], M = () => [...C(),
|
|
667
|
-
span: ["full", Te,
|
|
668
|
-
}, Te,
|
|
669
|
-
position: [
|
|
666
|
+
], M = () => [...C(), D, O], N = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], R = () => [D, O, c], G = () => [Ze, "full", "auto", ...R()], H = () => [Te, "none", "subgrid", D, O], V = () => ["auto", {
|
|
667
|
+
span: ["full", Te, D, O]
|
|
668
|
+
}, Te, D, O], $ = () => [Te, "auto", D, O], q = () => ["auto", "min", "max", "fr", D, O], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], F = () => ["auto", ...R()], Z = () => [Ze, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], A = () => [e, D, O], I = () => [...C(), Ir, _r, {
|
|
669
|
+
position: [D, O]
|
|
670
670
|
}], y = () => ["no-repeat", {
|
|
671
671
|
repeat: ["", "x", "y", "space", "round"]
|
|
672
|
-
}], j = () => ["auto", "cover", "contain",
|
|
673
|
-
size: [
|
|
672
|
+
}], j = () => ["auto", "cover", "contain", Di, Ii, {
|
|
673
|
+
size: [D, O]
|
|
674
674
|
}], U = () => [wn, xt, We], P = () => [
|
|
675
675
|
// Deprecated since Tailwind CSS v4.0.0
|
|
676
676
|
"",
|
|
677
677
|
"none",
|
|
678
678
|
"full",
|
|
679
679
|
u,
|
|
680
|
-
|
|
680
|
+
D,
|
|
681
681
|
O
|
|
682
|
-
], _ = () => ["", X, xt, We],
|
|
682
|
+
], _ = () => ["", X, xt, We], z = () => ["solid", "dashed", "dotted", "double"], L = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], k = () => [X, wn, Ir, _r], T = () => [
|
|
683
683
|
// Deprecated since Tailwind CSS v4.0.0
|
|
684
684
|
"",
|
|
685
685
|
"none",
|
|
686
|
-
|
|
687
|
-
|
|
686
|
+
v,
|
|
687
|
+
D,
|
|
688
688
|
O
|
|
689
|
-
], K = () => ["none", X,
|
|
689
|
+
], K = () => ["none", X, D, O], ee = () => ["none", X, D, O], se = () => [X, D, O], ae = () => [Ze, "full", ...R()];
|
|
690
690
|
return {
|
|
691
691
|
cacheSize: 500,
|
|
692
692
|
theme: {
|
|
@@ -719,7 +719,7 @@ const oe = (e) => {
|
|
|
719
719
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
720
720
|
*/
|
|
721
721
|
aspect: [{
|
|
722
|
-
aspect: ["auto", "square", Ze, O,
|
|
722
|
+
aspect: ["auto", "square", Ze, O, D, b]
|
|
723
723
|
}],
|
|
724
724
|
/**
|
|
725
725
|
* Container
|
|
@@ -732,7 +732,7 @@ const oe = (e) => {
|
|
|
732
732
|
* @see https://tailwindcss.com/docs/columns
|
|
733
733
|
*/
|
|
734
734
|
columns: [{
|
|
735
|
-
columns: [X, O,
|
|
735
|
+
columns: [X, O, D, i]
|
|
736
736
|
}],
|
|
737
737
|
/**
|
|
738
738
|
* Break After
|
|
@@ -932,7 +932,7 @@ const oe = (e) => {
|
|
|
932
932
|
* @see https://tailwindcss.com/docs/z-index
|
|
933
933
|
*/
|
|
934
934
|
z: [{
|
|
935
|
-
z: [Te, "auto",
|
|
935
|
+
z: [Te, "auto", D, O]
|
|
936
936
|
}],
|
|
937
937
|
// ------------------------
|
|
938
938
|
// --- Flexbox and Grid ---
|
|
@@ -970,21 +970,21 @@ const oe = (e) => {
|
|
|
970
970
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
971
971
|
*/
|
|
972
972
|
grow: [{
|
|
973
|
-
grow: ["", X,
|
|
973
|
+
grow: ["", X, D, O]
|
|
974
974
|
}],
|
|
975
975
|
/**
|
|
976
976
|
* Flex Shrink
|
|
977
977
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
978
978
|
*/
|
|
979
979
|
shrink: [{
|
|
980
|
-
shrink: ["", X,
|
|
980
|
+
shrink: ["", X, D, O]
|
|
981
981
|
}],
|
|
982
982
|
/**
|
|
983
983
|
* Order
|
|
984
984
|
* @see https://tailwindcss.com/docs/order
|
|
985
985
|
*/
|
|
986
986
|
order: [{
|
|
987
|
-
order: [Te, "first", "last", "none",
|
|
987
|
+
order: [Te, "first", "last", "none", D, O]
|
|
988
988
|
}],
|
|
989
989
|
/**
|
|
990
990
|
* Grid Template Columns
|
|
@@ -1396,7 +1396,7 @@ const oe = (e) => {
|
|
|
1396
1396
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1397
1397
|
*/
|
|
1398
1398
|
"font-weight": [{
|
|
1399
|
-
font: [r,
|
|
1399
|
+
font: [r, D, Cn]
|
|
1400
1400
|
}],
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Font Stretch
|
|
@@ -1447,14 +1447,14 @@ const oe = (e) => {
|
|
|
1447
1447
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1448
1448
|
*/
|
|
1449
1449
|
tracking: [{
|
|
1450
|
-
tracking: [o,
|
|
1450
|
+
tracking: [o, D, O]
|
|
1451
1451
|
}],
|
|
1452
1452
|
/**
|
|
1453
1453
|
* Line Clamp
|
|
1454
1454
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1455
1455
|
*/
|
|
1456
1456
|
"line-clamp": [{
|
|
1457
|
-
"line-clamp": [X, "none",
|
|
1457
|
+
"line-clamp": [X, "none", D, Cn]
|
|
1458
1458
|
}],
|
|
1459
1459
|
/**
|
|
1460
1460
|
* Line Height
|
|
@@ -1472,7 +1472,7 @@ const oe = (e) => {
|
|
|
1472
1472
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1473
1473
|
*/
|
|
1474
1474
|
"list-image": [{
|
|
1475
|
-
"list-image": ["none",
|
|
1475
|
+
"list-image": ["none", D, O]
|
|
1476
1476
|
}],
|
|
1477
1477
|
/**
|
|
1478
1478
|
* List Style Position
|
|
@@ -1486,7 +1486,7 @@ const oe = (e) => {
|
|
|
1486
1486
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1487
1487
|
*/
|
|
1488
1488
|
"list-style-type": [{
|
|
1489
|
-
list: ["disc", "decimal", "none",
|
|
1489
|
+
list: ["disc", "decimal", "none", D, O]
|
|
1490
1490
|
}],
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Text Alignment
|
|
@@ -1520,14 +1520,14 @@ const oe = (e) => {
|
|
|
1520
1520
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1521
1521
|
*/
|
|
1522
1522
|
"text-decoration-style": [{
|
|
1523
|
-
decoration: [...
|
|
1523
|
+
decoration: [...z(), "wavy"]
|
|
1524
1524
|
}],
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Text Decoration Thickness
|
|
1527
1527
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1528
1528
|
*/
|
|
1529
1529
|
"text-decoration-thickness": [{
|
|
1530
|
-
decoration: [X, "from-font", "auto",
|
|
1530
|
+
decoration: [X, "from-font", "auto", D, We]
|
|
1531
1531
|
}],
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Text Decoration Color
|
|
@@ -1541,7 +1541,7 @@ const oe = (e) => {
|
|
|
1541
1541
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1542
1542
|
*/
|
|
1543
1543
|
"underline-offset": [{
|
|
1544
|
-
"underline-offset": [X, "auto",
|
|
1544
|
+
"underline-offset": [X, "auto", D, O]
|
|
1545
1545
|
}],
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Text Transform
|
|
@@ -1572,7 +1572,7 @@ const oe = (e) => {
|
|
|
1572
1572
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1573
1573
|
*/
|
|
1574
1574
|
"vertical-align": [{
|
|
1575
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1575
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", D, O]
|
|
1576
1576
|
}],
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Whitespace
|
|
@@ -1607,7 +1607,7 @@ const oe = (e) => {
|
|
|
1607
1607
|
* @see https://tailwindcss.com/docs/content
|
|
1608
1608
|
*/
|
|
1609
1609
|
content: [{
|
|
1610
|
-
content: ["none",
|
|
1610
|
+
content: ["none", D, O]
|
|
1611
1611
|
}],
|
|
1612
1612
|
// -------------------
|
|
1613
1613
|
// --- Backgrounds ---
|
|
@@ -1662,10 +1662,10 @@ const oe = (e) => {
|
|
|
1662
1662
|
bg: ["none", {
|
|
1663
1663
|
linear: [{
|
|
1664
1664
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1665
|
-
}, Te,
|
|
1666
|
-
radial: ["",
|
|
1667
|
-
conic: [Te,
|
|
1668
|
-
},
|
|
1665
|
+
}, Te, D, O],
|
|
1666
|
+
radial: ["", D, O],
|
|
1667
|
+
conic: [Te, D, O]
|
|
1668
|
+
}, zi, Ti]
|
|
1669
1669
|
}],
|
|
1670
1670
|
/**
|
|
1671
1671
|
* Background Color
|
|
@@ -1916,14 +1916,14 @@ const oe = (e) => {
|
|
|
1916
1916
|
* @see https://tailwindcss.com/docs/border-style
|
|
1917
1917
|
*/
|
|
1918
1918
|
"border-style": [{
|
|
1919
|
-
border: [...
|
|
1919
|
+
border: [...z(), "hidden", "none"]
|
|
1920
1920
|
}],
|
|
1921
1921
|
/**
|
|
1922
1922
|
* Divide Style
|
|
1923
1923
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1924
1924
|
*/
|
|
1925
1925
|
"divide-style": [{
|
|
1926
|
-
divide: [...
|
|
1926
|
+
divide: [...z(), "hidden", "none"]
|
|
1927
1927
|
}],
|
|
1928
1928
|
/**
|
|
1929
1929
|
* Border Color
|
|
@@ -2000,14 +2000,14 @@ const oe = (e) => {
|
|
|
2000
2000
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2001
2001
|
*/
|
|
2002
2002
|
"outline-style": [{
|
|
2003
|
-
outline: [...
|
|
2003
|
+
outline: [...z(), "none", "hidden"]
|
|
2004
2004
|
}],
|
|
2005
2005
|
/**
|
|
2006
2006
|
* Outline Offset
|
|
2007
2007
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2008
2008
|
*/
|
|
2009
2009
|
"outline-offset": [{
|
|
2010
|
-
"outline-offset": [X,
|
|
2010
|
+
"outline-offset": [X, D, O]
|
|
2011
2011
|
}],
|
|
2012
2012
|
/**
|
|
2013
2013
|
* Outline Width
|
|
@@ -2133,7 +2133,7 @@ const oe = (e) => {
|
|
|
2133
2133
|
* @see https://tailwindcss.com/docs/opacity
|
|
2134
2134
|
*/
|
|
2135
2135
|
opacity: [{
|
|
2136
|
-
opacity: [X,
|
|
2136
|
+
opacity: [X, D, O]
|
|
2137
2137
|
}],
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Mix Blend Mode
|
|
@@ -2255,7 +2255,7 @@ const oe = (e) => {
|
|
|
2255
2255
|
"mask-y-to": A()
|
|
2256
2256
|
}],
|
|
2257
2257
|
"mask-image-radial": [{
|
|
2258
|
-
"mask-radial": [
|
|
2258
|
+
"mask-radial": [D, O]
|
|
2259
2259
|
}],
|
|
2260
2260
|
"mask-image-radial-from-pos": [{
|
|
2261
2261
|
"mask-radial-from": k()
|
|
@@ -2343,7 +2343,7 @@ const oe = (e) => {
|
|
|
2343
2343
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2344
2344
|
*/
|
|
2345
2345
|
"mask-image": [{
|
|
2346
|
-
mask: ["none",
|
|
2346
|
+
mask: ["none", D, O]
|
|
2347
2347
|
}],
|
|
2348
2348
|
// ---------------
|
|
2349
2349
|
// --- Filters ---
|
|
@@ -2357,7 +2357,7 @@ const oe = (e) => {
|
|
|
2357
2357
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2358
2358
|
"",
|
|
2359
2359
|
"none",
|
|
2360
|
-
|
|
2360
|
+
D,
|
|
2361
2361
|
O
|
|
2362
2362
|
]
|
|
2363
2363
|
}],
|
|
@@ -2373,14 +2373,14 @@ const oe = (e) => {
|
|
|
2373
2373
|
* @see https://tailwindcss.com/docs/brightness
|
|
2374
2374
|
*/
|
|
2375
2375
|
brightness: [{
|
|
2376
|
-
brightness: [X,
|
|
2376
|
+
brightness: [X, D, O]
|
|
2377
2377
|
}],
|
|
2378
2378
|
/**
|
|
2379
2379
|
* Contrast
|
|
2380
2380
|
* @see https://tailwindcss.com/docs/contrast
|
|
2381
2381
|
*/
|
|
2382
2382
|
contrast: [{
|
|
2383
|
-
contrast: [X,
|
|
2383
|
+
contrast: [X, D, O]
|
|
2384
2384
|
}],
|
|
2385
2385
|
/**
|
|
2386
2386
|
* Drop Shadow
|
|
@@ -2391,7 +2391,7 @@ const oe = (e) => {
|
|
|
2391
2391
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2392
2392
|
"",
|
|
2393
2393
|
"none",
|
|
2394
|
-
|
|
2394
|
+
h,
|
|
2395
2395
|
Lt,
|
|
2396
2396
|
jt
|
|
2397
2397
|
]
|
|
@@ -2408,35 +2408,35 @@ const oe = (e) => {
|
|
|
2408
2408
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2409
2409
|
*/
|
|
2410
2410
|
grayscale: [{
|
|
2411
|
-
grayscale: ["", X,
|
|
2411
|
+
grayscale: ["", X, D, O]
|
|
2412
2412
|
}],
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Hue Rotate
|
|
2415
2415
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2416
2416
|
*/
|
|
2417
2417
|
"hue-rotate": [{
|
|
2418
|
-
"hue-rotate": [X,
|
|
2418
|
+
"hue-rotate": [X, D, O]
|
|
2419
2419
|
}],
|
|
2420
2420
|
/**
|
|
2421
2421
|
* Invert
|
|
2422
2422
|
* @see https://tailwindcss.com/docs/invert
|
|
2423
2423
|
*/
|
|
2424
2424
|
invert: [{
|
|
2425
|
-
invert: ["", X,
|
|
2425
|
+
invert: ["", X, D, O]
|
|
2426
2426
|
}],
|
|
2427
2427
|
/**
|
|
2428
2428
|
* Saturate
|
|
2429
2429
|
* @see https://tailwindcss.com/docs/saturate
|
|
2430
2430
|
*/
|
|
2431
2431
|
saturate: [{
|
|
2432
|
-
saturate: [X,
|
|
2432
|
+
saturate: [X, D, O]
|
|
2433
2433
|
}],
|
|
2434
2434
|
/**
|
|
2435
2435
|
* Sepia
|
|
2436
2436
|
* @see https://tailwindcss.com/docs/sepia
|
|
2437
2437
|
*/
|
|
2438
2438
|
sepia: [{
|
|
2439
|
-
sepia: ["", X,
|
|
2439
|
+
sepia: ["", X, D, O]
|
|
2440
2440
|
}],
|
|
2441
2441
|
/**
|
|
2442
2442
|
* Backdrop Filter
|
|
@@ -2447,7 +2447,7 @@ const oe = (e) => {
|
|
|
2447
2447
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2448
2448
|
"",
|
|
2449
2449
|
"none",
|
|
2450
|
-
|
|
2450
|
+
D,
|
|
2451
2451
|
O
|
|
2452
2452
|
]
|
|
2453
2453
|
}],
|
|
@@ -2463,56 +2463,56 @@ const oe = (e) => {
|
|
|
2463
2463
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2464
2464
|
*/
|
|
2465
2465
|
"backdrop-brightness": [{
|
|
2466
|
-
"backdrop-brightness": [X,
|
|
2466
|
+
"backdrop-brightness": [X, D, O]
|
|
2467
2467
|
}],
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Backdrop Contrast
|
|
2470
2470
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2471
2471
|
*/
|
|
2472
2472
|
"backdrop-contrast": [{
|
|
2473
|
-
"backdrop-contrast": [X,
|
|
2473
|
+
"backdrop-contrast": [X, D, O]
|
|
2474
2474
|
}],
|
|
2475
2475
|
/**
|
|
2476
2476
|
* Backdrop Grayscale
|
|
2477
2477
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2478
2478
|
*/
|
|
2479
2479
|
"backdrop-grayscale": [{
|
|
2480
|
-
"backdrop-grayscale": ["", X,
|
|
2480
|
+
"backdrop-grayscale": ["", X, D, O]
|
|
2481
2481
|
}],
|
|
2482
2482
|
/**
|
|
2483
2483
|
* Backdrop Hue Rotate
|
|
2484
2484
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2485
2485
|
*/
|
|
2486
2486
|
"backdrop-hue-rotate": [{
|
|
2487
|
-
"backdrop-hue-rotate": [X,
|
|
2487
|
+
"backdrop-hue-rotate": [X, D, O]
|
|
2488
2488
|
}],
|
|
2489
2489
|
/**
|
|
2490
2490
|
* Backdrop Invert
|
|
2491
2491
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2492
2492
|
*/
|
|
2493
2493
|
"backdrop-invert": [{
|
|
2494
|
-
"backdrop-invert": ["", X,
|
|
2494
|
+
"backdrop-invert": ["", X, D, O]
|
|
2495
2495
|
}],
|
|
2496
2496
|
/**
|
|
2497
2497
|
* Backdrop Opacity
|
|
2498
2498
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2499
2499
|
*/
|
|
2500
2500
|
"backdrop-opacity": [{
|
|
2501
|
-
"backdrop-opacity": [X,
|
|
2501
|
+
"backdrop-opacity": [X, D, O]
|
|
2502
2502
|
}],
|
|
2503
2503
|
/**
|
|
2504
2504
|
* Backdrop Saturate
|
|
2505
2505
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2506
2506
|
*/
|
|
2507
2507
|
"backdrop-saturate": [{
|
|
2508
|
-
"backdrop-saturate": [X,
|
|
2508
|
+
"backdrop-saturate": [X, D, O]
|
|
2509
2509
|
}],
|
|
2510
2510
|
/**
|
|
2511
2511
|
* Backdrop Sepia
|
|
2512
2512
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2513
2513
|
*/
|
|
2514
2514
|
"backdrop-sepia": [{
|
|
2515
|
-
"backdrop-sepia": ["", X,
|
|
2515
|
+
"backdrop-sepia": ["", X, D, O]
|
|
2516
2516
|
}],
|
|
2517
2517
|
// --------------
|
|
2518
2518
|
// --- Tables ---
|
|
@@ -2567,7 +2567,7 @@ const oe = (e) => {
|
|
|
2567
2567
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2568
2568
|
*/
|
|
2569
2569
|
transition: [{
|
|
2570
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2570
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", D, O]
|
|
2571
2571
|
}],
|
|
2572
2572
|
/**
|
|
2573
2573
|
* Transition Behavior
|
|
@@ -2581,28 +2581,28 @@ const oe = (e) => {
|
|
|
2581
2581
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2582
2582
|
*/
|
|
2583
2583
|
duration: [{
|
|
2584
|
-
duration: [X, "initial",
|
|
2584
|
+
duration: [X, "initial", D, O]
|
|
2585
2585
|
}],
|
|
2586
2586
|
/**
|
|
2587
2587
|
* Transition Timing Function
|
|
2588
2588
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2589
2589
|
*/
|
|
2590
2590
|
ease: [{
|
|
2591
|
-
ease: ["linear", "initial", x,
|
|
2591
|
+
ease: ["linear", "initial", x, D, O]
|
|
2592
2592
|
}],
|
|
2593
2593
|
/**
|
|
2594
2594
|
* Transition Delay
|
|
2595
2595
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2596
2596
|
*/
|
|
2597
2597
|
delay: [{
|
|
2598
|
-
delay: [X,
|
|
2598
|
+
delay: [X, D, O]
|
|
2599
2599
|
}],
|
|
2600
2600
|
/**
|
|
2601
2601
|
* Animation
|
|
2602
2602
|
* @see https://tailwindcss.com/docs/animation
|
|
2603
2603
|
*/
|
|
2604
2604
|
animate: [{
|
|
2605
|
-
animate: ["none", E,
|
|
2605
|
+
animate: ["none", E, D, O]
|
|
2606
2606
|
}],
|
|
2607
2607
|
// ------------------
|
|
2608
2608
|
// --- Transforms ---
|
|
@@ -2619,7 +2619,7 @@ const oe = (e) => {
|
|
|
2619
2619
|
* @see https://tailwindcss.com/docs/perspective
|
|
2620
2620
|
*/
|
|
2621
2621
|
perspective: [{
|
|
2622
|
-
perspective: [g,
|
|
2622
|
+
perspective: [g, D, O]
|
|
2623
2623
|
}],
|
|
2624
2624
|
/**
|
|
2625
2625
|
* Perspective Origin
|
|
@@ -2715,7 +2715,7 @@ const oe = (e) => {
|
|
|
2715
2715
|
* @see https://tailwindcss.com/docs/transform
|
|
2716
2716
|
*/
|
|
2717
2717
|
transform: [{
|
|
2718
|
-
transform: [
|
|
2718
|
+
transform: [D, O, "", "none", "gpu", "cpu"]
|
|
2719
2719
|
}],
|
|
2720
2720
|
/**
|
|
2721
2721
|
* Transform Origin
|
|
@@ -2800,7 +2800,7 @@ const oe = (e) => {
|
|
|
2800
2800
|
* @see https://tailwindcss.com/docs/cursor
|
|
2801
2801
|
*/
|
|
2802
2802
|
cursor: [{
|
|
2803
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2803
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", D, O]
|
|
2804
2804
|
}],
|
|
2805
2805
|
/**
|
|
2806
2806
|
* Field Sizing
|
|
@@ -3022,7 +3022,7 @@ const oe = (e) => {
|
|
|
3022
3022
|
* @see https://tailwindcss.com/docs/will-change
|
|
3023
3023
|
*/
|
|
3024
3024
|
"will-change": [{
|
|
3025
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3025
|
+
"will-change": ["auto", "scroll", "contents", "transform", D, O]
|
|
3026
3026
|
}],
|
|
3027
3027
|
// -----------
|
|
3028
3028
|
// --- SVG ---
|
|
@@ -3207,13 +3207,13 @@ function dt(e, t = []) {
|
|
|
3207
3207
|
const i = p.createContext(a), c = n.length;
|
|
3208
3208
|
n = [...n, a];
|
|
3209
3209
|
const u = (l) => {
|
|
3210
|
-
const { scope: f, children:
|
|
3211
|
-
return /* @__PURE__ */ m.jsx(g.Provider, { value: b, children:
|
|
3210
|
+
const { scope: f, children: h, ...v } = l, g = f?.[e]?.[c] || i, b = p.useMemo(() => v, Object.values(v));
|
|
3211
|
+
return /* @__PURE__ */ m.jsx(g.Provider, { value: b, children: h });
|
|
3212
3212
|
};
|
|
3213
3213
|
u.displayName = s + "Provider";
|
|
3214
3214
|
function d(l, f) {
|
|
3215
|
-
const
|
|
3216
|
-
if (
|
|
3215
|
+
const h = f?.[e]?.[c] || i, v = p.useContext(h);
|
|
3216
|
+
if (v) return v;
|
|
3217
3217
|
if (a !== void 0) return a;
|
|
3218
3218
|
throw new Error(`\`${l}\` must be used within \`${s}\``);
|
|
3219
3219
|
}
|
|
@@ -3265,14 +3265,14 @@ function Po(e) {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
);
|
|
3267
3267
|
u.displayName = i;
|
|
3268
|
-
const d = e + "CollectionItemSlot", l = "data-radix-collection-item", f = /* @__PURE__ */ St(d),
|
|
3268
|
+
const d = e + "CollectionItemSlot", l = "data-radix-collection-item", f = /* @__PURE__ */ St(d), h = ve.forwardRef(
|
|
3269
3269
|
(g, b) => {
|
|
3270
3270
|
const { scope: x, children: E, ...w } = g, C = ve.useRef(null), M = de(b, C), N = s(d, x);
|
|
3271
3271
|
return ve.useEffect(() => (N.itemMap.set(C, { ref: C, ...w }), () => void N.itemMap.delete(C))), /* @__PURE__ */ m.jsx(f, { [l]: "", ref: M, children: E });
|
|
3272
3272
|
}
|
|
3273
3273
|
);
|
|
3274
|
-
|
|
3275
|
-
function
|
|
3274
|
+
h.displayName = d;
|
|
3275
|
+
function v(g) {
|
|
3276
3276
|
const b = s(e + "CollectionConsumer", g);
|
|
3277
3277
|
return ve.useCallback(() => {
|
|
3278
3278
|
const E = b.collectionRef.current;
|
|
@@ -3284,8 +3284,8 @@ function Po(e) {
|
|
|
3284
3284
|
}, [b.collectionRef, b.itemMap]);
|
|
3285
3285
|
}
|
|
3286
3286
|
return [
|
|
3287
|
-
{ Provider: a, Slot: u, ItemSlot:
|
|
3288
|
-
|
|
3287
|
+
{ Provider: a, Slot: u, ItemSlot: h },
|
|
3288
|
+
v,
|
|
3289
3289
|
r
|
|
3290
3290
|
];
|
|
3291
3291
|
}
|
|
@@ -3403,7 +3403,7 @@ var oc = p.forwardRef((e, t) => {
|
|
|
3403
3403
|
onEntryFocus: u,
|
|
3404
3404
|
preventScrollOnEntryFocus: d = !1,
|
|
3405
3405
|
...l
|
|
3406
|
-
} = e, f = p.useRef(null),
|
|
3406
|
+
} = e, f = p.useRef(null), h = de(t, f), v = Zn(s), [g, b] = an({
|
|
3407
3407
|
prop: a,
|
|
3408
3408
|
defaultProp: i ?? null,
|
|
3409
3409
|
onChange: c,
|
|
@@ -3418,7 +3418,7 @@ var oc = p.forwardRef((e, t) => {
|
|
|
3418
3418
|
{
|
|
3419
3419
|
scope: n,
|
|
3420
3420
|
orientation: r,
|
|
3421
|
-
dir:
|
|
3421
|
+
dir: v,
|
|
3422
3422
|
loop: o,
|
|
3423
3423
|
currentTabStopId: g,
|
|
3424
3424
|
onItemFocus: p.useCallback(
|
|
@@ -3440,7 +3440,7 @@ var oc = p.forwardRef((e, t) => {
|
|
|
3440
3440
|
tabIndex: x || N === 0 ? -1 : 0,
|
|
3441
3441
|
"data-orientation": r,
|
|
3442
3442
|
...l,
|
|
3443
|
-
ref:
|
|
3443
|
+
ref: h,
|
|
3444
3444
|
style: { outline: "none", ...e.style },
|
|
3445
3445
|
onMouseDown: J(e.onMouseDown, () => {
|
|
3446
3446
|
M.current = !0;
|
|
@@ -3472,11 +3472,11 @@ var oc = p.forwardRef((e, t) => {
|
|
|
3472
3472
|
tabStopId: s,
|
|
3473
3473
|
children: a,
|
|
3474
3474
|
...i
|
|
3475
|
-
} = e, c = it(), u = s || c, d = rc(No, n), l = d.currentTabStopId === u, f = Ao(n), { onFocusableItemAdd:
|
|
3475
|
+
} = e, c = it(), u = s || c, d = rc(No, n), l = d.currentTabStopId === u, f = Ao(n), { onFocusableItemAdd: h, onFocusableItemRemove: v, currentTabStopId: g } = d;
|
|
3476
3476
|
return p.useEffect(() => {
|
|
3477
3477
|
if (r)
|
|
3478
|
-
return
|
|
3479
|
-
}, [r,
|
|
3478
|
+
return h(), () => v();
|
|
3479
|
+
}, [r, h, v]), /* @__PURE__ */ m.jsx(
|
|
3480
3480
|
Bn.ItemSlot,
|
|
3481
3481
|
{
|
|
3482
3482
|
scope: n,
|
|
@@ -3577,22 +3577,22 @@ function uc(e) {
|
|
|
3577
3577
|
}, [i]), Fe(() => {
|
|
3578
3578
|
const u = r.current, d = o.current;
|
|
3579
3579
|
if (d !== e) {
|
|
3580
|
-
const f = s.current,
|
|
3581
|
-
e ? c("MOUNT") :
|
|
3580
|
+
const f = s.current, h = Ft(u);
|
|
3581
|
+
e ? c("MOUNT") : h === "none" || u?.display === "none" ? c("UNMOUNT") : c(d && f !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
3582
3582
|
}
|
|
3583
3583
|
}, [e, c]), Fe(() => {
|
|
3584
3584
|
if (t) {
|
|
3585
3585
|
let u;
|
|
3586
|
-
const d = t.ownerDocument.defaultView ?? window, l = (
|
|
3587
|
-
const g = Ft(r.current).includes(
|
|
3588
|
-
if (
|
|
3586
|
+
const d = t.ownerDocument.defaultView ?? window, l = (h) => {
|
|
3587
|
+
const g = Ft(r.current).includes(h.animationName);
|
|
3588
|
+
if (h.target === t && g && (c("ANIMATION_END"), !o.current)) {
|
|
3589
3589
|
const b = t.style.animationFillMode;
|
|
3590
3590
|
t.style.animationFillMode = "forwards", u = d.setTimeout(() => {
|
|
3591
3591
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = b);
|
|
3592
3592
|
});
|
|
3593
3593
|
}
|
|
3594
|
-
}, f = (
|
|
3595
|
-
|
|
3594
|
+
}, f = (h) => {
|
|
3595
|
+
h.target === t && (s.current = Ft(r.current));
|
|
3596
3596
|
};
|
|
3597
3597
|
return t.addEventListener("animationstart", f), t.addEventListener("animationcancel", l), t.addEventListener("animationend", l), () => {
|
|
3598
3598
|
d.clearTimeout(u), t.removeEventListener("animationstart", f), t.removeEventListener("animationcancel", l), t.removeEventListener("animationend", l);
|
|
@@ -3613,9 +3613,9 @@ function dc(e) {
|
|
|
3613
3613
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3614
3614
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3615
3615
|
}
|
|
3616
|
-
var ln = "Tabs", [fc,
|
|
3616
|
+
var ln = "Tabs", [fc, lp] = dt(ln, [
|
|
3617
3617
|
cn
|
|
3618
|
-
]),
|
|
3618
|
+
]), Do = cn(), [pc, Jn] = fc(ln), zo = p.forwardRef(
|
|
3619
3619
|
(e, t) => {
|
|
3620
3620
|
const {
|
|
3621
3621
|
__scopeTabs: n,
|
|
@@ -3655,10 +3655,10 @@ var ln = "Tabs", [fc, cp] = dt(ln, [
|
|
|
3655
3655
|
);
|
|
3656
3656
|
}
|
|
3657
3657
|
);
|
|
3658
|
-
|
|
3658
|
+
zo.displayName = ln;
|
|
3659
3659
|
var jo = "TabsList", Lo = p.forwardRef(
|
|
3660
3660
|
(e, t) => {
|
|
3661
|
-
const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Jn(jo, n), a =
|
|
3661
|
+
const { __scopeTabs: n, loop: r = !0, ...o } = e, s = Jn(jo, n), a = Do(n);
|
|
3662
3662
|
return /* @__PURE__ */ m.jsx(
|
|
3663
3663
|
To,
|
|
3664
3664
|
{
|
|
@@ -3683,7 +3683,7 @@ var jo = "TabsList", Lo = p.forwardRef(
|
|
|
3683
3683
|
Lo.displayName = jo;
|
|
3684
3684
|
var Fo = "TabsTrigger", $o = p.forwardRef(
|
|
3685
3685
|
(e, t) => {
|
|
3686
|
-
const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, a = Jn(Fo, n), i =
|
|
3686
|
+
const { __scopeTabs: n, value: r, disabled: o = !1, ...s } = e, a = Jn(Fo, n), i = Do(n), c = Ho(a.baseId, r), u = Wo(a.baseId, r), d = r === a.value;
|
|
3687
3687
|
return /* @__PURE__ */ m.jsx(
|
|
3688
3688
|
Oo,
|
|
3689
3689
|
{
|
|
@@ -3755,7 +3755,7 @@ function Ho(e, t) {
|
|
|
3755
3755
|
function Wo(e, t) {
|
|
3756
3756
|
return `${e}-content-${t}`;
|
|
3757
3757
|
}
|
|
3758
|
-
var mc =
|
|
3758
|
+
var mc = zo, gc = Lo, hc = $o, vc = Go;
|
|
3759
3759
|
const Qn = ({ className: e, ...t }) => /* @__PURE__ */ m.jsx(mc, { "data-slot": "tabs", className: Q("flex flex-col", e), ...t });
|
|
3760
3760
|
Qn.displayName = "Tabs";
|
|
3761
3761
|
const Vo = ({ className: e, ...t }) => /* @__PURE__ */ m.jsx(
|
|
@@ -3793,7 +3793,10 @@ const bc = {
|
|
|
3793
3793
|
outlined: "bg-transparent border-2 border-border",
|
|
3794
3794
|
filled: "bg-muted border border-transparent",
|
|
3795
3795
|
ghost: "bg-transparent border-transparent shadow-none"
|
|
3796
|
-
}, xc = ({
|
|
3796
|
+
}, xc = ({ label: e, value: t, highlighted: n }) => /* @__PURE__ */ m.jsxs("div", { className: "flex gap-4 items-start", children: [
|
|
3797
|
+
/* @__PURE__ */ m.jsx("div", { className: "flex items-center h-8 shrink-0", children: /* @__PURE__ */ m.jsx("span", { className: "text-sm font-medium text-foreground tracking-[-0.25px] w-24 truncate", children: e }) }),
|
|
3798
|
+
/* @__PURE__ */ m.jsx("div", { className: Q("flex-1 rounded-lg px-2 py-1 min-h-6", n && "bg-secondary"), children: /* @__PURE__ */ m.jsx("div", { className: "flex items-center min-h-6", children: typeof t == "string" ? /* @__PURE__ */ m.jsx("span", { className: "text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: t }) : t }) })
|
|
3799
|
+
] }), yc = ({
|
|
3797
3800
|
"data-testid": e,
|
|
3798
3801
|
title: t,
|
|
3799
3802
|
subtitle: n,
|
|
@@ -3807,26 +3810,23 @@ const bc = {
|
|
|
3807
3810
|
tabs: d
|
|
3808
3811
|
}) => {
|
|
3809
3812
|
const l = d && d.length > 0, f = Xn(() => {
|
|
3810
|
-
const
|
|
3813
|
+
const h = /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
3811
3814
|
l && /* @__PURE__ */ m.jsx(
|
|
3812
3815
|
Vo,
|
|
3813
3816
|
{
|
|
3814
3817
|
className: Q("bg-card border-b border-border px-1 pt-5", {
|
|
3815
3818
|
"bg-transparent": c === "ghost"
|
|
3816
3819
|
}),
|
|
3817
|
-
children: d?.map((
|
|
3820
|
+
children: d?.map((v) => /* @__PURE__ */ m.jsx(Uo, { value: v.label, "data-testid": v["data-testid"], children: v.label }, v.label))
|
|
3818
3821
|
}
|
|
3819
3822
|
),
|
|
3820
3823
|
/* @__PURE__ */ m.jsxs("div", { className: Q("flex flex-col gap-2 p-4", u), children: [
|
|
3821
|
-
r?.map((
|
|
3822
|
-
|
|
3823
|
-
/* @__PURE__ */ m.jsx("div", { className: Q("flex-1 rounded-lg px-2 py-1 min-h-6", h.highlighted && "bg-secondary"), children: /* @__PURE__ */ m.jsx("div", { className: "flex items-center min-h-6", children: typeof h.value == "string" ? /* @__PURE__ */ m.jsx("span", { className: "text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: h.value }) : h.value }) })
|
|
3824
|
-
] }, g)),
|
|
3825
|
-
l && d.map((h) => /* @__PURE__ */ m.jsx(Ko, { value: h.label, children: h.content }, h.label)),
|
|
3824
|
+
r?.map((v, g) => /* @__PURE__ */ m.jsx(xc, { ...v }, g)),
|
|
3825
|
+
l && d.map((v) => /* @__PURE__ */ m.jsx(Ko, { value: v.label, children: v.content }, v.label)),
|
|
3826
3826
|
a
|
|
3827
3827
|
] })
|
|
3828
3828
|
] });
|
|
3829
|
-
return l ? /* @__PURE__ */ m.jsx(Qn, { defaultValue: d?.[0]?.label, children:
|
|
3829
|
+
return l ? /* @__PURE__ */ m.jsx(Qn, { defaultValue: d?.[0]?.label, children: h }) : h;
|
|
3830
3830
|
}, [d, c, i, t, n, r, o, u, a, l]);
|
|
3831
3831
|
return /* @__PURE__ */ m.jsx(
|
|
3832
3832
|
"div",
|
|
@@ -3867,17 +3867,17 @@ const bc = {
|
|
|
3867
3867
|
children: t
|
|
3868
3868
|
}
|
|
3869
3869
|
),
|
|
3870
|
-
o && o.length > 0 && /* @__PURE__ */ m.jsx("div", { className: "flex items-center gap-1", children: o.map((
|
|
3870
|
+
o && o.length > 0 && /* @__PURE__ */ m.jsx("div", { className: "flex items-center gap-1", children: o.map((h, v) => /* @__PURE__ */ m.jsx(
|
|
3871
3871
|
Le,
|
|
3872
3872
|
{
|
|
3873
|
-
onClick:
|
|
3873
|
+
onClick: h.onClick,
|
|
3874
3874
|
variant: "ghost",
|
|
3875
|
-
className: Q(
|
|
3875
|
+
className: Q(h.active && "bg-muted-foreground/20 hover:bg-muted-foreground/30"),
|
|
3876
3876
|
size: "icon",
|
|
3877
|
-
"aria-label":
|
|
3878
|
-
children:
|
|
3877
|
+
"aria-label": h.label,
|
|
3878
|
+
children: h.icon
|
|
3879
3879
|
},
|
|
3880
|
-
|
|
3880
|
+
v
|
|
3881
3881
|
)) })
|
|
3882
3882
|
] }),
|
|
3883
3883
|
n && /* @__PURE__ */ m.jsx("p", { className: "text-sm font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: n })
|
|
@@ -3891,8 +3891,8 @@ const bc = {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
);
|
|
3893
3893
|
};
|
|
3894
|
-
|
|
3895
|
-
function
|
|
3894
|
+
yc.displayName = "Panel";
|
|
3895
|
+
function wc(e, t = globalThis?.document) {
|
|
3896
3896
|
const n = Se(e);
|
|
3897
3897
|
p.useEffect(() => {
|
|
3898
3898
|
const r = (o) => {
|
|
@@ -3901,7 +3901,7 @@ function yc(e, t = globalThis?.document) {
|
|
|
3901
3901
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3902
3902
|
}, [n, t]);
|
|
3903
3903
|
}
|
|
3904
|
-
var
|
|
3904
|
+
var Cc = "DismissableLayer", Gn = "dismissableLayer.update", Sc = "dismissableLayer.pointerDownOutside", Ec = "dismissableLayer.focusOutside", Tr, Yo = p.createContext({
|
|
3905
3905
|
layers: /* @__PURE__ */ new Set(),
|
|
3906
3906
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3907
3907
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3915,14 +3915,14 @@ var wc = "DismissableLayer", Gn = "dismissableLayer.update", Cc = "dismissableLa
|
|
|
3915
3915
|
onInteractOutside: a,
|
|
3916
3916
|
onDismiss: i,
|
|
3917
3917
|
...c
|
|
3918
|
-
} = e, u = p.useContext(Yo), [d, l] = p.useState(null), f = d?.ownerDocument ?? globalThis?.document, [,
|
|
3918
|
+
} = e, u = p.useContext(Yo), [d, l] = p.useState(null), f = d?.ownerDocument ?? globalThis?.document, [, h] = p.useState({}), v = de(t, (S) => l(S)), g = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = g.indexOf(b), E = d ? g.indexOf(d) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, C = E >= x, M = kc((S) => {
|
|
3919
3919
|
const R = S.target, G = [...u.branches].some((H) => H.contains(R));
|
|
3920
3920
|
!C || G || (o?.(S), a?.(S), S.defaultPrevented || i?.());
|
|
3921
|
-
}, f), N =
|
|
3921
|
+
}, f), N = Ac((S) => {
|
|
3922
3922
|
const R = S.target;
|
|
3923
3923
|
[...u.branches].some((H) => H.contains(R)) || (s?.(S), a?.(S), S.defaultPrevented || i?.());
|
|
3924
3924
|
}, f);
|
|
3925
|
-
return
|
|
3925
|
+
return wc((S) => {
|
|
3926
3926
|
E === u.layers.size - 1 && (r?.(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
|
|
3927
3927
|
}, f), p.useEffect(() => {
|
|
3928
3928
|
if (d)
|
|
@@ -3932,13 +3932,13 @@ var wc = "DismissableLayer", Gn = "dismissableLayer.update", Cc = "dismissableLa
|
|
|
3932
3932
|
}, [d, f, n, u]), p.useEffect(() => () => {
|
|
3933
3933
|
d && (u.layers.delete(d), u.layersWithOutsidePointerEventsDisabled.delete(d), Or());
|
|
3934
3934
|
}, [d, u]), p.useEffect(() => {
|
|
3935
|
-
const S = () =>
|
|
3935
|
+
const S = () => h({});
|
|
3936
3936
|
return document.addEventListener(Gn, S), () => document.removeEventListener(Gn, S);
|
|
3937
3937
|
}, []), /* @__PURE__ */ m.jsx(
|
|
3938
3938
|
re.div,
|
|
3939
3939
|
{
|
|
3940
3940
|
...c,
|
|
3941
|
-
ref:
|
|
3941
|
+
ref: v,
|
|
3942
3942
|
style: {
|
|
3943
3943
|
pointerEvents: w ? C ? "auto" : "none" : void 0,
|
|
3944
3944
|
...e.style
|
|
@@ -3953,8 +3953,8 @@ var wc = "DismissableLayer", Gn = "dismissableLayer.update", Cc = "dismissableLa
|
|
|
3953
3953
|
);
|
|
3954
3954
|
}
|
|
3955
3955
|
);
|
|
3956
|
-
Xo.displayName =
|
|
3957
|
-
var
|
|
3956
|
+
Xo.displayName = Cc;
|
|
3957
|
+
var Rc = "DismissableLayerBranch", Pc = p.forwardRef((e, t) => {
|
|
3958
3958
|
const n = p.useContext(Yo), r = p.useRef(null), o = de(t, r);
|
|
3959
3959
|
return p.useEffect(() => {
|
|
3960
3960
|
const s = r.current;
|
|
@@ -3964,8 +3964,8 @@ var Ec = "DismissableLayerBranch", Rc = p.forwardRef((e, t) => {
|
|
|
3964
3964
|
};
|
|
3965
3965
|
}, [n.branches]), /* @__PURE__ */ m.jsx(re.div, { ...e, ref: o });
|
|
3966
3966
|
});
|
|
3967
|
-
|
|
3968
|
-
function
|
|
3967
|
+
Pc.displayName = Rc;
|
|
3968
|
+
function kc(e, t = globalThis?.document) {
|
|
3969
3969
|
const n = Se(e), r = p.useRef(!1), o = p.useRef(() => {
|
|
3970
3970
|
});
|
|
3971
3971
|
return p.useEffect(() => {
|
|
@@ -3973,7 +3973,7 @@ function Pc(e, t = globalThis?.document) {
|
|
|
3973
3973
|
if (i.target && !r.current) {
|
|
3974
3974
|
let c = function() {
|
|
3975
3975
|
qo(
|
|
3976
|
-
|
|
3976
|
+
Sc,
|
|
3977
3977
|
n,
|
|
3978
3978
|
u,
|
|
3979
3979
|
{ discrete: !0 }
|
|
@@ -3995,11 +3995,11 @@ function Pc(e, t = globalThis?.document) {
|
|
|
3995
3995
|
onPointerDownCapture: () => r.current = !0
|
|
3996
3996
|
};
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3998
|
+
function Ac(e, t = globalThis?.document) {
|
|
3999
3999
|
const n = Se(e), r = p.useRef(!1);
|
|
4000
4000
|
return p.useEffect(() => {
|
|
4001
4001
|
const o = (s) => {
|
|
4002
|
-
s.target && !r.current && qo(
|
|
4002
|
+
s.target && !r.current && qo(Ec, n, { originalEvent: s }, {
|
|
4003
4003
|
discrete: !1
|
|
4004
4004
|
});
|
|
4005
4005
|
};
|
|
@@ -4018,26 +4018,26 @@ function qo(e, t, n, { discrete: r }) {
|
|
|
4018
4018
|
t && o.addEventListener(e, t, { once: !0 }), r ? ko(o, s) : o.dispatchEvent(s);
|
|
4019
4019
|
}
|
|
4020
4020
|
var En = 0;
|
|
4021
|
-
function
|
|
4021
|
+
function Mc() {
|
|
4022
4022
|
p.useEffect(() => {
|
|
4023
4023
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
4024
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
4024
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Dr()), document.body.insertAdjacentElement("beforeend", e[1] ?? Dr()), En++, () => {
|
|
4025
4025
|
En === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), En--;
|
|
4026
4026
|
};
|
|
4027
4027
|
}, []);
|
|
4028
4028
|
}
|
|
4029
|
-
function
|
|
4029
|
+
function Dr() {
|
|
4030
4030
|
const e = document.createElement("span");
|
|
4031
4031
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
4032
4032
|
}
|
|
4033
|
-
var Rn = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount",
|
|
4033
|
+
var Rn = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", zr = { bubbles: !1, cancelable: !0 }, Nc = "FocusScope", Zo = p.forwardRef((e, t) => {
|
|
4034
4034
|
const {
|
|
4035
4035
|
loop: n = !1,
|
|
4036
4036
|
trapped: r = !1,
|
|
4037
4037
|
onMountAutoFocus: o,
|
|
4038
4038
|
onUnmountAutoFocus: s,
|
|
4039
4039
|
...a
|
|
4040
|
-
} = e, [i, c] = p.useState(null), u = Se(o), d = Se(s), l = p.useRef(null), f = de(t, (g) => c(g)),
|
|
4040
|
+
} = e, [i, c] = p.useState(null), u = Se(o), d = Se(s), l = p.useRef(null), f = de(t, (g) => c(g)), h = p.useRef({
|
|
4041
4041
|
paused: !1,
|
|
4042
4042
|
pause() {
|
|
4043
4043
|
this.paused = !0;
|
|
@@ -4049,11 +4049,11 @@ var Rn = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", Dr
|
|
|
4049
4049
|
p.useEffect(() => {
|
|
4050
4050
|
if (r) {
|
|
4051
4051
|
let g = function(w) {
|
|
4052
|
-
if (
|
|
4052
|
+
if (h.paused || !i) return;
|
|
4053
4053
|
const C = w.target;
|
|
4054
4054
|
i.contains(C) ? l.current = C : Oe(l.current, { select: !0 });
|
|
4055
4055
|
}, b = function(w) {
|
|
4056
|
-
if (
|
|
4056
|
+
if (h.paused || !i) return;
|
|
4057
4057
|
const C = w.relatedTarget;
|
|
4058
4058
|
C !== null && (i.contains(C) || Oe(l.current, { select: !0 }));
|
|
4059
4059
|
}, x = function(w) {
|
|
@@ -4067,42 +4067,42 @@ var Rn = "focusScope.autoFocusOnMount", Pn = "focusScope.autoFocusOnUnmount", Dr
|
|
|
4067
4067
|
document.removeEventListener("focusin", g), document.removeEventListener("focusout", b), E.disconnect();
|
|
4068
4068
|
};
|
|
4069
4069
|
}
|
|
4070
|
-
}, [r, i,
|
|
4070
|
+
}, [r, i, h.paused]), p.useEffect(() => {
|
|
4071
4071
|
if (i) {
|
|
4072
|
-
Lr.add(
|
|
4072
|
+
Lr.add(h);
|
|
4073
4073
|
const g = document.activeElement;
|
|
4074
4074
|
if (!i.contains(g)) {
|
|
4075
|
-
const x = new CustomEvent(Rn,
|
|
4076
|
-
i.addEventListener(Rn, u), i.dispatchEvent(x), x.defaultPrevented || (
|
|
4075
|
+
const x = new CustomEvent(Rn, zr);
|
|
4076
|
+
i.addEventListener(Rn, u), i.dispatchEvent(x), x.defaultPrevented || (_c(zc(Jo(i)), { select: !0 }), document.activeElement === g && Oe(i));
|
|
4077
4077
|
}
|
|
4078
4078
|
return () => {
|
|
4079
4079
|
i.removeEventListener(Rn, u), setTimeout(() => {
|
|
4080
|
-
const x = new CustomEvent(Pn,
|
|
4081
|
-
i.addEventListener(Pn, d), i.dispatchEvent(x), x.defaultPrevented || Oe(g ?? document.body, { select: !0 }), i.removeEventListener(Pn, d), Lr.remove(
|
|
4080
|
+
const x = new CustomEvent(Pn, zr);
|
|
4081
|
+
i.addEventListener(Pn, d), i.dispatchEvent(x), x.defaultPrevented || Oe(g ?? document.body, { select: !0 }), i.removeEventListener(Pn, d), Lr.remove(h);
|
|
4082
4082
|
}, 0);
|
|
4083
4083
|
};
|
|
4084
4084
|
}
|
|
4085
|
-
}, [i, u, d,
|
|
4086
|
-
const
|
|
4085
|
+
}, [i, u, d, h]);
|
|
4086
|
+
const v = p.useCallback(
|
|
4087
4087
|
(g) => {
|
|
4088
|
-
if (!n && !r ||
|
|
4088
|
+
if (!n && !r || h.paused) return;
|
|
4089
4089
|
const b = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, x = document.activeElement;
|
|
4090
4090
|
if (b && x) {
|
|
4091
|
-
const E = g.currentTarget, [w, C] =
|
|
4091
|
+
const E = g.currentTarget, [w, C] = Ic(E);
|
|
4092
4092
|
w && C ? !g.shiftKey && x === C ? (g.preventDefault(), n && Oe(w, { select: !0 })) : g.shiftKey && x === w && (g.preventDefault(), n && Oe(C, { select: !0 })) : x === E && g.preventDefault();
|
|
4093
4093
|
}
|
|
4094
4094
|
},
|
|
4095
|
-
[n, r,
|
|
4095
|
+
[n, r, h.paused]
|
|
4096
4096
|
);
|
|
4097
|
-
return /* @__PURE__ */ m.jsx(re.div, { tabIndex: -1, ...a, ref: f, onKeyDown:
|
|
4097
|
+
return /* @__PURE__ */ m.jsx(re.div, { tabIndex: -1, ...a, ref: f, onKeyDown: v });
|
|
4098
4098
|
});
|
|
4099
|
-
Zo.displayName =
|
|
4100
|
-
function
|
|
4099
|
+
Zo.displayName = Nc;
|
|
4100
|
+
function _c(e, { select: t = !1 } = {}) {
|
|
4101
4101
|
const n = document.activeElement;
|
|
4102
4102
|
for (const r of e)
|
|
4103
4103
|
if (Oe(r, { select: t }), document.activeElement !== n) return;
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4105
|
+
function Ic(e) {
|
|
4106
4106
|
const t = Jo(e), n = jr(t, e), r = jr(t.reverse(), e);
|
|
4107
4107
|
return [n, r];
|
|
4108
4108
|
}
|
|
@@ -4118,9 +4118,9 @@ function Jo(e) {
|
|
|
4118
4118
|
}
|
|
4119
4119
|
function jr(e, t) {
|
|
4120
4120
|
for (const n of e)
|
|
4121
|
-
if (!
|
|
4121
|
+
if (!Tc(n, { upTo: t })) return n;
|
|
4122
4122
|
}
|
|
4123
|
-
function
|
|
4123
|
+
function Tc(e, { upTo: t }) {
|
|
4124
4124
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
4125
4125
|
for (; e; ) {
|
|
4126
4126
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -4129,17 +4129,17 @@ function Ic(e, { upTo: t }) {
|
|
|
4129
4129
|
}
|
|
4130
4130
|
return !1;
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function Oc(e) {
|
|
4133
4133
|
return e instanceof HTMLInputElement && "select" in e;
|
|
4134
4134
|
}
|
|
4135
4135
|
function Oe(e, { select: t = !1 } = {}) {
|
|
4136
4136
|
if (e && e.focus) {
|
|
4137
4137
|
const n = document.activeElement;
|
|
4138
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
4138
|
+
e.focus({ preventScroll: !0 }), e !== n && Oc(e) && t && e.select();
|
|
4139
4139
|
}
|
|
4140
4140
|
}
|
|
4141
|
-
var Lr =
|
|
4142
|
-
function
|
|
4141
|
+
var Lr = Dc();
|
|
4142
|
+
function Dc() {
|
|
4143
4143
|
let e = [];
|
|
4144
4144
|
return {
|
|
4145
4145
|
add(t) {
|
|
@@ -4158,15 +4158,15 @@ function Fr(e, t) {
|
|
|
4158
4158
|
function zc(e) {
|
|
4159
4159
|
return e.filter((t) => t.tagName !== "A");
|
|
4160
4160
|
}
|
|
4161
|
-
const
|
|
4161
|
+
const jc = ["top", "right", "bottom", "left"], $e = Math.min, pe = Math.max, qt = Math.round, $t = Math.floor, Ce = (e) => ({
|
|
4162
4162
|
x: e,
|
|
4163
4163
|
y: e
|
|
4164
|
-
}),
|
|
4164
|
+
}), Lc = {
|
|
4165
4165
|
left: "right",
|
|
4166
4166
|
right: "left",
|
|
4167
4167
|
bottom: "top",
|
|
4168
4168
|
top: "bottom"
|
|
4169
|
-
},
|
|
4169
|
+
}, Fc = {
|
|
4170
4170
|
start: "end",
|
|
4171
4171
|
end: "start"
|
|
4172
4172
|
};
|
|
@@ -4194,20 +4194,20 @@ function Be(e) {
|
|
|
4194
4194
|
function nr(e) {
|
|
4195
4195
|
return er(Be(e));
|
|
4196
4196
|
}
|
|
4197
|
-
function
|
|
4197
|
+
function $c(e, t, n) {
|
|
4198
4198
|
n === void 0 && (n = !1);
|
|
4199
4199
|
const r = pt(e), o = nr(e), s = tr(o);
|
|
4200
4200
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4201
4201
|
return t.reference[s] > t.floating[s] && (a = Zt(a)), [a, Zt(a)];
|
|
4202
4202
|
}
|
|
4203
|
-
function
|
|
4203
|
+
function Bc(e) {
|
|
4204
4204
|
const t = Zt(e);
|
|
4205
4205
|
return [Wn(e), t, Wn(t)];
|
|
4206
4206
|
}
|
|
4207
4207
|
function Wn(e) {
|
|
4208
|
-
return e.replace(/start|end/g, (t) =>
|
|
4208
|
+
return e.replace(/start|end/g, (t) => Fc[t]);
|
|
4209
4209
|
}
|
|
4210
|
-
function
|
|
4210
|
+
function Gc(e, t, n) {
|
|
4211
4211
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
4212
4212
|
switch (e) {
|
|
4213
4213
|
case "top":
|
|
@@ -4220,15 +4220,15 @@ function Bc(e, t, n) {
|
|
|
4220
4220
|
return [];
|
|
4221
4221
|
}
|
|
4222
4222
|
}
|
|
4223
|
-
function
|
|
4223
|
+
function Hc(e, t, n, r) {
|
|
4224
4224
|
const o = pt(e);
|
|
4225
|
-
let s =
|
|
4225
|
+
let s = Gc(_e(e), n === "start", r);
|
|
4226
4226
|
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Wn)))), s;
|
|
4227
4227
|
}
|
|
4228
4228
|
function Zt(e) {
|
|
4229
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4229
|
+
return e.replace(/left|right|bottom|top/g, (t) => Lc[t]);
|
|
4230
4230
|
}
|
|
4231
|
-
function
|
|
4231
|
+
function Wc(e) {
|
|
4232
4232
|
return {
|
|
4233
4233
|
top: 0,
|
|
4234
4234
|
right: 0,
|
|
@@ -4238,7 +4238,7 @@ function Hc(e) {
|
|
|
4238
4238
|
};
|
|
4239
4239
|
}
|
|
4240
4240
|
function Qo(e) {
|
|
4241
|
-
return typeof e != "number" ?
|
|
4241
|
+
return typeof e != "number" ? Wc(e) : {
|
|
4242
4242
|
top: e,
|
|
4243
4243
|
right: e,
|
|
4244
4244
|
bottom: e,
|
|
@@ -4269,49 +4269,49 @@ function $r(e, t, n) {
|
|
|
4269
4269
|
floating: o
|
|
4270
4270
|
} = e;
|
|
4271
4271
|
const s = Be(t), a = nr(t), i = tr(a), c = _e(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, l = r.y + r.height / 2 - o.height / 2, f = r[i] / 2 - o[i] / 2;
|
|
4272
|
-
let
|
|
4272
|
+
let h;
|
|
4273
4273
|
switch (c) {
|
|
4274
4274
|
case "top":
|
|
4275
|
-
|
|
4275
|
+
h = {
|
|
4276
4276
|
x: d,
|
|
4277
4277
|
y: r.y - o.height
|
|
4278
4278
|
};
|
|
4279
4279
|
break;
|
|
4280
4280
|
case "bottom":
|
|
4281
|
-
|
|
4281
|
+
h = {
|
|
4282
4282
|
x: d,
|
|
4283
4283
|
y: r.y + r.height
|
|
4284
4284
|
};
|
|
4285
4285
|
break;
|
|
4286
4286
|
case "right":
|
|
4287
|
-
|
|
4287
|
+
h = {
|
|
4288
4288
|
x: r.x + r.width,
|
|
4289
4289
|
y: l
|
|
4290
4290
|
};
|
|
4291
4291
|
break;
|
|
4292
4292
|
case "left":
|
|
4293
|
-
|
|
4293
|
+
h = {
|
|
4294
4294
|
x: r.x - o.width,
|
|
4295
4295
|
y: l
|
|
4296
4296
|
};
|
|
4297
4297
|
break;
|
|
4298
4298
|
default:
|
|
4299
|
-
|
|
4299
|
+
h = {
|
|
4300
4300
|
x: r.x,
|
|
4301
4301
|
y: r.y
|
|
4302
4302
|
};
|
|
4303
4303
|
}
|
|
4304
4304
|
switch (pt(t)) {
|
|
4305
4305
|
case "start":
|
|
4306
|
-
|
|
4306
|
+
h[a] -= f * (n && u ? -1 : 1);
|
|
4307
4307
|
break;
|
|
4308
4308
|
case "end":
|
|
4309
|
-
|
|
4309
|
+
h[a] += f * (n && u ? -1 : 1);
|
|
4310
4310
|
break;
|
|
4311
4311
|
}
|
|
4312
|
-
return
|
|
4312
|
+
return h;
|
|
4313
4313
|
}
|
|
4314
|
-
const
|
|
4314
|
+
const Vc = async (e, t, n) => {
|
|
4315
4315
|
const {
|
|
4316
4316
|
placement: r = "bottom",
|
|
4317
4317
|
strategy: o = "absolute",
|
|
@@ -4325,7 +4325,7 @@ const Wc = async (e, t, n) => {
|
|
|
4325
4325
|
}), {
|
|
4326
4326
|
x: d,
|
|
4327
4327
|
y: l
|
|
4328
|
-
} = $r(u, r, c), f = r,
|
|
4328
|
+
} = $r(u, r, c), f = r, h = {}, v = 0;
|
|
4329
4329
|
for (let g = 0; g < i.length; g++) {
|
|
4330
4330
|
const {
|
|
4331
4331
|
name: b,
|
|
@@ -4341,7 +4341,7 @@ const Wc = async (e, t, n) => {
|
|
|
4341
4341
|
initialPlacement: r,
|
|
4342
4342
|
placement: f,
|
|
4343
4343
|
strategy: o,
|
|
4344
|
-
middlewareData:
|
|
4344
|
+
middlewareData: h,
|
|
4345
4345
|
rects: u,
|
|
4346
4346
|
platform: a,
|
|
4347
4347
|
elements: {
|
|
@@ -4349,13 +4349,13 @@ const Wc = async (e, t, n) => {
|
|
|
4349
4349
|
floating: t
|
|
4350
4350
|
}
|
|
4351
4351
|
});
|
|
4352
|
-
d = E ?? d, l = w ?? l,
|
|
4353
|
-
...
|
|
4352
|
+
d = E ?? d, l = w ?? l, h = {
|
|
4353
|
+
...h,
|
|
4354
4354
|
[b]: {
|
|
4355
|
-
...
|
|
4355
|
+
...h[b],
|
|
4356
4356
|
...C
|
|
4357
4357
|
}
|
|
4358
|
-
}, M &&
|
|
4358
|
+
}, M && v <= 50 && (v++, typeof M == "object" && (M.placement && (f = M.placement), M.rects && (u = M.rects === !0 ? await a.getElementRects({
|
|
4359
4359
|
reference: e,
|
|
4360
4360
|
floating: t,
|
|
4361
4361
|
strategy: o
|
|
@@ -4369,7 +4369,7 @@ const Wc = async (e, t, n) => {
|
|
|
4369
4369
|
y: l,
|
|
4370
4370
|
placement: f,
|
|
4371
4371
|
strategy: o,
|
|
4372
|
-
middlewareData:
|
|
4372
|
+
middlewareData: h
|
|
4373
4373
|
};
|
|
4374
4374
|
};
|
|
4375
4375
|
async function Et(e, t) {
|
|
@@ -4387,8 +4387,8 @@ async function Et(e, t) {
|
|
|
4387
4387
|
rootBoundary: d = "viewport",
|
|
4388
4388
|
elementContext: l = "floating",
|
|
4389
4389
|
altBoundary: f = !1,
|
|
4390
|
-
padding:
|
|
4391
|
-
} = Ne(t, e),
|
|
4390
|
+
padding: h = 0
|
|
4391
|
+
} = Ne(t, e), v = Qo(h), b = i[f ? l === "floating" ? "reference" : "floating" : l], x = Jt(await s.getClippingRect({
|
|
4392
4392
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(b))) == null || n ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
4393
4393
|
boundary: u,
|
|
4394
4394
|
rootBoundary: d,
|
|
@@ -4411,13 +4411,13 @@ async function Et(e, t) {
|
|
|
4411
4411
|
strategy: c
|
|
4412
4412
|
}) : E);
|
|
4413
4413
|
return {
|
|
4414
|
-
top: (x.top - M.top +
|
|
4415
|
-
bottom: (M.bottom - x.bottom +
|
|
4416
|
-
left: (x.left - M.left +
|
|
4417
|
-
right: (M.right - x.right +
|
|
4414
|
+
top: (x.top - M.top + v.top) / C.y,
|
|
4415
|
+
bottom: (M.bottom - x.bottom + v.bottom) / C.y,
|
|
4416
|
+
left: (x.left - M.left + v.left) / C.x,
|
|
4417
|
+
right: (M.right - x.right + v.right) / C.x
|
|
4418
4418
|
};
|
|
4419
4419
|
}
|
|
4420
|
-
const
|
|
4420
|
+
const Uc = (e) => ({
|
|
4421
4421
|
name: "arrow",
|
|
4422
4422
|
options: e,
|
|
4423
4423
|
async fn(t) {
|
|
@@ -4438,14 +4438,14 @@ const Vc = (e) => ({
|
|
|
4438
4438
|
const l = Qo(d), f = {
|
|
4439
4439
|
x: n,
|
|
4440
4440
|
y: r
|
|
4441
|
-
},
|
|
4441
|
+
}, h = nr(o), v = tr(h), g = await a.getDimensions(u), b = h === "y", x = b ? "top" : "left", E = b ? "bottom" : "right", w = b ? "clientHeight" : "clientWidth", C = s.reference[v] + s.reference[h] - f[h] - s.floating[v], M = f[h] - s.reference[h], N = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u));
|
|
4442
4442
|
let S = N ? N[w] : 0;
|
|
4443
|
-
(!S || !await (a.isElement == null ? void 0 : a.isElement(N))) && (S = i.floating[w] || s.floating[
|
|
4444
|
-
const R = C / 2 - M / 2, G = S / 2 - g[
|
|
4443
|
+
(!S || !await (a.isElement == null ? void 0 : a.isElement(N))) && (S = i.floating[w] || s.floating[v]);
|
|
4444
|
+
const R = C / 2 - M / 2, G = S / 2 - g[v] / 2 - 1, H = $e(l[x], G), V = $e(l[E], G), $ = H, q = S - g[v] - V, B = S / 2 - g[v] / 2 + R, W = Hn($, B, q), F = !c.arrow && pt(o) != null && B !== W && s.reference[v] / 2 - (B < $ ? H : V) - g[v] / 2 < 0, Z = F ? B < $ ? B - $ : B - q : 0;
|
|
4445
4445
|
return {
|
|
4446
|
-
[
|
|
4446
|
+
[h]: f[h] + Z,
|
|
4447
4447
|
data: {
|
|
4448
|
-
[
|
|
4448
|
+
[h]: W,
|
|
4449
4449
|
centerOffset: B - W - Z,
|
|
4450
4450
|
...F && {
|
|
4451
4451
|
alignmentOffset: Z
|
|
@@ -4454,7 +4454,7 @@ const Vc = (e) => ({
|
|
|
4454
4454
|
reset: F
|
|
4455
4455
|
};
|
|
4456
4456
|
}
|
|
4457
|
-
}),
|
|
4457
|
+
}), Kc = function(e) {
|
|
4458
4458
|
return e === void 0 && (e = {}), {
|
|
4459
4459
|
name: "flip",
|
|
4460
4460
|
options: e,
|
|
@@ -4471,19 +4471,19 @@ const Vc = (e) => ({
|
|
|
4471
4471
|
mainAxis: d = !0,
|
|
4472
4472
|
crossAxis: l = !0,
|
|
4473
4473
|
fallbackPlacements: f,
|
|
4474
|
-
fallbackStrategy:
|
|
4475
|
-
fallbackAxisSideDirection:
|
|
4474
|
+
fallbackStrategy: h = "bestFit",
|
|
4475
|
+
fallbackAxisSideDirection: v = "none",
|
|
4476
4476
|
flipAlignment: g = !0,
|
|
4477
4477
|
...b
|
|
4478
4478
|
} = Ne(e, t);
|
|
4479
4479
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
4480
4480
|
return {};
|
|
4481
|
-
const x = _e(o), E = Be(i), w = _e(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), M = f || (w || !g ? [Zt(i)] :
|
|
4482
|
-
!f && N && M.push(...
|
|
4481
|
+
const x = _e(o), E = Be(i), w = _e(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), M = f || (w || !g ? [Zt(i)] : Bc(i)), N = v !== "none";
|
|
4482
|
+
!f && N && M.push(...Hc(i, g, v, C));
|
|
4483
4483
|
const S = [i, ...M], R = await Et(t, b), G = [];
|
|
4484
4484
|
let H = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
4485
4485
|
if (d && G.push(R[x]), l) {
|
|
4486
|
-
const B =
|
|
4486
|
+
const B = $c(o, a, C);
|
|
4487
4487
|
G.push(R[B[0]], R[B[1]]);
|
|
4488
4488
|
}
|
|
4489
4489
|
if (H = [...H, {
|
|
@@ -4504,7 +4504,7 @@ const Vc = (e) => ({
|
|
|
4504
4504
|
};
|
|
4505
4505
|
let F = ($ = H.filter((Z) => Z.overflows[0] <= 0).sort((Z, A) => Z.overflows[1] - A.overflows[1])[0]) == null ? void 0 : $.placement;
|
|
4506
4506
|
if (!F)
|
|
4507
|
-
switch (
|
|
4507
|
+
switch (h) {
|
|
4508
4508
|
case "bestFit": {
|
|
4509
4509
|
var q;
|
|
4510
4510
|
const Z = (q = H.filter((A) => {
|
|
@@ -4543,9 +4543,9 @@ function Br(e, t) {
|
|
|
4543
4543
|
};
|
|
4544
4544
|
}
|
|
4545
4545
|
function Gr(e) {
|
|
4546
|
-
return
|
|
4546
|
+
return jc.some((t) => e[t] >= 0);
|
|
4547
4547
|
}
|
|
4548
|
-
const
|
|
4548
|
+
const Yc = function(e) {
|
|
4549
4549
|
return e === void 0 && (e = {}), {
|
|
4550
4550
|
name: "hide",
|
|
4551
4551
|
options: e,
|
|
@@ -4587,7 +4587,7 @@ const Kc = function(e) {
|
|
|
4587
4587
|
}
|
|
4588
4588
|
};
|
|
4589
4589
|
};
|
|
4590
|
-
async function
|
|
4590
|
+
async function Xc(e, t) {
|
|
4591
4591
|
const {
|
|
4592
4592
|
placement: n,
|
|
4593
4593
|
platform: r,
|
|
@@ -4595,8 +4595,8 @@ async function Yc(e, t) {
|
|
|
4595
4595
|
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = _e(n), i = pt(n), c = Be(n) === "y", u = ["left", "top"].includes(a) ? -1 : 1, d = s && c ? -1 : 1, l = Ne(t, e);
|
|
4596
4596
|
let {
|
|
4597
4597
|
mainAxis: f,
|
|
4598
|
-
crossAxis:
|
|
4599
|
-
alignmentAxis:
|
|
4598
|
+
crossAxis: h,
|
|
4599
|
+
alignmentAxis: v
|
|
4600
4600
|
} = typeof l == "number" ? {
|
|
4601
4601
|
mainAxis: l,
|
|
4602
4602
|
crossAxis: 0,
|
|
@@ -4606,15 +4606,15 @@ async function Yc(e, t) {
|
|
|
4606
4606
|
crossAxis: l.crossAxis || 0,
|
|
4607
4607
|
alignmentAxis: l.alignmentAxis
|
|
4608
4608
|
};
|
|
4609
|
-
return i && typeof
|
|
4610
|
-
x:
|
|
4609
|
+
return i && typeof v == "number" && (h = i === "end" ? v * -1 : v), c ? {
|
|
4610
|
+
x: h * d,
|
|
4611
4611
|
y: f * u
|
|
4612
4612
|
} : {
|
|
4613
4613
|
x: f * u,
|
|
4614
|
-
y:
|
|
4614
|
+
y: h * d
|
|
4615
4615
|
};
|
|
4616
4616
|
}
|
|
4617
|
-
const
|
|
4617
|
+
const qc = function(e) {
|
|
4618
4618
|
return e === void 0 && (e = 0), {
|
|
4619
4619
|
name: "offset",
|
|
4620
4620
|
options: e,
|
|
@@ -4625,7 +4625,7 @@ const Xc = function(e) {
|
|
|
4625
4625
|
y: s,
|
|
4626
4626
|
placement: a,
|
|
4627
4627
|
middlewareData: i
|
|
4628
|
-
} = t, c = await
|
|
4628
|
+
} = t, c = await Xc(t, e);
|
|
4629
4629
|
return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
|
|
4630
4630
|
x: o + c.x,
|
|
4631
4631
|
y: s + c.y,
|
|
@@ -4636,7 +4636,7 @@ const Xc = function(e) {
|
|
|
4636
4636
|
};
|
|
4637
4637
|
}
|
|
4638
4638
|
};
|
|
4639
|
-
},
|
|
4639
|
+
}, Zc = function(e) {
|
|
4640
4640
|
return e === void 0 && (e = {}), {
|
|
4641
4641
|
name: "shift",
|
|
4642
4642
|
options: e,
|
|
@@ -4665,19 +4665,19 @@ const Xc = function(e) {
|
|
|
4665
4665
|
x: n,
|
|
4666
4666
|
y: r
|
|
4667
4667
|
}, d = await Et(t, c), l = Be(_e(o)), f = er(l);
|
|
4668
|
-
let
|
|
4668
|
+
let h = u[f], v = u[l];
|
|
4669
4669
|
if (s) {
|
|
4670
|
-
const b = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", E =
|
|
4671
|
-
|
|
4670
|
+
const b = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", E = h + d[b], w = h - d[x];
|
|
4671
|
+
h = Hn(E, h, w);
|
|
4672
4672
|
}
|
|
4673
4673
|
if (a) {
|
|
4674
|
-
const b = l === "y" ? "top" : "left", x = l === "y" ? "bottom" : "right", E =
|
|
4675
|
-
|
|
4674
|
+
const b = l === "y" ? "top" : "left", x = l === "y" ? "bottom" : "right", E = v + d[b], w = v - d[x];
|
|
4675
|
+
v = Hn(E, v, w);
|
|
4676
4676
|
}
|
|
4677
4677
|
const g = i.fn({
|
|
4678
4678
|
...t,
|
|
4679
|
-
[f]:
|
|
4680
|
-
[l]:
|
|
4679
|
+
[f]: h,
|
|
4680
|
+
[l]: v
|
|
4681
4681
|
});
|
|
4682
4682
|
return {
|
|
4683
4683
|
...g,
|
|
@@ -4692,7 +4692,7 @@ const Xc = function(e) {
|
|
|
4692
4692
|
};
|
|
4693
4693
|
}
|
|
4694
4694
|
};
|
|
4695
|
-
},
|
|
4695
|
+
}, Jc = function(e) {
|
|
4696
4696
|
return e === void 0 && (e = {}), {
|
|
4697
4697
|
options: e,
|
|
4698
4698
|
fn(t) {
|
|
@@ -4710,7 +4710,7 @@ const Xc = function(e) {
|
|
|
4710
4710
|
x: n,
|
|
4711
4711
|
y: r
|
|
4712
4712
|
}, l = Be(o), f = er(l);
|
|
4713
|
-
let
|
|
4713
|
+
let h = d[f], v = d[l];
|
|
4714
4714
|
const g = Ne(i, t), b = typeof g == "number" ? {
|
|
4715
4715
|
mainAxis: g,
|
|
4716
4716
|
crossAxis: 0
|
|
@@ -4721,20 +4721,20 @@ const Xc = function(e) {
|
|
|
4721
4721
|
};
|
|
4722
4722
|
if (c) {
|
|
4723
4723
|
const w = f === "y" ? "height" : "width", C = s.reference[f] - s.floating[w] + b.mainAxis, M = s.reference[f] + s.reference[w] - b.mainAxis;
|
|
4724
|
-
|
|
4724
|
+
h < C ? h = C : h > M && (h = M);
|
|
4725
4725
|
}
|
|
4726
4726
|
if (u) {
|
|
4727
4727
|
var x, E;
|
|
4728
4728
|
const w = f === "y" ? "width" : "height", C = ["top", "left"].includes(_e(o)), M = s.reference[l] - s.floating[w] + (C && ((x = a.offset) == null ? void 0 : x[l]) || 0) + (C ? 0 : b.crossAxis), N = s.reference[l] + s.reference[w] + (C ? 0 : ((E = a.offset) == null ? void 0 : E[l]) || 0) - (C ? b.crossAxis : 0);
|
|
4729
|
-
|
|
4729
|
+
v < M ? v = M : v > N && (v = N);
|
|
4730
4730
|
}
|
|
4731
4731
|
return {
|
|
4732
|
-
[f]:
|
|
4733
|
-
[l]:
|
|
4732
|
+
[f]: h,
|
|
4733
|
+
[l]: v
|
|
4734
4734
|
};
|
|
4735
4735
|
}
|
|
4736
4736
|
};
|
|
4737
|
-
},
|
|
4737
|
+
}, Qc = function(e) {
|
|
4738
4738
|
return e === void 0 && (e = {}), {
|
|
4739
4739
|
name: "size",
|
|
4740
4740
|
options: e,
|
|
@@ -4749,17 +4749,17 @@ const Xc = function(e) {
|
|
|
4749
4749
|
apply: c = () => {
|
|
4750
4750
|
},
|
|
4751
4751
|
...u
|
|
4752
|
-
} = Ne(e, t), d = await Et(t, u), l = _e(o), f = pt(o),
|
|
4753
|
-
width:
|
|
4752
|
+
} = Ne(e, t), d = await Et(t, u), l = _e(o), f = pt(o), h = Be(o) === "y", {
|
|
4753
|
+
width: v,
|
|
4754
4754
|
height: g
|
|
4755
4755
|
} = s.floating;
|
|
4756
4756
|
let b, x;
|
|
4757
4757
|
l === "top" || l === "bottom" ? (b = l, x = f === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = l, b = f === "end" ? "top" : "bottom");
|
|
4758
|
-
const E = g - d.top - d.bottom, w =
|
|
4758
|
+
const E = g - d.top - d.bottom, w = v - d.left - d.right, C = $e(g - d[b], E), M = $e(v - d[x], w), N = !t.middlewareData.shift;
|
|
4759
4759
|
let S = C, R = M;
|
|
4760
4760
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (S = E), N && !f) {
|
|
4761
4761
|
const H = pe(d.left, 0), V = pe(d.right, 0), $ = pe(d.top, 0), q = pe(d.bottom, 0);
|
|
4762
|
-
|
|
4762
|
+
h ? R = v - 2 * (H !== 0 || V !== 0 ? H + V : pe(d.left, d.right)) : S = g - 2 * ($ !== 0 || q !== 0 ? $ + q : pe(d.top, d.bottom));
|
|
4763
4763
|
}
|
|
4764
4764
|
await c({
|
|
4765
4765
|
...t,
|
|
@@ -4767,7 +4767,7 @@ const Xc = function(e) {
|
|
|
4767
4767
|
availableHeight: S
|
|
4768
4768
|
});
|
|
4769
4769
|
const G = await a.getDimensions(i.floating);
|
|
4770
|
-
return
|
|
4770
|
+
return v !== G.width || g !== G.height ? {
|
|
4771
4771
|
reset: {
|
|
4772
4772
|
rects: !0
|
|
4773
4773
|
}
|
|
@@ -4810,7 +4810,7 @@ function _t(e) {
|
|
|
4810
4810
|
} = ye(e);
|
|
4811
4811
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function el(e) {
|
|
4814
4814
|
return ["table", "td", "th"].includes(mt(e));
|
|
4815
4815
|
}
|
|
4816
4816
|
function dn(e) {
|
|
@@ -4826,7 +4826,7 @@ function rr(e) {
|
|
|
4826
4826
|
const t = or(), n = xe(e) ? ye(e) : e;
|
|
4827
4827
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
4828
4828
|
}
|
|
4829
|
-
function
|
|
4829
|
+
function tl(e) {
|
|
4830
4830
|
let t = Ge(e);
|
|
4831
4831
|
for (; Ee(t) && !ct(t); ) {
|
|
4832
4832
|
if (rr(t))
|
|
@@ -4912,15 +4912,15 @@ function ot(e) {
|
|
|
4912
4912
|
y: i
|
|
4913
4913
|
};
|
|
4914
4914
|
}
|
|
4915
|
-
const
|
|
4915
|
+
const nl = /* @__PURE__ */ Ce(0);
|
|
4916
4916
|
function rs(e) {
|
|
4917
4917
|
const t = me(e);
|
|
4918
|
-
return !or() || !t.visualViewport ?
|
|
4918
|
+
return !or() || !t.visualViewport ? nl : {
|
|
4919
4919
|
x: t.visualViewport.offsetLeft,
|
|
4920
4920
|
y: t.visualViewport.offsetTop
|
|
4921
4921
|
};
|
|
4922
4922
|
}
|
|
4923
|
-
function
|
|
4923
|
+
function rl(e, t, n) {
|
|
4924
4924
|
return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
|
|
4925
4925
|
}
|
|
4926
4926
|
function Ke(e, t, n, r) {
|
|
@@ -4928,14 +4928,14 @@ function Ke(e, t, n, r) {
|
|
|
4928
4928
|
const o = e.getBoundingClientRect(), s = sr(e);
|
|
4929
4929
|
let a = Ce(1);
|
|
4930
4930
|
t && (r ? xe(r) && (a = ot(r)) : a = ot(e));
|
|
4931
|
-
const i =
|
|
4931
|
+
const i = rl(s, n, r) ? rs(s) : Ce(0);
|
|
4932
4932
|
let c = (o.left + i.x) / a.x, u = (o.top + i.y) / a.y, d = o.width / a.x, l = o.height / a.y;
|
|
4933
4933
|
if (s) {
|
|
4934
|
-
const f = me(s),
|
|
4935
|
-
let
|
|
4936
|
-
for (; g && r &&
|
|
4934
|
+
const f = me(s), h = r && xe(r) ? me(r) : r;
|
|
4935
|
+
let v = f, g = Vn(v);
|
|
4936
|
+
for (; g && r && h !== v; ) {
|
|
4937
4937
|
const b = ot(g), x = g.getBoundingClientRect(), E = ye(g), w = x.left + (g.clientLeft + parseFloat(E.paddingLeft)) * b.x, C = x.top + (g.clientTop + parseFloat(E.paddingTop)) * b.y;
|
|
4938
|
-
c *= b.x, u *= b.y, d *= b.x, l *= b.y, c += w, u += C,
|
|
4938
|
+
c *= b.x, u *= b.y, d *= b.x, l *= b.y, c += w, u += C, v = me(g), g = Vn(v);
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
return Jt({
|
|
@@ -4960,7 +4960,7 @@ function os(e, t, n) {
|
|
|
4960
4960
|
y: s
|
|
4961
4961
|
};
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4963
|
+
function ol(e) {
|
|
4964
4964
|
let {
|
|
4965
4965
|
elements: t,
|
|
4966
4966
|
rect: n,
|
|
@@ -4976,8 +4976,8 @@ function rl(e) {
|
|
|
4976
4976
|
}, u = Ce(1);
|
|
4977
4977
|
const d = Ce(0), l = Ee(r);
|
|
4978
4978
|
if ((l || !l && !s) && ((mt(r) !== "body" || _t(a)) && (c = fn(r)), Ee(r))) {
|
|
4979
|
-
const
|
|
4980
|
-
u = ot(r), d.x =
|
|
4979
|
+
const h = Ke(r);
|
|
4980
|
+
u = ot(r), d.x = h.x + r.clientLeft, d.y = h.y + r.clientTop;
|
|
4981
4981
|
}
|
|
4982
4982
|
const f = a && !l && !s ? os(a, c, !0) : Ce(0);
|
|
4983
4983
|
return {
|
|
@@ -4987,10 +4987,10 @@ function rl(e) {
|
|
|
4987
4987
|
y: n.y * u.y - c.scrollTop * u.y + d.y + f.y
|
|
4988
4988
|
};
|
|
4989
4989
|
}
|
|
4990
|
-
function
|
|
4990
|
+
function sl(e) {
|
|
4991
4991
|
return Array.from(e.getClientRects());
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function al(e) {
|
|
4994
4994
|
const t = Re(e), n = fn(e), r = e.ownerDocument.body, o = pe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = pe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
4995
4995
|
let a = -n.scrollLeft + ar(e);
|
|
4996
4996
|
const i = -n.scrollTop;
|
|
@@ -5001,7 +5001,7 @@ function sl(e) {
|
|
|
5001
5001
|
y: i
|
|
5002
5002
|
};
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5004
|
+
function il(e, t) {
|
|
5005
5005
|
const n = me(e), r = Re(e), o = n.visualViewport;
|
|
5006
5006
|
let s = r.clientWidth, a = r.clientHeight, i = 0, c = 0;
|
|
5007
5007
|
if (o) {
|
|
@@ -5016,7 +5016,7 @@ function al(e, t) {
|
|
|
5016
5016
|
y: c
|
|
5017
5017
|
};
|
|
5018
5018
|
}
|
|
5019
|
-
function
|
|
5019
|
+
function cl(e, t) {
|
|
5020
5020
|
const n = Ke(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = Ee(e) ? ot(e) : Ce(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, c = o * s.x, u = r * s.y;
|
|
5021
5021
|
return {
|
|
5022
5022
|
width: a,
|
|
@@ -5028,11 +5028,11 @@ function il(e, t) {
|
|
|
5028
5028
|
function Wr(e, t, n) {
|
|
5029
5029
|
let r;
|
|
5030
5030
|
if (t === "viewport")
|
|
5031
|
-
r =
|
|
5031
|
+
r = il(e, n);
|
|
5032
5032
|
else if (t === "document")
|
|
5033
|
-
r =
|
|
5033
|
+
r = al(Re(e));
|
|
5034
5034
|
else if (xe(t))
|
|
5035
|
-
r =
|
|
5035
|
+
r = cl(t, n);
|
|
5036
5036
|
else {
|
|
5037
5037
|
const o = rs(e);
|
|
5038
5038
|
r = {
|
|
@@ -5048,7 +5048,7 @@ function ss(e, t) {
|
|
|
5048
5048
|
const n = Ge(e);
|
|
5049
5049
|
return n === t || !xe(n) || ct(n) ? !1 : ye(n).position === "fixed" || ss(n, t);
|
|
5050
5050
|
}
|
|
5051
|
-
function
|
|
5051
|
+
function ll(e, t) {
|
|
5052
5052
|
const n = t.get(e);
|
|
5053
5053
|
if (n)
|
|
5054
5054
|
return n;
|
|
@@ -5061,14 +5061,14 @@ function cl(e, t) {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
return t.set(e, r), r;
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function ul(e) {
|
|
5065
5065
|
let {
|
|
5066
5066
|
element: t,
|
|
5067
5067
|
boundary: n,
|
|
5068
5068
|
rootBoundary: r,
|
|
5069
5069
|
strategy: o
|
|
5070
5070
|
} = e;
|
|
5071
|
-
const a = [...n === "clippingAncestors" ? dn(t) ? [] :
|
|
5071
|
+
const a = [...n === "clippingAncestors" ? dn(t) ? [] : ll(t, this._c) : [].concat(n), r], i = a[0], c = a.reduce((u, d) => {
|
|
5072
5072
|
const l = Wr(t, d, o);
|
|
5073
5073
|
return u.top = pe(l.top, u.top), u.right = $e(l.right, u.right), u.bottom = $e(l.bottom, u.bottom), u.left = pe(l.left, u.left), u;
|
|
5074
5074
|
}, Wr(t, i, o));
|
|
@@ -5079,7 +5079,7 @@ function ll(e) {
|
|
|
5079
5079
|
y: c.top
|
|
5080
5080
|
};
|
|
5081
5081
|
}
|
|
5082
|
-
function
|
|
5082
|
+
function dl(e) {
|
|
5083
5083
|
const {
|
|
5084
5084
|
width: t,
|
|
5085
5085
|
height: n
|
|
@@ -5089,7 +5089,7 @@ function ul(e) {
|
|
|
5089
5089
|
height: n
|
|
5090
5090
|
};
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function fl(e, t, n) {
|
|
5093
5093
|
const r = Ee(t), o = Re(t), s = n === "fixed", a = Ke(e, !0, s, t);
|
|
5094
5094
|
let i = {
|
|
5095
5095
|
scrollLeft: 0,
|
|
@@ -5134,14 +5134,14 @@ function as(e, t) {
|
|
|
5134
5134
|
return n;
|
|
5135
5135
|
}
|
|
5136
5136
|
let r = Vr(e, t);
|
|
5137
|
-
for (; r &&
|
|
5137
|
+
for (; r && el(r) && kn(r); )
|
|
5138
5138
|
r = Vr(r, t);
|
|
5139
|
-
return r && ct(r) && kn(r) && !rr(r) ? n : r ||
|
|
5139
|
+
return r && ct(r) && kn(r) && !rr(r) ? n : r || tl(e) || n;
|
|
5140
5140
|
}
|
|
5141
|
-
const
|
|
5141
|
+
const pl = async function(e) {
|
|
5142
5142
|
const t = this.getOffsetParent || as, n = this.getDimensions, r = await n(e.floating);
|
|
5143
5143
|
return {
|
|
5144
|
-
reference:
|
|
5144
|
+
reference: fl(e.reference, await t(e.floating), e.strategy),
|
|
5145
5145
|
floating: {
|
|
5146
5146
|
x: 0,
|
|
5147
5147
|
y: 0,
|
|
@@ -5150,25 +5150,25 @@ const fl = async function(e) {
|
|
|
5150
5150
|
}
|
|
5151
5151
|
};
|
|
5152
5152
|
};
|
|
5153
|
-
function
|
|
5153
|
+
function ml(e) {
|
|
5154
5154
|
return ye(e).direction === "rtl";
|
|
5155
5155
|
}
|
|
5156
|
-
const
|
|
5157
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5156
|
+
const gl = {
|
|
5157
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ol,
|
|
5158
5158
|
getDocumentElement: Re,
|
|
5159
|
-
getClippingRect:
|
|
5159
|
+
getClippingRect: ul,
|
|
5160
5160
|
getOffsetParent: as,
|
|
5161
|
-
getElementRects:
|
|
5162
|
-
getClientRects:
|
|
5163
|
-
getDimensions:
|
|
5161
|
+
getElementRects: pl,
|
|
5162
|
+
getClientRects: sl,
|
|
5163
|
+
getDimensions: dl,
|
|
5164
5164
|
getScale: ot,
|
|
5165
5165
|
isElement: xe,
|
|
5166
|
-
isRTL:
|
|
5166
|
+
isRTL: ml
|
|
5167
5167
|
};
|
|
5168
5168
|
function is(e, t) {
|
|
5169
5169
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5170
5170
|
}
|
|
5171
|
-
function
|
|
5171
|
+
function hl(e, t) {
|
|
5172
5172
|
let n = null, r;
|
|
5173
5173
|
const o = Re(e);
|
|
5174
5174
|
function s() {
|
|
@@ -5181,12 +5181,12 @@ function gl(e, t) {
|
|
|
5181
5181
|
left: d,
|
|
5182
5182
|
top: l,
|
|
5183
5183
|
width: f,
|
|
5184
|
-
height:
|
|
5184
|
+
height: h
|
|
5185
5185
|
} = u;
|
|
5186
|
-
if (i || t(), !f || !
|
|
5186
|
+
if (i || t(), !f || !h)
|
|
5187
5187
|
return;
|
|
5188
|
-
const
|
|
5189
|
-
rootMargin: -
|
|
5188
|
+
const v = $t(l), g = $t(o.clientWidth - (d + f)), b = $t(o.clientHeight - (l + h)), x = $t(d), w = {
|
|
5189
|
+
rootMargin: -v + "px " + -g + "px " + -b + "px " + -x + "px",
|
|
5190
5190
|
threshold: pe(0, $e(1, c)) || 1
|
|
5191
5191
|
};
|
|
5192
5192
|
let C = !0;
|
|
@@ -5214,7 +5214,7 @@ function gl(e, t) {
|
|
|
5214
5214
|
}
|
|
5215
5215
|
return a(!0), s;
|
|
5216
5216
|
}
|
|
5217
|
-
function
|
|
5217
|
+
function vl(e, t, n, r) {
|
|
5218
5218
|
r === void 0 && (r = {});
|
|
5219
5219
|
const {
|
|
5220
5220
|
ancestorScroll: o = !0,
|
|
@@ -5228,37 +5228,37 @@ function hl(e, t, n, r) {
|
|
|
5228
5228
|
passive: !0
|
|
5229
5229
|
}), s && x.addEventListener("resize", n);
|
|
5230
5230
|
});
|
|
5231
|
-
const l = u && i ?
|
|
5232
|
-
let f = -1,
|
|
5233
|
-
a && (
|
|
5231
|
+
const l = u && i ? hl(u, n) : null;
|
|
5232
|
+
let f = -1, h = null;
|
|
5233
|
+
a && (h = new ResizeObserver((x) => {
|
|
5234
5234
|
let [E] = x;
|
|
5235
|
-
E && E.target === u &&
|
|
5235
|
+
E && E.target === u && h && (h.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
5236
5236
|
var w;
|
|
5237
|
-
(w =
|
|
5237
|
+
(w = h) == null || w.observe(t);
|
|
5238
5238
|
})), n();
|
|
5239
|
-
}), u && !c &&
|
|
5240
|
-
let
|
|
5239
|
+
}), u && !c && h.observe(u), h.observe(t));
|
|
5240
|
+
let v, g = c ? Ke(e) : null;
|
|
5241
5241
|
c && b();
|
|
5242
5242
|
function b() {
|
|
5243
5243
|
const x = Ke(e);
|
|
5244
|
-
g && !is(g, x) && n(), g = x,
|
|
5244
|
+
g && !is(g, x) && n(), g = x, v = requestAnimationFrame(b);
|
|
5245
5245
|
}
|
|
5246
5246
|
return n(), () => {
|
|
5247
5247
|
var x;
|
|
5248
5248
|
d.forEach((E) => {
|
|
5249
5249
|
o && E.removeEventListener("scroll", n), s && E.removeEventListener("resize", n);
|
|
5250
|
-
}), l?.(), (x =
|
|
5250
|
+
}), l?.(), (x = h) == null || x.disconnect(), h = null, c && cancelAnimationFrame(v);
|
|
5251
5251
|
};
|
|
5252
5252
|
}
|
|
5253
|
-
const
|
|
5253
|
+
const bl = qc, xl = Zc, yl = Kc, wl = Qc, Cl = Yc, Ur = Uc, Sl = Jc, El = (e, t, n) => {
|
|
5254
5254
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5255
|
-
platform:
|
|
5255
|
+
platform: gl,
|
|
5256
5256
|
...n
|
|
5257
5257
|
}, s = {
|
|
5258
5258
|
...o.platform,
|
|
5259
5259
|
_c: r
|
|
5260
5260
|
};
|
|
5261
|
-
return
|
|
5261
|
+
return Vc(e, t, {
|
|
5262
5262
|
...o,
|
|
5263
5263
|
platform: s
|
|
5264
5264
|
});
|
|
@@ -5307,7 +5307,7 @@ function An(e) {
|
|
|
5307
5307
|
t.current = e;
|
|
5308
5308
|
}), t;
|
|
5309
5309
|
}
|
|
5310
|
-
function
|
|
5310
|
+
function Rl(e) {
|
|
5311
5311
|
e === void 0 && (e = {});
|
|
5312
5312
|
const {
|
|
5313
5313
|
placement: t = "bottom",
|
|
@@ -5328,13 +5328,13 @@ function El(e) {
|
|
|
5328
5328
|
placement: t,
|
|
5329
5329
|
middlewareData: {},
|
|
5330
5330
|
isPositioned: !1
|
|
5331
|
-
}), [f,
|
|
5332
|
-
Qt(f, r) ||
|
|
5333
|
-
const [
|
|
5331
|
+
}), [f, h] = p.useState(r);
|
|
5332
|
+
Qt(f, r) || h(r);
|
|
5333
|
+
const [v, g] = p.useState(null), [b, x] = p.useState(null), E = p.useCallback((A) => {
|
|
5334
5334
|
A !== N.current && (N.current = A, g(A));
|
|
5335
5335
|
}, []), w = p.useCallback((A) => {
|
|
5336
5336
|
A !== S.current && (S.current = A, x(A));
|
|
5337
|
-
}, []), C = s ||
|
|
5337
|
+
}, []), C = s || v, M = a || b, N = p.useRef(null), S = p.useRef(null), R = p.useRef(d), G = c != null, H = An(c), V = An(o), $ = An(u), q = p.useCallback(() => {
|
|
5338
5338
|
if (!N.current || !S.current)
|
|
5339
5339
|
return;
|
|
5340
5340
|
const A = {
|
|
@@ -5342,7 +5342,7 @@ function El(e) {
|
|
|
5342
5342
|
strategy: n,
|
|
5343
5343
|
middleware: f
|
|
5344
5344
|
};
|
|
5345
|
-
V.current && (A.platform = V.current),
|
|
5345
|
+
V.current && (A.platform = V.current), El(N.current, S.current, A).then((I) => {
|
|
5346
5346
|
const y = {
|
|
5347
5347
|
...I,
|
|
5348
5348
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5409,7 +5409,7 @@ function El(e) {
|
|
|
5409
5409
|
floatingStyles: Z
|
|
5410
5410
|
}), [d, q, W, F, Z]);
|
|
5411
5411
|
}
|
|
5412
|
-
const
|
|
5412
|
+
const Pl = (e) => {
|
|
5413
5413
|
function t(n) {
|
|
5414
5414
|
return {}.hasOwnProperty.call(n, "current");
|
|
5415
5415
|
}
|
|
@@ -5430,17 +5430,14 @@ const Rl = (e) => {
|
|
|
5430
5430
|
}).fn(n) : {};
|
|
5431
5431
|
}
|
|
5432
5432
|
};
|
|
5433
|
-
},
|
|
5434
|
-
...vl(e),
|
|
5435
|
-
options: [e, t]
|
|
5436
|
-
}), kl = (e, t) => ({
|
|
5433
|
+
}, kl = (e, t) => ({
|
|
5437
5434
|
...bl(e),
|
|
5438
5435
|
options: [e, t]
|
|
5439
5436
|
}), Al = (e, t) => ({
|
|
5440
|
-
...
|
|
5437
|
+
...xl(e),
|
|
5441
5438
|
options: [e, t]
|
|
5442
5439
|
}), Ml = (e, t) => ({
|
|
5443
|
-
...
|
|
5440
|
+
...Sl(e),
|
|
5444
5441
|
options: [e, t]
|
|
5445
5442
|
}), Nl = (e, t) => ({
|
|
5446
5443
|
...yl(e),
|
|
@@ -5449,10 +5446,13 @@ const Rl = (e) => {
|
|
|
5449
5446
|
...wl(e),
|
|
5450
5447
|
options: [e, t]
|
|
5451
5448
|
}), Il = (e, t) => ({
|
|
5452
|
-
...
|
|
5449
|
+
...Cl(e),
|
|
5450
|
+
options: [e, t]
|
|
5451
|
+
}), Tl = (e, t) => ({
|
|
5452
|
+
...Pl(e),
|
|
5453
5453
|
options: [e, t]
|
|
5454
5454
|
});
|
|
5455
|
-
var
|
|
5455
|
+
var Ol = "Arrow", ls = p.forwardRef((e, t) => {
|
|
5456
5456
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
5457
5457
|
return /* @__PURE__ */ m.jsx(
|
|
5458
5458
|
re.svg,
|
|
@@ -5467,8 +5467,8 @@ var Tl = "Arrow", ls = p.forwardRef((e, t) => {
|
|
|
5467
5467
|
}
|
|
5468
5468
|
);
|
|
5469
5469
|
});
|
|
5470
|
-
ls.displayName =
|
|
5471
|
-
var
|
|
5470
|
+
ls.displayName = Ol;
|
|
5471
|
+
var Dl = ls;
|
|
5472
5472
|
function zl(e) {
|
|
5473
5473
|
const [t, n] = p.useState(void 0);
|
|
5474
5474
|
return Fe(() => {
|
|
@@ -5491,9 +5491,9 @@ function zl(e) {
|
|
|
5491
5491
|
n(void 0);
|
|
5492
5492
|
}, [e]), t;
|
|
5493
5493
|
}
|
|
5494
|
-
var ir = "Popper", [us, ds] = dt(ir), [
|
|
5494
|
+
var ir = "Popper", [us, ds] = dt(ir), [jl, fs] = us(ir), ps = (e) => {
|
|
5495
5495
|
const { __scopePopper: t, children: n } = e, [r, o] = p.useState(null);
|
|
5496
|
-
return /* @__PURE__ */ m.jsx(
|
|
5496
|
+
return /* @__PURE__ */ m.jsx(jl, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5497
5497
|
};
|
|
5498
5498
|
ps.displayName = ir;
|
|
5499
5499
|
var ms = "PopperAnchor", gs = p.forwardRef(
|
|
@@ -5505,7 +5505,7 @@ var ms = "PopperAnchor", gs = p.forwardRef(
|
|
|
5505
5505
|
}
|
|
5506
5506
|
);
|
|
5507
5507
|
gs.displayName = ms;
|
|
5508
|
-
var cr = "PopperContent", [
|
|
5508
|
+
var cr = "PopperContent", [Ll, Fl] = us(cr), hs = p.forwardRef(
|
|
5509
5509
|
(e, t) => {
|
|
5510
5510
|
const {
|
|
5511
5511
|
__scopePopper: n,
|
|
@@ -5519,49 +5519,49 @@ var cr = "PopperContent", [jl, Ll] = us(cr), hs = p.forwardRef(
|
|
|
5519
5519
|
collisionPadding: d = 0,
|
|
5520
5520
|
sticky: l = "partial",
|
|
5521
5521
|
hideWhenDetached: f = !1,
|
|
5522
|
-
updatePositionStrategy:
|
|
5523
|
-
onPlaced:
|
|
5522
|
+
updatePositionStrategy: h = "optimized",
|
|
5523
|
+
onPlaced: v,
|
|
5524
5524
|
...g
|
|
5525
5525
|
} = e, b = fs(cr, n), [x, E] = p.useState(null), w = de(t, (k) => E(k)), [C, M] = p.useState(null), N = zl(C), S = N?.width ?? 0, R = N?.height ?? 0, G = r + (s !== "center" ? "-" + s : ""), H = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, V = Array.isArray(u) ? u : [u], $ = V.length > 0, q = {
|
|
5526
5526
|
padding: H,
|
|
5527
|
-
boundary: V.filter(
|
|
5527
|
+
boundary: V.filter(Bl),
|
|
5528
5528
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5529
5529
|
altBoundary: $
|
|
5530
|
-
}, { refs: B, floatingStyles: W, placement: F, isPositioned: Z, middlewareData: A } =
|
|
5530
|
+
}, { refs: B, floatingStyles: W, placement: F, isPositioned: Z, middlewareData: A } = Rl({
|
|
5531
5531
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5532
5532
|
strategy: "fixed",
|
|
5533
5533
|
placement: G,
|
|
5534
|
-
whileElementsMounted: (...k) =>
|
|
5535
|
-
animationFrame:
|
|
5534
|
+
whileElementsMounted: (...k) => vl(...k, {
|
|
5535
|
+
animationFrame: h === "always"
|
|
5536
5536
|
}),
|
|
5537
5537
|
elements: {
|
|
5538
5538
|
reference: b.anchor
|
|
5539
5539
|
},
|
|
5540
5540
|
middleware: [
|
|
5541
|
-
|
|
5542
|
-
c &&
|
|
5541
|
+
kl({ mainAxis: o + R, alignmentAxis: a }),
|
|
5542
|
+
c && Al({
|
|
5543
5543
|
mainAxis: !0,
|
|
5544
5544
|
crossAxis: !1,
|
|
5545
|
-
limiter: l === "partial" ?
|
|
5545
|
+
limiter: l === "partial" ? Ml() : void 0,
|
|
5546
5546
|
...q
|
|
5547
5547
|
}),
|
|
5548
|
-
c &&
|
|
5549
|
-
|
|
5548
|
+
c && Nl({ ...q }),
|
|
5549
|
+
_l({
|
|
5550
5550
|
...q,
|
|
5551
5551
|
apply: ({ elements: k, rects: T, availableWidth: K, availableHeight: ee }) => {
|
|
5552
5552
|
const { width: se, height: ae } = T.reference, te = k.floating.style;
|
|
5553
5553
|
te.setProperty("--radix-popper-available-width", `${K}px`), te.setProperty("--radix-popper-available-height", `${ee}px`), te.setProperty("--radix-popper-anchor-width", `${se}px`), te.setProperty("--radix-popper-anchor-height", `${ae}px`);
|
|
5554
5554
|
}
|
|
5555
5555
|
}),
|
|
5556
|
-
C &&
|
|
5557
|
-
|
|
5558
|
-
f &&
|
|
5556
|
+
C && Tl({ element: C, padding: i }),
|
|
5557
|
+
Gl({ arrowWidth: S, arrowHeight: R }),
|
|
5558
|
+
f && Il({ strategy: "referenceHidden", ...q })
|
|
5559
5559
|
]
|
|
5560
|
-
}), [I, y] = xs(F), j = Se(
|
|
5560
|
+
}), [I, y] = xs(F), j = Se(v);
|
|
5561
5561
|
Fe(() => {
|
|
5562
5562
|
Z && j?.();
|
|
5563
5563
|
}, [Z, j]);
|
|
5564
|
-
const U = A.arrow?.x, P = A.arrow?.y, _ = A.arrow?.centerOffset !== 0, [
|
|
5564
|
+
const U = A.arrow?.x, P = A.arrow?.y, _ = A.arrow?.centerOffset !== 0, [z, L] = p.useState();
|
|
5565
5565
|
return Fe(() => {
|
|
5566
5566
|
x && L(window.getComputedStyle(x).zIndex);
|
|
5567
5567
|
}, [x]), /* @__PURE__ */ m.jsx(
|
|
@@ -5574,7 +5574,7 @@ var cr = "PopperContent", [jl, Ll] = us(cr), hs = p.forwardRef(
|
|
|
5574
5574
|
transform: Z ? W.transform : "translate(0, -200%)",
|
|
5575
5575
|
// keep off the page when measuring
|
|
5576
5576
|
minWidth: "max-content",
|
|
5577
|
-
zIndex:
|
|
5577
|
+
zIndex: z,
|
|
5578
5578
|
"--radix-popper-transform-origin": [
|
|
5579
5579
|
A.transformOrigin?.x,
|
|
5580
5580
|
A.transformOrigin?.y
|
|
@@ -5589,7 +5589,7 @@ var cr = "PopperContent", [jl, Ll] = us(cr), hs = p.forwardRef(
|
|
|
5589
5589
|
},
|
|
5590
5590
|
dir: e.dir,
|
|
5591
5591
|
children: /* @__PURE__ */ m.jsx(
|
|
5592
|
-
|
|
5592
|
+
Ll,
|
|
5593
5593
|
{
|
|
5594
5594
|
scope: n,
|
|
5595
5595
|
placedSide: I,
|
|
@@ -5619,13 +5619,13 @@ var cr = "PopperContent", [jl, Ll] = us(cr), hs = p.forwardRef(
|
|
|
5619
5619
|
}
|
|
5620
5620
|
);
|
|
5621
5621
|
hs.displayName = cr;
|
|
5622
|
-
var vs = "PopperArrow",
|
|
5622
|
+
var vs = "PopperArrow", $l = {
|
|
5623
5623
|
top: "bottom",
|
|
5624
5624
|
right: "left",
|
|
5625
5625
|
bottom: "top",
|
|
5626
5626
|
left: "right"
|
|
5627
5627
|
}, bs = p.forwardRef(function(t, n) {
|
|
5628
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
5628
|
+
const { __scopePopper: r, ...o } = t, s = Fl(vs, r), a = $l[s.placedSide];
|
|
5629
5629
|
return (
|
|
5630
5630
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5631
5631
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -5654,7 +5654,7 @@ var vs = "PopperArrow", Fl = {
|
|
|
5654
5654
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
5655
5655
|
},
|
|
5656
5656
|
children: /* @__PURE__ */ m.jsx(
|
|
5657
|
-
|
|
5657
|
+
Dl,
|
|
5658
5658
|
{
|
|
5659
5659
|
...o,
|
|
5660
5660
|
ref: n,
|
|
@@ -5670,37 +5670,37 @@ var vs = "PopperArrow", Fl = {
|
|
|
5670
5670
|
);
|
|
5671
5671
|
});
|
|
5672
5672
|
bs.displayName = vs;
|
|
5673
|
-
function
|
|
5673
|
+
function Bl(e) {
|
|
5674
5674
|
return e !== null;
|
|
5675
5675
|
}
|
|
5676
|
-
var
|
|
5676
|
+
var Gl = (e) => ({
|
|
5677
5677
|
name: "transformOrigin",
|
|
5678
5678
|
options: e,
|
|
5679
5679
|
fn(t) {
|
|
5680
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = xs(n), l = { start: "0%", center: "50%", end: "100%" }[d], f = (o.arrow?.x ?? 0) + i / 2,
|
|
5681
|
-
let
|
|
5682
|
-
return u === "bottom" ? (
|
|
5680
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, c = a ? 0 : e.arrowHeight, [u, d] = xs(n), l = { start: "0%", center: "50%", end: "100%" }[d], f = (o.arrow?.x ?? 0) + i / 2, h = (o.arrow?.y ?? 0) + c / 2;
|
|
5681
|
+
let v = "", g = "";
|
|
5682
|
+
return u === "bottom" ? (v = a ? l : `${f}px`, g = `${-c}px`) : u === "top" ? (v = a ? l : `${f}px`, g = `${r.floating.height + c}px`) : u === "right" ? (v = `${-c}px`, g = a ? l : `${h}px`) : u === "left" && (v = `${r.floating.width + c}px`, g = a ? l : `${h}px`), { data: { x: v, y: g } };
|
|
5683
5683
|
}
|
|
5684
5684
|
});
|
|
5685
5685
|
function xs(e) {
|
|
5686
5686
|
const [t, n = "center"] = e.split("-");
|
|
5687
5687
|
return [t, n];
|
|
5688
5688
|
}
|
|
5689
|
-
var ys = ps,
|
|
5689
|
+
var ys = ps, Hl = gs, Wl = hs, Vl = bs, Ul = "Portal", ws = p.forwardRef((e, t) => {
|
|
5690
5690
|
const { container: n, ...r } = e, [o, s] = p.useState(!1);
|
|
5691
5691
|
Fe(() => s(!0), []);
|
|
5692
5692
|
const a = n || o && globalThis?.document?.body;
|
|
5693
5693
|
return a ? Za.createPortal(/* @__PURE__ */ m.jsx(re.div, { ...r, ref: t }), a) : null;
|
|
5694
5694
|
});
|
|
5695
|
-
ws.displayName =
|
|
5696
|
-
var
|
|
5695
|
+
ws.displayName = Ul;
|
|
5696
|
+
var Kl = function(e) {
|
|
5697
5697
|
if (typeof document > "u")
|
|
5698
5698
|
return null;
|
|
5699
5699
|
var t = Array.isArray(e) ? e[0] : e;
|
|
5700
5700
|
return t.ownerDocument.body;
|
|
5701
5701
|
}, Je = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Gt = {}, Mn = 0, Cs = function(e) {
|
|
5702
5702
|
return e && (e.host || Cs(e.parentNode));
|
|
5703
|
-
},
|
|
5703
|
+
}, Yl = function(e, t) {
|
|
5704
5704
|
return t.map(function(n) {
|
|
5705
5705
|
if (e.contains(n))
|
|
5706
5706
|
return n;
|
|
@@ -5709,8 +5709,8 @@ var Ul = function(e) {
|
|
|
5709
5709
|
}).filter(function(n) {
|
|
5710
5710
|
return !!n;
|
|
5711
5711
|
});
|
|
5712
|
-
},
|
|
5713
|
-
var o =
|
|
5712
|
+
}, Xl = function(e, t, n, r) {
|
|
5713
|
+
var o = Yl(t, Array.isArray(e) ? e : [e]);
|
|
5714
5714
|
Gt[n] || (Gt[n] = /* @__PURE__ */ new WeakMap());
|
|
5715
5715
|
var s = Gt[n], a = [], i = /* @__PURE__ */ new Set(), c = new Set(o), u = function(l) {
|
|
5716
5716
|
!l || i.has(l) || (i.add(l), u(l.parentNode));
|
|
@@ -5722,8 +5722,8 @@ var Ul = function(e) {
|
|
|
5722
5722
|
d(f);
|
|
5723
5723
|
else
|
|
5724
5724
|
try {
|
|
5725
|
-
var
|
|
5726
|
-
Je.set(f, g), s.set(f, b), a.push(f), g === 1 &&
|
|
5725
|
+
var h = f.getAttribute(r), v = h !== null && h !== "false", g = (Je.get(f) || 0) + 1, b = (s.get(f) || 0) + 1;
|
|
5726
|
+
Je.set(f, g), s.set(f, b), a.push(f), g === 1 && v && Bt.set(f, !0), b === 1 && f.setAttribute(n, "true"), v || f.setAttribute(r, "true");
|
|
5727
5727
|
} catch (x) {
|
|
5728
5728
|
console.error("aria-hidden: cannot operate on ", f, x);
|
|
5729
5729
|
}
|
|
@@ -5731,14 +5731,14 @@ var Ul = function(e) {
|
|
|
5731
5731
|
};
|
|
5732
5732
|
return d(t), i.clear(), Mn++, function() {
|
|
5733
5733
|
a.forEach(function(l) {
|
|
5734
|
-
var f = Je.get(l) - 1,
|
|
5735
|
-
Je.set(l, f), s.set(l,
|
|
5734
|
+
var f = Je.get(l) - 1, h = s.get(l) - 1;
|
|
5735
|
+
Je.set(l, f), s.set(l, h), f || (Bt.has(l) || l.removeAttribute(r), Bt.delete(l)), h || l.removeAttribute(n);
|
|
5736
5736
|
}), Mn--, Mn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), Gt = {});
|
|
5737
5737
|
};
|
|
5738
|
-
},
|
|
5738
|
+
}, ql = function(e, t, n) {
|
|
5739
5739
|
n === void 0 && (n = "data-aria-hidden");
|
|
5740
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
5741
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
5740
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = Kl(e);
|
|
5741
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Xl(r, o, n, "aria-hidden")) : function() {
|
|
5742
5742
|
return null;
|
|
5743
5743
|
};
|
|
5744
5744
|
}, we = function() {
|
|
@@ -5758,16 +5758,16 @@ function Ss(e, t) {
|
|
|
5758
5758
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
5759
5759
|
return n;
|
|
5760
5760
|
}
|
|
5761
|
-
function
|
|
5761
|
+
function Zl(e, t, n) {
|
|
5762
5762
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
5763
5763
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
5764
5764
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
5765
5765
|
}
|
|
5766
|
-
var Kt = "right-scroll-bar-position", Yt = "width-before-scroll-bar",
|
|
5766
|
+
var Kt = "right-scroll-bar-position", Yt = "width-before-scroll-bar", Jl = "with-scroll-bars-hidden", Ql = "--removed-body-scroll-bar-size";
|
|
5767
5767
|
function Nn(e, t) {
|
|
5768
5768
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5770
|
+
function eu(e, t) {
|
|
5771
5771
|
var n = Ae(function() {
|
|
5772
5772
|
return {
|
|
5773
5773
|
// value
|
|
@@ -5788,14 +5788,14 @@ function Ql(e, t) {
|
|
|
5788
5788
|
})[0];
|
|
5789
5789
|
return n.callback = t, n.facade;
|
|
5790
5790
|
}
|
|
5791
|
-
var
|
|
5792
|
-
function
|
|
5793
|
-
var n =
|
|
5791
|
+
var tu = typeof window < "u" ? p.useLayoutEffect : p.useEffect, Yr = /* @__PURE__ */ new WeakMap();
|
|
5792
|
+
function nu(e, t) {
|
|
5793
|
+
var n = eu(null, function(r) {
|
|
5794
5794
|
return e.forEach(function(o) {
|
|
5795
5795
|
return Nn(o, r);
|
|
5796
5796
|
});
|
|
5797
5797
|
});
|
|
5798
|
-
return
|
|
5798
|
+
return tu(function() {
|
|
5799
5799
|
var r = Yr.get(n);
|
|
5800
5800
|
if (r) {
|
|
5801
5801
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
@@ -5808,11 +5808,11 @@ function tu(e, t) {
|
|
|
5808
5808
|
Yr.set(n, e);
|
|
5809
5809
|
}, [e]), n;
|
|
5810
5810
|
}
|
|
5811
|
-
function
|
|
5811
|
+
function ru(e) {
|
|
5812
5812
|
return e;
|
|
5813
5813
|
}
|
|
5814
|
-
function
|
|
5815
|
-
t === void 0 && (t =
|
|
5814
|
+
function ou(e, t) {
|
|
5815
|
+
t === void 0 && (t = ru);
|
|
5816
5816
|
var n = [], r = !1, o = {
|
|
5817
5817
|
read: function() {
|
|
5818
5818
|
if (r)
|
|
@@ -5866,9 +5866,9 @@ function ru(e, t) {
|
|
|
5866
5866
|
};
|
|
5867
5867
|
return o;
|
|
5868
5868
|
}
|
|
5869
|
-
function
|
|
5869
|
+
function su(e) {
|
|
5870
5870
|
e === void 0 && (e = {});
|
|
5871
|
-
var t =
|
|
5871
|
+
var t = ou(null);
|
|
5872
5872
|
return t.options = we({ async: !0, ssr: !1 }, e), t;
|
|
5873
5873
|
}
|
|
5874
5874
|
var Es = function(e) {
|
|
@@ -5881,20 +5881,20 @@ var Es = function(e) {
|
|
|
5881
5881
|
return p.createElement(r, we({}, n));
|
|
5882
5882
|
};
|
|
5883
5883
|
Es.isSideCarExport = !0;
|
|
5884
|
-
function
|
|
5884
|
+
function au(e, t) {
|
|
5885
5885
|
return e.useMedium(t), Es;
|
|
5886
5886
|
}
|
|
5887
|
-
var Rs =
|
|
5887
|
+
var Rs = su(), _n = function() {
|
|
5888
5888
|
}, pn = p.forwardRef(function(e, t) {
|
|
5889
5889
|
var n = p.useRef(null), r = p.useState({
|
|
5890
5890
|
onScrollCapture: _n,
|
|
5891
5891
|
onWheelCapture: _n,
|
|
5892
5892
|
onTouchMoveCapture: _n
|
|
5893
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, l = e.shards, f = e.sideCar,
|
|
5893
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, c = e.className, u = e.removeScrollBar, d = e.enabled, l = e.shards, f = e.sideCar, h = e.noIsolation, v = e.inert, g = e.allowPinchZoom, b = e.as, x = b === void 0 ? "div" : b, E = e.gapMode, w = Ss(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = f, M = nu([n, t]), N = we(we({}, w), o);
|
|
5894
5894
|
return p.createElement(
|
|
5895
5895
|
p.Fragment,
|
|
5896
5896
|
null,
|
|
5897
|
-
d && p.createElement(C, { sideCar: Rs, removeScrollBar: u, shards: l, noIsolation:
|
|
5897
|
+
d && p.createElement(C, { sideCar: Rs, removeScrollBar: u, shards: l, noIsolation: h, inert: v, setCallbacks: s, allowPinchZoom: !!g, lockRef: n, gapMode: E }),
|
|
5898
5898
|
a ? p.cloneElement(p.Children.only(i), we(we({}, N), { ref: M })) : p.createElement(x, we({}, N, { className: c, ref: M }), i)
|
|
5899
5899
|
);
|
|
5900
5900
|
});
|
|
@@ -5907,37 +5907,37 @@ pn.classNames = {
|
|
|
5907
5907
|
fullWidth: Yt,
|
|
5908
5908
|
zeroRight: Kt
|
|
5909
5909
|
};
|
|
5910
|
-
var
|
|
5910
|
+
var iu = function() {
|
|
5911
5911
|
if (typeof __webpack_nonce__ < "u")
|
|
5912
5912
|
return __webpack_nonce__;
|
|
5913
5913
|
};
|
|
5914
|
-
function
|
|
5914
|
+
function cu() {
|
|
5915
5915
|
if (!document)
|
|
5916
5916
|
return null;
|
|
5917
5917
|
var e = document.createElement("style");
|
|
5918
5918
|
e.type = "text/css";
|
|
5919
|
-
var t =
|
|
5919
|
+
var t = iu();
|
|
5920
5920
|
return t && e.setAttribute("nonce", t), e;
|
|
5921
5921
|
}
|
|
5922
|
-
function
|
|
5922
|
+
function lu(e, t) {
|
|
5923
5923
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
5924
5924
|
}
|
|
5925
|
-
function
|
|
5925
|
+
function uu(e) {
|
|
5926
5926
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
5927
5927
|
t.appendChild(e);
|
|
5928
5928
|
}
|
|
5929
|
-
var
|
|
5929
|
+
var du = function() {
|
|
5930
5930
|
var e = 0, t = null;
|
|
5931
5931
|
return {
|
|
5932
5932
|
add: function(n) {
|
|
5933
|
-
e == 0 && (t =
|
|
5933
|
+
e == 0 && (t = cu()) && (lu(t, n), uu(t)), e++;
|
|
5934
5934
|
},
|
|
5935
5935
|
remove: function() {
|
|
5936
5936
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
5937
5937
|
}
|
|
5938
5938
|
};
|
|
5939
|
-
},
|
|
5940
|
-
var e =
|
|
5939
|
+
}, fu = function() {
|
|
5940
|
+
var e = du();
|
|
5941
5941
|
return function(t, n) {
|
|
5942
5942
|
p.useEffect(function() {
|
|
5943
5943
|
return e.add(t), function() {
|
|
@@ -5946,35 +5946,35 @@ var uu = function() {
|
|
|
5946
5946
|
}, [t && n]);
|
|
5947
5947
|
};
|
|
5948
5948
|
}, Ps = function() {
|
|
5949
|
-
var e =
|
|
5949
|
+
var e = fu(), t = function(n) {
|
|
5950
5950
|
var r = n.styles, o = n.dynamic;
|
|
5951
5951
|
return e(r, o), null;
|
|
5952
5952
|
};
|
|
5953
5953
|
return t;
|
|
5954
|
-
},
|
|
5954
|
+
}, pu = {
|
|
5955
5955
|
left: 0,
|
|
5956
5956
|
top: 0,
|
|
5957
5957
|
right: 0,
|
|
5958
5958
|
gap: 0
|
|
5959
5959
|
}, In = function(e) {
|
|
5960
5960
|
return parseInt(e || "", 10) || 0;
|
|
5961
|
-
},
|
|
5961
|
+
}, mu = function(e) {
|
|
5962
5962
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
5963
5963
|
return [In(n), In(r), In(o)];
|
|
5964
|
-
},
|
|
5964
|
+
}, gu = function(e) {
|
|
5965
5965
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
5966
|
-
return
|
|
5967
|
-
var t =
|
|
5966
|
+
return pu;
|
|
5967
|
+
var t = mu(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
5968
5968
|
return {
|
|
5969
5969
|
left: t[0],
|
|
5970
5970
|
top: t[1],
|
|
5971
5971
|
right: t[2],
|
|
5972
5972
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
5973
5973
|
};
|
|
5974
|
-
},
|
|
5974
|
+
}, hu = Ps(), st = "data-scroll-locked", vu = function(e, t, n, r) {
|
|
5975
5975
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
5976
5976
|
return n === void 0 && (n = "margin"), `
|
|
5977
|
-
.`.concat(
|
|
5977
|
+
.`.concat(Jl, ` {
|
|
5978
5978
|
overflow: hidden `).concat(r, `;
|
|
5979
5979
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
5980
5980
|
}
|
|
@@ -6012,26 +6012,26 @@ var uu = function() {
|
|
|
6012
6012
|
}
|
|
6013
6013
|
|
|
6014
6014
|
body[`).concat(st, `] {
|
|
6015
|
-
`).concat(
|
|
6015
|
+
`).concat(Ql, ": ").concat(i, `px;
|
|
6016
6016
|
}
|
|
6017
6017
|
`);
|
|
6018
6018
|
}, Xr = function() {
|
|
6019
6019
|
var e = parseInt(document.body.getAttribute(st) || "0", 10);
|
|
6020
6020
|
return isFinite(e) ? e : 0;
|
|
6021
|
-
},
|
|
6021
|
+
}, bu = function() {
|
|
6022
6022
|
p.useEffect(function() {
|
|
6023
6023
|
return document.body.setAttribute(st, (Xr() + 1).toString()), function() {
|
|
6024
6024
|
var e = Xr() - 1;
|
|
6025
6025
|
e <= 0 ? document.body.removeAttribute(st) : document.body.setAttribute(st, e.toString());
|
|
6026
6026
|
};
|
|
6027
6027
|
}, []);
|
|
6028
|
-
},
|
|
6028
|
+
}, xu = function(e) {
|
|
6029
6029
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
6030
|
-
|
|
6030
|
+
bu();
|
|
6031
6031
|
var s = p.useMemo(function() {
|
|
6032
|
-
return
|
|
6032
|
+
return gu(o);
|
|
6033
6033
|
}, [o]);
|
|
6034
|
-
return p.createElement(
|
|
6034
|
+
return p.createElement(hu, { styles: vu(s, !t, o, n ? "" : "!important") });
|
|
6035
6035
|
}, Un = !1;
|
|
6036
6036
|
if (typeof window < "u")
|
|
6037
6037
|
try {
|
|
@@ -6044,7 +6044,7 @@ if (typeof window < "u")
|
|
|
6044
6044
|
} catch {
|
|
6045
6045
|
Un = !1;
|
|
6046
6046
|
}
|
|
6047
|
-
var Qe = Un ? { passive: !1 } : !1,
|
|
6047
|
+
var Qe = Un ? { passive: !1 } : !1, yu = function(e) {
|
|
6048
6048
|
return e.tagName === "TEXTAREA";
|
|
6049
6049
|
}, ks = function(e, t) {
|
|
6050
6050
|
if (!(e instanceof Element))
|
|
@@ -6053,11 +6053,11 @@ var Qe = Un ? { passive: !1 } : !1, xu = function(e) {
|
|
|
6053
6053
|
return (
|
|
6054
6054
|
// not-not-scrollable
|
|
6055
6055
|
n[t] !== "hidden" && // contains scroll inside self
|
|
6056
|
-
!(n.overflowY === n.overflowX && !
|
|
6056
|
+
!(n.overflowY === n.overflowX && !yu(e) && n[t] === "visible")
|
|
6057
6057
|
);
|
|
6058
|
-
}, yu = function(e) {
|
|
6059
|
-
return ks(e, "overflowY");
|
|
6060
6058
|
}, wu = function(e) {
|
|
6059
|
+
return ks(e, "overflowY");
|
|
6060
|
+
}, Cu = function(e) {
|
|
6061
6061
|
return ks(e, "overflowX");
|
|
6062
6062
|
}, qr = function(e, t) {
|
|
6063
6063
|
var n = t.ownerDocument, r = t;
|
|
@@ -6072,14 +6072,14 @@ var Qe = Un ? { passive: !1 } : !1, xu = function(e) {
|
|
|
6072
6072
|
r = r.parentNode;
|
|
6073
6073
|
} while (r && r !== n.body);
|
|
6074
6074
|
return !1;
|
|
6075
|
-
},
|
|
6075
|
+
}, Su = function(e) {
|
|
6076
6076
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
6077
6077
|
return [
|
|
6078
6078
|
t,
|
|
6079
6079
|
n,
|
|
6080
6080
|
r
|
|
6081
6081
|
];
|
|
6082
|
-
},
|
|
6082
|
+
}, Eu = function(e) {
|
|
6083
6083
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
6084
6084
|
return [
|
|
6085
6085
|
t,
|
|
@@ -6087,16 +6087,16 @@ var Qe = Un ? { passive: !1 } : !1, xu = function(e) {
|
|
|
6087
6087
|
r
|
|
6088
6088
|
];
|
|
6089
6089
|
}, As = function(e, t) {
|
|
6090
|
-
return e === "v" ?
|
|
6090
|
+
return e === "v" ? wu(t) : Cu(t);
|
|
6091
6091
|
}, Ms = function(e, t) {
|
|
6092
|
-
return e === "v" ?
|
|
6093
|
-
},
|
|
6092
|
+
return e === "v" ? Su(t) : Eu(t);
|
|
6093
|
+
}, Ru = function(e, t) {
|
|
6094
6094
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
6095
|
-
},
|
|
6096
|
-
var s =
|
|
6095
|
+
}, Pu = function(e, t, n, r, o) {
|
|
6096
|
+
var s = Ru(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, c = t.contains(i), u = !1, d = a > 0, l = 0, f = 0;
|
|
6097
6097
|
do {
|
|
6098
|
-
var
|
|
6099
|
-
(
|
|
6098
|
+
var h = Ms(e, i), v = h[0], g = h[1], b = h[2], x = g - b - s * v;
|
|
6099
|
+
(v || x) && As(e, i) && (l += x, f += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
6100
6100
|
} while (
|
|
6101
6101
|
// portaled content
|
|
6102
6102
|
!c && i !== document.body || // self content
|
|
@@ -6109,22 +6109,22 @@ var Qe = Un ? { passive: !1 } : !1, xu = function(e) {
|
|
|
6109
6109
|
return [e.deltaX, e.deltaY];
|
|
6110
6110
|
}, Jr = function(e) {
|
|
6111
6111
|
return e && "current" in e ? e.current : e;
|
|
6112
|
-
},
|
|
6112
|
+
}, ku = function(e, t) {
|
|
6113
6113
|
return e[0] === t[0] && e[1] === t[1];
|
|
6114
|
-
},
|
|
6114
|
+
}, Au = function(e) {
|
|
6115
6115
|
return `
|
|
6116
6116
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
6117
6117
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
6118
6118
|
`);
|
|
6119
|
-
},
|
|
6120
|
-
function
|
|
6121
|
-
var t = p.useRef([]), n = p.useRef([0, 0]), r = p.useRef(), o = p.useState(
|
|
6119
|
+
}, Mu = 0, et = [];
|
|
6120
|
+
function Nu(e) {
|
|
6121
|
+
var t = p.useRef([]), n = p.useRef([0, 0]), r = p.useRef(), o = p.useState(Mu++)[0], s = p.useState(Ps)[0], a = p.useRef(e);
|
|
6122
6122
|
p.useEffect(function() {
|
|
6123
6123
|
a.current = e;
|
|
6124
6124
|
}, [e]), p.useEffect(function() {
|
|
6125
6125
|
if (e.inert) {
|
|
6126
6126
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
6127
|
-
var g =
|
|
6127
|
+
var g = Zl([e.lockRef.current], (e.shards || []).map(Jr), !0).filter(Boolean);
|
|
6128
6128
|
return g.forEach(function(b) {
|
|
6129
6129
|
return b.classList.add("allow-interactivity-".concat(o));
|
|
6130
6130
|
}), function() {
|
|
@@ -6148,12 +6148,12 @@ function Mu(e) {
|
|
|
6148
6148
|
if (!r.current && "changedTouches" in g && (w || C) && (r.current = M), !M)
|
|
6149
6149
|
return !0;
|
|
6150
6150
|
var G = r.current || M;
|
|
6151
|
-
return
|
|
6151
|
+
return Pu(G, b, g, G === "h" ? w : C);
|
|
6152
6152
|
}, []), c = p.useCallback(function(g) {
|
|
6153
6153
|
var b = g;
|
|
6154
6154
|
if (!(!et.length || et[et.length - 1] !== s)) {
|
|
6155
6155
|
var x = "deltaY" in b ? Zr(b) : Wt(b), E = t.current.filter(function(M) {
|
|
6156
|
-
return M.name === b.type && (M.target === b.target || b.target === M.shadowParent) &&
|
|
6156
|
+
return M.name === b.type && (M.target === b.target || b.target === M.shadowParent) && ku(M.delta, x);
|
|
6157
6157
|
})[0];
|
|
6158
6158
|
if (E && E.should) {
|
|
6159
6159
|
b.cancelable && b.preventDefault();
|
|
@@ -6167,7 +6167,7 @@ function Mu(e) {
|
|
|
6167
6167
|
}
|
|
6168
6168
|
}
|
|
6169
6169
|
}, []), u = p.useCallback(function(g, b, x, E) {
|
|
6170
|
-
var w = { name: g, delta: b, target: x, should: E, shadowParent:
|
|
6170
|
+
var w = { name: g, delta: b, target: x, should: E, shadowParent: _u(x) };
|
|
6171
6171
|
t.current.push(w), setTimeout(function() {
|
|
6172
6172
|
t.current = t.current.filter(function(C) {
|
|
6173
6173
|
return C !== w;
|
|
@@ -6191,42 +6191,42 @@ function Mu(e) {
|
|
|
6191
6191
|
}), document.removeEventListener("wheel", c, Qe), document.removeEventListener("touchmove", c, Qe), document.removeEventListener("touchstart", d, Qe);
|
|
6192
6192
|
};
|
|
6193
6193
|
}, []);
|
|
6194
|
-
var
|
|
6194
|
+
var h = e.removeScrollBar, v = e.inert;
|
|
6195
6195
|
return p.createElement(
|
|
6196
6196
|
p.Fragment,
|
|
6197
6197
|
null,
|
|
6198
|
-
|
|
6199
|
-
|
|
6198
|
+
v ? p.createElement(s, { styles: Au(o) }) : null,
|
|
6199
|
+
h ? p.createElement(xu, { gapMode: e.gapMode }) : null
|
|
6200
6200
|
);
|
|
6201
6201
|
}
|
|
6202
|
-
function
|
|
6202
|
+
function _u(e) {
|
|
6203
6203
|
for (var t = null; e !== null; )
|
|
6204
6204
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
6205
6205
|
return t;
|
|
6206
6206
|
}
|
|
6207
|
-
const
|
|
6207
|
+
const Iu = au(Rs, Nu);
|
|
6208
6208
|
var Ns = p.forwardRef(function(e, t) {
|
|
6209
|
-
return p.createElement(pn, we({}, e, { ref: t, sideCar:
|
|
6209
|
+
return p.createElement(pn, we({}, e, { ref: t, sideCar: Iu }));
|
|
6210
6210
|
});
|
|
6211
6211
|
Ns.classNames = pn.classNames;
|
|
6212
|
-
var Kn = ["Enter", " "],
|
|
6212
|
+
var Kn = ["Enter", " "], Tu = ["ArrowDown", "PageUp", "Home"], _s = ["ArrowUp", "PageDown", "End"], Ou = [...Tu, ..._s], Du = {
|
|
6213
6213
|
ltr: [...Kn, "ArrowRight"],
|
|
6214
6214
|
rtl: [...Kn, "ArrowLeft"]
|
|
6215
6215
|
}, zu = {
|
|
6216
6216
|
ltr: ["ArrowLeft"],
|
|
6217
6217
|
rtl: ["ArrowRight"]
|
|
6218
|
-
}, It = "Menu", [Pt,
|
|
6219
|
-
|
|
6218
|
+
}, It = "Menu", [Pt, ju, Lu] = Po(It), [Xe, Is] = dt(It, [
|
|
6219
|
+
Lu,
|
|
6220
6220
|
ds,
|
|
6221
6221
|
cn
|
|
6222
|
-
]), Tt = ds(), Ts = cn(), [Os, He] = Xe(It), [
|
|
6222
|
+
]), Tt = ds(), Ts = cn(), [Os, He] = Xe(It), [Fu, Ot] = Xe(It), Ds = (e) => {
|
|
6223
6223
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Tt(t), [c, u] = p.useState(null), d = p.useRef(!1), l = Se(s), f = Zn(o);
|
|
6224
6224
|
return p.useEffect(() => {
|
|
6225
|
-
const
|
|
6226
|
-
d.current = !0, document.addEventListener("pointerdown",
|
|
6227
|
-
},
|
|
6228
|
-
return document.addEventListener("keydown",
|
|
6229
|
-
document.removeEventListener("keydown",
|
|
6225
|
+
const h = () => {
|
|
6226
|
+
d.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
|
|
6227
|
+
}, v = () => d.current = !1;
|
|
6228
|
+
return document.addEventListener("keydown", h, { capture: !0 }), () => {
|
|
6229
|
+
document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", v, { capture: !0 }), document.removeEventListener("pointermove", v, { capture: !0 });
|
|
6230
6230
|
};
|
|
6231
6231
|
}, []), /* @__PURE__ */ m.jsx(ys, { ...i, children: /* @__PURE__ */ m.jsx(
|
|
6232
6232
|
Os,
|
|
@@ -6237,7 +6237,7 @@ var Kn = ["Enter", " "], Iu = ["ArrowDown", "PageUp", "Home"], _s = ["ArrowUp",
|
|
|
6237
6237
|
content: c,
|
|
6238
6238
|
onContentChange: u,
|
|
6239
6239
|
children: /* @__PURE__ */ m.jsx(
|
|
6240
|
-
|
|
6240
|
+
Fu,
|
|
6241
6241
|
{
|
|
6242
6242
|
scope: t,
|
|
6243
6243
|
onClose: p.useCallback(() => l(!1), [l]),
|
|
@@ -6250,32 +6250,32 @@ var Kn = ["Enter", " "], Iu = ["ArrowDown", "PageUp", "Home"], _s = ["ArrowUp",
|
|
|
6250
6250
|
}
|
|
6251
6251
|
) });
|
|
6252
6252
|
};
|
|
6253
|
-
|
|
6254
|
-
var
|
|
6253
|
+
Ds.displayName = It;
|
|
6254
|
+
var $u = "MenuAnchor", lr = p.forwardRef(
|
|
6255
6255
|
(e, t) => {
|
|
6256
6256
|
const { __scopeMenu: n, ...r } = e, o = Tt(n);
|
|
6257
|
-
return /* @__PURE__ */ m.jsx(
|
|
6257
|
+
return /* @__PURE__ */ m.jsx(Hl, { ...o, ...r, ref: t });
|
|
6258
6258
|
}
|
|
6259
6259
|
);
|
|
6260
|
-
lr.displayName =
|
|
6261
|
-
var ur = "MenuPortal", [
|
|
6260
|
+
lr.displayName = $u;
|
|
6261
|
+
var ur = "MenuPortal", [Bu, zs] = Xe(ur, {
|
|
6262
6262
|
forceMount: void 0
|
|
6263
6263
|
}), js = (e) => {
|
|
6264
6264
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = He(ur, t);
|
|
6265
|
-
return /* @__PURE__ */ m.jsx(
|
|
6265
|
+
return /* @__PURE__ */ m.jsx(Bu, { scope: t, forceMount: n, children: /* @__PURE__ */ m.jsx(ft, { present: n || s.open, children: /* @__PURE__ */ m.jsx(ws, { asChild: !0, container: o, children: r }) }) });
|
|
6266
6266
|
};
|
|
6267
6267
|
js.displayName = ur;
|
|
6268
|
-
var ge = "MenuContent", [
|
|
6268
|
+
var ge = "MenuContent", [Gu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
6269
6269
|
(e, t) => {
|
|
6270
|
-
const n =
|
|
6271
|
-
return /* @__PURE__ */ m.jsx(Pt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(ft, { present: r || s.open, children: /* @__PURE__ */ m.jsx(Pt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ m.jsx(
|
|
6270
|
+
const n = zs(ge, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = He(ge, e.__scopeMenu), a = Ot(ge, e.__scopeMenu);
|
|
6271
|
+
return /* @__PURE__ */ m.jsx(Pt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(ft, { present: r || s.open, children: /* @__PURE__ */ m.jsx(Pt.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ m.jsx(Hu, { ...o, ref: t }) : /* @__PURE__ */ m.jsx(Wu, { ...o, ref: t }) }) }) });
|
|
6272
6272
|
}
|
|
6273
|
-
),
|
|
6273
|
+
), Hu = p.forwardRef(
|
|
6274
6274
|
(e, t) => {
|
|
6275
6275
|
const n = He(ge, e.__scopeMenu), r = p.useRef(null), o = de(t, r);
|
|
6276
6276
|
return p.useEffect(() => {
|
|
6277
6277
|
const s = r.current;
|
|
6278
|
-
if (s) return
|
|
6278
|
+
if (s) return ql(s);
|
|
6279
6279
|
}, []), /* @__PURE__ */ m.jsx(
|
|
6280
6280
|
fr,
|
|
6281
6281
|
{
|
|
@@ -6293,7 +6293,7 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6293
6293
|
}
|
|
6294
6294
|
);
|
|
6295
6295
|
}
|
|
6296
|
-
),
|
|
6296
|
+
), Wu = p.forwardRef((e, t) => {
|
|
6297
6297
|
const n = He(ge, e.__scopeMenu);
|
|
6298
6298
|
return /* @__PURE__ */ m.jsx(
|
|
6299
6299
|
fr,
|
|
@@ -6306,7 +6306,7 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6306
6306
|
onDismiss: () => n.onOpenChange(!1)
|
|
6307
6307
|
}
|
|
6308
6308
|
);
|
|
6309
|
-
}),
|
|
6309
|
+
}), Vu = /* @__PURE__ */ St("MenuContent.ScrollLock"), fr = p.forwardRef(
|
|
6310
6310
|
(e, t) => {
|
|
6311
6311
|
const {
|
|
6312
6312
|
__scopeMenu: n,
|
|
@@ -6320,19 +6320,19 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6320
6320
|
onPointerDownOutside: d,
|
|
6321
6321
|
onFocusOutside: l,
|
|
6322
6322
|
onInteractOutside: f,
|
|
6323
|
-
onDismiss:
|
|
6324
|
-
disableOutsideScroll:
|
|
6323
|
+
onDismiss: h,
|
|
6324
|
+
disableOutsideScroll: v,
|
|
6325
6325
|
...g
|
|
6326
|
-
} = e, b = He(ge, n), x = Ot(ge, n), E = Tt(n), w = Ts(n), C =
|
|
6327
|
-
const y = H.current + I, j = C().filter((k) => !k.disabled), U = document.activeElement, P = j.find((k) => k.ref.current === U)?.textValue, _ = j.map((k) => k.textValue),
|
|
6326
|
+
} = e, b = He(ge, n), x = Ot(ge, n), E = Tt(n), w = Ts(n), C = ju(n), [M, N] = p.useState(null), S = p.useRef(null), R = de(t, S, b.onContentChange), G = p.useRef(0), H = p.useRef(""), V = p.useRef(0), $ = p.useRef(null), q = p.useRef("right"), B = p.useRef(0), W = v ? Ns : p.Fragment, F = v ? { as: Vu, allowPinchZoom: !0 } : void 0, Z = (I) => {
|
|
6327
|
+
const y = H.current + I, j = C().filter((k) => !k.disabled), U = document.activeElement, P = j.find((k) => k.ref.current === U)?.textValue, _ = j.map((k) => k.textValue), z = rd(_, y, P), L = j.find((k) => k.textValue === z)?.ref.current;
|
|
6328
6328
|
(function k(T) {
|
|
6329
6329
|
H.current = T, window.clearTimeout(G.current), T !== "" && (G.current = window.setTimeout(() => k(""), 1e3));
|
|
6330
6330
|
})(y), L && setTimeout(() => L.focus());
|
|
6331
6331
|
};
|
|
6332
|
-
p.useEffect(() => () => window.clearTimeout(G.current), []),
|
|
6333
|
-
const A = p.useCallback((I) => q.current === $.current?.side &&
|
|
6332
|
+
p.useEffect(() => () => window.clearTimeout(G.current), []), Mc();
|
|
6333
|
+
const A = p.useCallback((I) => q.current === $.current?.side && sd(I, $.current?.area), []);
|
|
6334
6334
|
return /* @__PURE__ */ m.jsx(
|
|
6335
|
-
|
|
6335
|
+
Gu,
|
|
6336
6336
|
{
|
|
6337
6337
|
scope: n,
|
|
6338
6338
|
searchRef: H,
|
|
@@ -6376,7 +6376,7 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6376
6376
|
onPointerDownOutside: d,
|
|
6377
6377
|
onFocusOutside: l,
|
|
6378
6378
|
onInteractOutside: f,
|
|
6379
|
-
onDismiss:
|
|
6379
|
+
onDismiss: h,
|
|
6380
6380
|
children: /* @__PURE__ */ m.jsx(
|
|
6381
6381
|
To,
|
|
6382
6382
|
{
|
|
@@ -6392,7 +6392,7 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6392
6392
|
}),
|
|
6393
6393
|
preventScrollOnEntryFocus: !0,
|
|
6394
6394
|
children: /* @__PURE__ */ m.jsx(
|
|
6395
|
-
|
|
6395
|
+
Wl,
|
|
6396
6396
|
{
|
|
6397
6397
|
role: "menu",
|
|
6398
6398
|
"aria-orientation": "vertical",
|
|
@@ -6407,10 +6407,10 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6407
6407
|
const j = I.target.closest("[data-radix-menu-content]") === I.currentTarget, U = I.ctrlKey || I.altKey || I.metaKey, P = I.key.length === 1;
|
|
6408
6408
|
j && (I.key === "Tab" && I.preventDefault(), !U && P && Z(I.key));
|
|
6409
6409
|
const _ = S.current;
|
|
6410
|
-
if (I.target !== _ || !
|
|
6410
|
+
if (I.target !== _ || !Ou.includes(I.key)) return;
|
|
6411
6411
|
I.preventDefault();
|
|
6412
6412
|
const L = C().filter((k) => !k.disabled).map((k) => k.ref.current);
|
|
6413
|
-
_s.includes(I.key) && L.reverse(),
|
|
6413
|
+
_s.includes(I.key) && L.reverse(), td(L);
|
|
6414
6414
|
}),
|
|
6415
6415
|
onBlur: J(e.onBlur, (I) => {
|
|
6416
6416
|
I.currentTarget.contains(I.target) || (window.clearTimeout(G.current), H.current = "");
|
|
@@ -6438,27 +6438,27 @@ var ge = "MenuContent", [Bu, dr] = Xe(ge), Ls = p.forwardRef(
|
|
|
6438
6438
|
}
|
|
6439
6439
|
);
|
|
6440
6440
|
Ls.displayName = ge;
|
|
6441
|
-
var
|
|
6441
|
+
var Uu = "MenuGroup", pr = p.forwardRef(
|
|
6442
6442
|
(e, t) => {
|
|
6443
6443
|
const { __scopeMenu: n, ...r } = e;
|
|
6444
6444
|
return /* @__PURE__ */ m.jsx(re.div, { role: "group", ...r, ref: t });
|
|
6445
6445
|
}
|
|
6446
6446
|
);
|
|
6447
|
-
pr.displayName =
|
|
6448
|
-
var
|
|
6447
|
+
pr.displayName = Uu;
|
|
6448
|
+
var Ku = "MenuLabel", Fs = p.forwardRef(
|
|
6449
6449
|
(e, t) => {
|
|
6450
6450
|
const { __scopeMenu: n, ...r } = e;
|
|
6451
6451
|
return /* @__PURE__ */ m.jsx(re.div, { ...r, ref: t });
|
|
6452
6452
|
}
|
|
6453
6453
|
);
|
|
6454
|
-
Fs.displayName =
|
|
6454
|
+
Fs.displayName = Ku;
|
|
6455
6455
|
var en = "MenuItem", Qr = "menu.itemSelect", mn = p.forwardRef(
|
|
6456
6456
|
(e, t) => {
|
|
6457
6457
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = p.useRef(null), a = Ot(en, e.__scopeMenu), i = dr(en, e.__scopeMenu), c = de(t, s), u = p.useRef(!1), d = () => {
|
|
6458
6458
|
const l = s.current;
|
|
6459
6459
|
if (!n && l) {
|
|
6460
6460
|
const f = new CustomEvent(Qr, { bubbles: !0, cancelable: !0 });
|
|
6461
|
-
l.addEventListener(Qr, (
|
|
6461
|
+
l.addEventListener(Qr, (h) => r?.(h), { once: !0 }), ko(l, f), f.defaultPrevented ? u.current = !1 : a.onClose();
|
|
6462
6462
|
}
|
|
6463
6463
|
};
|
|
6464
6464
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -6485,10 +6485,10 @@ var en = "MenuItem", Qr = "menu.itemSelect", mn = p.forwardRef(
|
|
|
6485
6485
|
mn.displayName = en;
|
|
6486
6486
|
var $s = p.forwardRef(
|
|
6487
6487
|
(e, t) => {
|
|
6488
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = dr(en, n), i = Ts(n), c = p.useRef(null), u = de(t, c), [d, l] = p.useState(!1), [f,
|
|
6488
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = dr(en, n), i = Ts(n), c = p.useRef(null), u = de(t, c), [d, l] = p.useState(!1), [f, h] = p.useState("");
|
|
6489
6489
|
return p.useEffect(() => {
|
|
6490
|
-
const
|
|
6491
|
-
|
|
6490
|
+
const v = c.current;
|
|
6491
|
+
v && h((v.textContent ?? "").trim());
|
|
6492
6492
|
}, [s.children]), /* @__PURE__ */ m.jsx(
|
|
6493
6493
|
Pt.ItemSlot,
|
|
6494
6494
|
{
|
|
@@ -6506,13 +6506,13 @@ var $s = p.forwardRef(
|
|
|
6506
6506
|
ref: u,
|
|
6507
6507
|
onPointerMove: J(
|
|
6508
6508
|
e.onPointerMove,
|
|
6509
|
-
kt((
|
|
6510
|
-
r ? a.onItemLeave(
|
|
6509
|
+
kt((v) => {
|
|
6510
|
+
r ? a.onItemLeave(v) : (a.onItemEnter(v), v.defaultPrevented || v.currentTarget.focus({ preventScroll: !0 }));
|
|
6511
6511
|
})
|
|
6512
6512
|
),
|
|
6513
6513
|
onPointerLeave: J(
|
|
6514
6514
|
e.onPointerLeave,
|
|
6515
|
-
kt((
|
|
6515
|
+
kt((v) => a.onItemLeave(v))
|
|
6516
6516
|
),
|
|
6517
6517
|
onFocus: J(e.onFocus, () => l(!0)),
|
|
6518
6518
|
onBlur: J(e.onBlur, () => l(!1))
|
|
@@ -6521,7 +6521,7 @@ var $s = p.forwardRef(
|
|
|
6521
6521
|
}
|
|
6522
6522
|
);
|
|
6523
6523
|
}
|
|
6524
|
-
),
|
|
6524
|
+
), Yu = "MenuCheckboxItem", Bs = p.forwardRef(
|
|
6525
6525
|
(e, t) => {
|
|
6526
6526
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
6527
6527
|
return /* @__PURE__ */ m.jsx(Us, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ m.jsx(
|
|
@@ -6541,21 +6541,21 @@ var $s = p.forwardRef(
|
|
|
6541
6541
|
) });
|
|
6542
6542
|
}
|
|
6543
6543
|
);
|
|
6544
|
-
Bs.displayName =
|
|
6545
|
-
var Gs = "MenuRadioGroup", [
|
|
6544
|
+
Bs.displayName = Yu;
|
|
6545
|
+
var Gs = "MenuRadioGroup", [Xu, qu] = Xe(
|
|
6546
6546
|
Gs,
|
|
6547
6547
|
{ value: void 0, onValueChange: () => {
|
|
6548
6548
|
} }
|
|
6549
6549
|
), Hs = p.forwardRef(
|
|
6550
6550
|
(e, t) => {
|
|
6551
6551
|
const { value: n, onValueChange: r, ...o } = e, s = Se(r);
|
|
6552
|
-
return /* @__PURE__ */ m.jsx(
|
|
6552
|
+
return /* @__PURE__ */ m.jsx(Xu, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ m.jsx(pr, { ...o, ref: t }) });
|
|
6553
6553
|
}
|
|
6554
6554
|
);
|
|
6555
6555
|
Hs.displayName = Gs;
|
|
6556
6556
|
var Ws = "MenuRadioItem", Vs = p.forwardRef(
|
|
6557
6557
|
(e, t) => {
|
|
6558
|
-
const { value: n, ...r } = e, o =
|
|
6558
|
+
const { value: n, ...r } = e, o = qu(Ws, e.__scopeMenu), s = n === o.value;
|
|
6559
6559
|
return /* @__PURE__ */ m.jsx(Us, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ m.jsx(
|
|
6560
6560
|
mn,
|
|
6561
6561
|
{
|
|
@@ -6574,12 +6574,12 @@ var Ws = "MenuRadioItem", Vs = p.forwardRef(
|
|
|
6574
6574
|
}
|
|
6575
6575
|
);
|
|
6576
6576
|
Vs.displayName = Ws;
|
|
6577
|
-
var mr = "MenuItemIndicator", [Us,
|
|
6577
|
+
var mr = "MenuItemIndicator", [Us, Zu] = Xe(
|
|
6578
6578
|
mr,
|
|
6579
6579
|
{ checked: !1 }
|
|
6580
6580
|
), Ks = p.forwardRef(
|
|
6581
6581
|
(e, t) => {
|
|
6582
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
6582
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = Zu(mr, n);
|
|
6583
6583
|
return /* @__PURE__ */ m.jsx(
|
|
6584
6584
|
ft,
|
|
6585
6585
|
{
|
|
@@ -6597,7 +6597,7 @@ var mr = "MenuItemIndicator", [Us, qu] = Xe(
|
|
|
6597
6597
|
}
|
|
6598
6598
|
);
|
|
6599
6599
|
Ks.displayName = mr;
|
|
6600
|
-
var
|
|
6600
|
+
var Ju = "MenuSeparator", Ys = p.forwardRef(
|
|
6601
6601
|
(e, t) => {
|
|
6602
6602
|
const { __scopeMenu: n, ...r } = e;
|
|
6603
6603
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -6611,15 +6611,15 @@ var Zu = "MenuSeparator", Ys = p.forwardRef(
|
|
|
6611
6611
|
);
|
|
6612
6612
|
}
|
|
6613
6613
|
);
|
|
6614
|
-
Ys.displayName =
|
|
6615
|
-
var
|
|
6614
|
+
Ys.displayName = Ju;
|
|
6615
|
+
var Qu = "MenuArrow", Xs = p.forwardRef(
|
|
6616
6616
|
(e, t) => {
|
|
6617
6617
|
const { __scopeMenu: n, ...r } = e, o = Tt(n);
|
|
6618
|
-
return /* @__PURE__ */ m.jsx(
|
|
6618
|
+
return /* @__PURE__ */ m.jsx(Vl, { ...o, ...r, ref: t });
|
|
6619
6619
|
}
|
|
6620
6620
|
);
|
|
6621
|
-
Xs.displayName =
|
|
6622
|
-
var gr = "MenuSub", [
|
|
6621
|
+
Xs.displayName = Qu;
|
|
6622
|
+
var gr = "MenuSub", [ed, qs] = Xe(gr), Zs = (e) => {
|
|
6623
6623
|
const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, s = He(gr, t), a = Tt(t), [i, c] = p.useState(null), [u, d] = p.useState(null), l = Se(o);
|
|
6624
6624
|
return p.useEffect(() => (s.open === !1 && l(!1), () => l(!1)), [s.open, l]), /* @__PURE__ */ m.jsx(ys, { ...a, children: /* @__PURE__ */ m.jsx(
|
|
6625
6625
|
Os,
|
|
@@ -6630,7 +6630,7 @@ var gr = "MenuSub", [Qu, qs] = Xe(gr), Zs = (e) => {
|
|
|
6630
6630
|
content: u,
|
|
6631
6631
|
onContentChange: d,
|
|
6632
6632
|
children: /* @__PURE__ */ m.jsx(
|
|
6633
|
-
|
|
6633
|
+
ed,
|
|
6634
6634
|
{
|
|
6635
6635
|
scope: t,
|
|
6636
6636
|
contentId: it(),
|
|
@@ -6681,7 +6681,7 @@ var yt = "MenuSubTrigger", Js = p.forwardRef(
|
|
|
6681
6681
|
d();
|
|
6682
6682
|
const f = n.content?.getBoundingClientRect();
|
|
6683
6683
|
if (f) {
|
|
6684
|
-
const
|
|
6684
|
+
const h = n.content?.dataset.side, v = h === "right", g = v ? -5 : 5, b = f[v ? "left" : "right"], x = f[v ? "right" : "left"];
|
|
6685
6685
|
s.onPointerGraceIntentChange({
|
|
6686
6686
|
area: [
|
|
6687
6687
|
// Apply a bleed on clientX to ensure that our exit point is
|
|
@@ -6692,7 +6692,7 @@ var yt = "MenuSubTrigger", Js = p.forwardRef(
|
|
|
6692
6692
|
{ x, y: f.bottom },
|
|
6693
6693
|
{ x: b, y: f.bottom }
|
|
6694
6694
|
],
|
|
6695
|
-
side:
|
|
6695
|
+
side: h
|
|
6696
6696
|
}), window.clearTimeout(i.current), i.current = window.setTimeout(
|
|
6697
6697
|
() => s.onPointerGraceIntentChange(null),
|
|
6698
6698
|
300
|
|
@@ -6705,7 +6705,7 @@ var yt = "MenuSubTrigger", Js = p.forwardRef(
|
|
|
6705
6705
|
),
|
|
6706
6706
|
onKeyDown: J(e.onKeyDown, (l) => {
|
|
6707
6707
|
const f = s.searchRef.current !== "";
|
|
6708
|
-
e.disabled || f && l.key === " " ||
|
|
6708
|
+
e.disabled || f && l.key === " " || Du[r.dir].includes(l.key) && (n.onOpenChange(!0), n.content?.focus(), l.preventDefault());
|
|
6709
6709
|
})
|
|
6710
6710
|
}
|
|
6711
6711
|
) });
|
|
@@ -6714,7 +6714,7 @@ var yt = "MenuSubTrigger", Js = p.forwardRef(
|
|
|
6714
6714
|
Js.displayName = yt;
|
|
6715
6715
|
var Qs = "MenuSubContent", ea = p.forwardRef(
|
|
6716
6716
|
(e, t) => {
|
|
6717
|
-
const n =
|
|
6717
|
+
const n = zs(ge, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = He(ge, e.__scopeMenu), a = Ot(ge, e.__scopeMenu), i = qs(Qs, e.__scopeMenu), c = p.useRef(null), u = de(t, c);
|
|
6718
6718
|
return /* @__PURE__ */ m.jsx(Pt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(ft, { present: r || s.open, children: /* @__PURE__ */ m.jsx(Pt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ m.jsx(
|
|
6719
6719
|
fr,
|
|
6720
6720
|
{
|
|
@@ -6755,24 +6755,24 @@ function tn(e) {
|
|
|
6755
6755
|
function hr(e) {
|
|
6756
6756
|
return tn(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
6757
6757
|
}
|
|
6758
|
-
function
|
|
6758
|
+
function td(e) {
|
|
6759
6759
|
const t = document.activeElement;
|
|
6760
6760
|
for (const n of e)
|
|
6761
6761
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
6762
6762
|
}
|
|
6763
|
-
function
|
|
6763
|
+
function nd(e, t) {
|
|
6764
6764
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
6765
6765
|
}
|
|
6766
|
-
function
|
|
6766
|
+
function rd(e, t, n) {
|
|
6767
6767
|
const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
6768
|
-
let a =
|
|
6768
|
+
let a = nd(e, Math.max(s, 0));
|
|
6769
6769
|
o.length === 1 && (a = a.filter((u) => u !== n));
|
|
6770
6770
|
const c = a.find(
|
|
6771
6771
|
(u) => u.toLowerCase().startsWith(o.toLowerCase())
|
|
6772
6772
|
);
|
|
6773
6773
|
return c !== n ? c : void 0;
|
|
6774
6774
|
}
|
|
6775
|
-
function
|
|
6775
|
+
function od(e, t) {
|
|
6776
6776
|
const { x: n, y: r } = e;
|
|
6777
6777
|
let o = !1;
|
|
6778
6778
|
for (let s = 0, a = t.length - 1; s < t.length; a = s++) {
|
|
@@ -6781,18 +6781,18 @@ function rd(e, t) {
|
|
|
6781
6781
|
}
|
|
6782
6782
|
return o;
|
|
6783
6783
|
}
|
|
6784
|
-
function
|
|
6784
|
+
function sd(e, t) {
|
|
6785
6785
|
if (!t) return !1;
|
|
6786
6786
|
const n = { x: e.clientX, y: e.clientY };
|
|
6787
|
-
return
|
|
6787
|
+
return od(n, t);
|
|
6788
6788
|
}
|
|
6789
6789
|
function kt(e) {
|
|
6790
6790
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
6791
6791
|
}
|
|
6792
|
-
var
|
|
6792
|
+
var ad = Ds, id = lr, cd = js, ld = Ls, ud = pr, dd = Fs, fd = mn, pd = Bs, md = Hs, gd = Vs, hd = Ks, vd = Ys, bd = Xs, xd = Zs, yd = Js, wd = ea, gn = "DropdownMenu", [Cd, up] = dt(
|
|
6793
6793
|
gn,
|
|
6794
6794
|
[Is]
|
|
6795
|
-
), ce = Is(), [
|
|
6795
|
+
), ce = Is(), [Sd, na] = Cd(gn), ra = (e) => {
|
|
6796
6796
|
const {
|
|
6797
6797
|
__scopeDropdownMenu: t,
|
|
6798
6798
|
children: n,
|
|
@@ -6808,7 +6808,7 @@ var sd = zs, ad = lr, id = js, cd = Ls, ld = pr, ud = Fs, dd = mn, fd = Bs, pd =
|
|
|
6808
6808
|
caller: gn
|
|
6809
6809
|
});
|
|
6810
6810
|
return /* @__PURE__ */ m.jsx(
|
|
6811
|
-
|
|
6811
|
+
Sd,
|
|
6812
6812
|
{
|
|
6813
6813
|
scope: t,
|
|
6814
6814
|
triggerId: it(),
|
|
@@ -6818,7 +6818,7 @@ var sd = zs, ad = lr, id = js, cd = Ls, ld = pr, ud = Fs, dd = mn, fd = Bs, pd =
|
|
|
6818
6818
|
onOpenChange: l,
|
|
6819
6819
|
onOpenToggle: p.useCallback(() => l((f) => !f), [l]),
|
|
6820
6820
|
modal: i,
|
|
6821
|
-
children: /* @__PURE__ */ m.jsx(
|
|
6821
|
+
children: /* @__PURE__ */ m.jsx(ad, { ...c, open: d, onOpenChange: l, dir: r, modal: i, children: n })
|
|
6822
6822
|
}
|
|
6823
6823
|
);
|
|
6824
6824
|
};
|
|
@@ -6826,7 +6826,7 @@ ra.displayName = gn;
|
|
|
6826
6826
|
var oa = "DropdownMenuTrigger", sa = p.forwardRef(
|
|
6827
6827
|
(e, t) => {
|
|
6828
6828
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = na(oa, n), a = ce(n);
|
|
6829
|
-
return /* @__PURE__ */ m.jsx(
|
|
6829
|
+
return /* @__PURE__ */ m.jsx(id, { asChild: !0, ...a, children: /* @__PURE__ */ m.jsx(
|
|
6830
6830
|
re.button,
|
|
6831
6831
|
{
|
|
6832
6832
|
type: "button",
|
|
@@ -6850,16 +6850,16 @@ var oa = "DropdownMenuTrigger", sa = p.forwardRef(
|
|
|
6850
6850
|
}
|
|
6851
6851
|
);
|
|
6852
6852
|
sa.displayName = oa;
|
|
6853
|
-
var
|
|
6853
|
+
var Ed = "DropdownMenuPortal", aa = (e) => {
|
|
6854
6854
|
const { __scopeDropdownMenu: t, ...n } = e, r = ce(t);
|
|
6855
|
-
return /* @__PURE__ */ m.jsx(
|
|
6855
|
+
return /* @__PURE__ */ m.jsx(cd, { ...r, ...n });
|
|
6856
6856
|
};
|
|
6857
|
-
aa.displayName =
|
|
6857
|
+
aa.displayName = Ed;
|
|
6858
6858
|
var ia = "DropdownMenuContent", ca = p.forwardRef(
|
|
6859
6859
|
(e, t) => {
|
|
6860
6860
|
const { __scopeDropdownMenu: n, ...r } = e, o = na(ia, n), s = ce(n), a = p.useRef(!1);
|
|
6861
6861
|
return /* @__PURE__ */ m.jsx(
|
|
6862
|
-
|
|
6862
|
+
ld,
|
|
6863
6863
|
{
|
|
6864
6864
|
id: o.contentId,
|
|
6865
6865
|
"aria-labelledby": o.triggerId,
|
|
@@ -6886,76 +6886,76 @@ var ia = "DropdownMenuContent", ca = p.forwardRef(
|
|
|
6886
6886
|
}
|
|
6887
6887
|
);
|
|
6888
6888
|
ca.displayName = ia;
|
|
6889
|
-
var
|
|
6889
|
+
var Rd = "DropdownMenuGroup", la = p.forwardRef(
|
|
6890
6890
|
(e, t) => {
|
|
6891
6891
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6892
|
-
return /* @__PURE__ */ m.jsx(
|
|
6892
|
+
return /* @__PURE__ */ m.jsx(ud, { ...o, ...r, ref: t });
|
|
6893
6893
|
}
|
|
6894
6894
|
);
|
|
6895
|
-
la.displayName =
|
|
6896
|
-
var
|
|
6895
|
+
la.displayName = Rd;
|
|
6896
|
+
var Pd = "DropdownMenuLabel", ua = p.forwardRef(
|
|
6897
6897
|
(e, t) => {
|
|
6898
6898
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6899
|
-
return /* @__PURE__ */ m.jsx(
|
|
6899
|
+
return /* @__PURE__ */ m.jsx(dd, { ...o, ...r, ref: t });
|
|
6900
6900
|
}
|
|
6901
6901
|
);
|
|
6902
|
-
ua.displayName =
|
|
6903
|
-
var
|
|
6902
|
+
ua.displayName = Pd;
|
|
6903
|
+
var kd = "DropdownMenuItem", da = p.forwardRef(
|
|
6904
6904
|
(e, t) => {
|
|
6905
6905
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6906
|
-
return /* @__PURE__ */ m.jsx(
|
|
6906
|
+
return /* @__PURE__ */ m.jsx(fd, { ...o, ...r, ref: t });
|
|
6907
6907
|
}
|
|
6908
6908
|
);
|
|
6909
|
-
da.displayName =
|
|
6910
|
-
var
|
|
6911
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6912
|
-
return /* @__PURE__ */ m.jsx(fd, { ...o, ...r, ref: t });
|
|
6913
|
-
});
|
|
6914
|
-
fa.displayName = kd;
|
|
6915
|
-
var Ad = "DropdownMenuRadioGroup", pa = p.forwardRef((e, t) => {
|
|
6909
|
+
da.displayName = kd;
|
|
6910
|
+
var Ad = "DropdownMenuCheckboxItem", fa = p.forwardRef((e, t) => {
|
|
6916
6911
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6917
6912
|
return /* @__PURE__ */ m.jsx(pd, { ...o, ...r, ref: t });
|
|
6918
6913
|
});
|
|
6919
|
-
|
|
6920
|
-
var Md = "
|
|
6914
|
+
fa.displayName = Ad;
|
|
6915
|
+
var Md = "DropdownMenuRadioGroup", pa = p.forwardRef((e, t) => {
|
|
6921
6916
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6922
6917
|
return /* @__PURE__ */ m.jsx(md, { ...o, ...r, ref: t });
|
|
6923
6918
|
});
|
|
6924
|
-
|
|
6925
|
-
var Nd = "
|
|
6919
|
+
pa.displayName = Md;
|
|
6920
|
+
var Nd = "DropdownMenuRadioItem", ma = p.forwardRef((e, t) => {
|
|
6926
6921
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6927
6922
|
return /* @__PURE__ */ m.jsx(gd, { ...o, ...r, ref: t });
|
|
6928
6923
|
});
|
|
6929
|
-
|
|
6930
|
-
var _d = "
|
|
6924
|
+
ma.displayName = Nd;
|
|
6925
|
+
var _d = "DropdownMenuItemIndicator", ga = p.forwardRef((e, t) => {
|
|
6931
6926
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6932
6927
|
return /* @__PURE__ */ m.jsx(hd, { ...o, ...r, ref: t });
|
|
6933
6928
|
});
|
|
6934
|
-
|
|
6935
|
-
var Id = "
|
|
6929
|
+
ga.displayName = _d;
|
|
6930
|
+
var Id = "DropdownMenuSeparator", ha = p.forwardRef((e, t) => {
|
|
6931
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6932
|
+
return /* @__PURE__ */ m.jsx(vd, { ...o, ...r, ref: t });
|
|
6933
|
+
});
|
|
6934
|
+
ha.displayName = Id;
|
|
6935
|
+
var Td = "DropdownMenuArrow", Od = p.forwardRef(
|
|
6936
6936
|
(e, t) => {
|
|
6937
6937
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6938
|
-
return /* @__PURE__ */ m.jsx(
|
|
6938
|
+
return /* @__PURE__ */ m.jsx(bd, { ...o, ...r, ref: t });
|
|
6939
6939
|
}
|
|
6940
6940
|
);
|
|
6941
|
-
|
|
6942
|
-
var
|
|
6941
|
+
Od.displayName = Td;
|
|
6942
|
+
var Dd = (e) => {
|
|
6943
6943
|
const { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: o, defaultOpen: s } = e, a = ce(t), [i, c] = an({
|
|
6944
6944
|
prop: r,
|
|
6945
6945
|
defaultProp: s ?? !1,
|
|
6946
6946
|
onChange: o,
|
|
6947
6947
|
caller: "DropdownMenuSub"
|
|
6948
6948
|
});
|
|
6949
|
-
return /* @__PURE__ */ m.jsx(
|
|
6949
|
+
return /* @__PURE__ */ m.jsx(xd, { ...a, open: i, onOpenChange: c, children: n });
|
|
6950
6950
|
}, zd = "DropdownMenuSubTrigger", va = p.forwardRef((e, t) => {
|
|
6951
6951
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6952
|
-
return /* @__PURE__ */ m.jsx(
|
|
6952
|
+
return /* @__PURE__ */ m.jsx(yd, { ...o, ...r, ref: t });
|
|
6953
6953
|
});
|
|
6954
6954
|
va.displayName = zd;
|
|
6955
|
-
var
|
|
6955
|
+
var jd = "DropdownMenuSubContent", ba = p.forwardRef((e, t) => {
|
|
6956
6956
|
const { __scopeDropdownMenu: n, ...r } = e, o = ce(n);
|
|
6957
6957
|
return /* @__PURE__ */ m.jsx(
|
|
6958
|
-
|
|
6958
|
+
wd,
|
|
6959
6959
|
{
|
|
6960
6960
|
...o,
|
|
6961
6961
|
...r,
|
|
@@ -6971,21 +6971,21 @@ var Dd = "DropdownMenuSubContent", ba = p.forwardRef((e, t) => {
|
|
|
6971
6971
|
}
|
|
6972
6972
|
);
|
|
6973
6973
|
});
|
|
6974
|
-
ba.displayName =
|
|
6975
|
-
var
|
|
6974
|
+
ba.displayName = jd;
|
|
6975
|
+
var Ld = ra, Fd = sa, $d = aa, Bd = ca, Gd = la, Hd = ua, Wd = da, Vd = fa, Ud = pa, Kd = ma, xa = ga, Yd = ha, Xd = Dd, qd = va, Zd = ba;
|
|
6976
6976
|
/**
|
|
6977
6977
|
* @license lucide-react v0.525.0 - ISC
|
|
6978
6978
|
*
|
|
6979
6979
|
* This source code is licensed under the ISC license.
|
|
6980
6980
|
* See the LICENSE file in the root directory of this source tree.
|
|
6981
6981
|
*/
|
|
6982
|
-
const
|
|
6982
|
+
const Jd = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Qd = (e) => e.replace(
|
|
6983
6983
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
6984
6984
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
6985
6985
|
), eo = (e) => {
|
|
6986
|
-
const t =
|
|
6986
|
+
const t = Qd(e);
|
|
6987
6987
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
6988
|
-
}, ya = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
6988
|
+
}, ya = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), ef = (e) => {
|
|
6989
6989
|
for (const t in e)
|
|
6990
6990
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
6991
6991
|
return !0;
|
|
@@ -6996,7 +6996,7 @@ const Zd = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Jd = (
|
|
|
6996
6996
|
* This source code is licensed under the ISC license.
|
|
6997
6997
|
* See the LICENSE file in the root directory of this source tree.
|
|
6998
6998
|
*/
|
|
6999
|
-
var
|
|
6999
|
+
var tf = {
|
|
7000
7000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7001
7001
|
width: 24,
|
|
7002
7002
|
height: 24,
|
|
@@ -7013,7 +7013,7 @@ var ef = {
|
|
|
7013
7013
|
* This source code is licensed under the ISC license.
|
|
7014
7014
|
* See the LICENSE file in the root directory of this source tree.
|
|
7015
7015
|
*/
|
|
7016
|
-
const
|
|
7016
|
+
const nf = Ie(
|
|
7017
7017
|
({
|
|
7018
7018
|
color: e = "currentColor",
|
|
7019
7019
|
size: t = 24,
|
|
@@ -7027,13 +7027,13 @@ const tf = Ie(
|
|
|
7027
7027
|
"svg",
|
|
7028
7028
|
{
|
|
7029
7029
|
ref: c,
|
|
7030
|
-
...
|
|
7030
|
+
...tf,
|
|
7031
7031
|
width: t,
|
|
7032
7032
|
height: t,
|
|
7033
7033
|
stroke: e,
|
|
7034
7034
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
7035
7035
|
className: ya("lucide", o),
|
|
7036
|
-
...!s && !
|
|
7036
|
+
...!s && !ef(i) && { "aria-hidden": "true" },
|
|
7037
7037
|
...i
|
|
7038
7038
|
},
|
|
7039
7039
|
[
|
|
@@ -7050,11 +7050,11 @@ const tf = Ie(
|
|
|
7050
7050
|
*/
|
|
7051
7051
|
const qe = (e, t) => {
|
|
7052
7052
|
const n = Ie(
|
|
7053
|
-
({ className: r, ...o }, s) => Me(
|
|
7053
|
+
({ className: r, ...o }, s) => Me(nf, {
|
|
7054
7054
|
ref: s,
|
|
7055
7055
|
iconNode: t,
|
|
7056
7056
|
className: ya(
|
|
7057
|
-
`lucide-${
|
|
7057
|
+
`lucide-${Jd(eo(e))}`,
|
|
7058
7058
|
`lucide-${e}`,
|
|
7059
7059
|
r
|
|
7060
7060
|
),
|
|
@@ -7069,63 +7069,63 @@ const qe = (e, t) => {
|
|
|
7069
7069
|
* This source code is licensed under the ISC license.
|
|
7070
7070
|
* See the LICENSE file in the root directory of this source tree.
|
|
7071
7071
|
*/
|
|
7072
|
-
const
|
|
7072
|
+
const rf = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], of = qe("check", rf);
|
|
7073
7073
|
/**
|
|
7074
7074
|
* @license lucide-react v0.525.0 - ISC
|
|
7075
7075
|
*
|
|
7076
7076
|
* This source code is licensed under the ISC license.
|
|
7077
7077
|
* See the LICENSE file in the root directory of this source tree.
|
|
7078
7078
|
*/
|
|
7079
|
-
const
|
|
7079
|
+
const sf = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], af = qe("chevron-down", sf);
|
|
7080
7080
|
/**
|
|
7081
7081
|
* @license lucide-react v0.525.0 - ISC
|
|
7082
7082
|
*
|
|
7083
7083
|
* This source code is licensed under the ISC license.
|
|
7084
7084
|
* See the LICENSE file in the root directory of this source tree.
|
|
7085
7085
|
*/
|
|
7086
|
-
const
|
|
7086
|
+
const cf = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], lf = qe("chevron-right", cf);
|
|
7087
7087
|
/**
|
|
7088
7088
|
* @license lucide-react v0.525.0 - ISC
|
|
7089
7089
|
*
|
|
7090
7090
|
* This source code is licensed under the ISC license.
|
|
7091
7091
|
* See the LICENSE file in the root directory of this source tree.
|
|
7092
7092
|
*/
|
|
7093
|
-
const
|
|
7093
|
+
const uf = [
|
|
7094
7094
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
7095
7095
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
7096
|
-
],
|
|
7096
|
+
], df = qe("chevrons-up-down", uf);
|
|
7097
7097
|
/**
|
|
7098
7098
|
* @license lucide-react v0.525.0 - ISC
|
|
7099
7099
|
*
|
|
7100
7100
|
* This source code is licensed under the ISC license.
|
|
7101
7101
|
* See the LICENSE file in the root directory of this source tree.
|
|
7102
7102
|
*/
|
|
7103
|
-
const
|
|
7103
|
+
const ff = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], pf = qe("circle", ff);
|
|
7104
7104
|
/**
|
|
7105
7105
|
* @license lucide-react v0.525.0 - ISC
|
|
7106
7106
|
*
|
|
7107
7107
|
* This source code is licensed under the ISC license.
|
|
7108
7108
|
* See the LICENSE file in the root directory of this source tree.
|
|
7109
7109
|
*/
|
|
7110
|
-
const
|
|
7110
|
+
const mf = [
|
|
7111
7111
|
["line", { x1: "5", x2: "19", y1: "9", y2: "9", key: "1nwqeh" }],
|
|
7112
7112
|
["line", { x1: "5", x2: "19", y1: "15", y2: "15", key: "g8yjpy" }]
|
|
7113
|
-
],
|
|
7113
|
+
], gf = qe("equal", mf);
|
|
7114
7114
|
/**
|
|
7115
7115
|
* @license lucide-react v0.525.0 - ISC
|
|
7116
7116
|
*
|
|
7117
7117
|
* This source code is licensed under the ISC license.
|
|
7118
7118
|
* See the LICENSE file in the root directory of this source tree.
|
|
7119
7119
|
*/
|
|
7120
|
-
const
|
|
7120
|
+
const hf = [
|
|
7121
7121
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
7122
7122
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
7123
|
-
],
|
|
7123
|
+
], vf = qe("x", hf), bf = ({ ...e }) => /* @__PURE__ */ m.jsx(Ld, { "data-slot": "dropdown-menu", ...e }), xf = ({ ...e }) => /* @__PURE__ */ m.jsx(Fd, { "data-slot": "dropdown-menu-trigger", ...e }), yf = ({
|
|
7124
7124
|
className: e,
|
|
7125
7125
|
sideOffset: t = 4,
|
|
7126
7126
|
...n
|
|
7127
|
-
}) => /* @__PURE__ */ m.jsx(
|
|
7128
|
-
|
|
7127
|
+
}) => /* @__PURE__ */ m.jsx($d, { children: /* @__PURE__ */ m.jsx(
|
|
7128
|
+
Bd,
|
|
7129
7129
|
{
|
|
7130
7130
|
"data-slot": "dropdown-menu-content",
|
|
7131
7131
|
sideOffset: t,
|
|
@@ -7135,8 +7135,8 @@ const gf = [
|
|
|
7135
7135
|
),
|
|
7136
7136
|
...n
|
|
7137
7137
|
}
|
|
7138
|
-
) }),
|
|
7139
|
-
|
|
7138
|
+
) }), dp = ({ ...e }) => /* @__PURE__ */ m.jsx(Gd, { "data-slot": "dropdown-menu-group", ...e }), wf = ({ className: e, inset: t, variant: n = "default", ...r }) => /* @__PURE__ */ m.jsx(
|
|
7139
|
+
Wd,
|
|
7140
7140
|
{
|
|
7141
7141
|
"data-slot": "dropdown-menu-item",
|
|
7142
7142
|
"data-inset": t,
|
|
@@ -7147,13 +7147,13 @@ const gf = [
|
|
|
7147
7147
|
),
|
|
7148
7148
|
...r
|
|
7149
7149
|
}
|
|
7150
|
-
),
|
|
7150
|
+
), fp = ({
|
|
7151
7151
|
className: e,
|
|
7152
7152
|
children: t,
|
|
7153
7153
|
checked: n,
|
|
7154
7154
|
...r
|
|
7155
7155
|
}) => /* @__PURE__ */ m.jsxs(
|
|
7156
|
-
|
|
7156
|
+
Vd,
|
|
7157
7157
|
{
|
|
7158
7158
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
7159
7159
|
className: Q(
|
|
@@ -7163,16 +7163,16 @@ const gf = [
|
|
|
7163
7163
|
checked: n,
|
|
7164
7164
|
...r,
|
|
7165
7165
|
children: [
|
|
7166
|
-
/* @__PURE__ */ m.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ m.jsx(xa, { children: /* @__PURE__ */ m.jsx(
|
|
7166
|
+
/* @__PURE__ */ m.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ m.jsx(xa, { children: /* @__PURE__ */ m.jsx(of, { className: "size-4" }) }) }),
|
|
7167
7167
|
t
|
|
7168
7168
|
]
|
|
7169
7169
|
}
|
|
7170
|
-
),
|
|
7170
|
+
), pp = ({ ...e }) => /* @__PURE__ */ m.jsx(Ud, { "data-slot": "dropdown-menu-radio-group", ...e }), mp = ({
|
|
7171
7171
|
className: e,
|
|
7172
7172
|
children: t,
|
|
7173
7173
|
...n
|
|
7174
7174
|
}) => /* @__PURE__ */ m.jsxs(
|
|
7175
|
-
|
|
7175
|
+
Kd,
|
|
7176
7176
|
{
|
|
7177
7177
|
"data-slot": "dropdown-menu-radio-item",
|
|
7178
7178
|
className: Q(
|
|
@@ -7181,30 +7181,30 @@ const gf = [
|
|
|
7181
7181
|
),
|
|
7182
7182
|
...n,
|
|
7183
7183
|
children: [
|
|
7184
|
-
/* @__PURE__ */ m.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ m.jsx(xa, { children: /* @__PURE__ */ m.jsx(
|
|
7184
|
+
/* @__PURE__ */ m.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ m.jsx(xa, { children: /* @__PURE__ */ m.jsx(pf, { className: "size-2 fill-current" }) }) }),
|
|
7185
7185
|
t
|
|
7186
7186
|
]
|
|
7187
7187
|
}
|
|
7188
|
-
),
|
|
7189
|
-
|
|
7188
|
+
), gp = ({ className: e, inset: t, ...n }) => /* @__PURE__ */ m.jsx(
|
|
7189
|
+
Hd,
|
|
7190
7190
|
{
|
|
7191
7191
|
"data-slot": "dropdown-menu-label",
|
|
7192
7192
|
"data-inset": t,
|
|
7193
7193
|
className: Q("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e),
|
|
7194
7194
|
...n
|
|
7195
7195
|
}
|
|
7196
|
-
),
|
|
7196
|
+
), hp = ({
|
|
7197
7197
|
className: e,
|
|
7198
7198
|
...t
|
|
7199
7199
|
}) => /* @__PURE__ */ m.jsx(
|
|
7200
|
-
|
|
7200
|
+
Yd,
|
|
7201
7201
|
{
|
|
7202
7202
|
"data-slot": "dropdown-menu-separator",
|
|
7203
7203
|
className: Q("bg-border -mx-1 my-1 h-px", e),
|
|
7204
7204
|
...t
|
|
7205
7205
|
}
|
|
7206
|
-
),
|
|
7207
|
-
|
|
7206
|
+
), vp = ({ ...e }) => /* @__PURE__ */ m.jsx(Xd, { "data-slot": "dropdown-menu-sub", ...e }), bp = ({ className: e, inset: t, children: n, ...r }) => /* @__PURE__ */ m.jsxs(
|
|
7207
|
+
qd,
|
|
7208
7208
|
{
|
|
7209
7209
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
7210
7210
|
"data-inset": t,
|
|
@@ -7215,14 +7215,14 @@ const gf = [
|
|
|
7215
7215
|
...r,
|
|
7216
7216
|
children: [
|
|
7217
7217
|
n,
|
|
7218
|
-
/* @__PURE__ */ m.jsx(
|
|
7218
|
+
/* @__PURE__ */ m.jsx(lf, { className: "ml-auto size-4" })
|
|
7219
7219
|
]
|
|
7220
7220
|
}
|
|
7221
|
-
),
|
|
7221
|
+
), xp = ({
|
|
7222
7222
|
className: e,
|
|
7223
7223
|
...t
|
|
7224
7224
|
}) => /* @__PURE__ */ m.jsx(
|
|
7225
|
-
|
|
7225
|
+
Zd,
|
|
7226
7226
|
{
|
|
7227
7227
|
"data-slot": "dropdown-menu-sub-content",
|
|
7228
7228
|
className: Q(
|
|
@@ -7231,14 +7231,14 @@ const gf = [
|
|
|
7231
7231
|
),
|
|
7232
7232
|
...t
|
|
7233
7233
|
}
|
|
7234
|
-
), wa = ({ label: e, onClick: t, isLast: n, dropdownItems: r, icon: o }) => r?.length ? /* @__PURE__ */ m.jsxs(
|
|
7235
|
-
/* @__PURE__ */ m.jsx(
|
|
7234
|
+
), wa = ({ label: e, onClick: t, isLast: n, dropdownItems: r, icon: o }) => r?.length ? /* @__PURE__ */ m.jsxs(bf, { children: [
|
|
7235
|
+
/* @__PURE__ */ m.jsx(xf, { asChild: !0, children: /* @__PURE__ */ m.jsxs(Le, { variant: "ghost", size: "sm", className: "p-1 gap-2", children: [
|
|
7236
7236
|
o,
|
|
7237
7237
|
e,
|
|
7238
7238
|
" ",
|
|
7239
|
-
/* @__PURE__ */ m.jsx(
|
|
7239
|
+
/* @__PURE__ */ m.jsx(df, { className: "size-4" })
|
|
7240
7240
|
] }) }),
|
|
7241
|
-
/* @__PURE__ */ m.jsx(
|
|
7241
|
+
/* @__PURE__ */ m.jsx(yf, { className: "bg-background text-foreground", children: r.map((s) => /* @__PURE__ */ m.jsxs(wf, { className: "cursor-pointer gap-2", onClick: s.onClick, children: [
|
|
7242
7242
|
s.icon,
|
|
7243
7243
|
s.label
|
|
7244
7244
|
] }, `dropdown-${s.label}`)) })
|
|
@@ -7259,7 +7259,7 @@ const gf = [
|
|
|
7259
7259
|
e
|
|
7260
7260
|
] });
|
|
7261
7261
|
wa.displayName = "BreadcrumbItem";
|
|
7262
|
-
const
|
|
7262
|
+
const Cf = ({ className: e, items: t, ...n }) => {
|
|
7263
7263
|
const r = t.length - 1;
|
|
7264
7264
|
return /* @__PURE__ */ m.jsx("div", { className: Q("flex items-center", e), ...n, children: t.map((o, s) => /* @__PURE__ */ m.jsxs(p.Fragment, { children: [
|
|
7265
7265
|
s !== 0 && /* @__PURE__ */ m.jsx("span", { className: "mx-1.5 text-muted-foreground", children: "/" }, `${o.label}-separator`),
|
|
@@ -7275,7 +7275,7 @@ const wf = ({ className: e, items: t, ...n }) => {
|
|
|
7275
7275
|
)
|
|
7276
7276
|
] }, `${o.label}-fragment`)) });
|
|
7277
7277
|
};
|
|
7278
|
-
|
|
7278
|
+
Cf.displayName = "Breadcrumb";
|
|
7279
7279
|
const Ca = Ie(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m.jsx(
|
|
7280
7280
|
"div",
|
|
7281
7281
|
{
|
|
@@ -7286,7 +7286,7 @@ const Ca = Ie(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m.jsx(
|
|
|
7286
7286
|
}
|
|
7287
7287
|
));
|
|
7288
7288
|
Ca.displayName = "Container";
|
|
7289
|
-
const
|
|
7289
|
+
const Sf = sn("w-full bg-card flex min-h-10 items-center", {
|
|
7290
7290
|
variants: {
|
|
7291
7291
|
variant: {
|
|
7292
7292
|
default: "px-5 py-2 items-center",
|
|
@@ -7297,7 +7297,7 @@ const Cf = sn("w-full bg-card flex min-h-10 items-center", {
|
|
|
7297
7297
|
variant: "default"
|
|
7298
7298
|
}
|
|
7299
7299
|
}), Sa = Ie(
|
|
7300
|
-
({ className: e, variant: t, children: n, ...r }, o) => /* @__PURE__ */ m.jsx("div", { ref: o, className: Q(
|
|
7300
|
+
({ className: e, variant: t, children: n, ...r }, o) => /* @__PURE__ */ m.jsx("div", { ref: o, className: Q(Sf({ variant: t, className: e })), ...r, children: n })
|
|
7301
7301
|
);
|
|
7302
7302
|
Sa.displayName = "ContainerHeader";
|
|
7303
7303
|
const Ea = Ie(
|
|
@@ -7319,11 +7319,11 @@ const ne = {
|
|
|
7319
7319
|
resizeHandleEnabled: "data-panel-resize-handle-enabled",
|
|
7320
7320
|
resizeHandleId: "data-panel-resize-handle-id",
|
|
7321
7321
|
resizeHandleState: "data-resize-handle-state"
|
|
7322
|
-
}, vr = 10, Ue = lo, to = p.useId,
|
|
7323
|
-
let
|
|
7322
|
+
}, vr = 10, Ue = lo, to = p.useId, Ef = typeof to == "function" ? to : () => null;
|
|
7323
|
+
let Rf = 0;
|
|
7324
7324
|
function br(e = null) {
|
|
7325
|
-
const t =
|
|
7326
|
-
return n.current === null && (n.current = "" +
|
|
7325
|
+
const t = Ef(), n = le(e || t || null);
|
|
7326
|
+
return n.current === null && (n.current = "" + Rf++), e ?? n.current;
|
|
7327
7327
|
}
|
|
7328
7328
|
function Ra({
|
|
7329
7329
|
children: e,
|
|
@@ -7339,8 +7339,8 @@ function Ra({
|
|
|
7339
7339
|
onExpand: d,
|
|
7340
7340
|
onResize: l,
|
|
7341
7341
|
order: f,
|
|
7342
|
-
style:
|
|
7343
|
-
tagName:
|
|
7342
|
+
style: h,
|
|
7343
|
+
tagName: v = "div",
|
|
7344
7344
|
...g
|
|
7345
7345
|
}) {
|
|
7346
7346
|
const b = uo(hn);
|
|
@@ -7413,14 +7413,14 @@ function Ra({
|
|
|
7413
7413
|
}
|
|
7414
7414
|
}), [x, E, w, N, V, G]);
|
|
7415
7415
|
const q = C($.current, o);
|
|
7416
|
-
return Me(
|
|
7416
|
+
return Me(v, {
|
|
7417
7417
|
...g,
|
|
7418
7418
|
children: e,
|
|
7419
7419
|
className: t,
|
|
7420
7420
|
id: V,
|
|
7421
7421
|
style: {
|
|
7422
7422
|
...q,
|
|
7423
|
-
...
|
|
7423
|
+
...h
|
|
7424
7424
|
},
|
|
7425
7425
|
// CSS selectors
|
|
7426
7426
|
[ne.groupId]: M,
|
|
@@ -7436,8 +7436,8 @@ const Pa = Ie((e, t) => Me(Ra, {
|
|
|
7436
7436
|
}));
|
|
7437
7437
|
Ra.displayName = "Panel";
|
|
7438
7438
|
Pa.displayName = "forwardRef(Panel)";
|
|
7439
|
-
let Yn = null, Xt = -1,
|
|
7440
|
-
function
|
|
7439
|
+
let Yn = null, Xt = -1, De = null;
|
|
7440
|
+
function Pf(e, t) {
|
|
7441
7441
|
if (t) {
|
|
7442
7442
|
const n = (t & _a) !== 0, r = (t & Ia) !== 0, o = (t & Ta) !== 0, s = (t & Oa) !== 0;
|
|
7443
7443
|
if (n)
|
|
@@ -7458,18 +7458,18 @@ function Rf(e, t) {
|
|
|
7458
7458
|
return "ns-resize";
|
|
7459
7459
|
}
|
|
7460
7460
|
}
|
|
7461
|
-
function
|
|
7462
|
-
|
|
7461
|
+
function kf() {
|
|
7462
|
+
De !== null && (document.head.removeChild(De), Yn = null, De = null, Xt = -1);
|
|
7463
7463
|
}
|
|
7464
7464
|
function Tn(e, t) {
|
|
7465
7465
|
var n, r;
|
|
7466
|
-
const o =
|
|
7466
|
+
const o = Pf(e, t);
|
|
7467
7467
|
if (Yn !== o) {
|
|
7468
|
-
if (Yn = o,
|
|
7468
|
+
if (Yn = o, De === null && (De = document.createElement("style"), document.head.appendChild(De)), Xt >= 0) {
|
|
7469
7469
|
var s;
|
|
7470
|
-
(s =
|
|
7470
|
+
(s = De.sheet) === null || s === void 0 || s.removeRule(Xt);
|
|
7471
7471
|
}
|
|
7472
|
-
Xt = (n = (r =
|
|
7472
|
+
Xt = (n = (r = De.sheet) === null || r === void 0 ? void 0 : r.insertRule(`*{cursor: ${o} !important;}`)) !== null && n !== void 0 ? n : -1;
|
|
7473
7473
|
}
|
|
7474
7474
|
}
|
|
7475
7475
|
function ka(e) {
|
|
@@ -7498,14 +7498,14 @@ function vn(e) {
|
|
|
7498
7498
|
y: 1 / 0
|
|
7499
7499
|
};
|
|
7500
7500
|
}
|
|
7501
|
-
function
|
|
7501
|
+
function Af() {
|
|
7502
7502
|
if (typeof matchMedia == "function")
|
|
7503
7503
|
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
|
|
7504
7504
|
}
|
|
7505
|
-
function
|
|
7505
|
+
function Mf(e, t, n) {
|
|
7506
7506
|
return e.x < t.x + t.width && e.x + e.width > t.x && e.y < t.y + t.height && e.y + e.height > t.y;
|
|
7507
7507
|
}
|
|
7508
|
-
function
|
|
7508
|
+
function Nf(e, t) {
|
|
7509
7509
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
7510
7510
|
const n = {
|
|
7511
7511
|
a: oo(e),
|
|
@@ -7533,21 +7533,21 @@ function Mf(e, t) {
|
|
|
7533
7533
|
}
|
|
7534
7534
|
return Math.sign(o.a - o.b);
|
|
7535
7535
|
}
|
|
7536
|
-
const
|
|
7537
|
-
function
|
|
7536
|
+
const _f = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
7537
|
+
function If(e) {
|
|
7538
7538
|
var t;
|
|
7539
7539
|
const n = getComputedStyle((t = Na(e)) !== null && t !== void 0 ? t : e).display;
|
|
7540
7540
|
return n === "flex" || n === "inline-flex";
|
|
7541
7541
|
}
|
|
7542
|
-
function
|
|
7542
|
+
function Tf(e) {
|
|
7543
7543
|
const t = getComputedStyle(e);
|
|
7544
|
-
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" ||
|
|
7544
|
+
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || If(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || _f.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
7545
7545
|
}
|
|
7546
7546
|
function no(e) {
|
|
7547
7547
|
let t = e.length;
|
|
7548
7548
|
for (; t--; ) {
|
|
7549
7549
|
const n = e[t];
|
|
7550
|
-
if (Y(n, "Missing node"),
|
|
7550
|
+
if (Y(n, "Missing node"), Tf(n)) return n;
|
|
7551
7551
|
}
|
|
7552
7552
|
return null;
|
|
7553
7553
|
}
|
|
@@ -7566,10 +7566,10 @@ function Na(e) {
|
|
|
7566
7566
|
} = e;
|
|
7567
7567
|
return t && t instanceof ShadowRoot ? t.host : t;
|
|
7568
7568
|
}
|
|
7569
|
-
const _a = 1, Ia = 2, Ta = 4, Oa = 8,
|
|
7570
|
-
let be = [], at = !1,
|
|
7569
|
+
const _a = 1, Ia = 2, Ta = 4, Oa = 8, Of = Af() === "coarse";
|
|
7570
|
+
let be = [], at = !1, ze = /* @__PURE__ */ new Map(), bn = /* @__PURE__ */ new Map();
|
|
7571
7571
|
const At = /* @__PURE__ */ new Set();
|
|
7572
|
-
function
|
|
7572
|
+
function Df(e, t, n, r, o) {
|
|
7573
7573
|
var s;
|
|
7574
7574
|
const {
|
|
7575
7575
|
ownerDocument: a
|
|
@@ -7578,12 +7578,12 @@ function Of(e, t, n, r, o) {
|
|
|
7578
7578
|
element: t,
|
|
7579
7579
|
hitAreaMargins: r,
|
|
7580
7580
|
setResizeHandlerState: o
|
|
7581
|
-
}, c = (s =
|
|
7582
|
-
return
|
|
7581
|
+
}, c = (s = ze.get(a)) !== null && s !== void 0 ? s : 0;
|
|
7582
|
+
return ze.set(a, c + 1), At.add(i), nn(), function() {
|
|
7583
7583
|
var d;
|
|
7584
7584
|
bn.delete(e), At.delete(i);
|
|
7585
|
-
const l = (d =
|
|
7586
|
-
if (
|
|
7585
|
+
const l = (d = ze.get(a)) !== null && d !== void 0 ? d : 1;
|
|
7586
|
+
if (ze.set(a, l - 1), nn(), l === 1 && ze.delete(a), be.includes(i)) {
|
|
7587
7587
|
const f = be.indexOf(i);
|
|
7588
7588
|
f >= 0 && be.splice(f, 1), yr(), o("up", !0, null);
|
|
7589
7589
|
}
|
|
@@ -7600,7 +7600,7 @@ function zf(e) {
|
|
|
7600
7600
|
target: t,
|
|
7601
7601
|
x: n,
|
|
7602
7602
|
y: r
|
|
7603
|
-
}), nn(), be.length > 0 && (rn("down", e), e.preventDefault(),
|
|
7603
|
+
}), nn(), be.length > 0 && (rn("down", e), e.preventDefault(), Da(t) || e.stopImmediatePropagation());
|
|
7604
7604
|
}
|
|
7605
7605
|
function On(e) {
|
|
7606
7606
|
const {
|
|
@@ -7619,20 +7619,20 @@ function On(e) {
|
|
|
7619
7619
|
}
|
|
7620
7620
|
rn("move", e), yr(), be.length > 0 && e.preventDefault();
|
|
7621
7621
|
}
|
|
7622
|
-
function
|
|
7622
|
+
function Dn(e) {
|
|
7623
7623
|
const {
|
|
7624
7624
|
target: t
|
|
7625
7625
|
} = e, {
|
|
7626
7626
|
x: n,
|
|
7627
7627
|
y: r
|
|
7628
7628
|
} = vn(e);
|
|
7629
|
-
bn.clear(), at = !1, be.length > 0 && (e.preventDefault(),
|
|
7629
|
+
bn.clear(), at = !1, be.length > 0 && (e.preventDefault(), Da(t) || e.stopImmediatePropagation()), rn("up", e), xr({
|
|
7630
7630
|
target: t,
|
|
7631
7631
|
x: n,
|
|
7632
7632
|
y: r
|
|
7633
7633
|
}), yr(), nn();
|
|
7634
7634
|
}
|
|
7635
|
-
function
|
|
7635
|
+
function Da(e) {
|
|
7636
7636
|
let t = e;
|
|
7637
7637
|
for (; t; ) {
|
|
7638
7638
|
if (t.hasAttribute(ne.resizeHandle))
|
|
@@ -7657,19 +7657,19 @@ function xr({
|
|
|
7657
7657
|
left: u,
|
|
7658
7658
|
right: d,
|
|
7659
7659
|
top: l
|
|
7660
|
-
} = i, f =
|
|
7660
|
+
} = i, f = Of ? a.coarse : a.fine;
|
|
7661
7661
|
if (t >= u - f && t <= d + f && n >= l - f && n <= c + f) {
|
|
7662
7662
|
if (r !== null && document.contains(r) && s !== r && !s.contains(r) && !r.contains(s) && // Calculating stacking order has a cost, so we should avoid it if possible
|
|
7663
7663
|
// That is why we only check potentially intersecting handles,
|
|
7664
7664
|
// and why we skip if the event target is within the handle's DOM
|
|
7665
|
-
|
|
7666
|
-
let
|
|
7667
|
-
for (;
|
|
7668
|
-
if (
|
|
7665
|
+
Nf(r, s) > 0) {
|
|
7666
|
+
let v = r, g = !1;
|
|
7667
|
+
for (; v && !v.contains(s); ) {
|
|
7668
|
+
if (Mf(v.getBoundingClientRect(), i)) {
|
|
7669
7669
|
g = !0;
|
|
7670
7670
|
break;
|
|
7671
7671
|
}
|
|
7672
|
-
|
|
7672
|
+
v = v.parentElement;
|
|
7673
7673
|
}
|
|
7674
7674
|
if (g)
|
|
7675
7675
|
return;
|
|
@@ -7678,7 +7678,7 @@ function xr({
|
|
|
7678
7678
|
}
|
|
7679
7679
|
});
|
|
7680
7680
|
}
|
|
7681
|
-
function
|
|
7681
|
+
function zn(e, t) {
|
|
7682
7682
|
bn.set(e, t);
|
|
7683
7683
|
}
|
|
7684
7684
|
function yr() {
|
|
@@ -7692,7 +7692,7 @@ function yr() {
|
|
|
7692
7692
|
let n = 0;
|
|
7693
7693
|
bn.forEach((r) => {
|
|
7694
7694
|
n |= r;
|
|
7695
|
-
}), e && t ? Tn("intersection", n) : e ? Tn("horizontal", n) : t ? Tn("vertical", n) :
|
|
7695
|
+
}), e && t ? Tn("intersection", n) : e ? Tn("horizontal", n) : t ? Tn("vertical", n) : kf();
|
|
7696
7696
|
}
|
|
7697
7697
|
let jn;
|
|
7698
7698
|
function nn() {
|
|
@@ -7702,17 +7702,17 @@ function nn() {
|
|
|
7702
7702
|
capture: !0,
|
|
7703
7703
|
signal: jn.signal
|
|
7704
7704
|
};
|
|
7705
|
-
At.size && (at ? (be.length > 0 &&
|
|
7705
|
+
At.size && (at ? (be.length > 0 && ze.forEach((n, r) => {
|
|
7706
7706
|
const {
|
|
7707
7707
|
body: o
|
|
7708
7708
|
} = r;
|
|
7709
|
-
n > 0 && (o.addEventListener("contextmenu",
|
|
7710
|
-
}),
|
|
7709
|
+
n > 0 && (o.addEventListener("contextmenu", Dn, t), o.addEventListener("pointerleave", On, t), o.addEventListener("pointermove", On, t));
|
|
7710
|
+
}), ze.forEach((n, r) => {
|
|
7711
7711
|
const {
|
|
7712
7712
|
body: o
|
|
7713
7713
|
} = r;
|
|
7714
|
-
o.addEventListener("pointerup",
|
|
7715
|
-
})) :
|
|
7714
|
+
o.addEventListener("pointerup", Dn, t), o.addEventListener("pointercancel", Dn, t);
|
|
7715
|
+
})) : ze.forEach((n, r) => {
|
|
7716
7716
|
const {
|
|
7717
7717
|
body: o
|
|
7718
7718
|
} = r;
|
|
@@ -7727,7 +7727,7 @@ function rn(e, t) {
|
|
|
7727
7727
|
r(e, o, t);
|
|
7728
7728
|
});
|
|
7729
7729
|
}
|
|
7730
|
-
function
|
|
7730
|
+
function jf() {
|
|
7731
7731
|
const [e, t] = Ae(0);
|
|
7732
7732
|
return ie(() => t((n) => n + 1), []);
|
|
7733
7733
|
}
|
|
@@ -7744,7 +7744,7 @@ function ke(e, t, n = vr) {
|
|
|
7744
7744
|
function fe(e, t, n) {
|
|
7745
7745
|
return Ye(e, t, n) === 0;
|
|
7746
7746
|
}
|
|
7747
|
-
function
|
|
7747
|
+
function Lf(e, t, n) {
|
|
7748
7748
|
if (e.length !== t.length)
|
|
7749
7749
|
return !1;
|
|
7750
7750
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -7793,13 +7793,13 @@ function wt({
|
|
|
7793
7793
|
const l = e < 0 ? c : i, f = n[l];
|
|
7794
7794
|
Y(f, `Panel constraints not found for index ${l}`);
|
|
7795
7795
|
const {
|
|
7796
|
-
collapsedSize:
|
|
7797
|
-
collapsible:
|
|
7796
|
+
collapsedSize: h = 0,
|
|
7797
|
+
collapsible: v,
|
|
7798
7798
|
minSize: g = 0
|
|
7799
7799
|
} = f;
|
|
7800
|
-
if (
|
|
7800
|
+
if (v) {
|
|
7801
7801
|
const b = t[l];
|
|
7802
|
-
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b,
|
|
7802
|
+
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b, h)) {
|
|
7803
7803
|
const x = g - b;
|
|
7804
7804
|
Ye(x, Math.abs(e)) > 0 && (e = e < 0 ? 0 - x : x);
|
|
7805
7805
|
}
|
|
@@ -7809,14 +7809,14 @@ function wt({
|
|
|
7809
7809
|
const l = e < 0 ? i : c, f = n[l];
|
|
7810
7810
|
Y(f, `No panel constraints found for index ${l}`);
|
|
7811
7811
|
const {
|
|
7812
|
-
collapsedSize:
|
|
7813
|
-
collapsible:
|
|
7812
|
+
collapsedSize: h = 0,
|
|
7813
|
+
collapsible: v,
|
|
7814
7814
|
minSize: g = 0
|
|
7815
7815
|
} = f;
|
|
7816
|
-
if (
|
|
7816
|
+
if (v) {
|
|
7817
7817
|
const b = t[l];
|
|
7818
7818
|
if (Y(b != null, `Previous layout not found for panel index ${l}`), fe(b, g)) {
|
|
7819
|
-
const x = b -
|
|
7819
|
+
const x = b - h;
|
|
7820
7820
|
Ye(x, Math.abs(e)) > 0 && (e = e < 0 ? 0 - x : x);
|
|
7821
7821
|
}
|
|
7822
7822
|
}
|
|
@@ -7824,7 +7824,7 @@ function wt({
|
|
|
7824
7824
|
}
|
|
7825
7825
|
{
|
|
7826
7826
|
const l = e < 0 ? 1 : -1;
|
|
7827
|
-
let f = e < 0 ? c : i,
|
|
7827
|
+
let f = e < 0 ? c : i, h = 0;
|
|
7828
7828
|
for (; ; ) {
|
|
7829
7829
|
const g = t[f];
|
|
7830
7830
|
Y(g != null, `Previous layout not found for panel index ${f}`);
|
|
@@ -7833,41 +7833,41 @@ function wt({
|
|
|
7833
7833
|
panelIndex: f,
|
|
7834
7834
|
size: 100
|
|
7835
7835
|
}) - g;
|
|
7836
|
-
if (
|
|
7836
|
+
if (h += x, f += l, f < 0 || f >= n.length)
|
|
7837
7837
|
break;
|
|
7838
7838
|
}
|
|
7839
|
-
const
|
|
7840
|
-
e = e < 0 ? 0 -
|
|
7839
|
+
const v = Math.min(Math.abs(e), Math.abs(h));
|
|
7840
|
+
e = e < 0 ? 0 - v : v;
|
|
7841
7841
|
}
|
|
7842
7842
|
{
|
|
7843
7843
|
let f = e < 0 ? i : c;
|
|
7844
7844
|
for (; f >= 0 && f < n.length; ) {
|
|
7845
|
-
const
|
|
7846
|
-
Y(
|
|
7847
|
-
const g =
|
|
7845
|
+
const h = Math.abs(e) - Math.abs(u), v = t[f];
|
|
7846
|
+
Y(v != null, `Previous layout not found for panel index ${f}`);
|
|
7847
|
+
const g = v - h, b = rt({
|
|
7848
7848
|
panelConstraints: n,
|
|
7849
7849
|
panelIndex: f,
|
|
7850
7850
|
size: g
|
|
7851
7851
|
});
|
|
7852
|
-
if (!fe(
|
|
7852
|
+
if (!fe(v, b) && (u += v - b, a[f] = b, u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3), void 0, {
|
|
7853
7853
|
numeric: !0
|
|
7854
7854
|
}) >= 0))
|
|
7855
7855
|
break;
|
|
7856
7856
|
e < 0 ? f-- : f++;
|
|
7857
7857
|
}
|
|
7858
7858
|
}
|
|
7859
|
-
if (
|
|
7859
|
+
if (Lf(o, a))
|
|
7860
7860
|
return o;
|
|
7861
7861
|
{
|
|
7862
7862
|
const l = e < 0 ? c : i, f = t[l];
|
|
7863
7863
|
Y(f != null, `Previous layout not found for panel index ${l}`);
|
|
7864
|
-
const
|
|
7864
|
+
const h = f + u, v = rt({
|
|
7865
7865
|
panelConstraints: n,
|
|
7866
7866
|
panelIndex: l,
|
|
7867
|
-
size:
|
|
7867
|
+
size: h
|
|
7868
7868
|
});
|
|
7869
|
-
if (a[l] =
|
|
7870
|
-
let g =
|
|
7869
|
+
if (a[l] = v, !fe(v, h)) {
|
|
7870
|
+
let g = h - v, x = e < 0 ? c : i;
|
|
7871
7871
|
for (; x >= 0 && x < n.length; ) {
|
|
7872
7872
|
const E = a[x];
|
|
7873
7873
|
Y(E != null, `Previous layout not found for panel index ${x}`);
|
|
@@ -7885,7 +7885,7 @@ function wt({
|
|
|
7885
7885
|
const d = a.reduce((l, f) => f + l, 0);
|
|
7886
7886
|
return fe(d, 100) ? a : o;
|
|
7887
7887
|
}
|
|
7888
|
-
function
|
|
7888
|
+
function Ff({
|
|
7889
7889
|
layout: e,
|
|
7890
7890
|
panelsArray: t,
|
|
7891
7891
|
pivotIndices: n
|
|
@@ -7894,12 +7894,12 @@ function Lf({
|
|
|
7894
7894
|
const i = n[0];
|
|
7895
7895
|
Y(i != null, "No pivot index found"), t.forEach((l, f) => {
|
|
7896
7896
|
const {
|
|
7897
|
-
constraints:
|
|
7897
|
+
constraints: h
|
|
7898
7898
|
} = l, {
|
|
7899
|
-
maxSize:
|
|
7899
|
+
maxSize: v = 100,
|
|
7900
7900
|
minSize: g = 0
|
|
7901
|
-
} =
|
|
7902
|
-
f === i ? (r = g, o =
|
|
7901
|
+
} = h;
|
|
7902
|
+
f === i ? (r = g, o = v) : (s += g, a += v);
|
|
7903
7903
|
});
|
|
7904
7904
|
const c = Math.min(o, 100 - s), u = Math.max(r, 100 - a), d = e[i];
|
|
7905
7905
|
return {
|
|
@@ -7911,19 +7911,19 @@ function Lf({
|
|
|
7911
7911
|
function Mt(e, t = document) {
|
|
7912
7912
|
return Array.from(t.querySelectorAll(`[${ne.resizeHandleId}][data-panel-group-id="${e}"]`));
|
|
7913
7913
|
}
|
|
7914
|
-
function
|
|
7914
|
+
function za(e, t, n = document) {
|
|
7915
7915
|
const o = Mt(e, n).findIndex((s) => s.getAttribute(ne.resizeHandleId) === t);
|
|
7916
7916
|
return o ?? null;
|
|
7917
7917
|
}
|
|
7918
7918
|
function ja(e, t, n) {
|
|
7919
|
-
const r =
|
|
7919
|
+
const r = za(e, t, n);
|
|
7920
7920
|
return r != null ? [r, r + 1] : [-1, -1];
|
|
7921
7921
|
}
|
|
7922
|
-
function
|
|
7922
|
+
function $f(e) {
|
|
7923
7923
|
return e instanceof HTMLElement ? !0 : typeof e == "object" && e !== null && "tagName" in e && "getAttribute" in e;
|
|
7924
7924
|
}
|
|
7925
7925
|
function La(e, t = document) {
|
|
7926
|
-
if (
|
|
7926
|
+
if ($f(t) && t.dataset.panelGroupId == e)
|
|
7927
7927
|
return t;
|
|
7928
7928
|
const n = t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);
|
|
7929
7929
|
return n || null;
|
|
@@ -7932,12 +7932,12 @@ function xn(e, t = document) {
|
|
|
7932
7932
|
const n = t.querySelector(`[${ne.resizeHandleId}="${e}"]`);
|
|
7933
7933
|
return n || null;
|
|
7934
7934
|
}
|
|
7935
|
-
function
|
|
7935
|
+
function Bf(e, t, n, r = document) {
|
|
7936
7936
|
var o, s, a, i;
|
|
7937
7937
|
const c = xn(t, r), u = Mt(e, r), d = c ? u.indexOf(c) : -1, l = (o = (s = n[d]) === null || s === void 0 ? void 0 : s.id) !== null && o !== void 0 ? o : null, f = (a = (i = n[d + 1]) === null || i === void 0 ? void 0 : i.id) !== null && a !== void 0 ? a : null;
|
|
7938
7938
|
return [l, f];
|
|
7939
7939
|
}
|
|
7940
|
-
function
|
|
7940
|
+
function Gf({
|
|
7941
7941
|
committedValuesRef: e,
|
|
7942
7942
|
eagerValuesRef: t,
|
|
7943
7943
|
groupId: n,
|
|
@@ -7957,14 +7957,14 @@ function Bf({
|
|
|
7957
7957
|
valueMax: u,
|
|
7958
7958
|
valueMin: d,
|
|
7959
7959
|
valueNow: l
|
|
7960
|
-
} =
|
|
7960
|
+
} = Ff({
|
|
7961
7961
|
layout: r,
|
|
7962
7962
|
panelsArray: o,
|
|
7963
7963
|
pivotIndices: [c, c + 1]
|
|
7964
7964
|
}), f = i[c];
|
|
7965
7965
|
if (f != null) {
|
|
7966
|
-
const
|
|
7967
|
-
Y(
|
|
7966
|
+
const h = o[c];
|
|
7967
|
+
Y(h, `No panel data found for index "${c}"`), f.setAttribute("aria-controls", h.id), f.setAttribute("aria-valuemax", "" + Math.round(u)), f.setAttribute("aria-valuemin", "" + Math.round(d)), f.setAttribute("aria-valuenow", l != null ? "" + Math.round(l) : "");
|
|
7968
7968
|
}
|
|
7969
7969
|
}
|
|
7970
7970
|
return () => {
|
|
@@ -7984,10 +7984,10 @@ function Bf({
|
|
|
7984
7984
|
const d = Mt(n, s);
|
|
7985
7985
|
Y(d, `No resize handles found for group id "${n}"`);
|
|
7986
7986
|
const l = d.map((f) => {
|
|
7987
|
-
const
|
|
7988
|
-
Y(
|
|
7989
|
-
const [
|
|
7990
|
-
if (
|
|
7987
|
+
const h = f.getAttribute(ne.resizeHandleId);
|
|
7988
|
+
Y(h, "Resize handle element has no handle id attribute");
|
|
7989
|
+
const [v, g] = Bf(n, h, c, s);
|
|
7990
|
+
if (v == null || g == null)
|
|
7991
7991
|
return () => {
|
|
7992
7992
|
};
|
|
7993
7993
|
const b = (x) => {
|
|
@@ -7995,7 +7995,7 @@ function Bf({
|
|
|
7995
7995
|
switch (x.key) {
|
|
7996
7996
|
case "Enter": {
|
|
7997
7997
|
x.preventDefault();
|
|
7998
|
-
const E = c.findIndex((w) => w.id ===
|
|
7998
|
+
const E = c.findIndex((w) => w.id === v);
|
|
7999
7999
|
if (E >= 0) {
|
|
8000
8000
|
const w = c[E];
|
|
8001
8001
|
Y(w, `No panel data found for index ${E}`);
|
|
@@ -8009,7 +8009,7 @@ function Bf({
|
|
|
8009
8009
|
delta: fe(C, M) ? S - M : M - C,
|
|
8010
8010
|
initialLayout: r,
|
|
8011
8011
|
panelConstraints: c.map((G) => G.constraints),
|
|
8012
|
-
pivotIndices: ja(n,
|
|
8012
|
+
pivotIndices: ja(n, h, s),
|
|
8013
8013
|
prevLayout: r,
|
|
8014
8014
|
trigger: "keyboard"
|
|
8015
8015
|
});
|
|
@@ -8044,7 +8044,7 @@ function Fa(e, t) {
|
|
|
8044
8044
|
} = vn(t);
|
|
8045
8045
|
return n ? r : o;
|
|
8046
8046
|
}
|
|
8047
|
-
function
|
|
8047
|
+
function Hf(e, t, n, r, o) {
|
|
8048
8048
|
const s = n === "horizontal", a = xn(t, o);
|
|
8049
8049
|
Y(a, `No resize handle element found for id "${t}"`);
|
|
8050
8050
|
const i = a.getAttribute(ne.groupId);
|
|
@@ -8057,7 +8057,7 @@ function Gf(e, t, n, r, o) {
|
|
|
8057
8057
|
const l = d.getBoundingClientRect(), f = s ? l.width : l.height;
|
|
8058
8058
|
return (u - c) / f * 100;
|
|
8059
8059
|
}
|
|
8060
|
-
function
|
|
8060
|
+
function Wf(e, t, n, r, o, s) {
|
|
8061
8061
|
if (ka(e)) {
|
|
8062
8062
|
const a = n === "horizontal";
|
|
8063
8063
|
let i = 0;
|
|
@@ -8085,9 +8085,9 @@ function Hf(e, t, n, r, o, s) {
|
|
|
8085
8085
|
}
|
|
8086
8086
|
return c;
|
|
8087
8087
|
} else
|
|
8088
|
-
return r == null ? 0 :
|
|
8088
|
+
return r == null ? 0 : Hf(e, t, n, r, s);
|
|
8089
8089
|
}
|
|
8090
|
-
function
|
|
8090
|
+
function Vf({
|
|
8091
8091
|
panelDataArray: e
|
|
8092
8092
|
}) {
|
|
8093
8093
|
const t = Array(e.length), n = e.map((s) => s.constraints);
|
|
@@ -8129,10 +8129,10 @@ function tt(e, t, n) {
|
|
|
8129
8129
|
n[c] = r;
|
|
8130
8130
|
const {
|
|
8131
8131
|
onCollapse: f,
|
|
8132
|
-
onExpand:
|
|
8133
|
-
onResize:
|
|
8132
|
+
onExpand: h,
|
|
8133
|
+
onResize: v
|
|
8134
8134
|
} = a;
|
|
8135
|
-
|
|
8135
|
+
v && v(r, l), d && (f || h) && (h && (l == null || ke(l, u)) && !ke(r, u) && h(), f && (l == null || !ke(l, u)) && ke(r, u) && f());
|
|
8136
8136
|
}
|
|
8137
8137
|
});
|
|
8138
8138
|
}
|
|
@@ -8144,7 +8144,7 @@ function Vt(e, t) {
|
|
|
8144
8144
|
return !1;
|
|
8145
8145
|
return !0;
|
|
8146
8146
|
}
|
|
8147
|
-
function
|
|
8147
|
+
function Uf({
|
|
8148
8148
|
defaultSize: e,
|
|
8149
8149
|
dragState: t,
|
|
8150
8150
|
layout: n,
|
|
@@ -8165,7 +8165,7 @@ function Vf({
|
|
|
8165
8165
|
pointerEvents: t !== null ? "none" : void 0
|
|
8166
8166
|
};
|
|
8167
8167
|
}
|
|
8168
|
-
function
|
|
8168
|
+
function Kf(e, t = 10) {
|
|
8169
8169
|
let n = null;
|
|
8170
8170
|
return (...o) => {
|
|
8171
8171
|
n !== null && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -8212,12 +8212,12 @@ function Ga(e, t) {
|
|
|
8212
8212
|
}
|
|
8213
8213
|
return null;
|
|
8214
8214
|
}
|
|
8215
|
-
function
|
|
8215
|
+
function Yf(e, t, n) {
|
|
8216
8216
|
var r, o;
|
|
8217
8217
|
const s = (r = Ga(e, n)) !== null && r !== void 0 ? r : {}, a = Ba(t);
|
|
8218
8218
|
return (o = s[a]) !== null && o !== void 0 ? o : null;
|
|
8219
8219
|
}
|
|
8220
|
-
function
|
|
8220
|
+
function Xf(e, t, n, r, o) {
|
|
8221
8221
|
var s;
|
|
8222
8222
|
const a = $a(e), i = Ba(t), c = (s = Ga(e, o)) !== null && s !== void 0 ? s : {};
|
|
8223
8223
|
c[i] = {
|
|
@@ -8269,7 +8269,7 @@ function io({
|
|
|
8269
8269
|
}
|
|
8270
8270
|
return n;
|
|
8271
8271
|
}
|
|
8272
|
-
const
|
|
8272
|
+
const qf = 100, Ct = {
|
|
8273
8273
|
getItem: (e) => (ao(Ct), Ct.getItem(e)),
|
|
8274
8274
|
setItem: (e, t) => {
|
|
8275
8275
|
ao(Ct), Ct.setItem(e, t);
|
|
@@ -8289,10 +8289,10 @@ function Ha({
|
|
|
8289
8289
|
tagName: d = "div",
|
|
8290
8290
|
...l
|
|
8291
8291
|
}) {
|
|
8292
|
-
const f = br(s),
|
|
8292
|
+
const f = br(s), h = le(null), [v, g] = Ae(null), [b, x] = Ae([]), E = jf(), w = le({}), C = le(/* @__PURE__ */ new Map()), M = le(0), N = le({
|
|
8293
8293
|
autoSaveId: e,
|
|
8294
8294
|
direction: r,
|
|
8295
|
-
dragState:
|
|
8295
|
+
dragState: v,
|
|
8296
8296
|
id: f,
|
|
8297
8297
|
keyboardResizeBy: i,
|
|
8298
8298
|
onLayout: a,
|
|
@@ -8318,24 +8318,24 @@ function Ha({
|
|
|
8318
8318
|
const {
|
|
8319
8319
|
onLayout: _
|
|
8320
8320
|
} = N.current, {
|
|
8321
|
-
layout:
|
|
8321
|
+
layout: z,
|
|
8322
8322
|
panelDataArray: L
|
|
8323
8323
|
} = S.current, k = io({
|
|
8324
8324
|
layout: P,
|
|
8325
8325
|
panelConstraints: L.map((T) => T.constraints)
|
|
8326
8326
|
});
|
|
8327
|
-
so(
|
|
8327
|
+
so(z, k) || (x(k), S.current.layout = k, _ && _(k), tt(L, k, w.current));
|
|
8328
8328
|
}
|
|
8329
8329
|
}), []), Ue(() => {
|
|
8330
|
-
N.current.autoSaveId = e, N.current.direction = r, N.current.dragState =
|
|
8331
|
-
}),
|
|
8330
|
+
N.current.autoSaveId = e, N.current.direction = r, N.current.dragState = v, N.current.id = f, N.current.onLayout = a, N.current.storage = c;
|
|
8331
|
+
}), Gf({
|
|
8332
8332
|
committedValuesRef: N,
|
|
8333
8333
|
eagerValuesRef: S,
|
|
8334
8334
|
groupId: f,
|
|
8335
8335
|
layout: b,
|
|
8336
8336
|
panelDataArray: S.current.panelDataArray,
|
|
8337
8337
|
setLayout: x,
|
|
8338
|
-
panelGroupElement:
|
|
8338
|
+
panelGroupElement: h.current
|
|
8339
8339
|
}), je(() => {
|
|
8340
8340
|
const {
|
|
8341
8341
|
panelDataArray: P
|
|
@@ -8344,9 +8344,9 @@ function Ha({
|
|
|
8344
8344
|
if (b.length === 0 || b.length !== P.length)
|
|
8345
8345
|
return;
|
|
8346
8346
|
let _ = co[e];
|
|
8347
|
-
_ == null && (_ =
|
|
8348
|
-
const
|
|
8349
|
-
_(e,
|
|
8347
|
+
_ == null && (_ = Kf(Xf, qf), co[e] = _);
|
|
8348
|
+
const z = [...P], L = new Map(C.current);
|
|
8349
|
+
_(e, z, L, b, c);
|
|
8350
8350
|
}
|
|
8351
8351
|
}, [e, b, c]), je(() => {
|
|
8352
8352
|
});
|
|
@@ -8354,7 +8354,7 @@ function Ha({
|
|
|
8354
8354
|
const {
|
|
8355
8355
|
onLayout: _
|
|
8356
8356
|
} = N.current, {
|
|
8357
|
-
layout:
|
|
8357
|
+
layout: z,
|
|
8358
8358
|
panelDataArray: L
|
|
8359
8359
|
} = S.current;
|
|
8360
8360
|
if (P.constraints.collapsible) {
|
|
@@ -8362,23 +8362,23 @@ function Ha({
|
|
|
8362
8362
|
collapsedSize: T = 0,
|
|
8363
8363
|
panelSize: K,
|
|
8364
8364
|
pivotIndices: ee
|
|
8365
|
-
} = Ve(L, P,
|
|
8365
|
+
} = Ve(L, P, z);
|
|
8366
8366
|
if (Y(K != null, `Panel size not found for panel "${P.id}"`), !ke(K, T)) {
|
|
8367
8367
|
C.current.set(P.id, K);
|
|
8368
8368
|
const ae = nt(L, P) === L.length - 1 ? K - T : T - K, te = wt({
|
|
8369
8369
|
delta: ae,
|
|
8370
|
-
initialLayout:
|
|
8370
|
+
initialLayout: z,
|
|
8371
8371
|
panelConstraints: k,
|
|
8372
8372
|
pivotIndices: ee,
|
|
8373
|
-
prevLayout:
|
|
8373
|
+
prevLayout: z,
|
|
8374
8374
|
trigger: "imperative-api"
|
|
8375
8375
|
});
|
|
8376
|
-
Vt(
|
|
8376
|
+
Vt(z, te) || (x(te), S.current.layout = te, _ && _(te), tt(L, te, w.current));
|
|
8377
8377
|
}
|
|
8378
8378
|
}
|
|
8379
8379
|
}, []), G = ie((P, _) => {
|
|
8380
8380
|
const {
|
|
8381
|
-
onLayout:
|
|
8381
|
+
onLayout: z
|
|
8382
8382
|
} = N.current, {
|
|
8383
8383
|
layout: L,
|
|
8384
8384
|
panelDataArray: k
|
|
@@ -8399,54 +8399,54 @@ function Ha({
|
|
|
8399
8399
|
prevLayout: L,
|
|
8400
8400
|
trigger: "imperative-api"
|
|
8401
8401
|
});
|
|
8402
|
-
Vt(L, ue) || (x(ue), S.current.layout = ue,
|
|
8402
|
+
Vt(L, ue) || (x(ue), S.current.layout = ue, z && z(ue), tt(k, ue, w.current));
|
|
8403
8403
|
}
|
|
8404
8404
|
}
|
|
8405
8405
|
}, []), H = ie((P) => {
|
|
8406
8406
|
const {
|
|
8407
8407
|
layout: _,
|
|
8408
|
-
panelDataArray:
|
|
8408
|
+
panelDataArray: z
|
|
8409
8409
|
} = S.current, {
|
|
8410
8410
|
panelSize: L
|
|
8411
|
-
} = Ve(
|
|
8411
|
+
} = Ve(z, P, _);
|
|
8412
8412
|
return Y(L != null, `Panel size not found for panel "${P.id}"`), L;
|
|
8413
8413
|
}, []), V = ie((P, _) => {
|
|
8414
8414
|
const {
|
|
8415
|
-
panelDataArray:
|
|
8416
|
-
} = S.current, L = nt(
|
|
8417
|
-
return
|
|
8415
|
+
panelDataArray: z
|
|
8416
|
+
} = S.current, L = nt(z, P);
|
|
8417
|
+
return Uf({
|
|
8418
8418
|
defaultSize: _,
|
|
8419
|
-
dragState:
|
|
8419
|
+
dragState: v,
|
|
8420
8420
|
layout: b,
|
|
8421
|
-
panelData:
|
|
8421
|
+
panelData: z,
|
|
8422
8422
|
panelIndex: L
|
|
8423
8423
|
});
|
|
8424
|
-
}, [
|
|
8424
|
+
}, [v, b]), $ = ie((P) => {
|
|
8425
8425
|
const {
|
|
8426
8426
|
layout: _,
|
|
8427
|
-
panelDataArray:
|
|
8427
|
+
panelDataArray: z
|
|
8428
8428
|
} = S.current, {
|
|
8429
8429
|
collapsedSize: L = 0,
|
|
8430
8430
|
collapsible: k,
|
|
8431
8431
|
panelSize: T
|
|
8432
|
-
} = Ve(
|
|
8432
|
+
} = Ve(z, P, _);
|
|
8433
8433
|
return Y(T != null, `Panel size not found for panel "${P.id}"`), k === !0 && ke(T, L);
|
|
8434
8434
|
}, []), q = ie((P) => {
|
|
8435
8435
|
const {
|
|
8436
8436
|
layout: _,
|
|
8437
|
-
panelDataArray:
|
|
8437
|
+
panelDataArray: z
|
|
8438
8438
|
} = S.current, {
|
|
8439
8439
|
collapsedSize: L = 0,
|
|
8440
8440
|
collapsible: k,
|
|
8441
8441
|
panelSize: T
|
|
8442
|
-
} = Ve(
|
|
8442
|
+
} = Ve(z, P, _);
|
|
8443
8443
|
return Y(T != null, `Panel size not found for panel "${P.id}"`), !k || Ye(T, L) > 0;
|
|
8444
8444
|
}, []), B = ie((P) => {
|
|
8445
8445
|
const {
|
|
8446
8446
|
panelDataArray: _
|
|
8447
8447
|
} = S.current;
|
|
8448
|
-
_.push(P), _.sort((
|
|
8449
|
-
const k =
|
|
8448
|
+
_.push(P), _.sort((z, L) => {
|
|
8449
|
+
const k = z.order, T = L.order;
|
|
8450
8450
|
return k == null && T == null ? 0 : k == null ? -1 : T == null ? 1 : k - T;
|
|
8451
8451
|
}), S.current.panelDataArrayChanged = !0, E();
|
|
8452
8452
|
}, [E]);
|
|
@@ -8456,17 +8456,17 @@ function Ha({
|
|
|
8456
8456
|
const {
|
|
8457
8457
|
autoSaveId: P,
|
|
8458
8458
|
onLayout: _,
|
|
8459
|
-
storage:
|
|
8459
|
+
storage: z
|
|
8460
8460
|
} = N.current, {
|
|
8461
8461
|
layout: L,
|
|
8462
8462
|
panelDataArray: k
|
|
8463
8463
|
} = S.current;
|
|
8464
8464
|
let T = null;
|
|
8465
8465
|
if (P) {
|
|
8466
|
-
const ee =
|
|
8466
|
+
const ee = Yf(P, k, z);
|
|
8467
8467
|
ee && (C.current = new Map(Object.entries(ee.expandToSizes)), T = ee.layout);
|
|
8468
8468
|
}
|
|
8469
|
-
T == null && (T =
|
|
8469
|
+
T == null && (T = Vf({
|
|
8470
8470
|
panelDataArray: k
|
|
8471
8471
|
}));
|
|
8472
8472
|
const K = io({
|
|
@@ -8483,10 +8483,10 @@ function Ha({
|
|
|
8483
8483
|
}, []);
|
|
8484
8484
|
const W = ie((P) => {
|
|
8485
8485
|
let _ = !1;
|
|
8486
|
-
const
|
|
8487
|
-
return
|
|
8486
|
+
const z = h.current;
|
|
8487
|
+
return z && window.getComputedStyle(z, null).getPropertyValue("direction") === "rtl" && (_ = !0), function(k) {
|
|
8488
8488
|
k.preventDefault();
|
|
8489
|
-
const T =
|
|
8489
|
+
const T = h.current;
|
|
8490
8490
|
if (!T)
|
|
8491
8491
|
return () => null;
|
|
8492
8492
|
const {
|
|
@@ -8499,24 +8499,24 @@ function Ha({
|
|
|
8499
8499
|
layout: he,
|
|
8500
8500
|
panelDataArray: gt
|
|
8501
8501
|
} = S.current, {
|
|
8502
|
-
initialLayout:
|
|
8502
|
+
initialLayout: Dt
|
|
8503
8503
|
} = ee ?? {}, yn = ja(se, P, T);
|
|
8504
|
-
let ue =
|
|
8504
|
+
let ue = Wf(k, P, K, ee, ae, T);
|
|
8505
8505
|
const wr = K === "horizontal";
|
|
8506
8506
|
wr && _ && (ue = -ue);
|
|
8507
8507
|
const Ya = gt.map((Xa) => Xa.constraints), ht = wt({
|
|
8508
8508
|
delta: ue,
|
|
8509
|
-
initialLayout:
|
|
8509
|
+
initialLayout: Dt ?? he,
|
|
8510
8510
|
panelConstraints: Ya,
|
|
8511
8511
|
pivotIndices: yn,
|
|
8512
8512
|
prevLayout: he,
|
|
8513
8513
|
trigger: ka(k) ? "keyboard" : "mouse-or-touch"
|
|
8514
8514
|
}), Cr = !Vt(he, ht);
|
|
8515
|
-
(Aa(k) || Ma(k)) && M.current != ue && (M.current = ue, !Cr && ue !== 0 ? wr ?
|
|
8515
|
+
(Aa(k) || Ma(k)) && M.current != ue && (M.current = ue, !Cr && ue !== 0 ? wr ? zn(P, ue < 0 ? _a : Ia) : zn(P, ue < 0 ? Ta : Oa) : zn(P, 0)), Cr && (x(ht), S.current.layout = ht, te && te(ht), tt(gt, ht, w.current));
|
|
8516
8516
|
};
|
|
8517
8517
|
}, []), F = ie((P, _) => {
|
|
8518
8518
|
const {
|
|
8519
|
-
onLayout:
|
|
8519
|
+
onLayout: z
|
|
8520
8520
|
} = N.current, {
|
|
8521
8521
|
layout: L,
|
|
8522
8522
|
panelDataArray: k
|
|
@@ -8533,10 +8533,10 @@ function Ha({
|
|
|
8533
8533
|
prevLayout: L,
|
|
8534
8534
|
trigger: "imperative-api"
|
|
8535
8535
|
});
|
|
8536
|
-
Vt(L, te) || (x(te), S.current.layout = te,
|
|
8536
|
+
Vt(L, te) || (x(te), S.current.layout = te, z && z(te), tt(k, te, w.current));
|
|
8537
8537
|
}, []), Z = ie((P, _) => {
|
|
8538
8538
|
const {
|
|
8539
|
-
layout:
|
|
8539
|
+
layout: z,
|
|
8540
8540
|
panelDataArray: L
|
|
8541
8541
|
} = S.current, {
|
|
8542
8542
|
collapsedSize: k = 0,
|
|
@@ -8548,19 +8548,19 @@ function Ha({
|
|
|
8548
8548
|
minSize: ae = 0
|
|
8549
8549
|
} = P.constraints, {
|
|
8550
8550
|
panelSize: te
|
|
8551
|
-
} = Ve(L, P,
|
|
8551
|
+
} = Ve(L, P, z);
|
|
8552
8552
|
te != null && (T && ee && ke(te, k) ? ke(k, K) || F(P, K) : te < ae ? F(P, ae) : te > se && F(P, se));
|
|
8553
8553
|
}, [F]), A = ie((P, _) => {
|
|
8554
8554
|
const {
|
|
8555
|
-
direction:
|
|
8555
|
+
direction: z
|
|
8556
8556
|
} = N.current, {
|
|
8557
8557
|
layout: L
|
|
8558
8558
|
} = S.current;
|
|
8559
|
-
if (!
|
|
8559
|
+
if (!h.current)
|
|
8560
8560
|
return;
|
|
8561
|
-
const k = xn(P,
|
|
8561
|
+
const k = xn(P, h.current);
|
|
8562
8562
|
Y(k, `Drag handle element not found for id "${P}"`);
|
|
8563
|
-
const T = Fa(
|
|
8563
|
+
const T = Fa(z, _);
|
|
8564
8564
|
g({
|
|
8565
8565
|
dragHandleId: P,
|
|
8566
8566
|
dragHandleRect: k.getBoundingClientRect(),
|
|
@@ -8572,12 +8572,12 @@ function Ha({
|
|
|
8572
8572
|
}, []), y = ie((P) => {
|
|
8573
8573
|
const {
|
|
8574
8574
|
panelDataArray: _
|
|
8575
|
-
} = S.current,
|
|
8576
|
-
|
|
8575
|
+
} = S.current, z = nt(_, P);
|
|
8576
|
+
z >= 0 && (_.splice(z, 1), delete w.current[P.id], S.current.panelDataArrayChanged = !0, E());
|
|
8577
8577
|
}, [E]), j = Xn(() => ({
|
|
8578
8578
|
collapsePanel: R,
|
|
8579
8579
|
direction: r,
|
|
8580
|
-
dragState:
|
|
8580
|
+
dragState: v,
|
|
8581
8581
|
expandPanel: G,
|
|
8582
8582
|
getPanelSize: H,
|
|
8583
8583
|
getPanelStyle: V,
|
|
@@ -8591,8 +8591,8 @@ function Ha({
|
|
|
8591
8591
|
startDragging: A,
|
|
8592
8592
|
stopDragging: I,
|
|
8593
8593
|
unregisterPanel: y,
|
|
8594
|
-
panelGroupElement:
|
|
8595
|
-
}), [R,
|
|
8594
|
+
panelGroupElement: h.current
|
|
8595
|
+
}), [R, v, r, G, H, V, f, $, q, Z, B, W, F, A, I, y]), U = {
|
|
8596
8596
|
display: "flex",
|
|
8597
8597
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
8598
8598
|
height: "100%",
|
|
@@ -8606,7 +8606,7 @@ function Ha({
|
|
|
8606
8606
|
children: t,
|
|
8607
8607
|
className: n,
|
|
8608
8608
|
id: s,
|
|
8609
|
-
ref:
|
|
8609
|
+
ref: h,
|
|
8610
8610
|
style: {
|
|
8611
8611
|
...U,
|
|
8612
8612
|
...u
|
|
@@ -8634,7 +8634,7 @@ function Ve(e, t, n) {
|
|
|
8634
8634
|
pivotIndices: s
|
|
8635
8635
|
};
|
|
8636
8636
|
}
|
|
8637
|
-
function
|
|
8637
|
+
function Zf({
|
|
8638
8638
|
disabled: e,
|
|
8639
8639
|
handleId: t,
|
|
8640
8640
|
resizeHandler: n,
|
|
@@ -8662,7 +8662,7 @@ function qf({
|
|
|
8662
8662
|
a.preventDefault();
|
|
8663
8663
|
const i = o.getAttribute(ne.groupId);
|
|
8664
8664
|
Y(i, `No group element found for id "${i}"`);
|
|
8665
|
-
const c = Mt(i, r), u =
|
|
8665
|
+
const c = Mt(i, r), u = za(i, t, r);
|
|
8666
8666
|
Y(u !== null, `No resize element found for id "${t}"`);
|
|
8667
8667
|
const d = a.shiftKey ? u > 0 ? u - 1 : c.length - 1 : u + 1 < c.length ? u + 1 : 0;
|
|
8668
8668
|
c[d].focus();
|
|
@@ -8689,8 +8689,8 @@ function Va({
|
|
|
8689
8689
|
onPointerUp: d,
|
|
8690
8690
|
style: l = {},
|
|
8691
8691
|
tabIndex: f = 0,
|
|
8692
|
-
tagName:
|
|
8693
|
-
...
|
|
8692
|
+
tagName: h = "div",
|
|
8693
|
+
...v
|
|
8694
8694
|
}) {
|
|
8695
8695
|
var g, b;
|
|
8696
8696
|
const x = le(null), E = le({
|
|
@@ -8732,11 +8732,11 @@ function Va({
|
|
|
8732
8732
|
const j = x.current;
|
|
8733
8733
|
Y(j, "Element ref not attached");
|
|
8734
8734
|
let U = !1;
|
|
8735
|
-
return
|
|
8735
|
+
return Df(H, j, C, {
|
|
8736
8736
|
coarse: A,
|
|
8737
8737
|
fine: I
|
|
8738
|
-
}, (_,
|
|
8739
|
-
if (!
|
|
8738
|
+
}, (_, z, L) => {
|
|
8739
|
+
if (!z) {
|
|
8740
8740
|
$("inactive");
|
|
8741
8741
|
return;
|
|
8742
8742
|
}
|
|
@@ -8769,13 +8769,13 @@ function Va({
|
|
|
8769
8769
|
}
|
|
8770
8770
|
}
|
|
8771
8771
|
});
|
|
8772
|
-
}, [A, C, n, I, N, H, W, S, R]),
|
|
8772
|
+
}, [A, C, n, I, N, H, W, S, R]), Zf({
|
|
8773
8773
|
disabled: n,
|
|
8774
8774
|
handleId: H,
|
|
8775
8775
|
resizeHandler: W,
|
|
8776
8776
|
panelGroupElement: G
|
|
8777
|
-
}), Me(
|
|
8778
|
-
...
|
|
8777
|
+
}), Me(h, {
|
|
8778
|
+
...v,
|
|
8779
8779
|
children: e,
|
|
8780
8780
|
className: t,
|
|
8781
8781
|
id: o,
|
|
@@ -8806,7 +8806,7 @@ function Va({
|
|
|
8806
8806
|
});
|
|
8807
8807
|
}
|
|
8808
8808
|
Va.displayName = "PanelResizeHandle";
|
|
8809
|
-
const
|
|
8809
|
+
const Jf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" }) => /* @__PURE__ */ m.jsxs(Sa, { variant: r, children: [
|
|
8810
8810
|
e,
|
|
8811
8811
|
/* @__PURE__ */ m.jsx("div", { className: "flex-1" }),
|
|
8812
8812
|
n && /* @__PURE__ */ m.jsx(
|
|
@@ -8816,10 +8816,10 @@ const Zf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8816
8816
|
onClick: n,
|
|
8817
8817
|
"aria-label": t ? "Expand panel" : "Collapse panel",
|
|
8818
8818
|
className: Q("h-8 px-3 [&_svg]:size-5", { "mr-5": r === "tabs" }),
|
|
8819
|
-
children: /* @__PURE__ */ m.jsx(
|
|
8819
|
+
children: /* @__PURE__ */ m.jsx(af, { className: Q("transition-transform", { "-rotate-180": !t }) })
|
|
8820
8820
|
}
|
|
8821
8821
|
)
|
|
8822
|
-
] }),
|
|
8822
|
+
] }), Qf = () => /* @__PURE__ */ m.jsx("div", { className: "relative", children: /* @__PURE__ */ m.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ m.jsx(Va, { className: "group relative", children: /* @__PURE__ */ m.jsx("div", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-background border border-border", children: /* @__PURE__ */ m.jsx(gf, { className: "h-4 w-4 text-muted-foreground" }) }) }) }) }), yp = ({
|
|
8823
8823
|
id: e,
|
|
8824
8824
|
header: t,
|
|
8825
8825
|
children: n,
|
|
@@ -8837,9 +8837,9 @@ const Zf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8837
8837
|
} catch (b) {
|
|
8838
8838
|
console.warn("Failed to toggle panel:", b);
|
|
8839
8839
|
}
|
|
8840
|
-
}, []), f = ie(() => u(!0), []),
|
|
8840
|
+
}, []), f = ie(() => u(!0), []), h = ie(() => u(!1), []), v = Xn(() => {
|
|
8841
8841
|
const g = /* @__PURE__ */ m.jsxs(Ca, { className: "h-full", children: [
|
|
8842
|
-
/* @__PURE__ */ m.jsx(
|
|
8842
|
+
/* @__PURE__ */ m.jsx(Jf, { header: t, isCollapsed: c, variant: s, onToggle: l }),
|
|
8843
8843
|
/* @__PURE__ */ m.jsx(Ea, { children: n })
|
|
8844
8844
|
] });
|
|
8845
8845
|
return s == "tabs" ? /* @__PURE__ */ m.jsx(Qn, { className: "h-full", defaultValue: a, onValueChange: i, children: g }) : g;
|
|
@@ -8853,13 +8853,13 @@ const Zf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8853
8853
|
ref: d,
|
|
8854
8854
|
className: Q("min-h-[42px]", o),
|
|
8855
8855
|
onCollapse: f,
|
|
8856
|
-
onExpand:
|
|
8857
|
-
children:
|
|
8856
|
+
onExpand: h,
|
|
8857
|
+
children: v
|
|
8858
8858
|
}
|
|
8859
8859
|
),
|
|
8860
|
-
r && /* @__PURE__ */ m.jsx(
|
|
8860
|
+
r && /* @__PURE__ */ m.jsx(Qf, {})
|
|
8861
8861
|
] });
|
|
8862
|
-
},
|
|
8862
|
+
}, wp = ({ children: e, ...t }) => {
|
|
8863
8863
|
const [n, r] = Ae(0);
|
|
8864
8864
|
return /* @__PURE__ */ m.jsx(
|
|
8865
8865
|
Wa,
|
|
@@ -8877,7 +8877,7 @@ const Zf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8877
8877
|
})
|
|
8878
8878
|
}
|
|
8879
8879
|
);
|
|
8880
|
-
},
|
|
8880
|
+
}, ep = ({ title: e, subtitle: t, actions: n, className: r, children: o, onClose: s }) => /* @__PURE__ */ m.jsx(
|
|
8881
8881
|
"div",
|
|
8882
8882
|
{
|
|
8883
8883
|
className: Q("bg-muted-foreground/5 text-foreground border-l border-border overflow-hidden w-1/3", r),
|
|
@@ -8887,7 +8887,7 @@ const Zf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8887
8887
|
/* @__PURE__ */ m.jsx("div", { className: "text-lg font-semibold text-foreground tracking-[-0.25px] leading-tight", children: e }),
|
|
8888
8888
|
/* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
8889
8889
|
n?.map((a, i) => /* @__PURE__ */ m.jsx(Le, { onClick: a.onClick, variant: "ghost", size: "icon", "aria-label": a.label, children: a.icon }, i)),
|
|
8890
|
-
/* @__PURE__ */ m.jsx(Le, { onClick: s, variant: "ghost", size: "icon", "aria-label": "Close", children: /* @__PURE__ */ m.jsx(
|
|
8890
|
+
/* @__PURE__ */ m.jsx(Le, { onClick: s, variant: "ghost", size: "icon", "aria-label": "Close", children: /* @__PURE__ */ m.jsx(vf, { className: "w-4 h-4 text-muted-foreground" }) })
|
|
8891
8891
|
] })
|
|
8892
8892
|
] }),
|
|
8893
8893
|
t && /* @__PURE__ */ m.jsx("div", { className: "text-md font-medium text-muted-foreground tracking-[-0.25px] leading-tight", children: t })
|
|
@@ -8896,14 +8896,14 @@ const Zf = ({ header: e, isCollapsed: t, onToggle: n, variant: r = "default" })
|
|
|
8896
8896
|
] })
|
|
8897
8897
|
}
|
|
8898
8898
|
);
|
|
8899
|
-
|
|
8900
|
-
const
|
|
8899
|
+
ep.displayName = "SidePanel";
|
|
8900
|
+
const tp = ({ children: e }) => /* @__PURE__ */ m.jsx("table", { className: "w-full", children: e }), np = ({ title: e, children: t }) => /* @__PURE__ */ m.jsxs("tr", { children: [
|
|
8901
8901
|
/* @__PURE__ */ m.jsx("td", { className: "text-md min-w-[100px] font-medium", children: e }),
|
|
8902
8902
|
/* @__PURE__ */ m.jsx("td", { className: "py-2 text-muted-foreground font-medium", children: t })
|
|
8903
8903
|
] });
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
var
|
|
8904
|
+
tp.displayName = "SidePanelDetail";
|
|
8905
|
+
np.displayName = "SidePanelDetailItem";
|
|
8906
|
+
var rp = "Label", Ua = p.forwardRef((e, t) => /* @__PURE__ */ m.jsx(
|
|
8907
8907
|
re.label,
|
|
8908
8908
|
{
|
|
8909
8909
|
...e,
|
|
@@ -8913,9 +8913,9 @@ var np = "Label", Ua = p.forwardRef((e, t) => /* @__PURE__ */ m.jsx(
|
|
|
8913
8913
|
}
|
|
8914
8914
|
}
|
|
8915
8915
|
));
|
|
8916
|
-
Ua.displayName =
|
|
8916
|
+
Ua.displayName = rp;
|
|
8917
8917
|
var Ka = Ua;
|
|
8918
|
-
const
|
|
8918
|
+
const op = ({
|
|
8919
8919
|
className: e,
|
|
8920
8920
|
...t
|
|
8921
8921
|
}) => /* @__PURE__ */ m.jsx(
|
|
@@ -8929,8 +8929,8 @@ const rp = ({
|
|
|
8929
8929
|
...t
|
|
8930
8930
|
}
|
|
8931
8931
|
);
|
|
8932
|
-
|
|
8933
|
-
const
|
|
8932
|
+
op.displayName = Ka.displayName;
|
|
8933
|
+
const sp = sn(
|
|
8934
8934
|
"inline-flex items-center rounded-full px-4 py-1 text-xs font-bold transition-colors",
|
|
8935
8935
|
{
|
|
8936
8936
|
variants: {
|
|
@@ -8947,37 +8947,38 @@ const op = sn(
|
|
|
8947
8947
|
variant: "default"
|
|
8948
8948
|
}
|
|
8949
8949
|
}
|
|
8950
|
-
),
|
|
8951
|
-
|
|
8950
|
+
), ap = ({ className: e, variant: t, ...n }) => /* @__PURE__ */ m.jsx("div", { className: Q(sp({ variant: t }), e), ...n });
|
|
8951
|
+
ap.displayName = "Badge";
|
|
8952
8952
|
export {
|
|
8953
|
-
|
|
8954
|
-
|
|
8953
|
+
ap as Badge,
|
|
8954
|
+
Cf as Breadcrumb,
|
|
8955
8955
|
wa as BreadcrumbItem,
|
|
8956
8956
|
Le as Button,
|
|
8957
|
-
|
|
8958
|
-
|
|
8957
|
+
yp as CollapsiblePanel,
|
|
8958
|
+
wp as CollapsiblePanelGroup,
|
|
8959
8959
|
Ca as Container,
|
|
8960
8960
|
Ea as ContainerContent,
|
|
8961
8961
|
Sa as ContainerHeader,
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8962
|
+
bf as DropdownMenu,
|
|
8963
|
+
fp as DropdownMenuCheckboxItem,
|
|
8964
|
+
yf as DropdownMenuContent,
|
|
8965
|
+
dp as DropdownMenuGroup,
|
|
8966
|
+
wf as DropdownMenuItem,
|
|
8967
|
+
gp as DropdownMenuLabel,
|
|
8968
|
+
pp as DropdownMenuRadioGroup,
|
|
8969
|
+
mp as DropdownMenuRadioItem,
|
|
8970
|
+
hp as DropdownMenuSeparator,
|
|
8971
|
+
vp as DropdownMenuSub,
|
|
8972
|
+
xp as DropdownMenuSubContent,
|
|
8973
|
+
bp as DropdownMenuSubTrigger,
|
|
8974
|
+
xf as DropdownMenuTrigger,
|
|
8975
8975
|
Wi as Input,
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
ep as
|
|
8980
|
-
tp as
|
|
8976
|
+
op as Label,
|
|
8977
|
+
yc as Panel,
|
|
8978
|
+
xc as PanelDetailItem,
|
|
8979
|
+
ep as SidePanel,
|
|
8980
|
+
tp as SidePanelDetail,
|
|
8981
|
+
np as SidePanelDetailItem,
|
|
8981
8982
|
Qn as Tabs,
|
|
8982
8983
|
Ko as TabsContent,
|
|
8983
8984
|
Vo as TabsList,
|