@sakaniui/react 0.4.3 → 0.4.5

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,10 +1,10 @@
1
1
  import e, { useEffect as t, useState as n } from "react";
2
2
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
3
- import { Bell as o, BellOff as s, Camera as c, Check as l, CheckCheck as u, ChevronDown as d, ChevronLeft as f, ChevronRight as p, ChevronsUpDown as m, CircleAlert as h, CircleHelp as g, Download as _, Eye as v, EyeOff as y, File as b, GripVertical as x, Heart as S, Inbox as C, Minus as w, MoreHorizontal as T, PanelLeft as E, PanelLeftClose as D, Paperclip as O, Plus as k, Search as A, Send as j, Smile as ee, Sparkles as te, Star as ne, StarHalf as re, TrendingDown as ie, TrendingUp as ae, TriangleAlert as oe, X as se } from "lucide-react";
4
- import { Bar as ce, BarChart as le, CartesianGrid as ue, Cell as de, Legend as fe, Line as pe, LineChart as me, Pie as he, PieChart as ge, PolarAngleAxis as _e, RadialBar as ve, RadialBarChart as ye, Rectangle as be, ResponsiveContainer as xe, Tooltip as Se, XAxis as Ce, YAxis as we } from "recharts";
5
- import Te, { createPortal as Ee } from "react-dom";
3
+ import { Bell as o, BellOff as s, Camera as c, Check as l, CheckCheck as u, ChevronDown as d, ChevronLeft as f, ChevronRight as p, ChevronsUpDown as m, CircleAlert as h, CircleHelp as g, Download as _, Eye as v, EyeOff as y, File as b, GripVertical as x, Heart as S, Inbox as C, Minus as w, MoreHorizontal as T, PanelLeft as E, PanelLeftClose as D, Paperclip as O, Plus as ee, Search as k, Send as A, Smile as te, Sparkles as ne, Star as re, StarHalf as ie, TrendingDown as ae, TrendingUp as oe, TriangleAlert as se, X as ce } from "lucide-react";
4
+ import { Bar as le, BarChart as ue, CartesianGrid as de, Cell as fe, Legend as pe, Line as me, LineChart as he, Pie as ge, PieChart as _e, PolarAngleAxis as ve, RadialBar as ye, RadialBarChart as be, Rectangle as xe, ResponsiveContainer as Se, Tooltip as Ce, XAxis as we, YAxis as Te } from "recharts";
5
+ import Ee, { createPortal as De } from "react-dom";
6
6
  //#region src/lib/iconStrokeWidth.ts
7
- var M = (e, t = 1.5) => 24 / e * t, De = {
7
+ var j = (e, t = 1.5) => 24 / e * t, Oe = {
8
8
  accordion: "_accordion_1njer_3",
9
9
  item: "_item_1njer_10",
10
10
  item__header: "_item__header_1njer_12",
@@ -15,26 +15,26 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
15
15
  "item__panelWrap--open": "_item__panelWrap--open_1njer_50",
16
16
  item__panel: "_item__panel_1njer_45",
17
17
  item__panelInner: "_item__panelInner_1njer_53"
18
- }, Oe = ({ title: t, children: n, open: r, defaultOpen: o = !1, className: s }) => {
18
+ }, ke = ({ title: t, children: n, open: r, defaultOpen: o = !1, className: s }) => {
19
19
  let c = r !== void 0, [l, u] = e.useState(o), d = c ? r : l;
20
20
  return /* @__PURE__ */ a("div", {
21
- className: [De.item, s ?? ""].filter(Boolean).join(" "),
21
+ className: [Oe.item, s ?? ""].filter(Boolean).join(" "),
22
22
  children: [/* @__PURE__ */ a("button", {
23
23
  type: "button",
24
- className: De.item__header,
24
+ className: Oe.item__header,
25
25
  "aria-expanded": d,
26
26
  onClick: () => !c && u((e) => !e),
27
27
  children: [/* @__PURE__ */ i("span", {
28
- className: De.item__title,
28
+ className: Oe.item__title,
29
29
  children: t
30
30
  }), /* @__PURE__ */ i("span", {
31
- className: [De.item__chevron, d ? De["item__chevron--open"] : ""].join(" "),
31
+ className: [Oe.item__chevron, d ? Oe["item__chevron--open"] : ""].join(" "),
32
32
  "aria-hidden": "true",
33
33
  children: /* @__PURE__ */ i("svg", {
34
34
  viewBox: "0 0 24 24",
35
35
  fill: "none",
36
36
  stroke: "currentColor",
37
- strokeWidth: M(18),
37
+ strokeWidth: j(18),
38
38
  strokeLinecap: "round",
39
39
  strokeLinejoin: "round",
40
40
  width: 18,
@@ -43,20 +43,20 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
43
43
  })
44
44
  })]
45
45
  }), /* @__PURE__ */ i("div", {
46
- className: [De.item__panelWrap, d ? De["item__panelWrap--open"] : ""].join(" "),
46
+ className: [Oe.item__panelWrap, d ? Oe["item__panelWrap--open"] : ""].join(" "),
47
47
  children: /* @__PURE__ */ i("div", {
48
- className: De.item__panel,
48
+ className: Oe.item__panel,
49
49
  children: /* @__PURE__ */ i("div", {
50
- className: De.item__panelInner,
50
+ className: Oe.item__panelInner,
51
51
  children: n
52
52
  })
53
53
  })
54
54
  })]
55
55
  });
56
- }, ke = ({ children: e, className: t }) => /* @__PURE__ */ i("div", {
57
- className: [De.accordion, t ?? ""].filter(Boolean).join(" "),
56
+ }, Ae = ({ children: e, className: t }) => /* @__PURE__ */ i("div", {
57
+ className: [Oe.accordion, t ?? ""].filter(Boolean).join(" "),
58
58
  children: e
59
- }), Ae = {
59
+ }), je = {
60
60
  avatar: "_avatar_1igqs_3",
61
61
  "avatar--sm": "_avatar--sm_1igqs_17",
62
62
  "avatar--md": "_avatar--md_1igqs_18",
@@ -66,16 +66,16 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
66
66
  avatar__image: "_avatar__image_1igqs_31",
67
67
  avatar__initials: "_avatar__initials_1igqs_39",
68
68
  avatar__icon: "_avatar__icon_1igqs_46"
69
- }, je = {
69
+ }, Me = {
70
70
  sm: 14,
71
71
  md: 18,
72
72
  lg: 22,
73
73
  xl: 26
74
- }, Me = ({ px: e }) => /* @__PURE__ */ a("svg", {
74
+ }, Ne = ({ px: e }) => /* @__PURE__ */ a("svg", {
75
75
  viewBox: "0 0 24 24",
76
76
  fill: "none",
77
77
  stroke: "currentColor",
78
- strokeWidth: M(e),
78
+ strokeWidth: j(e),
79
79
  strokeLinecap: "round",
80
80
  strokeLinejoin: "round",
81
81
  "aria-hidden": "true",
@@ -84,18 +84,18 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
84
84
  cy: "7",
85
85
  r: "4"
86
86
  })]
87
- }), Ne = ({ size: t = "md", src: n, alt: r = "", initials: a, icon: o, className: s }) => {
87
+ }), Pe = ({ size: t = "md", src: n, alt: r = "", initials: a, icon: o, className: s }) => {
88
88
  let c = [
89
- Ae.avatar,
90
- Ae[`avatar--${t}`],
89
+ je.avatar,
90
+ je[`avatar--${t}`],
91
91
  s ?? ""
92
92
  ].filter(Boolean).join(" ");
93
93
  if (n) return /* @__PURE__ */ i("span", {
94
- className: [c, Ae["avatar--bordered"]].join(" "),
94
+ className: [c, je["avatar--bordered"]].join(" "),
95
95
  children: /* @__PURE__ */ i("img", {
96
96
  src: n,
97
97
  alt: r,
98
- className: Ae.avatar__image
98
+ className: je.avatar__image
99
99
  })
100
100
  });
101
101
  if (a) return /* @__PURE__ */ i("span", {
@@ -103,24 +103,24 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
103
103
  role: "img",
104
104
  "aria-label": r || a,
105
105
  children: /* @__PURE__ */ i("span", {
106
- className: Ae.avatar__initials,
106
+ className: je.avatar__initials,
107
107
  children: a.slice(0, 2).toUpperCase()
108
108
  })
109
109
  });
110
- let l = je[t], u = e.isValidElement(o) ? e.cloneElement(o, {
110
+ let l = Me[t], u = e.isValidElement(o) ? e.cloneElement(o, {
111
111
  size: l,
112
- strokeWidth: M(l)
113
- }) : o ?? /* @__PURE__ */ i(Me, { px: l });
112
+ strokeWidth: j(l)
113
+ }) : o ?? /* @__PURE__ */ i(Ne, { px: l });
114
114
  return /* @__PURE__ */ i("span", {
115
115
  className: c,
116
116
  role: "img",
117
117
  "aria-label": r || "avatar",
118
118
  children: /* @__PURE__ */ i("span", {
119
- className: Ae.avatar__icon,
119
+ className: je.avatar__icon,
120
120
  children: u
121
121
  })
122
122
  });
123
- }, N = {
123
+ }, M = {
124
124
  feed: "_feed_1pvgl_1",
125
125
  "feed--compact": "_feed--compact_1pvgl_8",
126
126
  "row--default": "_row--default_1pvgl_13",
@@ -135,35 +135,35 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
135
135
  actor: "_actor_1pvgl_88",
136
136
  highlight: "_highlight_1pvgl_89",
137
137
  timestamp: "_timestamp_1pvgl_92"
138
- }, Pe = ({ children: e }) => /* @__PURE__ */ i("span", {
139
- className: N.highlight,
138
+ }, Fe = ({ children: e }) => /* @__PURE__ */ i("span", {
139
+ className: M.highlight,
140
140
  children: e
141
- }), Fe = 16, Ie = (t) => e.isValidElement(t) ? e.cloneElement(t, {
142
- size: Fe,
143
- strokeWidth: M(Fe)
144
- }) : t, Le = ({ items: e, variant: t = "default", className: n }) => {
141
+ }), Ie = 16, Le = (t) => e.isValidElement(t) ? e.cloneElement(t, {
142
+ size: Ie,
143
+ strokeWidth: j(Ie)
144
+ }) : t, Re = ({ items: e, variant: t = "default", className: n }) => {
145
145
  let r = t === "compact";
146
146
  return /* @__PURE__ */ i("div", {
147
147
  className: [
148
- N.feed,
149
- r ? N["feed--compact"] : "",
148
+ M.feed,
149
+ r ? M["feed--compact"] : "",
150
150
  n ?? ""
151
151
  ].filter(Boolean).join(" "),
152
152
  children: e.map((t, n) => {
153
153
  let o = n === e.length - 1, s = t.id ?? n;
154
154
  return r ? /* @__PURE__ */ a("div", {
155
- className: N["row--compact"],
155
+ className: M["row--compact"],
156
156
  children: [/* @__PURE__ */ a("div", {
157
- className: N.compactLeft,
158
- children: [/* @__PURE__ */ i(Ne, {
157
+ className: M.compactLeft,
158
+ children: [/* @__PURE__ */ i(Pe, {
159
159
  size: "sm",
160
160
  src: t.avatarSrc,
161
161
  alt: t.avatarAlt ?? t.actor
162
162
  }), /* @__PURE__ */ a("p", {
163
- className: N.text,
163
+ className: M.text,
164
164
  children: [
165
165
  /* @__PURE__ */ i("span", {
166
- className: N.actor,
166
+ className: M.actor,
167
167
  children: t.actor
168
168
  }),
169
169
  " ",
@@ -171,49 +171,49 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
171
171
  ]
172
172
  })]
173
173
  }), /* @__PURE__ */ i("span", {
174
- className: N.timestamp,
174
+ className: M.timestamp,
175
175
  children: t.timestamp
176
176
  })]
177
177
  }, s) : /* @__PURE__ */ a("div", {
178
- className: N["row--default"],
178
+ className: M["row--default"],
179
179
  children: [/* @__PURE__ */ a("div", {
180
- className: N.rail,
180
+ className: M.rail,
181
181
  children: [/* @__PURE__ */ i("div", {
182
- className: N.dot,
183
- children: Ie(t.icon)
184
- }), !o && /* @__PURE__ */ i("div", { className: N.connector })]
182
+ className: M.dot,
183
+ children: Le(t.icon)
184
+ }), !o && /* @__PURE__ */ i("div", { className: M.connector })]
185
185
  }), /* @__PURE__ */ a("div", {
186
- className: [N.content, o ? "" : N["content--spaced"]].filter(Boolean).join(" "),
186
+ className: [M.content, o ? "" : M["content--spaced"]].filter(Boolean).join(" "),
187
187
  children: [/* @__PURE__ */ a("p", {
188
- className: N.text,
188
+ className: M.text,
189
189
  children: [
190
190
  /* @__PURE__ */ i("span", {
191
- className: N.actor,
191
+ className: M.actor,
192
192
  children: t.actor
193
193
  }),
194
194
  " ",
195
195
  t.description
196
196
  ]
197
197
  }), /* @__PURE__ */ i("span", {
198
- className: N.timestamp,
198
+ className: M.timestamp,
199
199
  children: t.timestamp
200
200
  })]
201
201
  })]
202
202
  }, s);
203
203
  })
204
204
  });
205
- }, Re = {
205
+ }, ze = {
206
206
  link: "_link_1g7dc_3",
207
207
  link__external: "_link__external_1g7dc_34"
208
- }, ze = e.forwardRef(({ external: e, children: t, className: n, href: r, ...o }, s) => /* @__PURE__ */ a("a", {
208
+ }, Be = e.forwardRef(({ external: e, children: t, className: n, href: r, ...o }, s) => /* @__PURE__ */ a("a", {
209
209
  ref: s,
210
210
  href: r,
211
- className: [Re.link, n ?? ""].filter(Boolean).join(" "),
211
+ className: [ze.link, n ?? ""].filter(Boolean).join(" "),
212
212
  target: e ? "_blank" : o.target,
213
213
  rel: e ? "noopener noreferrer" : o.rel,
214
214
  ...o,
215
215
  children: [t, e && /* @__PURE__ */ i("span", {
216
- className: Re.link__external,
216
+ className: ze.link__external,
217
217
  "aria-label": "(opens in new tab)",
218
218
  children: /* @__PURE__ */ a("svg", {
219
219
  width: 12,
@@ -221,7 +221,7 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
221
221
  viewBox: "0 0 24 24",
222
222
  fill: "none",
223
223
  stroke: "currentColor",
224
- strokeWidth: M(12),
224
+ strokeWidth: j(12),
225
225
  strokeLinecap: "round",
226
226
  strokeLinejoin: "round",
227
227
  "aria-hidden": "true",
@@ -238,8 +238,8 @@ var M = (e, t = 1.5) => 24 / e * t, De = {
238
238
  })
239
239
  })]
240
240
  }));
241
- ze.displayName = "Link";
242
- var Be = {
241
+ Be.displayName = "Link";
242
+ var Ve = {
243
243
  button: "_button_l09ur_2",
244
244
  "button--sm": "_button--sm_l09ur_26",
245
245
  "button--md": "_button--md_l09ur_27",
@@ -249,28 +249,28 @@ var Be = {
249
249
  "button--outline": "_button--outline_l09ur_43",
250
250
  "button--ghost": "_button--ghost_l09ur_48",
251
251
  "button--destructive": "_button--destructive_l09ur_53"
252
- }, Ve = {
252
+ }, He = {
253
253
  sm: 16,
254
254
  md: 18,
255
255
  lg: 20
256
- }, He = e.forwardRef(({ icon: e, variant: t = "primary", size: n = "md", disabled: r, className: a, ...o }, s) => /* @__PURE__ */ i("button", {
256
+ }, Ue = e.forwardRef(({ icon: e, variant: t = "primary", size: n = "md", disabled: r, className: a, ...o }, s) => /* @__PURE__ */ i("button", {
257
257
  ref: s,
258
258
  disabled: r,
259
259
  className: [
260
- Be.button,
261
- Be[`button--${t}`],
262
- Be[`button--${n}`],
260
+ Ve.button,
261
+ Ve[`button--${t}`],
262
+ Ve[`button--${n}`],
263
263
  a ?? ""
264
264
  ].filter(Boolean).join(" "),
265
265
  ...o,
266
266
  children: /* @__PURE__ */ i(e, {
267
- size: Ve[n],
268
- strokeWidth: M(Ve[n]),
267
+ size: He[n],
268
+ strokeWidth: j(He[n]),
269
269
  "aria-hidden": "true"
270
270
  })
271
271
  }));
272
- He.displayName = "IconButton";
273
- var Ue = {
272
+ Ue.displayName = "IconButton";
273
+ var We = {
274
274
  button: "_button_izp70_21",
275
275
  "button--primary": "_button--primary_izp70_106",
276
276
  "button--secondary": "_button--secondary_izp70_133",
@@ -287,17 +287,17 @@ var Ue = {
287
287
  "button--loading": "_button--loading_izp70_287",
288
288
  button__spinner: "_button__spinner_izp70_291",
289
289
  "sakani-btn-spin": "_sakani-btn-spin_izp70_1"
290
- }, P = e.forwardRef(({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: o = !1, disabled: s, children: c, className: l, ...u }, d) => {
290
+ }, N = e.forwardRef(({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: o = !1, disabled: s, children: c, className: l, ...u }, d) => {
291
291
  let f = s || o;
292
292
  return /* @__PURE__ */ a("button", {
293
293
  ref: d,
294
294
  className: [
295
- Ue.button,
296
- Ue[`button--${e}`],
297
- Ue[`button--${t}`],
298
- o ? Ue["button--loading"] : "",
299
- n && !o ? Ue["button--hasLeftIcon"] : "",
300
- r && !o ? Ue["button--hasRightIcon"] : "",
295
+ We.button,
296
+ We[`button--${e}`],
297
+ We[`button--${t}`],
298
+ o ? We["button--loading"] : "",
299
+ n && !o ? We["button--hasLeftIcon"] : "",
300
+ r && !o ? We["button--hasRightIcon"] : "",
301
301
  l ?? ""
302
302
  ].filter(Boolean).join(" "),
303
303
  disabled: f,
@@ -305,7 +305,7 @@ var Ue = {
305
305
  ...u,
306
306
  children: [
307
307
  o && /* @__PURE__ */ i("span", {
308
- className: [Ue.button__icon, Ue.button__spinner].join(" "),
308
+ className: [We.button__icon, We.button__spinner].join(" "),
309
309
  "aria-hidden": "true",
310
310
  children: /* @__PURE__ */ i("svg", {
311
311
  viewBox: "0 0 24 24",
@@ -317,24 +317,24 @@ var Ue = {
317
317
  })
318
318
  }),
319
319
  n && !o && /* @__PURE__ */ i("span", {
320
- className: Ue.button__icon,
320
+ className: We.button__icon,
321
321
  "aria-hidden": "true",
322
322
  children: n
323
323
  }),
324
324
  /* @__PURE__ */ i("span", {
325
- className: Ue.button__label,
325
+ className: We.button__label,
326
326
  children: c
327
327
  }),
328
328
  r && !o && /* @__PURE__ */ i("span", {
329
- className: Ue.button__icon,
329
+ className: We.button__icon,
330
330
  "aria-hidden": "true",
331
331
  children: r
332
332
  })
333
333
  ]
334
334
  });
335
335
  });
336
- P.displayName = "Button";
337
- var F = {
336
+ N.displayName = "Button";
337
+ var P = {
338
338
  wrap: "_wrap_3mj75_1",
339
339
  "wrap--vertical": "_wrap--vertical_3mj75_7",
340
340
  "wrap--horizontal": "_wrap--horizontal_3mj75_11",
@@ -348,47 +348,47 @@ var F = {
348
348
  hint: "_hint_3mj75_79",
349
349
  link: "_link_3mj75_88",
350
350
  input: "_input_3mj75_92"
351
- }, We = ({ src: t, alt: n, orientation: r = "vertical", accept: o = "image/jpeg,image/png", title: s = "Upload a photo", hint: l = "JPG or PNG, max 5MB.", onFileSelect: u, onRemove: d, className: f }) => {
351
+ }, Ge = ({ src: t, alt: n, orientation: r = "vertical", accept: o = "image/jpeg,image/png", title: s = "Upload a photo", hint: l = "JPG or PNG, max 5MB.", onFileSelect: u, onRemove: d, className: f }) => {
352
352
  let p = e.useRef(null), m = t !== void 0, [h, g] = e.useState(void 0), _ = m ? t : h, v = r === "horizontal", y = !!_, b = () => p.current?.click(), x = () => {
353
353
  d?.(), m || g(void 0);
354
354
  }, S = /* @__PURE__ */ a("div", {
355
- className: [F.textStack, v ? "" : F["textStack--center"]].filter(Boolean).join(" "),
355
+ className: [P.textStack, v ? "" : P["textStack--center"]].filter(Boolean).join(" "),
356
356
  children: [/* @__PURE__ */ i("p", {
357
- className: F.title,
357
+ className: P.title,
358
358
  children: s
359
359
  }), /* @__PURE__ */ i("p", {
360
- className: F.hint,
360
+ className: P.hint,
361
361
  children: l
362
362
  })]
363
363
  });
364
364
  return /* @__PURE__ */ a("div", {
365
365
  className: [
366
- F.wrap,
367
- F[`wrap--${r}`],
366
+ P.wrap,
367
+ P[`wrap--${r}`],
368
368
  f ?? ""
369
369
  ].filter(Boolean).join(" "),
370
370
  children: [
371
371
  /* @__PURE__ */ a("div", {
372
- className: F.circleWrap,
373
- children: [/* @__PURE__ */ i(Ne, {
372
+ className: P.circleWrap,
373
+ children: [/* @__PURE__ */ i(Pe, {
374
374
  size: v ? "lg" : "xl",
375
375
  src: _,
376
376
  alt: n,
377
- className: v ? void 0 : F.bigAvatar
377
+ className: v ? void 0 : P.bigAvatar
378
378
  }), !v && /* @__PURE__ */ i("button", {
379
379
  type: "button",
380
- className: F.badge,
380
+ className: P.badge,
381
381
  onClick: b,
382
382
  "aria-label": "Change photo",
383
383
  children: /* @__PURE__ */ i(c, {
384
384
  size: 16,
385
- strokeWidth: M(16)
385
+ strokeWidth: j(16)
386
386
  })
387
387
  })]
388
388
  }),
389
389
  v && /* @__PURE__ */ a("div", {
390
- className: F.horizontalContent,
391
- children: [S, y ? /* @__PURE__ */ i(P, {
390
+ className: P.horizontalContent,
391
+ children: [S, y ? /* @__PURE__ */ i(N, {
392
392
  variant: "outline",
393
393
  size: "sm",
394
394
  onClick: x,
@@ -397,19 +397,19 @@ var F = {
397
397
  borderColor: "var(--color-danger-border)"
398
398
  },
399
399
  children: "Remove"
400
- }) : /* @__PURE__ */ i(P, {
400
+ }) : /* @__PURE__ */ i(N, {
401
401
  variant: "outline",
402
402
  size: "sm",
403
403
  onClick: b,
404
404
  children: "Upload"
405
405
  })]
406
406
  }),
407
- !v && (y ? /* @__PURE__ */ i(ze, {
407
+ !v && (y ? /* @__PURE__ */ i(Be, {
408
408
  href: "#",
409
409
  onClick: (e) => {
410
410
  e.preventDefault(), b();
411
411
  },
412
- className: F.link,
412
+ className: P.link,
413
413
  style: {
414
414
  color: "var(--color-brand-fg)",
415
415
  fontSize: 16,
@@ -421,7 +421,7 @@ var F = {
421
421
  ref: p,
422
422
  type: "file",
423
423
  accept: o,
424
- className: F.input,
424
+ className: P.input,
425
425
  onChange: (e) => {
426
426
  let t = e.target.files?.[0];
427
427
  t && (u?.(t), m || g(URL.createObjectURL(t))), e.target.value = "";
@@ -432,7 +432,7 @@ var F = {
432
432
  };
433
433
  //#endregion
434
434
  //#region src/lib/useThemeTick.ts
435
- function Ge() {
435
+ function Ke() {
436
436
  let [e, r] = n(0);
437
437
  return t(() => {
438
438
  if (typeof document > "u") return;
@@ -444,7 +444,7 @@ function Ge() {
444
444
  }), () => e.disconnect();
445
445
  }, []), e;
446
446
  }
447
- var I = {
447
+ var F = {
448
448
  balance: "_balance_kaxp5_1",
449
449
  "balance--progress": "_balance--progress_kaxp5_8",
450
450
  content: "_content_kaxp5_17",
@@ -462,30 +462,30 @@ var I = {
462
462
  changeValue__down: "_changeValue__down_kaxp5_117",
463
463
  changeLabel: "_changeLabel_kaxp5_124",
464
464
  ringCard: "_ringCard_kaxp5_132"
465
- }, Ke = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", qe = 8, Je = 6, Ye = 90, Xe = (e) => {
466
- let t = Math.min(e, qe);
467
- return Array.from({ length: t }, () => Ke[Math.floor(Math.random() * 36)]).join("");
468
- }, Ze = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, Qe = ({ progress: e }) => {
469
- Ge();
470
- let t = Ze("--color-chart-1") ?? "#ff4700", n = Ze("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
465
+ }, qe = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Je = 8, Ye = 6, Xe = 90, Ze = (e) => {
466
+ let t = Math.min(e, Je);
467
+ return Array.from({ length: t }, () => qe[Math.floor(Math.random() * 36)]).join("");
468
+ }, Qe = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, $e = ({ progress: e }) => {
469
+ Ke();
470
+ let t = Qe("--color-chart-1") ?? "#ff4700", n = Qe("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
471
471
  return /* @__PURE__ */ i("div", {
472
- className: I.ringCard,
473
- children: /* @__PURE__ */ i(xe, {
472
+ className: F.ringCard,
473
+ children: /* @__PURE__ */ i(Se, {
474
474
  width: 64,
475
475
  height: 64,
476
- children: /* @__PURE__ */ a(ye, {
476
+ children: /* @__PURE__ */ a(be, {
477
477
  data: r,
478
478
  startAngle: 90,
479
479
  endAngle: -270,
480
480
  innerRadius: "72%",
481
481
  outerRadius: "100%",
482
482
  barSize: 10,
483
- children: [/* @__PURE__ */ i(_e, {
483
+ children: [/* @__PURE__ */ i(ve, {
484
484
  type: "number",
485
485
  domain: [0, 100],
486
486
  tick: !1,
487
487
  axisLine: !1
488
- }), /* @__PURE__ */ i(ve, {
488
+ }), /* @__PURE__ */ i(ye, {
489
489
  dataKey: "value",
490
490
  cornerRadius: 5,
491
491
  fill: t,
@@ -495,8 +495,8 @@ var I = {
495
495
  })
496
496
  })
497
497
  });
498
- }, $e = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
499
- let u = s !== void 0, [d, f] = e.useState(!1), p = u ? s : d, m = o !== void 0, h = r?.direction ?? "up", g = h === "up" ? ae : ie, _ = () => {
498
+ }, et = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
499
+ let u = s !== void 0, [d, f] = e.useState(!1), p = u ? s : d, m = o !== void 0, h = r?.direction ?? "up", g = h === "up" ? oe : ae, _ = () => {
500
500
  let e = !p;
501
501
  c?.(e), u || f(e);
502
502
  }, [b, x] = e.useState(!1), [S, C] = e.useState(0), w = e.useRef(!1);
@@ -504,53 +504,53 @@ var I = {
504
504
  if (p && !w.current) {
505
505
  x(!0);
506
506
  let e = 0, t = setInterval(() => {
507
- e += 1, C((e) => e + 1), e >= Je && (clearInterval(t), x(!1));
508
- }, Ye);
507
+ e += 1, C((e) => e + 1), e >= Ye && (clearInterval(t), x(!1));
508
+ }, Xe);
509
509
  return w.current = !0, () => clearInterval(t);
510
510
  }
511
511
  w.current = p;
512
512
  }, [p]);
513
- let T = e.useMemo(() => Xe(n.length), [n, S]), E = e.useMemo(() => r ? Xe(r.value.length) : "", [r?.value, S]), D = /* @__PURE__ */ a("div", {
514
- className: I.content,
513
+ let T = e.useMemo(() => Ze(n.length), [n, S]), E = e.useMemo(() => r ? Ze(r.value.length) : "", [r?.value, S]), D = /* @__PURE__ */ a("div", {
514
+ className: F.content,
515
515
  children: [
516
516
  /* @__PURE__ */ a("div", {
517
- className: I.labelRow,
517
+ className: F.labelRow,
518
518
  children: [/* @__PURE__ */ i("p", {
519
- className: I.label,
519
+ className: F.label,
520
520
  children: t
521
521
  }), /* @__PURE__ */ i("button", {
522
522
  type: "button",
523
- className: I.hideToggle,
523
+ className: F.hideToggle,
524
524
  "aria-label": p ? "Show balance" : "Hide balance",
525
525
  onClick: _,
526
526
  children: i(p ? y : v, {
527
527
  size: 16,
528
- strokeWidth: M(16)
528
+ strokeWidth: j(16)
529
529
  })
530
530
  })]
531
531
  }),
532
532
  /* @__PURE__ */ i("p", {
533
533
  className: [
534
- I.value,
535
- p ? I["value--hidden"] : "",
536
- b ? I["value--glitching"] : ""
534
+ F.value,
535
+ p ? F["value--hidden"] : "",
536
+ b ? F["value--glitching"] : ""
537
537
  ].filter(Boolean).join(" "),
538
538
  children: p ? T : n
539
539
  }),
540
540
  r && /* @__PURE__ */ a("div", {
541
- className: I.changeRow,
541
+ className: F.changeRow,
542
542
  children: [
543
543
  /* @__PURE__ */ i(g, {
544
544
  size: 24,
545
545
  strokeWidth: 1.5,
546
- className: h === "up" ? I.trendIcon__up : I.trendIcon__down
546
+ className: h === "up" ? F.trendIcon__up : F.trendIcon__down
547
547
  }),
548
548
  /* @__PURE__ */ i("span", {
549
- className: [h === "up" ? I.changeValue__up : I.changeValue__down, b ? I["value--glitching"] : ""].filter(Boolean).join(" "),
549
+ className: [h === "up" ? F.changeValue__up : F.changeValue__down, b ? F["value--glitching"] : ""].filter(Boolean).join(" "),
550
550
  children: p ? E : r.value
551
551
  }),
552
552
  /* @__PURE__ */ i("span", {
553
- className: I.changeLabel,
553
+ className: F.changeLabel,
554
554
  children: r.label ?? "this month"
555
555
  })
556
556
  ]
@@ -559,13 +559,13 @@ var I = {
559
559
  });
560
560
  return /* @__PURE__ */ a("div", {
561
561
  className: [
562
- I.balance,
563
- m ? I["balance--progress"] : "",
562
+ F.balance,
563
+ m ? F["balance--progress"] : "",
564
564
  l ?? ""
565
565
  ].filter(Boolean).join(" "),
566
- children: [m && /* @__PURE__ */ i(Qe, { progress: o }), D]
566
+ children: [m && /* @__PURE__ */ i($e, { progress: o }), D]
567
567
  });
568
- }, et = {
568
+ }, tt = {
569
569
  progress: "_progress_1qaz4_11",
570
570
  "progress--sm": "_progress--sm_1qaz4_20",
571
571
  "progress--md": "_progress--md_1qaz4_21",
@@ -573,7 +573,7 @@ var I = {
573
573
  progress__fill: "_progress__fill_1qaz4_25",
574
574
  "progress__fill--indeterminate": "_progress__fill--indeterminate_1qaz4_33",
575
575
  "progress-scan": "_progress-scan_1qaz4_1"
576
- }, tt = ({ value: e, size: t = "md", label: n = "Progress", className: r }) => {
576
+ }, nt = ({ value: e, size: t = "md", label: n = "Progress", className: r }) => {
577
577
  let a = e === void 0, o = Math.min(100, Math.max(0, e ?? 0));
578
578
  return /* @__PURE__ */ i("div", {
579
579
  role: "progressbar",
@@ -582,27 +582,27 @@ var I = {
582
582
  "aria-valuemin": 0,
583
583
  "aria-valuemax": 100,
584
584
  className: [
585
- et.progress,
586
- et[`progress--${t}`],
585
+ tt.progress,
586
+ tt[`progress--${t}`],
587
587
  r ?? ""
588
588
  ].filter(Boolean).join(" "),
589
589
  children: /* @__PURE__ */ i("div", {
590
- className: [et.progress__fill, a ? et["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
590
+ className: [tt.progress__fill, a ? tt["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
591
591
  style: a ? void 0 : { width: `${o}%` }
592
592
  })
593
593
  });
594
- }, nt = ["dark", "force-light"];
595
- function rt(e, r) {
594
+ }, rt = ["dark", "force-light"];
595
+ function it(e, r) {
596
596
  let [i, a] = n("");
597
597
  return t(() => {
598
598
  if (!r || typeof document > "u") return;
599
599
  let t = e.current;
600
600
  if (!t) return;
601
- let n = t.closest(nt.map((e) => `.${e}`).join(", ")), i = n ? nt.find((e) => n.classList.contains(e)) ?? "" : "";
601
+ let n = t.closest(rt.map((e) => `.${e}`).join(", ")), i = n ? rt.find((e) => n.classList.contains(e)) ?? "" : "";
602
602
  a(i);
603
603
  }, [e, r]), i;
604
604
  }
605
- function it(e, r) {
605
+ function at(e, r) {
606
606
  let [i, a] = n(void 0);
607
607
  return t(() => {
608
608
  if (!r || typeof document > "u") return;
@@ -610,7 +610,7 @@ function it(e, r) {
610
610
  t && a(t.closest("[data-surface]")?.getAttribute("data-surface") ?? void 0);
611
611
  }, [e, r]), i;
612
612
  }
613
- var L = {
613
+ var I = {
614
614
  liquid: "_liquid_13biw_6",
615
615
  regular: "_regular_13biw_6",
616
616
  clear: "_clear_13biw_14",
@@ -629,12 +629,12 @@ var L = {
629
629
  };
630
630
  //#endregion
631
631
  //#region src/lib/LiquidGlass.tsx
632
- function at() {
632
+ function ot() {
633
633
  return typeof navigator > "u" ? !1 : !!(navigator.userAgentData?.brands)?.some((e) => /Chromium/i.test(e.brand));
634
634
  }
635
- var ot = /* @__PURE__ */ new Map();
636
- function st(e) {
637
- let { w: t, h: n, radius: r, bezel: i, intensity: a, reach: o, lx: s, ly: c } = e, l = `${t}x${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`, u = ot.get(l);
635
+ var st = /* @__PURE__ */ new Map();
636
+ function ct(e) {
637
+ let { w: t, h: n, radius: r, bezel: i, intensity: a, reach: o, lx: s, ly: c } = e, l = `${t}x${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`, u = st.get(l);
638
638
  if (u) return u;
639
639
  let d = () => {
640
640
  let e = document.createElement("canvas");
@@ -674,9 +674,9 @@ function st(e) {
674
674
  map: f.toDataURL(),
675
675
  light: p.toDataURL()
676
676
  };
677
- return ot.set(l, T), T;
677
+ return st.set(l, T), T;
678
678
  }
679
- var ct = e.createContext(null), lt = e.forwardRef(({ src: t, position: n = "center", veil: r, style: a, children: o, ...s }, c) => {
679
+ var lt = e.createContext(null), ut = e.forwardRef(({ src: t, position: n = "center", veil: r, style: a, children: o, ...s }, c) => {
680
680
  let l = e.useRef(null), u = (e) => {
681
681
  l.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
682
682
  }, d = r ? `linear-gradient(${r}, ${r}), url("${t}")` : `url("${t}")`, f = r ? "100% 100%, cover" : "cover", p = e.useMemo(() => ({
@@ -703,27 +703,27 @@ var ct = e.createContext(null), lt = e.forwardRef(({ src: t, position: n = "cent
703
703
  backgroundRepeat: "no-repeat",
704
704
  ...a
705
705
  },
706
- children: /* @__PURE__ */ i(ct.Provider, {
706
+ children: /* @__PURE__ */ i(lt.Provider, {
707
707
  value: p,
708
708
  children: o
709
709
  })
710
710
  });
711
711
  });
712
- lt.displayName = "LiquidBackdrop";
713
- var ut = /* @__PURE__ */ new Set(), dt = 0, ft = 0, pt = () => {
712
+ ut.displayName = "LiquidBackdrop";
713
+ var dt = /* @__PURE__ */ new Set(), ft = 0, pt = 0, mt = () => {
714
714
  let e = !1;
715
- ut.forEach((t) => {
715
+ dt.forEach((t) => {
716
716
  t() && (e = !0);
717
- }), ft = e ? 0 : ft + 1, dt = ut.size && ft < 24 ? requestAnimationFrame(pt) : 0;
718
- }, mt = () => {
719
- ft = 0, !dt && ut.size && (dt = requestAnimationFrame(pt));
720
- }, ht = !1;
721
- function gt(e) {
722
- if (!ht && typeof window < "u") {
723
- ht = !0, window.addEventListener("scroll", mt, {
717
+ }), pt = e ? 0 : pt + 1, ft = dt.size && pt < 24 ? requestAnimationFrame(mt) : 0;
718
+ }, ht = () => {
719
+ pt = 0, !ft && dt.size && (ft = requestAnimationFrame(mt));
720
+ }, gt = !1;
721
+ function _t(e) {
722
+ if (!gt && typeof window < "u") {
723
+ gt = !0, window.addEventListener("scroll", ht, {
724
724
  capture: !0,
725
725
  passive: !0
726
- }), window.addEventListener("resize", mt);
726
+ }), window.addEventListener("resize", ht);
727
727
  for (let e of [
728
728
  "transitionrun",
729
729
  "transitionend",
@@ -731,29 +731,29 @@ function gt(e) {
731
731
  "animationend",
732
732
  "pointerdown",
733
733
  "pointerup"
734
- ]) document.addEventListener(e, mt, !0);
735
- new MutationObserver(mt).observe(document.documentElement, {
734
+ ]) document.addEventListener(e, ht, !0);
735
+ new MutationObserver(ht).observe(document.documentElement, {
736
736
  attributes: !0,
737
737
  attributeFilter: ["class", "data-theme"],
738
738
  subtree: !0
739
739
  });
740
740
  }
741
- return ut.add(e), e(), mt(), () => {
742
- ut.delete(e);
741
+ return dt.add(e), e(), ht(), () => {
742
+ dt.delete(e);
743
743
  };
744
744
  }
745
- function _t() {
746
- ut.forEach((e) => e()), mt();
745
+ function vt() {
746
+ dt.forEach((e) => e()), ht();
747
747
  }
748
- var vt = /* @__PURE__ */ new Map();
749
- function yt(e) {
750
- let t = vt.get(e);
748
+ var yt = /* @__PURE__ */ new Map();
749
+ function bt(e) {
750
+ let t = yt.get(e);
751
751
  return t || (t = new Promise((t, n) => {
752
752
  let r = new Image();
753
753
  r.decoding = "async", r.onload = () => t(r), r.onerror = n, r.src = e;
754
- }), vt.set(e, t)), t;
754
+ }), yt.set(e, t)), t;
755
755
  }
756
- function bt(e) {
756
+ function xt(e) {
757
757
  let t = {
758
758
  left: 0,
759
759
  top: 0,
@@ -763,12 +763,12 @@ function bt(e) {
763
763
  }, n = e.trim().split(/\s+/), r = (e) => e === void 0 ? .5 : e in t ? t[e] : e.endsWith("%") ? parseFloat(e) / 100 : .5;
764
764
  return n.length === 1 && (n[0] === "top" || n[0] === "bottom") ? [.5, r(n[0])] : [r(n[0]), r(n[1])];
765
765
  }
766
- var xt = 300 * 300, St = (e, t, n) => {
766
+ var St = 300 * 300, Ct = (e, t, n) => {
767
767
  let r = parseFloat(getComputedStyle(e).getPropertyValue(t));
768
768
  return Number.isFinite(r) ? r : n;
769
769
  };
770
- function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source: c = !0, bake: l = "auto" } = {}) {
771
- let u = `liquid-${e.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [d, f] = e.useState(null), p = n && o !== "off" && at(), m = e.useContext(ct), h = p && c && !!m, g = e.useRef(null);
770
+ function wt(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source: c = !0, bake: l = "auto" } = {}) {
771
+ let u = `liquid-${e.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [d, f] = e.useState(null), p = n && o !== "off" && ot(), m = e.useContext(lt), h = p && c && !!m, g = e.useRef(null);
772
772
  e.useEffect(() => {
773
773
  let e = t.current;
774
774
  if (!e || !p) {
@@ -778,7 +778,7 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
778
778
  let n = () => {
779
779
  let t = Math.round(e.offsetWidth), n = Math.round(e.offsetHeight);
780
780
  if (!t || !n) return;
781
- let r = parseFloat(getComputedStyle(e).borderTopLeftRadius) || 0, i = St(e, "--liquid-refraction", .8), a = Math.max(0, St(e, "--liquid-depth", 20)), o = St(e, "--liquid-dispersion", 0), s = Math.max(0, St(e, "--liquid-frost", 0)), c = Math.max(0, St(e, "--liquid-light-intensity", 0)), l = St(e, "--liquid-light-angle", -45) * Math.PI / 180, u = .8 * a, d = Math.max(1, Math.round(Math.min(u, Math.min(t, n) / 2))), p = u > 0 ? d / u : 0, m = {
781
+ let r = parseFloat(getComputedStyle(e).borderTopLeftRadius) || 0, i = Ct(e, "--liquid-refraction", .8), a = Math.max(0, Ct(e, "--liquid-depth", 20)), o = Ct(e, "--liquid-dispersion", 0), s = Math.max(0, Ct(e, "--liquid-frost", 0)), c = Math.max(0, Ct(e, "--liquid-light-intensity", 0)), l = Ct(e, "--liquid-light-angle", -45) * Math.PI / 180, u = .8 * a, d = Math.max(1, Math.round(Math.min(u, Math.min(t, n) / 2))), p = u > 0 ? d / u : 0, m = {
782
782
  w: t,
783
783
  h: n,
784
784
  radius: r,
@@ -795,9 +795,9 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
795
795
  };
796
796
  n();
797
797
  let r = 0, i = new ResizeObserver(() => {
798
- e.offsetWidth * e.offsetHeight > xt ? (window.clearTimeout(r), r = window.setTimeout(() => {
799
- n(), mt();
800
- }, 90)) : (n(), mt());
798
+ e.offsetWidth * e.offsetHeight > St ? (window.clearTimeout(r), r = window.setTimeout(() => {
799
+ n(), ht();
800
+ }, 90)) : (n(), ht());
801
801
  });
802
802
  return i.observe(e), () => {
803
803
  window.clearTimeout(r), i.disconnect();
@@ -807,16 +807,16 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
807
807
  p,
808
808
  s
809
809
  ]);
810
- let _ = d ? st(d) : null, v = e.useCallback((e) => {
810
+ let _ = d ? ct(d) : null, v = e.useCallback((e) => {
811
811
  let t = e.currentTarget, n = t.getBoundingClientRect();
812
812
  t.style.setProperty("--mx", `${e.clientX - n.left}px`), t.style.setProperty("--my", `${e.clientY - n.top}px`);
813
- }, []), y = p && !!d && !!_?.map, b = h && !!d && (l === "auto" ? d.w * d.h > xt : l), x = e.useRef(null), S = e.useRef(null), C = e.useRef(0);
813
+ }, []), y = p && !!d && !!_?.map, b = h && !!d && (l === "auto" ? d.w * d.h > St : l), x = e.useRef(null), S = e.useRef(null), C = e.useRef(0);
814
814
  e.useLayoutEffect(() => {
815
815
  let e = t.current;
816
816
  if (!h || !y || !e || !m || !d || !_) return;
817
817
  let n = "", r = 0, i = 0, a = 0, o = (e, t, n, r, i) => {
818
818
  let a = ++C.current;
819
- yt(m.src).then((o) => {
819
+ bt(m.src).then((o) => {
820
820
  let s = x.current, c = document.getElementById(`${u}-bake`);
821
821
  if (a !== C.current || !s || !c) return;
822
822
  let l = Math.min(2, window.devicePixelRatio || 1), f = Math.round(d.w * l), p = Math.round(d.h * l), h = document.createElement("canvas");
@@ -824,11 +824,11 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
824
824
  let g = h.getContext("2d"), _ = s.getContext("2d");
825
825
  if (!g || !_) return;
826
826
  g.scale(l, l), g.translate(e, t);
827
- let v = Math.max(n / o.naturalWidth, r / o.naturalHeight), y = o.naturalWidth * v, b = o.naturalHeight * v, [S, w] = bt(m.position);
827
+ let v = Math.max(n / o.naturalWidth, r / o.naturalHeight), y = o.naturalWidth * v, b = o.naturalHeight * v, [S, w] = xt(m.position);
828
828
  g.drawImage(o, (n - y) * S, (r - b) * w, y, b), i && i !== "rgba(0, 0, 0, 0)" && i !== "transparent" && (g.fillStyle = i, g.fillRect(0, 0, n, r)), s.width = f, s.height = p, _.filter = `url(#${u}-bake)`, _.drawImage(h, 0, 0), _.filter = "none";
829
829
  }).catch(() => {});
830
830
  };
831
- return gt(() => {
831
+ return _t(() => {
832
832
  let t = m.rootRef.current, s = g.current;
833
833
  if (!t || !b && !s || b && !x.current) return ++r < 120;
834
834
  let c = e.getBoundingClientRect(), l = t.getBoundingClientRect(), u = e.offsetWidth ? c.width / e.offsetWidth : 1, d = e.offsetHeight ? c.height / e.offsetHeight : 1, f = (l.left - c.left) / u, p = (l.top - c.top) / d, h = l.width / u, _ = l.height / d, v = "";
@@ -857,7 +857,7 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
857
857
  let t = Array(20).fill(0);
858
858
  return t[e * 5 + e] = 1, t[18] = 1, t.join(" ");
859
859
  }, T = y && d && _ ? /* @__PURE__ */ i("svg", {
860
- className: L.defs,
860
+ className: I.defs,
861
861
  width: "0",
862
862
  height: "0",
863
863
  "aria-hidden": "true",
@@ -938,7 +938,7 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
938
938
  }) : null, E = typeof window < "u" ? Math.min(2, window.devicePixelRatio || 1) : 1, D = b && d && _ ? (() => {
939
939
  let t = Math.round(d.w * E), n = Math.round(d.h * E);
940
940
  return /* @__PURE__ */ i("svg", {
941
- className: L.defs,
941
+ className: I.defs,
942
942
  width: "0",
943
943
  height: "0",
944
944
  "aria-hidden": "true",
@@ -1022,31 +1022,31 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
1022
1022
  filter: y && h && m ? b ? /* @__PURE__ */ a(r, { children: [
1023
1023
  D,
1024
1024
  /* @__PURE__ */ a("span", {
1025
- className: L.sourceClip,
1025
+ className: I.sourceClip,
1026
1026
  "aria-hidden": "true",
1027
1027
  children: [/* @__PURE__ */ i("canvas", {
1028
1028
  ref: x,
1029
- className: L.sourceCanvas
1029
+ className: I.sourceCanvas
1030
1030
  }), /* @__PURE__ */ i("span", {
1031
1031
  ref: S,
1032
- className: L.probe
1032
+ className: I.probe
1033
1033
  })]
1034
1034
  }),
1035
1035
  /* @__PURE__ */ i("span", {
1036
- className: L.fill,
1036
+ className: I.fill,
1037
1037
  "aria-hidden": "true"
1038
1038
  })
1039
1039
  ] }) : /* @__PURE__ */ a(r, { children: [
1040
1040
  T,
1041
1041
  /* @__PURE__ */ i("span", {
1042
- className: L.sourceClip,
1042
+ className: I.sourceClip,
1043
1043
  "aria-hidden": "true",
1044
1044
  children: /* @__PURE__ */ i("span", {
1045
- className: L.source,
1045
+ className: I.source,
1046
1046
  style: { filter: `url(#${u})` },
1047
1047
  children: /* @__PURE__ */ i("span", {
1048
1048
  ref: g,
1049
- className: L.sourceImage,
1049
+ className: I.sourceImage,
1050
1050
  style: {
1051
1051
  backgroundImage: m.image,
1052
1052
  backgroundSize: m.size,
@@ -1056,7 +1056,7 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
1056
1056
  })
1057
1057
  }),
1058
1058
  /* @__PURE__ */ i("span", {
1059
- className: L.fill,
1059
+ className: I.fill,
1060
1060
  "aria-hidden": "true"
1061
1061
  })
1062
1062
  ] }) : T,
@@ -1069,14 +1069,14 @@ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source:
1069
1069
  }
1070
1070
  };
1071
1071
  }
1072
- var wt = (e) => {
1072
+ var Tt = (e) => {
1073
1073
  if (!e) return {};
1074
1074
  let t = {};
1075
1075
  return e.refraction !== void 0 && (t["--liquid-refraction"] = e.refraction), e.depth !== void 0 && (t["--liquid-depth"] = e.depth), e.dispersion !== void 0 && (t["--liquid-dispersion"] = e.dispersion), e.frost !== void 0 && (t["--liquid-frost"] = e.frost), e.lightIntensity !== void 0 && (t["--liquid-light-intensity"] = e.lightIntensity), e.lightAngle !== void 0 && (t["--liquid-light-angle"] = e.lightAngle), t;
1076
- }, Tt = e.forwardRef(({ variant: t = "regular", tint: n = "auto", radius: r = 20, refraction: i = "auto", effect: o, source: s = !0, bake: c = "auto", interactive: l, className: u, style: d, children: f, onPointerMove: p, ...m }, h) => {
1076
+ }, Et = e.forwardRef(({ variant: t = "regular", tint: n = "auto", radius: r = 20, refraction: i = "auto", effect: o, source: s = !0, bake: c = "auto", interactive: l, className: u, style: d, children: f, onPointerMove: p, ...m }, h) => {
1077
1077
  let g = e.useRef(null), _ = (e) => {
1078
1078
  g.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
1079
- }, v = Ct(g, {
1079
+ }, v = wt(g, {
1080
1080
  refraction: i,
1081
1081
  source: s,
1082
1082
  bake: c,
@@ -1087,15 +1087,15 @@ var wt = (e) => {
1087
1087
  ...m,
1088
1088
  ...v.props,
1089
1089
  className: [
1090
- L.liquid,
1091
- L[t],
1092
- n === "auto" ? "" : L[`tint-${n}`],
1093
- l ? L.interactive : "",
1090
+ I.liquid,
1091
+ I[t],
1092
+ n === "auto" ? "" : I[`tint-${n}`],
1093
+ l ? I.interactive : "",
1094
1094
  u ?? ""
1095
1095
  ].filter(Boolean).join(" "),
1096
1096
  style: {
1097
1097
  borderRadius: r,
1098
- ...wt(o),
1098
+ ...Tt(o),
1099
1099
  ...v.props.style,
1100
1100
  ...d
1101
1101
  },
@@ -1105,30 +1105,30 @@ var wt = (e) => {
1105
1105
  children: [v.filter, f]
1106
1106
  });
1107
1107
  });
1108
- Tt.displayName = "LiquidGlass";
1109
- var Et = (e = "regular", t = "auto") => [
1110
- L.liquid,
1111
- L[e],
1112
- t === "auto" ? "" : L[`tint-${t}`]
1113
- ].filter(Boolean).join(" "), Dt = {
1108
+ Et.displayName = "LiquidGlass";
1109
+ var Dt = (e = "regular", t = "auto") => [
1110
+ I.liquid,
1111
+ I[e],
1112
+ t === "auto" ? "" : I[`tint-${t}`]
1113
+ ].filter(Boolean).join(" "), Ot = {
1114
1114
  "divider--horizontal": "_divider--horizontal_nem37_4",
1115
1115
  "divider--labeled": "_divider--labeled_nem37_13",
1116
1116
  "divider--vertical": "_divider--vertical_nem37_27",
1117
1117
  divider__label: "_divider__label_nem37_38"
1118
- }, Ot = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
1118
+ }, kt = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
1119
1119
  role: "separator",
1120
1120
  "aria-orientation": e,
1121
1121
  className: [
1122
- Dt.divider,
1123
- Dt[`divider--${e}`],
1124
- t ? Dt["divider--labeled"] : "",
1122
+ Ot.divider,
1123
+ Ot[`divider--${e}`],
1124
+ t ? Ot["divider--labeled"] : "",
1125
1125
  n ?? ""
1126
1126
  ].filter(Boolean).join(" "),
1127
1127
  children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
1128
- className: Dt.divider__label,
1128
+ className: Ot.divider__label,
1129
1129
  children: t
1130
1130
  })
1131
- }), R = {
1131
+ }), L = {
1132
1132
  backdrop: "_backdrop_13dud_1",
1133
1133
  card: "_card_13dud_12",
1134
1134
  header: "_header_13dud_34",
@@ -1147,18 +1147,18 @@ 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: t, onClose: n, title: o, description: s, variant: c = "default", icon: l, cancelLabel: u = "Cancel", confirmLabel: d, onCancel: f, onConfirm: p, confirmLoading: m, closeOnEscape: h = !0, closeOnBackdropClick: g = !0, children: _, hideHeader: v = !1, hideFooterDivider: y = !1, footerJustify: b = "end", className: x }) => {
1151
- let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = rt(T, t), D = it(T, t), O = D === "liquid", k = Ct(C, {
1150
+ }, At = ({ open: t, onClose: n, title: o, description: s, variant: c = "default", icon: l, cancelLabel: u = "Cancel", confirmLabel: d, onCancel: f, onConfirm: p, confirmLoading: m, closeOnEscape: h = !0, closeOnBackdropClick: g = !0, children: _, hideHeader: v = !1, hideFooterDivider: y = !1, footerJustify: b = "end", className: x }) => {
1151
+ let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = it(T, t), D = at(T, t), O = D === "liquid", ee = wt(C, {
1152
1152
  enabled: O,
1153
1153
  source: !1
1154
- }), [A, j] = e.useState(!1);
1154
+ }), [k, A] = e.useState(!1);
1155
1155
  e.useEffect(() => {
1156
- t && j(!0);
1156
+ t && A(!0);
1157
1157
  }, [t]), e.useEffect(() => {
1158
- if (t || !A) return;
1159
- let e = setTimeout(() => j(!1), 240);
1158
+ if (t || !k) return;
1159
+ let e = setTimeout(() => A(!1), 240);
1160
1160
  return () => clearTimeout(e);
1161
- }, [t, A]), e.useEffect(() => {
1161
+ }, [t, k]), e.useEffect(() => {
1162
1162
  if (!t) return;
1163
1163
  let e = (e) => {
1164
1164
  if (h && e.key === "Escape") {
@@ -1184,16 +1184,16 @@ var Et = (e = "regular", t = "auto") => [
1184
1184
  document.body.style.overflow = e, w.current?.focus();
1185
1185
  };
1186
1186
  }, [t]);
1187
- let ee = () => (f ?? n)();
1187
+ let te = () => (f ?? n)();
1188
1188
  return /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
1189
1189
  ref: T,
1190
1190
  style: { display: "none" },
1191
1191
  "aria-hidden": "true"
1192
- }), A && Ee(/* @__PURE__ */ i("div", {
1192
+ }), k && De(/* @__PURE__ */ i("div", {
1193
1193
  className: [
1194
- R.backdrop,
1194
+ L.backdrop,
1195
1195
  E,
1196
- t ? R["backdrop--entering"] : R["backdrop--exiting"]
1196
+ t ? L["backdrop--entering"] : L["backdrop--exiting"]
1197
1197
  ].filter(Boolean).join(" "),
1198
1198
  "data-surface": D,
1199
1199
  onMouseDown: (e) => {
@@ -1207,36 +1207,36 @@ var Et = (e = "regular", t = "auto") => [
1207
1207
  "aria-label": v ? o : void 0,
1208
1208
  tabIndex: -1,
1209
1209
  className: [
1210
- R.card,
1211
- O ? Et("regular") : "",
1212
- t ? R["card--entering"] : R["card--exiting"],
1210
+ L.card,
1211
+ O ? Dt("regular") : "",
1212
+ t ? L["card--entering"] : L["card--exiting"],
1213
1213
  x ?? ""
1214
1214
  ].filter(Boolean).join(" "),
1215
- ...O ? k.props : {},
1215
+ ...O ? ee.props : {},
1216
1216
  onAnimationEnd: (e) => {
1217
- e.target === e.currentTarget && !t && j(!1);
1217
+ e.target === e.currentTarget && !t && A(!1);
1218
1218
  },
1219
1219
  children: [
1220
- O && k.filter,
1220
+ O && ee.filter,
1221
1221
  !v && /* @__PURE__ */ a("div", {
1222
- className: R.header,
1222
+ className: L.header,
1223
1223
  children: [/* @__PURE__ */ a("div", {
1224
- className: R.titleGroup,
1224
+ className: L.titleGroup,
1225
1225
  children: [S && /* @__PURE__ */ i("span", {
1226
- className: R.iconWrap,
1226
+ className: L.iconWrap,
1227
1227
  "aria-hidden": "true",
1228
- children: l ?? /* @__PURE__ */ i(oe, {
1228
+ children: l ?? /* @__PURE__ */ i(se, {
1229
1229
  size: 24,
1230
- strokeWidth: M(24),
1231
- className: R.icon
1230
+ strokeWidth: j(24),
1231
+ className: L.icon
1232
1232
  })
1233
1233
  }), /* @__PURE__ */ i("p", {
1234
1234
  id: "modal-title",
1235
- className: R.title,
1235
+ className: L.title,
1236
1236
  children: o
1237
1237
  })]
1238
- }), /* @__PURE__ */ i(He, {
1239
- icon: se,
1238
+ }), /* @__PURE__ */ i(Ue, {
1239
+ icon: ce,
1240
1240
  variant: "ghost",
1241
1241
  size: "lg",
1242
1242
  "aria-label": "Close",
@@ -1244,19 +1244,19 @@ var Et = (e = "regular", t = "auto") => [
1244
1244
  })]
1245
1245
  }),
1246
1246
  s && /* @__PURE__ */ i("p", {
1247
- className: R.description,
1247
+ className: L.description,
1248
1248
  children: s
1249
1249
  }),
1250
1250
  _,
1251
- !y && /* @__PURE__ */ i(Ot, {}),
1251
+ !y && /* @__PURE__ */ i(kt, {}),
1252
1252
  /* @__PURE__ */ a("div", {
1253
- className: [R.footer, b === "between" ? R["footer--between"] : ""].filter(Boolean).join(" "),
1254
- children: [/* @__PURE__ */ i(P, {
1253
+ className: [L.footer, b === "between" ? L["footer--between"] : ""].filter(Boolean).join(" "),
1254
+ children: [/* @__PURE__ */ i(N, {
1255
1255
  variant: "secondary",
1256
- onClick: ee,
1256
+ onClick: te,
1257
1257
  style: { borderColor: "transparent" },
1258
1258
  children: u
1259
- }), /* @__PURE__ */ i(P, {
1259
+ }), /* @__PURE__ */ i(N, {
1260
1260
  variant: S ? "destructive" : "primary",
1261
1261
  onClick: p,
1262
1262
  loading: m,
@@ -1266,7 +1266,7 @@ var Et = (e = "regular", t = "auto") => [
1266
1266
  ]
1267
1267
  })
1268
1268
  }), document.body)] });
1269
- }, z = {
1269
+ }, R = {
1270
1270
  row: "_row_88l3n_2",
1271
1271
  "row--unread": "_row--unread_88l3n_12",
1272
1272
  iconWrapSurface: "_iconWrapSurface_88l3n_17",
@@ -1280,33 +1280,33 @@ 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: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
1283
+ }, jt = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
1284
1284
  let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
1285
1285
  size: 24,
1286
- strokeWidth: M(24)
1286
+ strokeWidth: j(24)
1287
1287
  });
1288
1288
  return p ? /* @__PURE__ */ a("div", {
1289
- className: [z.card, f ?? ""].filter(Boolean).join(" "),
1289
+ className: [R.card, f ?? ""].filter(Boolean).join(" "),
1290
1290
  children: [/* @__PURE__ */ a("div", {
1291
- className: z.cardTop,
1291
+ className: R.cardTop,
1292
1292
  children: [
1293
1293
  /* @__PURE__ */ i("span", {
1294
- className: z.iconWrapCanvas,
1294
+ className: R.iconWrapCanvas,
1295
1295
  "aria-hidden": "true",
1296
1296
  children: h
1297
1297
  }),
1298
1298
  /* @__PURE__ */ a("div", {
1299
- className: z.content,
1299
+ className: R.content,
1300
1300
  children: [/* @__PURE__ */ i("p", {
1301
- className: z.titleBold,
1301
+ className: R.titleBold,
1302
1302
  children: t
1303
1303
  }), /* @__PURE__ */ i("p", {
1304
- className: z.description,
1304
+ className: R.description,
1305
1305
  children: s
1306
1306
  })]
1307
1307
  }),
1308
- c && /* @__PURE__ */ i(He, {
1309
- icon: se,
1308
+ c && /* @__PURE__ */ i(Ue, {
1309
+ icon: ce,
1310
1310
  variant: "ghost",
1311
1311
  size: "sm",
1312
1312
  "aria-label": "Close",
@@ -1314,13 +1314,13 @@ var Et = (e = "regular", t = "auto") => [
1314
1314
  })
1315
1315
  ]
1316
1316
  }), /* @__PURE__ */ a("div", {
1317
- className: z.actions,
1318
- children: [c && /* @__PURE__ */ i(P, {
1317
+ className: R.actions,
1318
+ children: [c && /* @__PURE__ */ i(N, {
1319
1319
  variant: "ghost",
1320
1320
  size: "sm",
1321
1321
  onClick: c,
1322
1322
  children: l
1323
- }), u && /* @__PURE__ */ i(P, {
1323
+ }), u && /* @__PURE__ */ i(N, {
1324
1324
  variant: "secondary",
1325
1325
  size: "sm",
1326
1326
  onClick: d,
@@ -1329,51 +1329,51 @@ var Et = (e = "regular", t = "auto") => [
1329
1329
  })]
1330
1330
  })]
1331
1331
  }) : /* @__PURE__ */ a("div", {
1332
- className: [z.row, m ? z["row--unread"] : ""].filter(Boolean).join(" "),
1332
+ className: [R.row, m ? R["row--unread"] : ""].filter(Boolean).join(" "),
1333
1333
  children: [
1334
1334
  /* @__PURE__ */ i("span", {
1335
- className: z.iconWrapSurface,
1335
+ className: R.iconWrapSurface,
1336
1336
  "aria-hidden": "true",
1337
1337
  children: h
1338
1338
  }),
1339
1339
  /* @__PURE__ */ a("div", {
1340
- className: z.content,
1340
+ className: R.content,
1341
1341
  children: [/* @__PURE__ */ i("p", {
1342
- className: m ? z.titleBold : z.titleMuted,
1342
+ className: m ? R.titleBold : R.titleMuted,
1343
1343
  children: t
1344
1344
  }), n && /* @__PURE__ */ i("p", {
1345
- className: z.timestamp,
1345
+ className: R.timestamp,
1346
1346
  children: n
1347
1347
  })]
1348
1348
  }),
1349
1349
  m && /* @__PURE__ */ i("span", {
1350
- className: z.dot,
1350
+ className: R.dot,
1351
1351
  "aria-hidden": "true"
1352
1352
  })
1353
1353
  ]
1354
1354
  });
1355
- }, jt = {
1355
+ }, Mt = {
1356
1356
  stat: "_stat_krs8c_1",
1357
1357
  labelRow: "_labelRow_krs8c_10",
1358
1358
  label: "_label_krs8c_10",
1359
1359
  value: "_value_krs8c_27"
1360
- }, Mt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
1361
- className: [jt.stat, r ?? ""].filter(Boolean).join(" "),
1360
+ }, Nt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
1361
+ className: [Mt.stat, r ?? ""].filter(Boolean).join(" "),
1362
1362
  children: [/* @__PURE__ */ a("div", {
1363
- className: jt.labelRow,
1363
+ className: Mt.labelRow,
1364
1364
  children: [/* @__PURE__ */ i("p", {
1365
- className: jt.label,
1365
+ className: Mt.label,
1366
1366
  children: e
1367
1367
  }), /* @__PURE__ */ i("p", {
1368
- className: jt.value,
1368
+ className: Mt.value,
1369
1369
  children: t
1370
1370
  })]
1371
- }), /* @__PURE__ */ i(tt, {
1371
+ }), /* @__PURE__ */ i(nt, {
1372
1372
  value: n,
1373
1373
  size: "lg",
1374
1374
  label: e
1375
1375
  })]
1376
- }), Nt = {
1376
+ }), Pt = {
1377
1377
  balance: "_balance_5gcu5_1",
1378
1378
  label: "_label_5gcu5_10",
1379
1379
  amountRow: "_amountRow_5gcu5_19",
@@ -1383,25 +1383,25 @@ var Et = (e = "regular", t = "auto") => [
1383
1383
  fill: "_fill_5gcu5_50",
1384
1384
  "fill--over": "_fill--over_5gcu5_57",
1385
1385
  footer: "_footer_5gcu5_61"
1386
- }, Pt = (e) => e.toLocaleString("en-US", {
1386
+ }, Ft = (e) => e.toLocaleString("en-US", {
1387
1387
  style: "currency",
1388
1388
  currency: "USD"
1389
- }), Ft = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Pt, className: o }) => {
1389
+ }), It = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Ft, className: o }) => {
1390
1390
  let s = t > n, c = s ? 100 : n > 0 ? t / n * 100 : 0, l = s ? `${r(t - n)} over your limit` : `${r(n - t)} remaining`;
1391
1391
  return /* @__PURE__ */ a("div", {
1392
- className: [Nt.balance, o ?? ""].filter(Boolean).join(" "),
1392
+ className: [Pt.balance, o ?? ""].filter(Boolean).join(" "),
1393
1393
  children: [
1394
1394
  /* @__PURE__ */ i("p", {
1395
- className: Nt.label,
1395
+ className: Pt.label,
1396
1396
  children: e
1397
1397
  }),
1398
1398
  /* @__PURE__ */ a("div", {
1399
- className: Nt.amountRow,
1399
+ className: Pt.amountRow,
1400
1400
  children: [/* @__PURE__ */ i("p", {
1401
- className: Nt.amount,
1401
+ className: Pt.amount,
1402
1402
  children: r(t)
1403
1403
  }), /* @__PURE__ */ a("p", {
1404
- className: Nt.limit,
1404
+ className: Pt.limit,
1405
1405
  children: [
1406
1406
  "of ",
1407
1407
  r(n),
@@ -1410,19 +1410,19 @@ var Et = (e = "regular", t = "auto") => [
1410
1410
  })]
1411
1411
  }),
1412
1412
  /* @__PURE__ */ i("div", {
1413
- className: Nt.track,
1413
+ className: Pt.track,
1414
1414
  role: "progressbar",
1415
1415
  "aria-label": e,
1416
1416
  "aria-valuenow": Math.round(c),
1417
1417
  "aria-valuemin": 0,
1418
1418
  "aria-valuemax": 100,
1419
1419
  children: /* @__PURE__ */ i("div", {
1420
- className: [Nt.fill, s ? Nt["fill--over"] : ""].filter(Boolean).join(" "),
1420
+ className: [Pt.fill, s ? Pt["fill--over"] : ""].filter(Boolean).join(" "),
1421
1421
  style: { width: `${c}%` }
1422
1422
  })
1423
1423
  }),
1424
1424
  /* @__PURE__ */ i("p", {
1425
- className: Nt.footer,
1425
+ className: Pt.footer,
1426
1426
  children: l
1427
1427
  })
1428
1428
  ]
@@ -1430,7 +1430,7 @@ var Et = (e = "regular", t = "auto") => [
1430
1430
  };
1431
1431
  //#endregion
1432
1432
  //#region src/lib/useChartTokens.ts
1433
- function It(e) {
1433
+ function Lt(e) {
1434
1434
  let [, r] = n(0);
1435
1435
  return t(() => {
1436
1436
  if (typeof document > "u") return;
@@ -1449,81 +1449,81 @@ function It(e) {
1449
1449
  }
1450
1450
  //#endregion
1451
1451
  //#region src/lib/chartPalette.ts
1452
- var Lt = [
1452
+ var Rt = [
1453
1453
  "#ff4700",
1454
1454
  "#5b92dd",
1455
1455
  "#47a8a2",
1456
1456
  "#9179d6",
1457
1457
  "#dca84f",
1458
1458
  "#12b76a"
1459
- ], Rt = {
1459
+ ], zt = {
1460
1460
  tooltip: "_tooltip_ic16u_3",
1461
1461
  title: "_title_ic16u_23",
1462
1462
  row: "_row_ic16u_27",
1463
1463
  dot: "_dot_ic16u_34",
1464
1464
  label: "_label_ic16u_41",
1465
1465
  value: "_value_ic16u_42"
1466
- }, zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
1467
- className: Rt.tooltip,
1466
+ }, Bt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
1467
+ className: zt.tooltip,
1468
1468
  children: [n !== void 0 && n !== "" && /* @__PURE__ */ i("span", {
1469
- className: Rt.title,
1469
+ className: zt.title,
1470
1470
  children: n
1471
1471
  }), t.map((e, t) => /* @__PURE__ */ a("div", {
1472
- className: Rt.row,
1472
+ className: zt.row,
1473
1473
  children: [
1474
1474
  /* @__PURE__ */ i("span", {
1475
- className: Rt.dot,
1475
+ className: zt.dot,
1476
1476
  style: { background: e.color ?? e.payload?.fill ?? e.fill }
1477
1477
  }),
1478
1478
  /* @__PURE__ */ i("span", {
1479
- className: Rt.label,
1479
+ className: zt.label,
1480
1480
  children: e.name
1481
1481
  }),
1482
1482
  /* @__PURE__ */ i("span", {
1483
- className: Rt.value,
1483
+ className: zt.value,
1484
1484
  children: r ? r(e.value, e.name) : e.value
1485
1485
  })
1486
1486
  ]
1487
1487
  }, t))]
1488
- }), Bt = {
1488
+ }), Vt = {
1489
1489
  chart: "_chart_1s6lv_2",
1490
1490
  legend: "_legend_1s6lv_31",
1491
1491
  legendItem: "_legendItem_1s6lv_41",
1492
1492
  legendSwatch: "_legendSwatch_1s6lv_46"
1493
- }, Vt = {
1493
+ }, Ht = {
1494
1494
  sm: 180,
1495
1495
  md: 240,
1496
1496
  lg: 320,
1497
1497
  xl: 420
1498
- }, B = 6, Ht = (e) => {
1498
+ }, z = 6, Ut = (e) => {
1499
1499
  if (e <= 0) return 1;
1500
1500
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
1501
1501
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
1502
- }, Ut = ({ data: t, variant: n = "default", size: o = "md", seriesLabels: s = ["Value", "Value 2"], className: c }) => {
1503
- let [l, u] = e.useState(null), [d, f] = e.useState(null), p = e.useRef(null), m = It(p), h = m("--color-chart-2") ?? "#5b92dd", g = m("--color-chart-5") ?? "#dca84f", _ = m("--color-chart-1") ?? "#ff4700", v = [
1502
+ }, Wt = ({ data: t, variant: n = "default", size: o = "md", seriesLabels: s = ["Value", "Value 2"], className: c }) => {
1503
+ let [l, u] = e.useState(null), [d, f] = e.useState(null), p = e.useRef(null), m = Lt(p), h = m("--color-chart-2") ?? "#5b92dd", g = m("--color-chart-5") ?? "#dca84f", _ = m("--color-chart-1") ?? "#ff4700", v = [
1504
1504
  1,
1505
1505
  2,
1506
1506
  3,
1507
1507
  4,
1508
1508
  5,
1509
1509
  6
1510
- ].map((e) => m(`--color-chart-${e}`) ?? Lt[e - 1]), y = m("--color-border-subtle") ?? "#e7e5e1", b = m("--color-fg-muted") ?? "#78716a", x = n === "multiple" || n === "stacked", S = x && t.some((e) => e.value2 !== void 0), C = m("--color-bg-canvas") ?? "#fafaf9", w = Ht(Math.max(1, ...t.map((e) => Math.abs(e.value)))), T = [
1510
+ ].map((e) => m(`--color-chart-${e}`) ?? Rt[e - 1]), y = m("--color-border-subtle") ?? "#e7e5e1", b = m("--color-fg-muted") ?? "#78716a", x = n === "multiple" || n === "stacked", S = x && t.some((e) => e.value2 !== void 0), C = m("--color-bg-canvas") ?? "#fafaf9", w = Ut(Math.max(1, ...t.map((e) => Math.abs(e.value)))), T = [
1511
1511
  -w,
1512
1512
  -w / 2,
1513
1513
  0,
1514
1514
  w / 2,
1515
1515
  w
1516
- ], E = /* @__PURE__ */ i(Se, {
1516
+ ], E = /* @__PURE__ */ i(Ce, {
1517
1517
  cursor: !1,
1518
- content: /* @__PURE__ */ i(zt, {}),
1518
+ content: /* @__PURE__ */ i(Bt, {}),
1519
1519
  wrapperStyle: { zIndex: 50 },
1520
1520
  position: d ? { y: d.y } : void 0
1521
- }), D = (e) => n === "active" ? v[e % v.length] : n === "negative" && t[e].value < 0 ? _ : h, O = (e) => l !== null && e !== l ? .45 : 1, k = (e, t, n, r, i, a) => ({
1521
+ }), D = (e) => n === "active" ? v[e % v.length] : n === "negative" && t[e].value < 0 ? _ : h, O = (e) => l !== null && e !== l ? .45 : 1, ee = (e, t, n, r, i, a) => ({
1522
1522
  x: e ? t + r : t + r / 2,
1523
1523
  y: e ? n + i / 2 : a < 0 ? n + i : n
1524
- }), A = (e) => (r) => {
1525
- let { x: o, y: s, width: c, height: l, fill: u, radius: d } = r, f = Number(t[r.index]?.[e] ?? 0), { x: p, y: m } = k(n === "horizontal", o, s, c, l, f);
1526
- return n === "stacked" && e === "value" ? /* @__PURE__ */ i(be, {
1524
+ }), k = (e) => (r) => {
1525
+ let { x: o, y: s, width: c, height: l, fill: u, radius: d } = r, f = Number(t[r.index]?.[e] ?? 0), { x: p, y: m } = ee(n === "horizontal", o, s, c, l, f);
1526
+ return n === "stacked" && e === "value" ? /* @__PURE__ */ i(xe, {
1527
1527
  x: o,
1528
1528
  y: s,
1529
1529
  width: c,
@@ -1531,7 +1531,7 @@ var Lt = [
1531
1531
  fill: u,
1532
1532
  radius: d
1533
1533
  }) : /* @__PURE__ */ a("g", { children: [
1534
- /* @__PURE__ */ i(be, {
1534
+ /* @__PURE__ */ i(xe, {
1535
1535
  x: o,
1536
1536
  y: s,
1537
1537
  width: c,
@@ -1556,20 +1556,20 @@ var Lt = [
1556
1556
  strokeWidth: 1.5
1557
1557
  })
1558
1558
  ] });
1559
- }, j = (e) => (r, i) => {
1559
+ }, A = (e) => (r, i) => {
1560
1560
  u(i);
1561
1561
  let a = Number(t[i]?.[e] ?? 0);
1562
- f(k(n === "horizontal", r.x, r.y, r.width, r.height, a));
1563
- }, ee = () => {
1562
+ f(ee(n === "horizontal", r.x, r.y, r.width, r.height, a));
1563
+ }, te = () => {
1564
1564
  u(null), f(null);
1565
1565
  };
1566
1566
  return /* @__PURE__ */ i("div", {
1567
1567
  ref: p,
1568
- className: [Bt.chart, c ?? ""].filter(Boolean).join(" "),
1569
- children: /* @__PURE__ */ i(xe, {
1568
+ className: [Vt.chart, c ?? ""].filter(Boolean).join(" "),
1569
+ children: /* @__PURE__ */ i(Se, {
1570
1570
  width: "100%",
1571
- height: Vt[o],
1572
- children: /* @__PURE__ */ a(le, {
1571
+ height: Ht[o],
1572
+ children: /* @__PURE__ */ a(ue, {
1573
1573
  data: t,
1574
1574
  layout: n === "horizontal" ? "vertical" : "horizontal",
1575
1575
  margin: {
@@ -1579,19 +1579,19 @@ var Lt = [
1579
1579
  left: n === "horizontal" ? 8 : 0
1580
1580
  },
1581
1581
  children: [
1582
- /* @__PURE__ */ i(ue, {
1582
+ /* @__PURE__ */ i(de, {
1583
1583
  strokeDasharray: "3 3",
1584
1584
  stroke: y,
1585
1585
  horizontal: !0,
1586
1586
  vertical: n === "horizontal"
1587
1587
  }),
1588
- n === "horizontal" ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(Ce, {
1588
+ n === "horizontal" ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(we, {
1589
1589
  type: "number",
1590
1590
  stroke: b,
1591
1591
  fontSize: 12,
1592
1592
  tickLine: !1,
1593
1593
  axisLine: !1
1594
- }), /* @__PURE__ */ i(we, {
1594
+ }), /* @__PURE__ */ i(Te, {
1595
1595
  type: "category",
1596
1596
  dataKey: "label",
1597
1597
  stroke: b,
@@ -1599,7 +1599,7 @@ var Lt = [
1599
1599
  tickLine: !1,
1600
1600
  axisLine: !1,
1601
1601
  width: 64
1602
- })] }) : /* @__PURE__ */ i(Ce, {
1602
+ })] }) : /* @__PURE__ */ i(we, {
1603
1603
  dataKey: "label",
1604
1604
  stroke: b,
1605
1605
  fontSize: 12,
@@ -1607,18 +1607,18 @@ var Lt = [
1607
1607
  axisLine: !1,
1608
1608
  interval: 0
1609
1609
  }),
1610
- n === "negative" && /* @__PURE__ */ i(we, {
1610
+ n === "negative" && /* @__PURE__ */ i(Te, {
1611
1611
  hide: !0,
1612
1612
  domain: [-w, w],
1613
1613
  ticks: T
1614
1614
  }),
1615
1615
  E,
1616
- x && /* @__PURE__ */ i(fe, { content: (e) => /* @__PURE__ */ i("ul", {
1617
- className: Bt.legend,
1616
+ x && /* @__PURE__ */ i(pe, { content: (e) => /* @__PURE__ */ i("ul", {
1617
+ className: Vt.legend,
1618
1618
  children: e.payload?.map((e) => /* @__PURE__ */ a("li", {
1619
- className: Bt.legendItem,
1619
+ className: Vt.legendItem,
1620
1620
  children: [/* @__PURE__ */ i("span", {
1621
- className: Bt.legendSwatch,
1621
+ className: Vt.legendSwatch,
1622
1622
  style: { background: e.color }
1623
1623
  }), /* @__PURE__ */ i("span", {
1624
1624
  style: { color: e.color },
@@ -1626,7 +1626,7 @@ var Lt = [
1626
1626
  })]
1627
1627
  }, e.value))
1628
1628
  }) }),
1629
- x ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(ce, {
1629
+ x ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i(le, {
1630
1630
  dataKey: "value",
1631
1631
  name: s[0] ?? "Value",
1632
1632
  fill: h,
@@ -1634,61 +1634,61 @@ var Lt = [
1634
1634
  radius: n === "stacked" ? [
1635
1635
  0,
1636
1636
  0,
1637
- B,
1638
- B
1637
+ z,
1638
+ z
1639
1639
  ] : [
1640
- B,
1641
- B,
1642
- B,
1643
- B
1640
+ z,
1641
+ z,
1642
+ z,
1643
+ z
1644
1644
  ],
1645
1645
  isAnimationActive: !1,
1646
- activeBar: A("value"),
1647
- onMouseEnter: j("value"),
1648
- onMouseLeave: ee,
1649
- children: t.map((e, t) => /* @__PURE__ */ i(de, {
1646
+ activeBar: k("value"),
1647
+ onMouseEnter: A("value"),
1648
+ onMouseLeave: te,
1649
+ children: t.map((e, t) => /* @__PURE__ */ i(fe, {
1650
1650
  fill: h,
1651
1651
  fillOpacity: l !== null && t !== l ? .45 : 1
1652
1652
  }, t))
1653
- }), S && /* @__PURE__ */ i(ce, {
1653
+ }), S && /* @__PURE__ */ i(le, {
1654
1654
  dataKey: "value2",
1655
1655
  name: s[1] ?? "Value 2",
1656
1656
  fill: g,
1657
1657
  stackId: n === "stacked" ? "stack" : void 0,
1658
1658
  radius: n === "stacked" ? [
1659
- B,
1660
- B,
1659
+ z,
1660
+ z,
1661
1661
  0,
1662
1662
  0
1663
1663
  ] : [
1664
- B,
1665
- B,
1666
- B,
1667
- B
1664
+ z,
1665
+ z,
1666
+ z,
1667
+ z
1668
1668
  ],
1669
1669
  isAnimationActive: !1,
1670
- activeBar: A("value2"),
1671
- onMouseEnter: j("value2"),
1672
- onMouseLeave: ee,
1673
- children: t.map((e, t) => /* @__PURE__ */ i(de, {
1670
+ activeBar: k("value2"),
1671
+ onMouseEnter: A("value2"),
1672
+ onMouseLeave: te,
1673
+ children: t.map((e, t) => /* @__PURE__ */ i(fe, {
1674
1674
  fill: g,
1675
1675
  fillOpacity: l !== null && t !== l ? .45 : 1
1676
1676
  }, t))
1677
- })] }) : /* @__PURE__ */ i(ce, {
1677
+ })] }) : /* @__PURE__ */ i(le, {
1678
1678
  dataKey: "value",
1679
1679
  name: "Value",
1680
1680
  fill: l === null ? h : D(l),
1681
1681
  radius: [
1682
- B,
1683
- B,
1684
- B,
1685
- B
1682
+ z,
1683
+ z,
1684
+ z,
1685
+ z
1686
1686
  ],
1687
1687
  isAnimationActive: !1,
1688
- activeBar: A("value"),
1689
- onMouseEnter: j("value"),
1690
- onMouseLeave: ee,
1691
- children: t.map((e, t) => /* @__PURE__ */ i(de, {
1688
+ activeBar: k("value"),
1689
+ onMouseEnter: A("value"),
1690
+ onMouseLeave: te,
1691
+ children: t.map((e, t) => /* @__PURE__ */ i(fe, {
1692
1692
  fill: D(t),
1693
1693
  fillOpacity: O(t)
1694
1694
  }, t))
@@ -1697,7 +1697,7 @@ var Lt = [
1697
1697
  })
1698
1698
  })
1699
1699
  });
1700
- }, Wt = {
1700
+ }, Gt = {
1701
1701
  badge: "_badge_a5a38_6",
1702
1702
  "badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
1703
1703
  "badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
@@ -1713,29 +1713,29 @@ var Lt = [
1713
1713
  "badge--info-solid": "_badge--info-solid_a5a38_41",
1714
1714
  badge__icon: "_badge__icon_a5a38_44",
1715
1715
  badge__label: "_badge__label_a5a38_45"
1716
- }, Gt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
1716
+ }, Kt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
1717
1717
  className: [
1718
- Wt.badge,
1719
- Wt[`badge--${e}-${t}`],
1718
+ Gt.badge,
1719
+ Gt[`badge--${e}-${t}`],
1720
1720
  s ?? ""
1721
1721
  ].filter(Boolean).join(" "),
1722
1722
  children: [
1723
1723
  n && /* @__PURE__ */ i("span", {
1724
- className: Wt.badge__icon,
1724
+ className: Gt.badge__icon,
1725
1725
  "aria-hidden": "true",
1726
1726
  children: n
1727
1727
  }),
1728
1728
  /* @__PURE__ */ i("span", {
1729
- className: Wt.badge__label,
1729
+ className: Gt.badge__label,
1730
1730
  children: o
1731
1731
  }),
1732
1732
  r && /* @__PURE__ */ i("span", {
1733
- className: Wt.badge__icon,
1733
+ className: Gt.badge__icon,
1734
1734
  "aria-hidden": "true",
1735
1735
  children: r
1736
1736
  })
1737
1737
  ]
1738
- }), V = {
1738
+ }), B = {
1739
1739
  stepper: "_stepper_1w3rz_1",
1740
1740
  stepBtn: "_stepBtn_1w3rz_10",
1741
1741
  stepDivider: "_stepDivider_1w3rz_27",
@@ -1754,7 +1754,7 @@ var Lt = [
1754
1754
  "roll-out-down": "_roll-out-down_1w3rz_1",
1755
1755
  rollInDown: "_rollInDown_1w3rz_133",
1756
1756
  "roll-in-down": "_roll-in-down_1w3rz_1"
1757
- }, Kt = ({ value: t }) => {
1757
+ }, qt = ({ value: t }) => {
1758
1758
  let n = e.useRef(t), [r, o] = e.useState(null);
1759
1759
  return t !== n.current && (o({
1760
1760
  value: n.current,
@@ -1764,50 +1764,50 @@ var Lt = [
1764
1764
  let e = setTimeout(() => o(null), 260);
1765
1765
  return () => clearTimeout(e);
1766
1766
  }, [r]), /* @__PURE__ */ a("span", {
1767
- className: V.roll,
1767
+ className: B.roll,
1768
1768
  children: [r && /* @__PURE__ */ i("span", {
1769
- className: [V.rollNum, r.direction === "up" ? V.rollOutUp : V.rollOutDown].join(" "),
1769
+ className: [B.rollNum, r.direction === "up" ? B.rollOutUp : B.rollOutDown].join(" "),
1770
1770
  "aria-hidden": "true",
1771
1771
  children: r.value
1772
1772
  }, `out-${r.value}`), /* @__PURE__ */ i("span", {
1773
- className: [V.rollNum, r ? r.direction === "up" ? V.rollInUp : V.rollInDown : ""].filter(Boolean).join(" "),
1773
+ className: [B.rollNum, r ? r.direction === "up" ? B.rollInUp : B.rollInDown : ""].filter(Boolean).join(" "),
1774
1774
  onAnimationEnd: () => o(null),
1775
1775
  children: t
1776
1776
  }, `in-${t}`)]
1777
1777
  });
1778
- }, qt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
1778
+ }, Jt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
1779
1779
  let l = t > r, u = o === void 0 || t < o, d = e.useRef(null), [f, p] = e.useState(!1), [m, h] = e.useState(String(t)), g = (e) => {
1780
1780
  let t = e;
1781
1781
  return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
1782
1782
  };
1783
1783
  return /* @__PURE__ */ a("div", {
1784
- className: [V.stepper, c ?? ""].filter(Boolean).join(" "),
1784
+ className: [B.stepper, c ?? ""].filter(Boolean).join(" "),
1785
1785
  role: "group",
1786
1786
  "aria-label": s,
1787
1787
  children: [
1788
1788
  /* @__PURE__ */ i("button", {
1789
1789
  type: "button",
1790
- className: V.stepBtn,
1790
+ className: B.stepBtn,
1791
1791
  disabled: !l,
1792
1792
  onClick: () => n?.(Math.max(r, t - 1)),
1793
1793
  "aria-label": "Decrease quantity",
1794
1794
  children: /* @__PURE__ */ i(w, {
1795
1795
  size: 14,
1796
- strokeWidth: M(14)
1796
+ strokeWidth: j(14)
1797
1797
  })
1798
1798
  }),
1799
1799
  /* @__PURE__ */ i("span", {
1800
- className: V.stepDivider,
1800
+ className: B.stepDivider,
1801
1801
  "aria-hidden": "true"
1802
1802
  }),
1803
1803
  /* @__PURE__ */ a("span", {
1804
- className: V.stepValue,
1804
+ className: B.stepValue,
1805
1805
  children: [/* @__PURE__ */ i("input", {
1806
1806
  ref: d,
1807
1807
  type: "text",
1808
1808
  inputMode: "numeric",
1809
1809
  size: Math.max((f ? m : String(t)).length, 1),
1810
- className: [V.stepInput, f ? "" : V.stepInputResting].filter(Boolean).join(" "),
1810
+ className: [B.stepInput, f ? "" : B.stepInputResting].filter(Boolean).join(" "),
1811
1811
  value: f ? m : String(t),
1812
1812
  "aria-label": s,
1813
1813
  onFocus: (e) => {
@@ -1826,29 +1826,29 @@ var Lt = [
1826
1826
  e.key === "Enter" && (e.preventDefault(), d.current?.blur()), e.key === "Escape" && (h(String(t)), d.current?.blur());
1827
1827
  }
1828
1828
  }), /* @__PURE__ */ i("span", {
1829
- className: [V.rollOverlay, f ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
1829
+ className: [B.rollOverlay, f ? B.rollOverlayHidden : ""].filter(Boolean).join(" "),
1830
1830
  "aria-hidden": "true",
1831
- children: /* @__PURE__ */ i(Kt, { value: t })
1831
+ children: /* @__PURE__ */ i(qt, { value: t })
1832
1832
  })]
1833
1833
  }),
1834
1834
  /* @__PURE__ */ i("span", {
1835
- className: V.stepDivider,
1835
+ className: B.stepDivider,
1836
1836
  "aria-hidden": "true"
1837
1837
  }),
1838
1838
  /* @__PURE__ */ i("button", {
1839
1839
  type: "button",
1840
- className: V.stepBtn,
1840
+ className: B.stepBtn,
1841
1841
  disabled: !u,
1842
1842
  onClick: () => n?.(o === void 0 ? t + 1 : Math.min(o, t + 1)),
1843
1843
  "aria-label": "Increase quantity",
1844
- children: /* @__PURE__ */ i(k, {
1844
+ children: /* @__PURE__ */ i(ee, {
1845
1845
  size: 14,
1846
- strokeWidth: M(14)
1846
+ strokeWidth: j(14)
1847
1847
  })
1848
1848
  })
1849
1849
  ]
1850
1850
  });
1851
- }, Jt = {
1851
+ }, Yt = {
1852
1852
  item: "_item_15jww_1",
1853
1853
  thumb: "_thumb_15jww_11",
1854
1854
  info: "_info_15jww_19",
@@ -1859,31 +1859,31 @@ var Lt = [
1859
1859
  priceRow: "_priceRow_15jww_67",
1860
1860
  priceOriginal: "_priceOriginal_15jww_75",
1861
1861
  priceSale: "_priceSale_15jww_80"
1862
- }, Yt = (e) => e.toLocaleString("en-US", {
1862
+ }, Xt = (e) => e.toLocaleString("en-US", {
1863
1863
  style: "currency",
1864
1864
  currency: "USD"
1865
- }), Xt = ({ image: e, imageAlt: t, name: n, variant: r, price: o, compareAtPrice: s, quantity: c, onQuantityChange: l, minQuantity: u = 1, maxQuantity: d, onRemove: f, removeLabel: p = "Remove item", formatPrice: m = Yt, className: h }) => {
1865
+ }), Zt = ({ image: e, imageAlt: t, name: n, variant: r, price: o, compareAtPrice: s, quantity: c, onQuantityChange: l, minQuantity: u = 1, maxQuantity: d, onRemove: f, removeLabel: p = "Remove item", formatPrice: m = Xt, className: h }) => {
1866
1866
  let g = s !== void 0;
1867
1867
  return /* @__PURE__ */ a("div", {
1868
- className: [Jt.item, h ?? ""].filter(Boolean).join(" "),
1868
+ className: [Yt.item, h ?? ""].filter(Boolean).join(" "),
1869
1869
  children: [
1870
1870
  /* @__PURE__ */ i("img", {
1871
1871
  src: e,
1872
1872
  alt: t ?? n,
1873
- className: Jt.thumb
1873
+ className: Yt.thumb
1874
1874
  }),
1875
1875
  /* @__PURE__ */ a("div", {
1876
- className: Jt.info,
1876
+ className: Yt.info,
1877
1877
  children: [
1878
1878
  /* @__PURE__ */ i("p", {
1879
- className: Jt.name,
1879
+ className: Yt.name,
1880
1880
  children: n
1881
1881
  }),
1882
1882
  r && /* @__PURE__ */ i("p", {
1883
- className: Jt.variant,
1883
+ className: Yt.variant,
1884
1884
  children: r
1885
1885
  }),
1886
- /* @__PURE__ */ i(qt, {
1886
+ /* @__PURE__ */ i(Jt, {
1887
1887
  quantity: c,
1888
1888
  onQuantityChange: l,
1889
1889
  min: u,
@@ -1893,20 +1893,20 @@ var Lt = [
1893
1893
  ]
1894
1894
  }),
1895
1895
  /* @__PURE__ */ a("div", {
1896
- className: Jt.right,
1896
+ className: Yt.right,
1897
1897
  children: [g ? /* @__PURE__ */ a("div", {
1898
- className: Jt.priceRow,
1898
+ className: Yt.priceRow,
1899
1899
  children: [/* @__PURE__ */ i("span", {
1900
- className: Jt.priceOriginal,
1900
+ className: Yt.priceOriginal,
1901
1901
  children: m(s)
1902
1902
  }), /* @__PURE__ */ i("span", {
1903
- className: Jt.priceSale,
1903
+ className: Yt.priceSale,
1904
1904
  children: m(o)
1905
1905
  })]
1906
1906
  }) : /* @__PURE__ */ i("p", {
1907
- className: Jt.price,
1907
+ className: Yt.price,
1908
1908
  children: m(o)
1909
- }), /* @__PURE__ */ i(He, {
1909
+ }), /* @__PURE__ */ i(Ue, {
1910
1910
  icon: w,
1911
1911
  variant: "outline",
1912
1912
  size: "sm",
@@ -1916,7 +1916,7 @@ var Lt = [
1916
1916
  })
1917
1917
  ]
1918
1918
  });
1919
- }, Zt = {
1919
+ }, Qt = {
1920
1920
  steps: "_steps_t53um_1",
1921
1921
  step: "_step_t53um_1",
1922
1922
  connector: "_connector_t53um_16",
@@ -1927,55 +1927,55 @@ var Lt = [
1927
1927
  label: "_label_t53um_49",
1928
1928
  labelActive: "_labelActive_t53um_56",
1929
1929
  labelUpcoming: "_labelUpcoming_t53um_59"
1930
- }, Qt = [
1930
+ }, $t = [
1931
1931
  "Cart",
1932
1932
  "Shipping",
1933
1933
  "Payment",
1934
1934
  "Confirmation"
1935
- ], $t = ({ steps: t = Qt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1936
- className: [Zt.steps, r ?? ""].filter(Boolean).join(" "),
1935
+ ], en = ({ steps: t = $t, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1936
+ className: [Qt.steps, r ?? ""].filter(Boolean).join(" "),
1937
1937
  role: "list",
1938
1938
  children: t.map((r, o) => {
1939
1939
  let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
1940
1940
  return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
1941
- className: Zt.step,
1941
+ className: Qt.step,
1942
1942
  role: "listitem",
1943
1943
  "aria-current": s === "active" ? "step" : void 0,
1944
1944
  children: [/* @__PURE__ */ i("span", {
1945
1945
  className: [
1946
- Zt.circle,
1947
- s === "completed" ? Zt.circleCompleted : "",
1948
- s === "active" ? Zt.circleActive : "",
1949
- s === "upcoming" ? Zt.circleUpcoming : ""
1946
+ Qt.circle,
1947
+ s === "completed" ? Qt.circleCompleted : "",
1948
+ s === "active" ? Qt.circleActive : "",
1949
+ s === "upcoming" ? Qt.circleUpcoming : ""
1950
1950
  ].filter(Boolean).join(" "),
1951
1951
  "aria-hidden": "true",
1952
1952
  children: /* @__PURE__ */ i(l, {
1953
1953
  size: 14,
1954
- strokeWidth: M(14)
1954
+ strokeWidth: j(14)
1955
1955
  })
1956
1956
  }), /* @__PURE__ */ i("span", {
1957
1957
  className: [
1958
- Zt.label,
1959
- s === "active" ? Zt.labelActive : "",
1960
- s === "upcoming" ? Zt.labelUpcoming : ""
1958
+ Qt.label,
1959
+ s === "active" ? Qt.labelActive : "",
1960
+ s === "upcoming" ? Qt.labelUpcoming : ""
1961
1961
  ].filter(Boolean).join(" "),
1962
1962
  children: r
1963
1963
  })]
1964
1964
  }), !c && /* @__PURE__ */ i("span", {
1965
- className: Zt.connector,
1965
+ className: Qt.connector,
1966
1966
  "aria-hidden": "true"
1967
1967
  })] }, r);
1968
1968
  })
1969
- }), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
1969
+ }), tn = "#fafaf9", nn = "#141414", rn = (e, t, n) => {
1970
1970
  let r = (e) => {
1971
1971
  let t = e / 255;
1972
1972
  return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
1973
1973
  };
1974
1974
  return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
1975
- }, rn = (e, t) => {
1975
+ }, an = (e, t) => {
1976
1976
  let n = Math.max(e, t), r = Math.min(e, t);
1977
1977
  return (n + .05) / (r + .05);
1978
- }, an = (e) => {
1978
+ }, on = (e) => {
1979
1979
  let t = e.trim().toLowerCase(), n = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);
1980
1980
  if (n) {
1981
1981
  let e = n[1];
@@ -1991,31 +1991,31 @@ var Lt = [
1991
1991
  Number(r[2]),
1992
1992
  Number(r[3])
1993
1993
  ] : null;
1994
- }, on = (e, t, n) => {
1995
- let r = nn(e, t, n), i = rn(r, nn(20, 20, 20));
1996
- return rn(r, nn(250, 250, 249)) >= i ? en : tn;
1997
- }, sn = null, cn = (e) => {
1998
- let t = an(e);
1999
- if (t) return on(...t);
2000
- if (typeof document > "u") return en;
2001
- sn ??= document.createElement("canvas"), sn.width = 1, sn.height = 1;
2002
- let n = sn.getContext("2d", { willReadFrequently: !0 });
2003
- if (!n) return en;
1994
+ }, sn = (e, t, n) => {
1995
+ let r = rn(e, t, n), i = an(r, rn(20, 20, 20));
1996
+ return an(r, rn(250, 250, 249)) >= i ? tn : nn;
1997
+ }, cn = null, ln = (e) => {
1998
+ let t = on(e);
1999
+ if (t) return sn(...t);
2000
+ if (typeof document > "u") return tn;
2001
+ cn ??= document.createElement("canvas"), cn.width = 1, cn.height = 1;
2002
+ let n = cn.getContext("2d", { willReadFrequently: !0 });
2003
+ if (!n) return tn;
2004
2004
  n.clearRect(0, 0, 1, 1), n.fillStyle = e, n.fillRect(0, 0, 1, 1);
2005
2005
  let [r, i, a] = n.getImageData(0, 0, 1, 1).data;
2006
- return on(r, i, a);
2007
- }, ln = {
2006
+ return sn(r, i, a);
2007
+ }, un = {
2008
2008
  swatch: "_swatch_1i3c3_1",
2009
2009
  circle: "_circle_1i3c3_22",
2010
2010
  circleUnavailable: "_circleUnavailable_1i3c3_32",
2011
2011
  ring: "_ring_1i3c3_39",
2012
2012
  check: "_check_1i3c3_55",
2013
2013
  strike: "_strike_1i3c3_66"
2014
- }, un = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
2015
- let u = e.useMemo(() => cn(t), [t]);
2014
+ }, dn = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
2015
+ let u = e.useMemo(() => ln(t), [t]);
2016
2016
  return /* @__PURE__ */ a("button", {
2017
2017
  type: "button",
2018
- className: [ln.swatch, c ?? ""].filter(Boolean).join(" "),
2018
+ className: [un.swatch, c ?? ""].filter(Boolean).join(" "),
2019
2019
  style: { "--swatch-color": t },
2020
2020
  disabled: !o,
2021
2021
  "aria-pressed": o ? r : void 0,
@@ -2023,49 +2023,49 @@ var Lt = [
2023
2023
  onClick: s,
2024
2024
  children: [
2025
2025
  r && o && /* @__PURE__ */ i("span", {
2026
- className: ln.ring,
2026
+ className: un.ring,
2027
2027
  "aria-hidden": "true"
2028
2028
  }),
2029
2029
  /* @__PURE__ */ i("span", {
2030
- className: [ln.circle, o ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
2030
+ className: [un.circle, o ? "" : un.circleUnavailable].filter(Boolean).join(" "),
2031
2031
  "aria-hidden": "true"
2032
2032
  }),
2033
2033
  r && o && /* @__PURE__ */ i(l, {
2034
2034
  size: 14,
2035
- strokeWidth: M(14),
2036
- className: ln.check,
2035
+ strokeWidth: j(14),
2036
+ className: un.check,
2037
2037
  style: { color: u },
2038
2038
  "aria-hidden": "true"
2039
2039
  }),
2040
2040
  !o && /* @__PURE__ */ i("span", {
2041
- className: ln.strike,
2041
+ className: un.strike,
2042
2042
  style: { background: u },
2043
2043
  "aria-hidden": "true"
2044
2044
  })
2045
2045
  ]
2046
2046
  });
2047
- }, dn = {
2047
+ }, fn = {
2048
2048
  row: "_row_1r4ef_1",
2049
2049
  original: "_original_1r4ef_8",
2050
2050
  price: "_price_1r4ef_17",
2051
2051
  priceSale: "_priceSale_1r4ef_24"
2052
- }, fn = (e) => e.toLocaleString("en-US", {
2052
+ }, pn = (e) => e.toLocaleString("en-US", {
2053
2053
  style: "currency",
2054
2054
  currency: "USD"
2055
- }), pn = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = fn, className: o }) => {
2055
+ }), mn = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = pn, className: o }) => {
2056
2056
  let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
2057
2057
  return /* @__PURE__ */ a("div", {
2058
- className: [dn.row, o ?? ""].filter(Boolean).join(" "),
2058
+ className: [fn.row, o ?? ""].filter(Boolean).join(" "),
2059
2059
  children: [
2060
2060
  s && /* @__PURE__ */ i("span", {
2061
- className: dn.original,
2061
+ className: fn.original,
2062
2062
  children: r(t)
2063
2063
  }),
2064
2064
  /* @__PURE__ */ i("span", {
2065
- className: [dn.price, s ? dn.priceSale : ""].filter(Boolean).join(" "),
2065
+ className: [fn.price, s ? fn.priceSale : ""].filter(Boolean).join(" "),
2066
2066
  children: r(e)
2067
2067
  }),
2068
- s && n && /* @__PURE__ */ a(Gt, {
2068
+ s && n && /* @__PURE__ */ a(Kt, {
2069
2069
  variant: "danger",
2070
2070
  emphasis: "solid",
2071
2071
  children: [
@@ -2076,17 +2076,17 @@ var Lt = [
2076
2076
  })
2077
2077
  ]
2078
2078
  });
2079
- }, mn = {
2079
+ }, hn = {
2080
2080
  button: "_button_58k4v_1",
2081
2081
  icon: "_icon_58k4v_24",
2082
2082
  iconSaved: "_iconSaved_58k4v_27",
2083
2083
  bounce: "_bounce_58k4v_40",
2084
2084
  "wishlist-bounce": "_wishlist-bounce_58k4v_1"
2085
- }, hn = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
2085
+ }, gn = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
2086
2086
  let [o, s] = e.useState(!1);
2087
2087
  return /* @__PURE__ */ i("button", {
2088
2088
  type: "button",
2089
- className: [mn.button, a ?? ""].filter(Boolean).join(" "),
2089
+ className: [hn.button, a ?? ""].filter(Boolean).join(" "),
2090
2090
  "aria-pressed": t,
2091
2091
  "aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
2092
2092
  onClick: () => {
@@ -2094,13 +2094,13 @@ var Lt = [
2094
2094
  },
2095
2095
  children: /* @__PURE__ */ i(S, {
2096
2096
  size: 16,
2097
- strokeWidth: M(16),
2098
- className: [t ? mn.iconSaved : mn.icon, o ? mn.bounce : ""].filter(Boolean).join(" "),
2097
+ strokeWidth: j(16),
2098
+ className: [t ? hn.iconSaved : hn.icon, o ? hn.bounce : ""].filter(Boolean).join(" "),
2099
2099
  fill: t ? "currentColor" : "none",
2100
2100
  onAnimationEnd: () => s(!1)
2101
2101
  })
2102
2102
  });
2103
- }, H = {
2103
+ }, V = {
2104
2104
  card: "_card_jlv97_1",
2105
2105
  imageWrap: "_imageWrap_jlv97_16",
2106
2106
  image: "_image_jlv97_16",
@@ -2120,97 +2120,97 @@ var Lt = [
2120
2120
  description: "_description_jlv97_118",
2121
2121
  swatches: "_swatches_jlv97_131",
2122
2122
  addButton: "_addButton_jlv97_136"
2123
- }, gn = (e) => e.toLocaleString("en-US", {
2123
+ }, _n = (e) => e.toLocaleString("en-US", {
2124
2124
  style: "currency",
2125
2125
  currency: "USD"
2126
- }), _n = ({ image: e, imageAlt: t, name: n, description: r, price: o, compareAtPrice: s, rating: c, reviewCount: l, colors: u = [], onColorSelect: d, inStock: f = !0, wishlisted: p = !1, onWishlistToggle: m, onAddItem: h, addItemLabel: g = "Add Item", formatPrice: _ = gn, className: v }) => {
2126
+ }), vn = ({ image: e, imageAlt: t, name: n, description: r, price: o, compareAtPrice: s, rating: c, reviewCount: l, colors: u = [], onColorSelect: d, inStock: f = !0, wishlisted: p = !1, onWishlistToggle: m, onAddItem: h, addItemLabel: g = "Add Item", formatPrice: _ = _n, className: v }) => {
2127
2127
  let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
2128
2128
  return /* @__PURE__ */ a("div", {
2129
- className: [H.card, v ?? ""].filter(Boolean).join(" "),
2129
+ className: [V.card, v ?? ""].filter(Boolean).join(" "),
2130
2130
  children: [/* @__PURE__ */ a("div", {
2131
- className: H.imageWrap,
2131
+ className: V.imageWrap,
2132
2132
  children: [
2133
2133
  /* @__PURE__ */ i("img", {
2134
2134
  src: e,
2135
2135
  alt: t ?? n,
2136
- className: [H.image, f ? "" : H.imageDimmed].filter(Boolean).join(" ")
2136
+ className: [V.image, f ? "" : V.imageDimmed].filter(Boolean).join(" ")
2137
2137
  }),
2138
- y && f && /* @__PURE__ */ a(Gt, {
2138
+ y && f && /* @__PURE__ */ a(Kt, {
2139
2139
  variant: "danger",
2140
2140
  emphasis: "solid",
2141
- className: H.saleBadge,
2141
+ className: V.saleBadge,
2142
2142
  children: [
2143
2143
  "-",
2144
2144
  b,
2145
2145
  "%"
2146
2146
  ]
2147
2147
  }),
2148
- f && /* @__PURE__ */ i(hn, {
2148
+ f && /* @__PURE__ */ i(gn, {
2149
2149
  saved: p,
2150
2150
  label: n,
2151
- className: H.wishlistBtn,
2151
+ className: V.wishlistBtn,
2152
2152
  onToggle: m
2153
2153
  }),
2154
2154
  !f && /* @__PURE__ */ i("span", {
2155
- className: H.outOfStockLabel,
2155
+ className: V.outOfStockLabel,
2156
2156
  children: "Out of stock"
2157
2157
  })
2158
2158
  ]
2159
2159
  }), /* @__PURE__ */ a("div", {
2160
- className: H.body,
2160
+ className: V.body,
2161
2161
  children: [
2162
2162
  c !== void 0 && /* @__PURE__ */ i("div", {
2163
- className: H.rating,
2163
+ className: V.rating,
2164
2164
  role: "img",
2165
2165
  "aria-label": `Rated ${c} out of 5${l ? ` (${l} reviews)` : ""}`,
2166
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(ne, {
2166
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ i(re, {
2167
2167
  size: 16,
2168
- strokeWidth: M(16),
2169
- className: t < x ? H.starFilled : H.starEmpty,
2168
+ strokeWidth: j(16),
2169
+ className: t < x ? V.starFilled : V.starEmpty,
2170
2170
  fill: t < x ? "currentColor" : "none"
2171
2171
  }, t))
2172
2172
  }),
2173
2173
  /* @__PURE__ */ a("div", {
2174
- className: H.titleRow,
2174
+ className: V.titleRow,
2175
2175
  children: [/* @__PURE__ */ i("p", {
2176
- className: H.name,
2176
+ className: V.name,
2177
2177
  children: n
2178
2178
  }), /* @__PURE__ */ a("div", {
2179
- className: H.priceRow,
2179
+ className: V.priceRow,
2180
2180
  children: [y && /* @__PURE__ */ i("span", {
2181
- className: H.priceOriginal,
2181
+ className: V.priceOriginal,
2182
2182
  children: _(s)
2183
2183
  }), /* @__PURE__ */ i("span", {
2184
- className: H.price,
2184
+ className: V.price,
2185
2185
  children: _(o)
2186
2186
  })]
2187
2187
  })]
2188
2188
  }),
2189
2189
  r && /* @__PURE__ */ i("p", {
2190
- className: H.description,
2190
+ className: V.description,
2191
2191
  children: r
2192
2192
  }),
2193
2193
  u.length > 0 && /* @__PURE__ */ i("div", {
2194
- className: H.swatches,
2194
+ className: V.swatches,
2195
2195
  role: "group",
2196
2196
  "aria-label": "Color",
2197
- children: u.map((e) => /* @__PURE__ */ i(un, {
2197
+ children: u.map((e) => /* @__PURE__ */ i(dn, {
2198
2198
  ...e,
2199
2199
  onSelect: () => d?.(e.id ?? e.label)
2200
2200
  }, e.id ?? e.label))
2201
2201
  }),
2202
- /* @__PURE__ */ i(P, {
2202
+ /* @__PURE__ */ i(N, {
2203
2203
  variant: "primary",
2204
2204
  size: "md",
2205
2205
  disabled: !f,
2206
- className: H.addButton,
2206
+ className: V.addButton,
2207
2207
  onClick: h,
2208
2208
  children: f ? g : "Out of stock"
2209
2209
  })
2210
2210
  ]
2211
2211
  })]
2212
2212
  });
2213
- }, U = {
2213
+ }, H = {
2214
2214
  gallery: "_gallery_1mrk8_1",
2215
2215
  galleryBottom: "_galleryBottom_1mrk8_5",
2216
2216
  galleryLeft: "_galleryLeft_1mrk8_10",
@@ -2225,11 +2225,11 @@ var Lt = [
2225
2225
  thumbLeft: "_thumbLeft_1mrk8_70",
2226
2226
  thumbActive: "_thumbActive_1mrk8_75",
2227
2227
  thumbImage: "_thumbImage_1mrk8_79"
2228
- }, vn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
2228
+ }, yn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
2229
2229
  let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
2230
2230
  l || d(e), s?.(e);
2231
2231
  }, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
2232
- className: [U.thumbs, h ? U.thumbsLeft : U.thumbsBottom].filter(Boolean).join(" "),
2232
+ className: [H.thumbs, h ? H.thumbsLeft : H.thumbsBottom].filter(Boolean).join(" "),
2233
2233
  role: "tablist",
2234
2234
  "aria-label": "Product images",
2235
2235
  children: t.map((e, t) => /* @__PURE__ */ i("button", {
@@ -2238,56 +2238,56 @@ var Lt = [
2238
2238
  "aria-selected": t === f,
2239
2239
  "aria-label": e.alt ?? `Image ${t + 1}`,
2240
2240
  className: [
2241
- U.thumb,
2242
- h ? U.thumbLeft : U.thumbBottom,
2243
- t === f ? U.thumbActive : ""
2241
+ H.thumb,
2242
+ h ? H.thumbLeft : H.thumbBottom,
2243
+ t === f ? H.thumbActive : ""
2244
2244
  ].filter(Boolean).join(" "),
2245
2245
  onClick: () => p(t),
2246
2246
  children: /* @__PURE__ */ i("img", {
2247
2247
  src: e.src,
2248
2248
  alt: "",
2249
- className: U.thumbImage
2249
+ className: H.thumbImage
2250
2250
  })
2251
2251
  }, e.src + t))
2252
2252
  });
2253
2253
  return /* @__PURE__ */ a("div", {
2254
2254
  className: [
2255
- U.gallery,
2256
- h ? U.galleryLeft : U.galleryBottom,
2255
+ H.gallery,
2256
+ h ? H.galleryLeft : H.galleryBottom,
2257
2257
  c ?? ""
2258
2258
  ].filter(Boolean).join(" "),
2259
2259
  children: [
2260
2260
  !h && m && /* @__PURE__ */ i("div", {
2261
- className: U.mainBottom,
2261
+ className: H.mainBottom,
2262
2262
  children: /* @__PURE__ */ i("img", {
2263
2263
  src: m.src,
2264
2264
  alt: m.alt ?? "",
2265
- className: U.mainImage
2265
+ className: H.mainImage
2266
2266
  })
2267
2267
  }),
2268
2268
  g,
2269
2269
  h && m && /* @__PURE__ */ i("div", {
2270
- className: U.mainLeft,
2270
+ className: H.mainLeft,
2271
2271
  children: /* @__PURE__ */ i("img", {
2272
2272
  src: m.src,
2273
2273
  alt: m.alt ?? "",
2274
- className: U.mainImage
2274
+ className: H.mainImage
2275
2275
  })
2276
2276
  })
2277
2277
  ]
2278
2278
  });
2279
- }, yn = {
2279
+ }, bn = {
2280
2280
  button: "_button_1vgn5_1",
2281
2281
  unselected: "_unselected_1vgn5_23",
2282
2282
  selected: "_selected_1vgn5_32",
2283
2283
  unavailable: "_unavailable_1vgn5_37",
2284
2284
  label: "_label_1vgn5_44",
2285
2285
  strike: "_strike_1vgn5_55"
2286
- }, bn = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
2286
+ }, xn = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
2287
2287
  type: "button",
2288
2288
  className: [
2289
- yn.button,
2290
- n ? t ? yn.selected : yn.unselected : yn.unavailable,
2289
+ bn.button,
2290
+ n ? t ? bn.selected : bn.unselected : bn.unavailable,
2291
2291
  o ?? ""
2292
2292
  ].filter(Boolean).join(" "),
2293
2293
  disabled: !n,
@@ -2295,13 +2295,13 @@ var Lt = [
2295
2295
  "aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
2296
2296
  onClick: r,
2297
2297
  children: [/* @__PURE__ */ i("span", {
2298
- className: yn.label,
2298
+ className: bn.label,
2299
2299
  children: e
2300
2300
  }), !n && /* @__PURE__ */ i("span", {
2301
- className: yn.strike,
2301
+ className: bn.strike,
2302
2302
  "aria-hidden": "true"
2303
2303
  })]
2304
- }), xn = {
2304
+ }), Sn = {
2305
2305
  row: "_row_1snsi_1",
2306
2306
  rowVertical: "_rowVertical_1snsi_8",
2307
2307
  stars: "_stars_1snsi_13",
@@ -2310,40 +2310,40 @@ 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: o = Sn, className: s }) => {
2313
+ }, Cn = (e) => e.toLocaleString("en-US"), wn = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = Cn, className: s }) => {
2314
2314
  let c = Math.max(0, Math.min(5, e)), l = Math.round(c * 2) / 2, u = Math.floor(l), d = l - u === .5, f = 5 - u - !!d, p = /* @__PURE__ */ a("div", {
2315
- className: xn.stars,
2315
+ className: Sn.stars,
2316
2316
  role: "img",
2317
2317
  "aria-label": `${c} out of 5 stars`,
2318
2318
  children: [
2319
- Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(ne, {
2319
+ Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(re, {
2320
2320
  size: 24,
2321
- strokeWidth: M(24),
2322
- className: xn.starFull,
2321
+ strokeWidth: j(24),
2322
+ className: Sn.starFull,
2323
2323
  fill: "currentColor",
2324
2324
  "aria-hidden": "true"
2325
2325
  }, `full-${t}`)),
2326
- d && /* @__PURE__ */ i(re, {
2326
+ d && /* @__PURE__ */ i(ie, {
2327
2327
  size: 24,
2328
- strokeWidth: M(24),
2329
- className: xn.starFull,
2328
+ strokeWidth: j(24),
2329
+ className: Sn.starFull,
2330
2330
  fill: "currentColor",
2331
2331
  "aria-hidden": "true"
2332
2332
  }),
2333
- Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(ne, {
2333
+ Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(re, {
2334
2334
  size: 24,
2335
- strokeWidth: M(24),
2336
- className: xn.starEmpty,
2335
+ strokeWidth: j(24),
2336
+ className: Sn.starEmpty,
2337
2337
  "aria-hidden": "true"
2338
2338
  }, `empty-${t}`))
2339
2339
  ]
2340
2340
  }), m = n && /* @__PURE__ */ a("div", {
2341
- className: xn.label,
2341
+ className: Sn.label,
2342
2342
  children: [/* @__PURE__ */ i("span", {
2343
- className: xn.value,
2343
+ className: Sn.value,
2344
2344
  children: c.toFixed(1)
2345
2345
  }), t !== void 0 && /* @__PURE__ */ a("span", {
2346
- className: xn.count,
2346
+ className: Sn.count,
2347
2347
  children: [
2348
2348
  "(",
2349
2349
  o(t),
@@ -2351,8 +2351,8 @@ var Lt = [
2351
2351
  ]
2352
2352
  })]
2353
2353
  }), h = [
2354
- xn.row,
2355
- r === "vertical" ? xn.rowVertical : "",
2354
+ Sn.row,
2355
+ r === "vertical" ? Sn.rowVertical : "",
2356
2356
  s ?? ""
2357
2357
  ].filter(Boolean).join(" ");
2358
2358
  return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
@@ -2362,15 +2362,15 @@ var Lt = [
2362
2362
  className: h,
2363
2363
  children: [p, m]
2364
2364
  });
2365
- }, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2365
+ }, Tn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2366
2366
  let a = e <= 0, o = !a && e <= t, s = a ? "danger" : o ? "warning" : "success", c = a ? "Out of stock" : o ? `Only ${e} left` : "In stock";
2367
- return /* @__PURE__ */ i(Gt, {
2367
+ return /* @__PURE__ */ i(Kt, {
2368
2368
  variant: s,
2369
2369
  emphasis: "subtle",
2370
2370
  className: r,
2371
2371
  children: n ?? c
2372
2372
  });
2373
- }, W = {
2373
+ }, U = {
2374
2374
  card: "_card_1w9hp_1",
2375
2375
  cardDefault: "_cardDefault_1w9hp_8",
2376
2376
  imageDefault: "_imageDefault_1w9hp_19",
@@ -2385,55 +2385,55 @@ var Lt = [
2385
2385
  excerpt: "_excerpt_1w9hp_114",
2386
2386
  author: "_author_1w9hp_123",
2387
2387
  authorText: "_authorText_1w9hp_130"
2388
- }, Tn = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
2388
+ }, En = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
2389
2389
  let d = l === "horizontal";
2390
2390
  return /* @__PURE__ */ a("div", {
2391
2391
  className: [
2392
- W.card,
2393
- d ? W.cardHorizontal : W.cardDefault,
2392
+ U.card,
2393
+ d ? U.cardHorizontal : U.cardDefault,
2394
2394
  u ?? ""
2395
2395
  ].filter(Boolean).join(" "),
2396
2396
  children: [d ? /* @__PURE__ */ i("span", {
2397
- className: W.imageWrapHorizontal,
2397
+ className: U.imageWrapHorizontal,
2398
2398
  children: /* @__PURE__ */ i("img", {
2399
2399
  src: e,
2400
2400
  alt: t ?? "",
2401
- className: W.image
2401
+ className: U.image
2402
2402
  })
2403
2403
  }) : /* @__PURE__ */ i("img", {
2404
2404
  src: e,
2405
2405
  alt: t ?? "",
2406
- className: W.imageDefault
2406
+ className: U.imageDefault
2407
2407
  }), /* @__PURE__ */ a("div", {
2408
- className: d ? W.bodyHorizontal : W.bodyDefault,
2408
+ className: d ? U.bodyHorizontal : U.bodyDefault,
2409
2409
  children: [
2410
2410
  /* @__PURE__ */ a("div", {
2411
- className: W.metaRow,
2412
- children: [/* @__PURE__ */ i(Gt, {
2411
+ className: U.metaRow,
2412
+ children: [/* @__PURE__ */ i(Kt, {
2413
2413
  variant: "accent",
2414
2414
  emphasis: "subtle",
2415
2415
  children: n
2416
2416
  }), /* @__PURE__ */ i("span", {
2417
- className: W.readTime,
2417
+ className: U.readTime,
2418
2418
  children: r
2419
2419
  })]
2420
2420
  }),
2421
2421
  /* @__PURE__ */ i("p", {
2422
- className: W.title,
2422
+ className: U.title,
2423
2423
  children: o
2424
2424
  }),
2425
2425
  /* @__PURE__ */ i("p", {
2426
- className: W.excerpt,
2426
+ className: U.excerpt,
2427
2427
  children: s
2428
2428
  }),
2429
2429
  /* @__PURE__ */ a("div", {
2430
- className: W.author,
2431
- children: [/* @__PURE__ */ i(Ne, {
2430
+ className: U.author,
2431
+ children: [/* @__PURE__ */ i(Pe, {
2432
2432
  size: "sm",
2433
2433
  src: c.avatarSrc,
2434
2434
  alt: c.avatarAlt ?? c.name
2435
2435
  }), /* @__PURE__ */ a("p", {
2436
- className: W.authorText,
2436
+ className: U.authorText,
2437
2437
  children: [
2438
2438
  c.name,
2439
2439
  " · ",
@@ -2444,72 +2444,78 @@ var Lt = [
2444
2444
  ]
2445
2445
  })]
2446
2446
  });
2447
- }, En = {
2448
- card: "_card_8cf5b_1",
2449
- cardHorizontal: "_cardHorizontal_8cf5b_12",
2450
- cardVertical: "_cardVertical_8cf5b_20",
2451
- image: "_image_8cf5b_32",
2452
- bodyHorizontal: "_bodyHorizontal_8cf5b_43",
2453
- bodyVertical: "_bodyVertical_8cf5b_56",
2454
- title: "_title_8cf5b_67",
2455
- excerpt: "_excerpt_8cf5b_77",
2456
- footer: "_footer_8cf5b_86",
2457
- author: "_author_8cf5b_94",
2458
- authorText: "_authorText_8cf5b_101"
2447
+ }, W = {
2448
+ frame: "_frame_a9ah9_4",
2449
+ frameHorizontal: "_frameHorizontal_a9ah9_5",
2450
+ frameVertical: "_frameVertical_a9ah9_6",
2451
+ card: "_card_a9ah9_8",
2452
+ cardHorizontal: "_cardHorizontal_a9ah9_19",
2453
+ cardVertical: "_cardVertical_a9ah9_26",
2454
+ image: "_image_a9ah9_37",
2455
+ bodyHorizontal: "_bodyHorizontal_a9ah9_48",
2456
+ bodyVertical: "_bodyVertical_a9ah9_61",
2457
+ title: "_title_a9ah9_72",
2458
+ excerpt: "_excerpt_a9ah9_82",
2459
+ footer: "_footer_a9ah9_91",
2460
+ author: "_author_a9ah9_99",
2461
+ authorText: "_authorText_a9ah9_106"
2459
2462
  }, Dn = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: o, author: s, ctaLabel: c = "Read article", onCtaClick: l, orientation: u = "horizontal", className: d }) => {
2460
2463
  let f = u === "vertical";
2461
- return /* @__PURE__ */ a("div", {
2464
+ return /* @__PURE__ */ i("div", {
2462
2465
  className: [
2463
- En.card,
2464
- f ? En.cardVertical : En.cardHorizontal,
2466
+ W.frame,
2467
+ f ? W.frameVertical : W.frameHorizontal,
2465
2468
  d ?? ""
2466
2469
  ].filter(Boolean).join(" "),
2467
- children: [/* @__PURE__ */ i("img", {
2468
- src: e,
2469
- alt: t ?? "",
2470
- className: En.image
2471
- }), /* @__PURE__ */ a("div", {
2472
- className: f ? En.bodyVertical : En.bodyHorizontal,
2473
- children: [
2474
- /* @__PURE__ */ i(Gt, {
2475
- variant: "accent",
2476
- emphasis: "subtle",
2477
- children: n
2478
- }),
2479
- /* @__PURE__ */ i("p", {
2480
- className: En.title,
2481
- children: r
2482
- }),
2483
- /* @__PURE__ */ i("p", {
2484
- className: En.excerpt,
2485
- children: o
2486
- }),
2487
- /* @__PURE__ */ a("div", {
2488
- className: En.footer,
2489
- children: [/* @__PURE__ */ a("div", {
2490
- className: En.author,
2491
- children: [/* @__PURE__ */ i(Ne, {
2492
- size: "md",
2493
- src: s.avatarSrc,
2494
- alt: s.avatarAlt ?? s.name,
2495
- initials: s.initials
2496
- }), /* @__PURE__ */ a("p", {
2497
- className: En.authorText,
2498
- children: [
2499
- s.name,
2500
- " · ",
2501
- s.date
2502
- ]
2470
+ children: /* @__PURE__ */ a("div", {
2471
+ className: [W.card, f ? W.cardVertical : W.cardHorizontal].join(" "),
2472
+ children: [/* @__PURE__ */ i("img", {
2473
+ src: e,
2474
+ alt: t ?? "",
2475
+ className: W.image
2476
+ }), /* @__PURE__ */ a("div", {
2477
+ className: f ? W.bodyVertical : W.bodyHorizontal,
2478
+ children: [
2479
+ /* @__PURE__ */ i(Kt, {
2480
+ variant: "accent",
2481
+ emphasis: "subtle",
2482
+ children: n
2483
+ }),
2484
+ /* @__PURE__ */ i("p", {
2485
+ className: W.title,
2486
+ children: r
2487
+ }),
2488
+ /* @__PURE__ */ i("p", {
2489
+ className: W.excerpt,
2490
+ children: o
2491
+ }),
2492
+ /* @__PURE__ */ a("div", {
2493
+ className: W.footer,
2494
+ children: [/* @__PURE__ */ a("div", {
2495
+ className: W.author,
2496
+ children: [/* @__PURE__ */ i(Pe, {
2497
+ size: "md",
2498
+ src: s.avatarSrc,
2499
+ alt: s.avatarAlt ?? s.name,
2500
+ initials: s.initials
2501
+ }), /* @__PURE__ */ a("p", {
2502
+ className: W.authorText,
2503
+ children: [
2504
+ s.name,
2505
+ " · ",
2506
+ s.date
2507
+ ]
2508
+ })]
2509
+ }), /* @__PURE__ */ i(N, {
2510
+ variant: "secondary",
2511
+ size: "sm",
2512
+ onClick: l,
2513
+ children: c
2503
2514
  })]
2504
- }), /* @__PURE__ */ i(P, {
2505
- variant: "secondary",
2506
- size: "sm",
2507
- onClick: l,
2508
- children: c
2509
- })]
2510
- })
2511
- ]
2512
- })]
2515
+ })
2516
+ ]
2517
+ })]
2518
+ })
2513
2519
  });
2514
2520
  }, On = {
2515
2521
  chip: "_chip_scl8l_1",
@@ -2527,7 +2533,7 @@ var Lt = [
2527
2533
  }, An = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
2528
2534
  let o = kn[n], s = e.isValidElement(t) ? e.cloneElement(t, {
2529
2535
  size: o,
2530
- strokeWidth: M(o)
2536
+ strokeWidth: j(o)
2531
2537
  }) : t;
2532
2538
  return /* @__PURE__ */ i("div", {
2533
2539
  className: [
@@ -2560,7 +2566,7 @@ var Lt = [
2560
2566
  ].filter(Boolean).join(" "),
2561
2567
  children: [o.map((t, n) => /* @__PURE__ */ i("span", {
2562
2568
  className: jn.group__item,
2563
- children: /* @__PURE__ */ i(Ne, {
2569
+ children: /* @__PURE__ */ i(Pe, {
2564
2570
  size: e,
2565
2571
  src: t.src,
2566
2572
  initials: t.initials,
@@ -2608,12 +2614,12 @@ var Lt = [
2608
2614
  }), /* @__PURE__ */ a("div", {
2609
2615
  className: Fn.metaRow,
2610
2616
  children: [
2611
- /* @__PURE__ */ i(Gt, {
2617
+ /* @__PURE__ */ i(Kt, {
2612
2618
  variant: "accent",
2613
2619
  emphasis: "subtle",
2614
2620
  children: n
2615
2621
  }),
2616
- /* @__PURE__ */ i(Gt, {
2622
+ /* @__PURE__ */ i(Kt, {
2617
2623
  variant: "neutral",
2618
2624
  emphasis: "subtle",
2619
2625
  children: o
@@ -2633,7 +2639,7 @@ var Lt = [
2633
2639
  children: [/* @__PURE__ */ i("div", {
2634
2640
  className: Fn.rowLeft,
2635
2641
  children: m
2636
- }), /* @__PURE__ */ i(P, {
2642
+ }), /* @__PURE__ */ i(N, {
2637
2643
  variant: "secondary",
2638
2644
  size: "sm",
2639
2645
  className: Fn.applyBtn,
@@ -2646,7 +2652,7 @@ var Lt = [
2646
2652
  Fn.rootCard,
2647
2653
  f ?? ""
2648
2654
  ].filter(Boolean).join(" "),
2649
- children: [m, /* @__PURE__ */ i(P, {
2655
+ children: [m, /* @__PURE__ */ i(N, {
2650
2656
  variant: "secondary",
2651
2657
  size: "sm",
2652
2658
  onClick: l,
@@ -2666,7 +2672,7 @@ var Lt = [
2666
2672
  s ?? ""
2667
2673
  ].filter(Boolean).join(" "),
2668
2674
  children: [
2669
- e && /* @__PURE__ */ i(Gt, {
2675
+ e && /* @__PURE__ */ i(Kt, {
2670
2676
  variant: "accent",
2671
2677
  emphasis: "subtle",
2672
2678
  children: e
@@ -2839,7 +2845,7 @@ var Lt = [
2839
2845
  viewBox: "0 0 24 24",
2840
2846
  fill: "none",
2841
2847
  stroke: "currentColor",
2842
- strokeWidth: M(18),
2848
+ strokeWidth: j(18),
2843
2849
  strokeLinecap: "round",
2844
2850
  strokeLinejoin: "round",
2845
2851
  width: 18,
@@ -3059,7 +3065,7 @@ var Yn = ({ children: e, style: t, ...n }) => {
3059
3065
  viewBox: "0 0 24 24",
3060
3066
  fill: "none",
3061
3067
  stroke: "currentColor",
3062
- strokeWidth: M(e),
3068
+ strokeWidth: j(e),
3063
3069
  strokeLinecap: "round",
3064
3070
  strokeLinejoin: "round",
3065
3071
  width: e,
@@ -3130,9 +3136,9 @@ var Yn = ({ children: e, style: t, ...n }) => {
3130
3136
  let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, y] = e.useState({
3131
3137
  top: 0,
3132
3138
  right: 0
3133
- }), [x, S] = e.useState([]), C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = e.useRef(null), D = n === void 0 ? m : n, k = !p && (D.trim().length > 0 || t === "typing" || x.length > 0), A = () => {
3139
+ }), [x, S] = e.useState([]), C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = e.useRef(null), D = n === void 0 ? m : n, ee = !p && (D.trim().length > 0 || t === "typing" || x.length > 0), k = () => {
3134
3140
  w.current?.click();
3135
- }, te = (e) => {
3141
+ }, ne = (e) => {
3136
3142
  let t = e.target.files;
3137
3143
  t && (Array.from(t).forEach((e) => {
3138
3144
  if (e.type.startsWith("image/") || e.type.startsWith("video/")) {
@@ -3147,9 +3153,9 @@ var Yn = ({ children: e, style: t, ...n }) => {
3147
3153
  }, t.readAsDataURL(e);
3148
3154
  }
3149
3155
  }), e.target.value = "");
3150
- }, ne = (e) => {
3156
+ }, re = (e) => {
3151
3157
  S((t) => t.filter((t, n) => n !== e));
3152
- }, re = () => {
3158
+ }, ie = () => {
3153
3159
  if (!g && C.current) {
3154
3160
  let e = C.current.getBoundingClientRect();
3155
3161
  y({
@@ -3158,7 +3164,7 @@ var Yn = ({ children: e, style: t, ...n }) => {
3158
3164
  });
3159
3165
  }
3160
3166
  _(!g);
3161
- }, ie = (e) => {
3167
+ }, ae = (e) => {
3162
3168
  if (C.current) {
3163
3169
  let t = C.current.selectionStart || D.length, n = D.slice(0, t) + e + D.slice(t);
3164
3170
  h(n), o?.(n), C.current.focus(), C.current.setSelectionRange(t + e.length, t + e.length);
@@ -3186,7 +3192,7 @@ var Yn = ({ children: e, style: t, ...n }) => {
3186
3192
  children: [
3187
3193
  /* @__PURE__ */ i(b, {
3188
3194
  size: 16,
3189
- strokeWidth: M(16),
3195
+ strokeWidth: j(16),
3190
3196
  className: er.upload__icon,
3191
3197
  "aria-hidden": "true"
3192
3198
  }),
@@ -3203,8 +3209,8 @@ var Yn = ({ children: e, style: t, ...n }) => {
3203
3209
  })
3204
3210
  })]
3205
3211
  }),
3206
- /* @__PURE__ */ i(He, {
3207
- icon: se,
3212
+ /* @__PURE__ */ i(Ue, {
3213
+ icon: ce,
3208
3214
  variant: "ghost",
3209
3215
  size: "md",
3210
3216
  onClick: d,
@@ -3260,7 +3266,7 @@ var Yn = ({ children: e, style: t, ...n }) => {
3260
3266
  })]
3261
3267
  }), /* @__PURE__ */ i("button", {
3262
3268
  type: "button",
3263
- onClick: () => ne(t),
3269
+ onClick: () => re(t),
3264
3270
  style: {
3265
3271
  position: "absolute",
3266
3272
  top: "-8px",
@@ -3288,17 +3294,17 @@ var Yn = ({ children: e, style: t, ...n }) => {
3288
3294
  type: "file",
3289
3295
  multiple: !0,
3290
3296
  accept: "image/*,video/*",
3291
- onChange: te,
3297
+ onChange: ne,
3292
3298
  style: { display: "none" }
3293
3299
  }),
3294
3300
  /* @__PURE__ */ a("div", {
3295
3301
  className: er.row,
3296
3302
  children: [
3297
- /* @__PURE__ */ i(He, {
3303
+ /* @__PURE__ */ i(Ue, {
3298
3304
  icon: O,
3299
3305
  variant: "ghost",
3300
3306
  size: "sm",
3301
- onClick: A,
3307
+ onClick: k,
3302
3308
  disabled: p,
3303
3309
  "aria-label": "Attach file"
3304
3310
  }),
@@ -3313,19 +3319,19 @@ var Yn = ({ children: e, style: t, ...n }) => {
3313
3319
  n === void 0 && h(e.target.value), o?.(e.target.value);
3314
3320
  },
3315
3321
  onKeyDown: (e) => {
3316
- e.key === "Enter" && k && (e.preventDefault(), s?.());
3322
+ e.key === "Enter" && ee && (e.preventDefault(), s?.());
3317
3323
  }
3318
3324
  }),
3319
- /* @__PURE__ */ i(He, {
3325
+ /* @__PURE__ */ i(Ue, {
3320
3326
  ref: T,
3321
- icon: ee,
3327
+ icon: te,
3322
3328
  variant: "ghost",
3323
3329
  size: "sm",
3324
- onClick: re,
3330
+ onClick: ie,
3325
3331
  disabled: p,
3326
3332
  "aria-label": "Add emoji"
3327
3333
  }),
3328
- g && !p && Te.createPortal(/* @__PURE__ */ i("div", {
3334
+ g && !p && Ee.createPortal(/* @__PURE__ */ i("div", {
3329
3335
  ref: E,
3330
3336
  style: {
3331
3337
  position: "fixed",
@@ -3360,7 +3366,7 @@ var Yn = ({ children: e, style: t, ...n }) => {
3360
3366
  "🤗",
3361
3367
  "😎"
3362
3368
  ].map((e) => /* @__PURE__ */ i("button", {
3363
- onClick: () => ie(e),
3369
+ onClick: () => ae(e),
3364
3370
  style: {
3365
3371
  background: "none",
3366
3372
  border: "none",
@@ -3379,12 +3385,12 @@ var Yn = ({ children: e, style: t, ...n }) => {
3379
3385
  children: e
3380
3386
  }, e))
3381
3387
  }), document.body),
3382
- /* @__PURE__ */ i(He, {
3383
- icon: j,
3388
+ /* @__PURE__ */ i(Ue, {
3389
+ icon: A,
3384
3390
  variant: "primary",
3385
3391
  size: "sm",
3386
3392
  onClick: s,
3387
- disabled: !k,
3393
+ disabled: !ee,
3388
3394
  "aria-label": "Send message"
3389
3395
  })
3390
3396
  ]
@@ -3500,7 +3506,7 @@ var q = {
3500
3506
  }),
3501
3507
  e === "muted" && /* @__PURE__ */ i(s, {
3502
3508
  size: 12,
3503
- strokeWidth: M(12),
3509
+ strokeWidth: j(12),
3504
3510
  className: q.item__mute,
3505
3511
  "aria-hidden": "true"
3506
3512
  }),
@@ -3556,13 +3562,13 @@ var q = {
3556
3562
  x: e.clientX - t.left,
3557
3563
  y: e.clientY - t.top
3558
3564
  });
3559
- }, m = e.useRef(null), h = It(m), g = [
3565
+ }, m = e.useRef(null), h = Lt(m), g = [
3560
3566
  1,
3561
3567
  2,
3562
3568
  3,
3563
3569
  4,
3564
3570
  5
3565
- ].map((e) => h(`--color-chart-${e}`) ?? Lt[e - 1]), _ = {
3571
+ ].map((e) => h(`--color-chart-${e}`) ?? Rt[e - 1]), _ = {
3566
3572
  ...or[n],
3567
3573
  h: s ?? or[n].h
3568
3574
  }, v = (_.outer - _.inner) / 2 - 7;
@@ -3571,10 +3577,10 @@ var q = {
3571
3577
  className: [ar.chart, c ?? ""].filter(Boolean).join(" "),
3572
3578
  style: { height: _.h },
3573
3579
  onMouseMove: p,
3574
- children: [/* @__PURE__ */ i(xe, {
3580
+ children: [/* @__PURE__ */ i(Se, {
3575
3581
  width: "100%",
3576
3582
  height: "100%",
3577
- children: /* @__PURE__ */ a(ge, { children: [/* @__PURE__ */ i(he, {
3583
+ children: /* @__PURE__ */ a(_e, { children: [/* @__PURE__ */ i(ge, {
3578
3584
  data: t,
3579
3585
  dataKey: "value",
3580
3586
  nameKey: "label",
@@ -3588,12 +3594,12 @@ var q = {
3588
3594
  onMouseLeave: () => {
3589
3595
  u(null), f(null);
3590
3596
  },
3591
- children: t.map((e, t) => /* @__PURE__ */ i(de, {
3597
+ children: t.map((e, t) => /* @__PURE__ */ i(fe, {
3592
3598
  fill: g[t % g.length],
3593
3599
  fillOpacity: l !== null && t !== l ? .45 : 1
3594
3600
  }, t))
3595
- }), /* @__PURE__ */ i(Se, {
3596
- content: /* @__PURE__ */ i(zt, {}),
3601
+ }), /* @__PURE__ */ i(Ce, {
3602
+ content: /* @__PURE__ */ i(Bt, {}),
3597
3603
  wrapperStyle: { zIndex: 50 },
3598
3604
  position: d ?? void 0
3599
3605
  })] })
@@ -3619,15 +3625,15 @@ var q = {
3619
3625
  "no-data": {
3620
3626
  icon: /* @__PURE__ */ i(C, {
3621
3627
  size: 18,
3622
- strokeWidth: M(18)
3628
+ strokeWidth: j(18)
3623
3629
  }),
3624
3630
  title: "No data yet",
3625
3631
  description: "Records will appear here once they are added."
3626
3632
  },
3627
3633
  "no-results": {
3628
- icon: /* @__PURE__ */ i(A, {
3634
+ icon: /* @__PURE__ */ i(k, {
3629
3635
  size: 18,
3630
- strokeWidth: M(18)
3636
+ strokeWidth: j(18)
3631
3637
  }),
3632
3638
  title: "No results found",
3633
3639
  description: "Try adjusting your search or removing filters."
@@ -3635,7 +3641,7 @@ var q = {
3635
3641
  error: {
3636
3642
  icon: /* @__PURE__ */ i(h, {
3637
3643
  size: 18,
3638
- strokeWidth: M(18)
3644
+ strokeWidth: j(18)
3639
3645
  }),
3640
3646
  title: "Couldn't load data",
3641
3647
  description: "Something went wrong while fetching records."
@@ -3699,9 +3705,9 @@ var q = {
3699
3705
  s ?? ""
3700
3706
  ].filter(Boolean).join(" "),
3701
3707
  children: [
3702
- t === "add" && /* @__PURE__ */ i(k, {
3708
+ t === "add" && /* @__PURE__ */ i(ee, {
3703
3709
  size: 14,
3704
- strokeWidth: M(14),
3710
+ strokeWidth: j(14),
3705
3711
  className: dr.chip__lead,
3706
3712
  "aria-hidden": "true"
3707
3713
  }),
@@ -3711,7 +3717,7 @@ var q = {
3711
3717
  }),
3712
3718
  t === "default" && /* @__PURE__ */ i(d, {
3713
3719
  size: 14,
3714
- strokeWidth: M(14),
3720
+ strokeWidth: j(14),
3715
3721
  className: dr.chip__trail,
3716
3722
  "aria-hidden": "true"
3717
3723
  }),
@@ -3722,9 +3728,9 @@ var q = {
3722
3728
  onClick: (e) => {
3723
3729
  e.stopPropagation(), f();
3724
3730
  },
3725
- children: /* @__PURE__ */ i(se, {
3731
+ children: /* @__PURE__ */ i(ce, {
3726
3732
  size: 14,
3727
- strokeWidth: M(14),
3733
+ strokeWidth: j(14),
3728
3734
  "aria-hidden": "true"
3729
3735
  })
3730
3736
  })
@@ -3746,7 +3752,7 @@ var q = {
3746
3752
  "input--unstyled": "_input--unstyled_1nyia_120"
3747
3753
  }, gr = 16, _r = (t) => e.isValidElement(t) ? e.cloneElement(t, {
3748
3754
  size: gr,
3749
- strokeWidth: M(gr)
3755
+ strokeWidth: j(gr)
3750
3756
  }) : t, vr = e.forwardRef(({ label: t, description: n, error: r, size: o = "md", unstyled: s, leadingIcon: c, trailingIcon: l, disabled: u, id: d, className: f, ...p }, m) => {
3751
3757
  let h = e.useId(), g = d ?? h, _ = !!r;
3752
3758
  return /* @__PURE__ */ a("div", {
@@ -3807,13 +3813,13 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
3807
3813
  "label",
3808
3814
  "custom-label"
3809
3815
  ]), Sr = ({ data: t, series: n, xKey: r = "label", variant: o = "default", labelKey: s, size: c = "md", height: l, showLegend: u, className: d }) => {
3810
- let f = e.useRef(null), p = It(f), m = [
3816
+ let f = e.useRef(null), p = Lt(f), m = [
3811
3817
  1,
3812
3818
  2,
3813
3819
  3,
3814
3820
  4,
3815
3821
  5
3816
- ].map((e) => p(`--color-chart-${e}`) ?? Lt[e - 1]), h = [
3822
+ ].map((e) => p(`--color-chart-${e}`) ?? Rt[e - 1]), h = [
3817
3823
  m[1],
3818
3824
  m[0],
3819
3825
  ...m.slice(2)
@@ -3871,10 +3877,10 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
3871
3877
  return /* @__PURE__ */ i("div", {
3872
3878
  ref: f,
3873
3879
  className: [yr.chart, d ?? ""].filter(Boolean).join(" "),
3874
- children: /* @__PURE__ */ i(xe, {
3880
+ children: /* @__PURE__ */ i(Se, {
3875
3881
  width: "100%",
3876
3882
  height: l ?? br[c],
3877
- children: /* @__PURE__ */ a(me, {
3883
+ children: /* @__PURE__ */ a(he, {
3878
3884
  data: t,
3879
3885
  margin: {
3880
3886
  top: 8,
@@ -3883,12 +3889,12 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
3883
3889
  left: 12
3884
3890
  },
3885
3891
  children: [
3886
- /* @__PURE__ */ i(ue, {
3892
+ /* @__PURE__ */ i(de, {
3887
3893
  strokeDasharray: "3 3",
3888
3894
  stroke: g,
3889
3895
  vertical: !1
3890
3896
  }),
3891
- /* @__PURE__ */ i(Ce, {
3897
+ /* @__PURE__ */ i(we, {
3892
3898
  dataKey: r,
3893
3899
  stroke: _,
3894
3900
  fontSize: 12,
@@ -3896,15 +3902,15 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
3896
3902
  axisLine: !1,
3897
3903
  interval: 0
3898
3904
  }),
3899
- /* @__PURE__ */ i(Se, {
3905
+ /* @__PURE__ */ i(Ce, {
3900
3906
  cursor: {
3901
3907
  stroke: p("--color-border-default") ?? "#dbdad7",
3902
3908
  strokeWidth: 1
3903
3909
  },
3904
- content: /* @__PURE__ */ i(zt, {}),
3910
+ content: /* @__PURE__ */ i(Bt, {}),
3905
3911
  wrapperStyle: { zIndex: 50 }
3906
3912
  }),
3907
- u && /* @__PURE__ */ i(fe, { wrapperStyle: {
3913
+ u && /* @__PURE__ */ i(pe, { wrapperStyle: {
3908
3914
  fontSize: 12,
3909
3915
  fontFamily: "var(--font-sans)"
3910
3916
  } }),
@@ -3915,7 +3921,7 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
3915
3921
  stroke: v,
3916
3922
  strokeWidth: 1.5
3917
3923
  } : !1;
3918
- return /* @__PURE__ */ i(pe, {
3924
+ return /* @__PURE__ */ i(me, {
3919
3925
  type: b,
3920
3926
  dataKey: e,
3921
3927
  stroke: n,
@@ -3993,7 +3999,7 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
3993
3999
  }),
3994
4000
  e === "checked" && /* @__PURE__ */ i(l, {
3995
4001
  size: 16,
3996
- strokeWidth: M(16),
4002
+ strokeWidth: j(16),
3997
4003
  className: Er.item__check,
3998
4004
  "aria-hidden": "true"
3999
4005
  })
@@ -4066,7 +4072,7 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
4066
4072
  children: [
4067
4073
  /* @__PURE__ */ i(b, {
4068
4074
  size: 18,
4069
- strokeWidth: M(18),
4075
+ strokeWidth: j(18),
4070
4076
  className: J.file__icon,
4071
4077
  "aria-hidden": "true"
4072
4078
  }),
@@ -4082,7 +4088,7 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
4082
4088
  }),
4083
4089
  /* @__PURE__ */ i(_, {
4084
4090
  size: 16,
4085
- strokeWidth: M(16),
4091
+ strokeWidth: j(16),
4086
4092
  className: J.file__dl,
4087
4093
  "aria-hidden": "true"
4088
4094
  })
@@ -4101,7 +4107,7 @@ var yr = { chart: "_chart_18fgd_2" }, br = {
4101
4107
  children: s
4102
4108
  }), m && /* @__PURE__ */ i(u, {
4103
4109
  size: 13,
4104
- strokeWidth: M(13),
4110
+ strokeWidth: j(13),
4105
4111
  className: J.foot__receipt,
4106
4112
  "aria-hidden": "true"
4107
4113
  })] })]
@@ -4162,7 +4168,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4162
4168
  "aria-label": "Previous page",
4163
4169
  children: /* @__PURE__ */ i(f, {
4164
4170
  size: 16,
4165
- strokeWidth: M(16)
4171
+ strokeWidth: j(16)
4166
4172
  })
4167
4173
  }),
4168
4174
  d.map((e) => typeof e == "number" ? /* @__PURE__ */ i("button", {
@@ -4185,7 +4191,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4185
4191
  "aria-label": "Next page",
4186
4192
  children: /* @__PURE__ */ i(p, {
4187
4193
  size: 16,
4188
- strokeWidth: M(16)
4194
+ strokeWidth: j(16)
4189
4195
  })
4190
4196
  })
4191
4197
  ]
@@ -4275,46 +4281,46 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4275
4281
  optionHighlight: "_optionHighlight_1b512_151",
4276
4282
  "optionHighlight--animated": "_optionHighlight--animated_1b512_201"
4277
4283
  }, Fr = ({ label: t, description: n, error: r, size: o = "md", placeholder: s = "Select an option", options: c, value: l, defaultValue: u, onChange: d, disabled: f, id: p, className: m }) => {
4278
- let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, E] = e.useState(!1), [D, O] = e.useState(0), k = e.useRef(null), A = e.useRef(null), j = e.useRef(null), ee = e.useRef({}), [te, ne] = e.useState(null), [re, ie] = e.useState(!1);
4284
+ let h = e.useId(), g = `${p ?? h}-trigger`, _ = `${p ?? h}-panel`, v = !!r, [y, b] = e.useState(u), x = l === void 0 ? y : l, S = c.find((e) => e.value === x), [C, w] = e.useState(!1), [T, E] = e.useState(!1), [D, O] = e.useState(0), ee = e.useRef(null), k = e.useRef(null), A = e.useRef(null), te = e.useRef({}), [ne, re] = e.useState(null), [ie, ae] = e.useState(!1);
4279
4285
  e.useLayoutEffect(() => {
4280
- let e = ee.current[D];
4286
+ let e = te.current[D];
4281
4287
  if (!e) {
4282
- ne(null);
4288
+ re(null);
4283
4289
  return;
4284
4290
  }
4285
- ne({
4291
+ re({
4286
4292
  top: e.offsetTop,
4287
4293
  height: e.offsetHeight
4288
4294
  });
4289
4295
  }, [D, c.length]), e.useLayoutEffect(() => {
4290
4296
  if (!T) {
4291
- ie(!1);
4297
+ ae(!1);
4292
4298
  return;
4293
4299
  }
4294
- ie(!1);
4295
- let e = window.requestAnimationFrame(() => ie(!0));
4300
+ ae(!1);
4301
+ let e = window.requestAnimationFrame(() => ae(!0));
4296
4302
  return () => window.cancelAnimationFrame(e);
4297
4303
  }, [T]), e.useEffect(() => {
4298
- if (!j.current) return;
4304
+ if (!A.current) return;
4299
4305
  let e = new ResizeObserver(() => {
4300
- let e = ee.current[D];
4301
- e && ne({
4306
+ let e = te.current[D];
4307
+ e && re({
4302
4308
  top: e.offsetTop,
4303
4309
  height: e.offsetHeight
4304
4310
  });
4305
4311
  });
4306
- return e.observe(j.current), () => e.disconnect();
4312
+ return e.observe(A.current), () => e.disconnect();
4307
4313
  }, [T]);
4308
- let ae = rt(k, T), [oe, se] = e.useState(null);
4314
+ let oe = it(ee, T), [se, ce] = e.useState(null);
4309
4315
  e.useEffect(() => {
4310
4316
  C && E(!0);
4311
4317
  }, [C]), e.useLayoutEffect(() => {
4312
4318
  if (!C) return;
4313
4319
  let e = () => {
4314
- let e = A.current;
4320
+ let e = k.current;
4315
4321
  if (!e) return;
4316
4322
  let t = e.getBoundingClientRect();
4317
- se({
4323
+ ce({
4318
4324
  top: t.bottom + 4,
4319
4325
  left: t.left,
4320
4326
  width: t.width
@@ -4327,7 +4333,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4327
4333
  if (!C) return;
4328
4334
  let e = (e) => {
4329
4335
  let t = e.target;
4330
- k.current?.contains(t) || j.current?.contains(t) || w(!1);
4336
+ ee.current?.contains(t) || A.current?.contains(t) || w(!1);
4331
4337
  };
4332
4338
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
4333
4339
  }, [C]), e.useEffect(() => {
@@ -4339,9 +4345,9 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4339
4345
  c,
4340
4346
  x
4341
4347
  ]);
4342
- let ce = (e) => {
4348
+ let le = (e) => {
4343
4349
  e.disabled || (l === void 0 && b(e.value), d?.(e.value), w(!1));
4344
- }, le = (e) => {
4350
+ }, ue = (e) => {
4345
4351
  O((t) => {
4346
4352
  let n = t;
4347
4353
  for (let t = 0; t < c.length; t += 1) if (n = (n + e + c.length) % c.length, !c[n]?.disabled) return n;
@@ -4350,7 +4356,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4350
4356
  };
4351
4357
  return /* @__PURE__ */ a("div", {
4352
4358
  className: [Y.field, m ?? ""].filter(Boolean).join(" "),
4353
- ref: k,
4359
+ ref: ee,
4354
4360
  children: [
4355
4361
  t && /* @__PURE__ */ i("label", {
4356
4362
  htmlFor: g,
@@ -4360,7 +4366,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4360
4366
  /* @__PURE__ */ a("div", {
4361
4367
  className: Y.anchor,
4362
4368
  children: [/* @__PURE__ */ a("div", {
4363
- ref: A,
4369
+ ref: k,
4364
4370
  id: g,
4365
4371
  role: "combobox",
4366
4372
  tabIndex: f ? -1 : 0,
@@ -4377,14 +4383,14 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4377
4383
  e.preventDefault(), w(!0);
4378
4384
  return;
4379
4385
  }
4380
- if (C) if (e.key === "ArrowDown") e.preventDefault(), le(1);
4381
- else if (e.key === "ArrowUp") e.preventDefault(), le(-1);
4386
+ if (C) if (e.key === "ArrowDown") e.preventDefault(), ue(1);
4387
+ else if (e.key === "ArrowUp") e.preventDefault(), ue(-1);
4382
4388
  else if (e.key === "Home") e.preventDefault(), O(0);
4383
4389
  else if (e.key === "End") e.preventDefault(), O(c.length - 1);
4384
4390
  else if (e.key === "Enter" || e.key === " ") {
4385
4391
  e.preventDefault();
4386
4392
  let t = c[D];
4387
- t && ce(t);
4393
+ t && le(t);
4388
4394
  } else e.key === "Escape" && (e.preventDefault(), w(!1));
4389
4395
  }
4390
4396
  },
@@ -4407,47 +4413,47 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4407
4413
  viewBox: "0 0 24 24",
4408
4414
  fill: "none",
4409
4415
  stroke: "currentColor",
4410
- strokeWidth: M(16),
4416
+ strokeWidth: j(16),
4411
4417
  strokeLinecap: "round",
4412
4418
  strokeLinejoin: "round",
4413
4419
  children: /* @__PURE__ */ i("path", { d: "m6 9 6 6 6-6" })
4414
4420
  })
4415
4421
  })]
4416
- }), T && oe && Ee(/* @__PURE__ */ a("div", {
4417
- ref: j,
4422
+ }), T && se && De(/* @__PURE__ */ a("div", {
4423
+ ref: A,
4418
4424
  id: _,
4419
4425
  role: "listbox",
4420
4426
  className: [
4421
- ae,
4427
+ oe,
4422
4428
  Y.panel,
4423
4429
  C ? Y["panel--entering"] : Y["panel--exiting"]
4424
4430
  ].filter(Boolean).join(" "),
4425
4431
  style: {
4426
4432
  position: "fixed",
4427
- top: oe.top,
4428
- left: oe.left,
4429
- width: oe.width
4433
+ top: se.top,
4434
+ left: se.left,
4435
+ width: se.width
4430
4436
  },
4431
4437
  onAnimationEnd: () => {
4432
4438
  C || E(!1);
4433
4439
  },
4434
- children: [te && /* @__PURE__ */ i("span", {
4440
+ children: [ne && /* @__PURE__ */ i("span", {
4435
4441
  "aria-hidden": "true",
4436
- className: [Y.optionHighlight, re ? Y["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
4442
+ className: [Y.optionHighlight, ie ? Y["optionHighlight--animated"] : ""].filter(Boolean).join(" "),
4437
4443
  style: {
4438
- transform: `translateY(${te.top}px)`,
4439
- height: te.height
4444
+ transform: `translateY(${ne.top}px)`,
4445
+ height: ne.height
4440
4446
  }
4441
4447
  }), c.map((e, t) => /* @__PURE__ */ a("div", {
4442
4448
  ref: (e) => {
4443
- ee.current[t] = e;
4449
+ te.current[t] = e;
4444
4450
  },
4445
4451
  id: `${_}-opt-${t}`,
4446
4452
  role: "option",
4447
4453
  "aria-selected": e.value === x,
4448
4454
  "aria-disabled": e.disabled || void 0,
4449
4455
  onMouseEnter: () => !e.disabled && O(t),
4450
- onClick: () => ce(e),
4456
+ onClick: () => le(e),
4451
4457
  className: [
4452
4458
  Y.option,
4453
4459
  e.value === x ? Y["option--selected"] : "",
@@ -4538,7 +4544,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4538
4544
  "aria-hidden": "true",
4539
4545
  children: /* @__PURE__ */ i(c, {
4540
4546
  size: 16,
4541
- strokeWidth: M(16)
4547
+ strokeWidth: j(16)
4542
4548
  })
4543
4549
  })]
4544
4550
  })
@@ -4565,7 +4571,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4565
4571
  "aria-hidden": "true",
4566
4572
  children: /* @__PURE__ */ i(m, {
4567
4573
  size: 16,
4568
- strokeWidth: M(16)
4574
+ strokeWidth: j(16)
4569
4575
  })
4570
4576
  }),
4571
4577
  !o && e === "brand-toggle" && /* @__PURE__ */ i("button", {
@@ -4575,7 +4581,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4575
4581
  "aria-label": "Collapse sidebar",
4576
4582
  children: /* @__PURE__ */ i(c, {
4577
4583
  size: 18,
4578
- strokeWidth: M(18)
4584
+ strokeWidth: j(18)
4579
4585
  })
4580
4586
  })
4581
4587
  ]
@@ -4609,7 +4615,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4609
4615
  "aria-hidden": "true",
4610
4616
  children: /* @__PURE__ */ i(e, {
4611
4617
  size: 18,
4612
- strokeWidth: M(18)
4618
+ strokeWidth: j(18)
4613
4619
  })
4614
4620
  }),
4615
4621
  /* @__PURE__ */ i("span", {
@@ -4625,7 +4631,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4625
4631
  "aria-hidden": "true",
4626
4632
  children: /* @__PURE__ */ i(p, {
4627
4633
  size: 16,
4628
- strokeWidth: M(16)
4634
+ strokeWidth: j(16)
4629
4635
  })
4630
4636
  })
4631
4637
  ] }), b = {
@@ -4655,7 +4661,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4655
4661
  promo__dismiss: "_promo__dismiss_1524z_23",
4656
4662
  promo__desc: "_promo__desc_1524z_30",
4657
4663
  promo__cta: "_promo__cta_1524z_33"
4658
- }, Gr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = te }) => /* @__PURE__ */ a("div", {
4664
+ }, Gr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = ne }) => /* @__PURE__ */ a("div", {
4659
4665
  className: [Wr.promo, Wr[`promo--${e}`]].join(" "),
4660
4666
  children: [
4661
4667
  /* @__PURE__ */ a("div", {
@@ -4666,7 +4672,7 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4666
4672
  "aria-hidden": "true",
4667
4673
  children: /* @__PURE__ */ i(c, {
4668
4674
  size: 16,
4669
- strokeWidth: M(16)
4675
+ strokeWidth: j(16)
4670
4676
  })
4671
4677
  }),
4672
4678
  /* @__PURE__ */ i("span", {
@@ -4678,9 +4684,9 @@ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4678
4684
  className: Wr.promo__dismiss,
4679
4685
  onClick: s,
4680
4686
  "aria-label": "Dismiss",
4681
- children: /* @__PURE__ */ i(se, {
4687
+ children: /* @__PURE__ */ i(ce, {
4682
4688
  size: 14,
4683
- strokeWidth: M(14)
4689
+ strokeWidth: j(14)
4684
4690
  })
4685
4691
  })
4686
4692
  ]
@@ -4811,8 +4817,8 @@ var ei = {
4811
4817
  "card--trend-down": "_card--trend-down_1qi93_69",
4812
4818
  card__description: "_card__description_1qi93_72"
4813
4819
  }, ti = {
4814
- up: ae,
4815
- down: ie,
4820
+ up: oe,
4821
+ down: ae,
4816
4822
  flat: w
4817
4823
  }, ni = {
4818
4824
  up: "success",
@@ -4853,7 +4859,7 @@ var ei = {
4853
4859
  "aria-hidden": "true",
4854
4860
  children: /* @__PURE__ */ i(u, {
4855
4861
  size: 18,
4856
- strokeWidth: M(18)
4862
+ strokeWidth: j(18)
4857
4863
  })
4858
4864
  }),
4859
4865
  /* @__PURE__ */ i("span", {
@@ -4867,7 +4873,7 @@ var ei = {
4867
4873
  "aria-label": "More options",
4868
4874
  children: /* @__PURE__ */ i(T, {
4869
4875
  size: 16,
4870
- strokeWidth: M(16)
4876
+ strokeWidth: j(16)
4871
4877
  })
4872
4878
  })
4873
4879
  ]
@@ -4879,7 +4885,7 @@ var ei = {
4879
4885
  r && /* @__PURE__ */ i(ri, { data: r }),
4880
4886
  (o || n) && /* @__PURE__ */ a("div", {
4881
4887
  className: ei.card__meta,
4882
- children: [o && /* @__PURE__ */ i(Gt, {
4888
+ children: [o && /* @__PURE__ */ i(Kt, {
4883
4889
  variant: c ?? ni[s],
4884
4890
  leftIcon: /* @__PURE__ */ i(m, {
4885
4891
  size: 12,
@@ -4973,8 +4979,8 @@ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4973
4979
  }
4974
4980
  let e = [...n], [t] = e.splice(C, 1);
4975
4981
  e.splice(T, 0, t), u?.(e), w(null), E(null);
4976
- }, k = () => y(b ? [] : n.map((e, t) => t)), A = (e) => y(v.includes(e) ? v.filter((t) => t !== e) : [...v, e]), j = (e) => (t) => {
4977
- t.target.closest("a, button, input, select, textarea, label, [role=\"button\"], [draggable=\"true\"]") || window.getSelection()?.isCollapsed && A(e);
4982
+ }, ee = () => y(b ? [] : n.map((e, t) => t)), k = (e) => y(v.includes(e) ? v.filter((t) => t !== e) : [...v, e]), A = (e) => (t) => {
4983
+ t.target.closest("a, button, input, select, textarea, label, [role=\"button\"], [draggable=\"true\"]") || window.getSelection()?.isCollapsed && k(e);
4978
4984
  };
4979
4985
  return m === "stacked" ? /* @__PURE__ */ i("div", {
4980
4986
  className: [Q.stackedList, p ?? ""].filter(Boolean).join(" "),
@@ -4983,7 +4989,7 @@ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4983
4989
  let o = v.includes(n);
4984
4990
  return /* @__PURE__ */ a("div", {
4985
4991
  role: "listitem",
4986
- onClick: r ? j(n) : void 0,
4992
+ onClick: r ? A(n) : void 0,
4987
4993
  className: [
4988
4994
  Q.card,
4989
4995
  o ? Q["card--selected"] : "",
@@ -4993,7 +4999,7 @@ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4993
4999
  className: Q.card__selectRow,
4994
5000
  children: /* @__PURE__ */ i(ci, {
4995
5001
  checked: o,
4996
- onChange: () => A(n),
5002
+ onChange: () => k(n),
4997
5003
  label: `Select row ${n + 1}`
4998
5004
  })
4999
5005
  }), t.map((t) => /* @__PURE__ */ a("div", {
@@ -5030,7 +5036,7 @@ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
5030
5036
  children: /* @__PURE__ */ i(ci, {
5031
5037
  checked: b,
5032
5038
  indeterminate: S,
5033
- onChange: k,
5039
+ onChange: ee,
5034
5040
  label: "Select all rows"
5035
5041
  })
5036
5042
  }),
@@ -5047,7 +5053,7 @@ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
5047
5053
  let o = v.includes(n);
5048
5054
  return /* @__PURE__ */ a("tr", {
5049
5055
  "data-hover-item": "",
5050
- onClick: r ? j(n) : void 0,
5056
+ onClick: r ? A(n) : void 0,
5051
5057
  onDragOver: l ? (e) => {
5052
5058
  e.preventDefault(), E(n);
5053
5059
  } : void 0,
@@ -5082,7 +5088,7 @@ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
5082
5088
  className: Q.checkCell,
5083
5089
  children: /* @__PURE__ */ i(ci, {
5084
5090
  checked: o,
5085
- onChange: () => A(n),
5091
+ onChange: () => k(n),
5086
5092
  label: `Select row ${n + 1}`
5087
5093
  })
5088
5094
  }),
@@ -5150,7 +5156,7 @@ var ui = {
5150
5156
  onClick: () => m(e.value),
5151
5157
  children: [n && /* @__PURE__ */ i(n, {
5152
5158
  size: 16,
5153
- strokeWidth: M(16),
5159
+ strokeWidth: j(16),
5154
5160
  "aria-hidden": "true"
5155
5161
  }), e.label]
5156
5162
  }, e.value);
@@ -5240,7 +5246,7 @@ var ui = {
5240
5246
  bar__accountChevron: "_bar__accountChevron_yqi1k_98",
5241
5247
  "bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
5242
5248
  }, mi = ({ type: e = "search", density: t = "md", left: n, showToggle: s = !0, onToggle: c, toggleIcon: l = E, showActions: u = !0, showHelp: f = !0, hasUnread: p = !1, rightSlot: m, account: h, accountOpen: _ = !1, avatar: v, title: y, subtitle: b, actions: x, className: S }) => {
5243
- let C = Jn(), w = Jn(), T = t === "md" ? 20 : 18, D = M(T);
5249
+ let C = Jn(), w = Jn(), T = t === "md" ? 20 : 18, D = j(T);
5244
5250
  return /* @__PURE__ */ i("header", {
5245
5251
  className: [
5246
5252
  $.bar,
@@ -5331,7 +5337,7 @@ var ui = {
5331
5337
  className: $.bar__account,
5332
5338
  children: [h, /* @__PURE__ */ i(d, {
5333
5339
  size: 16,
5334
- strokeWidth: M(16),
5340
+ strokeWidth: j(16),
5335
5341
  className: [$.bar__accountChevron, _ ? $["bar__accountChevron--open"] : ""].filter(Boolean).join(" ")
5336
5342
  })]
5337
5343
  })
@@ -5341,4 +5347,4 @@ var ui = {
5341
5347
  });
5342
5348
  };
5343
5349
  //#endregion
5344
- export { $t as $, $n as A, Mn as B, vr as C, ze as Ct, ir as D, ke as Dt, sr as E, Ne as Et, Hn as F, Cn as G, Dn as H, zn as I, _n as J, bn as K, Rn as L, Yn as M, Jn as N, rr as O, Oe as Ot, Un as P, cn as Q, In as R, Sr as S, He as St, ur as T, Pe as Tt, Tn as U, An as V, wn as W, pn as X, hn as Y, un as Z, Mr as _, rt as _t, ai as a, zt as at, wr as b, We as bt, qr as c, Ft as ct, Hr as d, kt as dt, Qt as et, Vr as f, Ot as ft, Pr as g, Ct as gt, Fr as h, _t as ht, li as i, Ut as it, Zn as j, tr as k, M as kt, Gr as l, Mt as lt, Lr as m, Tt as mt, pi as n, qt as nt, $r as o, Lt as ot, zr as p, lt as pt, vn as q, di as r, Gt as rt, Yr as s, It as st, mi as t, Xt as tt, Ur as u, At as ut, Or as v, tt as vt, mr as w, Le as wt, Tr as x, P as xt, Dr as y, $e as yt, Pn as z };
5350
+ export { en as $, $n as A, Mn as B, vr as C, Be as Ct, ir as D, Ae as Dt, sr as E, Pe as Et, Hn as F, wn as G, Dn as H, zn as I, vn as J, xn as K, Rn as L, Yn as M, Jn as N, rr as O, ke as Ot, Un as P, ln as Q, In as R, Sr as S, Ue as St, ur as T, Fe as Tt, En as U, An as V, Tn as W, mn as X, gn as Y, dn as Z, Mr as _, it as _t, ai as a, Bt as at, wr as b, Ge as bt, qr as c, It as ct, Hr as d, At as dt, $t as et, Vr as f, kt as ft, Pr as g, wt as gt, Fr as h, vt as ht, li as i, Wt as it, Zn as j, tr as k, j as kt, Gr as l, Nt as lt, Lr as m, Et as mt, pi as n, Jt as nt, $r as o, Rt as ot, zr as p, ut as pt, yn as q, di as r, Kt as rt, Yr as s, Lt as st, mi as t, Zt as tt, Ur as u, jt as ut, Or as v, nt as vt, mr as w, Re as wt, Tr as x, N as xt, Dr as y, et as yt, Pn as z };