@gouvfr-lasuite/ui-kit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1028 -1024
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as x from "react";
|
|
2
|
-
import
|
|
2
|
+
import L, { useRef as V, useCallback as ee, useState as re, useContext as le, useEffect as Q, createContext as ce, useMemo as X, cloneElement as Do, forwardRef as ht, useId as ch, Fragment as dh, Children as fh, memo as fa, createElement as ki, PureComponent as hh, isValidElement as ph, useLayoutEffect as xu, useImperativeHandle as gh } from "react";
|
|
3
3
|
import { CunninghamProvider as vh, Button as ha, useCunningham as Tu } from "@openfun/cunningham-react";
|
|
4
4
|
import * as mh from "react-dom";
|
|
5
5
|
import Cu, { flushSync as Du, createPortal as Pu } from "react-dom";
|
|
@@ -63,9 +63,9 @@ function Sh() {
|
|
|
63
63
|
return "Portal";
|
|
64
64
|
case y:
|
|
65
65
|
return "Profiler";
|
|
66
|
-
case
|
|
66
|
+
case D:
|
|
67
67
|
return "StrictMode";
|
|
68
|
-
case
|
|
68
|
+
case z:
|
|
69
69
|
return "Suspense";
|
|
70
70
|
case w:
|
|
71
71
|
return "SuspenseList";
|
|
@@ -76,17 +76,17 @@ function Sh() {
|
|
|
76
76
|
), E.$$typeof) {
|
|
77
77
|
case B:
|
|
78
78
|
return (E.displayName || "Context") + ".Provider";
|
|
79
|
-
case
|
|
79
|
+
case k:
|
|
80
80
|
return (E._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case N:
|
|
82
|
-
var
|
|
83
|
-
return E = E.displayName, E || (E =
|
|
82
|
+
var q = E.render;
|
|
83
|
+
return E = E.displayName, E || (E = q.displayName || q.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
|
|
84
84
|
case O:
|
|
85
|
-
return
|
|
86
|
-
case
|
|
87
|
-
|
|
85
|
+
return q = E.displayName || null, q !== null ? q : t(E.type) || "Memo";
|
|
86
|
+
case j:
|
|
87
|
+
q = E._payload, E = E._init;
|
|
88
88
|
try {
|
|
89
|
-
return t(E(
|
|
89
|
+
return t(E(q));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -98,15 +98,15 @@ function Sh() {
|
|
|
98
98
|
function n(E) {
|
|
99
99
|
try {
|
|
100
100
|
e(E);
|
|
101
|
-
var
|
|
101
|
+
var q = !1;
|
|
102
102
|
} catch {
|
|
103
|
-
|
|
103
|
+
q = !0;
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var
|
|
108
|
-
return
|
|
109
|
-
|
|
105
|
+
if (q) {
|
|
106
|
+
q = console;
|
|
107
|
+
var Y = q.error, de = typeof Symbol == "function" && Symbol.toStringTag && E[Symbol.toStringTag] || E.constructor.name || "Object";
|
|
108
|
+
return Y.call(
|
|
109
|
+
q,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
111
|
de
|
|
112
112
|
), e(E);
|
|
@@ -115,8 +115,8 @@ function Sh() {
|
|
|
115
115
|
function r() {
|
|
116
116
|
}
|
|
117
117
|
function i() {
|
|
118
|
-
if (
|
|
119
|
-
|
|
118
|
+
if (A === 0) {
|
|
119
|
+
M = console.log, W = console.info, U = console.warn, K = console.error, te = console.group, ae = console.groupCollapsed, ye = console.groupEnd;
|
|
120
120
|
var E = {
|
|
121
121
|
configurable: !0,
|
|
122
122
|
enumerable: !0,
|
|
@@ -133,22 +133,22 @@ function Sh() {
|
|
|
133
133
|
groupEnd: E
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
A++;
|
|
137
137
|
}
|
|
138
138
|
function o() {
|
|
139
|
-
if (
|
|
139
|
+
if (A--, A === 0) {
|
|
140
140
|
var E = { configurable: !0, enumerable: !0, writable: !0 };
|
|
141
141
|
Object.defineProperties(console, {
|
|
142
|
-
log:
|
|
143
|
-
info:
|
|
144
|
-
warn:
|
|
145
|
-
error:
|
|
146
|
-
group:
|
|
147
|
-
groupCollapsed:
|
|
148
|
-
groupEnd:
|
|
142
|
+
log: H({}, E, { value: M }),
|
|
143
|
+
info: H({}, E, { value: W }),
|
|
144
|
+
warn: H({}, E, { value: U }),
|
|
145
|
+
error: H({}, E, { value: K }),
|
|
146
|
+
group: H({}, E, { value: te }),
|
|
147
|
+
groupCollapsed: H({}, E, { value: ae }),
|
|
148
|
+
groupEnd: H({}, E, { value: ye })
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
0 >
|
|
151
|
+
0 > A && console.error(
|
|
152
152
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
153
153
|
);
|
|
154
154
|
}
|
|
@@ -156,26 +156,26 @@ function Sh() {
|
|
|
156
156
|
if (me === void 0)
|
|
157
157
|
try {
|
|
158
158
|
throw Error();
|
|
159
|
-
} catch (
|
|
160
|
-
var
|
|
161
|
-
me =
|
|
162
|
-
at`) ? " (<anonymous>)" : -1 <
|
|
159
|
+
} catch (Y) {
|
|
160
|
+
var q = Y.stack.trim().match(/\n( *(at )?)/);
|
|
161
|
+
me = q && q[1] || "", fe = -1 < Y.stack.indexOf(`
|
|
162
|
+
at`) ? " (<anonymous>)" : -1 < Y.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
163
163
|
}
|
|
164
164
|
return `
|
|
165
165
|
` + me + E + fe;
|
|
166
166
|
}
|
|
167
|
-
function l(E,
|
|
167
|
+
function l(E, q) {
|
|
168
168
|
if (!E || Ee) return "";
|
|
169
|
-
var
|
|
170
|
-
if (
|
|
171
|
-
Ee = !0,
|
|
169
|
+
var Y = ue.get(E);
|
|
170
|
+
if (Y !== void 0) return Y;
|
|
171
|
+
Ee = !0, Y = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
172
172
|
var de = null;
|
|
173
|
-
de =
|
|
173
|
+
de = J.H, J.H = null, i();
|
|
174
174
|
try {
|
|
175
175
|
var De = {
|
|
176
176
|
DetermineComponentFrameRoot: function() {
|
|
177
177
|
try {
|
|
178
|
-
if (
|
|
178
|
+
if (q) {
|
|
179
179
|
var vt = function() {
|
|
180
180
|
throw Error();
|
|
181
181
|
};
|
|
@@ -257,22 +257,22 @@ function Sh() {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
} finally {
|
|
260
|
-
Ee = !1,
|
|
260
|
+
Ee = !1, J.H = de, o(), Error.prepareStackTrace = Y;
|
|
261
261
|
}
|
|
262
262
|
return Ie = (Ie = E ? E.displayName || E.name : "") ? a(Ie) : "", typeof E == "function" && ue.set(E, Ie), Ie;
|
|
263
263
|
}
|
|
264
264
|
function s(E) {
|
|
265
265
|
if (E == null) return "";
|
|
266
266
|
if (typeof E == "function") {
|
|
267
|
-
var
|
|
267
|
+
var q = E.prototype;
|
|
268
268
|
return l(
|
|
269
269
|
E,
|
|
270
|
-
!(!
|
|
270
|
+
!(!q || !q.isReactComponent)
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
if (typeof E == "string") return a(E);
|
|
274
274
|
switch (E) {
|
|
275
|
-
case
|
|
275
|
+
case z:
|
|
276
276
|
return a("Suspense");
|
|
277
277
|
case w:
|
|
278
278
|
return a("SuspenseList");
|
|
@@ -283,35 +283,35 @@ function Sh() {
|
|
|
283
283
|
return E = l(E.render, !1), E;
|
|
284
284
|
case O:
|
|
285
285
|
return s(E.type);
|
|
286
|
-
case
|
|
287
|
-
|
|
286
|
+
case j:
|
|
287
|
+
q = E._payload, E = E._init;
|
|
288
288
|
try {
|
|
289
|
-
return s(E(
|
|
289
|
+
return s(E(q));
|
|
290
290
|
} catch {
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
return "";
|
|
294
294
|
}
|
|
295
295
|
function u() {
|
|
296
|
-
var E =
|
|
296
|
+
var E = J.A;
|
|
297
297
|
return E === null ? null : E.getOwner();
|
|
298
298
|
}
|
|
299
299
|
function c(E) {
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
300
|
+
if (F.call(E, "key")) {
|
|
301
|
+
var q = Object.getOwnPropertyDescriptor(E, "key").get;
|
|
302
|
+
if (q && q.isReactWarning) return !1;
|
|
303
303
|
}
|
|
304
304
|
return E.key !== void 0;
|
|
305
305
|
}
|
|
306
|
-
function f(E,
|
|
307
|
-
function
|
|
306
|
+
function f(E, q) {
|
|
307
|
+
function Y() {
|
|
308
308
|
gt || (gt = !0, console.error(
|
|
309
309
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
310
|
-
|
|
310
|
+
q
|
|
311
311
|
));
|
|
312
312
|
}
|
|
313
|
-
|
|
314
|
-
get:
|
|
313
|
+
Y.isReactWarning = !0, Object.defineProperty(E, "key", {
|
|
314
|
+
get: Y,
|
|
315
315
|
configurable: !0
|
|
316
316
|
});
|
|
317
317
|
}
|
|
@@ -321,14 +321,14 @@ function Sh() {
|
|
|
321
321
|
"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."
|
|
322
322
|
)), E = this.props.ref, E !== void 0 ? E : null;
|
|
323
323
|
}
|
|
324
|
-
function p(E,
|
|
325
|
-
return
|
|
326
|
-
$$typeof:
|
|
324
|
+
function p(E, q, Y, de, De, pe) {
|
|
325
|
+
return Y = pe.ref, E = {
|
|
326
|
+
$$typeof: C,
|
|
327
327
|
type: E,
|
|
328
|
-
key:
|
|
328
|
+
key: q,
|
|
329
329
|
props: pe,
|
|
330
330
|
_owner: De
|
|
331
|
-
}, (
|
|
331
|
+
}, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(E, "ref", {
|
|
332
332
|
enumerable: !1,
|
|
333
333
|
get: h
|
|
334
334
|
}) : Object.defineProperty(E, "ref", { enumerable: !1, value: null }), E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
@@ -343,9 +343,9 @@ function Sh() {
|
|
|
343
343
|
value: null
|
|
344
344
|
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
345
345
|
}
|
|
346
|
-
function v(E,
|
|
347
|
-
if (typeof E == "string" || typeof E == "function" || E === P || E === y || E ===
|
|
348
|
-
var ie =
|
|
346
|
+
function v(E, q, Y, de, De, pe) {
|
|
347
|
+
if (typeof E == "string" || typeof E == "function" || E === P || E === y || E === D || E === z || E === w || E === G || typeof E == "object" && E !== null && (E.$$typeof === j || E.$$typeof === O || E.$$typeof === B || E.$$typeof === k || E.$$typeof === N || E.$$typeof === _ || E.getModuleId !== void 0)) {
|
|
348
|
+
var ie = q.children;
|
|
349
349
|
if (ie !== void 0)
|
|
350
350
|
if (de)
|
|
351
351
|
if (I(ie)) {
|
|
@@ -358,14 +358,14 @@ function Sh() {
|
|
|
358
358
|
);
|
|
359
359
|
else d(ie, E);
|
|
360
360
|
} else
|
|
361
|
-
ie = "", (E === void 0 || typeof E == "object" && E !== null && Object.keys(E).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), E === null ? de = "null" : I(E) ? de = "array" : E !== void 0 && E.$$typeof ===
|
|
361
|
+
ie = "", (E === void 0 || typeof E == "object" && E !== null && Object.keys(E).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), E === null ? de = "null" : I(E) ? de = "array" : E !== void 0 && E.$$typeof === C ? (de = "<" + (t(E.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : de = typeof E, console.error(
|
|
362
362
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
363
363
|
de,
|
|
364
364
|
ie
|
|
365
365
|
);
|
|
366
|
-
if (
|
|
366
|
+
if (F.call(q, "key")) {
|
|
367
367
|
ie = t(E);
|
|
368
|
-
var rt = Object.keys(
|
|
368
|
+
var rt = Object.keys(q).filter(function(Ie) {
|
|
369
369
|
return Ie !== "key";
|
|
370
370
|
});
|
|
371
371
|
de = 0 < rt.length ? "{key: someKey, " + rt.join(": ..., ") + ": ...}" : "{key: someKey}", kn[ie + de] || (rt = 0 < rt.length ? "{" + rt.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -381,64 +381,64 @@ React keys must be passed directly to JSX without using spread:
|
|
|
381
381
|
ie
|
|
382
382
|
), kn[ie + de] = !0);
|
|
383
383
|
}
|
|
384
|
-
if (ie = null,
|
|
385
|
-
|
|
386
|
-
for (var Yt in
|
|
387
|
-
Yt !== "key" && (
|
|
388
|
-
} else
|
|
384
|
+
if (ie = null, Y !== void 0 && (n(Y), ie = "" + Y), c(q) && (n(q.key), ie = "" + q.key), "key" in q) {
|
|
385
|
+
Y = {};
|
|
386
|
+
for (var Yt in q)
|
|
387
|
+
Yt !== "key" && (Y[Yt] = q[Yt]);
|
|
388
|
+
} else Y = q;
|
|
389
389
|
return ie && f(
|
|
390
|
-
|
|
390
|
+
Y,
|
|
391
391
|
typeof E == "function" ? E.displayName || E.name || "Unknown" : E
|
|
392
|
-
), p(E, ie, pe, De, u(),
|
|
392
|
+
), p(E, ie, pe, De, u(), Y);
|
|
393
393
|
}
|
|
394
|
-
function d(E,
|
|
394
|
+
function d(E, q) {
|
|
395
395
|
if (typeof E == "object" && E && E.$$typeof !== Ze) {
|
|
396
396
|
if (I(E))
|
|
397
|
-
for (var
|
|
398
|
-
var de = E[
|
|
399
|
-
g(de) && m(de,
|
|
397
|
+
for (var Y = 0; Y < E.length; Y++) {
|
|
398
|
+
var de = E[Y];
|
|
399
|
+
g(de) && m(de, q);
|
|
400
400
|
}
|
|
401
401
|
else if (g(E))
|
|
402
402
|
E._store && (E._store.validated = 1);
|
|
403
|
-
else if (E === null || typeof E != "object" ?
|
|
404
|
-
for (; !(E =
|
|
405
|
-
g(E.value) && m(E.value,
|
|
403
|
+
else if (E === null || typeof E != "object" ? Y = null : (Y = Z && E[Z] || E["@@iterator"], Y = typeof Y == "function" ? Y : null), typeof Y == "function" && Y !== E.entries && (Y = Y.call(E), Y !== E))
|
|
404
|
+
for (; !(E = Y.next()).done; )
|
|
405
|
+
g(E.value) && m(E.value, q);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
function g(E) {
|
|
409
|
-
return typeof E == "object" && E !== null && E.$$typeof ===
|
|
410
|
-
}
|
|
411
|
-
function m(E,
|
|
412
|
-
if (E._store && !E._store.validated && E.key == null && (E._store.validated = 1,
|
|
413
|
-
fr[
|
|
414
|
-
var
|
|
415
|
-
E && E._owner != null && E._owner !== u() && (
|
|
416
|
-
var de =
|
|
417
|
-
|
|
409
|
+
return typeof E == "object" && E !== null && E.$$typeof === C;
|
|
410
|
+
}
|
|
411
|
+
function m(E, q) {
|
|
412
|
+
if (E._store && !E._store.validated && E.key == null && (E._store.validated = 1, q = b(q), !fr[q])) {
|
|
413
|
+
fr[q] = !0;
|
|
414
|
+
var Y = "";
|
|
415
|
+
E && E._owner != null && E._owner !== u() && (Y = null, typeof E._owner.tag == "number" ? Y = t(E._owner.type) : typeof E._owner.name == "string" && (Y = E._owner.name), Y = " It was passed a child from " + Y + ".");
|
|
416
|
+
var de = J.getCurrentStack;
|
|
417
|
+
J.getCurrentStack = function() {
|
|
418
418
|
var De = s(E.type);
|
|
419
419
|
return de && (De += de() || ""), De;
|
|
420
420
|
}, console.error(
|
|
421
421
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
),
|
|
422
|
+
q,
|
|
423
|
+
Y
|
|
424
|
+
), J.getCurrentStack = de;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
function b(E) {
|
|
428
|
-
var
|
|
429
|
-
return
|
|
428
|
+
var q = "", Y = u();
|
|
429
|
+
return Y && (Y = t(Y.type)) && (q = `
|
|
430
430
|
|
|
431
|
-
Check the render method of \`` +
|
|
431
|
+
Check the render method of \`` + Y + "`."), q || (E = t(E)) && (q = `
|
|
432
432
|
|
|
433
|
-
Check the top-level render call using <` + E + ">."),
|
|
433
|
+
Check the top-level render call using <` + E + ">."), q;
|
|
434
434
|
}
|
|
435
|
-
var S =
|
|
435
|
+
var S = L, C = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), P = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), B = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Z = Symbol.iterator, R = Symbol.for("react.client.reference"), J = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, H = Object.assign, _ = Symbol.for("react.client.reference"), I = Array.isArray, A = 0, M, W, U, K, te, ae, ye;
|
|
436
436
|
r.__reactDisabledLog = !0;
|
|
437
437
|
var me, fe, Ee = !1, ue = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ze = Symbol.for("react.client.reference"), gt, $e = {}, kn = {}, fr = {};
|
|
438
|
-
An.Fragment = P, An.jsx = function(E,
|
|
439
|
-
return v(E,
|
|
440
|
-
}, An.jsxs = function(E,
|
|
441
|
-
return v(E,
|
|
438
|
+
An.Fragment = P, An.jsx = function(E, q, Y, de, De) {
|
|
439
|
+
return v(E, q, Y, !1, de, De);
|
|
440
|
+
}, An.jsxs = function(E, q, Y, de, De) {
|
|
441
|
+
return v(E, q, Y, !0, de, De);
|
|
442
442
|
};
|
|
443
443
|
}()), An;
|
|
444
444
|
}
|
|
@@ -482,10 +482,10 @@ const Lx = (t) => {
|
|
|
482
482
|
className: "pro-connect-button",
|
|
483
483
|
onClick: e
|
|
484
484
|
}
|
|
485
|
-
), we = typeof document < "u" ?
|
|
485
|
+
), we = typeof document < "u" ? L.useLayoutEffect : () => {
|
|
486
486
|
};
|
|
487
487
|
function Re(t) {
|
|
488
|
-
const e =
|
|
488
|
+
const e = V(null);
|
|
489
489
|
return we(() => {
|
|
490
490
|
e.current = t;
|
|
491
491
|
}, [
|
|
@@ -496,7 +496,7 @@ function Re(t) {
|
|
|
496
496
|
}, []);
|
|
497
497
|
}
|
|
498
498
|
function Oh(t) {
|
|
499
|
-
let [e, n] = re(t), r =
|
|
499
|
+
let [e, n] = re(t), r = V(null), i = Re(() => {
|
|
500
500
|
if (!r.current) return;
|
|
501
501
|
let a = r.current.next();
|
|
502
502
|
if (a.done) {
|
|
@@ -519,13 +519,13 @@ function Oh(t) {
|
|
|
519
519
|
const Yr = {
|
|
520
520
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
521
521
|
current: 0
|
|
522
|
-
}, Ou = /* @__PURE__ */
|
|
522
|
+
}, Ou = /* @__PURE__ */ L.createContext(Yr), Ih = /* @__PURE__ */ L.createContext(!1);
|
|
523
523
|
let _h = !!(typeof window < "u" && window.document && window.document.createElement), Ri = /* @__PURE__ */ new WeakMap();
|
|
524
524
|
function kh(t = !1) {
|
|
525
|
-
let e = le(Ou), n =
|
|
525
|
+
let e = le(Ou), n = V(null);
|
|
526
526
|
if (n.current === null && !t) {
|
|
527
527
|
var r, i;
|
|
528
|
-
let o = (i =
|
|
528
|
+
let o = (i = L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || i === void 0 || (r = i.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
529
529
|
if (o) {
|
|
530
530
|
let a = Ri.get(o);
|
|
531
531
|
a == null ? Ri.set(o, {
|
|
@@ -544,10 +544,10 @@ function Nh(t) {
|
|
|
544
544
|
return t || `${r}-${n}`;
|
|
545
545
|
}
|
|
546
546
|
function Rh(t) {
|
|
547
|
-
let e =
|
|
547
|
+
let e = L.useId(), [n] = re(Pn()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Yr.prefix}`;
|
|
548
548
|
return t || `${r}-${e}`;
|
|
549
549
|
}
|
|
550
|
-
const Ah = typeof
|
|
550
|
+
const Ah = typeof L.useId == "function" ? Rh : Nh;
|
|
551
551
|
function Mh() {
|
|
552
552
|
return !1;
|
|
553
553
|
}
|
|
@@ -559,11 +559,11 @@ function Lh(t) {
|
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
function Pn() {
|
|
562
|
-
return typeof
|
|
562
|
+
return typeof L.useSyncExternalStore == "function" ? L.useSyncExternalStore(Lh, Mh, Kh) : le(Ih);
|
|
563
563
|
}
|
|
564
564
|
let Fh = !!(typeof window < "u" && window.document && window.document.createElement), St = /* @__PURE__ */ new Map();
|
|
565
565
|
function ar(t) {
|
|
566
|
-
let [e, n] = re(t), r =
|
|
566
|
+
let [e, n] = re(t), r = V(null), i = Ah(e), o = ee((a) => {
|
|
567
567
|
r.current = a;
|
|
568
568
|
}, []);
|
|
569
569
|
return Fh && (St.has(i) && !St.get(i).includes(o) ? St.set(i, [
|
|
@@ -825,7 +825,7 @@ function tp(t) {
|
|
|
825
825
|
});
|
|
826
826
|
}
|
|
827
827
|
function Mu() {
|
|
828
|
-
let t =
|
|
828
|
+
let t = V(/* @__PURE__ */ new Map()), e = ee((i, o, a, l) => {
|
|
829
829
|
let s = l != null && l.once ? (...u) => {
|
|
830
830
|
t.current.delete(a), a(...u);
|
|
831
831
|
} : a;
|
|
@@ -868,8 +868,8 @@ function ga(t, e) {
|
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
870
|
function On(t) {
|
|
871
|
-
const e =
|
|
872
|
-
return
|
|
871
|
+
const e = V(null);
|
|
872
|
+
return X(() => ({
|
|
873
873
|
get current() {
|
|
874
874
|
return e.current;
|
|
875
875
|
},
|
|
@@ -881,7 +881,7 @@ function On(t) {
|
|
|
881
881
|
]);
|
|
882
882
|
}
|
|
883
883
|
function el(t, e) {
|
|
884
|
-
const n =
|
|
884
|
+
const n = V(!0), r = V(null);
|
|
885
885
|
we(() => (n.current = !0, () => {
|
|
886
886
|
n.current = !1;
|
|
887
887
|
}), []), we(() => {
|
|
@@ -983,8 +983,8 @@ function vr(t, e, n, r) {
|
|
|
983
983
|
]);
|
|
984
984
|
}
|
|
985
985
|
function Lu(t, e) {
|
|
986
|
-
let n = nl(t, e, "left"), r = nl(t, e, "top"), i = e.offsetWidth, o = e.offsetHeight, a = t.scrollLeft, l = t.scrollTop, { borderTopWidth: s, borderLeftWidth: u, scrollPaddingTop: c, scrollPaddingRight: f, scrollPaddingBottom: h, scrollPaddingLeft: p } = getComputedStyle(t), v = a + parseInt(u, 10), d = l + parseInt(s, 10), g = v + t.clientWidth, m = d + t.clientHeight, b = parseInt(c, 10) || 0, S = parseInt(h, 10) || 0,
|
|
987
|
-
n <= a + $ ? a = n - parseInt(u, 10) - $ : n + i > g -
|
|
986
|
+
let n = nl(t, e, "left"), r = nl(t, e, "top"), i = e.offsetWidth, o = e.offsetHeight, a = t.scrollLeft, l = t.scrollTop, { borderTopWidth: s, borderLeftWidth: u, scrollPaddingTop: c, scrollPaddingRight: f, scrollPaddingBottom: h, scrollPaddingLeft: p } = getComputedStyle(t), v = a + parseInt(u, 10), d = l + parseInt(s, 10), g = v + t.clientWidth, m = d + t.clientHeight, b = parseInt(c, 10) || 0, S = parseInt(h, 10) || 0, C = parseInt(f, 10) || 0, $ = parseInt(p, 10) || 0;
|
|
987
|
+
n <= a + $ ? a = n - parseInt(u, 10) - $ : n + i > g - C && (a += n + i - g + C), r <= d + b ? l = r - parseInt(s, 10) - b : r + o > m - S && (l += r + o - m + S), t.scrollLeft = a, t.scrollTop = l;
|
|
988
988
|
}
|
|
989
989
|
function nl(t, e, n) {
|
|
990
990
|
const r = n === "left" ? "offsetLeft" : "offsetTop";
|
|
@@ -1088,7 +1088,7 @@ function ju(t, e, n) {
|
|
|
1088
1088
|
]);
|
|
1089
1089
|
}
|
|
1090
1090
|
function lr(t, e, n) {
|
|
1091
|
-
let [r, i] = re(t || e), o =
|
|
1091
|
+
let [r, i] = re(t || e), o = V(t !== void 0), a = t !== void 0;
|
|
1092
1092
|
Q(() => {
|
|
1093
1093
|
let u = o.current;
|
|
1094
1094
|
u !== a && console.warn(`WARN: A component changed from ${u ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}.`), o.current = a;
|
|
@@ -1119,14 +1119,14 @@ function Io(t, e = -1 / 0, n = 1 / 0) {
|
|
|
1119
1119
|
const il = Symbol("default");
|
|
1120
1120
|
function sr({ values: t, children: e }) {
|
|
1121
1121
|
for (let [n, r] of t)
|
|
1122
|
-
e = /* @__PURE__ */
|
|
1122
|
+
e = /* @__PURE__ */ L.createElement(n.Provider, {
|
|
1123
1123
|
value: r
|
|
1124
1124
|
}, e);
|
|
1125
1125
|
return e;
|
|
1126
1126
|
}
|
|
1127
1127
|
function Ct(t) {
|
|
1128
1128
|
let { className: e, style: n, children: r, defaultClassName: i, defaultChildren: o, defaultStyle: a, values: l } = t;
|
|
1129
|
-
return
|
|
1129
|
+
return X(() => {
|
|
1130
1130
|
let s, u, c;
|
|
1131
1131
|
return typeof e == "function" ? s = e({
|
|
1132
1132
|
...l,
|
|
@@ -1171,7 +1171,7 @@ function va(t, e) {
|
|
|
1171
1171
|
return n;
|
|
1172
1172
|
}
|
|
1173
1173
|
function ur(t, e, n) {
|
|
1174
|
-
let r = va(n, t.slot) || {}, { ref: i, ...o } = r, a = On(
|
|
1174
|
+
let r = va(n, t.slot) || {}, { ref: i, ...o } = r, a = On(X(() => _u(e, i), [
|
|
1175
1175
|
e,
|
|
1176
1176
|
i
|
|
1177
1177
|
])), l = Te(o, t);
|
|
@@ -1196,7 +1196,7 @@ function ur(t, e, n) {
|
|
|
1196
1196
|
];
|
|
1197
1197
|
}
|
|
1198
1198
|
function fp() {
|
|
1199
|
-
let [t, e] = re(!0), n =
|
|
1199
|
+
let [t, e] = re(!0), n = V(!1), r = ee((i) => {
|
|
1200
1200
|
n.current = !0, e(!!i);
|
|
1201
1201
|
}, []);
|
|
1202
1202
|
return we(() => {
|
|
@@ -1506,8 +1506,8 @@ class hp extends zu {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
1508
|
function Hu(t) {
|
|
1509
|
-
let { children: e, items: n, idScope: r, addIdAndValue: i, dependencies: o = [] } = t, a =
|
|
1510
|
-
return
|
|
1509
|
+
let { children: e, items: n, idScope: r, addIdAndValue: i, dependencies: o = [] } = t, a = X(() => /* @__PURE__ */ new WeakMap(), o);
|
|
1510
|
+
return X(() => {
|
|
1511
1511
|
if (n && typeof e == "function") {
|
|
1512
1512
|
let u = [];
|
|
1513
1513
|
for (let c of n) {
|
|
@@ -1551,11 +1551,11 @@ const Xr = /* @__PURE__ */ ce(!1), pp = typeof DocumentFragment < "u" ? new Docu
|
|
|
1551
1551
|
function gp(t) {
|
|
1552
1552
|
let e = le(Xr), n = Pn();
|
|
1553
1553
|
if (e)
|
|
1554
|
-
return /* @__PURE__ */
|
|
1555
|
-
let r = /* @__PURE__ */
|
|
1554
|
+
return /* @__PURE__ */ L.createElement(L.Fragment, null, t.children);
|
|
1555
|
+
let r = /* @__PURE__ */ L.createElement(Xr.Provider, {
|
|
1556
1556
|
value: !0
|
|
1557
1557
|
}, t.children);
|
|
1558
|
-
return n ? /* @__PURE__ */
|
|
1558
|
+
return n ? /* @__PURE__ */ L.createElement("template", {
|
|
1559
1559
|
"data-react-aria-hidden": !0
|
|
1560
1560
|
}, r) : /* @__PURE__ */ Pu(r, pp);
|
|
1561
1561
|
}
|
|
@@ -1566,7 +1566,7 @@ function vp(t) {
|
|
|
1566
1566
|
function mp() {
|
|
1567
1567
|
return le(Xr);
|
|
1568
1568
|
}
|
|
1569
|
-
const yp = typeof document < "u" ?
|
|
1569
|
+
const yp = typeof document < "u" ? L.useLayoutEffect : () => {
|
|
1570
1570
|
};
|
|
1571
1571
|
var mr = { exports: {} }, Ki = {};
|
|
1572
1572
|
/**
|
|
@@ -1582,7 +1582,7 @@ var ol;
|
|
|
1582
1582
|
function bp() {
|
|
1583
1583
|
if (ol) return Ki;
|
|
1584
1584
|
ol = 1;
|
|
1585
|
-
var t =
|
|
1585
|
+
var t = L;
|
|
1586
1586
|
function e(f, h) {
|
|
1587
1587
|
return f === h && (f !== 0 || 1 / f === 1 / h) || f !== f && h !== h;
|
|
1588
1588
|
}
|
|
@@ -1678,7 +1678,7 @@ function Sp() {
|
|
|
1678
1678
|
return v();
|
|
1679
1679
|
}
|
|
1680
1680
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1681
|
-
var i =
|
|
1681
|
+
var i = L, o = typeof Object.is == "function" ? Object.is : t, a = i.useState, l = i.useEffect, s = i.useLayoutEffect, u = i.useDebugValue, c = !1, f = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
|
|
1682
1682
|
Li.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1683
1683
|
}()), Li;
|
|
1684
1684
|
}
|
|
@@ -1692,9 +1692,9 @@ function Wu(t) {
|
|
|
1692
1692
|
if (le(er))
|
|
1693
1693
|
return t.content;
|
|
1694
1694
|
let { collection: n, document: r } = Tp(t.createCollection);
|
|
1695
|
-
return /* @__PURE__ */
|
|
1695
|
+
return /* @__PURE__ */ L.createElement(L.Fragment, null, /* @__PURE__ */ L.createElement(gp, null, /* @__PURE__ */ L.createElement(er.Provider, {
|
|
1696
1696
|
value: r
|
|
1697
|
-
}, t.content)), /* @__PURE__ */
|
|
1697
|
+
}, t.content)), /* @__PURE__ */ L.createElement(Ep, {
|
|
1698
1698
|
render: t.children,
|
|
1699
1699
|
collection: n
|
|
1700
1700
|
}));
|
|
@@ -1703,7 +1703,7 @@ function Ep({ collection: t, render: e }) {
|
|
|
1703
1703
|
return e(t);
|
|
1704
1704
|
}
|
|
1705
1705
|
function $p(t, e, n) {
|
|
1706
|
-
let r = Pn(), i =
|
|
1706
|
+
let r = Pn(), i = V(r);
|
|
1707
1707
|
i.current = r;
|
|
1708
1708
|
let o = ee(() => i.current ? n() : e(), [
|
|
1709
1709
|
e,
|
|
@@ -1711,7 +1711,7 @@ function $p(t, e, n) {
|
|
|
1711
1711
|
]);
|
|
1712
1712
|
return ba.useSyncExternalStore(t, o);
|
|
1713
1713
|
}
|
|
1714
|
-
const xp = typeof
|
|
1714
|
+
const xp = typeof L.useSyncExternalStore == "function" ? L.useSyncExternalStore : $p;
|
|
1715
1715
|
function Tp(t) {
|
|
1716
1716
|
let [e] = re(() => new hp((t == null ? void 0 : t()) || new ya())), n = ee((a) => e.subscribe(a), [
|
|
1717
1717
|
e
|
|
@@ -1744,11 +1744,11 @@ function Cp(t, e, n, r, i, o) {
|
|
|
1744
1744
|
]), l = le(_o);
|
|
1745
1745
|
if (l) {
|
|
1746
1746
|
let s = l.ownerDocument.nodesByProps.get(e);
|
|
1747
|
-
return s || (s = l.ownerDocument.createElement(t), s.setProps(e, n, r, o), l.appendChild(s), l.ownerDocument.updateCollection(), l.ownerDocument.nodesByProps.set(e, s)), i ? /* @__PURE__ */
|
|
1747
|
+
return s || (s = l.ownerDocument.createElement(t), s.setProps(e, n, r, o), l.appendChild(s), l.ownerDocument.updateCollection(), l.ownerDocument.nodesByProps.set(e, s)), i ? /* @__PURE__ */ L.createElement(_o.Provider, {
|
|
1748
1748
|
value: s
|
|
1749
1749
|
}, i) : null;
|
|
1750
1750
|
}
|
|
1751
|
-
return /* @__PURE__ */
|
|
1751
|
+
return /* @__PURE__ */ L.createElement(t, {
|
|
1752
1752
|
ref: a
|
|
1753
1753
|
}, i);
|
|
1754
1754
|
}
|
|
@@ -1758,7 +1758,7 @@ function Sa(t, e) {
|
|
|
1758
1758
|
if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
|
|
1759
1759
|
return e(i, o);
|
|
1760
1760
|
}
|
|
1761
|
-
return Cp(t, i, o, "children" in i ? i.children : null, null, (l) => /* @__PURE__ */
|
|
1761
|
+
return Cp(t, i, o, "children" in i ? i.children : null, null, (l) => /* @__PURE__ */ L.createElement(n, {
|
|
1762
1762
|
node: l
|
|
1763
1763
|
}));
|
|
1764
1764
|
});
|
|
@@ -1777,32 +1777,32 @@ function Uu(t) {
|
|
|
1777
1777
|
idScope: r,
|
|
1778
1778
|
dependencies: n
|
|
1779
1779
|
});
|
|
1780
|
-
return le(er) && (i = /* @__PURE__ */
|
|
1780
|
+
return le(er) && (i = /* @__PURE__ */ L.createElement(Pp, null, i)), e = X(() => ({
|
|
1781
1781
|
dependencies: n,
|
|
1782
1782
|
idScope: r
|
|
1783
1783
|
}), [
|
|
1784
1784
|
r,
|
|
1785
1785
|
...n
|
|
1786
|
-
]), /* @__PURE__ */
|
|
1786
|
+
]), /* @__PURE__ */ L.createElement(sl.Provider, {
|
|
1787
1787
|
value: e
|
|
1788
1788
|
}, i);
|
|
1789
1789
|
}
|
|
1790
1790
|
function Pp({ children: t }) {
|
|
1791
|
-
let e = le(er), n =
|
|
1791
|
+
let e = le(er), n = X(() => /* @__PURE__ */ L.createElement(er.Provider, {
|
|
1792
1792
|
value: null
|
|
1793
|
-
}, /* @__PURE__ */
|
|
1793
|
+
}, /* @__PURE__ */ L.createElement(Bu.Provider, {
|
|
1794
1794
|
value: !0
|
|
1795
1795
|
}, t)), [
|
|
1796
1796
|
t
|
|
1797
1797
|
]);
|
|
1798
|
-
return Pn() ? /* @__PURE__ */
|
|
1798
|
+
return Pn() ? /* @__PURE__ */ L.createElement(_o.Provider, {
|
|
1799
1799
|
value: e
|
|
1800
1800
|
}, n) : /* @__PURE__ */ Pu(n, e);
|
|
1801
1801
|
}
|
|
1802
|
-
const Ae = typeof document < "u" ?
|
|
1802
|
+
const Ae = typeof document < "u" ? L.useLayoutEffect : () => {
|
|
1803
1803
|
};
|
|
1804
1804
|
function Op(t) {
|
|
1805
|
-
const e =
|
|
1805
|
+
const e = V(null);
|
|
1806
1806
|
return Ae(() => {
|
|
1807
1807
|
e.current = t;
|
|
1808
1808
|
}, [
|
|
@@ -1958,7 +1958,7 @@ let Bp = class {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
};
|
|
1960
1960
|
function Yu(t) {
|
|
1961
|
-
let e =
|
|
1961
|
+
let e = V({
|
|
1962
1962
|
isFocused: !1,
|
|
1963
1963
|
observer: null
|
|
1964
1964
|
});
|
|
@@ -2110,7 +2110,7 @@ function Xp(t, e, n) {
|
|
|
2110
2110
|
}, e);
|
|
2111
2111
|
}
|
|
2112
2112
|
function Jp(t) {
|
|
2113
|
-
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o =
|
|
2113
|
+
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = V({
|
|
2114
2114
|
isFocusWithin: !1
|
|
2115
2115
|
}), a = ee((u) => {
|
|
2116
2116
|
o.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (o.current.isFocusWithin = !1, n && n(u), i && i(!1));
|
|
@@ -2165,10 +2165,10 @@ function Qp(t, e) {
|
|
|
2165
2165
|
function nc(t, e) {
|
|
2166
2166
|
return t.nodeName !== "#comment" && Zp(t) && Qp(t, e) && (!t.parentElement || nc(t.parentElement, t));
|
|
2167
2167
|
}
|
|
2168
|
-
const fl = /* @__PURE__ */
|
|
2168
|
+
const fl = /* @__PURE__ */ L.createContext(null), Mo = "react-aria-focus-scope-restore";
|
|
2169
2169
|
let he = null;
|
|
2170
2170
|
function rc(t) {
|
|
2171
|
-
let { children: e, contain: n, restoreFocus: r, autoFocus: i } = t, o =
|
|
2171
|
+
let { children: e, contain: n, restoreFocus: r, autoFocus: i } = t, o = V(null), a = V(null), l = V([]), { parentNode: s } = le(fl) || {}, u = X(() => new Lo({
|
|
2172
2172
|
scopeRef: l
|
|
2173
2173
|
}), [
|
|
2174
2174
|
l
|
|
@@ -2214,20 +2214,20 @@ function rc(t) {
|
|
|
2214
2214
|
}, [
|
|
2215
2215
|
l
|
|
2216
2216
|
]);
|
|
2217
|
-
let c =
|
|
2217
|
+
let c = X(() => eg(l), []), f = X(() => ({
|
|
2218
2218
|
focusManager: c,
|
|
2219
2219
|
parentNode: u
|
|
2220
2220
|
}), [
|
|
2221
2221
|
u,
|
|
2222
2222
|
c
|
|
2223
2223
|
]);
|
|
2224
|
-
return /* @__PURE__ */
|
|
2224
|
+
return /* @__PURE__ */ L.createElement(fl.Provider, {
|
|
2225
2225
|
value: f
|
|
2226
|
-
}, /* @__PURE__ */
|
|
2226
|
+
}, /* @__PURE__ */ L.createElement("span", {
|
|
2227
2227
|
"data-focus-scope-start": !0,
|
|
2228
2228
|
hidden: !0,
|
|
2229
2229
|
ref: o
|
|
2230
|
-
}), e, /* @__PURE__ */
|
|
2230
|
+
}), e, /* @__PURE__ */ L.createElement("span", {
|
|
2231
2231
|
"data-focus-scope-end": !0,
|
|
2232
2232
|
hidden: !0,
|
|
2233
2233
|
ref: a
|
|
@@ -2302,7 +2302,7 @@ function Hn(t) {
|
|
|
2302
2302
|
return !0;
|
|
2303
2303
|
}
|
|
2304
2304
|
function rg(t, e) {
|
|
2305
|
-
let n =
|
|
2305
|
+
let n = V(void 0), r = V(void 0);
|
|
2306
2306
|
Ae(() => {
|
|
2307
2307
|
let i = t.current;
|
|
2308
2308
|
if (!e) {
|
|
@@ -2393,7 +2393,7 @@ function Ko(t, e = !0) {
|
|
|
2393
2393
|
ct(oc(t, e));
|
|
2394
2394
|
}
|
|
2395
2395
|
function og(t, e) {
|
|
2396
|
-
const n =
|
|
2396
|
+
const n = L.useRef(e);
|
|
2397
2397
|
Q(() => {
|
|
2398
2398
|
if (n.current) {
|
|
2399
2399
|
he = t;
|
|
@@ -2432,7 +2432,7 @@ function hl(t) {
|
|
|
2432
2432
|
return (e == null ? void 0 : e.scopeRef) === t;
|
|
2433
2433
|
}
|
|
2434
2434
|
function lg(t, e, n) {
|
|
2435
|
-
const r =
|
|
2435
|
+
const r = V(typeof document < "u" ? xe(t.current ? t.current[0] : void 0).activeElement : null);
|
|
2436
2436
|
Ae(() => {
|
|
2437
2437
|
let i = t.current;
|
|
2438
2438
|
const o = xe(i ? i[0] : void 0);
|
|
@@ -2587,7 +2587,7 @@ class Lo {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
let ve = new xa();
|
|
2589
2589
|
function gi(t = {}) {
|
|
2590
|
-
let { autoFocus: e = !1, isTextInput: n, within: r } = t, i =
|
|
2590
|
+
let { autoFocus: e = !1, isTextInput: n, within: r } = t, i = V({
|
|
2591
2591
|
isFocused: !1,
|
|
2592
2592
|
isFocusVisible: e || ec()
|
|
2593
2593
|
}), [o, a] = re(!1), [l, s] = re(() => i.current.isFocused && i.current.isFocusVisible), u = ee(() => s(i.current.isFocused && i.current.isFocusVisible), []), c = ee((p) => {
|
|
@@ -2667,7 +2667,7 @@ function br(t) {
|
|
|
2667
2667
|
t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), Kr.delete(t);
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
const Ta =
|
|
2670
|
+
const Ta = L.createContext({
|
|
2671
2671
|
register: () => {
|
|
2672
2672
|
}
|
|
2673
2673
|
});
|
|
@@ -2716,7 +2716,7 @@ function Ca(t) {
|
|
|
2716
2716
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2717
2717
|
ref: f,
|
|
2718
2718
|
...h
|
|
2719
|
-
} = ug(t), [p, v] = re(!1), d =
|
|
2719
|
+
} = ug(t), [p, v] = re(!1), d = V({
|
|
2720
2720
|
isPressed: !1,
|
|
2721
2721
|
ignoreEmulatedMouseEvents: !1,
|
|
2722
2722
|
ignoreClickAfterPress: !1,
|
|
@@ -2726,139 +2726,139 @@ function Ca(t) {
|
|
|
2726
2726
|
target: null,
|
|
2727
2727
|
isOverTarget: !1,
|
|
2728
2728
|
pointerType: null
|
|
2729
|
-
}), { addGlobalListener: g, removeAllGlobalListeners: m } = Mu(), b = Re((y,
|
|
2729
|
+
}), { addGlobalListener: g, removeAllGlobalListeners: m } = Mu(), b = Re((y, k) => {
|
|
2730
2730
|
let B = d.current;
|
|
2731
2731
|
if (a || B.didFirePressStart) return !1;
|
|
2732
2732
|
let N = !0;
|
|
2733
2733
|
if (B.isTriggeringEvent = !0, r) {
|
|
2734
|
-
let
|
|
2735
|
-
r(
|
|
2734
|
+
let z = new wr("pressstart", k, y);
|
|
2735
|
+
r(z), N = z.shouldStopPropagation;
|
|
2736
2736
|
}
|
|
2737
2737
|
return n && n(!0), B.isTriggeringEvent = !1, B.didFirePressStart = !0, v(!0), N;
|
|
2738
|
-
}), S = Re((y,
|
|
2738
|
+
}), S = Re((y, k, B = !0) => {
|
|
2739
2739
|
let N = d.current;
|
|
2740
2740
|
if (!N.didFirePressStart) return !1;
|
|
2741
2741
|
N.ignoreClickAfterPress = !0, N.didFirePressStart = !1, N.isTriggeringEvent = !0;
|
|
2742
|
-
let
|
|
2742
|
+
let z = !0;
|
|
2743
2743
|
if (i) {
|
|
2744
|
-
let w = new wr("pressend",
|
|
2745
|
-
i(w),
|
|
2744
|
+
let w = new wr("pressend", k, y);
|
|
2745
|
+
i(w), z = w.shouldStopPropagation;
|
|
2746
2746
|
}
|
|
2747
2747
|
if (n && n(!1), v(!1), e && B && !a) {
|
|
2748
|
-
let w = new wr("press",
|
|
2749
|
-
e(w),
|
|
2748
|
+
let w = new wr("press", k, y);
|
|
2749
|
+
e(w), z && (z = w.shouldStopPropagation);
|
|
2750
2750
|
}
|
|
2751
|
-
return N.isTriggeringEvent = !1,
|
|
2752
|
-
}),
|
|
2751
|
+
return N.isTriggeringEvent = !1, z;
|
|
2752
|
+
}), C = Re((y, k) => {
|
|
2753
2753
|
let B = d.current;
|
|
2754
2754
|
if (a) return !1;
|
|
2755
2755
|
if (o) {
|
|
2756
2756
|
B.isTriggeringEvent = !0;
|
|
2757
|
-
let N = new wr("pressup",
|
|
2757
|
+
let N = new wr("pressup", k, y);
|
|
2758
2758
|
return o(N), B.isTriggeringEvent = !1, N.shouldStopPropagation;
|
|
2759
2759
|
}
|
|
2760
2760
|
return !0;
|
|
2761
2761
|
}), $ = Re((y) => {
|
|
2762
|
-
let
|
|
2763
|
-
|
|
2762
|
+
let k = d.current;
|
|
2763
|
+
k.isPressed && k.target && (k.isOverTarget && k.pointerType != null && S(ot(k.target, y), k.pointerType, !1), k.isPressed = !1, k.isOverTarget = !1, k.activePointerId = null, k.pointerType = null, m(), c || br(k.target));
|
|
2764
2764
|
}), P = Re((y) => {
|
|
2765
2765
|
u && $(y);
|
|
2766
|
-
}),
|
|
2767
|
-
let y = d.current,
|
|
2766
|
+
}), D = X(() => {
|
|
2767
|
+
let y = d.current, k = {
|
|
2768
2768
|
onKeyDown(N) {
|
|
2769
2769
|
if (Fi(N.nativeEvent, N.currentTarget) && N.currentTarget.contains(N.target)) {
|
|
2770
|
-
var
|
|
2770
|
+
var z;
|
|
2771
2771
|
yl(N.target, N.key) && N.preventDefault();
|
|
2772
2772
|
let w = !0;
|
|
2773
2773
|
if (!y.isPressed && !N.repeat) {
|
|
2774
2774
|
y.target = N.currentTarget, y.isPressed = !0, w = b(N, "keyboard");
|
|
2775
|
-
let O = N.currentTarget,
|
|
2776
|
-
Fi(
|
|
2775
|
+
let O = N.currentTarget, j = (G) => {
|
|
2776
|
+
Fi(G, O) && !G.repeat && O.contains(G.target) && y.target && C(ot(y.target, G), "keyboard");
|
|
2777
2777
|
};
|
|
2778
|
-
g(Be(N.currentTarget), "keyup", Jn(
|
|
2778
|
+
g(Be(N.currentTarget), "keyup", Jn(j, B), !0);
|
|
2779
2779
|
}
|
|
2780
|
-
w && N.stopPropagation(), N.metaKey && Kt() && ((
|
|
2780
|
+
w && N.stopPropagation(), N.metaKey && Kt() && ((z = y.metaKeyEvents) === null || z === void 0 || z.set(N.key, N.nativeEvent));
|
|
2781
2781
|
} else N.key === "Meta" && (y.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
2782
2782
|
},
|
|
2783
2783
|
onClick(N) {
|
|
2784
2784
|
if (!(N && !N.currentTarget.contains(N.target)) && N && N.button === 0 && !y.isTriggeringEvent && !Lt.isOpening) {
|
|
2785
|
-
let
|
|
2785
|
+
let z = !0;
|
|
2786
2786
|
if (a && N.preventDefault(), !y.ignoreClickAfterPress && !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" || Oo(N.nativeEvent))) {
|
|
2787
2787
|
!a && !s && _t(N.currentTarget);
|
|
2788
|
-
let w = b(N, "virtual"), O =
|
|
2789
|
-
|
|
2788
|
+
let w = b(N, "virtual"), O = C(N, "virtual"), j = S(N, "virtual");
|
|
2789
|
+
z = w && O && j;
|
|
2790
2790
|
}
|
|
2791
|
-
y.ignoreEmulatedMouseEvents = !1, y.ignoreClickAfterPress = !1,
|
|
2791
|
+
y.ignoreEmulatedMouseEvents = !1, y.ignoreClickAfterPress = !1, z && N.stopPropagation();
|
|
2792
2792
|
}
|
|
2793
2793
|
}
|
|
2794
2794
|
}, B = (N) => {
|
|
2795
|
-
var
|
|
2795
|
+
var z;
|
|
2796
2796
|
if (y.isPressed && y.target && Fi(N, y.target)) {
|
|
2797
2797
|
var w;
|
|
2798
2798
|
yl(N.target, N.key) && N.preventDefault();
|
|
2799
|
-
let
|
|
2800
|
-
S(ot(y.target, N), "keyboard", y.target.contains(
|
|
2801
|
-
} else if (N.key === "Meta" && (!((
|
|
2799
|
+
let j = N.target;
|
|
2800
|
+
S(ot(y.target, N), "keyboard", y.target.contains(j)), m(), N.key !== "Enter" && Da(y.target) && y.target.contains(j) && !N[vl] && (N[vl] = !0, Lt(y.target, N, !1)), y.isPressed = !1, (w = y.metaKeyEvents) === null || w === void 0 || w.delete(N.key);
|
|
2801
|
+
} else if (N.key === "Meta" && (!((z = y.metaKeyEvents) === null || z === void 0) && z.size)) {
|
|
2802
2802
|
var O;
|
|
2803
|
-
let
|
|
2803
|
+
let j = y.metaKeyEvents;
|
|
2804
2804
|
y.metaKeyEvents = void 0;
|
|
2805
|
-
for (let
|
|
2805
|
+
for (let G of j.values()) (O = y.target) === null || O === void 0 || O.dispatchEvent(new KeyboardEvent("keyup", G));
|
|
2806
2806
|
}
|
|
2807
2807
|
};
|
|
2808
2808
|
if (typeof PointerEvent < "u") {
|
|
2809
|
-
|
|
2809
|
+
k.onPointerDown = (O) => {
|
|
2810
2810
|
if (O.button !== 0 || !O.currentTarget.contains(O.target)) return;
|
|
2811
2811
|
if (lp(O.nativeEvent)) {
|
|
2812
2812
|
y.pointerType = "virtual";
|
|
2813
2813
|
return;
|
|
2814
2814
|
}
|
|
2815
2815
|
zi(O.currentTarget) && O.preventDefault(), y.pointerType = O.pointerType;
|
|
2816
|
-
let
|
|
2816
|
+
let j = !0;
|
|
2817
2817
|
if (!y.isPressed) {
|
|
2818
|
-
y.isPressed = !0, y.isOverTarget = !0, y.activePointerId = O.pointerId, y.target = O.currentTarget, !a && !s && _t(O.currentTarget), c || gl(y.target),
|
|
2819
|
-
let
|
|
2820
|
-
"releasePointerCapture" in
|
|
2818
|
+
y.isPressed = !0, y.isOverTarget = !0, y.activePointerId = O.pointerId, y.target = O.currentTarget, !a && !s && _t(O.currentTarget), c || gl(y.target), j = b(O, y.pointerType);
|
|
2819
|
+
let G = O.target;
|
|
2820
|
+
"releasePointerCapture" in G && G.releasePointerCapture(O.pointerId), g(Be(O.currentTarget), "pointerup", N, !1), g(Be(O.currentTarget), "pointercancel", w, !1);
|
|
2821
2821
|
}
|
|
2822
|
-
|
|
2823
|
-
},
|
|
2822
|
+
j && O.stopPropagation();
|
|
2823
|
+
}, k.onMouseDown = (O) => {
|
|
2824
2824
|
O.currentTarget.contains(O.target) && O.button === 0 && (zi(O.currentTarget) && O.preventDefault(), O.stopPropagation());
|
|
2825
|
-
},
|
|
2826
|
-
!O.currentTarget.contains(O.target) || y.pointerType === "virtual" || O.button === 0 &&
|
|
2827
|
-
},
|
|
2825
|
+
}, k.onPointerUp = (O) => {
|
|
2826
|
+
!O.currentTarget.contains(O.target) || y.pointerType === "virtual" || O.button === 0 && C(O, y.pointerType || O.pointerType);
|
|
2827
|
+
}, k.onPointerEnter = (O) => {
|
|
2828
2828
|
O.pointerId === y.activePointerId && y.target && !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, b(ot(y.target, O), y.pointerType));
|
|
2829
|
-
},
|
|
2829
|
+
}, k.onPointerLeave = (O) => {
|
|
2830
2830
|
O.pointerId === y.activePointerId && y.target && y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, S(ot(y.target, O), y.pointerType, !1), P(O));
|
|
2831
2831
|
};
|
|
2832
2832
|
let N = (O) => {
|
|
2833
|
-
O.pointerId === y.activePointerId && y.isPressed && O.button === 0 && y.target && (y.target.contains(O.target) && y.pointerType != null ? S(ot(y.target, O), y.pointerType) : y.isOverTarget && y.pointerType != null && S(ot(y.target, O), y.pointerType, !1), y.isPressed = !1, y.isOverTarget = !1, y.activePointerId = null, y.pointerType = null, m(), c || br(y.target), "ontouchend" in y.target && O.pointerType !== "mouse" && g(y.target, "touchend",
|
|
2833
|
+
O.pointerId === y.activePointerId && y.isPressed && O.button === 0 && y.target && (y.target.contains(O.target) && y.pointerType != null ? S(ot(y.target, O), y.pointerType) : y.isOverTarget && y.pointerType != null && S(ot(y.target, O), y.pointerType, !1), y.isPressed = !1, y.isOverTarget = !1, y.activePointerId = null, y.pointerType = null, m(), c || br(y.target), "ontouchend" in y.target && O.pointerType !== "mouse" && g(y.target, "touchend", z, {
|
|
2834
2834
|
once: !0
|
|
2835
2835
|
}));
|
|
2836
|
-
},
|
|
2836
|
+
}, z = (O) => {
|
|
2837
2837
|
ac(O.currentTarget) && O.preventDefault();
|
|
2838
2838
|
}, w = (O) => {
|
|
2839
2839
|
$(O);
|
|
2840
2840
|
};
|
|
2841
|
-
|
|
2841
|
+
k.onDragStart = (O) => {
|
|
2842
2842
|
O.currentTarget.contains(O.target) && $(O);
|
|
2843
2843
|
};
|
|
2844
2844
|
} else {
|
|
2845
|
-
|
|
2845
|
+
k.onMouseDown = (w) => {
|
|
2846
2846
|
if (w.button !== 0 || !w.currentTarget.contains(w.target)) return;
|
|
2847
2847
|
if (zi(w.currentTarget) && w.preventDefault(), y.ignoreEmulatedMouseEvents) {
|
|
2848
2848
|
w.stopPropagation();
|
|
2849
2849
|
return;
|
|
2850
2850
|
}
|
|
2851
2851
|
y.isPressed = !0, y.isOverTarget = !0, y.target = w.currentTarget, y.pointerType = Oo(w.nativeEvent) ? "virtual" : "mouse", !a && !s && _t(w.currentTarget), b(w, y.pointerType) && w.stopPropagation(), g(Be(w.currentTarget), "mouseup", N, !1);
|
|
2852
|
-
},
|
|
2852
|
+
}, k.onMouseEnter = (w) => {
|
|
2853
2853
|
if (!w.currentTarget.contains(w.target)) return;
|
|
2854
2854
|
let O = !0;
|
|
2855
2855
|
y.isPressed && !y.ignoreEmulatedMouseEvents && y.pointerType != null && (y.isOverTarget = !0, O = b(w, y.pointerType)), O && w.stopPropagation();
|
|
2856
|
-
},
|
|
2856
|
+
}, k.onMouseLeave = (w) => {
|
|
2857
2857
|
if (!w.currentTarget.contains(w.target)) return;
|
|
2858
2858
|
let O = !0;
|
|
2859
2859
|
y.isPressed && !y.ignoreEmulatedMouseEvents && y.pointerType != null && (y.isOverTarget = !1, O = S(w, y.pointerType, !1), P(w)), O && w.stopPropagation();
|
|
2860
|
-
},
|
|
2861
|
-
w.currentTarget.contains(w.target) && !y.ignoreEmulatedMouseEvents && w.button === 0 &&
|
|
2860
|
+
}, k.onMouseUp = (w) => {
|
|
2861
|
+
w.currentTarget.contains(w.target) && !y.ignoreEmulatedMouseEvents && w.button === 0 && C(w, y.pointerType || "mouse");
|
|
2862
2862
|
};
|
|
2863
2863
|
let N = (w) => {
|
|
2864
2864
|
if (w.button === 0) {
|
|
@@ -2869,31 +2869,31 @@ function Ca(t) {
|
|
|
2869
2869
|
y.target && ji(w, y.target) && y.pointerType != null ? S(ot(y.target, w), y.pointerType) : y.target && y.isOverTarget && y.pointerType != null && S(ot(y.target, w), y.pointerType, !1), y.isOverTarget = !1;
|
|
2870
2870
|
}
|
|
2871
2871
|
};
|
|
2872
|
-
|
|
2872
|
+
k.onTouchStart = (w) => {
|
|
2873
2873
|
if (!w.currentTarget.contains(w.target)) return;
|
|
2874
2874
|
let O = cg(w.nativeEvent);
|
|
2875
2875
|
if (!O) return;
|
|
2876
|
-
y.activePointerId = O.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, y.target = w.currentTarget, y.pointerType = "touch", !a && !s && _t(w.currentTarget), c || gl(y.target), b(mt(y.target, w), y.pointerType) && w.stopPropagation(), g($n(w.currentTarget), "scroll",
|
|
2877
|
-
},
|
|
2876
|
+
y.activePointerId = O.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, y.target = w.currentTarget, y.pointerType = "touch", !a && !s && _t(w.currentTarget), c || gl(y.target), b(mt(y.target, w), y.pointerType) && w.stopPropagation(), g($n(w.currentTarget), "scroll", z, !0);
|
|
2877
|
+
}, k.onTouchMove = (w) => {
|
|
2878
2878
|
if (!w.currentTarget.contains(w.target)) return;
|
|
2879
2879
|
if (!y.isPressed) {
|
|
2880
2880
|
w.stopPropagation();
|
|
2881
2881
|
return;
|
|
2882
2882
|
}
|
|
2883
|
-
let O = ml(w.nativeEvent, y.activePointerId),
|
|
2884
|
-
O && ji(O, w.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0,
|
|
2885
|
-
},
|
|
2883
|
+
let O = ml(w.nativeEvent, y.activePointerId), j = !0;
|
|
2884
|
+
O && ji(O, w.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, j = b(mt(y.target, w), y.pointerType)) : y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, j = S(mt(y.target, w), y.pointerType, !1), P(mt(y.target, w))), j && w.stopPropagation();
|
|
2885
|
+
}, k.onTouchEnd = (w) => {
|
|
2886
2886
|
if (!w.currentTarget.contains(w.target)) return;
|
|
2887
2887
|
if (!y.isPressed) {
|
|
2888
2888
|
w.stopPropagation();
|
|
2889
2889
|
return;
|
|
2890
2890
|
}
|
|
2891
|
-
let O = ml(w.nativeEvent, y.activePointerId),
|
|
2892
|
-
O && ji(O, w.currentTarget) && y.pointerType != null ? (
|
|
2893
|
-
},
|
|
2891
|
+
let O = ml(w.nativeEvent, y.activePointerId), j = !0;
|
|
2892
|
+
O && ji(O, w.currentTarget) && y.pointerType != null ? (C(mt(y.target, w), y.pointerType), j = S(mt(y.target, w), y.pointerType)) : y.isOverTarget && y.pointerType != null && (j = S(mt(y.target, w), y.pointerType, !1)), j && w.stopPropagation(), y.isPressed = !1, y.activePointerId = null, y.isOverTarget = !1, y.ignoreEmulatedMouseEvents = !0, y.target && !c && br(y.target), m();
|
|
2893
|
+
}, k.onTouchCancel = (w) => {
|
|
2894
2894
|
w.currentTarget.contains(w.target) && (w.stopPropagation(), y.isPressed && $(mt(y.target, w)));
|
|
2895
2895
|
};
|
|
2896
|
-
let
|
|
2896
|
+
let z = (w) => {
|
|
2897
2897
|
y.isPressed && w.target.contains(y.target) && $({
|
|
2898
2898
|
currentTarget: y.target,
|
|
2899
2899
|
shiftKey: !1,
|
|
@@ -2902,11 +2902,11 @@ function Ca(t) {
|
|
|
2902
2902
|
altKey: !1
|
|
2903
2903
|
});
|
|
2904
2904
|
};
|
|
2905
|
-
|
|
2905
|
+
k.onDragStart = (w) => {
|
|
2906
2906
|
w.currentTarget.contains(w.target) && $(w);
|
|
2907
2907
|
};
|
|
2908
2908
|
}
|
|
2909
|
-
return
|
|
2909
|
+
return k;
|
|
2910
2910
|
}, [
|
|
2911
2911
|
g,
|
|
2912
2912
|
a,
|
|
@@ -2917,7 +2917,7 @@ function Ca(t) {
|
|
|
2917
2917
|
P,
|
|
2918
2918
|
S,
|
|
2919
2919
|
b,
|
|
2920
|
-
|
|
2920
|
+
C
|
|
2921
2921
|
]);
|
|
2922
2922
|
return Q(() => () => {
|
|
2923
2923
|
var y;
|
|
@@ -2926,7 +2926,7 @@ function Ca(t) {
|
|
|
2926
2926
|
c
|
|
2927
2927
|
]), {
|
|
2928
2928
|
isPressed: l || p,
|
|
2929
|
-
pressProps: Te(h,
|
|
2929
|
+
pressProps: Te(h, D)
|
|
2930
2930
|
};
|
|
2931
2931
|
}
|
|
2932
2932
|
function Da(t) {
|
|
@@ -3013,11 +3013,11 @@ function lc(t, e) {
|
|
|
3013
3013
|
return t.type === "checkbox" || t.type === "radio" ? e === " " : hg.has(t.type);
|
|
3014
3014
|
}
|
|
3015
3015
|
function pg({ children: t }) {
|
|
3016
|
-
let e =
|
|
3016
|
+
let e = X(() => ({
|
|
3017
3017
|
register: () => {
|
|
3018
3018
|
}
|
|
3019
3019
|
}), []);
|
|
3020
|
-
return /* @__PURE__ */
|
|
3020
|
+
return /* @__PURE__ */ L.createElement(Ta.Provider, {
|
|
3021
3021
|
value: e
|
|
3022
3022
|
}, t);
|
|
3023
3023
|
}
|
|
@@ -3041,7 +3041,7 @@ class gg {
|
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
3043
|
function sc(t) {
|
|
3044
|
-
let e =
|
|
3044
|
+
let e = V({
|
|
3045
3045
|
isFocused: !1,
|
|
3046
3046
|
observer: null
|
|
3047
3047
|
});
|
|
@@ -3163,7 +3163,7 @@ function Sl() {
|
|
|
3163
3163
|
return _n;
|
|
3164
3164
|
}
|
|
3165
3165
|
function hc(t) {
|
|
3166
|
-
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o =
|
|
3166
|
+
let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = V({
|
|
3167
3167
|
isFocusWithin: !1
|
|
3168
3168
|
}), a = ee((u) => {
|
|
3169
3169
|
o.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (o.current.isFocusWithin = !1, n && n(u), i && i(!1));
|
|
@@ -3207,14 +3207,14 @@ function wg() {
|
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
function Oa(t) {
|
|
3210
|
-
let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, a] = re(!1), l =
|
|
3210
|
+
let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, a] = re(!1), l = V({
|
|
3211
3211
|
isHovered: !1,
|
|
3212
3212
|
ignoreEmulatedMouseEvents: !1,
|
|
3213
3213
|
pointerType: "",
|
|
3214
3214
|
target: null
|
|
3215
3215
|
}).current;
|
|
3216
3216
|
Q(wg, []);
|
|
3217
|
-
let { hoverProps: s, triggerHoverEnd: u } =
|
|
3217
|
+
let { hoverProps: s, triggerHoverEnd: u } = X(() => {
|
|
3218
3218
|
let c = (p, v) => {
|
|
3219
3219
|
if (l.pointerType = v, i || v === "touch" || l.isHovered || !p.currentTarget.contains(p.target)) return;
|
|
3220
3220
|
l.isHovered = !0;
|
|
@@ -3267,7 +3267,7 @@ function Oa(t) {
|
|
|
3267
3267
|
};
|
|
3268
3268
|
}
|
|
3269
3269
|
function Eg(t) {
|
|
3270
|
-
let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = t, o =
|
|
3270
|
+
let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = t, o = V({
|
|
3271
3271
|
isPointerDown: !1,
|
|
3272
3272
|
ignoreEmulatedMouseEvents: !1
|
|
3273
3273
|
}), a = Re((s) => {
|
|
@@ -3347,7 +3347,7 @@ function $g(t) {
|
|
|
3347
3347
|
const xg = 500;
|
|
3348
3348
|
function Tg(t) {
|
|
3349
3349
|
let { isDisabled: e, onLongPressStart: n, onLongPressEnd: r, onLongPress: i, threshold: o = xg, accessibilityDescription: a } = t;
|
|
3350
|
-
const l =
|
|
3350
|
+
const l = V(void 0);
|
|
3351
3351
|
let { addGlobalListener: s, removeGlobalListener: u } = Mu(), { pressProps: c } = Ca({
|
|
3352
3352
|
isDisabled: e,
|
|
3353
3353
|
onPressStart(h) {
|
|
@@ -3457,7 +3457,7 @@ function Ig() {
|
|
|
3457
3457
|
direction: "ltr"
|
|
3458
3458
|
} : e;
|
|
3459
3459
|
}
|
|
3460
|
-
const _g = /* @__PURE__ */
|
|
3460
|
+
const _g = /* @__PURE__ */ L.createContext(null);
|
|
3461
3461
|
function cr() {
|
|
3462
3462
|
let t = Ig();
|
|
3463
3463
|
return le(_g) || t;
|
|
@@ -3567,7 +3567,7 @@ function Fg(t, e) {
|
|
|
3567
3567
|
}
|
|
3568
3568
|
function jg(t, e) {
|
|
3569
3569
|
let { locale: n } = cr(), r = Fg(t, e);
|
|
3570
|
-
return
|
|
3570
|
+
return X(() => new Kg(n, r), [
|
|
3571
3571
|
n,
|
|
3572
3572
|
r
|
|
3573
3573
|
]);
|
|
@@ -3595,7 +3595,7 @@ function Hg(t = {}) {
|
|
|
3595
3595
|
let { style: e, isFocusable: n } = t, [r, i] = re(!1), { focusWithinProps: o } = hc({
|
|
3596
3596
|
isDisabled: !n,
|
|
3597
3597
|
onFocusWithinChange: (l) => i(l)
|
|
3598
|
-
}), a =
|
|
3598
|
+
}), a = X(() => r ? e : e ? {
|
|
3599
3599
|
...Dl,
|
|
3600
3600
|
...e
|
|
3601
3601
|
} : Dl, [
|
|
@@ -3610,7 +3610,7 @@ function Hg(t = {}) {
|
|
|
3610
3610
|
}
|
|
3611
3611
|
function Bg(t) {
|
|
3612
3612
|
let { children: e, elementType: n = "div", isFocusable: r, style: i, ...o } = t, { visuallyHiddenProps: a } = Hg(t);
|
|
3613
|
-
return /* @__PURE__ */
|
|
3613
|
+
return /* @__PURE__ */ L.createElement(n, Te(o, a), e);
|
|
3614
3614
|
}
|
|
3615
3615
|
const nt = {
|
|
3616
3616
|
top: "top",
|
|
@@ -3703,10 +3703,10 @@ function Wi(t, e, n, r, i, o, a, l, s, u) {
|
|
|
3703
3703
|
let { placement: c, crossPlacement: f, axis: h, crossAxis: p, size: v, crossSize: d } = r, g = {};
|
|
3704
3704
|
var m;
|
|
3705
3705
|
g[p] = (m = t[p]) !== null && m !== void 0 ? m : 0;
|
|
3706
|
-
var b, S,
|
|
3707
|
-
f === "center" ? g[p] += (((b = t[d]) !== null && b !== void 0 ? b : 0) - ((S = n[d]) !== null && S !== void 0 ? S : 0)) / 2 : f !== p && (g[p] += ((
|
|
3708
|
-
const P = t[p] - n[d] + s + u,
|
|
3709
|
-
if (g[p] = Io(g[p], P,
|
|
3706
|
+
var b, S, C, $;
|
|
3707
|
+
f === "center" ? g[p] += (((b = t[d]) !== null && b !== void 0 ? b : 0) - ((S = n[d]) !== null && S !== void 0 ? S : 0)) / 2 : f !== p && (g[p] += ((C = t[d]) !== null && C !== void 0 ? C : 0) - (($ = n[d]) !== null && $ !== void 0 ? $ : 0)), g[p] += o;
|
|
3708
|
+
const P = t[p] - n[d] + s + u, D = t[p] + t[d] - s - u;
|
|
3709
|
+
if (g[p] = Io(g[p], P, D), c === h) {
|
|
3710
3710
|
const y = l ? a[v] : e[vc[v]];
|
|
3711
3711
|
g[ni[h]] = Math.floor(y - t[h] + i);
|
|
3712
3712
|
} else g[h] = Math.floor(t[h] + t[v] + i);
|
|
@@ -3731,26 +3731,26 @@ function _l(t, e, n, r, i, o) {
|
|
|
3731
3731
|
return Math.max(0, t[s] + t[l] + t.scroll[l] - e[l] - n[l] - n[s] - ((f = r[l]) !== null && f !== void 0 ? f : 0) - r[ni[l]] - i);
|
|
3732
3732
|
}
|
|
3733
3733
|
function qg(t, e, n, r, i, o, a, l, s, u, c, f, h, p, v, d) {
|
|
3734
|
-
let g = Il(t), { size: m, crossAxis: b, crossSize: S, placement:
|
|
3734
|
+
let g = Il(t), { size: m, crossAxis: b, crossSize: S, placement: C, crossPlacement: $ } = g, P = Wi(e, l, n, g, c, f, u, h, v, d), D = c, y = _l(l, u, e, i, o + c, g);
|
|
3735
3735
|
if (a && r[m] > y) {
|
|
3736
|
-
let
|
|
3737
|
-
_l(l, u, e, i, o + c,
|
|
3736
|
+
let A = Il(`${ni[C]} ${$}`), M = Wi(e, l, n, A, c, f, u, h, v, d);
|
|
3737
|
+
_l(l, u, e, i, o + c, A) > y && (g = A, P = M, D = c);
|
|
3738
3738
|
}
|
|
3739
|
-
let
|
|
3740
|
-
g.axis === "top" ? g.placement === "top" ?
|
|
3739
|
+
let k = "bottom";
|
|
3740
|
+
g.axis === "top" ? g.placement === "top" ? k = "top" : g.placement === "bottom" && (k = "bottom") : g.crossAxis === "top" && (g.crossPlacement === "top" ? k = "bottom" : g.crossPlacement === "bottom" && (k = "top"));
|
|
3741
3741
|
let B = Ol(b, P[b], n[S], l, s, o, u);
|
|
3742
3742
|
P[b] += B;
|
|
3743
|
-
let N = Gg(P, l, u, h, i, o, n.height,
|
|
3744
|
-
p && p < N && (N = p), n.height = Math.min(n.height, N), P = Wi(e, l, n, g,
|
|
3745
|
-
let
|
|
3743
|
+
let N = Gg(P, l, u, h, i, o, n.height, k);
|
|
3744
|
+
p && p < N && (N = p), n.height = Math.min(n.height, N), P = Wi(e, l, n, g, D, f, u, h, v, d), B = Ol(b, P[b], n[S], l, s, o, u), P[b] += B;
|
|
3745
|
+
let z = {}, w = e[b] + 0.5 * e[S] - P[b] - i[nt[b]];
|
|
3746
3746
|
const O = v / 2 + d;
|
|
3747
|
-
var
|
|
3748
|
-
const
|
|
3749
|
-
return
|
|
3747
|
+
var j, G, Z, R;
|
|
3748
|
+
const J = nt[b] === "left" ? ((j = i.left) !== null && j !== void 0 ? j : 0) + ((G = i.right) !== null && G !== void 0 ? G : 0) : ((Z = i.top) !== null && Z !== void 0 ? Z : 0) + ((R = i.bottom) !== null && R !== void 0 ? R : 0), F = n[S] - J - v / 2 - d, H = e[b] + v / 2 - (P[b] + i[nt[b]]), _ = e[b] + e[S] - v / 2 - (P[b] + i[nt[b]]), I = Io(w, H, _);
|
|
3749
|
+
return z[b] = Io(I, O, F), {
|
|
3750
3750
|
position: P,
|
|
3751
3751
|
maxHeight: N,
|
|
3752
|
-
arrowOffsetLeft:
|
|
3753
|
-
arrowOffsetTop:
|
|
3752
|
+
arrowOffsetLeft: z.left,
|
|
3753
|
+
arrowOffsetTop: z.top,
|
|
3754
3754
|
placement: g.placement
|
|
3755
3755
|
};
|
|
3756
3756
|
}
|
|
@@ -3759,16 +3759,16 @@ function Yg(t) {
|
|
|
3759
3759
|
const d = window.getComputedStyle(p).position;
|
|
3760
3760
|
let g = !!d && d !== "static", m = v ? bn(n) : kl(n, p);
|
|
3761
3761
|
if (!v) {
|
|
3762
|
-
let { marginTop:
|
|
3763
|
-
m.top += parseInt(
|
|
3762
|
+
let { marginTop: z, marginLeft: w } = window.getComputedStyle(n);
|
|
3763
|
+
m.top += parseInt(z, 10) || 0, m.left += parseInt(w, 10) || 0;
|
|
3764
3764
|
}
|
|
3765
3765
|
let b = bn(r), S = Vg(r);
|
|
3766
|
-
var
|
|
3767
|
-
b.width += ((
|
|
3768
|
-
var P,
|
|
3769
|
-
b.height += ((P = S.top) !== null && P !== void 0 ? P : 0) + ((
|
|
3770
|
-
let y = Ug(i),
|
|
3771
|
-
return p.tagName === "HTML" && l.tagName === "BODY" && (B.scroll.top = 0, B.scroll.left = 0), qg(e, m, b, y, S, o, a,
|
|
3766
|
+
var C, $;
|
|
3767
|
+
b.width += ((C = S.left) !== null && C !== void 0 ? C : 0) + (($ = S.right) !== null && $ !== void 0 ? $ : 0);
|
|
3768
|
+
var P, D;
|
|
3769
|
+
b.height += ((P = S.top) !== null && P !== void 0 ? P : 0) + ((D = S.bottom) !== null && D !== void 0 ? D : 0);
|
|
3770
|
+
let y = Ug(i), k = Pl(l), B = Pl(p), N = l.tagName === "BODY" ? bn(p) : kl(p, l);
|
|
3771
|
+
return p.tagName === "HTML" && l.tagName === "BODY" && (B.scroll.top = 0, B.scroll.left = 0), qg(e, m, b, y, S, o, a, k, B, N, s, u, g, c, f, h);
|
|
3772
3772
|
}
|
|
3773
3773
|
function bn(t) {
|
|
3774
3774
|
let { top: e, left: n, width: r, height: i } = t.getBoundingClientRect(), { scrollTop: o, scrollLeft: a, clientTop: l, clientLeft: s } = document.documentElement;
|
|
@@ -3844,34 +3844,34 @@ function Qg(t) {
|
|
|
3844
3844
|
d,
|
|
3845
3845
|
g,
|
|
3846
3846
|
n
|
|
3847
|
-
],
|
|
3847
|
+
], C = V(ge == null ? void 0 : ge.scale);
|
|
3848
3848
|
Q(() => {
|
|
3849
|
-
p && (
|
|
3849
|
+
p && (C.current = ge == null ? void 0 : ge.scale);
|
|
3850
3850
|
}, [
|
|
3851
3851
|
p
|
|
3852
3852
|
]);
|
|
3853
3853
|
let $ = ee(() => {
|
|
3854
|
-
if (h === !1 || !p || !i.current || !r.current || !u || (ge == null ? void 0 : ge.scale) !==
|
|
3854
|
+
if (h === !1 || !p || !i.current || !r.current || !u || (ge == null ? void 0 : ge.scale) !== C.current) return;
|
|
3855
3855
|
let B = null;
|
|
3856
3856
|
if (o.current && o.current.contains(document.activeElement)) {
|
|
3857
3857
|
var N;
|
|
3858
|
-
let R = (N = document.activeElement) === null || N === void 0 ? void 0 : N.getBoundingClientRect(),
|
|
3859
|
-
var
|
|
3858
|
+
let R = (N = document.activeElement) === null || N === void 0 ? void 0 : N.getBoundingClientRect(), J = o.current.getBoundingClientRect();
|
|
3859
|
+
var z;
|
|
3860
3860
|
if (B = {
|
|
3861
3861
|
type: "top",
|
|
3862
|
-
offset: ((
|
|
3863
|
-
}, B.offset >
|
|
3862
|
+
offset: ((z = R == null ? void 0 : R.top) !== null && z !== void 0 ? z : 0) - J.top
|
|
3863
|
+
}, B.offset > J.height / 2) {
|
|
3864
3864
|
B.type = "bottom";
|
|
3865
3865
|
var w;
|
|
3866
|
-
B.offset = ((w = R == null ? void 0 : R.bottom) !== null && w !== void 0 ? w : 0) -
|
|
3866
|
+
B.offset = ((w = R == null ? void 0 : R.bottom) !== null && w !== void 0 ? w : 0) - J.bottom;
|
|
3867
3867
|
}
|
|
3868
3868
|
}
|
|
3869
3869
|
let O = i.current;
|
|
3870
3870
|
if (!d && i.current) {
|
|
3871
|
-
var
|
|
3871
|
+
var j;
|
|
3872
3872
|
O.style.top = "0px", O.style.bottom = "";
|
|
3873
|
-
var
|
|
3874
|
-
O.style.maxHeight = ((
|
|
3873
|
+
var G;
|
|
3874
|
+
O.style.maxHeight = ((G = (j = window.visualViewport) === null || j === void 0 ? void 0 : j.height) !== null && G !== void 0 ? G : window.innerHeight) + "px";
|
|
3875
3875
|
}
|
|
3876
3876
|
let Z = Yg({
|
|
3877
3877
|
placement: tv(a, e),
|
|
@@ -3889,8 +3889,8 @@ function Qg(t) {
|
|
|
3889
3889
|
});
|
|
3890
3890
|
if (Z.position) {
|
|
3891
3891
|
if (O.style.top = "", O.style.bottom = "", O.style.left = "", O.style.right = "", Object.keys(Z.position).forEach((R) => O.style[R] = Z.position[R] + "px"), O.style.maxHeight = Z.maxHeight != null ? Z.maxHeight + "px" : "", B && document.activeElement && o.current) {
|
|
3892
|
-
let R = document.activeElement.getBoundingClientRect(),
|
|
3893
|
-
o.current.scrollTop +=
|
|
3892
|
+
let R = document.activeElement.getBoundingClientRect(), J = o.current.getBoundingClientRect(), F = R[B.type] - J[B.type];
|
|
3893
|
+
o.current.scrollTop += F - B.offset;
|
|
3894
3894
|
}
|
|
3895
3895
|
b(Z);
|
|
3896
3896
|
}
|
|
@@ -3902,22 +3902,22 @@ function Qg(t) {
|
|
|
3902
3902
|
ref: r,
|
|
3903
3903
|
onResize: $
|
|
3904
3904
|
});
|
|
3905
|
-
let P =
|
|
3905
|
+
let P = V(!1);
|
|
3906
3906
|
we(() => {
|
|
3907
3907
|
let B, N = () => {
|
|
3908
3908
|
P.current = !0, clearTimeout(B), B = setTimeout(() => {
|
|
3909
3909
|
P.current = !1;
|
|
3910
3910
|
}, 500), $();
|
|
3911
|
-
},
|
|
3911
|
+
}, z = () => {
|
|
3912
3912
|
P.current && N();
|
|
3913
3913
|
};
|
|
3914
|
-
return ge == null || ge.addEventListener("resize", N), ge == null || ge.addEventListener("scroll",
|
|
3915
|
-
ge == null || ge.removeEventListener("resize", N), ge == null || ge.removeEventListener("scroll",
|
|
3914
|
+
return ge == null || ge.addEventListener("resize", N), ge == null || ge.addEventListener("scroll", z), () => {
|
|
3915
|
+
ge == null || ge.removeEventListener("resize", N), ge == null || ge.removeEventListener("scroll", z);
|
|
3916
3916
|
};
|
|
3917
3917
|
}, [
|
|
3918
3918
|
$
|
|
3919
3919
|
]);
|
|
3920
|
-
let
|
|
3920
|
+
let D = ee(() => {
|
|
3921
3921
|
P.current || v == null || v();
|
|
3922
3922
|
}, [
|
|
3923
3923
|
v,
|
|
@@ -3926,9 +3926,9 @@ function Qg(t) {
|
|
|
3926
3926
|
Zg({
|
|
3927
3927
|
triggerRef: r,
|
|
3928
3928
|
isOpen: p,
|
|
3929
|
-
onClose: v &&
|
|
3929
|
+
onClose: v && D
|
|
3930
3930
|
});
|
|
3931
|
-
var y,
|
|
3931
|
+
var y, k;
|
|
3932
3932
|
return {
|
|
3933
3933
|
overlayProps: {
|
|
3934
3934
|
style: {
|
|
@@ -3938,7 +3938,7 @@ function Qg(t) {
|
|
|
3938
3938
|
maxHeight: (y = m == null ? void 0 : m.maxHeight) !== null && y !== void 0 ? y : "100vh"
|
|
3939
3939
|
}
|
|
3940
3940
|
},
|
|
3941
|
-
placement: (
|
|
3941
|
+
placement: (k = m == null ? void 0 : m.placement) !== null && k !== void 0 ? k : null,
|
|
3942
3942
|
arrowProps: {
|
|
3943
3943
|
"aria-hidden": "true",
|
|
3944
3944
|
role: "presentation",
|
|
@@ -4275,7 +4275,7 @@ function Al(t) {
|
|
|
4275
4275
|
let { onDismiss: e, ...n } = t, r = jg(sv(Jc), "@react-aria/overlays"), i = ga(n, r.format("dismiss")), o = () => {
|
|
4276
4276
|
e && e();
|
|
4277
4277
|
};
|
|
4278
|
-
return /* @__PURE__ */
|
|
4278
|
+
return /* @__PURE__ */ L.createElement(Bg, null, /* @__PURE__ */ L.createElement("button", {
|
|
4279
4279
|
...i,
|
|
4280
4280
|
tabIndex: -1,
|
|
4281
4281
|
onClick: o,
|
|
@@ -4381,9 +4381,9 @@ function fv() {
|
|
|
4381
4381
|
var t;
|
|
4382
4382
|
return (t = le(dv)) !== null && t !== void 0 ? t : {};
|
|
4383
4383
|
}
|
|
4384
|
-
const hv = /* @__PURE__ */
|
|
4384
|
+
const hv = /* @__PURE__ */ L.createContext(null);
|
|
4385
4385
|
function pv(t) {
|
|
4386
|
-
let e = Pn(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [i, o] = re(!1), a =
|
|
4386
|
+
let e = Pn(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [i, o] = re(!1), a = X(() => ({
|
|
4387
4387
|
contain: i,
|
|
4388
4388
|
setContain: o
|
|
4389
4389
|
}), [
|
|
@@ -4392,19 +4392,19 @@ function pv(t) {
|
|
|
4392
4392
|
]), { getContainer: l } = fv();
|
|
4393
4393
|
if (!t.portalContainer && l && (n = l()), !n) return null;
|
|
4394
4394
|
let s = t.children;
|
|
4395
|
-
return t.disableFocusManagement || (s = /* @__PURE__ */
|
|
4395
|
+
return t.disableFocusManagement || (s = /* @__PURE__ */ L.createElement(rc, {
|
|
4396
4396
|
restoreFocus: !0,
|
|
4397
4397
|
contain: i && !r
|
|
4398
|
-
}, s)), s = /* @__PURE__ */
|
|
4398
|
+
}, s)), s = /* @__PURE__ */ L.createElement(hv.Provider, {
|
|
4399
4399
|
value: a
|
|
4400
|
-
}, /* @__PURE__ */
|
|
4400
|
+
}, /* @__PURE__ */ L.createElement(pg, null, s)), /* @__PURE__ */ Cu.createPortal(s, n);
|
|
4401
4401
|
}
|
|
4402
4402
|
function Wo(t) {
|
|
4403
4403
|
return Yh() ? t.altKey : t.ctrlKey;
|
|
4404
4404
|
}
|
|
4405
4405
|
const gv = 1e3;
|
|
4406
4406
|
function vv(t) {
|
|
4407
|
-
let { keyboardDelegate: e, selectionManager: n, onTypeSelect: r } = t, i =
|
|
4407
|
+
let { keyboardDelegate: e, selectionManager: n, onTypeSelect: r } = t, i = V({
|
|
4408
4408
|
search: "",
|
|
4409
4409
|
timeout: void 0
|
|
4410
4410
|
}).current, o = (a) => {
|
|
@@ -4434,76 +4434,76 @@ function Zc(t) {
|
|
|
4434
4434
|
let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: a = !1, disallowSelectAll: l = !1, selectOnFocus: s = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: c, allowsTabNavigation: f = !1, isVirtualized: h, scrollRef: p = r, linkBehavior: v = "action" } = t, { direction: d } = cr(), g = pi(), m = (w) => {
|
|
4435
4435
|
var O;
|
|
4436
4436
|
if (w.altKey && w.key === "Tab" && w.preventDefault(), !(!((O = r.current) === null || O === void 0) && O.contains(w.target))) return;
|
|
4437
|
-
const
|
|
4438
|
-
if (
|
|
4439
|
-
if (e.isLink(
|
|
4437
|
+
const j = (K, te) => {
|
|
4438
|
+
if (K != null) {
|
|
4439
|
+
if (e.isLink(K) && v === "selection" && s && !Wo(w)) {
|
|
4440
4440
|
var ae;
|
|
4441
4441
|
Du(() => {
|
|
4442
|
-
e.setFocusedKey(
|
|
4442
|
+
e.setFocusedKey(K, te);
|
|
4443
4443
|
});
|
|
4444
|
-
let ye = (ae = p.current) === null || ae === void 0 ? void 0 : ae.querySelector(`[data-key="${CSS.escape(
|
|
4444
|
+
let ye = (ae = p.current) === null || ae === void 0 ? void 0 : ae.querySelector(`[data-key="${CSS.escape(K.toString())}"]`), me = e.getItemProps(K);
|
|
4445
4445
|
ye && g.open(ye, w, me.href, me.routerOptions);
|
|
4446
4446
|
return;
|
|
4447
4447
|
}
|
|
4448
|
-
if (e.setFocusedKey(
|
|
4449
|
-
w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(
|
|
4448
|
+
if (e.setFocusedKey(K, te), e.isLink(K) && v === "override") return;
|
|
4449
|
+
w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(K) : s && !Wo(w) && e.replaceSelection(K);
|
|
4450
4450
|
}
|
|
4451
4451
|
};
|
|
4452
4452
|
switch (w.key) {
|
|
4453
4453
|
case "ArrowDown":
|
|
4454
4454
|
if (n.getKeyBelow) {
|
|
4455
|
-
var
|
|
4456
|
-
let
|
|
4457
|
-
|
|
4455
|
+
var G, Z, R;
|
|
4456
|
+
let K = e.focusedKey != null ? (G = n.getKeyBelow) === null || G === void 0 ? void 0 : G.call(n, e.focusedKey) : (Z = n.getFirstKey) === null || Z === void 0 ? void 0 : Z.call(n);
|
|
4457
|
+
K == null && o && (K = (R = n.getFirstKey) === null || R === void 0 ? void 0 : R.call(n, e.focusedKey)), K != null && (w.preventDefault(), j(K));
|
|
4458
4458
|
}
|
|
4459
4459
|
break;
|
|
4460
4460
|
case "ArrowUp":
|
|
4461
4461
|
if (n.getKeyAbove) {
|
|
4462
|
-
var
|
|
4463
|
-
let
|
|
4464
|
-
|
|
4462
|
+
var J, F, H;
|
|
4463
|
+
let K = e.focusedKey != null ? (J = n.getKeyAbove) === null || J === void 0 ? void 0 : J.call(n, e.focusedKey) : (F = n.getLastKey) === null || F === void 0 ? void 0 : F.call(n);
|
|
4464
|
+
K == null && o && (K = (H = n.getLastKey) === null || H === void 0 ? void 0 : H.call(n, e.focusedKey)), K != null && (w.preventDefault(), j(K));
|
|
4465
4465
|
}
|
|
4466
4466
|
break;
|
|
4467
4467
|
case "ArrowLeft":
|
|
4468
4468
|
if (n.getKeyLeftOf) {
|
|
4469
|
-
var
|
|
4470
|
-
let
|
|
4471
|
-
|
|
4469
|
+
var _, I, A;
|
|
4470
|
+
let K = e.focusedKey != null ? (_ = n.getKeyLeftOf) === null || _ === void 0 ? void 0 : _.call(n, e.focusedKey) : null;
|
|
4471
|
+
K == null && o && (K = d === "rtl" ? (I = n.getFirstKey) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey) : (A = n.getLastKey) === null || A === void 0 ? void 0 : A.call(n, e.focusedKey)), K != null && (w.preventDefault(), j(K, d === "rtl" ? "first" : "last"));
|
|
4472
4472
|
}
|
|
4473
4473
|
break;
|
|
4474
4474
|
case "ArrowRight":
|
|
4475
4475
|
if (n.getKeyRightOf) {
|
|
4476
|
-
var
|
|
4477
|
-
let
|
|
4478
|
-
|
|
4476
|
+
var M, W, U;
|
|
4477
|
+
let K = e.focusedKey != null ? (M = n.getKeyRightOf) === null || M === void 0 ? void 0 : M.call(n, e.focusedKey) : null;
|
|
4478
|
+
K == null && o && (K = d === "rtl" ? (W = n.getLastKey) === null || W === void 0 ? void 0 : W.call(n, e.focusedKey) : (U = n.getFirstKey) === null || U === void 0 ? void 0 : U.call(n, e.focusedKey)), K != null && (w.preventDefault(), j(K, d === "rtl" ? "last" : "first"));
|
|
4479
4479
|
}
|
|
4480
4480
|
break;
|
|
4481
4481
|
case "Home":
|
|
4482
4482
|
if (n.getFirstKey) {
|
|
4483
4483
|
if (e.focusedKey === null && w.shiftKey) return;
|
|
4484
4484
|
w.preventDefault();
|
|
4485
|
-
let
|
|
4486
|
-
e.setFocusedKey(
|
|
4485
|
+
let K = n.getFirstKey(e.focusedKey, cn(w));
|
|
4486
|
+
e.setFocusedKey(K), K != null && (cn(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(K) : s && e.replaceSelection(K));
|
|
4487
4487
|
}
|
|
4488
4488
|
break;
|
|
4489
4489
|
case "End":
|
|
4490
4490
|
if (n.getLastKey) {
|
|
4491
4491
|
if (e.focusedKey === null && w.shiftKey) return;
|
|
4492
4492
|
w.preventDefault();
|
|
4493
|
-
let
|
|
4494
|
-
e.setFocusedKey(
|
|
4493
|
+
let K = n.getLastKey(e.focusedKey, cn(w));
|
|
4494
|
+
e.setFocusedKey(K), K != null && (cn(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(K) : s && e.replaceSelection(K));
|
|
4495
4495
|
}
|
|
4496
4496
|
break;
|
|
4497
4497
|
case "PageDown":
|
|
4498
4498
|
if (n.getKeyPageBelow && e.focusedKey != null) {
|
|
4499
|
-
let
|
|
4500
|
-
|
|
4499
|
+
let K = n.getKeyPageBelow(e.focusedKey);
|
|
4500
|
+
K != null && (w.preventDefault(), j(K));
|
|
4501
4501
|
}
|
|
4502
4502
|
break;
|
|
4503
4503
|
case "PageUp":
|
|
4504
4504
|
if (n.getKeyPageAbove && e.focusedKey != null) {
|
|
4505
|
-
let
|
|
4506
|
-
|
|
4505
|
+
let K = n.getKeyPageAbove(e.focusedKey);
|
|
4506
|
+
K != null && (w.preventDefault(), j(K));
|
|
4507
4507
|
}
|
|
4508
4508
|
break;
|
|
4509
4509
|
case "a":
|
|
@@ -4516,26 +4516,26 @@ function Zc(t) {
|
|
|
4516
4516
|
if (!f) {
|
|
4517
4517
|
if (w.shiftKey) r.current.focus();
|
|
4518
4518
|
else {
|
|
4519
|
-
let
|
|
4519
|
+
let K = tt(r.current, {
|
|
4520
4520
|
tabbable: !0
|
|
4521
4521
|
}), te, ae;
|
|
4522
4522
|
do
|
|
4523
|
-
ae =
|
|
4523
|
+
ae = K.lastChild(), ae && (te = ae);
|
|
4524
4524
|
while (ae);
|
|
4525
4525
|
te && !te.contains(document.activeElement) && _t(te);
|
|
4526
4526
|
}
|
|
4527
4527
|
break;
|
|
4528
4528
|
}
|
|
4529
4529
|
}
|
|
4530
|
-
}, b =
|
|
4530
|
+
}, b = V({
|
|
4531
4531
|
top: 0,
|
|
4532
4532
|
left: 0
|
|
4533
4533
|
});
|
|
4534
4534
|
vr(p, "scroll", h ? void 0 : () => {
|
|
4535
|
-
var w, O,
|
|
4535
|
+
var w, O, j, G;
|
|
4536
4536
|
b.current = {
|
|
4537
|
-
top: (
|
|
4538
|
-
left: (
|
|
4537
|
+
top: (j = (w = p.current) === null || w === void 0 ? void 0 : w.scrollTop) !== null && j !== void 0 ? j : 0,
|
|
4538
|
+
left: (G = (O = p.current) === null || O === void 0 ? void 0 : O.scrollLeft) !== null && G !== void 0 ? G : 0
|
|
4539
4539
|
};
|
|
4540
4540
|
});
|
|
4541
4541
|
let S = (w) => {
|
|
@@ -4545,12 +4545,12 @@ function Zc(t) {
|
|
|
4545
4545
|
}
|
|
4546
4546
|
if (w.currentTarget.contains(w.target)) {
|
|
4547
4547
|
if (e.setFocused(!0), e.focusedKey == null) {
|
|
4548
|
-
var O,
|
|
4549
|
-
let R = (
|
|
4550
|
-
|
|
4551
|
-
},
|
|
4552
|
-
var
|
|
4553
|
-
|
|
4548
|
+
var O, j;
|
|
4549
|
+
let R = (F) => {
|
|
4550
|
+
F != null && (e.setFocusedKey(F), s && e.replaceSelection(F));
|
|
4551
|
+
}, J = w.relatedTarget;
|
|
4552
|
+
var G, Z;
|
|
4553
|
+
J && w.currentTarget.compareDocumentPosition(J) & Node.DOCUMENT_POSITION_FOLLOWING ? R((G = e.lastSelectedKey) !== null && G !== void 0 ? G : (O = n.getLastKey) === null || O === void 0 ? void 0 : O.call(n)) : R((Z = e.firstSelectedKey) !== null && Z !== void 0 ? Z : (j = n.getFirstKey) === null || j === void 0 ? void 0 : j.call(n));
|
|
4554
4554
|
} else !h && p.current && (p.current.scrollTop = b.current.top, p.current.scrollLeft = b.current.left);
|
|
4555
4555
|
if (e.focusedKey != null && p.current) {
|
|
4556
4556
|
let R = p.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
@@ -4559,24 +4559,24 @@ function Zc(t) {
|
|
|
4559
4559
|
}));
|
|
4560
4560
|
}
|
|
4561
4561
|
}
|
|
4562
|
-
},
|
|
4562
|
+
}, C = (w) => {
|
|
4563
4563
|
w.currentTarget.contains(w.relatedTarget) || e.setFocused(!1);
|
|
4564
|
-
}, $ =
|
|
4564
|
+
}, $ = V(!1);
|
|
4565
4565
|
vr(r, up, c ? (w) => {
|
|
4566
4566
|
let { detail: O } = w;
|
|
4567
4567
|
w.stopPropagation(), e.setFocused(!0), (O == null ? void 0 : O.focusStrategy) === "first" && ($.current = !0);
|
|
4568
4568
|
} : void 0);
|
|
4569
4569
|
let P = Re(() => {
|
|
4570
4570
|
var w, O;
|
|
4571
|
-
let
|
|
4572
|
-
if (
|
|
4573
|
-
var
|
|
4574
|
-
(
|
|
4571
|
+
let j = (O = (w = n.getFirstKey) === null || w === void 0 ? void 0 : w.call(n)) !== null && O !== void 0 ? O : null;
|
|
4572
|
+
if (j == null) {
|
|
4573
|
+
var G;
|
|
4574
|
+
(G = r.current) === null || G === void 0 || G.dispatchEvent(new CustomEvent(Fu, {
|
|
4575
4575
|
cancelable: !0,
|
|
4576
4576
|
bubbles: !0
|
|
4577
4577
|
})), e.collection.size > 0 && ($.current = !1);
|
|
4578
4578
|
} else
|
|
4579
|
-
e.setFocusedKey(
|
|
4579
|
+
e.setFocusedKey(j), $.current = !1;
|
|
4580
4580
|
});
|
|
4581
4581
|
el(() => {
|
|
4582
4582
|
$.current && P();
|
|
@@ -4584,39 +4584,39 @@ function Zc(t) {
|
|
|
4584
4584
|
e.collection,
|
|
4585
4585
|
P
|
|
4586
4586
|
]);
|
|
4587
|
-
let
|
|
4587
|
+
let D = Re(() => {
|
|
4588
4588
|
e.collection.size > 0 && ($.current = !1);
|
|
4589
4589
|
});
|
|
4590
4590
|
el(() => {
|
|
4591
|
-
|
|
4591
|
+
D();
|
|
4592
4592
|
}, [
|
|
4593
4593
|
e.focusedKey,
|
|
4594
|
-
|
|
4594
|
+
D
|
|
4595
4595
|
]), vr(r, sp, c ? (w) => {
|
|
4596
4596
|
w.stopPropagation(), e.setFocused(!1), e.setFocusedKey(null);
|
|
4597
4597
|
} : void 0);
|
|
4598
|
-
const y =
|
|
4598
|
+
const y = V(i);
|
|
4599
4599
|
Q(() => {
|
|
4600
4600
|
if (y.current) {
|
|
4601
4601
|
var w, O;
|
|
4602
4602
|
let Z = null;
|
|
4603
|
-
var
|
|
4604
|
-
i === "first" && (Z = (
|
|
4605
|
-
var
|
|
4606
|
-
i === "last" && (Z = (
|
|
4603
|
+
var j;
|
|
4604
|
+
i === "first" && (Z = (j = (w = n.getFirstKey) === null || w === void 0 ? void 0 : w.call(n)) !== null && j !== void 0 ? j : null);
|
|
4605
|
+
var G;
|
|
4606
|
+
i === "last" && (Z = (G = (O = n.getLastKey) === null || O === void 0 ? void 0 : O.call(n)) !== null && G !== void 0 ? G : null);
|
|
4607
4607
|
let R = e.selectedKeys;
|
|
4608
4608
|
if (R.size) {
|
|
4609
|
-
for (let
|
|
4610
|
-
Z =
|
|
4609
|
+
for (let J of R) if (e.canSelectItem(J)) {
|
|
4610
|
+
Z = J;
|
|
4611
4611
|
break;
|
|
4612
4612
|
}
|
|
4613
4613
|
}
|
|
4614
4614
|
e.setFocused(!0), e.setFocusedKey(Z), Z == null && !c && r.current && Zr(r.current);
|
|
4615
4615
|
}
|
|
4616
4616
|
}, []);
|
|
4617
|
-
let
|
|
4617
|
+
let k = V(e.focusedKey);
|
|
4618
4618
|
Q(() => {
|
|
4619
|
-
if (e.isFocused && e.focusedKey != null && (e.focusedKey !==
|
|
4619
|
+
if (e.isFocused && e.focusedKey != null && (e.focusedKey !== k.current || y.current) && p.current && r.current) {
|
|
4620
4620
|
let w = Sl(), O = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
|
|
4621
4621
|
if (!O)
|
|
4622
4622
|
return;
|
|
@@ -4624,14 +4624,14 @@ function Zc(t) {
|
|
|
4624
4624
|
containingElement: r.current
|
|
4625
4625
|
}));
|
|
4626
4626
|
}
|
|
4627
|
-
!c && e.isFocused && e.focusedKey == null &&
|
|
4627
|
+
!c && e.isFocused && e.focusedKey == null && k.current != null && r.current && Zr(r.current), k.current = e.focusedKey, y.current = !1;
|
|
4628
4628
|
}), vr(r, "react-aria-focus-scope-restore", (w) => {
|
|
4629
4629
|
w.preventDefault(), e.setFocused(!0);
|
|
4630
4630
|
});
|
|
4631
4631
|
let B = {
|
|
4632
4632
|
onKeyDown: m,
|
|
4633
4633
|
onFocus: S,
|
|
4634
|
-
onBlur:
|
|
4634
|
+
onBlur: C,
|
|
4635
4635
|
onMouseDown(w) {
|
|
4636
4636
|
p.current === w.target && w.preventDefault();
|
|
4637
4637
|
}
|
|
@@ -4640,11 +4640,11 @@ function Zc(t) {
|
|
|
4640
4640
|
selectionManager: e
|
|
4641
4641
|
});
|
|
4642
4642
|
u || (B = Te(N, B));
|
|
4643
|
-
let
|
|
4644
|
-
return c ?
|
|
4643
|
+
let z;
|
|
4644
|
+
return c ? z = -1 : z = e.focusedKey == null ? 0 : -1, {
|
|
4645
4645
|
collectionProps: {
|
|
4646
4646
|
...B,
|
|
4647
|
-
tabIndex:
|
|
4647
|
+
tabIndex: z
|
|
4648
4648
|
}
|
|
4649
4649
|
};
|
|
4650
4650
|
}
|
|
@@ -4657,8 +4657,8 @@ function Qc(t) {
|
|
|
4657
4657
|
if (n.selectionMode === "none") return;
|
|
4658
4658
|
if (n.isLink(r)) {
|
|
4659
4659
|
if (f === "selection" && i.current) {
|
|
4660
|
-
let
|
|
4661
|
-
h.open(i.current, R,
|
|
4660
|
+
let J = n.getItemProps(r);
|
|
4661
|
+
h.open(i.current, R, J.href, J.routerOptions), n.setSelectedKeys(n.selectedKeys);
|
|
4662
4662
|
return;
|
|
4663
4663
|
} else if (f === "override" || f === "none") return;
|
|
4664
4664
|
}
|
|
@@ -4670,12 +4670,12 @@ function Qc(t) {
|
|
|
4670
4670
|
if (!a)
|
|
4671
4671
|
l ? l() : document.activeElement !== i.current && i.current && Zr(i.current);
|
|
4672
4672
|
else {
|
|
4673
|
-
var
|
|
4674
|
-
let
|
|
4673
|
+
var J;
|
|
4674
|
+
let F = new CustomEvent(Fu, {
|
|
4675
4675
|
cancelable: !0,
|
|
4676
4676
|
bubbles: !0
|
|
4677
4677
|
});
|
|
4678
|
-
(
|
|
4678
|
+
(J = i.current) === null || J === void 0 || J.dispatchEvent(F);
|
|
4679
4679
|
}
|
|
4680
4680
|
}, [
|
|
4681
4681
|
i,
|
|
@@ -4694,44 +4694,44 @@ function Qc(t) {
|
|
|
4694
4694
|
} : s && (v.onMouseDown = (R) => {
|
|
4695
4695
|
R.preventDefault();
|
|
4696
4696
|
});
|
|
4697
|
-
let d = n.isLink(r) && f === "override", g = n.isLink(r) && f !== "selection" && f !== "none", m = !s && n.canSelectItem(r) && !d, b = (u || g) && !s, S = b && (n.selectionBehavior === "replace" ? !m : !m || n.isEmpty),
|
|
4697
|
+
let d = n.isLink(r) && f === "override", g = n.isLink(r) && f !== "selection" && f !== "none", m = !s && n.canSelectItem(r) && !d, b = (u || g) && !s, S = b && (n.selectionBehavior === "replace" ? !m : !m || n.isEmpty), C = b && m && n.selectionBehavior === "replace", $ = S || C, P = V(null), D = $ && m, y = V(!1), k = V(!1), B = (R) => {
|
|
4698
4698
|
if (u && u(), g && i.current) {
|
|
4699
|
-
let
|
|
4700
|
-
h.open(i.current, R,
|
|
4699
|
+
let J = n.getItemProps(r);
|
|
4700
|
+
h.open(i.current, R, J.href, J.routerOptions);
|
|
4701
4701
|
}
|
|
4702
4702
|
}, N = {};
|
|
4703
4703
|
o ? (N.onPressStart = (R) => {
|
|
4704
|
-
P.current = R.pointerType, y.current =
|
|
4704
|
+
P.current = R.pointerType, y.current = D, R.pointerType === "keyboard" && (!$ || Kl()) && p(R);
|
|
4705
4705
|
}, c ? (N.onPressUp = S ? void 0 : (R) => {
|
|
4706
4706
|
R.pointerType === "mouse" && m && p(R);
|
|
4707
4707
|
}, N.onPress = S ? B : (R) => {
|
|
4708
4708
|
R.pointerType !== "keyboard" && R.pointerType !== "mouse" && m && p(R);
|
|
4709
4709
|
}) : N.onPress = (R) => {
|
|
4710
|
-
if (S ||
|
|
4710
|
+
if (S || C && R.pointerType !== "mouse") {
|
|
4711
4711
|
if (R.pointerType === "keyboard" && !Ml()) return;
|
|
4712
4712
|
B(R);
|
|
4713
4713
|
} else R.pointerType !== "keyboard" && m && p(R);
|
|
4714
4714
|
}) : (N.onPressStart = (R) => {
|
|
4715
|
-
P.current = R.pointerType, y.current =
|
|
4715
|
+
P.current = R.pointerType, y.current = D, k.current = S, m && (R.pointerType === "mouse" && !S || R.pointerType === "keyboard" && (!b || Kl())) && p(R);
|
|
4716
4716
|
}, N.onPress = (R) => {
|
|
4717
|
-
(R.pointerType === "touch" || R.pointerType === "pen" || R.pointerType === "virtual" || R.pointerType === "keyboard" && $ && Ml() || R.pointerType === "mouse" &&
|
|
4717
|
+
(R.pointerType === "touch" || R.pointerType === "pen" || R.pointerType === "virtual" || R.pointerType === "keyboard" && $ && Ml() || R.pointerType === "mouse" && k.current) && ($ ? B(R) : m && p(R));
|
|
4718
4718
|
}), v["data-key"] = r, N.preventFocusOnPress = a;
|
|
4719
|
-
let { pressProps:
|
|
4719
|
+
let { pressProps: z, isPressed: w } = Ca(N), O = C ? (R) => {
|
|
4720
4720
|
P.current === "mouse" && (R.stopPropagation(), R.preventDefault(), B(R));
|
|
4721
|
-
} : void 0, { longPressProps:
|
|
4722
|
-
isDisabled: !
|
|
4721
|
+
} : void 0, { longPressProps: j } = Tg({
|
|
4722
|
+
isDisabled: !D,
|
|
4723
4723
|
onLongPress(R) {
|
|
4724
4724
|
R.pointerType === "touch" && (p(R), n.setSelectionBehavior("toggle"));
|
|
4725
4725
|
}
|
|
4726
|
-
}),
|
|
4726
|
+
}), G = (R) => {
|
|
4727
4727
|
P.current === "touch" && y.current && R.preventDefault();
|
|
4728
4728
|
}, Z = n.isLink(r) ? (R) => {
|
|
4729
4729
|
Lt.isOpening || R.preventDefault();
|
|
4730
4730
|
} : void 0;
|
|
4731
4731
|
return {
|
|
4732
|
-
itemProps: Te(v, m || S ?
|
|
4732
|
+
itemProps: Te(v, m || S ? z : {}, D ? j : {}, {
|
|
4733
4733
|
onDoubleClick: O,
|
|
4734
|
-
onDragStartCapture:
|
|
4734
|
+
onDragStartCapture: G,
|
|
4735
4735
|
onClick: Z,
|
|
4736
4736
|
id: e
|
|
4737
4737
|
}),
|
|
@@ -4907,7 +4907,7 @@ function bv(t) {
|
|
|
4907
4907
|
let { selectionManager: e, collection: n, disabledKeys: r, ref: i, keyboardDelegate: o, layoutDelegate: a } = t, l = zg({
|
|
4908
4908
|
usage: "search",
|
|
4909
4909
|
sensitivity: "base"
|
|
4910
|
-
}), s = e.disabledBehavior, u =
|
|
4910
|
+
}), s = e.disabledBehavior, u = X(() => o || new yv({
|
|
4911
4911
|
collection: n,
|
|
4912
4912
|
disabledKeys: r,
|
|
4913
4913
|
disabledBehavior: s,
|
|
@@ -5002,44 +5002,44 @@ function $v(t, e, n) {
|
|
|
5002
5002
|
};
|
|
5003
5003
|
}
|
|
5004
5004
|
function xv(t, e, n) {
|
|
5005
|
-
let { id: r, key: i, closeOnSelect: o, isVirtualized: a, "aria-haspopup": l, onPressStart: s, onPressUp: u, onPress: c, onPressChange: f, onPressEnd: h, onHoverStart: p, onHoverChange: v, onHoverEnd: d, onKeyDown: g, onKeyUp: m, onFocus: b, onFocusChange: S, onBlur:
|
|
5005
|
+
let { id: r, key: i, closeOnSelect: o, isVirtualized: a, "aria-haspopup": l, onPressStart: s, onPressUp: u, onPress: c, onPressChange: f, onPressEnd: h, onHoverStart: p, onHoverChange: v, onHoverEnd: d, onKeyDown: g, onKeyUp: m, onFocus: b, onFocusChange: S, onBlur: C, selectionManager: $ = e.selectionManager } = t, P = !!l, D = P && t["aria-expanded"] === "true";
|
|
5006
5006
|
var y;
|
|
5007
|
-
let
|
|
5007
|
+
let k = (y = t.isDisabled) !== null && y !== void 0 ? y : $.isDisabled(i);
|
|
5008
5008
|
var B;
|
|
5009
|
-
let N = (B = t.isSelected) !== null && B !== void 0 ? B : $.isSelected(i),
|
|
5009
|
+
let N = (B = t.isSelected) !== null && B !== void 0 ? B : $.isSelected(i), z = td.get(e), w = e.collection.getItem(i), O = t.onClose || z.onClose, j = pi(), G = (ue) => {
|
|
5010
5010
|
var Ze;
|
|
5011
5011
|
if (!P) {
|
|
5012
|
-
if (!(w == null || (Ze = w.props) === null || Ze === void 0) && Ze.onAction ? w.props.onAction() : t.onAction && t.onAction(i),
|
|
5013
|
-
let gt =
|
|
5012
|
+
if (!(w == null || (Ze = w.props) === null || Ze === void 0) && Ze.onAction ? w.props.onAction() : t.onAction && t.onAction(i), z.onAction) {
|
|
5013
|
+
let gt = z.onAction;
|
|
5014
5014
|
gt(i);
|
|
5015
5015
|
}
|
|
5016
|
-
ue.target instanceof HTMLAnchorElement && w &&
|
|
5016
|
+
ue.target instanceof HTMLAnchorElement && w && j.open(ue.target, ue, w.props.href, w.props.routerOptions);
|
|
5017
5017
|
}
|
|
5018
5018
|
}, Z = "menuitem";
|
|
5019
5019
|
P || ($.selectionMode === "single" ? Z = "menuitemradio" : $.selectionMode === "multiple" && (Z = "menuitemcheckbox"));
|
|
5020
|
-
let R = Ai(),
|
|
5020
|
+
let R = Ai(), J = Ai(), F = Ai(), H = {
|
|
5021
5021
|
id: r,
|
|
5022
|
-
"aria-disabled":
|
|
5022
|
+
"aria-disabled": k || void 0,
|
|
5023
5023
|
role: Z,
|
|
5024
5024
|
"aria-label": t["aria-label"],
|
|
5025
5025
|
"aria-labelledby": R,
|
|
5026
5026
|
"aria-describedby": [
|
|
5027
|
-
|
|
5028
|
-
|
|
5027
|
+
J,
|
|
5028
|
+
F
|
|
5029
5029
|
].filter(Boolean).join(" ") || void 0,
|
|
5030
5030
|
"aria-controls": t["aria-controls"],
|
|
5031
5031
|
"aria-haspopup": l,
|
|
5032
5032
|
"aria-expanded": t["aria-expanded"]
|
|
5033
5033
|
};
|
|
5034
|
-
$.selectionMode !== "none" && !P && (
|
|
5035
|
-
let
|
|
5036
|
-
ue.pointerType === "keyboard" &&
|
|
5034
|
+
$.selectionMode !== "none" && !P && (H["aria-checked"] = N), a && (H["aria-posinset"] = w == null ? void 0 : w.index, H["aria-setsize"] = Ev(e.collection));
|
|
5035
|
+
let _ = (ue) => {
|
|
5036
|
+
ue.pointerType === "keyboard" && G(ue), s == null || s(ue);
|
|
5037
5037
|
}, I = () => {
|
|
5038
5038
|
!P && O && (o ?? ($.selectionMode !== "multiple" || $.isLink(i))) && O();
|
|
5039
|
+
}, A = (ue) => {
|
|
5040
|
+
ue.pointerType === "mouse" && (G(ue), I()), u == null || u(ue);
|
|
5039
5041
|
}, M = (ue) => {
|
|
5040
|
-
ue.pointerType
|
|
5041
|
-
}, K = (ue) => {
|
|
5042
|
-
ue.pointerType !== "keyboard" && ue.pointerType !== "mouse" && (V(ue), I()), c == null || c(ue);
|
|
5042
|
+
ue.pointerType !== "keyboard" && ue.pointerType !== "mouse" && (G(ue), I()), c == null || c(ue);
|
|
5043
5043
|
}, { itemProps: W, isFocused: U } = Qc({
|
|
5044
5044
|
id: r,
|
|
5045
5045
|
selectionManager: $,
|
|
@@ -5052,18 +5052,18 @@ function xv(t, e, n) {
|
|
|
5052
5052
|
// is slightly different from other collections because
|
|
5053
5053
|
// actions are performed on key down rather than key up.
|
|
5054
5054
|
linkBehavior: "none",
|
|
5055
|
-
shouldUseVirtualFocus:
|
|
5056
|
-
}), { pressProps:
|
|
5057
|
-
onPressStart:
|
|
5058
|
-
onPress:
|
|
5059
|
-
onPressUp:
|
|
5055
|
+
shouldUseVirtualFocus: z.shouldUseVirtualFocus
|
|
5056
|
+
}), { pressProps: K, isPressed: te } = Ca({
|
|
5057
|
+
onPressStart: _,
|
|
5058
|
+
onPress: M,
|
|
5059
|
+
onPressUp: A,
|
|
5060
5060
|
onPressChange: f,
|
|
5061
5061
|
onPressEnd: h,
|
|
5062
|
-
isDisabled:
|
|
5062
|
+
isDisabled: k
|
|
5063
5063
|
}), { hoverProps: ae } = Oa({
|
|
5064
|
-
isDisabled:
|
|
5064
|
+
isDisabled: k,
|
|
5065
5065
|
onHoverStart(ue) {
|
|
5066
|
-
!Sg() && !(
|
|
5066
|
+
!Sg() && !(D && l === "dialog") && ($.setFocused(!0), $.setFocusedKey(i)), p == null || p(ue);
|
|
5067
5067
|
},
|
|
5068
5068
|
onHoverChange: v,
|
|
5069
5069
|
onHoverEnd: d
|
|
@@ -5075,10 +5075,10 @@ function xv(t, e, n) {
|
|
|
5075
5075
|
}
|
|
5076
5076
|
switch (ue.key) {
|
|
5077
5077
|
case " ":
|
|
5078
|
-
!
|
|
5078
|
+
!k && $.selectionMode === "none" && !P && o !== !1 && O && O();
|
|
5079
5079
|
break;
|
|
5080
5080
|
case "Enter":
|
|
5081
|
-
!
|
|
5081
|
+
!k && o !== !1 && !P && O && O();
|
|
5082
5082
|
break;
|
|
5083
5083
|
default:
|
|
5084
5084
|
P || ue.continuePropagation(), g == null || g(ue);
|
|
@@ -5087,7 +5087,7 @@ function xv(t, e, n) {
|
|
|
5087
5087
|
},
|
|
5088
5088
|
onKeyUp: m
|
|
5089
5089
|
}), { focusProps: me } = vg({
|
|
5090
|
-
onBlur:
|
|
5090
|
+
onBlur: C,
|
|
5091
5091
|
onFocus: b,
|
|
5092
5092
|
onFocusChange: S
|
|
5093
5093
|
}), fe = Xe(w == null ? void 0 : w.props);
|
|
@@ -5095,27 +5095,27 @@ function xv(t, e, n) {
|
|
|
5095
5095
|
let Ee = Au(w == null ? void 0 : w.props);
|
|
5096
5096
|
return {
|
|
5097
5097
|
menuItemProps: {
|
|
5098
|
-
...
|
|
5098
|
+
...H,
|
|
5099
5099
|
...Te(fe, Ee, P ? {
|
|
5100
5100
|
onFocus: W.onFocus,
|
|
5101
5101
|
"data-key": W["data-key"]
|
|
5102
|
-
} : W,
|
|
5102
|
+
} : W, K, ae, ye, me),
|
|
5103
5103
|
// If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
|
|
5104
|
-
tabIndex: W.tabIndex != null &&
|
|
5104
|
+
tabIndex: W.tabIndex != null && D ? -1 : W.tabIndex
|
|
5105
5105
|
},
|
|
5106
5106
|
labelProps: {
|
|
5107
5107
|
id: R
|
|
5108
5108
|
},
|
|
5109
5109
|
descriptionProps: {
|
|
5110
|
-
id:
|
|
5110
|
+
id: J
|
|
5111
5111
|
},
|
|
5112
5112
|
keyboardShortcutProps: {
|
|
5113
|
-
id:
|
|
5113
|
+
id: F
|
|
5114
5114
|
},
|
|
5115
5115
|
isFocused: U,
|
|
5116
5116
|
isSelected: N,
|
|
5117
5117
|
isPressed: te,
|
|
5118
|
-
isDisabled:
|
|
5118
|
+
isDisabled: k
|
|
5119
5119
|
};
|
|
5120
5120
|
}
|
|
5121
5121
|
function Tv(t) {
|
|
@@ -5242,7 +5242,7 @@ class Ov {
|
|
|
5242
5242
|
}
|
|
5243
5243
|
}
|
|
5244
5244
|
function Iv(t, e, n) {
|
|
5245
|
-
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = t, { collection: o, selectionManager: a, disabledKeys: l } = e, { direction: s } = cr(), u =
|
|
5245
|
+
let { orientation: r = "horizontal", keyboardActivation: i = "automatic" } = t, { collection: o, selectionManager: a, disabledKeys: l } = e, { direction: s } = cr(), u = X(() => new Ov(o, s, r, l), [
|
|
5246
5246
|
o,
|
|
5247
5247
|
l,
|
|
5248
5248
|
r,
|
|
@@ -5301,7 +5301,7 @@ class Nv {
|
|
|
5301
5301
|
}
|
|
5302
5302
|
*iterateCollection(e) {
|
|
5303
5303
|
let { children: n, items: r } = e;
|
|
5304
|
-
if (
|
|
5304
|
+
if (L.isValidElement(n) && n.type === L.Fragment) yield* this.iterateCollection({
|
|
5305
5305
|
children: n.props.children,
|
|
5306
5306
|
items: r
|
|
5307
5307
|
});
|
|
@@ -5317,7 +5317,7 @@ class Nv {
|
|
|
5317
5317
|
}), i++;
|
|
5318
5318
|
} else {
|
|
5319
5319
|
let i = [];
|
|
5320
|
-
|
|
5320
|
+
L.Children.forEach(n, (a) => {
|
|
5321
5321
|
a && i.push(a);
|
|
5322
5322
|
});
|
|
5323
5323
|
let o = 0;
|
|
@@ -5349,9 +5349,9 @@ class Nv {
|
|
|
5349
5349
|
};
|
|
5350
5350
|
}
|
|
5351
5351
|
*getFullNode(e, n, r, i) {
|
|
5352
|
-
if (
|
|
5352
|
+
if (L.isValidElement(e.element) && e.element.type === L.Fragment) {
|
|
5353
5353
|
let g = [];
|
|
5354
|
-
|
|
5354
|
+
L.Children.forEach(e.element.props.children, (b) => {
|
|
5355
5355
|
g.push(b);
|
|
5356
5356
|
});
|
|
5357
5357
|
var o;
|
|
@@ -5371,37 +5371,37 @@ class Nv {
|
|
|
5371
5371
|
}
|
|
5372
5372
|
a = n.renderer(e.value);
|
|
5373
5373
|
}
|
|
5374
|
-
if (
|
|
5374
|
+
if (L.isValidElement(a)) {
|
|
5375
5375
|
let g = a.type;
|
|
5376
5376
|
if (typeof g != "function" && typeof g.getCollectionNode != "function") {
|
|
5377
|
-
let
|
|
5378
|
-
throw new Error(`Unknown element <${
|
|
5377
|
+
let C = a.type;
|
|
5378
|
+
throw new Error(`Unknown element <${C}> in collection.`);
|
|
5379
5379
|
}
|
|
5380
5380
|
let m = g.getCollectionNode(a.props, this.context);
|
|
5381
5381
|
var l;
|
|
5382
5382
|
let b = (l = e.index) !== null && l !== void 0 ? l : 0, S = m.next();
|
|
5383
5383
|
for (; !S.done && S.value; ) {
|
|
5384
|
-
let
|
|
5384
|
+
let C = S.value;
|
|
5385
5385
|
e.index = b;
|
|
5386
5386
|
var s;
|
|
5387
|
-
let $ = (s =
|
|
5388
|
-
$ == null && ($ =
|
|
5389
|
-
let
|
|
5387
|
+
let $ = (s = C.key) !== null && s !== void 0 ? s : null;
|
|
5388
|
+
$ == null && ($ = C.element ? null : this.getKey(a, e, n, r));
|
|
5389
|
+
let D = [
|
|
5390
5390
|
...this.getFullNode({
|
|
5391
|
-
...
|
|
5391
|
+
...C,
|
|
5392
5392
|
key: $,
|
|
5393
5393
|
index: b,
|
|
5394
|
-
wrapper: Rv(e.wrapper,
|
|
5395
|
-
}, this.getChildState(n,
|
|
5394
|
+
wrapper: Rv(e.wrapper, C.wrapper)
|
|
5395
|
+
}, this.getChildState(n, C), r ? `${r}${a.key}` : a.key, i)
|
|
5396
5396
|
];
|
|
5397
|
-
for (let y of
|
|
5397
|
+
for (let y of D) {
|
|
5398
5398
|
var u, c;
|
|
5399
|
-
y.value = (c = (u =
|
|
5399
|
+
y.value = (c = (u = C.value) !== null && u !== void 0 ? u : e.value) !== null && c !== void 0 ? c : null, y.value && this.cache.set(y.value, y);
|
|
5400
5400
|
var f;
|
|
5401
5401
|
if (e.type && y.type !== e.type) throw new Error(`Unsupported type <${qi(y.type)}> in <${qi((f = i == null ? void 0 : i.type) !== null && f !== void 0 ? f : "unknown parent type")}>. Only <${qi(e.type)}> is supported.`);
|
|
5402
5402
|
b++, yield y;
|
|
5403
5403
|
}
|
|
5404
|
-
S = m.next(
|
|
5404
|
+
S = m.next(D);
|
|
5405
5405
|
}
|
|
5406
5406
|
return;
|
|
5407
5407
|
}
|
|
@@ -5462,8 +5462,8 @@ function qi(t) {
|
|
|
5462
5462
|
return t[0].toUpperCase() + t.slice(1);
|
|
5463
5463
|
}
|
|
5464
5464
|
function rd(t, e, n) {
|
|
5465
|
-
let r =
|
|
5466
|
-
return
|
|
5465
|
+
let r = X(() => new Nv(), []), { children: i, items: o, collection: a } = t;
|
|
5466
|
+
return X(() => {
|
|
5467
5467
|
if (a) return a;
|
|
5468
5468
|
let s = r.build({
|
|
5469
5469
|
children: i,
|
|
@@ -5531,21 +5531,21 @@ function Lv(t) {
|
|
|
5531
5531
|
items: d,
|
|
5532
5532
|
nodeMap: b
|
|
5533
5533
|
};
|
|
5534
|
-
let
|
|
5535
|
-
for ($ == null ? v(S,
|
|
5536
|
-
let
|
|
5537
|
-
key:
|
|
5538
|
-
parentKey:
|
|
5539
|
-
value:
|
|
5534
|
+
let C = new Map(b), $ = m(S);
|
|
5535
|
+
for ($ == null ? v(S, C) : p($, C); S && S.parentKey; ) {
|
|
5536
|
+
let D = C.get(S.parentKey), y = {
|
|
5537
|
+
key: D.key,
|
|
5538
|
+
parentKey: D.parentKey,
|
|
5539
|
+
value: D.value,
|
|
5540
5540
|
children: null
|
|
5541
|
-
},
|
|
5542
|
-
$ == null &&
|
|
5541
|
+
}, k = D.children;
|
|
5542
|
+
$ == null && k && (k = k.filter((B) => B !== S));
|
|
5543
5543
|
var P;
|
|
5544
|
-
y.children = (P =
|
|
5544
|
+
y.children = (P = k == null ? void 0 : k.map((B) => B === S ? $ : B)) !== null && P !== void 0 ? P : null, C.set(y.key, y), $ = y, S = D;
|
|
5545
5545
|
}
|
|
5546
|
-
return $ == null && (d = d.filter((
|
|
5547
|
-
items: d.map((
|
|
5548
|
-
nodeMap:
|
|
5546
|
+
return $ == null && (d = d.filter((D) => D !== S)), {
|
|
5547
|
+
items: d.map((D) => D === S ? $ : D),
|
|
5548
|
+
nodeMap: C
|
|
5549
5549
|
};
|
|
5550
5550
|
}
|
|
5551
5551
|
function p(d, g) {
|
|
@@ -5563,11 +5563,11 @@ function Lv(t) {
|
|
|
5563
5563
|
},
|
|
5564
5564
|
insert(d, g, ...m) {
|
|
5565
5565
|
a(({ items: b, nodeMap: S }) => {
|
|
5566
|
-
let { items:
|
|
5566
|
+
let { items: C, nodeMap: $ } = f(m, S, d);
|
|
5567
5567
|
return d == null ? {
|
|
5568
5568
|
items: [
|
|
5569
5569
|
...b.slice(0, g),
|
|
5570
|
-
...
|
|
5570
|
+
...C,
|
|
5571
5571
|
...b.slice(g)
|
|
5572
5572
|
],
|
|
5573
5573
|
nodeMap: $
|
|
@@ -5577,7 +5577,7 @@ function Lv(t) {
|
|
|
5577
5577
|
value: P.value,
|
|
5578
5578
|
children: [
|
|
5579
5579
|
...P.children.slice(0, g),
|
|
5580
|
-
...
|
|
5580
|
+
...C,
|
|
5581
5581
|
...P.children.slice(g)
|
|
5582
5582
|
]
|
|
5583
5583
|
}), $);
|
|
@@ -5586,16 +5586,16 @@ function Lv(t) {
|
|
|
5586
5586
|
insertBefore(d, ...g) {
|
|
5587
5587
|
let m = s.get(d);
|
|
5588
5588
|
if (!m) return;
|
|
5589
|
-
let b = s.get(m.parentKey),
|
|
5589
|
+
let b = s.get(m.parentKey), C = (b ? b.children : l).indexOf(m);
|
|
5590
5590
|
var $;
|
|
5591
|
-
this.insert(($ = b == null ? void 0 : b.key) !== null && $ !== void 0 ? $ : null,
|
|
5591
|
+
this.insert(($ = b == null ? void 0 : b.key) !== null && $ !== void 0 ? $ : null, C, ...g);
|
|
5592
5592
|
},
|
|
5593
5593
|
insertAfter(d, ...g) {
|
|
5594
5594
|
let m = s.get(d);
|
|
5595
5595
|
if (!m) return;
|
|
5596
|
-
let b = s.get(m.parentKey),
|
|
5596
|
+
let b = s.get(m.parentKey), C = (b ? b.children : l).indexOf(m);
|
|
5597
5597
|
var $;
|
|
5598
|
-
this.insert(($ = b == null ? void 0 : b.key) !== null && $ !== void 0 ? $ : null,
|
|
5598
|
+
this.insert(($ = b == null ? void 0 : b.key) !== null && $ !== void 0 ? $ : null, C + 1, ...g);
|
|
5599
5599
|
},
|
|
5600
5600
|
prepend(d, ...g) {
|
|
5601
5601
|
this.insert(d, 0, ...g);
|
|
@@ -5611,11 +5611,11 @@ function Lv(t) {
|
|
|
5611
5611
|
remove(...d) {
|
|
5612
5612
|
if (d.length === 0) return;
|
|
5613
5613
|
let g = l, m = s, b;
|
|
5614
|
-
for (let
|
|
5615
|
-
b = h(g,
|
|
5614
|
+
for (let C of d)
|
|
5615
|
+
b = h(g, C, () => null, m), m = b.nodeMap, g = b.items;
|
|
5616
5616
|
a(b);
|
|
5617
5617
|
let S = new Set(u);
|
|
5618
|
-
for (let
|
|
5618
|
+
for (let C of u) b.nodeMap.has(C) || S.delete(C);
|
|
5619
5619
|
c(S);
|
|
5620
5620
|
},
|
|
5621
5621
|
removeSelectedItems() {
|
|
@@ -5623,20 +5623,20 @@ function Lv(t) {
|
|
|
5623
5623
|
},
|
|
5624
5624
|
move(d, g, m) {
|
|
5625
5625
|
a(({ items: b, nodeMap: S }) => {
|
|
5626
|
-
let
|
|
5627
|
-
if (!
|
|
5626
|
+
let C = S.get(d);
|
|
5627
|
+
if (!C) return {
|
|
5628
5628
|
items: b,
|
|
5629
5629
|
nodeMap: S
|
|
5630
5630
|
};
|
|
5631
5631
|
let { items: $, nodeMap: P } = h(b, d, () => null, S);
|
|
5632
|
-
const
|
|
5633
|
-
...
|
|
5632
|
+
const D = {
|
|
5633
|
+
...C,
|
|
5634
5634
|
parentKey: g
|
|
5635
5635
|
};
|
|
5636
|
-
return g == null ? (P.set(
|
|
5636
|
+
return g == null ? (P.set(D.key, D), {
|
|
5637
5637
|
items: [
|
|
5638
5638
|
...$.slice(0, m),
|
|
5639
|
-
|
|
5639
|
+
D,
|
|
5640
5640
|
...$.slice(m)
|
|
5641
5641
|
],
|
|
5642
5642
|
nodeMap: P
|
|
@@ -5646,7 +5646,7 @@ function Lv(t) {
|
|
|
5646
5646
|
value: y.value,
|
|
5647
5647
|
children: [
|
|
5648
5648
|
...y.children.slice(0, m),
|
|
5649
|
-
|
|
5649
|
+
D,
|
|
5650
5650
|
...y.children.slice(m)
|
|
5651
5651
|
]
|
|
5652
5652
|
}), P);
|
|
@@ -5654,13 +5654,13 @@ function Lv(t) {
|
|
|
5654
5654
|
},
|
|
5655
5655
|
update(d, g) {
|
|
5656
5656
|
a(({ items: m, nodeMap: b }) => h(m, d, (S) => {
|
|
5657
|
-
let
|
|
5657
|
+
let C = {
|
|
5658
5658
|
key: S.key,
|
|
5659
5659
|
parentKey: S.parentKey,
|
|
5660
5660
|
value: g,
|
|
5661
5661
|
children: null
|
|
5662
|
-
}, $ = f(i(g), b,
|
|
5663
|
-
return
|
|
5662
|
+
}, $ = f(i(g), b, C.key);
|
|
5663
|
+
return C.children = $.items, C;
|
|
5664
5664
|
}, b));
|
|
5665
5665
|
}
|
|
5666
5666
|
};
|
|
@@ -5730,15 +5730,15 @@ function Fv(t, e) {
|
|
|
5730
5730
|
return !0;
|
|
5731
5731
|
}
|
|
5732
5732
|
function od(t) {
|
|
5733
|
-
let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a =
|
|
5733
|
+
let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a = V(!1), [, l] = re(!1), s = V(null), u = V(null), [, c] = re(null), f = X(() => Wl(t.selectedKeys), [
|
|
5734
5734
|
t.selectedKeys
|
|
5735
|
-
]), h =
|
|
5735
|
+
]), h = X(() => Wl(t.defaultSelectedKeys, new st()), [
|
|
5736
5736
|
t.defaultSelectedKeys
|
|
5737
|
-
]), [p, v] = lr(f, h, t.onSelectionChange), d =
|
|
5737
|
+
]), [p, v] = lr(f, h, t.onSelectionChange), d = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
5738
5738
|
t.disabledKeys
|
|
5739
5739
|
]), [g, m] = re(i);
|
|
5740
5740
|
i === "replace" && g === "toggle" && typeof p == "object" && p.size === 0 && m("replace");
|
|
5741
|
-
let b =
|
|
5741
|
+
let b = V(i);
|
|
5742
5742
|
return Q(() => {
|
|
5743
5743
|
i !== b.current && (m(i), b.current = i);
|
|
5744
5744
|
}, [
|
|
@@ -5760,8 +5760,8 @@ function od(t) {
|
|
|
5760
5760
|
get childFocusStrategy() {
|
|
5761
5761
|
return u.current;
|
|
5762
5762
|
},
|
|
5763
|
-
setFocusedKey(S,
|
|
5764
|
-
s.current = S, u.current =
|
|
5763
|
+
setFocusedKey(S, C = "first") {
|
|
5764
|
+
s.current = S, u.current = C, c(S);
|
|
5765
5765
|
},
|
|
5766
5766
|
selectedKeys: p,
|
|
5767
5767
|
setSelectedKeys(S) {
|
|
@@ -6048,47 +6048,47 @@ let ad = class {
|
|
|
6048
6048
|
}
|
|
6049
6049
|
};
|
|
6050
6050
|
function jv(t) {
|
|
6051
|
-
let { filter: e, layoutDelegate: n } = t, r = od(t), i =
|
|
6051
|
+
let { filter: e, layoutDelegate: n } = t, r = od(t), i = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
6052
6052
|
t.disabledKeys
|
|
6053
6053
|
]), o = ee((c) => e ? new Bl(e(c)) : new Bl(c), [
|
|
6054
6054
|
e
|
|
6055
|
-
]), a =
|
|
6055
|
+
]), a = X(() => ({
|
|
6056
6056
|
suppressTextValueWarning: t.suppressTextValueWarning
|
|
6057
6057
|
}), [
|
|
6058
6058
|
t.suppressTextValueWarning
|
|
6059
|
-
]), l = rd(t, o, a), s =
|
|
6059
|
+
]), l = rd(t, o, a), s = X(() => new ad(l, r, {
|
|
6060
6060
|
layoutDelegate: n
|
|
6061
6061
|
}), [
|
|
6062
6062
|
l,
|
|
6063
6063
|
r,
|
|
6064
6064
|
n
|
|
6065
6065
|
]);
|
|
6066
|
-
const u =
|
|
6066
|
+
const u = V(null);
|
|
6067
6067
|
return Q(() => {
|
|
6068
6068
|
if (r.focusedKey != null && !l.getItem(r.focusedKey) && u.current) {
|
|
6069
6069
|
const m = u.current.getItem(r.focusedKey), b = [
|
|
6070
6070
|
...u.current.getKeys()
|
|
6071
6071
|
].map((y) => {
|
|
6072
|
-
const
|
|
6073
|
-
return (
|
|
6072
|
+
const k = u.current.getItem(y);
|
|
6073
|
+
return (k == null ? void 0 : k.type) === "item" ? k : null;
|
|
6074
6074
|
}).filter((y) => y !== null), S = [
|
|
6075
6075
|
...l.getKeys()
|
|
6076
6076
|
].map((y) => {
|
|
6077
|
-
const
|
|
6078
|
-
return (
|
|
6077
|
+
const k = l.getItem(y);
|
|
6078
|
+
return (k == null ? void 0 : k.type) === "item" ? k : null;
|
|
6079
6079
|
}).filter((y) => y !== null);
|
|
6080
6080
|
var c, f;
|
|
6081
|
-
const
|
|
6081
|
+
const C = ((c = b == null ? void 0 : b.length) !== null && c !== void 0 ? c : 0) - ((f = S == null ? void 0 : S.length) !== null && f !== void 0 ? f : 0);
|
|
6082
6082
|
var h, p, v;
|
|
6083
|
-
let $ = Math.min(
|
|
6083
|
+
let $ = Math.min(C > 1 ? Math.max(((h = m == null ? void 0 : m.index) !== null && h !== void 0 ? h : 0) - C + 1, 0) : (p = m == null ? void 0 : m.index) !== null && p !== void 0 ? p : 0, ((v = S == null ? void 0 : S.length) !== null && v !== void 0 ? v : 0) - 1), P = null, D = !1;
|
|
6084
6084
|
for (; $ >= 0; ) {
|
|
6085
6085
|
if (!s.isDisabled(S[$].key)) {
|
|
6086
6086
|
P = S[$];
|
|
6087
6087
|
break;
|
|
6088
6088
|
}
|
|
6089
|
-
if ($ < S.length - 1 && !
|
|
6089
|
+
if ($ < S.length - 1 && !D) $++;
|
|
6090
6090
|
else {
|
|
6091
|
-
|
|
6091
|
+
D = !0;
|
|
6092
6092
|
var d, g;
|
|
6093
6093
|
$ > ((d = m == null ? void 0 : m.index) !== null && d !== void 0 ? d : 0) && ($ = (g = m == null ? void 0 : m.index) !== null && g !== void 0 ? g : 0), $--;
|
|
6094
6094
|
}
|
|
@@ -6109,7 +6109,7 @@ function jv(t) {
|
|
|
6109
6109
|
}
|
|
6110
6110
|
function zv(t) {
|
|
6111
6111
|
var e;
|
|
6112
|
-
let [n, r] = lr(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), i =
|
|
6112
|
+
let [n, r] = lr(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), i = X(() => n != null ? [
|
|
6113
6113
|
n
|
|
6114
6114
|
] : [], [
|
|
6115
6115
|
n
|
|
@@ -6141,7 +6141,7 @@ function Hv(t) {
|
|
|
6141
6141
|
...t,
|
|
6142
6142
|
suppressTextValueWarning: !0,
|
|
6143
6143
|
defaultSelectedKey: (n = (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : Ul(t.collection, t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set())) !== null && n !== void 0 ? n : void 0
|
|
6144
|
-
}), { selectionManager: i, collection: o, selectedKey: a } = r, l =
|
|
6144
|
+
}), { selectionManager: i, collection: o, selectedKey: a } = r, l = V(a);
|
|
6145
6145
|
return Q(() => {
|
|
6146
6146
|
let s = a;
|
|
6147
6147
|
(i.isEmpty || s == null || !o.getItem(s)) && (s = Ul(o, r.disabledKeys), s != null && i.setSelectedKeys([
|
|
@@ -6211,7 +6211,7 @@ class Bv {
|
|
|
6211
6211
|
}
|
|
6212
6212
|
}
|
|
6213
6213
|
function Wv(t) {
|
|
6214
|
-
let { onExpandedChange: e } = t, [n, r] = lr(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), i = od(t), o =
|
|
6214
|
+
let { onExpandedChange: e } = t, [n, r] = lr(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), i = od(t), o = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
6215
6215
|
t.disabledKeys
|
|
6216
6216
|
]), a = rd(t, ee((s) => new Bv(s, {
|
|
6217
6217
|
expandedKeys: n
|
|
@@ -6257,7 +6257,7 @@ function Vl(t, e, n) {
|
|
|
6257
6257
|
let o = r.render(r);
|
|
6258
6258
|
if (!n || r.type !== "item") return o;
|
|
6259
6259
|
let a = r.key, l = t.getKeyAfter(a);
|
|
6260
|
-
return /* @__PURE__ */
|
|
6260
|
+
return /* @__PURE__ */ L.createElement(L.Fragment, null, n({
|
|
6261
6261
|
type: "item",
|
|
6262
6262
|
key: a,
|
|
6263
6263
|
dropPosition: "before"
|
|
@@ -6271,7 +6271,7 @@ function Vl(t, e, n) {
|
|
|
6271
6271
|
}
|
|
6272
6272
|
const mi = /* @__PURE__ */ ce(ld);
|
|
6273
6273
|
function sd(t) {
|
|
6274
|
-
return
|
|
6274
|
+
return X(() => t != null ? /* @__PURE__ */ new Set([
|
|
6275
6275
|
t
|
|
6276
6276
|
]) : null, [
|
|
6277
6277
|
t
|
|
@@ -6285,7 +6285,7 @@ const qv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Yv = /* @__PURE_
|
|
|
6285
6285
|
elementType: r,
|
|
6286
6286
|
orientation: i
|
|
6287
6287
|
});
|
|
6288
|
-
return /* @__PURE__ */
|
|
6288
|
+
return /* @__PURE__ */ L.createElement(l, {
|
|
6289
6289
|
...Xe(e),
|
|
6290
6290
|
...s,
|
|
6291
6291
|
style: o,
|
|
@@ -6306,9 +6306,9 @@ const qv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Yv = /* @__PURE_
|
|
|
6306
6306
|
isEntering: !1,
|
|
6307
6307
|
isExiting: !1,
|
|
6308
6308
|
defaultChildren: null
|
|
6309
|
-
})), /* @__PURE__ */
|
|
6309
|
+
})), /* @__PURE__ */ L.createElement(L.Fragment, null, s);
|
|
6310
6310
|
}
|
|
6311
|
-
return o && !o.isOpen && !a ? null : /* @__PURE__ */
|
|
6311
|
+
return o && !o.isOpen && !a ? null : /* @__PURE__ */ L.createElement(Qv, {
|
|
6312
6312
|
...e,
|
|
6313
6313
|
triggerRef: e.triggerRef,
|
|
6314
6314
|
state: o,
|
|
@@ -6317,7 +6317,7 @@ const qv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Yv = /* @__PURE_
|
|
|
6317
6317
|
});
|
|
6318
6318
|
});
|
|
6319
6319
|
function Qv({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
6320
|
-
let i =
|
|
6320
|
+
let i = V(null), [o, a] = re(0);
|
|
6321
6321
|
we(() => {
|
|
6322
6322
|
i.current && t.isOpen && a(i.current.getBoundingClientRect().width);
|
|
6323
6323
|
}, [
|
|
@@ -6342,18 +6342,18 @@ function Qv({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
|
6342
6342
|
...s.style,
|
|
6343
6343
|
...v.style
|
|
6344
6344
|
};
|
|
6345
|
-
return /* @__PURE__ */
|
|
6345
|
+
return /* @__PURE__ */ L.createElement(pv, {
|
|
6346
6346
|
...r,
|
|
6347
6347
|
isExiting: e,
|
|
6348
6348
|
portalContainer: n
|
|
6349
|
-
}, !r.isNonModal && t.isOpen && /* @__PURE__ */
|
|
6349
|
+
}, !r.isNonModal && t.isOpen && /* @__PURE__ */ L.createElement("div", {
|
|
6350
6350
|
"data-testid": "underlay",
|
|
6351
6351
|
...u,
|
|
6352
6352
|
style: {
|
|
6353
6353
|
position: "fixed",
|
|
6354
6354
|
inset: 0
|
|
6355
6355
|
}
|
|
6356
|
-
}), /* @__PURE__ */
|
|
6356
|
+
}), /* @__PURE__ */ L.createElement("div", {
|
|
6357
6357
|
...Te(Xe(r), s),
|
|
6358
6358
|
...v,
|
|
6359
6359
|
ref: h,
|
|
@@ -6363,15 +6363,15 @@ function Qv({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
|
|
|
6363
6363
|
"data-placement": f,
|
|
6364
6364
|
"data-entering": p || void 0,
|
|
6365
6365
|
"data-exiting": e || void 0
|
|
6366
|
-
}, !r.isNonModal && /* @__PURE__ */
|
|
6366
|
+
}, !r.isNonModal && /* @__PURE__ */ L.createElement(Al, {
|
|
6367
6367
|
onDismiss: t.close
|
|
6368
|
-
}), /* @__PURE__ */
|
|
6368
|
+
}), /* @__PURE__ */ L.createElement(Xv.Provider, {
|
|
6369
6369
|
value: {
|
|
6370
6370
|
...c,
|
|
6371
6371
|
placement: f,
|
|
6372
6372
|
ref: i
|
|
6373
6373
|
}
|
|
6374
|
-
}, v.children), /* @__PURE__ */
|
|
6374
|
+
}, v.children), /* @__PURE__ */ L.createElement(Al, {
|
|
6375
6375
|
onDismiss: t.close
|
|
6376
6376
|
})));
|
|
6377
6377
|
}
|
|
@@ -6388,15 +6388,15 @@ function tm(t, e) {
|
|
|
6388
6388
|
return !0;
|
|
6389
6389
|
}
|
|
6390
6390
|
function nm(t) {
|
|
6391
|
-
let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a =
|
|
6391
|
+
let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a = V(!1), [, l] = re(!1), s = V(null), u = V(null), [, c] = re(null), f = X(() => Gl(t.selectedKeys), [
|
|
6392
6392
|
t.selectedKeys
|
|
6393
|
-
]), h =
|
|
6393
|
+
]), h = X(() => Gl(t.defaultSelectedKeys, new Ge()), [
|
|
6394
6394
|
t.defaultSelectedKeys
|
|
6395
|
-
]), [p, v] = lr(f, h, t.onSelectionChange), d =
|
|
6395
|
+
]), [p, v] = lr(f, h, t.onSelectionChange), d = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
6396
6396
|
t.disabledKeys
|
|
6397
6397
|
]), [g, m] = re(i);
|
|
6398
6398
|
i === "replace" && g === "toggle" && typeof p == "object" && p.size === 0 && m("replace");
|
|
6399
|
-
let b =
|
|
6399
|
+
let b = V(i);
|
|
6400
6400
|
return Q(() => {
|
|
6401
6401
|
i !== b.current && (m(i), b.current = i);
|
|
6402
6402
|
}, [
|
|
@@ -6418,8 +6418,8 @@ function nm(t) {
|
|
|
6418
6418
|
get childFocusStrategy() {
|
|
6419
6419
|
return u.current;
|
|
6420
6420
|
},
|
|
6421
|
-
setFocusedKey(S,
|
|
6422
|
-
s.current = S, u.current =
|
|
6421
|
+
setFocusedKey(S, C = "first") {
|
|
6422
|
+
s.current = S, u.current = C, c(S);
|
|
6423
6423
|
},
|
|
6424
6424
|
selectedKeys: p,
|
|
6425
6425
|
setSelectedKeys(S) {
|
|
@@ -6706,9 +6706,9 @@ class rm {
|
|
|
6706
6706
|
}
|
|
6707
6707
|
}
|
|
6708
6708
|
const im = /* @__PURE__ */ ce(null), Ia = /* @__PURE__ */ ce(null), om = /* @__PURE__ */ ce(null), ii = /* @__PURE__ */ ce(null), am = /* @__PURE__ */ ce(null), lm = /* @__PURE__ */ ht(function(e, n) {
|
|
6709
|
-
return [e, n] = ur(e, n, im), /* @__PURE__ */
|
|
6710
|
-
content: /* @__PURE__ */
|
|
6711
|
-
}, (r) => r.size > 0 && /* @__PURE__ */
|
|
6709
|
+
return [e, n] = ur(e, n, im), /* @__PURE__ */ L.createElement(Wu, {
|
|
6710
|
+
content: /* @__PURE__ */ L.createElement(Uu, e)
|
|
6711
|
+
}, (r) => r.size > 0 && /* @__PURE__ */ L.createElement(sm, {
|
|
6712
6712
|
props: e,
|
|
6713
6713
|
collection: r,
|
|
6714
6714
|
menuRef: n
|
|
@@ -6716,11 +6716,11 @@ const im = /* @__PURE__ */ ce(null), Ia = /* @__PURE__ */ ce(null), om = /* @__P
|
|
|
6716
6716
|
});
|
|
6717
6717
|
function sm({ props: t, collection: e, menuRef: n }) {
|
|
6718
6718
|
let { filterFn: r, collectionProps: i, collectionRef: o } = le(Vv) || {};
|
|
6719
|
-
n = On(
|
|
6719
|
+
n = On(X(() => _u(n, o !== void 0 ? o : null), [
|
|
6720
6720
|
o,
|
|
6721
6721
|
n
|
|
6722
6722
|
]));
|
|
6723
|
-
let a =
|
|
6723
|
+
let a = X(() => r ? e.filter(r) : e, [
|
|
6724
6724
|
e,
|
|
6725
6725
|
r
|
|
6726
6726
|
]), l = Wv({
|
|
@@ -6738,14 +6738,14 @@ function sm({ props: t, collection: e, menuRef: n }) {
|
|
|
6738
6738
|
style: t.style,
|
|
6739
6739
|
values: {}
|
|
6740
6740
|
});
|
|
6741
|
-
return /* @__PURE__ */
|
|
6741
|
+
return /* @__PURE__ */ L.createElement(rc, null, /* @__PURE__ */ L.createElement("div", {
|
|
6742
6742
|
...Xe(t),
|
|
6743
6743
|
...f,
|
|
6744
6744
|
...h,
|
|
6745
6745
|
ref: n,
|
|
6746
6746
|
slot: t.slot || void 0,
|
|
6747
6747
|
onScroll: t.onScroll
|
|
6748
|
-
}, /* @__PURE__ */
|
|
6748
|
+
}, /* @__PURE__ */ L.createElement(sr, {
|
|
6749
6749
|
values: [
|
|
6750
6750
|
[
|
|
6751
6751
|
Ia,
|
|
@@ -6779,7 +6779,7 @@ function sm({ props: t, collection: e, menuRef: n }) {
|
|
|
6779
6779
|
l.selectionManager
|
|
6780
6780
|
]
|
|
6781
6781
|
]
|
|
6782
|
-
}, /* @__PURE__ */
|
|
6782
|
+
}, /* @__PURE__ */ L.createElement(c, {
|
|
6783
6783
|
collection: l.collection,
|
|
6784
6784
|
persistedKeys: sd(l.selectionManager.focusedKey),
|
|
6785
6785
|
scrollRef: n
|
|
@@ -6818,12 +6818,12 @@ function cm(t, e, n, r = "react-aria-MenuSection") {
|
|
|
6818
6818
|
style: (o = n.props) === null || o === void 0 ? void 0 : o.style,
|
|
6819
6819
|
values: {}
|
|
6820
6820
|
}), v = le(ii), d = nm(t), g = t.selectionMode != null ? new um(v, d) : v;
|
|
6821
|
-
return /* @__PURE__ */
|
|
6821
|
+
return /* @__PURE__ */ L.createElement("section", {
|
|
6822
6822
|
...Xe(t),
|
|
6823
6823
|
...h,
|
|
6824
6824
|
...p,
|
|
6825
6825
|
ref: e
|
|
6826
|
-
}, /* @__PURE__ */
|
|
6826
|
+
}, /* @__PURE__ */ L.createElement(sr, {
|
|
6827
6827
|
values: [
|
|
6828
6828
|
[
|
|
6829
6829
|
qv,
|
|
@@ -6837,7 +6837,7 @@ function cm(t, e, n, r = "react-aria-MenuSection") {
|
|
|
6837
6837
|
g
|
|
6838
6838
|
]
|
|
6839
6839
|
]
|
|
6840
|
-
}, /* @__PURE__ */
|
|
6840
|
+
}, /* @__PURE__ */ L.createElement(l, {
|
|
6841
6841
|
collection: a.collection,
|
|
6842
6842
|
parent: n
|
|
6843
6843
|
})));
|
|
@@ -6867,7 +6867,7 @@ const Uo = /* @__PURE__ */ ce(null), dm = /* @__PURE__ */ Sa("item", function(e,
|
|
|
6867
6867
|
isOpen: e["aria-expanded"] === "true"
|
|
6868
6868
|
}
|
|
6869
6869
|
}), S = e.href ? "a" : "div";
|
|
6870
|
-
return /* @__PURE__ */
|
|
6870
|
+
return /* @__PURE__ */ L.createElement(S, {
|
|
6871
6871
|
...Te(u, d, g),
|
|
6872
6872
|
...b,
|
|
6873
6873
|
ref: l,
|
|
@@ -6880,7 +6880,7 @@ const Uo = /* @__PURE__ */ ce(null), dm = /* @__PURE__ */ Sa("item", function(e,
|
|
|
6880
6880
|
"data-selection-mode": s.selectionMode === "none" ? void 0 : s.selectionMode,
|
|
6881
6881
|
"data-has-submenu": !!e["aria-haspopup"] || void 0,
|
|
6882
6882
|
"data-open": e["aria-expanded"] === "true" || void 0
|
|
6883
|
-
}, /* @__PURE__ */
|
|
6883
|
+
}, /* @__PURE__ */ L.createElement(sr, {
|
|
6884
6884
|
values: [
|
|
6885
6885
|
[
|
|
6886
6886
|
_v,
|
|
@@ -6900,15 +6900,15 @@ const Uo = /* @__PURE__ */ ce(null), dm = /* @__PURE__ */ Sa("item", function(e,
|
|
|
6900
6900
|
}), fm = /* @__PURE__ */ ce(null), yi = /* @__PURE__ */ ce(null), xn = /* @__PURE__ */ ce(null), hm = /* @__PURE__ */ ht(function(e, n) {
|
|
6901
6901
|
[e, n] = ur(e, n, yi);
|
|
6902
6902
|
let { children: r, orientation: i = "horizontal" } = e;
|
|
6903
|
-
return r =
|
|
6903
|
+
return r = X(() => typeof r == "function" ? r({
|
|
6904
6904
|
orientation: i,
|
|
6905
6905
|
defaultChildren: null
|
|
6906
6906
|
}) : r, [
|
|
6907
6907
|
r,
|
|
6908
6908
|
i
|
|
6909
|
-
]), /* @__PURE__ */
|
|
6909
|
+
]), /* @__PURE__ */ L.createElement(Wu, {
|
|
6910
6910
|
content: r
|
|
6911
|
-
}, (o) => /* @__PURE__ */
|
|
6911
|
+
}, (o) => /* @__PURE__ */ L.createElement(pm, {
|
|
6912
6912
|
props: e,
|
|
6913
6913
|
collection: o,
|
|
6914
6914
|
tabsRef: n
|
|
@@ -6921,7 +6921,7 @@ function pm({ props: t, tabsRef: e, collection: n }) {
|
|
|
6921
6921
|
children: void 0
|
|
6922
6922
|
}), { focusProps: o, isFocused: a, isFocusVisible: l } = gi({
|
|
6923
6923
|
within: !0
|
|
6924
|
-
}), s =
|
|
6924
|
+
}), s = X(() => ({
|
|
6925
6925
|
orientation: r,
|
|
6926
6926
|
isFocusWithin: a,
|
|
6927
6927
|
isFocusVisible: l
|
|
@@ -6934,7 +6934,7 @@ function pm({ props: t, tabsRef: e, collection: n }) {
|
|
|
6934
6934
|
defaultClassName: "react-aria-Tabs",
|
|
6935
6935
|
values: s
|
|
6936
6936
|
});
|
|
6937
|
-
return /* @__PURE__ */
|
|
6937
|
+
return /* @__PURE__ */ L.createElement("div", {
|
|
6938
6938
|
...Xe(t),
|
|
6939
6939
|
...o,
|
|
6940
6940
|
...u,
|
|
@@ -6944,7 +6944,7 @@ function pm({ props: t, tabsRef: e, collection: n }) {
|
|
|
6944
6944
|
"data-orientation": r,
|
|
6945
6945
|
"data-focus-visible": l || void 0,
|
|
6946
6946
|
"data-disabled": i.isDisabled || void 0
|
|
6947
|
-
}, /* @__PURE__ */
|
|
6947
|
+
}, /* @__PURE__ */ L.createElement(sr, {
|
|
6948
6948
|
values: [
|
|
6949
6949
|
[
|
|
6950
6950
|
yi,
|
|
@@ -6958,10 +6958,10 @@ function pm({ props: t, tabsRef: e, collection: n }) {
|
|
|
6958
6958
|
}, u.children));
|
|
6959
6959
|
}
|
|
6960
6960
|
const gm = /* @__PURE__ */ ht(function(e, n) {
|
|
6961
|
-
return le(xn) ? /* @__PURE__ */
|
|
6961
|
+
return le(xn) ? /* @__PURE__ */ L.createElement(vm, {
|
|
6962
6962
|
props: e,
|
|
6963
6963
|
forwardedRef: n
|
|
6964
|
-
}) : /* @__PURE__ */
|
|
6964
|
+
}) : /* @__PURE__ */ L.createElement(Uu, e);
|
|
6965
6965
|
});
|
|
6966
6966
|
function vm({ props: t, forwardedRef: e }) {
|
|
6967
6967
|
let n = le(xn), { CollectionRoot: r } = le(mi), { orientation: i = "horizontal", keyboardActivation: o = "automatic" } = va(yi), a = On(e), { tabListProps: l } = Iv({
|
|
@@ -6977,13 +6977,13 @@ function vm({ props: t, forwardedRef: e }) {
|
|
|
6977
6977
|
state: n
|
|
6978
6978
|
}
|
|
6979
6979
|
}), u = Xe(t);
|
|
6980
|
-
return delete u.id, /* @__PURE__ */
|
|
6980
|
+
return delete u.id, /* @__PURE__ */ L.createElement("div", {
|
|
6981
6981
|
...u,
|
|
6982
6982
|
...l,
|
|
6983
6983
|
ref: a,
|
|
6984
6984
|
...s,
|
|
6985
6985
|
"data-orientation": i || void 0
|
|
6986
|
-
}, /* @__PURE__ */
|
|
6986
|
+
}, /* @__PURE__ */ L.createElement(r, {
|
|
6987
6987
|
collection: n.collection,
|
|
6988
6988
|
persistedKeys: sd(n.selectionManager.focusedKey)
|
|
6989
6989
|
}));
|
|
@@ -7010,7 +7010,7 @@ const mm = /* @__PURE__ */ Sa("item", (t, e, n) => {
|
|
|
7010
7010
|
isHovered: p
|
|
7011
7011
|
}
|
|
7012
7012
|
}), d = n.props.href ? "a" : "div";
|
|
7013
|
-
return /* @__PURE__ */
|
|
7013
|
+
return /* @__PURE__ */ L.createElement(d, {
|
|
7014
7014
|
...Te(o, u, h, v),
|
|
7015
7015
|
ref: i,
|
|
7016
7016
|
"data-selected": a || void 0,
|
|
@@ -7036,7 +7036,7 @@ const mm = /* @__PURE__ */ Sa("item", (t, e, n) => {
|
|
|
7036
7036
|
let f = Xe(e);
|
|
7037
7037
|
delete f.id;
|
|
7038
7038
|
let h = u ? Te(f, o, a, c) : c;
|
|
7039
|
-
return /* @__PURE__ */
|
|
7039
|
+
return /* @__PURE__ */ L.createElement("div", {
|
|
7040
7040
|
...h,
|
|
7041
7041
|
ref: i,
|
|
7042
7042
|
"data-focused": l || void 0,
|
|
@@ -7044,7 +7044,7 @@ const mm = /* @__PURE__ */ Sa("item", (t, e, n) => {
|
|
|
7044
7044
|
// @ts-ignore
|
|
7045
7045
|
inert: u ? void 0 : "true",
|
|
7046
7046
|
"data-inert": u ? void 0 : "true"
|
|
7047
|
-
}, /* @__PURE__ */
|
|
7047
|
+
}, /* @__PURE__ */ L.createElement(sr, {
|
|
7048
7048
|
values: [
|
|
7049
7049
|
[
|
|
7050
7050
|
yi,
|
|
@@ -7055,7 +7055,7 @@ const mm = /* @__PURE__ */ Sa("item", (t, e, n) => {
|
|
|
7055
7055
|
null
|
|
7056
7056
|
]
|
|
7057
7057
|
]
|
|
7058
|
-
}, /* @__PURE__ */
|
|
7058
|
+
}, /* @__PURE__ */ L.createElement(mi.Provider, {
|
|
7059
7059
|
value: ld
|
|
7060
7060
|
}, c.children)));
|
|
7061
7061
|
}), bm = ({
|
|
@@ -7068,7 +7068,7 @@ const mm = /* @__PURE__ */ Sa("item", (t, e, n) => {
|
|
|
7068
7068
|
}) => {
|
|
7069
7069
|
const a = ch(), l = (u) => {
|
|
7070
7070
|
n == null || n(u);
|
|
7071
|
-
}, s =
|
|
7071
|
+
}, s = V(null);
|
|
7072
7072
|
return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
|
|
7073
7073
|
/* @__PURE__ */ T.jsx(
|
|
7074
7074
|
"div",
|
|
@@ -7538,14 +7538,14 @@ function hd({
|
|
|
7538
7538
|
collapsePanel: m,
|
|
7539
7539
|
expandPanel: b,
|
|
7540
7540
|
getPanelSize: S,
|
|
7541
|
-
getPanelStyle:
|
|
7541
|
+
getPanelStyle: C,
|
|
7542
7542
|
groupId: $,
|
|
7543
7543
|
isPanelCollapsed: P,
|
|
7544
|
-
reevaluatePanelConstraints:
|
|
7544
|
+
reevaluatePanelConstraints: D,
|
|
7545
7545
|
registerPanel: y,
|
|
7546
|
-
resizePanel:
|
|
7546
|
+
resizePanel: k,
|
|
7547
7547
|
unregisterPanel: B
|
|
7548
|
-
} = g, N = _a(a),
|
|
7548
|
+
} = g, N = _a(a), z = ke({
|
|
7549
7549
|
callbacks: {
|
|
7550
7550
|
onCollapse: u,
|
|
7551
7551
|
onExpand: c,
|
|
@@ -7567,40 +7567,40 @@ function hd({
|
|
|
7567
7567
|
}), At(() => {
|
|
7568
7568
|
const {
|
|
7569
7569
|
callbacks: O,
|
|
7570
|
-
constraints:
|
|
7571
|
-
} =
|
|
7572
|
-
...
|
|
7570
|
+
constraints: j
|
|
7571
|
+
} = z.current, G = {
|
|
7572
|
+
...j
|
|
7573
7573
|
};
|
|
7574
|
-
|
|
7574
|
+
z.current.id = N, z.current.idIsFromProps = a !== void 0, z.current.order = h, O.onCollapse = u, O.onExpand = c, O.onResize = f, j.collapsedSize = n, j.collapsible = r, j.defaultSize = i, j.maxSize = l, j.minSize = s, (G.collapsedSize !== j.collapsedSize || G.collapsible !== j.collapsible || G.maxSize !== j.maxSize || G.minSize !== j.minSize) && D(z.current, G);
|
|
7575
7575
|
}), At(() => {
|
|
7576
|
-
const O =
|
|
7576
|
+
const O = z.current;
|
|
7577
7577
|
return y(O), () => {
|
|
7578
7578
|
B(O);
|
|
7579
7579
|
};
|
|
7580
7580
|
}, [h, N, y, B]), fd(o, () => ({
|
|
7581
7581
|
collapse: () => {
|
|
7582
|
-
m(
|
|
7582
|
+
m(z.current);
|
|
7583
7583
|
},
|
|
7584
7584
|
expand: (O) => {
|
|
7585
|
-
b(
|
|
7585
|
+
b(z.current, O);
|
|
7586
7586
|
},
|
|
7587
7587
|
getId() {
|
|
7588
7588
|
return N;
|
|
7589
7589
|
},
|
|
7590
7590
|
getSize() {
|
|
7591
|
-
return S(
|
|
7591
|
+
return S(z.current);
|
|
7592
7592
|
},
|
|
7593
7593
|
isCollapsed() {
|
|
7594
|
-
return P(
|
|
7594
|
+
return P(z.current);
|
|
7595
7595
|
},
|
|
7596
7596
|
isExpanded() {
|
|
7597
|
-
return !P(
|
|
7597
|
+
return !P(z.current);
|
|
7598
7598
|
},
|
|
7599
7599
|
resize: (O) => {
|
|
7600
|
-
|
|
7600
|
+
k(z.current, O);
|
|
7601
7601
|
}
|
|
7602
|
-
}), [m, b, S, P, N,
|
|
7603
|
-
const w =
|
|
7602
|
+
}), [m, b, S, P, N, k]);
|
|
7603
|
+
const w = C(z.current, i);
|
|
7604
7604
|
return Tn(v, {
|
|
7605
7605
|
...d,
|
|
7606
7606
|
children: t,
|
|
@@ -8039,12 +8039,12 @@ function Wn({
|
|
|
8039
8039
|
for (; m >= 0 && m < n.length; ) {
|
|
8040
8040
|
const b = a[m];
|
|
8041
8041
|
oe(b != null, `Previous layout not found for panel index ${m}`);
|
|
8042
|
-
const S = b + d,
|
|
8042
|
+
const S = b + d, C = mn({
|
|
8043
8043
|
panelConstraints: n,
|
|
8044
8044
|
panelIndex: m,
|
|
8045
8045
|
size: S
|
|
8046
8046
|
});
|
|
8047
|
-
if (Ne(b,
|
|
8047
|
+
if (Ne(b, C) || (d -= C - b, a[m] = C), Ne(d, 0))
|
|
8048
8048
|
break;
|
|
8049
8049
|
t > 0 ? m-- : m++;
|
|
8050
8050
|
}
|
|
@@ -8165,16 +8165,16 @@ function Wm({
|
|
|
8165
8165
|
if (b >= 0) {
|
|
8166
8166
|
const S = s[b];
|
|
8167
8167
|
oe(S, `No panel data found for index ${b}`);
|
|
8168
|
-
const
|
|
8168
|
+
const C = r[b], {
|
|
8169
8169
|
collapsedSize: $ = 0,
|
|
8170
8170
|
collapsible: P,
|
|
8171
|
-
minSize:
|
|
8171
|
+
minSize: D = 0
|
|
8172
8172
|
} = S.constraints;
|
|
8173
|
-
if (
|
|
8173
|
+
if (C != null && P) {
|
|
8174
8174
|
const y = Wn({
|
|
8175
|
-
delta: Ne(
|
|
8175
|
+
delta: Ne(C, $) ? D - $ : $ - C,
|
|
8176
8176
|
initialLayout: r,
|
|
8177
|
-
panelConstraints: s.map((
|
|
8177
|
+
panelConstraints: s.map((k) => k.constraints),
|
|
8178
8178
|
pivotIndices: $d(n, p, o),
|
|
8179
8179
|
prevLayout: r,
|
|
8180
8180
|
trigger: "keyboard"
|
|
@@ -8455,7 +8455,7 @@ function Od({
|
|
|
8455
8455
|
tagName: c = "div",
|
|
8456
8456
|
...f
|
|
8457
8457
|
}) {
|
|
8458
|
-
const h = _a(o), p = ke(null), [v, d] = Sn(null), [g, m] = Sn([]), b = jm(), S = ke({}),
|
|
8458
|
+
const h = _a(o), p = ke(null), [v, d] = Sn(null), [g, m] = Sn([]), b = jm(), S = ke({}), C = ke(/* @__PURE__ */ new Map()), $ = ke(0), P = ke({
|
|
8459
8459
|
autoSaveId: t,
|
|
8460
8460
|
direction: r,
|
|
8461
8461
|
dragState: v,
|
|
@@ -8463,7 +8463,7 @@ function Od({
|
|
|
8463
8463
|
keyboardResizeBy: l,
|
|
8464
8464
|
onLayout: a,
|
|
8465
8465
|
storage: s
|
|
8466
|
-
}),
|
|
8466
|
+
}), D = ke({
|
|
8467
8467
|
layout: g,
|
|
8468
8468
|
panelDataArray: [],
|
|
8469
8469
|
panelDataArrayChanged: !1
|
|
@@ -8477,183 +8477,183 @@ function Od({
|
|
|
8477
8477
|
getLayout: () => {
|
|
8478
8478
|
const {
|
|
8479
8479
|
layout: I
|
|
8480
|
-
} =
|
|
8480
|
+
} = D.current;
|
|
8481
8481
|
return I;
|
|
8482
8482
|
},
|
|
8483
8483
|
setLayout: (I) => {
|
|
8484
8484
|
const {
|
|
8485
|
-
onLayout:
|
|
8485
|
+
onLayout: A
|
|
8486
8486
|
} = P.current, {
|
|
8487
|
-
layout:
|
|
8487
|
+
layout: M,
|
|
8488
8488
|
panelDataArray: W
|
|
8489
|
-
} =
|
|
8489
|
+
} = D.current, U = ns({
|
|
8490
8490
|
layout: I,
|
|
8491
|
-
panelConstraints: W.map((
|
|
8491
|
+
panelConstraints: W.map((K) => K.constraints)
|
|
8492
8492
|
});
|
|
8493
|
-
es(
|
|
8493
|
+
es(M, U) || (m(U), D.current.layout = U, A && A(U), Zt(W, U, S.current));
|
|
8494
8494
|
}
|
|
8495
8495
|
}), []), At(() => {
|
|
8496
8496
|
P.current.autoSaveId = t, P.current.direction = r, P.current.dragState = v, P.current.id = h, P.current.onLayout = a, P.current.storage = s;
|
|
8497
8497
|
}), Wm({
|
|
8498
8498
|
committedValuesRef: P,
|
|
8499
|
-
eagerValuesRef:
|
|
8499
|
+
eagerValuesRef: D,
|
|
8500
8500
|
groupId: h,
|
|
8501
8501
|
layout: g,
|
|
8502
|
-
panelDataArray:
|
|
8502
|
+
panelDataArray: D.current.panelDataArray,
|
|
8503
8503
|
setLayout: m,
|
|
8504
8504
|
panelGroupElement: p.current
|
|
8505
8505
|
}), Rt(() => {
|
|
8506
8506
|
const {
|
|
8507
8507
|
panelDataArray: I
|
|
8508
|
-
} =
|
|
8508
|
+
} = D.current;
|
|
8509
8509
|
if (t) {
|
|
8510
8510
|
if (g.length === 0 || g.length !== I.length)
|
|
8511
8511
|
return;
|
|
8512
|
-
let
|
|
8513
|
-
|
|
8514
|
-
const
|
|
8515
|
-
|
|
8512
|
+
let A = rs[t];
|
|
8513
|
+
A == null && (A = Ym(Jm, Zm), rs[t] = A);
|
|
8514
|
+
const M = [...I], W = new Map(C.current);
|
|
8515
|
+
A(t, M, W, g, s);
|
|
8516
8516
|
}
|
|
8517
8517
|
}, [t, g, s]), Rt(() => {
|
|
8518
8518
|
});
|
|
8519
8519
|
const y = _e((I) => {
|
|
8520
8520
|
const {
|
|
8521
|
-
onLayout:
|
|
8521
|
+
onLayout: A
|
|
8522
8522
|
} = P.current, {
|
|
8523
|
-
layout:
|
|
8523
|
+
layout: M,
|
|
8524
8524
|
panelDataArray: W
|
|
8525
|
-
} =
|
|
8525
|
+
} = D.current;
|
|
8526
8526
|
if (I.constraints.collapsible) {
|
|
8527
8527
|
const U = W.map((ye) => ye.constraints), {
|
|
8528
|
-
collapsedSize:
|
|
8528
|
+
collapsedSize: K = 0,
|
|
8529
8529
|
panelSize: te,
|
|
8530
8530
|
pivotIndices: ae
|
|
8531
|
-
} = Pt(W, I,
|
|
8532
|
-
if (oe(te != null, `Panel size not found for panel "${I.id}"`), !ut(te,
|
|
8533
|
-
|
|
8534
|
-
const me = fn(W, I) === W.length - 1 ? te -
|
|
8531
|
+
} = Pt(W, I, M);
|
|
8532
|
+
if (oe(te != null, `Panel size not found for panel "${I.id}"`), !ut(te, K)) {
|
|
8533
|
+
C.current.set(I.id, te);
|
|
8534
|
+
const me = fn(W, I) === W.length - 1 ? te - K : K - te, fe = Wn({
|
|
8535
8535
|
delta: me,
|
|
8536
|
-
initialLayout:
|
|
8536
|
+
initialLayout: M,
|
|
8537
8537
|
panelConstraints: U,
|
|
8538
8538
|
pivotIndices: ae,
|
|
8539
|
-
prevLayout:
|
|
8539
|
+
prevLayout: M,
|
|
8540
8540
|
trigger: "imperative-api"
|
|
8541
8541
|
});
|
|
8542
|
-
Tr(
|
|
8542
|
+
Tr(M, fe) || (m(fe), D.current.layout = fe, A && A(fe), Zt(W, fe, S.current));
|
|
8543
8543
|
}
|
|
8544
8544
|
}
|
|
8545
|
-
}, []),
|
|
8545
|
+
}, []), k = _e((I, A) => {
|
|
8546
8546
|
const {
|
|
8547
|
-
onLayout:
|
|
8547
|
+
onLayout: M
|
|
8548
8548
|
} = P.current, {
|
|
8549
8549
|
layout: W,
|
|
8550
8550
|
panelDataArray: U
|
|
8551
|
-
} =
|
|
8551
|
+
} = D.current;
|
|
8552
8552
|
if (I.constraints.collapsible) {
|
|
8553
|
-
const
|
|
8553
|
+
const K = U.map((Ee) => Ee.constraints), {
|
|
8554
8554
|
collapsedSize: te = 0,
|
|
8555
8555
|
panelSize: ae = 0,
|
|
8556
8556
|
minSize: ye = 0,
|
|
8557
8557
|
pivotIndices: me
|
|
8558
|
-
} = Pt(U, I, W), fe =
|
|
8558
|
+
} = Pt(U, I, W), fe = A ?? ye;
|
|
8559
8559
|
if (ut(ae, te)) {
|
|
8560
|
-
const Ee =
|
|
8560
|
+
const Ee = C.current.get(I.id), ue = Ee != null && Ee >= fe ? Ee : fe, gt = fn(U, I) === U.length - 1 ? ae - ue : ue - ae, $e = Wn({
|
|
8561
8561
|
delta: gt,
|
|
8562
8562
|
initialLayout: W,
|
|
8563
|
-
panelConstraints:
|
|
8563
|
+
panelConstraints: K,
|
|
8564
8564
|
pivotIndices: me,
|
|
8565
8565
|
prevLayout: W,
|
|
8566
8566
|
trigger: "imperative-api"
|
|
8567
8567
|
});
|
|
8568
|
-
Tr(W, $e) || (m($e),
|
|
8568
|
+
Tr(W, $e) || (m($e), D.current.layout = $e, M && M($e), Zt(U, $e, S.current));
|
|
8569
8569
|
}
|
|
8570
8570
|
}
|
|
8571
8571
|
}, []), B = _e((I) => {
|
|
8572
8572
|
const {
|
|
8573
|
-
layout:
|
|
8574
|
-
panelDataArray:
|
|
8575
|
-
} =
|
|
8573
|
+
layout: A,
|
|
8574
|
+
panelDataArray: M
|
|
8575
|
+
} = D.current, {
|
|
8576
8576
|
panelSize: W
|
|
8577
|
-
} = Pt(
|
|
8577
|
+
} = Pt(M, I, A);
|
|
8578
8578
|
return oe(W != null, `Panel size not found for panel "${I.id}"`), W;
|
|
8579
|
-
}, []), N = _e((I,
|
|
8579
|
+
}, []), N = _e((I, A) => {
|
|
8580
8580
|
const {
|
|
8581
|
-
panelDataArray:
|
|
8582
|
-
} =
|
|
8581
|
+
panelDataArray: M
|
|
8582
|
+
} = D.current, W = fn(M, I);
|
|
8583
8583
|
return qm({
|
|
8584
|
-
defaultSize:
|
|
8584
|
+
defaultSize: A,
|
|
8585
8585
|
dragState: v,
|
|
8586
8586
|
layout: g,
|
|
8587
|
-
panelData:
|
|
8587
|
+
panelData: M,
|
|
8588
8588
|
panelIndex: W
|
|
8589
8589
|
});
|
|
8590
|
-
}, [v, g]),
|
|
8590
|
+
}, [v, g]), z = _e((I) => {
|
|
8591
8591
|
const {
|
|
8592
|
-
layout:
|
|
8593
|
-
panelDataArray:
|
|
8594
|
-
} =
|
|
8592
|
+
layout: A,
|
|
8593
|
+
panelDataArray: M
|
|
8594
|
+
} = D.current, {
|
|
8595
8595
|
collapsedSize: W = 0,
|
|
8596
8596
|
collapsible: U,
|
|
8597
|
-
panelSize:
|
|
8598
|
-
} = Pt(
|
|
8599
|
-
return oe(
|
|
8597
|
+
panelSize: K
|
|
8598
|
+
} = Pt(M, I, A);
|
|
8599
|
+
return oe(K != null, `Panel size not found for panel "${I.id}"`), U === !0 && ut(K, W);
|
|
8600
8600
|
}, []), w = _e((I) => {
|
|
8601
8601
|
const {
|
|
8602
|
-
layout:
|
|
8603
|
-
panelDataArray:
|
|
8604
|
-
} =
|
|
8602
|
+
layout: A,
|
|
8603
|
+
panelDataArray: M
|
|
8604
|
+
} = D.current, {
|
|
8605
8605
|
collapsedSize: W = 0,
|
|
8606
8606
|
collapsible: U,
|
|
8607
|
-
panelSize:
|
|
8608
|
-
} = Pt(
|
|
8609
|
-
return oe(
|
|
8607
|
+
panelSize: K
|
|
8608
|
+
} = Pt(M, I, A);
|
|
8609
|
+
return oe(K != null, `Panel size not found for panel "${I.id}"`), !U || zt(K, W) > 0;
|
|
8610
8610
|
}, []), O = _e((I) => {
|
|
8611
8611
|
const {
|
|
8612
|
-
panelDataArray:
|
|
8613
|
-
} =
|
|
8614
|
-
|
|
8615
|
-
const U =
|
|
8616
|
-
return U == null &&
|
|
8617
|
-
}),
|
|
8612
|
+
panelDataArray: A
|
|
8613
|
+
} = D.current;
|
|
8614
|
+
A.push(I), A.sort((M, W) => {
|
|
8615
|
+
const U = M.order, K = W.order;
|
|
8616
|
+
return U == null && K == null ? 0 : U == null ? -1 : K == null ? 1 : U - K;
|
|
8617
|
+
}), D.current.panelDataArrayChanged = !0, b();
|
|
8618
8618
|
}, [b]);
|
|
8619
8619
|
At(() => {
|
|
8620
|
-
if (
|
|
8621
|
-
|
|
8620
|
+
if (D.current.panelDataArrayChanged) {
|
|
8621
|
+
D.current.panelDataArrayChanged = !1;
|
|
8622
8622
|
const {
|
|
8623
8623
|
autoSaveId: I,
|
|
8624
|
-
onLayout:
|
|
8625
|
-
storage:
|
|
8624
|
+
onLayout: A,
|
|
8625
|
+
storage: M
|
|
8626
8626
|
} = P.current, {
|
|
8627
8627
|
layout: W,
|
|
8628
8628
|
panelDataArray: U
|
|
8629
|
-
} =
|
|
8630
|
-
let
|
|
8629
|
+
} = D.current;
|
|
8630
|
+
let K = null;
|
|
8631
8631
|
if (I) {
|
|
8632
|
-
const ae = Xm(I, U,
|
|
8633
|
-
ae && (
|
|
8632
|
+
const ae = Xm(I, U, M);
|
|
8633
|
+
ae && (C.current = new Map(Object.entries(ae.expandToSizes)), K = ae.layout);
|
|
8634
8634
|
}
|
|
8635
|
-
|
|
8635
|
+
K == null && (K = Gm({
|
|
8636
8636
|
panelDataArray: U
|
|
8637
8637
|
}));
|
|
8638
8638
|
const te = ns({
|
|
8639
|
-
layout:
|
|
8639
|
+
layout: K,
|
|
8640
8640
|
panelConstraints: U.map((ae) => ae.constraints)
|
|
8641
8641
|
});
|
|
8642
|
-
es(W, te) || (m(te),
|
|
8642
|
+
es(W, te) || (m(te), D.current.layout = te, A && A(te), Zt(U, te, S.current));
|
|
8643
8643
|
}
|
|
8644
8644
|
}), At(() => {
|
|
8645
|
-
const I =
|
|
8645
|
+
const I = D.current;
|
|
8646
8646
|
return () => {
|
|
8647
8647
|
I.layout = [];
|
|
8648
8648
|
};
|
|
8649
8649
|
}, []);
|
|
8650
|
-
const
|
|
8651
|
-
let
|
|
8652
|
-
const
|
|
8653
|
-
return
|
|
8650
|
+
const j = _e((I) => {
|
|
8651
|
+
let A = !1;
|
|
8652
|
+
const M = p.current;
|
|
8653
|
+
return M && window.getComputedStyle(M, null).getPropertyValue("direction") === "rtl" && (A = !0), function(U) {
|
|
8654
8654
|
U.preventDefault();
|
|
8655
|
-
const
|
|
8656
|
-
if (!
|
|
8655
|
+
const K = p.current;
|
|
8656
|
+
if (!K)
|
|
8657
8657
|
return () => null;
|
|
8658
8658
|
const {
|
|
8659
8659
|
direction: te,
|
|
@@ -8664,101 +8664,101 @@ function Od({
|
|
|
8664
8664
|
} = P.current, {
|
|
8665
8665
|
layout: Ee,
|
|
8666
8666
|
panelDataArray: ue
|
|
8667
|
-
} =
|
|
8667
|
+
} = D.current, {
|
|
8668
8668
|
initialLayout: Ze
|
|
8669
|
-
} = ae ?? {}, gt = $d(ye, I,
|
|
8670
|
-
let $e = Vm(U, I, te, ae, me,
|
|
8669
|
+
} = ae ?? {}, gt = $d(ye, I, K);
|
|
8670
|
+
let $e = Vm(U, I, te, ae, me, K);
|
|
8671
8671
|
const kn = te === "horizontal";
|
|
8672
|
-
kn &&
|
|
8673
|
-
const fr = ue.map((
|
|
8672
|
+
kn && A && ($e = -$e);
|
|
8673
|
+
const fr = ue.map((Y) => Y.constraints), E = Wn({
|
|
8674
8674
|
delta: $e,
|
|
8675
8675
|
initialLayout: Ze ?? Ee,
|
|
8676
8676
|
panelConstraints: fr,
|
|
8677
8677
|
pivotIndices: gt,
|
|
8678
8678
|
prevLayout: Ee,
|
|
8679
8679
|
trigger: pd(U) ? "keyboard" : "mouse-or-touch"
|
|
8680
|
-
}),
|
|
8681
|
-
(gd(U) || vd(U)) && $.current != $e && ($.current = $e, !
|
|
8680
|
+
}), q = !Tr(Ee, E);
|
|
8681
|
+
(gd(U) || vd(U)) && $.current != $e && ($.current = $e, !q && $e !== 0 ? kn ? Ji(I, $e < 0 ? yd : bd) : Ji(I, $e < 0 ? Sd : wd) : Ji(I, 0)), q && (m(E), D.current.layout = E, fe && fe(E), Zt(ue, E, S.current));
|
|
8682
8682
|
};
|
|
8683
|
-
}, []),
|
|
8683
|
+
}, []), G = _e((I, A) => {
|
|
8684
8684
|
const {
|
|
8685
|
-
onLayout:
|
|
8685
|
+
onLayout: M
|
|
8686
8686
|
} = P.current, {
|
|
8687
8687
|
layout: W,
|
|
8688
8688
|
panelDataArray: U
|
|
8689
|
-
} =
|
|
8689
|
+
} = D.current, K = U.map((Ee) => Ee.constraints), {
|
|
8690
8690
|
panelSize: te,
|
|
8691
8691
|
pivotIndices: ae
|
|
8692
8692
|
} = Pt(U, I, W);
|
|
8693
8693
|
oe(te != null, `Panel size not found for panel "${I.id}"`);
|
|
8694
|
-
const me = fn(U, I) === U.length - 1 ? te -
|
|
8694
|
+
const me = fn(U, I) === U.length - 1 ? te - A : A - te, fe = Wn({
|
|
8695
8695
|
delta: me,
|
|
8696
8696
|
initialLayout: W,
|
|
8697
|
-
panelConstraints:
|
|
8697
|
+
panelConstraints: K,
|
|
8698
8698
|
pivotIndices: ae,
|
|
8699
8699
|
prevLayout: W,
|
|
8700
8700
|
trigger: "imperative-api"
|
|
8701
8701
|
});
|
|
8702
|
-
Tr(W, fe) || (m(fe),
|
|
8703
|
-
}, []), Z = _e((I,
|
|
8702
|
+
Tr(W, fe) || (m(fe), D.current.layout = fe, M && M(fe), Zt(U, fe, S.current));
|
|
8703
|
+
}, []), Z = _e((I, A) => {
|
|
8704
8704
|
const {
|
|
8705
|
-
layout:
|
|
8705
|
+
layout: M,
|
|
8706
8706
|
panelDataArray: W
|
|
8707
|
-
} =
|
|
8707
|
+
} = D.current, {
|
|
8708
8708
|
collapsedSize: U = 0,
|
|
8709
|
-
collapsible:
|
|
8710
|
-
} =
|
|
8709
|
+
collapsible: K
|
|
8710
|
+
} = A, {
|
|
8711
8711
|
collapsedSize: te = 0,
|
|
8712
8712
|
collapsible: ae,
|
|
8713
8713
|
maxSize: ye = 100,
|
|
8714
8714
|
minSize: me = 0
|
|
8715
8715
|
} = I.constraints, {
|
|
8716
8716
|
panelSize: fe
|
|
8717
|
-
} = Pt(W, I,
|
|
8718
|
-
fe != null && (
|
|
8719
|
-
}, [
|
|
8717
|
+
} = Pt(W, I, M);
|
|
8718
|
+
fe != null && (K && ae && ut(fe, U) ? ut(U, te) || G(I, te) : fe < me ? G(I, me) : fe > ye && G(I, ye));
|
|
8719
|
+
}, [G]), R = _e((I, A) => {
|
|
8720
8720
|
const {
|
|
8721
|
-
direction:
|
|
8721
|
+
direction: M
|
|
8722
8722
|
} = P.current, {
|
|
8723
8723
|
layout: W
|
|
8724
|
-
} =
|
|
8724
|
+
} = D.current;
|
|
8725
8725
|
if (!p.current)
|
|
8726
8726
|
return;
|
|
8727
8727
|
const U = $i(I, p.current);
|
|
8728
8728
|
oe(U, `Drag handle element not found for id "${I}"`);
|
|
8729
|
-
const
|
|
8729
|
+
const K = Td(M, A);
|
|
8730
8730
|
d({
|
|
8731
8731
|
dragHandleId: I,
|
|
8732
8732
|
dragHandleRect: U.getBoundingClientRect(),
|
|
8733
|
-
initialCursorPosition:
|
|
8733
|
+
initialCursorPosition: K,
|
|
8734
8734
|
initialLayout: W
|
|
8735
8735
|
});
|
|
8736
|
-
}, []),
|
|
8736
|
+
}, []), J = _e(() => {
|
|
8737
8737
|
d(null);
|
|
8738
|
-
}, []),
|
|
8738
|
+
}, []), F = _e((I) => {
|
|
8739
8739
|
const {
|
|
8740
|
-
panelDataArray:
|
|
8741
|
-
} =
|
|
8742
|
-
|
|
8743
|
-
}, [b]),
|
|
8740
|
+
panelDataArray: A
|
|
8741
|
+
} = D.current, M = fn(A, I);
|
|
8742
|
+
M >= 0 && (A.splice(M, 1), delete S.current[I.id], D.current.panelDataArrayChanged = !0, b());
|
|
8743
|
+
}, [b]), H = Cm(() => ({
|
|
8744
8744
|
collapsePanel: y,
|
|
8745
8745
|
direction: r,
|
|
8746
8746
|
dragState: v,
|
|
8747
|
-
expandPanel:
|
|
8747
|
+
expandPanel: k,
|
|
8748
8748
|
getPanelSize: B,
|
|
8749
8749
|
getPanelStyle: N,
|
|
8750
8750
|
groupId: h,
|
|
8751
|
-
isPanelCollapsed:
|
|
8751
|
+
isPanelCollapsed: z,
|
|
8752
8752
|
isPanelExpanded: w,
|
|
8753
8753
|
reevaluatePanelConstraints: Z,
|
|
8754
8754
|
registerPanel: O,
|
|
8755
|
-
registerResizeHandle:
|
|
8756
|
-
resizePanel:
|
|
8755
|
+
registerResizeHandle: j,
|
|
8756
|
+
resizePanel: G,
|
|
8757
8757
|
startDragging: R,
|
|
8758
|
-
stopDragging:
|
|
8759
|
-
unregisterPanel:
|
|
8758
|
+
stopDragging: J,
|
|
8759
|
+
unregisterPanel: F,
|
|
8760
8760
|
panelGroupElement: p.current
|
|
8761
|
-
}), [y, v, r,
|
|
8761
|
+
}), [y, v, r, k, B, N, h, z, w, Z, O, j, G, R, J, F]), _ = {
|
|
8762
8762
|
display: "flex",
|
|
8763
8763
|
flexDirection: r === "horizontal" ? "row" : "column",
|
|
8764
8764
|
height: "100%",
|
|
@@ -8766,7 +8766,7 @@ function Od({
|
|
|
8766
8766
|
width: "100%"
|
|
8767
8767
|
};
|
|
8768
8768
|
return Tn(Si.Provider, {
|
|
8769
|
-
value:
|
|
8769
|
+
value: H
|
|
8770
8770
|
}, Tn(c, {
|
|
8771
8771
|
...f,
|
|
8772
8772
|
children: e,
|
|
@@ -8774,7 +8774,7 @@ function Od({
|
|
|
8774
8774
|
id: o,
|
|
8775
8775
|
ref: p,
|
|
8776
8776
|
style: {
|
|
8777
|
-
...
|
|
8777
|
+
..._,
|
|
8778
8778
|
...u
|
|
8779
8779
|
},
|
|
8780
8780
|
// CSS selectors
|
|
@@ -8869,10 +8869,10 @@ function _d({
|
|
|
8869
8869
|
direction: m,
|
|
8870
8870
|
groupId: b,
|
|
8871
8871
|
registerResizeHandle: S,
|
|
8872
|
-
startDragging:
|
|
8872
|
+
startDragging: C,
|
|
8873
8873
|
stopDragging: $,
|
|
8874
8874
|
panelGroupElement: P
|
|
8875
|
-
} = g,
|
|
8875
|
+
} = g, D = _a(i), [y, k] = Sn("inactive"), [B, N] = Sn(!1), [z, w] = Sn(null), O = ke({
|
|
8876
8876
|
state: y
|
|
8877
8877
|
});
|
|
8878
8878
|
At(() => {
|
|
@@ -8881,23 +8881,23 @@ function _d({
|
|
|
8881
8881
|
if (n)
|
|
8882
8882
|
w(null);
|
|
8883
8883
|
else {
|
|
8884
|
-
const R = S(
|
|
8884
|
+
const R = S(D);
|
|
8885
8885
|
w(() => R);
|
|
8886
8886
|
}
|
|
8887
|
-
}, [n,
|
|
8888
|
-
const
|
|
8887
|
+
}, [n, D, S]);
|
|
8888
|
+
const j = (h = r == null ? void 0 : r.coarse) !== null && h !== void 0 ? h : 15, G = (p = r == null ? void 0 : r.fine) !== null && p !== void 0 ? p : 5;
|
|
8889
8889
|
return Rt(() => {
|
|
8890
|
-
if (n ||
|
|
8890
|
+
if (n || z == null)
|
|
8891
8891
|
return;
|
|
8892
8892
|
const R = v.current;
|
|
8893
|
-
return oe(R, "Element ref not attached"), Fm(
|
|
8894
|
-
coarse:
|
|
8895
|
-
fine:
|
|
8896
|
-
}, (
|
|
8897
|
-
if (
|
|
8898
|
-
switch (
|
|
8893
|
+
return oe(R, "Element ref not attached"), Fm(D, R, m, {
|
|
8894
|
+
coarse: j,
|
|
8895
|
+
fine: G
|
|
8896
|
+
}, (F, H, _) => {
|
|
8897
|
+
if (H)
|
|
8898
|
+
switch (F) {
|
|
8899
8899
|
case "down": {
|
|
8900
|
-
|
|
8900
|
+
k("drag"), oe(_, 'Expected event to be defined for "down" action'), C(D, _);
|
|
8901
8901
|
const {
|
|
8902
8902
|
onDragging: I
|
|
8903
8903
|
} = d.current;
|
|
@@ -8908,11 +8908,11 @@ function _d({
|
|
|
8908
8908
|
const {
|
|
8909
8909
|
state: I
|
|
8910
8910
|
} = O.current;
|
|
8911
|
-
I !== "drag" &&
|
|
8911
|
+
I !== "drag" && k("hover"), oe(_, 'Expected event to be defined for "move" action'), z(_);
|
|
8912
8912
|
break;
|
|
8913
8913
|
}
|
|
8914
8914
|
case "up": {
|
|
8915
|
-
|
|
8915
|
+
k("hover"), $();
|
|
8916
8916
|
const {
|
|
8917
8917
|
onDragging: I
|
|
8918
8918
|
} = d.current;
|
|
@@ -8921,12 +8921,12 @@ function _d({
|
|
|
8921
8921
|
}
|
|
8922
8922
|
}
|
|
8923
8923
|
else
|
|
8924
|
-
|
|
8924
|
+
k("inactive");
|
|
8925
8925
|
});
|
|
8926
|
-
}, [
|
|
8926
|
+
}, [j, m, n, G, S, D, z, C, $]), Qm({
|
|
8927
8927
|
disabled: n,
|
|
8928
|
-
handleId:
|
|
8929
|
-
resizeHandler:
|
|
8928
|
+
handleId: D,
|
|
8929
|
+
resizeHandler: z,
|
|
8930
8930
|
panelGroupElement: P
|
|
8931
8931
|
}), Tn(c, {
|
|
8932
8932
|
...f,
|
|
@@ -8956,7 +8956,7 @@ function _d({
|
|
|
8956
8956
|
"data-resize-handle-active": y === "drag" ? "pointer" : B ? "keyboard" : void 0,
|
|
8957
8957
|
"data-resize-handle-state": y,
|
|
8958
8958
|
"data-panel-resize-handle-enabled": !n,
|
|
8959
|
-
"data-panel-resize-handle-id":
|
|
8959
|
+
"data-panel-resize-handle-id": D
|
|
8960
8960
|
});
|
|
8961
8961
|
}
|
|
8962
8962
|
_d.displayName = "PanelResizeHandle";
|
|
@@ -8976,7 +8976,7 @@ const ey = ({
|
|
|
8976
8976
|
enableResize: a = !1,
|
|
8977
8977
|
rightPanelIsOpen: l = !1
|
|
8978
8978
|
}) => {
|
|
8979
|
-
const [s, u] = re(!1), { isDesktop: c } = bi(), f =
|
|
8979
|
+
const [s, u] = re(!1), { isDesktop: c } = bi(), f = V(null), [h, p] = re(
|
|
8980
8980
|
Cr(300, c)
|
|
8981
8981
|
), [v, d] = re(
|
|
8982
8982
|
Cr(450, c)
|
|
@@ -9294,15 +9294,15 @@ var Ty = "DismissableLayer", Xo = "dismissableLayer.update", Cy = "dismissableLa
|
|
|
9294
9294
|
onInteractOutside: a,
|
|
9295
9295
|
onDismiss: l,
|
|
9296
9296
|
...s
|
|
9297
|
-
} = t, u = x.useContext(Ad), [c, f] = x.useState(null), h = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = x.useState({}), v = Gt(e, (
|
|
9298
|
-
const y =
|
|
9299
|
-
!
|
|
9300
|
-
}, h), P = _y((
|
|
9301
|
-
const y =
|
|
9302
|
-
[...u.branches].some((B) => B.contains(y)) || (o == null || o(
|
|
9297
|
+
} = t, u = x.useContext(Ad), [c, f] = x.useState(null), h = (c == null ? void 0 : c.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = x.useState({}), v = Gt(e, (D) => f(D)), d = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), m = d.indexOf(g), b = c ? d.indexOf(c) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, C = b >= m, $ = Iy((D) => {
|
|
9298
|
+
const y = D.target, k = [...u.branches].some((B) => B.contains(y));
|
|
9299
|
+
!C || k || (i == null || i(D), a == null || a(D), D.defaultPrevented || l == null || l());
|
|
9300
|
+
}, h), P = _y((D) => {
|
|
9301
|
+
const y = D.target;
|
|
9302
|
+
[...u.branches].some((B) => B.contains(y)) || (o == null || o(D), a == null || a(D), D.defaultPrevented || l == null || l());
|
|
9303
9303
|
}, h);
|
|
9304
|
-
return xy((
|
|
9305
|
-
b === u.layers.size - 1 && (r == null || r(
|
|
9304
|
+
return xy((D) => {
|
|
9305
|
+
b === u.layers.size - 1 && (r == null || r(D), !D.defaultPrevented && l && (D.preventDefault(), l()));
|
|
9306
9306
|
}, h), x.useEffect(() => {
|
|
9307
9307
|
if (c)
|
|
9308
9308
|
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (ls = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(c)), u.layers.add(c), ss(), () => {
|
|
@@ -9311,15 +9311,15 @@ var Ty = "DismissableLayer", Xo = "dismissableLayer.update", Cy = "dismissableLa
|
|
|
9311
9311
|
}, [c, h, n, u]), x.useEffect(() => () => {
|
|
9312
9312
|
c && (u.layers.delete(c), u.layersWithOutsidePointerEventsDisabled.delete(c), ss());
|
|
9313
9313
|
}, [c, u]), x.useEffect(() => {
|
|
9314
|
-
const
|
|
9315
|
-
return document.addEventListener(Xo,
|
|
9314
|
+
const D = () => p({});
|
|
9315
|
+
return document.addEventListener(Xo, D), () => document.removeEventListener(Xo, D);
|
|
9316
9316
|
}, []), /* @__PURE__ */ T.jsx(
|
|
9317
9317
|
Ce.div,
|
|
9318
9318
|
{
|
|
9319
9319
|
...s,
|
|
9320
9320
|
ref: v,
|
|
9321
9321
|
style: {
|
|
9322
|
-
pointerEvents: S ?
|
|
9322
|
+
pointerEvents: S ? C ? "auto" : "none" : void 0,
|
|
9323
9323
|
...t.style
|
|
9324
9324
|
},
|
|
9325
9325
|
onFocusCapture: Tt(t.onFocusCapture, P.onFocusCapture),
|
|
@@ -9416,12 +9416,12 @@ var eo = "focusScope.autoFocusOnMount", to = "focusScope.autoFocusOnUnmount", us
|
|
|
9416
9416
|
if (r) {
|
|
9417
9417
|
let d = function(S) {
|
|
9418
9418
|
if (p.paused || !l) return;
|
|
9419
|
-
const
|
|
9420
|
-
l.contains(
|
|
9419
|
+
const C = S.target;
|
|
9420
|
+
l.contains(C) ? f.current = C : yt(f.current, { select: !0 });
|
|
9421
9421
|
}, g = function(S) {
|
|
9422
9422
|
if (p.paused || !l) return;
|
|
9423
|
-
const
|
|
9424
|
-
|
|
9423
|
+
const C = S.relatedTarget;
|
|
9424
|
+
C !== null && (l.contains(C) || yt(f.current, { select: !0 }));
|
|
9425
9425
|
}, m = function(S) {
|
|
9426
9426
|
if (document.activeElement === document.body)
|
|
9427
9427
|
for (const $ of S)
|
|
@@ -9454,8 +9454,8 @@ var eo = "focusScope.autoFocusOnMount", to = "focusScope.autoFocusOnUnmount", us
|
|
|
9454
9454
|
if (!n && !r || p.paused) return;
|
|
9455
9455
|
const g = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, m = document.activeElement;
|
|
9456
9456
|
if (g && m) {
|
|
9457
|
-
const b = d.currentTarget, [S,
|
|
9458
|
-
S &&
|
|
9457
|
+
const b = d.currentTarget, [S, C] = Ry(b);
|
|
9458
|
+
S && C ? !d.shiftKey && m === C ? (d.preventDefault(), n && yt(S, { select: !0 })) : d.shiftKey && m === S && (d.preventDefault(), n && yt(C, { select: !0 })) : m === b && d.preventDefault();
|
|
9459
9459
|
}
|
|
9460
9460
|
},
|
|
9461
9461
|
[n, r, p.paused]
|
|
@@ -9738,11 +9738,11 @@ var Hd = Jy(), io = function() {
|
|
|
9738
9738
|
onScrollCapture: io,
|
|
9739
9739
|
onWheelCapture: io,
|
|
9740
9740
|
onTouchMoveCapture: io
|
|
9741
|
-
}), i = r[0], o = r[1], a = t.forwardProps, l = t.children, s = t.className, u = t.removeScrollBar, c = t.enabled, f = t.shards, h = t.sideCar, p = t.noIsolation, v = t.inert, d = t.allowPinchZoom, g = t.as, m = g === void 0 ? "div" : g, b = t.gapMode, S = gc(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]),
|
|
9741
|
+
}), i = r[0], o = r[1], a = t.forwardProps, l = t.children, s = t.className, u = t.removeScrollBar, c = t.enabled, f = t.shards, h = t.sideCar, p = t.noIsolation, v = t.inert, d = t.allowPinchZoom, g = t.as, m = g === void 0 ? "div" : g, b = t.gapMode, S = gc(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, $ = qy([n, e]), P = et(et({}, S), i);
|
|
9742
9742
|
return x.createElement(
|
|
9743
9743
|
x.Fragment,
|
|
9744
9744
|
null,
|
|
9745
|
-
c && x.createElement(
|
|
9745
|
+
c && x.createElement(C, { sideCar: Hd, removeScrollBar: u, shards: f, noIsolation: p, inert: v, setCallbacks: o, allowPinchZoom: !!d, lockRef: n, gapMode: b }),
|
|
9746
9746
|
a ? x.cloneElement(x.Children.only(l), et(et({}, P), { ref: $ })) : x.createElement(m, et({}, P, { className: s, ref: $ }), l)
|
|
9747
9747
|
);
|
|
9748
9748
|
});
|
|
@@ -9985,18 +9985,18 @@ function Eb(t) {
|
|
|
9985
9985
|
var l = x.useCallback(function(d, g) {
|
|
9986
9986
|
if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
|
|
9987
9987
|
return !a.current.allowPinchZoom;
|
|
9988
|
-
var m = Or(d), b = n.current, S = "deltaX" in d ? d.deltaX : b[0] - m[0],
|
|
9989
|
-
if ("touches" in d &&
|
|
9988
|
+
var m = Or(d), b = n.current, S = "deltaX" in d ? d.deltaX : b[0] - m[0], C = "deltaY" in d ? d.deltaY : b[1] - m[1], $, P = d.target, D = Math.abs(S) > Math.abs(C) ? "h" : "v";
|
|
9989
|
+
if ("touches" in d && D === "h" && P.type === "range")
|
|
9990
9990
|
return !1;
|
|
9991
|
-
var y = vs(
|
|
9991
|
+
var y = vs(D, P);
|
|
9992
9992
|
if (!y)
|
|
9993
9993
|
return !0;
|
|
9994
|
-
if (y ? $ =
|
|
9994
|
+
if (y ? $ = D : ($ = D === "v" ? "h" : "v", y = vs(D, P)), !y)
|
|
9995
9995
|
return !1;
|
|
9996
|
-
if (!r.current && "changedTouches" in d && (S ||
|
|
9996
|
+
if (!r.current && "changedTouches" in d && (S || C) && (r.current = $), !$)
|
|
9997
9997
|
return !0;
|
|
9998
|
-
var
|
|
9999
|
-
return yb(
|
|
9998
|
+
var k = r.current || $;
|
|
9999
|
+
return yb(k, g, d, k === "h" ? S : C);
|
|
10000
10000
|
}, []), s = x.useCallback(function(d) {
|
|
10001
10001
|
var g = d;
|
|
10002
10002
|
if (!(!en.length || en[en.length - 1] !== o)) {
|
|
@@ -10010,15 +10010,15 @@ function Eb(t) {
|
|
|
10010
10010
|
if (!b) {
|
|
10011
10011
|
var S = (a.current.shards || []).map(ys).filter(Boolean).filter(function($) {
|
|
10012
10012
|
return $.contains(g.target);
|
|
10013
|
-
}),
|
|
10014
|
-
|
|
10013
|
+
}), C = S.length > 0 ? l(g, S[0]) : !a.current.noIsolation;
|
|
10014
|
+
C && g.cancelable && g.preventDefault();
|
|
10015
10015
|
}
|
|
10016
10016
|
}
|
|
10017
10017
|
}, []), u = x.useCallback(function(d, g, m, b) {
|
|
10018
10018
|
var S = { name: d, delta: g, target: m, should: b, shadowParent: $b(m) };
|
|
10019
10019
|
e.current.push(S), setTimeout(function() {
|
|
10020
|
-
e.current = e.current.filter(function(
|
|
10021
|
-
return
|
|
10020
|
+
e.current = e.current.filter(function(C) {
|
|
10021
|
+
return C !== S;
|
|
10022
10022
|
});
|
|
10023
10023
|
}, 1);
|
|
10024
10024
|
}, []), c = x.useCallback(function(d) {
|
|
@@ -10331,81 +10331,81 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
10331
10331
|
}, [r, t, e]), null;
|
|
10332
10332
|
}, zb = Xd, Hb = Qd, Bb = ef, Wb = tf, Fn = '[cmdk-group=""]', lo = '[cmdk-group-items=""]', Ub = '[cmdk-group-heading=""]', ja = '[cmdk-item=""]', bs = `${ja}:not([aria-disabled="true"])`, Zo = "cmdk-item-select", Ot = "data-value", Vb = (t, e, n) => cy(t, e, n), sf = x.createContext(void 0), dr = () => x.useContext(sf), uf = x.createContext(void 0), za = () => x.useContext(uf), cf = x.createContext(void 0), df = x.forwardRef((t, e) => {
|
|
10333
10333
|
let n = hn(() => {
|
|
10334
|
-
var
|
|
10335
|
-
return { search: "", value: (I = (
|
|
10336
|
-
}), r = hn(() => /* @__PURE__ */ new Set()), i = hn(() => /* @__PURE__ */ new Map()), o = hn(() => /* @__PURE__ */ new Map()), a = hn(() => /* @__PURE__ */ new Set()), l = ff(t), { label: s, children: u, value: c, onValueChange: f, filter: h, shouldFilter: p, loop: v, disablePointerSelection: d = !1, vimBindings: g = !0, ...m } = t, b = dt(), S = dt(),
|
|
10334
|
+
var _, I;
|
|
10335
|
+
return { search: "", value: (I = (_ = t.value) != null ? _ : t.defaultValue) != null ? I : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
10336
|
+
}), r = hn(() => /* @__PURE__ */ new Set()), i = hn(() => /* @__PURE__ */ new Map()), o = hn(() => /* @__PURE__ */ new Map()), a = hn(() => /* @__PURE__ */ new Set()), l = ff(t), { label: s, children: u, value: c, onValueChange: f, filter: h, shouldFilter: p, loop: v, disablePointerSelection: d = !1, vimBindings: g = !0, ...m } = t, b = dt(), S = dt(), C = dt(), $ = x.useRef(null), P = rS();
|
|
10337
10337
|
Wt(() => {
|
|
10338
10338
|
if (c !== void 0) {
|
|
10339
|
-
let
|
|
10340
|
-
n.current.value =
|
|
10339
|
+
let _ = c.trim();
|
|
10340
|
+
n.current.value = _, D.emit();
|
|
10341
10341
|
}
|
|
10342
10342
|
}, [c]), Wt(() => {
|
|
10343
10343
|
P(6, w);
|
|
10344
10344
|
}, []);
|
|
10345
|
-
let
|
|
10346
|
-
var
|
|
10347
|
-
if (!Object.is(n.current[
|
|
10348
|
-
if (n.current[
|
|
10349
|
-
else if (
|
|
10350
|
-
let
|
|
10351
|
-
(U = (W = l.current).onValueChange) == null || U.call(W,
|
|
10345
|
+
let D = x.useMemo(() => ({ subscribe: (_) => (a.current.add(_), () => a.current.delete(_)), snapshot: () => n.current, setState: (_, I, A) => {
|
|
10346
|
+
var M, W, U;
|
|
10347
|
+
if (!Object.is(n.current[_], I)) {
|
|
10348
|
+
if (n.current[_] = I, _ === "search") z(), B(), P(1, N);
|
|
10349
|
+
else if (_ === "value" && (A || P(5, w), ((M = l.current) == null ? void 0 : M.value) !== void 0)) {
|
|
10350
|
+
let K = I ?? "";
|
|
10351
|
+
(U = (W = l.current).onValueChange) == null || U.call(W, K);
|
|
10352
10352
|
return;
|
|
10353
10353
|
}
|
|
10354
|
-
|
|
10354
|
+
D.emit();
|
|
10355
10355
|
}
|
|
10356
10356
|
}, emit: () => {
|
|
10357
|
-
a.current.forEach((
|
|
10358
|
-
} }), []), y = x.useMemo(() => ({ value: (
|
|
10359
|
-
var
|
|
10360
|
-
I !== ((
|
|
10361
|
-
B(),
|
|
10357
|
+
a.current.forEach((_) => _());
|
|
10358
|
+
} }), []), y = x.useMemo(() => ({ value: (_, I, A) => {
|
|
10359
|
+
var M;
|
|
10360
|
+
I !== ((M = o.current.get(_)) == null ? void 0 : M.value) && (o.current.set(_, { value: I, keywords: A }), n.current.filtered.items.set(_, k(I, A)), P(2, () => {
|
|
10361
|
+
B(), D.emit();
|
|
10362
10362
|
}));
|
|
10363
|
-
}, item: (
|
|
10364
|
-
|
|
10363
|
+
}, item: (_, I) => (r.current.add(_), I && (i.current.has(I) ? i.current.get(I).add(_) : i.current.set(I, /* @__PURE__ */ new Set([_]))), P(3, () => {
|
|
10364
|
+
z(), B(), n.current.value || N(), D.emit();
|
|
10365
10365
|
}), () => {
|
|
10366
|
-
o.current.delete(
|
|
10367
|
-
let
|
|
10366
|
+
o.current.delete(_), r.current.delete(_), n.current.filtered.items.delete(_);
|
|
10367
|
+
let A = O();
|
|
10368
10368
|
P(4, () => {
|
|
10369
|
-
|
|
10369
|
+
z(), (A == null ? void 0 : A.getAttribute("id")) === _ && N(), D.emit();
|
|
10370
10370
|
});
|
|
10371
|
-
}), group: (
|
|
10372
|
-
o.current.delete(
|
|
10373
|
-
}), filter: () => l.current.shouldFilter, label: s || t["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: b, inputId:
|
|
10374
|
-
function _
|
|
10375
|
-
var
|
|
10376
|
-
let W = (
|
|
10377
|
-
return
|
|
10371
|
+
}), group: (_) => (i.current.has(_) || i.current.set(_, /* @__PURE__ */ new Set()), () => {
|
|
10372
|
+
o.current.delete(_), i.current.delete(_);
|
|
10373
|
+
}), filter: () => l.current.shouldFilter, label: s || t["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: b, inputId: C, labelId: S, listInnerRef: $ }), []);
|
|
10374
|
+
function k(_, I) {
|
|
10375
|
+
var A, M;
|
|
10376
|
+
let W = (M = (A = l.current) == null ? void 0 : A.filter) != null ? M : Vb;
|
|
10377
|
+
return _ ? W(_, n.current.search, I) : 0;
|
|
10378
10378
|
}
|
|
10379
10379
|
function B() {
|
|
10380
10380
|
if (!n.current.search || l.current.shouldFilter === !1) return;
|
|
10381
|
-
let
|
|
10382
|
-
n.current.filtered.groups.forEach((
|
|
10383
|
-
let W = i.current.get(
|
|
10384
|
-
W.forEach((
|
|
10385
|
-
let te =
|
|
10381
|
+
let _ = n.current.filtered.items, I = [];
|
|
10382
|
+
n.current.filtered.groups.forEach((M) => {
|
|
10383
|
+
let W = i.current.get(M), U = 0;
|
|
10384
|
+
W.forEach((K) => {
|
|
10385
|
+
let te = _.get(K);
|
|
10386
10386
|
U = Math.max(te, U);
|
|
10387
|
-
}), I.push([
|
|
10387
|
+
}), I.push([M, U]);
|
|
10388
10388
|
});
|
|
10389
|
-
let
|
|
10390
|
-
|
|
10391
|
-
var U,
|
|
10392
|
-
let te =
|
|
10393
|
-
return ((U =
|
|
10394
|
-
}).forEach((
|
|
10395
|
-
let W =
|
|
10396
|
-
W ? W.appendChild(
|
|
10397
|
-
}), I.sort((
|
|
10389
|
+
let A = $.current;
|
|
10390
|
+
j().sort((M, W) => {
|
|
10391
|
+
var U, K;
|
|
10392
|
+
let te = M.getAttribute("id"), ae = W.getAttribute("id");
|
|
10393
|
+
return ((U = _.get(ae)) != null ? U : 0) - ((K = _.get(te)) != null ? K : 0);
|
|
10394
|
+
}).forEach((M) => {
|
|
10395
|
+
let W = M.closest(lo);
|
|
10396
|
+
W ? W.appendChild(M.parentElement === W ? M : M.closest(`${lo} > *`)) : A.appendChild(M.parentElement === A ? M : M.closest(`${lo} > *`));
|
|
10397
|
+
}), I.sort((M, W) => W[1] - M[1]).forEach((M) => {
|
|
10398
10398
|
var W;
|
|
10399
|
-
let U = (W = $.current) == null ? void 0 : W.querySelector(`${Fn}[${Ot}="${encodeURIComponent(
|
|
10399
|
+
let U = (W = $.current) == null ? void 0 : W.querySelector(`${Fn}[${Ot}="${encodeURIComponent(M[0])}"]`);
|
|
10400
10400
|
U == null || U.parentElement.appendChild(U);
|
|
10401
10401
|
});
|
|
10402
10402
|
}
|
|
10403
10403
|
function N() {
|
|
10404
|
-
let
|
|
10405
|
-
|
|
10404
|
+
let _ = j().find((A) => A.getAttribute("aria-disabled") !== "true"), I = _ == null ? void 0 : _.getAttribute(Ot);
|
|
10405
|
+
D.setState("value", I || void 0);
|
|
10406
10406
|
}
|
|
10407
|
-
function
|
|
10408
|
-
var
|
|
10407
|
+
function z() {
|
|
10408
|
+
var _, I, A, M;
|
|
10409
10409
|
if (!n.current.search || l.current.shouldFilter === !1) {
|
|
10410
10410
|
n.current.filtered.count = r.current.size;
|
|
10411
10411
|
return;
|
|
@@ -10413,87 +10413,87 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
10413
10413
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
10414
10414
|
let W = 0;
|
|
10415
10415
|
for (let U of r.current) {
|
|
10416
|
-
let
|
|
10416
|
+
let K = (I = (_ = o.current.get(U)) == null ? void 0 : _.value) != null ? I : "", te = (M = (A = o.current.get(U)) == null ? void 0 : A.keywords) != null ? M : [], ae = k(K, te);
|
|
10417
10417
|
n.current.filtered.items.set(U, ae), ae > 0 && W++;
|
|
10418
10418
|
}
|
|
10419
|
-
for (let [U,
|
|
10419
|
+
for (let [U, K] of i.current) for (let te of K) if (n.current.filtered.items.get(te) > 0) {
|
|
10420
10420
|
n.current.filtered.groups.add(U);
|
|
10421
10421
|
break;
|
|
10422
10422
|
}
|
|
10423
10423
|
n.current.filtered.count = W;
|
|
10424
10424
|
}
|
|
10425
10425
|
function w() {
|
|
10426
|
-
var
|
|
10427
|
-
let
|
|
10428
|
-
|
|
10426
|
+
var _, I, A;
|
|
10427
|
+
let M = O();
|
|
10428
|
+
M && (((_ = M.parentElement) == null ? void 0 : _.firstChild) === M && ((A = (I = M.closest(Fn)) == null ? void 0 : I.querySelector(Ub)) == null || A.scrollIntoView({ block: "nearest" })), M.scrollIntoView({ block: "nearest" }));
|
|
10429
10429
|
}
|
|
10430
10430
|
function O() {
|
|
10431
|
-
var
|
|
10432
|
-
return (
|
|
10431
|
+
var _;
|
|
10432
|
+
return (_ = $.current) == null ? void 0 : _.querySelector(`${ja}[aria-selected="true"]`);
|
|
10433
10433
|
}
|
|
10434
|
-
function
|
|
10435
|
-
var
|
|
10436
|
-
return Array.from(((
|
|
10434
|
+
function j() {
|
|
10435
|
+
var _;
|
|
10436
|
+
return Array.from(((_ = $.current) == null ? void 0 : _.querySelectorAll(bs)) || []);
|
|
10437
10437
|
}
|
|
10438
|
-
function
|
|
10439
|
-
let I =
|
|
10440
|
-
I &&
|
|
10438
|
+
function G(_) {
|
|
10439
|
+
let I = j()[_];
|
|
10440
|
+
I && D.setState("value", I.getAttribute(Ot));
|
|
10441
10441
|
}
|
|
10442
|
-
function Z(
|
|
10442
|
+
function Z(_) {
|
|
10443
10443
|
var I;
|
|
10444
|
-
let
|
|
10445
|
-
(I = l.current) != null && I.loop && (U = W +
|
|
10446
|
-
}
|
|
10447
|
-
function R(
|
|
10448
|
-
let I = O(),
|
|
10449
|
-
for (;
|
|
10450
|
-
|
|
10451
|
-
}
|
|
10452
|
-
let
|
|
10453
|
-
|
|
10454
|
-
},
|
|
10455
|
-
|
|
10444
|
+
let A = O(), M = j(), W = M.findIndex((K) => K === A), U = M[W + _];
|
|
10445
|
+
(I = l.current) != null && I.loop && (U = W + _ < 0 ? M[M.length - 1] : W + _ === M.length ? M[0] : M[W + _]), U && D.setState("value", U.getAttribute(Ot));
|
|
10446
|
+
}
|
|
10447
|
+
function R(_) {
|
|
10448
|
+
let I = O(), A = I == null ? void 0 : I.closest(Fn), M;
|
|
10449
|
+
for (; A && !M; ) A = _ > 0 ? tS(A, Fn) : nS(A, Fn), M = A == null ? void 0 : A.querySelector(bs);
|
|
10450
|
+
M ? D.setState("value", M.getAttribute(Ot)) : Z(_);
|
|
10451
|
+
}
|
|
10452
|
+
let J = () => G(j().length - 1), F = (_) => {
|
|
10453
|
+
_.preventDefault(), _.metaKey ? J() : _.altKey ? R(1) : Z(1);
|
|
10454
|
+
}, H = (_) => {
|
|
10455
|
+
_.preventDefault(), _.metaKey ? G(0) : _.altKey ? R(-1) : Z(-1);
|
|
10456
10456
|
};
|
|
10457
|
-
return x.createElement(Ce.div, { ref: e, tabIndex: -1, ...m, "cmdk-root": "", onKeyDown: (
|
|
10457
|
+
return x.createElement(Ce.div, { ref: e, tabIndex: -1, ...m, "cmdk-root": "", onKeyDown: (_) => {
|
|
10458
10458
|
var I;
|
|
10459
|
-
if ((I = m.onKeyDown) == null || I.call(m,
|
|
10459
|
+
if ((I = m.onKeyDown) == null || I.call(m, _), !_.defaultPrevented) switch (_.key) {
|
|
10460
10460
|
case "n":
|
|
10461
10461
|
case "j": {
|
|
10462
|
-
g &&
|
|
10462
|
+
g && _.ctrlKey && F(_);
|
|
10463
10463
|
break;
|
|
10464
10464
|
}
|
|
10465
10465
|
case "ArrowDown": {
|
|
10466
|
-
|
|
10466
|
+
F(_);
|
|
10467
10467
|
break;
|
|
10468
10468
|
}
|
|
10469
10469
|
case "p":
|
|
10470
10470
|
case "k": {
|
|
10471
|
-
g &&
|
|
10471
|
+
g && _.ctrlKey && H(_);
|
|
10472
10472
|
break;
|
|
10473
10473
|
}
|
|
10474
10474
|
case "ArrowUp": {
|
|
10475
|
-
|
|
10475
|
+
H(_);
|
|
10476
10476
|
break;
|
|
10477
10477
|
}
|
|
10478
10478
|
case "Home": {
|
|
10479
|
-
|
|
10479
|
+
_.preventDefault(), G(0);
|
|
10480
10480
|
break;
|
|
10481
10481
|
}
|
|
10482
10482
|
case "End": {
|
|
10483
|
-
|
|
10483
|
+
_.preventDefault(), J();
|
|
10484
10484
|
break;
|
|
10485
10485
|
}
|
|
10486
10486
|
case "Enter":
|
|
10487
|
-
if (!
|
|
10488
|
-
|
|
10489
|
-
let
|
|
10490
|
-
if (
|
|
10491
|
-
let
|
|
10492
|
-
|
|
10487
|
+
if (!_.nativeEvent.isComposing && _.keyCode !== 229) {
|
|
10488
|
+
_.preventDefault();
|
|
10489
|
+
let A = O();
|
|
10490
|
+
if (A) {
|
|
10491
|
+
let M = new Event(Zo);
|
|
10492
|
+
A.dispatchEvent(M);
|
|
10493
10493
|
}
|
|
10494
10494
|
}
|
|
10495
10495
|
}
|
|
10496
|
-
} }, x.createElement("label", { "cmdk-label": "", htmlFor: y.inputId, id: y.labelId, style: oS }, s), Ci(t, (
|
|
10496
|
+
} }, x.createElement("label", { "cmdk-label": "", htmlFor: y.inputId, id: y.labelId, style: oS }, s), Ci(t, (_) => x.createElement(uf.Provider, { value: D }, x.createElement(sf.Provider, { value: y }, _))));
|
|
10497
10497
|
}), Gb = x.forwardRef((t, e) => {
|
|
10498
10498
|
var n, r;
|
|
10499
10499
|
let i = dt(), o = x.useRef(null), a = x.useContext(cf), l = dr(), s = ff(t), u = (r = (n = s.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
|
|
@@ -10506,14 +10506,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
10506
10506
|
if (!(!P || t.disabled)) return P.addEventListener(Zo, v), () => P.removeEventListener(Zo, v);
|
|
10507
10507
|
}, [p, t.onSelect, t.disabled]);
|
|
10508
10508
|
function v() {
|
|
10509
|
-
var P,
|
|
10510
|
-
d(), (
|
|
10509
|
+
var P, D;
|
|
10510
|
+
d(), (D = (P = s.current).onSelect) == null || D.call(P, c.current);
|
|
10511
10511
|
}
|
|
10512
10512
|
function d() {
|
|
10513
10513
|
f.setState("value", c.current, !0);
|
|
10514
10514
|
}
|
|
10515
10515
|
if (!p) return null;
|
|
10516
|
-
let { disabled: g, value: m, onSelect: b, forceMount: S, keywords:
|
|
10516
|
+
let { disabled: g, value: m, onSelect: b, forceMount: S, keywords: C, ...$ } = t;
|
|
10517
10517
|
return x.createElement(Ce.div, { ref: ir([o, e]), ...$, id: i, "cmdk-item": "", role: "option", "aria-disabled": !!g, "aria-selected": !!h, "data-disabled": !!g, "data-selected": !!h, onPointerMove: g || l.getDisablePointerSelection() ? void 0 : d, onClick: g ? void 0 : v }, t.children);
|
|
10518
10518
|
}), qb = x.forwardRef((t, e) => {
|
|
10519
10519
|
let { heading: n, children: r, forceMount: i, ...o } = t, a = dt(), l = x.useRef(null), s = x.useRef(null), u = dt(), c = dr(), f = Ut((p) => i || c.filter() === !1 ? !0 : p.search ? p.filtered.groups.has(a) : !0);
|
|
@@ -10677,7 +10677,7 @@ const Ss = ({ withPadding: t = !0 }) => /* @__PURE__ */ T.jsx(
|
|
|
10677
10677
|
placeholder: a,
|
|
10678
10678
|
children: l
|
|
10679
10679
|
}) => {
|
|
10680
|
-
const s =
|
|
10680
|
+
const s = V(null);
|
|
10681
10681
|
return /* @__PURE__ */ T.jsx(T.Fragment, { children: /* @__PURE__ */ T.jsx("div", { className: "quick-search-container", children: /* @__PURE__ */ T.jsxs(rr, { label: o, shouldFilter: !1, ref: s, children: [
|
|
10682
10682
|
i && /* @__PURE__ */ T.jsx(
|
|
10683
10683
|
aS,
|
|
@@ -10949,7 +10949,7 @@ const pS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10949
10949
|
height: "4px",
|
|
10950
10950
|
boxShadow: "0 0 0 3px #4B91E2",
|
|
10951
10951
|
borderRadius: "50%"
|
|
10952
|
-
}, yS =
|
|
10952
|
+
}, yS = L.memo(function({ top: e, left: n, indent: r }) {
|
|
10953
10953
|
const i = {
|
|
10954
10954
|
position: "absolute",
|
|
10955
10955
|
pointerEvents: "none",
|
|
@@ -10971,7 +10971,7 @@ function wS(t) {
|
|
|
10971
10971
|
return T.jsx(T.Fragment, { children: T.jsx("span", { children: t.node.data.name }) });
|
|
10972
10972
|
}
|
|
10973
10973
|
function ES({ node: t }) {
|
|
10974
|
-
const e =
|
|
10974
|
+
const e = V();
|
|
10975
10975
|
return Q(() => {
|
|
10976
10976
|
var n, r;
|
|
10977
10977
|
(n = e.current) === null || n === void 0 || n.focus(), (r = e.current) === null || r === void 0 || r.select();
|
|
@@ -11439,51 +11439,51 @@ function BS(t) {
|
|
|
11439
11439
|
scrollUpdateWasRequested: b
|
|
11440
11440
|
});
|
|
11441
11441
|
}), d._getItemStyle = void 0, d._getItemStyle = function(g) {
|
|
11442
|
-
var m = d.props, b = m.direction, S = m.itemSize,
|
|
11442
|
+
var m = d.props, b = m.direction, S = m.itemSize, C = m.layout, $ = d._getItemStyleCache(u && S, u && C, u && b), P;
|
|
11443
11443
|
if ($.hasOwnProperty(g))
|
|
11444
11444
|
P = $[g];
|
|
11445
11445
|
else {
|
|
11446
|
-
var
|
|
11446
|
+
var D = n(d.props, g, d._instanceProps), y = i(d.props, g, d._instanceProps), k = b === "horizontal" || C === "horizontal", B = b === "rtl", N = k ? D : 0;
|
|
11447
11447
|
$[g] = P = {
|
|
11448
11448
|
position: "absolute",
|
|
11449
11449
|
left: B ? void 0 : N,
|
|
11450
11450
|
right: B ? N : void 0,
|
|
11451
|
-
top:
|
|
11452
|
-
height:
|
|
11453
|
-
width:
|
|
11451
|
+
top: k ? 0 : D,
|
|
11452
|
+
height: k ? "100%" : y,
|
|
11453
|
+
width: k ? y : "100%"
|
|
11454
11454
|
};
|
|
11455
11455
|
}
|
|
11456
11456
|
return P;
|
|
11457
11457
|
}, d._getItemStyleCache = void 0, d._getItemStyleCache = co(function(g, m, b) {
|
|
11458
11458
|
return {};
|
|
11459
11459
|
}), d._onScrollHorizontal = function(g) {
|
|
11460
|
-
var m = g.currentTarget, b = m.clientWidth, S = m.scrollLeft,
|
|
11460
|
+
var m = g.currentTarget, b = m.clientWidth, S = m.scrollLeft, C = m.scrollWidth;
|
|
11461
11461
|
d.setState(function($) {
|
|
11462
11462
|
if ($.scrollOffset === S)
|
|
11463
11463
|
return null;
|
|
11464
|
-
var P = d.props.direction,
|
|
11464
|
+
var P = d.props.direction, D = S;
|
|
11465
11465
|
if (P === "rtl")
|
|
11466
11466
|
switch (Ps()) {
|
|
11467
11467
|
case "negative":
|
|
11468
|
-
|
|
11468
|
+
D = -S;
|
|
11469
11469
|
break;
|
|
11470
11470
|
case "positive-descending":
|
|
11471
|
-
|
|
11471
|
+
D = C - b - S;
|
|
11472
11472
|
break;
|
|
11473
11473
|
}
|
|
11474
|
-
return
|
|
11474
|
+
return D = Math.max(0, Math.min(D, C - b)), {
|
|
11475
11475
|
isScrolling: !0,
|
|
11476
|
-
scrollDirection: $.scrollOffset <
|
|
11477
|
-
scrollOffset:
|
|
11476
|
+
scrollDirection: $.scrollOffset < D ? "forward" : "backward",
|
|
11477
|
+
scrollOffset: D,
|
|
11478
11478
|
scrollUpdateWasRequested: !1
|
|
11479
11479
|
};
|
|
11480
11480
|
}, d._resetIsScrollingDebounced);
|
|
11481
11481
|
}, d._onScrollVertical = function(g) {
|
|
11482
|
-
var m = g.currentTarget, b = m.clientHeight, S = m.scrollHeight,
|
|
11482
|
+
var m = g.currentTarget, b = m.clientHeight, S = m.scrollHeight, C = m.scrollTop;
|
|
11483
11483
|
d.setState(function($) {
|
|
11484
|
-
if ($.scrollOffset ===
|
|
11484
|
+
if ($.scrollOffset === C)
|
|
11485
11485
|
return null;
|
|
11486
|
-
var P = Math.max(0, Math.min(
|
|
11486
|
+
var P = Math.max(0, Math.min(C, S - b));
|
|
11487
11487
|
return {
|
|
11488
11488
|
isScrolling: !0,
|
|
11489
11489
|
scrollDirection: $.scrollOffset < P ? "forward" : "backward",
|
|
@@ -11518,14 +11518,14 @@ function BS(t) {
|
|
|
11518
11518
|
}, this._resetIsScrollingDebounced);
|
|
11519
11519
|
}, p.scrollToItem = function(d, g) {
|
|
11520
11520
|
g === void 0 && (g = "auto");
|
|
11521
|
-
var m = this.props, b = m.itemCount, S = m.layout,
|
|
11521
|
+
var m = this.props, b = m.itemCount, S = m.layout, C = this.state.scrollOffset;
|
|
11522
11522
|
d = Math.max(0, Math.min(d, b - 1));
|
|
11523
11523
|
var $ = 0;
|
|
11524
11524
|
if (this._outerRef) {
|
|
11525
11525
|
var P = this._outerRef;
|
|
11526
11526
|
S === "vertical" ? $ = P.scrollWidth > P.clientWidth ? Ds() : 0 : $ = P.scrollHeight > P.clientHeight ? Ds() : 0;
|
|
11527
11527
|
}
|
|
11528
|
-
this.scrollTo(o(this.props, d, g,
|
|
11528
|
+
this.scrollTo(o(this.props, d, g, C, this._instanceProps, $));
|
|
11529
11529
|
}, p.componentDidMount = function() {
|
|
11530
11530
|
var d = this.props, g = d.direction, m = d.initialScrollOffset, b = d.layout;
|
|
11531
11531
|
if (typeof m == "number" && this._outerRef != null) {
|
|
@@ -11534,8 +11534,8 @@ function BS(t) {
|
|
|
11534
11534
|
}
|
|
11535
11535
|
this._callPropsCallbacks();
|
|
11536
11536
|
}, p.componentDidUpdate = function() {
|
|
11537
|
-
var d = this.props, g = d.direction, m = d.layout, b = this.state, S = b.scrollOffset,
|
|
11538
|
-
if (
|
|
11537
|
+
var d = this.props, g = d.direction, m = d.layout, b = this.state, S = b.scrollOffset, C = b.scrollUpdateWasRequested;
|
|
11538
|
+
if (C && this._outerRef != null) {
|
|
11539
11539
|
var $ = this._outerRef;
|
|
11540
11540
|
if (g === "horizontal" || m === "horizontal")
|
|
11541
11541
|
if (g === "rtl")
|
|
@@ -11547,8 +11547,8 @@ function BS(t) {
|
|
|
11547
11547
|
$.scrollLeft = S;
|
|
11548
11548
|
break;
|
|
11549
11549
|
default:
|
|
11550
|
-
var P = $.clientWidth,
|
|
11551
|
-
$.scrollLeft =
|
|
11550
|
+
var P = $.clientWidth, D = $.scrollWidth;
|
|
11551
|
+
$.scrollLeft = D - P - S;
|
|
11552
11552
|
break;
|
|
11553
11553
|
}
|
|
11554
11554
|
else
|
|
@@ -11560,25 +11560,25 @@ function BS(t) {
|
|
|
11560
11560
|
}, p.componentWillUnmount = function() {
|
|
11561
11561
|
this._resetIsScrollingTimeoutId !== null && Cs(this._resetIsScrollingTimeoutId);
|
|
11562
11562
|
}, p.render = function() {
|
|
11563
|
-
var d = this.props, g = d.children, m = d.className, b = d.direction, S = d.height,
|
|
11564
|
-
if (
|
|
11565
|
-
for (var
|
|
11563
|
+
var d = this.props, g = d.children, m = d.className, b = d.direction, S = d.height, C = d.innerRef, $ = d.innerElementType, P = d.innerTagName, D = d.itemCount, y = d.itemData, k = d.itemKey, B = k === void 0 ? HS : k, N = d.layout, z = d.outerElementType, w = d.outerTagName, O = d.style, j = d.useIsScrolling, G = d.width, Z = this.state.isScrolling, R = b === "horizontal" || N === "horizontal", J = R ? this._onScrollHorizontal : this._onScrollVertical, F = this._getRangeToRender(), H = F[0], _ = F[1], I = [];
|
|
11564
|
+
if (D > 0)
|
|
11565
|
+
for (var A = H; A <= _; A++)
|
|
11566
11566
|
I.push(ki(g, {
|
|
11567
11567
|
data: y,
|
|
11568
|
-
key: B(
|
|
11569
|
-
index:
|
|
11570
|
-
isScrolling:
|
|
11571
|
-
style: this._getItemStyle(
|
|
11568
|
+
key: B(A, y),
|
|
11569
|
+
index: A,
|
|
11570
|
+
isScrolling: j ? Z : void 0,
|
|
11571
|
+
style: this._getItemStyle(A)
|
|
11572
11572
|
}));
|
|
11573
|
-
var
|
|
11574
|
-
return ki(
|
|
11573
|
+
var M = r(this.props, this._instanceProps);
|
|
11574
|
+
return ki(z || w || "div", {
|
|
11575
11575
|
className: m,
|
|
11576
|
-
onScroll:
|
|
11576
|
+
onScroll: J,
|
|
11577
11577
|
ref: this._outerRefSetter,
|
|
11578
11578
|
style: ea({
|
|
11579
11579
|
position: "relative",
|
|
11580
11580
|
height: S,
|
|
11581
|
-
width:
|
|
11581
|
+
width: G,
|
|
11582
11582
|
overflow: "auto",
|
|
11583
11583
|
WebkitOverflowScrolling: "touch",
|
|
11584
11584
|
willChange: "transform",
|
|
@@ -11586,31 +11586,31 @@ function BS(t) {
|
|
|
11586
11586
|
}, O)
|
|
11587
11587
|
}, ki($ || P || "div", {
|
|
11588
11588
|
children: I,
|
|
11589
|
-
ref:
|
|
11589
|
+
ref: C,
|
|
11590
11590
|
style: {
|
|
11591
|
-
height: R ? "100%" :
|
|
11591
|
+
height: R ? "100%" : M,
|
|
11592
11592
|
pointerEvents: Z ? "none" : void 0,
|
|
11593
|
-
width: R ?
|
|
11593
|
+
width: R ? M : "100%"
|
|
11594
11594
|
}
|
|
11595
11595
|
}));
|
|
11596
11596
|
}, p._callPropsCallbacks = function() {
|
|
11597
11597
|
if (typeof this.props.onItemsRendered == "function") {
|
|
11598
11598
|
var d = this.props.itemCount;
|
|
11599
11599
|
if (d > 0) {
|
|
11600
|
-
var g = this._getRangeToRender(), m = g[0], b = g[1], S = g[2],
|
|
11601
|
-
this._callOnItemsRendered(m, b, S,
|
|
11600
|
+
var g = this._getRangeToRender(), m = g[0], b = g[1], S = g[2], C = g[3];
|
|
11601
|
+
this._callOnItemsRendered(m, b, S, C);
|
|
11602
11602
|
}
|
|
11603
11603
|
}
|
|
11604
11604
|
if (typeof this.props.onScroll == "function") {
|
|
11605
|
-
var $ = this.state, P = $.scrollDirection,
|
|
11606
|
-
this._callOnScroll(P,
|
|
11605
|
+
var $ = this.state, P = $.scrollDirection, D = $.scrollOffset, y = $.scrollUpdateWasRequested;
|
|
11606
|
+
this._callOnScroll(P, D, y);
|
|
11607
11607
|
}
|
|
11608
11608
|
}, p._getRangeToRender = function() {
|
|
11609
|
-
var d = this.props, g = d.itemCount, m = d.overscanCount, b = this.state, S = b.isScrolling,
|
|
11609
|
+
var d = this.props, g = d.itemCount, m = d.overscanCount, b = this.state, S = b.isScrolling, C = b.scrollDirection, $ = b.scrollOffset;
|
|
11610
11610
|
if (g === 0)
|
|
11611
11611
|
return [0, 0, 0, 0];
|
|
11612
|
-
var P = a(this.props, $, this._instanceProps),
|
|
11613
|
-
return [Math.max(0, P - y), Math.max(0, Math.min(g - 1,
|
|
11612
|
+
var P = a(this.props, $, this._instanceProps), D = l(this.props, P, $, this._instanceProps), y = !S || C === "backward" ? Math.max(1, m) : 1, k = !S || C === "forward" ? Math.max(1, m) : 1;
|
|
11613
|
+
return [Math.max(0, P - y), Math.max(0, Math.min(g - 1, D + k)), P, D];
|
|
11614
11614
|
}, h;
|
|
11615
11615
|
}(hh), e.defaultProps = {
|
|
11616
11616
|
direction: "ltr",
|
|
@@ -12221,9 +12221,9 @@ function Af(t, e, n) {
|
|
|
12221
12221
|
b.next && b.next(c());
|
|
12222
12222
|
}
|
|
12223
12223
|
S();
|
|
12224
|
-
var
|
|
12224
|
+
var C = g(S);
|
|
12225
12225
|
return {
|
|
12226
|
-
unsubscribe:
|
|
12226
|
+
unsubscribe: C
|
|
12227
12227
|
};
|
|
12228
12228
|
}
|
|
12229
12229
|
}, d[ks] = function() {
|
|
@@ -13747,7 +13747,7 @@ var lE = /* @__PURE__ */ function() {
|
|
|
13747
13747
|
}]), t;
|
|
13748
13748
|
}();
|
|
13749
13749
|
function sE(t, e, n) {
|
|
13750
|
-
var r =
|
|
13750
|
+
var r = X(function() {
|
|
13751
13751
|
return new lE(t, e, n);
|
|
13752
13752
|
}, [e, n]);
|
|
13753
13753
|
return Q(function() {
|
|
@@ -13759,7 +13759,7 @@ function qt() {
|
|
|
13759
13759
|
return ne(e != null, "Expected drag drop context"), e;
|
|
13760
13760
|
}
|
|
13761
13761
|
function uE(t) {
|
|
13762
|
-
return
|
|
13762
|
+
return X(function() {
|
|
13763
13763
|
var e = t.type;
|
|
13764
13764
|
return ne(e != null, "spec.type must be defined"), e;
|
|
13765
13765
|
}, [t]);
|
|
@@ -13845,18 +13845,18 @@ function aa(t, e) {
|
|
|
13845
13845
|
}
|
|
13846
13846
|
function Hf(t, e) {
|
|
13847
13847
|
var n = vE(e || []);
|
|
13848
|
-
return e == null && typeof t != "function" && n.push(t),
|
|
13848
|
+
return e == null && typeof t != "function" && n.push(t), X(function() {
|
|
13849
13849
|
return typeof t == "function" ? t() : t;
|
|
13850
13850
|
}, n);
|
|
13851
13851
|
}
|
|
13852
13852
|
function wE() {
|
|
13853
13853
|
var t = qt();
|
|
13854
|
-
return
|
|
13854
|
+
return X(function() {
|
|
13855
13855
|
return new j0(t);
|
|
13856
13856
|
}, [t]);
|
|
13857
13857
|
}
|
|
13858
13858
|
function EE(t, e) {
|
|
13859
|
-
var n = qt(), r =
|
|
13859
|
+
var n = qt(), r = X(function() {
|
|
13860
13860
|
return new J0(n.getBackend());
|
|
13861
13861
|
}, [n]);
|
|
13862
13862
|
return Vt(function() {
|
|
@@ -14012,12 +14012,12 @@ function Wf(t, e, n) {
|
|
|
14012
14012
|
});
|
|
14013
14013
|
}
|
|
14014
14014
|
function KE(t) {
|
|
14015
|
-
return
|
|
14015
|
+
return X(function() {
|
|
14016
14016
|
return t.hooks.dragSource();
|
|
14017
14017
|
}, [t]);
|
|
14018
14018
|
}
|
|
14019
14019
|
function LE(t) {
|
|
14020
|
-
return
|
|
14020
|
+
return X(function() {
|
|
14021
14021
|
return t.hooks.dragPreview();
|
|
14022
14022
|
}, [t]);
|
|
14023
14023
|
}
|
|
@@ -14029,7 +14029,7 @@ function FE(t, e) {
|
|
|
14029
14029
|
}
|
|
14030
14030
|
function jE(t) {
|
|
14031
14031
|
var e = t.accept;
|
|
14032
|
-
return
|
|
14032
|
+
return X(function() {
|
|
14033
14033
|
return ne(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [e];
|
|
14034
14034
|
}, [e]);
|
|
14035
14035
|
}
|
|
@@ -14075,7 +14075,7 @@ var WE = /* @__PURE__ */ function() {
|
|
|
14075
14075
|
}]), t;
|
|
14076
14076
|
}();
|
|
14077
14077
|
function UE(t, e) {
|
|
14078
|
-
var n =
|
|
14078
|
+
var n = X(function() {
|
|
14079
14079
|
return new WE(t, e);
|
|
14080
14080
|
}, [e]);
|
|
14081
14081
|
return Q(function() {
|
|
@@ -14136,12 +14136,12 @@ function JE(t, e, n) {
|
|
|
14136
14136
|
}
|
|
14137
14137
|
function ZE() {
|
|
14138
14138
|
var t = qt();
|
|
14139
|
-
return
|
|
14139
|
+
return X(function() {
|
|
14140
14140
|
return new W0(t);
|
|
14141
14141
|
}, [t]);
|
|
14142
14142
|
}
|
|
14143
14143
|
function QE(t) {
|
|
14144
|
-
var e = qt(), n =
|
|
14144
|
+
var e = qt(), n = X(function() {
|
|
14145
14145
|
return new tE(e.getBackend());
|
|
14146
14146
|
}, [e]);
|
|
14147
14147
|
return Vt(function() {
|
|
@@ -14151,7 +14151,7 @@ function QE(t) {
|
|
|
14151
14151
|
}, [t]), n;
|
|
14152
14152
|
}
|
|
14153
14153
|
function e$(t) {
|
|
14154
|
-
return
|
|
14154
|
+
return X(function() {
|
|
14155
14155
|
return t.hooks.dropTarget();
|
|
14156
14156
|
}, [t]);
|
|
14157
14157
|
}
|
|
@@ -14297,8 +14297,8 @@ var iu = /* @__PURE__ */ function() {
|
|
|
14297
14297
|
p$(this, t), zn(this, "xs", void 0), zn(this, "ys", void 0), zn(this, "c1s", void 0), zn(this, "c2s", void 0), zn(this, "c3s", void 0);
|
|
14298
14298
|
for (var r = e.length, i = [], o = 0; o < r; o++)
|
|
14299
14299
|
i.push(o);
|
|
14300
|
-
i.sort(function(y,
|
|
14301
|
-
return e[y] < e[
|
|
14300
|
+
i.sort(function(y, k) {
|
|
14301
|
+
return e[y] < e[k] ? -1 : 1;
|
|
14302
14302
|
});
|
|
14303
14303
|
for (var a = [], l = [], s, u, c = 0; c < r - 1; c++)
|
|
14304
14304
|
s = e[c + 1] - e[c], u = n[c + 1] - n[c], a.push(s), l.push(u / s);
|
|
@@ -14313,10 +14313,10 @@ var iu = /* @__PURE__ */ function() {
|
|
|
14313
14313
|
}
|
|
14314
14314
|
}
|
|
14315
14315
|
f.push(l[l.length - 1]);
|
|
14316
|
-
for (var m = [], b = [], S,
|
|
14317
|
-
S = l[
|
|
14318
|
-
var $ = f[
|
|
14319
|
-
m.push((S - $ -
|
|
14316
|
+
for (var m = [], b = [], S, C = 0; C < f.length - 1; C++) {
|
|
14317
|
+
S = l[C];
|
|
14318
|
+
var $ = f[C], P = 1 / a[C], D = $ + f[C + 1] - S - S;
|
|
14319
|
+
m.push((S - $ - D) * P), b.push(D * P * P);
|
|
14320
14320
|
}
|
|
14321
14321
|
this.xs = e, this.ys = n, this.c1s = f, this.c2s = m, this.c3s = b;
|
|
14322
14322
|
}
|
|
@@ -14374,17 +14374,17 @@ function S$(t, e, n, r, i) {
|
|
|
14374
14374
|
x: n.x - l.x,
|
|
14375
14375
|
y: n.y - l.y
|
|
14376
14376
|
}, u = t.offsetWidth, c = t.offsetHeight, f = r.anchorX, h = r.anchorY, p = b$(o, e, u, c), v = p.dragPreviewWidth, d = p.dragPreviewHeight, g = function() {
|
|
14377
|
-
var
|
|
14377
|
+
var D = new iu([0, 0.5, 1], [
|
|
14378
14378
|
// Dock to the top
|
|
14379
14379
|
s.y,
|
|
14380
14380
|
// Align at the center
|
|
14381
14381
|
s.y / c * d,
|
|
14382
14382
|
// Dock to the bottom
|
|
14383
14383
|
s.y + d - c
|
|
14384
|
-
]), y =
|
|
14384
|
+
]), y = D.interpolate(h);
|
|
14385
14385
|
return Gf() && o && (y += (window.devicePixelRatio - 1) * d), y;
|
|
14386
14386
|
}, m = function() {
|
|
14387
|
-
var
|
|
14387
|
+
var D = new iu([0, 0.5, 1], [
|
|
14388
14388
|
// Dock to the left
|
|
14389
14389
|
s.x,
|
|
14390
14390
|
// Align at the center
|
|
@@ -14392,10 +14392,10 @@ function S$(t, e, n, r, i) {
|
|
|
14392
14392
|
// Dock to the right
|
|
14393
14393
|
s.x + v - u
|
|
14394
14394
|
]);
|
|
14395
|
-
return
|
|
14396
|
-
}, b = i.offsetX, S = i.offsetY,
|
|
14395
|
+
return D.interpolate(f);
|
|
14396
|
+
}, b = i.offsetX, S = i.offsetY, C = b === 0 || b, $ = S === 0 || S;
|
|
14397
14397
|
return {
|
|
14398
|
-
x:
|
|
14398
|
+
x: C ? b : m(),
|
|
14399
14399
|
y: $ ? S : g()
|
|
14400
14400
|
};
|
|
14401
14401
|
}
|
|
@@ -14662,8 +14662,8 @@ var N$ = /* @__PURE__ */ function() {
|
|
|
14662
14662
|
}, S = {
|
|
14663
14663
|
offsetX: g,
|
|
14664
14664
|
offsetY: m
|
|
14665
|
-
},
|
|
14666
|
-
s.setDragImage(h,
|
|
14665
|
+
}, C = S$(f, h, l, b, S);
|
|
14666
|
+
s.setDragImage(h, C.x, C.y);
|
|
14667
14667
|
}
|
|
14668
14668
|
}
|
|
14669
14669
|
try {
|
|
@@ -15057,16 +15057,16 @@ function z$(t) {
|
|
|
15057
15057
|
const e = Me(), n = e.at(t);
|
|
15058
15058
|
if (!n)
|
|
15059
15059
|
throw new Error(`Could not find node for index: ${t}`);
|
|
15060
|
-
return
|
|
15060
|
+
return X(() => {
|
|
15061
15061
|
const r = n.clone();
|
|
15062
15062
|
return e.visibleNodes[t] = r, r;
|
|
15063
15063
|
}, [...Object.values(n.state), n]);
|
|
15064
15064
|
}
|
|
15065
|
-
const H$ =
|
|
15065
|
+
const H$ = L.memo(function({ index: e, style: n }) {
|
|
15066
15066
|
yf(), sS();
|
|
15067
|
-
const r = Me(), i = z$(e), o =
|
|
15067
|
+
const r = Me(), i = z$(e), o = V(null), a = M$(i), l = j$(o, i), s = ee((d) => {
|
|
15068
15068
|
o.current = d, l(d);
|
|
15069
|
-
}, [l]), u = r.indent * i.level, c =
|
|
15069
|
+
}, [l]), u = r.indent * i.level, c = X(() => ({ paddingLeft: u }), [u]), f = X(() => {
|
|
15070
15070
|
var d, g;
|
|
15071
15071
|
return Object.assign(Object.assign({}, n), { top: parseFloat(n.top) + ((g = (d = r.props.padding) !== null && d !== void 0 ? d : r.props.paddingTop) !== null && g !== void 0 ? g : 0) });
|
|
15072
15072
|
}, [n, r.props.padding, r.props.paddingTop]), h = {
|
|
@@ -15853,8 +15853,8 @@ function rh(t, e, n) {
|
|
|
15853
15853
|
if (typeof m != "object" || m === null)
|
|
15854
15854
|
throw new Error(process.env.NODE_ENV === "production" ? Oe(11) : `Expected the observer to be an object. Instead, received: '${bt(m)}'`);
|
|
15855
15855
|
function b() {
|
|
15856
|
-
const
|
|
15857
|
-
|
|
15856
|
+
const C = m;
|
|
15857
|
+
C.next && C.next(c());
|
|
15858
15858
|
}
|
|
15859
15859
|
return b(), {
|
|
15860
15860
|
unsubscribe: g(b)
|
|
@@ -15965,11 +15965,11 @@ const ex = pu({
|
|
|
15965
15965
|
dnd: PS
|
|
15966
15966
|
}), tx = Cn();
|
|
15967
15967
|
function nx({ treeProps: t, imperativeHandle: e, children: n }) {
|
|
15968
|
-
const r =
|
|
15968
|
+
const r = V(null), i = V(null), o = V(
|
|
15969
15969
|
// @ts-ignore
|
|
15970
15970
|
rh(ex, Cn(t))
|
|
15971
|
-
), a = ba.useSyncExternalStore(o.current.subscribe, o.current.getState, () => tx), l =
|
|
15972
|
-
return
|
|
15971
|
+
), a = ba.useSyncExternalStore(o.current.subscribe, o.current.getState, () => tx), l = X(() => new Yn(o.current, t, r, i), []), s = V(0);
|
|
15972
|
+
return X(() => {
|
|
15973
15973
|
s.current += 1, l.update(t);
|
|
15974
15974
|
}, [...Object.values(t), a.nodes.open]), gh(e, () => l), Q(() => {
|
|
15975
15975
|
l.props.selection ? l.select(l.props.selection, { focus: !1 }) : l.deselectAll();
|
|
@@ -16097,7 +16097,7 @@ class ih {
|
|
|
16097
16097
|
}
|
|
16098
16098
|
let ux = 0;
|
|
16099
16099
|
function cx(t) {
|
|
16100
|
-
const [e, n] = re(t), r =
|
|
16100
|
+
const [e, n] = re(t), r = X(() => new lx(e), [e]);
|
|
16101
16101
|
return [e, { onMove: (u) => {
|
|
16102
16102
|
for (const c of u.dragIds)
|
|
16103
16103
|
r.move({ id: c, parentId: u.parentId, index: u.index });
|
|
@@ -16138,9 +16138,9 @@ const hx = ht(fx), px = ({ top: t, left: e }) => /* @__PURE__ */ T.jsx(
|
|
|
16138
16138
|
}
|
|
16139
16139
|
);
|
|
16140
16140
|
function gx(t, e) {
|
|
16141
|
-
var n =
|
|
16141
|
+
var n = V(null), r = V(null);
|
|
16142
16142
|
r.current = e;
|
|
16143
|
-
var i =
|
|
16143
|
+
var i = V(null);
|
|
16144
16144
|
Q(function() {
|
|
16145
16145
|
o();
|
|
16146
16146
|
});
|
|
@@ -16172,18 +16172,18 @@ function gu(t, e, n) {
|
|
|
16172
16172
|
}
|
|
16173
16173
|
function vx(t) {
|
|
16174
16174
|
t === void 0 && (t = {});
|
|
16175
|
-
var e = t.onResize, n =
|
|
16175
|
+
var e = t.onResize, n = V(void 0);
|
|
16176
16176
|
n.current = e;
|
|
16177
|
-
var r = t.round || Math.round, i =
|
|
16177
|
+
var r = t.round || Math.round, i = V(), o = re({
|
|
16178
16178
|
width: void 0,
|
|
16179
16179
|
height: void 0
|
|
16180
|
-
}), a = o[0], l = o[1], s =
|
|
16180
|
+
}), a = o[0], l = o[1], s = V(!1);
|
|
16181
16181
|
Q(function() {
|
|
16182
16182
|
return s.current = !1, function() {
|
|
16183
16183
|
s.current = !0;
|
|
16184
16184
|
};
|
|
16185
16185
|
}, []);
|
|
16186
|
-
var u =
|
|
16186
|
+
var u = V({
|
|
16187
16187
|
width: void 0,
|
|
16188
16188
|
height: void 0
|
|
16189
16189
|
}), c = gx(ee(function(f) {
|
|
@@ -16206,7 +16206,7 @@ function vx(t) {
|
|
|
16206
16206
|
i.current && i.current.instance.unobserve(f);
|
|
16207
16207
|
};
|
|
16208
16208
|
}, [t.box, r]), t.ref);
|
|
16209
|
-
return
|
|
16209
|
+
return X(function() {
|
|
16210
16210
|
return {
|
|
16211
16211
|
ref: c,
|
|
16212
16212
|
width: a.width,
|
|
@@ -16231,152 +16231,156 @@ const sa = (t) => t ? t.nodeType === qe.SEPARATOR : !1, ua = (t) => t ? t.nodeTy
|
|
|
16231
16231
|
initialItems: JSON.parse(
|
|
16232
16232
|
JSON.stringify(t)
|
|
16233
16233
|
),
|
|
16234
|
-
getKey: (
|
|
16235
|
-
getChildren: (
|
|
16236
|
-
}), [p, v] = re(), d = (
|
|
16237
|
-
const H = h.map((
|
|
16234
|
+
getKey: (F) => F.id,
|
|
16235
|
+
getChildren: (F) => F.children || []
|
|
16236
|
+
}), [p, v] = re(), d = (F = []) => {
|
|
16237
|
+
const H = h.map((I) => I.key);
|
|
16238
16238
|
r(...H);
|
|
16239
|
-
const
|
|
16240
|
-
|
|
16241
|
-
}, g = (
|
|
16242
|
-
var
|
|
16243
|
-
if (
|
|
16244
|
-
const
|
|
16245
|
-
|
|
16239
|
+
const _ = JSON.parse(JSON.stringify(F));
|
|
16240
|
+
_.length > 0 && o(null, 0, ..._), v(void 0);
|
|
16241
|
+
}, g = (F, H) => {
|
|
16242
|
+
var _;
|
|
16243
|
+
if (F) {
|
|
16244
|
+
const I = c(F);
|
|
16245
|
+
I && (o(F, ((_ = I.children) == null ? void 0 : _.length) ?? 0, H), j(F, H));
|
|
16246
16246
|
} else
|
|
16247
16247
|
o(null, h.length, H);
|
|
16248
|
-
}, m = (
|
|
16249
|
-
|
|
16250
|
-
|
|
16248
|
+
}, m = (F) => {
|
|
16249
|
+
var H;
|
|
16250
|
+
return (H = c(F)) == null ? void 0 : H.value;
|
|
16251
|
+
}, b = (F, H) => {
|
|
16252
|
+
const _ = c(F);
|
|
16253
|
+
if (!_) {
|
|
16251
16254
|
console.error("No item found");
|
|
16252
16255
|
return;
|
|
16253
16256
|
}
|
|
16254
|
-
let
|
|
16255
|
-
H.children && (
|
|
16256
|
-
const
|
|
16257
|
-
...
|
|
16257
|
+
let I = _.value.children ?? null;
|
|
16258
|
+
H.children && (I = [...I ?? [], ...H.children]);
|
|
16259
|
+
const A = {
|
|
16260
|
+
..._.value,
|
|
16258
16261
|
...H,
|
|
16259
|
-
children:
|
|
16260
|
-
childrenCount: (
|
|
16262
|
+
children: I,
|
|
16263
|
+
childrenCount: (I == null ? void 0 : I.length) ?? _.value.childrenCount
|
|
16261
16264
|
};
|
|
16262
|
-
i(
|
|
16263
|
-
},
|
|
16264
|
-
const H = c(
|
|
16265
|
-
|
|
16266
|
-
},
|
|
16267
|
-
const
|
|
16268
|
-
if (!
|
|
16265
|
+
i(F, A), _.parentKey && C(_.parentKey, F, H);
|
|
16266
|
+
}, S = (F) => {
|
|
16267
|
+
const H = c(F), _ = H == null ? void 0 : H.parentKey;
|
|
16268
|
+
_ && H && O(_, H.value.id), r(F);
|
|
16269
|
+
}, C = (F, H, _) => {
|
|
16270
|
+
const I = c(F);
|
|
16271
|
+
if (!I)
|
|
16269
16272
|
return;
|
|
16270
|
-
const
|
|
16271
|
-
(
|
|
16273
|
+
const A = I.value.children ?? [], M = A.findIndex(
|
|
16274
|
+
(U) => U.id === H
|
|
16272
16275
|
);
|
|
16273
16276
|
if (M === -1)
|
|
16274
16277
|
return;
|
|
16275
|
-
const
|
|
16276
|
-
...
|
|
16277
|
-
...
|
|
16278
|
+
const W = {
|
|
16279
|
+
...A[M],
|
|
16280
|
+
..._
|
|
16278
16281
|
};
|
|
16279
|
-
|
|
16280
|
-
},
|
|
16282
|
+
A[M] = W;
|
|
16283
|
+
}, $ = async (F) => {
|
|
16281
16284
|
if (!e) {
|
|
16282
16285
|
console.error("No refresh callback provided");
|
|
16283
16286
|
return;
|
|
16284
16287
|
}
|
|
16285
16288
|
try {
|
|
16286
|
-
const H = await e(
|
|
16287
|
-
|
|
16289
|
+
const H = await e(F);
|
|
16290
|
+
b(F, H);
|
|
16288
16291
|
} catch (H) {
|
|
16289
16292
|
console.error("error while refreshing node:", H);
|
|
16290
16293
|
}
|
|
16291
|
-
},
|
|
16292
|
-
o(null, h.length,
|
|
16293
|
-
},
|
|
16294
|
-
const
|
|
16295
|
-
if (!
|
|
16294
|
+
}, P = (F) => {
|
|
16295
|
+
o(null, h.length, F);
|
|
16296
|
+
}, D = (F, H) => {
|
|
16297
|
+
const _ = c(F);
|
|
16298
|
+
if (!_) {
|
|
16296
16299
|
console.error("No item found");
|
|
16297
16300
|
return;
|
|
16298
16301
|
}
|
|
16299
|
-
const
|
|
16300
|
-
...
|
|
16302
|
+
const I = {
|
|
16303
|
+
..._.value,
|
|
16301
16304
|
children: H,
|
|
16302
16305
|
childrenCount: H.length
|
|
16303
16306
|
};
|
|
16304
|
-
i(
|
|
16305
|
-
},
|
|
16307
|
+
i(F, I);
|
|
16308
|
+
}, y = (F) => {
|
|
16306
16309
|
var H;
|
|
16307
|
-
return ((H = c(
|
|
16308
|
-
},
|
|
16309
|
-
const H =
|
|
16310
|
+
return ((H = c(F)) == null ? void 0 : H.parentKey) ?? null;
|
|
16311
|
+
}, k = (F) => {
|
|
16312
|
+
const H = y(F);
|
|
16310
16313
|
if (!H)
|
|
16311
16314
|
return null;
|
|
16312
|
-
const
|
|
16313
|
-
return
|
|
16314
|
-
},
|
|
16315
|
-
a(
|
|
16316
|
-
},
|
|
16317
|
-
l(
|
|
16318
|
-
},
|
|
16319
|
-
s(
|
|
16320
|
-
},
|
|
16321
|
-
u(
|
|
16322
|
-
},
|
|
16323
|
-
const
|
|
16324
|
-
if (!
|
|
16315
|
+
const _ = c(H);
|
|
16316
|
+
return _ ? _.value : null;
|
|
16317
|
+
}, B = (F, H) => {
|
|
16318
|
+
a(F, H);
|
|
16319
|
+
}, N = (F, H) => {
|
|
16320
|
+
l(F, H);
|
|
16321
|
+
}, z = (F, H) => {
|
|
16322
|
+
s(F, H);
|
|
16323
|
+
}, w = (F, H) => {
|
|
16324
|
+
u(F, H);
|
|
16325
|
+
}, O = (F, H) => {
|
|
16326
|
+
const _ = c(F);
|
|
16327
|
+
if (!_)
|
|
16325
16328
|
return;
|
|
16326
|
-
const
|
|
16327
|
-
|
|
16328
|
-
},
|
|
16329
|
-
const
|
|
16330
|
-
if (!
|
|
16329
|
+
const A = (_.value.children ?? []).filter((M) => M.id !== H);
|
|
16330
|
+
_.value.children = A, _.value.childrenCount = A.length;
|
|
16331
|
+
}, j = (F, H) => {
|
|
16332
|
+
const _ = c(F);
|
|
16333
|
+
if (!_)
|
|
16331
16334
|
return;
|
|
16332
|
-
const
|
|
16333
|
-
|
|
16334
|
-
},
|
|
16335
|
-
const H = c(
|
|
16335
|
+
const A = [..._.value.children ?? [], H];
|
|
16336
|
+
_.value.children = A, _.value.childrenCount = A.length;
|
|
16337
|
+
}, G = (F) => {
|
|
16338
|
+
const H = c(F);
|
|
16336
16339
|
H && v(H.value);
|
|
16337
|
-
},
|
|
16340
|
+
}, Z = (F, H, _, I) => {
|
|
16338
16341
|
var M;
|
|
16339
|
-
const
|
|
16340
|
-
f(
|
|
16342
|
+
const A = (M = c(F)) == null ? void 0 : M.value;
|
|
16343
|
+
f(F, H, _), H && A && j(H, A), I && O(I, F);
|
|
16341
16344
|
};
|
|
16342
16345
|
return {
|
|
16343
16346
|
nodes: h,
|
|
16344
16347
|
addChild: g,
|
|
16345
|
-
updateNode:
|
|
16346
|
-
deleteNode:
|
|
16347
|
-
addRootNode:
|
|
16348
|
+
updateNode: b,
|
|
16349
|
+
deleteNode: S,
|
|
16350
|
+
addRootNode: P,
|
|
16348
16351
|
selectedNode: p,
|
|
16349
16352
|
setSelectedNode: v,
|
|
16350
|
-
refreshNode:
|
|
16351
|
-
setChildren:
|
|
16352
|
-
insertBeforeNode:
|
|
16353
|
-
insertAfterNode:
|
|
16354
|
-
handleMove: (
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16353
|
+
refreshNode: $,
|
|
16354
|
+
setChildren: D,
|
|
16355
|
+
insertBeforeNode: B,
|
|
16356
|
+
insertAfterNode: N,
|
|
16357
|
+
handleMove: (F) => {
|
|
16358
|
+
Z(
|
|
16359
|
+
F.sourceId,
|
|
16360
|
+
F.newParentId,
|
|
16361
|
+
F.index,
|
|
16362
|
+
F.oldParentId
|
|
16360
16363
|
);
|
|
16361
16364
|
},
|
|
16362
|
-
prependToNode:
|
|
16363
|
-
moveNode:
|
|
16364
|
-
appendToNode:
|
|
16365
|
+
prependToNode: w,
|
|
16366
|
+
moveNode: Z,
|
|
16367
|
+
appendToNode: z,
|
|
16365
16368
|
move: f,
|
|
16366
16369
|
resetTree: d,
|
|
16367
|
-
handleLoadChildren: async (
|
|
16370
|
+
handleLoadChildren: async (F) => {
|
|
16368
16371
|
if (!n)
|
|
16369
16372
|
return [];
|
|
16370
|
-
const H = await n(
|
|
16371
|
-
return
|
|
16373
|
+
const H = await n(F);
|
|
16374
|
+
return b(F, {
|
|
16372
16375
|
children: H,
|
|
16373
16376
|
hasLoadedChildren: !0,
|
|
16374
16377
|
childrenCount: H.length
|
|
16375
16378
|
}), H;
|
|
16376
16379
|
},
|
|
16377
|
-
selectNodeById:
|
|
16378
|
-
getParent:
|
|
16379
|
-
|
|
16380
|
+
selectNodeById: G,
|
|
16381
|
+
getParent: k,
|
|
16382
|
+
getNode: m,
|
|
16383
|
+
getParentId: y
|
|
16380
16384
|
};
|
|
16381
16385
|
}, oh = ce(null), Zx = ({
|
|
16382
16386
|
children: t,
|
|
@@ -16385,7 +16389,7 @@ const sa = (t) => t ? t.nodeType === qe.SEPARATOR : !1, ua = (t) => t ? t.nodeTy
|
|
|
16385
16389
|
onLoadChildren: r,
|
|
16386
16390
|
initialTreeData: i
|
|
16387
16391
|
}) => {
|
|
16388
|
-
const o =
|
|
16392
|
+
const o = V(null), [a, l] = re(null), [s, u] = re(
|
|
16389
16393
|
n ?? null
|
|
16390
16394
|
), c = mx(
|
|
16391
16395
|
i ?? [],
|
|
@@ -16421,24 +16425,24 @@ const sa = (t) => t ? t.nodeType === qe.SEPARATOR : !1, ua = (t) => t ? t.nodeTy
|
|
|
16421
16425
|
afterMove: a
|
|
16422
16426
|
}) => {
|
|
16423
16427
|
const { ref: l, width: s, height: u } = vx(), c = ah(), f = (c == null ? void 0 : c.treeData.nodes) ?? [], h = (v) => {
|
|
16424
|
-
var
|
|
16425
|
-
const d = JSON.parse(JSON.stringify(f)), g = v.dragNodes[0], m = v.parentId ? ((
|
|
16426
|
-
if ((
|
|
16428
|
+
var j, G, Z, R;
|
|
16429
|
+
const d = JSON.parse(JSON.stringify(f)), g = v.dragNodes[0], m = v.parentId ? ((j = v.parentNode) == null ? void 0 : j.data.children) ?? [] : d, b = v.dragNodes[0].data.value.id, S = v.dragNodes[0].data, C = (G = v.parentNode) == null ? void 0 : G.data;
|
|
16430
|
+
if ((C == null ? void 0 : C.value.nodeType) === qe.TITLE || (C == null ? void 0 : C.value.nodeType) === qe.SEPARATOR)
|
|
16427
16431
|
return null;
|
|
16428
16432
|
const $ = S.parentKey ?? n, P = v.parentId ?? n;
|
|
16429
|
-
let
|
|
16430
|
-
const B = ((R = (Z = g.parent) == null ? void 0 : Z.children) == null ? void 0 : R.findIndex((
|
|
16433
|
+
let D = v.index + 0, y = null, k = P;
|
|
16434
|
+
const B = ((R = (Z = g.parent) == null ? void 0 : Z.children) == null ? void 0 : R.findIndex((J) => J.data.value.id === b)) ?? 0;
|
|
16431
16435
|
if ($ === P) {
|
|
16432
|
-
if (B ===
|
|
16436
|
+
if (B === D)
|
|
16433
16437
|
return null;
|
|
16434
|
-
|
|
16438
|
+
D = D < B ? D : D - 1;
|
|
16435
16439
|
}
|
|
16436
|
-
const N = v.index - 1,
|
|
16437
|
-
return v.index === 0 ? (
|
|
16438
|
-
targetModeId:
|
|
16440
|
+
const N = v.index - 1, z = m[N], w = v.index, O = m[w];
|
|
16441
|
+
return v.index === 0 ? (k = v.parentId ?? n, y = pn.FIRST_CHILD) : !C && v.index === 1 && !Mr(z.value) ? (k = n, D = 1, y = pn.FIRST_CHILD) : v.index === m.length ? (k = k ?? n, y = pn.LAST_CHILD) : z && Mr(z.value) ? (k = z.value.id, y = pn.RIGHT) : O && Mr(O.value) && (y = pn.LEFT, k = O.value.id), y && k ? {
|
|
16442
|
+
targetModeId: k,
|
|
16439
16443
|
mode: y,
|
|
16440
16444
|
oldParentId: $,
|
|
16441
|
-
index:
|
|
16445
|
+
index: D,
|
|
16442
16446
|
newParentId: v.parentId,
|
|
16443
16447
|
sourceId: b
|
|
16444
16448
|
} : null;
|
|
@@ -16460,14 +16464,14 @@ const sa = (t) => t ? t.nodeType === qe.SEPARATOR : !1, ua = (t) => t ? t.nodeTy
|
|
|
16460
16464
|
rowHeight: 35,
|
|
16461
16465
|
disableDrag: (v) => o ? !o(v) : !1,
|
|
16462
16466
|
disableDrop: ({ parentNode: v, dragNodes: d, index: g }) => {
|
|
16463
|
-
var
|
|
16467
|
+
var C, $;
|
|
16464
16468
|
if (i && !i({ parentNode: v, dragNodes: d, index: g }))
|
|
16465
16469
|
return v.id !== "__REACT_ARBORIST_INTERNAL_ROOT__" && (v.data.value.canDrop = !1), !0;
|
|
16466
|
-
if (((
|
|
16470
|
+
if (((C = v.data.value) == null ? void 0 : C.nodeType) === qe.TITLE || (($ = v.data.value) == null ? void 0 : $.nodeType) === qe.SEPARATOR)
|
|
16467
16471
|
return !0;
|
|
16468
16472
|
if (v.id === "__REACT_ARBORIST_INTERNAL_ROOT__") {
|
|
16469
|
-
const P = f[g - 1],
|
|
16470
|
-
return !!(g === 0 && (B ||
|
|
16473
|
+
const P = f[g - 1], D = f[g], y = f[g + 1], k = sa(P == null ? void 0 : P.value), B = sa(D == null ? void 0 : D.value), N = ua(P == null ? void 0 : P.value), z = ua(D == null ? void 0 : D.value), w = Mr(y == null ? void 0 : y.value);
|
|
16474
|
+
return !!(g === 0 && (B || z) || k && z && w || N && B && w);
|
|
16471
16475
|
}
|
|
16472
16476
|
const m = v == null ? void 0 : v.isOpen, b = (v == null ? void 0 : v.data.value.childrenCount) && v.data.value.childrenCount > 0 || (v == null ? void 0 : v.data.children) && v.data.children.length > 0;
|
|
16473
16477
|
if (!b)
|
|
@@ -16526,7 +16530,7 @@ function wx(t) {
|
|
|
16526
16530
|
}
|
|
16527
16531
|
const lh = yx ? xu : Q;
|
|
16528
16532
|
function sh(t) {
|
|
16529
|
-
const e =
|
|
16533
|
+
const e = V(t);
|
|
16530
16534
|
return lh(() => {
|
|
16531
16535
|
e.current = t;
|
|
16532
16536
|
}), ee(function() {
|
|
@@ -16537,13 +16541,13 @@ function sh(t) {
|
|
|
16537
16541
|
}
|
|
16538
16542
|
function vu(t, e) {
|
|
16539
16543
|
e === void 0 && (e = [t]);
|
|
16540
|
-
const n =
|
|
16544
|
+
const n = V(t);
|
|
16541
16545
|
return lh(() => {
|
|
16542
16546
|
n.current !== t && (n.current = t);
|
|
16543
16547
|
}, e), n;
|
|
16544
16548
|
}
|
|
16545
16549
|
function Ex(t) {
|
|
16546
|
-
const e = sh(t), n =
|
|
16550
|
+
const e = sh(t), n = V(null), r = ee(
|
|
16547
16551
|
(i) => {
|
|
16548
16552
|
i !== n.current && (e == null || e(i, n.current)), n.current = i;
|
|
16549
16553
|
},
|
|
@@ -16554,7 +16558,7 @@ function Ex(t) {
|
|
|
16554
16558
|
}
|
|
16555
16559
|
let Co = {};
|
|
16556
16560
|
function $x(t, e) {
|
|
16557
|
-
return
|
|
16561
|
+
return X(() => {
|
|
16558
16562
|
const n = Co[t] == null ? 0 : Co[t] + 1;
|
|
16559
16563
|
return Co[t] = n, t + "-" + n;
|
|
16560
16564
|
}, [t, e]);
|
|
@@ -16682,7 +16686,7 @@ function Px(t) {
|
|
|
16682
16686
|
callback: e,
|
|
16683
16687
|
disabled: n
|
|
16684
16688
|
} = t;
|
|
16685
|
-
const r = sh(e), i =
|
|
16689
|
+
const r = sh(e), i = X(
|
|
16686
16690
|
() => {
|
|
16687
16691
|
if (n || typeof window > "u" || typeof window.ResizeObserver > "u")
|
|
16688
16692
|
return;
|
|
@@ -16732,9 +16736,9 @@ function Nx(t) {
|
|
|
16732
16736
|
dispatch: l,
|
|
16733
16737
|
over: s,
|
|
16734
16738
|
measureDroppableContainers: u
|
|
16735
|
-
} = le(Ix), c =
|
|
16739
|
+
} = le(Ix), c = V({
|
|
16736
16740
|
disabled: n
|
|
16737
|
-
}), f =
|
|
16741
|
+
}), f = V(!1), h = V(null), p = V(null), {
|
|
16738
16742
|
disabled: v,
|
|
16739
16743
|
updateMeasurementsFor: d,
|
|
16740
16744
|
timeout: g
|
|
@@ -16756,9 +16760,9 @@ function Nx(t) {
|
|
|
16756
16760
|
), S = Px({
|
|
16757
16761
|
callback: b,
|
|
16758
16762
|
disabled: v || !a
|
|
16759
|
-
}),
|
|
16760
|
-
S && (
|
|
16761
|
-
}, [S]), [$, P] = Ex(
|
|
16763
|
+
}), C = ee((y, k) => {
|
|
16764
|
+
S && (k && (S.unobserve(k), f.current = !1), y && S.observe(y));
|
|
16765
|
+
}, [S]), [$, P] = Ex(C), D = vu(e);
|
|
16762
16766
|
return Q(() => {
|
|
16763
16767
|
!S || !$.current || (S.disconnect(), f.current = !1, S.observe($.current));
|
|
16764
16768
|
}, [$, S]), Q(
|
|
@@ -16770,7 +16774,7 @@ function Nx(t) {
|
|
|
16770
16774
|
disabled: n,
|
|
16771
16775
|
node: $,
|
|
16772
16776
|
rect: h,
|
|
16773
|
-
data:
|
|
16777
|
+
data: D
|
|
16774
16778
|
}
|
|
16775
16779
|
}), () => l({
|
|
16776
16780
|
type: Xn.UnregisterDroppable,
|
|
@@ -16812,8 +16816,8 @@ const Rx = (t) => {
|
|
|
16812
16816
|
style: i,
|
|
16813
16817
|
forceLoading: o
|
|
16814
16818
|
}) => {
|
|
16815
|
-
var S,
|
|
16816
|
-
const a = ah(), l =
|
|
16819
|
+
var S, C;
|
|
16820
|
+
const a = ah(), l = V(null), [s, u] = re(!1), [c, f] = re(!1), h = o ?? s, p = n.willReceiveDrop || c, v = n.data.value.childrenCount !== void 0 && n.data.value.childrenCount > 0 || (((S = n.data.children) == null ? void 0 : S.length) ?? 0) > 0, d = ((C = n.children) == null ? void 0 : C.length) ?? !1, g = n.isLeaf || !v, m = ee(async () => {
|
|
16817
16821
|
if (!g) {
|
|
16818
16822
|
if (d || n.data.value.hasLoadedChildren) {
|
|
16819
16823
|
n.toggle();
|