@sakaniui/react 0.4.1 → 0.4.3

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.
@@ -270,7 +270,7 @@ var Be = {
270
270
  })
271
271
  }));
272
272
  He.displayName = "IconButton";
273
- var P = {
273
+ var Ue = {
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 P = {
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
- }, F = e.forwardRef(({ variant: e = "primary", size: t = "md", leftIcon: n, rightIcon: r, loading: o = !1, disabled: s, children: c, className: l, ...u }, d) => {
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) => {
291
291
  let f = s || o;
292
292
  return /* @__PURE__ */ a("button", {
293
293
  ref: d,
294
294
  className: [
295
- P.button,
296
- P[`button--${e}`],
297
- P[`button--${t}`],
298
- o ? P["button--loading"] : "",
299
- n && !o ? P["button--hasLeftIcon"] : "",
300
- r && !o ? P["button--hasRightIcon"] : "",
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"] : "",
301
301
  l ?? ""
302
302
  ].filter(Boolean).join(" "),
303
303
  disabled: f,
@@ -305,7 +305,7 @@ var P = {
305
305
  ...u,
306
306
  children: [
307
307
  o && /* @__PURE__ */ i("span", {
308
- className: [P.button__icon, P.button__spinner].join(" "),
308
+ className: [Ue.button__icon, Ue.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 P = {
317
317
  })
318
318
  }),
319
319
  n && !o && /* @__PURE__ */ i("span", {
320
- className: P.button__icon,
320
+ className: Ue.button__icon,
321
321
  "aria-hidden": "true",
322
322
  children: n
323
323
  }),
324
324
  /* @__PURE__ */ i("span", {
325
- className: P.button__label,
325
+ className: Ue.button__label,
326
326
  children: c
327
327
  }),
328
328
  r && !o && /* @__PURE__ */ i("span", {
329
- className: P.button__icon,
329
+ className: Ue.button__icon,
330
330
  "aria-hidden": "true",
331
331
  children: r
332
332
  })
333
333
  ]
334
334
  });
335
335
  });
336
- F.displayName = "Button";
337
- var I = {
336
+ P.displayName = "Button";
337
+ var F = {
338
338
  wrap: "_wrap_3mj75_1",
339
339
  "wrap--vertical": "_wrap--vertical_3mj75_7",
340
340
  "wrap--horizontal": "_wrap--horizontal_3mj75_11",
@@ -348,36 +348,36 @@ var I = {
348
348
  hint: "_hint_3mj75_79",
349
349
  link: "_link_3mj75_88",
350
350
  input: "_input_3mj75_92"
351
- }, Ue = ({ 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
+ }, 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 }) => {
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: [I.textStack, v ? "" : I["textStack--center"]].filter(Boolean).join(" "),
355
+ className: [F.textStack, v ? "" : F["textStack--center"]].filter(Boolean).join(" "),
356
356
  children: [/* @__PURE__ */ i("p", {
357
- className: I.title,
357
+ className: F.title,
358
358
  children: s
359
359
  }), /* @__PURE__ */ i("p", {
360
- className: I.hint,
360
+ className: F.hint,
361
361
  children: l
362
362
  })]
363
363
  });
364
364
  return /* @__PURE__ */ a("div", {
365
365
  className: [
366
- I.wrap,
367
- I[`wrap--${r}`],
366
+ F.wrap,
367
+ F[`wrap--${r}`],
368
368
  f ?? ""
369
369
  ].filter(Boolean).join(" "),
370
370
  children: [
371
371
  /* @__PURE__ */ a("div", {
372
- className: I.circleWrap,
372
+ className: F.circleWrap,
373
373
  children: [/* @__PURE__ */ i(Ne, {
374
374
  size: v ? "lg" : "xl",
375
375
  src: _,
376
376
  alt: n,
377
- className: v ? void 0 : I.bigAvatar
377
+ className: v ? void 0 : F.bigAvatar
378
378
  }), !v && /* @__PURE__ */ i("button", {
379
379
  type: "button",
380
- className: I.badge,
380
+ className: F.badge,
381
381
  onClick: b,
382
382
  "aria-label": "Change photo",
383
383
  children: /* @__PURE__ */ i(c, {
@@ -387,8 +387,8 @@ var I = {
387
387
  })]
388
388
  }),
389
389
  v && /* @__PURE__ */ a("div", {
390
- className: I.horizontalContent,
391
- children: [S, y ? /* @__PURE__ */ i(F, {
390
+ className: F.horizontalContent,
391
+ children: [S, y ? /* @__PURE__ */ i(P, {
392
392
  variant: "outline",
393
393
  size: "sm",
394
394
  onClick: x,
@@ -397,7 +397,7 @@ var I = {
397
397
  borderColor: "var(--color-danger-border)"
398
398
  },
399
399
  children: "Remove"
400
- }) : /* @__PURE__ */ i(F, {
400
+ }) : /* @__PURE__ */ i(P, {
401
401
  variant: "outline",
402
402
  size: "sm",
403
403
  onClick: b,
@@ -409,7 +409,7 @@ var I = {
409
409
  onClick: (e) => {
410
410
  e.preventDefault(), b();
411
411
  },
412
- className: I.link,
412
+ className: F.link,
413
413
  style: {
414
414
  color: "var(--color-brand-fg)",
415
415
  fontSize: 16,
@@ -421,7 +421,7 @@ var I = {
421
421
  ref: p,
422
422
  type: "file",
423
423
  accept: o,
424
- className: I.input,
424
+ className: F.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 I = {
432
432
  };
433
433
  //#endregion
434
434
  //#region src/lib/useThemeTick.ts
435
- function We() {
435
+ function Ge() {
436
436
  let [e, r] = n(0);
437
437
  return t(() => {
438
438
  if (typeof document > "u") return;
@@ -444,7 +444,7 @@ function We() {
444
444
  }), () => e.disconnect();
445
445
  }, []), e;
446
446
  }
447
- var L = {
447
+ var I = {
448
448
  balance: "_balance_kaxp5_1",
449
449
  "balance--progress": "_balance--progress_kaxp5_8",
450
450
  content: "_content_kaxp5_17",
@@ -462,14 +462,14 @@ var L = {
462
462
  changeValue__down: "_changeValue__down_kaxp5_117",
463
463
  changeLabel: "_changeLabel_kaxp5_124",
464
464
  ringCard: "_ringCard_kaxp5_132"
465
- }, Ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", Ke = 8, qe = 6, Je = 90, Ye = (e) => {
466
- let t = Math.min(e, Ke);
467
- return Array.from({ length: t }, () => Ge[Math.floor(Math.random() * 36)]).join("");
468
- }, Xe = (e) => typeof window < "u" && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || void 0, Ze = ({ progress: e }) => {
469
- We();
470
- let t = Xe("--color-chart-1") ?? "#ff4700", n = Xe("--color-bg-subtle") ?? "#f5f4f2", r = [{ value: Math.max(0, Math.min(100, e)) }];
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)) }];
471
471
  return /* @__PURE__ */ i("div", {
472
- className: L.ringCard,
472
+ className: I.ringCard,
473
473
  children: /* @__PURE__ */ i(xe, {
474
474
  width: 64,
475
475
  height: 64,
@@ -495,7 +495,7 @@ var L = {
495
495
  })
496
496
  })
497
497
  });
498
- }, Qe = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
498
+ }, $e = ({ label: t = "Available balance", value: n, change: r, progress: o, hidden: s, onToggleHidden: c, className: l }) => {
499
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, _ = () => {
500
500
  let e = !p;
501
501
  c?.(e), u || f(e);
@@ -504,23 +504,23 @@ var L = {
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 >= qe && (clearInterval(t), x(!1));
508
- }, Je);
507
+ e += 1, C((e) => e + 1), e >= Je && (clearInterval(t), x(!1));
508
+ }, Ye);
509
509
  return w.current = !0, () => clearInterval(t);
510
510
  }
511
511
  w.current = p;
512
512
  }, [p]);
513
- let T = e.useMemo(() => Ye(n.length), [n, S]), E = e.useMemo(() => r ? Ye(r.value.length) : "", [r?.value, S]), D = /* @__PURE__ */ a("div", {
514
- className: L.content,
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,
515
515
  children: [
516
516
  /* @__PURE__ */ a("div", {
517
- className: L.labelRow,
517
+ className: I.labelRow,
518
518
  children: [/* @__PURE__ */ i("p", {
519
- className: L.label,
519
+ className: I.label,
520
520
  children: t
521
521
  }), /* @__PURE__ */ i("button", {
522
522
  type: "button",
523
- className: L.hideToggle,
523
+ className: I.hideToggle,
524
524
  "aria-label": p ? "Show balance" : "Hide balance",
525
525
  onClick: _,
526
526
  children: i(p ? y : v, {
@@ -531,26 +531,26 @@ var L = {
531
531
  }),
532
532
  /* @__PURE__ */ i("p", {
533
533
  className: [
534
- L.value,
535
- p ? L["value--hidden"] : "",
536
- b ? L["value--glitching"] : ""
534
+ I.value,
535
+ p ? I["value--hidden"] : "",
536
+ b ? I["value--glitching"] : ""
537
537
  ].filter(Boolean).join(" "),
538
538
  children: p ? T : n
539
539
  }),
540
540
  r && /* @__PURE__ */ a("div", {
541
- className: L.changeRow,
541
+ className: I.changeRow,
542
542
  children: [
543
543
  /* @__PURE__ */ i(g, {
544
544
  size: 24,
545
545
  strokeWidth: 1.5,
546
- className: h === "up" ? L.trendIcon__up : L.trendIcon__down
546
+ className: h === "up" ? I.trendIcon__up : I.trendIcon__down
547
547
  }),
548
548
  /* @__PURE__ */ i("span", {
549
- className: [h === "up" ? L.changeValue__up : L.changeValue__down, b ? L["value--glitching"] : ""].filter(Boolean).join(" "),
549
+ className: [h === "up" ? I.changeValue__up : I.changeValue__down, b ? I["value--glitching"] : ""].filter(Boolean).join(" "),
550
550
  children: p ? E : r.value
551
551
  }),
552
552
  /* @__PURE__ */ i("span", {
553
- className: L.changeLabel,
553
+ className: I.changeLabel,
554
554
  children: r.label ?? "this month"
555
555
  })
556
556
  ]
@@ -559,13 +559,13 @@ var L = {
559
559
  });
560
560
  return /* @__PURE__ */ a("div", {
561
561
  className: [
562
- L.balance,
563
- m ? L["balance--progress"] : "",
562
+ I.balance,
563
+ m ? I["balance--progress"] : "",
564
564
  l ?? ""
565
565
  ].filter(Boolean).join(" "),
566
- children: [m && /* @__PURE__ */ i(Ze, { progress: o }), D]
566
+ children: [m && /* @__PURE__ */ i(Qe, { progress: o }), D]
567
567
  });
568
- }, $e = {
568
+ }, et = {
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 L = {
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
- }, et = ({ value: e, size: t = "md", label: n = "Progress", className: r }) => {
576
+ }, tt = ({ 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 L = {
582
582
  "aria-valuemin": 0,
583
583
  "aria-valuemax": 100,
584
584
  className: [
585
- $e.progress,
586
- $e[`progress--${t}`],
585
+ et.progress,
586
+ et[`progress--${t}`],
587
587
  r ?? ""
588
588
  ].filter(Boolean).join(" "),
589
589
  children: /* @__PURE__ */ i("div", {
590
- className: [$e.progress__fill, a ? $e["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
590
+ className: [et.progress__fill, a ? et["progress__fill--indeterminate"] : ""].filter(Boolean).join(" "),
591
591
  style: a ? void 0 : { width: `${o}%` }
592
592
  })
593
593
  });
594
- }, tt = ["dark", "force-light"];
595
- function nt(e, r) {
594
+ }, nt = ["dark", "force-light"];
595
+ function rt(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(tt.map((e) => `.${e}`).join(", ")), i = n ? tt.find((e) => n.classList.contains(e)) ?? "" : "";
601
+ let n = t.closest(nt.map((e) => `.${e}`).join(", ")), i = n ? nt.find((e) => n.classList.contains(e)) ?? "" : "";
602
602
  a(i);
603
603
  }, [e, r]), i;
604
604
  }
605
- function rt(e, r) {
605
+ function it(e, r) {
606
606
  let [i, a] = n(void 0);
607
607
  return t(() => {
608
608
  if (!r || typeof document > "u") return;
@@ -610,16 +610,22 @@ function rt(e, r) {
610
610
  t && a(t.closest("[data-surface]")?.getAttribute("data-surface") ?? void 0);
611
611
  }, [e, r]), i;
612
612
  }
613
- var it = {
614
- liquid: "_liquid_1vuvb_5",
615
- regular: "_regular_1vuvb_5",
616
- clear: "_clear_1vuvb_15",
617
- "tint-regular": "_tint-regular_1vuvb_37",
618
- "tint-clear": "_tint-clear_1vuvb_38",
619
- "tint-subtle": "_tint-subtle_1vuvb_39",
620
- "tint-none": "_tint-none_1vuvb_40",
621
- interactive: "_interactive_1vuvb_90",
622
- defs: "_defs_1vuvb_92"
613
+ var L = {
614
+ liquid: "_liquid_13biw_6",
615
+ regular: "_regular_13biw_6",
616
+ clear: "_clear_13biw_14",
617
+ "tint-regular": "_tint-regular_13biw_34",
618
+ "tint-clear": "_tint-clear_13biw_35",
619
+ "tint-subtle": "_tint-subtle_13biw_36",
620
+ "tint-none": "_tint-none_13biw_37",
621
+ sourceClip: "_sourceClip_13biw_47",
622
+ source: "_source_13biw_47",
623
+ sourceImage: "_sourceImage_13biw_56",
624
+ sourceCanvas: "_sourceCanvas_13biw_63",
625
+ probe: "_probe_13biw_64",
626
+ fill: "_fill_13biw_65",
627
+ interactive: "_interactive_13biw_120",
628
+ defs: "_defs_13biw_122"
623
629
  };
624
630
  //#endregion
625
631
  //#region src/lib/LiquidGlass.tsx
@@ -627,124 +633,356 @@ function at() {
627
633
  return typeof navigator > "u" ? !1 : !!(navigator.userAgentData?.brands)?.some((e) => /Chromium/i.test(e.brand));
628
634
  }
629
635
  var ot = /* @__PURE__ */ new Map();
630
- function st(e, t, n, r, i, a, o, s, c) {
631
- let l = `${e}x${t}:${n}:${r}:${i}:${a}:${o}:${s.toFixed(3)}:${c.toFixed(3)}`, u = ot.get(l);
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);
632
638
  if (u) return u;
633
- let d = i + Math.abs(a), f = document.createElement("canvas");
634
- f.width = e, f.height = t;
635
- let p = f.getContext("2d");
636
- if (!p) return "";
637
- let m = p.createImageData(e, t), h = m.data, g = Math.min(n, e / 2, t / 2), _ = e / 2, v = t / 2;
638
- for (let n = 0; n < t; n++) for (let l = 0; l < e; l++) {
639
- let u = l + .5, f = n + .5, p = Math.abs(u - _) - (e / 2 - g), m = Math.abs(f - v) - (t / 2 - g), y = Math.max(p, 0), b = Math.max(m, 0), x = Math.hypot(y, b), S = -(x + Math.min(Math.max(p, m), 0) - g), C = 0, w = 0;
640
- if (S < r && d > 0) {
641
- let e = 0, t = 0;
642
- p > 0 && m > 0 && x > 0 ? (e = y / x, t = b / x) : p > m ? e = 1 : t = 1, e *= Math.sign(u - _) || 1, t *= Math.sign(f - v) || 1;
643
- let n = Math.min(1, Math.max(S, 0) / r), l;
644
- if (o > 0) l = (1 - n) ** o;
645
- else {
646
- let e = 1 - n;
647
- l = 1 - Math.sqrt(1 - e * e);
639
+ let d = () => {
640
+ let e = document.createElement("canvas");
641
+ return e.width = t, e.height = n, e;
642
+ }, f = d(), p = d(), m = f.getContext("2d"), h = p.getContext("2d");
643
+ if (!m || !h) return {
644
+ map: "",
645
+ light: ""
646
+ };
647
+ let g = m.createImageData(t, n), _ = h.createImageData(t, n), v = g.data, y = _.data, b = Math.min(r, t / 2, n / 2), x = t / 2, S = n / 2, C = Math.max(i, a > 0 ? o : 0, 1);
648
+ new Uint32Array(v.buffer).fill(4286611584), new Uint32Array(y.buffer).fill(4286611584);
649
+ let w = Math.ceil(C + b + 2);
650
+ for (let e = 0; e < n; e++) {
651
+ let r = e < w || e >= n - w;
652
+ for (let l = 0; l < t && !(!r && l === w && (l = Math.max(w, t - w), l >= t)); l++) {
653
+ let r = l + .5, u = e + .5, d = Math.abs(r - x) - (t / 2 - b), f = Math.abs(u - S) - (n / 2 - b), p = Math.max(d, 0), m = Math.max(f, 0), h = Math.hypot(p, m), g = -(h + Math.min(Math.max(d, f), 0) - b), _ = 0, w = 0, T = 0;
654
+ if (g > -1 && g < C) {
655
+ let e = 0, t = 0;
656
+ if (d > 0 && f > 0 && h > 0 ? (e = p / h, t = m / h) : d > f ? e = 1 : t = 1, e *= Math.sign(r - x) || 1, t *= Math.sign(u - S) || 1, g >= 0 && g < i) {
657
+ let n = 1 - Math.min(i, g < 1 ? g + 1 : g) / i, r = (1 - Math.sqrt(1 - n * n)) * (g < 1 ? .5 : 1);
658
+ _ = -e * r, w = -t * r;
659
+ }
660
+ if (a > 0) {
661
+ let n = e * s + t * c, r = Math.abs(n);
662
+ g < 1 ? T = a * (n > 0 ? 106 * r ** .86 : 101 * r ** 1.45) : o > 0 && (T = (n > 0 ? -14 : 11.6) * a * r * Math.max(0, 1 - (g - .5) / o));
663
+ }
648
664
  }
649
- let h = e * s + t * c;
650
- C = (-e * i + h * e * a) * l / d, w = (-t * i + h * t * a) * l / d;
665
+ if (_ === 0 && w === 0 && T === 0) continue;
666
+ let E = (e * t + l) * 4;
667
+ v[E] = 128 + _ * 127, v[E + 1] = 128 + w * 127;
668
+ let D = Math.max(0, Math.min(255, Math.round(128 + T)));
669
+ y[E] = D, y[E + 1] = D, y[E + 2] = D;
651
670
  }
652
- let T = (n * e + l) * 4;
653
- h[T] = 128 + C * 127, h[T + 1] = 128 + w * 127, h[T + 2] = 128, h[T + 3] = 255;
654
671
  }
655
- p.putImageData(m, 0, 0);
656
- let y = f.toDataURL();
657
- return ot.set(l, y), y;
672
+ m.putImageData(g, 0, 0), h.putImageData(_, 0, 0);
673
+ let T = {
674
+ map: f.toDataURL(),
675
+ light: p.toDataURL()
676
+ };
677
+ return ot.set(l, T), T;
658
678
  }
659
- function ct(e) {
660
- let t = getComputedStyle(e).getPropertyValue("--liquid-light-angle").trim(), n = parseFloat(t), r = (Number.isFinite(n) ? n : 135) * Math.PI / 180;
661
- return {
662
- lx: -Math.sin(r),
663
- ly: Math.cos(r)
679
+ var ct = e.createContext(null), lt = e.forwardRef(({ src: t, position: n = "center", veil: r, style: a, children: o, ...s }, c) => {
680
+ let l = e.useRef(null), u = (e) => {
681
+ l.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
682
+ }, d = r ? `linear-gradient(${r}, ${r}), url("${t}")` : `url("${t}")`, f = r ? "100% 100%, cover" : "cover", p = e.useMemo(() => ({
683
+ src: t,
684
+ veil: r,
685
+ image: d,
686
+ size: f,
687
+ position: n,
688
+ rootRef: l
689
+ }), [
690
+ t,
691
+ r,
692
+ d,
693
+ f,
694
+ n
695
+ ]);
696
+ return /* @__PURE__ */ i("div", {
697
+ ref: u,
698
+ ...s,
699
+ style: {
700
+ backgroundImage: d,
701
+ backgroundSize: f,
702
+ backgroundPosition: n,
703
+ backgroundRepeat: "no-repeat",
704
+ ...a
705
+ },
706
+ children: /* @__PURE__ */ i(ct.Provider, {
707
+ value: p,
708
+ children: o
709
+ })
710
+ });
711
+ });
712
+ lt.displayName = "LiquidBackdrop";
713
+ var ut = /* @__PURE__ */ new Set(), dt = 0, ft = 0, pt = () => {
714
+ let e = !1;
715
+ ut.forEach((t) => {
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, {
724
+ capture: !0,
725
+ passive: !0
726
+ }), window.addEventListener("resize", mt);
727
+ for (let e of [
728
+ "transitionrun",
729
+ "transitionend",
730
+ "animationstart",
731
+ "animationend",
732
+ "pointerdown",
733
+ "pointerup"
734
+ ]) document.addEventListener(e, mt, !0);
735
+ new MutationObserver(mt).observe(document.documentElement, {
736
+ attributes: !0,
737
+ attributeFilter: ["class", "data-theme"],
738
+ subtree: !0
739
+ });
740
+ }
741
+ return ut.add(e), e(), mt(), () => {
742
+ ut.delete(e);
664
743
  };
665
744
  }
666
- var lt = (e, t, n) => {
745
+ function _t() {
746
+ ut.forEach((e) => e()), mt();
747
+ }
748
+ var vt = /* @__PURE__ */ new Map();
749
+ function yt(e) {
750
+ let t = vt.get(e);
751
+ return t || (t = new Promise((t, n) => {
752
+ let r = new Image();
753
+ r.decoding = "async", r.onload = () => t(r), r.onerror = n, r.src = e;
754
+ }), vt.set(e, t)), t;
755
+ }
756
+ function bt(e) {
757
+ let t = {
758
+ left: 0,
759
+ top: 0,
760
+ center: .5,
761
+ right: 1,
762
+ bottom: 1
763
+ }, n = e.trim().split(/\s+/), r = (e) => e === void 0 ? .5 : e in t ? t[e] : e.endsWith("%") ? parseFloat(e) / 100 : .5;
764
+ return n.length === 1 && (n[0] === "top" || n[0] === "bottom") ? [.5, r(n[0])] : [r(n[0]), r(n[1])];
765
+ }
766
+ var xt = 300 * 300, St = (e, t, n) => {
667
767
  let r = parseFloat(getComputedStyle(e).getPropertyValue(t));
668
768
  return Number.isFinite(r) ? r : n;
669
769
  };
670
- function ut(t, { enabled: n = !0, refraction: r = "auto" } = {}) {
671
- let o = `liquid-${e.useId().replace(/[^a-zA-Z0-9_-]/g, "")}`, [s, c] = e.useState(null), l = n && r !== "off" && at();
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);
672
772
  e.useEffect(() => {
673
773
  let e = t.current;
674
- if (!e || !l) {
675
- c(null);
774
+ if (!e || !p) {
775
+ f(null);
676
776
  return;
677
777
  }
678
778
  let n = () => {
679
779
  let t = Math.round(e.offsetWidth), n = Math.round(e.offsetHeight);
680
780
  if (!t || !n) return;
681
- let r = parseFloat(getComputedStyle(e).borderTopLeftRadius) || 0, i = lt(e, "--liquid-bezel", 22), a = Math.round(Math.min(i, Math.min(t, n) * .35)), o = a / i, s = {
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 = {
682
782
  w: t,
683
783
  h: n,
684
784
  radius: r,
685
- bezel: a,
686
- refraction: lt(e, "--liquid-refraction", 2) * o,
687
- dispersion: lt(e, "--liquid-dispersion", 1) * o,
688
- frost: lt(e, "--liquid-frost", 1.5),
689
- saturate: lt(e, "--liquid-saturate", 1.5),
690
- shift: lt(e, "--liquid-shift", 0) * o,
691
- profile: lt(e, "--liquid-profile", 0),
692
- ...ct(e)
785
+ bezel: d,
786
+ bend: i * (10.9 + 1.1 * a) * p,
787
+ spread: .11 * o,
788
+ frost: Math.max(.65, Math.hypot(.47, .45 * s)),
789
+ intensity: c,
790
+ reach: .75 * a * (p || 1),
791
+ lx: Math.sin(l),
792
+ ly: -Math.cos(l)
693
793
  };
694
- c((e) => e && Object.keys(s).every((t) => e[t] === s[t]) ? e : s);
794
+ f((e) => e && Object.keys(m).every((t) => e[t] === m[t]) ? e : m);
695
795
  };
696
796
  n();
697
- let r = new ResizeObserver(n);
698
- return r.observe(e), () => r.disconnect();
699
- }, [t, l]);
700
- let u = s ? st(s.w, s.h, s.radius, s.bezel, s.refraction, s.shift, s.profile, s.lx, s.ly) : "", d = e.useCallback((e) => {
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());
801
+ });
802
+ return i.observe(e), () => {
803
+ window.clearTimeout(r), i.disconnect();
804
+ };
805
+ }, [
806
+ t,
807
+ p,
808
+ s
809
+ ]);
810
+ let _ = d ? st(d) : null, v = e.useCallback((e) => {
701
811
  let t = e.currentTarget, n = t.getBoundingClientRect();
702
812
  t.style.setProperty("--mx", `${e.clientX - n.left}px`), t.style.setProperty("--my", `${e.clientY - n.top}px`);
703
- }, []), f = l && !!s && !!u, p = (e) => {
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);
814
+ e.useLayoutEffect(() => {
815
+ let e = t.current;
816
+ if (!h || !y || !e || !m || !d || !_) return;
817
+ let n = "", r = 0, i = 0, a = 0, o = (e, t, n, r, i) => {
818
+ let a = ++C.current;
819
+ yt(m.src).then((o) => {
820
+ let s = x.current, c = document.getElementById(`${u}-bake`);
821
+ if (a !== C.current || !s || !c) return;
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");
823
+ h.width = f, h.height = p;
824
+ let g = h.getContext("2d"), _ = s.getContext("2d");
825
+ if (!g || !_) return;
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);
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
+ }).catch(() => {});
830
+ };
831
+ return gt(() => {
832
+ let t = m.rootRef.current, s = g.current;
833
+ if (!t || !b && !s || b && !x.current) return ++r < 120;
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 = "";
835
+ b && m.veil && S.current && (S.current.style.backgroundColor = m.veil, v = getComputedStyle(S.current).backgroundColor);
836
+ let y = `${f.toFixed(2)},${p.toFixed(2)},${h.toFixed(2)},${_.toFixed(2)},${v}`;
837
+ if (y === n) return !1;
838
+ if (n = y, b) {
839
+ let e = performance.now();
840
+ clearTimeout(a), e - i > 120 ? (i = e, o(f, p, h, _, v)) : a = window.setTimeout(() => {
841
+ i = performance.now(), o(f, p, h, _, v);
842
+ }, 130);
843
+ } else s && (s.style.width = `${h}px`, s.style.height = `${_}px`, s.style.transform = `translate3d(${f}px, ${p}px, 0)`);
844
+ return !0;
845
+ });
846
+ }, [
847
+ h,
848
+ y,
849
+ m,
850
+ t,
851
+ b,
852
+ d,
853
+ _,
854
+ u
855
+ ]);
856
+ let w = (e) => {
704
857
  let t = Array(20).fill(0);
705
858
  return t[e * 5 + e] = 1, t[18] = 1, t.join(" ");
706
- };
707
- return {
708
- filter: f && s ? /* @__PURE__ */ i("svg", {
709
- className: it.defs,
859
+ }, T = y && d && _ ? /* @__PURE__ */ i("svg", {
860
+ className: L.defs,
861
+ width: "0",
862
+ height: "0",
863
+ "aria-hidden": "true",
864
+ focusable: "false",
865
+ children: /* @__PURE__ */ a("filter", {
866
+ id: u,
867
+ x: "0",
868
+ y: "0",
869
+ width: d.w,
870
+ height: d.h,
871
+ filterUnits: "userSpaceOnUse",
872
+ primitiveUnits: "userSpaceOnUse",
873
+ colorInterpolationFilters: "sRGB",
874
+ children: [
875
+ /* @__PURE__ */ i("feImage", {
876
+ href: _.map,
877
+ x: "0",
878
+ y: "0",
879
+ width: d.w,
880
+ height: d.h,
881
+ preserveAspectRatio: "none",
882
+ result: "map"
883
+ }),
884
+ /* @__PURE__ */ i("feGaussianBlur", {
885
+ in: "SourceGraphic",
886
+ stdDeviation: d.frost,
887
+ edgeMode: "duplicate",
888
+ result: "frost"
889
+ }),
890
+ [
891
+ 0,
892
+ 1,
893
+ 2
894
+ ].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
895
+ in: "frost",
896
+ in2: "map",
897
+ scale: 2 * d.bend * (1 + (1 - t) * d.spread),
898
+ xChannelSelector: "R",
899
+ yChannelSelector: "G",
900
+ result: `d${t}`
901
+ }), /* @__PURE__ */ i("feColorMatrix", {
902
+ in: `d${t}`,
903
+ type: "matrix",
904
+ values: w(t),
905
+ result: `c${t}`
906
+ })] }, t)),
907
+ /* @__PURE__ */ i("feBlend", {
908
+ in: "c0",
909
+ in2: "c1",
910
+ mode: "screen",
911
+ result: "c01"
912
+ }),
913
+ /* @__PURE__ */ i("feBlend", {
914
+ in: "c01",
915
+ in2: "c2",
916
+ mode: "screen",
917
+ result: "bent"
918
+ }),
919
+ d.intensity > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("feImage", {
920
+ href: _.light,
921
+ x: "0",
922
+ y: "0",
923
+ width: d.w,
924
+ height: d.h,
925
+ preserveAspectRatio: "none",
926
+ result: "light"
927
+ }), /* @__PURE__ */ i("feComposite", {
928
+ in: "bent",
929
+ in2: "light",
930
+ operator: "arithmetic",
931
+ k1: 0,
932
+ k2: 1,
933
+ k3: 1,
934
+ k4: -128 / 255
935
+ })] })
936
+ ]
937
+ })
938
+ }) : null, E = typeof window < "u" ? Math.min(2, window.devicePixelRatio || 1) : 1, D = b && d && _ ? (() => {
939
+ let t = Math.round(d.w * E), n = Math.round(d.h * E);
940
+ return /* @__PURE__ */ i("svg", {
941
+ className: L.defs,
710
942
  width: "0",
711
943
  height: "0",
712
944
  "aria-hidden": "true",
713
945
  focusable: "false",
714
946
  children: /* @__PURE__ */ a("filter", {
715
- id: o,
947
+ id: `${u}-bake`,
716
948
  x: "0",
717
949
  y: "0",
718
- width: s.w,
719
- height: s.h,
950
+ width: t,
951
+ height: n,
720
952
  filterUnits: "userSpaceOnUse",
721
953
  primitiveUnits: "userSpaceOnUse",
722
954
  colorInterpolationFilters: "sRGB",
723
955
  children: [
724
956
  /* @__PURE__ */ i("feImage", {
725
- href: u,
957
+ href: _.map,
726
958
  x: "0",
727
959
  y: "0",
728
- width: s.w,
729
- height: s.h,
960
+ width: t,
961
+ height: n,
730
962
  preserveAspectRatio: "none",
731
963
  result: "map"
732
964
  }),
965
+ /* @__PURE__ */ i("feGaussianBlur", {
966
+ in: "SourceGraphic",
967
+ stdDeviation: d.frost * E,
968
+ edgeMode: "duplicate",
969
+ result: "frost"
970
+ }),
733
971
  [
734
972
  0,
735
973
  1,
736
974
  2
737
975
  ].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
738
- in: "SourceGraphic",
976
+ in: "frost",
739
977
  in2: "map",
740
- scale: 2 * (s.refraction + Math.abs(s.shift) + t * s.dispersion),
978
+ scale: 2 * d.bend * E * (1 + (1 - t) * d.spread),
741
979
  xChannelSelector: "R",
742
980
  yChannelSelector: "G",
743
981
  result: `d${t}`
744
982
  }), /* @__PURE__ */ i("feColorMatrix", {
745
983
  in: `d${t}`,
746
984
  type: "matrix",
747
- values: p(t),
985
+ values: w(t),
748
986
  result: `c${t}`
749
987
  })] }, t)),
750
988
  /* @__PURE__ */ i("feBlend", {
@@ -757,77 +995,137 @@ function ut(t, { enabled: n = !0, refraction: r = "auto" } = {}) {
757
995
  in: "c01",
758
996
  in2: "c2",
759
997
  mode: "screen",
760
- result: "rgb"
761
- }),
762
- /* @__PURE__ */ i("feGaussianBlur", {
763
- in: "rgb",
764
- stdDeviation: s.frost,
765
- result: "soft"
998
+ result: "bent"
766
999
  }),
767
- /* @__PURE__ */ i("feColorMatrix", {
768
- in: "soft",
769
- type: "saturate",
770
- values: String(s.saturate)
771
- })
1000
+ d.intensity > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("feImage", {
1001
+ href: _.light,
1002
+ x: "0",
1003
+ y: "0",
1004
+ width: t,
1005
+ height: n,
1006
+ preserveAspectRatio: "none",
1007
+ result: "light"
1008
+ }), /* @__PURE__ */ i("feComposite", {
1009
+ in: "bent",
1010
+ in2: "light",
1011
+ operator: "arithmetic",
1012
+ k1: 0,
1013
+ k2: 1,
1014
+ k3: 1,
1015
+ k4: -128 / 255
1016
+ })] })
772
1017
  ]
773
1018
  })
774
- }) : null,
775
- refracting: f,
1019
+ });
1020
+ })() : null;
1021
+ return {
1022
+ filter: y && h && m ? b ? /* @__PURE__ */ a(r, { children: [
1023
+ D,
1024
+ /* @__PURE__ */ a("span", {
1025
+ className: L.sourceClip,
1026
+ "aria-hidden": "true",
1027
+ children: [/* @__PURE__ */ i("canvas", {
1028
+ ref: x,
1029
+ className: L.sourceCanvas
1030
+ }), /* @__PURE__ */ i("span", {
1031
+ ref: S,
1032
+ className: L.probe
1033
+ })]
1034
+ }),
1035
+ /* @__PURE__ */ i("span", {
1036
+ className: L.fill,
1037
+ "aria-hidden": "true"
1038
+ })
1039
+ ] }) : /* @__PURE__ */ a(r, { children: [
1040
+ T,
1041
+ /* @__PURE__ */ i("span", {
1042
+ className: L.sourceClip,
1043
+ "aria-hidden": "true",
1044
+ children: /* @__PURE__ */ i("span", {
1045
+ className: L.source,
1046
+ style: { filter: `url(#${u})` },
1047
+ children: /* @__PURE__ */ i("span", {
1048
+ ref: g,
1049
+ className: L.sourceImage,
1050
+ style: {
1051
+ backgroundImage: m.image,
1052
+ backgroundSize: m.size,
1053
+ backgroundPosition: m.position
1054
+ }
1055
+ })
1056
+ })
1057
+ }),
1058
+ /* @__PURE__ */ i("span", {
1059
+ className: L.fill,
1060
+ "aria-hidden": "true"
1061
+ })
1062
+ ] }) : T,
1063
+ refracting: y,
776
1064
  props: {
777
1065
  "data-surface": "liquid",
778
- "data-refraction": f ? "on" : "off",
779
- style: f ? { backdropFilter: `url(#${o})` } : void 0,
780
- onPointerMove: d
1066
+ "data-refraction": y ? h ? "source" : "on" : "off",
1067
+ style: y && !h ? { backdropFilter: `url(#${u})` } : void 0,
1068
+ onPointerMove: v
781
1069
  }
782
1070
  };
783
1071
  }
784
- var dt = e.forwardRef(({ variant: t = "regular", tint: n = "auto", radius: r = 20, refraction: i = "auto", interactive: o, className: s, style: c, children: l, onPointerMove: u, ...d }, f) => {
785
- let p = e.useRef(null), m = (e) => {
786
- p.current = e, typeof f == "function" ? f(e) : f && (f.current = e);
787
- }, h = ut(p, { refraction: i });
1072
+ var wt = (e) => {
1073
+ if (!e) return {};
1074
+ let t = {};
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) => {
1077
+ let g = e.useRef(null), _ = (e) => {
1078
+ g.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
1079
+ }, v = Ct(g, {
1080
+ refraction: i,
1081
+ source: s,
1082
+ bake: c,
1083
+ watch: o ? JSON.stringify(o) : ""
1084
+ });
788
1085
  return /* @__PURE__ */ a("div", {
789
- ref: m,
790
- ...d,
791
- ...h.props,
1086
+ ref: _,
1087
+ ...m,
1088
+ ...v.props,
792
1089
  className: [
793
- it.liquid,
794
- it[t],
795
- n === "auto" ? "" : it[`tint-${n}`],
796
- o ? it.interactive : "",
797
- s ?? ""
1090
+ L.liquid,
1091
+ L[t],
1092
+ n === "auto" ? "" : L[`tint-${n}`],
1093
+ l ? L.interactive : "",
1094
+ u ?? ""
798
1095
  ].filter(Boolean).join(" "),
799
1096
  style: {
800
1097
  borderRadius: r,
801
- ...h.props.style,
802
- ...c
1098
+ ...wt(o),
1099
+ ...v.props.style,
1100
+ ...d
803
1101
  },
804
1102
  onPointerMove: (e) => {
805
- h.props.onPointerMove(e), u?.(e);
1103
+ v.props.onPointerMove(e), p?.(e);
806
1104
  },
807
- children: [h.filter, l]
1105
+ children: [v.filter, f]
808
1106
  });
809
1107
  });
810
- dt.displayName = "LiquidGlass";
811
- var ft = (e = "regular", t = "auto") => [
812
- it.liquid,
813
- it[e],
814
- t === "auto" ? "" : it[`tint-${t}`]
815
- ].filter(Boolean).join(" "), pt = {
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 = {
816
1114
  "divider--horizontal": "_divider--horizontal_nem37_4",
817
1115
  "divider--labeled": "_divider--labeled_nem37_13",
818
1116
  "divider--vertical": "_divider--vertical_nem37_27",
819
1117
  divider__label: "_divider__label_nem37_38"
820
- }, mt = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
1118
+ }, Ot = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
821
1119
  role: "separator",
822
1120
  "aria-orientation": e,
823
1121
  className: [
824
- pt.divider,
825
- pt[`divider--${e}`],
826
- t ? pt["divider--labeled"] : "",
1122
+ Dt.divider,
1123
+ Dt[`divider--${e}`],
1124
+ t ? Dt["divider--labeled"] : "",
827
1125
  n ?? ""
828
1126
  ].filter(Boolean).join(" "),
829
1127
  children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
830
- className: pt.divider__label,
1128
+ className: Dt.divider__label,
831
1129
  children: t
832
1130
  })
833
1131
  }), R = {
@@ -849,8 +1147,11 @@ var ft = (e = "regular", t = "auto") => [
849
1147
  "sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
850
1148
  "card--exiting": "_card--exiting_13dud_115",
851
1149
  "sakani-modal-card-out": "_sakani-modal-card-out_13dud_1"
852
- }, ht = ({ 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 }) => {
853
- let S = c === "destructive", C = e.useRef(null), w = e.useRef(null), T = e.useRef(null), E = nt(T, t), D = rt(T, t), O = D === "liquid", k = ut(C, { enabled: O }), [A, j] = e.useState(!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, {
1152
+ enabled: O,
1153
+ source: !1
1154
+ }), [A, j] = e.useState(!1);
854
1155
  e.useEffect(() => {
855
1156
  t && j(!0);
856
1157
  }, [t]), e.useEffect(() => {
@@ -907,7 +1208,7 @@ var ft = (e = "regular", t = "auto") => [
907
1208
  tabIndex: -1,
908
1209
  className: [
909
1210
  R.card,
910
- O ? ft("regular") : "",
1211
+ O ? Et("regular") : "",
911
1212
  t ? R["card--entering"] : R["card--exiting"],
912
1213
  x ?? ""
913
1214
  ].filter(Boolean).join(" "),
@@ -947,15 +1248,15 @@ var ft = (e = "regular", t = "auto") => [
947
1248
  children: s
948
1249
  }),
949
1250
  _,
950
- !y && /* @__PURE__ */ i(mt, {}),
1251
+ !y && /* @__PURE__ */ i(Ot, {}),
951
1252
  /* @__PURE__ */ a("div", {
952
1253
  className: [R.footer, b === "between" ? R["footer--between"] : ""].filter(Boolean).join(" "),
953
- children: [/* @__PURE__ */ i(F, {
1254
+ children: [/* @__PURE__ */ i(P, {
954
1255
  variant: "secondary",
955
1256
  onClick: ee,
956
1257
  style: { borderColor: "transparent" },
957
1258
  children: u
958
- }), /* @__PURE__ */ i(F, {
1259
+ }), /* @__PURE__ */ i(P, {
959
1260
  variant: S ? "destructive" : "primary",
960
1261
  onClick: p,
961
1262
  loading: m,
@@ -979,7 +1280,7 @@ var ft = (e = "regular", t = "auto") => [
979
1280
  cardTop: "_cardTop_88l3n_87",
980
1281
  description: "_description_88l3n_94",
981
1282
  actions: "_actions_88l3n_102"
982
- }, gt = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
1283
+ }, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
983
1284
  let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
984
1285
  size: 24,
985
1286
  strokeWidth: M(24)
@@ -1014,12 +1315,12 @@ var ft = (e = "regular", t = "auto") => [
1014
1315
  ]
1015
1316
  }), /* @__PURE__ */ a("div", {
1016
1317
  className: z.actions,
1017
- children: [c && /* @__PURE__ */ i(F, {
1318
+ children: [c && /* @__PURE__ */ i(P, {
1018
1319
  variant: "ghost",
1019
1320
  size: "sm",
1020
1321
  onClick: c,
1021
1322
  children: l
1022
- }), u && /* @__PURE__ */ i(F, {
1323
+ }), u && /* @__PURE__ */ i(P, {
1023
1324
  variant: "secondary",
1024
1325
  size: "sm",
1025
1326
  onClick: d,
@@ -1051,28 +1352,28 @@ var ft = (e = "regular", t = "auto") => [
1051
1352
  })
1052
1353
  ]
1053
1354
  });
1054
- }, _t = {
1355
+ }, jt = {
1055
1356
  stat: "_stat_krs8c_1",
1056
1357
  labelRow: "_labelRow_krs8c_10",
1057
1358
  label: "_label_krs8c_10",
1058
1359
  value: "_value_krs8c_27"
1059
- }, vt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
1060
- className: [_t.stat, r ?? ""].filter(Boolean).join(" "),
1360
+ }, Mt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
1361
+ className: [jt.stat, r ?? ""].filter(Boolean).join(" "),
1061
1362
  children: [/* @__PURE__ */ a("div", {
1062
- className: _t.labelRow,
1363
+ className: jt.labelRow,
1063
1364
  children: [/* @__PURE__ */ i("p", {
1064
- className: _t.label,
1365
+ className: jt.label,
1065
1366
  children: e
1066
1367
  }), /* @__PURE__ */ i("p", {
1067
- className: _t.value,
1368
+ className: jt.value,
1068
1369
  children: t
1069
1370
  })]
1070
- }), /* @__PURE__ */ i(et, {
1371
+ }), /* @__PURE__ */ i(tt, {
1071
1372
  value: n,
1072
1373
  size: "lg",
1073
1374
  label: e
1074
1375
  })]
1075
- }), yt = {
1376
+ }), Nt = {
1076
1377
  balance: "_balance_5gcu5_1",
1077
1378
  label: "_label_5gcu5_10",
1078
1379
  amountRow: "_amountRow_5gcu5_19",
@@ -1082,25 +1383,25 @@ var ft = (e = "regular", t = "auto") => [
1082
1383
  fill: "_fill_5gcu5_50",
1083
1384
  "fill--over": "_fill--over_5gcu5_57",
1084
1385
  footer: "_footer_5gcu5_61"
1085
- }, bt = (e) => e.toLocaleString("en-US", {
1386
+ }, Pt = (e) => e.toLocaleString("en-US", {
1086
1387
  style: "currency",
1087
1388
  currency: "USD"
1088
- }), xt = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = bt, className: o }) => {
1389
+ }), Ft = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Pt, className: o }) => {
1089
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`;
1090
1391
  return /* @__PURE__ */ a("div", {
1091
- className: [yt.balance, o ?? ""].filter(Boolean).join(" "),
1392
+ className: [Nt.balance, o ?? ""].filter(Boolean).join(" "),
1092
1393
  children: [
1093
1394
  /* @__PURE__ */ i("p", {
1094
- className: yt.label,
1395
+ className: Nt.label,
1095
1396
  children: e
1096
1397
  }),
1097
1398
  /* @__PURE__ */ a("div", {
1098
- className: yt.amountRow,
1399
+ className: Nt.amountRow,
1099
1400
  children: [/* @__PURE__ */ i("p", {
1100
- className: yt.amount,
1401
+ className: Nt.amount,
1101
1402
  children: r(t)
1102
1403
  }), /* @__PURE__ */ a("p", {
1103
- className: yt.limit,
1404
+ className: Nt.limit,
1104
1405
  children: [
1105
1406
  "of ",
1106
1407
  r(n),
@@ -1109,19 +1410,19 @@ var ft = (e = "regular", t = "auto") => [
1109
1410
  })]
1110
1411
  }),
1111
1412
  /* @__PURE__ */ i("div", {
1112
- className: yt.track,
1413
+ className: Nt.track,
1113
1414
  role: "progressbar",
1114
1415
  "aria-label": e,
1115
1416
  "aria-valuenow": Math.round(c),
1116
1417
  "aria-valuemin": 0,
1117
1418
  "aria-valuemax": 100,
1118
1419
  children: /* @__PURE__ */ i("div", {
1119
- className: [yt.fill, s ? yt["fill--over"] : ""].filter(Boolean).join(" "),
1420
+ className: [Nt.fill, s ? Nt["fill--over"] : ""].filter(Boolean).join(" "),
1120
1421
  style: { width: `${c}%` }
1121
1422
  })
1122
1423
  }),
1123
1424
  /* @__PURE__ */ i("p", {
1124
- className: yt.footer,
1425
+ className: Nt.footer,
1125
1426
  children: l
1126
1427
  })
1127
1428
  ]
@@ -1129,7 +1430,7 @@ var ft = (e = "regular", t = "auto") => [
1129
1430
  };
1130
1431
  //#endregion
1131
1432
  //#region src/lib/useChartTokens.ts
1132
- function St(e) {
1433
+ function It(e) {
1133
1434
  let [, r] = n(0);
1134
1435
  return t(() => {
1135
1436
  if (typeof document > "u") return;
@@ -1148,65 +1449,65 @@ function St(e) {
1148
1449
  }
1149
1450
  //#endregion
1150
1451
  //#region src/lib/chartPalette.ts
1151
- var Ct = [
1452
+ var Lt = [
1152
1453
  "#ff4700",
1153
1454
  "#5b92dd",
1154
1455
  "#47a8a2",
1155
1456
  "#9179d6",
1156
1457
  "#dca84f",
1157
1458
  "#12b76a"
1158
- ], wt = {
1459
+ ], Rt = {
1159
1460
  tooltip: "_tooltip_ic16u_3",
1160
1461
  title: "_title_ic16u_23",
1161
1462
  row: "_row_ic16u_27",
1162
1463
  dot: "_dot_ic16u_34",
1163
1464
  label: "_label_ic16u_41",
1164
1465
  value: "_value_ic16u_42"
1165
- }, Tt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
1166
- className: wt.tooltip,
1466
+ }, zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
1467
+ className: Rt.tooltip,
1167
1468
  children: [n !== void 0 && n !== "" && /* @__PURE__ */ i("span", {
1168
- className: wt.title,
1469
+ className: Rt.title,
1169
1470
  children: n
1170
1471
  }), t.map((e, t) => /* @__PURE__ */ a("div", {
1171
- className: wt.row,
1472
+ className: Rt.row,
1172
1473
  children: [
1173
1474
  /* @__PURE__ */ i("span", {
1174
- className: wt.dot,
1475
+ className: Rt.dot,
1175
1476
  style: { background: e.color ?? e.payload?.fill ?? e.fill }
1176
1477
  }),
1177
1478
  /* @__PURE__ */ i("span", {
1178
- className: wt.label,
1479
+ className: Rt.label,
1179
1480
  children: e.name
1180
1481
  }),
1181
1482
  /* @__PURE__ */ i("span", {
1182
- className: wt.value,
1483
+ className: Rt.value,
1183
1484
  children: r ? r(e.value, e.name) : e.value
1184
1485
  })
1185
1486
  ]
1186
1487
  }, t))]
1187
- }), Et = {
1488
+ }), Bt = {
1188
1489
  chart: "_chart_1s6lv_2",
1189
1490
  legend: "_legend_1s6lv_31",
1190
1491
  legendItem: "_legendItem_1s6lv_41",
1191
1492
  legendSwatch: "_legendSwatch_1s6lv_46"
1192
- }, Dt = {
1493
+ }, Vt = {
1193
1494
  sm: 180,
1194
1495
  md: 240,
1195
1496
  lg: 320,
1196
1497
  xl: 420
1197
- }, B = 6, Ot = (e) => {
1498
+ }, B = 6, Ht = (e) => {
1198
1499
  if (e <= 0) return 1;
1199
1500
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
1200
1501
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
1201
- }, kt = ({ data: t, variant: n = "default", size: o = "md", seriesLabels: s = ["Value", "Value 2"], className: c }) => {
1202
- let [l, u] = e.useState(null), [d, f] = e.useState(null), p = e.useRef(null), m = St(p), h = m("--color-chart-2") ?? "#5b92dd", g = m("--color-chart-5") ?? "#dca84f", _ = m("--color-chart-1") ?? "#ff4700", v = [
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 = [
1203
1504
  1,
1204
1505
  2,
1205
1506
  3,
1206
1507
  4,
1207
1508
  5,
1208
1509
  6
1209
- ].map((e) => m(`--color-chart-${e}`) ?? Ct[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 = Ot(Math.max(1, ...t.map((e) => Math.abs(e.value)))), T = [
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 = [
1210
1511
  -w,
1211
1512
  -w / 2,
1212
1513
  0,
@@ -1214,7 +1515,7 @@ var Ct = [
1214
1515
  w
1215
1516
  ], E = /* @__PURE__ */ i(Se, {
1216
1517
  cursor: !1,
1217
- content: /* @__PURE__ */ i(Tt, {}),
1518
+ content: /* @__PURE__ */ i(zt, {}),
1218
1519
  wrapperStyle: { zIndex: 50 },
1219
1520
  position: d ? { y: d.y } : void 0
1220
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) => ({
@@ -1264,10 +1565,10 @@ var Ct = [
1264
1565
  };
1265
1566
  return /* @__PURE__ */ i("div", {
1266
1567
  ref: p,
1267
- className: [Et.chart, c ?? ""].filter(Boolean).join(" "),
1568
+ className: [Bt.chart, c ?? ""].filter(Boolean).join(" "),
1268
1569
  children: /* @__PURE__ */ i(xe, {
1269
1570
  width: "100%",
1270
- height: Dt[o],
1571
+ height: Vt[o],
1271
1572
  children: /* @__PURE__ */ a(le, {
1272
1573
  data: t,
1273
1574
  layout: n === "horizontal" ? "vertical" : "horizontal",
@@ -1313,11 +1614,11 @@ var Ct = [
1313
1614
  }),
1314
1615
  E,
1315
1616
  x && /* @__PURE__ */ i(fe, { content: (e) => /* @__PURE__ */ i("ul", {
1316
- className: Et.legend,
1617
+ className: Bt.legend,
1317
1618
  children: e.payload?.map((e) => /* @__PURE__ */ a("li", {
1318
- className: Et.legendItem,
1619
+ className: Bt.legendItem,
1319
1620
  children: [/* @__PURE__ */ i("span", {
1320
- className: Et.legendSwatch,
1621
+ className: Bt.legendSwatch,
1321
1622
  style: { background: e.color }
1322
1623
  }), /* @__PURE__ */ i("span", {
1323
1624
  style: { color: e.color },
@@ -1396,7 +1697,7 @@ var Ct = [
1396
1697
  })
1397
1698
  })
1398
1699
  });
1399
- }, At = {
1700
+ }, Wt = {
1400
1701
  badge: "_badge_a5a38_6",
1401
1702
  "badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
1402
1703
  "badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
@@ -1412,24 +1713,24 @@ var Ct = [
1412
1713
  "badge--info-solid": "_badge--info-solid_a5a38_41",
1413
1714
  badge__icon: "_badge__icon_a5a38_44",
1414
1715
  badge__label: "_badge__label_a5a38_45"
1415
- }, jt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
1716
+ }, Gt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
1416
1717
  className: [
1417
- At.badge,
1418
- At[`badge--${e}-${t}`],
1718
+ Wt.badge,
1719
+ Wt[`badge--${e}-${t}`],
1419
1720
  s ?? ""
1420
1721
  ].filter(Boolean).join(" "),
1421
1722
  children: [
1422
1723
  n && /* @__PURE__ */ i("span", {
1423
- className: At.badge__icon,
1724
+ className: Wt.badge__icon,
1424
1725
  "aria-hidden": "true",
1425
1726
  children: n
1426
1727
  }),
1427
1728
  /* @__PURE__ */ i("span", {
1428
- className: At.badge__label,
1729
+ className: Wt.badge__label,
1429
1730
  children: o
1430
1731
  }),
1431
1732
  r && /* @__PURE__ */ i("span", {
1432
- className: At.badge__icon,
1733
+ className: Wt.badge__icon,
1433
1734
  "aria-hidden": "true",
1434
1735
  children: r
1435
1736
  })
@@ -1453,7 +1754,7 @@ var Ct = [
1453
1754
  "roll-out-down": "_roll-out-down_1w3rz_1",
1454
1755
  rollInDown: "_rollInDown_1w3rz_133",
1455
1756
  "roll-in-down": "_roll-in-down_1w3rz_1"
1456
- }, Mt = ({ value: t }) => {
1757
+ }, Kt = ({ value: t }) => {
1457
1758
  let n = e.useRef(t), [r, o] = e.useState(null);
1458
1759
  return t !== n.current && (o({
1459
1760
  value: n.current,
@@ -1474,7 +1775,7 @@ var Ct = [
1474
1775
  children: t
1475
1776
  }, `in-${t}`)]
1476
1777
  });
1477
- }, Nt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
1778
+ }, qt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
1478
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) => {
1479
1780
  let t = e;
1480
1781
  return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
@@ -1527,7 +1828,7 @@ var Ct = [
1527
1828
  }), /* @__PURE__ */ i("span", {
1528
1829
  className: [V.rollOverlay, f ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
1529
1830
  "aria-hidden": "true",
1530
- children: /* @__PURE__ */ i(Mt, { value: t })
1831
+ children: /* @__PURE__ */ i(Kt, { value: t })
1531
1832
  })]
1532
1833
  }),
1533
1834
  /* @__PURE__ */ i("span", {
@@ -1547,7 +1848,7 @@ var Ct = [
1547
1848
  })
1548
1849
  ]
1549
1850
  });
1550
- }, Pt = {
1851
+ }, Jt = {
1551
1852
  item: "_item_15jww_1",
1552
1853
  thumb: "_thumb_15jww_11",
1553
1854
  info: "_info_15jww_19",
@@ -1558,31 +1859,31 @@ var Ct = [
1558
1859
  priceRow: "_priceRow_15jww_67",
1559
1860
  priceOriginal: "_priceOriginal_15jww_75",
1560
1861
  priceSale: "_priceSale_15jww_80"
1561
- }, Ft = (e) => e.toLocaleString("en-US", {
1862
+ }, Yt = (e) => e.toLocaleString("en-US", {
1562
1863
  style: "currency",
1563
1864
  currency: "USD"
1564
- }), It = ({ 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 = Ft, className: h }) => {
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 }) => {
1565
1866
  let g = s !== void 0;
1566
1867
  return /* @__PURE__ */ a("div", {
1567
- className: [Pt.item, h ?? ""].filter(Boolean).join(" "),
1868
+ className: [Jt.item, h ?? ""].filter(Boolean).join(" "),
1568
1869
  children: [
1569
1870
  /* @__PURE__ */ i("img", {
1570
1871
  src: e,
1571
1872
  alt: t ?? n,
1572
- className: Pt.thumb
1873
+ className: Jt.thumb
1573
1874
  }),
1574
1875
  /* @__PURE__ */ a("div", {
1575
- className: Pt.info,
1876
+ className: Jt.info,
1576
1877
  children: [
1577
1878
  /* @__PURE__ */ i("p", {
1578
- className: Pt.name,
1879
+ className: Jt.name,
1579
1880
  children: n
1580
1881
  }),
1581
1882
  r && /* @__PURE__ */ i("p", {
1582
- className: Pt.variant,
1883
+ className: Jt.variant,
1583
1884
  children: r
1584
1885
  }),
1585
- /* @__PURE__ */ i(Nt, {
1886
+ /* @__PURE__ */ i(qt, {
1586
1887
  quantity: c,
1587
1888
  onQuantityChange: l,
1588
1889
  min: u,
@@ -1592,18 +1893,18 @@ var Ct = [
1592
1893
  ]
1593
1894
  }),
1594
1895
  /* @__PURE__ */ a("div", {
1595
- className: Pt.right,
1896
+ className: Jt.right,
1596
1897
  children: [g ? /* @__PURE__ */ a("div", {
1597
- className: Pt.priceRow,
1898
+ className: Jt.priceRow,
1598
1899
  children: [/* @__PURE__ */ i("span", {
1599
- className: Pt.priceOriginal,
1900
+ className: Jt.priceOriginal,
1600
1901
  children: m(s)
1601
1902
  }), /* @__PURE__ */ i("span", {
1602
- className: Pt.priceSale,
1903
+ className: Jt.priceSale,
1603
1904
  children: m(o)
1604
1905
  })]
1605
1906
  }) : /* @__PURE__ */ i("p", {
1606
- className: Pt.price,
1907
+ className: Jt.price,
1607
1908
  children: m(o)
1608
1909
  }), /* @__PURE__ */ i(He, {
1609
1910
  icon: w,
@@ -1615,7 +1916,7 @@ var Ct = [
1615
1916
  })
1616
1917
  ]
1617
1918
  });
1618
- }, Lt = {
1919
+ }, Zt = {
1619
1920
  steps: "_steps_t53um_1",
1620
1921
  step: "_step_t53um_1",
1621
1922
  connector: "_connector_t53um_16",
@@ -1626,26 +1927,26 @@ var Ct = [
1626
1927
  label: "_label_t53um_49",
1627
1928
  labelActive: "_labelActive_t53um_56",
1628
1929
  labelUpcoming: "_labelUpcoming_t53um_59"
1629
- }, Rt = [
1930
+ }, Qt = [
1630
1931
  "Cart",
1631
1932
  "Shipping",
1632
1933
  "Payment",
1633
1934
  "Confirmation"
1634
- ], zt = ({ steps: t = Rt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1635
- className: [Lt.steps, r ?? ""].filter(Boolean).join(" "),
1935
+ ], $t = ({ steps: t = Qt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1936
+ className: [Zt.steps, r ?? ""].filter(Boolean).join(" "),
1636
1937
  role: "list",
1637
1938
  children: t.map((r, o) => {
1638
1939
  let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
1639
1940
  return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
1640
- className: Lt.step,
1941
+ className: Zt.step,
1641
1942
  role: "listitem",
1642
1943
  "aria-current": s === "active" ? "step" : void 0,
1643
1944
  children: [/* @__PURE__ */ i("span", {
1644
1945
  className: [
1645
- Lt.circle,
1646
- s === "completed" ? Lt.circleCompleted : "",
1647
- s === "active" ? Lt.circleActive : "",
1648
- s === "upcoming" ? Lt.circleUpcoming : ""
1946
+ Zt.circle,
1947
+ s === "completed" ? Zt.circleCompleted : "",
1948
+ s === "active" ? Zt.circleActive : "",
1949
+ s === "upcoming" ? Zt.circleUpcoming : ""
1649
1950
  ].filter(Boolean).join(" "),
1650
1951
  "aria-hidden": "true",
1651
1952
  children: /* @__PURE__ */ i(l, {
@@ -1654,27 +1955,27 @@ var Ct = [
1654
1955
  })
1655
1956
  }), /* @__PURE__ */ i("span", {
1656
1957
  className: [
1657
- Lt.label,
1658
- s === "active" ? Lt.labelActive : "",
1659
- s === "upcoming" ? Lt.labelUpcoming : ""
1958
+ Zt.label,
1959
+ s === "active" ? Zt.labelActive : "",
1960
+ s === "upcoming" ? Zt.labelUpcoming : ""
1660
1961
  ].filter(Boolean).join(" "),
1661
1962
  children: r
1662
1963
  })]
1663
1964
  }), !c && /* @__PURE__ */ i("span", {
1664
- className: Lt.connector,
1965
+ className: Zt.connector,
1665
1966
  "aria-hidden": "true"
1666
1967
  })] }, r);
1667
1968
  })
1668
- }), Bt = "#fafaf9", Vt = "#141414", Ht = (e, t, n) => {
1969
+ }), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
1669
1970
  let r = (e) => {
1670
1971
  let t = e / 255;
1671
1972
  return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
1672
1973
  };
1673
1974
  return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
1674
- }, Ut = (e, t) => {
1975
+ }, rn = (e, t) => {
1675
1976
  let n = Math.max(e, t), r = Math.min(e, t);
1676
1977
  return (n + .05) / (r + .05);
1677
- }, Wt = (e) => {
1978
+ }, an = (e) => {
1678
1979
  let t = e.trim().toLowerCase(), n = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);
1679
1980
  if (n) {
1680
1981
  let e = n[1];
@@ -1690,31 +1991,31 @@ var Ct = [
1690
1991
  Number(r[2]),
1691
1992
  Number(r[3])
1692
1993
  ] : null;
1693
- }, Gt = (e, t, n) => {
1694
- let r = Ht(e, t, n), i = Ut(r, Ht(20, 20, 20));
1695
- return Ut(r, Ht(250, 250, 249)) >= i ? Bt : Vt;
1696
- }, Kt = null, qt = (e) => {
1697
- let t = Wt(e);
1698
- if (t) return Gt(...t);
1699
- if (typeof document > "u") return Bt;
1700
- Kt ??= document.createElement("canvas"), Kt.width = 1, Kt.height = 1;
1701
- let n = Kt.getContext("2d", { willReadFrequently: !0 });
1702
- if (!n) return Bt;
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;
1703
2004
  n.clearRect(0, 0, 1, 1), n.fillStyle = e, n.fillRect(0, 0, 1, 1);
1704
2005
  let [r, i, a] = n.getImageData(0, 0, 1, 1).data;
1705
- return Gt(r, i, a);
1706
- }, Jt = {
2006
+ return on(r, i, a);
2007
+ }, ln = {
1707
2008
  swatch: "_swatch_1i3c3_1",
1708
2009
  circle: "_circle_1i3c3_22",
1709
2010
  circleUnavailable: "_circleUnavailable_1i3c3_32",
1710
2011
  ring: "_ring_1i3c3_39",
1711
2012
  check: "_check_1i3c3_55",
1712
2013
  strike: "_strike_1i3c3_66"
1713
- }, Yt = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
1714
- let u = e.useMemo(() => qt(t), [t]);
2014
+ }, un = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
2015
+ let u = e.useMemo(() => cn(t), [t]);
1715
2016
  return /* @__PURE__ */ a("button", {
1716
2017
  type: "button",
1717
- className: [Jt.swatch, c ?? ""].filter(Boolean).join(" "),
2018
+ className: [ln.swatch, c ?? ""].filter(Boolean).join(" "),
1718
2019
  style: { "--swatch-color": t },
1719
2020
  disabled: !o,
1720
2021
  "aria-pressed": o ? r : void 0,
@@ -1722,49 +2023,49 @@ var Ct = [
1722
2023
  onClick: s,
1723
2024
  children: [
1724
2025
  r && o && /* @__PURE__ */ i("span", {
1725
- className: Jt.ring,
2026
+ className: ln.ring,
1726
2027
  "aria-hidden": "true"
1727
2028
  }),
1728
2029
  /* @__PURE__ */ i("span", {
1729
- className: [Jt.circle, o ? "" : Jt.circleUnavailable].filter(Boolean).join(" "),
2030
+ className: [ln.circle, o ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
1730
2031
  "aria-hidden": "true"
1731
2032
  }),
1732
2033
  r && o && /* @__PURE__ */ i(l, {
1733
2034
  size: 14,
1734
2035
  strokeWidth: M(14),
1735
- className: Jt.check,
2036
+ className: ln.check,
1736
2037
  style: { color: u },
1737
2038
  "aria-hidden": "true"
1738
2039
  }),
1739
2040
  !o && /* @__PURE__ */ i("span", {
1740
- className: Jt.strike,
2041
+ className: ln.strike,
1741
2042
  style: { background: u },
1742
2043
  "aria-hidden": "true"
1743
2044
  })
1744
2045
  ]
1745
2046
  });
1746
- }, Xt = {
2047
+ }, dn = {
1747
2048
  row: "_row_1r4ef_1",
1748
2049
  original: "_original_1r4ef_8",
1749
2050
  price: "_price_1r4ef_17",
1750
2051
  priceSale: "_priceSale_1r4ef_24"
1751
- }, Zt = (e) => e.toLocaleString("en-US", {
2052
+ }, fn = (e) => e.toLocaleString("en-US", {
1752
2053
  style: "currency",
1753
2054
  currency: "USD"
1754
- }), Qt = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = Zt, className: o }) => {
2055
+ }), pn = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = fn, className: o }) => {
1755
2056
  let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
1756
2057
  return /* @__PURE__ */ a("div", {
1757
- className: [Xt.row, o ?? ""].filter(Boolean).join(" "),
2058
+ className: [dn.row, o ?? ""].filter(Boolean).join(" "),
1758
2059
  children: [
1759
2060
  s && /* @__PURE__ */ i("span", {
1760
- className: Xt.original,
2061
+ className: dn.original,
1761
2062
  children: r(t)
1762
2063
  }),
1763
2064
  /* @__PURE__ */ i("span", {
1764
- className: [Xt.price, s ? Xt.priceSale : ""].filter(Boolean).join(" "),
2065
+ className: [dn.price, s ? dn.priceSale : ""].filter(Boolean).join(" "),
1765
2066
  children: r(e)
1766
2067
  }),
1767
- s && n && /* @__PURE__ */ a(jt, {
2068
+ s && n && /* @__PURE__ */ a(Gt, {
1768
2069
  variant: "danger",
1769
2070
  emphasis: "solid",
1770
2071
  children: [
@@ -1775,17 +2076,17 @@ var Ct = [
1775
2076
  })
1776
2077
  ]
1777
2078
  });
1778
- }, $t = {
2079
+ }, mn = {
1779
2080
  button: "_button_58k4v_1",
1780
2081
  icon: "_icon_58k4v_24",
1781
2082
  iconSaved: "_iconSaved_58k4v_27",
1782
2083
  bounce: "_bounce_58k4v_40",
1783
2084
  "wishlist-bounce": "_wishlist-bounce_58k4v_1"
1784
- }, en = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
2085
+ }, hn = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
1785
2086
  let [o, s] = e.useState(!1);
1786
2087
  return /* @__PURE__ */ i("button", {
1787
2088
  type: "button",
1788
- className: [$t.button, a ?? ""].filter(Boolean).join(" "),
2089
+ className: [mn.button, a ?? ""].filter(Boolean).join(" "),
1789
2090
  "aria-pressed": t,
1790
2091
  "aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
1791
2092
  onClick: () => {
@@ -1794,7 +2095,7 @@ var Ct = [
1794
2095
  children: /* @__PURE__ */ i(S, {
1795
2096
  size: 16,
1796
2097
  strokeWidth: M(16),
1797
- className: [t ? $t.iconSaved : $t.icon, o ? $t.bounce : ""].filter(Boolean).join(" "),
2098
+ className: [t ? mn.iconSaved : mn.icon, o ? mn.bounce : ""].filter(Boolean).join(" "),
1798
2099
  fill: t ? "currentColor" : "none",
1799
2100
  onAnimationEnd: () => s(!1)
1800
2101
  })
@@ -1819,10 +2120,10 @@ var Ct = [
1819
2120
  description: "_description_jlv97_118",
1820
2121
  swatches: "_swatches_jlv97_131",
1821
2122
  addButton: "_addButton_jlv97_136"
1822
- }, tn = (e) => e.toLocaleString("en-US", {
2123
+ }, gn = (e) => e.toLocaleString("en-US", {
1823
2124
  style: "currency",
1824
2125
  currency: "USD"
1825
- }), nn = ({ 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: _ = tn, className: v }) => {
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 }) => {
1826
2127
  let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
1827
2128
  return /* @__PURE__ */ a("div", {
1828
2129
  className: [H.card, v ?? ""].filter(Boolean).join(" "),
@@ -1834,7 +2135,7 @@ var Ct = [
1834
2135
  alt: t ?? n,
1835
2136
  className: [H.image, f ? "" : H.imageDimmed].filter(Boolean).join(" ")
1836
2137
  }),
1837
- y && f && /* @__PURE__ */ a(jt, {
2138
+ y && f && /* @__PURE__ */ a(Gt, {
1838
2139
  variant: "danger",
1839
2140
  emphasis: "solid",
1840
2141
  className: H.saleBadge,
@@ -1844,7 +2145,7 @@ var Ct = [
1844
2145
  "%"
1845
2146
  ]
1846
2147
  }),
1847
- f && /* @__PURE__ */ i(en, {
2148
+ f && /* @__PURE__ */ i(hn, {
1848
2149
  saved: p,
1849
2150
  label: n,
1850
2151
  className: H.wishlistBtn,
@@ -1893,12 +2194,12 @@ var Ct = [
1893
2194
  className: H.swatches,
1894
2195
  role: "group",
1895
2196
  "aria-label": "Color",
1896
- children: u.map((e) => /* @__PURE__ */ i(Yt, {
2197
+ children: u.map((e) => /* @__PURE__ */ i(un, {
1897
2198
  ...e,
1898
2199
  onSelect: () => d?.(e.id ?? e.label)
1899
2200
  }, e.id ?? e.label))
1900
2201
  }),
1901
- /* @__PURE__ */ i(F, {
2202
+ /* @__PURE__ */ i(P, {
1902
2203
  variant: "primary",
1903
2204
  size: "md",
1904
2205
  disabled: !f,
@@ -1924,7 +2225,7 @@ var Ct = [
1924
2225
  thumbLeft: "_thumbLeft_1mrk8_70",
1925
2226
  thumbActive: "_thumbActive_1mrk8_75",
1926
2227
  thumbImage: "_thumbImage_1mrk8_79"
1927
- }, rn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
2228
+ }, vn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
1928
2229
  let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
1929
2230
  l || d(e), s?.(e);
1930
2231
  }, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
@@ -1975,18 +2276,18 @@ var Ct = [
1975
2276
  })
1976
2277
  ]
1977
2278
  });
1978
- }, an = {
2279
+ }, yn = {
1979
2280
  button: "_button_1vgn5_1",
1980
2281
  unselected: "_unselected_1vgn5_23",
1981
2282
  selected: "_selected_1vgn5_32",
1982
2283
  unavailable: "_unavailable_1vgn5_37",
1983
2284
  label: "_label_1vgn5_44",
1984
2285
  strike: "_strike_1vgn5_55"
1985
- }, on = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
2286
+ }, bn = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
1986
2287
  type: "button",
1987
2288
  className: [
1988
- an.button,
1989
- n ? t ? an.selected : an.unselected : an.unavailable,
2289
+ yn.button,
2290
+ n ? t ? yn.selected : yn.unselected : yn.unavailable,
1990
2291
  o ?? ""
1991
2292
  ].filter(Boolean).join(" "),
1992
2293
  disabled: !n,
@@ -1994,13 +2295,13 @@ var Ct = [
1994
2295
  "aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
1995
2296
  onClick: r,
1996
2297
  children: [/* @__PURE__ */ i("span", {
1997
- className: an.label,
2298
+ className: yn.label,
1998
2299
  children: e
1999
2300
  }), !n && /* @__PURE__ */ i("span", {
2000
- className: an.strike,
2301
+ className: yn.strike,
2001
2302
  "aria-hidden": "true"
2002
2303
  })]
2003
- }), sn = {
2304
+ }), xn = {
2004
2305
  row: "_row_1snsi_1",
2005
2306
  rowVertical: "_rowVertical_1snsi_8",
2006
2307
  stars: "_stars_1snsi_13",
@@ -2009,40 +2310,40 @@ var Ct = [
2009
2310
  label: "_label_1snsi_29",
2010
2311
  value: "_value_1snsi_38",
2011
2312
  count: "_count_1snsi_43"
2012
- }, cn = (e) => e.toLocaleString("en-US"), ln = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = cn, className: s }) => {
2313
+ }, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = Sn, className: s }) => {
2013
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", {
2014
- className: sn.stars,
2315
+ className: xn.stars,
2015
2316
  role: "img",
2016
2317
  "aria-label": `${c} out of 5 stars`,
2017
2318
  children: [
2018
2319
  Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(ne, {
2019
2320
  size: 24,
2020
2321
  strokeWidth: M(24),
2021
- className: sn.starFull,
2322
+ className: xn.starFull,
2022
2323
  fill: "currentColor",
2023
2324
  "aria-hidden": "true"
2024
2325
  }, `full-${t}`)),
2025
2326
  d && /* @__PURE__ */ i(re, {
2026
2327
  size: 24,
2027
2328
  strokeWidth: M(24),
2028
- className: sn.starFull,
2329
+ className: xn.starFull,
2029
2330
  fill: "currentColor",
2030
2331
  "aria-hidden": "true"
2031
2332
  }),
2032
2333
  Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(ne, {
2033
2334
  size: 24,
2034
2335
  strokeWidth: M(24),
2035
- className: sn.starEmpty,
2336
+ className: xn.starEmpty,
2036
2337
  "aria-hidden": "true"
2037
2338
  }, `empty-${t}`))
2038
2339
  ]
2039
2340
  }), m = n && /* @__PURE__ */ a("div", {
2040
- className: sn.label,
2341
+ className: xn.label,
2041
2342
  children: [/* @__PURE__ */ i("span", {
2042
- className: sn.value,
2343
+ className: xn.value,
2043
2344
  children: c.toFixed(1)
2044
2345
  }), t !== void 0 && /* @__PURE__ */ a("span", {
2045
- className: sn.count,
2346
+ className: xn.count,
2046
2347
  children: [
2047
2348
  "(",
2048
2349
  o(t),
@@ -2050,8 +2351,8 @@ var Ct = [
2050
2351
  ]
2051
2352
  })]
2052
2353
  }), h = [
2053
- sn.row,
2054
- r === "vertical" ? sn.rowVertical : "",
2354
+ xn.row,
2355
+ r === "vertical" ? xn.rowVertical : "",
2055
2356
  s ?? ""
2056
2357
  ].filter(Boolean).join(" ");
2057
2358
  return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
@@ -2061,9 +2362,9 @@ var Ct = [
2061
2362
  className: h,
2062
2363
  children: [p, m]
2063
2364
  });
2064
- }, un = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2365
+ }, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2065
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";
2066
- return /* @__PURE__ */ i(jt, {
2367
+ return /* @__PURE__ */ i(Gt, {
2067
2368
  variant: s,
2068
2369
  emphasis: "subtle",
2069
2370
  className: r,
@@ -2084,7 +2385,7 @@ var Ct = [
2084
2385
  excerpt: "_excerpt_1w9hp_114",
2085
2386
  author: "_author_1w9hp_123",
2086
2387
  authorText: "_authorText_1w9hp_130"
2087
- }, dn = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
2388
+ }, Tn = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
2088
2389
  let d = l === "horizontal";
2089
2390
  return /* @__PURE__ */ a("div", {
2090
2391
  className: [
@@ -2108,7 +2409,7 @@ var Ct = [
2108
2409
  children: [
2109
2410
  /* @__PURE__ */ a("div", {
2110
2411
  className: W.metaRow,
2111
- children: [/* @__PURE__ */ i(jt, {
2412
+ children: [/* @__PURE__ */ i(Gt, {
2112
2413
  variant: "accent",
2113
2414
  emphasis: "subtle",
2114
2415
  children: n
@@ -2143,7 +2444,7 @@ var Ct = [
2143
2444
  ]
2144
2445
  })]
2145
2446
  });
2146
- }, fn = {
2447
+ }, En = {
2147
2448
  card: "_card_8cf5b_1",
2148
2449
  cardHorizontal: "_cardHorizontal_8cf5b_12",
2149
2450
  cardVertical: "_cardVertical_8cf5b_20",
@@ -2155,52 +2456,52 @@ var Ct = [
2155
2456
  footer: "_footer_8cf5b_86",
2156
2457
  author: "_author_8cf5b_94",
2157
2458
  authorText: "_authorText_8cf5b_101"
2158
- }, pn = ({ image: e, imageAlt: t, badgeLabel: n = "Featured", title: r, excerpt: o, author: s, ctaLabel: c = "Read article", onCtaClick: l, orientation: u = "horizontal", className: d }) => {
2459
+ }, 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 }) => {
2159
2460
  let f = u === "vertical";
2160
2461
  return /* @__PURE__ */ a("div", {
2161
2462
  className: [
2162
- fn.card,
2163
- f ? fn.cardVertical : fn.cardHorizontal,
2463
+ En.card,
2464
+ f ? En.cardVertical : En.cardHorizontal,
2164
2465
  d ?? ""
2165
2466
  ].filter(Boolean).join(" "),
2166
2467
  children: [/* @__PURE__ */ i("img", {
2167
2468
  src: e,
2168
2469
  alt: t ?? "",
2169
- className: fn.image
2470
+ className: En.image
2170
2471
  }), /* @__PURE__ */ a("div", {
2171
- className: f ? fn.bodyVertical : fn.bodyHorizontal,
2472
+ className: f ? En.bodyVertical : En.bodyHorizontal,
2172
2473
  children: [
2173
- /* @__PURE__ */ i(jt, {
2474
+ /* @__PURE__ */ i(Gt, {
2174
2475
  variant: "accent",
2175
2476
  emphasis: "subtle",
2176
2477
  children: n
2177
2478
  }),
2178
2479
  /* @__PURE__ */ i("p", {
2179
- className: fn.title,
2480
+ className: En.title,
2180
2481
  children: r
2181
2482
  }),
2182
2483
  /* @__PURE__ */ i("p", {
2183
- className: fn.excerpt,
2484
+ className: En.excerpt,
2184
2485
  children: o
2185
2486
  }),
2186
2487
  /* @__PURE__ */ a("div", {
2187
- className: fn.footer,
2488
+ className: En.footer,
2188
2489
  children: [/* @__PURE__ */ a("div", {
2189
- className: fn.author,
2490
+ className: En.author,
2190
2491
  children: [/* @__PURE__ */ i(Ne, {
2191
2492
  size: "md",
2192
2493
  src: s.avatarSrc,
2193
2494
  alt: s.avatarAlt ?? s.name,
2194
2495
  initials: s.initials
2195
2496
  }), /* @__PURE__ */ a("p", {
2196
- className: fn.authorText,
2497
+ className: En.authorText,
2197
2498
  children: [
2198
2499
  s.name,
2199
2500
  " · ",
2200
2501
  s.date
2201
2502
  ]
2202
2503
  })]
2203
- }), /* @__PURE__ */ i(F, {
2504
+ }), /* @__PURE__ */ i(P, {
2204
2505
  variant: "secondary",
2205
2506
  size: "sm",
2206
2507
  onClick: l,
@@ -2210,7 +2511,7 @@ var Ct = [
2210
2511
  ]
2211
2512
  })]
2212
2513
  });
2213
- }, mn = {
2514
+ }, On = {
2214
2515
  chip: "_chip_scl8l_1",
2215
2516
  "chip--sm": "_chip--sm_scl8l_11",
2216
2517
  "chip--md": "_chip--md_scl8l_17",
@@ -2219,26 +2520,26 @@ var Ct = [
2219
2520
  "chip--outline": "_chip--outline_scl8l_35",
2220
2521
  "chip--solid": "_chip--solid_scl8l_39",
2221
2522
  "chip--subtle": "_chip--subtle_scl8l_43"
2222
- }, hn = {
2523
+ }, kn = {
2223
2524
  sm: 16,
2224
2525
  md: 20,
2225
2526
  lg: 24
2226
- }, gn = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
2227
- let o = hn[n], s = e.isValidElement(t) ? e.cloneElement(t, {
2527
+ }, An = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
2528
+ let o = kn[n], s = e.isValidElement(t) ? e.cloneElement(t, {
2228
2529
  size: o,
2229
2530
  strokeWidth: M(o)
2230
2531
  }) : t;
2231
2532
  return /* @__PURE__ */ i("div", {
2232
2533
  className: [
2233
- mn.chip,
2234
- mn[`chip--${n}`],
2235
- mn[`chip--${r}`],
2534
+ On.chip,
2535
+ On[`chip--${n}`],
2536
+ On[`chip--${r}`],
2236
2537
  a ?? ""
2237
2538
  ].filter(Boolean).join(" "),
2238
2539
  "aria-hidden": "true",
2239
2540
  children: s
2240
2541
  });
2241
- }, _n = {
2542
+ }, jn = {
2242
2543
  group: "_group_mvlh4_3",
2243
2544
  group__item: "_group__item_mvlh4_6",
2244
2545
  "group--sm": "_group--sm_mvlh4_9",
@@ -2249,16 +2550,16 @@ var Ct = [
2249
2550
  "overflow--md": "_overflow--md_mvlh4_26",
2250
2551
  "overflow--lg": "_overflow--lg_mvlh4_27",
2251
2552
  "overflow--xl": "_overflow--xl_mvlh4_28"
2252
- }, vn = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
2553
+ }, Mn = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
2253
2554
  let o = n.slice(0, t), s = n.length - o.length;
2254
2555
  return /* @__PURE__ */ a("div", {
2255
2556
  className: [
2256
- _n.group,
2257
- _n[`group--${e}`],
2557
+ jn.group,
2558
+ jn[`group--${e}`],
2258
2559
  r ?? ""
2259
2560
  ].filter(Boolean).join(" "),
2260
2561
  children: [o.map((t, n) => /* @__PURE__ */ i("span", {
2261
- className: _n.group__item,
2562
+ className: jn.group__item,
2262
2563
  children: /* @__PURE__ */ i(Ne, {
2263
2564
  size: e,
2264
2565
  src: t.src,
@@ -2266,25 +2567,25 @@ var Ct = [
2266
2567
  alt: t.alt
2267
2568
  })
2268
2569
  }, n)), s > 0 && /* @__PURE__ */ i("span", {
2269
- className: _n.group__item,
2570
+ className: jn.group__item,
2270
2571
  children: /* @__PURE__ */ a("span", {
2271
- className: [_n.overflow, _n[`overflow--${e}`]].join(" "),
2572
+ className: [jn.overflow, jn[`overflow--${e}`]].join(" "),
2272
2573
  children: ["+", s]
2273
2574
  })
2274
2575
  })]
2275
2576
  });
2276
- }, yn = {
2577
+ }, Nn = {
2277
2578
  root: "_root_165je_1",
2278
2579
  dot: "_dot_165je_13",
2279
2580
  dotActive: "_dotActive_165je_21",
2280
2581
  dotRemote: "_dotRemote_165je_25"
2281
- }, bn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
2282
- className: [yn.root, n ?? ""].filter(Boolean).join(" "),
2582
+ }, Pn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
2583
+ className: [Nn.root, n ?? ""].filter(Boolean).join(" "),
2283
2584
  children: [/* @__PURE__ */ i("span", {
2284
- className: [yn.dot, t === "active" ? yn.dotActive : yn.dotRemote].join(" "),
2585
+ className: [Nn.dot, t === "active" ? Nn.dotActive : Nn.dotRemote].join(" "),
2285
2586
  "aria-hidden": "true"
2286
2587
  }), e]
2287
- }), xn = {
2588
+ }), Fn = {
2288
2589
  root: "_root_15jaa_1",
2289
2590
  rootCard: "_rootCard_15jaa_9",
2290
2591
  rootRow: "_rootRow_15jaa_21",
@@ -2294,30 +2595,30 @@ var Ct = [
2294
2595
  description: "_description_15jaa_56",
2295
2596
  metaRow: "_metaRow_15jaa_65",
2296
2597
  applyBtn: "_applyBtn_15jaa_72"
2297
- }, Sn = ({ title: e, description: t, department: n, employmentType: o, location: s, locationStatus: c = "remote", onApply: l, applyLabel: u = "Apply now", layout: d = "card", className: f }) => {
2598
+ }, In = ({ title: e, description: t, department: n, employmentType: o, location: s, locationStatus: c = "remote", onApply: l, applyLabel: u = "Apply now", layout: d = "card", className: f }) => {
2298
2599
  let p = d === "row", m = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
2299
- className: xn.titleGroup,
2600
+ className: Fn.titleGroup,
2300
2601
  children: [/* @__PURE__ */ i("p", {
2301
- className: xn.title,
2602
+ className: Fn.title,
2302
2603
  children: e
2303
2604
  }), /* @__PURE__ */ i("p", {
2304
- className: xn.description,
2605
+ className: Fn.description,
2305
2606
  children: t
2306
2607
  })]
2307
2608
  }), /* @__PURE__ */ a("div", {
2308
- className: xn.metaRow,
2609
+ className: Fn.metaRow,
2309
2610
  children: [
2310
- /* @__PURE__ */ i(jt, {
2611
+ /* @__PURE__ */ i(Gt, {
2311
2612
  variant: "accent",
2312
2613
  emphasis: "subtle",
2313
2614
  children: n
2314
2615
  }),
2315
- /* @__PURE__ */ i(jt, {
2616
+ /* @__PURE__ */ i(Gt, {
2316
2617
  variant: "neutral",
2317
2618
  emphasis: "subtle",
2318
2619
  children: o
2319
2620
  }),
2320
- /* @__PURE__ */ i(bn, {
2621
+ /* @__PURE__ */ i(Pn, {
2321
2622
  location: s,
2322
2623
  status: c
2323
2624
  })
@@ -2325,57 +2626,57 @@ var Ct = [
2325
2626
  })] });
2326
2627
  return p ? /* @__PURE__ */ a("div", {
2327
2628
  className: [
2328
- xn.root,
2329
- xn.rootRow,
2629
+ Fn.root,
2630
+ Fn.rootRow,
2330
2631
  f ?? ""
2331
2632
  ].filter(Boolean).join(" "),
2332
2633
  children: [/* @__PURE__ */ i("div", {
2333
- className: xn.rowLeft,
2634
+ className: Fn.rowLeft,
2334
2635
  children: m
2335
- }), /* @__PURE__ */ i(F, {
2636
+ }), /* @__PURE__ */ i(P, {
2336
2637
  variant: "secondary",
2337
2638
  size: "sm",
2338
- className: xn.applyBtn,
2639
+ className: Fn.applyBtn,
2339
2640
  onClick: l,
2340
2641
  children: u
2341
2642
  })]
2342
2643
  }) : /* @__PURE__ */ a("div", {
2343
2644
  className: [
2344
- xn.root,
2345
- xn.rootCard,
2645
+ Fn.root,
2646
+ Fn.rootCard,
2346
2647
  f ?? ""
2347
2648
  ].filter(Boolean).join(" "),
2348
- children: [m, /* @__PURE__ */ i(F, {
2649
+ children: [m, /* @__PURE__ */ i(P, {
2349
2650
  variant: "secondary",
2350
2651
  size: "sm",
2351
2652
  onClick: l,
2352
2653
  children: u
2353
2654
  })]
2354
2655
  });
2355
- }, Cn = {
2656
+ }, Ln = {
2356
2657
  root: "_root_3bf2n_1",
2357
2658
  rootCenter: "_rootCenter_3bf2n_9",
2358
2659
  rootLeft: "_rootLeft_3bf2n_14",
2359
2660
  title: "_title_3bf2n_19",
2360
2661
  subtitle: "_subtitle_3bf2n_28"
2361
- }, wn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
2662
+ }, Rn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
2362
2663
  className: [
2363
- Cn.root,
2364
- r === "left" ? Cn.rootLeft : Cn.rootCenter,
2664
+ Ln.root,
2665
+ r === "left" ? Ln.rootLeft : Ln.rootCenter,
2365
2666
  s ?? ""
2366
2667
  ].filter(Boolean).join(" "),
2367
2668
  children: [
2368
- e && /* @__PURE__ */ i(jt, {
2669
+ e && /* @__PURE__ */ i(Gt, {
2369
2670
  variant: "accent",
2370
2671
  emphasis: "subtle",
2371
2672
  children: e
2372
2673
  }),
2373
2674
  /* @__PURE__ */ i(o, {
2374
- className: Cn.title,
2675
+ className: Ln.title,
2375
2676
  children: t
2376
2677
  }),
2377
2678
  n && /* @__PURE__ */ i("p", {
2378
- className: Cn.subtitle,
2679
+ className: Ln.subtitle,
2379
2680
  children: n
2380
2681
  })
2381
2682
  ]
@@ -2392,7 +2693,7 @@ var Ct = [
2392
2693
  role: "_role_1ye9i_99",
2393
2694
  social: "_social_1ye9i_108",
2394
2695
  bio: "_bio_1ye9i_116"
2395
- }, Tn = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
2696
+ }, zn = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
2396
2697
  className: [G.card, u ?? ""].filter(Boolean).join(" "),
2397
2698
  children: [/* @__PURE__ */ a("div", {
2398
2699
  className: G.imageWrap,
@@ -2402,7 +2703,7 @@ var Ct = [
2402
2703
  className: G.image
2403
2704
  }), /* @__PURE__ */ i("div", {
2404
2705
  className: G.locationBar,
2405
- children: /* @__PURE__ */ i(bn, {
2706
+ children: /* @__PURE__ */ i(Pn, {
2406
2707
  location: o,
2407
2708
  status: s,
2408
2709
  className: G.locationDot
@@ -2427,7 +2728,7 @@ var Ct = [
2427
2728
  href: e.href,
2428
2729
  onClick: e.onClick,
2429
2730
  "aria-label": e.label,
2430
- children: /* @__PURE__ */ i(gn, {
2731
+ children: /* @__PURE__ */ i(An, {
2431
2732
  icon: e.icon,
2432
2733
  size: "sm",
2433
2734
  variant: "subtle"
@@ -2439,7 +2740,7 @@ var Ct = [
2439
2740
  children: c
2440
2741
  })]
2441
2742
  })]
2442
- }), En = {
2743
+ }), Bn = {
2443
2744
  alert: "_alert_1hjs5_3",
2444
2745
  alert__icon: "_alert__icon_1hjs5_12",
2445
2746
  alert__content: "_alert__content_1hjs5_13",
@@ -2450,7 +2751,7 @@ var Ct = [
2450
2751
  "alert--warning": "_alert--warning_1hjs5_24",
2451
2752
  "alert--danger": "_alert--danger_1hjs5_27",
2452
2753
  "alert--neutral": "_alert--neutral_1hjs5_30"
2453
- }, Dn = {
2754
+ }, Vn = {
2454
2755
  info: /* @__PURE__ */ a(r, { children: [
2455
2756
  /* @__PURE__ */ i("circle", {
2456
2757
  cx: "12",
@@ -2524,15 +2825,15 @@ var Ct = [
2524
2825
  y2: "8"
2525
2826
  })
2526
2827
  ] })
2527
- }, On = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
2828
+ }, Hn = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
2528
2829
  role: "alert",
2529
2830
  className: [
2530
- En.alert,
2531
- En[`alert--${e}`],
2831
+ Bn.alert,
2832
+ Bn[`alert--${e}`],
2532
2833
  o ?? ""
2533
2834
  ].filter(Boolean).join(" "),
2534
2835
  children: [/* @__PURE__ */ i("span", {
2535
- className: En.alert__icon,
2836
+ className: Bn.alert__icon,
2536
2837
  "aria-hidden": "true",
2537
2838
  children: /* @__PURE__ */ i("svg", {
2538
2839
  viewBox: "0 0 24 24",
@@ -2543,15 +2844,15 @@ var Ct = [
2543
2844
  strokeLinejoin: "round",
2544
2845
  width: 18,
2545
2846
  height: 18,
2546
- children: r ?? Dn[e]
2847
+ children: r ?? Vn[e]
2547
2848
  })
2548
2849
  }), /* @__PURE__ */ a("div", {
2549
- className: En.alert__content,
2850
+ className: Bn.alert__content,
2550
2851
  children: [t && /* @__PURE__ */ i("div", {
2551
- className: En.alert__title,
2852
+ className: Bn.alert__title,
2552
2853
  children: t
2553
2854
  }), n && /* @__PURE__ */ i("div", {
2554
- className: En.alert__description,
2855
+ className: Bn.alert__description,
2555
2856
  children: n
2556
2857
  })]
2557
2858
  })]
@@ -2572,7 +2873,7 @@ var Ct = [
2572
2873
  card__footer: "_card__footer_6iftf_47",
2573
2874
  card__meta: "_card__meta_6iftf_48",
2574
2875
  card__assignees: "_card__assignees_6iftf_49"
2575
- }, kn = ({ type: e = "default", state: t = "default", cover: n, leading: o, title: s, trailing: c, description: l, tags: u, meta: d, assignees: f, onClick: p, className: m }) => {
2876
+ }, Un = ({ type: e = "default", state: t = "default", cover: n, leading: o, title: s, trailing: c, description: l, tags: u, meta: d, assignees: f, onClick: p, className: m }) => {
2576
2877
  let h = e !== "compact", g = d || f;
2577
2878
  return /* @__PURE__ */ a("div", {
2578
2879
  onClick: p,
@@ -2625,7 +2926,7 @@ var Ct = [
2625
2926
  })] })
2626
2927
  ]
2627
2928
  });
2628
- }, An = {
2929
+ }, Wn = {
2629
2930
  breadcrumb: "_breadcrumb_tszff_3",
2630
2931
  list: "_list_tszff_5",
2631
2932
  item: "_item_tszff_15",
@@ -2634,12 +2935,12 @@ var Ct = [
2634
2935
  separator: "_separator_tszff_33",
2635
2936
  "list--button": "_list--button_tszff_38",
2636
2937
  chip: "_chip_tszff_41"
2637
- }, jn = {
2938
+ }, Gn = {
2638
2939
  highlight: "_highlight_1bp09_15",
2639
2940
  visible: "_visible_1bp09_24",
2640
2941
  glide: "_glide_1bp09_28"
2641
- }, Mn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
2642
- function Nn(e, t) {
2942
+ }, Kn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
2943
+ function qn(e, t) {
2643
2944
  let n = 0, r = 0, i = e;
2644
2945
  for (; i && i !== t;) {
2645
2946
  n += i.offsetLeft, r += i.offsetTop;
@@ -2658,7 +2959,7 @@ function Nn(e, t) {
2658
2959
  tone: a.getPropertyValue("--hover-tone").trim()
2659
2960
  };
2660
2961
  }
2661
- function Pn() {
2962
+ function Jn() {
2662
2963
  let t = e.useRef(null), [n, r] = e.useState(null), a = e.useCallback((e) => {
2663
2964
  t.current = e, r(e);
2664
2965
  }, []), o = e.useRef(null), s = e.useRef(!1), c = e.useRef(null), l = e.useRef(!1), u = e.useRef(null), [d, f] = e.useState(null), [p, m] = e.useState(!1), [h, g] = e.useState(!1), _ = e.useCallback(() => {
@@ -2667,7 +2968,7 @@ function Pn() {
2667
2968
  let n = t.current;
2668
2969
  if (!n) return;
2669
2970
  n !== u.current && (u.current = n, s.current = !1), o.current = e;
2670
- let r = Nn(e, n);
2971
+ let r = qn(e, n);
2671
2972
  if (s.current) {
2672
2973
  f(r);
2673
2974
  return;
@@ -2686,7 +2987,7 @@ function Pn() {
2686
2987
  if (!n) return;
2687
2988
  let r = e.target.closest("[data-hover-item]");
2688
2989
  if (!(!r || r.closest("[data-hover-group]") !== n)) {
2689
- if (Mn(r)) {
2990
+ if (Kn(r)) {
2690
2991
  _();
2691
2992
  return;
2692
2993
  }
@@ -2703,7 +3004,7 @@ function Pn() {
2703
3004
  _();
2704
3005
  return;
2705
3006
  }
2706
- f(Nn(t, e));
3007
+ f(qn(t, e));
2707
3008
  }
2708
3009
  }, r = new ResizeObserver(t);
2709
3010
  return r.observe(e), e.addEventListener("scroll", t, !0), () => {
@@ -2714,9 +3015,9 @@ function Pn() {
2714
3015
  ref: c,
2715
3016
  "aria-hidden": "true",
2716
3017
  className: [
2717
- jn.highlight,
2718
- p ? jn.visible : "",
2719
- h ? jn.glide : ""
3018
+ Gn.highlight,
3019
+ p ? Gn.visible : "",
3020
+ h ? Gn.glide : ""
2720
3021
  ].filter(Boolean).join(" "),
2721
3022
  style: d ? {
2722
3023
  transform: `translate(${d.x}px, ${d.y}px)`,
@@ -2726,7 +3027,7 @@ function Pn() {
2726
3027
  background: d.tone || void 0
2727
3028
  } : void 0
2728
3029
  }), x = e.useCallback((e) => {
2729
- e && !Mn(e) ? v(e) : _();
3030
+ e && !Kn(e) ? v(e) : _();
2730
3031
  }, [_, v]);
2731
3032
  return {
2732
3033
  ref: a,
@@ -2739,8 +3040,8 @@ function Pn() {
2739
3040
  showItem: x
2740
3041
  };
2741
3042
  }
2742
- var Fn = ({ children: e, style: t, ...n }) => {
2743
- let { ref: r, groupProps: i, highlight: o } = Pn();
3043
+ var Yn = ({ children: e, style: t, ...n }) => {
3044
+ let { ref: r, groupProps: i, highlight: o } = Jn();
2744
3045
  return /* @__PURE__ */ a("div", {
2745
3046
  ref: r,
2746
3047
  ...n,
@@ -2751,8 +3052,8 @@ var Fn = ({ children: e, style: t, ...n }) => {
2751
3052
  },
2752
3053
  children: [o, e]
2753
3054
  });
2754
- }, In = ({ size: e }) => /* @__PURE__ */ i("span", {
2755
- className: An.separator,
3055
+ }, Xn = ({ size: e }) => /* @__PURE__ */ i("span", {
3056
+ className: Wn.separator,
2756
3057
  "aria-hidden": "true",
2757
3058
  children: /* @__PURE__ */ i("svg", {
2758
3059
  viewBox: "0 0 24 24",
@@ -2765,23 +3066,23 @@ var Fn = ({ children: e, style: t, ...n }) => {
2765
3066
  height: e,
2766
3067
  children: /* @__PURE__ */ i("path", { d: "m9 18 6-6-6-6" })
2767
3068
  })
2768
- }), Ln = ({ items: e, variant: t = "text", className: n }) => {
2769
- let r = t === "button", o = Pn();
3069
+ }), Zn = ({ items: e, variant: t = "text", className: n }) => {
3070
+ let r = t === "button", o = Jn();
2770
3071
  return /* @__PURE__ */ i("nav", {
2771
3072
  "aria-label": "Breadcrumb",
2772
- className: [An.breadcrumb, n ?? ""].filter(Boolean).join(" "),
3073
+ className: [Wn.breadcrumb, n ?? ""].filter(Boolean).join(" "),
2773
3074
  children: /* @__PURE__ */ a("ol", {
2774
3075
  ref: o.ref,
2775
3076
  ...r ? o.groupProps : {},
2776
- className: [An.list, r ? An["list--button"] : ""].filter(Boolean).join(" "),
3077
+ className: [Wn.list, r ? Wn["list--button"] : ""].filter(Boolean).join(" "),
2777
3078
  children: [r && /* @__PURE__ */ i("li", {
2778
3079
  "aria-hidden": "true",
2779
3080
  style: { display: "contents" },
2780
3081
  children: o.highlight
2781
3082
  }), e.map((t, n) => {
2782
- let o = n === e.length - 1, s = r ? An.chip : o ? An.current : An.crumb;
3083
+ let o = n === e.length - 1, s = r ? Wn.chip : o ? Wn.current : Wn.crumb;
2783
3084
  return /* @__PURE__ */ a("li", {
2784
- className: An.item,
3085
+ className: Wn.item,
2785
3086
  children: [o || !t.href ? /* @__PURE__ */ i("span", {
2786
3087
  className: s,
2787
3088
  "data-hover-item": r ? "off" : void 0,
@@ -2792,26 +3093,26 @@ var Fn = ({ children: e, style: t, ...n }) => {
2792
3093
  "data-hover-item": "",
2793
3094
  className: s,
2794
3095
  children: t.label
2795
- }), !o && /* @__PURE__ */ i(In, { size: r ? 14 : 16 })]
3096
+ }), !o && /* @__PURE__ */ i(Xn, { size: r ? 14 : 16 })]
2796
3097
  }, n);
2797
3098
  })]
2798
3099
  })
2799
3100
  });
2800
- }, Rn = {
3101
+ }, Qn = {
2801
3102
  meta: "_meta_g1mpv_2",
2802
3103
  meta__icon: "_meta__icon_g1mpv_3",
2803
3104
  meta__label: "_meta__label_g1mpv_4"
2804
- }, zn = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
2805
- className: [Rn.meta, n ?? ""].filter(Boolean).join(" "),
3105
+ }, $n = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
3106
+ className: [Qn.meta, n ?? ""].filter(Boolean).join(" "),
2806
3107
  children: [/* @__PURE__ */ i("span", {
2807
- className: Rn.meta__icon,
3108
+ className: Qn.meta__icon,
2808
3109
  "aria-hidden": "true",
2809
3110
  children: e
2810
3111
  }), /* @__PURE__ */ i("span", {
2811
- className: Rn.meta__label,
3112
+ className: Qn.meta__label,
2812
3113
  children: t
2813
3114
  })]
2814
- }), Bn = {
3115
+ }), er = {
2815
3116
  composer: "_composer_1dwtx_2",
2816
3117
  "composer--typing": "_composer--typing_1dwtx_15",
2817
3118
  input: "_input_1dwtx_22",
@@ -2825,7 +3126,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
2825
3126
  row: "_row_1dwtx_36",
2826
3127
  icon: "_icon_1dwtx_37",
2827
3128
  send: "_send_1dwtx_52"
2828
- }, Vn = ({ state: t = "default", value: n, placeholder: r = "Message...", onChange: o, onSend: s, onAttachmentsChange: c, uploadName: l, uploadProgress: u = 0, onCancelUpload: d, className: f }) => {
3129
+ }, tr = ({ state: t = "default", value: n, placeholder: r = "Message...", onChange: o, onSend: s, onAttachmentsChange: c, uploadName: l, uploadProgress: u = 0, onCancelUpload: d, className: f }) => {
2829
3130
  let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, y] = e.useState({
2830
3131
  top: 0,
2831
3132
  right: 0
@@ -2875,29 +3176,29 @@ var Fn = ({ children: e, style: t, ...n }) => {
2875
3176
  c?.(x);
2876
3177
  }, [x, c]), /* @__PURE__ */ a("div", {
2877
3178
  className: [
2878
- Bn.composer,
2879
- Bn[`composer--${t}`],
3179
+ er.composer,
3180
+ er[`composer--${t}`],
2880
3181
  f ?? ""
2881
3182
  ].filter(Boolean).join(" "),
2882
3183
  children: [
2883
3184
  t === "uploading" && /* @__PURE__ */ a("div", {
2884
- className: Bn.upload,
3185
+ className: er.upload,
2885
3186
  children: [
2886
3187
  /* @__PURE__ */ i(b, {
2887
3188
  size: 16,
2888
3189
  strokeWidth: M(16),
2889
- className: Bn.upload__icon,
3190
+ className: er.upload__icon,
2890
3191
  "aria-hidden": "true"
2891
3192
  }),
2892
3193
  /* @__PURE__ */ a("div", {
2893
- className: Bn.upload__body,
3194
+ className: er.upload__body,
2894
3195
  children: [/* @__PURE__ */ i("span", {
2895
- className: Bn.upload__name,
3196
+ className: er.upload__name,
2896
3197
  children: l
2897
3198
  }), /* @__PURE__ */ i("div", {
2898
- className: Bn.upload__track,
3199
+ className: er.upload__track,
2899
3200
  children: /* @__PURE__ */ i("div", {
2900
- className: Bn.upload__fill,
3201
+ className: er.upload__fill,
2901
3202
  style: { width: `${u}%` }
2902
3203
  })
2903
3204
  })]
@@ -2991,7 +3292,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
2991
3292
  style: { display: "none" }
2992
3293
  }),
2993
3294
  /* @__PURE__ */ a("div", {
2994
- className: Bn.row,
3295
+ className: er.row,
2995
3296
  children: [
2996
3297
  /* @__PURE__ */ i(He, {
2997
3298
  icon: O,
@@ -3004,7 +3305,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
3004
3305
  /* @__PURE__ */ i("input", {
3005
3306
  ref: C,
3006
3307
  type: "text",
3007
- className: Bn.input,
3308
+ className: er.input,
3008
3309
  value: D,
3009
3310
  placeholder: p ? "You can't reply to this conversation" : r,
3010
3311
  disabled: p,
@@ -3090,7 +3391,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
3090
3391
  })
3091
3392
  ]
3092
3393
  });
3093
- }, Hn = {
3394
+ }, nr = {
3094
3395
  wrapper: "_wrapper_1nmcn_3",
3095
3396
  "wrapper--disabled": "_wrapper--disabled_1nmcn_11",
3096
3397
  input: "_input_1nmcn_14",
@@ -3102,16 +3403,16 @@ var Fn = ({ children: e, style: t, ...n }) => {
3102
3403
  text__description: "_text__description_1nmcn_73",
3103
3404
  checkbox: "_checkbox_1nmcn_77",
3104
3405
  "wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
3105
- }, Un = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
3406
+ }, rr = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
3106
3407
  let d = e.useId(), f = s ?? d, p = e.useRef(null);
3107
3408
  return e.useImperativeHandle(u, () => p.current), e.useEffect(() => {
3108
3409
  p.current && (p.current.indeterminate = !!r);
3109
3410
  }, [r]), /* @__PURE__ */ a("label", {
3110
3411
  htmlFor: f,
3111
3412
  className: [
3112
- Hn.wrapper,
3113
- n ? Hn["wrapper--withDescription"] : "",
3114
- o ? Hn["wrapper--disabled"] : "",
3413
+ nr.wrapper,
3414
+ n ? nr["wrapper--withDescription"] : "",
3415
+ o ? nr["wrapper--disabled"] : "",
3115
3416
  c ?? ""
3116
3417
  ].filter(Boolean).join(" "),
3117
3418
  children: [
@@ -3120,14 +3421,14 @@ var Fn = ({ children: e, style: t, ...n }) => {
3120
3421
  id: f,
3121
3422
  type: "checkbox",
3122
3423
  disabled: o,
3123
- className: Hn.input,
3424
+ className: nr.input,
3124
3425
  ...l
3125
3426
  }),
3126
3427
  /* @__PURE__ */ a("span", {
3127
- className: Hn.box,
3428
+ className: nr.box,
3128
3429
  "aria-hidden": "true",
3129
3430
  children: [/* @__PURE__ */ i("svg", {
3130
- className: Hn.check,
3431
+ className: nr.check,
3131
3432
  width: 12,
3132
3433
  height: 12,
3133
3434
  viewBox: "0 0 24 24",
@@ -3137,22 +3438,22 @@ var Fn = ({ children: e, style: t, ...n }) => {
3137
3438
  strokeLinecap: "round",
3138
3439
  strokeLinejoin: "round",
3139
3440
  children: /* @__PURE__ */ i("polyline", { points: "20 6 9 17 4 12" })
3140
- }), /* @__PURE__ */ i("span", { className: Hn.dash })]
3441
+ }), /* @__PURE__ */ i("span", { className: nr.dash })]
3141
3442
  }),
3142
3443
  (t || n) && /* @__PURE__ */ a("span", {
3143
- className: Hn.text,
3444
+ className: nr.text,
3144
3445
  children: [t && /* @__PURE__ */ i("span", {
3145
- className: Hn.text__label,
3446
+ className: nr.text__label,
3146
3447
  children: t
3147
3448
  }), n && /* @__PURE__ */ i("span", {
3148
- className: Hn.text__description,
3449
+ className: nr.text__description,
3149
3450
  children: n
3150
3451
  })]
3151
3452
  })
3152
3453
  ]
3153
3454
  });
3154
3455
  });
3155
- Un.displayName = "Checkbox";
3456
+ rr.displayName = "Checkbox";
3156
3457
  var q = {
3157
3458
  item: "_item_1bf0e_2",
3158
3459
  "item--hover": "_item--hover_1bf0e_12",
@@ -3168,7 +3469,7 @@ var q = {
3168
3469
  item__preview: "_item__preview_1bf0e_31",
3169
3470
  item__typing: "_item__typing_1bf0e_36",
3170
3471
  item__badge: "_item__badge_1bf0e_37"
3171
- }, Wn = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: o, unreadCount: c, onClick: l, className: u }) => /* @__PURE__ */ a("div", {
3472
+ }, ir = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: o, unreadCount: c, onClick: l, className: u }) => /* @__PURE__ */ a("div", {
3172
3473
  role: "button",
3173
3474
  "data-hover-item": "",
3174
3475
  tabIndex: 0,
@@ -3222,12 +3523,12 @@ var q = {
3222
3523
  })]
3223
3524
  })]
3224
3525
  })]
3225
- }), Gn = {
3526
+ }), ar = {
3226
3527
  chart: "_chart_aiboa_2",
3227
3528
  center: "_center_aiboa_26",
3228
3529
  center__value: "_center__value_aiboa_35",
3229
3530
  center__caption: "_center__caption_aiboa_36"
3230
- }, Kn = {
3531
+ }, or = {
3231
3532
  sm: {
3232
3533
  h: 180,
3233
3534
  inner: 50,
@@ -3248,26 +3549,26 @@ var q = {
3248
3549
  inner: 98,
3249
3550
  outer: 142
3250
3551
  }
3251
- }, qn = ({ data: t, size: n = "md", centerValue: r, centerCaption: o, height: s, className: c }) => {
3552
+ }, sr = ({ data: t, size: n = "md", centerValue: r, centerCaption: o, height: s, className: c }) => {
3252
3553
  let [l, u] = e.useState(null), [d, f] = e.useState(null), p = (e) => {
3253
3554
  let t = e.currentTarget.getBoundingClientRect();
3254
3555
  f({
3255
3556
  x: e.clientX - t.left,
3256
3557
  y: e.clientY - t.top
3257
3558
  });
3258
- }, m = e.useRef(null), h = St(m), g = [
3559
+ }, m = e.useRef(null), h = It(m), g = [
3259
3560
  1,
3260
3561
  2,
3261
3562
  3,
3262
3563
  4,
3263
3564
  5
3264
- ].map((e) => h(`--color-chart-${e}`) ?? Ct[e - 1]), _ = {
3265
- ...Kn[n],
3266
- h: s ?? Kn[n].h
3565
+ ].map((e) => h(`--color-chart-${e}`) ?? Lt[e - 1]), _ = {
3566
+ ...or[n],
3567
+ h: s ?? or[n].h
3267
3568
  }, v = (_.outer - _.inner) / 2 - 7;
3268
3569
  return /* @__PURE__ */ a("div", {
3269
3570
  ref: m,
3270
- className: [Gn.chart, c ?? ""].filter(Boolean).join(" "),
3571
+ className: [ar.chart, c ?? ""].filter(Boolean).join(" "),
3271
3572
  style: { height: _.h },
3272
3573
  onMouseMove: p,
3273
3574
  children: [/* @__PURE__ */ i(xe, {
@@ -3292,29 +3593,29 @@ var q = {
3292
3593
  fillOpacity: l !== null && t !== l ? .45 : 1
3293
3594
  }, t))
3294
3595
  }), /* @__PURE__ */ i(Se, {
3295
- content: /* @__PURE__ */ i(Tt, {}),
3596
+ content: /* @__PURE__ */ i(zt, {}),
3296
3597
  wrapperStyle: { zIndex: 50 },
3297
3598
  position: d ?? void 0
3298
3599
  })] })
3299
3600
  }), (r || o) && /* @__PURE__ */ a("div", {
3300
- className: Gn.center,
3601
+ className: ar.center,
3301
3602
  children: [r && /* @__PURE__ */ i("span", {
3302
- className: Gn.center__value,
3603
+ className: ar.center__value,
3303
3604
  children: r
3304
3605
  }), o && /* @__PURE__ */ i("span", {
3305
- className: Gn.center__caption,
3606
+ className: ar.center__caption,
3306
3607
  children: o
3307
3608
  })]
3308
3609
  })]
3309
3610
  });
3310
- }, Jn = {
3611
+ }, cr = {
3311
3612
  empty: "_empty_1sxwx_2",
3312
3613
  empty__chip: "_empty__chip_1sxwx_12",
3313
3614
  "empty__chip--error": "_empty__chip--error_1sxwx_22",
3314
3615
  empty__title: "_empty__title_1sxwx_23",
3315
3616
  empty__desc: "_empty__desc_1sxwx_31",
3316
3617
  empty__action: "_empty__action_1sxwx_39"
3317
- }, Yn = {
3618
+ }, lr = {
3318
3619
  "no-data": {
3319
3620
  icon: /* @__PURE__ */ i(C, {
3320
3621
  size: 18,
@@ -3339,34 +3640,34 @@ var q = {
3339
3640
  title: "Couldn't load data",
3340
3641
  description: "Something went wrong while fetching records."
3341
3642
  }
3342
- }, Xn = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
3343
- let l = Yn[e];
3643
+ }, ur = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
3644
+ let l = lr[e];
3344
3645
  return /* @__PURE__ */ a("div", {
3345
- className: [Jn.empty, c ?? ""].filter(Boolean).join(" "),
3646
+ className: [cr.empty, c ?? ""].filter(Boolean).join(" "),
3346
3647
  role: "status",
3347
3648
  children: [
3348
3649
  /* @__PURE__ */ i("span", {
3349
- className: [Jn.empty__chip, Jn[`empty__chip--${e}`]].join(" "),
3650
+ className: [cr.empty__chip, cr[`empty__chip--${e}`]].join(" "),
3350
3651
  "aria-hidden": "true",
3351
3652
  children: s ?? l.icon
3352
3653
  }),
3353
3654
  /* @__PURE__ */ i("p", {
3354
- className: Jn.empty__title,
3655
+ className: cr.empty__title,
3355
3656
  children: t ?? l.title
3356
3657
  }),
3357
3658
  /* @__PURE__ */ i("p", {
3358
- className: Jn.empty__desc,
3659
+ className: cr.empty__desc,
3359
3660
  children: n ?? l.description
3360
3661
  }),
3361
3662
  r && /* @__PURE__ */ i("button", {
3362
3663
  type: "button",
3363
- className: Jn.empty__action,
3664
+ className: cr.empty__action,
3364
3665
  onClick: o,
3365
3666
  children: r
3366
3667
  })
3367
3668
  ]
3368
3669
  });
3369
- }, Zn = {
3670
+ }, dr = {
3370
3671
  chip: "_chip_1qnyq_2",
3371
3672
  chip__lead: "_chip__lead_1qnyq_20",
3372
3673
  chip__trail: "_chip__trail_1qnyq_20",
@@ -3374,50 +3675,50 @@ var q = {
3374
3675
  chip__remove: "_chip__remove_1qnyq_29",
3375
3676
  "chip--add": "_chip--add_1qnyq_38",
3376
3677
  "chip--leaving": "_chip--leaving_1qnyq_45"
3377
- }, Qn = 160, $n = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, er = ({ type: t = "default", children: n, onClick: r, onRemove: o, className: s }) => {
3678
+ }, fr = 160, pr = () => typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, mr = ({ type: t = "default", children: n, onClick: r, onRemove: o, className: s }) => {
3378
3679
  let [c, l] = e.useState(!1), u = e.useRef(void 0);
3379
3680
  e.useEffect(() => () => window.clearTimeout(u.current), []);
3380
3681
  let f = () => {
3381
3682
  if (!c) {
3382
- if ($n()) {
3683
+ if (pr()) {
3383
3684
  o?.();
3384
3685
  return;
3385
3686
  }
3386
3687
  l(!0), u.current = window.setTimeout(() => {
3387
3688
  o?.(), l(!1);
3388
- }, Qn);
3689
+ }, fr);
3389
3690
  }
3390
3691
  };
3391
3692
  return /* @__PURE__ */ a("button", {
3392
3693
  type: "button",
3393
3694
  onClick: r,
3394
3695
  className: [
3395
- Zn.chip,
3396
- Zn[`chip--${t}`],
3397
- c ? Zn["chip--leaving"] : "",
3696
+ dr.chip,
3697
+ dr[`chip--${t}`],
3698
+ c ? dr["chip--leaving"] : "",
3398
3699
  s ?? ""
3399
3700
  ].filter(Boolean).join(" "),
3400
3701
  children: [
3401
3702
  t === "add" && /* @__PURE__ */ i(k, {
3402
3703
  size: 14,
3403
3704
  strokeWidth: M(14),
3404
- className: Zn.chip__lead,
3705
+ className: dr.chip__lead,
3405
3706
  "aria-hidden": "true"
3406
3707
  }),
3407
3708
  /* @__PURE__ */ i("span", {
3408
- className: Zn.chip__label,
3709
+ className: dr.chip__label,
3409
3710
  children: n
3410
3711
  }),
3411
3712
  t === "default" && /* @__PURE__ */ i(d, {
3412
3713
  size: 14,
3413
3714
  strokeWidth: M(14),
3414
- className: Zn.chip__trail,
3715
+ className: dr.chip__trail,
3415
3716
  "aria-hidden": "true"
3416
3717
  }),
3417
3718
  t === "active" && /* @__PURE__ */ i("span", {
3418
3719
  role: "button",
3419
3720
  "aria-label": "Remove filter",
3420
- className: Zn.chip__remove,
3721
+ className: dr.chip__remove,
3421
3722
  onClick: (e) => {
3422
3723
  e.stopPropagation(), f();
3423
3724
  },
@@ -3429,7 +3730,7 @@ var q = {
3429
3730
  })
3430
3731
  ]
3431
3732
  });
3432
- }, tr = {
3733
+ }, hr = {
3433
3734
  field: "_field_1nyia_10",
3434
3735
  field__label: "_field__label_1nyia_18",
3435
3736
  field__description: "_field__description_1nyia_26",
@@ -3443,80 +3744,80 @@ var q = {
3443
3744
  input__control: "_input__control_1nyia_81",
3444
3745
  input__icon: "_input__icon_1nyia_110",
3445
3746
  "input--unstyled": "_input--unstyled_1nyia_120"
3446
- }, nr = 16, rr = (t) => e.isValidElement(t) ? e.cloneElement(t, {
3447
- size: nr,
3448
- strokeWidth: M(nr)
3449
- }) : t, ir = 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) => {
3747
+ }, gr = 16, _r = (t) => e.isValidElement(t) ? e.cloneElement(t, {
3748
+ size: gr,
3749
+ strokeWidth: M(gr)
3750
+ }) : 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) => {
3450
3751
  let h = e.useId(), g = d ?? h, _ = !!r;
3451
3752
  return /* @__PURE__ */ a("div", {
3452
- className: [tr.field, f ?? ""].filter(Boolean).join(" "),
3753
+ className: [hr.field, f ?? ""].filter(Boolean).join(" "),
3453
3754
  children: [
3454
3755
  t && /* @__PURE__ */ i("label", {
3455
3756
  htmlFor: g,
3456
- className: tr.field__label,
3757
+ className: hr.field__label,
3457
3758
  children: t
3458
3759
  }),
3459
3760
  /* @__PURE__ */ a("div", {
3460
3761
  className: [
3461
- tr.input,
3462
- tr[`input--${o}`],
3463
- _ ? tr["input--error"] : "",
3464
- u ? tr["input--disabled"] : ""
3762
+ hr.input,
3763
+ hr[`input--${o}`],
3764
+ _ ? hr["input--error"] : "",
3765
+ u ? hr["input--disabled"] : ""
3465
3766
  ].filter(Boolean).join(" "),
3466
3767
  children: [
3467
3768
  c && /* @__PURE__ */ i("span", {
3468
- className: tr.input__icon,
3769
+ className: hr.input__icon,
3469
3770
  "aria-hidden": "true",
3470
- children: rr(c)
3771
+ children: _r(c)
3471
3772
  }),
3472
3773
  /* @__PURE__ */ i("input", {
3473
3774
  ref: m,
3474
3775
  id: g,
3475
- className: tr.input__control,
3776
+ className: hr.input__control,
3476
3777
  disabled: u,
3477
3778
  "aria-invalid": _ || void 0,
3478
3779
  "aria-describedby": n || r ? `${g}-desc` : void 0,
3479
3780
  ...p
3480
3781
  }),
3481
3782
  l && /* @__PURE__ */ i("span", {
3482
- className: tr.input__icon,
3783
+ className: hr.input__icon,
3483
3784
  "aria-hidden": "true",
3484
- children: rr(l)
3785
+ children: _r(l)
3485
3786
  })
3486
3787
  ]
3487
3788
  }),
3488
3789
  (n || r) && /* @__PURE__ */ i("span", {
3489
3790
  id: `${g}-desc`,
3490
- className: _ ? tr.field__error : tr.field__description,
3791
+ className: _ ? hr.field__error : hr.field__description,
3491
3792
  children: r || n
3492
3793
  })
3493
3794
  ]
3494
3795
  });
3495
3796
  });
3496
- ir.displayName = "Input";
3497
- var ar = { chart: "_chart_18fgd_2" }, or = {
3797
+ vr.displayName = "Input";
3798
+ var yr = { chart: "_chart_18fgd_2" }, br = {
3498
3799
  sm: 180,
3499
3800
  md: 240,
3500
3801
  lg: 320,
3501
3802
  xl: 420
3502
- }, sr = /* @__PURE__ */ new Set([
3803
+ }, xr = /* @__PURE__ */ new Set([
3503
3804
  "dots",
3504
3805
  "custom-dots",
3505
3806
  "dots-colors",
3506
3807
  "label",
3507
3808
  "custom-label"
3508
- ]), cr = ({ data: t, series: n, xKey: r = "label", variant: o = "default", labelKey: s, size: c = "md", height: l, showLegend: u, className: d }) => {
3509
- let f = e.useRef(null), p = St(f), m = [
3809
+ ]), 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 = [
3510
3811
  1,
3511
3812
  2,
3512
3813
  3,
3513
3814
  4,
3514
3815
  5
3515
- ].map((e) => p(`--color-chart-${e}`) ?? Ct[e - 1]), h = [
3816
+ ].map((e) => p(`--color-chart-${e}`) ?? Lt[e - 1]), h = [
3516
3817
  m[1],
3517
3818
  m[0],
3518
3819
  ...m.slice(2)
3519
- ], g = p("--color-border-subtle") ?? "#e7e5e1", _ = p("--color-fg-muted") ?? "#78716a", v = p("--color-bg-canvas") ?? "#fafaf9", y = p("--color-fg-default") ?? "#141414", b = o === "linear" ? "linear" : o === "step" ? "step" : "monotone", x = sr.has(o), S = (e) => (t) => {
3820
+ ], g = p("--color-border-subtle") ?? "#e7e5e1", _ = p("--color-fg-muted") ?? "#78716a", v = p("--color-bg-canvas") ?? "#fafaf9", y = p("--color-fg-default") ?? "#141414", b = o === "linear" ? "linear" : o === "step" ? "step" : "monotone", x = xr.has(o), S = (e) => (t) => {
3520
3821
  let { cx: n, cy: r } = t;
3521
3822
  return /* @__PURE__ */ a("g", {
3522
3823
  stroke: e,
@@ -3569,10 +3870,10 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3569
3870
  };
3570
3871
  return /* @__PURE__ */ i("div", {
3571
3872
  ref: f,
3572
- className: [ar.chart, d ?? ""].filter(Boolean).join(" "),
3873
+ className: [yr.chart, d ?? ""].filter(Boolean).join(" "),
3573
3874
  children: /* @__PURE__ */ i(xe, {
3574
3875
  width: "100%",
3575
- height: l ?? or[c],
3876
+ height: l ?? br[c],
3576
3877
  children: /* @__PURE__ */ a(me, {
3577
3878
  data: t,
3578
3879
  margin: {
@@ -3600,7 +3901,7 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3600
3901
  stroke: p("--color-border-default") ?? "#dbdad7",
3601
3902
  strokeWidth: 1
3602
3903
  },
3603
- content: /* @__PURE__ */ i(Tt, {}),
3904
+ content: /* @__PURE__ */ i(zt, {}),
3604
3905
  wrapperStyle: { zIndex: 50 }
3605
3906
  }),
3606
3907
  u && /* @__PURE__ */ i(fe, { wrapperStyle: {
@@ -3633,24 +3934,24 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3633
3934
  })
3634
3935
  })
3635
3936
  });
3636
- }, lr = {
3937
+ }, Cr = {
3637
3938
  menu: "_menu_1cx61_2",
3638
3939
  divider: "_divider_1cx61_26"
3639
- }, ur = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
3640
- let i = Pn();
3940
+ }, wr = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
3941
+ let i = Jn();
3641
3942
  return /* @__PURE__ */ a("div", {
3642
3943
  ref: i.ref,
3643
3944
  ...i.groupProps,
3644
3945
  role: "menu",
3645
3946
  "aria-label": r["aria-label"],
3646
3947
  style: { minWidth: t },
3647
- className: [lr.menu, n ?? ""].filter(Boolean).join(" "),
3948
+ className: [Cr.menu, n ?? ""].filter(Boolean).join(" "),
3648
3949
  children: [i.highlight, e]
3649
3950
  });
3650
- }, dr = () => /* @__PURE__ */ i("div", {
3651
- className: lr.divider,
3951
+ }, Tr = () => /* @__PURE__ */ i("div", {
3952
+ className: Cr.divider,
3652
3953
  role: "separator"
3653
- }), fr = {
3954
+ }), Er = {
3654
3955
  item: "_item_1ezjp_2",
3655
3956
  item__icon: "_item__icon_1ezjp_27",
3656
3957
  item__label: "_item__label_1ezjp_28",
@@ -3659,7 +3960,7 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3659
3960
  "item--checked": "_item--checked_1ezjp_38",
3660
3961
  "item--disabled": "_item--disabled_1ezjp_39",
3661
3962
  "item--destructive": "_item--destructive_1ezjp_40"
3662
- }, pr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: o, className: s }) => {
3963
+ }, Dr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: o, className: s }) => {
3663
3964
  let c = e === "disabled";
3664
3965
  return /* @__PURE__ */ a("div", {
3665
3966
  role: "menuitem",
@@ -3672,28 +3973,28 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3672
3973
  c || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o?.());
3673
3974
  },
3674
3975
  className: [
3675
- fr.item,
3676
- fr[`item--${e}`],
3976
+ Er.item,
3977
+ Er[`item--${e}`],
3677
3978
  s ?? ""
3678
3979
  ].filter(Boolean).join(" "),
3679
3980
  children: [
3680
3981
  t && /* @__PURE__ */ i("span", {
3681
- className: fr.item__icon,
3982
+ className: Er.item__icon,
3682
3983
  "aria-hidden": "true",
3683
3984
  children: t
3684
3985
  }),
3685
3986
  /* @__PURE__ */ i("span", {
3686
- className: fr.item__label,
3987
+ className: Er.item__label,
3687
3988
  children: r
3688
3989
  }),
3689
3990
  n && /* @__PURE__ */ i("kbd", {
3690
- className: fr.item__shortcut,
3991
+ className: Er.item__shortcut,
3691
3992
  children: n
3692
3993
  }),
3693
3994
  e === "checked" && /* @__PURE__ */ i(l, {
3694
3995
  size: 16,
3695
3996
  strokeWidth: M(16),
3696
- className: fr.item__check,
3997
+ className: Er.item__check,
3697
3998
  "aria-hidden": "true"
3698
3999
  })
3699
4000
  ]
@@ -3722,7 +4023,7 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3722
4023
  foot__receipt: "_foot__receipt_1q1m5_32",
3723
4024
  system: "_system_1q1m5_34",
3724
4025
  system__pill: "_system__pill_1q1m5_35"
3725
- }, mr = ({ type: e = "received", content: t = "text", avatar: n, authorName: o, timestamp: s, children: c, image: l, fileName: d, fileSize: f, reactions: p, read: m, className: h }) => {
4026
+ }, Or = ({ type: e = "received", content: t = "text", avatar: n, authorName: o, timestamp: s, children: c, image: l, fileName: d, fileSize: f, reactions: p, read: m, className: h }) => {
3726
4027
  if (e === "system") return /* @__PURE__ */ i("div", {
3727
4028
  className: [J.system, h ?? ""].filter(Boolean).join(" "),
3728
4029
  children: /* @__PURE__ */ i("span", {
@@ -3808,19 +4109,19 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3808
4109
  ]
3809
4110
  })]
3810
4111
  });
3811
- }, hr = {
4112
+ }, kr = {
3812
4113
  pagination: "_pagination_e1j7r_2",
3813
4114
  page: "_page_e1j7r_9",
3814
4115
  arrow: "_arrow_e1j7r_9",
3815
4116
  "page--active": "_page--active_e1j7r_26",
3816
4117
  ellipsis: "_ellipsis_e1j7r_40"
3817
- }, gr = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
3818
- function _r(e, t, n) {
4118
+ }, Ar = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
4119
+ function jr(e, t, n) {
3819
4120
  let r = n * 2 + 5;
3820
- if (e <= r) return gr(1, e);
4121
+ if (e <= r) return Ar(1, e);
3821
4122
  let i = r - 2, a = n * 2 + 1;
3822
4123
  if (t <= i) return [
3823
- ...gr(1, i),
4124
+ ...Ar(1, i),
3824
4125
  "end-ellipsis",
3825
4126
  e
3826
4127
  ];
@@ -3828,19 +4129,19 @@ function _r(e, t, n) {
3828
4129
  return s <= e - 3 ? [
3829
4130
  1,
3830
4131
  "start-ellipsis",
3831
- ...gr(o, s),
4132
+ ...Ar(o, s),
3832
4133
  "end-ellipsis",
3833
4134
  e
3834
4135
  ] : [
3835
4136
  1,
3836
4137
  "start-ellipsis",
3837
- ...gr(e - i + 1, e)
4138
+ ...Ar(e - i + 1, e)
3838
4139
  ];
3839
4140
  }
3840
- var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
4141
+ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
3841
4142
  let c = e.useRef(null);
3842
4143
  if (t < 1) return null;
3843
- let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d = _r(t, l, u), m = c.current;
4144
+ let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d = jr(t, l, u), m = c.current;
3844
4145
  if (m && m.total === t && m.siblings === u) {
3845
4146
  let e = m.tokens, n = e.includes(l), r = l === 1 && e[1] === "start-ellipsis" || l === t && e[e.length - 2] === "end-ellipsis";
3846
4147
  n && !r && (d = e);
@@ -3850,12 +4151,12 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3850
4151
  siblings: u,
3851
4152
  tokens: d
3852
4153
  }, /* @__PURE__ */ a("nav", {
3853
- className: [hr.pagination, s ?? ""].filter(Boolean).join(" "),
4154
+ className: [kr.pagination, s ?? ""].filter(Boolean).join(" "),
3854
4155
  "aria-label": "Pagination",
3855
4156
  children: [
3856
4157
  /* @__PURE__ */ i("button", {
3857
4158
  type: "button",
3858
- className: hr.arrow,
4159
+ className: kr.arrow,
3859
4160
  disabled: l <= 1,
3860
4161
  onClick: () => r(l - 1),
3861
4162
  "aria-label": "Previous page",
@@ -3866,19 +4167,19 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3866
4167
  }),
3867
4168
  d.map((e) => typeof e == "number" ? /* @__PURE__ */ i("button", {
3868
4169
  type: "button",
3869
- className: [hr.page, e === l ? hr["page--active"] : ""].filter(Boolean).join(" "),
4170
+ className: [kr.page, e === l ? kr["page--active"] : ""].filter(Boolean).join(" "),
3870
4171
  "aria-current": e === l ? "page" : void 0,
3871
4172
  "aria-label": `Page ${e}`,
3872
4173
  onClick: () => e !== l && r(e),
3873
4174
  children: e
3874
4175
  }, e) : /* @__PURE__ */ i("span", {
3875
- className: hr.ellipsis,
4176
+ className: kr.ellipsis,
3876
4177
  "aria-hidden": "true",
3877
4178
  children: "…"
3878
4179
  }, e)),
3879
4180
  /* @__PURE__ */ i("button", {
3880
4181
  type: "button",
3881
- className: hr.arrow,
4182
+ className: kr.arrow,
3882
4183
  disabled: l >= t,
3883
4184
  onClick: () => r(l + 1),
3884
4185
  "aria-label": "Next page",
@@ -3889,14 +4190,14 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3889
4190
  })
3890
4191
  ]
3891
4192
  });
3892
- }, yr = {
4193
+ }, Nr = {
3893
4194
  track: "_track_1br5v_2",
3894
4195
  segment: "_segment_1br5v_12",
3895
4196
  "segment--active": "_segment--active_1br5v_38",
3896
4197
  thumb: "_thumb_1br5v_44",
3897
4198
  "thumb--animated": "_thumb--animated_1br5v_62",
3898
4199
  "track--fullWidth": "_track--fullWidth_1br5v_68"
3899
- }, br = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
4200
+ }, Pr = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
3900
4201
  let l = n !== void 0, [u, d] = e.useState(r ?? t[0]?.value), f = l ? n : u, p = (e) => {
3901
4202
  l || d(e), o?.(e);
3902
4203
  }, m = e.useRef(null), h = e.useRef({}), [g, _] = e.useState(null), [v, y] = e.useState(!1);
@@ -3917,13 +4218,13 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3917
4218
  ref: m,
3918
4219
  role: "tablist",
3919
4220
  className: [
3920
- yr.track,
3921
- s ? yr["track--fullWidth"] : "",
4221
+ Nr.track,
4222
+ s ? Nr["track--fullWidth"] : "",
3922
4223
  c ?? ""
3923
4224
  ].filter(Boolean).join(" "),
3924
4225
  children: [g && /* @__PURE__ */ i("span", {
3925
4226
  "aria-hidden": "true",
3926
- className: [yr.thumb, v ? yr["thumb--animated"] : ""].filter(Boolean).join(" "),
4227
+ className: [Nr.thumb, v ? Nr["thumb--animated"] : ""].filter(Boolean).join(" "),
3927
4228
  style: {
3928
4229
  transform: `translateX(${g.left}px)`,
3929
4230
  width: g.width
@@ -3937,7 +4238,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3937
4238
  role: "tab",
3938
4239
  type: "button",
3939
4240
  "aria-selected": t,
3940
- className: [yr.segment, t ? yr["segment--active"] : ""].filter(Boolean).join(" "),
4241
+ className: [Nr.segment, t ? Nr["segment--active"] : ""].filter(Boolean).join(" "),
3941
4242
  onClick: () => p(e.value),
3942
4243
  children: e.label
3943
4244
  }, e.value);
@@ -3973,7 +4274,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3973
4274
  option__check: "_option__check_1b512_179",
3974
4275
  optionHighlight: "_optionHighlight_1b512_151",
3975
4276
  "optionHighlight--animated": "_optionHighlight--animated_1b512_201"
3976
- }, xr = ({ 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 }) => {
4277
+ }, 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 }) => {
3977
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);
3978
4279
  e.useLayoutEffect(() => {
3979
4280
  let e = ee.current[D];
@@ -4004,7 +4305,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4004
4305
  });
4005
4306
  return e.observe(j.current), () => e.disconnect();
4006
4307
  }, [T]);
4007
- let ae = nt(k, T), [oe, se] = e.useState(null);
4308
+ let ae = rt(k, T), [oe, se] = e.useState(null);
4008
4309
  e.useEffect(() => {
4009
4310
  C && E(!0);
4010
4311
  }, [C]), e.useLayoutEffect(() => {
@@ -4179,27 +4480,27 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4179
4480
  })
4180
4481
  ]
4181
4482
  });
4182
- }, Sr = {
4483
+ }, Ir = {
4183
4484
  sidebar: "_sidebar_alxv4_4",
4184
4485
  "sidebar--collapsed": "_sidebar--collapsed_alxv4_23"
4185
- }, Cr = ({ collapsed: e = !1, children: t, className: n }) => {
4186
- let r = Pn();
4486
+ }, Lr = ({ collapsed: e = !1, children: t, className: n }) => {
4487
+ let r = Jn();
4187
4488
  return /* @__PURE__ */ a("nav", {
4188
4489
  ref: r.ref,
4189
4490
  ...r.groupProps,
4190
4491
  className: [
4191
- Sr.sidebar,
4192
- e ? Sr["sidebar--collapsed"] : "",
4492
+ Ir.sidebar,
4493
+ e ? Ir["sidebar--collapsed"] : "",
4193
4494
  n ?? ""
4194
4495
  ].filter(Boolean).join(" "),
4195
4496
  "data-collapsed": e,
4196
4497
  children: [r.highlight, t]
4197
4498
  });
4198
- }, wr = { divider: "_divider_1oof5_1" }, Tr = () => /* @__PURE__ */ i("div", {
4199
- className: wr.divider,
4499
+ }, Rr = { divider: "_divider_1oof5_1" }, zr = () => /* @__PURE__ */ i("div", {
4500
+ className: Rr.divider,
4200
4501
  role: "separator"
4201
- }), Er = { groupLabel: "_groupLabel_62q1j_2" }, Dr = ({ children: e }) => /* @__PURE__ */ i("div", {
4202
- className: Er.groupLabel,
4502
+ }), Br = { groupLabel: "_groupLabel_62q1j_2" }, Vr = ({ children: e }) => /* @__PURE__ */ i("div", {
4503
+ className: Br.groupLabel,
4203
4504
  children: e
4204
4505
  }), X = {
4205
4506
  header: "_header_6bhip_2",
@@ -4215,7 +4516,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4215
4516
  "header__text--collapsed": "_header__text--collapsed_6bhip_70",
4216
4517
  header__title: "_header__title_6bhip_74",
4217
4518
  header__toggle: "_header__toggle_6bhip_76"
4218
- }, Or = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = D }) => /* @__PURE__ */ a("div", {
4519
+ }, Hr = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = D }) => /* @__PURE__ */ a("div", {
4219
4520
  className: [
4220
4521
  X.header,
4221
4522
  e === "workspace" ? X["header--workspace"] : "",
@@ -4291,7 +4592,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4291
4592
  item__label: "_item__label_1arxb_142",
4292
4593
  "item__label--collapsed": "_item__label--collapsed_1arxb_151",
4293
4594
  "item__chevron--expanded": "_item__chevron--expanded_1arxb_174"
4294
- }, kr = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, expanded: d, onClick: f, href: m, nativeTooltip: h = !0 }) => {
4595
+ }, Ur = ({ icon: e, label: t, active: n, activeIndicator: o = !0, disabled: s, badge: c, hasSubmenu: l, collapsed: u, expanded: d, onClick: f, href: m, nativeTooltip: h = !0 }) => {
4295
4596
  let g = n && o, _ = n && !o, v = [
4296
4597
  Z.item,
4297
4598
  g ? Z["item--active"] : "",
@@ -4346,7 +4647,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4346
4647
  ...b,
4347
4648
  children: y
4348
4649
  });
4349
- }, Ar = {
4650
+ }, Wr = {
4350
4651
  promo: "_promo_1524z_4",
4351
4652
  promo__head: "_promo__head_1524z_20",
4352
4653
  promo__icon: "_promo__icon_1524z_21",
@@ -4354,14 +4655,14 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4354
4655
  promo__dismiss: "_promo__dismiss_1524z_23",
4355
4656
  promo__desc: "_promo__desc_1524z_30",
4356
4657
  promo__cta: "_promo__cta_1524z_33"
4357
- }, jr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = te }) => /* @__PURE__ */ a("div", {
4358
- className: [Ar.promo, Ar[`promo--${e}`]].join(" "),
4658
+ }, Gr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = te }) => /* @__PURE__ */ a("div", {
4659
+ className: [Wr.promo, Wr[`promo--${e}`]].join(" "),
4359
4660
  children: [
4360
4661
  /* @__PURE__ */ a("div", {
4361
- className: Ar.promo__head,
4662
+ className: Wr.promo__head,
4362
4663
  children: [
4363
4664
  /* @__PURE__ */ i("span", {
4364
- className: Ar.promo__icon,
4665
+ className: Wr.promo__icon,
4365
4666
  "aria-hidden": "true",
4366
4667
  children: /* @__PURE__ */ i(c, {
4367
4668
  size: 16,
@@ -4369,12 +4670,12 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4369
4670
  })
4370
4671
  }),
4371
4672
  /* @__PURE__ */ i("span", {
4372
- className: Ar.promo__title,
4673
+ className: Wr.promo__title,
4373
4674
  children: t
4374
4675
  }),
4375
4676
  s && /* @__PURE__ */ i("button", {
4376
4677
  type: "button",
4377
- className: Ar.promo__dismiss,
4678
+ className: Wr.promo__dismiss,
4378
4679
  onClick: s,
4379
4680
  "aria-label": "Dismiss",
4380
4681
  children: /* @__PURE__ */ i(se, {
@@ -4385,36 +4686,36 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4385
4686
  ]
4386
4687
  }),
4387
4688
  n && /* @__PURE__ */ i("p", {
4388
- className: Ar.promo__desc,
4689
+ className: Wr.promo__desc,
4389
4690
  children: n
4390
4691
  }),
4391
4692
  r && /* @__PURE__ */ i("button", {
4392
4693
  type: "button",
4393
- className: Ar.promo__cta,
4694
+ className: Wr.promo__cta,
4394
4695
  onClick: o,
4395
4696
  children: r
4396
4697
  })
4397
4698
  ]
4398
- }), Mr = {
4699
+ }), Kr = {
4399
4700
  subItem: "_subItem_1sz05_2",
4400
4701
  "subItem--disabled": "_subItem--disabled_1sz05_26",
4401
4702
  "subItem--active": "_subItem--active_1sz05_27",
4402
4703
  subItem__dot: "_subItem__dot_1sz05_31",
4403
4704
  subItem__label: "_subItem__label_1sz05_41"
4404
- }, Nr = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
4705
+ }, qr = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
4405
4706
  let c = {
4406
4707
  className: [
4407
- Mr.subItem,
4408
- t ? Mr["subItem--active"] : "",
4409
- n ? Mr["subItem--disabled"] : ""
4708
+ Kr.subItem,
4709
+ t ? Kr["subItem--active"] : "",
4710
+ n ? Kr["subItem--disabled"] : ""
4410
4711
  ].filter(Boolean).join(" "),
4411
4712
  "data-hover-item": "",
4412
4713
  "aria-current": t ? "page" : void 0
4413
4714
  }, l = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
4414
- className: Mr.subItem__dot,
4715
+ className: Kr.subItem__dot,
4415
4716
  "aria-hidden": "true"
4416
4717
  }), /* @__PURE__ */ i("span", {
4417
- className: Mr.subItem__label,
4718
+ className: Kr.subItem__label,
4418
4719
  children: e
4419
4720
  })] });
4420
4721
  return s && !n ? /* @__PURE__ */ i("a", {
@@ -4428,49 +4729,49 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4428
4729
  ...c,
4429
4730
  children: l
4430
4731
  });
4431
- }, Pr = {
4732
+ }, Jr = {
4432
4733
  skeleton: "_skeleton_94hr3_9",
4433
4734
  "skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
4434
4735
  "skeleton--text": "_skeleton--text_94hr3_22",
4435
4736
  "skeleton--rect": "_skeleton--rect_94hr3_29",
4436
4737
  "skeleton--circle": "_skeleton--circle_94hr3_35"
4437
- }, Fr = ({ variant: e = "text", width: t, height: n, className: r }) => {
4738
+ }, Yr = ({ variant: e = "text", width: t, height: n, className: r }) => {
4438
4739
  let a = {};
4439
4740
  return t !== void 0 && (a.width = typeof t == "number" ? `${t}px` : t), n !== void 0 && (a.height = typeof n == "number" ? `${n}px` : n), /* @__PURE__ */ i("span", {
4440
4741
  "aria-hidden": "true",
4441
4742
  className: [
4442
- Pr.skeleton,
4443
- Pr[`skeleton--${e}`],
4743
+ Jr.skeleton,
4744
+ Jr[`skeleton--${e}`],
4444
4745
  r ?? ""
4445
4746
  ].filter(Boolean).join(" "),
4446
4747
  style: a
4447
4748
  });
4448
- }, Ir = {
4749
+ }, Xr = {
4449
4750
  field: "_field_u7te8_3",
4450
4751
  header: "_header_u7te8_4",
4451
4752
  label: "_label_u7te8_5",
4452
4753
  value: "_value_u7te8_6",
4453
4754
  slider: "_slider_u7te8_8",
4454
4755
  "sakani-slider-bounce": "_sakani-slider-bounce_u7te8_1"
4455
- }, Lr = 1.2, Rr = 460, zr = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
4756
+ }, Zr = 1.2, Qr = 460, $r = e.forwardRef(({ label: t, showValue: n, min: r = 0, max: o = 100, value: s, defaultValue: c, disabled: l, id: u, className: d, onChange: f, ...p }, m) => {
4456
4757
  let h = e.useId(), g = u ?? h, _ = Number(s ?? c ?? r), [v, y] = e.useState(_), b = s === void 0 ? v : Number(s), x = (b - r) / (o - r) * 100, S = e.useRef(null), C = (e) => {
4457
4758
  S.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
4458
4759
  }, w = e.useRef(null), T = e.useRef(void 0);
4459
4760
  e.useEffect(() => () => window.clearTimeout(T.current), []);
4460
4761
  let E = (e) => {
4461
4762
  let t = S.current;
4462
- t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(T.current), T.current = window.setTimeout(() => t.removeAttribute("data-bounce"), Rr));
4763
+ t && (t.removeAttribute("data-bounce"), t.offsetWidth, t.style.setProperty("--bounce-dir", String(e)), t.setAttribute("data-bounce", ""), window.clearTimeout(T.current), T.current = window.setTimeout(() => t.removeAttribute("data-bounce"), Qr));
4463
4764
  };
4464
4765
  return /* @__PURE__ */ a("div", {
4465
- className: [Ir.field, d ?? ""].filter(Boolean).join(" "),
4766
+ className: [Xr.field, d ?? ""].filter(Boolean).join(" "),
4466
4767
  children: [(t || n) && /* @__PURE__ */ a("div", {
4467
- className: Ir.header,
4768
+ className: Xr.header,
4468
4769
  children: [t && /* @__PURE__ */ i("label", {
4469
4770
  htmlFor: g,
4470
- className: Ir.label,
4771
+ className: Xr.label,
4471
4772
  children: t
4472
4773
  }), n && /* @__PURE__ */ i("span", {
4473
- className: Ir.value,
4774
+ className: Xr.value,
4474
4775
  children: b
4475
4776
  })]
4476
4777
  }), /* @__PURE__ */ i("input", {
@@ -4484,19 +4785,19 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4484
4785
  disabled: l,
4485
4786
  onChange: (e) => {
4486
4787
  let t = Number(e.target.value), n = performance.now(), i = w.current;
4487
- i && (t === o || t === r) && i.v !== t && Math.abs(t - i.v) / (o - r) / Math.max((n - i.t) / 1e3, .001) >= Lr && E(t === o ? 1 : -1), w.current = {
4788
+ i && (t === o || t === r) && i.v !== t && Math.abs(t - i.v) / (o - r) / Math.max((n - i.t) / 1e3, .001) >= Zr && E(t === o ? 1 : -1), w.current = {
4488
4789
  v: t,
4489
4790
  t: n
4490
4791
  }, s === void 0 && y(t), f?.(e);
4491
4792
  },
4492
- className: Ir.slider,
4793
+ className: Xr.slider,
4493
4794
  style: { "--pct": `${x}%` },
4494
4795
  ...p
4495
4796
  })]
4496
4797
  });
4497
4798
  });
4498
- zr.displayName = "Slider";
4499
- var Br = {
4799
+ $r.displayName = "Slider";
4800
+ var ei = {
4500
4801
  card: "_card_1qi93_4",
4501
4802
  "card--featured": "_card--featured_1qi93_24",
4502
4803
  card__head: "_card__head_1qi93_26",
@@ -4509,19 +4810,19 @@ var Br = {
4509
4810
  "card--trend-up": "_card--trend-up_1qi93_68",
4510
4811
  "card--trend-down": "_card--trend-down_1qi93_69",
4511
4812
  card__description: "_card__description_1qi93_72"
4512
- }, Vr = {
4813
+ }, ti = {
4513
4814
  up: ae,
4514
4815
  down: ie,
4515
4816
  flat: w
4516
- }, Hr = {
4817
+ }, ni = {
4517
4818
  up: "success",
4518
4819
  down: "danger",
4519
4820
  flat: "neutral"
4520
- }, Ur = ({ data: e }) => {
4821
+ }, ri = ({ data: e }) => {
4521
4822
  if (e.length < 2) return null;
4522
4823
  let t = Math.min(...e), n = Math.max(...e) - t || 1;
4523
4824
  return /* @__PURE__ */ i("svg", {
4524
- className: Wr,
4825
+ className: ii,
4525
4826
  viewBox: "0 0 100 32",
4526
4827
  preserveAspectRatio: "none",
4527
4828
  "aria-hidden": "true",
@@ -4534,21 +4835,21 @@ var Br = {
4534
4835
  strokeLinecap: "round"
4535
4836
  })
4536
4837
  });
4537
- }, Wr = Br.card__sparkline, Gr = ({ title: e, value: t, description: n, sparkline: r, delta: o, trend: s = "up", badgeVariant: c, variant: l = "minimal", icon: u, showMenu: d, onMenu: f, className: p }) => {
4538
- let m = Vr[s], h = (l === "icon" || l === "featured") && u;
4838
+ }, ii = ei.card__sparkline, ai = ({ title: e, value: t, description: n, sparkline: r, delta: o, trend: s = "up", badgeVariant: c, variant: l = "minimal", icon: u, showMenu: d, onMenu: f, className: p }) => {
4839
+ let m = ti[s], h = (l === "icon" || l === "featured") && u;
4539
4840
  return /* @__PURE__ */ a("div", {
4540
4841
  className: [
4541
- Br.card,
4542
- Br[`card--${l}`],
4543
- Br[`card--trend-${s}`],
4842
+ ei.card,
4843
+ ei[`card--${l}`],
4844
+ ei[`card--trend-${s}`],
4544
4845
  p ?? ""
4545
4846
  ].filter(Boolean).join(" "),
4546
4847
  children: [
4547
4848
  /* @__PURE__ */ a("div", {
4548
- className: Br.card__head,
4849
+ className: ei.card__head,
4549
4850
  children: [
4550
4851
  h && /* @__PURE__ */ i("span", {
4551
- className: Br.card__icon,
4852
+ className: ei.card__icon,
4552
4853
  "aria-hidden": "true",
4553
4854
  children: /* @__PURE__ */ i(u, {
4554
4855
  size: 18,
@@ -4556,12 +4857,12 @@ var Br = {
4556
4857
  })
4557
4858
  }),
4558
4859
  /* @__PURE__ */ i("span", {
4559
- className: Br.card__title,
4860
+ className: ei.card__title,
4560
4861
  children: e
4561
4862
  }),
4562
4863
  d && /* @__PURE__ */ i("button", {
4563
4864
  type: "button",
4564
- className: Br.card__menu,
4865
+ className: ei.card__menu,
4565
4866
  onClick: f,
4566
4867
  "aria-label": "More options",
4567
4868
  children: /* @__PURE__ */ i(T, {
@@ -4572,21 +4873,21 @@ var Br = {
4572
4873
  ]
4573
4874
  }),
4574
4875
  /* @__PURE__ */ i("div", {
4575
- className: Br.card__value,
4876
+ className: ei.card__value,
4576
4877
  children: t
4577
4878
  }),
4578
- r && /* @__PURE__ */ i(Ur, { data: r }),
4879
+ r && /* @__PURE__ */ i(ri, { data: r }),
4579
4880
  (o || n) && /* @__PURE__ */ a("div", {
4580
- className: Br.card__meta,
4581
- children: [o && /* @__PURE__ */ i(jt, {
4582
- variant: c ?? Hr[s],
4881
+ className: ei.card__meta,
4882
+ children: [o && /* @__PURE__ */ i(Gt, {
4883
+ variant: c ?? ni[s],
4583
4884
  leftIcon: /* @__PURE__ */ i(m, {
4584
4885
  size: 12,
4585
4886
  strokeWidth: 2
4586
4887
  }),
4587
4888
  children: o
4588
4889
  }), n && /* @__PURE__ */ i("p", {
4589
- className: Br.card__description,
4890
+ className: ei.card__description,
4590
4891
  children: n
4591
4892
  })]
4592
4893
  })
@@ -4620,18 +4921,18 @@ var Br = {
4620
4921
  "bodyRow--dropTarget": "_bodyRow--dropTarget_9nqt2_228",
4621
4922
  dragCell: "_dragCell_9nqt2_235",
4622
4923
  dragHandle: "_dragHandle_9nqt2_251"
4623
- }, Kr = 640;
4624
- function qr(t) {
4924
+ }, oi = 640;
4925
+ function si(t) {
4625
4926
  let [n, r] = e.useState(!1);
4626
4927
  return e.useEffect(() => {
4627
4928
  if (t !== "auto") return;
4628
- let e = window.matchMedia(`(max-width: ${Kr}px)`);
4929
+ let e = window.matchMedia(`(max-width: ${oi}px)`);
4629
4930
  r(e.matches);
4630
4931
  let n = (e) => r(e.matches);
4631
4932
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
4632
4933
  }, [t]), t === "default" ? "default" : t === "stacked" || n ? "stacked" : "default";
4633
4934
  }
4634
- var Jr = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
4935
+ var ci = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
4635
4936
  let s = e.useRef(null);
4636
4937
  return e.useEffect(() => {
4637
4938
  s.current && (s.current.indeterminate = !!n);
@@ -4662,10 +4963,10 @@ var Jr = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
4662
4963
  })]
4663
4964
  });
4664
4965
  };
4665
- function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
4666
- let m = qr(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
4966
+ function li({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionChange: s, rowKey: c, reorderable: l, onReorder: u, bordered: d = !0, responsive: f = "auto", className: p }) {
4967
+ let m = si(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
4667
4968
  h || _(e), s?.(e);
4668
- }, b = n.length > 0 && v.length === n.length, S = v.length > 0 && !b, [C, w] = e.useState(null), [T, E] = e.useState(null), D = Pn(), O = () => {
4969
+ }, b = n.length > 0 && v.length === n.length, S = v.length > 0 && !b, [C, w] = e.useState(null), [T, E] = e.useState(null), D = Jn(), O = () => {
4669
4970
  if (C === null || T === null || C === T) {
4670
4971
  w(null), E(null);
4671
4972
  return;
@@ -4690,7 +4991,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4690
4991
  ].filter(Boolean).join(" "),
4691
4992
  children: [r && /* @__PURE__ */ i("div", {
4692
4993
  className: Q.card__selectRow,
4693
- children: /* @__PURE__ */ i(Jr, {
4994
+ children: /* @__PURE__ */ i(ci, {
4694
4995
  checked: o,
4695
4996
  onChange: () => A(n),
4696
4997
  label: `Select row ${n + 1}`
@@ -4726,7 +5027,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4726
5027
  }),
4727
5028
  r && /* @__PURE__ */ i("th", {
4728
5029
  className: Q.checkCell,
4729
- children: /* @__PURE__ */ i(Jr, {
5030
+ children: /* @__PURE__ */ i(ci, {
4730
5031
  checked: b,
4731
5032
  indeterminate: S,
4732
5033
  onChange: k,
@@ -4779,7 +5080,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4779
5080
  }),
4780
5081
  r && /* @__PURE__ */ i("td", {
4781
5082
  className: Q.checkCell,
4782
- children: /* @__PURE__ */ i(Jr, {
5083
+ children: /* @__PURE__ */ i(ci, {
4783
5084
  checked: o,
4784
5085
  onChange: () => A(n),
4785
5086
  label: `Select row ${n + 1}`
@@ -4796,7 +5097,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4796
5097
  })]
4797
5098
  });
4798
5099
  }
4799
- var Xr = {
5100
+ var ui = {
4800
5101
  tabs: "_tabs_1122j_3",
4801
5102
  "tabs--borderless": "_tabs--borderless_1122j_16",
4802
5103
  "tabs--fill": "_tabs--fill_1122j_21",
@@ -4805,7 +5106,7 @@ var Xr = {
4805
5106
  "tab--active": "_tab--active_1122j_63",
4806
5107
  indicator: "_indicator_1122j_74",
4807
5108
  "indicator--animated": "_indicator--animated_1122j_88"
4808
- }, Zr = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
5109
+ }, di = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
4809
5110
  let u = n !== void 0, [d, f] = e.useState(r ?? t[0]?.value), p = u ? n : d, m = (e) => {
4810
5111
  u || f(e), o?.(e);
4811
5112
  }, h = e.useRef(null), g = e.useRef({}), [_, v] = e.useState(null), [y, b] = e.useState(!1);
@@ -4826,9 +5127,9 @@ var Xr = {
4826
5127
  ref: h,
4827
5128
  role: "tablist",
4828
5129
  className: [
4829
- Xr.tabs,
4830
- s ? "" : Xr["tabs--borderless"],
4831
- c ? Xr["tabs--fill"] : "",
5130
+ ui.tabs,
5131
+ s ? "" : ui["tabs--borderless"],
5132
+ c ? ui["tabs--fill"] : "",
4832
5133
  l ?? ""
4833
5134
  ].filter(Boolean).join(" "),
4834
5135
  children: [t.map((e) => {
@@ -4842,9 +5143,9 @@ var Xr = {
4842
5143
  "aria-selected": t,
4843
5144
  disabled: e.disabled,
4844
5145
  className: [
4845
- Xr.tab,
4846
- t ? Xr["tab--active"] : "",
4847
- e.disabled ? Xr["tab--disabled"] : ""
5146
+ ui.tab,
5147
+ t ? ui["tab--active"] : "",
5148
+ e.disabled ? ui["tab--disabled"] : ""
4848
5149
  ].filter(Boolean).join(" "),
4849
5150
  onClick: () => m(e.value),
4850
5151
  children: [n && /* @__PURE__ */ i(n, {
@@ -4855,14 +5156,14 @@ var Xr = {
4855
5156
  }, e.value);
4856
5157
  }), _ && /* @__PURE__ */ i("span", {
4857
5158
  "aria-hidden": "true",
4858
- className: [Xr.indicator, y ? Xr["indicator--animated"] : ""].filter(Boolean).join(" "),
5159
+ className: [ui.indicator, y ? ui["indicator--animated"] : ""].filter(Boolean).join(" "),
4859
5160
  style: {
4860
5161
  transform: `translateX(${_.left}px)`,
4861
5162
  width: _.width
4862
5163
  }
4863
5164
  })]
4864
5165
  });
4865
- }, Qr = {
5166
+ }, fi = {
4866
5167
  wrapper: "_wrapper_w6wtp_8",
4867
5168
  bubble: "_bubble_w6wtp_8",
4868
5169
  bubble__title: "_bubble__title_w6wtp_46",
@@ -4884,7 +5185,7 @@ var Xr = {
4884
5185
  "caret--center-left": "_caret--center-left_w6wtp_121",
4885
5186
  "bubble--center-right": "_bubble--center-right_w6wtp_131",
4886
5187
  "caret--center-right": "_caret--center-right_w6wtp_139"
4887
- }, $r = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
5188
+ }, pi = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
4888
5189
  let [c, l] = e.useState(!1);
4889
5190
  return e.useEffect(() => {
4890
5191
  let e = (e) => {
@@ -4892,24 +5193,24 @@ var Xr = {
4892
5193
  };
4893
5194
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
4894
5195
  }, []), /* @__PURE__ */ a("span", {
4895
- className: [Qr.wrapper, s ?? ""].filter(Boolean).join(" "),
5196
+ className: [fi.wrapper, s ?? ""].filter(Boolean).join(" "),
4896
5197
  "data-dismissed": c || void 0,
4897
5198
  onMouseLeave: () => l(!1),
4898
5199
  onBlur: () => l(!1),
4899
5200
  children: [o, /* @__PURE__ */ a("span", {
4900
5201
  role: "tooltip",
4901
- className: [Qr.bubble, Qr[`bubble--${r}`]].join(" "),
5202
+ className: [fi.bubble, fi[`bubble--${r}`]].join(" "),
4902
5203
  children: [
4903
5204
  /* @__PURE__ */ i("span", {
4904
- className: Qr.bubble__title,
5205
+ className: fi.bubble__title,
4905
5206
  children: t
4906
5207
  }),
4907
5208
  n && /* @__PURE__ */ i("span", {
4908
- className: Qr.bubble__subtitle,
5209
+ className: fi.bubble__subtitle,
4909
5210
  children: n
4910
5211
  }),
4911
5212
  /* @__PURE__ */ i("span", {
4912
- className: [Qr.caret, Qr[`caret--${r}`]].join(" "),
5213
+ className: [fi.caret, fi[`caret--${r}`]].join(" "),
4913
5214
  "aria-hidden": "true"
4914
5215
  })
4915
5216
  ]
@@ -4938,8 +5239,8 @@ var Xr = {
4938
5239
  "bar__left--search": "_bar__left--search_yqi1k_84",
4939
5240
  bar__accountChevron: "_bar__accountChevron_yqi1k_98",
4940
5241
  "bar__accountChevron--open": "_bar__accountChevron--open_yqi1k_104"
4941
- }, ei = ({ 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 }) => {
4942
- let C = Pn(), w = Pn(), T = t === "md" ? 20 : 18, D = M(T);
5242
+ }, 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);
4943
5244
  return /* @__PURE__ */ i("header", {
4944
5245
  className: [
4945
5246
  $.bar,
@@ -5040,4 +5341,4 @@ var Xr = {
5040
5341
  });
5041
5342
  };
5042
5343
  //#endregion
5043
- export { zt as $, zn as A, vn as B, ir as C, Ne as Ct, Wn as D, qn as E, M as Et, On as F, ln as G, pn as H, Tn as I, nn as J, on as K, wn as L, Fn as M, Pn as N, Un as O, kn as P, qt as Q, Sn as R, cr as S, Pe as St, Xn as T, Oe as Tt, dn as U, gn as V, un as W, Qt as X, en as Y, Yt as Z, vr as _, Ue as _t, Gr as a, Tt as at, ur as b, ze as bt, Nr as c, xt as ct, Or as d, ht as dt, Rt as et, Dr as f, mt as ft, br as g, Qe as gt, xr as h, et as ht, Yr as i, kt as it, Ln as j, Vn as k, jr as l, vt as lt, Cr as m, ut as mt, $r as n, Nt as nt, zr as o, Ct as ot, Tr as p, dt as pt, rn as q, Zr as r, jt as rt, Fr as s, St as st, ei as t, It as tt, kr as u, gt as ut, mr as v, F as vt, er as w, ke as wt, dr as x, Le as xt, pr as y, He as yt, bn as z };
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 };