@sudobility/marketing-components 1.2.0 → 2.0.0

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.d.ts CHANGED
@@ -9,14 +9,12 @@ export * from './crm-dashboard';
9
9
  export * from './cta-banner';
10
10
  export * from './feature-list-item';
11
11
  export * from './feature-spotlight';
12
- export * from './funnel-chart';
13
12
  export * from './hero-banner-with-badge';
14
13
  export * from './internal-link-clusters';
15
14
  export * from './landing-builder';
16
15
  export * from './nps-survey';
17
16
  export * from './sales-report';
18
17
  export * from './subscriber-list';
19
- export * from './survey-builder';
20
18
  export * from './testimonial-slider';
21
19
  export * from './use-case-grid';
22
20
  export * from './welcome-screen';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
package/dist/index.esm.js CHANGED
@@ -45,7 +45,7 @@ function et() {
45
45
  return "Suspense";
46
46
  case I:
47
47
  return "SuspenseList";
48
- case O:
48
+ case U:
49
49
  return "Activity";
50
50
  }
51
51
  if (typeof s == "object")
@@ -54,7 +54,7 @@ function et() {
54
54
  ), s.$$typeof) {
55
55
  case E:
56
56
  return "Portal";
57
- case A:
57
+ case O:
58
58
  return s.displayName || "Context";
59
59
  case k:
60
60
  return (s._context.displayName || "Context") + ".Consumer";
@@ -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"), A = 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"), O = 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() {
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 = {
@@ -413,28 +413,6 @@ const nt = /* @__PURE__ */ u.forwardRef(rt), Pr = ({
413
413
  children: r || "UfeatureUspotlight Component"
414
414
  }
415
415
  ), _r = ({
416
- className: e,
417
- children: r,
418
- disabled: t = !1,
419
- onClick: n
420
- }) => /* @__PURE__ */ h.jsx(
421
- "div",
422
- {
423
- className: R(
424
- "p-4 rounded-lg border transition-colors",
425
- "bg-white dark:bg-gray-900",
426
- "border-gray-200 dark:border-gray-700",
427
- "text-gray-900 dark:text-white",
428
- t && "opacity-50 cursor-not-allowed",
429
- "hover:bg-gray-50 dark:hover:bg-gray-800",
430
- e
431
- ),
432
- onClick: t ? void 0 : n,
433
- role: "region",
434
- "aria-label": "UfunnelUchart",
435
- children: r || "UfunnelUchart Component"
436
- }
437
- ), Tr = ({
438
416
  badgeIcon: e,
439
417
  badgeText: r,
440
418
  badgeColor: t = "blue",
@@ -550,14 +528,14 @@ function me(e) {
550
528
  }
551
529
  return r;
552
530
  }
553
- function $e(e, r, t = "/") {
531
+ function Ae(e, r, t = "/") {
554
532
  return at(e, r, t, !1);
555
533
  }
556
534
  function at(e, r, t, n) {
557
535
  let a = typeof r == "string" ? me(r) : r, o = F(a.pathname || "/", t);
558
536
  if (o == null)
559
537
  return null;
560
- let l = Ae(e);
538
+ let l = Oe(e);
561
539
  ot(l);
562
540
  let i = null;
563
541
  for (let c = 0; i == null && c < l.length; ++c) {
@@ -570,7 +548,7 @@ function at(e, r, t, n) {
570
548
  }
571
549
  return i;
572
550
  }
573
- function Ae(e, r = [], t = [], n = "", a = !1) {
551
+ function Oe(e, r = [], t = [], n = "", a = !1) {
574
552
  let o = (l, i, c = a, f) => {
575
553
  let m = {
576
554
  relativePath: f === void 0 ? l.path || "" : f,
@@ -592,7 +570,7 @@ function Ae(e, r = [], t = [], n = "", a = !1) {
592
570
  // @ts-expect-error
593
571
  l.index !== !0,
594
572
  `Index routes must not have child routes. Please remove all child routes from route path "${d}".`
595
- ), Ae(
573
+ ), Oe(
596
574
  l.children,
597
575
  r,
598
576
  p,
@@ -608,17 +586,17 @@ function Ae(e, r = [], t = [], n = "", a = !1) {
608
586
  if (l.path === "" || !l.path?.includes("?"))
609
587
  o(l, i);
610
588
  else
611
- for (let c of Oe(l.path))
589
+ for (let c of Ue(l.path))
612
590
  o(l, i, !0, c);
613
591
  }), r;
614
592
  }
615
- function Oe(e) {
593
+ function Ue(e) {
616
594
  let r = e.split("/");
617
595
  if (r.length === 0) return [];
618
596
  let [t, ...n] = r, a = t.endsWith("?"), o = t.replace(/\?$/, "");
619
597
  if (n.length === 0)
620
598
  return a ? [o, ""] : [o];
621
- let l = Oe(n.join("/")), i = [];
599
+ let l = Ue(n.join("/")), i = [];
622
600
  return i.push(
623
601
  ...l.map(
624
602
  (c) => c === "" ? o : [o, c].join("/")
@@ -850,20 +828,20 @@ var St = u.createContext(
850
828
  St.displayName = "Fetchers";
851
829
  var Nt = u.createContext(null);
852
830
  Nt.displayName = "Await";
853
- var U = u.createContext(
831
+ var $ = u.createContext(
854
832
  null
855
833
  );
856
- U.displayName = "Navigation";
834
+ $.displayName = "Navigation";
857
835
  var he = u.createContext(
858
836
  null
859
837
  );
860
838
  he.displayName = "Location";
861
- var $ = u.createContext({
839
+ var A = u.createContext({
862
840
  outlet: null,
863
841
  matches: [],
864
842
  isDataRoute: !1
865
843
  });
866
- $.displayName = "Route";
844
+ A.displayName = "Route";
867
845
  var pe = u.createContext(null);
868
846
  pe.displayName = "RouteError";
869
847
  function Pt(e, { relative: r } = {}) {
@@ -873,7 +851,7 @@ function Pt(e, { relative: r } = {}) {
873
851
  // router loaded. We can help them understand how to avoid that.
874
852
  "useHref() may be used only in the context of a <Router> component."
875
853
  );
876
- let { basename: t, navigator: n } = u.useContext(U), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
854
+ let { basename: t, navigator: n } = u.useContext($), { hash: a, pathname: o, search: l } = G(e, { relative: r }), i = o;
877
855
  return t !== "/" && (i = o === "/" ? t : L([t, o])), n.createHref({ pathname: i, search: l, hash: a });
878
856
  }
879
857
  function ne() {
@@ -889,10 +867,10 @@ function D() {
889
867
  }
890
868
  var We = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
891
869
  function ze(e) {
892
- u.useContext(U).static || u.useLayoutEffect(e);
870
+ u.useContext($).static || u.useLayoutEffect(e);
893
871
  }
894
872
  function jt() {
895
- let { isDataRoute: e } = u.useContext($);
873
+ let { isDataRoute: e } = u.useContext(A);
896
874
  return e ? zt() : _t();
897
875
  }
898
876
  function _t() {
@@ -902,7 +880,7 @@ function _t() {
902
880
  // router loaded. We can help them understand how to avoid that.
903
881
  "useNavigate() may be used only in the context of a <Router> component."
904
882
  );
905
- let e = u.useContext(H), { basename: r, navigator: t } = u.useContext(U), { matches: n } = u.useContext($), { pathname: a } = D(), o = JSON.stringify(Fe(n)), l = u.useRef(!1);
883
+ let e = u.useContext(H), { basename: r, navigator: t } = u.useContext($), { matches: n } = u.useContext(A), { pathname: a } = D(), o = JSON.stringify(Fe(n)), l = u.useRef(!1);
906
884
  return ze(() => {
907
885
  l.current = !0;
908
886
  }), u.useCallback(
@@ -935,7 +913,7 @@ function _t() {
935
913
  }
936
914
  u.createContext(null);
937
915
  function G(e, { relative: r } = {}) {
938
- let { matches: t } = u.useContext($), { pathname: n } = D(), a = JSON.stringify(Fe(t));
916
+ let { matches: t } = u.useContext(A), { pathname: n } = D(), a = JSON.stringify(Fe(t));
939
917
  return u.useMemo(
940
918
  () => Ie(
941
919
  e,
@@ -953,7 +931,7 @@ function Tt(e, r, t, n, a) {
953
931
  // router loaded. We can help them understand how to avoid that.
954
932
  "useRoutes() may be used only in the context of a <Router> component."
955
933
  );
956
- let { navigator: o } = u.useContext(U), { matches: l } = u.useContext($), i = l[l.length - 1], c = i ? i.params : {}, f = i ? i.pathname : "/", m = i ? i.pathnameBase : "/", d = i && i.route;
934
+ let { navigator: o } = u.useContext($), { matches: l } = u.useContext(A), i = l[l.length - 1], c = i ? i.params : {}, f = i ? i.pathname : "/", m = i ? i.pathnameBase : "/", d = i && i.route;
957
935
  {
958
936
  let b = d && d.path || "";
959
937
  Ye(
@@ -971,14 +949,14 @@ Please change the parent <Route path="${b}"> to <Route path="${b === "/" ? "*" :
971
949
  let b = m.replace(/^\//, "").split("/");
972
950
  E = "/" + y.replace(/^\//, "").split("/").slice(b.length).join("/");
973
951
  }
974
- let w = $e(e, { pathname: E });
952
+ let w = Ae(e, { pathname: E });
975
953
  return _(
976
954
  d || w != null,
977
955
  `No routes matched location "${g.pathname}${g.search}${g.hash}" `
978
956
  ), _(
979
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,
980
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.`
981
- ), Ot(
959
+ ), Ut(
982
960
  w && w.map(
983
961
  (b) => Object.assign({}, b, {
984
962
  params: Object.assign({}, c, b.params),
@@ -1017,7 +995,7 @@ function Lt() {
1017
995
  e
1018
996
  ), l = /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ u.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ u.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ u.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ u.createElement(u.Fragment, null, /* @__PURE__ */ u.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ u.createElement("h3", { style: { fontStyle: "italic" } }, r), t ? /* @__PURE__ */ u.createElement("pre", { style: a }, t) : null, l);
1019
997
  }
1020
- var Ut = /* @__PURE__ */ u.createElement(Lt, null), $t = class extends u.Component {
998
+ var $t = /* @__PURE__ */ u.createElement(Lt, null), At = class extends u.Component {
1021
999
  constructor(e) {
1022
1000
  super(e), this.state = {
1023
1001
  location: e.location,
@@ -1046,7 +1024,7 @@ var Ut = /* @__PURE__ */ u.createElement(Lt, null), $t = class extends u.Compone
1046
1024
  );
1047
1025
  }
1048
1026
  render() {
1049
- return this.state.error !== void 0 ? /* @__PURE__ */ u.createElement($.Provider, { value: this.props.routeContext }, /* @__PURE__ */ u.createElement(
1027
+ return this.state.error !== void 0 ? /* @__PURE__ */ u.createElement(A.Provider, { value: this.props.routeContext }, /* @__PURE__ */ u.createElement(
1050
1028
  pe.Provider,
1051
1029
  {
1052
1030
  value: this.state.error,
@@ -1055,11 +1033,11 @@ var Ut = /* @__PURE__ */ u.createElement(Lt, null), $t = class extends u.Compone
1055
1033
  )) : this.props.children;
1056
1034
  }
1057
1035
  };
1058
- function At({ routeContext: e, match: r, children: t }) {
1036
+ function Ot({ routeContext: e, match: r, children: t }) {
1059
1037
  let n = u.useContext(H);
1060
- return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ u.createElement($.Provider, { value: e }, t);
1038
+ return n && n.static && n.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ u.createElement(A.Provider, { value: e }, t);
1061
1039
  }
1062
- function Ot(e, r = [], t = null, n = null, a = null) {
1040
+ function Ut(e, r = [], t = null, n = null, a = null) {
1063
1041
  if (e == null) {
1064
1042
  if (!t)
1065
1043
  return null;
@@ -1107,7 +1085,7 @@ function Ot(e, r = [], t = null, n = null, a = null) {
1107
1085
  return o.reduceRight(
1108
1086
  (m, d, p) => {
1109
1087
  let g, y = !1, E = null, w = null;
1110
- t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || Ut, i && (c < 0 && p === 0 ? (Ye(
1088
+ t && (g = l && d.route.id ? l[d.route.id] : void 0, E = d.route.errorElement || $t, i && (c < 0 && p === 0 ? (Ye(
1111
1089
  "route-fallback",
1112
1090
  !1,
1113
1091
  "No `HydrateFallback` element provided to render during initial hydration"
@@ -1115,7 +1093,7 @@ function Ot(e, r = [], t = null, n = null, a = null) {
1115
1093
  let v = r.concat(o.slice(0, p + 1)), b = () => {
1116
1094
  let k;
1117
1095
  return g ? k = E : y ? k = w : d.route.Component ? k = /* @__PURE__ */ u.createElement(d.route.Component, null) : d.route.element ? k = d.route.element : k = m, /* @__PURE__ */ u.createElement(
1118
- At,
1096
+ Ot,
1119
1097
  {
1120
1098
  match: d,
1121
1099
  routeContext: {
@@ -1128,7 +1106,7 @@ function Ot(e, r = [], t = null, n = null, a = null) {
1128
1106
  );
1129
1107
  };
1130
1108
  return t && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ u.createElement(
1131
- $t,
1109
+ At,
1132
1110
  {
1133
1111
  location: t.location,
1134
1112
  revalidation: t.revalidation,
@@ -1155,7 +1133,7 @@ function It(e) {
1155
1133
  return P(r, ge(e)), r;
1156
1134
  }
1157
1135
  function Dt(e) {
1158
- let r = u.useContext($);
1136
+ let r = u.useContext(A);
1159
1137
  return P(r, ge(e)), r;
1160
1138
  }
1161
1139
  function be(e) {
@@ -1336,7 +1314,7 @@ async function tr(e, r, t) {
1336
1314
  )
1337
1315
  );
1338
1316
  }
1339
- function Ue(e, r, t, n, a, o) {
1317
+ function $e(e, r, t, n, a, o) {
1340
1318
  let l = (c, f) => t[f] ? c.route.id !== t[f].route.id : !0, i = (c, f) => (
1341
1319
  // param change, /users/123 -> /users/456
1342
1320
  t[f].pathname !== c.pathname || // splat param changed, which is not present in match.path
@@ -1464,7 +1442,7 @@ function J(e, r) {
1464
1442
  }
1465
1443
  function sr({ page: e, ...r }) {
1466
1444
  let { router: t } = He(), n = u.useMemo(
1467
- () => $e(t.routes, e, t.basename),
1445
+ () => Ae(t.routes, e, t.basename),
1468
1446
  [t.routes, e, t.basename]
1469
1447
  );
1470
1448
  return n ? /* @__PURE__ */ u.createElement(cr, { page: e, matches: n, ...r }) : null;
@@ -1488,7 +1466,7 @@ function cr({
1488
1466
  ...t
1489
1467
  }) {
1490
1468
  let n = D(), { manifest: a, routeModules: o } = Ve(), { basename: l } = He(), { loaderData: i, matches: c } = lr(), f = u.useMemo(
1491
- () => Ue(
1469
+ () => $e(
1492
1470
  e,
1493
1471
  r,
1494
1472
  c,
@@ -1498,7 +1476,7 @@ function cr({
1498
1476
  ),
1499
1477
  [e, r, c, a, n]
1500
1478
  ), m = u.useMemo(
1501
- () => Ue(
1479
+ () => $e(
1502
1480
  e,
1503
1481
  r,
1504
1482
  c,
@@ -1568,18 +1546,18 @@ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1568
1546
  viewTransition: d,
1569
1547
  ...p
1570
1548
  }, g) {
1571
- let { basename: y } = u.useContext(U), E = typeof f == "string" && Je.test(f), w, v = !1;
1549
+ let { basename: y } = u.useContext($), E = typeof f == "string" && Je.test(f), w, v = !1;
1572
1550
  if (typeof f == "string" && E && (w = f, Be))
1573
1551
  try {
1574
- let j = new URL(window.location.href), O = f.startsWith("//") ? new URL(j.protocol + f) : new URL(f), q = F(O.pathname, y);
1575
- O.origin === j.origin && q != null ? f = q + O.search + O.hash : v = !0;
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
+ U.origin === j.origin && q != null ? f = q + U.search + U.hash : v = !0;
1576
1554
  } catch {
1577
1555
  _(
1578
1556
  !1,
1579
1557
  `<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
1580
1558
  );
1581
1559
  }
1582
- let b = Pt(f, { relative: a }), [k, A, T] = ir(
1560
+ let b = Pt(f, { relative: a }), [k, O, T] = ir(
1583
1561
  n,
1584
1562
  p
1585
1563
  ), M = pr(f, {
@@ -1602,7 +1580,7 @@ var Je = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = u.forwardRef(
1602
1580
  ...T,
1603
1581
  href: w || b,
1604
1582
  onClick: v || o ? r : I,
1605
- ref: dr(g, A),
1583
+ ref: dr(g, O),
1606
1584
  target: c,
1607
1585
  "data-discover": !E && t === "render" ? "true" : void 0
1608
1586
  }
@@ -1624,12 +1602,12 @@ var fr = u.forwardRef(
1624
1602
  children: c,
1625
1603
  ...f
1626
1604
  }, m) {
1627
- let d = G(l, { relative: f.relative }), p = D(), g = u.useContext(re), { navigator: y, basename: E } = u.useContext(U), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1605
+ let d = G(l, { relative: f.relative }), p = D(), g = u.useContext(re), { navigator: y, basename: E } = u.useContext($), w = g != null && // Conditional usage is OK here because the usage of a data router is static
1628
1606
  // eslint-disable-next-line react-hooks/rules-of-hooks
1629
1607
  vr(d) && i === !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;
1630
1608
  t || (b = b.toLowerCase(), k = k ? k.toLowerCase() : null, v = v.toLowerCase()), k && E && (k = F(k, E) || k);
1631
- const A = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
1632
- let T = b === v || !a && b.startsWith(v) && b.charAt(A) === "/", M = k != null && (k === v || !a && k.startsWith(v) && k.charAt(v.length) === "/"), I = {
1609
+ const O = v !== "/" && v.endsWith("/") ? v.length - 1 : v.length;
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 = {
1633
1611
  isActive: T,
1634
1612
  isPending: M,
1635
1613
  isTransitioning: w
@@ -1640,7 +1618,7 @@ var fr = u.forwardRef(
1640
1618
  M ? "pending" : null,
1641
1619
  w ? "transitioning" : null
1642
1620
  ].filter(Boolean).join(" ");
1643
- let O = typeof o == "function" ? o(I) : o;
1621
+ let U = typeof o == "function" ? o(I) : o;
1644
1622
  return /* @__PURE__ */ u.createElement(
1645
1623
  ve,
1646
1624
  {
@@ -1648,7 +1626,7 @@ var fr = u.forwardRef(
1648
1626
  "aria-current": W,
1649
1627
  className: j,
1650
1628
  ref: m,
1651
- style: O,
1629
+ style: U,
1652
1630
  to: l,
1653
1631
  viewTransition: i
1654
1632
  },
@@ -1676,8 +1654,8 @@ var mr = u.forwardRef(
1676
1654
  let y = xr(), E = yr(i, { relative: f }), w = l.toLowerCase() === "get" ? "get" : "post", v = typeof i == "string" && Je.test(i), b = (k) => {
1677
1655
  if (c && c(k), k.defaultPrevented) return;
1678
1656
  k.preventDefault();
1679
- let A = k.nativeEvent.submitter, T = A?.getAttribute("formmethod") || l;
1680
- y(A || k.currentTarget, {
1657
+ let O = k.nativeEvent.submitter, T = O?.getAttribute("formmethod") || l;
1658
+ y(O || k.currentTarget, {
1681
1659
  fetcherKey: r,
1682
1660
  method: T,
1683
1661
  navigate: t,
@@ -1751,7 +1729,7 @@ function xr() {
1751
1729
  let { router: e } = Ge(
1752
1730
  "useSubmit"
1753
1731
  /* UseSubmit */
1754
- ), { basename: r } = u.useContext(U), t = Mt();
1732
+ ), { basename: r } = u.useContext($), t = Mt();
1755
1733
  return u.useCallback(
1756
1734
  async (n, a = {}) => {
1757
1735
  let { action: o, method: l, encType: i, formData: c, body: f } = Kt(
@@ -1786,7 +1764,7 @@ function xr() {
1786
1764
  );
1787
1765
  }
1788
1766
  function yr(e, { relative: r } = {}) {
1789
- let { basename: t } = u.useContext(U), n = u.useContext($);
1767
+ let { basename: t } = u.useContext($), n = u.useContext(A);
1790
1768
  P(n, "useFormAction must be used inside a RouteContext");
1791
1769
  let [a] = n.matches.slice(-1), o = { ...G(e || ".", { relative: r }) }, l = D();
1792
1770
  if (e == null) {
@@ -1860,7 +1838,7 @@ const wr = {
1860
1838
  nameService: "/document#name-service-subscription",
1861
1839
  troubleshooting: "/document#troubleshooting"
1862
1840
  }
1863
- }, Lr = ({
1841
+ }, Tr = ({
1864
1842
  cluster: e,
1865
1843
  context: r = "",
1866
1844
  className: t
@@ -1894,7 +1872,7 @@ const wr = {
1894
1872
  /* @__PURE__ */ h.jsx(qe, { to: l, variant: "primary", children: a[e][o] }),
1895
1873
  i < Object.keys(n).length - 1 && " • "
1896
1874
  ] }, o)) });
1897
- }, Ur = ({
1875
+ }, Lr = ({
1898
1876
  title: e = "Related:",
1899
1877
  links: r,
1900
1878
  className: t
@@ -1978,7 +1956,7 @@ const wr = {
1978
1956
  "aria-label": "UnpsUsurvey",
1979
1957
  children: r || "UnpsUsurvey Component"
1980
1958
  }
1981
- ), Fr = ({
1959
+ ), Ur = ({
1982
1960
  className: e,
1983
1961
  children: r,
1984
1962
  disabled: t
@@ -1997,7 +1975,7 @@ const wr = {
1997
1975
  "aria-label": "SalesReport",
1998
1976
  children: r || "SalesReport Component"
1999
1977
  }
2000
- ), Ir = ({
1978
+ ), Fr = ({
2001
1979
  className: e,
2002
1980
  children: r,
2003
1981
  disabled: t
@@ -2016,29 +1994,7 @@ const wr = {
2016
1994
  "aria-label": "SubscriberList",
2017
1995
  children: r || "SubscriberList Component"
2018
1996
  }
2019
- ), Dr = ({
2020
- className: e,
2021
- children: r,
2022
- disabled: t = !1,
2023
- onClick: n
2024
- }) => /* @__PURE__ */ h.jsx(
2025
- "div",
2026
- {
2027
- className: R(
2028
- "p-4 rounded-lg border transition-colors",
2029
- "bg-white dark:bg-gray-900",
2030
- "border-gray-200 dark:border-gray-700",
2031
- "text-gray-900 dark:text-white",
2032
- t && "opacity-50 cursor-not-allowed",
2033
- "hover:bg-gray-50 dark:hover:bg-gray-800",
2034
- e
2035
- ),
2036
- onClick: t ? void 0 : n,
2037
- role: "region",
2038
- "aria-label": "UsurveyUbuilder",
2039
- children: r || "UsurveyUbuilder Component"
2040
- }
2041
- ), Mr = ({
1997
+ ), Ir = ({
2042
1998
  className: e,
2043
1999
  children: r,
2044
2000
  disabled: t = !1,
@@ -2060,7 +2016,7 @@ const wr = {
2060
2016
  "aria-label": "UtestimonialUslider",
2061
2017
  children: r || "UtestimonialUslider Component"
2062
2018
  }
2063
- ), Wr = ({
2019
+ ), Dr = ({
2064
2020
  title: e,
2065
2021
  description: r,
2066
2022
  useCases: t,
@@ -2115,7 +2071,7 @@ const wr = {
2115
2071
  );
2116
2072
  }) })
2117
2073
  ] }) });
2118
- }, zr = ({
2074
+ }, Mr = ({
2119
2075
  className: e,
2120
2076
  children: r,
2121
2077
  disabled: t = !1,
@@ -2141,20 +2097,18 @@ const wr = {
2141
2097
  export {
2142
2098
  Sr as CrmDashboard,
2143
2099
  Pr as FeatureListItem,
2144
- Tr as HeroBannerWithBadge,
2100
+ _r as HeroBannerWithBadge,
2145
2101
  qe as InternalLink,
2146
- Ur as RelatedLinks,
2147
- Fr as SalesReport,
2148
- Ir as SubscriberList,
2149
- Lr as TopicClusterLinks,
2102
+ Lr as RelatedLinks,
2103
+ Ur as SalesReport,
2104
+ Fr as SubscriberList,
2105
+ Tr as TopicClusterLinks,
2150
2106
  Nr as UctaUbanner,
2151
2107
  jr as UfeatureUspotlight,
2152
- _r as UfunnelUchart,
2153
2108
  Ar as UlandingUbuilder,
2154
2109
  Or as UnpsUsurvey,
2155
- Wr as UseCaseGrid,
2156
- Dr as UsurveyUbuilder,
2157
- Mr as UtestimonialUslider,
2158
- zr as UwelcomeUscreen,
2110
+ Dr as UseCaseGrid,
2111
+ Ir as UtestimonialUslider,
2112
+ Mr as UwelcomeUscreen,
2159
2113
  $r as generateContextualLinks
2160
2114
  };
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
- (function(R,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("@sudobility/components"),require("@sudobility/design")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components","@sudobility/design"],A):(R=typeof globalThis<"u"?globalThis:R||self,A(R.Components={},R.React,R.components,R.design))})(this,(function(R,A,E,M){"use strict";function Ke(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=Ke(A);var K={exports:{}},J={};var Ee;function Ze(){if(Ee)return J;Ee=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var i in a)i!=="key"&&(o[i]=a[i])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:l,ref:a!==void 0?a:null,props:o}}return J.Fragment=r,J.jsx=t,J.jsxs=t,J}var G={};var Ce;function Qe(){return Ce||(Ce=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===oe?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case k:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case H:return"Suspense";case z:return"SuspenseList";case D:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case C:return"Portal";case I:return s.displayName||"Context";case w:return(s._context.displayName||"Context")+".Consumer";case O:var x=s.render;return s=s.displayName,s||(s=x.displayName||x.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Y:return x=s.displayName||null,x!==null?x:e(s.type)||"Memo";case T:x=s._payload,s=s._init;try{return e(s(x))}catch{}}return null}function r(s){return""+s}function t(s){try{r(s);var x=!1}catch{x=!0}if(x){x=console;var S=x.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return S.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),r(s)}}function n(s){if(s===k)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===T)return"<...>";try{var x=e(s);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function a(){var s=ye.A;return s===null?null:s.getOwner()}function o(){return Error("react-stack-top-frame")}function l(s){if(Ye.call(s,"key")){var x=Object.getOwnPropertyDescriptor(s,"key").get;if(x&&x.isReactWarning)return!1}return s.key!==void 0}function i(s,x){function S(){Be||(Be=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}S.isReactWarning=!0,Object.defineProperty(s,"key",{get:S,configurable:!0})}function c(){var s=e(this.type);return Je[s]||(Je[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function f(s,x,S,N,le,ke){var P=S.ref;return s={$$typeof:y,type:s,key:x,props:S,_owner:N},(P!==void 0?P:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:c}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ke}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function m(s,x,S,N,le,ke){var P=x.children;if(P!==void 0)if(N)if(Dr(P)){for(N=0;N<P.length;N++)d(P[N]);Object.freeze&&Object.freeze(P)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(P);if(Ye.call(x,"key")){P=e(s);var B=Object.keys(x).filter(function(Mr){return Mr!=="key"});N=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",Xe[P+N]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ (function(C,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("@sudobility/components"),require("@sudobility/design")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components","@sudobility/design"],A):(C=typeof globalThis<"u"?globalThis:C||self,A(C.Components={},C.React,C.components,C.design))})(this,(function(C,A,R,M){"use strict";function Ke(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const u=Ke(A);var K={exports:{}},J={};var Ee;function Ze(){if(Ee)return J;Ee=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var i in a)i!=="key"&&(o[i]=a[i])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:l,ref:a!==void 0?a:null,props:o}}return J.Fragment=r,J.jsx=t,J.jsxs=t,J}var G={};var Re;function Qe(){return Re||(Re=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===oe?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case w:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case H:return"Suspense";case z:return"SuspenseList";case D:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case E:return"Portal";case I:return s.displayName||"Context";case k:return(s._context.displayName||"Context")+".Consumer";case O:var x=s.render;return s=s.displayName,s||(s=x.displayName||x.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case Y:return x=s.displayName||null,x!==null?x:e(s.type)||"Memo";case T:x=s._payload,s=s._init;try{return e(s(x))}catch{}}return null}function r(s){return""+s}function t(s){try{r(s);var x=!1}catch{x=!0}if(x){x=console;var S=x.error,P=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return S.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",P),r(s)}}function n(s){if(s===w)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===T)return"<...>";try{var x=e(s);return x?"<"+x+">":"<...>"}catch{return"<...>"}}function a(){var s=ye.A;return s===null?null:s.getOwner()}function o(){return Error("react-stack-top-frame")}function l(s){if(Ye.call(s,"key")){var x=Object.getOwnPropertyDescriptor(s,"key").get;if(x&&x.isReactWarning)return!1}return s.key!==void 0}function i(s,x){function S(){Be||(Be=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",x))}S.isReactWarning=!0,Object.defineProperty(s,"key",{get:S,configurable:!0})}function c(){var s=e(this.type);return Je[s]||(Je[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function f(s,x,S,P,le,we){var N=S.ref;return s={$$typeof:y,type:s,key:x,props:S,_owner:P},(N!==void 0?N:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:c}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function m(s,x,S,P,le,we){var N=x.children;if(N!==void 0)if(P)if(Fr(N)){for(P=0;P<N.length;P++)d(N[P]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(N);if(Ye.call(x,"key")){N=e(s);var B=Object.keys(x).filter(function(Ir){return Ir!=="key"});P=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",Xe[N+P]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,N,P,B,P),Xe[P+N]=!0)}if(P=null,S!==void 0&&(t(S),P=""+S),l(x)&&(t(x.key),P=""+x.key),"key"in x){S={};for(var we in x)we!=="key"&&(S[we]=x[we])}else S=x;return P&&i(S,typeof s=="function"?s.displayName||s.name||"Unknown":s),f(s,P,S,a(),le,ke)}function d(s){g(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===T&&(s._payload.status==="fulfilled"?g(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function g(s){return typeof s=="object"&&s!==null&&s.$$typeof===y}var p=A,y=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),I=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),ye=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ye=Object.prototype.hasOwnProperty,Dr=Array.isArray,ve=console.createTask?console.createTask:function(){return null};p={react_stack_bottom_frame:function(s){return s()}};var Be,Je={},Ge=p.react_stack_bottom_frame.bind(p,o)(),qe=ve(n(o)),Xe={};G.Fragment=k,G.jsx=function(s,x,S){var N=1e4>ye.recentlyCreatedOwnerStacks++;return m(s,x,S,!1,N?Error("react-stack-top-frame"):Ge,N?ve(n(s)):qe)},G.jsxs=function(s,x,S){var N=1e4>ye.recentlyCreatedOwnerStacks++;return m(s,x,S,!0,N?Error("react-stack-top-frame"):Ge,N?ve(n(s)):qe)}})()),G}var Re;function et(){return Re||(Re=1,process.env.NODE_ENV==="production"?K.exports=Ze():K.exports=Qe()),K.exports}var h=et();const tt=({className:e,children:r,disabled:t})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"CrmDashboard",children:r||"CrmDashboard Component"}),rt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UctaUbanner",children:r||"UctaUbanner Component"});function nt({title:e,titleId:r,...t},n){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},t),e?u.createElement("title",{id:r},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const at=u.forwardRef(nt),ot=({title:e,description:r,icon:t=at,iconVariant:n="success",size:a="md",className:o})=>{const l={primary:"bg-blue-400 text-blue-900",success:"bg-green-400 text-emerald-900",warning:"bg-yellow-400 text-yellow-900",info:"bg-cyan-400 text-cyan-900",gradient:"bg-gradient-to-br from-blue-400 to-purple-500 text-white"},c={sm:{container:"gap-2",icon:"p-1.5",iconSize:"h-4 w-4",title:M.textVariants.body.md(),description:M.textVariants.body.sm()},md:{container:"gap-3",icon:"p-2",iconSize:"h-5 w-5",title:M.textVariants.body.strong.md(),description:M.textVariants.body.md()},lg:{container:"gap-4",icon:"p-3",iconSize:"h-6 w-6",title:M.textVariants.heading.h4(),description:M.textVariants.body.md()}}[a];return h.jsxs("div",{className:E.cn("flex items-start",c.container,o),children:[h.jsx("div",{className:E.cn("rounded-full flex-shrink-0",c.icon,l[n]),children:h.jsx(t,{className:c.iconSize})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:c.title,children:e}),r&&h.jsx("p",{className:E.cn(c.description,"mt-1 text-gray-600 dark:text-gray-300"),children:r})]})]})},lt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UfeatureUspotlight",children:r||"UfeatureUspotlight Component"}),it=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UfunnelUchart",children:r||"UfunnelUchart Component"}),st=({badgeIcon:e,badgeText:r,badgeColor:t="blue",title:n,subtitle:a,description:o,primaryButton:l,secondaryButton:i,className:c,children:f})=>{const d={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[t];return h.jsx("section",{className:E.cn("py-20",c),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[h.jsxs("div",{className:E.cn("inline-flex items-center border px-6 py-3 rounded-full mb-6",d),children:[e&&h.jsx("span",{className:"mr-3",children:e}),h.jsx("span",{className:"font-semibold",children:r})]}),h.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof n=="string"?h.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):n,a&&h.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:a})]}),h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:o}),(l||i)&&h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[l&&(l.href?h.jsx("a",{href:l.href,className:E.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",l.className),children:l.text}):h.jsx("button",{onClick:l.onClick,className:E.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",l.className),children:l.text})),i&&(i.href?h.jsx("a",{href:i.href,className:E.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",i.className),children:i.text}):h.jsx("button",{onClick:i.onClick,className:E.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",i.className),children:i.text}))]}),f]})})};function j(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function _(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function ie({pathname:e="/",search:r="",hash:t=""}){return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function se(e){let r={};if(e){let t=e.indexOf("#");t>=0&&(r.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(r.search=e.substring(n),e=e.substring(0,n)),e&&(r.pathname=e)}return r}function Se(e,r,t="/"){return ut(e,r,t,!1)}function ut(e,r,t,n){let a=typeof r=="string"?se(r):r,o=F(a.pathname||"/",t);if(o==null)return null;let l=Ne(e);ct(l);let i=null;for(let c=0;i==null&&c<l.length;++c){let f=kt(o);i=yt(l[c],f,n)}return i}function Ne(e,r=[],t=[],n="",a=!1){let o=(l,i,c=a,f)=>{let m={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&c)return;j(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let d=L([n,m.relativePath]),g=t.concat(m);l.children&&l.children.length>0&&(j(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Ne(l.children,r,g,d,c)),!(l.path==null&&!l.index)&&r.push({path:d,score:bt(d,l.index),routesMeta:g})};return e.forEach((l,i)=>{if(l.path===""||!l.path?.includes("?"))o(l,i);else for(let c of Pe(l.path))o(l,i,!0,c)}),r}function Pe(e){let r=e.split("/");if(r.length===0)return[];let[t,...n]=r,a=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=Pe(n.join("/")),i=[];return i.push(...l.map(c=>c===""?o:[o,c].join("/"))),a&&i.push(...l),i.map(c=>e.startsWith("/")&&c===""?"/":c)}function ct(e){e.sort((r,t)=>r.score!==t.score?t.score-r.score:xt(r.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var dt=/^:[\w-]+$/,ft=3,mt=2,ht=1,gt=10,pt=-2,je=e=>e==="*";function bt(e,r){let t=e.split("/"),n=t.length;return t.some(je)&&(n+=pt),r&&(n+=mt),t.filter(a=>!je(a)).reduce((a,o)=>a+(dt.test(o)?ft:o===""?ht:gt),n)}function xt(e,r){return e.length===r.length&&e.slice(0,-1).every((n,a)=>n===r[a])?e[e.length-1]-r[r.length-1]:0}function yt(e,r,t=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let i=0;i<n.length;++i){let c=n[i],f=i===n.length-1,m=o==="/"?r:r.slice(o.length)||"/",d=Z({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},m),g=c.route;if(!d&&f&&t&&!n[n.length-1].route.index&&(d=Z({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!d)return null;Object.assign(a,d.params),l.push({params:a,pathname:L([o,d.pathname]),pathnameBase:St(L([o,d.pathnameBase])),route:g}),d.pathnameBase!=="/"&&(o=L([o,d.pathnameBase]))}return l}function Z(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=vt(e.path,e.caseSensitive,e.end),a=r.match(t);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce((f,{paramName:m,isOptional:d},g)=>{if(m==="*"){let y=i[g]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const p=i[g];return d&&!p?f[m]=void 0:f[m]=(p||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function vt(e,r=!1,t=!0){_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`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(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,c)=>(n.push({paramName:i,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),n]}function kt(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return _(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}function F(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let t=r.endsWith("/")?r.length-1:r.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var wt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Et=e=>wt.test(e);function Ct(e,r="/"){let{pathname:t,search:n="",hash:a=""}=typeof e=="string"?se(e):e,o;if(t)if(Et(t))o=t;else{if(t.includes("//")){let l=t;t=t.replace(/\/\/+/g,"/"),_(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`)}t.startsWith("/")?o=Te(t.substring(1),"/"):o=Te(t,r)}else o=r;return{pathname:o,search:Nt(n),hash:Pt(a)}}function Te(e,r){let t=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ue(e,r,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${r}\` field [${JSON.stringify(n)}]. 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.`}function Rt(e){return e.filter((r,t)=>t===0||r.route.path&&r.route.path.length>0)}function _e(e){let r=Rt(e);return r.map((t,n)=>n===r.length-1?t.pathname:t.pathnameBase)}function Le(e,r,t,n=!1){let a;typeof e=="string"?a=se(e):(a={...e},j(!a.pathname||!a.pathname.includes("?"),ue("?","pathname","search",a)),j(!a.pathname||!a.pathname.includes("#"),ue("#","pathname","hash",a)),j(!a.search||!a.search.includes("#"),ue("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,i;if(l==null)i=t;else{let d=r.length-1;if(!n&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),d-=1;a.pathname=g.join("/")}i=d>=0?r[d]:"/"}let c=Ct(a,i),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(f||m)&&(c.pathname+="/"),c}var L=e=>e.join("/").replace(/\/\/+/g,"/"),St=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Nt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function jt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ue=["POST","PUT","PATCH","DELETE"];new Set(Ue);var Tt=["GET",...Ue];new Set(Tt);var V=u.createContext(null);V.displayName="DataRouter";var Q=u.createContext(null);Q.displayName="DataRouterState",u.createContext(!1);var $e=u.createContext({isTransitioning:!1});$e.displayName="ViewTransition";var _t=u.createContext(new Map);_t.displayName="Fetchers";var Lt=u.createContext(null);Lt.displayName="Await";var U=u.createContext(null);U.displayName="Navigation";var ce=u.createContext(null);ce.displayName="Location";var $=u.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName="Route";var de=u.createContext(null);de.displayName="RouteError";function Ut(e,{relative:r}={}){j(ee(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=u.useContext(U),{hash:a,pathname:o,search:l}=q(e,{relative:r}),i=o;return t!=="/"&&(i=o==="/"?t:L([t,o])),n.createHref({pathname:i,search:l,hash:a})}function ee(){return u.useContext(ce)!=null}function W(){return j(ee(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(ce).location}var Oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ae(e){u.useContext(U).static||u.useLayoutEffect(e)}function $t(){let{isDataRoute:e}=u.useContext($);return e?Jt():Ot()}function Ot(){j(ee(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(V),{basename:r,navigator:t}=u.useContext(U),{matches:n}=u.useContext($),{pathname:a}=W(),o=JSON.stringify(_e(n)),l=u.useRef(!1);return Ae(()=>{l.current=!0}),u.useCallback((c,f={})=>{if(_(l.current,Oe),!l.current)return;if(typeof c=="number"){t.go(c);return}let m=Le(c,JSON.parse(o),a,f.relative==="path");e==null&&r!=="/"&&(m.pathname=m.pathname==="/"?r:L([r,m.pathname])),(f.replace?t.replace:t.push)(m,f.state,f)},[r,t,o,a,e])}u.createContext(null);function q(e,{relative:r}={}){let{matches:t}=u.useContext($),{pathname:n}=W(),a=JSON.stringify(_e(t));return u.useMemo(()=>Le(e,JSON.parse(a),n,r==="path"),[e,a,n,r])}function At(e,r,t,n,a){j(ee(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=u.useContext(U),{matches:l}=u.useContext($),i=l[l.length-1],c=i?i.params:{},f=i?i.pathname:"/",m=i?i.pathnameBase:"/",d=i&&i.route;{let b=d&&d.path||"";Ie(f,!d||b.endsWith("*")||b.endsWith("*?"),`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.
6
+ <%s key={someKey} {...props} />`,P,N,B,N),Xe[N+P]=!0)}if(N=null,S!==void 0&&(t(S),N=""+S),l(x)&&(t(x.key),N=""+x.key),"key"in x){S={};for(var ke in x)ke!=="key"&&(S[ke]=x[ke])}else S=x;return N&&i(S,typeof s=="function"?s.displayName||s.name||"Unknown":s),f(s,N,S,a(),le,we)}function d(s){p(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===T&&(s._payload.status==="fulfilled"?p(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function p(s){return typeof s=="object"&&s!==null&&s.$$typeof===y}var g=A,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"),I=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),oe=Symbol.for("react.client.reference"),ye=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ye=Object.prototype.hasOwnProperty,Fr=Array.isArray,ve=console.createTask?console.createTask:function(){return null};g={react_stack_bottom_frame:function(s){return s()}};var Be,Je={},Ge=g.react_stack_bottom_frame.bind(g,o)(),qe=ve(n(o)),Xe={};G.Fragment=w,G.jsx=function(s,x,S){var P=1e4>ye.recentlyCreatedOwnerStacks++;return m(s,x,S,!1,P?Error("react-stack-top-frame"):Ge,P?ve(n(s)):qe)},G.jsxs=function(s,x,S){var P=1e4>ye.recentlyCreatedOwnerStacks++;return m(s,x,S,!0,P?Error("react-stack-top-frame"):Ge,P?ve(n(s)):qe)}})()),G}var Ce;function et(){return Ce||(Ce=1,process.env.NODE_ENV==="production"?K.exports=Ze():K.exports=Qe()),K.exports}var h=et();const tt=({className:e,children:r,disabled:t})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"CrmDashboard",children:r||"CrmDashboard Component"}),rt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UctaUbanner",children:r||"UctaUbanner Component"});function nt({title:e,titleId:r,...t},n){return u.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":r},t),e?u.createElement("title",{id:r},e):null,u.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const at=u.forwardRef(nt),ot=({title:e,description:r,icon:t=at,iconVariant:n="success",size:a="md",className:o})=>{const l={primary:"bg-blue-400 text-blue-900",success:"bg-green-400 text-emerald-900",warning:"bg-yellow-400 text-yellow-900",info:"bg-cyan-400 text-cyan-900",gradient:"bg-gradient-to-br from-blue-400 to-purple-500 text-white"},c={sm:{container:"gap-2",icon:"p-1.5",iconSize:"h-4 w-4",title:M.textVariants.body.md(),description:M.textVariants.body.sm()},md:{container:"gap-3",icon:"p-2",iconSize:"h-5 w-5",title:M.textVariants.body.strong.md(),description:M.textVariants.body.md()},lg:{container:"gap-4",icon:"p-3",iconSize:"h-6 w-6",title:M.textVariants.heading.h4(),description:M.textVariants.body.md()}}[a];return h.jsxs("div",{className:R.cn("flex items-start",c.container,o),children:[h.jsx("div",{className:R.cn("rounded-full flex-shrink-0",c.icon,l[n]),children:h.jsx(t,{className:c.iconSize})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h4",{className:c.title,children:e}),r&&h.jsx("p",{className:R.cn(c.description,"mt-1 text-gray-600 dark:text-gray-300"),children:r})]})]})},lt=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UfeatureUspotlight",children:r||"UfeatureUspotlight Component"}),it=({badgeIcon:e,badgeText:r,badgeColor:t="blue",title:n,subtitle:a,description:o,primaryButton:l,secondaryButton:i,className:c,children:f})=>{const d={blue:"bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",green:"bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",purple:"bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",orange:"bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",pink:"bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",gray:"bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"}[t];return h.jsx("section",{className:R.cn("py-20",c),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[h.jsxs("div",{className:R.cn("inline-flex items-center border px-6 py-3 rounded-full mb-6",d),children:[e&&h.jsx("span",{className:"mr-3",children:e}),h.jsx("span",{className:"font-semibold",children:r})]}),h.jsxs("h1",{className:"text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6",children:[typeof n=="string"?h.jsx("span",{dangerouslySetInnerHTML:{__html:n}}):n,a&&h.jsx("span",{className:"text-blue-600 dark:text-blue-400 block",children:a})]}),h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed",children:o}),(l||i)&&h.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 justify-center mb-8",children:[l&&(l.href?h.jsx("a",{href:l.href,className:R.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",l.className),children:l.text}):h.jsx("button",{onClick:l.onClick,className:R.cn("px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",l.className),children:l.text})),i&&(i.href?h.jsx("a",{href:i.href,className:R.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",i.className),children:i.text}):h.jsx("button",{onClick:i.onClick,className:R.cn("px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",i.className),children:i.text}))]}),f]})})};function j(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function _(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function ie({pathname:e="/",search:r="",hash:t=""}){return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function se(e){let r={};if(e){let t=e.indexOf("#");t>=0&&(r.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(r.search=e.substring(n),e=e.substring(0,n)),e&&(r.pathname=e)}return r}function Se(e,r,t="/"){return st(e,r,t,!1)}function st(e,r,t,n){let a=typeof r=="string"?se(r):r,o=F(a.pathname||"/",t);if(o==null)return null;let l=Pe(e);ut(l);let i=null;for(let c=0;i==null&&c<l.length;++c){let f=vt(o);i=xt(l[c],f,n)}return i}function Pe(e,r=[],t=[],n="",a=!1){let o=(l,i,c=a,f)=>{let m={relativePath:f===void 0?l.path||"":f,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(n)&&c)return;j(m.relativePath.startsWith(n),`Absolute route path "${m.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(n.length)}let d=L([n,m.relativePath]),p=t.concat(m);l.children&&l.children.length>0&&(j(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Pe(l.children,r,p,d,c)),!(l.path==null&&!l.index)&&r.push({path:d,score:gt(d,l.index),routesMeta:p})};return e.forEach((l,i)=>{if(l.path===""||!l.path?.includes("?"))o(l,i);else for(let c of Ne(l.path))o(l,i,!0,c)}),r}function Ne(e){let r=e.split("/");if(r.length===0)return[];let[t,...n]=r,a=t.endsWith("?"),o=t.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let l=Ne(n.join("/")),i=[];return i.push(...l.map(c=>c===""?o:[o,c].join("/"))),a&&i.push(...l),i.map(c=>e.startsWith("/")&&c===""?"/":c)}function ut(e){e.sort((r,t)=>r.score!==t.score?t.score-r.score:bt(r.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var ct=/^:[\w-]+$/,dt=3,ft=2,mt=1,ht=10,pt=-2,je=e=>e==="*";function gt(e,r){let t=e.split("/"),n=t.length;return t.some(je)&&(n+=pt),r&&(n+=ft),t.filter(a=>!je(a)).reduce((a,o)=>a+(ct.test(o)?dt:o===""?mt:ht),n)}function bt(e,r){return e.length===r.length&&e.slice(0,-1).every((n,a)=>n===r[a])?e[e.length-1]-r[r.length-1]:0}function xt(e,r,t=!1){let{routesMeta:n}=e,a={},o="/",l=[];for(let i=0;i<n.length;++i){let c=n[i],f=i===n.length-1,m=o==="/"?r:r.slice(o.length)||"/",d=Z({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},m),p=c.route;if(!d&&f&&t&&!n[n.length-1].route.index&&(d=Z({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},m)),!d)return null;Object.assign(a,d.params),l.push({params:a,pathname:L([o,d.pathname]),pathnameBase:Ct(L([o,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(o=L([o,d.pathnameBase]))}return l}function Z(e,r){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=yt(e.path,e.caseSensitive,e.end),a=r.match(t);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce((f,{paramName:m,isOptional:d},p)=>{if(m==="*"){let y=i[p]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=i[p];return d&&!g?f[m]=void 0:f[m]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function yt(e,r=!1,t=!0){_(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`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(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,i,c)=>(n.push({paramName:i,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,r?void 0:"i"),n]}function vt(e){try{return e.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return _(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${r}).`),e}}function F(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let t=r.endsWith("/")?r.length-1:r.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var wt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kt=e=>wt.test(e);function Et(e,r="/"){let{pathname:t,search:n="",hash:a=""}=typeof e=="string"?se(e):e,o;if(t)if(kt(t))o=t;else{if(t.includes("//")){let l=t;t=t.replace(/\/\/+/g,"/"),_(!1,`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${t}`)}t.startsWith("/")?o=Te(t.substring(1),"/"):o=Te(t,r)}else o=r;return{pathname:o,search:St(n),hash:Pt(a)}}function Te(e,r){let t=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ue(e,r,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${r}\` field [${JSON.stringify(n)}]. 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.`}function Rt(e){return e.filter((r,t)=>t===0||r.route.path&&r.route.path.length>0)}function _e(e){let r=Rt(e);return r.map((t,n)=>n===r.length-1?t.pathname:t.pathnameBase)}function Le(e,r,t,n=!1){let a;typeof e=="string"?a=se(e):(a={...e},j(!a.pathname||!a.pathname.includes("?"),ue("?","pathname","search",a)),j(!a.pathname||!a.pathname.includes("#"),ue("#","pathname","hash",a)),j(!a.search||!a.search.includes("#"),ue("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,i;if(l==null)i=t;else{let d=r.length-1;if(!n&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),d-=1;a.pathname=p.join("/")}i=d>=0?r[d]:"/"}let c=Et(a,i),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(f||m)&&(c.pathname+="/"),c}var L=e=>e.join("/").replace(/\/\/+/g,"/"),Ct=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),St=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Pt=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Nt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ue=["POST","PUT","PATCH","DELETE"];new Set(Ue);var jt=["GET",...Ue];new Set(jt);var V=u.createContext(null);V.displayName="DataRouter";var Q=u.createContext(null);Q.displayName="DataRouterState",u.createContext(!1);var $e=u.createContext({isTransitioning:!1});$e.displayName="ViewTransition";var Tt=u.createContext(new Map);Tt.displayName="Fetchers";var _t=u.createContext(null);_t.displayName="Await";var U=u.createContext(null);U.displayName="Navigation";var ce=u.createContext(null);ce.displayName="Location";var $=u.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName="Route";var de=u.createContext(null);de.displayName="RouteError";function Lt(e,{relative:r}={}){j(ee(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=u.useContext(U),{hash:a,pathname:o,search:l}=q(e,{relative:r}),i=o;return t!=="/"&&(i=o==="/"?t:L([t,o])),n.createHref({pathname:i,search:l,hash:a})}function ee(){return u.useContext(ce)!=null}function W(){return j(ee(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(ce).location}var Oe="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ae(e){u.useContext(U).static||u.useLayoutEffect(e)}function Ut(){let{isDataRoute:e}=u.useContext($);return e?Bt():$t()}function $t(){j(ee(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(V),{basename:r,navigator:t}=u.useContext(U),{matches:n}=u.useContext($),{pathname:a}=W(),o=JSON.stringify(_e(n)),l=u.useRef(!1);return Ae(()=>{l.current=!0}),u.useCallback((c,f={})=>{if(_(l.current,Oe),!l.current)return;if(typeof c=="number"){t.go(c);return}let m=Le(c,JSON.parse(o),a,f.relative==="path");e==null&&r!=="/"&&(m.pathname=m.pathname==="/"?r:L([r,m.pathname])),(f.replace?t.replace:t.push)(m,f.state,f)},[r,t,o,a,e])}u.createContext(null);function q(e,{relative:r}={}){let{matches:t}=u.useContext($),{pathname:n}=W(),a=JSON.stringify(_e(t));return u.useMemo(()=>Le(e,JSON.parse(a),n,r==="path"),[e,a,n,r])}function Ot(e,r,t,n,a){j(ee(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=u.useContext(U),{matches:l}=u.useContext($),i=l[l.length-1],c=i?i.params:{},f=i?i.pathname:"/",m=i?i.pathnameBase:"/",d=i&&i.route;{let b=d&&d.path||"";Ie(f,!d||b.endsWith("*")||b.endsWith("*?"),`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.
7
7
 
8
- Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let g=W(),p;p=g;let y=p.pathname||"/",C=y;if(m!=="/"){let b=m.replace(/^\//,"").split("/");C="/"+y.replace(/^\//,"").split("/").slice(b.length).join("/")}let k=Se(e,{pathname:C});return _(d||k!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),_(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0||k[k.length-1].route.lazy!==void 0,`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.`),Wt(k&&k.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:L([m,o.encodeLocation?o.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:L([m,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),l,t,n,a)}function Ft(){let e=Bt(),r=jt(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;return console.error("Error handled by React Router default ErrorBoundary:",e),l=u.createElement(u.Fragment,null,u.createElement("p",null,"💿 Hey developer 👋"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:o},"ErrorBoundary")," or"," ",u.createElement("code",{style:o},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},r),t?u.createElement("pre",{style:a},t):null,l)}var It=u.createElement(Ft,null),Dt=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){this.props.onError?this.props.onError(e,r):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?u.createElement($.Provider,{value:this.props.routeContext},u.createElement(de.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Mt({routeContext:e,match:r,children:t}){let n=u.useContext(V);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),u.createElement($.Provider,{value:e},t)}function Wt(e,r=[],t=null,n=null,a=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(r.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,l=t?.errors;if(l!=null){let m=o.findIndex(d=>d.route.id&&l?.[d.route.id]!==void 0);j(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let i=!1,c=-1;if(t)for(let m=0;m<o.length;m++){let d=o[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=m),d.route.id){let{loaderData:g,errors:p}=t,y=d.route.loader&&!g.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||y){i=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let f=t&&n?(m,d)=>{n(m,{location:t.location,params:t.matches?.[0]?.params??{},errorInfo:d})}:void 0;return o.reduceRight((m,d,g)=>{let p,y=!1,C=null,k=null;t&&(p=l&&d.route.id?l[d.route.id]:void 0,C=d.route.errorElement||It,i&&(c<0&&g===0?(Ie("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,k=null):c===g&&(y=!0,k=d.route.hydrateFallbackElement||null)));let v=r.concat(o.slice(0,g+1)),b=()=>{let w;return p?w=C:y?w=k:d.route.Component?w=u.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=m,u.createElement(Mt,{match:d,routeContext:{outlet:m,matches:v,isDataRoute:t!=null},children:w})};return t&&(d.route.ErrorBoundary||d.route.errorElement||g===0)?u.createElement(Dt,{location:t.location,revalidation:t.revalidation,component:C,error:p,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:f}):b()},null)}function fe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zt(e){let r=u.useContext(V);return j(r,fe(e)),r}function Vt(e){let r=u.useContext(Q);return j(r,fe(e)),r}function Ht(e){let r=u.useContext($);return j(r,fe(e)),r}function me(e){let r=Ht(e),t=r.matches[r.matches.length-1];return j(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function Yt(){return me("useRouteId")}function Bt(){let e=u.useContext(de),r=Vt("useRouteError"),t=me("useRouteError");return e!==void 0?e:r.errors?.[t]}function Jt(){let{router:e}=zt("useNavigate"),r=me("useNavigate"),t=u.useRef(!1);return Ae(()=>{t.current=!0}),u.useCallback(async(a,o={})=>{_(t.current,Oe),t.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:r,...o}))},[e,r])}var Fe={};function Ie(e,r,t){!r&&!Fe[e]&&(Fe[e]=!0,_(!1,t))}u.memo(Gt);function Gt({routes:e,future:r,state:t,unstable_onError:n}){return At(e,void 0,t,n,r)}var te="get",re="application/x-www-form-urlencoded";function ne(e){return e!=null&&typeof e.tagName=="string"}function qt(e){return ne(e)&&e.tagName.toLowerCase()==="button"}function Xt(e){return ne(e)&&e.tagName.toLowerCase()==="form"}function Kt(e){return ne(e)&&e.tagName.toLowerCase()==="input"}function Zt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Qt(e,r){return e.button===0&&(!r||r==="_self")&&!Zt(e)}var ae=null;function er(){if(ae===null)try{new FormData(document.createElement("form"),0),ae=!1}catch{ae=!0}return ae}var tr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function he(e){return e!=null&&!tr.has(e)?(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${re}"`),null):e}function rr(e,r){let t,n,a,o,l;if(Xt(e)){let i=e.getAttribute("action");n=i?F(i,r):null,t=e.getAttribute("method")||te,a=he(e.getAttribute("enctype"))||re,o=new FormData(e)}else if(qt(e)||Kt(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(n=c?F(c,r):null,t=e.getAttribute("formmethod")||i.getAttribute("method")||te,a=he(e.getAttribute("formenctype"))||he(i.getAttribute("enctype"))||re,o=new FormData(i,e),!er()){let{name:f,type:m,value:d}=e;if(m==="image"){let g=f?`${f}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else f&&o.append(f,d)}}else{if(ne(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=te,n=null,a=re,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:n,method:t.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ge(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function nr(e,r,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;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}async function ar(e,r){if(e.id in r)return r[e.id];try{let t=await import(e.module);return r[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function or(e){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"}async function lr(e,r,t){let n=await Promise.all(e.map(async a=>{let o=r.routes[a.route.id];if(o){let l=await ar(o,t);return l.links?l.links():[]}return[]}));return cr(n.flat(1).filter(or).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function De(e,r,t,n,a,o){let l=(c,f)=>t[f]?c.route.id!==t[f].route.id:!0,i=(c,f)=>t[f].pathname!==c.pathname||t[f].route.path?.endsWith("*")&&t[f].params["*"]!==c.params["*"];return o==="assets"?r.filter((c,f)=>l(c,f)||i(c,f)):o==="data"?r.filter((c,f)=>{let m=n.routes[c.route.id];if(!m||!m.hasLoader)return!1;if(l(c,f)||i(c,f))return!0;if(c.route.shouldRevalidate){let d=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function ir(e,r,{includeHydrateFallback:t}={}){return sr(e.map(n=>{let a=r.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),t&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function sr(e){return[...new Set(e)]}function ur(e){let r={},t=Object.keys(e).sort();for(let n of t)r[n]=e[n];return r}function cr(e,r){let t=new Set;return new Set(r),e.reduce((n,a)=>{let o=JSON.stringify(ur(a));return t.has(o)||(t.add(o),n.push({key:o,link:a})),n},[])}function Me(){let e=u.useContext(V);return ge(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dr(){let e=u.useContext(Q);return ge(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var pe=u.createContext(void 0);pe.displayName="FrameworkContext";function We(){let e=u.useContext(pe);return ge(e,"You must render this element inside a <HydratedRouter> element"),e}function fr(e,r){let t=u.useContext(pe),[n,a]=u.useState(!1),[o,l]=u.useState(!1),{onFocus:i,onBlur:c,onMouseEnter:f,onMouseLeave:m,onTouchStart:d}=r,g=u.useRef(null);u.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let C=v=>{v.forEach(b=>{l(b.isIntersecting)})},k=new IntersectionObserver(C,{threshold:.5});return g.current&&k.observe(g.current),()=>{k.disconnect()}}},[e]),u.useEffect(()=>{if(n){let C=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(C)}}},[n]);let p=()=>{a(!0)},y=()=>{a(!1),l(!1)};return t?e!=="intent"?[o,g,{}]:[o,g,{onFocus:X(i,p),onBlur:X(c,y),onMouseEnter:X(f,p),onMouseLeave:X(m,y),onTouchStart:X(d,p)}]:[!1,g,{}]}function X(e,r){return t=>{e&&e(t),t.defaultPrevented||r(t)}}function mr({page:e,...r}){let{router:t}=Me(),n=u.useMemo(()=>Se(t.routes,e,t.basename),[t.routes,e,t.basename]);return n?u.createElement(gr,{page:e,matches:n,...r}):null}function hr(e){let{manifest:r,routeModules:t}=We(),[n,a]=u.useState([]);return u.useEffect(()=>{let o=!1;return lr(e,r,t).then(l=>{o||a(l)}),()=>{o=!0}},[e,r,t]),n}function gr({page:e,matches:r,...t}){let n=W(),{manifest:a,routeModules:o}=We(),{basename:l}=Me(),{loaderData:i,matches:c}=dr(),f=u.useMemo(()=>De(e,r,c,a,n,"data"),[e,r,c,a,n]),m=u.useMemo(()=>De(e,r,c,a,n,"assets"),[e,r,c,a,n]),d=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,C=!1;if(r.forEach(v=>{let b=a.routes[v.route.id];!b||!b.hasLoader||(!f.some(w=>w.route.id===v.route.id)&&v.route.id in i&&o[v.route.id]?.shouldRevalidate||b.hasClientLoader?C=!0:y.add(v.route.id))}),y.size===0)return[];let k=nr(e,l,"data");return C&&y.size>0&&k.searchParams.set("_routes",r.filter(v=>y.has(v.route.id)).map(v=>v.route.id).join(",")),[k.pathname+k.search]},[l,i,n,a,f,r,e,o]),g=u.useMemo(()=>ir(m,a),[m,a]),p=hr(m);return u.createElement(u.Fragment,null,d.map(y=>u.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...t})),g.map(y=>u.createElement("link",{key:y,rel:"modulepreload",href:y,...t})),p.map(({key:y,link:C})=>u.createElement("link",{key:y,nonce:t.nonce,...C})))}function pr(...e){return r=>{e.forEach(t=>{typeof t=="function"?t(r):t!=null&&(t.current=r)})}}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ze&&(window.__reactRouterVersion="7.9.6")}catch{}var Ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=u.forwardRef(function({onClick:r,discover:t="render",prefetch:n="none",relative:a,reloadDocument:o,replace:l,state:i,target:c,to:f,preventScrollReset:m,viewTransition:d,...g},p){let{basename:y}=u.useContext(U),C=typeof f=="string"&&Ve.test(f),k,v=!1;if(typeof f=="string"&&C&&(k=f,ze))try{let T=new URL(window.location.href),D=f.startsWith("//")?new URL(T.protocol+f):new URL(f),oe=F(D.pathname,y);D.origin===T.origin&&oe!=null?f=oe+D.search+D.hash:v=!0}catch{_(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=Ut(f,{relative:a}),[w,I,O]=fr(n,g),H=vr(f,{replace:l,state:i,target:c,preventScrollReset:m,relative:a,viewTransition:d});function z(T){r&&r(T),T.defaultPrevented||H(T)}let Y=u.createElement("a",{...g,...O,href:k||b,onClick:v||o?r:z,ref:pr(p,I),target:c,"data-discover":!C&&t==="render"?"true":void 0});return w&&!C?u.createElement(u.Fragment,null,Y,u.createElement(mr,{page:b})):Y});be.displayName="Link";var br=u.forwardRef(function({"aria-current":r="page",caseSensitive:t=!1,className:n="",end:a=!1,style:o,to:l,viewTransition:i,children:c,...f},m){let d=q(l,{relative:f.relative}),g=W(),p=u.useContext(Q),{navigator:y,basename:C}=u.useContext(U),k=p!=null&&Rr(d)&&i===!0,v=y.encodeLocation?y.encodeLocation(d).pathname:d.pathname,b=g.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase()),w&&C&&(w=F(w,C)||w);const I=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=b===v||!a&&b.startsWith(v)&&b.charAt(I)==="/",H=w!=null&&(w===v||!a&&w.startsWith(v)&&w.charAt(v.length)==="/"),z={isActive:O,isPending:H,isTransitioning:k},Y=O?r:void 0,T;typeof n=="function"?T=n(z):T=[n,O?"active":null,H?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let D=typeof o=="function"?o(z):o;return u.createElement(be,{...f,"aria-current":Y,className:T,ref:m,style:D,to:l,viewTransition:i},typeof c=="function"?c(z):c)});br.displayName="NavLink";var xr=u.forwardRef(({discover:e="render",fetcherKey:r,navigate:t,reloadDocument:n,replace:a,state:o,method:l=te,action:i,onSubmit:c,relative:f,preventScrollReset:m,viewTransition:d,...g},p)=>{let y=Er(),C=Cr(i,{relative:f}),k=l.toLowerCase()==="get"?"get":"post",v=typeof i=="string"&&Ve.test(i),b=w=>{if(c&&c(w),w.defaultPrevented)return;w.preventDefault();let I=w.nativeEvent.submitter,O=I?.getAttribute("formmethod")||l;y(I||w.currentTarget,{fetcherKey:r,method:O,navigate:t,replace:a,state:o,relative:f,preventScrollReset:m,viewTransition:d})};return u.createElement("form",{ref:p,method:k,action:C,onSubmit:n?c:b,...g,"data-discover":!v&&e==="render"?"true":void 0})});xr.displayName="Form";function yr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function He(e){let r=u.useContext(V);return j(r,yr(e)),r}function vr(e,{target:r,replace:t,state:n,preventScrollReset:a,relative:o,viewTransition:l}={}){let i=$t(),c=W(),f=q(e,{relative:o});return u.useCallback(m=>{if(Qt(m,r)){m.preventDefault();let d=t!==void 0?t:ie(c)===ie(f);i(e,{replace:d,state:n,preventScrollReset:a,relative:o,viewTransition:l})}},[c,i,f,t,n,r,e,a,o,l])}var kr=0,wr=()=>`__${String(++kr)}__`;function Er(){let{router:e}=He("useSubmit"),{basename:r}=u.useContext(U),t=Yt();return u.useCallback(async(n,a={})=>{let{action:o,method:l,encType:i,formData:c,body:f}=rr(n,r);if(a.navigate===!1){let m=a.fetcherKey||wr();await e.fetch(m,t,a.action||o,{preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||l,formEncType:a.encType||i,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||l,formEncType:a.encType||i,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,r,t])}function Cr(e,{relative:r}={}){let{basename:t}=u.useContext(U),n=u.useContext($);j(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...q(e||".",{relative:r})},l=W();if(e==null){o.search=l.search;let i=new URLSearchParams(o.search),c=i.getAll("index");if(c.some(m=>m==="")){i.delete("index"),c.filter(d=>d).forEach(d=>i.append("index",d));let m=i.toString();o.search=m?`?${m}`:""}}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])),ie(o)}function Rr(e,{relative:r}={}){let t=u.useContext($e);j(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=He("useViewTransitionState"),a=q(e,{relative:r});if(!t.isTransitioning)return!1;let o=F(t.currentLocation.pathname,n)||t.currentLocation.pathname,l=F(t.nextLocation.pathname,n)||t.nextLocation.pathname;return Z(a.pathname,l)!=null||Z(a.pathname,o)!=null}const Sr={primary:"text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",secondary:"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",subtle:"text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"},xe=({to:e,children:r,className:t,variant:n="primary"})=>h.jsx(be,{to:e,className:E.cn(Sr[n],t),"aria-label":typeof r=="string"?`Navigate to ${r}`:void 0,children:r}),Nr={gettingStarted:{documentation:"/document#getting-started",connect:"/connect",features:"/document#email-management"},benefits:{users:"/web3-users",projects:"/web3-projects",security:"/document#technical-details",nameService:"/document#name-service-subscription"},technical:{documentation:"/document",apiDocs:"/document#api-documentation",smartContracts:"/document#smart-contracts",security:"/document#technical-details"},integration:{projects:"/web3-projects",delegation:"/document#email-delegation",nameService:"/document#name-service-subscription",troubleshooting:"/document#troubleshooting"}},Pr=({cluster:e,context:r="",className:t})=>{const n=Nr[e],a={gettingStarted:{documentation:"Learn how it works",connect:"Get started now",features:"Explore features"},benefits:{users:"Benefits for users",projects:"For Web3 projects",security:"Security details",nameService:"ENS/SNS domains"},technical:{documentation:"Full documentation",apiDocs:"API reference",smartContracts:"Smart contract integration",security:"Technical security"},integration:{projects:"Integration examples",delegation:"Email delegation",nameService:"Domain setup",troubleshooting:"Troubleshooting guide"}};return h.jsx("span",{className:E.cn("text-sm text-gray-600 dark:text-gray-400",t),children:Object.entries(n).map(([o,l],i)=>h.jsxs(A.Fragment,{children:[h.jsx(xe,{to:l,variant:"primary",children:a[e][o]}),i<Object.keys(n).length-1&&" • "]},o))})},jr=({title:e="Related:",links:r,className:t})=>h.jsxs("div",{className:E.cn("mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",t),children:[h.jsx("span",{className:"text-sm font-medium text-blue-900 dark:text-blue-200 mr-2",children:e}),r.map((n,a)=>h.jsxs(A.Fragment,{children:[h.jsx(xe,{to:n.url,variant:n.variant||"primary",children:n.text}),a<r.length-1&&" • "]},a))]}),Tr=(e,r)=>({homepage:[{text:"How it works",url:"/document#getting-started"},{text:"User benefits",url:"/web3-users"},{text:"For projects",url:"/web3-projects"}],documentation:[{text:"Get started",url:"/connect"},{text:"User guide",url:"/web3-users"},{text:"API docs",url:"/document#api-documentation"}],users:[{text:"Start now",url:"/connect"},{text:"Documentation",url:"/document"},{text:"For projects",url:"/web3-projects"}],projects:[{text:"API integration",url:"/document#api-documentation"},{text:"Smart contracts",url:"/document#smart-contracts"},{text:"User benefits",url:"/web3-users"}]})[e]||[],_r=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UlandingUbuilder",children:r||"UlandingUbuilder Component"}),Lr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UnpsUsurvey",children:r||"UnpsUsurvey Component"}),Ur=({className:e,children:r,disabled:t})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SalesReport",children:r||"SalesReport Component"}),$r=({className:e,children:r,disabled:t})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SubscriberList",children:r||"SubscriberList Component"}),Or=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UsurveyUbuilder",children:r||"UsurveyUbuilder Component"}),Ar=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UtestimonialUslider",children:r||"UtestimonialUslider Component"}),Fr=({title:e,description:r,useCases:t,columns:n=3,className:a})=>{const o={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},l={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return h.jsx("section",{className:E.cn(M.ui.section.gradient,a),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||r)&&h.jsxs("div",{className:"text-center mb-12",children:[e&&h.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),r&&h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:r})]}),h.jsx("div",{className:E.cn("grid gap-8",l[n]),children:t.map((i,c)=>{const f=i.color?o[i.color]:o.blue;return h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[h.jsx("div",{className:E.cn("flex-shrink-0 mb-4",f),children:i.icon}),h.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:i.title}),h.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:i.description}),i.examples&&i.examples.length>0&&h.jsxs("div",{children:[h.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),h.jsx("ul",{className:"space-y-1",children:i.examples.map((m,d)=>h.jsxs("li",{className:"flex items-start",children:[h.jsx("div",{className:E.cn("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",i.color?`bg-${i.color}-500`:"bg-blue-500")}),h.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},d))})]})]},c)})})]})})},Ir=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:E.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UwelcomeUscreen",children:r||"UwelcomeUscreen Component"});R.CrmDashboard=tt,R.FeatureListItem=ot,R.HeroBannerWithBadge=st,R.InternalLink=xe,R.RelatedLinks=jr,R.SalesReport=Ur,R.SubscriberList=$r,R.TopicClusterLinks=Pr,R.UctaUbanner=rt,R.UfeatureUspotlight=lt,R.UfunnelUchart=it,R.UlandingUbuilder=_r,R.UnpsUsurvey=Lr,R.UseCaseGrid=Fr,R.UsurveyUbuilder=Or,R.UtestimonialUslider=Ar,R.UwelcomeUscreen=Ir,R.generateContextualLinks=Tr,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})}));
8
+ Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let p=W(),g;g=p;let y=g.pathname||"/",E=y;if(m!=="/"){let b=m.replace(/^\//,"").split("/");E="/"+y.replace(/^\//,"").split("/").slice(b.length).join("/")}let w=Se(e,{pathname:E});return _(d||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),_(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,`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.`),Mt(w&&w.map(b=>Object.assign({},b,{params:Object.assign({},c,b.params),pathname:L([m,o.encodeLocation?o.encodeLocation(b.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:L([m,o.encodeLocation?o.encodeLocation(b.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:b.pathnameBase])})),l,t,n,a)}function At(){let e=Yt(),r=Nt(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;return console.error("Error handled by React Router default ErrorBoundary:",e),l=u.createElement(u.Fragment,null,u.createElement("p",null,"💿 Hey developer 👋"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:o},"ErrorBoundary")," or"," ",u.createElement("code",{style:o},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},r),t?u.createElement("pre",{style:a},t):null,l)}var Ft=u.createElement(At,null),It=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){this.props.onError?this.props.onError(e,r):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?u.createElement($.Provider,{value:this.props.routeContext},u.createElement(de.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Dt({routeContext:e,match:r,children:t}){let n=u.useContext(V);return n&&n.static&&n.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=r.route.id),u.createElement($.Provider,{value:e},t)}function Mt(e,r=[],t=null,n=null,a=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(r.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,l=t?.errors;if(l!=null){let m=o.findIndex(d=>d.route.id&&l?.[d.route.id]!==void 0);j(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let i=!1,c=-1;if(t)for(let m=0;m<o.length;m++){let d=o[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=m),d.route.id){let{loaderData:p,errors:g}=t,y=d.route.loader&&!p.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||y){i=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}let f=t&&n?(m,d)=>{n(m,{location:t.location,params:t.matches?.[0]?.params??{},errorInfo:d})}:void 0;return o.reduceRight((m,d,p)=>{let g,y=!1,E=null,w=null;t&&(g=l&&d.route.id?l[d.route.id]:void 0,E=d.route.errorElement||Ft,i&&(c<0&&p===0?(Ie("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):c===p&&(y=!0,w=d.route.hydrateFallbackElement||null)));let v=r.concat(o.slice(0,p+1)),b=()=>{let k;return g?k=E:y?k=w:d.route.Component?k=u.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=m,u.createElement(Dt,{match:d,routeContext:{outlet:m,matches:v,isDataRoute:t!=null},children:k})};return t&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?u.createElement(It,{location:t.location,revalidation:t.revalidation,component:E,error:g,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:f}):b()},null)}function fe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wt(e){let r=u.useContext(V);return j(r,fe(e)),r}function zt(e){let r=u.useContext(Q);return j(r,fe(e)),r}function Vt(e){let r=u.useContext($);return j(r,fe(e)),r}function me(e){let r=Vt(e),t=r.matches[r.matches.length-1];return j(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function Ht(){return me("useRouteId")}function Yt(){let e=u.useContext(de),r=zt("useRouteError"),t=me("useRouteError");return e!==void 0?e:r.errors?.[t]}function Bt(){let{router:e}=Wt("useNavigate"),r=me("useNavigate"),t=u.useRef(!1);return Ae(()=>{t.current=!0}),u.useCallback(async(a,o={})=>{_(t.current,Oe),t.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:r,...o}))},[e,r])}var Fe={};function Ie(e,r,t){!r&&!Fe[e]&&(Fe[e]=!0,_(!1,t))}u.memo(Jt);function Jt({routes:e,future:r,state:t,unstable_onError:n}){return Ot(e,void 0,t,n,r)}var te="get",re="application/x-www-form-urlencoded";function ne(e){return e!=null&&typeof e.tagName=="string"}function Gt(e){return ne(e)&&e.tagName.toLowerCase()==="button"}function qt(e){return ne(e)&&e.tagName.toLowerCase()==="form"}function Xt(e){return ne(e)&&e.tagName.toLowerCase()==="input"}function Kt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Zt(e,r){return e.button===0&&(!r||r==="_self")&&!Kt(e)}var ae=null;function Qt(){if(ae===null)try{new FormData(document.createElement("form"),0),ae=!1}catch{ae=!0}return ae}var er=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function he(e){return e!=null&&!er.has(e)?(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${re}"`),null):e}function tr(e,r){let t,n,a,o,l;if(qt(e)){let i=e.getAttribute("action");n=i?F(i,r):null,t=e.getAttribute("method")||te,a=he(e.getAttribute("enctype"))||re,o=new FormData(e)}else if(Gt(e)||Xt(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||i.getAttribute("action");if(n=c?F(c,r):null,t=e.getAttribute("formmethod")||i.getAttribute("method")||te,a=he(e.getAttribute("formenctype"))||he(i.getAttribute("enctype"))||re,o=new FormData(i,e),!Qt()){let{name:f,type:m,value:d}=e;if(m==="image"){let p=f?`${f}.`:"";o.append(`${p}x`,"0"),o.append(`${p}y`,"0")}else f&&o.append(f,d)}}else{if(ne(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=te,n=null,a=re,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:n,method:t.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pe(e,r){if(e===!1||e===null||typeof e>"u")throw new Error(r)}function rr(e,r,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;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}async function nr(e,r){if(e.id in r)return r[e.id];try{let t=await import(e.module);return r[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ar(e){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"}async function or(e,r,t){let n=await Promise.all(e.map(async a=>{let o=r.routes[a.route.id];if(o){let l=await nr(o,t);return l.links?l.links():[]}return[]}));return ur(n.flat(1).filter(ar).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function De(e,r,t,n,a,o){let l=(c,f)=>t[f]?c.route.id!==t[f].route.id:!0,i=(c,f)=>t[f].pathname!==c.pathname||t[f].route.path?.endsWith("*")&&t[f].params["*"]!==c.params["*"];return o==="assets"?r.filter((c,f)=>l(c,f)||i(c,f)):o==="data"?r.filter((c,f)=>{let m=n.routes[c.route.id];if(!m||!m.hasLoader)return!1;if(l(c,f)||i(c,f))return!0;if(c.route.shouldRevalidate){let d=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function lr(e,r,{includeHydrateFallback:t}={}){return ir(e.map(n=>{let a=r.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),t&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function ir(e){return[...new Set(e)]}function sr(e){let r={},t=Object.keys(e).sort();for(let n of t)r[n]=e[n];return r}function ur(e,r){let t=new Set;return new Set(r),e.reduce((n,a)=>{let o=JSON.stringify(sr(a));return t.has(o)||(t.add(o),n.push({key:o,link:a})),n},[])}function Me(){let e=u.useContext(V);return pe(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function cr(){let e=u.useContext(Q);return pe(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ge=u.createContext(void 0);ge.displayName="FrameworkContext";function We(){let e=u.useContext(ge);return pe(e,"You must render this element inside a <HydratedRouter> element"),e}function dr(e,r){let t=u.useContext(ge),[n,a]=u.useState(!1),[o,l]=u.useState(!1),{onFocus:i,onBlur:c,onMouseEnter:f,onMouseLeave:m,onTouchStart:d}=r,p=u.useRef(null);u.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=v=>{v.forEach(b=>{l(b.isIntersecting)})},w=new IntersectionObserver(E,{threshold:.5});return p.current&&w.observe(p.current),()=>{w.disconnect()}}},[e]),u.useEffect(()=>{if(n){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[n]);let g=()=>{a(!0)},y=()=>{a(!1),l(!1)};return t?e!=="intent"?[o,p,{}]:[o,p,{onFocus:X(i,g),onBlur:X(c,y),onMouseEnter:X(f,g),onMouseLeave:X(m,y),onTouchStart:X(d,g)}]:[!1,p,{}]}function X(e,r){return t=>{e&&e(t),t.defaultPrevented||r(t)}}function fr({page:e,...r}){let{router:t}=Me(),n=u.useMemo(()=>Se(t.routes,e,t.basename),[t.routes,e,t.basename]);return n?u.createElement(hr,{page:e,matches:n,...r}):null}function mr(e){let{manifest:r,routeModules:t}=We(),[n,a]=u.useState([]);return u.useEffect(()=>{let o=!1;return or(e,r,t).then(l=>{o||a(l)}),()=>{o=!0}},[e,r,t]),n}function hr({page:e,matches:r,...t}){let n=W(),{manifest:a,routeModules:o}=We(),{basename:l}=Me(),{loaderData:i,matches:c}=cr(),f=u.useMemo(()=>De(e,r,c,a,n,"data"),[e,r,c,a,n]),m=u.useMemo(()=>De(e,r,c,a,n,"assets"),[e,r,c,a,n]),d=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,E=!1;if(r.forEach(v=>{let b=a.routes[v.route.id];!b||!b.hasLoader||(!f.some(k=>k.route.id===v.route.id)&&v.route.id in i&&o[v.route.id]?.shouldRevalidate||b.hasClientLoader?E=!0:y.add(v.route.id))}),y.size===0)return[];let w=rr(e,l,"data");return E&&y.size>0&&w.searchParams.set("_routes",r.filter(v=>y.has(v.route.id)).map(v=>v.route.id).join(",")),[w.pathname+w.search]},[l,i,n,a,f,r,e,o]),p=u.useMemo(()=>lr(m,a),[m,a]),g=mr(m);return u.createElement(u.Fragment,null,d.map(y=>u.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...t})),p.map(y=>u.createElement("link",{key:y,rel:"modulepreload",href:y,...t})),g.map(({key:y,link:E})=>u.createElement("link",{key:y,nonce:t.nonce,...E})))}function pr(...e){return r=>{e.forEach(t=>{typeof t=="function"?t(r):t!=null&&(t.current=r)})}}var ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ze&&(window.__reactRouterVersion="7.9.6")}catch{}var Ve=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=u.forwardRef(function({onClick:r,discover:t="render",prefetch:n="none",relative:a,reloadDocument:o,replace:l,state:i,target:c,to:f,preventScrollReset:m,viewTransition:d,...p},g){let{basename:y}=u.useContext(U),E=typeof f=="string"&&Ve.test(f),w,v=!1;if(typeof f=="string"&&E&&(w=f,ze))try{let T=new URL(window.location.href),D=f.startsWith("//")?new URL(T.protocol+f):new URL(f),oe=F(D.pathname,y);D.origin===T.origin&&oe!=null?f=oe+D.search+D.hash:v=!0}catch{_(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let b=Lt(f,{relative:a}),[k,I,O]=dr(n,p),H=yr(f,{replace:l,state:i,target:c,preventScrollReset:m,relative:a,viewTransition:d});function z(T){r&&r(T),T.defaultPrevented||H(T)}let Y=u.createElement("a",{...p,...O,href:w||b,onClick:v||o?r:z,ref:pr(g,I),target:c,"data-discover":!E&&t==="render"?"true":void 0});return k&&!E?u.createElement(u.Fragment,null,Y,u.createElement(fr,{page:b})):Y});be.displayName="Link";var gr=u.forwardRef(function({"aria-current":r="page",caseSensitive:t=!1,className:n="",end:a=!1,style:o,to:l,viewTransition:i,children:c,...f},m){let d=q(l,{relative:f.relative}),p=W(),g=u.useContext(Q),{navigator:y,basename:E}=u.useContext(U),w=g!=null&&Rr(d)&&i===!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;t||(b=b.toLowerCase(),k=k?k.toLowerCase():null,v=v.toLowerCase()),k&&E&&(k=F(k,E)||k);const I=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let O=b===v||!a&&b.startsWith(v)&&b.charAt(I)==="/",H=k!=null&&(k===v||!a&&k.startsWith(v)&&k.charAt(v.length)==="/"),z={isActive:O,isPending:H,isTransitioning:w},Y=O?r:void 0,T;typeof n=="function"?T=n(z):T=[n,O?"active":null,H?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let D=typeof o=="function"?o(z):o;return u.createElement(be,{...f,"aria-current":Y,className:T,ref:m,style:D,to:l,viewTransition:i},typeof c=="function"?c(z):c)});gr.displayName="NavLink";var br=u.forwardRef(({discover:e="render",fetcherKey:r,navigate:t,reloadDocument:n,replace:a,state:o,method:l=te,action:i,onSubmit:c,relative:f,preventScrollReset:m,viewTransition:d,...p},g)=>{let y=kr(),E=Er(i,{relative:f}),w=l.toLowerCase()==="get"?"get":"post",v=typeof i=="string"&&Ve.test(i),b=k=>{if(c&&c(k),k.defaultPrevented)return;k.preventDefault();let I=k.nativeEvent.submitter,O=I?.getAttribute("formmethod")||l;y(I||k.currentTarget,{fetcherKey:r,method:O,navigate:t,replace:a,state:o,relative:f,preventScrollReset:m,viewTransition:d})};return u.createElement("form",{ref:g,method:w,action:E,onSubmit:n?c:b,...p,"data-discover":!v&&e==="render"?"true":void 0})});br.displayName="Form";function xr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function He(e){let r=u.useContext(V);return j(r,xr(e)),r}function yr(e,{target:r,replace:t,state:n,preventScrollReset:a,relative:o,viewTransition:l}={}){let i=Ut(),c=W(),f=q(e,{relative:o});return u.useCallback(m=>{if(Zt(m,r)){m.preventDefault();let d=t!==void 0?t:ie(c)===ie(f);i(e,{replace:d,state:n,preventScrollReset:a,relative:o,viewTransition:l})}},[c,i,f,t,n,r,e,a,o,l])}var vr=0,wr=()=>`__${String(++vr)}__`;function kr(){let{router:e}=He("useSubmit"),{basename:r}=u.useContext(U),t=Ht();return u.useCallback(async(n,a={})=>{let{action:o,method:l,encType:i,formData:c,body:f}=tr(n,r);if(a.navigate===!1){let m=a.fetcherKey||wr();await e.fetch(m,t,a.action||o,{preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||l,formEncType:a.encType||i,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||l,formEncType:a.encType||i,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,r,t])}function Er(e,{relative:r}={}){let{basename:t}=u.useContext(U),n=u.useContext($);j(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...q(e||".",{relative:r})},l=W();if(e==null){o.search=l.search;let i=new URLSearchParams(o.search),c=i.getAll("index");if(c.some(m=>m==="")){i.delete("index"),c.filter(d=>d).forEach(d=>i.append("index",d));let m=i.toString();o.search=m?`?${m}`:""}}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])),ie(o)}function Rr(e,{relative:r}={}){let t=u.useContext($e);j(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=He("useViewTransitionState"),a=q(e,{relative:r});if(!t.isTransitioning)return!1;let o=F(t.currentLocation.pathname,n)||t.currentLocation.pathname,l=F(t.nextLocation.pathname,n)||t.nextLocation.pathname;return Z(a.pathname,l)!=null||Z(a.pathname,o)!=null}const Cr={primary:"text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",secondary:"text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",subtle:"text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"},xe=({to:e,children:r,className:t,variant:n="primary"})=>h.jsx(be,{to:e,className:R.cn(Cr[n],t),"aria-label":typeof r=="string"?`Navigate to ${r}`:void 0,children:r}),Sr={gettingStarted:{documentation:"/document#getting-started",connect:"/connect",features:"/document#email-management"},benefits:{users:"/web3-users",projects:"/web3-projects",security:"/document#technical-details",nameService:"/document#name-service-subscription"},technical:{documentation:"/document",apiDocs:"/document#api-documentation",smartContracts:"/document#smart-contracts",security:"/document#technical-details"},integration:{projects:"/web3-projects",delegation:"/document#email-delegation",nameService:"/document#name-service-subscription",troubleshooting:"/document#troubleshooting"}},Pr=({cluster:e,context:r="",className:t})=>{const n=Sr[e],a={gettingStarted:{documentation:"Learn how it works",connect:"Get started now",features:"Explore features"},benefits:{users:"Benefits for users",projects:"For Web3 projects",security:"Security details",nameService:"ENS/SNS domains"},technical:{documentation:"Full documentation",apiDocs:"API reference",smartContracts:"Smart contract integration",security:"Technical security"},integration:{projects:"Integration examples",delegation:"Email delegation",nameService:"Domain setup",troubleshooting:"Troubleshooting guide"}};return h.jsx("span",{className:R.cn("text-sm text-gray-600 dark:text-gray-400",t),children:Object.entries(n).map(([o,l],i)=>h.jsxs(A.Fragment,{children:[h.jsx(xe,{to:l,variant:"primary",children:a[e][o]}),i<Object.keys(n).length-1&&" • "]},o))})},Nr=({title:e="Related:",links:r,className:t})=>h.jsxs("div",{className:R.cn("mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",t),children:[h.jsx("span",{className:"text-sm font-medium text-blue-900 dark:text-blue-200 mr-2",children:e}),r.map((n,a)=>h.jsxs(A.Fragment,{children:[h.jsx(xe,{to:n.url,variant:n.variant||"primary",children:n.text}),a<r.length-1&&" • "]},a))]}),jr=(e,r)=>({homepage:[{text:"How it works",url:"/document#getting-started"},{text:"User benefits",url:"/web3-users"},{text:"For projects",url:"/web3-projects"}],documentation:[{text:"Get started",url:"/connect"},{text:"User guide",url:"/web3-users"},{text:"API docs",url:"/document#api-documentation"}],users:[{text:"Start now",url:"/connect"},{text:"Documentation",url:"/document"},{text:"For projects",url:"/web3-projects"}],projects:[{text:"API integration",url:"/document#api-documentation"},{text:"Smart contracts",url:"/document#smart-contracts"},{text:"User benefits",url:"/web3-users"}]})[e]||[],Tr=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UlandingUbuilder",children:r||"UlandingUbuilder Component"}),_r=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UnpsUsurvey",children:r||"UnpsUsurvey Component"}),Lr=({className:e,children:r,disabled:t})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SalesReport",children:r||"SalesReport Component"}),Ur=({className:e,children:r,disabled:t})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed",e),role:"region","aria-label":"SubscriberList",children:r||"SubscriberList Component"}),$r=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UtestimonialUslider",children:r||"UtestimonialUslider Component"}),Or=({title:e,description:r,useCases:t,columns:n=3,className:a})=>{const o={blue:"text-blue-600 dark:text-blue-400",green:"text-green-600 dark:text-green-400",purple:"text-purple-600 dark:text-purple-400",orange:"text-orange-600 dark:text-orange-400",pink:"text-pink-600 dark:text-pink-400",gray:"text-gray-600 dark:text-gray-400"},l={2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"};return h.jsx("section",{className:R.cn(M.ui.section.gradient,a),children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(e||r)&&h.jsxs("div",{className:"text-center mb-12",children:[e&&h.jsx("h2",{className:"text-3xl font-bold text-gray-900 dark:text-white mb-4",children:e}),r&&h.jsx("p",{className:"text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto",children:r})]}),h.jsx("div",{className:R.cn("grid gap-8",l[n]),children:t.map((i,c)=>{const f=i.color?o[i.color]:o.blue;return h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",children:[h.jsx("div",{className:R.cn("flex-shrink-0 mb-4",f),children:i.icon}),h.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-white mb-3",children:i.title}),h.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-4",children:i.description}),i.examples&&i.examples.length>0&&h.jsxs("div",{children:[h.jsx("h4",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"Examples:"}),h.jsx("ul",{className:"space-y-1",children:i.examples.map((m,d)=>h.jsxs("li",{className:"flex items-start",children:[h.jsx("div",{className:R.cn("w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",i.color?`bg-${i.color}-500`:"bg-blue-500")}),h.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:m})]},d))})]})]},c)})})]})})},Ar=({className:e,children:r,disabled:t=!1,onClick:n})=>h.jsx("div",{className:R.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",t&&"opacity-50 cursor-not-allowed","hover:bg-gray-50 dark:hover:bg-gray-800",e),onClick:t?void 0:n,role:"region","aria-label":"UwelcomeUscreen",children:r||"UwelcomeUscreen Component"});C.CrmDashboard=tt,C.FeatureListItem=ot,C.HeroBannerWithBadge=it,C.InternalLink=xe,C.RelatedLinks=Nr,C.SalesReport=Lr,C.SubscriberList=Ur,C.TopicClusterLinks=Pr,C.UctaUbanner=rt,C.UfeatureUspotlight=lt,C.UlandingUbuilder=Tr,C.UnpsUsurvey=_r,C.UseCaseGrid=Or,C.UtestimonialUslider=$r,C.UwelcomeUscreen=Ar,C.generateContextualLinks=jr,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudobility/marketing-components",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "marketing UI components for React",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
@@ -1,33 +0,0 @@
1
- /**
2
- * UfunnelUchart Component
3
- *
4
- * A reusable UfunnelUchart component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UfunnelUchart className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/funnel-chart}
21
- */
22
- export interface UfunnelUchartProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UfunnelUchart: ({ className, children, disabled, onClick, }: UfunnelUchartProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=funnel-chart.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"funnel-chart.d.ts","sourceRoot":"","sources":["../src/funnel-chart.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,kBAAkB;IACjC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,GAAI,6CAK3B,kBAAkB,4CAmBpB,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * UsurveyUbuilder Component
3
- *
4
- * A reusable UsurveyUbuilder component with full dark mode support.
5
- * Optimized for accessibility and AI-assisted development.
6
- *
7
- * @component
8
- * @example
9
- * ```tsx
10
- * <UsurveyUbuilder className="custom-class" />
11
- * ```
12
- *
13
- * @remarks
14
- * This component supports:
15
- * - Light and dark themes automatically
16
- * - Responsive design
17
- * - Accessibility features
18
- * - TypeScript type safety
19
- *
20
- * @see {@link https://docs.example.com/components/survey-builder}
21
- */
22
- export interface UsurveyUbuilderProps {
23
- /** Additional CSS classes */
24
- className?: string;
25
- /** Component children */
26
- children?: React.ReactNode;
27
- /** Disabled state */
28
- disabled?: boolean;
29
- /** Callback when component is interacted with */
30
- onClick?: () => void;
31
- }
32
- export declare const UsurveyUbuilder: ({ className, children, disabled, onClick, }: UsurveyUbuilderProps) => import("react/jsx-runtime").JSX.Element;
33
- //# sourceMappingURL=survey-builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"survey-builder.d.ts","sourceRoot":"","sources":["../src/survey-builder.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,MAAM,WAAW,oBAAoB;IACnC,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,GAAI,6CAK7B,oBAAoB,4CAmBtB,CAAC"}