@sudobility/marketing-components 2.0.2 → 2.0.4

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/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as c from "react";
2
2
  import fe from "react";
3
- import { cn as R, useLayout as Ae } from "@sudobility/components";
4
- import { textVariants as Y, ui as Qe } from "@sudobility/design";
3
+ import { cn as R } from "@sudobility/components";
4
+ import { textVariants as Y, ui as Ze } from "@sudobility/design";
5
5
  var K = { exports: {} }, V = {};
6
6
  var Ne;
7
- function et() {
7
+ function Qe() {
8
8
  if (Ne) return V;
9
9
  Ne = 1;
10
10
  var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
@@ -27,7 +27,7 @@ function et() {
27
27
  }
28
28
  var B = {};
29
29
  var Pe;
30
- function tt() {
30
+ function et() {
31
31
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
32
32
  function e(s) {
33
33
  if (s == null) return null;
@@ -172,7 +172,7 @@ function tt() {
172
172
  var N = x.children;
173
173
  if (N !== void 0)
174
174
  if (S)
175
- if (Ke(N)) {
175
+ if (Xe(N)) {
176
176
  for (S = 0; S < N.length; S++)
177
177
  d(N[S]);
178
178
  Object.freeze && Object.freeze(N);
@@ -183,8 +183,8 @@ function tt() {
183
183
  else d(N);
184
184
  if (we.call(x, "key")) {
185
185
  N = e(s);
186
- var z = Object.keys(x).filter(function(Ze) {
187
- return Ze !== "key";
186
+ var z = Object.keys(x).filter(function(Ke) {
187
+ return Ke !== "key";
188
188
  });
189
189
  S = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", Se[N + S] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
190
190
  `A props object containing a "key" prop is being spread into JSX:
@@ -222,7 +222,7 @@ React keys must be passed directly to JSX without using spread:
222
222
  function p(s) {
223
223
  return typeof s == "object" && s !== null && s.$$typeof === y;
224
224
  }
225
- var g = fe, y = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), O = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, Ke = Array.isArray, le = console.createTask ? console.createTask : function() {
225
+ var g = fe, y = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), O = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), q = Symbol.for("react.client.reference"), oe = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, Xe = Array.isArray, le = console.createTask ? console.createTask : function() {
226
226
  return null;
227
227
  };
228
228
  g = {
@@ -258,11 +258,11 @@ React keys must be passed directly to JSX without using spread:
258
258
  })()), B;
259
259
  }
260
260
  var je;
261
- function rt() {
262
- return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = et() : K.exports = tt()), K.exports;
261
+ function tt() {
262
+ return je || (je = 1, process.env.NODE_ENV === "production" ? K.exports = Qe() : K.exports = et()), K.exports;
263
263
  }
264
- var h = rt();
265
- const Nr = ({
264
+ var h = tt();
265
+ const Sr = ({
266
266
  className: e,
267
267
  children: r,
268
268
  disabled: t
@@ -281,7 +281,7 @@ const Nr = ({
281
281
  "aria-label": "CrmDashboard",
282
282
  children: r || "CrmDashboard Component"
283
283
  }
284
- ), Pr = ({
284
+ ), Nr = ({
285
285
  className: e,
286
286
  children: r,
287
287
  disabled: t = !1,
@@ -304,7 +304,7 @@ const Nr = ({
304
304
  children: r || "UctaUbanner Component"
305
305
  }
306
306
  );
307
- function nt({
307
+ function rt({
308
308
  title: e,
309
309
  titleId: r,
310
310
  ...t
@@ -327,10 +327,10 @@ function nt({
327
327
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
328
328
  }));
329
329
  }
330
- const at = /* @__PURE__ */ c.forwardRef(nt), jr = ({
330
+ const nt = /* @__PURE__ */ c.forwardRef(rt), Pr = ({
331
331
  title: e,
332
332
  description: r,
333
- icon: t = at,
333
+ icon: t = nt,
334
334
  iconVariant: n = "success",
335
335
  size: a = "md",
336
336
  className: o
@@ -390,7 +390,7 @@ const at = /* @__PURE__ */ c.forwardRef(nt), jr = ({
390
390
  )
391
391
  ] })
392
392
  ] });
393
- }, _r = ({
393
+ }, jr = ({
394
394
  className: e,
395
395
  children: r,
396
396
  disabled: t = !1,
@@ -412,7 +412,7 @@ const at = /* @__PURE__ */ c.forwardRef(nt), jr = ({
412
412
  "aria-label": "UfeatureUspotlight",
413
413
  children: r || "UfeatureUspotlight Component"
414
414
  }
415
- ), Tr = ({
415
+ ), _r = ({
416
416
  badgeIcon: e,
417
417
  badgeText: r,
418
418
  badgeColor: t = "blue",
@@ -424,7 +424,7 @@ const at = /* @__PURE__ */ c.forwardRef(nt), jr = ({
424
424
  className: i,
425
425
  children: f
426
426
  }) => {
427
- const { containerClass: m } = Ae(), p = {
427
+ const m = "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", p = {
428
428
  blue: "bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",
429
429
  green: "bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",
430
430
  purple: "bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",
@@ -528,19 +528,19 @@ function me(e) {
528
528
  }
529
529
  return r;
530
530
  }
531
- function Oe(e, r, t = "/") {
532
- return ot(e, r, t, !1);
531
+ function Ae(e, r, t = "/") {
532
+ return at(e, r, t, !1);
533
533
  }
534
- function ot(e, r, t, n) {
534
+ function at(e, r, t, n) {
535
535
  let a = typeof r == "string" ? me(r) : r, o = F(a.pathname || "/", t);
536
536
  if (o == null)
537
537
  return null;
538
- let l = Ue(e);
539
- lt(l);
538
+ let l = Oe(e);
539
+ ot(l);
540
540
  let u = null;
541
541
  for (let i = 0; u == null && i < l.length; ++i) {
542
- let f = bt(o);
543
- u = pt(
542
+ let f = gt(o);
543
+ u = ht(
544
544
  l[i],
545
545
  f,
546
546
  n
@@ -548,7 +548,7 @@ function ot(e, r, t, n) {
548
548
  }
549
549
  return u;
550
550
  }
551
- function Ue(e, r = [], t = [], n = "", a = !1) {
551
+ function Oe(e, r = [], t = [], n = "", a = !1) {
552
552
  let o = (l, u, i = a, f) => {
553
553
  let m = {
554
554
  relativePath: f === void 0 ? l.path || "" : f,
@@ -570,7 +570,7 @@ function Ue(e, r = [], t = [], n = "", a = !1) {
570
570
  // @ts-expect-error
571
571
  l.index !== !0,
572
572
  `Index routes must not have child routes. Please remove all child routes from route path "${d}".`
573
- ), Ue(
573
+ ), Oe(
574
574
  l.children,
575
575
  r,
576
576
  p,
@@ -578,7 +578,7 @@ function Ue(e, r = [], t = [], n = "", a = !1) {
578
578
  i
579
579
  )), !(l.path == null && !l.index) && r.push({
580
580
  path: d,
581
- score: mt(d, l.index),
581
+ score: ft(d, l.index),
582
582
  routesMeta: p
583
583
  });
584
584
  };
@@ -586,17 +586,17 @@ function Ue(e, r = [], t = [], n = "", a = !1) {
586
586
  if (l.path === "" || !l.path?.includes("?"))
587
587
  o(l, u);
588
588
  else
589
- for (let i of Fe(l.path))
589
+ for (let i of Ue(l.path))
590
590
  o(l, u, !0, i);
591
591
  }), r;
592
592
  }
593
- function Fe(e) {
593
+ function Ue(e) {
594
594
  let r = e.split("/");
595
595
  if (r.length === 0) return [];
596
596
  let [t, ...n] = r, a = t.endsWith("?"), o = t.replace(/\?$/, "");
597
597
  if (n.length === 0)
598
598
  return a ? [o, ""] : [o];
599
- let l = Fe(n.join("/")), u = [];
599
+ let l = Ue(n.join("/")), u = [];
600
600
  return u.push(
601
601
  ...l.map(
602
602
  (i) => i === "" ? o : [o, i].join("/")
@@ -605,23 +605,23 @@ function Fe(e) {
605
605
  (i) => e.startsWith("/") && i === "" ? "/" : i
606
606
  );
607
607
  }
608
- function lt(e) {
608
+ function ot(e) {
609
609
  e.sort(
610
- (r, t) => r.score !== t.score ? t.score - r.score : ht(
610
+ (r, t) => r.score !== t.score ? t.score - r.score : mt(
611
611
  r.routesMeta.map((n) => n.childrenIndex),
612
612
  t.routesMeta.map((n) => n.childrenIndex)
613
613
  )
614
614
  );
615
615
  }
616
- var it = /^:[\w-]+$/, st = 3, ut = 2, ct = 1, dt = 10, ft = -2, _e = (e) => e === "*";
617
- function mt(e, r) {
616
+ var lt = /^:[\w-]+$/, it = 3, st = 2, ut = 1, ct = 10, dt = -2, _e = (e) => e === "*";
617
+ function ft(e, r) {
618
618
  let t = e.split("/"), n = t.length;
619
- return t.some(_e) && (n += ft), r && (n += ut), t.filter((a) => !_e(a)).reduce(
620
- (a, o) => a + (it.test(o) ? st : o === "" ? ct : dt),
619
+ return t.some(_e) && (n += dt), r && (n += st), t.filter((a) => !_e(a)).reduce(
620
+ (a, o) => a + (lt.test(o) ? it : o === "" ? ut : ct),
621
621
  n
622
622
  );
623
623
  }
624
- function ht(e, r) {
624
+ function mt(e, r) {
625
625
  return e.length === r.length && e.slice(0, -1).every((n, a) => n === r[a]) ? (
626
626
  // If two routes are siblings, we should try to match the earlier sibling
627
627
  // first. This allows people to have fine-grained control over the matching
@@ -634,7 +634,7 @@ function ht(e, r) {
634
634
  0
635
635
  );
636
636
  }
637
- function pt(e, r, t = !1) {
637
+ function ht(e, r, t = !1) {
638
638
  let { routesMeta: n } = e, a = {}, o = "/", l = [];
639
639
  for (let u = 0; u < n.length; ++u) {
640
640
  let i = n[u], f = u === n.length - 1, m = o === "/" ? r : r.slice(o.length) || "/", d = te(
@@ -654,7 +654,7 @@ function pt(e, r, t = !1) {
654
654
  // TODO: Can this as be avoided?
655
655
  params: a,
656
656
  pathname: L([o, d.pathname]),
657
- pathnameBase: kt(
657
+ pathnameBase: wt(
658
658
  L([o, d.pathnameBase])
659
659
  ),
660
660
  route: p
@@ -664,7 +664,7 @@ function pt(e, r, t = !1) {
664
664
  }
665
665
  function te(e, r) {
666
666
  typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
667
- let [t, n] = gt(
667
+ let [t, n] = pt(
668
668
  e.path,
669
669
  e.caseSensitive,
670
670
  e.end
@@ -688,7 +688,7 @@ function te(e, r) {
688
688
  pattern: e
689
689
  };
690
690
  }
691
- function gt(e, r = !1, t = !0) {
691
+ function pt(e, r = !1, t = !0) {
692
692
  _(
693
693
  e === "*" || !e.endsWith("*") || e.endsWith("/*"),
694
694
  `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(/\*$/, "/*")}".`
@@ -699,7 +699,7 @@ function gt(e, r = !1, t = !0) {
699
699
  ).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
700
700
  return e.endsWith("*") ? (n.push({ paramName: "*" }), a += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? a += "\\/*$" : e !== "" && e !== "/" && (a += "(?:(?=\\/|$))"), [new RegExp(a, r ? void 0 : "i"), n];
701
701
  }
702
- function bt(e) {
702
+ function gt(e) {
703
703
  try {
704
704
  return e.split("/").map((r) => decodeURIComponent(r).replace(/\//g, "%2F")).join("/");
705
705
  } catch (r) {
@@ -716,15 +716,15 @@ function F(e, r) {
716
716
  let t = r.endsWith("/") ? r.length - 1 : r.length, n = e.charAt(t);
717
717
  return n && n !== "/" ? null : e.slice(t) || "/";
718
718
  }
719
- var xt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, yt = (e) => xt.test(e);
720
- function vt(e, r = "/") {
719
+ var bt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xt = (e) => bt.test(e);
720
+ function yt(e, r = "/") {
721
721
  let {
722
722
  pathname: t,
723
723
  search: n = "",
724
724
  hash: a = ""
725
725
  } = typeof e == "string" ? me(e) : e, o;
726
726
  if (t)
727
- if (yt(t))
727
+ if (xt(t))
728
728
  o = t;
729
729
  else {
730
730
  if (t.includes("//")) {
@@ -740,8 +740,8 @@ function vt(e, r = "/") {
740
740
  o = r;
741
741
  return {
742
742
  pathname: o,
743
- search: Et(n),
744
- hash: Rt(a)
743
+ search: kt(n),
744
+ hash: Et(a)
745
745
  };
746
746
  }
747
747
  function Te(e, r) {
@@ -755,18 +755,18 @@ function ue(e, r, t, n) {
755
755
  n
756
756
  )}]. 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.`;
757
757
  }
758
- function wt(e) {
758
+ function vt(e) {
759
759
  return e.filter(
760
760
  (r, t) => t === 0 || r.route.path && r.route.path.length > 0
761
761
  );
762
762
  }
763
- function Ie(e) {
764
- let r = wt(e);
763
+ function Fe(e) {
764
+ let r = vt(e);
765
765
  return r.map(
766
766
  (t, n) => n === r.length - 1 ? t.pathname : t.pathnameBase
767
767
  );
768
768
  }
769
- function De(e, r, t, n = !1) {
769
+ function Ie(e, r, t, n = !1) {
770
770
  let a;
771
771
  typeof e == "string" ? a = me(e) : (a = { ...e }, P(
772
772
  !a.pathname || !a.pathname.includes("?"),
@@ -791,43 +791,43 @@ function De(e, r, t, n = !1) {
791
791
  }
792
792
  u = d >= 0 ? r[d] : "/";
793
793
  }
794
- let i = vt(a, u), f = l && l !== "/" && l.endsWith("/"), m = (o || l === ".") && t.endsWith("/");
794
+ let i = yt(a, u), f = l && l !== "/" && l.endsWith("/"), m = (o || l === ".") && t.endsWith("/");
795
795
  return !i.pathname.endsWith("/") && (f || m) && (i.pathname += "/"), i;
796
796
  }
797
- var L = (e) => e.join("/").replace(/\/\/+/g, "/"), kt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Et = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Rt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
798
- function Ct(e) {
797
+ var L = (e) => e.join("/").replace(/\/\/+/g, "/"), wt = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), kt = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Et = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
798
+ function Rt(e) {
799
799
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
800
800
  }
801
801
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
802
- var Me = [
802
+ var De = [
803
803
  "POST",
804
804
  "PUT",
805
805
  "PATCH",
806
806
  "DELETE"
807
807
  ];
808
808
  new Set(
809
- Me
809
+ De
810
810
  );
811
- var St = [
811
+ var Ct = [
812
812
  "GET",
813
- ...Me
813
+ ...De
814
814
  ];
815
- new Set(St);
815
+ new Set(Ct);
816
816
  var H = c.createContext(null);
817
817
  H.displayName = "DataRouter";
818
818
  var re = c.createContext(null);
819
819
  re.displayName = "DataRouterState";
820
820
  c.createContext(!1);
821
- var We = c.createContext({
821
+ var Me = c.createContext({
822
822
  isTransitioning: !1
823
823
  });
824
- We.displayName = "ViewTransition";
825
- var Nt = c.createContext(
824
+ Me.displayName = "ViewTransition";
825
+ var St = c.createContext(
826
826
  /* @__PURE__ */ new Map()
827
827
  );
828
- Nt.displayName = "Fetchers";
829
- var Pt = c.createContext(null);
830
- Pt.displayName = "Await";
828
+ St.displayName = "Fetchers";
829
+ var Nt = c.createContext(null);
830
+ Nt.displayName = "Await";
831
831
  var $ = c.createContext(
832
832
  null
833
833
  );
@@ -844,7 +844,7 @@ var A = c.createContext({
844
844
  A.displayName = "Route";
845
845
  var pe = c.createContext(null);
846
846
  pe.displayName = "RouteError";
847
- function jt(e, { relative: r } = {}) {
847
+ function Pt(e, { relative: r } = {}) {
848
848
  P(
849
849
  ne(),
850
850
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -865,32 +865,32 @@ function D() {
865
865
  "useLocation() may be used only in the context of a <Router> component."
866
866
  ), c.useContext(he).location;
867
867
  }
868
- var ze = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
869
- function Ye(e) {
868
+ var We = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
869
+ function ze(e) {
870
870
  c.useContext($).static || c.useLayoutEffect(e);
871
871
  }
872
- function _t() {
872
+ function jt() {
873
873
  let { isDataRoute: e } = c.useContext(A);
874
- return e ? Yt() : Tt();
874
+ return e ? zt() : _t();
875
875
  }
876
- function Tt() {
876
+ function _t() {
877
877
  P(
878
878
  ne(),
879
879
  // TODO: This error is probably because they somehow have 2 versions of the
880
880
  // router loaded. We can help them understand how to avoid that.
881
881
  "useNavigate() may be used only in the context of a <Router> component."
882
882
  );
883
- let e = c.useContext(H), { basename: r, navigator: t } = c.useContext($), { matches: n } = c.useContext(A), { pathname: a } = D(), o = JSON.stringify(Ie(n)), l = c.useRef(!1);
884
- return Ye(() => {
883
+ let e = c.useContext(H), { basename: r, navigator: t } = c.useContext($), { matches: n } = c.useContext(A), { pathname: a } = D(), o = JSON.stringify(Fe(n)), l = c.useRef(!1);
884
+ return ze(() => {
885
885
  l.current = !0;
886
886
  }), c.useCallback(
887
887
  (i, f = {}) => {
888
- if (_(l.current, ze), !l.current) return;
888
+ if (_(l.current, We), !l.current) return;
889
889
  if (typeof i == "number") {
890
890
  t.go(i);
891
891
  return;
892
892
  }
893
- let m = De(
893
+ let m = Ie(
894
894
  i,
895
895
  JSON.parse(o),
896
896
  a,
@@ -913,9 +913,9 @@ function Tt() {
913
913
  }
914
914
  c.createContext(null);
915
915
  function G(e, { relative: r } = {}) {
916
- let { matches: t } = c.useContext(A), { pathname: n } = D(), a = JSON.stringify(Ie(t));
916
+ let { matches: t } = c.useContext(A), { pathname: n } = D(), a = JSON.stringify(Fe(t));
917
917
  return c.useMemo(
918
- () => De(
918
+ () => Ie(
919
919
  e,
920
920
  JSON.parse(a),
921
921
  n,
@@ -924,7 +924,7 @@ function G(e, { relative: r } = {}) {
924
924
  [e, a, n, r]
925
925
  );
926
926
  }
927
- function Lt(e, r, t, n, a) {
927
+ function Tt(e, r, t, n, a) {
928
928
  P(
929
929
  ne(),
930
930
  // TODO: This error is probably because they somehow have 2 versions of the
@@ -934,7 +934,7 @@ function Lt(e, r, t, n, a) {
934
934
  let { navigator: o } = c.useContext($), { matches: l } = c.useContext(A), u = l[l.length - 1], i = u ? u.params : {}, f = u ? u.pathname : "/", m = u ? u.pathnameBase : "/", d = u && u.route;
935
935
  {
936
936
  let b = d && d.path || "";
937
- He(
937
+ Ye(
938
938
  f,
939
939
  !d || b.endsWith("*") || b.endsWith("*?"),
940
940
  `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
@@ -949,14 +949,14 @@ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" :
949
949
  let b = m.replace(/^\//, "").split("/");
950
950
  E = "/" + y.replace(/^\//, "").split("/").slice(b.length).join("/");
951
951
  }
952
- let w = Oe(e, { pathname: E });
952
+ let w = Ae(e, { pathname: E });
953
953
  return _(
954
954
  d || w != null,
955
955
  `No routes matched location "${g.pathname}${g.search}${g.hash}" `
956
956
  ), _(
957
957
  w == null || w[w.length - 1].route.element !== void 0 || w[w.length - 1].route.Component !== void 0 || w[w.length - 1].route.lazy !== void 0,
958
958
  `Matched leaf route at location "${g.pathname}${g.search}${g.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.`
959
- ), Ft(
959
+ ), Ut(
960
960
  w && w.map(
961
961
  (b) => Object.assign({}, b, {
962
962
  params: Object.assign({}, i, b.params),
@@ -988,14 +988,14 @@ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" :
988
988
  a
989
989
  );
990
990
  }
991
- function $t() {
992
- let e = zt(), r = Ct(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, o = { padding: "2px 4px", backgroundColor: n }, l = null;
991
+ function Lt() {
992
+ let e = Wt(), r = Rt(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", a = { padding: "0.5rem", backgroundColor: n }, o = { padding: "2px 4px", backgroundColor: n }, l = null;
993
993
  return console.error(
994
994
  "Error handled by React Router default ErrorBoundary:",
995
995
  e
996
996
  ), l = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ c.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ c.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ c.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ c.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ c.createElement("pre", { style: a }, t) : null, l);
997
997
  }
998
- var At = /* @__PURE__ */ c.createElement($t, null), Ot = class extends c.Component {
998
+ var $t = /* @__PURE__ */ c.createElement(Lt, null), At = class extends c.Component {
999
999
  constructor(e) {
1000
1000
  super(e), this.state = {
1001
1001
  location: e.location,
@@ -1033,11 +1033,11 @@ var At = /* @__PURE__ */ c.createElement($t, null), Ot = class extends c.Compone
1033
1033
  )) : this.props.children;
1034
1034
  }
1035
1035
  };
1036
- function Ut({ routeContext: e, match: r, children: t }) {
1036
+ function Ot({ routeContext: e, match: r, children: t }) {
1037
1037
  let n = c.useContext(H);
1038
1038
  return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ c.createElement(A.Provider, { value: e }, t);
1039
1039
  }
1040
- function Ft(e, r = [], t = null, n = null, a = null) {
1040
+ function Ut(e, r = [], t = null, n = null, a = null) {
1041
1041
  if (e == null) {
1042
1042
  if (!t)
1043
1043
  return null;
@@ -1085,7 +1085,7 @@ function Ft(e, r = [], t = null, n = null, a = null) {
1085
1085
  return o.reduceRight(
1086
1086
  (m, d, p) => {
1087
1087
  let g, y = !1, E = null, w = null;
1088
- t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || At, u && (i < 0 && p === 0 ? (He(
1088
+ t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || $t, u && (i < 0 && p === 0 ? (Ye(
1089
1089
  "route-fallback",
1090
1090
  !1,
1091
1091
  "No `HydrateFallback` element provided to render during initial hydration"
@@ -1093,7 +1093,7 @@ function Ft(e, r = [], t = null, n = null, a = null) {
1093
1093
  let v = r.concat(o.slice(0, p + 1)), b = () => {
1094
1094
  let k;
1095
1095
  return g ? k = E : y ? k = w : d.route.Component ? k = /* @__PURE__ */ c.createElement(d.route.Component, null) : d.route.element ? k = d.route.element : k = m, /* @__PURE__ */ c.createElement(
1096
- Ut,
1096
+ Ot,
1097
1097
  {
1098
1098
  match: d,
1099
1099
  routeContext: {
@@ -1106,7 +1106,7 @@ function Ft(e, r = [], t = null, n = null, a = null) {
1106
1106
  );
1107
1107
  };
1108
1108
  return t && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ c.createElement(
1109
- Ot,
1109
+ At,
1110
1110
  {
1111
1111
  location: t.location,
1112
1112
  revalidation: t.revalidation,
@@ -1124,33 +1124,33 @@ function Ft(e, r = [], t = null, n = null, a = null) {
1124
1124
  function ge(e) {
1125
1125
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1126
1126
  }
1127
- function It(e) {
1127
+ function Ft(e) {
1128
1128
  let r = c.useContext(H);
1129
1129
  return P(r, ge(e)), r;
1130
1130
  }
1131
- function Dt(e) {
1131
+ function It(e) {
1132
1132
  let r = c.useContext(re);
1133
1133
  return P(r, ge(e)), r;
1134
1134
  }
1135
- function Mt(e) {
1135
+ function Dt(e) {
1136
1136
  let r = c.useContext(A);
1137
1137
  return P(r, ge(e)), r;
1138
1138
  }
1139
1139
  function be(e) {
1140
- let r = Mt(e), t = r.matches[r.matches.length - 1];
1140
+ let r = Dt(e), t = r.matches[r.matches.length - 1];
1141
1141
  return P(
1142
1142
  t.route.id,
1143
1143
  `${e} can only be used on routes that contain a unique "id"`
1144
1144
  ), t.route.id;
1145
1145
  }
1146
- function Wt() {
1146
+ function Mt() {
1147
1147
  return be(
1148
1148
  "useRouteId"
1149
1149
  /* UseRouteId */
1150
1150
  );
1151
1151
  }
1152
- function zt() {
1153
- let e = c.useContext(pe), r = Dt(
1152
+ function Wt() {
1153
+ let e = c.useContext(pe), r = It(
1154
1154
  "useRouteError"
1155
1155
  /* UseRouteError */
1156
1156
  ), t = be(
@@ -1159,59 +1159,59 @@ function zt() {
1159
1159
  );
1160
1160
  return e !== void 0 ? e : r.errors?.[t];
1161
1161
  }
1162
- function Yt() {
1163
- let { router: e } = It(
1162
+ function zt() {
1163
+ let { router: e } = Ft(
1164
1164
  "useNavigate"
1165
1165
  /* UseNavigateStable */
1166
1166
  ), r = be(
1167
1167
  "useNavigate"
1168
1168
  /* UseNavigateStable */
1169
1169
  ), t = c.useRef(!1);
1170
- return Ye(() => {
1170
+ return ze(() => {
1171
1171
  t.current = !0;
1172
1172
  }), c.useCallback(
1173
1173
  async (a, o = {}) => {
1174
- _(t.current, ze), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1174
+ _(t.current, We), t.current && (typeof a == "number" ? e.navigate(a) : await e.navigate(a, { fromRouteId: r, ...o }));
1175
1175
  },
1176
1176
  [e, r]
1177
1177
  );
1178
1178
  }
1179
1179
  var Le = {};
1180
- function He(e, r, t) {
1180
+ function Ye(e, r, t) {
1181
1181
  !r && !Le[e] && (Le[e] = !0, _(!1, t));
1182
1182
  }
1183
- c.memo(Ht);
1184
- function Ht({
1183
+ c.memo(Yt);
1184
+ function Yt({
1185
1185
  routes: e,
1186
1186
  future: r,
1187
1187
  state: t,
1188
1188
  unstable_onError: n
1189
1189
  }) {
1190
- return Lt(e, void 0, t, n, r);
1190
+ return Tt(e, void 0, t, n, r);
1191
1191
  }
1192
1192
  var Q = "get", ee = "application/x-www-form-urlencoded";
1193
1193
  function ae(e) {
1194
1194
  return e != null && typeof e.tagName == "string";
1195
1195
  }
1196
- function Vt(e) {
1196
+ function Ht(e) {
1197
1197
  return ae(e) && e.tagName.toLowerCase() === "button";
1198
1198
  }
1199
- function Bt(e) {
1199
+ function Vt(e) {
1200
1200
  return ae(e) && e.tagName.toLowerCase() === "form";
1201
1201
  }
1202
- function Jt(e) {
1202
+ function Bt(e) {
1203
1203
  return ae(e) && e.tagName.toLowerCase() === "input";
1204
1204
  }
1205
- function Gt(e) {
1205
+ function Jt(e) {
1206
1206
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1207
1207
  }
1208
- function qt(e, r) {
1208
+ function Gt(e, r) {
1209
1209
  return e.button === 0 && // Ignore everything but left clicks
1210
1210
  (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1211
- !Gt(e);
1211
+ !Jt(e);
1212
1212
  }
1213
1213
  var Z = null;
1214
- function Xt() {
1214
+ function qt() {
1215
1215
  if (Z === null)
1216
1216
  try {
1217
1217
  new FormData(
@@ -1224,30 +1224,30 @@ function Xt() {
1224
1224
  }
1225
1225
  return Z;
1226
1226
  }
1227
- var Kt = /* @__PURE__ */ new Set([
1227
+ var Xt = /* @__PURE__ */ new Set([
1228
1228
  "application/x-www-form-urlencoded",
1229
1229
  "multipart/form-data",
1230
1230
  "text/plain"
1231
1231
  ]);
1232
1232
  function ce(e) {
1233
- return e != null && !Kt.has(e) ? (_(
1233
+ return e != null && !Xt.has(e) ? (_(
1234
1234
  !1,
1235
1235
  `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ee}"`
1236
1236
  ), null) : e;
1237
1237
  }
1238
- function Zt(e, r) {
1238
+ function Kt(e, r) {
1239
1239
  let t, n, a, o, l;
1240
- if (Bt(e)) {
1240
+ if (Vt(e)) {
1241
1241
  let u = e.getAttribute("action");
1242
1242
  n = u ? F(u, r) : null, t = e.getAttribute("method") || Q, a = ce(e.getAttribute("enctype")) || ee, o = new FormData(e);
1243
- } else if (Vt(e) || Jt(e) && (e.type === "submit" || e.type === "image")) {
1243
+ } else if (Ht(e) || Bt(e) && (e.type === "submit" || e.type === "image")) {
1244
1244
  let u = e.form;
1245
1245
  if (u == null)
1246
1246
  throw new Error(
1247
1247
  'Cannot submit a <button> or <input type="submit"> without a <form>'
1248
1248
  );
1249
1249
  let i = e.getAttribute("formaction") || u.getAttribute("action");
1250
- if (n = i ? F(i, r) : null, t = e.getAttribute("formmethod") || u.getAttribute("method") || Q, a = ce(e.getAttribute("formenctype")) || ce(u.getAttribute("enctype")) || ee, o = new FormData(u, e), !Xt()) {
1250
+ if (n = i ? F(i, r) : null, t = e.getAttribute("formmethod") || u.getAttribute("method") || Q, a = ce(e.getAttribute("formenctype")) || ce(u.getAttribute("enctype")) || ee, o = new FormData(u, e), !qt()) {
1251
1251
  let { name: f, type: m, value: d } = e;
1252
1252
  if (m === "image") {
1253
1253
  let p = f ? `${f}.` : "";
@@ -1268,7 +1268,7 @@ function xe(e, r) {
1268
1268
  if (e === !1 || e === null || typeof e > "u")
1269
1269
  throw new Error(r);
1270
1270
  }
1271
- function Qt(e, r, t) {
1271
+ function Zt(e, r, t) {
1272
1272
  let n = typeof e == "string" ? new URL(
1273
1273
  e,
1274
1274
  // This can be called during the SSR flow via PrefetchPageLinksImpl so
@@ -1277,7 +1277,7 @@ function Qt(e, r, t) {
1277
1277
  ) : e;
1278
1278
  return n.pathname === "/" ? n.pathname = `_root.${t}` : r && F(n.pathname, r) === "/" ? n.pathname = `${r.replace(/\/$/, "")}/_root.${t}` : n.pathname = `${n.pathname.replace(/\/$/, "")}.${t}`, n;
1279
1279
  }
1280
- async function er(e, r) {
1280
+ async function Qt(e, r) {
1281
1281
  if (e.id in r)
1282
1282
  return r[e.id];
1283
1283
  try {
@@ -1294,22 +1294,22 @@ async function er(e, r) {
1294
1294
  });
1295
1295
  }
1296
1296
  }
1297
- function tr(e) {
1297
+ function er(e) {
1298
1298
  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";
1299
1299
  }
1300
- async function rr(e, r, t) {
1300
+ async function tr(e, r, t) {
1301
1301
  let n = await Promise.all(
1302
1302
  e.map(async (a) => {
1303
1303
  let o = r.routes[a.route.id];
1304
1304
  if (o) {
1305
- let l = await er(o, t);
1305
+ let l = await Qt(o, t);
1306
1306
  return l.links ? l.links() : [];
1307
1307
  }
1308
1308
  return [];
1309
1309
  })
1310
1310
  );
1311
- return lr(
1312
- n.flat(1).filter(tr).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1311
+ return or(
1312
+ n.flat(1).filter(er).filter((a) => a.rel === "stylesheet" || a.rel === "preload").map(
1313
1313
  (a) => a.rel === "stylesheet" ? { ...a, rel: "prefetch", as: "style" } : { ...a, rel: "prefetch" }
1314
1314
  )
1315
1315
  );
@@ -1346,8 +1346,8 @@ function $e(e, r, t, n, a, o) {
1346
1346
  return !0;
1347
1347
  }) : [];
1348
1348
  }
1349
- function nr(e, r, { includeHydrateFallback: t } = {}) {
1350
- return ar(
1349
+ function rr(e, r, { includeHydrateFallback: t } = {}) {
1350
+ return nr(
1351
1351
  e.map((n) => {
1352
1352
  let a = r.routes[n.route.id];
1353
1353
  if (!a) return [];
@@ -1356,30 +1356,30 @@ function nr(e, r, { includeHydrateFallback: t } = {}) {
1356
1356
  }).flat(1)
1357
1357
  );
1358
1358
  }
1359
- function ar(e) {
1359
+ function nr(e) {
1360
1360
  return [...new Set(e)];
1361
1361
  }
1362
- function or(e) {
1362
+ function ar(e) {
1363
1363
  let r = {}, t = Object.keys(e).sort();
1364
1364
  for (let n of t)
1365
1365
  r[n] = e[n];
1366
1366
  return r;
1367
1367
  }
1368
- function lr(e, r) {
1368
+ function or(e, r) {
1369
1369
  let t = /* @__PURE__ */ new Set();
1370
1370
  return new Set(r), e.reduce((n, a) => {
1371
- let o = JSON.stringify(or(a));
1371
+ let o = JSON.stringify(ar(a));
1372
1372
  return t.has(o) || (t.add(o), n.push({ key: o, link: a })), n;
1373
1373
  }, []);
1374
1374
  }
1375
- function Ve() {
1375
+ function He() {
1376
1376
  let e = c.useContext(H);
1377
1377
  return xe(
1378
1378
  e,
1379
1379
  "You must render this element inside a <DataRouterContext.Provider> element"
1380
1380
  ), e;
1381
1381
  }
1382
- function ir() {
1382
+ function lr() {
1383
1383
  let e = c.useContext(re);
1384
1384
  return xe(
1385
1385
  e,
@@ -1388,14 +1388,14 @@ function ir() {
1388
1388
  }
1389
1389
  var ye = c.createContext(void 0);
1390
1390
  ye.displayName = "FrameworkContext";
1391
- function Be() {
1391
+ function Ve() {
1392
1392
  let e = c.useContext(ye);
1393
1393
  return xe(
1394
1394
  e,
1395
1395
  "You must render this element inside a <HydratedRouter> element"
1396
1396
  ), e;
1397
1397
  }
1398
- function sr(e, r) {
1398
+ function ir(e, r) {
1399
1399
  let t = c.useContext(ye), [n, a] = c.useState(!1), [o, l] = c.useState(!1), { onFocus: u, onBlur: i, onMouseEnter: f, onMouseLeave: m, onTouchStart: d } = r, p = c.useRef(null);
1400
1400
  c.useEffect(() => {
1401
1401
  if (e === "render" && l(!0), e === "viewport") {
@@ -1440,18 +1440,18 @@ function J(e, r) {
1440
1440
  e && e(t), t.defaultPrevented || r(t);
1441
1441
  };
1442
1442
  }
1443
- function ur({ page: e, ...r }) {
1444
- let { router: t } = Ve(), n = c.useMemo(
1445
- () => Oe(t.routes, e, t.basename),
1443
+ function sr({ page: e, ...r }) {
1444
+ let { router: t } = He(), n = c.useMemo(
1445
+ () => Ae(t.routes, e, t.basename),
1446
1446
  [t.routes, e, t.basename]
1447
1447
  );
1448
- return n ? /* @__PURE__ */ c.createElement(dr, { page: e, matches: n, ...r }) : null;
1448
+ return n ? /* @__PURE__ */ c.createElement(cr, { page: e, matches: n, ...r }) : null;
1449
1449
  }
1450
- function cr(e) {
1451
- let { manifest: r, routeModules: t } = Be(), [n, a] = c.useState([]);
1450
+ function ur(e) {
1451
+ let { manifest: r, routeModules: t } = Ve(), [n, a] = c.useState([]);
1452
1452
  return c.useEffect(() => {
1453
1453
  let o = !1;
1454
- return rr(e, r, t).then(
1454
+ return tr(e, r, t).then(
1455
1455
  (l) => {
1456
1456
  o || a(l);
1457
1457
  }
@@ -1460,12 +1460,12 @@ function cr(e) {
1460
1460
  };
1461
1461
  }, [e, r, t]), n;
1462
1462
  }
1463
- function dr({
1463
+ function cr({
1464
1464
  page: e,
1465
1465
  matches: r,
1466
1466
  ...t
1467
1467
  }) {
1468
- let n = D(), { manifest: a, routeModules: o } = Be(), { basename: l } = Ve(), { loaderData: u, matches: i } = ir(), f = c.useMemo(
1468
+ let n = D(), { manifest: a, routeModules: o } = Ve(), { basename: l } = He(), { loaderData: u, matches: i } = lr(), f = c.useMemo(
1469
1469
  () => $e(
1470
1470
  e,
1471
1471
  r,
@@ -1494,7 +1494,7 @@ function dr({
1494
1494
  !b || !b.hasLoader || (!f.some((k) => k.route.id === v.route.id) && v.route.id in u && o[v.route.id]?.shouldRevalidate || b.hasClientLoader ? E = !0 : y.add(v.route.id));
1495
1495
  }), y.size === 0)
1496
1496
  return [];
1497
- let w = Qt(e, l, "data");
1497
+ let w = Zt(e, l, "data");
1498
1498
  return E && y.size > 0 && w.searchParams.set(
1499
1499
  "_routes",
1500
1500
  r.filter((v) => y.has(v.route.id)).map((v) => v.route.id).join(",")
@@ -1509,29 +1509,29 @@ function dr({
1509
1509
  e,
1510
1510
  o
1511
1511
  ]), p = c.useMemo(
1512
- () => nr(m, a),
1512
+ () => rr(m, a),
1513
1513
  [m, a]
1514
- ), g = cr(m);
1514
+ ), g = ur(m);
1515
1515
  return /* @__PURE__ */ c.createElement(c.Fragment, null, d.map((y) => /* @__PURE__ */ c.createElement("link", { key: y, rel: "prefetch", as: "fetch", href: y, ...t })), p.map((y) => /* @__PURE__ */ c.createElement("link", { key: y, rel: "modulepreload", href: y, ...t })), g.map(({ key: y, link: E }) => (
1516
1516
  // these don't spread `linkProps` because they are full link descriptors
1517
1517
  // already with their own props
1518
1518
  /* @__PURE__ */ c.createElement("link", { key: y, nonce: t.nonce, ...E })
1519
1519
  )));
1520
1520
  }
1521
- function fr(...e) {
1521
+ function dr(...e) {
1522
1522
  return (r) => {
1523
1523
  e.forEach((t) => {
1524
1524
  typeof t == "function" ? t(r) : t != null && (t.current = r);
1525
1525
  });
1526
1526
  };
1527
1527
  }
1528
- var Je = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1528
+ var Be = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
1529
1529
  try {
1530
- Je && (window.__reactRouterVersion = // @ts-expect-error
1530
+ Be && (window.__reactRouterVersion = // @ts-expect-error
1531
1531
  "7.9.6");
1532
1532
  } catch {
1533
1533
  }
1534
- var Ge = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = c.forwardRef(
1534
+ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = c.forwardRef(
1535
1535
  function({
1536
1536
  onClick: r,
1537
1537
  discover: t = "render",
@@ -1546,8 +1546,8 @@ var Ge = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = c.forwardRef(
1546
1546
  viewTransition: d,
1547
1547
  ...p
1548
1548
  }, g) {
1549
- let { basename: y } = c.useContext($), E = typeof f == "string" && Ge.test(f), w, v = !1;
1550
- if (typeof f == "string" && E && (w = f, Je))
1549
+ let { basename: y } = c.useContext($), E = typeof f == "string" && Je.test(f), w, v = !1;
1550
+ if (typeof f == "string" && E && (w = f, Be))
1551
1551
  try {
1552
1552
  let j = new URL(window.location.href), U = f.startsWith("//") ? new URL(j.protocol + f) : new URL(f), q = F(U.pathname, y);
1553
1553
  U.origin === j.origin && q != null ? f = q + U.search + U.hash : v = !0;
@@ -1557,10 +1557,10 @@ var Ge = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = c.forwardRef(
1557
1557
  `<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1558
1558
  );
1559
1559
  }
1560
- let b = jt(f, { relative: a }), [k, O, T] = sr(
1560
+ let b = Pt(f, { relative: a }), [k, O, T] = ir(
1561
1561
  n,
1562
1562
  p
1563
- ), M = gr(f, {
1563
+ ), M = pr(f, {
1564
1564
  replace: l,
1565
1565
  state: u,
1566
1566
  target: i,
@@ -1580,17 +1580,17 @@ var Ge = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = c.forwardRef(
1580
1580
  ...T,
1581
1581
  href: w || b,
1582
1582
  onClick: v || o ? r : I,
1583
- ref: fr(g, O),
1583
+ ref: dr(g, O),
1584
1584
  target: i,
1585
1585
  "data-discover": !E && t === "render" ? "true" : void 0
1586
1586
  }
1587
1587
  )
1588
1588
  );
1589
- return k && !E ? /* @__PURE__ */ c.createElement(c.Fragment, null, W, /* @__PURE__ */ c.createElement(ur, { page: b })) : W;
1589
+ return k && !E ? /* @__PURE__ */ c.createElement(c.Fragment, null, W, /* @__PURE__ */ c.createElement(sr, { page: b })) : W;
1590
1590
  }
1591
1591
  );
1592
1592
  ve.displayName = "Link";
1593
- var mr = c.forwardRef(
1593
+ var fr = c.forwardRef(
1594
1594
  function({
1595
1595
  "aria-current": r = "page",
1596
1596
  caseSensitive: t = !1,
@@ -1604,7 +1604,7 @@ var mr = c.forwardRef(
1604
1604
  }, m) {
1605
1605
  let d = G(l, { relative: f.relative }), p = D(), g = c.useContext(re), { navigator: y, basename: E } = c.useContext($), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1606
1606
  // eslint-disable-next-line react-hooks/rules-of-hooks
1607
- wr(d) && u === !0, v = y.encodeLocation ? y.encodeLocation(d).pathname : d.pathname, b = p.pathname, k = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1607
+ vr(d) && u === !0, v = y.encodeLocation ? y.encodeLocation(d).pathname : d.pathname, b = p.pathname, k = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
1608
1608
  t || (b = b.toLowerCase(), k = k ? k.toLowerCase() : null, v = v.toLowerCase()), k && E && (k = F(k, E) || k);
1609
1609
  const O = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1610
1610
  let T = b === v || !a && b.startsWith(v) && b.charAt(O) === "/", M = k != null && (k === v || !a && k.startsWith(v) && k.charAt(v.length) === "/"), I = {
@@ -1634,8 +1634,8 @@ var mr = c.forwardRef(
1634
1634
  );
1635
1635
  }
1636
1636
  );
1637
- mr.displayName = "NavLink";
1638
- var hr = c.forwardRef(
1637
+ fr.displayName = "NavLink";
1638
+ var mr = c.forwardRef(
1639
1639
  ({
1640
1640
  discover: e = "render",
1641
1641
  fetcherKey: r,
@@ -1651,7 +1651,7 @@ var hr = c.forwardRef(
1651
1651
  viewTransition: d,
1652
1652
  ...p
1653
1653
  }, g) => {
1654
- let y = yr(), E = vr(u, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof u == "string" && Ge.test(u), b = (k) => {
1654
+ let y = xr(), E = yr(u, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof u == "string" && Je.test(u), b = (k) => {
1655
1655
  if (i && i(k), k.defaultPrevented) return;
1656
1656
  k.preventDefault();
1657
1657
  let O = k.nativeEvent.submitter, T = O?.getAttribute("formmethod") || l;
@@ -1679,15 +1679,15 @@ var hr = c.forwardRef(
1679
1679
  );
1680
1680
  }
1681
1681
  );
1682
- hr.displayName = "Form";
1683
- function pr(e) {
1682
+ mr.displayName = "Form";
1683
+ function hr(e) {
1684
1684
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1685
1685
  }
1686
- function qe(e) {
1686
+ function Ge(e) {
1687
1687
  let r = c.useContext(H);
1688
- return P(r, pr(e)), r;
1688
+ return P(r, hr(e)), r;
1689
1689
  }
1690
- function gr(e, {
1690
+ function pr(e, {
1691
1691
  target: r,
1692
1692
  replace: t,
1693
1693
  state: n,
@@ -1695,10 +1695,10 @@ function gr(e, {
1695
1695
  relative: o,
1696
1696
  viewTransition: l
1697
1697
  } = {}) {
1698
- let u = _t(), i = D(), f = G(e, { relative: o });
1698
+ let u = jt(), i = D(), f = G(e, { relative: o });
1699
1699
  return c.useCallback(
1700
1700
  (m) => {
1701
- if (qt(m, r)) {
1701
+ if (Gt(m, r)) {
1702
1702
  m.preventDefault();
1703
1703
  let d = t !== void 0 ? t : de(i) === de(f);
1704
1704
  u(e, {
@@ -1724,20 +1724,20 @@ function gr(e, {
1724
1724
  ]
1725
1725
  );
1726
1726
  }
1727
- var br = 0, xr = () => `__${String(++br)}__`;
1728
- function yr() {
1729
- let { router: e } = qe(
1727
+ var gr = 0, br = () => `__${String(++gr)}__`;
1728
+ function xr() {
1729
+ let { router: e } = Ge(
1730
1730
  "useSubmit"
1731
1731
  /* UseSubmit */
1732
- ), { basename: r } = c.useContext($), t = Wt();
1732
+ ), { basename: r } = c.useContext($), t = Mt();
1733
1733
  return c.useCallback(
1734
1734
  async (n, a = {}) => {
1735
- let { action: o, method: l, encType: u, formData: i, body: f } = Zt(
1735
+ let { action: o, method: l, encType: u, formData: i, body: f } = Kt(
1736
1736
  n,
1737
1737
  r
1738
1738
  );
1739
1739
  if (a.navigate === !1) {
1740
- let m = a.fetcherKey || xr();
1740
+ let m = a.fetcherKey || br();
1741
1741
  await e.fetch(m, t, a.action || o, {
1742
1742
  preventScrollReset: a.preventScrollReset,
1743
1743
  formData: i,
@@ -1763,7 +1763,7 @@ function yr() {
1763
1763
  [e, r, t]
1764
1764
  );
1765
1765
  }
1766
- function vr(e, { relative: r } = {}) {
1766
+ function yr(e, { relative: r } = {}) {
1767
1767
  let { basename: t } = c.useContext($), n = c.useContext(A);
1768
1768
  P(n, "useFormAction must be used inside a RouteContext");
1769
1769
  let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = D();
@@ -1778,13 +1778,13 @@ function vr(e, { relative: r } = {}) {
1778
1778
  }
1779
1779
  return (!e || e === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (o.pathname = o.pathname === "/" ? t : L([t, o.pathname])), de(o);
1780
1780
  }
1781
- function wr(e, { relative: r } = {}) {
1782
- let t = c.useContext(We);
1781
+ function vr(e, { relative: r } = {}) {
1782
+ let t = c.useContext(Me);
1783
1783
  P(
1784
1784
  t != null,
1785
1785
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1786
1786
  );
1787
- let { basename: n } = qe(
1787
+ let { basename: n } = Ge(
1788
1788
  "useViewTransitionState"
1789
1789
  /* useViewTransitionState */
1790
1790
  ), a = G(e, { relative: r });
@@ -1793,11 +1793,11 @@ function wr(e, { relative: r } = {}) {
1793
1793
  let o = F(t.currentLocation.pathname, n) || t.currentLocation.pathname, l = F(t.nextLocation.pathname, n) || t.nextLocation.pathname;
1794
1794
  return te(a.pathname, l) != null || te(a.pathname, o) != null;
1795
1795
  }
1796
- const kr = {
1796
+ const wr = {
1797
1797
  primary: "text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",
1798
1798
  secondary: "text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",
1799
1799
  subtle: "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"
1800
- }, Xe = ({
1800
+ }, qe = ({
1801
1801
  to: e,
1802
1802
  children: r,
1803
1803
  className: t,
@@ -1806,11 +1806,11 @@ const kr = {
1806
1806
  ve,
1807
1807
  {
1808
1808
  to: e,
1809
- className: R(kr[n], t),
1809
+ className: R(wr[n], t),
1810
1810
  "aria-label": typeof r == "string" ? `Navigate to ${r}` : void 0,
1811
1811
  children: r
1812
1812
  }
1813
- ), Er = {
1813
+ ), kr = {
1814
1814
  // Getting Started cluster
1815
1815
  gettingStarted: {
1816
1816
  documentation: "/document#getting-started",
@@ -1838,12 +1838,12 @@ const kr = {
1838
1838
  nameService: "/document#name-service-subscription",
1839
1839
  troubleshooting: "/document#troubleshooting"
1840
1840
  }
1841
- }, Lr = ({
1841
+ }, Tr = ({
1842
1842
  cluster: e,
1843
1843
  context: r = "",
1844
1844
  className: t
1845
1845
  }) => {
1846
- const n = Er[e], a = {
1846
+ const n = kr[e], a = {
1847
1847
  gettingStarted: {
1848
1848
  documentation: "Learn how it works",
1849
1849
  connect: "Get started now",
@@ -1869,10 +1869,10 @@ const kr = {
1869
1869
  }
1870
1870
  };
1871
1871
  return /* @__PURE__ */ h.jsx("span", { className: R("text-sm text-gray-600 dark:text-gray-400", t), children: Object.entries(n).map(([o, l], u) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1872
- /* @__PURE__ */ h.jsx(Xe, { to: l, variant: "primary", children: a[e][o] }),
1872
+ /* @__PURE__ */ h.jsx(qe, { to: l, variant: "primary", children: a[e][o] }),
1873
1873
  u < Object.keys(n).length - 1 && " • "
1874
1874
  ] }, o)) });
1875
- }, $r = ({
1875
+ }, Lr = ({
1876
1876
  title: e = "Related:",
1877
1877
  links: r,
1878
1878
  className: t
@@ -1886,12 +1886,12 @@ const kr = {
1886
1886
  children: [
1887
1887
  /* @__PURE__ */ h.jsx("span", { className: "text-sm font-medium text-blue-900 dark:text-blue-200 mr-2", children: e }),
1888
1888
  r.map((n, a) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
1889
- /* @__PURE__ */ h.jsx(Xe, { to: n.url, variant: n.variant || "primary", children: n.text }),
1889
+ /* @__PURE__ */ h.jsx(qe, { to: n.url, variant: n.variant || "primary", children: n.text }),
1890
1890
  a < r.length - 1 && " • "
1891
1891
  ] }, a))
1892
1892
  ]
1893
1893
  }
1894
- ), Ar = (e, r) => ({
1894
+ ), $r = (e, r) => ({
1895
1895
  homepage: [
1896
1896
  { text: "How it works", url: "/document#getting-started" },
1897
1897
  { text: "User benefits", url: "/web3-users" },
@@ -1912,7 +1912,7 @@ const kr = {
1912
1912
  { text: "Smart contracts", url: "/document#smart-contracts" },
1913
1913
  { text: "User benefits", url: "/web3-users" }
1914
1914
  ]
1915
- })[e] || [], Or = ({
1915
+ })[e] || [], Ar = ({
1916
1916
  className: e,
1917
1917
  children: r,
1918
1918
  disabled: t = !1,
@@ -1934,7 +1934,7 @@ const kr = {
1934
1934
  "aria-label": "UlandingUbuilder",
1935
1935
  children: r || "UlandingUbuilder Component"
1936
1936
  }
1937
- ), Ur = ({
1937
+ ), Or = ({
1938
1938
  className: e,
1939
1939
  children: r,
1940
1940
  disabled: t = !1,
@@ -1956,7 +1956,7 @@ const kr = {
1956
1956
  "aria-label": "UnpsUsurvey",
1957
1957
  children: r || "UnpsUsurvey Component"
1958
1958
  }
1959
- ), Fr = ({
1959
+ ), Ur = ({
1960
1960
  className: e,
1961
1961
  children: r,
1962
1962
  disabled: t
@@ -1975,7 +1975,7 @@ const kr = {
1975
1975
  "aria-label": "SalesReport",
1976
1976
  children: r || "SalesReport Component"
1977
1977
  }
1978
- ), Ir = ({
1978
+ ), Fr = ({
1979
1979
  className: e,
1980
1980
  children: r,
1981
1981
  disabled: t
@@ -1994,7 +1994,7 @@ const kr = {
1994
1994
  "aria-label": "SubscriberList",
1995
1995
  children: r || "SubscriberList Component"
1996
1996
  }
1997
- ), Dr = ({
1997
+ ), Ir = ({
1998
1998
  className: e,
1999
1999
  children: r,
2000
2000
  disabled: t = !1,
@@ -2016,14 +2016,14 @@ const kr = {
2016
2016
  "aria-label": "UtestimonialUslider",
2017
2017
  children: r || "UtestimonialUslider Component"
2018
2018
  }
2019
- ), Mr = ({
2019
+ ), Dr = ({
2020
2020
  title: e,
2021
2021
  description: r,
2022
2022
  useCases: t,
2023
2023
  columns: n = 3,
2024
2024
  className: a
2025
2025
  }) => {
2026
- const { containerClass: o } = Ae(), l = {
2026
+ const o = "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", l = {
2027
2027
  blue: "text-blue-600 dark:text-blue-400",
2028
2028
  green: "text-green-600 dark:text-green-400",
2029
2029
  purple: "text-purple-600 dark:text-purple-400",
@@ -2035,7 +2035,7 @@ const kr = {
2035
2035
  3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
2036
2036
  4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
2037
2037
  };
2038
- return /* @__PURE__ */ h.jsx("section", { className: R(Qe.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: o, children: [
2038
+ return /* @__PURE__ */ h.jsx("section", { className: R(Ze.section.gradient, a), children: /* @__PURE__ */ h.jsxs("div", { className: o, children: [
2039
2039
  (e || r) && /* @__PURE__ */ h.jsxs("div", { className: "text-center mb-12", children: [
2040
2040
  e && /* @__PURE__ */ h.jsx("h2", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: e }),
2041
2041
  r && /* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto", children: r })
@@ -2071,7 +2071,7 @@ const kr = {
2071
2071
  );
2072
2072
  }) })
2073
2073
  ] }) });
2074
- }, Wr = ({
2074
+ }, Mr = ({
2075
2075
  className: e,
2076
2076
  children: r,
2077
2077
  disabled: t = !1,
@@ -2095,20 +2095,20 @@ const kr = {
2095
2095
  }
2096
2096
  );
2097
2097
  export {
2098
- Nr as CrmDashboard,
2099
- jr as FeatureListItem,
2100
- Tr as HeroBannerWithBadge,
2101
- Xe as InternalLink,
2102
- $r as RelatedLinks,
2103
- Fr as SalesReport,
2104
- Ir as SubscriberList,
2105
- Lr as TopicClusterLinks,
2106
- Pr as UctaUbanner,
2107
- _r as UfeatureUspotlight,
2108
- Or as UlandingUbuilder,
2109
- Ur as UnpsUsurvey,
2110
- Mr as UseCaseGrid,
2111
- Dr as UtestimonialUslider,
2112
- Wr as UwelcomeUscreen,
2113
- Ar as generateContextualLinks
2098
+ Sr as CrmDashboard,
2099
+ Pr as FeatureListItem,
2100
+ _r as HeroBannerWithBadge,
2101
+ qe as InternalLink,
2102
+ Lr as RelatedLinks,
2103
+ Ur as SalesReport,
2104
+ Fr as SubscriberList,
2105
+ Tr as TopicClusterLinks,
2106
+ Nr as UctaUbanner,
2107
+ jr as UfeatureUspotlight,
2108
+ Ar as UlandingUbuilder,
2109
+ Or as UnpsUsurvey,
2110
+ Dr as UseCaseGrid,
2111
+ Ir as UtestimonialUslider,
2112
+ Mr as UwelcomeUscreen,
2113
+ $r as generateContextualLinks
2114
2114
  };