@sudobility/components 2.0.12 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { clsx as Hn } from "clsx";
2
2
  import { twMerge as Un } from "tailwind-merge";
3
3
  import * as x from "react";
4
- import P, { lazy as ve, Suspense as He, useEffect as V, useState as R, useCallback as re, useRef as U, useLayoutEffect as Nr, Component as Er, memo as Ue, useMemo as $t } from "react";
5
- import { jsx as i, Fragment as q, jsxs as h } from "react/jsx-runtime";
4
+ import P, { lazy as ve, Suspense as He, useEffect as V, useState as R, useCallback as re, useRef as q, useLayoutEffect as Nr, Component as Er, memo as Ue, useMemo as $t } from "react";
5
+ import { jsx as i, Fragment as H, jsxs as h } from "react/jsx-runtime";
6
6
  import { onCLS as qn, onINP as Gn, onFCP as Kn, onLCP as Yn, onTTFB as Qn } from "web-vitals";
7
7
  import { XCircleIcon as Ar, ExclamationTriangleIcon as Pr, CheckCircleIcon as Tr, InformationCircleIcon as Je, ArrowPathIcon as Xn, ChevronRightIcon as Lt, Cog6ToothIcon as Qt, CurrencyDollarIcon as Zn, AdjustmentsHorizontalIcon as Jn, LinkIcon as ea, FunnelIcon as ta, ChatBubbleLeftRightIcon as ra, ShieldCheckIcon as na, ArrowRightIcon as $r, ChevronUpIcon as aa, ChevronDownIcon as oa, ExclamationCircleIcon as ia, XMarkIcon as sa, CheckIcon as Lr, ClipboardDocumentIcon as la, ClipboardIcon as ca, EnvelopeIcon as da, LanguageIcon as ua } from "@heroicons/react/24/outline";
8
8
  import { ArrowLeftIcon as M0, ArrowRightIcon as O0, Bars3Icon as D0, BellIcon as z0, BellSlashIcon as W0, ChartBarIcon as B0, CheckCircleIcon as j0, CheckIcon as F0, ChevronDownIcon as _0, ChevronLeftIcon as V0, ChevronRightIcon as H0, ChevronUpIcon as U0, ClockIcon as q0, CodeBracketIcon as G0, Cog6ToothIcon as K0, CreditCardIcon as Y0, DocumentTextIcon as Q0, EnvelopeIcon as X0, ExclamationTriangleIcon as Z0, EyeSlashIcon as J0, GlobeAltIcon as eg, HomeIcon as tg, InboxIcon as rg, InformationCircleIcon as ng, KeyIcon as ag, MegaphoneIcon as og, MinusIcon as ig, PaperAirplaneIcon as sg, PaperClipIcon as lg, PlusIcon as cg, RocketLaunchIcon as dg, ShieldCheckIcon as ug, SparklesIcon as mg, StarIcon as gg, TrashIcon as pg, UserGroupIcon as fg, XMarkIcon as hg } from "@heroicons/react/24/outline";
@@ -674,7 +674,7 @@ function fd(e, t = {}) {
674
674
  d(!0);
675
675
  }, a);
676
676
  return () => clearTimeout(u);
677
- }, []), c ? /* @__PURE__ */ i(q, { children: r }) : null;
677
+ }, []), c ? /* @__PURE__ */ i(H, { children: r }) : null;
678
678
  };
679
679
  return P.forwardRef((c, d) => /* @__PURE__ */ i(He, { fallback: /* @__PURE__ */ i(l, {}), children: /* @__PURE__ */ i(s, { ...c, ref: d }) }));
680
680
  }
@@ -1361,7 +1361,7 @@ const Ya = (e) => {
1361
1361
  onError: r,
1362
1362
  className: n = ""
1363
1363
  }) => {
1364
- const a = U(null), o = U(null);
1364
+ const a = q(null), o = q(null);
1365
1365
  return V(() => {
1366
1366
  if (!e)
1367
1367
  return;
@@ -2076,7 +2076,7 @@ const Ya = (e) => {
2076
2076
  className: o = "",
2077
2077
  threshold: s = 0.1
2078
2078
  }) => {
2079
- const [l, c] = R(!1), [d, u] = R(!1), m = U(null);
2079
+ const [l, c] = R(!1), [d, u] = R(!1), m = q(null);
2080
2080
  V(() => {
2081
2081
  if (!Xt() || typeof IntersectionObserver > "u") {
2082
2082
  c(!0), n && u(!0);
@@ -2722,7 +2722,7 @@ const so = {
2722
2722
  emerald: "bg-emerald-100 dark:bg-emerald-900/20",
2723
2723
  pink: "bg-pink-100 dark:bg-pink-900/20",
2724
2724
  gray: "bg-gray-100 dark:bg-gray-900/20"
2725
- }, w = g[o], k = typeof e == "string", C = () => /* @__PURE__ */ h(q, { children: [
2725
+ }, w = g[o], k = typeof e == "string", C = () => /* @__PURE__ */ h(H, { children: [
2726
2726
  k ? (
2727
2727
  // Emoji or text icon
2728
2728
  /* @__PURE__ */ i("div", { className: "text-4xl mb-4", children: e })
@@ -3328,7 +3328,7 @@ const iu = ({
3328
3328
  maxPullDistance: l = 120,
3329
3329
  className: c = ""
3330
3330
  }) => {
3331
- const [d, u] = R(0), [m, p] = R(!1), [g, f] = R(!1), b = U(0), w = U(null);
3331
+ const [d, u] = R(0), [m, p] = R(!1), [g, f] = R(!1), b = q(0), w = q(null);
3332
3332
  V(() => {
3333
3333
  const N = w.current;
3334
3334
  if (!N) return;
@@ -3339,8 +3339,8 @@ const iu = ({
3339
3339
  if (!g) return;
3340
3340
  const z = D.touches[0].clientY - b.current;
3341
3341
  if (z > 0 && N.scrollTop <= 0) {
3342
- const H = Math.min(z / l, 1), W = Math.min(
3343
- z * (1 - H * 0.5),
3342
+ const U = Math.min(z / l, 1), W = Math.min(
3343
+ z * (1 - U * 0.5),
3344
3344
  l
3345
3345
  );
3346
3346
  u(W), z > 10 && D.preventDefault();
@@ -3629,7 +3629,7 @@ const du = ({
3629
3629
  parentSectionId: n,
3630
3630
  onSubsectionSelect: a
3631
3631
  }) => {
3632
- const o = U(null), [s, l] = R(void 0);
3632
+ const o = q(null), [s, l] = R(void 0);
3633
3633
  return V(() => {
3634
3634
  if (o.current) {
3635
3635
  const c = o.current.scrollHeight;
@@ -3800,7 +3800,7 @@ const du = ({
3800
3800
  onAccountSelect: n,
3801
3801
  onAccountSettings: a
3802
3802
  }) => {
3803
- const o = U(null), [s, l] = R(void 0);
3803
+ const o = q(null), [s, l] = R(void 0);
3804
3804
  return V(() => {
3805
3805
  if (o.current) {
3806
3806
  const c = o.current.scrollHeight;
@@ -5102,7 +5102,7 @@ const xi = (e) => ({
5102
5102
  }, g = zt(a), f = Dt(g), b = await s.getDimensions(d), w = g === "y", k = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", E = o.reference[f] + o.reference[g] - p[g] - o.floating[f], N = p[g] - o.reference[g], $ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5103
5103
  let A = $ ? $[S] : 0;
5104
5104
  (!A || !await (s.isElement == null ? void 0 : s.isElement($))) && (A = l.floating[S] || o.floating[f]);
5105
- const O = E / 2 - N / 2, D = A / 2 - b[f] / 2 - 1, M = pe(m[k], D), z = pe(m[C], D), H = M, W = A - b[f] - z, B = A / 2 - b[f] / 2 + O, G = Nt(H, B, W), j = !c.arrow && Te(a) != null && B !== G && o.reference[f] / 2 - (B < H ? M : z) - b[f] / 2 < 0, K = j ? B < H ? B - H : B - W : 0;
5105
+ const O = E / 2 - N / 2, D = A / 2 - b[f] / 2 - 1, M = pe(m[k], D), z = pe(m[C], D), U = M, W = A - b[f] - z, B = A / 2 - b[f] / 2 + O, G = Nt(U, B, W), j = !c.arrow && Te(a) != null && B !== G && o.reference[f] / 2 - (B < U ? M : z) - b[f] / 2 < 0, K = j ? B < U ? B - U : B - W : 0;
5106
5106
  return {
5107
5107
  [g]: p[g] + K,
5108
5108
  data: {
@@ -5151,7 +5151,7 @@ const xi = (e) => ({
5151
5151
  placement: a,
5152
5152
  overflows: D
5153
5153
  }], !D.every((B) => B <= 0)) {
5154
- var z, H;
5154
+ var z, U;
5155
5155
  const B = (((z = o.flip) == null ? void 0 : z.index) || 0) + 1, G = A[B];
5156
5156
  if (G && (!(m === "alignment" ? C !== te(G) : !1) || // We leave the current main axis only if every placement on that axis
5157
5157
  // overflows the main axis.
@@ -5165,7 +5165,7 @@ const xi = (e) => ({
5165
5165
  placement: G
5166
5166
  }
5167
5167
  };
5168
- let j = (H = M.filter((K) => K.overflows[0] <= 0).sort((K, L) => K.overflows[1] - L.overflows[1])[0]) == null ? void 0 : H.placement;
5168
+ let j = (U = M.filter((K) => K.overflows[0] <= 0).sort((K, L) => K.overflows[1] - L.overflows[1])[0]) == null ? void 0 : U.placement;
5169
5169
  if (!j)
5170
5170
  switch (g) {
5171
5171
  case "bestFit": {
@@ -5421,8 +5421,8 @@ const Ci = function(e) {
5421
5421
  const C = b - u.top - u.bottom, S = f - u.left - u.right, E = pe(b - u[w], C), N = pe(f - u[k], S), $ = !t.middlewareData.shift;
5422
5422
  let A = E, O = N;
5423
5423
  if ((r = t.middlewareData.shift) != null && r.enabled.x && (O = S), (n = t.middlewareData.shift) != null && n.enabled.y && (A = C), $ && !p) {
5424
- const M = Q(u.left, 0), z = Q(u.right, 0), H = Q(u.top, 0), W = Q(u.bottom, 0);
5425
- g ? O = f - 2 * (M !== 0 || z !== 0 ? M + z : Q(u.left, u.right)) : A = b - 2 * (H !== 0 || W !== 0 ? H + W : Q(u.top, u.bottom));
5424
+ const M = Q(u.left, 0), z = Q(u.right, 0), U = Q(u.top, 0), W = Q(u.bottom, 0);
5425
+ g ? O = f - 2 * (M !== 0 || z !== 0 ? M + z : Q(u.left, u.right)) : A = b - 2 * (U !== 0 || W !== 0 ? U + W : Q(u.top, u.bottom));
5426
5426
  }
5427
5427
  await c({
5428
5428
  ...t,
@@ -6010,7 +6010,7 @@ function ls(e) {
6010
6010
  L !== $.current && ($.current = L, b(L));
6011
6011
  }, []), S = x.useCallback((L) => {
6012
6012
  L !== A.current && (A.current = L, k(L));
6013
- }, []), E = o || f, N = s || w, $ = x.useRef(null), A = x.useRef(null), O = x.useRef(u), D = c != null, M = yt(c), z = yt(a), H = yt(d), W = x.useCallback(() => {
6013
+ }, []), E = o || f, N = s || w, $ = x.useRef(null), A = x.useRef(null), O = x.useRef(u), D = c != null, M = yt(c), z = yt(a), U = yt(d), W = x.useCallback(() => {
6014
6014
  if (!$.current || !A.current)
6015
6015
  return;
6016
6016
  const L = {
@@ -6025,13 +6025,13 @@ function ls(e) {
6025
6025
  // but still mounted (such as when transitioning out). To ensure
6026
6026
  // `isPositioned` will be `false` initially on the next open, avoid
6027
6027
  // setting it to `true` when `open === false` (must be specified).
6028
- isPositioned: H.current !== !1
6028
+ isPositioned: U.current !== !1
6029
6029
  };
6030
6030
  B.current && !nt(O.current, ee) && (O.current = ee, Wr.flushSync(() => {
6031
6031
  m(ee);
6032
6032
  }));
6033
6033
  });
6034
- }, [p, t, r, z, H]);
6034
+ }, [p, t, r, z, U]);
6035
6035
  Ze(() => {
6036
6036
  d === !1 && O.current.isPositioned && (O.current.isPositioned = !1, m((L) => ({
6037
6037
  ...L,
@@ -6199,11 +6199,11 @@ var _t = "PopperContent", [ws, ks] = dn(_t), hn = x.forwardRef(
6199
6199
  updatePositionStrategy: g = "optimized",
6200
6200
  onPlaced: f,
6201
6201
  ...b
6202
- } = e, w = mn(_t, r), [k, C] = x.useState(null), S = we(t, (Le) => C(Le)), [E, N] = x.useState(null), $ = xs(E), A = $?.width ?? 0, O = $?.height ?? 0, D = n + (o !== "center" ? "-" + o : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(d) ? d : [d], H = z.length > 0, W = {
6202
+ } = e, w = mn(_t, r), [k, C] = x.useState(null), S = we(t, (Le) => C(Le)), [E, N] = x.useState(null), $ = xs(E), A = $?.width ?? 0, O = $?.height ?? 0, D = n + (o !== "center" ? "-" + o : ""), M = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, z = Array.isArray(d) ? d : [d], U = z.length > 0, W = {
6203
6203
  padding: M,
6204
6204
  boundary: z.filter(Ss),
6205
6205
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
6206
- altBoundary: H
6206
+ altBoundary: U
6207
6207
  }, { refs: B, floatingStyles: G, placement: j, isPositioned: K, middlewareData: L } = ls({
6208
6208
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
6209
6209
  strategy: "fixed",
@@ -6843,72 +6843,85 @@ const ll = {
6843
6843
  size: n = "sm",
6844
6844
  className: a,
6845
6845
  version: o,
6846
- onStatusChange: s
6846
+ onStatusChange: s,
6847
+ isNetworkOnline: l = !0
6847
6848
  }) => {
6848
- const [l, c] = R({
6849
+ const [c, d] = R({
6849
6850
  status: "operational",
6850
6851
  version: o || "1.0.0",
6851
6852
  message: "All systems operational"
6852
- }), [d, u] = R(!1);
6853
+ }), [u, m] = R(!1);
6853
6854
  V(() => {
6854
- const f = async () => {
6855
+ const w = async () => {
6855
6856
  if (t) {
6856
- u(!0);
6857
+ m(!0);
6857
6858
  try {
6858
- const b = await fetch(t);
6859
- if (b.ok) {
6860
- const w = await b.json();
6861
- let k;
6862
- w.status?.indicator ? k = {
6859
+ const k = await fetch(t);
6860
+ if (k.ok) {
6861
+ const C = await k.json();
6862
+ let S;
6863
+ C.status?.indicator ? S = {
6863
6864
  status: {
6864
6865
  none: "operational",
6865
6866
  minor: "degraded",
6866
6867
  major: "major-outage",
6867
6868
  critical: "major-outage"
6868
- }[w.status.indicator] || "operational",
6869
+ }[C.status.indicator] || "operational",
6869
6870
  version: o,
6870
- message: w.status.description
6871
- } : k = w, c(k), s?.(k);
6871
+ message: C.status.description
6872
+ } : S = C, d(S), s?.(S);
6872
6873
  }
6873
6874
  } catch {
6874
6875
  } finally {
6875
- u(!1);
6876
+ m(!1);
6876
6877
  }
6877
6878
  }
6878
6879
  };
6879
- if (f(), r > 0) {
6880
- const b = setInterval(f, r);
6881
- return () => clearInterval(b);
6880
+ if (w(), r > 0) {
6881
+ const k = setInterval(w, r);
6882
+ return () => clearInterval(k);
6882
6883
  }
6883
6884
  }, [t, r, s, o]);
6884
- const m = ll[l.status], p = (f) => {
6885
- f.preventDefault(), window.open(e, "_blank", "noopener,noreferrer");
6886
- }, g = /* @__PURE__ */ h("div", { className: "text-xs", children: [
6887
- l.version && /* @__PURE__ */ h("div", { className: "font-semibold mb-1", children: [
6888
- "Version ",
6889
- l.version
6890
- ] }),
6891
- /* @__PURE__ */ i("div", { children: l.message || m.label }),
6892
- l.incidents && l.incidents.length > 0 && /* @__PURE__ */ h("div", { className: "mt-2 text-[10px] opacity-90", children: [
6893
- /* @__PURE__ */ i("div", { className: "font-medium", children: "Current incidents:" }),
6894
- /* @__PURE__ */ i("ul", { className: "list-disc list-inside", children: l.incidents.map((f, b) => /* @__PURE__ */ i("li", { children: f }, b)) })
6885
+ const p = l ? c.status : "major-outage", g = ll[p], f = (w) => {
6886
+ if (w.preventDefault(), !l) {
6887
+ window.alert(
6888
+ "Network is not available. Please check your internet connection and try again later."
6889
+ );
6890
+ return;
6891
+ }
6892
+ window.open(e, "_blank", "noopener,noreferrer");
6893
+ }, b = /* @__PURE__ */ i("div", { className: "text-xs", children: l ? (
6894
+ // Normal system status
6895
+ /* @__PURE__ */ h(H, { children: [
6896
+ c.version && /* @__PURE__ */ h("div", { className: "font-semibold mb-1", children: [
6897
+ "Version ",
6898
+ c.version
6899
+ ] }),
6900
+ /* @__PURE__ */ i("div", { children: c.message || g.label }),
6901
+ c.incidents && c.incidents.length > 0 && /* @__PURE__ */ h("div", { className: "mt-2 text-[10px] opacity-90", children: [
6902
+ /* @__PURE__ */ i("div", { className: "font-medium", children: "Current incidents:" }),
6903
+ /* @__PURE__ */ i("ul", { className: "list-disc list-inside", children: c.incidents.map((w, k) => /* @__PURE__ */ i("li", { children: w }, k)) })
6904
+ ] })
6895
6905
  ] })
6896
- ] });
6906
+ ) : (
6907
+ // Network offline message
6908
+ /* @__PURE__ */ i("div", { children: "Network unavailable" })
6909
+ ) });
6897
6910
  return /* @__PURE__ */ i(rl, { delayDuration: 200, children: /* @__PURE__ */ h(nl, { children: [
6898
6911
  /* @__PURE__ */ i(al, { asChild: !0, children: /* @__PURE__ */ i(
6899
6912
  "button",
6900
6913
  {
6901
- onClick: p,
6914
+ onClick: f,
6902
6915
  className: v(
6903
6916
  "rounded-full flex-shrink-0 transition-all duration-200 cursor-pointer",
6904
6917
  "ring-offset-2 focus:outline-none focus:ring-2 focus:ring-offset-2",
6905
- m.color,
6906
- m.hoverColor,
6918
+ g.color,
6919
+ g.hoverColor,
6907
6920
  cl[n],
6908
- d && "animate-pulse",
6921
+ (u || !l) && "animate-pulse",
6909
6922
  a
6910
6923
  ),
6911
- "aria-label": `System status: ${m.label}`
6924
+ "aria-label": `System status: ${g.label}`
6912
6925
  }
6913
6926
  ) }),
6914
6927
  /* @__PURE__ */ i(ol, { children: /* @__PURE__ */ h(
@@ -6917,7 +6930,7 @@ const ll = {
6917
6930
  className: "z-50 overflow-hidden rounded-md bg-gray-900 dark:bg-gray-800 px-3 py-2 text-white shadow-md animate-in fade-in-0 zoom-in-95",
6918
6931
  sideOffset: 5,
6919
6932
  children: [
6920
- g,
6933
+ b,
6921
6934
  /* @__PURE__ */ i(sl, { className: "fill-gray-900 dark:fill-gray-800" })
6922
6935
  ]
6923
6936
  }
@@ -7347,7 +7360,7 @@ const Ru = (e, t) => x.useMemo(() => {
7347
7360
  "aria-describedby": p,
7348
7361
  closeAriaLabel: g = "Close modal"
7349
7362
  }) => {
7350
- const f = U(null), b = U(null);
7363
+ const f = q(null), b = q(null);
7351
7364
  if (V(() => {
7352
7365
  if (!e || !c) return;
7353
7366
  const S = (E) => {
@@ -7365,7 +7378,7 @@ const Ru = (e, t) => x.useMemo(() => {
7365
7378
  return v(S, E);
7366
7379
  }, k = (S) => {
7367
7380
  l && S.target === S.currentTarget && t();
7368
- }, C = /* @__PURE__ */ h(q, { children: [
7381
+ }, C = /* @__PURE__ */ h(H, { children: [
7369
7382
  /* @__PURE__ */ i(
7370
7383
  "div",
7371
7384
  {
@@ -7971,7 +7984,7 @@ const Ru = (e, t) => x.useMemo(() => {
7971
7984
  text: "text-2xl"
7972
7985
  };
7973
7986
  }
7974
- })(), u = /* @__PURE__ */ h(q, { children: [
7987
+ })(), u = /* @__PURE__ */ h(H, { children: [
7975
7988
  /* @__PURE__ */ i("img", { src: a, alt: o, className: d.image }),
7976
7989
  r && /* @__PURE__ */ i(
7977
7990
  "div",
@@ -8090,7 +8103,7 @@ ${e.description}`
8090
8103
  )
8091
8104
  }
8092
8105
  ),
8093
- t && /* @__PURE__ */ h(q, { children: [
8106
+ t && /* @__PURE__ */ h(H, { children: [
8094
8107
  /* @__PURE__ */ i(
8095
8108
  "div",
8096
8109
  {
@@ -8098,7 +8111,7 @@ ${e.description}`
8098
8111
  onClick: () => r(!1)
8099
8112
  }
8100
8113
  ),
8101
- /* @__PURE__ */ i("div", { className: "absolute right-0 top-10 z-[999999] w-32 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-1", children: o ? /* @__PURE__ */ i("div", { className: "flex items-center justify-center px-3 py-2", children: /* @__PURE__ */ i("div", { className: "w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin" }) }) : /* @__PURE__ */ h(q, { children: [
8114
+ /* @__PURE__ */ i("div", { className: "absolute right-0 top-10 z-[999999] w-32 bg-white dark:bg-gray-800 rounded-lg shadow-xl border border-gray-200 dark:border-gray-700 py-1", children: o ? /* @__PURE__ */ i("div", { className: "flex items-center justify-center px-3 py-2", children: /* @__PURE__ */ i("div", { className: "w-4 h-4 border-2 border-blue-600 border-t-transparent rounded-full animate-spin" }) }) : /* @__PURE__ */ h(H, { children: [
8102
8115
  c.map((u, m) => {
8103
8116
  const p = u.component, g = u.icon;
8104
8117
  return /* @__PURE__ */ i(
@@ -8315,10 +8328,10 @@ ${e.description}`
8315
8328
  onClick: () => d(r, u),
8316
8329
  className: "flex items-center space-x-1 text-gray-300 hover:text-white transition-colors text-sm",
8317
8330
  "aria-label": m ? "Copied!" : "Copy code",
8318
- children: m ? /* @__PURE__ */ h(q, { children: [
8331
+ children: m ? /* @__PURE__ */ h(H, { children: [
8319
8332
  /* @__PURE__ */ i(Lr, { className: "h-4 w-4" }),
8320
8333
  /* @__PURE__ */ i("span", { children: "Copied!" })
8321
- ] }) : /* @__PURE__ */ h(q, { children: [
8334
+ ] }) : /* @__PURE__ */ h(H, { children: [
8322
8335
  /* @__PURE__ */ i(ca, { className: "h-4 w-4" }),
8323
8336
  /* @__PURE__ */ i("span", { children: "Copy" })
8324
8337
  ] })
@@ -8335,7 +8348,7 @@ ${e.description}`
8335
8348
  parentSectionId: n,
8336
8349
  onSubsectionSelect: a
8337
8350
  }) => {
8338
- const o = U(null), [s, l] = R(void 0);
8351
+ const o = q(null), [s, l] = R(void 0);
8339
8352
  return Nr(() => {
8340
8353
  if (o.current) {
8341
8354
  const c = o.current.scrollHeight;
@@ -8818,7 +8831,7 @@ class tm extends Er {
8818
8831
  ] }) }) : t;
8819
8832
  }
8820
8833
  }
8821
- const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), am = (e, t, r) => {
8834
+ const rm = ({ children: e }) => /* @__PURE__ */ i(H, { children: e }), nm = ({ children: e }) => /* @__PURE__ */ i(H, { children: e }), am = (e, t, r) => {
8822
8835
  const n = Ue(e, t);
8823
8836
  return r && (n.displayName = `Memo(${r})`), process.env.NODE_ENV === "development" ? (a) => ($t(() => {
8824
8837
  let s = 0;
@@ -8834,13 +8847,13 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
8834
8847
  }
8835
8848
  return o.current;
8836
8849
  }, [t, r]);
8837
- return /* @__PURE__ */ i(q, { children: e(s) });
8850
+ return /* @__PURE__ */ i(H, { children: e(s) });
8838
8851
  }
8839
8852
  ), sm = Ue(
8840
8853
  ({ item: e, index: t, style: r, renderItem: n }) => /* @__PURE__ */ i("div", { style: r, children: n(e, t) }),
8841
8854
  (e, t) => e.index === t.index && e.item === t.item && e.style.height === t.style.height && e.style.top === t.style.top
8842
8855
  ), lm = Ue(
8843
- ({ condition: e, children: t, fallback: r = null }) => e ? /* @__PURE__ */ i(q, { children: t }) : /* @__PURE__ */ i(q, { children: r })
8856
+ ({ condition: e, children: t, fallback: r = null }) => e ? /* @__PURE__ */ i(H, { children: t }) : /* @__PURE__ */ i(H, { children: r })
8844
8857
  ), cm = ({
8845
8858
  children: e,
8846
8859
  threshold: t = 0.1,
@@ -8869,7 +8882,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
8869
8882
  }), P.useEffect(() => {
8870
8883
  const a = performance.now() - n.current;
8871
8884
  a > t && r?.(a);
8872
- }), /* @__PURE__ */ i(q, { children: e });
8885
+ }), /* @__PURE__ */ i(H, { children: e });
8873
8886
  }, um = ({
8874
8887
  children: e,
8875
8888
  batchSize: t = 5,
@@ -8883,7 +8896,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
8883
8896
  }, r);
8884
8897
  return () => clearTimeout(o);
8885
8898
  }
8886
- }, [n, e.length, t, r]), /* @__PURE__ */ i(q, { children: e.slice(0, n) });
8899
+ }, [n, e.length, t, r]), /* @__PURE__ */ i(H, { children: e.slice(0, n) });
8887
8900
  }, mm = ({
8888
8901
  src: e,
8889
8902
  alt: t,
@@ -8894,7 +8907,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
8894
8907
  className: s = "",
8895
8908
  ...l
8896
8909
  }) => {
8897
- const [c, d] = R(!1), [u, m] = R(o), [p, g] = R(!1), f = U(null), b = U(null);
8910
+ const [c, d] = R(!1), [u, m] = R(o), [p, g] = R(!1), f = q(null), b = q(null);
8898
8911
  V(() => {
8899
8912
  if (o) {
8900
8913
  m(!0);
@@ -9082,7 +9095,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9082
9095
  animationDuration: k = 300,
9083
9096
  animationRef: C
9084
9097
  }) => {
9085
- const S = `gap-${Math.round(f / 4)}` || "gap-8", E = (G) => G ? G.split("-")[0].trim() : "Back", N = r ? E(r) : e ? E(e) : "Back", [$, A] = R(!1), [O, D] = R("auto"), M = U(null), z = U(
9098
+ const S = `gap-${Math.round(f / 4)}` || "gap-8", E = (G) => G ? G.split("-")[0].trim() : "Back", N = r ? E(r) : e ? E(e) : "Back", [$, A] = R(!1), [O, D] = R("auto"), M = q(null), z = q(
9086
9099
  null
9087
9100
  );
9088
9101
  V(() => (C && (C.current = {
@@ -9109,7 +9122,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9109
9122
  }), () => {
9110
9123
  z.current && clearTimeout(z.current);
9111
9124
  }), [w, k, C]);
9112
- const H = w ? {
9125
+ const U = w ? {
9113
9126
  height: O === "auto" ? "auto" : `${O}px`,
9114
9127
  transition: `height ${k}ms cubic-bezier(0.4, 0, 0.2, 1)`,
9115
9128
  width: "100%",
@@ -9117,7 +9130,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9117
9130
  } : { width: "100%", maxWidth: "100%" }, W = w ? `${$ ? "opacity-0 transform translate-y-2" : "opacity-100 transform translate-y-0"}` : "", B = w ? {
9118
9131
  transition: `opacity ${k}ms ease-in-out, transform ${k}ms ease-in-out`
9119
9132
  } : {};
9120
- return /* @__PURE__ */ h(q, { children: [
9133
+ return /* @__PURE__ */ h(H, { children: [
9121
9134
  /* @__PURE__ */ i(
9122
9135
  "div",
9123
9136
  {
@@ -9159,7 +9172,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9159
9172
  {
9160
9173
  ref: M,
9161
9174
  className: `bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${d}`,
9162
- style: H,
9175
+ style: U,
9163
9176
  children: /* @__PURE__ */ h("div", { className: W, style: B, children: [
9164
9177
  o && /* @__PURE__ */ i(
9165
9178
  "h1",
@@ -9216,7 +9229,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9216
9229
  {
9217
9230
  ref: M,
9218
9231
  className: `bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 overflow-hidden ${d}`,
9219
- style: H,
9232
+ style: U,
9220
9233
  children: /* @__PURE__ */ h("div", { className: W, style: B, children: [
9221
9234
  o && /* @__PURE__ */ i(
9222
9235
  "h1",
@@ -9378,7 +9391,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9378
9391
  };
9379
9392
  return t(), r(), n(), a(), s(), l(), c(), d(), setTimeout(o, 2e3), () => {
9380
9393
  };
9381
- }, []), /* @__PURE__ */ i(q, { children: e })), bm = () => (V(() => {
9394
+ }, []), /* @__PURE__ */ i(H, { children: e })), bm = () => (V(() => {
9382
9395
  if (typeof window > "u" || typeof document > "u" || !document.documentElement)
9383
9396
  return;
9384
9397
  const e = () => {
@@ -9476,7 +9489,7 @@ const rm = ({ children: e }) => /* @__PURE__ */ i(q, { children: e }), nm = ({ c
9476
9489
  };
9477
9490
  }, []), null), xm = ({
9478
9491
  children: e
9479
- }) => /* @__PURE__ */ i(q, { children: e }), Wl = {
9492
+ }) => /* @__PURE__ */ i(H, { children: e }), Wl = {
9480
9493
  // Static/rarely changing data - longer cache durations
9481
9494
  user: { duration: 300 * 1e3, maxSize: 100, staleWhileRevalidate: !0 },
9482
9495
  // 5 minutes
@@ -10782,7 +10795,7 @@ function Zm({
10782
10795
  return t.filter((r) => r.priority <= 2 && r.detected).forEach((r) => {
10783
10796
  setTimeout(() => {
10784
10797
  }, 1e3);
10785
- }), /* @__PURE__ */ h(q, { children: [
10798
+ }), /* @__PURE__ */ h(H, { children: [
10786
10799
  t.map((r) => {
10787
10800
  const n = Rn(r.name);
10788
10801
  return /* @__PURE__ */ i(n, {}, r.name);
@@ -11084,13 +11097,13 @@ const vt = {
11084
11097
  vt.mark(`${e}-end`), vt.measure(e, `${e}-start`, `${e}-end`);
11085
11098
  }), [e, t]);
11086
11099
  }, n0 = (e) => {
11087
- const t = U(e);
11100
+ const t = q(e);
11088
11101
  return t.current = e, re(
11089
11102
  (...r) => t.current(...r),
11090
11103
  []
11091
11104
  );
11092
11105
  }, a0 = (e, t, r) => {
11093
- const n = U(t), a = U(void 0);
11106
+ const n = q(t), a = q(void 0);
11094
11107
  return $t(() => (r && process.env.NODE_ENV === "development" && t.some(
11095
11108
  (o, s) => o !== n.current[s]
11096
11109
  ), n.current = t, a.current = e(), a.current), [e, r, t]);
@@ -11100,7 +11113,7 @@ const vt = {
11100
11113
  process.env.NODE_ENV;
11101
11114
  });
11102
11115
  }, i0 = () => Object.fromEntries(it), s0 = () => it.clear(), l0 = (e) => P.lazy(e), c0 = (e = 0.1) => {
11103
- const [t, r] = R(/* @__PURE__ */ new Set()), n = U(null);
11116
+ const [t, r] = R(/* @__PURE__ */ new Set()), n = q(null);
11104
11117
  V(() => (n.current = new IntersectionObserver(
11105
11118
  (o) => {
11106
11119
  o.forEach((s) => {
@@ -11139,7 +11152,7 @@ const vt = {
11139
11152
  n.rel = "preload", n.href = e, n.as = t, r && (n.crossOrigin = "anonymous"), document.head.appendChild(n);
11140
11153
  }
11141
11154
  }, f0 = (e) => {
11142
- const t = U(/* @__PURE__ */ new Set()), r = U(/* @__PURE__ */ new Set()), n = re((o, s) => {
11155
+ const t = q(/* @__PURE__ */ new Set()), r = q(/* @__PURE__ */ new Set()), n = re((o, s) => {
11143
11156
  const l = setTimeout(() => {
11144
11157
  t.current.delete(l), o();
11145
11158
  }, s);
@@ -11194,7 +11207,7 @@ const vt = {
11194
11207
  ...r
11195
11208
  }) => /* @__PURE__ */ i("main", { className: t, ...r, role: "main", children: e }), b0 = ({
11196
11209
  children: e
11197
- }) => /* @__PURE__ */ i(q, { children: e }), Pe = (e) => Array.isArray(e) ? e : typeof e == "string" ? e.split(",").map((t) => t.trim()).filter(Boolean) : [], kr = (e) => {
11210
+ }) => /* @__PURE__ */ i(H, { children: e }), Pe = (e) => Array.isArray(e) ? e : typeof e == "string" ? e.split(",").map((t) => t.trim()).filter(Boolean) : [], kr = (e) => {
11198
11211
  const t = Pe(e.audience);
11199
11212
  return {
11200
11213
  "@context": "https://schema.org",