@uxuissk/design-system 0.8.5 → 0.8.7

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.
@@ -42,12 +42,12 @@ const Kn = {
42
42
  children: f,
43
43
  className: h = "",
44
44
  ...v
45
- }, x) => {
45
+ }, y) => {
46
46
  const u = s || n;
47
47
  return /* @__PURE__ */ e(
48
48
  "button",
49
49
  {
50
- ref: x,
50
+ ref: y,
51
51
  disabled: u,
52
52
  className: `inline-flex items-center justify-center rounded-[var(--radius-md)] transition-all duration-150
53
53
  ${Kn[r]}
@@ -184,28 +184,28 @@ const Fr = {
184
184
  prefix: f,
185
185
  suffix: h,
186
186
  clearable: v = !1,
187
- showPasswordToggle: x = !1,
187
+ showPasswordToggle: y = !1,
188
188
  loading: u = !1,
189
189
  fullWidth: p = !0,
190
190
  required: b = !1,
191
- showCount: g = !1,
191
+ showCount: x = !1,
192
192
  onClear: $,
193
- disabled: k,
193
+ disabled: S,
194
194
  type: m = "text",
195
- value: y,
195
+ value: g,
196
196
  defaultValue: w,
197
197
  onChange: z,
198
198
  className: W = "",
199
199
  ...M
200
200
  }, F) => {
201
- const [L, I] = j(!1), [C, N] = j(!1), [S, A] = j(w ?? ""), E = y !== void 0 ? y : S, R = String(E).length, _ = M.maxLength, B = Fr[l], q = Wr[i], H = n ? "error" : d, K = m === "password", ae = K && C ? "text" : m, G = Q(
201
+ const [L, E] = j(!1), [C, N] = j(!1), [k, A] = j(w ?? ""), I = g !== void 0 ? g : k, _ = String(I).length, H = M.maxLength, B = Fr[l], q = Wr[i], R = n ? "error" : d, K = m === "password", ae = K && C ? "text" : m, G = Q(
202
202
  (T) => {
203
203
  A(T.target.value), z == null || z(T);
204
204
  },
205
205
  [z]
206
206
  ), re = Q(() => {
207
207
  A(""), $ == null || $();
208
- }, [$]), Y = String(E).length > 0;
208
+ }, [$]), Y = String(I).length > 0;
209
209
  return /* @__PURE__ */ a("div", { className: `${p ? "w-full" : "inline-flex flex-col"} ${W}`, children: [
210
210
  t && /* @__PURE__ */ a("label", { className: "block mb-1.5 text-foreground", children: [
211
211
  t,
@@ -217,10 +217,10 @@ const Fr = {
217
217
  className: `flex items-center rounded-[var(--radius-md)] transition-all duration-150
218
218
  ${B.wrapper}
219
219
  ${q.base}
220
- ${k ? "" : q.hover}
221
- ${L && !k ? q.focus : ""}
222
- ${k ? "opacity-50 cursor-not-allowed" : ""}
223
- ${Mr[H]}
220
+ ${S ? "" : q.hover}
221
+ ${L && !S ? q.focus : ""}
222
+ ${S ? "opacity-50 cursor-not-allowed" : ""}
223
+ ${Mr[R]}
224
224
  `,
225
225
  children: [
226
226
  c && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", children: c }),
@@ -230,18 +230,18 @@ const Fr = {
230
230
  {
231
231
  ref: F,
232
232
  type: ae,
233
- disabled: k || u,
234
- value: E,
233
+ disabled: S || u,
234
+ value: I,
235
235
  onChange: G,
236
- onFocus: () => I(!0),
237
- onBlur: () => I(!1),
236
+ onFocus: () => E(!0),
237
+ onBlur: () => E(!1),
238
238
  className: "flex-1 min-w-0 bg-transparent border-none outline-none text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed",
239
239
  style: B.textStyle,
240
240
  ...M
241
241
  }
242
242
  ),
243
243
  h && /* @__PURE__ */ e("span", { className: "flex-shrink-0 text-muted-foreground", style: ot, children: h }),
244
- v && Y && !k && /* @__PURE__ */ e(
244
+ v && Y && !S && /* @__PURE__ */ e(
245
245
  "button",
246
246
  {
247
247
  type: "button",
@@ -250,7 +250,7 @@ const Fr = {
250
250
  children: /* @__PURE__ */ e(ie, { size: B.icon - 2 })
251
251
  }
252
252
  ),
253
- K && x && /* @__PURE__ */ e(
253
+ K && y && /* @__PURE__ */ e(
254
254
  "button",
255
255
  {
256
256
  type: "button",
@@ -264,18 +264,18 @@ const Fr = {
264
264
  ]
265
265
  }
266
266
  ),
267
- g && _ && /* @__PURE__ */ a("div", { className: "flex justify-end mt-1", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: R >= _ ? "var(--destructive)" : "var(--muted-foreground)" }, children: [
268
- R,
267
+ x && H && /* @__PURE__ */ a("div", { className: "flex justify-end mt-1", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: _ >= H ? "var(--destructive)" : "var(--muted-foreground)" }, children: [
268
+ _,
269
269
  " / ",
270
- _
270
+ H
271
271
  ] }),
272
272
  (r || n || o) && /* @__PURE__ */ a("div", { className: "mt-1.5 flex items-center gap-1", children: [
273
- H === "error" && /* @__PURE__ */ e(Pe, { size: 12, className: "text-destructive flex-shrink-0" }),
274
- H === "success" && /* @__PURE__ */ e($e, { size: 12, className: "text-chart-2 flex-shrink-0" }),
273
+ R === "error" && /* @__PURE__ */ e(Pe, { size: 12, className: "text-destructive flex-shrink-0" }),
274
+ R === "success" && /* @__PURE__ */ e($e, { size: 12, className: "text-chart-2 flex-shrink-0" }),
275
275
  /* @__PURE__ */ e(
276
276
  "span",
277
277
  {
278
- className: `${H === "error" ? "text-destructive" : H === "success" ? "text-chart-2" : "text-muted-foreground"}`,
278
+ className: `${R === "error" ? "text-destructive" : R === "success" ? "text-chart-2" : "text-muted-foreground"}`,
279
279
  style: ot,
280
280
  children: n || o || r
281
281
  }
@@ -299,14 +299,14 @@ const Qn = Xe(
299
299
  required: f = !1,
300
300
  disabled: h,
301
301
  value: v,
302
- defaultValue: x,
302
+ defaultValue: y,
303
303
  onChange: u,
304
304
  className: p = "",
305
305
  ...b
306
- }, g) => {
307
- const [$, k] = j(!1), [m, y] = j(String(x ?? "").length), w = Fr[l], z = Wr[i], W = n ? "error" : d, M = Q(
306
+ }, x) => {
307
+ const [$, S] = j(!1), [m, g] = j(String(y ?? "").length), w = Fr[l], z = Wr[i], W = n ? "error" : d, M = Q(
308
308
  (F) => {
309
- y(F.target.value.length), u == null || u(F);
309
+ g(F.target.value.length), u == null || u(F);
310
310
  },
311
311
  [u]
312
312
  );
@@ -329,14 +329,14 @@ const Qn = Xe(
329
329
  /* @__PURE__ */ e(
330
330
  "textarea",
331
331
  {
332
- ref: g,
332
+ ref: x,
333
333
  disabled: h,
334
334
  value: v,
335
- defaultValue: x,
335
+ defaultValue: y,
336
336
  maxLength: s,
337
337
  onChange: M,
338
- onFocus: () => k(!0),
339
- onBlur: () => k(!1),
338
+ onFocus: () => S(!0),
339
+ onBlur: () => S(!1),
340
340
  className: "w-full min-h-[100px] px-3 py-2.5 bg-transparent border-none outline-none text-foreground placeholder:text-muted-foreground resize-y disabled:cursor-not-allowed",
341
341
  style: w.textStyle,
342
342
  ...b
@@ -532,10 +532,10 @@ function st({
532
532
  className: f = "",
533
533
  id: h
534
534
  }) {
535
- const [v, x] = j(n), u = t ?? v, p = oo[d], b = h ?? `cb-${ge.useId()}`, g = () => {
535
+ const [v, y] = j(n), u = t ?? v, p = oo[d], b = h ?? `cb-${ge.useId()}`, x = () => {
536
536
  if (c) return;
537
- const k = !u;
538
- t === void 0 && x(k), o == null || o(k);
537
+ const S = !u;
538
+ t === void 0 && y(S), o == null || o(S);
539
539
  }, $ = u || r;
540
540
  return /* @__PURE__ */ a("div", { className: `inline-flex items-start gap-2.5 ${c ? "opacity-50" : ""} ${f}`, children: [
541
541
  /* @__PURE__ */ e(
@@ -545,7 +545,7 @@ function st({
545
545
  role: "checkbox",
546
546
  "aria-checked": r ? "mixed" : u,
547
547
  disabled: c,
548
- onClick: g,
548
+ onClick: x,
549
549
  className: `${p.box} flex-shrink-0 rounded-[var(--radius-sm)] border-2 transition-all flex items-center justify-center cursor-pointer mt-0.5
550
550
  ${$ ? "bg-primary border-primary text-primary-foreground" : s ? "border-destructive bg-card" : "border-border bg-card hover:border-primary/50"}
551
551
  ${c ? "!cursor-not-allowed" : ""}
@@ -560,7 +560,7 @@ function st({
560
560
  htmlFor: b,
561
561
  className: `text-foreground block cursor-pointer ${c ? "!cursor-not-allowed" : ""}`,
562
562
  style: p.labelStyle,
563
- onClick: g,
563
+ onClick: x,
564
564
  children: l
565
565
  }
566
566
  ),
@@ -641,8 +641,8 @@ function xi({
641
641
  error: f,
642
642
  className: h = ""
643
643
  }) {
644
- const [v, x] = j(n), u = r ?? v, p = (b) => {
645
- r === void 0 && x(b), o == null || o(b);
644
+ const [v, y] = j(n), u = r ?? v, p = (b) => {
645
+ r === void 0 && y(b), o == null || o(b);
646
646
  };
647
647
  return /* @__PURE__ */ e(jr.Provider, { value: { value: u, onChange: p, size: i, disabled: d, name: t }, children: /* @__PURE__ */ a("fieldset", { className: h, role: "radiogroup", children: [
648
648
  l && /* @__PURE__ */ e("legend", { className: "text-foreground mb-2 block", style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)" }, children: l }),
@@ -748,32 +748,32 @@ function yi({
748
748
  successMessage: f,
749
749
  size: h = "md",
750
750
  variant: v = "default",
751
- state: x = "default",
751
+ state: y = "default",
752
752
  disabled: u = !1,
753
753
  required: p = !1,
754
754
  clearable: b = !1,
755
- showTime: g = !1,
755
+ showTime: x = !1,
756
756
  minDate: $,
757
- maxDate: k,
757
+ maxDate: S,
758
758
  disabledDates: m,
759
- showToday: y = !0,
759
+ showToday: g = !0,
760
760
  footer: w,
761
761
  fullWidth: z = !1
762
762
  }) {
763
- const [W, M] = j(!1), [F, L] = j(() => t ?? /* @__PURE__ */ new Date()), [I, C] = j("days"), [N, S] = j(null), [A, E] = j(() => t ? t.getHours() : 0), [R, _] = j(() => t ? t.getMinutes() : 0), B = V(null), q = V(null), H = V(null), [K, ae] = j(null), G = so[h];
763
+ const [W, M] = j(!1), [F, L] = j(() => t ?? /* @__PURE__ */ new Date()), [E, C] = j("days"), [N, k] = j(null), [A, I] = j(() => t ? t.getHours() : 0), [_, H] = j(() => t ? t.getMinutes() : 0), B = V(null), q = V(null), R = V(null), [K, ae] = j(null), G = so[h];
764
764
  ne(() => {
765
765
  if (!W || !q.current) return;
766
766
  const O = () => {
767
- const ee = q.current.getBoundingClientRect(), ye = l === "range" ? 560 : 300, oe = g ? 390 : 360, je = ee.left + ye > window.innerWidth ? Math.max(8, window.innerWidth - ye - 8) : ee.left, be = ee.bottom + 6 + oe > window.innerHeight ? ee.top - oe - 2 : ee.bottom + 6;
767
+ const ee = q.current.getBoundingClientRect(), ye = l === "range" ? 560 : 300, oe = x ? 390 : 360, je = ee.left + ye > window.innerWidth ? Math.max(8, window.innerWidth - ye - 8) : ee.left, be = ee.bottom + 6 + oe > window.innerHeight ? ee.top - oe - 2 : ee.bottom + 6;
768
768
  ae({ top: be, left: je });
769
769
  };
770
770
  return O(), window.addEventListener("scroll", O, !0), window.addEventListener("resize", O), () => {
771
771
  window.removeEventListener("scroll", O, !0), window.removeEventListener("resize", O);
772
772
  };
773
- }, [W, l, g]), ne(() => {
773
+ }, [W, l, x]), ne(() => {
774
774
  function O(ee) {
775
775
  var be, De;
776
- const ye = ee.target, oe = ((be = B.current) == null ? void 0 : be.contains(ye)) ?? !1, je = ((De = H.current) == null ? void 0 : De.contains(ye)) ?? !1;
776
+ const ye = ee.target, oe = ((be = B.current) == null ? void 0 : be.contains(ye)) ?? !1, je = ((De = R.current) == null ? void 0 : De.contains(ye)) ?? !1;
777
777
  !oe && !je && (M(!1), C("days"));
778
778
  }
779
779
  return W && document.addEventListener("mousedown", O), () => document.removeEventListener("mousedown", O);
@@ -783,31 +783,31 @@ function yi({
783
783
  );
784
784
  const re = se(() => /* @__PURE__ */ new Date(), []), Y = () => L(new Date(F.getFullYear(), F.getMonth() - 1, 1)), T = () => L(new Date(F.getFullYear(), F.getMonth() + 1, 1)), J = () => L(new Date(F.getFullYear() - 1, F.getMonth(), 1)), X = () => L(new Date(F.getFullYear() + 1, F.getMonth(), 1)), ue = Q(
785
785
  (O) => {
786
- if (!Zt(O, $, k, m))
786
+ if (!Zt(O, $, S, m))
787
787
  if (l === "single") {
788
788
  let ee = new Date(O);
789
- g && ee.setHours(A, R), n == null || n(ee), g || (M(!1), C("days"));
789
+ x && ee.setHours(A, _), n == null || n(ee), x || (M(!1), C("days"));
790
790
  } else {
791
791
  const ee = r == null ? void 0 : r.start, ye = r == null ? void 0 : r.end;
792
792
  !ee || ee && ye ? o == null || o({ start: O, end: null }) : (O < ee ? o == null || o({ start: O, end: ee }) : o == null || o({ start: ee, end: O }), M(!1), C("days"));
793
793
  }
794
794
  },
795
- [l, n, o, r, $, k, m, g, A, R]
795
+ [l, n, o, r, $, S, m, x, A, _]
796
796
  ), ze = (O) => {
797
797
  O.stopPropagation(), l === "single" ? n == null || n(null) : o == null || o({ start: null, end: null });
798
798
  }, Ye = () => {
799
799
  const O = /* @__PURE__ */ new Date();
800
800
  if (L(O), l === "single") {
801
801
  const ee = new Date(O);
802
- g && ee.setHours(A, R), n == null || n(ee), g || (M(!1), C("days"));
802
+ x && ee.setHours(A, _), n == null || n(ee), x || (M(!1), C("days"));
803
803
  }
804
804
  }, Z = () => {
805
805
  if (t) {
806
806
  const O = new Date(t);
807
- O.setHours(A, R), n == null || n(O);
807
+ O.setHours(A, _), n == null || n(O);
808
808
  }
809
809
  M(!1), C("days");
810
- }, Fe = se(() => l === "single" ? et(t, g) : r != null && r.start && (r != null && r.end) ? `${et(r.start)} – ${et(r.end)}` : r != null && r.start ? `${et(r.start)} – ...` : "", [l, t, r, g]), Le = l === "single" ? !!t : !!(r != null && r.start || r != null && r.end), xe = x === "error" ? /* @__PURE__ */ e(Pe, { size: G.icon, className: "text-destructive flex-shrink-0" }) : x === "success" ? /* @__PURE__ */ e($e, { size: G.icon, className: "text-chart-2 flex-shrink-0" }) : null, Te = x === "error" ? s : x === "success" ? f : c, Ve = x === "error" ? "text-destructive" : x === "success" ? "text-chart-2" : "text-muted-foreground", mt = {
810
+ }, Fe = se(() => l === "single" ? et(t, x) : r != null && r.start && (r != null && r.end) ? `${et(r.start)} – ${et(r.end)}` : r != null && r.start ? `${et(r.start)} – ...` : "", [l, t, r, x]), Le = l === "single" ? !!t : !!(r != null && r.start || r != null && r.end), xe = y === "error" ? /* @__PURE__ */ e(Pe, { size: G.icon, className: "text-destructive flex-shrink-0" }) : y === "success" ? /* @__PURE__ */ e($e, { size: G.icon, className: "text-chart-2 flex-shrink-0" }) : null, Te = y === "error" ? s : y === "success" ? f : c, Ve = y === "error" ? "text-destructive" : y === "success" ? "text-chart-2" : "text-muted-foreground", mt = {
811
811
  fontFamily: "var(--font-label)",
812
812
  fontSize: "var(--text-label)",
813
813
  fontWeight: "var(--weight-label)"
@@ -836,7 +836,7 @@ function yi({
836
836
  w-full flex items-center gap-2 rounded-[var(--radius-md)] transition-all cursor-pointer
837
837
  ${G.trigger}
838
838
  ${co[v]}
839
- ${uo[x]}
839
+ ${uo[y]}
840
840
  ${u ? "opacity-50 cursor-not-allowed" : "hover:border-primary/50"}
841
841
  `,
842
842
  style: G.text,
@@ -860,7 +860,7 @@ function yi({
860
860
  /* @__PURE__ */ a(
861
861
  "div",
862
862
  {
863
- ref: H,
863
+ ref: R,
864
864
  className: "bg-popover border border-border rounded-[var(--radius-md)] shadow-elevation-sm overflow-hidden",
865
865
  style: {
866
866
  position: "fixed",
@@ -879,7 +879,7 @@ function yi({
879
879
  /* @__PURE__ */ e(
880
880
  "button",
881
881
  {
882
- onClick: () => C(I === "months" ? "days" : "months"),
882
+ onClick: () => C(E === "months" ? "days" : "months"),
883
883
  className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
884
884
  style: le,
885
885
  children: bt[F.getMonth()]
@@ -888,7 +888,7 @@ function yi({
888
888
  /* @__PURE__ */ e(
889
889
  "button",
890
890
  {
891
- onClick: () => C(I === "years" ? "days" : "years"),
891
+ onClick: () => C(E === "years" ? "days" : "years"),
892
892
  className: "px-2 py-1 rounded-[var(--radius-sm)] hover:bg-muted text-foreground transition-colors cursor-pointer",
893
893
  style: le,
894
894
  children: F.getFullYear()
@@ -900,7 +900,7 @@ function yi({
900
900
  /* @__PURE__ */ e("button", { onClick: X, className: "p-1 rounded-[var(--radius-sm)] hover:bg-muted text-muted-foreground hover:text-foreground transition-colors cursor-pointer", title: "Next year", children: /* @__PURE__ */ e(Ct, { size: 16 }) })
901
901
  ] })
902
902
  ] }),
903
- I === "days" && /* @__PURE__ */ e("div", { className: `p-3 ${l === "range" ? "flex gap-3" : ""}`, children: (l === "range" ? [0, 1] : [0]).map((O) => {
903
+ E === "days" && /* @__PURE__ */ e("div", { className: `p-3 ${l === "range" ? "flex gap-3" : ""}`, children: (l === "range" ? [0, 1] : [0]).map((O) => {
904
904
  const ee = new Date(F.getFullYear(), F.getMonth() + O, 1), ye = Xt(ee.getFullYear(), ee.getMonth());
905
905
  return /* @__PURE__ */ a("div", { className: "flex-1", children: [
906
906
  O > 0 && /* @__PURE__ */ a("div", { className: "text-center mb-2 text-foreground", style: le, children: [
@@ -919,7 +919,7 @@ function yi({
919
919
  )) }),
920
920
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: ye.map((oe, je) => {
921
921
  if (!oe) return /* @__PURE__ */ e("div", {}, `empty-${O}-${je}`);
922
- const be = Zt(oe, $, k, m), De = Ke(oe, re), Ae = l === "single" ? t && Ke(oe, t) : (r == null ? void 0 : r.start) && Ke(oe, r.start) || (r == null ? void 0 : r.end) && Ke(oe, r.end), Be = l === "range" && (Kt(oe, (r == null ? void 0 : r.start) ?? null, (r == null ? void 0 : r.end) ?? null) || (r == null ? void 0 : r.start) && !(r != null && r.end) && N && Kt(
922
+ const be = Zt(oe, $, S, m), De = Ke(oe, re), Ae = l === "single" ? t && Ke(oe, t) : (r == null ? void 0 : r.start) && Ke(oe, r.start) || (r == null ? void 0 : r.end) && Ke(oe, r.end), Be = l === "range" && (Kt(oe, (r == null ? void 0 : r.start) ?? null, (r == null ? void 0 : r.end) ?? null) || (r == null ? void 0 : r.start) && !(r != null && r.end) && N && Kt(
923
923
  oe,
924
924
  r.start,
925
925
  N > r.start ? N : null
@@ -928,7 +928,7 @@ function yi({
928
928
  "button",
929
929
  {
930
930
  onClick: () => ue(oe),
931
- onMouseEnter: () => l === "range" && S(oe),
931
+ onMouseEnter: () => l === "range" && k(oe),
932
932
  disabled: be,
933
933
  className: `
934
934
  ${G.cell} flex items-center justify-center rounded-[var(--radius-sm)] transition-all cursor-pointer
@@ -945,7 +945,7 @@ function yi({
945
945
  }) })
946
946
  ] }, O);
947
947
  }) }),
948
- I === "months" && /* @__PURE__ */ e("div", { className: "p-3 grid grid-cols-3 gap-2", children: bt.map((O, ee) => /* @__PURE__ */ e(
948
+ E === "months" && /* @__PURE__ */ e("div", { className: "p-3 grid grid-cols-3 gap-2", children: bt.map((O, ee) => /* @__PURE__ */ e(
949
949
  "button",
950
950
  {
951
951
  onClick: () => {
@@ -960,7 +960,7 @@ function yi({
960
960
  },
961
961
  O
962
962
  )) }),
963
- I === "years" && /* @__PURE__ */ a("div", { className: "p-3", children: [
963
+ E === "years" && /* @__PURE__ */ a("div", { className: "p-3", children: [
964
964
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-3", children: [
965
965
  /* @__PURE__ */ e(
966
966
  "button",
@@ -1001,7 +1001,7 @@ function yi({
1001
1001
  O
1002
1002
  )) })
1003
1003
  ] }),
1004
- g && l === "single" && I === "days" && /* @__PURE__ */ a("div", { className: "px-4 py-3 border-t border-border flex items-center gap-3", children: [
1004
+ x && l === "single" && E === "days" && /* @__PURE__ */ a("div", { className: "px-4 py-3 border-t border-border flex items-center gap-3", children: [
1005
1005
  /* @__PURE__ */ e(jt, { size: 14, className: "text-muted-foreground" }),
1006
1006
  /* @__PURE__ */ a("div", { className: "flex items-center gap-1", children: [
1007
1007
  /* @__PURE__ */ e(
@@ -1011,7 +1011,7 @@ function yi({
1011
1011
  min: 0,
1012
1012
  max: 23,
1013
1013
  value: String(A).padStart(2, "0"),
1014
- onChange: (O) => E(Math.max(0, Math.min(23, Number(O.target.value)))),
1014
+ onChange: (O) => I(Math.max(0, Math.min(23, Number(O.target.value)))),
1015
1015
  className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
1016
1016
  style: le
1017
1017
  }
@@ -1023,8 +1023,8 @@ function yi({
1023
1023
  type: "number",
1024
1024
  min: 0,
1025
1025
  max: 59,
1026
- value: String(R).padStart(2, "0"),
1027
- onChange: (O) => _(Math.max(0, Math.min(59, Number(O.target.value)))),
1026
+ value: String(_).padStart(2, "0"),
1027
+ onChange: (O) => H(Math.max(0, Math.min(59, Number(O.target.value)))),
1028
1028
  className: "w-10 text-center bg-input-background border border-border rounded-[var(--radius-sm)] py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-ring/30",
1029
1029
  style: le
1030
1030
  }
@@ -1041,7 +1041,7 @@ function yi({
1041
1041
  )
1042
1042
  ] }),
1043
1043
  /* @__PURE__ */ a("div", { className: "px-4 py-2.5 border-t border-border bg-card flex items-center justify-between", children: [
1044
- y ? /* @__PURE__ */ e(
1044
+ g ? /* @__PURE__ */ e(
1045
1045
  "button",
1046
1046
  {
1047
1047
  onClick: Ye,
@@ -1091,8 +1091,8 @@ function mo({
1091
1091
  const h = V(null);
1092
1092
  return ne(() => {
1093
1093
  if (!t) return;
1094
- const v = (x) => {
1095
- x.key === "Escape" && r();
1094
+ const v = (y) => {
1095
+ y.key === "Escape" && r();
1096
1096
  };
1097
1097
  return document.addEventListener("keydown", v), document.body.style.overflow = "hidden", () => {
1098
1098
  document.removeEventListener("keydown", v), document.body.style.overflow = "";
@@ -1233,13 +1233,13 @@ function po(t, r, n) {
1233
1233
  const l = Math.max(t - n, 1), i = Math.min(t + n, r), d = l > 2, c = i < r - 1;
1234
1234
  if (!d && c) {
1235
1235
  const f = 3 + 2 * n;
1236
- return [...Array.from({ length: f }, (v, x) => x + 1), "dots-right", r];
1236
+ return [...Array.from({ length: f }, (v, y) => y + 1), "dots-right", r];
1237
1237
  }
1238
1238
  if (d && !c) {
1239
1239
  const f = 3 + 2 * n;
1240
1240
  return [1, "dots-left", ...Array.from(
1241
1241
  { length: f },
1242
- (v, x) => r - f + x + 1
1242
+ (v, y) => r - f + y + 1
1243
1243
  )];
1244
1244
  }
1245
1245
  return [1, "dots-left", ...Array.from(
@@ -1261,22 +1261,22 @@ function Ni({
1261
1261
  onPageSizeChange: f,
1262
1262
  totalItems: h,
1263
1263
  size: v = "md",
1264
- variant: x = "default",
1264
+ variant: y = "default",
1265
1265
  disabled: u = !1,
1266
1266
  showPageInfo: p = !1,
1267
1267
  showItemsInfo: b = !1,
1268
- prevLabel: g,
1268
+ prevLabel: x,
1269
1269
  nextLabel: $
1270
1270
  }) {
1271
- const k = po(t, r, o), m = ho[v], y = bo[x], w = Q(
1271
+ const S = po(t, r, o), m = ho[v], g = bo[y], w = Q(
1272
1272
  (L) => {
1273
1273
  !u && L >= 1 && L <= r && n(L);
1274
1274
  },
1275
1275
  [u, r, n]
1276
- ), z = (L, I) => `inline-flex items-center justify-center rounded-[var(--radius-md)] transition-all cursor-pointer select-none
1276
+ ), z = (L, E) => `inline-flex items-center justify-center rounded-[var(--radius-md)] transition-all cursor-pointer select-none
1277
1277
  ${m.btn}
1278
- ${I ? "opacity-40 pointer-events-none cursor-default" : ""}
1279
- ${L ? y.active : `${y.base} ${I ? "" : y.hover}`}`, W = h ? (t - 1) * s + 1 : 0, M = h ? Math.min(t * s, h) : 0, F = {
1278
+ ${E ? "opacity-40 pointer-events-none cursor-default" : ""}
1279
+ ${L ? g.active : `${g.base} ${E ? "" : g.hover}`}`, W = h ? (t - 1) * s + 1 : 0, M = h ? Math.min(t * s, h) : 0, F = {
1280
1280
  fontFamily: "var(--font-label)",
1281
1281
  fontSize: "var(--text-label)",
1282
1282
  fontWeight: "var(--weight-label)"
@@ -1336,10 +1336,10 @@ function Ni({
1336
1336
  className: z(!1, u || t <= 1),
1337
1337
  style: m.text,
1338
1338
  "aria-label": "Previous page",
1339
- children: g ?? /* @__PURE__ */ e(Me, { size: m.icon })
1339
+ children: x ?? /* @__PURE__ */ e(Me, { size: m.icon })
1340
1340
  }
1341
1341
  ),
1342
- k.map((L, I) => L === "dots-left" || L === "dots-right" ? /* @__PURE__ */ e(
1342
+ S.map((L, E) => L === "dots-left" || L === "dots-right" ? /* @__PURE__ */ e(
1343
1343
  "span",
1344
1344
  {
1345
1345
  className: `inline-flex items-center justify-center text-muted-foreground ${m.btn}`,
@@ -1416,23 +1416,23 @@ function $i({
1416
1416
  clearable: f = !0,
1417
1417
  disabled: h = !1,
1418
1418
  autoFocus: v = !1,
1419
- debounce: x = 0,
1419
+ debounce: y = 0,
1420
1420
  className: u = ""
1421
1421
  }) {
1422
- const [p, b] = j(""), [g, $] = j(!1), [k, m] = j(-1), y = t ?? p, w = V(null), z = V(null), W = V(void 0), M = go[l], F = Q((N) => {
1423
- t === void 0 && b(N), r == null || r(N), x > 0 && (clearTimeout(W.current), W.current = setTimeout(() => n == null ? void 0 : n(N), x));
1424
- }, [t, r, n, x]), L = (N) => {
1425
- N.key === "Enter" ? k >= 0 && c[k] ? (s == null || s(c[k]), $(!1)) : n == null || n(y) : N.key === "ArrowDown" ? (N.preventDefault(), m((S) => Math.min(S + 1, c.length - 1))) : N.key === "ArrowUp" ? (N.preventDefault(), m((S) => Math.max(S - 1, -1))) : N.key === "Escape" && $(!1);
1422
+ const [p, b] = j(""), [x, $] = j(!1), [S, m] = j(-1), g = t ?? p, w = V(null), z = V(null), W = V(void 0), M = go[l], F = Q((N) => {
1423
+ t === void 0 && b(N), r == null || r(N), y > 0 && (clearTimeout(W.current), W.current = setTimeout(() => n == null ? void 0 : n(N), y));
1424
+ }, [t, r, n, y]), L = (N) => {
1425
+ N.key === "Enter" ? S >= 0 && c[S] ? (s == null || s(c[S]), $(!1)) : n == null || n(g) : N.key === "ArrowDown" ? (N.preventDefault(), m((k) => Math.min(k + 1, c.length - 1))) : N.key === "ArrowUp" ? (N.preventDefault(), m((k) => Math.max(k - 1, -1))) : N.key === "Escape" && $(!1);
1426
1426
  };
1427
1427
  ne(() => {
1428
- const N = (S) => {
1429
- z.current && !z.current.contains(S.target) && $(!1);
1428
+ const N = (k) => {
1429
+ z.current && !z.current.contains(k.target) && $(!1);
1430
1430
  };
1431
1431
  return document.addEventListener("mousedown", N), () => document.removeEventListener("mousedown", N);
1432
1432
  }, []), ne(() => {
1433
- $(c.length > 0 && y.length > 0), m(-1);
1434
- }, [c, y]);
1435
- const I = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, C = { fontFamily: "var(--font-label)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)" };
1433
+ $(c.length > 0 && g.length > 0), m(-1);
1434
+ }, [c, g]);
1435
+ const E = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, C = { fontFamily: "var(--font-label)", fontSize: "var(--text-button)", fontWeight: "var(--weight-button)" };
1436
1436
  return /* @__PURE__ */ a("div", { ref: z, className: `relative ${u}`, children: [
1437
1437
  /* @__PURE__ */ a("div", { className: `relative rounded-[var(--radius-md)] transition-all ${vo[i]} ${h ? "opacity-50 pointer-events-none" : ""}`, children: [
1438
1438
  /* @__PURE__ */ e("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e(qe, { size: M.icon }) }),
@@ -1441,10 +1441,10 @@ function $i({
1441
1441
  {
1442
1442
  ref: w,
1443
1443
  type: "text",
1444
- value: y,
1444
+ value: g,
1445
1445
  onChange: (N) => F(N.target.value),
1446
1446
  onKeyDown: L,
1447
- onFocus: () => c.length > 0 && y.length > 0 && $(!0),
1447
+ onFocus: () => c.length > 0 && g.length > 0 && $(!0),
1448
1448
  placeholder: o,
1449
1449
  disabled: h,
1450
1450
  autoFocus: v,
@@ -1454,7 +1454,7 @@ function $i({
1454
1454
  ),
1455
1455
  /* @__PURE__ */ a("span", { className: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center gap-1", children: [
1456
1456
  d && /* @__PURE__ */ e(Ze, { size: M.icon, className: "animate-spin text-muted-foreground" }),
1457
- f && y && !d && /* @__PURE__ */ e(
1457
+ f && g && !d && /* @__PURE__ */ e(
1458
1458
  "button",
1459
1459
  {
1460
1460
  onClick: () => {
@@ -1467,18 +1467,18 @@ function $i({
1467
1467
  )
1468
1468
  ] })
1469
1469
  ] }),
1470
- g && c.length > 0 && /* @__PURE__ */ e("div", { className: "absolute top-full left-0 right-0 mt-1 bg-popover border border-border rounded-[var(--radius-md)] shadow-elevation-sm z-50 overflow-hidden max-h-64 overflow-y-auto", style: { padding: "var(--Spacing--Spacing-sm)" }, children: c.map((N, S) => /* @__PURE__ */ a(
1470
+ x && c.length > 0 && /* @__PURE__ */ e("div", { className: "absolute top-full left-0 right-0 mt-1 bg-popover border border-border rounded-[var(--radius-md)] shadow-elevation-sm z-50 overflow-hidden max-h-64 overflow-y-auto", style: { padding: "var(--Spacing--Spacing-sm)" }, children: c.map((N, k) => /* @__PURE__ */ a(
1471
1471
  "button",
1472
1472
  {
1473
1473
  onClick: () => {
1474
1474
  s == null || s(N), $(!1);
1475
1475
  },
1476
- className: `w-full text-left flex items-center rounded-[var(--radius-sm)] transition-colors cursor-pointer ${S === k ? "bg-[var(--Colors--Background--bg-brand-secondary)]" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}`,
1476
+ className: `w-full text-left flex items-center rounded-[var(--radius-sm)] transition-colors cursor-pointer ${k === S ? "bg-[var(--Colors--Background--bg-brand-secondary)]" : "hover:bg-[var(--Colors--Background--bg-primary_hover)]"}`,
1477
1477
  style: { padding: "var(--Spacing--Spacing-md) var(--Spacing--Spacing-2xl)", gap: "var(--Spacing--Spacing-lg)" },
1478
1478
  children: [
1479
1479
  N.icon && /* @__PURE__ */ e("span", { className: "text-muted-foreground flex-shrink-0", children: N.icon }),
1480
1480
  /* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
1481
- /* @__PURE__ */ e("span", { className: "text-foreground block truncate", style: I, children: N.label }),
1481
+ /* @__PURE__ */ e("span", { className: "text-foreground block truncate", style: E, children: N.label }),
1482
1482
  N.description && /* @__PURE__ */ e("span", { className: "text-muted-foreground block truncate", style: { marginTop: "var(--Spacing--Spacing-xxs)", ...C }, children: N.description })
1483
1483
  ] })
1484
1484
  ]
@@ -1505,42 +1505,42 @@ function Si({
1505
1505
  loading: f = !1,
1506
1506
  error: h,
1507
1507
  emptyMessage: v = "No data available",
1508
- stickyHeader: x = !1,
1508
+ stickyHeader: y = !1,
1509
1509
  flush: u = !1,
1510
1510
  className: p = ""
1511
1511
  }) {
1512
- const [b, g] = j(null), [$, k] = j("asc"), [m, y] = j(/* @__PURE__ */ new Set()), w = c ?? m, z = (A) => {
1513
- c || y(A), s == null || s(A);
1514
- }, W = se(() => b ? [...r].sort((A, E) => {
1515
- const R = A[b], _ = E[b];
1516
- if (R == null) return 1;
1517
- if (_ == null) return -1;
1518
- const B = typeof R == "string" ? R.localeCompare(_) : R - _;
1512
+ const [b, x] = j(null), [$, S] = j("asc"), [m, g] = j(/* @__PURE__ */ new Set()), w = c ?? m, z = (A) => {
1513
+ c || g(A), s == null || s(A);
1514
+ }, W = se(() => b ? [...r].sort((A, I) => {
1515
+ const _ = A[b], H = I[b];
1516
+ if (_ == null) return 1;
1517
+ if (H == null) return -1;
1518
+ const B = typeof _ == "string" ? _.localeCompare(H) : _ - H;
1519
1519
  return $ === "asc" ? B : -B;
1520
1520
  }) : r, [r, b, $]), M = (A) => {
1521
- b === A ? k((E) => E === "asc" ? "desc" : "asc") : (g(A), k("asc"));
1522
- }, F = r.length > 0 && w.size === r.length, L = w.size > 0 && !F, I = () => {
1523
- z(F ? /* @__PURE__ */ new Set() : new Set(r.map((A, E) => E)));
1521
+ b === A ? S((I) => I === "asc" ? "desc" : "asc") : (x(A), S("asc"));
1522
+ }, F = r.length > 0 && w.size === r.length, L = w.size > 0 && !F, E = () => {
1523
+ z(F ? /* @__PURE__ */ new Set() : new Set(r.map((A, I) => I)));
1524
1524
  }, C = (A) => {
1525
- const E = new Set(w);
1526
- E.has(A) ? E.delete(A) : E.add(A), z(E);
1527
- }, N = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, S = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)" };
1525
+ const I = new Set(w);
1526
+ I.has(A) ? I.delete(A) : I.add(A), z(I);
1527
+ }, N = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-label)" }, k = { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", fontWeight: "var(--weight-button)" };
1528
1528
  return /* @__PURE__ */ e("div", { className: `${u ? "" : "rounded-[var(--radius-md)] border border-border"} overflow-hidden ${p}`, children: /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ a("table", { className: "w-full border-collapse", children: [
1529
- /* @__PURE__ */ e("thead", { className: x ? "sticky top-0 z-10" : "", children: /* @__PURE__ */ a("tr", { className: "border-b border-border", style: { backgroundColor: "color-mix(in srgb, var(--muted) 30%, var(--background) 70%)" }, children: [
1529
+ /* @__PURE__ */ e("thead", { className: y ? "sticky top-0 z-10" : "", children: /* @__PURE__ */ a("tr", { className: "border-b border-border", style: { backgroundColor: "color-mix(in srgb, var(--muted) 30%, var(--background) 70%)" }, children: [
1530
1530
  d && /* @__PURE__ */ e("th", { className: `${Ee[n]} w-12`, children: /* @__PURE__ */ e(
1531
1531
  st,
1532
1532
  {
1533
1533
  size: "sm",
1534
1534
  checked: F,
1535
1535
  indeterminate: L,
1536
- onChange: I
1536
+ onChange: E
1537
1537
  }
1538
1538
  ) }),
1539
1539
  t.map((A) => /* @__PURE__ */ e(
1540
1540
  "th",
1541
1541
  {
1542
1542
  className: `${Ee[n]} text-${A.align ?? "left"} text-foreground ${A.sortable ? "cursor-pointer select-none hover:text-primary transition-colors" : ""} ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1543
- style: { ...S, width: A.width },
1543
+ style: { ...k, width: A.width },
1544
1544
  onClick: () => A.sortable && M(A.key),
1545
1545
  children: /* @__PURE__ */ a("span", { className: "inline-flex items-center gap-1", children: [
1546
1546
  A.header,
@@ -1553,33 +1553,33 @@ function Si({
1553
1553
  /* @__PURE__ */ e("tbody", { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center text-muted-foreground`, children: /* @__PURE__ */ a("div", { className: "flex items-center justify-center gap-2 py-8", children: [
1554
1554
  /* @__PURE__ */ e("div", { className: "w-5 h-5 border-2 border-primary border-t-transparent rounded-full animate-spin" }),
1555
1555
  /* @__PURE__ */ e("span", { style: N, children: "Loading..." })
1556
- ] }) }) }) : h ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center py-12`, children: /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e("span", { style: { ...N, color: "var(--destructive)" }, children: h }) }) }) }) : W.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center text-muted-foreground py-12`, children: /* @__PURE__ */ e("span", { style: N, children: v }) }) }) : W.map((A, E) => {
1557
- const R = w.has(E);
1556
+ ] }) }) }) : h ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center py-12`, children: /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-2", children: /* @__PURE__ */ e("span", { style: { ...N, color: "var(--destructive)" }, children: h }) }) }) }) : W.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: t.length + (d ? 1 : 0), className: `${Ee[n]} text-center text-muted-foreground py-12`, children: /* @__PURE__ */ e("span", { style: N, children: v }) }) }) : W.map((A, I) => {
1557
+ const _ = w.has(I);
1558
1558
  return /* @__PURE__ */ a(
1559
1559
  "tr",
1560
1560
  {
1561
- className: `border-b border-border last:border-b-0 transition-colors ${R ? "bg-primary/5" : o && E % 2 === 1 ? "bg-muted/20" : "bg-card"} ${l ? "hover:bg-[var(--row-hover-bg)]" : ""}`,
1561
+ className: `border-b border-border last:border-b-0 transition-colors ${_ ? "bg-primary/5" : o && I % 2 === 1 ? "bg-muted/20" : "bg-card"} ${l ? "hover:bg-[var(--row-hover-bg)]" : ""}`,
1562
1562
  children: [
1563
1563
  d && /* @__PURE__ */ e("td", { className: `${Ee[n]} w-12`, children: /* @__PURE__ */ e(
1564
1564
  st,
1565
1565
  {
1566
1566
  size: "sm",
1567
- checked: R,
1568
- onChange: () => C(E)
1567
+ checked: _,
1568
+ onChange: () => C(I)
1569
1569
  }
1570
1570
  ) }),
1571
- t.map((_) => /* @__PURE__ */ e(
1571
+ t.map((H) => /* @__PURE__ */ e(
1572
1572
  "td",
1573
1573
  {
1574
- className: `${Ee[n]} text-${_.align ?? "left"} text-foreground ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1574
+ className: `${Ee[n]} text-${H.align ?? "left"} text-foreground ${i ? "border-x border-border first:border-l-0 last:border-r-0" : ""}`,
1575
1575
  style: N,
1576
- children: _.render ? _.render(A[_.key], A, E) : A[_.key]
1576
+ children: H.render ? H.render(A[H.key], A, I) : A[H.key]
1577
1577
  },
1578
- _.key
1578
+ H.key
1579
1579
  ))
1580
1580
  ]
1581
1581
  },
1582
- E
1582
+ I
1583
1583
  );
1584
1584
  }) })
1585
1585
  ] }) }) });
@@ -1590,18 +1590,18 @@ const xo = {
1590
1590
  lg: { fontFamily: "var(--font-label)", fontSize: "var(--text-h4)", fontWeight: "var(--weight-p)", padding: "10px 20px" }
1591
1591
  };
1592
1592
  function ki({ tabs: t = [], variant: r = "default", size: n = "md", defaultTab: o, activeTab: l, onChange: i, fullWidth: d = !1, className: c = "" }) {
1593
- var k, m;
1594
- const [s, f] = j(o ?? ((k = t[0]) == null ? void 0 : k.id) ?? ""), h = l ?? s, v = V(null), [x, u] = j({ left: 0, width: 0 }), p = (y) => {
1595
- l || f(y), i == null || i(y);
1593
+ var S, m;
1594
+ const [s, f] = j(o ?? ((S = t[0]) == null ? void 0 : S.id) ?? ""), h = l ?? s, v = V(null), [y, u] = j({ left: 0, width: 0 }), p = (g) => {
1595
+ l || f(g), i == null || i(g);
1596
1596
  };
1597
1597
  ne(() => {
1598
1598
  if (r !== "underline" && r !== "default") return;
1599
- const y = v.current;
1600
- if (!y) return;
1601
- const w = y.querySelector(`[data-tab-id="${h}"]`);
1599
+ const g = v.current;
1600
+ if (!g) return;
1601
+ const w = g.querySelector(`[data-tab-id="${h}"]`);
1602
1602
  w && u({ left: w.offsetLeft, width: w.offsetWidth });
1603
1603
  }, [h, r]);
1604
- const b = (m = t.find((y) => y.id === h)) == null ? void 0 : m.content, g = (() => {
1604
+ const b = (m = t.find((g) => g.id === h)) == null ? void 0 : m.content, x = (() => {
1605
1605
  switch (r) {
1606
1606
  case "bordered":
1607
1607
  return "border border-border rounded-[var(--radius)] bg-muted/30 p-1 gap-1";
@@ -1612,55 +1612,55 @@ function ki({ tabs: t = [], variant: r = "default", size: n = "md", defaultTab:
1612
1612
  default:
1613
1613
  return "border-b border-border relative";
1614
1614
  }
1615
- })(), $ = (y, w) => {
1615
+ })(), $ = (g, w) => {
1616
1616
  const z = "relative flex items-center gap-1.5 transition-all cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-ring whitespace-nowrap";
1617
1617
  if (w) return `${z} opacity-40 !cursor-not-allowed`;
1618
1618
  switch (r) {
1619
1619
  case "bordered":
1620
- return `${z} rounded-[var(--radius-sm)] ${y ? "bg-card text-foreground shadow-elevation-sm" : "text-muted-foreground hover:text-foreground hover:bg-card/50"}`;
1620
+ return `${z} rounded-[var(--radius-sm)] ${g ? "bg-card text-foreground shadow-elevation-sm" : "text-muted-foreground hover:text-foreground hover:bg-card/50"}`;
1621
1621
  case "pills":
1622
- return `${z} rounded-[var(--radius)] ${y ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground hover:bg-muted"}`;
1622
+ return `${z} rounded-[var(--radius)] ${g ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground hover:bg-muted"}`;
1623
1623
  case "underline":
1624
- return `${z} ${y ? "text-primary" : "text-muted-foreground hover:text-foreground"}`;
1624
+ return `${z} ${g ? "text-primary" : "text-muted-foreground hover:text-foreground"}`;
1625
1625
  default:
1626
- return `${z} ${y ? "text-primary" : "text-muted-foreground hover:text-foreground"}`;
1626
+ return `${z} ${g ? "text-primary" : "text-muted-foreground hover:text-foreground"}`;
1627
1627
  }
1628
1628
  };
1629
1629
  return /* @__PURE__ */ a("div", { className: c, children: [
1630
- /* @__PURE__ */ a("div", { ref: v, className: `flex ${d ? "" : "inline-flex"} ${g}`, role: "tablist", children: [
1630
+ /* @__PURE__ */ a("div", { ref: v, className: `flex ${d ? "" : "inline-flex"} ${x}`, role: "tablist", children: [
1631
1631
  (r === "default" || r === "underline") && /* @__PURE__ */ e(
1632
1632
  "div",
1633
1633
  {
1634
1634
  className: "absolute bottom-0 h-0.5 bg-primary transition-all duration-200 rounded-full",
1635
- style: { left: x.left, width: x.width }
1635
+ style: { left: y.left, width: y.width }
1636
1636
  }
1637
1637
  ),
1638
- t.map((y) => {
1639
- const w = h === y.id;
1638
+ t.map((g) => {
1639
+ const w = h === g.id;
1640
1640
  return /* @__PURE__ */ a(
1641
1641
  "button",
1642
1642
  {
1643
- "data-tab-id": y.id,
1643
+ "data-tab-id": g.id,
1644
1644
  role: "tab",
1645
1645
  "aria-selected": w,
1646
- disabled: y.disabled,
1647
- onClick: () => !y.disabled && p(y.id),
1648
- className: `${$(w, !!y.disabled)} ${d ? "flex-1 justify-center" : ""}`,
1646
+ disabled: g.disabled,
1647
+ onClick: () => !g.disabled && p(g.id),
1648
+ className: `${$(w, !!g.disabled)} ${d ? "flex-1 justify-center" : ""}`,
1649
1649
  style: xo[n],
1650
1650
  children: [
1651
- y.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: y.icon }),
1652
- /* @__PURE__ */ e("span", { children: y.label }),
1653
- y.badge !== void 0 && /* @__PURE__ */ e(
1651
+ g.icon && /* @__PURE__ */ e("span", { className: "flex-shrink-0", children: g.icon }),
1652
+ /* @__PURE__ */ e("span", { children: g.label }),
1653
+ g.badge !== void 0 && /* @__PURE__ */ e(
1654
1654
  "span",
1655
1655
  {
1656
1656
  className: `ml-1 rounded-full min-w-[18px] text-center inline-flex items-center justify-center ${w && r === "pills" ? "bg-primary-foreground/20 text-primary-foreground" : "bg-muted text-muted-foreground"}`,
1657
1657
  style: { fontFamily: "var(--font-label)", fontSize: "var(--text-caption)", fontWeight: "var(--weight-caption)", lineHeight: "1", padding: "1px 6px" },
1658
- children: y.badge
1658
+ children: g.badge
1659
1659
  }
1660
1660
  )
1661
1661
  ]
1662
1662
  },
1663
- y.id
1663
+ g.id
1664
1664
  );
1665
1665
  })
1666
1666
  ] }),
@@ -1712,12 +1712,12 @@ function No({
1712
1712
  typeof n == "string" ? n : null
1713
1713
  ), [s, f] = j(
1714
1714
  Array.isArray(n) ? new Set(n) : /* @__PURE__ */ new Set()
1715
- ), h = o !== void 0, v = (u) => h ? t === "single" ? o === u : Array.isArray(o) && o.includes(u) : t === "single" ? d === u : s.has(u), x = (u) => {
1715
+ ), h = o !== void 0, v = (u) => h ? t === "single" ? o === u : Array.isArray(o) && o.includes(u) : t === "single" ? d === u : s.has(u), y = (u) => {
1716
1716
  if (t === "single") {
1717
1717
  const p = (h ? o === u : d === u) ? null : u;
1718
1718
  h || c(p), l == null || l(p);
1719
1719
  } else if (h) {
1720
- const p = Array.isArray(o) ? o : [], b = p.includes(u) ? p.filter((g) => g !== u) : [...p, u];
1720
+ const p = Array.isArray(o) ? o : [], b = p.includes(u) ? p.filter((x) => x !== u) : [...p, u];
1721
1721
  l == null || l(b);
1722
1722
  } else
1723
1723
  f((p) => {
@@ -1730,7 +1730,7 @@ function No({
1730
1730
  {
1731
1731
  title: u.title,
1732
1732
  open: v(u.id),
1733
- onToggle: () => x(u.id),
1733
+ onToggle: () => y(u.id),
1734
1734
  icon: u.icon,
1735
1735
  disabled: u.disabled,
1736
1736
  children: u.content
@@ -1957,7 +1957,7 @@ function Fi({
1957
1957
  size: d = "md",
1958
1958
  disabled: c = !1
1959
1959
  }) {
1960
- const [s, f] = j(!1), h = V(null), v = d === "sm" ? "w-5 h-5" : d === "lg" ? "w-8 h-8" : "w-6 h-6", x = o || Io, u = (p) => {
1960
+ const [s, f] = j(!1), h = V(null), v = d === "sm" ? "w-5 h-5" : d === "lg" ? "w-8 h-8" : "w-6 h-6", y = o || Io, u = (p) => {
1961
1961
  navigator.clipboard.writeText(p).then(() => {
1962
1962
  f(!0), setTimeout(() => f(!1), 1500);
1963
1963
  });
@@ -2011,7 +2011,7 @@ function Fi({
2011
2011
  )
2012
2012
  ] })
2013
2013
  ] }),
2014
- x.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1.5", children: x.map((p) => /* @__PURE__ */ e(
2014
+ y.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1.5", children: y.map((p) => /* @__PURE__ */ e(
2015
2015
  "button",
2016
2016
  {
2017
2017
  onClick: () => r(p),
@@ -2187,33 +2187,33 @@ const Go = {
2187
2187
  size: f = "md",
2188
2188
  variant: h = "default",
2189
2189
  state: v = "default",
2190
- disabled: x = !1,
2190
+ disabled: y = !1,
2191
2191
  loading: u = !1,
2192
2192
  searchable: p = !1,
2193
2193
  clearable: b = !1,
2194
- multiple: g = !1,
2194
+ multiple: x = !1,
2195
2195
  maxSelections: $,
2196
- grouped: k = !1,
2196
+ grouped: S = !1,
2197
2197
  required: m = !1,
2198
- id: y,
2198
+ id: g,
2199
2199
  className: w = "",
2200
2200
  showSelectAll: z = !1,
2201
2201
  tagLimit: W,
2202
2202
  creatable: M = !1,
2203
2203
  onCreateOption: F,
2204
2204
  createLabel: L = 'Create "{query}"',
2205
- emptyState: I,
2205
+ emptyState: E,
2206
2206
  footer: C,
2207
2207
  onSearch: N,
2208
- searchDebounce: S = 300,
2208
+ searchDebounce: k = 300,
2209
2209
  searchLoading: A = !1,
2210
- renderOption: E
2211
- }, R) => {
2212
- const [_, B] = j(!1), [q, H] = j(""), [K, ae] = j(-1), [G, re] = j(
2213
- n ?? (g ? [] : "")
2210
+ renderOption: I
2211
+ }, _) => {
2212
+ const [H, B] = j(!1), [q, R] = j(""), [K, ae] = j(-1), [G, re] = j(
2213
+ n ?? (x ? [] : "")
2214
2214
  ), Y = r ?? G, T = V(null), J = V(null), X = V(null), ue = V(null), [ze, Ye] = j({ top: 0, left: 0, width: 0 }), Z = Go[f], Fe = Uo[h];
2215
2215
  ne(() => {
2216
- if (!_ || !T.current) return;
2216
+ if (!H || !T.current) return;
2217
2217
  const D = () => {
2218
2218
  const P = T.current.getBoundingClientRect();
2219
2219
  Ye({ top: P.bottom + 4, left: P.left, width: P.width });
@@ -2221,14 +2221,14 @@ const Go = {
2221
2221
  return D(), window.addEventListener("scroll", D, !0), window.addEventListener("resize", D), () => {
2222
2222
  window.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D);
2223
2223
  };
2224
- }, [_]);
2224
+ }, [H]);
2225
2225
  const Le = Q(
2226
2226
  (D) => {
2227
- H(D), N && (ue.current && clearTimeout(ue.current), ue.current = setTimeout(() => {
2227
+ R(D), N && (ue.current && clearTimeout(ue.current), ue.current = setTimeout(() => {
2228
2228
  N(D);
2229
- }, S));
2229
+ }, k));
2230
2230
  },
2231
- [N, S]
2231
+ [N, k]
2232
2232
  );
2233
2233
  ne(() => () => {
2234
2234
  ue.current && clearTimeout(ue.current);
@@ -2239,24 +2239,24 @@ const Go = {
2239
2239
  return D.label.toLowerCase().includes(q.toLowerCase()) || ((P = D.description) == null ? void 0 : P.toLowerCase().includes(q.toLowerCase()));
2240
2240
  }
2241
2241
  ), [t, q, N]), Te = se(() => {
2242
- if (!k) return null;
2242
+ if (!S) return null;
2243
2243
  const D = {};
2244
2244
  return xe.forEach((P) => {
2245
2245
  const U = P.group || "Other";
2246
2246
  D[U] || (D[U] = []), D[U].push(P);
2247
2247
  }), D;
2248
- }, [xe, k]), Ve = se(() => {
2248
+ }, [xe, S]), Ve = se(() => {
2249
2249
  var D;
2250
- return g && Array.isArray(Y) ? Y.map((P) => {
2250
+ return x && Array.isArray(Y) ? Y.map((P) => {
2251
2251
  var U;
2252
2252
  return (U = t.find((_e) => _e.value === P)) == null ? void 0 : U.label;
2253
2253
  }).filter(Boolean) : (D = t.find((P) => P.value === Y)) != null && D.label ? [t.find((P) => P.value === Y).label] : [];
2254
- }, [Y, t, g]), mt = Q(
2255
- (D) => g && Array.isArray(Y) ? Y.includes(D) : Y === D,
2256
- [Y, g]
2254
+ }, [Y, t, x]), mt = Q(
2255
+ (D) => x && Array.isArray(Y) ? Y.includes(D) : Y === D,
2256
+ [Y, x]
2257
2257
  ), Ce = Q(
2258
2258
  (D) => {
2259
- if (g) {
2259
+ if (x) {
2260
2260
  const P = Array.isArray(Y) ? [...Y] : [], U = P.indexOf(D);
2261
2261
  if (U > -1)
2262
2262
  P.splice(U, 1);
@@ -2267,14 +2267,14 @@ const Go = {
2267
2267
  re(P), o == null || o(P);
2268
2268
  } else
2269
2269
  re(D), o == null || o(D), B(!1);
2270
- H("");
2270
+ R("");
2271
2271
  },
2272
- [Y, g, $, o]
2272
+ [Y, x, $, o]
2273
2273
  ), le = se(
2274
2274
  () => xe.filter((D) => !D.disabled).map((D) => D.value),
2275
2275
  [xe]
2276
- ), he = se(() => !g || !Array.isArray(Y) ? !1 : le.length > 0 && le.every((D) => Y.includes(D)), [g, Y, le]), O = se(() => !g || !Array.isArray(Y) ? !1 : le.some((D) => Y.includes(D)) && !he, [g, Y, le, he]), ee = Q(() => {
2277
- if (g)
2276
+ ), he = se(() => !x || !Array.isArray(Y) ? !1 : le.length > 0 && le.every((D) => Y.includes(D)), [x, Y, le]), O = se(() => !x || !Array.isArray(Y) ? !1 : le.some((D) => Y.includes(D)) && !he, [x, Y, le, he]), ee = Q(() => {
2277
+ if (x)
2278
2278
  if (he) {
2279
2279
  const D = Array.isArray(Y) ? Y.filter((P) => !le.includes(P)) : [];
2280
2280
  re(D), o == null || o(D);
@@ -2287,22 +2287,22 @@ const Go = {
2287
2287
  }
2288
2288
  re(D), o == null || o(D);
2289
2289
  }
2290
- }, [g, he, Y, le, $, o]), ye = Q(() => {
2291
- q.trim() && (F == null || F(q.trim()), H(""));
2290
+ }, [x, he, Y, le, $, o]), ye = Q(() => {
2291
+ q.trim() && (F == null || F(q.trim()), R(""));
2292
2292
  }, [q, F]), oe = se(() => !M || !q.trim() ? !1 : !t.some((D) => D.label.toLowerCase() === q.toLowerCase()), [M, q, t]), je = Q(
2293
2293
  (D) => {
2294
2294
  D.stopPropagation();
2295
- const P = g ? [] : "";
2295
+ const P = x ? [] : "";
2296
2296
  re(P), o == null || o(P);
2297
2297
  },
2298
- [g, o]
2299
- ), be = k ? Object.values(Te || {}).flat() : xe, De = Q(
2298
+ [x, o]
2299
+ ), be = S ? Object.values(Te || {}).flat() : xe, De = Q(
2300
2300
  (D) => {
2301
2301
  var P;
2302
- if (!(x || u))
2302
+ if (!(y || u))
2303
2303
  switch (D.key) {
2304
2304
  case "ArrowDown":
2305
- D.preventDefault(), _ ? ae(
2305
+ D.preventDefault(), H ? ae(
2306
2306
  (U) => U < be.length - 1 ? U + 1 : 0
2307
2307
  ) : B(!0);
2308
2308
  break;
@@ -2313,7 +2313,7 @@ const Go = {
2313
2313
  break;
2314
2314
  case "Enter":
2315
2315
  case " ":
2316
- if (D.preventDefault(), _ && K >= 0) {
2316
+ if (D.preventDefault(), H && K >= 0) {
2317
2317
  const U = be[K];
2318
2318
  U && !U.disabled && Ce(U.value);
2319
2319
  } else
@@ -2324,21 +2324,21 @@ const Go = {
2324
2324
  break;
2325
2325
  }
2326
2326
  },
2327
- [x, u, _, K, be, Ce]
2327
+ [y, u, H, K, be, Ce]
2328
2328
  );
2329
2329
  ne(() => {
2330
2330
  const D = (P) => {
2331
2331
  const U = P.target;
2332
- T.current && !T.current.contains(U) && J.current && !J.current.contains(U) && (B(!1), H(""));
2332
+ T.current && !T.current.contains(U) && J.current && !J.current.contains(U) && (B(!1), R(""));
2333
2333
  };
2334
2334
  return document.addEventListener("mousedown", D), () => document.removeEventListener("mousedown", D);
2335
2335
  }, []), ne(() => {
2336
- _ && p && setTimeout(() => {
2336
+ H && p && setTimeout(() => {
2337
2337
  var D;
2338
2338
  return (D = X.current) == null ? void 0 : D.focus();
2339
- }, 50), _ && ae(-1);
2340
- }, [_, p]);
2341
- const Ae = g ? Array.isArray(Y) && Y.length > 0 : !!Y, Be = c ? "error" : v, rn = () => {
2339
+ }, 50), H && ae(-1);
2340
+ }, [H, p]);
2341
+ const Ae = x ? Array.isArray(Y) && Y.length > 0 : !!Y, Be = c ? "error" : v, rn = () => {
2342
2342
  const D = Ve, P = W && W > 0 ? W : D.length, U = D.slice(0, P), _e = D.length - U.length;
2343
2343
  return /* @__PURE__ */ a("span", { className: "flex flex-wrap gap-1", children: [
2344
2344
  U.map((ht) => /* @__PURE__ */ a(
@@ -2379,7 +2379,7 @@ const Go = {
2379
2379
  ] });
2380
2380
  }, Ht = (D, P) => {
2381
2381
  const U = mt(D.value);
2382
- return E ? /* @__PURE__ */ e(
2382
+ return I ? /* @__PURE__ */ e(
2383
2383
  "button",
2384
2384
  {
2385
2385
  type: "button",
@@ -2394,7 +2394,7 @@ const Go = {
2394
2394
  style: Z.optionStyle,
2395
2395
  onClick: () => !D.disabled && Ce(D.value),
2396
2396
  onMouseEnter: () => ae(P),
2397
- children: E(D, U)
2397
+ children: I(D, U)
2398
2398
  },
2399
2399
  D.value
2400
2400
  ) : /* @__PURE__ */ a(
@@ -2413,7 +2413,7 @@ const Go = {
2413
2413
  onClick: () => !D.disabled && Ce(D.value),
2414
2414
  onMouseEnter: () => ae(P),
2415
2415
  children: [
2416
- g && /* @__PURE__ */ e(
2416
+ x && /* @__PURE__ */ e(
2417
2417
  "span",
2418
2418
  {
2419
2419
  className: `flex-shrink-0 w-4 h-4 rounded-[var(--radius-sm)] border flex items-center justify-center transition-colors
@@ -2443,14 +2443,14 @@ const Go = {
2443
2443
  }
2444
2444
  )
2445
2445
  ] }),
2446
- !g && U && /* @__PURE__ */ e(me, { size: Z.icon, className: "text-primary flex-shrink-0" })
2446
+ !x && U && /* @__PURE__ */ e(me, { size: Z.icon, className: "text-primary flex-shrink-0" })
2447
2447
  ]
2448
2448
  },
2449
2449
  D.value
2450
2450
  );
2451
2451
  };
2452
2452
  let Rt = 0;
2453
- return /* @__PURE__ */ a("div", { ref: R, className: `relative w-full ${w}`, id: y, children: [
2453
+ return /* @__PURE__ */ a("div", { ref: _, className: `relative w-full ${w}`, id: g, children: [
2454
2454
  i && /* @__PURE__ */ a(
2455
2455
  "label",
2456
2456
  {
@@ -2468,24 +2468,24 @@ const Go = {
2468
2468
  ref: T,
2469
2469
  type: "button",
2470
2470
  role: "combobox",
2471
- "aria-expanded": _,
2471
+ "aria-expanded": H,
2472
2472
  "aria-haspopup": "listbox",
2473
- disabled: x || u,
2474
- onClick: () => !x && !u && B(!_),
2473
+ disabled: y || u,
2474
+ onClick: () => !y && !u && B(!H),
2475
2475
  onKeyDown: De,
2476
2476
  className: `w-full flex items-center rounded-[var(--radius-md)] transition-all duration-150 ${Z.trigger}
2477
2477
  ${Fe.base}
2478
- ${!x && !u ? Fe.hover : ""}
2479
- ${_ ? Fe.focus : ""}
2480
- ${x ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
2478
+ ${!y && !u ? Fe.hover : ""}
2479
+ ${H ? Fe.focus : ""}
2480
+ ${y ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
2481
2481
  ${u ? "opacity-70 cursor-wait" : ""}
2482
2482
  ${Ko[Be]}
2483
2483
  `,
2484
2484
  style: Z.textStyle,
2485
2485
  children: [
2486
2486
  u ? /* @__PURE__ */ e(Ze, { size: Z.icon, className: "animate-spin text-muted-foreground" }) : null,
2487
- /* @__PURE__ */ e("span", { className: `flex-1 text-left min-w-0 ${g ? "" : "truncate"} ${Ae ? "text-foreground" : "text-muted-foreground"}`, children: Ae ? g ? rn() : Ve[0] : l }),
2488
- b && Ae && !x && /* @__PURE__ */ e(
2487
+ /* @__PURE__ */ e("span", { className: `flex-1 text-left min-w-0 ${x ? "" : "truncate"} ${Ae ? "text-foreground" : "text-muted-foreground"}`, children: Ae ? x ? rn() : Ve[0] : l }),
2488
+ b && Ae && !y && /* @__PURE__ */ e(
2489
2489
  ie,
2490
2490
  {
2491
2491
  size: Z.icon,
@@ -2497,13 +2497,13 @@ const Go = {
2497
2497
  Ie,
2498
2498
  {
2499
2499
  size: Z.icon,
2500
- className: `flex-shrink-0 text-muted-foreground transition-transform duration-200 ${_ ? "rotate-180" : ""}`
2500
+ className: `flex-shrink-0 text-muted-foreground transition-transform duration-200 ${H ? "rotate-180" : ""}`
2501
2501
  }
2502
2502
  )
2503
2503
  ]
2504
2504
  }
2505
2505
  ),
2506
- _ && Qe(
2506
+ H && Qe(
2507
2507
  /* @__PURE__ */ a(
2508
2508
  "div",
2509
2509
  {
@@ -2528,7 +2528,7 @@ const Go = {
2528
2528
  }
2529
2529
  )
2530
2530
  ] }) }),
2531
- g && z && xe.length > 0 && /* @__PURE__ */ a(
2531
+ x && z && xe.length > 0 && /* @__PURE__ */ a(
2532
2532
  "button",
2533
2533
  {
2534
2534
  type: "button",
@@ -2568,10 +2568,10 @@ const Go = {
2568
2568
  A ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center py-6 gap-2 text-muted-foreground", children: [
2569
2569
  /* @__PURE__ */ e(Ze, { size: 16, className: "animate-spin" }),
2570
2570
  /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: "Searching\\u2026" })
2571
- ] }) : xe.length === 0 && !oe ? I ? /* @__PURE__ */ e("div", { className: "py-4 px-3", children: I }) : /* @__PURE__ */ a("div", { className: "text-center py-6 text-muted-foreground flex flex-col items-center gap-2", children: [
2571
+ ] }) : xe.length === 0 && !oe ? E ? /* @__PURE__ */ e("div", { className: "py-4 px-3", children: E }) : /* @__PURE__ */ a("div", { className: "text-center py-6 text-muted-foreground flex flex-col items-center gap-2", children: [
2572
2572
  /* @__PURE__ */ e(cn, { size: 24, className: "opacity-40" }),
2573
2573
  /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)" }, children: "No options found" })
2574
- ] }) : k && Te ? Object.entries(Te).map(([D, P]) => /* @__PURE__ */ a("div", { children: [
2574
+ ] }) : S && Te ? Object.entries(Te).map(([D, P]) => /* @__PURE__ */ a("div", { children: [
2575
2575
  /* @__PURE__ */ e(
2576
2576
  "div",
2577
2577
  {
@@ -2599,8 +2599,8 @@ const Go = {
2599
2599
  }
2600
2600
  )
2601
2601
  ] }),
2602
- (C || g && $) && /* @__PURE__ */ a("div", { className: "border-t border-border", children: [
2603
- g && $ && /* @__PURE__ */ a(
2602
+ (C || x && $) && /* @__PURE__ */ a("div", { className: "border-t border-border", children: [
2603
+ x && $ && /* @__PURE__ */ a(
2604
2604
  "div",
2605
2605
  {
2606
2606
  className: "px-3 py-2 text-muted-foreground",
@@ -2767,11 +2767,11 @@ function Mi({
2767
2767
  onUpload: f,
2768
2768
  onRemove: h
2769
2769
  }) {
2770
- const [v, x] = j([]), [u, p] = j(!1), b = V(null), g = c ?? v, $ = (m) => {
2770
+ const [v, y] = j([]), [u, p] = j(!1), b = V(null), x = c ?? v, $ = (m) => {
2771
2771
  if (!m) return;
2772
- const y = Array.from(m);
2773
- if (s && s(y), c === void 0) {
2774
- const w = y.map((z) => ({
2772
+ const g = Array.from(m);
2773
+ if (s && s(g), c === void 0) {
2774
+ const w = g.map((z) => ({
2775
2775
  id: Math.random().toString(36).slice(2),
2776
2776
  name: z.name,
2777
2777
  size: z.size,
@@ -2779,10 +2779,10 @@ function Mi({
2779
2779
  progress: 0,
2780
2780
  status: "uploading"
2781
2781
  }));
2782
- x((z) => [...z, ...w]), w.forEach((z) => {
2782
+ y((z) => [...z, ...w]), w.forEach((z) => {
2783
2783
  let W = 0;
2784
2784
  const M = setInterval(() => {
2785
- W += Math.random() * 30 + 10, W >= 100 && (W = 100, clearInterval(M)), x(
2785
+ W += Math.random() * 30 + 10, W >= 100 && (W = 100, clearInterval(M)), y(
2786
2786
  (F) => F.map(
2787
2787
  (L) => L.id === z.id ? {
2788
2788
  ...L,
@@ -2794,8 +2794,8 @@ function Mi({
2794
2794
  }, 300);
2795
2795
  });
2796
2796
  }
2797
- }, k = (m) => {
2798
- h && h(m), c === void 0 && x((y) => y.filter((w) => w.id !== m));
2797
+ }, S = (m) => {
2798
+ h && h(m), c === void 0 && y((g) => g.filter((w) => w.id !== m));
2799
2799
  };
2800
2800
  return l === "button" ? /* @__PURE__ */ a("div", { className: "space-y-3", children: [
2801
2801
  i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: tt, children: i }),
@@ -2827,7 +2827,7 @@ function Mi({
2827
2827
  onChange: (m) => $(m.target.files)
2828
2828
  }
2829
2829
  ),
2830
- g.length > 0 && /* @__PURE__ */ e(Vt, { files: g, onRemove: k })
2830
+ x.length > 0 && /* @__PURE__ */ e(Vt, { files: x, onRemove: S })
2831
2831
  ] }) : l === "avatar" ? /* @__PURE__ */ a("div", { className: "space-y-2", children: [
2832
2832
  i && /* @__PURE__ */ e("label", { className: "block text-foreground", style: tt, children: i }),
2833
2833
  /* @__PURE__ */ e(
@@ -2839,7 +2839,7 @@ function Mi({
2839
2839
  },
2840
2840
  className: `w-24 h-24 rounded-full border-2 border-dashed flex items-center justify-center cursor-pointer transition-colors
2841
2841
  ${o ? "opacity-50 pointer-events-none" : ""} ${u ? "border-primary bg-primary/5" : "border-border hover:border-primary/40"}`,
2842
- children: g.length > 0 && g[g.length - 1].status === "done" ? /* @__PURE__ */ e($e, { size: 24, className: "text-chart-2" }) : /* @__PURE__ */ e(nt, { size: 20, className: "text-muted-foreground" })
2842
+ children: x.length > 0 && x[x.length - 1].status === "done" ? /* @__PURE__ */ e($e, { size: 24, className: "text-chart-2" }) : /* @__PURE__ */ e(nt, { size: 20, className: "text-muted-foreground" })
2843
2843
  }
2844
2844
  ),
2845
2845
  /* @__PURE__ */ e(
@@ -2897,7 +2897,7 @@ function Mi({
2897
2897
  onChange: (m) => $(m.target.files)
2898
2898
  }
2899
2899
  ),
2900
- g.length > 0 && /* @__PURE__ */ e(Vt, { files: g, onRemove: k })
2900
+ x.length > 0 && /* @__PURE__ */ e(Vt, { files: x, onRemove: S })
2901
2901
  ] });
2902
2902
  }
2903
2903
  const Vo = {
@@ -2911,12 +2911,12 @@ const Vo = {
2911
2911
  };
2912
2912
  function Li({ images: t, initialIndex: r = 0 }) {
2913
2913
  const [n, o] = j(!1), [l, i] = j(r), [d, c] = j(1), [s, f] = j(0), h = t[l], v = () => {
2914
- i((g) => (g - 1 + t.length) % t.length), c(1), f(0);
2915
- }, x = () => {
2916
- i((g) => (g + 1) % t.length), c(1), f(0);
2917
- }, u = () => c((g) => Math.min(g + 0.25, 3)), p = () => c((g) => Math.max(g - 0.25, 0.5)), b = () => f((g) => (g + 90) % 360);
2914
+ i((x) => (x - 1 + t.length) % t.length), c(1), f(0);
2915
+ }, y = () => {
2916
+ i((x) => (x + 1) % t.length), c(1), f(0);
2917
+ }, u = () => c((x) => Math.min(x + 0.25, 3)), p = () => c((x) => Math.max(x - 0.25, 0.5)), b = () => f((x) => (x + 90) % 360);
2918
2918
  return /* @__PURE__ */ a("div", { children: [
2919
- /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: t.map((g, $) => /* @__PURE__ */ e(
2919
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: t.map((x, $) => /* @__PURE__ */ e(
2920
2920
  "button",
2921
2921
  {
2922
2922
  onClick: () => {
@@ -2927,8 +2927,8 @@ function Li({ images: t, initialIndex: r = 0 }) {
2927
2927
  children: /* @__PURE__ */ e("div", { className: "w-20 h-20 bg-muted flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ e(
2928
2928
  "img",
2929
2929
  {
2930
- src: g.thumbnail || g.src,
2931
- alt: g.alt,
2930
+ src: x.thumbnail || x.src,
2931
+ alt: x.alt,
2932
2932
  className: "w-full h-full object-cover",
2933
2933
  loading: "lazy"
2934
2934
  }
@@ -3003,8 +3003,8 @@ function Li({ images: t, initialIndex: r = 0 }) {
3003
3003
  "div",
3004
3004
  {
3005
3005
  className: "flex-1 flex items-center justify-center relative overflow-hidden",
3006
- onClick: (g) => {
3007
- g.target === g.currentTarget && (o(!1), c(1), f(0));
3006
+ onClick: (x) => {
3007
+ x.target === x.currentTarget && (o(!1), c(1), f(0));
3008
3008
  },
3009
3009
  children: [
3010
3010
  t.length > 1 && /* @__PURE__ */ e(
@@ -3030,7 +3030,7 @@ function Li({ images: t, initialIndex: r = 0 }) {
3030
3030
  t.length > 1 && /* @__PURE__ */ e(
3031
3031
  "button",
3032
3032
  {
3033
- onClick: x,
3033
+ onClick: y,
3034
3034
  "aria-label": "Next image",
3035
3035
  className: "absolute right-4 w-10 h-10 rounded-full bg-foreground/30 text-primary-foreground flex items-center justify-center hover:bg-foreground/50 cursor-pointer z-10",
3036
3036
  children: /* @__PURE__ */ e(fe, { size: 20 })
@@ -3039,7 +3039,7 @@ function Li({ images: t, initialIndex: r = 0 }) {
3039
3039
  ]
3040
3040
  }
3041
3041
  ),
3042
- t.length > 1 && /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2 py-3 bg-foreground/20", children: t.map((g, $) => /* @__PURE__ */ e(
3042
+ t.length > 1 && /* @__PURE__ */ e("div", { className: "flex items-center justify-center gap-2 py-3 bg-foreground/20", children: t.map((x, $) => /* @__PURE__ */ e(
3043
3043
  "button",
3044
3044
  {
3045
3045
  onClick: () => {
@@ -3050,8 +3050,8 @@ function Li({ images: t, initialIndex: r = 0 }) {
3050
3050
  children: /* @__PURE__ */ e(
3051
3051
  "img",
3052
3052
  {
3053
- src: g.thumbnail || g.src,
3054
- alt: g.alt,
3053
+ src: x.thumbnail || x.src,
3054
+ alt: x.alt,
3055
3055
  className: "w-full h-full object-cover"
3056
3056
  }
3057
3057
  )
@@ -3261,7 +3261,7 @@ function Ci({
3261
3261
  n && n(), c || d((u) => u.map((p) => ({ ...p, read: !0 })));
3262
3262
  }, v = (u) => {
3263
3263
  o && o(u), c || d((p) => p.filter((b) => b.id !== u));
3264
- }, x = (u) => {
3264
+ }, y = (u) => {
3265
3265
  r && r(u), c || d(
3266
3266
  (p) => p.map((b) => b.id === u ? { ...b, read: !0 } : b)
3267
3267
  );
@@ -3305,7 +3305,7 @@ function Ci({
3305
3305
  "div",
3306
3306
  {
3307
3307
  className: `px-3 py-2 ${u.read ? "" : "bg-primary/5"}`,
3308
- onClick: () => !u.read && x(u.id),
3308
+ onClick: () => !u.read && y(u.id),
3309
3309
  children: /* @__PURE__ */ e(
3310
3310
  ia,
3311
3311
  {
@@ -3340,15 +3340,15 @@ function ji({
3340
3340
  open: l,
3341
3341
  onOpenChange: i
3342
3342
  }) {
3343
- const [d, c] = j(!1), s = l !== void 0 ? l : d, f = (x) => {
3344
- i == null || i(x), l === void 0 && c(x);
3343
+ const [d, c] = j(!1), s = l !== void 0 ? l : d, f = (y) => {
3344
+ i == null || i(y), l === void 0 && c(y);
3345
3345
  }, h = V(null);
3346
3346
  return ne(() => {
3347
3347
  if (!s) return;
3348
- const x = (u) => {
3348
+ const y = (u) => {
3349
3349
  h.current && !h.current.contains(u.target) && f(!1);
3350
3350
  };
3351
- return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
3351
+ return document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
3352
3352
  }, [s]), /* @__PURE__ */ a("div", { className: "relative inline-block", ref: h, children: [
3353
3353
  /* @__PURE__ */ e("div", { onClick: () => f(!s), className: "cursor-pointer", children: t }),
3354
3354
  s && /* @__PURE__ */ e(
@@ -3445,23 +3445,23 @@ function Di({
3445
3445
  showValue: c,
3446
3446
  label: s
3447
3447
  }) {
3448
- const [f, h] = j(0), v = o === "sm" ? 16 : o === "lg" ? 28 : 20, x = o === "sm" ? "gap-0.5" : o === "lg" ? "gap-1.5" : "gap-1", u = d === "heart" ? vn : d === "thumb" ? xn : yn, p = d === "heart" ? "text-destructive" : "text-chart-5", b = Array.from({ length: n }, (g, $) => $ + 1);
3448
+ const [f, h] = j(0), v = o === "sm" ? 16 : o === "lg" ? 28 : 20, y = o === "sm" ? "gap-0.5" : o === "lg" ? "gap-1.5" : "gap-1", u = d === "heart" ? vn : d === "thumb" ? xn : yn, p = d === "heart" ? "text-destructive" : "text-chart-5", b = Array.from({ length: n }, (x, $) => $ + 1);
3449
3449
  return /* @__PURE__ */ a(
3450
3450
  "div",
3451
3451
  {
3452
- className: `inline-flex items-center ${x} ${l ? "opacity-50 pointer-events-none" : ""}`,
3452
+ className: `inline-flex items-center ${y} ${l ? "opacity-50 pointer-events-none" : ""}`,
3453
3453
  children: [
3454
3454
  s && /* @__PURE__ */ e("span", { className: "text-foreground mr-2", style: fa, children: s }),
3455
- b.map((g) => {
3456
- const $ = g <= (f || t);
3455
+ b.map((x) => {
3456
+ const $ = x <= (f || t);
3457
3457
  return /* @__PURE__ */ e(
3458
3458
  "button",
3459
3459
  {
3460
3460
  type: "button",
3461
3461
  className: `transition-transform ${i || l ? "" : "cursor-pointer hover:scale-110"} ${$ ? p : "text-muted-foreground/40"}`,
3462
- onMouseEnter: () => !i && !l && h(g),
3462
+ onMouseEnter: () => !i && !l && h(x),
3463
3463
  onMouseLeave: () => h(0),
3464
- onClick: () => !i && !l && (r == null ? void 0 : r(g === t ? 0 : g)),
3464
+ onClick: () => !i && !l && (r == null ? void 0 : r(x === t ? 0 : x)),
3465
3465
  disabled: l || i,
3466
3466
  children: /* @__PURE__ */ e(
3467
3467
  u,
@@ -3471,7 +3471,7 @@ function Di({
3471
3471
  }
3472
3472
  )
3473
3473
  },
3474
- g
3474
+ x
3475
3475
  );
3476
3476
  }),
3477
3477
  c && /* @__PURE__ */ a("span", { className: "text-foreground ml-1", style: ma, children: [
@@ -3497,8 +3497,8 @@ function Br({
3497
3497
  const [l, i] = j(!1), [d, c] = j({ top: 0, left: 0 }), s = V(null), f = () => {
3498
3498
  if (!s.current) return;
3499
3499
  const p = s.current.getBoundingClientRect(), b = 8;
3500
- let g = 0, $ = 0;
3501
- n === "right" ? (g = p.top + p.height / 2, $ = p.right + b) : n === "left" ? (g = p.top + p.height / 2, $ = p.left - b) : n === "bottom" ? (g = p.bottom + b, $ = p.left + p.width / 2) : (g = p.top - b, $ = p.left + p.width / 2), c({ top: g, left: $ });
3500
+ let x = 0, $ = 0;
3501
+ n === "right" ? (x = p.top + p.height / 2, $ = p.right + b) : n === "left" ? (x = p.top + p.height / 2, $ = p.left - b) : n === "bottom" ? (x = p.bottom + b, $ = p.left + p.width / 2) : (x = p.top - b, $ = p.left + p.width / 2), c({ top: x, left: $ });
3502
3502
  }, h = () => {
3503
3503
  f(), i(!0);
3504
3504
  }, v = () => i(!1);
@@ -3509,7 +3509,7 @@ function Br({
3509
3509
  window.removeEventListener("scroll", p, !0), window.removeEventListener("resize", p);
3510
3510
  };
3511
3511
  }, [l]);
3512
- const x = n === "right" ? { transform: "translateY(-50%)" } : n === "left" ? { transform: "translate(-100%, -50%)" } : n === "bottom" ? { transform: "translateX(-50%)" } : { transform: "translate(-50%, -100%)" }, u = l ? /* @__PURE__ */ e(
3512
+ const y = n === "right" ? { transform: "translateY(-50%)" } : n === "left" ? { transform: "translate(-100%, -50%)" } : n === "bottom" ? { transform: "translateX(-50%)" } : { transform: "translate(-50%, -100%)" }, u = l ? /* @__PURE__ */ e(
3513
3513
  "div",
3514
3514
  {
3515
3515
  style: {
@@ -3518,7 +3518,7 @@ function Br({
3518
3518
  left: d.left,
3519
3519
  zIndex: 9999,
3520
3520
  pointerEvents: "none",
3521
- ...x
3521
+ ...y
3522
3522
  },
3523
3523
  children: /* @__PURE__ */ e(
3524
3524
  "div",
@@ -3609,16 +3609,16 @@ function _r({
3609
3609
  onProviderChange: s,
3610
3610
  collapsed: f = !1
3611
3611
  }) {
3612
- const [h, v] = j(!1), x = V(null);
3612
+ const [h, v] = j(!1), y = V(null);
3613
3613
  ne(() => {
3614
3614
  if (!h) return;
3615
- const g = ($) => {
3616
- x.current && !x.current.contains($.target) && v(!1);
3615
+ const x = ($) => {
3616
+ y.current && !y.current.contains($.target) && v(!1);
3617
3617
  };
3618
- return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
3618
+ return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
3619
3619
  }, [h]);
3620
- const u = t, p = (r == null ? void 0 : r.name) ?? (n == null ? void 0 : n.name), b = (g) => {
3621
- d == null || d(g), v(!1);
3620
+ const u = t, p = (r == null ? void 0 : r.name) ?? (n == null ? void 0 : n.name), b = (x) => {
3621
+ d == null || d(x), v(!1);
3622
3622
  };
3623
3623
  return f ? /* @__PURE__ */ e(
3624
3624
  "button",
@@ -3639,7 +3639,7 @@ function _r({
3639
3639
  },
3640
3640
  children: u ? /* @__PURE__ */ e(pt, { item: u, size: 36 }) : /* @__PURE__ */ e("div", { style: { width: 36, height: 36, borderRadius: "50%", background: "var(--primary)", display: "flex", alignItems: "center", justifyContent: "center", color: "#fff", fontFamily: "var(--font-label)", fontSize: "var(--text-caption)", fontWeight: "var(--weight-button)" }, children: "S" })
3641
3641
  }
3642
- ) : /* @__PURE__ */ a("div", { ref: x, style: { position: "relative", width: "100%" }, children: [
3642
+ ) : /* @__PURE__ */ a("div", { ref: y, style: { position: "relative", width: "100%" }, children: [
3643
3643
  /* @__PURE__ */ a(
3644
3644
  "button",
3645
3645
  {
@@ -3693,12 +3693,12 @@ function _r({
3693
3693
  boxShadow: "0px 4px 12px 0px rgba(0,0,0,0.08)",
3694
3694
  overflow: "hidden"
3695
3695
  },
3696
- children: /* @__PURE__ */ e("div", { style: { maxHeight: "240px", overflowY: "auto" }, children: o.map((g) => {
3697
- const $ = (t == null ? void 0 : t.id) === g.id;
3696
+ children: /* @__PURE__ */ e("div", { style: { maxHeight: "240px", overflowY: "auto" }, children: o.map((x) => {
3697
+ const $ = (t == null ? void 0 : t.id) === x.id;
3698
3698
  return /* @__PURE__ */ a(
3699
3699
  "button",
3700
3700
  {
3701
- onClick: () => b(g),
3701
+ onClick: () => b(x),
3702
3702
  style: {
3703
3703
  width: "100%",
3704
3704
  display: "flex",
@@ -3712,22 +3712,22 @@ function _r({
3712
3712
  transition: "background 0.15s",
3713
3713
  minHeight: "48px"
3714
3714
  },
3715
- onMouseEnter: (k) => {
3716
- $ || (k.currentTarget.style.background = "var(--accent, #f3f4f6)");
3715
+ onMouseEnter: (S) => {
3716
+ $ || (S.currentTarget.style.background = "var(--accent, #f3f4f6)");
3717
3717
  },
3718
- onMouseLeave: (k) => {
3719
- k.currentTarget.style.background = $ ? "rgba(240,249,255,0.6)" : "none";
3718
+ onMouseLeave: (S) => {
3719
+ S.currentTarget.style.background = $ ? "rgba(240,249,255,0.6)" : "none";
3720
3720
  },
3721
3721
  children: [
3722
- /* @__PURE__ */ e(pt, { item: g, size: 36 }),
3722
+ /* @__PURE__ */ e(pt, { item: x, size: 36 }),
3723
3723
  /* @__PURE__ */ a("div", { style: { flex: 1, minWidth: 0 }, children: [
3724
- /* @__PURE__ */ e("div", { style: { ...er, color: "var(--foreground, #1f2937)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: g.name }),
3725
- g.handle && /* @__PURE__ */ e("div", { style: { ...pa, color: "var(--muted-foreground, #6b7280)", marginTop: "2px" }, children: g.handle })
3724
+ /* @__PURE__ */ e("div", { style: { ...er, color: "var(--foreground, #1f2937)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: x.name }),
3725
+ x.handle && /* @__PURE__ */ e("div", { style: { ...pa, color: "var(--muted-foreground, #6b7280)", marginTop: "2px" }, children: x.handle })
3726
3726
  ] }),
3727
3727
  $ && /* @__PURE__ */ e(me, { size: 16, color: "var(--Base_Color--Sky--500, #32a9ff)", style: { flexShrink: 0 } })
3728
3728
  ]
3729
3729
  },
3730
- g.id
3730
+ x.id
3731
3731
  );
3732
3732
  }) })
3733
3733
  }
@@ -3766,22 +3766,23 @@ function zt({
3766
3766
  showCollapseToggle: c = !0,
3767
3767
  version: s,
3768
3768
  versionDate: f,
3769
- className: h = ""
3769
+ width: h,
3770
+ className: v = ""
3770
3771
  }) {
3771
- const [v, x] = j(/* @__PURE__ */ new Set()), u = (p) => {
3772
- x((b) => {
3773
- const g = new Set(b);
3774
- return g.has(p) ? g.delete(p) : g.add(p), g;
3772
+ const [y, u] = j(/* @__PURE__ */ new Set()), p = (S) => {
3773
+ u((m) => {
3774
+ const g = new Set(m);
3775
+ return g.has(S) ? g.delete(S) : g.add(S), g;
3775
3776
  });
3776
- };
3777
+ }, $ = i ? "var(--shell-sidebar-collapsed, 64px)" : h ?? "var(--shell-sidebar-width, 240px)";
3777
3778
  return /* @__PURE__ */ a(
3778
3779
  "div",
3779
3780
  {
3780
- className: `bg-sidebar border-r border-sidebar-border flex flex-col flex-shrink-0 ${h}`,
3781
+ className: `bg-sidebar border-r border-sidebar-border flex flex-col flex-shrink-0 h-full ${v}`,
3781
3782
  style: {
3782
- width: i ? "64px" : "256px",
3783
- minWidth: i ? "64px" : "256px",
3784
- transition: "width 0.25s cubic-bezier(0.4,0,0.2,1), min-width 0.25s cubic-bezier(0.4,0,0.2,1)",
3783
+ width: $,
3784
+ minWidth: $,
3785
+ transition: "width var(--shell-sidebar-transition, 250ms cubic-bezier(0.4,0,0.2,1)), min-width var(--shell-sidebar-transition, 250ms cubic-bezier(0.4,0,0.2,1))",
3785
3786
  overflow: "visible"
3786
3787
  },
3787
3788
  children: [
@@ -3803,24 +3804,24 @@ function zt({
3803
3804
  ),
3804
3805
  !i && /* @__PURE__ */ e("span", { className: "text-sidebar-foreground truncate", style: ga, children: t.name })
3805
3806
  ] }),
3806
- /* @__PURE__ */ e("nav", { className: `flex-1 overflow-y-auto py-3 ${i ? "px-1.5" : "px-2"}`, children: n.map((p) => {
3807
- const b = v.has(p.label);
3807
+ /* @__PURE__ */ e("nav", { className: `flex-1 overflow-y-auto py-3 ${i ? "px-1.5" : "px-2"}`, children: n.map((S) => {
3808
+ const m = y.has(S.label);
3808
3809
  return /* @__PURE__ */ a("div", { className: "mb-4", children: [
3809
3810
  !i && /* @__PURE__ */ a(
3810
3811
  "button",
3811
3812
  {
3812
- onClick: () => u(p.label),
3813
+ onClick: () => p(S.label),
3813
3814
  className: "w-full flex items-center justify-between px-2 mb-1.5 text-muted-foreground hover:text-foreground transition-colors cursor-pointer",
3814
3815
  style: ya,
3815
3816
  children: [
3816
- /* @__PURE__ */ e("span", { children: p.label }),
3817
+ /* @__PURE__ */ e("span", { children: S.label }),
3817
3818
  /* @__PURE__ */ e(
3818
3819
  Je,
3819
3820
  {
3820
3821
  size: 12,
3821
3822
  style: {
3822
3823
  transition: "transform 0.2s ease",
3823
- transform: b ? "rotate(180deg)" : "rotate(0deg)"
3824
+ transform: m ? "rotate(180deg)" : "rotate(0deg)"
3824
3825
  }
3825
3826
  }
3826
3827
  )
@@ -3828,15 +3829,15 @@ function zt({
3828
3829
  }
3829
3830
  ),
3830
3831
  i && /* @__PURE__ */ e("div", { className: "h-px bg-sidebar-border mx-1 mb-2 mt-1" }),
3831
- !b && /* @__PURE__ */ e("div", { className: "space-y-0.5", children: p.items.map((g) => {
3832
- const $ = o === g.id, k = /* @__PURE__ */ a(
3832
+ !m && /* @__PURE__ */ e("div", { className: "space-y-0.5", children: S.items.map((g) => {
3833
+ const w = o === g.id, z = /* @__PURE__ */ a(
3833
3834
  "button",
3834
3835
  {
3835
3836
  onClick: () => l == null ? void 0 : l(g),
3836
- className: `w-full flex items-center ${i ? "justify-center" : "gap-2"} ${i ? "px-0" : "px-2"} py-2 rounded-[var(--radius-md)] transition-colors cursor-pointer ${$ ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground hover:bg-sidebar-accent/50"}`,
3837
+ className: `w-full flex items-center ${i ? "justify-center" : "gap-2"} ${i ? "px-0" : "px-2"} py-2 rounded-[var(--radius-md)] transition-colors cursor-pointer ${w ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground hover:bg-sidebar-accent/50"}`,
3837
3838
  style: va,
3838
3839
  children: [
3839
- /* @__PURE__ */ e("span", { className: `flex-shrink-0 ${$ ? "text-sidebar-primary" : "text-muted-foreground"}`, children: g.icon }),
3840
+ /* @__PURE__ */ e("span", { className: `flex-shrink-0 ${w ? "text-sidebar-primary" : "text-muted-foreground"}`, children: g.icon }),
3840
3841
  !i && /* @__PURE__ */ e("span", { className: "truncate flex-1 text-left", children: g.label }),
3841
3842
  g.badge != null && !i && /* @__PURE__ */ e(
3842
3843
  "span",
@@ -3860,9 +3861,9 @@ function zt({
3860
3861
  },
3861
3862
  g.id
3862
3863
  );
3863
- return i ? /* @__PURE__ */ e("div", { className: "w-full flex", children: /* @__PURE__ */ e(Br, { content: g.label, placement: "right", className: "flex-1", children: k }) }, g.id) : k;
3864
+ return i ? /* @__PURE__ */ e("div", { className: "w-full flex", children: /* @__PURE__ */ e(Br, { content: g.label, placement: "right", className: "flex-1", children: z }) }, g.id) : z;
3864
3865
  }) })
3865
- ] }, p.label);
3866
+ ] }, S.label);
3866
3867
  }) }),
3867
3868
  (c && d || s) && /* @__PURE__ */ a("div", { className: `${i ? "px-1.5" : "px-3"} py-3 border-t border-sidebar-border flex flex-col gap-1`, children: [
3868
3869
  c && d && /* @__PURE__ */ a(
@@ -4372,7 +4373,7 @@ function _a({
4372
4373
  const v = c.trim();
4373
4374
  !v || t.includes(v) || l && t.length >= l || (r([...t, v]), s(""));
4374
4375
  }, h = (v) => {
4375
- r(t.filter((x) => x !== v));
4376
+ r(t.filter((y) => y !== v));
4376
4377
  };
4377
4378
  return /* @__PURE__ */ a(
4378
4379
  "div",
@@ -4533,29 +4534,29 @@ function Pr({
4533
4534
  notificationCount: f,
4534
4535
  onNotificationClick: h,
4535
4536
  onMobileMenuClick: v,
4536
- onSidebarToggle: x,
4537
+ onSidebarToggle: y,
4537
4538
  onUserClick: u,
4538
4539
  onBreadcrumbClick: p,
4539
4540
  workspaceSwitcher: b,
4540
- className: g = ""
4541
+ className: x = ""
4541
4542
  }) {
4542
- const $ = l != null && l.name ? l.name.split(" ").map((k) => k[0]).join("").slice(0, 2).toUpperCase() : "";
4543
+ const $ = l != null && l.name ? l.name.split(" ").map((S) => S[0]).join("").slice(0, 2).toUpperCase() : "";
4543
4544
  return /* @__PURE__ */ a(
4544
4545
  "div",
4545
4546
  {
4546
- className: `bg-card border-b border-border flex items-center px-5 gap-4 ${g}`,
4547
+ className: `bg-card border-b border-border flex items-center px-5 gap-4 ${x}`,
4547
4548
  style: { height: i },
4548
4549
  children: [
4549
- x && /* @__PURE__ */ e(
4550
+ y && /* @__PURE__ */ e(
4550
4551
  "button",
4551
4552
  {
4552
4553
  className: "w-9 h-9 flex items-center justify-center rounded-[var(--radius-md)] text-foreground hover:bg-muted/30 transition-colors cursor-pointer",
4553
- onClick: x,
4554
+ onClick: y,
4554
4555
  title: "Toggle sidebar",
4555
4556
  children: /* @__PURE__ */ e(Gt, { size: 18 })
4556
4557
  }
4557
4558
  ),
4558
- !x && v && /* @__PURE__ */ e(
4559
+ !y && v && /* @__PURE__ */ e(
4559
4560
  "button",
4560
4561
  {
4561
4562
  className: "lg:hidden w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] text-foreground hover:bg-muted/30 transition-colors cursor-pointer",
@@ -4580,20 +4581,20 @@ function Pr({
4580
4581
  ) }),
4581
4582
  b && /* @__PURE__ */ e("div", { className: "flex items-center ml-1", children: b }),
4582
4583
  n && /* @__PURE__ */ e("span", { className: "text-foreground hidden sm:block truncate", style: Ge, children: n }),
4583
- r && r.length > 0 && /* @__PURE__ */ e("nav", { className: "hidden sm:flex items-center gap-1.5 text-muted-foreground", style: Ge, children: r.map((k, m) => /* @__PURE__ */ a(ge.Fragment, { children: [
4584
+ r && r.length > 0 && /* @__PURE__ */ e("nav", { className: "hidden sm:flex items-center gap-1.5 text-muted-foreground", style: Ge, children: r.map((S, m) => /* @__PURE__ */ a(ge.Fragment, { children: [
4584
4585
  m > 0 && /* @__PURE__ */ e(fe, { size: 12 }),
4585
- k.href || p ? /* @__PURE__ */ e(
4586
+ S.href || p ? /* @__PURE__ */ e(
4586
4587
  "span",
4587
4588
  {
4588
4589
  className: `cursor-pointer ${m === r.length - 1 ? "text-foreground" : "hover:text-foreground"}`,
4589
- onClick: () => p == null ? void 0 : p(k, m),
4590
- children: k.label
4590
+ onClick: () => p == null ? void 0 : p(S, m),
4591
+ children: S.label
4591
4592
  }
4592
4593
  ) : /* @__PURE__ */ e(
4593
4594
  "span",
4594
4595
  {
4595
4596
  className: m === r.length - 1 ? "text-foreground" : "",
4596
- children: k.label
4597
+ children: S.label
4597
4598
  }
4598
4599
  )
4599
4600
  ] }, m)) }),
@@ -4738,43 +4739,43 @@ function Hi({
4738
4739
  }) {
4739
4740
  const [f, h] = j(
4740
4741
  new Set(o)
4741
- ), v = i !== void 0 ? new Set(i) : f, x = (S) => {
4742
- d && d(Array.from(S)), i === void 0 && h(S);
4742
+ ), v = i !== void 0 ? new Set(i) : f, y = (k) => {
4743
+ d && d(Array.from(k)), i === void 0 && h(k);
4743
4744
  }, [u, p] = j(
4744
4745
  /* @__PURE__ */ new Set()
4745
- ), [b, g] = j(
4746
+ ), [b, x] = j(
4746
4747
  /* @__PURE__ */ new Set()
4747
- ), [$, k] = j(""), [m, y] = j(""), w = n.filter((S) => !v.has(S.id)), z = n.filter((S) => v.has(S.id)), W = $ ? w.filter(
4748
- (S) => S.label.toLowerCase().includes($.toLowerCase())
4748
+ ), [$, S] = j(""), [m, g] = j(""), w = n.filter((k) => !v.has(k.id)), z = n.filter((k) => v.has(k.id)), W = $ ? w.filter(
4749
+ (k) => k.label.toLowerCase().includes($.toLowerCase())
4749
4750
  ) : w, M = m ? z.filter(
4750
- (S) => S.label.toLowerCase().includes(m.toLowerCase())
4751
+ (k) => k.label.toLowerCase().includes(m.toLowerCase())
4751
4752
  ) : z, F = () => {
4752
- const S = new Set(v);
4753
- u.forEach((A) => S.add(A)), x(S), p(/* @__PURE__ */ new Set());
4753
+ const k = new Set(v);
4754
+ u.forEach((A) => k.add(A)), y(k), p(/* @__PURE__ */ new Set());
4754
4755
  }, L = () => {
4755
- const S = new Set(v);
4756
- b.forEach((A) => S.delete(A)), x(S), g(/* @__PURE__ */ new Set());
4757
- }, I = () => {
4758
- x(new Set(n.filter((S) => !S.disabled).map((S) => S.id))), p(/* @__PURE__ */ new Set());
4756
+ const k = new Set(v);
4757
+ b.forEach((A) => k.delete(A)), y(k), x(/* @__PURE__ */ new Set());
4758
+ }, E = () => {
4759
+ y(new Set(n.filter((k) => !k.disabled).map((k) => k.id))), p(/* @__PURE__ */ new Set());
4759
4760
  }, C = () => {
4760
- x(/* @__PURE__ */ new Set()), g(/* @__PURE__ */ new Set());
4761
- }, N = (S, A, E) => {
4762
- const R = new Set(A);
4763
- R.has(S) ? R.delete(S) : R.add(S), E(R);
4761
+ y(/* @__PURE__ */ new Set()), x(/* @__PURE__ */ new Set());
4762
+ }, N = (k, A, I) => {
4763
+ const _ = new Set(A);
4764
+ _.has(k) ? _.delete(k) : _.add(k), I(_);
4764
4765
  };
4765
- return s ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center rounded-[var(--radius-md)] border border-border bg-card px-6 py-10 text-center", children: /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: "var(--destructive)" }, children: s }) }) : c ? /* @__PURE__ */ e("div", { className: "flex items-stretch gap-3 flex-wrap opacity-60 pointer-events-none", children: [t, r].map((S) => /* @__PURE__ */ a("div", { className: "flex-1 min-w-[180px] rounded-[var(--radius-md)] border border-border bg-card overflow-hidden", children: [
4766
- /* @__PURE__ */ e("div", { className: "px-3 py-2.5 border-b border-border bg-muted/30", children: /* @__PURE__ */ e("span", { style: Yr, children: S }) }),
4766
+ return s ? /* @__PURE__ */ e("div", { className: "flex items-center justify-center rounded-[var(--radius-md)] border border-border bg-card px-6 py-10 text-center", children: /* @__PURE__ */ e("span", { style: { fontFamily: "var(--font-label)", fontSize: "var(--text-label)", color: "var(--destructive)" }, children: s }) }) : c ? /* @__PURE__ */ e("div", { className: "flex items-stretch gap-3 flex-wrap opacity-60 pointer-events-none", children: [t, r].map((k) => /* @__PURE__ */ a("div", { className: "flex-1 min-w-[180px] rounded-[var(--radius-md)] border border-border bg-card overflow-hidden", children: [
4767
+ /* @__PURE__ */ e("div", { className: "px-3 py-2.5 border-b border-border bg-muted/30", children: /* @__PURE__ */ e("span", { style: Yr, children: k }) }),
4767
4768
  /* @__PURE__ */ e("div", { className: "p-3 flex flex-col gap-2", children: [1, 2, 3, 4].map((A) => /* @__PURE__ */ e("div", { className: "h-8 rounded bg-muted/50 animate-pulse" }, A)) })
4768
- ] }, S)) }) : /* @__PURE__ */ a("div", { className: "flex items-stretch gap-3 flex-wrap", children: [
4769
+ ] }, k)) }) : /* @__PURE__ */ a("div", { className: "flex items-stretch gap-3 flex-wrap", children: [
4769
4770
  /* @__PURE__ */ e(
4770
4771
  lr,
4771
4772
  {
4772
4773
  title: t,
4773
4774
  items: W,
4774
4775
  selected: u,
4775
- onToggle: (S) => N(S, u, p),
4776
+ onToggle: (k) => N(k, u, p),
4776
4777
  search: $,
4777
- onSearch: k,
4778
+ onSearch: S,
4778
4779
  searchable: l
4779
4780
  }
4780
4781
  ),
@@ -4782,7 +4783,7 @@ function Hi({
4782
4783
  /* @__PURE__ */ e(
4783
4784
  "button",
4784
4785
  {
4785
- onClick: I,
4786
+ onClick: E,
4786
4787
  disabled: w.length === 0,
4787
4788
  className: "w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] border border-border text-muted-foreground hover:text-foreground hover:bg-accent disabled:opacity-30 transition-colors cursor-pointer",
4788
4789
  children: /* @__PURE__ */ e(Ct, { size: 14 })
@@ -4822,9 +4823,9 @@ function Hi({
4822
4823
  title: r,
4823
4824
  items: M,
4824
4825
  selected: b,
4825
- onToggle: (S) => N(S, b, g),
4826
+ onToggle: (k) => N(k, b, x),
4826
4827
  search: m,
4827
- onSearch: y,
4828
+ onSearch: g,
4828
4829
  searchable: l
4829
4830
  }
4830
4831
  )
@@ -4871,10 +4872,10 @@ function Gr({
4871
4872
  ]
4872
4873
  }
4873
4874
  ),
4874
- s && f && /* @__PURE__ */ e("div", { className: c ? "border-l border-border ml-[22px]" : "", children: t.children.map((x) => /* @__PURE__ */ e(
4875
+ s && f && /* @__PURE__ */ e("div", { className: c ? "border-l border-border ml-[22px]" : "", children: t.children.map((y) => /* @__PURE__ */ e(
4875
4876
  Gr,
4876
4877
  {
4877
- node: x,
4878
+ node: y,
4878
4879
  level: r + 1,
4879
4880
  expanded: n,
4880
4881
  selected: o,
@@ -4883,7 +4884,7 @@ function Gr({
4883
4884
  selectable: d,
4884
4885
  showLines: c
4885
4886
  },
4886
- x.id
4887
+ y.id
4887
4888
  )) })
4888
4889
  ] });
4889
4890
  }
@@ -4900,14 +4901,14 @@ function Ri({
4900
4901
  error: f,
4901
4902
  emptyMessage: h = "No items"
4902
4903
  }) {
4903
- const [v, x] = j(
4904
+ const [v, y] = j(
4904
4905
  new Set(o || [])
4905
- ), [u, p] = j(/* @__PURE__ */ new Set()), b = l !== void 0 ? new Set(l) : v, g = d !== void 0 ? new Set(d) : u, $ = (m) => {
4906
- const y = new Set(b);
4907
- y.has(m) ? y.delete(m) : y.add(m), i && i(Array.from(y)), l === void 0 && x(y);
4908
- }, k = (m) => {
4909
- const y = new Set(g);
4910
- y.has(m) ? y.delete(m) : y.add(m), c && c(Array.from(y)), d === void 0 && p(y);
4906
+ ), [u, p] = j(/* @__PURE__ */ new Set()), b = l !== void 0 ? new Set(l) : v, x = d !== void 0 ? new Set(d) : u, $ = (m) => {
4907
+ const g = new Set(b);
4908
+ g.has(m) ? g.delete(m) : g.add(m), i && i(Array.from(g)), l === void 0 && y(g);
4909
+ }, S = (m) => {
4910
+ const g = new Set(x);
4911
+ g.has(m) ? g.delete(m) : g.add(m), c && c(Array.from(g)), d === void 0 && p(g);
4911
4912
  };
4912
4913
  return f ? /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card px-4 py-8 text-center", children: /* @__PURE__ */ e("span", { style: { ...Wt, color: "var(--destructive)" }, children: f }) }) : s ? /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-2 px-3 flex flex-col gap-2", children: [1, 2, 3, 4, 5].map((m) => /* @__PURE__ */ e("div", { className: "h-7 rounded bg-muted/50 animate-pulse", style: { width: `${60 + m % 3 * 15}%` } }, m)) }) : /* @__PURE__ */ e("div", { className: "rounded-[var(--radius-md)] border border-border bg-card py-1", children: t.length === 0 ? /* @__PURE__ */ e("div", { className: "px-4 py-8 text-center text-muted-foreground", style: Wt, children: h }) : t.map((m) => /* @__PURE__ */ e(
4913
4914
  Gr,
@@ -4915,9 +4916,9 @@ function Ri({
4915
4916
  node: m,
4916
4917
  level: 0,
4917
4918
  expanded: b,
4918
- selected: g,
4919
+ selected: x,
4919
4920
  onToggle: $,
4920
- onSelect: k,
4921
+ onSelect: S,
4921
4922
  selectable: r,
4922
4923
  showLines: n
4923
4924
  },
@@ -5053,10 +5054,10 @@ function Yi({
5053
5054
  error: h,
5054
5055
  className: v = ""
5055
5056
  }) {
5056
- const [x, u] = j(r), p = t ?? x, b = (k) => {
5057
- const m = Math.max(o ?? -1 / 0, Math.min(l ?? 1 / 0, k));
5057
+ const [y, u] = j(r), p = t ?? y, b = (S) => {
5058
+ const m = Math.max(o ?? -1 / 0, Math.min(l ?? 1 / 0, S));
5058
5059
  n && n(m), t === void 0 && u(m);
5059
- }, g = o === void 0 || p - i >= o, $ = l === void 0 || p + i <= l;
5060
+ }, x = o === void 0 || p - i >= o, $ = l === void 0 || p + i <= l;
5060
5061
  return /* @__PURE__ */ a("div", { className: v, children: [
5061
5062
  s && /* @__PURE__ */ e("label", { className: "block text-foreground mb-1.5", style: Ua, children: s }),
5062
5063
  /* @__PURE__ */ a(
@@ -5069,7 +5070,7 @@ function Yi({
5069
5070
  {
5070
5071
  type: "button",
5071
5072
  onClick: () => b(p - i),
5072
- disabled: d || !g,
5073
+ disabled: d || !x,
5073
5074
  className: "flex items-center justify-center px-2.5 border-r border-border text-muted-foreground hover:text-foreground disabled:opacity-30 transition-colors cursor-pointer",
5074
5075
  style: { height: "100%" },
5075
5076
  children: /* @__PURE__ */ e(ft, { size: sr[c] })
@@ -5081,8 +5082,8 @@ function Yi({
5081
5082
  type: "number",
5082
5083
  value: p,
5083
5084
  placeholder: f,
5084
- onChange: (k) => {
5085
- const m = parseFloat(k.target.value);
5085
+ onChange: (S) => {
5086
+ const m = parseFloat(S.target.value);
5086
5087
  isNaN(m) || b(m);
5087
5088
  },
5088
5089
  disabled: d,
@@ -5132,42 +5133,42 @@ function Gi({
5132
5133
  masked: s,
5133
5134
  className: f = ""
5134
5135
  }) {
5135
- const [h, v] = j(() => "".padEnd(t, "")), x = V([]), p = (r ?? h).padEnd(t, "").split("").slice(0, t), b = Q(
5136
+ const [h, v] = j(() => "".padEnd(t, "")), y = V([]), p = (r ?? h).padEnd(t, "").split("").slice(0, t), b = Q(
5136
5137
  (m) => {
5137
5138
  n && n(m), r === void 0 && v(m), m.replace(/ /g, "").length === t && o && o(m);
5138
5139
  },
5139
5140
  [n, o, r, t]
5140
- ), g = (m, y) => {
5141
+ ), x = (m, g) => {
5141
5142
  var W;
5142
- if (!/^\d$/.test(y)) return;
5143
+ if (!/^\d$/.test(g)) return;
5143
5144
  const w = p.slice();
5144
- w[m] = y;
5145
+ w[m] = g;
5145
5146
  const z = w.join("");
5146
- b(z), m < t - 1 && ((W = x.current[m + 1]) == null || W.focus());
5147
- }, $ = (m, y) => {
5147
+ b(z), m < t - 1 && ((W = y.current[m + 1]) == null || W.focus());
5148
+ }, $ = (m, g) => {
5148
5149
  var w, z, W;
5149
- if (y.key === "Backspace") {
5150
- y.preventDefault();
5150
+ if (g.key === "Backspace") {
5151
+ g.preventDefault();
5151
5152
  const M = p.slice();
5152
- M[m] !== " " && M[m] !== "" ? (M[m] = " ", b(M.join(""))) : m > 0 && (M[m - 1] = " ", b(M.join("")), (w = x.current[m - 1]) == null || w.focus());
5153
- } else y.key === "ArrowLeft" && m > 0 ? (z = x.current[m - 1]) == null || z.focus() : y.key === "ArrowRight" && m < t - 1 && ((W = x.current[m + 1]) == null || W.focus());
5153
+ M[m] !== " " && M[m] !== "" ? (M[m] = " ", b(M.join(""))) : m > 0 && (M[m - 1] = " ", b(M.join("")), (w = y.current[m - 1]) == null || w.focus());
5154
+ } else g.key === "ArrowLeft" && m > 0 ? (z = y.current[m - 1]) == null || z.focus() : g.key === "ArrowRight" && m < t - 1 && ((W = y.current[m + 1]) == null || W.focus());
5154
5155
  };
5155
5156
  return /* @__PURE__ */ a("div", { className: f, children: [
5156
5157
  c && /* @__PURE__ */ e("label", { className: "block text-foreground mb-2", style: qa, children: c }),
5157
5158
  /* @__PURE__ */ e("div", { className: "flex gap-2", onPaste: (m) => {
5158
5159
  var w;
5159
5160
  m.preventDefault();
5160
- const y = m.clipboardData.getData("text").replace(/\D/g, "").slice(0, t);
5161
- if (y) {
5162
- b(y.padEnd(t, " "));
5163
- const z = Math.min(y.length, t - 1);
5164
- (w = x.current[z]) == null || w.focus();
5161
+ const g = m.clipboardData.getData("text").replace(/\D/g, "").slice(0, t);
5162
+ if (g) {
5163
+ b(g.padEnd(t, " "));
5164
+ const z = Math.min(g.length, t - 1);
5165
+ (w = y.current[z]) == null || w.focus();
5165
5166
  }
5166
- }, children: p.map((m, y) => /* @__PURE__ */ e(
5167
+ }, children: p.map((m, g) => /* @__PURE__ */ e(
5167
5168
  "input",
5168
5169
  {
5169
5170
  ref: (w) => {
5170
- x.current[y] = w;
5171
+ y.current[g] = w;
5171
5172
  },
5172
5173
  type: s ? "password" : "text",
5173
5174
  inputMode: "numeric",
@@ -5176,9 +5177,9 @@ function Gi({
5176
5177
  disabled: l,
5177
5178
  onChange: (w) => {
5178
5179
  const z = w.target.value;
5179
- z && g(y, z[z.length - 1]);
5180
+ z && x(g, z[z.length - 1]);
5180
5181
  },
5181
- onKeyDown: (w) => $(y, w),
5182
+ onKeyDown: (w) => $(g, w),
5182
5183
  onFocus: (w) => w.target.select(),
5183
5184
  className: `${Qa[d]} text-center rounded-[var(--radius-md)] border outline-none transition-all
5184
5185
  ${i ? "border-destructive focus:ring-2 focus:ring-destructive/30" : "border-border focus:border-primary focus:ring-2 focus:ring-primary/20"}
@@ -5186,7 +5187,7 @@ function Gi({
5186
5187
  text-foreground`,
5187
5188
  style: { fontFamily: "var(--font-button)", fontWeight: "var(--weight-button)" }
5188
5189
  },
5189
- y
5190
+ g
5190
5191
  )) }),
5191
5192
  i && /* @__PURE__ */ e("p", { className: "mt-2 text-destructive", style: Ja, children: i })
5192
5193
  ] });
@@ -5253,7 +5254,7 @@ function nl({ config: t, value: r, onChange: n }) {
5253
5254
  const v = i[0] === h ? null : h;
5254
5255
  n(t.key, v), l(!1);
5255
5256
  } else {
5256
- const v = i.includes(h) ? i.filter((x) => x !== h) : [...i, h];
5257
+ const v = i.includes(h) ? i.filter((y) => y !== h) : [...i, h];
5257
5258
  n(t.key, v.length ? v : null);
5258
5259
  }
5259
5260
  },
@@ -5352,14 +5353,14 @@ function Ki({
5352
5353
  },
5353
5354
  [s, f]
5354
5355
  ), v = Q(
5355
- (b, g) => {
5356
+ (b, x) => {
5356
5357
  f({
5357
5358
  ...s,
5358
- filters: { ...s.filters, [b]: g }
5359
+ filters: { ...s.filters, [b]: x }
5359
5360
  });
5360
5361
  },
5361
5362
  [s, f]
5362
- ), x = Q(() => {
5363
+ ), y = Q(() => {
5363
5364
  f({ search: "", filters: {} });
5364
5365
  }, [f]), u = Object.values(s.filters).filter(
5365
5366
  (b) => b !== null && (!Array.isArray(b) || b.length > 0)
@@ -5421,7 +5422,7 @@ function Ki({
5421
5422
  "button",
5422
5423
  {
5423
5424
  type: "button",
5424
- onClick: x,
5425
+ onClick: y,
5425
5426
  className: "inline-flex items-center gap-1 h-7 px-2 rounded-md text-[var(--muted-foreground)] hover:text-[var(--foreground)] hover:bg-[var(--muted)] transition-colors cursor-pointer ml-auto",
5426
5427
  style: lt,
5427
5428
  children: [
@@ -5639,15 +5640,15 @@ function Zi({
5639
5640
  selectedRows: f,
5640
5641
  onSelectionChange: h,
5641
5642
  bulkActions: v = [],
5642
- onRowClick: x,
5643
+ onRowClick: y,
5643
5644
  expandedRowRender: u,
5644
5645
  loading: p = !1,
5645
5646
  loadingRows: b = 5,
5646
- error: g,
5647
+ error: x,
5647
5648
  emptyMessage: $ = "No data found",
5648
- emptyDescription: k,
5649
+ emptyDescription: S,
5649
5650
  showColumnToggle: m = !1,
5650
- size: y = "md",
5651
+ size: g = "md",
5651
5652
  stickyHeader: w = !1,
5652
5653
  className: z = ""
5653
5654
  }) {
@@ -5661,23 +5662,23 @@ function Zi({
5661
5662
  }, []), L = se(
5662
5663
  () => t.filter((T) => !W.has(T.key)),
5663
5664
  [t, W]
5664
- ), [I, C] = j(/* @__PURE__ */ new Set()), N = f ?? I, S = Q(
5665
+ ), [E, C] = j(/* @__PURE__ */ new Set()), N = f ?? E, k = Q(
5665
5666
  (T) => {
5666
5667
  f || C(T);
5667
5668
  const J = r.filter((X) => T.has(X[n]));
5668
5669
  h == null || h(T, J);
5669
5670
  },
5670
5671
  [f, r, n, h]
5671
- ), A = se(() => r.map((T) => T[n]), [r, n]), E = A.length > 0 && A.every((T) => N.has(T)), R = N.size > 0 && !E, _ = Q(() => {
5672
- S(E ? /* @__PURE__ */ new Set() : new Set(A));
5673
- }, [E, A, S]), B = Q(
5672
+ ), A = se(() => r.map((T) => T[n]), [r, n]), I = A.length > 0 && A.every((T) => N.has(T)), _ = N.size > 0 && !I, H = Q(() => {
5673
+ k(I ? /* @__PURE__ */ new Set() : new Set(A));
5674
+ }, [I, A, k]), B = Q(
5674
5675
  (T) => {
5675
5676
  const J = new Set(N);
5676
- J.has(T) ? J.delete(T) : J.add(T), S(J);
5677
+ J.has(T) ? J.delete(T) : J.add(T), k(J);
5677
5678
  },
5678
- [N, S]
5679
- ), [q, H] = j(/* @__PURE__ */ new Set()), K = Q((T) => {
5680
- H((J) => {
5679
+ [N, k]
5680
+ ), [q, R] = j(/* @__PURE__ */ new Set()), K = Q((T) => {
5681
+ R((J) => {
5681
5682
  const X = new Set(J);
5682
5683
  return X.has(T) ? X.delete(T) : X.add(T), X;
5683
5684
  });
@@ -5706,19 +5707,19 @@ function Zi({
5706
5707
  count: N.size,
5707
5708
  actions: v,
5708
5709
  selectedKeys: Array.from(N),
5709
- onClear: () => S(/* @__PURE__ */ new Set())
5710
+ onClear: () => k(/* @__PURE__ */ new Set())
5710
5711
  }
5711
5712
  ),
5712
5713
  /* @__PURE__ */ e("div", { className: "overflow-x-auto", children: /* @__PURE__ */ a("table", { className: "w-full border-collapse", style: { minWidth: "100%" }, children: [
5713
5714
  /* @__PURE__ */ e("thead", { className: w ? "sticky top-0 z-10" : "", children: /* @__PURE__ */ a("tr", { className: "border-b border-border", style: { backgroundColor: "color-mix(in srgb, var(--muted) 30%, var(--background) 70%)" }, children: [
5714
- u && /* @__PURE__ */ e("th", { className: `${we[y]} w-10` }),
5715
- s && /* @__PURE__ */ e("th", { className: `${we[y]} w-12`, children: /* @__PURE__ */ e(
5715
+ u && /* @__PURE__ */ e("th", { className: `${we[g]} w-10` }),
5716
+ s && /* @__PURE__ */ e("th", { className: `${we[g]} w-12`, children: /* @__PURE__ */ e(
5716
5717
  st,
5717
5718
  {
5718
5719
  size: "sm",
5719
- checked: E,
5720
- indeterminate: R && !E,
5721
- onChange: _
5720
+ checked: I,
5721
+ indeterminate: _ && !I,
5722
+ onChange: H
5722
5723
  }
5723
5724
  ) }),
5724
5725
  L.map((T) => {
@@ -5726,7 +5727,7 @@ function Zi({
5726
5727
  return /* @__PURE__ */ e(
5727
5728
  "th",
5728
5729
  {
5729
- className: `${we[y]} text-${T.align ?? "left"} text-[var(--foreground)] whitespace-nowrap select-none ${T.sortable && c ? "cursor-pointer hover:text-[var(--primary)]" : ""} ${J ? Y : ""}`,
5730
+ className: `${we[g]} text-${T.align ?? "left"} text-[var(--foreground)] whitespace-nowrap select-none ${T.sortable && c ? "cursor-pointer hover:text-[var(--primary)]" : ""} ${J ? Y : ""}`,
5730
5731
  style: {
5731
5732
  ...Kr,
5732
5733
  width: T.width,
@@ -5744,35 +5745,35 @@ function Zi({
5744
5745
  })
5745
5746
  ] }) }),
5746
5747
  /* @__PURE__ */ a("tbody", { children: [
5747
- g && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${we[y]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-10", children: [
5748
+ x && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${we[g]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-10", children: [
5748
5749
  /* @__PURE__ */ e(Pe, { size: 32, className: "text-[var(--destructive)] opacity-60" }),
5749
- /* @__PURE__ */ e("span", { className: "text-[var(--destructive)]", style: xt, children: g })
5750
+ /* @__PURE__ */ e("span", { className: "text-[var(--destructive)]", style: xt, children: x })
5750
5751
  ] }) }) }),
5751
- !g && p && Array.from({ length: b }).map((T, J) => /* @__PURE__ */ a("tr", { className: "border-b border-[var(--border)] last:border-b-0", children: [
5752
- u && /* @__PURE__ */ e("td", { className: `${we[y]} w-10` }),
5753
- s && /* @__PURE__ */ e("td", { className: `${we[y]} w-12`, children: /* @__PURE__ */ e("div", { className: "w-4 h-4 rounded bg-muted animate-pulse" }) }),
5754
- L.map((X) => /* @__PURE__ */ e("td", { className: `${we[y]}`, children: /* @__PURE__ */ e(ol, { width: X.align === "right" ? "60%" : X.align === "center" ? "50%" : "75%" }) }, X.key))
5752
+ !x && p && Array.from({ length: b }).map((T, J) => /* @__PURE__ */ a("tr", { className: "border-b border-[var(--border)] last:border-b-0", children: [
5753
+ u && /* @__PURE__ */ e("td", { className: `${we[g]} w-10` }),
5754
+ s && /* @__PURE__ */ e("td", { className: `${we[g]} w-12`, children: /* @__PURE__ */ e("div", { className: "w-4 h-4 rounded bg-muted animate-pulse" }) }),
5755
+ L.map((X) => /* @__PURE__ */ e("td", { className: `${we[g]}`, children: /* @__PURE__ */ e(ol, { width: X.align === "right" ? "60%" : X.align === "center" ? "50%" : "75%" }) }, X.key))
5755
5756
  ] }, `skel-${J}`)),
5756
- !g && !p && r.length === 0 && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${we[y]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-12", children: [
5757
+ !x && !p && r.length === 0 && /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: re, className: `${we[g]} text-center`, children: /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-2 py-12", children: [
5757
5758
  /* @__PURE__ */ e("div", { className: "w-12 h-12 rounded-full bg-[var(--muted)] flex items-center justify-center text-[var(--muted-foreground)]", children: /* @__PURE__ */ e($t, { size: 20 }) }),
5758
5759
  /* @__PURE__ */ e("span", { className: "text-[var(--foreground)]", style: xt, children: $ }),
5759
- k && /* @__PURE__ */ e("span", { className: "text-[var(--muted-foreground)]", style: We, children: k })
5760
+ S && /* @__PURE__ */ e("span", { className: "text-[var(--muted-foreground)]", style: We, children: S })
5760
5761
  ] }) }) }),
5761
- !g && !p && r.map((T, J) => {
5762
- const X = T[n], ue = N.has(X), ze = q.has(X), Ye = !!x || !!u;
5762
+ !x && !p && r.map((T, J) => {
5763
+ const X = T[n], ue = N.has(X), ze = q.has(X), Ye = !!y || !!u;
5763
5764
  return /* @__PURE__ */ a(ge.Fragment, { children: [
5764
5765
  /* @__PURE__ */ a(
5765
5766
  "tr",
5766
5767
  {
5767
5768
  className: `group/row border-b border-[var(--border)] last:border-b-0 transition-colors ${ue ? "bg-primary/5" : "bg-[var(--card)] hover:bg-[var(--row-hover-bg)]"} ${Ye ? "cursor-pointer" : ""}`,
5768
5769
  onClick: () => {
5769
- x == null || x(T), u && K(X);
5770
+ y == null || y(T), u && K(X);
5770
5771
  },
5771
5772
  children: [
5772
5773
  u && /* @__PURE__ */ e(
5773
5774
  "td",
5774
5775
  {
5775
- className: `${we[y]} w-10 text-center`,
5776
+ className: `${we[g]} w-10 text-center`,
5776
5777
  onClick: (Z) => {
5777
5778
  Z.stopPropagation(), K(X);
5778
5779
  },
@@ -5788,7 +5789,7 @@ function Zi({
5788
5789
  s && /* @__PURE__ */ e(
5789
5790
  "td",
5790
5791
  {
5791
- className: `${we[y]} w-12`,
5792
+ className: `${we[g]} w-12`,
5792
5793
  onClick: (Z) => Z.stopPropagation(),
5793
5794
  children: /* @__PURE__ */ e(
5794
5795
  st,
@@ -5805,7 +5806,7 @@ function Zi({
5805
5806
  return /* @__PURE__ */ e(
5806
5807
  "td",
5807
5808
  {
5808
- className: `${we[y]} text-${Z.align ?? "left"} text-[var(--foreground)] ${Le}`,
5809
+ className: `${we[g]} text-${Z.align ?? "left"} text-[var(--foreground)] ${Le}`,
5809
5810
  style: {
5810
5811
  ...xt,
5811
5812
  ...Fe ? { left: G[Z.key], boxShadow: "2px 0 4px rgba(0,0,0,0.04)" } : {}
@@ -5823,7 +5824,7 @@ function Zi({
5823
5824
  })
5824
5825
  ] })
5825
5826
  ] }) }),
5826
- o && d && !p && !g && /* @__PURE__ */ e(sl, { meta: o, onPageChange: d })
5827
+ o && d && !p && !x && /* @__PURE__ */ e(sl, { meta: o, onPageChange: d })
5827
5828
  ] });
5828
5829
  }
5829
5830
  const Re = [
@@ -5901,68 +5902,68 @@ function dl({
5901
5902
  className: h = ""
5902
5903
  }) {
5903
5904
  mr();
5904
- const v = V(null), [x, u] = j(null);
5905
+ const v = V(null), [y, u] = j(null);
5905
5906
  if (!t.length || !t[0].data.length) return null;
5906
- const p = t[0].data.map((I) => I.label), b = t.flatMap((I) => I.data.map((C) => C.value)), g = dt(b), $ = 0, k = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, m = n ?? 600, y = r, w = m - k.left - k.right, z = y - k.top - k.bottom, W = p.length > 1 ? w / (p.length - 1) : w;
5907
- function M(I) {
5908
- return k.left + I * W;
5907
+ const p = t[0].data.map((E) => E.label), b = t.flatMap((E) => E.data.map((C) => C.value)), x = dt(b), $ = 0, S = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, m = n ?? 600, g = r, w = m - S.left - S.right, z = g - S.top - S.bottom, W = p.length > 1 ? w / (p.length - 1) : w;
5908
+ function M(E) {
5909
+ return S.left + E * W;
5909
5910
  }
5910
- function F(I) {
5911
- return k.top + z - (I - $) / (g - $ || 1) * z;
5911
+ function F(E) {
5912
+ return S.top + z - (E - $) / (x - $ || 1) * z;
5912
5913
  }
5913
- const L = Array.from({ length: 5 }, (I, C) => $ + C / 4 * (g - $));
5914
+ const L = Array.from({ length: 5 }, (E, C) => $ + C / 4 * (x - $));
5914
5915
  return /* @__PURE__ */ a("div", { className: `w-full ${h}`, children: [
5915
5916
  /* @__PURE__ */ a(
5916
5917
  "svg",
5917
5918
  {
5918
5919
  ref: v,
5919
5920
  width: n ? m : "100%",
5920
- height: y,
5921
- viewBox: `0 0 ${m} ${y}`,
5921
+ height: g,
5922
+ viewBox: `0 0 ${m} ${g}`,
5922
5923
  onMouseLeave: () => u(null),
5923
5924
  children: [
5924
- i && L.map((I, C) => /* @__PURE__ */ e(
5925
+ i && L.map((E, C) => /* @__PURE__ */ e(
5925
5926
  "line",
5926
5927
  {
5927
- x1: k.left,
5928
- y1: F(I),
5929
- x2: m - k.right,
5930
- y2: F(I),
5928
+ x1: S.left,
5929
+ y1: F(E),
5930
+ x2: m - S.right,
5931
+ y2: F(E),
5931
5932
  stroke: "var(--border)",
5932
5933
  strokeWidth: 0.5,
5933
5934
  strokeDasharray: "4 2"
5934
5935
  },
5935
5936
  C
5936
5937
  )),
5937
- l && L.map((I, C) => /* @__PURE__ */ e(
5938
+ l && L.map((E, C) => /* @__PURE__ */ e(
5938
5939
  "text",
5939
5940
  {
5940
- x: k.left - 8,
5941
- y: F(I) + 4,
5941
+ x: S.left - 8,
5942
+ y: F(E) + 4,
5942
5943
  textAnchor: "end",
5943
5944
  fill: "var(--muted-foreground)",
5944
5945
  style: ce,
5945
- children: I >= 1e3 ? `${(I / 1e3).toFixed(1)}k` : I
5946
+ children: E >= 1e3 ? `${(E / 1e3).toFixed(1)}k` : E
5946
5947
  },
5947
5948
  C
5948
5949
  )),
5949
- o && p.map((I, C) => {
5950
+ o && p.map((E, C) => {
5950
5951
  const N = Math.max(1, Math.floor(p.length / 8));
5951
5952
  return C % N !== 0 && C !== p.length - 1 ? null : /* @__PURE__ */ e(
5952
5953
  "text",
5953
5954
  {
5954
5955
  x: M(C),
5955
- y: y - k.bottom + 16,
5956
+ y: g - S.bottom + 16,
5956
5957
  textAnchor: "middle",
5957
5958
  fill: "var(--muted-foreground)",
5958
5959
  style: ce,
5959
- children: I
5960
+ children: E
5960
5961
  },
5961
5962
  C
5962
5963
  );
5963
5964
  }),
5964
- t.map((I, C) => {
5965
- const N = pe(I, C), S = I.data.map((E, R) => [M(R), F(E.value)]), A = It(S, f);
5965
+ t.map((E, C) => {
5966
+ const N = pe(E, C), k = E.data.map((I, _) => [M(_), F(I.value)]), A = It(k, f);
5966
5967
  return /* @__PURE__ */ a("g", { children: [
5967
5968
  /* @__PURE__ */ e(
5968
5969
  "path",
@@ -5975,56 +5976,56 @@ function dl({
5975
5976
  strokeLinejoin: "round"
5976
5977
  }
5977
5978
  ),
5978
- s && S.map(([E, R], _) => /* @__PURE__ */ e(
5979
+ s && k.map(([I, _], H) => /* @__PURE__ */ e(
5979
5980
  "circle",
5980
5981
  {
5981
- cx: E,
5982
- cy: R,
5982
+ cx: I,
5983
+ cy: _,
5983
5984
  r: 3,
5984
5985
  fill: "var(--card)",
5985
5986
  stroke: N,
5986
5987
  strokeWidth: 2
5987
5988
  },
5988
- _
5989
+ H
5989
5990
  ))
5990
5991
  ] }, C);
5991
5992
  }),
5992
- c && p.map((I, C) => /* @__PURE__ */ e(
5993
+ c && p.map((E, C) => /* @__PURE__ */ e(
5993
5994
  "rect",
5994
5995
  {
5995
5996
  x: M(C) - W / 2,
5996
- y: k.top,
5997
+ y: S.top,
5997
5998
  width: W,
5998
5999
  height: z,
5999
6000
  fill: "transparent",
6000
- onMouseEnter: () => u({ x: M(C), y: k.top, labelIdx: C })
6001
+ onMouseEnter: () => u({ x: M(C), y: S.top, labelIdx: C })
6001
6002
  },
6002
6003
  C
6003
6004
  )),
6004
- x && /* @__PURE__ */ e(
6005
+ y && /* @__PURE__ */ e(
6005
6006
  "line",
6006
6007
  {
6007
- x1: M(x.labelIdx),
6008
- y1: k.top,
6009
- x2: M(x.labelIdx),
6010
- y2: k.top + z,
6008
+ x1: M(y.labelIdx),
6009
+ y1: S.top,
6010
+ x2: M(y.labelIdx),
6011
+ y2: S.top + z,
6011
6012
  stroke: "var(--border)",
6012
6013
  strokeWidth: 1,
6013
6014
  strokeDasharray: "4 2"
6014
6015
  }
6015
6016
  ),
6016
- x && c && /* @__PURE__ */ e(
6017
+ y && c && /* @__PURE__ */ e(
6017
6018
  Tt,
6018
6019
  {
6019
- x: Et(M(x.labelIdx) + 8, k.left, m - 180),
6020
- y: k.top,
6021
- label: p[x.labelIdx],
6022
- items: t.map((I, C) => {
6020
+ x: Et(M(y.labelIdx) + 8, S.left, m - 180),
6021
+ y: S.top,
6022
+ label: p[y.labelIdx],
6023
+ items: t.map((E, C) => {
6023
6024
  var N;
6024
6025
  return {
6025
- name: I.name,
6026
- value: ((N = I.data[x.labelIdx]) == null ? void 0 : N.value) ?? 0,
6027
- color: pe(I, C)
6026
+ name: E.name,
6027
+ value: ((N = E.data[y.labelIdx]) == null ? void 0 : N.value) ?? 0,
6028
+ color: pe(E, C)
6028
6029
  };
6029
6030
  })
6030
6031
  }
@@ -6032,9 +6033,9 @@ function dl({
6032
6033
  ]
6033
6034
  }
6034
6035
  ),
6035
- d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((I, C) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6036
- /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: pe(I, C) } }),
6037
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: I.name })
6036
+ d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((E, C) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6037
+ /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: pe(E, C) } }),
6038
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: E.name })
6038
6039
  ] }, C)) })
6039
6040
  ] });
6040
6041
  }
@@ -6053,43 +6054,43 @@ function cl({
6053
6054
  fillOpacity: h = 0.15,
6054
6055
  className: v = ""
6055
6056
  }) {
6056
- const x = mr(), [u, p] = j(null);
6057
+ const y = mr(), [u, p] = j(null);
6057
6058
  if (!t.length || !t[0].data.length) return null;
6058
- const b = t[0].data.map((N) => N.label), g = t.flatMap((N) => N.data.map((S) => S.value)), $ = dt(g), k = 0, m = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, y = n ?? 600, w = r, z = y - m.left - m.right, W = w - m.top - m.bottom, M = b.length > 1 ? z / (b.length - 1) : z;
6059
+ const b = t[0].data.map((N) => N.label), x = t.flatMap((N) => N.data.map((k) => k.value)), $ = dt(x), S = 0, m = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, g = n ?? 600, w = r, z = g - m.left - m.right, W = w - m.top - m.bottom, M = b.length > 1 ? z / (b.length - 1) : z;
6059
6060
  function F(N) {
6060
6061
  return m.left + N * M;
6061
6062
  }
6062
6063
  function L(N) {
6063
- return m.top + W - (N - k) / ($ - k || 1) * W;
6064
+ return m.top + W - (N - S) / ($ - S || 1) * W;
6064
6065
  }
6065
- const I = Array.from({ length: 5 }, (N, S) => k + S / 4 * ($ - k)), C = m.top + W;
6066
+ const E = Array.from({ length: 5 }, (N, k) => S + k / 4 * ($ - S)), C = m.top + W;
6066
6067
  return /* @__PURE__ */ a("div", { className: `w-full ${v}`, children: [
6067
6068
  /* @__PURE__ */ a(
6068
6069
  "svg",
6069
6070
  {
6070
- width: n ? y : "100%",
6071
+ width: n ? g : "100%",
6071
6072
  height: w,
6072
- viewBox: `0 0 ${y} ${w}`,
6073
+ viewBox: `0 0 ${g} ${w}`,
6073
6074
  onMouseLeave: () => p(null),
6074
6075
  children: [
6075
- /* @__PURE__ */ e("defs", { children: t.map((N, S) => /* @__PURE__ */ a("linearGradient", { id: `${x}-grad-${S}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6076
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: pe(N, S), stopOpacity: h * 4 }),
6077
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: pe(N, S), stopOpacity: 0 })
6078
- ] }, S)) }),
6079
- i && I.map((N, S) => /* @__PURE__ */ e(
6076
+ /* @__PURE__ */ e("defs", { children: t.map((N, k) => /* @__PURE__ */ a("linearGradient", { id: `${y}-grad-${k}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
6077
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: pe(N, k), stopOpacity: h * 4 }),
6078
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: pe(N, k), stopOpacity: 0 })
6079
+ ] }, k)) }),
6080
+ i && E.map((N, k) => /* @__PURE__ */ e(
6080
6081
  "line",
6081
6082
  {
6082
6083
  x1: m.left,
6083
6084
  y1: L(N),
6084
- x2: y - m.right,
6085
+ x2: g - m.right,
6085
6086
  y2: L(N),
6086
6087
  stroke: "var(--border)",
6087
6088
  strokeWidth: 0.5,
6088
6089
  strokeDasharray: "4 2"
6089
6090
  },
6090
- S
6091
+ k
6091
6092
  )),
6092
- l && I.map((N, S) => /* @__PURE__ */ e(
6093
+ l && E.map((N, k) => /* @__PURE__ */ e(
6093
6094
  "text",
6094
6095
  {
6095
6096
  x: m.left - 8,
@@ -6099,42 +6100,42 @@ function cl({
6099
6100
  style: ce,
6100
6101
  children: N >= 1e3 ? `${(N / 1e3).toFixed(1)}k` : N
6101
6102
  },
6102
- S
6103
+ k
6103
6104
  )),
6104
- o && b.map((N, S) => {
6105
+ o && b.map((N, k) => {
6105
6106
  const A = Math.max(1, Math.floor(b.length / 8));
6106
- return S % A !== 0 && S !== b.length - 1 ? null : /* @__PURE__ */ e(
6107
+ return k % A !== 0 && k !== b.length - 1 ? null : /* @__PURE__ */ e(
6107
6108
  "text",
6108
6109
  {
6109
- x: F(S),
6110
+ x: F(k),
6110
6111
  y: w - m.bottom + 16,
6111
6112
  textAnchor: "middle",
6112
6113
  fill: "var(--muted-foreground)",
6113
6114
  style: ce,
6114
6115
  children: N
6115
6116
  },
6116
- S
6117
+ k
6117
6118
  );
6118
6119
  }),
6119
- t.map((N, S) => {
6120
- const A = pe(N, S), E = N.data.map((B, q) => [F(q), L(B.value)]), R = It(E, f), _ = R + ` L${E[E.length - 1][0]},${C} L${E[0][0]},${C} Z`;
6120
+ t.map((N, k) => {
6121
+ const A = pe(N, k), I = N.data.map((B, q) => [F(q), L(B.value)]), _ = It(I, f), H = _ + ` L${I[I.length - 1][0]},${C} L${I[0][0]},${C} Z`;
6121
6122
  return /* @__PURE__ */ a("g", { children: [
6122
- /* @__PURE__ */ e("path", { d: _, fill: `url(#${x}-grad-${S})` }),
6123
- /* @__PURE__ */ e("path", { d: R, fill: "none", stroke: A, strokeWidth: 2, strokeLinecap: "round" }),
6124
- s && E.map(([B, q], H) => /* @__PURE__ */ e("circle", { cx: B, cy: q, r: 3, fill: "var(--card)", stroke: A, strokeWidth: 2 }, H))
6125
- ] }, S);
6123
+ /* @__PURE__ */ e("path", { d: H, fill: `url(#${y}-grad-${k})` }),
6124
+ /* @__PURE__ */ e("path", { d: _, fill: "none", stroke: A, strokeWidth: 2, strokeLinecap: "round" }),
6125
+ s && I.map(([B, q], R) => /* @__PURE__ */ e("circle", { cx: B, cy: q, r: 3, fill: "var(--card)", stroke: A, strokeWidth: 2 }, R))
6126
+ ] }, k);
6126
6127
  }),
6127
- c && b.map((N, S) => /* @__PURE__ */ e(
6128
+ c && b.map((N, k) => /* @__PURE__ */ e(
6128
6129
  "rect",
6129
6130
  {
6130
- x: F(S) - M / 2,
6131
+ x: F(k) - M / 2,
6131
6132
  y: m.top,
6132
6133
  width: M,
6133
6134
  height: W,
6134
6135
  fill: "transparent",
6135
- onMouseEnter: () => p({ x: F(S), y: m.top, labelIdx: S })
6136
+ onMouseEnter: () => p({ x: F(k), y: m.top, labelIdx: k })
6136
6137
  },
6137
- S
6138
+ k
6138
6139
  )),
6139
6140
  u && /* @__PURE__ */ e(
6140
6141
  "line",
@@ -6151,15 +6152,15 @@ function cl({
6151
6152
  u && /* @__PURE__ */ e(
6152
6153
  Tt,
6153
6154
  {
6154
- x: Et(F(u.labelIdx) + 8, m.left, y - 180),
6155
+ x: Et(F(u.labelIdx) + 8, m.left, g - 180),
6155
6156
  y: m.top,
6156
6157
  label: b[u.labelIdx],
6157
- items: t.map((N, S) => {
6158
+ items: t.map((N, k) => {
6158
6159
  var A;
6159
6160
  return {
6160
6161
  name: N.name,
6161
6162
  value: ((A = N.data[u.labelIdx]) == null ? void 0 : A.value) ?? 0,
6162
- color: pe(N, S)
6163
+ color: pe(N, k)
6163
6164
  };
6164
6165
  })
6165
6166
  }
@@ -6167,10 +6168,10 @@ function cl({
6167
6168
  ]
6168
6169
  }
6169
6170
  ),
6170
- d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((N, S) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6171
- /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: pe(N, S) } }),
6171
+ d && t.length > 1 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 mt-2 justify-center", children: t.map((N, k) => /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5", style: ce, children: [
6172
+ /* @__PURE__ */ e("div", { className: "w-3 h-0.5 rounded-full", style: { backgroundColor: pe(N, k) } }),
6172
6173
  /* @__PURE__ */ e("span", { className: "text-muted-foreground", children: N.name })
6173
- ] }, S)) })
6174
+ ] }, k)) })
6174
6175
  ] });
6175
6176
  }
6176
6177
  cl.displayName = "AreaChart";
@@ -6187,17 +6188,17 @@ function ul({
6187
6188
  radius: f = 4,
6188
6189
  className: h = ""
6189
6190
  }) {
6190
- const [v, x] = j(null);
6191
+ const [v, y] = j(null);
6191
6192
  if (!t.length || !t[0].data.length) return null;
6192
6193
  const u = t[0].data.map((C) => C.label);
6193
6194
  let p;
6194
6195
  s ? p = dt(
6195
- u.map((C, N) => t.reduce((S, A) => {
6196
- var E;
6197
- return S + (((E = A.data[N]) == null ? void 0 : E.value) ?? 0);
6196
+ u.map((C, N) => t.reduce((k, A) => {
6197
+ var I;
6198
+ return k + (((I = A.data[N]) == null ? void 0 : I.value) ?? 0);
6198
6199
  }, 0))
6199
6200
  ) : p = dt(t.flatMap((C) => C.data.map((N) => N.value)));
6200
- const b = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, g = n ?? 600, $ = r, k = g - b.left - b.right, m = $ - b.top - b.bottom, y = k / u.length, w = y * 0.2, z = y - w * 2, W = s ? z : z / t.length;
6201
+ const b = { top: 12, right: 16, bottom: o ? 36 : 12, left: l ? 48 : 16 }, x = n ?? 600, $ = r, S = x - b.left - b.right, m = $ - b.top - b.bottom, g = S / u.length, w = g * 0.2, z = g - w * 2, W = s ? z : z / t.length;
6201
6202
  function M(C) {
6202
6203
  return b.top + m - C / p * m;
6203
6204
  }
@@ -6205,24 +6206,24 @@ function ul({
6205
6206
  return C / p * m;
6206
6207
  }
6207
6208
  function L(C) {
6208
- return b.left + C * y + w;
6209
+ return b.left + C * g + w;
6209
6210
  }
6210
- const I = Array.from({ length: 5 }, (C, N) => N / 4 * p);
6211
+ const E = Array.from({ length: 5 }, (C, N) => N / 4 * p);
6211
6212
  return /* @__PURE__ */ a("div", { className: `w-full ${h}`, children: [
6212
6213
  /* @__PURE__ */ a(
6213
6214
  "svg",
6214
6215
  {
6215
- width: n ? g : "100%",
6216
+ width: n ? x : "100%",
6216
6217
  height: $,
6217
- viewBox: `0 0 ${g} ${$}`,
6218
- onMouseLeave: () => x(null),
6218
+ viewBox: `0 0 ${x} ${$}`,
6219
+ onMouseLeave: () => y(null),
6219
6220
  children: [
6220
- i && I.map((C, N) => /* @__PURE__ */ e(
6221
+ i && E.map((C, N) => /* @__PURE__ */ e(
6221
6222
  "line",
6222
6223
  {
6223
6224
  x1: b.left,
6224
6225
  y1: M(C),
6225
- x2: g - b.right,
6226
+ x2: x - b.right,
6226
6227
  y2: M(C),
6227
6228
  stroke: "var(--border)",
6228
6229
  strokeWidth: 0.5,
@@ -6230,7 +6231,7 @@ function ul({
6230
6231
  },
6231
6232
  N
6232
6233
  )),
6233
- l && I.map((C, N) => /* @__PURE__ */ e(
6234
+ l && E.map((C, N) => /* @__PURE__ */ e(
6234
6235
  "text",
6235
6236
  {
6236
6237
  x: b.left - 8,
@@ -6256,22 +6257,22 @@ function ul({
6256
6257
  )),
6257
6258
  u.map((C, N) => {
6258
6259
  if (s) {
6259
- let S = b.top + m;
6260
- return /* @__PURE__ */ e("g", { children: t.map((A, E) => {
6260
+ let k = b.top + m;
6261
+ return /* @__PURE__ */ e("g", { children: t.map((A, I) => {
6261
6262
  var J;
6262
- const R = ((J = A.data[N]) == null ? void 0 : J.value) ?? 0, _ = F(R), B = S - _;
6263
- S = B;
6264
- const q = pe(A, E), H = E === t.length - 1, K = E === 0, ae = f, G = L(N), re = z, Y = _, T = H && K ? `M${G},${B + ae} Q${G},${B} ${G + ae},${B} L${G + re - ae},${B} Q${G + re},${B} ${G + re},${B + ae} L${G + re},${B + Y} L${G},${B + Y} Z` : H ? `M${G},${B + ae} Q${G},${B} ${G + ae},${B} L${G + re - ae},${B} Q${G + re},${B} ${G + re},${B + ae} L${G + re},${B + Y} L${G},${B + Y} Z` : `M${G},${B} L${G + re},${B} L${G + re},${B + Y} L${G},${B + Y} Z`;
6265
- return /* @__PURE__ */ e("path", { d: T, fill: q }, E);
6263
+ const _ = ((J = A.data[N]) == null ? void 0 : J.value) ?? 0, H = F(_), B = k - H;
6264
+ k = B;
6265
+ const q = pe(A, I), R = I === t.length - 1, K = I === 0, ae = f, G = L(N), re = z, Y = H, T = R && K ? `M${G},${B + ae} Q${G},${B} ${G + ae},${B} L${G + re - ae},${B} Q${G + re},${B} ${G + re},${B + ae} L${G + re},${B + Y} L${G},${B + Y} Z` : R ? `M${G},${B + ae} Q${G},${B} ${G + ae},${B} L${G + re - ae},${B} Q${G + re},${B} ${G + re},${B + ae} L${G + re},${B + Y} L${G},${B + Y} Z` : `M${G},${B} L${G + re},${B} L${G + re},${B + Y} L${G},${B + Y} Z`;
6266
+ return /* @__PURE__ */ e("path", { d: T, fill: q }, I);
6266
6267
  }) }, N);
6267
6268
  } else
6268
- return /* @__PURE__ */ e("g", { children: t.map((S, A) => {
6269
+ return /* @__PURE__ */ e("g", { children: t.map((k, A) => {
6269
6270
  var K;
6270
- const E = ((K = S.data[N]) == null ? void 0 : K.value) ?? 0, R = F(E), _ = L(N) + A * W, B = M(E), q = pe(S, A), H = Math.min(f, W / 2);
6271
+ const I = ((K = k.data[N]) == null ? void 0 : K.value) ?? 0, _ = F(I), H = L(N) + A * W, B = M(I), q = pe(k, A), R = Math.min(f, W / 2);
6271
6272
  return /* @__PURE__ */ e(
6272
6273
  "path",
6273
6274
  {
6274
- d: `M${_},${B + H} Q${_},${B} ${_ + H},${B} L${_ + W - H},${B} Q${_ + W},${B} ${_ + W},${B + H} L${_ + W},${B + R} L${_},${B + R} Z`,
6275
+ d: `M${H},${B + R} Q${H},${B} ${H + R},${B} L${H + W - R},${B} Q${H + W},${B} ${H + W},${B + R} L${H + W},${B + _} L${H},${B + _} Z`,
6275
6276
  fill: q
6276
6277
  },
6277
6278
  A
@@ -6287,21 +6288,21 @@ function ul({
6287
6288
  height: m,
6288
6289
  fill: "transparent",
6289
6290
  style: { cursor: "default" },
6290
- onMouseEnter: () => x({ x: L(N) + z / 2, y: b.top, labelIdx: N })
6291
+ onMouseEnter: () => y({ x: L(N) + z / 2, y: b.top, labelIdx: N })
6291
6292
  },
6292
6293
  N
6293
6294
  )),
6294
6295
  v && /* @__PURE__ */ e(
6295
6296
  Tt,
6296
6297
  {
6297
- x: Et(v.x + 8, b.left, g - 180),
6298
+ x: Et(v.x + 8, b.left, x - 180),
6298
6299
  y: b.top,
6299
6300
  label: u[v.labelIdx],
6300
6301
  items: t.map((C, N) => {
6301
- var S;
6302
+ var k;
6302
6303
  return {
6303
6304
  name: C.name,
6304
- value: ((S = C.data[v.labelIdx]) == null ? void 0 : S.value) ?? 0,
6305
+ value: ((k = C.data[v.labelIdx]) == null ? void 0 : k.value) ?? 0,
6305
6306
  color: pe(C, N)
6306
6307
  };
6307
6308
  })
@@ -6327,25 +6328,25 @@ function fl({
6327
6328
  showTooltip: d = !0,
6328
6329
  className: c = ""
6329
6330
  }) {
6330
- const [s, f] = j(null), h = t.reduce((m, y) => m + y.value, 0);
6331
+ const [s, f] = j(null), h = t.reduce((m, g) => m + g.value, 0);
6331
6332
  if (h === 0 || t.length === 0) return null;
6332
- const v = r / 2, x = r / 2, u = r / 2 - 4, p = u * n;
6333
+ const v = r / 2, y = r / 2, u = r / 2 - 4, p = u * n;
6333
6334
  let b = -Math.PI / 2;
6334
- const g = t.map((m, y) => {
6335
+ const x = t.map((m, g) => {
6335
6336
  const w = m.value / h, z = b, W = b + w * 2 * Math.PI;
6336
6337
  b = W;
6337
- const M = v + u * Math.cos(z), F = x + u * Math.sin(z), L = v + u * Math.cos(W), I = x + u * Math.sin(W), C = v + p * Math.cos(W), N = x + p * Math.sin(W), S = v + p * Math.cos(z), A = x + p * Math.sin(z), E = w > 0.5 ? 1 : 0;
6338
+ const M = v + u * Math.cos(z), F = y + u * Math.sin(z), L = v + u * Math.cos(W), E = y + u * Math.sin(W), C = v + p * Math.cos(W), N = y + p * Math.sin(W), k = v + p * Math.cos(z), A = y + p * Math.sin(z), I = w > 0.5 ? 1 : 0;
6338
6339
  return { path: [
6339
6340
  `M${M},${F}`,
6340
- `A${u},${u} 0 ${E} 1 ${L},${I}`,
6341
+ `A${u},${u} 0 ${I} 1 ${L},${E}`,
6341
6342
  `L${C},${N}`,
6342
- `A${p},${p} 0 ${E} 0 ${S},${A}`,
6343
+ `A${p},${p} 0 ${I} 0 ${k},${A}`,
6343
6344
  "Z"
6344
- ].join(" "), color: m.color ?? Re[y % Re.length], ratio: w, d: m, i: y };
6345
- }), $ = l ?? h.toLocaleString(), k = s !== null ? t[s] : null;
6345
+ ].join(" "), color: m.color ?? Re[g % Re.length], ratio: w, d: m, i: g };
6346
+ }), $ = l ?? h.toLocaleString(), S = s !== null ? t[s] : null;
6346
6347
  return /* @__PURE__ */ a("div", { className: `flex items-center gap-6 ${c}`, children: [
6347
6348
  /* @__PURE__ */ e("div", { className: "relative flex-shrink-0", children: /* @__PURE__ */ a("svg", { width: r, height: r, viewBox: `0 0 ${r} ${r}`, children: [
6348
- g.map((m) => /* @__PURE__ */ e(
6349
+ x.map((m) => /* @__PURE__ */ e(
6349
6350
  "path",
6350
6351
  {
6351
6352
  d: m.path,
@@ -6362,39 +6363,39 @@ function fl({
6362
6363
  "text",
6363
6364
  {
6364
6365
  x: v,
6365
- y: x - 6,
6366
+ y: y - 6,
6366
6367
  textAnchor: "middle",
6367
6368
  fill: "var(--foreground)",
6368
6369
  style: { ...ce, fontWeight: "700", fontSize: "18px" },
6369
- children: k ? k.value.toLocaleString() : $
6370
+ children: S ? S.value.toLocaleString() : $
6370
6371
  }
6371
6372
  ),
6372
- (o || k) && /* @__PURE__ */ e(
6373
+ (o || S) && /* @__PURE__ */ e(
6373
6374
  "text",
6374
6375
  {
6375
6376
  x: v,
6376
- y: x + 12,
6377
+ y: y + 12,
6377
6378
  textAnchor: "middle",
6378
6379
  fill: "var(--muted-foreground)",
6379
6380
  style: { ...ce, fontSize: "var(--text-caption)" },
6380
- children: k ? k.label : o
6381
+ children: S ? S.label : o
6381
6382
  }
6382
6383
  )
6383
6384
  ] })
6384
6385
  ] }) }),
6385
- i && /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: t.map((m, y) => /* @__PURE__ */ a(
6386
+ i && /* @__PURE__ */ e("div", { className: "flex flex-col gap-2", children: t.map((m, g) => /* @__PURE__ */ a(
6386
6387
  "div",
6387
6388
  {
6388
6389
  className: "flex items-center gap-2 cursor-default",
6389
6390
  style: ce,
6390
- onMouseEnter: () => f(y),
6391
+ onMouseEnter: () => f(g),
6391
6392
  onMouseLeave: () => f(null),
6392
6393
  children: [
6393
6394
  /* @__PURE__ */ e(
6394
6395
  "div",
6395
6396
  {
6396
6397
  className: "w-2.5 h-2.5 rounded-sm flex-shrink-0",
6397
- style: { backgroundColor: m.color ?? Re[y % Re.length] }
6398
+ style: { backgroundColor: m.color ?? Re[g % Re.length] }
6398
6399
  }
6399
6400
  ),
6400
6401
  /* @__PURE__ */ e("span", { className: "text-foreground", children: m.label }),
@@ -6404,7 +6405,7 @@ function fl({
6404
6405
  ] })
6405
6406
  ]
6406
6407
  },
6407
- y
6408
+ g
6408
6409
  )) })
6409
6410
  ] });
6410
6411
  }
@@ -6420,22 +6421,22 @@ function ml({
6420
6421
  className: c = ""
6421
6422
  }) {
6422
6423
  if (!t.length) return null;
6423
- const s = Math.min(...t), h = Math.max(...t) - s || 1, v = t[t.length - 1] > t[0] ? "up" : t[t.length - 1] < t[0] ? "down" : "neutral", x = d ?? v, p = l ?? (x === "up" ? "var(--chart-1, #22c55e)" : x === "down" ? "var(--chart-4, #ef4444)" : "var(--muted-foreground)"), b = 2, g = n - b * 2, $ = o - b * 2;
6424
- function k(W) {
6425
- return b + W / (t.length - 1 || 1) * g;
6424
+ const s = Math.min(...t), h = Math.max(...t) - s || 1, v = t[t.length - 1] > t[0] ? "up" : t[t.length - 1] < t[0] ? "down" : "neutral", y = d ?? v, p = l ?? (y === "up" ? "var(--chart-1, #22c55e)" : y === "down" ? "var(--chart-4, #ef4444)" : "var(--muted-foreground)"), b = 2, x = n - b * 2, $ = o - b * 2;
6425
+ function S(W) {
6426
+ return b + W / (t.length - 1 || 1) * x;
6426
6427
  }
6427
6428
  function m(W) {
6428
6429
  return b + $ - (W - s) / h * $;
6429
6430
  }
6430
6431
  if (r === "bar") {
6431
- const W = g / t.length - 1;
6432
+ const W = x / t.length - 1;
6432
6433
  return /* @__PURE__ */ a("div", { className: `inline-flex items-center gap-1.5 ${c}`, children: [
6433
6434
  /* @__PURE__ */ e("svg", { width: n, height: o, viewBox: `0 0 ${n} ${o}`, children: t.map((M, F) => {
6434
6435
  const L = (M - s) / h * $;
6435
6436
  return /* @__PURE__ */ e(
6436
6437
  "rect",
6437
6438
  {
6438
- x: b + F * (g / t.length),
6439
+ x: b + F * (x / t.length),
6439
6440
  y: b + $ - L,
6440
6441
  width: W,
6441
6442
  height: L,
@@ -6449,12 +6450,12 @@ function ml({
6449
6450
  i && /* @__PURE__ */ e("span", { style: { ...ce, color: p }, children: t[t.length - 1].toLocaleString() })
6450
6451
  ] });
6451
6452
  }
6452
- const y = t.map((W, M) => [k(M), m(W)]), w = It(y, !1), z = w + ` L${y[y.length - 1][0]},${b + $} L${y[0][0]},${b + $} Z`;
6453
+ const g = t.map((W, M) => [S(M), m(W)]), w = It(g, !1), z = w + ` L${g[g.length - 1][0]},${b + $} L${g[0][0]},${b + $} Z`;
6453
6454
  return /* @__PURE__ */ a("div", { className: `inline-flex items-center gap-1.5 ${c}`, children: [
6454
6455
  /* @__PURE__ */ a("svg", { width: n, height: o, viewBox: `0 0 ${n} ${o}`, children: [
6455
6456
  r === "area" && /* @__PURE__ */ e("path", { d: z, fill: p, fillOpacity: 0.15 }),
6456
6457
  /* @__PURE__ */ e("path", { d: w, fill: "none", stroke: p, strokeWidth: 1.5, strokeLinecap: "round" }),
6457
- /* @__PURE__ */ e("circle", { cx: y[y.length - 1][0], cy: y[y.length - 1][1], r: 2, fill: p })
6458
+ /* @__PURE__ */ e("circle", { cx: g[g.length - 1][0], cy: g[g.length - 1][1], r: 2, fill: p })
6458
6459
  ] }),
6459
6460
  i && /* @__PURE__ */ e("span", { style: { ...ce, color: p }, children: t[t.length - 1].toLocaleString() })
6460
6461
  ] });
@@ -6582,10 +6583,10 @@ function cr({
6582
6583
  function v(u) {
6583
6584
  const p = n.from, b = n.to ?? o;
6584
6585
  if (!p || !b) return !1;
6585
- const [g, $] = p <= b ? [p, b] : [b, p];
6586
- return u > g && u < $;
6586
+ const [x, $] = p <= b ? [p, b] : [b, p];
6587
+ return u > x && u < $;
6587
6588
  }
6588
- function x(u) {
6589
+ function y(u) {
6589
6590
  return !!(s && u < Se(s) || f && u > ke(f));
6590
6591
  }
6591
6592
  return /* @__PURE__ */ a("div", { className: "select-none flex-1 min-w-0", children: [
@@ -6616,7 +6617,7 @@ function cr({
6616
6617
  ] }),
6617
6618
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: pl.map((u) => /* @__PURE__ */ e("div", { className: "h-8 flex items-center justify-center text-muted-foreground", style: dr, children: u }, u)) }),
6618
6619
  /* @__PURE__ */ e("div", { className: "grid grid-cols-7", children: h.map((u, p) => {
6619
- const b = u.getMonth() === t, g = n.from ? Nt(u, n.from) : !1, $ = n.to ? Nt(u, n.to) : o && n.from ? Nt(u, o) : !1, k = v(u), m = x(u);
6620
+ const b = u.getMonth() === t, x = n.from ? Nt(u, n.from) : !1, $ = n.to ? Nt(u, n.to) : o && n.from ? Nt(u, o) : !1, S = v(u), m = y(u);
6620
6621
  return /* @__PURE__ */ e(
6621
6622
  "button",
6622
6623
  {
@@ -6629,7 +6630,7 @@ function cr({
6629
6630
  "h-8 w-full flex items-center justify-center text-center transition-colors",
6630
6631
  m ? "opacity-30 cursor-not-allowed" : "cursor-pointer",
6631
6632
  b ? "" : "text-muted-foreground/40",
6632
- g || $ ? "bg-primary text-primary-foreground rounded-[var(--radius-md)] font-semibold" : k ? "bg-primary/10 text-primary" : m ? "" : "hover:bg-muted/40 rounded-[var(--radius-md)]"
6633
+ x || $ ? "bg-primary text-primary-foreground rounded-[var(--radius-md)] font-semibold" : S ? "bg-primary/10 text-primary" : m ? "" : "hover:bg-muted/40 rounded-[var(--radius-md)]"
6633
6634
  ].filter(Boolean).join(" "),
6634
6635
  style: dr,
6635
6636
  children: u.getDate()
@@ -6651,52 +6652,52 @@ function yl({
6651
6652
  disabled: s = !1,
6652
6653
  className: f = ""
6653
6654
  }) {
6654
- const h = /* @__PURE__ */ new Date(), [v, x] = j(!1), [u, p] = j({ from: null, to: null }), [b, g] = j(null), [$, k] = j(void 0), [m, y] = j(h.getMonth()), [w, z] = j(h.getFullYear()), [W, M] = j("from"), [F, L] = j({ top: 0, left: 0, width: 0 }), I = V(null), C = V(null), N = t ?? u, S = (m + 1) % 12, A = m === 11 ? w + 1 : w;
6655
+ const h = /* @__PURE__ */ new Date(), [v, y] = j(!1), [u, p] = j({ from: null, to: null }), [b, x] = j(null), [$, S] = j(void 0), [m, g] = j(h.getMonth()), [w, z] = j(h.getFullYear()), [W, M] = j("from"), [F, L] = j({ top: 0, left: 0, width: 0 }), E = V(null), C = V(null), N = t ?? u, k = (m + 1) % 12, A = m === 11 ? w + 1 : w;
6655
6656
  ne(() => {
6656
- function H(K) {
6657
- I.current && !I.current.contains(K.target) && x(!1);
6657
+ function R(K) {
6658
+ E.current && !E.current.contains(K.target) && y(!1);
6658
6659
  }
6659
- return document.addEventListener("mousedown", H), () => document.removeEventListener("mousedown", H);
6660
+ return document.addEventListener("mousedown", R), () => document.removeEventListener("mousedown", R);
6660
6661
  }, []), ne(() => {
6661
6662
  if (!v || !C.current) return;
6662
- const H = () => {
6663
+ const R = () => {
6663
6664
  const K = C.current.getBoundingClientRect();
6664
6665
  L({ top: K.bottom + 4, left: K.left, width: K.width });
6665
6666
  };
6666
- return H(), window.addEventListener("scroll", H, !0), window.addEventListener("resize", H), () => {
6667
- window.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H);
6667
+ return R(), window.addEventListener("scroll", R, !0), window.addEventListener("resize", R), () => {
6668
+ window.removeEventListener("scroll", R, !0), window.removeEventListener("resize", R);
6668
6669
  };
6669
6670
  }, [v]);
6670
- function E(H) {
6671
- if (H.value === "custom") {
6672
- k("custom");
6671
+ function I(R) {
6672
+ if (R.value === "custom") {
6673
+ S("custom");
6673
6674
  return;
6674
6675
  }
6675
- const K = H.range();
6676
- p(K), r == null || r(K, H.value), k(H.value), x(!1);
6676
+ const K = R.range();
6677
+ p(K), r == null || r(K, R.value), S(R.value), y(!1);
6677
6678
  }
6678
- function R(H) {
6679
+ function _(R) {
6679
6680
  if (W === "from")
6680
- p({ from: Se(H), to: null }), M("to");
6681
+ p({ from: Se(R), to: null }), M("to");
6681
6682
  else {
6682
- const K = u.from, [ae, G] = H >= K ? [K, ke(H)] : [Se(H), ke(K)], re = { from: ae, to: G };
6683
- p(re), r == null || r(re, "custom"), k("custom"), M("from"), x(!1);
6683
+ const K = u.from, [ae, G] = R >= K ? [K, ke(R)] : [Se(R), ke(K)], re = { from: ae, to: G };
6684
+ p(re), r == null || r(re, "custom"), S("custom"), M("from"), y(!1);
6684
6685
  }
6685
6686
  }
6686
- function _(H) {
6687
- H.stopPropagation();
6687
+ function H(R) {
6688
+ R.stopPropagation();
6688
6689
  const K = { from: null, to: null };
6689
- p(K), r == null || r(K, void 0), k(void 0);
6690
+ p(K), r == null || r(K, void 0), S(void 0);
6690
6691
  }
6691
- const B = N.from && N.to ? `${wt(N.from)} – ${wt(N.to)}` : N.from ? `${wt(N.from)} – ...` : "", q = hl.filter((H) => n.includes(H.value));
6692
- return /* @__PURE__ */ a("div", { ref: I, className: `relative inline-block ${f}`, children: [
6692
+ const B = N.from && N.to ? `${wt(N.from)} – ${wt(N.to)}` : N.from ? `${wt(N.from)} – ...` : "", q = hl.filter((R) => n.includes(R.value));
6693
+ return /* @__PURE__ */ a("div", { ref: E, className: `relative inline-block ${f}`, children: [
6693
6694
  /* @__PURE__ */ a(
6694
6695
  "button",
6695
6696
  {
6696
6697
  ref: C,
6697
6698
  type: "button",
6698
6699
  disabled: s,
6699
- onClick: () => !s && x(!v),
6700
+ onClick: () => !s && y(!v),
6700
6701
  className: [
6701
6702
  "flex items-center gap-2 border border-border bg-card text-left rounded-[var(--radius-md)] transition-colors w-full min-w-[260px]",
6702
6703
  xl[l],
@@ -6712,8 +6713,8 @@ function yl({
6712
6713
  {
6713
6714
  role: "button",
6714
6715
  tabIndex: 0,
6715
- onClick: _,
6716
- onKeyDown: (H) => H.key === "Enter" && _(H),
6716
+ onClick: H,
6717
+ onKeyDown: (R) => R.key === "Enter" && H(R),
6717
6718
  className: "text-muted-foreground hover:text-foreground transition-colors cursor-pointer flex-shrink-0",
6718
6719
  children: /* @__PURE__ */ e(ie, { size: 12 })
6719
6720
  }
@@ -6728,19 +6729,19 @@ function yl({
6728
6729
  className: "fixed z-[9999] bg-card border border-border rounded-[var(--radius-md)] shadow-[0_4px_24px_0_rgba(0,0,0,0.1)] flex overflow-y-auto",
6729
6730
  style: { top: F.top, left: F.left, minWidth: "620px", maxHeight: "calc(100vh - 120px)" },
6730
6731
  children: [
6731
- /* @__PURE__ */ e("div", { className: "w-36 border-r border-border py-2 flex flex-col gap-0.5 flex-shrink-0", children: q.map((H) => /* @__PURE__ */ e(
6732
+ /* @__PURE__ */ e("div", { className: "w-36 border-r border-border py-2 flex flex-col gap-0.5 flex-shrink-0", children: q.map((R) => /* @__PURE__ */ e(
6732
6733
  "button",
6733
6734
  {
6734
6735
  type: "button",
6735
- onClick: () => E(H),
6736
+ onClick: () => I(R),
6736
6737
  className: [
6737
6738
  "w-full text-left px-3 py-1.5 rounded-none transition-colors",
6738
- $ === H.value ? "bg-primary/10 text-primary" : "text-foreground hover:bg-muted/30"
6739
+ $ === R.value ? "bg-primary/10 text-primary" : "text-foreground hover:bg-muted/30"
6739
6740
  ].join(" "),
6740
6741
  style: Zr,
6741
- children: H.label
6742
+ children: R.label
6742
6743
  },
6743
- H.value
6744
+ R.value
6744
6745
  )) }),
6745
6746
  /* @__PURE__ */ a("div", { className: "flex gap-4 p-4 flex-1 min-w-0", children: [
6746
6747
  /* @__PURE__ */ e(
@@ -6750,13 +6751,13 @@ function yl({
6750
6751
  year: w,
6751
6752
  range: N,
6752
6753
  hovered: b,
6753
- onHover: g,
6754
- onSelect: R,
6754
+ onHover: x,
6755
+ onSelect: _,
6755
6756
  onPrevMonth: () => {
6756
- m === 0 ? (y(11), z(w - 1)) : y(m - 1);
6757
+ m === 0 ? (g(11), z(w - 1)) : g(m - 1);
6757
6758
  },
6758
6759
  onNextMonth: () => {
6759
- m === 11 ? (y(0), z(w + 1)) : y(m + 1);
6760
+ m === 11 ? (g(0), z(w + 1)) : g(m + 1);
6760
6761
  },
6761
6762
  minDate: i,
6762
6763
  maxDate: d
@@ -6766,17 +6767,17 @@ function yl({
6766
6767
  /* @__PURE__ */ e(
6767
6768
  cr,
6768
6769
  {
6769
- month: S,
6770
+ month: k,
6770
6771
  year: A,
6771
6772
  range: N,
6772
6773
  hovered: b,
6773
- onHover: g,
6774
- onSelect: R,
6774
+ onHover: x,
6775
+ onSelect: _,
6775
6776
  onPrevMonth: () => {
6776
- m === 0 ? (y(11), z(w - 1)) : y(m - 1);
6777
+ m === 0 ? (g(11), z(w - 1)) : g(m - 1);
6777
6778
  },
6778
6779
  onNextMonth: () => {
6779
- m === 11 ? (y(0), z(w + 1)) : y(m + 1);
6780
+ m === 11 ? (g(0), z(w + 1)) : g(m + 1);
6780
6781
  },
6781
6782
  minDate: i,
6782
6783
  maxDate: d
@@ -6862,10 +6863,10 @@ function Qr({
6862
6863
  disabled: c = !1,
6863
6864
  className: s = ""
6864
6865
  }) {
6865
- const [f, h] = j(!1), [v, x] = j({ hours: 0, minutes: 0, seconds: 0 }), u = V(null), p = t ?? v, b = n === "12h" ? Array.from({ length: 12 }, (F, L) => L + 1) : Array.from({ length: 24 }, (F, L) => L), g = Array.from(
6866
+ const [f, h] = j(!1), [v, y] = j({ hours: 0, minutes: 0, seconds: 0 }), u = V(null), p = t ?? v, b = n === "12h" ? Array.from({ length: 12 }, (F, L) => L + 1) : Array.from({ length: 24 }, (F, L) => L), x = Array.from(
6866
6867
  { length: Math.ceil(60 / l) },
6867
6868
  (F, L) => L * l
6868
- ), $ = Array.from({ length: 60 }, (F, L) => L), k = ["AM", "PM"];
6869
+ ), $ = Array.from({ length: 60 }, (F, L) => L), S = ["AM", "PM"];
6869
6870
  ne(() => {
6870
6871
  function F(L) {
6871
6872
  u.current && !u.current.contains(L.target) && h(!1);
@@ -6874,12 +6875,12 @@ function Qr({
6874
6875
  }, []);
6875
6876
  function m(F) {
6876
6877
  const L = { ...p, ...F };
6877
- x(L), r == null || r(L);
6878
+ y(L), r == null || r(L);
6878
6879
  }
6879
- const y = Xr(p, n, o), w = t !== void 0 || v.hours !== 0 || v.minutes !== 0, z = n === "12h" ? p.hours % 12 || 12 : p.hours, W = p.hours < 12;
6880
+ const g = Xr(p, n, o), w = t !== void 0 || v.hours !== 0 || v.minutes !== 0, z = n === "12h" ? p.hours % 12 || 12 : p.hours, W = p.hours < 12;
6880
6881
  function M(F, L) {
6881
- let I = F % 12;
6882
- L || (I += 12), m({ hours: I });
6882
+ let E = F % 12;
6883
+ L || (E += 12), m({ hours: E });
6883
6884
  }
6884
6885
  return /* @__PURE__ */ a("div", { ref: u, className: `relative inline-block ${s}`, children: [
6885
6886
  /* @__PURE__ */ a(
@@ -6897,7 +6898,7 @@ function Qr({
6897
6898
  style: qr,
6898
6899
  children: [
6899
6900
  /* @__PURE__ */ e(jt, { size: 14, className: "text-muted-foreground flex-shrink-0" }),
6900
- /* @__PURE__ */ e("span", { className: w ? "text-foreground" : "text-muted-foreground", children: w ? y : i })
6901
+ /* @__PURE__ */ e("span", { className: w ? "text-foreground" : "text-muted-foreground", children: w ? g : i })
6901
6902
  ]
6902
6903
  }
6903
6904
  ),
@@ -6923,7 +6924,7 @@ function Qr({
6923
6924
  /* @__PURE__ */ e(
6924
6925
  rt,
6925
6926
  {
6926
- options: g,
6927
+ options: x,
6927
6928
  value: p.minutes,
6928
6929
  onChange: (F) => m({ minutes: F }),
6929
6930
  label: "Min"
@@ -6943,7 +6944,7 @@ function Qr({
6943
6944
  ] }),
6944
6945
  n === "12h" && /* @__PURE__ */ a("div", { className: "flex flex-col gap-1 ml-1", children: [
6945
6946
  /* @__PURE__ */ e("div", { className: "h-5" }),
6946
- k.map((F) => /* @__PURE__ */ e(
6947
+ S.map((F) => /* @__PURE__ */ e(
6947
6948
  "button",
6948
6949
  {
6949
6950
  type: "button",
@@ -6974,33 +6975,33 @@ function wl({
6974
6975
  disabled: s = !1,
6975
6976
  className: f = ""
6976
6977
  }) {
6977
- const [h, v] = j(!1), [x, u] = j(t ?? /* @__PURE__ */ new Date()), p = V(null), b = t ?? x, g = /* @__PURE__ */ new Date(), [$, k] = j(b.getMonth()), [m, y] = j(b.getFullYear());
6978
+ const [h, v] = j(!1), [y, u] = j(t ?? /* @__PURE__ */ new Date()), p = V(null), b = t ?? y, x = /* @__PURE__ */ new Date(), [$, S] = j(b.getMonth()), [m, g] = j(b.getFullYear());
6978
6979
  ne(() => {
6979
- function S(A) {
6980
+ function k(A) {
6980
6981
  p.current && !p.current.contains(A.target) && v(!1);
6981
6982
  }
6982
- return document.addEventListener("mousedown", S), () => document.removeEventListener("mousedown", S);
6983
+ return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
6983
6984
  }, []);
6984
- function w(S) {
6985
- u(S), r == null || r(S);
6985
+ function w(k) {
6986
+ u(k), r == null || r(k);
6986
6987
  }
6987
- function z(S) {
6988
- const A = new Date(S);
6988
+ function z(k) {
6989
+ const A = new Date(k);
6989
6990
  A.setHours(b.getHours(), b.getMinutes(), b.getSeconds(), 0), w(A);
6990
6991
  }
6991
- function W(S) {
6992
+ function W(k) {
6992
6993
  const A = new Date(b);
6993
- A.setHours(S.hours, S.minutes, S.seconds ?? 0, 0), w(A);
6994
+ A.setHours(k.hours, k.minutes, k.seconds ?? 0, 0), w(A);
6994
6995
  }
6995
6996
  const M = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], F = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
6996
6997
  function L() {
6997
- const S = [], A = new Date(m, $, 1), E = new Date(A);
6998
- E.setDate(E.getDate() - E.getDay());
6999
- for (let R = 0; R < 42; R++)
7000
- S.push(new Date(E)), E.setDate(E.getDate() + 1);
7001
- return S;
6998
+ const k = [], A = new Date(m, $, 1), I = new Date(A);
6999
+ I.setDate(I.getDate() - I.getDay());
7000
+ for (let _ = 0; _ < 42; _++)
7001
+ k.push(new Date(I)), I.setDate(I.getDate() + 1);
7002
+ return k;
7002
7003
  }
7003
- const I = {
7004
+ const E = {
7004
7005
  fontFamily: "var(--font-label)",
7005
7006
  fontSize: "var(--text-label)",
7006
7007
  fontWeight: "var(--weight-label)"
@@ -7041,7 +7042,7 @@ function wl({
7041
7042
  {
7042
7043
  type: "button",
7043
7044
  onClick: () => {
7044
- $ === 0 ? (k(11), y(m - 1)) : k($ - 1);
7045
+ $ === 0 ? (S(11), g(m - 1)) : S($ - 1);
7045
7046
  },
7046
7047
  className: "w-7 h-7 flex items-center justify-center rounded-[var(--radius-md)] hover:bg-muted/40 text-muted-foreground cursor-pointer",
7047
7048
  children: /* @__PURE__ */ e(Me, { size: 14 })
@@ -7057,28 +7058,28 @@ function wl({
7057
7058
  {
7058
7059
  type: "button",
7059
7060
  onClick: () => {
7060
- $ === 11 ? (k(0), y(m + 1)) : k($ + 1);
7061
+ $ === 11 ? (S(0), g(m + 1)) : S($ + 1);
7061
7062
  },
7062
7063
  className: "w-7 h-7 flex items-center justify-center rounded-[var(--radius-md)] hover:bg-muted/40 text-muted-foreground cursor-pointer",
7063
7064
  children: /* @__PURE__ */ e(fe, { size: 14 })
7064
7065
  }
7065
7066
  )
7066
7067
  ] }),
7067
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: F.map((S) => /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground", style: I, children: S }, S)) }),
7068
- /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-y-0.5", children: L().map((S, A) => {
7069
- const E = S.getMonth() === $, R = t ? S.toDateString() === t.toDateString() : S.toDateString() === x.toDateString(), _ = S.toDateString() === g.toDateString();
7068
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 mb-1", children: F.map((k) => /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground", style: E, children: k }, k)) }),
7069
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-7 gap-y-0.5", children: L().map((k, A) => {
7070
+ const I = k.getMonth() === $, _ = t ? k.toDateString() === t.toDateString() : k.toDateString() === y.toDateString(), H = k.toDateString() === x.toDateString();
7070
7071
  return /* @__PURE__ */ e(
7071
7072
  "button",
7072
7073
  {
7073
7074
  type: "button",
7074
- onClick: () => z(S),
7075
+ onClick: () => z(k),
7075
7076
  className: [
7076
7077
  "h-7 w-full text-center transition-colors rounded-[var(--radius-md)] cursor-pointer",
7077
- E ? "" : "text-muted-foreground/40",
7078
- R ? "bg-primary text-primary-foreground font-semibold" : _ ? "border border-primary text-primary" : "hover:bg-muted/40"
7078
+ I ? "" : "text-muted-foreground/40",
7079
+ _ ? "bg-primary text-primary-foreground font-semibold" : H ? "border border-primary text-primary" : "hover:bg-muted/40"
7079
7080
  ].filter(Boolean).join(" "),
7080
- style: I,
7081
- children: S.getDate()
7081
+ style: E,
7082
+ children: k.getDate()
7082
7083
  },
7083
7084
  A
7084
7085
  );
@@ -7086,7 +7087,7 @@ function wl({
7086
7087
  ] }),
7087
7088
  /* @__PURE__ */ e("div", { className: "w-px bg-border" }),
7088
7089
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
7089
- /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: I, children: "Time" }),
7090
+ /* @__PURE__ */ e("span", { className: "text-muted-foreground", style: E, children: "Time" }),
7090
7091
  /* @__PURE__ */ e(
7091
7092
  Qr,
7092
7093
  {
@@ -7136,7 +7137,7 @@ function Fl({
7136
7137
  size: f = "md",
7137
7138
  layout: h = "horizontal",
7138
7139
  onClick: v,
7139
- className: x = ""
7140
+ className: y = ""
7140
7141
  }) {
7141
7142
  const u = h === "vertical";
7142
7143
  return /* @__PURE__ */ a(
@@ -7151,7 +7152,7 @@ function Fl({
7151
7152
  u ? "flex flex-col items-center text-center" : "flex items-center",
7152
7153
  i ? "border-primary bg-primary/5 shadow-[0_0_0_1px_var(--primary)]" : "border-border bg-card hover:border-primary/40 hover:bg-muted/20",
7153
7154
  d ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
7154
- x
7155
+ y
7155
7156
  ].filter(Boolean).join(" "),
7156
7157
  "aria-pressed": i,
7157
7158
  children: [
@@ -7390,22 +7391,22 @@ function _l({
7390
7391
  }) {
7391
7392
  const [h, v] = j(
7392
7393
  () => r ?? []
7393
- ), x = r ?? h, u = (w) => {
7394
+ ), y = r ?? h, u = (w) => {
7394
7395
  v(w), n == null || n(w);
7395
7396
  }, p = () => {
7396
- i !== void 0 && x.length >= i || u([...x, Tl(o)]);
7397
+ i !== void 0 && y.length >= i || u([...y, Tl(o)]);
7397
7398
  }, b = (w) => {
7398
- x.length <= l || u(x.filter((z) => z.id !== w));
7399
- }, g = (w, z, W) => {
7399
+ y.length <= l || u(y.filter((z) => z.id !== w));
7400
+ }, x = (w, z, W) => {
7400
7401
  u(
7401
- x.map(
7402
+ y.map(
7402
7403
  (M) => M.id === w ? { ...M, values: { ...M.values, [z]: W } } : M
7403
7404
  )
7404
7405
  );
7405
7406
  }, $ = (w, z) => {
7406
- const W = [...x], [M] = W.splice(w, 1);
7407
+ const W = [...y], [M] = W.splice(w, 1);
7407
7408
  W.splice(z, 0, M), u(W);
7408
- }, k = x.length <= l, m = i !== void 0 && x.length >= i, y = ge.useRef(null);
7409
+ }, S = y.length <= l, m = i !== void 0 && y.length >= i, g = ge.useRef(null);
7409
7410
  return /* @__PURE__ */ a("div", { className: `space-y-2 ${f}`, children: [
7410
7411
  /* @__PURE__ */ a(
7411
7412
  "div",
@@ -7428,7 +7429,7 @@ function _l({
7428
7429
  ]
7429
7430
  }
7430
7431
  ),
7431
- /* @__PURE__ */ e("div", { className: "space-y-2", children: x.map((w, z) => /* @__PURE__ */ a(
7432
+ /* @__PURE__ */ e("div", { className: "space-y-2", children: y.map((w, z) => /* @__PURE__ */ a(
7432
7433
  "div",
7433
7434
  {
7434
7435
  className: [
@@ -7437,13 +7438,13 @@ function _l({
7437
7438
  ].join(" "),
7438
7439
  draggable: c && !s,
7439
7440
  onDragStart: () => {
7440
- y.current = z;
7441
+ g.current = z;
7441
7442
  },
7442
7443
  onDragOver: (W) => {
7443
7444
  W.preventDefault();
7444
7445
  },
7445
7446
  onDrop: () => {
7446
- y.current !== null && y.current !== z && ($(y.current, z), y.current = null);
7447
+ g.current !== null && g.current !== z && ($(g.current, z), g.current = null);
7447
7448
  },
7448
7449
  children: [
7449
7450
  c && /* @__PURE__ */ e("div", { className: "cursor-grab text-muted-foreground/50 hover:text-muted-foreground flex-shrink-0", children: /* @__PURE__ */ e(Fn, { size: 14 }) }),
@@ -7454,7 +7455,7 @@ function _l({
7454
7455
  className: "min-w-0",
7455
7456
  children: W.render(
7456
7457
  w.values[W.key],
7457
- (M) => g(w.id, W.key, M),
7458
+ (M) => x(w.id, W.key, M),
7458
7459
  z
7459
7460
  )
7460
7461
  },
@@ -7464,11 +7465,11 @@ function _l({
7464
7465
  "button",
7465
7466
  {
7466
7467
  type: "button",
7467
- disabled: s || k,
7468
+ disabled: s || S,
7468
7469
  onClick: () => b(w.id),
7469
7470
  className: [
7470
7471
  "flex-shrink-0 w-8 h-8 flex items-center justify-center rounded-[var(--radius-md)] transition-colors",
7471
- s || k ? "text-muted-foreground/30 cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10 cursor-pointer"
7472
+ s || S ? "text-muted-foreground/30 cursor-not-allowed" : "text-muted-foreground hover:text-destructive hover:bg-destructive/10 cursor-pointer"
7472
7473
  ].join(" "),
7473
7474
  "aria-label": "Remove row",
7474
7475
  children: /* @__PURE__ */ e(St, { size: 14 })
@@ -7478,7 +7479,7 @@ function _l({
7478
7479
  },
7479
7480
  w.id
7480
7481
  )) }),
7481
- x.length === 0 && /* @__PURE__ */ e("div", { className: "text-center py-6 text-muted-foreground rounded-[var(--radius-md)] border border-dashed border-border", children: /* @__PURE__ */ a("span", { style: ur, children: [
7482
+ y.length === 0 && /* @__PURE__ */ e("div", { className: "text-center py-6 text-muted-foreground rounded-[var(--radius-md)] border border-dashed border-border", children: /* @__PURE__ */ a("span", { style: ur, children: [
7482
7483
  'No rows yet. Click "',
7483
7484
  d,
7484
7485
  '" to begin.'
@@ -7556,11 +7557,11 @@ function Pl({
7556
7557
  size: f = "md",
7557
7558
  className: h = ""
7558
7559
  }) {
7559
- const v = V(null), [x, u] = j(!1), [p, b] = j(/* @__PURE__ */ new Set()), [g, $] = j(!t);
7560
+ const v = V(null), [y, u] = j(!1), [p, b] = j(/* @__PURE__ */ new Set()), [x, $] = j(!t);
7560
7561
  ne(() => {
7561
7562
  v.current && t && v.current.innerHTML !== t && (v.current.innerHTML = t, $(!1));
7562
7563
  }, []);
7563
- const k = Q(() => {
7564
+ const S = Q(() => {
7564
7565
  const M = /* @__PURE__ */ new Set();
7565
7566
  [
7566
7567
  "bold",
@@ -7590,18 +7591,18 @@ function Pl({
7590
7591
  L && document.execCommand("createLink", !1, L);
7591
7592
  } else
7592
7593
  document.execCommand(M, !1);
7593
- k(), v.current && r && r(v.current.innerHTML);
7594
+ S(), v.current && r && r(v.current.innerHTML);
7594
7595
  }
7595
7596
  }
7596
- function y() {
7597
+ function g() {
7597
7598
  if (v.current) {
7598
7599
  const M = v.current.innerHTML, F = v.current.innerText.trim();
7599
- $(!F), r == null || r(M), k();
7600
+ $(!F), r == null || r(M), S();
7600
7601
  }
7601
7602
  }
7602
7603
  const z = o ?? { sm: 120, md: 160, lg: 240 }[f], W = [
7603
7604
  "border border-border rounded-[var(--radius-md)] bg-card overflow-hidden transition-all",
7604
- x ? "fixed inset-4 z-[var(--z-modal)] flex flex-col shadow-[0_8px_48px_rgba(0,0,0,0.2)]" : "relative",
7605
+ y ? "fixed inset-4 z-[var(--z-modal)] flex flex-col shadow-[0_8px_48px_rgba(0,0,0,0.2)]" : "relative",
7605
7606
  c ? "opacity-60" : "",
7606
7607
  h
7607
7608
  ].filter(Boolean).join(" ");
@@ -7611,16 +7612,16 @@ function Pl({
7611
7612
  const L = Hl[M];
7612
7613
  return /* @__PURE__ */ a(ge.Fragment, { children: [
7613
7614
  F > 0 && /* @__PURE__ */ e("div", { className: "w-px h-5 bg-border mx-1" }),
7614
- L.map((I) => {
7615
- const C = I.icon, N = p.has(I.cmd);
7615
+ L.map((E) => {
7616
+ const C = E.icon, N = p.has(E.cmd);
7616
7617
  return /* @__PURE__ */ e(
7617
7618
  "button",
7618
7619
  {
7619
7620
  type: "button",
7620
- title: I.title,
7621
+ title: E.title,
7621
7622
  disabled: c,
7622
- onMouseDown: (S) => {
7623
- S.preventDefault(), m(I.cmd);
7623
+ onMouseDown: (k) => {
7624
+ k.preventDefault(), m(E.cmd);
7624
7625
  },
7625
7626
  className: [
7626
7627
  "w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] transition-colors",
@@ -7629,7 +7630,7 @@ function Pl({
7629
7630
  ].join(" "),
7630
7631
  children: /* @__PURE__ */ e(C, { size: 13 })
7631
7632
  },
7632
- I.cmd
7633
+ E.cmd
7633
7634
  );
7634
7635
  })
7635
7636
  ] }, M);
@@ -7640,16 +7641,16 @@ function Pl({
7640
7641
  "button",
7641
7642
  {
7642
7643
  type: "button",
7643
- title: x ? "Exit fullscreen" : "Fullscreen",
7644
- onClick: () => u(!x),
7644
+ title: y ? "Exit fullscreen" : "Fullscreen",
7645
+ onClick: () => u(!y),
7645
7646
  className: "w-7 h-7 flex items-center justify-center rounded-[var(--radius-sm)] text-muted-foreground hover:bg-muted/40 hover:text-foreground transition-colors cursor-pointer",
7646
- children: x ? /* @__PURE__ */ e(Pn, { size: 13 }) : /* @__PURE__ */ e(Yn, { size: 13 })
7647
+ children: y ? /* @__PURE__ */ e(Pn, { size: 13 }) : /* @__PURE__ */ e(Yn, { size: 13 })
7647
7648
  }
7648
7649
  )
7649
7650
  ] })
7650
7651
  ] }),
7651
7652
  /* @__PURE__ */ a("div", { className: "relative flex-1", children: [
7652
- g && /* @__PURE__ */ e(
7653
+ x && /* @__PURE__ */ e(
7653
7654
  "div",
7654
7655
  {
7655
7656
  className: "absolute top-0 left-0 pointer-events-none p-4 text-muted-foreground",
@@ -7663,9 +7664,9 @@ function Pl({
7663
7664
  ref: v,
7664
7665
  contentEditable: !c && !s,
7665
7666
  suppressContentEditableWarning: !0,
7666
- onInput: y,
7667
- onKeyUp: k,
7668
- onMouseUp: k,
7667
+ onInput: g,
7668
+ onKeyUp: S,
7669
+ onMouseUp: S,
7669
7670
  className: [
7670
7671
  "outline-none p-4 overflow-y-auto",
7671
7672
  "prose-p:my-2 [&_h2]:text-xl [&_h2]:font-bold [&_h2]:my-3",
@@ -7673,12 +7674,12 @@ function Pl({
7673
7674
  "[&_pre]:bg-muted/30 [&_pre]:rounded [&_pre]:p-2 [&_pre]:text-sm",
7674
7675
  "[&_a]:text-primary [&_a]:underline",
7675
7676
  "[&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5",
7676
- x ? "flex-1" : ""
7677
+ y ? "flex-1" : ""
7677
7678
  ].filter(Boolean).join(" "),
7678
7679
  style: {
7679
7680
  ...Ol,
7680
- minHeight: x ? void 0 : z,
7681
- maxHeight: x ? void 0 : l
7681
+ minHeight: y ? void 0 : z,
7682
+ maxHeight: y ? void 0 : l
7682
7683
  },
7683
7684
  "data-placeholder": n
7684
7685
  }
@@ -7823,10 +7824,10 @@ function Ul({
7823
7824
  defaultLayout: f = "grid",
7824
7825
  columns: h = 4,
7825
7826
  disabled: v = !1,
7826
- className: x = ""
7827
+ className: y = ""
7827
7828
  }) {
7828
- const [u, p] = j(f), [b, g] = j(null), $ = ge.useRef(null);
7829
- function k(w) {
7829
+ const [u, p] = j(f), [b, x] = j(null), $ = ge.useRef(null);
7830
+ function S(w) {
7830
7831
  if (v) return;
7831
7832
  if (n.includes(w))
7832
7833
  o == null || o(n.filter((W) => W !== w));
@@ -7836,13 +7837,13 @@ function Ul({
7836
7837
  }
7837
7838
  }
7838
7839
  function m(w, z) {
7839
- r ? k(z) : i && g(w);
7840
+ r ? S(z) : i && x(w);
7840
7841
  }
7841
- const y = Q((w) => {
7842
+ const g = Q((w) => {
7842
7843
  var z;
7843
7844
  (z = w.target.files) != null && z.length && (c == null || c(w.target.files), w.target.value = "");
7844
7845
  }, [c]);
7845
- return t.length === 0 && !d ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground border border-dashed border-border rounded-[var(--radius-md)]", children: /* @__PURE__ */ e("span", { style: Mt, children: "No images yet" }) }) : /* @__PURE__ */ a("div", { className: x, children: [
7846
+ return t.length === 0 && !d ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground border border-dashed border-border rounded-[var(--radius-md)]", children: /* @__PURE__ */ e("span", { style: Mt, children: "No images yet" }) }) : /* @__PURE__ */ a("div", { className: y, children: [
7846
7847
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between mb-3", children: [
7847
7848
  /* @__PURE__ */ a("span", { className: "text-muted-foreground", style: Oe, children: [
7848
7849
  t.length,
@@ -7860,7 +7861,7 @@ function Ul({
7860
7861
  accept: "image/*",
7861
7862
  multiple: !0,
7862
7863
  className: "hidden",
7863
- onChange: y
7864
+ onChange: g
7864
7865
  }
7865
7866
  ),
7866
7867
  /* @__PURE__ */ a(
@@ -7979,7 +7980,7 @@ function Ul({
7979
7980
  {
7980
7981
  images: t,
7981
7982
  startIdx: b,
7982
- onClose: () => g(null)
7983
+ onClose: () => x(null)
7983
7984
  }
7984
7985
  )
7985
7986
  ] });
@@ -7999,30 +8000,30 @@ function en({
7999
8000
  children: d
8000
8001
  }) {
8001
8002
  const c = o !== void 0, [s, f] = j(i), h = c ? o : s, v = Q(
8002
- (y) => {
8003
- c || f(y), l == null || l(y);
8003
+ (g) => {
8004
+ c || f(g), l == null || l(g);
8004
8005
  },
8005
8006
  [c, l]
8006
- ), [x, u] = j([]), p = Q((y) => {
8007
- u(y);
8008
- }, []), [b, g] = j({
8007
+ ), [y, u] = j([]), p = Q((g) => {
8008
+ u(g);
8009
+ }, []), [b, x] = j({
8009
8010
  groups: [],
8010
8011
  loading: !1,
8011
8012
  error: null
8012
- }), $ = V(0), k = Q(async () => {
8013
+ }), $ = V(0), S = Q(async () => {
8013
8014
  if (!n || !t) {
8014
- g({ groups: [], loading: !1, error: null });
8015
+ x({ groups: [], loading: !1, error: null });
8015
8016
  return;
8016
8017
  }
8017
- const y = ++$.current;
8018
- g((w) => ({ ...w, loading: !0, error: null }));
8018
+ const g = ++$.current;
8019
+ x((w) => ({ ...w, loading: !0, error: null }));
8019
8020
  try {
8020
8021
  const w = await n(t);
8021
- if (y !== $.current) return;
8022
- g({ groups: w, loading: !1, error: null });
8022
+ if (g !== $.current) return;
8023
+ x({ groups: w, loading: !1, error: null });
8023
8024
  } catch (w) {
8024
- if (y !== $.current) return;
8025
- g({
8025
+ if (g !== $.current) return;
8026
+ x({
8026
8027
  groups: [],
8027
8028
  loading: !1,
8028
8029
  error: w instanceof Error ? w.message : "Failed to load navigation"
@@ -8030,12 +8031,12 @@ function en({
8030
8031
  }
8031
8032
  }, [n, t]);
8032
8033
  ne(() => {
8033
- k();
8034
- }, [k]), ne(() => {
8034
+ S();
8035
+ }, [S]), ne(() => {
8035
8036
  if (!(r != null && r.product)) return;
8036
- const y = document.documentElement.getAttribute("data-product");
8037
+ const g = document.documentElement.getAttribute("data-product");
8037
8038
  return document.documentElement.setAttribute("data-product", r.product), () => {
8038
- y ? document.documentElement.setAttribute("data-product", y) : document.documentElement.removeAttribute("data-product");
8039
+ g ? document.documentElement.setAttribute("data-product", g) : document.documentElement.removeAttribute("data-product");
8039
8040
  };
8040
8041
  }, [r == null ? void 0 : r.product]);
8041
8042
  const m = se(
@@ -8044,24 +8045,24 @@ function en({
8044
8045
  setSidebarOpen: v,
8045
8046
  user: t,
8046
8047
  product: r,
8047
- breadcrumbs: x,
8048
+ breadcrumbs: y,
8048
8049
  setBreadcrumbs: p,
8049
8050
  navGroups: b.groups,
8050
8051
  navLoading: b.loading,
8051
8052
  navError: b.error,
8052
- refreshNav: k
8053
+ refreshNav: S
8053
8054
  }),
8054
8055
  [
8055
8056
  h,
8056
8057
  v,
8057
8058
  t,
8058
8059
  r,
8059
- x,
8060
+ y,
8060
8061
  p,
8061
8062
  b.groups,
8062
8063
  b.loading,
8063
8064
  b.error,
8064
- k
8065
+ S
8065
8066
  ]
8066
8067
  );
8067
8068
  return /* @__PURE__ */ e(_t.Provider, { value: m, children: /* @__PURE__ */ e(Bt.Provider, { value: m, children: d }) });
@@ -8329,132 +8330,149 @@ function si({
8329
8330
  children: h,
8330
8331
  className: v = ""
8331
8332
  }) {
8332
- var C, N, S, A;
8333
+ var N, k, A, I;
8333
8334
  const {
8334
- sidebarOpen: x,
8335
+ sidebarOpen: y,
8335
8336
  setSidebarOpen: u,
8336
8337
  user: p,
8337
8338
  product: b,
8338
- breadcrumbs: g,
8339
+ breadcrumbs: x,
8339
8340
  navGroups: $,
8340
- navLoading: k,
8341
+ navLoading: S,
8341
8342
  navError: m,
8342
- refreshNav: y
8343
+ refreshNav: g
8343
8344
  } = Zl(), [w, z] = j(
8344
- !(((C = b == null ? void 0 : b.shell) == null ? void 0 : C.sidebarDefaultOpen) ?? !0)
8345
+ !(((N = b == null ? void 0 : b.shell) == null ? void 0 : N.sidebarDefaultOpen) ?? !0)
8345
8346
  ), [W, M] = j(!1);
8346
8347
  ne(() => {
8347
- function E() {
8348
+ function _() {
8348
8349
  window.innerWidth >= 768 && M(!1);
8349
8350
  }
8350
- return window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
8351
+ return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
8351
8352
  }, []);
8352
8353
  const F = ii($), L = Q(
8353
- (E) => {
8354
- const R = $.flatMap((_) => _.items).find((_) => _.id === E.id);
8355
- R && r && r(R), M(!1);
8354
+ (_) => {
8355
+ const H = $.flatMap((B) => B.items).find((B) => B.id === _.id);
8356
+ H && r && r(H), M(!1);
8356
8357
  },
8357
8358
  [$, r]
8358
- ), I = /* @__PURE__ */ e(
8359
+ ), E = /* @__PURE__ */ e(
8359
8360
  zt,
8360
8361
  {
8361
8362
  brand: b ? { name: b.brand.name } : { name: "Sellsuki" },
8362
- groups: k ? [{ label: "Loading", items: [] }] : F,
8363
+ groups: S ? [{ label: "Loading", items: [] }] : F,
8363
8364
  activeItem: t,
8364
8365
  onNavigate: L,
8365
8366
  collapsed: w,
8366
8367
  onCollapsedChange: z,
8367
- showCollapseToggle: ((N = b == null ? void 0 : b.shell) == null ? void 0 : N.sidebarCollapsible) ?? !0,
8368
+ showCollapseToggle: ((k = b == null ? void 0 : b.shell) == null ? void 0 : k.sidebarCollapsible) ?? !0,
8368
8369
  version: c,
8369
8370
  versionDate: s
8370
8371
  }
8371
- );
8372
+ ), C = w ? "var(--shell-sidebar-collapsed, 64px)" : "var(--shell-sidebar-width, 240px)";
8372
8373
  return /* @__PURE__ */ a(
8373
8374
  "div",
8374
8375
  {
8375
- className: `min-h-screen bg-[var(--background)] flex flex-col ${v}`,
8376
+ className: `min-h-screen bg-[var(--background)] ${v}`,
8376
8377
  "data-product": b == null ? void 0 : b.product,
8377
8378
  children: [
8378
8379
  /* @__PURE__ */ e(
8379
- Pr,
8380
+ "div",
8380
8381
  {
8381
- brand: b ? { name: b.brand.name, logo: b.brand.logo } : { name: "Sellsuki" },
8382
- breadcrumbs: g.map((E) => ({ label: E.label, href: E.href })),
8383
- user: p ? { name: p.name, avatar: p.avatar } : void 0,
8384
- showSearch: d,
8385
- onSearchClick: i,
8386
- notificationCount: n,
8387
- onNotificationClick: o,
8388
- onUserClick: l,
8389
- workspaceSwitcher: (S = b == null ? void 0 : b.brand) == null ? void 0 : S.workspaceSwitcher,
8390
- onSidebarToggle: () => {
8391
- window.innerWidth < 768 ? M((E) => !E) : z((E) => !E);
8382
+ className: "fixed top-0 left-0 right-0",
8383
+ style: { zIndex: "var(--z-shell-navbar, 100)" },
8384
+ children: /* @__PURE__ */ e(
8385
+ Pr,
8386
+ {
8387
+ brand: b ? { name: b.brand.name, logo: b.brand.logo } : { name: "Sellsuki" },
8388
+ breadcrumbs: x.map((_) => ({ label: _.label, href: _.href })),
8389
+ user: p ? { name: p.name, avatar: p.avatar } : void 0,
8390
+ showSearch: d,
8391
+ onSearchClick: i,
8392
+ notificationCount: n,
8393
+ onNotificationClick: o,
8394
+ onUserClick: l,
8395
+ workspaceSwitcher: (A = b == null ? void 0 : b.brand) == null ? void 0 : A.workspaceSwitcher,
8396
+ onSidebarToggle: () => {
8397
+ window.innerWidth < 768 ? M((_) => !_) : z((_) => !_);
8398
+ },
8399
+ onMobileMenuClick: () => M((_) => !_)
8400
+ }
8401
+ )
8402
+ }
8403
+ ),
8404
+ /* @__PURE__ */ e(
8405
+ "aside",
8406
+ {
8407
+ className: "hidden md:flex flex-col fixed left-0 bottom-0 overflow-hidden",
8408
+ style: {
8409
+ top: "var(--shell-navbar-height, 56px)",
8410
+ width: C,
8411
+ zIndex: "var(--z-shell-sidebar, 90)",
8412
+ transition: "width var(--shell-sidebar-transition, 250ms cubic-bezier(0.4,0,0.2,1))"
8392
8413
  },
8393
- onMobileMenuClick: () => M((E) => !E)
8414
+ children: S ? /* @__PURE__ */ e("div", { className: "p-4 w-full", children: /* @__PURE__ */ e(tr, { rows: 6 }) }) : m ? /* @__PURE__ */ a("div", { className: "p-3", children: [
8415
+ /* @__PURE__ */ e(Lr, { variant: "error", children: /* @__PURE__ */ e("span", { style: { fontSize: "var(--text-label)" }, children: "Nav load failed" }) }),
8416
+ /* @__PURE__ */ e(
8417
+ "button",
8418
+ {
8419
+ type: "button",
8420
+ className: "mt-2 text-primary cursor-pointer hover:underline",
8421
+ style: { fontSize: "var(--text-label)" },
8422
+ onClick: g,
8423
+ children: "Retry"
8424
+ }
8425
+ )
8426
+ ] }) : E
8394
8427
  }
8395
8428
  ),
8396
- /* @__PURE__ */ a("div", { className: "flex flex-1 overflow-hidden", children: [
8429
+ W && /* @__PURE__ */ a(ve, { children: [
8397
8430
  /* @__PURE__ */ e(
8398
8431
  "div",
8399
8432
  {
8400
- className: "hidden md:flex flex-shrink-0 sticky top-[56px] h-[calc(100vh-56px)] overflow-y-auto",
8401
- style: {
8402
- width: w ? "var(--shell-sidebar-collapsed, 64px)" : "var(--shell-sidebar-width, 240px)",
8403
- transition: "width var(--duration-sidebar, 250ms) var(--easing-default, cubic-bezier(0.4,0,0.2,1))"
8404
- },
8405
- children: k ? /* @__PURE__ */ e("div", { className: "p-4 w-full", children: /* @__PURE__ */ e(tr, { rows: 6 }) }) : m ? /* @__PURE__ */ a("div", { className: "p-3", children: [
8406
- /* @__PURE__ */ e(Lr, { variant: "error", children: /* @__PURE__ */ e("span", { style: { fontSize: "var(--text-label)" }, children: "Nav load failed" }) }),
8407
- /* @__PURE__ */ e(
8408
- "button",
8409
- {
8410
- type: "button",
8411
- className: "mt-2 text-primary cursor-pointer hover:underline",
8412
- style: { fontSize: "var(--text-label)" },
8413
- onClick: y,
8414
- children: "Retry"
8415
- }
8416
- )
8417
- ] }) : I
8433
+ className: "fixed inset-0 bg-black/40 md:hidden",
8434
+ style: { zIndex: "var(--z-shell-overlay, 80)" },
8435
+ onClick: () => M(!1)
8418
8436
  }
8419
8437
  ),
8420
- W && /* @__PURE__ */ a(ve, { children: [
8421
- /* @__PURE__ */ e(
8422
- "div",
8423
- {
8424
- className: "fixed inset-0 z-[var(--z-shell-overlay,80)] bg-black/40 md:hidden",
8425
- onClick: () => M(!1)
8426
- }
8427
- ),
8428
- /* @__PURE__ */ e(
8429
- "div",
8430
- {
8431
- className: "fixed left-0 top-[56px] bottom-0 z-[var(--z-shell-sidebar,90)] w-[240px] bg-card shadow-lg md:hidden overflow-y-auto",
8432
- style: { transition: "transform var(--duration-sidebar, 250ms) var(--easing-default)" },
8433
- children: k ? /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e(tr, { rows: 6 }) }) : /* @__PURE__ */ e(
8434
- zt,
8435
- {
8436
- brand: b ? { name: b.brand.name } : { name: "Sellsuki" },
8437
- groups: F,
8438
- activeItem: t,
8439
- onNavigate: L,
8440
- collapsed: !1,
8441
- showCollapseToggle: !1,
8442
- version: c,
8443
- versionDate: s
8444
- }
8445
- )
8446
- }
8447
- )
8448
- ] }),
8449
8438
  /* @__PURE__ */ e(
8450
- "main",
8439
+ "div",
8451
8440
  {
8452
- className: `flex-1 min-w-0 overflow-y-auto ${f ? "" : "p-0"}`,
8453
- style: { maxWidth: (A = b == null ? void 0 : b.shell) == null ? void 0 : A.contentMaxWidth },
8454
- children: /* @__PURE__ */ e(Xl, { children: h })
8441
+ className: "fixed left-0 bottom-0 bg-card shadow-lg md:hidden overflow-y-auto",
8442
+ style: {
8443
+ top: "var(--shell-navbar-height, 56px)",
8444
+ width: "var(--shell-sidebar-width, 240px)",
8445
+ zIndex: "var(--z-shell-sidebar, 90)"
8446
+ },
8447
+ children: S ? /* @__PURE__ */ e("div", { className: "p-4", children: /* @__PURE__ */ e(tr, { rows: 6 }) }) : /* @__PURE__ */ e(
8448
+ zt,
8449
+ {
8450
+ brand: b ? { name: b.brand.name } : { name: "Sellsuki" },
8451
+ groups: F,
8452
+ activeItem: t,
8453
+ onNavigate: L,
8454
+ collapsed: !1,
8455
+ showCollapseToggle: !1,
8456
+ version: c,
8457
+ versionDate: s
8458
+ }
8459
+ )
8455
8460
  }
8456
8461
  )
8457
8462
  ] }),
8463
+ /* @__PURE__ */ e(
8464
+ "main",
8465
+ {
8466
+ className: `min-h-screen ${f ? "" : "p-0"}`,
8467
+ style: {
8468
+ paddingTop: "var(--shell-navbar-height, 56px)",
8469
+ marginLeft: C,
8470
+ transition: "margin-left var(--shell-sidebar-transition, 250ms cubic-bezier(0.4,0,0.2,1))",
8471
+ maxWidth: (I = b == null ? void 0 : b.shell) == null ? void 0 : I.contentMaxWidth
8472
+ },
8473
+ children: /* @__PURE__ */ e(Xl, { children: h })
8474
+ }
8475
+ ),
8458
8476
  /* @__PURE__ */ e(eo, {})
8459
8477
  ]
8460
8478
  }