@ah-automation.nl/component-lib 0.0.18 → 0.0.20
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h, jsxs as W, Fragment as yn } from "react/jsx-runtime";
|
|
2
2
|
import * as g from "react";
|
|
3
|
-
import
|
|
3
|
+
import N, { forwardRef as qr, createElement as Cn, useState as At, useMemo as Ki, useLayoutEffect as Xi, useEffect as Yi, useRef as Zi } from "react";
|
|
4
4
|
import { Slot as Tn, Collapsible as zn, Dialog as Ge, Select as he, Popover as Vt, Checkbox as ir } from "radix-ui";
|
|
5
5
|
import * as Ji from "react-dom";
|
|
6
6
|
import Qi, { flushSync as ea } from "react-dom";
|
|
@@ -285,8 +285,8 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
285
285
|
continue;
|
|
286
286
|
a.push(b);
|
|
287
287
|
const _ = o(w, S);
|
|
288
|
-
for (let
|
|
289
|
-
const R = _[
|
|
288
|
+
for (let F = 0; F < _.length; ++F) {
|
|
289
|
+
const R = _[F];
|
|
290
290
|
a.push(y + R);
|
|
291
291
|
}
|
|
292
292
|
l = c + (l.length > 0 ? " " + l : l);
|
|
@@ -325,7 +325,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
325
325
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
326
326
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
327
327
|
Ea.test(e) && !_a.test(e)
|
|
328
|
-
), Hn = () => !1, Fa = (e) => Ma.test(e), Da = (e) => Ia.test(e),
|
|
328
|
+
), Hn = () => !1, Fa = (e) => Ma.test(e), Da = (e) => Ia.test(e), Na = (e) => !P(e) && !O(e), Pa = (e) => $e(e, io, Hn), P = (e) => eo.test(e), He = (e) => $e(e, ao, ka), dr = (e) => $e(e, Ha, q), Oa = (e) => $e(e, lo, no), Aa = (e) => $e(e, so, Hn), fr = (e) => $e(e, ro, Hn), $a = (e) => $e(e, oo, Da), xt = (e) => $e(e, uo, Fa), O = (e) => to.test(e), lt = (e) => qe(e, ao), Ta = (e) => qe(e, so), gr = (e) => qe(e, ro), za = (e) => qe(e, io), Va = (e) => qe(e, oo), Rt = (e) => qe(e, uo, !0), La = (e) => qe(e, lo, !0), $e = (e, n, t) => {
|
|
329
329
|
const r = eo.exec(e);
|
|
330
330
|
return r ? r[1] ? n(r[1]) : t(r[2]) : !1;
|
|
331
331
|
}, qe = (e, n, t = !1) => {
|
|
@@ -350,14 +350,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
350
350
|
"bottom-left",
|
|
351
351
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
352
352
|
"left-bottom"
|
|
353
|
-
], _ = () => [...b(), O,
|
|
354
|
-
span: ["full", Fe, O,
|
|
355
|
-
}, Fe, O,
|
|
356
|
-
position: [O,
|
|
353
|
+
], _ = () => [...b(), O, P], F = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], C = () => [O, P, l], E = () => [ke, "full", "auto", ...C()], I = () => [Fe, "none", "subgrid", O, P], T = () => ["auto", {
|
|
354
|
+
span: ["full", Fe, O, P]
|
|
355
|
+
}, Fe, O, P], H = () => [Fe, "auto", O, P], $ = () => ["auto", "min", "max", "fr", O, P], ne = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...C()], ee = () => [ke, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], ce = () => [ke, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], fe = () => [ke, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], A = () => [e, O, P], ze = () => [...b(), gr, fr, {
|
|
356
|
+
position: [O, P]
|
|
357
357
|
}], M = () => ["no-repeat", {
|
|
358
358
|
repeat: ["", "x", "y", "space", "round"]
|
|
359
|
-
}], z = () => ["auto", "cover", "contain", za,
|
|
360
|
-
size: [O,
|
|
359
|
+
}], z = () => ["auto", "cover", "contain", za, Pa, {
|
|
360
|
+
size: [O, P]
|
|
361
361
|
}], U = () => [Xt, lt, He], D = () => [
|
|
362
362
|
// Deprecated since Tailwind CSS v4.0.0
|
|
363
363
|
"",
|
|
@@ -365,15 +365,15 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
365
365
|
"full",
|
|
366
366
|
u,
|
|
367
367
|
O,
|
|
368
|
-
|
|
368
|
+
P
|
|
369
369
|
], B = () => ["", q, lt, He], X = () => ["solid", "dashed", "dotted", "double"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [q, Xt, gr, fr], ve = () => [
|
|
370
370
|
// Deprecated since Tailwind CSS v4.0.0
|
|
371
371
|
"",
|
|
372
372
|
"none",
|
|
373
373
|
v,
|
|
374
374
|
O,
|
|
375
|
-
|
|
376
|
-
], be = () => ["none", q, O,
|
|
375
|
+
P
|
|
376
|
+
], be = () => ["none", q, O, P], Ve = () => ["none", q, O, P], Xe = () => [q, O, P], j = () => [ke, "full", ...C()];
|
|
377
377
|
return {
|
|
378
378
|
cacheSize: 500,
|
|
379
379
|
theme: {
|
|
@@ -385,7 +385,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
385
385
|
container: [Re],
|
|
386
386
|
"drop-shadow": [Re],
|
|
387
387
|
ease: ["in", "out", "in-out"],
|
|
388
|
-
font: [
|
|
388
|
+
font: [Na],
|
|
389
389
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
390
390
|
"inset-shadow": [Re],
|
|
391
391
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -406,7 +406,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
406
406
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
407
407
|
*/
|
|
408
408
|
aspect: [{
|
|
409
|
-
aspect: ["auto", "square", ke,
|
|
409
|
+
aspect: ["auto", "square", ke, P, O, S]
|
|
410
410
|
}],
|
|
411
411
|
/**
|
|
412
412
|
* Container
|
|
@@ -419,7 +419,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
419
419
|
* @see https://tailwindcss.com/docs/columns
|
|
420
420
|
*/
|
|
421
421
|
columns: [{
|
|
422
|
-
columns: [q,
|
|
422
|
+
columns: [q, P, O, s]
|
|
423
423
|
}],
|
|
424
424
|
/**
|
|
425
425
|
* Break After
|
|
@@ -504,21 +504,21 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
504
504
|
* @see https://tailwindcss.com/docs/overflow
|
|
505
505
|
*/
|
|
506
506
|
overflow: [{
|
|
507
|
-
overflow:
|
|
507
|
+
overflow: F()
|
|
508
508
|
}],
|
|
509
509
|
/**
|
|
510
510
|
* Overflow X
|
|
511
511
|
* @see https://tailwindcss.com/docs/overflow
|
|
512
512
|
*/
|
|
513
513
|
"overflow-x": [{
|
|
514
|
-
"overflow-x":
|
|
514
|
+
"overflow-x": F()
|
|
515
515
|
}],
|
|
516
516
|
/**
|
|
517
517
|
* Overflow Y
|
|
518
518
|
* @see https://tailwindcss.com/docs/overflow
|
|
519
519
|
*/
|
|
520
520
|
"overflow-y": [{
|
|
521
|
-
"overflow-y":
|
|
521
|
+
"overflow-y": F()
|
|
522
522
|
}],
|
|
523
523
|
/**
|
|
524
524
|
* Overscroll Behavior
|
|
@@ -645,7 +645,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
645
645
|
* @see https://tailwindcss.com/docs/z-index
|
|
646
646
|
*/
|
|
647
647
|
z: [{
|
|
648
|
-
z: [Fe, "auto", O,
|
|
648
|
+
z: [Fe, "auto", O, P]
|
|
649
649
|
}],
|
|
650
650
|
// ------------------------
|
|
651
651
|
// --- Flexbox and Grid ---
|
|
@@ -676,28 +676,28 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
676
676
|
* @see https://tailwindcss.com/docs/flex
|
|
677
677
|
*/
|
|
678
678
|
flex: [{
|
|
679
|
-
flex: [q, ke, "auto", "initial", "none",
|
|
679
|
+
flex: [q, ke, "auto", "initial", "none", P]
|
|
680
680
|
}],
|
|
681
681
|
/**
|
|
682
682
|
* Flex Grow
|
|
683
683
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
684
684
|
*/
|
|
685
685
|
grow: [{
|
|
686
|
-
grow: ["", q, O,
|
|
686
|
+
grow: ["", q, O, P]
|
|
687
687
|
}],
|
|
688
688
|
/**
|
|
689
689
|
* Flex Shrink
|
|
690
690
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
691
691
|
*/
|
|
692
692
|
shrink: [{
|
|
693
|
-
shrink: ["", q, O,
|
|
693
|
+
shrink: ["", q, O, P]
|
|
694
694
|
}],
|
|
695
695
|
/**
|
|
696
696
|
* Order
|
|
697
697
|
* @see https://tailwindcss.com/docs/order
|
|
698
698
|
*/
|
|
699
699
|
order: [{
|
|
700
|
-
order: [Fe, "first", "last", "none", O,
|
|
700
|
+
order: [Fe, "first", "last", "none", O, P]
|
|
701
701
|
}],
|
|
702
702
|
/**
|
|
703
703
|
* Grid Template Columns
|
|
@@ -1186,7 +1186,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1186
1186
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1187
1187
|
*/
|
|
1188
1188
|
"font-stretch": [{
|
|
1189
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xt,
|
|
1189
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Xt, P]
|
|
1190
1190
|
}],
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Font Family
|
|
@@ -1200,7 +1200,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1200
1200
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
1201
1201
|
*/
|
|
1202
1202
|
"font-features": [{
|
|
1203
|
-
"font-features": [
|
|
1203
|
+
"font-features": [P]
|
|
1204
1204
|
}],
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Font Variant Numeric
|
|
@@ -1237,7 +1237,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1237
1237
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1238
1238
|
*/
|
|
1239
1239
|
tracking: [{
|
|
1240
|
-
tracking: [o, O,
|
|
1240
|
+
tracking: [o, O, P]
|
|
1241
1241
|
}],
|
|
1242
1242
|
/**
|
|
1243
1243
|
* Line Clamp
|
|
@@ -1262,7 +1262,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1262
1262
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1263
1263
|
*/
|
|
1264
1264
|
"list-image": [{
|
|
1265
|
-
"list-image": ["none", O,
|
|
1265
|
+
"list-image": ["none", O, P]
|
|
1266
1266
|
}],
|
|
1267
1267
|
/**
|
|
1268
1268
|
* List Style Position
|
|
@@ -1276,7 +1276,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1276
1276
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1277
1277
|
*/
|
|
1278
1278
|
"list-style-type": [{
|
|
1279
|
-
list: ["disc", "decimal", "none", O,
|
|
1279
|
+
list: ["disc", "decimal", "none", O, P]
|
|
1280
1280
|
}],
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Text Alignment
|
|
@@ -1331,7 +1331,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1331
1331
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1332
1332
|
*/
|
|
1333
1333
|
"underline-offset": [{
|
|
1334
|
-
"underline-offset": [q, "auto", O,
|
|
1334
|
+
"underline-offset": [q, "auto", O, P]
|
|
1335
1335
|
}],
|
|
1336
1336
|
/**
|
|
1337
1337
|
* Text Transform
|
|
@@ -1362,7 +1362,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1362
1362
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1363
1363
|
*/
|
|
1364
1364
|
"vertical-align": [{
|
|
1365
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", O,
|
|
1365
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", O, P]
|
|
1366
1366
|
}],
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Whitespace
|
|
@@ -1397,7 +1397,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1397
1397
|
* @see https://tailwindcss.com/docs/content
|
|
1398
1398
|
*/
|
|
1399
1399
|
content: [{
|
|
1400
|
-
content: ["none", O,
|
|
1400
|
+
content: ["none", O, P]
|
|
1401
1401
|
}],
|
|
1402
1402
|
// -------------------
|
|
1403
1403
|
// --- Backgrounds ---
|
|
@@ -1452,9 +1452,9 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1452
1452
|
bg: ["none", {
|
|
1453
1453
|
linear: [{
|
|
1454
1454
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1455
|
-
}, Fe, O,
|
|
1456
|
-
radial: ["", O,
|
|
1457
|
-
conic: [Fe, O,
|
|
1455
|
+
}, Fe, O, P],
|
|
1456
|
+
radial: ["", O, P],
|
|
1457
|
+
conic: [Fe, O, P]
|
|
1458
1458
|
}, Va, $a]
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
@@ -1825,7 +1825,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1826
1826
|
*/
|
|
1827
1827
|
"outline-offset": [{
|
|
1828
|
-
"outline-offset": [q, O,
|
|
1828
|
+
"outline-offset": [q, O, P]
|
|
1829
1829
|
}],
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Outline Width
|
|
@@ -1951,7 +1951,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
1951
1951
|
* @see https://tailwindcss.com/docs/opacity
|
|
1952
1952
|
*/
|
|
1953
1953
|
opacity: [{
|
|
1954
|
-
opacity: [q, O,
|
|
1954
|
+
opacity: [q, O, P]
|
|
1955
1955
|
}],
|
|
1956
1956
|
/**
|
|
1957
1957
|
* Mix Blend Mode
|
|
@@ -2073,7 +2073,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2073
2073
|
"mask-y-to": A()
|
|
2074
2074
|
}],
|
|
2075
2075
|
"mask-image-radial": [{
|
|
2076
|
-
"mask-radial": [O,
|
|
2076
|
+
"mask-radial": [O, P]
|
|
2077
2077
|
}],
|
|
2078
2078
|
"mask-image-radial-from-pos": [{
|
|
2079
2079
|
"mask-radial-from": K()
|
|
@@ -2161,7 +2161,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2161
2161
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2162
2162
|
*/
|
|
2163
2163
|
"mask-image": [{
|
|
2164
|
-
mask: ["none", O,
|
|
2164
|
+
mask: ["none", O, P]
|
|
2165
2165
|
}],
|
|
2166
2166
|
// ---------------
|
|
2167
2167
|
// --- Filters ---
|
|
@@ -2176,7 +2176,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2176
2176
|
"",
|
|
2177
2177
|
"none",
|
|
2178
2178
|
O,
|
|
2179
|
-
|
|
2179
|
+
P
|
|
2180
2180
|
]
|
|
2181
2181
|
}],
|
|
2182
2182
|
/**
|
|
@@ -2191,14 +2191,14 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2191
2191
|
* @see https://tailwindcss.com/docs/brightness
|
|
2192
2192
|
*/
|
|
2193
2193
|
brightness: [{
|
|
2194
|
-
brightness: [q, O,
|
|
2194
|
+
brightness: [q, O, P]
|
|
2195
2195
|
}],
|
|
2196
2196
|
/**
|
|
2197
2197
|
* Contrast
|
|
2198
2198
|
* @see https://tailwindcss.com/docs/contrast
|
|
2199
2199
|
*/
|
|
2200
2200
|
contrast: [{
|
|
2201
|
-
contrast: [q, O,
|
|
2201
|
+
contrast: [q, O, P]
|
|
2202
2202
|
}],
|
|
2203
2203
|
/**
|
|
2204
2204
|
* Drop Shadow
|
|
@@ -2226,35 +2226,35 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2226
2226
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2227
2227
|
*/
|
|
2228
2228
|
grayscale: [{
|
|
2229
|
-
grayscale: ["", q, O,
|
|
2229
|
+
grayscale: ["", q, O, P]
|
|
2230
2230
|
}],
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Hue Rotate
|
|
2233
2233
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2234
2234
|
*/
|
|
2235
2235
|
"hue-rotate": [{
|
|
2236
|
-
"hue-rotate": [q, O,
|
|
2236
|
+
"hue-rotate": [q, O, P]
|
|
2237
2237
|
}],
|
|
2238
2238
|
/**
|
|
2239
2239
|
* Invert
|
|
2240
2240
|
* @see https://tailwindcss.com/docs/invert
|
|
2241
2241
|
*/
|
|
2242
2242
|
invert: [{
|
|
2243
|
-
invert: ["", q, O,
|
|
2243
|
+
invert: ["", q, O, P]
|
|
2244
2244
|
}],
|
|
2245
2245
|
/**
|
|
2246
2246
|
* Saturate
|
|
2247
2247
|
* @see https://tailwindcss.com/docs/saturate
|
|
2248
2248
|
*/
|
|
2249
2249
|
saturate: [{
|
|
2250
|
-
saturate: [q, O,
|
|
2250
|
+
saturate: [q, O, P]
|
|
2251
2251
|
}],
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Sepia
|
|
2254
2254
|
* @see https://tailwindcss.com/docs/sepia
|
|
2255
2255
|
*/
|
|
2256
2256
|
sepia: [{
|
|
2257
|
-
sepia: ["", q, O,
|
|
2257
|
+
sepia: ["", q, O, P]
|
|
2258
2258
|
}],
|
|
2259
2259
|
/**
|
|
2260
2260
|
* Backdrop Filter
|
|
@@ -2266,7 +2266,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2266
2266
|
"",
|
|
2267
2267
|
"none",
|
|
2268
2268
|
O,
|
|
2269
|
-
|
|
2269
|
+
P
|
|
2270
2270
|
]
|
|
2271
2271
|
}],
|
|
2272
2272
|
/**
|
|
@@ -2281,56 +2281,56 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2281
2281
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2282
2282
|
*/
|
|
2283
2283
|
"backdrop-brightness": [{
|
|
2284
|
-
"backdrop-brightness": [q, O,
|
|
2284
|
+
"backdrop-brightness": [q, O, P]
|
|
2285
2285
|
}],
|
|
2286
2286
|
/**
|
|
2287
2287
|
* Backdrop Contrast
|
|
2288
2288
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2289
2289
|
*/
|
|
2290
2290
|
"backdrop-contrast": [{
|
|
2291
|
-
"backdrop-contrast": [q, O,
|
|
2291
|
+
"backdrop-contrast": [q, O, P]
|
|
2292
2292
|
}],
|
|
2293
2293
|
/**
|
|
2294
2294
|
* Backdrop Grayscale
|
|
2295
2295
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2296
2296
|
*/
|
|
2297
2297
|
"backdrop-grayscale": [{
|
|
2298
|
-
"backdrop-grayscale": ["", q, O,
|
|
2298
|
+
"backdrop-grayscale": ["", q, O, P]
|
|
2299
2299
|
}],
|
|
2300
2300
|
/**
|
|
2301
2301
|
* Backdrop Hue Rotate
|
|
2302
2302
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2303
2303
|
*/
|
|
2304
2304
|
"backdrop-hue-rotate": [{
|
|
2305
|
-
"backdrop-hue-rotate": [q, O,
|
|
2305
|
+
"backdrop-hue-rotate": [q, O, P]
|
|
2306
2306
|
}],
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Backdrop Invert
|
|
2309
2309
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2310
2310
|
*/
|
|
2311
2311
|
"backdrop-invert": [{
|
|
2312
|
-
"backdrop-invert": ["", q, O,
|
|
2312
|
+
"backdrop-invert": ["", q, O, P]
|
|
2313
2313
|
}],
|
|
2314
2314
|
/**
|
|
2315
2315
|
* Backdrop Opacity
|
|
2316
2316
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2317
2317
|
*/
|
|
2318
2318
|
"backdrop-opacity": [{
|
|
2319
|
-
"backdrop-opacity": [q, O,
|
|
2319
|
+
"backdrop-opacity": [q, O, P]
|
|
2320
2320
|
}],
|
|
2321
2321
|
/**
|
|
2322
2322
|
* Backdrop Saturate
|
|
2323
2323
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2324
2324
|
*/
|
|
2325
2325
|
"backdrop-saturate": [{
|
|
2326
|
-
"backdrop-saturate": [q, O,
|
|
2326
|
+
"backdrop-saturate": [q, O, P]
|
|
2327
2327
|
}],
|
|
2328
2328
|
/**
|
|
2329
2329
|
* Backdrop Sepia
|
|
2330
2330
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2331
2331
|
*/
|
|
2332
2332
|
"backdrop-sepia": [{
|
|
2333
|
-
"backdrop-sepia": ["", q, O,
|
|
2333
|
+
"backdrop-sepia": ["", q, O, P]
|
|
2334
2334
|
}],
|
|
2335
2335
|
// --------------
|
|
2336
2336
|
// --- Tables ---
|
|
@@ -2385,7 +2385,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2385
2385
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2386
2386
|
*/
|
|
2387
2387
|
transition: [{
|
|
2388
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", O,
|
|
2388
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", O, P]
|
|
2389
2389
|
}],
|
|
2390
2390
|
/**
|
|
2391
2391
|
* Transition Behavior
|
|
@@ -2399,28 +2399,28 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2399
2399
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2400
2400
|
*/
|
|
2401
2401
|
duration: [{
|
|
2402
|
-
duration: [q, "initial", O,
|
|
2402
|
+
duration: [q, "initial", O, P]
|
|
2403
2403
|
}],
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Transition Timing Function
|
|
2406
2406
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2407
2407
|
*/
|
|
2408
2408
|
ease: [{
|
|
2409
|
-
ease: ["linear", "initial", w, O,
|
|
2409
|
+
ease: ["linear", "initial", w, O, P]
|
|
2410
2410
|
}],
|
|
2411
2411
|
/**
|
|
2412
2412
|
* Transition Delay
|
|
2413
2413
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2414
2414
|
*/
|
|
2415
2415
|
delay: [{
|
|
2416
|
-
delay: [q, O,
|
|
2416
|
+
delay: [q, O, P]
|
|
2417
2417
|
}],
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Animation
|
|
2420
2420
|
* @see https://tailwindcss.com/docs/animation
|
|
2421
2421
|
*/
|
|
2422
2422
|
animate: [{
|
|
2423
|
-
animate: ["none", x, O,
|
|
2423
|
+
animate: ["none", x, O, P]
|
|
2424
2424
|
}],
|
|
2425
2425
|
// ------------------
|
|
2426
2426
|
// --- Transforms ---
|
|
@@ -2437,7 +2437,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2437
2437
|
* @see https://tailwindcss.com/docs/perspective
|
|
2438
2438
|
*/
|
|
2439
2439
|
perspective: [{
|
|
2440
|
-
perspective: [p, O,
|
|
2440
|
+
perspective: [p, O, P]
|
|
2441
2441
|
}],
|
|
2442
2442
|
/**
|
|
2443
2443
|
* Perspective Origin
|
|
@@ -2533,7 +2533,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2533
2533
|
* @see https://tailwindcss.com/docs/transform
|
|
2534
2534
|
*/
|
|
2535
2535
|
transform: [{
|
|
2536
|
-
transform: [O,
|
|
2536
|
+
transform: [O, P, "", "none", "gpu", "cpu"]
|
|
2537
2537
|
}],
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Transform Origin
|
|
@@ -2618,7 +2618,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2618
2618
|
* @see https://tailwindcss.com/docs/cursor
|
|
2619
2619
|
*/
|
|
2620
2620
|
cursor: [{
|
|
2621
|
-
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", O,
|
|
2621
|
+
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", O, P]
|
|
2622
2622
|
}],
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Field Sizing
|
|
@@ -2868,7 +2868,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2868
2868
|
* @see https://tailwindcss.com/docs/will-change
|
|
2869
2869
|
*/
|
|
2870
2870
|
"will-change": [{
|
|
2871
|
-
"will-change": ["auto", "scroll", "contents", "transform", O,
|
|
2871
|
+
"will-change": ["auto", "scroll", "contents", "transform", O, P]
|
|
2872
2872
|
}],
|
|
2873
2873
|
// -----------
|
|
2874
2874
|
// --- SVG ---
|
|
@@ -2961,7 +2961,7 @@ const ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, sr = Xr, V
|
|
|
2961
2961
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2962
2962
|
};
|
|
2963
2963
|
}, Ga = /* @__PURE__ */ ya(Ba);
|
|
2964
|
-
function
|
|
2964
|
+
function k(...e) {
|
|
2965
2965
|
return Ga(Xr(e));
|
|
2966
2966
|
}
|
|
2967
2967
|
const Wa = Vn(
|
|
@@ -3007,7 +3007,7 @@ function vt({
|
|
|
3007
3007
|
"data-slot": "button",
|
|
3008
3008
|
"data-variant": n,
|
|
3009
3009
|
"data-size": t,
|
|
3010
|
-
className:
|
|
3010
|
+
className: k(Wa({ variant: n, size: t, className: e })),
|
|
3011
3011
|
...o
|
|
3012
3012
|
}
|
|
3013
3013
|
);
|
|
@@ -3108,7 +3108,7 @@ const ss = [
|
|
|
3108
3108
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3109
3109
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3110
3110
|
], go = Te("x", ss);
|
|
3111
|
-
function
|
|
3111
|
+
function Pe(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
3112
3112
|
return function(o) {
|
|
3113
3113
|
if (e?.(o), t === !1 || !o.defaultPrevented)
|
|
3114
3114
|
return n?.(o);
|
|
@@ -3359,7 +3359,7 @@ var Es = "DismissableLayer", Rn = "dismissableLayer.update", _s = "dismissableLa
|
|
|
3359
3359
|
} = e, u = g.useContext(po), [c, m] = g.useState(null), d = c?.ownerDocument ?? globalThis?.document, [, f] = g.useState({}), v = Ke(n, (R) => m(R)), p = Array.from(u.layers), [S] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), w = p.indexOf(S), x = c ? p.indexOf(c) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, b = x >= w, _ = Fs((R) => {
|
|
3360
3360
|
const C = R.target, E = [...u.branches].some((I) => I.contains(C));
|
|
3361
3361
|
!b || E || (o?.(R), a?.(R), R.defaultPrevented || s?.());
|
|
3362
|
-
}, d),
|
|
3362
|
+
}, d), F = Ds((R) => {
|
|
3363
3363
|
const C = R.target;
|
|
3364
3364
|
[...u.branches].some((I) => I.contains(C)) || (i?.(R), a?.(R), R.defaultPrevented || s?.());
|
|
3365
3365
|
}, d);
|
|
@@ -3384,9 +3384,9 @@ var Es = "DismissableLayer", Rn = "dismissableLayer.update", _s = "dismissableLa
|
|
|
3384
3384
|
pointerEvents: y ? b ? "auto" : "none" : void 0,
|
|
3385
3385
|
...e.style
|
|
3386
3386
|
},
|
|
3387
|
-
onFocusCapture:
|
|
3388
|
-
onBlurCapture:
|
|
3389
|
-
onPointerDownCapture:
|
|
3387
|
+
onFocusCapture: Pe(e.onFocusCapture, F.onFocusCapture),
|
|
3388
|
+
onBlurCapture: Pe(e.onBlurCapture, F.onBlurCapture),
|
|
3389
|
+
onPointerDownCapture: Pe(
|
|
3390
3390
|
e.onPointerDownCapture,
|
|
3391
3391
|
_.onPointerDownCapture
|
|
3392
3392
|
)
|
|
@@ -3458,7 +3458,7 @@ function vo(e, n, t, { discrete: r }) {
|
|
|
3458
3458
|
const o = t.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: t });
|
|
3459
3459
|
n && o.addEventListener(e, n, { once: !0 }), r ? xs(o, i) : o.dispatchEvent(i);
|
|
3460
3460
|
}
|
|
3461
|
-
var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br = { bubbles: !1, cancelable: !0 },
|
|
3461
|
+
var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br = { bubbles: !1, cancelable: !0 }, Ns = "FocusScope", bo = g.forwardRef((e, n) => {
|
|
3462
3462
|
const {
|
|
3463
3463
|
loop: t = !1,
|
|
3464
3464
|
trapped: r = !1,
|
|
@@ -3501,7 +3501,7 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
|
|
|
3501
3501
|
const p = document.activeElement;
|
|
3502
3502
|
if (!s.contains(p)) {
|
|
3503
3503
|
const w = new CustomEvent(Yt, br);
|
|
3504
|
-
s.addEventListener(Yt, u), s.dispatchEvent(w), w.defaultPrevented || (
|
|
3504
|
+
s.addEventListener(Yt, u), s.dispatchEvent(w), w.defaultPrevented || (Ps(zs(wo(s)), { select: !0 }), document.activeElement === p && De(s));
|
|
3505
3505
|
}
|
|
3506
3506
|
return () => {
|
|
3507
3507
|
s.removeEventListener(Yt, u), setTimeout(() => {
|
|
@@ -3524,8 +3524,8 @@ var Yt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", br
|
|
|
3524
3524
|
);
|
|
3525
3525
|
return /* @__PURE__ */ h(ue.div, { tabIndex: -1, ...a, ref: d, onKeyDown: v });
|
|
3526
3526
|
});
|
|
3527
|
-
bo.displayName =
|
|
3528
|
-
function
|
|
3527
|
+
bo.displayName = Ns;
|
|
3528
|
+
function Ps(e, { select: n = !1 } = {}) {
|
|
3529
3529
|
const t = document.activeElement;
|
|
3530
3530
|
for (const r of e)
|
|
3531
3531
|
if (De(r, { select: n }), document.activeElement !== t) return;
|
|
@@ -3819,12 +3819,12 @@ var xo = Js(), en = function() {
|
|
|
3819
3819
|
onScrollCapture: en,
|
|
3820
3820
|
onWheelCapture: en,
|
|
3821
3821
|
onTouchMoveCapture: en
|
|
3822
|
-
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, m = e.shards, d = e.sideCar, f = e.noRelative, v = e.noIsolation, p = e.inert, S = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, y = e.gapMode, b = yo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d,
|
|
3822
|
+
}), o = r[0], i = r[1], a = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, c = e.enabled, m = e.shards, d = e.sideCar, f = e.noRelative, v = e.noIsolation, p = e.inert, S = e.allowPinchZoom, w = e.as, x = w === void 0 ? "div" : w, y = e.gapMode, b = yo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, F = Xs([t, n]), R = xe(xe({}, b), o);
|
|
3823
3823
|
return g.createElement(
|
|
3824
3824
|
g.Fragment,
|
|
3825
3825
|
null,
|
|
3826
3826
|
c && g.createElement(_, { sideCar: xo, removeScrollBar: u, shards: m, noRelative: f, noIsolation: v, inert: p, setCallbacks: i, allowPinchZoom: !!S, lockRef: t, gapMode: y }),
|
|
3827
|
-
a ? g.cloneElement(g.Children.only(s), xe(xe({}, R), { ref:
|
|
3827
|
+
a ? g.cloneElement(g.Children.only(s), xe(xe({}, R), { ref: F })) : g.createElement(x, xe({}, R, { className: l, ref: F }), s)
|
|
3828
3828
|
);
|
|
3829
3829
|
});
|
|
3830
3830
|
Wt.defaultProps = {
|
|
@@ -4070,16 +4070,16 @@ function xl(e) {
|
|
|
4070
4070
|
var s = g.useCallback(function(p, S) {
|
|
4071
4071
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4072
4072
|
return !a.current.allowPinchZoom;
|
|
4073
|
-
var w = Mt(p), x = t.current, y = "deltaX" in p ? p.deltaX : x[0] - w[0], b = "deltaY" in p ? p.deltaY : x[1] - w[1], _,
|
|
4074
|
-
if ("touches" in p && R === "h" &&
|
|
4073
|
+
var w = Mt(p), x = t.current, y = "deltaX" in p ? p.deltaX : x[0] - w[0], b = "deltaY" in p ? p.deltaY : x[1] - w[1], _, F = p.target, R = Math.abs(y) > Math.abs(b) ? "h" : "v";
|
|
4074
|
+
if ("touches" in p && R === "h" && F.type === "range")
|
|
4075
4075
|
return !1;
|
|
4076
|
-
var C = window.getSelection(), E = C && C.anchorNode, I = E ? E ===
|
|
4076
|
+
var C = window.getSelection(), E = C && C.anchorNode, I = E ? E === F || E.contains(F) : !1;
|
|
4077
4077
|
if (I)
|
|
4078
4078
|
return !1;
|
|
4079
|
-
var T = Er(R,
|
|
4079
|
+
var T = Er(R, F);
|
|
4080
4080
|
if (!T)
|
|
4081
4081
|
return !0;
|
|
4082
|
-
if (T ? _ = R : (_ = R === "v" ? "h" : "v", T = Er(R,
|
|
4082
|
+
if (T ? _ = R : (_ = R === "v" ? "h" : "v", T = Er(R, F)), !T)
|
|
4083
4083
|
return !1;
|
|
4084
4084
|
if (!r.current && "changedTouches" in p && (y || b) && (r.current = _), !_)
|
|
4085
4085
|
return !0;
|
|
@@ -4225,9 +4225,9 @@ var _l = function(e) {
|
|
|
4225
4225
|
);
|
|
4226
4226
|
};
|
|
4227
4227
|
Do.displayName = jt;
|
|
4228
|
-
var
|
|
4228
|
+
var No = "DialogTrigger", Dl = g.forwardRef(
|
|
4229
4229
|
(e, n) => {
|
|
4230
|
-
const { __scopeDialog: t, ...r } = e, o = ye(
|
|
4230
|
+
const { __scopeDialog: t, ...r } = e, o = ye(No, t), i = Ke(n, o.triggerRef);
|
|
4231
4231
|
return /* @__PURE__ */ h(
|
|
4232
4232
|
ue.button,
|
|
4233
4233
|
{
|
|
@@ -4238,33 +4238,33 @@ var Po = "DialogTrigger", Dl = g.forwardRef(
|
|
|
4238
4238
|
"data-state": Wn(o.open),
|
|
4239
4239
|
...r,
|
|
4240
4240
|
ref: i,
|
|
4241
|
-
onClick:
|
|
4241
|
+
onClick: Pe(e.onClick, o.onOpenToggle)
|
|
4242
4242
|
}
|
|
4243
4243
|
);
|
|
4244
4244
|
}
|
|
4245
4245
|
);
|
|
4246
|
-
Dl.displayName =
|
|
4247
|
-
var Bn = "DialogPortal", [
|
|
4246
|
+
Dl.displayName = No;
|
|
4247
|
+
var Bn = "DialogPortal", [Nl, Po] = Fo(Bn, {
|
|
4248
4248
|
forceMount: void 0
|
|
4249
4249
|
}), Oo = (e) => {
|
|
4250
4250
|
const { __scopeDialog: n, forceMount: t, children: r, container: o } = e, i = ye(Bn, n);
|
|
4251
|
-
return /* @__PURE__ */ h(
|
|
4251
|
+
return /* @__PURE__ */ h(Nl, { scope: n, forceMount: t, children: g.Children.map(r, (a) => /* @__PURE__ */ h(Gt, { present: t || i.open, children: /* @__PURE__ */ h(So, { asChild: !0, container: o, children: a }) })) });
|
|
4252
4252
|
};
|
|
4253
4253
|
Oo.displayName = Bn;
|
|
4254
4254
|
var Ht = "DialogOverlay", Ao = g.forwardRef(
|
|
4255
4255
|
(e, n) => {
|
|
4256
|
-
const t =
|
|
4256
|
+
const t = Po(Ht, e.__scopeDialog), { forceMount: r = t.forceMount, ...o } = e, i = ye(Ht, e.__scopeDialog);
|
|
4257
4257
|
return i.modal ? /* @__PURE__ */ h(Gt, { present: r || i.open, children: /* @__PURE__ */ h(Ol, { ...o, ref: n }) }) : null;
|
|
4258
4258
|
}
|
|
4259
4259
|
);
|
|
4260
4260
|
Ao.displayName = Ht;
|
|
4261
|
-
var
|
|
4261
|
+
var Pl = /* @__PURE__ */ mo("DialogOverlay.RemoveScroll"), Ol = g.forwardRef(
|
|
4262
4262
|
(e, n) => {
|
|
4263
4263
|
const { __scopeDialog: t, ...r } = e, o = ye(Ht, t);
|
|
4264
4264
|
return (
|
|
4265
4265
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4266
4266
|
// ie. when `Overlay` and `Content` are siblings
|
|
4267
|
-
/* @__PURE__ */ h(Io, { as:
|
|
4267
|
+
/* @__PURE__ */ h(Io, { as: Pl, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ h(
|
|
4268
4268
|
ue.div,
|
|
4269
4269
|
{
|
|
4270
4270
|
"data-state": Wn(o.open),
|
|
@@ -4277,7 +4277,7 @@ var Nl = /* @__PURE__ */ mo("DialogOverlay.RemoveScroll"), Ol = g.forwardRef(
|
|
|
4277
4277
|
}
|
|
4278
4278
|
), je = "DialogContent", $o = g.forwardRef(
|
|
4279
4279
|
(e, n) => {
|
|
4280
|
-
const t =
|
|
4280
|
+
const t = Po(je, e.__scopeDialog), { forceMount: r = t.forceMount, ...o } = e, i = ye(je, e.__scopeDialog);
|
|
4281
4281
|
return /* @__PURE__ */ h(Gt, { present: r || i.open, children: i.modal ? /* @__PURE__ */ h(Al, { ...o, ref: n }) : /* @__PURE__ */ h($l, { ...o, ref: n }) });
|
|
4282
4282
|
}
|
|
4283
4283
|
);
|
|
@@ -4295,14 +4295,14 @@ var Al = g.forwardRef(
|
|
|
4295
4295
|
ref: o,
|
|
4296
4296
|
trapFocus: t.open,
|
|
4297
4297
|
disableOutsidePointerEvents: !0,
|
|
4298
|
-
onCloseAutoFocus:
|
|
4298
|
+
onCloseAutoFocus: Pe(e.onCloseAutoFocus, (i) => {
|
|
4299
4299
|
i.preventDefault(), t.triggerRef.current?.focus();
|
|
4300
4300
|
}),
|
|
4301
|
-
onPointerDownOutside:
|
|
4301
|
+
onPointerDownOutside: Pe(e.onPointerDownOutside, (i) => {
|
|
4302
4302
|
const a = i.detail.originalEvent, s = a.button === 0 && a.ctrlKey === !0;
|
|
4303
4303
|
(a.button === 2 || s) && i.preventDefault();
|
|
4304
4304
|
}),
|
|
4305
|
-
onFocusOutside:
|
|
4305
|
+
onFocusOutside: Pe(
|
|
4306
4306
|
e.onFocusOutside,
|
|
4307
4307
|
(i) => i.preventDefault()
|
|
4308
4308
|
)
|
|
@@ -4386,7 +4386,7 @@ var Lo = "DialogClose", Ho = g.forwardRef(
|
|
|
4386
4386
|
type: "button",
|
|
4387
4387
|
...r,
|
|
4388
4388
|
ref: n,
|
|
4389
|
-
onClick:
|
|
4389
|
+
onClick: Pe(e.onClick, () => o.onOpenChange(!1))
|
|
4390
4390
|
}
|
|
4391
4391
|
);
|
|
4392
4392
|
}
|
|
@@ -4420,7 +4420,7 @@ function Gl(e) {
|
|
|
4420
4420
|
let n = document.head || document.getElementsByTagName("head")[0], t = document.createElement("style");
|
|
4421
4421
|
t.type = "text/css", n.appendChild(t), t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
4422
4422
|
}
|
|
4423
|
-
const Ko =
|
|
4423
|
+
const Ko = N.createContext({
|
|
4424
4424
|
drawerRef: {
|
|
4425
4425
|
current: null
|
|
4426
4426
|
},
|
|
@@ -4468,7 +4468,7 @@ const Ko = P.createContext({
|
|
|
4468
4468
|
container: null,
|
|
4469
4469
|
autoFocus: !1
|
|
4470
4470
|
}), wt = () => {
|
|
4471
|
-
const e =
|
|
4471
|
+
const e = N.useContext(Ko);
|
|
4472
4472
|
if (!e)
|
|
4473
4473
|
throw new Error("useDrawerContext must be used within a Drawer.Root");
|
|
4474
4474
|
return e;
|
|
@@ -4683,14 +4683,14 @@ const re = {
|
|
|
4683
4683
|
]
|
|
4684
4684
|
}, Qo = 0.4, iu = 0.25, au = 100, ei = 8, Be = 16, Mn = 26, sn = "vaul-dragging";
|
|
4685
4685
|
function ti(e) {
|
|
4686
|
-
const n =
|
|
4687
|
-
return
|
|
4686
|
+
const n = N.useRef(e);
|
|
4687
|
+
return N.useEffect(() => {
|
|
4688
4688
|
n.current = e;
|
|
4689
|
-
}),
|
|
4689
|
+
}), N.useMemo(() => (...t) => n.current == null ? void 0 : n.current.call(n, ...t), []);
|
|
4690
4690
|
}
|
|
4691
4691
|
function su({ defaultProp: e, onChange: n }) {
|
|
4692
|
-
const t =
|
|
4693
|
-
return
|
|
4692
|
+
const t = N.useState(e), [r] = t, o = N.useRef(r), i = ti(n);
|
|
4693
|
+
return N.useEffect(() => {
|
|
4694
4694
|
o.current !== r && (i(r), o.current = r);
|
|
4695
4695
|
}, [
|
|
4696
4696
|
r,
|
|
@@ -4703,7 +4703,7 @@ function ni({ prop: e, defaultProp: n, onChange: t = () => {
|
|
|
4703
4703
|
const [r, o] = su({
|
|
4704
4704
|
defaultProp: n,
|
|
4705
4705
|
onChange: t
|
|
4706
|
-
}), i = e !== void 0, a = i ? e : r, s = ti(t), l =
|
|
4706
|
+
}), i = e !== void 0, a = i ? e : r, s = ti(t), l = N.useCallback((u) => {
|
|
4707
4707
|
if (i) {
|
|
4708
4708
|
const m = typeof u == "function" ? u(e) : u;
|
|
4709
4709
|
m !== e && s(m);
|
|
@@ -4725,11 +4725,11 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4725
4725
|
prop: e,
|
|
4726
4726
|
defaultProp: t?.[0],
|
|
4727
4727
|
onChange: n
|
|
4728
|
-
}), [d, f] =
|
|
4728
|
+
}), [d, f] = N.useState(typeof window < "u" ? {
|
|
4729
4729
|
innerWidth: window.innerWidth,
|
|
4730
4730
|
innerHeight: window.innerHeight
|
|
4731
4731
|
} : void 0);
|
|
4732
|
-
|
|
4732
|
+
N.useEffect(() => {
|
|
4733
4733
|
function R() {
|
|
4734
4734
|
f({
|
|
4735
4735
|
innerWidth: window.innerWidth,
|
|
@@ -4738,16 +4738,16 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4738
4738
|
}
|
|
4739
4739
|
return window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
|
|
4740
4740
|
}, []);
|
|
4741
|
-
const v =
|
|
4741
|
+
const v = N.useMemo(() => c === t?.[t.length - 1] || null, [
|
|
4742
4742
|
t,
|
|
4743
4743
|
c
|
|
4744
|
-
]), p =
|
|
4744
|
+
]), p = N.useMemo(() => {
|
|
4745
4745
|
var R;
|
|
4746
4746
|
return (R = t?.findIndex((C) => C === c)) != null ? R : null;
|
|
4747
4747
|
}, [
|
|
4748
4748
|
t,
|
|
4749
4749
|
c
|
|
4750
|
-
]), S = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === c || !t, w =
|
|
4750
|
+
]), S = t && t.length > 0 && (i || i === 0) && !Number.isNaN(i) && t[i] === c || !t, w = N.useMemo(() => {
|
|
4751
4751
|
const R = l ? {
|
|
4752
4752
|
width: l.getBoundingClientRect().width,
|
|
4753
4753
|
height: l.getBoundingClientRect().height
|
|
@@ -4773,10 +4773,10 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4773
4773
|
t,
|
|
4774
4774
|
d,
|
|
4775
4775
|
l
|
|
4776
|
-
]), x =
|
|
4776
|
+
]), x = N.useMemo(() => p !== null ? w?.[p] : null, [
|
|
4777
4777
|
w,
|
|
4778
4778
|
p
|
|
4779
|
-
]), y =
|
|
4779
|
+
]), y = N.useCallback((R) => {
|
|
4780
4780
|
var C;
|
|
4781
4781
|
const E = (C = w?.findIndex((I) => I === R)) != null ? C : null;
|
|
4782
4782
|
a(E), le(r.current, {
|
|
@@ -4797,7 +4797,7 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4797
4797
|
o,
|
|
4798
4798
|
m
|
|
4799
4799
|
]);
|
|
4800
|
-
|
|
4800
|
+
N.useEffect(() => {
|
|
4801
4801
|
if (c || e) {
|
|
4802
4802
|
var R;
|
|
4803
4803
|
const C = (R = t?.findIndex((E) => E === e || E === c)) != null ? R : -1;
|
|
@@ -4843,7 +4843,7 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4843
4843
|
transform: ae(s) ? `translate3d(0, ${C}px, 0)` : `translate3d(${C}px, 0, 0)`
|
|
4844
4844
|
});
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4846
|
+
function F(R, C) {
|
|
4847
4847
|
if (!t || typeof p != "number" || !w || i === void 0) return null;
|
|
4848
4848
|
const E = p === i - 1;
|
|
4849
4849
|
if (p >= i && C)
|
|
@@ -4857,7 +4857,7 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4857
4857
|
isLastSnapPoint: v,
|
|
4858
4858
|
activeSnapPoint: c,
|
|
4859
4859
|
shouldFade: S,
|
|
4860
|
-
getPercentageDragged:
|
|
4860
|
+
getPercentageDragged: F,
|
|
4861
4861
|
setActiveSnapPoint: m,
|
|
4862
4862
|
activeSnapPointIndex: p,
|
|
4863
4863
|
onRelease: b,
|
|
@@ -4868,11 +4868,11 @@ function lu({ activeSnapPointProp: e, setActiveSnapPointProp: n, snapPoints: t,
|
|
|
4868
4868
|
const uu = () => () => {
|
|
4869
4869
|
};
|
|
4870
4870
|
function cu() {
|
|
4871
|
-
const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: o } = wt(), i =
|
|
4871
|
+
const { direction: e, isOpen: n, shouldScaleBackground: t, setBackgroundColorOnScale: r, noBodyStyles: o } = wt(), i = N.useRef(null), a = Ki(() => document.body.style.backgroundColor, []);
|
|
4872
4872
|
function s() {
|
|
4873
4873
|
return (window.innerWidth - Mn) / window.innerWidth;
|
|
4874
4874
|
}
|
|
4875
|
-
|
|
4875
|
+
N.useEffect(() => {
|
|
4876
4876
|
if (n && t) {
|
|
4877
4877
|
i.current && clearTimeout(i.current);
|
|
4878
4878
|
const l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
|
|
@@ -4908,7 +4908,7 @@ function cu() {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
let ct = null;
|
|
4910
4910
|
function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRestoration: o, noBodyStyles: i }) {
|
|
4911
|
-
const [a, s] =
|
|
4911
|
+
const [a, s] = N.useState(() => typeof window < "u" ? window.location.href : ""), l = N.useRef(0), u = N.useCallback(() => {
|
|
4912
4912
|
if (Ir() && ct === null && e && !i) {
|
|
4913
4913
|
ct = {
|
|
4914
4914
|
position: document.body.style.position,
|
|
@@ -4930,7 +4930,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4930
4930
|
}
|
|
4931
4931
|
}, [
|
|
4932
4932
|
e
|
|
4933
|
-
]), c =
|
|
4933
|
+
]), c = N.useCallback(() => {
|
|
4934
4934
|
if (Ir() && ct !== null && !i) {
|
|
4935
4935
|
const m = -parseInt(document.body.style.top, 10), d = -parseInt(document.body.style.left, 10);
|
|
4936
4936
|
Object.assign(document.body.style, ct), window.requestAnimationFrame(() => {
|
|
@@ -4944,14 +4944,14 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4944
4944
|
}, [
|
|
4945
4945
|
a
|
|
4946
4946
|
]);
|
|
4947
|
-
return
|
|
4947
|
+
return N.useEffect(() => {
|
|
4948
4948
|
function m() {
|
|
4949
4949
|
l.current = window.scrollY;
|
|
4950
4950
|
}
|
|
4951
4951
|
return m(), window.addEventListener("scroll", m), () => {
|
|
4952
4952
|
window.removeEventListener("scroll", m);
|
|
4953
4953
|
};
|
|
4954
|
-
}, []),
|
|
4954
|
+
}, []), N.useEffect(() => {
|
|
4955
4955
|
if (n)
|
|
4956
4956
|
return () => {
|
|
4957
4957
|
typeof document > "u" || document.querySelector("[data-vaul-drawer]") || c();
|
|
@@ -4959,7 +4959,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4959
4959
|
}, [
|
|
4960
4960
|
n,
|
|
4961
4961
|
c
|
|
4962
|
-
]),
|
|
4962
|
+
]), N.useEffect(() => {
|
|
4963
4963
|
t || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && u(), n || window.setTimeout(() => {
|
|
4964
4964
|
c();
|
|
4965
4965
|
}, 500)) : c());
|
|
@@ -4975,7 +4975,7 @@ function du({ isOpen: e, modal: n, nested: t, hasBeenOpened: r, preventScrollRes
|
|
|
4975
4975
|
restorePositionSetting: c
|
|
4976
4976
|
};
|
|
4977
4977
|
}
|
|
4978
|
-
function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, snapPoints: i, shouldScaleBackground: a = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = iu, scrollLockTimeout: u = au, dismissible: c = !0, handleOnly: m = !1, fadeFromIndex: d = i && i.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: p, modal: S = !0, onClose: w, nested: x, noBodyStyles: y = !1, direction: b = "bottom", defaultOpen: _ = !1, disablePreventScroll:
|
|
4978
|
+
function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, snapPoints: i, shouldScaleBackground: a = !1, setBackgroundColorOnScale: s = !0, closeThreshold: l = iu, scrollLockTimeout: u = au, dismissible: c = !0, handleOnly: m = !1, fadeFromIndex: d = i && i.length - 1, activeSnapPoint: f, setActiveSnapPoint: v, fixed: p, modal: S = !0, onClose: w, nested: x, noBodyStyles: y = !1, direction: b = "bottom", defaultOpen: _ = !1, disablePreventScroll: F = !0, snapToSequentialPoint: R = !1, preventScrollRestoration: C = !1, repositionInputs: E = !0, onAnimationEnd: I, container: T, autoFocus: H = !1 }) {
|
|
4979
4979
|
var $, ne;
|
|
4980
4980
|
const [J = !1, Q] = ni({
|
|
4981
4981
|
defaultProp: _,
|
|
@@ -4987,7 +4987,7 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
4987
4987
|
document.body.style.pointerEvents = "auto";
|
|
4988
4988
|
}), G || (document.body.style.pointerEvents = "auto");
|
|
4989
4989
|
}
|
|
4990
|
-
}), [ee, ce] =
|
|
4990
|
+
}), [ee, ce] = N.useState(!1), [fe, A] = N.useState(!1), [ze, M] = N.useState(!1), z = N.useRef(null), U = N.useRef(null), D = N.useRef(null), B = N.useRef(null), X = N.useRef(null), oe = N.useRef(!1), K = N.useRef(null), ve = N.useRef(0), be = N.useRef(!1), Ve = N.useRef(!_), Xe = N.useRef(0), j = N.useRef(null), Jn = N.useRef((($ = j.current) == null ? void 0 : $.getBoundingClientRect().height) || 0), Qn = N.useRef(((ne = j.current) == null ? void 0 : ne.getBoundingClientRect().width) || 0), Kt = N.useRef(0), Ai = N.useCallback((G) => {
|
|
4991
4991
|
i && G === at.length - 1 && (U.current = /* @__PURE__ */ new Date());
|
|
4992
4992
|
}, []), { activeSnapPoint: $i, activeSnapPointIndex: Ye, setActiveSnapPoint: er, onRelease: Ti, snapPointsOffset: at, onDrag: zi, shouldFade: tr, getPercentageDragged: Vi } = lu({
|
|
4993
4993
|
snapPoints: i,
|
|
@@ -5002,7 +5002,7 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5002
5002
|
snapToSequentialPoint: R
|
|
5003
5003
|
});
|
|
5004
5004
|
Zl({
|
|
5005
|
-
isDisabled: !J || fe || !S || ze || !ee || !E || !
|
|
5005
|
+
isDisabled: !J || fe || !S || ze || !ee || !E || !F
|
|
5006
5006
|
});
|
|
5007
5007
|
const { restorePositionSetting: Li } = du({
|
|
5008
5008
|
isOpen: J,
|
|
@@ -5089,11 +5089,11 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5089
5089
|
}
|
|
5090
5090
|
}
|
|
5091
5091
|
}
|
|
5092
|
-
|
|
5092
|
+
N.useEffect(() => {
|
|
5093
5093
|
window.requestAnimationFrame(() => {
|
|
5094
5094
|
Ve.current = !0;
|
|
5095
5095
|
});
|
|
5096
|
-
}, []),
|
|
5096
|
+
}, []), N.useEffect(() => {
|
|
5097
5097
|
var G;
|
|
5098
5098
|
function Z() {
|
|
5099
5099
|
if (!j.current || !E) return;
|
|
@@ -5193,7 +5193,7 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5193
5193
|
}
|
|
5194
5194
|
o?.(G, !0), rr();
|
|
5195
5195
|
}
|
|
5196
|
-
|
|
5196
|
+
N.useEffect(() => (J && (le(document.documentElement, {
|
|
5197
5197
|
scrollBehavior: "auto"
|
|
5198
5198
|
}), U.current = /* @__PURE__ */ new Date()), () => {
|
|
5199
5199
|
nu(document.documentElement, "scrollBehavior");
|
|
@@ -5228,19 +5228,19 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5228
5228
|
transform: ae(b) ? `scale(${Y}) translate3d(0, ${ie}px, 0)` : `scale(${Y}) translate3d(${ie}px, 0, 0)`
|
|
5229
5229
|
});
|
|
5230
5230
|
}
|
|
5231
|
-
return
|
|
5231
|
+
return N.useEffect(() => {
|
|
5232
5232
|
S || window.requestAnimationFrame(() => {
|
|
5233
5233
|
document.body.style.pointerEvents = "auto";
|
|
5234
5234
|
});
|
|
5235
5235
|
}, [
|
|
5236
5236
|
S
|
|
5237
|
-
]), /* @__PURE__ */
|
|
5237
|
+
]), /* @__PURE__ */ N.createElement(Wo, {
|
|
5238
5238
|
defaultOpen: _,
|
|
5239
5239
|
onOpenChange: (G) => {
|
|
5240
5240
|
!c && !G || (G ? ce(!0) : st(!0), Q(G));
|
|
5241
5241
|
},
|
|
5242
5242
|
open: J
|
|
5243
|
-
}, /* @__PURE__ */
|
|
5243
|
+
}, /* @__PURE__ */ N.createElement(Ko.Provider, {
|
|
5244
5244
|
value: {
|
|
5245
5245
|
activeSnapPoint: $i,
|
|
5246
5246
|
snapPoints: i,
|
|
@@ -5274,14 +5274,14 @@ function fu({ open: e, onOpenChange: n, children: t, onDrag: r, onRelease: o, sn
|
|
|
5274
5274
|
}
|
|
5275
5275
|
}, t));
|
|
5276
5276
|
}
|
|
5277
|
-
const ri = /* @__PURE__ */
|
|
5277
|
+
const ri = /* @__PURE__ */ N.forwardRef(function({ ...e }, n) {
|
|
5278
5278
|
const { overlayRef: t, snapPoints: r, onRelease: o, shouldFade: i, isOpen: a, modal: s, shouldAnimate: l } = wt(), u = Zo(n, t), c = r && r.length > 0;
|
|
5279
5279
|
if (!s)
|
|
5280
5280
|
return null;
|
|
5281
|
-
const m =
|
|
5281
|
+
const m = N.useCallback((d) => o(d), [
|
|
5282
5282
|
o
|
|
5283
5283
|
]);
|
|
5284
|
-
return /* @__PURE__ */
|
|
5284
|
+
return /* @__PURE__ */ N.createElement(Uo, {
|
|
5285
5285
|
onMouseUp: m,
|
|
5286
5286
|
ref: u,
|
|
5287
5287
|
"data-vaul-overlay": "",
|
|
@@ -5292,8 +5292,8 @@ const ri = /* @__PURE__ */ P.forwardRef(function({ ...e }, n) {
|
|
|
5292
5292
|
});
|
|
5293
5293
|
});
|
|
5294
5294
|
ri.displayName = "Drawer.Overlay";
|
|
5295
|
-
const oi = /* @__PURE__ */
|
|
5296
|
-
const { drawerRef: i, onPress: a, onRelease: s, onDrag: l, keyboardIsOpen: u, snapPointsOffset: c, activeSnapPointIndex: m, modal: d, isOpen: f, direction: v, snapPoints: p, container: S, handleOnly: w, shouldAnimate: x, autoFocus: y } = wt(), [b, _] =
|
|
5295
|
+
const oi = /* @__PURE__ */ N.forwardRef(function({ onPointerDownOutside: e, style: n, onOpenAutoFocus: t, ...r }, o) {
|
|
5296
|
+
const { drawerRef: i, onPress: a, onRelease: s, onDrag: l, keyboardIsOpen: u, snapPointsOffset: c, activeSnapPointIndex: m, modal: d, isOpen: f, direction: v, snapPoints: p, container: S, handleOnly: w, shouldAnimate: x, autoFocus: y } = wt(), [b, _] = N.useState(!1), F = Zo(o, i), R = N.useRef(null), C = N.useRef(null), E = N.useRef(!1), I = p && p.length > 0;
|
|
5297
5297
|
cu();
|
|
5298
5298
|
const T = ($, ne, J = 0) => {
|
|
5299
5299
|
if (E.current) return !0;
|
|
@@ -5308,7 +5308,7 @@ const oi = /* @__PURE__ */ P.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5308
5308
|
return !ce;
|
|
5309
5309
|
return E.current = !0, !0;
|
|
5310
5310
|
};
|
|
5311
|
-
|
|
5311
|
+
N.useEffect(() => {
|
|
5312
5312
|
I && window.requestAnimationFrame(() => {
|
|
5313
5313
|
_(!0);
|
|
5314
5314
|
});
|
|
@@ -5316,7 +5316,7 @@ const oi = /* @__PURE__ */ P.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5316
5316
|
function H($) {
|
|
5317
5317
|
R.current = null, E.current = !1, s($);
|
|
5318
5318
|
}
|
|
5319
|
-
return /* @__PURE__ */
|
|
5319
|
+
return /* @__PURE__ */ N.createElement(qo, {
|
|
5320
5320
|
"data-vaul-drawer-direction": v,
|
|
5321
5321
|
"data-vaul-drawer": "",
|
|
5322
5322
|
"data-vaul-delayed-snap-points": b ? "true" : "false",
|
|
@@ -5324,7 +5324,7 @@ const oi = /* @__PURE__ */ P.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5324
5324
|
"data-vaul-custom-container": S ? "true" : "false",
|
|
5325
5325
|
"data-vaul-animate": x?.current ? "true" : "false",
|
|
5326
5326
|
...r,
|
|
5327
|
-
ref:
|
|
5327
|
+
ref: F,
|
|
5328
5328
|
style: c && c.length > 0 ? {
|
|
5329
5329
|
"--snap-point-height": `${c[m ?? 0]}px`,
|
|
5330
5330
|
...n
|
|
@@ -5371,8 +5371,8 @@ const oi = /* @__PURE__ */ P.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5371
5371
|
});
|
|
5372
5372
|
});
|
|
5373
5373
|
oi.displayName = "Drawer.Content";
|
|
5374
|
-
const gu = 250, mu = 120, pu = /* @__PURE__ */
|
|
5375
|
-
const { closeDrawer: o, isDragging: i, snapPoints: a, activeSnapPoint: s, setActiveSnapPoint: l, dismissible: u, handleOnly: c, isOpen: m, onPress: d, onDrag: f } = wt(), v =
|
|
5374
|
+
const gu = 250, mu = 120, pu = /* @__PURE__ */ N.forwardRef(function({ preventCycle: e = !1, children: n, ...t }, r) {
|
|
5375
|
+
const { closeDrawer: o, isDragging: i, snapPoints: a, activeSnapPoint: s, setActiveSnapPoint: l, dismissible: u, handleOnly: c, isOpen: m, onPress: d, onDrag: f } = wt(), v = N.useRef(null), p = N.useRef(!1);
|
|
5376
5376
|
function S() {
|
|
5377
5377
|
if (p.current) {
|
|
5378
5378
|
y();
|
|
@@ -5397,8 +5397,8 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ P.forwardRef(function({ preventCy
|
|
|
5397
5397
|
}
|
|
5398
5398
|
const _ = a.findIndex((R) => R === s);
|
|
5399
5399
|
if (_ === -1) return;
|
|
5400
|
-
const
|
|
5401
|
-
l(
|
|
5400
|
+
const F = a[_ + 1];
|
|
5401
|
+
l(F);
|
|
5402
5402
|
}
|
|
5403
5403
|
function x() {
|
|
5404
5404
|
v.current = window.setTimeout(() => {
|
|
@@ -5408,7 +5408,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ P.forwardRef(function({ preventCy
|
|
|
5408
5408
|
function y() {
|
|
5409
5409
|
v.current && window.clearTimeout(v.current), p.current = !1;
|
|
5410
5410
|
}
|
|
5411
|
-
return /* @__PURE__ */
|
|
5411
|
+
return /* @__PURE__ */ N.createElement("div", {
|
|
5412
5412
|
onClick: S,
|
|
5413
5413
|
onPointerCancel: y,
|
|
5414
5414
|
onPointerDown: (b) => {
|
|
@@ -5423,7 +5423,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ P.forwardRef(function({ preventCy
|
|
|
5423
5423
|
"data-vaul-handle": "",
|
|
5424
5424
|
"aria-hidden": "true",
|
|
5425
5425
|
...t
|
|
5426
|
-
}, /* @__PURE__ */
|
|
5426
|
+
}, /* @__PURE__ */ N.createElement("span", {
|
|
5427
5427
|
"data-vaul-handle-hitarea": "",
|
|
5428
5428
|
"aria-hidden": "true"
|
|
5429
5429
|
}, n));
|
|
@@ -5431,7 +5431,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ P.forwardRef(function({ preventCy
|
|
|
5431
5431
|
pu.displayName = "Drawer.Handle";
|
|
5432
5432
|
function hu(e) {
|
|
5433
5433
|
const n = wt(), { container: t = n.container, ...r } = e;
|
|
5434
|
-
return /* @__PURE__ */
|
|
5434
|
+
return /* @__PURE__ */ N.createElement(jo, {
|
|
5435
5435
|
container: t,
|
|
5436
5436
|
...r
|
|
5437
5437
|
});
|
|
@@ -5467,7 +5467,7 @@ function Su({
|
|
|
5467
5467
|
ot.Overlay,
|
|
5468
5468
|
{
|
|
5469
5469
|
"data-slot": "drawer-overlay",
|
|
5470
|
-
className:
|
|
5470
|
+
className: k(
|
|
5471
5471
|
"fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
5472
5472
|
e
|
|
5473
5473
|
),
|
|
@@ -5487,7 +5487,7 @@ function yu({
|
|
|
5487
5487
|
{
|
|
5488
5488
|
"aria-describedby": void 0,
|
|
5489
5489
|
"data-slot": "drawer-content",
|
|
5490
|
-
className:
|
|
5490
|
+
className: k(
|
|
5491
5491
|
"group/drawer-content fixed z-50 flex h-auto flex-col bg-background text-sm data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-xl data-[vaul-drawer-direction=bottom]:border-t data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm",
|
|
5492
5492
|
e
|
|
5493
5493
|
),
|
|
@@ -5508,7 +5508,7 @@ function Cu({
|
|
|
5508
5508
|
ot.Title,
|
|
5509
5509
|
{
|
|
5510
5510
|
"data-slot": "drawer-title",
|
|
5511
|
-
className:
|
|
5511
|
+
className: k("text-base font-medium text-foreground", e),
|
|
5512
5512
|
...n
|
|
5513
5513
|
}
|
|
5514
5514
|
);
|
|
@@ -5534,11 +5534,11 @@ function Qd({
|
|
|
5534
5534
|
children: /* @__PURE__ */ h(
|
|
5535
5535
|
yu,
|
|
5536
5536
|
{
|
|
5537
|
-
className:
|
|
5537
|
+
className: k(
|
|
5538
5538
|
"data-[vaul-drawer-direction=right]:w-[560px] data-[vaul-drawer-direction=right]:max-w-[90vw] border-l border-border bg-card text-card-foreground",
|
|
5539
5539
|
s
|
|
5540
5540
|
),
|
|
5541
|
-
children: /* @__PURE__ */ W("div", { className:
|
|
5541
|
+
children: /* @__PURE__ */ W("div", { className: k("flex h-full min-h-0 flex-col", a), children: [
|
|
5542
5542
|
/* @__PURE__ */ W("div", { className: "flex shrink-0 items-center justify-between border-b border-border p-6", children: [
|
|
5543
5543
|
/* @__PURE__ */ h(Cu, { className: "m-0 text-xl font-semibold text-foreground", children: t }),
|
|
5544
5544
|
/* @__PURE__ */ W("div", { className: "flex items-center gap-3", children: [
|
|
@@ -5575,7 +5575,7 @@ function Eu({
|
|
|
5575
5575
|
zn.Content,
|
|
5576
5576
|
{
|
|
5577
5577
|
"data-slot": "collapsible-content",
|
|
5578
|
-
className:
|
|
5578
|
+
className: k("overflow-hidden", e),
|
|
5579
5579
|
...n
|
|
5580
5580
|
}
|
|
5581
5581
|
);
|
|
@@ -5608,7 +5608,7 @@ function ku({
|
|
|
5608
5608
|
Ge.Overlay,
|
|
5609
5609
|
{
|
|
5610
5610
|
"data-slot": "sheet-overlay",
|
|
5611
|
-
className:
|
|
5611
|
+
className: k(
|
|
5612
5612
|
"fixed inset-0 z-50 bg-primary/14 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
|
|
5613
5613
|
e
|
|
5614
5614
|
),
|
|
@@ -5630,7 +5630,7 @@ function Fu({
|
|
|
5630
5630
|
{
|
|
5631
5631
|
"data-slot": "sheet-content",
|
|
5632
5632
|
"data-side": t,
|
|
5633
|
-
className:
|
|
5633
|
+
className: k(
|
|
5634
5634
|
"fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10",
|
|
5635
5635
|
e
|
|
5636
5636
|
),
|
|
@@ -5659,12 +5659,12 @@ function Du({ className: e, ...n }) {
|
|
|
5659
5659
|
"div",
|
|
5660
5660
|
{
|
|
5661
5661
|
"data-slot": "sheet-header",
|
|
5662
|
-
className:
|
|
5662
|
+
className: k("flex flex-col gap-0.5 p-4", e),
|
|
5663
5663
|
...n
|
|
5664
5664
|
}
|
|
5665
5665
|
);
|
|
5666
5666
|
}
|
|
5667
|
-
function
|
|
5667
|
+
function Nu({
|
|
5668
5668
|
className: e,
|
|
5669
5669
|
...n
|
|
5670
5670
|
}) {
|
|
@@ -5672,12 +5672,12 @@ function Pu({
|
|
|
5672
5672
|
Ge.Title,
|
|
5673
5673
|
{
|
|
5674
5674
|
"data-slot": "sheet-title",
|
|
5675
|
-
className:
|
|
5675
|
+
className: k("text-base font-medium text-foreground", e),
|
|
5676
5676
|
...n
|
|
5677
5677
|
}
|
|
5678
5678
|
);
|
|
5679
5679
|
}
|
|
5680
|
-
function
|
|
5680
|
+
function Pu({
|
|
5681
5681
|
className: e,
|
|
5682
5682
|
...n
|
|
5683
5683
|
}) {
|
|
@@ -5685,7 +5685,7 @@ function Nu({
|
|
|
5685
5685
|
Ge.Description,
|
|
5686
5686
|
{
|
|
5687
5687
|
"data-slot": "sheet-description",
|
|
5688
|
-
className:
|
|
5688
|
+
className: k("text-sm text-muted-foreground", e),
|
|
5689
5689
|
...n
|
|
5690
5690
|
}
|
|
5691
5691
|
);
|
|
@@ -5740,7 +5740,7 @@ function Lu({
|
|
|
5740
5740
|
"--sidebar-width-icon": zu,
|
|
5741
5741
|
...o
|
|
5742
5742
|
},
|
|
5743
|
-
className:
|
|
5743
|
+
className: k(
|
|
5744
5744
|
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
5745
5745
|
r
|
|
5746
5746
|
),
|
|
@@ -5763,7 +5763,7 @@ function Hu({
|
|
|
5763
5763
|
"div",
|
|
5764
5764
|
{
|
|
5765
5765
|
"data-slot": "sidebar",
|
|
5766
|
-
className:
|
|
5766
|
+
className: k(
|
|
5767
5767
|
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
5768
5768
|
r
|
|
5769
5769
|
),
|
|
@@ -5784,8 +5784,8 @@ function Hu({
|
|
|
5784
5784
|
side: e,
|
|
5785
5785
|
children: [
|
|
5786
5786
|
/* @__PURE__ */ W(Du, { className: "sr-only", children: [
|
|
5787
|
-
/* @__PURE__ */ h(
|
|
5788
|
-
/* @__PURE__ */ h(
|
|
5787
|
+
/* @__PURE__ */ h(Nu, { children: "Sidebar" }),
|
|
5788
|
+
/* @__PURE__ */ h(Pu, { children: "Displays the mobile sidebar." })
|
|
5789
5789
|
] }),
|
|
5790
5790
|
/* @__PURE__ */ h("div", { className: "flex h-full w-full flex-col", children: o })
|
|
5791
5791
|
]
|
|
@@ -5804,7 +5804,7 @@ function Hu({
|
|
|
5804
5804
|
"div",
|
|
5805
5805
|
{
|
|
5806
5806
|
"data-slot": "sidebar-gap",
|
|
5807
|
-
className:
|
|
5807
|
+
className: k(
|
|
5808
5808
|
"relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear",
|
|
5809
5809
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
5810
5810
|
"group-data-[side=right]:rotate-180",
|
|
@@ -5817,7 +5817,7 @@ function Hu({
|
|
|
5817
5817
|
{
|
|
5818
5818
|
"data-slot": "sidebar-container",
|
|
5819
5819
|
"data-side": e,
|
|
5820
|
-
className:
|
|
5820
|
+
className: k(
|
|
5821
5821
|
"fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex",
|
|
5822
5822
|
// Adjust the padding for floating and inset variants.
|
|
5823
5823
|
n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
@@ -5852,7 +5852,7 @@ function Bu({
|
|
|
5852
5852
|
"data-slot": "sidebar-trigger",
|
|
5853
5853
|
variant: "ghost",
|
|
5854
5854
|
size: "icon-sm",
|
|
5855
|
-
className:
|
|
5855
|
+
className: k(e),
|
|
5856
5856
|
onClick: (o) => {
|
|
5857
5857
|
n?.(o), r();
|
|
5858
5858
|
},
|
|
@@ -5870,7 +5870,7 @@ function Gu({ className: e, ...n }) {
|
|
|
5870
5870
|
{
|
|
5871
5871
|
"data-slot": "sidebar-header",
|
|
5872
5872
|
"data-sidebar": "header",
|
|
5873
|
-
className:
|
|
5873
|
+
className: k("flex flex-col gap-2 p-2", e),
|
|
5874
5874
|
...n
|
|
5875
5875
|
}
|
|
5876
5876
|
);
|
|
@@ -5881,7 +5881,7 @@ function Wu({ className: e, ...n }) {
|
|
|
5881
5881
|
{
|
|
5882
5882
|
"data-slot": "sidebar-footer",
|
|
5883
5883
|
"data-sidebar": "footer",
|
|
5884
|
-
className:
|
|
5884
|
+
className: k("flex flex-col gap-2 p-2", e),
|
|
5885
5885
|
...n
|
|
5886
5886
|
}
|
|
5887
5887
|
);
|
|
@@ -5892,7 +5892,7 @@ function ju({ className: e, ...n }) {
|
|
|
5892
5892
|
{
|
|
5893
5893
|
"data-slot": "sidebar-content",
|
|
5894
5894
|
"data-sidebar": "content",
|
|
5895
|
-
className:
|
|
5895
|
+
className: k(
|
|
5896
5896
|
"no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",
|
|
5897
5897
|
e
|
|
5898
5898
|
),
|
|
@@ -5906,7 +5906,7 @@ function Uu({ className: e, ...n }) {
|
|
|
5906
5906
|
{
|
|
5907
5907
|
"data-slot": "sidebar-group",
|
|
5908
5908
|
"data-sidebar": "group",
|
|
5909
|
-
className:
|
|
5909
|
+
className: k("relative flex w-full min-w-0 flex-col p-2", e),
|
|
5910
5910
|
...n
|
|
5911
5911
|
}
|
|
5912
5912
|
);
|
|
@@ -5920,29 +5920,29 @@ function qu({
|
|
|
5920
5920
|
{
|
|
5921
5921
|
"data-slot": "sidebar-group-content",
|
|
5922
5922
|
"data-sidebar": "group-content",
|
|
5923
|
-
className:
|
|
5923
|
+
className: k("w-full text-sm", e),
|
|
5924
5924
|
...n
|
|
5925
5925
|
}
|
|
5926
5926
|
);
|
|
5927
5927
|
}
|
|
5928
|
-
function
|
|
5928
|
+
function Nr({ className: e, ...n }) {
|
|
5929
5929
|
return /* @__PURE__ */ h(
|
|
5930
5930
|
"ul",
|
|
5931
5931
|
{
|
|
5932
5932
|
"data-slot": "sidebar-menu",
|
|
5933
5933
|
"data-sidebar": "menu",
|
|
5934
|
-
className:
|
|
5934
|
+
className: k("flex w-full min-w-0 flex-col gap-0", e),
|
|
5935
5935
|
...n
|
|
5936
5936
|
}
|
|
5937
5937
|
);
|
|
5938
5938
|
}
|
|
5939
|
-
function
|
|
5939
|
+
function Pr({ className: e, ...n }) {
|
|
5940
5940
|
return /* @__PURE__ */ h(
|
|
5941
5941
|
"li",
|
|
5942
5942
|
{
|
|
5943
5943
|
"data-slot": "sidebar-menu-item",
|
|
5944
5944
|
"data-sidebar": "menu-item",
|
|
5945
|
-
className:
|
|
5945
|
+
className: k("group/menu-item relative", e),
|
|
5946
5946
|
...n
|
|
5947
5947
|
}
|
|
5948
5948
|
);
|
|
@@ -5983,7 +5983,7 @@ function Or({
|
|
|
5983
5983
|
"data-sidebar": "menu-button",
|
|
5984
5984
|
"data-size": r,
|
|
5985
5985
|
"data-active": n,
|
|
5986
|
-
className:
|
|
5986
|
+
className: k(Ku({ variant: t, size: r }), o),
|
|
5987
5987
|
...i
|
|
5988
5988
|
}
|
|
5989
5989
|
);
|
|
@@ -5997,7 +5997,7 @@ function Xu({
|
|
|
5997
5997
|
{
|
|
5998
5998
|
"data-slot": "sidebar-menu-badge",
|
|
5999
5999
|
"data-sidebar": "menu-badge",
|
|
6000
|
-
className:
|
|
6000
|
+
className: k(
|
|
6001
6001
|
"pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",
|
|
6002
6002
|
e
|
|
6003
6003
|
),
|
|
@@ -6011,7 +6011,7 @@ function Yu({ className: e, ...n }) {
|
|
|
6011
6011
|
{
|
|
6012
6012
|
"data-slot": "sidebar-menu-sub",
|
|
6013
6013
|
"data-sidebar": "menu-sub",
|
|
6014
|
-
className:
|
|
6014
|
+
className: k(
|
|
6015
6015
|
"mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",
|
|
6016
6016
|
e
|
|
6017
6017
|
),
|
|
@@ -6028,7 +6028,7 @@ function Zu({
|
|
|
6028
6028
|
{
|
|
6029
6029
|
"data-slot": "sidebar-menu-sub-item",
|
|
6030
6030
|
"data-sidebar": "menu-sub-item",
|
|
6031
|
-
className:
|
|
6031
|
+
className: k("group/menu-sub-item relative", e),
|
|
6032
6032
|
...n
|
|
6033
6033
|
}
|
|
6034
6034
|
);
|
|
@@ -6048,7 +6048,7 @@ function Ju({
|
|
|
6048
6048
|
"data-sidebar": "menu-sub-button",
|
|
6049
6049
|
"data-size": n,
|
|
6050
6050
|
"data-active": t,
|
|
6051
|
-
className:
|
|
6051
|
+
className: k(
|
|
6052
6052
|
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
6053
6053
|
r
|
|
6054
6054
|
),
|
|
@@ -6097,15 +6097,15 @@ function ef({
|
|
|
6097
6097
|
}))
|
|
6098
6098
|
].sort((b, _) => b.order !== _.order ? b.order - _.order : b.originalIndex - _.originalIndex), [n, e]), [v, p] = g.useState(() => n.reduce(
|
|
6099
6099
|
(y, b, _) => {
|
|
6100
|
-
const
|
|
6101
|
-
return y[
|
|
6100
|
+
const F = cn(b, _);
|
|
6101
|
+
return y[F] = !!(b.defaultOpen || Ar(b, t)), y;
|
|
6102
6102
|
},
|
|
6103
6103
|
{}
|
|
6104
6104
|
));
|
|
6105
6105
|
g.useEffect(() => {
|
|
6106
6106
|
p((y) => n.reduce(
|
|
6107
|
-
(b, _,
|
|
6108
|
-
const R = cn(_,
|
|
6107
|
+
(b, _, F) => {
|
|
6108
|
+
const R = cn(_, F), C = y[R], E = Ar(_, t);
|
|
6109
6109
|
return typeof C == "boolean" ? (b[R] = E ? !0 : C, b) : (b[R] = !!(_.defaultOpen || E), b);
|
|
6110
6110
|
},
|
|
6111
6111
|
{}
|
|
@@ -6123,7 +6123,7 @@ function ef({
|
|
|
6123
6123
|
), w = g.useCallback(
|
|
6124
6124
|
(y) => {
|
|
6125
6125
|
const b = y.icon, _ = y.route === t;
|
|
6126
|
-
return /* @__PURE__ */ h(
|
|
6126
|
+
return /* @__PURE__ */ h(Nr, { className: "gap-1", children: /* @__PURE__ */ W(Pr, { className: k(m, y.className), children: [
|
|
6127
6127
|
/* @__PURE__ */ h(
|
|
6128
6128
|
Or,
|
|
6129
6129
|
{
|
|
@@ -6136,7 +6136,7 @@ function ef({
|
|
|
6136
6136
|
href: y.route,
|
|
6137
6137
|
"aria-current": _ ? "page" : void 0,
|
|
6138
6138
|
"aria-disabled": y.disabled,
|
|
6139
|
-
onClick: (
|
|
6139
|
+
onClick: (F) => S(y, F),
|
|
6140
6140
|
children: [
|
|
6141
6141
|
b ? /* @__PURE__ */ h(b, { className: "size-4" }) : null,
|
|
6142
6142
|
/* @__PURE__ */ h("span", { className: "group-data-[collapsible=icon]:hidden", children: y.label })
|
|
@@ -6151,7 +6151,7 @@ function ef({
|
|
|
6151
6151
|
[t, S, m]
|
|
6152
6152
|
), x = g.useCallback(
|
|
6153
6153
|
(y, b) => {
|
|
6154
|
-
const _ = cn(y, b),
|
|
6154
|
+
const _ = cn(y, b), F = v[_] ?? !1, R = y.icon, C = [...y.items].map((E, I) => ({
|
|
6155
6155
|
groupItem: E,
|
|
6156
6156
|
order: un(E.order),
|
|
6157
6157
|
index: I
|
|
@@ -6159,17 +6159,17 @@ function ef({
|
|
|
6159
6159
|
return /* @__PURE__ */ h(
|
|
6160
6160
|
xu,
|
|
6161
6161
|
{
|
|
6162
|
-
open:
|
|
6162
|
+
open: F,
|
|
6163
6163
|
onOpenChange: (E) => p((I) => ({
|
|
6164
6164
|
...I,
|
|
6165
6165
|
[_]: E
|
|
6166
6166
|
})),
|
|
6167
6167
|
className: "group/collapsible",
|
|
6168
6168
|
children: /* @__PURE__ */ W(Uu, { className: y.className + " !p-0", children: [
|
|
6169
|
-
/* @__PURE__ */ h(
|
|
6169
|
+
/* @__PURE__ */ h(Nr, { className: "gap-1", children: /* @__PURE__ */ h(Pr, { children: /* @__PURE__ */ h(Ru, { asChild: !0, children: /* @__PURE__ */ W(
|
|
6170
6170
|
Or,
|
|
6171
6171
|
{
|
|
6172
|
-
className:
|
|
6172
|
+
className: k(
|
|
6173
6173
|
"transition-colors hover:bg-sidebar-accent/55 data-open:hover:bg-sidebar-accent/55 !px-2",
|
|
6174
6174
|
y.labelClassName
|
|
6175
6175
|
),
|
|
@@ -6185,7 +6185,7 @@ function ef({
|
|
|
6185
6185
|
return /* @__PURE__ */ h(
|
|
6186
6186
|
Zu,
|
|
6187
6187
|
{
|
|
6188
|
-
className:
|
|
6188
|
+
className: k(
|
|
6189
6189
|
m,
|
|
6190
6190
|
y.itemClassName,
|
|
6191
6191
|
E.className
|
|
@@ -6232,30 +6232,30 @@ function ef({
|
|
|
6232
6232
|
Hu,
|
|
6233
6233
|
{
|
|
6234
6234
|
collapsible: "icon",
|
|
6235
|
-
className:
|
|
6235
|
+
className: k("h-full border-r border-sidebar-border/70", s),
|
|
6236
6236
|
children: [
|
|
6237
6237
|
/* @__PURE__ */ h(
|
|
6238
6238
|
Gu,
|
|
6239
6239
|
{
|
|
6240
|
-
className:
|
|
6240
|
+
className: k(
|
|
6241
6241
|
"border-b border-sidebar-border/70 p-2",
|
|
6242
6242
|
l
|
|
6243
6243
|
),
|
|
6244
|
-
children: /* @__PURE__ */
|
|
6245
|
-
i ? /* @__PURE__ */ h("div", { className: "min-w-0 flex-1 group-data-[collapsible=icon]:hidden p-2", children: i }) : null,
|
|
6246
|
-
/* @__PURE__ */ h(Bu, { className: "ml-auto" })
|
|
6247
|
-
] })
|
|
6244
|
+
children: /* @__PURE__ */ h("div", { className: "flex min-h-8 items-center gap-2", children: i ? /* @__PURE__ */ h("div", { className: "min-w-0 flex-1 group-data-[collapsible=icon]:hidden p-2", children: i }) : null })
|
|
6248
6245
|
}
|
|
6249
6246
|
),
|
|
6250
|
-
/* @__PURE__ */ h(ju, { className:
|
|
6251
|
-
a ? /* @__PURE__ */
|
|
6247
|
+
/* @__PURE__ */ h(ju, { className: k("p-2", u), children: /* @__PURE__ */ h("div", { className: k("flex flex-col gap-1", c), children: f.map((y) => y.kind === "item" ? w(y.item) : x(y.group, y.groupIndex)) }) }),
|
|
6248
|
+
a ? /* @__PURE__ */ W(
|
|
6252
6249
|
Wu,
|
|
6253
6250
|
{
|
|
6254
|
-
className:
|
|
6251
|
+
className: k(
|
|
6255
6252
|
"border-t border-sidebar-border/70 p-2",
|
|
6256
6253
|
d
|
|
6257
6254
|
),
|
|
6258
|
-
children:
|
|
6255
|
+
children: [
|
|
6256
|
+
a,
|
|
6257
|
+
/* @__PURE__ */ h(Bu, { className: "ml-auto" })
|
|
6258
|
+
]
|
|
6259
6259
|
}
|
|
6260
6260
|
) : null
|
|
6261
6261
|
]
|
|
@@ -6286,7 +6286,7 @@ function rc({
|
|
|
6286
6286
|
{
|
|
6287
6287
|
"data-slot": "select-trigger",
|
|
6288
6288
|
"data-size": n,
|
|
6289
|
-
className:
|
|
6289
|
+
className: k(si, e),
|
|
6290
6290
|
...r,
|
|
6291
6291
|
children: [
|
|
6292
6292
|
t,
|
|
@@ -6309,7 +6309,7 @@ function oc({
|
|
|
6309
6309
|
{
|
|
6310
6310
|
"data-slot": "select-content",
|
|
6311
6311
|
"data-align-trigger": t === "item-aligned",
|
|
6312
|
-
className:
|
|
6312
|
+
className: k(
|
|
6313
6313
|
"min-w-36 origin-(--radix-select-content-transform-origin) duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
6314
6314
|
li,
|
|
6315
6315
|
t === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -6344,7 +6344,7 @@ function ic({
|
|
|
6344
6344
|
he.Item,
|
|
6345
6345
|
{
|
|
6346
6346
|
"data-slot": "select-item",
|
|
6347
|
-
className:
|
|
6347
|
+
className: k(ec, e),
|
|
6348
6348
|
...t,
|
|
6349
6349
|
children: [
|
|
6350
6350
|
/* @__PURE__ */ h(he.ItemText, { className: "flex-1", children: n }),
|
|
@@ -6361,7 +6361,7 @@ function ac({
|
|
|
6361
6361
|
he.ScrollUpButton,
|
|
6362
6362
|
{
|
|
6363
6363
|
"data-slot": "select-scroll-up-button",
|
|
6364
|
-
className:
|
|
6364
|
+
className: k(
|
|
6365
6365
|
"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
6366
6366
|
e
|
|
6367
6367
|
),
|
|
@@ -6378,7 +6378,7 @@ function sc({
|
|
|
6378
6378
|
he.ScrollDownButton,
|
|
6379
6379
|
{
|
|
6380
6380
|
"data-slot": "select-scroll-down-button",
|
|
6381
|
-
className:
|
|
6381
|
+
className: k(
|
|
6382
6382
|
"z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
6383
6383
|
e
|
|
6384
6384
|
),
|
|
@@ -6407,7 +6407,7 @@ function tf({
|
|
|
6407
6407
|
() => new Set(m.map((v) => v.value)),
|
|
6408
6408
|
[m]
|
|
6409
6409
|
).has(t) ? t : "";
|
|
6410
|
-
return /* @__PURE__ */ h("div", { className:
|
|
6410
|
+
return /* @__PURE__ */ h("div", { className: k("w-full", l), children: /* @__PURE__ */ W(
|
|
6411
6411
|
tc,
|
|
6412
6412
|
{
|
|
6413
6413
|
value: f,
|
|
@@ -6415,7 +6415,7 @@ function tf({
|
|
|
6415
6415
|
disabled: i,
|
|
6416
6416
|
name: a,
|
|
6417
6417
|
children: [
|
|
6418
|
-
/* @__PURE__ */ h(rc, { size: s, className:
|
|
6418
|
+
/* @__PURE__ */ h(rc, { size: s, className: k("w-full", u), children: /* @__PURE__ */ h(nc, { placeholder: o }) }),
|
|
6419
6419
|
/* @__PURE__ */ h(oc, { className: c, children: m.map((v) => /* @__PURE__ */ h(
|
|
6420
6420
|
ic,
|
|
6421
6421
|
{
|
|
@@ -6447,28 +6447,28 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
|
|
|
6447
6447
|
let t = nt(() => {
|
|
6448
6448
|
var M, z;
|
|
6449
6449
|
return { search: "", value: (z = (M = e.value) != null ? M : e.defaultValue) != null ? z : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
6450
|
-
}), r = nt(() => /* @__PURE__ */ new Set()), o = nt(() => /* @__PURE__ */ new Map()), i = nt(() => /* @__PURE__ */ new Map()), a = nt(() => /* @__PURE__ */ new Set()), s = pi(e), { label: l, children: u, value: c, onValueChange: m, filter: d, shouldFilter: f, loop: v, disablePointerSelection: p = !1, vimBindings: S = !0, ...w } = e, x = _e(), y = _e(), b = _e(), _ = g.useRef(null),
|
|
6450
|
+
}), r = nt(() => /* @__PURE__ */ new Set()), o = nt(() => /* @__PURE__ */ new Map()), i = nt(() => /* @__PURE__ */ new Map()), a = nt(() => /* @__PURE__ */ new Set()), s = pi(e), { label: l, children: u, value: c, onValueChange: m, filter: d, shouldFilter: f, loop: v, disablePointerSelection: p = !1, vimBindings: S = !0, ...w } = e, x = _e(), y = _e(), b = _e(), _ = g.useRef(null), F = kc();
|
|
6451
6451
|
Ue(() => {
|
|
6452
6452
|
if (c !== void 0) {
|
|
6453
6453
|
let M = c.trim();
|
|
6454
6454
|
t.current.value = M, R.emit();
|
|
6455
6455
|
}
|
|
6456
6456
|
}, [c]), Ue(() => {
|
|
6457
|
-
|
|
6457
|
+
F(6, $);
|
|
6458
6458
|
}, []);
|
|
6459
6459
|
let R = g.useMemo(() => ({ subscribe: (M) => (a.current.add(M), () => a.current.delete(M)), snapshot: () => t.current, setState: (M, z, U) => {
|
|
6460
6460
|
var D, B, X, oe;
|
|
6461
6461
|
if (!Object.is(t.current[M], z)) {
|
|
6462
|
-
if (t.current[M] = z, M === "search") H(), I(),
|
|
6462
|
+
if (t.current[M] = z, M === "search") H(), I(), F(1, T);
|
|
6463
6463
|
else if (M === "value") {
|
|
6464
6464
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
6465
6465
|
let K = document.getElementById(b);
|
|
6466
6466
|
K ? K.focus() : (D = document.getElementById(x)) == null || D.focus();
|
|
6467
6467
|
}
|
|
6468
|
-
if (
|
|
6468
|
+
if (F(7, () => {
|
|
6469
6469
|
var K;
|
|
6470
6470
|
t.current.selectedItemId = (K = ne()) == null ? void 0 : K.id, R.emit();
|
|
6471
|
-
}), U ||
|
|
6471
|
+
}), U || F(5, $), ((B = s.current) == null ? void 0 : B.value) !== void 0) {
|
|
6472
6472
|
let K = z ?? "";
|
|
6473
6473
|
(oe = (X = s.current).onValueChange) == null || oe.call(X, K);
|
|
6474
6474
|
return;
|
|
@@ -6480,15 +6480,15 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
|
|
|
6480
6480
|
a.current.forEach((M) => M());
|
|
6481
6481
|
} }), []), C = g.useMemo(() => ({ value: (M, z, U) => {
|
|
6482
6482
|
var D;
|
|
6483
|
-
z !== ((D = i.current.get(M)) == null ? void 0 : D.value) && (i.current.set(M, { value: z, keywords: U }), t.current.filtered.items.set(M, E(z, U)),
|
|
6483
|
+
z !== ((D = i.current.get(M)) == null ? void 0 : D.value) && (i.current.set(M, { value: z, keywords: U }), t.current.filtered.items.set(M, E(z, U)), F(2, () => {
|
|
6484
6484
|
I(), R.emit();
|
|
6485
6485
|
}));
|
|
6486
|
-
}, item: (M, z) => (r.current.add(M), z && (o.current.has(z) ? o.current.get(z).add(M) : o.current.set(z, /* @__PURE__ */ new Set([M]))),
|
|
6486
|
+
}, item: (M, z) => (r.current.add(M), z && (o.current.has(z) ? o.current.get(z).add(M) : o.current.set(z, /* @__PURE__ */ new Set([M]))), F(3, () => {
|
|
6487
6487
|
H(), I(), t.current.value || T(), R.emit();
|
|
6488
6488
|
}), () => {
|
|
6489
6489
|
i.current.delete(M), r.current.delete(M), t.current.filtered.items.delete(M);
|
|
6490
6490
|
let U = ne();
|
|
6491
|
-
|
|
6491
|
+
F(4, () => {
|
|
6492
6492
|
H(), U?.getAttribute("id") === M && T(), R.emit();
|
|
6493
6493
|
});
|
|
6494
6494
|
}), group: (M) => (o.current.has(M) || o.current.set(M, /* @__PURE__ */ new Set()), () => {
|
|
@@ -6624,14 +6624,14 @@ var dt = '[cmdk-group=""]', gn = '[cmdk-group-items=""]', vc = '[cmdk-group-head
|
|
|
6624
6624
|
Ue(() => {
|
|
6625
6625
|
if (!u) return s.item(o, a?.id);
|
|
6626
6626
|
}, [u]);
|
|
6627
|
-
let c = hi(o, i, [e.value, e.children, i], e.keywords), m = Un(), d = Oe((
|
|
6627
|
+
let c = hi(o, i, [e.value, e.children, i], e.keywords), m = Un(), d = Oe((F) => F.value && F.value === c.current), f = Oe((F) => u || s.filter() === !1 ? !0 : F.search ? F.filtered.items.get(o) > 0 : !0);
|
|
6628
6628
|
g.useEffect(() => {
|
|
6629
|
-
let
|
|
6630
|
-
if (!(!
|
|
6629
|
+
let F = i.current;
|
|
6630
|
+
if (!(!F || e.disabled)) return F.addEventListener(kn, v), () => F.removeEventListener(kn, v);
|
|
6631
6631
|
}, [f, e.onSelect, e.disabled]);
|
|
6632
6632
|
function v() {
|
|
6633
|
-
var
|
|
6634
|
-
p(), (R = (
|
|
6633
|
+
var F, R;
|
|
6634
|
+
p(), (R = (F = l.current).onSelect) == null || R.call(F, c.current);
|
|
6635
6635
|
}
|
|
6636
6636
|
function p() {
|
|
6637
6637
|
m.setState("value", c.current, !0);
|
|
@@ -6735,22 +6735,22 @@ function Ut({ asChild: e, children: n }, t) {
|
|
|
6735
6735
|
return e && g.isValidElement(n) ? g.cloneElement(Fc(n), { ref: n.ref }, t(n.props.children)) : t(n);
|
|
6736
6736
|
}
|
|
6737
6737
|
var Dc = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
6738
|
-
function
|
|
6738
|
+
function Nc({ className: e, ...n }) {
|
|
6739
6739
|
return /* @__PURE__ */ h(
|
|
6740
6740
|
"div",
|
|
6741
6741
|
{
|
|
6742
6742
|
"data-slot": "input-group",
|
|
6743
6743
|
role: "group",
|
|
6744
|
-
className:
|
|
6745
|
-
"group/input-group relative flex h-8 w-full min-w-0 items-center
|
|
6744
|
+
className: k(
|
|
6745
|
+
"group/input-group relative flex h-8 w-full min-w-0 items-center border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 !rounded-none",
|
|
6746
6746
|
e
|
|
6747
6747
|
),
|
|
6748
6748
|
...n
|
|
6749
6749
|
}
|
|
6750
6750
|
);
|
|
6751
6751
|
}
|
|
6752
|
-
const
|
|
6753
|
-
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>
|
|
6752
|
+
const Pc = Vn(
|
|
6753
|
+
"flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 [&>svg:not([class*='size-'])]:size-4",
|
|
6754
6754
|
{
|
|
6755
6755
|
variants: {
|
|
6756
6756
|
align: {
|
|
@@ -6776,7 +6776,7 @@ function Oc({
|
|
|
6776
6776
|
role: "group",
|
|
6777
6777
|
"data-slot": "input-group-addon",
|
|
6778
6778
|
"data-align": n,
|
|
6779
|
-
className:
|
|
6779
|
+
className: k(Pc({ align: n }), e),
|
|
6780
6780
|
onClick: (r) => {
|
|
6781
6781
|
r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
6782
6782
|
},
|
|
@@ -6792,8 +6792,8 @@ function vi({
|
|
|
6792
6792
|
it,
|
|
6793
6793
|
{
|
|
6794
6794
|
"data-slot": "command",
|
|
6795
|
-
className:
|
|
6796
|
-
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover
|
|
6795
|
+
className: k(
|
|
6796
|
+
"flex size-full flex-col overflow-hidden rounded-xl! bg-popover text-popover-foreground",
|
|
6797
6797
|
e
|
|
6798
6798
|
),
|
|
6799
6799
|
...n
|
|
@@ -6804,12 +6804,12 @@ function bi({
|
|
|
6804
6804
|
className: e,
|
|
6805
6805
|
...n
|
|
6806
6806
|
}) {
|
|
6807
|
-
return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "
|
|
6807
|
+
return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "pb-0", children: /* @__PURE__ */ W(Nc, { className: "h-8! border-input/30 bg-input/30 shadow-none! py-5 *:data-[slot=input-group-addon]:pl-2!", children: [
|
|
6808
6808
|
/* @__PURE__ */ h(
|
|
6809
6809
|
it.Input,
|
|
6810
6810
|
{
|
|
6811
6811
|
"data-slot": "command-input",
|
|
6812
|
-
className:
|
|
6812
|
+
className: k(
|
|
6813
6813
|
"w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
6814
6814
|
e
|
|
6815
6815
|
),
|
|
@@ -6827,7 +6827,7 @@ function wi({
|
|
|
6827
6827
|
it.List,
|
|
6828
6828
|
{
|
|
6829
6829
|
"data-slot": "command-list",
|
|
6830
|
-
className:
|
|
6830
|
+
className: k(
|
|
6831
6831
|
"no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none",
|
|
6832
6832
|
e
|
|
6833
6833
|
),
|
|
@@ -6843,7 +6843,7 @@ function Si({
|
|
|
6843
6843
|
it.Empty,
|
|
6844
6844
|
{
|
|
6845
6845
|
"data-slot": "command-empty",
|
|
6846
|
-
className:
|
|
6846
|
+
className: k("py-6 text-center text-sm", e),
|
|
6847
6847
|
...n
|
|
6848
6848
|
}
|
|
6849
6849
|
);
|
|
@@ -6856,8 +6856,8 @@ function yi({
|
|
|
6856
6856
|
it.Group,
|
|
6857
6857
|
{
|
|
6858
6858
|
"data-slot": "command-group",
|
|
6859
|
-
className:
|
|
6860
|
-
"overflow-hidden
|
|
6859
|
+
className: k(
|
|
6860
|
+
"overflow-hidden text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
6861
6861
|
e
|
|
6862
6862
|
),
|
|
6863
6863
|
...n
|
|
@@ -6873,8 +6873,8 @@ function Fn({
|
|
|
6873
6873
|
it.Item,
|
|
6874
6874
|
{
|
|
6875
6875
|
"data-slot": "command-item",
|
|
6876
|
-
className:
|
|
6877
|
-
"group/command-item relative flex cursor-default items-center gap-2
|
|
6876
|
+
className: k(
|
|
6877
|
+
"group/command-item relative flex cursor-default items-center gap-2 px-2 py-2 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground",
|
|
6878
6878
|
e
|
|
6879
6879
|
),
|
|
6880
6880
|
...t,
|
|
@@ -6904,8 +6904,8 @@ function Ri({
|
|
|
6904
6904
|
"data-slot": "popover-content",
|
|
6905
6905
|
align: n,
|
|
6906
6906
|
sideOffset: t,
|
|
6907
|
-
className:
|
|
6908
|
-
"relative z-60 w-72 origin-(--radix-popover-content-transform-origin) rounded-
|
|
6907
|
+
className: k(
|
|
6908
|
+
"relative z-60 w-72 origin-(--radix-popover-content-transform-origin) rounded-xl border border-border bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-none data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
6909
6909
|
e
|
|
6910
6910
|
),
|
|
6911
6911
|
...o
|
|
@@ -7598,16 +7598,13 @@ const Uc = ({
|
|
|
7598
7598
|
});
|
|
7599
7599
|
}
|
|
7600
7600
|
}
|
|
7601
|
-
}, [t, s, v]), /* @__PURE__ */ W(vi, { shouldFilter: !1, onKeyDown: x, children: [
|
|
7601
|
+
}, [t, s, v]), /* @__PURE__ */ W(vi, { shouldFilter: !1, onKeyDown: x, className: "p-0", children: [
|
|
7602
7602
|
a && /* @__PURE__ */ h(bi, { onValueChange: w, placeholder: n }),
|
|
7603
7603
|
/* @__PURE__ */ W(
|
|
7604
7604
|
wi,
|
|
7605
7605
|
{
|
|
7606
7606
|
ref: f,
|
|
7607
|
-
|
|
7608
|
-
width: "100%",
|
|
7609
|
-
overflow: "auto"
|
|
7610
|
-
},
|
|
7607
|
+
className: "w-full overflow-auto",
|
|
7611
7608
|
onMouseDown: () => d(!1),
|
|
7612
7609
|
onMouseMove: () => d(!1),
|
|
7613
7610
|
children: [
|
|
@@ -7615,16 +7612,15 @@ const Uc = ({
|
|
|
7615
7612
|
/* @__PURE__ */ h(yi, { children: /* @__PURE__ */ h(
|
|
7616
7613
|
"div",
|
|
7617
7614
|
{
|
|
7615
|
+
className: "w-full relative !p-0",
|
|
7618
7616
|
style: {
|
|
7619
|
-
height: `${v.getTotalSize()}px
|
|
7620
|
-
width: "100%",
|
|
7621
|
-
position: "relative"
|
|
7617
|
+
height: `${v.getTotalSize()}px`
|
|
7622
7618
|
},
|
|
7623
7619
|
children: p.map((y) => /* @__PURE__ */ W(
|
|
7624
7620
|
Fn,
|
|
7625
7621
|
{
|
|
7626
7622
|
disabled: m || s[y.index].disabled,
|
|
7627
|
-
className:
|
|
7623
|
+
className: k(
|
|
7628
7624
|
"absolute left-0 top-0 w-full bg-transparent cursor-pointer",
|
|
7629
7625
|
u === y.index && "bg-accent text-accent-foreground",
|
|
7630
7626
|
m && u !== y.index && "aria-selected:bg-transparent aria-selected:text-primary"
|
|
@@ -7641,7 +7637,7 @@ const Uc = ({
|
|
|
7641
7637
|
/* @__PURE__ */ h(
|
|
7642
7638
|
Bt,
|
|
7643
7639
|
{
|
|
7644
|
-
className:
|
|
7640
|
+
className: k(
|
|
7645
7641
|
"mr-2 h-4 w-4",
|
|
7646
7642
|
t === s[y.index].value ? "opacity-100" : "opacity-0"
|
|
7647
7643
|
)
|
|
@@ -7672,7 +7668,7 @@ function nf(e) {
|
|
|
7672
7668
|
() => new Set(r.map((l) => l.value)),
|
|
7673
7669
|
[r]
|
|
7674
7670
|
).has(e.value) ? e.value : "", s = a.length > 0 ? o.get(a) ?? a : e.placeholder;
|
|
7675
|
-
return /* @__PURE__ */ h("div", { className:
|
|
7671
|
+
return /* @__PURE__ */ h("div", { className: k("w-full", e.className), children: /* @__PURE__ */ W(Ci, { open: n, onOpenChange: t, children: [
|
|
7676
7672
|
/* @__PURE__ */ h(xi, { asChild: !0, children: /* @__PURE__ */ W(
|
|
7677
7673
|
vt,
|
|
7678
7674
|
{
|
|
@@ -7680,7 +7676,7 @@ function nf(e) {
|
|
|
7680
7676
|
role: "combobox",
|
|
7681
7677
|
"aria-expanded": n,
|
|
7682
7678
|
disabled: e.disabled,
|
|
7683
|
-
className:
|
|
7679
|
+
className: k(
|
|
7684
7680
|
"w-full flex justify-between",
|
|
7685
7681
|
e.triggerClassName
|
|
7686
7682
|
),
|
|
@@ -7693,7 +7689,7 @@ function nf(e) {
|
|
|
7693
7689
|
/* @__PURE__ */ h(
|
|
7694
7690
|
Ri,
|
|
7695
7691
|
{
|
|
7696
|
-
className: e.contentClassName,
|
|
7692
|
+
className: k(e.contentClassName, "!p-0"),
|
|
7697
7693
|
portalContainer: e.portalContainer,
|
|
7698
7694
|
children: /* @__PURE__ */ h(
|
|
7699
7695
|
Uc,
|
|
@@ -7723,7 +7719,7 @@ function Wr({
|
|
|
7723
7719
|
ir.Root,
|
|
7724
7720
|
{
|
|
7725
7721
|
"data-slot": "checkbox",
|
|
7726
|
-
className:
|
|
7722
|
+
className: k(
|
|
7727
7723
|
"peer size-4 shrink-0 rounded-[4px] border border-input bg-background shadow-xs outline-none transition-shadow focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
7728
7724
|
e
|
|
7729
7725
|
),
|
|
@@ -7763,7 +7759,7 @@ function qc({
|
|
|
7763
7759
|
getScrollElement: () => w.current,
|
|
7764
7760
|
estimateSize: () => u,
|
|
7765
7761
|
overscan: l
|
|
7766
|
-
}), _ = b.getVirtualItems(),
|
|
7762
|
+
}), _ = b.getVirtualItems(), F = g.useCallback(
|
|
7767
7763
|
(C) => {
|
|
7768
7764
|
b.scrollToIndex(C, { align: "center" });
|
|
7769
7765
|
},
|
|
@@ -7774,14 +7770,14 @@ function qc({
|
|
|
7774
7770
|
case "ArrowDown": {
|
|
7775
7771
|
C.preventDefault(), S(!0), v((E) => {
|
|
7776
7772
|
const I = Math.min(E + 1, x.length - 1);
|
|
7777
|
-
return I >= 0 &&
|
|
7773
|
+
return I >= 0 && F(I), I;
|
|
7778
7774
|
});
|
|
7779
7775
|
break;
|
|
7780
7776
|
}
|
|
7781
7777
|
case "ArrowUp": {
|
|
7782
7778
|
C.preventDefault(), S(!0), v((E) => {
|
|
7783
7779
|
const I = Math.max(E - 1, 0);
|
|
7784
|
-
return I >= 0 &&
|
|
7780
|
+
return I >= 0 && F(I), I;
|
|
7785
7781
|
});
|
|
7786
7782
|
break;
|
|
7787
7783
|
}
|
|
@@ -7853,7 +7849,7 @@ function qc({
|
|
|
7853
7849
|
onSelect: () => r(E.value),
|
|
7854
7850
|
onMouseEnter: () => !p && v(C.index),
|
|
7855
7851
|
onMouseLeave: () => !p && v(-1),
|
|
7856
|
-
className:
|
|
7852
|
+
className: k(
|
|
7857
7853
|
"absolute left-0 top-0 w-full bg-transparent cursor-pointer",
|
|
7858
7854
|
f === C.index && "bg-accent text-accent-foreground",
|
|
7859
7855
|
p && f !== C.index && "aria-selected:bg-transparent aria-selected:text-primary"
|
|
@@ -7924,7 +7920,7 @@ function rf({
|
|
|
7924
7920
|
return x.forEach((T) => {
|
|
7925
7921
|
I.set(T.value, T.label);
|
|
7926
7922
|
}), I.set(d, m), I;
|
|
7927
|
-
}, [d, m, x]),
|
|
7923
|
+
}, [d, m, x]), F = g.useMemo(() => b.length === 0 ? r : b.length <= 2 ? b.map(
|
|
7928
7924
|
(I) => _.get(I) ?? I
|
|
7929
7925
|
).join(", ") : `${b.length} ${f}`, [_, b, r, f]), R = g.useCallback(
|
|
7930
7926
|
(I) => {
|
|
@@ -7950,7 +7946,7 @@ function rf({
|
|
|
7950
7946
|
},
|
|
7951
7947
|
[d, b, t, c]
|
|
7952
7948
|
), [C, E] = g.useState(!1);
|
|
7953
|
-
return /* @__PURE__ */ W("div", { className:
|
|
7949
|
+
return /* @__PURE__ */ W("div", { className: k("w-full", a), children: [
|
|
7954
7950
|
i ? b.map((I) => /* @__PURE__ */ h(
|
|
7955
7951
|
"input",
|
|
7956
7952
|
{
|
|
@@ -7966,13 +7962,13 @@ function rf({
|
|
|
7966
7962
|
{
|
|
7967
7963
|
type: "button",
|
|
7968
7964
|
disabled: o,
|
|
7969
|
-
className:
|
|
7965
|
+
className: k(
|
|
7970
7966
|
si,
|
|
7971
7967
|
b.length === 0 && "text-muted-foreground",
|
|
7972
7968
|
s
|
|
7973
7969
|
),
|
|
7974
7970
|
children: [
|
|
7975
|
-
/* @__PURE__ */ h("span", { className: "line-clamp-1 text-left", children:
|
|
7971
|
+
/* @__PURE__ */ h("span", { className: "line-clamp-1 text-left", children: F }),
|
|
7976
7972
|
/* @__PURE__ */ h(bt, { className: "size-4 text-muted-foreground" })
|
|
7977
7973
|
]
|
|
7978
7974
|
}
|
|
@@ -7982,7 +7978,7 @@ function rf({
|
|
|
7982
7978
|
{
|
|
7983
7979
|
align: "start",
|
|
7984
7980
|
portalContainer: u,
|
|
7985
|
-
className:
|
|
7981
|
+
className: k(
|
|
7986
7982
|
li,
|
|
7987
7983
|
"w-auto min-w-(--radix-popover-trigger-width) border-0 p-0",
|
|
7988
7984
|
l
|
|
@@ -8008,14 +8004,14 @@ function rf({
|
|
|
8008
8004
|
] })
|
|
8009
8005
|
] });
|
|
8010
8006
|
}
|
|
8011
|
-
function
|
|
8007
|
+
function Ne(e, n) {
|
|
8012
8008
|
return typeof e == "function" ? e(n) : e;
|
|
8013
8009
|
}
|
|
8014
8010
|
function pe(e, n) {
|
|
8015
8011
|
return (t) => {
|
|
8016
8012
|
n.setState((r) => ({
|
|
8017
8013
|
...r,
|
|
8018
|
-
[e]:
|
|
8014
|
+
[e]: Ne(t, r[e])
|
|
8019
8015
|
}));
|
|
8020
8016
|
};
|
|
8021
8017
|
}
|
|
@@ -8167,15 +8163,15 @@ const Jc = {
|
|
|
8167
8163
|
e.getHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
|
|
8168
8164
|
var i, a;
|
|
8169
8165
|
const s = (i = r?.map((m) => t.find((d) => d.id === m)).filter(Boolean)) != null ? i : [], l = (a = o?.map((m) => t.find((d) => d.id === m)).filter(Boolean)) != null ? a : [], u = t.filter((m) => !(r != null && r.includes(m.id)) && !(o != null && o.includes(m.id)));
|
|
8170
|
-
return
|
|
8171
|
-
}, L(e.options, de, "getHeaderGroups")), e.getCenterHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => (t = t.filter((i) => !(r != null && r.includes(i.id)) && !(o != null && o.includes(i.id))),
|
|
8166
|
+
return Nt(n, [...s, ...u, ...l], e);
|
|
8167
|
+
}, L(e.options, de, "getHeaderGroups")), e.getCenterHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => (t = t.filter((i) => !(r != null && r.includes(i.id)) && !(o != null && o.includes(i.id))), Nt(n, t, e, "center")), L(e.options, de, "getCenterHeaderGroups")), e.getLeftHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, r) => {
|
|
8172
8168
|
var o;
|
|
8173
8169
|
const i = (o = r?.map((a) => t.find((s) => s.id === a)).filter(Boolean)) != null ? o : [];
|
|
8174
|
-
return
|
|
8170
|
+
return Nt(n, i, e, "left");
|
|
8175
8171
|
}, L(e.options, de, "getLeftHeaderGroups")), e.getRightHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, r) => {
|
|
8176
8172
|
var o;
|
|
8177
8173
|
const i = (o = r?.map((a) => t.find((s) => s.id === a)).filter(Boolean)) != null ? o : [];
|
|
8178
|
-
return
|
|
8174
|
+
return Nt(n, i, e, "right");
|
|
8179
8175
|
}, L(e.options, de, "getRightHeaderGroups")), e.getFooterGroups = V(() => [e.getHeaderGroups()], (n) => [...n].reverse(), L(e.options, de, "getFooterGroups")), e.getLeftFooterGroups = V(() => [e.getLeftHeaderGroups()], (n) => [...n].reverse(), L(e.options, de, "getLeftFooterGroups")), e.getCenterFooterGroups = V(() => [e.getCenterHeaderGroups()], (n) => [...n].reverse(), L(e.options, de, "getCenterFooterGroups")), e.getRightFooterGroups = V(() => [e.getRightHeaderGroups()], (n) => [...n].reverse(), L(e.options, de, "getRightFooterGroups")), e.getFlatHeaders = V(() => [e.getHeaderGroups()], (n) => n.map((t) => t.headers).flat(), L(e.options, de, "getFlatHeaders")), e.getLeftFlatHeaders = V(() => [e.getLeftHeaderGroups()], (n) => n.map((t) => t.headers).flat(), L(e.options, de, "getLeftFlatHeaders")), e.getCenterFlatHeaders = V(() => [e.getCenterHeaderGroups()], (n) => n.map((t) => t.headers).flat(), L(e.options, de, "getCenterFlatHeaders")), e.getRightFlatHeaders = V(() => [e.getRightHeaderGroups()], (n) => n.map((t) => t.headers).flat(), L(e.options, de, "getRightFlatHeaders")), e.getCenterLeafHeaders = V(() => [e.getCenterFlatHeaders()], (n) => n.filter((t) => {
|
|
8180
8176
|
var r;
|
|
8181
8177
|
return !((r = t.subHeaders) != null && r.length);
|
|
@@ -8191,7 +8187,7 @@ const Jc = {
|
|
|
8191
8187
|
}, L(e.options, de, "getLeafHeaders"));
|
|
8192
8188
|
}
|
|
8193
8189
|
};
|
|
8194
|
-
function
|
|
8190
|
+
function Nt(e, n, t, r) {
|
|
8195
8191
|
var o, i;
|
|
8196
8192
|
let a = 0;
|
|
8197
8193
|
const s = function(d, f) {
|
|
@@ -8217,7 +8213,7 @@ function Pt(e, n, t, r) {
|
|
|
8217
8213
|
const _ = jr(t, y, {
|
|
8218
8214
|
id: [r, f, y.id, S?.id].filter(Boolean).join("_"),
|
|
8219
8215
|
isPlaceholder: b,
|
|
8220
|
-
placeholderId: b ? `${p.filter((
|
|
8216
|
+
placeholderId: b ? `${p.filter((F) => F.column === y).length}` : void 0,
|
|
8221
8217
|
depth: f,
|
|
8222
8218
|
index: p.length
|
|
8223
8219
|
});
|
|
@@ -8332,10 +8328,10 @@ const Di = (e, n, t) => t.some((r) => {
|
|
|
8332
8328
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(r);
|
|
8333
8329
|
});
|
|
8334
8330
|
Di.autoRemove = (e) => Se(e) || !(e != null && e.length);
|
|
8335
|
-
const
|
|
8336
|
-
Pi.autoRemove = (e) => Se(e);
|
|
8337
|
-
const Ni = (e, n, t) => e.getValue(n) == t;
|
|
8331
|
+
const Ni = (e, n, t) => e.getValue(n) === t;
|
|
8338
8332
|
Ni.autoRemove = (e) => Se(e);
|
|
8333
|
+
const Pi = (e, n, t) => e.getValue(n) == t;
|
|
8334
|
+
Pi.autoRemove = (e) => Se(e);
|
|
8339
8335
|
const Xn = (e, n, t) => {
|
|
8340
8336
|
let [r, o] = t;
|
|
8341
8337
|
const i = e.getValue(n);
|
|
@@ -8357,8 +8353,8 @@ const Ee = {
|
|
|
8357
8353
|
arrIncludes: ki,
|
|
8358
8354
|
arrIncludesAll: Fi,
|
|
8359
8355
|
arrIncludesSome: Di,
|
|
8360
|
-
equals:
|
|
8361
|
-
weakEquals:
|
|
8356
|
+
equals: Ni,
|
|
8357
|
+
weakEquals: Pi,
|
|
8362
8358
|
inNumberRange: Xn
|
|
8363
8359
|
};
|
|
8364
8360
|
function Se(e) {
|
|
@@ -8398,7 +8394,7 @@ const ed = {
|
|
|
8398
8394
|
return (t = (r = n.getState().columnFilters) == null ? void 0 : r.findIndex((o) => o.id === e.id)) != null ? t : -1;
|
|
8399
8395
|
}, e.setFilterValue = (t) => {
|
|
8400
8396
|
n.setColumnFilters((r) => {
|
|
8401
|
-
const o = e.getFilterFn(), i = r?.find((c) => c.id === e.id), a =
|
|
8397
|
+
const o = e.getFilterFn(), i = r?.find((c) => c.id === e.id), a = Ne(t, i ? i.value : void 0);
|
|
8402
8398
|
if (Ur(o, a, e)) {
|
|
8403
8399
|
var s;
|
|
8404
8400
|
return (s = r?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
@@ -8422,7 +8418,7 @@ const ed = {
|
|
|
8422
8418
|
e.setColumnFilters = (n) => {
|
|
8423
8419
|
const t = e.getAllLeafColumns(), r = (o) => {
|
|
8424
8420
|
var i;
|
|
8425
|
-
return (i =
|
|
8421
|
+
return (i = Ne(n, o)) == null ? void 0 : i.filter((a) => {
|
|
8426
8422
|
const s = t.find((l) => l.id === a.id);
|
|
8427
8423
|
if (s) {
|
|
8428
8424
|
const l = s.getFilterFn();
|
|
@@ -8682,7 +8678,7 @@ const fd = {
|
|
|
8682
8678
|
function md(e) {
|
|
8683
8679
|
return e || (typeof document < "u" ? document : null);
|
|
8684
8680
|
}
|
|
8685
|
-
const
|
|
8681
|
+
const Pt = {
|
|
8686
8682
|
size: 150,
|
|
8687
8683
|
minSize: 20,
|
|
8688
8684
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
@@ -8694,7 +8690,7 @@ const Nt = {
|
|
|
8694
8690
|
isResizingColumn: !1,
|
|
8695
8691
|
columnSizingStart: []
|
|
8696
8692
|
}), pd = {
|
|
8697
|
-
getDefaultColumnDef: () =>
|
|
8693
|
+
getDefaultColumnDef: () => Pt,
|
|
8698
8694
|
getInitialState: (e) => ({
|
|
8699
8695
|
columnSizing: {},
|
|
8700
8696
|
columnSizingInfo: hn(),
|
|
@@ -8710,7 +8706,7 @@ const Nt = {
|
|
|
8710
8706
|
e.getSize = () => {
|
|
8711
8707
|
var t, r, o;
|
|
8712
8708
|
const i = n.getState().columnSizing[e.id];
|
|
8713
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
8709
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Pt.minSize, (r = i ?? e.columnDef.size) != null ? r : Pt.size), (o = e.columnDef.maxSize) != null ? o : Pt.maxSize);
|
|
8714
8710
|
}, e.getStart = V((t) => [t, mt(n, t), n.getState().columnSizing], (t, r) => r.slice(0, e.getIndex(t)).reduce((o, i) => o + i.getSize(), 0), L(n.options, "debugColumns", "getStart")), e.getAfter = V((t) => [t, mt(n, t), n.getState().columnSizing], (t, r) => r.slice(e.getIndex(t) + 1).reduce((o, i) => o + i.getSize(), 0), L(n.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
8715
8711
|
n.setColumnSizing((t) => {
|
|
8716
8712
|
let {
|
|
@@ -8750,7 +8746,7 @@ const Nt = {
|
|
|
8750
8746
|
const a = e.getSize(), s = e ? e.getLeafHeaders().map((w) => [w.column.id, w.column.getSize()]) : [[r.id, r.getSize()]], l = vn(i) ? Math.round(i.touches[0].clientX) : i.clientX, u = {}, c = (w, x) => {
|
|
8751
8747
|
typeof x == "number" && (n.setColumnSizingInfo((y) => {
|
|
8752
8748
|
var b, _;
|
|
8753
|
-
const
|
|
8749
|
+
const F = n.options.columnResizeDirection === "rtl" ? -1 : 1, R = (x - ((b = y?.startOffset) != null ? b : 0)) * F, C = Math.max(R / ((_ = y?.startSize) != null ? _ : 0), -0.999999);
|
|
8754
8750
|
return y.columnSizingStart.forEach((E) => {
|
|
8755
8751
|
let [I, T] = E;
|
|
8756
8752
|
u[I] = Math.round(Math.max(T + T * C, 0) * 100) / 100;
|
|
@@ -9016,9 +9012,9 @@ const bd = {
|
|
|
9016
9012
|
};
|
|
9017
9013
|
};
|
|
9018
9014
|
}
|
|
9019
|
-
}, Dn = 0,
|
|
9015
|
+
}, Dn = 0, Nn = 10, bn = () => ({
|
|
9020
9016
|
pageIndex: Dn,
|
|
9021
|
-
pageSize:
|
|
9017
|
+
pageSize: Nn
|
|
9022
9018
|
}), yd = {
|
|
9023
9019
|
getInitialState: (e) => ({
|
|
9024
9020
|
...e,
|
|
@@ -9047,14 +9043,14 @@ const bd = {
|
|
|
9047
9043
|
});
|
|
9048
9044
|
}
|
|
9049
9045
|
}, e.setPagination = (r) => {
|
|
9050
|
-
const o = (i) =>
|
|
9046
|
+
const o = (i) => Ne(r, i);
|
|
9051
9047
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
9052
9048
|
}, e.resetPagination = (r) => {
|
|
9053
9049
|
var o;
|
|
9054
9050
|
e.setPagination(r ? bn() : (o = e.initialState.pagination) != null ? o : bn());
|
|
9055
9051
|
}, e.setPageIndex = (r) => {
|
|
9056
9052
|
e.setPagination((o) => {
|
|
9057
|
-
let i =
|
|
9053
|
+
let i = Ne(r, o.pageIndex);
|
|
9058
9054
|
const a = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
9059
9055
|
return i = Math.max(0, Math.min(i, a)), {
|
|
9060
9056
|
...o,
|
|
@@ -9066,10 +9062,10 @@ const bd = {
|
|
|
9066
9062
|
e.setPageIndex(r ? Dn : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? o : Dn);
|
|
9067
9063
|
}, e.resetPageSize = (r) => {
|
|
9068
9064
|
var o, i;
|
|
9069
|
-
e.setPageSize(r ?
|
|
9065
|
+
e.setPageSize(r ? Nn : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? o : Nn);
|
|
9070
9066
|
}, e.setPageSize = (r) => {
|
|
9071
9067
|
e.setPagination((o) => {
|
|
9072
|
-
const i = Math.max(1,
|
|
9068
|
+
const i = Math.max(1, Ne(r, o.pageSize)), a = o.pageSize * o.pageIndex, s = Math.floor(a / i);
|
|
9073
9069
|
return {
|
|
9074
9070
|
...o,
|
|
9075
9071
|
pageIndex: s,
|
|
@@ -9078,7 +9074,7 @@ const bd = {
|
|
|
9078
9074
|
});
|
|
9079
9075
|
}, e.setPageCount = (r) => e.setPagination((o) => {
|
|
9080
9076
|
var i;
|
|
9081
|
-
let a =
|
|
9077
|
+
let a = Ne(r, (i = e.options.pageCount) != null ? i : -1);
|
|
9082
9078
|
return typeof a == "number" && (a = Math.max(-1, a)), {
|
|
9083
9079
|
...o,
|
|
9084
9080
|
pageCount: a
|
|
@@ -9238,7 +9234,7 @@ const bd = {
|
|
|
9238
9234
|
...t
|
|
9239
9235
|
};
|
|
9240
9236
|
return e.getRowModel().rows.forEach((i) => {
|
|
9241
|
-
|
|
9237
|
+
Pn(o, i.id, r, !0, e);
|
|
9242
9238
|
}), o;
|
|
9243
9239
|
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = V(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Sn(e, t) : {
|
|
9244
9240
|
rows: [],
|
|
@@ -9287,7 +9283,7 @@ const bd = {
|
|
|
9287
9283
|
const s = {
|
|
9288
9284
|
...i
|
|
9289
9285
|
};
|
|
9290
|
-
return
|
|
9286
|
+
return Pn(s, e.id, t, (a = r?.selectChildren) != null ? a : !0, n), s;
|
|
9291
9287
|
});
|
|
9292
9288
|
}, e.getIsSelected = () => {
|
|
9293
9289
|
const {
|
|
@@ -9321,10 +9317,10 @@ const bd = {
|
|
|
9321
9317
|
};
|
|
9322
9318
|
};
|
|
9323
9319
|
}
|
|
9324
|
-
},
|
|
9320
|
+
}, Pn = (e, n, t, r, o) => {
|
|
9325
9321
|
var i;
|
|
9326
9322
|
const a = o.getRow(n, !0);
|
|
9327
|
-
t ? (a.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), a.getCanSelect() && (e[n] = !0)) : delete e[n], r && (i = a.subRows) != null && i.length && a.getCanSelectSubRows() && a.subRows.forEach((s) =>
|
|
9323
|
+
t ? (a.getCanMultiSelect() || Object.keys(e).forEach((s) => delete e[s]), a.getCanSelect() && (e[n] = !0)) : delete e[n], r && (i = a.subRows) != null && i.length && a.getCanSelectSubRows() && a.subRows.forEach((s) => Pn(e, s.id, t, r, o));
|
|
9328
9324
|
};
|
|
9329
9325
|
function Sn(e, n) {
|
|
9330
9326
|
const t = e.getState().rowSelection, r = [], o = {}, i = function(a, s) {
|
|
@@ -9505,7 +9501,7 @@ const ft = {
|
|
|
9505
9501
|
xd,
|
|
9506
9502
|
pd
|
|
9507
9503
|
];
|
|
9508
|
-
function
|
|
9504
|
+
function Nd(e) {
|
|
9509
9505
|
var n, t;
|
|
9510
9506
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
9511
9507
|
const r = [...Dd, ...(n = e._features) != null ? n : []];
|
|
@@ -9546,7 +9542,7 @@ function Pd(e) {
|
|
|
9546
9542
|
o.setState(o.initialState);
|
|
9547
9543
|
},
|
|
9548
9544
|
setOptions: (d) => {
|
|
9549
|
-
const f =
|
|
9545
|
+
const f = Ne(d, o.options);
|
|
9550
9546
|
o.options = a(f);
|
|
9551
9547
|
},
|
|
9552
9548
|
getState: () => o.options.state,
|
|
@@ -9612,7 +9608,7 @@ function Pd(e) {
|
|
|
9612
9608
|
}
|
|
9613
9609
|
return o;
|
|
9614
9610
|
}
|
|
9615
|
-
function
|
|
9611
|
+
function Pd() {
|
|
9616
9612
|
return (e) => V(() => [e.options.data], (n) => {
|
|
9617
9613
|
const t = {
|
|
9618
9614
|
rows: [],
|
|
@@ -9782,11 +9778,11 @@ function zd() {
|
|
|
9782
9778
|
const v = i[f], p = a[v.id], S = p.sortUndefined, w = (d = v?.desc) != null ? d : !1;
|
|
9783
9779
|
let x = 0;
|
|
9784
9780
|
if (S) {
|
|
9785
|
-
const y = c.getValue(v.id), b = m.getValue(v.id), _ = y === void 0,
|
|
9786
|
-
if (_ ||
|
|
9781
|
+
const y = c.getValue(v.id), b = m.getValue(v.id), _ = y === void 0, F = b === void 0;
|
|
9782
|
+
if (_ || F) {
|
|
9787
9783
|
if (S === "first") return _ ? -1 : 1;
|
|
9788
9784
|
if (S === "last") return _ ? 1 : -1;
|
|
9789
|
-
x = _ &&
|
|
9785
|
+
x = _ && F ? 0 : _ ? S : -S;
|
|
9790
9786
|
}
|
|
9791
9787
|
}
|
|
9792
9788
|
if (x === 0 && (x = p.sortingFn(c, m, v.id)), x !== 0)
|
|
@@ -9830,7 +9826,7 @@ function Bd(e) {
|
|
|
9830
9826
|
renderFallbackValue: null,
|
|
9831
9827
|
...e
|
|
9832
9828
|
}, [t] = g.useState(() => ({
|
|
9833
|
-
current:
|
|
9829
|
+
current: Nd(n)
|
|
9834
9830
|
})), [r, o] = g.useState(() => t.current.initialState);
|
|
9835
9831
|
return t.current.setOptions((i) => ({
|
|
9836
9832
|
...i,
|
|
@@ -9856,7 +9852,7 @@ function Gd({ className: e, ...n }) {
|
|
|
9856
9852
|
"table",
|
|
9857
9853
|
{
|
|
9858
9854
|
"data-slot": "table",
|
|
9859
|
-
className:
|
|
9855
|
+
className: k("w-full caption-bottom text-sm", e),
|
|
9860
9856
|
...n
|
|
9861
9857
|
}
|
|
9862
9858
|
)
|
|
@@ -9868,7 +9864,7 @@ function Wd({ className: e, ...n }) {
|
|
|
9868
9864
|
"thead",
|
|
9869
9865
|
{
|
|
9870
9866
|
"data-slot": "table-header",
|
|
9871
|
-
className:
|
|
9867
|
+
className: k("[&_tr]:border-b", e),
|
|
9872
9868
|
...n
|
|
9873
9869
|
}
|
|
9874
9870
|
);
|
|
@@ -9878,7 +9874,7 @@ function jd({ className: e, ...n }) {
|
|
|
9878
9874
|
"tbody",
|
|
9879
9875
|
{
|
|
9880
9876
|
"data-slot": "table-body",
|
|
9881
|
-
className:
|
|
9877
|
+
className: k("[&_tr:last-child]:border-0", e),
|
|
9882
9878
|
...n
|
|
9883
9879
|
}
|
|
9884
9880
|
);
|
|
@@ -9888,7 +9884,7 @@ function gt({ className: e, ...n }) {
|
|
|
9888
9884
|
"tr",
|
|
9889
9885
|
{
|
|
9890
9886
|
"data-slot": "table-row",
|
|
9891
|
-
className:
|
|
9887
|
+
className: k(
|
|
9892
9888
|
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted text-xs",
|
|
9893
9889
|
e
|
|
9894
9890
|
),
|
|
@@ -9901,7 +9897,7 @@ function Ud({ className: e, ...n }) {
|
|
|
9901
9897
|
"th",
|
|
9902
9898
|
{
|
|
9903
9899
|
"data-slot": "table-head",
|
|
9904
|
-
className:
|
|
9900
|
+
className: k(
|
|
9905
9901
|
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
|
|
9906
9902
|
e
|
|
9907
9903
|
),
|
|
@@ -9914,7 +9910,7 @@ function zt({ className: e, ...n }) {
|
|
|
9914
9910
|
"td",
|
|
9915
9911
|
{
|
|
9916
9912
|
"data-slot": "table-cell",
|
|
9917
|
-
className:
|
|
9913
|
+
className: k(
|
|
9918
9914
|
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
9919
9915
|
e
|
|
9920
9916
|
),
|
|
@@ -9950,17 +9946,17 @@ function of({
|
|
|
9950
9946
|
onGlobalFilterChange: S,
|
|
9951
9947
|
onColumnFiltersChange: x,
|
|
9952
9948
|
globalFilterFn: "includesString",
|
|
9953
|
-
getCoreRowModel:
|
|
9949
|
+
getCoreRowModel: Pd(),
|
|
9954
9950
|
getSortedRowModel: zd(),
|
|
9955
9951
|
getFilteredRowModel: Td()
|
|
9956
|
-
}), _ = b.getRowModel().rows,
|
|
9952
|
+
}), _ = b.getRowModel().rows, F = qn({
|
|
9957
9953
|
count: _.length,
|
|
9958
9954
|
getScrollElement: () => y.current,
|
|
9959
9955
|
getItemKey: (T) => _[T]?.id ?? T,
|
|
9960
9956
|
estimateSize: () => m,
|
|
9961
9957
|
overscan: c
|
|
9962
|
-
}), R =
|
|
9963
|
-
return /* @__PURE__ */ W("div", { className:
|
|
9958
|
+
}), R = F.getVirtualItems(), C = R[0]?.start ?? 0, E = R.length > 0 ? F.getTotalSize() - (R.at(-1)?.end ?? 0) : 0, I = u || i;
|
|
9959
|
+
return /* @__PURE__ */ W("div", { className: k("min-h-0 space-y-3", d), children: [
|
|
9964
9960
|
I && /* @__PURE__ */ W("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
9965
9961
|
i?.(b),
|
|
9966
9962
|
u && /* @__PURE__ */ h(
|
|
@@ -9984,7 +9980,7 @@ function of({
|
|
|
9984
9980
|
return /* @__PURE__ */ h(
|
|
9985
9981
|
Ud,
|
|
9986
9982
|
{
|
|
9987
|
-
className:
|
|
9983
|
+
className: k(
|
|
9988
9984
|
"sticky top-0 z-20 bg-card",
|
|
9989
9985
|
$?.headerClassName
|
|
9990
9986
|
),
|
|
@@ -10080,7 +10076,7 @@ function qd({
|
|
|
10080
10076
|
gt,
|
|
10081
10077
|
{
|
|
10082
10078
|
"data-state": r ? "selected" : void 0,
|
|
10083
|
-
className:
|
|
10079
|
+
className: k(t ? "cursor-pointer" : void 0),
|
|
10084
10080
|
onClick: t ? (o) => t(e, o) : void 0,
|
|
10085
10081
|
children: e.getVisibleCells().map((o) => {
|
|
10086
10082
|
const i = o.column.columnDef.meta;
|