udi-yac 0.2.3 → 0.2.4
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/udi-yac.js +1066 -1066
- package/package.json +1 -2
package/dist/udi-yac.js
CHANGED
|
@@ -229,106 +229,106 @@ function U(e) {
|
|
|
229
229
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
230
230
|
return r;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function ee() {
|
|
233
233
|
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = U(e)) && (r && (r += " "), r += t);
|
|
234
234
|
return r;
|
|
235
235
|
}
|
|
236
236
|
//#endregion
|
|
237
237
|
//#region ../../node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
238
|
-
var
|
|
238
|
+
var W = (e, t) => {
|
|
239
239
|
let n = Array(e.length + t.length);
|
|
240
240
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
241
241
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
242
242
|
return n;
|
|
243
|
-
},
|
|
243
|
+
}, G = (e, t) => ({
|
|
244
244
|
classGroupId: e,
|
|
245
245
|
validator: t
|
|
246
|
-
}),
|
|
246
|
+
}), K = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
247
247
|
nextPart: e,
|
|
248
248
|
validators: t,
|
|
249
249
|
classGroupId: n
|
|
250
|
-
}),
|
|
251
|
-
let t =
|
|
250
|
+
}), te = "-", ne = [], re = "arbitrary..", ie = (e) => {
|
|
251
|
+
let t = se(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
252
252
|
return {
|
|
253
253
|
getClassGroupId: (e) => {
|
|
254
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
255
|
-
let n = e.split(
|
|
256
|
-
return
|
|
254
|
+
if (e.startsWith("[") && e.endsWith("]")) return oe(e);
|
|
255
|
+
let n = e.split(te);
|
|
256
|
+
return ae(n, +(n[0] === "" && n.length > 1), t);
|
|
257
257
|
},
|
|
258
258
|
getConflictingClassGroupIds: (e, t) => {
|
|
259
259
|
if (t) {
|
|
260
260
|
let t = r[e], i = n[e];
|
|
261
|
-
return t ? i ?
|
|
261
|
+
return t ? i ? W(i, t) : t : i || ne;
|
|
262
262
|
}
|
|
263
|
-
return n[e] ||
|
|
263
|
+
return n[e] || ne;
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
|
-
},
|
|
266
|
+
}, ae = (e, t, n) => {
|
|
267
267
|
if (e.length - t === 0) return n.classGroupId;
|
|
268
268
|
let r = e[t], i = n.nextPart.get(r);
|
|
269
269
|
if (i) {
|
|
270
|
-
let n =
|
|
270
|
+
let n = ae(e, t + 1, i);
|
|
271
271
|
if (n) return n;
|
|
272
272
|
}
|
|
273
273
|
let a = n.validators;
|
|
274
274
|
if (a === null) return;
|
|
275
|
-
let o = t === 0 ? e.join(
|
|
275
|
+
let o = t === 0 ? e.join(te) : e.slice(t).join(te), s = a.length;
|
|
276
276
|
for (let e = 0; e < s; e++) {
|
|
277
277
|
let t = a[e];
|
|
278
278
|
if (t.validator(o)) return t.classGroupId;
|
|
279
279
|
}
|
|
280
|
-
},
|
|
280
|
+
}, oe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
281
281
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
282
|
-
return r ?
|
|
283
|
-
})(),
|
|
282
|
+
return r ? re + r : void 0;
|
|
283
|
+
})(), se = (e) => {
|
|
284
284
|
let { theme: t, classGroups: n } = e;
|
|
285
|
-
return
|
|
286
|
-
},
|
|
287
|
-
let n =
|
|
285
|
+
return ce(n, t);
|
|
286
|
+
}, ce = (e, t) => {
|
|
287
|
+
let n = K();
|
|
288
288
|
for (let r in e) {
|
|
289
289
|
let i = e[r];
|
|
290
|
-
|
|
290
|
+
le(i, n, r, t);
|
|
291
291
|
}
|
|
292
292
|
return n;
|
|
293
|
-
},
|
|
293
|
+
}, le = (e, t, n, r) => {
|
|
294
294
|
let i = e.length;
|
|
295
295
|
for (let a = 0; a < i; a++) {
|
|
296
296
|
let i = e[a];
|
|
297
|
-
|
|
297
|
+
ue(i, t, n, r);
|
|
298
298
|
}
|
|
299
|
-
},
|
|
299
|
+
}, ue = (e, t, n, r) => {
|
|
300
300
|
if (typeof e == "string") {
|
|
301
|
-
|
|
301
|
+
de(e, t, n);
|
|
302
302
|
return;
|
|
303
303
|
}
|
|
304
304
|
if (typeof e == "function") {
|
|
305
|
-
|
|
305
|
+
fe(e, t, n, r);
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
|
-
|
|
309
|
-
},
|
|
310
|
-
let r = e === "" ? t :
|
|
308
|
+
pe(e, t, n, r);
|
|
309
|
+
}, de = (e, t, n) => {
|
|
310
|
+
let r = e === "" ? t : me(t, e);
|
|
311
311
|
r.classGroupId = n;
|
|
312
|
-
},
|
|
313
|
-
if (
|
|
314
|
-
|
|
312
|
+
}, fe = (e, t, n, r) => {
|
|
313
|
+
if (he(e)) {
|
|
314
|
+
le(e(r), t, n, r);
|
|
315
315
|
return;
|
|
316
316
|
}
|
|
317
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
318
|
-
},
|
|
317
|
+
t.validators === null && (t.validators = []), t.validators.push(G(n, e));
|
|
318
|
+
}, pe = (e, t, n, r) => {
|
|
319
319
|
let i = Object.entries(e), a = i.length;
|
|
320
320
|
for (let e = 0; e < a; e++) {
|
|
321
321
|
let [a, o] = i[e];
|
|
322
|
-
|
|
322
|
+
le(o, me(t, a), n, r);
|
|
323
323
|
}
|
|
324
|
-
},
|
|
325
|
-
let n = e, r = t.split(
|
|
324
|
+
}, me = (e, t) => {
|
|
325
|
+
let n = e, r = t.split(te), i = r.length;
|
|
326
326
|
for (let e = 0; e < i; e++) {
|
|
327
327
|
let t = r[e], i = n.nextPart.get(t);
|
|
328
|
-
i || (i =
|
|
328
|
+
i || (i = K(), n.nextPart.set(t, i)), n = i;
|
|
329
329
|
}
|
|
330
330
|
return n;
|
|
331
|
-
},
|
|
331
|
+
}, he = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ge = (e) => {
|
|
332
332
|
if (e < 1) return {
|
|
333
333
|
get: () => void 0,
|
|
334
334
|
set: () => {}
|
|
@@ -346,7 +346,7 @@ var G = (e, t) => {
|
|
|
346
346
|
e in n ? n[e] = t : i(e, t);
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
|
-
},
|
|
349
|
+
}, q = "!", _e = ":", ve = [], ye = (e, t, n, r, i) => ({
|
|
350
350
|
modifiers: e,
|
|
351
351
|
hasImportantModifier: t,
|
|
352
352
|
baseClassName: n,
|
|
@@ -370,7 +370,7 @@ var G = (e, t) => {
|
|
|
370
370
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
371
371
|
}
|
|
372
372
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
373
|
-
s.endsWith(
|
|
373
|
+
s.endsWith(q) ? (c = s.slice(0, -1), l = !0) : s.startsWith(q) && (c = s.slice(1), l = !0);
|
|
374
374
|
let u = a && a > i ? a - i : void 0;
|
|
375
375
|
return ye(t, l, c, u);
|
|
376
376
|
};
|
|
@@ -399,11 +399,11 @@ var G = (e, t) => {
|
|
|
399
399
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
400
400
|
};
|
|
401
401
|
}, Se = (e) => ({
|
|
402
|
-
cache:
|
|
402
|
+
cache: ge(e.cacheSize),
|
|
403
403
|
parseClassName: be(e),
|
|
404
404
|
sortModifiers: xe(e),
|
|
405
405
|
postfixLookupClassGroupIds: Ce(e),
|
|
406
|
-
...
|
|
406
|
+
...ie(e)
|
|
407
407
|
}), Ce = (e) => {
|
|
408
408
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
409
409
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
@@ -433,7 +433,7 @@ var G = (e, t) => {
|
|
|
433
433
|
}
|
|
434
434
|
h = !1;
|
|
435
435
|
}
|
|
436
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
436
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + q : _, y = v + g;
|
|
437
437
|
if (s.indexOf(y) > -1) continue;
|
|
438
438
|
s.push(y);
|
|
439
439
|
let b = i(g, h);
|
|
@@ -644,7 +644,7 @@ var G = (e, t) => {
|
|
|
644
644
|
"dashed",
|
|
645
645
|
"dotted",
|
|
646
646
|
"double"
|
|
647
|
-
],
|
|
647
|
+
], ee = () => [
|
|
648
648
|
"normal",
|
|
649
649
|
"multiply",
|
|
650
650
|
"screen",
|
|
@@ -661,32 +661,32 @@ var G = (e, t) => {
|
|
|
661
661
|
"saturation",
|
|
662
662
|
"color",
|
|
663
663
|
"luminosity"
|
|
664
|
-
],
|
|
664
|
+
], W = () => [
|
|
665
665
|
Be,
|
|
666
666
|
He,
|
|
667
667
|
st,
|
|
668
668
|
nt
|
|
669
|
-
],
|
|
669
|
+
], G = () => [
|
|
670
670
|
"",
|
|
671
671
|
"none",
|
|
672
672
|
m,
|
|
673
673
|
Y,
|
|
674
674
|
J
|
|
675
|
-
],
|
|
675
|
+
], K = () => [
|
|
676
676
|
"none",
|
|
677
677
|
Be,
|
|
678
678
|
Y,
|
|
679
679
|
J
|
|
680
|
-
],
|
|
680
|
+
], te = () => [
|
|
681
681
|
"none",
|
|
682
682
|
Be,
|
|
683
683
|
Y,
|
|
684
684
|
J
|
|
685
|
-
],
|
|
685
|
+
], ne = () => [
|
|
686
686
|
Be,
|
|
687
687
|
Y,
|
|
688
688
|
J
|
|
689
|
-
],
|
|
689
|
+
], re = () => [
|
|
690
690
|
ze,
|
|
691
691
|
"full",
|
|
692
692
|
...w()
|
|
@@ -1344,11 +1344,11 @@ var G = (e, t) => {
|
|
|
1344
1344
|
J
|
|
1345
1345
|
] }],
|
|
1346
1346
|
"mix-blend": [{ "mix-blend": [
|
|
1347
|
-
...
|
|
1347
|
+
...ee(),
|
|
1348
1348
|
"plus-darker",
|
|
1349
1349
|
"plus-lighter"
|
|
1350
1350
|
] }],
|
|
1351
|
-
"bg-blend": [{ "bg-blend":
|
|
1351
|
+
"bg-blend": [{ "bg-blend": ee() }],
|
|
1352
1352
|
"mask-clip": [{ "mask-clip": [
|
|
1353
1353
|
"border",
|
|
1354
1354
|
"padding",
|
|
@@ -1364,37 +1364,37 @@ var G = (e, t) => {
|
|
|
1364
1364
|
"exclude"
|
|
1365
1365
|
] }],
|
|
1366
1366
|
"mask-image-linear-pos": [{ "mask-linear": [Be] }],
|
|
1367
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1368
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1367
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": W() }],
|
|
1368
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": W() }],
|
|
1369
1369
|
"mask-image-linear-from-color": [{ "mask-linear-from": I() }],
|
|
1370
1370
|
"mask-image-linear-to-color": [{ "mask-linear-to": I() }],
|
|
1371
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1372
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1371
|
+
"mask-image-t-from-pos": [{ "mask-t-from": W() }],
|
|
1372
|
+
"mask-image-t-to-pos": [{ "mask-t-to": W() }],
|
|
1373
1373
|
"mask-image-t-from-color": [{ "mask-t-from": I() }],
|
|
1374
1374
|
"mask-image-t-to-color": [{ "mask-t-to": I() }],
|
|
1375
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1376
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1375
|
+
"mask-image-r-from-pos": [{ "mask-r-from": W() }],
|
|
1376
|
+
"mask-image-r-to-pos": [{ "mask-r-to": W() }],
|
|
1377
1377
|
"mask-image-r-from-color": [{ "mask-r-from": I() }],
|
|
1378
1378
|
"mask-image-r-to-color": [{ "mask-r-to": I() }],
|
|
1379
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1380
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1379
|
+
"mask-image-b-from-pos": [{ "mask-b-from": W() }],
|
|
1380
|
+
"mask-image-b-to-pos": [{ "mask-b-to": W() }],
|
|
1381
1381
|
"mask-image-b-from-color": [{ "mask-b-from": I() }],
|
|
1382
1382
|
"mask-image-b-to-color": [{ "mask-b-to": I() }],
|
|
1383
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1384
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1383
|
+
"mask-image-l-from-pos": [{ "mask-l-from": W() }],
|
|
1384
|
+
"mask-image-l-to-pos": [{ "mask-l-to": W() }],
|
|
1385
1385
|
"mask-image-l-from-color": [{ "mask-l-from": I() }],
|
|
1386
1386
|
"mask-image-l-to-color": [{ "mask-l-to": I() }],
|
|
1387
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1388
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1387
|
+
"mask-image-x-from-pos": [{ "mask-x-from": W() }],
|
|
1388
|
+
"mask-image-x-to-pos": [{ "mask-x-to": W() }],
|
|
1389
1389
|
"mask-image-x-from-color": [{ "mask-x-from": I() }],
|
|
1390
1390
|
"mask-image-x-to-color": [{ "mask-x-to": I() }],
|
|
1391
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1392
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1391
|
+
"mask-image-y-from-pos": [{ "mask-y-from": W() }],
|
|
1392
|
+
"mask-image-y-to-pos": [{ "mask-y-to": W() }],
|
|
1393
1393
|
"mask-image-y-from-color": [{ "mask-y-from": I() }],
|
|
1394
1394
|
"mask-image-y-to-color": [{ "mask-y-to": I() }],
|
|
1395
1395
|
"mask-image-radial": [{ "mask-radial": [Y, J] }],
|
|
1396
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1397
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1396
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": W() }],
|
|
1397
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": W() }],
|
|
1398
1398
|
"mask-image-radial-from-color": [{ "mask-radial-from": I() }],
|
|
1399
1399
|
"mask-image-radial-to-color": [{ "mask-radial-to": I() }],
|
|
1400
1400
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
@@ -1404,8 +1404,8 @@ var G = (e, t) => {
|
|
|
1404
1404
|
}] }],
|
|
1405
1405
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1406
1406
|
"mask-image-conic-pos": [{ "mask-conic": [Be] }],
|
|
1407
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1408
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1407
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": W() }],
|
|
1408
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": W() }],
|
|
1409
1409
|
"mask-image-conic-from-color": [{ "mask-conic-from": I() }],
|
|
1410
1410
|
"mask-image-conic-to-color": [{ "mask-conic-to": I() }],
|
|
1411
1411
|
"mask-mode": [{ mask: [
|
|
@@ -1436,7 +1436,7 @@ var G = (e, t) => {
|
|
|
1436
1436
|
Y,
|
|
1437
1437
|
J
|
|
1438
1438
|
] }],
|
|
1439
|
-
blur: [{ blur:
|
|
1439
|
+
blur: [{ blur: G() }],
|
|
1440
1440
|
brightness: [{ brightness: [
|
|
1441
1441
|
Be,
|
|
1442
1442
|
Y,
|
|
@@ -1489,7 +1489,7 @@ var G = (e, t) => {
|
|
|
1489
1489
|
Y,
|
|
1490
1490
|
J
|
|
1491
1491
|
] }],
|
|
1492
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1492
|
+
"backdrop-blur": [{ "backdrop-blur": G() }],
|
|
1493
1493
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1494
1494
|
Be,
|
|
1495
1495
|
Y,
|
|
@@ -1582,18 +1582,18 @@ var G = (e, t) => {
|
|
|
1582
1582
|
J
|
|
1583
1583
|
] }],
|
|
1584
1584
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1585
|
-
rotate: [{ rotate:
|
|
1586
|
-
"rotate-x": [{ "rotate-x":
|
|
1587
|
-
"rotate-y": [{ "rotate-y":
|
|
1588
|
-
"rotate-z": [{ "rotate-z":
|
|
1589
|
-
scale: [{ scale:
|
|
1590
|
-
"scale-x": [{ "scale-x":
|
|
1591
|
-
"scale-y": [{ "scale-y":
|
|
1592
|
-
"scale-z": [{ "scale-z":
|
|
1585
|
+
rotate: [{ rotate: K() }],
|
|
1586
|
+
"rotate-x": [{ "rotate-x": K() }],
|
|
1587
|
+
"rotate-y": [{ "rotate-y": K() }],
|
|
1588
|
+
"rotate-z": [{ "rotate-z": K() }],
|
|
1589
|
+
scale: [{ scale: te() }],
|
|
1590
|
+
"scale-x": [{ "scale-x": te() }],
|
|
1591
|
+
"scale-y": [{ "scale-y": te() }],
|
|
1592
|
+
"scale-z": [{ "scale-z": te() }],
|
|
1593
1593
|
"scale-3d": ["scale-3d"],
|
|
1594
|
-
skew: [{ skew:
|
|
1595
|
-
"skew-x": [{ "skew-x":
|
|
1596
|
-
"skew-y": [{ "skew-y":
|
|
1594
|
+
skew: [{ skew: ne() }],
|
|
1595
|
+
"skew-x": [{ "skew-x": ne() }],
|
|
1596
|
+
"skew-y": [{ "skew-y": ne() }],
|
|
1597
1597
|
transform: [{ transform: [
|
|
1598
1598
|
Y,
|
|
1599
1599
|
J,
|
|
@@ -1604,10 +1604,10 @@ var G = (e, t) => {
|
|
|
1604
1604
|
] }],
|
|
1605
1605
|
"transform-origin": [{ origin: x() }],
|
|
1606
1606
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1607
|
-
translate: [{ translate:
|
|
1608
|
-
"translate-x": [{ "translate-x":
|
|
1609
|
-
"translate-y": [{ "translate-y":
|
|
1610
|
-
"translate-z": [{ "translate-z":
|
|
1607
|
+
translate: [{ translate: re() }],
|
|
1608
|
+
"translate-x": [{ "translate-x": re() }],
|
|
1609
|
+
"translate-y": [{ "translate-y": re() }],
|
|
1610
|
+
"translate-z": [{ "translate-z": re() }],
|
|
1611
1611
|
"translate-none": ["translate-none"],
|
|
1612
1612
|
zoom: [{ zoom: [
|
|
1613
1613
|
Ve,
|
|
@@ -1949,7 +1949,7 @@ var G = (e, t) => {
|
|
|
1949
1949
|
//#endregion
|
|
1950
1950
|
//#region src/lib/utils.ts
|
|
1951
1951
|
function Ct(...e) {
|
|
1952
|
-
return St(
|
|
1952
|
+
return St(ee(e));
|
|
1953
1953
|
}
|
|
1954
1954
|
function wt() {
|
|
1955
1955
|
return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID() : `id_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 10)}`;
|
|
@@ -4226,7 +4226,7 @@ var Qa = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
4226
4226
|
process.env.NODE_ENV !== "production" && (Qa.displayName = "Button");
|
|
4227
4227
|
//#endregion
|
|
4228
4228
|
//#region ../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
4229
|
-
var $a = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, eo =
|
|
4229
|
+
var $a = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, eo = ee, to = (e, t) => (n) => {
|
|
4230
4230
|
if (t?.variants == null) return eo(e, n?.class, n?.className);
|
|
4231
4231
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
4232
4232
|
let t = n?.[e], a = i?.[e];
|
|
@@ -5340,28 +5340,28 @@ function Wl(e) {
|
|
|
5340
5340
|
t.length === 0 ? n !== "0" && (e.setAttribute("tabindex", "0"), e.setAttribute("data-tabindex", "0")) : (n !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
5341
5341
|
}
|
|
5342
5342
|
function Gl(e) {
|
|
5343
|
-
let { context: t, children: n, disabled: r = !1, initialFocus: a = !0, returnFocus: o = !0, restoreFocus: s = !1, modal: c = !0, closeOnFocusOut: l = !0, openInteractionType: u = "", nextFocusableElement: d, previousFocusableElement: f, beforeContentFocusGuardRef: p, externalTree: m, getInsideElements: h } = e, g = "rootStore" in t ? t.rootStore : t, _ = g.useState("open"), v = g.useState("domReferenceElement"), x = g.useState("floatingElement"), { events: S, dataRef: C } = g.context, w = X(() => C.current.floatingContext?.nodeId), T = a === !1, E = $o(v) && T, D = Ms(a), O = Ms(o), k = Ms(u), A = Ms(_), j = Ml(m), M = Cl(), N = i.useRef(!1), P = i.useRef(!1), F = i.useRef(!1), I = i.useRef(null), L = i.useRef(""), R = i.useRef(""), z = i.useRef(null), B = i.useRef(null), V = Ci(z, p, M?.beforeInsideRef), H = Ci(B, M?.afterInsideRef), U = vo(),
|
|
5343
|
+
let { context: t, children: n, disabled: r = !1, initialFocus: a = !0, returnFocus: o = !0, restoreFocus: s = !1, modal: c = !0, closeOnFocusOut: l = !0, openInteractionType: u = "", nextFocusableElement: d, previousFocusableElement: f, beforeContentFocusGuardRef: p, externalTree: m, getInsideElements: h } = e, g = "rootStore" in t ? t.rootStore : t, _ = g.useState("open"), v = g.useState("domReferenceElement"), x = g.useState("floatingElement"), { events: S, dataRef: C } = g.context, w = X(() => C.current.floatingContext?.nodeId), T = a === !1, E = $o(v) && T, D = Ms(a), O = Ms(o), k = Ms(u), A = Ms(_), j = Ml(m), M = Cl(), N = i.useRef(!1), P = i.useRef(!1), F = i.useRef(!1), I = i.useRef(null), L = i.useRef(""), R = i.useRef(""), z = i.useRef(null), B = i.useRef(null), V = Ci(z, p, M?.beforeInsideRef), H = Ci(B, M?.afterInsideRef), U = vo(), ee = vo(), W = Rs(), G = M != null, K = ts(x), te = X((e = K) => e ? Bc(e) : []), ne = X(() => h?.().filter((e) => e != null) ?? []);
|
|
5344
5344
|
i.useEffect(() => {
|
|
5345
5345
|
if (r || !c) return;
|
|
5346
5346
|
function e(e) {
|
|
5347
|
-
e.key === "Tab" && Ko(
|
|
5347
|
+
e.key === "Tab" && Ko(K, Go(zs(K))) && te().length === 0 && !E && No(e);
|
|
5348
5348
|
}
|
|
5349
|
-
return As(zs(
|
|
5349
|
+
return As(zs(K), "keydown", e);
|
|
5350
5350
|
}, [
|
|
5351
5351
|
r,
|
|
5352
|
-
|
|
5352
|
+
K,
|
|
5353
5353
|
c,
|
|
5354
5354
|
E,
|
|
5355
|
-
|
|
5355
|
+
te
|
|
5356
5356
|
]), i.useEffect(() => {
|
|
5357
5357
|
if (r || !_) return;
|
|
5358
|
-
let e = zs(
|
|
5358
|
+
let e = zs(K);
|
|
5359
5359
|
function t() {
|
|
5360
5360
|
F.current = !1;
|
|
5361
5361
|
}
|
|
5362
5362
|
function n(e) {
|
|
5363
|
-
let t = qo(e), n =
|
|
5364
|
-
F.current = !r, R.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (P.current = !0,
|
|
5363
|
+
let t = qo(e), n = ne(), r = Ko(x, t) || Ko(v, t) || Ko(M?.portalNode, t) || n.some((e) => e === t || Ko(e, t));
|
|
5364
|
+
F.current = !r, R.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (P.current = !0, ee.start(0, () => {
|
|
5365
5365
|
P.current = !1;
|
|
5366
5366
|
}));
|
|
5367
5367
|
}
|
|
@@ -5373,16 +5373,16 @@ function Gl(e) {
|
|
|
5373
5373
|
r,
|
|
5374
5374
|
x,
|
|
5375
5375
|
v,
|
|
5376
|
-
|
|
5376
|
+
K,
|
|
5377
5377
|
_,
|
|
5378
5378
|
M,
|
|
5379
|
-
|
|
5380
|
-
|
|
5379
|
+
ee,
|
|
5380
|
+
ne
|
|
5381
5381
|
]), i.useEffect(() => {
|
|
5382
5382
|
if (r || !l) return;
|
|
5383
|
-
let e = zs(
|
|
5383
|
+
let e = zs(K);
|
|
5384
5384
|
function t() {
|
|
5385
|
-
P.current = !0,
|
|
5385
|
+
P.current = !0, ee.start(0, () => {
|
|
5386
5386
|
P.current = !1;
|
|
5387
5387
|
});
|
|
5388
5388
|
}
|
|
@@ -5393,7 +5393,7 @@ function Gl(e) {
|
|
|
5393
5393
|
function i(t) {
|
|
5394
5394
|
let n = t.relatedTarget, r = t.currentTarget, i = qo(t);
|
|
5395
5395
|
c && n == null && i != null && Ko(x, i) && Vl(i), queueMicrotask(() => {
|
|
5396
|
-
let a = w(), o = g.context.triggerElements, l =
|
|
5396
|
+
let a = w(), o = g.context.triggerElements, l = ne(), u = n?.hasAttribute(Qc("focus-guard")) && [
|
|
5397
5397
|
z.current,
|
|
5398
5398
|
B.current,
|
|
5399
5399
|
M?.beforeInsideRef.current,
|
|
@@ -5403,14 +5403,14 @@ function Gl(e) {
|
|
|
5403
5403
|
Il(f),
|
|
5404
5404
|
Il(d)
|
|
5405
5405
|
].includes(n), p = !(Ko(v, n) || Ko(x, n) || Ko(n, x) || Ko(M?.portalNode, n) || l.some((e) => e === n || Ko(e, n)) || n != null && o.hasElement(n) || o.hasMatchingElement((e) => Ko(e, n)) || u || j && (Xc(j.nodesRef.current, a).find((e) => Ko(e.context?.elements.floating, n) || Ko(e.context?.elements.domReference, n)) || Zc(j.nodesRef.current, a).find((e) => [e.context?.elements.floating, ts(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
|
|
5406
|
-
if (r === v &&
|
|
5407
|
-
if (ba(
|
|
5408
|
-
|
|
5409
|
-
|
|
5406
|
+
if (r === v && K && Wl(K), s && r !== v && !wc(i) && Go(e) === e.body) {
|
|
5407
|
+
if (ba(K) && (K.focus(), s === "popup")) {
|
|
5408
|
+
W.request(() => {
|
|
5409
|
+
K.focus();
|
|
5410
5410
|
});
|
|
5411
5411
|
return;
|
|
5412
5412
|
}
|
|
5413
|
-
let e =
|
|
5413
|
+
let e = te(), t = I.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || K;
|
|
5414
5414
|
ba(n) && n.focus();
|
|
5415
5415
|
}
|
|
5416
5416
|
if (C.current.insideReactTree) {
|
|
@@ -5431,23 +5431,23 @@ function Gl(e) {
|
|
|
5431
5431
|
r,
|
|
5432
5432
|
v,
|
|
5433
5433
|
x,
|
|
5434
|
-
|
|
5434
|
+
K,
|
|
5435
5435
|
c,
|
|
5436
5436
|
j,
|
|
5437
5437
|
M,
|
|
5438
5438
|
g,
|
|
5439
5439
|
l,
|
|
5440
5440
|
s,
|
|
5441
|
-
|
|
5441
|
+
te,
|
|
5442
5442
|
E,
|
|
5443
5443
|
w,
|
|
5444
5444
|
C,
|
|
5445
5445
|
U,
|
|
5446
|
+
ee,
|
|
5446
5447
|
W,
|
|
5447
|
-
G,
|
|
5448
5448
|
d,
|
|
5449
5449
|
f,
|
|
5450
|
-
|
|
5450
|
+
ne
|
|
5451
5451
|
]), i.useEffect(() => {
|
|
5452
5452
|
if (r || !x || !_) return;
|
|
5453
5453
|
let e = Array.from(M?.portalNode?.querySelectorAll(`[${Qc("portal")}]`) || []), t = (j ? Zc(j.nodesRef.current, w()) : []).find((e) => $o(e.context?.elements.domReference || null))?.context?.elements.domReference, n = fl([
|
|
@@ -5457,7 +5457,7 @@ function Gl(e) {
|
|
|
5457
5457
|
B.current,
|
|
5458
5458
|
M?.beforeOutsideRef.current,
|
|
5459
5459
|
M?.afterOutsideRef.current,
|
|
5460
|
-
...
|
|
5460
|
+
...ne(),
|
|
5461
5461
|
t,
|
|
5462
5462
|
Il(f),
|
|
5463
5463
|
Il(d),
|
|
@@ -5481,44 +5481,44 @@ function Gl(e) {
|
|
|
5481
5481
|
w,
|
|
5482
5482
|
d,
|
|
5483
5483
|
f,
|
|
5484
|
-
|
|
5484
|
+
ne
|
|
5485
5485
|
]), Z(() => {
|
|
5486
|
-
if (!_ || r || !ba(
|
|
5487
|
-
let e = zs(
|
|
5486
|
+
if (!_ || r || !ba(K)) return;
|
|
5487
|
+
let e = zs(K), t = Go(e);
|
|
5488
5488
|
queueMicrotask(() => {
|
|
5489
5489
|
let n = D.current, r = typeof n == "function" ? n(k.current || "") : n;
|
|
5490
|
-
if (r === void 0 || r === !1 || Ko(
|
|
5491
|
-
let i = null, a = () => (i ??=
|
|
5490
|
+
if (r === void 0 || r === !1 || Ko(K, t)) return;
|
|
5491
|
+
let i = null, a = () => (i ??= te(K), i[0] || K), o;
|
|
5492
5492
|
o = r === !0 || r === null ? a() : Il(r), o ||= a();
|
|
5493
|
-
let s = Ko(
|
|
5493
|
+
let s = Ko(K, Go(e));
|
|
5494
5494
|
el(o, {
|
|
5495
|
-
preventScroll: o ===
|
|
5495
|
+
preventScroll: o === K,
|
|
5496
5496
|
shouldFocus() {
|
|
5497
5497
|
if (!A.current) return !1;
|
|
5498
5498
|
if (s) return !0;
|
|
5499
5499
|
let t = Go(e);
|
|
5500
|
-
return !(t !== o && Ko(
|
|
5500
|
+
return !(t !== o && Ko(K, t));
|
|
5501
5501
|
}
|
|
5502
5502
|
});
|
|
5503
5503
|
});
|
|
5504
5504
|
}, [
|
|
5505
5505
|
r,
|
|
5506
5506
|
_,
|
|
5507
|
-
|
|
5508
|
-
|
|
5507
|
+
K,
|
|
5508
|
+
te,
|
|
5509
5509
|
D,
|
|
5510
5510
|
k,
|
|
5511
5511
|
A
|
|
5512
5512
|
]), Z(() => {
|
|
5513
|
-
if (r || !
|
|
5514
|
-
let e = zs(
|
|
5513
|
+
if (r || !K) return;
|
|
5514
|
+
let e = zs(K), t = Go(e), n = k.current == null;
|
|
5515
5515
|
Vl(t);
|
|
5516
5516
|
function i(e) {
|
|
5517
5517
|
if (e.open || (L.current = Ll(e.nativeEvent, R.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (N.current = !0), e.reason === "outside-press") if (e.nested) N.current = !1;
|
|
5518
5518
|
else if (Fo(e.nativeEvent) || Io(e.nativeEvent)) N.current = !1;
|
|
5519
5519
|
else {
|
|
5520
5520
|
let e = !1;
|
|
5521
|
-
zs(
|
|
5521
|
+
zs(K).createElement("div").focus({ get preventScroll() {
|
|
5522
5522
|
return e = !0, !1;
|
|
5523
5523
|
} }), e ? N.current = !1 : N.current = !0;
|
|
5524
5524
|
}
|
|
@@ -5533,7 +5533,7 @@ function Gl(e) {
|
|
|
5533
5533
|
}
|
|
5534
5534
|
return () => {
|
|
5535
5535
|
S.off("openchange", i);
|
|
5536
|
-
let t = Go(e), n =
|
|
5536
|
+
let t = Go(e), n = ne(), r = Ko(x, t) || n.some((e) => e === t || Ko(e, t)) || j && Xc(j.nodesRef.current, w(), !1).some((e) => Ko(e.context?.elements.floating, t)), o = O.current, s = a();
|
|
5537
5537
|
queueMicrotask(() => {
|
|
5538
5538
|
let n = Ul(s), i = typeof o != "boolean";
|
|
5539
5539
|
o && !N.current && ba(n) && (!(!i && n !== t && t !== e.body) || r) && n.focus({ preventScroll: !0 }), N.current = !1;
|
|
@@ -5542,14 +5542,14 @@ function Gl(e) {
|
|
|
5542
5542
|
}, [
|
|
5543
5543
|
r,
|
|
5544
5544
|
x,
|
|
5545
|
-
|
|
5545
|
+
K,
|
|
5546
5546
|
O,
|
|
5547
5547
|
k,
|
|
5548
5548
|
S,
|
|
5549
5549
|
j,
|
|
5550
5550
|
v,
|
|
5551
5551
|
w,
|
|
5552
|
-
|
|
5552
|
+
ne
|
|
5553
5553
|
]), Z(() => {
|
|
5554
5554
|
if (!Ao || _ || !x) return;
|
|
5555
5555
|
let e = Go(zs(x));
|
|
@@ -5573,28 +5573,28 @@ function Gl(e) {
|
|
|
5573
5573
|
l,
|
|
5574
5574
|
v
|
|
5575
5575
|
]), Z(() => {
|
|
5576
|
-
if (!(r || !
|
|
5576
|
+
if (!(r || !K)) return Wl(K), () => {
|
|
5577
5577
|
queueMicrotask(Bl);
|
|
5578
5578
|
};
|
|
5579
|
-
}, [r,
|
|
5580
|
-
let
|
|
5579
|
+
}, [r, K]);
|
|
5580
|
+
let re = !r && (c ? !E : !0) && (G || c);
|
|
5581
5581
|
return /*#__PURE__*/ b(i.Fragment, { children: [
|
|
5582
|
-
|
|
5582
|
+
re && /*#__PURE__*/ y(Us, {
|
|
5583
5583
|
"data-type": "inside",
|
|
5584
5584
|
ref: V,
|
|
5585
5585
|
onFocus: (e) => {
|
|
5586
5586
|
if (c) {
|
|
5587
|
-
let e =
|
|
5587
|
+
let e = te();
|
|
5588
5588
|
el(e[e.length - 1]);
|
|
5589
5589
|
} else M?.portalNode && (N.current = !1, qc(e, M.portalNode) ? Hc(v)?.focus() : Il(f ?? M.beforeOutsideRef)?.focus());
|
|
5590
5590
|
}
|
|
5591
5591
|
}),
|
|
5592
5592
|
n,
|
|
5593
|
-
|
|
5593
|
+
re && /*#__PURE__*/ y(Us, {
|
|
5594
5594
|
"data-type": "inside",
|
|
5595
5595
|
ref: H,
|
|
5596
5596
|
onFocus: (e) => {
|
|
5597
|
-
c ? el(
|
|
5597
|
+
c ? el(te()[0]) : M?.portalNode && (l && (N.current = !0), qc(e, M.portalNode) ? Uc(v)?.focus() : Il(d ?? M.afterOutsideRef)?.focus());
|
|
5598
5598
|
}
|
|
5599
5599
|
})
|
|
5600
5600
|
] });
|
|
@@ -5907,9 +5907,9 @@ function Ql(e, t = {}) {
|
|
|
5907
5907
|
function H(e) {
|
|
5908
5908
|
F(e, V);
|
|
5909
5909
|
}
|
|
5910
|
-
let U = zs(f),
|
|
5910
|
+
let U = zs(f), ee = js(r && js(As(U, "keydown", N), As(U, "compositionstart", i), As(U, "compositionend", a)), _ && js(As(U, "click", L, !0), As(U, "pointerdown", L, !0), As(U, "pointerup", R, !0), As(U, "pointercancel", R, !0), As(U, "mousedown", L, !0), As(U, "mouseup", R, !0), As(U, "touchstart", I, !0), As(U, "touchmove", B, !0), As(U, "touchend", H, !0)));
|
|
5911
5911
|
return () => {
|
|
5912
|
-
|
|
5912
|
+
ee(), e.clear(), t.clear(), s(), C.current = !1;
|
|
5913
5913
|
};
|
|
5914
5914
|
}, [
|
|
5915
5915
|
p,
|
|
@@ -6821,11 +6821,11 @@ var Q = (e, t, n, r, i, a, ...o) => {
|
|
|
6821
6821
|
else throw Error("Missing arguments");
|
|
6822
6822
|
return s;
|
|
6823
6823
|
}, ld = /* @__PURE__ */ r(((e) => {
|
|
6824
|
-
var t =
|
|
6825
|
-
function
|
|
6824
|
+
var t = i;
|
|
6825
|
+
function n(e, t) {
|
|
6826
6826
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
6827
6827
|
}
|
|
6828
|
-
var
|
|
6828
|
+
var r = typeof Object.is == "function" ? Object.is : n, a = t.useState, o = t.useEffect, s = t.useLayoutEffect, c = t.useDebugValue;
|
|
6829
6829
|
function l(e, t) {
|
|
6830
6830
|
var n = t(), r = a({ inst: {
|
|
6831
6831
|
value: n,
|
|
@@ -6848,7 +6848,7 @@ var Q = (e, t, n, r, i, a, ...o) => {
|
|
|
6848
6848
|
e = e.value;
|
|
6849
6849
|
try {
|
|
6850
6850
|
var n = t();
|
|
6851
|
-
return !
|
|
6851
|
+
return !r(e, n);
|
|
6852
6852
|
} catch {
|
|
6853
6853
|
return !0;
|
|
6854
6854
|
}
|
|
@@ -6863,31 +6863,31 @@ var Q = (e, t, n, r, i, a, ...o) => {
|
|
|
6863
6863
|
function t(e, t) {
|
|
6864
6864
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
6865
6865
|
}
|
|
6866
|
-
function
|
|
6866
|
+
function n(e, t) {
|
|
6867
6867
|
f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
6868
6868
|
var n = t();
|
|
6869
6869
|
if (!p) {
|
|
6870
|
-
var
|
|
6871
|
-
s(n,
|
|
6870
|
+
var i = t();
|
|
6871
|
+
s(n, i) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
|
|
6872
6872
|
}
|
|
6873
|
-
|
|
6873
|
+
i = c({ inst: {
|
|
6874
6874
|
value: n,
|
|
6875
6875
|
getSnapshot: t
|
|
6876
6876
|
} });
|
|
6877
|
-
var a =
|
|
6877
|
+
var a = i[0].inst, m = i[1];
|
|
6878
6878
|
return u(function() {
|
|
6879
|
-
a.value = n, a.getSnapshot = t,
|
|
6879
|
+
a.value = n, a.getSnapshot = t, r(a) && m({ inst: a });
|
|
6880
6880
|
}, [
|
|
6881
6881
|
e,
|
|
6882
6882
|
n,
|
|
6883
6883
|
t
|
|
6884
6884
|
]), l(function() {
|
|
6885
|
-
return
|
|
6886
|
-
|
|
6885
|
+
return r(a) && m({ inst: a }), e(function() {
|
|
6886
|
+
r(a) && m({ inst: a });
|
|
6887
6887
|
});
|
|
6888
6888
|
}, [e]), d(n), n;
|
|
6889
6889
|
}
|
|
6890
|
-
function
|
|
6890
|
+
function r(e) {
|
|
6891
6891
|
var t = e.getSnapshot;
|
|
6892
6892
|
e = e.value;
|
|
6893
6893
|
try {
|
|
@@ -6901,17 +6901,17 @@ var Q = (e, t, n, r, i, a, ...o) => {
|
|
|
6901
6901
|
return t();
|
|
6902
6902
|
}
|
|
6903
6903
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
6904
|
-
var o =
|
|
6904
|
+
var o = i, s = typeof Object.is == "function" ? Object.is : t, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : n;
|
|
6905
6905
|
e.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
6906
6906
|
})();
|
|
6907
6907
|
})), dd = /* @__PURE__ */ r(((e, t) => {
|
|
6908
6908
|
process.env.NODE_ENV === "production" ? t.exports = ld() : t.exports = ud();
|
|
6909
6909
|
})), fd = /* @__PURE__ */ r(((e) => {
|
|
6910
|
-
var t =
|
|
6911
|
-
function
|
|
6910
|
+
var t = i, n = dd();
|
|
6911
|
+
function r(e, t) {
|
|
6912
6912
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
6913
6913
|
}
|
|
6914
|
-
var a = typeof Object.is == "function" ? Object.is :
|
|
6914
|
+
var a = typeof Object.is == "function" ? Object.is : r, o = n.useSyncExternalStore, s = t.useRef, c = t.useEffect, l = t.useMemo, u = t.useDebugValue;
|
|
6915
6915
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
|
|
6916
6916
|
var d = s(null);
|
|
6917
6917
|
if (d.current === null) {
|
|
@@ -6957,7 +6957,7 @@ var Q = (e, t, n, r, i, a, ...o) => {
|
|
|
6957
6957
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
6958
6958
|
}
|
|
6959
6959
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
6960
|
-
var
|
|
6960
|
+
var n = i, r = dd(), a = typeof Object.is == "function" ? Object.is : t, o = r.useSyncExternalStore, s = n.useRef, c = n.useEffect, l = n.useMemo, u = n.useDebugValue;
|
|
6961
6961
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, i) {
|
|
6962
6962
|
var d = s(null);
|
|
6963
6963
|
if (d.current === null) {
|
|
@@ -8176,7 +8176,7 @@ function Sf(e, t) {
|
|
|
8176
8176
|
process.env.NODE_ENV !== "production" && (c && (l || console.warn("`useListNavigation` looping must be enabled to allow escaping."), f || console.warn("`useListNavigation` must be virtual to allow escaping.")), _ === "vertical" && C && console.warn("In grid list navigation mode, the `orientation` should", "be either \"horizontal\" or \"both\"."));
|
|
8177
8177
|
let w = "rootStore" in e ? e.rootStore : e, T = w.useState("open"), E = w.useState("floatingElement"), D = w.useState("domReferenceElement"), O = w.context.dataRef, k = ts(E), A = $o(D), j = Ms(k), M = jl(), N = Ml(x), P = i.useRef(p), F = i.useRef(s ?? -1), I = i.useRef(null), L = i.useRef(!0), R = X((e) => {
|
|
8178
8178
|
a(F.current === -1 ? null : F.current, e);
|
|
8179
|
-
}), z = i.useRef(!!E), B = i.useRef(T), V = i.useRef(!1), H = i.useRef(!1), U = i.useRef(null),
|
|
8179
|
+
}), z = i.useRef(!!E), B = i.useRef(T), V = i.useRef(!1), H = i.useRef(!1), U = i.useRef(null), ee = Ms(g), W = Ms(T), G = Ms(s), K = Ms(b), te = Rs(), ne = Rs(), re = X(() => {
|
|
8180
8180
|
function e(e) {
|
|
8181
8181
|
f ? N?.events.emit("virtualfocus", e) : U.current = el(e, {
|
|
8182
8182
|
sync: V.current,
|
|
@@ -8184,9 +8184,9 @@ function Sf(e, t) {
|
|
|
8184
8184
|
});
|
|
8185
8185
|
}
|
|
8186
8186
|
let t = n.current[F.current], r = H.current;
|
|
8187
|
-
t && e(t), (V.current ? (e) => e() : (e) =>
|
|
8187
|
+
t && e(t), (V.current ? (e) => e() : (e) => te.request(e))(() => {
|
|
8188
8188
|
let i = n.current[F.current] || t;
|
|
8189
|
-
i && (t || e(i),
|
|
8189
|
+
i && (t || e(i), le && (r || !L.current) && i.scrollIntoView?.({
|
|
8190
8190
|
block: "nearest",
|
|
8191
8191
|
inline: "nearest"
|
|
8192
8192
|
}));
|
|
@@ -8209,28 +8209,28 @@ function Sf(e, t) {
|
|
|
8209
8209
|
return;
|
|
8210
8210
|
}
|
|
8211
8211
|
if (E) if (r == null) {
|
|
8212
|
-
if (V.current = !1,
|
|
8213
|
-
if (z.current && (F.current = -1,
|
|
8212
|
+
if (V.current = !1, G.current != null) return;
|
|
8213
|
+
if (z.current && (F.current = -1, re()), (!B.current || !z.current) && P.current && (I.current != null || P.current === !0 && I.current == null)) {
|
|
8214
8214
|
let e = 0, t = () => {
|
|
8215
|
-
n.current[0] == null ? (e < 2 && (e ? (e) =>
|
|
8215
|
+
n.current[0] == null ? (e < 2 && (e ? (e) => ne.request(e) : queueMicrotask)(t), e += 1) : (F.current = I.current == null || yf(I.current, _, d) || u ? yc(n) : bc(n), I.current = null, R());
|
|
8216
8216
|
};
|
|
8217
8217
|
t();
|
|
8218
8218
|
}
|
|
8219
|
-
} else vc(n.current, r) || (F.current = r,
|
|
8219
|
+
} else vc(n.current, r) || (F.current = r, re(), H.current = !1);
|
|
8220
8220
|
}
|
|
8221
8221
|
}, [
|
|
8222
8222
|
o,
|
|
8223
8223
|
T,
|
|
8224
8224
|
E,
|
|
8225
8225
|
r,
|
|
8226
|
-
|
|
8226
|
+
G,
|
|
8227
8227
|
u,
|
|
8228
8228
|
n,
|
|
8229
8229
|
_,
|
|
8230
8230
|
d,
|
|
8231
8231
|
R,
|
|
8232
|
-
|
|
8233
|
-
|
|
8232
|
+
re,
|
|
8233
|
+
ne
|
|
8234
8234
|
]), Z(() => {
|
|
8235
8235
|
if (!o || E || !N || f || !z.current) return;
|
|
8236
8236
|
let e = N.nodesRef.current, t = e.find((e) => e.id === M)?.context?.elements.floating, n = Go(zs(D ?? t ?? null)), r = e.some((e) => e.context && Ko(e.context.elements.floating, n));
|
|
@@ -8247,14 +8247,14 @@ function Sf(e, t) {
|
|
|
8247
8247
|
}), Z(() => {
|
|
8248
8248
|
T || (I.current = null, P.current = p);
|
|
8249
8249
|
}, [T, p]);
|
|
8250
|
-
let
|
|
8251
|
-
if (!
|
|
8250
|
+
let ie = r != null, ae = X((e) => {
|
|
8251
|
+
if (!W.current) return;
|
|
8252
8252
|
let t = n.current.indexOf(e.currentTarget);
|
|
8253
8253
|
t !== -1 && (F.current !== t || r !== t) && (F.current = t, R(e));
|
|
8254
|
-
}),
|
|
8255
|
-
if (L.current = !1, V.current = !0, e.which === 229 || !
|
|
8254
|
+
}), oe = X(() => v ?? N?.nodesRef.current.find((e) => e.id === M)?.context?.dataRef?.current.orientation), se = X(() => yc(n, ee.current)), ce = X((e) => {
|
|
8255
|
+
if (L.current = !1, V.current = !0, e.which === 229 || !W.current && e.currentTarget === j.current) return;
|
|
8256
8256
|
if (u && xf(e.key, _, d, C)) {
|
|
8257
|
-
vf(e.key,
|
|
8257
|
+
vf(e.key, oe()) || No(e), w.setOpen(!1, ws(_s, e.nativeEvent)), ba(D) && (f ? N?.events.emit("virtualfocus", D) : D.focus());
|
|
8258
8258
|
return;
|
|
8259
8259
|
}
|
|
8260
8260
|
let t = F.current, r = yc(n, g), i = bc(n, g);
|
|
@@ -8283,41 +8283,41 @@ function Sf(e, t) {
|
|
|
8283
8283
|
disabledIndices: g
|
|
8284
8284
|
})), vc(n.current, F.current) && (F.current = -1), R(e);
|
|
8285
8285
|
}
|
|
8286
|
-
}),
|
|
8286
|
+
}), le = i.useMemo(() => ({
|
|
8287
8287
|
onFocus(e) {
|
|
8288
|
-
V.current = !0,
|
|
8288
|
+
V.current = !0, ae(e);
|
|
8289
8289
|
},
|
|
8290
8290
|
onClick: ({ currentTarget: e }) => e.focus({ preventScroll: !0 }),
|
|
8291
8291
|
onMouseMove(e) {
|
|
8292
|
-
V.current = !0, H.current = !1, m &&
|
|
8292
|
+
V.current = !0, H.current = !1, m && ae(e);
|
|
8293
8293
|
},
|
|
8294
8294
|
onPointerLeave(e) {
|
|
8295
|
-
if (!
|
|
8295
|
+
if (!W.current || !L.current || e.pointerType === "touch") return;
|
|
8296
8296
|
V.current = !0;
|
|
8297
8297
|
let t = e.relatedTarget;
|
|
8298
|
-
if (!(!m || n.current.includes(t)) &&
|
|
8298
|
+
if (!(!m || n.current.includes(t)) && K.current && (U.current?.(), U.current = null, F.current = -1, R(e), !f)) {
|
|
8299
8299
|
let e = j.current, t = Go(zs(e));
|
|
8300
8300
|
e && Ko(e, t) && e.focus({ preventScroll: !0 });
|
|
8301
8301
|
}
|
|
8302
8302
|
}
|
|
8303
8303
|
}), [
|
|
8304
|
-
|
|
8305
|
-
|
|
8304
|
+
ae,
|
|
8305
|
+
W,
|
|
8306
8306
|
j,
|
|
8307
8307
|
m,
|
|
8308
8308
|
n,
|
|
8309
8309
|
R,
|
|
8310
|
-
|
|
8310
|
+
K,
|
|
8311
8311
|
f
|
|
8312
|
-
]),
|
|
8312
|
+
]), ue = i.useMemo(() => f && T && ie && { "aria-activedescendant": `${y}-${r}` }, [
|
|
8313
8313
|
f,
|
|
8314
8314
|
T,
|
|
8315
|
-
|
|
8315
|
+
ie,
|
|
8316
8316
|
y,
|
|
8317
8317
|
r
|
|
8318
|
-
]),
|
|
8318
|
+
]), de = i.useMemo(() => ({
|
|
8319
8319
|
"aria-orientation": _ === "both" ? void 0 : _,
|
|
8320
|
-
...A ? {} :
|
|
8320
|
+
...A ? {} : ue,
|
|
8321
8321
|
onKeyDown(e) {
|
|
8322
8322
|
if (e.key === "Tab" && e.shiftKey && T && !f) {
|
|
8323
8323
|
let t = qo(e.nativeEvent);
|
|
@@ -8325,14 +8325,14 @@ function Sf(e, t) {
|
|
|
8325
8325
|
No(e), w.setOpen(!1, ws(hs, e.nativeEvent)), ba(D) && D.focus();
|
|
8326
8326
|
return;
|
|
8327
8327
|
}
|
|
8328
|
-
|
|
8328
|
+
ce(e);
|
|
8329
8329
|
},
|
|
8330
8330
|
onPointerMove() {
|
|
8331
8331
|
L.current = !0;
|
|
8332
8332
|
}
|
|
8333
8333
|
}), [
|
|
8334
|
-
|
|
8335
|
-
|
|
8334
|
+
ue,
|
|
8335
|
+
ce,
|
|
8336
8336
|
j,
|
|
8337
8337
|
_,
|
|
8338
8338
|
A,
|
|
@@ -8340,7 +8340,7 @@ function Sf(e, t) {
|
|
|
8340
8340
|
T,
|
|
8341
8341
|
f,
|
|
8342
8342
|
D
|
|
8343
|
-
]),
|
|
8343
|
+
]), fe = i.useMemo(() => {
|
|
8344
8344
|
function e(e) {
|
|
8345
8345
|
w.setOpen(!0, ws(_s, e.nativeEvent, e.currentTarget));
|
|
8346
8346
|
}
|
|
@@ -8354,18 +8354,18 @@ function Sf(e, t) {
|
|
|
8354
8354
|
onKeyDown(t) {
|
|
8355
8355
|
let n = w.select("open");
|
|
8356
8356
|
L.current = !1;
|
|
8357
|
-
let r = t.key.startsWith("Arrow"), i = bf(t.key,
|
|
8358
|
-
if (f && n) return
|
|
8357
|
+
let r = t.key.startsWith("Arrow"), i = bf(t.key, oe(), d), a = vf(t.key, _), o = (u ? i : a) || t.key === "Enter" || t.key.trim() === "";
|
|
8358
|
+
if (f && n) return ce(t);
|
|
8359
8359
|
if (!(!n && !h && r)) {
|
|
8360
8360
|
if (o) {
|
|
8361
|
-
let e = vf(t.key,
|
|
8361
|
+
let e = vf(t.key, oe());
|
|
8362
8362
|
I.current = u && e ? null : t.key;
|
|
8363
8363
|
}
|
|
8364
8364
|
if (u) {
|
|
8365
|
-
i && (No(t), n ? (F.current =
|
|
8365
|
+
i && (No(t), n ? (F.current = se(), R(t)) : e(t));
|
|
8366
8366
|
return;
|
|
8367
8367
|
}
|
|
8368
|
-
a && (
|
|
8368
|
+
a && (G.current != null && (F.current = G.current), No(t), !n && h ? e(t) : ce(t), n && R(t));
|
|
8369
8369
|
}
|
|
8370
8370
|
},
|
|
8371
8371
|
onFocus(e) {
|
|
@@ -8377,33 +8377,33 @@ function Sf(e, t) {
|
|
|
8377
8377
|
onClick: t
|
|
8378
8378
|
};
|
|
8379
8379
|
}, [
|
|
8380
|
-
|
|
8380
|
+
ce,
|
|
8381
8381
|
p,
|
|
8382
|
-
|
|
8382
|
+
se,
|
|
8383
8383
|
u,
|
|
8384
8384
|
R,
|
|
8385
8385
|
w,
|
|
8386
8386
|
h,
|
|
8387
8387
|
_,
|
|
8388
|
-
|
|
8388
|
+
oe,
|
|
8389
8389
|
d,
|
|
8390
|
-
|
|
8390
|
+
G,
|
|
8391
8391
|
f
|
|
8392
|
-
]),
|
|
8393
|
-
...
|
|
8394
|
-
...
|
|
8395
|
-
}), [
|
|
8392
|
+
]), pe = i.useMemo(() => ({
|
|
8393
|
+
...ue,
|
|
8394
|
+
...fe
|
|
8395
|
+
}), [ue, fe]);
|
|
8396
8396
|
return i.useMemo(() => o ? {
|
|
8397
|
-
reference:
|
|
8398
|
-
floating:
|
|
8399
|
-
item:
|
|
8400
|
-
trigger:
|
|
8397
|
+
reference: pe,
|
|
8398
|
+
floating: de,
|
|
8399
|
+
item: le,
|
|
8400
|
+
trigger: fe
|
|
8401
8401
|
} : {}, [
|
|
8402
8402
|
o,
|
|
8403
|
-
|
|
8404
|
-
ue,
|
|
8403
|
+
pe,
|
|
8405
8404
|
de,
|
|
8406
|
-
|
|
8405
|
+
fe,
|
|
8406
|
+
le
|
|
8407
8407
|
]);
|
|
8408
8408
|
}
|
|
8409
8409
|
//#endregion
|
|
@@ -8803,7 +8803,7 @@ var ep = lo(function(e, t) {
|
|
|
8803
8803
|
}, n = R();
|
|
8804
8804
|
n === 0 ? (I.clear(), t()) : I.start(n, t);
|
|
8805
8805
|
}
|
|
8806
|
-
},
|
|
8806
|
+
}, ee = h.useState("triggerProps", w);
|
|
8807
8807
|
return na("button", e, {
|
|
8808
8808
|
state: { open: v },
|
|
8809
8809
|
ref: [
|
|
@@ -8814,7 +8814,7 @@ var ep = lo(function(e, t) {
|
|
|
8814
8814
|
props: [
|
|
8815
8815
|
V,
|
|
8816
8816
|
H,
|
|
8817
|
-
w || N !== "none" ?
|
|
8817
|
+
w || N !== "none" ? ee : void 0,
|
|
8818
8818
|
{
|
|
8819
8819
|
onMouseOver(e) {
|
|
8820
8820
|
U(e.nativeEvent);
|
|
@@ -9018,21 +9018,21 @@ function _p(e) {
|
|
|
9018
9018
|
let V = {
|
|
9019
9019
|
boundary: c === "clipping-ancestors" ? "clippingAncestors" : c,
|
|
9020
9020
|
padding: I
|
|
9021
|
-
}, H = i.useRef(null), U = Ms(a),
|
|
9022
|
-
p &&
|
|
9023
|
-
let t = gp(e, r, N), n = typeof U.current == "function" ? U.current(t) : U.current, i = typeof
|
|
9021
|
+
}, H = i.useRef(null), U = Ms(a), ee = Ms(s), W = typeof a == "function" ? 0 : a, G = typeof s == "function" ? 0 : s, K = [];
|
|
9022
|
+
p && K.push(p), K.push(nd((e) => {
|
|
9023
|
+
let t = gp(e, r, N), n = typeof U.current == "function" ? U.current(t) : U.current, i = typeof ee.current == "function" ? ee.current(t) : ee.current;
|
|
9024
9024
|
return {
|
|
9025
9025
|
mainAxis: n,
|
|
9026
9026
|
crossAxis: i,
|
|
9027
9027
|
alignmentAxis: i
|
|
9028
9028
|
};
|
|
9029
9029
|
}, [
|
|
9030
|
+
W,
|
|
9030
9031
|
G,
|
|
9031
|
-
K,
|
|
9032
9032
|
N,
|
|
9033
9033
|
r
|
|
9034
9034
|
]));
|
|
9035
|
-
let
|
|
9035
|
+
let te = E === "none" && T !== "shift", ne = !te && (u || v || T === "shift"), re = T === "none" ? null : ad({
|
|
9036
9036
|
...V,
|
|
9037
9037
|
padding: {
|
|
9038
9038
|
top: I.top + 1,
|
|
@@ -9043,7 +9043,7 @@ function _p(e) {
|
|
|
9043
9043
|
mainAxis: !v && T === "flip",
|
|
9044
9044
|
crossAxis: E === "flip" ? "alignment" : !1,
|
|
9045
9045
|
fallbackAxisSideDirection: D
|
|
9046
|
-
}),
|
|
9046
|
+
}), ie = te ? null : rd((e) => {
|
|
9047
9047
|
let t = zs(e.elements.floating).documentElement;
|
|
9048
9048
|
return {
|
|
9049
9049
|
...V,
|
|
@@ -9054,7 +9054,7 @@ function _p(e) {
|
|
|
9054
9054
|
height: t.clientHeight
|
|
9055
9055
|
} : void 0,
|
|
9056
9056
|
mainAxis: E !== "none",
|
|
9057
|
-
crossAxis:
|
|
9057
|
+
crossAxis: ne,
|
|
9058
9058
|
limiter: u || v ? void 0 : id((e) => {
|
|
9059
9059
|
if (!H.current) return {};
|
|
9060
9060
|
let { width: t, height: n } = H.current.getBoundingClientRect(), r = rc($s(e.placement)), i = r === "y" ? t : n, a = r === "y" ? I.left + I.right : I.top + I.bottom;
|
|
@@ -9068,7 +9068,7 @@ function _p(e) {
|
|
|
9068
9068
|
I,
|
|
9069
9069
|
E
|
|
9070
9070
|
]);
|
|
9071
|
-
T === "shift" || E === "shift" || o === "center" ?
|
|
9071
|
+
T === "shift" || E === "shift" || o === "center" ? K.push(ie, re) : K.push(re, ie), K.push(od({
|
|
9072
9072
|
...V,
|
|
9073
9073
|
apply({ elements: { floating: e }, availableWidth: t, availableHeight: n, rects: r }) {
|
|
9074
9074
|
if (!M.current) return;
|
|
@@ -9090,7 +9090,7 @@ function _p(e) {
|
|
|
9090
9090
|
left: `calc(100% + ${y}px) ${g}px`,
|
|
9091
9091
|
right: `${-y}px ${g}px`
|
|
9092
9092
|
}[c], S = `${h}px ${o.reference.y + v - s}px`;
|
|
9093
|
-
return t.floating.style.setProperty("--transform-origin",
|
|
9093
|
+
return t.floating.style.setProperty("--transform-origin", ne && l === "y" && b ? S : x), {};
|
|
9094
9094
|
}
|
|
9095
9095
|
}, fp, b), Z(() => {
|
|
9096
9096
|
!g && h && h.update({
|
|
@@ -9100,79 +9100,79 @@ function _p(e) {
|
|
|
9100
9100
|
positionReference: null
|
|
9101
9101
|
});
|
|
9102
9102
|
}, [g, h]);
|
|
9103
|
-
let
|
|
9103
|
+
let ae = i.useMemo(() => ({
|
|
9104
9104
|
elementResize: !f && typeof ResizeObserver < "u",
|
|
9105
9105
|
layoutShift: !f && typeof IntersectionObserver < "u"
|
|
9106
|
-
}), [f]), { refs:
|
|
9106
|
+
}), [f]), { refs: oe, elements: se, x: ce, y: le, middlewareData: ue, update: de, placement: fe, context: pe, isPositioned: me, floatingStyles: he } = af({
|
|
9107
9107
|
rootContext: h,
|
|
9108
9108
|
open: m ? g : void 0,
|
|
9109
9109
|
placement: F,
|
|
9110
|
-
middleware:
|
|
9110
|
+
middleware: K,
|
|
9111
9111
|
strategy: n,
|
|
9112
|
-
whileElementsMounted: m ? void 0 : (...e) => Hu(...e,
|
|
9112
|
+
whileElementsMounted: m ? void 0 : (...e) => Hu(...e, ae),
|
|
9113
9113
|
nodeId: y,
|
|
9114
9114
|
externalTree: S
|
|
9115
|
-
}), { sideX:
|
|
9115
|
+
}), { sideX: ge, sideY: q } = ue.adaptiveOrigin || pp, _e = me ? n : "fixed", ve = i.useMemo(() => {
|
|
9116
9116
|
let e = b ? {
|
|
9117
9117
|
position: _e,
|
|
9118
|
-
[
|
|
9119
|
-
[
|
|
9118
|
+
[ge]: ce,
|
|
9119
|
+
[q]: le
|
|
9120
9120
|
} : {
|
|
9121
9121
|
position: _e,
|
|
9122
|
-
...
|
|
9122
|
+
...he
|
|
9123
9123
|
};
|
|
9124
|
-
return
|
|
9124
|
+
return me || (e.opacity = 0), e;
|
|
9125
9125
|
}, [
|
|
9126
9126
|
b,
|
|
9127
9127
|
_e,
|
|
9128
|
-
he,
|
|
9129
|
-
se,
|
|
9130
9128
|
ge,
|
|
9131
9129
|
ce,
|
|
9132
|
-
|
|
9133
|
-
|
|
9130
|
+
q,
|
|
9131
|
+
le,
|
|
9132
|
+
he,
|
|
9133
|
+
me
|
|
9134
9134
|
]), ye = i.useRef(null);
|
|
9135
9135
|
Z(() => {
|
|
9136
9136
|
if (!g) return;
|
|
9137
9137
|
let e = j.current, t = typeof e == "function" ? e() : e, n = (vp(t) ? t.current : t) || null;
|
|
9138
|
-
n !== ye.current && (
|
|
9138
|
+
n !== ye.current && (oe.setPositionReference(n), ye.current = n);
|
|
9139
9139
|
}, [
|
|
9140
9140
|
g,
|
|
9141
|
-
|
|
9141
|
+
oe,
|
|
9142
9142
|
A,
|
|
9143
9143
|
j
|
|
9144
9144
|
]), i.useEffect(() => {
|
|
9145
9145
|
if (!g) return;
|
|
9146
9146
|
let e = j.current;
|
|
9147
|
-
typeof e != "function" && vp(e) && e.current !== ye.current && (
|
|
9147
|
+
typeof e != "function" && vp(e) && e.current !== ye.current && (oe.setPositionReference(e.current), ye.current = e.current);
|
|
9148
9148
|
}, [
|
|
9149
9149
|
g,
|
|
9150
|
-
|
|
9150
|
+
oe,
|
|
9151
9151
|
A,
|
|
9152
9152
|
j
|
|
9153
9153
|
]), i.useEffect(() => {
|
|
9154
|
-
if (m && g &&
|
|
9154
|
+
if (m && g && se.reference && se.floating) return Hu(se.reference, se.floating, de, ae);
|
|
9155
9155
|
}, [
|
|
9156
9156
|
m,
|
|
9157
9157
|
g,
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9158
|
+
se,
|
|
9159
|
+
de,
|
|
9160
|
+
ae
|
|
9161
9161
|
]);
|
|
9162
|
-
let be = $s(
|
|
9162
|
+
let be = $s(fe), xe = hp(r, be, N), Se = ec(fe) || "center", Ce = !!ue.hide?.referenceHidden;
|
|
9163
9163
|
Z(() => {
|
|
9164
|
-
x && g &&
|
|
9164
|
+
x && g && me && w(be);
|
|
9165
9165
|
}, [
|
|
9166
9166
|
x,
|
|
9167
9167
|
g,
|
|
9168
|
-
|
|
9168
|
+
me,
|
|
9169
9169
|
be
|
|
9170
9170
|
]);
|
|
9171
9171
|
let we = i.useMemo(() => ({
|
|
9172
9172
|
position: "absolute",
|
|
9173
|
-
top:
|
|
9174
|
-
left:
|
|
9175
|
-
}), [
|
|
9173
|
+
top: ue.arrow?.y,
|
|
9174
|
+
left: ue.arrow?.x
|
|
9175
|
+
}), [ue.arrow]), Te = ue.arrow?.centerOffset !== 0;
|
|
9176
9176
|
return i.useMemo(() => ({
|
|
9177
9177
|
positionerStyles: ve,
|
|
9178
9178
|
arrowStyles: we,
|
|
@@ -9182,10 +9182,10 @@ function _p(e) {
|
|
|
9182
9182
|
align: Se,
|
|
9183
9183
|
physicalSide: be,
|
|
9184
9184
|
anchorHidden: Ce,
|
|
9185
|
-
refs:
|
|
9186
|
-
context:
|
|
9187
|
-
isPositioned:
|
|
9188
|
-
update:
|
|
9185
|
+
refs: oe,
|
|
9186
|
+
context: pe,
|
|
9187
|
+
isPositioned: me,
|
|
9188
|
+
update: de
|
|
9189
9189
|
}), [
|
|
9190
9190
|
ve,
|
|
9191
9191
|
we,
|
|
@@ -9195,10 +9195,10 @@ function _p(e) {
|
|
|
9195
9195
|
Se,
|
|
9196
9196
|
be,
|
|
9197
9197
|
Ce,
|
|
9198
|
-
|
|
9199
|
-
fe,
|
|
9198
|
+
oe,
|
|
9200
9199
|
pe,
|
|
9201
|
-
|
|
9200
|
+
me,
|
|
9201
|
+
de
|
|
9202
9202
|
]);
|
|
9203
9203
|
}
|
|
9204
9204
|
function vp(e) {
|
|
@@ -9568,46 +9568,46 @@ var Kp = {
|
|
|
9568
9568
|
y: !0,
|
|
9569
9569
|
corner: !0
|
|
9570
9570
|
}, Xp = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
9571
|
-
let { render: n, className: r, overflowEdgeThreshold: a, style: o, ...s } = e, { xStart: c, xEnd: l, yStart: u, yEnd: d } = Zp(a), f = qf(), p = vo(), m = vo(), { nonce: h, disableStyleElements: g } = Gp(), [_, v] = i.useState(!1), [y, x] = i.useState(!1), [S, C] = i.useState(!1), [w, T] = i.useState(!1), [E, D] = i.useState(!1), [O, k] = i.useState(qp), [A, j] = i.useState(qp), [M, N] = i.useState(Jp), [P, F] = i.useState(Yp), I = i.useRef(null), L = i.useRef(null), R = i.useRef(null), z = i.useRef(null), B = i.useRef(null), V = i.useRef(null), H = i.useRef(null), U = i.useRef(!1),
|
|
9572
|
-
let t = e.x -
|
|
9573
|
-
|
|
9571
|
+
let { render: n, className: r, overflowEdgeThreshold: a, style: o, ...s } = e, { xStart: c, xEnd: l, yStart: u, yEnd: d } = Zp(a), f = qf(), p = vo(), m = vo(), { nonce: h, disableStyleElements: g } = Gp(), [_, v] = i.useState(!1), [y, x] = i.useState(!1), [S, C] = i.useState(!1), [w, T] = i.useState(!1), [E, D] = i.useState(!1), [O, k] = i.useState(qp), [A, j] = i.useState(qp), [M, N] = i.useState(Jp), [P, F] = i.useState(Yp), I = i.useRef(null), L = i.useRef(null), R = i.useRef(null), z = i.useRef(null), B = i.useRef(null), V = i.useRef(null), H = i.useRef(null), U = i.useRef(!1), ee = i.useRef(0), W = i.useRef(0), G = i.useRef(0), K = i.useRef(0), te = i.useRef("vertical"), ne = i.useRef(Kp), re = X((e) => {
|
|
9572
|
+
let t = e.x - ne.current.x, n = e.y - ne.current.y;
|
|
9573
|
+
ne.current = e, n !== 0 && (C(!0), p.start(500, () => {
|
|
9574
9574
|
C(!1);
|
|
9575
9575
|
})), t !== 0 && (x(!0), m.start(500, () => {
|
|
9576
9576
|
x(!1);
|
|
9577
9577
|
}));
|
|
9578
|
-
}), re = X((e) => {
|
|
9579
|
-
e.button === 0 && (U.current = !0, W.current = e.clientY, G.current = e.clientX, ee.current = e.currentTarget.getAttribute(Rp.orientation), L.current && (K.current = L.current.scrollTop, q.current = L.current.scrollLeft), B.current && ee.current === "vertical" && B.current.setPointerCapture(e.pointerId), V.current && ee.current === "horizontal" && V.current.setPointerCapture(e.pointerId));
|
|
9580
9578
|
}), ie = X((e) => {
|
|
9579
|
+
e.button === 0 && (U.current = !0, ee.current = e.clientY, W.current = e.clientX, te.current = e.currentTarget.getAttribute(Rp.orientation), L.current && (G.current = L.current.scrollTop, K.current = L.current.scrollLeft), B.current && te.current === "vertical" && B.current.setPointerCapture(e.pointerId), V.current && te.current === "horizontal" && V.current.setPointerCapture(e.pointerId));
|
|
9580
|
+
}), ae = X((e) => {
|
|
9581
9581
|
if (!U.current) return;
|
|
9582
|
-
let t = e.clientY -
|
|
9582
|
+
let t = e.clientY - ee.current, n = e.clientX - W.current;
|
|
9583
9583
|
if (L.current) {
|
|
9584
9584
|
let r = L.current.scrollHeight, i = L.current.clientHeight, a = L.current.scrollWidth, o = L.current.clientWidth;
|
|
9585
|
-
if (B.current && R.current &&
|
|
9585
|
+
if (B.current && R.current && te.current === "vertical") {
|
|
9586
9586
|
let n = Lp(R.current, "padding", "y"), a = Lp(B.current, "margin", "y"), o = B.current.offsetHeight, s = t / (R.current.offsetHeight - o - n - a);
|
|
9587
|
-
L.current.scrollTop =
|
|
9587
|
+
L.current.scrollTop = G.current + s * (r - i), e.preventDefault(), C(!0), p.start(500, () => {
|
|
9588
9588
|
C(!1);
|
|
9589
9589
|
});
|
|
9590
9590
|
}
|
|
9591
|
-
if (V.current && z.current &&
|
|
9591
|
+
if (V.current && z.current && te.current === "horizontal") {
|
|
9592
9592
|
let t = Lp(z.current, "padding", "x"), r = Lp(V.current, "margin", "x"), i = V.current.offsetWidth, s = n / (z.current.offsetWidth - i - t - r);
|
|
9593
|
-
L.current.scrollLeft =
|
|
9593
|
+
L.current.scrollLeft = K.current + s * (a - o), e.preventDefault(), x(!0), m.start(500, () => {
|
|
9594
9594
|
x(!1);
|
|
9595
9595
|
});
|
|
9596
9596
|
}
|
|
9597
9597
|
}
|
|
9598
|
-
}),
|
|
9599
|
-
U.current = !1, B.current &&
|
|
9598
|
+
}), oe = X((e) => {
|
|
9599
|
+
U.current = !1, B.current && te.current === "vertical" && B.current.hasPointerCapture(e.pointerId) && B.current.releasePointerCapture(e.pointerId), V.current && te.current === "horizontal" && V.current.hasPointerCapture(e.pointerId) && V.current.releasePointerCapture(e.pointerId);
|
|
9600
9600
|
});
|
|
9601
|
-
function
|
|
9601
|
+
function se(e) {
|
|
9602
9602
|
T(e.pointerType === "touch");
|
|
9603
9603
|
}
|
|
9604
|
-
function
|
|
9605
|
-
if (
|
|
9604
|
+
function ce(e) {
|
|
9605
|
+
if (se(e), e.pointerType !== "touch") {
|
|
9606
9606
|
let t = Ko(I.current, e.target);
|
|
9607
9607
|
v(t);
|
|
9608
9608
|
}
|
|
9609
9609
|
}
|
|
9610
|
-
let
|
|
9610
|
+
let le = i.useMemo(() => ({
|
|
9611
9611
|
scrolling: y || S,
|
|
9612
9612
|
hasOverflowX: !P.x,
|
|
9613
9613
|
hasOverflowY: !P.y,
|
|
@@ -9623,11 +9623,11 @@ var Kp = {
|
|
|
9623
9623
|
P.y,
|
|
9624
9624
|
P.corner,
|
|
9625
9625
|
M
|
|
9626
|
-
]),
|
|
9626
|
+
]), ue = {
|
|
9627
9627
|
role: "presentation",
|
|
9628
|
-
onPointerEnter:
|
|
9629
|
-
onPointerMove:
|
|
9630
|
-
onPointerDown:
|
|
9628
|
+
onPointerEnter: ce,
|
|
9629
|
+
onPointerMove: ce,
|
|
9630
|
+
onPointerDown: se,
|
|
9631
9631
|
onPointerLeave() {
|
|
9632
9632
|
v(!1);
|
|
9633
9633
|
},
|
|
@@ -9636,16 +9636,16 @@ var Kp = {
|
|
|
9636
9636
|
[Ip.scrollAreaCornerHeight]: `${O.height}px`,
|
|
9637
9637
|
[Ip.scrollAreaCornerWidth]: `${O.width}px`
|
|
9638
9638
|
}
|
|
9639
|
-
},
|
|
9640
|
-
state:
|
|
9639
|
+
}, de = na("div", e, {
|
|
9640
|
+
state: le,
|
|
9641
9641
|
ref: [t, I],
|
|
9642
|
-
props: [
|
|
9642
|
+
props: [ue, s],
|
|
9643
9643
|
stateAttributesMapping: Hp
|
|
9644
|
-
}),
|
|
9645
|
-
handlePointerDown:
|
|
9646
|
-
handlePointerMove:
|
|
9647
|
-
handlePointerUp:
|
|
9648
|
-
handleScroll:
|
|
9644
|
+
}), fe = i.useMemo(() => ({
|
|
9645
|
+
handlePointerDown: ie,
|
|
9646
|
+
handlePointerMove: ae,
|
|
9647
|
+
handlePointerUp: oe,
|
|
9648
|
+
handleScroll: re,
|
|
9649
9649
|
cornerSize: O,
|
|
9650
9650
|
setCornerSize: k,
|
|
9651
9651
|
thumbSize: A,
|
|
@@ -9671,7 +9671,7 @@ var Kp = {
|
|
|
9671
9671
|
setHiddenState: F,
|
|
9672
9672
|
overflowEdges: M,
|
|
9673
9673
|
setOverflowEdges: N,
|
|
9674
|
-
viewportState:
|
|
9674
|
+
viewportState: le,
|
|
9675
9675
|
overflowEdgeThreshold: {
|
|
9676
9676
|
xStart: c,
|
|
9677
9677
|
xEnd: l,
|
|
@@ -9679,10 +9679,10 @@ var Kp = {
|
|
|
9679
9679
|
yEnd: d
|
|
9680
9680
|
}
|
|
9681
9681
|
}), [
|
|
9682
|
-
re,
|
|
9683
9682
|
ie,
|
|
9684
9683
|
ae,
|
|
9685
|
-
|
|
9684
|
+
oe,
|
|
9685
|
+
re,
|
|
9686
9686
|
O,
|
|
9687
9687
|
A,
|
|
9688
9688
|
E,
|
|
@@ -9696,15 +9696,15 @@ var Kp = {
|
|
|
9696
9696
|
f,
|
|
9697
9697
|
P,
|
|
9698
9698
|
M,
|
|
9699
|
-
|
|
9699
|
+
le,
|
|
9700
9700
|
c,
|
|
9701
9701
|
l,
|
|
9702
9702
|
u,
|
|
9703
9703
|
d
|
|
9704
9704
|
]);
|
|
9705
9705
|
return /*#__PURE__*/ b(Pp.Provider, {
|
|
9706
|
-
value:
|
|
9707
|
-
children: [!g && Bp.getElement(h),
|
|
9706
|
+
value: fe,
|
|
9707
|
+
children: [!g && Bp.getElement(h), de]
|
|
9708
9708
|
});
|
|
9709
9709
|
});
|
|
9710
9710
|
process.env.NODE_ENV !== "production" && (Xp.displayName = "ScrollAreaRoot");
|
|
@@ -9783,41 +9783,41 @@ var am = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
9783
9783
|
let e = 0;
|
|
9784
9784
|
e = $p(O === "rtl" ? -S : S, 0, P), I = nm(e, P), L = P - I;
|
|
9785
9785
|
}
|
|
9786
|
-
let R = k ? 0 : $p(x, 0, F), z = k ? 0 : nm(R, F), B = k ? 0 : F - z, V = j ? 0 : y, H = k ? 0 : v, U = 0,
|
|
9787
|
-
!j && !k && (U = t?.offsetWidth || 0,
|
|
9788
|
-
let
|
|
9789
|
-
if (h((e) => e.height ===
|
|
9790
|
-
width:
|
|
9791
|
-
height:
|
|
9786
|
+
let R = k ? 0 : $p(x, 0, F), z = k ? 0 : nm(R, F), B = k ? 0 : F - z, V = j ? 0 : y, H = k ? 0 : v, U = 0, ee = 0;
|
|
9787
|
+
!j && !k && (U = t?.offsetWidth || 0, ee = n?.offsetHeight || 0);
|
|
9788
|
+
let W = p.width === 0 && p.height === 0, G = W ? U : 0, K = W ? ee : 0, te = Lp(n, "padding", "x"), ne = Lp(t, "padding", "y"), re = Lp(i, "margin", "x"), ie = Lp(r, "margin", "y"), ae = V - te - re, oe = H - ne - ie, se = n ? Math.min(n.offsetWidth - G, ae) : ae, ce = t ? Math.min(t.offsetHeight - K, oe) : oe, le = Math.max(16, se * M), ue = Math.max(16, ce * N);
|
|
9789
|
+
if (h((e) => e.height === ue && e.width === le ? e : {
|
|
9790
|
+
width: le,
|
|
9791
|
+
height: ue
|
|
9792
9792
|
}), t && r) {
|
|
9793
|
-
let e = t.offsetHeight -
|
|
9793
|
+
let e = t.offsetHeight - ue - ne - ie, n = o - v, i = n === 0 ? 0 : x / n, a = Math.min(e, Math.max(0, i * e));
|
|
9794
9794
|
r.style.transform = `translate3d(0,${a}px,0)`;
|
|
9795
9795
|
}
|
|
9796
9796
|
if (n && i) {
|
|
9797
|
-
let e = n.offsetWidth -
|
|
9797
|
+
let e = n.offsetWidth - le - te - re, t = g - y, r = t === 0 ? 0 : S / t, a = O === "rtl" ? $p(r * e, -e, 0) : $p(r * e, 0, e);
|
|
9798
9798
|
i.style.transform = `translate3d(${a}px,0,0)`;
|
|
9799
9799
|
}
|
|
9800
|
-
let
|
|
9800
|
+
let de = [
|
|
9801
9801
|
[em.scrollAreaOverflowXStart, I],
|
|
9802
9802
|
[em.scrollAreaOverflowXEnd, L],
|
|
9803
9803
|
[em.scrollAreaOverflowYStart, z],
|
|
9804
9804
|
[em.scrollAreaOverflowYEnd, B]
|
|
9805
9805
|
];
|
|
9806
|
-
for (let [t, n] of
|
|
9806
|
+
for (let [t, n] of de) e.style.setProperty(t, `${n}px`);
|
|
9807
9807
|
a && (j || k ? m({
|
|
9808
9808
|
width: 0,
|
|
9809
9809
|
height: 0
|
|
9810
9810
|
}) : !j && !k && m({
|
|
9811
9811
|
width: U,
|
|
9812
|
-
height:
|
|
9812
|
+
height: ee
|
|
9813
9813
|
})), _((e) => sm(e, D));
|
|
9814
|
-
let
|
|
9814
|
+
let fe = {
|
|
9815
9815
|
xStart: !j && I > T.xStart,
|
|
9816
9816
|
xEnd: !j && L > T.xEnd,
|
|
9817
9817
|
yStart: !k && z > T.yStart,
|
|
9818
9818
|
yEnd: !k && B > T.yEnd
|
|
9819
9819
|
};
|
|
9820
|
-
C((e) => e.xStart ===
|
|
9820
|
+
C((e) => e.xStart === fe.xStart && e.xEnd === fe.xEnd && e.yStart === fe.yStart && e.yEnd === fe.yEnd ? e : fe);
|
|
9821
9821
|
});
|
|
9822
9822
|
Z(() => {
|
|
9823
9823
|
s.current && im();
|
|
@@ -13708,54 +13708,54 @@ function Uv(e) {
|
|
|
13708
13708
|
"strong"
|
|
13709
13709
|
],
|
|
13710
13710
|
enter: {
|
|
13711
|
-
autolink: a(
|
|
13711
|
+
autolink: a(ce),
|
|
13712
13712
|
autolinkProtocol: T,
|
|
13713
13713
|
autolinkEmail: T,
|
|
13714
|
-
atxHeading: a(
|
|
13715
|
-
blockQuote: a(
|
|
13714
|
+
atxHeading: a(ie),
|
|
13715
|
+
blockQuote: a(G),
|
|
13716
13716
|
characterEscape: T,
|
|
13717
13717
|
characterReference: T,
|
|
13718
|
-
codeFenced: a(
|
|
13718
|
+
codeFenced: a(K),
|
|
13719
13719
|
codeFencedFenceInfo: o,
|
|
13720
13720
|
codeFencedFenceMeta: o,
|
|
13721
|
-
codeIndented: a(
|
|
13722
|
-
codeText: a(
|
|
13721
|
+
codeIndented: a(K, o),
|
|
13722
|
+
codeText: a(te, o),
|
|
13723
13723
|
codeTextData: T,
|
|
13724
13724
|
data: T,
|
|
13725
13725
|
codeFlowValue: T,
|
|
13726
|
-
definition: a(
|
|
13726
|
+
definition: a(ne),
|
|
13727
13727
|
definitionDestinationString: o,
|
|
13728
13728
|
definitionLabelString: o,
|
|
13729
13729
|
definitionTitleString: o,
|
|
13730
|
-
emphasis: a(
|
|
13731
|
-
hardBreakEscape: a(
|
|
13732
|
-
hardBreakTrailing: a(
|
|
13733
|
-
htmlFlow: a(
|
|
13730
|
+
emphasis: a(re),
|
|
13731
|
+
hardBreakEscape: a(ae),
|
|
13732
|
+
hardBreakTrailing: a(ae),
|
|
13733
|
+
htmlFlow: a(oe, o),
|
|
13734
13734
|
htmlFlowData: T,
|
|
13735
|
-
htmlText: a(
|
|
13735
|
+
htmlText: a(oe, o),
|
|
13736
13736
|
htmlTextData: T,
|
|
13737
|
-
image: a(
|
|
13737
|
+
image: a(se),
|
|
13738
13738
|
label: o,
|
|
13739
|
-
link: a(
|
|
13740
|
-
listItem: a(
|
|
13739
|
+
link: a(ce),
|
|
13740
|
+
listItem: a(ue),
|
|
13741
13741
|
listItemValue: f,
|
|
13742
|
-
listOrdered: a(
|
|
13743
|
-
listUnordered: a(
|
|
13744
|
-
paragraph: a(
|
|
13742
|
+
listOrdered: a(le, d),
|
|
13743
|
+
listUnordered: a(le),
|
|
13744
|
+
paragraph: a(de),
|
|
13745
13745
|
reference: z,
|
|
13746
13746
|
referenceString: o,
|
|
13747
13747
|
resourceDestinationString: o,
|
|
13748
13748
|
resourceTitleString: o,
|
|
13749
|
-
setextHeading: a(
|
|
13750
|
-
strong: a(
|
|
13751
|
-
thematicBreak: a(
|
|
13749
|
+
setextHeading: a(ie),
|
|
13750
|
+
strong: a(fe),
|
|
13751
|
+
thematicBreak: a(me)
|
|
13752
13752
|
},
|
|
13753
13753
|
exit: {
|
|
13754
13754
|
atxHeading: c(),
|
|
13755
13755
|
atxHeadingSequence: x,
|
|
13756
13756
|
autolink: c(),
|
|
13757
|
-
autolinkEmail:
|
|
13758
|
-
autolinkProtocol:
|
|
13757
|
+
autolinkEmail: W,
|
|
13758
|
+
autolinkProtocol: ee,
|
|
13759
13759
|
blockQuote: c(),
|
|
13760
13760
|
characterEscapeValue: E,
|
|
13761
13761
|
characterReferenceMarkerHexadecimal: V,
|
|
@@ -13987,7 +13987,7 @@ function Uv(e) {
|
|
|
13987
13987
|
}
|
|
13988
13988
|
function T(e) {
|
|
13989
13989
|
let t = this.stack[this.stack.length - 1].children, n = t[t.length - 1];
|
|
13990
|
-
(!n || n.type !== "text") && (n =
|
|
13990
|
+
(!n || n.type !== "text") && (n = pe(), n.position = {
|
|
13991
13991
|
start: Wv(e.start),
|
|
13992
13992
|
end: void 0
|
|
13993
13993
|
}, t.push(n)), this.stack.push(n);
|
|
@@ -14075,23 +14075,23 @@ function Uv(e) {
|
|
|
14075
14075
|
let t = this.stack.pop();
|
|
14076
14076
|
t.position.end = Wv(e.end);
|
|
14077
14077
|
}
|
|
14078
|
-
function
|
|
14078
|
+
function ee(e) {
|
|
14079
14079
|
E.call(this, e);
|
|
14080
14080
|
let t = this.stack[this.stack.length - 1];
|
|
14081
14081
|
t.url = this.sliceSerialize(e);
|
|
14082
14082
|
}
|
|
14083
|
-
function
|
|
14083
|
+
function W(e) {
|
|
14084
14084
|
E.call(this, e);
|
|
14085
14085
|
let t = this.stack[this.stack.length - 1];
|
|
14086
14086
|
t.url = "mailto:" + this.sliceSerialize(e);
|
|
14087
14087
|
}
|
|
14088
|
-
function
|
|
14088
|
+
function G() {
|
|
14089
14089
|
return {
|
|
14090
14090
|
type: "blockquote",
|
|
14091
14091
|
children: []
|
|
14092
14092
|
};
|
|
14093
14093
|
}
|
|
14094
|
-
function
|
|
14094
|
+
function K() {
|
|
14095
14095
|
return {
|
|
14096
14096
|
type: "code",
|
|
14097
14097
|
lang: null,
|
|
@@ -14099,13 +14099,13 @@ function Uv(e) {
|
|
|
14099
14099
|
value: ""
|
|
14100
14100
|
};
|
|
14101
14101
|
}
|
|
14102
|
-
function
|
|
14102
|
+
function te() {
|
|
14103
14103
|
return {
|
|
14104
14104
|
type: "inlineCode",
|
|
14105
14105
|
value: ""
|
|
14106
14106
|
};
|
|
14107
14107
|
}
|
|
14108
|
-
function
|
|
14108
|
+
function ne() {
|
|
14109
14109
|
return {
|
|
14110
14110
|
type: "definition",
|
|
14111
14111
|
identifier: "",
|
|
@@ -14114,29 +14114,29 @@ function Uv(e) {
|
|
|
14114
14114
|
url: ""
|
|
14115
14115
|
};
|
|
14116
14116
|
}
|
|
14117
|
-
function
|
|
14117
|
+
function re() {
|
|
14118
14118
|
return {
|
|
14119
14119
|
type: "emphasis",
|
|
14120
14120
|
children: []
|
|
14121
14121
|
};
|
|
14122
14122
|
}
|
|
14123
|
-
function
|
|
14123
|
+
function ie() {
|
|
14124
14124
|
return {
|
|
14125
14125
|
type: "heading",
|
|
14126
14126
|
depth: 0,
|
|
14127
14127
|
children: []
|
|
14128
14128
|
};
|
|
14129
14129
|
}
|
|
14130
|
-
function
|
|
14130
|
+
function ae() {
|
|
14131
14131
|
return { type: "break" };
|
|
14132
14132
|
}
|
|
14133
|
-
function
|
|
14133
|
+
function oe() {
|
|
14134
14134
|
return {
|
|
14135
14135
|
type: "html",
|
|
14136
14136
|
value: ""
|
|
14137
14137
|
};
|
|
14138
14138
|
}
|
|
14139
|
-
function
|
|
14139
|
+
function se() {
|
|
14140
14140
|
return {
|
|
14141
14141
|
type: "image",
|
|
14142
14142
|
title: null,
|
|
@@ -14144,7 +14144,7 @@ function Uv(e) {
|
|
|
14144
14144
|
alt: null
|
|
14145
14145
|
};
|
|
14146
14146
|
}
|
|
14147
|
-
function
|
|
14147
|
+
function ce() {
|
|
14148
14148
|
return {
|
|
14149
14149
|
type: "link",
|
|
14150
14150
|
title: null,
|
|
@@ -14152,7 +14152,7 @@ function Uv(e) {
|
|
|
14152
14152
|
children: []
|
|
14153
14153
|
};
|
|
14154
14154
|
}
|
|
14155
|
-
function
|
|
14155
|
+
function le(e) {
|
|
14156
14156
|
return {
|
|
14157
14157
|
type: "list",
|
|
14158
14158
|
ordered: e.type === "listOrdered",
|
|
@@ -14161,7 +14161,7 @@ function Uv(e) {
|
|
|
14161
14161
|
children: []
|
|
14162
14162
|
};
|
|
14163
14163
|
}
|
|
14164
|
-
function
|
|
14164
|
+
function ue(e) {
|
|
14165
14165
|
return {
|
|
14166
14166
|
type: "listItem",
|
|
14167
14167
|
spread: e._spread,
|
|
@@ -14169,25 +14169,25 @@ function Uv(e) {
|
|
|
14169
14169
|
children: []
|
|
14170
14170
|
};
|
|
14171
14171
|
}
|
|
14172
|
-
function
|
|
14172
|
+
function de() {
|
|
14173
14173
|
return {
|
|
14174
14174
|
type: "paragraph",
|
|
14175
14175
|
children: []
|
|
14176
14176
|
};
|
|
14177
14177
|
}
|
|
14178
|
-
function
|
|
14178
|
+
function fe() {
|
|
14179
14179
|
return {
|
|
14180
14180
|
type: "strong",
|
|
14181
14181
|
children: []
|
|
14182
14182
|
};
|
|
14183
14183
|
}
|
|
14184
|
-
function
|
|
14184
|
+
function pe() {
|
|
14185
14185
|
return {
|
|
14186
14186
|
type: "text",
|
|
14187
14187
|
value: ""
|
|
14188
14188
|
};
|
|
14189
14189
|
}
|
|
14190
|
-
function
|
|
14190
|
+
function me() {
|
|
14191
14191
|
return { type: "thematicBreak" };
|
|
14192
14192
|
}
|
|
14193
14193
|
}
|
|
@@ -17117,22 +17117,22 @@ var GS = /* @__PURE__ */ r(((e) => {
|
|
|
17117
17117
|
function U(e) {
|
|
17118
17118
|
return x(e) === h;
|
|
17119
17119
|
}
|
|
17120
|
-
function
|
|
17120
|
+
function ee(e) {
|
|
17121
17121
|
return x(e) === m;
|
|
17122
17122
|
}
|
|
17123
|
-
function
|
|
17123
|
+
function W(e) {
|
|
17124
17124
|
return x(e) === r;
|
|
17125
17125
|
}
|
|
17126
|
-
function
|
|
17126
|
+
function G(e) {
|
|
17127
17127
|
return x(e) === o;
|
|
17128
17128
|
}
|
|
17129
|
-
function
|
|
17129
|
+
function K(e) {
|
|
17130
17130
|
return x(e) === a;
|
|
17131
17131
|
}
|
|
17132
|
-
function
|
|
17132
|
+
function te(e) {
|
|
17133
17133
|
return x(e) === f;
|
|
17134
17134
|
}
|
|
17135
|
-
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = R, e.isContextProvider = z, e.isElement = B, e.isForwardRef = V, e.isFragment = H, e.isLazy = U, e.isMemo =
|
|
17135
|
+
e.AsyncMode = S, e.ConcurrentMode = C, e.ContextConsumer = w, e.ContextProvider = T, e.Element = E, e.ForwardRef = D, e.Fragment = O, e.Lazy = k, e.Memo = A, e.Portal = j, e.Profiler = M, e.StrictMode = N, e.Suspense = P, e.isAsyncMode = I, e.isConcurrentMode = L, e.isContextConsumer = R, e.isContextProvider = z, e.isElement = B, e.isForwardRef = V, e.isFragment = H, e.isLazy = U, e.isMemo = ee, e.isPortal = W, e.isProfiler = G, e.isStrictMode = K, e.isSuspense = te, e.isValidElementType = b, e.typeOf = x;
|
|
17136
17136
|
})();
|
|
17137
17137
|
})), qS = /* @__PURE__ */ r(((e, t) => {
|
|
17138
17138
|
process.env.NODE_ENV === "production" ? t.exports = GS() : t.exports = KS();
|
|
@@ -17943,7 +17943,7 @@ var GC = class extends i.Component {
|
|
|
17943
17943
|
y: IC(this) && m ? this.state.y : h.y
|
|
17944
17944
|
};
|
|
17945
17945
|
this.state.isElementSVG ? p = CC(g, l) : f = SC(g, l);
|
|
17946
|
-
let _ = i.Children.only(n), v =
|
|
17946
|
+
let _ = i.Children.only(n), v = ee(_.props.className || "", a, {
|
|
17947
17947
|
[o]: this.state.dragging,
|
|
17948
17948
|
[s]: this.state.dragged
|
|
17949
17949
|
});
|
|
@@ -18029,26 +18029,26 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18029
18029
|
}
|
|
18030
18030
|
t.exports = r, t.exports.clsx = r;
|
|
18031
18031
|
})), qC = /* @__PURE__ */ r(((e, t) => {
|
|
18032
|
-
var
|
|
18033
|
-
for (var n in t)
|
|
18032
|
+
var n = Object.create, r = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, c = Object.prototype.hasOwnProperty, l = (e, t) => {
|
|
18033
|
+
for (var n in t) r(e, n, {
|
|
18034
18034
|
get: t[n],
|
|
18035
18035
|
enumerable: !0
|
|
18036
18036
|
});
|
|
18037
|
-
}, u = (e, t, n,
|
|
18038
|
-
if (t && typeof t == "object" || typeof t == "function") for (let s of o(t)) !c.call(e, s) && s !== n &&
|
|
18037
|
+
}, u = (e, t, n, i) => {
|
|
18038
|
+
if (t && typeof t == "object" || typeof t == "function") for (let s of o(t)) !c.call(e, s) && s !== n && r(e, s, {
|
|
18039
18039
|
get: () => t[s],
|
|
18040
|
-
enumerable: !(
|
|
18040
|
+
enumerable: !(i = a(t, s)) || i.enumerable
|
|
18041
18041
|
});
|
|
18042
18042
|
return e;
|
|
18043
|
-
}, d = (e, t,
|
|
18043
|
+
}, d = (e, t, i) => (i = e == null ? {} : n(s(e)), u(t || !e || !e.__esModule ? r(i, "default", {
|
|
18044
18044
|
value: e,
|
|
18045
18045
|
enumerable: !0
|
|
18046
|
-
}) :
|
|
18046
|
+
}) : i, e)), f = (e) => u(r({}, "__esModule", { value: !0 }), e), p = {};
|
|
18047
18047
|
l(p, {
|
|
18048
|
-
DraggableCore: () =>
|
|
18049
|
-
default: () =>
|
|
18048
|
+
DraggableCore: () => q,
|
|
18049
|
+
default: () => _e
|
|
18050
18050
|
}), t.exports = f(p);
|
|
18051
|
-
var m = d(
|
|
18051
|
+
var m = d(i), h = d(eC()), g = d(x), _ = KC();
|
|
18052
18052
|
function v(e, t) {
|
|
18053
18053
|
for (let n = 0, r = e.length; n < r; n++) if (t.apply(t, [
|
|
18054
18054
|
e[n],
|
|
@@ -18062,36 +18062,36 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18062
18062
|
function b(e) {
|
|
18063
18063
|
return typeof e == "number" && !isNaN(e);
|
|
18064
18064
|
}
|
|
18065
|
-
function
|
|
18065
|
+
function S(e) {
|
|
18066
18066
|
return parseInt(e, 10);
|
|
18067
18067
|
}
|
|
18068
|
-
function
|
|
18068
|
+
function C(e, t, n) {
|
|
18069
18069
|
if (e[t]) return /* @__PURE__ */ Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`);
|
|
18070
18070
|
}
|
|
18071
|
-
var
|
|
18071
|
+
var w = [
|
|
18072
18072
|
"Moz",
|
|
18073
18073
|
"Webkit",
|
|
18074
18074
|
"O",
|
|
18075
18075
|
"ms"
|
|
18076
18076
|
];
|
|
18077
|
-
function
|
|
18077
|
+
function T(e = "transform") {
|
|
18078
18078
|
if (typeof window > "u") return "";
|
|
18079
18079
|
let t = window.document?.documentElement?.style;
|
|
18080
18080
|
if (!t || e in t) return "";
|
|
18081
|
-
for (let n = 0; n <
|
|
18081
|
+
for (let n = 0; n < w.length; n++) if (E(e, w[n]) in t) return w[n];
|
|
18082
18082
|
return "";
|
|
18083
18083
|
}
|
|
18084
|
-
function
|
|
18085
|
-
return t ? `${t}${
|
|
18084
|
+
function E(e, t) {
|
|
18085
|
+
return t ? `${t}${D(e)}` : e;
|
|
18086
18086
|
}
|
|
18087
|
-
function
|
|
18087
|
+
function D(e) {
|
|
18088
18088
|
let t = "", n = !0;
|
|
18089
18089
|
for (let r = 0; r < e.length; r++) n ? (t += e[r].toUpperCase(), n = !1) : e[r] === "-" ? n = !0 : t += e[r];
|
|
18090
18090
|
return t;
|
|
18091
18091
|
}
|
|
18092
|
-
var
|
|
18093
|
-
function
|
|
18094
|
-
|
|
18092
|
+
var O = T(), k = "";
|
|
18093
|
+
function A(e, t) {
|
|
18094
|
+
k ||= v([
|
|
18095
18095
|
"matches",
|
|
18096
18096
|
"webkitMatchesSelector",
|
|
18097
18097
|
"mozMatchesSelector",
|
|
@@ -18100,19 +18100,19 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18100
18100
|
], function(t) {
|
|
18101
18101
|
return y(e[t]);
|
|
18102
18102
|
}) ?? "";
|
|
18103
|
-
let n = e[
|
|
18103
|
+
let n = e[k];
|
|
18104
18104
|
return y(n) ? !!n.call(e, t) : !1;
|
|
18105
18105
|
}
|
|
18106
|
-
function
|
|
18106
|
+
function j(e, t, n) {
|
|
18107
18107
|
let r = e;
|
|
18108
18108
|
do {
|
|
18109
|
-
if (
|
|
18109
|
+
if (A(r, t)) return !0;
|
|
18110
18110
|
if (r === n) return !1;
|
|
18111
18111
|
r = r.parentNode;
|
|
18112
18112
|
} while (r);
|
|
18113
18113
|
return !1;
|
|
18114
18114
|
}
|
|
18115
|
-
function
|
|
18115
|
+
function M(e, t, n, r) {
|
|
18116
18116
|
if (!e) return;
|
|
18117
18117
|
let i = {
|
|
18118
18118
|
capture: !0,
|
|
@@ -18120,7 +18120,7 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18120
18120
|
}, a = n;
|
|
18121
18121
|
e.addEventListener ? e.addEventListener(t, a, i) : e.attachEvent ? e.attachEvent("on" + t, a) : e["on" + t] = a;
|
|
18122
18122
|
}
|
|
18123
|
-
function
|
|
18123
|
+
function N(e, t, n, r) {
|
|
18124
18124
|
if (!e) return;
|
|
18125
18125
|
let i = {
|
|
18126
18126
|
capture: !0,
|
|
@@ -18128,23 +18128,23 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18128
18128
|
}, a = n;
|
|
18129
18129
|
e.removeEventListener ? e.removeEventListener(t, a, i) : e.detachEvent ? e.detachEvent("on" + t, a) : e["on" + t] = null;
|
|
18130
18130
|
}
|
|
18131
|
-
function
|
|
18131
|
+
function P(e) {
|
|
18132
18132
|
let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
18133
|
-
return t +=
|
|
18133
|
+
return t += S(n.borderTopWidth), t += S(n.borderBottomWidth), t;
|
|
18134
18134
|
}
|
|
18135
|
-
function
|
|
18135
|
+
function F(e) {
|
|
18136
18136
|
let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
18137
|
-
return t +=
|
|
18137
|
+
return t += S(n.borderLeftWidth), t += S(n.borderRightWidth), t;
|
|
18138
18138
|
}
|
|
18139
|
-
function
|
|
18139
|
+
function I(e) {
|
|
18140
18140
|
let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
18141
|
-
return t -=
|
|
18141
|
+
return t -= S(n.paddingTop), t -= S(n.paddingBottom), t;
|
|
18142
18142
|
}
|
|
18143
|
-
function
|
|
18143
|
+
function L(e) {
|
|
18144
18144
|
let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
18145
|
-
return t -=
|
|
18145
|
+
return t -= S(n.paddingLeft), t -= S(n.paddingRight), t;
|
|
18146
18146
|
}
|
|
18147
|
-
function
|
|
18147
|
+
function R(e, t, n) {
|
|
18148
18148
|
let r = t === t.ownerDocument.body ? {
|
|
18149
18149
|
left: 0,
|
|
18150
18150
|
top: 0
|
|
@@ -18154,25 +18154,25 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18154
18154
|
y: (e.clientY + t.scrollTop - r.top) / n
|
|
18155
18155
|
};
|
|
18156
18156
|
}
|
|
18157
|
-
function R(e, t) {
|
|
18158
|
-
let n = B(e, t, "px");
|
|
18159
|
-
return { [T("transform", D)]: n };
|
|
18160
|
-
}
|
|
18161
18157
|
function z(e, t) {
|
|
18162
|
-
|
|
18158
|
+
let n = V(e, t, "px");
|
|
18159
|
+
return { [E("transform", O)]: n };
|
|
18163
18160
|
}
|
|
18164
|
-
function B(
|
|
18161
|
+
function B(e, t) {
|
|
18162
|
+
return V(e, t, "");
|
|
18163
|
+
}
|
|
18164
|
+
function V({ x: e, y: t }, n, r) {
|
|
18165
18165
|
let i = `translate(${e}${r},${t}${r})`;
|
|
18166
18166
|
return n && (i = `translate(${`${typeof n.x == "string" ? n.x : n.x + r}`}, ${`${typeof n.y == "string" ? n.y : n.y + r}`})` + i), i;
|
|
18167
18167
|
}
|
|
18168
|
-
function
|
|
18168
|
+
function H(e, t) {
|
|
18169
18169
|
return e.targetTouches && v(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && v(e.changedTouches, (e) => t === e.identifier);
|
|
18170
18170
|
}
|
|
18171
|
-
function
|
|
18171
|
+
function U(e) {
|
|
18172
18172
|
if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
|
|
18173
18173
|
if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
|
|
18174
18174
|
}
|
|
18175
|
-
function
|
|
18175
|
+
function ee() {
|
|
18176
18176
|
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
|
18177
18177
|
}
|
|
18178
18178
|
function W(e, t) {
|
|
@@ -18180,10 +18180,10 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18180
18180
|
let n = e.getElementById("react-draggable-style-el");
|
|
18181
18181
|
if (!n) {
|
|
18182
18182
|
n = e.createElement("style"), n.type = "text/css", n.id = "react-draggable-style-el";
|
|
18183
|
-
let r = t ??
|
|
18183
|
+
let r = t ?? ee();
|
|
18184
18184
|
r && n.setAttribute("nonce", r), n.innerHTML = ".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n", n.innerHTML += ".react-draggable-transparent-selection *::selection {all: inherit;}\n", e.getElementsByTagName("head")[0].appendChild(n);
|
|
18185
18185
|
}
|
|
18186
|
-
e.body &&
|
|
18186
|
+
e.body && te(e.body, "react-draggable-transparent-selection");
|
|
18187
18187
|
}
|
|
18188
18188
|
function G(e) {
|
|
18189
18189
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
@@ -18192,7 +18192,7 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18192
18192
|
}
|
|
18193
18193
|
function K(e) {
|
|
18194
18194
|
if (e) try {
|
|
18195
|
-
e.body &&
|
|
18195
|
+
e.body && ne(e.body, "react-draggable-transparent-selection");
|
|
18196
18196
|
let t = e.selection;
|
|
18197
18197
|
if (t) t.empty();
|
|
18198
18198
|
else {
|
|
@@ -18201,17 +18201,17 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18201
18201
|
}
|
|
18202
18202
|
} catch {}
|
|
18203
18203
|
}
|
|
18204
|
-
function
|
|
18204
|
+
function te(e, t) {
|
|
18205
18205
|
e.classList ? e.classList.add(t) : e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`)) || (e.className += ` ${t}`);
|
|
18206
18206
|
}
|
|
18207
|
-
function
|
|
18207
|
+
function ne(e, t) {
|
|
18208
18208
|
e.classList ? e.classList.remove(t) : e.className = e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`, "g"), "");
|
|
18209
18209
|
}
|
|
18210
|
-
function
|
|
18210
|
+
function re(e, t, n) {
|
|
18211
18211
|
if (!e.props.bounds) return [t, n];
|
|
18212
18212
|
let { bounds: r } = e.props;
|
|
18213
|
-
r = typeof r == "string" ? r :
|
|
18214
|
-
let i =
|
|
18213
|
+
r = typeof r == "string" ? r : ue(r);
|
|
18214
|
+
let i = de(e);
|
|
18215
18215
|
if (typeof r == "string") {
|
|
18216
18216
|
let { ownerDocument: e } = i, t = e.defaultView;
|
|
18217
18217
|
if (!t) throw Error("Cannot resolve the owner window of the draggable node.");
|
|
@@ -18219,31 +18219,31 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18219
18219
|
if (n = r === "parent" ? i.parentNode : i.getRootNode().querySelector(r), !(n instanceof t.HTMLElement)) throw Error("Bounds selector \"" + r + "\" could not find an element.");
|
|
18220
18220
|
let a = n, o = t.getComputedStyle(i), s = t.getComputedStyle(a);
|
|
18221
18221
|
r = {
|
|
18222
|
-
left: -i.offsetLeft +
|
|
18223
|
-
top: -i.offsetTop +
|
|
18224
|
-
right:
|
|
18225
|
-
bottom:
|
|
18222
|
+
left: -i.offsetLeft + S(s.paddingLeft) + S(o.marginLeft),
|
|
18223
|
+
top: -i.offsetTop + S(s.paddingTop) + S(o.marginTop),
|
|
18224
|
+
right: L(a) - F(i) - i.offsetLeft + S(s.paddingRight) - S(o.marginRight),
|
|
18225
|
+
bottom: I(a) - P(i) - i.offsetTop + S(s.paddingBottom) - S(o.marginBottom)
|
|
18226
18226
|
};
|
|
18227
18227
|
}
|
|
18228
18228
|
return b(r.right) && (t = Math.min(t, r.right)), b(r.bottom) && (n = Math.min(n, r.bottom)), b(r.left) && (t = Math.max(t, r.left)), b(r.top) && (n = Math.max(n, r.top)), [t, n];
|
|
18229
18229
|
}
|
|
18230
|
-
function
|
|
18230
|
+
function ie(e, t, n) {
|
|
18231
18231
|
return [Math.round(t / e[0]) * e[0], Math.round(n / e[1]) * e[1]];
|
|
18232
18232
|
}
|
|
18233
|
-
function
|
|
18233
|
+
function ae(e) {
|
|
18234
18234
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
18235
18235
|
}
|
|
18236
|
-
function
|
|
18236
|
+
function oe(e) {
|
|
18237
18237
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
18238
18238
|
}
|
|
18239
|
-
function
|
|
18240
|
-
let r = typeof t == "number" ?
|
|
18239
|
+
function se(e, t, n) {
|
|
18240
|
+
let r = typeof t == "number" ? H(e, t) : null;
|
|
18241
18241
|
if (typeof t == "number" && !r) return null;
|
|
18242
|
-
let i =
|
|
18243
|
-
return
|
|
18242
|
+
let i = de(n), a = n.props.offsetParent || i.offsetParent || i.ownerDocument.body;
|
|
18243
|
+
return R(r || e, a, n.props.scale);
|
|
18244
18244
|
}
|
|
18245
|
-
function
|
|
18246
|
-
let r = !b(e.lastX), i =
|
|
18245
|
+
function ce(e, t, n) {
|
|
18246
|
+
let r = !b(e.lastX), i = de(e);
|
|
18247
18247
|
return r ? {
|
|
18248
18248
|
node: i,
|
|
18249
18249
|
deltaX: 0,
|
|
@@ -18262,7 +18262,7 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18262
18262
|
y: n
|
|
18263
18263
|
};
|
|
18264
18264
|
}
|
|
18265
|
-
function
|
|
18265
|
+
function le(e, t) {
|
|
18266
18266
|
let n = e.props.scale;
|
|
18267
18267
|
return {
|
|
18268
18268
|
node: t.node,
|
|
@@ -18274,7 +18274,7 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18274
18274
|
lastY: e.state.y
|
|
18275
18275
|
};
|
|
18276
18276
|
}
|
|
18277
|
-
function
|
|
18277
|
+
function ue(e) {
|
|
18278
18278
|
return {
|
|
18279
18279
|
left: e.left,
|
|
18280
18280
|
top: e.top,
|
|
@@ -18282,12 +18282,12 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18282
18282
|
bottom: e.bottom
|
|
18283
18283
|
};
|
|
18284
18284
|
}
|
|
18285
|
-
function
|
|
18285
|
+
function de(e) {
|
|
18286
18286
|
let t = e.findDOMNode();
|
|
18287
18287
|
if (!t) throw Error("<DraggableCore>: Unmounted during event!");
|
|
18288
18288
|
return t;
|
|
18289
18289
|
}
|
|
18290
|
-
var
|
|
18290
|
+
var fe = d(i), pe = d(eC()), me = d(x), he = {
|
|
18291
18291
|
touch: {
|
|
18292
18292
|
start: "touchstart",
|
|
18293
18293
|
move: "touchmove",
|
|
@@ -18298,31 +18298,31 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18298
18298
|
move: "mousemove",
|
|
18299
18299
|
stop: "mouseup"
|
|
18300
18300
|
}
|
|
18301
|
-
},
|
|
18301
|
+
}, ge = he.mouse, q = class extends fe.Component {
|
|
18302
18302
|
constructor() {
|
|
18303
18303
|
super(...arguments), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, this.touchIdentifier = null, this.mounted = !1, this.handleDragStart = (e) => {
|
|
18304
18304
|
if (this.props.onMouseDown(e), !this.props.allowAnyClick && (typeof e.button == "number" && e.button !== 0 || e.ctrlKey)) return !1;
|
|
18305
18305
|
let t = this.findDOMNode();
|
|
18306
18306
|
if (!t || !t.ownerDocument || !t.ownerDocument.body) throw Error("<DraggableCore> not mounted on DragStart!");
|
|
18307
18307
|
let { ownerDocument: n } = t;
|
|
18308
|
-
if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !
|
|
18308
|
+
if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !j(e.target, this.props.handle, t) || this.props.cancel && j(e.target, this.props.cancel, t)) return;
|
|
18309
18309
|
e.type === "touchstart" && !this.props.allowMobileScroll && e.preventDefault();
|
|
18310
|
-
let r =
|
|
18310
|
+
let r = U(e);
|
|
18311
18311
|
this.touchIdentifier = r;
|
|
18312
|
-
let i =
|
|
18312
|
+
let i = se(e, r, this);
|
|
18313
18313
|
if (i == null) return;
|
|
18314
|
-
let { x: a, y: o } = i, s =
|
|
18315
|
-
this.props.onStart, !(this.props.onStart(e, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && W(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o,
|
|
18314
|
+
let { x: a, y: o } = i, s = ce(this, a, o);
|
|
18315
|
+
this.props.onStart, !(this.props.onStart(e, s) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && W(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, M(n, ge.move, this.handleDrag), M(n, ge.stop, this.handleDragStop));
|
|
18316
18316
|
}, this.handleDrag = (e) => {
|
|
18317
|
-
let t =
|
|
18317
|
+
let t = se(e, this.touchIdentifier, this);
|
|
18318
18318
|
if (t == null) return;
|
|
18319
18319
|
let { x: n, y: r } = t;
|
|
18320
18320
|
if (Array.isArray(this.props.grid)) {
|
|
18321
18321
|
let e = n - this.lastX, t = r - this.lastY;
|
|
18322
|
-
if ([e, t] =
|
|
18322
|
+
if ([e, t] = ie(this.props.grid, e, t), !e && !t) return;
|
|
18323
18323
|
n = this.lastX + e, r = this.lastY + t;
|
|
18324
18324
|
}
|
|
18325
|
-
let i =
|
|
18325
|
+
let i = ce(this, n, r);
|
|
18326
18326
|
if (this.props.onDrag(e, i) === !1 || this.mounted === !1) {
|
|
18327
18327
|
try {
|
|
18328
18328
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
@@ -18335,68 +18335,68 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18335
18335
|
this.lastX = n, this.lastY = r;
|
|
18336
18336
|
}, this.handleDragStop = (e) => {
|
|
18337
18337
|
if (!this.dragging) return;
|
|
18338
|
-
let t =
|
|
18338
|
+
let t = se(e, this.touchIdentifier, this);
|
|
18339
18339
|
if (t == null) return;
|
|
18340
18340
|
let { x: n, y: r } = t;
|
|
18341
18341
|
if (Array.isArray(this.props.grid)) {
|
|
18342
18342
|
let e = n - this.lastX || 0, t = r - this.lastY || 0;
|
|
18343
|
-
[e, t] =
|
|
18343
|
+
[e, t] = ie(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
|
|
18344
18344
|
}
|
|
18345
|
-
let i =
|
|
18345
|
+
let i = ce(this, n, r);
|
|
18346
18346
|
if (this.props.onStop(e, i) === !1 || this.mounted === !1) return !1;
|
|
18347
18347
|
let a = this.findDOMNode();
|
|
18348
|
-
a && this.props.enableUserSelectHack && G(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (
|
|
18349
|
-
}, this.onMouseDown = (e) => (
|
|
18348
|
+
a && this.props.enableUserSelectHack && G(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (N(a.ownerDocument, ge.move, this.handleDrag), N(a.ownerDocument, ge.stop, this.handleDragStop));
|
|
18349
|
+
}, this.onMouseDown = (e) => (ge = he.mouse, this.handleDragStart(e)), this.onMouseUp = (e) => (ge = he.mouse, this.handleDragStop(e)), this.onTouchStart = (e) => (ge = he.touch, this.handleDragStart(e)), this.onTouchEnd = (e) => (ge = he.touch, this.handleDragStop(e));
|
|
18350
18350
|
}
|
|
18351
18351
|
componentDidMount() {
|
|
18352
18352
|
this.mounted = !0;
|
|
18353
18353
|
let e = this.findDOMNode();
|
|
18354
|
-
e &&
|
|
18354
|
+
e && M(e, he.touch.start, this.onTouchStart, { passive: !1 });
|
|
18355
18355
|
}
|
|
18356
18356
|
componentWillUnmount() {
|
|
18357
18357
|
this.mounted = !1;
|
|
18358
18358
|
let e = this.findDOMNode();
|
|
18359
18359
|
if (e) {
|
|
18360
18360
|
let { ownerDocument: t } = e;
|
|
18361
|
-
|
|
18361
|
+
N(t, he.mouse.move, this.handleDrag), N(t, he.touch.move, this.handleDrag), N(t, he.mouse.stop, this.handleDragStop), N(t, he.touch.stop, this.handleDragStop), N(e, he.touch.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && G(t);
|
|
18362
18362
|
}
|
|
18363
18363
|
}
|
|
18364
18364
|
findDOMNode() {
|
|
18365
18365
|
if (this.props?.nodeRef) return this.props.nodeRef.current;
|
|
18366
|
-
let e =
|
|
18366
|
+
let e = me.default;
|
|
18367
18367
|
return typeof e.findDOMNode == "function" ? e.findDOMNode(this) : null;
|
|
18368
18368
|
}
|
|
18369
18369
|
render() {
|
|
18370
|
-
return
|
|
18370
|
+
return fe.cloneElement(fe.Children.only(this.props.children), {
|
|
18371
18371
|
onMouseDown: this.onMouseDown,
|
|
18372
18372
|
onMouseUp: this.onMouseUp,
|
|
18373
18373
|
onTouchEnd: this.onTouchEnd
|
|
18374
18374
|
});
|
|
18375
18375
|
}
|
|
18376
18376
|
};
|
|
18377
|
-
|
|
18378
|
-
allowAnyClick:
|
|
18379
|
-
allowMobileScroll:
|
|
18380
|
-
children:
|
|
18381
|
-
disabled:
|
|
18382
|
-
enableUserSelectHack:
|
|
18377
|
+
q.displayName = "DraggableCore", q.propTypes = {
|
|
18378
|
+
allowAnyClick: pe.default.bool,
|
|
18379
|
+
allowMobileScroll: pe.default.bool,
|
|
18380
|
+
children: pe.default.node.isRequired,
|
|
18381
|
+
disabled: pe.default.bool,
|
|
18382
|
+
enableUserSelectHack: pe.default.bool,
|
|
18383
18383
|
offsetParent: function(e, t) {
|
|
18384
18384
|
if (e[t] && e[t].nodeType !== 1) throw Error("Draggable's offsetParent must be a DOM Node.");
|
|
18385
18385
|
},
|
|
18386
|
-
grid:
|
|
18387
|
-
handle:
|
|
18388
|
-
cancel:
|
|
18389
|
-
nodeRef:
|
|
18390
|
-
nonce:
|
|
18391
|
-
onStart:
|
|
18392
|
-
onDrag:
|
|
18393
|
-
onStop:
|
|
18394
|
-
onMouseDown:
|
|
18395
|
-
scale:
|
|
18396
|
-
className:
|
|
18397
|
-
style:
|
|
18398
|
-
transform:
|
|
18399
|
-
},
|
|
18386
|
+
grid: pe.default.arrayOf(pe.default.number),
|
|
18387
|
+
handle: pe.default.string,
|
|
18388
|
+
cancel: pe.default.string,
|
|
18389
|
+
nodeRef: pe.default.object,
|
|
18390
|
+
nonce: pe.default.string,
|
|
18391
|
+
onStart: pe.default.func,
|
|
18392
|
+
onDrag: pe.default.func,
|
|
18393
|
+
onStop: pe.default.func,
|
|
18394
|
+
onMouseDown: pe.default.func,
|
|
18395
|
+
scale: pe.default.number,
|
|
18396
|
+
className: C,
|
|
18397
|
+
style: C,
|
|
18398
|
+
transform: C
|
|
18399
|
+
}, q.defaultProps = {
|
|
18400
18400
|
allowAnyClick: !1,
|
|
18401
18401
|
allowMobileScroll: !1,
|
|
18402
18402
|
disabled: !1,
|
|
@@ -18407,17 +18407,17 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18407
18407
|
onMouseDown: function() {},
|
|
18408
18408
|
scale: 1
|
|
18409
18409
|
};
|
|
18410
|
-
var
|
|
18410
|
+
var _e = class extends m.Component {
|
|
18411
18411
|
constructor(e) {
|
|
18412
18412
|
super(e), this.onDragStart = (e, t) => {
|
|
18413
|
-
if (this.props.onStart(e,
|
|
18413
|
+
if (this.props.onStart(e, le(this, t)) === !1) return !1;
|
|
18414
18414
|
this.setState({
|
|
18415
18415
|
dragging: !0,
|
|
18416
18416
|
dragged: !0
|
|
18417
18417
|
});
|
|
18418
18418
|
}, this.onDrag = (e, t) => {
|
|
18419
18419
|
if (!this.state.dragging) return !1;
|
|
18420
|
-
let n =
|
|
18420
|
+
let n = le(this, t), r = {
|
|
18421
18421
|
x: n.x,
|
|
18422
18422
|
y: n.y,
|
|
18423
18423
|
slackX: 0,
|
|
@@ -18426,13 +18426,13 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18426
18426
|
if (this.props.bounds) {
|
|
18427
18427
|
let { x: e, y: t } = r;
|
|
18428
18428
|
r.x += this.state.slackX, r.y += this.state.slackY;
|
|
18429
|
-
let [i, a] =
|
|
18429
|
+
let [i, a] = re(this, r.x, r.y);
|
|
18430
18430
|
r.x = i, r.y = a, r.slackX = this.state.slackX + (e - r.x), r.slackY = this.state.slackY + (t - r.y), n.x = r.x, n.y = r.y, n.deltaX = r.x - this.state.x, n.deltaY = r.y - this.state.y;
|
|
18431
18431
|
}
|
|
18432
18432
|
if (this.props.onDrag(e, n) === !1) return !1;
|
|
18433
18433
|
this.setState(r);
|
|
18434
18434
|
}, this.onDragStop = (e, t) => {
|
|
18435
|
-
if (!this.state.dragging || this.props.onStop(e,
|
|
18435
|
+
if (!this.state.dragging || this.props.onStop(e, le(this, t)) === !1) return !1;
|
|
18436
18436
|
let n = {
|
|
18437
18437
|
dragging: !1,
|
|
18438
18438
|
slackX: 0,
|
|
@@ -18474,15 +18474,15 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18474
18474
|
}
|
|
18475
18475
|
render() {
|
|
18476
18476
|
let { axis: e, bounds: t, children: n, defaultPosition: r, defaultClassName: i, defaultClassNameDragging: a, defaultClassNameDragged: o, position: s, positionOffset: c, scale: l, ...u } = this.props, d = {}, f = null, p = !s || this.state.dragging, h = s || r, g = {
|
|
18477
|
-
x:
|
|
18478
|
-
y:
|
|
18477
|
+
x: ae(this) && p ? this.state.x : h.x,
|
|
18478
|
+
y: oe(this) && p ? this.state.y : h.y
|
|
18479
18479
|
};
|
|
18480
|
-
this.state.isElementSVG ? f =
|
|
18480
|
+
this.state.isElementSVG ? f = B(g, c) : d = z(g, c);
|
|
18481
18481
|
let v = m.Children.only(n), y = (0, _.clsx)(v.props.className || "", i, {
|
|
18482
18482
|
[a]: this.state.dragging,
|
|
18483
18483
|
[o]: this.state.dragged
|
|
18484
18484
|
});
|
|
18485
|
-
return /* @__PURE__ */ m.createElement(
|
|
18485
|
+
return /* @__PURE__ */ m.createElement(q, {
|
|
18486
18486
|
...u,
|
|
18487
18487
|
onStart: this.onDragStart,
|
|
18488
18488
|
onDrag: this.onDrag,
|
|
@@ -18497,8 +18497,8 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18497
18497
|
}));
|
|
18498
18498
|
}
|
|
18499
18499
|
};
|
|
18500
|
-
|
|
18501
|
-
...
|
|
18500
|
+
_e.displayName = "Draggable", _e.propTypes = {
|
|
18501
|
+
...q.propTypes,
|
|
18502
18502
|
axis: h.default.oneOf([
|
|
18503
18503
|
"both",
|
|
18504
18504
|
"x",
|
|
@@ -18530,11 +18530,11 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18530
18530
|
x: h.default.number,
|
|
18531
18531
|
y: h.default.number
|
|
18532
18532
|
}),
|
|
18533
|
-
className:
|
|
18534
|
-
style:
|
|
18535
|
-
transform:
|
|
18536
|
-
},
|
|
18537
|
-
...
|
|
18533
|
+
className: C,
|
|
18534
|
+
style: C,
|
|
18535
|
+
transform: C
|
|
18536
|
+
}, _e.defaultProps = {
|
|
18537
|
+
...q.defaultProps,
|
|
18538
18538
|
axis: "both",
|
|
18539
18539
|
bounds: !1,
|
|
18540
18540
|
defaultClassName: "react-draggable",
|
|
@@ -18545,17 +18545,17 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18545
18545
|
y: 0
|
|
18546
18546
|
},
|
|
18547
18547
|
scale: 1
|
|
18548
|
-
}, 0 && (t.exports = { DraggableCore:
|
|
18548
|
+
}, 0 && (t.exports = { DraggableCore: q });
|
|
18549
18549
|
})), JC = /* @__PURE__ */ r(((e, t) => {
|
|
18550
18550
|
var n = qC(), r = n.DraggableCore, i = n.default || n;
|
|
18551
18551
|
t.exports = i, t.exports.default = i, t.exports.DraggableCore = r;
|
|
18552
18552
|
})), YC = /* @__PURE__ */ r(((e) => {
|
|
18553
18553
|
e.__esModule = !0, e.cloneElement = l;
|
|
18554
|
-
var t =
|
|
18555
|
-
function
|
|
18554
|
+
var t = n(i);
|
|
18555
|
+
function n(e) {
|
|
18556
18556
|
return e && e.__esModule ? e : { default: e };
|
|
18557
18557
|
}
|
|
18558
|
-
function
|
|
18558
|
+
function r(e, t) {
|
|
18559
18559
|
var n = Object.keys(e);
|
|
18560
18560
|
if (Object.getOwnPropertySymbols) {
|
|
18561
18561
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -18568,9 +18568,9 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18568
18568
|
function a(e) {
|
|
18569
18569
|
for (var t = 1; t < arguments.length; t++) {
|
|
18570
18570
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
18571
|
-
t % 2 ?
|
|
18571
|
+
t % 2 ? r(Object(n), !0).forEach(function(t) {
|
|
18572
18572
|
o(e, t, n[t]);
|
|
18573
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
18573
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function(t) {
|
|
18574
18574
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
18575
18575
|
});
|
|
18576
18576
|
}
|
|
@@ -18665,7 +18665,7 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18665
18665
|
};
|
|
18666
18666
|
})), ZC = /* @__PURE__ */ r(((e) => {
|
|
18667
18667
|
e.__esModule = !0, e.default = void 0;
|
|
18668
|
-
var t = s(
|
|
18668
|
+
var t = s(i), n = JC(), r = YC(), a = XC(), o = [
|
|
18669
18669
|
"children",
|
|
18670
18670
|
"className",
|
|
18671
18671
|
"draggableOpts",
|
|
@@ -18832,22 +18832,22 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18832
18832
|
return /*#__PURE__*/ t.cloneElement(r, a);
|
|
18833
18833
|
}
|
|
18834
18834
|
render() {
|
|
18835
|
-
let e = this.props,
|
|
18835
|
+
let e = this.props, i = e.children, a = e.className, s = e.draggableOpts;
|
|
18836
18836
|
e.width, e.height, e.handle, e.handleSize, e.lockAspectRatio, e.axis, e.minConstraints, e.maxConstraints, e.onResize, e.onResizeStop, e.onResizeStart;
|
|
18837
18837
|
let u = e.resizeHandles;
|
|
18838
18838
|
e.transformScale;
|
|
18839
18839
|
let f = l(e, o);
|
|
18840
|
-
return (0,
|
|
18840
|
+
return (0, r.cloneElement)(i, d(d({}, f), {}, {
|
|
18841
18841
|
className: (a ? a + " " : "") + "react-resizable",
|
|
18842
|
-
children: [...t.Children.toArray(
|
|
18843
|
-
let
|
|
18844
|
-
return /*#__PURE__*/ t.createElement(
|
|
18845
|
-
nodeRef:
|
|
18842
|
+
children: [...t.Children.toArray(i.props.children), ...u.map((e) => {
|
|
18843
|
+
let r = this.handleRefs[e] ?? (this.handleRefs[e] = /*#__PURE__*/ t.createRef());
|
|
18844
|
+
return /*#__PURE__*/ t.createElement(n.DraggableCore, c({}, s, {
|
|
18845
|
+
nodeRef: r,
|
|
18846
18846
|
key: "resizableHandle-" + e,
|
|
18847
18847
|
onStop: this.resizeHandler("onResizeStop", e),
|
|
18848
18848
|
onStart: this.resizeHandler("onResizeStart", e),
|
|
18849
18849
|
onDrag: this.resizeHandler("onResize", e)
|
|
18850
|
-
}), this.renderResizeHandle(e,
|
|
18850
|
+
}), this.renderResizeHandle(e, r));
|
|
18851
18851
|
})]
|
|
18852
18852
|
}));
|
|
18853
18853
|
}
|
|
@@ -18863,7 +18863,7 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18863
18863
|
};
|
|
18864
18864
|
})), QC = /* @__PURE__ */ r(((e) => {
|
|
18865
18865
|
e.__esModule = !0, e.default = void 0;
|
|
18866
|
-
var t = c(
|
|
18866
|
+
var t = c(i), n = s(eC()), r = s(ZC()), a = XC(), o = [
|
|
18867
18867
|
"handle",
|
|
18868
18868
|
"handleSize",
|
|
18869
18869
|
"onResize",
|
|
@@ -18982,16 +18982,16 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
18982
18982
|
} : null;
|
|
18983
18983
|
}
|
|
18984
18984
|
render() {
|
|
18985
|
-
let e = this.props, n = e.handle,
|
|
18985
|
+
let e = this.props, n = e.handle, i = e.handleSize;
|
|
18986
18986
|
e.onResize;
|
|
18987
18987
|
let a = e.onResizeStart, s = e.onResizeStop, c = e.draggableOpts, u = e.minConstraints, f = e.maxConstraints, p = e.lockAspectRatio, m = e.axis;
|
|
18988
18988
|
e.width, e.height;
|
|
18989
18989
|
let g = e.resizeHandles, _ = e.style, v = e.transformScale, y = h(e, o);
|
|
18990
|
-
return /*#__PURE__*/ t.createElement(
|
|
18990
|
+
return /*#__PURE__*/ t.createElement(r.default, {
|
|
18991
18991
|
axis: m,
|
|
18992
18992
|
draggableOpts: c,
|
|
18993
18993
|
handle: n,
|
|
18994
|
-
handleSize:
|
|
18994
|
+
handleSize: i,
|
|
18995
18995
|
height: this.state.height,
|
|
18996
18996
|
lockAspectRatio: p,
|
|
18997
18997
|
maxConstraints: f,
|
|
@@ -19008,27 +19008,27 @@ var KC = /* @__PURE__ */ r(((e, t) => {
|
|
|
19008
19008
|
}) })));
|
|
19009
19009
|
}
|
|
19010
19010
|
};
|
|
19011
|
-
e.default = g, g.propTypes = d(d({}, a.resizableProps), {}, { children:
|
|
19011
|
+
e.default = g, g.propTypes = d(d({}, a.resizableProps), {}, { children: n.default.element });
|
|
19012
19012
|
})), $C = (/* @__PURE__ */ r(((e, t) => {
|
|
19013
19013
|
t.exports = function() {
|
|
19014
19014
|
throw Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable");
|
|
19015
19015
|
}, t.exports.Resizable = ZC().default, t.exports.ResizableBox = QC().default;
|
|
19016
19016
|
})))(), ew = US();
|
|
19017
19017
|
function tw(e) {
|
|
19018
|
-
let { children: t, cols: n, containerWidth: r, margin: i, containerPadding: o, rowHeight: s, maxRows: c, isDraggable: l, isResizable: u, isBounded: f, static: m, useCSSTransforms: v = !0, usePercentages: b = !1, transformScale: x = 1, positionStrategy: S, dragThreshold: C = 0, droppingPosition: w, className: T = "", style: E, handle: D = "", cancel: O = "", x: k, y: A, w: j, h: M, minW: N = 1, maxW: P = Infinity, minH: F = 1, maxH: I = Infinity, i: L, resizeHandles: R, resizeHandle: z, constraints: B = fS, layoutItem: V, layout: H = [], onDragStart: U, onDrag:
|
|
19018
|
+
let { children: t, cols: n, containerWidth: r, margin: i, containerPadding: o, rowHeight: s, maxRows: c, isDraggable: l, isResizable: u, isBounded: f, static: m, useCSSTransforms: v = !0, usePercentages: b = !1, transformScale: x = 1, positionStrategy: S, dragThreshold: C = 0, droppingPosition: w, className: T = "", style: E, handle: D = "", cancel: O = "", x: k, y: A, w: j, h: M, minW: N = 1, maxW: P = Infinity, minH: F = 1, maxH: I = Infinity, i: L, resizeHandles: R, resizeHandle: z, constraints: B = fS, layoutItem: V, layout: H = [], onDragStart: U, onDrag: W, onDragStop: G, onResizeStart: K, onResize: te, onResizeStop: ne } = e, [re, ie] = _(!1), [ae, oe] = _(!1), se = g(null), ce = g({
|
|
19019
19019
|
left: 0,
|
|
19020
19020
|
top: 0
|
|
19021
|
-
}),
|
|
19021
|
+
}), le = g({
|
|
19022
19022
|
top: 0,
|
|
19023
19023
|
left: 0,
|
|
19024
19024
|
width: 0,
|
|
19025
19025
|
height: 0
|
|
19026
|
-
}),
|
|
19027
|
-
|
|
19028
|
-
let
|
|
19026
|
+
}), ue = g(void 0), de = g(H);
|
|
19027
|
+
de.current = H;
|
|
19028
|
+
let fe = g(null), pe = g(null), me = g(!1), he = g({
|
|
19029
19029
|
x: 0,
|
|
19030
19030
|
y: 0
|
|
19031
|
-
}),
|
|
19031
|
+
}), ge = g(!1), q = h(() => ({
|
|
19032
19032
|
cols: n,
|
|
19033
19033
|
containerPadding: o,
|
|
19034
19034
|
containerWidth: r,
|
|
@@ -19058,7 +19058,7 @@ function tw(e) {
|
|
|
19058
19058
|
i
|
|
19059
19059
|
]), ve = d(() => ({
|
|
19060
19060
|
..._e,
|
|
19061
|
-
layout:
|
|
19061
|
+
layout: de.current
|
|
19062
19062
|
}), [_e]), ye = h(() => V ?? {
|
|
19063
19063
|
i: L,
|
|
19064
19064
|
x: k,
|
|
@@ -19106,16 +19106,16 @@ function tw(e) {
|
|
|
19106
19106
|
left: a - o + n.scrollLeft,
|
|
19107
19107
|
top: s - c + n.scrollTop
|
|
19108
19108
|
};
|
|
19109
|
-
if (
|
|
19109
|
+
if (ce.current = l, C > 0) {
|
|
19110
19110
|
let t = e;
|
|
19111
|
-
|
|
19111
|
+
he.current = {
|
|
19112
19112
|
x: t.clientX,
|
|
19113
19113
|
y: t.clientY
|
|
19114
|
-
},
|
|
19114
|
+
}, me.current = !0, ge.current = !1, ie(!0);
|
|
19115
19115
|
return;
|
|
19116
19116
|
}
|
|
19117
|
-
|
|
19118
|
-
let u = Kx(
|
|
19117
|
+
ie(!0);
|
|
19118
|
+
let u = Kx(q, l.top, l.left), { x: d, y: f } = pS(B, ye, u.x, u.y, ve());
|
|
19119
19119
|
U(L, d, f, {
|
|
19120
19120
|
e,
|
|
19121
19121
|
node: t,
|
|
@@ -19124,7 +19124,7 @@ function tw(e) {
|
|
|
19124
19124
|
}, [
|
|
19125
19125
|
U,
|
|
19126
19126
|
x,
|
|
19127
|
-
|
|
19127
|
+
q,
|
|
19128
19128
|
S,
|
|
19129
19129
|
C,
|
|
19130
19130
|
B,
|
|
@@ -19132,27 +19132,27 @@ function tw(e) {
|
|
|
19132
19132
|
ve,
|
|
19133
19133
|
L
|
|
19134
19134
|
]), Se = d((e, { node: t, deltaX: n, deltaY: a }) => {
|
|
19135
|
-
if (!
|
|
19135
|
+
if (!W || !re) return;
|
|
19136
19136
|
let o = e;
|
|
19137
|
-
if (
|
|
19138
|
-
let n = o.clientX -
|
|
19137
|
+
if (me.current && !ge.current) {
|
|
19138
|
+
let n = o.clientX - he.current.x, r = o.clientY - he.current.y;
|
|
19139
19139
|
if (Math.hypot(n, r) < C) return;
|
|
19140
|
-
if (
|
|
19141
|
-
let n = Kx(
|
|
19140
|
+
if (ge.current = !0, me.current = !1, U) {
|
|
19141
|
+
let n = Kx(q, ce.current.top, ce.current.left), { x: r, y: i } = pS(B, ye, n.x, n.y, ve());
|
|
19142
19142
|
U(L, r, i, {
|
|
19143
19143
|
e,
|
|
19144
19144
|
node: t,
|
|
19145
|
-
newPosition:
|
|
19145
|
+
newPosition: ce.current
|
|
19146
19146
|
});
|
|
19147
19147
|
}
|
|
19148
19148
|
}
|
|
19149
|
-
let c =
|
|
19149
|
+
let c = ce.current.top + a, l = ce.current.left + n;
|
|
19150
19150
|
if (f) {
|
|
19151
19151
|
let { offsetParent: e } = t;
|
|
19152
19152
|
if (e) {
|
|
19153
19153
|
let t = e.clientHeight - Ux(M, s, i[1]);
|
|
19154
19154
|
c = Jx(c, 0, t);
|
|
19155
|
-
let n = Hx(
|
|
19155
|
+
let n = Hx(q), a = r - Ux(j, n, i[0]);
|
|
19156
19156
|
l = Jx(l, 0, a);
|
|
19157
19157
|
}
|
|
19158
19158
|
}
|
|
@@ -19160,23 +19160,23 @@ function tw(e) {
|
|
|
19160
19160
|
top: c,
|
|
19161
19161
|
left: l
|
|
19162
19162
|
};
|
|
19163
|
-
|
|
19164
|
-
let d = Kx(
|
|
19165
|
-
|
|
19163
|
+
ce.current = u;
|
|
19164
|
+
let d = Kx(q, c, l), { x: p, y: m } = pS(B, ye, d.x, d.y, ve());
|
|
19165
|
+
W(L, p, m, {
|
|
19166
19166
|
e,
|
|
19167
19167
|
node: t,
|
|
19168
19168
|
newPosition: u
|
|
19169
19169
|
});
|
|
19170
19170
|
}, [
|
|
19171
|
-
|
|
19171
|
+
W,
|
|
19172
19172
|
U,
|
|
19173
|
-
|
|
19173
|
+
re,
|
|
19174
19174
|
C,
|
|
19175
19175
|
f,
|
|
19176
19176
|
M,
|
|
19177
19177
|
s,
|
|
19178
19178
|
i,
|
|
19179
|
-
|
|
19179
|
+
q,
|
|
19180
19180
|
r,
|
|
19181
19181
|
j,
|
|
19182
19182
|
L,
|
|
@@ -19184,52 +19184,52 @@ function tw(e) {
|
|
|
19184
19184
|
ye,
|
|
19185
19185
|
ve
|
|
19186
19186
|
]), Ce = d((e, { node: t }) => {
|
|
19187
|
-
if (!
|
|
19188
|
-
let n =
|
|
19189
|
-
if (
|
|
19187
|
+
if (!G || !re) return;
|
|
19188
|
+
let n = me.current;
|
|
19189
|
+
if (me.current = !1, ge.current = !1, he.current = {
|
|
19190
19190
|
x: 0,
|
|
19191
19191
|
y: 0
|
|
19192
19192
|
}, n) {
|
|
19193
|
-
|
|
19193
|
+
ie(!1), ce.current = {
|
|
19194
19194
|
left: 0,
|
|
19195
19195
|
top: 0
|
|
19196
19196
|
};
|
|
19197
19197
|
return;
|
|
19198
19198
|
}
|
|
19199
|
-
let { left: r, top: i } =
|
|
19199
|
+
let { left: r, top: i } = ce.current, a = {
|
|
19200
19200
|
top: i,
|
|
19201
19201
|
left: r
|
|
19202
19202
|
};
|
|
19203
|
-
|
|
19203
|
+
ie(!1), ce.current = {
|
|
19204
19204
|
left: 0,
|
|
19205
19205
|
top: 0
|
|
19206
19206
|
};
|
|
19207
|
-
let o = Kx(
|
|
19208
|
-
|
|
19207
|
+
let o = Kx(q, i, r), { x: s, y: c } = pS(B, ye, o.x, o.y, ve());
|
|
19208
|
+
G(L, s, c, {
|
|
19209
19209
|
e,
|
|
19210
19210
|
node: t,
|
|
19211
19211
|
newPosition: a
|
|
19212
19212
|
});
|
|
19213
19213
|
}, [
|
|
19214
|
-
|
|
19215
|
-
|
|
19216
|
-
|
|
19214
|
+
G,
|
|
19215
|
+
re,
|
|
19216
|
+
q,
|
|
19217
19217
|
B,
|
|
19218
19218
|
ye,
|
|
19219
19219
|
ve,
|
|
19220
19220
|
L
|
|
19221
19221
|
]);
|
|
19222
|
-
|
|
19222
|
+
fe.current = xe, pe.current = Se;
|
|
19223
19223
|
let we = d((e, { node: t, size: n, handle: i }, a, o) => {
|
|
19224
|
-
let s = o === "onResizeStart" ?
|
|
19224
|
+
let s = o === "onResizeStart" ? K : o === "onResize" ? te : ne;
|
|
19225
19225
|
if (!s) return;
|
|
19226
19226
|
let c;
|
|
19227
19227
|
c = t ? DS(i, a, n, r) : {
|
|
19228
19228
|
...n,
|
|
19229
19229
|
top: a.top,
|
|
19230
19230
|
left: a.left
|
|
19231
|
-
},
|
|
19232
|
-
let l = qx(
|
|
19231
|
+
}, le.current = c;
|
|
19232
|
+
let l = qx(q, c.width, c.height), { w: u, h: d } = mS(B, ye, l.w, l.h, i, ve());
|
|
19233
19233
|
s(L, u, d, {
|
|
19234
19234
|
e: e.nativeEvent,
|
|
19235
19235
|
node: t,
|
|
@@ -19237,57 +19237,57 @@ function tw(e) {
|
|
|
19237
19237
|
handle: i
|
|
19238
19238
|
});
|
|
19239
19239
|
}, [
|
|
19240
|
-
|
|
19241
|
-
ee,
|
|
19240
|
+
K,
|
|
19242
19241
|
te,
|
|
19242
|
+
ne,
|
|
19243
19243
|
r,
|
|
19244
|
-
|
|
19244
|
+
q,
|
|
19245
19245
|
L,
|
|
19246
19246
|
B,
|
|
19247
19247
|
ye,
|
|
19248
19248
|
ve
|
|
19249
19249
|
]), Te = d((e, t) => {
|
|
19250
|
-
|
|
19251
|
-
let n = Wx(
|
|
19250
|
+
oe(!0);
|
|
19251
|
+
let n = Wx(q, k, A, j, M), r = {
|
|
19252
19252
|
...t,
|
|
19253
19253
|
handle: t.handle
|
|
19254
19254
|
};
|
|
19255
19255
|
we(e, r, n, "onResizeStart");
|
|
19256
19256
|
}, [
|
|
19257
19257
|
we,
|
|
19258
|
-
|
|
19258
|
+
q,
|
|
19259
19259
|
k,
|
|
19260
19260
|
A,
|
|
19261
19261
|
j,
|
|
19262
19262
|
M
|
|
19263
19263
|
]), Ee = d((e, t) => {
|
|
19264
|
-
let n = Wx(
|
|
19264
|
+
let n = Wx(q, k, A, j, M), r = {
|
|
19265
19265
|
...t,
|
|
19266
19266
|
handle: t.handle
|
|
19267
19267
|
};
|
|
19268
19268
|
we(e, r, n, "onResize");
|
|
19269
19269
|
}, [
|
|
19270
19270
|
we,
|
|
19271
|
-
|
|
19271
|
+
q,
|
|
19272
19272
|
k,
|
|
19273
19273
|
A,
|
|
19274
19274
|
j,
|
|
19275
19275
|
M
|
|
19276
19276
|
]), De = d((e, t) => {
|
|
19277
|
-
|
|
19277
|
+
oe(!1), le.current = {
|
|
19278
19278
|
top: 0,
|
|
19279
19279
|
left: 0,
|
|
19280
19280
|
width: 0,
|
|
19281
19281
|
height: 0
|
|
19282
19282
|
};
|
|
19283
|
-
let n = Wx(
|
|
19283
|
+
let n = Wx(q, k, A, j, M), r = {
|
|
19284
19284
|
...t,
|
|
19285
19285
|
handle: t.handle
|
|
19286
19286
|
};
|
|
19287
19287
|
we(e, r, n, "onResizeStop");
|
|
19288
19288
|
}, [
|
|
19289
19289
|
we,
|
|
19290
|
-
|
|
19290
|
+
q,
|
|
19291
19291
|
k,
|
|
19292
19292
|
A,
|
|
19293
19293
|
j,
|
|
@@ -19295,13 +19295,13 @@ function tw(e) {
|
|
|
19295
19295
|
]);
|
|
19296
19296
|
p(() => {
|
|
19297
19297
|
if (!w) return;
|
|
19298
|
-
let e =
|
|
19298
|
+
let e = se.current;
|
|
19299
19299
|
if (!e) return;
|
|
19300
|
-
let t =
|
|
19300
|
+
let t = ue.current || {
|
|
19301
19301
|
left: 0,
|
|
19302
19302
|
top: 0
|
|
19303
|
-
}, n =
|
|
19304
|
-
if (!
|
|
19303
|
+
}, n = re && (w.left !== t.left || w.top !== t.top);
|
|
19304
|
+
if (!re) {
|
|
19305
19305
|
let t = {
|
|
19306
19306
|
node: e,
|
|
19307
19307
|
deltaX: w.left,
|
|
@@ -19311,32 +19311,32 @@ function tw(e) {
|
|
|
19311
19311
|
x: w.left,
|
|
19312
19312
|
y: w.top
|
|
19313
19313
|
};
|
|
19314
|
-
|
|
19314
|
+
fe.current?.(w.e, t);
|
|
19315
19315
|
} else if (n) {
|
|
19316
19316
|
let t = {
|
|
19317
19317
|
node: e,
|
|
19318
|
-
deltaX: w.left -
|
|
19319
|
-
deltaY: w.top -
|
|
19320
|
-
lastX:
|
|
19321
|
-
lastY:
|
|
19318
|
+
deltaX: w.left - ce.current.left,
|
|
19319
|
+
deltaY: w.top - ce.current.top,
|
|
19320
|
+
lastX: ce.current.left,
|
|
19321
|
+
lastY: ce.current.top,
|
|
19322
19322
|
x: w.left,
|
|
19323
19323
|
y: w.top
|
|
19324
19324
|
};
|
|
19325
|
-
|
|
19325
|
+
pe.current?.(w.e, t);
|
|
19326
19326
|
}
|
|
19327
|
-
|
|
19327
|
+
ue.current = w;
|
|
19328
19328
|
}, [
|
|
19329
19329
|
w,
|
|
19330
|
-
|
|
19330
|
+
re,
|
|
19331
19331
|
L
|
|
19332
19332
|
]);
|
|
19333
|
-
let Oe = Wx(
|
|
19334
|
-
ref:
|
|
19335
|
-
className:
|
|
19333
|
+
let Oe = Wx(q, k, A, j, M, re ? ce.current : null, ae ? le.current : null), ke = a.Children.only(t), Ae = Hx(q), je = [Ux(N, Ae, i[0]), Ux(F, s, i[1])], Me = [Ux(P, Ae, i[0]), Ux(I, s, i[1])], Ne = ke.props, Pe = Ne.className, Fe = Ne.style, Ie = a.cloneElement(ke, {
|
|
19334
|
+
ref: se,
|
|
19335
|
+
className: ee("react-grid-item", Pe, T, {
|
|
19336
19336
|
static: m,
|
|
19337
|
-
resizing:
|
|
19337
|
+
resizing: ae,
|
|
19338
19338
|
"react-draggable": l,
|
|
19339
|
-
"react-draggable-dragging":
|
|
19339
|
+
"react-draggable-dragging": re,
|
|
19340
19340
|
dropping: !!w,
|
|
19341
19341
|
cssTransforms: v
|
|
19342
19342
|
}),
|
|
@@ -19368,7 +19368,7 @@ function tw(e) {
|
|
|
19368
19368
|
handle: D,
|
|
19369
19369
|
cancel: ".react-resizable-handle" + (O ? "," + O : ""),
|
|
19370
19370
|
scale: x,
|
|
19371
|
-
nodeRef:
|
|
19371
|
+
nodeRef: se,
|
|
19372
19372
|
children: Ie
|
|
19373
19373
|
}), Ie;
|
|
19374
19374
|
}
|
|
@@ -19435,51 +19435,51 @@ function sw(e) {
|
|
|
19435
19435
|
}), [o]), I = h(() => ({
|
|
19436
19436
|
...MS,
|
|
19437
19437
|
...s
|
|
19438
|
-
}), [s]), { cols: L, rowHeight: R, maxRows: z, margin: B, containerPadding: V } = N, { enabled: H, bounded: U, handle:
|
|
19438
|
+
}), [s]), { cols: L, rowHeight: R, maxRows: z, margin: B, containerPadding: V } = N, { enabled: H, bounded: U, handle: W, cancel: G, threshold: K } = P, { enabled: te, handles: ne, handleComponent: re } = F, { enabled: ie, defaultItem: ae, onDragOver: oe } = I, se = l ?? HS("vertical"), ce = se.type, le = se.allowOverlap, ue = se.preventCollision ?? !1, de = h(() => m ?? {
|
|
19439
19439
|
i: "__dropping-elem__",
|
|
19440
|
-
...
|
|
19441
|
-
}, [m,
|
|
19442
|
-
Pe.current =
|
|
19443
|
-
|
|
19440
|
+
...ae
|
|
19441
|
+
}, [m, ae]), fe = c.type === "transform", pe = c.scale, me = V ?? B, [he, ge] = _(!1), [q, _e] = _(() => ow(f, t, L, se)), [ve, ye] = _(null), [be, xe] = _(!1), [Se, Ce] = _(null), [we, Te] = _(), Ee = g(null), De = g(null), Oe = g(null), ke = g(0), Ae = g(q), je = g(f), Me = g(t), Ne = g(ce), Pe = g(q);
|
|
19442
|
+
Pe.current = q, p(() => {
|
|
19443
|
+
ge(!0), (0, ew.deepEqual)(q, f) || w(q);
|
|
19444
19444
|
}, []), p(() => {
|
|
19445
19445
|
if (ve || Se) return;
|
|
19446
|
-
let e = !(0, ew.deepEqual)(f, je.current), n = !aw(t, Me.current), r =
|
|
19446
|
+
let e = !(0, ew.deepEqual)(f, je.current), n = !aw(t, Me.current), r = ce !== Ne.current;
|
|
19447
19447
|
if (e || n || r) {
|
|
19448
|
-
let n = ow(e ? f :
|
|
19449
|
-
(0, ew.deepEqual)(n,
|
|
19448
|
+
let n = ow(e ? f : q, t, L, se);
|
|
19449
|
+
(0, ew.deepEqual)(n, q) || _e(n);
|
|
19450
19450
|
}
|
|
19451
|
-
je.current = f, Me.current = t, Ne.current =
|
|
19451
|
+
je.current = f, Me.current = t, Ne.current = ce;
|
|
19452
19452
|
}, [
|
|
19453
19453
|
f,
|
|
19454
19454
|
t,
|
|
19455
19455
|
L,
|
|
19456
|
+
ce,
|
|
19456
19457
|
se,
|
|
19457
|
-
oe,
|
|
19458
19458
|
ve,
|
|
19459
19459
|
Se,
|
|
19460
|
-
|
|
19460
|
+
q
|
|
19461
19461
|
]), p(() => {
|
|
19462
|
-
if (!ve && !(0, ew.deepEqual)(
|
|
19463
|
-
Ae.current =
|
|
19464
|
-
let e =
|
|
19462
|
+
if (!ve && !(0, ew.deepEqual)(q, Ae.current)) {
|
|
19463
|
+
Ae.current = q;
|
|
19464
|
+
let e = q.filter((e) => e.i !== de.i);
|
|
19465
19465
|
w(e);
|
|
19466
19466
|
}
|
|
19467
19467
|
}, [
|
|
19468
|
-
|
|
19468
|
+
q,
|
|
19469
19469
|
ve,
|
|
19470
19470
|
w,
|
|
19471
|
-
|
|
19471
|
+
de.i
|
|
19472
19472
|
]);
|
|
19473
19473
|
let Fe = h(() => {
|
|
19474
19474
|
if (!v) return;
|
|
19475
|
-
let e = tS(
|
|
19475
|
+
let e = tS(q), t = me[1];
|
|
19476
19476
|
return e * R + (e - 1) * B[1] + t * 2 + "px";
|
|
19477
19477
|
}, [
|
|
19478
19478
|
v,
|
|
19479
|
-
|
|
19479
|
+
q,
|
|
19480
19480
|
R,
|
|
19481
19481
|
B,
|
|
19482
|
-
|
|
19482
|
+
me
|
|
19483
19483
|
]), Ie = d((e, t, n, r) => {
|
|
19484
19484
|
let i = Pe.current, a = nS(i, e);
|
|
19485
19485
|
if (!a) return;
|
|
@@ -19500,30 +19500,30 @@ function sw(e) {
|
|
|
19500
19500
|
x: o.x,
|
|
19501
19501
|
y: o.y,
|
|
19502
19502
|
i: e
|
|
19503
|
-
}, c = lS(i, o, t, n, !0,
|
|
19504
|
-
E(c, a, o, s, r.e, r.node), _e(
|
|
19503
|
+
}, c = lS(i, o, t, n, !0, ue, ce, L, le);
|
|
19504
|
+
E(c, a, o, s, r.e, r.node), _e(se.compact(c, L)), ye(s);
|
|
19505
19505
|
}, [
|
|
19506
|
+
ue,
|
|
19507
|
+
ce,
|
|
19508
|
+
L,
|
|
19506
19509
|
le,
|
|
19507
19510
|
se,
|
|
19508
|
-
L,
|
|
19509
|
-
ce,
|
|
19510
|
-
oe,
|
|
19511
19511
|
E
|
|
19512
19512
|
]), Re = d((e, t, n, r) => {
|
|
19513
19513
|
if (!ve) return;
|
|
19514
19514
|
let i = Pe.current, a = Ee.current, o = nS(i, e);
|
|
19515
19515
|
if (!o) return;
|
|
19516
|
-
let s = lS(i, o, t, n, !0,
|
|
19516
|
+
let s = lS(i, o, t, n, !0, ue, ce, L, le), c = se.compact(s, L);
|
|
19517
19517
|
D(c, a, o, null, r.e, r.node);
|
|
19518
19518
|
let l = Oe.current;
|
|
19519
19519
|
Ee.current = null, Oe.current = null, ye(null), _e(c), l && !(0, ew.deepEqual)(l, c) && w(c);
|
|
19520
19520
|
}, [
|
|
19521
19521
|
ve,
|
|
19522
|
+
ue,
|
|
19523
|
+
ce,
|
|
19524
|
+
L,
|
|
19522
19525
|
le,
|
|
19523
19526
|
se,
|
|
19524
|
-
L,
|
|
19525
|
-
ce,
|
|
19526
|
-
oe,
|
|
19527
19527
|
D,
|
|
19528
19528
|
w
|
|
19529
19529
|
]), ze = d((e, t, n, r) => {
|
|
@@ -19544,7 +19544,7 @@ function sw(e) {
|
|
|
19544
19544
|
"ne",
|
|
19545
19545
|
"n",
|
|
19546
19546
|
"nw"
|
|
19547
|
-
].includes(o) && (l = e.y + (e.h - n), n = e.y !== l && l < 0 ? e.h : n, l = l < 0 ? 0 : l), s = !0),
|
|
19547
|
+
].includes(o) && (l = e.y + (e.h - n), n = e.y !== l && l < 0 ? e.h : n, l = l < 0 ? 0 : l), s = !0), ue && !le && Zx(i, {
|
|
19548
19548
|
...e,
|
|
19549
19549
|
w: t,
|
|
19550
19550
|
h: n,
|
|
@@ -19553,7 +19553,7 @@ function sw(e) {
|
|
|
19553
19553
|
}).filter((t) => t.i !== e.i).length > 0 && (l = e.y, n = e.h, c = e.x, t = e.w, s = !1), e.w = t, e.h = n, e));
|
|
19554
19554
|
if (!d) return;
|
|
19555
19555
|
let f = u;
|
|
19556
|
-
s && c !== void 0 && l !== void 0 && (f = lS(u, d, c, l, !0,
|
|
19556
|
+
s && c !== void 0 && l !== void 0 && (f = lS(u, d, c, l, !0, ue, ce, L, le));
|
|
19557
19557
|
let p = {
|
|
19558
19558
|
w: d.w,
|
|
19559
19559
|
h: d.h,
|
|
@@ -19562,42 +19562,42 @@ function sw(e) {
|
|
|
19562
19562
|
i: e,
|
|
19563
19563
|
static: !0
|
|
19564
19564
|
};
|
|
19565
|
-
k(f, a, d, p, r.e, r.node), _e(
|
|
19565
|
+
k(f, a, d, p, r.e, r.node), _e(se.compact(f, L)), ye(p);
|
|
19566
19566
|
}, [
|
|
19567
|
+
ue,
|
|
19568
|
+
ce,
|
|
19569
|
+
L,
|
|
19567
19570
|
le,
|
|
19568
19571
|
se,
|
|
19569
|
-
L,
|
|
19570
|
-
ce,
|
|
19571
|
-
oe,
|
|
19572
19572
|
k
|
|
19573
19573
|
]), Ve = d((e, t, n, r) => {
|
|
19574
|
-
let i = Pe.current, a = De.current, o = nS(i, e), s =
|
|
19574
|
+
let i = Pe.current, a = De.current, o = nS(i, e), s = se.compact(i, L);
|
|
19575
19575
|
A(s, a, o ?? null, null, r.e, r.node);
|
|
19576
19576
|
let c = Oe.current;
|
|
19577
19577
|
De.current = null, Oe.current = null, ye(null), xe(!1), _e(s), c && !(0, ew.deepEqual)(c, s) && w(s);
|
|
19578
19578
|
}, [
|
|
19579
19579
|
L,
|
|
19580
|
-
|
|
19580
|
+
se,
|
|
19581
19581
|
A,
|
|
19582
19582
|
w
|
|
19583
19583
|
]), He = d(() => {
|
|
19584
19584
|
let e = Pe.current;
|
|
19585
|
-
if (!e.some((e) => e.i ===
|
|
19585
|
+
if (!e.some((e) => e.i === de.i)) {
|
|
19586
19586
|
Ce(null), ye(null), Te(void 0);
|
|
19587
19587
|
return;
|
|
19588
19588
|
}
|
|
19589
|
-
let t =
|
|
19589
|
+
let t = se.compact(e.filter((e) => e.i !== de.i), L);
|
|
19590
19590
|
_e(t), Ce(null), ye(null), Te(void 0);
|
|
19591
19591
|
}, [
|
|
19592
|
-
|
|
19592
|
+
de.i,
|
|
19593
19593
|
L,
|
|
19594
|
-
|
|
19594
|
+
se
|
|
19595
19595
|
]), Ue = d((e) => {
|
|
19596
19596
|
if (e.preventDefault(), e.stopPropagation(), iw && !e.nativeEvent.target?.classList.contains(rw)) return !1;
|
|
19597
|
-
let t =
|
|
19597
|
+
let t = oe ? oe(e.nativeEvent) : M(e);
|
|
19598
19598
|
if (t === !1) return Se && He(), !1;
|
|
19599
19599
|
let { dragOffsetX: r = 0, dragOffsetY: i = 0, ...a } = t ?? {}, o = {
|
|
19600
|
-
...
|
|
19600
|
+
...de,
|
|
19601
19601
|
...a
|
|
19602
19602
|
}, s = e.currentTarget.getBoundingClientRect(), c = {
|
|
19603
19603
|
cols: L,
|
|
@@ -19605,10 +19605,10 @@ function sw(e) {
|
|
|
19605
19605
|
maxRows: z,
|
|
19606
19606
|
rowHeight: R,
|
|
19607
19607
|
containerWidth: n,
|
|
19608
|
-
containerPadding:
|
|
19608
|
+
containerPadding: me
|
|
19609
19609
|
}, l = Hx(c), u = Ux(o.w, l, B[0]), d = Ux(o.h, R, B[1]), f = u / 2, p = d / 2, m = e.clientX - s.left + r - f, h = e.clientY - s.top + i - p, g = Math.max(0, m), _ = Math.max(0, h), v = {
|
|
19610
|
-
left: g /
|
|
19611
|
-
top: _ /
|
|
19610
|
+
left: g / pe,
|
|
19611
|
+
top: _ / pe,
|
|
19612
19612
|
e: e.nativeEvent
|
|
19613
19613
|
};
|
|
19614
19614
|
if (Se) we && (we.left !== v.left || we.top !== v.top) && Te(v);
|
|
@@ -19627,43 +19627,43 @@ function sw(e) {
|
|
|
19627
19627
|
}, [
|
|
19628
19628
|
Se,
|
|
19629
19629
|
we,
|
|
19630
|
-
|
|
19631
|
-
|
|
19630
|
+
de,
|
|
19631
|
+
oe,
|
|
19632
19632
|
M,
|
|
19633
19633
|
He,
|
|
19634
|
-
|
|
19634
|
+
pe,
|
|
19635
19635
|
L,
|
|
19636
19636
|
B,
|
|
19637
19637
|
z,
|
|
19638
19638
|
R,
|
|
19639
19639
|
n,
|
|
19640
|
-
|
|
19640
|
+
me
|
|
19641
19641
|
]), We = d((e) => {
|
|
19642
19642
|
e.preventDefault(), e.stopPropagation(), ke.current--, ke.current < 0 && (ke.current = 0), ke.current === 0 && He();
|
|
19643
19643
|
}, [He]), Ge = d((e) => {
|
|
19644
19644
|
e.preventDefault(), e.stopPropagation(), ke.current++;
|
|
19645
19645
|
}, []), Ke = d((e) => {
|
|
19646
19646
|
e.preventDefault(), e.stopPropagation();
|
|
19647
|
-
let t = Pe.current, n = t.find((e) => e.i ===
|
|
19647
|
+
let t = Pe.current, n = t.find((e) => e.i === de.i);
|
|
19648
19648
|
ke.current = 0, He(), j(t, n, e.nativeEvent);
|
|
19649
19649
|
}, [
|
|
19650
|
-
|
|
19650
|
+
de.i,
|
|
19651
19651
|
He,
|
|
19652
19652
|
j
|
|
19653
19653
|
]), qe = d((e, t) => {
|
|
19654
19654
|
if (!e || !e.key) return null;
|
|
19655
|
-
let r = nS(
|
|
19655
|
+
let r = nS(q, String(e.key));
|
|
19656
19656
|
if (!r) return null;
|
|
19657
|
-
let i = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && H, a = typeof r.isResizable == "boolean" ? r.isResizable : !r.static &&
|
|
19657
|
+
let i = typeof r.isDraggable == "boolean" ? r.isDraggable : !r.static && H, a = typeof r.isResizable == "boolean" ? r.isResizable : !r.static && te, o = r.resizeHandles || [...ne], s = i && U && r.isBounded !== !1, l = re;
|
|
19658
19658
|
return /* @__PURE__ */ y(tw, {
|
|
19659
19659
|
containerWidth: n,
|
|
19660
19660
|
cols: L,
|
|
19661
19661
|
margin: B,
|
|
19662
|
-
containerPadding:
|
|
19662
|
+
containerPadding: me,
|
|
19663
19663
|
maxRows: z,
|
|
19664
19664
|
rowHeight: R,
|
|
19665
|
-
cancel:
|
|
19666
|
-
handle:
|
|
19665
|
+
cancel: G,
|
|
19666
|
+
handle: W,
|
|
19667
19667
|
onDragStart: Ie,
|
|
19668
19668
|
onDrag: Le,
|
|
19669
19669
|
onDragStop: Re,
|
|
@@ -19673,11 +19673,11 @@ function sw(e) {
|
|
|
19673
19673
|
isDraggable: i,
|
|
19674
19674
|
isResizable: a,
|
|
19675
19675
|
isBounded: s,
|
|
19676
|
-
useCSSTransforms:
|
|
19677
|
-
usePercentages: !
|
|
19678
|
-
transformScale:
|
|
19676
|
+
useCSSTransforms: fe && he,
|
|
19677
|
+
usePercentages: !he,
|
|
19678
|
+
transformScale: pe,
|
|
19679
19679
|
positionStrategy: c,
|
|
19680
|
-
dragThreshold:
|
|
19680
|
+
dragThreshold: K,
|
|
19681
19681
|
w: r.w,
|
|
19682
19682
|
h: r.h,
|
|
19683
19683
|
x: r.x,
|
|
@@ -19693,19 +19693,19 @@ function sw(e) {
|
|
|
19693
19693
|
resizeHandle: l,
|
|
19694
19694
|
constraints: u,
|
|
19695
19695
|
layoutItem: r,
|
|
19696
|
-
layout:
|
|
19696
|
+
layout: q,
|
|
19697
19697
|
children: e
|
|
19698
19698
|
}, r.i);
|
|
19699
19699
|
}, [
|
|
19700
|
-
|
|
19700
|
+
q,
|
|
19701
19701
|
n,
|
|
19702
19702
|
L,
|
|
19703
19703
|
B,
|
|
19704
|
-
|
|
19704
|
+
me,
|
|
19705
19705
|
z,
|
|
19706
19706
|
R,
|
|
19707
|
-
K,
|
|
19708
19707
|
G,
|
|
19708
|
+
W,
|
|
19709
19709
|
Ie,
|
|
19710
19710
|
Le,
|
|
19711
19711
|
Re,
|
|
@@ -19713,16 +19713,16 @@ function sw(e) {
|
|
|
19713
19713
|
Be,
|
|
19714
19714
|
Ve,
|
|
19715
19715
|
H,
|
|
19716
|
-
|
|
19716
|
+
te,
|
|
19717
19717
|
U,
|
|
19718
|
-
de,
|
|
19719
|
-
me,
|
|
19720
19718
|
fe,
|
|
19719
|
+
he,
|
|
19720
|
+
pe,
|
|
19721
19721
|
c,
|
|
19722
|
-
|
|
19722
|
+
K,
|
|
19723
19723
|
we,
|
|
19724
|
-
te,
|
|
19725
19724
|
ne,
|
|
19725
|
+
re,
|
|
19726
19726
|
u
|
|
19727
19727
|
]), Je = () => ve ? /* @__PURE__ */ y(tw, {
|
|
19728
19728
|
w: ve.w,
|
|
@@ -19734,32 +19734,32 @@ function sw(e) {
|
|
|
19734
19734
|
containerWidth: n,
|
|
19735
19735
|
cols: L,
|
|
19736
19736
|
margin: B,
|
|
19737
|
-
containerPadding:
|
|
19737
|
+
containerPadding: me,
|
|
19738
19738
|
maxRows: z,
|
|
19739
19739
|
rowHeight: R,
|
|
19740
19740
|
isDraggable: !1,
|
|
19741
19741
|
isResizable: !1,
|
|
19742
19742
|
isBounded: !1,
|
|
19743
|
-
useCSSTransforms:
|
|
19744
|
-
transformScale:
|
|
19743
|
+
useCSSTransforms: fe,
|
|
19744
|
+
transformScale: pe,
|
|
19745
19745
|
constraints: u,
|
|
19746
|
-
layout:
|
|
19746
|
+
layout: q,
|
|
19747
19747
|
children: /* @__PURE__ */ y("div", {})
|
|
19748
19748
|
}) : null;
|
|
19749
19749
|
return /* @__PURE__ */ b("div", {
|
|
19750
19750
|
ref: C,
|
|
19751
|
-
className:
|
|
19751
|
+
className: ee(rw, x),
|
|
19752
19752
|
style: {
|
|
19753
19753
|
height: Fe,
|
|
19754
19754
|
...S
|
|
19755
19755
|
},
|
|
19756
|
-
onDrop:
|
|
19757
|
-
onDragLeave:
|
|
19758
|
-
onDragEnter:
|
|
19759
|
-
onDragOver:
|
|
19756
|
+
onDrop: ie ? Ke : void 0,
|
|
19757
|
+
onDragLeave: ie ? We : void 0,
|
|
19758
|
+
onDragEnter: ie ? Ge : void 0,
|
|
19759
|
+
onDragOver: ie ? Ue : void 0,
|
|
19760
19760
|
children: [
|
|
19761
19761
|
a.Children.map(t, (e) => a.isValidElement(e) ? qe(e) : null),
|
|
19762
|
-
|
|
19762
|
+
ie && Se && qe(Se, !0),
|
|
19763
19763
|
Je()
|
|
19764
19764
|
]
|
|
19765
19765
|
});
|
|
@@ -20722,16 +20722,16 @@ function IT(e) {
|
|
|
20722
20722
|
default: S ? r ?? Ii : r,
|
|
20723
20723
|
name: "Select",
|
|
20724
20724
|
state: "value"
|
|
20725
|
-
}), [U,
|
|
20725
|
+
}), [U, ee] = Tx({
|
|
20726
20726
|
controlled: o,
|
|
20727
20727
|
default: s,
|
|
20728
20728
|
name: "Select",
|
|
20729
20729
|
state: "open"
|
|
20730
|
-
}),
|
|
20730
|
+
}), W = i.useRef([]), G = i.useRef([]), K = i.useRef(null), te = i.useRef(null), ne = i.useRef(0), re = i.useRef(null), ie = i.useRef([]), ae = i.useRef(!1), oe = i.useRef(null), se = i.useRef(null), ce = i.useRef({
|
|
20731
20731
|
allowSelectedMouseUp: !1,
|
|
20732
20732
|
allowUnselectedMouseUp: !1,
|
|
20733
20733
|
dragY: 0
|
|
20734
|
-
}),
|
|
20734
|
+
}), le = i.useRef(!1), { mounted: ue, setMounted: de, transitionStatus: fe } = Dd(U), { openMethod: pe, triggerProps: me } = iT(U), he = Si(() => new Sd({
|
|
20735
20735
|
id: R,
|
|
20736
20736
|
labelId: void 0,
|
|
20737
20737
|
modal: h,
|
|
@@ -20741,8 +20741,8 @@ function IT(e) {
|
|
|
20741
20741
|
isItemEqualToValue: T,
|
|
20742
20742
|
value: V,
|
|
20743
20743
|
open: U,
|
|
20744
|
-
mounted:
|
|
20745
|
-
transitionStatus:
|
|
20744
|
+
mounted: ue,
|
|
20745
|
+
transitionStatus: fe,
|
|
20746
20746
|
items: x,
|
|
20747
20747
|
forceMount: !1,
|
|
20748
20748
|
openMethod: null,
|
|
@@ -20757,7 +20757,7 @@ function IT(e) {
|
|
|
20757
20757
|
scrollUpArrowVisible: !1,
|
|
20758
20758
|
scrollDownArrowVisible: !1,
|
|
20759
20759
|
hasScrollArrows: !1
|
|
20760
|
-
})).current,
|
|
20760
|
+
})).current, ge = vd(he, PT.activeIndex), q = vd(he, PT.selectedIndex), _e = vd(he, PT.triggerElement), ve = vd(he, PT.positionerElement), ye = Dp(pe), be = pe ?? ye ?? null, xe = i.useMemo(() => S ? "" : jT(V, w), [
|
|
20761
20761
|
S,
|
|
20762
20762
|
V,
|
|
20763
20763
|
w
|
|
@@ -20766,14 +20766,14 @@ function IT(e) {
|
|
|
20766
20766
|
V,
|
|
20767
20767
|
w
|
|
20768
20768
|
]);
|
|
20769
|
-
Dx(Ms(
|
|
20769
|
+
Dx(Ms(he.state.triggerElement), R, V, X(() => Se), !z, l);
|
|
20770
20770
|
let Ce = i.useRef(V), we = S ? Array.isArray(V) && V.length > 0 : V != null && jT(V, w) !== "";
|
|
20771
20771
|
Z(() => {
|
|
20772
|
-
V !== Ce.current &&
|
|
20773
|
-
}, [
|
|
20772
|
+
V !== Ce.current && he.set("forceMount", !0);
|
|
20773
|
+
}, [he, V]), Z(() => {
|
|
20774
20774
|
N(we);
|
|
20775
20775
|
}, [we, N]), Z(function() {
|
|
20776
|
-
let e =
|
|
20776
|
+
let e = ie.current, t;
|
|
20777
20777
|
if (S) {
|
|
20778
20778
|
let n = Array.isArray(V) ? V : [];
|
|
20779
20779
|
if (n.length === 0) t = null;
|
|
@@ -20785,16 +20785,16 @@ function IT(e) {
|
|
|
20785
20785
|
let n = TT(e, V, T);
|
|
20786
20786
|
t = n === -1 ? null : n;
|
|
20787
20787
|
}
|
|
20788
|
-
t === null && (
|
|
20788
|
+
t === null && (se.current = null), !U && he.set("selectedIndex", t);
|
|
20789
20789
|
}, [
|
|
20790
20790
|
we,
|
|
20791
20791
|
S,
|
|
20792
20792
|
U,
|
|
20793
20793
|
V,
|
|
20794
|
-
|
|
20794
|
+
ie,
|
|
20795
20795
|
T,
|
|
20796
|
-
|
|
20797
|
-
|
|
20796
|
+
he,
|
|
20797
|
+
se
|
|
20798
20798
|
]);
|
|
20799
20799
|
function Te(e) {
|
|
20800
20800
|
let t = M.initialValue;
|
|
@@ -20804,9 +20804,9 @@ function IT(e) {
|
|
|
20804
20804
|
O(B), k(Te(V)), I.change(V);
|
|
20805
20805
|
});
|
|
20806
20806
|
let Ee = X((e, t) => {
|
|
20807
|
-
c?.(e, t), !t.isCanceled && (
|
|
20807
|
+
c?.(e, t), !t.isCanceled && (ee(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (A(!0), j(!1), L === "onBlur" && I.commit(V)));
|
|
20808
20808
|
}), De = X(() => {
|
|
20809
|
-
|
|
20809
|
+
de(!1), he.update({
|
|
20810
20810
|
activeIndex: null,
|
|
20811
20811
|
openMethod: null
|
|
20812
20812
|
}), v?.(!1);
|
|
@@ -20814,7 +20814,7 @@ function IT(e) {
|
|
|
20814
20814
|
Nd({
|
|
20815
20815
|
enabled: !g,
|
|
20816
20816
|
open: U,
|
|
20817
|
-
ref:
|
|
20817
|
+
ref: K,
|
|
20818
20818
|
onComplete() {
|
|
20819
20819
|
U || De();
|
|
20820
20820
|
}
|
|
@@ -20822,10 +20822,10 @@ function IT(e) {
|
|
|
20822
20822
|
let Oe = X((e, t) => {
|
|
20823
20823
|
a?.(e, t), !t.isCanceled && H(e);
|
|
20824
20824
|
}), ke = X(() => {
|
|
20825
|
-
let e =
|
|
20825
|
+
let e = he.state.listElement || K.current;
|
|
20826
20826
|
if (!e) return;
|
|
20827
20827
|
let t = tm(e.scrollHeight, e.clientHeight), n = nm(e.scrollTop, t), r = n > 0, i = n < t;
|
|
20828
|
-
|
|
20828
|
+
he.state.scrollUpArrowVisible !== r && he.set("scrollUpArrowVisible", r), he.state.scrollDownArrowVisible !== i && he.set("scrollDownArrowVisible", i);
|
|
20829
20829
|
}), Ae = rf({
|
|
20830
20830
|
open: U,
|
|
20831
20831
|
onOpenChange: Ee,
|
|
@@ -20838,35 +20838,35 @@ function IT(e) {
|
|
|
20838
20838
|
event: "mousedown"
|
|
20839
20839
|
}), Me = Ql(Ae), Ne = Sf(Ae, {
|
|
20840
20840
|
enabled: !p && !z,
|
|
20841
|
-
listRef:
|
|
20842
|
-
activeIndex:
|
|
20843
|
-
selectedIndex:
|
|
20841
|
+
listRef: W,
|
|
20842
|
+
activeIndex: ge,
|
|
20843
|
+
selectedIndex: q,
|
|
20844
20844
|
disabledIndices: Ii,
|
|
20845
20845
|
onNavigate(e) {
|
|
20846
|
-
e === null && !U ||
|
|
20846
|
+
e === null && !U || he.set("activeIndex", e);
|
|
20847
20847
|
},
|
|
20848
20848
|
focusItemOnHover: E
|
|
20849
20849
|
}), Pe = Cf(Ae, {
|
|
20850
20850
|
enabled: !p && !z && (U || !S),
|
|
20851
|
-
listRef:
|
|
20852
|
-
activeIndex:
|
|
20853
|
-
selectedIndex:
|
|
20854
|
-
disabledIndices: (e) => _T(
|
|
20851
|
+
listRef: G,
|
|
20852
|
+
activeIndex: ge,
|
|
20853
|
+
selectedIndex: q,
|
|
20854
|
+
disabledIndices: (e) => _T(W.current[e]),
|
|
20855
20855
|
onMatch(e) {
|
|
20856
|
-
U ?
|
|
20856
|
+
U ? he.set("activeIndex", e) : Oe(ie.current[e], ws("none"));
|
|
20857
20857
|
},
|
|
20858
20858
|
onTyping(e) {
|
|
20859
|
-
|
|
20859
|
+
ae.current = e;
|
|
20860
20860
|
}
|
|
20861
20861
|
}), Fe = i.useMemo(() => {
|
|
20862
|
-
let e = Hi(Pe.reference, Ne.reference, Me.reference, je.reference,
|
|
20862
|
+
let e = Hi(Pe.reference, Ne.reference, Me.reference, je.reference, me);
|
|
20863
20863
|
return R && (e.id = R), e;
|
|
20864
20864
|
}, [
|
|
20865
20865
|
je.reference,
|
|
20866
20866
|
Pe.reference,
|
|
20867
20867
|
Ne.reference,
|
|
20868
20868
|
Me.reference,
|
|
20869
|
-
|
|
20869
|
+
me,
|
|
20870
20870
|
R
|
|
20871
20871
|
]), Ie = i.useMemo(() => Hi(Pd, Pe.floating, Ne.floating, Me.floating), [
|
|
20872
20872
|
Pe.floating,
|
|
@@ -20874,19 +20874,19 @@ function IT(e) {
|
|
|
20874
20874
|
Me.floating
|
|
20875
20875
|
]), Le = Ne.item ?? Li;
|
|
20876
20876
|
cd(() => {
|
|
20877
|
-
|
|
20877
|
+
he.update({
|
|
20878
20878
|
popupProps: Ie,
|
|
20879
20879
|
triggerProps: Fe
|
|
20880
20880
|
});
|
|
20881
20881
|
}), Z(() => {
|
|
20882
|
-
|
|
20882
|
+
he.update({
|
|
20883
20883
|
id: R,
|
|
20884
20884
|
modal: h,
|
|
20885
20885
|
multiple: S,
|
|
20886
20886
|
value: V,
|
|
20887
20887
|
open: U,
|
|
20888
|
-
mounted:
|
|
20889
|
-
transitionStatus:
|
|
20888
|
+
mounted: ue,
|
|
20889
|
+
transitionStatus: fe,
|
|
20890
20890
|
popupProps: Ie,
|
|
20891
20891
|
triggerProps: Fe,
|
|
20892
20892
|
items: x,
|
|
@@ -20896,14 +20896,14 @@ function IT(e) {
|
|
|
20896
20896
|
openMethod: be
|
|
20897
20897
|
});
|
|
20898
20898
|
}, [
|
|
20899
|
-
|
|
20899
|
+
he,
|
|
20900
20900
|
R,
|
|
20901
20901
|
h,
|
|
20902
20902
|
S,
|
|
20903
20903
|
V,
|
|
20904
20904
|
U,
|
|
20905
|
-
|
|
20906
|
-
|
|
20905
|
+
ue,
|
|
20906
|
+
fe,
|
|
20907
20907
|
Ie,
|
|
20908
20908
|
Fe,
|
|
20909
20909
|
x,
|
|
@@ -20913,7 +20913,7 @@ function IT(e) {
|
|
|
20913
20913
|
be
|
|
20914
20914
|
]);
|
|
20915
20915
|
let Re = i.useMemo(() => ({
|
|
20916
|
-
store:
|
|
20916
|
+
store: he,
|
|
20917
20917
|
name: B,
|
|
20918
20918
|
required: m,
|
|
20919
20919
|
disabled: z,
|
|
@@ -20922,25 +20922,25 @@ function IT(e) {
|
|
|
20922
20922
|
highlightItemOnHover: E,
|
|
20923
20923
|
setValue: Oe,
|
|
20924
20924
|
setOpen: Ee,
|
|
20925
|
-
listRef:
|
|
20926
|
-
popupRef:
|
|
20927
|
-
scrollHandlerRef:
|
|
20925
|
+
listRef: W,
|
|
20926
|
+
popupRef: K,
|
|
20927
|
+
scrollHandlerRef: te,
|
|
20928
20928
|
handleScrollArrowVisibility: ke,
|
|
20929
|
-
scrollArrowsMountedCountRef:
|
|
20929
|
+
scrollArrowsMountedCountRef: ne,
|
|
20930
20930
|
itemProps: Le,
|
|
20931
|
-
valueRef:
|
|
20932
|
-
valuesRef:
|
|
20933
|
-
labelsRef:
|
|
20934
|
-
typingRef:
|
|
20935
|
-
selectionRef:
|
|
20936
|
-
firstItemTextRef:
|
|
20937
|
-
selectedItemTextRef:
|
|
20931
|
+
valueRef: re,
|
|
20932
|
+
valuesRef: ie,
|
|
20933
|
+
labelsRef: G,
|
|
20934
|
+
typingRef: ae,
|
|
20935
|
+
selectionRef: ce,
|
|
20936
|
+
firstItemTextRef: oe,
|
|
20937
|
+
selectedItemTextRef: se,
|
|
20938
20938
|
validation: I,
|
|
20939
20939
|
onOpenChangeComplete: v,
|
|
20940
|
-
alignItemWithTriggerActiveRef:
|
|
20940
|
+
alignItemWithTriggerActiveRef: le,
|
|
20941
20941
|
initialValueRef: Ce
|
|
20942
20942
|
}), [
|
|
20943
|
-
|
|
20943
|
+
he,
|
|
20944
20944
|
B,
|
|
20945
20945
|
m,
|
|
20946
20946
|
z,
|
|
@@ -20979,22 +20979,22 @@ function IT(e) {
|
|
|
20979
20979
|
/*#__PURE__*/ y("input", {
|
|
20980
20980
|
...I.getValidationProps(z, {
|
|
20981
20981
|
onFocus() {
|
|
20982
|
-
|
|
20982
|
+
he.state.triggerElement?.focus({ focusVisible: !0 });
|
|
20983
20983
|
},
|
|
20984
20984
|
onChange(e) {
|
|
20985
20985
|
if (e.nativeEvent.defaultPrevented || z || p) return;
|
|
20986
20986
|
let t = e.currentTarget.value, n = ws(ss, e.nativeEvent);
|
|
20987
20987
|
function r() {
|
|
20988
20988
|
if (S) return;
|
|
20989
|
-
let e = t.toLowerCase(), r =
|
|
20990
|
-
r === -1 && (r =
|
|
20991
|
-
let r =
|
|
20989
|
+
let e = t.toLowerCase(), r = ie.current.findIndex((t) => jT(t, w).toLowerCase() === e || AT(t, C).toLowerCase() === e);
|
|
20990
|
+
r === -1 && (r = ie.current.findIndex((t, n) => {
|
|
20991
|
+
let r = G.current[n];
|
|
20992
20992
|
return r != null && r.toLowerCase() === e;
|
|
20993
20993
|
}));
|
|
20994
|
-
let i = r === -1 ? void 0 :
|
|
20994
|
+
let i = r === -1 ? void 0 : ie.current[r];
|
|
20995
20995
|
i != null && Oe(i, n);
|
|
20996
20996
|
}
|
|
20997
|
-
|
|
20997
|
+
he.set("forceMount", !0), queueMicrotask(r);
|
|
20998
20998
|
}
|
|
20999
20999
|
}),
|
|
21000
21000
|
id: R && Ve == null ? `${R}-hidden-input` : void 0,
|
|
@@ -21054,25 +21054,25 @@ var BT = 2, VT = 400, HT = {
|
|
|
21054
21054
|
native: s
|
|
21055
21055
|
}), H = X((e) => {
|
|
21056
21056
|
g.set("triggerElement", e);
|
|
21057
|
-
}), U = vo(),
|
|
21057
|
+
}), U = vo(), ee = vo(), W = vo();
|
|
21058
21058
|
i.useEffect(() => {
|
|
21059
|
-
if (T) return
|
|
21059
|
+
if (T) return W.start(VT, () => {
|
|
21060
21060
|
v.current.allowUnselectedMouseUp = !0, v.current.allowSelectedMouseUp = !0;
|
|
21061
21061
|
}), () => {
|
|
21062
|
-
|
|
21062
|
+
W.clear();
|
|
21063
21063
|
};
|
|
21064
21064
|
v.current = {
|
|
21065
21065
|
allowSelectedMouseUp: !1,
|
|
21066
21066
|
allowUnselectedMouseUp: !1,
|
|
21067
21067
|
dragY: 0
|
|
21068
|
-
},
|
|
21068
|
+
}, ee.clear();
|
|
21069
21069
|
}, [
|
|
21070
21070
|
T,
|
|
21071
21071
|
v,
|
|
21072
|
-
|
|
21073
|
-
|
|
21072
|
+
ee,
|
|
21073
|
+
W
|
|
21074
21074
|
]);
|
|
21075
|
-
let
|
|
21075
|
+
let G = Hi(O, {
|
|
21076
21076
|
id: I,
|
|
21077
21077
|
role: "combobox",
|
|
21078
21078
|
"aria-expanded": T ? "true" : "false",
|
|
@@ -21100,13 +21100,13 @@ var BT = 2, VT = 400, HT = {
|
|
|
21100
21100
|
let n = zT(z.current);
|
|
21101
21101
|
e.clientX >= n.left - BT && e.clientX <= n.right + BT && e.clientY >= n.top - BT && e.clientY <= n.bottom + BT || _(!1, ws(ys, e));
|
|
21102
21102
|
}
|
|
21103
|
-
|
|
21103
|
+
ee.start(0, () => {
|
|
21104
21104
|
t.addEventListener("mouseup", n, { once: !0 });
|
|
21105
21105
|
});
|
|
21106
21106
|
}
|
|
21107
|
-
}, l, B),
|
|
21108
|
-
|
|
21109
|
-
let
|
|
21107
|
+
}, l, B), K = y.getValidationProps(w, G);
|
|
21108
|
+
K.role = "combobox";
|
|
21109
|
+
let te = {
|
|
21110
21110
|
...p,
|
|
21111
21111
|
open: T,
|
|
21112
21112
|
disabled: w,
|
|
@@ -21122,9 +21122,9 @@ var BT = 2, VT = 400, HT = {
|
|
|
21122
21122
|
V,
|
|
21123
21123
|
H
|
|
21124
21124
|
],
|
|
21125
|
-
state:
|
|
21125
|
+
state: te,
|
|
21126
21126
|
stateAttributesMapping: HT,
|
|
21127
|
-
props:
|
|
21127
|
+
props: K
|
|
21128
21128
|
});
|
|
21129
21129
|
});
|
|
21130
21130
|
process.env.NODE_ENV !== "production" && (UT.displayName = "SelectTrigger");
|
|
@@ -21305,11 +21305,11 @@ function oE(e, t, n, r) {
|
|
|
21305
21305
|
//#endregion
|
|
21306
21306
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
|
|
21307
21307
|
var sE = { position: "fixed" }, cE = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
21308
|
-
let { anchor: n, positionMethod: r = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: h, alignItemWithTrigger: g = !0, collisionAvoidance: _ = yl, style: v, ...x } = e, { store: S, listRef: C, labelsRef: w, alignItemWithTriggerActiveRef: T, selectedItemTextRef: E, valuesRef: D, initialValueRef: O, popupRef: k, setValue: A } = bT(), j = xT(), M = vd(S, PT.open), N = vd(S, PT.mounted), P = vd(S, PT.modal), F = vd(S, PT.value), I = vd(S, PT.openMethod), L = vd(S, PT.positionerElement), R = vd(S, PT.triggerElement), z = vd(S, PT.isItemEqualToValue), B = vd(S, PT.transitionStatus), V = i.useRef(null), H = i.useRef(null), [U,
|
|
21309
|
-
!N && U !== g &&
|
|
21308
|
+
let { anchor: n, positionMethod: r = "absolute", className: a, render: o, side: s = "bottom", align: c = "center", sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: h, alignItemWithTrigger: g = !0, collisionAvoidance: _ = yl, style: v, ...x } = e, { store: S, listRef: C, labelsRef: w, alignItemWithTriggerActiveRef: T, selectedItemTextRef: E, valuesRef: D, initialValueRef: O, popupRef: k, setValue: A } = bT(), j = xT(), M = vd(S, PT.open), N = vd(S, PT.mounted), P = vd(S, PT.modal), F = vd(S, PT.value), I = vd(S, PT.openMethod), L = vd(S, PT.positionerElement), R = vd(S, PT.triggerElement), z = vd(S, PT.isItemEqualToValue), B = vd(S, PT.transitionStatus), V = i.useRef(null), H = i.useRef(null), [U, ee] = i.useState(g), W = N && U && I !== "touch";
|
|
21309
|
+
!N && U !== g && ee(g), Z(() => {
|
|
21310
21310
|
N || (PT.scrollUpArrowVisible(S.state) && S.set("scrollUpArrowVisible", !1), PT.scrollDownArrowVisible(S.state) && S.set("scrollDownArrowVisible", !1));
|
|
21311
|
-
}, [S, N]), i.useImperativeHandle(T, () =>
|
|
21312
|
-
let
|
|
21311
|
+
}, [S, N]), i.useImperativeHandle(T, () => W), oE((W || P) && M, I === "touch", L, R);
|
|
21312
|
+
let G = _p({
|
|
21313
21313
|
anchor: n,
|
|
21314
21314
|
floatingRootContext: j,
|
|
21315
21315
|
positionMethod: r,
|
|
@@ -21322,20 +21322,20 @@ var sE = { position: "fixed" }, cE = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
21322
21322
|
collisionBoundary: d,
|
|
21323
21323
|
collisionPadding: f,
|
|
21324
21324
|
sticky: m,
|
|
21325
|
-
disableAnchorTracking: h ??
|
|
21325
|
+
disableAnchorTracking: h ?? W,
|
|
21326
21326
|
collisionAvoidance: _,
|
|
21327
21327
|
keepMounted: !0
|
|
21328
|
-
}),
|
|
21328
|
+
}), K = W ? "none" : G.side, te = W ? sE : G.positionerStyles, ne = {
|
|
21329
21329
|
open: M,
|
|
21330
|
-
side:
|
|
21331
|
-
align:
|
|
21332
|
-
anchorHidden:
|
|
21330
|
+
side: K,
|
|
21331
|
+
align: G.align,
|
|
21332
|
+
anchorHidden: G.anchorHidden
|
|
21333
21333
|
};
|
|
21334
21334
|
Z(() => {
|
|
21335
|
-
S.set("popupSide",
|
|
21336
|
-
}, [S,
|
|
21337
|
-
let
|
|
21338
|
-
styles:
|
|
21335
|
+
S.set("popupSide", G.side);
|
|
21336
|
+
}, [S, G.side]);
|
|
21337
|
+
let re = bp(e, ne, {
|
|
21338
|
+
styles: te,
|
|
21339
21339
|
transitionStatus: B,
|
|
21340
21340
|
props: x,
|
|
21341
21341
|
refs: [t, X((e) => {
|
|
@@ -21343,10 +21343,10 @@ var sE = { position: "fixed" }, cE = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
21343
21343
|
})],
|
|
21344
21344
|
hidden: !N,
|
|
21345
21345
|
inert: !M
|
|
21346
|
-
}),
|
|
21347
|
-
if (e.size === 0 &&
|
|
21348
|
-
let t =
|
|
21349
|
-
if (
|
|
21346
|
+
}), ie = i.useRef(0), ae = X((e) => {
|
|
21347
|
+
if (e.size === 0 && ie.current === 0 || D.current.length === 0) return;
|
|
21348
|
+
let t = ie.current;
|
|
21349
|
+
if (ie.current = e.size, e.size === t) return;
|
|
21350
21350
|
let n = ws(ss);
|
|
21351
21351
|
if (t !== 0 && !S.state.multiple && F !== null && TT(D.current, F, z) === -1) {
|
|
21352
21352
|
let e = O.current, t = e != null && TT(D.current, e, z) !== -1 ? e : null;
|
|
@@ -21356,7 +21356,7 @@ var sE = { position: "fixed" }, cE = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
21356
21356
|
let e = (e) => TT(D.current, e, z) !== -1, t = F.filter((t) => e(t));
|
|
21357
21357
|
(t.length !== F.length || t.some((e) => !wT(F, e, z))) && (A(t, n), t.length === 0 && (S.set("selectedIndex", null), E.current = null));
|
|
21358
21358
|
}
|
|
21359
|
-
if (M &&
|
|
21359
|
+
if (M && W) {
|
|
21360
21360
|
S.update({
|
|
21361
21361
|
scrollUpArrowVisible: !1,
|
|
21362
21362
|
scrollDownArrowVisible: !1
|
|
@@ -21364,29 +21364,29 @@ var sE = { position: "fixed" }, cE = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
21364
21364
|
let e = { height: "" };
|
|
21365
21365
|
rE(L, e), rE(k.current, e);
|
|
21366
21366
|
}
|
|
21367
|
-
}),
|
|
21368
|
-
...
|
|
21369
|
-
side:
|
|
21370
|
-
alignItemWithTriggerActive:
|
|
21371
|
-
setControlledAlignItemWithTrigger:
|
|
21367
|
+
}), oe = i.useMemo(() => ({
|
|
21368
|
+
...G,
|
|
21369
|
+
side: K,
|
|
21370
|
+
alignItemWithTriggerActive: W,
|
|
21371
|
+
setControlledAlignItemWithTrigger: ee,
|
|
21372
21372
|
scrollUpArrowRef: V,
|
|
21373
21373
|
scrollDownArrowRef: H
|
|
21374
21374
|
}), [
|
|
21375
|
-
K,
|
|
21376
|
-
q,
|
|
21377
21375
|
G,
|
|
21378
|
-
|
|
21376
|
+
K,
|
|
21377
|
+
W,
|
|
21378
|
+
ee
|
|
21379
21379
|
]);
|
|
21380
21380
|
return /*#__PURE__*/ y(ZT, {
|
|
21381
21381
|
elementsRef: C,
|
|
21382
21382
|
labelsRef: w,
|
|
21383
|
-
onMapChange:
|
|
21383
|
+
onMapChange: ae,
|
|
21384
21384
|
children: /*#__PURE__*/ b(tE.Provider, {
|
|
21385
|
-
value:
|
|
21385
|
+
value: oe,
|
|
21386
21386
|
children: [N && P && /*#__PURE__*/ y(Iw, {
|
|
21387
21387
|
inert: Ep(!M),
|
|
21388
21388
|
cutout: R
|
|
21389
|
-
}),
|
|
21389
|
+
}), re]
|
|
21390
21390
|
})
|
|
21391
21391
|
});
|
|
21392
21392
|
});
|
|
@@ -21406,7 +21406,7 @@ var dE = {
|
|
|
21406
21406
|
...Kf,
|
|
21407
21407
|
...jd
|
|
21408
21408
|
}, fE = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
21409
|
-
let { render: n, className: r, style: a, finalFocus: o, ...s } = e, { store: c, popupRef: l, onOpenChangeComplete: u, setOpen: d, valueRef: f, firstItemTextRef: p, selectedItemTextRef: m, multiple: h, handleScrollArrowVisibility: g, scrollHandlerRef: _, listRef: v, highlightItemOnHover: x } = bT(), { side: S, align: C, alignItemWithTriggerActive: w, isPositioned: T, setControlledAlignItemWithTrigger: E } = nE(), D = uE(!0) != null, O = xT(), k = cp(), { nonce: A, disableStyleElements: j } = Gp(), M = vd(c, PT.id), N = vd(c, PT.open), P = vd(c, PT.openMethod), F = vd(c, PT.mounted), I = vd(c, PT.popupProps), L = vd(c, PT.transitionStatus), R = vd(c, PT.triggerElement), z = vd(c, PT.positionerElement), B = vd(c, PT.listElement), V = i.useRef(!1), H = i.useRef(!1), U = i.useRef({}),
|
|
21409
|
+
let { render: n, className: r, style: a, finalFocus: o, ...s } = e, { store: c, popupRef: l, onOpenChangeComplete: u, setOpen: d, valueRef: f, firstItemTextRef: p, selectedItemTextRef: m, multiple: h, handleScrollArrowVisibility: g, scrollHandlerRef: _, listRef: v, highlightItemOnHover: x } = bT(), { side: S, align: C, alignItemWithTriggerActive: w, isPositioned: T, setControlledAlignItemWithTrigger: E } = nE(), D = uE(!0) != null, O = xT(), k = cp(), { nonce: A, disableStyleElements: j } = Gp(), M = vd(c, PT.id), N = vd(c, PT.open), P = vd(c, PT.openMethod), F = vd(c, PT.mounted), I = vd(c, PT.popupProps), L = vd(c, PT.transitionStatus), R = vd(c, PT.triggerElement), z = vd(c, PT.positionerElement), B = vd(c, PT.listElement), V = i.useRef(!1), H = i.useRef(!1), U = i.useRef({}), ee = Rs(), W = X((e) => {
|
|
21410
21410
|
if (!z || !l.current || !H.current) return;
|
|
21411
21411
|
if (V.current || !w) {
|
|
21412
21412
|
g();
|
|
@@ -21433,14 +21433,14 @@ var dE = {
|
|
|
21433
21433
|
}
|
|
21434
21434
|
(v || h >= f - 1) && (V.current = !0), g();
|
|
21435
21435
|
});
|
|
21436
|
-
i.useImperativeHandle(_, () =>
|
|
21436
|
+
i.useImperativeHandle(_, () => W, [W]), Nd({
|
|
21437
21437
|
open: N,
|
|
21438
21438
|
ref: l,
|
|
21439
21439
|
onComplete() {
|
|
21440
21440
|
N && u?.(!0);
|
|
21441
21441
|
}
|
|
21442
21442
|
});
|
|
21443
|
-
let
|
|
21443
|
+
let G = {
|
|
21444
21444
|
open: N,
|
|
21445
21445
|
transitionStatus: L,
|
|
21446
21446
|
side: S,
|
|
@@ -21469,7 +21469,7 @@ var dE = {
|
|
|
21469
21469
|
let e = l.current;
|
|
21470
21470
|
if (!N || !R || !z || !e || w && !T || c.state.transitionStatus === "ending") return;
|
|
21471
21471
|
if (!w) {
|
|
21472
|
-
H.current = !0,
|
|
21472
|
+
H.current = !0, ee.request(g), e.style.removeProperty("--transform-origin");
|
|
21473
21473
|
return;
|
|
21474
21474
|
}
|
|
21475
21475
|
let t = yE(e);
|
|
@@ -21486,15 +21486,15 @@ var dE = {
|
|
|
21486
21486
|
}
|
|
21487
21487
|
let N = O + M + S + y, P = Math.min(T, N), F = T - b - S, I = N - P, L = D - 5;
|
|
21488
21488
|
z.style.left = `${$p(j, 5, L - u.width)}px`, z.style.height = `${P}px`, z.style.maxHeight = "none", z.style.marginTop = `${b}px`, z.style.marginBottom = `${S}px`, e.style.height = "100%";
|
|
21489
|
-
let
|
|
21490
|
-
|
|
21491
|
-
let
|
|
21492
|
-
if (
|
|
21489
|
+
let ee = mE(h), W = I >= ee - 1;
|
|
21490
|
+
W && (P = Math.min(T, u.height) - (I - ee));
|
|
21491
|
+
let G = l.top < 20 || l.bottom > T - 20 || Math.ceil(P) + 1 < Math.min(_, C), K = (r.visualViewport?.scale ?? 1) !== 1 && Ao;
|
|
21492
|
+
if (G || K) {
|
|
21493
21493
|
H.current = !0, rE(z, U.current), E(!1);
|
|
21494
21494
|
return;
|
|
21495
21495
|
}
|
|
21496
|
-
let
|
|
21497
|
-
if (
|
|
21496
|
+
let te = Math.max(C, P);
|
|
21497
|
+
if (W) {
|
|
21498
21498
|
let e = Math.max(0, T - N);
|
|
21499
21499
|
z.style.top = u.height >= F ? "0" : `${e}px`, z.style.height = `${P}px`, h.scrollTop = mE(h);
|
|
21500
21500
|
} else z.style.bottom = "0", h.scrollTop = I;
|
|
@@ -21502,7 +21502,7 @@ var dE = {
|
|
|
21502
21502
|
let t = u.top, n = u.height, r = A.top + A.height / 2, i = $p(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
21503
21503
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
21504
21504
|
}
|
|
21505
|
-
(
|
|
21505
|
+
(te === T || P >= w) && (V.current = !0), g(), x && c.state.selectedIndex === null && c.state.activeIndex === null && v.current[0] != null && c.set("activeIndex", 0), H.current = !0;
|
|
21506
21506
|
} finally {
|
|
21507
21507
|
t();
|
|
21508
21508
|
}
|
|
@@ -21518,7 +21518,7 @@ var dE = {
|
|
|
21518
21518
|
g,
|
|
21519
21519
|
w,
|
|
21520
21520
|
E,
|
|
21521
|
-
|
|
21521
|
+
ee,
|
|
21522
21522
|
B,
|
|
21523
21523
|
v,
|
|
21524
21524
|
x,
|
|
@@ -21537,7 +21537,7 @@ var dE = {
|
|
|
21537
21537
|
z,
|
|
21538
21538
|
N
|
|
21539
21539
|
]);
|
|
21540
|
-
let
|
|
21540
|
+
let K = {
|
|
21541
21541
|
...B ? {
|
|
21542
21542
|
role: "presentation",
|
|
21543
21543
|
"aria-orientation": void 0
|
|
@@ -21550,16 +21550,16 @@ var dE = {
|
|
|
21550
21550
|
D && Nw.has(e.key) && e.stopPropagation();
|
|
21551
21551
|
},
|
|
21552
21552
|
onScroll(e) {
|
|
21553
|
-
B ||
|
|
21553
|
+
B || W(e.currentTarget);
|
|
21554
21554
|
},
|
|
21555
21555
|
...w && { style: B ? { height: "100%" } : iE }
|
|
21556
|
-
},
|
|
21556
|
+
}, te = na("div", e, {
|
|
21557
21557
|
ref: [t, l],
|
|
21558
|
-
state:
|
|
21558
|
+
state: G,
|
|
21559
21559
|
stateAttributesMapping: dE,
|
|
21560
21560
|
props: [
|
|
21561
21561
|
I,
|
|
21562
|
-
|
|
21562
|
+
K,
|
|
21563
21563
|
yp(L),
|
|
21564
21564
|
{ className: !B && w ? Bp.className : void 0 },
|
|
21565
21565
|
s
|
|
@@ -21572,7 +21572,7 @@ var dE = {
|
|
|
21572
21572
|
openInteractionType: P,
|
|
21573
21573
|
returnFocus: o,
|
|
21574
21574
|
restoreFocus: !0,
|
|
21575
|
-
children:
|
|
21575
|
+
children: te
|
|
21576
21576
|
})] });
|
|
21577
21577
|
});
|
|
21578
21578
|
process.env.NODE_ENV !== "production" && (fE.displayName = "SelectPopup");
|
|
@@ -22959,35 +22959,35 @@ function DD(e, t) {
|
|
|
22959
22959
|
return typeof e == "number" && typeof t == "number" ? e === t : Array.isArray(e) && Array.isArray(t) ? FT(e, t) : !1;
|
|
22960
22960
|
}
|
|
22961
22961
|
var OD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
22962
|
-
let { "aria-labelledby": n, className: r, defaultValue: a, disabled: o = !1, id: s, format: c, largeStep: l = 10, locale: u, render: d, max: f = 100, min: p = 0, minStepsBetweenValues: m = 0, form: h, name: g, onValueChange: _, onValueCommitted: v, orientation: b = "horizontal", step: x = 1, thumbCollisionBehavior: S = "push", thumbAlignment: C = "center", value: w, style: T, ...E } = e, D = qf(s), O = LT(D), k = X(_), A = X(v), { clearErrors: j } = gx(), { state: M, disabled: N, name: P, setTouched: F, setDirty: I, validityData: L, validation: R } = mx(), { labelId: z } = vx(), [B, V] = i.useState(), H = n ?? RT(z, B), U = N || o,
|
|
22962
|
+
let { "aria-labelledby": n, className: r, defaultValue: a, disabled: o = !1, id: s, format: c, largeStep: l = 10, locale: u, render: d, max: f = 100, min: p = 0, minStepsBetweenValues: m = 0, form: h, name: g, onValueChange: _, onValueCommitted: v, orientation: b = "horizontal", step: x = 1, thumbCollisionBehavior: S = "push", thumbAlignment: C = "center", value: w, style: T, ...E } = e, D = qf(s), O = LT(D), k = X(_), A = X(v), { clearErrors: j } = gx(), { state: M, disabled: N, name: P, setTouched: F, setDirty: I, validityData: L, validation: R } = mx(), { labelId: z } = vx(), [B, V] = i.useState(), H = n ?? RT(z, B), U = N || o, ee = P ?? g, [W, G] = Tx({
|
|
22963
22963
|
controlled: w,
|
|
22964
22964
|
default: a ?? p,
|
|
22965
22965
|
name: "Slider"
|
|
22966
|
-
}),
|
|
22967
|
-
|
|
22966
|
+
}), K = i.useRef(null), te = i.useRef(null), ne = i.useRef([]), re = i.useRef(null), ie = i.useRef(null), ae = i.useRef(-1), oe = i.useRef(null), se = i.useRef("none"), ce = Ms(c), [le, ue] = i.useState(-1), [de, fe] = i.useState(-1), [pe, me] = i.useState(!1), [he, ge] = i.useState(() => /* @__PURE__ */ new Map()), [q, _e] = i.useState([void 0, void 0]), ve = X((e) => {
|
|
22967
|
+
ue(e), e !== -1 && fe(e);
|
|
22968
22968
|
});
|
|
22969
|
-
Dx(R.inputRef, D,
|
|
22970
|
-
j(
|
|
22969
|
+
Dx(R.inputRef, D, W, void 0, !U, g), nT(W, () => {
|
|
22970
|
+
j(ee), R.change(W);
|
|
22971
22971
|
let e = L.initialValue, t;
|
|
22972
|
-
t = Array.isArray(
|
|
22972
|
+
t = Array.isArray(W) && Array.isArray(e) ? !FT(W, e) : W !== e, I(t);
|
|
22973
22973
|
});
|
|
22974
22974
|
let ye = X((e) => {
|
|
22975
|
-
e && (
|
|
22976
|
-
}), be = Array.isArray(
|
|
22975
|
+
e && (te.current = e);
|
|
22976
|
+
}), be = Array.isArray(W), xe = i.useMemo(() => be ? W.slice().sort(yD) : [$p(W, p, f)], [
|
|
22977
22977
|
f,
|
|
22978
22978
|
p,
|
|
22979
22979
|
be,
|
|
22980
|
-
|
|
22980
|
+
W
|
|
22981
22981
|
]), Se = X((e, t) => {
|
|
22982
|
-
if (Number.isNaN(e) || DD(e,
|
|
22982
|
+
if (Number.isNaN(e) || DD(e, W)) return !1;
|
|
22983
22983
|
let n = t ?? ws("none", void 0, void 0, { activeThumbIndex: -1 }), r = n.event, i = new (r.constructor ?? Event)(r.type, r);
|
|
22984
22984
|
return Object.defineProperty(i, "target", {
|
|
22985
22985
|
writable: !0,
|
|
22986
22986
|
value: {
|
|
22987
22987
|
value: e,
|
|
22988
|
-
name:
|
|
22988
|
+
name: ee
|
|
22989
22989
|
}
|
|
22990
|
-
}), n.event = i, k(e, n), n.isCanceled ? !1 : (
|
|
22990
|
+
}), n.event = i, k(e, n), n.isCanceled ? !1 : (se.current = n.reason, G(e), !0);
|
|
22991
22991
|
}), Ce = X((e, t, n) => {
|
|
22992
22992
|
let r = xD(e, t, p, f, be, xe);
|
|
22993
22993
|
if (SD(r, x, m)) {
|
|
@@ -22996,14 +22996,14 @@ var OD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
22996
22996
|
}
|
|
22997
22997
|
});
|
|
22998
22998
|
process.env.NODE_ENV !== "production" && p >= f && Pi("Slider `max` must be greater than `min`."), Z(() => {
|
|
22999
|
-
let e = Go(zs(
|
|
23000
|
-
U && Ko(
|
|
23001
|
-
}, [U]), U &&
|
|
22999
|
+
let e = Go(zs(K.current));
|
|
23000
|
+
U && Ko(K.current, e) && e.blur();
|
|
23001
|
+
}, [U]), U && le !== -1 && ve(-1);
|
|
23002
23002
|
let we = i.useMemo(() => ({
|
|
23003
23003
|
...M,
|
|
23004
|
-
activeThumbIndex:
|
|
23004
|
+
activeThumbIndex: le,
|
|
23005
23005
|
disabled: U,
|
|
23006
|
-
dragging:
|
|
23006
|
+
dragging: pe,
|
|
23007
23007
|
orientation: b,
|
|
23008
23008
|
max: f,
|
|
23009
23009
|
min: p,
|
|
@@ -23012,9 +23012,9 @@ var OD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23012
23012
|
values: xe
|
|
23013
23013
|
}), [
|
|
23014
23014
|
M,
|
|
23015
|
-
|
|
23015
|
+
le,
|
|
23016
23016
|
U,
|
|
23017
|
-
|
|
23017
|
+
pe,
|
|
23018
23018
|
f,
|
|
23019
23019
|
p,
|
|
23020
23020
|
m,
|
|
@@ -23022,74 +23022,74 @@ var OD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23022
23022
|
x,
|
|
23023
23023
|
xe
|
|
23024
23024
|
]), Te = i.useMemo(() => ({
|
|
23025
|
-
active:
|
|
23026
|
-
controlRef:
|
|
23025
|
+
active: le,
|
|
23026
|
+
controlRef: te,
|
|
23027
23027
|
disabled: U,
|
|
23028
|
-
dragging:
|
|
23028
|
+
dragging: pe,
|
|
23029
23029
|
validation: R,
|
|
23030
|
-
formatOptionsRef:
|
|
23030
|
+
formatOptionsRef: ce,
|
|
23031
23031
|
handleInputChange: Ce,
|
|
23032
|
-
indicatorPosition:
|
|
23032
|
+
indicatorPosition: q,
|
|
23033
23033
|
inset: C !== "center",
|
|
23034
23034
|
labelId: H,
|
|
23035
23035
|
rootLabelId: O,
|
|
23036
23036
|
largeStep: l,
|
|
23037
|
-
lastUsedThumbIndex:
|
|
23038
|
-
lastChangeReasonRef:
|
|
23037
|
+
lastUsedThumbIndex: de,
|
|
23038
|
+
lastChangeReasonRef: se,
|
|
23039
23039
|
form: h,
|
|
23040
23040
|
locale: u,
|
|
23041
23041
|
max: f,
|
|
23042
23042
|
min: p,
|
|
23043
23043
|
minStepsBetweenValues: m,
|
|
23044
|
-
name:
|
|
23044
|
+
name: ee,
|
|
23045
23045
|
onValueCommitted: A,
|
|
23046
23046
|
orientation: b,
|
|
23047
|
-
pressedInputRef:
|
|
23048
|
-
pressedThumbCenterOffsetRef:
|
|
23049
|
-
pressedThumbIndexRef:
|
|
23050
|
-
pressedValuesRef:
|
|
23047
|
+
pressedInputRef: re,
|
|
23048
|
+
pressedThumbCenterOffsetRef: ie,
|
|
23049
|
+
pressedThumbIndexRef: ae,
|
|
23050
|
+
pressedValuesRef: oe,
|
|
23051
23051
|
registerFieldControlRef: ye,
|
|
23052
23052
|
renderBeforeHydration: C === "edge",
|
|
23053
23053
|
setActive: ve,
|
|
23054
|
-
setDragging:
|
|
23054
|
+
setDragging: me,
|
|
23055
23055
|
setIndicatorPosition: _e,
|
|
23056
23056
|
setLabelId: V,
|
|
23057
23057
|
setValue: Se,
|
|
23058
23058
|
state: we,
|
|
23059
23059
|
step: x,
|
|
23060
23060
|
thumbCollisionBehavior: S,
|
|
23061
|
-
thumbMap:
|
|
23062
|
-
thumbRefs:
|
|
23061
|
+
thumbMap: he,
|
|
23062
|
+
thumbRefs: ne,
|
|
23063
23063
|
values: xe
|
|
23064
23064
|
}), [
|
|
23065
|
-
|
|
23066
|
-
|
|
23065
|
+
le,
|
|
23066
|
+
te,
|
|
23067
23067
|
H,
|
|
23068
23068
|
O,
|
|
23069
23069
|
U,
|
|
23070
|
-
|
|
23070
|
+
pe,
|
|
23071
23071
|
R,
|
|
23072
|
-
|
|
23072
|
+
ce,
|
|
23073
23073
|
Ce,
|
|
23074
|
-
|
|
23074
|
+
q,
|
|
23075
23075
|
l,
|
|
23076
|
-
|
|
23077
|
-
|
|
23076
|
+
de,
|
|
23077
|
+
se,
|
|
23078
23078
|
h,
|
|
23079
23079
|
u,
|
|
23080
23080
|
f,
|
|
23081
23081
|
p,
|
|
23082
23082
|
m,
|
|
23083
|
-
|
|
23083
|
+
ee,
|
|
23084
23084
|
A,
|
|
23085
23085
|
b,
|
|
23086
|
-
ne,
|
|
23087
23086
|
re,
|
|
23088
23087
|
ie,
|
|
23089
23088
|
ae,
|
|
23089
|
+
oe,
|
|
23090
23090
|
ye,
|
|
23091
23091
|
ve,
|
|
23092
|
-
|
|
23092
|
+
me,
|
|
23093
23093
|
_e,
|
|
23094
23094
|
V,
|
|
23095
23095
|
Se,
|
|
@@ -23097,12 +23097,12 @@ var OD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23097
23097
|
x,
|
|
23098
23098
|
S,
|
|
23099
23099
|
C,
|
|
23100
|
-
|
|
23101
|
-
|
|
23100
|
+
he,
|
|
23101
|
+
ne,
|
|
23102
23102
|
xe
|
|
23103
23103
|
]), Ee = na("div", e, {
|
|
23104
23104
|
state: we,
|
|
23105
|
-
ref: [t,
|
|
23105
|
+
ref: [t, K],
|
|
23106
23106
|
props: [
|
|
23107
23107
|
{
|
|
23108
23108
|
"aria-labelledby": H,
|
|
@@ -23117,8 +23117,8 @@ var OD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23117
23117
|
return /*#__PURE__*/ y(wD.Provider, {
|
|
23118
23118
|
value: Te,
|
|
23119
23119
|
children: /*#__PURE__*/ y(ZT, {
|
|
23120
|
-
elementsRef:
|
|
23121
|
-
onMapChange:
|
|
23120
|
+
elementsRef: ne,
|
|
23121
|
+
onMapChange: ge,
|
|
23122
23122
|
children: Ee
|
|
23123
23123
|
})
|
|
23124
23124
|
});
|
|
@@ -23308,7 +23308,7 @@ var VD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23308
23308
|
function U(e) {
|
|
23309
23309
|
return ya(e) ? O.current.some((t) => !ya(t) || !Ko(t, e) ? !1 : t.querySelector("input[type=\"range\"]")?.disabled === !0) : !1;
|
|
23310
23310
|
}
|
|
23311
|
-
function
|
|
23311
|
+
function ee(e) {
|
|
23312
23312
|
let t = N.current, n = v.current;
|
|
23313
23313
|
if (!t || !j && (n < 0 || n >= k.length)) return null;
|
|
23314
23314
|
let { width: r, height: i, bottom: a, left: o, right: s } = t.getBoundingClientRect(), c = zD(P.current, M), l = R.current, u = (M ? i : r) - c.start - c.end - l * 2, m = _.current ?? 0, h = e.x - m, g = e.y - m, b = $p(((M ? a - g - c.end : (A === "rtl" ? s - h : h - o) - c.start) - l) / u, 0, 1), x = (d - f) * b + f;
|
|
@@ -23329,7 +23329,7 @@ var VD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23329
23329
|
didSwap: !1
|
|
23330
23330
|
};
|
|
23331
23331
|
}
|
|
23332
|
-
function
|
|
23332
|
+
function W(e) {
|
|
23333
23333
|
y.current = j ? k.slice() : null, z.current = null, B.current = k;
|
|
23334
23334
|
let t = v.current, n = t;
|
|
23335
23335
|
if (t > -1 && t < k.length) {
|
|
@@ -23357,33 +23357,33 @@ var VD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23357
23357
|
}
|
|
23358
23358
|
}
|
|
23359
23359
|
}
|
|
23360
|
-
function
|
|
23360
|
+
function G(e) {
|
|
23361
23361
|
let t = O.current?.[e]?.querySelector("input[type=\"range\"]");
|
|
23362
23362
|
t && t.focus({
|
|
23363
23363
|
preventScroll: !0,
|
|
23364
23364
|
focusVisible: !1
|
|
23365
23365
|
});
|
|
23366
23366
|
}
|
|
23367
|
-
function
|
|
23367
|
+
function K(e, t, n) {
|
|
23368
23368
|
let r = w(e.value, ws(t, n, void 0, { activeThumbIndex: e.thumbIndex }));
|
|
23369
23369
|
return r && (z.current = e.value, B.current = Array.isArray(e.value) ? e.value : [e.value], e.didSwap && V(e.thumbIndex)), r;
|
|
23370
23370
|
}
|
|
23371
|
-
let
|
|
23371
|
+
let te = X((e) => {
|
|
23372
23372
|
let t = BD(e, I);
|
|
23373
23373
|
if (t == null) return;
|
|
23374
23374
|
if (L.current += 1, e.type === "pointermove" && e.buttons === 0) {
|
|
23375
|
-
|
|
23375
|
+
ne(e);
|
|
23376
23376
|
return;
|
|
23377
23377
|
}
|
|
23378
|
-
let n =
|
|
23379
|
-
n != null && SD(n.value, E, p) && (!c && L.current > RD && C(!0),
|
|
23380
|
-
}),
|
|
23378
|
+
let n = ee(t);
|
|
23379
|
+
n != null && SD(n.value, E, p) && (!c && L.current > RD && C(!0), K(n, "drag", e) && n.didSwap && G(n.thumbIndex));
|
|
23380
|
+
}), ne = X((e) => {
|
|
23381
23381
|
if (S(-1), C(!1), g.current = null, _.current = null, z.current != null) {
|
|
23382
23382
|
let t = u.current;
|
|
23383
23383
|
m(z.current, Ts(t, e));
|
|
23384
23384
|
}
|
|
23385
|
-
"pointerType" in e && N.current?.hasPointerCapture(e.pointerId) && N.current?.releasePointerCapture(e.pointerId), v.current = -1, I.current = null, y.current = null, z.current = null,
|
|
23386
|
-
}),
|
|
23385
|
+
"pointerType" in e && N.current?.hasPointerCapture(e.pointerId) && N.current?.releasePointerCapture(e.pointerId), v.current = -1, I.current = null, y.current = null, z.current = null, ie();
|
|
23386
|
+
}), re = X((e) => {
|
|
23387
23387
|
if (s) return;
|
|
23388
23388
|
if (U(qo(e))) {
|
|
23389
23389
|
H();
|
|
@@ -23393,33 +23393,33 @@ var VD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23393
23393
|
t != null && (I.current = t.identifier);
|
|
23394
23394
|
let n = BD(e, I);
|
|
23395
23395
|
if (n != null) {
|
|
23396
|
-
|
|
23397
|
-
let t =
|
|
23396
|
+
W(n);
|
|
23397
|
+
let t = ee(n);
|
|
23398
23398
|
if (t == null) return;
|
|
23399
|
-
|
|
23399
|
+
G(t.thumbIndex), K(t, "track-press", e) && t.didSwap && G(t.thumbIndex);
|
|
23400
23400
|
}
|
|
23401
23401
|
L.current = 0;
|
|
23402
23402
|
let r = zs(N.current);
|
|
23403
|
-
r.addEventListener("touchmove",
|
|
23404
|
-
}),
|
|
23403
|
+
r.addEventListener("touchmove", te, { passive: !0 }), r.addEventListener("touchend", ne, { passive: !0 });
|
|
23404
|
+
}), ie = X(() => {
|
|
23405
23405
|
let e = zs(N.current);
|
|
23406
|
-
e.removeEventListener("pointermove",
|
|
23407
|
-
}),
|
|
23406
|
+
e.removeEventListener("pointermove", te), e.removeEventListener("pointerup", ne), e.removeEventListener("touchmove", te), e.removeEventListener("touchend", ne), y.current = null, z.current = null;
|
|
23407
|
+
}), ae = Rs();
|
|
23408
23408
|
return i.useEffect(() => {
|
|
23409
23409
|
let e = N.current;
|
|
23410
|
-
if (!e) return () =>
|
|
23411
|
-
let t = As(e, "touchstart",
|
|
23410
|
+
if (!e) return () => ie();
|
|
23411
|
+
let t = As(e, "touchstart", re, { passive: !0 });
|
|
23412
23412
|
return () => {
|
|
23413
|
-
t(),
|
|
23413
|
+
t(), ae.cancel(), ie();
|
|
23414
23414
|
};
|
|
23415
23415
|
}, [
|
|
23416
|
+
ie,
|
|
23416
23417
|
re,
|
|
23417
|
-
ne,
|
|
23418
23418
|
N,
|
|
23419
|
-
|
|
23419
|
+
ae
|
|
23420
23420
|
]), i.useEffect(() => {
|
|
23421
|
-
s &&
|
|
23422
|
-
}, [s,
|
|
23421
|
+
s && ie();
|
|
23422
|
+
}, [s, ie]), na("div", e, {
|
|
23423
23423
|
state: T,
|
|
23424
23424
|
ref: [
|
|
23425
23425
|
t,
|
|
@@ -23438,16 +23438,16 @@ var VD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23438
23438
|
}
|
|
23439
23439
|
let r = BD(e, I);
|
|
23440
23440
|
if (r != null) {
|
|
23441
|
-
|
|
23442
|
-
let n =
|
|
23441
|
+
W(r);
|
|
23442
|
+
let n = ee(r);
|
|
23443
23443
|
if (n == null) return;
|
|
23444
|
-
Ko(O.current[n.thumbIndex], Go(zs(t))) ? e.preventDefault() :
|
|
23445
|
-
|
|
23446
|
-
}), C(!0), _.current == null &&
|
|
23444
|
+
Ko(O.current[n.thumbIndex], Go(zs(t))) ? e.preventDefault() : ae.request(() => {
|
|
23445
|
+
G(n.thumbIndex);
|
|
23446
|
+
}), C(!0), _.current == null && K(n, "track-press", e.nativeEvent) && n.didSwap && G(n.thumbIndex);
|
|
23447
23447
|
}
|
|
23448
23448
|
e.nativeEvent.pointerId && t.setPointerCapture(e.nativeEvent.pointerId), L.current = 0;
|
|
23449
23449
|
let i = zs(N.current);
|
|
23450
|
-
i.addEventListener("pointermove",
|
|
23450
|
+
i.addEventListener("pointermove", te, { passive: !0 }), i.addEventListener("pointerup", ne, { once: !0 });
|
|
23451
23451
|
}
|
|
23452
23452
|
}, o],
|
|
23453
23453
|
stateAttributesMapping: CD
|
|
@@ -23502,11 +23502,11 @@ function ZD(e, t, n, r, i) {
|
|
|
23502
23502
|
return $p(Number(a.toFixed(Math.max(PD(e), PD(t), PD(r)))), r, i);
|
|
23503
23503
|
}
|
|
23504
23504
|
var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
23505
|
-
let { render: n, children: r, className: a, "aria-describedby": o, "aria-label": s, "aria-labelledby": c, "aria-valuetext": l, disabled: u = !1, getAriaLabel: d, getAriaValueText: f, id: p, index: m, inputRef: h, onBlur: g, onFocus: _, onKeyDown: v, tabIndex: x, style: S, ...C } = e, { nonce: w } = Gp(), T = qf(p), { active: E, lastUsedThumbIndex: D, controlRef: O, disabled: k, validation: A, formatOptionsRef: j, handleInputChange: M, inset: N, labelId: P, largeStep: F, locale: I, max: L, min: R, minStepsBetweenValues: z, form: B, name: V, orientation: H, pressedInputRef: U, pressedThumbCenterOffsetRef:
|
|
23506
|
-
let e = O.current, t =
|
|
23505
|
+
let { render: n, children: r, className: a, "aria-describedby": o, "aria-label": s, "aria-labelledby": c, "aria-valuetext": l, disabled: u = !1, getAriaLabel: d, getAriaValueText: f, id: p, index: m, inputRef: h, onBlur: g, onFocus: _, onKeyDown: v, tabIndex: x, style: S, ...C } = e, { nonce: w } = Gp(), T = qf(p), { active: E, lastUsedThumbIndex: D, controlRef: O, disabled: k, validation: A, formatOptionsRef: j, handleInputChange: M, inset: N, labelId: P, largeStep: F, locale: I, max: L, min: R, minStepsBetweenValues: z, form: B, name: V, orientation: H, pressedInputRef: U, pressedThumbCenterOffsetRef: ee, pressedThumbIndexRef: W, renderBeforeHydration: G, setActive: K, setIndicatorPosition: te, state: ne, step: re, values: ie } = TD(), ae = cp(), oe = u || k, se = ie.length > 1, ce = H === "vertical", le = ae === "rtl", { setTouched: ue, setFocused: de, validationMode: fe } = mx(), pe = i.useRef(null), me = i.useRef(null), he = i.useRef(!1), ge = qf(), q = Sx(), _e = se ? ge : q, { ref: ve, index: ye } = SE({ metadata: i.useMemo(() => ({ inputId: _e }), [_e]) }), be = se ? m ?? ye : 0, xe = be === ie.length - 1, Se = ie[be], Ce = qD(Se, R, L), [we, Te] = i.useState(), Ee = KD(), De = D >= 0 && D < ie.length ? D : -1, Oe = X(() => {
|
|
23506
|
+
let e = O.current, t = pe.current;
|
|
23507
23507
|
if (!e || !t) return;
|
|
23508
|
-
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i =
|
|
23509
|
-
Te(s), be === 0 ?
|
|
23508
|
+
let n = t.getBoundingClientRect(), r = e.getBoundingClientRect(), i = ce ? "height" : "width", a = r[i] - n[i], o = (n[i] / 2 + a * Ce / 100) / r[i] * 100, s = Number.isFinite(o) ? o : void 0;
|
|
23509
|
+
Te(s), be === 0 ? te((e) => [s, e[1]]) : xe && te((e) => [e[0], s]);
|
|
23510
23510
|
});
|
|
23511
23511
|
Z(() => {
|
|
23512
23512
|
N && queueMicrotask(Oe);
|
|
@@ -23518,7 +23518,7 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23518
23518
|
Ce
|
|
23519
23519
|
]), Z(() => {
|
|
23520
23520
|
if (!N) return;
|
|
23521
|
-
let e = O.current, t =
|
|
23521
|
+
let e = O.current, t = pe.current;
|
|
23522
23522
|
if (!e || !t) return;
|
|
23523
23523
|
let n = ga(e).ResizeObserver;
|
|
23524
23524
|
if (typeof n != "function") return;
|
|
@@ -23531,34 +23531,34 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23531
23531
|
Oe,
|
|
23532
23532
|
N
|
|
23533
23533
|
]);
|
|
23534
|
-
let ke =
|
|
23535
|
-
|
|
23534
|
+
let ke = ce ? "bottom" : "insetInlineStart", Ae = ce ? "left" : "top", je;
|
|
23535
|
+
se ? E === be ? je = 2 : De === be && (je = 1) : E === be && (je = 1);
|
|
23536
23536
|
let Me;
|
|
23537
23537
|
Me = N ? {
|
|
23538
23538
|
"--position": `${we ?? 0}%`,
|
|
23539
|
-
visibility:
|
|
23539
|
+
visibility: G && Ee || we === void 0 ? "hidden" : void 0,
|
|
23540
23540
|
position: "absolute",
|
|
23541
23541
|
[ke]: "var(--position)",
|
|
23542
23542
|
[Ae]: "50%",
|
|
23543
|
-
translate: `${(
|
|
23543
|
+
translate: `${(ce || !le ? -1 : 1) * 50}% ${(ce ? 1 : -1) * 50}%`,
|
|
23544
23544
|
zIndex: je
|
|
23545
23545
|
} : Number.isFinite(Ce) ? {
|
|
23546
23546
|
position: "absolute",
|
|
23547
23547
|
[ke]: `${Ce}%`,
|
|
23548
23548
|
[Ae]: "50%",
|
|
23549
|
-
translate: `${(
|
|
23549
|
+
translate: `${(ce || !le ? -1 : 1) * 50}% ${(ce ? 1 : -1) * 50}%`,
|
|
23550
23550
|
zIndex: je
|
|
23551
23551
|
} : Vs;
|
|
23552
23552
|
let Ne;
|
|
23553
|
-
H === "vertical" && (Ne =
|
|
23553
|
+
H === "vertical" && (Ne = le ? "vertical-rl" : "vertical-lr");
|
|
23554
23554
|
let Pe = typeof d == "function" ? d(be) : s, Fe = Hi({
|
|
23555
23555
|
"aria-label": Pe,
|
|
23556
23556
|
"aria-labelledby": c ?? (Pe == null ? P : void 0),
|
|
23557
23557
|
"aria-describedby": o,
|
|
23558
23558
|
"aria-orientation": H,
|
|
23559
23559
|
"aria-valuenow": Se,
|
|
23560
|
-
"aria-valuetext": typeof f == "function" ? f(MD(Se, I, j.current ?? void 0), Se, be) : l ?? XD(
|
|
23561
|
-
disabled:
|
|
23560
|
+
"aria-valuetext": typeof f == "function" ? f(MD(Se, I, j.current ?? void 0), Se, be) : l ?? XD(ie, be, j.current ?? void 0, I),
|
|
23561
|
+
disabled: oe,
|
|
23562
23562
|
form: B,
|
|
23563
23563
|
id: _e,
|
|
23564
23564
|
max: L,
|
|
@@ -23568,32 +23568,32 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23568
23568
|
M(e.currentTarget.valueAsNumber, be, e);
|
|
23569
23569
|
},
|
|
23570
23570
|
onFocus(e) {
|
|
23571
|
-
let t =
|
|
23572
|
-
|
|
23571
|
+
let t = he.current;
|
|
23572
|
+
he.current = !1, K(be), de(!0), t && e.stopPropagation();
|
|
23573
23573
|
},
|
|
23574
23574
|
onBlur(e) {
|
|
23575
|
-
if (
|
|
23575
|
+
if (he.current) {
|
|
23576
23576
|
e.stopPropagation();
|
|
23577
23577
|
return;
|
|
23578
23578
|
}
|
|
23579
|
-
|
|
23579
|
+
pe.current && (K(-1), ue(!0), de(!1), fe === "onBlur" && A.commit(xD(Se, be, R, L, se, ie)));
|
|
23580
23580
|
},
|
|
23581
23581
|
onKeyDown(e) {
|
|
23582
23582
|
if (e.defaultPrevented || !YD.has(e.key)) return;
|
|
23583
23583
|
Nw.has(e.key) && e.stopPropagation();
|
|
23584
|
-
let t = null, n = FD(Se,
|
|
23584
|
+
let t = null, n = FD(Se, re, R);
|
|
23585
23585
|
switch (e.key) {
|
|
23586
23586
|
case Cw:
|
|
23587
|
-
t = ZD(n, e.shiftKey ? F :
|
|
23587
|
+
t = ZD(n, e.shiftKey ? F : re, 1, R, L);
|
|
23588
23588
|
break;
|
|
23589
23589
|
case Ew:
|
|
23590
|
-
t = ZD(n, e.shiftKey ? F :
|
|
23590
|
+
t = ZD(n, e.shiftKey ? F : re, le ? -1 : 1, R, L);
|
|
23591
23591
|
break;
|
|
23592
23592
|
case ww:
|
|
23593
|
-
t = ZD(n, e.shiftKey ? F :
|
|
23593
|
+
t = ZD(n, e.shiftKey ? F : re, -1, R, L);
|
|
23594
23594
|
break;
|
|
23595
23595
|
case Tw:
|
|
23596
|
-
t = ZD(n, e.shiftKey ? F :
|
|
23596
|
+
t = ZD(n, e.shiftKey ? F : re, le ? 1 : -1, R, L);
|
|
23597
23597
|
break;
|
|
23598
23598
|
case Ow:
|
|
23599
23599
|
t = ZD(n, F, 1, R, L);
|
|
@@ -23602,22 +23602,22 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23602
23602
|
t = ZD(n, F, -1, R, L);
|
|
23603
23603
|
break;
|
|
23604
23604
|
case "End":
|
|
23605
|
-
t = L,
|
|
23605
|
+
t = L, se && (t = Number.isFinite(ie[be + 1]) ? ie[be + 1] - re * z : L);
|
|
23606
23606
|
break;
|
|
23607
23607
|
case Dw:
|
|
23608
|
-
t = R,
|
|
23608
|
+
t = R, se && (t = Number.isFinite(ie[be - 1]) ? ie[be - 1] + re * z : R);
|
|
23609
23609
|
break;
|
|
23610
23610
|
default: break;
|
|
23611
23611
|
}
|
|
23612
23612
|
if (t !== null) {
|
|
23613
23613
|
let n = e.currentTarget;
|
|
23614
|
-
es(n) || (
|
|
23614
|
+
es(n) || (he.current = !0, n.blur(), n.focus({
|
|
23615
23615
|
preventScroll: !0,
|
|
23616
23616
|
focusVisible: !0
|
|
23617
23617
|
})), M(t, be, e), e.preventDefault();
|
|
23618
23618
|
}
|
|
23619
23619
|
},
|
|
23620
|
-
step:
|
|
23620
|
+
step: re,
|
|
23621
23621
|
style: {
|
|
23622
23622
|
...Vs,
|
|
23623
23623
|
width: "100%",
|
|
@@ -23627,13 +23627,13 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23627
23627
|
tabIndex: x ?? void 0,
|
|
23628
23628
|
type: "range",
|
|
23629
23629
|
value: Se ?? ""
|
|
23630
|
-
}, (e) => A.getValidationProps(
|
|
23630
|
+
}, (e) => A.getValidationProps(oe, e), { onKeyDown: v }), Ie = Ci(me, A.inputRef, h);
|
|
23631
23631
|
return na("div", e, {
|
|
23632
|
-
state:
|
|
23632
|
+
state: ne,
|
|
23633
23633
|
ref: [
|
|
23634
23634
|
t,
|
|
23635
23635
|
ve,
|
|
23636
|
-
|
|
23636
|
+
pe
|
|
23637
23637
|
],
|
|
23638
23638
|
props: [{
|
|
23639
23639
|
[JD.index]: be,
|
|
@@ -23644,7 +23644,7 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23644
23644
|
...Fe,
|
|
23645
23645
|
suppressHydrationWarning: !0
|
|
23646
23646
|
}),
|
|
23647
|
-
N && Ee &&
|
|
23647
|
+
N && Ee && G && xe && /*#__PURE__*/ y("script", {
|
|
23648
23648
|
nonce: w,
|
|
23649
23649
|
dangerouslySetInnerHTML: { __html: "!function(){const t=document.currentScript?.parentElement;if(!t)return;const e=t.closest(\"[data-base-ui-slider-control]\");if(!e)return;const r=e.querySelector(\"[data-base-ui-slider-indicator]\"),i=e.getBoundingClientRect(),n=\"vertical\"===e.getAttribute(\"data-orientation\")?\"height\":\"width\",o=e.querySelectorAll('input[type=\"range\"]'),l=o.length>1,s=o.length-1;let a=null,u=null;for(let t=0;t<o.length;t+=1){const e=o[t],y=parseFloat(e.getAttribute(\"value\")??\"\");if(Number.isNaN(y))return;const c=e.parentElement;if(!c)return;const p=parseFloat(e.getAttribute(\"max\")??\"100\"),g=parseFloat(e.getAttribute(\"min\")??\"0\"),b=c?.getBoundingClientRect(),d=i[n]-b[n],m=100*(y-g)/(p-g),v=(b[n]/2+d*m/100)/i[n]*100;c.style.setProperty(\"--position\",`${v}%`),Number.isFinite(v)&&(c.style.removeProperty(\"visibility\"),r&&(0===t?(a=v,r.style.setProperty(\"--start-position\",`${v}%`),l||r.style.removeProperty(\"visibility\")):t===s&&(u=v-(a??0),r.style.setProperty(\"--end-position\",`${v}%`),r.style.setProperty(\"--relative-size\",`${u}%`),r.style.removeProperty(\"visibility\"))))}}();" },
|
|
23650
23650
|
suppressHydrationWarning: !0
|
|
@@ -23654,16 +23654,16 @@ var QD = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
23654
23654
|
onBlur: g,
|
|
23655
23655
|
onFocus: _,
|
|
23656
23656
|
onPointerDown(e) {
|
|
23657
|
-
if (!
|
|
23658
|
-
if (
|
|
23659
|
-
let t = H === "horizontal" ? "x" : "y", n = ND(
|
|
23660
|
-
|
|
23657
|
+
if (!oe) {
|
|
23658
|
+
if (W.current = be, pe.current != null) {
|
|
23659
|
+
let t = H === "horizontal" ? "x" : "y", n = ND(pe.current), r = (H === "horizontal" ? e.clientX : e.clientY) - n[t];
|
|
23660
|
+
ee.current = r;
|
|
23661
23661
|
}
|
|
23662
|
-
|
|
23662
|
+
me.current != null && U.current !== me.current && (U.current = me.current);
|
|
23663
23663
|
}
|
|
23664
23664
|
},
|
|
23665
23665
|
style: Me,
|
|
23666
|
-
suppressHydrationWarning:
|
|
23666
|
+
suppressHydrationWarning: G || void 0
|
|
23667
23667
|
}, C],
|
|
23668
23668
|
stateAttributesMapping: CD
|
|
23669
23669
|
});
|
|
@@ -26010,26 +26010,26 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
26010
26010
|
function U(e, t, n, r, i) {
|
|
26011
26011
|
this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
|
|
26012
26012
|
}
|
|
26013
|
-
function
|
|
26013
|
+
function ee() {
|
|
26014
26014
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = g, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new i.Buf16(2 * x), this.dyn_dtree = new i.Buf16(2 * (2 * y + 1)), this.bl_tree = new i.Buf16(2 * (2 * b + 1)), P(this.dyn_ltree), P(this.dyn_dtree), P(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new i.Buf16(S + 1), this.heap = new i.Buf16(2 * v + 1), P(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new i.Buf16(2 * v + 1), P(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
26015
26015
|
}
|
|
26016
|
-
function
|
|
26016
|
+
function W(e) {
|
|
26017
26017
|
var t;
|
|
26018
26018
|
return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = h, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? E : D, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = l, a._tr_init(t), d) : M(e, f);
|
|
26019
26019
|
}
|
|
26020
|
-
function
|
|
26021
|
-
var t =
|
|
26020
|
+
function G(e) {
|
|
26021
|
+
var t = W(e);
|
|
26022
26022
|
return t === d && function(e) {
|
|
26023
26023
|
e.window_size = 2 * e.w_size, P(e.head), e.max_lazy_match = r[e.level].max_lazy, e.good_match = r[e.level].good_length, e.nice_match = r[e.level].nice_length, e.max_chain_length = r[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = C - 1, e.match_available = 0, e.ins_h = 0;
|
|
26024
26024
|
}(e.state), t;
|
|
26025
26025
|
}
|
|
26026
|
-
function
|
|
26026
|
+
function K(e, t, n, r, a, o) {
|
|
26027
26027
|
if (!e) return f;
|
|
26028
26028
|
var s = 1;
|
|
26029
26029
|
if (t === p && (t = 6), r < 0 ? (s = 0, r = -r) : 15 < r && (s = 2, r -= 16), a < 1 || _ < a || n !== g || r < 8 || 15 < r || t < 0 || 9 < t || o < 0 || m < o) return M(e, f);
|
|
26030
26030
|
r === 8 && (r = 9);
|
|
26031
|
-
var c = new
|
|
26032
|
-
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n,
|
|
26031
|
+
var c = new ee();
|
|
26032
|
+
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n, G(e);
|
|
26033
26033
|
}
|
|
26034
26034
|
r = [
|
|
26035
26035
|
new U(0, 0, 0, 0, function(e, t) {
|
|
@@ -26055,8 +26055,8 @@ while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] ===
|
|
|
26055
26055
|
new U(32, 128, 258, 1024, H),
|
|
26056
26056
|
new U(32, 258, 258, 4096, H)
|
|
26057
26057
|
], n.deflateInit = function(e, t) {
|
|
26058
|
-
return
|
|
26059
|
-
}, n.deflateInit2 =
|
|
26058
|
+
return K(e, t, g, 15, 8, 0);
|
|
26059
|
+
}, n.deflateInit2 = K, n.deflateReset = G, n.deflateResetKeep = W, n.deflateSetHeader = function(e, t) {
|
|
26060
26060
|
return e && e.state && e.state.wrap === 2 ? (e.state.gzhead = t, d) : f;
|
|
26061
26061
|
}, n.deflate = function(e, t) {
|
|
26062
26062
|
var n, i, o, c;
|
|
@@ -26984,25 +26984,25 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
26984
26984
|
function U(e) {
|
|
26985
26985
|
8 < e.bi_valid ? L(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
26986
26986
|
}
|
|
26987
|
-
function
|
|
26987
|
+
function ee(e, t, n, r) {
|
|
26988
26988
|
var i = 2 * t, a = 2 * n;
|
|
26989
26989
|
return e[i] < e[a] || e[i] === e[a] && r[t] <= r[n];
|
|
26990
26990
|
}
|
|
26991
|
-
function
|
|
26992
|
-
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len &&
|
|
26991
|
+
function W(e, t, n) {
|
|
26992
|
+
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && ee(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !ee(t, r, e.heap[i], e.depth));) e.heap[n] = e.heap[i], n = i, i <<= 1;
|
|
26993
26993
|
e.heap[n] = r;
|
|
26994
26994
|
}
|
|
26995
|
-
function
|
|
26995
|
+
function G(e, t, n) {
|
|
26996
26996
|
var r, i, a, o, s = 0;
|
|
26997
26997
|
if (e.last_lit !== 0) for (; r = e.pending_buf[e.d_buf + 2 * s] << 8 | e.pending_buf[e.d_buf + 2 * s + 1], i = e.pending_buf[e.l_buf + s], s++, r === 0 ? z(e, i, t) : (z(e, (a = O[i]) + l + 1, t), (o = x[a]) !== 0 && R(e, i -= k[a], o), z(e, a = I(--r), n), (o = S[a]) !== 0 && R(e, r -= N[a], o)), s < e.last_lit;);
|
|
26998
26998
|
z(e, _, t);
|
|
26999
26999
|
}
|
|
27000
|
-
function
|
|
27000
|
+
function K(e, t) {
|
|
27001
27001
|
var n, r, i, a = t.dyn_tree, o = t.stat_desc.static_tree, s = t.stat_desc.has_stree, c = t.stat_desc.elems, l = -1;
|
|
27002
27002
|
for (e.heap_len = 0, e.heap_max = p, n = 0; n < c; n++) a[2 * n] === 0 ? a[2 * n + 1] = 0 : (e.heap[++e.heap_len] = l = n, e.depth[n] = 0);
|
|
27003
27003
|
for (; e.heap_len < 2;) a[2 * (i = e.heap[++e.heap_len] = l < 2 ? ++l : 0)] = 1, e.depth[i] = 0, e.opt_len--, s && (e.static_len -= o[2 * i + 1]);
|
|
27004
|
-
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--)
|
|
27005
|
-
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--],
|
|
27004
|
+
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--) W(e, a, n);
|
|
27005
|
+
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--], W(e, a, 1), r = e.heap[1], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = r, a[2 * i] = a[2 * n] + a[2 * r], e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1, a[2 * n + 1] = a[2 * r + 1] = i, e.heap[1] = i++, W(e, a, 1), 2 <= e.heap_len;);
|
|
27006
27006
|
e.heap[--e.heap_max] = e.heap[1], function(e, t) {
|
|
27007
27007
|
var n, r, i, a, o, s, c = t.dyn_tree, l = t.max_code, u = t.stat_desc.static_tree, d = t.stat_desc.has_stree, f = t.stat_desc.extra_bits, h = t.stat_desc.extra_base, g = t.stat_desc.max_length, _ = 0;
|
|
27008
27008
|
for (a = 0; a <= m; a++) e.bl_count[a] = 0;
|
|
@@ -27016,11 +27016,11 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
27016
27016
|
}
|
|
27017
27017
|
}(e, t), V(a, l, e.bl_count);
|
|
27018
27018
|
}
|
|
27019
|
-
function
|
|
27019
|
+
function te(e, t, n) {
|
|
27020
27020
|
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
27021
27021
|
for (o === 0 && (c = 138, l = 3), t[2 * (n + 1) + 1] = 65535, r = 0; r <= n; r++) i = o, o = t[2 * (r + 1) + 1], ++s < c && i === o || (s < l ? e.bl_tree[2 * i] += s : i === 0 ? s <= 10 ? e.bl_tree[2 * y]++ : e.bl_tree[2 * b]++ : (i !== a && e.bl_tree[2 * i]++, e.bl_tree[2 * v]++), a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4));
|
|
27022
27022
|
}
|
|
27023
|
-
function
|
|
27023
|
+
function ne(e, t, n) {
|
|
27024
27024
|
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
27025
27025
|
for (o === 0 && (c = 138, l = 3), r = 0; r <= n; r++) if (i = o, o = t[2 * (r + 1) + 1], !(++s < c && i === o)) {
|
|
27026
27026
|
if (s < l) for (; z(e, i, e.bl_tree), --s != 0;);
|
|
@@ -27029,14 +27029,14 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
27029
27029
|
}
|
|
27030
27030
|
}
|
|
27031
27031
|
o(N);
|
|
27032
|
-
var
|
|
27033
|
-
function
|
|
27032
|
+
var re = !1;
|
|
27033
|
+
function ie(e, t, n, i) {
|
|
27034
27034
|
R(e, (s << 1) + +!!i, 3), function(e, t, n, i) {
|
|
27035
27035
|
U(e), i && (L(e, n), L(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
|
|
27036
27036
|
}(e, t, n, !0);
|
|
27037
27037
|
}
|
|
27038
27038
|
n._tr_init = function(e) {
|
|
27039
|
-
|
|
27039
|
+
re ||= (function() {
|
|
27040
27040
|
var e, t, n, r, i, a = Array(m + 1);
|
|
27041
27041
|
for (r = n = 0; r < c - 1; r++) for (k[r] = n, e = 0; e < 1 << x[r]; e++) O[n++] = r;
|
|
27042
27042
|
for (O[n - 1] = r, r = i = 0; r < 16; r++) for (N[r] = i, e = 0; e < 1 << S[r]; e++) D[i++] = r;
|
|
@@ -27049,7 +27049,7 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
27049
27049
|
for (V(T, u + 1, a), e = 0; e < d; e++) E[2 * e + 1] = 5, E[2 * e] = B(e, 5);
|
|
27050
27050
|
A = new P(T, x, l + 1, u, m), j = new P(E, S, 0, d, m), M = new P([], C, 0, f, g);
|
|
27051
27051
|
}(), !0), e.l_desc = new F(e.dyn_ltree, A), e.d_desc = new F(e.dyn_dtree, j), e.bl_desc = new F(e.bl_tree, M), e.bi_buf = 0, e.bi_valid = 0, H(e);
|
|
27052
|
-
}, n._tr_stored_block =
|
|
27052
|
+
}, n._tr_stored_block = ie, n._tr_flush_block = function(e, t, n, r) {
|
|
27053
27053
|
var o, s, c = 0;
|
|
27054
27054
|
0 < e.level ? (e.strm.data_type === 2 && (e.strm.data_type = function(e) {
|
|
27055
27055
|
var t, n = 4093624447;
|
|
@@ -27057,15 +27057,15 @@ while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[+
|
|
|
27057
27057
|
if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0) return a;
|
|
27058
27058
|
for (t = 32; t < l; t++) if (e.dyn_ltree[2 * t] !== 0) return a;
|
|
27059
27059
|
return i;
|
|
27060
|
-
}(e)),
|
|
27060
|
+
}(e)), K(e, e.l_desc), K(e, e.d_desc), c = function(e) {
|
|
27061
27061
|
var t;
|
|
27062
|
-
for (
|
|
27062
|
+
for (te(e, e.dyn_ltree, e.l_desc.max_code), te(e, e.dyn_dtree, e.d_desc.max_code), K(e, e.bl_desc), t = f - 1; 3 <= t && e.bl_tree[2 * w[t] + 1] === 0; t--);
|
|
27063
27063
|
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
27064
|
-
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ?
|
|
27064
|
+
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ? ie(e, t, n, r) : e.strategy === 4 || s === o ? (R(e, 2 + +!!r, 3), G(e, T, E)) : (R(e, 4 + +!!r, 3), function(e, t, n, r) {
|
|
27065
27065
|
var i;
|
|
27066
27066
|
for (R(e, t - 257, 5), R(e, n - 1, 5), R(e, r - 4, 4), i = 0; i < r; i++) R(e, e.bl_tree[2 * w[i] + 1], 3);
|
|
27067
|
-
|
|
27068
|
-
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1),
|
|
27067
|
+
ne(e, e.dyn_ltree, t - 1), ne(e, e.dyn_dtree, n - 1);
|
|
27068
|
+
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1), G(e, e.dyn_ltree, e.dyn_dtree)), H(e), r && U(e);
|
|
27069
27069
|
}, n._tr_tally = function(e, t, n) {
|
|
27070
27070
|
return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & n, e.last_lit++, t === 0 ? e.dyn_ltree[2 * n]++ : (e.matches++, t--, e.dyn_ltree[2 * (O[n] + l + 1)]++, e.dyn_dtree[2 * I(t)]++), e.last_lit === e.lit_bufsize - 1;
|
|
27071
27071
|
}, n._tr_align = function(e) {
|
|
@@ -27382,28 +27382,28 @@ process.env.NODE_ENV !== "production" && (EO.displayName = "MenuPortal");
|
|
|
27382
27382
|
//#endregion
|
|
27383
27383
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@base-ui/react/menu/positioner/MenuPositioner.mjs
|
|
27384
27384
|
var DO = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
27385
|
-
let { anchor: n, positionMethod: r = "absolute", className: a, render: o, side: s, align: c, sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: h = !1, collisionAvoidance: g = yl, style: _, ...v } = e, { store: x } = hO(), S = TO(), C = _O(!0), w = x.useState("parent"), T = x.useState("floatingRootContext"), E = x.useState("floatingTreeRoot"), D = x.useState("mounted"), O = x.useState("open"), k = x.useState("modal"), A = x.useState("openMethod"), j = x.useState("activeTriggerElement"), M = x.useState("transitionStatus"), N = x.useState("positionerElement"), P = x.useState("instantType"), F = x.useState("hasViewport"), I = x.useState("lastOpenChangeReason"), L = x.useState("floatingNodeId"), R = x.useState("floatingParentNodeId"), z = T.useState("domReferenceElement"), B = i.useRef(null), V = Md(N, !1, !1), H = n, U = l,
|
|
27386
|
-
w.type === "context-menu" && (H = n ?? w.context?.anchor,
|
|
27387
|
-
let
|
|
27388
|
-
w.type === "menu" ? (
|
|
27389
|
-
let
|
|
27385
|
+
let { anchor: n, positionMethod: r = "absolute", className: a, render: o, side: s, align: c, sideOffset: l = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f = 5, arrowPadding: p = 5, sticky: m = !1, disableAnchorTracking: h = !1, collisionAvoidance: g = yl, style: _, ...v } = e, { store: x } = hO(), S = TO(), C = _O(!0), w = x.useState("parent"), T = x.useState("floatingRootContext"), E = x.useState("floatingTreeRoot"), D = x.useState("mounted"), O = x.useState("open"), k = x.useState("modal"), A = x.useState("openMethod"), j = x.useState("activeTriggerElement"), M = x.useState("transitionStatus"), N = x.useState("positionerElement"), P = x.useState("instantType"), F = x.useState("hasViewport"), I = x.useState("lastOpenChangeReason"), L = x.useState("floatingNodeId"), R = x.useState("floatingParentNodeId"), z = T.useState("domReferenceElement"), B = i.useRef(null), V = Md(N, !1, !1), H = n, U = l, ee = u, W = c, G = g;
|
|
27386
|
+
w.type === "context-menu" && (H = n ?? w.context?.anchor, W ??= "start", !s && W !== "center" && (ee = e.alignOffset ?? 2, U = e.sideOffset ?? -5));
|
|
27387
|
+
let K = s, te = W;
|
|
27388
|
+
w.type === "menu" ? (K ??= "inline-end", te ??= "start", G = e.collisionAvoidance ?? bl) : w.type === "menubar" && (K ??= w.context.orientation === "vertical" ? "inline-end" : "bottom", te ??= "start");
|
|
27389
|
+
let ne = w.type === "context-menu", re = _p({
|
|
27390
27390
|
anchor: H,
|
|
27391
27391
|
floatingRootContext: T,
|
|
27392
27392
|
positionMethod: C ? "fixed" : r,
|
|
27393
27393
|
mounted: D,
|
|
27394
|
-
side:
|
|
27394
|
+
side: K,
|
|
27395
27395
|
sideOffset: U,
|
|
27396
|
-
align:
|
|
27397
|
-
alignOffset:
|
|
27398
|
-
arrowPadding:
|
|
27396
|
+
align: te,
|
|
27397
|
+
alignOffset: ee,
|
|
27398
|
+
arrowPadding: ne ? 0 : p,
|
|
27399
27399
|
collisionBoundary: d,
|
|
27400
27400
|
collisionPadding: f,
|
|
27401
27401
|
sticky: m,
|
|
27402
27402
|
nodeId: L,
|
|
27403
27403
|
keepMounted: S,
|
|
27404
27404
|
disableAnchorTracking: h,
|
|
27405
|
-
collisionAvoidance:
|
|
27406
|
-
shiftCrossAxis:
|
|
27405
|
+
collisionAvoidance: G,
|
|
27406
|
+
shiftCrossAxis: ne && !("side" in G && G.side === "flip"),
|
|
27407
27407
|
externalTree: E,
|
|
27408
27408
|
adaptiveOrigin: F ? mp : void 0
|
|
27409
27409
|
});
|
|
@@ -27429,17 +27429,17 @@ var DO = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
27429
27429
|
E.events.off("menuopenchange", e);
|
|
27430
27430
|
};
|
|
27431
27431
|
}, [E.events, x]);
|
|
27432
|
-
let
|
|
27432
|
+
let ie = vo();
|
|
27433
27433
|
i.useEffect(() => {
|
|
27434
|
-
O ||
|
|
27435
|
-
}, [O,
|
|
27434
|
+
O || ie.clear();
|
|
27435
|
+
}, [O, ie]), i.useEffect(() => {
|
|
27436
27436
|
function e(e) {
|
|
27437
27437
|
if (!(!O || e.nodeId !== x.select("floatingParentNodeId"))) if (e.target && j && j !== e.target) {
|
|
27438
27438
|
let e = x.select("closeDelay");
|
|
27439
|
-
e > 0 ?
|
|
27439
|
+
e > 0 ? ie.isStarted() || ie.start(e, () => {
|
|
27440
27440
|
x.setOpen(!1, ws(bs));
|
|
27441
27441
|
}) : x.setOpen(!1, ws(bs));
|
|
27442
|
-
} else
|
|
27442
|
+
} else ie.clear();
|
|
27443
27443
|
}
|
|
27444
27444
|
return E.events.on("itemhover", e), () => {
|
|
27445
27445
|
E.events.off("itemhover", e);
|
|
@@ -27449,7 +27449,7 @@ var DO = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
27449
27449
|
O,
|
|
27450
27450
|
j,
|
|
27451
27451
|
x,
|
|
27452
|
-
|
|
27452
|
+
ie
|
|
27453
27453
|
]), i.useEffect(() => {
|
|
27454
27454
|
let e = {
|
|
27455
27455
|
open: O,
|
|
@@ -27480,35 +27480,35 @@ var DO = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
27480
27480
|
V,
|
|
27481
27481
|
x
|
|
27482
27482
|
]);
|
|
27483
|
-
let
|
|
27483
|
+
let ae = {
|
|
27484
27484
|
open: O,
|
|
27485
|
-
side:
|
|
27486
|
-
align:
|
|
27487
|
-
anchorHidden:
|
|
27485
|
+
side: re.side,
|
|
27486
|
+
align: re.align,
|
|
27487
|
+
anchorHidden: re.anchorHidden,
|
|
27488
27488
|
nested: w.type === "menu",
|
|
27489
27489
|
instant: P
|
|
27490
|
-
},
|
|
27491
|
-
oE(O && (
|
|
27492
|
-
let
|
|
27493
|
-
styles:
|
|
27490
|
+
}, oe = w.type === "menubar" && w.context.modal;
|
|
27491
|
+
oE(O && (oe || k && I !== "trigger-hover"), A === "touch", N, j);
|
|
27492
|
+
let se = bp(e, ae, {
|
|
27493
|
+
styles: re.positionerStyles,
|
|
27494
27494
|
transitionStatus: M,
|
|
27495
27495
|
props: v,
|
|
27496
27496
|
refs: [t, x.useStateSetter("positionerElement")],
|
|
27497
27497
|
hidden: !D,
|
|
27498
27498
|
inert: !O
|
|
27499
|
-
}),
|
|
27500
|
-
return w.type === "menubar" ?
|
|
27501
|
-
value:
|
|
27502
|
-
children: [
|
|
27499
|
+
}), ce = D && w.type !== "menu" && (w.type !== "menubar" && k && I !== "trigger-hover" || w.type === "menubar" && w.context.modal), le = null;
|
|
27500
|
+
return w.type === "menubar" ? le = w.context.contentElement : w.type === void 0 && (le = j), /*#__PURE__*/ b(fO.Provider, {
|
|
27501
|
+
value: re,
|
|
27502
|
+
children: [ce && /*#__PURE__*/ y(Iw, {
|
|
27503
27503
|
ref: w.type === "context-menu" || w.type === "nested-context-menu" ? w.context.internalBackdropRef : null,
|
|
27504
27504
|
inert: Ep(!O),
|
|
27505
|
-
cutout:
|
|
27505
|
+
cutout: le
|
|
27506
27506
|
}), /*#__PURE__*/ y(Pl, {
|
|
27507
27507
|
id: L,
|
|
27508
27508
|
children: /*#__PURE__*/ y(ZT, {
|
|
27509
27509
|
elementsRef: x.context.itemDomElements,
|
|
27510
27510
|
labelsRef: x.context.itemLabels,
|
|
27511
|
-
children:
|
|
27511
|
+
children: se
|
|
27512
27512
|
})
|
|
27513
27513
|
})]
|
|
27514
27514
|
});
|
|
@@ -27646,17 +27646,17 @@ var FO = co(function(e) {
|
|
|
27646
27646
|
parent: S
|
|
27647
27647
|
});
|
|
27648
27648
|
Vd(C, n, o, h), C.useControlledProp("openProp", n), C.useControlledProp("triggerIdProp", m), C.useContextCallback("onOpenChangeComplete", a);
|
|
27649
|
-
let w = gl(), T = gl(), E = C.useState("floatingTreeRoot"), D = Nl(E), O = jl(), k = C.useState("open"), A = C.useState("activeTriggerElement"), j = C.useState("positionerElement"), M = C.useState("hoverEnabled"), N = C.useState("disabled"), P = C.useState("lastOpenChangeReason"), F = C.useState("parent"), I = C.useState("activeIndex"), L = C.useState("payload"), R = C.useState("floatingParentNodeId"), z = i.useRef(null), B = i.useRef(F.type !== "context-menu"), V = vo(), H = i.useRef(!0), U = vo(),
|
|
27649
|
+
let w = gl(), T = gl(), E = C.useState("floatingTreeRoot"), D = Nl(E), O = jl(), k = C.useState("open"), A = C.useState("activeTriggerElement"), j = C.useState("positionerElement"), M = C.useState("hoverEnabled"), N = C.useState("disabled"), P = C.useState("lastOpenChangeReason"), F = C.useState("parent"), I = C.useState("activeIndex"), L = C.useState("payload"), R = C.useState("floatingParentNodeId"), z = i.useRef(null), B = i.useRef(F.type !== "context-menu"), V = vo(), H = i.useRef(!0), U = vo(), ee = R != null;
|
|
27650
27650
|
process.env.NODE_ENV !== "production" && F.type !== void 0 && c !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");
|
|
27651
|
-
let { openMethod:
|
|
27651
|
+
let { openMethod: W, triggerProps: G } = iT(k);
|
|
27652
27652
|
C.useSyncedValues({
|
|
27653
27653
|
disabled: s,
|
|
27654
27654
|
highlightItemOnHover: g,
|
|
27655
27655
|
modal: F.type === void 0 ? c : void 0,
|
|
27656
|
-
openMethod:
|
|
27656
|
+
openMethod: W,
|
|
27657
27657
|
rootId: w
|
|
27658
27658
|
}), Ud(C);
|
|
27659
|
-
let { forceUnmount:
|
|
27659
|
+
let { forceUnmount: K } = Wd(k, C, () => {
|
|
27660
27660
|
C.update({
|
|
27661
27661
|
allowMouseEnter: !1,
|
|
27662
27662
|
stickIfOpen: !0
|
|
@@ -27701,7 +27701,7 @@ var FO = co(function(e) {
|
|
|
27701
27701
|
M,
|
|
27702
27702
|
C
|
|
27703
27703
|
]);
|
|
27704
|
-
let
|
|
27704
|
+
let te = X((e, t) => {
|
|
27705
27705
|
let n = t.reason;
|
|
27706
27706
|
if (k === e && t.trigger === A && P === n) return;
|
|
27707
27707
|
let i = zd(t);
|
|
@@ -27717,37 +27717,37 @@ var FO = co(function(e) {
|
|
|
27717
27717
|
openChangeReason: n
|
|
27718
27718
|
};
|
|
27719
27719
|
z.current = t.event ?? null, Rd(c, e, t.trigger, i()), C.update(c), F.type === "menubar" && (n === "trigger-focus" || n === "focus-out" || n === "trigger-hover" || n === "list-navigation" || n === "sibling-open") ? C.set("instantType", "group") : o || s ? C.set("instantType", o ? "click" : "dismiss") : C.set("instantType", void 0);
|
|
27720
|
-
}),
|
|
27720
|
+
}), ne = Ed({
|
|
27721
27721
|
popupStore: C,
|
|
27722
27722
|
floatingId: T,
|
|
27723
27723
|
nested: O != null,
|
|
27724
|
-
onOpenChange:
|
|
27725
|
-
}),
|
|
27724
|
+
onOpenChange: te
|
|
27725
|
+
}), re = ne.context.events;
|
|
27726
27726
|
i.useEffect(() => {
|
|
27727
|
-
let e = ({ open: e, eventDetails: t }) =>
|
|
27728
|
-
return
|
|
27729
|
-
|
|
27727
|
+
let e = ({ open: e, eventDetails: t }) => te(e, t);
|
|
27728
|
+
return re.on("setOpen", e), () => {
|
|
27729
|
+
re?.off("setOpen", e);
|
|
27730
27730
|
};
|
|
27731
|
-
}, [
|
|
27732
|
-
let
|
|
27731
|
+
}, [re, te]);
|
|
27732
|
+
let ie = i.useCallback(() => {
|
|
27733
27733
|
C.setOpen(!1, ws(Ss));
|
|
27734
27734
|
}, [C]);
|
|
27735
27735
|
i.useImperativeHandle(d, () => ({
|
|
27736
|
-
unmount:
|
|
27737
|
-
close:
|
|
27738
|
-
}), [
|
|
27739
|
-
let
|
|
27740
|
-
F.type === "context-menu" && (
|
|
27741
|
-
let
|
|
27736
|
+
unmount: K,
|
|
27737
|
+
close: ie
|
|
27738
|
+
}), [K, ie]);
|
|
27739
|
+
let ae;
|
|
27740
|
+
F.type === "context-menu" && (ae = F.context), i.useImperativeHandle(ae?.positionerRef, () => j, [j]), i.useImperativeHandle(ae?.actionsRef, () => ({ setOpen: te }), [te]);
|
|
27741
|
+
let oe = Ql(ne, {
|
|
27742
27742
|
enabled: !N,
|
|
27743
27743
|
bubbles: { escapeKey: f && F.type === "menu" },
|
|
27744
27744
|
outsidePress() {
|
|
27745
27745
|
return F.type !== "context-menu" || z.current?.type === "contextmenu" ? !0 : B.current;
|
|
27746
27746
|
},
|
|
27747
|
-
externalTree:
|
|
27748
|
-
}),
|
|
27747
|
+
externalTree: ee ? E : void 0
|
|
27748
|
+
}), se = cp(), ce = i.useCallback((e) => {
|
|
27749
27749
|
C.select("activeIndex") !== e && C.set("activeIndex", e);
|
|
27750
|
-
}, [C]),
|
|
27750
|
+
}, [C]), le = Sf(ne, {
|
|
27751
27751
|
enabled: !N,
|
|
27752
27752
|
listRef: C.context.itemDomElements,
|
|
27753
27753
|
activeIndex: I,
|
|
@@ -27755,15 +27755,15 @@ var FO = co(function(e) {
|
|
|
27755
27755
|
loopFocus: l,
|
|
27756
27756
|
orientation: u,
|
|
27757
27757
|
parentOrientation: F.type === "menubar" ? F.context.orientation : void 0,
|
|
27758
|
-
rtl:
|
|
27758
|
+
rtl: se === "rtl",
|
|
27759
27759
|
disabledIndices: Ii,
|
|
27760
|
-
onNavigate:
|
|
27760
|
+
onNavigate: ce,
|
|
27761
27761
|
openOnArrowKeyDown: F.type !== "context-menu",
|
|
27762
|
-
externalTree:
|
|
27762
|
+
externalTree: ee ? E : void 0,
|
|
27763
27763
|
focusItemOnHover: g
|
|
27764
|
-
}),
|
|
27764
|
+
}), ue = i.useCallback((e) => {
|
|
27765
27765
|
C.context.typingRef.current = e;
|
|
27766
|
-
}, [C]),
|
|
27766
|
+
}, [C]), de = Cf(ne, {
|
|
27767
27767
|
enabled: !N,
|
|
27768
27768
|
listRef: C.context.itemLabels,
|
|
27769
27769
|
elementsRef: C.context.itemDomElements,
|
|
@@ -27772,30 +27772,30 @@ var FO = co(function(e) {
|
|
|
27772
27772
|
onMatch: (e) => {
|
|
27773
27773
|
k && e !== I && C.set("activeIndex", e);
|
|
27774
27774
|
},
|
|
27775
|
-
onTyping:
|
|
27775
|
+
onTyping: ue
|
|
27776
27776
|
});
|
|
27777
27777
|
Gd(C, {
|
|
27778
|
-
floatingRootContext:
|
|
27778
|
+
floatingRootContext: ne,
|
|
27779
27779
|
activeTriggerProps: i.useMemo(() => {
|
|
27780
|
-
let e = Hi(
|
|
27780
|
+
let e = Hi(de.reference, le.reference, oe.reference, { onMouseMove() {
|
|
27781
27781
|
C.set("allowMouseEnter", !0);
|
|
27782
|
-
} },
|
|
27782
|
+
} }, G);
|
|
27783
27783
|
return e["aria-haspopup"] = "menu", e["aria-expanded"] = k, e;
|
|
27784
27784
|
}, [
|
|
27785
27785
|
C,
|
|
27786
|
-
|
|
27787
|
-
|
|
27788
|
-
|
|
27789
|
-
|
|
27786
|
+
de.reference,
|
|
27787
|
+
le.reference,
|
|
27788
|
+
oe.reference,
|
|
27789
|
+
G,
|
|
27790
27790
|
k
|
|
27791
27791
|
]),
|
|
27792
27792
|
inactiveTriggerProps: i.useMemo(() => {
|
|
27793
|
-
let e = Hi(
|
|
27793
|
+
let e = Hi(le.trigger, oe.trigger, G);
|
|
27794
27794
|
return e["aria-haspopup"] = "menu", e["aria-expanded"] = !1, e;
|
|
27795
27795
|
}, [
|
|
27796
|
-
|
|
27797
|
-
|
|
27798
|
-
|
|
27796
|
+
le.trigger,
|
|
27797
|
+
oe.trigger,
|
|
27798
|
+
G
|
|
27799
27799
|
]),
|
|
27800
27800
|
popupProps: i.useMemo(() => Hi(Pd, {
|
|
27801
27801
|
id: T,
|
|
@@ -27811,28 +27811,28 @@ var FO = co(function(e) {
|
|
|
27811
27811
|
let t = C.select("keyboardEventRelay");
|
|
27812
27812
|
t && !e.isPropagationStopped() && t(e);
|
|
27813
27813
|
}
|
|
27814
|
-
},
|
|
27814
|
+
}, de.floating, le.floating, oe.floating), [
|
|
27815
27815
|
A,
|
|
27816
27816
|
T,
|
|
27817
27817
|
F.type,
|
|
27818
27818
|
C,
|
|
27819
|
-
|
|
27820
|
-
|
|
27821
|
-
|
|
27819
|
+
de.floating,
|
|
27820
|
+
le.floating,
|
|
27821
|
+
oe.floating
|
|
27822
27822
|
]),
|
|
27823
|
-
itemProps:
|
|
27823
|
+
itemProps: le.item ?? Li
|
|
27824
27824
|
});
|
|
27825
|
-
let
|
|
27825
|
+
let fe = i.useMemo(() => ({
|
|
27826
27826
|
store: C,
|
|
27827
27827
|
parent: S
|
|
27828
|
-
}), [C, S]),
|
|
27829
|
-
value:
|
|
27828
|
+
}), [C, S]), pe = /*#__PURE__*/ y(mO.Provider, {
|
|
27829
|
+
value: fe,
|
|
27830
27830
|
children: typeof t == "function" ? t({ payload: L }) : t
|
|
27831
27831
|
});
|
|
27832
27832
|
return F.type === void 0 || F.type === "context-menu" ? /*#__PURE__*/ y(Fl, {
|
|
27833
27833
|
externalTree: E,
|
|
27834
|
-
children:
|
|
27835
|
-
}) :
|
|
27834
|
+
children: pe
|
|
27835
|
+
}) : pe;
|
|
27836
27836
|
});
|
|
27837
27837
|
process.env.NODE_ENV !== "production" && (FO.displayName = "MenuRoot");
|
|
27838
27838
|
//#endregion
|
|
@@ -27955,23 +27955,23 @@ var BO = 2, VO = lo(function(e, t) {
|
|
|
27955
27955
|
toggle: !0,
|
|
27956
27956
|
ignoreMouse: !1,
|
|
27957
27957
|
stickIfOpen: T.type === void 0 ? V : !1
|
|
27958
|
-
}), U = sf(x, { enabled: !N && z }),
|
|
27958
|
+
}), U = sf(x, { enabled: !N && z }), ee = zO({
|
|
27959
27959
|
open: S,
|
|
27960
27960
|
enabled: j,
|
|
27961
27961
|
mouseDownAction: "open"
|
|
27962
|
-
}),
|
|
27962
|
+
}), W = i.useMemo(() => Hi(U.reference, H.reference), [U.reference, H.reference]), G = g.useState("triggerProps", A), { preFocusGuardRef: K, handlePreFocusGuardFocus: te, handleFocusTargetFocus: ne } = rD(g, w), re = {
|
|
27963
27963
|
disabled: N,
|
|
27964
27964
|
open: S
|
|
27965
|
-
},
|
|
27965
|
+
}, ie = [
|
|
27966
27966
|
I,
|
|
27967
27967
|
t,
|
|
27968
27968
|
F,
|
|
27969
27969
|
k,
|
|
27970
27970
|
w
|
|
27971
|
-
],
|
|
27972
|
-
|
|
27971
|
+
], ae = [
|
|
27972
|
+
W,
|
|
27973
27973
|
B ?? Li,
|
|
27974
|
-
|
|
27974
|
+
G,
|
|
27975
27975
|
{
|
|
27976
27976
|
"aria-haspopup": "menu",
|
|
27977
27977
|
"aria-controls": C,
|
|
@@ -27983,36 +27983,36 @@ var BO = 2, VO = lo(function(e, t) {
|
|
|
27983
27983
|
}
|
|
27984
27984
|
},
|
|
27985
27985
|
j ? { role: "menuitem" } : {},
|
|
27986
|
-
|
|
27986
|
+
ee,
|
|
27987
27987
|
m,
|
|
27988
27988
|
P
|
|
27989
|
-
],
|
|
27989
|
+
], oe = na("button", e, {
|
|
27990
27990
|
enabled: !j,
|
|
27991
27991
|
stateAttributesMapping: Gf,
|
|
27992
|
-
state:
|
|
27993
|
-
ref:
|
|
27994
|
-
props:
|
|
27992
|
+
state: re,
|
|
27993
|
+
ref: ie,
|
|
27994
|
+
props: ae
|
|
27995
27995
|
});
|
|
27996
27996
|
return j ? /*#__PURE__*/ y(LO, {
|
|
27997
27997
|
tag: "button",
|
|
27998
27998
|
render: n,
|
|
27999
27999
|
className: r,
|
|
28000
28000
|
style: a,
|
|
28001
|
-
state:
|
|
28002
|
-
refs:
|
|
28003
|
-
props:
|
|
28001
|
+
state: re,
|
|
28002
|
+
refs: ie,
|
|
28003
|
+
props: ae,
|
|
28004
28004
|
stateAttributesMapping: Gf
|
|
28005
28005
|
}) : S ? /*#__PURE__*/ b(i.Fragment, { children: [
|
|
28006
28006
|
/*#__PURE__*/ y(Us, {
|
|
28007
|
-
ref:
|
|
28008
|
-
onFocus:
|
|
28007
|
+
ref: K,
|
|
28008
|
+
onFocus: te
|
|
28009
28009
|
}, `${_}-pre-focus-guard`),
|
|
28010
|
-
/*#__PURE__*/ y(i.Fragment, { children:
|
|
28010
|
+
/*#__PURE__*/ y(i.Fragment, { children: oe }, _),
|
|
28011
28011
|
/*#__PURE__*/ y(Us, {
|
|
28012
28012
|
ref: g.context.triggerFocusTargetRef,
|
|
28013
|
-
onFocus:
|
|
28013
|
+
onFocus: ne
|
|
28014
28014
|
}, `${_}-post-focus-guard`)
|
|
28015
|
-
] }) : /*#__PURE__*/ y(i.Fragment, { children:
|
|
28015
|
+
] }) : /*#__PURE__*/ y(i.Fragment, { children: oe }, _);
|
|
28016
28016
|
});
|
|
28017
28017
|
process.env.NODE_ENV !== "production" && (VO.displayName = "MenuTrigger");
|
|
28018
28018
|
function HO(e, t) {
|
|
@@ -28400,7 +28400,7 @@ var sk = /*#__PURE__*/ function(e) {
|
|
|
28400
28400
|
id: c,
|
|
28401
28401
|
implicit: !1,
|
|
28402
28402
|
controlRef: z
|
|
28403
|
-
}), H = d ? void 0 : V, [U,
|
|
28403
|
+
}), H = d ? void 0 : V, [U, ee] = Tx({
|
|
28404
28404
|
controlled: n,
|
|
28405
28405
|
default: !!a,
|
|
28406
28406
|
name: "Switch",
|
|
@@ -28411,16 +28411,16 @@ var sk = /*#__PURE__*/ function(e) {
|
|
|
28411
28411
|
}, [L, O]), nT(U, () => {
|
|
28412
28412
|
C(I), E(U !== D.initialValue), O(U), N.change(U);
|
|
28413
28413
|
});
|
|
28414
|
-
let { getButtonProps:
|
|
28414
|
+
let { getButtonProps: W, buttonRef: G } = Ya({
|
|
28415
28415
|
disabled: F,
|
|
28416
28416
|
native: d
|
|
28417
|
-
}),
|
|
28417
|
+
}), K = yx(o, P, L, !d, H), te = {
|
|
28418
28418
|
id: d ? V : B,
|
|
28419
28419
|
role: "switch",
|
|
28420
28420
|
"aria-checked": U,
|
|
28421
28421
|
"aria-readonly": p || void 0,
|
|
28422
28422
|
"aria-required": m || void 0,
|
|
28423
|
-
"aria-labelledby":
|
|
28423
|
+
"aria-labelledby": K,
|
|
28424
28424
|
onFocus() {
|
|
28425
28425
|
F || k(!0);
|
|
28426
28426
|
},
|
|
@@ -28440,7 +28440,7 @@ var sk = /*#__PURE__*/ function(e) {
|
|
|
28440
28440
|
metaKey: e.metaKey
|
|
28441
28441
|
}));
|
|
28442
28442
|
}
|
|
28443
|
-
},
|
|
28443
|
+
}, ne = Hi({
|
|
28444
28444
|
checked: U,
|
|
28445
28445
|
disabled: F,
|
|
28446
28446
|
form: s,
|
|
@@ -28459,12 +28459,12 @@ var sk = /*#__PURE__*/ function(e) {
|
|
|
28459
28459
|
return;
|
|
28460
28460
|
}
|
|
28461
28461
|
let t = e.currentTarget.checked, n = ws(ss, e.nativeEvent);
|
|
28462
|
-
f?.(t, n), !n.isCanceled &&
|
|
28462
|
+
f?.(t, n), !n.isCanceled && ee(t);
|
|
28463
28463
|
},
|
|
28464
28464
|
onFocus() {
|
|
28465
28465
|
z.current?.focus();
|
|
28466
28466
|
}
|
|
28467
|
-
}, (e) => N.getValidationProps(F, e), v === void 0 ? Li : { value: v }),
|
|
28467
|
+
}, (e) => N.getValidationProps(F, e), v === void 0 ? Li : { value: v }), re = i.useMemo(() => ({
|
|
28468
28468
|
...w,
|
|
28469
28469
|
checked: U,
|
|
28470
28470
|
disabled: F,
|
|
@@ -28476,25 +28476,25 @@ var sk = /*#__PURE__*/ function(e) {
|
|
|
28476
28476
|
F,
|
|
28477
28477
|
p,
|
|
28478
28478
|
m
|
|
28479
|
-
]),
|
|
28480
|
-
state:
|
|
28479
|
+
]), ie = na("span", e, {
|
|
28480
|
+
state: re,
|
|
28481
28481
|
ref: [
|
|
28482
28482
|
t,
|
|
28483
28483
|
z,
|
|
28484
|
-
|
|
28484
|
+
G
|
|
28485
28485
|
],
|
|
28486
28486
|
props: [
|
|
28487
|
-
|
|
28487
|
+
te,
|
|
28488
28488
|
S,
|
|
28489
|
-
|
|
28489
|
+
W,
|
|
28490
28490
|
(e) => N.getValidationProps(F, e)
|
|
28491
28491
|
],
|
|
28492
28492
|
stateAttributesMapping: ck
|
|
28493
28493
|
});
|
|
28494
28494
|
return /*#__PURE__*/ b(ak.Provider, {
|
|
28495
|
-
value:
|
|
28495
|
+
value: re,
|
|
28496
28496
|
children: [
|
|
28497
|
-
|
|
28497
|
+
ie,
|
|
28498
28498
|
!U && I && _ !== void 0 && /*#__PURE__*/ y("input", {
|
|
28499
28499
|
type: "hidden",
|
|
28500
28500
|
form: s,
|
|
@@ -28503,7 +28503,7 @@ var sk = /*#__PURE__*/ function(e) {
|
|
|
28503
28503
|
disabled: F
|
|
28504
28504
|
}),
|
|
28505
28505
|
/*#__PURE__*/ y("input", {
|
|
28506
|
-
...
|
|
28506
|
+
...ne,
|
|
28507
28507
|
suppressHydrationWarning: !0
|
|
28508
28508
|
})
|
|
28509
28509
|
]
|
|
@@ -28938,50 +28938,50 @@ function xk() {
|
|
|
28938
28938
|
//#endregion
|
|
28939
28939
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@base-ui/react/checkbox/root/CheckboxRoot.mjs
|
|
28940
28940
|
var Sk = "data-parent", Ck = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
28941
|
-
let { checked: n, className: r, defaultChecked: a = !1, "aria-labelledby": o, disabled: s = !1, form: c, id: l, indeterminate: u = !1, inputRef: d, name: f, onCheckedChange: p, parent: m = !1, readOnly: h = !1, render: g, required: _ = !1, uncheckedValue: v, value: x, nativeButton: S = !1, style: C, ...w } = e, { clearErrors: T } = gx(), { disabled: E, name: D, setDirty: O, setFilled: k, setFocused: A, setTouched: j, state: M, validationMode: N, validityData: P, validation: F } = mx(), I = wx(), { labelId: L, controlId: R, registerControlId: z, getDescriptionProps: B } = vx(), V = Ax(), H = V?.parent, U = H && V.allValues,
|
|
28942
|
-
U ?
|
|
28943
|
-
let
|
|
28944
|
-
U && (m ?
|
|
28945
|
-
let { checked:
|
|
28946
|
-
disabled:
|
|
28941
|
+
let { checked: n, className: r, defaultChecked: a = !1, "aria-labelledby": o, disabled: s = !1, form: c, id: l, indeterminate: u = !1, inputRef: d, name: f, onCheckedChange: p, parent: m = !1, readOnly: h = !1, render: g, required: _ = !1, uncheckedValue: v, value: x, nativeButton: S = !1, style: C, ...w } = e, { clearErrors: T } = gx(), { disabled: E, name: D, setDirty: O, setFilled: k, setFocused: A, setTouched: j, state: M, validationMode: N, validityData: P, validation: F } = mx(), I = wx(), { labelId: L, controlId: R, registerControlId: z, getDescriptionProps: B } = vx(), V = Ax(), H = V?.parent, U = H && V.allValues, ee = E || I.disabled || V?.disabled || s, W = D ?? f, G = x ?? W, K = qf(), te = qf(), ne = R;
|
|
28942
|
+
U ? ne = m ? te : `${H.id}-${G}` : l && (ne = l);
|
|
28943
|
+
let re = {};
|
|
28944
|
+
U && (m ? re = V.parent.getParentProps() : G && (re = V.parent.getChildProps(G)));
|
|
28945
|
+
let { checked: ie = n, indeterminate: ae = u, onCheckedChange: oe, ...se } = re, ce = V?.value, le = V?.setValue, ue = V?.defaultValue, de = i.useRef(null), fe = Si(() => Symbol("checkbox-control")), pe = i.useRef(!1), { getButtonProps: me, buttonRef: he } = Ya({
|
|
28946
|
+
disabled: ee,
|
|
28947
28947
|
native: S
|
|
28948
|
-
}),
|
|
28949
|
-
controlled:
|
|
28950
|
-
default:
|
|
28948
|
+
}), ge = V?.validation ?? F, [q, _e] = Tx({
|
|
28949
|
+
controlled: G && ce && !m ? ce.includes(G) : ie,
|
|
28950
|
+
default: G && ue && !m ? ue.includes(G) : a,
|
|
28951
28951
|
name: "Checkbox",
|
|
28952
28952
|
state: "checked"
|
|
28953
|
-
}), ve = U ? !!
|
|
28953
|
+
}), ve = U ? !!ie : q, ye = U && ae || u;
|
|
28954
28954
|
Z(() => {
|
|
28955
|
-
z !== Fi && (
|
|
28955
|
+
z !== Fi && (pe.current = !0, z(fe.current, ne));
|
|
28956
28956
|
}, [
|
|
28957
|
-
|
|
28957
|
+
ne,
|
|
28958
28958
|
z,
|
|
28959
|
-
|
|
28959
|
+
fe
|
|
28960
28960
|
]), i.useEffect(() => {
|
|
28961
|
-
let e =
|
|
28961
|
+
let e = fe.current;
|
|
28962
28962
|
return () => {
|
|
28963
|
-
!
|
|
28963
|
+
!pe.current || z === Fi || (pe.current = !1, z(e, void 0));
|
|
28964
28964
|
};
|
|
28965
|
-
}, [z,
|
|
28966
|
-
let be = i.useRef(null), xe = Ci(d, be,
|
|
28965
|
+
}, [z, fe]), Dx(de, K, q, void 0, !V && !ee, f);
|
|
28966
|
+
let be = i.useRef(null), xe = Ci(d, be, ge.inputRef, ge.registerInput), Se = yx(o, L, be, !S, ne ?? void 0);
|
|
28967
28967
|
Z(() => {
|
|
28968
|
-
be.current && (be.current.indeterminate = ye,
|
|
28968
|
+
be.current && (be.current.indeterminate = ye, q && k(!0));
|
|
28969
28969
|
}, [
|
|
28970
|
-
|
|
28970
|
+
q,
|
|
28971
28971
|
ye,
|
|
28972
28972
|
k
|
|
28973
|
-
]), nT(
|
|
28974
|
-
V || (T(
|
|
28973
|
+
]), nT(q, () => {
|
|
28974
|
+
V || (T(W), k(q), O(q !== P.initialValue), ge.change(q));
|
|
28975
28975
|
});
|
|
28976
28976
|
let Ce = Hi({
|
|
28977
|
-
checked:
|
|
28978
|
-
disabled:
|
|
28977
|
+
checked: q,
|
|
28978
|
+
disabled: ee,
|
|
28979
28979
|
form: c,
|
|
28980
|
-
name: m ? void 0 :
|
|
28981
|
-
id: S ? void 0 :
|
|
28980
|
+
name: m ? void 0 : W,
|
|
28981
|
+
id: S ? void 0 : ne ?? void 0,
|
|
28982
28982
|
required: _,
|
|
28983
28983
|
ref: xe,
|
|
28984
|
-
style:
|
|
28984
|
+
style: W ? Hs : Vs,
|
|
28985
28985
|
tabIndex: -1,
|
|
28986
28986
|
type: "checkbox",
|
|
28987
28987
|
"aria-hidden": !0,
|
|
@@ -28992,51 +28992,51 @@ var Sk = "data-parent", Ck = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
28992
28992
|
return;
|
|
28993
28993
|
}
|
|
28994
28994
|
let t = e.currentTarget.checked, n = ws(ss, e.nativeEvent);
|
|
28995
|
-
if (p?.(t, n), !n.isCanceled && (
|
|
28996
|
-
let e = t ? [...
|
|
28997
|
-
|
|
28995
|
+
if (p?.(t, n), !n.isCanceled && (oe?.(t, n), !n.isCanceled && (_e(t), G && ce && le && !m && !U))) {
|
|
28996
|
+
let e = t ? [...ce, G] : ce.filter((e) => e !== G);
|
|
28997
|
+
le(e, n);
|
|
28998
28998
|
}
|
|
28999
28999
|
},
|
|
29000
29000
|
onFocus() {
|
|
29001
|
-
|
|
29001
|
+
de.current?.focus();
|
|
29002
29002
|
}
|
|
29003
|
-
}, x === void 0 ? Li : { value: (V ?
|
|
29003
|
+
}, x === void 0 ? Li : { value: (V ? q && x : x) || "" }, B, (e) => ge.getValidationProps(ee, e));
|
|
29004
29004
|
i.useEffect(() => {
|
|
29005
|
-
if (!H || !
|
|
29005
|
+
if (!H || !G) return;
|
|
29006
29006
|
let e = H.disabledStatesRef.current;
|
|
29007
|
-
return e.set(
|
|
29008
|
-
e.delete(
|
|
29007
|
+
return e.set(G, ee), () => {
|
|
29008
|
+
e.delete(G);
|
|
29009
29009
|
};
|
|
29010
29010
|
}, [
|
|
29011
29011
|
H,
|
|
29012
|
-
|
|
29013
|
-
|
|
29012
|
+
ee,
|
|
29013
|
+
G
|
|
29014
29014
|
]);
|
|
29015
29015
|
let we = i.useMemo(() => ({
|
|
29016
29016
|
...M,
|
|
29017
29017
|
checked: ve,
|
|
29018
|
-
disabled:
|
|
29018
|
+
disabled: ee,
|
|
29019
29019
|
readOnly: h,
|
|
29020
29020
|
required: _,
|
|
29021
29021
|
indeterminate: ye
|
|
29022
29022
|
}), [
|
|
29023
29023
|
M,
|
|
29024
29024
|
ve,
|
|
29025
|
-
|
|
29025
|
+
ee,
|
|
29026
29026
|
h,
|
|
29027
29027
|
_,
|
|
29028
29028
|
ye
|
|
29029
29029
|
]), Te = yk(we), Ee = na("span", e, {
|
|
29030
29030
|
state: we,
|
|
29031
29031
|
ref: [
|
|
29032
|
-
|
|
29033
|
-
|
|
29032
|
+
he,
|
|
29033
|
+
de,
|
|
29034
29034
|
t,
|
|
29035
29035
|
V?.registerControlRef
|
|
29036
29036
|
],
|
|
29037
29037
|
props: [
|
|
29038
29038
|
{
|
|
29039
|
-
id: S ?
|
|
29039
|
+
id: S ? ne ?? void 0 : K,
|
|
29040
29040
|
role: "checkbox",
|
|
29041
29041
|
"aria-checked": ye ? "mixed" : ve,
|
|
29042
29042
|
"aria-readonly": h || void 0,
|
|
@@ -29044,11 +29044,11 @@ var Sk = "data-parent", Ck = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
29044
29044
|
"aria-labelledby": Se,
|
|
29045
29045
|
[Sk]: m ? "" : void 0,
|
|
29046
29046
|
onFocus() {
|
|
29047
|
-
|
|
29047
|
+
ee || A(!0);
|
|
29048
29048
|
},
|
|
29049
29049
|
onBlur() {
|
|
29050
29050
|
let e = be.current;
|
|
29051
|
-
e && (j(!0), A(!1), N === "onBlur" &&
|
|
29051
|
+
e && (j(!0), A(!1), N === "onBlur" && ge.commit(V ? ce : e.checked));
|
|
29052
29052
|
},
|
|
29053
29053
|
onKeyDown(e) {
|
|
29054
29054
|
if (e.key !== "Enter" || (e.preventBaseUIHandler(), e.defaultPrevented)) return;
|
|
@@ -29062,7 +29062,7 @@ var Sk = "data-parent", Ck = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
29062
29062
|
});
|
|
29063
29063
|
},
|
|
29064
29064
|
onClick(e) {
|
|
29065
|
-
if (h ||
|
|
29065
|
+
if (h || ee) return;
|
|
29066
29066
|
e.preventDefault();
|
|
29067
29067
|
let t = be.current;
|
|
29068
29068
|
t && t.dispatchEvent(new (ga(t)).PointerEvent("click", {
|
|
@@ -29075,10 +29075,10 @@ var Sk = "data-parent", Ck = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
29075
29075
|
}
|
|
29076
29076
|
},
|
|
29077
29077
|
w,
|
|
29078
|
-
|
|
29079
|
-
|
|
29078
|
+
se,
|
|
29079
|
+
me,
|
|
29080
29080
|
B,
|
|
29081
|
-
(e) =>
|
|
29081
|
+
(e) => ge.getValidationProps(ee, e)
|
|
29082
29082
|
],
|
|
29083
29083
|
stateAttributesMapping: Te
|
|
29084
29084
|
});
|
|
@@ -29086,12 +29086,12 @@ var Sk = "data-parent", Ck = /*#__PURE__*/ i.forwardRef(function(e, t) {
|
|
|
29086
29086
|
value: we,
|
|
29087
29087
|
children: [
|
|
29088
29088
|
Ee,
|
|
29089
|
-
!
|
|
29089
|
+
!q && !V && W && !m && v !== void 0 && /*#__PURE__*/ y("input", {
|
|
29090
29090
|
type: "hidden",
|
|
29091
29091
|
form: c,
|
|
29092
|
-
name:
|
|
29092
|
+
name: W,
|
|
29093
29093
|
value: v,
|
|
29094
|
-
disabled:
|
|
29094
|
+
disabled: ee
|
|
29095
29095
|
}),
|
|
29096
29096
|
/*#__PURE__*/ y("input", {
|
|
29097
29097
|
...Ce,
|