@danxbot/ui 4.1.6 → 4.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +617 -604
- package/dist/index.js.map +1 -1
- package/dist/types/components/Menu.d.ts +18 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f, jsxs as T, Fragment as ct } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
|
-
import Cc, { createElement as nb, useState as Ee, useRef as
|
|
3
|
+
import Cc, { createElement as nb, useState as Ee, useRef as Ve, useLayoutEffect as qi, useId as Ut, Component as Zk, useEffect as Qe, useMemo as Ke, useCallback as De, Children as Qk, isValidElement as Jk, Fragment as yv, useSyncExternalStore as kr, useContext as Ln, createContext as zn, memo as Sc } from "react";
|
|
4
4
|
import * as yn from "react-dom";
|
|
5
5
|
import { createPortal as eN } from "react-dom";
|
|
6
6
|
const tN = {
|
|
@@ -477,7 +477,7 @@ const oN = (e, t) => {
|
|
|
477
477
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
478
478
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
479
479
|
MN.test(e) && !TN.test(e)
|
|
480
|
-
), dp = () => !1, DN = (e) => PN.test(e), _N = (e) => ON.test(e), VN = (e) =>
|
|
480
|
+
), dp = () => !1, DN = (e) => PN.test(e), _N = (e) => ON.test(e), VN = (e) => !$e(e) && !He(e), FN = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), $N = (e) => xo(e, Tv, dp), $e = (e) => Ev.test(e), No = (e) => xo(e, Pv, AN), ib = (e) => xo(e, WN, ut), LN = (e) => xo(e, Av, Nv), zN = (e) => xo(e, Ov, dp), ab = (e) => xo(e, Iv, dp), BN = (e) => xo(e, Mv, _N), Oa = (e) => xo(e, Dv, DN), He = (e) => kv.test(e), ii = (e) => Zo(e, Pv), HN = (e) => Zo(e, Ov), lb = (e) => Zo(e, Iv), UN = (e) => Zo(e, Tv), GN = (e) => Zo(e, Mv), Aa = (e) => Zo(e, Dv, !0), jN = (e) => Zo(e, Av, !0), xo = (e, t, n) => {
|
|
481
481
|
const r = Ev.exec(e);
|
|
482
482
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
483
483
|
}, Zo = (e, t, n = !1) => {
|
|
@@ -502,30 +502,30 @@ const oN = (e, t) => {
|
|
|
502
502
|
"bottom-left",
|
|
503
503
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
504
504
|
"left-bottom"
|
|
505
|
-
], S = () => [...C(),
|
|
506
|
-
span: ["full", pr,
|
|
507
|
-
}, pr,
|
|
508
|
-
position: [
|
|
505
|
+
], S = () => [...C(), He, $e], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [He, $e, l], I = () => [Zr, "full", "auto", ...R()], N = () => [pr, "none", "subgrid", He, $e], M = () => ["auto", {
|
|
506
|
+
span: ["full", pr, He, $e]
|
|
507
|
+
}, pr, He, $e], P = () => [pr, "auto", He, $e], F = () => ["auto", "min", "max", "fr", He, $e], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], _ = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], D = () => ["auto", ...R()], $ = () => [Zr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], A = () => [Zr, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], U = () => [Zr, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], O = () => [e, He, $e], H = () => [...C(), lb, ab, {
|
|
508
|
+
position: [He, $e]
|
|
509
509
|
}], L = () => ["no-repeat", {
|
|
510
510
|
repeat: ["", "x", "y", "space", "round"]
|
|
511
511
|
}], j = () => ["auto", "cover", "contain", UN, $N, {
|
|
512
|
-
size: [
|
|
512
|
+
size: [He, $e]
|
|
513
513
|
}], K = () => [ed, ii, No], B = () => [
|
|
514
514
|
// Deprecated since Tailwind CSS v4.0.0
|
|
515
515
|
"",
|
|
516
516
|
"none",
|
|
517
517
|
"full",
|
|
518
518
|
c,
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
He,
|
|
520
|
+
$e
|
|
521
521
|
], z = () => ["", ut, ii, No], G = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [ut, ed, lb, ab], ee = () => [
|
|
522
522
|
// Deprecated since Tailwind CSS v4.0.0
|
|
523
523
|
"",
|
|
524
524
|
"none",
|
|
525
525
|
h,
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
], J = () => ["none", ut,
|
|
526
|
+
He,
|
|
527
|
+
$e
|
|
528
|
+
], J = () => ["none", ut, He, $e], Z = () => ["none", ut, He, $e], ne = () => [ut, He, $e], te = () => [Zr, "full", ...R()];
|
|
529
529
|
return {
|
|
530
530
|
cacheSize: 500,
|
|
531
531
|
theme: {
|
|
@@ -558,7 +558,7 @@ const oN = (e, t) => {
|
|
|
558
558
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
559
559
|
*/
|
|
560
560
|
aspect: [{
|
|
561
|
-
aspect: ["auto", "square", Zr,
|
|
561
|
+
aspect: ["auto", "square", Zr, $e, He, x]
|
|
562
562
|
}],
|
|
563
563
|
/**
|
|
564
564
|
* Container
|
|
@@ -571,7 +571,7 @@ const oN = (e, t) => {
|
|
|
571
571
|
* @see https://tailwindcss.com/docs/responsive-design#container-queries
|
|
572
572
|
*/
|
|
573
573
|
"container-type": [{
|
|
574
|
-
"@container": ["", "normal", "size",
|
|
574
|
+
"@container": ["", "normal", "size", He, $e]
|
|
575
575
|
}],
|
|
576
576
|
/**
|
|
577
577
|
* Container Name
|
|
@@ -583,7 +583,7 @@ const oN = (e, t) => {
|
|
|
583
583
|
* @see https://tailwindcss.com/docs/columns
|
|
584
584
|
*/
|
|
585
585
|
columns: [{
|
|
586
|
-
columns: [ut,
|
|
586
|
+
columns: [ut, $e, He, a]
|
|
587
587
|
}],
|
|
588
588
|
/**
|
|
589
589
|
* Break After
|
|
@@ -809,7 +809,7 @@ const oN = (e, t) => {
|
|
|
809
809
|
* @see https://tailwindcss.com/docs/z-index
|
|
810
810
|
*/
|
|
811
811
|
z: [{
|
|
812
|
-
z: [pr, "auto",
|
|
812
|
+
z: [pr, "auto", He, $e]
|
|
813
813
|
}],
|
|
814
814
|
// ------------------------
|
|
815
815
|
// --- Flexbox and Grid ---
|
|
@@ -840,28 +840,28 @@ const oN = (e, t) => {
|
|
|
840
840
|
* @see https://tailwindcss.com/docs/flex
|
|
841
841
|
*/
|
|
842
842
|
flex: [{
|
|
843
|
-
flex: [ut, Zr, "auto", "initial", "none",
|
|
843
|
+
flex: [ut, Zr, "auto", "initial", "none", $e]
|
|
844
844
|
}],
|
|
845
845
|
/**
|
|
846
846
|
* Flex Grow
|
|
847
847
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
848
848
|
*/
|
|
849
849
|
grow: [{
|
|
850
|
-
grow: ["", ut,
|
|
850
|
+
grow: ["", ut, He, $e]
|
|
851
851
|
}],
|
|
852
852
|
/**
|
|
853
853
|
* Flex Shrink
|
|
854
854
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
855
855
|
*/
|
|
856
856
|
shrink: [{
|
|
857
|
-
shrink: ["", ut,
|
|
857
|
+
shrink: ["", ut, He, $e]
|
|
858
858
|
}],
|
|
859
859
|
/**
|
|
860
860
|
* Order
|
|
861
861
|
* @see https://tailwindcss.com/docs/order
|
|
862
862
|
*/
|
|
863
863
|
order: [{
|
|
864
|
-
order: [pr, "first", "last", "none",
|
|
864
|
+
order: [pr, "first", "last", "none", He, $e]
|
|
865
865
|
}],
|
|
866
866
|
/**
|
|
867
867
|
* Grid Template Columns
|
|
@@ -1350,7 +1350,7 @@ const oN = (e, t) => {
|
|
|
1350
1350
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1351
1351
|
*/
|
|
1352
1352
|
"font-stretch": [{
|
|
1353
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ed,
|
|
1353
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ed, $e]
|
|
1354
1354
|
}],
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Font Family
|
|
@@ -1364,7 +1364,7 @@ const oN = (e, t) => {
|
|
|
1364
1364
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1365
1365
|
*/
|
|
1366
1366
|
"font-features": [{
|
|
1367
|
-
"font-features": [
|
|
1367
|
+
"font-features": [$e]
|
|
1368
1368
|
}],
|
|
1369
1369
|
/**
|
|
1370
1370
|
* Font Variant Numeric
|
|
@@ -1401,14 +1401,14 @@ const oN = (e, t) => {
|
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1402
1402
|
*/
|
|
1403
1403
|
tracking: [{
|
|
1404
|
-
tracking: [o,
|
|
1404
|
+
tracking: [o, He, $e]
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Line Clamp
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1409
1409
|
*/
|
|
1410
1410
|
"line-clamp": [{
|
|
1411
|
-
"line-clamp": [ut, "none",
|
|
1411
|
+
"line-clamp": [ut, "none", He, ib]
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Line Height
|
|
@@ -1426,7 +1426,7 @@ const oN = (e, t) => {
|
|
|
1426
1426
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1427
1427
|
*/
|
|
1428
1428
|
"list-image": [{
|
|
1429
|
-
"list-image": ["none",
|
|
1429
|
+
"list-image": ["none", He, $e]
|
|
1430
1430
|
}],
|
|
1431
1431
|
/**
|
|
1432
1432
|
* List Style Position
|
|
@@ -1440,7 +1440,7 @@ const oN = (e, t) => {
|
|
|
1440
1440
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1441
1441
|
*/
|
|
1442
1442
|
"list-style-type": [{
|
|
1443
|
-
list: ["disc", "decimal", "none",
|
|
1443
|
+
list: ["disc", "decimal", "none", He, $e]
|
|
1444
1444
|
}],
|
|
1445
1445
|
/**
|
|
1446
1446
|
* Text Alignment
|
|
@@ -1481,7 +1481,7 @@ const oN = (e, t) => {
|
|
|
1481
1481
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1482
1482
|
*/
|
|
1483
1483
|
"text-decoration-thickness": [{
|
|
1484
|
-
decoration: [ut, "from-font", "auto",
|
|
1484
|
+
decoration: [ut, "from-font", "auto", He, No]
|
|
1485
1485
|
}],
|
|
1486
1486
|
/**
|
|
1487
1487
|
* Text Decoration Color
|
|
@@ -1495,7 +1495,7 @@ const oN = (e, t) => {
|
|
|
1495
1495
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1496
1496
|
*/
|
|
1497
1497
|
"underline-offset": [{
|
|
1498
|
-
"underline-offset": [ut, "auto",
|
|
1498
|
+
"underline-offset": [ut, "auto", He, $e]
|
|
1499
1499
|
}],
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Text Transform
|
|
@@ -1526,14 +1526,14 @@ const oN = (e, t) => {
|
|
|
1526
1526
|
* @see https://tailwindcss.com/docs/tab-size
|
|
1527
1527
|
*/
|
|
1528
1528
|
"tab-size": [{
|
|
1529
|
-
tab: [pr,
|
|
1529
|
+
tab: [pr, He, $e]
|
|
1530
1530
|
}],
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Vertical Alignment
|
|
1533
1533
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1534
1534
|
*/
|
|
1535
1535
|
"vertical-align": [{
|
|
1536
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1536
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", He, $e]
|
|
1537
1537
|
}],
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Whitespace
|
|
@@ -1568,7 +1568,7 @@ const oN = (e, t) => {
|
|
|
1568
1568
|
* @see https://tailwindcss.com/docs/content
|
|
1569
1569
|
*/
|
|
1570
1570
|
content: [{
|
|
1571
|
-
content: ["none",
|
|
1571
|
+
content: ["none", He, $e]
|
|
1572
1572
|
}],
|
|
1573
1573
|
// -------------------
|
|
1574
1574
|
// --- Backgrounds ---
|
|
@@ -1623,9 +1623,9 @@ const oN = (e, t) => {
|
|
|
1623
1623
|
bg: ["none", {
|
|
1624
1624
|
linear: [{
|
|
1625
1625
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1626
|
-
}, pr,
|
|
1627
|
-
radial: ["",
|
|
1628
|
-
conic: [pr,
|
|
1626
|
+
}, pr, He, $e],
|
|
1627
|
+
radial: ["", He, $e],
|
|
1628
|
+
conic: [pr, He, $e]
|
|
1629
1629
|
}, GN, BN]
|
|
1630
1630
|
}],
|
|
1631
1631
|
/**
|
|
@@ -1996,7 +1996,7 @@ const oN = (e, t) => {
|
|
|
1996
1996
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1997
1997
|
*/
|
|
1998
1998
|
"outline-offset": [{
|
|
1999
|
-
"outline-offset": [ut,
|
|
1999
|
+
"outline-offset": [ut, He, $e]
|
|
2000
2000
|
}],
|
|
2001
2001
|
/**
|
|
2002
2002
|
* Outline Width
|
|
@@ -2122,7 +2122,7 @@ const oN = (e, t) => {
|
|
|
2122
2122
|
* @see https://tailwindcss.com/docs/opacity
|
|
2123
2123
|
*/
|
|
2124
2124
|
opacity: [{
|
|
2125
|
-
opacity: [ut,
|
|
2125
|
+
opacity: [ut, He, $e]
|
|
2126
2126
|
}],
|
|
2127
2127
|
/**
|
|
2128
2128
|
* Mix Blend Mode
|
|
@@ -2244,7 +2244,7 @@ const oN = (e, t) => {
|
|
|
2244
2244
|
"mask-y-to": O()
|
|
2245
2245
|
}],
|
|
2246
2246
|
"mask-image-radial": [{
|
|
2247
|
-
"mask-radial": [
|
|
2247
|
+
"mask-radial": [He, $e]
|
|
2248
2248
|
}],
|
|
2249
2249
|
"mask-image-radial-from-pos": [{
|
|
2250
2250
|
"mask-radial-from": q()
|
|
@@ -2332,7 +2332,7 @@ const oN = (e, t) => {
|
|
|
2332
2332
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2333
2333
|
*/
|
|
2334
2334
|
"mask-image": [{
|
|
2335
|
-
mask: ["none",
|
|
2335
|
+
mask: ["none", He, $e]
|
|
2336
2336
|
}],
|
|
2337
2337
|
// ---------------
|
|
2338
2338
|
// --- Filters ---
|
|
@@ -2346,8 +2346,8 @@ const oN = (e, t) => {
|
|
|
2346
2346
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2347
2347
|
"",
|
|
2348
2348
|
"none",
|
|
2349
|
-
|
|
2350
|
-
|
|
2349
|
+
He,
|
|
2350
|
+
$e
|
|
2351
2351
|
]
|
|
2352
2352
|
}],
|
|
2353
2353
|
/**
|
|
@@ -2362,14 +2362,14 @@ const oN = (e, t) => {
|
|
|
2362
2362
|
* @see https://tailwindcss.com/docs/brightness
|
|
2363
2363
|
*/
|
|
2364
2364
|
brightness: [{
|
|
2365
|
-
brightness: [ut,
|
|
2365
|
+
brightness: [ut, He, $e]
|
|
2366
2366
|
}],
|
|
2367
2367
|
/**
|
|
2368
2368
|
* Contrast
|
|
2369
2369
|
* @see https://tailwindcss.com/docs/contrast
|
|
2370
2370
|
*/
|
|
2371
2371
|
contrast: [{
|
|
2372
|
-
contrast: [ut,
|
|
2372
|
+
contrast: [ut, He, $e]
|
|
2373
2373
|
}],
|
|
2374
2374
|
/**
|
|
2375
2375
|
* Drop Shadow
|
|
@@ -2397,35 +2397,35 @@ const oN = (e, t) => {
|
|
|
2397
2397
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2398
2398
|
*/
|
|
2399
2399
|
grayscale: [{
|
|
2400
|
-
grayscale: ["", ut,
|
|
2400
|
+
grayscale: ["", ut, He, $e]
|
|
2401
2401
|
}],
|
|
2402
2402
|
/**
|
|
2403
2403
|
* Hue Rotate
|
|
2404
2404
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2405
2405
|
*/
|
|
2406
2406
|
"hue-rotate": [{
|
|
2407
|
-
"hue-rotate": [ut,
|
|
2407
|
+
"hue-rotate": [ut, He, $e]
|
|
2408
2408
|
}],
|
|
2409
2409
|
/**
|
|
2410
2410
|
* Invert
|
|
2411
2411
|
* @see https://tailwindcss.com/docs/invert
|
|
2412
2412
|
*/
|
|
2413
2413
|
invert: [{
|
|
2414
|
-
invert: ["", ut,
|
|
2414
|
+
invert: ["", ut, He, $e]
|
|
2415
2415
|
}],
|
|
2416
2416
|
/**
|
|
2417
2417
|
* Saturate
|
|
2418
2418
|
* @see https://tailwindcss.com/docs/saturate
|
|
2419
2419
|
*/
|
|
2420
2420
|
saturate: [{
|
|
2421
|
-
saturate: [ut,
|
|
2421
|
+
saturate: [ut, He, $e]
|
|
2422
2422
|
}],
|
|
2423
2423
|
/**
|
|
2424
2424
|
* Sepia
|
|
2425
2425
|
* @see https://tailwindcss.com/docs/sepia
|
|
2426
2426
|
*/
|
|
2427
2427
|
sepia: [{
|
|
2428
|
-
sepia: ["", ut,
|
|
2428
|
+
sepia: ["", ut, He, $e]
|
|
2429
2429
|
}],
|
|
2430
2430
|
/**
|
|
2431
2431
|
* Backdrop Filter
|
|
@@ -2436,8 +2436,8 @@ const oN = (e, t) => {
|
|
|
2436
2436
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2437
2437
|
"",
|
|
2438
2438
|
"none",
|
|
2439
|
-
|
|
2440
|
-
|
|
2439
|
+
He,
|
|
2440
|
+
$e
|
|
2441
2441
|
]
|
|
2442
2442
|
}],
|
|
2443
2443
|
/**
|
|
@@ -2452,56 +2452,56 @@ const oN = (e, t) => {
|
|
|
2452
2452
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2453
2453
|
*/
|
|
2454
2454
|
"backdrop-brightness": [{
|
|
2455
|
-
"backdrop-brightness": [ut,
|
|
2455
|
+
"backdrop-brightness": [ut, He, $e]
|
|
2456
2456
|
}],
|
|
2457
2457
|
/**
|
|
2458
2458
|
* Backdrop Contrast
|
|
2459
2459
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2460
2460
|
*/
|
|
2461
2461
|
"backdrop-contrast": [{
|
|
2462
|
-
"backdrop-contrast": [ut,
|
|
2462
|
+
"backdrop-contrast": [ut, He, $e]
|
|
2463
2463
|
}],
|
|
2464
2464
|
/**
|
|
2465
2465
|
* Backdrop Grayscale
|
|
2466
2466
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2467
2467
|
*/
|
|
2468
2468
|
"backdrop-grayscale": [{
|
|
2469
|
-
"backdrop-grayscale": ["", ut,
|
|
2469
|
+
"backdrop-grayscale": ["", ut, He, $e]
|
|
2470
2470
|
}],
|
|
2471
2471
|
/**
|
|
2472
2472
|
* Backdrop Hue Rotate
|
|
2473
2473
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2474
2474
|
*/
|
|
2475
2475
|
"backdrop-hue-rotate": [{
|
|
2476
|
-
"backdrop-hue-rotate": [ut,
|
|
2476
|
+
"backdrop-hue-rotate": [ut, He, $e]
|
|
2477
2477
|
}],
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Backdrop Invert
|
|
2480
2480
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2481
2481
|
*/
|
|
2482
2482
|
"backdrop-invert": [{
|
|
2483
|
-
"backdrop-invert": ["", ut,
|
|
2483
|
+
"backdrop-invert": ["", ut, He, $e]
|
|
2484
2484
|
}],
|
|
2485
2485
|
/**
|
|
2486
2486
|
* Backdrop Opacity
|
|
2487
2487
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2488
2488
|
*/
|
|
2489
2489
|
"backdrop-opacity": [{
|
|
2490
|
-
"backdrop-opacity": [ut,
|
|
2490
|
+
"backdrop-opacity": [ut, He, $e]
|
|
2491
2491
|
}],
|
|
2492
2492
|
/**
|
|
2493
2493
|
* Backdrop Saturate
|
|
2494
2494
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2495
2495
|
*/
|
|
2496
2496
|
"backdrop-saturate": [{
|
|
2497
|
-
"backdrop-saturate": [ut,
|
|
2497
|
+
"backdrop-saturate": [ut, He, $e]
|
|
2498
2498
|
}],
|
|
2499
2499
|
/**
|
|
2500
2500
|
* Backdrop Sepia
|
|
2501
2501
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2502
2502
|
*/
|
|
2503
2503
|
"backdrop-sepia": [{
|
|
2504
|
-
"backdrop-sepia": ["", ut,
|
|
2504
|
+
"backdrop-sepia": ["", ut, He, $e]
|
|
2505
2505
|
}],
|
|
2506
2506
|
// --------------
|
|
2507
2507
|
// --- Tables ---
|
|
@@ -2556,7 +2556,7 @@ const oN = (e, t) => {
|
|
|
2556
2556
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2557
2557
|
*/
|
|
2558
2558
|
transition: [{
|
|
2559
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2559
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", He, $e]
|
|
2560
2560
|
}],
|
|
2561
2561
|
/**
|
|
2562
2562
|
* Transition Behavior
|
|
@@ -2570,28 +2570,28 @@ const oN = (e, t) => {
|
|
|
2570
2570
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2571
2571
|
*/
|
|
2572
2572
|
duration: [{
|
|
2573
|
-
duration: [ut, "initial",
|
|
2573
|
+
duration: [ut, "initial", He, $e]
|
|
2574
2574
|
}],
|
|
2575
2575
|
/**
|
|
2576
2576
|
* Transition Timing Function
|
|
2577
2577
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2578
2578
|
*/
|
|
2579
2579
|
ease: [{
|
|
2580
|
-
ease: ["linear", "initial", y,
|
|
2580
|
+
ease: ["linear", "initial", y, He, $e]
|
|
2581
2581
|
}],
|
|
2582
2582
|
/**
|
|
2583
2583
|
* Transition Delay
|
|
2584
2584
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2585
2585
|
*/
|
|
2586
2586
|
delay: [{
|
|
2587
|
-
delay: [ut,
|
|
2587
|
+
delay: [ut, He, $e]
|
|
2588
2588
|
}],
|
|
2589
2589
|
/**
|
|
2590
2590
|
* Animation
|
|
2591
2591
|
* @see https://tailwindcss.com/docs/animation
|
|
2592
2592
|
*/
|
|
2593
2593
|
animate: [{
|
|
2594
|
-
animate: ["none", w,
|
|
2594
|
+
animate: ["none", w, He, $e]
|
|
2595
2595
|
}],
|
|
2596
2596
|
// ------------------
|
|
2597
2597
|
// --- Transforms ---
|
|
@@ -2608,7 +2608,7 @@ const oN = (e, t) => {
|
|
|
2608
2608
|
* @see https://tailwindcss.com/docs/perspective
|
|
2609
2609
|
*/
|
|
2610
2610
|
perspective: [{
|
|
2611
|
-
perspective: [g,
|
|
2611
|
+
perspective: [g, He, $e]
|
|
2612
2612
|
}],
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Perspective Origin
|
|
@@ -2704,7 +2704,7 @@ const oN = (e, t) => {
|
|
|
2704
2704
|
* @see https://tailwindcss.com/docs/transform
|
|
2705
2705
|
*/
|
|
2706
2706
|
transform: [{
|
|
2707
|
-
transform: [
|
|
2707
|
+
transform: [He, $e, "", "none", "gpu", "cpu"]
|
|
2708
2708
|
}],
|
|
2709
2709
|
/**
|
|
2710
2710
|
* Transform Origin
|
|
@@ -2758,7 +2758,7 @@ const oN = (e, t) => {
|
|
|
2758
2758
|
* @see https://tailwindcss.com/docs/zoom
|
|
2759
2759
|
*/
|
|
2760
2760
|
zoom: [{
|
|
2761
|
-
zoom: [pr,
|
|
2761
|
+
zoom: [pr, He, $e]
|
|
2762
2762
|
}],
|
|
2763
2763
|
// ---------------------
|
|
2764
2764
|
// --- Interactivity ---
|
|
@@ -2796,7 +2796,7 @@ const oN = (e, t) => {
|
|
|
2796
2796
|
* @see https://tailwindcss.com/docs/cursor
|
|
2797
2797
|
*/
|
|
2798
2798
|
cursor: [{
|
|
2799
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2799
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", He, $e]
|
|
2800
2800
|
}],
|
|
2801
2801
|
/**
|
|
2802
2802
|
* Field Sizing
|
|
@@ -3074,7 +3074,7 @@ const oN = (e, t) => {
|
|
|
3074
3074
|
* @see https://tailwindcss.com/docs/will-change
|
|
3075
3075
|
*/
|
|
3076
3076
|
"will-change": [{
|
|
3077
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3077
|
+
"will-change": ["auto", "scroll", "contents", "transform", He, $e]
|
|
3078
3078
|
}],
|
|
3079
3079
|
// -----------
|
|
3080
3080
|
// --- SVG ---
|
|
@@ -3220,7 +3220,7 @@ function ZN(e, t) {
|
|
|
3220
3220
|
return s.searchParams.set("code", r.toString()), o.forEach((i) => s.searchParams.append("args[]", i)), `${t} error #${r}; visit ${s} for the full message.`;
|
|
3221
3221
|
};
|
|
3222
3222
|
}
|
|
3223
|
-
const
|
|
3223
|
+
const Ze = ZN("https://base-ui.com/production-error", "Base UI"), cb = {};
|
|
3224
3224
|
function Dt(e, t) {
|
|
3225
3225
|
const n = b.useRef(cb);
|
|
3226
3226
|
return n.current === cb && (n.current = e(t)), n;
|
|
@@ -3474,7 +3474,7 @@ function pI(e, t, n, r) {
|
|
|
3474
3474
|
}
|
|
3475
3475
|
if (e && typeof e == "string")
|
|
3476
3476
|
return hI(e, n);
|
|
3477
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." :
|
|
3477
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: Render element or function are not defined." : Ze(8));
|
|
3478
3478
|
}
|
|
3479
3479
|
function mI(e) {
|
|
3480
3480
|
const t = e.name;
|
|
@@ -4310,7 +4310,7 @@ var bn = kI(), NI = (e) => {
|
|
|
4310
4310
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4311
4311
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4312
4312
|
SM.test(e) && !RM.test(e)
|
|
4313
|
-
), vp = () => !1, TM = (e) => EM.test(e), PM = (e) => kM.test(e), OM = (e) =>
|
|
4313
|
+
), vp = () => !1, TM = (e) => EM.test(e), PM = (e) => kM.test(e), OM = (e) => !Le(e) && !Ue(e), AM = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), DM = (e) => yo(e, aw, vp), Le = (e) => tw.test(e), Io = (e) => yo(e, lw, MM), bb = (e) => yo(e, HM, dt), _M = (e) => yo(e, uw, ow), VM = (e) => yo(e, cw, vp), xb = (e) => yo(e, sw, vp), FM = (e) => yo(e, iw, PM), _a = (e) => yo(e, dw, TM), Ue = (e) => nw.test(e), ai = (e) => Qo(e, lw), $M = (e) => Qo(e, cw), yb = (e) => Qo(e, sw), LM = (e) => Qo(e, aw), zM = (e) => Qo(e, iw), Va = (e) => Qo(e, dw, !0), BM = (e) => Qo(e, uw, !0), yo = (e, t, n) => {
|
|
4314
4314
|
const r = tw.exec(e);
|
|
4315
4315
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
4316
4316
|
}, Qo = (e, t, n = !1) => {
|
|
@@ -4335,13 +4335,13 @@ var bn = kI(), NI = (e) => {
|
|
|
4335
4335
|
"bottom-left",
|
|
4336
4336
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
4337
4337
|
"left-bottom"
|
|
4338
|
-
], S = () => [...C(),
|
|
4338
|
+
], S = () => [...C(), Ue, Le], E = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], R = () => [Ue, Le, l], I = () => [Qr, "full", "auto", ...R()], N = () => [mr, "none", "subgrid", Ue, Le], M = () => [
|
|
4339
4339
|
"auto",
|
|
4340
|
-
{ span: ["full", mr,
|
|
4340
|
+
{ span: ["full", mr, Ue, Le] },
|
|
4341
4341
|
mr,
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
], P = () => [mr, "auto",
|
|
4342
|
+
Ue,
|
|
4343
|
+
Le
|
|
4344
|
+
], P = () => [mr, "auto", Ue, Le], F = () => ["auto", "min", "max", "fr", Ue, Le], V = () => [
|
|
4345
4345
|
"start",
|
|
4346
4346
|
"end",
|
|
4347
4347
|
"center",
|
|
@@ -4389,26 +4389,26 @@ var bn = kI(), NI = (e) => {
|
|
|
4389
4389
|
"max",
|
|
4390
4390
|
"fit",
|
|
4391
4391
|
...R()
|
|
4392
|
-
], O = () => [e,
|
|
4392
|
+
], O = () => [e, Ue, Le], H = () => [
|
|
4393
4393
|
...C(),
|
|
4394
4394
|
yb,
|
|
4395
4395
|
xb,
|
|
4396
|
-
{ position: [
|
|
4396
|
+
{ position: [Ue, Le] }
|
|
4397
4397
|
], L = () => ["no-repeat", { repeat: ["", "x", "y", "space", "round"] }], j = () => [
|
|
4398
4398
|
"auto",
|
|
4399
4399
|
"cover",
|
|
4400
4400
|
"contain",
|
|
4401
4401
|
LM,
|
|
4402
4402
|
DM,
|
|
4403
|
-
{ size: [
|
|
4403
|
+
{ size: [Ue, Le] }
|
|
4404
4404
|
], K = () => [nd, ai, Io], B = () => [
|
|
4405
4405
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4406
4406
|
"",
|
|
4407
4407
|
"none",
|
|
4408
4408
|
"full",
|
|
4409
4409
|
c,
|
|
4410
|
-
|
|
4411
|
-
|
|
4410
|
+
Ue,
|
|
4411
|
+
Le
|
|
4412
4412
|
], z = () => ["", dt, ai, Io], G = () => ["solid", "dashed", "dotted", "double"], Y = () => [
|
|
4413
4413
|
"normal",
|
|
4414
4414
|
"multiply",
|
|
@@ -4431,9 +4431,9 @@ var bn = kI(), NI = (e) => {
|
|
|
4431
4431
|
"",
|
|
4432
4432
|
"none",
|
|
4433
4433
|
h,
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
], J = () => ["none", dt,
|
|
4434
|
+
Ue,
|
|
4435
|
+
Le
|
|
4436
|
+
], J = () => ["none", dt, Ue, Le], Z = () => ["none", dt, Ue, Le], ne = () => [dt, Ue, Le], te = () => [Qr, "full", ...R()];
|
|
4437
4437
|
return {
|
|
4438
4438
|
theme: {
|
|
4439
4439
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
@@ -4480,8 +4480,8 @@ var bn = kI(), NI = (e) => {
|
|
|
4480
4480
|
"auto",
|
|
4481
4481
|
"square",
|
|
4482
4482
|
Qr,
|
|
4483
|
-
|
|
4484
|
-
|
|
4483
|
+
Le,
|
|
4484
|
+
Ue,
|
|
4485
4485
|
x
|
|
4486
4486
|
]
|
|
4487
4487
|
}
|
|
@@ -4497,7 +4497,7 @@ var bn = kI(), NI = (e) => {
|
|
|
4497
4497
|
* @see https://tailwindcss.com/docs/responsive-design#container-queries
|
|
4498
4498
|
*/
|
|
4499
4499
|
"container-type": [
|
|
4500
|
-
{ "@container": ["", "normal", "size",
|
|
4500
|
+
{ "@container": ["", "normal", "size", Ue, Le] }
|
|
4501
4501
|
],
|
|
4502
4502
|
/**
|
|
4503
4503
|
* Container Name
|
|
@@ -4508,7 +4508,7 @@ var bn = kI(), NI = (e) => {
|
|
|
4508
4508
|
* Columns
|
|
4509
4509
|
* @see https://tailwindcss.com/docs/columns
|
|
4510
4510
|
*/
|
|
4511
|
-
columns: [{ columns: [dt,
|
|
4511
|
+
columns: [{ columns: [dt, Le, Ue, a] }],
|
|
4512
4512
|
/**
|
|
4513
4513
|
* Break After
|
|
4514
4514
|
* @see https://tailwindcss.com/docs/break-after
|
|
@@ -4710,7 +4710,7 @@ var bn = kI(), NI = (e) => {
|
|
|
4710
4710
|
* Z-Index
|
|
4711
4711
|
* @see https://tailwindcss.com/docs/z-index
|
|
4712
4712
|
*/
|
|
4713
|
-
z: [{ z: [mr, "auto",
|
|
4713
|
+
z: [{ z: [mr, "auto", Ue, Le] }],
|
|
4714
4714
|
// ------------------------
|
|
4715
4715
|
// --- Flexbox and Grid ---
|
|
4716
4716
|
// ------------------------
|
|
@@ -4737,24 +4737,24 @@ var bn = kI(), NI = (e) => {
|
|
|
4737
4737
|
* Flex
|
|
4738
4738
|
* @see https://tailwindcss.com/docs/flex
|
|
4739
4739
|
*/
|
|
4740
|
-
flex: [{ flex: [dt, Qr, "auto", "initial", "none",
|
|
4740
|
+
flex: [{ flex: [dt, Qr, "auto", "initial", "none", Le] }],
|
|
4741
4741
|
/**
|
|
4742
4742
|
* Flex Grow
|
|
4743
4743
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
4744
4744
|
*/
|
|
4745
|
-
grow: [{ grow: ["", dt,
|
|
4745
|
+
grow: [{ grow: ["", dt, Ue, Le] }],
|
|
4746
4746
|
/**
|
|
4747
4747
|
* Flex Shrink
|
|
4748
4748
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
4749
4749
|
*/
|
|
4750
|
-
shrink: [{ shrink: ["", dt,
|
|
4750
|
+
shrink: [{ shrink: ["", dt, Ue, Le] }],
|
|
4751
4751
|
/**
|
|
4752
4752
|
* Order
|
|
4753
4753
|
* @see https://tailwindcss.com/docs/order
|
|
4754
4754
|
*/
|
|
4755
4755
|
order: [
|
|
4756
4756
|
{
|
|
4757
|
-
order: [mr, "first", "last", "none",
|
|
4757
|
+
order: [mr, "first", "last", "none", Ue, Le]
|
|
4758
4758
|
}
|
|
4759
4759
|
],
|
|
4760
4760
|
/**
|
|
@@ -5138,7 +5138,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5138
5138
|
"extra-expanded",
|
|
5139
5139
|
"ultra-expanded",
|
|
5140
5140
|
nd,
|
|
5141
|
-
|
|
5141
|
+
Le
|
|
5142
5142
|
]
|
|
5143
5143
|
}
|
|
5144
5144
|
],
|
|
@@ -5151,7 +5151,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5151
5151
|
* Font Feature Settings
|
|
5152
5152
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
5153
5153
|
*/
|
|
5154
|
-
"font-features": [{ "font-features": [
|
|
5154
|
+
"font-features": [{ "font-features": [Le] }],
|
|
5155
5155
|
/**
|
|
5156
5156
|
* Font Variant Numeric
|
|
5157
5157
|
* @see https://tailwindcss.com/docs/font-variant-numeric
|
|
@@ -5186,12 +5186,12 @@ var bn = kI(), NI = (e) => {
|
|
|
5186
5186
|
* Letter Spacing
|
|
5187
5187
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
5188
5188
|
*/
|
|
5189
|
-
tracking: [{ tracking: [o,
|
|
5189
|
+
tracking: [{ tracking: [o, Ue, Le] }],
|
|
5190
5190
|
/**
|
|
5191
5191
|
* Line Clamp
|
|
5192
5192
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
5193
5193
|
*/
|
|
5194
|
-
"line-clamp": [{ "line-clamp": [dt, "none",
|
|
5194
|
+
"line-clamp": [{ "line-clamp": [dt, "none", Ue, bb] }],
|
|
5195
5195
|
/**
|
|
5196
5196
|
* Line Height
|
|
5197
5197
|
* @see https://tailwindcss.com/docs/line-height
|
|
@@ -5209,7 +5209,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5209
5209
|
* List Style Image
|
|
5210
5210
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
5211
5211
|
*/
|
|
5212
|
-
"list-image": [{ "list-image": ["none",
|
|
5212
|
+
"list-image": [{ "list-image": ["none", Ue, Le] }],
|
|
5213
5213
|
/**
|
|
5214
5214
|
* List Style Position
|
|
5215
5215
|
* @see https://tailwindcss.com/docs/list-style-position
|
|
@@ -5220,7 +5220,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5220
5220
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
5221
5221
|
*/
|
|
5222
5222
|
"list-style-type": [
|
|
5223
|
-
{ list: ["disc", "decimal", "none",
|
|
5223
|
+
{ list: ["disc", "decimal", "none", Ue, Le] }
|
|
5224
5224
|
],
|
|
5225
5225
|
/**
|
|
5226
5226
|
* Text Alignment
|
|
@@ -5254,7 +5254,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5254
5254
|
*/
|
|
5255
5255
|
"text-decoration-thickness": [
|
|
5256
5256
|
{
|
|
5257
|
-
decoration: [dt, "from-font", "auto",
|
|
5257
|
+
decoration: [dt, "from-font", "auto", Ue, Io]
|
|
5258
5258
|
}
|
|
5259
5259
|
],
|
|
5260
5260
|
/**
|
|
@@ -5267,7 +5267,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5267
5267
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
5268
5268
|
*/
|
|
5269
5269
|
"underline-offset": [
|
|
5270
|
-
{ "underline-offset": [dt, "auto",
|
|
5270
|
+
{ "underline-offset": [dt, "auto", Ue, Le] }
|
|
5271
5271
|
],
|
|
5272
5272
|
/**
|
|
5273
5273
|
* Text Transform
|
|
@@ -5293,7 +5293,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5293
5293
|
* Tab Size
|
|
5294
5294
|
* @see https://tailwindcss.com/docs/tab-size
|
|
5295
5295
|
*/
|
|
5296
|
-
"tab-size": [{ tab: [mr,
|
|
5296
|
+
"tab-size": [{ tab: [mr, Ue, Le] }],
|
|
5297
5297
|
/**
|
|
5298
5298
|
* Vertical Alignment
|
|
5299
5299
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
@@ -5309,8 +5309,8 @@ var bn = kI(), NI = (e) => {
|
|
|
5309
5309
|
"text-bottom",
|
|
5310
5310
|
"sub",
|
|
5311
5311
|
"super",
|
|
5312
|
-
|
|
5313
|
-
|
|
5312
|
+
Ue,
|
|
5313
|
+
Le
|
|
5314
5314
|
]
|
|
5315
5315
|
}
|
|
5316
5316
|
],
|
|
@@ -5340,7 +5340,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5340
5340
|
* Content
|
|
5341
5341
|
* @see https://tailwindcss.com/docs/content
|
|
5342
5342
|
*/
|
|
5343
|
-
content: [{ content: ["none",
|
|
5343
|
+
content: [{ content: ["none", Ue, Le] }],
|
|
5344
5344
|
// -------------------
|
|
5345
5345
|
// --- Backgrounds ---
|
|
5346
5346
|
// -------------------
|
|
@@ -5386,11 +5386,11 @@ var bn = kI(), NI = (e) => {
|
|
|
5386
5386
|
linear: [
|
|
5387
5387
|
{ to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"] },
|
|
5388
5388
|
mr,
|
|
5389
|
-
|
|
5390
|
-
|
|
5389
|
+
Ue,
|
|
5390
|
+
Le
|
|
5391
5391
|
],
|
|
5392
|
-
radial: ["",
|
|
5393
|
-
conic: [mr,
|
|
5392
|
+
radial: ["", Ue, Le],
|
|
5393
|
+
conic: [mr, Ue, Le]
|
|
5394
5394
|
},
|
|
5395
5395
|
zM,
|
|
5396
5396
|
FM
|
|
@@ -5664,7 +5664,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5664
5664
|
* Outline Offset
|
|
5665
5665
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
5666
5666
|
*/
|
|
5667
|
-
"outline-offset": [{ "outline-offset": [dt,
|
|
5667
|
+
"outline-offset": [{ "outline-offset": [dt, Ue, Le] }],
|
|
5668
5668
|
/**
|
|
5669
5669
|
* Outline Width
|
|
5670
5670
|
* @see https://tailwindcss.com/docs/outline-width
|
|
@@ -5772,7 +5772,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5772
5772
|
* Opacity
|
|
5773
5773
|
* @see https://tailwindcss.com/docs/opacity
|
|
5774
5774
|
*/
|
|
5775
|
-
opacity: [{ opacity: [dt,
|
|
5775
|
+
opacity: [{ opacity: [dt, Ue, Le] }],
|
|
5776
5776
|
/**
|
|
5777
5777
|
* Mix Blend Mode
|
|
5778
5778
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
@@ -5829,7 +5829,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5829
5829
|
"mask-image-y-to-pos": [{ "mask-y-to": q() }],
|
|
5830
5830
|
"mask-image-y-from-color": [{ "mask-y-from": O() }],
|
|
5831
5831
|
"mask-image-y-to-color": [{ "mask-y-to": O() }],
|
|
5832
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
5832
|
+
"mask-image-radial": [{ "mask-radial": [Ue, Le] }],
|
|
5833
5833
|
"mask-image-radial-from-pos": [{ "mask-radial-from": q() }],
|
|
5834
5834
|
"mask-image-radial-to-pos": [{ "mask-radial-to": q() }],
|
|
5835
5835
|
"mask-image-radial-from-color": [{ "mask-radial-from": O() }],
|
|
@@ -5878,7 +5878,7 @@ var bn = kI(), NI = (e) => {
|
|
|
5878
5878
|
* Mask Image
|
|
5879
5879
|
* @see https://tailwindcss.com/docs/mask-image
|
|
5880
5880
|
*/
|
|
5881
|
-
"mask-image": [{ mask: ["none",
|
|
5881
|
+
"mask-image": [{ mask: ["none", Ue, Le] }],
|
|
5882
5882
|
// ---------------
|
|
5883
5883
|
// --- Filters ---
|
|
5884
5884
|
// ---------------
|
|
@@ -5892,8 +5892,8 @@ var bn = kI(), NI = (e) => {
|
|
|
5892
5892
|
// Deprecated since Tailwind CSS v3.0.0
|
|
5893
5893
|
"",
|
|
5894
5894
|
"none",
|
|
5895
|
-
|
|
5896
|
-
|
|
5895
|
+
Ue,
|
|
5896
|
+
Le
|
|
5897
5897
|
]
|
|
5898
5898
|
}
|
|
5899
5899
|
],
|
|
@@ -5906,12 +5906,12 @@ var bn = kI(), NI = (e) => {
|
|
|
5906
5906
|
* Brightness
|
|
5907
5907
|
* @see https://tailwindcss.com/docs/brightness
|
|
5908
5908
|
*/
|
|
5909
|
-
brightness: [{ brightness: [dt,
|
|
5909
|
+
brightness: [{ brightness: [dt, Ue, Le] }],
|
|
5910
5910
|
/**
|
|
5911
5911
|
* Contrast
|
|
5912
5912
|
* @see https://tailwindcss.com/docs/contrast
|
|
5913
5913
|
*/
|
|
5914
|
-
contrast: [{ contrast: [dt,
|
|
5914
|
+
contrast: [{ contrast: [dt, Ue, Le] }],
|
|
5915
5915
|
/**
|
|
5916
5916
|
* Drop Shadow
|
|
5917
5917
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
@@ -5937,27 +5937,27 @@ var bn = kI(), NI = (e) => {
|
|
|
5937
5937
|
* Grayscale
|
|
5938
5938
|
* @see https://tailwindcss.com/docs/grayscale
|
|
5939
5939
|
*/
|
|
5940
|
-
grayscale: [{ grayscale: ["", dt,
|
|
5940
|
+
grayscale: [{ grayscale: ["", dt, Ue, Le] }],
|
|
5941
5941
|
/**
|
|
5942
5942
|
* Hue Rotate
|
|
5943
5943
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
5944
5944
|
*/
|
|
5945
|
-
"hue-rotate": [{ "hue-rotate": [dt,
|
|
5945
|
+
"hue-rotate": [{ "hue-rotate": [dt, Ue, Le] }],
|
|
5946
5946
|
/**
|
|
5947
5947
|
* Invert
|
|
5948
5948
|
* @see https://tailwindcss.com/docs/invert
|
|
5949
5949
|
*/
|
|
5950
|
-
invert: [{ invert: ["", dt,
|
|
5950
|
+
invert: [{ invert: ["", dt, Ue, Le] }],
|
|
5951
5951
|
/**
|
|
5952
5952
|
* Saturate
|
|
5953
5953
|
* @see https://tailwindcss.com/docs/saturate
|
|
5954
5954
|
*/
|
|
5955
|
-
saturate: [{ saturate: [dt,
|
|
5955
|
+
saturate: [{ saturate: [dt, Ue, Le] }],
|
|
5956
5956
|
/**
|
|
5957
5957
|
* Sepia
|
|
5958
5958
|
* @see https://tailwindcss.com/docs/sepia
|
|
5959
5959
|
*/
|
|
5960
|
-
sepia: [{ sepia: ["", dt,
|
|
5960
|
+
sepia: [{ sepia: ["", dt, Ue, Le] }],
|
|
5961
5961
|
/**
|
|
5962
5962
|
* Backdrop Filter
|
|
5963
5963
|
* @see https://tailwindcss.com/docs/backdrop-filter
|
|
@@ -5968,8 +5968,8 @@ var bn = kI(), NI = (e) => {
|
|
|
5968
5968
|
// Deprecated since Tailwind CSS v3.0.0
|
|
5969
5969
|
"",
|
|
5970
5970
|
"none",
|
|
5971
|
-
|
|
5972
|
-
|
|
5971
|
+
Ue,
|
|
5972
|
+
Le
|
|
5973
5973
|
]
|
|
5974
5974
|
}
|
|
5975
5975
|
],
|
|
@@ -5983,53 +5983,53 @@ var bn = kI(), NI = (e) => {
|
|
|
5983
5983
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
5984
5984
|
*/
|
|
5985
5985
|
"backdrop-brightness": [
|
|
5986
|
-
{ "backdrop-brightness": [dt,
|
|
5986
|
+
{ "backdrop-brightness": [dt, Ue, Le] }
|
|
5987
5987
|
],
|
|
5988
5988
|
/**
|
|
5989
5989
|
* Backdrop Contrast
|
|
5990
5990
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
5991
5991
|
*/
|
|
5992
5992
|
"backdrop-contrast": [
|
|
5993
|
-
{ "backdrop-contrast": [dt,
|
|
5993
|
+
{ "backdrop-contrast": [dt, Ue, Le] }
|
|
5994
5994
|
],
|
|
5995
5995
|
/**
|
|
5996
5996
|
* Backdrop Grayscale
|
|
5997
5997
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
5998
5998
|
*/
|
|
5999
5999
|
"backdrop-grayscale": [
|
|
6000
|
-
{ "backdrop-grayscale": ["", dt,
|
|
6000
|
+
{ "backdrop-grayscale": ["", dt, Ue, Le] }
|
|
6001
6001
|
],
|
|
6002
6002
|
/**
|
|
6003
6003
|
* Backdrop Hue Rotate
|
|
6004
6004
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
6005
6005
|
*/
|
|
6006
6006
|
"backdrop-hue-rotate": [
|
|
6007
|
-
{ "backdrop-hue-rotate": [dt,
|
|
6007
|
+
{ "backdrop-hue-rotate": [dt, Ue, Le] }
|
|
6008
6008
|
],
|
|
6009
6009
|
/**
|
|
6010
6010
|
* Backdrop Invert
|
|
6011
6011
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
6012
6012
|
*/
|
|
6013
6013
|
"backdrop-invert": [
|
|
6014
|
-
{ "backdrop-invert": ["", dt,
|
|
6014
|
+
{ "backdrop-invert": ["", dt, Ue, Le] }
|
|
6015
6015
|
],
|
|
6016
6016
|
/**
|
|
6017
6017
|
* Backdrop Opacity
|
|
6018
6018
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
6019
6019
|
*/
|
|
6020
|
-
"backdrop-opacity": [{ "backdrop-opacity": [dt,
|
|
6020
|
+
"backdrop-opacity": [{ "backdrop-opacity": [dt, Ue, Le] }],
|
|
6021
6021
|
/**
|
|
6022
6022
|
* Backdrop Saturate
|
|
6023
6023
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
6024
6024
|
*/
|
|
6025
6025
|
"backdrop-saturate": [
|
|
6026
|
-
{ "backdrop-saturate": [dt,
|
|
6026
|
+
{ "backdrop-saturate": [dt, Ue, Le] }
|
|
6027
6027
|
],
|
|
6028
6028
|
/**
|
|
6029
6029
|
* Backdrop Sepia
|
|
6030
6030
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
6031
6031
|
*/
|
|
6032
|
-
"backdrop-sepia": [{ "backdrop-sepia": ["", dt,
|
|
6032
|
+
"backdrop-sepia": [{ "backdrop-sepia": ["", dt, Ue, Le] }],
|
|
6033
6033
|
// --------------
|
|
6034
6034
|
// --- Tables ---
|
|
6035
6035
|
// --------------
|
|
@@ -6080,8 +6080,8 @@ var bn = kI(), NI = (e) => {
|
|
|
6080
6080
|
"shadow",
|
|
6081
6081
|
"transform",
|
|
6082
6082
|
"none",
|
|
6083
|
-
|
|
6084
|
-
|
|
6083
|
+
Ue,
|
|
6084
|
+
Le
|
|
6085
6085
|
]
|
|
6086
6086
|
}
|
|
6087
6087
|
],
|
|
@@ -6094,22 +6094,22 @@ var bn = kI(), NI = (e) => {
|
|
|
6094
6094
|
* Transition Duration
|
|
6095
6095
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
6096
6096
|
*/
|
|
6097
|
-
duration: [{ duration: [dt, "initial",
|
|
6097
|
+
duration: [{ duration: [dt, "initial", Ue, Le] }],
|
|
6098
6098
|
/**
|
|
6099
6099
|
* Transition Timing Function
|
|
6100
6100
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
6101
6101
|
*/
|
|
6102
|
-
ease: [{ ease: ["linear", "initial", y,
|
|
6102
|
+
ease: [{ ease: ["linear", "initial", y, Ue, Le] }],
|
|
6103
6103
|
/**
|
|
6104
6104
|
* Transition Delay
|
|
6105
6105
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
6106
6106
|
*/
|
|
6107
|
-
delay: [{ delay: [dt,
|
|
6107
|
+
delay: [{ delay: [dt, Ue, Le] }],
|
|
6108
6108
|
/**
|
|
6109
6109
|
* Animation
|
|
6110
6110
|
* @see https://tailwindcss.com/docs/animation
|
|
6111
6111
|
*/
|
|
6112
|
-
animate: [{ animate: ["none", w,
|
|
6112
|
+
animate: [{ animate: ["none", w, Ue, Le] }],
|
|
6113
6113
|
// ------------------
|
|
6114
6114
|
// --- Transforms ---
|
|
6115
6115
|
// ------------------
|
|
@@ -6122,7 +6122,7 @@ var bn = kI(), NI = (e) => {
|
|
|
6122
6122
|
* Perspective
|
|
6123
6123
|
* @see https://tailwindcss.com/docs/perspective
|
|
6124
6124
|
*/
|
|
6125
|
-
perspective: [{ perspective: [g,
|
|
6125
|
+
perspective: [{ perspective: [g, Ue, Le] }],
|
|
6126
6126
|
/**
|
|
6127
6127
|
* Perspective Origin
|
|
6128
6128
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
@@ -6192,7 +6192,7 @@ var bn = kI(), NI = (e) => {
|
|
|
6192
6192
|
* Transform
|
|
6193
6193
|
* @see https://tailwindcss.com/docs/transform
|
|
6194
6194
|
*/
|
|
6195
|
-
transform: [{ transform: [
|
|
6195
|
+
transform: [{ transform: [Ue, Le, "", "none", "gpu", "cpu"] }],
|
|
6196
6196
|
/**
|
|
6197
6197
|
* Transform Origin
|
|
6198
6198
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
@@ -6232,7 +6232,7 @@ var bn = kI(), NI = (e) => {
|
|
|
6232
6232
|
* Zoom
|
|
6233
6233
|
* @see https://tailwindcss.com/docs/zoom
|
|
6234
6234
|
*/
|
|
6235
|
-
zoom: [{ zoom: [mr,
|
|
6235
|
+
zoom: [{ zoom: [mr, Ue, Le] }],
|
|
6236
6236
|
// ---------------------
|
|
6237
6237
|
// --- Interactivity ---
|
|
6238
6238
|
// ---------------------
|
|
@@ -6301,8 +6301,8 @@ var bn = kI(), NI = (e) => {
|
|
|
6301
6301
|
"nwse-resize",
|
|
6302
6302
|
"zoom-in",
|
|
6303
6303
|
"zoom-out",
|
|
6304
|
-
|
|
6305
|
-
|
|
6304
|
+
Ue,
|
|
6305
|
+
Le
|
|
6306
6306
|
]
|
|
6307
6307
|
}
|
|
6308
6308
|
],
|
|
@@ -6512,8 +6512,8 @@ var bn = kI(), NI = (e) => {
|
|
|
6512
6512
|
"scroll",
|
|
6513
6513
|
"contents",
|
|
6514
6514
|
"transform",
|
|
6515
|
-
|
|
6516
|
-
|
|
6515
|
+
Ue,
|
|
6516
|
+
Le
|
|
6517
6517
|
]
|
|
6518
6518
|
}
|
|
6519
6519
|
],
|
|
@@ -6937,7 +6937,7 @@ function Pt({
|
|
|
6937
6937
|
"aria-disabled": p,
|
|
6938
6938
|
...h
|
|
6939
6939
|
}) {
|
|
6940
|
-
const [g, x] = Ee([]), y =
|
|
6940
|
+
const [g, x] = Ee([]), y = Ve(0), w = i || c || p === !0 || p === "true";
|
|
6941
6941
|
function v(C) {
|
|
6942
6942
|
if (m?.(C), t === "link" || w) return;
|
|
6943
6943
|
const S = C.currentTarget.getBoundingClientRect(), E = Math.max(C.clientX - S.left, S.right - C.clientX), k = Math.max(C.clientY - S.top, S.bottom - C.clientY), R = 2 * Math.hypot(E, k), I = {
|
|
@@ -8798,21 +8798,21 @@ function Gs(e, t = {}) {
|
|
|
8798
8798
|
return;
|
|
8799
8799
|
}
|
|
8800
8800
|
const re = yt(X), he = `[${Ai("inert")}]`, ie = at(re) ? re.getRootNode() : null, ae = Array.from((Ts(ie) ? ie : Ye(c.select("floatingElement"))).querySelectorAll(he)), ve = c.context.triggerElements;
|
|
8801
|
-
if (re && (ve.hasElement(re) || ve.hasMatchingElement((
|
|
8801
|
+
if (re && (ve.hasElement(re) || ve.hasMatchingElement((ze) => Ie(ze, re))))
|
|
8802
8802
|
return;
|
|
8803
8803
|
let Re = at(re) ? re : null;
|
|
8804
8804
|
for (; Re && !_r(Re); ) {
|
|
8805
|
-
const
|
|
8806
|
-
if (_r(
|
|
8805
|
+
const ze = zr(Re);
|
|
8806
|
+
if (_r(ze) || !at(ze))
|
|
8807
8807
|
break;
|
|
8808
|
-
Re =
|
|
8808
|
+
Re = ze;
|
|
8809
8809
|
}
|
|
8810
8810
|
if (!(ae.length && at(re) && !pT(re) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
8811
8811
|
!Ie(re, c.select("floatingElement")) && // If the target root element contains none of the markers, then the
|
|
8812
8812
|
// element was injected after the floating element rendered.
|
|
8813
|
-
ae.every((
|
|
8813
|
+
ae.every((ze) => !Ie(Re, ze)))) {
|
|
8814
8814
|
if (xt(re) && !("touches" in X)) {
|
|
8815
|
-
const
|
|
8815
|
+
const ze = _r(re), Te = wn(re), Ne = /auto|scroll/, ke = ze || Ne.test(Te.overflowX), Xe = ze || Ne.test(Te.overflowY), Be = ke && re.clientWidth > 0 && re.scrollWidth > re.clientWidth, _e = Xe && re.clientHeight > 0 && re.scrollHeight > re.clientHeight, Se = Te.direction === "rtl", Oe = _e && (Se ? X.offsetX <= re.offsetWidth - re.clientWidth : X.offsetX > re.clientWidth), Ge = Be && X.offsetY > re.clientHeight;
|
|
8816
8816
|
if (Oe || Ge)
|
|
8817
8817
|
return;
|
|
8818
8818
|
}
|
|
@@ -11619,7 +11619,7 @@ function tm(e, t) {
|
|
|
11619
11619
|
onKeyDown(ie) {
|
|
11620
11620
|
const ae = k.select("open");
|
|
11621
11621
|
O.current = !1;
|
|
11622
|
-
const ve = ie.key.startsWith("Arrow"), Re = b2(ie.key, me(), u),
|
|
11622
|
+
const ve = ie.key.startsWith("Arrow"), Re = b2(ie.key, me(), u), ze = ja(ie.key, x), Te = (c ? Re : ze) || ie.key === "Enter" || ie.key.trim() === "";
|
|
11623
11623
|
if (m && ae)
|
|
11624
11624
|
return se(ie);
|
|
11625
11625
|
if (!(!ae && !h && ve)) {
|
|
@@ -11631,7 +11631,7 @@ function tm(e, t) {
|
|
|
11631
11631
|
Re && (wt(ie), ae ? (A.current = pe(), H(ie)) : X(ie));
|
|
11632
11632
|
return;
|
|
11633
11633
|
}
|
|
11634
|
-
|
|
11634
|
+
ze && (q.current != null && (A.current = q.current), wt(ie), !ae && h ? X(ie) : se(ie), ae && H(ie));
|
|
11635
11635
|
}
|
|
11636
11636
|
},
|
|
11637
11637
|
onFocus(ie) {
|
|
@@ -11841,7 +11841,7 @@ process.env.NODE_ENV !== "production" && (rm.displayName = "PopoverRootContext")
|
|
|
11841
11841
|
function ns(e) {
|
|
11842
11842
|
const t = b.useContext(rm);
|
|
11843
11843
|
if (t === void 0 && !e)
|
|
11844
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>." :
|
|
11844
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverRootContext is missing. Popover parts must be placed within <Popover.Root>." : Ze(47));
|
|
11845
11845
|
return t;
|
|
11846
11846
|
}
|
|
11847
11847
|
const w2 = {
|
|
@@ -12010,7 +12010,7 @@ process.env.NODE_ENV !== "production" && (om.displayName = "CompositeRootContext
|
|
|
12010
12010
|
function Qc(e = !1) {
|
|
12011
12011
|
const t = b.useContext(om);
|
|
12012
12012
|
if (t === void 0 && !e)
|
|
12013
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." :
|
|
12013
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : Ze(16));
|
|
12014
12014
|
return t;
|
|
12015
12015
|
}
|
|
12016
12016
|
function i0(e) {
|
|
@@ -12292,7 +12292,7 @@ const l0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
12292
12292
|
...h
|
|
12293
12293
|
} = t, g = ns(!0), y = qc(l) ?? g;
|
|
12294
12294
|
if (!y)
|
|
12295
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." :
|
|
12295
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Trigger> must be either used within a <Popover.Root> component or provided with a handle." : Ze(74));
|
|
12296
12296
|
const w = vt(p), v = y.useState("isTriggerActive", w), C = y.useState("floatingRootContext"), S = y.useState("isOpenedByTrigger", w), E = y.useState("triggerPopupId", w), k = b.useRef(null), {
|
|
12297
12297
|
registerTrigger: R,
|
|
12298
12298
|
isMountedByThisTrigger: I
|
|
@@ -12364,7 +12364,7 @@ process.env.NODE_ENV !== "production" && (am.displayName = "PopoverPortalContext
|
|
|
12364
12364
|
function $2() {
|
|
12365
12365
|
const e = b.useContext(am);
|
|
12366
12366
|
if (e === void 0)
|
|
12367
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." :
|
|
12367
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Popover.Portal> is missing." : Ze(45));
|
|
12368
12368
|
return e;
|
|
12369
12369
|
}
|
|
12370
12370
|
const c0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -12389,7 +12389,7 @@ process.env.NODE_ENV !== "production" && (lm.displayName = "PopoverPositionerCon
|
|
|
12389
12389
|
function u0() {
|
|
12390
12390
|
const e = b.useContext(lm);
|
|
12391
12391
|
if (!e)
|
|
12392
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>." :
|
|
12392
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: PopoverPositionerContext is missing. PopoverPositioner parts must be placed within <Popover.Positioner>." : Ze(46));
|
|
12393
12393
|
return e;
|
|
12394
12394
|
}
|
|
12395
12395
|
const d0 = /* @__PURE__ */ b.createContext(void 0);
|
|
@@ -12598,8 +12598,8 @@ function U2(e, t) {
|
|
|
12598
12598
|
y: Ft,
|
|
12599
12599
|
width: Pe,
|
|
12600
12600
|
height: St
|
|
12601
|
-
} = gt.reference, Rt = (Math.round((lt + Pe) * it) - Math.round(lt * it)) / it,
|
|
12602
|
-
qe.setProperty("--anchor-width", `${Rt}px`), qe.setProperty("--anchor-height", `${
|
|
12601
|
+
} = gt.reference, Rt = (Math.round((lt + Pe) * it) - Math.round(lt * it)) / it, We = (Math.round((Ft + St) * it) - Math.round(Ft * it)) / it;
|
|
12602
|
+
qe.setProperty("--anchor-width", `${Rt}px`), qe.setProperty("--anchor-height", `${We}px`);
|
|
12603
12603
|
}
|
|
12604
12604
|
}), z2((je) => ({
|
|
12605
12605
|
// `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,
|
|
@@ -12616,7 +12616,7 @@ function U2(e, t) {
|
|
|
12616
12616
|
placement: gt,
|
|
12617
12617
|
rects: qe,
|
|
12618
12618
|
y: it
|
|
12619
|
-
} = je, lt = Zn(gt), Ft = jn(lt), Pe = ee.current, St = Ae.arrow?.x || 0, Rt = Ae.arrow?.y || 0,
|
|
12619
|
+
} = je, lt = Zn(gt), Ft = jn(lt), Pe = ee.current, St = Ae.arrow?.x || 0, Rt = Ae.arrow?.y || 0, We = Pe?.clientWidth || 0, bt = Pe?.clientHeight || 0, $t = St + We / 2, Yt = Rt + bt / 2, mn = Math.abs(Ae.shift?.y || 0), Gt = qe.reference.height / 2, tn = typeof s == "function" ? s(cx(je, o, O)) : s, Xt = mn > tn, nt = {
|
|
12620
12620
|
top: `${$t}px calc(100% + ${tn}px)`,
|
|
12621
12621
|
bottom: `${$t}px ${-tn}px`,
|
|
12622
12622
|
left: `calc(100% + ${tn}px) ${Yt}px`,
|
|
@@ -12656,13 +12656,13 @@ function U2(e, t) {
|
|
|
12656
12656
|
nodeId: v,
|
|
12657
12657
|
externalTree: E
|
|
12658
12658
|
}), {
|
|
12659
|
-
sideX:
|
|
12659
|
+
sideX: ze,
|
|
12660
12660
|
sideY: Te
|
|
12661
12661
|
} = re.adaptiveOrigin || H2, Ne = ve ? r : "fixed", ke = b.useMemo(() => {
|
|
12662
12662
|
let je;
|
|
12663
12663
|
return ve ? C ? je = {
|
|
12664
12664
|
position: Ne,
|
|
12665
|
-
[
|
|
12665
|
+
[ze]: Q,
|
|
12666
12666
|
[Te]: X
|
|
12667
12667
|
} : je = {
|
|
12668
12668
|
...Re,
|
|
@@ -12672,25 +12672,25 @@ function U2(e, t) {
|
|
|
12672
12672
|
top: 0,
|
|
12673
12673
|
left: 0
|
|
12674
12674
|
}, je[ax] = "100vw", je[lx] = "100vh", ve || (je.opacity = 0), je;
|
|
12675
|
-
}, [C, Ne,
|
|
12675
|
+
}, [C, Ne, ze, Q, Te, X, Re, ve]), Xe = b.useRef(null);
|
|
12676
12676
|
be(() => {
|
|
12677
12677
|
if (!x)
|
|
12678
12678
|
return;
|
|
12679
12679
|
const je = $.current, et = typeof je == "function" ? je() : je, gt = (ux(et) ? et.current : et) || null || null;
|
|
12680
|
-
gt !==
|
|
12680
|
+
gt !== Xe.current && (fe.setPositionReference(gt), Xe.current = gt);
|
|
12681
12681
|
}, [x, fe, D, $]), b.useEffect(() => {
|
|
12682
12682
|
if (!x)
|
|
12683
12683
|
return;
|
|
12684
12684
|
const je = $.current;
|
|
12685
|
-
typeof je != "function" && ux(je) && je.current !==
|
|
12685
|
+
typeof je != "function" && ux(je) && je.current !== Xe.current && (fe.setPositionReference(je.current), Xe.current = je.current);
|
|
12686
12686
|
}, [x, fe, D, $]), b.useEffect(() => {
|
|
12687
12687
|
if (h && x && xe.reference && xe.floating)
|
|
12688
12688
|
return Yb(xe.reference, xe.floating, he, le);
|
|
12689
12689
|
}, [h, x, xe, he, le]);
|
|
12690
|
-
const
|
|
12690
|
+
const Be = Zn(ie), _e = f0(o, Be, O), Se = wo(ie) || "center", Oe = !!re.hide?.referenceHidden;
|
|
12691
12691
|
be(() => {
|
|
12692
|
-
S && x && ve &&
|
|
12693
|
-
}, [S, x, ve,
|
|
12692
|
+
S && x && ve && Be !== H && R(Be);
|
|
12693
|
+
}, [S, x, ve, Be, H]);
|
|
12694
12694
|
const Ge = b.useMemo(() => ({
|
|
12695
12695
|
position: "absolute",
|
|
12696
12696
|
top: re.arrow?.y,
|
|
@@ -12703,13 +12703,13 @@ function U2(e, t) {
|
|
|
12703
12703
|
arrowUncentered: tt,
|
|
12704
12704
|
side: _e,
|
|
12705
12705
|
align: Se,
|
|
12706
|
-
physicalSide:
|
|
12706
|
+
physicalSide: Be,
|
|
12707
12707
|
anchorHidden: Oe,
|
|
12708
12708
|
refs: fe,
|
|
12709
12709
|
context: ae,
|
|
12710
12710
|
isPositioned: ve,
|
|
12711
12711
|
update: he
|
|
12712
|
-
}), [ke, Ge, ee, tt, _e, Se,
|
|
12712
|
+
}), [ke, Ge, ee, tt, _e, Se, Be, Oe, fe, ae, ve, he]);
|
|
12713
12713
|
}
|
|
12714
12714
|
function ux(e) {
|
|
12715
12715
|
return e != null && "current" in e;
|
|
@@ -13033,7 +13033,7 @@ process.env.NODE_ENV !== "production" && (cm.displayName = "ToolbarRootContext")
|
|
|
13033
13033
|
function Ro(e) {
|
|
13034
13034
|
const t = b.useContext(cm);
|
|
13035
13035
|
if (t === void 0 && !e)
|
|
13036
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." :
|
|
13036
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." : Ze(69));
|
|
13037
13037
|
return t;
|
|
13038
13038
|
}
|
|
13039
13039
|
const um = /* @__PURE__ */ b.createContext(void 0);
|
|
@@ -13195,7 +13195,7 @@ process.env.NODE_ENV !== "production" && (dm.displayName = "TooltipRootContext")
|
|
|
13195
13195
|
function oa(e) {
|
|
13196
13196
|
const t = b.useContext(dm);
|
|
13197
13197
|
if (t === void 0 && !e)
|
|
13198
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." :
|
|
13198
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>." : Ze(72));
|
|
13199
13199
|
return t;
|
|
13200
13200
|
}
|
|
13201
13201
|
const nO = {
|
|
@@ -13372,7 +13372,7 @@ const S0 = Yw(function(t, n) {
|
|
|
13372
13372
|
...p
|
|
13373
13373
|
} = t, h = oa(!0), x = qc(i) ?? h;
|
|
13374
13374
|
if (!x)
|
|
13375
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle." :
|
|
13375
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle." : Ze(82));
|
|
13376
13376
|
const y = vt(d), w = x.useState("isTriggerActive", y), v = x.useState("isOpenedByTrigger", y), C = x.useState("floatingRootContext"), S = b.useRef(null), E = c ?? yx, k = m ?? 0, {
|
|
13377
13377
|
registerTrigger: R,
|
|
13378
13378
|
isMountedByThisTrigger: I
|
|
@@ -13475,7 +13475,7 @@ process.env.NODE_ENV !== "production" && (pm.displayName = "TooltipPortalContext
|
|
|
13475
13475
|
function cO() {
|
|
13476
13476
|
const e = b.useContext(pm);
|
|
13477
13477
|
if (e === void 0)
|
|
13478
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Portal> is missing." :
|
|
13478
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Tooltip.Portal> is missing." : Ze(70));
|
|
13479
13479
|
return e;
|
|
13480
13480
|
}
|
|
13481
13481
|
const mm = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -13519,7 +13519,7 @@ process.env.NODE_ENV !== "production" && (hm.displayName = "TooltipPositionerCon
|
|
|
13519
13519
|
function E0() {
|
|
13520
13520
|
const e = b.useContext(hm);
|
|
13521
13521
|
if (e === void 0)
|
|
13522
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." :
|
|
13522
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>." : Ze(71));
|
|
13523
13523
|
return e;
|
|
13524
13524
|
}
|
|
13525
13525
|
const k0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -14242,7 +14242,7 @@ process.env.NODE_ENV !== "production" && (nu.displayName = "FieldRootContext");
|
|
|
14242
14242
|
function qt(e = !0) {
|
|
14243
14243
|
const t = b.useContext(nu);
|
|
14244
14244
|
if (t.setValidityData === pt && !e)
|
|
14245
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." :
|
|
14245
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : Ze(28));
|
|
14246
14246
|
return t;
|
|
14247
14247
|
}
|
|
14248
14248
|
const gm = /* @__PURE__ */ b.createContext(void 0);
|
|
@@ -14250,7 +14250,7 @@ process.env.NODE_ENV !== "production" && (gm.displayName = "FieldsetRootContext"
|
|
|
14250
14250
|
function ru(e = !1) {
|
|
14251
14251
|
const t = b.useContext(gm);
|
|
14252
14252
|
if (!t && !e)
|
|
14253
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." :
|
|
14253
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : Ze(86));
|
|
14254
14254
|
return t;
|
|
14255
14255
|
}
|
|
14256
14256
|
const F0 = /* @__PURE__ */ b.createContext({
|
|
@@ -15493,11 +15493,11 @@ function LH({
|
|
|
15493
15493
|
messageClassName: d,
|
|
15494
15494
|
ref: p
|
|
15495
15495
|
}) {
|
|
15496
|
-
const h = NO({ size: s }), [g, x] = Ee(!1), [y, w] = Ee(e), [v, C] = Ee(!1), [S, E] = Ee(null), [k, R] = Ee(null), I =
|
|
15496
|
+
const h = NO({ size: s }), [g, x] = Ee(!1), [y, w] = Ee(e), [v, C] = Ee(!1), [S, E] = Ee(null), [k, R] = Ee(null), I = Ve(null), N = Ve(null), M = Ve(!1), P = Ve(!1), F = Ut(), V = Ut(), _ = Ut(), D = a !== void 0, $ = S ?? k;
|
|
15497
15497
|
function A(G) {
|
|
15498
15498
|
N.current = G, typeof p == "function" ? p(G) : p && (p.current = G);
|
|
15499
15499
|
}
|
|
15500
|
-
|
|
15500
|
+
Qe(() => {
|
|
15501
15501
|
if (g) {
|
|
15502
15502
|
const G = I.current;
|
|
15503
15503
|
if (!G) return;
|
|
@@ -15683,7 +15683,7 @@ process.env.NODE_ENV !== "production" && (ym.displayName = "DialogRootContext");
|
|
|
15683
15683
|
function Eo(e) {
|
|
15684
15684
|
const t = b.useContext(ym);
|
|
15685
15685
|
if (!e && t === void 0)
|
|
15686
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." :
|
|
15686
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : Ze(27));
|
|
15687
15687
|
return t;
|
|
15688
15688
|
}
|
|
15689
15689
|
const sa = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -15763,7 +15763,7 @@ process.env.NODE_ENV !== "production" && (wm.displayName = "DialogPortalContext"
|
|
|
15763
15763
|
function OO() {
|
|
15764
15764
|
const e = b.useContext(wm);
|
|
15765
15765
|
if (e === void 0)
|
|
15766
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." :
|
|
15766
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : Ze(26));
|
|
15767
15767
|
return e;
|
|
15768
15768
|
}
|
|
15769
15769
|
const AO = {
|
|
@@ -16037,7 +16037,7 @@ const au = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
16037
16037
|
...m
|
|
16038
16038
|
} = t, d = Eo(!0), h = qc(u) ?? d;
|
|
16039
16039
|
if (!h)
|
|
16040
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." :
|
|
16040
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : Ze(79));
|
|
16041
16041
|
const g = vt(l), x = h.useState("floatingRootContext"), y = h.useState("isOpenedByTrigger", g), w = h.useState("triggerPopupId", g), v = b.useRef(null), {
|
|
16042
16042
|
registerTrigger: C,
|
|
16043
16043
|
isMountedByThisTrigger: S
|
|
@@ -16378,7 +16378,7 @@ process.env.NODE_ENV !== "production" && (Sm.displayName = "ScrollAreaRootContex
|
|
|
16378
16378
|
function cu() {
|
|
16379
16379
|
const e = b.useContext(Sm);
|
|
16380
16380
|
if (e === void 0)
|
|
16381
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>." :
|
|
16381
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaRootContext is missing. ScrollArea parts must be placed within <ScrollArea.Root>." : Ze(53));
|
|
16382
16382
|
return e;
|
|
16383
16383
|
}
|
|
16384
16384
|
const GO = 500, Cf = 16;
|
|
@@ -16486,7 +16486,7 @@ const WO = {
|
|
|
16486
16486
|
const ae = J.current === "vertical", ve = ae ? j.current : K.current, Re = ae ? H.current : L.current;
|
|
16487
16487
|
if (!ve || !Re)
|
|
16488
16488
|
return;
|
|
16489
|
-
const
|
|
16489
|
+
const ze = ae ? "y" : "x", Te = ro(Re, "padding", ze), Ne = ro(ve, "margin", ze), ke = ae ? ve.offsetHeight : ve.offsetWidth, Be = (ae ? Re.offsetHeight : Re.offsetWidth) - ke - Te - Ne, _e = ae ? he.clientY - G.current : he.clientX - Y.current, Se = Be <= 0 ? 0 : _e / Be, Oe = ae ? ie.scrollHeight : ie.scrollWidth, Ge = ae ? ie.clientHeight : ie.clientWidth, je = (ae ? q.current : ee.current) + Se * (Oe - Ge);
|
|
16490
16490
|
ae ? ie.scrollTop = je : ie.scrollLeft = je, he.preventDefault(), te(ae);
|
|
16491
16491
|
});
|
|
16492
16492
|
function le(he) {
|
|
@@ -16586,7 +16586,7 @@ process.env.NODE_ENV !== "production" && (Em.displayName = "ScrollAreaViewportCo
|
|
|
16586
16586
|
function XO() {
|
|
16587
16587
|
const e = b.useContext(Em);
|
|
16588
16588
|
if (e === void 0)
|
|
16589
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaViewportContext missing. ScrollAreaViewport parts must be placed within <ScrollArea.Viewport>." :
|
|
16589
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaViewportContext missing. ScrollAreaViewport parts must be placed within <ScrollArea.Viewport>." : Ze(55));
|
|
16590
16590
|
return e;
|
|
16591
16591
|
}
|
|
16592
16592
|
function At(e, t = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) {
|
|
@@ -16658,12 +16658,12 @@ const r1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
16658
16658
|
const Q = ce ? 0 : Sf(ee, le), X = ce ? 0 : le - Q, re = me ? 0 : q, he = ce ? 0 : Y;
|
|
16659
16659
|
let ie = 0, ae = 0;
|
|
16660
16660
|
!me && !ce && (ie = H?.offsetWidth || 0, ae = L?.offsetHeight || 0);
|
|
16661
|
-
const ve = p.width === 0 && p.height === 0, Re = ve ? ie : 0,
|
|
16661
|
+
const ve = p.width === 0 && p.height === 0, Re = ve ? ie : 0, ze = ve ? ae : 0, Te = ro(L, "padding", "x"), Ne = ro(H, "padding", "y"), ke = ro(K, "margin", "x"), Xe = ro(j, "margin", "y"), Be = re - Te - ke, _e = he - Ne - Xe, Se = L ? Math.min(L.offsetWidth - Re, Be) : Be, Oe = H ? Math.min(H.offsetHeight - ze, _e) : _e, Ge = Math.max(Cf, Se * pe), tt = Math.max(Cf, Oe * se);
|
|
16662
16662
|
if (g((Ae) => Qa(Ae, {
|
|
16663
16663
|
width: Ge,
|
|
16664
16664
|
height: tt
|
|
16665
16665
|
})), H && j) {
|
|
16666
|
-
const Ae = H.offsetHeight - tt - Ne -
|
|
16666
|
+
const Ae = H.offsetHeight - tt - Ne - Xe, gt = Ix(j, "--scroll-area-thumb-height", ee, le, z, tt, Ae);
|
|
16667
16667
|
j.style.transform = `translate3d(0,${gt}px,0)`;
|
|
16668
16668
|
}
|
|
16669
16669
|
if (L && K) {
|
|
@@ -16779,7 +16779,7 @@ process.env.NODE_ENV !== "production" && (km.displayName = "ScrollAreaScrollbarC
|
|
|
16779
16779
|
function JO() {
|
|
16780
16780
|
const e = b.useContext(km);
|
|
16781
16781
|
if (e === void 0)
|
|
16782
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>." :
|
|
16782
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ScrollAreaScrollbarContext is missing. ScrollAreaScrollbar parts must be placed within <ScrollArea.Scrollbar>." : Ze(54));
|
|
16783
16783
|
return e;
|
|
16784
16784
|
}
|
|
16785
16785
|
const Rf = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -17006,7 +17006,7 @@ process.env.NODE_ENV !== "production" && (du.displayName = "CollapsibleRootConte
|
|
|
17006
17006
|
function fu() {
|
|
17007
17007
|
const e = b.useContext(du);
|
|
17008
17008
|
if (e === void 0)
|
|
17009
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." :
|
|
17009
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>." : Ze(15));
|
|
17010
17010
|
return e;
|
|
17011
17011
|
}
|
|
17012
17012
|
let Nm = (function(e) {
|
|
@@ -17890,7 +17890,7 @@ process.env.NODE_ENV !== "production" && (Om.displayName = "CheckboxRootContext"
|
|
|
17890
17890
|
function dA() {
|
|
17891
17891
|
const e = b.useContext(Om);
|
|
17892
17892
|
if (e === void 0)
|
|
17893
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." :
|
|
17893
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>." : Ze(14));
|
|
17894
17894
|
return e;
|
|
17895
17895
|
}
|
|
17896
17896
|
const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -17963,10 +17963,10 @@ const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
17963
17963
|
!le.current || H === pt || (le.current = !1, H(Se, void 0));
|
|
17964
17964
|
};
|
|
17965
17965
|
}, [H, oe]), Wr(se, q, X, void 0, !j && !z, d);
|
|
17966
|
-
const ae = b.useRef(null), ve = Q.registerInput, Re = j ? Y : void 0,
|
|
17966
|
+
const ae = b.useRef(null), ve = Q.registerInput, Re = j ? Y : void 0, ze = b.useCallback((Se) => ve(Se, {
|
|
17967
17967
|
controlRef: se,
|
|
17968
17968
|
value: Re
|
|
17969
|
-
}), [ve, Re]), Te = un(m, ae, h ? void 0 :
|
|
17969
|
+
}), [ve, Re]), Te = un(m, ae, h ? void 0 : ze), Ne = ou(i, U, ae, !C, J ?? void 0);
|
|
17970
17970
|
be(() => {
|
|
17971
17971
|
ae.current && (ae.current.indeterminate = ie, X && M(!0));
|
|
17972
17972
|
}, [X, ie, M]), Wn(X, () => {
|
|
@@ -18024,15 +18024,15 @@ const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
18024
18024
|
Se.delete(Y);
|
|
18025
18025
|
};
|
|
18026
18026
|
}, [K, z, Y]);
|
|
18027
|
-
const
|
|
18027
|
+
const Xe = b.useMemo(() => ({
|
|
18028
18028
|
...V,
|
|
18029
18029
|
checked: he,
|
|
18030
18030
|
disabled: z,
|
|
18031
18031
|
readOnly: g,
|
|
18032
18032
|
required: y,
|
|
18033
18033
|
indeterminate: ie
|
|
18034
|
-
}), [V, he, z, g, y, ie]),
|
|
18035
|
-
state:
|
|
18034
|
+
}), [V, he, z, g, y, ie]), Be = h1(Xe), _e = ye("span", t, {
|
|
18035
|
+
state: Xe,
|
|
18036
18036
|
ref: [xe, se, n],
|
|
18037
18037
|
props: [{
|
|
18038
18038
|
id: C ? J ?? void 0 : q,
|
|
@@ -18070,10 +18070,10 @@ const fA = "data-parent", b1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
18070
18070
|
Oe && zo(Oe, Se);
|
|
18071
18071
|
}
|
|
18072
18072
|
}, E, me, fe, L, (Se) => Q.getValidationProps(z, Se)],
|
|
18073
|
-
stateAttributesMapping:
|
|
18073
|
+
stateAttributesMapping: Be
|
|
18074
18074
|
});
|
|
18075
18075
|
return /* @__PURE__ */ T(Om.Provider, {
|
|
18076
|
-
value:
|
|
18076
|
+
value: Xe,
|
|
18077
18077
|
children: [_e, !X && !j && G && !h && w !== void 0 && /* @__PURE__ */ f("input", {
|
|
18078
18078
|
type: "hidden",
|
|
18079
18079
|
form: l,
|
|
@@ -18126,7 +18126,7 @@ process.env.NODE_ENV !== "production" && (Am.displayName = "SwitchRootContext");
|
|
|
18126
18126
|
function pA() {
|
|
18127
18127
|
const e = b.useContext(Am);
|
|
18128
18128
|
if (e === void 0)
|
|
18129
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." :
|
|
18129
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SwitchRootContext is missing. Switch parts must be placed within <Switch.Root>." : Ze(63));
|
|
18130
18130
|
return e;
|
|
18131
18131
|
}
|
|
18132
18132
|
const y1 = {
|
|
@@ -18428,7 +18428,7 @@ process.env.NODE_ENV !== "production" && (Fm.displayName = "RadioRootContext");
|
|
|
18428
18428
|
function gA() {
|
|
18429
18429
|
const e = b.useContext(Fm);
|
|
18430
18430
|
if (e === void 0)
|
|
18431
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." :
|
|
18431
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : Ze(52));
|
|
18432
18432
|
return e;
|
|
18433
18433
|
}
|
|
18434
18434
|
const S1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -19301,7 +19301,7 @@ process.env.NODE_ENV !== "production" && (Lm.displayName = "ToastContext");
|
|
|
19301
19301
|
function mu() {
|
|
19302
19302
|
const e = b.useContext(Lm);
|
|
19303
19303
|
if (!e)
|
|
19304
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: useToastManager must be used within <Toast.Provider>." :
|
|
19304
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: useToastManager must be used within <Toast.Provider>." : Ze(73));
|
|
19305
19305
|
return e;
|
|
19306
19306
|
}
|
|
19307
19307
|
let Ox = 0;
|
|
@@ -19736,7 +19736,7 @@ process.env.NODE_ENV !== "production" && (zm.displayName = "ToastRootContext");
|
|
|
19736
19736
|
function Bm() {
|
|
19737
19737
|
const e = b.useContext(zm);
|
|
19738
19738
|
if (!e)
|
|
19739
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>." :
|
|
19739
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>." : Ze(66));
|
|
19740
19740
|
return e;
|
|
19741
19741
|
}
|
|
19742
19742
|
function AA(e, t = !1) {
|
|
@@ -19927,7 +19927,7 @@ const _A = {
|
|
|
19927
19927
|
x: re,
|
|
19928
19928
|
y: O.current.y
|
|
19929
19929
|
});
|
|
19930
|
-
const ae = re - _.current.x, ve = X - _.current.y, Re = X - O.current.y,
|
|
19930
|
+
const ae = re - _.current.x, ve = X - _.current.y, Re = X - O.current.y, ze = re - O.current.x;
|
|
19931
19931
|
let Te = M;
|
|
19932
19932
|
if (!y && Math.sqrt(ae * ae + ve * ve) >= FA) {
|
|
19933
19933
|
w(!0);
|
|
@@ -19941,15 +19941,15 @@ const _A = {
|
|
|
19941
19941
|
if (!$.current)
|
|
19942
19942
|
Te === "vertical" ? ve > 0 ? Ne = "down" : ve < 0 && (Ne = "up") : Te === "horizontal" ? ae > 0 ? Ne = "right" : ae < 0 && (Ne = "left") : Math.abs(ae) >= Math.abs(ve) ? Ne = ae > 0 ? "right" : "left" : Ne = ve > 0 ? "down" : "up", Ne && u.includes(Ne) && ($.current = Ne, A.current = Cd(Ne, ae, ve), h(Ne));
|
|
19943
19943
|
else {
|
|
19944
|
-
const Oe = $.current, Ge = Cd(Oe,
|
|
19944
|
+
const Oe = $.current, Ge = Cd(Oe, ze, Re);
|
|
19945
19945
|
Ge > Ax ? (U.current = !1, h(Oe)) : !(u.includes("left") && u.includes("right")) && !(u.includes("up") && u.includes("down")) && A.current - Ge >= VA && (U.current = !0);
|
|
19946
19946
|
}
|
|
19947
19947
|
const ke = Z(ae, ve);
|
|
19948
|
-
let
|
|
19948
|
+
let Xe = D.current.x, Be = D.current.y;
|
|
19949
19949
|
const _e = u.includes("left") || u.includes("right"), Se = u.includes("up") || u.includes("down");
|
|
19950
|
-
Te !== "vertical" && _e && (
|
|
19951
|
-
x:
|
|
19952
|
-
y:
|
|
19950
|
+
Te !== "vertical" && _e && (Xe += ke.x), Te !== "horizontal" && Se && (Be += ke.y), J({
|
|
19951
|
+
x: Xe,
|
|
19952
|
+
y: Be
|
|
19953
19953
|
});
|
|
19954
19954
|
}
|
|
19955
19955
|
function me(Q) {
|
|
@@ -20350,7 +20350,7 @@ process.env.NODE_ENV !== "production" && (Hm.displayName = "MenuPositionerContex
|
|
|
20350
20350
|
function hu(e) {
|
|
20351
20351
|
const t = b.useContext(Hm);
|
|
20352
20352
|
if (t === void 0 && !e)
|
|
20353
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>." :
|
|
20353
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>." : Ze(33));
|
|
20354
20354
|
return t;
|
|
20355
20355
|
}
|
|
20356
20356
|
const Um = /* @__PURE__ */ b.createContext(void 0);
|
|
@@ -20358,7 +20358,7 @@ process.env.NODE_ENV !== "production" && (Um.displayName = "MenuRootContext");
|
|
|
20358
20358
|
function qr(e) {
|
|
20359
20359
|
const t = b.useContext(Um);
|
|
20360
20360
|
if (t === void 0 && !e)
|
|
20361
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>." :
|
|
20361
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>." : Ze(36));
|
|
20362
20362
|
return t;
|
|
20363
20363
|
}
|
|
20364
20364
|
const B1 = /* @__PURE__ */ b.createContext(void 0);
|
|
@@ -20366,7 +20366,7 @@ process.env.NODE_ENV !== "production" && (B1.displayName = "ContextMenuRootConte
|
|
|
20366
20366
|
function Gm(e = !0) {
|
|
20367
20367
|
const t = b.useContext(B1);
|
|
20368
20368
|
if (t === void 0 && !e)
|
|
20369
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>." :
|
|
20369
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>." : Ze(25));
|
|
20370
20370
|
return t;
|
|
20371
20371
|
}
|
|
20372
20372
|
function zA(e) {
|
|
@@ -20471,7 +20471,7 @@ process.env.NODE_ENV !== "production" && (gu.displayName = "MenuGroupContext");
|
|
|
20471
20471
|
function BA() {
|
|
20472
20472
|
const e = b.useContext(gu);
|
|
20473
20473
|
if (e === void 0)
|
|
20474
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>." :
|
|
20474
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuGroupContext is missing. Menu group parts must be used within <Menu.Group> or <Menu.RadioGroup>." : Ze(31));
|
|
20475
20475
|
return e;
|
|
20476
20476
|
}
|
|
20477
20477
|
const G1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -20624,7 +20624,7 @@ process.env.NODE_ENV !== "production" && (Km.displayName = "MenuPortalContext");
|
|
|
20624
20624
|
function HA() {
|
|
20625
20625
|
const e = b.useContext(Km);
|
|
20626
20626
|
if (e === void 0)
|
|
20627
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Portal> is missing." :
|
|
20627
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Portal> is missing." : Ze(32));
|
|
20628
20628
|
return e;
|
|
20629
20629
|
}
|
|
20630
20630
|
const qm = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -20789,7 +20789,7 @@ process.env.NODE_ENV !== "production" && (Xm.displayName = "MenuRadioGroupContex
|
|
|
20789
20789
|
function UA() {
|
|
20790
20790
|
const e = b.useContext(Xm);
|
|
20791
20791
|
if (e === void 0)
|
|
20792
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>." :
|
|
20792
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioGroupContext is missing. MenuRadioGroup parts must be placed within <Menu.RadioGroup>." : Ze(34));
|
|
20793
20793
|
return e;
|
|
20794
20794
|
}
|
|
20795
20795
|
const K1 = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -20839,7 +20839,7 @@ process.env.NODE_ENV !== "production" && (Zm.displayName = "MenuRadioItemContext
|
|
|
20839
20839
|
function GA() {
|
|
20840
20840
|
const e = b.useContext(Zm);
|
|
20841
20841
|
if (e === void 0)
|
|
20842
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>." :
|
|
20842
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRadioItemContext is missing. MenuRadioItem parts must be placed within <Menu.RadioItem>." : Ze(35));
|
|
20843
20843
|
return e;
|
|
20844
20844
|
}
|
|
20845
20845
|
const q1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -21131,7 +21131,7 @@ const Jm = Kp(function(t) {
|
|
|
21131
21131
|
const Re = ve.reason;
|
|
21132
21132
|
if (!ae && !E.select("open") || P === ae && ve.trigger === F && $ === Re)
|
|
21133
21133
|
return;
|
|
21134
|
-
const
|
|
21134
|
+
const ze = Yp(ve);
|
|
21135
21135
|
if (!ae && ve.trigger == null && (ve.trigger = F ?? void 0), o?.(ae, ve), ve.isCanceled)
|
|
21136
21136
|
return;
|
|
21137
21137
|
E.state.floatingRootContext.dispatchOpenChange(ae, ve);
|
|
@@ -21141,11 +21141,11 @@ const Jm = Kp(function(t) {
|
|
|
21141
21141
|
ae && Re === ws ? (B.current = !1, z.start(300, () => {
|
|
21142
21142
|
B.current = !0;
|
|
21143
21143
|
})) : (B.current = !0, z.clear());
|
|
21144
|
-
const Ne = (Re === Cr || Re === Lo) && Te.detail === 0, ke = !ae && (Re === Jo || Re == null),
|
|
21144
|
+
const Ne = (Re === Cr || Re === Lo) && Te.detail === 0, ke = !ae && (Re === Jo || Re == null), Xe = {
|
|
21145
21145
|
open: ae,
|
|
21146
21146
|
openChangeReason: Re
|
|
21147
21147
|
};
|
|
21148
|
-
L.current = ve.event, Bc(
|
|
21148
|
+
L.current = ve.event, Bc(Xe, ae, ve.trigger, ze()), E.update(Xe), A.type === "menubar" && (Re === ws || Re === Br || Re === Lt || Re === Os || Re === yi) ? E.set("instantType", "group") : Ne || ke ? E.set("instantType", Ne ? "click" : "dismiss") : E.set("instantType", void 0);
|
|
21149
21149
|
}), Z = Qw({
|
|
21150
21150
|
popupStore: E,
|
|
21151
21151
|
floatingId: R,
|
|
@@ -21334,7 +21334,7 @@ const eC = Yw(function(t, n) {
|
|
|
21334
21334
|
...h
|
|
21335
21335
|
} = t, g = qr(!0), y = qc(d) ?? g?.store;
|
|
21336
21336
|
if (!y)
|
|
21337
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." :
|
|
21337
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : Ze(85));
|
|
21338
21338
|
const w = vt(l), v = y.useState("isTriggerActive", w), C = y.useState("floatingRootContext"), S = y.useState("isOpenedByTrigger", w), E = y.useState("triggerPopupId", w), k = b.useRef(null), R = eD(), I = Qc(!0), N = So(), M = b.useMemo(() => N ?? new zp(), [N]), P = Up(M), F = Co(), {
|
|
21339
21339
|
registerTrigger: V,
|
|
21340
21340
|
isMountedByThisTrigger: _
|
|
@@ -21485,7 +21485,7 @@ const tD = {
|
|
|
21485
21485
|
...p
|
|
21486
21486
|
} = t, h = Q1();
|
|
21487
21487
|
if (!h?.parentMenu)
|
|
21488
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>." :
|
|
21488
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.SubmenuTrigger> must be placed in <Menu.SubmenuRoot>." : Ze(37));
|
|
21489
21489
|
const g = cr({
|
|
21490
21490
|
guess: !0,
|
|
21491
21491
|
label: i
|
|
@@ -21635,20 +21635,24 @@ function bu({
|
|
|
21635
21635
|
}
|
|
21636
21636
|
function $r({
|
|
21637
21637
|
className: e,
|
|
21638
|
-
|
|
21639
|
-
|
|
21640
|
-
|
|
21641
|
-
|
|
21642
|
-
|
|
21638
|
+
icon: t,
|
|
21639
|
+
selected: n,
|
|
21640
|
+
tone: r = "neutral",
|
|
21641
|
+
children: o,
|
|
21642
|
+
ref: s,
|
|
21643
|
+
...i
|
|
21643
21644
|
}) {
|
|
21644
|
-
return /* @__PURE__ */
|
|
21645
|
+
return /* @__PURE__ */ T(
|
|
21645
21646
|
W1,
|
|
21646
21647
|
{
|
|
21647
|
-
ref:
|
|
21648
|
-
"data-selected":
|
|
21649
|
-
className: W(th,
|
|
21650
|
-
...
|
|
21651
|
-
children:
|
|
21648
|
+
ref: s,
|
|
21649
|
+
"data-selected": n || void 0,
|
|
21650
|
+
className: W(th, r === "danger" && rD, n && nD, e),
|
|
21651
|
+
...i,
|
|
21652
|
+
children: [
|
|
21653
|
+
t && /* @__PURE__ */ f("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: t }),
|
|
21654
|
+
o
|
|
21655
|
+
]
|
|
21652
21656
|
}
|
|
21653
21657
|
);
|
|
21654
21658
|
}
|
|
@@ -21747,7 +21751,7 @@ process.env.NODE_ENV !== "production" && (rh.displayName = "SliderRootContext");
|
|
|
21747
21751
|
function fa() {
|
|
21748
21752
|
const e = b.useContext(rh);
|
|
21749
21753
|
if (e === void 0)
|
|
21750
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>." :
|
|
21754
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SliderRootContext is missing. Slider parts must be placed within <Slider.Root>." : Ze(62));
|
|
21751
21755
|
return e;
|
|
21752
21756
|
}
|
|
21753
21757
|
function sD(e, t) {
|
|
@@ -21798,12 +21802,12 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
21798
21802
|
se(_e), _e !== -1 && le(_e);
|
|
21799
21803
|
}), ae = de((_e) => {
|
|
21800
21804
|
_e && (J.current = _e);
|
|
21801
|
-
}), ve = Array.isArray(Y), Re = b.useMemo(() => ve ? Y.map((_e) => At(_e, p, d)).sort(oC) : [At(Y, p, d)], [d, p, ve, Y]),
|
|
21802
|
-
Wr(H.inputRef, N,
|
|
21803
|
-
V(G), H.change(
|
|
21805
|
+
}), ve = Array.isArray(Y), Re = b.useMemo(() => ve ? Y.map((_e) => At(_e, p, d)).sort(oC) : [At(Y, p, d)], [d, p, ve, Y]), ze = ve ? Re : Re[0];
|
|
21806
|
+
Wr(H.inputRef, N, ze, void 0, !z, x), Wn(ze, () => {
|
|
21807
|
+
V(G), H.change(ze);
|
|
21804
21808
|
const _e = O.initialValue;
|
|
21805
21809
|
let Se;
|
|
21806
|
-
Array.isArray(
|
|
21810
|
+
Array.isArray(ze) && Array.isArray(_e) ? Se = !xu(ze, _e) : Se = ze !== _e, U(Se);
|
|
21807
21811
|
});
|
|
21808
21812
|
const Te = de((_e, Se) => {
|
|
21809
21813
|
if (Number.isNaN(_e) || sD(_e, Y))
|
|
@@ -21842,7 +21846,7 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
21842
21846
|
minStepsBetweenValues: h,
|
|
21843
21847
|
step: C,
|
|
21844
21848
|
values: Re
|
|
21845
|
-
}), [_, pe, z, fe, d, p, h, v, C, Re]),
|
|
21849
|
+
}), [_, pe, z, fe, d, p, h, v, C, Re]), Xe = b.useMemo(() => ({
|
|
21846
21850
|
active: pe,
|
|
21847
21851
|
controlRef: J,
|
|
21848
21852
|
disabled: z,
|
|
@@ -21881,7 +21885,7 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
21881
21885
|
thumbMap: Q,
|
|
21882
21886
|
thumbRefs: Z,
|
|
21883
21887
|
values: Re
|
|
21884
|
-
}), [pe, B, M, z, fe, H, l, Ne, re, c, oe, g, u, d, p, h, G, F, v, ae, ie, Te, ke, C, S, E, Q, Re]),
|
|
21888
|
+
}), [pe, B, M, z, fe, H, l, Ne, re, c, oe, g, u, d, p, h, G, F, v, ae, ie, Te, ke, C, S, E, Q, Re]), Be = ye("div", t, {
|
|
21885
21889
|
state: ke,
|
|
21886
21890
|
ref: [n, ee],
|
|
21887
21891
|
props: [{
|
|
@@ -21892,11 +21896,11 @@ const aC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
21892
21896
|
stateAttributesMapping: Xs
|
|
21893
21897
|
});
|
|
21894
21898
|
return /* @__PURE__ */ f(rh.Provider, {
|
|
21895
|
-
value:
|
|
21899
|
+
value: Xe,
|
|
21896
21900
|
children: /* @__PURE__ */ f(Kr, {
|
|
21897
21901
|
elementsRef: Z,
|
|
21898
21902
|
onMapChange: X,
|
|
21899
|
-
children:
|
|
21903
|
+
children: Be
|
|
21900
21904
|
})
|
|
21901
21905
|
});
|
|
21902
21906
|
});
|
|
@@ -22133,7 +22137,7 @@ const dC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22133
22137
|
bottom: Q,
|
|
22134
22138
|
left: X,
|
|
22135
22139
|
right: re
|
|
22136
|
-
} = oe.getBoundingClientRect(), he = lD($.current, _), ie = H.current, ae = (_ ? xe : fe) - he.start - he.end - ie * 2, ve = x.current ?? 0, Re = se.x - ve,
|
|
22140
|
+
} = oe.getBoundingClientRect(), he = lD($.current, _), ie = H.current, ae = (_ ? xe : fe) - he.start - he.end - ie * 2, ve = x.current ?? 0, Re = se.x - ve, ze = se.y - ve, Te = _ ? Q - ze - he.end : (F === "rtl" ? re - Re : Re - X) - he.start, Ne = At((Te - ie) / ae, 0, 1);
|
|
22137
22141
|
let ke = (m - d) * Ne + d;
|
|
22138
22142
|
return ke = uC(ke, I, d), ke = At(ke, d, m), V ? iD(N, P, j.current, w.current, le, ke, d, m, I, p) : {
|
|
22139
22143
|
value: ke,
|
|
@@ -22405,21 +22409,21 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22405
22409
|
inputId: ae
|
|
22406
22410
|
}), [ae]), {
|
|
22407
22411
|
ref: Re,
|
|
22408
|
-
index:
|
|
22412
|
+
index: ze
|
|
22409
22413
|
} = cr({
|
|
22410
22414
|
metadata: ve
|
|
22411
|
-
}), Te = ce ? h ??
|
|
22415
|
+
}), Te = ce ? h ?? ze : 0, Ne = Te === Z.length - 1, ke = Z[Te], Xe = Fi(ke, U, A), [Be, _e] = b.useState(), Se = sh(), Oe = R >= 0 && R < Z.length ? R : -1, Ge = de(() => {
|
|
22412
22416
|
const Pe = I.current, St = fe.current;
|
|
22413
22417
|
if (!Pe || !St)
|
|
22414
22418
|
return;
|
|
22415
|
-
const Rt = St.getBoundingClientRect(),
|
|
22419
|
+
const Rt = St.getBoundingClientRect(), We = Pe.getBoundingClientRect(), bt = me ? "height" : "width", $t = We[bt] - Rt[bt], mn = (Rt[bt] / 2 + $t * Xe / 100) / We[bt] * 100, Gt = Number.isFinite(mn) ? mn : void 0;
|
|
22416
22420
|
_e(Gt), Te === 0 ? Y((tn) => [Gt, tn[1]]) : Ne && Y((tn) => [tn[0], Gt]);
|
|
22417
22421
|
});
|
|
22418
22422
|
be(() => {
|
|
22419
22423
|
V && queueMicrotask(Ge);
|
|
22420
22424
|
}, [Ge, V]), be(() => {
|
|
22421
22425
|
V && Ge();
|
|
22422
|
-
}, [Ge, V,
|
|
22426
|
+
}, [Ge, V, Xe]), be(() => {
|
|
22423
22427
|
if (!V)
|
|
22424
22428
|
return;
|
|
22425
22429
|
const Pe = I.current, St = fe.current;
|
|
@@ -22428,24 +22432,24 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22428
22432
|
const Rt = ft(Pe).ResizeObserver;
|
|
22429
22433
|
if (typeof Rt != "function")
|
|
22430
22434
|
return;
|
|
22431
|
-
const
|
|
22432
|
-
return
|
|
22433
|
-
|
|
22435
|
+
const We = new Rt(Ge);
|
|
22436
|
+
return We.observe(Pe), We.observe(St), () => {
|
|
22437
|
+
We.disconnect();
|
|
22434
22438
|
};
|
|
22435
22439
|
}, [I, Ge, V]);
|
|
22436
22440
|
const tt = me ? "bottom" : "insetInlineStart", je = me ? "left" : "top";
|
|
22437
22441
|
let et;
|
|
22438
22442
|
ce ? k === Te ? et = 2 : Oe === Te && (et = 1) : k === Te && (et = 1);
|
|
22439
22443
|
let Ae;
|
|
22440
|
-
!V && !Number.isFinite(
|
|
22444
|
+
!V && !Number.isFinite(Xe) ? Ae = Vn : Ae = {
|
|
22441
22445
|
position: "absolute",
|
|
22442
|
-
[tt]: V ? "var(--position)" : `${
|
|
22446
|
+
[tt]: V ? "var(--position)" : `${Xe}%`,
|
|
22443
22447
|
[je]: "50%",
|
|
22444
22448
|
translate: `${(me || !pe ? -1 : 1) * 50}% ${(me ? 1 : -1) * 50}%`,
|
|
22445
22449
|
zIndex: et,
|
|
22446
22450
|
...V && {
|
|
22447
|
-
"--position": `${
|
|
22448
|
-
visibility: z && Se ||
|
|
22451
|
+
"--position": `${Be ?? 0}%`,
|
|
22452
|
+
visibility: z && Se || Be === void 0 ? "hidden" : void 0
|
|
22449
22453
|
}
|
|
22450
22454
|
};
|
|
22451
22455
|
let gt;
|
|
@@ -22481,7 +22485,7 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22481
22485
|
if (Pe.defaultPrevented || !pD.has(Pe.key))
|
|
22482
22486
|
return;
|
|
22483
22487
|
ss.has(Pe.key) && Pe.stopPropagation();
|
|
22484
|
-
let St = null, Rt = 0,
|
|
22488
|
+
let St = null, Rt = 0, We = Pe.shiftKey ? D : ee;
|
|
22485
22489
|
const bt = uC(ke, ee, U);
|
|
22486
22490
|
switch (Pe.key) {
|
|
22487
22491
|
case jl:
|
|
@@ -22497,10 +22501,10 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22497
22501
|
Rt = pe ? 1 : -1;
|
|
22498
22502
|
break;
|
|
22499
22503
|
case h0:
|
|
22500
|
-
|
|
22504
|
+
We = D, Rt = 1;
|
|
22501
22505
|
break;
|
|
22502
22506
|
case g0:
|
|
22503
|
-
|
|
22507
|
+
We = D, Rt = -1;
|
|
22504
22508
|
break;
|
|
22505
22509
|
case Xl:
|
|
22506
22510
|
St = ce && Number.isFinite(Z[Te + 1]) ? Z[Te + 1] - ee * O : A;
|
|
@@ -22509,7 +22513,7 @@ const hC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22509
22513
|
St = ce && Number.isFinite(Z[Te - 1]) ? Z[Te - 1] + ee * O : U;
|
|
22510
22514
|
break;
|
|
22511
22515
|
}
|
|
22512
|
-
if (Rt !== 0 && (St = hD(bt,
|
|
22516
|
+
if (Rt !== 0 && (St = hD(bt, We, Rt, U, A)), St !== null) {
|
|
22513
22517
|
const $t = Pe.currentTarget;
|
|
22514
22518
|
Ti($t) || (Q.current = !0, $t.blur(), $t.focus({
|
|
22515
22519
|
preventScroll: !0,
|
|
@@ -22676,7 +22680,7 @@ function bC({
|
|
|
22676
22680
|
}) {
|
|
22677
22681
|
const w = bD({ size: p, tone: h, disabled: g }), [v, C] = Ee(
|
|
22678
22682
|
e ?? t ?? o
|
|
22679
|
-
), S = e ?? v, E = Array.isArray(S) ? S : [S], k =
|
|
22683
|
+
), S = e ?? v, E = Array.isArray(S) ? S : [S], k = Ke(() => {
|
|
22680
22684
|
if (Array.isArray(m)) return m;
|
|
22681
22685
|
if (!m) return [];
|
|
22682
22686
|
const I = Math.floor((s - o) / i);
|
|
@@ -22795,7 +22799,7 @@ function yu({
|
|
|
22795
22799
|
const a = window.localStorage.getItem(t);
|
|
22796
22800
|
return n.includes(a ?? "") ? a : r();
|
|
22797
22801
|
});
|
|
22798
|
-
|
|
22802
|
+
Qe(() => {
|
|
22799
22803
|
yD(e, o), window.localStorage.setItem(t, o);
|
|
22800
22804
|
}, [e, t, o]);
|
|
22801
22805
|
const i = De(() => {
|
|
@@ -23002,8 +23006,8 @@ function s6({
|
|
|
23002
23006
|
children: c,
|
|
23003
23007
|
className: u
|
|
23004
23008
|
}) {
|
|
23005
|
-
const m = s === "main" ? "main" : "div", d = a === "content", [p, h] = Ee(!1), g =
|
|
23006
|
-
|
|
23009
|
+
const m = s === "main" ? "main" : "div", d = a === "content", [p, h] = Ee(!1), g = Ve(null);
|
|
23010
|
+
Qe(() => {
|
|
23007
23011
|
l !== void 0 && g.current?.scrollTo({ top: 0, behavior: "instant" });
|
|
23008
23012
|
}, [l]);
|
|
23009
23013
|
const [x, y] = Ee(!1), w = /* @__PURE__ */ f(
|
|
@@ -23234,7 +23238,7 @@ process.env.NODE_ENV !== "production" && (ih.displayName = "ProgressRootContext"
|
|
|
23234
23238
|
function ah() {
|
|
23235
23239
|
const e = b.useContext(ih);
|
|
23236
23240
|
if (e === void 0)
|
|
23237
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ProgressRootContext is missing. Progress parts must be placed within <Progress.Root>." :
|
|
23241
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ProgressRootContext is missing. Progress parts must be placed within <Progress.Root>." : Ze(51));
|
|
23238
23242
|
return e;
|
|
23239
23243
|
}
|
|
23240
23244
|
const vu = {
|
|
@@ -23366,7 +23370,7 @@ process.env.NODE_ENV !== "production" && (lh.displayName = "MeterRootContext");
|
|
|
23366
23370
|
function CC() {
|
|
23367
23371
|
const e = b.useContext(lh);
|
|
23368
23372
|
if (e === void 0)
|
|
23369
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>." :
|
|
23373
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MeterRootContext is missing. Meter parts must be placed within <Meter.Root>." : Ze(38));
|
|
23370
23374
|
return e;
|
|
23371
23375
|
}
|
|
23372
23376
|
const SC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -23703,7 +23707,7 @@ function a6({
|
|
|
23703
23707
|
hint: l,
|
|
23704
23708
|
className: c
|
|
23705
23709
|
}) {
|
|
23706
|
-
const u = Ut(), m =
|
|
23710
|
+
const u = Ut(), m = Ve(0), [d, p] = Ee(!1), [h, g] = Ee([]);
|
|
23707
23711
|
function x(y) {
|
|
23708
23712
|
if (!y) return;
|
|
23709
23713
|
const w = Array.from(y), v = s ? w.filter((S) => S.size > s) : [], C = s ? w.filter((S) => S.size <= s) : w;
|
|
@@ -23831,7 +23835,7 @@ function l6({
|
|
|
23831
23835
|
}) {
|
|
23832
23836
|
const u = e ?? null, m = n ? u ?? { from: null, to: null } : null, d = n ? null : u, [p, h] = Ee(
|
|
23833
23837
|
() => rl(d ?? m?.from ?? /* @__PURE__ */ new Date())
|
|
23834
|
-
), [g, x] = Ee(null), y =
|
|
23838
|
+
), [g, x] = Ee(null), y = Ke(() => LD(p), [p]), w = rl(/* @__PURE__ */ new Date()), v = m?.to ?? (m?.from && g ? g : null), [C, S] = m?.from && v && v < m.from ? [v, m.from] : [m?.from ?? null, v];
|
|
23835
23839
|
function E(N) {
|
|
23836
23840
|
return r && N < rl(r) || o && N > rl(o) ? !0 : s?.(N) ?? !1;
|
|
23837
23841
|
}
|
|
@@ -24104,7 +24108,7 @@ function u6({
|
|
|
24104
24108
|
placeholder: r = "Search commands…",
|
|
24105
24109
|
emptyMessage: o = "No matching commands."
|
|
24106
24110
|
}) {
|
|
24107
|
-
const [s, i] = Ee(""), [a, l] = Ee(0), c =
|
|
24111
|
+
const [s, i] = Ee(""), [a, l] = Ee(0), c = Ke(() => {
|
|
24108
24112
|
const p = e.map((h) => ({
|
|
24109
24113
|
item: h,
|
|
24110
24114
|
score: Math.max(
|
|
@@ -24114,13 +24118,13 @@ function u6({
|
|
|
24114
24118
|
})).filter((h) => h.score >= 0);
|
|
24115
24119
|
return p.sort((h, g) => g.score - h.score), p.map((h) => h.item);
|
|
24116
24120
|
}, [e, s]);
|
|
24117
|
-
|
|
24121
|
+
Qe(() => {
|
|
24118
24122
|
t && (i(""), l(0));
|
|
24119
|
-
}, [t]),
|
|
24123
|
+
}, [t]), Qe(() => l(0), [s]);
|
|
24120
24124
|
function u(p) {
|
|
24121
24125
|
p.key === "ArrowDown" ? (p.preventDefault(), l((h) => (h + 1) % Math.max(c.length, 1))) : p.key === "ArrowUp" ? (p.preventDefault(), l((h) => (h - 1 + c.length) % Math.max(c.length, 1))) : p.key === "Enter" && c[a] && (p.preventDefault(), c[a].onSelect(), n(!1));
|
|
24122
24126
|
}
|
|
24123
|
-
const m =
|
|
24127
|
+
const m = Ke(() => {
|
|
24124
24128
|
const p = /* @__PURE__ */ new Map();
|
|
24125
24129
|
for (const h of c) {
|
|
24126
24130
|
const g = h.group ?? "";
|
|
@@ -24241,7 +24245,7 @@ function u6({
|
|
|
24241
24245
|
}
|
|
24242
24246
|
function d6(e = "k") {
|
|
24243
24247
|
const [t, n] = Ee(!1);
|
|
24244
|
-
return
|
|
24248
|
+
return Qe(() => {
|
|
24245
24249
|
function r(o) {
|
|
24246
24250
|
o.key.toLowerCase() === e && (o.metaKey || o.ctrlKey) && (o.preventDefault(), n((s) => !s));
|
|
24247
24251
|
}
|
|
@@ -24253,7 +24257,7 @@ process.env.NODE_ENV !== "production" && (ch.displayName = "NumberFieldRootConte
|
|
|
24253
24257
|
function ha() {
|
|
24254
24258
|
const e = b.useContext(ch);
|
|
24255
24259
|
if (e === void 0)
|
|
24256
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldRootContext is missing. NumberField parts must be placed within <NumberField.Root>." :
|
|
24260
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldRootContext is missing. NumberField parts must be placed within <NumberField.Root>." : Ze(43));
|
|
24257
24261
|
return e;
|
|
24258
24262
|
}
|
|
24259
24263
|
const Zs = {
|
|
@@ -24420,14 +24424,14 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24420
24424
|
const me = Zw(), pe = Nt(S), se = b.useRef(!1), oe = de((Ne, ke) => {
|
|
24421
24425
|
se.current = !1, y?.(Ne, ke);
|
|
24422
24426
|
}), le = b.useRef(!0), fe = b.useRef(null), [xe, Q] = b.useState(() => ir(te, E, S)), [X, re] = b.useState("numeric"), he = de(() => {
|
|
24423
|
-
const Ne = OC(E, S), ke = new Set(t_),
|
|
24424
|
-
ke.add(
|
|
24425
|
-
Oe.type === "integer" || Oe.type === "fraction" || Oe.type === "exponentInteger" || Oe.type === "compact" || (
|
|
24427
|
+
const Ne = OC(E, S), ke = new Set(t_), Xe = (Oe) => Oe.forEach((Ge) => ke.add(Ge)), Be = Ne.find((Oe) => Oe.type === "decimal")?.value ?? uh(E, S).decimal;
|
|
24428
|
+
ke.add(Be), Ne.forEach((Oe) => {
|
|
24429
|
+
Oe.type === "integer" || Oe.type === "fraction" || Oe.type === "exponentInteger" || Oe.type === "compact" || (Xe(Array.from(Oe.value)), n_.test(Oe.value) && ke.add(" "));
|
|
24426
24430
|
});
|
|
24427
24431
|
const _e = Y === "percent" || Y === "unit" && S?.unit === "percent", Se = Y === "percent" || Y === "unit" && S?.unit === "permille";
|
|
24428
|
-
return _e &&
|
|
24432
|
+
return _e && Xe(GD), Se && Xe(jD), Xe(s_), (B < 0 || C) && Xe(i_), ke;
|
|
24429
24433
|
}), ie = de((Ne) => Ne?.altKey ? i : Ne?.shiftKey ? l : L), ae = de((Ne, ke) => {
|
|
24430
|
-
const
|
|
24434
|
+
const Xe = ke.event, Be = ke.direction, _e = ke.reason.startsWith("input-") || ke.reason === Et, Se = !C || !_e, Oe = d_(Ne, Be ? ie(Xe) * Be : void 0, B, z, G, pe.current, v, Xe?.altKey ?? !1, Se), Ge = Oe !== te || _e && (Ne !== te || le.current === !1);
|
|
24431
24435
|
if (Ge) {
|
|
24432
24436
|
if (x?.(Oe, ke), ke.isCanceled)
|
|
24433
24437
|
return !1;
|
|
@@ -24436,11 +24440,11 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24436
24440
|
return fe.current = Oe, le.current && Q(ir(Oe, E, S)), me(), Ge;
|
|
24437
24441
|
}), ve = de((Ne, {
|
|
24438
24442
|
direction: ke,
|
|
24439
|
-
currentValue:
|
|
24440
|
-
event:
|
|
24443
|
+
currentValue: Xe,
|
|
24444
|
+
event: Be,
|
|
24441
24445
|
reason: _e
|
|
24442
24446
|
}) => {
|
|
24443
|
-
const Se =
|
|
24447
|
+
const Se = Xe ?? ce.current, Oe = Be;
|
|
24444
24448
|
return typeof Se != "number" ? ae(0, we(_e, Oe)) : ae(Se + Ne * ke, we(_e, Oe, void 0, {
|
|
24445
24449
|
direction: ke
|
|
24446
24450
|
}));
|
|
@@ -24459,21 +24463,21 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24459
24463
|
const ke = q.current;
|
|
24460
24464
|
if (O || m || !w || !ke)
|
|
24461
24465
|
return;
|
|
24462
|
-
function
|
|
24466
|
+
function Xe(Be) {
|
|
24463
24467
|
if (
|
|
24464
24468
|
// Allow pinch-zooming.
|
|
24465
|
-
|
|
24469
|
+
Be.ctrlKey || Ot(Ye(q.current)) !== q.current
|
|
24466
24470
|
)
|
|
24467
24471
|
return;
|
|
24468
|
-
|
|
24469
|
-
const _e = ie(
|
|
24472
|
+
Be.preventDefault(), le.current = !0;
|
|
24473
|
+
const _e = ie(Be);
|
|
24470
24474
|
ve(_e, {
|
|
24471
|
-
direction:
|
|
24472
|
-
event:
|
|
24475
|
+
direction: Be.deltaY > 0 ? -1 : 1,
|
|
24476
|
+
event: Be,
|
|
24473
24477
|
reason: Eb
|
|
24474
|
-
}) && oe(fe.current, In(Eb,
|
|
24478
|
+
}) && oe(fe.current, In(Eb, Be));
|
|
24475
24479
|
}
|
|
24476
|
-
return Je(ke, "wheel",
|
|
24480
|
+
return Je(ke, "wheel", Xe);
|
|
24477
24481
|
}, [w, ve, O, m, ie, oe, fe, ce]);
|
|
24478
24482
|
const Re = b.useMemo(() => ({
|
|
24479
24483
|
...$,
|
|
@@ -24483,7 +24487,7 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24483
24487
|
value: te,
|
|
24484
24488
|
inputValue: xe,
|
|
24485
24489
|
scrubbing: j
|
|
24486
|
-
}), [$, O, m, c, te, xe, j]),
|
|
24490
|
+
}), [$, O, m, c, te, xe, j]), ze = b.useMemo(() => ({
|
|
24487
24491
|
inputRef: q,
|
|
24488
24492
|
minWithDefault: B,
|
|
24489
24493
|
maxWithDefault: z,
|
|
@@ -24514,7 +24518,7 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24514
24518
|
stateAttributesMapping: Zs
|
|
24515
24519
|
});
|
|
24516
24520
|
return /* @__PURE__ */ T(ch.Provider, {
|
|
24517
|
-
value:
|
|
24521
|
+
value: ze,
|
|
24518
24522
|
children: [Te, /* @__PURE__ */ f("input", {
|
|
24519
24523
|
...A.getValidationProps(O, {
|
|
24520
24524
|
onFocus() {
|
|
@@ -24523,8 +24527,8 @@ const DC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24523
24527
|
onChange(Ne) {
|
|
24524
24528
|
if (Ne.nativeEvent.defaultPrevented || O || m)
|
|
24525
24529
|
return;
|
|
24526
|
-
const ke = Ne.currentTarget.valueAsNumber,
|
|
24527
|
-
ae(
|
|
24530
|
+
const ke = Ne.currentTarget.valueAsNumber, Xe = Number.isNaN(ke) ? null : ke, Be = we(Et, Ne.nativeEvent);
|
|
24531
|
+
ae(Xe, Be), U(H), A.change(fe.current ?? Xe);
|
|
24528
24532
|
}
|
|
24529
24533
|
}),
|
|
24530
24534
|
ref: ee,
|
|
@@ -24938,14 +24942,14 @@ const v_ = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
24938
24942
|
percentSign: me
|
|
24939
24943
|
} = uh(S, l.current), pe = q.currentTarget.selectionStart, se = q.currentTarget.selectionEnd, oe = pe === 0 && se === _.length, le = (ve) => pe != null && se != null && ve >= pe && ve < se;
|
|
24940
24944
|
[[Rd, TC], [Kx, PC]].forEach(([ve, Re]) => {
|
|
24941
|
-
if (ve.test(q.key) && Array.from(Z).some((
|
|
24942
|
-
const
|
|
24945
|
+
if (ve.test(q.key) && Array.from(Z).some((ze) => ve.test(ze))) {
|
|
24946
|
+
const ze = _.search(Re), Te = ze !== -1 && le(ze);
|
|
24943
24947
|
ne = !(Rd.test(_) || Kx.test(_)) || oe || Te;
|
|
24944
24948
|
}
|
|
24945
24949
|
}), [te, ce, me].forEach((ve) => {
|
|
24946
24950
|
if (q.key === ve) {
|
|
24947
|
-
const Re = _.indexOf(ve),
|
|
24948
|
-
ne = Re === -1 || oe ||
|
|
24951
|
+
const Re = _.indexOf(ve), ze = le(Re);
|
|
24952
|
+
ne = Re === -1 || oe || ze;
|
|
24949
24953
|
}
|
|
24950
24954
|
});
|
|
24951
24955
|
const xe = v_.has(q.key), Q = q.key === "ArrowUp" || q.key === "ArrowDown";
|
|
@@ -24997,7 +25001,7 @@ process.env.NODE_ENV !== "production" && (ph.displayName = "NumberFieldScrubArea
|
|
|
24997
25001
|
function w_() {
|
|
24998
25002
|
const e = b.useContext(ph);
|
|
24999
25003
|
if (e === void 0)
|
|
25000
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldScrubAreaContext is missing. NumberFieldScrubArea parts must be placed within <NumberField.ScrubArea>." :
|
|
25004
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: NumberFieldScrubAreaContext is missing. NumberFieldScrubArea parts must be placed within <NumberField.ScrubArea>." : Ze(44));
|
|
25001
25005
|
return e;
|
|
25002
25006
|
}
|
|
25003
25007
|
function C_(e, t) {
|
|
@@ -25276,7 +25280,7 @@ process.env.NODE_ENV !== "production" && (mh.displayName = "OTPFieldRootContext"
|
|
|
25276
25280
|
function k_() {
|
|
25277
25281
|
const e = b.useContext(mh);
|
|
25278
25282
|
if (e === void 0)
|
|
25279
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: OTPFieldRootContext is missing. OTPField parts must be placed within <OTPField.Root>." :
|
|
25283
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: OTPFieldRootContext is missing. OTPField parts must be placed within <OTPField.Root>." : Ze(98));
|
|
25280
25284
|
return e;
|
|
25281
25285
|
}
|
|
25282
25286
|
function N_(e, t, n) {
|
|
@@ -25398,7 +25402,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
25398
25402
|
}
|
|
25399
25403
|
}), []), te = Nr({
|
|
25400
25404
|
id: s
|
|
25401
|
-
}), ce = ou(o, K, ne, !0, te), me = o == null ? ce : void 0, pe = j({}), se = O_(r, pe["aria-describedby"]), oe = HC(x), le = oe?.slotPattern, fe = oe?.getRootPattern(d), xe = g ?? oe?.inputMode, Q = Number.isInteger(d) && d > 0, X = ec(G, d, x, y), re = Nt(X), he = X !== "", [ie, ae] = b.useState(0), [ve, Re] = b.useState(() => Math.min(X.length, d - 1)), [
|
|
25405
|
+
}), ce = ou(o, K, ne, !0, te), me = o == null ? ce : void 0, pe = j({}), se = O_(r, pe["aria-describedby"]), oe = HC(x), le = oe?.slotPattern, fe = oe?.getRootPattern(d), xe = g ?? oe?.inputMode, Q = Number.isInteger(d) && d > 0, X = ec(G, d, x, y), re = Nt(X), he = X !== "", [ie, ae] = b.useState(0), [ve, Re] = b.useState(() => Math.min(X.length, d - 1)), [ze, Te] = b.useState(!1), Ne = ze ? Math.min(ve, Math.max(d - 1, 0)) : Math.min(X.length, d - 1);
|
|
25402
25406
|
be(() => {
|
|
25403
25407
|
V(he);
|
|
25404
25408
|
}, [he, V]), process.env.NODE_ENV !== "production" && A_({
|
|
@@ -25408,13 +25412,13 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
25408
25412
|
const ke = de((qe) => {
|
|
25409
25413
|
const it = Math.min(Math.max(qe, 0), Math.max(ee.current.length - 1, 0)), lt = ee.current[it];
|
|
25410
25414
|
lt?.focus(), lt?.select();
|
|
25411
|
-
}),
|
|
25415
|
+
}), Xe = de((qe, it) => {
|
|
25412
25416
|
J.current = {
|
|
25413
25417
|
index: qe,
|
|
25414
25418
|
value: it
|
|
25415
25419
|
};
|
|
25416
25420
|
});
|
|
25417
|
-
function
|
|
25421
|
+
function Be() {
|
|
25418
25422
|
let qe = A.inputRef.current?.form ?? ee.current[0]?.form ?? null;
|
|
25419
25423
|
if (m) {
|
|
25420
25424
|
const it = Ye(q.current).getElementById(m);
|
|
@@ -25423,7 +25427,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
25423
25427
|
qe && typeof qe.requestSubmit == "function" && qe.requestSubmit();
|
|
25424
25428
|
}
|
|
25425
25429
|
function _e(qe, it) {
|
|
25426
|
-
u?.(qe, it), p &&
|
|
25430
|
+
u?.(qe, it), p && Be();
|
|
25427
25431
|
}
|
|
25428
25432
|
Wn(X, () => {
|
|
25429
25433
|
L(z), M(X !== P.initialValue), A.change(X);
|
|
@@ -25456,18 +25460,18 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
25456
25460
|
complete: X.length === d,
|
|
25457
25461
|
disabled: B,
|
|
25458
25462
|
filled: he,
|
|
25459
|
-
focused:
|
|
25463
|
+
focused: ze,
|
|
25460
25464
|
length: d,
|
|
25461
25465
|
readOnly: v,
|
|
25462
25466
|
required: C,
|
|
25463
25467
|
value: X
|
|
25464
|
-
}), [B, $, he,
|
|
25468
|
+
}), [B, $, he, ze, d, v, C, X]), Ae = b.useMemo(() => ({
|
|
25465
25469
|
autoComplete: i,
|
|
25466
25470
|
activeIndex: Ne,
|
|
25467
25471
|
disabled: B,
|
|
25468
25472
|
form: m,
|
|
25469
25473
|
focusInput: ke,
|
|
25470
|
-
queueFocusInput:
|
|
25474
|
+
queueFocusInput: Xe,
|
|
25471
25475
|
getInputId: je,
|
|
25472
25476
|
handleInputBlur: tt,
|
|
25473
25477
|
handleInputFocus: Ge,
|
|
@@ -25485,7 +25489,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
25485
25489
|
state: et,
|
|
25486
25490
|
validationType: x,
|
|
25487
25491
|
value: X
|
|
25488
|
-
}), [Ne, i, B, ke, m, je, tt, Ge, xe, me, _, d, h, le,
|
|
25492
|
+
}), [Ne, i, B, ke, m, je, tt, Ge, xe, me, _, d, h, le, Xe, v, Oe, C, y, Se, et, x, X]), gt = ye("div", t, {
|
|
25489
25493
|
ref: [n, q],
|
|
25490
25494
|
state: et,
|
|
25491
25495
|
props: [{
|
|
@@ -25513,7 +25517,7 @@ const UC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
25513
25517
|
const it = qe.currentTarget.value, [lt, Ft] = Jl(it, d, x, y);
|
|
25514
25518
|
Ft && Oe(it, In(Yn, qe.nativeEvent));
|
|
25515
25519
|
const Pe = Se(lt, we(Yn, qe.nativeEvent));
|
|
25516
|
-
Pe != null && Pe !== "" &&
|
|
25520
|
+
Pe != null && Pe !== "" && Xe(Pe.length - 1, Pe);
|
|
25517
25521
|
}
|
|
25518
25522
|
}),
|
|
25519
25523
|
ref: A.inputRef,
|
|
@@ -25794,19 +25798,19 @@ process.env.NODE_ENV !== "production" && (yh.displayName = "ComboboxInputValueCo
|
|
|
25794
25798
|
function gn() {
|
|
25795
25799
|
const e = b.useContext(hh);
|
|
25796
25800
|
if (!e)
|
|
25797
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>." :
|
|
25801
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxRootContext is missing. Combobox parts must be placed within <Combobox.Root>." : Ze(22));
|
|
25798
25802
|
return e;
|
|
25799
25803
|
}
|
|
25800
25804
|
function wu() {
|
|
25801
25805
|
const e = b.useContext(gh);
|
|
25802
25806
|
if (!e)
|
|
25803
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>." :
|
|
25807
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxFloatingContext is missing. Combobox parts must be placed within <Combobox.Root>." : Ze(23));
|
|
25804
25808
|
return e;
|
|
25805
25809
|
}
|
|
25806
25810
|
function ga() {
|
|
25807
25811
|
const e = b.useContext(bh);
|
|
25808
25812
|
if (!e)
|
|
25809
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>." :
|
|
25813
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemsContext is missing. Combobox parts must be placed within <Combobox.Root>." : Ze(24));
|
|
25810
25814
|
return e;
|
|
25811
25815
|
}
|
|
25812
25816
|
function vh() {
|
|
@@ -26052,7 +26056,7 @@ function z_(e) {
|
|
|
26052
26056
|
id: t
|
|
26053
26057
|
}), ce = L_({
|
|
26054
26058
|
locale: H
|
|
26055
|
-
}), [me, pe] = b.useState(!1), [se, oe] = b.useState(null), le = b.useRef([]), fe = b.useRef([]), xe = b.useRef(null), Q = b.useRef(null), X = b.useRef(null), re = b.useRef(null), he = b.useRef(null), ie = b.useRef(!0), ae = b.useRef(!1), ve = b.useRef(null), Re = b.useRef(null),
|
|
26059
|
+
}), [me, pe] = b.useState(!1), [se, oe] = b.useState(null), le = b.useRef([]), fe = b.useRef([]), xe = b.useRef(null), Q = b.useRef(null), X = b.useRef(null), re = b.useRef(null), he = b.useRef(null), ie = b.useRef(!0), ae = b.useRef(!1), ve = b.useRef(null), Re = b.useRef(null), ze = b.useRef(null), Te = b.useRef(Nd), Ne = b.useRef(null), ke = b.useRef([]), Xe = b.useRef(null), Be = Y || h, _e = G ?? d, Se = u === "multiple", Oe = u === "single", Ge = a !== void 0 || i !== void 0, tt = v !== void 0, je = C !== void 0;
|
|
26056
26060
|
let et;
|
|
26057
26061
|
k === "always" ? et = "always" : et = k ? "input-change" : !1;
|
|
26058
26062
|
const [Ae, gt] = sn({
|
|
@@ -26070,15 +26074,15 @@ function z_(e) {
|
|
|
26070
26074
|
default: c,
|
|
26071
26075
|
name: "Combobox",
|
|
26072
26076
|
state: "open"
|
|
26073
|
-
}), Rt = wh(v),
|
|
26077
|
+
}), Rt = wh(v), We = se ?? String(lt).trim(), bt = Oe ? Hn(Ae, M) : "", $t = Oe && !me && We !== "" && bt.length === We.length && ce.contains(bt, We), Yt = $t ? "" : We, mn = tt && je && $t, Gt = b.useMemo(() => v ? Rt ? v.flatMap((Me) => Me.items) : v : xn, [v, Rt]), tn = b.useMemo(() => {
|
|
26074
26078
|
if (C && !mn)
|
|
26075
26079
|
return C;
|
|
26076
26080
|
if (!v)
|
|
26077
26081
|
return xn;
|
|
26078
26082
|
if (Rt) {
|
|
26079
|
-
const
|
|
26083
|
+
const Fe = v, It = [];
|
|
26080
26084
|
let Mt = 0;
|
|
26081
|
-
for (const Zt of
|
|
26085
|
+
for (const Zt of Fe) {
|
|
26082
26086
|
if (A > -1 && Mt >= A)
|
|
26083
26087
|
break;
|
|
26084
26088
|
const Rn = A > -1 ? A - Mt : 1 / 0, Vt = Yt === "" ? Zt.items.slice(0, Rn) : [];
|
|
@@ -26109,13 +26113,13 @@ function z_(e) {
|
|
|
26109
26113
|
Gt
|
|
26110
26114
|
);
|
|
26111
26115
|
const Me = [];
|
|
26112
|
-
for (const
|
|
26116
|
+
for (const Fe of Gt) {
|
|
26113
26117
|
if (A > -1 && Me.length >= A)
|
|
26114
26118
|
break;
|
|
26115
|
-
qe(
|
|
26119
|
+
qe(Fe, Yt, M) && Me.push(Fe);
|
|
26116
26120
|
}
|
|
26117
26121
|
return Me;
|
|
26118
|
-
}, [C, mn, v, Rt, Yt, A, qe, M, Gt]), Xt = b.useMemo(() => Rt ? tn.flatMap((
|
|
26122
|
+
}, [C, mn, v, Rt, Yt, A, qe, M, Gt]), Xt = b.useMemo(() => Rt ? tn.flatMap((Fe) => Fe.items) : tn, [tn, Rt]), nt = Dt(() => {
|
|
26119
26123
|
let Me = null;
|
|
26120
26124
|
return _ && Pe && tt && u !== "none" && (Me = kd(Xt, Ae, F, Se)), new Xw({
|
|
26121
26125
|
id: te,
|
|
@@ -26135,11 +26139,11 @@ function z_(e) {
|
|
|
26135
26139
|
chipsContainerRef: ve,
|
|
26136
26140
|
clearRef: Re,
|
|
26137
26141
|
valuesRef: ke,
|
|
26138
|
-
pointerDownItemRef:
|
|
26139
|
-
selectionEventRef:
|
|
26142
|
+
pointerDownItemRef: Xe,
|
|
26143
|
+
selectionEventRef: ze,
|
|
26140
26144
|
name: _e,
|
|
26141
26145
|
form: p,
|
|
26142
|
-
disabled:
|
|
26146
|
+
disabled: Be,
|
|
26143
26147
|
readOnly: g,
|
|
26144
26148
|
required: x,
|
|
26145
26149
|
grid: w,
|
|
@@ -26192,34 +26196,34 @@ function z_(e) {
|
|
|
26192
26196
|
openMethod: Yg,
|
|
26193
26197
|
triggerProps: Ku
|
|
26194
26198
|
} = im(Pe), $k = de(() => Pk);
|
|
26195
|
-
Wr(ur ? Vk : Q, te, rr, $k, !
|
|
26199
|
+
Wr(ur ? Vk : Q, te, rr, $k, !Be, d);
|
|
26196
26200
|
const Xg = de(() => {
|
|
26197
26201
|
v ? fe.current = Xt.map((Me) => Hn(Me, M)) : nt.set("forceMounted", !0);
|
|
26198
|
-
}), ls = de((Me,
|
|
26199
|
-
if (
|
|
26202
|
+
}), ls = de((Me, Fe, It) => {
|
|
26203
|
+
if (Fe === -1) {
|
|
26200
26204
|
if (Te.current === Nd)
|
|
26201
26205
|
return;
|
|
26202
26206
|
Te.current = Nd;
|
|
26203
26207
|
} else
|
|
26204
26208
|
Te.current = {
|
|
26205
26209
|
value: Me,
|
|
26206
|
-
index:
|
|
26210
|
+
index: Fe
|
|
26207
26211
|
};
|
|
26208
26212
|
Ok(Me, In(It, void 0, {
|
|
26209
|
-
index:
|
|
26213
|
+
index: Fe
|
|
26210
26214
|
}));
|
|
26211
26215
|
}), dr = de((Me) => {
|
|
26212
26216
|
nt.update(Me);
|
|
26213
|
-
const
|
|
26214
|
-
if (
|
|
26217
|
+
const Fe = Me.activeIndex;
|
|
26218
|
+
if (Fe === void 0)
|
|
26215
26219
|
return;
|
|
26216
26220
|
const It = Me.type || Et;
|
|
26217
|
-
|
|
26218
|
-
}), fr = de((Me,
|
|
26219
|
-
if (ae.current =
|
|
26220
|
-
if (
|
|
26221
|
+
Fe === null ? ls(void 0, -1, It) : ls(ke.current[Fe], Fe, It);
|
|
26222
|
+
}), fr = de((Me, Fe) => {
|
|
26223
|
+
if (ae.current = Fe.reason === kn, e.onInputValueChange?.(Me, Fe), !Fe.isCanceled) {
|
|
26224
|
+
if (Fe.reason === Yn) {
|
|
26221
26225
|
Pe && se !== null && oe(null);
|
|
26222
|
-
const It =
|
|
26226
|
+
const It = Fe.event, Mt = It.inputType;
|
|
26223
26227
|
if (It.type === "compositionend" || Mt != null && Mt !== "" && Mt !== "insertReplacementText") {
|
|
26224
26228
|
const Rn = Me.trim() !== "";
|
|
26225
26229
|
Rn && pe(!0), Ne.current = {
|
|
@@ -26239,38 +26243,38 @@ function z_(e) {
|
|
|
26239
26243
|
}
|
|
26240
26244
|
Rn && et && nt.state.activeIndex == null && (Pe || Sn) && nt.set("activeIndex", 0);
|
|
26241
26245
|
}
|
|
26242
|
-
} else
|
|
26246
|
+
} else Fe.reason === kn && Me === "" && nt.state.inputInsidePopup && (Ne.current = {
|
|
26243
26247
|
hasQuery: !1,
|
|
26244
26248
|
selection: !0
|
|
26245
26249
|
});
|
|
26246
26250
|
Ft(Me);
|
|
26247
26251
|
}
|
|
26248
|
-
}), oi = de((Me,
|
|
26249
|
-
if (Pe !== Me && (
|
|
26252
|
+
}), oi = de((Me, Fe) => {
|
|
26253
|
+
if (Pe !== Me && (Fe.reason === Jo && tt && Xt.length === 0 && !he.current && Fe.allowPropagation(), e.onOpenChange?.(Me, Fe), !Fe.isCanceled && (Me && ur && !Sn && se !== null && (pe(!1), oe(null), lt !== "" && Fe.reason !== Yn && fr("", we(kn, Fe.event))), !Me && me && (Oe ? (Sn || oe(We), We === "" && pe(!1)) : Se && (Sn || oe(We), ur && dr({
|
|
26250
26254
|
activeIndex: null
|
|
26251
|
-
}), (!ur || Sn) && fr("", we(kn,
|
|
26255
|
+
}), (!ur || Sn) && fr("", we(kn, Fe.event)))), St(Me), !Me && ur && (Fe.reason === Br || Fe.reason === Ji) && (q(!0), ee(!1), J === "onBlur")))) {
|
|
26252
26256
|
const It = u === "none" ? lt : Ae;
|
|
26253
26257
|
Z.commit(It);
|
|
26254
26258
|
}
|
|
26255
|
-
}), Na = de((Me,
|
|
26256
|
-
if (s?.(Me,
|
|
26259
|
+
}), Na = de((Me, Fe) => {
|
|
26260
|
+
if (s?.(Me, Fe), Fe.isCanceled)
|
|
26257
26261
|
return;
|
|
26258
|
-
gt(Me), (u === "none" && xe.current && D || Oe && !nt.state.inputInsidePopup) && fr(Hn(Me, M), we(
|
|
26259
|
-
}), Lk = de((Me,
|
|
26260
|
-
const It = yt(Me), Mt =
|
|
26261
|
-
|
|
26262
|
+
gt(Me), (u === "none" && xe.current && D || Oe && !nt.state.inputInsidePopup) && fr(Hn(Me, M), we(Fe.reason, Fe.event));
|
|
26263
|
+
}), Lk = de((Me, Fe) => {
|
|
26264
|
+
const It = yt(Me), Mt = ze.current ?? Me;
|
|
26265
|
+
ze.current = null;
|
|
26262
26266
|
const Zt = we(Lo, Mt), Rn = It?.closest("a")?.getAttribute("href");
|
|
26263
26267
|
if (Rn) {
|
|
26264
26268
|
Rn.startsWith("#") && oi(!1, Zt);
|
|
26265
26269
|
return;
|
|
26266
26270
|
}
|
|
26267
26271
|
if (Se) {
|
|
26268
|
-
const Vt = Array.isArray(Ae) ? Ae : [], or = V_(Vt,
|
|
26272
|
+
const Vt = Array.isArray(Ae) ? Ae : [], or = V_(Vt, Fe, F) ? KC(Vt, Fe, F) : [...Vt, Fe];
|
|
26269
26273
|
if (Na(or, Zt), Zt.isCanceled || !(Q.current ? Q.current.value.trim() !== "" : !1))
|
|
26270
26274
|
return;
|
|
26271
26275
|
nt.state.inputInsidePopup ? fr("", we(kn, Zt.event)) : oi(!1, Zt);
|
|
26272
26276
|
} else {
|
|
26273
|
-
if (Na(
|
|
26277
|
+
if (Na(Fe, Zt), Zt.isCanceled)
|
|
26274
26278
|
return;
|
|
26275
26279
|
oi(!1, Zt);
|
|
26276
26280
|
}
|
|
@@ -26303,11 +26307,11 @@ function z_(e) {
|
|
|
26303
26307
|
}), b.useImperativeHandle(e.actionsRef, () => ({
|
|
26304
26308
|
unmount: qu
|
|
26305
26309
|
}), [qu]), be(function() {
|
|
26306
|
-
if (Pe || (
|
|
26310
|
+
if (Pe || (Xe.current = null, u === "none"))
|
|
26307
26311
|
return;
|
|
26308
|
-
const
|
|
26312
|
+
const Fe = tt ? Gt : ke.current;
|
|
26309
26313
|
dr({
|
|
26310
|
-
selectedIndex: kd(
|
|
26314
|
+
selectedIndex: kd(Fe, Ae, F, Se)
|
|
26311
26315
|
});
|
|
26312
26316
|
}, [Pe, Ae, u, Se, tt, Gt, F, dr]), be(() => {
|
|
26313
26317
|
v && (ke.current = Xt, le.current.length = Xt.length);
|
|
@@ -26372,11 +26376,11 @@ function z_(e) {
|
|
|
26372
26376
|
});
|
|
26373
26377
|
}, [tt, et, Xt.length, dr]);
|
|
26374
26378
|
function Hk(Me) {
|
|
26375
|
-
const
|
|
26376
|
-
return Array.isArray(Me) && Array.isArray(
|
|
26379
|
+
const Fe = B.initialValue;
|
|
26380
|
+
return Array.isArray(Me) && Array.isArray(Fe) ? !xu(Me, Fe, (It, Mt) => Jn(It, Mt, F)) : Me !== Fe;
|
|
26377
26381
|
}
|
|
26378
|
-
Wn(
|
|
26379
|
-
!Pe ||
|
|
26382
|
+
Wn(We, () => {
|
|
26383
|
+
!Pe || We === "" || We === String(it) || pe(!0);
|
|
26380
26384
|
});
|
|
26381
26385
|
function Zg() {
|
|
26382
26386
|
const Me = Hn(Ae, M);
|
|
@@ -26397,7 +26401,7 @@ function z_(e) {
|
|
|
26397
26401
|
floating: Ea
|
|
26398
26402
|
}
|
|
26399
26403
|
}), Qg = w ? "grid" : "listbox", Ma = Pe || Sn, Jg = Ma ? "true" : "false", Ta = b.useMemo(() => {
|
|
26400
|
-
const Me = ka?.tagName === "INPUT",
|
|
26404
|
+
const Me = ka?.tagName === "INPUT", Fe = ka == null || Me, It = Fe || Ma, Mt = Fe ? {
|
|
26401
26405
|
autoComplete: "off",
|
|
26402
26406
|
spellCheck: "false",
|
|
26403
26407
|
autoCorrect: "off",
|
|
@@ -26410,7 +26414,7 @@ function z_(e) {
|
|
|
26410
26414
|
}
|
|
26411
26415
|
};
|
|
26412
26416
|
}, [ka, Ma, Jg, Qg, Kg?.id, U]), eb = es(Ia, {
|
|
26413
|
-
enabled: !g && !
|
|
26417
|
+
enabled: !g && !Be && E,
|
|
26414
26418
|
event: "mousedown-only",
|
|
26415
26419
|
toggle: !1,
|
|
26416
26420
|
// Apply a small delay for touch to let mobile viewport/keyboard positioning settle.
|
|
@@ -26418,7 +26422,7 @@ function z_(e) {
|
|
|
26418
26422
|
touchOpenDelay: ur ? 0 : 100,
|
|
26419
26423
|
reason: yw
|
|
26420
26424
|
}), Pa = Gs(Ia, {
|
|
26421
|
-
enabled: !g && !
|
|
26425
|
+
enabled: !g && !Be && !Sn,
|
|
26422
26426
|
outsidePressEvent: {
|
|
26423
26427
|
mouse: "sloppy",
|
|
26424
26428
|
// The visual viewport (affected by the mobile software keyboard) can be
|
|
@@ -26429,11 +26433,11 @@ function z_(e) {
|
|
|
26429
26433
|
// Without a popup, let the Escape key bubble the event up to other popups' handlers.
|
|
26430
26434
|
bubbles: Sn ? !0 : void 0,
|
|
26431
26435
|
outsidePress(Me) {
|
|
26432
|
-
const
|
|
26433
|
-
return !Ie(ri,
|
|
26436
|
+
const Fe = yt(Me);
|
|
26437
|
+
return !Ie(ri, Fe) && !Ie(Re.current, Fe) && !Ie(ve.current, Fe) && !Ie(Dk, Fe);
|
|
26434
26438
|
}
|
|
26435
26439
|
}), cs = tm(Ia, {
|
|
26436
|
-
enabled: !g && !
|
|
26440
|
+
enabled: !g && !Be,
|
|
26437
26441
|
id: te,
|
|
26438
26442
|
listRef: le,
|
|
26439
26443
|
activeIndex: Wg,
|
|
@@ -26448,8 +26452,8 @@ function z_(e) {
|
|
|
26448
26452
|
rtl: ne === "rtl",
|
|
26449
26453
|
disabledIndices: xn,
|
|
26450
26454
|
grid: w ? D_ : void 0,
|
|
26451
|
-
onNavigate(Me,
|
|
26452
|
-
!
|
|
26455
|
+
onNavigate(Me, Fe) {
|
|
26456
|
+
!Fe && !Pe || Wu === "ending" || dr(Fe ? {
|
|
26453
26457
|
activeIndex: Me,
|
|
26454
26458
|
type: ie.current ? yr : Ac
|
|
26455
26459
|
} : {
|
|
@@ -26502,7 +26506,7 @@ function z_(e) {
|
|
|
26502
26506
|
selectionMode: u,
|
|
26503
26507
|
name: _e,
|
|
26504
26508
|
form: p,
|
|
26505
|
-
disabled:
|
|
26509
|
+
disabled: Be,
|
|
26506
26510
|
readOnly: g,
|
|
26507
26511
|
required: x,
|
|
26508
26512
|
grid: w,
|
|
@@ -26516,24 +26520,24 @@ function z_(e) {
|
|
|
26516
26520
|
hasInputValue: Ge,
|
|
26517
26521
|
inputOwnsFormValue: u === "none" && (_ || !nt.state.inputInsidePopup)
|
|
26518
26522
|
});
|
|
26519
|
-
}, [nt, te, Ae, Pe, qg, Wu, v, Xu, Zu, Yu, Qu, Yg, Ku, u, _e,
|
|
26523
|
+
}, [nt, te, Ae, Pe, qg, Wu, v, Xu, Zu, Yu, Qu, Yg, Ku, u, _e, Be, g, x, w, V, E, M, $, F, L, Ge, _, et, p]);
|
|
26520
26524
|
const Uk = un(y, Z.inputRef), Gk = b.useMemo(() => ({
|
|
26521
|
-
query:
|
|
26525
|
+
query: We,
|
|
26522
26526
|
hasItems: tt,
|
|
26523
26527
|
filteredItems: tn,
|
|
26524
26528
|
flatFilteredItems: Xt
|
|
26525
|
-
}), [
|
|
26526
|
-
const
|
|
26529
|
+
}), [We, tt, tn, Xt]), jk = b.useMemo(() => Array.isArray(rr) ? "" : sr(rr, P), [rr, P]), Wk = Se && Array.isArray(Ae) && Ae.length > 0, Ju = Se || u === "none" && _k ? void 0 : _e, Kk = b.useMemo(() => !Se || !Array.isArray(Ae) || !_e ? null : Ae.map((Me) => {
|
|
26530
|
+
const Fe = sr(Me, P);
|
|
26527
26531
|
return /* @__PURE__ */ f("input", {
|
|
26528
26532
|
type: "hidden",
|
|
26529
26533
|
form: p,
|
|
26530
26534
|
name: _e,
|
|
26531
|
-
value:
|
|
26532
|
-
disabled:
|
|
26533
|
-
},
|
|
26534
|
-
}), [Se, Ae, p, _e, P,
|
|
26535
|
+
value: Fe,
|
|
26536
|
+
disabled: Be
|
|
26537
|
+
}, Fe);
|
|
26538
|
+
}), [Se, Ae, p, _e, P, Be]), qk = /* @__PURE__ */ T(b.Fragment, {
|
|
26535
26539
|
children: [e.children, /* @__PURE__ */ f("input", {
|
|
26536
|
-
...Z.getValidationProps(
|
|
26540
|
+
...Z.getValidationProps(Be, {
|
|
26537
26541
|
// Move focus when the hidden input is focused.
|
|
26538
26542
|
onFocus() {
|
|
26539
26543
|
if (ur) {
|
|
@@ -26544,14 +26548,14 @@ function z_(e) {
|
|
|
26544
26548
|
},
|
|
26545
26549
|
// Handle browser autofill.
|
|
26546
26550
|
onChange(Me) {
|
|
26547
|
-
if (Me.nativeEvent.defaultPrevented ||
|
|
26551
|
+
if (Me.nativeEvent.defaultPrevented || Be || g)
|
|
26548
26552
|
return;
|
|
26549
|
-
const
|
|
26553
|
+
const Fe = Me.currentTarget.value, It = Fe.toLowerCase(), Mt = we(Et, Me.nativeEvent), Zt = () => ke.current.findIndex((Vt) => sr(Vt, P).toLowerCase() === It || Hn(Vt, M).toLowerCase() === It);
|
|
26550
26554
|
function Rn() {
|
|
26551
26555
|
if (Se)
|
|
26552
26556
|
return;
|
|
26553
26557
|
if (u === "none") {
|
|
26554
|
-
fr(
|
|
26558
|
+
fr(Fe, Mt);
|
|
26555
26559
|
return;
|
|
26556
26560
|
}
|
|
26557
26561
|
let Vt = Zt();
|
|
@@ -26569,7 +26573,7 @@ function z_(e) {
|
|
|
26569
26573
|
form: p,
|
|
26570
26574
|
name: Ju,
|
|
26571
26575
|
autoComplete: O,
|
|
26572
|
-
disabled:
|
|
26576
|
+
disabled: Be,
|
|
26573
26577
|
required: x && !Wk,
|
|
26574
26578
|
readOnly: g,
|
|
26575
26579
|
value: jk,
|
|
@@ -26644,7 +26648,7 @@ process.env.NODE_ENV !== "production" && (Rh.displayName = "ComboboxPositionerCo
|
|
|
26644
26648
|
function Eh(e) {
|
|
26645
26649
|
const t = b.useContext(Rh);
|
|
26646
26650
|
if (t === void 0 && !e)
|
|
26647
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component" :
|
|
26651
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Popup> and <Combobox.Arrow> must be used within the <Combobox.Positioner> component" : Ze(21));
|
|
26648
26652
|
return t;
|
|
26649
26653
|
}
|
|
26650
26654
|
const kh = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -26798,8 +26802,8 @@ const Nh = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
26798
26802
|
const ve = we(Yn, X);
|
|
26799
26803
|
if (v.state.setInputValue(Q.currentTarget.value, ve), ve.isCanceled)
|
|
26800
26804
|
return;
|
|
26801
|
-
const Re = Q.currentTarget.value === "",
|
|
26802
|
-
Re && !v.state.inputInsidePopup && (M === "single" && v.state.setSelectedValue(null,
|
|
26805
|
+
const Re = Q.currentTarget.value === "", ze = we(kn, X);
|
|
26806
|
+
Re && !v.state.inputInsidePopup && (M === "single" && v.state.setSelectedValue(null, ze), v.state.openOnInputClick || v.state.setOpen(!1, ze)), ae(Q.currentTarget.value.trim()), _ && v.state.activeIndex !== null && !H && pe();
|
|
26803
26807
|
},
|
|
26804
26808
|
onKeyDown(Q) {
|
|
26805
26809
|
if (j || R || Q.ctrlKey || Q.shiftKey || Q.altKey || Q.metaKey)
|
|
@@ -26819,13 +26823,13 @@ const Nh = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
26819
26823
|
return;
|
|
26820
26824
|
}
|
|
26821
26825
|
if (!D && Q.key === "Escape") {
|
|
26822
|
-
const ve = M === "multiple" && Array.isArray($) ? $.length === 0 : $ === null, Re = we(Jo, Q.nativeEvent),
|
|
26823
|
-
v.state.setInputValue("", Re), v.state.setSelectedValue(
|
|
26826
|
+
const ve = M === "multiple" && Array.isArray($) ? $.length === 0 : $ === null, Re = we(Jo, Q.nativeEvent), ze = M === "multiple" ? [] : null;
|
|
26827
|
+
v.state.setInputValue("", Re), v.state.setSelectedValue(ze, Re), !ve && !v.state.inline && !Re.isPropagationAllowed && Q.stopPropagation();
|
|
26824
26828
|
return;
|
|
26825
26829
|
}
|
|
26826
26830
|
if (x && Q.key === "Backspace" && X.value === "" && x.highlightedChipIndex === void 0 && Array.isArray($) && $.length > 0) {
|
|
26827
|
-
const ve = x.chipsRef.current.length, Re = ve > 0 ? ve - 1 : $.length - 1,
|
|
26828
|
-
pe(), v.state.setSelectedValue(
|
|
26831
|
+
const ve = x.chipsRef.current.length, Re = ve > 0 ? ve - 1 : $.length - 1, ze = $.filter((Te, Ne) => Ne !== Re);
|
|
26832
|
+
pe(), v.state.setSelectedValue(ze, we(Et, Q.nativeEvent));
|
|
26829
26833
|
return;
|
|
26830
26834
|
}
|
|
26831
26835
|
const ie = x?.highlightedChipIndex !== void 0, ae = le(Q);
|
|
@@ -27083,7 +27087,7 @@ process.env.NODE_ENV !== "production" && (Th.displayName = "ComboboxPortalContex
|
|
|
27083
27087
|
function X_() {
|
|
27084
27088
|
const e = b.useContext(Th);
|
|
27085
27089
|
if (e === void 0)
|
|
27086
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Portal> is missing." :
|
|
27090
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Combobox.Portal> is missing." : Ze(20));
|
|
27087
27091
|
return e;
|
|
27088
27092
|
}
|
|
27089
27093
|
const Ph = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -27249,7 +27253,7 @@ process.env.NODE_ENV !== "production" && (Dh.displayName = "ComboboxGroupContext
|
|
|
27249
27253
|
function Q_() {
|
|
27250
27254
|
const e = b.useContext(Dh);
|
|
27251
27255
|
if (e === void 0)
|
|
27252
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>." :
|
|
27256
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxGroupContext is missing. ComboboxGroup parts must be placed within <Combobox.Group>." : Ze(18));
|
|
27253
27257
|
return e;
|
|
27254
27258
|
}
|
|
27255
27259
|
const aS = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -27304,7 +27308,7 @@ process.env.NODE_ENV !== "production" && (_h.displayName = "ComboboxItemContext"
|
|
|
27304
27308
|
function cS() {
|
|
27305
27309
|
const e = b.useContext(_h);
|
|
27306
27310
|
if (!e)
|
|
27307
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemContext is missing. ComboboxItem parts must be placed within <Combobox.Item>." :
|
|
27311
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxItemContext is missing. ComboboxItem parts must be placed within <Combobox.Item>." : Ze(19));
|
|
27308
27312
|
return e;
|
|
27309
27313
|
}
|
|
27310
27314
|
const uS = /* @__PURE__ */ b.createContext(!1);
|
|
@@ -27513,7 +27517,7 @@ process.env.NODE_ENV !== "production" && (Vh.displayName = "ComboboxChipContext"
|
|
|
27513
27517
|
function tV() {
|
|
27514
27518
|
const e = b.useContext(Vh);
|
|
27515
27519
|
if (!e)
|
|
27516
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>." :
|
|
27520
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ComboboxChipContext is missing. ComboboxChip parts must be placed within <Combobox.Chip>." : Ze(17));
|
|
27517
27521
|
return e;
|
|
27518
27522
|
}
|
|
27519
27523
|
const gS = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -27746,7 +27750,7 @@ const vS = [
|
|
|
27746
27750
|
"has-disabled:opacity-45"
|
|
27747
27751
|
];
|
|
27748
27752
|
function CS(e) {
|
|
27749
|
-
const t =
|
|
27753
|
+
const t = Ve(null), [n, r] = Ee(null);
|
|
27750
27754
|
return {
|
|
27751
27755
|
anchorRef: t,
|
|
27752
27756
|
handleOpenChange: ((...s) => {
|
|
@@ -27921,7 +27925,7 @@ process.env.NODE_ENV !== "production" && ($h.displayName = "SelectRootContext");
|
|
|
27921
27925
|
function Yr() {
|
|
27922
27926
|
const e = b.useContext($h);
|
|
27923
27927
|
if (e === null)
|
|
27924
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." :
|
|
27928
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : Ze(60));
|
|
27925
27929
|
return e;
|
|
27926
27930
|
}
|
|
27927
27931
|
const st = {
|
|
@@ -28051,12 +28055,12 @@ function rV(e) {
|
|
|
28051
28055
|
scrollUpArrowVisible: !1,
|
|
28052
28056
|
scrollDownArrowVisible: !1,
|
|
28053
28057
|
hasScrollArrows: !1
|
|
28054
|
-
})).current, X = ue(Q, st.activeIndex), re = ue(Q, st.selectedIndex), he = ue(Q, st.triggerElement), ie = ue(Q, st.positionerElement), ae = tO(fe), ve = fe ?? ae, Re = b.useMemo(() => v ? "" : sr(L, S), [v, L, S]),
|
|
28058
|
+
})).current, X = ue(Q, st.activeIndex), re = ue(Q, st.selectedIndex), he = ue(Q, st.triggerElement), ie = ue(Q, st.positionerElement), ae = tO(fe), ve = fe ?? ae, Re = b.useMemo(() => v ? "" : sr(L, S), [v, L, S]), ze = b.useMemo(() => v && Array.isArray(L) ? L.map((We) => sr(We, S)) : sr(L, S), [v, L, S]), Te = Nt(he), Ne = de(() => ze);
|
|
28055
28059
|
Wr(Te, U, L, Ne, !O, l);
|
|
28056
|
-
const ke = b.useRef(L),
|
|
28060
|
+
const ke = b.useRef(L), Xe = v ? Array.isArray(L) && L.length > 0 : L != null && Re !== "";
|
|
28057
28061
|
be(() => {
|
|
28058
|
-
V(
|
|
28059
|
-
}, [
|
|
28062
|
+
V(Xe);
|
|
28063
|
+
}, [Xe, V]), be(function() {
|
|
28060
28064
|
let bt = L, $t = !1;
|
|
28061
28065
|
if (v) {
|
|
28062
28066
|
const Gt = Array.isArray(L) ? L : [];
|
|
@@ -28065,15 +28069,15 @@ function rV(e) {
|
|
|
28065
28069
|
const Yt = $t ? -1 : Bo(Z.current, bt, E), mn = Yt === -1 ? null : Yt;
|
|
28066
28070
|
mn === null && (ce.current = null), !K && Q.set("selectedIndex", mn);
|
|
28067
28071
|
}, [v, K, L, E, Q]);
|
|
28068
|
-
function
|
|
28072
|
+
function Be(We) {
|
|
28069
28073
|
const bt = F.initialValue;
|
|
28070
|
-
return Array.isArray(
|
|
28074
|
+
return Array.isArray(We) && Array.isArray(bt) ? !xu(We, bt, ($t, Yt) => Jn($t, Yt, E)) : We !== bt;
|
|
28071
28075
|
}
|
|
28072
28076
|
Wn(L, () => {
|
|
28073
|
-
I(H), N(
|
|
28077
|
+
I(H), N(Be(L)), $.change(L);
|
|
28074
28078
|
});
|
|
28075
|
-
const _e = de((
|
|
28076
|
-
a?.(
|
|
28079
|
+
const _e = de((We, bt) => {
|
|
28080
|
+
a?.(We, bt), !bt.isCanceled && (B(We), !We && (bt.reason === Br || bt.reason === Ji) && (M(!0), P(!1), A === "onBlur" && $.commit(L)));
|
|
28077
28081
|
}), Se = de(() => {
|
|
28078
28082
|
oe(!1), Q.update({
|
|
28079
28083
|
activeIndex: null,
|
|
@@ -28092,10 +28096,10 @@ function rV(e) {
|
|
|
28092
28096
|
}), b.useImperativeHandle(g, () => ({
|
|
28093
28097
|
unmount: Se
|
|
28094
28098
|
}), [Se]);
|
|
28095
|
-
const Oe = de((
|
|
28096
|
-
o?.(
|
|
28097
|
-
}), Ge = de((
|
|
28098
|
-
const bt = t1(
|
|
28099
|
+
const Oe = de((We, bt) => {
|
|
28100
|
+
o?.(We, bt), !bt.isCanceled && j(We);
|
|
28101
|
+
}), Ge = de((We) => {
|
|
28102
|
+
const bt = t1(We.scrollHeight, We.clientHeight), $t = Sf(We.scrollTop, bt), Yt = $t > 0, mn = $t < bt;
|
|
28099
28103
|
Q.set("scrollUpArrowVisible", Yt), Q.set("scrollDownArrowVisible", mn);
|
|
28100
28104
|
}), tt = r0({
|
|
28101
28105
|
open: K,
|
|
@@ -28113,8 +28117,8 @@ function rV(e) {
|
|
|
28113
28117
|
activeIndex: X,
|
|
28114
28118
|
selectedIndex: re,
|
|
28115
28119
|
disabledIndices: xn,
|
|
28116
|
-
onNavigate(
|
|
28117
|
-
|
|
28120
|
+
onNavigate(We) {
|
|
28121
|
+
We === null && !K || Q.set("activeIndex", We);
|
|
28118
28122
|
},
|
|
28119
28123
|
focusItemOnHover: k
|
|
28120
28124
|
}), gt = nm(tt, {
|
|
@@ -28127,12 +28131,12 @@ function rV(e) {
|
|
|
28127
28131
|
// the disabled state from the element via the attribute-only `isElementDisabled` so the
|
|
28128
28132
|
// hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the
|
|
28129
28133
|
// `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.
|
|
28130
|
-
disabledIndices: (
|
|
28131
|
-
onMatch(
|
|
28132
|
-
K ? Q.set("activeIndex",
|
|
28134
|
+
disabledIndices: (We) => $m(z.current[We]),
|
|
28135
|
+
onMatch(We) {
|
|
28136
|
+
K ? Q.set("activeIndex", We) : Oe(Z.current[We], we(Et));
|
|
28133
28137
|
},
|
|
28134
|
-
onTyping(
|
|
28135
|
-
ne.current =
|
|
28138
|
+
onTyping(We) {
|
|
28139
|
+
ne.current = We;
|
|
28136
28140
|
}
|
|
28137
28141
|
}), qe = b.useMemo(() => on(gt.reference, Ae.reference, et.reference, je.reference, xe), [je.reference, gt.reference, Ae.reference, et.reference, xe]), it = b.useMemo(() => on(js, gt.floating, Ae.floating, et.floating), [gt.floating, Ae.floating, et.floating]), lt = Ae.item ?? ht;
|
|
28138
28142
|
jC(() => {
|
|
@@ -28183,8 +28187,8 @@ function rV(e) {
|
|
|
28183
28187
|
onOpenChangeComplete: y,
|
|
28184
28188
|
alignItemWithTriggerActiveRef: pe,
|
|
28185
28189
|
initialValueRef: ke
|
|
28186
|
-
}), [Q, tt, p, O, d, v, k, Oe, _e, lt, $, y, Ge]), Pe = un(x, $.inputRef), St = v ? void 0 : H, Rt = b.useMemo(() => !v || !Array.isArray(L) || !H ? null : L.map((
|
|
28187
|
-
const bt = sr(
|
|
28190
|
+
}), [Q, tt, p, O, d, v, k, Oe, _e, lt, $, y, Ge]), Pe = un(x, $.inputRef), St = v ? void 0 : H, Rt = b.useMemo(() => !v || !Array.isArray(L) || !H ? null : L.map((We) => {
|
|
28191
|
+
const bt = sr(We, S);
|
|
28188
28192
|
return /* @__PURE__ */ f("input", {
|
|
28189
28193
|
type: "hidden",
|
|
28190
28194
|
form: c,
|
|
@@ -28204,10 +28208,10 @@ function rV(e) {
|
|
|
28204
28208
|
});
|
|
28205
28209
|
},
|
|
28206
28210
|
// Handle browser autofill.
|
|
28207
|
-
onChange(
|
|
28208
|
-
if (
|
|
28211
|
+
onChange(We) {
|
|
28212
|
+
if (We.nativeEvent.defaultPrevented || O || d)
|
|
28209
28213
|
return;
|
|
28210
|
-
const bt =
|
|
28214
|
+
const bt = We.currentTarget.value, $t = we(Et, We.nativeEvent);
|
|
28211
28215
|
function Yt() {
|
|
28212
28216
|
if (v)
|
|
28213
28217
|
return;
|
|
@@ -28229,7 +28233,7 @@ function rV(e) {
|
|
|
28229
28233
|
autoComplete: u,
|
|
28230
28234
|
value: Re,
|
|
28231
28235
|
disabled: O,
|
|
28232
|
-
required: p && !(v &&
|
|
28236
|
+
required: p && !(v && Xe),
|
|
28233
28237
|
readOnly: d,
|
|
28234
28238
|
ref: Pe,
|
|
28235
28239
|
style: H ? vo : Vn,
|
|
@@ -28414,7 +28418,7 @@ process.env.NODE_ENV !== "production" && (Lh.displayName = "SelectPositionerCont
|
|
|
28414
28418
|
function NS() {
|
|
28415
28419
|
const e = b.useContext(Lh);
|
|
28416
28420
|
if (!e)
|
|
28417
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." :
|
|
28421
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : Ze(59));
|
|
28418
28422
|
return e;
|
|
28419
28423
|
}
|
|
28420
28424
|
function tc(e, t) {
|
|
@@ -28643,17 +28647,17 @@ const lV = {
|
|
|
28643
28647
|
try {
|
|
28644
28648
|
let ne = h.current;
|
|
28645
28649
|
ne?.isConnected || (ne = !st.hasSelectedValue(l.state) && p.current?.isConnected ? p.current : null);
|
|
28646
|
-
const te = d.current, ce = ft(H), me = ce.getComputedStyle(H), pe = ce.getComputedStyle(J), se = Ye(O), oe = Jx(O), le = sl(O.getBoundingClientRect(), oe), fe = sl(H.getBoundingClientRect(), oe), xe = le.height, Q = L || J, X = Q.scrollHeight, re = parseFloat(pe.borderBottomWidth), he = parseFloat(me.marginTop) || 10, ie = parseFloat(me.marginBottom) || 10, ae = parseFloat(me.minHeight) || 100, ve = Qx(pe), Re = 5,
|
|
28647
|
-
let
|
|
28650
|
+
const te = d.current, ce = ft(H), me = ce.getComputedStyle(H), pe = ce.getComputedStyle(J), se = Ye(O), oe = Jx(O), le = sl(O.getBoundingClientRect(), oe), fe = sl(H.getBoundingClientRect(), oe), xe = le.height, Q = L || J, X = Q.scrollHeight, re = parseFloat(pe.borderBottomWidth), he = parseFloat(me.marginTop) || 10, ie = parseFloat(me.marginBottom) || 10, ae = parseFloat(me.minHeight) || 100, ve = Qx(pe), Re = 5, ze = 5, Te = 20, Ne = se.documentElement.clientHeight - he - ie, ke = se.documentElement.clientWidth, Xe = Ne - le.bottom + xe;
|
|
28651
|
+
let Be, _e = M === "rtl" ? le.right - fe.width : le.left, Se = 0;
|
|
28648
28652
|
if (ne && te) {
|
|
28649
28653
|
const Ft = sl(te.getBoundingClientRect(), oe);
|
|
28650
|
-
|
|
28654
|
+
Be = sl(ne.getBoundingClientRect(), oe), _e = fe.left + (M === "rtl" ? Ft.right - Be.right : Ft.left - Be.left);
|
|
28651
28655
|
const Pe = Ft.top - le.top + Ft.height / 2;
|
|
28652
|
-
Se =
|
|
28656
|
+
Se = Be.top - fe.top + Be.height / 2 - Pe;
|
|
28653
28657
|
}
|
|
28654
|
-
const Oe =
|
|
28658
|
+
const Oe = Xe + Se + ie + re;
|
|
28655
28659
|
let Ge = Math.min(Ne, Oe);
|
|
28656
|
-
const tt = Ne - he - ie, je = Oe - Ge, et = ke -
|
|
28660
|
+
const tt = Ne - he - ie, je = Oe - Ge, et = ke - ze;
|
|
28657
28661
|
H.style.left = `${At(_e, Re, et - fe.width)}px`, H.style.height = `${Ge}px`, H.style.maxHeight = "none", H.style.marginTop = `${he}px`, H.style.marginBottom = `${ie}px`, J.style.height = "100%";
|
|
28658
28662
|
const Ae = ol(Q), gt = je >= Ae - Pr;
|
|
28659
28663
|
gt && (Ge = Math.min(Ne, fe.height) - (je - Ae));
|
|
@@ -28668,8 +28672,8 @@ const lV = {
|
|
|
28668
28672
|
H.style.top = fe.height >= tt ? "0" : `${Ft}px`, H.style.height = `${Ge}px`, Q.scrollTop = ol(Q);
|
|
28669
28673
|
} else
|
|
28670
28674
|
H.style.bottom = "0", Q.scrollTop = je;
|
|
28671
|
-
if (
|
|
28672
|
-
const Ft = fe.top, Pe = fe.height, St =
|
|
28675
|
+
if (Be) {
|
|
28676
|
+
const Ft = fe.top, Pe = fe.height, St = Be.top + Be.height / 2, Rt = At(Pe > 0 ? (St - Ft) / Pe * 100 : 50, 0, 100);
|
|
28673
28677
|
J.style.setProperty("--transform-origin", `50% ${Rt}%`);
|
|
28674
28678
|
}
|
|
28675
28679
|
(lt === Ne || Ge >= ve) && (j.current = !0), x(Q), v && l.state.selectedIndex === null && l.state.activeIndex === null && w.current[0] != null && l.set("activeIndex", 0);
|
|
@@ -28795,7 +28799,7 @@ process.env.NODE_ENV !== "production" && (zh.displayName = "SelectItemContext");
|
|
|
28795
28799
|
function Bh() {
|
|
28796
28800
|
const e = b.useContext(zh);
|
|
28797
28801
|
if (!e)
|
|
28798
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." :
|
|
28802
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : Ze(57));
|
|
28799
28803
|
return e;
|
|
28800
28804
|
}
|
|
28801
28805
|
const OS = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -28979,7 +28983,7 @@ process.env.NODE_ENV !== "production" && (Hh.displayName = "SelectGroupContext")
|
|
|
28979
28983
|
function uV() {
|
|
28980
28984
|
const e = b.useContext(Hh);
|
|
28981
28985
|
if (e === void 0)
|
|
28982
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." :
|
|
28986
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : Ze(56));
|
|
28983
28987
|
return e;
|
|
28984
28988
|
}
|
|
28985
28989
|
const VS = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -29075,7 +29079,7 @@ function Mf(e, t = []) {
|
|
|
29075
29079
|
}), t;
|
|
29076
29080
|
}
|
|
29077
29081
|
function mV(e) {
|
|
29078
|
-
const t =
|
|
29082
|
+
const t = Ve(e), n = t.current;
|
|
29079
29083
|
return n.length === e.length && n.every(
|
|
29080
29084
|
(o, s) => Object.is(o.value, e[s]?.value) && Object.is(o.label, e[s]?.label)
|
|
29081
29085
|
) || (t.current = e), t.current;
|
|
@@ -29450,7 +29454,7 @@ process.env.NODE_ENV !== "production" && (Uh.displayName = "TabsRootContext");
|
|
|
29450
29454
|
function Su() {
|
|
29451
29455
|
const e = b.useContext(Uh);
|
|
29452
29456
|
if (e === void 0)
|
|
29453
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." :
|
|
29457
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : Ze(64));
|
|
29454
29458
|
return e;
|
|
29455
29459
|
}
|
|
29456
29460
|
const ba = {
|
|
@@ -29596,7 +29600,7 @@ process.env.NODE_ENV !== "production" && (Gh.displayName = "TabsListContext");
|
|
|
29596
29600
|
function zS() {
|
|
29597
29601
|
const e = b.useContext(Gh);
|
|
29598
29602
|
if (e === void 0)
|
|
29599
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." :
|
|
29603
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : Ze(65));
|
|
29600
29604
|
return e;
|
|
29601
29605
|
}
|
|
29602
29606
|
const BS = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
@@ -30010,8 +30014,8 @@ function oy(e) {
|
|
|
30010
30014
|
i = Math.max(0, Math.min(i, e.scrollWidth - e.clientWidth)), !(Math.abs(i - s) < 1) && e.scrollTo({ left: i, behavior: jS() ? "auto" : "smooth" });
|
|
30011
30015
|
}
|
|
30012
30016
|
function SV({ className: e, children: t, variant: n }) {
|
|
30013
|
-
const r = Ru({ variant: n }), o =
|
|
30014
|
-
return
|
|
30017
|
+
const r = Ru({ variant: n }), o = Ve(null);
|
|
30018
|
+
return Qe(() => {
|
|
30015
30019
|
const s = o.current;
|
|
30016
30020
|
if (!s) return;
|
|
30017
30021
|
oy(s);
|
|
@@ -30071,7 +30075,7 @@ process.env.NODE_ENV !== "production" && (jh.displayName = "AccordionRootContext
|
|
|
30071
30075
|
function WS() {
|
|
30072
30076
|
const e = b.useContext(jh);
|
|
30073
30077
|
if (e === void 0)
|
|
30074
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>." :
|
|
30078
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionRootContext is missing. Accordion parts must be placed within <Accordion.Root>." : Ze(10));
|
|
30075
30079
|
return e;
|
|
30076
30080
|
}
|
|
30077
30081
|
const kV = {
|
|
@@ -30153,7 +30157,7 @@ process.env.NODE_ENV !== "production" && (Wh.displayName = "AccordionItemContext
|
|
|
30153
30157
|
function Kh() {
|
|
30154
30158
|
const e = b.useContext(Wh);
|
|
30155
30159
|
if (e === void 0)
|
|
30156
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>." :
|
|
30160
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AccordionItemContext is missing. Accordion parts must be placed within <Accordion.Item>." : Ze(9));
|
|
30157
30161
|
return e;
|
|
30158
30162
|
}
|
|
30159
30163
|
let NV = /* @__PURE__ */ (function(e) {
|
|
@@ -31310,8 +31314,8 @@ function GV(e, t, { isValid: n, enabled: r = !0 }) {
|
|
|
31310
31314
|
if (!e || !r) return o();
|
|
31311
31315
|
const c = Jh(e, n);
|
|
31312
31316
|
return c === void 0 ? o() : c;
|
|
31313
|
-
}), a =
|
|
31314
|
-
|
|
31317
|
+
}), a = Ve(!1);
|
|
31318
|
+
Qe(() => {
|
|
31315
31319
|
if (!(!e || !r)) {
|
|
31316
31320
|
if (!a.current) {
|
|
31317
31321
|
a.current = !0;
|
|
@@ -31343,13 +31347,13 @@ function A6({
|
|
|
31343
31347
|
className: i,
|
|
31344
31348
|
ref: a
|
|
31345
31349
|
}) {
|
|
31346
|
-
const l = QS(n === !1 ? "sm" : n), c = n !== !1 && l && r, u =
|
|
31350
|
+
const l = QS(n === !1 ? "sm" : n), c = n !== !1 && l && r, u = Ve(null), m = Ve(/* @__PURE__ */ new Map()), [d, p] = Ee(0), [h, g] = Ee(!1), [x, y] = Ee(null), [w, v, C] = GV(o, {}, {
|
|
31347
31351
|
isValid: jV
|
|
31348
31352
|
}), S = De((D) => (m.current.set(D.id, D), p(($) => $ + 1), () => {
|
|
31349
31353
|
m.current.delete(D.id), p(($) => $ + 1);
|
|
31350
31354
|
}), []), E = De(() => [...m.current.values()].sort(
|
|
31351
31355
|
(D, $) => D.node.compareDocumentPosition($.node) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1
|
|
31352
|
-
), []), k =
|
|
31356
|
+
), []), k = Ke(
|
|
31353
31357
|
() => E().map((D) => ({ id: D.id, label: D.label ?? D.id })),
|
|
31354
31358
|
// `ordered` reads a ref, so `membership` is what makes this recompute.
|
|
31355
31359
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -31365,7 +31369,7 @@ function A6({
|
|
|
31365
31369
|
v(
|
|
31366
31370
|
Object.fromEntries(D.map((j) => [j.id, j.defaultSize ?? L]))
|
|
31367
31371
|
);
|
|
31368
|
-
}, [d, E, C, v]),
|
|
31372
|
+
}, [d, E, C, v]), Qe(() => {
|
|
31369
31373
|
Object.keys(w).length > 0 && s?.(w);
|
|
31370
31374
|
}, [w, s]);
|
|
31371
31375
|
const I = De(
|
|
@@ -31418,7 +31422,7 @@ function A6({
|
|
|
31418
31422
|
[v]
|
|
31419
31423
|
), F = De(() => {
|
|
31420
31424
|
C(), p((D) => D + 1);
|
|
31421
|
-
}, [C]), V =
|
|
31425
|
+
}, [C]), V = Ke(
|
|
31422
31426
|
() => ({
|
|
31423
31427
|
direction: t,
|
|
31424
31428
|
narrow: c,
|
|
@@ -31517,7 +31521,7 @@ function D6({
|
|
|
31517
31521
|
className: l,
|
|
31518
31522
|
ref: c
|
|
31519
31523
|
}) {
|
|
31520
|
-
const u = cR("Panel"), m =
|
|
31524
|
+
const u = cR("Panel"), m = Ve(null), { register: d } = u;
|
|
31521
31525
|
qi(() => {
|
|
31522
31526
|
const w = m.current;
|
|
31523
31527
|
if (w)
|
|
@@ -31594,7 +31598,7 @@ function _6({
|
|
|
31594
31598
|
className: o,
|
|
31595
31599
|
ref: s
|
|
31596
31600
|
}) {
|
|
31597
|
-
const i = cR("PanelResizer"), a =
|
|
31601
|
+
const i = cR("PanelResizer"), a = Ve(null), l = Ve(null), c = Ut(), u = i.direction === "horizontal", d = (a.current ? i.neighbours(a.current) : null)?.[0], p = d ? i.sizes[d.id] : void 0, h = (w) => {
|
|
31598
31602
|
if (r || w.button !== 0) return;
|
|
31599
31603
|
const v = a.current;
|
|
31600
31604
|
v && (v.setPointerCapture(w.pointerId), l.current = {
|
|
@@ -31697,7 +31701,7 @@ process.env.NODE_ENV !== "production" && (tg.displayName = "AvatarRootContext");
|
|
|
31697
31701
|
function uR() {
|
|
31698
31702
|
const e = b.useContext(tg);
|
|
31699
31703
|
if (e === void 0)
|
|
31700
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." :
|
|
31704
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: AvatarRootContext is missing. Avatar parts must be placed within <Avatar.Root>." : Ze(13));
|
|
31701
31705
|
return e;
|
|
31702
31706
|
}
|
|
31703
31707
|
const ng = {
|
|
@@ -33943,7 +33947,7 @@ function L6({
|
|
|
33943
33947
|
const [x, y] = Ee([]), [w, v] = Ee({}), C = typeof c == "number" && c > 0, [S, E] = Ee({
|
|
33944
33948
|
pageIndex: 0,
|
|
33945
33949
|
pageSize: c ?? 0
|
|
33946
|
-
}), k =
|
|
33950
|
+
}), k = Ke(() => r ? [{
|
|
33947
33951
|
id: "__select",
|
|
33948
33952
|
size: 52,
|
|
33949
33953
|
enableSorting: !1,
|
|
@@ -36240,7 +36244,7 @@ function U6(e) {
|
|
|
36240
36244
|
Ou(), AR(e);
|
|
36241
36245
|
}
|
|
36242
36246
|
function $L(e, t) {
|
|
36243
|
-
return
|
|
36247
|
+
return Ke(() => BR(e, t), [e, t]);
|
|
36244
36248
|
}
|
|
36245
36249
|
const LL = Sc(function({
|
|
36246
36250
|
source: t,
|
|
@@ -36327,7 +36331,7 @@ const LL = Sc(function({
|
|
|
36327
36331
|
}
|
|
36328
36332
|
});
|
|
36329
36333
|
function Fd(e, t, n) {
|
|
36330
|
-
const [r, o] = Ee(t), s = e !== void 0, i =
|
|
36334
|
+
const [r, o] = Ee(t), s = e !== void 0, i = Ve(n);
|
|
36331
36335
|
i.current = n;
|
|
36332
36336
|
const a = De(
|
|
36333
36337
|
(l) => {
|
|
@@ -36362,20 +36366,20 @@ function HR({
|
|
|
36362
36366
|
ref: C,
|
|
36363
36367
|
...S
|
|
36364
36368
|
}) {
|
|
36365
|
-
const [E, k] = Fd(e, t ?? "", n), [R, I] = Fd(u, m, d), N = HL(o), M =
|
|
36369
|
+
const [E, k] = Fd(e, t ?? "", n), [R, I] = Fd(u, m, d), N = HL(o), M = Ke(
|
|
36366
36370
|
() => N ? r ? ["source", "rendered"] : ["source", "rendered", "split"] : ["source"],
|
|
36367
36371
|
[N, r]
|
|
36368
36372
|
), [P, F] = Fd(
|
|
36369
36373
|
p,
|
|
36370
36374
|
h ?? (N && r ? "rendered" : "source"),
|
|
36371
36375
|
g
|
|
36372
|
-
), V = M.includes(P) ? P : "source", _ =
|
|
36373
|
-
`).length, [E]), [D, $] = Ee(!1), A =
|
|
36376
|
+
), V = M.includes(P) ? P : "source", _ = Ke(() => E.split(`
|
|
36377
|
+
`).length, [E]), [D, $] = Ee(!1), A = Ve(void 0), U = De(() => {
|
|
36374
36378
|
navigator.clipboard?.writeText(E).then(() => {
|
|
36375
36379
|
$(!0), clearTimeout(A.current), A.current = setTimeout(() => $(!1), 1600);
|
|
36376
36380
|
}).catch(() => {
|
|
36377
36381
|
});
|
|
36378
|
-
}, [E]), O = r && c !== void 0 && _ > c, [H, L] = Ee(!1), j = O && !H, [K, B] = Ee(!1), z =
|
|
36382
|
+
}, [E]), O = r && c !== void 0 && _ > c, [H, L] = Ee(!1), j = O && !H, [K, B] = Ee(!1), z = Ke(
|
|
36379
36383
|
() => ({
|
|
36380
36384
|
value: E,
|
|
36381
36385
|
language: o ?? null,
|
|
@@ -36487,8 +36491,8 @@ function UL({
|
|
|
36487
36491
|
tabLeaves: m,
|
|
36488
36492
|
onTabLeavesChange: d
|
|
36489
36493
|
}) {
|
|
36490
|
-
const p = is(), h = $L(e, n), g =
|
|
36491
|
-
`).length, [e]), x = s !== void 0 && !i, y = x ? String(s + g - 1).length : 0, w =
|
|
36494
|
+
const p = is(), h = $L(e, n), g = Ke(() => e.split(`
|
|
36495
|
+
`).length, [e]), x = s !== void 0 && !i, y = x ? String(s + g - 1).length : 0, w = Ve(m), v = (S) => {
|
|
36492
36496
|
w.current = S, d(S);
|
|
36493
36497
|
}, C = (S) => {
|
|
36494
36498
|
const E = S.currentTarget;
|
|
@@ -36579,7 +36583,7 @@ function GL({
|
|
|
36579
36583
|
style: t,
|
|
36580
36584
|
collapsed: n
|
|
36581
36585
|
}) {
|
|
36582
|
-
const r = is(), o =
|
|
36586
|
+
const r = is(), o = Ke(() => w$(e), [e]);
|
|
36583
36587
|
return /* @__PURE__ */ f(
|
|
36584
36588
|
"div",
|
|
36585
36589
|
{
|
|
@@ -38640,12 +38644,12 @@ function b5(e, t) {
|
|
|
38640
38644
|
} : null;
|
|
38641
38645
|
}
|
|
38642
38646
|
function x5(e, t) {
|
|
38643
|
-
const [n, r] = Ee(0), o =
|
|
38644
|
-
return
|
|
38647
|
+
const [n, r] = Ee(0), o = Ve(null);
|
|
38648
|
+
return Qe(() => {
|
|
38645
38649
|
if (!e) return;
|
|
38646
38650
|
const s = e.root.ownerDocument, i = () => r((a) => a + 1);
|
|
38647
38651
|
return s.addEventListener("selectionchange", i), () => s.removeEventListener("selectionchange", i);
|
|
38648
|
-
}, [e]),
|
|
38652
|
+
}, [e]), Ke(() => {
|
|
38649
38653
|
if (!e) return { source: "", caret: null, ranged: !1, block: null, construct: null };
|
|
38650
38654
|
const s = e.getSource(), i = e.getSelection();
|
|
38651
38655
|
if (!i) {
|
|
@@ -38690,7 +38694,7 @@ function y5({ surface: e, state: t, run: n, container: r }) {
|
|
|
38690
38694
|
},
|
|
38691
38695
|
[e, r]
|
|
38692
38696
|
);
|
|
38693
|
-
|
|
38697
|
+
Qe(() => {
|
|
38694
38698
|
if (!e || !r || l) return;
|
|
38695
38699
|
const d = e.root, p = (g) => {
|
|
38696
38700
|
const x = N5(e, g.clientX, g.clientY);
|
|
@@ -38702,10 +38706,10 @@ function y5({ surface: e, state: t, run: n, container: r }) {
|
|
|
38702
38706
|
return d.addEventListener("pointermove", p), r.addEventListener("pointerleave", h), () => {
|
|
38703
38707
|
d.removeEventListener("pointermove", p), r.removeEventListener("pointerleave", h);
|
|
38704
38708
|
};
|
|
38705
|
-
}, [e, r, u, l, t.caret]),
|
|
38709
|
+
}, [e, r, u, l, t.caret]), Qe(() => {
|
|
38706
38710
|
l || t.caret === null || (a(t.caret), s(u(t.caret)));
|
|
38707
38711
|
}, [t.caret, u, l]);
|
|
38708
|
-
const m =
|
|
38712
|
+
const m = Ke(
|
|
38709
38713
|
() => e && i !== null ? lc(e.getSource(), i) : null,
|
|
38710
38714
|
[e, i, t.source]
|
|
38711
38715
|
);
|
|
@@ -38758,7 +38762,7 @@ function v5(e) {
|
|
|
38758
38762
|
}
|
|
38759
38763
|
function w5({ surface: e, state: t, run: n, container: r }) {
|
|
38760
38764
|
const o = t.construct ?? (t.block?.kind === "code" || t.block?.kind === "table" ? t.block : null), [s, i] = Ee(null);
|
|
38761
|
-
return
|
|
38765
|
+
return Qe(() => {
|
|
38762
38766
|
if (!e || !r || !o) return i(null);
|
|
38763
38767
|
const a = wE(e, o.start);
|
|
38764
38768
|
if (a === null) return i(null);
|
|
@@ -38824,7 +38828,7 @@ function C5({
|
|
|
38824
38828
|
] });
|
|
38825
38829
|
}
|
|
38826
38830
|
function S5({ language: e, run: t }) {
|
|
38827
|
-
const n =
|
|
38831
|
+
const n = Ke(() => {
|
|
38828
38832
|
const r = FL().sort();
|
|
38829
38833
|
return e && !r.includes(e) ? [e, ...r] : r;
|
|
38830
38834
|
}, [e]);
|
|
@@ -38879,7 +38883,7 @@ function br({ icon: e, label: t, onClick: n }) {
|
|
|
38879
38883
|
}
|
|
38880
38884
|
function E5({ surface: e, state: t, run: n, container: r }) {
|
|
38881
38885
|
const [o, s] = Ee(null);
|
|
38882
|
-
if (
|
|
38886
|
+
if (Qe(() => {
|
|
38883
38887
|
if (!e || !r) return;
|
|
38884
38888
|
const a = e.root, l = (c) => {
|
|
38885
38889
|
const u = e.getSelection();
|
|
@@ -39003,8 +39007,8 @@ function W6({
|
|
|
39003
39007
|
className: a,
|
|
39004
39008
|
minHeight: l = 240
|
|
39005
39009
|
}) {
|
|
39006
|
-
const c =
|
|
39007
|
-
C.current = t,
|
|
39010
|
+
const c = Ve(null), u = Ve(null), [m, d] = Ee(e.length === 0), p = Ut(), [h, g] = Ee(null), [x, y] = Ee(0), [w, v] = Ee(null), C = Ve(t);
|
|
39011
|
+
C.current = t, Qe(() => {
|
|
39008
39012
|
if (!c.current) return;
|
|
39009
39013
|
const R = new u5(c.current, e, {
|
|
39010
39014
|
onChange: (M) => {
|
|
@@ -39026,7 +39030,7 @@ function W6({
|
|
|
39026
39030
|
return () => {
|
|
39027
39031
|
N(), I(), u.current = null, g(null);
|
|
39028
39032
|
};
|
|
39029
|
-
}, []),
|
|
39033
|
+
}, []), Qe(() => {
|
|
39030
39034
|
u.current?.setSource(e), d(e.length === 0);
|
|
39031
39035
|
}, [e]);
|
|
39032
39036
|
const S = De((R) => {
|
|
@@ -39034,7 +39038,7 @@ function W6({
|
|
|
39034
39038
|
if (!I) return;
|
|
39035
39039
|
const N = I.getSelection() ?? { anchor: 0, head: 0 }, M = R(I.getSource(), N);
|
|
39036
39040
|
M && (I.breakUndoGroup(), I.apply(M.splice, M.select, "other"), I.root.focus());
|
|
39037
|
-
}, []), E = x5(h, x), k =
|
|
39041
|
+
}, []), E = x5(h, x), k = Ke(() => {
|
|
39038
39042
|
const R = /* @__PURE__ */ new Map();
|
|
39039
39043
|
for (const I of Cg) {
|
|
39040
39044
|
const N = R.get(I.group) ?? [];
|
|
@@ -39676,22 +39680,22 @@ function K6(e) {
|
|
|
39676
39680
|
return t;
|
|
39677
39681
|
}
|
|
39678
39682
|
function j5(e) {
|
|
39679
|
-
const t =
|
|
39683
|
+
const t = Ve(null);
|
|
39680
39684
|
t.current ??= new V5(e);
|
|
39681
39685
|
const n = t.current;
|
|
39682
|
-
return n.setCallbacks(e),
|
|
39686
|
+
return n.setCallbacks(e), Qe(() => L5(n), [n]), n;
|
|
39683
39687
|
}
|
|
39684
39688
|
function Vu(e) {
|
|
39685
39689
|
return kr(e.subscribe, e.getState, e.getState);
|
|
39686
39690
|
}
|
|
39687
39691
|
function W5(e, t) {
|
|
39688
39692
|
const { id: n, container: r, index: o, axis: s = "y", disabled: i = !1, activation: a } = t, [l, c] = Ee(null), [u, m] = Ee(null);
|
|
39689
|
-
|
|
39693
|
+
Qe(() => {
|
|
39690
39694
|
if (l)
|
|
39691
39695
|
return e.registerItem({ id: n, container: r, index: o, element: l });
|
|
39692
39696
|
}, [e, l, n, r, o]);
|
|
39693
|
-
const d = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, p =
|
|
39694
|
-
p.current = a,
|
|
39697
|
+
const d = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, p = Ve(a);
|
|
39698
|
+
p.current = a, Qe(() => {
|
|
39695
39699
|
if (!u || i) return;
|
|
39696
39700
|
const g = $5(e, u, {
|
|
39697
39701
|
id: n,
|
|
@@ -39710,7 +39714,7 @@ function W5(e, t) {
|
|
|
39710
39714
|
}
|
|
39711
39715
|
function K5(e, t) {
|
|
39712
39716
|
const { id: n, axis: r = "y" } = t, [o, s] = Ee(null);
|
|
39713
|
-
|
|
39717
|
+
Qe(() => {
|
|
39714
39718
|
if (o)
|
|
39715
39719
|
return e.registerContainer({ id: n, element: o, axis: r });
|
|
39716
39720
|
}, [e, o, n, r]);
|
|
@@ -39743,10 +39747,10 @@ function jd(e, t, n, r) {
|
|
|
39743
39747
|
};
|
|
39744
39748
|
}
|
|
39745
39749
|
function Y5(e, t = {}) {
|
|
39746
|
-
const [n, r] = Ee(""), o =
|
|
39750
|
+
const [n, r] = Ee(""), o = Ve(t);
|
|
39747
39751
|
o.current = t;
|
|
39748
|
-
const s =
|
|
39749
|
-
return
|
|
39752
|
+
const s = Ve(null), i = Ve(null), a = Ve(null), l = Ve(0);
|
|
39753
|
+
return Qe(() => {
|
|
39750
39754
|
function c() {
|
|
39751
39755
|
i.current !== null && (window.clearTimeout(i.current), i.current = null, a.current = null);
|
|
39752
39756
|
}
|
|
@@ -40138,7 +40142,7 @@ function VE(e, t) {
|
|
|
40138
40142
|
const s3 = () => {
|
|
40139
40143
|
};
|
|
40140
40144
|
function i3(e) {
|
|
40141
|
-
const t =
|
|
40145
|
+
const t = Ve([]), n = Ve([]), r = Ve(null), o = De(() => {
|
|
40142
40146
|
const i = t.current;
|
|
40143
40147
|
if (i.length === 0) return;
|
|
40144
40148
|
const a = new Set(n.current), l = i.filter((p) => !a.has(p.id));
|
|
@@ -40171,12 +40175,12 @@ function i3(e) {
|
|
|
40171
40175
|
r.current = null, o();
|
|
40172
40176
|
}, 0));
|
|
40173
40177
|
}, [o]);
|
|
40174
|
-
return
|
|
40178
|
+
return Qe(
|
|
40175
40179
|
() => () => {
|
|
40176
40180
|
r.current !== null && (clearTimeout(r.current), r.current = null);
|
|
40177
40181
|
},
|
|
40178
40182
|
[]
|
|
40179
|
-
),
|
|
40183
|
+
), Ke(
|
|
40180
40184
|
() => ({
|
|
40181
40185
|
item: (i, a, l) => {
|
|
40182
40186
|
const c = { id: i, container: a, index: l };
|
|
@@ -40201,12 +40205,12 @@ function Lu({
|
|
|
40201
40205
|
children: o,
|
|
40202
40206
|
...s
|
|
40203
40207
|
}) {
|
|
40204
|
-
const i = j5(s), a = i3(s.onDragEnd !== void 0), l = Ut(), c = as(), { threshold: u, maxSpeed: m, reducedMaxSpeed: d } = t ?? {}, p =
|
|
40208
|
+
const i = j5(s), a = i3(s.onDragEnd !== void 0), l = Ut(), c = as(), { threshold: u, maxSpeed: m, reducedMaxSpeed: d } = t ?? {}, p = Ke(
|
|
40205
40209
|
() => ({ threshold: u, maxSpeed: m, reducedMaxSpeed: d }),
|
|
40206
40210
|
[u, m, d]
|
|
40207
40211
|
);
|
|
40208
|
-
|
|
40209
|
-
const h =
|
|
40212
|
+
Qe(() => U5(i, p), [i, p]);
|
|
40213
|
+
const h = Ve({
|
|
40210
40214
|
item: /* @__PURE__ */ new Map(),
|
|
40211
40215
|
container: /* @__PURE__ */ new Map()
|
|
40212
40216
|
}), g = De(
|
|
@@ -40215,7 +40219,7 @@ function Lu({
|
|
|
40215
40219
|
h.current[y].get(w) === v && h.current[y].delete(w);
|
|
40216
40220
|
}),
|
|
40217
40221
|
[]
|
|
40218
|
-
), x =
|
|
40222
|
+
), x = Ke(
|
|
40219
40223
|
() => ({ session: i, instructionsId: l, renderCarried: n, registerLabel: g, census: a }),
|
|
40220
40224
|
[i, l, n, g, a]
|
|
40221
40225
|
);
|
|
@@ -40241,11 +40245,11 @@ function zu({
|
|
|
40241
40245
|
children: o
|
|
40242
40246
|
}) {
|
|
40243
40247
|
const { session: s, registerLabel: i } = Fu("DragDropContainer"), { setContainerRef: a, isOver: l } = K5(s, { id: e, axis: n }), c = Vu(s), u = as({ axis: n });
|
|
40244
|
-
|
|
40248
|
+
Qe(
|
|
40245
40249
|
() => i("container", e, t),
|
|
40246
40250
|
[i, e, t]
|
|
40247
40251
|
);
|
|
40248
|
-
const m = _E(s.getLayout(), c, e), d =
|
|
40252
|
+
const m = _E(s.getLayout(), c, e), d = Ke(() => ({ id: e, axis: n, shift: m }), [e, n, m]);
|
|
40249
40253
|
return /* @__PURE__ */ f(
|
|
40250
40254
|
"div",
|
|
40251
40255
|
{
|
|
@@ -40273,7 +40277,7 @@ function Bu({
|
|
|
40273
40277
|
index: t,
|
|
40274
40278
|
axis: u
|
|
40275
40279
|
}), h = Vu(s);
|
|
40276
|
-
|
|
40280
|
+
Qe(() => a("item", e, n), [a, e, n]), Qe(() => l.item(e, c, t), [l, e, c, t]);
|
|
40277
40281
|
const g = h.phase === "dragging" && h.id === e, x = as({ axis: u, moving: m !== null }), y = h.from && h.from.container === c && h.from.index < t ? t - 1 : t, w = !g && m?.markerAt === y, v = !g && m !== null && m.markerAt === m.restCount && y === m.restCount - 1, C = m && /* @__PURE__ */ f($E, { shift: m, at: w ? y : m.restCount - 1 });
|
|
40278
40282
|
return (
|
|
40279
40283
|
/* A FRAGMENT, so the marker is a DIRECT CHILD of the container. Wrapping the
|
|
@@ -40347,14 +40351,14 @@ function a3({
|
|
|
40347
40351
|
const l3 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
40348
40352
|
function FE({ label: e, className: t, children: n }) {
|
|
40349
40353
|
const { instructionsId: r, census: o } = Fu("DragDropSurface"), { axis: s } = $u("DragDropSurface"), { id: i, setHandleRef: a, label: l } = AE("DragDropSurface"), c = OE();
|
|
40350
|
-
|
|
40354
|
+
Qe(() => c ? void 0 : o.source(i), [o, i, c]);
|
|
40351
40355
|
const u = as({ axis: s }), [m, d] = Ee(null), [p, h] = Ee(!1), g = De(
|
|
40352
40356
|
(x) => {
|
|
40353
40357
|
d(x), a(x);
|
|
40354
40358
|
},
|
|
40355
40359
|
[a]
|
|
40356
40360
|
);
|
|
40357
|
-
return
|
|
40361
|
+
return Qe(() => {
|
|
40358
40362
|
if (!m || c) return;
|
|
40359
40363
|
const x = m.querySelector(l3);
|
|
40360
40364
|
if (h(x === null), !x) return;
|
|
@@ -40385,7 +40389,7 @@ function FE({ label: e, className: t, children: n }) {
|
|
|
40385
40389
|
}
|
|
40386
40390
|
function Ng({ label: e, className: t, children: n }) {
|
|
40387
40391
|
const { instructionsId: r, census: o } = Fu("DragDropHandle"), { axis: s } = $u("DragDropHandle"), { id: i, setHandleRef: a, label: l } = AE("DragDropHandle"), c = OE();
|
|
40388
|
-
|
|
40392
|
+
Qe(() => c ? void 0 : o.source(i), [o, i, c]);
|
|
40389
40393
|
const u = as({ axis: s }), m = n ?? /* @__PURE__ */ f(ge, { name: "grip-vertical", size: "sm" });
|
|
40390
40394
|
return c ? /* @__PURE__ */ f("span", { "aria-hidden": "true", className: W(u.handle(), t), children: m }) : /* @__PURE__ */ f(
|
|
40391
40395
|
"span",
|
|
@@ -40650,7 +40654,7 @@ function Hy(e, t, n) {
|
|
|
40650
40654
|
}
|
|
40651
40655
|
const m3 = [];
|
|
40652
40656
|
function zE(e) {
|
|
40653
|
-
const { items: t, columns: n, accessors: r, validateMove: o, onMove: s, selection: i } = e, a =
|
|
40657
|
+
const { items: t, columns: n, accessors: r, validateMove: o, onMove: s, selection: i } = e, a = Ke(
|
|
40654
40658
|
() => f3(t, n, r),
|
|
40655
40659
|
[t, n, r]
|
|
40656
40660
|
), l = De(
|
|
@@ -40838,7 +40842,7 @@ function Y6({
|
|
|
40838
40842
|
className: m,
|
|
40839
40843
|
...d
|
|
40840
40844
|
}) {
|
|
40841
|
-
const p = Uy({ fill: u }), h = d3(u), [g, x] = Ee(null), y =
|
|
40845
|
+
const p = Uy({ fill: u }), h = d3(u), [g, x] = Ee(null), y = Ke(() => t.flatMap((M) => M.items), [t]), w = Ke(
|
|
40842
40846
|
() => t.map((M) => ({
|
|
40843
40847
|
id: M.id,
|
|
40844
40848
|
label: M.label,
|
|
@@ -40849,12 +40853,12 @@ function Y6({
|
|
|
40849
40853
|
wipLimit: M.limit
|
|
40850
40854
|
})),
|
|
40851
40855
|
[t]
|
|
40852
|
-
), v =
|
|
40856
|
+
), v = Ke(() => {
|
|
40853
40857
|
const M = /* @__PURE__ */ new Map();
|
|
40854
40858
|
for (const P of t)
|
|
40855
40859
|
for (const F of P.items) M.set(String(n(F)), P.id);
|
|
40856
40860
|
return M;
|
|
40857
|
-
}, [t, n]), C =
|
|
40861
|
+
}, [t, n]), C = Ke(
|
|
40858
40862
|
() => ({
|
|
40859
40863
|
getId: (M) => n(M),
|
|
40860
40864
|
/* An id with no lane cannot happen from `lanes` by construction. If it
|
|
@@ -41129,13 +41133,13 @@ function X6({
|
|
|
41129
41133
|
});
|
|
41130
41134
|
},
|
|
41131
41135
|
[g]
|
|
41132
|
-
), y =
|
|
41136
|
+
), y = Ke(
|
|
41133
41137
|
() => u === void 0 ? void 0 : (v) => {
|
|
41134
41138
|
const C = e.find((S) => n.getId(S) === v);
|
|
41135
41139
|
return C === void 0 ? null : u(C);
|
|
41136
41140
|
},
|
|
41137
41141
|
[u, e, n]
|
|
41138
|
-
), w =
|
|
41142
|
+
), w = Ke(
|
|
41139
41143
|
() => ({ columns: d.columns, requestMove: g }),
|
|
41140
41144
|
[d.columns, g]
|
|
41141
41145
|
);
|
|
@@ -41167,7 +41171,7 @@ function Q6({
|
|
|
41167
41171
|
listClassName: r,
|
|
41168
41172
|
children: o
|
|
41169
41173
|
}) {
|
|
41170
|
-
const s = Ig({ overWip: e.overWip }), i =
|
|
41174
|
+
const s = Ig({ overWip: e.overWip }), i = Ke(
|
|
41171
41175
|
() => ({ columnId: e.id, label: e.label }),
|
|
41172
41176
|
[e.id, e.label]
|
|
41173
41177
|
), a = t ?? /* @__PURE__ */ f(
|
|
@@ -41223,15 +41227,15 @@ function S3({
|
|
|
41223
41227
|
);
|
|
41224
41228
|
}
|
|
41225
41229
|
function J6({ id: e, index: t, label: n, className: r, children: o }) {
|
|
41226
|
-
const { columnId: s } = v3("BoardCard"), i =
|
|
41230
|
+
const { columnId: s } = v3("BoardCard"), i = Ve(!1), a = De(() => (i.current = !0, () => {
|
|
41227
41231
|
i.current = !1;
|
|
41228
41232
|
}), []);
|
|
41229
|
-
|
|
41233
|
+
Qe(() => {
|
|
41230
41234
|
i.current || console.warn(
|
|
41231
41235
|
`[danxbot] board: card "${String(e)}" rendered without placing the move control it was handed. Every drag outcome must stay reachable by pointer alone without dragging (WCAG 2.2 SC 2.5.7) — a keyboard path does not satisfy it. Render the node \`BoardCard\` passes to its children function.`
|
|
41232
41236
|
);
|
|
41233
41237
|
}, [e]);
|
|
41234
|
-
const l =
|
|
41238
|
+
const l = Ke(
|
|
41235
41239
|
() => ({ itemId: e, index: t, label: n, registerHandle: a }),
|
|
41236
41240
|
[e, t, n, a]
|
|
41237
41241
|
);
|
|
@@ -41239,7 +41243,7 @@ function J6({ id: e, index: t, label: n, className: r, children: o }) {
|
|
|
41239
41243
|
}
|
|
41240
41244
|
function R3({ columnId: e }) {
|
|
41241
41245
|
const t = y3("BoardCardHandle"), n = w3("BoardCardHandle"), r = h3(), [o, s] = Ee(!1), i = Ig(), { registerHandle: a } = n;
|
|
41242
|
-
|
|
41246
|
+
Qe(() => a(), [a]);
|
|
41243
41247
|
const c = t.columns.find((g) => g.id === e)?.count ?? 0, u = t.columns.filter((g) => g.id !== e);
|
|
41244
41248
|
function m(g) {
|
|
41245
41249
|
s(!1), t.requestMove({
|
|
@@ -41300,7 +41304,7 @@ function jE({
|
|
|
41300
41304
|
className: c,
|
|
41301
41305
|
ref: u
|
|
41302
41306
|
}) {
|
|
41303
|
-
const m = t === "tile", d = e.status === "uploading", p = e.status === "error", h = e.thumbnailUrl ?? (Ni(e) === "image" ? e.url : void 0), g =
|
|
41307
|
+
const m = t === "tile", d = e.status === "uploading", p = e.status === "error", h = e.thumbnailUrl ?? (Ni(e) === "image" ? e.url : void 0), g = Ke(() => p ? e.error ?? "Upload failed" : d ? e.progress === void 0 ? "Uploading…" : `${Math.round(e.progress)}%` : n !== void 0 ? n : e.size === void 0 ? "" : xs(e.size), [p, d, n, e.error, e.progress, e.size]), x = /* @__PURE__ */ T(
|
|
41304
41308
|
"div",
|
|
41305
41309
|
{
|
|
41306
41310
|
className: W(
|
|
@@ -41536,7 +41540,7 @@ function N3({
|
|
|
41536
41540
|
className: x,
|
|
41537
41541
|
ref: y
|
|
41538
41542
|
}) {
|
|
41539
|
-
const w =
|
|
41543
|
+
const w = Ve(null), [v, C] = Ee(!1), S = !c && !i && (e.trim().length > 0 || r.length > 0), E = () => {
|
|
41540
41544
|
S && n(e, r);
|
|
41541
41545
|
}, k = (N) => {
|
|
41542
41546
|
N.key !== "Enter" || N.shiftKey || N.nativeEvent.isComposing || (N.preventDefault(), E());
|
|
@@ -41844,7 +41848,7 @@ const A3 = Sc(function({ block: t, index: n }) {
|
|
|
41844
41848
|
return /* @__PURE__ */ f("p", { className: "my-1.5 first:mt-0 last:mb-0", children: pl(t.text, `p${n}`) });
|
|
41845
41849
|
}
|
|
41846
41850
|
}), D3 = Sc(function({ children: t, className: n }) {
|
|
41847
|
-
const r =
|
|
41851
|
+
const r = Ke(() => T3(t), [t]);
|
|
41848
41852
|
return /* @__PURE__ */ f("div", { className: W("text-sm leading-relaxed text-secondary", n), children: r.map((o, s) => /* @__PURE__ */ f(A3, { block: o, index: s }, `${o.kind}-${s}`)) });
|
|
41849
41853
|
}), ml = [
|
|
41850
41854
|
"var(--color-accent)",
|
|
@@ -42396,7 +42400,7 @@ function H3({
|
|
|
42396
42400
|
className: o,
|
|
42397
42401
|
ref: s
|
|
42398
42402
|
}) {
|
|
42399
|
-
const i =
|
|
42403
|
+
const i = Ve(null), a = Ve(null), l = Ve(!0), [c, u] = Ee(!1), m = De((p = "smooth") => {
|
|
42400
42404
|
const h = i.current;
|
|
42401
42405
|
h && (h.scrollTo({ top: h.scrollHeight, behavior: p }), l.current = !0, u(!1));
|
|
42402
42406
|
}, []), d = De(() => {
|
|
@@ -42408,7 +42412,7 @@ function H3({
|
|
|
42408
42412
|
return qi(() => {
|
|
42409
42413
|
const p = i.current;
|
|
42410
42414
|
p && (p.scrollTop = p.scrollHeight);
|
|
42411
|
-
}, []),
|
|
42415
|
+
}, []), Qe(() => {
|
|
42412
42416
|
const p = a.current;
|
|
42413
42417
|
if (!p || typeof ResizeObserver > "u") return;
|
|
42414
42418
|
const h = new ResizeObserver(() => {
|
|
@@ -42480,7 +42484,7 @@ function U3({
|
|
|
42480
42484
|
className: l
|
|
42481
42485
|
}) {
|
|
42482
42486
|
const [c, u] = Ee(!1), [m, d] = Ee(!1), p = e.filter((x) => !x.secondary), h = e.filter((x) => x.secondary), g = e.find((x) => x.id === t);
|
|
42483
|
-
return
|
|
42487
|
+
return Qe(() => {
|
|
42484
42488
|
if (!c || !o) return;
|
|
42485
42489
|
const x = (y) => {
|
|
42486
42490
|
if (y.metaKey || y.ctrlKey || y.altKey) return;
|
|
@@ -42488,7 +42492,7 @@ function U3({
|
|
|
42488
42492
|
!Number.isInteger(w) || w < 0 || !v || v.disabled || (y.preventDefault(), n(v.id), u(!1));
|
|
42489
42493
|
};
|
|
42490
42494
|
return document.addEventListener("keydown", x), () => document.removeEventListener("keydown", x);
|
|
42491
|
-
}, [c, o, p, n]),
|
|
42495
|
+
}, [c, o, p, n]), Qe(() => {
|
|
42492
42496
|
c || d(!1);
|
|
42493
42497
|
}, [c]), /* @__PURE__ */ T(
|
|
42494
42498
|
bu,
|
|
@@ -42634,7 +42638,7 @@ function j3({
|
|
|
42634
42638
|
const c = Math.max(
|
|
42635
42639
|
0,
|
|
42636
42640
|
e.findIndex((p) => p.id === t)
|
|
42637
|
-
), u = e[c], m =
|
|
42641
|
+
), u = e[c], m = Ke(
|
|
42638
42642
|
() => e.map((p, h) => ({ value: h })),
|
|
42639
42643
|
[e]
|
|
42640
42644
|
), d = (
|
|
@@ -43296,7 +43300,7 @@ function uB(e) {
|
|
|
43296
43300
|
return t.setUTCFullYear(e.year, e.month, 0), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
|
|
43297
43301
|
}
|
|
43298
43302
|
function dB(e, t) {
|
|
43299
|
-
const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Ee(e), [a, l] = Ee(!1), c =
|
|
43303
|
+
const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Ee(e), [a, l] = Ee(!1), c = Ve(s), u = De(
|
|
43300
43304
|
(d) => {
|
|
43301
43305
|
Go(c.current, d) || (c.current = d, i(d), (d.year !== n.year || d.month !== n.month) && o?.(d));
|
|
43302
43306
|
},
|
|
@@ -43406,21 +43410,21 @@ function fU({
|
|
|
43406
43410
|
className: d,
|
|
43407
43411
|
label: p = "Month"
|
|
43408
43412
|
}) {
|
|
43409
|
-
const h = mB(), g = Ut(), x =
|
|
43413
|
+
const h = mB(), g = Ut(), x = Ke(
|
|
43410
43414
|
() => eB(e, r),
|
|
43411
43415
|
[e.year, e.month, e.day, r]
|
|
43412
|
-
), y =
|
|
43416
|
+
), y = Ke(() => {
|
|
43413
43417
|
const k = [];
|
|
43414
43418
|
for (let R = 0; R < x.length; R += 7) k.push(x.slice(R, R + 7));
|
|
43415
43419
|
return k;
|
|
43416
43420
|
}, [x]), w = dB(
|
|
43417
43421
|
fB(x, e, o, s),
|
|
43418
43422
|
{ month: e, weekStartsOn: r, onMonthChange: l }
|
|
43419
|
-
), v =
|
|
43420
|
-
|
|
43423
|
+
), v = Ve(/* @__PURE__ */ new Map()), C = Ve(!1);
|
|
43424
|
+
Qe(() => {
|
|
43421
43425
|
C.current && v.current.get(Kn(w.focusedDay))?.focus();
|
|
43422
43426
|
}, [w.focusedDay]);
|
|
43423
|
-
const S =
|
|
43427
|
+
const S = Ke(
|
|
43424
43428
|
() => y.map((k) => {
|
|
43425
43429
|
const R = [];
|
|
43426
43430
|
for (const V of n) {
|
|
@@ -43684,7 +43688,7 @@ function bB(e, t = {}) {
|
|
|
43684
43688
|
}
|
|
43685
43689
|
function xB(e = {}) {
|
|
43686
43690
|
const { resolutionMs: t = 6e4, enabled: n = !0, fixed: r } = e, [o, s] = Ee(() => r ?? Date.now());
|
|
43687
|
-
return
|
|
43691
|
+
return Qe(() => {
|
|
43688
43692
|
if (r !== void 0) {
|
|
43689
43693
|
s(r);
|
|
43690
43694
|
return;
|
|
@@ -43766,16 +43770,16 @@ function gi(e, t, n) {
|
|
|
43766
43770
|
return Gi(e, t, n);
|
|
43767
43771
|
}
|
|
43768
43772
|
function vB(e) {
|
|
43769
|
-
const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Ee(null), [d, p] = Ee(null), [h, g] = Ee(!1), x =
|
|
43773
|
+
const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Ee(null), [d, p] = Ee(null), [h, g] = Ee(!1), x = Ve({ zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l });
|
|
43770
43774
|
x.current = { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l };
|
|
43771
|
-
const y =
|
|
43775
|
+
const y = Ve({ columns: [], origin: null, anchor: null, last: null, spoken: null, point: null }), w = De(() => {
|
|
43772
43776
|
y.current.columns = x.current.measure();
|
|
43773
43777
|
}, []);
|
|
43774
|
-
|
|
43778
|
+
Qe(() => {
|
|
43775
43779
|
if (!u && !d) return;
|
|
43776
43780
|
const F = () => w();
|
|
43777
43781
|
return window.addEventListener("scroll", F, { capture: !0, passive: !0 }), () => window.removeEventListener("scroll", F, { capture: !0 });
|
|
43778
|
-
}, [u, d, w]),
|
|
43782
|
+
}, [u, d, w]), Qe(() => {
|
|
43779
43783
|
if (!u && !d) return;
|
|
43780
43784
|
const F = (V) => {
|
|
43781
43785
|
V.key === "Escape" && (V.preventDefault(), y.current.origin = null, y.current.anchor = null, y.current.last = null, m(null), p(null), g(!1), x.current.onAnnounce?.("Move cancelled"));
|
|
@@ -43785,7 +43789,7 @@ function vB(e) {
|
|
|
43785
43789
|
const v = De((F) => {
|
|
43786
43790
|
const V = tk(F, x.current.zone, x.current.locale);
|
|
43787
43791
|
y.current.spoken !== V && (y.current.spoken = V, x.current.onAnnounce?.(V));
|
|
43788
|
-
}, []), C =
|
|
43792
|
+
}, []), C = Ve(
|
|
43789
43793
|
/* @__PURE__ */ new Map()
|
|
43790
43794
|
), S = De(
|
|
43791
43795
|
(F) => (V) => {
|
|
@@ -43847,7 +43851,7 @@ function vB(e) {
|
|
|
43847
43851
|
} }, D.cb = S(D), C.current.set(_, D)), D.event = F, D.cb;
|
|
43848
43852
|
},
|
|
43849
43853
|
[S]
|
|
43850
|
-
), k =
|
|
43854
|
+
), k = Ve(null), R = De(
|
|
43851
43855
|
(F) => !F || c || !i ? void 0 : Ui(F, {
|
|
43852
43856
|
onPress: (_, D) => !D.target?.closest("button"),
|
|
43853
43857
|
onActivate: (_) => {
|
|
@@ -43994,7 +43998,7 @@ function RB({
|
|
|
43994
43998
|
] });
|
|
43995
43999
|
}
|
|
43996
44000
|
function EB(e) {
|
|
43997
|
-
const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Ee(null), [c, u] = Ee({}), m =
|
|
44001
|
+
const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Ee(null), [c, u] = Ee({}), m = Ve(null), d = De(
|
|
43998
44002
|
(x, y) => {
|
|
43999
44003
|
const w = r[Math.max(0, Math.min(r.length - 1, y))];
|
|
44000
44004
|
w && s?.(
|
|
@@ -44159,13 +44163,13 @@ function pU({
|
|
|
44159
44163
|
className: v,
|
|
44160
44164
|
label: C = "Schedule"
|
|
44161
44165
|
}) {
|
|
44162
|
-
const S = kB(), E =
|
|
44166
|
+
const S = kB(), E = Ve(null), k = Ve([]), [R, I] = Ee(""), N = xB({ fixed: m }), M = Ke(
|
|
44163
44167
|
() => e.length > 0 ? rv(t, e[0], s) : [],
|
|
44164
44168
|
[e, t, s]
|
|
44165
|
-
), P =
|
|
44169
|
+
), P = Ke(() => e.reduce(
|
|
44166
44170
|
(j, K) => Math.max(j, rv(t, K, s).length),
|
|
44167
44171
|
1
|
|
44168
|
-
) * i, [e, t, s, i]), F =
|
|
44172
|
+
) * i, [e, t, s, i]), F = Ke(() => {
|
|
44169
44173
|
const L = [];
|
|
44170
44174
|
for (const z of n)
|
|
44171
44175
|
if (z.allDay) {
|
|
@@ -44186,7 +44190,7 @@ function pU({
|
|
|
44186
44190
|
hidden: K.hidden.length,
|
|
44187
44191
|
rows: K.rows
|
|
44188
44192
|
};
|
|
44189
|
-
}, [e, n, t, l]), V =
|
|
44193
|
+
}, [e, n, t, l]), V = Ke(() => {
|
|
44190
44194
|
const L = lv / Math.max(1, P);
|
|
44191
44195
|
return e.map((j, K) => {
|
|
44192
44196
|
const B = [];
|
|
@@ -44209,12 +44213,12 @@ function pU({
|
|
|
44209
44213
|
}))
|
|
44210
44214
|
};
|
|
44211
44215
|
});
|
|
44212
|
-
}, [e, n, t, u, c, P]), _ = e.map(Kn).join(","), D =
|
|
44216
|
+
}, [e, n, t, u, c, P]), _ = e.map(Kn).join(","), D = Ke(() => {
|
|
44213
44217
|
if (e.length === 0) return null;
|
|
44214
44218
|
const L = e[0], j = rn(t, L) + a * 36e5;
|
|
44215
44219
|
return Math.max(0, Math.min(1, Gi(t, L, j))) * P;
|
|
44216
44220
|
}, [_, t, a, P]);
|
|
44217
|
-
|
|
44221
|
+
Qe(() => {
|
|
44218
44222
|
const L = E.current;
|
|
44219
44223
|
!L || D === null || (L.scrollTop = D);
|
|
44220
44224
|
}, [D]);
|
|
@@ -44249,7 +44253,7 @@ function pU({
|
|
|
44249
44253
|
},
|
|
44250
44254
|
locale: y
|
|
44251
44255
|
});
|
|
44252
|
-
|
|
44256
|
+
Qe(() => {
|
|
44253
44257
|
if (!(!A.draft && !A.creating || !E.current))
|
|
44254
44258
|
return kg({ getPoint: A.getPoint, onScrolled: A.onScrolled });
|
|
44255
44259
|
}, [A.draft, A.creating, A.getPoint, A.onScrolled]);
|
|
@@ -44496,28 +44500,28 @@ function hU({
|
|
|
44496
44500
|
canAccessDevTools: i,
|
|
44497
44501
|
children: a
|
|
44498
44502
|
}) {
|
|
44499
|
-
const [l, c] = Ee(null), u =
|
|
44503
|
+
const [l, c] = Ee(null), u = Ke(
|
|
44500
44504
|
() => r.find((y) => y.id === s),
|
|
44501
44505
|
[r, s]
|
|
44502
|
-
), m =
|
|
44506
|
+
), m = Ke(() => {
|
|
44503
44507
|
const y = o.find(
|
|
44504
44508
|
(w) => w.userId === e.id && w.teamId === s
|
|
44505
44509
|
);
|
|
44506
44510
|
if (y)
|
|
44507
44511
|
return t.find((w) => w.id === y.roleId);
|
|
44508
|
-
}, [o, t, e.id, s]), d =
|
|
44512
|
+
}, [o, t, e.id, s]), d = Ke(
|
|
44509
44513
|
() => l ? t.find((y) => y.id === l) : m,
|
|
44510
44514
|
[l, t, m]
|
|
44511
|
-
), p =
|
|
44515
|
+
), p = Ke(
|
|
44512
44516
|
() => new Set(d?.permissionKeys ?? []),
|
|
44513
44517
|
[d]
|
|
44514
44518
|
), h = De(
|
|
44515
44519
|
(y) => p.has(y),
|
|
44516
44520
|
[p]
|
|
44517
|
-
), g =
|
|
44521
|
+
), g = Ke(
|
|
44518
44522
|
() => i(e, t, o),
|
|
44519
44523
|
[i, e, t, o]
|
|
44520
|
-
), x =
|
|
44524
|
+
), x = Ke(
|
|
44521
44525
|
() => ({
|
|
44522
44526
|
actualUser: e,
|
|
44523
44527
|
currentTeam: u,
|
|
@@ -44817,7 +44821,7 @@ function LB(e) {
|
|
|
44817
44821
|
return t.map((r) => ({ label: r, items: n.get(r) }));
|
|
44818
44822
|
}
|
|
44819
44823
|
function zB({ roles: e, permissions: t }) {
|
|
44820
|
-
const n =
|
|
44824
|
+
const n = Ke(() => LB(t), [t]), r = e.length + 1;
|
|
44821
44825
|
return /* @__PURE__ */ f("div", { className: "relative w-full min-w-0 overflow-auto overscroll-x-contain rounded-xl border border-border bg-surface shadow-sm", children: /* @__PURE__ */ T("table", { className: "w-full border-collapse text-left", children: [
|
|
44822
44826
|
/* @__PURE__ */ f("caption", { className: "sr-only", children: "Which permissions each role has" }),
|
|
44823
44827
|
/* @__PURE__ */ f("thead", { className: "sticky top-0 z-10", children: /* @__PURE__ */ T("tr", { children: [
|
|
@@ -44869,7 +44873,7 @@ function zB({ roles: e, permissions: t }) {
|
|
|
44869
44873
|
] }) });
|
|
44870
44874
|
}
|
|
44871
44875
|
function yU() {
|
|
44872
|
-
const { actualUser: e, actualRole: t, effectiveRole: n, permissions: r, isImpersonating: o, currentTeam: s } = Hu(), [i, a] = Ee(e.name), [l, c] = Ee(e.email), u =
|
|
44876
|
+
const { actualUser: e, actualRole: t, effectiveRole: n, permissions: r, isImpersonating: o, currentTeam: s } = Hu(), [i, a] = Ee(e.name), [l, c] = Ee(e.email), u = Ke(
|
|
44873
44877
|
() => r.filter((m) => n?.permissionKeys.includes(m.key)),
|
|
44874
44878
|
[r, n]
|
|
44875
44879
|
);
|
|
@@ -45231,7 +45235,7 @@ function wU({
|
|
|
45231
45235
|
onUseCaseBuiltChange: i,
|
|
45232
45236
|
className: a
|
|
45233
45237
|
}) {
|
|
45234
|
-
const [l, c] = Ee(Xd), [u, m] = Ee("all"), d =
|
|
45238
|
+
const [l, c] = Ee(Xd), [u, m] = Ee("all"), d = Ke(() => ZB(r), [r]), p = Ke(() => Og(o), [o]), h = Ke(() => e.map((g, x) => ({ domain: g, domainIndex: x })).filter(({ domain: g }) => l === Xd || g.slug === l).map(({ domain: g, domainIndex: x }) => ({
|
|
45235
45239
|
domain: g,
|
|
45236
45240
|
domainIndex: x,
|
|
45237
45241
|
items: n.filter((y) => y.domainSlug === g.slug).filter((y) => {
|
|
@@ -46130,9 +46134,9 @@ function mk(e, t) {
|
|
|
46130
46134
|
}
|
|
46131
46135
|
const hv = (e, t, n) => Math.min(Math.max(e, t), n);
|
|
46132
46136
|
function w4(e) {
|
|
46133
|
-
const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Ee({}), [l, c] = Ee(null), [u, m] = Ee(!1), d =
|
|
46137
|
+
const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Ee({}), [l, c] = Ee(null), [u, m] = Ee(!1), d = Ve({ layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i });
|
|
46134
46138
|
d.current = { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i };
|
|
46135
|
-
const p =
|
|
46139
|
+
const p = Ve(null), h = Ve({ frame: null, drag: null, pan: null, point: null }), g = De(() => {
|
|
46136
46140
|
const I = p.current;
|
|
46137
46141
|
if (!I) return;
|
|
46138
46142
|
const N = I.getBoundingClientRect();
|
|
@@ -46156,7 +46160,7 @@ function w4(e) {
|
|
|
46156
46160
|
), w = De(() => {
|
|
46157
46161
|
h.current.drag = null, h.current.point = null, c(null);
|
|
46158
46162
|
}, []);
|
|
46159
|
-
|
|
46163
|
+
Qe(() => {
|
|
46160
46164
|
if (!l) return;
|
|
46161
46165
|
const I = (N) => {
|
|
46162
46166
|
if (N.key !== "Escape") return;
|
|
@@ -46167,13 +46171,13 @@ function w4(e) {
|
|
|
46167
46171
|
}), w());
|
|
46168
46172
|
};
|
|
46169
46173
|
return window.addEventListener("keydown", I), () => window.removeEventListener("keydown", I);
|
|
46170
|
-
}, [l, w]),
|
|
46174
|
+
}, [l, w]), Qe(() => {
|
|
46171
46175
|
if (!l && !u) return;
|
|
46172
46176
|
const I = () => g();
|
|
46173
46177
|
return window.addEventListener("scroll", I, { capture: !0, passive: !0 }), window.addEventListener("resize", I), () => {
|
|
46174
46178
|
window.removeEventListener("scroll", I, { capture: !0 }), window.removeEventListener("resize", I);
|
|
46175
46179
|
};
|
|
46176
|
-
}, [l, u, g]),
|
|
46180
|
+
}, [l, u, g]), Qe(() => {
|
|
46177
46181
|
if (l)
|
|
46178
46182
|
return kg({
|
|
46179
46183
|
getPoint: () => h.current.point,
|
|
@@ -46186,7 +46190,7 @@ function w4(e) {
|
|
|
46186
46190
|
};
|
|
46187
46191
|
I.addEventListener("click", N, { capture: !0, once: !0 }), setTimeout(() => I.removeEventListener("click", N, { capture: !0 }), 0);
|
|
46188
46192
|
}
|
|
46189
|
-
const C =
|
|
46193
|
+
const C = Ve(/* @__PURE__ */ new Map()), S = De(
|
|
46190
46194
|
(I) => (N) => {
|
|
46191
46195
|
if (N)
|
|
46192
46196
|
return Ui(N, {
|
|
@@ -46292,9 +46296,9 @@ function TU({
|
|
|
46292
46296
|
disabled: u,
|
|
46293
46297
|
className: m
|
|
46294
46298
|
}) {
|
|
46295
|
-
const d = Ut(), [p, h] = Ee([e.id]), [g, x] = Ee(null), y =
|
|
46299
|
+
const d = Ut(), [p, h] = Ee([e.id]), [g, x] = Ee(null), y = Ve(e.id);
|
|
46296
46300
|
y.current !== e.id && (y.current = e.id, h([e.id]), x(null));
|
|
46297
|
-
const w =
|
|
46301
|
+
const w = Ke(() => {
|
|
46298
46302
|
const B = [];
|
|
46299
46303
|
let z = e;
|
|
46300
46304
|
for (const G of p) {
|
|
@@ -46303,16 +46307,16 @@ function TU({
|
|
|
46303
46307
|
B.push(Y), z = Y;
|
|
46304
46308
|
}
|
|
46305
46309
|
return B.length ? B : [e];
|
|
46306
|
-
}, [e, p]), v = w[w.length - 1], C =
|
|
46310
|
+
}, [e, p]), v = w[w.length - 1], C = Ke(
|
|
46307
46311
|
() => v4(v, { orientation: r, depth: o, nodeWidth: s, nodeHeight: i }),
|
|
46308
46312
|
[v, r, o, s, i]
|
|
46309
|
-
), S =
|
|
46313
|
+
), S = Ke(
|
|
46310
46314
|
() => ({
|
|
46311
46315
|
width: C.width + vl * 2,
|
|
46312
46316
|
height: C.height + vl * 2
|
|
46313
46317
|
}),
|
|
46314
46318
|
[C]
|
|
46315
|
-
), E =
|
|
46319
|
+
), E = Ke(() => {
|
|
46316
46320
|
const B = /* @__PURE__ */ new Map();
|
|
46317
46321
|
for (const z of C.nodes)
|
|
46318
46322
|
B.set(z.id, { ...z, x: z.x + vl, y: z.y + vl });
|
|
@@ -46337,8 +46341,8 @@ function TU({
|
|
|
46337
46341
|
onNodeClick: R,
|
|
46338
46342
|
onNodeDragEnd: c,
|
|
46339
46343
|
disabled: u
|
|
46340
|
-
}), { clearOffsets: N } = I, M = `${v.id}:${r}:${o}`, P =
|
|
46341
|
-
|
|
46344
|
+
}), { clearOffsets: N } = I, M = `${v.id}:${r}:${o}`, P = Ve(M);
|
|
46345
|
+
Qe(() => {
|
|
46342
46346
|
P.current !== M && (P.current = M, N());
|
|
46343
46347
|
}, [M, N]);
|
|
46344
46348
|
const F = De(
|
|
@@ -46354,7 +46358,7 @@ function TU({
|
|
|
46354
46358
|
};
|
|
46355
46359
|
},
|
|
46356
46360
|
[E, I.offsets]
|
|
46357
|
-
), V =
|
|
46361
|
+
), V = Ve(null), _ = g && E.has(g) ? g : v.id, D = De((B) => {
|
|
46358
46362
|
x(B), queueMicrotask(() => {
|
|
46359
46363
|
const z = V.current?.querySelector(
|
|
46360
46364
|
`[data-canvas-node="${CSS.escape(B)}"]`
|
|
@@ -46406,13 +46410,13 @@ function TU({
|
|
|
46406
46410
|
}
|
|
46407
46411
|
Z && (B.preventDefault(), D(Z));
|
|
46408
46412
|
}
|
|
46409
|
-
const H =
|
|
46413
|
+
const H = Ve(null), { bindViewport: L } = I, j = De(
|
|
46410
46414
|
(B) => {
|
|
46411
46415
|
H.current = B, L(B);
|
|
46412
46416
|
},
|
|
46413
46417
|
[L]
|
|
46414
46418
|
);
|
|
46415
|
-
|
|
46419
|
+
Qe(() => {
|
|
46416
46420
|
const B = H.current, z = E.get(v.id);
|
|
46417
46421
|
!B || !z || (B.scrollLeft = Math.max(0, z.x + z.width / 2 - B.clientWidth / 2), B.scrollTop = Math.max(0, z.y + z.height / 2 - B.clientHeight / 2));
|
|
46418
46422
|
}, [E, v.id]);
|
|
@@ -46981,23 +46985,23 @@ function X4(e, t, n) {
|
|
|
46981
46985
|
() => r === null ? Sa : Ra(r, o),
|
|
46982
46986
|
[r, o]
|
|
46983
46987
|
), a = kr(s, i, L4);
|
|
46984
|
-
return
|
|
46988
|
+
return Qe(() => r === null ? void 0 : zg([r]), [r]), a;
|
|
46985
46989
|
}
|
|
46986
46990
|
function VU(e, t, n) {
|
|
46987
|
-
const r = n.needs, o =
|
|
46991
|
+
const r = n.needs, o = Ke(() => t.map((d) => ni(e.type, d)), [e.type, t.join("\0")]), s = o.join("\0"), i = De(
|
|
46988
46992
|
(d) => {
|
|
46989
46993
|
const p = o.map((h) => Fg(h, d));
|
|
46990
46994
|
return () => p.forEach((h) => h());
|
|
46991
46995
|
},
|
|
46992
46996
|
[s]
|
|
46993
|
-
), a =
|
|
46997
|
+
), a = Ve(null), l = De(() => {
|
|
46994
46998
|
const d = o.map((g) => Ra(g, r)), p = a.current;
|
|
46995
46999
|
if (p && p.signature === s && p.needs === r && p.states.length === d.length && p.states.every((g, x) => g === d[x]))
|
|
46996
47000
|
return p.states;
|
|
46997
47001
|
const h = Object.freeze(d);
|
|
46998
47002
|
return a.current = { signature: s, needs: r, states: h }, h;
|
|
46999
|
-
}, [s, r]), c =
|
|
47000
|
-
return
|
|
47003
|
+
}, [s, r]), c = Ke(() => Object.freeze(o.map(() => Sa)), [s]), u = De(() => c, [c]), m = kr(i, l, u);
|
|
47004
|
+
return Qe(() => zg(o), [s]), m;
|
|
47001
47005
|
}
|
|
47002
47006
|
function FU() {
|
|
47003
47007
|
return kr(wk, Lg, W4);
|
|
@@ -47399,8 +47403,8 @@ function LU({
|
|
|
47399
47403
|
children: r,
|
|
47400
47404
|
...o
|
|
47401
47405
|
}) {
|
|
47402
|
-
const [s] = Ee(() => new sH({ transport: e, tenant: t, ...o })), i =
|
|
47403
|
-
return
|
|
47406
|
+
const [s] = Ee(() => new sH({ transport: e, tenant: t, ...o })), i = Ve(t);
|
|
47407
|
+
return Qe(() => (s.start(), () => s.stop()), [s]), Qe(() => {
|
|
47404
47408
|
i.current !== t && (i.current = t, s.setTenant(t)), n && O4(t);
|
|
47405
47409
|
}, [s, t, n]), /* @__PURE__ */ f(Rk.Provider, { value: s, children: r });
|
|
47406
47410
|
}
|
|
@@ -47408,8 +47412,8 @@ function Ek() {
|
|
|
47408
47412
|
return Ln(Rk);
|
|
47409
47413
|
}
|
|
47410
47414
|
function zU(e, t, n) {
|
|
47411
|
-
const r = Ek(), o = Sk(Ck(t)), s = [...n].sort().join(","), i =
|
|
47412
|
-
i.current = { scope: t, events: n },
|
|
47415
|
+
const r = Ek(), o = Sk(Ck(t)), s = [...n].sort().join(","), i = Ve({ scope: t, events: n });
|
|
47416
|
+
i.current = { scope: t, events: n }, Qe(() => {
|
|
47413
47417
|
if (r)
|
|
47414
47418
|
return r.acquire(e.type, i.current.scope, i.current.events);
|
|
47415
47419
|
}, [r, e.type, o, s]);
|
|
@@ -47647,34 +47651,38 @@ function GU() {
|
|
|
47647
47651
|
}
|
|
47648
47652
|
const Mk = { inFlight: !1, settled: !1, error: void 0 };
|
|
47649
47653
|
function jU(e, t, n) {
|
|
47650
|
-
const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : ni(e.type, t), l = X4(e, t, { needs: r }), [c, u] = Ee(Mk), m =
|
|
47654
|
+
const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : ni(e.type, t), l = X4(e, t, { needs: r }), [c, u] = Ee(Mk), m = Ve(n.fetch);
|
|
47651
47655
|
m.current = n.fetch;
|
|
47652
|
-
const d =
|
|
47656
|
+
const d = Ve(o);
|
|
47653
47657
|
d.current = o;
|
|
47654
|
-
const p =
|
|
47655
|
-
|
|
47658
|
+
const p = Ve(!0);
|
|
47659
|
+
Qe(() => (p.current = !0, () => {
|
|
47656
47660
|
p.current = !1;
|
|
47657
47661
|
}), []);
|
|
47658
|
-
const h =
|
|
47659
|
-
|
|
47660
|
-
|
|
47661
|
-
|
|
47662
|
-
|
|
47663
|
-
|
|
47664
|
-
|
|
47665
|
-
|
|
47666
|
-
|
|
47667
|
-
|
|
47668
|
-
|
|
47669
|
-
|
|
47670
|
-
|
|
47671
|
-
|
|
47672
|
-
|
|
47673
|
-
|
|
47674
|
-
|
|
47675
|
-
|
|
47676
|
-
|
|
47677
|
-
|
|
47662
|
+
const h = Ve(null);
|
|
47663
|
+
Qe(() => {
|
|
47664
|
+
if (a === null || !s) {
|
|
47665
|
+
h.current = null;
|
|
47666
|
+
return;
|
|
47667
|
+
}
|
|
47668
|
+
const x = new kk(async () => {
|
|
47669
|
+
const v = d.current ?? Dg();
|
|
47670
|
+
u((C) => ({ ...C, inFlight: !0 }));
|
|
47671
|
+
try {
|
|
47672
|
+
const C = await m.current();
|
|
47673
|
+
Gu(C, { source: "fetch", tag: r, tenant: v }), p.current && u({ inFlight: !1, settled: !0, error: void 0 });
|
|
47674
|
+
} catch (C) {
|
|
47675
|
+
p.current && u({ inFlight: !1, settled: !0, error: Tk(C) });
|
|
47676
|
+
}
|
|
47677
|
+
}, { minIntervalMs: i });
|
|
47678
|
+
h.current = x, x.runNow();
|
|
47679
|
+
const y = [a], w = Nk({ roots: () => y, request: () => x.request() });
|
|
47680
|
+
return () => {
|
|
47681
|
+
w(), x.dispose(), h.current === x && (h.current = null);
|
|
47682
|
+
};
|
|
47683
|
+
}, [a, r, s, i]);
|
|
47684
|
+
const g = De(() => h.current?.runNow(), []);
|
|
47685
|
+
return Ke(
|
|
47678
47686
|
() => ({
|
|
47679
47687
|
state: l,
|
|
47680
47688
|
data: l.status === "present" ? l.record : void 0,
|
|
@@ -47687,36 +47695,41 @@ function jU(e, t, n) {
|
|
|
47687
47695
|
);
|
|
47688
47696
|
}
|
|
47689
47697
|
function WU(e, t) {
|
|
47690
|
-
const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, acceptsCreated: a = !0 } = t, [l, c] = Ee(Mk), u =
|
|
47698
|
+
const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, acceptsCreated: a = !0 } = t, [l, c] = Ee(Mk), u = Ve(t.fetch);
|
|
47691
47699
|
u.current = t.fetch;
|
|
47692
|
-
const m =
|
|
47700
|
+
const m = Ve(o);
|
|
47693
47701
|
m.current = o;
|
|
47694
|
-
const d =
|
|
47695
|
-
|
|
47702
|
+
const d = Ve(!0);
|
|
47703
|
+
Qe(() => (d.current = !0, () => {
|
|
47696
47704
|
d.current = !1;
|
|
47697
|
-
}), []),
|
|
47705
|
+
}), []), Qe(
|
|
47698
47706
|
() => hH(n, { type: e.type, tag: r, acceptsCreated: a }),
|
|
47699
47707
|
[n, e.type, r, a]
|
|
47700
47708
|
);
|
|
47701
|
-
const p = De((w) => vH(n, w), [n]), h = De(() => CH(n), [n]), g = kr(p, h, fH), x =
|
|
47702
|
-
|
|
47703
|
-
|
|
47704
|
-
|
|
47705
|
-
|
|
47706
|
-
A4(v.items, { source: "fetch", tag: r, tenant: w }), gH(n, v.items.map((C) => RH(C, e.type)).filter(EH), v.meta), d.current && c({ inFlight: !1, settled: !0, error: void 0 });
|
|
47707
|
-
} catch (v) {
|
|
47708
|
-
d.current && c({ inFlight: !1, settled: !0, error: Tk(v) });
|
|
47709
|
+
const p = De((w) => vH(n, w), [n]), h = De(() => CH(n), [n]), g = kr(p, h, fH), x = Ve(null);
|
|
47710
|
+
Qe(() => {
|
|
47711
|
+
if (!s) {
|
|
47712
|
+
x.current = null;
|
|
47713
|
+
return;
|
|
47709
47714
|
}
|
|
47710
|
-
|
|
47711
|
-
|
|
47712
|
-
|
|
47713
|
-
|
|
47714
|
-
|
|
47715
|
-
|
|
47716
|
-
|
|
47717
|
-
|
|
47718
|
-
|
|
47719
|
-
|
|
47715
|
+
const w = new kk(async () => {
|
|
47716
|
+
const C = m.current ?? Dg();
|
|
47717
|
+
c((S) => ({ ...S, inFlight: !0 }));
|
|
47718
|
+
try {
|
|
47719
|
+
const S = await u.current();
|
|
47720
|
+
A4(S.items, { source: "fetch", tag: r, tenant: C }), gH(n, S.items.map((E) => RH(E, e.type)).filter(EH), S.meta), d.current && c({ inFlight: !1, settled: !0, error: void 0 });
|
|
47721
|
+
} catch (S) {
|
|
47722
|
+
d.current && c({ inFlight: !1, settled: !0, error: Tk(S) });
|
|
47723
|
+
}
|
|
47724
|
+
}, { minIntervalMs: i });
|
|
47725
|
+
x.current = w, w.runNow();
|
|
47726
|
+
const v = Nk({ roots: () => wH(n), request: () => w.request() });
|
|
47727
|
+
return () => {
|
|
47728
|
+
v(), w.dispose(), x.current === w && (x.current = null);
|
|
47729
|
+
};
|
|
47730
|
+
}, [n, r, s, i, e.type]);
|
|
47731
|
+
const y = De(() => x.current?.runNow(), []);
|
|
47732
|
+
return Ke(
|
|
47720
47733
|
() => ({
|
|
47721
47734
|
items: g.items,
|
|
47722
47735
|
pending: g.pending,
|
|
@@ -47738,7 +47751,7 @@ function KU(e, t) {
|
|
|
47738
47751
|
});
|
|
47739
47752
|
}
|
|
47740
47753
|
function qU(e = 6e4) {
|
|
47741
|
-
|
|
47754
|
+
Qe(() => {
|
|
47742
47755
|
const t = setInterval(() => Y4(), e);
|
|
47743
47756
|
return () => clearInterval(t);
|
|
47744
47757
|
}, [e]);
|