@ah-automation.nl/component-lib 0.0.20 → 0.0.21
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/components/sidebar-nav.d.ts.map +1 -1
- package/dist/index.js +170 -170
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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 P, { 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";
|
|
@@ -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), Pa = (e) => !N(e) && !O(e), Na = (e) => $e(e, io, Hn), N = (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, N], F = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", "contain", "none"], C = () => [O, N, l], E = () => [ke, "full", "auto", ...C()], I = () => [Fe, "none", "subgrid", O, N], T = () => ["auto", {
|
|
354
|
+
span: ["full", Fe, O, N]
|
|
355
|
+
}, Fe, O, N], H = () => [Fe, "auto", O, N], $ = () => ["auto", "min", "max", "fr", O, N], 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, N], ze = () => [...b(), gr, fr, {
|
|
356
|
+
position: [O, N]
|
|
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, Na, {
|
|
360
|
+
size: [O, N]
|
|
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
|
+
N
|
|
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
|
+
N
|
|
376
|
+
], be = () => ["none", q, O, N], Ve = () => ["none", q, O, N], Xe = () => [q, O, N], 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: [Pa],
|
|
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, N, 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, N, O, s]
|
|
423
423
|
}],
|
|
424
424
|
/**
|
|
425
425
|
* Break After
|
|
@@ -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, N]
|
|
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", N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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": [N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N],
|
|
1456
|
+
radial: ["", O, N],
|
|
1457
|
+
conic: [Fe, O, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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
|
+
N
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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
|
+
N
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N]
|
|
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, N, "", "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, N]
|
|
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, N]
|
|
2872
2872
|
}],
|
|
2873
2873
|
// -----------
|
|
2874
2874
|
// --- SVG ---
|
|
@@ -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 Ne(e, n, { checkForDefaultPrevented: t = !0 } = {}) {
|
|
3112
3112
|
return function(o) {
|
|
3113
3113
|
if (e?.(o), t === !1 || !o.defaultPrevented)
|
|
3114
3114
|
return n?.(o);
|
|
@@ -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: Ne(e.onFocusCapture, F.onFocusCapture),
|
|
3388
|
+
onBlurCapture: Ne(e.onBlurCapture, F.onBlurCapture),
|
|
3389
|
+
onPointerDownCapture: Ne(
|
|
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 }, Ps = "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 || (Ns(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 = Ps;
|
|
3528
|
+
function Ns(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;
|
|
@@ -4225,9 +4225,9 @@ var _l = function(e) {
|
|
|
4225
4225
|
);
|
|
4226
4226
|
};
|
|
4227
4227
|
Do.displayName = jt;
|
|
4228
|
-
var
|
|
4228
|
+
var Po = "DialogTrigger", Dl = g.forwardRef(
|
|
4229
4229
|
(e, n) => {
|
|
4230
|
-
const { __scopeDialog: t, ...r } = e, o = ye(
|
|
4230
|
+
const { __scopeDialog: t, ...r } = e, o = ye(Po, t), i = Ke(n, o.triggerRef);
|
|
4231
4231
|
return /* @__PURE__ */ h(
|
|
4232
4232
|
ue.button,
|
|
4233
4233
|
{
|
|
@@ -4238,33 +4238,33 @@ var No = "DialogTrigger", Dl = g.forwardRef(
|
|
|
4238
4238
|
"data-state": Wn(o.open),
|
|
4239
4239
|
...r,
|
|
4240
4240
|
ref: i,
|
|
4241
|
-
onClick:
|
|
4241
|
+
onClick: Ne(e.onClick, o.onOpenToggle)
|
|
4242
4242
|
}
|
|
4243
4243
|
);
|
|
4244
4244
|
}
|
|
4245
4245
|
);
|
|
4246
|
-
Dl.displayName =
|
|
4247
|
-
var Bn = "DialogPortal", [
|
|
4246
|
+
Dl.displayName = Po;
|
|
4247
|
+
var Bn = "DialogPortal", [Pl, No] = 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(Pl, { 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 = No(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 Nl = /* @__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: Nl, 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 Pl = /* @__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 = No(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: Ne(e.onCloseAutoFocus, (i) => {
|
|
4299
4299
|
i.preventDefault(), t.triggerRef.current?.focus();
|
|
4300
4300
|
}),
|
|
4301
|
-
onPointerDownOutside:
|
|
4301
|
+
onPointerDownOutside: Ne(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: Ne(
|
|
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: Ne(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 = P.createContext({
|
|
4424
4424
|
drawerRef: {
|
|
4425
4425
|
current: null
|
|
4426
4426
|
},
|
|
@@ -4468,7 +4468,7 @@ const Ko = N.createContext({
|
|
|
4468
4468
|
container: null,
|
|
4469
4469
|
autoFocus: !1
|
|
4470
4470
|
}), wt = () => {
|
|
4471
|
-
const e =
|
|
4471
|
+
const e = P.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 = P.useRef(e);
|
|
4687
|
+
return P.useEffect(() => {
|
|
4688
4688
|
n.current = e;
|
|
4689
|
-
}),
|
|
4689
|
+
}), P.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 = P.useState(e), [r] = t, o = P.useRef(r), i = ti(n);
|
|
4693
|
+
return P.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 = P.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] = P.useState(typeof window < "u" ? {
|
|
4729
4729
|
innerWidth: window.innerWidth,
|
|
4730
4730
|
innerHeight: window.innerHeight
|
|
4731
4731
|
} : void 0);
|
|
4732
|
-
|
|
4732
|
+
P.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 = P.useMemo(() => c === t?.[t.length - 1] || null, [
|
|
4742
4742
|
t,
|
|
4743
4743
|
c
|
|
4744
|
-
]), p =
|
|
4744
|
+
]), p = P.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 = P.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 = P.useMemo(() => p !== null ? w?.[p] : null, [
|
|
4777
4777
|
w,
|
|
4778
4778
|
p
|
|
4779
|
-
]), y =
|
|
4779
|
+
]), y = P.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
|
+
P.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;
|
|
@@ -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 = P.useRef(null), a = Ki(() => document.body.style.backgroundColor, []);
|
|
4872
4872
|
function s() {
|
|
4873
4873
|
return (window.innerWidth - Mn) / window.innerWidth;
|
|
4874
4874
|
}
|
|
4875
|
-
|
|
4875
|
+
P.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] = P.useState(() => typeof window < "u" ? window.location.href : ""), l = P.useRef(0), u = P.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 = P.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 P.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
|
+
}, []), P.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
|
+
]), P.useEffect(() => {
|
|
4963
4963
|
t || !r || (e ? (!window.matchMedia("(display-mode: standalone)").matches && u(), n || window.setTimeout(() => {
|
|
4964
4964
|
c();
|
|
4965
4965
|
}, 500)) : c());
|
|
@@ -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] = P.useState(!1), [fe, A] = P.useState(!1), [ze, M] = P.useState(!1), z = P.useRef(null), U = P.useRef(null), D = P.useRef(null), B = P.useRef(null), X = P.useRef(null), oe = P.useRef(!1), K = P.useRef(null), ve = P.useRef(0), be = P.useRef(!1), Ve = P.useRef(!_), Xe = P.useRef(0), j = P.useRef(null), Jn = P.useRef((($ = j.current) == null ? void 0 : $.getBoundingClientRect().height) || 0), Qn = P.useRef(((ne = j.current) == null ? void 0 : ne.getBoundingClientRect().width) || 0), Kt = P.useRef(0), Ai = P.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,
|
|
@@ -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
|
+
P.useEffect(() => {
|
|
5093
5093
|
window.requestAnimationFrame(() => {
|
|
5094
5094
|
Ve.current = !0;
|
|
5095
5095
|
});
|
|
5096
|
-
}, []),
|
|
5096
|
+
}, []), P.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
|
+
P.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 P.useEffect(() => {
|
|
5232
5232
|
S || window.requestAnimationFrame(() => {
|
|
5233
5233
|
document.body.style.pointerEvents = "auto";
|
|
5234
5234
|
});
|
|
5235
5235
|
}, [
|
|
5236
5236
|
S
|
|
5237
|
-
]), /* @__PURE__ */
|
|
5237
|
+
]), /* @__PURE__ */ P.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__ */ P.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__ */ P.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 = P.useCallback((d) => o(d), [
|
|
5282
5282
|
o
|
|
5283
5283
|
]);
|
|
5284
|
-
return /* @__PURE__ */
|
|
5284
|
+
return /* @__PURE__ */ P.createElement(Uo, {
|
|
5285
5285
|
onMouseUp: m,
|
|
5286
5286
|
ref: u,
|
|
5287
5287
|
"data-vaul-overlay": "",
|
|
@@ -5292,8 +5292,8 @@ const ri = /* @__PURE__ */ N.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__ */ P.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, _] = P.useState(!1), F = Zo(o, i), R = P.useRef(null), C = P.useRef(null), E = P.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__ */ N.forwardRef(function({ onPointerDownOutside: e, styl
|
|
|
5308
5308
|
return !ce;
|
|
5309
5309
|
return E.current = !0, !0;
|
|
5310
5310
|
};
|
|
5311
|
-
|
|
5311
|
+
P.useEffect(() => {
|
|
5312
5312
|
I && window.requestAnimationFrame(() => {
|
|
5313
5313
|
_(!0);
|
|
5314
5314
|
});
|
|
@@ -5316,7 +5316,7 @@ const oi = /* @__PURE__ */ N.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__ */ P.createElement(qo, {
|
|
5320
5320
|
"data-vaul-drawer-direction": v,
|
|
5321
5321
|
"data-vaul-drawer": "",
|
|
5322
5322
|
"data-vaul-delayed-snap-points": b ? "true" : "false",
|
|
@@ -5371,8 +5371,8 @@ const oi = /* @__PURE__ */ N.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__ */ P.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 = P.useRef(null), p = P.useRef(!1);
|
|
5376
5376
|
function S() {
|
|
5377
5377
|
if (p.current) {
|
|
5378
5378
|
y();
|
|
@@ -5408,7 +5408,7 @@ const gu = 250, mu = 120, pu = /* @__PURE__ */ N.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__ */ P.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__ */ N.forwardRef(function({ preventCy
|
|
|
5423
5423
|
"data-vaul-handle": "",
|
|
5424
5424
|
"aria-hidden": "true",
|
|
5425
5425
|
...t
|
|
5426
|
-
}, /* @__PURE__ */
|
|
5426
|
+
}, /* @__PURE__ */ P.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__ */ N.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__ */ P.createElement(jo, {
|
|
5435
5435
|
container: t,
|
|
5436
5436
|
...r
|
|
5437
5437
|
});
|
|
@@ -5664,7 +5664,7 @@ function Du({ className: e, ...n }) {
|
|
|
5664
5664
|
}
|
|
5665
5665
|
);
|
|
5666
5666
|
}
|
|
5667
|
-
function
|
|
5667
|
+
function Pu({
|
|
5668
5668
|
className: e,
|
|
5669
5669
|
...n
|
|
5670
5670
|
}) {
|
|
@@ -5677,7 +5677,7 @@ function Nu({
|
|
|
5677
5677
|
}
|
|
5678
5678
|
);
|
|
5679
5679
|
}
|
|
5680
|
-
function
|
|
5680
|
+
function Nu({
|
|
5681
5681
|
className: e,
|
|
5682
5682
|
...n
|
|
5683
5683
|
}) {
|
|
@@ -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(Pu, { children: "Sidebar" }),
|
|
5788
|
+
/* @__PURE__ */ h(Nu, { children: "Displays the mobile sidebar." })
|
|
5789
5789
|
] }),
|
|
5790
5790
|
/* @__PURE__ */ h("div", { className: "flex h-full w-full flex-col", children: o })
|
|
5791
5791
|
]
|
|
@@ -5925,7 +5925,7 @@ function qu({
|
|
|
5925
5925
|
}
|
|
5926
5926
|
);
|
|
5927
5927
|
}
|
|
5928
|
-
function
|
|
5928
|
+
function Pr({ className: e, ...n }) {
|
|
5929
5929
|
return /* @__PURE__ */ h(
|
|
5930
5930
|
"ul",
|
|
5931
5931
|
{
|
|
@@ -5936,7 +5936,7 @@ function Nr({ className: e, ...n }) {
|
|
|
5936
5936
|
}
|
|
5937
5937
|
);
|
|
5938
5938
|
}
|
|
5939
|
-
function
|
|
5939
|
+
function Nr({ className: e, ...n }) {
|
|
5940
5940
|
return /* @__PURE__ */ h(
|
|
5941
5941
|
"li",
|
|
5942
5942
|
{
|
|
@@ -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(Pr, { className: "gap-1", children: /* @__PURE__ */ W(Nr, { className: k(m, y.className), children: [
|
|
6127
6127
|
/* @__PURE__ */ h(
|
|
6128
6128
|
Or,
|
|
6129
6129
|
{
|
|
@@ -6166,7 +6166,7 @@ function ef({
|
|
|
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(Pr, { className: "gap-1", children: /* @__PURE__ */ h(Nr, { children: /* @__PURE__ */ h(Ru, { asChild: !0, children: /* @__PURE__ */ W(
|
|
6170
6170
|
Or,
|
|
6171
6171
|
{
|
|
6172
6172
|
className: k(
|
|
@@ -6241,7 +6241,7 @@ function ef({
|
|
|
6241
6241
|
"border-b border-sidebar-border/70 p-2",
|
|
6242
6242
|
l
|
|
6243
6243
|
),
|
|
6244
|
-
children:
|
|
6244
|
+
children: i ? /* @__PURE__ */ h("div", { className: "min-w-0 flex-1 group-data-[collapsible=icon]:hidden p-2", children: i }) : null
|
|
6245
6245
|
}
|
|
6246
6246
|
),
|
|
6247
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)) }) }),
|
|
@@ -6735,7 +6735,7 @@ 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 Pc({ className: e, ...n }) {
|
|
6739
6739
|
return /* @__PURE__ */ h(
|
|
6740
6740
|
"div",
|
|
6741
6741
|
{
|
|
@@ -6749,7 +6749,7 @@ function Nc({ className: e, ...n }) {
|
|
|
6749
6749
|
}
|
|
6750
6750
|
);
|
|
6751
6751
|
}
|
|
6752
|
-
const
|
|
6752
|
+
const Nc = Vn(
|
|
6753
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: {
|
|
@@ -6776,7 +6776,7 @@ function Oc({
|
|
|
6776
6776
|
role: "group",
|
|
6777
6777
|
"data-slot": "input-group-addon",
|
|
6778
6778
|
"data-align": n,
|
|
6779
|
-
className: k(
|
|
6779
|
+
className: k(Nc({ align: n }), e),
|
|
6780
6780
|
onClick: (r) => {
|
|
6781
6781
|
r.target.closest("button") || r.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
6782
6782
|
},
|
|
@@ -6804,7 +6804,7 @@ function bi({
|
|
|
6804
6804
|
className: e,
|
|
6805
6805
|
...n
|
|
6806
6806
|
}) {
|
|
6807
|
-
return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "pb-0", children: /* @__PURE__ */ W(
|
|
6807
|
+
return /* @__PURE__ */ h("div", { "data-slot": "command-input-wrapper", className: "pb-0", children: /* @__PURE__ */ W(Pc, { 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
|
{
|
|
@@ -8004,14 +8004,14 @@ function rf({
|
|
|
8004
8004
|
] })
|
|
8005
8005
|
] });
|
|
8006
8006
|
}
|
|
8007
|
-
function
|
|
8007
|
+
function Pe(e, n) {
|
|
8008
8008
|
return typeof e == "function" ? e(n) : e;
|
|
8009
8009
|
}
|
|
8010
8010
|
function pe(e, n) {
|
|
8011
8011
|
return (t) => {
|
|
8012
8012
|
n.setState((r) => ({
|
|
8013
8013
|
...r,
|
|
8014
|
-
[e]:
|
|
8014
|
+
[e]: Pe(t, r[e])
|
|
8015
8015
|
}));
|
|
8016
8016
|
};
|
|
8017
8017
|
}
|
|
@@ -8163,15 +8163,15 @@ const Jc = {
|
|
|
8163
8163
|
e.getHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (n, t, r, o) => {
|
|
8164
8164
|
var i, a;
|
|
8165
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)));
|
|
8166
|
-
return
|
|
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))),
|
|
8166
|
+
return Pt(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))), Pt(n, t, e, "center")), L(e.options, de, "getCenterHeaderGroups")), e.getLeftHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (n, t, r) => {
|
|
8168
8168
|
var o;
|
|
8169
8169
|
const i = (o = r?.map((a) => t.find((s) => s.id === a)).filter(Boolean)) != null ? o : [];
|
|
8170
|
-
return
|
|
8170
|
+
return Pt(n, i, e, "left");
|
|
8171
8171
|
}, L(e.options, de, "getLeftHeaderGroups")), e.getRightHeaderGroups = V(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (n, t, r) => {
|
|
8172
8172
|
var o;
|
|
8173
8173
|
const i = (o = r?.map((a) => t.find((s) => s.id === a)).filter(Boolean)) != null ? o : [];
|
|
8174
|
-
return
|
|
8174
|
+
return Pt(n, i, e, "right");
|
|
8175
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) => {
|
|
8176
8176
|
var r;
|
|
8177
8177
|
return !((r = t.subHeaders) != null && r.length);
|
|
@@ -8187,7 +8187,7 @@ const Jc = {
|
|
|
8187
8187
|
}, L(e.options, de, "getLeafHeaders"));
|
|
8188
8188
|
}
|
|
8189
8189
|
};
|
|
8190
|
-
function
|
|
8190
|
+
function Pt(e, n, t, r) {
|
|
8191
8191
|
var o, i;
|
|
8192
8192
|
let a = 0;
|
|
8193
8193
|
const s = function(d, f) {
|
|
@@ -8328,10 +8328,10 @@ const Di = (e, n, t) => t.some((r) => {
|
|
|
8328
8328
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(r);
|
|
8329
8329
|
});
|
|
8330
8330
|
Di.autoRemove = (e) => Se(e) || !(e != null && e.length);
|
|
8331
|
-
const
|
|
8332
|
-
Ni.autoRemove = (e) => Se(e);
|
|
8333
|
-
const Pi = (e, n, t) => e.getValue(n) == t;
|
|
8331
|
+
const Pi = (e, n, t) => e.getValue(n) === t;
|
|
8334
8332
|
Pi.autoRemove = (e) => Se(e);
|
|
8333
|
+
const Ni = (e, n, t) => e.getValue(n) == t;
|
|
8334
|
+
Ni.autoRemove = (e) => Se(e);
|
|
8335
8335
|
const Xn = (e, n, t) => {
|
|
8336
8336
|
let [r, o] = t;
|
|
8337
8337
|
const i = e.getValue(n);
|
|
@@ -8353,8 +8353,8 @@ const Ee = {
|
|
|
8353
8353
|
arrIncludes: ki,
|
|
8354
8354
|
arrIncludesAll: Fi,
|
|
8355
8355
|
arrIncludesSome: Di,
|
|
8356
|
-
equals:
|
|
8357
|
-
weakEquals:
|
|
8356
|
+
equals: Pi,
|
|
8357
|
+
weakEquals: Ni,
|
|
8358
8358
|
inNumberRange: Xn
|
|
8359
8359
|
};
|
|
8360
8360
|
function Se(e) {
|
|
@@ -8394,7 +8394,7 @@ const ed = {
|
|
|
8394
8394
|
return (t = (r = n.getState().columnFilters) == null ? void 0 : r.findIndex((o) => o.id === e.id)) != null ? t : -1;
|
|
8395
8395
|
}, e.setFilterValue = (t) => {
|
|
8396
8396
|
n.setColumnFilters((r) => {
|
|
8397
|
-
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 = Pe(t, i ? i.value : void 0);
|
|
8398
8398
|
if (Ur(o, a, e)) {
|
|
8399
8399
|
var s;
|
|
8400
8400
|
return (s = r?.filter((c) => c.id !== e.id)) != null ? s : [];
|
|
@@ -8418,7 +8418,7 @@ const ed = {
|
|
|
8418
8418
|
e.setColumnFilters = (n) => {
|
|
8419
8419
|
const t = e.getAllLeafColumns(), r = (o) => {
|
|
8420
8420
|
var i;
|
|
8421
|
-
return (i =
|
|
8421
|
+
return (i = Pe(n, o)) == null ? void 0 : i.filter((a) => {
|
|
8422
8422
|
const s = t.find((l) => l.id === a.id);
|
|
8423
8423
|
if (s) {
|
|
8424
8424
|
const l = s.getFilterFn();
|
|
@@ -8678,7 +8678,7 @@ const fd = {
|
|
|
8678
8678
|
function md(e) {
|
|
8679
8679
|
return e || (typeof document < "u" ? document : null);
|
|
8680
8680
|
}
|
|
8681
|
-
const
|
|
8681
|
+
const Nt = {
|
|
8682
8682
|
size: 150,
|
|
8683
8683
|
minSize: 20,
|
|
8684
8684
|
maxSize: Number.MAX_SAFE_INTEGER
|
|
@@ -8690,7 +8690,7 @@ const Pt = {
|
|
|
8690
8690
|
isResizingColumn: !1,
|
|
8691
8691
|
columnSizingStart: []
|
|
8692
8692
|
}), pd = {
|
|
8693
|
-
getDefaultColumnDef: () =>
|
|
8693
|
+
getDefaultColumnDef: () => Nt,
|
|
8694
8694
|
getInitialState: (e) => ({
|
|
8695
8695
|
columnSizing: {},
|
|
8696
8696
|
columnSizingInfo: hn(),
|
|
@@ -8706,7 +8706,7 @@ const Pt = {
|
|
|
8706
8706
|
e.getSize = () => {
|
|
8707
8707
|
var t, r, o;
|
|
8708
8708
|
const i = n.getState().columnSizing[e.id];
|
|
8709
|
-
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t :
|
|
8709
|
+
return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Nt.minSize, (r = i ?? e.columnDef.size) != null ? r : Nt.size), (o = e.columnDef.maxSize) != null ? o : Nt.maxSize);
|
|
8710
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 = () => {
|
|
8711
8711
|
n.setColumnSizing((t) => {
|
|
8712
8712
|
let {
|
|
@@ -9012,9 +9012,9 @@ const bd = {
|
|
|
9012
9012
|
};
|
|
9013
9013
|
};
|
|
9014
9014
|
}
|
|
9015
|
-
}, Dn = 0,
|
|
9015
|
+
}, Dn = 0, Pn = 10, bn = () => ({
|
|
9016
9016
|
pageIndex: Dn,
|
|
9017
|
-
pageSize:
|
|
9017
|
+
pageSize: Pn
|
|
9018
9018
|
}), yd = {
|
|
9019
9019
|
getInitialState: (e) => ({
|
|
9020
9020
|
...e,
|
|
@@ -9043,14 +9043,14 @@ const bd = {
|
|
|
9043
9043
|
});
|
|
9044
9044
|
}
|
|
9045
9045
|
}, e.setPagination = (r) => {
|
|
9046
|
-
const o = (i) =>
|
|
9046
|
+
const o = (i) => Pe(r, i);
|
|
9047
9047
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
9048
9048
|
}, e.resetPagination = (r) => {
|
|
9049
9049
|
var o;
|
|
9050
9050
|
e.setPagination(r ? bn() : (o = e.initialState.pagination) != null ? o : bn());
|
|
9051
9051
|
}, e.setPageIndex = (r) => {
|
|
9052
9052
|
e.setPagination((o) => {
|
|
9053
|
-
let i =
|
|
9053
|
+
let i = Pe(r, o.pageIndex);
|
|
9054
9054
|
const a = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
9055
9055
|
return i = Math.max(0, Math.min(i, a)), {
|
|
9056
9056
|
...o,
|
|
@@ -9062,10 +9062,10 @@ const bd = {
|
|
|
9062
9062
|
e.setPageIndex(r ? Dn : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? o : Dn);
|
|
9063
9063
|
}, e.resetPageSize = (r) => {
|
|
9064
9064
|
var o, i;
|
|
9065
|
-
e.setPageSize(r ?
|
|
9065
|
+
e.setPageSize(r ? Pn : (o = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? o : Pn);
|
|
9066
9066
|
}, e.setPageSize = (r) => {
|
|
9067
9067
|
e.setPagination((o) => {
|
|
9068
|
-
const i = Math.max(1,
|
|
9068
|
+
const i = Math.max(1, Pe(r, o.pageSize)), a = o.pageSize * o.pageIndex, s = Math.floor(a / i);
|
|
9069
9069
|
return {
|
|
9070
9070
|
...o,
|
|
9071
9071
|
pageIndex: s,
|
|
@@ -9074,7 +9074,7 @@ const bd = {
|
|
|
9074
9074
|
});
|
|
9075
9075
|
}, e.setPageCount = (r) => e.setPagination((o) => {
|
|
9076
9076
|
var i;
|
|
9077
|
-
let a =
|
|
9077
|
+
let a = Pe(r, (i = e.options.pageCount) != null ? i : -1);
|
|
9078
9078
|
return typeof a == "number" && (a = Math.max(-1, a)), {
|
|
9079
9079
|
...o,
|
|
9080
9080
|
pageCount: a
|
|
@@ -9234,7 +9234,7 @@ const bd = {
|
|
|
9234
9234
|
...t
|
|
9235
9235
|
};
|
|
9236
9236
|
return e.getRowModel().rows.forEach((i) => {
|
|
9237
|
-
|
|
9237
|
+
Nn(o, i.id, r, !0, e);
|
|
9238
9238
|
}), o;
|
|
9239
9239
|
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = V(() => [e.getState().rowSelection, e.getCoreRowModel()], (n, t) => Object.keys(n).length ? Sn(e, t) : {
|
|
9240
9240
|
rows: [],
|
|
@@ -9283,7 +9283,7 @@ const bd = {
|
|
|
9283
9283
|
const s = {
|
|
9284
9284
|
...i
|
|
9285
9285
|
};
|
|
9286
|
-
return
|
|
9286
|
+
return Nn(s, e.id, t, (a = r?.selectChildren) != null ? a : !0, n), s;
|
|
9287
9287
|
});
|
|
9288
9288
|
}, e.getIsSelected = () => {
|
|
9289
9289
|
const {
|
|
@@ -9317,10 +9317,10 @@ const bd = {
|
|
|
9317
9317
|
};
|
|
9318
9318
|
};
|
|
9319
9319
|
}
|
|
9320
|
-
},
|
|
9320
|
+
}, Nn = (e, n, t, r, o) => {
|
|
9321
9321
|
var i;
|
|
9322
9322
|
const a = o.getRow(n, !0);
|
|
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) =>
|
|
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) => Nn(e, s.id, t, r, o));
|
|
9324
9324
|
};
|
|
9325
9325
|
function Sn(e, n) {
|
|
9326
9326
|
const t = e.getState().rowSelection, r = [], o = {}, i = function(a, s) {
|
|
@@ -9501,7 +9501,7 @@ const ft = {
|
|
|
9501
9501
|
xd,
|
|
9502
9502
|
pd
|
|
9503
9503
|
];
|
|
9504
|
-
function
|
|
9504
|
+
function Pd(e) {
|
|
9505
9505
|
var n, t;
|
|
9506
9506
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
9507
9507
|
const r = [...Dd, ...(n = e._features) != null ? n : []];
|
|
@@ -9542,7 +9542,7 @@ function Nd(e) {
|
|
|
9542
9542
|
o.setState(o.initialState);
|
|
9543
9543
|
},
|
|
9544
9544
|
setOptions: (d) => {
|
|
9545
|
-
const f =
|
|
9545
|
+
const f = Pe(d, o.options);
|
|
9546
9546
|
o.options = a(f);
|
|
9547
9547
|
},
|
|
9548
9548
|
getState: () => o.options.state,
|
|
@@ -9608,7 +9608,7 @@ function Nd(e) {
|
|
|
9608
9608
|
}
|
|
9609
9609
|
return o;
|
|
9610
9610
|
}
|
|
9611
|
-
function
|
|
9611
|
+
function Nd() {
|
|
9612
9612
|
return (e) => V(() => [e.options.data], (n) => {
|
|
9613
9613
|
const t = {
|
|
9614
9614
|
rows: [],
|
|
@@ -9826,7 +9826,7 @@ function Bd(e) {
|
|
|
9826
9826
|
renderFallbackValue: null,
|
|
9827
9827
|
...e
|
|
9828
9828
|
}, [t] = g.useState(() => ({
|
|
9829
|
-
current:
|
|
9829
|
+
current: Pd(n)
|
|
9830
9830
|
})), [r, o] = g.useState(() => t.current.initialState);
|
|
9831
9831
|
return t.current.setOptions((i) => ({
|
|
9832
9832
|
...i,
|
|
@@ -9946,7 +9946,7 @@ function of({
|
|
|
9946
9946
|
onGlobalFilterChange: S,
|
|
9947
9947
|
onColumnFiltersChange: x,
|
|
9948
9948
|
globalFilterFn: "includesString",
|
|
9949
|
-
getCoreRowModel:
|
|
9949
|
+
getCoreRowModel: Nd(),
|
|
9950
9950
|
getSortedRowModel: zd(),
|
|
9951
9951
|
getFilteredRowModel: Td()
|
|
9952
9952
|
}), _ = b.getRowModel().rows, F = qn({
|