@unizap/uniui 1.0.26 → 1.0.27
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 +300 -289
- 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 Ce, { useRef as se, useState as K, useEffect as ce, useMemo as Me, 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 = Ce, 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
|
+
}, Fl = (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
|
+
}, Al = (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
|
+
}, Nl = ({
|
|
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
|
+
), Dl = ({
|
|
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
|
+
), zl = ({
|
|
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 De(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 De(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 De(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 De(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 De(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 De(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) => De(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 De(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 (Ne(e.size))
|
|
2957
|
+
if (Ne(n) && Ne(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 (Ne(n) && e.size < n) return [!1, Tn(n)];
|
|
2962
|
+
if (Ne(t) && e.size > t) return [!1, zn(t)];
|
|
2963
2963
|
}
|
|
2964
2964
|
return [!0, null];
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function Ne(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 je() {
|
|
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 (Ne(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 (Ne(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__ */ Ce.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 = Me(function() {
|
|
3354
3354
|
return Ho(t);
|
|
3355
|
-
}, [t]), ae =
|
|
3355
|
+
}, [t]), ae = Me(function() {
|
|
3356
3356
|
return Vo(t);
|
|
3357
|
-
}, [t]), ue =
|
|
3357
|
+
}, [t]), ue = Me(function() {
|
|
3358
3358
|
return typeof b == "function" ? b : Vn;
|
|
3359
|
-
}, [b]), Q =
|
|
3359
|
+
}, [b]), Q = Me(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), Te = At(Ve, 2), wt = Te[0], yt = Te[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 = Me(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, Te = 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(je(we, _)),
|
|
3515
|
+
onFocus: be(je(Ve, J)),
|
|
3516
|
+
onBlur: be(je(Te, ee)),
|
|
3517
|
+
onClick: fe(je(wt, de)),
|
|
3518
|
+
onDragEnter: Xe(je(yt, E)),
|
|
3519
|
+
onDragOver: Xe(je(Ct, P)),
|
|
3520
|
+
onDragLeave: Xe(je(Qe, B)),
|
|
3521
|
+
onDrop: Xe(je(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 = Me(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), Te = 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(je(ge, S)),
|
|
3548
|
+
onClick: fe(je(we, qr)),
|
|
3549
3549
|
tabIndex: -1
|
|
3550
3550
|
}, me, Y);
|
|
3551
|
-
return le(le({},
|
|
3551
|
+
return le(le({}, Te), 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 Tl = ({
|
|
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
|
+
}, Ol = ({
|
|
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
|
+
}, Il = ({
|
|
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
|
+
] }), Vl = ({ 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(Ce.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 Le(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]: Le(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) => Se(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) => Se(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) => Se(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) => Se(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) => Se(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) => Se(e) || !(e != null && e.length);
|
|
4433
4433
|
const jr = (e, n, t) => e.getValue(n) === t;
|
|
4434
|
-
jr.autoRemove = (e) =>
|
|
4434
|
+
jr.autoRemove = (e) => Se(e);
|
|
4435
4435
|
const Rr = (e, n, t) => e.getValue(n) == t;
|
|
4436
|
-
Rr.autoRemove = (e) =>
|
|
4436
|
+
Rr.autoRemove = (e) => Se(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) => Se(e) || Se(e[0]) && Se(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 Se(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 = Le(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 = Le(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) => Le(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 = Le(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, Le(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 = Le(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(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), qa = (e, n, t) => kr(Fe(e.getValue(t)), Fe(n.getValue(t))), Ga = (e, n, t) => sn(Fe(e.getValue(t)).toLowerCase(), Fe(n.getValue(t)).toLowerCase()), Wa = (e, n, t) => sn(Fe(e.getValue(t)), Fe(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 Fe(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 = Le(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
|
+
}, Hl = ({
|
|
5868
5868
|
data: e,
|
|
5869
5869
|
columns: n = [],
|
|
5870
5870
|
pageSize: t,
|
|
@@ -5933,31 +5933,31 @@ const ei = {
|
|
|
5933
5933
|
)
|
|
5934
5934
|
] })
|
|
5935
5935
|
] }) });
|
|
5936
|
-
},
|
|
5936
|
+
}, Bl = ({ 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 }), ql = ({ 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
|
+
] }), Gl = ({
|
|
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] = Ce.useState(!1);
|
|
5947
|
+
return Ce.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(
|
|
5951
5951
|
"div",
|
|
5952
5952
|
{
|
|
5953
|
-
className: `fixed inset-0 z-
|
|
5953
|
+
className: `fixed inset-0 z-999 bg-color-black/50 flex items-center justify-center transition-all duration-300 ${a ? "opacity-100 pointer-events-auto" : "opacity-0 pointer-events-none"} ${t}`,
|
|
5954
5954
|
onClick: n,
|
|
5955
5955
|
"aria-hidden": !a,
|
|
5956
5956
|
...o,
|
|
5957
5957
|
children: r
|
|
5958
5958
|
}
|
|
5959
5959
|
);
|
|
5960
|
-
},
|
|
5960
|
+
}, Wl = ({
|
|
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
|
+
}, Ul = ({
|
|
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 Yl = Zr(function({
|
|
6079
6079
|
/** controlled */
|
|
6080
6080
|
value: n,
|
|
6081
6081
|
/** uncontrolled */
|
|
@@ -6371,7 +6371,7 @@ const Ul = 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
|
+
}), Zl = ({
|
|
6375
6375
|
open: e = !1,
|
|
6376
6376
|
message: n,
|
|
6377
6377
|
autoHideDuration: t = 4e3,
|
|
@@ -6453,7 +6453,7 @@ const Ul = Zr(function({
|
|
|
6453
6453
|
}
|
|
6454
6454
|
)
|
|
6455
6455
|
] }) : null;
|
|
6456
|
-
},
|
|
6456
|
+
}, oi = Ce.memo(({
|
|
6457
6457
|
variant: e = "linear",
|
|
6458
6458
|
value: n = 0,
|
|
6459
6459
|
color: t = "blue",
|
|
@@ -6461,35 +6461,36 @@ const Ul = Zr(function({
|
|
|
6461
6461
|
className: o = "",
|
|
6462
6462
|
...a
|
|
6463
6463
|
}) => {
|
|
6464
|
-
var
|
|
6465
|
-
const i = "inline-block", l = (
|
|
6464
|
+
var p, f;
|
|
6465
|
+
const i = "inline-block", l = (p = ve[t]) == null ? void 0 : p.transparent, c = (f = ve[t]) == null ? void 0 : f.filled, u = Math.min(Math.max(n, 0), 100);
|
|
6466
6466
|
if (e === "circular") {
|
|
6467
|
-
const { size:
|
|
6467
|
+
const { size: v = 40, thickness: m = 3.6 } = a, b = Me(() => (v - m) / 2, [v, m]), h = Me(() => 2 * Math.PI * b, [b]), k = `${h} ${h}`, w = h - u / 100 * h;
|
|
6468
6468
|
return /* @__PURE__ */ s.jsx(
|
|
6469
6469
|
"div",
|
|
6470
6470
|
{
|
|
6471
6471
|
className: `${i} ${o}`,
|
|
6472
|
-
style: { width:
|
|
6472
|
+
style: { width: v, height: v, contain: "paint" },
|
|
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,
|
|
6477
6478
|
children: /* @__PURE__ */ s.jsxs(
|
|
6478
6479
|
"svg",
|
|
6479
6480
|
{
|
|
6480
|
-
className: "
|
|
6481
|
-
width:
|
|
6482
|
-
height:
|
|
6483
|
-
viewBox: `0 0 ${
|
|
6481
|
+
className: r ? "" : "animate-spin-slow",
|
|
6482
|
+
width: v,
|
|
6483
|
+
height: v,
|
|
6484
|
+
viewBox: `0 0 ${v} ${v}`,
|
|
6484
6485
|
children: [
|
|
6485
6486
|
/* @__PURE__ */ s.jsx(
|
|
6486
6487
|
"circle",
|
|
6487
6488
|
{
|
|
6488
|
-
cx:
|
|
6489
|
-
cy:
|
|
6490
|
-
r:
|
|
6489
|
+
cx: v / 2,
|
|
6490
|
+
cy: v / 2,
|
|
6491
|
+
r: b,
|
|
6491
6492
|
stroke: "currentColor",
|
|
6492
|
-
strokeWidth:
|
|
6493
|
+
strokeWidth: m,
|
|
6493
6494
|
fill: "none",
|
|
6494
6495
|
className: "text-color-gray-200 dark:text-color-gray-700"
|
|
6495
6496
|
}
|
|
@@ -6497,19 +6498,15 @@ const Ul = Zr(function({
|
|
|
6497
6498
|
/* @__PURE__ */ s.jsx(
|
|
6498
6499
|
"circle",
|
|
6499
6500
|
{
|
|
6500
|
-
cx:
|
|
6501
|
-
cy:
|
|
6502
|
-
r:
|
|
6501
|
+
cx: v / 2,
|
|
6502
|
+
cy: v / 2,
|
|
6503
|
+
r: b,
|
|
6503
6504
|
stroke: "currentColor",
|
|
6504
|
-
strokeWidth:
|
|
6505
|
+
strokeWidth: m,
|
|
6505
6506
|
fill: "none",
|
|
6506
6507
|
strokeLinecap: "round",
|
|
6507
|
-
className: `${l}
|
|
6508
|
-
style: {
|
|
6509
|
-
strokeDasharray: h,
|
|
6510
|
-
strokeDashoffset: r ? k : b * 0.75,
|
|
6511
|
-
transformOrigin: "center"
|
|
6512
|
-
}
|
|
6508
|
+
className: `${l}`,
|
|
6509
|
+
style: r ? { strokeDasharray: k, strokeDashoffset: w, transformOrigin: "center" } : { strokeDasharray: `${h * 0.25} ${h}`, strokeDashoffset: 0 }
|
|
6513
6510
|
}
|
|
6514
6511
|
)
|
|
6515
6512
|
]
|
|
@@ -6518,7 +6515,7 @@ const Ul = Zr(function({
|
|
|
6518
6515
|
}
|
|
6519
6516
|
);
|
|
6520
6517
|
}
|
|
6521
|
-
const { thickness: d = 4 } = a;
|
|
6518
|
+
const { thickness: d = 4 } = a, g = r ? u / 100 : 0.4;
|
|
6522
6519
|
return /* @__PURE__ */ s.jsx(
|
|
6523
6520
|
"div",
|
|
6524
6521
|
{
|
|
@@ -6527,6 +6524,8 @@ const Ul = Zr(function({
|
|
|
6527
6524
|
"aria-valuenow": r ? u : void 0,
|
|
6528
6525
|
"aria-valuemin": 0,
|
|
6529
6526
|
"aria-valuemax": 100,
|
|
6527
|
+
"aria-busy": !r,
|
|
6528
|
+
style: { contain: "paint" },
|
|
6530
6529
|
children: /* @__PURE__ */ s.jsx(
|
|
6531
6530
|
"div",
|
|
6532
6531
|
{
|
|
@@ -6535,21 +6534,33 @@ const Ul = Zr(function({
|
|
|
6535
6534
|
children: r ? /* @__PURE__ */ s.jsx(
|
|
6536
6535
|
"div",
|
|
6537
6536
|
{
|
|
6538
|
-
className: `h-full ${c}
|
|
6539
|
-
style: {
|
|
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
|
+
}
|
|
6540
6546
|
}
|
|
6541
6547
|
) : /* @__PURE__ */ s.jsx(
|
|
6542
6548
|
"div",
|
|
6543
6549
|
{
|
|
6544
|
-
className: `absolute left-0 top-0 h-full ${c} animate-progress-indeterminate`,
|
|
6545
|
-
style: {
|
|
6550
|
+
className: `absolute left-0 top-0 h-full ${c} animate-progress-indeterminate-gpu`,
|
|
6551
|
+
style: {
|
|
6552
|
+
width: "40%",
|
|
6553
|
+
willChange: "transform"
|
|
6554
|
+
}
|
|
6546
6555
|
}
|
|
6547
6556
|
)
|
|
6548
6557
|
}
|
|
6549
6558
|
)
|
|
6550
6559
|
}
|
|
6551
6560
|
);
|
|
6552
|
-
}
|
|
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 = {
|
|
6553
6564
|
small: "w-4 h-4",
|
|
6554
6565
|
medium: "w-6 h-6",
|
|
6555
6566
|
large: "w-8 h-8"
|
|
@@ -6569,7 +6580,7 @@ const Ul = Zr(function({
|
|
|
6569
6580
|
labels: p = {}
|
|
6570
6581
|
// <-- Add this
|
|
6571
6582
|
}) => {
|
|
6572
|
-
const [f, v] =
|
|
6583
|
+
const [f, v] = Ce.useState(null), m = (w, $) => {
|
|
6573
6584
|
if (t || r || !n) return;
|
|
6574
6585
|
const { left: y, width: O } = w.target.getBoundingClientRect(), D = (w.clientX - y) / O;
|
|
6575
6586
|
let V = $ - 1 + Math.ceil(D / o) * o;
|
|
@@ -6581,7 +6592,7 @@ const Ul = Zr(function({
|
|
|
6581
6592
|
V = Math.min(a, Math.max(o, Math.round(V / o) * o)), v(V);
|
|
6582
6593
|
}, h = () => v(null), k = [];
|
|
6583
6594
|
for (let w = 1; w <= a; w++) {
|
|
6584
|
-
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l ||
|
|
6595
|
+
let $ = (f !== null ? f : e) >= w, y = !$ && (f !== null ? f : e) > w - 1, O = $ ? l || Ce.cloneElement(Wn, { className: `fill-color-yellow-500 ${st[i]}` }) : c || Ce.cloneElement(Un, { className: `stroke-color-gray-300 ${st[i]}` });
|
|
6585
6596
|
if (y) {
|
|
6586
6597
|
const D = ((f !== null ? f : e) - (w - 1)) * 100;
|
|
6587
6598
|
O = /* @__PURE__ */ s.jsxs("span", { className: "relative block", children: [
|
|
@@ -6590,12 +6601,12 @@ const Ul = Zr(function({
|
|
|
6590
6601
|
{
|
|
6591
6602
|
className: "absolute top-0 left-0 overflow-hidden",
|
|
6592
6603
|
style: { width: `${D}%` },
|
|
6593
|
-
children: l ||
|
|
6604
|
+
children: l || Ce.cloneElement(Wn, {
|
|
6594
6605
|
className: `fill-color-yellow-500 ${st[i]}`
|
|
6595
6606
|
})
|
|
6596
6607
|
}
|
|
6597
6608
|
),
|
|
6598
|
-
c ||
|
|
6609
|
+
c || Ce.cloneElement(Un, {
|
|
6599
6610
|
className: `stroke-color-gray-300 ${st[i]}`
|
|
6600
6611
|
})
|
|
6601
6612
|
] });
|
|
@@ -6903,7 +6914,7 @@ const Ul = Zr(function({
|
|
|
6903
6914
|
)
|
|
6904
6915
|
}
|
|
6905
6916
|
);
|
|
6906
|
-
},
|
|
6917
|
+
}, ai = {
|
|
6907
6918
|
small: "px-2 py-1 text-sm",
|
|
6908
6919
|
medium: "px-4 py-2 text-base",
|
|
6909
6920
|
large: "px-6 py-3 text-lg"
|
|
@@ -6942,7 +6953,7 @@ const Ul = Zr(function({
|
|
|
6942
6953
|
disabled: u || p.disabled,
|
|
6943
6954
|
className: `
|
|
6944
6955
|
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
|
|
6945
|
-
${
|
|
6956
|
+
${ai[o]}
|
|
6946
6957
|
${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
|
|
6947
6958
|
${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
6948
6959
|
${c}
|
|
@@ -6973,7 +6984,7 @@ const Ul = Zr(function({
|
|
|
6973
6984
|
small: "rounded-md",
|
|
6974
6985
|
medium: "rounded-xl",
|
|
6975
6986
|
large: "rounded-2xl"
|
|
6976
|
-
},
|
|
6987
|
+
}, ii = ({
|
|
6977
6988
|
title: e,
|
|
6978
6989
|
subtitle: n,
|
|
6979
6990
|
space: t = "medium",
|
|
@@ -7185,10 +7196,10 @@ const Ul = Zr(function({
|
|
|
7185
7196
|
)
|
|
7186
7197
|
] });
|
|
7187
7198
|
};
|
|
7188
|
-
function
|
|
7199
|
+
function li(...e) {
|
|
7189
7200
|
return e.filter(Boolean).join(" ");
|
|
7190
7201
|
}
|
|
7191
|
-
const
|
|
7202
|
+
const si = {
|
|
7192
7203
|
sm: "max-w-sm",
|
|
7193
7204
|
md: "max-w-md",
|
|
7194
7205
|
lg: "max-w-lg",
|
|
@@ -7196,7 +7207,7 @@ const li = {
|
|
|
7196
7207
|
"2xl": "max-w-2xl",
|
|
7197
7208
|
"4xl": "max-w-4xl",
|
|
7198
7209
|
"6xl": "max-w-6xl"
|
|
7199
|
-
},
|
|
7210
|
+
}, ci = Ye(
|
|
7200
7211
|
({
|
|
7201
7212
|
open: e,
|
|
7202
7213
|
onClose: n,
|
|
@@ -7229,13 +7240,13 @@ const li = {
|
|
|
7229
7240
|
w.key === "Escape" && (n == null || n());
|
|
7230
7241
|
};
|
|
7231
7242
|
return g && document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
|
|
7232
|
-
}, [g, n]), ce(() => (g ?
|
|
7233
|
-
document.body.style.overflow = ""
|
|
7243
|
+
}, [g, n]), ce(() => (g ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
7244
|
+
document.body.style.overflow = "";
|
|
7234
7245
|
}), [g]), f ? Ze(
|
|
7235
7246
|
/* @__PURE__ */ s.jsxs(
|
|
7236
7247
|
"div",
|
|
7237
7248
|
{
|
|
7238
|
-
className:
|
|
7249
|
+
className: li(
|
|
7239
7250
|
"fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
|
|
7240
7251
|
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7241
7252
|
),
|
|
@@ -7252,7 +7263,7 @@ const li = {
|
|
|
7252
7263
|
/* @__PURE__ */ s.jsxs(
|
|
7253
7264
|
"div",
|
|
7254
7265
|
{
|
|
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 ?
|
|
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 ? si[u] : ""} mx-5`} ${t}`,
|
|
7256
7267
|
onTransitionEnd: h,
|
|
7257
7268
|
children: [
|
|
7258
7269
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
@@ -7336,10 +7347,10 @@ function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7336
7347
|
o && Ze(f, document.body)
|
|
7337
7348
|
] });
|
|
7338
7349
|
}
|
|
7339
|
-
function
|
|
7350
|
+
function ui(...e) {
|
|
7340
7351
|
return e.filter(Boolean).join(" ");
|
|
7341
7352
|
}
|
|
7342
|
-
const
|
|
7353
|
+
const di = ({
|
|
7343
7354
|
open: e,
|
|
7344
7355
|
onClose: n,
|
|
7345
7356
|
className: t,
|
|
@@ -7383,7 +7394,7 @@ const ui = ({
|
|
|
7383
7394
|
/* @__PURE__ */ s.jsxs(
|
|
7384
7395
|
"div",
|
|
7385
7396
|
{
|
|
7386
|
-
className:
|
|
7397
|
+
className: ui(
|
|
7387
7398
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7388
7399
|
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7389
7400
|
),
|
|
@@ -7461,19 +7472,19 @@ const ui = ({
|
|
|
7461
7472
|
),
|
|
7462
7473
|
/* @__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 }) }) })
|
|
7463
7474
|
] });
|
|
7464
|
-
},
|
|
7475
|
+
}, pi = {
|
|
7465
7476
|
info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
|
|
7466
7477
|
success: "bg-color-green-50 border-color-green-300 text-color-green-800",
|
|
7467
7478
|
danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
|
|
7468
7479
|
warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
|
|
7469
7480
|
dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
|
|
7470
|
-
},
|
|
7481
|
+
}, fi = {
|
|
7471
7482
|
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" }) }),
|
|
7472
7483
|
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" }) }),
|
|
7473
7484
|
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" }) }),
|
|
7474
7485
|
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" }) }),
|
|
7475
7486
|
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" }) })
|
|
7476
|
-
},
|
|
7487
|
+
}, mi = {
|
|
7477
7488
|
info: "bg-color-blue-500",
|
|
7478
7489
|
success: "bg-color-green-500",
|
|
7479
7490
|
danger: "bg-color-red-500",
|
|
@@ -7498,10 +7509,10 @@ const ui = ({
|
|
|
7498
7509
|
}, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
|
|
7499
7510
|
"div",
|
|
7500
7511
|
{
|
|
7501
|
-
className: `relative border-t-4 p-4 flex items-start justify-between ${
|
|
7512
|
+
className: `relative border-t-4 p-4 flex items-start justify-between ${pi[n]} ${o}`,
|
|
7502
7513
|
children: [
|
|
7503
7514
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7504
|
-
|
|
7515
|
+
fi[n],
|
|
7505
7516
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
|
|
7506
7517
|
] }),
|
|
7507
7518
|
/* @__PURE__ */ s.jsx(
|
|
@@ -7519,7 +7530,7 @@ const ui = ({
|
|
|
7519
7530
|
"div",
|
|
7520
7531
|
{
|
|
7521
7532
|
ref: c,
|
|
7522
|
-
className: `${
|
|
7533
|
+
className: `${mi[n]} h-1`,
|
|
7523
7534
|
style: { width: "100%" }
|
|
7524
7535
|
}
|
|
7525
7536
|
) })
|
|
@@ -7612,18 +7623,18 @@ function cn(e) {
|
|
|
7612
7623
|
return n;
|
|
7613
7624
|
}
|
|
7614
7625
|
function $r(e, n, t = "/") {
|
|
7615
|
-
return
|
|
7626
|
+
return gi(e, n, t, !1);
|
|
7616
7627
|
}
|
|
7617
|
-
function
|
|
7618
|
-
let o = typeof n == "string" ? cn(n) : n, a =
|
|
7628
|
+
function gi(e, n, t, r) {
|
|
7629
|
+
let o = typeof n == "string" ? cn(n) : n, a = Ae(o.pathname || "/", t);
|
|
7619
7630
|
if (a == null)
|
|
7620
7631
|
return null;
|
|
7621
7632
|
let i = _r(e);
|
|
7622
|
-
|
|
7633
|
+
vi(i);
|
|
7623
7634
|
let l = null;
|
|
7624
7635
|
for (let c = 0; l == null && c < i.length; ++c) {
|
|
7625
|
-
let u =
|
|
7626
|
-
l =
|
|
7636
|
+
let u = $i(a);
|
|
7637
|
+
l = Ri(
|
|
7627
7638
|
i[c],
|
|
7628
7639
|
u,
|
|
7629
7640
|
r
|
|
@@ -7651,7 +7662,7 @@ function _r(e, n = [], t = [], r = "") {
|
|
|
7651
7662
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
7652
7663
|
), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
|
|
7653
7664
|
path: u,
|
|
7654
|
-
score:
|
|
7665
|
+
score: Si(u, a.index),
|
|
7655
7666
|
routesMeta: d
|
|
7656
7667
|
});
|
|
7657
7668
|
};
|
|
@@ -7679,23 +7690,23 @@ function Er(e) {
|
|
|
7679
7690
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
7680
7691
|
);
|
|
7681
7692
|
}
|
|
7682
|
-
function
|
|
7693
|
+
function vi(e) {
|
|
7683
7694
|
e.sort(
|
|
7684
|
-
(n, t) => n.score !== t.score ? t.score - n.score :
|
|
7695
|
+
(n, t) => n.score !== t.score ? t.score - n.score : ji(
|
|
7685
7696
|
n.routesMeta.map((r) => r.childrenIndex),
|
|
7686
7697
|
t.routesMeta.map((r) => r.childrenIndex)
|
|
7687
7698
|
)
|
|
7688
7699
|
);
|
|
7689
7700
|
}
|
|
7690
|
-
var
|
|
7691
|
-
function
|
|
7701
|
+
var xi = /^:[\w-]+$/, hi = 3, bi = 2, wi = 1, yi = 10, Ci = -2, Xn = (e) => e === "*";
|
|
7702
|
+
function Si(e, n) {
|
|
7692
7703
|
let t = e.split("/"), r = t.length;
|
|
7693
|
-
return t.some(Xn) && (r +=
|
|
7694
|
-
(o, a) => o + (
|
|
7704
|
+
return t.some(Xn) && (r += Ci), n && (r += bi), t.filter((o) => !Xn(o)).reduce(
|
|
7705
|
+
(o, a) => o + (xi.test(a) ? hi : a === "" ? wi : yi),
|
|
7695
7706
|
r
|
|
7696
7707
|
);
|
|
7697
7708
|
}
|
|
7698
|
-
function
|
|
7709
|
+
function ji(e, n) {
|
|
7699
7710
|
return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
|
|
7700
7711
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
7701
7712
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -7708,7 +7719,7 @@ function Si(e, n) {
|
|
|
7708
7719
|
0
|
|
7709
7720
|
);
|
|
7710
7721
|
}
|
|
7711
|
-
function
|
|
7722
|
+
function Ri(e, n, t = !1) {
|
|
7712
7723
|
let { routesMeta: r } = e, o = {}, a = "/", i = [];
|
|
7713
7724
|
for (let l = 0; l < r.length; ++l) {
|
|
7714
7725
|
let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
|
|
@@ -7728,7 +7739,7 @@ function ji(e, n, t = !1) {
|
|
|
7728
7739
|
// TODO: Can this as be avoided?
|
|
7729
7740
|
params: o,
|
|
7730
7741
|
pathname: $e([a, g.pathname]),
|
|
7731
|
-
pathnameBase:
|
|
7742
|
+
pathnameBase: Mi(
|
|
7732
7743
|
$e([a, g.pathnameBase])
|
|
7733
7744
|
),
|
|
7734
7745
|
route: p
|
|
@@ -7738,7 +7749,7 @@ function ji(e, n, t = !1) {
|
|
|
7738
7749
|
}
|
|
7739
7750
|
function gt(e, n) {
|
|
7740
7751
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
7741
|
-
let [t, r] =
|
|
7752
|
+
let [t, r] = ki(
|
|
7742
7753
|
e.path,
|
|
7743
7754
|
e.caseSensitive,
|
|
7744
7755
|
e.end
|
|
@@ -7762,7 +7773,7 @@ function gt(e, n) {
|
|
|
7762
7773
|
pattern: e
|
|
7763
7774
|
};
|
|
7764
7775
|
}
|
|
7765
|
-
function
|
|
7776
|
+
function ki(e, n = !1, t = !0) {
|
|
7766
7777
|
_e(
|
|
7767
7778
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
7768
7779
|
`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(/\*$/, "/*")}".`
|
|
@@ -7773,7 +7784,7 @@ function Ri(e, n = !1, t = !0) {
|
|
|
7773
7784
|
);
|
|
7774
7785
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
|
|
7775
7786
|
}
|
|
7776
|
-
function
|
|
7787
|
+
function $i(e) {
|
|
7777
7788
|
try {
|
|
7778
7789
|
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
7779
7790
|
} catch (n) {
|
|
@@ -7783,26 +7794,26 @@ function ki(e) {
|
|
|
7783
7794
|
), e;
|
|
7784
7795
|
}
|
|
7785
7796
|
}
|
|
7786
|
-
function
|
|
7797
|
+
function Ae(e, n) {
|
|
7787
7798
|
if (n === "/") return e;
|
|
7788
7799
|
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
7789
7800
|
return null;
|
|
7790
7801
|
let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
|
|
7791
7802
|
return r && r !== "/" ? null : e.slice(t) || "/";
|
|
7792
7803
|
}
|
|
7793
|
-
function
|
|
7804
|
+
function _i(e, n = "/") {
|
|
7794
7805
|
let {
|
|
7795
7806
|
pathname: t,
|
|
7796
7807
|
search: r = "",
|
|
7797
7808
|
hash: o = ""
|
|
7798
7809
|
} = typeof e == "string" ? cn(e) : e;
|
|
7799
7810
|
return {
|
|
7800
|
-
pathname: t ? t.startsWith("/") ? t :
|
|
7801
|
-
search:
|
|
7802
|
-
hash:
|
|
7811
|
+
pathname: t ? t.startsWith("/") ? t : Ei(t, n) : n,
|
|
7812
|
+
search: Li(r),
|
|
7813
|
+
hash: Fi(o)
|
|
7803
7814
|
};
|
|
7804
7815
|
}
|
|
7805
|
-
function
|
|
7816
|
+
function Ei(e, n) {
|
|
7806
7817
|
let t = n.replace(/\/+$/, "").split("/");
|
|
7807
7818
|
return e.split("/").forEach((o) => {
|
|
7808
7819
|
o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
|
|
@@ -7813,13 +7824,13 @@ function Ht(e, n, t, r) {
|
|
|
7813
7824
|
r
|
|
7814
7825
|
)}]. 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.`;
|
|
7815
7826
|
}
|
|
7816
|
-
function
|
|
7827
|
+
function Pi(e) {
|
|
7817
7828
|
return e.filter(
|
|
7818
7829
|
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
7819
7830
|
);
|
|
7820
7831
|
}
|
|
7821
7832
|
function Pr(e) {
|
|
7822
|
-
let n =
|
|
7833
|
+
let n = Pi(e);
|
|
7823
7834
|
return n.map(
|
|
7824
7835
|
(t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
|
|
7825
7836
|
);
|
|
@@ -7849,11 +7860,11 @@ function Mr(e, n, t, r = !1) {
|
|
|
7849
7860
|
}
|
|
7850
7861
|
l = g >= 0 ? n[g] : "/";
|
|
7851
7862
|
}
|
|
7852
|
-
let c =
|
|
7863
|
+
let c = _i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
|
|
7853
7864
|
return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
|
|
7854
7865
|
}
|
|
7855
|
-
var $e = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
7856
|
-
function
|
|
7866
|
+
var $e = (e) => e.join("/").replace(/\/\/+/g, "/"), Mi = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Fi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
7867
|
+
function Ai(e) {
|
|
7857
7868
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
7858
7869
|
}
|
|
7859
7870
|
var Lr = [
|
|
@@ -7865,11 +7876,11 @@ var Lr = [
|
|
|
7865
7876
|
new Set(
|
|
7866
7877
|
Lr
|
|
7867
7878
|
);
|
|
7868
|
-
var
|
|
7879
|
+
var Ni = [
|
|
7869
7880
|
"GET",
|
|
7870
7881
|
...Lr
|
|
7871
7882
|
];
|
|
7872
|
-
new Set(
|
|
7883
|
+
new Set(Ni);
|
|
7873
7884
|
var Ie = R.createContext(null);
|
|
7874
7885
|
Ie.displayName = "DataRouter";
|
|
7875
7886
|
var xt = R.createContext(null);
|
|
@@ -7879,12 +7890,12 @@ var Fr = R.createContext({
|
|
|
7879
7890
|
isTransitioning: !1
|
|
7880
7891
|
});
|
|
7881
7892
|
Fr.displayName = "ViewTransition";
|
|
7882
|
-
var
|
|
7893
|
+
var Di = R.createContext(
|
|
7883
7894
|
/* @__PURE__ */ new Map()
|
|
7884
7895
|
);
|
|
7885
|
-
|
|
7886
|
-
var
|
|
7887
|
-
|
|
7896
|
+
Di.displayName = "Fetchers";
|
|
7897
|
+
var zi = R.createContext(null);
|
|
7898
|
+
zi.displayName = "Await";
|
|
7888
7899
|
var Ee = R.createContext(
|
|
7889
7900
|
null
|
|
7890
7901
|
);
|
|
@@ -7901,7 +7912,7 @@ var Pe = R.createContext({
|
|
|
7901
7912
|
Pe.displayName = "Route";
|
|
7902
7913
|
var dn = R.createContext(null);
|
|
7903
7914
|
dn.displayName = "RouteError";
|
|
7904
|
-
function
|
|
7915
|
+
function Ti(e, { relative: n } = {}) {
|
|
7905
7916
|
xe(
|
|
7906
7917
|
ht(),
|
|
7907
7918
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7914,7 +7925,7 @@ function zi(e, { relative: n } = {}) {
|
|
|
7914
7925
|
function ht() {
|
|
7915
7926
|
return R.useContext(un) != null;
|
|
7916
7927
|
}
|
|
7917
|
-
function
|
|
7928
|
+
function ze() {
|
|
7918
7929
|
return xe(
|
|
7919
7930
|
ht(),
|
|
7920
7931
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7926,18 +7937,18 @@ var Ar = "You should call navigate() in a React.useEffect(), not when your compo
|
|
|
7926
7937
|
function Nr(e) {
|
|
7927
7938
|
R.useContext(Ee).static || R.useLayoutEffect(e);
|
|
7928
7939
|
}
|
|
7929
|
-
function
|
|
7940
|
+
function Oi() {
|
|
7930
7941
|
let { isDataRoute: e } = R.useContext(Pe);
|
|
7931
|
-
return e ?
|
|
7942
|
+
return e ? Ji() : Ii();
|
|
7932
7943
|
}
|
|
7933
|
-
function
|
|
7944
|
+
function Ii() {
|
|
7934
7945
|
xe(
|
|
7935
7946
|
ht(),
|
|
7936
7947
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
7937
7948
|
// router loaded. We can help them understand how to avoid that.
|
|
7938
7949
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
7939
7950
|
);
|
|
7940
|
-
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(Ee), { matches: r } = R.useContext(Pe), { pathname: o } =
|
|
7951
|
+
let e = R.useContext(Ie), { basename: n, navigator: t } = R.useContext(Ee), { matches: r } = R.useContext(Pe), { pathname: o } = ze(), a = JSON.stringify(Pr(r)), i = R.useRef(!1);
|
|
7941
7952
|
return Nr(() => {
|
|
7942
7953
|
i.current = !0;
|
|
7943
7954
|
}), R.useCallback(
|
|
@@ -7970,7 +7981,7 @@ function Oi() {
|
|
|
7970
7981
|
}
|
|
7971
7982
|
R.createContext(null);
|
|
7972
7983
|
function Ke(e, { relative: n } = {}) {
|
|
7973
|
-
let { matches: t } = R.useContext(Pe), { pathname: r } =
|
|
7984
|
+
let { matches: t } = R.useContext(Pe), { pathname: r } = ze(), o = JSON.stringify(Pr(t));
|
|
7974
7985
|
return R.useMemo(
|
|
7975
7986
|
() => Mr(
|
|
7976
7987
|
e,
|
|
@@ -7981,7 +7992,7 @@ function Ke(e, { relative: n } = {}) {
|
|
|
7981
7992
|
[e, o, r, n]
|
|
7982
7993
|
);
|
|
7983
7994
|
}
|
|
7984
|
-
function
|
|
7995
|
+
function Vi(e, n, t, r) {
|
|
7985
7996
|
xe(
|
|
7986
7997
|
ht(),
|
|
7987
7998
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7999,7 +8010,7 @@ function Ii(e, n, t, r) {
|
|
|
7999
8010
|
Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" : `${h}/*`}">.`
|
|
8000
8011
|
);
|
|
8001
8012
|
}
|
|
8002
|
-
let g =
|
|
8013
|
+
let g = ze(), p;
|
|
8003
8014
|
p = g;
|
|
8004
8015
|
let f = p.pathname || "/", v = f;
|
|
8005
8016
|
if (u !== "/") {
|
|
@@ -8013,7 +8024,7 @@ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" :
|
|
|
8013
8024
|
), _e(
|
|
8014
8025
|
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,
|
|
8015
8026
|
`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.`
|
|
8016
|
-
),
|
|
8027
|
+
), Wi(
|
|
8017
8028
|
m && m.map(
|
|
8018
8029
|
(h) => Object.assign({}, h, {
|
|
8019
8030
|
params: Object.assign({}, l, h.params),
|
|
@@ -8034,14 +8045,14 @@ Please change the parent <Route path="${h}"> to <Route path="${h === "/" ? "*" :
|
|
|
8034
8045
|
r
|
|
8035
8046
|
);
|
|
8036
8047
|
}
|
|
8037
|
-
function
|
|
8038
|
-
let e =
|
|
8048
|
+
function Hi() {
|
|
8049
|
+
let e = Xi(), n = Ai(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;
|
|
8039
8050
|
return console.error(
|
|
8040
8051
|
"Error handled by React Router default ErrorBoundary:",
|
|
8041
8052
|
e
|
|
8042
8053
|
), 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);
|
|
8043
8054
|
}
|
|
8044
|
-
var
|
|
8055
|
+
var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Component {
|
|
8045
8056
|
constructor(e) {
|
|
8046
8057
|
super(e), this.state = {
|
|
8047
8058
|
location: e.location,
|
|
@@ -8080,11 +8091,11 @@ var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Compone
|
|
|
8080
8091
|
)) : this.props.children;
|
|
8081
8092
|
}
|
|
8082
8093
|
};
|
|
8083
|
-
function
|
|
8094
|
+
function Gi({ routeContext: e, match: n, children: t }) {
|
|
8084
8095
|
let r = R.useContext(Ie);
|
|
8085
8096
|
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);
|
|
8086
8097
|
}
|
|
8087
|
-
function
|
|
8098
|
+
function Wi(e, n = [], t = null, r = null) {
|
|
8088
8099
|
if (e == null) {
|
|
8089
8100
|
if (!t)
|
|
8090
8101
|
return null;
|
|
@@ -8125,7 +8136,7 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8125
8136
|
return o.reduceRight(
|
|
8126
8137
|
(c, u, d) => {
|
|
8127
8138
|
let g, p = !1, f = null, v = null;
|
|
8128
|
-
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement ||
|
|
8139
|
+
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Bi, i && (l < 0 && d === 0 ? (Dr(
|
|
8129
8140
|
"route-fallback",
|
|
8130
8141
|
!1,
|
|
8131
8142
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -8133,7 +8144,7 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8133
8144
|
let m = n.concat(o.slice(0, d + 1)), b = () => {
|
|
8134
8145
|
let h;
|
|
8135
8146
|
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(
|
|
8136
|
-
|
|
8147
|
+
Gi,
|
|
8137
8148
|
{
|
|
8138
8149
|
match: u,
|
|
8139
8150
|
routeContext: {
|
|
@@ -8146,7 +8157,7 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8146
8157
|
);
|
|
8147
8158
|
};
|
|
8148
8159
|
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
|
|
8149
|
-
|
|
8160
|
+
qi,
|
|
8150
8161
|
{
|
|
8151
8162
|
location: t.location,
|
|
8152
8163
|
revalidation: t.revalidation,
|
|
@@ -8163,34 +8174,34 @@ function Gi(e, n = [], t = null, r = null) {
|
|
|
8163
8174
|
function pn(e) {
|
|
8164
8175
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8165
8176
|
}
|
|
8166
|
-
function
|
|
8177
|
+
function Ui(e) {
|
|
8167
8178
|
let n = R.useContext(Ie);
|
|
8168
8179
|
return xe(n, pn(e)), n;
|
|
8169
8180
|
}
|
|
8170
|
-
function
|
|
8181
|
+
function Yi(e) {
|
|
8171
8182
|
let n = R.useContext(xt);
|
|
8172
8183
|
return xe(n, pn(e)), n;
|
|
8173
8184
|
}
|
|
8174
|
-
function
|
|
8185
|
+
function Zi(e) {
|
|
8175
8186
|
let n = R.useContext(Pe);
|
|
8176
8187
|
return xe(n, pn(e)), n;
|
|
8177
8188
|
}
|
|
8178
8189
|
function fn(e) {
|
|
8179
|
-
let n =
|
|
8190
|
+
let n = Zi(e), t = n.matches[n.matches.length - 1];
|
|
8180
8191
|
return xe(
|
|
8181
8192
|
t.route.id,
|
|
8182
8193
|
`${e} can only be used on routes that contain a unique "id"`
|
|
8183
8194
|
), t.route.id;
|
|
8184
8195
|
}
|
|
8185
|
-
function
|
|
8196
|
+
function Ki() {
|
|
8186
8197
|
return fn(
|
|
8187
8198
|
"useRouteId"
|
|
8188
8199
|
/* UseRouteId */
|
|
8189
8200
|
);
|
|
8190
8201
|
}
|
|
8191
|
-
function
|
|
8202
|
+
function Xi() {
|
|
8192
8203
|
var r;
|
|
8193
|
-
let e = R.useContext(dn), n =
|
|
8204
|
+
let e = R.useContext(dn), n = Yi(
|
|
8194
8205
|
"useRouteError"
|
|
8195
8206
|
/* UseRouteError */
|
|
8196
8207
|
), t = fn(
|
|
@@ -8199,8 +8210,8 @@ function Ki() {
|
|
|
8199
8210
|
);
|
|
8200
8211
|
return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
|
|
8201
8212
|
}
|
|
8202
|
-
function
|
|
8203
|
-
let { router: e } =
|
|
8213
|
+
function Ji() {
|
|
8214
|
+
let { router: e } = Ui(
|
|
8204
8215
|
"useNavigate"
|
|
8205
8216
|
/* UseNavigateStable */
|
|
8206
8217
|
), n = fn(
|
|
@@ -8220,37 +8231,37 @@ var Jn = {};
|
|
|
8220
8231
|
function Dr(e, n, t) {
|
|
8221
8232
|
!n && !Jn[e] && (Jn[e] = !0, _e(!1, t));
|
|
8222
8233
|
}
|
|
8223
|
-
R.memo(
|
|
8224
|
-
function
|
|
8234
|
+
R.memo(Qi);
|
|
8235
|
+
function Qi({
|
|
8225
8236
|
routes: e,
|
|
8226
8237
|
future: n,
|
|
8227
8238
|
state: t
|
|
8228
8239
|
}) {
|
|
8229
|
-
return
|
|
8240
|
+
return Vi(e, void 0, t, n);
|
|
8230
8241
|
}
|
|
8231
8242
|
var ut = "get", dt = "application/x-www-form-urlencoded";
|
|
8232
8243
|
function bt(e) {
|
|
8233
8244
|
return e != null && typeof e.tagName == "string";
|
|
8234
8245
|
}
|
|
8235
|
-
function
|
|
8246
|
+
function el(e) {
|
|
8236
8247
|
return bt(e) && e.tagName.toLowerCase() === "button";
|
|
8237
8248
|
}
|
|
8238
|
-
function
|
|
8249
|
+
function tl(e) {
|
|
8239
8250
|
return bt(e) && e.tagName.toLowerCase() === "form";
|
|
8240
8251
|
}
|
|
8241
|
-
function
|
|
8252
|
+
function nl(e) {
|
|
8242
8253
|
return bt(e) && e.tagName.toLowerCase() === "input";
|
|
8243
8254
|
}
|
|
8244
|
-
function
|
|
8255
|
+
function rl(e) {
|
|
8245
8256
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
8246
8257
|
}
|
|
8247
|
-
function
|
|
8258
|
+
function ol(e, n) {
|
|
8248
8259
|
return e.button === 0 && // Ignore everything but left clicks
|
|
8249
8260
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
8250
|
-
!
|
|
8261
|
+
!rl(e);
|
|
8251
8262
|
}
|
|
8252
8263
|
var ct = null;
|
|
8253
|
-
function
|
|
8264
|
+
function al() {
|
|
8254
8265
|
if (ct === null)
|
|
8255
8266
|
try {
|
|
8256
8267
|
new FormData(
|
|
@@ -8263,30 +8274,30 @@ function ol() {
|
|
|
8263
8274
|
}
|
|
8264
8275
|
return ct;
|
|
8265
8276
|
}
|
|
8266
|
-
var
|
|
8277
|
+
var il = /* @__PURE__ */ new Set([
|
|
8267
8278
|
"application/x-www-form-urlencoded",
|
|
8268
8279
|
"multipart/form-data",
|
|
8269
8280
|
"text/plain"
|
|
8270
8281
|
]);
|
|
8271
8282
|
function Bt(e) {
|
|
8272
|
-
return e != null && !
|
|
8283
|
+
return e != null && !il.has(e) ? (_e(
|
|
8273
8284
|
!1,
|
|
8274
8285
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
|
|
8275
8286
|
), null) : e;
|
|
8276
8287
|
}
|
|
8277
|
-
function
|
|
8288
|
+
function ll(e, n) {
|
|
8278
8289
|
let t, r, o, a, i;
|
|
8279
|
-
if (
|
|
8290
|
+
if (tl(e)) {
|
|
8280
8291
|
let l = e.getAttribute("action");
|
|
8281
|
-
r = l ?
|
|
8282
|
-
} else if (
|
|
8292
|
+
r = l ? Ae(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
|
|
8293
|
+
} else if (el(e) || nl(e) && (e.type === "submit" || e.type === "image")) {
|
|
8283
8294
|
let l = e.form;
|
|
8284
8295
|
if (l == null)
|
|
8285
8296
|
throw new Error(
|
|
8286
8297
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
8287
8298
|
);
|
|
8288
8299
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
8289
|
-
if (r = c ?
|
|
8300
|
+
if (r = c ? Ae(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), !al()) {
|
|
8290
8301
|
let { name: u, type: d, value: g } = e;
|
|
8291
8302
|
if (d === "image") {
|
|
8292
8303
|
let p = u ? `${u}.` : "";
|
|
@@ -8307,16 +8318,16 @@ function mn(e, n) {
|
|
|
8307
8318
|
if (e === !1 || e === null || typeof e > "u")
|
|
8308
8319
|
throw new Error(n);
|
|
8309
8320
|
}
|
|
8310
|
-
function
|
|
8321
|
+
function sl(e, n, t) {
|
|
8311
8322
|
let r = typeof e == "string" ? new URL(
|
|
8312
8323
|
e,
|
|
8313
8324
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
8314
8325
|
// don't assume window is available
|
|
8315
8326
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
8316
8327
|
) : e;
|
|
8317
|
-
return r.pathname === "/" ? r.pathname = `_root.${t}` : n &&
|
|
8328
|
+
return r.pathname === "/" ? r.pathname = `_root.${t}` : n && Ae(r.pathname, n) === "/" ? r.pathname = `${n.replace(/\/$/, "")}/_root.${t}` : r.pathname = `${r.pathname.replace(/\/$/, "")}.${t}`, r;
|
|
8318
8329
|
}
|
|
8319
|
-
async function
|
|
8330
|
+
async function cl(e, n) {
|
|
8320
8331
|
if (e.id in n)
|
|
8321
8332
|
return n[e.id];
|
|
8322
8333
|
try {
|
|
@@ -8333,22 +8344,22 @@ async function sl(e, n) {
|
|
|
8333
8344
|
});
|
|
8334
8345
|
}
|
|
8335
8346
|
}
|
|
8336
|
-
function
|
|
8347
|
+
function ul(e) {
|
|
8337
8348
|
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";
|
|
8338
8349
|
}
|
|
8339
|
-
async function
|
|
8350
|
+
async function dl(e, n, t) {
|
|
8340
8351
|
let r = await Promise.all(
|
|
8341
8352
|
e.map(async (o) => {
|
|
8342
8353
|
let a = n.routes[o.route.id];
|
|
8343
8354
|
if (a) {
|
|
8344
|
-
let i = await
|
|
8355
|
+
let i = await cl(a, t);
|
|
8345
8356
|
return i.links ? i.links() : [];
|
|
8346
8357
|
}
|
|
8347
8358
|
return [];
|
|
8348
8359
|
})
|
|
8349
8360
|
);
|
|
8350
|
-
return
|
|
8351
|
-
r.flat(1).filter(
|
|
8361
|
+
return gl(
|
|
8362
|
+
r.flat(1).filter(ul).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
8352
8363
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
8353
8364
|
)
|
|
8354
8365
|
);
|
|
@@ -8389,8 +8400,8 @@ function Qn(e, n, t, r, o, a) {
|
|
|
8389
8400
|
return !0;
|
|
8390
8401
|
}) : [];
|
|
8391
8402
|
}
|
|
8392
|
-
function
|
|
8393
|
-
return
|
|
8403
|
+
function pl(e, n, { includeHydrateFallback: t } = {}) {
|
|
8404
|
+
return fl(
|
|
8394
8405
|
e.map((r) => {
|
|
8395
8406
|
let o = n.routes[r.route.id];
|
|
8396
8407
|
if (!o) return [];
|
|
@@ -8399,19 +8410,19 @@ function dl(e, n, { includeHydrateFallback: t } = {}) {
|
|
|
8399
8410
|
}).flat(1)
|
|
8400
8411
|
);
|
|
8401
8412
|
}
|
|
8402
|
-
function
|
|
8413
|
+
function fl(e) {
|
|
8403
8414
|
return [...new Set(e)];
|
|
8404
8415
|
}
|
|
8405
|
-
function
|
|
8416
|
+
function ml(e) {
|
|
8406
8417
|
let n = {}, t = Object.keys(e).sort();
|
|
8407
8418
|
for (let r of t)
|
|
8408
8419
|
n[r] = e[r];
|
|
8409
8420
|
return n;
|
|
8410
8421
|
}
|
|
8411
|
-
function
|
|
8422
|
+
function gl(e, n) {
|
|
8412
8423
|
let t = /* @__PURE__ */ new Set();
|
|
8413
8424
|
return new Set(n), e.reduce((r, o) => {
|
|
8414
|
-
let a = JSON.stringify(
|
|
8425
|
+
let a = JSON.stringify(ml(o));
|
|
8415
8426
|
return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
|
|
8416
8427
|
}, []);
|
|
8417
8428
|
}
|
|
@@ -8422,7 +8433,7 @@ function zr() {
|
|
|
8422
8433
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
8423
8434
|
), e;
|
|
8424
8435
|
}
|
|
8425
|
-
function
|
|
8436
|
+
function vl() {
|
|
8426
8437
|
let e = R.useContext(xt);
|
|
8427
8438
|
return mn(
|
|
8428
8439
|
e,
|
|
@@ -8438,7 +8449,7 @@ function Tr() {
|
|
|
8438
8449
|
"You must render this element inside a <HydratedRouter> element"
|
|
8439
8450
|
), e;
|
|
8440
8451
|
}
|
|
8441
|
-
function
|
|
8452
|
+
function xl(e, n) {
|
|
8442
8453
|
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);
|
|
8443
8454
|
R.useEffect(() => {
|
|
8444
8455
|
if (e === "render" && i(!0), e === "viewport") {
|
|
@@ -8483,18 +8494,18 @@ function Ge(e, n) {
|
|
|
8483
8494
|
e && e(t), t.defaultPrevented || n(t);
|
|
8484
8495
|
};
|
|
8485
8496
|
}
|
|
8486
|
-
function
|
|
8497
|
+
function hl({ page: e, ...n }) {
|
|
8487
8498
|
let { router: t } = zr(), r = R.useMemo(
|
|
8488
8499
|
() => $r(t.routes, e, t.basename),
|
|
8489
8500
|
[t.routes, e, t.basename]
|
|
8490
8501
|
);
|
|
8491
|
-
return r ? /* @__PURE__ */ R.createElement(
|
|
8502
|
+
return r ? /* @__PURE__ */ R.createElement(wl, { page: e, matches: r, ...n }) : null;
|
|
8492
8503
|
}
|
|
8493
|
-
function
|
|
8504
|
+
function bl(e) {
|
|
8494
8505
|
let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
|
|
8495
8506
|
return R.useEffect(() => {
|
|
8496
8507
|
let a = !1;
|
|
8497
|
-
return
|
|
8508
|
+
return dl(e, n, t).then(
|
|
8498
8509
|
(i) => {
|
|
8499
8510
|
a || o(i);
|
|
8500
8511
|
}
|
|
@@ -8503,12 +8514,12 @@ function hl(e) {
|
|
|
8503
8514
|
};
|
|
8504
8515
|
}, [e, n, t]), r;
|
|
8505
8516
|
}
|
|
8506
|
-
function
|
|
8517
|
+
function wl({
|
|
8507
8518
|
page: e,
|
|
8508
8519
|
matches: n,
|
|
8509
8520
|
...t
|
|
8510
8521
|
}) {
|
|
8511
|
-
let r =
|
|
8522
|
+
let r = ze(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = vl(), u = R.useMemo(
|
|
8512
8523
|
() => Qn(
|
|
8513
8524
|
e,
|
|
8514
8525
|
n,
|
|
@@ -8538,7 +8549,7 @@ function bl({
|
|
|
8538
8549
|
!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));
|
|
8539
8550
|
}), v.size === 0)
|
|
8540
8551
|
return [];
|
|
8541
|
-
let b =
|
|
8552
|
+
let b = sl(e, i, "data");
|
|
8542
8553
|
return m && v.size > 0 && b.searchParams.set(
|
|
8543
8554
|
"_routes",
|
|
8544
8555
|
n.filter((h) => v.has(h.route.id)).map((h) => h.route.id).join(",")
|
|
@@ -8553,16 +8564,16 @@ function bl({
|
|
|
8553
8564
|
e,
|
|
8554
8565
|
a
|
|
8555
8566
|
]), p = R.useMemo(
|
|
8556
|
-
() =>
|
|
8567
|
+
() => pl(d, o),
|
|
8557
8568
|
[d, o]
|
|
8558
|
-
), f =
|
|
8569
|
+
), f = bl(d);
|
|
8559
8570
|
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 }) => (
|
|
8560
8571
|
// these don't spread `linkProps` because they are full link descriptors
|
|
8561
8572
|
// already with their own props
|
|
8562
8573
|
/* @__PURE__ */ R.createElement("link", { key: v, ...m })
|
|
8563
8574
|
)));
|
|
8564
8575
|
}
|
|
8565
|
-
function
|
|
8576
|
+
function yl(...e) {
|
|
8566
8577
|
return (n) => {
|
|
8567
8578
|
e.forEach((t) => {
|
|
8568
8579
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
@@ -8593,7 +8604,7 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8593
8604
|
let { basename: v } = R.useContext(Ee), m = typeof u == "string" && Ir.test(u), b, h = !1;
|
|
8594
8605
|
if (typeof u == "string" && m && (b = u, Or))
|
|
8595
8606
|
try {
|
|
8596
|
-
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae =
|
|
8607
|
+
let F = new URL(window.location.href), Z = u.startsWith("//") ? new URL(F.protocol + u) : new URL(u), ae = Ae(Z.pathname, v);
|
|
8597
8608
|
Z.origin === F.origin && ae != null ? u = ae + Z.search + Z.hash : h = !0;
|
|
8598
8609
|
} catch {
|
|
8599
8610
|
_e(
|
|
@@ -8601,10 +8612,10 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8601
8612
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
8602
8613
|
);
|
|
8603
8614
|
}
|
|
8604
|
-
let k =
|
|
8615
|
+
let k = Ti(u, { relative: o }), [w, $, y] = xl(
|
|
8605
8616
|
r,
|
|
8606
8617
|
p
|
|
8607
|
-
), O =
|
|
8618
|
+
), O = jl(u, {
|
|
8608
8619
|
replace: i,
|
|
8609
8620
|
state: l,
|
|
8610
8621
|
target: c,
|
|
@@ -8624,13 +8635,13 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8624
8635
|
...y,
|
|
8625
8636
|
href: b || k,
|
|
8626
8637
|
onClick: h || a ? n : D,
|
|
8627
|
-
ref:
|
|
8638
|
+
ref: yl(f, $),
|
|
8628
8639
|
target: c,
|
|
8629
8640
|
"data-discover": !m && t === "render" ? "true" : void 0
|
|
8630
8641
|
}
|
|
8631
8642
|
)
|
|
8632
8643
|
);
|
|
8633
|
-
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(
|
|
8644
|
+
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(hl, { page: k })) : V;
|
|
8634
8645
|
}
|
|
8635
8646
|
);
|
|
8636
8647
|
vn.displayName = "Link";
|
|
@@ -8646,10 +8657,10 @@ var Vr = R.forwardRef(
|
|
|
8646
8657
|
children: c,
|
|
8647
8658
|
...u
|
|
8648
8659
|
}, d) {
|
|
8649
|
-
let g = Ke(i, { relative: u.relative }), p =
|
|
8660
|
+
let g = Ke(i, { relative: u.relative }), p = ze(), 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
|
|
8650
8661
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8651
|
-
|
|
8652
|
-
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, h = h.toLowerCase()), w && m && (w =
|
|
8662
|
+
El(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;
|
|
8663
|
+
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, h = h.toLowerCase()), w && m && (w = Ae(w, m) || w);
|
|
8653
8664
|
const $ = h !== "/" && h.endsWith("/") ? h.length - 1 : h.length;
|
|
8654
8665
|
let y = k === h || !o && k.startsWith(h) && k.charAt($) === "/", O = w != null && (w === h || !o && w.startsWith(h) && w.charAt(h.length) === "/"), D = {
|
|
8655
8666
|
isActive: y,
|
|
@@ -8679,7 +8690,7 @@ var Vr = R.forwardRef(
|
|
|
8679
8690
|
}
|
|
8680
8691
|
);
|
|
8681
8692
|
Vr.displayName = "NavLink";
|
|
8682
|
-
var
|
|
8693
|
+
var Cl = R.forwardRef(
|
|
8683
8694
|
({
|
|
8684
8695
|
discover: e = "render",
|
|
8685
8696
|
fetcherKey: n,
|
|
@@ -8695,7 +8706,7 @@ var yl = R.forwardRef(
|
|
|
8695
8706
|
viewTransition: g,
|
|
8696
8707
|
...p
|
|
8697
8708
|
}, f) => {
|
|
8698
|
-
let v =
|
|
8709
|
+
let v = $l(), m = _l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", h = typeof l == "string" && Ir.test(l), k = (w) => {
|
|
8699
8710
|
if (c && c(w), w.defaultPrevented) return;
|
|
8700
8711
|
w.preventDefault();
|
|
8701
8712
|
let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
|
|
@@ -8723,15 +8734,15 @@ var yl = R.forwardRef(
|
|
|
8723
8734
|
);
|
|
8724
8735
|
}
|
|
8725
8736
|
);
|
|
8726
|
-
|
|
8727
|
-
function
|
|
8737
|
+
Cl.displayName = "Form";
|
|
8738
|
+
function Sl(e) {
|
|
8728
8739
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8729
8740
|
}
|
|
8730
8741
|
function Hr(e) {
|
|
8731
8742
|
let n = R.useContext(Ie);
|
|
8732
|
-
return xe(n,
|
|
8743
|
+
return xe(n, Sl(e)), n;
|
|
8733
8744
|
}
|
|
8734
|
-
function
|
|
8745
|
+
function jl(e, {
|
|
8735
8746
|
target: n,
|
|
8736
8747
|
replace: t,
|
|
8737
8748
|
state: r,
|
|
@@ -8739,10 +8750,10 @@ function Sl(e, {
|
|
|
8739
8750
|
relative: a,
|
|
8740
8751
|
viewTransition: i
|
|
8741
8752
|
} = {}) {
|
|
8742
|
-
let l =
|
|
8753
|
+
let l = Oi(), c = ze(), u = Ke(e, { relative: a });
|
|
8743
8754
|
return R.useCallback(
|
|
8744
8755
|
(d) => {
|
|
8745
|
-
if (
|
|
8756
|
+
if (ol(d, n)) {
|
|
8746
8757
|
d.preventDefault();
|
|
8747
8758
|
let g = t !== void 0 ? t : nn(c) === nn(u);
|
|
8748
8759
|
l(e, {
|
|
@@ -8768,20 +8779,20 @@ function Sl(e, {
|
|
|
8768
8779
|
]
|
|
8769
8780
|
);
|
|
8770
8781
|
}
|
|
8771
|
-
var
|
|
8772
|
-
function
|
|
8782
|
+
var Rl = 0, kl = () => `__${String(++Rl)}__`;
|
|
8783
|
+
function $l() {
|
|
8773
8784
|
let { router: e } = Hr(
|
|
8774
8785
|
"useSubmit"
|
|
8775
8786
|
/* UseSubmit */
|
|
8776
|
-
), { basename: n } = R.useContext(Ee), t =
|
|
8787
|
+
), { basename: n } = R.useContext(Ee), t = Ki();
|
|
8777
8788
|
return R.useCallback(
|
|
8778
8789
|
async (r, o = {}) => {
|
|
8779
|
-
let { action: a, method: i, encType: l, formData: c, body: u } =
|
|
8790
|
+
let { action: a, method: i, encType: l, formData: c, body: u } = ll(
|
|
8780
8791
|
r,
|
|
8781
8792
|
n
|
|
8782
8793
|
);
|
|
8783
8794
|
if (o.navigate === !1) {
|
|
8784
|
-
let d = o.fetcherKey ||
|
|
8795
|
+
let d = o.fetcherKey || kl();
|
|
8785
8796
|
await e.fetch(d, t, o.action || a, {
|
|
8786
8797
|
preventScrollReset: o.preventScrollReset,
|
|
8787
8798
|
formData: c,
|
|
@@ -8807,10 +8818,10 @@ function kl() {
|
|
|
8807
8818
|
[e, n, t]
|
|
8808
8819
|
);
|
|
8809
8820
|
}
|
|
8810
|
-
function
|
|
8821
|
+
function _l(e, { relative: n } = {}) {
|
|
8811
8822
|
let { basename: t } = R.useContext(Ee), r = R.useContext(Pe);
|
|
8812
8823
|
xe(r, "useFormAction must be used inside a RouteContext");
|
|
8813
|
-
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i =
|
|
8824
|
+
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = ze();
|
|
8814
8825
|
if (e == null) {
|
|
8815
8826
|
a.search = i.search;
|
|
8816
8827
|
let l = new URLSearchParams(a.search), c = l.getAll("index");
|
|
@@ -8822,7 +8833,7 @@ function $l(e, { relative: n } = {}) {
|
|
|
8822
8833
|
}
|
|
8823
8834
|
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);
|
|
8824
8835
|
}
|
|
8825
|
-
function
|
|
8836
|
+
function El(e, { relative: n } = {}) {
|
|
8826
8837
|
let t = R.useContext(Fr);
|
|
8827
8838
|
xe(
|
|
8828
8839
|
t != null,
|
|
@@ -8834,7 +8845,7 @@ function _l(e, { relative: n } = {}) {
|
|
|
8834
8845
|
), o = Ke(e, { relative: n });
|
|
8835
8846
|
if (!t.isTransitioning)
|
|
8836
8847
|
return !1;
|
|
8837
|
-
let a =
|
|
8848
|
+
let a = Ae(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Ae(t.nextLocation.pathname, r) || t.nextLocation.pathname;
|
|
8838
8849
|
return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
|
|
8839
8850
|
}
|
|
8840
8851
|
const cs = ({
|
|
@@ -8873,7 +8884,7 @@ const cs = ({
|
|
|
8873
8884
|
}
|
|
8874
8885
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8875
8886
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8876
|
-
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8887
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], ds = ({
|
|
8877
8888
|
mode: e = "single",
|
|
8878
8889
|
type: n = "inline",
|
|
8879
8890
|
showTime: t = !1,
|
|
@@ -9042,7 +9053,7 @@ const cs = ({
|
|
|
9042
9053
|
)
|
|
9043
9054
|
] }),
|
|
9044
9055
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
|
|
9045
|
-
|
|
9056
|
+
Pl.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
|
|
9046
9057
|
z().map((S, j) => /* @__PURE__ */ s.jsx(
|
|
9047
9058
|
"div",
|
|
9048
9059
|
{
|
|
@@ -9096,7 +9107,7 @@ const cs = ({
|
|
|
9096
9107
|
]
|
|
9097
9108
|
}
|
|
9098
9109
|
),
|
|
9099
|
-
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(
|
|
9110
|
+
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(ci, { open: g, title: r ? "Select Time" : i, onClose: X, children: /* @__PURE__ */ s.jsx("div", { className: "w-72", children: q }) })
|
|
9100
9111
|
] });
|
|
9101
9112
|
}, ps = ({
|
|
9102
9113
|
tabs: e,
|
|
@@ -9148,7 +9159,7 @@ const cs = ({
|
|
|
9148
9159
|
}, fs = ({
|
|
9149
9160
|
stats: e = [],
|
|
9150
9161
|
className: n = ""
|
|
9151
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
9162
|
+
}) => /* @__PURE__ */ s.jsx(ii, { 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(
|
|
9152
9163
|
"div",
|
|
9153
9164
|
{
|
|
9154
9165
|
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
|
|
@@ -9183,7 +9194,7 @@ function ms({
|
|
|
9183
9194
|
c(d), d.onClick && d.onClick(), i && i(d);
|
|
9184
9195
|
};
|
|
9185
9196
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9186
|
-
|
|
9197
|
+
di,
|
|
9187
9198
|
{
|
|
9188
9199
|
open: o,
|
|
9189
9200
|
onClose: a,
|
|
@@ -9235,51 +9246,51 @@ export {
|
|
|
9235
9246
|
as as ActionMenu,
|
|
9236
9247
|
ls as Alert,
|
|
9237
9248
|
xr as Avatar,
|
|
9238
|
-
|
|
9249
|
+
Gl as Backdrop,
|
|
9239
9250
|
ss as Badge,
|
|
9240
9251
|
cs as BottomNavigation,
|
|
9241
9252
|
us as Breadcrumbs,
|
|
9242
9253
|
Gt as Button,
|
|
9243
9254
|
ve as COLOR_MAP,
|
|
9244
|
-
|
|
9245
|
-
|
|
9255
|
+
ii as Card,
|
|
9256
|
+
Nl as CardWrapper,
|
|
9246
9257
|
Xl as Carousel,
|
|
9247
|
-
|
|
9258
|
+
Dl as Checkbox,
|
|
9248
9259
|
fs as DashboardStatBoxes,
|
|
9249
9260
|
ds as DatePicker,
|
|
9250
|
-
|
|
9261
|
+
ci as Dialog,
|
|
9251
9262
|
ts as Divider,
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9263
|
+
di as Drawer,
|
|
9264
|
+
zl as Dropdown,
|
|
9265
|
+
Tl as DropzoneUploader,
|
|
9255
9266
|
Jl as EmptyState,
|
|
9256
9267
|
Re as IconButton,
|
|
9257
|
-
|
|
9258
|
-
|
|
9268
|
+
Bl as List,
|
|
9269
|
+
ql as ListItem,
|
|
9259
9270
|
oa as Menu,
|
|
9260
9271
|
sa as OtpInput,
|
|
9261
9272
|
ni as Pagination,
|
|
9262
9273
|
da as PasswordInput,
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9274
|
+
Ol as Pill,
|
|
9275
|
+
Il as ProfileImageShowcase,
|
|
9276
|
+
oi as Progress,
|
|
9266
9277
|
qt as RANGE_COLOR_MAP,
|
|
9267
9278
|
ns as RadioGroup,
|
|
9268
9279
|
Kl as Rating,
|
|
9269
9280
|
rs as Select,
|
|
9270
9281
|
ms as Sidebar,
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9282
|
+
Wl as Skeleton,
|
|
9283
|
+
Yl as Slider,
|
|
9284
|
+
Zl as Snackbar,
|
|
9285
|
+
Vl as Stepper,
|
|
9286
|
+
Hl as Table,
|
|
9276
9287
|
ps as Tabs,
|
|
9277
|
-
|
|
9288
|
+
Ul as TextArea,
|
|
9278
9289
|
vr as TextInput,
|
|
9279
9290
|
es as ToggleButton,
|
|
9280
9291
|
Ql as ToggleSwitch,
|
|
9281
9292
|
os as Tooltip,
|
|
9282
9293
|
ti as Typography,
|
|
9283
|
-
|
|
9284
|
-
|
|
9294
|
+
Fl as extendColorMap,
|
|
9295
|
+
Al as extendRangeColorMap
|
|
9285
9296
|
};
|