react-composable-treeview 1.0.12 → 1.0.14
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/contexts/treeViewContext.d.ts +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +256 -257
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import We, { createContext as Ye, useRef as
|
|
1
|
+
import We, { createContext as Ye, useRef as M, useState as Ue, useCallback as Ge, forwardRef as z, useContext as V } from "react";
|
|
2
2
|
var de = { exports: {} }, q = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -14,18 +14,18 @@ function br() {
|
|
|
14
14
|
if (Ne)
|
|
15
15
|
return q;
|
|
16
16
|
Ne = 1;
|
|
17
|
-
var t = We, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty,
|
|
18
|
-
function
|
|
19
|
-
var
|
|
20
|
-
y !== void 0 && (
|
|
21
|
-
for (
|
|
22
|
-
a.call(h,
|
|
23
|
-
if (
|
|
24
|
-
for (
|
|
25
|
-
|
|
26
|
-
return { $$typeof: o, type:
|
|
17
|
+
var t = We, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, p = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function s(l, h, y) {
|
|
19
|
+
var g, T = {}, x = null, S = null;
|
|
20
|
+
y !== void 0 && (x = "" + y), h.key !== void 0 && (x = "" + h.key), h.ref !== void 0 && (S = h.ref);
|
|
21
|
+
for (g in h)
|
|
22
|
+
a.call(h, g) && !v.hasOwnProperty(g) && (T[g] = h[g]);
|
|
23
|
+
if (l && l.defaultProps)
|
|
24
|
+
for (g in h = l.defaultProps, h)
|
|
25
|
+
T[g] === void 0 && (T[g] = h[g]);
|
|
26
|
+
return { $$typeof: o, type: l, key: x, ref: S, props: T, _owner: p.current };
|
|
27
27
|
}
|
|
28
|
-
return q.Fragment = i, q.jsx =
|
|
28
|
+
return q.Fragment = i, q.jsx = s, q.jsxs = s, q;
|
|
29
29
|
}
|
|
30
30
|
var K = {};
|
|
31
31
|
/**
|
|
@@ -40,35 +40,35 @@ var K = {};
|
|
|
40
40
|
var $e;
|
|
41
41
|
function Rr() {
|
|
42
42
|
return $e || ($e = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var t = We, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"),
|
|
43
|
+
var t = We, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), F = Symbol.iterator, b = "@@iterator";
|
|
44
44
|
function L(e) {
|
|
45
45
|
if (e === null || typeof e != "object")
|
|
46
46
|
return null;
|
|
47
|
-
var r =
|
|
47
|
+
var r = F && e[F] || e[b];
|
|
48
48
|
return typeof r == "function" ? r : null;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var O = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function R(e) {
|
|
52
52
|
{
|
|
53
53
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), u = 1; u < r; u++)
|
|
54
54
|
n[u - 1] = arguments[u];
|
|
55
|
-
|
|
55
|
+
w("error", e, n);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function w(e, r, n) {
|
|
59
59
|
{
|
|
60
|
-
var u =
|
|
61
|
-
|
|
62
|
-
var
|
|
63
|
-
return String(
|
|
60
|
+
var u = O.ReactDebugCurrentFrame, d = u.getStackAddendum();
|
|
61
|
+
d !== "" && (r += "%s", n = n.concat([d]));
|
|
62
|
+
var _ = n.map(function(f) {
|
|
63
|
+
return String(f);
|
|
64
64
|
});
|
|
65
|
-
|
|
65
|
+
_.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, _);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var P = !1, j = !1, N = !1, X = !1, Z = !1, pe;
|
|
69
69
|
pe = Symbol.for("react.module.reference");
|
|
70
70
|
function qe(e) {
|
|
71
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e ===
|
|
71
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === v || Z || e === p || e === y || e === g || X || e === S || P || j || N || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === T || e.$$typeof === s || e.$$typeof === l || e.$$typeof === h || // This needs to include all possible module reference object
|
|
72
72
|
// types supported by any Flight configuration anywhere since
|
|
73
73
|
// we don't know which Flight build this will end up being used
|
|
74
74
|
// with.
|
|
@@ -78,16 +78,16 @@ function Rr() {
|
|
|
78
78
|
var u = e.displayName;
|
|
79
79
|
if (u)
|
|
80
80
|
return u;
|
|
81
|
-
var
|
|
82
|
-
return
|
|
81
|
+
var d = r.displayName || r.name || "";
|
|
82
|
+
return d !== "" ? n + "(" + d + ")" : n;
|
|
83
83
|
}
|
|
84
84
|
function he(e) {
|
|
85
85
|
return e.displayName || "Context";
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function D(e) {
|
|
88
88
|
if (e == null)
|
|
89
89
|
return null;
|
|
90
|
-
if (typeof e.tag == "number" &&
|
|
90
|
+
if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
91
91
|
return e.displayName || e.name || null;
|
|
92
92
|
if (typeof e == "string")
|
|
93
93
|
return e;
|
|
@@ -96,32 +96,32 @@ function Rr() {
|
|
|
96
96
|
return "Fragment";
|
|
97
97
|
case i:
|
|
98
98
|
return "Portal";
|
|
99
|
-
case
|
|
99
|
+
case v:
|
|
100
100
|
return "Profiler";
|
|
101
|
-
case
|
|
101
|
+
case p:
|
|
102
102
|
return "StrictMode";
|
|
103
103
|
case y:
|
|
104
104
|
return "Suspense";
|
|
105
|
-
case
|
|
105
|
+
case g:
|
|
106
106
|
return "SuspenseList";
|
|
107
107
|
}
|
|
108
108
|
if (typeof e == "object")
|
|
109
109
|
switch (e.$$typeof) {
|
|
110
|
-
case
|
|
110
|
+
case l:
|
|
111
111
|
var r = e;
|
|
112
112
|
return he(r) + ".Consumer";
|
|
113
|
-
case
|
|
113
|
+
case s:
|
|
114
114
|
var n = e;
|
|
115
115
|
return he(n._context) + ".Provider";
|
|
116
116
|
case h:
|
|
117
117
|
return Ke(e, e.render, "ForwardRef");
|
|
118
|
-
case
|
|
118
|
+
case T:
|
|
119
119
|
var u = e.displayName || null;
|
|
120
|
-
return u !== null ? u :
|
|
121
|
-
case
|
|
122
|
-
var
|
|
120
|
+
return u !== null ? u : D(e.type) || "Memo";
|
|
121
|
+
case x: {
|
|
122
|
+
var d = e, _ = d._payload, f = d._init;
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return D(f(_));
|
|
125
125
|
} catch {
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
@@ -133,7 +133,7 @@ function Rr() {
|
|
|
133
133
|
function we() {
|
|
134
134
|
}
|
|
135
135
|
we.__reactDisabledLog = !0;
|
|
136
|
-
function
|
|
136
|
+
function Me() {
|
|
137
137
|
{
|
|
138
138
|
if (G === 0) {
|
|
139
139
|
_e = console.log, ge = console.info, be = console.warn, Re = console.error, Ee = console.group, me = console.groupCollapsed, ye = console.groupEnd;
|
|
@@ -156,7 +156,7 @@ function Rr() {
|
|
|
156
156
|
G++;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Je() {
|
|
160
160
|
{
|
|
161
161
|
if (G--, G === 0) {
|
|
162
162
|
var e = {
|
|
@@ -188,98 +188,98 @@ function Rr() {
|
|
|
188
188
|
})
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
G < 0 &&
|
|
191
|
+
G < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
var oe =
|
|
195
|
-
function
|
|
194
|
+
var oe = O.ReactCurrentDispatcher, ae;
|
|
195
|
+
function Q(e, r, n) {
|
|
196
196
|
{
|
|
197
197
|
if (ae === void 0)
|
|
198
198
|
try {
|
|
199
199
|
throw Error();
|
|
200
|
-
} catch (
|
|
201
|
-
var u =
|
|
200
|
+
} catch (d) {
|
|
201
|
+
var u = d.stack.trim().match(/\n( *(at )?)/);
|
|
202
202
|
ae = u && u[1] || "";
|
|
203
203
|
}
|
|
204
204
|
return `
|
|
205
205
|
` + ae + e;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
var ie = !1,
|
|
208
|
+
var ie = !1, ee;
|
|
209
209
|
{
|
|
210
210
|
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
-
|
|
211
|
+
ee = new ze();
|
|
212
212
|
}
|
|
213
213
|
function Te(e, r) {
|
|
214
214
|
if (!e || ie)
|
|
215
215
|
return "";
|
|
216
216
|
{
|
|
217
|
-
var n =
|
|
217
|
+
var n = ee.get(e);
|
|
218
218
|
if (n !== void 0)
|
|
219
219
|
return n;
|
|
220
220
|
}
|
|
221
221
|
var u;
|
|
222
222
|
ie = !0;
|
|
223
|
-
var
|
|
223
|
+
var d = Error.prepareStackTrace;
|
|
224
224
|
Error.prepareStackTrace = void 0;
|
|
225
|
-
var
|
|
226
|
-
|
|
225
|
+
var _;
|
|
226
|
+
_ = oe.current, oe.current = null, Me();
|
|
227
227
|
try {
|
|
228
228
|
if (r) {
|
|
229
|
-
var
|
|
229
|
+
var f = function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
};
|
|
232
|
-
if (Object.defineProperty(
|
|
232
|
+
if (Object.defineProperty(f.prototype, "props", {
|
|
233
233
|
set: function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
}
|
|
236
236
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
237
|
try {
|
|
238
|
-
Reflect.construct(
|
|
239
|
-
} catch (
|
|
240
|
-
u =
|
|
238
|
+
Reflect.construct(f, []);
|
|
239
|
+
} catch (A) {
|
|
240
|
+
u = A;
|
|
241
241
|
}
|
|
242
|
-
Reflect.construct(e, [],
|
|
242
|
+
Reflect.construct(e, [], f);
|
|
243
243
|
} else {
|
|
244
244
|
try {
|
|
245
|
-
|
|
246
|
-
} catch (
|
|
247
|
-
u =
|
|
245
|
+
f.call();
|
|
246
|
+
} catch (A) {
|
|
247
|
+
u = A;
|
|
248
248
|
}
|
|
249
|
-
e.call(
|
|
249
|
+
e.call(f.prototype);
|
|
250
250
|
}
|
|
251
251
|
} else {
|
|
252
252
|
try {
|
|
253
253
|
throw Error();
|
|
254
|
-
} catch (
|
|
255
|
-
u =
|
|
254
|
+
} catch (A) {
|
|
255
|
+
u = A;
|
|
256
256
|
}
|
|
257
257
|
e();
|
|
258
258
|
}
|
|
259
|
-
} catch (
|
|
260
|
-
if (
|
|
261
|
-
for (var
|
|
259
|
+
} catch (A) {
|
|
260
|
+
if (A && u && typeof A.stack == "string") {
|
|
261
|
+
for (var c = A.stack.split(`
|
|
262
262
|
`), C = u.stack.split(`
|
|
263
|
-
`),
|
|
263
|
+
`), E = c.length - 1, m = C.length - 1; E >= 1 && m >= 0 && c[E] !== C[m]; )
|
|
264
264
|
m--;
|
|
265
|
-
for (;
|
|
266
|
-
if (
|
|
267
|
-
if (
|
|
265
|
+
for (; E >= 1 && m >= 0; E--, m--)
|
|
266
|
+
if (c[E] !== C[m]) {
|
|
267
|
+
if (E !== 1 || m !== 1)
|
|
268
268
|
do
|
|
269
|
-
if (
|
|
270
|
-
var
|
|
271
|
-
` +
|
|
272
|
-
return e.displayName &&
|
|
269
|
+
if (E--, m--, m < 0 || c[E] !== C[m]) {
|
|
270
|
+
var k = `
|
|
271
|
+
` + c[E].replace(" at new ", " at ");
|
|
272
|
+
return e.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", e.displayName)), typeof e == "function" && ee.set(e, k), k;
|
|
273
273
|
}
|
|
274
|
-
while (
|
|
274
|
+
while (E >= 1 && m >= 0);
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
} finally {
|
|
279
|
-
ie = !1, oe.current =
|
|
279
|
+
ie = !1, oe.current = _, Je(), Error.prepareStackTrace = d;
|
|
280
280
|
}
|
|
281
|
-
var Y = e ? e.displayName || e.name : "", Le = Y ?
|
|
282
|
-
return typeof e == "function" &&
|
|
281
|
+
var Y = e ? e.displayName || e.name : "", Le = Y ? Q(Y) : "";
|
|
282
|
+
return typeof e == "function" && ee.set(e, Le), Le;
|
|
283
283
|
}
|
|
284
284
|
function He(e, r, n) {
|
|
285
285
|
return Te(e, !1);
|
|
@@ -288,59 +288,59 @@ function Rr() {
|
|
|
288
288
|
var r = e.prototype;
|
|
289
289
|
return !!(r && r.isReactComponent);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function re(e, r, n) {
|
|
292
292
|
if (e == null)
|
|
293
293
|
return "";
|
|
294
294
|
if (typeof e == "function")
|
|
295
295
|
return Te(e, Xe(e));
|
|
296
296
|
if (typeof e == "string")
|
|
297
|
-
return
|
|
297
|
+
return Q(e);
|
|
298
298
|
switch (e) {
|
|
299
299
|
case y:
|
|
300
|
-
return
|
|
301
|
-
case
|
|
302
|
-
return
|
|
300
|
+
return Q("Suspense");
|
|
301
|
+
case g:
|
|
302
|
+
return Q("SuspenseList");
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "object")
|
|
305
305
|
switch (e.$$typeof) {
|
|
306
306
|
case h:
|
|
307
307
|
return He(e.render);
|
|
308
|
-
case
|
|
309
|
-
return
|
|
310
|
-
case
|
|
311
|
-
var u = e,
|
|
308
|
+
case T:
|
|
309
|
+
return re(e.type, r, n);
|
|
310
|
+
case x: {
|
|
311
|
+
var u = e, d = u._payload, _ = u._init;
|
|
312
312
|
try {
|
|
313
|
-
return
|
|
313
|
+
return re(_(d), r, n);
|
|
314
314
|
} catch {
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
function
|
|
320
|
+
var te = Object.prototype.hasOwnProperty, xe = {}, Ce = O.ReactDebugCurrentFrame;
|
|
321
|
+
function ne(e) {
|
|
322
322
|
if (e) {
|
|
323
|
-
var r = e._owner, n =
|
|
323
|
+
var r = e._owner, n = re(e.type, e._source, r ? r.type : null);
|
|
324
324
|
Ce.setExtraStackFrame(n);
|
|
325
325
|
} else
|
|
326
326
|
Ce.setExtraStackFrame(null);
|
|
327
327
|
}
|
|
328
|
-
function Ze(e, r, n, u,
|
|
328
|
+
function Ze(e, r, n, u, d) {
|
|
329
329
|
{
|
|
330
|
-
var
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
var
|
|
330
|
+
var _ = Function.call.bind(te);
|
|
331
|
+
for (var f in e)
|
|
332
|
+
if (_(e, f)) {
|
|
333
|
+
var c = void 0;
|
|
334
334
|
try {
|
|
335
|
-
if (typeof e[
|
|
336
|
-
var C = Error((u || "React class") + ": " + n + " type `" +
|
|
335
|
+
if (typeof e[f] != "function") {
|
|
336
|
+
var C = Error((u || "React class") + ": " + n + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
337
|
throw C.name = "Invariant Violation", C;
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
} catch (
|
|
341
|
-
|
|
339
|
+
c = e[f](r, f, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch (E) {
|
|
341
|
+
c = E;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
c && !(c instanceof Error) && (ne(d), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", n, f, typeof c), ne(null)), c instanceof Error && !(c.message in xe) && (xe[c.message] = !0, ne(d), R("Failed %s type: %s", n, c.message), ne(null));
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
}
|
|
@@ -366,9 +366,9 @@ function Rr() {
|
|
|
366
366
|
}
|
|
367
367
|
function Pe(e) {
|
|
368
368
|
if (rr(e))
|
|
369
|
-
return
|
|
369
|
+
return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), Se(e);
|
|
370
370
|
}
|
|
371
|
-
var B =
|
|
371
|
+
var B = O.ReactCurrentOwner, tr = {
|
|
372
372
|
key: !0,
|
|
373
373
|
ref: !0,
|
|
374
374
|
__self: !0,
|
|
@@ -376,7 +376,7 @@ function Rr() {
|
|
|
376
376
|
}, Oe, ke, ce;
|
|
377
377
|
ce = {};
|
|
378
378
|
function nr(e) {
|
|
379
|
-
if (
|
|
379
|
+
if (te.call(e, "ref")) {
|
|
380
380
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
381
381
|
if (r && r.isReactWarning)
|
|
382
382
|
return !1;
|
|
@@ -384,7 +384,7 @@ function Rr() {
|
|
|
384
384
|
return e.ref !== void 0;
|
|
385
385
|
}
|
|
386
386
|
function or(e) {
|
|
387
|
-
if (
|
|
387
|
+
if (te.call(e, "key")) {
|
|
388
388
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
389
389
|
if (r && r.isReactWarning)
|
|
390
390
|
return !1;
|
|
@@ -393,14 +393,14 @@ function Rr() {
|
|
|
393
393
|
}
|
|
394
394
|
function ar(e, r) {
|
|
395
395
|
if (typeof e.ref == "string" && B.current && r && B.current.stateNode !== r) {
|
|
396
|
-
var n =
|
|
397
|
-
ce[n] || (
|
|
396
|
+
var n = D(B.current.type);
|
|
397
|
+
ce[n] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', D(B.current.type), e.ref), ce[n] = !0);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
function ir(e, r) {
|
|
401
401
|
{
|
|
402
402
|
var n = function() {
|
|
403
|
-
Oe || (Oe = !0,
|
|
403
|
+
Oe || (Oe = !0, R("%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://reactjs.org/link/special-props)", r));
|
|
404
404
|
};
|
|
405
405
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
406
|
get: n,
|
|
@@ -411,7 +411,7 @@ function Rr() {
|
|
|
411
411
|
function ur(e, r) {
|
|
412
412
|
{
|
|
413
413
|
var n = function() {
|
|
414
|
-
ke || (ke = !0,
|
|
414
|
+
ke || (ke = !0, R("%s: `ref` 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://reactjs.org/link/special-props)", r));
|
|
415
415
|
};
|
|
416
416
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
417
|
get: n,
|
|
@@ -419,57 +419,57 @@ function Rr() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var cr = function(e, r, n, u,
|
|
423
|
-
var
|
|
422
|
+
var cr = function(e, r, n, u, d, _, f) {
|
|
423
|
+
var c = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: o,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: r,
|
|
429
429
|
ref: n,
|
|
430
|
-
props:
|
|
430
|
+
props: f,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: _
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(c, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
443
|
value: u
|
|
444
|
-
}), Object.defineProperty(
|
|
444
|
+
}), Object.defineProperty(c, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: d
|
|
449
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
450
450
|
};
|
|
451
|
-
function sr(e, r, n, u,
|
|
451
|
+
function sr(e, r, n, u, d) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
n !== void 0 && (Pe(n),
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var _, f = {}, c = null, C = null;
|
|
454
|
+
n !== void 0 && (Pe(n), c = "" + n), or(r) && (Pe(r.key), c = "" + r.key), nr(r) && (C = r.ref, ar(r, d));
|
|
455
|
+
for (_ in r)
|
|
456
|
+
te.call(r, _) && !tr.hasOwnProperty(_) && (f[_] = r[_]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
|
|
458
|
+
var E = e.defaultProps;
|
|
459
|
+
for (_ in E)
|
|
460
|
+
f[_] === void 0 && (f[_] = E[_]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
462
|
+
if (c || C) {
|
|
463
463
|
var m = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
|
|
464
|
+
c && ir(f, m), C && ur(f, m);
|
|
465
465
|
}
|
|
466
|
-
return cr(e,
|
|
466
|
+
return cr(e, c, C, d, u, B.current, f);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var se =
|
|
469
|
+
var se = O.ReactCurrentOwner, je = O.ReactDebugCurrentFrame;
|
|
470
470
|
function W(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var r = e._owner, n =
|
|
472
|
+
var r = e._owner, n = re(e.type, e._source, r ? r.type : null);
|
|
473
473
|
je.setExtraStackFrame(n);
|
|
474
474
|
} else
|
|
475
475
|
je.setExtraStackFrame(null);
|
|
@@ -482,7 +482,7 @@ function Rr() {
|
|
|
482
482
|
function De() {
|
|
483
483
|
{
|
|
484
484
|
if (se.current) {
|
|
485
|
-
var e =
|
|
485
|
+
var e = D(se.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -525,7 +525,7 @@ Check the top-level render call using <` + n + ">.");
|
|
|
525
525
|
return;
|
|
526
526
|
Ae[n] = !0;
|
|
527
527
|
var u = "";
|
|
528
|
-
e && e._owner && e._owner !== se.current && (u = " It was passed a child from " +
|
|
528
|
+
e && e._owner && e._owner !== se.current && (u = " It was passed a child from " + D(e._owner.type) + "."), W(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, u), W(null);
|
|
529
529
|
}
|
|
530
530
|
}
|
|
531
531
|
function Ie(e, r) {
|
|
@@ -540,10 +540,10 @@ Check the top-level render call using <` + n + ">.");
|
|
|
540
540
|
else if (le(e))
|
|
541
541
|
e._store && (e._store.validated = !0);
|
|
542
542
|
else if (e) {
|
|
543
|
-
var
|
|
544
|
-
if (typeof
|
|
545
|
-
for (var
|
|
546
|
-
le(
|
|
543
|
+
var d = L(e);
|
|
544
|
+
if (typeof d == "function" && d !== e.entries)
|
|
545
|
+
for (var _ = d.call(e), f; !(f = _.next()).done; )
|
|
546
|
+
le(f.value) && Fe(f.value, r);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
}
|
|
@@ -557,19 +557,19 @@ Check the top-level render call using <` + n + ">.");
|
|
|
557
557
|
n = r.propTypes;
|
|
558
558
|
else if (typeof r == "object" && (r.$$typeof === h || // Note: Memo only checks outer props here.
|
|
559
559
|
// Inner props are checked in the reconciler.
|
|
560
|
-
r.$$typeof ===
|
|
560
|
+
r.$$typeof === T))
|
|
561
561
|
n = r.propTypes;
|
|
562
562
|
else
|
|
563
563
|
return;
|
|
564
564
|
if (n) {
|
|
565
|
-
var u =
|
|
565
|
+
var u = D(r);
|
|
566
566
|
Ze(n, e.props, "prop", u, e);
|
|
567
567
|
} else if (r.PropTypes !== void 0 && !fe) {
|
|
568
568
|
fe = !0;
|
|
569
|
-
var
|
|
570
|
-
|
|
569
|
+
var d = D(r);
|
|
570
|
+
R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "Unknown");
|
|
571
571
|
}
|
|
572
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
572
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function vr(e) {
|
|
@@ -577,39 +577,39 @@ Check the top-level render call using <` + n + ">.");
|
|
|
577
577
|
for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
|
|
578
578
|
var u = r[n];
|
|
579
579
|
if (u !== "children" && u !== "key") {
|
|
580
|
-
W(e),
|
|
580
|
+
W(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), W(null);
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
e.ref !== null && (W(e),
|
|
584
|
+
e.ref !== null && (W(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), W(null));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
|
-
function Ve(e, r, n, u,
|
|
587
|
+
function Ve(e, r, n, u, d, _) {
|
|
588
588
|
{
|
|
589
|
-
var
|
|
590
|
-
if (!
|
|
591
|
-
var
|
|
592
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
593
|
-
var C = fr(
|
|
594
|
-
C ?
|
|
595
|
-
var
|
|
596
|
-
e === null ?
|
|
589
|
+
var f = qe(e);
|
|
590
|
+
if (!f) {
|
|
591
|
+
var c = "";
|
|
592
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (c += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
593
|
+
var C = fr(d);
|
|
594
|
+
C ? c += C : c += De();
|
|
595
|
+
var E;
|
|
596
|
+
e === null ? E = "null" : ue(e) ? E = "array" : e !== void 0 && e.$$typeof === o ? (E = "<" + (D(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, c);
|
|
597
597
|
}
|
|
598
|
-
var m = sr(e, r, n,
|
|
598
|
+
var m = sr(e, r, n, d, _);
|
|
599
599
|
if (m == null)
|
|
600
600
|
return m;
|
|
601
|
-
if (
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
601
|
+
if (f) {
|
|
602
|
+
var k = r.children;
|
|
603
|
+
if (k !== void 0)
|
|
604
604
|
if (u)
|
|
605
|
-
if (ue(
|
|
606
|
-
for (var Y = 0; Y <
|
|
607
|
-
Ie(
|
|
608
|
-
Object.freeze && Object.freeze(
|
|
605
|
+
if (ue(k)) {
|
|
606
|
+
for (var Y = 0; Y < k.length; Y++)
|
|
607
|
+
Ie(k[Y], e);
|
|
608
|
+
Object.freeze && Object.freeze(k);
|
|
609
609
|
} else
|
|
610
|
-
|
|
610
|
+
R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
611
611
|
else
|
|
612
|
-
Ie(
|
|
612
|
+
Ie(k, e);
|
|
613
613
|
}
|
|
614
614
|
return e === a ? vr(m) : dr(m), m;
|
|
615
615
|
}
|
|
@@ -625,8 +625,8 @@ Check the top-level render call using <` + n + ">.");
|
|
|
625
625
|
}()), K;
|
|
626
626
|
}
|
|
627
627
|
process.env.NODE_ENV === "production" ? de.exports = br() : de.exports = Rr();
|
|
628
|
-
var
|
|
629
|
-
const
|
|
628
|
+
var I = de.exports;
|
|
629
|
+
const H = Ye({
|
|
630
630
|
rootValue: /* @__PURE__ */ new Set(),
|
|
631
631
|
setRootValue: () => {
|
|
632
632
|
},
|
|
@@ -639,20 +639,12 @@ const z = Ye({
|
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
641
|
function Er() {
|
|
642
|
-
const t =
|
|
642
|
+
const t = M({});
|
|
643
|
+
return t.current = {
|
|
643
644
|
__root__: { value: "__root__", parent: "", children: {}, index: 0, childrenLength: 0, isGroup: !0, ref: { current: null } }
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
if (t.current[a] = { value: a, parent: f, children: {}, childrenLength: 0, index: l, isGroup: d, ref: c }, t.current[f].children[l] = a, (l + 1 > t.current[f].childrenLength || t.current[t.current[f].childrenLength - 1] == null) && (t.current[f].childrenLength = l + 1), o.current[a]) {
|
|
650
|
-
for (const h of o.current[a])
|
|
651
|
-
i(...h);
|
|
652
|
-
delete o.current[a];
|
|
653
|
-
}
|
|
654
|
-
}, []);
|
|
655
|
-
return [t, i];
|
|
645
|
+
}, [t, (i, a, p, v, s) => {
|
|
646
|
+
t.current[i] = { value: i, parent: a, children: {}, childrenLength: 0, index: p, isGroup: v, ref: s }, t.current[a].children[p] = i, (p + 1 > t.current[a].childrenLength || t.current[t.current[a].childrenLength - 1] == null) && (t.current[a].childrenLength = p + 1);
|
|
647
|
+
}];
|
|
656
648
|
}
|
|
657
649
|
const U = Ye({
|
|
658
650
|
parent: "",
|
|
@@ -660,29 +652,33 @@ const U = Ye({
|
|
|
660
652
|
depth: -1
|
|
661
653
|
});
|
|
662
654
|
function mr(t, o, i) {
|
|
663
|
-
const [a,
|
|
664
|
-
return [
|
|
665
|
-
const h = typeof
|
|
666
|
-
o && o(h),
|
|
655
|
+
const [a, p] = Ue(i), v = t !== void 0 ? t : a;
|
|
656
|
+
return [v, (l) => {
|
|
657
|
+
const h = typeof l == "function" ? l(v) : l;
|
|
658
|
+
o && o(h), p(h);
|
|
667
659
|
}];
|
|
668
660
|
}
|
|
669
661
|
function J(t, o) {
|
|
670
662
|
return function(a) {
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
let
|
|
674
|
-
return a.defaultPrevented || (
|
|
663
|
+
const p = a.defaultPrevented;
|
|
664
|
+
p && (a.defaultPrevented = !1), t == null || t(a);
|
|
665
|
+
let v;
|
|
666
|
+
return a.defaultPrevented || (v = o == null ? void 0 : o(a), p && (a.defaultPrevented = !0)), v;
|
|
675
667
|
};
|
|
676
668
|
}
|
|
677
669
|
function ve(...t) {
|
|
678
|
-
return
|
|
670
|
+
return Ge((o) => {
|
|
679
671
|
for (const i of t)
|
|
680
672
|
typeof i == "function" ? i(o) : i != null && (i.current = o);
|
|
681
673
|
}, [t]);
|
|
682
674
|
}
|
|
683
|
-
function
|
|
684
|
-
|
|
685
|
-
|
|
675
|
+
function Be() {
|
|
676
|
+
let t = -1;
|
|
677
|
+
const o = {};
|
|
678
|
+
function i(a) {
|
|
679
|
+
return o[a] == null && (o[a] = ++t), o[a];
|
|
680
|
+
}
|
|
681
|
+
return i;
|
|
686
682
|
}
|
|
687
683
|
const yr = ["ArrowRight", "ArrowUp", "ArrowLeft", "ArrowDown", "Home", "End", "Enter"];
|
|
688
684
|
function wr(t, o) {
|
|
@@ -696,23 +692,23 @@ function Tr(t, o) {
|
|
|
696
692
|
i != "__root__" && ((a = t[i].ref.current) == null || a.focus());
|
|
697
693
|
}
|
|
698
694
|
function xr(t, o) {
|
|
699
|
-
var
|
|
695
|
+
var p, v;
|
|
700
696
|
const i = t[o].parent, a = t[o].index;
|
|
701
697
|
if (a != 0) {
|
|
702
|
-
let
|
|
703
|
-
for (; t[
|
|
704
|
-
|
|
705
|
-
(
|
|
698
|
+
let s = t[i].children[a - 1], l;
|
|
699
|
+
for (; t[s].isGroup && (l = t[s].children[t[s].childrenLength - 1], !(l == null || t[l].ref.current == null)); )
|
|
700
|
+
s = l;
|
|
701
|
+
(p = t[s].ref.current) == null || p.focus();
|
|
706
702
|
return;
|
|
707
703
|
}
|
|
708
|
-
i != "__root__" && ((
|
|
704
|
+
i != "__root__" && ((v = t[i].ref.current) == null || v.focus());
|
|
709
705
|
}
|
|
710
706
|
function Cr(t, o) {
|
|
711
|
-
var
|
|
707
|
+
var p, v;
|
|
712
708
|
if (t[o].isGroup) {
|
|
713
|
-
const
|
|
714
|
-
if (
|
|
715
|
-
|
|
709
|
+
const s = (p = t[t[o].children[0]]) == null ? void 0 : p.ref.current;
|
|
710
|
+
if (s) {
|
|
711
|
+
s.focus();
|
|
716
712
|
return;
|
|
717
713
|
}
|
|
718
714
|
}
|
|
@@ -722,7 +718,7 @@ function Cr(t, o) {
|
|
|
722
718
|
return;
|
|
723
719
|
o = i;
|
|
724
720
|
}
|
|
725
|
-
(
|
|
721
|
+
(v = t[a].ref.current) == null || v.focus();
|
|
726
722
|
}
|
|
727
723
|
function Sr(t) {
|
|
728
724
|
var i;
|
|
@@ -736,106 +732,109 @@ function Pr(t) {
|
|
|
736
732
|
o = i;
|
|
737
733
|
(a = t[o].ref.current) == null || a.focus();
|
|
738
734
|
}
|
|
739
|
-
const Or =
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
735
|
+
const Or = z(({ value: t, onValueChange: o, defaultValue: i, onKeyDown: a, ...p }, v) => {
|
|
736
|
+
var R;
|
|
737
|
+
const [s, l] = Er(), h = Be(), [y, g] = mr(t, o, i ?? /* @__PURE__ */ new Set()), [T, x] = Ue(""), S = M(null), F = ve(S, v), b = M("");
|
|
738
|
+
b.current != "" && !((R = s.current) != null && R[b.current]) && (b.current = "");
|
|
739
|
+
const L = Ge((w) => {
|
|
740
|
+
if (!(!yr.includes(w.key) || !s.current))
|
|
741
|
+
switch (w.key) {
|
|
743
742
|
case "ArrowRight":
|
|
744
|
-
if (!
|
|
743
|
+
if (!s.current[b.current].isGroup)
|
|
745
744
|
break;
|
|
746
|
-
|
|
745
|
+
w.preventDefault(), y.has(b.current) ? wr(s.current, b.current) : g((P) => /* @__PURE__ */ new Set([...P, b.current]));
|
|
747
746
|
break;
|
|
748
747
|
case "ArrowLeft":
|
|
749
|
-
|
|
748
|
+
w.preventDefault(), y.has(b.current) ? g((P) => new Set([...P].filter((j) => j !== b.current))) : Tr(s.current, b.current);
|
|
750
749
|
break;
|
|
751
750
|
case "ArrowUp":
|
|
752
|
-
|
|
751
|
+
w.preventDefault(), xr(s.current, b.current);
|
|
753
752
|
break;
|
|
754
753
|
case "ArrowDown":
|
|
755
|
-
|
|
754
|
+
w.preventDefault(), Cr(s.current, b.current);
|
|
756
755
|
break;
|
|
757
756
|
case "Home":
|
|
758
|
-
|
|
757
|
+
w.preventDefault(), Sr(s.current);
|
|
759
758
|
break;
|
|
760
759
|
case "End":
|
|
761
|
-
|
|
760
|
+
w.preventDefault(), Pr(s.current);
|
|
762
761
|
break;
|
|
763
762
|
case "Enter":
|
|
764
|
-
|
|
763
|
+
w.preventDefault(), x(b.current), y.has(b.current) ? g((P) => new Set([...P].filter((j) => j !== b.current))) : g((P) => /* @__PURE__ */ new Set([...P, b.current]));
|
|
765
764
|
break;
|
|
766
765
|
}
|
|
767
|
-
}, [y]),
|
|
768
|
-
return /* @__PURE__ */
|
|
766
|
+
}, [y]), O = J(a, L);
|
|
767
|
+
return /* @__PURE__ */ I.jsx(H.Provider, { value: { rootValue: y, setRootValue: g, selection: T, setSelection: x, focus: b, nodeMap: s, pushToNodeMap: l }, children: /* @__PURE__ */ I.jsx(U.Provider, { value: { parent: "__root__", getIndex: h, depth: 0 }, children: /* @__PURE__ */ I.jsx(
|
|
769
768
|
"ul",
|
|
770
769
|
{
|
|
771
|
-
ref:
|
|
770
|
+
ref: F,
|
|
772
771
|
role: "tree",
|
|
773
772
|
"aria-multiselectable": "false",
|
|
774
|
-
onKeyDown:
|
|
775
|
-
...
|
|
773
|
+
onKeyDown: O,
|
|
774
|
+
...p
|
|
776
775
|
}
|
|
777
776
|
) }) });
|
|
778
|
-
}), kr =
|
|
779
|
-
const { selection:
|
|
780
|
-
function P
|
|
781
|
-
var N,
|
|
782
|
-
(
|
|
777
|
+
}), kr = z(({ value: t, onFocus: o, onClick: i, ...a }, p) => {
|
|
778
|
+
const { selection: v, setSelection: s, focus: l, nodeMap: h, pushToNodeMap: y } = V(H), { parent: g, getIndex: T, depth: x } = V(U), S = M(null), F = ve(S, p), b = J(o, O), L = J(i, R);
|
|
779
|
+
function O(P) {
|
|
780
|
+
var j, N, X, Z;
|
|
781
|
+
(X = (N = (j = h.current) == null ? void 0 : j[l.current]) == null ? void 0 : N.ref.current) == null || X.setAttribute("tabindex", "-1"), (Z = S.current) == null || Z.setAttribute("tabindex", "0"), l.current = t, P.stopPropagation();
|
|
783
782
|
}
|
|
784
|
-
function
|
|
785
|
-
|
|
783
|
+
function R() {
|
|
784
|
+
s(t);
|
|
786
785
|
}
|
|
787
|
-
const
|
|
788
|
-
return y(t,
|
|
786
|
+
const w = T(t);
|
|
787
|
+
return y(t, g, w, !1, S), l.current == "" && g == "__root__" && w == 0 && (l.current = t), /* @__PURE__ */ I.jsx(
|
|
789
788
|
"li",
|
|
790
789
|
{
|
|
791
|
-
ref:
|
|
790
|
+
ref: F,
|
|
792
791
|
role: "treenode",
|
|
793
|
-
"aria-selected":
|
|
794
|
-
tabIndex:
|
|
795
|
-
onFocus:
|
|
792
|
+
"aria-selected": v == t,
|
|
793
|
+
tabIndex: l.current == t ? 0 : -1,
|
|
794
|
+
onFocus: b,
|
|
796
795
|
onClick: L,
|
|
797
|
-
"data-depth":
|
|
796
|
+
"data-depth": x,
|
|
798
797
|
...a
|
|
799
798
|
}
|
|
800
799
|
);
|
|
801
|
-
}), jr =
|
|
802
|
-
const
|
|
803
|
-
function L(
|
|
804
|
-
var
|
|
805
|
-
(
|
|
800
|
+
}), jr = z(({ value: t, onFocus: o, ...i }, a) => {
|
|
801
|
+
const p = Be(), { rootValue: v, selection: s, focus: l, nodeMap: h, pushToNodeMap: y } = V(H), { parent: g, getIndex: T, depth: x } = V(U), S = M(null), F = ve(S, a), b = J(o, L);
|
|
802
|
+
function L(R) {
|
|
803
|
+
var w, P, j, N;
|
|
804
|
+
(j = (P = (w = h.current) == null ? void 0 : w[l.current]) == null ? void 0 : P.ref.current) == null || j.setAttribute("tabindex", "-1"), (N = S.current) == null || N.setAttribute("tabindex", "0"), l.current = t, R.stopPropagation();
|
|
806
805
|
}
|
|
807
|
-
const
|
|
808
|
-
return y(t,
|
|
806
|
+
const O = T(t);
|
|
807
|
+
return y(t, g, O, !0, S), l.current == "" && g == "__root__" && O == 0 && (l.current = t), /* @__PURE__ */ I.jsx(U.Provider, { value: { parent: t, getIndex: p, depth: x + 1 }, children: /* @__PURE__ */ I.jsx(
|
|
809
808
|
"li",
|
|
810
809
|
{
|
|
811
|
-
ref:
|
|
810
|
+
ref: F,
|
|
812
811
|
role: "treenode",
|
|
813
|
-
"data-state":
|
|
814
|
-
"data-depth":
|
|
815
|
-
"aria-expanded":
|
|
816
|
-
"aria-selected":
|
|
817
|
-
tabIndex:
|
|
818
|
-
onFocus:
|
|
812
|
+
"data-state": v.has(t) ? "open" : "closed",
|
|
813
|
+
"data-depth": x,
|
|
814
|
+
"aria-expanded": v.has(t),
|
|
815
|
+
"aria-selected": s == t,
|
|
816
|
+
tabIndex: l.current == t ? 0 : -1,
|
|
817
|
+
onFocus: b,
|
|
819
818
|
...i
|
|
820
819
|
}
|
|
821
820
|
) });
|
|
822
|
-
}), Dr =
|
|
823
|
-
const { setRootValue: a, setSelection:
|
|
824
|
-
function
|
|
825
|
-
|
|
821
|
+
}), Dr = z(({ onClick: t, ...o }, i) => {
|
|
822
|
+
const { setRootValue: a, setSelection: p } = V(H), { parent: v } = V(U), s = J(t, l);
|
|
823
|
+
function l() {
|
|
824
|
+
p(v), a((h) => h.has(v) ? new Set([...h].filter((y) => y !== v)) : /* @__PURE__ */ new Set([...h, v]));
|
|
826
825
|
}
|
|
827
|
-
return /* @__PURE__ */
|
|
826
|
+
return /* @__PURE__ */ I.jsx(
|
|
828
827
|
"div",
|
|
829
828
|
{
|
|
830
829
|
ref: i,
|
|
831
|
-
onClick:
|
|
830
|
+
onClick: s,
|
|
832
831
|
...o
|
|
833
832
|
}
|
|
834
833
|
);
|
|
835
|
-
}), Ar =
|
|
836
|
-
const { rootValue: i } = V(
|
|
834
|
+
}), Ar = z(({ ...t }, o) => {
|
|
835
|
+
const { rootValue: i } = V(H), { parent: a } = V(U);
|
|
837
836
|
if (i.has(a))
|
|
838
|
-
return /* @__PURE__ */
|
|
837
|
+
return /* @__PURE__ */ I.jsx(
|
|
839
838
|
"ul",
|
|
840
839
|
{
|
|
841
840
|
ref: o,
|