@sakaniui/react 0.11.2 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, S as d, T as f, _ as p, a as m, d as h, f as g, g as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as ee, u as te, v as ne, w as re, y as ie } from "./help-circle-B0koiJUs.js";
1
+ import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, R as d, T as f, _ as p, a as m, b as h, d as g, f as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as ee, u as te, v as ne, w as re, y as ie } from "./help-circle-BufsknPE.js";
2
2
  import k, { useEffect as ae, useState as oe } from "react";
3
3
  import { Fragment as A, jsx as j, jsxs as M } from "react/jsx-runtime";
4
4
  import { Bar as se, BarChart as ce, CartesianGrid as le, Cell as ue, Legend as de, Line as fe, LineChart as pe, Pie as me, PieChart as he, PolarAngleAxis as ge, RadialBar as _e, RadialBarChart as ve, Rectangle as ye, ResponsiveContainer as be, Tooltip as xe, XAxis as Se, YAxis as Ce } from "recharts";
@@ -348,24 +348,24 @@ var Ue = {
348
348
  hint: "_hint_3mj75_79",
349
349
  link: "_link_3mj75_88",
350
350
  input: "_input_3mj75_92"
351
- }, We = ({ src: e, alt: t, orientation: n = "vertical", accept: r = "image/jpeg,image/png", title: i = "Upload a photo", hint: a = "JPG or PNG, max 5MB.", onFileSelect: o, onRemove: s, className: c }) => {
352
- let l = k.useRef(null), d = e !== void 0, [f, p] = k.useState(void 0), m = d ? e : f, h = n === "horizontal", g = !!m, _ = () => l.current?.click(), v = () => {
353
- s?.(), d || p(void 0);
351
+ }, We = ({ src: e, alt: t, orientation: n = "vertical", accept: r = "image/jpeg,image/png", title: a = "Upload a photo", hint: o = "JPG or PNG, max 5MB.", onFileSelect: s, onRemove: c, className: l }) => {
352
+ let u = k.useRef(null), d = e !== void 0, [f, p] = k.useState(void 0), m = d ? e : f, h = n === "horizontal", g = !!m, _ = () => u.current?.click(), v = () => {
353
+ c?.(), d || p(void 0);
354
354
  }, y = /* @__PURE__ */ M("div", {
355
355
  className: [Ue.textStack, h ? "" : Ue["textStack--center"]].filter(Boolean).join(" "),
356
356
  children: [/* @__PURE__ */ j("p", {
357
357
  className: Ue.title,
358
- children: i
358
+ children: a
359
359
  }), /* @__PURE__ */ j("p", {
360
360
  className: Ue.hint,
361
- children: a
361
+ children: o
362
362
  })]
363
363
  });
364
364
  return /* @__PURE__ */ M("div", {
365
365
  className: [
366
366
  Ue.wrap,
367
367
  Ue[`wrap--${n}`],
368
- c ?? ""
368
+ l ?? ""
369
369
  ].filter(Boolean).join(" "),
370
370
  children: [
371
371
  /* @__PURE__ */ M("div", {
@@ -380,7 +380,7 @@ var Ue = {
380
380
  className: Ue.badge,
381
381
  onClick: _,
382
382
  "aria-label": "Change photo",
383
- children: /* @__PURE__ */ j(u, {
383
+ children: /* @__PURE__ */ j(i, {
384
384
  size: 16,
385
385
  strokeWidth: N(16)
386
386
  })
@@ -418,13 +418,13 @@ var Ue = {
418
418
  children: "Change photo"
419
419
  }) : y),
420
420
  /* @__PURE__ */ j("input", {
421
- ref: l,
421
+ ref: u,
422
422
  type: "file",
423
423
  accept: r,
424
424
  className: Ue.input,
425
425
  onChange: (e) => {
426
426
  let t = e.target.files?.[0];
427
- t && (o?.(t), d || p(URL.createObjectURL(t))), e.target.value = "";
427
+ t && (s?.(t), d || p(URL.createObjectURL(t))), e.target.value = "";
428
428
  }
429
429
  })
430
430
  ]
@@ -495,10 +495,10 @@ var I = {
495
495
  })
496
496
  })
497
497
  });
498
- }, $e = ({ label: t = "Available balance", value: n, change: r, progress: i, hidden: a, onToggleHidden: o, className: l }) => {
499
- let u = a !== void 0, [d, f] = k.useState(!1), p = u ? a : d, m = i !== void 0, h = r?.direction ?? "up", g = h === "up" ? b : e, _ = () => {
498
+ }, $e = ({ label: e = "Available balance", value: t, change: n, progress: r, hidden: i, onToggleHidden: a, className: o }) => {
499
+ let l = i !== void 0, [d, f] = k.useState(!1), p = l ? i : d, m = r !== void 0, h = n?.direction ?? "up", g = h === "up" ? s : b, _ = () => {
500
500
  let e = !p;
501
- o?.(e), u || f(e);
501
+ a?.(e), l || f(e);
502
502
  }, [v, y] = k.useState(!1), [x, S] = k.useState(0), C = k.useRef(!1);
503
503
  k.useEffect(() => {
504
504
  if (p && !C.current) {
@@ -510,20 +510,20 @@ var I = {
510
510
  }
511
511
  C.current = p;
512
512
  }, [p]);
513
- let w = k.useMemo(() => Xe(n.length), [n, x]), T = k.useMemo(() => r ? Xe(r.value.length) : "", [r?.value, x]), E = /* @__PURE__ */ M("div", {
513
+ let w = k.useMemo(() => Xe(t.length), [t, x]), T = k.useMemo(() => n ? Xe(n.value.length) : "", [n?.value, x]), E = /* @__PURE__ */ M("div", {
514
514
  className: I.content,
515
515
  children: [
516
516
  /* @__PURE__ */ M("div", {
517
517
  className: I.labelRow,
518
518
  children: [/* @__PURE__ */ j("p", {
519
519
  className: I.label,
520
- children: t
520
+ children: e
521
521
  }), /* @__PURE__ */ j("button", {
522
522
  type: "button",
523
523
  className: I.hideToggle,
524
524
  "aria-label": p ? "Show balance" : "Hide balance",
525
525
  onClick: _,
526
- children: j(p ? s : c, {
526
+ children: j(p ? c : u, {
527
527
  size: 16,
528
528
  strokeWidth: N(16)
529
529
  })
@@ -535,9 +535,9 @@ var I = {
535
535
  p ? I["value--hidden"] : "",
536
536
  v ? I["value--glitching"] : ""
537
537
  ].filter(Boolean).join(" "),
538
- children: p ? w : n
538
+ children: p ? w : t
539
539
  }),
540
- r && /* @__PURE__ */ M("div", {
540
+ n && /* @__PURE__ */ M("div", {
541
541
  className: I.changeRow,
542
542
  children: [
543
543
  /* @__PURE__ */ j(g, {
@@ -547,11 +547,11 @@ var I = {
547
547
  }),
548
548
  /* @__PURE__ */ j("span", {
549
549
  className: [h === "up" ? I.changeValue__up : I.changeValue__down, v ? I["value--glitching"] : ""].filter(Boolean).join(" "),
550
- children: p ? T : r.value
550
+ children: p ? T : n.value
551
551
  }),
552
552
  /* @__PURE__ */ j("span", {
553
553
  className: I.changeLabel,
554
- children: r.label ?? "this month"
554
+ children: n.label ?? "this month"
555
555
  })
556
556
  ]
557
557
  })
@@ -561,9 +561,9 @@ var I = {
561
561
  className: [
562
562
  I.balance,
563
563
  m ? I["balance--progress"] : "",
564
- l ?? ""
564
+ o ?? ""
565
565
  ].filter(Boolean).join(" "),
566
- children: [m && /* @__PURE__ */ j(Qe, { progress: i }), E]
566
+ children: [m && /* @__PURE__ */ j(Qe, { progress: r }), E]
567
567
  });
568
568
  }, et = {
569
569
  progress: "_progress_1qaz4_11",
@@ -1147,8 +1147,8 @@ var Et = (e = "regular", t = "auto") => [
1147
1147
  "sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
1148
1148
  "card--exiting": "_card--exiting_13dud_115",
1149
1149
  "sakani-modal-card-out": "_sakani-modal-card-out_13dud_1"
1150
- }, kt = ({ open: e, onClose: t, title: n, description: r, variant: o = "default", icon: s, cancelLabel: c = "Cancel", confirmLabel: l, onCancel: u, onConfirm: d, confirmLoading: f, closeOnEscape: p = !0, closeOnBackdropClick: m = !0, children: h, hideHeader: g = !1, hideFooterDivider: _ = !1, footerJustify: v = "end", className: y }) => {
1151
- let b = o === "destructive", x = k.useRef(null), S = k.useRef(null), C = k.useRef(null), w = rt(C, e), T = it(C, e), E = T === "liquid", D = Ct(x, {
1150
+ }, kt = ({ open: e, onClose: t, title: n, description: r, variant: i = "default", icon: s, cancelLabel: c = "Cancel", confirmLabel: l, onCancel: u, onConfirm: d, confirmLoading: f, closeOnEscape: p = !0, closeOnBackdropClick: m = !0, children: h, hideHeader: g = !1, hideFooterDivider: _ = !1, footerJustify: v = "end", className: y }) => {
1151
+ let b = i === "destructive", x = k.useRef(null), S = k.useRef(null), C = k.useRef(null), w = rt(C, e), T = it(C, e), E = T === "liquid", D = Ct(x, {
1152
1152
  enabled: E,
1153
1153
  source: !1
1154
1154
  }), [O, ee] = k.useState(!1);
@@ -1225,7 +1225,7 @@ var Et = (e = "regular", t = "auto") => [
1225
1225
  children: [b && /* @__PURE__ */ j("span", {
1226
1226
  className: R.iconWrap,
1227
1227
  "aria-hidden": "true",
1228
- children: s ?? /* @__PURE__ */ j(a, {
1228
+ children: s ?? /* @__PURE__ */ j(o, {
1229
1229
  size: 24,
1230
1230
  strokeWidth: N(24),
1231
1231
  className: R.icon
@@ -1236,7 +1236,7 @@ var Et = (e = "regular", t = "auto") => [
1236
1236
  children: n
1237
1237
  })]
1238
1238
  }), /* @__PURE__ */ j(Ve, {
1239
- icon: i,
1239
+ icon: a,
1240
1240
  variant: "ghost",
1241
1241
  size: "lg",
1242
1242
  "aria-label": "Close",
@@ -1280,20 +1280,20 @@ var Et = (e = "regular", t = "auto") => [
1280
1280
  cardTop: "_cardTop_88l3n_87",
1281
1281
  description: "_description_88l3n_94",
1282
1282
  actions: "_actions_88l3n_102"
1283
- }, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: a, onDismiss: o, dismissLabel: s = "Dismiss", actionLabel: c, onAction: u, className: d }) => {
1284
- let f = a !== void 0, p = !r && !f, m = e ?? /* @__PURE__ */ j(l, {
1283
+ }, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: i, onDismiss: o, dismissLabel: s = "Dismiss", actionLabel: c, onAction: l, className: u }) => {
1284
+ let d = i !== void 0, f = !r && !d, p = e ?? /* @__PURE__ */ j(x, {
1285
1285
  size: 24,
1286
1286
  strokeWidth: N(24)
1287
1287
  });
1288
- return f ? /* @__PURE__ */ M("div", {
1289
- className: [z.card, d ?? ""].filter(Boolean).join(" "),
1288
+ return d ? /* @__PURE__ */ M("div", {
1289
+ className: [z.card, u ?? ""].filter(Boolean).join(" "),
1290
1290
  children: [/* @__PURE__ */ M("div", {
1291
1291
  className: z.cardTop,
1292
1292
  children: [
1293
1293
  /* @__PURE__ */ j("span", {
1294
1294
  className: z.iconWrapCanvas,
1295
1295
  "aria-hidden": "true",
1296
- children: m
1296
+ children: p
1297
1297
  }),
1298
1298
  /* @__PURE__ */ M("div", {
1299
1299
  className: z.content,
@@ -1302,11 +1302,11 @@ var Et = (e = "regular", t = "auto") => [
1302
1302
  children: t
1303
1303
  }), /* @__PURE__ */ j("p", {
1304
1304
  className: z.description,
1305
- children: a
1305
+ children: i
1306
1306
  })]
1307
1307
  }),
1308
1308
  o && /* @__PURE__ */ j(Ve, {
1309
- icon: i,
1309
+ icon: a,
1310
1310
  variant: "ghost",
1311
1311
  size: "sm",
1312
1312
  "aria-label": "Close",
@@ -1323,30 +1323,30 @@ var Et = (e = "regular", t = "auto") => [
1323
1323
  }), c && /* @__PURE__ */ j(F, {
1324
1324
  variant: "secondary",
1325
1325
  size: "sm",
1326
- onClick: u,
1326
+ onClick: l,
1327
1327
  style: { borderColor: "transparent" },
1328
1328
  children: c
1329
1329
  })]
1330
1330
  })]
1331
1331
  }) : /* @__PURE__ */ M("div", {
1332
- className: [z.row, p ? z["row--unread"] : ""].filter(Boolean).join(" "),
1332
+ className: [z.row, f ? z["row--unread"] : ""].filter(Boolean).join(" "),
1333
1333
  children: [
1334
1334
  /* @__PURE__ */ j("span", {
1335
1335
  className: z.iconWrapSurface,
1336
1336
  "aria-hidden": "true",
1337
- children: m
1337
+ children: p
1338
1338
  }),
1339
1339
  /* @__PURE__ */ M("div", {
1340
1340
  className: z.content,
1341
1341
  children: [/* @__PURE__ */ j("p", {
1342
- className: p ? z.titleBold : z.titleMuted,
1342
+ className: f ? z.titleBold : z.titleMuted,
1343
1343
  children: t
1344
1344
  }), n && /* @__PURE__ */ j("p", {
1345
1345
  className: z.timestamp,
1346
1346
  children: n
1347
1347
  })]
1348
1348
  }),
1349
- p && /* @__PURE__ */ j("span", {
1349
+ f && /* @__PURE__ */ j("span", {
1350
1350
  className: z.dot,
1351
1351
  "aria-hidden": "true"
1352
1352
  })
@@ -1775,23 +1775,23 @@ var Lt = [
1775
1775
  children: e
1776
1776
  }, `in-${e}`)]
1777
1777
  });
1778
- }, qt = ({ quantity: e, onQuantityChange: t, min: n = 1, max: i, label: a = "Quantity", className: o }) => {
1779
- let s = e > n, c = i === void 0 || e < i, l = k.useRef(null), [u, d] = k.useState(!1), [p, m] = k.useState(String(e)), h = (e) => {
1778
+ }, qt = ({ quantity: e, onQuantityChange: t, min: i = 1, max: a, label: o = "Quantity", className: s }) => {
1779
+ let c = e > i, l = a === void 0 || e < a, u = k.useRef(null), [d, f] = k.useState(!1), [p, m] = k.useState(String(e)), h = (e) => {
1780
1780
  let t = e;
1781
- return n !== void 0 && (t = Math.max(n, t)), i !== void 0 && (t = Math.min(i, t)), t;
1781
+ return i !== void 0 && (t = Math.max(i, t)), a !== void 0 && (t = Math.min(a, t)), t;
1782
1782
  };
1783
1783
  return /* @__PURE__ */ M("div", {
1784
- className: [V.stepper, o ?? ""].filter(Boolean).join(" "),
1784
+ className: [V.stepper, s ?? ""].filter(Boolean).join(" "),
1785
1785
  role: "group",
1786
- "aria-label": a,
1786
+ "aria-label": o,
1787
1787
  children: [
1788
1788
  /* @__PURE__ */ j("button", {
1789
1789
  type: "button",
1790
1790
  className: V.stepBtn,
1791
- disabled: !s,
1792
- onClick: () => t?.(Math.max(n, e - 1)),
1791
+ disabled: !c,
1792
+ onClick: () => t?.(Math.max(i, e - 1)),
1793
1793
  "aria-label": "Decrease quantity",
1794
- children: /* @__PURE__ */ j(r, {
1794
+ children: /* @__PURE__ */ j(n, {
1795
1795
  size: 14,
1796
1796
  strokeWidth: N(14)
1797
1797
  })
@@ -1803,19 +1803,19 @@ var Lt = [
1803
1803
  /* @__PURE__ */ M("span", {
1804
1804
  className: V.stepValue,
1805
1805
  children: [/* @__PURE__ */ j("input", {
1806
- ref: l,
1806
+ ref: u,
1807
1807
  type: "text",
1808
1808
  inputMode: "numeric",
1809
- size: Math.max((u ? p : String(e)).length, 1),
1810
- className: [V.stepInput, u ? "" : V.stepInputResting].filter(Boolean).join(" "),
1811
- value: u ? p : String(e),
1812
- "aria-label": a,
1809
+ size: Math.max((d ? p : String(e)).length, 1),
1810
+ className: [V.stepInput, d ? "" : V.stepInputResting].filter(Boolean).join(" "),
1811
+ value: d ? p : String(e),
1812
+ "aria-label": o,
1813
1813
  onFocus: (t) => {
1814
- m(String(e)), d(!0), t.target.select();
1814
+ m(String(e)), f(!0), t.target.select();
1815
1815
  },
1816
1816
  onChange: (e) => m(e.target.value.replace(/\D/g, "")),
1817
1817
  onBlur: () => {
1818
- d(!1);
1818
+ f(!1);
1819
1819
  let n = Number.parseInt(p, 10);
1820
1820
  if (!Number.isNaN(n)) {
1821
1821
  let r = h(n);
@@ -1823,10 +1823,10 @@ var Lt = [
1823
1823
  }
1824
1824
  },
1825
1825
  onKeyDown: (t) => {
1826
- t.key === "Enter" && (t.preventDefault(), l.current?.blur()), t.key === "Escape" && (m(String(e)), l.current?.blur());
1826
+ t.key === "Enter" && (t.preventDefault(), u.current?.blur()), t.key === "Escape" && (m(String(e)), u.current?.blur());
1827
1827
  }
1828
1828
  }), /* @__PURE__ */ j("span", {
1829
- className: [V.rollOverlay, u ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
1829
+ className: [V.rollOverlay, d ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
1830
1830
  "aria-hidden": "true",
1831
1831
  children: /* @__PURE__ */ j(Kt, { value: e })
1832
1832
  })]
@@ -1838,10 +1838,10 @@ var Lt = [
1838
1838
  /* @__PURE__ */ j("button", {
1839
1839
  type: "button",
1840
1840
  className: V.stepBtn,
1841
- disabled: !c,
1842
- onClick: () => t?.(i === void 0 ? e + 1 : Math.min(i, e + 1)),
1841
+ disabled: !l,
1842
+ onClick: () => t?.(a === void 0 ? e + 1 : Math.min(a, e + 1)),
1843
1843
  "aria-label": "Increase quantity",
1844
- children: /* @__PURE__ */ j(f, {
1844
+ children: /* @__PURE__ */ j(r, {
1845
1845
  size: 14,
1846
1846
  strokeWidth: N(14)
1847
1847
  })
@@ -1862,14 +1862,14 @@ var Lt = [
1862
1862
  }, Yt = (e) => e.toLocaleString("en-US", {
1863
1863
  style: "currency",
1864
1864
  currency: "USD"
1865
- }), Xt = ({ image: e, imageAlt: t, name: n, variant: i, price: a, compareAtPrice: o, quantity: s, onQuantityChange: c, minQuantity: l = 1, maxQuantity: u, onRemove: d, removeLabel: f = "Remove item", formatPrice: p = Yt, className: m }) => {
1865
+ }), Xt = ({ image: e, imageAlt: t, name: r, variant: i, price: a, compareAtPrice: o, quantity: s, onQuantityChange: c, minQuantity: l = 1, maxQuantity: u, onRemove: d, removeLabel: f = "Remove item", formatPrice: p = Yt, className: m }) => {
1866
1866
  let h = o !== void 0;
1867
1867
  return /* @__PURE__ */ M("div", {
1868
1868
  className: [Jt.item, m ?? ""].filter(Boolean).join(" "),
1869
1869
  children: [
1870
1870
  /* @__PURE__ */ j("img", {
1871
1871
  src: e,
1872
- alt: t ?? n,
1872
+ alt: t ?? r,
1873
1873
  className: Jt.thumb
1874
1874
  }),
1875
1875
  /* @__PURE__ */ M("div", {
@@ -1877,7 +1877,7 @@ var Lt = [
1877
1877
  children: [
1878
1878
  /* @__PURE__ */ j("p", {
1879
1879
  className: Jt.name,
1880
- children: n
1880
+ children: r
1881
1881
  }),
1882
1882
  i && /* @__PURE__ */ j("p", {
1883
1883
  className: Jt.variant,
@@ -1888,7 +1888,7 @@ var Lt = [
1888
1888
  onQuantityChange: c,
1889
1889
  min: l,
1890
1890
  max: u,
1891
- label: `Quantity for ${n}`
1891
+ label: `Quantity for ${r}`
1892
1892
  })
1893
1893
  ]
1894
1894
  }),
@@ -1907,7 +1907,7 @@ var Lt = [
1907
1907
  className: Jt.price,
1908
1908
  children: p(a)
1909
1909
  }), /* @__PURE__ */ j(Ve, {
1910
- icon: r,
1910
+ icon: n,
1911
1911
  variant: "outline",
1912
1912
  size: "sm",
1913
1913
  "aria-label": f,
@@ -1932,39 +1932,39 @@ var Lt = [
1932
1932
  "Shipping",
1933
1933
  "Payment",
1934
1934
  "Confirmation"
1935
- ], $t = ({ steps: e = Qt, currentStep: t, className: n }) => /* @__PURE__ */ j("div", {
1936
- className: [Zt.steps, n ?? ""].filter(Boolean).join(" "),
1935
+ ], $t = ({ steps: t = Qt, currentStep: n, className: r }) => /* @__PURE__ */ j("div", {
1936
+ className: [Zt.steps, r ?? ""].filter(Boolean).join(" "),
1937
1937
  role: "list",
1938
- children: e.map((n, r) => {
1939
- let i = r < t ? "completed" : r === t ? "active" : "upcoming", a = r === e.length - 1;
1938
+ children: t.map((r, i) => {
1939
+ let a = i < n ? "completed" : i === n ? "active" : "upcoming", o = i === t.length - 1;
1940
1940
  return /* @__PURE__ */ M(k.Fragment, { children: [/* @__PURE__ */ M("div", {
1941
1941
  className: Zt.step,
1942
1942
  role: "listitem",
1943
- "aria-current": i === "active" ? "step" : void 0,
1943
+ "aria-current": a === "active" ? "step" : void 0,
1944
1944
  children: [/* @__PURE__ */ j("span", {
1945
1945
  className: [
1946
1946
  Zt.circle,
1947
- i === "completed" ? Zt.circleCompleted : "",
1948
- i === "active" ? Zt.circleActive : "",
1949
- i === "upcoming" ? Zt.circleUpcoming : ""
1947
+ a === "completed" ? Zt.circleCompleted : "",
1948
+ a === "active" ? Zt.circleActive : "",
1949
+ a === "upcoming" ? Zt.circleUpcoming : ""
1950
1950
  ].filter(Boolean).join(" "),
1951
1951
  "aria-hidden": "true",
1952
- children: /* @__PURE__ */ j(x, {
1952
+ children: /* @__PURE__ */ j(e, {
1953
1953
  size: 14,
1954
1954
  strokeWidth: N(14)
1955
1955
  })
1956
1956
  }), /* @__PURE__ */ j("span", {
1957
1957
  className: [
1958
1958
  Zt.label,
1959
- i === "active" ? Zt.labelActive : "",
1960
- i === "upcoming" ? Zt.labelUpcoming : ""
1959
+ a === "active" ? Zt.labelActive : "",
1960
+ a === "upcoming" ? Zt.labelUpcoming : ""
1961
1961
  ].filter(Boolean).join(" "),
1962
- children: n
1962
+ children: r
1963
1963
  })]
1964
- }), !a && /* @__PURE__ */ j("span", {
1964
+ }), !o && /* @__PURE__ */ j("span", {
1965
1965
  className: Zt.connector,
1966
1966
  "aria-hidden": "true"
1967
- })] }, n);
1967
+ })] }, r);
1968
1968
  })
1969
1969
  }), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
1970
1970
  let r = (e) => {
@@ -2011,35 +2011,35 @@ var Lt = [
2011
2011
  ring: "_ring_1ykgu_41",
2012
2012
  check: "_check_1ykgu_57",
2013
2013
  strike: "_strike_1ykgu_70"
2014
- }, un = ({ color: e, label: t, selected: n = !1, available: r = !0, onSelect: i, className: a }) => {
2015
- let o = k.useMemo(() => cn(e), [e]);
2014
+ }, un = ({ color: t, label: n, selected: r = !1, available: i = !0, onSelect: a, className: o }) => {
2015
+ let s = k.useMemo(() => cn(t), [t]);
2016
2016
  return /* @__PURE__ */ M("button", {
2017
2017
  type: "button",
2018
- className: [ln.swatch, a ?? ""].filter(Boolean).join(" "),
2019
- style: { "--swatch-color": e },
2020
- disabled: !r,
2021
- "aria-pressed": r ? n : void 0,
2022
- "aria-label": r ? t : `${t} (out of stock)`,
2023
- onClick: i,
2018
+ className: [ln.swatch, o ?? ""].filter(Boolean).join(" "),
2019
+ style: { "--swatch-color": t },
2020
+ disabled: !i,
2021
+ "aria-pressed": i ? r : void 0,
2022
+ "aria-label": i ? n : `${n} (out of stock)`,
2023
+ onClick: a,
2024
2024
  children: [
2025
- n && r && /* @__PURE__ */ j("span", {
2025
+ r && i && /* @__PURE__ */ j("span", {
2026
2026
  className: ln.ring,
2027
2027
  "aria-hidden": "true"
2028
2028
  }),
2029
2029
  /* @__PURE__ */ j("span", {
2030
- className: [ln.circle, r ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
2030
+ className: [ln.circle, i ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
2031
2031
  "aria-hidden": "true"
2032
2032
  }),
2033
- n && r && /* @__PURE__ */ j(x, {
2033
+ r && i && /* @__PURE__ */ j(e, {
2034
2034
  size: 14,
2035
2035
  strokeWidth: N(14),
2036
2036
  className: ln.check,
2037
- style: { color: o },
2037
+ style: { color: s },
2038
2038
  "aria-hidden": "true"
2039
2039
  }),
2040
- !r && /* @__PURE__ */ j("span", {
2040
+ !i && /* @__PURE__ */ j("span", {
2041
2041
  className: ln.strike,
2042
- style: { background: o },
2042
+ style: { background: s },
2043
2043
  "aria-hidden": "true"
2044
2044
  })
2045
2045
  ]
@@ -2082,22 +2082,22 @@ var Lt = [
2082
2082
  iconSaved: "_iconSaved_58k4v_27",
2083
2083
  bounce: "_bounce_58k4v_40",
2084
2084
  "wishlist-bounce": "_wishlist-bounce_58k4v_1"
2085
- }, hn = ({ saved: e = !1, onToggle: n, label: r = "item", className: i }) => {
2086
- let [a, o] = k.useState(!1);
2085
+ }, hn = ({ saved: e = !1, onToggle: t, label: n = "item", className: r }) => {
2086
+ let [i, a] = k.useState(!1);
2087
2087
  return /* @__PURE__ */ j("button", {
2088
2088
  type: "button",
2089
- className: [mn.button, i ?? ""].filter(Boolean).join(" "),
2089
+ className: [mn.button, r ?? ""].filter(Boolean).join(" "),
2090
2090
  "aria-pressed": e,
2091
- "aria-label": e ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
2091
+ "aria-label": e ? `Remove ${n} from wishlist` : `Add ${n} to wishlist`,
2092
2092
  onClick: () => {
2093
- e || o(!0), n?.(!e);
2093
+ e || a(!0), t?.(!e);
2094
2094
  },
2095
- children: /* @__PURE__ */ j(t, {
2095
+ children: /* @__PURE__ */ j(re, {
2096
2096
  size: 16,
2097
2097
  strokeWidth: N(16),
2098
- className: [e ? mn.iconSaved : mn.icon, a ? mn.bounce : ""].filter(Boolean).join(" "),
2098
+ className: [e ? mn.iconSaved : mn.icon, i ? mn.bounce : ""].filter(Boolean).join(" "),
2099
2099
  fill: e ? "currentColor" : "none",
2100
- onAnimationEnd: () => o(!1)
2100
+ onAnimationEnd: () => a(!1)
2101
2101
  })
2102
2102
  });
2103
2103
  }, H = {
@@ -2123,10 +2123,10 @@ var Lt = [
2123
2123
  }, gn = (e) => e.toLocaleString("en-US", {
2124
2124
  style: "currency",
2125
2125
  currency: "USD"
2126
- }), _n = ({ image: e, imageAlt: t, name: n, description: r, price: i, compareAtPrice: a, rating: o, reviewCount: s, colors: c = [], onColorSelect: l, inStock: u = !0, wishlisted: d = !1, onWishlistToggle: f, onAddItem: p, addItemLabel: m = "Add Item", formatPrice: h = gn, className: g }) => {
2127
- let _ = a !== void 0, v = _ ? Math.ceil((1 - i / a) * 100) : 0, y = o === void 0 ? 0 : Math.round(o);
2126
+ }), _n = ({ image: e, imageAlt: t, name: n, description: r, price: i, compareAtPrice: a, rating: o, reviewCount: s, colors: c = [], onColorSelect: l, inStock: u = !0, wishlisted: d = !1, onWishlistToggle: p, onAddItem: m, addItemLabel: h = "Add Item", formatPrice: g = gn, className: _ }) => {
2127
+ let v = a !== void 0, y = v ? Math.ceil((1 - i / a) * 100) : 0, b = o === void 0 ? 0 : Math.round(o);
2128
2128
  return /* @__PURE__ */ M("div", {
2129
- className: [H.card, g ?? ""].filter(Boolean).join(" "),
2129
+ className: [H.card, _ ?? ""].filter(Boolean).join(" "),
2130
2130
  children: [/* @__PURE__ */ M("div", {
2131
2131
  className: H.imageWrap,
2132
2132
  children: [
@@ -2135,13 +2135,13 @@ var Lt = [
2135
2135
  alt: t ?? n,
2136
2136
  className: [H.image, u ? "" : H.imageDimmed].filter(Boolean).join(" ")
2137
2137
  }),
2138
- _ && u && /* @__PURE__ */ M(Gt, {
2138
+ v && u && /* @__PURE__ */ M(Gt, {
2139
2139
  variant: "danger",
2140
2140
  emphasis: "solid",
2141
2141
  className: H.saleBadge,
2142
2142
  children: [
2143
2143
  "-",
2144
- v,
2144
+ y,
2145
2145
  "%"
2146
2146
  ]
2147
2147
  }),
@@ -2149,7 +2149,7 @@ var Lt = [
2149
2149
  saved: d,
2150
2150
  label: n,
2151
2151
  className: H.wishlistBtn,
2152
- onToggle: f
2152
+ onToggle: p
2153
2153
  }),
2154
2154
  !u && /* @__PURE__ */ j("span", {
2155
2155
  className: H.outOfStockLabel,
@@ -2163,11 +2163,11 @@ var Lt = [
2163
2163
  className: H.rating,
2164
2164
  role: "img",
2165
2165
  "aria-label": `Rated ${o} out of 5${s ? ` (${s} reviews)` : ""}`,
2166
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ j(re, {
2166
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ j(f, {
2167
2167
  size: 16,
2168
2168
  strokeWidth: N(16),
2169
- className: t < y ? H.starFilled : H.starEmpty,
2170
- fill: t < y ? "currentColor" : "none"
2169
+ className: t < b ? H.starFilled : H.starEmpty,
2170
+ fill: t < b ? "currentColor" : "none"
2171
2171
  }, t))
2172
2172
  }),
2173
2173
  /* @__PURE__ */ M("div", {
@@ -2177,12 +2177,12 @@ var Lt = [
2177
2177
  children: n
2178
2178
  }), /* @__PURE__ */ M("div", {
2179
2179
  className: H.priceRow,
2180
- children: [_ && /* @__PURE__ */ j("span", {
2180
+ children: [v && /* @__PURE__ */ j("span", {
2181
2181
  className: H.priceOriginal,
2182
- children: h(a)
2182
+ children: g(a)
2183
2183
  }), /* @__PURE__ */ j("span", {
2184
2184
  className: H.price,
2185
- children: h(i)
2185
+ children: g(i)
2186
2186
  })]
2187
2187
  })]
2188
2188
  }),
@@ -2204,8 +2204,8 @@ var Lt = [
2204
2204
  size: "md",
2205
2205
  disabled: !u,
2206
2206
  className: H.addButton,
2207
- onClick: p,
2208
- children: u ? m : "Out of stock"
2207
+ onClick: m,
2208
+ children: u ? h : "Out of stock"
2209
2209
  })
2210
2210
  ]
2211
2211
  })]
@@ -2310,57 +2310,57 @@ var Lt = [
2310
2310
  label: "_label_1snsi_29",
2311
2311
  value: "_value_1snsi_38",
2312
2312
  count: "_count_1snsi_43"
2313
- }, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: i = Sn, className: a }) => {
2314
- let o = Math.max(0, Math.min(5, e)), s = Math.round(o * 2) / 2, c = Math.floor(s), l = s - c === .5, u = 5 - c - !!l, f = /* @__PURE__ */ M("div", {
2313
+ }, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: n, showLabel: r = !0, orientation: i = "horizontal", formatReviewCount: a = Sn, className: o }) => {
2314
+ let s = Math.max(0, Math.min(5, e)), c = Math.round(s * 2) / 2, l = Math.floor(c), u = c - l === .5, d = 5 - l - !!u, p = /* @__PURE__ */ M("div", {
2315
2315
  className: xn.stars,
2316
2316
  role: "img",
2317
- "aria-label": `${o} out of 5 stars`,
2317
+ "aria-label": `${s} out of 5 stars`,
2318
2318
  children: [
2319
- Array.from({ length: c }, (e, t) => /* @__PURE__ */ j(re, {
2319
+ Array.from({ length: l }, (e, t) => /* @__PURE__ */ j(f, {
2320
2320
  size: 24,
2321
2321
  strokeWidth: N(24),
2322
2322
  className: xn.starFull,
2323
2323
  fill: "currentColor",
2324
2324
  "aria-hidden": "true"
2325
2325
  }, `full-${t}`)),
2326
- l && /* @__PURE__ */ j(d, {
2326
+ u && /* @__PURE__ */ j(t, {
2327
2327
  size: 24,
2328
2328
  strokeWidth: N(24),
2329
2329
  className: xn.starFull,
2330
2330
  fill: "currentColor",
2331
2331
  "aria-hidden": "true"
2332
2332
  }),
2333
- Array.from({ length: u }, (e, t) => /* @__PURE__ */ j(re, {
2333
+ Array.from({ length: d }, (e, t) => /* @__PURE__ */ j(f, {
2334
2334
  size: 24,
2335
2335
  strokeWidth: N(24),
2336
2336
  className: xn.starEmpty,
2337
2337
  "aria-hidden": "true"
2338
2338
  }, `empty-${t}`))
2339
2339
  ]
2340
- }), p = n && /* @__PURE__ */ M("div", {
2340
+ }), m = r && /* @__PURE__ */ M("div", {
2341
2341
  className: xn.label,
2342
2342
  children: [/* @__PURE__ */ j("span", {
2343
2343
  className: xn.value,
2344
- children: o.toFixed(1)
2345
- }), t !== void 0 && /* @__PURE__ */ M("span", {
2344
+ children: s.toFixed(1)
2345
+ }), n !== void 0 && /* @__PURE__ */ M("span", {
2346
2346
  className: xn.count,
2347
2347
  children: [
2348
2348
  "(",
2349
- i(t),
2349
+ a(n),
2350
2350
  " reviews)"
2351
2351
  ]
2352
2352
  })]
2353
- }), m = [
2353
+ }), h = [
2354
2354
  xn.row,
2355
- r === "vertical" ? xn.rowVertical : "",
2356
- a ?? ""
2355
+ i === "vertical" ? xn.rowVertical : "",
2356
+ o ?? ""
2357
2357
  ].filter(Boolean).join(" ");
2358
- return r === "horizontal-reverse" ? /* @__PURE__ */ M("div", {
2359
- className: m,
2360
- children: [p, f]
2358
+ return i === "horizontal-reverse" ? /* @__PURE__ */ M("div", {
2359
+ className: h,
2360
+ children: [m, p]
2361
2361
  }) : /* @__PURE__ */ M("div", {
2362
- className: m,
2363
- children: [f, p]
2362
+ className: h,
2363
+ children: [p, m]
2364
2364
  });
2365
2365
  }, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2366
2366
  let i = e <= 0, a = !i && e <= t, o = i ? "danger" : a ? "warning" : "success", s = i ? "Out of stock" : a ? `Only ${e} left` : "In stock";
@@ -3148,7 +3148,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
3148
3148
  row: "_row_1dwtx_36",
3149
3149
  icon: "_icon_1dwtx_37",
3150
3150
  send: "_send_1dwtx_52"
3151
- }, nr = ({ state: e = "default", value: t, placeholder: n = "Message...", onChange: r, onSend: a, onAttachmentsChange: o, uploadName: s, uploadProgress: c = 0, onCancelUpload: l, className: u }) => {
3151
+ }, nr = ({ state: e = "default", value: t, placeholder: n = "Message...", onChange: r, onSend: i, onAttachmentsChange: o, uploadName: s, uploadProgress: c = 0, onCancelUpload: l, className: u }) => {
3152
3152
  let d = e === "disabled", [f, p] = k.useState(""), [m, h] = k.useState(!1), [g, y] = k.useState({
3153
3153
  top: 0,
3154
3154
  right: 0
@@ -3206,7 +3206,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
3206
3206
  e === "uploading" && /* @__PURE__ */ M("div", {
3207
3207
  className: tr.upload,
3208
3208
  children: [
3209
- /* @__PURE__ */ j(E, {
3209
+ /* @__PURE__ */ j(_, {
3210
3210
  size: 16,
3211
3211
  strokeWidth: N(16),
3212
3212
  className: tr.upload__icon,
@@ -3226,7 +3226,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
3226
3226
  })]
3227
3227
  }),
3228
3228
  /* @__PURE__ */ j(Ve, {
3229
- icon: i,
3229
+ icon: a,
3230
3230
  variant: "ghost",
3231
3231
  size: "md",
3232
3232
  onClick: l,
@@ -3269,7 +3269,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
3269
3269
  textAlign: "center",
3270
3270
  padding: "8px"
3271
3271
  },
3272
- children: [/* @__PURE__ */ j(E, {
3272
+ children: [/* @__PURE__ */ j(_, {
3273
3273
  size: 24,
3274
3274
  strokeWidth: 1.5
3275
3275
  }), /* @__PURE__ */ j("div", {
@@ -3317,7 +3317,7 @@ var Xn = ({ children: e, style: t, ...n }) => {
3317
3317
  className: tr.row,
3318
3318
  children: [
3319
3319
  /* @__PURE__ */ j(Ve, {
3320
- icon: _,
3320
+ icon: v,
3321
3321
  variant: "ghost",
3322
3322
  size: "sm",
3323
3323
  onClick: te,
@@ -3335,12 +3335,12 @@ var Xn = ({ children: e, style: t, ...n }) => {
3335
3335
  t === void 0 && p(e.target.value), r?.(e.target.value);
3336
3336
  },
3337
3337
  onKeyDown: (e) => {
3338
- e.key === "Enter" && ee && (e.preventDefault(), a?.());
3338
+ e.key === "Enter" && ee && (e.preventDefault(), i?.());
3339
3339
  }
3340
3340
  }),
3341
3341
  /* @__PURE__ */ j(Ve, {
3342
3342
  ref: T,
3343
- icon: v,
3343
+ icon: C,
3344
3344
  variant: "ghost",
3345
3345
  size: "sm",
3346
3346
  onClick: ie,
@@ -3402,10 +3402,10 @@ var Xn = ({ children: e, style: t, ...n }) => {
3402
3402
  }, e))
3403
3403
  }), document.body),
3404
3404
  /* @__PURE__ */ j(Ve, {
3405
- icon: C,
3405
+ icon: E,
3406
3406
  variant: "primary",
3407
3407
  size: "sm",
3408
- onClick: a,
3408
+ onClick: i,
3409
3409
  disabled: !ee,
3410
3410
  "aria-label": "Send message"
3411
3411
  })
@@ -3639,7 +3639,7 @@ var J = {
3639
3639
  empty__action: "_empty__action_1mj0f_39"
3640
3640
  }, ur = {
3641
3641
  "no-data": {
3642
- icon: /* @__PURE__ */ j(h, {
3642
+ icon: /* @__PURE__ */ j(te, {
3643
3643
  size: 18,
3644
3644
  strokeWidth: N(18)
3645
3645
  }),
@@ -3647,7 +3647,7 @@ var J = {
3647
3647
  description: "Records will appear here once they are added."
3648
3648
  },
3649
3649
  "no-results": {
3650
- icon: /* @__PURE__ */ j(te, {
3650
+ icon: /* @__PURE__ */ j(p, {
3651
3651
  size: 18,
3652
3652
  strokeWidth: N(18)
3653
3653
  }),
@@ -3698,23 +3698,23 @@ var J = {
3698
3698
  chip__remove: "_chip__remove_1qnyq_29",
3699
3699
  "chip--add": "_chip--add_1qnyq_38",
3700
3700
  "chip--leaving": "_chip--leaving_1qnyq_45"
3701
- }, pr = 160, mr = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, hr = ({ type: e = "default", children: t, onClick: r, onRemove: a, className: o }) => {
3702
- let [s, c] = k.useState(!1), l = k.useRef(void 0);
3703
- k.useEffect(() => () => window.clearTimeout(l.current), []);
3704
- let u = () => {
3701
+ }, pr = 160, mr = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, hr = ({ type: e = "default", children: t, onClick: n, onRemove: i, className: o }) => {
3702
+ let [s, c] = k.useState(!1), u = k.useRef(void 0);
3703
+ k.useEffect(() => () => window.clearTimeout(u.current), []);
3704
+ let d = () => {
3705
3705
  if (!s) {
3706
3706
  if (mr()) {
3707
- a?.();
3707
+ i?.();
3708
3708
  return;
3709
3709
  }
3710
- c(!0), l.current = window.setTimeout(() => {
3711
- a?.(), c(!1);
3710
+ c(!0), u.current = window.setTimeout(() => {
3711
+ i?.(), c(!1);
3712
3712
  }, pr);
3713
3713
  }
3714
3714
  };
3715
3715
  return /* @__PURE__ */ M("button", {
3716
3716
  type: "button",
3717
- onClick: r,
3717
+ onClick: n,
3718
3718
  className: [
3719
3719
  fr.chip,
3720
3720
  fr[`chip--${e}`],
@@ -3722,7 +3722,7 @@ var J = {
3722
3722
  o ?? ""
3723
3723
  ].filter(Boolean).join(" "),
3724
3724
  children: [
3725
- e === "add" && /* @__PURE__ */ j(f, {
3725
+ e === "add" && /* @__PURE__ */ j(r, {
3726
3726
  size: 14,
3727
3727
  strokeWidth: N(14),
3728
3728
  className: fr.chip__lead,
@@ -3732,7 +3732,7 @@ var J = {
3732
3732
  className: fr.chip__label,
3733
3733
  children: t
3734
3734
  }),
3735
- e === "default" && /* @__PURE__ */ j(n, {
3735
+ e === "default" && /* @__PURE__ */ j(l, {
3736
3736
  size: 14,
3737
3737
  strokeWidth: N(14),
3738
3738
  className: fr.chip__trail,
@@ -3743,9 +3743,9 @@ var J = {
3743
3743
  "aria-label": "Remove filter",
3744
3744
  className: fr.chip__remove,
3745
3745
  onClick: (e) => {
3746
- e.stopPropagation(), u();
3746
+ e.stopPropagation(), d();
3747
3747
  },
3748
- children: /* @__PURE__ */ j(i, {
3748
+ children: /* @__PURE__ */ j(a, {
3749
3749
  size: 14,
3750
3750
  strokeWidth: N(14),
3751
3751
  "aria-hidden": "true"
@@ -3983,38 +3983,38 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
3983
3983
  "item--checked": "_item--checked_1ezjp_38",
3984
3984
  "item--disabled": "_item--disabled_1ezjp_39",
3985
3985
  "item--destructive": "_item--destructive_1ezjp_40"
3986
- }, Or = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: i, className: a }) => {
3987
- let o = e === "disabled";
3986
+ }, Or = ({ state: t = "default", icon: n, shortcut: r, children: i, onSelect: a, className: o }) => {
3987
+ let s = t === "disabled";
3988
3988
  return /* @__PURE__ */ M("div", {
3989
3989
  role: "menuitem",
3990
3990
  "data-hover-item": "",
3991
- "aria-disabled": o || void 0,
3992
- "aria-checked": e === "checked" || void 0,
3993
- tabIndex: o ? -1 : 0,
3994
- onClick: o ? void 0 : i,
3991
+ "aria-disabled": s || void 0,
3992
+ "aria-checked": t === "checked" || void 0,
3993
+ tabIndex: s ? -1 : 0,
3994
+ onClick: s ? void 0 : a,
3995
3995
  onKeyDown: (e) => {
3996
- o || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), i?.());
3996
+ s || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a?.());
3997
3997
  },
3998
3998
  className: [
3999
3999
  Dr.item,
4000
- Dr[`item--${e}`],
4001
- a ?? ""
4000
+ Dr[`item--${t}`],
4001
+ o ?? ""
4002
4002
  ].filter(Boolean).join(" "),
4003
4003
  children: [
4004
- t && /* @__PURE__ */ j("span", {
4004
+ n && /* @__PURE__ */ j("span", {
4005
4005
  className: Dr.item__icon,
4006
4006
  "aria-hidden": "true",
4007
- children: t
4007
+ children: n
4008
4008
  }),
4009
4009
  /* @__PURE__ */ j("span", {
4010
4010
  className: Dr.item__label,
4011
- children: r
4011
+ children: i
4012
4012
  }),
4013
- n && /* @__PURE__ */ j("kbd", {
4013
+ r && /* @__PURE__ */ j("kbd", {
4014
4014
  className: Dr.item__shortcut,
4015
- children: n
4015
+ children: r
4016
4016
  }),
4017
- e === "checked" && /* @__PURE__ */ j(x, {
4017
+ t === "checked" && /* @__PURE__ */ j(e, {
4018
4018
  size: 16,
4019
4019
  strokeWidth: N(16),
4020
4020
  className: Dr.item__check,
@@ -4087,7 +4087,7 @@ var br = { chart: "_chart_18fgd_2" }, xr = {
4087
4087
  t === "file" && /* @__PURE__ */ M("div", {
4088
4088
  className: Y.file,
4089
4089
  children: [
4090
- /* @__PURE__ */ j(E, {
4090
+ /* @__PURE__ */ j(_, {
4091
4091
  size: 18,
4092
4092
  strokeWidth: N(18),
4093
4093
  className: Y.file__icon,
@@ -4183,7 +4183,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4183
4183
  disabled: o <= 1,
4184
4184
  onClick: () => n(o - 1),
4185
4185
  "aria-label": "Previous page",
4186
- children: /* @__PURE__ */ j(ne, {
4186
+ children: /* @__PURE__ */ j(ie, {
4187
4187
  size: 16,
4188
4188
  strokeWidth: N(16)
4189
4189
  })
@@ -4206,7 +4206,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4206
4206
  disabled: o >= e,
4207
4207
  onClick: () => n(o + 1),
4208
4208
  "aria-label": "Next page",
4209
- children: /* @__PURE__ */ j(p, {
4209
+ children: /* @__PURE__ */ j(ne, {
4210
4210
  size: 16,
4211
4211
  strokeWidth: N(16)
4212
4212
  })
@@ -4616,13 +4616,13 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4616
4616
  "item__label--collapsed": "_item__label--collapsed_873gi_151",
4617
4617
  "item__chevron--expanded": "_item__chevron--expanded_873gi_174"
4618
4618
  }, Gr = ({ icon: e, label: t, active: n, activeIndicator: r = !0, disabled: i, badge: a, hasSubmenu: o, collapsed: s, expanded: c, onClick: l, href: u, nativeTooltip: d = !0 }) => {
4619
- let f = n && r, m = n && !r, h = [
4619
+ let f = n && r, p = n && !r, m = [
4620
4620
  Wr.item,
4621
4621
  f ? Wr["item--active"] : "",
4622
- m ? Wr["item--active-flat"] : "",
4622
+ p ? Wr["item--active-flat"] : "",
4623
4623
  i ? Wr["item--disabled"] : "",
4624
4624
  s ? Wr["item--collapsed"] : ""
4625
- ].filter(Boolean).join(" "), g = /* @__PURE__ */ M(A, { children: [
4625
+ ].filter(Boolean).join(" "), h = /* @__PURE__ */ M(A, { children: [
4626
4626
  /* @__PURE__ */ j("span", {
4627
4627
  className: Wr.item__bar,
4628
4628
  "aria-hidden": "true"
@@ -4646,13 +4646,13 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4646
4646
  !s && o && /* @__PURE__ */ j("span", {
4647
4647
  className: [Wr.item__chevron, c ? Wr["item__chevron--expanded"] : ""].filter(Boolean).join(" "),
4648
4648
  "aria-hidden": "true",
4649
- children: /* @__PURE__ */ j(p, {
4649
+ children: /* @__PURE__ */ j(ne, {
4650
4650
  size: 16,
4651
4651
  strokeWidth: N(16)
4652
4652
  })
4653
4653
  })
4654
- ] }), _ = {
4655
- className: h,
4654
+ ] }), g = {
4655
+ className: m,
4656
4656
  "data-hover-item": "",
4657
4657
  title: s && d ? t : void 0,
4658
4658
  "aria-label": s ? t : void 0,
@@ -4661,14 +4661,14 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4661
4661
  };
4662
4662
  return u && !i ? /* @__PURE__ */ j("a", {
4663
4663
  href: u,
4664
- ..._,
4665
- children: g
4664
+ ...g,
4665
+ children: h
4666
4666
  }) : /* @__PURE__ */ j("button", {
4667
4667
  type: "button",
4668
4668
  disabled: i,
4669
4669
  onClick: l,
4670
- ..._,
4671
- children: g
4670
+ ...g,
4671
+ children: h
4672
4672
  });
4673
4673
  }, Kr = {
4674
4674
  promo: "_promo_1ou3w_4",
@@ -4678,7 +4678,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4678
4678
  promo__dismiss: "_promo__dismiss_1ou3w_23",
4679
4679
  promo__desc: "_promo__desc_1ou3w_30",
4680
4680
  promo__cta: "_promo__cta_1ou3w_33"
4681
- }, qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: a, onDismiss: s, icon: c = o }) => /* @__PURE__ */ M("div", {
4681
+ }, qr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: i, onDismiss: o, icon: s = d }) => /* @__PURE__ */ M("div", {
4682
4682
  className: [Kr.promo, Kr[`promo--${e}`]].join(" "),
4683
4683
  children: [
4684
4684
  /* @__PURE__ */ M("div", {
@@ -4687,7 +4687,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4687
4687
  /* @__PURE__ */ j("span", {
4688
4688
  className: Kr.promo__icon,
4689
4689
  "aria-hidden": "true",
4690
- children: /* @__PURE__ */ j(c, {
4690
+ children: /* @__PURE__ */ j(s, {
4691
4691
  size: 16,
4692
4692
  strokeWidth: N(16)
4693
4693
  })
@@ -4696,12 +4696,12 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4696
4696
  className: Kr.promo__title,
4697
4697
  children: t
4698
4698
  }),
4699
- s && /* @__PURE__ */ j("button", {
4699
+ o && /* @__PURE__ */ j("button", {
4700
4700
  type: "button",
4701
4701
  className: Kr.promo__dismiss,
4702
- onClick: s,
4702
+ onClick: o,
4703
4703
  "aria-label": "Dismiss",
4704
- children: /* @__PURE__ */ j(i, {
4704
+ children: /* @__PURE__ */ j(a, {
4705
4705
  size: 14,
4706
4706
  strokeWidth: N(14)
4707
4707
  })
@@ -4716,7 +4716,7 @@ var Nr = ({ total: e, page: t, onPageChange: n, siblings: r = 1, className: i })
4716
4716
  variant: "primary",
4717
4717
  size: "sm",
4718
4718
  className: Kr.promo__cta,
4719
- onClick: a,
4719
+ onClick: i,
4720
4720
  children: r
4721
4721
  })
4722
4722
  ]
@@ -4835,9 +4835,9 @@ var ni = {
4835
4835
  "card--trend-down": "_card--trend-down_1qi93_69",
4836
4836
  card__description: "_card__description_1qi93_72"
4837
4837
  }, ri = {
4838
- up: b,
4839
- down: e,
4840
- flat: r
4838
+ up: s,
4839
+ down: b,
4840
+ flat: n
4841
4841
  }, ii = {
4842
4842
  up: "success",
4843
4843
  down: "danger",
@@ -4889,7 +4889,7 @@ var ni = {
4889
4889
  className: ni.card__menu,
4890
4890
  onClick: u,
4891
4891
  "aria-label": "More options",
4892
- children: /* @__PURE__ */ j(ie, {
4892
+ children: /* @__PURE__ */ j(h, {
4893
4893
  size: 16,
4894
4894
  strokeWidth: N(16)
4895
4895
  })
@@ -5263,73 +5263,73 @@ var fi = {
5263
5263
  "bar__left--search": "_bar__left--search_yqi1k_84",
5264
5264
  bar__accountChevron: "_bar__accountChevron_yqi1k_98",
5265
5265
  "bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
5266
- }, gi = ({ type: e = "search", density: t = "md", left: r, showToggle: i = !0, onToggle: a, toggleIcon: o = w, showActions: s = !0, showHelp: c = !0, hasUnread: u = !1, rightSlot: d, account: f, accountOpen: p = !1, avatar: m, title: h, subtitle: g, actions: _, className: v }) => {
5267
- let y = Yn(), b = Yn(), x = t === "md" ? 20 : 18, S = N(x);
5266
+ }, gi = ({ type: e = "search", density: t = "md", left: n, showToggle: r = !0, onToggle: i, toggleIcon: a = w, showActions: o = !0, showHelp: s = !0, hasUnread: c = !1, rightSlot: u, account: d, accountOpen: f = !1, avatar: p, title: m, subtitle: h, actions: g, className: _ }) => {
5267
+ let v = Yn(), y = Yn(), b = t === "md" ? 20 : 18, S = N(b);
5268
5268
  return /* @__PURE__ */ j("header", {
5269
5269
  className: [
5270
5270
  $.bar,
5271
5271
  $[`bar--${t}`],
5272
5272
  $[`bar--${e}`],
5273
- v ?? ""
5273
+ _ ?? ""
5274
5274
  ].filter(Boolean).join(" "),
5275
5275
  children: e === "chat" ? /* @__PURE__ */ M(A, { children: [
5276
- m && /* @__PURE__ */ j("span", {
5276
+ p && /* @__PURE__ */ j("span", {
5277
5277
  className: $.bar__chatAvatar,
5278
- children: m
5278
+ children: p
5279
5279
  }),
5280
5280
  /* @__PURE__ */ M("span", {
5281
5281
  className: $.bar__chatMeta,
5282
- children: [h && /* @__PURE__ */ j("span", {
5282
+ children: [m && /* @__PURE__ */ j("span", {
5283
5283
  className: $.bar__chatTitle,
5284
- children: h
5285
- }), g && /* @__PURE__ */ j("span", {
5284
+ children: m
5285
+ }), h && /* @__PURE__ */ j("span", {
5286
5286
  className: $.bar__chatSubtitle,
5287
- children: g
5287
+ children: h
5288
5288
  })]
5289
5289
  }),
5290
5290
  /* @__PURE__ */ j("div", { className: $.bar__spacer }),
5291
- _ && /* @__PURE__ */ M("div", {
5292
- ref: b.ref,
5293
- ...b.groupProps,
5291
+ g && /* @__PURE__ */ M("div", {
5292
+ ref: y.ref,
5293
+ ...y.groupProps,
5294
5294
  className: $.bar__chatActions,
5295
- children: [b.highlight, _]
5295
+ children: [y.highlight, g]
5296
5296
  })
5297
5297
  ] }) : /* @__PURE__ */ M(A, { children: [
5298
5298
  /* @__PURE__ */ M("div", {
5299
5299
  className: $.bar__leftGroup,
5300
- children: [i && /* @__PURE__ */ j("button", {
5300
+ children: [r && /* @__PURE__ */ j("button", {
5301
5301
  type: "button",
5302
5302
  className: $.bar__icon,
5303
- onClick: a,
5303
+ onClick: i,
5304
5304
  "aria-label": "Toggle sidebar",
5305
- children: /* @__PURE__ */ j(o, {
5306
- size: x,
5305
+ children: /* @__PURE__ */ j(a, {
5306
+ size: b,
5307
5307
  strokeWidth: S
5308
5308
  })
5309
5309
  }), /* @__PURE__ */ j("div", {
5310
5310
  className: [$.bar__left, e === "search" ? $["bar__left--search"] : ""].filter(Boolean).join(" "),
5311
5311
  "data-type": e,
5312
- children: r
5312
+ children: n
5313
5313
  })]
5314
5314
  }),
5315
5315
  /* @__PURE__ */ j("div", { className: $.bar__spacer }),
5316
5316
  /* @__PURE__ */ M("div", {
5317
5317
  className: $.bar__right,
5318
5318
  children: [
5319
- d,
5320
- s && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("span", {
5321
- ref: y.ref,
5322
- ...y.groupProps,
5319
+ u,
5320
+ o && /* @__PURE__ */ M(A, { children: [/* @__PURE__ */ M("span", {
5321
+ ref: v.ref,
5322
+ ...v.groupProps,
5323
5323
  className: $.bar__iconGroup,
5324
5324
  children: [
5325
- y.highlight,
5326
- c && /* @__PURE__ */ j("button", {
5325
+ v.highlight,
5326
+ s && /* @__PURE__ */ j("button", {
5327
5327
  type: "button",
5328
5328
  "data-hover-item": "",
5329
5329
  className: $.bar__icon,
5330
5330
  "aria-label": "Help",
5331
5331
  children: /* @__PURE__ */ j(ee, {
5332
- size: x,
5332
+ size: b,
5333
5333
  strokeWidth: S
5334
5334
  })
5335
5335
  }),
@@ -5340,10 +5340,10 @@ var fi = {
5340
5340
  "aria-label": "Notifications",
5341
5341
  children: /* @__PURE__ */ M("span", {
5342
5342
  className: $.bar__bell,
5343
- children: [/* @__PURE__ */ j(l, {
5344
- size: x,
5343
+ children: [/* @__PURE__ */ j(x, {
5344
+ size: b,
5345
5345
  strokeWidth: S
5346
- }), u && /* @__PURE__ */ j("span", {
5346
+ }), c && /* @__PURE__ */ j("span", {
5347
5347
  className: $.bar__dot,
5348
5348
  "aria-hidden": "true"
5349
5349
  })]
@@ -5351,12 +5351,12 @@ var fi = {
5351
5351
  })
5352
5352
  ]
5353
5353
  }), /* @__PURE__ */ j("span", { className: $.bar__divider })] }),
5354
- f && /* @__PURE__ */ M("div", {
5354
+ d && /* @__PURE__ */ M("div", {
5355
5355
  className: $.bar__account,
5356
- children: [f, /* @__PURE__ */ j(n, {
5356
+ children: [d, /* @__PURE__ */ j(l, {
5357
5357
  size: 16,
5358
5358
  strokeWidth: N(16),
5359
- className: [$.bar__accountChevron, p ? $["bar__accountChevron--open"] : ""].filter(Boolean).join(" ")
5359
+ className: [$.bar__accountChevron, f ? $["bar__accountChevron--open"] : ""].filter(Boolean).join(" ")
5360
5360
  })]
5361
5361
  })
5362
5362
  ]