@unizap/uniui 1.0.23 → 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/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
- }, Fl = (e) => {
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
- }, Al = (e) => {
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
- }, Nl = ({
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
- ), Dl = ({
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
- ), zl = ({
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 Tl = ({
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
- }, Ol = ({
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
- }, Il = ({
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
- ] }), Vl = ({ steps: e, currentStep: n, className: t = "", onChange: r }) => /* @__PURE__ */ s.jsx("div", { className: `flex items-center ${t}`, children: e.map((o, a) => {
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]} ${ti[o]} ${t}`, children: r });
5788
- }, ri = ({
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
- }, Hl = ({
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(ni, { variant: "body2", className: "hidden md:flex", children: "Rows per page" }),
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
- ri,
5905
+ ni,
5913
5906
  {
5914
5907
  total: l,
5915
5908
  pageSize: t,
@@ -5919,7 +5912,10 @@ const ei = {
5919
5912
  )
5920
5913
  ] })
5921
5914
  ] }) });
5922
- }, 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 = ({
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: [
5916
+ /* @__PURE__ */ s.jsx("div", { className: "flex-1", children: e }),
5917
+ n && /* @__PURE__ */ s.jsx("div", { className: "ml-4", children: n })
5918
+ ] }), ql = ({
5923
5919
  animation: e = "pulse",
5924
5920
  variant: n = "rectangular",
5925
5921
  width: t,
@@ -6011,7 +6007,7 @@ const ei = {
6011
6007
  medium: { track: "h-2", thumb: "w-4 h-4" },
6012
6008
  large: { track: "h-3", thumb: "w-5 h-5" }
6013
6009
  };
6014
- function oi(e) {
6010
+ function ri(e) {
6015
6011
  const n = se(null), t = se(null), r = se(null), o = (c, u) => {
6016
6012
  if (c === u) return !0;
6017
6013
  if (Array.isArray(c) && Array.isArray(u)) {
@@ -6061,7 +6057,7 @@ const Wl = Zr(function({
6061
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(
6062
6058
  (_) => (_ - a) / (i - a) * 100,
6063
6059
  [a, i]
6064
- ), 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 = oi(r), te = oe(
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(
6065
6061
  (_, J = !0) => {
6066
6062
  x || w(_), J ? T.schedule(_) : T.flush(_);
6067
6063
  },
@@ -6865,7 +6861,7 @@ const Wl = Zr(function({
6865
6861
  )
6866
6862
  }
6867
6863
  );
6868
- }, ai = {
6864
+ }, oi = {
6869
6865
  small: "px-2 py-1 text-sm",
6870
6866
  medium: "px-4 py-2 text-base",
6871
6867
  large: "px-6 py-3 text-lg"
@@ -6904,7 +6900,7 @@ const Wl = Zr(function({
6904
6900
  disabled: u || p.disabled,
6905
6901
  className: `
6906
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
6907
- ${ai[o]}
6903
+ ${oi[o]}
6908
6904
  ${d(p.value) ? ((v = ve[a]) == null ? void 0 : v.filled) || a : "bg-color-transparent text-color-gray-700"}
6909
6905
  ${u || p.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
6910
6906
  ${c}
@@ -6935,7 +6931,7 @@ const Wl = Zr(function({
6935
6931
  small: "rounded-md",
6936
6932
  medium: "rounded-xl",
6937
6933
  large: "rounded-2xl"
6938
- }, ii = ({
6934
+ }, ai = ({
6939
6935
  title: e,
6940
6936
  subtitle: n,
6941
6937
  space: t = "medium",
@@ -7147,10 +7143,10 @@ const Wl = Zr(function({
7147
7143
  )
7148
7144
  ] });
7149
7145
  };
7150
- function li(...e) {
7146
+ function ii(...e) {
7151
7147
  return e.filter(Boolean).join(" ");
7152
7148
  }
7153
- const si = {
7149
+ const li = {
7154
7150
  sm: "max-w-sm",
7155
7151
  md: "max-w-md",
7156
7152
  lg: "max-w-lg",
@@ -7158,7 +7154,7 @@ const si = {
7158
7154
  "2xl": "max-w-2xl",
7159
7155
  "4xl": "max-w-4xl",
7160
7156
  "6xl": "max-w-6xl"
7161
- }, ci = Ye(
7157
+ }, si = Ye(
7162
7158
  ({
7163
7159
  open: e,
7164
7160
  onClose: n,
@@ -7197,7 +7193,7 @@ const si = {
7197
7193
  /* @__PURE__ */ s.jsxs(
7198
7194
  "div",
7199
7195
  {
7200
- className: li(
7196
+ className: ii(
7201
7197
  "fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",
7202
7198
  m ? "opacity-100" : "opacity-0 pointer-events-none"
7203
7199
  ),
@@ -7214,7 +7210,7 @@ const si = {
7214
7210
  /* @__PURE__ */ s.jsxs(
7215
7211
  "div",
7216
7212
  {
7217
- 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}`,
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}`,
7218
7214
  onTransitionEnd: x,
7219
7215
  children: [
7220
7216
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between mb-4", children: [
@@ -7298,10 +7294,10 @@ function os({ items: e, trigger: n, className: t, dropdownItemClass: r }) {
7298
7294
  o && Ze(f, document.body)
7299
7295
  ] });
7300
7296
  }
7301
- function ui(...e) {
7297
+ function ci(...e) {
7302
7298
  return e.filter(Boolean).join(" ");
7303
7299
  }
7304
- const di = ({
7300
+ const ui = ({
7305
7301
  open: e,
7306
7302
  onClose: n,
7307
7303
  className: t,
@@ -7345,7 +7341,7 @@ const di = ({
7345
7341
  /* @__PURE__ */ s.jsxs(
7346
7342
  "div",
7347
7343
  {
7348
- className: ui(
7344
+ className: ci(
7349
7345
  "fixed inset-0 z-50 transition-opacity duration-300",
7350
7346
  g ? "opacity-100" : "opacity-0 pointer-events-none"
7351
7347
  ),
@@ -7423,19 +7419,19 @@ const di = ({
7423
7419
  ),
7424
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 }) }) })
7425
7421
  ] });
7426
- }, pi = {
7422
+ }, di = {
7427
7423
  info: "bg-color-blue-50 border-color-blue-300 text-color-blue-800",
7428
7424
  success: "bg-color-green-50 border-color-green-300 text-color-green-800",
7429
7425
  danger: "bg-color-red-50 border-color-red-300 text-color-red-800",
7430
7426
  warning: "bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",
7431
7427
  dark: "bg-color-gray-100 border-color-gray-300 text-color-gray-800"
7432
- }, fi = {
7428
+ }, pi = {
7433
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" }) }),
7434
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" }) }),
7435
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" }) }),
7436
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" }) }),
7437
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" }) })
7438
- }, mi = {
7434
+ }, fi = {
7439
7435
  info: "bg-color-blue-500",
7440
7436
  success: "bg-color-green-500",
7441
7437
  danger: "bg-color-red-500",
@@ -7460,10 +7456,10 @@ const di = ({
7460
7456
  }, [r, a, t]), i ? /* @__PURE__ */ s.jsxs(
7461
7457
  "div",
7462
7458
  {
7463
- className: `relative border-t-4 p-4 flex items-start justify-between ${pi[n]} ${o}`,
7459
+ className: `relative border-t-4 p-4 flex items-start justify-between ${di[n]} ${o}`,
7464
7460
  children: [
7465
7461
  /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-2", children: [
7466
- fi[n],
7462
+ pi[n],
7467
7463
  /* @__PURE__ */ s.jsx("span", { dangerouslySetInnerHTML: { __html: e } })
7468
7464
  ] }),
7469
7465
  /* @__PURE__ */ s.jsx(
@@ -7481,7 +7477,7 @@ const di = ({
7481
7477
  "div",
7482
7478
  {
7483
7479
  ref: c,
7484
- className: `${mi[n]} h-1`,
7480
+ className: `${fi[n]} h-1`,
7485
7481
  style: { width: "100%" }
7486
7482
  }
7487
7483
  ) })
@@ -7574,18 +7570,18 @@ function cn(e) {
7574
7570
  return n;
7575
7571
  }
7576
7572
  function $r(e, n, t = "/") {
7577
- return gi(e, n, t, !1);
7573
+ return mi(e, n, t, !1);
7578
7574
  }
7579
- function gi(e, n, t, r) {
7575
+ function mi(e, n, t, r) {
7580
7576
  let o = typeof n == "string" ? cn(n) : n, a = Fe(o.pathname || "/", t);
7581
7577
  if (a == null)
7582
7578
  return null;
7583
7579
  let i = _r(e);
7584
- vi(i);
7580
+ gi(i);
7585
7581
  let l = null;
7586
7582
  for (let c = 0; l == null && c < i.length; ++c) {
7587
- let u = $i(a);
7588
- l = Ri(
7583
+ let u = ki(a);
7584
+ l = ji(
7589
7585
  i[c],
7590
7586
  u,
7591
7587
  r
@@ -7613,7 +7609,7 @@ function _r(e, n = [], t = [], r = "") {
7613
7609
  `Index routes must not have child routes. Please remove all child routes from route path "${u}".`
7614
7610
  ), _r(a.children, n, d, u)), !(a.path == null && !a.index) && n.push({
7615
7611
  path: u,
7616
- score: Si(u, a.index),
7612
+ score: Ci(u, a.index),
7617
7613
  routesMeta: d
7618
7614
  });
7619
7615
  };
@@ -7641,23 +7637,23 @@ function Er(e) {
7641
7637
  (c) => e.startsWith("/") && c === "" ? "/" : c
7642
7638
  );
7643
7639
  }
7644
- function vi(e) {
7640
+ function gi(e) {
7645
7641
  e.sort(
7646
- (n, t) => n.score !== t.score ? t.score - n.score : ji(
7642
+ (n, t) => n.score !== t.score ? t.score - n.score : Si(
7647
7643
  n.routesMeta.map((r) => r.childrenIndex),
7648
7644
  t.routesMeta.map((r) => r.childrenIndex)
7649
7645
  )
7650
7646
  );
7651
7647
  }
7652
- var hi = /^:[\w-]+$/, xi = 3, bi = 2, wi = 1, yi = 10, Ci = -2, Xn = (e) => e === "*";
7653
- function Si(e, n) {
7648
+ var vi = /^:[\w-]+$/, hi = 3, xi = 2, bi = 1, wi = 10, yi = -2, Xn = (e) => e === "*";
7649
+ function Ci(e, n) {
7654
7650
  let t = e.split("/"), r = t.length;
7655
- return t.some(Xn) && (r += Ci), n && (r += bi), t.filter((o) => !Xn(o)).reduce(
7656
- (o, a) => o + (hi.test(a) ? xi : a === "" ? wi : yi),
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),
7657
7653
  r
7658
7654
  );
7659
7655
  }
7660
- function ji(e, n) {
7656
+ function Si(e, n) {
7661
7657
  return e.length === n.length && e.slice(0, -1).every((r, o) => r === n[o]) ? (
7662
7658
  // If two routes are siblings, we should try to match the earlier sibling
7663
7659
  // first. This allows people to have fine-grained control over the matching
@@ -7670,7 +7666,7 @@ function ji(e, n) {
7670
7666
  0
7671
7667
  );
7672
7668
  }
7673
- function Ri(e, n, t = !1) {
7669
+ function ji(e, n, t = !1) {
7674
7670
  let { routesMeta: r } = e, o = {}, a = "/", i = [];
7675
7671
  for (let l = 0; l < r.length; ++l) {
7676
7672
  let c = r[l], u = l === r.length - 1, d = a === "/" ? n : n.slice(a.length) || "/", g = gt(
@@ -7690,7 +7686,7 @@ function Ri(e, n, t = !1) {
7690
7686
  // TODO: Can this as be avoided?
7691
7687
  params: o,
7692
7688
  pathname: ke([a, g.pathname]),
7693
- pathnameBase: Mi(
7689
+ pathnameBase: Pi(
7694
7690
  ke([a, g.pathnameBase])
7695
7691
  ),
7696
7692
  route: p
@@ -7700,7 +7696,7 @@ function Ri(e, n, t = !1) {
7700
7696
  }
7701
7697
  function gt(e, n) {
7702
7698
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
7703
- let [t, r] = ki(
7699
+ let [t, r] = Ri(
7704
7700
  e.path,
7705
7701
  e.caseSensitive,
7706
7702
  e.end
@@ -7724,7 +7720,7 @@ function gt(e, n) {
7724
7720
  pattern: e
7725
7721
  };
7726
7722
  }
7727
- function ki(e, n = !1, t = !0) {
7723
+ function Ri(e, n = !1, t = !0) {
7728
7724
  $e(
7729
7725
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
7730
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(/\*$/, "/*")}".`
@@ -7735,7 +7731,7 @@ function ki(e, n = !1, t = !0) {
7735
7731
  );
7736
7732
  return e.endsWith("*") ? (r.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, n ? void 0 : "i"), r];
7737
7733
  }
7738
- function $i(e) {
7734
+ function ki(e) {
7739
7735
  try {
7740
7736
  return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
7741
7737
  } catch (n) {
@@ -7752,19 +7748,19 @@ function Fe(e, n) {
7752
7748
  let t = n.endsWith("/") ? n.length - 1 : n.length, r = e.charAt(t);
7753
7749
  return r && r !== "/" ? null : e.slice(t) || "/";
7754
7750
  }
7755
- function _i(e, n = "/") {
7751
+ function $i(e, n = "/") {
7756
7752
  let {
7757
7753
  pathname: t,
7758
7754
  search: r = "",
7759
7755
  hash: o = ""
7760
7756
  } = typeof e == "string" ? cn(e) : e;
7761
7757
  return {
7762
- pathname: t ? t.startsWith("/") ? t : Ei(t, n) : n,
7763
- search: Li(r),
7764
- hash: Fi(o)
7758
+ pathname: t ? t.startsWith("/") ? t : _i(t, n) : n,
7759
+ search: Mi(r),
7760
+ hash: Li(o)
7765
7761
  };
7766
7762
  }
7767
- function Ei(e, n) {
7763
+ function _i(e, n) {
7768
7764
  let t = n.replace(/\/+$/, "").split("/");
7769
7765
  return e.split("/").forEach((o) => {
7770
7766
  o === ".." ? t.length > 1 && t.pop() : o !== "." && t.push(o);
@@ -7775,13 +7771,13 @@ function Ht(e, n, t, r) {
7775
7771
  r
7776
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.`;
7777
7773
  }
7778
- function Pi(e) {
7774
+ function Ei(e) {
7779
7775
  return e.filter(
7780
7776
  (n, t) => t === 0 || n.route.path && n.route.path.length > 0
7781
7777
  );
7782
7778
  }
7783
7779
  function Pr(e) {
7784
- let n = Pi(e);
7780
+ let n = Ei(e);
7785
7781
  return n.map(
7786
7782
  (t, r) => r === n.length - 1 ? t.pathname : t.pathnameBase
7787
7783
  );
@@ -7811,11 +7807,11 @@ function Mr(e, n, t, r = !1) {
7811
7807
  }
7812
7808
  l = g >= 0 ? n[g] : "/";
7813
7809
  }
7814
- let c = _i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
7810
+ let c = $i(o, l), u = i && i !== "/" && i.endsWith("/"), d = (a || i === ".") && t.endsWith("/");
7815
7811
  return !c.pathname.endsWith("/") && (u || d) && (c.pathname += "/"), c;
7816
7812
  }
7817
- var ke = (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;
7818
- function Ai(e) {
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) {
7819
7815
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
7820
7816
  }
7821
7817
  var Lr = [
@@ -7827,11 +7823,11 @@ var Lr = [
7827
7823
  new Set(
7828
7824
  Lr
7829
7825
  );
7830
- var Ni = [
7826
+ var Ai = [
7831
7827
  "GET",
7832
7828
  ...Lr
7833
7829
  ];
7834
- new Set(Ni);
7830
+ new Set(Ai);
7835
7831
  var Ie = R.createContext(null);
7836
7832
  Ie.displayName = "DataRouter";
7837
7833
  var ht = R.createContext(null);
@@ -7841,12 +7837,12 @@ var Fr = R.createContext({
7841
7837
  isTransitioning: !1
7842
7838
  });
7843
7839
  Fr.displayName = "ViewTransition";
7844
- var Di = R.createContext(
7840
+ var Ni = R.createContext(
7845
7841
  /* @__PURE__ */ new Map()
7846
7842
  );
7847
- Di.displayName = "Fetchers";
7848
- var zi = R.createContext(null);
7849
- zi.displayName = "Await";
7843
+ Ni.displayName = "Fetchers";
7844
+ var Di = R.createContext(null);
7845
+ Di.displayName = "Await";
7850
7846
  var _e = R.createContext(
7851
7847
  null
7852
7848
  );
@@ -7863,7 +7859,7 @@ var Ee = R.createContext({
7863
7859
  Ee.displayName = "Route";
7864
7860
  var dn = R.createContext(null);
7865
7861
  dn.displayName = "RouteError";
7866
- function Ti(e, { relative: n } = {}) {
7862
+ function zi(e, { relative: n } = {}) {
7867
7863
  he(
7868
7864
  xt(),
7869
7865
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -7888,11 +7884,11 @@ var Ar = "You should call navigate() in a React.useEffect(), not when your compo
7888
7884
  function Nr(e) {
7889
7885
  R.useContext(_e).static || R.useLayoutEffect(e);
7890
7886
  }
7891
- function Oi() {
7887
+ function Ti() {
7892
7888
  let { isDataRoute: e } = R.useContext(Ee);
7893
- return e ? Ji() : Ii();
7889
+ return e ? Xi() : Oi();
7894
7890
  }
7895
- function Ii() {
7891
+ function Oi() {
7896
7892
  he(
7897
7893
  xt(),
7898
7894
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -7943,7 +7939,7 @@ function Ke(e, { relative: n } = {}) {
7943
7939
  [e, o, r, n]
7944
7940
  );
7945
7941
  }
7946
- function Vi(e, n, t, r) {
7942
+ function Ii(e, n, t, r) {
7947
7943
  he(
7948
7944
  xt(),
7949
7945
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -7975,7 +7971,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
7975
7971
  ), $e(
7976
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,
7977
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.`
7978
- ), Wi(
7974
+ ), Gi(
7979
7975
  m && m.map(
7980
7976
  (x) => Object.assign({}, x, {
7981
7977
  params: Object.assign({}, l, x.params),
@@ -7996,14 +7992,14 @@ Please change the parent <Route path="${x}"> to <Route path="${x === "/" ? "*" :
7996
7992
  r
7997
7993
  );
7998
7994
  }
7999
- function Hi() {
8000
- 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;
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;
8001
7997
  return console.error(
8002
7998
  "Error handled by React Router default ErrorBoundary:",
8003
7999
  e
8004
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);
8005
8001
  }
8006
- var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Component {
8002
+ var Hi = /* @__PURE__ */ R.createElement(Vi, null), Bi = class extends R.Component {
8007
8003
  constructor(e) {
8008
8004
  super(e), this.state = {
8009
8005
  location: e.location,
@@ -8042,11 +8038,11 @@ var Bi = /* @__PURE__ */ R.createElement(Hi, null), qi = class extends R.Compone
8042
8038
  )) : this.props.children;
8043
8039
  }
8044
8040
  };
8045
- function Gi({ routeContext: e, match: n, children: t }) {
8041
+ function qi({ routeContext: e, match: n, children: t }) {
8046
8042
  let r = R.useContext(Ie);
8047
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);
8048
8044
  }
8049
- function Wi(e, n = [], t = null, r = null) {
8045
+ function Gi(e, n = [], t = null, r = null) {
8050
8046
  if (e == null) {
8051
8047
  if (!t)
8052
8048
  return null;
@@ -8087,7 +8083,7 @@ function Wi(e, n = [], t = null, r = null) {
8087
8083
  return o.reduceRight(
8088
8084
  (c, u, d) => {
8089
8085
  let g, p = !1, f = null, v = null;
8090
- t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Bi, i && (l < 0 && d === 0 ? (Dr(
8086
+ t && (g = a && u.route.id ? a[u.route.id] : void 0, f = u.route.errorElement || Hi, i && (l < 0 && d === 0 ? (Dr(
8091
8087
  "route-fallback",
8092
8088
  !1,
8093
8089
  "No `HydrateFallback` element provided to render during initial hydration"
@@ -8095,7 +8091,7 @@ function Wi(e, n = [], t = null, r = null) {
8095
8091
  let m = n.concat(o.slice(0, d + 1)), b = () => {
8096
8092
  let x;
8097
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(
8098
- Gi,
8094
+ qi,
8099
8095
  {
8100
8096
  match: u,
8101
8097
  routeContext: {
@@ -8108,7 +8104,7 @@ function Wi(e, n = [], t = null, r = null) {
8108
8104
  );
8109
8105
  };
8110
8106
  return t && (u.route.ErrorBoundary || u.route.errorElement || d === 0) ? /* @__PURE__ */ R.createElement(
8111
- qi,
8107
+ Bi,
8112
8108
  {
8113
8109
  location: t.location,
8114
8110
  revalidation: t.revalidation,
@@ -8125,34 +8121,34 @@ function Wi(e, n = [], t = null, r = null) {
8125
8121
  function pn(e) {
8126
8122
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
8127
8123
  }
8128
- function Ui(e) {
8124
+ function Wi(e) {
8129
8125
  let n = R.useContext(Ie);
8130
8126
  return he(n, pn(e)), n;
8131
8127
  }
8132
- function Yi(e) {
8128
+ function Ui(e) {
8133
8129
  let n = R.useContext(ht);
8134
8130
  return he(n, pn(e)), n;
8135
8131
  }
8136
- function Zi(e) {
8132
+ function Yi(e) {
8137
8133
  let n = R.useContext(Ee);
8138
8134
  return he(n, pn(e)), n;
8139
8135
  }
8140
8136
  function fn(e) {
8141
- let n = Zi(e), t = n.matches[n.matches.length - 1];
8137
+ let n = Yi(e), t = n.matches[n.matches.length - 1];
8142
8138
  return he(
8143
8139
  t.route.id,
8144
8140
  `${e} can only be used on routes that contain a unique "id"`
8145
8141
  ), t.route.id;
8146
8142
  }
8147
- function Ki() {
8143
+ function Zi() {
8148
8144
  return fn(
8149
8145
  "useRouteId"
8150
8146
  /* UseRouteId */
8151
8147
  );
8152
8148
  }
8153
- function Xi() {
8149
+ function Ki() {
8154
8150
  var r;
8155
- let e = R.useContext(dn), n = Yi(
8151
+ let e = R.useContext(dn), n = Ui(
8156
8152
  "useRouteError"
8157
8153
  /* UseRouteError */
8158
8154
  ), t = fn(
@@ -8161,8 +8157,8 @@ function Xi() {
8161
8157
  );
8162
8158
  return e !== void 0 ? e : (r = n.errors) == null ? void 0 : r[t];
8163
8159
  }
8164
- function Ji() {
8165
- let { router: e } = Ui(
8160
+ function Xi() {
8161
+ let { router: e } = Wi(
8166
8162
  "useNavigate"
8167
8163
  /* UseNavigateStable */
8168
8164
  ), n = fn(
@@ -8182,37 +8178,37 @@ var Jn = {};
8182
8178
  function Dr(e, n, t) {
8183
8179
  !n && !Jn[e] && (Jn[e] = !0, $e(!1, t));
8184
8180
  }
8185
- R.memo(Qi);
8186
- function Qi({
8181
+ R.memo(Ji);
8182
+ function Ji({
8187
8183
  routes: e,
8188
8184
  future: n,
8189
8185
  state: t
8190
8186
  }) {
8191
- return Vi(e, void 0, t, n);
8187
+ return Ii(e, void 0, t, n);
8192
8188
  }
8193
8189
  var ut = "get", dt = "application/x-www-form-urlencoded";
8194
8190
  function bt(e) {
8195
8191
  return e != null && typeof e.tagName == "string";
8196
8192
  }
8197
- function el(e) {
8193
+ function Qi(e) {
8198
8194
  return bt(e) && e.tagName.toLowerCase() === "button";
8199
8195
  }
8200
- function tl(e) {
8196
+ function el(e) {
8201
8197
  return bt(e) && e.tagName.toLowerCase() === "form";
8202
8198
  }
8203
- function nl(e) {
8199
+ function tl(e) {
8204
8200
  return bt(e) && e.tagName.toLowerCase() === "input";
8205
8201
  }
8206
- function rl(e) {
8202
+ function nl(e) {
8207
8203
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
8208
8204
  }
8209
- function ol(e, n) {
8205
+ function rl(e, n) {
8210
8206
  return e.button === 0 && // Ignore everything but left clicks
8211
8207
  (!n || n === "_self") && // Let browser handle "target=_blank" etc.
8212
- !rl(e);
8208
+ !nl(e);
8213
8209
  }
8214
8210
  var ct = null;
8215
- function al() {
8211
+ function ol() {
8216
8212
  if (ct === null)
8217
8213
  try {
8218
8214
  new FormData(
@@ -8225,30 +8221,30 @@ function al() {
8225
8221
  }
8226
8222
  return ct;
8227
8223
  }
8228
- var il = /* @__PURE__ */ new Set([
8224
+ var al = /* @__PURE__ */ new Set([
8229
8225
  "application/x-www-form-urlencoded",
8230
8226
  "multipart/form-data",
8231
8227
  "text/plain"
8232
8228
  ]);
8233
8229
  function Bt(e) {
8234
- return e != null && !il.has(e) ? ($e(
8230
+ return e != null && !al.has(e) ? ($e(
8235
8231
  !1,
8236
8232
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`
8237
8233
  ), null) : e;
8238
8234
  }
8239
- function ll(e, n) {
8235
+ function il(e, n) {
8240
8236
  let t, r, o, a, i;
8241
- if (tl(e)) {
8237
+ if (el(e)) {
8242
8238
  let l = e.getAttribute("action");
8243
8239
  r = l ? Fe(l, n) : null, t = e.getAttribute("method") || ut, o = Bt(e.getAttribute("enctype")) || dt, a = new FormData(e);
8244
- } else if (el(e) || nl(e) && (e.type === "submit" || e.type === "image")) {
8240
+ } else if (Qi(e) || tl(e) && (e.type === "submit" || e.type === "image")) {
8245
8241
  let l = e.form;
8246
8242
  if (l == null)
8247
8243
  throw new Error(
8248
8244
  'Cannot submit a <button> or <input type="submit"> without a <form>'
8249
8245
  );
8250
8246
  let c = e.getAttribute("formaction") || l.getAttribute("action");
8251
- 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), !al()) {
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()) {
8252
8248
  let { name: u, type: d, value: g } = e;
8253
8249
  if (d === "image") {
8254
8250
  let p = u ? `${u}.` : "";
@@ -8269,7 +8265,7 @@ function mn(e, n) {
8269
8265
  if (e === !1 || e === null || typeof e > "u")
8270
8266
  throw new Error(n);
8271
8267
  }
8272
- function sl(e, n, t) {
8268
+ function ll(e, n, t) {
8273
8269
  let r = typeof e == "string" ? new URL(
8274
8270
  e,
8275
8271
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -8278,7 +8274,7 @@ function sl(e, n, t) {
8278
8274
  ) : e;
8279
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;
8280
8276
  }
8281
- async function cl(e, n) {
8277
+ async function sl(e, n) {
8282
8278
  if (e.id in n)
8283
8279
  return n[e.id];
8284
8280
  try {
@@ -8295,22 +8291,22 @@ async function cl(e, n) {
8295
8291
  });
8296
8292
  }
8297
8293
  }
8298
- function ul(e) {
8294
+ function cl(e) {
8299
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";
8300
8296
  }
8301
- async function dl(e, n, t) {
8297
+ async function ul(e, n, t) {
8302
8298
  let r = await Promise.all(
8303
8299
  e.map(async (o) => {
8304
8300
  let a = n.routes[o.route.id];
8305
8301
  if (a) {
8306
- let i = await cl(a, t);
8302
+ let i = await sl(a, t);
8307
8303
  return i.links ? i.links() : [];
8308
8304
  }
8309
8305
  return [];
8310
8306
  })
8311
8307
  );
8312
- return gl(
8313
- r.flat(1).filter(ul).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
8308
+ return ml(
8309
+ r.flat(1).filter(cl).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
8314
8310
  (o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
8315
8311
  )
8316
8312
  );
@@ -8351,8 +8347,8 @@ function Qn(e, n, t, r, o, a) {
8351
8347
  return !0;
8352
8348
  }) : [];
8353
8349
  }
8354
- function pl(e, n, { includeHydrateFallback: t } = {}) {
8355
- return fl(
8350
+ function dl(e, n, { includeHydrateFallback: t } = {}) {
8351
+ return pl(
8356
8352
  e.map((r) => {
8357
8353
  let o = n.routes[r.route.id];
8358
8354
  if (!o) return [];
@@ -8361,19 +8357,19 @@ function pl(e, n, { includeHydrateFallback: t } = {}) {
8361
8357
  }).flat(1)
8362
8358
  );
8363
8359
  }
8364
- function fl(e) {
8360
+ function pl(e) {
8365
8361
  return [...new Set(e)];
8366
8362
  }
8367
- function ml(e) {
8363
+ function fl(e) {
8368
8364
  let n = {}, t = Object.keys(e).sort();
8369
8365
  for (let r of t)
8370
8366
  n[r] = e[r];
8371
8367
  return n;
8372
8368
  }
8373
- function gl(e, n) {
8369
+ function ml(e, n) {
8374
8370
  let t = /* @__PURE__ */ new Set();
8375
8371
  return new Set(n), e.reduce((r, o) => {
8376
- let a = JSON.stringify(ml(o));
8372
+ let a = JSON.stringify(fl(o));
8377
8373
  return t.has(a) || (t.add(a), r.push({ key: a, link: o })), r;
8378
8374
  }, []);
8379
8375
  }
@@ -8384,7 +8380,7 @@ function zr() {
8384
8380
  "You must render this element inside a <DataRouterContext.Provider> element"
8385
8381
  ), e;
8386
8382
  }
8387
- function vl() {
8383
+ function gl() {
8388
8384
  let e = R.useContext(ht);
8389
8385
  return mn(
8390
8386
  e,
@@ -8400,7 +8396,7 @@ function Tr() {
8400
8396
  "You must render this element inside a <HydratedRouter> element"
8401
8397
  ), e;
8402
8398
  }
8403
- function hl(e, n) {
8399
+ function vl(e, n) {
8404
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);
8405
8401
  R.useEffect(() => {
8406
8402
  if (e === "render" && i(!0), e === "viewport") {
@@ -8445,18 +8441,18 @@ function Ge(e, n) {
8445
8441
  e && e(t), t.defaultPrevented || n(t);
8446
8442
  };
8447
8443
  }
8448
- function xl({ page: e, ...n }) {
8444
+ function hl({ page: e, ...n }) {
8449
8445
  let { router: t } = zr(), r = R.useMemo(
8450
8446
  () => $r(t.routes, e, t.basename),
8451
8447
  [t.routes, e, t.basename]
8452
8448
  );
8453
- return r ? /* @__PURE__ */ R.createElement(wl, { page: e, matches: r, ...n }) : null;
8449
+ return r ? /* @__PURE__ */ R.createElement(bl, { page: e, matches: r, ...n }) : null;
8454
8450
  }
8455
- function bl(e) {
8451
+ function xl(e) {
8456
8452
  let { manifest: n, routeModules: t } = Tr(), [r, o] = R.useState([]);
8457
8453
  return R.useEffect(() => {
8458
8454
  let a = !1;
8459
- return dl(e, n, t).then(
8455
+ return ul(e, n, t).then(
8460
8456
  (i) => {
8461
8457
  a || o(i);
8462
8458
  }
@@ -8465,12 +8461,12 @@ function bl(e) {
8465
8461
  };
8466
8462
  }, [e, n, t]), r;
8467
8463
  }
8468
- function wl({
8464
+ function bl({
8469
8465
  page: e,
8470
8466
  matches: n,
8471
8467
  ...t
8472
8468
  }) {
8473
- let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = vl(), u = R.useMemo(
8469
+ let r = De(), { manifest: o, routeModules: a } = Tr(), { basename: i } = zr(), { loaderData: l, matches: c } = gl(), u = R.useMemo(
8474
8470
  () => Qn(
8475
8471
  e,
8476
8472
  n,
@@ -8500,7 +8496,7 @@ function wl({
8500
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));
8501
8497
  }), v.size === 0)
8502
8498
  return [];
8503
- let b = sl(e, i, "data");
8499
+ let b = ll(e, i, "data");
8504
8500
  return m && v.size > 0 && b.searchParams.set(
8505
8501
  "_routes",
8506
8502
  n.filter((x) => v.has(x.route.id)).map((x) => x.route.id).join(",")
@@ -8515,16 +8511,16 @@ function wl({
8515
8511
  e,
8516
8512
  a
8517
8513
  ]), p = R.useMemo(
8518
- () => pl(d, o),
8514
+ () => dl(d, o),
8519
8515
  [d, o]
8520
- ), f = bl(d);
8516
+ ), f = xl(d);
8521
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 }) => (
8522
8518
  // these don't spread `linkProps` because they are full link descriptors
8523
8519
  // already with their own props
8524
8520
  /* @__PURE__ */ R.createElement("link", { key: v, ...m })
8525
8521
  )));
8526
8522
  }
8527
- function yl(...e) {
8523
+ function wl(...e) {
8528
8524
  return (n) => {
8529
8525
  e.forEach((t) => {
8530
8526
  typeof t == "function" ? t(n) : t != null && (t.current = n);
@@ -8563,10 +8559,10 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
8563
8559
  `<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
8564
8560
  );
8565
8561
  }
8566
- let k = Ti(u, { relative: o }), [w, $, y] = hl(
8562
+ let k = zi(u, { relative: o }), [w, $, y] = vl(
8567
8563
  r,
8568
8564
  p
8569
- ), O = jl(u, {
8565
+ ), O = Sl(u, {
8570
8566
  replace: i,
8571
8567
  state: l,
8572
8568
  target: c,
@@ -8586,13 +8582,13 @@ var Ir = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, vn = R.forwardRef(
8586
8582
  ...y,
8587
8583
  href: b || k,
8588
8584
  onClick: x || a ? n : D,
8589
- ref: yl(f, $),
8585
+ ref: wl(f, $),
8590
8586
  target: c,
8591
8587
  "data-discover": !m && t === "render" ? "true" : void 0
8592
8588
  }
8593
8589
  )
8594
8590
  );
8595
- return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(xl, { page: k })) : V;
8591
+ return w && !m ? /* @__PURE__ */ R.createElement(R.Fragment, null, V, /* @__PURE__ */ R.createElement(hl, { page: k })) : V;
8596
8592
  }
8597
8593
  );
8598
8594
  vn.displayName = "Link";
@@ -8610,7 +8606,7 @@ var Vr = R.forwardRef(
8610
8606
  }, d) {
8611
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
8612
8608
  // eslint-disable-next-line react-hooks/rules-of-hooks
8613
- El(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;
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;
8614
8610
  t || (k = k.toLowerCase(), w = w ? w.toLowerCase() : null, x = x.toLowerCase()), w && m && (w = Fe(w, m) || w);
8615
8611
  const $ = x !== "/" && x.endsWith("/") ? x.length - 1 : x.length;
8616
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 = {
@@ -8641,7 +8637,7 @@ var Vr = R.forwardRef(
8641
8637
  }
8642
8638
  );
8643
8639
  Vr.displayName = "NavLink";
8644
- var Cl = R.forwardRef(
8640
+ var yl = R.forwardRef(
8645
8641
  ({
8646
8642
  discover: e = "render",
8647
8643
  fetcherKey: n,
@@ -8657,7 +8653,7 @@ var Cl = R.forwardRef(
8657
8653
  viewTransition: g,
8658
8654
  ...p
8659
8655
  }, f) => {
8660
- let v = $l(), m = _l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && Ir.test(l), k = (w) => {
8656
+ let v = kl(), m = $l(l, { relative: u }), b = i.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && Ir.test(l), k = (w) => {
8661
8657
  if (c && c(w), w.defaultPrevented) return;
8662
8658
  w.preventDefault();
8663
8659
  let $ = w.nativeEvent.submitter, y = ($ == null ? void 0 : $.getAttribute("formmethod")) || i;
@@ -8685,15 +8681,15 @@ var Cl = R.forwardRef(
8685
8681
  );
8686
8682
  }
8687
8683
  );
8688
- Cl.displayName = "Form";
8689
- function Sl(e) {
8684
+ yl.displayName = "Form";
8685
+ function Cl(e) {
8690
8686
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
8691
8687
  }
8692
8688
  function Hr(e) {
8693
8689
  let n = R.useContext(Ie);
8694
- return he(n, Sl(e)), n;
8690
+ return he(n, Cl(e)), n;
8695
8691
  }
8696
- function jl(e, {
8692
+ function Sl(e, {
8697
8693
  target: n,
8698
8694
  replace: t,
8699
8695
  state: r,
@@ -8701,10 +8697,10 @@ function jl(e, {
8701
8697
  relative: a,
8702
8698
  viewTransition: i
8703
8699
  } = {}) {
8704
- let l = Oi(), c = De(), u = Ke(e, { relative: a });
8700
+ let l = Ti(), c = De(), u = Ke(e, { relative: a });
8705
8701
  return R.useCallback(
8706
8702
  (d) => {
8707
- if (ol(d, n)) {
8703
+ if (rl(d, n)) {
8708
8704
  d.preventDefault();
8709
8705
  let g = t !== void 0 ? t : nn(c) === nn(u);
8710
8706
  l(e, {
@@ -8730,20 +8726,20 @@ function jl(e, {
8730
8726
  ]
8731
8727
  );
8732
8728
  }
8733
- var Rl = 0, kl = () => `__${String(++Rl)}__`;
8734
- function $l() {
8729
+ var jl = 0, Rl = () => `__${String(++jl)}__`;
8730
+ function kl() {
8735
8731
  let { router: e } = Hr(
8736
8732
  "useSubmit"
8737
8733
  /* UseSubmit */
8738
- ), { basename: n } = R.useContext(_e), t = Ki();
8734
+ ), { basename: n } = R.useContext(_e), t = Zi();
8739
8735
  return R.useCallback(
8740
8736
  async (r, o = {}) => {
8741
- let { action: a, method: i, encType: l, formData: c, body: u } = ll(
8737
+ let { action: a, method: i, encType: l, formData: c, body: u } = il(
8742
8738
  r,
8743
8739
  n
8744
8740
  );
8745
8741
  if (o.navigate === !1) {
8746
- let d = o.fetcherKey || kl();
8742
+ let d = o.fetcherKey || Rl();
8747
8743
  await e.fetch(d, t, o.action || a, {
8748
8744
  preventScrollReset: o.preventScrollReset,
8749
8745
  formData: c,
@@ -8769,7 +8765,7 @@ function $l() {
8769
8765
  [e, n, t]
8770
8766
  );
8771
8767
  }
8772
- function _l(e, { relative: n } = {}) {
8768
+ function $l(e, { relative: n } = {}) {
8773
8769
  let { basename: t } = R.useContext(_e), r = R.useContext(Ee);
8774
8770
  he(r, "useFormAction must be used inside a RouteContext");
8775
8771
  let [o] = r.matches.slice(-1), a = { ...Ke(e || ".", { relative: n }) }, i = De();
@@ -8784,7 +8780,7 @@ function _l(e, { relative: n } = {}) {
8784
8780
  }
8785
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);
8786
8782
  }
8787
- function El(e, { relative: n } = {}) {
8783
+ function _l(e, { relative: n } = {}) {
8788
8784
  let t = R.useContext(Fr);
8789
8785
  he(
8790
8786
  t != null,
@@ -8835,7 +8831,7 @@ const ss = ({
8835
8831
  }
8836
8832
  ) : /* @__PURE__ */ s.jsx("span", { className: "text-color-gray-500 font-medium", children: r.label }),
8837
8833
  o < e.length - 1 && /* @__PURE__ */ s.jsx("span", { className: "mx-2 text-color-gray-400", children: n })
8838
- ] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], Pl = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], us = ({
8834
+ ] }, o)) }) }), er = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], El = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], us = ({
8839
8835
  mode: e = "single",
8840
8836
  type: n = "inline",
8841
8837
  showTime: t = !1,
@@ -9004,7 +9000,7 @@ const ss = ({
9004
9000
  )
9005
9001
  ] }),
9006
9002
  /* @__PURE__ */ s.jsxs("div", { className: "grid grid-columns-7 gap-1 text-center text-sm mb-2", children: [
9007
- Pl.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
9003
+ El.map((S) => /* @__PURE__ */ s.jsx("div", { className: "font-semibold", children: S }, S)),
9008
9004
  z().map((S, j) => /* @__PURE__ */ s.jsx(
9009
9005
  "div",
9010
9006
  {
@@ -9058,7 +9054,7 @@ const ss = ({
9058
9054
  ]
9059
9055
  }
9060
9056
  ),
9061
- 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 }) })
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 }) })
9062
9058
  ] });
9063
9059
  }, ds = ({
9064
9060
  tabs: e,
@@ -9110,7 +9106,7 @@ const ss = ({
9110
9106
  }, ps = ({
9111
9107
  stats: e = [],
9112
9108
  className: n = ""
9113
- }) => /* @__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(
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(
9114
9110
  "div",
9115
9111
  {
9116
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
@@ -9145,7 +9141,7 @@ function fs({
9145
9141
  c(d), d.onClick && d.onClick(), i && i(d);
9146
9142
  };
9147
9143
  return /* @__PURE__ */ s.jsx(s.Fragment, { children: /* @__PURE__ */ s.jsx(
9148
- di,
9144
+ ui,
9149
9145
  {
9150
9146
  open: o,
9151
9147
  onClose: a,
@@ -9202,26 +9198,27 @@ export {
9202
9198
  cs as Breadcrumbs,
9203
9199
  Gt as Button,
9204
9200
  ve as COLOR_MAP,
9205
- ii as Card,
9206
- Nl as CardWrapper,
9201
+ ai as Card,
9202
+ Al as CardWrapper,
9207
9203
  Kl as Carousel,
9208
- Dl as Checkbox,
9204
+ Nl as Checkbox,
9209
9205
  ps as DashboardStatBoxes,
9210
9206
  us as DatePicker,
9211
- ci as Dialog,
9207
+ si as Dialog,
9212
9208
  es as Divider,
9213
- di as Drawer,
9214
- zl as Dropdown,
9215
- Tl as DropzoneUploader,
9209
+ ui as Drawer,
9210
+ Dl as Dropdown,
9211
+ zl as DropzoneUploader,
9216
9212
  Xl as EmptyState,
9217
9213
  je as IconButton,
9218
- Bl as List,
9214
+ Hl as List,
9215
+ Bl as ListItem,
9219
9216
  oa as Menu,
9220
9217
  sa as OtpInput,
9221
- ri as Pagination,
9218
+ ni as Pagination,
9222
9219
  da as PasswordInput,
9223
- Ol as Pill,
9224
- Il as ProfileImageShowcase,
9220
+ Tl as Pill,
9221
+ Ol as ProfileImageShowcase,
9225
9222
  Yl as Progress,
9226
9223
  qt as RANGE_COLOR_MAP,
9227
9224
  ts as RadioGroup,
@@ -9231,15 +9228,15 @@ export {
9231
9228
  ql as Skeleton,
9232
9229
  Wl as Slider,
9233
9230
  Ul as Snackbar,
9234
- Vl as Stepper,
9235
- Hl as Table,
9231
+ Il as Stepper,
9232
+ Vl as Table,
9236
9233
  ds as Tabs,
9237
9234
  Gl as TextArea,
9238
9235
  vr as TextInput,
9239
9236
  Ql as ToggleButton,
9240
9237
  Jl as ToggleSwitch,
9241
9238
  rs as Tooltip,
9242
- ni as Typography,
9243
- Fl as extendColorMap,
9244
- Al as extendRangeColorMap
9239
+ ti as Typography,
9240
+ Ll as extendColorMap,
9241
+ Fl as extendRangeColorMap
9245
9242
  };