@sakaniui/react 0.4.1 → 0.4.2

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,346 @@ 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) {
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
+ for (let e = 0; e < n; e++) for (let r = 0; r < t; r++) {
649
+ let l = r + .5, u = e + .5, d = Math.abs(l - 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;
650
+ if (g > -1 && g < C) {
641
651
  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);
652
+ if (d > 0 && f > 0 && h > 0 ? (e = p / h, t = m / h) : d > f ? e = 1 : t = 1, e *= Math.sign(l - x) || 1, t *= Math.sign(u - S) || 1, g >= 0 && g < i) {
653
+ let n = 1 - Math.min(i, g < 1 ? g + 1 : g) / i, r = (1 - Math.sqrt(1 - n * n)) * (g < 1 ? .5 : 1);
654
+ _ = -e * r, w = -t * r;
655
+ }
656
+ if (a > 0) {
657
+ let n = e * s + t * c, r = Math.abs(n);
658
+ 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));
648
659
  }
649
- let h = e * s + t * c;
650
- C = (-e * i + h * e * a) * l / d, w = (-t * i + h * t * a) * l / d;
651
660
  }
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;
661
+ let E = (e * t + r) * 4;
662
+ v[E] = 128 + _ * 127, v[E + 1] = 128 + w * 127, v[E + 2] = 128, v[E + 3] = 255;
663
+ let D = Math.max(0, Math.min(255, Math.round(128 + T)));
664
+ y[E] = D, y[E + 1] = D, y[E + 2] = D, y[E + 3] = 255;
654
665
  }
655
- p.putImageData(m, 0, 0);
656
- let y = f.toDataURL();
657
- return ot.set(l, y), y;
666
+ m.putImageData(g, 0, 0), h.putImageData(_, 0, 0);
667
+ let w = {
668
+ map: f.toDataURL(),
669
+ light: p.toDataURL()
670
+ };
671
+ return ot.set(l, w), w;
658
672
  }
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)
673
+ var ct = e.createContext(null), lt = e.forwardRef(({ src: t, position: n = "center", veil: r, style: a, children: o, ...s }, c) => {
674
+ let l = e.useRef(null), u = (e) => {
675
+ l.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
676
+ }, d = r ? `linear-gradient(${r}, ${r}), url("${t}")` : `url("${t}")`, f = r ? "100% 100%, cover" : "cover", p = e.useMemo(() => ({
677
+ src: t,
678
+ veil: r,
679
+ image: d,
680
+ size: f,
681
+ position: n,
682
+ rootRef: l
683
+ }), [
684
+ t,
685
+ r,
686
+ d,
687
+ f,
688
+ n
689
+ ]);
690
+ return /* @__PURE__ */ i("div", {
691
+ ref: u,
692
+ ...s,
693
+ style: {
694
+ backgroundImage: d,
695
+ backgroundSize: f,
696
+ backgroundPosition: n,
697
+ backgroundRepeat: "no-repeat",
698
+ ...a
699
+ },
700
+ children: /* @__PURE__ */ i(ct.Provider, {
701
+ value: p,
702
+ children: o
703
+ })
704
+ });
705
+ });
706
+ lt.displayName = "LiquidBackdrop";
707
+ var ut = /* @__PURE__ */ new Set(), dt = 0, ft = 0, pt = () => {
708
+ let e = !1;
709
+ ut.forEach((t) => {
710
+ t() && (e = !0);
711
+ }), ft = e ? 0 : ft + 1, dt = ut.size && ft < 24 ? requestAnimationFrame(pt) : 0;
712
+ }, mt = () => {
713
+ ft = 0, !dt && ut.size && (dt = requestAnimationFrame(pt));
714
+ }, ht = !1;
715
+ function gt(e) {
716
+ if (!ht && typeof window < "u") {
717
+ ht = !0, window.addEventListener("scroll", mt, {
718
+ capture: !0,
719
+ passive: !0
720
+ }), window.addEventListener("resize", mt);
721
+ for (let e of [
722
+ "transitionrun",
723
+ "transitionend",
724
+ "animationstart",
725
+ "animationend",
726
+ "pointerdown",
727
+ "pointerup"
728
+ ]) document.addEventListener(e, mt, !0);
729
+ new MutationObserver(mt).observe(document.documentElement, {
730
+ attributes: !0,
731
+ attributeFilter: ["class", "data-theme"],
732
+ subtree: !0
733
+ });
734
+ }
735
+ return ut.add(e), e(), mt(), () => {
736
+ ut.delete(e);
664
737
  };
665
738
  }
666
- var lt = (e, t, n) => {
739
+ function _t() {
740
+ ut.forEach((e) => e()), mt();
741
+ }
742
+ var vt = /* @__PURE__ */ new Map();
743
+ function yt(e) {
744
+ let t = vt.get(e);
745
+ return t || (t = new Promise((t, n) => {
746
+ let r = new Image();
747
+ r.decoding = "async", r.onload = () => t(r), r.onerror = n, r.src = e;
748
+ }), vt.set(e, t)), t;
749
+ }
750
+ function bt(e) {
751
+ let t = {
752
+ left: 0,
753
+ top: 0,
754
+ center: .5,
755
+ right: 1,
756
+ bottom: 1
757
+ }, n = e.trim().split(/\s+/), r = (e) => e === void 0 ? .5 : e in t ? t[e] : e.endsWith("%") ? parseFloat(e) / 100 : .5;
758
+ return n.length === 1 && (n[0] === "top" || n[0] === "bottom") ? [.5, r(n[0])] : [r(n[0]), r(n[1])];
759
+ }
760
+ var xt = 300 * 300, St = (e, t, n) => {
667
761
  let r = parseFloat(getComputedStyle(e).getPropertyValue(t));
668
762
  return Number.isFinite(r) ? r : n;
669
763
  };
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();
764
+ function Ct(t, { enabled: n = !0, refraction: o = "auto", watch: s = "", source: c = !0, bake: l = "auto" } = {}) {
765
+ 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
766
  e.useEffect(() => {
673
767
  let e = t.current;
674
- if (!e || !l) {
675
- c(null);
768
+ if (!e || !p) {
769
+ f(null);
676
770
  return;
677
771
  }
678
772
  let n = () => {
679
773
  let t = Math.round(e.offsetWidth), n = Math.round(e.offsetHeight);
680
774
  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 = {
775
+ 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
776
  w: t,
683
777
  h: n,
684
778
  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)
779
+ bezel: d,
780
+ bend: i * (10.9 + 1.1 * a) * p,
781
+ spread: .11 * o,
782
+ frost: Math.max(.65, Math.hypot(.47, .45 * s)),
783
+ intensity: c,
784
+ reach: .75 * a * (p || 1),
785
+ lx: Math.sin(l),
786
+ ly: -Math.cos(l)
693
787
  };
694
- c((e) => e && Object.keys(s).every((t) => e[t] === s[t]) ? e : s);
788
+ f((e) => e && Object.keys(m).every((t) => e[t] === m[t]) ? e : m);
695
789
  };
696
790
  n();
697
- let r = new ResizeObserver(n);
791
+ let r = new ResizeObserver(() => {
792
+ n(), mt();
793
+ });
698
794
  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) => {
795
+ }, [
796
+ t,
797
+ p,
798
+ s
799
+ ]);
800
+ let _ = d ? st(d) : null, v = e.useCallback((e) => {
701
801
  let t = e.currentTarget, n = t.getBoundingClientRect();
702
802
  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) => {
803
+ }, []), 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);
804
+ e.useLayoutEffect(() => {
805
+ let e = t.current;
806
+ if (!h || !y || !e || !m || !d || !_) return;
807
+ let n = "", r = 0, i = 0, a = 0, o = (e, t, n, r, i) => {
808
+ let a = ++C.current;
809
+ yt(m.src).then((o) => {
810
+ let s = x.current, c = document.getElementById(`${u}-bake`);
811
+ if (a !== C.current || !s || !c) return;
812
+ let l = Math.min(2, window.devicePixelRatio || 1), f = Math.round(d.w * l), p = Math.round(d.h * l), h = document.createElement("canvas");
813
+ h.width = f, h.height = p;
814
+ let g = h.getContext("2d"), _ = s.getContext("2d");
815
+ if (!g || !_) return;
816
+ g.scale(l, l), g.translate(e, t);
817
+ let v = Math.max(n / o.naturalWidth, r / o.naturalHeight), y = o.naturalWidth * v, b = o.naturalHeight * v, [S, w] = bt(m.position);
818
+ 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";
819
+ }).catch(() => {});
820
+ };
821
+ return gt(() => {
822
+ let t = m.rootRef.current, s = g.current;
823
+ if (!t || !b && !s || b && !x.current) return ++r < 120;
824
+ 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 = "";
825
+ b && m.veil && S.current && (S.current.style.backgroundColor = m.veil, v = getComputedStyle(S.current).backgroundColor);
826
+ let y = `${f.toFixed(2)},${p.toFixed(2)},${h.toFixed(2)},${_.toFixed(2)},${v}`;
827
+ if (y === n) return !1;
828
+ if (n = y, b) {
829
+ let e = performance.now();
830
+ clearTimeout(a), e - i > 120 ? (i = e, o(f, p, h, _, v)) : a = window.setTimeout(() => {
831
+ i = performance.now(), o(f, p, h, _, v);
832
+ }, 130);
833
+ } else s && (s.style.width = `${h}px`, s.style.height = `${_}px`, s.style.transform = `translate3d(${f}px, ${p}px, 0)`);
834
+ return !0;
835
+ });
836
+ }, [
837
+ h,
838
+ y,
839
+ m,
840
+ t,
841
+ b,
842
+ d,
843
+ _,
844
+ u
845
+ ]);
846
+ let w = (e) => {
704
847
  let t = Array(20).fill(0);
705
848
  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,
849
+ }, T = y && d && _ ? /* @__PURE__ */ i("svg", {
850
+ className: L.defs,
851
+ width: "0",
852
+ height: "0",
853
+ "aria-hidden": "true",
854
+ focusable: "false",
855
+ children: /* @__PURE__ */ a("filter", {
856
+ id: u,
857
+ x: "0",
858
+ y: "0",
859
+ width: d.w,
860
+ height: d.h,
861
+ filterUnits: "userSpaceOnUse",
862
+ primitiveUnits: "userSpaceOnUse",
863
+ colorInterpolationFilters: "sRGB",
864
+ children: [
865
+ /* @__PURE__ */ i("feImage", {
866
+ href: _.map,
867
+ x: "0",
868
+ y: "0",
869
+ width: d.w,
870
+ height: d.h,
871
+ preserveAspectRatio: "none",
872
+ result: "map"
873
+ }),
874
+ /* @__PURE__ */ i("feGaussianBlur", {
875
+ in: "SourceGraphic",
876
+ stdDeviation: d.frost,
877
+ edgeMode: "duplicate",
878
+ result: "frost"
879
+ }),
880
+ [
881
+ 0,
882
+ 1,
883
+ 2
884
+ ].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
885
+ in: "frost",
886
+ in2: "map",
887
+ scale: 2 * d.bend * (1 + (1 - t) * d.spread),
888
+ xChannelSelector: "R",
889
+ yChannelSelector: "G",
890
+ result: `d${t}`
891
+ }), /* @__PURE__ */ i("feColorMatrix", {
892
+ in: `d${t}`,
893
+ type: "matrix",
894
+ values: w(t),
895
+ result: `c${t}`
896
+ })] }, t)),
897
+ /* @__PURE__ */ i("feBlend", {
898
+ in: "c0",
899
+ in2: "c1",
900
+ mode: "screen",
901
+ result: "c01"
902
+ }),
903
+ /* @__PURE__ */ i("feBlend", {
904
+ in: "c01",
905
+ in2: "c2",
906
+ mode: "screen",
907
+ result: "bent"
908
+ }),
909
+ d.intensity > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("feImage", {
910
+ href: _.light,
911
+ x: "0",
912
+ y: "0",
913
+ width: d.w,
914
+ height: d.h,
915
+ preserveAspectRatio: "none",
916
+ result: "light"
917
+ }), /* @__PURE__ */ i("feComposite", {
918
+ in: "bent",
919
+ in2: "light",
920
+ operator: "arithmetic",
921
+ k1: 0,
922
+ k2: 1,
923
+ k3: 1,
924
+ k4: -128 / 255
925
+ })] })
926
+ ]
927
+ })
928
+ }) : null, E = typeof window < "u" ? Math.min(2, window.devicePixelRatio || 1) : 1, D = b && d && _ ? (() => {
929
+ let t = Math.round(d.w * E), n = Math.round(d.h * E);
930
+ return /* @__PURE__ */ i("svg", {
931
+ className: L.defs,
710
932
  width: "0",
711
933
  height: "0",
712
934
  "aria-hidden": "true",
713
935
  focusable: "false",
714
936
  children: /* @__PURE__ */ a("filter", {
715
- id: o,
937
+ id: `${u}-bake`,
716
938
  x: "0",
717
939
  y: "0",
718
- width: s.w,
719
- height: s.h,
940
+ width: t,
941
+ height: n,
720
942
  filterUnits: "userSpaceOnUse",
721
943
  primitiveUnits: "userSpaceOnUse",
722
944
  colorInterpolationFilters: "sRGB",
723
945
  children: [
724
946
  /* @__PURE__ */ i("feImage", {
725
- href: u,
947
+ href: _.map,
726
948
  x: "0",
727
949
  y: "0",
728
- width: s.w,
729
- height: s.h,
950
+ width: t,
951
+ height: n,
730
952
  preserveAspectRatio: "none",
731
953
  result: "map"
732
954
  }),
955
+ /* @__PURE__ */ i("feGaussianBlur", {
956
+ in: "SourceGraphic",
957
+ stdDeviation: d.frost * E,
958
+ edgeMode: "duplicate",
959
+ result: "frost"
960
+ }),
733
961
  [
734
962
  0,
735
963
  1,
736
964
  2
737
965
  ].map((t) => /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ i("feDisplacementMap", {
738
- in: "SourceGraphic",
966
+ in: "frost",
739
967
  in2: "map",
740
- scale: 2 * (s.refraction + Math.abs(s.shift) + t * s.dispersion),
968
+ scale: 2 * d.bend * E * (1 + (1 - t) * d.spread),
741
969
  xChannelSelector: "R",
742
970
  yChannelSelector: "G",
743
971
  result: `d${t}`
744
972
  }), /* @__PURE__ */ i("feColorMatrix", {
745
973
  in: `d${t}`,
746
974
  type: "matrix",
747
- values: p(t),
975
+ values: w(t),
748
976
  result: `c${t}`
749
977
  })] }, t)),
750
978
  /* @__PURE__ */ i("feBlend", {
@@ -757,77 +985,137 @@ function ut(t, { enabled: n = !0, refraction: r = "auto" } = {}) {
757
985
  in: "c01",
758
986
  in2: "c2",
759
987
  mode: "screen",
760
- result: "rgb"
988
+ result: "bent"
761
989
  }),
762
- /* @__PURE__ */ i("feGaussianBlur", {
763
- in: "rgb",
764
- stdDeviation: s.frost,
765
- result: "soft"
766
- }),
767
- /* @__PURE__ */ i("feColorMatrix", {
768
- in: "soft",
769
- type: "saturate",
770
- values: String(s.saturate)
771
- })
990
+ d.intensity > 0 && /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("feImage", {
991
+ href: _.light,
992
+ x: "0",
993
+ y: "0",
994
+ width: t,
995
+ height: n,
996
+ preserveAspectRatio: "none",
997
+ result: "light"
998
+ }), /* @__PURE__ */ i("feComposite", {
999
+ in: "bent",
1000
+ in2: "light",
1001
+ operator: "arithmetic",
1002
+ k1: 0,
1003
+ k2: 1,
1004
+ k3: 1,
1005
+ k4: -128 / 255
1006
+ })] })
772
1007
  ]
773
1008
  })
774
- }) : null,
775
- refracting: f,
1009
+ });
1010
+ })() : null;
1011
+ return {
1012
+ filter: y && h && m ? b ? /* @__PURE__ */ a(r, { children: [
1013
+ D,
1014
+ /* @__PURE__ */ a("span", {
1015
+ className: L.sourceClip,
1016
+ "aria-hidden": "true",
1017
+ children: [/* @__PURE__ */ i("canvas", {
1018
+ ref: x,
1019
+ className: L.sourceCanvas
1020
+ }), /* @__PURE__ */ i("span", {
1021
+ ref: S,
1022
+ className: L.probe
1023
+ })]
1024
+ }),
1025
+ /* @__PURE__ */ i("span", {
1026
+ className: L.fill,
1027
+ "aria-hidden": "true"
1028
+ })
1029
+ ] }) : /* @__PURE__ */ a(r, { children: [
1030
+ T,
1031
+ /* @__PURE__ */ i("span", {
1032
+ className: L.sourceClip,
1033
+ "aria-hidden": "true",
1034
+ children: /* @__PURE__ */ i("span", {
1035
+ className: L.source,
1036
+ style: { filter: `url(#${u})` },
1037
+ children: /* @__PURE__ */ i("span", {
1038
+ ref: g,
1039
+ className: L.sourceImage,
1040
+ style: {
1041
+ backgroundImage: m.image,
1042
+ backgroundSize: m.size,
1043
+ backgroundPosition: m.position
1044
+ }
1045
+ })
1046
+ })
1047
+ }),
1048
+ /* @__PURE__ */ i("span", {
1049
+ className: L.fill,
1050
+ "aria-hidden": "true"
1051
+ })
1052
+ ] }) : T,
1053
+ refracting: y,
776
1054
  props: {
777
1055
  "data-surface": "liquid",
778
- "data-refraction": f ? "on" : "off",
779
- style: f ? { backdropFilter: `url(#${o})` } : void 0,
780
- onPointerMove: d
1056
+ "data-refraction": y ? h ? "source" : "on" : "off",
1057
+ style: y && !h ? { backdropFilter: `url(#${u})` } : void 0,
1058
+ onPointerMove: v
781
1059
  }
782
1060
  };
783
1061
  }
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 });
1062
+ var wt = (e) => {
1063
+ if (!e) return {};
1064
+ let t = {};
1065
+ 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;
1066
+ }, 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) => {
1067
+ let g = e.useRef(null), _ = (e) => {
1068
+ g.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
1069
+ }, v = Ct(g, {
1070
+ refraction: i,
1071
+ source: s,
1072
+ bake: c,
1073
+ watch: o ? JSON.stringify(o) : ""
1074
+ });
788
1075
  return /* @__PURE__ */ a("div", {
789
- ref: m,
790
- ...d,
791
- ...h.props,
1076
+ ref: _,
1077
+ ...m,
1078
+ ...v.props,
792
1079
  className: [
793
- it.liquid,
794
- it[t],
795
- n === "auto" ? "" : it[`tint-${n}`],
796
- o ? it.interactive : "",
797
- s ?? ""
1080
+ L.liquid,
1081
+ L[t],
1082
+ n === "auto" ? "" : L[`tint-${n}`],
1083
+ l ? L.interactive : "",
1084
+ u ?? ""
798
1085
  ].filter(Boolean).join(" "),
799
1086
  style: {
800
1087
  borderRadius: r,
801
- ...h.props.style,
802
- ...c
1088
+ ...wt(o),
1089
+ ...v.props.style,
1090
+ ...d
803
1091
  },
804
1092
  onPointerMove: (e) => {
805
- h.props.onPointerMove(e), u?.(e);
1093
+ v.props.onPointerMove(e), p?.(e);
806
1094
  },
807
- children: [h.filter, l]
1095
+ children: [v.filter, f]
808
1096
  });
809
1097
  });
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 = {
1098
+ Tt.displayName = "LiquidGlass";
1099
+ var Et = (e = "regular", t = "auto") => [
1100
+ L.liquid,
1101
+ L[e],
1102
+ t === "auto" ? "" : L[`tint-${t}`]
1103
+ ].filter(Boolean).join(" "), Dt = {
816
1104
  "divider--horizontal": "_divider--horizontal_nem37_4",
817
1105
  "divider--labeled": "_divider--labeled_nem37_13",
818
1106
  "divider--vertical": "_divider--vertical_nem37_27",
819
1107
  divider__label: "_divider__label_nem37_38"
820
- }, mt = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
1108
+ }, Ot = ({ orientation: e = "horizontal", label: t, className: n }) => /* @__PURE__ */ i("div", {
821
1109
  role: "separator",
822
1110
  "aria-orientation": e,
823
1111
  className: [
824
- pt.divider,
825
- pt[`divider--${e}`],
826
- t ? pt["divider--labeled"] : "",
1112
+ Dt.divider,
1113
+ Dt[`divider--${e}`],
1114
+ t ? Dt["divider--labeled"] : "",
827
1115
  n ?? ""
828
1116
  ].filter(Boolean).join(" "),
829
1117
  children: t && e === "horizontal" && /* @__PURE__ */ i("span", {
830
- className: pt.divider__label,
1118
+ className: Dt.divider__label,
831
1119
  children: t
832
1120
  })
833
1121
  }), R = {
@@ -849,8 +1137,11 @@ var ft = (e = "regular", t = "auto") => [
849
1137
  "sakani-modal-card-in": "_sakani-modal-card-in_13dud_1",
850
1138
  "card--exiting": "_card--exiting_13dud_115",
851
1139
  "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);
1140
+ }, 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 }) => {
1141
+ 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, {
1142
+ enabled: O,
1143
+ source: !1
1144
+ }), [A, j] = e.useState(!1);
854
1145
  e.useEffect(() => {
855
1146
  t && j(!0);
856
1147
  }, [t]), e.useEffect(() => {
@@ -907,7 +1198,7 @@ var ft = (e = "regular", t = "auto") => [
907
1198
  tabIndex: -1,
908
1199
  className: [
909
1200
  R.card,
910
- O ? ft("regular") : "",
1201
+ O ? Et("regular") : "",
911
1202
  t ? R["card--entering"] : R["card--exiting"],
912
1203
  x ?? ""
913
1204
  ].filter(Boolean).join(" "),
@@ -947,15 +1238,15 @@ var ft = (e = "regular", t = "auto") => [
947
1238
  children: s
948
1239
  }),
949
1240
  _,
950
- !y && /* @__PURE__ */ i(mt, {}),
1241
+ !y && /* @__PURE__ */ i(Ot, {}),
951
1242
  /* @__PURE__ */ a("div", {
952
1243
  className: [R.footer, b === "between" ? R["footer--between"] : ""].filter(Boolean).join(" "),
953
- children: [/* @__PURE__ */ i(F, {
1244
+ children: [/* @__PURE__ */ i(P, {
954
1245
  variant: "secondary",
955
1246
  onClick: ee,
956
1247
  style: { borderColor: "transparent" },
957
1248
  children: u
958
- }), /* @__PURE__ */ i(F, {
1249
+ }), /* @__PURE__ */ i(P, {
959
1250
  variant: S ? "destructive" : "primary",
960
1251
  onClick: p,
961
1252
  loading: m,
@@ -979,7 +1270,7 @@ var ft = (e = "regular", t = "auto") => [
979
1270
  cardTop: "_cardTop_88l3n_87",
980
1271
  description: "_description_88l3n_94",
981
1272
  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 }) => {
1273
+ }, At = ({ icon: e, title: t, timestamp: n, read: r = !1, description: s, onDismiss: c, dismissLabel: l = "Dismiss", actionLabel: u, onAction: d, className: f }) => {
983
1274
  let p = s !== void 0, m = !r && !p, h = e ?? /* @__PURE__ */ i(o, {
984
1275
  size: 24,
985
1276
  strokeWidth: M(24)
@@ -1014,12 +1305,12 @@ var ft = (e = "regular", t = "auto") => [
1014
1305
  ]
1015
1306
  }), /* @__PURE__ */ a("div", {
1016
1307
  className: z.actions,
1017
- children: [c && /* @__PURE__ */ i(F, {
1308
+ children: [c && /* @__PURE__ */ i(P, {
1018
1309
  variant: "ghost",
1019
1310
  size: "sm",
1020
1311
  onClick: c,
1021
1312
  children: l
1022
- }), u && /* @__PURE__ */ i(F, {
1313
+ }), u && /* @__PURE__ */ i(P, {
1023
1314
  variant: "secondary",
1024
1315
  size: "sm",
1025
1316
  onClick: d,
@@ -1051,28 +1342,28 @@ var ft = (e = "regular", t = "auto") => [
1051
1342
  })
1052
1343
  ]
1053
1344
  });
1054
- }, _t = {
1345
+ }, jt = {
1055
1346
  stat: "_stat_krs8c_1",
1056
1347
  labelRow: "_labelRow_krs8c_10",
1057
1348
  label: "_label_krs8c_10",
1058
1349
  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(" "),
1350
+ }, Mt = ({ label: e, value: t, progress: n, className: r }) => /* @__PURE__ */ a("div", {
1351
+ className: [jt.stat, r ?? ""].filter(Boolean).join(" "),
1061
1352
  children: [/* @__PURE__ */ a("div", {
1062
- className: _t.labelRow,
1353
+ className: jt.labelRow,
1063
1354
  children: [/* @__PURE__ */ i("p", {
1064
- className: _t.label,
1355
+ className: jt.label,
1065
1356
  children: e
1066
1357
  }), /* @__PURE__ */ i("p", {
1067
- className: _t.value,
1358
+ className: jt.value,
1068
1359
  children: t
1069
1360
  })]
1070
- }), /* @__PURE__ */ i(et, {
1361
+ }), /* @__PURE__ */ i(tt, {
1071
1362
  value: n,
1072
1363
  size: "lg",
1073
1364
  label: e
1074
1365
  })]
1075
- }), yt = {
1366
+ }), Nt = {
1076
1367
  balance: "_balance_5gcu5_1",
1077
1368
  label: "_label_5gcu5_10",
1078
1369
  amountRow: "_amountRow_5gcu5_19",
@@ -1082,25 +1373,25 @@ var ft = (e = "regular", t = "auto") => [
1082
1373
  fill: "_fill_5gcu5_50",
1083
1374
  "fill--over": "_fill--over_5gcu5_57",
1084
1375
  footer: "_footer_5gcu5_61"
1085
- }, bt = (e) => e.toLocaleString("en-US", {
1376
+ }, Pt = (e) => e.toLocaleString("en-US", {
1086
1377
  style: "currency",
1087
1378
  currency: "USD"
1088
- }), xt = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = bt, className: o }) => {
1379
+ }), Ft = ({ label: e = "Spent this month", spent: t, limit: n, formatAmount: r = Pt, className: o }) => {
1089
1380
  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
1381
  return /* @__PURE__ */ a("div", {
1091
- className: [yt.balance, o ?? ""].filter(Boolean).join(" "),
1382
+ className: [Nt.balance, o ?? ""].filter(Boolean).join(" "),
1092
1383
  children: [
1093
1384
  /* @__PURE__ */ i("p", {
1094
- className: yt.label,
1385
+ className: Nt.label,
1095
1386
  children: e
1096
1387
  }),
1097
1388
  /* @__PURE__ */ a("div", {
1098
- className: yt.amountRow,
1389
+ className: Nt.amountRow,
1099
1390
  children: [/* @__PURE__ */ i("p", {
1100
- className: yt.amount,
1391
+ className: Nt.amount,
1101
1392
  children: r(t)
1102
1393
  }), /* @__PURE__ */ a("p", {
1103
- className: yt.limit,
1394
+ className: Nt.limit,
1104
1395
  children: [
1105
1396
  "of ",
1106
1397
  r(n),
@@ -1109,19 +1400,19 @@ var ft = (e = "regular", t = "auto") => [
1109
1400
  })]
1110
1401
  }),
1111
1402
  /* @__PURE__ */ i("div", {
1112
- className: yt.track,
1403
+ className: Nt.track,
1113
1404
  role: "progressbar",
1114
1405
  "aria-label": e,
1115
1406
  "aria-valuenow": Math.round(c),
1116
1407
  "aria-valuemin": 0,
1117
1408
  "aria-valuemax": 100,
1118
1409
  children: /* @__PURE__ */ i("div", {
1119
- className: [yt.fill, s ? yt["fill--over"] : ""].filter(Boolean).join(" "),
1410
+ className: [Nt.fill, s ? Nt["fill--over"] : ""].filter(Boolean).join(" "),
1120
1411
  style: { width: `${c}%` }
1121
1412
  })
1122
1413
  }),
1123
1414
  /* @__PURE__ */ i("p", {
1124
- className: yt.footer,
1415
+ className: Nt.footer,
1125
1416
  children: l
1126
1417
  })
1127
1418
  ]
@@ -1129,7 +1420,7 @@ var ft = (e = "regular", t = "auto") => [
1129
1420
  };
1130
1421
  //#endregion
1131
1422
  //#region src/lib/useChartTokens.ts
1132
- function St(e) {
1423
+ function It(e) {
1133
1424
  let [, r] = n(0);
1134
1425
  return t(() => {
1135
1426
  if (typeof document > "u") return;
@@ -1148,65 +1439,65 @@ function St(e) {
1148
1439
  }
1149
1440
  //#endregion
1150
1441
  //#region src/lib/chartPalette.ts
1151
- var Ct = [
1442
+ var Lt = [
1152
1443
  "#ff4700",
1153
1444
  "#5b92dd",
1154
1445
  "#47a8a2",
1155
1446
  "#9179d6",
1156
1447
  "#dca84f",
1157
1448
  "#12b76a"
1158
- ], wt = {
1449
+ ], Rt = {
1159
1450
  tooltip: "_tooltip_ic16u_3",
1160
1451
  title: "_title_ic16u_23",
1161
1452
  row: "_row_ic16u_27",
1162
1453
  dot: "_dot_ic16u_34",
1163
1454
  label: "_label_ic16u_41",
1164
1455
  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,
1456
+ }, zt = ({ active: e, payload: t, label: n, formatter: r }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ a("div", {
1457
+ className: Rt.tooltip,
1167
1458
  children: [n !== void 0 && n !== "" && /* @__PURE__ */ i("span", {
1168
- className: wt.title,
1459
+ className: Rt.title,
1169
1460
  children: n
1170
1461
  }), t.map((e, t) => /* @__PURE__ */ a("div", {
1171
- className: wt.row,
1462
+ className: Rt.row,
1172
1463
  children: [
1173
1464
  /* @__PURE__ */ i("span", {
1174
- className: wt.dot,
1465
+ className: Rt.dot,
1175
1466
  style: { background: e.color ?? e.payload?.fill ?? e.fill }
1176
1467
  }),
1177
1468
  /* @__PURE__ */ i("span", {
1178
- className: wt.label,
1469
+ className: Rt.label,
1179
1470
  children: e.name
1180
1471
  }),
1181
1472
  /* @__PURE__ */ i("span", {
1182
- className: wt.value,
1473
+ className: Rt.value,
1183
1474
  children: r ? r(e.value, e.name) : e.value
1184
1475
  })
1185
1476
  ]
1186
1477
  }, t))]
1187
- }), Et = {
1478
+ }), Bt = {
1188
1479
  chart: "_chart_1s6lv_2",
1189
1480
  legend: "_legend_1s6lv_31",
1190
1481
  legendItem: "_legendItem_1s6lv_41",
1191
1482
  legendSwatch: "_legendSwatch_1s6lv_46"
1192
- }, Dt = {
1483
+ }, Vt = {
1193
1484
  sm: 180,
1194
1485
  md: 240,
1195
1486
  lg: 320,
1196
1487
  xl: 420
1197
- }, B = 6, Ot = (e) => {
1488
+ }, B = 6, Ht = (e) => {
1198
1489
  if (e <= 0) return 1;
1199
1490
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
1200
1491
  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 = [
1492
+ }, Ut = ({ data: t, variant: n = "default", size: o = "md", seriesLabels: s = ["Value", "Value 2"], className: c }) => {
1493
+ 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
1494
  1,
1204
1495
  2,
1205
1496
  3,
1206
1497
  4,
1207
1498
  5,
1208
1499
  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 = [
1500
+ ].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
1501
  -w,
1211
1502
  -w / 2,
1212
1503
  0,
@@ -1214,7 +1505,7 @@ var Ct = [
1214
1505
  w
1215
1506
  ], E = /* @__PURE__ */ i(Se, {
1216
1507
  cursor: !1,
1217
- content: /* @__PURE__ */ i(Tt, {}),
1508
+ content: /* @__PURE__ */ i(zt, {}),
1218
1509
  wrapperStyle: { zIndex: 50 },
1219
1510
  position: d ? { y: d.y } : void 0
1220
1511
  }), 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 +1555,10 @@ var Ct = [
1264
1555
  };
1265
1556
  return /* @__PURE__ */ i("div", {
1266
1557
  ref: p,
1267
- className: [Et.chart, c ?? ""].filter(Boolean).join(" "),
1558
+ className: [Bt.chart, c ?? ""].filter(Boolean).join(" "),
1268
1559
  children: /* @__PURE__ */ i(xe, {
1269
1560
  width: "100%",
1270
- height: Dt[o],
1561
+ height: Vt[o],
1271
1562
  children: /* @__PURE__ */ a(le, {
1272
1563
  data: t,
1273
1564
  layout: n === "horizontal" ? "vertical" : "horizontal",
@@ -1313,11 +1604,11 @@ var Ct = [
1313
1604
  }),
1314
1605
  E,
1315
1606
  x && /* @__PURE__ */ i(fe, { content: (e) => /* @__PURE__ */ i("ul", {
1316
- className: Et.legend,
1607
+ className: Bt.legend,
1317
1608
  children: e.payload?.map((e) => /* @__PURE__ */ a("li", {
1318
- className: Et.legendItem,
1609
+ className: Bt.legendItem,
1319
1610
  children: [/* @__PURE__ */ i("span", {
1320
- className: Et.legendSwatch,
1611
+ className: Bt.legendSwatch,
1321
1612
  style: { background: e.color }
1322
1613
  }), /* @__PURE__ */ i("span", {
1323
1614
  style: { color: e.color },
@@ -1396,7 +1687,7 @@ var Ct = [
1396
1687
  })
1397
1688
  })
1398
1689
  });
1399
- }, At = {
1690
+ }, Wt = {
1400
1691
  badge: "_badge_a5a38_6",
1401
1692
  "badge--neutral-subtle": "_badge--neutral-subtle_a5a38_20",
1402
1693
  "badge--neutral-solid": "_badge--neutral-solid_a5a38_21",
@@ -1412,24 +1703,24 @@ var Ct = [
1412
1703
  "badge--info-solid": "_badge--info-solid_a5a38_41",
1413
1704
  badge__icon: "_badge__icon_a5a38_44",
1414
1705
  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", {
1706
+ }, Gt = ({ variant: e = "neutral", emphasis: t = "subtle", leftIcon: n, rightIcon: r, children: o, className: s }) => /* @__PURE__ */ a("span", {
1416
1707
  className: [
1417
- At.badge,
1418
- At[`badge--${e}-${t}`],
1708
+ Wt.badge,
1709
+ Wt[`badge--${e}-${t}`],
1419
1710
  s ?? ""
1420
1711
  ].filter(Boolean).join(" "),
1421
1712
  children: [
1422
1713
  n && /* @__PURE__ */ i("span", {
1423
- className: At.badge__icon,
1714
+ className: Wt.badge__icon,
1424
1715
  "aria-hidden": "true",
1425
1716
  children: n
1426
1717
  }),
1427
1718
  /* @__PURE__ */ i("span", {
1428
- className: At.badge__label,
1719
+ className: Wt.badge__label,
1429
1720
  children: o
1430
1721
  }),
1431
1722
  r && /* @__PURE__ */ i("span", {
1432
- className: At.badge__icon,
1723
+ className: Wt.badge__icon,
1433
1724
  "aria-hidden": "true",
1434
1725
  children: r
1435
1726
  })
@@ -1453,7 +1744,7 @@ var Ct = [
1453
1744
  "roll-out-down": "_roll-out-down_1w3rz_1",
1454
1745
  rollInDown: "_rollInDown_1w3rz_133",
1455
1746
  "roll-in-down": "_roll-in-down_1w3rz_1"
1456
- }, Mt = ({ value: t }) => {
1747
+ }, Kt = ({ value: t }) => {
1457
1748
  let n = e.useRef(t), [r, o] = e.useState(null);
1458
1749
  return t !== n.current && (o({
1459
1750
  value: n.current,
@@ -1474,7 +1765,7 @@ var Ct = [
1474
1765
  children: t
1475
1766
  }, `in-${t}`)]
1476
1767
  });
1477
- }, Nt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
1768
+ }, qt = ({ quantity: t, onQuantityChange: n, min: r = 1, max: o, label: s = "Quantity", className: c }) => {
1478
1769
  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
1770
  let t = e;
1480
1771
  return r !== void 0 && (t = Math.max(r, t)), o !== void 0 && (t = Math.min(o, t)), t;
@@ -1527,7 +1818,7 @@ var Ct = [
1527
1818
  }), /* @__PURE__ */ i("span", {
1528
1819
  className: [V.rollOverlay, f ? V.rollOverlayHidden : ""].filter(Boolean).join(" "),
1529
1820
  "aria-hidden": "true",
1530
- children: /* @__PURE__ */ i(Mt, { value: t })
1821
+ children: /* @__PURE__ */ i(Kt, { value: t })
1531
1822
  })]
1532
1823
  }),
1533
1824
  /* @__PURE__ */ i("span", {
@@ -1547,7 +1838,7 @@ var Ct = [
1547
1838
  })
1548
1839
  ]
1549
1840
  });
1550
- }, Pt = {
1841
+ }, Jt = {
1551
1842
  item: "_item_15jww_1",
1552
1843
  thumb: "_thumb_15jww_11",
1553
1844
  info: "_info_15jww_19",
@@ -1558,31 +1849,31 @@ var Ct = [
1558
1849
  priceRow: "_priceRow_15jww_67",
1559
1850
  priceOriginal: "_priceOriginal_15jww_75",
1560
1851
  priceSale: "_priceSale_15jww_80"
1561
- }, Ft = (e) => e.toLocaleString("en-US", {
1852
+ }, Yt = (e) => e.toLocaleString("en-US", {
1562
1853
  style: "currency",
1563
1854
  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 }) => {
1855
+ }), 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
1856
  let g = s !== void 0;
1566
1857
  return /* @__PURE__ */ a("div", {
1567
- className: [Pt.item, h ?? ""].filter(Boolean).join(" "),
1858
+ className: [Jt.item, h ?? ""].filter(Boolean).join(" "),
1568
1859
  children: [
1569
1860
  /* @__PURE__ */ i("img", {
1570
1861
  src: e,
1571
1862
  alt: t ?? n,
1572
- className: Pt.thumb
1863
+ className: Jt.thumb
1573
1864
  }),
1574
1865
  /* @__PURE__ */ a("div", {
1575
- className: Pt.info,
1866
+ className: Jt.info,
1576
1867
  children: [
1577
1868
  /* @__PURE__ */ i("p", {
1578
- className: Pt.name,
1869
+ className: Jt.name,
1579
1870
  children: n
1580
1871
  }),
1581
1872
  r && /* @__PURE__ */ i("p", {
1582
- className: Pt.variant,
1873
+ className: Jt.variant,
1583
1874
  children: r
1584
1875
  }),
1585
- /* @__PURE__ */ i(Nt, {
1876
+ /* @__PURE__ */ i(qt, {
1586
1877
  quantity: c,
1587
1878
  onQuantityChange: l,
1588
1879
  min: u,
@@ -1592,18 +1883,18 @@ var Ct = [
1592
1883
  ]
1593
1884
  }),
1594
1885
  /* @__PURE__ */ a("div", {
1595
- className: Pt.right,
1886
+ className: Jt.right,
1596
1887
  children: [g ? /* @__PURE__ */ a("div", {
1597
- className: Pt.priceRow,
1888
+ className: Jt.priceRow,
1598
1889
  children: [/* @__PURE__ */ i("span", {
1599
- className: Pt.priceOriginal,
1890
+ className: Jt.priceOriginal,
1600
1891
  children: m(s)
1601
1892
  }), /* @__PURE__ */ i("span", {
1602
- className: Pt.priceSale,
1893
+ className: Jt.priceSale,
1603
1894
  children: m(o)
1604
1895
  })]
1605
1896
  }) : /* @__PURE__ */ i("p", {
1606
- className: Pt.price,
1897
+ className: Jt.price,
1607
1898
  children: m(o)
1608
1899
  }), /* @__PURE__ */ i(He, {
1609
1900
  icon: w,
@@ -1615,7 +1906,7 @@ var Ct = [
1615
1906
  })
1616
1907
  ]
1617
1908
  });
1618
- }, Lt = {
1909
+ }, Zt = {
1619
1910
  steps: "_steps_t53um_1",
1620
1911
  step: "_step_t53um_1",
1621
1912
  connector: "_connector_t53um_16",
@@ -1626,26 +1917,26 @@ var Ct = [
1626
1917
  label: "_label_t53um_49",
1627
1918
  labelActive: "_labelActive_t53um_56",
1628
1919
  labelUpcoming: "_labelUpcoming_t53um_59"
1629
- }, Rt = [
1920
+ }, Qt = [
1630
1921
  "Cart",
1631
1922
  "Shipping",
1632
1923
  "Payment",
1633
1924
  "Confirmation"
1634
- ], zt = ({ steps: t = Rt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1635
- className: [Lt.steps, r ?? ""].filter(Boolean).join(" "),
1925
+ ], $t = ({ steps: t = Qt, currentStep: n, className: r }) => /* @__PURE__ */ i("div", {
1926
+ className: [Zt.steps, r ?? ""].filter(Boolean).join(" "),
1636
1927
  role: "list",
1637
1928
  children: t.map((r, o) => {
1638
1929
  let s = o < n ? "completed" : o === n ? "active" : "upcoming", c = o === t.length - 1;
1639
1930
  return /* @__PURE__ */ a(e.Fragment, { children: [/* @__PURE__ */ a("div", {
1640
- className: Lt.step,
1931
+ className: Zt.step,
1641
1932
  role: "listitem",
1642
1933
  "aria-current": s === "active" ? "step" : void 0,
1643
1934
  children: [/* @__PURE__ */ i("span", {
1644
1935
  className: [
1645
- Lt.circle,
1646
- s === "completed" ? Lt.circleCompleted : "",
1647
- s === "active" ? Lt.circleActive : "",
1648
- s === "upcoming" ? Lt.circleUpcoming : ""
1936
+ Zt.circle,
1937
+ s === "completed" ? Zt.circleCompleted : "",
1938
+ s === "active" ? Zt.circleActive : "",
1939
+ s === "upcoming" ? Zt.circleUpcoming : ""
1649
1940
  ].filter(Boolean).join(" "),
1650
1941
  "aria-hidden": "true",
1651
1942
  children: /* @__PURE__ */ i(l, {
@@ -1654,27 +1945,27 @@ var Ct = [
1654
1945
  })
1655
1946
  }), /* @__PURE__ */ i("span", {
1656
1947
  className: [
1657
- Lt.label,
1658
- s === "active" ? Lt.labelActive : "",
1659
- s === "upcoming" ? Lt.labelUpcoming : ""
1948
+ Zt.label,
1949
+ s === "active" ? Zt.labelActive : "",
1950
+ s === "upcoming" ? Zt.labelUpcoming : ""
1660
1951
  ].filter(Boolean).join(" "),
1661
1952
  children: r
1662
1953
  })]
1663
1954
  }), !c && /* @__PURE__ */ i("span", {
1664
- className: Lt.connector,
1955
+ className: Zt.connector,
1665
1956
  "aria-hidden": "true"
1666
1957
  })] }, r);
1667
1958
  })
1668
- }), Bt = "#fafaf9", Vt = "#141414", Ht = (e, t, n) => {
1959
+ }), en = "#fafaf9", tn = "#141414", nn = (e, t, n) => {
1669
1960
  let r = (e) => {
1670
1961
  let t = e / 255;
1671
1962
  return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
1672
1963
  };
1673
1964
  return .2126 * r(e) + .7152 * r(t) + .0722 * r(n);
1674
- }, Ut = (e, t) => {
1965
+ }, rn = (e, t) => {
1675
1966
  let n = Math.max(e, t), r = Math.min(e, t);
1676
1967
  return (n + .05) / (r + .05);
1677
- }, Wt = (e) => {
1968
+ }, an = (e) => {
1678
1969
  let t = e.trim().toLowerCase(), n = /^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);
1679
1970
  if (n) {
1680
1971
  let e = n[1];
@@ -1690,31 +1981,31 @@ var Ct = [
1690
1981
  Number(r[2]),
1691
1982
  Number(r[3])
1692
1983
  ] : 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;
1984
+ }, on = (e, t, n) => {
1985
+ let r = nn(e, t, n), i = rn(r, nn(20, 20, 20));
1986
+ return rn(r, nn(250, 250, 249)) >= i ? en : tn;
1987
+ }, sn = null, cn = (e) => {
1988
+ let t = an(e);
1989
+ if (t) return on(...t);
1990
+ if (typeof document > "u") return en;
1991
+ sn ??= document.createElement("canvas"), sn.width = 1, sn.height = 1;
1992
+ let n = sn.getContext("2d", { willReadFrequently: !0 });
1993
+ if (!n) return en;
1703
1994
  n.clearRect(0, 0, 1, 1), n.fillStyle = e, n.fillRect(0, 0, 1, 1);
1704
1995
  let [r, i, a] = n.getImageData(0, 0, 1, 1).data;
1705
- return Gt(r, i, a);
1706
- }, Jt = {
1996
+ return on(r, i, a);
1997
+ }, ln = {
1707
1998
  swatch: "_swatch_1i3c3_1",
1708
1999
  circle: "_circle_1i3c3_22",
1709
2000
  circleUnavailable: "_circleUnavailable_1i3c3_32",
1710
2001
  ring: "_ring_1i3c3_39",
1711
2002
  check: "_check_1i3c3_55",
1712
2003
  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]);
2004
+ }, un = ({ color: t, label: n, selected: r = !1, available: o = !0, onSelect: s, className: c }) => {
2005
+ let u = e.useMemo(() => cn(t), [t]);
1715
2006
  return /* @__PURE__ */ a("button", {
1716
2007
  type: "button",
1717
- className: [Jt.swatch, c ?? ""].filter(Boolean).join(" "),
2008
+ className: [ln.swatch, c ?? ""].filter(Boolean).join(" "),
1718
2009
  style: { "--swatch-color": t },
1719
2010
  disabled: !o,
1720
2011
  "aria-pressed": o ? r : void 0,
@@ -1722,49 +2013,49 @@ var Ct = [
1722
2013
  onClick: s,
1723
2014
  children: [
1724
2015
  r && o && /* @__PURE__ */ i("span", {
1725
- className: Jt.ring,
2016
+ className: ln.ring,
1726
2017
  "aria-hidden": "true"
1727
2018
  }),
1728
2019
  /* @__PURE__ */ i("span", {
1729
- className: [Jt.circle, o ? "" : Jt.circleUnavailable].filter(Boolean).join(" "),
2020
+ className: [ln.circle, o ? "" : ln.circleUnavailable].filter(Boolean).join(" "),
1730
2021
  "aria-hidden": "true"
1731
2022
  }),
1732
2023
  r && o && /* @__PURE__ */ i(l, {
1733
2024
  size: 14,
1734
2025
  strokeWidth: M(14),
1735
- className: Jt.check,
2026
+ className: ln.check,
1736
2027
  style: { color: u },
1737
2028
  "aria-hidden": "true"
1738
2029
  }),
1739
2030
  !o && /* @__PURE__ */ i("span", {
1740
- className: Jt.strike,
2031
+ className: ln.strike,
1741
2032
  style: { background: u },
1742
2033
  "aria-hidden": "true"
1743
2034
  })
1744
2035
  ]
1745
2036
  });
1746
- }, Xt = {
2037
+ }, dn = {
1747
2038
  row: "_row_1r4ef_1",
1748
2039
  original: "_original_1r4ef_8",
1749
2040
  price: "_price_1r4ef_17",
1750
2041
  priceSale: "_priceSale_1r4ef_24"
1751
- }, Zt = (e) => e.toLocaleString("en-US", {
2042
+ }, fn = (e) => e.toLocaleString("en-US", {
1752
2043
  style: "currency",
1753
2044
  currency: "USD"
1754
- }), Qt = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = Zt, className: o }) => {
2045
+ }), pn = ({ price: e, compareAtPrice: t, showBadge: n = !1, formatPrice: r = fn, className: o }) => {
1755
2046
  let s = t !== void 0, c = s ? Math.ceil((1 - e / t) * 100) : 0;
1756
2047
  return /* @__PURE__ */ a("div", {
1757
- className: [Xt.row, o ?? ""].filter(Boolean).join(" "),
2048
+ className: [dn.row, o ?? ""].filter(Boolean).join(" "),
1758
2049
  children: [
1759
2050
  s && /* @__PURE__ */ i("span", {
1760
- className: Xt.original,
2051
+ className: dn.original,
1761
2052
  children: r(t)
1762
2053
  }),
1763
2054
  /* @__PURE__ */ i("span", {
1764
- className: [Xt.price, s ? Xt.priceSale : ""].filter(Boolean).join(" "),
2055
+ className: [dn.price, s ? dn.priceSale : ""].filter(Boolean).join(" "),
1765
2056
  children: r(e)
1766
2057
  }),
1767
- s && n && /* @__PURE__ */ a(jt, {
2058
+ s && n && /* @__PURE__ */ a(Gt, {
1768
2059
  variant: "danger",
1769
2060
  emphasis: "solid",
1770
2061
  children: [
@@ -1775,17 +2066,17 @@ var Ct = [
1775
2066
  })
1776
2067
  ]
1777
2068
  });
1778
- }, $t = {
2069
+ }, mn = {
1779
2070
  button: "_button_58k4v_1",
1780
2071
  icon: "_icon_58k4v_24",
1781
2072
  iconSaved: "_iconSaved_58k4v_27",
1782
2073
  bounce: "_bounce_58k4v_40",
1783
2074
  "wishlist-bounce": "_wishlist-bounce_58k4v_1"
1784
- }, en = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
2075
+ }, hn = ({ saved: t = !1, onToggle: n, label: r = "item", className: a }) => {
1785
2076
  let [o, s] = e.useState(!1);
1786
2077
  return /* @__PURE__ */ i("button", {
1787
2078
  type: "button",
1788
- className: [$t.button, a ?? ""].filter(Boolean).join(" "),
2079
+ className: [mn.button, a ?? ""].filter(Boolean).join(" "),
1789
2080
  "aria-pressed": t,
1790
2081
  "aria-label": t ? `Remove ${r} from wishlist` : `Add ${r} to wishlist`,
1791
2082
  onClick: () => {
@@ -1794,7 +2085,7 @@ var Ct = [
1794
2085
  children: /* @__PURE__ */ i(S, {
1795
2086
  size: 16,
1796
2087
  strokeWidth: M(16),
1797
- className: [t ? $t.iconSaved : $t.icon, o ? $t.bounce : ""].filter(Boolean).join(" "),
2088
+ className: [t ? mn.iconSaved : mn.icon, o ? mn.bounce : ""].filter(Boolean).join(" "),
1798
2089
  fill: t ? "currentColor" : "none",
1799
2090
  onAnimationEnd: () => s(!1)
1800
2091
  })
@@ -1819,10 +2110,10 @@ var Ct = [
1819
2110
  description: "_description_jlv97_118",
1820
2111
  swatches: "_swatches_jlv97_131",
1821
2112
  addButton: "_addButton_jlv97_136"
1822
- }, tn = (e) => e.toLocaleString("en-US", {
2113
+ }, gn = (e) => e.toLocaleString("en-US", {
1823
2114
  style: "currency",
1824
2115
  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 }) => {
2116
+ }), _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
2117
  let y = s !== void 0, b = y ? Math.ceil((1 - o / s) * 100) : 0, x = c === void 0 ? 0 : Math.round(c);
1827
2118
  return /* @__PURE__ */ a("div", {
1828
2119
  className: [H.card, v ?? ""].filter(Boolean).join(" "),
@@ -1834,7 +2125,7 @@ var Ct = [
1834
2125
  alt: t ?? n,
1835
2126
  className: [H.image, f ? "" : H.imageDimmed].filter(Boolean).join(" ")
1836
2127
  }),
1837
- y && f && /* @__PURE__ */ a(jt, {
2128
+ y && f && /* @__PURE__ */ a(Gt, {
1838
2129
  variant: "danger",
1839
2130
  emphasis: "solid",
1840
2131
  className: H.saleBadge,
@@ -1844,7 +2135,7 @@ var Ct = [
1844
2135
  "%"
1845
2136
  ]
1846
2137
  }),
1847
- f && /* @__PURE__ */ i(en, {
2138
+ f && /* @__PURE__ */ i(hn, {
1848
2139
  saved: p,
1849
2140
  label: n,
1850
2141
  className: H.wishlistBtn,
@@ -1893,12 +2184,12 @@ var Ct = [
1893
2184
  className: H.swatches,
1894
2185
  role: "group",
1895
2186
  "aria-label": "Color",
1896
- children: u.map((e) => /* @__PURE__ */ i(Yt, {
2187
+ children: u.map((e) => /* @__PURE__ */ i(un, {
1897
2188
  ...e,
1898
2189
  onSelect: () => d?.(e.id ?? e.label)
1899
2190
  }, e.id ?? e.label))
1900
2191
  }),
1901
- /* @__PURE__ */ i(F, {
2192
+ /* @__PURE__ */ i(P, {
1902
2193
  variant: "primary",
1903
2194
  size: "md",
1904
2195
  disabled: !f,
@@ -1924,7 +2215,7 @@ var Ct = [
1924
2215
  thumbLeft: "_thumbLeft_1mrk8_70",
1925
2216
  thumbActive: "_thumbActive_1mrk8_75",
1926
2217
  thumbImage: "_thumbImage_1mrk8_79"
1927
- }, rn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
2218
+ }, vn = ({ images: t, thumbsPosition: n = "bottom", activeIndex: r, defaultActiveIndex: o = 0, onActiveIndexChange: s, className: c }) => {
1928
2219
  let l = r !== void 0, [u, d] = e.useState(o), f = l ? r : u, p = (e) => {
1929
2220
  l || d(e), s?.(e);
1930
2221
  }, m = t[f] ?? t[0], h = n === "left", g = /* @__PURE__ */ i("div", {
@@ -1975,18 +2266,18 @@ var Ct = [
1975
2266
  })
1976
2267
  ]
1977
2268
  });
1978
- }, an = {
2269
+ }, yn = {
1979
2270
  button: "_button_1vgn5_1",
1980
2271
  unselected: "_unselected_1vgn5_23",
1981
2272
  selected: "_selected_1vgn5_32",
1982
2273
  unavailable: "_unavailable_1vgn5_37",
1983
2274
  label: "_label_1vgn5_44",
1984
2275
  strike: "_strike_1vgn5_55"
1985
- }, on = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
2276
+ }, bn = ({ size: e, selected: t = !1, available: n = !0, onSelect: r, className: o }) => /* @__PURE__ */ a("button", {
1986
2277
  type: "button",
1987
2278
  className: [
1988
- an.button,
1989
- n ? t ? an.selected : an.unselected : an.unavailable,
2279
+ yn.button,
2280
+ n ? t ? yn.selected : yn.unselected : yn.unavailable,
1990
2281
  o ?? ""
1991
2282
  ].filter(Boolean).join(" "),
1992
2283
  disabled: !n,
@@ -1994,13 +2285,13 @@ var Ct = [
1994
2285
  "aria-label": n ? `Size ${e}` : `Size ${e} (out of stock)`,
1995
2286
  onClick: r,
1996
2287
  children: [/* @__PURE__ */ i("span", {
1997
- className: an.label,
2288
+ className: yn.label,
1998
2289
  children: e
1999
2290
  }), !n && /* @__PURE__ */ i("span", {
2000
- className: an.strike,
2291
+ className: yn.strike,
2001
2292
  "aria-hidden": "true"
2002
2293
  })]
2003
- }), sn = {
2294
+ }), xn = {
2004
2295
  row: "_row_1snsi_1",
2005
2296
  rowVertical: "_rowVertical_1snsi_8",
2006
2297
  stars: "_stars_1snsi_13",
@@ -2009,40 +2300,40 @@ var Ct = [
2009
2300
  label: "_label_1snsi_29",
2010
2301
  value: "_value_1snsi_38",
2011
2302
  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 }) => {
2303
+ }, Sn = (e) => e.toLocaleString("en-US"), Cn = ({ rating: e, reviewCount: t, showLabel: n = !0, orientation: r = "horizontal", formatReviewCount: o = Sn, className: s }) => {
2013
2304
  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,
2305
+ className: xn.stars,
2015
2306
  role: "img",
2016
2307
  "aria-label": `${c} out of 5 stars`,
2017
2308
  children: [
2018
2309
  Array.from({ length: u }, (e, t) => /* @__PURE__ */ i(ne, {
2019
2310
  size: 24,
2020
2311
  strokeWidth: M(24),
2021
- className: sn.starFull,
2312
+ className: xn.starFull,
2022
2313
  fill: "currentColor",
2023
2314
  "aria-hidden": "true"
2024
2315
  }, `full-${t}`)),
2025
2316
  d && /* @__PURE__ */ i(re, {
2026
2317
  size: 24,
2027
2318
  strokeWidth: M(24),
2028
- className: sn.starFull,
2319
+ className: xn.starFull,
2029
2320
  fill: "currentColor",
2030
2321
  "aria-hidden": "true"
2031
2322
  }),
2032
2323
  Array.from({ length: f }, (e, t) => /* @__PURE__ */ i(ne, {
2033
2324
  size: 24,
2034
2325
  strokeWidth: M(24),
2035
- className: sn.starEmpty,
2326
+ className: xn.starEmpty,
2036
2327
  "aria-hidden": "true"
2037
2328
  }, `empty-${t}`))
2038
2329
  ]
2039
2330
  }), m = n && /* @__PURE__ */ a("div", {
2040
- className: sn.label,
2331
+ className: xn.label,
2041
2332
  children: [/* @__PURE__ */ i("span", {
2042
- className: sn.value,
2333
+ className: xn.value,
2043
2334
  children: c.toFixed(1)
2044
2335
  }), t !== void 0 && /* @__PURE__ */ a("span", {
2045
- className: sn.count,
2336
+ className: xn.count,
2046
2337
  children: [
2047
2338
  "(",
2048
2339
  o(t),
@@ -2050,8 +2341,8 @@ var Ct = [
2050
2341
  ]
2051
2342
  })]
2052
2343
  }), h = [
2053
- sn.row,
2054
- r === "vertical" ? sn.rowVertical : "",
2344
+ xn.row,
2345
+ r === "vertical" ? xn.rowVertical : "",
2055
2346
  s ?? ""
2056
2347
  ].filter(Boolean).join(" ");
2057
2348
  return r === "horizontal-reverse" ? /* @__PURE__ */ a("div", {
@@ -2061,9 +2352,9 @@ var Ct = [
2061
2352
  className: h,
2062
2353
  children: [p, m]
2063
2354
  });
2064
- }, un = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2355
+ }, wn = ({ quantity: e, lowStockThreshold: t = 5, label: n, className: r }) => {
2065
2356
  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, {
2357
+ return /* @__PURE__ */ i(Gt, {
2067
2358
  variant: s,
2068
2359
  emphasis: "subtle",
2069
2360
  className: r,
@@ -2084,7 +2375,7 @@ var Ct = [
2084
2375
  excerpt: "_excerpt_1w9hp_114",
2085
2376
  author: "_author_1w9hp_123",
2086
2377
  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 }) => {
2378
+ }, Tn = ({ image: e, imageAlt: t, category: n, readTime: r, title: o, excerpt: s, author: c, layout: l = "default", className: u }) => {
2088
2379
  let d = l === "horizontal";
2089
2380
  return /* @__PURE__ */ a("div", {
2090
2381
  className: [
@@ -2108,7 +2399,7 @@ var Ct = [
2108
2399
  children: [
2109
2400
  /* @__PURE__ */ a("div", {
2110
2401
  className: W.metaRow,
2111
- children: [/* @__PURE__ */ i(jt, {
2402
+ children: [/* @__PURE__ */ i(Gt, {
2112
2403
  variant: "accent",
2113
2404
  emphasis: "subtle",
2114
2405
  children: n
@@ -2143,7 +2434,7 @@ var Ct = [
2143
2434
  ]
2144
2435
  })]
2145
2436
  });
2146
- }, fn = {
2437
+ }, En = {
2147
2438
  card: "_card_8cf5b_1",
2148
2439
  cardHorizontal: "_cardHorizontal_8cf5b_12",
2149
2440
  cardVertical: "_cardVertical_8cf5b_20",
@@ -2155,52 +2446,52 @@ var Ct = [
2155
2446
  footer: "_footer_8cf5b_86",
2156
2447
  author: "_author_8cf5b_94",
2157
2448
  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 }) => {
2449
+ }, 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
2450
  let f = u === "vertical";
2160
2451
  return /* @__PURE__ */ a("div", {
2161
2452
  className: [
2162
- fn.card,
2163
- f ? fn.cardVertical : fn.cardHorizontal,
2453
+ En.card,
2454
+ f ? En.cardVertical : En.cardHorizontal,
2164
2455
  d ?? ""
2165
2456
  ].filter(Boolean).join(" "),
2166
2457
  children: [/* @__PURE__ */ i("img", {
2167
2458
  src: e,
2168
2459
  alt: t ?? "",
2169
- className: fn.image
2460
+ className: En.image
2170
2461
  }), /* @__PURE__ */ a("div", {
2171
- className: f ? fn.bodyVertical : fn.bodyHorizontal,
2462
+ className: f ? En.bodyVertical : En.bodyHorizontal,
2172
2463
  children: [
2173
- /* @__PURE__ */ i(jt, {
2464
+ /* @__PURE__ */ i(Gt, {
2174
2465
  variant: "accent",
2175
2466
  emphasis: "subtle",
2176
2467
  children: n
2177
2468
  }),
2178
2469
  /* @__PURE__ */ i("p", {
2179
- className: fn.title,
2470
+ className: En.title,
2180
2471
  children: r
2181
2472
  }),
2182
2473
  /* @__PURE__ */ i("p", {
2183
- className: fn.excerpt,
2474
+ className: En.excerpt,
2184
2475
  children: o
2185
2476
  }),
2186
2477
  /* @__PURE__ */ a("div", {
2187
- className: fn.footer,
2478
+ className: En.footer,
2188
2479
  children: [/* @__PURE__ */ a("div", {
2189
- className: fn.author,
2480
+ className: En.author,
2190
2481
  children: [/* @__PURE__ */ i(Ne, {
2191
2482
  size: "md",
2192
2483
  src: s.avatarSrc,
2193
2484
  alt: s.avatarAlt ?? s.name,
2194
2485
  initials: s.initials
2195
2486
  }), /* @__PURE__ */ a("p", {
2196
- className: fn.authorText,
2487
+ className: En.authorText,
2197
2488
  children: [
2198
2489
  s.name,
2199
2490
  " · ",
2200
2491
  s.date
2201
2492
  ]
2202
2493
  })]
2203
- }), /* @__PURE__ */ i(F, {
2494
+ }), /* @__PURE__ */ i(P, {
2204
2495
  variant: "secondary",
2205
2496
  size: "sm",
2206
2497
  onClick: l,
@@ -2210,7 +2501,7 @@ var Ct = [
2210
2501
  ]
2211
2502
  })]
2212
2503
  });
2213
- }, mn = {
2504
+ }, On = {
2214
2505
  chip: "_chip_scl8l_1",
2215
2506
  "chip--sm": "_chip--sm_scl8l_11",
2216
2507
  "chip--md": "_chip--md_scl8l_17",
@@ -2219,26 +2510,26 @@ var Ct = [
2219
2510
  "chip--outline": "_chip--outline_scl8l_35",
2220
2511
  "chip--solid": "_chip--solid_scl8l_39",
2221
2512
  "chip--subtle": "_chip--subtle_scl8l_43"
2222
- }, hn = {
2513
+ }, kn = {
2223
2514
  sm: 16,
2224
2515
  md: 20,
2225
2516
  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, {
2517
+ }, An = ({ icon: t, size: n = "md", variant: r = "light", className: a }) => {
2518
+ let o = kn[n], s = e.isValidElement(t) ? e.cloneElement(t, {
2228
2519
  size: o,
2229
2520
  strokeWidth: M(o)
2230
2521
  }) : t;
2231
2522
  return /* @__PURE__ */ i("div", {
2232
2523
  className: [
2233
- mn.chip,
2234
- mn[`chip--${n}`],
2235
- mn[`chip--${r}`],
2524
+ On.chip,
2525
+ On[`chip--${n}`],
2526
+ On[`chip--${r}`],
2236
2527
  a ?? ""
2237
2528
  ].filter(Boolean).join(" "),
2238
2529
  "aria-hidden": "true",
2239
2530
  children: s
2240
2531
  });
2241
- }, _n = {
2532
+ }, jn = {
2242
2533
  group: "_group_mvlh4_3",
2243
2534
  group__item: "_group__item_mvlh4_6",
2244
2535
  "group--sm": "_group--sm_mvlh4_9",
@@ -2249,16 +2540,16 @@ var Ct = [
2249
2540
  "overflow--md": "_overflow--md_mvlh4_26",
2250
2541
  "overflow--lg": "_overflow--lg_mvlh4_27",
2251
2542
  "overflow--xl": "_overflow--xl_mvlh4_28"
2252
- }, vn = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
2543
+ }, Mn = ({ size: e = "md", max: t = 4, avatars: n, className: r }) => {
2253
2544
  let o = n.slice(0, t), s = n.length - o.length;
2254
2545
  return /* @__PURE__ */ a("div", {
2255
2546
  className: [
2256
- _n.group,
2257
- _n[`group--${e}`],
2547
+ jn.group,
2548
+ jn[`group--${e}`],
2258
2549
  r ?? ""
2259
2550
  ].filter(Boolean).join(" "),
2260
2551
  children: [o.map((t, n) => /* @__PURE__ */ i("span", {
2261
- className: _n.group__item,
2552
+ className: jn.group__item,
2262
2553
  children: /* @__PURE__ */ i(Ne, {
2263
2554
  size: e,
2264
2555
  src: t.src,
@@ -2266,25 +2557,25 @@ var Ct = [
2266
2557
  alt: t.alt
2267
2558
  })
2268
2559
  }, n)), s > 0 && /* @__PURE__ */ i("span", {
2269
- className: _n.group__item,
2560
+ className: jn.group__item,
2270
2561
  children: /* @__PURE__ */ a("span", {
2271
- className: [_n.overflow, _n[`overflow--${e}`]].join(" "),
2562
+ className: [jn.overflow, jn[`overflow--${e}`]].join(" "),
2272
2563
  children: ["+", s]
2273
2564
  })
2274
2565
  })]
2275
2566
  });
2276
- }, yn = {
2567
+ }, Nn = {
2277
2568
  root: "_root_165je_1",
2278
2569
  dot: "_dot_165je_13",
2279
2570
  dotActive: "_dotActive_165je_21",
2280
2571
  dotRemote: "_dotRemote_165je_25"
2281
- }, bn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
2282
- className: [yn.root, n ?? ""].filter(Boolean).join(" "),
2572
+ }, Pn = ({ location: e, status: t = "active", className: n }) => /* @__PURE__ */ a("span", {
2573
+ className: [Nn.root, n ?? ""].filter(Boolean).join(" "),
2283
2574
  children: [/* @__PURE__ */ i("span", {
2284
- className: [yn.dot, t === "active" ? yn.dotActive : yn.dotRemote].join(" "),
2575
+ className: [Nn.dot, t === "active" ? Nn.dotActive : Nn.dotRemote].join(" "),
2285
2576
  "aria-hidden": "true"
2286
2577
  }), e]
2287
- }), xn = {
2578
+ }), Fn = {
2288
2579
  root: "_root_15jaa_1",
2289
2580
  rootCard: "_rootCard_15jaa_9",
2290
2581
  rootRow: "_rootRow_15jaa_21",
@@ -2294,30 +2585,30 @@ var Ct = [
2294
2585
  description: "_description_15jaa_56",
2295
2586
  metaRow: "_metaRow_15jaa_65",
2296
2587
  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 }) => {
2588
+ }, 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
2589
  let p = d === "row", m = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
2299
- className: xn.titleGroup,
2590
+ className: Fn.titleGroup,
2300
2591
  children: [/* @__PURE__ */ i("p", {
2301
- className: xn.title,
2592
+ className: Fn.title,
2302
2593
  children: e
2303
2594
  }), /* @__PURE__ */ i("p", {
2304
- className: xn.description,
2595
+ className: Fn.description,
2305
2596
  children: t
2306
2597
  })]
2307
2598
  }), /* @__PURE__ */ a("div", {
2308
- className: xn.metaRow,
2599
+ className: Fn.metaRow,
2309
2600
  children: [
2310
- /* @__PURE__ */ i(jt, {
2601
+ /* @__PURE__ */ i(Gt, {
2311
2602
  variant: "accent",
2312
2603
  emphasis: "subtle",
2313
2604
  children: n
2314
2605
  }),
2315
- /* @__PURE__ */ i(jt, {
2606
+ /* @__PURE__ */ i(Gt, {
2316
2607
  variant: "neutral",
2317
2608
  emphasis: "subtle",
2318
2609
  children: o
2319
2610
  }),
2320
- /* @__PURE__ */ i(bn, {
2611
+ /* @__PURE__ */ i(Pn, {
2321
2612
  location: s,
2322
2613
  status: c
2323
2614
  })
@@ -2325,57 +2616,57 @@ var Ct = [
2325
2616
  })] });
2326
2617
  return p ? /* @__PURE__ */ a("div", {
2327
2618
  className: [
2328
- xn.root,
2329
- xn.rootRow,
2619
+ Fn.root,
2620
+ Fn.rootRow,
2330
2621
  f ?? ""
2331
2622
  ].filter(Boolean).join(" "),
2332
2623
  children: [/* @__PURE__ */ i("div", {
2333
- className: xn.rowLeft,
2624
+ className: Fn.rowLeft,
2334
2625
  children: m
2335
- }), /* @__PURE__ */ i(F, {
2626
+ }), /* @__PURE__ */ i(P, {
2336
2627
  variant: "secondary",
2337
2628
  size: "sm",
2338
- className: xn.applyBtn,
2629
+ className: Fn.applyBtn,
2339
2630
  onClick: l,
2340
2631
  children: u
2341
2632
  })]
2342
2633
  }) : /* @__PURE__ */ a("div", {
2343
2634
  className: [
2344
- xn.root,
2345
- xn.rootCard,
2635
+ Fn.root,
2636
+ Fn.rootCard,
2346
2637
  f ?? ""
2347
2638
  ].filter(Boolean).join(" "),
2348
- children: [m, /* @__PURE__ */ i(F, {
2639
+ children: [m, /* @__PURE__ */ i(P, {
2349
2640
  variant: "secondary",
2350
2641
  size: "sm",
2351
2642
  onClick: l,
2352
2643
  children: u
2353
2644
  })]
2354
2645
  });
2355
- }, Cn = {
2646
+ }, Ln = {
2356
2647
  root: "_root_3bf2n_1",
2357
2648
  rootCenter: "_rootCenter_3bf2n_9",
2358
2649
  rootLeft: "_rootLeft_3bf2n_14",
2359
2650
  title: "_title_3bf2n_19",
2360
2651
  subtitle: "_subtitle_3bf2n_28"
2361
- }, wn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
2652
+ }, Rn = ({ eyebrow: e, title: t, subtitle: n, align: r = "center", titleAs: o = "h2", className: s }) => /* @__PURE__ */ a("div", {
2362
2653
  className: [
2363
- Cn.root,
2364
- r === "left" ? Cn.rootLeft : Cn.rootCenter,
2654
+ Ln.root,
2655
+ r === "left" ? Ln.rootLeft : Ln.rootCenter,
2365
2656
  s ?? ""
2366
2657
  ].filter(Boolean).join(" "),
2367
2658
  children: [
2368
- e && /* @__PURE__ */ i(jt, {
2659
+ e && /* @__PURE__ */ i(Gt, {
2369
2660
  variant: "accent",
2370
2661
  emphasis: "subtle",
2371
2662
  children: e
2372
2663
  }),
2373
2664
  /* @__PURE__ */ i(o, {
2374
- className: Cn.title,
2665
+ className: Ln.title,
2375
2666
  children: t
2376
2667
  }),
2377
2668
  n && /* @__PURE__ */ i("p", {
2378
- className: Cn.subtitle,
2669
+ className: Ln.subtitle,
2379
2670
  children: n
2380
2671
  })
2381
2672
  ]
@@ -2392,7 +2683,7 @@ var Ct = [
2392
2683
  role: "_role_1ye9i_99",
2393
2684
  social: "_social_1ye9i_108",
2394
2685
  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", {
2686
+ }, zn = ({ image: e, imageAlt: t, name: n, role: r, location: o, locationStatus: s = "active", bio: c, socialLinks: l = [], className: u }) => /* @__PURE__ */ a("div", {
2396
2687
  className: [G.card, u ?? ""].filter(Boolean).join(" "),
2397
2688
  children: [/* @__PURE__ */ a("div", {
2398
2689
  className: G.imageWrap,
@@ -2402,7 +2693,7 @@ var Ct = [
2402
2693
  className: G.image
2403
2694
  }), /* @__PURE__ */ i("div", {
2404
2695
  className: G.locationBar,
2405
- children: /* @__PURE__ */ i(bn, {
2696
+ children: /* @__PURE__ */ i(Pn, {
2406
2697
  location: o,
2407
2698
  status: s,
2408
2699
  className: G.locationDot
@@ -2427,7 +2718,7 @@ var Ct = [
2427
2718
  href: e.href,
2428
2719
  onClick: e.onClick,
2429
2720
  "aria-label": e.label,
2430
- children: /* @__PURE__ */ i(gn, {
2721
+ children: /* @__PURE__ */ i(An, {
2431
2722
  icon: e.icon,
2432
2723
  size: "sm",
2433
2724
  variant: "subtle"
@@ -2439,7 +2730,7 @@ var Ct = [
2439
2730
  children: c
2440
2731
  })]
2441
2732
  })]
2442
- }), En = {
2733
+ }), Bn = {
2443
2734
  alert: "_alert_1hjs5_3",
2444
2735
  alert__icon: "_alert__icon_1hjs5_12",
2445
2736
  alert__content: "_alert__content_1hjs5_13",
@@ -2450,7 +2741,7 @@ var Ct = [
2450
2741
  "alert--warning": "_alert--warning_1hjs5_24",
2451
2742
  "alert--danger": "_alert--danger_1hjs5_27",
2452
2743
  "alert--neutral": "_alert--neutral_1hjs5_30"
2453
- }, Dn = {
2744
+ }, Vn = {
2454
2745
  info: /* @__PURE__ */ a(r, { children: [
2455
2746
  /* @__PURE__ */ i("circle", {
2456
2747
  cx: "12",
@@ -2524,15 +2815,15 @@ var Ct = [
2524
2815
  y2: "8"
2525
2816
  })
2526
2817
  ] })
2527
- }, On = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
2818
+ }, Hn = ({ color: e = "info", title: t, description: n, icon: r, className: o }) => /* @__PURE__ */ a("div", {
2528
2819
  role: "alert",
2529
2820
  className: [
2530
- En.alert,
2531
- En[`alert--${e}`],
2821
+ Bn.alert,
2822
+ Bn[`alert--${e}`],
2532
2823
  o ?? ""
2533
2824
  ].filter(Boolean).join(" "),
2534
2825
  children: [/* @__PURE__ */ i("span", {
2535
- className: En.alert__icon,
2826
+ className: Bn.alert__icon,
2536
2827
  "aria-hidden": "true",
2537
2828
  children: /* @__PURE__ */ i("svg", {
2538
2829
  viewBox: "0 0 24 24",
@@ -2543,15 +2834,15 @@ var Ct = [
2543
2834
  strokeLinejoin: "round",
2544
2835
  width: 18,
2545
2836
  height: 18,
2546
- children: r ?? Dn[e]
2837
+ children: r ?? Vn[e]
2547
2838
  })
2548
2839
  }), /* @__PURE__ */ a("div", {
2549
- className: En.alert__content,
2840
+ className: Bn.alert__content,
2550
2841
  children: [t && /* @__PURE__ */ i("div", {
2551
- className: En.alert__title,
2842
+ className: Bn.alert__title,
2552
2843
  children: t
2553
2844
  }), n && /* @__PURE__ */ i("div", {
2554
- className: En.alert__description,
2845
+ className: Bn.alert__description,
2555
2846
  children: n
2556
2847
  })]
2557
2848
  })]
@@ -2572,7 +2863,7 @@ var Ct = [
2572
2863
  card__footer: "_card__footer_6iftf_47",
2573
2864
  card__meta: "_card__meta_6iftf_48",
2574
2865
  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 }) => {
2866
+ }, 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
2867
  let h = e !== "compact", g = d || f;
2577
2868
  return /* @__PURE__ */ a("div", {
2578
2869
  onClick: p,
@@ -2625,7 +2916,7 @@ var Ct = [
2625
2916
  })] })
2626
2917
  ]
2627
2918
  });
2628
- }, An = {
2919
+ }, Wn = {
2629
2920
  breadcrumb: "_breadcrumb_tszff_3",
2630
2921
  list: "_list_tszff_5",
2631
2922
  item: "_item_tszff_15",
@@ -2634,12 +2925,12 @@ var Ct = [
2634
2925
  separator: "_separator_tszff_33",
2635
2926
  "list--button": "_list--button_tszff_38",
2636
2927
  chip: "_chip_tszff_41"
2637
- }, jn = {
2928
+ }, Gn = {
2638
2929
  highlight: "_highlight_1bp09_15",
2639
2930
  visible: "_visible_1bp09_24",
2640
2931
  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) {
2932
+ }, Kn = (e) => e.getAttribute("data-hover-item") === "off" || e.getAttribute("aria-disabled") === "true" || e.disabled === !0;
2933
+ function qn(e, t) {
2643
2934
  let n = 0, r = 0, i = e;
2644
2935
  for (; i && i !== t;) {
2645
2936
  n += i.offsetLeft, r += i.offsetTop;
@@ -2658,7 +2949,7 @@ function Nn(e, t) {
2658
2949
  tone: a.getPropertyValue("--hover-tone").trim()
2659
2950
  };
2660
2951
  }
2661
- function Pn() {
2952
+ function Jn() {
2662
2953
  let t = e.useRef(null), [n, r] = e.useState(null), a = e.useCallback((e) => {
2663
2954
  t.current = e, r(e);
2664
2955
  }, []), 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 +2958,7 @@ function Pn() {
2667
2958
  let n = t.current;
2668
2959
  if (!n) return;
2669
2960
  n !== u.current && (u.current = n, s.current = !1), o.current = e;
2670
- let r = Nn(e, n);
2961
+ let r = qn(e, n);
2671
2962
  if (s.current) {
2672
2963
  f(r);
2673
2964
  return;
@@ -2686,7 +2977,7 @@ function Pn() {
2686
2977
  if (!n) return;
2687
2978
  let r = e.target.closest("[data-hover-item]");
2688
2979
  if (!(!r || r.closest("[data-hover-group]") !== n)) {
2689
- if (Mn(r)) {
2980
+ if (Kn(r)) {
2690
2981
  _();
2691
2982
  return;
2692
2983
  }
@@ -2703,7 +2994,7 @@ function Pn() {
2703
2994
  _();
2704
2995
  return;
2705
2996
  }
2706
- f(Nn(t, e));
2997
+ f(qn(t, e));
2707
2998
  }
2708
2999
  }, r = new ResizeObserver(t);
2709
3000
  return r.observe(e), e.addEventListener("scroll", t, !0), () => {
@@ -2714,9 +3005,9 @@ function Pn() {
2714
3005
  ref: c,
2715
3006
  "aria-hidden": "true",
2716
3007
  className: [
2717
- jn.highlight,
2718
- p ? jn.visible : "",
2719
- h ? jn.glide : ""
3008
+ Gn.highlight,
3009
+ p ? Gn.visible : "",
3010
+ h ? Gn.glide : ""
2720
3011
  ].filter(Boolean).join(" "),
2721
3012
  style: d ? {
2722
3013
  transform: `translate(${d.x}px, ${d.y}px)`,
@@ -2726,7 +3017,7 @@ function Pn() {
2726
3017
  background: d.tone || void 0
2727
3018
  } : void 0
2728
3019
  }), x = e.useCallback((e) => {
2729
- e && !Mn(e) ? v(e) : _();
3020
+ e && !Kn(e) ? v(e) : _();
2730
3021
  }, [_, v]);
2731
3022
  return {
2732
3023
  ref: a,
@@ -2739,8 +3030,8 @@ function Pn() {
2739
3030
  showItem: x
2740
3031
  };
2741
3032
  }
2742
- var Fn = ({ children: e, style: t, ...n }) => {
2743
- let { ref: r, groupProps: i, highlight: o } = Pn();
3033
+ var Yn = ({ children: e, style: t, ...n }) => {
3034
+ let { ref: r, groupProps: i, highlight: o } = Jn();
2744
3035
  return /* @__PURE__ */ a("div", {
2745
3036
  ref: r,
2746
3037
  ...n,
@@ -2751,8 +3042,8 @@ var Fn = ({ children: e, style: t, ...n }) => {
2751
3042
  },
2752
3043
  children: [o, e]
2753
3044
  });
2754
- }, In = ({ size: e }) => /* @__PURE__ */ i("span", {
2755
- className: An.separator,
3045
+ }, Xn = ({ size: e }) => /* @__PURE__ */ i("span", {
3046
+ className: Wn.separator,
2756
3047
  "aria-hidden": "true",
2757
3048
  children: /* @__PURE__ */ i("svg", {
2758
3049
  viewBox: "0 0 24 24",
@@ -2765,23 +3056,23 @@ var Fn = ({ children: e, style: t, ...n }) => {
2765
3056
  height: e,
2766
3057
  children: /* @__PURE__ */ i("path", { d: "m9 18 6-6-6-6" })
2767
3058
  })
2768
- }), Ln = ({ items: e, variant: t = "text", className: n }) => {
2769
- let r = t === "button", o = Pn();
3059
+ }), Zn = ({ items: e, variant: t = "text", className: n }) => {
3060
+ let r = t === "button", o = Jn();
2770
3061
  return /* @__PURE__ */ i("nav", {
2771
3062
  "aria-label": "Breadcrumb",
2772
- className: [An.breadcrumb, n ?? ""].filter(Boolean).join(" "),
3063
+ className: [Wn.breadcrumb, n ?? ""].filter(Boolean).join(" "),
2773
3064
  children: /* @__PURE__ */ a("ol", {
2774
3065
  ref: o.ref,
2775
3066
  ...r ? o.groupProps : {},
2776
- className: [An.list, r ? An["list--button"] : ""].filter(Boolean).join(" "),
3067
+ className: [Wn.list, r ? Wn["list--button"] : ""].filter(Boolean).join(" "),
2777
3068
  children: [r && /* @__PURE__ */ i("li", {
2778
3069
  "aria-hidden": "true",
2779
3070
  style: { display: "contents" },
2780
3071
  children: o.highlight
2781
3072
  }), e.map((t, n) => {
2782
- let o = n === e.length - 1, s = r ? An.chip : o ? An.current : An.crumb;
3073
+ let o = n === e.length - 1, s = r ? Wn.chip : o ? Wn.current : Wn.crumb;
2783
3074
  return /* @__PURE__ */ a("li", {
2784
- className: An.item,
3075
+ className: Wn.item,
2785
3076
  children: [o || !t.href ? /* @__PURE__ */ i("span", {
2786
3077
  className: s,
2787
3078
  "data-hover-item": r ? "off" : void 0,
@@ -2792,26 +3083,26 @@ var Fn = ({ children: e, style: t, ...n }) => {
2792
3083
  "data-hover-item": "",
2793
3084
  className: s,
2794
3085
  children: t.label
2795
- }), !o && /* @__PURE__ */ i(In, { size: r ? 14 : 16 })]
3086
+ }), !o && /* @__PURE__ */ i(Xn, { size: r ? 14 : 16 })]
2796
3087
  }, n);
2797
3088
  })]
2798
3089
  })
2799
3090
  });
2800
- }, Rn = {
3091
+ }, Qn = {
2801
3092
  meta: "_meta_g1mpv_2",
2802
3093
  meta__icon: "_meta__icon_g1mpv_3",
2803
3094
  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(" "),
3095
+ }, $n = ({ icon: e, children: t, className: n }) => /* @__PURE__ */ a("span", {
3096
+ className: [Qn.meta, n ?? ""].filter(Boolean).join(" "),
2806
3097
  children: [/* @__PURE__ */ i("span", {
2807
- className: Rn.meta__icon,
3098
+ className: Qn.meta__icon,
2808
3099
  "aria-hidden": "true",
2809
3100
  children: e
2810
3101
  }), /* @__PURE__ */ i("span", {
2811
- className: Rn.meta__label,
3102
+ className: Qn.meta__label,
2812
3103
  children: t
2813
3104
  })]
2814
- }), Bn = {
3105
+ }), er = {
2815
3106
  composer: "_composer_1dwtx_2",
2816
3107
  "composer--typing": "_composer--typing_1dwtx_15",
2817
3108
  input: "_input_1dwtx_22",
@@ -2825,7 +3116,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
2825
3116
  row: "_row_1dwtx_36",
2826
3117
  icon: "_icon_1dwtx_37",
2827
3118
  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 }) => {
3119
+ }, 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
3120
  let p = t === "disabled", [m, h] = e.useState(""), [g, _] = e.useState(!1), [v, y] = e.useState({
2830
3121
  top: 0,
2831
3122
  right: 0
@@ -2875,29 +3166,29 @@ var Fn = ({ children: e, style: t, ...n }) => {
2875
3166
  c?.(x);
2876
3167
  }, [x, c]), /* @__PURE__ */ a("div", {
2877
3168
  className: [
2878
- Bn.composer,
2879
- Bn[`composer--${t}`],
3169
+ er.composer,
3170
+ er[`composer--${t}`],
2880
3171
  f ?? ""
2881
3172
  ].filter(Boolean).join(" "),
2882
3173
  children: [
2883
3174
  t === "uploading" && /* @__PURE__ */ a("div", {
2884
- className: Bn.upload,
3175
+ className: er.upload,
2885
3176
  children: [
2886
3177
  /* @__PURE__ */ i(b, {
2887
3178
  size: 16,
2888
3179
  strokeWidth: M(16),
2889
- className: Bn.upload__icon,
3180
+ className: er.upload__icon,
2890
3181
  "aria-hidden": "true"
2891
3182
  }),
2892
3183
  /* @__PURE__ */ a("div", {
2893
- className: Bn.upload__body,
3184
+ className: er.upload__body,
2894
3185
  children: [/* @__PURE__ */ i("span", {
2895
- className: Bn.upload__name,
3186
+ className: er.upload__name,
2896
3187
  children: l
2897
3188
  }), /* @__PURE__ */ i("div", {
2898
- className: Bn.upload__track,
3189
+ className: er.upload__track,
2899
3190
  children: /* @__PURE__ */ i("div", {
2900
- className: Bn.upload__fill,
3191
+ className: er.upload__fill,
2901
3192
  style: { width: `${u}%` }
2902
3193
  })
2903
3194
  })]
@@ -2991,7 +3282,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
2991
3282
  style: { display: "none" }
2992
3283
  }),
2993
3284
  /* @__PURE__ */ a("div", {
2994
- className: Bn.row,
3285
+ className: er.row,
2995
3286
  children: [
2996
3287
  /* @__PURE__ */ i(He, {
2997
3288
  icon: O,
@@ -3004,7 +3295,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
3004
3295
  /* @__PURE__ */ i("input", {
3005
3296
  ref: C,
3006
3297
  type: "text",
3007
- className: Bn.input,
3298
+ className: er.input,
3008
3299
  value: D,
3009
3300
  placeholder: p ? "You can't reply to this conversation" : r,
3010
3301
  disabled: p,
@@ -3090,7 +3381,7 @@ var Fn = ({ children: e, style: t, ...n }) => {
3090
3381
  })
3091
3382
  ]
3092
3383
  });
3093
- }, Hn = {
3384
+ }, nr = {
3094
3385
  wrapper: "_wrapper_1nmcn_3",
3095
3386
  "wrapper--disabled": "_wrapper--disabled_1nmcn_11",
3096
3387
  input: "_input_1nmcn_14",
@@ -3102,16 +3393,16 @@ var Fn = ({ children: e, style: t, ...n }) => {
3102
3393
  text__description: "_text__description_1nmcn_73",
3103
3394
  checkbox: "_checkbox_1nmcn_77",
3104
3395
  "wrapper--withDescription": "_wrapper--withDescription_1nmcn_81"
3105
- }, Un = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
3396
+ }, rr = e.forwardRef(({ label: t, description: n, indeterminate: r, disabled: o, id: s, className: c, ...l }, u) => {
3106
3397
  let d = e.useId(), f = s ?? d, p = e.useRef(null);
3107
3398
  return e.useImperativeHandle(u, () => p.current), e.useEffect(() => {
3108
3399
  p.current && (p.current.indeterminate = !!r);
3109
3400
  }, [r]), /* @__PURE__ */ a("label", {
3110
3401
  htmlFor: f,
3111
3402
  className: [
3112
- Hn.wrapper,
3113
- n ? Hn["wrapper--withDescription"] : "",
3114
- o ? Hn["wrapper--disabled"] : "",
3403
+ nr.wrapper,
3404
+ n ? nr["wrapper--withDescription"] : "",
3405
+ o ? nr["wrapper--disabled"] : "",
3115
3406
  c ?? ""
3116
3407
  ].filter(Boolean).join(" "),
3117
3408
  children: [
@@ -3120,14 +3411,14 @@ var Fn = ({ children: e, style: t, ...n }) => {
3120
3411
  id: f,
3121
3412
  type: "checkbox",
3122
3413
  disabled: o,
3123
- className: Hn.input,
3414
+ className: nr.input,
3124
3415
  ...l
3125
3416
  }),
3126
3417
  /* @__PURE__ */ a("span", {
3127
- className: Hn.box,
3418
+ className: nr.box,
3128
3419
  "aria-hidden": "true",
3129
3420
  children: [/* @__PURE__ */ i("svg", {
3130
- className: Hn.check,
3421
+ className: nr.check,
3131
3422
  width: 12,
3132
3423
  height: 12,
3133
3424
  viewBox: "0 0 24 24",
@@ -3137,22 +3428,22 @@ var Fn = ({ children: e, style: t, ...n }) => {
3137
3428
  strokeLinecap: "round",
3138
3429
  strokeLinejoin: "round",
3139
3430
  children: /* @__PURE__ */ i("polyline", { points: "20 6 9 17 4 12" })
3140
- }), /* @__PURE__ */ i("span", { className: Hn.dash })]
3431
+ }), /* @__PURE__ */ i("span", { className: nr.dash })]
3141
3432
  }),
3142
3433
  (t || n) && /* @__PURE__ */ a("span", {
3143
- className: Hn.text,
3434
+ className: nr.text,
3144
3435
  children: [t && /* @__PURE__ */ i("span", {
3145
- className: Hn.text__label,
3436
+ className: nr.text__label,
3146
3437
  children: t
3147
3438
  }), n && /* @__PURE__ */ i("span", {
3148
- className: Hn.text__description,
3439
+ className: nr.text__description,
3149
3440
  children: n
3150
3441
  })]
3151
3442
  })
3152
3443
  ]
3153
3444
  });
3154
3445
  });
3155
- Un.displayName = "Checkbox";
3446
+ rr.displayName = "Checkbox";
3156
3447
  var q = {
3157
3448
  item: "_item_1bf0e_2",
3158
3449
  "item--hover": "_item--hover_1bf0e_12",
@@ -3168,7 +3459,7 @@ var q = {
3168
3459
  item__preview: "_item__preview_1bf0e_31",
3169
3460
  item__typing: "_item__typing_1bf0e_36",
3170
3461
  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", {
3462
+ }, ir = ({ state: e = "default", avatar: t, name: n, timestamp: r, preview: o, unreadCount: c, onClick: l, className: u }) => /* @__PURE__ */ a("div", {
3172
3463
  role: "button",
3173
3464
  "data-hover-item": "",
3174
3465
  tabIndex: 0,
@@ -3222,12 +3513,12 @@ var q = {
3222
3513
  })]
3223
3514
  })]
3224
3515
  })]
3225
- }), Gn = {
3516
+ }), ar = {
3226
3517
  chart: "_chart_aiboa_2",
3227
3518
  center: "_center_aiboa_26",
3228
3519
  center__value: "_center__value_aiboa_35",
3229
3520
  center__caption: "_center__caption_aiboa_36"
3230
- }, Kn = {
3521
+ }, or = {
3231
3522
  sm: {
3232
3523
  h: 180,
3233
3524
  inner: 50,
@@ -3248,26 +3539,26 @@ var q = {
3248
3539
  inner: 98,
3249
3540
  outer: 142
3250
3541
  }
3251
- }, qn = ({ data: t, size: n = "md", centerValue: r, centerCaption: o, height: s, className: c }) => {
3542
+ }, sr = ({ data: t, size: n = "md", centerValue: r, centerCaption: o, height: s, className: c }) => {
3252
3543
  let [l, u] = e.useState(null), [d, f] = e.useState(null), p = (e) => {
3253
3544
  let t = e.currentTarget.getBoundingClientRect();
3254
3545
  f({
3255
3546
  x: e.clientX - t.left,
3256
3547
  y: e.clientY - t.top
3257
3548
  });
3258
- }, m = e.useRef(null), h = St(m), g = [
3549
+ }, m = e.useRef(null), h = It(m), g = [
3259
3550
  1,
3260
3551
  2,
3261
3552
  3,
3262
3553
  4,
3263
3554
  5
3264
- ].map((e) => h(`--color-chart-${e}`) ?? Ct[e - 1]), _ = {
3265
- ...Kn[n],
3266
- h: s ?? Kn[n].h
3555
+ ].map((e) => h(`--color-chart-${e}`) ?? Lt[e - 1]), _ = {
3556
+ ...or[n],
3557
+ h: s ?? or[n].h
3267
3558
  }, v = (_.outer - _.inner) / 2 - 7;
3268
3559
  return /* @__PURE__ */ a("div", {
3269
3560
  ref: m,
3270
- className: [Gn.chart, c ?? ""].filter(Boolean).join(" "),
3561
+ className: [ar.chart, c ?? ""].filter(Boolean).join(" "),
3271
3562
  style: { height: _.h },
3272
3563
  onMouseMove: p,
3273
3564
  children: [/* @__PURE__ */ i(xe, {
@@ -3292,29 +3583,29 @@ var q = {
3292
3583
  fillOpacity: l !== null && t !== l ? .45 : 1
3293
3584
  }, t))
3294
3585
  }), /* @__PURE__ */ i(Se, {
3295
- content: /* @__PURE__ */ i(Tt, {}),
3586
+ content: /* @__PURE__ */ i(zt, {}),
3296
3587
  wrapperStyle: { zIndex: 50 },
3297
3588
  position: d ?? void 0
3298
3589
  })] })
3299
3590
  }), (r || o) && /* @__PURE__ */ a("div", {
3300
- className: Gn.center,
3591
+ className: ar.center,
3301
3592
  children: [r && /* @__PURE__ */ i("span", {
3302
- className: Gn.center__value,
3593
+ className: ar.center__value,
3303
3594
  children: r
3304
3595
  }), o && /* @__PURE__ */ i("span", {
3305
- className: Gn.center__caption,
3596
+ className: ar.center__caption,
3306
3597
  children: o
3307
3598
  })]
3308
3599
  })]
3309
3600
  });
3310
- }, Jn = {
3601
+ }, cr = {
3311
3602
  empty: "_empty_1sxwx_2",
3312
3603
  empty__chip: "_empty__chip_1sxwx_12",
3313
3604
  "empty__chip--error": "_empty__chip--error_1sxwx_22",
3314
3605
  empty__title: "_empty__title_1sxwx_23",
3315
3606
  empty__desc: "_empty__desc_1sxwx_31",
3316
3607
  empty__action: "_empty__action_1sxwx_39"
3317
- }, Yn = {
3608
+ }, lr = {
3318
3609
  "no-data": {
3319
3610
  icon: /* @__PURE__ */ i(C, {
3320
3611
  size: 18,
@@ -3339,34 +3630,34 @@ var q = {
3339
3630
  title: "Couldn't load data",
3340
3631
  description: "Something went wrong while fetching records."
3341
3632
  }
3342
- }, Xn = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
3343
- let l = Yn[e];
3633
+ }, ur = ({ type: e = "no-data", title: t, description: n, actionLabel: r, onAction: o, icon: s, className: c }) => {
3634
+ let l = lr[e];
3344
3635
  return /* @__PURE__ */ a("div", {
3345
- className: [Jn.empty, c ?? ""].filter(Boolean).join(" "),
3636
+ className: [cr.empty, c ?? ""].filter(Boolean).join(" "),
3346
3637
  role: "status",
3347
3638
  children: [
3348
3639
  /* @__PURE__ */ i("span", {
3349
- className: [Jn.empty__chip, Jn[`empty__chip--${e}`]].join(" "),
3640
+ className: [cr.empty__chip, cr[`empty__chip--${e}`]].join(" "),
3350
3641
  "aria-hidden": "true",
3351
3642
  children: s ?? l.icon
3352
3643
  }),
3353
3644
  /* @__PURE__ */ i("p", {
3354
- className: Jn.empty__title,
3645
+ className: cr.empty__title,
3355
3646
  children: t ?? l.title
3356
3647
  }),
3357
3648
  /* @__PURE__ */ i("p", {
3358
- className: Jn.empty__desc,
3649
+ className: cr.empty__desc,
3359
3650
  children: n ?? l.description
3360
3651
  }),
3361
3652
  r && /* @__PURE__ */ i("button", {
3362
3653
  type: "button",
3363
- className: Jn.empty__action,
3654
+ className: cr.empty__action,
3364
3655
  onClick: o,
3365
3656
  children: r
3366
3657
  })
3367
3658
  ]
3368
3659
  });
3369
- }, Zn = {
3660
+ }, dr = {
3370
3661
  chip: "_chip_1qnyq_2",
3371
3662
  chip__lead: "_chip__lead_1qnyq_20",
3372
3663
  chip__trail: "_chip__trail_1qnyq_20",
@@ -3374,50 +3665,50 @@ var q = {
3374
3665
  chip__remove: "_chip__remove_1qnyq_29",
3375
3666
  "chip--add": "_chip--add_1qnyq_38",
3376
3667
  "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 }) => {
3668
+ }, 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
3669
  let [c, l] = e.useState(!1), u = e.useRef(void 0);
3379
3670
  e.useEffect(() => () => window.clearTimeout(u.current), []);
3380
3671
  let f = () => {
3381
3672
  if (!c) {
3382
- if ($n()) {
3673
+ if (pr()) {
3383
3674
  o?.();
3384
3675
  return;
3385
3676
  }
3386
3677
  l(!0), u.current = window.setTimeout(() => {
3387
3678
  o?.(), l(!1);
3388
- }, Qn);
3679
+ }, fr);
3389
3680
  }
3390
3681
  };
3391
3682
  return /* @__PURE__ */ a("button", {
3392
3683
  type: "button",
3393
3684
  onClick: r,
3394
3685
  className: [
3395
- Zn.chip,
3396
- Zn[`chip--${t}`],
3397
- c ? Zn["chip--leaving"] : "",
3686
+ dr.chip,
3687
+ dr[`chip--${t}`],
3688
+ c ? dr["chip--leaving"] : "",
3398
3689
  s ?? ""
3399
3690
  ].filter(Boolean).join(" "),
3400
3691
  children: [
3401
3692
  t === "add" && /* @__PURE__ */ i(k, {
3402
3693
  size: 14,
3403
3694
  strokeWidth: M(14),
3404
- className: Zn.chip__lead,
3695
+ className: dr.chip__lead,
3405
3696
  "aria-hidden": "true"
3406
3697
  }),
3407
3698
  /* @__PURE__ */ i("span", {
3408
- className: Zn.chip__label,
3699
+ className: dr.chip__label,
3409
3700
  children: n
3410
3701
  }),
3411
3702
  t === "default" && /* @__PURE__ */ i(d, {
3412
3703
  size: 14,
3413
3704
  strokeWidth: M(14),
3414
- className: Zn.chip__trail,
3705
+ className: dr.chip__trail,
3415
3706
  "aria-hidden": "true"
3416
3707
  }),
3417
3708
  t === "active" && /* @__PURE__ */ i("span", {
3418
3709
  role: "button",
3419
3710
  "aria-label": "Remove filter",
3420
- className: Zn.chip__remove,
3711
+ className: dr.chip__remove,
3421
3712
  onClick: (e) => {
3422
3713
  e.stopPropagation(), f();
3423
3714
  },
@@ -3429,7 +3720,7 @@ var q = {
3429
3720
  })
3430
3721
  ]
3431
3722
  });
3432
- }, tr = {
3723
+ }, hr = {
3433
3724
  field: "_field_1nyia_10",
3434
3725
  field__label: "_field__label_1nyia_18",
3435
3726
  field__description: "_field__description_1nyia_26",
@@ -3443,80 +3734,80 @@ var q = {
3443
3734
  input__control: "_input__control_1nyia_81",
3444
3735
  input__icon: "_input__icon_1nyia_110",
3445
3736
  "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) => {
3737
+ }, gr = 16, _r = (t) => e.isValidElement(t) ? e.cloneElement(t, {
3738
+ size: gr,
3739
+ strokeWidth: M(gr)
3740
+ }) : 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
3741
  let h = e.useId(), g = d ?? h, _ = !!r;
3451
3742
  return /* @__PURE__ */ a("div", {
3452
- className: [tr.field, f ?? ""].filter(Boolean).join(" "),
3743
+ className: [hr.field, f ?? ""].filter(Boolean).join(" "),
3453
3744
  children: [
3454
3745
  t && /* @__PURE__ */ i("label", {
3455
3746
  htmlFor: g,
3456
- className: tr.field__label,
3747
+ className: hr.field__label,
3457
3748
  children: t
3458
3749
  }),
3459
3750
  /* @__PURE__ */ a("div", {
3460
3751
  className: [
3461
- tr.input,
3462
- tr[`input--${o}`],
3463
- _ ? tr["input--error"] : "",
3464
- u ? tr["input--disabled"] : ""
3752
+ hr.input,
3753
+ hr[`input--${o}`],
3754
+ _ ? hr["input--error"] : "",
3755
+ u ? hr["input--disabled"] : ""
3465
3756
  ].filter(Boolean).join(" "),
3466
3757
  children: [
3467
3758
  c && /* @__PURE__ */ i("span", {
3468
- className: tr.input__icon,
3759
+ className: hr.input__icon,
3469
3760
  "aria-hidden": "true",
3470
- children: rr(c)
3761
+ children: _r(c)
3471
3762
  }),
3472
3763
  /* @__PURE__ */ i("input", {
3473
3764
  ref: m,
3474
3765
  id: g,
3475
- className: tr.input__control,
3766
+ className: hr.input__control,
3476
3767
  disabled: u,
3477
3768
  "aria-invalid": _ || void 0,
3478
3769
  "aria-describedby": n || r ? `${g}-desc` : void 0,
3479
3770
  ...p
3480
3771
  }),
3481
3772
  l && /* @__PURE__ */ i("span", {
3482
- className: tr.input__icon,
3773
+ className: hr.input__icon,
3483
3774
  "aria-hidden": "true",
3484
- children: rr(l)
3775
+ children: _r(l)
3485
3776
  })
3486
3777
  ]
3487
3778
  }),
3488
3779
  (n || r) && /* @__PURE__ */ i("span", {
3489
3780
  id: `${g}-desc`,
3490
- className: _ ? tr.field__error : tr.field__description,
3781
+ className: _ ? hr.field__error : hr.field__description,
3491
3782
  children: r || n
3492
3783
  })
3493
3784
  ]
3494
3785
  });
3495
3786
  });
3496
- ir.displayName = "Input";
3497
- var ar = { chart: "_chart_18fgd_2" }, or = {
3787
+ vr.displayName = "Input";
3788
+ var yr = { chart: "_chart_18fgd_2" }, br = {
3498
3789
  sm: 180,
3499
3790
  md: 240,
3500
3791
  lg: 320,
3501
3792
  xl: 420
3502
- }, sr = /* @__PURE__ */ new Set([
3793
+ }, xr = /* @__PURE__ */ new Set([
3503
3794
  "dots",
3504
3795
  "custom-dots",
3505
3796
  "dots-colors",
3506
3797
  "label",
3507
3798
  "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 = [
3799
+ ]), Sr = ({ data: t, series: n, xKey: r = "label", variant: o = "default", labelKey: s, size: c = "md", height: l, showLegend: u, className: d }) => {
3800
+ let f = e.useRef(null), p = It(f), m = [
3510
3801
  1,
3511
3802
  2,
3512
3803
  3,
3513
3804
  4,
3514
3805
  5
3515
- ].map((e) => p(`--color-chart-${e}`) ?? Ct[e - 1]), h = [
3806
+ ].map((e) => p(`--color-chart-${e}`) ?? Lt[e - 1]), h = [
3516
3807
  m[1],
3517
3808
  m[0],
3518
3809
  ...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) => {
3810
+ ], 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
3811
  let { cx: n, cy: r } = t;
3521
3812
  return /* @__PURE__ */ a("g", {
3522
3813
  stroke: e,
@@ -3569,10 +3860,10 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3569
3860
  };
3570
3861
  return /* @__PURE__ */ i("div", {
3571
3862
  ref: f,
3572
- className: [ar.chart, d ?? ""].filter(Boolean).join(" "),
3863
+ className: [yr.chart, d ?? ""].filter(Boolean).join(" "),
3573
3864
  children: /* @__PURE__ */ i(xe, {
3574
3865
  width: "100%",
3575
- height: l ?? or[c],
3866
+ height: l ?? br[c],
3576
3867
  children: /* @__PURE__ */ a(me, {
3577
3868
  data: t,
3578
3869
  margin: {
@@ -3600,7 +3891,7 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3600
3891
  stroke: p("--color-border-default") ?? "#dbdad7",
3601
3892
  strokeWidth: 1
3602
3893
  },
3603
- content: /* @__PURE__ */ i(Tt, {}),
3894
+ content: /* @__PURE__ */ i(zt, {}),
3604
3895
  wrapperStyle: { zIndex: 50 }
3605
3896
  }),
3606
3897
  u && /* @__PURE__ */ i(fe, { wrapperStyle: {
@@ -3633,24 +3924,24 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3633
3924
  })
3634
3925
  })
3635
3926
  });
3636
- }, lr = {
3927
+ }, Cr = {
3637
3928
  menu: "_menu_1cx61_2",
3638
3929
  divider: "_divider_1cx61_26"
3639
- }, ur = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
3640
- let i = Pn();
3930
+ }, wr = ({ children: e, minWidth: t = 208, className: n, ...r }) => {
3931
+ let i = Jn();
3641
3932
  return /* @__PURE__ */ a("div", {
3642
3933
  ref: i.ref,
3643
3934
  ...i.groupProps,
3644
3935
  role: "menu",
3645
3936
  "aria-label": r["aria-label"],
3646
3937
  style: { minWidth: t },
3647
- className: [lr.menu, n ?? ""].filter(Boolean).join(" "),
3938
+ className: [Cr.menu, n ?? ""].filter(Boolean).join(" "),
3648
3939
  children: [i.highlight, e]
3649
3940
  });
3650
- }, dr = () => /* @__PURE__ */ i("div", {
3651
- className: lr.divider,
3941
+ }, Tr = () => /* @__PURE__ */ i("div", {
3942
+ className: Cr.divider,
3652
3943
  role: "separator"
3653
- }), fr = {
3944
+ }), Er = {
3654
3945
  item: "_item_1ezjp_2",
3655
3946
  item__icon: "_item__icon_1ezjp_27",
3656
3947
  item__label: "_item__label_1ezjp_28",
@@ -3659,7 +3950,7 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3659
3950
  "item--checked": "_item--checked_1ezjp_38",
3660
3951
  "item--disabled": "_item--disabled_1ezjp_39",
3661
3952
  "item--destructive": "_item--destructive_1ezjp_40"
3662
- }, pr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: o, className: s }) => {
3953
+ }, Dr = ({ state: e = "default", icon: t, shortcut: n, children: r, onSelect: o, className: s }) => {
3663
3954
  let c = e === "disabled";
3664
3955
  return /* @__PURE__ */ a("div", {
3665
3956
  role: "menuitem",
@@ -3672,28 +3963,28 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3672
3963
  c || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o?.());
3673
3964
  },
3674
3965
  className: [
3675
- fr.item,
3676
- fr[`item--${e}`],
3966
+ Er.item,
3967
+ Er[`item--${e}`],
3677
3968
  s ?? ""
3678
3969
  ].filter(Boolean).join(" "),
3679
3970
  children: [
3680
3971
  t && /* @__PURE__ */ i("span", {
3681
- className: fr.item__icon,
3972
+ className: Er.item__icon,
3682
3973
  "aria-hidden": "true",
3683
3974
  children: t
3684
3975
  }),
3685
3976
  /* @__PURE__ */ i("span", {
3686
- className: fr.item__label,
3977
+ className: Er.item__label,
3687
3978
  children: r
3688
3979
  }),
3689
3980
  n && /* @__PURE__ */ i("kbd", {
3690
- className: fr.item__shortcut,
3981
+ className: Er.item__shortcut,
3691
3982
  children: n
3692
3983
  }),
3693
3984
  e === "checked" && /* @__PURE__ */ i(l, {
3694
3985
  size: 16,
3695
3986
  strokeWidth: M(16),
3696
- className: fr.item__check,
3987
+ className: Er.item__check,
3697
3988
  "aria-hidden": "true"
3698
3989
  })
3699
3990
  ]
@@ -3722,7 +4013,7 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3722
4013
  foot__receipt: "_foot__receipt_1q1m5_32",
3723
4014
  system: "_system_1q1m5_34",
3724
4015
  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 }) => {
4016
+ }, 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
4017
  if (e === "system") return /* @__PURE__ */ i("div", {
3727
4018
  className: [J.system, h ?? ""].filter(Boolean).join(" "),
3728
4019
  children: /* @__PURE__ */ i("span", {
@@ -3808,19 +4099,19 @@ var ar = { chart: "_chart_18fgd_2" }, or = {
3808
4099
  ]
3809
4100
  })]
3810
4101
  });
3811
- }, hr = {
4102
+ }, kr = {
3812
4103
  pagination: "_pagination_e1j7r_2",
3813
4104
  page: "_page_e1j7r_9",
3814
4105
  arrow: "_arrow_e1j7r_9",
3815
4106
  "page--active": "_page--active_e1j7r_26",
3816
4107
  ellipsis: "_ellipsis_e1j7r_40"
3817
- }, gr = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
3818
- function _r(e, t, n) {
4108
+ }, Ar = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n);
4109
+ function jr(e, t, n) {
3819
4110
  let r = n * 2 + 5;
3820
- if (e <= r) return gr(1, e);
4111
+ if (e <= r) return Ar(1, e);
3821
4112
  let i = r - 2, a = n * 2 + 1;
3822
4113
  if (t <= i) return [
3823
- ...gr(1, i),
4114
+ ...Ar(1, i),
3824
4115
  "end-ellipsis",
3825
4116
  e
3826
4117
  ];
@@ -3828,19 +4119,19 @@ function _r(e, t, n) {
3828
4119
  return s <= e - 3 ? [
3829
4120
  1,
3830
4121
  "start-ellipsis",
3831
- ...gr(o, s),
4122
+ ...Ar(o, s),
3832
4123
  "end-ellipsis",
3833
4124
  e
3834
4125
  ] : [
3835
4126
  1,
3836
4127
  "start-ellipsis",
3837
- ...gr(e - i + 1, e)
4128
+ ...Ar(e - i + 1, e)
3838
4129
  ];
3839
4130
  }
3840
- var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
4131
+ var Mr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s }) => {
3841
4132
  let c = e.useRef(null);
3842
4133
  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;
4134
+ let l = Math.min(Math.max(n, 1), t), u = Math.max(0, o), d = jr(t, l, u), m = c.current;
3844
4135
  if (m && m.total === t && m.siblings === u) {
3845
4136
  let e = m.tokens, n = e.includes(l), r = l === 1 && e[1] === "start-ellipsis" || l === t && e[e.length - 2] === "end-ellipsis";
3846
4137
  n && !r && (d = e);
@@ -3850,12 +4141,12 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3850
4141
  siblings: u,
3851
4142
  tokens: d
3852
4143
  }, /* @__PURE__ */ a("nav", {
3853
- className: [hr.pagination, s ?? ""].filter(Boolean).join(" "),
4144
+ className: [kr.pagination, s ?? ""].filter(Boolean).join(" "),
3854
4145
  "aria-label": "Pagination",
3855
4146
  children: [
3856
4147
  /* @__PURE__ */ i("button", {
3857
4148
  type: "button",
3858
- className: hr.arrow,
4149
+ className: kr.arrow,
3859
4150
  disabled: l <= 1,
3860
4151
  onClick: () => r(l - 1),
3861
4152
  "aria-label": "Previous page",
@@ -3866,19 +4157,19 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3866
4157
  }),
3867
4158
  d.map((e) => typeof e == "number" ? /* @__PURE__ */ i("button", {
3868
4159
  type: "button",
3869
- className: [hr.page, e === l ? hr["page--active"] : ""].filter(Boolean).join(" "),
4160
+ className: [kr.page, e === l ? kr["page--active"] : ""].filter(Boolean).join(" "),
3870
4161
  "aria-current": e === l ? "page" : void 0,
3871
4162
  "aria-label": `Page ${e}`,
3872
4163
  onClick: () => e !== l && r(e),
3873
4164
  children: e
3874
4165
  }, e) : /* @__PURE__ */ i("span", {
3875
- className: hr.ellipsis,
4166
+ className: kr.ellipsis,
3876
4167
  "aria-hidden": "true",
3877
4168
  children: "…"
3878
4169
  }, e)),
3879
4170
  /* @__PURE__ */ i("button", {
3880
4171
  type: "button",
3881
- className: hr.arrow,
4172
+ className: kr.arrow,
3882
4173
  disabled: l >= t,
3883
4174
  onClick: () => r(l + 1),
3884
4175
  "aria-label": "Next page",
@@ -3889,14 +4180,14 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3889
4180
  })
3890
4181
  ]
3891
4182
  });
3892
- }, yr = {
4183
+ }, Nr = {
3893
4184
  track: "_track_1br5v_2",
3894
4185
  segment: "_segment_1br5v_12",
3895
4186
  "segment--active": "_segment--active_1br5v_38",
3896
4187
  thumb: "_thumb_1br5v_44",
3897
4188
  "thumb--animated": "_thumb--animated_1br5v_62",
3898
4189
  "track--fullWidth": "_track--fullWidth_1br5v_68"
3899
- }, br = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
4190
+ }, Pr = ({ options: t, value: n, defaultValue: r, onChange: o, fullWidth: s, className: c }) => {
3900
4191
  let l = n !== void 0, [u, d] = e.useState(r ?? t[0]?.value), f = l ? n : u, p = (e) => {
3901
4192
  l || d(e), o?.(e);
3902
4193
  }, m = e.useRef(null), h = e.useRef({}), [g, _] = e.useState(null), [v, y] = e.useState(!1);
@@ -3917,13 +4208,13 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3917
4208
  ref: m,
3918
4209
  role: "tablist",
3919
4210
  className: [
3920
- yr.track,
3921
- s ? yr["track--fullWidth"] : "",
4211
+ Nr.track,
4212
+ s ? Nr["track--fullWidth"] : "",
3922
4213
  c ?? ""
3923
4214
  ].filter(Boolean).join(" "),
3924
4215
  children: [g && /* @__PURE__ */ i("span", {
3925
4216
  "aria-hidden": "true",
3926
- className: [yr.thumb, v ? yr["thumb--animated"] : ""].filter(Boolean).join(" "),
4217
+ className: [Nr.thumb, v ? Nr["thumb--animated"] : ""].filter(Boolean).join(" "),
3927
4218
  style: {
3928
4219
  transform: `translateX(${g.left}px)`,
3929
4220
  width: g.width
@@ -3937,7 +4228,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3937
4228
  role: "tab",
3938
4229
  type: "button",
3939
4230
  "aria-selected": t,
3940
- className: [yr.segment, t ? yr["segment--active"] : ""].filter(Boolean).join(" "),
4231
+ className: [Nr.segment, t ? Nr["segment--active"] : ""].filter(Boolean).join(" "),
3941
4232
  onClick: () => p(e.value),
3942
4233
  children: e.label
3943
4234
  }, e.value);
@@ -3973,7 +4264,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
3973
4264
  option__check: "_option__check_1b512_179",
3974
4265
  optionHighlight: "_optionHighlight_1b512_151",
3975
4266
  "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 }) => {
4267
+ }, 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
4268
  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
4269
  e.useLayoutEffect(() => {
3979
4270
  let e = ee.current[D];
@@ -4004,7 +4295,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4004
4295
  });
4005
4296
  return e.observe(j.current), () => e.disconnect();
4006
4297
  }, [T]);
4007
- let ae = nt(k, T), [oe, se] = e.useState(null);
4298
+ let ae = rt(k, T), [oe, se] = e.useState(null);
4008
4299
  e.useEffect(() => {
4009
4300
  C && E(!0);
4010
4301
  }, [C]), e.useLayoutEffect(() => {
@@ -4179,27 +4470,27 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4179
4470
  })
4180
4471
  ]
4181
4472
  });
4182
- }, Sr = {
4473
+ }, Ir = {
4183
4474
  sidebar: "_sidebar_alxv4_4",
4184
4475
  "sidebar--collapsed": "_sidebar--collapsed_alxv4_23"
4185
- }, Cr = ({ collapsed: e = !1, children: t, className: n }) => {
4186
- let r = Pn();
4476
+ }, Lr = ({ collapsed: e = !1, children: t, className: n }) => {
4477
+ let r = Jn();
4187
4478
  return /* @__PURE__ */ a("nav", {
4188
4479
  ref: r.ref,
4189
4480
  ...r.groupProps,
4190
4481
  className: [
4191
- Sr.sidebar,
4192
- e ? Sr["sidebar--collapsed"] : "",
4482
+ Ir.sidebar,
4483
+ e ? Ir["sidebar--collapsed"] : "",
4193
4484
  n ?? ""
4194
4485
  ].filter(Boolean).join(" "),
4195
4486
  "data-collapsed": e,
4196
4487
  children: [r.highlight, t]
4197
4488
  });
4198
- }, wr = { divider: "_divider_1oof5_1" }, Tr = () => /* @__PURE__ */ i("div", {
4199
- className: wr.divider,
4489
+ }, Rr = { divider: "_divider_1oof5_1" }, zr = () => /* @__PURE__ */ i("div", {
4490
+ className: Rr.divider,
4200
4491
  role: "separator"
4201
- }), Er = { groupLabel: "_groupLabel_62q1j_2" }, Dr = ({ children: e }) => /* @__PURE__ */ i("div", {
4202
- className: Er.groupLabel,
4492
+ }), Br = { groupLabel: "_groupLabel_62q1j_2" }, Vr = ({ children: e }) => /* @__PURE__ */ i("div", {
4493
+ className: Br.groupLabel,
4203
4494
  children: e
4204
4495
  }), X = {
4205
4496
  header: "_header_6bhip_2",
@@ -4215,7 +4506,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4215
4506
  "header__text--collapsed": "_header__text--collapsed_6bhip_70",
4216
4507
  header__title: "_header__title_6bhip_74",
4217
4508
  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", {
4509
+ }, Hr = ({ type: e = "brand", title: t, subtitle: n, logo: r, collapsed: o, onToggle: s, toggleIcon: c = D }) => /* @__PURE__ */ a("div", {
4219
4510
  className: [
4220
4511
  X.header,
4221
4512
  e === "workspace" ? X["header--workspace"] : "",
@@ -4291,7 +4582,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4291
4582
  item__label: "_item__label_1arxb_142",
4292
4583
  "item__label--collapsed": "_item__label--collapsed_1arxb_151",
4293
4584
  "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 }) => {
4585
+ }, 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
4586
  let g = n && o, _ = n && !o, v = [
4296
4587
  Z.item,
4297
4588
  g ? Z["item--active"] : "",
@@ -4346,7 +4637,7 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4346
4637
  ...b,
4347
4638
  children: y
4348
4639
  });
4349
- }, Ar = {
4640
+ }, Wr = {
4350
4641
  promo: "_promo_1524z_4",
4351
4642
  promo__head: "_promo__head_1524z_20",
4352
4643
  promo__icon: "_promo__icon_1524z_21",
@@ -4354,14 +4645,14 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4354
4645
  promo__dismiss: "_promo__dismiss_1524z_23",
4355
4646
  promo__desc: "_promo__desc_1524z_30",
4356
4647
  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(" "),
4648
+ }, Gr = ({ type: e = "upgrade", title: t, description: n, ctaLabel: r, onCta: o, onDismiss: s, icon: c = te }) => /* @__PURE__ */ a("div", {
4649
+ className: [Wr.promo, Wr[`promo--${e}`]].join(" "),
4359
4650
  children: [
4360
4651
  /* @__PURE__ */ a("div", {
4361
- className: Ar.promo__head,
4652
+ className: Wr.promo__head,
4362
4653
  children: [
4363
4654
  /* @__PURE__ */ i("span", {
4364
- className: Ar.promo__icon,
4655
+ className: Wr.promo__icon,
4365
4656
  "aria-hidden": "true",
4366
4657
  children: /* @__PURE__ */ i(c, {
4367
4658
  size: 16,
@@ -4369,12 +4660,12 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4369
4660
  })
4370
4661
  }),
4371
4662
  /* @__PURE__ */ i("span", {
4372
- className: Ar.promo__title,
4663
+ className: Wr.promo__title,
4373
4664
  children: t
4374
4665
  }),
4375
4666
  s && /* @__PURE__ */ i("button", {
4376
4667
  type: "button",
4377
- className: Ar.promo__dismiss,
4668
+ className: Wr.promo__dismiss,
4378
4669
  onClick: s,
4379
4670
  "aria-label": "Dismiss",
4380
4671
  children: /* @__PURE__ */ i(se, {
@@ -4385,36 +4676,36 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4385
4676
  ]
4386
4677
  }),
4387
4678
  n && /* @__PURE__ */ i("p", {
4388
- className: Ar.promo__desc,
4679
+ className: Wr.promo__desc,
4389
4680
  children: n
4390
4681
  }),
4391
4682
  r && /* @__PURE__ */ i("button", {
4392
4683
  type: "button",
4393
- className: Ar.promo__cta,
4684
+ className: Wr.promo__cta,
4394
4685
  onClick: o,
4395
4686
  children: r
4396
4687
  })
4397
4688
  ]
4398
- }), Mr = {
4689
+ }), Kr = {
4399
4690
  subItem: "_subItem_1sz05_2",
4400
4691
  "subItem--disabled": "_subItem--disabled_1sz05_26",
4401
4692
  "subItem--active": "_subItem--active_1sz05_27",
4402
4693
  subItem__dot: "_subItem__dot_1sz05_31",
4403
4694
  subItem__label: "_subItem__label_1sz05_41"
4404
- }, Nr = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
4695
+ }, qr = ({ label: e, active: t, disabled: n, onClick: o, href: s }) => {
4405
4696
  let c = {
4406
4697
  className: [
4407
- Mr.subItem,
4408
- t ? Mr["subItem--active"] : "",
4409
- n ? Mr["subItem--disabled"] : ""
4698
+ Kr.subItem,
4699
+ t ? Kr["subItem--active"] : "",
4700
+ n ? Kr["subItem--disabled"] : ""
4410
4701
  ].filter(Boolean).join(" "),
4411
4702
  "data-hover-item": "",
4412
4703
  "aria-current": t ? "page" : void 0
4413
4704
  }, l = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ i("span", {
4414
- className: Mr.subItem__dot,
4705
+ className: Kr.subItem__dot,
4415
4706
  "aria-hidden": "true"
4416
4707
  }), /* @__PURE__ */ i("span", {
4417
- className: Mr.subItem__label,
4708
+ className: Kr.subItem__label,
4418
4709
  children: e
4419
4710
  })] });
4420
4711
  return s && !n ? /* @__PURE__ */ i("a", {
@@ -4428,49 +4719,49 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4428
4719
  ...c,
4429
4720
  children: l
4430
4721
  });
4431
- }, Pr = {
4722
+ }, Jr = {
4432
4723
  skeleton: "_skeleton_94hr3_9",
4433
4724
  "skeleton-shimmer": "_skeleton-shimmer_94hr3_1",
4434
4725
  "skeleton--text": "_skeleton--text_94hr3_22",
4435
4726
  "skeleton--rect": "_skeleton--rect_94hr3_29",
4436
4727
  "skeleton--circle": "_skeleton--circle_94hr3_35"
4437
- }, Fr = ({ variant: e = "text", width: t, height: n, className: r }) => {
4728
+ }, Yr = ({ variant: e = "text", width: t, height: n, className: r }) => {
4438
4729
  let a = {};
4439
4730
  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
4731
  "aria-hidden": "true",
4441
4732
  className: [
4442
- Pr.skeleton,
4443
- Pr[`skeleton--${e}`],
4733
+ Jr.skeleton,
4734
+ Jr[`skeleton--${e}`],
4444
4735
  r ?? ""
4445
4736
  ].filter(Boolean).join(" "),
4446
4737
  style: a
4447
4738
  });
4448
- }, Ir = {
4739
+ }, Xr = {
4449
4740
  field: "_field_u7te8_3",
4450
4741
  header: "_header_u7te8_4",
4451
4742
  label: "_label_u7te8_5",
4452
4743
  value: "_value_u7te8_6",
4453
4744
  slider: "_slider_u7te8_8",
4454
4745
  "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) => {
4746
+ }, 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
4747
  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
4748
  S.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
4458
4749
  }, w = e.useRef(null), T = e.useRef(void 0);
4459
4750
  e.useEffect(() => () => window.clearTimeout(T.current), []);
4460
4751
  let E = (e) => {
4461
4752
  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));
4753
+ 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
4754
  };
4464
4755
  return /* @__PURE__ */ a("div", {
4465
- className: [Ir.field, d ?? ""].filter(Boolean).join(" "),
4756
+ className: [Xr.field, d ?? ""].filter(Boolean).join(" "),
4466
4757
  children: [(t || n) && /* @__PURE__ */ a("div", {
4467
- className: Ir.header,
4758
+ className: Xr.header,
4468
4759
  children: [t && /* @__PURE__ */ i("label", {
4469
4760
  htmlFor: g,
4470
- className: Ir.label,
4761
+ className: Xr.label,
4471
4762
  children: t
4472
4763
  }), n && /* @__PURE__ */ i("span", {
4473
- className: Ir.value,
4764
+ className: Xr.value,
4474
4765
  children: b
4475
4766
  })]
4476
4767
  }), /* @__PURE__ */ i("input", {
@@ -4484,19 +4775,19 @@ var vr = ({ total: t, page: n, onPageChange: r, siblings: o = 1, className: s })
4484
4775
  disabled: l,
4485
4776
  onChange: (e) => {
4486
4777
  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 = {
4778
+ 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
4779
  v: t,
4489
4780
  t: n
4490
4781
  }, s === void 0 && y(t), f?.(e);
4491
4782
  },
4492
- className: Ir.slider,
4783
+ className: Xr.slider,
4493
4784
  style: { "--pct": `${x}%` },
4494
4785
  ...p
4495
4786
  })]
4496
4787
  });
4497
4788
  });
4498
- zr.displayName = "Slider";
4499
- var Br = {
4789
+ $r.displayName = "Slider";
4790
+ var ei = {
4500
4791
  card: "_card_1qi93_4",
4501
4792
  "card--featured": "_card--featured_1qi93_24",
4502
4793
  card__head: "_card__head_1qi93_26",
@@ -4509,19 +4800,19 @@ var Br = {
4509
4800
  "card--trend-up": "_card--trend-up_1qi93_68",
4510
4801
  "card--trend-down": "_card--trend-down_1qi93_69",
4511
4802
  card__description: "_card__description_1qi93_72"
4512
- }, Vr = {
4803
+ }, ti = {
4513
4804
  up: ae,
4514
4805
  down: ie,
4515
4806
  flat: w
4516
- }, Hr = {
4807
+ }, ni = {
4517
4808
  up: "success",
4518
4809
  down: "danger",
4519
4810
  flat: "neutral"
4520
- }, Ur = ({ data: e }) => {
4811
+ }, ri = ({ data: e }) => {
4521
4812
  if (e.length < 2) return null;
4522
4813
  let t = Math.min(...e), n = Math.max(...e) - t || 1;
4523
4814
  return /* @__PURE__ */ i("svg", {
4524
- className: Wr,
4815
+ className: ii,
4525
4816
  viewBox: "0 0 100 32",
4526
4817
  preserveAspectRatio: "none",
4527
4818
  "aria-hidden": "true",
@@ -4534,21 +4825,21 @@ var Br = {
4534
4825
  strokeLinecap: "round"
4535
4826
  })
4536
4827
  });
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;
4828
+ }, 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 }) => {
4829
+ let m = ti[s], h = (l === "icon" || l === "featured") && u;
4539
4830
  return /* @__PURE__ */ a("div", {
4540
4831
  className: [
4541
- Br.card,
4542
- Br[`card--${l}`],
4543
- Br[`card--trend-${s}`],
4832
+ ei.card,
4833
+ ei[`card--${l}`],
4834
+ ei[`card--trend-${s}`],
4544
4835
  p ?? ""
4545
4836
  ].filter(Boolean).join(" "),
4546
4837
  children: [
4547
4838
  /* @__PURE__ */ a("div", {
4548
- className: Br.card__head,
4839
+ className: ei.card__head,
4549
4840
  children: [
4550
4841
  h && /* @__PURE__ */ i("span", {
4551
- className: Br.card__icon,
4842
+ className: ei.card__icon,
4552
4843
  "aria-hidden": "true",
4553
4844
  children: /* @__PURE__ */ i(u, {
4554
4845
  size: 18,
@@ -4556,12 +4847,12 @@ var Br = {
4556
4847
  })
4557
4848
  }),
4558
4849
  /* @__PURE__ */ i("span", {
4559
- className: Br.card__title,
4850
+ className: ei.card__title,
4560
4851
  children: e
4561
4852
  }),
4562
4853
  d && /* @__PURE__ */ i("button", {
4563
4854
  type: "button",
4564
- className: Br.card__menu,
4855
+ className: ei.card__menu,
4565
4856
  onClick: f,
4566
4857
  "aria-label": "More options",
4567
4858
  children: /* @__PURE__ */ i(T, {
@@ -4572,21 +4863,21 @@ var Br = {
4572
4863
  ]
4573
4864
  }),
4574
4865
  /* @__PURE__ */ i("div", {
4575
- className: Br.card__value,
4866
+ className: ei.card__value,
4576
4867
  children: t
4577
4868
  }),
4578
- r && /* @__PURE__ */ i(Ur, { data: r }),
4869
+ r && /* @__PURE__ */ i(ri, { data: r }),
4579
4870
  (o || n) && /* @__PURE__ */ a("div", {
4580
- className: Br.card__meta,
4581
- children: [o && /* @__PURE__ */ i(jt, {
4582
- variant: c ?? Hr[s],
4871
+ className: ei.card__meta,
4872
+ children: [o && /* @__PURE__ */ i(Gt, {
4873
+ variant: c ?? ni[s],
4583
4874
  leftIcon: /* @__PURE__ */ i(m, {
4584
4875
  size: 12,
4585
4876
  strokeWidth: 2
4586
4877
  }),
4587
4878
  children: o
4588
4879
  }), n && /* @__PURE__ */ i("p", {
4589
- className: Br.card__description,
4880
+ className: ei.card__description,
4590
4881
  children: n
4591
4882
  })]
4592
4883
  })
@@ -4620,18 +4911,18 @@ var Br = {
4620
4911
  "bodyRow--dropTarget": "_bodyRow--dropTarget_9nqt2_228",
4621
4912
  dragCell: "_dragCell_9nqt2_235",
4622
4913
  dragHandle: "_dragHandle_9nqt2_251"
4623
- }, Kr = 640;
4624
- function qr(t) {
4914
+ }, oi = 640;
4915
+ function si(t) {
4625
4916
  let [n, r] = e.useState(!1);
4626
4917
  return e.useEffect(() => {
4627
4918
  if (t !== "auto") return;
4628
- let e = window.matchMedia(`(max-width: ${Kr}px)`);
4919
+ let e = window.matchMedia(`(max-width: ${oi}px)`);
4629
4920
  r(e.matches);
4630
4921
  let n = (e) => r(e.matches);
4631
4922
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
4632
4923
  }, [t]), t === "default" ? "default" : t === "stacked" || n ? "stacked" : "default";
4633
4924
  }
4634
- var Jr = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
4925
+ var ci = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
4635
4926
  let s = e.useRef(null);
4636
4927
  return e.useEffect(() => {
4637
4928
  s.current && (s.current.indeterminate = !!n);
@@ -4662,10 +4953,10 @@ var Jr = ({ checked: t, indeterminate: n, onChange: r, label: o }) => {
4662
4953
  })]
4663
4954
  });
4664
4955
  };
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) => {
4956
+ 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 }) {
4957
+ let m = si(f), h = o !== void 0, [g, _] = e.useState([]), v = h ? o : g, y = (e) => {
4667
4958
  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 = () => {
4959
+ }, 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
4960
  if (C === null || T === null || C === T) {
4670
4961
  w(null), E(null);
4671
4962
  return;
@@ -4690,7 +4981,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4690
4981
  ].filter(Boolean).join(" "),
4691
4982
  children: [r && /* @__PURE__ */ i("div", {
4692
4983
  className: Q.card__selectRow,
4693
- children: /* @__PURE__ */ i(Jr, {
4984
+ children: /* @__PURE__ */ i(ci, {
4694
4985
  checked: o,
4695
4986
  onChange: () => A(n),
4696
4987
  label: `Select row ${n + 1}`
@@ -4726,7 +5017,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4726
5017
  }),
4727
5018
  r && /* @__PURE__ */ i("th", {
4728
5019
  className: Q.checkCell,
4729
- children: /* @__PURE__ */ i(Jr, {
5020
+ children: /* @__PURE__ */ i(ci, {
4730
5021
  checked: b,
4731
5022
  indeterminate: S,
4732
5023
  onChange: k,
@@ -4779,7 +5070,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4779
5070
  }),
4780
5071
  r && /* @__PURE__ */ i("td", {
4781
5072
  className: Q.checkCell,
4782
- children: /* @__PURE__ */ i(Jr, {
5073
+ children: /* @__PURE__ */ i(ci, {
4783
5074
  checked: o,
4784
5075
  onChange: () => A(n),
4785
5076
  label: `Select row ${n + 1}`
@@ -4796,7 +5087,7 @@ function Yr({ columns: t, rows: n, selectable: r, selectedRows: o, onSelectionCh
4796
5087
  })]
4797
5088
  });
4798
5089
  }
4799
- var Xr = {
5090
+ var ui = {
4800
5091
  tabs: "_tabs_1122j_3",
4801
5092
  "tabs--borderless": "_tabs--borderless_1122j_16",
4802
5093
  "tabs--fill": "_tabs--fill_1122j_21",
@@ -4805,7 +5096,7 @@ var Xr = {
4805
5096
  "tab--active": "_tab--active_1122j_63",
4806
5097
  indicator: "_indicator_1122j_74",
4807
5098
  "indicator--animated": "_indicator--animated_1122j_88"
4808
- }, Zr = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
5099
+ }, di = ({ items: t, value: n, defaultValue: r, onChange: o, bordered: s = !0, fill: c = !1, className: l }) => {
4809
5100
  let u = n !== void 0, [d, f] = e.useState(r ?? t[0]?.value), p = u ? n : d, m = (e) => {
4810
5101
  u || f(e), o?.(e);
4811
5102
  }, h = e.useRef(null), g = e.useRef({}), [_, v] = e.useState(null), [y, b] = e.useState(!1);
@@ -4826,9 +5117,9 @@ var Xr = {
4826
5117
  ref: h,
4827
5118
  role: "tablist",
4828
5119
  className: [
4829
- Xr.tabs,
4830
- s ? "" : Xr["tabs--borderless"],
4831
- c ? Xr["tabs--fill"] : "",
5120
+ ui.tabs,
5121
+ s ? "" : ui["tabs--borderless"],
5122
+ c ? ui["tabs--fill"] : "",
4832
5123
  l ?? ""
4833
5124
  ].filter(Boolean).join(" "),
4834
5125
  children: [t.map((e) => {
@@ -4842,9 +5133,9 @@ var Xr = {
4842
5133
  "aria-selected": t,
4843
5134
  disabled: e.disabled,
4844
5135
  className: [
4845
- Xr.tab,
4846
- t ? Xr["tab--active"] : "",
4847
- e.disabled ? Xr["tab--disabled"] : ""
5136
+ ui.tab,
5137
+ t ? ui["tab--active"] : "",
5138
+ e.disabled ? ui["tab--disabled"] : ""
4848
5139
  ].filter(Boolean).join(" "),
4849
5140
  onClick: () => m(e.value),
4850
5141
  children: [n && /* @__PURE__ */ i(n, {
@@ -4855,14 +5146,14 @@ var Xr = {
4855
5146
  }, e.value);
4856
5147
  }), _ && /* @__PURE__ */ i("span", {
4857
5148
  "aria-hidden": "true",
4858
- className: [Xr.indicator, y ? Xr["indicator--animated"] : ""].filter(Boolean).join(" "),
5149
+ className: [ui.indicator, y ? ui["indicator--animated"] : ""].filter(Boolean).join(" "),
4859
5150
  style: {
4860
5151
  transform: `translateX(${_.left}px)`,
4861
5152
  width: _.width
4862
5153
  }
4863
5154
  })]
4864
5155
  });
4865
- }, Qr = {
5156
+ }, fi = {
4866
5157
  wrapper: "_wrapper_w6wtp_8",
4867
5158
  bubble: "_bubble_w6wtp_8",
4868
5159
  bubble__title: "_bubble__title_w6wtp_46",
@@ -4884,7 +5175,7 @@ var Xr = {
4884
5175
  "caret--center-left": "_caret--center-left_w6wtp_121",
4885
5176
  "bubble--center-right": "_bubble--center-right_w6wtp_131",
4886
5177
  "caret--center-right": "_caret--center-right_w6wtp_139"
4887
- }, $r = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
5178
+ }, pi = ({ title: t, subtitle: n, pointer: r = "top-center", children: o, className: s }) => {
4888
5179
  let [c, l] = e.useState(!1);
4889
5180
  return e.useEffect(() => {
4890
5181
  let e = (e) => {
@@ -4892,24 +5183,24 @@ var Xr = {
4892
5183
  };
4893
5184
  return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
4894
5185
  }, []), /* @__PURE__ */ a("span", {
4895
- className: [Qr.wrapper, s ?? ""].filter(Boolean).join(" "),
5186
+ className: [fi.wrapper, s ?? ""].filter(Boolean).join(" "),
4896
5187
  "data-dismissed": c || void 0,
4897
5188
  onMouseLeave: () => l(!1),
4898
5189
  onBlur: () => l(!1),
4899
5190
  children: [o, /* @__PURE__ */ a("span", {
4900
5191
  role: "tooltip",
4901
- className: [Qr.bubble, Qr[`bubble--${r}`]].join(" "),
5192
+ className: [fi.bubble, fi[`bubble--${r}`]].join(" "),
4902
5193
  children: [
4903
5194
  /* @__PURE__ */ i("span", {
4904
- className: Qr.bubble__title,
5195
+ className: fi.bubble__title,
4905
5196
  children: t
4906
5197
  }),
4907
5198
  n && /* @__PURE__ */ i("span", {
4908
- className: Qr.bubble__subtitle,
5199
+ className: fi.bubble__subtitle,
4909
5200
  children: n
4910
5201
  }),
4911
5202
  /* @__PURE__ */ i("span", {
4912
- className: [Qr.caret, Qr[`caret--${r}`]].join(" "),
5203
+ className: [fi.caret, fi[`caret--${r}`]].join(" "),
4913
5204
  "aria-hidden": "true"
4914
5205
  })
4915
5206
  ]
@@ -4938,8 +5229,8 @@ var Xr = {
4938
5229
  "bar__left--search": "_bar__left--search_yqi1k_84",
4939
5230
  bar__accountChevron: "_bar__accountChevron_yqi1k_98",
4940
5231
  "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);
5232
+ }, 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 }) => {
5233
+ let C = Jn(), w = Jn(), T = t === "md" ? 20 : 18, D = M(T);
4943
5234
  return /* @__PURE__ */ i("header", {
4944
5235
  className: [
4945
5236
  $.bar,
@@ -5040,4 +5331,4 @@ var Xr = {
5040
5331
  });
5041
5332
  };
5042
5333
  //#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 };
5334
+ 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 };