@machinemetrics/mm-react-components 0.2.3-16 → 0.2.3-17
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/ui/command.d.ts +19 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/spinner.d.ts +4 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/mm-react-components.css +1 -1
- package/dist/mm-react-components.es.js +483 -139
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +10 -10
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/preview/CommandPreview.d.ts +2 -0
- package/dist/preview/CommandPreview.d.ts.map +1 -0
- package/dist/preview/SpinnerPreview.d.ts +2 -0
- package/dist/preview/SpinnerPreview.d.ts.map +1 -0
- package/package.json +2 -1
|
@@ -3624,125 +3624,125 @@ const createLucideIcon = (iconName, iconNode) => {
|
|
|
3624
3624
|
* This source code is licensed under the ISC license.
|
|
3625
3625
|
* See the LICENSE file in the root directory of this source tree.
|
|
3626
3626
|
*/
|
|
3627
|
-
const __iconNode$
|
|
3627
|
+
const __iconNode$n = [
|
|
3628
3628
|
["path", { d: "M12 5v14", key: "s699le" }],
|
|
3629
3629
|
["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
|
|
3630
3630
|
];
|
|
3631
|
-
const ArrowDown = createLucideIcon("arrow-down", __iconNode$
|
|
3631
|
+
const ArrowDown = createLucideIcon("arrow-down", __iconNode$n);
|
|
3632
3632
|
/**
|
|
3633
3633
|
* @license lucide-react v0.544.0 - ISC
|
|
3634
3634
|
*
|
|
3635
3635
|
* This source code is licensed under the ISC license.
|
|
3636
3636
|
* See the LICENSE file in the root directory of this source tree.
|
|
3637
3637
|
*/
|
|
3638
|
-
const __iconNode$
|
|
3638
|
+
const __iconNode$m = [
|
|
3639
3639
|
["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
|
|
3640
3640
|
["path", { d: "M19 12H5", key: "x3x0zl" }]
|
|
3641
3641
|
];
|
|
3642
|
-
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$
|
|
3642
|
+
const ArrowLeft = createLucideIcon("arrow-left", __iconNode$m);
|
|
3643
3643
|
/**
|
|
3644
3644
|
* @license lucide-react v0.544.0 - ISC
|
|
3645
3645
|
*
|
|
3646
3646
|
* This source code is licensed under the ISC license.
|
|
3647
3647
|
* See the LICENSE file in the root directory of this source tree.
|
|
3648
3648
|
*/
|
|
3649
|
-
const __iconNode$
|
|
3649
|
+
const __iconNode$l = [
|
|
3650
3650
|
["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
|
|
3651
3651
|
["path", { d: "M12 19V5", key: "x0mq9r" }]
|
|
3652
3652
|
];
|
|
3653
|
-
const ArrowUp = createLucideIcon("arrow-up", __iconNode$
|
|
3653
|
+
const ArrowUp = createLucideIcon("arrow-up", __iconNode$l);
|
|
3654
3654
|
/**
|
|
3655
3655
|
* @license lucide-react v0.544.0 - ISC
|
|
3656
3656
|
*
|
|
3657
3657
|
* This source code is licensed under the ISC license.
|
|
3658
3658
|
* See the LICENSE file in the root directory of this source tree.
|
|
3659
3659
|
*/
|
|
3660
|
-
const __iconNode$
|
|
3660
|
+
const __iconNode$k = [
|
|
3661
3661
|
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
3662
3662
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
3663
3663
|
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
3664
3664
|
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
3665
3665
|
];
|
|
3666
|
-
const Calendar$1 = createLucideIcon("calendar", __iconNode$
|
|
3666
|
+
const Calendar$1 = createLucideIcon("calendar", __iconNode$k);
|
|
3667
3667
|
/**
|
|
3668
3668
|
* @license lucide-react v0.544.0 - ISC
|
|
3669
3669
|
*
|
|
3670
3670
|
* This source code is licensed under the ISC license.
|
|
3671
3671
|
* See the LICENSE file in the root directory of this source tree.
|
|
3672
3672
|
*/
|
|
3673
|
-
const __iconNode$
|
|
3674
|
-
const Check = createLucideIcon("check", __iconNode$
|
|
3673
|
+
const __iconNode$j = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
|
|
3674
|
+
const Check = createLucideIcon("check", __iconNode$j);
|
|
3675
3675
|
/**
|
|
3676
3676
|
* @license lucide-react v0.544.0 - ISC
|
|
3677
3677
|
*
|
|
3678
3678
|
* This source code is licensed under the ISC license.
|
|
3679
3679
|
* See the LICENSE file in the root directory of this source tree.
|
|
3680
3680
|
*/
|
|
3681
|
-
const __iconNode$
|
|
3682
|
-
const ChevronDown = createLucideIcon("chevron-down", __iconNode$
|
|
3681
|
+
const __iconNode$i = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
|
|
3682
|
+
const ChevronDown = createLucideIcon("chevron-down", __iconNode$i);
|
|
3683
3683
|
/**
|
|
3684
3684
|
* @license lucide-react v0.544.0 - ISC
|
|
3685
3685
|
*
|
|
3686
3686
|
* This source code is licensed under the ISC license.
|
|
3687
3687
|
* See the LICENSE file in the root directory of this source tree.
|
|
3688
3688
|
*/
|
|
3689
|
-
const __iconNode$
|
|
3690
|
-
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$
|
|
3689
|
+
const __iconNode$h = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
|
|
3690
|
+
const ChevronLeft = createLucideIcon("chevron-left", __iconNode$h);
|
|
3691
3691
|
/**
|
|
3692
3692
|
* @license lucide-react v0.544.0 - ISC
|
|
3693
3693
|
*
|
|
3694
3694
|
* This source code is licensed under the ISC license.
|
|
3695
3695
|
* See the LICENSE file in the root directory of this source tree.
|
|
3696
3696
|
*/
|
|
3697
|
-
const __iconNode$
|
|
3698
|
-
const ChevronRight = createLucideIcon("chevron-right", __iconNode$
|
|
3697
|
+
const __iconNode$g = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
|
|
3698
|
+
const ChevronRight = createLucideIcon("chevron-right", __iconNode$g);
|
|
3699
3699
|
/**
|
|
3700
3700
|
* @license lucide-react v0.544.0 - ISC
|
|
3701
3701
|
*
|
|
3702
3702
|
* This source code is licensed under the ISC license.
|
|
3703
3703
|
* See the LICENSE file in the root directory of this source tree.
|
|
3704
3704
|
*/
|
|
3705
|
-
const __iconNode$
|
|
3706
|
-
const ChevronUp = createLucideIcon("chevron-up", __iconNode$
|
|
3705
|
+
const __iconNode$f = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
|
|
3706
|
+
const ChevronUp = createLucideIcon("chevron-up", __iconNode$f);
|
|
3707
3707
|
/**
|
|
3708
3708
|
* @license lucide-react v0.544.0 - ISC
|
|
3709
3709
|
*
|
|
3710
3710
|
* This source code is licensed under the ISC license.
|
|
3711
3711
|
* See the LICENSE file in the root directory of this source tree.
|
|
3712
3712
|
*/
|
|
3713
|
-
const __iconNode$
|
|
3714
|
-
const Circle = createLucideIcon("circle", __iconNode$
|
|
3713
|
+
const __iconNode$e = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
3714
|
+
const Circle = createLucideIcon("circle", __iconNode$e);
|
|
3715
3715
|
/**
|
|
3716
3716
|
* @license lucide-react v0.544.0 - ISC
|
|
3717
3717
|
*
|
|
3718
3718
|
* This source code is licensed under the ISC license.
|
|
3719
3719
|
* See the LICENSE file in the root directory of this source tree.
|
|
3720
3720
|
*/
|
|
3721
|
-
const __iconNode$
|
|
3721
|
+
const __iconNode$d = [
|
|
3722
3722
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
3723
3723
|
["path", { d: "M9 3v18", key: "fh3hqa" }],
|
|
3724
3724
|
["path", { d: "M15 3v18", key: "14nvp0" }]
|
|
3725
3725
|
];
|
|
3726
|
-
const Columns3 = createLucideIcon("columns-3", __iconNode$
|
|
3726
|
+
const Columns3 = createLucideIcon("columns-3", __iconNode$d);
|
|
3727
3727
|
/**
|
|
3728
3728
|
* @license lucide-react v0.544.0 - ISC
|
|
3729
3729
|
*
|
|
3730
3730
|
* This source code is licensed under the ISC license.
|
|
3731
3731
|
* See the LICENSE file in the root directory of this source tree.
|
|
3732
3732
|
*/
|
|
3733
|
-
const __iconNode$
|
|
3733
|
+
const __iconNode$c = [
|
|
3734
3734
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
3735
3735
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
3736
3736
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
3737
3737
|
];
|
|
3738
|
-
const Ellipsis = createLucideIcon("ellipsis", __iconNode$
|
|
3738
|
+
const Ellipsis = createLucideIcon("ellipsis", __iconNode$c);
|
|
3739
3739
|
/**
|
|
3740
3740
|
* @license lucide-react v0.544.0 - ISC
|
|
3741
3741
|
*
|
|
3742
3742
|
* This source code is licensed under the ISC license.
|
|
3743
3743
|
* See the LICENSE file in the root directory of this source tree.
|
|
3744
3744
|
*/
|
|
3745
|
-
const __iconNode$
|
|
3745
|
+
const __iconNode$b = [
|
|
3746
3746
|
["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
|
|
3747
3747
|
["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
|
|
3748
3748
|
["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
|
|
@@ -3750,19 +3750,27 @@ const __iconNode$a = [
|
|
|
3750
3750
|
["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
|
|
3751
3751
|
["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
|
|
3752
3752
|
];
|
|
3753
|
-
const GripVertical = createLucideIcon("grip-vertical", __iconNode$
|
|
3753
|
+
const GripVertical = createLucideIcon("grip-vertical", __iconNode$b);
|
|
3754
3754
|
/**
|
|
3755
3755
|
* @license lucide-react v0.544.0 - ISC
|
|
3756
3756
|
*
|
|
3757
3757
|
* This source code is licensed under the ISC license.
|
|
3758
3758
|
* See the LICENSE file in the root directory of this source tree.
|
|
3759
3759
|
*/
|
|
3760
|
-
const __iconNode$
|
|
3760
|
+
const __iconNode$a = [
|
|
3761
3761
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
3762
3762
|
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
3763
3763
|
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
3764
3764
|
];
|
|
3765
|
-
const Info = createLucideIcon("info", __iconNode$
|
|
3765
|
+
const Info = createLucideIcon("info", __iconNode$a);
|
|
3766
|
+
/**
|
|
3767
|
+
* @license lucide-react v0.544.0 - ISC
|
|
3768
|
+
*
|
|
3769
|
+
* This source code is licensed under the ISC license.
|
|
3770
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
3771
|
+
*/
|
|
3772
|
+
const __iconNode$9 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
|
|
3773
|
+
const LoaderCircle = createLucideIcon("loader-circle", __iconNode$9);
|
|
3766
3774
|
/**
|
|
3767
3775
|
* @license lucide-react v0.544.0 - ISC
|
|
3768
3776
|
*
|
|
@@ -3887,7 +3895,7 @@ const __iconNode = [
|
|
|
3887
3895
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3888
3896
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3889
3897
|
];
|
|
3890
|
-
const X = createLucideIcon("x", __iconNode);
|
|
3898
|
+
const X$1 = createLucideIcon("x", __iconNode);
|
|
3891
3899
|
const SearchInput = React.forwardRef(
|
|
3892
3900
|
({ className, containerClassName, placeholder = "Search", ...props }, ref) => {
|
|
3893
3901
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: cn$1("relative w-full", containerClassName), children: [
|
|
@@ -6577,7 +6585,7 @@ function isTopLayer(element) {
|
|
|
6577
6585
|
return topLayerSelectors.some((selector) => {
|
|
6578
6586
|
try {
|
|
6579
6587
|
return element.matches(selector);
|
|
6580
|
-
} catch (
|
|
6588
|
+
} catch (_e2) {
|
|
6581
6589
|
return false;
|
|
6582
6590
|
}
|
|
6583
6591
|
});
|
|
@@ -6698,10 +6706,10 @@ function getScale(element) {
|
|
|
6698
6706
|
const {
|
|
6699
6707
|
width,
|
|
6700
6708
|
height,
|
|
6701
|
-
$
|
|
6709
|
+
$: $2
|
|
6702
6710
|
} = getCssDimensions(domElement);
|
|
6703
|
-
let x2 = ($ ? round(rect.width) : rect.width) / width;
|
|
6704
|
-
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
6711
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
6712
|
+
let y = ($2 ? round(rect.height) : rect.height) / height;
|
|
6705
6713
|
if (!x2 || !Number.isFinite(x2)) {
|
|
6706
6714
|
x2 = 1;
|
|
6707
6715
|
}
|
|
@@ -7179,7 +7187,7 @@ function observeMove(element, onMove) {
|
|
|
7179
7187
|
// Handle <iframe>s
|
|
7180
7188
|
root: root.ownerDocument
|
|
7181
7189
|
});
|
|
7182
|
-
} catch (
|
|
7190
|
+
} catch (_e2) {
|
|
7183
7191
|
io = new IntersectionObserver(handleObserve, options);
|
|
7184
7192
|
}
|
|
7185
7193
|
io.observe(element);
|
|
@@ -8003,7 +8011,7 @@ var __assign = function() {
|
|
|
8003
8011
|
__assign = Object.assign || function __assign2(t) {
|
|
8004
8012
|
for (var s2, i = 1, n = arguments.length; i < n; i++) {
|
|
8005
8013
|
s2 = arguments[i];
|
|
8006
|
-
for (var
|
|
8014
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2)) t[p2] = s2[p2];
|
|
8007
8015
|
}
|
|
8008
8016
|
return t;
|
|
8009
8017
|
};
|
|
@@ -8011,22 +8019,22 @@ var __assign = function() {
|
|
|
8011
8019
|
};
|
|
8012
8020
|
function __rest(s2, e) {
|
|
8013
8021
|
var t = {};
|
|
8014
|
-
for (var
|
|
8015
|
-
t[
|
|
8022
|
+
for (var p2 in s2) if (Object.prototype.hasOwnProperty.call(s2, p2) && e.indexOf(p2) < 0)
|
|
8023
|
+
t[p2] = s2[p2];
|
|
8016
8024
|
if (s2 != null && typeof Object.getOwnPropertySymbols === "function")
|
|
8017
|
-
for (var i = 0,
|
|
8018
|
-
if (e.indexOf(
|
|
8019
|
-
t[
|
|
8025
|
+
for (var i = 0, p2 = Object.getOwnPropertySymbols(s2); i < p2.length; i++) {
|
|
8026
|
+
if (e.indexOf(p2[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s2, p2[i]))
|
|
8027
|
+
t[p2[i]] = s2[p2[i]];
|
|
8020
8028
|
}
|
|
8021
8029
|
return t;
|
|
8022
8030
|
}
|
|
8023
|
-
function __awaiter(thisArg, _arguments,
|
|
8031
|
+
function __awaiter(thisArg, _arguments, P2, generator) {
|
|
8024
8032
|
function adopt(value) {
|
|
8025
|
-
return value instanceof
|
|
8033
|
+
return value instanceof P2 ? value : new P2(function(resolve) {
|
|
8026
8034
|
resolve(value);
|
|
8027
8035
|
});
|
|
8028
8036
|
}
|
|
8029
|
-
return new (
|
|
8037
|
+
return new (P2 || (P2 = Promise))(function(resolve, reject) {
|
|
8030
8038
|
function fulfilled(value) {
|
|
8031
8039
|
try {
|
|
8032
8040
|
step(generator.next(value));
|
|
@@ -10329,7 +10337,7 @@ function SheetContent({
|
|
|
10329
10337
|
"data-slot": "sheet-close",
|
|
10330
10338
|
className: "absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none",
|
|
10331
10339
|
children: [
|
|
10332
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(X, { className: "size-4" }),
|
|
10340
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(X$1, { className: "size-4" }),
|
|
10333
10341
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Close" })
|
|
10334
10342
|
]
|
|
10335
10343
|
}
|
|
@@ -10825,26 +10833,26 @@ function getHullPresorted(points) {
|
|
|
10825
10833
|
if (points.length <= 1) return points.slice();
|
|
10826
10834
|
const upperHull = [];
|
|
10827
10835
|
for (let i = 0; i < points.length; i++) {
|
|
10828
|
-
const
|
|
10836
|
+
const p2 = points[i];
|
|
10829
10837
|
while (upperHull.length >= 2) {
|
|
10830
10838
|
const q = upperHull[upperHull.length - 1];
|
|
10831
10839
|
const r2 = upperHull[upperHull.length - 2];
|
|
10832
|
-
if ((q.x - r2.x) * (
|
|
10840
|
+
if ((q.x - r2.x) * (p2.y - r2.y) >= (q.y - r2.y) * (p2.x - r2.x)) upperHull.pop();
|
|
10833
10841
|
else break;
|
|
10834
10842
|
}
|
|
10835
|
-
upperHull.push(
|
|
10843
|
+
upperHull.push(p2);
|
|
10836
10844
|
}
|
|
10837
10845
|
upperHull.pop();
|
|
10838
10846
|
const lowerHull = [];
|
|
10839
10847
|
for (let i = points.length - 1; i >= 0; i--) {
|
|
10840
|
-
const
|
|
10848
|
+
const p2 = points[i];
|
|
10841
10849
|
while (lowerHull.length >= 2) {
|
|
10842
10850
|
const q = lowerHull[lowerHull.length - 1];
|
|
10843
10851
|
const r2 = lowerHull[lowerHull.length - 2];
|
|
10844
|
-
if ((q.x - r2.x) * (
|
|
10852
|
+
if ((q.x - r2.x) * (p2.y - r2.y) >= (q.y - r2.y) * (p2.x - r2.x)) lowerHull.pop();
|
|
10845
10853
|
else break;
|
|
10846
10854
|
}
|
|
10847
|
-
lowerHull.push(
|
|
10855
|
+
lowerHull.push(p2);
|
|
10848
10856
|
}
|
|
10849
10857
|
lowerHull.pop();
|
|
10850
10858
|
if (upperHull.length === 1 && lowerHull.length === 1 && upperHull[0].x === lowerHull[0].x && upperHull[0].y === lowerHull[0].y) {
|
|
@@ -15154,7 +15162,7 @@ function DialogContent({
|
|
|
15154
15162
|
"data-slot": "dialog-close",
|
|
15155
15163
|
className: "absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
15156
15164
|
children: [
|
|
15157
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(X, {}),
|
|
15165
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(X$1, {}),
|
|
15158
15166
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "sr-only", children: "Close" })
|
|
15159
15167
|
]
|
|
15160
15168
|
}
|
|
@@ -19526,20 +19534,20 @@ function DayPicker(initialProps) {
|
|
|
19526
19534
|
goToMonth(nextMonth);
|
|
19527
19535
|
onNextClick?.(nextMonth);
|
|
19528
19536
|
}, [goToMonth, nextMonth, onNextClick]);
|
|
19529
|
-
const handleDayClick = useCallback((day,
|
|
19537
|
+
const handleDayClick = useCallback((day, m2) => (e) => {
|
|
19530
19538
|
e.preventDefault();
|
|
19531
19539
|
e.stopPropagation();
|
|
19532
19540
|
setFocused(day);
|
|
19533
|
-
select?.(day.date,
|
|
19534
|
-
onDayClick?.(day.date,
|
|
19541
|
+
select?.(day.date, m2, e);
|
|
19542
|
+
onDayClick?.(day.date, m2, e);
|
|
19535
19543
|
}, [select, onDayClick, setFocused]);
|
|
19536
|
-
const handleDayFocus = useCallback((day,
|
|
19544
|
+
const handleDayFocus = useCallback((day, m2) => (e) => {
|
|
19537
19545
|
setFocused(day);
|
|
19538
|
-
onDayFocus?.(day.date,
|
|
19546
|
+
onDayFocus?.(day.date, m2, e);
|
|
19539
19547
|
}, [onDayFocus, setFocused]);
|
|
19540
|
-
const handleDayBlur = useCallback((day,
|
|
19548
|
+
const handleDayBlur = useCallback((day, m2) => (e) => {
|
|
19541
19549
|
blur();
|
|
19542
|
-
onDayBlur?.(day.date,
|
|
19550
|
+
onDayBlur?.(day.date, m2, e);
|
|
19543
19551
|
}, [blur, onDayBlur]);
|
|
19544
19552
|
const handleDayKeyDown = useCallback((day, modifiers) => (e) => {
|
|
19545
19553
|
const keyMap = {
|
|
@@ -27209,12 +27217,12 @@ function DataTablePagination({
|
|
|
27209
27217
|
className: "text-sm text-muted-foreground select-none",
|
|
27210
27218
|
"data-slot": "page-indicator",
|
|
27211
27219
|
children: (() => {
|
|
27212
|
-
const
|
|
27213
|
-
const current = Math.max(1, (
|
|
27220
|
+
const p2 = table.getState().pagination ?? {};
|
|
27221
|
+
const current = Math.max(1, (p2.pageIndex ?? 0) + 1);
|
|
27214
27222
|
const count2 = typeof table.getPageCount === "function" ? table.getPageCount() : Math.max(
|
|
27215
27223
|
1,
|
|
27216
27224
|
Math.ceil(
|
|
27217
|
-
(table.getFilteredRowModel().rows.length || 0) / Math.max(1,
|
|
27225
|
+
(table.getFilteredRowModel().rows.length || 0) / Math.max(1, p2.pageSize ?? 10)
|
|
27218
27226
|
)
|
|
27219
27227
|
);
|
|
27220
27228
|
const safeCurrent = Math.min(current, count2);
|
|
@@ -27297,7 +27305,7 @@ function SortableRowItem({
|
|
|
27297
27305
|
onPointerDown: (e) => {
|
|
27298
27306
|
e.stopPropagation();
|
|
27299
27307
|
},
|
|
27300
|
-
onPointerUp: (
|
|
27308
|
+
onPointerUp: (_e2) => {
|
|
27301
27309
|
},
|
|
27302
27310
|
...attributes,
|
|
27303
27311
|
...listeners,
|
|
@@ -27399,10 +27407,10 @@ function ColumnVisibilityMenu({
|
|
|
27399
27407
|
sensors,
|
|
27400
27408
|
collisionDetection: closestCenter,
|
|
27401
27409
|
modifiers: [restrictToVerticalAxis, restrictToParentElement],
|
|
27402
|
-
onDragStart: (
|
|
27410
|
+
onDragStart: (_e2) => {
|
|
27403
27411
|
setIsDragging(true);
|
|
27404
27412
|
},
|
|
27405
|
-
onDragCancel: (
|
|
27413
|
+
onDragCancel: (_e2) => {
|
|
27406
27414
|
setIsDragging(false);
|
|
27407
27415
|
},
|
|
27408
27416
|
onDragEnd: (e) => {
|
|
@@ -28767,7 +28775,7 @@ function DateRangePicker({
|
|
|
28767
28775
|
{
|
|
28768
28776
|
captionLayout: "dropdown",
|
|
28769
28777
|
month: visibleMonth,
|
|
28770
|
-
onMonthChange: (
|
|
28778
|
+
onMonthChange: (m2) => setVisibleMonth(startOfMonth(m2)),
|
|
28771
28779
|
mode: "range",
|
|
28772
28780
|
selected: draftStart || draftEnd ? {
|
|
28773
28781
|
from: draftStart ?? void 0,
|
|
@@ -30940,8 +30948,8 @@ class Virtualizer {
|
|
|
30940
30948
|
this.getFurthestMeasurement = (measurements, index2) => {
|
|
30941
30949
|
const furthestMeasurementsFound = /* @__PURE__ */ new Map();
|
|
30942
30950
|
const furthestMeasurements = /* @__PURE__ */ new Map();
|
|
30943
|
-
for (let
|
|
30944
|
-
const measurement = measurements[
|
|
30951
|
+
for (let m2 = index2 - 1; m2 >= 0; m2--) {
|
|
30952
|
+
const measurement = measurements[m2];
|
|
30945
30953
|
if (furthestMeasurementsFound.has(measurement.lane)) {
|
|
30946
30954
|
continue;
|
|
30947
30955
|
}
|
|
@@ -31848,19 +31856,19 @@ var hasRequiredReactIs_production_min$1;
|
|
|
31848
31856
|
function requireReactIs_production_min$1() {
|
|
31849
31857
|
if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
|
|
31850
31858
|
hasRequiredReactIs_production_min$1 = 1;
|
|
31851
|
-
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111,
|
|
31859
|
+
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k2 = b ? Symbol.for("react.context") : 60110, l = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p2 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x2 = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
31852
31860
|
function z2(a2) {
|
|
31853
31861
|
if ("object" === typeof a2 && null !== a2) {
|
|
31854
|
-
var
|
|
31855
|
-
switch (
|
|
31862
|
+
var u2 = a2.$$typeof;
|
|
31863
|
+
switch (u2) {
|
|
31856
31864
|
case c2:
|
|
31857
31865
|
switch (a2 = a2.type, a2) {
|
|
31858
31866
|
case l:
|
|
31859
|
-
case
|
|
31867
|
+
case m2:
|
|
31860
31868
|
case e:
|
|
31861
31869
|
case g:
|
|
31862
31870
|
case f:
|
|
31863
|
-
case
|
|
31871
|
+
case p2:
|
|
31864
31872
|
return a2;
|
|
31865
31873
|
default:
|
|
31866
31874
|
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
@@ -31871,19 +31879,19 @@ function requireReactIs_production_min$1() {
|
|
|
31871
31879
|
case h:
|
|
31872
31880
|
return a2;
|
|
31873
31881
|
default:
|
|
31874
|
-
return
|
|
31882
|
+
return u2;
|
|
31875
31883
|
}
|
|
31876
31884
|
}
|
|
31877
31885
|
case d:
|
|
31878
|
-
return
|
|
31886
|
+
return u2;
|
|
31879
31887
|
}
|
|
31880
31888
|
}
|
|
31881
31889
|
}
|
|
31882
31890
|
function A(a2) {
|
|
31883
|
-
return z2(a2) ===
|
|
31891
|
+
return z2(a2) === m2;
|
|
31884
31892
|
}
|
|
31885
31893
|
reactIs_production_min$1.AsyncMode = l;
|
|
31886
|
-
reactIs_production_min$1.ConcurrentMode =
|
|
31894
|
+
reactIs_production_min$1.ConcurrentMode = m2;
|
|
31887
31895
|
reactIs_production_min$1.ContextConsumer = k2;
|
|
31888
31896
|
reactIs_production_min$1.ContextProvider = h;
|
|
31889
31897
|
reactIs_production_min$1.Element = c2;
|
|
@@ -31894,7 +31902,7 @@ function requireReactIs_production_min$1() {
|
|
|
31894
31902
|
reactIs_production_min$1.Portal = d;
|
|
31895
31903
|
reactIs_production_min$1.Profiler = g;
|
|
31896
31904
|
reactIs_production_min$1.StrictMode = f;
|
|
31897
|
-
reactIs_production_min$1.Suspense =
|
|
31905
|
+
reactIs_production_min$1.Suspense = p2;
|
|
31898
31906
|
reactIs_production_min$1.isAsyncMode = function(a2) {
|
|
31899
31907
|
return A(a2) || z2(a2) === l;
|
|
31900
31908
|
};
|
|
@@ -31930,10 +31938,10 @@ function requireReactIs_production_min$1() {
|
|
|
31930
31938
|
return z2(a2) === f;
|
|
31931
31939
|
};
|
|
31932
31940
|
reactIs_production_min$1.isSuspense = function(a2) {
|
|
31933
|
-
return z2(a2) ===
|
|
31941
|
+
return z2(a2) === p2;
|
|
31934
31942
|
};
|
|
31935
31943
|
reactIs_production_min$1.isValidElementType = function(a2) {
|
|
31936
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 ===
|
|
31944
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === e || a2 === m2 || a2 === g || a2 === f || a2 === p2 || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k2 || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x2 || a2.$$typeof === y || a2.$$typeof === v);
|
|
31937
31945
|
};
|
|
31938
31946
|
reactIs_production_min$1.typeOf = z2;
|
|
31939
31947
|
return reactIs_production_min$1;
|
|
@@ -33984,11 +33992,11 @@ const COMMON_MIME_TYPES = /* @__PURE__ */ new Map([
|
|
|
33984
33992
|
function toFileWithPath(file, path, h) {
|
|
33985
33993
|
const f = withMimeType(file);
|
|
33986
33994
|
const { webkitRelativePath } = file;
|
|
33987
|
-
const
|
|
33995
|
+
const p2 = typeof path === "string" ? path : typeof webkitRelativePath === "string" && webkitRelativePath.length > 0 ? webkitRelativePath : `./${file.name}`;
|
|
33988
33996
|
if (typeof f.path !== "string") {
|
|
33989
|
-
setObjProp(f, "path",
|
|
33997
|
+
setObjProp(f, "path", p2);
|
|
33990
33998
|
}
|
|
33991
|
-
setObjProp(f, "relativePath",
|
|
33999
|
+
setObjProp(f, "relativePath", p2);
|
|
33992
34000
|
return f;
|
|
33993
34001
|
}
|
|
33994
34002
|
function withMimeType(file) {
|
|
@@ -34259,7 +34267,7 @@ function _iterableToArrayLimit$3(arr, i) {
|
|
|
34259
34267
|
var _arr = [];
|
|
34260
34268
|
var _n = true;
|
|
34261
34269
|
var _d = false;
|
|
34262
|
-
var _s,
|
|
34270
|
+
var _s, _e2;
|
|
34263
34271
|
try {
|
|
34264
34272
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
34265
34273
|
_arr.push(_s.value);
|
|
@@ -34267,12 +34275,12 @@ function _iterableToArrayLimit$3(arr, i) {
|
|
|
34267
34275
|
}
|
|
34268
34276
|
} catch (err) {
|
|
34269
34277
|
_d = true;
|
|
34270
|
-
|
|
34278
|
+
_e2 = err;
|
|
34271
34279
|
} finally {
|
|
34272
34280
|
try {
|
|
34273
34281
|
if (!_n && _i["return"] != null) _i["return"]();
|
|
34274
34282
|
} finally {
|
|
34275
|
-
if (_d) throw
|
|
34283
|
+
if (_d) throw _e2;
|
|
34276
34284
|
}
|
|
34277
34285
|
}
|
|
34278
34286
|
return _arr;
|
|
@@ -34476,7 +34484,7 @@ function _iterableToArrayLimit$2(arr, i) {
|
|
|
34476
34484
|
var _arr = [];
|
|
34477
34485
|
var _n = true;
|
|
34478
34486
|
var _d = false;
|
|
34479
|
-
var _s,
|
|
34487
|
+
var _s, _e2;
|
|
34480
34488
|
try {
|
|
34481
34489
|
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
34482
34490
|
_arr.push(_s.value);
|
|
@@ -34484,12 +34492,12 @@ function _iterableToArrayLimit$2(arr, i) {
|
|
|
34484
34492
|
}
|
|
34485
34493
|
} catch (err) {
|
|
34486
34494
|
_d = true;
|
|
34487
|
-
|
|
34495
|
+
_e2 = err;
|
|
34488
34496
|
} finally {
|
|
34489
34497
|
try {
|
|
34490
34498
|
if (!_n && _i["return"] != null) _i["return"]();
|
|
34491
34499
|
} finally {
|
|
34492
|
-
if (_d) throw
|
|
34500
|
+
if (_d) throw _e2;
|
|
34493
34501
|
}
|
|
34494
34502
|
}
|
|
34495
34503
|
return _arr;
|
|
@@ -36316,8 +36324,8 @@ var hasRequiredReactIs_production_min;
|
|
|
36316
36324
|
function requireReactIs_production_min() {
|
|
36317
36325
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
36318
36326
|
hasRequiredReactIs_production_min = 1;
|
|
36319
|
-
var b = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"),
|
|
36320
|
-
|
|
36327
|
+
var b = Symbol.for("react.element"), c2 = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k2 = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m2 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p2 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u2;
|
|
36328
|
+
u2 = Symbol.for("react.module.reference");
|
|
36321
36329
|
function v(a2) {
|
|
36322
36330
|
if ("object" === typeof a2 && null !== a2) {
|
|
36323
36331
|
var r2 = a2.$$typeof;
|
|
@@ -36327,7 +36335,7 @@ function requireReactIs_production_min() {
|
|
|
36327
36335
|
case d:
|
|
36328
36336
|
case f:
|
|
36329
36337
|
case e:
|
|
36330
|
-
case
|
|
36338
|
+
case m2:
|
|
36331
36339
|
case n:
|
|
36332
36340
|
return a2;
|
|
36333
36341
|
default:
|
|
@@ -36336,7 +36344,7 @@ function requireReactIs_production_min() {
|
|
|
36336
36344
|
case h:
|
|
36337
36345
|
case l:
|
|
36338
36346
|
case q:
|
|
36339
|
-
case
|
|
36347
|
+
case p2:
|
|
36340
36348
|
case g:
|
|
36341
36349
|
return a2;
|
|
36342
36350
|
default:
|
|
@@ -36354,11 +36362,11 @@ function requireReactIs_production_min() {
|
|
|
36354
36362
|
reactIs_production_min.ForwardRef = l;
|
|
36355
36363
|
reactIs_production_min.Fragment = d;
|
|
36356
36364
|
reactIs_production_min.Lazy = q;
|
|
36357
|
-
reactIs_production_min.Memo =
|
|
36365
|
+
reactIs_production_min.Memo = p2;
|
|
36358
36366
|
reactIs_production_min.Portal = c2;
|
|
36359
36367
|
reactIs_production_min.Profiler = f;
|
|
36360
36368
|
reactIs_production_min.StrictMode = e;
|
|
36361
|
-
reactIs_production_min.Suspense =
|
|
36369
|
+
reactIs_production_min.Suspense = m2;
|
|
36362
36370
|
reactIs_production_min.SuspenseList = n;
|
|
36363
36371
|
reactIs_production_min.isAsyncMode = function() {
|
|
36364
36372
|
return false;
|
|
@@ -36385,7 +36393,7 @@ function requireReactIs_production_min() {
|
|
|
36385
36393
|
return v(a2) === q;
|
|
36386
36394
|
};
|
|
36387
36395
|
reactIs_production_min.isMemo = function(a2) {
|
|
36388
|
-
return v(a2) ===
|
|
36396
|
+
return v(a2) === p2;
|
|
36389
36397
|
};
|
|
36390
36398
|
reactIs_production_min.isPortal = function(a2) {
|
|
36391
36399
|
return v(a2) === c2;
|
|
@@ -36397,13 +36405,13 @@ function requireReactIs_production_min() {
|
|
|
36397
36405
|
return v(a2) === e;
|
|
36398
36406
|
};
|
|
36399
36407
|
reactIs_production_min.isSuspense = function(a2) {
|
|
36400
|
-
return v(a2) ===
|
|
36408
|
+
return v(a2) === m2;
|
|
36401
36409
|
};
|
|
36402
36410
|
reactIs_production_min.isSuspenseList = function(a2) {
|
|
36403
36411
|
return v(a2) === n;
|
|
36404
36412
|
};
|
|
36405
36413
|
reactIs_production_min.isValidElementType = function(a2) {
|
|
36406
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 === f || a2 === e || a2 ===
|
|
36414
|
+
return "string" === typeof a2 || "function" === typeof a2 || a2 === d || a2 === f || a2 === e || a2 === m2 || a2 === n || a2 === t || "object" === typeof a2 && null !== a2 && (a2.$$typeof === q || a2.$$typeof === p2 || a2.$$typeof === g || a2.$$typeof === h || a2.$$typeof === l || a2.$$typeof === u2 || void 0 !== a2.getModuleId) ? true : false;
|
|
36407
36415
|
};
|
|
36408
36416
|
reactIs_production_min.typeOf = v;
|
|
36409
36417
|
return reactIs_production_min;
|
|
@@ -37416,13 +37424,13 @@ const symbolTriangle = {
|
|
|
37416
37424
|
};
|
|
37417
37425
|
const c = -0.5;
|
|
37418
37426
|
const s = sqrt(3) / 2;
|
|
37419
|
-
const k = 1 / sqrt(12);
|
|
37420
|
-
const a = (k / 2 + 1) * 3;
|
|
37427
|
+
const k$2 = 1 / sqrt(12);
|
|
37428
|
+
const a = (k$2 / 2 + 1) * 3;
|
|
37421
37429
|
const symbolWye = {
|
|
37422
37430
|
draw(context, size2) {
|
|
37423
37431
|
const r2 = sqrt(size2 / a);
|
|
37424
|
-
const x0 = r2 / 2, y0 = r2 * k;
|
|
37425
|
-
const x1 = x0, y1 = r2 * k + r2;
|
|
37432
|
+
const x0 = r2 / 2, y0 = r2 * k$2;
|
|
37433
|
+
const x1 = x0, y1 = r2 * k$2 + r2;
|
|
37426
37434
|
const x2 = -x1, y2 = y1;
|
|
37427
37435
|
context.moveTo(x0, y0);
|
|
37428
37436
|
context.lineTo(x1, y1);
|
|
@@ -37717,12 +37725,12 @@ function _inherits$3(subClass, superClass) {
|
|
|
37717
37725
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
37718
37726
|
if (superClass) _setPrototypeOf$3(subClass, superClass);
|
|
37719
37727
|
}
|
|
37720
|
-
function _setPrototypeOf$3(o,
|
|
37721
|
-
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2,
|
|
37722
|
-
o2.__proto__ =
|
|
37728
|
+
function _setPrototypeOf$3(o, p2) {
|
|
37729
|
+
_setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
|
|
37730
|
+
o2.__proto__ = p3;
|
|
37723
37731
|
return o2;
|
|
37724
37732
|
};
|
|
37725
|
-
return _setPrototypeOf$3(o,
|
|
37733
|
+
return _setPrototypeOf$3(o, p2);
|
|
37726
37734
|
}
|
|
37727
37735
|
function _defineProperty$7(obj, key, value) {
|
|
37728
37736
|
key = _toPropertyKey$6(key);
|
|
@@ -39279,12 +39287,12 @@ function _inherits$2(subClass, superClass) {
|
|
|
39279
39287
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
39280
39288
|
if (superClass) _setPrototypeOf$2(subClass, superClass);
|
|
39281
39289
|
}
|
|
39282
|
-
function _setPrototypeOf$2(o,
|
|
39283
|
-
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2,
|
|
39284
|
-
o2.__proto__ =
|
|
39290
|
+
function _setPrototypeOf$2(o, p2) {
|
|
39291
|
+
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
|
|
39292
|
+
o2.__proto__ = p3;
|
|
39285
39293
|
return o2;
|
|
39286
39294
|
};
|
|
39287
|
-
return _setPrototypeOf$2(o,
|
|
39295
|
+
return _setPrototypeOf$2(o, p2);
|
|
39288
39296
|
}
|
|
39289
39297
|
function _defineProperty$6(obj, key, value) {
|
|
39290
39298
|
key = _toPropertyKey$5(key);
|
|
@@ -39954,7 +39962,7 @@ function _arrayLikeToArray$1(arr, len) {
|
|
|
39954
39962
|
function _iterableToArrayLimit$1(r2, l) {
|
|
39955
39963
|
var t = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
39956
39964
|
if (null != t) {
|
|
39957
|
-
var e, n, i,
|
|
39965
|
+
var e, n, i, u2, a2 = [], f = true, o = false;
|
|
39958
39966
|
try {
|
|
39959
39967
|
if (i = (t = t.call(r2)).next, 0 === l) ;
|
|
39960
39968
|
else for (; !(f = (e = i.call(t)).done) && (a2.push(e.value), a2.length !== l); f = true) ;
|
|
@@ -39962,7 +39970,7 @@ function _iterableToArrayLimit$1(r2, l) {
|
|
|
39962
39970
|
o = true, n = r3;
|
|
39963
39971
|
} finally {
|
|
39964
39972
|
try {
|
|
39965
|
-
if (!f && null != t["return"] && (
|
|
39973
|
+
if (!f && null != t["return"] && (u2 = t["return"](), Object(u2) !== u2)) return;
|
|
39966
39974
|
} finally {
|
|
39967
39975
|
if (o) throw n;
|
|
39968
39976
|
}
|
|
@@ -40307,12 +40315,12 @@ function _inherits$1(subClass, superClass) {
|
|
|
40307
40315
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
40308
40316
|
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
|
40309
40317
|
}
|
|
40310
|
-
function _setPrototypeOf$1(o,
|
|
40311
|
-
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2,
|
|
40312
|
-
o2.__proto__ =
|
|
40318
|
+
function _setPrototypeOf$1(o, p2) {
|
|
40319
|
+
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
|
|
40320
|
+
o2.__proto__ = p3;
|
|
40313
40321
|
return o2;
|
|
40314
40322
|
};
|
|
40315
|
-
return _setPrototypeOf$1(o,
|
|
40323
|
+
return _setPrototypeOf$1(o, p2);
|
|
40316
40324
|
}
|
|
40317
40325
|
function _defineProperty$2(obj, key, value) {
|
|
40318
40326
|
key = _toPropertyKey$2(key);
|
|
@@ -40553,12 +40561,12 @@ function _inherits(subClass, superClass) {
|
|
|
40553
40561
|
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
40554
40562
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
40555
40563
|
}
|
|
40556
|
-
function _setPrototypeOf(o,
|
|
40557
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2,
|
|
40558
|
-
o2.__proto__ =
|
|
40564
|
+
function _setPrototypeOf(o, p2) {
|
|
40565
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
|
|
40566
|
+
o2.__proto__ = p3;
|
|
40559
40567
|
return o2;
|
|
40560
40568
|
};
|
|
40561
|
-
return _setPrototypeOf(o,
|
|
40569
|
+
return _setPrototypeOf(o, p2);
|
|
40562
40570
|
}
|
|
40563
40571
|
function _defineProperty$1(obj, key, value) {
|
|
40564
40572
|
key = _toPropertyKey$1(key);
|
|
@@ -40934,7 +40942,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
40934
40942
|
function _iterableToArrayLimit(r2, l) {
|
|
40935
40943
|
var t = null == r2 ? null : "undefined" != typeof Symbol && r2[Symbol.iterator] || r2["@@iterator"];
|
|
40936
40944
|
if (null != t) {
|
|
40937
|
-
var e, n, i,
|
|
40945
|
+
var e, n, i, u2, a2 = [], f = true, o = false;
|
|
40938
40946
|
try {
|
|
40939
40947
|
if (i = (t = t.call(r2)).next, 0 === l) ;
|
|
40940
40948
|
else for (; !(f = (e = i.call(t)).done) && (a2.push(e.value), a2.length !== l); f = true) ;
|
|
@@ -40942,7 +40950,7 @@ function _iterableToArrayLimit(r2, l) {
|
|
|
40942
40950
|
o = true, n = r3;
|
|
40943
40951
|
} finally {
|
|
40944
40952
|
try {
|
|
40945
|
-
if (!f && null != t["return"] && (
|
|
40953
|
+
if (!f && null != t["return"] && (u2 = t["return"](), Object(u2) !== u2)) return;
|
|
40946
40954
|
} finally {
|
|
40947
40955
|
if (o) throw n;
|
|
40948
40956
|
}
|
|
@@ -42052,11 +42060,11 @@ function FormMessage({ className, ...props }) {
|
|
|
42052
42060
|
}
|
|
42053
42061
|
);
|
|
42054
42062
|
}
|
|
42055
|
-
var M = (e, i, s2,
|
|
42063
|
+
var M = (e, i, s2, u2, m2, a2, l, h) => {
|
|
42056
42064
|
let d = document.documentElement, w = ["light", "dark"];
|
|
42057
|
-
function
|
|
42065
|
+
function p2(n) {
|
|
42058
42066
|
(Array.isArray(e) ? e : [e]).forEach((y) => {
|
|
42059
|
-
let k2 = y === "class", S = k2 && a2 ?
|
|
42067
|
+
let k2 = y === "class", S = k2 && a2 ? m2.map((f) => a2[f] || f) : m2;
|
|
42060
42068
|
k2 ? (d.classList.remove(...S), d.classList.add(a2 && a2[n] ? a2[n] : n)) : d.setAttribute(y, n);
|
|
42061
42069
|
}), R(n);
|
|
42062
42070
|
}
|
|
@@ -42066,21 +42074,21 @@ var M = (e, i, s2, u, m, a2, l, h) => {
|
|
|
42066
42074
|
function c2() {
|
|
42067
42075
|
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
42068
42076
|
}
|
|
42069
|
-
if (
|
|
42077
|
+
if (u2) p2(u2);
|
|
42070
42078
|
else try {
|
|
42071
42079
|
let n = localStorage.getItem(i) || s2, y = l && n === "system" ? c2() : n;
|
|
42072
|
-
|
|
42080
|
+
p2(y);
|
|
42073
42081
|
} catch (n) {
|
|
42074
42082
|
}
|
|
42075
42083
|
};
|
|
42076
|
-
var x = React.createContext(void 0), U = { setTheme: (e) => {
|
|
42084
|
+
var x = React.createContext(void 0), U$1 = { setTheme: (e) => {
|
|
42077
42085
|
}, themes: [] }, z = () => {
|
|
42078
42086
|
var e;
|
|
42079
|
-
return (e = React.useContext(x)) != null ? e : U;
|
|
42087
|
+
return (e = React.useContext(x)) != null ? e : U$1;
|
|
42080
42088
|
};
|
|
42081
|
-
React.memo(({ forcedTheme: e, storageKey: i, attribute: s2, enableSystem:
|
|
42082
|
-
let
|
|
42083
|
-
return React.createElement("script", { ...w, suppressHydrationWarning: true, nonce: typeof window == "undefined" ? d : "", dangerouslySetInnerHTML: { __html: `(${M.toString()})(${
|
|
42089
|
+
React.memo(({ forcedTheme: e, storageKey: i, attribute: s2, enableSystem: u2, enableColorScheme: m2, defaultTheme: a2, value: l, themes: h, nonce: d, scriptProps: w }) => {
|
|
42090
|
+
let p2 = JSON.stringify([s2, i, a2, e, h, l, u2, m2]).slice(1, -1);
|
|
42091
|
+
return React.createElement("script", { ...w, suppressHydrationWarning: true, nonce: typeof window == "undefined" ? d : "", dangerouslySetInnerHTML: { __html: `(${M.toString()})(${p2})` } });
|
|
42084
42092
|
});
|
|
42085
42093
|
function __insertCSS(code) {
|
|
42086
42094
|
if (typeof document == "undefined") return;
|
|
@@ -42327,10 +42335,10 @@ class Observer {
|
|
|
42327
42335
|
description: typeof data.description !== "function" ? data.description : void 0
|
|
42328
42336
|
});
|
|
42329
42337
|
}
|
|
42330
|
-
const
|
|
42338
|
+
const p2 = Promise.resolve(promise instanceof Function ? promise() : promise);
|
|
42331
42339
|
let shouldDismiss = id !== void 0;
|
|
42332
42340
|
let result;
|
|
42333
|
-
const originalPromise =
|
|
42341
|
+
const originalPromise = p2.then(async (response) => {
|
|
42334
42342
|
result = [
|
|
42335
42343
|
"resolve",
|
|
42336
42344
|
response
|
|
@@ -43662,8 +43670,8 @@ function parseMinutes(value, unit) {
|
|
|
43662
43670
|
const hm = /(\d+)\s*h(?:\s*(\d+)\s*m)?/i.exec(s2);
|
|
43663
43671
|
if (hm) {
|
|
43664
43672
|
const h = parseInt(hm[1] ?? "0", 10);
|
|
43665
|
-
const
|
|
43666
|
-
return h * 60 +
|
|
43673
|
+
const m2 = parseInt(hm[2] ?? "0", 10);
|
|
43674
|
+
return h * 60 + m2;
|
|
43667
43675
|
}
|
|
43668
43676
|
const mOnly = /(\d+)\s*m/i.exec(s2);
|
|
43669
43677
|
if (mOnly) return parseInt(mOnly[1] ?? "0", 10);
|
|
@@ -43676,10 +43684,10 @@ function parseMinutes(value, unit) {
|
|
|
43676
43684
|
}
|
|
43677
43685
|
function formatDuration(mins) {
|
|
43678
43686
|
const h = Math.floor(mins / 60);
|
|
43679
|
-
const
|
|
43680
|
-
if (h > 0) return `${h}h ${
|
|
43681
|
-
const s2 = Math.round((mins -
|
|
43682
|
-
return `${
|
|
43687
|
+
const m2 = Math.round(mins % 60);
|
|
43688
|
+
if (h > 0) return `${h}h ${m2}m`;
|
|
43689
|
+
const s2 = Math.round((mins - m2) * 60);
|
|
43690
|
+
return `${m2}m ${s2}s`;
|
|
43683
43691
|
}
|
|
43684
43692
|
function getNumericForKind(value, unit, kind) {
|
|
43685
43693
|
if (kind === "percent") return parsePercent(value);
|
|
@@ -44242,6 +44250,340 @@ function SimplePagination({
|
|
|
44242
44250
|
}
|
|
44243
44251
|
);
|
|
44244
44252
|
}
|
|
44253
|
+
function Spinner({ className, ...props }) {
|
|
44254
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44255
|
+
LoaderCircle,
|
|
44256
|
+
{
|
|
44257
|
+
role: "status",
|
|
44258
|
+
"aria-label": "Loading",
|
|
44259
|
+
className: cn$1("size-4 animate-spin", className),
|
|
44260
|
+
...props
|
|
44261
|
+
}
|
|
44262
|
+
);
|
|
44263
|
+
}
|
|
44264
|
+
var U = 1, Y$1 = 0.9, H = 0.8, J = 0.17, p = 0.1, u = 0.999, $ = 0.9999;
|
|
44265
|
+
var k$1 = 0.99, m = /[\\\/_+.#"@\[\(\{&]/, B$1 = /[\\\/_+.#"@\[\(\{&]/g, K$1 = /[\s-]/, X = /[\s-]/g;
|
|
44266
|
+
function G(_, C, h, P2, A, f, O) {
|
|
44267
|
+
if (f === C.length) return A === _.length ? U : k$1;
|
|
44268
|
+
var T2 = `${A},${f}`;
|
|
44269
|
+
if (O[T2] !== void 0) return O[T2];
|
|
44270
|
+
for (var L2 = P2.charAt(f), c2 = h.indexOf(L2, A), S = 0, E, N2, R, M2; c2 >= 0; ) E = G(_, C, h, P2, c2 + 1, f + 1, O), E > S && (c2 === A ? E *= U : m.test(_.charAt(c2 - 1)) ? (E *= H, R = _.slice(A, c2 - 1).match(B$1), R && A > 0 && (E *= Math.pow(u, R.length))) : K$1.test(_.charAt(c2 - 1)) ? (E *= Y$1, M2 = _.slice(A, c2 - 1).match(X), M2 && A > 0 && (E *= Math.pow(u, M2.length))) : (E *= J, A > 0 && (E *= Math.pow(u, c2 - A))), _.charAt(c2) !== C.charAt(f) && (E *= $)), (E < p && h.charAt(c2 - 1) === P2.charAt(f + 1) || P2.charAt(f + 1) === P2.charAt(f) && h.charAt(c2 - 1) !== P2.charAt(f)) && (N2 = G(_, C, h, P2, c2 + 1, f + 2, O), N2 * p > E && (E = N2 * p)), E > S && (S = E), c2 = h.indexOf(L2, c2 + 1);
|
|
44271
|
+
return O[T2] = S, S;
|
|
44272
|
+
}
|
|
44273
|
+
function D(_) {
|
|
44274
|
+
return _.toLowerCase().replace(X, " ");
|
|
44275
|
+
}
|
|
44276
|
+
function W(_, C, h) {
|
|
44277
|
+
return _ = h && h.length > 0 ? `${_ + " " + h.join(" ")}` : _, G(_, C, D(_), D(C), 0, 0, {});
|
|
44278
|
+
}
|
|
44279
|
+
var N = '[cmdk-group=""]', Y = '[cmdk-group-items=""]', be = '[cmdk-group-heading=""]', le = '[cmdk-item=""]', ce = `${le}:not([aria-disabled="true"])`, Z = "cmdk-item-select", T = "data-value", Re = (r2, o, n) => W(r2, o, n), ue = React.createContext(void 0), K = () => React.useContext(ue), de = React.createContext(void 0), ee = () => React.useContext(de), fe = React.createContext(void 0), me = React.forwardRef((r2, o) => {
|
|
44280
|
+
let n = L(() => {
|
|
44281
|
+
var e, a2;
|
|
44282
|
+
return { search: "", value: (a2 = (e = r2.value) != null ? e : r2.defaultValue) != null ? a2 : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
44283
|
+
}), u2 = L(() => /* @__PURE__ */ new Set()), c2 = L(() => /* @__PURE__ */ new Map()), d = L(() => /* @__PURE__ */ new Map()), f = L(() => /* @__PURE__ */ new Set()), p2 = pe(r2), { label: b, children: m2, value: R, onValueChange: x2, filter: C, shouldFilter: S, loop: A, disablePointerSelection: ge = false, vimBindings: j = true, ...O } = r2, $2 = useId(), q = useId(), _ = useId(), I = React.useRef(null), v = ke();
|
|
44284
|
+
k(() => {
|
|
44285
|
+
if (R !== void 0) {
|
|
44286
|
+
let e = R.trim();
|
|
44287
|
+
n.current.value = e, E.emit();
|
|
44288
|
+
}
|
|
44289
|
+
}, [R]), k(() => {
|
|
44290
|
+
v(6, ne);
|
|
44291
|
+
}, []);
|
|
44292
|
+
let E = React.useMemo(() => ({ subscribe: (e) => (f.current.add(e), () => f.current.delete(e)), snapshot: () => n.current, setState: (e, a2, s2) => {
|
|
44293
|
+
var i, l, g, y;
|
|
44294
|
+
if (!Object.is(n.current[e], a2)) {
|
|
44295
|
+
if (n.current[e] = a2, e === "search") J2(), z2(), v(1, W2);
|
|
44296
|
+
else if (e === "value") {
|
|
44297
|
+
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
44298
|
+
let h = document.getElementById(_);
|
|
44299
|
+
h ? h.focus() : (i = document.getElementById($2)) == null || i.focus();
|
|
44300
|
+
}
|
|
44301
|
+
if (v(7, () => {
|
|
44302
|
+
var h;
|
|
44303
|
+
n.current.selectedItemId = (h = M2()) == null ? void 0 : h.id, E.emit();
|
|
44304
|
+
}), s2 || v(5, ne), ((l = p2.current) == null ? void 0 : l.value) !== void 0) {
|
|
44305
|
+
let h = a2 != null ? a2 : "";
|
|
44306
|
+
(y = (g = p2.current).onValueChange) == null || y.call(g, h);
|
|
44307
|
+
return;
|
|
44308
|
+
}
|
|
44309
|
+
}
|
|
44310
|
+
E.emit();
|
|
44311
|
+
}
|
|
44312
|
+
}, emit: () => {
|
|
44313
|
+
f.current.forEach((e) => e());
|
|
44314
|
+
} }), []), U2 = React.useMemo(() => ({ value: (e, a2, s2) => {
|
|
44315
|
+
var i;
|
|
44316
|
+
a2 !== ((i = d.current.get(e)) == null ? void 0 : i.value) && (d.current.set(e, { value: a2, keywords: s2 }), n.current.filtered.items.set(e, te(a2, s2)), v(2, () => {
|
|
44317
|
+
z2(), E.emit();
|
|
44318
|
+
}));
|
|
44319
|
+
}, item: (e, a2) => (u2.current.add(e), a2 && (c2.current.has(a2) ? c2.current.get(a2).add(e) : c2.current.set(a2, /* @__PURE__ */ new Set([e]))), v(3, () => {
|
|
44320
|
+
J2(), z2(), n.current.value || W2(), E.emit();
|
|
44321
|
+
}), () => {
|
|
44322
|
+
d.current.delete(e), u2.current.delete(e), n.current.filtered.items.delete(e);
|
|
44323
|
+
let s2 = M2();
|
|
44324
|
+
v(4, () => {
|
|
44325
|
+
J2(), (s2 == null ? void 0 : s2.getAttribute("id")) === e && W2(), E.emit();
|
|
44326
|
+
});
|
|
44327
|
+
}), group: (e) => (c2.current.has(e) || c2.current.set(e, /* @__PURE__ */ new Set()), () => {
|
|
44328
|
+
d.current.delete(e), c2.current.delete(e);
|
|
44329
|
+
}), filter: () => p2.current.shouldFilter, label: b || r2["aria-label"], getDisablePointerSelection: () => p2.current.disablePointerSelection, listId: $2, inputId: _, labelId: q, listInnerRef: I }), []);
|
|
44330
|
+
function te(e, a2) {
|
|
44331
|
+
var i, l;
|
|
44332
|
+
let s2 = (l = (i = p2.current) == null ? void 0 : i.filter) != null ? l : Re;
|
|
44333
|
+
return e ? s2(e, n.current.search, a2) : 0;
|
|
44334
|
+
}
|
|
44335
|
+
function z2() {
|
|
44336
|
+
if (!n.current.search || p2.current.shouldFilter === false) return;
|
|
44337
|
+
let e = n.current.filtered.items, a2 = [];
|
|
44338
|
+
n.current.filtered.groups.forEach((i) => {
|
|
44339
|
+
let l = c2.current.get(i), g = 0;
|
|
44340
|
+
l.forEach((y) => {
|
|
44341
|
+
let h = e.get(y);
|
|
44342
|
+
g = Math.max(h, g);
|
|
44343
|
+
}), a2.push([i, g]);
|
|
44344
|
+
});
|
|
44345
|
+
let s2 = I.current;
|
|
44346
|
+
V().sort((i, l) => {
|
|
44347
|
+
var h, F;
|
|
44348
|
+
let g = i.getAttribute("id"), y = l.getAttribute("id");
|
|
44349
|
+
return ((h = e.get(y)) != null ? h : 0) - ((F = e.get(g)) != null ? F : 0);
|
|
44350
|
+
}).forEach((i) => {
|
|
44351
|
+
let l = i.closest(Y);
|
|
44352
|
+
l ? l.appendChild(i.parentElement === l ? i : i.closest(`${Y} > *`)) : s2.appendChild(i.parentElement === s2 ? i : i.closest(`${Y} > *`));
|
|
44353
|
+
}), a2.sort((i, l) => l[1] - i[1]).forEach((i) => {
|
|
44354
|
+
var g;
|
|
44355
|
+
let l = (g = I.current) == null ? void 0 : g.querySelector(`${N}[${T}="${encodeURIComponent(i[0])}"]`);
|
|
44356
|
+
l == null || l.parentElement.appendChild(l);
|
|
44357
|
+
});
|
|
44358
|
+
}
|
|
44359
|
+
function W2() {
|
|
44360
|
+
let e = V().find((s2) => s2.getAttribute("aria-disabled") !== "true"), a2 = e == null ? void 0 : e.getAttribute(T);
|
|
44361
|
+
E.setState("value", a2 || void 0);
|
|
44362
|
+
}
|
|
44363
|
+
function J2() {
|
|
44364
|
+
var a2, s2, i, l;
|
|
44365
|
+
if (!n.current.search || p2.current.shouldFilter === false) {
|
|
44366
|
+
n.current.filtered.count = u2.current.size;
|
|
44367
|
+
return;
|
|
44368
|
+
}
|
|
44369
|
+
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
44370
|
+
let e = 0;
|
|
44371
|
+
for (let g of u2.current) {
|
|
44372
|
+
let y = (s2 = (a2 = d.current.get(g)) == null ? void 0 : a2.value) != null ? s2 : "", h = (l = (i = d.current.get(g)) == null ? void 0 : i.keywords) != null ? l : [], F = te(y, h);
|
|
44373
|
+
n.current.filtered.items.set(g, F), F > 0 && e++;
|
|
44374
|
+
}
|
|
44375
|
+
for (let [g, y] of c2.current) for (let h of y) if (n.current.filtered.items.get(h) > 0) {
|
|
44376
|
+
n.current.filtered.groups.add(g);
|
|
44377
|
+
break;
|
|
44378
|
+
}
|
|
44379
|
+
n.current.filtered.count = e;
|
|
44380
|
+
}
|
|
44381
|
+
function ne() {
|
|
44382
|
+
var a2, s2, i;
|
|
44383
|
+
let e = M2();
|
|
44384
|
+
e && (((a2 = e.parentElement) == null ? void 0 : a2.firstChild) === e && ((i = (s2 = e.closest(N)) == null ? void 0 : s2.querySelector(be)) == null || i.scrollIntoView({ block: "nearest" })), e.scrollIntoView({ block: "nearest" }));
|
|
44385
|
+
}
|
|
44386
|
+
function M2() {
|
|
44387
|
+
var e;
|
|
44388
|
+
return (e = I.current) == null ? void 0 : e.querySelector(`${le}[aria-selected="true"]`);
|
|
44389
|
+
}
|
|
44390
|
+
function V() {
|
|
44391
|
+
var e;
|
|
44392
|
+
return Array.from(((e = I.current) == null ? void 0 : e.querySelectorAll(ce)) || []);
|
|
44393
|
+
}
|
|
44394
|
+
function X2(e) {
|
|
44395
|
+
let s2 = V()[e];
|
|
44396
|
+
s2 && E.setState("value", s2.getAttribute(T));
|
|
44397
|
+
}
|
|
44398
|
+
function Q(e) {
|
|
44399
|
+
var g;
|
|
44400
|
+
let a2 = M2(), s2 = V(), i = s2.findIndex((y) => y === a2), l = s2[i + e];
|
|
44401
|
+
(g = p2.current) != null && g.loop && (l = i + e < 0 ? s2[s2.length - 1] : i + e === s2.length ? s2[0] : s2[i + e]), l && E.setState("value", l.getAttribute(T));
|
|
44402
|
+
}
|
|
44403
|
+
function re2(e) {
|
|
44404
|
+
let a2 = M2(), s2 = a2 == null ? void 0 : a2.closest(N), i;
|
|
44405
|
+
for (; s2 && !i; ) s2 = e > 0 ? we(s2, N) : De(s2, N), i = s2 == null ? void 0 : s2.querySelector(ce);
|
|
44406
|
+
i ? E.setState("value", i.getAttribute(T)) : Q(e);
|
|
44407
|
+
}
|
|
44408
|
+
let oe = () => X2(V().length - 1), ie = (e) => {
|
|
44409
|
+
e.preventDefault(), e.metaKey ? oe() : e.altKey ? re2(1) : Q(1);
|
|
44410
|
+
}, se = (e) => {
|
|
44411
|
+
e.preventDefault(), e.metaKey ? X2(0) : e.altKey ? re2(-1) : Q(-1);
|
|
44412
|
+
};
|
|
44413
|
+
return React.createElement(Primitive.div, { ref: o, tabIndex: -1, ...O, "cmdk-root": "", onKeyDown: (e) => {
|
|
44414
|
+
var s2;
|
|
44415
|
+
(s2 = O.onKeyDown) == null || s2.call(O, e);
|
|
44416
|
+
let a2 = e.nativeEvent.isComposing || e.keyCode === 229;
|
|
44417
|
+
if (!(e.defaultPrevented || a2)) switch (e.key) {
|
|
44418
|
+
case "n":
|
|
44419
|
+
case "j": {
|
|
44420
|
+
j && e.ctrlKey && ie(e);
|
|
44421
|
+
break;
|
|
44422
|
+
}
|
|
44423
|
+
case "ArrowDown": {
|
|
44424
|
+
ie(e);
|
|
44425
|
+
break;
|
|
44426
|
+
}
|
|
44427
|
+
case "p":
|
|
44428
|
+
case "k": {
|
|
44429
|
+
j && e.ctrlKey && se(e);
|
|
44430
|
+
break;
|
|
44431
|
+
}
|
|
44432
|
+
case "ArrowUp": {
|
|
44433
|
+
se(e);
|
|
44434
|
+
break;
|
|
44435
|
+
}
|
|
44436
|
+
case "Home": {
|
|
44437
|
+
e.preventDefault(), X2(0);
|
|
44438
|
+
break;
|
|
44439
|
+
}
|
|
44440
|
+
case "End": {
|
|
44441
|
+
e.preventDefault(), oe();
|
|
44442
|
+
break;
|
|
44443
|
+
}
|
|
44444
|
+
case "Enter": {
|
|
44445
|
+
e.preventDefault();
|
|
44446
|
+
let i = M2();
|
|
44447
|
+
if (i) {
|
|
44448
|
+
let l = new Event(Z);
|
|
44449
|
+
i.dispatchEvent(l);
|
|
44450
|
+
}
|
|
44451
|
+
}
|
|
44452
|
+
}
|
|
44453
|
+
} }, React.createElement("label", { "cmdk-label": "", htmlFor: U2.inputId, id: U2.labelId, style: Te }, b), B(r2, (e) => React.createElement(de.Provider, { value: E }, React.createElement(ue.Provider, { value: U2 }, e))));
|
|
44454
|
+
}), he = React.forwardRef((r2, o) => {
|
|
44455
|
+
var _, I;
|
|
44456
|
+
let n = useId(), u2 = React.useRef(null), c2 = React.useContext(fe), d = K(), f = pe(r2), p2 = (I = (_ = f.current) == null ? void 0 : _.forceMount) != null ? I : c2 == null ? void 0 : c2.forceMount;
|
|
44457
|
+
k(() => {
|
|
44458
|
+
if (!p2) return d.item(n, c2 == null ? void 0 : c2.id);
|
|
44459
|
+
}, [p2]);
|
|
44460
|
+
let b = ve(n, u2, [r2.value, r2.children, u2], r2.keywords), m2 = ee(), R = P((v) => v.value && v.value === b.current), x2 = P((v) => p2 || d.filter() === false ? true : v.search ? v.filtered.items.get(n) > 0 : true);
|
|
44461
|
+
React.useEffect(() => {
|
|
44462
|
+
let v = u2.current;
|
|
44463
|
+
if (!(!v || r2.disabled)) return v.addEventListener(Z, C), () => v.removeEventListener(Z, C);
|
|
44464
|
+
}, [x2, r2.onSelect, r2.disabled]);
|
|
44465
|
+
function C() {
|
|
44466
|
+
var v, E;
|
|
44467
|
+
S(), (E = (v = f.current).onSelect) == null || E.call(v, b.current);
|
|
44468
|
+
}
|
|
44469
|
+
function S() {
|
|
44470
|
+
m2.setState("value", b.current, true);
|
|
44471
|
+
}
|
|
44472
|
+
if (!x2) return null;
|
|
44473
|
+
let { disabled: A, value: ge, onSelect: j, forceMount: O, keywords: $2, ...q } = r2;
|
|
44474
|
+
return React.createElement(Primitive.div, { ref: composeRefs$1(u2, o), ...q, id: n, "cmdk-item": "", role: "option", "aria-disabled": !!A, "aria-selected": !!R, "data-disabled": !!A, "data-selected": !!R, onPointerMove: A || d.getDisablePointerSelection() ? void 0 : S, onClick: A ? void 0 : C }, r2.children);
|
|
44475
|
+
}), Ee = React.forwardRef((r2, o) => {
|
|
44476
|
+
let { heading: n, children: u2, forceMount: c2, ...d } = r2, f = useId(), p2 = React.useRef(null), b = React.useRef(null), m2 = useId(), R = K(), x2 = P((S) => c2 || R.filter() === false ? true : S.search ? S.filtered.groups.has(f) : true);
|
|
44477
|
+
k(() => R.group(f), []), ve(f, p2, [r2.value, r2.heading, b]);
|
|
44478
|
+
let C = React.useMemo(() => ({ id: f, forceMount: c2 }), [c2]);
|
|
44479
|
+
return React.createElement(Primitive.div, { ref: composeRefs$1(p2, o), ...d, "cmdk-group": "", role: "presentation", hidden: x2 ? void 0 : true }, n && React.createElement("div", { ref: b, "cmdk-group-heading": "", "aria-hidden": true, id: m2 }, n), B(r2, (S) => React.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? m2 : void 0 }, React.createElement(fe.Provider, { value: C }, S))));
|
|
44480
|
+
}), ye = React.forwardRef((r2, o) => {
|
|
44481
|
+
let { alwaysRender: n, ...u2 } = r2, c2 = React.useRef(null), d = P((f) => !f.search);
|
|
44482
|
+
return !n && !d ? null : React.createElement(Primitive.div, { ref: composeRefs$1(c2, o), ...u2, "cmdk-separator": "", role: "separator" });
|
|
44483
|
+
}), Se = React.forwardRef((r2, o) => {
|
|
44484
|
+
let { onValueChange: n, ...u2 } = r2, c2 = r2.value != null, d = ee(), f = P((m2) => m2.search), p2 = P((m2) => m2.selectedItemId), b = K();
|
|
44485
|
+
return React.useEffect(() => {
|
|
44486
|
+
r2.value != null && d.setState("search", r2.value);
|
|
44487
|
+
}, [r2.value]), React.createElement(Primitive.input, { ref: o, ...u2, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: false, "aria-autocomplete": "list", role: "combobox", "aria-expanded": true, "aria-controls": b.listId, "aria-labelledby": b.labelId, "aria-activedescendant": p2, id: b.inputId, type: "text", value: c2 ? r2.value : f, onChange: (m2) => {
|
|
44488
|
+
c2 || d.setState("search", m2.target.value), n == null || n(m2.target.value);
|
|
44489
|
+
} });
|
|
44490
|
+
}), Ce = React.forwardRef((r2, o) => {
|
|
44491
|
+
let { children: n, label: u2 = "Suggestions", ...c2 } = r2, d = React.useRef(null), f = React.useRef(null), p2 = P((m2) => m2.selectedItemId), b = K();
|
|
44492
|
+
return React.useEffect(() => {
|
|
44493
|
+
if (f.current && d.current) {
|
|
44494
|
+
let m2 = f.current, R = d.current, x2, C = new ResizeObserver(() => {
|
|
44495
|
+
x2 = requestAnimationFrame(() => {
|
|
44496
|
+
let S = m2.offsetHeight;
|
|
44497
|
+
R.style.setProperty("--cmdk-list-height", S.toFixed(1) + "px");
|
|
44498
|
+
});
|
|
44499
|
+
});
|
|
44500
|
+
return C.observe(m2), () => {
|
|
44501
|
+
cancelAnimationFrame(x2), C.unobserve(m2);
|
|
44502
|
+
};
|
|
44503
|
+
}
|
|
44504
|
+
}, []), React.createElement(Primitive.div, { ref: composeRefs$1(d, o), ...c2, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": p2, "aria-label": u2, id: b.listId }, B(r2, (m2) => React.createElement("div", { ref: composeRefs$1(f, b.listInnerRef), "cmdk-list-sizer": "" }, m2)));
|
|
44505
|
+
}), xe = React.forwardRef((r2, o) => {
|
|
44506
|
+
let { open: n, onOpenChange: u2, overlayClassName: c2, contentClassName: d, container: f, ...p2 } = r2;
|
|
44507
|
+
return React.createElement(Root$9, { open: n, onOpenChange: u2 }, React.createElement(Portal$4, { container: f }, React.createElement(Overlay$1, { "cmdk-overlay": "", className: c2 }), React.createElement(Content$3, { "aria-label": r2.label, "cmdk-dialog": "", className: d }, React.createElement(me, { ref: o, ...p2 }))));
|
|
44508
|
+
}), Ie = React.forwardRef((r2, o) => P((u2) => u2.filtered.count === 0) ? React.createElement(Primitive.div, { ref: o, ...r2, "cmdk-empty": "", role: "presentation" }) : null), Pe = React.forwardRef((r2, o) => {
|
|
44509
|
+
let { progress: n, children: u2, label: c2 = "Loading...", ...d } = r2;
|
|
44510
|
+
return React.createElement(Primitive.div, { ref: o, ...d, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": c2 }, B(r2, (f) => React.createElement("div", { "aria-hidden": true }, f)));
|
|
44511
|
+
}), _e = Object.assign(me, { List: Ce, Item: he, Input: Se, Group: Ee, Separator: ye, Dialog: xe, Empty: Ie, Loading: Pe });
|
|
44512
|
+
function we(r2, o) {
|
|
44513
|
+
let n = r2.nextElementSibling;
|
|
44514
|
+
for (; n; ) {
|
|
44515
|
+
if (n.matches(o)) return n;
|
|
44516
|
+
n = n.nextElementSibling;
|
|
44517
|
+
}
|
|
44518
|
+
}
|
|
44519
|
+
function De(r2, o) {
|
|
44520
|
+
let n = r2.previousElementSibling;
|
|
44521
|
+
for (; n; ) {
|
|
44522
|
+
if (n.matches(o)) return n;
|
|
44523
|
+
n = n.previousElementSibling;
|
|
44524
|
+
}
|
|
44525
|
+
}
|
|
44526
|
+
function pe(r2) {
|
|
44527
|
+
let o = React.useRef(r2);
|
|
44528
|
+
return k(() => {
|
|
44529
|
+
o.current = r2;
|
|
44530
|
+
}), o;
|
|
44531
|
+
}
|
|
44532
|
+
var k = typeof window == "undefined" ? React.useEffect : React.useLayoutEffect;
|
|
44533
|
+
function L(r2) {
|
|
44534
|
+
let o = React.useRef();
|
|
44535
|
+
return o.current === void 0 && (o.current = r2()), o;
|
|
44536
|
+
}
|
|
44537
|
+
function P(r2) {
|
|
44538
|
+
let o = ee(), n = () => r2(o.snapshot());
|
|
44539
|
+
return React.useSyncExternalStore(o.subscribe, n, n);
|
|
44540
|
+
}
|
|
44541
|
+
function ve(r2, o, n, u2 = []) {
|
|
44542
|
+
let c2 = React.useRef(), d = K();
|
|
44543
|
+
return k(() => {
|
|
44544
|
+
var b;
|
|
44545
|
+
let f = (() => {
|
|
44546
|
+
var m2;
|
|
44547
|
+
for (let R of n) {
|
|
44548
|
+
if (typeof R == "string") return R.trim();
|
|
44549
|
+
if (typeof R == "object" && "current" in R) return R.current ? (m2 = R.current.textContent) == null ? void 0 : m2.trim() : c2.current;
|
|
44550
|
+
}
|
|
44551
|
+
})(), p2 = u2.map((m2) => m2.trim());
|
|
44552
|
+
d.value(r2, f, p2), (b = o.current) == null || b.setAttribute(T, f), c2.current = f;
|
|
44553
|
+
}), c2;
|
|
44554
|
+
}
|
|
44555
|
+
var ke = () => {
|
|
44556
|
+
let [r2, o] = React.useState(), n = L(() => /* @__PURE__ */ new Map());
|
|
44557
|
+
return k(() => {
|
|
44558
|
+
n.current.forEach((u2) => u2()), n.current = /* @__PURE__ */ new Map();
|
|
44559
|
+
}, [r2]), (u2, c2) => {
|
|
44560
|
+
n.current.set(u2, c2), o({});
|
|
44561
|
+
};
|
|
44562
|
+
};
|
|
44563
|
+
function Me(r2) {
|
|
44564
|
+
let o = r2.type;
|
|
44565
|
+
return typeof o == "function" ? o(r2.props) : "render" in o ? o.render(r2.props) : r2;
|
|
44566
|
+
}
|
|
44567
|
+
function B({ asChild: r2, children: o }, n) {
|
|
44568
|
+
return r2 && React.isValidElement(o) ? React.cloneElement(Me(o), { ref: o.ref }, n(o.props.children)) : n(o);
|
|
44569
|
+
}
|
|
44570
|
+
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
44571
|
+
function Command({
|
|
44572
|
+
className,
|
|
44573
|
+
...props
|
|
44574
|
+
}) {
|
|
44575
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
44576
|
+
_e,
|
|
44577
|
+
{
|
|
44578
|
+
"data-slot": "command",
|
|
44579
|
+
className: cn$1(
|
|
44580
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
44581
|
+
className
|
|
44582
|
+
),
|
|
44583
|
+
...props
|
|
44584
|
+
}
|
|
44585
|
+
);
|
|
44586
|
+
}
|
|
44245
44587
|
export {
|
|
44246
44588
|
Accordion,
|
|
44247
44589
|
AccordionContent,
|
|
@@ -44290,6 +44632,7 @@ export {
|
|
|
44290
44632
|
Collapsible,
|
|
44291
44633
|
CollapsibleContent,
|
|
44292
44634
|
CollapsibleTrigger,
|
|
44635
|
+
Command,
|
|
44293
44636
|
DataTable,
|
|
44294
44637
|
DataTablePagination,
|
|
44295
44638
|
DataTableToolbar,
|
|
@@ -44383,6 +44726,7 @@ export {
|
|
|
44383
44726
|
SimplePagination,
|
|
44384
44727
|
Skeleton,
|
|
44385
44728
|
Slider,
|
|
44729
|
+
Spinner,
|
|
44386
44730
|
Switch,
|
|
44387
44731
|
TABLE_TOKENS,
|
|
44388
44732
|
Table,
|