@unizap/uniui 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Typography/Typography.types.d.ts +2 -1
- package/dist/uniui.css +1 -1
- package/dist/uniui.js +224 -231
- package/dist/uniui.umd.cjs +17 -17
- package/package.json +94 -94
package/dist/uniui.js
CHANGED
|
@@ -432,7 +432,7 @@ const ve = {
|
|
|
432
432
|
accent: "accent-color-rose-500",
|
|
433
433
|
peer: "peer-checked:border-color-rose-500 peer-checked:text-color-rose-500"
|
|
434
434
|
}
|
|
435
|
-
},
|
|
435
|
+
}, Ll = (e) => {
|
|
436
436
|
Object.assign(ve, e);
|
|
437
437
|
}, qt = {
|
|
438
438
|
dark: {
|
|
@@ -582,7 +582,7 @@ const ve = {
|
|
|
582
582
|
thumbHover: "hover:bg-color-rose-600",
|
|
583
583
|
thumbActive: "active:bg-color-rose-700"
|
|
584
584
|
}
|
|
585
|
-
},
|
|
585
|
+
}, Fl = (e) => {
|
|
586
586
|
Object.assign(qt, e);
|
|
587
587
|
}, Gt = ({
|
|
588
588
|
title: e,
|
|
@@ -656,7 +656,7 @@ const ve = {
|
|
|
656
656
|
]
|
|
657
657
|
}
|
|
658
658
|
) });
|
|
659
|
-
},
|
|
659
|
+
}, Al = ({
|
|
660
660
|
children: e,
|
|
661
661
|
className: n = "",
|
|
662
662
|
border: t = !0
|
|
@@ -670,7 +670,7 @@ const ve = {
|
|
|
670
670
|
`,
|
|
671
671
|
children: e
|
|
672
672
|
}
|
|
673
|
-
),
|
|
673
|
+
), Nl = ({
|
|
674
674
|
label: e,
|
|
675
675
|
checked: n = !1,
|
|
676
676
|
disabled: t = !1,
|
|
@@ -714,7 +714,7 @@ const ve = {
|
|
|
714
714
|
e && /* @__PURE__ */ s.jsx("span", { className: `text-sm text-color-gray-700 ${a}`, children: e })
|
|
715
715
|
]
|
|
716
716
|
}
|
|
717
|
-
),
|
|
717
|
+
), Dl = ({
|
|
718
718
|
selected: e,
|
|
719
719
|
items: n = [],
|
|
720
720
|
className: t = "",
|
|
@@ -3577,7 +3577,7 @@ function ra(e, n) {
|
|
|
3577
3577
|
}
|
|
3578
3578
|
function Vn() {
|
|
3579
3579
|
}
|
|
3580
|
-
const
|
|
3580
|
+
const zl = ({
|
|
3581
3581
|
onFilesAccepted: e,
|
|
3582
3582
|
onError: n,
|
|
3583
3583
|
accept: t = {
|
|
@@ -3988,7 +3988,7 @@ const hr = ({
|
|
|
3988
3988
|
small: "!w-4 !h-4 text-xs",
|
|
3989
3989
|
medium: "!w-5 !h-5 text-sm",
|
|
3990
3990
|
large: "!w-6 !h-6 text-base"
|
|
3991
|
-
},
|
|
3991
|
+
}, Tl = ({
|
|
3992
3992
|
label: e,
|
|
3993
3993
|
color: n = "blue",
|
|
3994
3994
|
variant: t = "filled",
|
|
@@ -4039,7 +4039,7 @@ const hr = ({
|
|
|
4039
4039
|
children: b
|
|
4040
4040
|
}
|
|
4041
4041
|
);
|
|
4042
|
-
},
|
|
4042
|
+
}, Ol = ({
|
|
4043
4043
|
size: e,
|
|
4044
4044
|
imageUrl: n,
|
|
4045
4045
|
name: t = "User",
|
|
@@ -4051,7 +4051,7 @@ const hr = ({
|
|
|
4051
4051
|
/* @__PURE__ */ s.jsx("span", { className: "text-sm font-medium text-color-gray-800", children: t }),
|
|
4052
4052
|
/* @__PURE__ */ s.jsx("span", { className: "text-xs text-color-gray-600", children: r })
|
|
4053
4053
|
] })
|
|
4054
|
-
] }),
|
|
4054
|
+
] }), Il = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
|
|
4055
4055
|
const i = a === n, l = a < n;
|
|
4056
4056
|
return /* @__PURE__ */ s.jsxs(Pe.Fragment, { children: [
|
|
4057
4057
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -5755,21 +5755,14 @@ const ei = {
|
|
|
5755
5755
|
body2: "text-sm",
|
|
5756
5756
|
caption: "text-xs",
|
|
5757
5757
|
overline: "text-xs uppercase tracking-wide"
|
|
5758
|
-
}, ti = {
|
|
5759
|
-
default: "text-color-gray-800",
|
|
5760
|
-
primary: "text-color-primary",
|
|
5761
|
-
secondary: "text-color-secondary",
|
|
5762
|
-
accent: "text-color-accent",
|
|
5763
|
-
muted: "text-color-gray-400",
|
|
5764
|
-
error: "text-color-red-500",
|
|
5765
|
-
success: "text-color-green-500"
|
|
5766
|
-
}, ni = ({
|
|
5758
|
+
}, ti = ({
|
|
5767
5759
|
variant: e = "body1",
|
|
5768
5760
|
component: n,
|
|
5769
5761
|
className: t = "",
|
|
5770
5762
|
children: r,
|
|
5771
|
-
color: o = ""
|
|
5763
|
+
color: o = "dark"
|
|
5772
5764
|
}) => {
|
|
5765
|
+
var l;
|
|
5773
5766
|
const i = n || {
|
|
5774
5767
|
h1: "h1",
|
|
5775
5768
|
h2: "h2",
|
|
@@ -5784,8 +5777,8 @@ const ei = {
|
|
|
5784
5777
|
caption: "span",
|
|
5785
5778
|
overline: "span"
|
|
5786
5779
|
}[e] || "p";
|
|
5787
|
-
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${
|
|
5788
|
-
},
|
|
5780
|
+
return /* @__PURE__ */ s.jsx(i, { className: `${ei[e]} ${(l = ve[o]) == null ? void 0 : l.transparent} ${t}`, children: r });
|
|
5781
|
+
}, ni = ({
|
|
5789
5782
|
total: e,
|
|
5790
5783
|
currentPage: n,
|
|
5791
5784
|
pageSize: t = 10,
|
|
@@ -5850,7 +5843,7 @@ const ei = {
|
|
|
5850
5843
|
}
|
|
5851
5844
|
)
|
|
5852
5845
|
] });
|
|
5853
|
-
},
|
|
5846
|
+
}, Vl = ({
|
|
5854
5847
|
data: e,
|
|
5855
5848
|
columns: n = [],
|
|
5856
5849
|
pageSize: t,
|
|
@@ -5895,7 +5888,7 @@ const ei = {
|
|
|
5895
5888
|
] }),
|
|
5896
5889
|
/* @__PURE__ */ s.jsxs("div", { className: `w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`, children: [
|
|
5897
5890
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
5898
|
-
/* @__PURE__ */ s.jsx(
|
|
5891
|
+
/* @__PURE__ */ s.jsx(ti, { variant: "body2", className: "hidden md:!flex", children: "Rows per page" }),
|
|
5899
5892
|
/* @__PURE__ */ s.jsx(
|
|
5900
5893
|
oa,
|
|
5901
5894
|
{
|
|
@@ -5909,7 +5902,7 @@ const ei = {
|
|
|
5909
5902
|
)
|
|
5910
5903
|
] }),
|
|
5911
5904
|
/* @__PURE__ */ s.jsx(
|
|
5912
|
-
|
|
5905
|
+
ni,
|
|
5913
5906
|
{
|
|
5914
5907
|
total: l,
|
|
5915
5908
|
pageSize: t,
|
|
@@ -5919,10 +5912,10 @@ const ei = {
|
|
|
5919
5912
|
)
|
|
5920
5913
|
] })
|
|
5921
5914
|
] }) });
|
|
5922
|
-
},
|
|
5915
|
+
}, 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: [
|
|
5923
5916
|
/* @__PURE__ */ s.jsx("div", { className: "flex-1", children: e }),
|
|
5924
5917
|
n && /* @__PURE__ */ s.jsx("div", { className: "ml-4", children: n })
|
|
5925
|
-
] }),
|
|
5918
|
+
] }), ql = ({
|
|
5926
5919
|
animation: e = "pulse",
|
|
5927
5920
|
variant: n = "rectangular",
|
|
5928
5921
|
width: t,
|
|
@@ -5992,7 +5985,7 @@ const ei = {
|
|
|
5992
5985
|
}
|
|
5993
5986
|
` })
|
|
5994
5987
|
] }) });
|
|
5995
|
-
},
|
|
5988
|
+
}, Gl = ({
|
|
5996
5989
|
label: e,
|
|
5997
5990
|
error: n,
|
|
5998
5991
|
className: t = "",
|
|
@@ -6014,7 +6007,7 @@ const ei = {
|
|
|
6014
6007
|
medium: { track: "h-2", thumb: "w-4 h-4" },
|
|
6015
6008
|
large: { track: "h-3", thumb: "w-5 h-5" }
|
|
6016
6009
|
};
|
|
6017
|
-
function
|
|
6010
|
+
function ri(e) {
|
|
6018
6011
|
const n = se(null), t = se(null), r = se(null), o = (c, u) => {
|
|
6019
6012
|
if (c === u) return !0;
|
|
6020
6013
|
if (Array.isArray(c) && Array.isArray(u)) {
|
|
@@ -6040,7 +6033,7 @@ function oi(e) {
|
|
|
6040
6033
|
}, []);
|
|
6041
6034
|
return { schedule: i, flush: a, cancel: l, last: t };
|
|
6042
6035
|
}
|
|
6043
|
-
const
|
|
6036
|
+
const Wl = Zr(function({
|
|
6044
6037
|
/** controlled */
|
|
6045
6038
|
value: n,
|
|
6046
6039
|
/** uncontrolled */
|
|
@@ -6064,7 +6057,7 @@ const Ul = Zr(function({
|
|
|
6064
6057
|
const x = n !== void 0, [k, w] = K(() => t !== void 0 ? t : m ? [a, i] : a), $ = x ? n : k, y = Array.isArray($) ? $[0] : $, [O, D] = Array.isArray($) ? $ : [$, $], V = qt[c] || qt.blue, F = Gn[u] ?? Gn.medium, Z = oe(
|
|
6065
6058
|
(_) => (_ - a) / (i - a) * 100,
|
|
6066
6059
|
[a, i]
|
|
6067
|
-
), ae = Z(y), ue = Z(O), Q = Z(D), H = oe((_) => Math.max(a, Math.min(i, _)), [a, i]), Y = oe((_) => Math.round(_ / l) * l, [l]), T =
|
|
6060
|
+
), ae = Z(y), ue = Z(O), Q = Z(D), H = oe((_) => Math.max(a, Math.min(i, _)), [a, i]), Y = oe((_) => Math.round(_ / l) * l, [l]), T = ri(r), te = oe(
|
|
6068
6061
|
(_, J = !0) => {
|
|
6069
6062
|
x || w(_), J ? T.schedule(_) : T.flush(_);
|
|
6070
6063
|
},
|
|
@@ -6336,7 +6329,7 @@ const Ul = Zr(function({
|
|
|
6336
6329
|
] }),
|
|
6337
6330
|
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 }) })
|
|
6338
6331
|
] }) });
|
|
6339
|
-
}),
|
|
6332
|
+
}), Ul = ({
|
|
6340
6333
|
open: e = !1,
|
|
6341
6334
|
message: n,
|
|
6342
6335
|
autoHideDuration: t = 4e3,
|
|
@@ -6418,7 +6411,7 @@ const Ul = Zr(function({
|
|
|
6418
6411
|
}
|
|
6419
6412
|
)
|
|
6420
6413
|
] }) : null;
|
|
6421
|
-
},
|
|
6414
|
+
}, Yl = ({
|
|
6422
6415
|
variant: e = "linear",
|
|
6423
6416
|
value: n = 0,
|
|
6424
6417
|
color: t = "blue",
|
|
@@ -6518,7 +6511,7 @@ const Ul = Zr(function({
|
|
|
6518
6511
|
small: "w-4 h-4",
|
|
6519
6512
|
medium: "w-6 h-6",
|
|
6520
6513
|
large: "w-8 h-8"
|
|
6521
|
-
},
|
|
6514
|
+
}, Zl = ({
|
|
6522
6515
|
value: e,
|
|
6523
6516
|
onChange: n,
|
|
6524
6517
|
readOnly: t = !1,
|
|
@@ -6587,7 +6580,7 @@ const Ul = Zr(function({
|
|
|
6587
6580
|
k,
|
|
6588
6581
|
d && f !== null ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[f] || f }) : g ? /* @__PURE__ */ s.jsx("span", { className: "ml-2 text-xs text-gray-500", children: p[e] || e }) : null
|
|
6589
6582
|
] });
|
|
6590
|
-
},
|
|
6583
|
+
}, Kl = ({
|
|
6591
6584
|
children: e,
|
|
6592
6585
|
width: n = "100%",
|
|
6593
6586
|
height: t = "auto",
|
|
@@ -6776,7 +6769,7 @@ const Ul = Zr(function({
|
|
|
6776
6769
|
]
|
|
6777
6770
|
}
|
|
6778
6771
|
);
|
|
6779
|
-
},
|
|
6772
|
+
}, Xl = ({
|
|
6780
6773
|
title: e,
|
|
6781
6774
|
description: n,
|
|
6782
6775
|
actionLabel: t,
|
|
@@ -6809,7 +6802,7 @@ const Ul = Zr(function({
|
|
|
6809
6802
|
i
|
|
6810
6803
|
]
|
|
6811
6804
|
}
|
|
6812
|
-
),
|
|
6805
|
+
), Jl = ({
|
|
6813
6806
|
initialState: e = !1,
|
|
6814
6807
|
onToggle: n,
|
|
6815
6808
|
disabled: t = !1,
|
|
@@ -6868,11 +6861,11 @@ const Ul = Zr(function({
|
|
|
6868
6861
|
)
|
|
6869
6862
|
}
|
|
6870
6863
|
);
|
|
6871
|
-
},
|
|
6864
|
+
}, oi = {
|
|
6872
6865
|
small: "px-2 py-1 text-sm",
|
|
6873
6866
|
medium: "px-4 py-2 text-base",
|
|
6874
6867
|
large: "px-6 py-3 text-lg"
|
|
6875
|
-
},
|
|
6868
|
+
}, Ql = ({
|
|
6876
6869
|
value: e,
|
|
6877
6870
|
onChange: n,
|
|
6878
6871
|
options: t,
|
|
@@ -6907,7 +6900,7 @@ const Ul = Zr(function({
|
|
|
6907
6900
|
disabled: u || p.disabled,
|
|
6908
6901
|
className: `
|
|
6909
6902
|
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
|
|
6910
|
-
${
|
|
6903
|
+
${oi[o]}
|
|
6911
6904
|
${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
|
|
6912
6905
|
${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
|
|
6913
6906
|
${c}
|
|
@@ -6938,7 +6931,7 @@ const Ul = Zr(function({
|
|
|
6938
6931
|
small: "rounded-md",
|
|
6939
6932
|
medium: "rounded-xl",
|
|
6940
6933
|
large: "rounded-2xl"
|
|
6941
|
-
},
|
|
6934
|
+
}, ai = ({
|
|
6942
6935
|
title: e,
|
|
6943
6936
|
subtitle: n,
|
|
6944
6937
|
space: t = "medium",
|
|
@@ -6980,7 +6973,7 @@ const Ul = Zr(function({
|
|
|
6980
6973
|
/* @__PURE__ */ s.jsx("div", { children: c }),
|
|
6981
6974
|
f && /* @__PURE__ */ s.jsx("div", { className: "absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50", children: f })
|
|
6982
6975
|
] });
|
|
6983
|
-
},
|
|
6976
|
+
}, es = ({
|
|
6984
6977
|
orientation: e = "horizontal",
|
|
6985
6978
|
variant: n = "fullWidth",
|
|
6986
6979
|
children: t,
|
|
@@ -7017,7 +7010,7 @@ const Ul = Zr(function({
|
|
|
7017
7010
|
${n === "inset" ? o ? "pl-4" : "pt-4" : ""} ${a}`
|
|
7018
7011
|
}
|
|
7019
7012
|
);
|
|
7020
|
-
},
|
|
7013
|
+
}, ts = ({
|
|
7021
7014
|
name: e,
|
|
7022
7015
|
options: n,
|
|
7023
7016
|
selectedValue: t,
|
|
@@ -7058,7 +7051,7 @@ const Ul = Zr(function({
|
|
|
7058
7051
|
},
|
|
7059
7052
|
d
|
|
7060
7053
|
);
|
|
7061
|
-
}) }),
|
|
7054
|
+
}) }), ns = ({
|
|
7062
7055
|
label: e,
|
|
7063
7056
|
value: n,
|
|
7064
7057
|
onChange: t,
|
|
@@ -7099,7 +7092,7 @@ const Ul = Zr(function({
|
|
|
7099
7092
|
/* @__PURE__ */ s.jsx("span", { className: `absolute right-3 text-sm top-1/2 -translate-y-1/2 ${i ? "opacity-60" : ""}`, children: /* @__PURE__ */ s.jsx("svg", { className: "size-4", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ s.jsx("path", { d: "M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z" }) }) })
|
|
7100
7093
|
] })
|
|
7101
7094
|
] });
|
|
7102
|
-
},
|
|
7095
|
+
}, rs = ({
|
|
7103
7096
|
content: e,
|
|
7104
7097
|
children: n,
|
|
7105
7098
|
position: t = "top"
|
|
@@ -7150,10 +7143,10 @@ const Ul = Zr(function({
|
|
|
7150
7143
|
)
|
|
7151
7144
|
] });
|
|
7152
7145
|
};
|
|
7153
|
-
function
|
|
7146
|
+
function ii(...e) {
|
|
7154
7147
|
return e.filter(Boolean).join(" ");
|
|
7155
7148
|
}
|
|
7156
|
-
const
|
|
7149
|
+
const li = {
|
|
7157
7150
|
sm: "max-w-sm",
|
|
7158
7151
|
md: "max-w-md",
|
|
7159
7152
|
lg: "max-w-lg",
|
|
@@ -7161,7 +7154,7 @@ const si = {
|
|
|
7161
7154
|
"2xl": "max-w-2xl",
|
|
7162
7155
|
"4xl": "max-w-4xl",
|
|
7163
7156
|
"6xl": "max-w-6xl"
|
|
7164
|
-
},
|
|
7157
|
+
}, si = Ye(
|
|
7165
7158
|
({
|
|
7166
7159
|
open: e,
|
|
7167
7160
|
onClose: n,
|
|
@@ -7200,7 +7193,7 @@ const si = {
|
|
|
7200
7193
|
/* @__PURE__ */ s.jsxs(
|
|
7201
7194
|
"div",
|
|
7202
7195
|
{
|
|
7203
|
-
className:
|
|
7196
|
+
className: ii(
|
|
7204
7197
|
"fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
|
|
7205
7198
|
m ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7206
7199
|
),
|
|
@@ -7217,7 +7210,7 @@ const si = {
|
|
|
7217
7210
|
/* @__PURE__ */ s.jsxs(
|
|
7218
7211
|
"div",
|
|
7219
7212
|
{
|
|
7220
|
-
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 ?
|
|
7213
|
+
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}`,
|
|
7221
7214
|
onTransitionEnd: x,
|
|
7222
7215
|
children: [
|
|
7223
7216
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
|
|
@@ -7248,7 +7241,7 @@ const si = {
|
|
|
7248
7241
|
) : null;
|
|
7249
7242
|
}
|
|
7250
7243
|
);
|
|
7251
|
-
function
|
|
7244
|
+
function os({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
7252
7245
|
const [o, a] = K(!1), [i, l] = K({ top: 0, left: 0 }), [c, u] = K(!1), d = se(null), g = se(null), p = (v) => {
|
|
7253
7246
|
v.stopPropagation(), a((m) => !m), u(!1);
|
|
7254
7247
|
};
|
|
@@ -7301,10 +7294,10 @@ function as({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
|
|
|
7301
7294
|
o && Ze(f, document.body)
|
|
7302
7295
|
] });
|
|
7303
7296
|
}
|
|
7304
|
-
function
|
|
7297
|
+
function ci(...e) {
|
|
7305
7298
|
return e.filter(Boolean).join(" ");
|
|
7306
7299
|
}
|
|
7307
|
-
const
|
|
7300
|
+
const ui = ({
|
|
7308
7301
|
open: e,
|
|
7309
7302
|
onClose: n,
|
|
7310
7303
|
className: t,
|
|
@@ -7348,7 +7341,7 @@ const di = ({
|
|
|
7348
7341
|
/* @__PURE__ */ s.jsxs(
|
|
7349
7342
|
"div",
|
|
7350
7343
|
{
|
|
7351
|
-
className:
|
|
7344
|
+
className: ci(
|
|
7352
7345
|
"fixed inset-0 z-50 transition-opacity duration-300",
|
|
7353
7346
|
g ? "opacity-100" : "opacity-0 pointer-events-none"
|
|
7354
7347
|
),
|
|
@@ -7388,7 +7381,7 @@ const di = ({
|
|
|
7388
7381
|
),
|
|
7389
7382
|
document.body
|
|
7390
7383
|
);
|
|
7391
|
-
},
|
|
7384
|
+
}, as = ({
|
|
7392
7385
|
title: e,
|
|
7393
7386
|
content: n,
|
|
7394
7387
|
expandIcon: t,
|
|
@@ -7426,25 +7419,25 @@ const di = ({
|
|
|
7426
7419
|
),
|
|
7427
7420
|
/* @__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 }) }) })
|
|
7428
7421
|
] });
|
|
7429
|
-
},
|
|
7422
|
+
}, di = {
|
|
7430
7423
|
info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
|
|
7431
7424
|
success: "bg-color-green-50 border-color-green-300 text-color-green-800",
|
|
7432
7425
|
danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
|
|
7433
7426
|
warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
|
|
7434
7427
|
dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
|
|
7435
|
-
},
|
|
7428
|
+
}, pi = {
|
|
7436
7429
|
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" }) }),
|
|
7437
7430
|
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" }) }),
|
|
7438
7431
|
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" }) }),
|
|
7439
7432
|
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" }) }),
|
|
7440
7433
|
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" }) })
|
|
7441
|
-
},
|
|
7434
|
+
}, fi = {
|
|
7442
7435
|
info: "bg-color-blue-500",
|
|
7443
7436
|
success: "bg-color-green-500",
|
|
7444
7437
|
danger: "bg-color-red-500",
|
|
7445
7438
|
warning: "bg-color-yellow-500",
|
|
7446
7439
|
dark: "bg-color-gray-700"
|
|
7447
|
-
},
|
|
7440
|
+
}, is = ({
|
|
7448
7441
|
message: e,
|
|
7449
7442
|
variant: n = "info",
|
|
7450
7443
|
onClose: t,
|
|
@@ -7463,10 +7456,10 @@ const di = ({
|
|
|
7463
7456
|
}, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
|
|
7464
7457
|
"div",
|
|
7465
7458
|
{
|
|
7466
|
-
className: `relative border-t-4 p-4 flex items-start justify-between ${
|
|
7459
|
+
className: `relative border-t-4 p-4 flex items-start justify-between ${di[n]} ${o}`,
|
|
7467
7460
|
children: [
|
|
7468
7461
|
/* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
7469
|
-
|
|
7462
|
+
pi[n],
|
|
7470
7463
|
/* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
|
|
7471
7464
|
] }),
|
|
7472
7465
|
/* @__PURE__ */ s.jsx(
|
|
@@ -7484,14 +7477,14 @@ const di = ({
|
|
|
7484
7477
|
"div",
|
|
7485
7478
|
{
|
|
7486
7479
|
ref: c,
|
|
7487
|
-
className: `${
|
|
7480
|
+
className: `${fi[n]} h-1`,
|
|
7488
7481
|
style: { width: "100%" }
|
|
7489
7482
|
}
|
|
7490
7483
|
) })
|
|
7491
7484
|
]
|
|
7492
7485
|
}
|
|
7493
7486
|
) : null;
|
|
7494
|
-
},
|
|
7487
|
+
}, ls = ({
|
|
7495
7488
|
children: e,
|
|
7496
7489
|
count: n,
|
|
7497
7490
|
showDot: t = !1,
|
|
@@ -7577,18 +7570,18 @@ function cn(e) {
|
|
|
7577
7570
|
return n;
|
|
7578
7571
|
}
|
|
7579
7572
|
function $r(e, n, t = "/") {
|
|
7580
|
-
return
|
|
7573
|
+
return mi(e, n, t, !1);
|
|
7581
7574
|
}
|
|
7582
|
-
function
|
|
7575
|
+
function mi(e, n, t, r) {
|
|
7583
7576
|
let o = typeof n == "string" ? cn(n) : n, a = Fe(o.pathname || "/", t);
|
|
7584
7577
|
if (a == null)
|
|
7585
7578
|
return null;
|
|
7586
7579
|
let i = _r(e);
|
|
7587
|
-
|
|
7580
|
+
gi(i);
|
|
7588
7581
|
let l = null;
|
|
7589
7582
|
for (let c = 0; l == null && c < i.length; ++c) {
|
|
7590
|
-
let u =
|
|
7591
|
-
l =
|
|
7583
|
+
let u = ki(a);
|
|
7584
|
+
l = ji(
|
|
7592
7585
|
i[c],
|
|
7593
7586
|
u,
|
|
7594
7587
|
r
|
|
@@ -7616,7 +7609,7 @@ function _r(e, n = [], t = [], r = "") {
|
|
|
7616
7609
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
7617
7610
|
), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
|
|
7618
7611
|
path: u,
|
|
7619
|
-
score:
|
|
7612
|
+
score: Ci(u, a.index),
|
|
7620
7613
|
routesMeta: d
|
|
7621
7614
|
});
|
|
7622
7615
|
};
|
|
@@ -7644,23 +7637,23 @@ function Er(e) {
|
|
|
7644
7637
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
7645
7638
|
);
|
|
7646
7639
|
}
|
|
7647
|
-
function
|
|
7640
|
+
function gi(e) {
|
|
7648
7641
|
e.sort(
|
|
7649
|
-
(n, t) => n.score !== t.score ? t.score - n.score :
|
|
7642
|
+
(n, t) => n.score !== t.score ? t.score - n.score : Si(
|
|
7650
7643
|
n.routesMeta.map((r) => r.childrenIndex),
|
|
7651
7644
|
t.routesMeta.map((r) => r.childrenIndex)
|
|
7652
7645
|
)
|
|
7653
7646
|
);
|
|
7654
7647
|
}
|
|
7655
|
-
var
|
|
7656
|
-
function
|
|
7648
|
+
var vi = /^:[\w-]+$/, hi = 3, xi = 2, bi = 1, wi = 10, yi = -2, Xn = (e) => e === "*";
|
|
7649
|
+
function Ci(e, n) {
|
|
7657
7650
|
let t = e.split("/"), r = t.length;
|
|
7658
|
-
return t.some(Xn) && (r +=
|
|
7659
|
-
(o, a) => o + (
|
|
7651
|
+
return t.some(Xn) && (r += yi), n && (r += xi), t.filter((o) => !Xn(o)).reduce(
|
|
7652
|
+
(o, a) => o + (vi.test(a) ? hi : a === "" ? bi : wi),
|
|
7660
7653
|
r
|
|
7661
7654
|
);
|
|
7662
7655
|
}
|
|
7663
|
-
function
|
|
7656
|
+
function Si(e, n) {
|
|
7664
7657
|
return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
|
|
7665
7658
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
7666
7659
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -7673,7 +7666,7 @@ function ji(e, n) {
|
|
|
7673
7666
|
0
|
|
7674
7667
|
);
|
|
7675
7668
|
}
|
|
7676
|
-
function
|
|
7669
|
+
function ji(e, n, t = !1) {
|
|
7677
7670
|
let { routesMeta: r } = e, o = {}, a = "/", i = [];
|
|
7678
7671
|
for (let l = 0; l < r.length; ++l) {
|
|
7679
7672
|
let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
|
|
@@ -7693,7 +7686,7 @@ function Ri(e, n, t = !1) {
|
|
|
7693
7686
|
// TODO: Can this as be avoided?
|
|
7694
7687
|
params: o,
|
|
7695
7688
|
pathname: ke([a, g.pathname]),
|
|
7696
|
-
pathnameBase:
|
|
7689
|
+
pathnameBase: Pi(
|
|
7697
7690
|
ke([a, g.pathnameBase])
|
|
7698
7691
|
),
|
|
7699
7692
|
route: p
|
|
@@ -7703,7 +7696,7 @@ function Ri(e, n, t = !1) {
|
|
|
7703
7696
|
}
|
|
7704
7697
|
function gt(e, n) {
|
|
7705
7698
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
7706
|
-
let [t, r] =
|
|
7699
|
+
let [t, r] = Ri(
|
|
7707
7700
|
e.path,
|
|
7708
7701
|
e.caseSensitive,
|
|
7709
7702
|
e.end
|
|
@@ -7727,7 +7720,7 @@ function gt(e, n) {
|
|
|
7727
7720
|
pattern: e
|
|
7728
7721
|
};
|
|
7729
7722
|
}
|
|
7730
|
-
function
|
|
7723
|
+
function Ri(e, n = !1, t = !0) {
|
|
7731
7724
|
$e(
|
|
7732
7725
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
7733
7726
|
`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(/\*$/, "/*")}".`
|
|
@@ -7738,7 +7731,7 @@ function ki(e, n = !1, t = !0) {
|
|
|
7738
7731
|
);
|
|
7739
7732
|
return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
|
|
7740
7733
|
}
|
|
7741
|
-
function
|
|
7734
|
+
function ki(e) {
|
|
7742
7735
|
try {
|
|
7743
7736
|
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
7744
7737
|
} catch (n) {
|
|
@@ -7755,19 +7748,19 @@ function Fe(e, n) {
|
|
|
7755
7748
|
let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
|
|
7756
7749
|
return r && r !== "/" ? null : e.slice(t) || "/";
|
|
7757
7750
|
}
|
|
7758
|
-
function
|
|
7751
|
+
function $i(e, n = "/") {
|
|
7759
7752
|
let {
|
|
7760
7753
|
pathname: t,
|
|
7761
7754
|
search: r = "",
|
|
7762
7755
|
hash: o = ""
|
|
7763
7756
|
} = typeof e == "string" ? cn(e) : e;
|
|
7764
7757
|
return {
|
|
7765
|
-
pathname: t ? t.startsWith("/") ? t :
|
|
7766
|
-
search:
|
|
7767
|
-
hash:
|
|
7758
|
+
pathname: t ? t.startsWith("/") ? t : _i(t, n) : n,
|
|
7759
|
+
search: Mi(r),
|
|
7760
|
+
hash: Li(o)
|
|
7768
7761
|
};
|
|
7769
7762
|
}
|
|
7770
|
-
function
|
|
7763
|
+
function _i(e, n) {
|
|
7771
7764
|
let t = n.replace(/\/+$/, "").split("/");
|
|
7772
7765
|
return e.split("/").forEach((o) => {
|
|
7773
7766
|
o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
|
|
@@ -7778,13 +7771,13 @@ function Ht(e, n, t, r) {
|
|
|
7778
7771
|
r
|
|
7779
7772
|
)}]. 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.`;
|
|
7780
7773
|
}
|
|
7781
|
-
function
|
|
7774
|
+
function Ei(e) {
|
|
7782
7775
|
return e.filter(
|
|
7783
7776
|
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
7784
7777
|
);
|
|
7785
7778
|
}
|
|
7786
7779
|
function Pr(e) {
|
|
7787
|
-
let n =
|
|
7780
|
+
let n = Ei(e);
|
|
7788
7781
|
return n.map(
|
|
7789
7782
|
(t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
|
|
7790
7783
|
);
|
|
@@ -7814,11 +7807,11 @@ function Mr(e, n, t, r = !1) {
|
|
|
7814
7807
|
}
|
|
7815
7808
|
l = g >= 0 ? n[g] : "/";
|
|
7816
7809
|
}
|
|
7817
|
-
let c =
|
|
7810
|
+
let c = $i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
|
|
7818
7811
|
return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
|
|
7819
7812
|
}
|
|
7820
|
-
var ke = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
7821
|
-
function
|
|
7813
|
+
var ke = (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;
|
|
7814
|
+
function Fi(e) {
|
|
7822
7815
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
7823
7816
|
}
|
|
7824
7817
|
var Lr = [
|
|
@@ -7830,11 +7823,11 @@ var Lr = [
|
|
|
7830
7823
|
new Set(
|
|
7831
7824
|
Lr
|
|
7832
7825
|
);
|
|
7833
|
-
var
|
|
7826
|
+
var Ai = [
|
|
7834
7827
|
"GET",
|
|
7835
7828
|
...Lr
|
|
7836
7829
|
];
|
|
7837
|
-
new Set(
|
|
7830
|
+
new Set(Ai);
|
|
7838
7831
|
var Ie = R.createContext(null);
|
|
7839
7832
|
Ie.displayName = "DataRouter";
|
|
7840
7833
|
var ht = R.createContext(null);
|
|
@@ -7844,12 +7837,12 @@ var Fr = R.createContext({
|
|
|
7844
7837
|
isTransitioning: !1
|
|
7845
7838
|
});
|
|
7846
7839
|
Fr.displayName = "ViewTransition";
|
|
7847
|
-
var
|
|
7840
|
+
var Ni = R.createContext(
|
|
7848
7841
|
/* @__PURE__ */ new Map()
|
|
7849
7842
|
);
|
|
7850
|
-
|
|
7851
|
-
var
|
|
7852
|
-
|
|
7843
|
+
Ni.displayName = "Fetchers";
|
|
7844
|
+
var Di = R.createContext(null);
|
|
7845
|
+
Di.displayName = "Await";
|
|
7853
7846
|
var _e = R.createContext(
|
|
7854
7847
|
null
|
|
7855
7848
|
);
|
|
@@ -7866,7 +7859,7 @@ var Ee = R.createContext({
|
|
|
7866
7859
|
Ee.displayName = "Route";
|
|
7867
7860
|
var dn = R.createContext(null);
|
|
7868
7861
|
dn.displayName = "RouteError";
|
|
7869
|
-
function
|
|
7862
|
+
function zi(e, { relative: n } = {}) {
|
|
7870
7863
|
he(
|
|
7871
7864
|
xt(),
|
|
7872
7865
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7891,11 +7884,11 @@ var Ar = "You should call navigate() in a React.useEffect(), not when your compo
|
|
|
7891
7884
|
function Nr(e) {
|
|
7892
7885
|
R.useContext(_e).static || R.useLayoutEffect(e);
|
|
7893
7886
|
}
|
|
7894
|
-
function
|
|
7887
|
+
function Ti() {
|
|
7895
7888
|
let { isDataRoute: e } = R.useContext(Ee);
|
|
7896
|
-
return e ?
|
|
7889
|
+
return e ? Xi() : Oi();
|
|
7897
7890
|
}
|
|
7898
|
-
function
|
|
7891
|
+
function Oi() {
|
|
7899
7892
|
he(
|
|
7900
7893
|
xt(),
|
|
7901
7894
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7946,7 +7939,7 @@ function Ke(e, { relative: n } = {}) {
|
|
|
7946
7939
|
[e, o, r, n]
|
|
7947
7940
|
);
|
|
7948
7941
|
}
|
|
7949
|
-
function
|
|
7942
|
+
function Ii(e, n, t, r) {
|
|
7950
7943
|
he(
|
|
7951
7944
|
xt(),
|
|
7952
7945
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -7978,7 +7971,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
|
|
|
7978
7971
|
), $e(
|
|
7979
7972
|
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,
|
|
7980
7973
|
`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.`
|
|
7981
|
-
),
|
|
7974
|
+
), Gi(
|
|
7982
7975
|
m && m.map(
|
|
7983
7976
|
(x) => Object.assign({}, x, {
|
|
7984
7977
|
params: Object.assign({}, l, x.params),
|
|
@@ -7999,14 +7992,14 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
|
|
|
7999
7992
|
r
|
|
8000
7993
|
);
|
|
8001
7994
|
}
|
|
8002
|
-
function
|
|
8003
|
-
let e =
|
|
7995
|
+
function Vi() {
|
|
7996
|
+
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;
|
|
8004
7997
|
return console.error(
|
|
8005
7998
|
"Error handled by React Router default ErrorBoundary:",
|
|
8006
7999
|
e
|
|
8007
8000
|
), 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);
|
|
8008
8001
|
}
|
|
8009
|
-
var
|
|
8002
|
+
var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Component {
|
|
8010
8003
|
constructor(e) {
|
|
8011
8004
|
super(e), this.state = {
|
|
8012
8005
|
location: e.location,
|
|
@@ -8045,11 +8038,11 @@ var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Compone
|
|
|
8045
8038
|
)) : this.props.children;
|
|
8046
8039
|
}
|
|
8047
8040
|
};
|
|
8048
|
-
function
|
|
8041
|
+
function qi({ routeContext: e, match: n, children: t }) {
|
|
8049
8042
|
let r = R.useContext(Ie);
|
|
8050
8043
|
return r && r.static && r.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ R.createElement(Ee.Provider, { value: e }, t);
|
|
8051
8044
|
}
|
|
8052
|
-
function
|
|
8045
|
+
function Gi(e, n = [], t = null, r = null) {
|
|
8053
8046
|
if (e == null) {
|
|
8054
8047
|
if (!t)
|
|
8055
8048
|
return null;
|
|
@@ -8090,7 +8083,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8090
8083
|
return o.reduceRight(
|
|
8091
8084
|
(c, u, d) => {
|
|
8092
8085
|
let g, p = !1, f = null, v = null;
|
|
8093
|
-
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement ||
|
|
8086
|
+
t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Hi, i && (l < 0 && d === 0 ? (Dr(
|
|
8094
8087
|
"route-fallback",
|
|
8095
8088
|
!1,
|
|
8096
8089
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -8098,7 +8091,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8098
8091
|
let m = n.concat(o.slice(0, d + 1)), b = () => {
|
|
8099
8092
|
let x;
|
|
8100
8093
|
return g ? x = f : p ? x = v : u.route.Component ? x = /* @__PURE__ */ R.createElement(u.route.Component, null) : u.route.element ? x = u.route.element : x = c, /* @__PURE__ */ R.createElement(
|
|
8101
|
-
|
|
8094
|
+
qi,
|
|
8102
8095
|
{
|
|
8103
8096
|
match: u,
|
|
8104
8097
|
routeContext: {
|
|
@@ -8111,7 +8104,7 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8111
8104
|
);
|
|
8112
8105
|
};
|
|
8113
8106
|
return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
|
|
8114
|
-
|
|
8107
|
+
Bi,
|
|
8115
8108
|
{
|
|
8116
8109
|
location: t.location,
|
|
8117
8110
|
revalidation: t.revalidation,
|
|
@@ -8128,34 +8121,34 @@ function Wi(e, n = [], t = null, r = null) {
|
|
|
8128
8121
|
function pn(e) {
|
|
8129
8122
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8130
8123
|
}
|
|
8131
|
-
function
|
|
8124
|
+
function Wi(e) {
|
|
8132
8125
|
let n = R.useContext(Ie);
|
|
8133
8126
|
return he(n, pn(e)), n;
|
|
8134
8127
|
}
|
|
8135
|
-
function
|
|
8128
|
+
function Ui(e) {
|
|
8136
8129
|
let n = R.useContext(ht);
|
|
8137
8130
|
return he(n, pn(e)), n;
|
|
8138
8131
|
}
|
|
8139
|
-
function
|
|
8132
|
+
function Yi(e) {
|
|
8140
8133
|
let n = R.useContext(Ee);
|
|
8141
8134
|
return he(n, pn(e)), n;
|
|
8142
8135
|
}
|
|
8143
8136
|
function fn(e) {
|
|
8144
|
-
let n =
|
|
8137
|
+
let n = Yi(e), t = n.matches[n.matches.length - 1];
|
|
8145
8138
|
return he(
|
|
8146
8139
|
t.route.id,
|
|
8147
8140
|
`${e} can only be used on routes that contain a unique "id"`
|
|
8148
8141
|
), t.route.id;
|
|
8149
8142
|
}
|
|
8150
|
-
function
|
|
8143
|
+
function Zi() {
|
|
8151
8144
|
return fn(
|
|
8152
8145
|
"useRouteId"
|
|
8153
8146
|
/* UseRouteId */
|
|
8154
8147
|
);
|
|
8155
8148
|
}
|
|
8156
|
-
function
|
|
8149
|
+
function Ki() {
|
|
8157
8150
|
var r;
|
|
8158
|
-
let e = R.useContext(dn), n =
|
|
8151
|
+
let e = R.useContext(dn), n = Ui(
|
|
8159
8152
|
"useRouteError"
|
|
8160
8153
|
/* UseRouteError */
|
|
8161
8154
|
), t = fn(
|
|
@@ -8164,8 +8157,8 @@ function Xi() {
|
|
|
8164
8157
|
);
|
|
8165
8158
|
return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
|
|
8166
8159
|
}
|
|
8167
|
-
function
|
|
8168
|
-
let { router: e } =
|
|
8160
|
+
function Xi() {
|
|
8161
|
+
let { router: e } = Wi(
|
|
8169
8162
|
"useNavigate"
|
|
8170
8163
|
/* UseNavigateStable */
|
|
8171
8164
|
), n = fn(
|
|
@@ -8185,37 +8178,37 @@ var Jn = {};
|
|
|
8185
8178
|
function Dr(e, n, t) {
|
|
8186
8179
|
!n && !Jn[e] && (Jn[e] = !0, $e(!1, t));
|
|
8187
8180
|
}
|
|
8188
|
-
R.memo(
|
|
8189
|
-
function
|
|
8181
|
+
R.memo(Ji);
|
|
8182
|
+
function Ji({
|
|
8190
8183
|
routes: e,
|
|
8191
8184
|
future: n,
|
|
8192
8185
|
state: t
|
|
8193
8186
|
}) {
|
|
8194
|
-
return
|
|
8187
|
+
return Ii(e, void 0, t, n);
|
|
8195
8188
|
}
|
|
8196
8189
|
var ut = "get", dt = "application/x-www-form-urlencoded";
|
|
8197
8190
|
function bt(e) {
|
|
8198
8191
|
return e != null && typeof e.tagName == "string";
|
|
8199
8192
|
}
|
|
8200
|
-
function
|
|
8193
|
+
function Qi(e) {
|
|
8201
8194
|
return bt(e) && e.tagName.toLowerCase() === "button";
|
|
8202
8195
|
}
|
|
8203
|
-
function
|
|
8196
|
+
function el(e) {
|
|
8204
8197
|
return bt(e) && e.tagName.toLowerCase() === "form";
|
|
8205
8198
|
}
|
|
8206
|
-
function
|
|
8199
|
+
function tl(e) {
|
|
8207
8200
|
return bt(e) && e.tagName.toLowerCase() === "input";
|
|
8208
8201
|
}
|
|
8209
|
-
function
|
|
8202
|
+
function nl(e) {
|
|
8210
8203
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
8211
8204
|
}
|
|
8212
|
-
function
|
|
8205
|
+
function rl(e, n) {
|
|
8213
8206
|
return e.button === 0 && // Ignore everything but left clicks
|
|
8214
8207
|
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
8215
|
-
!
|
|
8208
|
+
!nl(e);
|
|
8216
8209
|
}
|
|
8217
8210
|
var ct = null;
|
|
8218
|
-
function
|
|
8211
|
+
function ol() {
|
|
8219
8212
|
if (ct === null)
|
|
8220
8213
|
try {
|
|
8221
8214
|
new FormData(
|
|
@@ -8228,30 +8221,30 @@ function al() {
|
|
|
8228
8221
|
}
|
|
8229
8222
|
return ct;
|
|
8230
8223
|
}
|
|
8231
|
-
var
|
|
8224
|
+
var al = /* @__PURE__ */ new Set([
|
|
8232
8225
|
"application/x-www-form-urlencoded",
|
|
8233
8226
|
"multipart/form-data",
|
|
8234
8227
|
"text/plain"
|
|
8235
8228
|
]);
|
|
8236
8229
|
function Bt(e) {
|
|
8237
|
-
return e != null && !
|
|
8230
|
+
return e != null && !al.has(e) ? ($e(
|
|
8238
8231
|
!1,
|
|
8239
8232
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
|
|
8240
8233
|
), null) : e;
|
|
8241
8234
|
}
|
|
8242
|
-
function
|
|
8235
|
+
function il(e, n) {
|
|
8243
8236
|
let t, r, o, a, i;
|
|
8244
|
-
if (
|
|
8237
|
+
if (el(e)) {
|
|
8245
8238
|
let l = e.getAttribute("action");
|
|
8246
8239
|
r = l ? Fe(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
|
|
8247
|
-
} else if (
|
|
8240
|
+
} else if (Qi(e) || tl(e) && (e.type === "submit" || e.type === "image")) {
|
|
8248
8241
|
let l = e.form;
|
|
8249
8242
|
if (l == null)
|
|
8250
8243
|
throw new Error(
|
|
8251
8244
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
8252
8245
|
);
|
|
8253
8246
|
let c = e.getAttribute("formaction") || l.getAttribute("action");
|
|
8254
|
-
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), !
|
|
8247
|
+
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()) {
|
|
8255
8248
|
let { name: u, type: d, value: g } = e;
|
|
8256
8249
|
if (d === "image") {
|
|
8257
8250
|
let p = u ? `${u}.` : "";
|
|
@@ -8272,7 +8265,7 @@ function mn(e, n) {
|
|
|
8272
8265
|
if (e === !1 || e === null || typeof e > "u")
|
|
8273
8266
|
throw new Error(n);
|
|
8274
8267
|
}
|
|
8275
|
-
function
|
|
8268
|
+
function ll(e, n, t) {
|
|
8276
8269
|
let r = typeof e == "string" ? new URL(
|
|
8277
8270
|
e,
|
|
8278
8271
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
@@ -8281,7 +8274,7 @@ function sl(e, n, t) {
|
|
|
8281
8274
|
) : e;
|
|
8282
8275
|
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;
|
|
8283
8276
|
}
|
|
8284
|
-
async function
|
|
8277
|
+
async function sl(e, n) {
|
|
8285
8278
|
if (e.id in n)
|
|
8286
8279
|
return n[e.id];
|
|
8287
8280
|
try {
|
|
@@ -8298,22 +8291,22 @@ async function cl(e, n) {
|
|
|
8298
8291
|
});
|
|
8299
8292
|
}
|
|
8300
8293
|
}
|
|
8301
|
-
function
|
|
8294
|
+
function cl(e) {
|
|
8302
8295
|
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";
|
|
8303
8296
|
}
|
|
8304
|
-
async function
|
|
8297
|
+
async function ul(e, n, t) {
|
|
8305
8298
|
let r = await Promise.all(
|
|
8306
8299
|
e.map(async (o) => {
|
|
8307
8300
|
let a = n.routes[o.route.id];
|
|
8308
8301
|
if (a) {
|
|
8309
|
-
let i = await
|
|
8302
|
+
let i = await sl(a, t);
|
|
8310
8303
|
return i.links ? i.links() : [];
|
|
8311
8304
|
}
|
|
8312
8305
|
return [];
|
|
8313
8306
|
})
|
|
8314
8307
|
);
|
|
8315
|
-
return
|
|
8316
|
-
r.flat(1).filter(
|
|
8308
|
+
return ml(
|
|
8309
|
+
r.flat(1).filter(cl).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
8317
8310
|
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
8318
8311
|
)
|
|
8319
8312
|
);
|
|
@@ -8354,8 +8347,8 @@ function Qn(e, n, t, r, o, a) {
|
|
|
8354
8347
|
return !0;
|
|
8355
8348
|
}) : [];
|
|
8356
8349
|
}
|
|
8357
|
-
function
|
|
8358
|
-
return
|
|
8350
|
+
function dl(e, n, { includeHydrateFallback: t } = {}) {
|
|
8351
|
+
return pl(
|
|
8359
8352
|
e.map((r) => {
|
|
8360
8353
|
let o = n.routes[r.route.id];
|
|
8361
8354
|
if (!o) return [];
|
|
@@ -8364,19 +8357,19 @@ function pl(e, n, { includeHydrateFallback: t } = {}) {
|
|
|
8364
8357
|
}).flat(1)
|
|
8365
8358
|
);
|
|
8366
8359
|
}
|
|
8367
|
-
function
|
|
8360
|
+
function pl(e) {
|
|
8368
8361
|
return [...new Set(e)];
|
|
8369
8362
|
}
|
|
8370
|
-
function
|
|
8363
|
+
function fl(e) {
|
|
8371
8364
|
let n = {}, t = Object.keys(e).sort();
|
|
8372
8365
|
for (let r of t)
|
|
8373
8366
|
n[r] = e[r];
|
|
8374
8367
|
return n;
|
|
8375
8368
|
}
|
|
8376
|
-
function
|
|
8369
|
+
function ml(e, n) {
|
|
8377
8370
|
let t = /* @__PURE__ */ new Set();
|
|
8378
8371
|
return new Set(n), e.reduce((r, o) => {
|
|
8379
|
-
let a = JSON.stringify(
|
|
8372
|
+
let a = JSON.stringify(fl(o));
|
|
8380
8373
|
return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
|
|
8381
8374
|
}, []);
|
|
8382
8375
|
}
|
|
@@ -8387,7 +8380,7 @@ function zr() {
|
|
|
8387
8380
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
8388
8381
|
), e;
|
|
8389
8382
|
}
|
|
8390
|
-
function
|
|
8383
|
+
function gl() {
|
|
8391
8384
|
let e = R.useContext(ht);
|
|
8392
8385
|
return mn(
|
|
8393
8386
|
e,
|
|
@@ -8403,7 +8396,7 @@ function Tr() {
|
|
|
8403
8396
|
"You must render this element inside a <HydratedRouter> element"
|
|
8404
8397
|
), e;
|
|
8405
8398
|
}
|
|
8406
|
-
function
|
|
8399
|
+
function vl(e, n) {
|
|
8407
8400
|
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);
|
|
8408
8401
|
R.useEffect(() => {
|
|
8409
8402
|
if (e === "render" && i(!0), e === "viewport") {
|
|
@@ -8448,18 +8441,18 @@ function Ge(e, n) {
|
|
|
8448
8441
|
e && e(t), t.defaultPrevented || n(t);
|
|
8449
8442
|
};
|
|
8450
8443
|
}
|
|
8451
|
-
function
|
|
8444
|
+
function hl({ page: e, ...n }) {
|
|
8452
8445
|
let { router: t } = zr(), r = R.useMemo(
|
|
8453
8446
|
() => $r(t.routes, e, t.basename),
|
|
8454
8447
|
[t.routes, e, t.basename]
|
|
8455
8448
|
);
|
|
8456
|
-
return r ? /* @__PURE__ */ R.createElement(
|
|
8449
|
+
return r ? /* @__PURE__ */ R.createElement(bl, { page: e, matches: r, ...n }) : null;
|
|
8457
8450
|
}
|
|
8458
|
-
function
|
|
8451
|
+
function xl(e) {
|
|
8459
8452
|
let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
|
|
8460
8453
|
return R.useEffect(() => {
|
|
8461
8454
|
let a = !1;
|
|
8462
|
-
return
|
|
8455
|
+
return ul(e, n, t).then(
|
|
8463
8456
|
(i) => {
|
|
8464
8457
|
a || o(i);
|
|
8465
8458
|
}
|
|
@@ -8468,12 +8461,12 @@ function bl(e) {
|
|
|
8468
8461
|
};
|
|
8469
8462
|
}, [e, n, t]), r;
|
|
8470
8463
|
}
|
|
8471
|
-
function
|
|
8464
|
+
function bl({
|
|
8472
8465
|
page: e,
|
|
8473
8466
|
matches: n,
|
|
8474
8467
|
...t
|
|
8475
8468
|
}) {
|
|
8476
|
-
let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } =
|
|
8469
|
+
let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = gl(), u = R.useMemo(
|
|
8477
8470
|
() => Qn(
|
|
8478
8471
|
e,
|
|
8479
8472
|
n,
|
|
@@ -8503,7 +8496,7 @@ function wl({
|
|
|
8503
8496
|
!k || !k.hasLoader || (!u.some(($) => $.route.id === x.route.id) && x.route.id in l && ((w = a[x.route.id]) != null && w.shouldRevalidate) || k.hasClientLoader ? m = !0 : v.add(x.route.id));
|
|
8504
8497
|
}), v.size === 0)
|
|
8505
8498
|
return [];
|
|
8506
|
-
let b =
|
|
8499
|
+
let b = ll(e, i, "data");
|
|
8507
8500
|
return m && v.size > 0 && b.searchParams.set(
|
|
8508
8501
|
"_routes",
|
|
8509
8502
|
n.filter((x) => v.has(x.route.id)).map((x) => x.route.id).join(",")
|
|
@@ -8518,16 +8511,16 @@ function wl({
|
|
|
8518
8511
|
e,
|
|
8519
8512
|
a
|
|
8520
8513
|
]), p = R.useMemo(
|
|
8521
|
-
() =>
|
|
8514
|
+
() => dl(d, o),
|
|
8522
8515
|
[d, o]
|
|
8523
|
-
), f =
|
|
8516
|
+
), f = xl(d);
|
|
8524
8517
|
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 }) => (
|
|
8525
8518
|
// these don't spread `linkProps` because they are full link descriptors
|
|
8526
8519
|
// already with their own props
|
|
8527
8520
|
/* @__PURE__ */ R.createElement("link", { key: v, ...m })
|
|
8528
8521
|
)));
|
|
8529
8522
|
}
|
|
8530
|
-
function
|
|
8523
|
+
function wl(...e) {
|
|
8531
8524
|
return (n) => {
|
|
8532
8525
|
e.forEach((t) => {
|
|
8533
8526
|
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
@@ -8566,10 +8559,10 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8566
8559
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
8567
8560
|
);
|
|
8568
8561
|
}
|
|
8569
|
-
let k =
|
|
8562
|
+
let k = zi(u, { relative: o }), [w, $, y] = vl(
|
|
8570
8563
|
r,
|
|
8571
8564
|
p
|
|
8572
|
-
), O =
|
|
8565
|
+
), O = Sl(u, {
|
|
8573
8566
|
replace: i,
|
|
8574
8567
|
state: l,
|
|
8575
8568
|
target: c,
|
|
@@ -8589,13 +8582,13 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
|
|
|
8589
8582
|
...y,
|
|
8590
8583
|
href: b || k,
|
|
8591
8584
|
onClick: x || a ? n : D,
|
|
8592
|
-
ref:
|
|
8585
|
+
ref: wl(f, $),
|
|
8593
8586
|
target: c,
|
|
8594
8587
|
"data-discover": !m && t === "render" ? "true" : void 0
|
|
8595
8588
|
}
|
|
8596
8589
|
)
|
|
8597
8590
|
);
|
|
8598
|
-
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(
|
|
8591
|
+
return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(hl, { page: k })) : V;
|
|
8599
8592
|
}
|
|
8600
8593
|
);
|
|
8601
8594
|
vn.displayName = "Link";
|
|
@@ -8613,7 +8606,7 @@ var Vr = R.forwardRef(
|
|
|
8613
8606
|
}, d) {
|
|
8614
8607
|
let g = Ke(i, { relative: u.relative }), p = De(), f = R.useContext(ht), { navigator: v, basename: m } = R.useContext(_e), b = f != null && // Conditional usage is OK here because the usage of a data router is static
|
|
8615
8608
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
8616
|
-
|
|
8609
|
+
_l(g) && l === !0, x = v.encodeLocation ? v.encodeLocation(g).pathname : g.pathname, k = p.pathname, w = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
|
|
8617
8610
|
t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, x = x.toLowerCase()), w && m && (w = Fe(w, m) || w);
|
|
8618
8611
|
const $ = x !== "/" && x.endsWith("/") ? x.length - 1 : x.length;
|
|
8619
8612
|
let y = k === x || !o && k.startsWith(x) && k.charAt($) === "/", O = w != null && (w === x || !o && w.startsWith(x) && w.charAt(x.length) === "/"), D = {
|
|
@@ -8644,7 +8637,7 @@ var Vr = R.forwardRef(
|
|
|
8644
8637
|
}
|
|
8645
8638
|
);
|
|
8646
8639
|
Vr.displayName = "NavLink";
|
|
8647
|
-
var
|
|
8640
|
+
var yl = R.forwardRef(
|
|
8648
8641
|
({
|
|
8649
8642
|
discover: e = "render",
|
|
8650
8643
|
fetcherKey: n,
|
|
@@ -8660,7 +8653,7 @@ var Cl = R.forwardRef(
|
|
|
8660
8653
|
viewTransition: g,
|
|
8661
8654
|
...p
|
|
8662
8655
|
}, f) => {
|
|
8663
|
-
let v =
|
|
8656
|
+
let v = kl(), m = $l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && Ir.test(l), k = (w) => {
|
|
8664
8657
|
if (c && c(w), w.defaultPrevented) return;
|
|
8665
8658
|
w.preventDefault();
|
|
8666
8659
|
let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
|
|
@@ -8688,15 +8681,15 @@ var Cl = R.forwardRef(
|
|
|
8688
8681
|
);
|
|
8689
8682
|
}
|
|
8690
8683
|
);
|
|
8691
|
-
|
|
8692
|
-
function
|
|
8684
|
+
yl.displayName = "Form";
|
|
8685
|
+
function Cl(e) {
|
|
8693
8686
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
8694
8687
|
}
|
|
8695
8688
|
function Hr(e) {
|
|
8696
8689
|
let n = R.useContext(Ie);
|
|
8697
|
-
return he(n,
|
|
8690
|
+
return he(n, Cl(e)), n;
|
|
8698
8691
|
}
|
|
8699
|
-
function
|
|
8692
|
+
function Sl(e, {
|
|
8700
8693
|
target: n,
|
|
8701
8694
|
replace: t,
|
|
8702
8695
|
state: r,
|
|
@@ -8704,10 +8697,10 @@ function jl(e, {
|
|
|
8704
8697
|
relative: a,
|
|
8705
8698
|
viewTransition: i
|
|
8706
8699
|
} = {}) {
|
|
8707
|
-
let l =
|
|
8700
|
+
let l = Ti(), c = De(), u = Ke(e, { relative: a });
|
|
8708
8701
|
return R.useCallback(
|
|
8709
8702
|
(d) => {
|
|
8710
|
-
if (
|
|
8703
|
+
if (rl(d, n)) {
|
|
8711
8704
|
d.preventDefault();
|
|
8712
8705
|
let g = t !== void 0 ? t : nn(c) === nn(u);
|
|
8713
8706
|
l(e, {
|
|
@@ -8733,20 +8726,20 @@ function jl(e, {
|
|
|
8733
8726
|
]
|
|
8734
8727
|
);
|
|
8735
8728
|
}
|
|
8736
|
-
var
|
|
8737
|
-
function
|
|
8729
|
+
var jl = 0, Rl = () => `__${String(++jl)}__`;
|
|
8730
|
+
function kl() {
|
|
8738
8731
|
let { router: e } = Hr(
|
|
8739
8732
|
"useSubmit"
|
|
8740
8733
|
/* UseSubmit */
|
|
8741
|
-
), { basename: n } = R.useContext(_e), t =
|
|
8734
|
+
), { basename: n } = R.useContext(_e), t = Zi();
|
|
8742
8735
|
return R.useCallback(
|
|
8743
8736
|
async (r, o = {}) => {
|
|
8744
|
-
let { action: a, method: i, encType: l, formData: c, body: u } =
|
|
8737
|
+
let { action: a, method: i, encType: l, formData: c, body: u } = il(
|
|
8745
8738
|
r,
|
|
8746
8739
|
n
|
|
8747
8740
|
);
|
|
8748
8741
|
if (o.navigate === !1) {
|
|
8749
|
-
let d = o.fetcherKey ||
|
|
8742
|
+
let d = o.fetcherKey || Rl();
|
|
8750
8743
|
await e.fetch(d, t, o.action || a, {
|
|
8751
8744
|
preventScrollReset: o.preventScrollReset,
|
|
8752
8745
|
formData: c,
|
|
@@ -8772,7 +8765,7 @@ function $l() {
|
|
|
8772
8765
|
[e, n, t]
|
|
8773
8766
|
);
|
|
8774
8767
|
}
|
|
8775
|
-
function
|
|
8768
|
+
function $l(e, { relative: n } = {}) {
|
|
8776
8769
|
let { basename: t } = R.useContext(_e), r = R.useContext(Ee);
|
|
8777
8770
|
he(r, "useFormAction must be used inside a RouteContext");
|
|
8778
8771
|
let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = De();
|
|
@@ -8787,7 +8780,7 @@ function _l(e, { relative: n } = {}) {
|
|
|
8787
8780
|
}
|
|
8788
8781
|
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (a.pathname = a.pathname === "/" ? t : ke([t, a.pathname])), nn(a);
|
|
8789
8782
|
}
|
|
8790
|
-
function
|
|
8783
|
+
function _l(e, { relative: n } = {}) {
|
|
8791
8784
|
let t = R.useContext(Fr);
|
|
8792
8785
|
he(
|
|
8793
8786
|
t != null,
|
|
@@ -8802,7 +8795,7 @@ function El(e, { relative: n } = {}) {
|
|
|
8802
8795
|
let a = Fe(t.currentLocation.pathname, r) || t.currentLocation.pathname, i = Fe(t.nextLocation.pathname, r) || t.nextLocation.pathname;
|
|
8803
8796
|
return gt(o.pathname, i) != null || gt(o.pathname, a) != null;
|
|
8804
8797
|
}
|
|
8805
|
-
const
|
|
8798
|
+
const ss = ({
|
|
8806
8799
|
variant: e = "fixed",
|
|
8807
8800
|
activeTab: n,
|
|
8808
8801
|
navItems: t,
|
|
@@ -8828,7 +8821,7 @@ const cs = ({
|
|
|
8828
8821
|
c.label
|
|
8829
8822
|
);
|
|
8830
8823
|
}) });
|
|
8831
|
-
},
|
|
8824
|
+
}, cs = ({ items: e, separator: n = "/", className: t = "" }) => /* @__PURE__ */ s.jsx("nav", { className: `text-sm text-color-gray-600 ${t}`, "aria-label": "Breadcrumb", children: /* @__PURE__ */ s.jsx("ol", { className: "flex items-center space-x-1", children: e.map((r, o) => /* @__PURE__ */ s.jsxs("li", { className: "flex items-center", children: [
|
|
8832
8825
|
r.href ? /* @__PURE__ */ s.jsx(
|
|
8833
8826
|
"a",
|
|
8834
8827
|
{
|
|
@@ -8838,7 +8831,7 @@ const cs = ({
|
|
|
8838
8831
|
}
|
|
8839
8832
|
) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
|
|
8840
8833
|
o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
|
|
8841
|
-
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8834
|
+
] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], El = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], us = ({
|
|
8842
8835
|
mode: e = "single",
|
|
8843
8836
|
type: n = "inline",
|
|
8844
8837
|
showTime: t = !1,
|
|
@@ -9007,7 +9000,7 @@ const cs = ({
|
|
|
9007
9000
|
)
|
|
9008
9001
|
] }),
|
|
9009
9002
|
/* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
|
|
9010
|
-
|
|
9003
|
+
El.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
|
|
9011
9004
|
z().map((S, j) => /* @__PURE__ */ s.jsx(
|
|
9012
9005
|
"div",
|
|
9013
9006
|
{
|
|
@@ -9061,9 +9054,9 @@ const cs = ({
|
|
|
9061
9054
|
]
|
|
9062
9055
|
}
|
|
9063
9056
|
),
|
|
9064
|
-
n === "inline" ? /* @__PURE__ */ s.jsx(s.Fragment, { children: g && Ze(q, document.body) }) : /* @__PURE__ */ s.jsx(
|
|
9057
|
+
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 }) })
|
|
9065
9058
|
] });
|
|
9066
|
-
},
|
|
9059
|
+
}, ds = ({
|
|
9067
9060
|
tabs: e,
|
|
9068
9061
|
activeKey: n,
|
|
9069
9062
|
onChange: t,
|
|
@@ -9110,10 +9103,10 @@ const cs = ({
|
|
|
9110
9103
|
]
|
|
9111
9104
|
}
|
|
9112
9105
|
);
|
|
9113
|
-
},
|
|
9106
|
+
}, ps = ({
|
|
9114
9107
|
stats: e = [],
|
|
9115
9108
|
className: n = ""
|
|
9116
|
-
}) => /* @__PURE__ */ s.jsx(
|
|
9109
|
+
}) => /* @__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(
|
|
9117
9110
|
"div",
|
|
9118
9111
|
{
|
|
9119
9112
|
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
|
|
@@ -9134,7 +9127,7 @@ const cs = ({
|
|
|
9134
9127
|
},
|
|
9135
9128
|
r
|
|
9136
9129
|
)) }) });
|
|
9137
|
-
function
|
|
9130
|
+
function fs({
|
|
9138
9131
|
items: e = [],
|
|
9139
9132
|
logoJSX: n,
|
|
9140
9133
|
position: t,
|
|
@@ -9148,7 +9141,7 @@ function ms({
|
|
|
9148
9141
|
c(d), d.onClick && d.onClick(), i && i(d);
|
|
9149
9142
|
};
|
|
9150
9143
|
return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
|
|
9151
|
-
|
|
9144
|
+
ui,
|
|
9152
9145
|
{
|
|
9153
9146
|
open: o,
|
|
9154
9147
|
onClose: a,
|
|
@@ -9196,54 +9189,54 @@ function ms({
|
|
|
9196
9189
|
) });
|
|
9197
9190
|
}
|
|
9198
9191
|
export {
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9192
|
+
as as Accordion,
|
|
9193
|
+
os as ActionMenu,
|
|
9194
|
+
is as Alert,
|
|
9202
9195
|
hr as Avatar,
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9196
|
+
ls as Badge,
|
|
9197
|
+
ss as BottomNavigation,
|
|
9198
|
+
cs as Breadcrumbs,
|
|
9206
9199
|
Gt as Button,
|
|
9207
9200
|
ve as COLOR_MAP,
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9201
|
+
ai as Card,
|
|
9202
|
+
Al as CardWrapper,
|
|
9203
|
+
Kl as Carousel,
|
|
9204
|
+
Nl as Checkbox,
|
|
9205
|
+
ps as DashboardStatBoxes,
|
|
9206
|
+
us as DatePicker,
|
|
9207
|
+
si as Dialog,
|
|
9208
|
+
es as Divider,
|
|
9209
|
+
ui as Drawer,
|
|
9210
|
+
Dl as Dropdown,
|
|
9211
|
+
zl as DropzoneUploader,
|
|
9212
|
+
Xl as EmptyState,
|
|
9220
9213
|
je as IconButton,
|
|
9221
|
-
|
|
9222
|
-
|
|
9214
|
+
Hl as List,
|
|
9215
|
+
Bl as ListItem,
|
|
9223
9216
|
oa as Menu,
|
|
9224
9217
|
sa as OtpInput,
|
|
9225
|
-
|
|
9218
|
+
ni as Pagination,
|
|
9226
9219
|
da as PasswordInput,
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9220
|
+
Tl as Pill,
|
|
9221
|
+
Ol as ProfileImageShowcase,
|
|
9222
|
+
Yl as Progress,
|
|
9230
9223
|
qt as RANGE_COLOR_MAP,
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9224
|
+
ts as RadioGroup,
|
|
9225
|
+
Zl as Rating,
|
|
9226
|
+
ns as Select,
|
|
9227
|
+
fs as Sidebar,
|
|
9228
|
+
ql as Skeleton,
|
|
9229
|
+
Wl as Slider,
|
|
9230
|
+
Ul as Snackbar,
|
|
9231
|
+
Il as Stepper,
|
|
9232
|
+
Vl as Table,
|
|
9233
|
+
ds as Tabs,
|
|
9234
|
+
Gl as TextArea,
|
|
9242
9235
|
vr as TextInput,
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9236
|
+
Ql as ToggleButton,
|
|
9237
|
+
Jl as ToggleSwitch,
|
|
9238
|
+
rs as Tooltip,
|
|
9239
|
+
ti as Typography,
|
|
9240
|
+
Ll as extendColorMap,
|
|
9241
|
+
Fl as extendRangeColorMap
|
|
9249
9242
|
};
|