@mriqbox/ui-kit 4.1.0 → 4.3.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.es.js CHANGED
@@ -64,10 +64,10 @@ function ud() {
64
64
  ae.unshift("Warning: " + E), Function.prototype.apply.call(console[w], console, ae);
65
65
  }
66
66
  }
67
- var C = !1, j = !1, _ = !1, S = !1, F = !1, A;
67
+ var C = !1, j = !1, _ = !1, k = !1, F = !1, A;
68
68
  A = Symbol.for("react.module.reference");
69
69
  function I(w) {
70
- return !!(typeof w == "string" || typeof w == "function" || w === n || w === a || F || w === o || w === d || w === u || S || w === p || C || j || _ || typeof w == "object" && w !== null && (w.$$typeof === h || w.$$typeof === f || w.$$typeof === s || w.$$typeof === i || w.$$typeof === c || // This needs to include all possible module reference object
70
+ return !!(typeof w == "string" || typeof w == "function" || w === n || w === a || F || w === o || w === d || w === u || k || w === p || C || j || _ || typeof w == "object" && w !== null && (w.$$typeof === h || w.$$typeof === f || w.$$typeof === s || w.$$typeof === i || w.$$typeof === c || // This needs to include all possible module reference object
71
71
  // types supported by any Flight configuration anywhere since
72
72
  // we don't know which Flight build this will end up being used
73
73
  // with.
@@ -1222,7 +1222,7 @@ const ie = (e) => {
1222
1222
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1223
1223
  qd.test(e) && !Gd.test(e)
1224
1224
  ), oi = () => !1, au = (e) => Xd.test(e), su = (e) => Kd.test(e), iu = () => {
1225
- const e = ie("colors"), t = ie("spacing"), r = ie("blur"), n = ie("brightness"), o = ie("borderColor"), a = ie("borderRadius"), s = ie("borderSpacing"), i = ie("borderWidth"), c = ie("contrast"), d = ie("grayscale"), u = ie("hueRotate"), f = ie("invert"), h = ie("gap"), p = ie("gradientColorStops"), g = ie("gradientColorStopPositions"), v = ie("inset"), b = ie("margin"), x = ie("opacity"), y = ie("padding"), N = ie("saturate"), C = ie("scale"), j = ie("sepia"), _ = ie("skew"), S = ie("space"), F = ie("translate"), A = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", V, t], O = () => [V, t], $ = () => ["", ot, dt], L = () => ["auto", Bt, V], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", V], de = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], le = () => [Bt, V];
1225
+ const e = ie("colors"), t = ie("spacing"), r = ie("blur"), n = ie("brightness"), o = ie("borderColor"), a = ie("borderRadius"), s = ie("borderSpacing"), i = ie("borderWidth"), c = ie("contrast"), d = ie("grayscale"), u = ie("hueRotate"), f = ie("invert"), h = ie("gap"), p = ie("gradientColorStops"), g = ie("gradientColorStopPositions"), v = ie("inset"), b = ie("margin"), x = ie("opacity"), y = ie("padding"), N = ie("saturate"), C = ie("scale"), j = ie("sepia"), _ = ie("skew"), k = ie("space"), F = ie("translate"), A = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", V, t], O = () => [V, t], $ = () => ["", ot, dt], L = () => ["auto", Bt, V], T = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], R = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", V], de = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], le = () => [Bt, V];
1226
1226
  return {
1227
1227
  cacheSize: 500,
1228
1228
  separator: ":",
@@ -1816,7 +1816,7 @@ const ie = (e) => {
1816
1816
  * @see https://tailwindcss.com/docs/space
1817
1817
  */
1818
1818
  "space-x": [{
1819
- "space-x": [S]
1819
+ "space-x": [k]
1820
1820
  }],
1821
1821
  /**
1822
1822
  * Space Between X Reverse
@@ -1828,7 +1828,7 @@ const ie = (e) => {
1828
1828
  * @see https://tailwindcss.com/docs/space
1829
1829
  */
1830
1830
  "space-y": [{
1831
- "space-y": [S]
1831
+ "space-y": [k]
1832
1832
  }],
1833
1833
  /**
1834
1834
  * Space Between Y Reverse
@@ -3251,14 +3251,14 @@ const ie = (e) => {
3251
3251
  }
3252
3252
  };
3253
3253
  }, lu = /* @__PURE__ */ Hd(iu);
3254
- function k(...e) {
3254
+ function S(...e) {
3255
3255
  return lu(Js(e));
3256
3256
  }
3257
3257
  const cu = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
3258
3258
  Xs,
3259
3259
  {
3260
3260
  ref: r,
3261
- className: k(
3261
+ className: S(
3262
3262
  "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
3263
3263
  e
3264
3264
  ),
@@ -3270,7 +3270,7 @@ const du = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
3270
3270
  Ks,
3271
3271
  {
3272
3272
  ref: r,
3273
- className: k("aspect-square h-full w-full", e),
3273
+ className: S("aspect-square h-full w-full", e),
3274
3274
  ...t
3275
3275
  }
3276
3276
  ));
@@ -3279,7 +3279,7 @@ const uu = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
3279
3279
  Qs,
3280
3280
  {
3281
3281
  ref: r,
3282
- className: k(
3282
+ className: S(
3283
3283
  "flex h-full w-full items-center justify-center rounded-full bg-muted text-muted-foreground text-sm font-medium",
3284
3284
  e
3285
3285
  ),
@@ -3333,7 +3333,7 @@ const za = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ha = Js, a
3333
3333
  }
3334
3334
  );
3335
3335
  function Ya({ className: e, variant: t, ...r }) {
3336
- return /* @__PURE__ */ l.jsx("div", { className: k(fu({ variant: t }), e), ...r });
3336
+ return /* @__PURE__ */ l.jsx("div", { className: S(fu({ variant: t }), e), ...r });
3337
3337
  }
3338
3338
  const lo = ai(
3339
3339
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
@@ -3789,7 +3789,7 @@ const Eu = ne("Zap", [
3789
3789
  return /* @__PURE__ */ l.jsx(
3790
3790
  d,
3791
3791
  {
3792
- className: k(lo({ variant: t, size: r, className: e })),
3792
+ className: S(lo({ variant: t, size: r, className: e })),
3793
3793
  ref: c,
3794
3794
  disabled: u,
3795
3795
  ...i,
@@ -3802,39 +3802,39 @@ const Eu = ne("Zap", [
3802
3802
  }
3803
3803
  );
3804
3804
  te.displayName = "MriButton";
3805
- const ex = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3805
+ const tx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3806
3806
  /* @__PURE__ */ l.jsx("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3807
3807
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "9", r: "2.5", fill: "currentColor" })
3808
- ] }), tx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3808
+ ] }), rx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3809
3809
  /* @__PURE__ */ l.jsx("path", { d: "M21 15v4a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3810
3810
  /* @__PURE__ */ l.jsx("path", { d: "M7 10l5-5 5 5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3811
3811
  /* @__PURE__ */ l.jsx("path", { d: "M12 5v12", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3812
- ] }), rx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3812
+ ] }), nx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3813
3813
  /* @__PURE__ */ l.jsx("path", { d: "M21 12H7", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3814
3814
  /* @__PURE__ */ l.jsx("path", { d: "M11 16l-4-4 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3815
- ] }), nx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3815
+ ] }), ox = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3816
3816
  /* @__PURE__ */ l.jsx("path", { d: "M21 12a9 9 0 11-3-6.6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3817
3817
  /* @__PURE__ */ l.jsx("path", { d: "M12 8v8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3818
3818
  /* @__PURE__ */ l.jsx("path", { d: "M8 12h8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3819
- ] }), ox = (e = {}) => /* @__PURE__ */ l.jsx("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M20 6L9 17l-5-5", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }), ax = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3819
+ ] }), ax = (e = {}) => /* @__PURE__ */ l.jsx("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M20 6L9 17l-5-5", stroke: "currentColor", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) }), sx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3820
3820
  /* @__PURE__ */ l.jsx("rect", { x: "2", y: "7", width: "20", height: "14", rx: "2", stroke: "currentColor", strokeWidth: "1.5" }),
3821
3821
  /* @__PURE__ */ l.jsx("path", { d: "M12 11v6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3822
3822
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "10", r: "1.5", fill: "currentColor" })
3823
- ] }), sx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3823
+ ] }), ix = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3824
3824
  /* @__PURE__ */ l.jsx("path", { d: "M16 3l3 3v11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6l3-3", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3825
3825
  /* @__PURE__ */ l.jsx("path", { d: "M9 8h6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3826
- ] }), ix = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3826
+ ] }), lx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3827
3827
  /* @__PURE__ */ l.jsx("path", { d: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12z", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3828
3828
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "12", r: "3", stroke: "currentColor", strokeWidth: "1.5" })
3829
- ] }), lx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3829
+ ] }), cx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3830
3830
  /* @__PURE__ */ l.jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z", stroke: "currentColor", strokeWidth: "1.2", strokeLinecap: "round", strokeLinejoin: "round" }),
3831
3831
  /* @__PURE__ */ l.jsx("path", { d: "M12 9v4", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }),
3832
3832
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "17", r: "0.8", fill: "currentColor" })
3833
- ] }), cx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3833
+ ] }), dx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3834
3834
  /* @__PURE__ */ l.jsx("path", { d: "M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
3835
3835
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "7", r: "4", stroke: "currentColor", strokeWidth: "1.5" }),
3836
3836
  /* @__PURE__ */ l.jsx("path", { d: "M15 10l-6-6", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
3837
- ] }), dx = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3837
+ ] }), ux = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
3838
3838
  /* @__PURE__ */ l.jsx("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "1.5" }),
3839
3839
  /* @__PURE__ */ l.jsx("path", { d: "M4.93 4.93l14.14 14.14", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" })
3840
3840
  ] }), Oo = m.forwardRef(
@@ -3848,7 +3848,7 @@ const ex = (e = {}) => /* @__PURE__ */ l.jsxs("svg", { className: e.className, w
3848
3848
  {
3849
3849
  ...a,
3850
3850
  ref: s,
3851
- className: k(
3851
+ className: S(
3852
3852
  "w-full rounded-lg border bg-background/50 text-foreground focus:border-ring focus:outline-none placeholder:text-muted-foreground transition-colors disabled:opacity-50",
3853
3853
  t === "default" ? "h-9 text-sm" : "h-8 text-xs",
3854
3854
  r ? "pl-9" : "px-3",
@@ -4091,7 +4091,7 @@ var Do = "ScrollArea", [mi] = Pt(Do), [Vu, We] = mi(Do), pi = m.forwardRef(
4091
4091
  dir: o,
4092
4092
  scrollHideDelay: a = 600,
4093
4093
  ...s
4094
- } = e, [i, c] = m.useState(null), [d, u] = m.useState(null), [f, h] = m.useState(null), [p, g] = m.useState(null), [v, b] = m.useState(null), [x, y] = m.useState(0), [N, C] = m.useState(0), [j, _] = m.useState(!1), [S, F] = m.useState(!1), A = ve(t, (B) => c(B)), I = hi(o);
4094
+ } = e, [i, c] = m.useState(null), [d, u] = m.useState(null), [f, h] = m.useState(null), [p, g] = m.useState(null), [v, b] = m.useState(null), [x, y] = m.useState(0), [N, C] = m.useState(0), [j, _] = m.useState(!1), [k, F] = m.useState(!1), A = ve(t, (B) => c(B)), I = hi(o);
4095
4095
  return /* @__PURE__ */ l.jsx(
4096
4096
  Vu,
4097
4097
  {
@@ -4110,7 +4110,7 @@ var Do = "ScrollArea", [mi] = Pt(Do), [Vu, We] = mi(Do), pi = m.forwardRef(
4110
4110
  onScrollbarXEnabledChange: _,
4111
4111
  scrollbarY: v,
4112
4112
  onScrollbarYChange: b,
4113
- scrollbarYEnabled: S,
4113
+ scrollbarYEnabled: k,
4114
4114
  onScrollbarYEnabledChange: F,
4115
4115
  onCornerWidthChange: y,
4116
4116
  onCornerHeightChange: C,
@@ -4413,7 +4413,7 @@ var Uu = m.forwardRef((e, t) => {
4413
4413
  onWheelScroll: u,
4414
4414
  onResize: f,
4415
4415
  ...h
4416
- } = e, p = We(tt, r), [g, v] = m.useState(null), b = ve(t, (A) => v(A)), x = m.useRef(null), y = m.useRef(""), N = p.viewport, C = n.content - n.viewport, j = _e(u), _ = _e(c), S = fn(f, 10);
4416
+ } = e, p = We(tt, r), [g, v] = m.useState(null), b = ve(t, (A) => v(A)), x = m.useRef(null), y = m.useRef(""), N = p.viewport, C = n.content - n.viewport, j = _e(u), _ = _e(c), k = fn(f, 10);
4417
4417
  function F(A) {
4418
4418
  if (x.current) {
4419
4419
  const I = A.clientX - x.current.left, B = A.clientY - x.current.top;
@@ -4426,7 +4426,7 @@ var Uu = m.forwardRef((e, t) => {
4426
4426
  (g == null ? void 0 : g.contains(B)) && j(I, C);
4427
4427
  };
4428
4428
  return document.addEventListener("wheel", A, { passive: !1 }), () => document.removeEventListener("wheel", A, { passive: !1 });
4429
- }, [N, g, C, j]), m.useEffect(_, [n, _]), Vt(g, S), Vt(p.content, S), /* @__PURE__ */ l.jsx(
4429
+ }, [N, g, C, j]), m.useEffect(_, [n, _]), Vt(g, k), Vt(p.content, k), /* @__PURE__ */ l.jsx(
4430
4430
  Ku,
4431
4431
  {
4432
4432
  scope: r,
@@ -4595,7 +4595,7 @@ const Jr = m.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
4595
4595
  ki,
4596
4596
  {
4597
4597
  ref: n,
4598
- className: k("relative overflow-hidden", e),
4598
+ className: S("relative overflow-hidden", e),
4599
4599
  ...r,
4600
4600
  children: [
4601
4601
  /* @__PURE__ */ l.jsx(tf, { className: "h-full w-full rounded-[inherit]", children: t }),
@@ -4610,7 +4610,7 @@ const _i = m.forwardRef(({ className: e, orientation: t = "vertical", ...r }, n)
4610
4610
  {
4611
4611
  ref: n,
4612
4612
  orientation: t,
4613
- className: k(
4613
+ className: S(
4614
4614
  "flex touch-none select-none transition-colors",
4615
4615
  t === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
4616
4616
  t === "horizontal" && "h-2.5 border-t border-t-transparent p-[1px]",
@@ -4621,13 +4621,13 @@ const _i = m.forwardRef(({ className: e, orientation: t = "vertical", ...r }, n)
4621
4621
  }
4622
4622
  ));
4623
4623
  _i.displayName = Ao.displayName;
4624
- function ux({
4624
+ function fx({
4625
4625
  label: e,
4626
4626
  variant: t = "default",
4627
4627
  className: r,
4628
4628
  size: n = "xs"
4629
4629
  }) {
4630
- return /* @__PURE__ */ l.jsx("span", { className: k(
4630
+ return /* @__PURE__ */ l.jsx("span", { className: S(
4631
4631
  "font-semibold rounded-md border flex items-center justify-center font-mono whitespace-nowrap transition-all duration-200",
4632
4632
  n === "xs" && "px-1.5 py-0.5 text-[9px] uppercase tracking-wider",
4633
4633
  n === "sm" && "px-2 py-0.5 text-[10px] uppercase tracking-wider",
@@ -4684,7 +4684,7 @@ function of(e) {
4684
4684
  if (!y) return [];
4685
4685
  const N = Array.from(y.querySelectorAll(`[${f}]`));
4686
4686
  return Array.from(b.itemMap.values()).sort(
4687
- (_, S) => N.indexOf(_.ref.current) - N.indexOf(S.ref.current)
4687
+ (_, k) => N.indexOf(_.ref.current) - N.indexOf(k.ref.current)
4688
4688
  );
4689
4689
  }, [b.collectionRef, b.itemMap]);
4690
4690
  }
@@ -4956,8 +4956,8 @@ var [Ai, yf] = mn(Ve), [Ti, wf] = mn(
4956
4956
  a === "vertical" && _();
4957
4957
  break;
4958
4958
  }
4959
- const S = y % x;
4960
- (F = v[S].ref.current) == null || F.focus();
4959
+ const k = y % x;
4960
+ (F = v[k].ref.current) == null || F.focus();
4961
4961
  });
4962
4962
  return /* @__PURE__ */ l.jsx(
4963
4963
  jf,
@@ -5067,11 +5067,11 @@ function Hi(e) {
5067
5067
  return e ? "open" : "closed";
5068
5068
  }
5069
5069
  var kf = Di, _f = Ii, Mf = Fi, Yi = $i, Vi = zi;
5070
- const fx = kf, Ef = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5070
+ const hx = kf, Ef = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5071
5071
  _f,
5072
5072
  {
5073
5073
  ref: r,
5074
- className: k("border-b border-border_primary", e),
5074
+ className: S("border-b border-border_primary", e),
5075
5075
  ...t
5076
5076
  }
5077
5077
  ));
@@ -5080,7 +5080,7 @@ const Pf = m.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
5080
5080
  Yi,
5081
5081
  {
5082
5082
  ref: n,
5083
- className: k(
5083
+ className: S(
5084
5084
  "flex flex-1 items-center justify-between gap-4 py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",
5085
5085
  e
5086
5086
  ),
@@ -5098,7 +5098,7 @@ const Rf = m.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
5098
5098
  ref: n,
5099
5099
  className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
5100
5100
  ...r,
5101
- children: /* @__PURE__ */ l.jsx("div", { className: k("pb-4 pt-0", e), children: t })
5101
+ children: /* @__PURE__ */ l.jsx("div", { className: S("pb-4 pt-0", e), children: t })
5102
5102
  }
5103
5103
  ));
5104
5104
  Rf.displayName = Vi.displayName;
@@ -5106,7 +5106,7 @@ const Of = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5106
5106
  "div",
5107
5107
  {
5108
5108
  ref: r,
5109
- className: k(
5109
+ className: S(
5110
5110
  "rounded-xl border bg-card text-card-foreground shadow",
5111
5111
  e
5112
5112
  ),
@@ -5118,7 +5118,7 @@ const Df = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5118
5118
  "div",
5119
5119
  {
5120
5120
  ref: r,
5121
- className: k("flex flex-col space-y-1.5 p-6", e),
5121
+ className: S("flex flex-col space-y-1.5 p-6", e),
5122
5122
  ...t
5123
5123
  }
5124
5124
  ));
@@ -5127,7 +5127,7 @@ const Af = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5127
5127
  "div",
5128
5128
  {
5129
5129
  ref: r,
5130
- className: k("font-semibold leading-none tracking-tight", e),
5130
+ className: S("font-semibold leading-none tracking-tight", e),
5131
5131
  ...t
5132
5132
  }
5133
5133
  ));
@@ -5136,18 +5136,18 @@ const Tf = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5136
5136
  "div",
5137
5137
  {
5138
5138
  ref: r,
5139
- className: k("text-sm text-muted-foreground", e),
5139
+ className: S("text-sm text-muted-foreground", e),
5140
5140
  ...t
5141
5141
  }
5142
5142
  ));
5143
5143
  Tf.displayName = "MriCardDescription";
5144
- const Lf = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: k("p-6 pt-0", e), ...t }));
5144
+ const Lf = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx("div", { ref: r, className: S("p-6 pt-0", e), ...t }));
5145
5145
  Lf.displayName = "MriCardContent";
5146
5146
  const If = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
5147
5147
  "div",
5148
5148
  {
5149
5149
  ref: r,
5150
- className: k("flex items-center p-6 pt-0", e),
5150
+ className: S("flex items-center p-6 pt-0", e),
5151
5151
  ...t
5152
5152
  }
5153
5153
  ));
@@ -5175,15 +5175,15 @@ var Ff = "DismissableLayer", uo = "dismissableLayer.update", $f = "dismissableLa
5175
5175
  onInteractOutside: s,
5176
5176
  onDismiss: i,
5177
5177
  ...c
5178
- } = e, d = m.useContext(Ui), [u, f] = m.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = m.useState({}), g = ve(t, (S) => f(S)), v = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), y = u ? v.indexOf(u) : -1, N = d.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= x, j = Yf((S) => {
5179
- const F = S.target, A = [...d.branches].some((I) => I.contains(F));
5180
- !C || A || (o == null || o(S), s == null || s(S), S.defaultPrevented || i == null || i());
5181
- }, h), _ = Vf((S) => {
5182
- const F = S.target;
5183
- [...d.branches].some((I) => I.contains(F)) || (a == null || a(S), s == null || s(S), S.defaultPrevented || i == null || i());
5178
+ } = e, d = m.useContext(Ui), [u, f] = m.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = m.useState({}), g = ve(t, (k) => f(k)), v = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(b), y = u ? v.indexOf(u) : -1, N = d.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= x, j = Yf((k) => {
5179
+ const F = k.target, A = [...d.branches].some((I) => I.contains(F));
5180
+ !C || A || (o == null || o(k), s == null || s(k), k.defaultPrevented || i == null || i());
5181
+ }, h), _ = Vf((k) => {
5182
+ const F = k.target;
5183
+ [...d.branches].some((I) => I.contains(F)) || (a == null || a(k), s == null || s(k), k.defaultPrevented || i == null || i());
5184
5184
  }, h);
5185
- return Wf((S) => {
5186
- y === d.layers.size - 1 && (n == null || n(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
5185
+ return Wf((k) => {
5186
+ y === d.layers.size - 1 && (n == null || n(k), !k.defaultPrevented && i && (k.preventDefault(), i()));
5187
5187
  }, h), m.useEffect(() => {
5188
5188
  if (u)
5189
5189
  return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (qa = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), Ga(), () => {
@@ -5192,8 +5192,8 @@ var Ff = "DismissableLayer", uo = "dismissableLayer.update", $f = "dismissableLa
5192
5192
  }, [u, h, r, d]), m.useEffect(() => () => {
5193
5193
  u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), Ga());
5194
5194
  }, [u, d]), m.useEffect(() => {
5195
- const S = () => p({});
5196
- return document.addEventListener(uo, S), () => document.removeEventListener(uo, S);
5195
+ const k = () => p({});
5196
+ return document.addEventListener(uo, k), () => document.removeEventListener(uo, k);
5197
5197
  }, []), /* @__PURE__ */ l.jsx(
5198
5198
  ce.div,
5199
5199
  {
@@ -5701,9 +5701,9 @@ const uh = (e) => ({
5701
5701
  x: r,
5702
5702
  y: n
5703
5703
  }, p = qo(o), g = Uo(p), v = await s.getDimensions(d), b = p === "y", x = b ? "top" : "left", y = b ? "bottom" : "right", N = b ? "clientHeight" : "clientWidth", C = a.reference[g] + a.reference[p] - h[p] - a.floating[g], j = h[p] - a.reference[p], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
5704
- let S = _ ? _[N] : 0;
5705
- (!S || !await (s.isElement == null ? void 0 : s.isElement(_))) && (S = i.floating[N] || a.floating[g]);
5706
- const F = C / 2 - j / 2, A = S / 2 - v[g] / 2 - 1, I = pt(f[x], A), B = pt(f[y], A), O = I, $ = S - v[g] - B, L = S / 2 - v[g] / 2 + F, T = fo(O, L, $), U = !c.arrow && Qt(o) != null && L !== T && a.reference[g] / 2 - (L < O ? I : B) - v[g] / 2 < 0, R = U ? L < O ? L - O : L - $ : 0;
5704
+ let k = _ ? _[N] : 0;
5705
+ (!k || !await (s.isElement == null ? void 0 : s.isElement(_))) && (k = i.floating[N] || a.floating[g]);
5706
+ const F = C / 2 - j / 2, A = k / 2 - v[g] / 2 - 1, I = pt(f[x], A), B = pt(f[y], A), O = I, $ = k - v[g] - B, L = k / 2 - v[g] / 2 + F, T = fo(O, L, $), U = !c.arrow && Qt(o) != null && L !== T && a.reference[g] / 2 - (L < O ? I : B) - v[g] / 2 < 0, R = U ? L < O ? L - O : L - $ : 0;
5707
5707
  return {
5708
5708
  [p]: h[p] + R,
5709
5709
  data: {
@@ -5742,7 +5742,7 @@ const uh = (e) => ({
5742
5742
  return {};
5743
5743
  const x = lt(o), y = Ke(i), N = lt(i) === i, C = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), j = h || (N || !v ? [rn(i)] : oh(i)), _ = g !== "none";
5744
5744
  !h && _ && j.push(...lh(i, v, g, C));
5745
- const S = [i, ...j], F = await hr(t, b), A = [];
5745
+ const k = [i, ...j], F = await hr(t, b), A = [];
5746
5746
  let I = ((n = a.flip) == null ? void 0 : n.overflows) || [];
5747
5747
  if (u && A.push(F[x]), f) {
5748
5748
  const L = nh(o, s, C);
@@ -5753,7 +5753,7 @@ const uh = (e) => ({
5753
5753
  overflows: A
5754
5754
  }], !A.every((L) => L <= 0)) {
5755
5755
  var B, O;
5756
- const L = (((B = a.flip) == null ? void 0 : B.index) || 0) + 1, T = S[L];
5756
+ const L = (((B = a.flip) == null ? void 0 : B.index) || 0) + 1, T = k[L];
5757
5757
  if (T && (!(f === "alignment" ? y !== Ke(T) : !1) || // We leave the current main axis only if every placement on that axis
5758
5758
  // overflows the main axis.
5759
5759
  I.every((M) => Ke(M.placement) === y ? M.overflows[0] > 0 : !0)))
@@ -6020,15 +6020,15 @@ const ph = function(e) {
6020
6020
  let b, x;
6021
6021
  f === "top" || f === "bottom" ? (b = f, x = h === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (x = f, b = h === "end" ? "top" : "bottom");
6022
6022
  const y = v - u.top - u.bottom, N = g - u.left - u.right, C = pt(v - u[b], y), j = pt(g - u[x], N), _ = !t.middlewareData.shift;
6023
- let S = C, F = j;
6024
- if ((r = t.middlewareData.shift) != null && r.enabled.x && (F = N), (n = t.middlewareData.shift) != null && n.enabled.y && (S = y), _ && !h) {
6023
+ let k = C, F = j;
6024
+ if ((r = t.middlewareData.shift) != null && r.enabled.x && (F = N), (n = t.middlewareData.shift) != null && n.enabled.y && (k = y), _ && !h) {
6025
6025
  const I = Pe(u.left, 0), B = Pe(u.right, 0), O = Pe(u.top, 0), $ = Pe(u.bottom, 0);
6026
- p ? F = g - 2 * (I !== 0 || B !== 0 ? I + B : Pe(u.left, u.right)) : S = v - 2 * (O !== 0 || $ !== 0 ? O + $ : Pe(u.top, u.bottom));
6026
+ p ? F = g - 2 * (I !== 0 || B !== 0 ? I + B : Pe(u.left, u.right)) : k = v - 2 * (O !== 0 || $ !== 0 ? O + $ : Pe(u.top, u.bottom));
6027
6027
  }
6028
6028
  await c({
6029
6029
  ...t,
6030
6030
  availableWidth: F,
6031
- availableHeight: S
6031
+ availableHeight: k
6032
6032
  });
6033
6033
  const A = await s.getDimensions(i.floating);
6034
6034
  return g !== A.width || v !== A.height ? {
@@ -6467,15 +6467,15 @@ function Hh(e, t) {
6467
6467
  };
6468
6468
  let C = !0;
6469
6469
  function j(_) {
6470
- const S = _[0].intersectionRatio;
6471
- if (S !== c) {
6470
+ const k = _[0].intersectionRatio;
6471
+ if (k !== c) {
6472
6472
  if (!C)
6473
6473
  return s();
6474
- S ? s(!1, S) : n = setTimeout(() => {
6474
+ k ? s(!1, k) : n = setTimeout(() => {
6475
6475
  s(!1, 1e-7);
6476
6476
  }, 1e3);
6477
6477
  }
6478
- S === 1 && !al(d, e.getBoundingClientRect()) && s(), C = !1;
6478
+ k === 1 && !al(d, e.getBoundingClientRect()) && s(), C = !1;
6479
6479
  }
6480
6480
  try {
6481
6481
  r = new IntersectionObserver(j, {
@@ -6610,16 +6610,16 @@ function em(e) {
6610
6610
  const [g, v] = m.useState(null), [b, x] = m.useState(null), y = m.useCallback((M) => {
6611
6611
  M !== _.current && (_.current = M, v(M));
6612
6612
  }, []), N = m.useCallback((M) => {
6613
- M !== S.current && (S.current = M, x(M));
6614
- }, []), C = a || g, j = s || b, _ = m.useRef(null), S = m.useRef(null), F = m.useRef(u), A = c != null, I = $n(c), B = $n(o), O = $n(d), $ = m.useCallback(() => {
6615
- if (!_.current || !S.current)
6613
+ M !== k.current && (k.current = M, x(M));
6614
+ }, []), C = a || g, j = s || b, _ = m.useRef(null), k = m.useRef(null), F = m.useRef(u), A = c != null, I = $n(c), B = $n(o), O = $n(d), $ = m.useCallback(() => {
6615
+ if (!_.current || !k.current)
6616
6616
  return;
6617
6617
  const M = {
6618
6618
  placement: t,
6619
6619
  strategy: r,
6620
6620
  middleware: h
6621
6621
  };
6622
- B.current && (M.platform = B.current), Qh(_.current, S.current, M).then((G) => {
6622
+ B.current && (M.platform = B.current), Qh(_.current, k.current, M).then((G) => {
6623
6623
  const de = {
6624
6624
  ...G,
6625
6625
  // The floating element's position may be recomputed while it's closed
@@ -6643,7 +6643,7 @@ function em(e) {
6643
6643
  Yr(() => (L.current = !0, () => {
6644
6644
  L.current = !1;
6645
6645
  }), []), Yr(() => {
6646
- if (C && (_.current = C), j && (S.current = j), C && j) {
6646
+ if (C && (_.current = C), j && (k.current = j), C && j) {
6647
6647
  if (I.current)
6648
6648
  return I.current(C, j, $);
6649
6649
  $();
@@ -6651,7 +6651,7 @@ function em(e) {
6651
6651
  }, [C, j, $, I, A]);
6652
6652
  const T = m.useMemo(() => ({
6653
6653
  reference: _,
6654
- floating: S,
6654
+ floating: k,
6655
6655
  setReference: y,
6656
6656
  setFloating: N
6657
6657
  }), [y, N]), U = m.useMemo(() => ({
@@ -6801,7 +6801,7 @@ var Zo = "PopperContent", [hm, mm] = ll(Zo), ml = m.forwardRef(
6801
6801
  updatePositionStrategy: p = "optimized",
6802
6802
  onPlaced: g,
6803
6803
  ...v
6804
- } = e, b = dl(Zo, r), [x, y] = m.useState(null), N = ve(t, (xt) => y(xt)), [C, j] = m.useState(null), _ = um(C), S = (_ == null ? void 0 : _.width) ?? 0, F = (_ == null ? void 0 : _.height) ?? 0, A = n + (a !== "center" ? "-" + a : ""), I = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, B = Array.isArray(d) ? d : [d], O = B.length > 0, $ = {
6804
+ } = e, b = dl(Zo, r), [x, y] = m.useState(null), N = ve(t, (xt) => y(xt)), [C, j] = m.useState(null), _ = um(C), k = (_ == null ? void 0 : _.width) ?? 0, F = (_ == null ? void 0 : _.height) ?? 0, A = n + (a !== "center" ? "-" + a : ""), I = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, B = Array.isArray(d) ? d : [d], O = B.length > 0, $ = {
6805
6805
  padding: I,
6806
6806
  boundary: B.filter(vm),
6807
6807
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6833,7 +6833,7 @@ var Zo = "PopperContent", [hm, mm] = ll(Zo), ml = m.forwardRef(
6833
6833
  }
6834
6834
  }),
6835
6835
  C && lm({ element: C, padding: i }),
6836
- gm({ arrowWidth: S, arrowHeight: F }),
6836
+ gm({ arrowWidth: k, arrowHeight: F }),
6837
6837
  h && im({ strategy: "referenceHidden", ...$ })
6838
6838
  ]
6839
6839
  }), [G, de] = gl(U), le = _e(g);
@@ -7171,12 +7171,12 @@ var Cl = Dm(), Hn = function() {
7171
7171
  onScrollCapture: Hn,
7172
7172
  onWheelCapture: Hn,
7173
7173
  onTouchMoveCapture: Hn
7174
- }), o = n[0], a = n[1], s = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, g = e.noIsolation, v = e.inert, b = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, N = e.gapMode, C = wl(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), j = h, _ = Pm([r, t]), S = qe(qe({}, C), o);
7174
+ }), o = n[0], a = n[1], s = e.forwardProps, i = e.children, c = e.className, d = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, g = e.noIsolation, v = e.inert, b = e.allowPinchZoom, x = e.as, y = x === void 0 ? "div" : x, N = e.gapMode, C = wl(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), j = h, _ = Pm([r, t]), k = qe(qe({}, C), o);
7175
7175
  return m.createElement(
7176
7176
  m.Fragment,
7177
7177
  null,
7178
7178
  u && m.createElement(j, { sideCar: Cl, removeScrollBar: d, shards: f, noRelative: p, noIsolation: g, inert: v, setCallbacks: a, allowPinchZoom: !!b, lockRef: r, gapMode: N }),
7179
- s ? m.cloneElement(m.Children.only(i), qe(qe({}, S), { ref: _ })) : m.createElement(y, qe({}, S, { className: c, ref: _ }), i)
7179
+ s ? m.cloneElement(m.Children.only(i), qe(qe({}, k), { ref: _ })) : m.createElement(y, qe({}, k, { className: c, ref: _ }), i)
7180
7180
  );
7181
7181
  });
7182
7182
  yn.defaultProps = {
@@ -7422,16 +7422,16 @@ function op(e) {
7422
7422
  var i = m.useCallback(function(v, b) {
7423
7423
  if ("touches" in v && v.touches.length === 2 || v.type === "wheel" && v.ctrlKey)
7424
7424
  return !s.current.allowPinchZoom;
7425
- var x = $r(v), y = r.current, N = "deltaX" in v ? v.deltaX : y[0] - x[0], C = "deltaY" in v ? v.deltaY : y[1] - x[1], j, _ = v.target, S = Math.abs(N) > Math.abs(C) ? "h" : "v";
7426
- if ("touches" in v && S === "h" && _.type === "range")
7425
+ var x = $r(v), y = r.current, N = "deltaX" in v ? v.deltaX : y[0] - x[0], C = "deltaY" in v ? v.deltaY : y[1] - x[1], j, _ = v.target, k = Math.abs(N) > Math.abs(C) ? "h" : "v";
7426
+ if ("touches" in v && k === "h" && _.type === "range")
7427
7427
  return !1;
7428
7428
  var F = window.getSelection(), A = F && F.anchorNode, I = A ? A === _ || A.contains(_) : !1;
7429
7429
  if (I)
7430
7430
  return !1;
7431
- var B = hs(S, _);
7431
+ var B = hs(k, _);
7432
7432
  if (!B)
7433
7433
  return !0;
7434
- if (B ? j = S : (j = S === "v" ? "h" : "v", B = hs(S, _)), !B)
7434
+ if (B ? j = k : (j = k === "v" ? "h" : "v", B = hs(k, _)), !B)
7435
7435
  return !1;
7436
7436
  if (!n.current && "changedTouches" in v && (N || C) && (n.current = j), !j)
7437
7437
  return !0;
@@ -7716,7 +7716,7 @@ const Jt = Wl, er = Fl, Rt = m.forwardRef(({ className: e, align: t = "center",
7716
7716
  ref: a,
7717
7717
  align: t,
7718
7718
  sideOffset: r,
7719
- className: k(
7719
+ className: S(
7720
7720
  "z-[100] w-72 rounded-md border border-border_primary bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
7721
7721
  e
7722
7722
  ),
@@ -7945,7 +7945,7 @@ Dp.displayName = Jl;
7945
7945
  function aa(e) {
7946
7946
  return e ? "open" : "closed";
7947
7947
  }
7948
- var ec = "DialogTitleWarning", [hx, tc] = $u(ec, {
7948
+ var ec = "DialogTitleWarning", [mx, tc] = $u(ec, {
7949
7949
  contentName: St,
7950
7950
  titleName: oa,
7951
7951
  docsSlug: "dialog"
@@ -7973,12 +7973,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7973
7973
  kt(() => {
7974
7974
  if (u !== void 0) {
7975
7975
  let P = u.trim();
7976
- r.current.value = P, S.emit();
7976
+ r.current.value = P, k.emit();
7977
7977
  }
7978
7978
  }, [u]), kt(() => {
7979
7979
  _(6, $);
7980
7980
  }, []);
7981
- let S = m.useMemo(() => ({ subscribe: (P) => (s.current.add(P), () => s.current.delete(P)), snapshot: () => r.current, setState: (P, H, X) => {
7981
+ let k = m.useMemo(() => ({ subscribe: (P) => (s.current.add(P), () => s.current.delete(P)), snapshot: () => r.current, setState: (P, H, X) => {
7982
7982
  var W, Z, J, me;
7983
7983
  if (!Object.is(r.current[P], H)) {
7984
7984
  if (r.current[P] = H, P === "search") O(), I(), _(1, B);
@@ -7989,29 +7989,29 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
7989
7989
  }
7990
7990
  if (_(7, () => {
7991
7991
  var ue;
7992
- r.current.selectedItemId = (ue = L()) == null ? void 0 : ue.id, S.emit();
7992
+ r.current.selectedItemId = (ue = L()) == null ? void 0 : ue.id, k.emit();
7993
7993
  }), X || _(5, $), ((Z = i.current) == null ? void 0 : Z.value) !== void 0) {
7994
7994
  let ue = H ?? "";
7995
7995
  (me = (J = i.current).onValueChange) == null || me.call(J, ue);
7996
7996
  return;
7997
7997
  }
7998
7998
  }
7999
- S.emit();
7999
+ k.emit();
8000
8000
  }
8001
8001
  }, emit: () => {
8002
8002
  s.current.forEach((P) => P());
8003
8003
  } }), []), F = m.useMemo(() => ({ value: (P, H, X) => {
8004
8004
  var W;
8005
8005
  H !== ((W = a.current.get(P)) == null ? void 0 : W.value) && (a.current.set(P, { value: H, keywords: X }), r.current.filtered.items.set(P, A(H, X)), _(2, () => {
8006
- I(), S.emit();
8006
+ I(), k.emit();
8007
8007
  }));
8008
8008
  }, item: (P, H) => (n.current.add(P), H && (o.current.has(H) ? o.current.get(H).add(P) : o.current.set(H, /* @__PURE__ */ new Set([P]))), _(3, () => {
8009
- O(), I(), r.current.value || B(), S.emit();
8009
+ O(), I(), r.current.value || B(), k.emit();
8010
8010
  }), () => {
8011
8011
  a.current.delete(P), n.current.delete(P), r.current.filtered.items.delete(P);
8012
8012
  let X = L();
8013
8013
  _(4, () => {
8014
- O(), (X == null ? void 0 : X.getAttribute("id")) === P && B(), S.emit();
8014
+ O(), (X == null ? void 0 : X.getAttribute("id")) === P && B(), k.emit();
8015
8015
  });
8016
8016
  }), group: (P) => (o.current.has(P) || o.current.set(P, /* @__PURE__ */ new Set()), () => {
8017
8017
  a.current.delete(P), o.current.delete(P);
@@ -8047,7 +8047,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8047
8047
  }
8048
8048
  function B() {
8049
8049
  let P = T().find((X) => X.getAttribute("aria-disabled") !== "true"), H = P == null ? void 0 : P.getAttribute(Ft);
8050
- S.setState("value", H || void 0);
8050
+ k.setState("value", H || void 0);
8051
8051
  }
8052
8052
  function O() {
8053
8053
  var P, H, X, W;
@@ -8082,17 +8082,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8082
8082
  }
8083
8083
  function U(P) {
8084
8084
  let H = T()[P];
8085
- H && S.setState("value", H.getAttribute(Ft));
8085
+ H && k.setState("value", H.getAttribute(Ft));
8086
8086
  }
8087
8087
  function R(P) {
8088
8088
  var H;
8089
8089
  let X = L(), W = T(), Z = W.findIndex((me) => me === X), J = W[Z + P];
8090
- (H = i.current) != null && H.loop && (J = Z + P < 0 ? W[W.length - 1] : Z + P === W.length ? W[0] : W[Z + P]), J && S.setState("value", J.getAttribute(Ft));
8090
+ (H = i.current) != null && H.loop && (J = Z + P < 0 ? W[W.length - 1] : Z + P === W.length ? W[0] : W[Z + P]), J && k.setState("value", J.getAttribute(Ft));
8091
8091
  }
8092
8092
  function M(P) {
8093
8093
  let H = L(), X = H == null ? void 0 : H.closest(ir), W;
8094
8094
  for (; X && !W; ) X = P > 0 ? Xp(X, ir) : Kp(X, ir), W = X == null ? void 0 : X.querySelector(bs);
8095
- W ? S.setState("value", W.getAttribute(Ft)) : R(P);
8095
+ W ? k.setState("value", W.getAttribute(Ft)) : R(P);
8096
8096
  }
8097
8097
  let G = () => U(T().length - 1), de = (P) => {
8098
8098
  P.preventDefault(), P.metaKey ? G() : P.altKey ? M(1) : R(1);
@@ -8139,7 +8139,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8139
8139
  }
8140
8140
  }
8141
8141
  }
8142
- } }, m.createElement("label", { "cmdk-label": "", htmlFor: F.inputId, id: F.labelId, style: Jp }, c), Cn(e, (P) => m.createElement(lc.Provider, { value: S }, m.createElement(ic.Provider, { value: F }, P))));
8142
+ } }, m.createElement("label", { "cmdk-label": "", htmlFor: F.inputId, id: F.labelId, style: Jp }, c), Cn(e, (P) => m.createElement(lc.Provider, { value: k }, m.createElement(ic.Provider, { value: F }, P))));
8143
8143
  }), Bp = m.forwardRef((e, t) => {
8144
8144
  var r, n;
8145
8145
  let o = Ie(), a = m.useRef(null), s = m.useContext(cc), i = Nr(), c = uc(e), d = (n = (r = c.current) == null ? void 0 : r.forceMount) != null ? n : s == null ? void 0 : s.forceMount;
@@ -8152,8 +8152,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8152
8152
  if (!(!_ || e.disabled)) return _.addEventListener(go, g), () => _.removeEventListener(go, g);
8153
8153
  }, [p, e.onSelect, e.disabled]);
8154
8154
  function g() {
8155
- var _, S;
8156
- v(), (S = (_ = c.current).onSelect) == null || S.call(_, u.current);
8155
+ var _, k;
8156
+ v(), (k = (_ = c.current).onSelect) == null || k.call(_, u.current);
8157
8157
  }
8158
8158
  function v() {
8159
8159
  f.setState("value", u.current, !0);
@@ -8261,7 +8261,7 @@ const Cr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
8261
8261
  Ee,
8262
8262
  {
8263
8263
  ref: r,
8264
- className: k(
8264
+ className: S(
8265
8265
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
8266
8266
  e
8267
8267
  ),
@@ -8275,7 +8275,7 @@ const jr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsxs("d
8275
8275
  Ee.Input,
8276
8276
  {
8277
8277
  ref: r,
8278
- className: k(
8278
+ className: S(
8279
8279
  "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
8280
8280
  e
8281
8281
  ),
@@ -8288,7 +8288,7 @@ const jn = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
8288
8288
  Ee.List,
8289
8289
  {
8290
8290
  ref: r,
8291
- className: k("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
8291
+ className: S("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
8292
8292
  ...t
8293
8293
  }
8294
8294
  ));
@@ -8306,7 +8306,7 @@ const kr = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
8306
8306
  Ee.Group,
8307
8307
  {
8308
8308
  ref: r,
8309
- className: k(
8309
+ className: S(
8310
8310
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
8311
8311
  e
8312
8312
  ),
@@ -8318,7 +8318,7 @@ const ev = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
8318
8318
  Ee.Separator,
8319
8319
  {
8320
8320
  ref: r,
8321
- className: k("-mx-1 h-px bg-border", e),
8321
+ className: S("-mx-1 h-px bg-border", e),
8322
8322
  ...t
8323
8323
  }
8324
8324
  ));
@@ -8327,7 +8327,7 @@ const Gt = m.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ l.jsx(
8327
8327
  Ee.Item,
8328
8328
  {
8329
8329
  ref: r,
8330
- className: k(
8330
+ className: S(
8331
8331
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",
8332
8332
  e
8333
8333
  ),
@@ -8341,7 +8341,7 @@ const tv = ({
8341
8341
  }) => /* @__PURE__ */ l.jsx(
8342
8342
  "span",
8343
8343
  {
8344
- className: k(
8344
+ className: S(
8345
8345
  "ml-auto text-xs tracking-widest text-muted-foreground",
8346
8346
  e
8347
8347
  ),
@@ -8349,7 +8349,7 @@ const tv = ({
8349
8349
  }
8350
8350
  );
8351
8351
  tv.displayName = "MriCommandShortcut";
8352
- function mx({
8352
+ function px({
8353
8353
  options: e,
8354
8354
  value: t,
8355
8355
  onChange: r,
@@ -8372,7 +8372,7 @@ function mx({
8372
8372
  size: i === "sm" ? "sm" : "icon",
8373
8373
  disabled: s,
8374
8374
  "aria-expanded": f,
8375
- className: k(
8375
+ className: S(
8376
8376
  "aspect-square p-0 border rounded-md bg-background/50 backdrop-blur-sm hover:bg-accent/50 text-muted-foreground hover:text-foreground transition-all duration-300 shadow-sm",
8377
8377
  c ? "border-destructive text-destructive" : "border-input",
8378
8378
  i === "default" && "!h-[42px] !w-[42px]",
@@ -8405,7 +8405,7 @@ function mx({
8405
8405
  /* @__PURE__ */ l.jsx(
8406
8406
  br,
8407
8407
  {
8408
- className: k(
8408
+ className: S(
8409
8409
  "mr-2 h-4 w-4 text-primary",
8410
8410
  String(t) === String(p.value) ? "opacity-100" : "opacity-0"
8411
8411
  )
@@ -8446,7 +8446,7 @@ function ia({
8446
8446
  /* @__PURE__ */ l.jsx(
8447
8447
  oc,
8448
8448
  {
8449
- className: k(
8449
+ className: S(
8450
8450
  "fixed inset-0 z-50 transition-all duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
8451
8451
  !o && "bg-background/80",
8452
8452
  !n && "backdrop-blur-sm"
@@ -8465,7 +8465,7 @@ function ia({
8465
8465
  onInteractOutside: (s) => {
8466
8466
  s.target instanceof Element && s.target.closest("[data-radix-popper-content-wrapper]") && s.preventDefault();
8467
8467
  },
8468
- className: k(
8468
+ className: S(
8469
8469
  "fixed left-[50%] top-[50%] z-50 grid w-full max-w-sm translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-card p-6 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-xl outline-none",
8470
8470
  r
8471
8471
  ),
@@ -8478,7 +8478,7 @@ function ia({
8478
8478
  )
8479
8479
  ] }) });
8480
8480
  }
8481
- function px({ title: e, children: t, onClose: r, className: n }) {
8481
+ function vx({ title: e, children: t, onClose: r, className: n }) {
8482
8482
  return /* @__PURE__ */ l.jsxs(ia, { onClose: r, className: n, children: [
8483
8483
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center justify-between mb-6", children: [
8484
8484
  /* @__PURE__ */ l.jsx("h3", { className: "text-xl font-bold tracking-tight text-foreground", children: e }),
@@ -8516,7 +8516,7 @@ function rv({
8516
8516
  isLoading: c,
8517
8517
  "aria-expanded": v,
8518
8518
  size: f,
8519
- className: k(
8519
+ className: S(
8520
8520
  "w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground",
8521
8521
  d && "border-destructive focus:ring-destructive",
8522
8522
  s
@@ -8576,7 +8576,7 @@ function rv({
8576
8576
  /* @__PURE__ */ l.jsx(
8577
8577
  br,
8578
8578
  {
8579
- className: k(
8579
+ className: S(
8580
8580
  "mr-2 h-4 w-4 text-primary",
8581
8581
  String(t) === String(j.value) ? "opacity-100" : "opacity-0"
8582
8582
  )
@@ -8637,7 +8637,7 @@ function nv({
8637
8637
  disabled: i || c,
8638
8638
  isLoading: c,
8639
8639
  "aria-expanded": h,
8640
- className: k(
8640
+ className: S(
8641
8641
  "w-full justify-between bg-background border-border hover:bg-muted hover:text-foreground text-foreground min-h-[40px] h-auto py-2",
8642
8642
  d && "border-destructive focus:ring-destructive",
8643
8643
  s
@@ -8695,11 +8695,11 @@ function nv({
8695
8695
  onSelect: () => g(b.value),
8696
8696
  className: "aria-selected:bg-primary/10 aria-selected:text-primary rounded-lg cursor-pointer flex items-center justify-between py-2.5 px-3 transition-all active:scale-[0.98]",
8697
8697
  children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
8698
- /* @__PURE__ */ l.jsx("div", { className: k(
8698
+ /* @__PURE__ */ l.jsx("div", { className: S(
8699
8699
  "w-4 h-4 rounded border flex items-center justify-center transition-all duration-200",
8700
8700
  t.includes(b.value) ? "bg-primary border-primary" : "border-border bg-background"
8701
8701
  ), children: t.includes(b.value) && /* @__PURE__ */ l.jsx(br, { className: "h-3 w-3 text-primary-foreground stroke-[3px]" }) }),
8702
- /* @__PURE__ */ l.jsx("span", { className: k("text-sm font-medium", t.includes(b.value) ? "text-primary" : "text-foreground"), children: b.label })
8702
+ /* @__PURE__ */ l.jsx("span", { className: S("text-sm font-medium", t.includes(b.value) ? "text-primary" : "text-foreground"), children: b.label })
8703
8703
  ] })
8704
8704
  },
8705
8705
  b.value
@@ -8709,7 +8709,7 @@ function nv({
8709
8709
  ] }) })
8710
8710
  ] });
8711
8711
  }
8712
- function vx(e) {
8712
+ function gx(e) {
8713
8713
  return e.multiple === !0 ? /* @__PURE__ */ l.jsx(nv, { ...e }) : /* @__PURE__ */ l.jsx(rv, { ...e });
8714
8714
  }
8715
8715
  var ov = (e, t, r, n, o, a, s, i) => {
@@ -8741,7 +8741,7 @@ m.memo(({ forcedTheme: e, storageKey: t, attribute: r, enableSystem: n, enableCo
8741
8741
  let u = JSON.stringify([r, t, a, e, i, s, n, o]).slice(1, -1);
8742
8742
  return m.createElement("script", { ...d, suppressHydrationWarning: !0, nonce: typeof window > "u" ? c : "", dangerouslySetInnerHTML: { __html: `(${ov.toString()})(${u})` } });
8743
8743
  });
8744
- const gx = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightLabel: r = "Claro", darkLabel: n = "Escuro", systemLabel: o = "Sistema" }) => {
8744
+ const bx = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightLabel: r = "Claro", darkLabel: n = "Escuro", systemLabel: o = "Sistema" }) => {
8745
8745
  const { theme: a, setTheme: s } = iv(), [i, c] = fe(!1), d = Le(null);
8746
8746
  we(() => {
8747
8747
  const f = (h) => {
@@ -8758,7 +8758,7 @@ const gx = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightL
8758
8758
  "div",
8759
8759
  {
8760
8760
  ref: d,
8761
- className: k(
8761
+ className: S(
8762
8762
  "flex items-center gap-1 p-1 border border-input rounded-md bg-background/50 backdrop-blur-sm transition-all duration-300 ease-in-out overflow-hidden shadow-sm",
8763
8763
  i ? "w-[114px] bg-background" : "w-[42px] cursor-pointer hover:bg-accent/50"
8764
8764
  ),
@@ -8773,7 +8773,7 @@ const gx = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightL
8773
8773
  {
8774
8774
  variant: "ghost",
8775
8775
  size: "icon",
8776
- className: k(
8776
+ className: S(
8777
8777
  "h-8 w-8 rounded-md transition-all duration-300 shrink-0",
8778
8778
  h ? "bg-primary/10 text-primary hover:bg-primary/20" : "text-muted-foreground hover:text-foreground"
8779
8779
  ),
@@ -8789,7 +8789,54 @@ const gx = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightL
8789
8789
  })
8790
8790
  }
8791
8791
  );
8792
- }, lv = Array.from({ length: 24 }, (e, t) => t), cv = Array.from({ length: 60 }, (e, t) => t), Gn = (e) => {
8792
+ };
8793
+ function xx({
8794
+ items: e,
8795
+ activeRoute: t,
8796
+ onNavigate: r,
8797
+ rightContent: n,
8798
+ className: o
8799
+ }) {
8800
+ return /* @__PURE__ */ l.jsxs(
8801
+ "div",
8802
+ {
8803
+ className: S(
8804
+ "flex items-center border-b border-border",
8805
+ o
8806
+ ),
8807
+ children: [
8808
+ /* @__PURE__ */ l.jsx("div", { className: "flex-1 flex items-center gap-1 overflow-x-auto no-scrollbar", children: e.map((a) => {
8809
+ const s = a.icon, i = t === a.route;
8810
+ return /* @__PURE__ */ l.jsxs(
8811
+ "button",
8812
+ {
8813
+ type: "button",
8814
+ disabled: a.disabled,
8815
+ onClick: () => {
8816
+ a.disabled || r && r(a.route);
8817
+ },
8818
+ className: S(
8819
+ "group relative flex items-center gap-2 h-10 px-4 text-sm font-medium transition-colors",
8820
+ // border-b-2 reservado pra todos (evita layout shift); transparent quando inativo
8821
+ "border-b-2 border-transparent -mb-px",
8822
+ a.disabled && "opacity-40 cursor-not-allowed",
8823
+ !a.disabled && (i ? "text-primary border-primary" : "text-muted-foreground hover:text-foreground hover:bg-muted/50")
8824
+ ),
8825
+ children: [
8826
+ s && /* @__PURE__ */ l.jsx(s, { className: "w-4 h-4 shrink-0" }),
8827
+ /* @__PURE__ */ l.jsx("span", { children: a.label }),
8828
+ a.badge !== void 0 && /* @__PURE__ */ l.jsx("span", { className: "ml-1", children: a.badge })
8829
+ ]
8830
+ },
8831
+ a.route
8832
+ );
8833
+ }) }),
8834
+ n && /* @__PURE__ */ l.jsx("div", { className: "flex items-center gap-2 shrink-0 px-2", children: n })
8835
+ ]
8836
+ }
8837
+ );
8838
+ }
8839
+ const lv = Array.from({ length: 24 }, (e, t) => t), cv = Array.from({ length: 60 }, (e, t) => t), Gn = (e) => {
8793
8840
  if (!e)
8794
8841
  return [0, 0];
8795
8842
  const t = e.split(":");
@@ -8798,7 +8845,7 @@ const gx = ({ themeLabel: e = "Tema", themeIconLabel: t = "Alterar tema", lightL
8798
8845
  const [r, n] = t, o = Number(r), a = Number(n);
8799
8846
  return !Number.isFinite(o) || !Number.isFinite(a) || o < 0 || o > 23 || a < 0 || a > 59 ? [0, 0] : [o, a];
8800
8847
  };
8801
- function bx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteLabel: o = "Minuto", size: a = "default", error: s, minTime: i, maxTime: c }) {
8848
+ function yx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteLabel: o = "Minuto", size: a = "default", error: s, minTime: i, maxTime: c }) {
8802
8849
  const [d, u] = m.useState(!1), [f, h] = Gn(e), [p, g] = Gn(i), [v, b] = c ? Gn(c) : [23, 59], x = lv.map((C) => ({
8803
8850
  value: C,
8804
8851
  disabled: C < p || C > v
@@ -8806,9 +8853,9 @@ function bx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
8806
8853
  let j = !1;
8807
8854
  return f === p && C < g && (j = !0), f === v && C > b && (j = !0), { value: C, disabled: j };
8808
8855
  }), N = (C, j) => {
8809
- let _ = f, S = h;
8810
- C === "hour" && (_ = j, _ === p && S < g && (S = g), _ === v && S > b && (S = b)), C === "minute" && (S = j);
8811
- const F = _.toString().padStart(2, "0"), A = S.toString().padStart(2, "0");
8856
+ let _ = f, k = h;
8857
+ C === "hour" && (_ = j, _ === p && k < g && (k = g), _ === v && k > b && (k = b)), C === "minute" && (k = j);
8858
+ const F = _.toString().padStart(2, "0"), A = k.toString().padStart(2, "0");
8812
8859
  t(`${F}:${A}`);
8813
8860
  };
8814
8861
  return /* @__PURE__ */ l.jsxs(Jt, { open: d, onOpenChange: u, children: [
@@ -8818,7 +8865,7 @@ function bx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
8818
8865
  {
8819
8866
  variant: "outline",
8820
8867
  size: a,
8821
- className: k(
8868
+ className: S(
8822
8869
  "w-full min-w-[120px] justify-start pl-3 text-left font-normal",
8823
8870
  !e && "text-muted-foreground",
8824
8871
  s && "border-destructive focus:ring-destructive"
@@ -8841,7 +8888,7 @@ function bx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
8841
8888
  variant: "ghost",
8842
8889
  size: "sm",
8843
8890
  disabled: j,
8844
- className: k(
8891
+ className: S(
8845
8892
  "w-full justify-center text-sm font-normal",
8846
8893
  f === C ? "bg-primary text-primary-foreground hover:bg-primary/90" : "text-muted-foreground hover:text-foreground"
8847
8894
  ),
@@ -8859,7 +8906,7 @@ function bx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
8859
8906
  variant: "ghost",
8860
8907
  size: "sm",
8861
8908
  disabled: j,
8862
- className: k(
8909
+ className: S(
8863
8910
  "w-full justify-center text-sm font-normal",
8864
8911
  h === C ? "bg-primary text-primary-foreground hover:bg-primary/90" : "text-muted-foreground hover:text-foreground"
8865
8912
  ),
@@ -8872,7 +8919,7 @@ function bx({ value: e, onChange: t, disabled: r, hourLabel: n = "Hora", minuteL
8872
8919
  ] }) })
8873
8920
  ] });
8874
8921
  }
8875
- function xx({
8922
+ function wx({
8876
8923
  text: e,
8877
8924
  className: t,
8878
8925
  iconSize: r = 4,
@@ -8886,14 +8933,14 @@ function xx({
8886
8933
  {
8887
8934
  size: "sm",
8888
8935
  variant: n,
8889
- className: k("p-0 text-muted-foreground hover:text-foreground", t),
8936
+ className: S("p-0 text-muted-foreground hover:text-foreground", t),
8890
8937
  onClick: o,
8891
8938
  title: "Copy to clipboard",
8892
- children: /* @__PURE__ */ l.jsx(bu, { className: k(`w-${r} h-${r}`) })
8939
+ children: /* @__PURE__ */ l.jsx(bu, { className: S(`w-${r} h-${r}`) })
8893
8940
  }
8894
8941
  );
8895
8942
  }
8896
- function yx({
8943
+ function Nx({
8897
8944
  label: e,
8898
8945
  amount: t,
8899
8946
  amountColorClass: r = "text-foreground",
@@ -8907,7 +8954,7 @@ function yx({
8907
8954
  return /* @__PURE__ */ l.jsxs("div", { className: "bg-card border border-border p-4 rounded-lg flex items-center justify-between", children: [
8908
8955
  /* @__PURE__ */ l.jsxs("div", { children: [
8909
8956
  /* @__PURE__ */ l.jsx("div", { className: "text-xs text-muted-foreground font-bold uppercase", children: e }),
8910
- /* @__PURE__ */ l.jsx("div", { className: k("text-xl font-bold font-mono", r), children: c ? t : "••••••" })
8957
+ /* @__PURE__ */ l.jsx("div", { className: S("text-xl font-bold font-mono", r), children: c ? t : "••••••" })
8911
8958
  ] }),
8912
8959
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col items-end gap-1", children: [
8913
8960
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1", children: [
@@ -8947,7 +8994,7 @@ function yx({
8947
8994
  ] })
8948
8995
  ] });
8949
8996
  }
8950
- const wx = ({
8997
+ const Cx = ({
8951
8998
  id: e = "",
8952
8999
  label: t,
8953
9000
  icon: r = Eu,
@@ -8964,7 +9011,7 @@ const wx = ({
8964
9011
  return /* @__PURE__ */ l.jsxs(
8965
9012
  "div",
8966
9013
  {
8967
- className: k(
9014
+ className: S(
8968
9015
  "group relative bg-card border border-border rounded-xl transition-all overflow-hidden",
8969
9016
  p ? d ? "border-primary/50 ring-1 ring-primary/20" : "hover:border-primary/50 hover:bg-muted" : "hover:border-primary/50 hover:bg-muted cursor-pointer p-4 flex flex-col justify-between min-h-[100px]",
8970
9017
  o && "opacity-50 pointer-events-none",
@@ -8975,7 +9022,7 @@ const wx = ({
8975
9022
  /* @__PURE__ */ l.jsxs(
8976
9023
  "div",
8977
9024
  {
8978
- className: k(
9025
+ className: S(
8979
9026
  "flex flex-col gap-2 relative",
8980
9027
  p ? "w-full p-4 cursor-pointer min-h-[100px]" : "h-full"
8981
9028
  ),
@@ -8985,7 +9032,7 @@ const wx = ({
8985
9032
  /* @__PURE__ */ l.jsx(
8986
9033
  "div",
8987
9034
  {
8988
- className: k(
9035
+ className: S(
8989
9036
  "p-2 rounded-lg border border-border transition-colors",
8990
9037
  p ? d ? "bg-muted border-primary/50 text-foreground" : "bg-muted/50 text-muted-foreground group-hover:border-primary/30 group-hover:text-primary" : "bg-muted text-muted-foreground group-hover:text-primary group-hover:border-primary/20"
8991
9038
  ),
@@ -9005,7 +9052,7 @@ const wx = ({
9005
9052
  children: /* @__PURE__ */ l.jsx(
9006
9053
  ku,
9007
9054
  {
9008
- className: k(
9055
+ className: S(
9009
9056
  "h-4 w-4",
9010
9057
  n && "fill-yellow-400 text-yellow-400"
9011
9058
  )
@@ -9016,7 +9063,7 @@ const wx = ({
9016
9063
  p && /* @__PURE__ */ l.jsx("div", { className: "text-muted-foreground", children: d ? /* @__PURE__ */ l.jsx(li, { className: "h-5 w-5" }) : /* @__PURE__ */ l.jsx(cr, { className: "h-5 w-5" }) })
9017
9064
  ] })
9018
9065
  ] }),
9019
- /* @__PURE__ */ l.jsx("span", { className: k(
9066
+ /* @__PURE__ */ l.jsx("span", { className: S(
9020
9067
  "font-bold transition-colors",
9021
9068
  p ? "text-card-foreground mt-auto" : "text-foreground/90 group-hover:text-foreground mt-auto"
9022
9069
  ), children: t }),
@@ -9028,7 +9075,7 @@ const wx = ({
9028
9075
  p && d && /* @__PURE__ */ l.jsx("div", { className: "p-4 space-y-4 bg-muted/30", children: c.map((v, b) => {
9029
9076
  if (v.option === "text")
9030
9077
  return /* @__PURE__ */ l.jsxs("div", { className: "space-y-1.5", children: [
9031
- /* @__PURE__ */ l.jsx("label", { className: k("text-xs font-medium text-muted-foreground ml-1", v.disabled && "opacity-40"), children: v.label }),
9078
+ /* @__PURE__ */ l.jsx("label", { className: S("text-xs font-medium text-muted-foreground ml-1", v.disabled && "opacity-40"), children: v.label }),
9032
9079
  /* @__PURE__ */ l.jsx(
9033
9080
  Oo,
9034
9081
  {
@@ -9045,7 +9092,7 @@ const wx = ({
9045
9092
  if (v.option === "dropdown") {
9046
9093
  const x = v.id;
9047
9094
  return /* @__PURE__ */ l.jsxs("div", { className: "space-y-1.5", children: [
9048
- /* @__PURE__ */ l.jsx("label", { className: k("text-xs font-medium text-muted-foreground ml-1", v.disabled && "opacity-40"), children: v.label }),
9095
+ /* @__PURE__ */ l.jsx("label", { className: S("text-xs font-medium text-muted-foreground ml-1", v.disabled && "opacity-40"), children: v.label }),
9049
9096
  /* @__PURE__ */ l.jsxs(
9050
9097
  Jt,
9051
9098
  {
@@ -9088,7 +9135,7 @@ const wx = ({
9088
9135
  /* @__PURE__ */ l.jsx(
9089
9136
  br,
9090
9137
  {
9091
- className: k(
9138
+ className: S(
9092
9139
  "mr-2 h-4 w-4 text-green-500",
9093
9140
  v.selectedValue === y.value ? "opacity-100" : "opacity-0"
9094
9141
  )
@@ -9124,7 +9171,7 @@ const wx = ({
9124
9171
  ]
9125
9172
  }
9126
9173
  );
9127
- }, Nx = ({
9174
+ }, jx = ({
9128
9175
  title: e,
9129
9176
  icon: t,
9130
9177
  variant: r = "default",
@@ -9147,13 +9194,13 @@ const wx = ({
9147
9194
  ia,
9148
9195
  {
9149
9196
  onClose: n,
9150
- className: k("w-full", c),
9197
+ className: S("w-full", c),
9151
9198
  hideBlur: d,
9152
9199
  hideOverlay: u,
9153
9200
  children: [
9154
9201
  /* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-6", children: [
9155
9202
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
9156
- /* @__PURE__ */ l.jsx("div", { className: k("p-2 rounded-lg", h[r]), children: /* @__PURE__ */ l.jsx(t, { className: "w-5 h-5" }) }),
9203
+ /* @__PURE__ */ l.jsx("div", { className: S("p-2 rounded-lg", h[r]), children: /* @__PURE__ */ l.jsx(t, { className: "w-5 h-5" }) }),
9157
9204
  /* @__PURE__ */ l.jsx("p", { className: "font-bold text-lg text-foreground", children: e })
9158
9205
  ] }),
9159
9206
  /* @__PURE__ */ l.jsx(
@@ -9171,7 +9218,7 @@ const wx = ({
9171
9218
  o && /* @__PURE__ */ l.jsx(
9172
9219
  te,
9173
9220
  {
9174
- className: k(
9221
+ className: S(
9175
9222
  "flex-1",
9176
9223
  r === "destructive" && "bg-destructive hover:bg-destructive/90 text-destructive-foreground"
9177
9224
  ),
@@ -9186,7 +9233,7 @@ const wx = ({
9186
9233
  }
9187
9234
  );
9188
9235
  };
9189
- function Cx({
9236
+ function Sx({
9190
9237
  icon: e,
9191
9238
  label: t,
9192
9239
  onClick: r,
@@ -9199,7 +9246,7 @@ function Cx({
9199
9246
  {
9200
9247
  type: "button",
9201
9248
  variant: "secondary",
9202
- className: k(
9249
+ className: S(
9203
9250
  "h-12 flex items-center justify-start gap-3 px-4 bg-card hover:bg-muted border border-border text-foreground hover:text-foreground transition-all min-w-0 w-full",
9204
9251
  n === "destructive" && "text-red-400 hover:text-red-300 hover:bg-red-900/20 hover:border-red-900/50",
9205
9252
  n === "warning" && "text-yellow-400 hover:text-yellow-300 hover:bg-yellow-900/20 hover:border-yellow-900/50",
@@ -9215,7 +9262,7 @@ function Cx({
9215
9262
  }
9216
9263
  );
9217
9264
  }
9218
- function jx({
9265
+ function kx({
9219
9266
  value: e,
9220
9267
  onChange: t,
9221
9268
  placeholder: r,
@@ -9224,8 +9271,8 @@ function jx({
9224
9271
  size: a = "default",
9225
9272
  error: s
9226
9273
  }) {
9227
- return /* @__PURE__ */ l.jsxs("div", { className: k("relative", o, n), children: [
9228
- /* @__PURE__ */ l.jsx(Ro, { className: k("absolute left-3 top-2.5 w-4 h-4 text-muted-foreground pointer-events-none z-10", a === "sm" && "top-2") }),
9274
+ return /* @__PURE__ */ l.jsxs("div", { className: S("relative", o, n), children: [
9275
+ /* @__PURE__ */ l.jsx(Ro, { className: S("absolute left-3 top-2.5 w-4 h-4 text-muted-foreground pointer-events-none z-10", a === "sm" && "top-2") }),
9229
9276
  /* @__PURE__ */ l.jsx(
9230
9277
  Oo,
9231
9278
  {
@@ -9234,13 +9281,13 @@ function jx({
9234
9281
  onChange: (i) => t(i.target.value),
9235
9282
  size: a,
9236
9283
  error: s,
9237
- className: k("pl-9 bg-card border-border focus:border-primary/50 w-full transition-colors", a === "default" && "h-10")
9284
+ className: S("pl-9 bg-card border-border focus:border-primary/50 w-full transition-colors", a === "default" && "h-10")
9238
9285
  }
9239
9286
  )
9240
9287
  ] });
9241
9288
  }
9242
- function Sx({ icon: e, title: t, className: r }) {
9243
- return /* @__PURE__ */ l.jsxs("h3", { className: k("text-muted-foreground text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2", r), children: [
9289
+ function _x({ icon: e, title: t, className: r }) {
9290
+ return /* @__PURE__ */ l.jsxs("h3", { className: S("text-muted-foreground text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2", r), children: [
9244
9291
  /* @__PURE__ */ l.jsx(e, { className: "w-3.5 h-3.5" }),
9245
9292
  " ",
9246
9293
  t
@@ -11678,7 +11725,7 @@ function o0(e, t) {
11678
11725
  }, _ = function(R) {
11679
11726
  var M;
11680
11727
  (M = r.onDayMouseEnter) === null || M === void 0 || M.call(r, e, t, R);
11681
- }, S = function(R) {
11728
+ }, k = function(R) {
11682
11729
  var M;
11683
11730
  (M = r.onDayMouseLeave) === null || M === void 0 || M.call(r, e, t, R);
11684
11731
  }, F = function(R) {
@@ -11738,7 +11785,7 @@ function o0(e, t) {
11738
11785
  onKeyDown: T,
11739
11786
  onKeyUp: L,
11740
11787
  onMouseEnter: _,
11741
- onMouseLeave: S,
11788
+ onMouseLeave: k,
11742
11789
  onPointerEnter: F,
11743
11790
  onPointerLeave: A,
11744
11791
  onTouchCancel: I,
@@ -11948,7 +11995,7 @@ function Oc({
11948
11995
  variant: "ghost",
11949
11996
  size: "sm",
11950
11997
  disabled: y,
11951
- className: k(
11998
+ className: S(
11952
11999
  "h-9 font-normal justify-center",
11953
12000
  x && "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground"
11954
12001
  ),
@@ -11971,7 +12018,7 @@ function Oc({
11971
12018
  variant: "ghost",
11972
12019
  size: "sm",
11973
12020
  disabled: y,
11974
- className: k(
12021
+ className: S(
11975
12022
  "h-9 font-normal justify-center",
11976
12023
  x && "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground"
11977
12024
  ),
@@ -11997,7 +12044,7 @@ function Oc({
11997
12044
  }
11998
12045
  )
11999
12046
  };
12000
- return o === "months" ? /* @__PURE__ */ l.jsxs("div", { className: k("p-3", e), children: [
12047
+ return o === "months" ? /* @__PURE__ */ l.jsxs("div", { className: S("p-3", e), children: [
12001
12048
  /* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-4 px-1", children: [
12002
12049
  /* @__PURE__ */ l.jsx(f.CaptionLabel, {}),
12003
12050
  /* @__PURE__ */ l.jsxs("div", { className: "flex gap-1", children: [
@@ -12024,7 +12071,7 @@ function Oc({
12024
12071
  ] })
12025
12072
  ] }),
12026
12073
  d()
12027
- ] }) : o === "years" ? /* @__PURE__ */ l.jsxs("div", { className: k("p-3", e), children: [
12074
+ ] }) : o === "years" ? /* @__PURE__ */ l.jsxs("div", { className: S("p-3", e), children: [
12028
12075
  /* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center mb-4 px-1", children: [
12029
12076
  /* @__PURE__ */ l.jsx(f.CaptionLabel, {}),
12030
12077
  /* @__PURE__ */ l.jsxs("div", { className: "flex gap-1", children: [
@@ -12053,7 +12100,7 @@ function Oc({
12053
12100
  C0,
12054
12101
  {
12055
12102
  showOutsideDays: r,
12056
- className: k("p-3", e),
12103
+ className: S("p-3", e),
12057
12104
  month: s,
12058
12105
  onMonthChange: c,
12059
12106
  classNames: {
@@ -12063,7 +12110,7 @@ function Oc({
12063
12110
  caption_label: "hidden",
12064
12111
  // Use custom caption component
12065
12112
  nav: "space-x-1 flex items-center",
12066
- nav_button: k(
12113
+ nav_button: S(
12067
12114
  lo({ variant: "outline" }),
12068
12115
  "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
12069
12116
  ),
@@ -12074,7 +12121,7 @@ function Oc({
12074
12121
  head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
12075
12122
  row: "flex w-full mt-2",
12076
12123
  cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
12077
- day: k(
12124
+ day: S(
12078
12125
  lo({ variant: "ghost" }),
12079
12126
  "h-9 w-9 p-0 font-normal aria-selected:opacity-100"
12080
12127
  ),
@@ -12098,7 +12145,7 @@ function Oc({
12098
12145
  );
12099
12146
  }
12100
12147
  Oc.displayName = "MriCalendar";
12101
- function kx({ value: e, onChange: t, placeholder: r = "Selecione", disabled: n, locale: o = wc, size: a = "default", error: s, fromDate: i, toDate: c }) {
12148
+ function Mx({ value: e, onChange: t, placeholder: r = "Selecione", disabled: n, locale: o = wc, size: a = "default", error: s, fromDate: i, toDate: c }) {
12102
12149
  return /* @__PURE__ */ l.jsxs(Jt, { children: [
12103
12150
  /* @__PURE__ */ l.jsx(er, { asChild: !0, children: /* @__PURE__ */ l.jsxs("div", { className: "w-full space-y-1", children: [
12104
12151
  /* @__PURE__ */ l.jsxs(
@@ -12106,7 +12153,7 @@ function kx({ value: e, onChange: t, placeholder: r = "Selecione", disabled: n,
12106
12153
  {
12107
12154
  variant: "outline",
12108
12155
  size: a,
12109
- className: k(
12156
+ className: S(
12110
12157
  "w-full justify-start pl-3 text-left font-normal",
12111
12158
  !e && "text-muted-foreground",
12112
12159
  s && "border-destructive focus:ring-destructive"
@@ -12452,7 +12499,7 @@ function G0(e, t) {
12452
12499
  }, "name"]);
12453
12500
  }
12454
12501
  q0([G0]);
12455
- const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12502
+ const Ex = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12456
12503
  const o = (g) => /^\d+(\.\d+)?\s+\d+(\.\d+)?%\s+\d+(\.\d+)?%$/.test(g) ? be(`hsl(${g})`).toHex() : be(g).toHex(), [a, s] = fe(o(e)), [i, c] = fe("hex"), d = be(a), [u, f] = fe({
12457
12504
  hex: a,
12458
12505
  rgb: d.toRgb(),
@@ -12502,7 +12549,7 @@ const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12502
12549
  /* @__PURE__ */ l.jsx(Fl, { asChild: !0, children: /* @__PURE__ */ l.jsx(
12503
12550
  "button",
12504
12551
  {
12505
- className: k(
12552
+ className: S(
12506
12553
  "w-10 h-10 rounded-full flex items-center justify-center transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-background focus:ring-ring relative overflow-hidden",
12507
12554
  r ? "ring-2 ring-offset-2 ring-offset-background ring-ring" : "border border-dashed border-muted-foreground/50 hover:border-solid hover:border-primary"
12508
12555
  ),
@@ -12524,7 +12571,7 @@ const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12524
12571
  "button",
12525
12572
  {
12526
12573
  onClick: () => c(g),
12527
- className: k(
12574
+ className: S(
12528
12575
  "flex-1 text-[10px] font-bold uppercase py-1 rounded-md transition-all",
12529
12576
  i === g ? "bg-background text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
12530
12577
  ),
@@ -12575,7 +12622,7 @@ const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12575
12622
  ], Ws = ({ val: e, color: t, hex: r, icon: n, label: o, onClick: a, onIconClick: s, disabled: i }) => /* @__PURE__ */ l.jsxs(
12576
12623
  "div",
12577
12624
  {
12578
- className: k(
12625
+ className: S(
12579
12626
  "flex items-center gap-3 w-full transition-all duration-300",
12580
12627
  a && !i ? "cursor-pointer hover:bg-white/[0.03] p-1.5 -m-1.5 rounded-lg group/vbar active:scale-[0.98]" : "",
12581
12628
  i && "opacity-40 grayscale pointer-events-none"
@@ -12586,7 +12633,7 @@ const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12586
12633
  /* @__PURE__ */ l.jsxs(
12587
12634
  "div",
12588
12635
  {
12589
- className: k("relative", s && !i && "cursor-pointer hover:scale-110 transition-transform"),
12636
+ className: S("relative", s && !i && "cursor-pointer hover:scale-110 transition-transform"),
12590
12637
  onClick: (c) => {
12591
12638
  s && !i && (c.stopPropagation(), s());
12592
12639
  },
@@ -12600,14 +12647,14 @@ const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12600
12647
  /* @__PURE__ */ l.jsx(
12601
12648
  "div",
12602
12649
  {
12603
- className: k("h-full transition-all duration-1000 ease-out relative z-10", t),
12650
+ className: S("h-full transition-all duration-1000 ease-out relative z-10", t),
12604
12651
  style: { width: `${e}%` }
12605
12652
  }
12606
12653
  ),
12607
12654
  /* @__PURE__ */ l.jsx(
12608
12655
  "div",
12609
12656
  {
12610
- className: k("absolute inset-0 opacity-20 blur-[2px] z-0", t),
12657
+ className: S("absolute inset-0 opacity-20 blur-[2px] z-0", t),
12611
12658
  style: { width: `${e}%` }
12612
12659
  }
12613
12660
  )
@@ -12622,7 +12669,7 @@ const _x = ({ color: e, onChange: t, active: r, format: n = "hsl-string" }) => {
12622
12669
  /* @__PURE__ */ l.jsx(Su, { className: "w-6 h-6 text-red-500/80" }),
12623
12670
  /* @__PURE__ */ l.jsx("span", { className: "text-[10px] font-black uppercase tracking-widest text-red-500/80", children: e })
12624
12671
  ] });
12625
- function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, className: o, labels: a, disabledVitals: s = [] }) {
12672
+ function Px({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, className: o, labels: a, disabledVitals: s = [] }) {
12626
12673
  var f;
12627
12674
  const i = ((f = e == null ? void 0 : e.metadata) == null ? void 0 : f.isdead) ?? !1, c = (a == null ? void 0 : a.dead) ?? "Dead", d = (h) => {
12628
12675
  var g;
@@ -12630,7 +12677,7 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12630
12677
  const p = e[h] !== void 0 ? e[h] : (g = e.metadata) == null ? void 0 : g[h];
12631
12678
  return h === "health" ? Math.max(0, Math.min(100, Math.round((p || 0) - 100))) : Math.max(0, Math.min(100, Math.round(p || 0)));
12632
12679
  }, u = (h) => (a == null ? void 0 : a[h]) || h.charAt(0).toUpperCase() + h.slice(1);
12633
- return t === "mini" ? /* @__PURE__ */ l.jsxs("div", { className: k("relative space-y-3", o), children: [
12680
+ return t === "mini" ? /* @__PURE__ */ l.jsxs("div", { className: S("relative space-y-3", o), children: [
12634
12681
  i && /* @__PURE__ */ l.jsx(oo, { label: c }),
12635
12682
  no.filter((h) => h.key !== "stress").map((h) => {
12636
12683
  const p = d(h.key), g = u(h.key);
@@ -12649,14 +12696,14 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12649
12696
  h.key
12650
12697
  );
12651
12698
  })
12652
- ] }) : t === "full" ? /* @__PURE__ */ l.jsxs("div", { className: k("relative grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", o), children: [
12699
+ ] }) : t === "full" ? /* @__PURE__ */ l.jsxs("div", { className: S("relative grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4", o), children: [
12653
12700
  i && /* @__PURE__ */ l.jsx(oo, { label: c }),
12654
12701
  no.map((h) => {
12655
12702
  const p = d(h.key), g = u(h.key), v = p < 20 && h.key !== "stress", b = p > 80 && h.key === "stress", x = s.includes(h.key);
12656
12703
  return /* @__PURE__ */ l.jsxs(
12657
12704
  "div",
12658
12705
  {
12659
- className: k(
12706
+ className: S(
12660
12707
  "group/vital relative space-y-3 p-4 rounded-xl bg-card border border-border/50 transition-all cursor-pointer select-none overflow-hidden",
12661
12708
  "hover:border-primary/20 hover:bg-muted/50 hover:shadow-xl hover:shadow-black/20 active:scale-[0.98]",
12662
12709
  (v || b) && "animate-pulse border-red-500/20 bg-red-500/[0.02]",
@@ -12667,7 +12714,7 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12667
12714
  /* @__PURE__ */ l.jsx(
12668
12715
  "div",
12669
12716
  {
12670
- className: k("absolute -right-4 -top-4 w-16 h-16 opacity-0 group-hover/vital:opacity-10 blur-2xl rounded-full transition-opacity duration-500", h.color)
12717
+ className: S("absolute -right-4 -top-4 w-16 h-16 opacity-0 group-hover/vital:opacity-10 blur-2xl rounded-full transition-opacity duration-500", h.color)
12671
12718
  }
12672
12719
  ),
12673
12720
  /* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-center text-[10px] font-black uppercase tracking-widest text-muted-foreground/60 group-hover/vital:text-foreground transition-colors", children: [
@@ -12675,7 +12722,7 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12675
12722
  /* @__PURE__ */ l.jsx(
12676
12723
  "div",
12677
12724
  {
12678
- className: k("p-1 -m-1 rounded-md transition-all", n && !x && "hover:bg-white/10 cursor-pointer active:scale-90"),
12725
+ className: S("p-1 -m-1 rounded-md transition-all", n && !x && "hover:bg-white/10 cursor-pointer active:scale-90"),
12679
12726
  onClick: (y) => {
12680
12727
  n && !x && (y.stopPropagation(), n(h.key, g, p));
12681
12728
  },
@@ -12693,7 +12740,7 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12693
12740
  /* @__PURE__ */ l.jsx(
12694
12741
  "div",
12695
12742
  {
12696
- className: k("h-full transition-all duration-1000 ease-out relative z-10", h.color),
12743
+ className: S("h-full transition-all duration-1000 ease-out relative z-10", h.color),
12697
12744
  style: { width: `${p}%` },
12698
12745
  children: /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-transparent via-white/10 to-transparent animate-shimmer" })
12699
12746
  }
@@ -12701,7 +12748,7 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12701
12748
  /* @__PURE__ */ l.jsx(
12702
12749
  "div",
12703
12750
  {
12704
- className: k("absolute inset-0 opacity-20 blur-[2px] z-0", h.color),
12751
+ className: S("absolute inset-0 opacity-20 blur-[2px] z-0", h.color),
12705
12752
  style: { width: `${p}%` }
12706
12753
  }
12707
12754
  )
@@ -12711,7 +12758,7 @@ function Mx({ vitals: e, size: t = "compact", onAction: r, onIconClick: n, class
12711
12758
  h.key
12712
12759
  );
12713
12760
  })
12714
- ] }) : /* @__PURE__ */ l.jsxs("div", { className: k("relative flex flex-col gap-4", o), children: [
12761
+ ] }) : /* @__PURE__ */ l.jsxs("div", { className: S("relative flex flex-col gap-4", o), children: [
12715
12762
  i && /* @__PURE__ */ l.jsx(oo, { label: c }),
12716
12763
  no.map((h) => {
12717
12764
  const p = d(h.key), g = u(h.key);
@@ -12739,7 +12786,7 @@ const X0 = {
12739
12786
  thirst: { icon: ci, color: "text-cyan-500", bgColor: "bg-cyan-500", hex: "#06b6d4", label: "thirst", max: 100 },
12740
12787
  stress: { icon: ii, color: "text-purple-500", bgColor: "bg-purple-500", hex: "#a855f7", label: "stress", max: 100 }
12741
12788
  };
12742
- function Ex({
12789
+ function Rx({
12743
12790
  isOpen: e,
12744
12791
  onClose: t,
12745
12792
  onSubmit: r,
@@ -12762,12 +12809,12 @@ function Ex({
12762
12809
  if (we(() => {
12763
12810
  y(o);
12764
12811
  }, [o]), !e) return null;
12765
- const N = X0[n], C = i || N.icon, j = (B, O) => (s == null ? void 0 : s[B]) || O, _ = d || j(N.label, N.label.charAt(0).toUpperCase() + N.label.slice(1)), S = u || j("playerNameLabel", a), F = f || j("confirm", "Confirm"), A = h || j("cancel", "Cancel"), I = p || j("newValue", "New Value");
12812
+ const N = X0[n], C = i || N.icon, j = (B, O) => (s == null ? void 0 : s[B]) || O, _ = d || j(N.label, N.label.charAt(0).toUpperCase() + N.label.slice(1)), k = u || j("playerNameLabel", a), F = f || j("confirm", "Confirm"), A = h || j("cancel", "Cancel"), I = p || j("newValue", "New Value");
12766
12813
  return /* @__PURE__ */ l.jsxs(ia, { hideBlur: g, hideOverlay: v, onClose: t, className: "w-[420px] p-0 bg-card/95 border-primary/10 backdrop-blur-xl shadow-2xl overflow-hidden animate-in zoom-in-95 duration-200", children: [
12767
12814
  /* @__PURE__ */ l.jsxs("div", { className: "p-6 pb-4 border-b border-border/40 relative overflow-hidden", children: [
12768
12815
  /* @__PURE__ */ l.jsx("div", { className: `absolute top-0 right-0 w-32 h-32 ${N.bgColor}/5 blur-3xl rounded-full -mr-16 -mt-16` }),
12769
12816
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-4 relative z-10", children: [
12770
- /* @__PURE__ */ l.jsx("div", { className: k(
12817
+ /* @__PURE__ */ l.jsx("div", { className: S(
12771
12818
  "p-3 rounded-xl shadow-[0_0_15px_rgba(0,0,0,0.2)] border border-primary/20",
12772
12819
  N.bgColor + "/10",
12773
12820
  N.color,
@@ -12775,7 +12822,7 @@ function Ex({
12775
12822
  ), children: /* @__PURE__ */ l.jsx(C, { size: 24, className: "animate-pulse" }) }),
12776
12823
  /* @__PURE__ */ l.jsxs("div", { children: [
12777
12824
  /* @__PURE__ */ l.jsx("h2", { className: "text-xl font-black text-foreground tracking-tight uppercase", children: _ }),
12778
- /* @__PURE__ */ l.jsx("p", { className: "text-xs text-muted-foreground/70 font-medium", children: S })
12825
+ /* @__PURE__ */ l.jsx("p", { className: "text-xs text-muted-foreground/70 font-medium", children: k })
12779
12826
  ] })
12780
12827
  ] })
12781
12828
  ] }),
@@ -12783,7 +12830,7 @@ function Ex({
12783
12830
  /* @__PURE__ */ l.jsxs("div", { className: "flex justify-between items-end", children: [
12784
12831
  /* @__PURE__ */ l.jsx("span", { className: "text-xs font-bold text-muted-foreground uppercase tracking-widest", children: I }),
12785
12832
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-baseline gap-1", children: [
12786
- /* @__PURE__ */ l.jsx("span", { className: k("text-4xl font-black font-mono leading-none drop-shadow-sm", N.color), children: Math.round(x) }),
12833
+ /* @__PURE__ */ l.jsx("span", { className: S("text-4xl font-black font-mono leading-none drop-shadow-sm", N.color), children: Math.round(x) }),
12787
12834
  /* @__PURE__ */ l.jsx("span", { className: "text-lg font-bold text-muted-foreground", children: "%" })
12788
12835
  ] })
12789
12836
  ] }),
@@ -12798,7 +12845,7 @@ function Ex({
12798
12845
  value: x,
12799
12846
  onChange: b ? void 0 : (B) => y(Number(B.target.value)),
12800
12847
  disabled: b,
12801
- className: k("vital-adjust-slider", b && "opacity-40 grayscale cursor-not-allowed"),
12848
+ className: S("vital-adjust-slider", b && "opacity-40 grayscale cursor-not-allowed"),
12802
12849
  style: {
12803
12850
  background: `linear-gradient(to right, ${N.hex} ${x}%, ${c ? "var(--vital-color-20)" : "var(--muted)"} ${x}%)`,
12804
12851
  "--vital-color": N.hex,
@@ -12835,7 +12882,7 @@ function Ex({
12835
12882
  {
12836
12883
  variant: "default",
12837
12884
  disabled: b,
12838
- className: k(
12885
+ className: S(
12839
12886
  "flex-1 h-12 gap-2 text-white uppercase text-xs transition-all active:scale-95",
12840
12887
  N.bgColor,
12841
12888
  "hover:brightness-110 shadow-lg",
@@ -12888,8 +12935,8 @@ function Ex({
12888
12935
  ` })
12889
12936
  ] });
12890
12937
  }
12891
- function Px({ title: e, icon: t, count: r, countLabel: n, children: o, className: a, ...s }) {
12892
- return /* @__PURE__ */ l.jsxs("div", { className: k("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0", a), ...s, children: [
12938
+ function Ox({ title: e, icon: t, count: r, countLabel: n, children: o, className: a, ...s }) {
12939
+ return /* @__PURE__ */ l.jsxs("div", { className: S("w-full h-auto min-h-[5rem] border-b border-border flex items-center justify-between py-4 px-6 bg-card/30 shrink-0", a), ...s, children: [
12893
12940
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-4", children: [
12894
12941
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-3", children: [
12895
12942
  /* @__PURE__ */ l.jsx(t, { className: "w-6 h-6 text-primary" }),
@@ -12904,7 +12951,7 @@ function Px({ title: e, icon: t, count: r, countLabel: n, children: o, className
12904
12951
  /* @__PURE__ */ l.jsx("div", { className: "flex items-center gap-3", children: o })
12905
12952
  ] });
12906
12953
  }
12907
- function Rx({
12954
+ function Dx({
12908
12955
  items: e,
12909
12956
  activeRoute: t,
12910
12957
  onNavigate: r,
@@ -12922,7 +12969,7 @@ function Rx({
12922
12969
  te,
12923
12970
  {
12924
12971
  variant: "ghost",
12925
- className: k(
12972
+ className: S(
12926
12973
  "w-full justify-start gap-3 relative transition-all duration-200 border",
12927
12974
  n && "justify-center px-0",
12928
12975
  f ? "bg-primary/10 text-primary border-primary/50 shadow-[inset_3px_0_0_0_var(--primary)]" : "border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",
@@ -12933,14 +12980,14 @@ function Rx({
12933
12980
  },
12934
12981
  title: n ? d.label : void 0,
12935
12982
  children: [
12936
- /* @__PURE__ */ l.jsx(u, { className: k("h-5 w-5 shrink-0", f ? "text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]" : "") }),
12937
- !n && /* @__PURE__ */ l.jsx("span", { className: k("truncate font-medium", f ? "text-foreground" : "text-muted-foreground"), children: d.label }),
12983
+ /* @__PURE__ */ l.jsx(u, { className: S("h-5 w-5 shrink-0", f ? "text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]" : "") }),
12984
+ !n && /* @__PURE__ */ l.jsx("span", { className: S("truncate font-medium", f ? "text-foreground" : "text-muted-foreground"), children: d.label }),
12938
12985
  n && f && /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 bg-primary/10 rounded-md z-[-1]" })
12939
12986
  ]
12940
12987
  }
12941
12988
  );
12942
12989
  };
12943
- return /* @__PURE__ */ l.jsxs("div", { className: k("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card", n ? "w-16 px-2" : "w-60 px-3", i), children: [
12990
+ return /* @__PURE__ */ l.jsxs("div", { className: S("h-full flex flex-col items-center py-4 border-r border-border transition-all duration-300 bg-card", n ? "w-16 px-2" : "w-60 px-3", i), children: [
12944
12991
  /* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex flex-col gap-1 w-full overflow-y-auto pr-1 no-scrollbar", children: [
12945
12992
  e.map((d, u) => /* @__PURE__ */ l.jsx(c, { item: d }, u)),
12946
12993
  s
@@ -12951,7 +12998,7 @@ function Rx({
12951
12998
  "button",
12952
12999
  {
12953
13000
  onClick: o,
12954
- className: k(
13001
+ className: S(
12955
13002
  "flex items-center justify-center p-2 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground w-full mt-2"
12956
13003
  ),
12957
13004
  children: n ? /* @__PURE__ */ l.jsx(cr, { className: "h-5 w-5" }) : /* @__PURE__ */ l.jsx(Hr, { className: "h-5 w-5" })
@@ -12960,7 +13007,7 @@ function Rx({
12960
13007
  ] })
12961
13008
  ] });
12962
13009
  }
12963
- function Ox({
13010
+ function Ax({
12964
13011
  items: e,
12965
13012
  activeRoute: t,
12966
13013
  onNavigate: r,
@@ -12977,7 +13024,7 @@ function Ox({
12977
13024
  te,
12978
13025
  {
12979
13026
  variant: "ghost",
12980
- className: k(
13027
+ className: S(
12981
13028
  "h-10 justify-start gap-2 relative transition-all duration-200 border px-3",
12982
13029
  u ? "bg-primary/10 text-primary border-primary/50 shadow-[inset_0_-3px_0_0_var(--primary)]" : "border-transparent text-muted-foreground hover:text-foreground hover:bg-muted",
12983
13030
  s
@@ -12986,13 +13033,13 @@ function Ox({
12986
13033
  c.onClick && c.onClick(), c.route && r && r(c.route);
12987
13034
  },
12988
13035
  children: [
12989
- /* @__PURE__ */ l.jsx(d, { className: k("h-4 w-4 shrink-0", u ? "text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]" : "") }),
12990
- /* @__PURE__ */ l.jsx("span", { className: k("truncate font-medium text-sm", u ? "text-foreground" : "text-muted-foreground"), children: c.label })
13036
+ /* @__PURE__ */ l.jsx(d, { className: S("h-4 w-4 shrink-0", u ? "text-primary drop-shadow-[0_0_8px_rgba(0,227,150,0.5)]" : "") }),
13037
+ /* @__PURE__ */ l.jsx("span", { className: S("truncate font-medium text-sm", u ? "text-foreground" : "text-muted-foreground"), children: c.label })
12991
13038
  ]
12992
13039
  }
12993
13040
  );
12994
13041
  };
12995
- return /* @__PURE__ */ l.jsxs("div", { className: k("w-full h-16 flex items-center px-4 border-b border-border bg-card gap-4", s), children: [
13042
+ return /* @__PURE__ */ l.jsxs("div", { className: S("w-full h-16 flex items-center px-4 border-b border-border bg-card gap-4", s), children: [
12996
13043
  n && /* @__PURE__ */ l.jsx("div", { className: "flex items-center shrink-0 mr-2", children: n }),
12997
13044
  /* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex items-center gap-1 overflow-x-auto no-scrollbar", children: [
12998
13045
  e.map((c, d) => /* @__PURE__ */ l.jsx(i, { item: c }, d)),
@@ -13005,7 +13052,7 @@ const Nt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
13005
13052
  "div",
13006
13053
  {
13007
13054
  style: r,
13008
- className: k(
13055
+ className: S(
13009
13056
  "h-8 flex items-center justify-center rounded-md border text-[10px] font-bold transition-all duration-100 select-none shrink-0 shadow-sm",
13010
13057
  n ? "bg-primary text-primary-foreground border-primary shadow-[0_0_15px_rgba(var(--primary),0.5)] scale-90 z-10" : "bg-black/40 text-white/70 border-white/20 backdrop-blur-md",
13011
13058
  t
@@ -13022,7 +13069,7 @@ const Nt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
13022
13069
  style: i
13023
13070
  }
13024
13071
  );
13025
- return /* @__PURE__ */ l.jsxs("div", { className: k("p-4 bg-black/40 backdrop-blur-3xl rounded-3xl border border-white/10 flex gap-6 w-fit mx-auto shadow-2xl overflow-hidden", t), children: [
13072
+ return /* @__PURE__ */ l.jsxs("div", { className: S("p-4 bg-black/40 backdrop-blur-3xl rounded-3xl border border-white/10 flex gap-6 w-fit mx-auto shadow-2xl overflow-hidden", t), children: [
13026
13073
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-1.5 w-[480px] shrink-0", children: [
13027
13074
  /* @__PURE__ */ l.jsxs("div", { className: "flex gap-1.5 mb-1", children: [
13028
13075
  n("ESC", void 0, "w-10 mr-4"),
@@ -13139,11 +13186,11 @@ const Nt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
13139
13186
  ] }),
13140
13187
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-2 w-24", children: [
13141
13188
  /* @__PURE__ */ l.jsxs("div", { className: "h-32 border border-white/10 rounded-t-[2.5rem] flex relative overflow-hidden bg-black/20", children: [
13142
- /* @__PURE__ */ l.jsx("div", { className: k(
13189
+ /* @__PURE__ */ l.jsx("div", { className: S(
13143
13190
  "flex-1 border-r border-white/10 transition-all duration-100",
13144
13191
  r("LMB") ? "bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]" : "bg-transparent"
13145
13192
  ) }),
13146
- /* @__PURE__ */ l.jsx("div", { className: k(
13193
+ /* @__PURE__ */ l.jsx("div", { className: S(
13147
13194
  "flex-1 transition-all duration-100",
13148
13195
  r("RMB") ? "bg-primary/80 shadow-[inset_0_0_20px_rgba(var(--primary),0.4)]" : "bg-transparent"
13149
13196
  ) }),
@@ -13155,7 +13202,7 @@ const Nt = ({ label: e, className: t, style: r, active: n }) => /* @__PURE__ */
13155
13202
  }, Q0 = {
13156
13203
  iceServers: [{ urls: "stun:stun.l.google.com:19302" }]
13157
13204
  };
13158
- function Dx({
13205
+ function Tx({
13159
13206
  playerId: e,
13160
13207
  // playerName is not used in this component but kept for API consistency if needed
13161
13208
  className: t,
@@ -13172,7 +13219,7 @@ function Dx({
13172
13219
  selfId: h,
13173
13220
  labels: p
13174
13221
  }) {
13175
- const [g, v] = fe(!0), [b, x] = fe(null), y = Le(null), N = Le(null), C = Le(null), [j, _] = fe([]), S = _o((F, A) => (p == null ? void 0 : p[F]) || A, [p]);
13222
+ const [g, v] = fe(!0), [b, x] = fe(null), y = Le(null), N = Le(null), C = Le(null), [j, _] = fe([]), k = _o((F, A) => (p == null ? void 0 : p[F]) || A, [p]);
13176
13223
  return we(() => {
13177
13224
  if (!c) return;
13178
13225
  const A = c("ReceivePlayerKeys", (O) => {
@@ -13256,7 +13303,7 @@ function Dx({
13256
13303
  N.current = U, y.current && (y.current.srcObject = R, y.current.play().catch(() => {
13257
13304
  }), v(!1));
13258
13305
  } catch {
13259
- x(S("error_desc", "CF SFU subscribe failed"));
13306
+ x(k("error_desc", "CF SFU subscribe failed"));
13260
13307
  }
13261
13308
  });
13262
13309
  return i == null || i("GetPlayerScreen", { targetId: e }), () => {
@@ -13302,24 +13349,24 @@ function Dx({
13302
13349
  return (O = d.isConnected) != null && O.call(d) && B(), d.onConnect(B), () => {
13303
13350
  typeof I == "function" && I(), N.current && (N.current.close(), N.current = null), i == null || i("StopPlayerScreen", { targetId: e });
13304
13351
  };
13305
- }, [e, h, i, f, a, r, d, u, S]), we(() => {
13352
+ }, [e, h, i, f, a, r, d, u, k]), we(() => {
13306
13353
  y.current && C.current && !y.current.srcObject && (y.current.srcObject = C.current, y.current.play().catch(() => {
13307
13354
  }), queueMicrotask(() => v(!1)));
13308
- }, []), /* @__PURE__ */ l.jsxs("div", { className: k("relative bg-black flex items-center justify-center overflow-hidden group rounded-xl border border-white/5 shadow-2xl", t), children: [
13355
+ }, []), /* @__PURE__ */ l.jsxs("div", { className: S("relative bg-black flex items-center justify-center overflow-hidden group rounded-xl border border-white/5 shadow-2xl", t), children: [
13309
13356
  g && /* @__PURE__ */ l.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-3 text-muted-foreground animate-in fade-in duration-500 z-10 bg-zinc-950/90 backdrop-blur-md", children: [
13310
13357
  /* @__PURE__ */ l.jsxs("div", { className: "relative", children: [
13311
13358
  /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 animate-ping rounded-full bg-primary/20" }),
13312
13359
  /* @__PURE__ */ l.jsx(nf, { size: "lg" })
13313
13360
  ] }),
13314
- /* @__PURE__ */ l.jsx("span", { className: "text-[10px] uppercase font-black tracking-[0.2em] animate-pulse", children: S("connecting", "Connecting to feed...") })
13361
+ /* @__PURE__ */ l.jsx("span", { className: "text-[10px] uppercase font-black tracking-[0.2em] animate-pulse", children: k("connecting", "Connecting to feed...") })
13315
13362
  ] }),
13316
13363
  b && /* @__PURE__ */ l.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-4 text-red-400 z-10 bg-zinc-950/95 backdrop-blur-xl p-8 text-center animate-in zoom-in-95 duration-300", children: [
13317
13364
  /* @__PURE__ */ l.jsx("div", { className: "w-12 h-12 rounded-full bg-red-500/10 flex items-center justify-center border border-red-500/20 shadow-[0_0_20px_rgba(239,68,68,0.1)]", children: /* @__PURE__ */ l.jsx(pu, { className: "w-6 h-6 animate-bounce" }) }),
13318
13365
  /* @__PURE__ */ l.jsxs("div", { className: "space-y-1", children: [
13319
- /* @__PURE__ */ l.jsx("h4", { className: "text-sm font-black uppercase tracking-widest", children: S("error_title", "Connection Failed") }),
13366
+ /* @__PURE__ */ l.jsx("h4", { className: "text-sm font-black uppercase tracking-widest", children: k("error_title", "Connection Failed") }),
13320
13367
  /* @__PURE__ */ l.jsx("p", { className: "text-xs text-red-400/60 font-medium max-w-[200px] mx-auto leading-relaxed", children: b })
13321
13368
  ] }),
13322
- /* @__PURE__ */ l.jsx(te, { variant: "ghost", size: "sm", className: "mt-2 text-[10px] uppercase font-bold border border-white/5", onClick: () => window.location.reload(), children: S("retry", "Retry") })
13369
+ /* @__PURE__ */ l.jsx(te, { variant: "ghost", size: "sm", className: "mt-2 text-[10px] uppercase font-bold border border-white/5", onClick: () => window.location.reload(), children: k("retry", "Retry") })
13323
13370
  ] }),
13324
13371
  a ? /* @__PURE__ */ l.jsxs("div", { className: "absolute inset-0 flex flex-col items-center justify-center bg-zinc-900", children: [
13325
13372
  /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 opacity-40 grayscale blur-[4px]", children: /* @__PURE__ */ l.jsx(
@@ -13340,15 +13387,15 @@ function Dx({
13340
13387
  /* @__PURE__ */ l.jsxs("div", { className: "absolute bottom-6 left-6 flex items-center gap-3 z-10", children: [
13341
13388
  /* @__PURE__ */ l.jsxs("div", { className: "bg-black/80 backdrop-blur-md px-3 py-1.5 rounded-lg text-[9px] text-white/80 border border-white/10 uppercase tracking-[0.15em] font-black flex items-center gap-2 shadow-2xl", children: [
13342
13389
  /* @__PURE__ */ l.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.6)]" }),
13343
- S("mock_active", "Mock Feed Active"),
13390
+ k("mock_active", "Mock Feed Active"),
13344
13391
  " • ID: ",
13345
13392
  e
13346
13393
  ] }),
13347
- /* @__PURE__ */ l.jsx("div", { className: "bg-primary/10 backdrop-blur-md text-primary text-[9px] px-3 py-1.5 rounded-lg border border-primary/20 uppercase tracking-[0.15em] font-black shadow-2xl", children: S("simulator", "Simulator") })
13394
+ /* @__PURE__ */ l.jsx("div", { className: "bg-primary/10 backdrop-blur-md text-primary text-[9px] px-3 py-1.5 rounded-lg border border-primary/20 uppercase tracking-[0.15em] font-black shadow-2xl", children: k("simulator", "Simulator") })
13348
13395
  ] }),
13349
13396
  /* @__PURE__ */ l.jsx("div", { className: "absolute top-6 left-6 flex items-center gap-2 z-10 animate-in slide-in-from-left duration-700", children: /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5 bg-red-600 px-3 py-1 rounded font-black text-white text-[10px] tracking-widest uppercase shadow-lg shadow-red-600/20", children: [
13350
13397
  /* @__PURE__ */ l.jsx("div", { className: "w-1.5 h-1.5 rounded-full bg-white animate-pulse" }),
13351
- S("live", "Live")
13398
+ k("live", "Live")
13352
13399
  ] }) })
13353
13400
  ] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
13354
13401
  /* @__PURE__ */ l.jsx(
@@ -13365,11 +13412,11 @@ function Dx({
13365
13412
  !g && !b && /* @__PURE__ */ l.jsxs("div", { className: "absolute top-4 left-4 z-10 flex items-center gap-2 pointer-events-none opacity-0 group-hover:opacity-100 transition-opacity duration-500", children: [
13366
13413
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-1.5 bg-red-600 px-2 py-0.5 rounded-sm font-black text-white text-[9px] tracking-widest uppercase shadow-lg shadow-red-600/30", children: [
13367
13414
  /* @__PURE__ */ l.jsx("div", { className: "w-1 h-1 rounded-full bg-white animate-pulse" }),
13368
- S("live", "Live")
13415
+ k("live", "Live")
13369
13416
  ] }),
13370
13417
  /* @__PURE__ */ l.jsxs("div", { className: "bg-black/60 backdrop-blur px-2 py-0.5 rounded-sm text-[9px] text-zinc-300 font-mono border border-white/10 flex items-center gap-1.5", children: [
13371
13418
  /* @__PURE__ */ l.jsx(Mu, { size: 10, className: "text-green-500" }),
13372
- S("stable", "Stable")
13419
+ k("stable", "Stable")
13373
13420
  ] })
13374
13421
  ] })
13375
13422
  ] }),
@@ -13383,46 +13430,81 @@ function Dx({
13383
13430
  /* @__PURE__ */ l.jsx("div", { className: "absolute inset-0 pointer-events-none shadow-[inset_0_0_100px_rgba(0,0,0,0.5)] opacity-40" })
13384
13431
  ] });
13385
13432
  }
13386
- function Ax({
13433
+ function Lx({
13387
13434
  sidebar: e,
13388
13435
  topbar: t,
13389
13436
  header: r,
13390
- footer: n,
13391
- children: o,
13392
- sidebarPosition: a = "left",
13393
- topbarPlacement: s = "aside",
13394
- className: i,
13395
- contentClassName: c,
13396
- mainClassName: d
13437
+ subnav: n,
13438
+ footer: o,
13439
+ children: a,
13440
+ sidebarPosition: s = "left",
13441
+ topbarPlacement: i = "aside",
13442
+ className: c,
13443
+ contentClassName: d,
13444
+ mainClassName: u
13397
13445
  }) {
13398
- const u = e ? /* @__PURE__ */ l.jsx("aside", { className: "shrink-0 h-full", children: e }) : null, f = /* @__PURE__ */ l.jsxs("div", { className: k("flex-1 flex flex-col min-w-0 h-full", c), children: [
13399
- s === "aside" && t,
13446
+ const f = e ? /* @__PURE__ */ l.jsx("aside", { className: "shrink-0 h-full", children: e }) : null, h = /* @__PURE__ */ l.jsxs("div", { className: S("flex-1 flex flex-col min-w-0 h-full", d), children: [
13447
+ i === "aside" && t,
13400
13448
  r,
13401
- /* @__PURE__ */ l.jsx("main", { className: k("flex-1 overflow-y-auto bg-background text-foreground", d), children: o }),
13402
- n && /* @__PURE__ */ l.jsx("footer", { className: "shrink-0 border-t border-border bg-card", children: n })
13403
- ] }), h = /* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex min-h-0", children: [
13404
- a === "left" && u,
13405
- f,
13406
- a === "right" && u
13449
+ n && /* @__PURE__ */ l.jsx("div", { className: "shrink-0", children: n }),
13450
+ /* @__PURE__ */ l.jsx("main", { className: S("flex-1 overflow-y-auto bg-background text-foreground", u), children: a }),
13451
+ o && /* @__PURE__ */ l.jsx("footer", { className: "shrink-0 border-t border-border bg-card", children: o })
13452
+ ] }), p = /* @__PURE__ */ l.jsxs("div", { className: "flex-1 flex min-h-0", children: [
13453
+ s === "left" && f,
13454
+ h,
13455
+ s === "right" && f
13407
13456
  ] });
13408
- return /* @__PURE__ */ l.jsxs("div", { className: k("h-screen w-full flex flex-col bg-background text-foreground overflow-hidden", i), children: [
13409
- s === "below" && t,
13410
- h
13457
+ return /* @__PURE__ */ l.jsxs("div", { className: S("h-screen w-full flex flex-col bg-background text-foreground overflow-hidden", c), children: [
13458
+ i === "below" && t,
13459
+ p
13411
13460
  ] });
13412
13461
  }
13462
+ const Z0 = {
13463
+ sm: "w-[80%] h-[80%] max-w-[1100px] max-h-[700px] min-w-[900px] min-h-[550px]",
13464
+ md: "w-[85%] h-[85%] max-w-[1400px] max-h-[900px] min-w-[1000px] min-h-[600px]",
13465
+ lg: "w-[90%] h-[90%] max-w-[1700px] max-h-[1080px] min-w-[1100px] min-h-[700px]",
13466
+ fullscreen: "w-full h-full"
13467
+ };
13468
+ function Ix({
13469
+ children: e,
13470
+ visible: t = !0,
13471
+ scale: r = 100,
13472
+ size: n = "md",
13473
+ className: o
13474
+ }) {
13475
+ const a = n === "fullscreen";
13476
+ return /* @__PURE__ */ l.jsx(
13477
+ "div",
13478
+ {
13479
+ className: S(
13480
+ "fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
13481
+ "bg-background text-foreground overflow-hidden",
13482
+ !a && "border border-border rounded-xl shadow-2xl",
13483
+ Z0[n],
13484
+ o
13485
+ ),
13486
+ style: {
13487
+ display: t ? "block" : "none",
13488
+ transform: `translate(-50%, -50%) scale(${r / 100})`,
13489
+ transformOrigin: "center center"
13490
+ },
13491
+ children: e
13492
+ }
13493
+ );
13494
+ }
13413
13495
  export {
13414
- fx as MriAccordion,
13496
+ hx as MriAccordion,
13415
13497
  Rf as MriAccordionContent,
13416
13498
  Ef as MriAccordionItem,
13417
13499
  Pf as MriAccordionTrigger,
13418
- wx as MriActionCard,
13419
- Nx as MriActionModal,
13500
+ Cx as MriActionCard,
13501
+ jx as MriActionModal,
13420
13502
  cu as MriAvatar,
13421
13503
  uu as MriAvatarFallback,
13422
13504
  du as MriAvatarImage,
13423
13505
  Ya as MriBadge,
13424
- dx as MriBanIcon,
13425
- tx as MriBringIcon,
13506
+ ux as MriBanIcon,
13507
+ rx as MriBringIcon,
13426
13508
  te as MriButton,
13427
13509
  Oc as MriCalendar,
13428
13510
  Of as MriCard,
@@ -13431,8 +13513,8 @@ export {
13431
13513
  If as MriCardFooter,
13432
13514
  Df as MriCardHeader,
13433
13515
  Af as MriCardTitle,
13434
- sx as MriClothingIcon,
13435
- _x as MriColorPicker,
13516
+ ix as MriClothingIcon,
13517
+ Ex as MriColorPicker,
13436
13518
  Cr as MriCommand,
13437
13519
  Sr as MriCommandEmpty,
13438
13520
  kr as MriCommandGroup,
@@ -13441,43 +13523,45 @@ export {
13441
13523
  jn as MriCommandList,
13442
13524
  ev as MriCommandSeparator,
13443
13525
  tv as MriCommandShortcut,
13444
- mx as MriCompactSearch,
13445
- xx as MriCopyButton,
13446
- Ax as MriDashboardLayout,
13447
- kx as MriDatePicker,
13448
- px as MriDialog,
13449
- yx as MriEconomyCard,
13450
- ix as MriEyeIcon,
13451
- Cx as MriGridActionButton,
13526
+ px as MriCompactSearch,
13527
+ wx as MriCopyButton,
13528
+ Lx as MriDashboardLayout,
13529
+ Mx as MriDatePicker,
13530
+ vx as MriDialog,
13531
+ Nx as MriEconomyCard,
13532
+ lx as MriEyeIcon,
13533
+ Sx as MriGridActionButton,
13452
13534
  Oo as MriInput,
13453
13535
  K0 as MriKeyboardVisualizer,
13454
- cx as MriKickIcon,
13536
+ dx as MriKickIcon,
13455
13537
  ia as MriModal,
13456
- ax as MriMoneyIcon,
13457
- Px as MriPageHeader,
13458
- Dx as MriPlayerScreenStream,
13459
- Mx as MriPlayerVitals,
13538
+ sx as MriMoneyIcon,
13539
+ Ox as MriPageHeader,
13540
+ Tx as MriPlayerScreenStream,
13541
+ Px as MriPlayerVitals,
13460
13542
  Jt as MriPopover,
13461
13543
  Rt as MriPopoverContent,
13462
13544
  er as MriPopoverTrigger,
13463
- nx as MriReviveIcon,
13545
+ ox as MriReviveIcon,
13464
13546
  Jr as MriScrollArea,
13465
13547
  _i as MriScrollBar,
13466
- jx as MriSearchInput,
13467
- Sx as MriSectionHeader,
13468
- vx as MriSelect,
13469
- rx as MriSendBackIcon,
13470
- Rx as MriSidebar,
13548
+ kx as MriSearchInput,
13549
+ _x as MriSectionHeader,
13550
+ gx as MriSelect,
13551
+ nx as MriSendBackIcon,
13552
+ Dx as MriSidebar,
13471
13553
  nf as MriSpinner,
13472
- ux as MriStatusBadge,
13473
- ex as MriTeleportIcon,
13474
- gx as MriThemeToggle,
13475
- bx as MriTimePicker,
13476
- Ox as MriTopbar,
13477
- ox as MriVerifyIcon,
13478
- Ex as MriVitalAdjustModal,
13479
- lx as MriWarnIcon,
13480
- k as cn,
13554
+ fx as MriStatusBadge,
13555
+ Ix as MriTabletFrame,
13556
+ xx as MriTabs,
13557
+ tx as MriTeleportIcon,
13558
+ bx as MriThemeToggle,
13559
+ yx as MriTimePicker,
13560
+ Ax as MriTopbar,
13561
+ ax as MriVerifyIcon,
13562
+ Rx as MriVitalAdjustModal,
13563
+ cx as MriWarnIcon,
13564
+ S as cn,
13481
13565
  fu as mriBadgeVariants,
13482
13566
  lo as mriButtonVariants
13483
13567
  };