@unizap/uniui 1.0.27 → 1.0.28
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/uniui.css +1 -1
- package/dist/uniui.js +285 -296
- package/dist/uniui.umd.cjs +52 -52
- package/package.json +1 -1
package/dist/uniui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as R from "react";
|
|
2
|
-
import
|
|
2
|
+
import je, { useRef as se, useState as K, useEffect as ce, useMemo as Te, useReducer as Ur, useCallback as oe, forwardRef as Ye, useImperativeHandle as tr, Fragment as Yr, memo as Zr, useLayoutEffect as Kr } from "react";
|
|
3
3
|
import { createPortal as Ze } from "react-dom";
|
|
4
4
|
function nr(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function g(x) {
|
|
241
241
|
typeof x == "object" && x !== null && x.$$typeof === f && x._store && (x._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var p =
|
|
243
|
+
var p = je, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), w = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), O = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), Z = Symbol.for("react.client.reference"), ae = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ue = Object.prototype.hasOwnProperty, Q = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
p = {
|
|
@@ -453,7 +453,7 @@ const ve = {
|
|
|
453
453
|
peer: "peer-checked:border-color-rose-500 peer-checked:text-color-rose-500",
|
|
454
454
|
text: "text-color-rose-500"
|
|
455
455
|
}
|
|
456
|
-
},
|
|
456
|
+
}, Ll = (e) => {
|
|
457
457
|
Object.assign(ve, e);
|
|
458
458
|
}, qt = {
|
|
459
459
|
dark: {
|
|
@@ -603,7 +603,7 @@ const ve = {
|
|
|
603
603
|
thumbHover: "hover:bg-color-rose-600",
|
|
604
604
|
thumbActive: "active:bg-color-rose-700"
|
|
605
605
|
}
|
|
606
|
-
},
|
|
606
|
+
}, Fl = (e) => {
|
|
607
607
|
Object.assign(qt, e);
|
|
608
608
|
}, Gt = ({
|
|
609
609
|
title: e,
|
|
@@ -677,7 +677,7 @@ const ve = {
|
|
|
677
677
|
]
|
|
678
678
|
}
|
|
679
679
|
) });
|
|
680
|
-
},
|
|
680
|
+
}, Al = ({
|
|
681
681
|
children: e,
|
|
682
682
|
className: n = "",
|
|
683
683
|
border: t = !0
|
|
@@ -691,7 +691,7 @@ const ve = {
|
|
|
691
691
|
`,
|
|
692
692
|
children: e
|
|
693
693
|
}
|
|
694
|
-
),
|
|
694
|
+
), Nl = ({
|
|
695
695
|
label: e,
|
|
696
696
|
checked: n = !1,
|
|
697
697
|
disabled: t = !1,
|
|
@@ -735,7 +735,7 @@ const ve = {
|
|
|
735
735
|
e && /* @__PURE__ */ s.jsx("span", { className: `text-sm text-color-gray-700 ${a}`, children: e })
|
|
736
736
|
]
|
|
737
737
|
}
|
|
738
|
-
),
|
|
738
|
+
), Dl = ({
|
|
739
739
|
selected: e,
|
|
740
740
|
items: n = [],
|
|
741
741
|
className: t = "",
|
|
@@ -1451,7 +1451,7 @@ function io() {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
var lo = /* @__PURE__ */ io();
|
|
1453
1453
|
const ie = /* @__PURE__ */ nr(lo);
|
|
1454
|
-
function
|
|
1454
|
+
function Ne(e, n, t, r) {
|
|
1455
1455
|
function o(a) {
|
|
1456
1456
|
return a instanceof t ? a : new t(function(i) {
|
|
1457
1457
|
i(a);
|
|
@@ -2714,7 +2714,7 @@ const uo = [
|
|
|
2714
2714
|
// Windows
|
|
2715
2715
|
];
|
|
2716
2716
|
function po(e) {
|
|
2717
|
-
return
|
|
2717
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2718
2718
|
return pt(e) && fo(e.dataTransfer) ? xo(e.dataTransfer, e.type) : mo(e) ? go(e) : Array.isArray(e) && e.every((n) => "getFile" in n && typeof n.getFile == "function") ? vo(e) : [];
|
|
2719
2719
|
});
|
|
2720
2720
|
}
|
|
@@ -2731,12 +2731,12 @@ function go(e) {
|
|
|
2731
2731
|
return Wt(e.target.files).map((n) => Oe(n));
|
|
2732
2732
|
}
|
|
2733
2733
|
function vo(e) {
|
|
2734
|
-
return
|
|
2734
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2735
2735
|
return (yield Promise.all(e.map((t) => t.getFile()))).map((t) => Oe(t));
|
|
2736
2736
|
});
|
|
2737
2737
|
}
|
|
2738
2738
|
function xo(e, n) {
|
|
2739
|
-
return
|
|
2739
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2740
2740
|
if (e.items) {
|
|
2741
2741
|
const t = Wt(e.items).filter((o) => o.kind === "file");
|
|
2742
2742
|
if (n !== "drop")
|
|
@@ -2773,7 +2773,7 @@ function ar(e) {
|
|
|
2773
2773
|
], []);
|
|
2774
2774
|
}
|
|
2775
2775
|
function Ln(e, n) {
|
|
2776
|
-
return
|
|
2776
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2777
2777
|
var t;
|
|
2778
2778
|
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
|
2779
2779
|
const a = yield e.getAsFileSystemHandle();
|
|
@@ -2791,7 +2791,7 @@ function Ln(e, n) {
|
|
|
2791
2791
|
});
|
|
2792
2792
|
}
|
|
2793
2793
|
function bo(e) {
|
|
2794
|
-
return
|
|
2794
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2795
2795
|
return e.isDirectory ? ir(e) : wo(e);
|
|
2796
2796
|
});
|
|
2797
2797
|
}
|
|
@@ -2800,7 +2800,7 @@ function ir(e) {
|
|
|
2800
2800
|
return new Promise((t, r) => {
|
|
2801
2801
|
const o = [];
|
|
2802
2802
|
function a() {
|
|
2803
|
-
n.readEntries((i) =>
|
|
2803
|
+
n.readEntries((i) => Ne(this, void 0, void 0, function* () {
|
|
2804
2804
|
if (i.length) {
|
|
2805
2805
|
const l = Promise.all(i.map(bo));
|
|
2806
2806
|
o.push(l), a();
|
|
@@ -2819,7 +2819,7 @@ function ir(e) {
|
|
|
2819
2819
|
});
|
|
2820
2820
|
}
|
|
2821
2821
|
function wo(e) {
|
|
2822
|
-
return
|
|
2822
|
+
return Ne(this, void 0, void 0, function* () {
|
|
2823
2823
|
return new Promise((n, t) => {
|
|
2824
2824
|
e.file((r) => {
|
|
2825
2825
|
const o = Oe(r, e.fullPath);
|
|
@@ -2953,17 +2953,17 @@ function cr(e, n) {
|
|
|
2953
2953
|
return [t, t ? null : Ao(n)];
|
|
2954
2954
|
}
|
|
2955
2955
|
function ur(e, n, t) {
|
|
2956
|
-
if (
|
|
2957
|
-
if (
|
|
2956
|
+
if (Ae(e.size))
|
|
2957
|
+
if (Ae(n) && Ae(t)) {
|
|
2958
2958
|
if (e.size > t) return [!1, zn(t)];
|
|
2959
2959
|
if (e.size < n) return [!1, Tn(n)];
|
|
2960
2960
|
} else {
|
|
2961
|
-
if (
|
|
2962
|
-
if (
|
|
2961
|
+
if (Ae(n) && e.size < n) return [!1, Tn(n)];
|
|
2962
|
+
if (Ae(t) && e.size > t) return [!1, zn(t)];
|
|
2963
2963
|
}
|
|
2964
2964
|
return [!0, null];
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function Ae(e) {
|
|
2967
2967
|
return e != null;
|
|
2968
2968
|
}
|
|
2969
2969
|
function Do(e) {
|
|
@@ -2994,7 +2994,7 @@ function Oo() {
|
|
|
2994
2994
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2995
2995
|
return zo(e) || To(e);
|
|
2996
2996
|
}
|
|
2997
|
-
function
|
|
2997
|
+
function Se() {
|
|
2998
2998
|
for (var e = arguments.length, n = new Array(e), t = 0; t < e; t++)
|
|
2999
2999
|
n[t] = arguments[t];
|
|
3000
3000
|
return function(r) {
|
|
@@ -3009,7 +3009,7 @@ function Io() {
|
|
|
3009
3009
|
return "showOpenFilePicker" in window;
|
|
3010
3010
|
}
|
|
3011
3011
|
function Vo(e) {
|
|
3012
|
-
if (
|
|
3012
|
+
if (Ae(e)) {
|
|
3013
3013
|
var n = Object.entries(e).filter(function(t) {
|
|
3014
3014
|
var r = Ue(t, 2), o = r[0], a = r[1], i = !0;
|
|
3015
3015
|
return dr(o) || (console.warn('Skipped "'.concat(o, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), i = !1), (!Array.isArray(a) || !a.every(pr)) && (console.warn('Skipped "'.concat(o, '" because an invalid file extension was provided.')), i = !1), i;
|
|
@@ -3026,7 +3026,7 @@ function Vo(e) {
|
|
|
3026
3026
|
return e;
|
|
3027
3027
|
}
|
|
3028
3028
|
function Ho(e) {
|
|
3029
|
-
if (
|
|
3029
|
+
if (Ae(e))
|
|
3030
3030
|
return Object.entries(e).reduce(function(n, t) {
|
|
3031
3031
|
var r = Ue(t, 2), o = r[0], a = r[1];
|
|
3032
3032
|
return [].concat(An(n), [o], An(a));
|
|
@@ -3150,7 +3150,7 @@ var on = /* @__PURE__ */ Ye(function(e, n) {
|
|
|
3150
3150
|
return {
|
|
3151
3151
|
open: a
|
|
3152
3152
|
};
|
|
3153
|
-
}, [a]), /* @__PURE__ */
|
|
3153
|
+
}, [a]), /* @__PURE__ */ je.createElement(Yr, null, t(le(le({}, i), {}, {
|
|
3154
3154
|
open: a
|
|
3155
3155
|
})));
|
|
3156
3156
|
});
|
|
@@ -3350,13 +3350,13 @@ var Kt = {
|
|
|
3350
3350
|
fileRejections: []
|
|
3351
3351
|
};
|
|
3352
3352
|
function gr() {
|
|
3353
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({}, mr), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, i = n.minSize, l = n.multiple, c = n.maxFiles, u = n.onDragEnter, d = n.onDragLeave, g = n.onDragOver, p = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, m = n.onFileDialogCancel, b = n.onFileDialogOpen, h = n.useFsAccessApi, k = n.autoFocus, w = n.preventDropOnDocument, $ = n.noClick, y = n.noKeyboard, O = n.noDrag, D = n.noDragEventsBubbling, V = n.onError, F = n.validator, Z =
|
|
3353
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = le(le({}, mr), e), t = n.accept, r = n.disabled, o = n.getFilesFromEvent, a = n.maxSize, i = n.minSize, l = n.multiple, c = n.maxFiles, u = n.onDragEnter, d = n.onDragLeave, g = n.onDragOver, p = n.onDrop, f = n.onDropAccepted, v = n.onDropRejected, m = n.onFileDialogCancel, b = n.onFileDialogOpen, h = n.useFsAccessApi, k = n.autoFocus, w = n.preventDropOnDocument, $ = n.noClick, y = n.noKeyboard, O = n.noDrag, D = n.noDragEventsBubbling, V = n.onError, F = n.validator, Z = Te(function() {
|
|
3354
3354
|
return Ho(t);
|
|
3355
|
-
}, [t]), ae =
|
|
3355
|
+
}, [t]), ae = Te(function() {
|
|
3356
3356
|
return Vo(t);
|
|
3357
|
-
}, [t]), ue =
|
|
3357
|
+
}, [t]), ue = Te(function() {
|
|
3358
3358
|
return typeof b == "function" ? b : Vn;
|
|
3359
|
-
}, [b]), Q =
|
|
3359
|
+
}, [b]), Q = Te(function() {
|
|
3360
3360
|
return typeof m == "function" ? m : Vn;
|
|
3361
3361
|
}, [m]), H = se(null), Y = se(null), T = Ur(ra, Kt), te = At(T, 2), pe = te[0], X = te[1], x = pe.isFocused, C = pe.isFileDialogActive, L = se(typeof window < "u" && window.isSecureContext && h && Io()), M = function() {
|
|
3362
3362
|
!L.current && C && setTimeout(function() {
|
|
@@ -3431,7 +3431,7 @@ function gr() {
|
|
|
3431
3431
|
}, [H, d, D]), q = oe(function(A, G) {
|
|
3432
3432
|
var me = [], ge = [];
|
|
3433
3433
|
A.forEach(function(we) {
|
|
3434
|
-
var Ve = cr(we, Z),
|
|
3434
|
+
var Ve = cr(we, Z), ze = At(Ve, 2), wt = ze[0], yt = ze[1], Ct = ur(we, i, a), Qe = At(Ct, 2), St = Qe[0], jt = Qe[1], Rt = F ? F(we) : null;
|
|
3435
3435
|
if (wt && St && !Rt)
|
|
3436
3436
|
me.push(we);
|
|
3437
3437
|
else {
|
|
@@ -3507,18 +3507,18 @@ function gr() {
|
|
|
3507
3507
|
return O ? null : fe(G);
|
|
3508
3508
|
}, Je = function(G) {
|
|
3509
3509
|
D && G.stopPropagation();
|
|
3510
|
-
}, Br =
|
|
3510
|
+
}, Br = Te(function() {
|
|
3511
3511
|
return function() {
|
|
3512
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, we = A.onKeyDown, Ve = A.onFocus,
|
|
3512
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.role, we = A.onKeyDown, Ve = A.onFocus, ze = A.onBlur, wt = A.onClick, yt = A.onDragEnter, Ct = A.onDragOver, Qe = A.onDragLeave, St = A.onDrop, jt = mt(A, Uo);
|
|
3513
3513
|
return le(le(Zt({
|
|
3514
|
-
onKeyDown: be(
|
|
3515
|
-
onFocus: be(
|
|
3516
|
-
onBlur: be(
|
|
3517
|
-
onClick: fe(
|
|
3518
|
-
onDragEnter: Xe(
|
|
3519
|
-
onDragOver: Xe(
|
|
3520
|
-
onDragLeave: Xe(
|
|
3521
|
-
onDrop: Xe(
|
|
3514
|
+
onKeyDown: be(Se(we, _)),
|
|
3515
|
+
onFocus: be(Se(Ve, J)),
|
|
3516
|
+
onBlur: be(Se(ze, ee)),
|
|
3517
|
+
onClick: fe(Se(wt, de)),
|
|
3518
|
+
onDragEnter: Xe(Se(yt, E)),
|
|
3519
|
+
onDragOver: Xe(Se(Ct, P)),
|
|
3520
|
+
onDragLeave: Xe(Se(Qe, B)),
|
|
3521
|
+
onDrop: Xe(Se(St, S)),
|
|
3522
3522
|
role: typeof ge == "string" && ge !== "" ? ge : "presentation"
|
|
3523
3523
|
}, me, H), !r && !y ? {
|
|
3524
3524
|
tabIndex: 0
|
|
@@ -3526,9 +3526,9 @@ function gr() {
|
|
|
3526
3526
|
};
|
|
3527
3527
|
}, [H, _, J, ee, de, E, P, B, S, y, O, r]), qr = oe(function(A) {
|
|
3528
3528
|
A.stopPropagation();
|
|
3529
|
-
}, []), Gr =
|
|
3529
|
+
}, []), Gr = Te(function() {
|
|
3530
3530
|
return function() {
|
|
3531
|
-
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, we = A.onClick, Ve = mt(A, Yo),
|
|
3531
|
+
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, G = A.refKey, me = G === void 0 ? "ref" : G, ge = A.onChange, we = A.onClick, Ve = mt(A, Yo), ze = Zt({
|
|
3532
3532
|
accept: Z,
|
|
3533
3533
|
multiple: l,
|
|
3534
3534
|
type: "file",
|
|
@@ -3544,11 +3544,11 @@ function gr() {
|
|
|
3544
3544
|
width: "1px",
|
|
3545
3545
|
whiteSpace: "nowrap"
|
|
3546
3546
|
},
|
|
3547
|
-
onChange: fe(
|
|
3548
|
-
onClick: fe(
|
|
3547
|
+
onChange: fe(Se(ge, S)),
|
|
3548
|
+
onClick: fe(Se(we, qr)),
|
|
3549
3549
|
tabIndex: -1
|
|
3550
3550
|
}, me, Y);
|
|
3551
|
-
return le(le({},
|
|
3551
|
+
return le(le({}, ze), Ve);
|
|
3552
3552
|
};
|
|
3553
3553
|
}, [Y, t, l, S, r]);
|
|
3554
3554
|
return le(le({}, pe), {}, {
|
|
@@ -3598,7 +3598,7 @@ function ra(e, n) {
|
|
|
3598
3598
|
}
|
|
3599
3599
|
function Vn() {
|
|
3600
3600
|
}
|
|
3601
|
-
const
|
|
3601
|
+
const zl = ({
|
|
3602
3602
|
onFilesAccepted: e,
|
|
3603
3603
|
onError: n,
|
|
3604
3604
|
accept: t = {
|
|
@@ -4009,7 +4009,7 @@ const xr = ({
|
|
|
4009
4009
|
small: "!w-4 !h-4 text-xs",
|
|
4010
4010
|
medium: "!w-5 !h-5 text-sm",
|
|
4011
4011
|
large: "!w-6 !h-6 text-base"
|
|
4012
|
-
},
|
|
4012
|
+
}, Tl = ({
|
|
4013
4013
|
label: e,
|
|
4014
4014
|
color: n = "blue",
|
|
4015
4015
|
variant: t = "filled",
|
|
@@ -4060,7 +4060,7 @@ const xr = ({
|
|
|
4060
4060
|
children: b
|
|
4061
4061
|
}
|
|
4062
4062
|
);
|
|
4063
|
-
},
|
|
4063
|
+
}, Ol = ({
|
|
4064
4064
|
size: e,
|
|
4065
4065
|
imageUrl: n,
|
|
4066
4066
|
name: t = "User",
|
|
@@ -4072,9 +4072,9 @@ const xr = ({
|
|
|
4072
4072
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-color-gray-800", children: t }),
|
|
4073
4073
|
/* @__PURE__ */ s.jsx("span", { className: "text-xs text-color-gray-600", children: r })
|
|
4074
4074
|
] })
|
|
4075
|
-
] }),
|
|
4075
|
+
] }), Il = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
|
|
4076
4076
|
const i = a === n, l = a < n;
|
|
4077
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4077
|
+
return /* @__PURE__ */ s.jsxs(je.Fragment, { children: [
|
|
4078
4078
|
/* @__PURE__ */ s.jsxs(
|
|
4079
4079
|
"div",
|
|
4080
4080
|
{
|
|
@@ -4106,14 +4106,14 @@ const xr = ({
|
|
|
4106
4106
|
*
|
|
4107
4107
|
* @license MIT
|
|
4108
4108
|
*/
|
|
4109
|
-
function
|
|
4109
|
+
function Me(e, n) {
|
|
4110
4110
|
return typeof e == "function" ? e(n) : e;
|
|
4111
4111
|
}
|
|
4112
4112
|
function ye(e, n) {
|
|
4113
4113
|
return (t) => {
|
|
4114
4114
|
n.setState((r) => ({
|
|
4115
4115
|
...r,
|
|
4116
|
-
[e]:
|
|
4116
|
+
[e]: Me(t, r[e])
|
|
4117
4117
|
}));
|
|
4118
4118
|
};
|
|
4119
4119
|
}
|
|
@@ -4404,36 +4404,36 @@ const ha = (e, n, t, r, o, a, i) => {
|
|
|
4404
4404
|
const a = t == null || (r = t.toString()) == null ? void 0 : r.toLowerCase();
|
|
4405
4405
|
return !!(!((o = e.getValue(n)) == null || (o = o.toString()) == null || (o = o.toLowerCase()) == null) && o.includes(a));
|
|
4406
4406
|
};
|
|
4407
|
-
hr.autoRemove = (e) =>
|
|
4407
|
+
hr.autoRemove = (e) => Ce(e);
|
|
4408
4408
|
const br = (e, n, t) => {
|
|
4409
4409
|
var r;
|
|
4410
4410
|
return !!(!((r = e.getValue(n)) == null || (r = r.toString()) == null) && r.includes(t));
|
|
4411
4411
|
};
|
|
4412
|
-
br.autoRemove = (e) =>
|
|
4412
|
+
br.autoRemove = (e) => Ce(e);
|
|
4413
4413
|
const wr = (e, n, t) => {
|
|
4414
4414
|
var r;
|
|
4415
4415
|
return ((r = e.getValue(n)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
|
|
4416
4416
|
};
|
|
4417
|
-
wr.autoRemove = (e) =>
|
|
4417
|
+
wr.autoRemove = (e) => Ce(e);
|
|
4418
4418
|
const yr = (e, n, t) => {
|
|
4419
4419
|
var r;
|
|
4420
4420
|
return (r = e.getValue(n)) == null ? void 0 : r.includes(t);
|
|
4421
4421
|
};
|
|
4422
|
-
yr.autoRemove = (e) =>
|
|
4422
|
+
yr.autoRemove = (e) => Ce(e);
|
|
4423
4423
|
const Cr = (e, n, t) => !t.some((r) => {
|
|
4424
4424
|
var o;
|
|
4425
4425
|
return !((o = e.getValue(n)) != null && o.includes(r));
|
|
4426
4426
|
});
|
|
4427
|
-
Cr.autoRemove = (e) =>
|
|
4427
|
+
Cr.autoRemove = (e) => Ce(e) || !(e != null && e.length);
|
|
4428
4428
|
const Sr = (e, n, t) => t.some((r) => {
|
|
4429
4429
|
var o;
|
|
4430
4430
|
return (o = e.getValue(n)) == null ? void 0 : o.includes(r);
|
|
4431
4431
|
});
|
|
4432
|
-
Sr.autoRemove = (e) =>
|
|
4432
|
+
Sr.autoRemove = (e) => Ce(e) || !(e != null && e.length);
|
|
4433
4433
|
const jr = (e, n, t) => e.getValue(n) === t;
|
|
4434
|
-
jr.autoRemove = (e) =>
|
|
4434
|
+
jr.autoRemove = (e) => Ce(e);
|
|
4435
4435
|
const Rr = (e, n, t) => e.getValue(n) == t;
|
|
4436
|
-
Rr.autoRemove = (e) =>
|
|
4436
|
+
Rr.autoRemove = (e) => Ce(e);
|
|
4437
4437
|
const an = (e, n, t) => {
|
|
4438
4438
|
let [r, o] = t;
|
|
4439
4439
|
const a = e.getValue(n);
|
|
@@ -4447,7 +4447,7 @@ an.resolveFilterValue = (e) => {
|
|
|
4447
4447
|
}
|
|
4448
4448
|
return [a, i];
|
|
4449
4449
|
};
|
|
4450
|
-
an.autoRemove = (e) =>
|
|
4450
|
+
an.autoRemove = (e) => Ce(e) || Ce(e[0]) && Ce(e[1]);
|
|
4451
4451
|
const ke = {
|
|
4452
4452
|
includesString: hr,
|
|
4453
4453
|
includesStringSensitive: br,
|
|
@@ -4459,7 +4459,7 @@ const ke = {
|
|
|
4459
4459
|
weakEquals: Rr,
|
|
4460
4460
|
inNumberRange: an
|
|
4461
4461
|
};
|
|
4462
|
-
function
|
|
4462
|
+
function Ce(e) {
|
|
4463
4463
|
return e == null || e === "";
|
|
4464
4464
|
}
|
|
4465
4465
|
const wa = {
|
|
@@ -4496,7 +4496,7 @@ const wa = {
|
|
|
4496
4496
|
return (t = (r = n.getState().columnFilters) == null ? void 0 : r.findIndex((o) => o.id === e.id)) != null ? t : -1;
|
|
4497
4497
|
}, e.setFilterValue = (t) => {
|
|
4498
4498
|
n.setColumnFilters((r) => {
|
|
4499
|
-
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((d) => d.id === e.id), i =
|
|
4499
|
+
const o = e.getFilterFn(), a = r == null ? void 0 : r.find((d) => d.id === e.id), i = Me(t, a ? a.value : void 0);
|
|
4500
4500
|
if (qn(o, i, e)) {
|
|
4501
4501
|
var l;
|
|
4502
4502
|
return (l = r == null ? void 0 : r.filter((d) => d.id !== e.id)) != null ? l : [];
|
|
@@ -4520,7 +4520,7 @@ const wa = {
|
|
|
4520
4520
|
e.setColumnFilters = (n) => {
|
|
4521
4521
|
const t = e.getAllLeafColumns(), r = (o) => {
|
|
4522
4522
|
var a;
|
|
4523
|
-
return (a =
|
|
4523
|
+
return (a = Me(n, o)) == null ? void 0 : a.filter((i) => {
|
|
4524
4524
|
const l = t.find((c) => c.id === i.id);
|
|
4525
4525
|
if (l) {
|
|
4526
4526
|
const c = l.getFilterFn();
|
|
@@ -5141,14 +5141,14 @@ const za = {
|
|
|
5141
5141
|
});
|
|
5142
5142
|
}
|
|
5143
5143
|
}, e.setPagination = (r) => {
|
|
5144
|
-
const o = (a) =>
|
|
5144
|
+
const o = (a) => Me(r, a);
|
|
5145
5145
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
5146
5146
|
}, e.resetPagination = (r) => {
|
|
5147
5147
|
var o;
|
|
5148
5148
|
e.setPagination(r ? Ot() : (o = e.initialState.pagination) != null ? o : Ot());
|
|
5149
5149
|
}, e.setPageIndex = (r) => {
|
|
5150
5150
|
e.setPagination((o) => {
|
|
5151
|
-
let a =
|
|
5151
|
+
let a = Me(r, o.pageIndex);
|
|
5152
5152
|
const i = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
5153
5153
|
return a = Math.max(0, Math.min(a, i)), {
|
|
5154
5154
|
...o,
|
|
@@ -5163,7 +5163,7 @@ const za = {
|
|
|
5163
5163
|
e.setPageSize(r ? Jt : (o = (a = e.initialState) == null || (a = a.pagination) == null ? void 0 : a.pageSize) != null ? o : Jt);
|
|
5164
5164
|
}, e.setPageSize = (r) => {
|
|
5165
5165
|
e.setPagination((o) => {
|
|
5166
|
-
const a = Math.max(1,
|
|
5166
|
+
const a = Math.max(1, Me(r, o.pageSize)), i = o.pageSize * o.pageIndex, l = Math.floor(i / a);
|
|
5167
5167
|
return {
|
|
5168
5168
|
...o,
|
|
5169
5169
|
pageIndex: l,
|
|
@@ -5172,7 +5172,7 @@ const za = {
|
|
|
5172
5172
|
});
|
|
5173
5173
|
}, e.setPageCount = (r) => e.setPagination((o) => {
|
|
5174
5174
|
var a;
|
|
5175
|
-
let i =
|
|
5175
|
+
let i = Me(r, (a = e.options.pageCount) != null ? a : -1);
|
|
5176
5176
|
return typeof i == "number" && (i = Math.max(-1, i)), {
|
|
5177
5177
|
...o,
|
|
5178
5178
|
pageCount: i
|
|
@@ -5453,14 +5453,14 @@ function en(e, n, t) {
|
|
|
5453
5453
|
}
|
|
5454
5454
|
}), o ? "all" : a ? "some" : !1;
|
|
5455
5455
|
}
|
|
5456
|
-
const tn = /([0-9]+)/gm, Ba = (e, n, t) => kr(
|
|
5456
|
+
const tn = /([0-9]+)/gm, Ba = (e, n, t) => kr(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), qa = (e, n, t) => kr(Le(e.getValue(t)), Le(n.getValue(t))), Ga = (e, n, t) => sn(Le(e.getValue(t)).toLowerCase(), Le(n.getValue(t)).toLowerCase()), Wa = (e, n, t) => sn(Le(e.getValue(t)), Le(n.getValue(t))), Ua = (e, n, t) => {
|
|
5457
5457
|
const r = e.getValue(t), o = n.getValue(t);
|
|
5458
5458
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
5459
5459
|
}, Ya = (e, n, t) => sn(e.getValue(t), n.getValue(t));
|
|
5460
5460
|
function sn(e, n) {
|
|
5461
5461
|
return e === n ? 0 : e > n ? 1 : -1;
|
|
5462
5462
|
}
|
|
5463
|
-
function
|
|
5463
|
+
function Le(e) {
|
|
5464
5464
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
5465
5465
|
}
|
|
5466
5466
|
function kr(e, n) {
|
|
@@ -5640,7 +5640,7 @@ function Xa(e) {
|
|
|
5640
5640
|
o.setState(o.initialState);
|
|
5641
5641
|
},
|
|
5642
5642
|
setOptions: (p) => {
|
|
5643
|
-
const f =
|
|
5643
|
+
const f = Me(p, o.options);
|
|
5644
5644
|
o.options = i(f);
|
|
5645
5645
|
},
|
|
5646
5646
|
getState: () => o.options.state,
|
|
@@ -5864,7 +5864,7 @@ const ei = {
|
|
|
5864
5864
|
}
|
|
5865
5865
|
)
|
|
5866
5866
|
] });
|
|
5867
|
-
},
|
|
5867
|
+
}, Vl = ({
|
|
5868
5868
|
data: e,
|
|
5869
5869
|
columns: n = [],
|
|
5870
5870
|
pageSize: t,
|
|
@@ -5933,18 +5933,18 @@ const ei = {
|
|
|
5933
5933
|
)
|
|
5934
5934
|
] })
|
|
5935
5935
|
] }) });
|
|
5936
|
-
},
|
|
5936
|
+
}, Hl = ({ children: e, className: n = "" }) => /* @__PURE__ */ s.jsx("ul", { className: `divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${n}`, children: e }), Bl = ({ children: e, secondaryAction: n, className: t = "" }) => /* @__PURE__ */ s.jsxs("li", { className: `flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`, children: [
|
|
5937
5937
|
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: e }),
|
|
5938
5938
|
n && /* @__PURE__ */ s.jsx("div", { className: "ml-4", children: n })
|
|
5939
|
-
] }),
|
|
5939
|
+
] }), ql = ({
|
|
5940
5940
|
open: e,
|
|
5941
5941
|
onClick: n,
|
|
5942
5942
|
className: t = "",
|
|
5943
5943
|
children: r,
|
|
5944
5944
|
...o
|
|
5945
5945
|
}) => {
|
|
5946
|
-
const [a, i] =
|
|
5947
|
-
return
|
|
5946
|
+
const [a, i] = je.useState(!1);
|
|
5947
|
+
return je.useEffect(() => {
|
|
5948
5948
|
let l;
|
|
5949
5949
|
return e ? l = setTimeout(() => i(!0), 100) : i(!1), () => clearTimeout(l);
|
|
5950
5950
|
}, [e]), !e && !a ? null : /* @__PURE__ */ s.jsx(
|
|
@@ -5957,7 +5957,7 @@ const ei = {
|
|
|
5957
5957
|
children: r
|
|
5958
5958
|
}
|
|
5959
5959
|
);
|
|
5960
|
-
},
|
|
5960
|
+
}, Gl = ({
|
|
5961
5961
|
animation: e = "pulse",
|
|
5962
5962
|
variant: n = "rectangular",
|
|
5963
5963
|
width: t,
|
|
@@ -6027,7 +6027,7 @@ const ei = {
|
|
|
6027
6027
|
}
|
|
6028
6028
|
` })
|
|
6029
6029
|
] }) });
|
|
6030
|
-
},
|
|
6030
|
+
}, Wl = ({
|
|
6031
6031
|
label: e,
|
|
6032
6032
|
error: n,
|
|
6033
6033
|
className: t = "",
|
|
@@ -6075,7 +6075,7 @@ function ri(e) {
|
|
|
6075
6075
|
}, []);
|
|
6076
6076
|
return { schedule: i, flush: a, cancel: l, last: t };
|
|
6077
6077
|
}
|
|
6078
|
-
const
|
|
6078
|
+
const Ul = Zr(function({
|
|
6079
6079
|
/** controlled */
|
|
6080
6080
|
value: n,
|
|
6081
6081
|
/** uncontrolled */
|
|
@@ -6371,7 +6371,7 @@ const Yl = Zr(function({
|
|
|
6371
6371
|
] }),
|
|
6372
6372
|
p && /* @__PURE__ */ s.jsx("div", { className: "ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right", children: m ? /* @__PURE__ */ s.jsx("div", { className: "range-max", children: /* @__PURE__ */ s.jsx("div", { children: D }) }) : /* @__PURE__ */ s.jsx("span", { children: y }) })
|
|
6373
6373
|
] }) });
|
|
6374
|
-
}),
|
|
6374
|
+
}), Yl = ({
|
|
6375
6375
|
open: e = !1,
|
|
6376
6376
|
message: n,
|
|
6377
6377
|
autoHideDuration: t = 4e3,
|
|
@@ -6453,7 +6453,7 @@ const Yl = Zr(function({
|
|
|
6453
6453
|
}
|
|
6454
6454
|
)
|
|
6455
6455
|
] }) : null;
|
|
6456
|
-
},
|
|
6456
|
+
}, Zl = ({
|
|
6457
6457
|
variant: e = "linear",
|
|
6458
6458
|
value: n = 0,
|
|
6459
6459
|
color: t = "blue",
|
|
@@ -6461,36 +6461,35 @@ const Yl = Zr(function({
|
|
|
6461
6461
|
className: o = "",
|
|
6462
6462
|
...a
|
|
6463
6463
|
}) => {
|
|
6464
|
-
var
|
|
6465
|
-
const i = "inline-block", l = (
|
|
6464
|
+
var g, p;
|
|
6465
|
+
const i = "inline-block", l = (g = ve[t]) == null ? void 0 : g.transparent, c = (p = ve[t]) == null ? void 0 : p.filled, u = Math.min(Math.max(n, 0), 100);
|
|
6466
6466
|
if (e === "circular") {
|
|
6467
|
-
const { size:
|
|
6467
|
+
const { size: f = 40, thickness: v = 3.6 } = a, m = (f - v) / 2, b = 2 * Math.PI * m, h = `${b} ${b}`, k = b - u / 100 * b;
|
|
6468
6468
|
return /* @__PURE__ */ s.jsx(
|
|
6469
6469
|
"div",
|
|
6470
6470
|
{
|
|
6471
6471
|
className: `${i} ${o}`,
|
|
6472
|
-
style: { width:
|
|
6472
|
+
style: { width: f, height: f },
|
|
6473
6473
|
role: "progressbar",
|
|
6474
6474
|
"aria-valuenow": r ? u : void 0,
|
|
6475
6475
|
"aria-valuemin": 0,
|
|
6476
6476
|
"aria-valuemax": 100,
|
|
6477
|
-
"aria-busy": !r,
|
|
6478
6477
|
children: /* @__PURE__ */ s.jsxs(
|
|
6479
6478
|
"svg",
|
|
6480
6479
|
{
|
|
6481
|
-
className:
|
|
6482
|
-
width:
|
|
6483
|
-
height:
|
|
6484
|
-
viewBox: `0 0 ${
|
|
6480
|
+
className: "transform -rotate-90",
|
|
6481
|
+
width: f,
|
|
6482
|
+
height: f,
|
|
6483
|
+
viewBox: `0 0 ${f} ${f}`,
|
|
6485
6484
|
children: [
|
|
6486
6485
|
/* @__PURE__ */ s.jsx(
|
|
6487
6486
|
"circle",
|
|
6488
6487
|
{
|
|
6489
|
-
cx:
|
|
6490
|
-
cy:
|
|
6491
|
-
r:
|
|
6488
|
+
cx: f / 2,
|
|
6489
|
+
cy: f / 2,
|
|
6490
|
+
r: m,
|
|
6492
6491
|
stroke: "currentColor",
|
|
6493
|
-
strokeWidth:
|
|
6492
|
+
strokeWidth: v,
|
|
6494
6493
|
fill: "none",
|
|
6495
6494
|
className: "text-color-gray-200 dark:text-color-gray-700"
|
|
6496
6495
|
}
|
|
@@ -6498,15 +6497,19 @@ const Yl = Zr(function({
|
|
|
6498
6497
|
/* @__PURE__ */ s.jsx(
|
|
6499
6498
|
"circle",
|
|
6500
6499
|
{
|
|
6501
|
-
cx:
|
|
6502
|
-
cy:
|
|
6503
|
-
r:
|
|
6500
|
+
cx: f / 2,
|
|
6501
|
+
cy: f / 2,
|
|
6502
|
+
r: m,
|
|
6504
6503
|
stroke: "currentColor",
|
|
6505
|
-
strokeWidth:
|
|
6504
|
+
strokeWidth: v,
|
|
6506
6505
|
fill: "none",
|
|
6507
6506
|
strokeLinecap: "round",
|
|
6508
|
-
className: `${l}`,
|
|
6509
|
-
style:
|
|
6507
|
+
className: `${l} transition-all duration-300 ease-out ${r ? "" : "animate-spin-slow"}`,
|
|
6508
|
+
style: {
|
|
6509
|
+
strokeDasharray: h,
|
|
6510
|
+
strokeDashoffset: r ? k : b * 0.75,
|
|
6511
|
+
transformOrigin: "center"
|
|
6512
|
+
}
|
|
6510
6513
|
}
|
|
6511
6514
|
)
|
|
6512
6515
|
]
|
|
@@ -6515,7 +6518,7 @@ const Yl = Zr(function({
|
|
|
6515
6518
|
}
|
|
6516
6519
|
);
|
|
6517
6520
|
}
|
|
6518
|
-
const { thickness: d = 4 } = a
|
|
6521
|
+
const { thickness: d = 4 } = a;
|
|
6519
6522
|
return /* @__PURE__ */ s.jsx(
|
|
6520
6523
|
"div",
|
|
6521
6524
|
{
|
|
@@ -6524,8 +6527,6 @@ const Yl = Zr(function({
|
|
|
6524
6527
|
"aria-valuenow": r ? u : void 0,
|
|
6525
6528
|
"aria-valuemin": 0,
|
|
6526
6529
|
"aria-valuemax": 100,
|
|
6527
|
-
"aria-busy": !r,
|
|
6528
|
-
style: { contain: "paint" },
|
|
6529
6530
|
children: /* @__PURE__ */ s.jsx(
|
|
6530
6531
|
"div",
|
|
6531
6532
|
{
|
|
@@ -6534,33 +6535,21 @@ const Yl = Zr(function({
|
|
|
6534
6535
|
children: r ? /* @__PURE__ */ s.jsx(
|
|
6535
6536
|
"div",
|
|
6536
6537
|
{
|
|
6537
|
-
className: `h-full ${c}`,
|
|
6538
|
-
style: {
|
|
6539
|
-
width: "100%",
|
|
6540
|
-
// fixed width
|
|
6541
|
-
transform: `scaleX(${g})`,
|
|
6542
|
-
transformOrigin: "left",
|
|
6543
|
-
willChange: "transform",
|
|
6544
|
-
transition: "transform 300ms ease-out"
|
|
6545
|
-
}
|
|
6538
|
+
className: `h-full ${c} transition-all duration-300 ease-out`,
|
|
6539
|
+
style: { width: `${u}%` }
|
|
6546
6540
|
}
|
|
6547
6541
|
) : /* @__PURE__ */ s.jsx(
|
|
6548
6542
|
"div",
|
|
6549
6543
|
{
|
|
6550
6544
|
className: `absolute left-0 top-0 h-full ${c} animate-progress-indeterminate-gpu`,
|
|
6551
|
-
style: {
|
|
6552
|
-
width: "40%",
|
|
6553
|
-
willChange: "transform"
|
|
6554
|
-
}
|
|
6545
|
+
style: { width: "40%" }
|
|
6555
6546
|
}
|
|
6556
6547
|
)
|
|
6557
6548
|
}
|
|
6558
6549
|
)
|
|
6559
6550
|
}
|
|
6560
6551
|
);
|
|
6561
|
-
})
|
|
6562
|
-
oi.displayName = "Progress";
|
|
6563
|
-
const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), Un = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), st = {
|
|
6552
|
+
}, Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-500", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), Un = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-gray-300", fill: "none", stroke: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ s.jsx("path", { d: "M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z" }) }), st = {
|
|
6564
6553
|
small: "w-4 h-4",
|
|
6565
6554
|
medium: "w-6 h-6",
|
|
6566
6555
|
large: "w-8 h-8"
|
|
@@ -6580,7 +6569,7 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
6580
6569
|
labels: p = {}
|
|
6581
6570
|
// <-- Add this
|
|
6582
6571
|
}) => {
|
|
6583
|
-
const [f, v] =
|
|
6572
|
+
const [f, v] = je.useState(null), m = (w, $) => {
|
|
6584
6573
|
if (t || r || !n) return;
|
|
6585
6574
|
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6586
6575
|
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
@@ -6592,7 +6581,7 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
6592
6581
|
V = Math.min(a, Math.max(o, Math.round(V / o) * o)), v(V);
|
|
6593
6582
|
}, h = () => v(null), k = [];
|
|
6594
6583
|
for (let w = 1; w <= a; w++) {
|
|
6595
|
-
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l ||
|
|
6584
|
+
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l || je.cloneElement(Wn, { className: `fill-color-yellow-500 ${st[i]}` }) : c || je.cloneElement(Un, { className: `stroke-color-gray-300 ${st[i]}` });
|
|
6596
6585
|
if (y) {
|
|
6597
6586
|
const D = ((f !== null ? f : e) - (w - 1)) * 100;
|
|
6598
6587
|
O = /* @__PURE__ */ s.jsxs("span", { className: "relative block", children: [
|
|
@@ -6601,12 +6590,12 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
6601
6590
|
{
|
|
6602
6591
|
className: "absolute top-0 left-0 overflow-hidden",
|
|
6603
6592
|
style: { width: `${D}%` },
|
|
6604
|
-
children: l ||
|
|
6593
|
+
children: l || je.cloneElement(Wn, {
|
|
6605
6594
|
className: `fill-color-yellow-500 ${st[i]}`
|
|
6606
6595
|
})
|
|
6607
6596
|
}
|
|
6608
6597
|
),
|
|
6609
|
-
c ||
|
|
6598
|
+
c || je.cloneElement(Un, {
|
|
6610
6599
|
className: `stroke-color-gray-300 ${st[i]}`
|
|
6611
6600
|
})
|
|
6612
6601
|
] });
|
|
@@ -6914,7 +6903,7 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
6914
6903
|
)
|
|
6915
6904
|
}
|
|
6916
6905
|
);
|
|
6917
|
-
},
|
|
6906
|
+
}, oi = {
|
|
6918
6907
|
small: "px-2 py-1 text-sm",
|
|
6919
6908
|
medium: "px-4 py-2 text-base",
|
|
6920
6909
|
large: "px-6 py-3 text-lg"
|
|
@@ -6953,7 +6942,7 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
6953
6942
|
disabled: u || p.disabled,
|
|
6954
6943
|
className: `
|
|
6955
6944
|
flex items-center justify-center gap-2 border-0 ${i === "vertical" ? "not-last:border-b-1" : "not-last:border-r-1"} border-color-gray-200
|
|
6956
|
-
${
|
|
6945
|
+
${oi[o]}
|
|
6957
6946
|
${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
|
|
6958
6947
|
${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
6959
6948
|
${c}
|
|
@@ -6984,7 +6973,7 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
6984
6973
|
small: "rounded-md",
|
|
6985
6974
|
medium: "rounded-xl",
|
|
6986
6975
|
large: "rounded-2xl"
|
|
6987
|
-
},
|
|
6976
|
+
}, ai = ({
|
|
6988
6977
|
title: e,
|
|
6989
6978
|
subtitle: n,
|
|
6990
6979
|
space: t = "medium",
|
|
@@ -7196,10 +7185,10 @@ const Wn = /* @__PURE__ */ s.jsx("svg", { className: "w-5 h-5 fill-color-yellow-
|
|
|
7196
7185
|
)
|
|
7197
7186
|
] });
|
|
7198
7187
|
};
|
|
7199
|
-
function
|
|
7188
|
+
function ii(...e) {
|
|
7200
7189
|
return e.filter(Boolean).join(" ");
|
|
7201
7190
|
}
|
|
7202
|
-
const
|
|
7191
|
+
const li = {
|
|
7203
7192
|
sm: "max-w-sm",
|
|
7204
7193
|
md: "max-w-md",
|
|
7205
7194
|
lg: "max-w-lg",
|
|
@@ -7207,7 +7196,7 @@ const si = {
|
|
|
7207
7196
|
"2xl": "max-w-2xl",
|
|
7208
7197
|
"4xl": "max-w-4xl",
|
|
7209
7198
|
"6xl": "max-w-6xl"
|
|
7210
|
-
},
|
|
7199
|
+
}, si = Ye(
|
|
7211
7200
|
({
|
|
7212
7201
|
open: e,
|
|
7213
7202
|
onClose: n,
|
|
@@ -7246,7 +7235,7 @@ const si = {
|
|
|
7246
7235
|
/* @__PURE__ */ s.jsxs(
|
|
7247
7236
|
"div",
|
|
7248
7237
|
{
|
|
7249
|
-
className:
|
|
7238
|
+
className: ii(
|
|
7250
7239
|
"fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
|
|
7251
7240
|
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7252
7241
|
),
|
|
@@ -7263,7 +7252,7 @@ const si = {
|
|
|
7263
7252
|
/* @__PURE__ */ s.jsxs(
|
|
7264
7253
|
"div",
|
|
7265
7254
|
{
|
|
7266
|
-
className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ?
|
|
7255
|
+
className: `relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m ? "opacity-100 scale-100" : "opacity-0 scale-95"} ${l ? "w-full h-[calc(100%_-_40px)] m-5" : `${c ? "w-full" : "w-auto"} ${u ? li[u] : ""} mx-5`} ${t}`,
|
|
7267
7256
|
onTransitionEnd: h,
|
|
7268
7257
|
children: [
|
|
7269
7258
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
@@ -7347,10 +7336,10 @@ function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7347
7336
|
o && Ze(f, document.body)
|
|
7348
7337
|
] });
|
|
7349
7338
|
}
|
|
7350
|
-
function
|
|
7339
|
+
function ci(...e) {
|
|
7351
7340
|
return e.filter(Boolean).join(" ");
|
|
7352
7341
|
}
|
|
7353
|
-
const
|
|
7342
|
+
const ui = ({
|
|
7354
7343
|
open: e,
|
|
7355
7344
|
onClose: n,
|
|
7356
7345
|
className: t,
|
|
@@ -7394,7 +7383,7 @@ const di = ({
|
|
|
7394
7383
|
/* @__PURE__ */ s.jsxs(
|
|
7395
7384
|
"div",
|
|
7396
7385
|
{
|
|
7397
|
-
className:
|
|
7386
|
+
className: ci(
|
|
7398
7387
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7399
7388
|
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7400
7389
|
),
|
|
@@ -7472,19 +7461,19 @@ const di = ({
|
|
|
7472
7461
|
),
|
|
7473
7462
|
/* @__PURE__ */ s.jsx("div", { className: `grid overflow-hidden transition-all duration-300 ease-in-out grid-rows-[0fr] ${f ? "grid-rows-[1fr] opacity-100" : "grid-rows-[0fr] opacity-0"}`, children: /* @__PURE__ */ s.jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ s.jsx("div", { className: `p-4 text-sm text-color-gray-700 ${u}`, children: n }) }) })
|
|
7474
7463
|
] });
|
|
7475
|
-
},
|
|
7464
|
+
}, di = {
|
|
7476
7465
|
info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
|
|
7477
7466
|
success: "bg-color-green-50 border-color-green-300 text-color-green-800",
|
|
7478
7467
|
danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
|
|
7479
7468
|
warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
|
|
7480
7469
|
dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
|
|
7481
|
-
},
|
|
7470
|
+
}, pi = {
|
|
7482
7471
|
info: /* @__PURE__ */ s.jsx("svg", { className: "text-color-blue-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" }) }),
|
|
7483
7472
|
success: /* @__PURE__ */ s.jsx("svg", { className: "text-color-green-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z" }) }),
|
|
7484
7473
|
danger: /* @__PURE__ */ s.jsx("svg", { className: "text-color-red-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z" }) }),
|
|
7485
7474
|
warning: /* @__PURE__ */ s.jsx("svg", { className: "text-color-yellow-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z" }) }),
|
|
7486
7475
|
dark: /* @__PURE__ */ s.jsx("svg", { className: "text-color-gray-800 shrink-0 size-7", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z" }) })
|
|
7487
|
-
},
|
|
7476
|
+
}, fi = {
|
|
7488
7477
|
info: "bg-color-blue-500",
|
|
7489
7478
|
success: "bg-color-green-500",
|
|
7490
7479
|
danger: "bg-color-red-500",
|
|
@@ -7509,10 +7498,10 @@ const di = ({
|
|
|
7509
7498
|
}, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
|
|
7510
7499
|
"div",
|
|
7511
7500
|
{
|
|
7512
|
-
className: `relative border-t-4 p-4 flex items-start justify-between ${
|
|
7501
|
+
className: `relative border-t-4 p-4 flex items-start justify-between ${di[n]} ${o}`,
|
|
7513
7502
|
children: [
|
|
7514
7503
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7515
|
-
|
|
7504
|
+
pi[n],
|
|
7516
7505
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
|
|
7517
7506
|
] }),
|
|
7518
7507
|
/* @__PURE__ */ s.jsx(
|
|
@@ -7530,7 +7519,7 @@ const di = ({
|
|
|
7530
7519
|
"div",
|
|
7531
7520
|
{
|
|
7532
7521
|
ref: c,
|
|
7533
|
-
className: `${
|
|
7522
|
+
className: `${fi[n]} h-1`,
|
|
7534
7523
|
style: { width: "100%" }
|
|
7535
7524
|
}
|
|
7536
7525
|
) })
|
|
@@ -7623,18 +7612,18 @@ function cn(e) {
|
|
|
7623
7612
|
return n;
|
|
7624
7613
|
}
|
|
7625
7614
|
function $r(e, n, t = "/") {
|
|
7626
|
-
return
|
|
7615
|
+
return mi(e, n, t, !1);
|
|
7627
7616
|
}
|
|
7628
|
-
function
|
|
7629
|
-
let o = typeof n == "string" ? cn(n) : n, a =
|
|
7617
|
+
function mi(e, n, t, r) {
|
|
7618
|
+
let o = typeof n == "string" ? cn(n) : n, a = Fe(o.pathname || "/", t);
|
|
7630
7619
|
if (a == null)
|
|
7631
7620
|
return null;
|
|
7632
7621
|
let i = _r(e);
|
|
7633
|
-
|
|
7622
|
+
gi(i);
|
|
7634
7623
|
let l = null;
|
|
7635
7624
|
for (let c = 0; l == null && c < i.length; ++c) {
|
|
7636
|
-
let u =
|
|
7637
|
-
l =
|
|
7625
|
+
let u = ki(a);
|
|
7626
|
+
l = ji(
|
|
7638
7627
|
i[c],
|
|
7639
7628
|
u,
|
|
7640
7629
|
r
|
|
@@ -7662,7 +7651,7 @@ function _r(e, n = [], t = [], r = "") {
|
|
|
7662
7651
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
7663
7652
|
), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
|
|
7664
7653
|
path: u,
|
|
7665
|
-
score:
|
|
7654
|
+
score: Ci(u, a.index),
|
|
7666
7655
|
routesMeta: d
|
|
7667
7656
|
});
|
|
7668
7657
|
};
|
|
@@ -7690,23 +7679,23 @@ function Er(e) {
|
|
|
7690
7679
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
7691
7680
|
);
|
|
7692
7681
|
}
|
|
7693
|
-
function
|
|
7682
|
+
function gi(e) {
|
|
7694
7683
|
e.sort(
|
|
7695
|
-
(n, t) => n.score !== t.score ? t.score - n.score :
|
|
7684
|
+
(n, t) => n.score !== t.score ? t.score - n.score : Si(
|
|
7696
7685
|
n.routesMeta.map((r) => r.childrenIndex),
|
|
7697
7686
|
t.routesMeta.map((r) => r.childrenIndex)
|
|
7698
7687
|
)
|
|
7699
7688
|
);
|
|
7700
7689
|
}
|
|
7701
|
-
var
|
|
7702
|
-
function
|
|
7690
|
+
var vi = /^:[\w-]+$/, xi = 3, hi = 2, bi = 1, wi = 10, yi = -2, Xn = (e) => e === "*";
|
|
7691
|
+
function Ci(e, n) {
|
|
7703
7692
|
let t = e.split("/"), r = t.length;
|
|
7704
|
-
return t.some(Xn) && (r +=
|
|
7705
|
-
(o, a) => o + (
|
|
7693
|
+
return t.some(Xn) && (r += yi), n && (r += hi), t.filter((o) => !Xn(o)).reduce(
|
|
7694
|
+
(o, a) => o + (vi.test(a) ? xi : a === "" ? bi : wi),
|
|
7706
7695
|
r
|
|
7707
7696
|
);
|
|
7708
7697
|
}
|
|
7709
|
-
function
|
|
7698
|
+
function Si(e, n) {
|
|
7710
7699
|
return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
|
|
7711
7700
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
7712
7701
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -7719,7 +7708,7 @@ function ji(e, n) {
|
|
|
7719
7708
|
0
|
|
7720
7709
|
);
|
|
7721
7710
|
}
|
|
7722
|
-
function
|
|
7711
|
+
function ji(e, n, t = !1) {
|
|
7723
7712
|
let { routesMeta: r } = e, o = {}, a = "/", i = [];
|
|
7724
7713
|
for (let l = 0; l < r.length; ++l) {
|
|
7725
7714
|
let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
|
|
@@ -7739,7 +7728,7 @@ function Ri(e, n, t = !1) {
|
|
|
7739
7728
|
// TODO: Can this as be avoided?
|
|
7740
7729
|
params: o,
|
|
7741
7730
|
pathname: $e([a, g.pathname]),
|
|
7742
|
-
pathnameBase:
|
|
7731
|
+
pathnameBase: Pi(
|
|
7743
7732
|
$e([a, g.pathnameBase])
|
|
7744
7733
|
),
|
|
7745
7734
|
route: p
|
|
@@ -7749,7 +7738,7 @@ function Ri(e, n, t = !1) {
|
|
|
7749
7738
|
}
|
|
7750
7739
|
function gt(e, n) {
|
|
7751
7740
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
7752
|
-
let [t, r] =
|
|
7741
|
+
let [t, r] = Ri(
|
|
7753
7742
|
e.path,
|
|
7754
7743
|
e.caseSensitive,
|
|
7755
7744
|
e.end
|
|
@@ -7773,7 +7762,7 @@ function gt(e, n) {
|
|
|
7773
7762
|
pattern: e
|
|
7774
7763
|
};
|
|
7775
7764
|
}
|
|
7776
|
-
function
|
|
7765
|
+
function Ri(e, n = !1, t = !0) {
|
|
7777
7766
|
_e(
|
|
7778
7767
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
7779
7768
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -7784,7 +7773,7 @@ function ki(e, n = !1, t = !0) {
|
|
|
7784
7773
|
);
|
|
7785
7774
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
|
|
7786
7775
|
}
|
|
7787
|
-
function
|
|
7776
|
+
function ki(e) {
|
|
7788
7777
|
try {
|
|
7789
7778
|
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
7790
7779
|
} catch (n) {
|
|
@@ -7794,26 +7783,26 @@ function $i(e) {
|
|
|
7794
7783
|
), e;
|
|
7795
7784
|
}
|
|
7796
7785
|
}
|
|
7797
|
-
function
|
|
7786
|
+
function Fe(e, n) {
|
|
7798
7787
|
if (n === "/") return e;
|
|
7799
7788
|
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
7800
7789
|
return null;
|
|
7801
7790
|
let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
|
|
7802
7791
|
return r && r !== "/" ? null : e.slice(t) || "/";
|
|
7803
7792
|
}
|
|
7804
|
-
function
|
|
7793
|
+
function $i(e, n = "/") {
|
|
7805
7794
|
let {
|
|
7806
7795
|
pathname: t,
|
|
7807
7796
|
search: r = "",
|
|
7808
7797
|
hash: o = ""
|
|
7809
7798
|
} = typeof e == "string" ? cn(e) : e;
|
|
7810
7799
|
return {
|
|
7811
|
-
pathname: t ? t.startsWith("/") ? t :
|
|
7812
|
-
search:
|
|
7813
|
-
hash:
|
|
7800
|
+
pathname: t ? t.startsWith("/") ? t : _i(t, n) : n,
|
|
7801
|
+
search: Mi(r),
|
|
7802
|
+
hash: Li(o)
|
|
7814
7803
|
};
|
|
7815
7804
|
}
|
|
7816
|
-
function
|
|
7805
|
+
function _i(e, n) {
|
|
7817
7806
|
let t = n.replace(/\/+$/, "").split("/");
|
|
7818
7807
|
return e.split("/").forEach((o) => {
|
|
7819
7808
|
o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
|
|
@@ -7824,13 +7813,13 @@ function Ht(e, n, t, r) {
|
|
|
7824
7813
|
r
|
|
7825
7814
|
)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
7826
7815
|
}
|
|
7827
|
-
function
|
|
7816
|
+
function Ei(e) {
|
|
7828
7817
|
return e.filter(
|
|
7829
7818
|
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
7830
7819
|
);
|
|
7831
7820
|
}
|
|
7832
7821
|
function Pr(e) {
|
|
7833
|
-
let n =
|
|
7822
|
+
let n = Ei(e);
|
|
7834
7823
|
return n.map(
|
|
7835
7824
|
(t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
|
|
7836
7825
|
);
|
|
@@ -7860,11 +7849,11 @@ function Mr(e, n, t, r = !1) {
|
|
|
7860
7849
|
}
|
|
7861
7850
|
l = g >= 0 ? n[g] : "/";
|
|
7862
7851
|
}
|
|
7863
|
-
let c =
|
|
7852
|
+
let c = $i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
|
|
7864
7853
|
return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
|
|
7865
7854
|
}
|
|
7866
|
-
var $e = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
7867
|
-
function
|
|
7855
|
+
var $e = (e) => e.join("/").replace(/\/\/+/g, "/"), Pi = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Mi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Li = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
7856
|
+
function Fi(e) {
|
|
7868
7857
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
7869
7858
|
}
|
|
7870
7859
|
var Lr = [
|
|
@@ -7876,11 +7865,11 @@ var Lr = [
|
|
|
7876
7865
|
new Set(
|
|
7877
7866
|
Lr
|
|
7878
7867
|
);
|
|
7879
|
-
var
|
|
7868
|
+
var Ai = [
|
|
7880
7869
|
"GET",
|
|
7881
7870
|
...Lr
|
|
7882
7871
|
];
|
|
7883
|
-
new Set(
|
|
7872
|
+
new Set(Ai);
|
|
7884
7873
|
var Ie = R.createContext(null);
|
|
7885
7874
|
Ie.displayName = "DataRouter";
|
|
7886
7875
|
var xt = R.createContext(null);
|
|
@@ -7890,12 +7879,12 @@ var Fr = R.createContext({
|
|
|
7890
7879
|
isTransitioning: !1
|
|
7891
7880
|
});
|
|
7892
7881
|
Fr.displayName = "ViewTransition";
|
|
7893
|
-
var
|
|
7882
|
+
var Ni = R.createContext(
|
|
7894
7883
|
/* @__PURE__ */ new Map()
|
|
7895
7884
|
);
|
|
7896
|
-
|
|
7897
|
-
var
|
|
7898
|
-
|
|
7885
|
+
Ni.displayName = "Fetchers";
|
|
7886
|
+
var Di = R.createContext(null);
|
|
7887
|
+
Di.displayName = "Await";
|
|
7899
7888
|
var Ee = R.createContext(
|
|
7900
7889
|
null
|
|
7901
7890
|
);
|
|
@@ -7912,7 +7901,7 @@ var Pe = R.createContext({
|
|
|
7912
7901
|
Pe.displayName = "Route";
|
|
7913
7902
|
var dn = R.createContext(null);
|
|
7914
7903
|
dn.displayName = "RouteError";
|
|
7915
|
-
function
|
|
7904
|
+
function zi(e, { relative: n } = {}) {
|
|
7916
7905
|
xe(
|
|
7917
7906
|
ht(),
|
|
7918
7907
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7925,7 +7914,7 @@ function Ti(e, { relative: n } = {}) {
|
|
|
7925
7914
|
function ht() {
|
|
7926
7915
|
return R.useContext(un) != null;
|
|
7927
7916
|
}
|
|
7928
|
-
function
|
|
7917
|
+
function De() {
|
|
7929
7918
|
return xe(
|
|
7930
7919
|
ht(),
|
|
7931
7920
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7937,18 +7926,18 @@ var Ar = "You should call navigate() in a React.useEffect(), not when your compo
|
|
|
7937
7926
|
function Nr(e) {
|
|
7938
7927
|
R.useContext(Ee).static || R.useLayoutEffect(e);
|
|
7939
7928
|
}
|
|
7940
|
-
function
|
|
7929
|
+
function Ti() {
|
|
7941
7930
|
let { isDataRoute: e } = R.useContext(Pe);
|
|
7942
|
-
return e ?
|
|
7931
|
+
return e ? Xi() : Oi();
|
|
7943
7932
|
}
|
|
7944
|
-
function
|
|
7933
|
+
function Oi() {
|
|
7945
7934
|
xe(
|
|
7946
7935
|
ht(),
|
|
7947
7936
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7948
7937
|
// router loaded. We can help them understand how to avoid that.
|
|
7949
7938
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
7950
7939
|
);
|
|
7951
|
-
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(Ee), { matches: r } = R.useContext(Pe), { pathname: o } =
|
|
7940
|
+
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(Ee), { matches: r } = R.useContext(Pe), { pathname: o } = De(), a = JSON.stringify(Pr(r)), i = R.useRef(!1);
|
|
7952
7941
|
return Nr(() => {
|
|
7953
7942
|
i.current = !0;
|
|
7954
7943
|
}), R.useCallback(
|
|
@@ -7981,7 +7970,7 @@ function Ii() {
|
|
|
7981
7970
|
}
|
|
7982
7971
|
R.createContext(null);
|
|
7983
7972
|
function Ke(e, { relative: n } = {}) {
|
|
7984
|
-
let { matches: t } = R.useContext(Pe), { pathname: r } =
|
|
7973
|
+
let { matches: t } = R.useContext(Pe), { pathname: r } = De(), o = JSON.stringify(Pr(t));
|
|
7985
7974
|
return R.useMemo(
|
|
7986
7975
|
() => Mr(
|
|
7987
7976
|
e,
|
|
@@ -7992,7 +7981,7 @@ function Ke(e, { relative: n } = {}) {
|
|
|
7992
7981
|
[e, o, r, n]
|
|
7993
7982
|
);
|
|
7994
7983
|
}
|
|
7995
|
-
function
|
|
7984
|
+
function Ii(e, n, t, r) {
|
|
7996
7985
|
xe(
|
|
7997
7986
|
ht(),
|
|
7998
7987
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -8010,7 +7999,7 @@ function Vi(e, n, t, r) {
|
|
|
8010
7999
|
Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
|
|
8011
8000
|
);
|
|
8012
8001
|
}
|
|
8013
|
-
let g =
|
|
8002
|
+
let g = De(), p;
|
|
8014
8003
|
p = g;
|
|
8015
8004
|
let f = p.pathname || "/", v = f;
|
|
8016
8005
|
if (u !== "/") {
|
|
@@ -8024,7 +8013,7 @@ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" :
|
|
|
8024
8013
|
), _e(
|
|
8025
8014
|
m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0,
|
|
8026
8015
|
`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
8027
|
-
),
|
|
8016
|
+
), Gi(
|
|
8028
8017
|
m && m.map(
|
|
8029
8018
|
(h) => Object.assign({}, h, {
|
|
8030
8019
|
params: Object.assign({}, l, h.params),
|
|
@@ -8045,14 +8034,14 @@ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" :
|
|
|
8045
8034
|
r
|
|
8046
8035
|
);
|
|
8047
8036
|
}
|
|
8048
|
-
function
|
|
8049
|
-
let e =
|
|
8037
|
+
function Vi() {
|
|
8038
|
+
let e = Ki(), n = Fi(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: r }, a = { padding: "2px 4px", backgroundColor: r }, i = null;
|
|
8050
8039
|
return console.error(
|
|
8051
8040
|
"Error handled by React Router default ErrorBoundary:",
|
|
8052
8041
|
e
|
|
8053
8042
|
), i = /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ R.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ R.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ R.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ R.createElement(R.Fragment, null, /* @__PURE__ */ R.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ R.createElement("h3", { style: { fontStyle: "italic" } }, n), t ? /* @__PURE__ */ R.createElement("pre", { style: o }, t) : null, i);
|
|
8054
8043
|
}
|
|
8055
|
-
var
|
|
8044
|
+
var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Component {
|
|
8056
8045
|
constructor(e) {
|
|
8057
8046
|
super(e), this.state = {
|
|
8058
8047
|
location: e.location,
|
|
@@ -8091,11 +8080,11 @@ var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Compone
|
|
|
8091
8080
|
)) : this.props.children;
|
|
8092
8081
|
}
|
|
8093
8082
|
};
|
|
8094
|
-
function
|
|
8083
|
+
function qi({ routeContext: e, match: n, children: t }) {
|
|
8095
8084
|
let r = R.useContext(Ie);
|
|
8096
8085
|
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ R.createElement(Pe.Provider, { value: e }, t);
|
|
8097
8086
|
}
|
|
8098
|
-
function
|
|
8087
|
+
function Gi(e, n = [], t = null, r = null) {
|
|
8099
8088
|
if (e == null) {
|
|
8100
8089
|
if (!t)
|
|
8101
8090
|
return null;
|
|
@@ -8136,7 +8125,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8136
8125
|
return o.reduceRight(
|
|
8137
8126
|
(c, u, d) => {
|
|
8138
8127
|
let g, p = !1, f = null, v = null;
|
|
8139
|
-
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement ||
|
|
8128
|
+
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Hi, i && (l < 0 && d === 0 ? (Dr(
|
|
8140
8129
|
"route-fallback",
|
|
8141
8130
|
!1,
|
|
8142
8131
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -8144,7 +8133,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8144
8133
|
let m = n.concat(o.slice(0, d + 1)), b = () => {
|
|
8145
8134
|
let h;
|
|
8146
8135
|
return g ? h = f : p ? h = v : u.route.Component ? h = /* @__PURE__ */ R.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = c, /* @__PURE__ */ R.createElement(
|
|
8147
|
-
|
|
8136
|
+
qi,
|
|
8148
8137
|
{
|
|
8149
8138
|
match: u,
|
|
8150
8139
|
routeContext: {
|
|
@@ -8157,7 +8146,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8157
8146
|
);
|
|
8158
8147
|
};
|
|
8159
8148
|
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
|
|
8160
|
-
|
|
8149
|
+
Bi,
|
|
8161
8150
|
{
|
|
8162
8151
|
location: t.location,
|
|
8163
8152
|
revalidation: t.revalidation,
|
|
@@ -8174,34 +8163,34 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8174
8163
|
function pn(e) {
|
|
8175
8164
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8176
8165
|
}
|
|
8177
|
-
function
|
|
8166
|
+
function Wi(e) {
|
|
8178
8167
|
let n = R.useContext(Ie);
|
|
8179
8168
|
return xe(n, pn(e)), n;
|
|
8180
8169
|
}
|
|
8181
|
-
function
|
|
8170
|
+
function Ui(e) {
|
|
8182
8171
|
let n = R.useContext(xt);
|
|
8183
8172
|
return xe(n, pn(e)), n;
|
|
8184
8173
|
}
|
|
8185
|
-
function
|
|
8174
|
+
function Yi(e) {
|
|
8186
8175
|
let n = R.useContext(Pe);
|
|
8187
8176
|
return xe(n, pn(e)), n;
|
|
8188
8177
|
}
|
|
8189
8178
|
function fn(e) {
|
|
8190
|
-
let n =
|
|
8179
|
+
let n = Yi(e), t = n.matches[n.matches.length - 1];
|
|
8191
8180
|
return xe(
|
|
8192
8181
|
t.route.id,
|
|
8193
8182
|
`${e} can only be used on routes that contain a unique "id"`
|
|
8194
8183
|
), t.route.id;
|
|
8195
8184
|
}
|
|
8196
|
-
function
|
|
8185
|
+
function Zi() {
|
|
8197
8186
|
return fn(
|
|
8198
8187
|
"useRouteId"
|
|
8199
8188
|
/* UseRouteId */
|
|
8200
8189
|
);
|
|
8201
8190
|
}
|
|
8202
|
-
function
|
|
8191
|
+
function Ki() {
|
|
8203
8192
|
var r;
|
|
8204
|
-
let e = R.useContext(dn), n =
|
|
8193
|
+
let e = R.useContext(dn), n = Ui(
|
|
8205
8194
|
"useRouteError"
|
|
8206
8195
|
/* UseRouteError */
|
|
8207
8196
|
), t = fn(
|
|
@@ -8210,8 +8199,8 @@ function Xi() {
|
|
|
8210
8199
|
);
|
|
8211
8200
|
return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
|
|
8212
8201
|
}
|
|
8213
|
-
function
|
|
8214
|
-
let { router: e } =
|
|
8202
|
+
function Xi() {
|
|
8203
|
+
let { router: e } = Wi(
|
|
8215
8204
|
"useNavigate"
|
|
8216
8205
|
/* UseNavigateStable */
|
|
8217
8206
|
), n = fn(
|
|
@@ -8231,37 +8220,37 @@ var Jn = {};
|
|
|
8231
8220
|
function Dr(e, n, t) {
|
|
8232
8221
|
!n && !Jn[e] && (Jn[e] = !0, _e(!1, t));
|
|
8233
8222
|
}
|
|
8234
|
-
R.memo(
|
|
8235
|
-
function
|
|
8223
|
+
R.memo(Ji);
|
|
8224
|
+
function Ji({
|
|
8236
8225
|
routes: e,
|
|
8237
8226
|
future: n,
|
|
8238
8227
|
state: t
|
|
8239
8228
|
}) {
|
|
8240
|
-
return
|
|
8229
|
+
return Ii(e, void 0, t, n);
|
|
8241
8230
|
}
|
|
8242
8231
|
var ut = "get", dt = "application/x-www-form-urlencoded";
|
|
8243
8232
|
function bt(e) {
|
|
8244
8233
|
return e != null && typeof e.tagName == "string";
|
|
8245
8234
|
}
|
|
8246
|
-
function
|
|
8235
|
+
function Qi(e) {
|
|
8247
8236
|
return bt(e) && e.tagName.toLowerCase() === "button";
|
|
8248
8237
|
}
|
|
8249
|
-
function
|
|
8238
|
+
function el(e) {
|
|
8250
8239
|
return bt(e) && e.tagName.toLowerCase() === "form";
|
|
8251
8240
|
}
|
|
8252
|
-
function
|
|
8241
|
+
function tl(e) {
|
|
8253
8242
|
return bt(e) && e.tagName.toLowerCase() === "input";
|
|
8254
8243
|
}
|
|
8255
|
-
function
|
|
8244
|
+
function nl(e) {
|
|
8256
8245
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
8257
8246
|
}
|
|
8258
|
-
function
|
|
8247
|
+
function rl(e, n) {
|
|
8259
8248
|
return e.button === 0 && // Ignore everything but left clicks
|
|
8260
8249
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
8261
|
-
!
|
|
8250
|
+
!nl(e);
|
|
8262
8251
|
}
|
|
8263
8252
|
var ct = null;
|
|
8264
|
-
function
|
|
8253
|
+
function ol() {
|
|
8265
8254
|
if (ct === null)
|
|
8266
8255
|
try {
|
|
8267
8256
|
new FormData(
|
|
@@ -8274,30 +8263,30 @@ function al() {
|
|
|
8274
8263
|
}
|
|
8275
8264
|
return ct;
|
|
8276
8265
|
}
|
|
8277
|
-
var
|
|
8266
|
+
var al = /* @__PURE__ */ new Set([
|
|
8278
8267
|
"application/x-www-form-urlencoded",
|
|
8279
8268
|
"multipart/form-data",
|
|
8280
8269
|
"text/plain"
|
|
8281
8270
|
]);
|
|
8282
8271
|
function Bt(e) {
|
|
8283
|
-
return e != null && !
|
|
8272
|
+
return e != null && !al.has(e) ? (_e(
|
|
8284
8273
|
!1,
|
|
8285
8274
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
|
|
8286
8275
|
), null) : e;
|
|
8287
8276
|
}
|
|
8288
|
-
function
|
|
8277
|
+
function il(e, n) {
|
|
8289
8278
|
let t, r, o, a, i;
|
|
8290
|
-
if (
|
|
8279
|
+
if (el(e)) {
|
|
8291
8280
|
let l = e.getAttribute("action");
|
|
8292
|
-
r = l ?
|
|
8293
|
-
} else if (
|
|
8281
|
+
r = l ? Fe(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
|
|
8282
|
+
} else if (Qi(e) || tl(e) && (e.type === "submit" || e.type === "image")) {
|
|
8294
8283
|
let l = e.form;
|
|
8295
8284
|
if (l == null)
|
|
8296
8285
|
throw new Error(
|
|
8297
8286
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
8298
8287
|
);
|
|
8299
8288
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
8300
|
-
if (r = c ?
|
|
8289
|
+
if (r = c ? Fe(c, n) : null, t = e.getAttribute("formmethod") || l.getAttribute("method") || ut, o = Bt(e.getAttribute("formenctype")) || Bt(l.getAttribute("enctype")) || dt, a = new FormData(l, e), !ol()) {
|
|
8301
8290
|
let { name: u, type: d, value: g } = e;
|
|
8302
8291
|
if (d === "image") {
|
|
8303
8292
|
let p = u ? `${u}.` : "";
|
|
@@ -8318,16 +8307,16 @@ function mn(e, n) {
|
|
|
8318
8307
|
if (e === !1 || e === null || typeof e > "u")
|
|
8319
8308
|
throw new Error(n);
|
|
8320
8309
|
}
|
|
8321
|
-
function
|
|
8310
|
+
function ll(e, n, t) {
|
|
8322
8311
|
let r = typeof e == "string" ? new URL(
|
|
8323
8312
|
e,
|
|
8324
8313
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
8325
8314
|
// don't assume window is available
|
|
8326
8315
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
8327
8316
|
) : e;
|
|
8328
|
-
return r.pathname === "/" ? r.pathname = `_root.${t}` : n &&
|
|
8317
|
+
return r.pathname === "/" ? r.pathname = `_root.${t}` : n && Fe(r.pathname, n) === "/" ? r.pathname = `${n.replace(/\/$/, "")}/_root.${t}` : r.pathname = `${r.pathname.replace(/\/$/, "")}.${t}`, r;
|
|
8329
8318
|
}
|
|
8330
|
-
async function
|
|
8319
|
+
async function sl(e, n) {
|
|
8331
8320
|
if (e.id in n)
|
|
8332
8321
|
return n[e.id];
|
|
8333
8322
|
try {
|
|
@@ -8344,22 +8333,22 @@ async function cl(e, n) {
|
|
|
8344
8333
|
});
|
|
8345
8334
|
}
|
|
8346
8335
|
}
|
|
8347
|
-
function
|
|
8336
|
+
function cl(e) {
|
|
8348
8337
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
8349
8338
|
}
|
|
8350
|
-
async function
|
|
8339
|
+
async function ul(e, n, t) {
|
|
8351
8340
|
let r = await Promise.all(
|
|
8352
8341
|
e.map(async (o) => {
|
|
8353
8342
|
let a = n.routes[o.route.id];
|
|
8354
8343
|
if (a) {
|
|
8355
|
-
let i = await
|
|
8344
|
+
let i = await sl(a, t);
|
|
8356
8345
|
return i.links ? i.links() : [];
|
|
8357
8346
|
}
|
|
8358
8347
|
return [];
|
|
8359
8348
|
})
|
|
8360
8349
|
);
|
|
8361
|
-
return
|
|
8362
|
-
r.flat(1).filter(
|
|
8350
|
+
return ml(
|
|
8351
|
+
r.flat(1).filter(cl).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
8363
8352
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
8364
8353
|
)
|
|
8365
8354
|
);
|
|
@@ -8400,8 +8389,8 @@ function Qn(e, n, t, r, o, a) {
|
|
|
8400
8389
|
return !0;
|
|
8401
8390
|
}) : [];
|
|
8402
8391
|
}
|
|
8403
|
-
function
|
|
8404
|
-
return
|
|
8392
|
+
function dl(e, n, { includeHydrateFallback: t } = {}) {
|
|
8393
|
+
return pl(
|
|
8405
8394
|
e.map((r) => {
|
|
8406
8395
|
let o = n.routes[r.route.id];
|
|
8407
8396
|
if (!o) return [];
|
|
@@ -8410,19 +8399,19 @@ function pl(e, n, { includeHydrateFallback: t } = {}) {
|
|
|
8410
8399
|
}).flat(1)
|
|
8411
8400
|
);
|
|
8412
8401
|
}
|
|
8413
|
-
function
|
|
8402
|
+
function pl(e) {
|
|
8414
8403
|
return [...new Set(e)];
|
|
8415
8404
|
}
|
|
8416
|
-
function
|
|
8405
|
+
function fl(e) {
|
|
8417
8406
|
let n = {}, t = Object.keys(e).sort();
|
|
8418
8407
|
for (let r of t)
|
|
8419
8408
|
n[r] = e[r];
|
|
8420
8409
|
return n;
|
|
8421
8410
|
}
|
|
8422
|
-
function
|
|
8411
|
+
function ml(e, n) {
|
|
8423
8412
|
let t = /* @__PURE__ */ new Set();
|
|
8424
8413
|
return new Set(n), e.reduce((r, o) => {
|
|
8425
|
-
let a = JSON.stringify(
|
|
8414
|
+
let a = JSON.stringify(fl(o));
|
|
8426
8415
|
return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
|
|
8427
8416
|
}, []);
|
|
8428
8417
|
}
|
|
@@ -8433,7 +8422,7 @@ function zr() {
|
|
|
8433
8422
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
8434
8423
|
), e;
|
|
8435
8424
|
}
|
|
8436
|
-
function
|
|
8425
|
+
function gl() {
|
|
8437
8426
|
let e = R.useContext(xt);
|
|
8438
8427
|
return mn(
|
|
8439
8428
|
e,
|
|
@@ -8449,7 +8438,7 @@ function Tr() {
|
|
|
8449
8438
|
"You must render this element inside a <HydratedRouter> element"
|
|
8450
8439
|
), e;
|
|
8451
8440
|
}
|
|
8452
|
-
function
|
|
8441
|
+
function vl(e, n) {
|
|
8453
8442
|
let t = R.useContext(gn), [r, o] = R.useState(!1), [a, i] = R.useState(!1), { onFocus: l, onBlur: c, onMouseEnter: u, onMouseLeave: d, onTouchStart: g } = n, p = R.useRef(null);
|
|
8454
8443
|
R.useEffect(() => {
|
|
8455
8444
|
if (e === "render" && i(!0), e === "viewport") {
|
|
@@ -8494,18 +8483,18 @@ function Ge(e, n) {
|
|
|
8494
8483
|
e && e(t), t.defaultPrevented || n(t);
|
|
8495
8484
|
};
|
|
8496
8485
|
}
|
|
8497
|
-
function
|
|
8486
|
+
function xl({ page: e, ...n }) {
|
|
8498
8487
|
let { router: t } = zr(), r = R.useMemo(
|
|
8499
8488
|
() => $r(t.routes, e, t.basename),
|
|
8500
8489
|
[t.routes, e, t.basename]
|
|
8501
8490
|
);
|
|
8502
|
-
return r ? /* @__PURE__ */ R.createElement(
|
|
8491
|
+
return r ? /* @__PURE__ */ R.createElement(bl, { page: e, matches: r, ...n }) : null;
|
|
8503
8492
|
}
|
|
8504
|
-
function
|
|
8493
|
+
function hl(e) {
|
|
8505
8494
|
let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
|
|
8506
8495
|
return R.useEffect(() => {
|
|
8507
8496
|
let a = !1;
|
|
8508
|
-
return
|
|
8497
|
+
return ul(e, n, t).then(
|
|
8509
8498
|
(i) => {
|
|
8510
8499
|
a || o(i);
|
|
8511
8500
|
}
|
|
@@ -8514,12 +8503,12 @@ function bl(e) {
|
|
|
8514
8503
|
};
|
|
8515
8504
|
}, [e, n, t]), r;
|
|
8516
8505
|
}
|
|
8517
|
-
function
|
|
8506
|
+
function bl({
|
|
8518
8507
|
page: e,
|
|
8519
8508
|
matches: n,
|
|
8520
8509
|
...t
|
|
8521
8510
|
}) {
|
|
8522
|
-
let r =
|
|
8511
|
+
let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = gl(), u = R.useMemo(
|
|
8523
8512
|
() => Qn(
|
|
8524
8513
|
e,
|
|
8525
8514
|
n,
|
|
@@ -8549,7 +8538,7 @@ function wl({
|
|
|
8549
8538
|
!k || !k.hasLoader || (!u.some(($) => $.route.id === h.route.id) && h.route.id in l && ((w = a[h.route.id]) != null && w.shouldRevalidate) || k.hasClientLoader ? m = !0 : v.add(h.route.id));
|
|
8550
8539
|
}), v.size === 0)
|
|
8551
8540
|
return [];
|
|
8552
|
-
let b =
|
|
8541
|
+
let b = ll(e, i, "data");
|
|
8553
8542
|
return m && v.size > 0 && b.searchParams.set(
|
|
8554
8543
|
"_routes",
|
|
8555
8544
|
n.filter((h) => v.has(h.route.id)).map((h) => h.route.id).join(",")
|
|
@@ -8564,16 +8553,16 @@ function wl({
|
|
|
8564
8553
|
e,
|
|
8565
8554
|
a
|
|
8566
8555
|
]), p = R.useMemo(
|
|
8567
|
-
() =>
|
|
8556
|
+
() => dl(d, o),
|
|
8568
8557
|
[d, o]
|
|
8569
|
-
), f =
|
|
8558
|
+
), f = hl(d);
|
|
8570
8559
|
return /* @__PURE__ */ R.createElement(R.Fragment, null, g.map((v) => /* @__PURE__ */ R.createElement("link", { key: v, rel: "prefetch", as: "fetch", href: v, ...t })), p.map((v) => /* @__PURE__ */ R.createElement("link", { key: v, rel: "modulepreload", href: v, ...t })), f.map(({ key: v, link: m }) => (
|
|
8571
8560
|
// these don't spread `linkProps` because they are full link descriptors
|
|
8572
8561
|
// already with their own props
|
|
8573
8562
|
/* @__PURE__ */ R.createElement("link", { key: v, ...m })
|
|
8574
8563
|
)));
|
|
8575
8564
|
}
|
|
8576
|
-
function
|
|
8565
|
+
function wl(...e) {
|
|
8577
8566
|
return (n) => {
|
|
8578
8567
|
e.forEach((t) => {
|
|
8579
8568
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
@@ -8604,7 +8593,7 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8604
8593
|
let { basename: v } = R.useContext(Ee), m = typeof u == "string" && Ir.test(u), b, h = !1;
|
|
8605
8594
|
if (typeof u == "string" && m && (b = u, Or))
|
|
8606
8595
|
try {
|
|
8607
|
-
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae =
|
|
8596
|
+
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae = Fe(Z.pathname, v);
|
|
8608
8597
|
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash : h = !0;
|
|
8609
8598
|
} catch {
|
|
8610
8599
|
_e(
|
|
@@ -8612,10 +8601,10 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8612
8601
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
8613
8602
|
);
|
|
8614
8603
|
}
|
|
8615
|
-
let k =
|
|
8604
|
+
let k = zi(u, { relative: o }), [w, $, y] = vl(
|
|
8616
8605
|
r,
|
|
8617
8606
|
p
|
|
8618
|
-
), O =
|
|
8607
|
+
), O = Sl(u, {
|
|
8619
8608
|
replace: i,
|
|
8620
8609
|
state: l,
|
|
8621
8610
|
target: c,
|
|
@@ -8635,13 +8624,13 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8635
8624
|
...y,
|
|
8636
8625
|
href: b || k,
|
|
8637
8626
|
onClick: h || a ? n : D,
|
|
8638
|
-
ref:
|
|
8627
|
+
ref: wl(f, $),
|
|
8639
8628
|
target: c,
|
|
8640
8629
|
"data-discover": !m && t === "render" ? "true" : void 0
|
|
8641
8630
|
}
|
|
8642
8631
|
)
|
|
8643
8632
|
);
|
|
8644
|
-
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(
|
|
8633
|
+
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(xl, { page: k })) : V;
|
|
8645
8634
|
}
|
|
8646
8635
|
);
|
|
8647
8636
|
vn.displayName = "Link";
|
|
@@ -8657,10 +8646,10 @@ var Vr = R.forwardRef(
|
|
|
8657
8646
|
children: c,
|
|
8658
8647
|
...u
|
|
8659
8648
|
}, d) {
|
|
8660
|
-
let g = Ke(i, { relative: u.relative }), p =
|
|
8649
|
+
let g = Ke(i, { relative: u.relative }), p = De(), f = R.useContext(xt), { navigator: v, basename: m } = R.useContext(Ee), b = f != null && // Conditional usage is OK here because the usage of a data router is static
|
|
8661
8650
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8662
|
-
|
|
8663
|
-
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, h = h.toLowerCase()), w && m && (w =
|
|
8651
|
+
_l(g) && l === !0, h = v.encodeLocation ? v.encodeLocation(g).pathname : g.pathname, k = p.pathname, w = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
|
|
8652
|
+
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, h = h.toLowerCase()), w && m && (w = Fe(w, m) || w);
|
|
8664
8653
|
const $ = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
8665
8654
|
let y = k === h || !o && k.startsWith(h) && k.charAt($) === "/", O = w != null && (w === h || !o && w.startsWith(h) && w.charAt(h.length) === "/"), D = {
|
|
8666
8655
|
isActive: y,
|
|
@@ -8690,7 +8679,7 @@ var Vr = R.forwardRef(
|
|
|
8690
8679
|
}
|
|
8691
8680
|
);
|
|
8692
8681
|
Vr.displayName = "NavLink";
|
|
8693
|
-
var
|
|
8682
|
+
var yl = R.forwardRef(
|
|
8694
8683
|
({
|
|
8695
8684
|
discover: e = "render",
|
|
8696
8685
|
fetcherKey: n,
|
|
@@ -8706,7 +8695,7 @@ var Cl = R.forwardRef(
|
|
|
8706
8695
|
viewTransition: g,
|
|
8707
8696
|
...p
|
|
8708
8697
|
}, f) => {
|
|
8709
|
-
let v =
|
|
8698
|
+
let v = kl(), m = $l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", h = typeof l == "string" && Ir.test(l), k = (w) => {
|
|
8710
8699
|
if (c && c(w), w.defaultPrevented) return;
|
|
8711
8700
|
w.preventDefault();
|
|
8712
8701
|
let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
|
|
@@ -8734,15 +8723,15 @@ var Cl = R.forwardRef(
|
|
|
8734
8723
|
);
|
|
8735
8724
|
}
|
|
8736
8725
|
);
|
|
8737
|
-
|
|
8738
|
-
function
|
|
8726
|
+
yl.displayName = "Form";
|
|
8727
|
+
function Cl(e) {
|
|
8739
8728
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8740
8729
|
}
|
|
8741
8730
|
function Hr(e) {
|
|
8742
8731
|
let n = R.useContext(Ie);
|
|
8743
|
-
return xe(n,
|
|
8732
|
+
return xe(n, Cl(e)), n;
|
|
8744
8733
|
}
|
|
8745
|
-
function
|
|
8734
|
+
function Sl(e, {
|
|
8746
8735
|
target: n,
|
|
8747
8736
|
replace: t,
|
|
8748
8737
|
state: r,
|
|
@@ -8750,10 +8739,10 @@ function jl(e, {
|
|
|
8750
8739
|
relative: a,
|
|
8751
8740
|
viewTransition: i
|
|
8752
8741
|
} = {}) {
|
|
8753
|
-
let l =
|
|
8742
|
+
let l = Ti(), c = De(), u = Ke(e, { relative: a });
|
|
8754
8743
|
return R.useCallback(
|
|
8755
8744
|
(d) => {
|
|
8756
|
-
if (
|
|
8745
|
+
if (rl(d, n)) {
|
|
8757
8746
|
d.preventDefault();
|
|
8758
8747
|
let g = t !== void 0 ? t : nn(c) === nn(u);
|
|
8759
8748
|
l(e, {
|
|
@@ -8779,20 +8768,20 @@ function jl(e, {
|
|
|
8779
8768
|
]
|
|
8780
8769
|
);
|
|
8781
8770
|
}
|
|
8782
|
-
var
|
|
8783
|
-
function
|
|
8771
|
+
var jl = 0, Rl = () => `__${String(++jl)}__`;
|
|
8772
|
+
function kl() {
|
|
8784
8773
|
let { router: e } = Hr(
|
|
8785
8774
|
"useSubmit"
|
|
8786
8775
|
/* UseSubmit */
|
|
8787
|
-
), { basename: n } = R.useContext(Ee), t =
|
|
8776
|
+
), { basename: n } = R.useContext(Ee), t = Zi();
|
|
8788
8777
|
return R.useCallback(
|
|
8789
8778
|
async (r, o = {}) => {
|
|
8790
|
-
let { action: a, method: i, encType: l, formData: c, body: u } =
|
|
8779
|
+
let { action: a, method: i, encType: l, formData: c, body: u } = il(
|
|
8791
8780
|
r,
|
|
8792
8781
|
n
|
|
8793
8782
|
);
|
|
8794
8783
|
if (o.navigate === !1) {
|
|
8795
|
-
let d = o.fetcherKey ||
|
|
8784
|
+
let d = o.fetcherKey || Rl();
|
|
8796
8785
|
await e.fetch(d, t, o.action || a, {
|
|
8797
8786
|
preventScrollReset: o.preventScrollReset,
|
|
8798
8787
|
formData: c,
|
|
@@ -8818,10 +8807,10 @@ function $l() {
|
|
|
8818
8807
|
[e, n, t]
|
|
8819
8808
|
);
|
|
8820
8809
|
}
|
|
8821
|
-
function
|
|
8810
|
+
function $l(e, { relative: n } = {}) {
|
|
8822
8811
|
let { basename: t } = R.useContext(Ee), r = R.useContext(Pe);
|
|
8823
8812
|
xe(r, "useFormAction must be used inside a RouteContext");
|
|
8824
|
-
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i =
|
|
8813
|
+
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = De();
|
|
8825
8814
|
if (e == null) {
|
|
8826
8815
|
a.search = i.search;
|
|
8827
8816
|
let l = new URLSearchParams(a.search), c = l.getAll("index");
|
|
@@ -8833,7 +8822,7 @@ function _l(e, { relative: n } = {}) {
|
|
|
8833
8822
|
}
|
|
8834
8823
|
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t : $e([t, a.pathname])), nn(a);
|
|
8835
8824
|
}
|
|
8836
|
-
function
|
|
8825
|
+
function _l(e, { relative: n } = {}) {
|
|
8837
8826
|
let t = R.useContext(Fr);
|
|
8838
8827
|
xe(
|
|
8839
8828
|
t != null,
|
|
@@ -8845,7 +8834,7 @@ function El(e, { relative: n } = {}) {
|
|
|
8845
8834
|
), o = Ke(e, { relative: n });
|
|
8846
8835
|
if (!t.isTransitioning)
|
|
8847
8836
|
return !1;
|
|
8848
|
-
let a =
|
|
8837
|
+
let a = Fe(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Fe(t.nextLocation.pathname, r) || t.nextLocation.pathname;
|
|
8849
8838
|
return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
|
|
8850
8839
|
}
|
|
8851
8840
|
const cs = ({
|
|
@@ -8884,7 +8873,7 @@ const cs = ({
|
|
|
8884
8873
|
}
|
|
8885
8874
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8886
8875
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8887
|
-
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8876
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], El = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ds = ({
|
|
8888
8877
|
mode: e = "single",
|
|
8889
8878
|
type: n = "inline",
|
|
8890
8879
|
showTime: t = !1,
|
|
@@ -9053,7 +9042,7 @@ const cs = ({
|
|
|
9053
9042
|
)
|
|
9054
9043
|
] }),
|
|
9055
9044
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
|
|
9056
|
-
|
|
9045
|
+
El.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
|
|
9057
9046
|
z().map((S, j) => /* @__PURE__ */ s.jsx(
|
|
9058
9047
|
"div",
|
|
9059
9048
|
{
|
|
@@ -9107,7 +9096,7 @@ const cs = ({
|
|
|
9107
9096
|
]
|
|
9108
9097
|
}
|
|
9109
9098
|
),
|
|
9110
|
-
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(
|
|
9099
|
+
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(si, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
|
|
9111
9100
|
] });
|
|
9112
9101
|
}, ps = ({
|
|
9113
9102
|
tabs: e,
|
|
@@ -9159,7 +9148,7 @@ const cs = ({
|
|
|
9159
9148
|
}, fs = ({
|
|
9160
9149
|
stats: e = [],
|
|
9161
9150
|
className: n = ""
|
|
9162
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
9151
|
+
}) => /* @__PURE__ */ s.jsx(ai, { className: `w-full ${n}`, children: /* @__PURE__ */ s.jsx("div", { className: "grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center", children: e.map((t, r) => /* @__PURE__ */ s.jsxs(
|
|
9163
9152
|
"div",
|
|
9164
9153
|
{
|
|
9165
9154
|
className: `flex items-center justify-center gap-4 lg:not-last:border-r md:not-last:border-r md:nth-2:border-r-0 md:not-last:border-b-0 not-last:border-b border-color-gray-200
|
|
@@ -9194,7 +9183,7 @@ function ms({
|
|
|
9194
9183
|
c(d), d.onClick && d.onClick(), i && i(d);
|
|
9195
9184
|
};
|
|
9196
9185
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9197
|
-
|
|
9186
|
+
ui,
|
|
9198
9187
|
{
|
|
9199
9188
|
open: o,
|
|
9200
9189
|
onClose: a,
|
|
@@ -9246,51 +9235,51 @@ export {
|
|
|
9246
9235
|
as as ActionMenu,
|
|
9247
9236
|
ls as Alert,
|
|
9248
9237
|
xr as Avatar,
|
|
9249
|
-
|
|
9238
|
+
ql as Backdrop,
|
|
9250
9239
|
ss as Badge,
|
|
9251
9240
|
cs as BottomNavigation,
|
|
9252
9241
|
us as Breadcrumbs,
|
|
9253
9242
|
Gt as Button,
|
|
9254
9243
|
ve as COLOR_MAP,
|
|
9255
|
-
|
|
9256
|
-
|
|
9244
|
+
ai as Card,
|
|
9245
|
+
Al as CardWrapper,
|
|
9257
9246
|
Xl as Carousel,
|
|
9258
|
-
|
|
9247
|
+
Nl as Checkbox,
|
|
9259
9248
|
fs as DashboardStatBoxes,
|
|
9260
9249
|
ds as DatePicker,
|
|
9261
|
-
|
|
9250
|
+
si as Dialog,
|
|
9262
9251
|
ts as Divider,
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9252
|
+
ui as Drawer,
|
|
9253
|
+
Dl as Dropdown,
|
|
9254
|
+
zl as DropzoneUploader,
|
|
9266
9255
|
Jl as EmptyState,
|
|
9267
9256
|
Re as IconButton,
|
|
9268
|
-
|
|
9269
|
-
|
|
9257
|
+
Hl as List,
|
|
9258
|
+
Bl as ListItem,
|
|
9270
9259
|
oa as Menu,
|
|
9271
9260
|
sa as OtpInput,
|
|
9272
9261
|
ni as Pagination,
|
|
9273
9262
|
da as PasswordInput,
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9263
|
+
Tl as Pill,
|
|
9264
|
+
Ol as ProfileImageShowcase,
|
|
9265
|
+
Zl as Progress,
|
|
9277
9266
|
qt as RANGE_COLOR_MAP,
|
|
9278
9267
|
ns as RadioGroup,
|
|
9279
9268
|
Kl as Rating,
|
|
9280
9269
|
rs as Select,
|
|
9281
9270
|
ms as Sidebar,
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9271
|
+
Gl as Skeleton,
|
|
9272
|
+
Ul as Slider,
|
|
9273
|
+
Yl as Snackbar,
|
|
9274
|
+
Il as Stepper,
|
|
9275
|
+
Vl as Table,
|
|
9287
9276
|
ps as Tabs,
|
|
9288
|
-
|
|
9277
|
+
Wl as TextArea,
|
|
9289
9278
|
vr as TextInput,
|
|
9290
9279
|
es as ToggleButton,
|
|
9291
9280
|
Ql as ToggleSwitch,
|
|
9292
9281
|
os as Tooltip,
|
|
9293
9282
|
ti as Typography,
|
|
9294
|
-
|
|
9295
|
-
|
|
9283
|
+
Ll as extendColorMap,
|
|
9284
|
+
Fl as extendRangeColorMap
|
|
9296
9285
|
};
|