@mt-gloss/ui 0.0.39 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  import { jsxs as d, jsx as e, Fragment as Ge } from "react/jsx-runtime";
2
- import q, { useId as Le, useState as O, useCallback as S, createContext as Yt, useContext as Ut, useRef as se, useEffect as ie, useMemo as ee, useSyncExternalStore as ss, useReducer as is, forwardRef as os, useImperativeHandle as ls } from "react";
2
+ import q, { useId as Le, useState as O, useCallback as S, createContext as Yt, useContext as Ut, useRef as ie, useEffect as oe, useMemo as ee, useSyncExternalStore as ss, useReducer as is, forwardRef as os, useImperativeHandle as ls } from "react";
3
3
  import { S as J, E as Xe, C as B, h as cs, R as Se, k as ds, l as us, m as ms, aj as ps, P as fs, s as gs, ac as hs, ak as ve, Q as bs, V as qn, W as Zn, X as ys, Y as vs, _ as _s, $ as xs, a0 as Ns, a1 as Ss, a4 as Cs, a5 as ws, a6 as ks, ab as Ds, a7 as Is, a8 as Ts, O as Es, N as Ms, i as Ps, j as Bs, a2 as Rs, a3 as zs, n as As, t as $s, y as Fs, v as Os, U as bt, z as Ls, A as Hs, w as Ws, D as Gs, x as Vs, ah as js, ai as Ks, F as Ys, G as Us, H as Xs, I as qs, J as Zs, K as Js, L as Qs, M as ei, c as he, ad as Ht, e as Jn, d as kt, g as qe, Z as Qn, B as ti, af as ri, b as ea, T as Ae, ae as ni, ag as _n } from "./UIContext-C3E-k7HI.js";
4
4
  import { formatTrend as ai, isStatusModeEnabled as si, formatValue as or, getValueFontSize as xn, getDateRangeForPreset as je, formatDateRangeSmart as mt, isInRange as ii, isSameDay as Qt, formatMarketDates as oi, DEFAULT_MARKET_PRESETS as er, isMarketActive as xt, detectPreset as tr, getDateRangeDisplayInfo as $t, toUppercasePresetId as rr, generateMarketId as li, ROLLING_OPTIONS as Nr, PERIOD_OPTIONS as Sr } from "@mt-gloss/utils";
5
5
  import { useGridApiRef as ci, DataGridPro as di } from "@mui/x-data-grid-pro";
6
- import { Chip as Wt, Tooltip as ft, MenuItem as Gt, Menu as ui, Box as ae, Popper as mi, Paper as pi, MenuList as fi, ListItemText as gi, IconButton as Ue, Select as Nn, Typography as Ie, Divider as hi, Button as rt, Collapse as bi, Popover as yi, Dialog as vi, DialogTitle as _i, DialogContent as xi, TextField as nr, DialogActions as Ni, Tabs as Si, Tab as Ci } from "@mui/material";
6
+ import { Chip as Wt, Tooltip as ft, MenuItem as Gt, Menu as ui, Box as se, Popper as mi, Paper as pi, MenuList as fi, ListItemText as gi, IconButton as Ue, Select as Nn, Typography as Ie, Divider as hi, Button as rt, Collapse as bi, Popover as yi, Dialog as vi, DialogTitle as _i, DialogContent as xi, TextField as nr, DialogActions as Ni, Tabs as Si, Tab as Ci } from "@mui/material";
7
7
  import wi from "@mui/icons-material/Person";
8
8
  import ki from "@mui/icons-material/Business";
9
9
  import Di from "@mui/icons-material/BarChart";
@@ -48,10 +48,10 @@ import { restrictToParentElement as mo } from "@dnd-kit/modifiers";
48
48
  import po from "@mui/icons-material/ShowChart";
49
49
  import fo from "@mui/icons-material/TableChart";
50
50
  import go from "@mui/icons-material/Refresh";
51
- import { useFloating as aa, autoUpdate as ho, offset as bo, flip as yo, shift as vo, useDismiss as sa, useInteractions as ia, FloatingPortal as oa, useClick as _o, FloatingFocusManager as xo } from "@floating-ui/react";
52
- import No from "@mui/icons-material/Undo";
51
+ import { useFloating as aa, autoUpdate as ho, offset as bo, flip as yo, shift as vo, size as _o, useDismiss as sa, useInteractions as ia, FloatingPortal as oa, useClick as xo, FloatingFocusManager as No } from "@floating-ui/react";
52
+ import So from "@mui/icons-material/Undo";
53
53
  import { z as ye } from "zod";
54
- const So = {
54
+ const Co = {
55
55
  primary: {
56
56
  bg: B.BrandPrimary,
57
57
  color: B.TextInverse,
@@ -80,13 +80,13 @@ const So = {
80
80
  borderColor: "transparent",
81
81
  elevation: Xe.ButtonDefault
82
82
  }
83
- }, Co = {
83
+ }, wo = {
84
84
  xs: { padding: J.Xs, paddingX: J.Sm, fontSize: "0.75rem", fontWeight: "500", minHeight: "24px", gap: J.Xs },
85
85
  sm: { padding: J.Xs, paddingX: J.Sm, fontSize: "0.8125rem", fontWeight: "500", minHeight: "30px", gap: J.Xs },
86
86
  md: { padding: J.Sm, paddingX: J.Md, fontSize: "0.875rem", fontWeight: "500", minHeight: "36px", gap: J.Sm },
87
87
  lg: { padding: J.Sm, paddingX: J.Lg, fontSize: "0.9375rem", fontWeight: "500", minHeight: "42px", gap: J.Sm },
88
88
  xl: { padding: J.Md, paddingX: J.Xl, fontSize: "1rem", fontWeight: "500", minHeight: "48px", gap: J.Md }
89
- }, wo = {
89
+ }, ko = {
90
90
  radius: Se.Md
91
91
  };
92
92
  function De(r) {
@@ -108,9 +108,9 @@ function De(r) {
108
108
  } = r, _ = { ...b };
109
109
  delete _.className, delete _.style, delete _.definition;
110
110
  const v = {
111
- ...wo,
112
- ...So[t],
113
- ...Co[n]
111
+ ...ko,
112
+ ...Co[t],
113
+ ...wo[n]
114
114
  };
115
115
  c && (v.display = "flex");
116
116
  const h = [
@@ -140,7 +140,7 @@ function De(r) {
140
140
  );
141
141
  }
142
142
  De.displayName = "PresetButton";
143
- const ko = q.createContext({
143
+ const Do = q.createContext({
144
144
  isInGroup: !1
145
145
  }), la = q.forwardRef(
146
146
  ({
@@ -163,20 +163,20 @@ const ko = q.createContext({
163
163
  variant: s,
164
164
  isInGroup: !0
165
165
  };
166
- return /* @__PURE__ */ e(ko.Provider, { value: u, children: /* @__PURE__ */ e("div", { ref: c, className: l, role: "group", children: r }) });
166
+ return /* @__PURE__ */ e(Do.Provider, { value: u, children: /* @__PURE__ */ e("div", { ref: c, className: l, role: "group", children: r }) });
167
167
  }
168
168
  );
169
169
  la.displayName = "ButtonGroup";
170
- const Do = {
170
+ const Io = {
171
171
  default: { trackBorder: B.BorderDefault },
172
172
  error: { trackBorder: B.BorderError }
173
- }, Io = {
173
+ }, To = {
174
174
  xs: { trackSize: "14px", trackRadius: "2px" },
175
175
  sm: { trackSize: "16px", trackRadius: "3px" },
176
176
  md: { trackSize: "18px", trackRadius: "3px" },
177
177
  lg: { trackSize: "20px", trackRadius: "4px" },
178
178
  xl: { trackSize: "24px", trackRadius: "4px" }
179
- }, To = {
179
+ }, Eo = {
180
180
  trackBg: B.BgSurface,
181
181
  checkColor: B.TextInverse
182
182
  }, ot = q.forwardRef(
@@ -202,9 +202,9 @@ const Do = {
202
202
  },
203
203
  [w, u, m]
204
204
  ), g = {
205
- ...To,
206
- ...Do[n],
207
- ...Io[a]
205
+ ...Eo,
206
+ ...Io[n],
207
+ ...To[a]
208
208
  };
209
209
  (k || i) && (g.trackBg = B.BrandPrimary, g.trackBorder = B.BrandPrimary);
210
210
  const E = [
@@ -239,10 +239,10 @@ const Do = {
239
239
  );
240
240
  ot.displayName = "PresetCheckbox";
241
241
  const ca = Yt(null);
242
- function Eo() {
242
+ function Mo() {
243
243
  return Ut(ca);
244
244
  }
245
- function Mo({
245
+ function Po({
246
246
  value: r,
247
247
  defaultValue: t = [],
248
248
  onChange: n,
@@ -302,10 +302,10 @@ function Mo({
302
302
  l && /* @__PURE__ */ e("div", { className: `gloss-checkbox-group__helper ${u === "error" ? "gloss-checkbox-group__helper--error" : ""}`, children: l })
303
303
  ] }) });
304
304
  }
305
- Mo.displayName = "CheckboxGroup";
306
- const Po = q.forwardRef(
305
+ Po.displayName = "CheckboxGroup";
306
+ const Bo = q.forwardRef(
307
307
  ({ value: r, ...t }, n) => {
308
- const a = Eo();
308
+ const a = Mo();
309
309
  return a ? /* @__PURE__ */ e(
310
310
  ot,
311
311
  {
@@ -322,17 +322,17 @@ const Po = q.forwardRef(
322
322
  ) : /* @__PURE__ */ e(ot, { ref: n, value: r, ...t });
323
323
  }
324
324
  );
325
- Po.displayName = "GroupCheckbox";
326
- const Bo = {
325
+ Bo.displayName = "GroupCheckbox";
326
+ const Ro = {
327
327
  default: { trackBorder: B.BorderDefault },
328
328
  error: { trackBorder: B.BorderError }
329
- }, Ro = {
329
+ }, zo = {
330
330
  xs: { trackSize: "14px" },
331
331
  sm: { trackSize: "16px" },
332
332
  md: { trackSize: "18px" },
333
333
  lg: { trackSize: "20px" },
334
334
  xl: { trackSize: "24px" }
335
- }, zo = {
335
+ }, Ao = {
336
336
  trackBg: B.BgSurface,
337
337
  dotColor: B.BrandPrimary
338
338
  }, dr = q.forwardRef(
@@ -351,9 +351,9 @@ const Bo = {
351
351
  value: f,
352
352
  id: y
353
353
  } = r, b = {
354
- ...zo,
355
- ...Bo[n],
356
- ...Ro[a]
354
+ ...Ao,
355
+ ...Ro[n],
356
+ ...zo[a]
357
357
  };
358
358
  c && (b.trackBorder = B.BrandPrimary);
359
359
  const _ = [
@@ -389,10 +389,10 @@ const Bo = {
389
389
  );
390
390
  dr.displayName = "PresetRadio";
391
391
  const da = Yt(null);
392
- function Ao() {
392
+ function $o() {
393
393
  return Ut(da);
394
394
  }
395
- function $o({
395
+ function Fo({
396
396
  value: r,
397
397
  defaultValue: t,
398
398
  onChange: n,
@@ -451,10 +451,10 @@ function $o({
451
451
  l && /* @__PURE__ */ e("div", { className: `gloss-radio-group__helper ${u === "error" ? "gloss-radio-group__helper--error" : ""}`, children: l })
452
452
  ] }) });
453
453
  }
454
- $o.displayName = "RadioGroup";
455
- const Fo = q.forwardRef(
454
+ Fo.displayName = "RadioGroup";
455
+ const Oo = q.forwardRef(
456
456
  ({ value: r, ...t }, n) => {
457
- const a = Ao();
457
+ const a = $o();
458
458
  return a ? /* @__PURE__ */ e(
459
459
  dr,
460
460
  {
@@ -471,18 +471,18 @@ const Fo = q.forwardRef(
471
471
  ) : /* @__PURE__ */ e(dr, { ref: n, value: r, name: "", ...t });
472
472
  }
473
473
  );
474
- Fo.displayName = "GroupRadio";
475
- const Oo = {
474
+ Oo.displayName = "GroupRadio";
475
+ const Lo = {
476
476
  default: B.BrandPrimary,
477
477
  success: "var(--gloss-color-green-600)",
478
478
  error: "var(--gloss-color-red-600)"
479
- }, Lo = {
479
+ }, Ho = {
480
480
  xs: { trackWidth: "28px", trackHeight: "16px", thumbSize: "12px" },
481
481
  sm: { trackWidth: "34px", trackHeight: "18px", thumbSize: "14px" },
482
482
  md: { trackWidth: "40px", trackHeight: "22px", thumbSize: "18px" },
483
483
  lg: { trackWidth: "48px", trackHeight: "26px", thumbSize: "22px" },
484
484
  xl: { trackWidth: "56px", trackHeight: "30px", thumbSize: "26px" }
485
- }, Ho = q.forwardRef(
485
+ }, Wo = q.forwardRef(
486
486
  (r, t) => {
487
487
  const {
488
488
  variant: n = "default",
@@ -504,9 +504,9 @@ const Oo = {
504
504
  [C, m, p]
505
505
  ), k = {
506
506
  trackBg: B.Gray300,
507
- trackBgActive: Oo[n],
507
+ trackBgActive: Lo[n],
508
508
  thumbBg: B.White,
509
- ...Lo[a]
509
+ ...Ho[a]
510
510
  }, I = [
511
511
  "gloss-preset-toggle",
512
512
  `gloss-preset-toggle--${n}`,
@@ -530,12 +530,12 @@ const Oo = {
530
530
  ] });
531
531
  }
532
532
  );
533
- Ho.displayName = "PresetToggle";
534
- const Wo = {
533
+ Wo.displayName = "PresetToggle";
534
+ const Go = {
535
535
  default: { color: B.TextLink },
536
536
  muted: { color: B.TextSecondary },
537
537
  destructive: { color: B.TextError }
538
- }, Go = {
538
+ }, Vo = {
539
539
  xs: { fontSize: "0.6875rem" },
540
540
  sm: { fontSize: "0.75rem" },
541
541
  md: { fontSize: "0.875rem" },
@@ -559,8 +559,8 @@ const Wo = {
559
559
  } = r, b = { ...y };
560
560
  delete b.className, delete b.style, delete b.definition;
561
561
  const _ = {
562
- ...Wo[n],
563
- ...Go[a],
562
+ ...Go[n],
563
+ ...Vo[a],
564
564
  underline: c
565
565
  }, v = [
566
566
  "gloss-preset-link",
@@ -595,7 +595,7 @@ const Wo = {
595
595
  }
596
596
  );
597
597
  Vt.displayName = "PresetLink";
598
- const Vo = {
598
+ const jo = {
599
599
  default: {
600
600
  bg: B.BgMuted,
601
601
  activeBg: B.BgSurface,
@@ -606,13 +606,13 @@ const Vo = {
606
606
  activeBg: B.BgSurface,
607
607
  borderColor: B.BorderDefault
608
608
  }
609
- }, jo = {
609
+ }, Ko = {
610
610
  xs: { padding: "1px", fontSize: "0.6875rem" },
611
611
  sm: { padding: "2px", fontSize: "0.75rem" },
612
612
  md: { padding: "2px", fontSize: "0.8125rem" },
613
613
  lg: { padding: "3px", fontSize: "0.875rem" },
614
614
  xl: { padding: "4px", fontSize: "0.9375rem" }
615
- }, Ko = {
615
+ }, Yo = {
616
616
  radius: Se.Md
617
617
  };
618
618
  function ua(r) {
@@ -626,9 +626,9 @@ function ua(r) {
626
626
  } = r;
627
627
  ({ ...i });
628
628
  const c = {
629
- ...Ko,
630
- ...Vo[t],
631
- ...jo[n]
629
+ ...Yo,
630
+ ...jo[t],
631
+ ...Ko[n]
632
632
  }, l = [
633
633
  "gloss-preset-segmented-control",
634
634
  `gloss-preset-segmented-control--${t}`,
@@ -638,20 +638,20 @@ function ua(r) {
638
638
  return /* @__PURE__ */ e(fs, { definition: c, className: l, disabled: a, children: o });
639
639
  }
640
640
  ua.displayName = "PresetSegmentedControl";
641
- const Yo = {
641
+ const Uo = {
642
642
  xs: { trackHeight: "2px", thumbSize: "12px" },
643
643
  sm: { trackHeight: "3px", thumbSize: "14px" },
644
644
  md: { trackHeight: "4px", thumbSize: "16px" },
645
645
  lg: { trackHeight: "6px", thumbSize: "20px" },
646
646
  xl: { trackHeight: "8px", thumbSize: "24px" }
647
- }, Uo = {
647
+ }, Xo = {
648
648
  trackBg: B.Gray200,
649
649
  trackActiveBg: B.BrandPrimary,
650
650
  thumbBg: B.BgSurface,
651
651
  thumbBorder: `2px solid ${B.BrandPrimary}`,
652
652
  thumbShadow: "0 1px 3px rgba(0, 0, 0, 0.12)"
653
653
  };
654
- function Xo(r) {
654
+ function qo(r) {
655
655
  const {
656
656
  size: t = "md",
657
657
  disabled: n,
@@ -661,8 +661,8 @@ function Xo(r) {
661
661
  } = r;
662
662
  ({ ...o });
663
663
  const i = {
664
- ...Uo,
665
- ...Yo[t]
664
+ ...Xo,
665
+ ...Uo[t]
666
666
  }, c = [
667
667
  "gloss-preset-slider",
668
668
  `gloss-preset-slider--${t}`,
@@ -679,20 +679,20 @@ function Xo(r) {
679
679
  }
680
680
  );
681
681
  }
682
- Xo.displayName = "PresetSlider";
683
- const qo = {
682
+ qo.displayName = "PresetSlider";
683
+ const Zo = {
684
684
  xs: { trackHeight: "2px", thumbSize: "12px" },
685
685
  sm: { trackHeight: "3px", thumbSize: "14px" },
686
686
  md: { trackHeight: "4px", thumbSize: "16px" },
687
687
  lg: { trackHeight: "6px", thumbSize: "20px" },
688
688
  xl: { trackHeight: "8px", thumbSize: "24px" }
689
- }, Zo = {
689
+ }, Jo = {
690
690
  trackBg: B.Gray200,
691
691
  trackActiveBg: B.BrandPrimary,
692
692
  thumbBg: B.BgSurface,
693
693
  thumbBorder: `2px solid ${B.BrandPrimary}`,
694
694
  thumbShadow: "0 1px 3px rgba(0, 0, 0, 0.12)"
695
- }, Jo = q.forwardRef(
695
+ }, Qo = q.forwardRef(
696
696
  (r, t) => {
697
697
  const {
698
698
  size: n = "md",
@@ -713,7 +713,7 @@ const qo = {
713
713
  helperText: h,
714
714
  id: C,
715
715
  name: T
716
- } = r, w = Le(), k = C || w, I = se(null), [g, E] = O(s), [x, D] = O(null), N = a !== void 0, R = N ? a : g, z = (R[0] - c) / (l - c) * 100, L = (R[1] - c) / (l - c) * 100, P = S(($) => {
716
+ } = r, w = Le(), k = C || w, I = ie(null), [g, E] = O(s), [x, D] = O(null), N = a !== void 0, R = N ? a : g, z = (R[0] - c) / (l - c) * 100, L = (R[1] - c) / (l - c) * 100, P = S(($) => {
717
717
  const K = Math.min(l, Math.max(c, $));
718
718
  return Math.round((Math.round((K - c) / u) * u + c) * 1e3) / 1e3;
719
719
  }, [c, l, u]), H = S(($, K = !1) => {
@@ -731,7 +731,7 @@ const qo = {
731
731
  const U = [...R];
732
732
  U[Z] = K, H(U);
733
733
  }, [_, Y, R, H]);
734
- ie(() => {
734
+ oe(() => {
735
735
  if (x === null) return;
736
736
  const $ = (Z) => {
737
737
  const U = [...R];
@@ -753,7 +753,7 @@ const qo = {
753
753
  K.preventDefault();
754
754
  const U = [...R];
755
755
  U[$] += Z, H(U, !0);
756
- }, [_, u, R, H]), W = Math.abs(L - z) < 5, j = { ...Zo, ...qo[n] }, G = ["gloss-preset-rangeslider", `gloss-preset-rangeslider--${n}`, _ && "gloss-preset-rangeslider--disabled"].filter(Boolean).join(" ");
756
+ }, [_, u, R, H]), W = Math.abs(L - z) < 5, j = { ...Jo, ...Zo[n] }, G = ["gloss-preset-rangeslider", `gloss-preset-rangeslider--${n}`, _ && "gloss-preset-rangeslider--disabled"].filter(Boolean).join(" ");
757
757
  return /* @__PURE__ */ d("div", { className: G, children: [
758
758
  v && /* @__PURE__ */ d("label", { className: "gloss-preset-rangeslider__label", htmlFor: k, children: [
759
759
  v,
@@ -778,8 +778,8 @@ const qo = {
778
778
  ] });
779
779
  }
780
780
  );
781
- Jo.displayName = "PresetRangeSlider";
782
- const Qo = [
781
+ Qo.displayName = "PresetRangeSlider";
782
+ const el = [
783
783
  "a[href]",
784
784
  "button:not([disabled])",
785
785
  "input:not([disabled])",
@@ -796,9 +796,9 @@ function ma(r = {}) {
796
796
  initialFocus: s,
797
797
  allowOutsideClick: o = !1,
798
798
  onEscape: i
799
- } = r, c = se(null), l = se(null), u = S(() => {
799
+ } = r, c = ie(null), l = ie(null), u = S(() => {
800
800
  if (!c.current) return [];
801
- const y = c.current.querySelectorAll(Qo);
801
+ const y = c.current.querySelectorAll(el);
802
802
  return Array.from(y).filter((b) => b.offsetParent !== null && !b.hidden);
803
803
  }, []), m = S(() => {
804
804
  const y = u();
@@ -837,7 +837,7 @@ function ma(r = {}) {
837
837
  },
838
838
  [t, o, m]
839
839
  );
840
- return ie(() => {
840
+ return oe(() => {
841
841
  if (t && (l.current = document.activeElement, n)) {
842
842
  if (s) {
843
843
  const y = typeof s == "string" ? c.current?.querySelector(s) : s;
@@ -850,20 +850,20 @@ function ma(r = {}) {
850
850
  m();
851
851
  });
852
852
  }
853
- }, [t, n, s, m]), ie(() => {
853
+ }, [t, n, s, m]), oe(() => {
854
854
  if (t)
855
855
  return document.addEventListener("keydown", p), c.current?.addEventListener("focusout", f), () => {
856
856
  document.removeEventListener("keydown", p), c.current?.removeEventListener("focusout", f);
857
857
  };
858
- }, [t, p, f]), ie(() => () => {
858
+ }, [t, p, f]), oe(() => () => {
859
859
  a && l.current && l.current.focus?.();
860
860
  }, [a]), c;
861
861
  }
862
- const el = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], tl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], ht = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Dn = (r, t) => new Date(r, t + 1, 0).getDate(), rl = (r, t) => new Date(r, t, 1).getDay(), nl = (r, t) => {
862
+ const tl = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], rl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], ht = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Dn = (r, t) => new Date(r, t + 1, 0).getDate(), nl = (r, t) => new Date(r, t, 1).getDay(), al = (r, t) => {
863
863
  const n = r.getDate(), a = r.getMonth() + 1, s = r.getFullYear();
864
864
  return t.replace("DD", String(n).padStart(2, "0")).replace("D", String(n)).replace("MM", String(a).padStart(2, "0")).replace("M", String(a)).replace("YYYY", String(s)).replace("YY", String(s).slice(-2));
865
- }, Cr = (r, t, n, a, s) => t && r < t || n && r > n || a?.some((o) => ht(o, r)) ? !0 : s?.(r) ?? !1, al = (r, t, n, a, s, o, i, c) => {
866
- const l = [], u = /* @__PURE__ */ new Date(), m = Dn(r, t), f = (rl(r, t) - a + 7) % 7, y = t === 0 ? 11 : t - 1, b = t === 0 ? r - 1 : r, _ = Dn(b, y);
865
+ }, Cr = (r, t, n, a, s) => t && r < t || n && r > n || a?.some((o) => ht(o, r)) ? !0 : s?.(r) ?? !1, sl = (r, t, n, a, s, o, i, c) => {
866
+ const l = [], u = /* @__PURE__ */ new Date(), m = Dn(r, t), f = (nl(r, t) - a + 7) % 7, y = t === 0 ? 11 : t - 1, b = t === 0 ? r - 1 : r, _ = Dn(b, y);
867
867
  for (let T = f - 1; T >= 0; T--) {
868
868
  const w = new Date(b, y, _ - T);
869
869
  l.push({ date: w, isCurrentMonth: !1, isToday: ht(w, u), isSelected: n ? ht(w, n) : !1, isDisabled: Cr(w, s, o, i, c) });
@@ -878,17 +878,17 @@ const el = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], tl = ["January", "
878
878
  l.push({ date: w, isCurrentMonth: !1, isToday: ht(w, u), isSelected: n ? ht(w, n) : !1, isDisabled: Cr(w, s, o, i, c) });
879
879
  }
880
880
  return l;
881
- }, sl = {
881
+ }, il = {
882
882
  xs: { padding: J.Xs },
883
883
  sm: { padding: J.Sm },
884
884
  md: { padding: J.Md },
885
885
  lg: { padding: J.Lg },
886
886
  xl: { padding: J.Xl }
887
- }, il = {
887
+ }, ol = {
888
888
  default: B.BorderDefault,
889
889
  error: B.BorderError,
890
890
  success: B.BorderSuccess
891
- }, ol = q.forwardRef(
891
+ }, ll = q.forwardRef(
892
892
  (r, t) => {
893
893
  const {
894
894
  variant: n = "default",
@@ -910,12 +910,12 @@ const el = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], tl = ["January", "
910
910
  required: C,
911
911
  id: T,
912
912
  name: w
913
- } = r, k = Le(), I = T || k, g = se(null), [E, x] = O(!1), [D, N] = O(o), R = s !== void 0, z = R ? s : D, [L, P] = O(() => z || /* @__PURE__ */ new Date());
914
- ie(() => {
913
+ } = r, k = Le(), I = T || k, g = ie(null), [E, x] = O(!1), [D, N] = O(o), R = s !== void 0, z = R ? s : D, [L, P] = O(() => z || /* @__PURE__ */ new Date());
914
+ oe(() => {
915
915
  z && P(z);
916
916
  }, [z]);
917
- const H = ma({ enabled: E, onEscape: () => x(!1) }), Y = ee(() => al(L.getFullYear(), L.getMonth(), z, y, c, l, u, m), [L, z, y, c, l, u, m]), V = ee(() => {
918
- const X = [...el];
917
+ const H = ma({ enabled: E, onEscape: () => x(!1) }), Y = ee(() => sl(L.getFullYear(), L.getMonth(), z, y, c, l, u, m), [L, z, y, c, l, u, m]), V = ee(() => {
918
+ const X = [...tl];
919
919
  if (y > 0) {
920
920
  const te = X.splice(0, y);
921
921
  X.push(...te);
@@ -929,19 +929,19 @@ const el = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], tl = ["January", "
929
929
  const pe = new Date(te);
930
930
  return pe.setMonth(pe.getMonth() + X), pe;
931
931
  }), []);
932
- ie(() => {
932
+ oe(() => {
933
933
  if (!E) return;
934
934
  const X = (te) => {
935
935
  g.current && !g.current.contains(te.target) && x(!1);
936
936
  };
937
937
  return document.addEventListener("mousedown", X), () => document.removeEventListener("mousedown", X);
938
938
  }, [E]);
939
- const G = z ? nl(z, p) : "", $ = {
939
+ const G = z ? al(z, p) : "", $ = {
940
940
  bg: B.BgSurface,
941
- borderColor: il[n],
941
+ borderColor: ol[n],
942
942
  radius: Se.Md,
943
943
  elevation: Xe.Card,
944
- ...sl[a]
944
+ ...il[a]
945
945
  }, K = { bg: B.BrandPrimary, color: B.TextInverse, radius: Se.Sm }, Z = { bg: B.BgMuted, radius: Se.Sm }, U = [
946
946
  "gloss-preset-datepicker",
947
947
  `gloss-preset-datepicker--${n}`,
@@ -964,7 +964,7 @@ const el = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], tl = ["January", "
964
964
  /* @__PURE__ */ d(qn, { children: [
965
965
  /* @__PURE__ */ e("button", { type: "button", className: "gloss-preset-datepicker__nav-btn", onClick: () => j(-1), "aria-label": "Previous month", children: /* @__PURE__ */ e(ve, { name: "chevron-left", size: "sm" }) }),
966
966
  /* @__PURE__ */ d("span", { className: "gloss-preset-datepicker__title", children: [
967
- tl[L.getMonth()],
967
+ rl[L.getMonth()],
968
968
  " ",
969
969
  L.getFullYear()
970
970
  ] }),
@@ -991,7 +991,7 @@ const el = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], tl = ["January", "
991
991
  ] });
992
992
  }
993
993
  );
994
- ol.displayName = "PresetDatePicker";
994
+ ll.displayName = "PresetDatePicker";
995
995
  const zr = (r) => {
996
996
  const t = r.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
997
997
  return t ? { h: parseInt(t[1], 10), m: parseInt(t[2], 10), s: t[3] ? parseInt(t[3], 10) : 0 } : null;
@@ -1002,7 +1002,7 @@ const zr = (r) => {
1002
1002
  t === "12h" && (c = s >= 12 ? " PM" : " AM", s = s % 12 || 12);
1003
1003
  const l = String(s).padStart(2, "0"), u = String(o).padStart(2, "0"), m = String(i).padStart(2, "0");
1004
1004
  return n ? `${l}:${u}:${m}${c}` : `${l}:${u}${c}`;
1005
- }, ll = (r, t, n) => {
1005
+ }, cl = (r, t, n) => {
1006
1006
  const a = [], s = t ? zr(t) : null, o = n ? zr(n) : null;
1007
1007
  for (let i = 0; i < 24; i++)
1008
1008
  for (let c = 0; c < 60; c += r) {
@@ -1010,17 +1010,17 @@ const zr = (r) => {
1010
1010
  s && l < s.h * 60 + s.m || o && l > o.h * 60 + o.m || a.push(`${String(i).padStart(2, "0")}:${String(c).padStart(2, "0")}`);
1011
1011
  }
1012
1012
  return a;
1013
- }, cl = {
1013
+ }, dl = {
1014
1014
  xs: { padding: J.Xs, cellHeight: "28px" },
1015
1015
  sm: { padding: J.Sm, cellHeight: "32px" },
1016
1016
  md: { padding: J.Md, cellHeight: "36px" },
1017
1017
  lg: { padding: J.Lg, cellHeight: "40px" },
1018
1018
  xl: { padding: J.Xl, cellHeight: "44px" }
1019
- }, dl = {
1019
+ }, ul = {
1020
1020
  default: B.BorderDefault,
1021
1021
  error: B.BorderError,
1022
1022
  success: B.BorderSuccess
1023
- }, ul = q.forwardRef(
1023
+ }, ml = q.forwardRef(
1024
1024
  (r, t) => {
1025
1025
  const {
1026
1026
  variant: n = "default",
@@ -1040,12 +1040,12 @@ const zr = (r) => {
1040
1040
  clearable: v = !0,
1041
1041
  id: h,
1042
1042
  name: C
1043
- } = r, T = Le(), w = h || T, k = se(null), [I, g] = O(!1), [E, x] = O(o), D = s !== void 0, N = D ? s : E, R = ee(() => ll(u, m, p), [u, m, p]), z = S((V) => {
1043
+ } = r, T = Le(), w = h || T, k = ie(null), [I, g] = O(!1), [E, x] = O(o), D = s !== void 0, N = D ? s : E, R = ee(() => cl(u, m, p), [u, m, p]), z = S((V) => {
1044
1044
  D || x(V), i?.(V), g(!1);
1045
1045
  }, [D, i]), L = S((V) => {
1046
1046
  V.stopPropagation(), D || x(""), i?.("");
1047
1047
  }, [D, i]);
1048
- ie(() => {
1048
+ oe(() => {
1049
1049
  if (!I) return;
1050
1050
  const V = (M) => {
1051
1051
  k.current && !k.current.contains(M.target) && g(!1);
@@ -1054,10 +1054,10 @@ const zr = (r) => {
1054
1054
  }, [I]);
1055
1055
  const P = N ? In(N, c, l) : "", H = {
1056
1056
  bg: B.BgSurface,
1057
- borderColor: dl[n],
1057
+ borderColor: ul[n],
1058
1058
  radius: Se.Md,
1059
1059
  elevation: Xe.Card,
1060
- ...cl[a]
1060
+ ...dl[a]
1061
1061
  }, Y = [
1062
1062
  "gloss-preset-timepicker",
1063
1063
  `gloss-preset-timepicker--${n}`,
@@ -1078,12 +1078,12 @@ const zr = (r) => {
1078
1078
  ] });
1079
1079
  }
1080
1080
  );
1081
- ul.displayName = "PresetTimePicker";
1082
- const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], wr = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Tn = (r, t) => new Date(r, t + 1, 0).getDate(), fl = (r, t) => new Date(r, t, 1).getDay(), kr = (r, t) => {
1081
+ ml.displayName = "PresetTimePicker";
1082
+ const pl = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], fl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], wr = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Tn = (r, t) => new Date(r, t + 1, 0).getDate(), gl = (r, t) => new Date(r, t, 1).getDay(), kr = (r, t) => {
1083
1083
  const n = r.getDate(), a = r.getMonth() + 1, s = r.getFullYear();
1084
1084
  return t.replace("DD", String(n).padStart(2, "0")).replace("D", String(n)).replace("MM", String(a).padStart(2, "0")).replace("M", String(a)).replace("YYYY", String(s)).replace("YY", String(s).slice(-2));
1085
1085
  }, En = (r, t, n, a, s, o) => {
1086
- const i = [], c = /* @__PURE__ */ new Date(), l = Tn(r, t), m = (fl(r, t) - a + 7) % 7, p = t === 0 ? 11 : t - 1, f = t === 0 ? r - 1 : r, y = Tn(f, p), b = (h, C) => {
1086
+ const i = [], c = /* @__PURE__ */ new Date(), l = Tn(r, t), m = (gl(r, t) - a + 7) % 7, p = t === 0 ? 11 : t - 1, f = t === 0 ? r - 1 : r, y = Tn(f, p), b = (h, C) => {
1087
1087
  const T = n.start ? wr(h, n.start) : !1, w = n.end ? wr(h, n.end) : !1;
1088
1088
  return {
1089
1089
  date: h,
@@ -1101,7 +1101,7 @@ const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "
1101
1101
  const _ = t === 11 ? 0 : t + 1, v = t === 11 ? r + 1 : r;
1102
1102
  for (let h = 1; h <= 42 - i.length; h++) i.push(b(new Date(v, _, h), !1));
1103
1103
  return i;
1104
- }, gl = {
1104
+ }, hl = {
1105
1105
  xs: { gap: J.Sm },
1106
1106
  sm: { gap: J.Sm },
1107
1107
  md: { gap: J.Md },
@@ -1129,11 +1129,11 @@ const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "
1129
1129
  clearable: C = !0,
1130
1130
  id: T,
1131
1131
  name: w
1132
- } = r, k = Le(), I = T || k, g = se(null), [E, x] = O(!1), [D, N] = O(o), [R, z] = O(!1), L = s !== void 0, P = L ? s : D, [H, Y] = O(() => P.start || /* @__PURE__ */ new Date()), V = ee(() => {
1132
+ } = r, k = Le(), I = T || k, g = ie(null), [E, x] = O(!1), [D, N] = O(o), [R, z] = O(!1), L = s !== void 0, P = L ? s : D, [H, Y] = O(() => P.start || /* @__PURE__ */ new Date()), V = ee(() => {
1133
1133
  const ce = new Date(H);
1134
1134
  return ce.setMonth(ce.getMonth() + 1), ce;
1135
1135
  }, [H]), M = ma({ enabled: E, onEscape: () => x(!1) }), W = ee(() => En(H.getFullYear(), H.getMonth(), P, b, c, l), [H, P, b, c, l]), j = ee(() => En(V.getFullYear(), V.getMonth(), P, b, c, l), [V, P, b, c, l]), G = ee(() => {
1136
- const ce = [...ml];
1136
+ const ce = [...pl];
1137
1137
  if (b > 0) {
1138
1138
  const be = ce.splice(0, b);
1139
1139
  ce.push(...be);
@@ -1156,7 +1156,7 @@ const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "
1156
1156
  const de = new Date(be);
1157
1157
  return de.setMonth(de.getMonth() + ce), de;
1158
1158
  }), []);
1159
- ie(() => {
1159
+ oe(() => {
1160
1160
  if (!E) return;
1161
1161
  const ce = (be) => {
1162
1162
  g.current && !g.current.contains(be.target) && (x(!1), z(!1));
@@ -1168,7 +1168,7 @@ const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "
1168
1168
  borderColor: n === "error" ? B.BorderError : n === "success" ? B.BorderSuccess : B.BorderDefault,
1169
1169
  radius: Se.Md,
1170
1170
  elevation: Xe.Card,
1171
- ...gl[a]
1171
+ ...hl[a]
1172
1172
  }, te = [
1173
1173
  "gloss-preset-daterangepicker",
1174
1174
  `gloss-preset-daterangepicker--${n}`,
@@ -1178,14 +1178,14 @@ const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "
1178
1178
  /* @__PURE__ */ d(qn, { children: [
1179
1179
  de === "left" && /* @__PURE__ */ e("button", { type: "button", className: "gloss-preset-daterangepicker__nav-btn", onClick: () => Z(-1), "aria-label": "Previous month", children: /* @__PURE__ */ e(ve, { name: "chevron-left", size: "sm" }) }),
1180
1180
  /* @__PURE__ */ d("span", { className: "gloss-preset-daterangepicker__month-title", children: [
1181
- pl[ce.getMonth()],
1181
+ fl[ce.getMonth()],
1182
1182
  " ",
1183
1183
  ce.getFullYear()
1184
1184
  ] }),
1185
1185
  de === "right" && /* @__PURE__ */ e("button", { type: "button", className: "gloss-preset-daterangepicker__nav-btn", onClick: () => Z(1), "aria-label": "Next month", children: /* @__PURE__ */ e(ve, { name: "chevron-right", size: "sm" }) })
1186
1186
  ] }),
1187
- /* @__PURE__ */ e("div", { className: "gloss-preset-daterangepicker__day-headers", children: G.map((ne) => /* @__PURE__ */ e("span", { className: "gloss-preset-daterangepicker__day-header", children: ne }, ne)) }),
1188
- /* @__PURE__ */ e(Zn, { children: be.map((ne, ge) => /* @__PURE__ */ e(Ss, { selected: ne.isSelected, today: ne.isToday, outsideMonth: !ne.isCurrentMonth, disabled: ne.isDisabled, rangeStart: ne.isRangeStart, rangeEnd: ne.isRangeEnd, inRange: ne.inRange, onClick: () => !ne.isDisabled && $(ne.date), children: ne.date.getDate() }, ge)) })
1187
+ /* @__PURE__ */ e("div", { className: "gloss-preset-daterangepicker__day-headers", children: G.map((ae) => /* @__PURE__ */ e("span", { className: "gloss-preset-daterangepicker__day-header", children: ae }, ae)) }),
1188
+ /* @__PURE__ */ e(Zn, { children: be.map((ae, ge) => /* @__PURE__ */ e(Ss, { selected: ae.isSelected, today: ae.isToday, outsideMonth: !ae.isCurrentMonth, disabled: ae.isDisabled, rangeStart: ae.isRangeStart, rangeEnd: ae.isRangeEnd, inRange: ae.inRange, onClick: () => !ae.isDisabled && $(ae.date), children: ae.date.getDate() }, ge)) })
1189
1189
  ] });
1190
1190
  return /* @__PURE__ */ d("div", { className: te, ref: g, children: [
1191
1191
  _ && /* @__PURE__ */ e("label", { className: "gloss-preset-daterangepicker__label", htmlFor: I, children: _ }),
@@ -1211,11 +1211,11 @@ const ml = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], pl = ["January", "
1211
1211
  }
1212
1212
  );
1213
1213
  pa.displayName = "PresetDateRangePicker";
1214
- const hl = () => Math.random().toString(36).slice(2, 11), Mn = (r) => {
1214
+ const bl = () => Math.random().toString(36).slice(2, 11), Mn = (r) => {
1215
1215
  if (r === 0) return "0 B";
1216
1216
  const t = 1024, n = ["B", "KB", "MB", "GB"], a = Math.floor(Math.log(r) / Math.log(t));
1217
1217
  return `${parseFloat((r / Math.pow(t, a)).toFixed(1))} ${n[a]}`;
1218
- }, bl = {
1218
+ }, yl = {
1219
1219
  xs: { padding: J.Sm, minHeight: "80px" },
1220
1220
  sm: { padding: J.Sm, minHeight: "100px" },
1221
1221
  md: { padding: J.Md, minHeight: "120px" },
@@ -1241,7 +1241,7 @@ const hl = () => Math.random().toString(36).slice(2, 11), Mn = (r) => {
1241
1241
  onError: v,
1242
1242
  id: h,
1243
1243
  name: C
1244
- } = r, T = Le(), w = h || T, k = se(null), [I, g] = O([]), [E, x] = O(!1), D = s !== void 0, N = D ? s : I, R = S((M) => {
1244
+ } = r, T = Le(), w = h || T, k = ie(null), [I, g] = O([]), [E, x] = O(!1), D = s !== void 0, N = D ? s : I, R = S((M) => {
1245
1245
  D || g(M), o?.(M);
1246
1246
  }, [D, o]), z = S((M) => {
1247
1247
  if (l && M.size > l) return `File size exceeds ${Mn(l)}`;
@@ -1254,7 +1254,7 @@ const hl = () => Math.random().toString(36).slice(2, 11), Mn = (r) => {
1254
1254
  const W = c ? c - N.length : 1 / 0, j = [];
1255
1255
  Array.from(M).slice(0, W).forEach((G) => {
1256
1256
  const $ = z(G), K = G.type.startsWith("image/") ? URL.createObjectURL(G) : void 0;
1257
- j.push({ file: G, id: hl(), error: $ || void 0, preview: K }), $ && v?.($);
1257
+ j.push({ file: G, id: bl(), error: $ || void 0, preview: K }), $ && v?.($);
1258
1258
  }), M.length > W && W >= 0 && v?.(`Maximum ${c} files allowed`), R([...N, ...j]);
1259
1259
  }, [N, c, z, R, v]), P = S((M) => {
1260
1260
  const W = N.find((j) => j.id === M);
@@ -1266,7 +1266,7 @@ const hl = () => Math.random().toString(36).slice(2, 11), Mn = (r) => {
1266
1266
  borderColor: n === "error" ? B.BorderError : B.BorderDefault,
1267
1267
  borderStyle: "dashed",
1268
1268
  radius: Se.Md,
1269
- ...bl[a]
1269
+ ...yl[a]
1270
1270
  }, V = [
1271
1271
  "gloss-preset-fileupload",
1272
1272
  `gloss-preset-fileupload--${n}`,
@@ -1334,7 +1334,7 @@ const hl = () => Math.random().toString(36).slice(2, 11), Mn = (r) => {
1334
1334
  }
1335
1335
  );
1336
1336
  fa.displayName = "PresetFileUpload";
1337
- const yl = [
1337
+ const vl = [
1338
1338
  "#ef4444",
1339
1339
  "#f97316",
1340
1340
  "#f59e0b",
@@ -1358,7 +1358,7 @@ const yl = [
1358
1358
  ], ar = (r) => {
1359
1359
  const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
1360
1360
  return t ? { r: parseInt(t[1], 16), g: parseInt(t[2], 16), b: parseInt(t[3], 16) } : null;
1361
- }, ga = (r, t, n) => `#${[r, t, n].map((a) => a.toString(16).padStart(2, "0")).join("")}`, vl = (r, t, n) => {
1361
+ }, ga = (r, t, n) => `#${[r, t, n].map((a) => a.toString(16).padStart(2, "0")).join("")}`, _l = (r, t, n) => {
1362
1362
  r /= 255, t /= 255, n /= 255;
1363
1363
  const a = Math.max(r, t, n), s = Math.min(r, t, n);
1364
1364
  let o = 0, i = 0;
@@ -1371,17 +1371,17 @@ const yl = [
1371
1371
  }, Pn = (r, t, n, a) => {
1372
1372
  if (a === "rgb") return `rgb(${r}, ${t}, ${n})`;
1373
1373
  if (a === "hsl") {
1374
- const { h: s, s: o, l: i } = vl(r, t, n);
1374
+ const { h: s, s: o, l: i } = _l(r, t, n);
1375
1375
  return `hsl(${s}, ${o}%, ${i}%)`;
1376
1376
  }
1377
1377
  return ga(r, t, n);
1378
- }, _l = {
1378
+ }, xl = {
1379
1379
  xs: { padding: "8px", swatchSize: "18px" },
1380
1380
  sm: { padding: "10px", swatchSize: "20px" },
1381
1381
  md: { padding: "12px", swatchSize: "24px" },
1382
1382
  lg: { padding: "16px", swatchSize: "28px" },
1383
1383
  xl: { padding: "20px", swatchSize: "32px" }
1384
- }, xl = q.forwardRef(
1384
+ }, Nl = q.forwardRef(
1385
1385
  (r, t) => {
1386
1386
  const {
1387
1387
  size: n = "md",
@@ -1390,13 +1390,13 @@ const yl = [
1390
1390
  onChange: o,
1391
1391
  format: i = "hex",
1392
1392
  showAlpha: c = !1,
1393
- swatches: l = yl,
1393
+ swatches: l = vl,
1394
1394
  disabled: u = !1,
1395
1395
  label: m,
1396
1396
  helperText: p,
1397
1397
  id: f,
1398
1398
  name: y
1399
- } = r, b = Le(), _ = f || b, v = se(null), [h, C] = O(!1), [T, w] = O(s), k = a !== void 0, I = k ? a : T, g = ar(I) || { r: 59, g: 130, b: 246 }, E = S((L, P, H) => {
1399
+ } = r, b = Le(), _ = f || b, v = ie(null), [h, C] = O(!1), [T, w] = O(s), k = a !== void 0, I = k ? a : T, g = ar(I) || { r: 59, g: 130, b: 246 }, E = S((L, P, H) => {
1400
1400
  const Y = Pn(L, P, H, i);
1401
1401
  k || w(Y), o?.(Y);
1402
1402
  }, [i, k, o]), x = S((L) => {
@@ -1411,7 +1411,7 @@ const yl = [
1411
1411
  const H = ar(P);
1412
1412
  H && o?.(Pn(H.r, H.g, H.b, i));
1413
1413
  }, [i, k, o]);
1414
- ie(() => {
1414
+ oe(() => {
1415
1415
  if (!h) return;
1416
1416
  const L = (P) => {
1417
1417
  v.current && !v.current.contains(P.target) && C(!1);
@@ -1421,7 +1421,7 @@ const yl = [
1421
1421
  const R = {
1422
1422
  radius: Se.Md,
1423
1423
  elevation: Xe.Card,
1424
- ..._l[n]
1424
+ ...xl[n]
1425
1425
  }, z = [
1426
1426
  "gloss-preset-colorpicker",
1427
1427
  `gloss-preset-colorpicker--${n}`,
@@ -1444,24 +1444,24 @@ const yl = [
1444
1444
  ] });
1445
1445
  }
1446
1446
  );
1447
- xl.displayName = "PresetColorPicker";
1448
- const Nl = {
1447
+ Nl.displayName = "PresetColorPicker";
1448
+ const Sl = {
1449
1449
  xs: { starSize: "14px", gap: J.None },
1450
1450
  sm: { starSize: "18px", gap: "1px" },
1451
1451
  md: { starSize: "22px", gap: "2px" },
1452
1452
  lg: { starSize: "28px", gap: "3px" },
1453
1453
  xl: { starSize: "34px", gap: J.Xs }
1454
- }, Sl = {
1454
+ }, Cl = {
1455
1455
  activeColor: "#f59e0b",
1456
1456
  inactiveColor: B.Gray300,
1457
1457
  hoverColor: "#fbbf24"
1458
- }, Cl = q.forwardRef(
1458
+ }, wl = q.forwardRef(
1459
1459
  ({ size: r = "md", readOnly: t, disabled: n, children: a, ...s }, o) => {
1460
1460
  const i = { ...s };
1461
1461
  delete i.className, delete i.style, delete i.definition;
1462
1462
  const c = {
1463
- ...Sl,
1464
- ...Nl[r]
1463
+ ...Cl,
1464
+ ...Sl[r]
1465
1465
  }, l = [
1466
1466
  "gloss-preset-rating",
1467
1467
  `gloss-preset-rating--${r}`
@@ -1480,11 +1480,11 @@ const Nl = {
1480
1480
  );
1481
1481
  }
1482
1482
  );
1483
- Cl.displayName = "PresetRating";
1484
- function wl(r, t = "md") {
1483
+ wl.displayName = "PresetRating";
1484
+ function kl(r, t = "md") {
1485
1485
  return r ? typeof r == "string" ? /* @__PURE__ */ e(ve, { name: r, size: t }) : r : null;
1486
1486
  }
1487
- const kl = q.forwardRef(
1487
+ const Dl = q.forwardRef(
1488
1488
  ({
1489
1489
  children: r,
1490
1490
  onClick: t,
@@ -1495,8 +1495,8 @@ const kl = q.forwardRef(
1495
1495
  dropdownIcon: i,
1496
1496
  leftIcon: c
1497
1497
  }, l) => {
1498
- const [u, m] = O(!1), p = se(null), f = se(null);
1499
- ie(() => {
1498
+ const [u, m] = O(!1), p = ie(null), f = ie(null);
1499
+ oe(() => {
1500
1500
  const h = (C) => {
1501
1501
  p.current && !p.current.contains(C.target) && f.current && !f.current.contains(C.target) && m(!1);
1502
1502
  };
@@ -1537,7 +1537,7 @@ const kl = q.forwardRef(
1537
1537
  onClick: () => b(h),
1538
1538
  tabIndex: h.disabled ? -1 : 0,
1539
1539
  children: [
1540
- h.icon && /* @__PURE__ */ e("span", { className: "gloss-split-button__item-icon", children: wl(h.icon, _) }),
1540
+ h.icon && /* @__PURE__ */ e("span", { className: "gloss-split-button__item-icon", children: kl(h.icon, _) }),
1541
1541
  /* @__PURE__ */ e("span", { className: "gloss-split-button__item-label", children: h.label })
1542
1542
  ]
1543
1543
  }
@@ -1546,8 +1546,8 @@ const kl = q.forwardRef(
1546
1546
  ] });
1547
1547
  }
1548
1548
  );
1549
- kl.displayName = "SplitButton";
1550
- const Dl = {
1549
+ Dl.displayName = "SplitButton";
1550
+ const Il = {
1551
1551
  default: {
1552
1552
  bg: B.Gray900,
1553
1553
  color: B.TextInverse
@@ -1556,14 +1556,14 @@ const Dl = {
1556
1556
  bg: B.BgSurface,
1557
1557
  color: B.TextPrimary
1558
1558
  }
1559
- }, Il = {
1559
+ }, Tl = {
1560
1560
  sm: { padding: J.Xs, fontSize: "0.6875rem", maxWidth: "180px" },
1561
1561
  md: { padding: J.Sm, fontSize: "0.75rem", maxWidth: "240px" }
1562
- }, Tl = {
1562
+ }, El = {
1563
1563
  radius: Se.Sm,
1564
1564
  arrowSize: "6px"
1565
1565
  };
1566
- function El(r) {
1566
+ function Ml(r) {
1567
1567
  const {
1568
1568
  variant: t = "default",
1569
1569
  size: n = "md",
@@ -1575,9 +1575,9 @@ function El(r) {
1575
1575
  } = r;
1576
1576
  if ({ ...c }, o) return /* @__PURE__ */ e(Ge, { children: i });
1577
1577
  const l = {
1578
- ...Tl,
1579
- ...Dl[t],
1580
- ...Il[n]
1578
+ ...El,
1579
+ ...Il[t],
1580
+ ...Tl[n]
1581
1581
  }, u = [
1582
1582
  "gloss-preset-tooltip",
1583
1583
  `gloss-preset-tooltip--${t}`,
@@ -1588,18 +1588,18 @@ function El(r) {
1588
1588
  /* @__PURE__ */ e(Ms, { definition: l, className: u, placement: s, children: a })
1589
1589
  ] });
1590
1590
  }
1591
- El.displayName = "PresetTooltip";
1592
- const Ml = {
1591
+ Ml.displayName = "PresetTooltip";
1592
+ const Pl = {
1593
1593
  default: { borderColor: B.BorderDefault },
1594
1594
  error: { borderColor: B.BorderError },
1595
1595
  success: { borderColor: B.BorderSuccess }
1596
- }, Pl = {
1596
+ }, Bl = {
1597
1597
  xs: { padding: J.Xs, paddingX: J.Sm, fontSize: "0.75rem", minHeight: "28px" },
1598
1598
  sm: { padding: J.Xs, paddingX: J.Sm, fontSize: "0.8125rem", minHeight: "32px" },
1599
1599
  md: { padding: J.Sm, paddingX: J.Md, fontSize: "0.875rem", minHeight: "36px" },
1600
1600
  lg: { padding: J.Sm, paddingX: J.Md, fontSize: "0.9375rem", minHeight: "42px" },
1601
1601
  xl: { padding: J.Md, paddingX: J.Lg, fontSize: "1rem", minHeight: "48px" }
1602
- }, Bl = {
1602
+ }, Rl = {
1603
1603
  bg: B.BgSurface,
1604
1604
  color: B.TextPrimary,
1605
1605
  radius: Se.Md,
@@ -1623,9 +1623,9 @@ const Ml = {
1623
1623
  } = r, _ = { ...b };
1624
1624
  delete _.className, delete _.style, delete _.definition;
1625
1625
  const v = n ?? (i !== "default" ? i : "default"), h = {
1626
- ...Bl,
1627
- ...Ml[v],
1628
- ...Pl[a]
1626
+ ...Rl,
1627
+ ...Pl[v],
1628
+ ...Bl[a]
1629
1629
  }, C = [
1630
1630
  "gloss-preset-input",
1631
1631
  `gloss-preset-input--${v}`,
@@ -1671,17 +1671,17 @@ const Ml = {
1671
1671
  }
1672
1672
  );
1673
1673
  Ee.displayName = "PresetInput";
1674
- const Rl = {
1674
+ const zl = {
1675
1675
  default: { borderColor: B.BorderDefault },
1676
1676
  error: { borderColor: B.BorderError },
1677
1677
  success: { borderColor: B.BorderSuccess }
1678
- }, zl = {
1678
+ }, Al = {
1679
1679
  xs: { padding: J.Xs, paddingX: J.Sm, fontSize: "0.75rem", minHeight: "60px" },
1680
1680
  sm: { padding: J.Xs, paddingX: J.Sm, fontSize: "0.8125rem", minHeight: "72px" },
1681
1681
  md: { padding: J.Sm, paddingX: J.Md, fontSize: "0.875rem", minHeight: "84px" },
1682
1682
  lg: { padding: J.Sm, paddingX: J.Md, fontSize: "0.9375rem", minHeight: "96px" },
1683
1683
  xl: { padding: J.Md, paddingX: J.Lg, fontSize: "1rem", minHeight: "108px" }
1684
- }, Al = {
1684
+ }, $l = {
1685
1685
  bg: B.BgSurface,
1686
1686
  color: B.TextPrimary,
1687
1687
  radius: Se.Md,
@@ -1706,9 +1706,9 @@ const Rl = {
1706
1706
  } = r, _ = { ...b };
1707
1707
  delete _.className, delete _.style, delete _.definition;
1708
1708
  const v = n ?? (i !== "default" ? i : "default"), h = {
1709
- ...Al,
1710
- ...Rl[v],
1711
- ...zl[a],
1709
+ ...$l,
1710
+ ...zl[v],
1711
+ ...Al[a],
1712
1712
  resize: m ? "none" : y,
1713
1713
  ...p != null ? { minRows: String(p) } : {},
1714
1714
  ...f != null ? { maxRows: String(f) } : {}
@@ -1716,7 +1716,7 @@ const Rl = {
1716
1716
  "gloss-preset-textarea",
1717
1717
  `gloss-preset-textarea--${v}`,
1718
1718
  `gloss-preset-textarea--${a}`
1719
- ].filter(Boolean).join(" "), T = se(null), w = S((g) => {
1719
+ ].filter(Boolean).join(" "), T = ie(null), w = S((g) => {
1720
1720
  if (!g || !m) return;
1721
1721
  g.style.height = "auto";
1722
1722
  const E = getComputedStyle(g), x = parseFloat(E.lineHeight) || parseFloat(E.fontSize) * 1.2, D = parseFloat(E.paddingTop) || 0, N = parseFloat(E.paddingBottom) || 0, R = parseFloat(E.borderTopWidth) || 0, z = parseFloat(E.borderBottomWidth) || 0, L = D + N + R + z, P = p ? x * p + L : 0, H = f ? x * f + L : 1 / 0, Y = Math.min(Math.max(g.scrollHeight, P), H);
@@ -1742,17 +1742,17 @@ const Rl = {
1742
1742
  }
1743
1743
  );
1744
1744
  ha.displayName = "PresetTextarea";
1745
- const $l = {
1745
+ const Fl = {
1746
1746
  xs: { padding: J.Xs, fontSize: "0.75rem", minHeight: "28px" },
1747
1747
  sm: { padding: J.Sm, fontSize: "0.8125rem", minHeight: "32px" },
1748
1748
  md: { padding: J.Md, fontSize: "0.875rem", minHeight: "36px" },
1749
1749
  lg: { padding: J.Lg, fontSize: "1rem", minHeight: "40px" },
1750
1750
  xl: { padding: J.Xl, fontSize: "1.125rem", minHeight: "44px" }
1751
- }, Fl = {
1751
+ }, Ol = {
1752
1752
  default: B.BorderDefault,
1753
1753
  error: B.BorderError,
1754
1754
  success: B.BorderSuccess
1755
- }, Ol = q.forwardRef(
1755
+ }, Ll = q.forwardRef(
1756
1756
  (r, t) => {
1757
1757
  const {
1758
1758
  variant: n = "default",
@@ -1787,10 +1787,10 @@ const $l = {
1787
1787
  }, [k, u, g]), D = c !== void 0 && k <= c, N = l !== void 0 && k >= l, R = h ? h(k) : String(k), z = {
1788
1788
  bg: B.BgSurface,
1789
1789
  color: B.TextPrimary,
1790
- borderColor: Fl[n],
1790
+ borderColor: Ol[n],
1791
1791
  radius: Se.Md,
1792
1792
  buttonBg: B.BgMuted,
1793
- ...$l[a]
1793
+ ...Fl[a]
1794
1794
  }, L = [
1795
1795
  "gloss-preset-numberinput",
1796
1796
  `gloss-preset-numberinput--${n}`,
@@ -1824,8 +1824,8 @@ const $l = {
1824
1824
  ] });
1825
1825
  }
1826
1826
  );
1827
- Ol.displayName = "PresetNumberInput";
1828
- const Ll = q.forwardRef(
1827
+ Ll.displayName = "PresetNumberInput";
1828
+ const Hl = q.forwardRef(
1829
1829
  ({ children: r, attached: t = !1 }, n) => {
1830
1830
  const a = [
1831
1831
  "gloss-input-group",
@@ -1834,8 +1834,8 @@ const Ll = q.forwardRef(
1834
1834
  return /* @__PURE__ */ e("div", { ref: n, className: a, children: r });
1835
1835
  }
1836
1836
  );
1837
- Ll.displayName = "InputGroup";
1838
- const Hl = q.forwardRef(
1837
+ Hl.displayName = "InputGroup";
1838
+ const Wl = q.forwardRef(
1839
1839
  ({ children: r, position: t = "left" }, n) => {
1840
1840
  const a = [
1841
1841
  "gloss-input-addon",
@@ -1844,8 +1844,8 @@ const Hl = q.forwardRef(
1844
1844
  return /* @__PURE__ */ e("span", { ref: n, className: a, children: r });
1845
1845
  }
1846
1846
  );
1847
- Hl.displayName = "InputAddon";
1848
- const Wl = {
1847
+ Wl.displayName = "InputAddon";
1848
+ const Gl = {
1849
1849
  creditCard: { mask: "0000 0000 0000 0000", lazy: !0 },
1850
1850
  expiry: { mask: "00/00", lazy: !0 },
1851
1851
  cvv: { mask: "0000", lazy: !0 },
@@ -1854,13 +1854,13 @@ const Wl = {
1854
1854
  zipPlus4: { mask: "00000-0000", lazy: !0 },
1855
1855
  ssn: { mask: "000-00-0000", lazy: !0 },
1856
1856
  currency: { mask: Number, scale: 2, thousandsSeparator: ",", radix: ".", mapToRadix: ["."], normalizeZeros: !0, padFractionalZeros: !0 }
1857
- }, Gl = {
1857
+ }, Vl = {
1858
1858
  xs: { padding: J.Xs, fontSize: "0.75rem", minHeight: "28px" },
1859
1859
  sm: { padding: J.Sm, fontSize: "0.8125rem", minHeight: "32px" },
1860
1860
  md: { padding: J.Md, fontSize: "0.875rem", minHeight: "36px" },
1861
1861
  lg: { padding: J.Lg, fontSize: "1rem", minHeight: "40px" },
1862
1862
  xl: { padding: J.Xl, fontSize: "1.125rem", minHeight: "44px" }
1863
- }, Vl = {
1863
+ }, jl = {
1864
1864
  default: B.BorderDefault,
1865
1865
  error: B.BorderError,
1866
1866
  success: B.BorderSuccess
@@ -1882,10 +1882,10 @@ const Wl = {
1882
1882
  required: b,
1883
1883
  id: _,
1884
1884
  name: v
1885
- } = r, h = se(null), C = se(null), T = typeof s == "string" ? Wl[s] : s, w = S((g) => {
1885
+ } = r, h = ie(null), C = ie(null), T = typeof s == "string" ? Gl[s] : s, w = S((g) => {
1886
1886
  h.current = g, typeof t == "function" ? t(g) : t && (t.current = g);
1887
1887
  }, [t]);
1888
- ie(() => {
1888
+ oe(() => {
1889
1889
  if (h.current && T) {
1890
1890
  let g;
1891
1891
  try {
@@ -1905,16 +1905,16 @@ const Wl = {
1905
1905
  C.current?.destroy(), C.current = null;
1906
1906
  };
1907
1907
  }
1908
- }, [T, i, c]), ie(() => {
1908
+ }, [T, i, c]), oe(() => {
1909
1909
  C.current && o !== void 0 && C.current.unmaskedValue !== o && (C.current.unmaskedValue = o);
1910
1910
  }, [o]);
1911
1911
  const k = {
1912
1912
  bg: B.BgSurface,
1913
1913
  color: B.TextPrimary,
1914
- borderColor: Vl[n],
1914
+ borderColor: jl[n],
1915
1915
  radius: Se.Md,
1916
1916
  placeholderColor: B.TextTertiary,
1917
- ...Gl[a]
1917
+ ...Vl[a]
1918
1918
  }, I = [
1919
1919
  "gloss-preset-maskedinput",
1920
1920
  `gloss-preset-maskedinput--${n}`,
@@ -1939,7 +1939,7 @@ const Wl = {
1939
1939
  }
1940
1940
  );
1941
1941
  jt.displayName = "PresetMaskedInput";
1942
- const jl = {
1942
+ const Kl = {
1943
1943
  default: {
1944
1944
  borderColor: B.BorderDefault
1945
1945
  },
@@ -1949,13 +1949,13 @@ const jl = {
1949
1949
  success: {
1950
1950
  borderColor: B.BorderSuccess
1951
1951
  }
1952
- }, Kl = {
1952
+ }, Yl = {
1953
1953
  xs: { padding: J.Xs, fontSize: "0.75rem", minHeight: "24px" },
1954
1954
  sm: { padding: J.Xs, fontSize: "0.8125rem", minHeight: "30px" },
1955
1955
  md: { padding: J.Sm, fontSize: "0.875rem", minHeight: "36px" },
1956
1956
  lg: { padding: J.Sm, fontSize: "0.9375rem", minHeight: "42px" },
1957
1957
  xl: { padding: J.Md, fontSize: "1rem", minHeight: "48px" }
1958
- }, Yl = {
1958
+ }, Ul = {
1959
1959
  bg: B.BgSurface,
1960
1960
  radius: Se.Md
1961
1961
  };
@@ -1974,9 +1974,9 @@ function It(r) {
1974
1974
  } = r;
1975
1975
  ({ ...u });
1976
1976
  const m = {
1977
- ...Yl,
1978
- ...jl[t],
1979
- ...Kl[n]
1977
+ ...Ul,
1978
+ ...Kl[t],
1979
+ ...Yl[n]
1980
1980
  }, p = [
1981
1981
  "gloss-preset-select",
1982
1982
  `gloss-preset-select--${t}`,
@@ -1986,7 +1986,7 @@ function It(r) {
1986
1986
  return /* @__PURE__ */ e(As, { definition: m, className: p, children: l });
1987
1987
  }
1988
1988
  It.displayName = "PresetSelect";
1989
- const Ul = Yt("md"), Xl = {
1989
+ const Xl = Yt("md"), ql = {
1990
1990
  elevated: {
1991
1991
  bg: B.BgSurface,
1992
1992
  border: "none",
@@ -2002,22 +2002,22 @@ const Ul = Yt("md"), Xl = {
2002
2002
  border: "none",
2003
2003
  elevation: "none"
2004
2004
  }
2005
- }, ql = {
2005
+ }, Zl = {
2006
2006
  xs: { padding: J.Xs },
2007
2007
  sm: { padding: J.Sm },
2008
2008
  md: { padding: J.Md },
2009
2009
  lg: { padding: J.Lg },
2010
2010
  xl: { padding: J.Xl }
2011
- }, Zl = {
2011
+ }, Jl = {
2012
2012
  radius: Se.Lg
2013
2013
  }, ba = q.forwardRef(
2014
2014
  ({ variant: r = "elevated", size: t = "md", interactive: n, selected: a, children: s, ...o }, i) => {
2015
2015
  const c = { ...o };
2016
2016
  delete c.className, delete c.style, delete c.definition;
2017
2017
  const l = {
2018
- ...Zl,
2019
- ...Xl[r],
2020
- ...ql[t]
2018
+ ...Jl,
2019
+ ...ql[r],
2020
+ ...Zl[t]
2021
2021
  }, u = [
2022
2022
  "gloss-preset-card",
2023
2023
  `gloss-preset-card--${r}`,
@@ -2025,74 +2025,74 @@ const Ul = Yt("md"), Xl = {
2025
2025
  n && "gloss-preset-card--interactive",
2026
2026
  a && "gloss-preset-card--selected"
2027
2027
  ].filter(Boolean).join(" ");
2028
- return /* @__PURE__ */ e(Ul.Provider, { value: t, children: /* @__PURE__ */ e($s, { ref: i, definition: l, className: u, ...c, children: s }) });
2028
+ return /* @__PURE__ */ e(Xl.Provider, { value: t, children: /* @__PURE__ */ e($s, { ref: i, definition: l, className: u, ...c, children: s }) });
2029
2029
  }
2030
2030
  );
2031
2031
  ba.displayName = "PresetCard";
2032
- const Jl = q.forwardRef(
2032
+ const Ql = q.forwardRef(
2033
2033
  ({ children: r, ...t }, n) => {
2034
2034
  const a = { ...t };
2035
2035
  return delete a.className, delete a.style, /* @__PURE__ */ e(Os, { ref: n, className: "gloss-preset-card__header", ...a, children: /* @__PURE__ */ e(bt, { region: "card-header", children: r }) });
2036
2036
  }
2037
2037
  );
2038
- Jl.displayName = "PresetCardHeader";
2039
- const Ql = q.forwardRef(
2038
+ Ql.displayName = "PresetCardHeader";
2039
+ const ec = q.forwardRef(
2040
2040
  ({ children: r, ...t }, n) => {
2041
2041
  const a = { ...t };
2042
2042
  return delete a.className, delete a.style, /* @__PURE__ */ e(Ws, { ref: n, className: "gloss-preset-card__body", ...a, children: /* @__PURE__ */ e(bt, { region: "card-body", children: r }) });
2043
2043
  }
2044
2044
  );
2045
- Ql.displayName = "PresetCardBody";
2046
- const ec = q.forwardRef(
2045
+ ec.displayName = "PresetCardBody";
2046
+ const tc = q.forwardRef(
2047
2047
  ({ children: r, ...t }, n) => {
2048
2048
  const a = { ...t };
2049
2049
  return delete a.className, delete a.style, /* @__PURE__ */ e(Vs, { ref: n, className: "gloss-preset-card__footer", ...a, children: /* @__PURE__ */ e(bt, { region: "card-footer", children: r }) });
2050
2050
  }
2051
2051
  );
2052
- ec.displayName = "PresetCardFooter";
2053
- const tc = q.forwardRef(
2052
+ tc.displayName = "PresetCardFooter";
2053
+ const rc = q.forwardRef(
2054
2054
  ({ src: r, alt: t, height: n, children: a, ...s }, o) => {
2055
2055
  const i = { ...s };
2056
2056
  return delete i.className, delete i.style, /* @__PURE__ */ e(Fs, { ref: o, src: r, alt: t, height: n, className: "gloss-preset-card__media", ...i, children: a });
2057
2057
  }
2058
2058
  );
2059
- tc.displayName = "PresetCardMedia";
2060
- const rc = q.forwardRef(
2059
+ rc.displayName = "PresetCardMedia";
2060
+ const nc = q.forwardRef(
2061
2061
  ({ children: r, ...t }, n) => {
2062
2062
  const a = { ...t };
2063
2063
  return delete a.className, delete a.style, /* @__PURE__ */ e(Ls, { ref: n, className: "gloss-preset-card__title", ...a, children: r });
2064
2064
  }
2065
2065
  );
2066
- rc.displayName = "PresetCardTitle";
2067
- const nc = q.forwardRef(
2066
+ nc.displayName = "PresetCardTitle";
2067
+ const ac = q.forwardRef(
2068
2068
  ({ children: r, ...t }, n) => {
2069
2069
  const a = { ...t };
2070
2070
  return delete a.className, delete a.style, /* @__PURE__ */ e(Hs, { ref: n, className: "gloss-preset-card__subtitle", ...a, children: r });
2071
2071
  }
2072
2072
  );
2073
- nc.displayName = "PresetCardSubtitle";
2074
- const ac = q.forwardRef(
2073
+ ac.displayName = "PresetCardSubtitle";
2074
+ const sc = q.forwardRef(
2075
2075
  ({ children: r, ...t }, n) => {
2076
2076
  const a = { ...t };
2077
2077
  return delete a.className, delete a.style, /* @__PURE__ */ e(Gs, { ref: n, className: "gloss-preset-card__actions", ...a, children: r });
2078
2078
  }
2079
2079
  );
2080
- ac.displayName = "PresetCardActions";
2081
- const sc = {
2080
+ sc.displayName = "PresetCardActions";
2081
+ const ic = {
2082
2082
  default: { bg: B.Gray100, color: B.Gray700 },
2083
2083
  primary: { bg: B.Blue100, color: B.Blue700 },
2084
2084
  success: { bg: B.Green100, color: B.Green700 },
2085
2085
  warning: { bg: B.Amber100, color: B.Amber600 },
2086
2086
  error: { bg: B.Red100, color: B.Red700 },
2087
2087
  info: { bg: B.Blue50, color: B.Blue600 }
2088
- }, ic = {
2088
+ }, oc = {
2089
2089
  default: { bg: B.Gray50 },
2090
2090
  primary: { bg: B.Blue50 },
2091
2091
  success: { bg: B.Green50 },
2092
2092
  warning: { bg: B.Amber200 },
2093
2093
  error: { bg: B.Red50 },
2094
2094
  info: { bg: B.Blue50 }
2095
- }, oc = {
2095
+ }, lc = {
2096
2096
  xs: { fontSize: "0.625rem", padding: "1px", paddingX: "4px" },
2097
2097
  sm: { fontSize: "0.6875rem", padding: "2px", paddingX: "6px" },
2098
2098
  md: { fontSize: "0.75rem", padding: "2px", paddingX: "8px" },
@@ -2103,9 +2103,9 @@ const sc = {
2103
2103
  const c = { ...o };
2104
2104
  delete c.className, delete c.style, delete c.definition;
2105
2105
  const l = {
2106
- ...sc[r],
2107
- ...oc[t],
2108
- ...a ? ic[r] : {}
2106
+ ...ic[r],
2107
+ ...lc[t],
2108
+ ...a ? oc[r] : {}
2109
2109
  }, u = [
2110
2110
  "gloss-preset-badge",
2111
2111
  `gloss-preset-badge--${r}`,
@@ -2127,7 +2127,7 @@ const sc = {
2127
2127
  }
2128
2128
  );
2129
2129
  ya.displayName = "PresetBadge";
2130
- const lc = {
2130
+ const cc = {
2131
2131
  filled: {
2132
2132
  default: { bg: B.Gray100, color: B.Gray700 },
2133
2133
  primary: { bg: B.Blue100, color: B.Blue700 },
@@ -2149,7 +2149,7 @@ const lc = {
2149
2149
  warning: { bg: B.Amber200, color: B.Amber600 },
2150
2150
  error: { bg: B.Red50, color: B.Red700 }
2151
2151
  }
2152
- }, cc = {
2152
+ }, dc = {
2153
2153
  xs: { fontSize: "0.6875rem", padding: "2px", paddingX: "6px" },
2154
2154
  sm: { fontSize: "0.75rem", padding: "3px", paddingX: "8px" },
2155
2155
  md: { fontSize: "0.8125rem", padding: "4px", paddingX: "10px" },
@@ -2173,8 +2173,8 @@ const lc = {
2173
2173
  } = r, b = { ...y };
2174
2174
  delete b.className, delete b.style, delete b.definition;
2175
2175
  const _ = !!p, v = !!o, h = {
2176
- ...lc[n][s],
2177
- ...cc[a]
2176
+ ...cc[n][s],
2177
+ ...dc[a]
2178
2178
  }, C = [
2179
2179
  "gloss-preset-chip",
2180
2180
  `gloss-preset-chip--${n}`,
@@ -2229,52 +2229,52 @@ const lc = {
2229
2229
  }
2230
2230
  );
2231
2231
  Yr.displayName = "PresetChip";
2232
- const dc = {
2232
+ const uc = {
2233
2233
  borderColor: B.BorderDefault,
2234
2234
  radius: Se.None
2235
- }, uc = q.forwardRef(
2235
+ }, mc = q.forwardRef(
2236
2236
  ({ children: r, ...t }, n) => {
2237
2237
  const a = { ...t };
2238
- return delete a.className, delete a.style, delete a.definition, /* @__PURE__ */ e(Ys, { ref: n, definition: dc, className: "gloss-preset-accordion", ...a, children: r });
2238
+ return delete a.className, delete a.style, delete a.definition, /* @__PURE__ */ e(Ys, { ref: n, definition: uc, className: "gloss-preset-accordion", ...a, children: r });
2239
2239
  }
2240
2240
  );
2241
- uc.displayName = "PresetAccordion";
2242
- const mc = q.forwardRef(
2241
+ mc.displayName = "PresetAccordion";
2242
+ const pc = q.forwardRef(
2243
2243
  ({ open: r, children: t, ...n }, a) => {
2244
2244
  const s = { ...n };
2245
2245
  return delete s.className, delete s.style, /* @__PURE__ */ e(Us, { ref: a, open: r, className: "gloss-preset-accordion__item", ...s, children: t });
2246
2246
  }
2247
2247
  );
2248
- mc.displayName = "PresetAccordionItem";
2249
- const pc = q.forwardRef(
2248
+ pc.displayName = "PresetAccordionItem";
2249
+ const fc = q.forwardRef(
2250
2250
  ({ children: r, ...t }, n) => {
2251
2251
  const a = { ...t };
2252
2252
  return delete a.className, delete a.style, /* @__PURE__ */ e(Xs, { ref: n, className: "gloss-preset-accordion__trigger", ...a, children: r });
2253
2253
  }
2254
2254
  );
2255
- pc.displayName = "PresetAccordionTrigger";
2256
- const fc = q.forwardRef(
2255
+ fc.displayName = "PresetAccordionTrigger";
2256
+ const gc = q.forwardRef(
2257
2257
  ({ children: r, ...t }, n) => {
2258
2258
  const a = { ...t };
2259
2259
  return delete a.className, delete a.style, /* @__PURE__ */ e(qs, { ref: n, className: "gloss-preset-accordion__content", ...a, children: r });
2260
2260
  }
2261
2261
  );
2262
- fc.displayName = "PresetAccordionContent";
2263
- const gc = {
2262
+ gc.displayName = "PresetAccordionContent";
2263
+ const hc = {
2264
2264
  sm: { padding: J.Xs, minWidth: "140px" },
2265
2265
  md: { padding: J.Sm, minWidth: "180px" }
2266
- }, hc = {
2266
+ }, bc = {
2267
2267
  bg: B.BgSurface,
2268
2268
  borderColor: B.BorderDefault,
2269
2269
  radius: Se.Md,
2270
2270
  elevation: Xe.Card
2271
- }, bc = q.forwardRef(
2271
+ }, yc = q.forwardRef(
2272
2272
  ({ size: r = "md", children: t, ...n }, a) => {
2273
2273
  const s = { ...n };
2274
2274
  delete s.className, delete s.style, delete s.definition;
2275
2275
  const o = {
2276
- ...hc,
2277
- ...gc[r]
2276
+ ...bc,
2277
+ ...hc[r]
2278
2278
  }, i = [
2279
2279
  "gloss-preset-menu",
2280
2280
  `gloss-preset-menu--${r}`
@@ -2282,8 +2282,8 @@ const gc = {
2282
2282
  return /* @__PURE__ */ e(Zs, { ref: a, definition: o, className: i, ...s, children: t });
2283
2283
  }
2284
2284
  );
2285
- bc.displayName = "PresetMenu";
2286
- function yc({ label: r, open: t, onOpenChange: n, showCount: a = "never", children: s, ...o }) {
2285
+ yc.displayName = "PresetMenu";
2286
+ function vc({ label: r, open: t, onOpenChange: n, showCount: a = "never", children: s, ...o }) {
2287
2287
  const i = { ...o };
2288
2288
  delete i.className, delete i.style;
2289
2289
  const c = t ?? !0, l = n !== void 0, u = q.Children.toArray(s);
@@ -2311,18 +2311,18 @@ function yc({ label: r, open: t, onOpenChange: n, showCount: a = "never", childr
2311
2311
  c && s
2312
2312
  ] });
2313
2313
  }
2314
- yc.displayName = "PresetMenuGroup";
2315
- const vc = {
2314
+ vc.displayName = "PresetMenuGroup";
2315
+ const _c = {
2316
2316
  padding: J.Sm,
2317
2317
  hoverBg: B.BgHover
2318
- }, _c = q.forwardRef(
2318
+ }, xc = q.forwardRef(
2319
2319
  ({ disabled: r, active: t, as: n, icon: a, children: s, ...o }, i) => {
2320
2320
  const c = { ...o };
2321
2321
  return delete c.className, delete c.style, delete c.definition, /* @__PURE__ */ d(
2322
2322
  Qs,
2323
2323
  {
2324
2324
  ref: i,
2325
- definition: vc,
2325
+ definition: _c,
2326
2326
  disabled: r,
2327
2327
  active: t,
2328
2328
  as: n,
@@ -2336,16 +2336,16 @@ const vc = {
2336
2336
  );
2337
2337
  }
2338
2338
  );
2339
- _c.displayName = "PresetMenuItem";
2340
- function xc() {
2339
+ xc.displayName = "PresetMenuItem";
2340
+ function Nc() {
2341
2341
  return /* @__PURE__ */ e(ei, { className: "gloss-preset-menu__divider" });
2342
2342
  }
2343
- xc.displayName = "PresetMenuDivider";
2344
- function Nc(r) {
2343
+ Nc.displayName = "PresetMenuDivider";
2344
+ function Sc(r) {
2345
2345
  const { trigger: t, items: n, value: a, onChange: s, ...o } = r, i = { ...o };
2346
2346
  delete i.className, delete i.style;
2347
- const [c, l] = O(!1), u = se(null), p = n.find((y) => y.value === a)?.label || t || "Select...";
2348
- ie(() => {
2347
+ const [c, l] = O(!1), u = ie(null), p = n.find((y) => y.value === a)?.label || t || "Select...";
2348
+ oe(() => {
2349
2349
  const y = (b) => {
2350
2350
  u.current && !u.current.contains(b.target) && l(!1);
2351
2351
  };
@@ -2391,7 +2391,7 @@ function Nc(r) {
2391
2391
  )) })
2392
2392
  ] });
2393
2393
  }
2394
- Nc.displayName = "Dropdown";
2394
+ Sc.displayName = "Dropdown";
2395
2395
  const va = q.forwardRef(
2396
2396
  ({ color: r = "blue", isLoading: t = !1, children: n, ...a }, s) => {
2397
2397
  const o = { ...a };
@@ -2522,17 +2522,17 @@ const Je = {
2522
2522
  easing: Qe.easeInOut
2523
2523
  }
2524
2524
  };
2525
- function Um(r, t = Je.normal, n = Qe.easeOut) {
2525
+ function Xm(r, t = Je.normal, n = Qe.easeOut) {
2526
2526
  return r.map((a) => `${a} ${t}ms ${n}`).join(", ");
2527
2527
  }
2528
- function Xm(r, t, n) {
2528
+ function qm(r, t, n) {
2529
2529
  return r + (t - r) * n;
2530
2530
  }
2531
- function qm(r) {
2531
+ function Zm(r) {
2532
2532
  const t = r.match(/^([-\d.]+)(.*)$/);
2533
2533
  return t ? { value: parseFloat(t[1]), unit: t[2] || "" } : { value: 0, unit: "" };
2534
2534
  }
2535
- function Sc({
2535
+ function Cc({
2536
2536
  show: r,
2537
2537
  animation: t = "fade",
2538
2538
  duration: n,
@@ -2547,10 +2547,10 @@ function Sc({
2547
2547
  ...p
2548
2548
  }) {
2549
2549
  delete p.className, delete p.style;
2550
- const [f, y] = O(r ? "entered" : "exited"), [b, _] = O(r), v = se(null), h = se(null), C = typeof t == "string" ? Dr[t] : t, T = n ?? (typeof t == "string" ? Dr[t]?.duration : Je.normal) ?? Je.normal, w = a ?? (typeof t == "string" ? Dr[t]?.easing : Qe.easeOut) ?? Qe.easeOut, k = S(() => {
2550
+ const [f, y] = O(r ? "entered" : "exited"), [b, _] = O(r), v = ie(null), h = ie(null), C = typeof t == "string" ? Dr[t] : t, T = n ?? (typeof t == "string" ? Dr[t]?.duration : Je.normal) ?? Je.normal, w = a ?? (typeof t == "string" ? Dr[t]?.easing : Qe.easeOut) ?? Qe.easeOut, k = S(() => {
2551
2551
  v.current && (clearTimeout(v.current), v.current = null), h.current && (cancelAnimationFrame(h.current), h.current = null);
2552
2552
  }, []);
2553
- if (ie(() => (k(), r ? (_(!0), i?.(), h.current = requestAnimationFrame(() => {
2553
+ if (oe(() => (k(), r ? (_(!0), i?.(), h.current = requestAnimationFrame(() => {
2554
2554
  y("entering"), v.current = setTimeout(() => {
2555
2555
  y("entered"), c?.();
2556
2556
  }, T + s);
@@ -2578,19 +2578,19 @@ function Sc({
2578
2578
  "data-state": f
2579
2579
  });
2580
2580
  }
2581
- Sc.displayName = "Transition";
2582
- function Cc({ children: r }) {
2581
+ Cc.displayName = "Transition";
2582
+ function wc({ children: r }) {
2583
2583
  return /* @__PURE__ */ e("div", { className: "gloss-preset-transition-group", children: r });
2584
2584
  }
2585
- Cc.displayName = "TransitionGroup";
2585
+ wc.displayName = "TransitionGroup";
2586
2586
  const _a = Yt(null);
2587
- function wc() {
2587
+ function kc() {
2588
2588
  const r = Ut(_a);
2589
2589
  if (!r)
2590
2590
  throw new Error("useFormContext must be used within a Form component");
2591
2591
  return r;
2592
2592
  }
2593
- function kc(r) {
2593
+ function Dc(r) {
2594
2594
  const {
2595
2595
  initialValues: t,
2596
2596
  validate: n,
@@ -2660,8 +2660,8 @@ function kc(r) {
2660
2660
  );
2661
2661
  return /* @__PURE__ */ e(_a.Provider, { value: E, children: /* @__PURE__ */ e("form", { onSubmit: g, className: "gloss-preset-form", noValidate: !0, children: typeof c == "function" ? c(E) : c }) });
2662
2662
  }
2663
- kc.displayName = "ContainerForm";
2664
- function Dc({
2663
+ Dc.displayName = "ContainerForm";
2664
+ function Ic({
2665
2665
  name: r,
2666
2666
  label: t,
2667
2667
  helperText: n,
@@ -2672,7 +2672,7 @@ function Dc({
2672
2672
  ...c
2673
2673
  }) {
2674
2674
  ({ ...c });
2675
- const l = wc(), u = Le(), m = `field-${r}-${u}`, p = `helper-${r}-${u}`, f = `error-${r}-${u}`, { value: y, error: b, touched: _ } = ee(() => {
2675
+ const l = kc(), u = Le(), m = `field-${r}-${u}`, p = `helper-${r}-${u}`, f = `error-${r}-${u}`, { value: y, error: b, touched: _ } = ee(() => {
2676
2676
  const g = l.getFieldProps(r);
2677
2677
  return { value: g.value, error: g.error, touched: g.touched };
2678
2678
  }, [l, r]), v = _ && b, h = v ? "error" : "default", C = i.props.onBlur, T = q.cloneElement(i, {
@@ -2712,7 +2712,7 @@ function Dc({
2712
2712
  ] })
2713
2713
  ] });
2714
2714
  }
2715
- Dc.displayName = "ContainerFormField";
2715
+ Ic.displayName = "ContainerFormField";
2716
2716
  const xa = q.memo(({
2717
2717
  id: r,
2718
2718
  label: t,
@@ -2763,22 +2763,22 @@ const cr = q.memo(({
2763
2763
  exposeTabRefs: o,
2764
2764
  connectorActive: i
2765
2765
  }) => {
2766
- const c = se(null), l = se({}), [u, m] = O(null), [p, f] = O({ left: 0, width: 0 }), [y, b] = O({ left: 0, width: 0 }), _ = (h) => {
2766
+ const c = ie(null), l = ie({}), [u, m] = O(null), [p, f] = O({ left: 0, width: 0 }), [y, b] = O({ left: 0, width: 0 }), _ = (h) => {
2767
2767
  const C = l.current[h], T = c.current;
2768
2768
  if (!C || !T) return { left: 0, width: 0 };
2769
2769
  const w = C.getBoundingClientRect(), k = T.getBoundingClientRect();
2770
2770
  return { left: w.left - k.left, width: w.width };
2771
2771
  };
2772
- ie(() => {
2772
+ oe(() => {
2773
2773
  const h = requestAnimationFrame(() => f(_(t)));
2774
2774
  return () => cancelAnimationFrame(h);
2775
- }, [t]), ie(() => {
2775
+ }, [t]), oe(() => {
2776
2776
  u && b(_(u));
2777
- }, [u]), ie(() => {
2777
+ }, [u]), oe(() => {
2778
2778
  s && (s.current = c.current);
2779
- }), ie(() => {
2779
+ }), oe(() => {
2780
2780
  o && (o.current = l.current);
2781
- }), ie(() => {
2781
+ }), oe(() => {
2782
2782
  const h = c.current;
2783
2783
  if (!h) return;
2784
2784
  const C = new ResizeObserver(() => {
@@ -2866,7 +2866,7 @@ const cr = q.memo(({
2866
2866
  );
2867
2867
  });
2868
2868
  cr.displayName = "TabGroup";
2869
- const Ic = (r) => {
2869
+ const Tc = (r) => {
2870
2870
  switch (r.variant) {
2871
2871
  case "block": {
2872
2872
  const {
@@ -2934,8 +2934,8 @@ const Ic = (r) => {
2934
2934
  }
2935
2935
  }
2936
2936
  };
2937
- Ic.displayName = "Skeleton";
2938
- const Bn = [60, 80, 45, 90, 65, 75, 55, 85, 70, 50], Tc = ({
2937
+ Tc.displayName = "Skeleton";
2938
+ const Bn = [60, 80, 45, 90, 65, 75, 55, 85, 70, 50], Ec = ({
2939
2939
  bars: r = 10,
2940
2940
  maxHeight: t = 120
2941
2941
  }) => {
@@ -2967,8 +2967,8 @@ const Bn = [60, 80, 45, 90, 65, 75, 55, 85, 70, 50], Tc = ({
2967
2967
  }
2968
2968
  );
2969
2969
  };
2970
- Tc.displayName = "SkeletonChart";
2971
- const Ec = ({
2970
+ Ec.displayName = "SkeletonChart";
2971
+ const Mc = ({
2972
2972
  rows: r = 5,
2973
2973
  columns: t = 3,
2974
2974
  hasCheckbox: n = !1,
@@ -3027,8 +3027,8 @@ const Ec = ({
3027
3027
  ))
3028
3028
  ] });
3029
3029
  };
3030
- Ec.displayName = "SkeletonTable";
3031
- const Mc = ({
3030
+ Mc.displayName = "SkeletonTable";
3031
+ const Pc = ({
3032
3032
  variant: r = "value",
3033
3033
  colSpan: t = 1
3034
3034
  }) => {
@@ -3128,7 +3128,7 @@ const Mc = ({
3128
3128
  }
3129
3129
  );
3130
3130
  };
3131
- Mc.displayName = "SkeletonCard";
3131
+ Pc.displayName = "SkeletonCard";
3132
3132
  const Rn = {
3133
3133
  up: { color: "#10b981", bg: "rgba(16,185,129,0.07)" },
3134
3134
  down: { color: "#ef4444", bg: "rgba(239,68,68,0.07)" },
@@ -3397,15 +3397,15 @@ const Ca = ({ value: r = 0, max: t = 100, trendValue: n = 0, color: a = "#6b7280
3397
3397
  );
3398
3398
  };
3399
3399
  Ca.displayName = "ObjectArrow";
3400
- const Pc = { slot3: 200, slot5: 380 };
3400
+ const Bc = { slot3: 200, slot5: 380 };
3401
3401
  function wa(r, t) {
3402
- const n = Pc, a = 150, [s, o] = O(1), i = se(null), c = se(null), l = S(() => {
3402
+ const n = Bc, a = 150, [s, o] = O(1), i = ie(null), c = ie(null), l = S(() => {
3403
3403
  const m = i.current;
3404
3404
  if (m == null) return;
3405
3405
  const p = m < n.slot3 ? 1 : m < n.slot5 ? 3 : 5;
3406
3406
  o((f) => f === p ? f : p), i.current = null, c.current && (clearTimeout(c.current), c.current = null);
3407
3407
  }, [n.slot3, n.slot5]);
3408
- ie(() => {
3408
+ oe(() => {
3409
3409
  const m = r.current;
3410
3410
  if (!m || typeof ResizeObserver > "u") return;
3411
3411
  const p = new ResizeObserver((f) => {
@@ -3422,7 +3422,7 @@ function wa(r, t) {
3422
3422
  return { capacity: s, onPointerUp: u };
3423
3423
  }
3424
3424
  function ka(r) {
3425
- const { onStatusSlotClick: t } = r, n = se(null), a = si(), { capacity: s, onPointerUp: o } = wa(n), i = r.maxSlots ?? s, c = r.statuses.slice(0, i);
3425
+ const { onStatusSlotClick: t } = r, n = ie(null), a = si(), { capacity: s, onPointerUp: o } = wa(n), i = r.maxSlots ?? s, c = r.statuses.slice(0, i);
3426
3426
  if (!a) {
3427
3427
  const l = r.statuses[0];
3428
3428
  return /* @__PURE__ */ d(
@@ -3479,7 +3479,7 @@ const Ir = {
3479
3479
  up: "var(--color-positive)",
3480
3480
  down: "var(--color-negative)",
3481
3481
  flat: "var(--color-text-secondary)"
3482
- }, Bc = {
3482
+ }, Rc = {
3483
3483
  positive: "#10b981",
3484
3484
  // Used with hexToRgba() for tinted overlays -- must stay hex
3485
3485
  negative: "#ef4444",
@@ -3488,7 +3488,7 @@ const Ir = {
3488
3488
  // Used with hexToRgba() for tinted overlays -- must stay hex
3489
3489
  neutral: "#6b7280"
3490
3490
  // Used with hexToRgba() for tinted overlays -- must stay hex
3491
- }, Rc = () => /* @__PURE__ */ d(
3491
+ }, zc = () => /* @__PURE__ */ d(
3492
3492
  "svg",
3493
3493
  {
3494
3494
  "aria-label": "Warning threshold breached",
@@ -3514,7 +3514,7 @@ const Ir = {
3514
3514
  /* @__PURE__ */ e("circle", { cx: "7", cy: "10.5", r: "0.7", fill: "currentColor" })
3515
3515
  ]
3516
3516
  }
3517
- ), zc = () => /* @__PURE__ */ d(
3517
+ ), Ac = () => /* @__PURE__ */ d(
3518
3518
  "svg",
3519
3519
  {
3520
3520
  "aria-label": "Critical threshold breached",
@@ -3543,7 +3543,7 @@ const Ir = {
3543
3543
  colSpan: l = 1,
3544
3544
  isStale: u,
3545
3545
  thresholdBreach: m = "none"
3546
- } = t, p = n === "sparkline" || n === "bars" || n === "donut" ? t.accentColor ?? "#4f46e5" : "#4f46e5", f = n === "highlight" ? t.highlightColor : void 0, y = n === "sparkline" ? t.sparklineData : void 0, b = n === "bars" ? t.barData : void 0, _ = n === "donut" ? t.donutValue : 0, v = n === "donut" ? t.donutMax ?? 100 : 100, h = n === "object-arrow" ? t.objectArrowValue : 0, C = n === "object-arrow" ? t.objectArrowMax : 100, T = n === "arrow" ? t.arrowDirection : void 0, w = n === "versus" ? t.versusData : void 0, k = n === "segmented" ? t.segments : void 0, I = (f ? Bc[f] : void 0) || f, g = ee(() => or(s, {
3546
+ } = t, p = n === "sparkline" || n === "bars" || n === "donut" ? t.accentColor ?? "#4f46e5" : "#4f46e5", f = n === "highlight" ? t.highlightColor : void 0, y = n === "sparkline" ? t.sparklineData : void 0, b = n === "bars" ? t.barData : void 0, _ = n === "donut" ? t.donutValue : 0, v = n === "donut" ? t.donutMax ?? 100 : 100, h = n === "object-arrow" ? t.objectArrowValue : 0, C = n === "object-arrow" ? t.objectArrowMax : 100, T = n === "arrow" ? t.arrowDirection : void 0, w = n === "versus" ? t.versusData : void 0, k = n === "segmented" ? t.segments : void 0, I = (f ? Rc[f] : void 0) || f, g = ee(() => or(s, {
3547
3547
  prefix: o?.prefix || "",
3548
3548
  suffix: o?.suffix || "",
3549
3549
  abbreviated: o?.abbreviated
@@ -3714,8 +3714,8 @@ const Ir = {
3714
3714
  ].filter(Boolean).join(" ");
3715
3715
  return /* @__PURE__ */ d(Ge, { children: [
3716
3716
  m !== "none" && /* @__PURE__ */ e("div", { className: V }),
3717
- m === "warn" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--warn", children: /* @__PURE__ */ e(Rc, {}) }),
3718
- m === "critical" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--critical", children: /* @__PURE__ */ e(zc, {}) }),
3717
+ m === "warn" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--warn", children: /* @__PURE__ */ e(zc, {}) }),
3718
+ m === "critical" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--critical", children: /* @__PURE__ */ e(Ac, {}) }),
3719
3719
  n === "highlight" && I && /* @__PURE__ */ e(
3720
3720
  "div",
3721
3721
  {
@@ -3789,7 +3789,7 @@ const Ir = {
3789
3789
  ] });
3790
3790
  };
3791
3791
  nt.displayName = "MetricCard";
3792
- function Ac(r, t = {}) {
3792
+ function $c(r, t = {}) {
3793
3793
  const {
3794
3794
  slideDirection: n = "down",
3795
3795
  behindDuration: a = 220,
@@ -3799,7 +3799,7 @@ function Ac(r, t = {}) {
3799
3799
  zBehind: c = 1,
3800
3800
  zFront: l = 16
3801
3801
  } = t, [u, m] = O(r ? "visible" : "hidden");
3802
- ie(() => {
3802
+ oe(() => {
3803
3803
  r ? u === "hidden" || u === "exiting-behind" ? m("entering-behind") : u === "exiting-front" && m("entering-front") : u === "visible" || u === "entering-front" ? m("exiting-front") : u === "entering-behind" && m("hidden");
3804
3804
  }, [r]);
3805
3805
  const p = S(() => {
@@ -3894,7 +3894,7 @@ function Ac(r, t = {}) {
3894
3894
  }
3895
3895
  let $r = null;
3896
3896
  const Fr = /* @__PURE__ */ new Set();
3897
- function $c(r) {
3897
+ function Fc(r) {
3898
3898
  return Fr.add(r), () => {
3899
3899
  Fr.delete(r);
3900
3900
  };
@@ -3905,20 +3905,20 @@ function Tr() {
3905
3905
  function Er(r) {
3906
3906
  $r !== r && ($r = r, Fr.forEach((t) => t()));
3907
3907
  }
3908
- function Fc(r, t, n) {
3908
+ function Oc(r, t, n) {
3909
3909
  const a = Le(), s = t ?? a, o = ss(
3910
- $c,
3910
+ Fc,
3911
3911
  Tr,
3912
3912
  // SSR fallback — no menu active on server render.
3913
3913
  () => null
3914
- ), i = se(n);
3915
- return ie(() => {
3914
+ ), i = ie(n);
3915
+ return oe(() => {
3916
3916
  i.current = n;
3917
- }, [n]), ie(() => {
3917
+ }, [n]), oe(() => {
3918
3918
  r && o !== null && o !== s && i.current(!1);
3919
- }, [o, s, r]), ie(() => {
3919
+ }, [o, s, r]), oe(() => {
3920
3920
  r ? Er(s) : Tr() === s && Er(null);
3921
- }, [r, s]), ie(() => () => {
3921
+ }, [r, s]), oe(() => () => {
3922
3922
  Tr() === s && Er(null);
3923
3923
  }, [s]), { menuId: s, activeMenuId: o };
3924
3924
  }
@@ -3951,7 +3951,7 @@ const Ke = {
3951
3951
  function Kt(r, t) {
3952
3952
  return (t ? Ke.REDUCED_MOTION_MS : r) / 1e3;
3953
3953
  }
3954
- function Oc(r) {
3954
+ function Lc(r) {
3955
3955
  const t = {
3956
3956
  duration: Kt(Ke.BORDER_RADIUS_MS, r),
3957
3957
  ease: "easeOut"
@@ -3962,7 +3962,7 @@ function Oc(r) {
3962
3962
  "expanded-up": { borderRadius: "0 0 8px 8px", transition: t }
3963
3963
  };
3964
3964
  }
3965
- function Lc(r) {
3965
+ function Hc(r) {
3966
3966
  return {
3967
3967
  initial: (t) => ({
3968
3968
  opacity: 0,
@@ -3988,7 +3988,7 @@ function Lc(r) {
3988
3988
  }
3989
3989
  };
3990
3990
  }
3991
- function Hc(r) {
3991
+ function Wc(r) {
3992
3992
  return {
3993
3993
  initial: { opacity: 0, scale: 0.8 },
3994
3994
  animate: {
@@ -4009,7 +4009,7 @@ function Hc(r) {
4009
4009
  }
4010
4010
  };
4011
4011
  }
4012
- function Wc(r) {
4012
+ function Gc(r) {
4013
4013
  return {
4014
4014
  collapsed: {
4015
4015
  transition: { staggerChildren: 0, staggerDirection: -1 }
@@ -4021,22 +4021,22 @@ function Wc(r) {
4021
4021
  }
4022
4022
  };
4023
4023
  }
4024
- function Gc(r) {
4024
+ function Vc(r) {
4025
4025
  return r === "down" ? "top center" : "bottom center";
4026
4026
  }
4027
- function Vc(r, t) {
4027
+ function jc(r, t) {
4028
4028
  return r.length === 0 || r.filter((s) => !s.isPromotable).length > 0 ? !1 : r.filter((s) => s.isPromotable).length <= t;
4029
4029
  }
4030
4030
  function $n(r, t) {
4031
4031
  const n = t ?? {};
4032
4032
  return r.filter((a) => a.visibleWhen ? a.visibleWhen(n) : !0);
4033
4033
  }
4034
- const jc = "#4f46e5", Kc = "#4338ca", Yc = "rgba(79,70,229,0.14)", Uc = "#3730a3", Xc = "rgba(79,70,229,0.2)", qc = "#10b981", Zc = "#ffffff", Jc = "#10b981", Qc = "rgba(16,185,129,0.1)";
4035
- function ed(r) {
4034
+ const Kc = "#4f46e5", Yc = "#4338ca", Uc = "rgba(79,70,229,0.14)", Xc = "#3730a3", qc = "rgba(79,70,229,0.2)", Zc = "#10b981", Jc = "#ffffff", Qc = "#10b981", ed = "rgba(16,185,129,0.1)";
4035
+ function td(r) {
4036
4036
  return r.isActive ? r.id === "graph" ? "Deactivate graph" : r.id === "details" ? "Remove tab" : r.label : r.label;
4037
4037
  }
4038
- function td(r, t, n) {
4039
- const a = !!r.isActive, s = r.activeColor ?? jc, o = n === "pressed" ? Uc : n === "check" ? qc : a ? r.id === "graph" ? Zc : r.id === "details" ? Jc : s : t ? Kc : s, i = n === "pressed" ? Xc : a ? r.id === "graph" ? s : r.id === "details" ? Qc : "transparent" : t ? Yc : "transparent";
4038
+ function rd(r, t, n) {
4039
+ const a = !!r.isActive, s = r.activeColor ?? Kc, o = n === "pressed" ? Xc : n === "check" ? Zc : a ? r.id === "graph" ? Jc : r.id === "details" ? Qc : s : t ? Yc : s, i = n === "pressed" ? qc : a ? r.id === "graph" ? s : r.id === "details" ? ed : "transparent" : t ? Uc : "transparent";
4040
4040
  return {
4041
4041
  color: o,
4042
4042
  background: i,
@@ -4071,24 +4071,24 @@ const Da = (r) => {
4071
4071
  } = r, b = !i, [_, v] = O(
4072
4072
  i ? "collapsed" : "normal"
4073
4073
  );
4074
- ie(() => {
4074
+ oe(() => {
4075
4075
  if (i) {
4076
4076
  v("collapsed");
4077
4077
  return;
4078
4078
  }
4079
- const oe = setTimeout(() => v("normal"), 200);
4080
- return () => clearTimeout(oe);
4079
+ const ne = setTimeout(() => v("normal"), 200);
4080
+ return () => clearTimeout(ne);
4081
4081
  }, [i]);
4082
- const { style: h, handleTransitionEnd: C } = Ac(a, {
4082
+ const { style: h, handleTransitionEnd: C } = $c(a, {
4083
4083
  slideDirection: "down",
4084
4084
  zBehind: 1,
4085
4085
  zFront: 16
4086
- }), { menuId: T } = Fc(
4086
+ }), { menuId: T } = Oc(
4087
4087
  s,
4088
4088
  m,
4089
4089
  o
4090
- ), k = Zi() === !0, I = ee(() => Oc(k), [k]), g = ee(() => Lc(k), [k]), E = ee(() => Hc(k), [k]), x = ee(
4091
- () => Wc(k),
4090
+ ), k = Zi() === !0, I = ee(() => Lc(k), [k]), g = ee(() => Hc(k), [k]), E = ee(() => Wc(k), [k]), x = ee(
4091
+ () => Gc(k),
4092
4092
  [k]
4093
4093
  ), D = ee(
4094
4094
  () => $n(t, p),
@@ -4096,20 +4096,20 @@ const Da = (r) => {
4096
4096
  ), N = ee(
4097
4097
  () => $n(n, p),
4098
4098
  [n, p]
4099
- ), R = Math.max(0, 5 - D.length - 1), z = ee(() => N.filter((oe) => oe.isPromotable).sort((oe, xe) => oe.order - xe.order).slice(0, R), [N, R]), L = ee(() => {
4100
- const oe = new Set(z.map((xe) => xe.id));
4101
- return N.filter((xe) => !oe.has(xe.id)).sort((xe, Fe) => xe.order - Fe.order);
4099
+ ), R = Math.max(0, 5 - D.length - 1), z = ee(() => N.filter((ne) => ne.isPromotable).sort((ne, xe) => ne.order - xe.order).slice(0, R), [N, R]), L = ee(() => {
4100
+ const ne = new Set(z.map((xe) => xe.id));
4101
+ return N.filter((xe) => !ne.has(xe.id)).sort((xe, Fe) => xe.order - Fe.order);
4102
4102
  }, [N, z]), P = ee(
4103
- () => Vc(N, R),
4103
+ () => jc(N, R),
4104
4104
  [N, R]
4105
4105
  ), H = b && s, [Y, V] = O(!1);
4106
- ie(() => {
4106
+ oe(() => {
4107
4107
  s || V(!1);
4108
4108
  }, [s]);
4109
4109
  const M = u === "up" ? "top-start" : "bottom-start", { refs: W, floatingStyles: j, placement: G, context: $ } = aa({
4110
4110
  open: H,
4111
- onOpenChange: (oe) => {
4112
- oe || (V(!1), o(!1));
4111
+ onOpenChange: (ne) => {
4112
+ ne || (V(!1), o(!1));
4113
4113
  },
4114
4114
  placement: M,
4115
4115
  // quick-260418-k7k-fix-2: strategy='fixed' positions the floating menu
@@ -4120,11 +4120,20 @@ const Da = (r) => {
4120
4120
  // Fixed positioning escapes all ancestor stacking contexts WITHOUT
4121
4121
  // requiring a React Portal (AP-08 compliant).
4122
4122
  strategy: "fixed",
4123
- // offset(0): pill and menu must TOUCH to read as one L-shape. Any
4124
- // gap (previously 6px) breaks the "connected" visual. The shared
4125
- // drop-shadow (applied to menu in ActionStrip.scss) carries the
4126
- // continuity across the pill/menu seam.
4127
- middleware: [bo(0), yo(), vo({ padding: 8 })],
4123
+ // offset(0): pill and menu touch as one L-shape.
4124
+ // size(): menu width tracks pill width so the menu is never wider
4125
+ // than the strip (user-requested: "width of the menu should match
4126
+ // the strip"). Uses reference.width from floating-ui's rects.
4127
+ middleware: [
4128
+ bo(0),
4129
+ yo(),
4130
+ vo({ padding: 8 }),
4131
+ _o({
4132
+ apply({ rects: ne, elements: xe }) {
4133
+ xe.floating.style.width = `${ne.reference.width}px`;
4134
+ }
4135
+ })
4136
+ ],
4128
4137
  whileElementsMounted: ho
4129
4138
  }), K = sa($, {
4130
4139
  outsidePress: !0,
@@ -4144,39 +4153,39 @@ const Da = (r) => {
4144
4153
  ...h,
4145
4154
  transform: `translateX(-50%) ${h.transform}`,
4146
4155
  transition: be ? [h.transition, `left ${Ke.ANCHOR_X_MS}ms ease-out`].filter(Boolean).join(", ") : h.transition
4147
- }, ne = se(null);
4148
- ie(() => () => {
4149
- ne.current !== null && (clearTimeout(ne.current), ne.current = null);
4156
+ }, ae = ie(null);
4157
+ oe(() => () => {
4158
+ ae.current !== null && (clearTimeout(ae.current), ae.current = null);
4150
4159
  }, []);
4151
4160
  const ge = S(
4152
- (oe) => {
4161
+ (ne) => {
4153
4162
  if (!H || Y) return;
4154
- const xe = oe.nativeEvent?.relatedTarget, Fe = oe.relatedTarget, He = xe ?? Fe;
4155
- He && typeof He.closest == "function" && He.closest("[data-action-strip]") || (ne.current !== null && clearTimeout(ne.current), ne.current = setTimeout(() => {
4156
- ne.current = null, o(!1);
4163
+ const xe = ne.nativeEvent?.relatedTarget, Fe = ne.relatedTarget, He = xe ?? Fe;
4164
+ He && typeof He.closest == "function" && He.closest("[data-action-strip]") || (ae.current !== null && clearTimeout(ae.current), ae.current = setTimeout(() => {
4165
+ ae.current = null, o(!1);
4157
4166
  }, Ke.GRACE_CLOSE_MS));
4158
4167
  },
4159
4168
  [H, Y, o]
4160
4169
  ), Me = S(() => {
4161
- ne.current !== null && (clearTimeout(ne.current), ne.current = null);
4170
+ ae.current !== null && (clearTimeout(ae.current), ae.current = null);
4162
4171
  }, []), Ce = S(() => {
4163
- const oe = !s;
4164
- V(!!oe), o(oe);
4172
+ const ne = !s;
4173
+ V(!!ne), o(ne);
4165
4174
  }, [s, o]), [we, Ye] = O(
4166
4175
  {}
4167
- ), Te = se(
4176
+ ), Te = ie(
4168
4177
  {}
4169
4178
  );
4170
- ie(() => () => {
4171
- for (const oe of Object.values(Te.current))
4172
- for (const xe of oe) clearTimeout(xe);
4179
+ oe(() => () => {
4180
+ for (const ne of Object.values(Te.current))
4181
+ for (const xe of ne) clearTimeout(xe);
4173
4182
  Te.current = {};
4174
4183
  }, []);
4175
- const me = S((oe) => {
4176
- const xe = oe.id;
4184
+ const me = S((ne) => {
4185
+ const xe = ne.id;
4177
4186
  Te.current[xe] || (Te.current[xe] = []), Ye((He) => ({ ...He, [xe]: "pressed" }));
4178
4187
  const Fe = setTimeout(() => {
4179
- oe.onClick(), Ye((ke) => ({ ...ke, [xe]: "check" }));
4188
+ ne.onClick(), Ye((ke) => ({ ...ke, [xe]: "check" }));
4180
4189
  const He = setTimeout(() => {
4181
4190
  Ye((ke) => {
4182
4191
  const Be = { ...ke };
@@ -4187,12 +4196,12 @@ const Da = (r) => {
4187
4196
  }, Ke.FEEDBACK_PRESS_MS);
4188
4197
  Te.current[xe]?.push(Fe);
4189
4198
  }, []), _e = S(
4190
- (oe) => {
4191
- if (!oe.showFeedback) {
4192
- oe.onClick();
4199
+ (ne) => {
4200
+ if (!ne.showFeedback) {
4201
+ ne.onClick();
4193
4202
  return;
4194
4203
  }
4195
- me(oe);
4204
+ me(ne);
4196
4205
  },
4197
4206
  [me]
4198
4207
  ), [Ve, Ne] = O(null);
@@ -4263,7 +4272,7 @@ const Da = (r) => {
4263
4272
  },
4264
4273
  title: "Done",
4265
4274
  onClick: c,
4266
- children: /* @__PURE__ */ e(No, { style: { fontSize: 16 } })
4275
+ children: /* @__PURE__ */ e(So, { style: { fontSize: 16 } })
4267
4276
  }
4268
4277
  ) : null,
4269
4278
  /* @__PURE__ */ d(
@@ -4273,25 +4282,25 @@ const Da = (r) => {
4273
4282
  "data-pill-mode": _,
4274
4283
  style: ce,
4275
4284
  children: [
4276
- D.map((oe) => {
4277
- const xe = we[oe.id] ?? "none", Fe = Ve === oe.id, He = oe.isActive && oe.activeIcon || xe === "check";
4285
+ D.map((ne) => {
4286
+ const xe = we[ne.id] ?? "none", Fe = Ve === ne.id, He = ne.isActive && ne.activeIcon || xe === "check";
4278
4287
  return /* @__PURE__ */ e(
4279
4288
  "button",
4280
4289
  {
4281
4290
  type: "button",
4282
4291
  className: "gloss-action-strip__icon-slot",
4283
- "data-action-id": oe.id,
4292
+ "data-action-id": ne.id,
4284
4293
  "data-action-kind": "primary",
4285
4294
  "data-feedback-state": xe,
4286
- "data-active": oe.isActive ? "true" : "false",
4287
- title: ed(oe),
4288
- onClick: () => _e(oe),
4289
- onMouseEnter: () => Ne(oe.id),
4290
- onMouseLeave: () => Ne((ke) => ke === oe.id ? null : ke),
4291
- style: td(oe, Fe, xe),
4292
- children: He ? xe === "check" ? oe.activeIcon ?? /* @__PURE__ */ e(Dt, { style: { fontSize: 16 } }) : oe.activeIcon : oe.icon
4295
+ "data-active": ne.isActive ? "true" : "false",
4296
+ title: td(ne),
4297
+ onClick: () => _e(ne),
4298
+ onMouseEnter: () => Ne(ne.id),
4299
+ onMouseLeave: () => Ne((ke) => ke === ne.id ? null : ke),
4300
+ style: rd(ne, Fe, xe),
4301
+ children: He ? xe === "check" ? ne.activeIcon ?? /* @__PURE__ */ e(Dt, { style: { fontSize: 16 } }) : ne.activeIcon : ne.icon
4293
4302
  },
4294
- oe.id
4303
+ ne.id
4295
4304
  );
4296
4305
  }),
4297
4306
  /* @__PURE__ */ e(
@@ -4303,20 +4312,20 @@ const Da = (r) => {
4303
4312
  variants: x,
4304
4313
  animate: H ? "expanded" : "collapsed",
4305
4314
  initial: "collapsed",
4306
- children: /* @__PURE__ */ e(Rr, { mode: "popLayout", initial: !1, children: H ? z.map((oe) => /* @__PURE__ */ e(
4315
+ children: /* @__PURE__ */ e(Rr, { mode: "popLayout", initial: !1, children: H ? z.map((ne) => /* @__PURE__ */ e(
4307
4316
  Ct.span,
4308
4317
  {
4309
4318
  className: "gloss-action-strip__icon-slot",
4310
- "data-action-id": oe.id,
4319
+ "data-action-id": ne.id,
4311
4320
  "data-action-kind": "promoted",
4312
- title: oe.label,
4321
+ title: ne.label,
4313
4322
  variants: E,
4314
4323
  initial: "initial",
4315
4324
  animate: "animate",
4316
4325
  exit: "exit",
4317
- children: oe.icon ?? null
4326
+ children: ne.icon ?? null
4318
4327
  },
4319
- oe.id
4328
+ ne.id
4320
4329
  )) : null })
4321
4330
  }
4322
4331
  ),
@@ -4370,25 +4379,25 @@ const Da = (r) => {
4370
4379
  animate: "animate",
4371
4380
  exit: "exit",
4372
4381
  style: {
4373
- transformOrigin: Gc(te)
4382
+ transformOrigin: Vc(te)
4374
4383
  },
4375
- children: L.map((oe) => /* @__PURE__ */ d(
4384
+ children: L.map((ne) => /* @__PURE__ */ d(
4376
4385
  "button",
4377
4386
  {
4378
4387
  type: "button",
4379
4388
  className: "gloss-action-strip__menu-item",
4380
- "data-action-id": oe.id,
4381
- "data-action-kind": oe.isPromotable ? "overflow" : "footer",
4389
+ "data-action-id": ne.id,
4390
+ "data-action-kind": ne.isPromotable ? "overflow" : "footer",
4382
4391
  role: "menuitem",
4383
4392
  onClick: () => {
4384
- oe.onClick();
4393
+ ne.onClick();
4385
4394
  },
4386
4395
  children: [
4387
- oe.icon ? /* @__PURE__ */ e("span", { className: "gloss-action-strip__menu-icon", children: oe.icon }) : null,
4388
- /* @__PURE__ */ e("span", { children: oe.label })
4396
+ ne.icon ? /* @__PURE__ */ e("span", { className: "gloss-action-strip__menu-icon", children: ne.icon }) : null,
4397
+ /* @__PURE__ */ e("span", { children: ne.label })
4389
4398
  ]
4390
4399
  },
4391
- oe.id
4400
+ ne.id
4392
4401
  ))
4393
4402
  },
4394
4403
  "action-strip-menu"
@@ -4403,12 +4412,12 @@ const Da = (r) => {
4403
4412
  ) });
4404
4413
  };
4405
4414
  Da.displayName = "ActionStrip";
4406
- const Zm = [
4415
+ const Jm = [
4407
4416
  "settings",
4408
4417
  "remove",
4409
4418
  "replace"
4410
- ], Jm = ["whats-this"];
4411
- function rd(r) {
4419
+ ], Qm = ["whats-this"];
4420
+ function nd(r) {
4412
4421
  const t = [];
4413
4422
  let n = 0;
4414
4423
  return r.onSettings && t.push({
@@ -4456,7 +4465,7 @@ function rd(r) {
4456
4465
  order: n++
4457
4466
  }), t;
4458
4467
  }
4459
- const nd = [
4468
+ const ad = [
4460
4469
  { id: "7D", label: "7D" },
4461
4470
  { id: "30D", label: "30D" },
4462
4471
  { id: "MTD", label: "MTD" },
@@ -4575,7 +4584,7 @@ const nd = [
4575
4584
  {
4576
4585
  definition: { display: "grid", gap: "6px" },
4577
4586
  style: { gridTemplateColumns: "repeat(3, 1fr)", flex: 1, alignContent: "center" },
4578
- children: nd.map((v) => {
4587
+ children: ad.map((v) => {
4579
4588
  const h = _ ? p.has(v.id) : u === v.id;
4580
4589
  return /* @__PURE__ */ e(
4581
4590
  "button",
@@ -4645,8 +4654,8 @@ const at = function({
4645
4654
  extensionOverflow: j,
4646
4655
  cardRef: G
4647
4656
  }) {
4648
- const [$, K] = O(!1), [Z, U] = O(!1), [X, te] = O(!1), pe = se(null), ce = se(!1), be = se(null), de = G ?? be, ne = se(null), ge = se(null), Me = t ?? n, Ce = S(() => {
4649
- ne.current = null, ge.current = null, te(!0);
4657
+ const [$, K] = O(!1), [Z, U] = O(!1), [X, te] = O(!1), pe = ie(null), ce = ie(!1), be = ie(null), de = G ?? be, ae = ie(null), ge = ie(null), Me = t ?? n, Ce = S(() => {
4658
+ ae.current = null, ge.current = null, te(!0);
4650
4659
  }, []), we = S(() => {
4651
4660
  if (z) {
4652
4661
  const Ne = ge.current;
@@ -4654,13 +4663,13 @@ const at = function({
4654
4663
  return;
4655
4664
  te(!1), Ne && Ne.length >= 2 && L && L(Ne);
4656
4665
  } else
4657
- te(!1), ne.current && g && g(ne.current);
4666
+ te(!1), ae.current && g && g(ae.current);
4658
4667
  }, [g, L, z]), Ye = S((Ne) => {
4659
- ne.current = Ne;
4668
+ ae.current = Ne;
4660
4669
  }, []);
4661
- ie(() => () => {
4670
+ oe(() => () => {
4662
4671
  pe.current && clearTimeout(pe.current);
4663
- }, []), ie(() => {
4672
+ }, []), oe(() => {
4664
4673
  c && (K(!1), pe.current && (clearTimeout(pe.current), pe.current = null));
4665
4674
  }, [c]);
4666
4675
  const Te = S(() => {
@@ -4672,7 +4681,7 @@ const at = function({
4672
4681
  }
4673
4682
  ce.current = !1, pe.current = setTimeout(() => K(!1), 180);
4674
4683
  }, [Z]);
4675
- ie(() => {
4684
+ oe(() => {
4676
4685
  !Z && ce.current && (ce.current = !1, pe.current = setTimeout(() => K(!1), 180));
4677
4686
  }, [Z]);
4678
4687
  const _e = $ || Z, Ve = [
@@ -4806,13 +4815,13 @@ const at = function({
4806
4815
  label: "Open details in new tab",
4807
4816
  onClick: T
4808
4817
  });
4809
- const oe = rd({
4818
+ const ne = nd({
4810
4819
  onSettings: I ? Ce : void 0,
4811
4820
  onRemove: y,
4812
4821
  onReplace: C,
4813
4822
  onRefresh: k,
4814
4823
  onWhatsThis: b
4815
- }), xe = oe.filter((Re) => Re.id === "whats-this"), Fe = oe.filter((Re) => Re.id !== "whats-this"), ke = (j ?? []).map((Re, lt) => ({
4824
+ }), xe = ne.filter((Re) => Re.id === "whats-this"), Fe = ne.filter((Re) => Re.id !== "whats-this"), ke = (j ?? []).map((Re, lt) => ({
4816
4825
  ...Re,
4817
4826
  order: Fe.length + lt
4818
4827
  })), Be = xe.map((Re, lt) => ({
@@ -4848,10 +4857,10 @@ const at = function({
4848
4857
  );
4849
4858
  };
4850
4859
  at.displayName = "CardShell";
4851
- function ad(r) {
4860
+ function sd(r) {
4852
4861
  return r === 1 ? 1 : r === 2 ? 3 : 5;
4853
4862
  }
4854
- const sd = function(t) {
4863
+ const id = function(t) {
4855
4864
  const {
4856
4865
  title: n,
4857
4866
  prefix: a = "",
@@ -4869,8 +4878,8 @@ const sd = function(t) {
4869
4878
  sparklineInset: _ = "padded",
4870
4879
  slotToActionStripConfig: v,
4871
4880
  onSlotActionStripConfigChange: h
4872
- } = t, C = u || i[i.length - 1] || "YTD", T = p ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", w = se(!1);
4873
- ie(() => {
4881
+ } = t, C = u || i[i.length - 1] || "YTD", T = p ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", w = ie(!1);
4882
+ oe(() => {
4874
4883
  if (w.current) return;
4875
4884
  const M = "onTableAction" in t;
4876
4885
  v && M && (console.warn(
@@ -4894,10 +4903,10 @@ const sd = function(t) {
4894
4903
  h?.(M, j);
4895
4904
  },
4896
4905
  [y, v, h]
4897
- ), I = se(null), g = S(() => {
4906
+ ), I = ie(null), g = S(() => {
4898
4907
  I.current !== null && (clearTimeout(I.current), I.current = null);
4899
4908
  }, []);
4900
- ie(() => () => {
4909
+ oe(() => () => {
4901
4910
  I.current !== null && (clearTimeout(I.current), I.current = null);
4902
4911
  }, []);
4903
4912
  const E = S(
@@ -4913,7 +4922,7 @@ const sd = function(t) {
4913
4922
  g(), x(M, W);
4914
4923
  },
4915
4924
  [x, g]
4916
- ), N = !!y || !!v, R = !!b || !!v, z = se(null), { capacity: L } = wa(z), P = f != null ? ad(f) : L, H = ee(() => i.map((M, W) => {
4925
+ ), N = !!y || !!v, R = !!b || !!v, z = ie(null), { capacity: L } = wa(z), P = f != null ? sd(f) : L, H = ee(() => i.map((M, W) => {
4917
4926
  const j = o.find((K) => K.timeframe === M) || o[W], G = j?.value ?? null, $ = or(G, { prefix: a, suffix: s, abbreviated: !0 });
4918
4927
  return {
4919
4928
  timeframe: M,
@@ -4999,7 +5008,7 @@ const sd = function(t) {
4999
5008
  {
5000
5009
  title: M.formatted.full,
5001
5010
  style: {
5002
- fontSize: id(M.formatted.length),
5011
+ fontSize: od(M.formatted.length),
5003
5012
  fontWeight: 700,
5004
5013
  color: "var(--color-text-primary, #111827)",
5005
5014
  lineHeight: 1.1,
@@ -5039,8 +5048,8 @@ const sd = function(t) {
5039
5048
  )
5040
5049
  ] });
5041
5050
  };
5042
- sd.displayName = "StackedGroupCard";
5043
- function id(r) {
5051
+ id.displayName = "StackedGroupCard";
5052
+ function od(r) {
5044
5053
  return r <= 4 ? 22 : r <= 6 ? 18 : r <= 8 ? 15 : 13;
5045
5054
  }
5046
5055
  const Or = {
@@ -5051,7 +5060,7 @@ const Or = {
5051
5060
  // Phase 17: backside-picker overlay section (null = no section open).
5052
5061
  openSection: null
5053
5062
  };
5054
- function od(r, t) {
5063
+ function ld(r, t) {
5055
5064
  switch (t.type) {
5056
5065
  case "BEGIN_CONFIG":
5057
5066
  return r.activeCardId === t.cardId ? {
@@ -5088,8 +5097,8 @@ function od(r, t) {
5088
5097
  return r;
5089
5098
  }
5090
5099
  }
5091
- function ld(r) {
5092
- const [t, n] = is(od, Or), { onCommit: a } = r ?? {}, s = S((u, m) => {
5100
+ function cd(r) {
5101
+ const [t, n] = is(ld, Or), { onCommit: a } = r ?? {}, s = S((u, m) => {
5093
5102
  if (!u) {
5094
5103
  (typeof process > "u" || process.env.NODE_ENV !== "production") && console.warn(
5095
5104
  "[useFlipAndStage] beginConfig called with null or empty cardId — ignoring."
@@ -5126,8 +5135,8 @@ function ld(r) {
5126
5135
  }
5127
5136
  const gr = Yt(null);
5128
5137
  gr.displayName = "FlipAndStageContext";
5129
- function Qm({ children: r }) {
5130
- const t = ld(), n = ee(
5138
+ function ep({ children: r }) {
5139
+ const t = cd(), n = ee(
5131
5140
  () => t,
5132
5141
  [
5133
5142
  t.state,
@@ -5146,16 +5155,16 @@ function Qm({ children: r }) {
5146
5155
  );
5147
5156
  return /* @__PURE__ */ e(gr.Provider, { value: n, children: r });
5148
5157
  }
5149
- function ep() {
5158
+ function tp() {
5150
5159
  const r = Ut(gr);
5151
5160
  if (r === null)
5152
5161
  throw new Error("useFlipAndStageContext must be inside FlipAndStageProvider");
5153
5162
  return r;
5154
5163
  }
5155
- function cd() {
5164
+ function dd() {
5156
5165
  return Ut(gr);
5157
5166
  }
5158
- const dd = {
5167
+ const ud = {
5159
5168
  /** Delay before flip animation begins (ms). */
5160
5169
  flipStart: 50,
5161
5170
  /** Duration of panel extrude animation (ms). */
@@ -5164,7 +5173,7 @@ const dd = {
5164
5173
  settle: 100,
5165
5174
  /** Total choreography duration (ms). */
5166
5175
  total: 350
5167
- }, ud = 130, md = 45, pd = 45, fd = {
5176
+ }, md = 130, pd = 45, fd = 45, gd = {
5168
5177
  width: "100%",
5169
5178
  height: "100%",
5170
5179
  "& .MuiDataGrid-main": {
@@ -5351,16 +5360,16 @@ const dd = {
5351
5360
  textAlign: "start"
5352
5361
  }
5353
5362
  };
5354
- function gd(r) {
5363
+ function hd(r) {
5355
5364
  return r.map((t) => {
5356
- if ((t.width || t.minWidth || 150) <= ud && !String(t.headerClassName || "").includes("dropdown-header") && t.disableColumnMenu !== !0) {
5365
+ if ((t.width || t.minWidth || 150) <= md && !String(t.headerClassName || "").includes("dropdown-header") && t.disableColumnMenu !== !0) {
5357
5366
  const a = [t.headerClassName, "narrow-header"].filter(Boolean).join(" ").trim();
5358
5367
  return { ...t, headerClassName: a };
5359
5368
  }
5360
5369
  return t;
5361
5370
  });
5362
5371
  }
5363
- function hd(r) {
5372
+ function bd(r) {
5364
5373
  const t = r.map((n) => {
5365
5374
  const a = {
5366
5375
  field: n.field,
@@ -5387,15 +5396,15 @@ function hd(r) {
5387
5396
  }
5388
5397
  return a;
5389
5398
  });
5390
- return gd(t);
5399
+ return hd(t);
5391
5400
  }
5392
- function bd(r) {
5401
+ function yd(r) {
5393
5402
  return r.map((t) => ({ field: t.field, sort: t.sort }));
5394
5403
  }
5395
- function yd(r) {
5404
+ function vd(r) {
5396
5405
  return r.filter((t) => t.sort != null).map((t) => ({ field: t.field, sort: t.sort }));
5397
5406
  }
5398
- function vd(r) {
5407
+ function _d(r) {
5399
5408
  const {
5400
5409
  data: t,
5401
5410
  columns: n,
@@ -5407,17 +5416,17 @@ function vd(r) {
5407
5416
  pagination: l,
5408
5417
  activeFilters: u,
5409
5418
  onFilterRemove: m,
5410
- rowHeight: p = md,
5411
- headerHeight: f = pd,
5419
+ rowHeight: p = pd,
5420
+ headerHeight: f = fd,
5412
5421
  onCellClick: y,
5413
5422
  onContextMenu: b,
5414
5423
  getRowId: _
5415
- } = r, v = ci(), h = ee(() => hd(n), [n]), C = ee(
5416
- () => i ? bd(i) : [],
5424
+ } = r, v = ci(), h = ee(() => bd(n), [n]), C = ee(
5425
+ () => i ? yd(i) : [],
5417
5426
  [i]
5418
5427
  ), T = S(
5419
5428
  (D) => {
5420
- c?.(yd(D));
5429
+ c?.(vd(D));
5421
5430
  },
5422
5431
  [c]
5423
5432
  ), w = ee(() => {
@@ -5462,7 +5471,7 @@ function vd(r) {
5462
5471
  },
5463
5472
  rowCount: l.total,
5464
5473
  paginationMode: "server"
5465
- } : { autoPageSize: !0 }, [l]), x = ee(() => fd, []);
5474
+ } : { autoPageSize: !0 }, [l]), x = ee(() => gd, []);
5466
5475
  return s ? /* @__PURE__ */ e(
5467
5476
  he,
5468
5477
  {
@@ -5529,8 +5538,8 @@ function vd(r) {
5529
5538
  ) })
5530
5539
  ] });
5531
5540
  }
5532
- const _d = q.memo(vd);
5533
- _d.displayName = "UnifiedBreakdownTable";
5541
+ const xd = q.memo(_d);
5542
+ xd.displayName = "UnifiedBreakdownTable";
5534
5543
  const Ta = q.memo(({
5535
5544
  selections: r,
5536
5545
  metricGroup: t,
@@ -5601,7 +5610,7 @@ const Fn = () => /* @__PURE__ */ d(
5601
5610
  /* @__PURE__ */ e("line", { x1: "10.2", y1: "10.2", x2: "13.5", y2: "13.5" })
5602
5611
  ]
5603
5612
  }
5604
- ), xd = () => /* @__PURE__ */ d(
5613
+ ), Nd = () => /* @__PURE__ */ d(
5605
5614
  "svg",
5606
5615
  {
5607
5616
  width: "8",
@@ -5616,7 +5625,7 @@ const Fn = () => /* @__PURE__ */ d(
5616
5625
  /* @__PURE__ */ e("line", { x1: "10", y1: "2", x2: "2", y2: "10" })
5617
5626
  ]
5618
5627
  }
5619
- ), On = 8, Nd = {
5628
+ ), On = 8, Sd = {
5620
5629
  position: "absolute",
5621
5630
  left: 0,
5622
5631
  right: 0,
@@ -5629,7 +5638,7 @@ const Fn = () => /* @__PURE__ */ d(
5629
5638
  maxHeight: "240px",
5630
5639
  overflowY: "auto",
5631
5640
  zIndex: 10
5632
- }, Sd = {
5641
+ }, Cd = {
5633
5642
  padding: "8px 14px",
5634
5643
  fontSize: "12px",
5635
5644
  fontFamily: "'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif",
@@ -5648,15 +5657,15 @@ const Fn = () => /* @__PURE__ */ d(
5648
5657
  fading: i,
5649
5658
  options: c
5650
5659
  }) => {
5651
- const [l, u] = O(!1), [m, p] = O(-1), f = se(null), y = se(null), b = se(null), _ = q.useCallback((g) => g.label || g.name || g.id, []), v = q.useMemo(() => {
5660
+ const [l, u] = O(!1), [m, p] = O(-1), f = ie(null), y = ie(null), b = ie(null), _ = q.useCallback((g) => g.label || g.name || g.id, []), v = q.useMemo(() => {
5652
5661
  if (!c || c.length === 0) return [];
5653
5662
  if (!r.trim()) return c.slice(0, On);
5654
5663
  const g = r.toLowerCase();
5655
5664
  return c.filter((E) => _(E).toLowerCase().includes(g)).slice(0, On);
5656
5665
  }, [c, r, _]), h = l && v.length > 0 && !o;
5657
- ie(() => {
5666
+ oe(() => {
5658
5667
  p(-1);
5659
- }, [r]), ie(() => {
5668
+ }, [r]), oe(() => {
5660
5669
  if (m >= 0 && b.current) {
5661
5670
  const g = b.current.children;
5662
5671
  g[m] && g[m].scrollIntoView({ block: "nearest" });
@@ -5677,7 +5686,7 @@ const Fn = () => /* @__PURE__ */ d(
5677
5686
  u(!1), p(-1);
5678
5687
  }, 150);
5679
5688
  }, []);
5680
- ie(() => () => {
5689
+ oe(() => () => {
5681
5690
  y.current && clearTimeout(y.current);
5682
5691
  }, []);
5683
5692
  const I = {
@@ -5732,7 +5741,7 @@ const Fn = () => /* @__PURE__ */ d(
5732
5741
  onMouseLeave: (g) => {
5733
5742
  g.currentTarget.style.background = "transparent", g.currentTarget.style.color = "rgba(0,0,0,0.22)";
5734
5743
  },
5735
- children: /* @__PURE__ */ e(xd, {})
5744
+ children: /* @__PURE__ */ e(Nd, {})
5736
5745
  }
5737
5746
  )
5738
5747
  ] }) : /* @__PURE__ */ d(
@@ -5788,7 +5797,7 @@ const Fn = () => /* @__PURE__ */ d(
5788
5797
  animation: "blink 1s step-end infinite"
5789
5798
  } }) })
5790
5799
  ] }),
5791
- h && /* @__PURE__ */ e("div", { ref: b, style: Nd, children: v.map((g, E) => /* @__PURE__ */ e(
5800
+ h && /* @__PURE__ */ e("div", { ref: b, style: Sd, children: v.map((g, E) => /* @__PURE__ */ e(
5792
5801
  "div",
5793
5802
  {
5794
5803
  onMouseDown: (x) => {
@@ -5796,7 +5805,7 @@ const Fn = () => /* @__PURE__ */ d(
5796
5805
  },
5797
5806
  onMouseEnter: () => p(E),
5798
5807
  style: {
5799
- ...Sd,
5808
+ ...Cd,
5800
5809
  background: E === m ? "rgba(79,70,229,0.08)" : "transparent"
5801
5810
  },
5802
5811
  children: _(g)
@@ -5808,7 +5817,7 @@ const Fn = () => /* @__PURE__ */ d(
5808
5817
  );
5809
5818
  });
5810
5819
  Lr.displayName = "FilterInput";
5811
- const Cd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", Nt = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", St = "0.25s cubic-bezier(0.4, 0, 1, 1)", Ea = q.memo(({
5820
+ const wd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", Nt = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", St = "0.25s cubic-bezier(0.4, 0, 1, 1)", Ea = q.memo(({
5812
5821
  showRow2: r,
5813
5822
  showItemFilter: t,
5814
5823
  showEntityFilter: n,
@@ -5868,7 +5877,7 @@ const Cd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5868
5877
  width: s.width,
5869
5878
  transform: n ? "translateY(0)" : "translateY(-100%)",
5870
5879
  opacity: n ? 1 : 0,
5871
- transition: `${Cd}, transform ${n ? Nt : St}, opacity ${n ? Nt : St}`,
5880
+ transition: `${wd}, transform ${n ? Nt : St}, opacity ${n ? Nt : St}`,
5872
5881
  pointerEvents: n ? "auto" : "none"
5873
5882
  }, children: /* @__PURE__ */ e(
5874
5883
  Lr,
@@ -5885,7 +5894,7 @@ const Cd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5885
5894
  ) })
5886
5895
  ] }) }));
5887
5896
  Ea.displayName = "Row2FilterTray";
5888
- const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", wd = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", kd = "0.25s cubic-bezier(0.4, 0, 1, 1)", Hr = q.memo(({
5897
+ const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", kd = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", Dd = "0.25s cubic-bezier(0.4, 0, 1, 1)", Hr = q.memo(({
5889
5898
  pillLeft: r,
5890
5899
  pillWidth: t,
5891
5900
  pillTop: n,
@@ -5913,7 +5922,7 @@ const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5913
5922
  height: l ? i - n + 1 : a,
5914
5923
  background: "#fff",
5915
5924
  borderRadius: l ? "8px 8px 0 0" : "8px",
5916
- transition: `${sr}, height ${l ? wd : kd}, border-radius 0.15s ease`
5925
+ transition: `${sr}, height ${l ? kd : Dd}, border-radius 0.15s ease`
5917
5926
  } }),
5918
5927
  l && /* @__PURE__ */ e("div", { style: {
5919
5928
  position: "absolute",
@@ -5952,16 +5961,16 @@ const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5952
5961
  ] });
5953
5962
  });
5954
5963
  Hr.displayName = "FusedShape";
5955
- const Dd = {
5964
+ const Id = {
5956
5965
  itemPill: { left: 0, width: 0, top: 0, height: 0 },
5957
5966
  itemFilter: { left: 0, width: 0, top: 0, height: 32 },
5958
5967
  entityPill: { left: 0, width: 0, top: 0, height: 0 },
5959
5968
  entityFilter: { left: 0, width: 0, top: 0, height: 32 },
5960
5969
  tracks: []
5961
5970
  };
5962
- function Id(r, t, n, a, s, o, i, c, l, u) {
5963
- const [m, p] = O(Dd);
5964
- return ie(() => {
5971
+ function Td(r, t, n, a, s, o, i, c, l, u) {
5972
+ const [m, p] = O(Id);
5973
+ return oe(() => {
5965
5974
  const f = () => {
5966
5975
  const b = r.current, _ = t.current, v = n.current, h = a.current;
5967
5976
  if (!b || !_ || !v || !h) return;
@@ -6006,7 +6015,7 @@ function Id(r, t, n, a, s, o, i, c, l, u) {
6006
6015
  o
6007
6016
  ]), m;
6008
6017
  }
6009
- const Td = q.memo(({
6018
+ const Ed = q.memo(({
6010
6019
  vizState: r,
6011
6020
  onTypeChange: t,
6012
6021
  onQuantChange: n,
@@ -6045,7 +6054,7 @@ const Td = q.memo(({
6045
6054
  id: me.id,
6046
6055
  label: me.label || me.name || me.id
6047
6056
  }))
6048
- }), [y, l]), [T, w] = O(!1), [k, I] = O(!1), [g, E] = O(null), [x, D] = O(null), [N, R] = O(""), [z, L] = O(""), [P, H] = O(!1), Y = _.entity === "items" && T, V = k, M = Y || V, W = se(null), j = se(null), G = se(null), $ = se(null), K = se({}), Z = se({}), U = Id(
6057
+ }), [y, l]), [T, w] = O(!1), [k, I] = O(!1), [g, E] = O(null), [x, D] = O(null), [N, R] = O(""), [z, L] = O(""), [P, H] = O(!1), Y = _.entity === "items" && T, V = k, M = Y || V, W = ie(null), j = ie(null), G = ie(null), $ = ie(null), K = ie({}), Z = ie({}), U = Td(
6049
6058
  W,
6050
6059
  j,
6051
6060
  G,
@@ -6056,12 +6065,12 @@ const Td = q.memo(({
6056
6065
  M,
6057
6066
  g,
6058
6067
  x
6059
- ), X = se(_.dimension), te = se(null);
6060
- ie(() => (X.current !== _.dimension && (te.current && clearTimeout(te.current), H(!0), te.current = setTimeout(() => H(!1), 150)), X.current = _.dimension, () => {
6068
+ ), X = ie(_.dimension), te = ie(null);
6069
+ oe(() => (X.current !== _.dimension && (te.current && clearTimeout(te.current), H(!0), te.current = setTimeout(() => H(!1), 150)), X.current = _.dimension, () => {
6061
6070
  te.current && clearTimeout(te.current);
6062
6071
  }), [_.dimension]);
6063
- const pe = se({ id: null, name: null }), ce = se({ id: null, name: null });
6064
- ie(() => {
6072
+ const pe = ie({ id: null, name: null }), ce = ie({ id: null, name: null });
6073
+ oe(() => {
6065
6074
  const me = r.entity?.id ?? null, _e = r.entity?.name ?? null, Ve = r.byItem?.id ?? null, Ne = r.byItem?.name ?? null;
6066
6075
  (me !== pe.current.id || _e !== pe.current.name) && (pe.current = { id: me, name: _e }, me && _e ? (D(_e), I(!0), L("")) : D(null)), (Ve !== ce.current.id || Ne !== ce.current.name) && (ce.current = { id: Ve, name: Ne }, Ve && Ne ? (E(Ne), w(!0), R("")) : E(null));
6067
6076
  }, [r.entity?.id, r.entity?.name, r.byItem?.id, r.byItem?.name]);
@@ -6069,7 +6078,7 @@ const Td = q.memo(({
6069
6078
  me === "metric" ? n(_e) : me === "entity" ? (t(_e), _e !== "items" && w(!1)) : me === "dimension" && a(_e);
6070
6079
  }, [n, t, a]), de = S(() => {
6071
6080
  _.entity === "items" && w((me) => !me);
6072
- }, [_.entity]), ne = S(() => {
6081
+ }, [_.entity]), ae = S(() => {
6073
6082
  I((me) => !me);
6074
6083
  }, []), ge = S((me) => {
6075
6084
  E(me), R(""), o(me, me);
@@ -6134,7 +6143,7 @@ const Td = q.memo(({
6134
6143
  dimensionGroup: C,
6135
6144
  onSelect: be,
6136
6145
  onEntityToggle: de,
6137
- onDimensionToggle: ne,
6146
+ onDimensionToggle: ae,
6138
6147
  metricGroupRef: j,
6139
6148
  entityGroupRef: G,
6140
6149
  dimensionGroupRef: $,
@@ -6173,20 +6182,20 @@ const Td = q.memo(({
6173
6182
  ) })
6174
6183
  ] });
6175
6184
  });
6176
- Td.displayName = "ChartControlBar";
6177
- const tp = {
6185
+ Ed.displayName = "ChartControlBar";
6186
+ const rp = {
6178
6187
  customer: { routeKey: "customer.profile", paramKey: "customerId", icon: "Person" },
6179
6188
  manufacturer: { routeKey: "manufacturer.profile", paramKey: "manufacturerId", icon: "Business" },
6180
6189
  salesperson: { routeKey: "salesperson.profile", paramKey: "salespersonId", icon: "Person" }
6181
- }, rp = {
6190
+ }, np = {
6182
6191
  customer: "customerId",
6183
6192
  manufacturer: "manufacturerId",
6184
6193
  salesperson: "salespersonId"
6185
- }, np = {
6194
+ }, ap = {
6186
6195
  customer: "customers",
6187
6196
  manufacturer: "manufacturers",
6188
6197
  salesperson: "salespeople"
6189
- }, Ed = [
6198
+ }, Md = [
6190
6199
  // ════════════════════════════════════════════════════════════════════════════
6191
6200
  // TAB ACTIONS SECTION
6192
6201
  // ════════════════════════════════════════════════════════════════════════════
@@ -6592,10 +6601,10 @@ const tp = {
6592
6601
  labelFn: (r) => `View ${r.manufacturerName || "Manufacturer"}`
6593
6602
  }
6594
6603
  ];
6595
- function Md(r, t = {}) {
6596
- return Ed.filter((n) => !(!n.cellKinds.includes(r) || n.entityTypes && t.entityType && !n.entityTypes.includes(t.entityType) || n.roleVisibility && t.userType && !n.roleVisibility.includes(t.userType) || n.statusFilter && t.orderStatus && !n.statusFilter.includes(t.orderStatus) || n.tableTypes && t.tableType && !n.tableTypes.includes(t.tableType) || n.fields && t.field && !n.fields.includes(t.field) || n.id === "who-purchased" && r === "numeric" && (t.tableType !== "items" || t.field !== "sold")));
6604
+ function Pd(r, t = {}) {
6605
+ return Md.filter((n) => !(!n.cellKinds.includes(r) || n.entityTypes && t.entityType && !n.entityTypes.includes(t.entityType) || n.roleVisibility && t.userType && !n.roleVisibility.includes(t.userType) || n.statusFilter && t.orderStatus && !n.statusFilter.includes(t.orderStatus) || n.tableTypes && t.tableType && !n.tableTypes.includes(t.tableType) || n.fields && t.field && !n.fields.includes(t.field) || n.id === "who-purchased" && r === "numeric" && (t.tableType !== "items" || t.field !== "sold")));
6597
6606
  }
6598
- function ap(r, t) {
6607
+ function sp(r, t) {
6599
6608
  switch (r) {
6600
6609
  case "recent-orders":
6601
6610
  case "show-orders":
@@ -6617,7 +6626,7 @@ function ap(r, t) {
6617
6626
  return `${r}-${t.entityId || t.itemNumber || t.orderId || ""}`;
6618
6627
  }
6619
6628
  }
6620
- const Pd = {
6629
+ const Bd = {
6621
6630
  Person: wi,
6622
6631
  Business: ki,
6623
6632
  BarChart: Di,
@@ -6639,11 +6648,11 @@ const Pd = {
6639
6648
  OpenInNew: ta
6640
6649
  };
6641
6650
  function Ln(r) {
6642
- const t = Pd[r];
6651
+ const t = Bd[r];
6643
6652
  return t ? /* @__PURE__ */ e(t, { fontSize: "small" }) : null;
6644
6653
  }
6645
- const Bd = ["tab-actions", "graph-actions", "direct-nav", "related-nav"];
6646
- function Rd({
6654
+ const Rd = ["tab-actions", "graph-actions", "direct-nav", "related-nav"];
6655
+ function zd({
6647
6656
  anchorEl: r,
6648
6657
  open: t,
6649
6658
  onClose: n,
@@ -6664,7 +6673,7 @@ function Rd({
6664
6673
  onUpdateViz: h,
6665
6674
  onActionClick: C
6666
6675
  }) {
6667
- const T = ee(() => a && a.length > 0 ? a : s ? Md(s, {
6676
+ const T = ee(() => a && a.length > 0 ? a : s ? Pd(s, {
6668
6677
  entityType: i,
6669
6678
  userType: m,
6670
6679
  orderStatus: o?.status,
@@ -6741,7 +6750,7 @@ function Rd({
6741
6750
  }, [o, i, I]), E = ee(() => {
6742
6751
  const x = [];
6743
6752
  let D = 0;
6744
- for (const N of Bd) {
6753
+ for (const N of Rd) {
6745
6754
  const R = w.get(N);
6746
6755
  if (!(!R || R.length === 0)) {
6747
6756
  D > 0 && x.push(/* @__PURE__ */ e(Jn, { className: "gloss-unified-context-menu__divider" }, `divider-${N}`));
@@ -6783,8 +6792,8 @@ function Rd({
6783
6792
  }
6784
6793
  );
6785
6794
  }
6786
- const zd = q.memo(Rd);
6787
- zd.displayName = "UnifiedContextMenu";
6795
+ const Ad = q.memo(zd);
6796
+ Ad.displayName = "UnifiedContextMenu";
6788
6797
  const Wr = ({
6789
6798
  groupId: r,
6790
6799
  options: t,
@@ -6796,7 +6805,7 @@ const Wr = ({
6796
6805
  isOpen: c = !1,
6797
6806
  onOpenChange: l
6798
6807
  }) => {
6799
- const u = se(null), m = c, p = t.find((I) => I.id === n), f = !!p, y = p || t.find((I) => I.id === o) || t.find((I) => I.id === a) || t[0], b = ee(() => {
6808
+ const u = ie(null), m = c, p = t.find((I) => I.id === n), f = !!p, y = p || t.find((I) => I.id === o) || t.find((I) => I.id === a) || t[0], b = ee(() => {
6800
6809
  if (!y || !["7d", "30d", "60d", "90d", "mtd", "qtd", "ytd", "lytd"].includes(y.id))
6801
6810
  return "";
6802
6811
  const { start: g, end: E } = je(y.id);
@@ -6814,7 +6823,7 @@ const Wr = ({
6814
6823
  }, [s, h]), w = S((I, g) => {
6815
6824
  I.stopPropagation(), i && i(g);
6816
6825
  }, [i]), k = /* @__PURE__ */ d(
6817
- ae,
6826
+ se,
6818
6827
  {
6819
6828
  ref: u,
6820
6829
  onMouseEnter: _,
@@ -6890,7 +6899,7 @@ const Wr = ({
6890
6899
  minHeight: 36
6891
6900
  },
6892
6901
  children: [
6893
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
6902
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
6894
6903
  g && /* @__PURE__ */ e(Dt, { fontSize: "small", color: "primary", sx: { fontSize: 14 } }),
6895
6904
  /* @__PURE__ */ e(
6896
6905
  gi,
@@ -6948,7 +6957,7 @@ const Wr = ({
6948
6957
  ) : k;
6949
6958
  };
6950
6959
  Wr.displayName = "ExpandableChip";
6951
- const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
6960
+ const $d = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
6952
6961
  small: {
6953
6962
  cellSize: 32,
6954
6963
  fontSize: 11,
@@ -6973,7 +6982,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
6973
6982
  dotSize: 5,
6974
6983
  dotOffset: 12
6975
6984
  }
6976
- }, $d = [
6985
+ }, Fd = [
6977
6986
  "January",
6978
6987
  "February",
6979
6988
  "March",
@@ -6986,7 +6995,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
6986
6995
  "October",
6987
6996
  "November",
6988
6997
  "December"
6989
- ], Fd = (r) => {
6998
+ ], Od = (r) => {
6990
6999
  const t = [];
6991
7000
  for (let n = r - 10; n <= r + 2; n++)
6992
7001
  t.push(n);
@@ -7007,14 +7016,14 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7007
7016
  if (s !== void 0) return s;
7008
7017
  const $ = /* @__PURE__ */ new Date();
7009
7018
  return $.setHours(23, 59, 59, 999), $;
7010
- }, [s]), [f, y] = O(() => r ? new Date(r.getFullYear(), r.getMonth(), 1) : /* @__PURE__ */ new Date()), [b, _] = O(!1), [v, h] = O(null), C = se(!1);
7011
- ie(() => {
7019
+ }, [s]), [f, y] = O(() => r ? new Date(r.getFullYear(), r.getMonth(), 1) : /* @__PURE__ */ new Date()), [b, _] = O(!1), [v, h] = O(null), C = ie(!1);
7020
+ oe(() => {
7012
7021
  if (C.current) {
7013
7022
  C.current = !1;
7014
7023
  return;
7015
7024
  }
7016
7025
  _(!1), h(null);
7017
- }, [r, t]), ie(() => {
7026
+ }, [r, t]), oe(() => {
7018
7027
  l && y(new Date(l.getFullYear(), l.getMonth(), 1));
7019
7028
  }, [l]);
7020
7029
  const T = f.getFullYear(), w = f.getMonth(), k = new Date(T, w + 1, 0).getDate(), I = new Date(T, w, 1).getDay(), g = f.toLocaleDateString("en-US", { month: "long", year: "numeric" }), E = S(() => {
@@ -7055,7 +7064,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7055
7064
  for (let Z = 0; Z < I; Z++)
7056
7065
  $.push(
7057
7066
  /* @__PURE__ */ e(
7058
- ae,
7067
+ se,
7059
7068
  {
7060
7069
  className: "mini-calendar__day mini-calendar__day--empty"
7061
7070
  },
@@ -7064,10 +7073,10 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7064
7073
  );
7065
7074
  const K = /* @__PURE__ */ new Date();
7066
7075
  for (let Z = 1; Z <= k; Z++) {
7067
- const U = new Date(T, w, Z), X = L(U), te = P(U), pe = H(U), ce = Y(U), be = V(U), de = R(U), ne = Qt(U, K), ge = ["mini-calendar__day"];
7068
- be ? (ge.push("mini-calendar__day--disabled"), pe ? ge.push("mini-calendar__day--disabled-end") : X && ge.push("mini-calendar__day--disabled-in-range"), de && ge.push("mini-calendar__day--market")) : (ce ? ge.push("mini-calendar__day--single") : te ? ge.push("mini-calendar__day--start") : pe ? ge.push("mini-calendar__day--end") : X && ge.push("mini-calendar__day--in-range"), (ce || te || pe || X) && (u === "secondary" ? ge.push("mini-calendar__day--secondary") : u === "tertiary" && ge.push("mini-calendar__day--tertiary")), ne && !te && !pe && !ce && ge.push("mini-calendar__day--today"), de && ge.push("mini-calendar__day--market"));
7076
+ const U = new Date(T, w, Z), X = L(U), te = P(U), pe = H(U), ce = Y(U), be = V(U), de = R(U), ae = Qt(U, K), ge = ["mini-calendar__day"];
7077
+ be ? (ge.push("mini-calendar__day--disabled"), pe ? ge.push("mini-calendar__day--disabled-end") : X && ge.push("mini-calendar__day--disabled-in-range"), de && ge.push("mini-calendar__day--market")) : (ce ? ge.push("mini-calendar__day--single") : te ? ge.push("mini-calendar__day--start") : pe ? ge.push("mini-calendar__day--end") : X && ge.push("mini-calendar__day--in-range"), (ce || te || pe || X) && (u === "secondary" ? ge.push("mini-calendar__day--secondary") : u === "tertiary" && ge.push("mini-calendar__day--tertiary")), ae && !te && !pe && !ce && ge.push("mini-calendar__day--today"), de && ge.push("mini-calendar__day--market"));
7069
7078
  const Me = /* @__PURE__ */ e(
7070
- ae,
7079
+ se,
7071
7080
  {
7072
7081
  component: "button",
7073
7082
  onClick: be ? void 0 : () => M(Z),
@@ -7107,7 +7116,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7107
7116
  return $;
7108
7117
  }, [T, w, k, I, L, P, H, Y, V, R, z, M, W, u]);
7109
7118
  return /* @__PURE__ */ d(
7110
- ae,
7119
+ se,
7111
7120
  {
7112
7121
  className: "mini-calendar",
7113
7122
  onMouseLeave: j,
@@ -7120,9 +7129,9 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7120
7129
  "--dot-offset": `${m.dotOffset}px`
7121
7130
  },
7122
7131
  children: [
7123
- /* @__PURE__ */ d(ae, { className: "mini-calendar__header", children: [
7132
+ /* @__PURE__ */ d(se, { className: "mini-calendar__header", children: [
7124
7133
  /* @__PURE__ */ e(Ue, { onClick: E, size: "small", sx: { p: 0.5 }, children: /* @__PURE__ */ e(Gi, { fontSize: "small" }) }),
7125
- c ? /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
7134
+ c ? /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
7126
7135
  /* @__PURE__ */ e(
7127
7136
  Nn,
7128
7137
  {
@@ -7146,7 +7155,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7146
7155
  sx: { maxHeight: 200 }
7147
7156
  }
7148
7157
  },
7149
- children: $d.map(($, K) => /* @__PURE__ */ e(Gt, { value: K, sx: { fontSize: 13 }, children: $ }, K))
7158
+ children: Fd.map(($, K) => /* @__PURE__ */ e(Gt, { value: K, sx: { fontSize: 13 }, children: $ }, K))
7150
7159
  }
7151
7160
  ),
7152
7161
  /* @__PURE__ */ e(
@@ -7172,24 +7181,24 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
7172
7181
  sx: { maxHeight: 200 }
7173
7182
  }
7174
7183
  },
7175
- children: Fd((/* @__PURE__ */ new Date()).getFullYear()).map(($) => /* @__PURE__ */ e(Gt, { value: $, sx: { fontSize: 13 }, children: $ }, $))
7184
+ children: Od((/* @__PURE__ */ new Date()).getFullYear()).map(($) => /* @__PURE__ */ e(Gt, { value: $, sx: { fontSize: 13 }, children: $ }, $))
7176
7185
  }
7177
7186
  )
7178
7187
  ] }) : /* @__PURE__ */ e(Ie, { variant: "body2", fontWeight: 500, children: g }),
7179
7188
  /* @__PURE__ */ e(Ue, { onClick: x, size: "small", sx: { p: 0.5 }, children: /* @__PURE__ */ e(Vi, { fontSize: "small" }) })
7180
7189
  ] }),
7181
- /* @__PURE__ */ e(ae, { className: "mini-calendar__grid", children: Ad.map(($, K) => /* @__PURE__ */ e(
7182
- ae,
7190
+ /* @__PURE__ */ e(se, { className: "mini-calendar__grid", children: $d.map(($, K) => /* @__PURE__ */ e(
7191
+ se,
7183
7192
  {
7184
7193
  className: "mini-calendar__day-header",
7185
7194
  children: $
7186
7195
  },
7187
7196
  `header-${K}`
7188
7197
  )) }),
7189
- /* @__PURE__ */ e(ae, { className: "mini-calendar__grid", children: G }),
7190
- (i || b) && /* @__PURE__ */ d(ae, { className: "mini-calendar__legend", children: [
7191
- i && /* @__PURE__ */ d(ae, { className: "mini-calendar__legend-item", children: [
7192
- /* @__PURE__ */ e(ae, { className: "mini-calendar__legend-dot mini-calendar__legend-dot--market" }),
7198
+ /* @__PURE__ */ e(se, { className: "mini-calendar__grid", children: G }),
7199
+ (i || b) && /* @__PURE__ */ d(se, { className: "mini-calendar__legend", children: [
7200
+ i && /* @__PURE__ */ d(se, { className: "mini-calendar__legend-item", children: [
7201
+ /* @__PURE__ */ e(se, { className: "mini-calendar__legend-dot mini-calendar__legend-dot--market" }),
7193
7202
  /* @__PURE__ */ e(Ie, { variant: "caption", color: "text.secondary", children: "Market event" })
7194
7203
  ] }),
7195
7204
  b && /* @__PURE__ */ e(Ie, { variant: "caption", color: "primary", children: "Select end date" })
@@ -7212,7 +7221,7 @@ const Ot = ({
7212
7221
  l.stopPropagation(), s && s(r);
7213
7222
  };
7214
7223
  return /* @__PURE__ */ d(
7215
- ae,
7224
+ se,
7216
7225
  {
7217
7226
  onClick: i,
7218
7227
  sx: {
@@ -7246,8 +7255,8 @@ const Ot = ({
7246
7255
  }
7247
7256
  }
7248
7257
  ),
7249
- /* @__PURE__ */ d(ae, { sx: { flex: 1, minWidth: 0 }, children: [
7250
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7258
+ /* @__PURE__ */ d(se, { sx: { flex: 1, minWidth: 0 }, children: [
7259
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7251
7260
  /* @__PURE__ */ e(
7252
7261
  Ie,
7253
7262
  {
@@ -7313,7 +7322,7 @@ const Ot = ({
7313
7322
  );
7314
7323
  };
7315
7324
  Ot.displayName = "MarketPresetRow";
7316
- const Od = {
7325
+ const Ld = {
7317
7326
  version: 4,
7318
7327
  lastPreset: "mtd",
7319
7328
  pinnedPreset: "mtd",
@@ -7321,7 +7330,7 @@ const Od = {
7321
7330
  rangeCount: 1,
7322
7331
  lastPresetB: null,
7323
7332
  lastPresetC: null
7324
- }, Ld = ({
7333
+ }, Hd = ({
7325
7334
  value: r,
7326
7335
  onChange: t,
7327
7336
  enableCompare: n = !1,
@@ -7342,18 +7351,18 @@ const Od = {
7342
7351
  onCompareToggle: v
7343
7352
  }) => {
7344
7353
  const h = ee(() => ({
7345
- ...Od,
7354
+ ...Ld,
7346
7355
  ...u
7347
- }), [u]), C = se(null), [T, w] = O(null), [k, I] = O("calendar"), [g, E] = O(null), [x, D] = O(null), N = se(null), [R, z] = O(() => h.lastPreset || "mtd"), [L, P] = O(null), [H, Y] = O(null), [V, M] = O(null), [W, j] = O(null), [G, $] = O(null), [K, Z] = O(() => n ? _ ?? h.compareEnabled ?? !1 : !1), U = _ ?? K, X = S((A) => {
7356
+ }), [u]), C = ie(null), [T, w] = O(null), [k, I] = O("calendar"), [g, E] = O(null), [x, D] = O(null), N = ie(null), [R, z] = O(() => h.lastPreset || "mtd"), [L, P] = O(null), [H, Y] = O(null), [V, M] = O(null), [W, j] = O(null), [G, $] = O(null), [K, Z] = O(() => n ? _ ?? h.compareEnabled ?? !1 : !1), U = _ ?? K, X = S((A) => {
7348
7357
  Z(A), v?.(A);
7349
- }, [v]), [te, pe] = O("A"), [ce, be] = O(() => h.lastPresetB ?? null), [de, ne] = O(null), [ge, Me] = O(null), [Ce, we] = O(null), [Ye, Te] = O(null), [me, _e] = O(null), [Ve, Ne] = O(null), [oe, xe] = O(null), [Fe, He] = O(null), [ke, Be] = O(null), [yt, Re] = O(null), [lt, Ze] = O(null), [Pe, vt] = O(1), [rn, ct] = O(!1), [Ga, Va] = O(void 0), ze = V !== null ? V : R, Tt = V !== null ? W : L, dt = V !== null ? G : H, st = Ce !== null ? Ce : ce, Et = Ce !== null ? Ye : de, Mt = Ce !== null ? me : ge, it = ke !== null ? ke : Ve, Pt = ke !== null ? yt : oe, Bt = ke !== null ? lt : Fe, nn = V !== null && (V !== R || W !== L || G !== H), [fe, hr] = O(() => {
7358
+ }, [v]), [te, pe] = O("A"), [ce, be] = O(() => h.lastPresetB ?? null), [de, ae] = O(null), [ge, Me] = O(null), [Ce, we] = O(null), [Ye, Te] = O(null), [me, _e] = O(null), [Ve, Ne] = O(null), [ne, xe] = O(null), [Fe, He] = O(null), [ke, Be] = O(null), [yt, Re] = O(null), [lt, Ze] = O(null), [Pe, vt] = O(1), [rn, ct] = O(!1), [Ga, Va] = O(void 0), ze = V !== null ? V : R, Tt = V !== null ? W : L, dt = V !== null ? G : H, st = Ce !== null ? Ce : ce, Et = Ce !== null ? Ye : de, Mt = Ce !== null ? me : ge, it = ke !== null ? ke : Ve, Pt = ke !== null ? yt : ne, Bt = ke !== null ? lt : Fe, nn = V !== null && (V !== R || W !== L || G !== H), [fe, hr] = O(() => {
7350
7359
  const A = p || er, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
7351
7360
  ...ue,
7352
7361
  active: xt(ue)
7353
7362
  }));
7354
7363
  return [...re, ...le].sort((ue, $e) => ue.startDate.getTime() - $e.startDate.getTime());
7355
7364
  });
7356
- ie(() => {
7365
+ oe(() => {
7357
7366
  const A = p || er, F = f || [], Q = new Set(F.map((ue) => ue.id)), re = A.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = F.map((ue) => ({
7358
7367
  ...ue,
7359
7368
  active: xt(ue)
@@ -7381,7 +7390,7 @@ const Od = {
7381
7390
  futureCustomRanges: yr.filter((Q) => Q.isCustom || !F.has(Q.id))
7382
7391
  };
7383
7392
  }, [br, yr, p]), ut = i || !!T;
7384
- ie(() => {
7393
+ oe(() => {
7385
7394
  i && V === null && (M(R), j(L), $(H));
7386
7395
  }, [i, V, R, L, H]);
7387
7396
  const We = ee(
@@ -7396,9 +7405,9 @@ const Od = {
7396
7405
  end: r[1],
7397
7406
  rangeB: null
7398
7407
  } : { start: null, end: null, rangeB: null } : { start: null, end: null, rangeB: null }, [r]);
7399
- ie(() => {
7408
+ oe(() => {
7400
7409
  r && !Array.isArray(r) && "rangeA" in r && r.rangeB && X(!0);
7401
- }, [r, X]), ie(() => {
7410
+ }, [r, X]), oe(() => {
7402
7411
  if (!et.start || !et.end) return;
7403
7412
  const A = /* @__PURE__ */ new Date(), F = new Date(et.start);
7404
7413
  F.setHours(0, 0, 0, 0);
@@ -7505,8 +7514,8 @@ const Od = {
7505
7514
  return Q.preset ? `${Q.preset.label} (${re})` : re;
7506
7515
  }, [U, Pe, it, Pt, Bt, fe]);
7507
7516
  const Ua = S((A) => {
7508
- M(R), j(L), $(H), U && (we(ce), Te(de), _e(ge), Pe >= 3 && (Be(Ve), Re(oe), Ze(Fe))), w(A.currentTarget);
7509
- }, [R, L, H, U, Pe, ce, de, ge, Ve, oe, Fe]), dn = S((A, F, Q) => {
7517
+ M(R), j(L), $(H), U && (we(ce), Te(de), _e(ge), Pe >= 3 && (Be(Ve), Re(ne), Ze(Fe))), w(A.currentTarget);
7518
+ }, [R, L, H, U, Pe, ce, de, ge, Ve, ne, Fe]), dn = S((A, F, Q) => {
7510
7519
  const re = [A, F];
7511
7520
  Q && (re.shortcutId = rr(Q)), t(re);
7512
7521
  }, [t]), Zt = S((A, F, Q) => {
@@ -7524,7 +7533,7 @@ const Od = {
7524
7533
  z(V), P(W), Y(G);
7525
7534
  const A = Zt(V, W, G);
7526
7535
  if (U && Pe >= 2 && Ce !== null) {
7527
- be(Ce), ne(Ye), Me(me);
7536
+ be(Ce), ae(Ye), Me(me);
7528
7537
  const F = Zt(Ce, Ye, me), Q = {
7529
7538
  rangeA: A,
7530
7539
  rangeB: F,
@@ -7567,14 +7576,14 @@ const Od = {
7567
7576
  const A = V !== null ? V : R;
7568
7577
  Pe === 1 ? (X(!0), vt(2), we(A), pe("B"), ct(!0)) : Pe === 2 && (vt(3), Be(A), pe("C"));
7569
7578
  }, [Pe, V, R, X]), pn = S((A) => {
7570
- A === "C" ? (vt(2), Be(null), Re(null), Ze(null), Ne(null), xe(null), He(null), te === "C" && pe("B")) : A === "B" && Pe === 2 && (X(!1), vt(1), we(null), Te(null), _e(null), be(null), ne(null), Me(null), pe("A"), ct(!1), tt({
7579
+ A === "C" ? (vt(2), Be(null), Re(null), Ze(null), Ne(null), xe(null), He(null), te === "C" && pe("B")) : A === "B" && Pe === 2 && (X(!1), vt(1), we(null), Te(null), _e(null), be(null), ae(null), Me(null), pe("A"), ct(!1), tt({
7571
7580
  compareEnabled: !1,
7572
7581
  rangeCount: 1,
7573
7582
  lastPresetB: null,
7574
7583
  lastPresetC: null
7575
7584
  }));
7576
7585
  }, [Pe, te, X, tt]), qa = S(() => {
7577
- X(!1), vt(1), pe("A"), ct(!1), we(null), Te(null), _e(null), be(null), ne(null), Me(null), Be(null), Re(null), Ze(null), Ne(null), xe(null), He(null), tt({
7586
+ X(!1), vt(1), pe("A"), ct(!1), we(null), Te(null), _e(null), be(null), ae(null), Me(null), Be(null), Re(null), Ze(null), Ne(null), xe(null), He(null), tt({
7578
7587
  compareEnabled: !1,
7579
7588
  rangeCount: 1,
7580
7589
  lastPresetB: null,
@@ -7625,7 +7634,7 @@ const Od = {
7625
7634
  }
7626
7635
  I("calendar"), Va(new Date(A));
7627
7636
  }, [ze, dt, fe]);
7628
- ie(() => {
7637
+ oe(() => {
7629
7638
  g && zt({
7630
7639
  label: g.label || "",
7631
7640
  startDate: g.startDate?.toISOString().split("T")[0] || "",
@@ -7705,16 +7714,16 @@ const Od = {
7705
7714
  }, [V, R, X]), xr = S(({ label: A, isActive: F, presetName: Q, dateRange: re, color: le, onSelect: ue, onRemove: $e }) => {
7706
7715
  const vn = !Q || Q === "Select...";
7707
7716
  return /* @__PURE__ */ d(
7708
- ae,
7717
+ se,
7709
7718
  {
7710
7719
  className: `range-card range-card--${le} ${F ? "range-card--active" : ""} ${vn ? "range-card--empty" : ""}`,
7711
7720
  onClick: ue,
7712
7721
  children: [
7713
- /* @__PURE__ */ e(ae, { className: "range-card__color-bar" }),
7714
- /* @__PURE__ */ d(ae, { className: "range-card__content", children: [
7715
- /* @__PURE__ */ d(ae, { className: "range-card__header", children: [
7722
+ /* @__PURE__ */ e(se, { className: "range-card__color-bar" }),
7723
+ /* @__PURE__ */ d(se, { className: "range-card__content", children: [
7724
+ /* @__PURE__ */ d(se, { className: "range-card__header", children: [
7716
7725
  /* @__PURE__ */ e(Ie, { className: "range-card__label", children: A }),
7717
- /* @__PURE__ */ e(ae, { className: `range-card__indicator ${F ? "range-card__indicator--active" : ""}` })
7726
+ /* @__PURE__ */ e(se, { className: `range-card__indicator ${F ? "range-card__indicator--active" : ""}` })
7718
7727
  ] }),
7719
7728
  vn ? /* @__PURE__ */ e(Ie, { className: "range-card__preset", sx: { color: "#9ca3af", fontStyle: "italic" }, children: "Select a date range" }) : /* @__PURE__ */ d(Ge, { children: [
7720
7729
  /* @__PURE__ */ e(Ie, { className: "range-card__preset", children: Q }),
@@ -7736,7 +7745,7 @@ const Od = {
7736
7745
  ]
7737
7746
  }
7738
7747
  );
7739
- }, []), yn = /* @__PURE__ */ e(ae, { sx: { position: "relative", display: "inline-flex" }, children: /* @__PURE__ */ e(
7748
+ }, []), yn = /* @__PURE__ */ e(se, { sx: { position: "relative", display: "inline-flex" }, children: /* @__PURE__ */ e(
7740
7749
  rt,
7741
7750
  {
7742
7751
  ref: C,
@@ -7775,13 +7784,13 @@ const Od = {
7775
7784
  color: "secondary.main"
7776
7785
  } : {}
7777
7786
  },
7778
- children: U && Ya ? /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
7787
+ children: U && Ya ? /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
7779
7788
  /* @__PURE__ */ e(Wi, { sx: { fontSize: 14, color: "secondary.main" } }),
7780
7789
  /* @__PURE__ */ e("span", { children: "Compare" })
7781
7790
  ] }) : Ka
7782
7791
  }
7783
7792
  ) });
7784
- return /* @__PURE__ */ d(ae, { className: "hybrid-date-picker", sx: l, children: [
7793
+ return /* @__PURE__ */ d(se, { className: "hybrid-date-picker", sx: l, children: [
7785
7794
  ln ? /* @__PURE__ */ e(
7786
7795
  ft,
7787
7796
  {
@@ -7798,7 +7807,7 @@ const Od = {
7798
7807
  (() => {
7799
7808
  const A = /* @__PURE__ */ d(Ge, { children: [
7800
7809
  s && /* @__PURE__ */ d(
7801
- ae,
7810
+ se,
7802
7811
  {
7803
7812
  sx: {
7804
7813
  display: "flex",
@@ -7824,8 +7833,8 @@ const Od = {
7824
7833
  ]
7825
7834
  }
7826
7835
  ),
7827
- We && /* @__PURE__ */ e(ae, { className: "hybrid-date-picker__active-banner", children: /* @__PURE__ */ d(
7828
- ae,
7836
+ We && /* @__PURE__ */ e(se, { className: "hybrid-date-picker__active-banner", children: /* @__PURE__ */ d(
7837
+ se,
7829
7838
  {
7830
7839
  className: `hybrid-date-picker__active-banner-content ${gt(We.id) ? "hybrid-date-picker__active-banner-content--selected" : ""}`,
7831
7840
  onClick: () => At(We.id),
@@ -7835,10 +7844,10 @@ const Od = {
7835
7844
  }
7836
7845
  },
7837
7846
  children: [
7838
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7847
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7839
7848
  /* @__PURE__ */ e(Br, { fontSize: "small", sx: { color: "success.main" } }),
7840
- /* @__PURE__ */ d(ae, { children: [
7841
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7849
+ /* @__PURE__ */ d(se, { children: [
7850
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7842
7851
  /* @__PURE__ */ e(Ie, { variant: "body2", fontWeight: 500, children: We.label }),
7843
7852
  /* @__PURE__ */ e(
7844
7853
  Wt,
@@ -7862,7 +7871,7 @@ const Od = {
7862
7871
  ] })
7863
7872
  ] })
7864
7873
  ] }),
7865
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
7874
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
7866
7875
  gt(We.id) && /* @__PURE__ */ e(Dt, { fontSize: "small", sx: { color: "success.main" } }),
7867
7876
  /* @__PURE__ */ e(
7868
7877
  Ue,
@@ -7885,7 +7894,7 @@ const Od = {
7885
7894
  ]
7886
7895
  }
7887
7896
  ) }),
7888
- /* @__PURE__ */ d(ae, { className: "hybrid-date-picker__quick-bar", children: [
7897
+ /* @__PURE__ */ d(se, { className: "hybrid-date-picker__quick-bar", children: [
7889
7898
  /* @__PURE__ */ e(
7890
7899
  Wt,
7891
7900
  {
@@ -7952,7 +7961,7 @@ const Od = {
7952
7961
  children: [
7953
7962
  /* @__PURE__ */ e(Br, { sx: { fontSize: 16 } }),
7954
7963
  We && /* @__PURE__ */ e(
7955
- ae,
7964
+ se,
7956
7965
  {
7957
7966
  sx: {
7958
7967
  position: "absolute",
@@ -7970,7 +7979,7 @@ const Od = {
7970
7979
  }
7971
7980
  ) })
7972
7981
  ] }),
7973
- /* @__PURE__ */ d(ae, { className: "hybrid-date-picker__content", children: [
7982
+ /* @__PURE__ */ d(se, { className: "hybrid-date-picker__content", children: [
7974
7983
  k === "calendar" && (() => {
7975
7984
  const F = U && te === "C" ? it : U && te === "B" ? st : ze, Q = U && te === "C" ? Pt : U && te === "B" ? Et : Tt, re = U && te === "C" ? Bt : U && te === "B" ? Mt : dt;
7976
7985
  return /* @__PURE__ */ e(
@@ -7986,7 +7995,7 @@ const Od = {
7986
7995
  }
7987
7996
  );
7988
7997
  })(),
7989
- k === "markets" && /* @__PURE__ */ d(ae, { className: "hybrid-date-picker__markets-list", children: [
7998
+ k === "markets" && /* @__PURE__ */ d(se, { className: "hybrid-date-picker__markets-list", children: [
7990
7999
  /* @__PURE__ */ e(Ie, { className: "hybrid-date-picker__events-section-header", children: "Market Events" }),
7991
8000
  an.filter((F) => !We || F.id !== We.id).map((F) => /* @__PURE__ */ e(
7992
8001
  Ot,
@@ -8070,7 +8079,7 @@ const Od = {
8070
8079
  },
8071
8080
  F.id
8072
8081
  )),
8073
- /* @__PURE__ */ e(ae, { className: "hybrid-date-picker__markets-list-add", children: /* @__PURE__ */ e(
8082
+ /* @__PURE__ */ e(se, { className: "hybrid-date-picker__markets-list-add", children: /* @__PURE__ */ e(
8074
8083
  rt,
8075
8084
  {
8076
8085
  fullWidth: !0,
@@ -8092,16 +8101,16 @@ const Od = {
8092
8101
  ) })
8093
8102
  ] })
8094
8103
  ] }),
8095
- /* @__PURE__ */ e(ae, { className: "hybrid-date-picker__footer", children: U ? (
8104
+ /* @__PURE__ */ e(se, { className: "hybrid-date-picker__footer", children: U ? (
8096
8105
  /* States 2, 3, 4: Comparing - show collapsible drawer */
8097
- /* @__PURE__ */ d(ae, { sx: { width: "100%" }, children: [
8106
+ /* @__PURE__ */ d(se, { sx: { width: "100%" }, children: [
8098
8107
  /* @__PURE__ */ d(
8099
- ae,
8108
+ se,
8100
8109
  {
8101
8110
  className: "hybrid-date-picker__footer-drawer-trigger",
8102
8111
  onClick: rs,
8103
8112
  children: [
8104
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8113
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
8105
8114
  /* @__PURE__ */ e(
8106
8115
  lr,
8107
8116
  {
@@ -8112,7 +8121,7 @@ const Od = {
8112
8121
  /* @__PURE__ */ d(Ie, { variant: "body2", fontWeight: 500, color: "text.primary", component: "span", sx: { display: "flex", alignItems: "center", gap: 0.25, flexWrap: "nowrap" }, children: [
8113
8122
  "Comparing:",
8114
8123
  /* @__PURE__ */ d(
8115
- ae,
8124
+ se,
8116
8125
  {
8117
8126
  component: "span",
8118
8127
  className: "hybrid-date-picker__footer-drawer-range-label",
@@ -8121,14 +8130,14 @@ const Od = {
8121
8130
  },
8122
8131
  sx: { ml: 0.5 },
8123
8132
  children: [
8124
- /* @__PURE__ */ e(ae, { component: "span", sx: { color: "#2563EB", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8133
+ /* @__PURE__ */ e(se, { component: "span", sx: { color: "#2563EB", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8125
8134
  _t(ze)
8126
8135
  ]
8127
8136
  }
8128
8137
  ),
8129
8138
  " vs ",
8130
8139
  /* @__PURE__ */ d(
8131
- ae,
8140
+ se,
8132
8141
  {
8133
8142
  component: "span",
8134
8143
  className: "hybrid-date-picker__footer-drawer-range-label",
@@ -8136,7 +8145,7 @@ const Od = {
8136
8145
  F.stopPropagation(), ct(!0), pe("B");
8137
8146
  },
8138
8147
  children: [
8139
- /* @__PURE__ */ e(ae, { component: "span", sx: { color: "#10B981", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8148
+ /* @__PURE__ */ e(se, { component: "span", sx: { color: "#10B981", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8140
8149
  _t(st)
8141
8150
  ]
8142
8151
  }
@@ -8144,7 +8153,7 @@ const Od = {
8144
8153
  Pe === 3 && /* @__PURE__ */ d(Ge, { children: [
8145
8154
  " vs ",
8146
8155
  /* @__PURE__ */ d(
8147
- ae,
8156
+ se,
8148
8157
  {
8149
8158
  component: "span",
8150
8159
  className: "hybrid-date-picker__footer-drawer-range-label",
@@ -8152,7 +8161,7 @@ const Od = {
8152
8161
  F.stopPropagation(), ct(!0), pe("C");
8153
8162
  },
8154
8163
  children: [
8155
- /* @__PURE__ */ e(ae, { component: "span", sx: { color: "#F59E0B", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8164
+ /* @__PURE__ */ e(se, { component: "span", sx: { color: "#F59E0B", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8156
8165
  _t(it)
8157
8166
  ]
8158
8167
  }
@@ -8160,7 +8169,7 @@ const Od = {
8160
8169
  ] })
8161
8170
  ] })
8162
8171
  ] }),
8163
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
8172
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
8164
8173
  Pe < 3 && /* @__PURE__ */ e(
8165
8174
  Ue,
8166
8175
  {
@@ -8189,7 +8198,7 @@ const Od = {
8189
8198
  ]
8190
8199
  }
8191
8200
  ),
8192
- /* @__PURE__ */ e(bi, { in: rn, children: /* @__PURE__ */ d(ae, { className: "hybrid-date-picker__footer-drawer-content", children: [
8201
+ /* @__PURE__ */ e(bi, { in: rn, children: /* @__PURE__ */ d(se, { className: "hybrid-date-picker__footer-drawer-content", children: [
8193
8202
  /* @__PURE__ */ e(
8194
8203
  xr,
8195
8204
  {
@@ -8226,9 +8235,9 @@ const Od = {
8226
8235
  onRemove: () => pn("C")
8227
8236
  }
8228
8237
  ),
8229
- Pe < 3 && /* @__PURE__ */ e(ae, { className: "range-card-add", onClick: mn, children: /* @__PURE__ */ e(Ft, { sx: { fontSize: 20, color: "grey.500" } }) })
8238
+ Pe < 3 && /* @__PURE__ */ e(se, { className: "range-card-add", onClick: mn, children: /* @__PURE__ */ e(Ft, { sx: { fontSize: 20, color: "grey.500" } }) })
8230
8239
  ] }) }),
8231
- /* @__PURE__ */ e(ae, { className: "hybrid-date-picker__footer-row", sx: { justifyContent: "flex-end" }, children: /* @__PURE__ */ e(
8240
+ /* @__PURE__ */ e(se, { className: "hybrid-date-picker__footer-row", sx: { justifyContent: "flex-end" }, children: /* @__PURE__ */ e(
8232
8241
  rt,
8233
8242
  {
8234
8243
  variant: "contained",
@@ -8247,8 +8256,8 @@ const Od = {
8247
8256
  ] })
8248
8257
  ) : (
8249
8258
  /* State 1: No comparison - show Close link or + TimeFrame button */
8250
- /* @__PURE__ */ d(ae, { className: "hybrid-date-picker__footer-row", children: [
8251
- /* @__PURE__ */ e(ae, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: n ? /* @__PURE__ */ e(ft, { title: "Add a second time frame to compare data across different periods", arrow: !0, children: /* @__PURE__ */ e(
8259
+ /* @__PURE__ */ d(se, { className: "hybrid-date-picker__footer-row", children: [
8260
+ /* @__PURE__ */ e(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: n ? /* @__PURE__ */ e(ft, { title: "Add a second time frame to compare data across different periods", arrow: !0, children: /* @__PURE__ */ e(
8252
8261
  rt,
8253
8262
  {
8254
8263
  size: "small",
@@ -8287,7 +8296,7 @@ const Od = {
8287
8296
  children: "Close"
8288
8297
  }
8289
8298
  ) }),
8290
- /* @__PURE__ */ d(ae, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
8299
+ /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
8291
8300
  /* @__PURE__ */ e(
8292
8301
  Ie,
8293
8302
  {
@@ -8340,7 +8349,7 @@ const Od = {
8340
8349
  ) })
8341
8350
  ] });
8342
8351
  return i ? /* @__PURE__ */ e(
8343
- ae,
8352
+ se,
8344
8353
  {
8345
8354
  sx: {
8346
8355
  width: bn,
@@ -8397,7 +8406,7 @@ const Od = {
8397
8406
  /* @__PURE__ */ e(Ue, { size: "small", onClick: () => E(null), children: /* @__PURE__ */ e(wt, { fontSize: "small" }) })
8398
8407
  ] }),
8399
8408
  /* @__PURE__ */ d(xi, { sx: { px: 2, py: 1.5 }, children: [
8400
- /* @__PURE__ */ d(ae, { className: "market-edit-modal__field", children: [
8409
+ /* @__PURE__ */ d(se, { className: "market-edit-modal__field", children: [
8401
8410
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Name" }),
8402
8411
  /* @__PURE__ */ e(
8403
8412
  nr,
@@ -8411,8 +8420,8 @@ const Od = {
8411
8420
  }
8412
8421
  )
8413
8422
  ] }),
8414
- /* @__PURE__ */ d(ae, { className: "market-edit-modal__row", sx: { mt: 2 }, children: [
8415
- /* @__PURE__ */ d(ae, { children: [
8423
+ /* @__PURE__ */ d(se, { className: "market-edit-modal__row", sx: { mt: 2 }, children: [
8424
+ /* @__PURE__ */ d(se, { children: [
8416
8425
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Start Date" }),
8417
8426
  /* @__PURE__ */ e(
8418
8427
  nr,
@@ -8426,7 +8435,7 @@ const Od = {
8426
8435
  }
8427
8436
  )
8428
8437
  ] }),
8429
- /* @__PURE__ */ d(ae, { children: [
8438
+ /* @__PURE__ */ d(se, { children: [
8430
8439
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "End Date" }),
8431
8440
  /* @__PURE__ */ e(
8432
8441
  nr,
@@ -8441,7 +8450,7 @@ const Od = {
8441
8450
  )
8442
8451
  ] })
8443
8452
  ] }),
8444
- /* @__PURE__ */ d(ae, { className: "market-edit-modal__field", sx: { mt: 2 }, children: [
8453
+ /* @__PURE__ */ d(se, { className: "market-edit-modal__field", sx: { mt: 2 }, children: [
8445
8454
  /* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Location" }),
8446
8455
  /* @__PURE__ */ e(
8447
8456
  nr,
@@ -8457,7 +8466,7 @@ const Od = {
8457
8466
  ] })
8458
8467
  ] }),
8459
8468
  /* @__PURE__ */ d(Ni, { sx: { px: 2, py: 1.5, justifyContent: "space-between", bgcolor: "grey.50" }, children: [
8460
- g.isNew ? /* @__PURE__ */ e(ae, {}) : /* @__PURE__ */ e(
8469
+ g.isNew ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(
8461
8470
  rt,
8462
8471
  {
8463
8472
  size: "small",
@@ -8467,7 +8476,7 @@ const Od = {
8467
8476
  children: "Delete"
8468
8477
  }
8469
8478
  ),
8470
- /* @__PURE__ */ d(ae, { sx: { display: "flex", gap: 1 }, children: [
8479
+ /* @__PURE__ */ d(se, { sx: { display: "flex", gap: 1 }, children: [
8471
8480
  /* @__PURE__ */ e(
8472
8481
  rt,
8473
8482
  {
@@ -8495,7 +8504,7 @@ const Od = {
8495
8504
  )
8496
8505
  ] });
8497
8506
  };
8498
- Ld.displayName = "HybridDatePicker";
8507
+ Hd.displayName = "HybridDatePicker";
8499
8508
  const Wn = {
8500
8509
  rolling: [
8501
8510
  { id: "7D", label: "7D" },
@@ -8667,7 +8676,7 @@ const Mr = [
8667
8676
  a
8668
8677
  ] })
8669
8678
  ] }) });
8670
- }, ir = (r) => r && typeof r == "object" && "rangeA" in r, Hd = ({
8679
+ }, ir = (r) => r && typeof r == "object" && "rangeA" in r, Wd = ({
8671
8680
  value: r,
8672
8681
  onChange: t,
8673
8682
  preferences: n,
@@ -8698,15 +8707,15 @@ const Mr = [
8698
8707
  }
8699
8708
  }
8700
8709
  }, [w, R, t, a, n]);
8701
- ie(() => {
8710
+ oe(() => {
8702
8711
  _ && k(ir(r));
8703
- }, [_, r]), ie(() => {
8712
+ }, [_, r]), oe(() => {
8704
8713
  o !== void 0 && k(o);
8705
8714
  }, [o]);
8706
8715
  const L = S((G) => {
8707
8716
  Promise.resolve().then(() => t(G));
8708
- }, [t]), P = se(!1);
8709
- ie(() => {
8717
+ }, [t]), P = ie(!1);
8718
+ oe(() => {
8710
8719
  if (_) {
8711
8720
  if (!P.current) {
8712
8721
  P.current = !0;
@@ -8875,8 +8884,8 @@ const Mr = [
8875
8884
  ] })
8876
8885
  ] }) });
8877
8886
  };
8878
- Hd.displayName = "TimeFrame";
8879
- function Wd({
8887
+ Wd.displayName = "TimeFrame";
8888
+ function Gd({
8880
8889
  sections: r,
8881
8890
  onCommit: t,
8882
8891
  onCancel: n,
@@ -8934,7 +8943,7 @@ function Wd({
8934
8943
  }
8935
8944
  );
8936
8945
  }
8937
- function Gd(r, t, n) {
8946
+ function Vd(r, t, n) {
8938
8947
  if (r < 0 || r >= t) return null;
8939
8948
  const a = r % n, s = Math.floor(r / n), o = Math.ceil(t / n), i = [];
8940
8949
  if (a + 1 < n && i.push(r + 1), s + 1 < o && i.push(r + n), a - 1 >= 0 && i.push(r - 1), s - 1 >= 0 && i.push(r - n), i.length === 0) return null;
@@ -8942,7 +8951,7 @@ function Gd(r, t, n) {
8942
8951
  if (c >= t) return c;
8943
8952
  return i[0];
8944
8953
  }
8945
- function Vd({ id: r, colSpan: t, staggerDelay: n, children: a, dimCover: s }) {
8954
+ function jd({ id: r, colSpan: t, staggerDelay: n, children: a, dimCover: s }) {
8946
8955
  const {
8947
8956
  attributes: o,
8948
8957
  listeners: i,
@@ -8971,7 +8980,7 @@ function Vd({ id: r, colSpan: t, staggerDelay: n, children: a, dimCover: s }) {
8971
8980
  }
8972
8981
  );
8973
8982
  }
8974
- function jd({ currentPage: r, totalPages: t, onPageChange: n }) {
8983
+ function Kd({ currentPage: r, totalPages: t, onPageChange: n }) {
8975
8984
  if (t <= 1) return null;
8976
8985
  const a = r > 0, s = r < t - 1;
8977
8986
  return /* @__PURE__ */ d("div", { className: "gloss-grid__pagination", children: [
@@ -9007,15 +9016,15 @@ function jd({ currentPage: r, totalPages: t, onPageChange: n }) {
9007
9016
  )
9008
9017
  ] });
9009
9018
  }
9010
- const Kd = 30, Yd = {
9019
+ const Yd = 30, Ud = {
9011
9020
  initial: { opacity: 0, scale: 0.95 },
9012
9021
  animate: { opacity: 1, scale: 1 },
9013
9022
  exit: { opacity: 0, scale: 0.95 }
9014
- }, Ud = {
9015
- duration: dd.extrude / 1e3,
9023
+ }, Xd = {
9024
+ duration: ud.extrude / 1e3,
9016
9025
  // seconds, per framer-motion contract
9017
9026
  ease: [0.22, 1, 0.36, 1]
9018
- }, Xd = q.memo(function({
9027
+ }, qd = q.memo(function({
9019
9028
  cards: t,
9020
9029
  cardOrder: n,
9021
9030
  layout: a,
@@ -9025,7 +9034,7 @@ const Kd = 30, Yd = {
9025
9034
  renderEmptySlot: c,
9026
9035
  configSections: l = []
9027
9036
  }) {
9028
- const [u, m] = O(null), p = cd(), f = p?.activeCardId ?? null, y = Qi(
9037
+ const [u, m] = O(null), p = dd(), f = p?.activeCardId ?? null, y = Qi(
9029
9038
  kn(eo, { activationConstraint: { distance: 5 } }),
9030
9039
  kn(to, { coordinateGetter: so })
9031
9040
  ), b = S((x) => {
@@ -9044,7 +9053,7 @@ const Kd = 30, Yd = {
9044
9053
  if (!f) return null;
9045
9054
  const x = C.findIndex((L) => L.id === f);
9046
9055
  if (x === -1) return null;
9047
- const D = Gd(x, C.length, a.columns);
9056
+ const D = Vd(x, C.length, a.columns);
9048
9057
  if (D === null) return null;
9049
9058
  const N = D >= C.length, R = !N, z = R ? C[D]?.id ?? null : null;
9050
9059
  return { activeIndex: x, extrudeIndex: D, isEmptySlot: N, isDimCover: R, dimCoverId: z };
@@ -9073,11 +9082,11 @@ const Kd = 30, Yd = {
9073
9082
  C.map((x, D) => {
9074
9083
  const N = I?.isDimCover === !0 && I.dimCoverId === x.id;
9075
9084
  return /* @__PURE__ */ e(
9076
- Vd,
9085
+ jd,
9077
9086
  {
9078
9087
  id: x.id,
9079
9088
  colSpan: x.colSpan,
9080
- staggerDelay: `${D * Kd}ms`,
9089
+ staggerDelay: `${D * Yd}ms`,
9081
9090
  dimCover: N,
9082
9091
  children: i(x)
9083
9092
  },
@@ -9090,11 +9099,11 @@ const Kd = 30, Yd = {
9090
9099
  return /* @__PURE__ */ e(
9091
9100
  Ct.div,
9092
9101
  {
9093
- variants: Yd,
9102
+ variants: Ud,
9094
9103
  initial: "initial",
9095
9104
  animate: "animate",
9096
9105
  exit: "exit",
9097
- transition: Ud,
9106
+ transition: Xd,
9098
9107
  style: {
9099
9108
  // Grid placement: pin to computed extrude slot. No
9100
9109
  // width/height animation (AN-01 — transform+opacity only).
@@ -9103,7 +9112,7 @@ const Kd = 30, Yd = {
9103
9112
  gridColumn: `${x} / span 1`
9104
9113
  },
9105
9114
  children: /* @__PURE__ */ e(
9106
- Wd,
9115
+ Gd,
9107
9116
  {
9108
9117
  sections: l,
9109
9118
  onCommit: () => p?.commitConfig(),
@@ -9131,7 +9140,7 @@ const Kd = 30, Yd = {
9131
9140
  }
9132
9141
  ),
9133
9142
  /* @__PURE__ */ e(
9134
- jd,
9143
+ Kd,
9135
9144
  {
9136
9145
  currentPage: a.currentPage,
9137
9146
  totalPages: a.totalPages,
@@ -9140,8 +9149,8 @@ const Kd = 30, Yd = {
9140
9149
  )
9141
9150
  ] });
9142
9151
  });
9143
- Xd.displayName = "MetricCardGrid";
9144
- const qd = q.memo(function({
9152
+ qd.displayName = "MetricCardGrid";
9153
+ const Zd = q.memo(function({
9145
9154
  tabs: t,
9146
9155
  activeTabId: n,
9147
9156
  onTabChange: a,
@@ -9273,8 +9282,8 @@ const qd = q.memo(function({
9273
9282
  )
9274
9283
  ] });
9275
9284
  });
9276
- qd.displayName = "TabbedDataView";
9277
- const Zd = function(t) {
9285
+ Zd.displayName = "TabbedDataView";
9286
+ const Jd = function(t) {
9278
9287
  const n = {
9279
9288
  variant: "sparkline",
9280
9289
  label: t.label,
@@ -9300,8 +9309,8 @@ const Zd = function(t) {
9300
9309
  }
9301
9310
  );
9302
9311
  };
9303
- Zd.displayName = "TrendCard";
9304
- const Jd = function(t) {
9312
+ Jd.displayName = "TrendCard";
9313
+ const Qd = function(t) {
9305
9314
  const n = {
9306
9315
  variant: "bars",
9307
9316
  label: t.label,
@@ -9327,8 +9336,8 @@ const Jd = function(t) {
9327
9336
  }
9328
9337
  );
9329
9338
  };
9330
- Jd.displayName = "BarChartCard";
9331
- const Qd = function(t) {
9339
+ Qd.displayName = "BarChartCard";
9340
+ const eu = function(t) {
9332
9341
  const n = {
9333
9342
  variant: "donut",
9334
9343
  label: t.label,
@@ -9355,8 +9364,8 @@ const Qd = function(t) {
9355
9364
  }
9356
9365
  );
9357
9366
  };
9358
- Qd.displayName = "DistributionCard";
9359
- const eu = function(t) {
9367
+ eu.displayName = "DistributionCard";
9368
+ const tu = function(t) {
9360
9369
  const n = {
9361
9370
  variant: "highlight",
9362
9371
  label: t.label,
@@ -9381,8 +9390,8 @@ const eu = function(t) {
9381
9390
  }
9382
9391
  );
9383
9392
  };
9384
- eu.displayName = "HighlightCard";
9385
- const tu = function(t) {
9393
+ tu.displayName = "HighlightCard";
9394
+ const ru = function(t) {
9386
9395
  const n = {
9387
9396
  variant: "arrow",
9388
9397
  label: t.label,
@@ -9408,8 +9417,8 @@ const tu = function(t) {
9408
9417
  }
9409
9418
  );
9410
9419
  };
9411
- tu.displayName = "DirectionCard";
9412
- const ru = function(t) {
9420
+ ru.displayName = "DirectionCard";
9421
+ const nu = function(t) {
9413
9422
  const n = {
9414
9423
  variant: "object-arrow",
9415
9424
  label: t.label,
@@ -9435,8 +9444,8 @@ const ru = function(t) {
9435
9444
  }
9436
9445
  );
9437
9446
  };
9438
- ru.displayName = "ProgressCard";
9439
- const nu = function(t) {
9447
+ nu.displayName = "ProgressCard";
9448
+ const au = function(t) {
9440
9449
  const n = {
9441
9450
  variant: "versus",
9442
9451
  label: t.label,
@@ -9461,8 +9470,8 @@ const nu = function(t) {
9461
9470
  }
9462
9471
  );
9463
9472
  };
9464
- nu.displayName = "ComparisonCard";
9465
- const au = function(t) {
9473
+ au.displayName = "ComparisonCard";
9474
+ const su = function(t) {
9466
9475
  const n = {
9467
9476
  variant: "segmented",
9468
9477
  label: t.label,
@@ -9487,8 +9496,8 @@ const au = function(t) {
9487
9496
  }
9488
9497
  );
9489
9498
  };
9490
- au.displayName = "SegmentCard";
9491
- const su = function(t) {
9499
+ su.displayName = "SegmentCard";
9500
+ const iu = function(t) {
9492
9501
  const n = {
9493
9502
  variant: "standard",
9494
9503
  label: t.label,
@@ -9512,7 +9521,7 @@ const su = function(t) {
9512
9521
  }
9513
9522
  );
9514
9523
  };
9515
- su.displayName = "SimpleMetricCard";
9524
+ iu.displayName = "SimpleMetricCard";
9516
9525
  const Pr = ({
9517
9526
  type: r,
9518
9527
  className: t = ""
@@ -9589,7 +9598,7 @@ const Pr = ({
9589
9598
  );
9590
9599
  };
9591
9600
  Ba.displayName = "PaymentMethodSelect";
9592
- const iu = (r) => `${r.label || r.street}, ${r.city}`, ou = ({
9601
+ const ou = (r) => `${r.label || r.street}, ${r.city}`, lu = ({
9593
9602
  addresses: r,
9594
9603
  value: t,
9595
9604
  onChange: n,
@@ -9619,7 +9628,7 @@ const iu = (r) => `${r.label || r.street}, ${r.city}`, ou = ({
9619
9628
  f.zip
9620
9629
  ] })
9621
9630
  ] }),
9622
- triggerLabel: s === "short" ? /* @__PURE__ */ e("span", { children: iu(f) }) : /* @__PURE__ */ d("div", { className: "address-trigger-full", children: [
9631
+ triggerLabel: s === "short" ? /* @__PURE__ */ e("span", { children: ou(f) }) : /* @__PURE__ */ d("div", { className: "address-trigger-full", children: [
9623
9632
  f.label && /* @__PURE__ */ e("strong", { children: f.label }),
9624
9633
  /* @__PURE__ */ e("div", { className: "address-trigger-full__name", children: f.name }),
9625
9634
  /* @__PURE__ */ e("div", { className: "address-trigger-full__street", children: f.street }),
@@ -9659,7 +9668,7 @@ const iu = (r) => `${r.label || r.street}, ${r.city}`, ou = ({
9659
9668
  }
9660
9669
  );
9661
9670
  };
9662
- ou.displayName = "AddressSelect";
9671
+ lu.displayName = "AddressSelect";
9663
9672
  const Ra = q.forwardRef(
9664
9673
  ({
9665
9674
  onSearch: r,
@@ -9688,7 +9697,7 @@ const Ra = q.forwardRef(
9688
9697
  className: g,
9689
9698
  autoComplete: E
9690
9699
  }, x) => {
9691
- const D = se(null), [N, R] = O(m ?? ""), [z, L] = O(!1), [P, H] = O(-1), Y = se(null), V = u !== void 0 ? u : N, M = String(V).length > 0, W = z && o && a.length > 0, j = S(
9700
+ const D = ie(null), [N, R] = O(m ?? ""), [z, L] = O(!1), [P, H] = O(-1), Y = ie(null), V = u !== void 0 ? u : N, M = String(V).length > 0, W = z && o && a.length > 0, j = S(
9692
9701
  (X) => {
9693
9702
  const te = X.target.value;
9694
9703
  u === void 0 && R(te), t > 0 ? (Y.current && clearTimeout(Y.current), Y.current = setTimeout(() => {
@@ -9737,13 +9746,13 @@ const Ra = q.forwardRef(
9737
9746
  },
9738
9747
  [b]
9739
9748
  );
9740
- ie(() => {
9749
+ oe(() => {
9741
9750
  if (!i) return;
9742
9751
  const X = (te) => {
9743
9752
  (te.metaKey || te.ctrlKey) && te.key === c && (te.preventDefault(), D.current?.focus());
9744
9753
  };
9745
9754
  return document.addEventListener("keydown", X), () => document.removeEventListener("keydown", X);
9746
- }, [i, c]), ie(() => () => {
9755
+ }, [i, c]), oe(() => () => {
9747
9756
  Y.current && clearTimeout(Y.current);
9748
9757
  }, []);
9749
9758
  const U = /* @__PURE__ */ d("div", { className: "gloss-search-input__actions", children: [
@@ -9812,19 +9821,19 @@ const Ra = q.forwardRef(
9812
9821
  }
9813
9822
  );
9814
9823
  Ra.displayName = "SearchInput";
9815
- const lu = [
9824
+ const cu = [
9816
9825
  { id: "length", label: "At least 8 characters", validate: (r) => r.length >= 8 },
9817
9826
  { id: "lowercase", label: "Contains lowercase letter", validate: (r) => /[a-z]/.test(r) },
9818
9827
  { id: "uppercase", label: "Contains uppercase letter", validate: (r) => /[A-Z]/.test(r) },
9819
9828
  { id: "number", label: "Contains number", validate: (r) => /\d/.test(r) },
9820
9829
  { id: "special", label: "Contains special character", validate: (r) => /[!@#$%^&*(),.?":{}|<>]/.test(r) }
9821
- ], cu = (r) => {
9830
+ ], du = (r) => {
9822
9831
  const t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*";
9823
9832
  let n = "";
9824
9833
  for (let a = 0; a < r; a++)
9825
9834
  n += t.charAt(Math.floor(Math.random() * t.length));
9826
9835
  return n;
9827
- }, du = (r, t) => {
9836
+ }, uu = (r, t) => {
9828
9837
  if (!r) return "weak";
9829
9838
  const a = t.filter((s) => s.validate(r)).length / t.length;
9830
9839
  return a < 0.4 ? "weak" : a < 0.6 ? "fair" : a < 0.8 ? "good" : "strong";
@@ -9833,7 +9842,7 @@ const lu = [
9833
9842
  showToggle: r = !0,
9834
9843
  showStrength: t = !1,
9835
9844
  strength: n,
9836
- strengthRules: a = lu,
9845
+ strengthRules: a = cu,
9837
9846
  showGenerate: s = !1,
9838
9847
  onGenerate: o,
9839
9848
  generateLength: i = 16,
@@ -9854,7 +9863,7 @@ const lu = [
9854
9863
  autoComplete: k = "new-password"
9855
9864
  }, I) => {
9856
9865
  const [g, E] = O(!1), [x, D] = O(String(u ?? "")), N = l !== void 0 ? String(l) : x, R = ee(
9857
- () => du(N, a),
9866
+ () => uu(N, a),
9858
9867
  [N, a]
9859
9868
  ), z = n ?? R, L = ee(
9860
9869
  () => a.map((j) => ({
@@ -9870,7 +9879,7 @@ const lu = [
9870
9879
  ), H = S(() => {
9871
9880
  E((j) => !j);
9872
9881
  }, []), Y = S(() => {
9873
- const j = cu(i);
9882
+ const j = du(i);
9874
9883
  o ? o(j) : (l === void 0 && D(j), m?.({
9875
9884
  target: { value: j },
9876
9885
  currentTarget: { value: j }
@@ -9966,7 +9975,7 @@ const lu = [
9966
9975
  }
9967
9976
  );
9968
9977
  ur.displayName = "PasswordInput";
9969
- const uu = q.forwardRef(
9978
+ const mu = q.forwardRef(
9970
9979
  ({
9971
9980
  value: r,
9972
9981
  defaultValue: t = [],
@@ -9987,7 +9996,7 @@ const uu = q.forwardRef(
9987
9996
  id: v,
9988
9997
  name: h
9989
9998
  }, C) => {
9990
- const T = Le(), w = v || T, k = se(null), [I, g] = O(t), [E, x] = O(""), [D, N] = O(null), [R, z] = O(!1), [L, P] = O(-1), H = r !== void 0, Y = H ? r : I, V = E ? l.filter(
9999
+ const T = Le(), w = v || T, k = ie(null), [I, g] = O(t), [E, x] = O(""), [D, N] = O(null), [R, z] = O(!1), [L, P] = O(-1), H = r !== void 0, Y = H ? r : I, V = E ? l.filter(
9991
10000
  (de) => de.toLowerCase().includes(E.toLowerCase()) && (i || !Y.includes(de))
9992
10001
  ) : [], M = R && V.length > 0, W = s === void 0 || Y.length < s, j = S(
9993
10002
  (de) => {
@@ -9996,56 +10005,56 @@ const uu = q.forwardRef(
9996
10005
  [H, n]
9997
10006
  ), G = S(
9998
10007
  (de) => {
9999
- const ne = de.trim();
10000
- if (ne) {
10008
+ const ae = de.trim();
10009
+ if (ae) {
10001
10010
  if (!W) {
10002
10011
  N(`Maximum of ${s} tags allowed`);
10003
10012
  return;
10004
10013
  }
10005
- if (!i && Y.includes(ne)) {
10014
+ if (!i && Y.includes(ae)) {
10006
10015
  N("Duplicate tag");
10007
10016
  return;
10008
10017
  }
10009
- if (o && ne.length > o) {
10018
+ if (o && ae.length > o) {
10010
10019
  N(`Tag must be ${o} characters or less`);
10011
10020
  return;
10012
10021
  }
10013
10022
  if (c) {
10014
- const ge = c(ne);
10023
+ const ge = c(ae);
10015
10024
  if (ge !== !0) {
10016
10025
  N(typeof ge == "string" ? ge : "Invalid tag");
10017
10026
  return;
10018
10027
  }
10019
10028
  }
10020
- N(null), j([...Y, ne]), x(""), P(-1);
10029
+ N(null), j([...Y, ae]), x(""), P(-1);
10021
10030
  }
10022
10031
  },
10023
10032
  [Y, W, s, i, o, c, j]
10024
10033
  ), $ = S(
10025
10034
  (de) => {
10026
- const ne = Y.filter((ge, Me) => Me !== de);
10027
- j(ne), N(null);
10035
+ const ae = Y.filter((ge, Me) => Me !== de);
10036
+ j(ae), N(null);
10028
10037
  },
10029
10038
  [Y, j]
10030
10039
  ), K = S(
10031
10040
  (de) => {
10032
- const ne = de.target.value, ge = a.filter((Me) => Me !== "Enter");
10041
+ const ae = de.target.value, ge = a.filter((Me) => Me !== "Enter");
10033
10042
  for (const Me of ge)
10034
- if (ne.includes(Me)) {
10035
- ne.split(Me).forEach((we) => {
10043
+ if (ae.includes(Me)) {
10044
+ ae.split(Me).forEach((we) => {
10036
10045
  we.trim() && G(we);
10037
10046
  });
10038
10047
  return;
10039
10048
  }
10040
- x(ne), P(-1), N(null);
10049
+ x(ae), P(-1), N(null);
10041
10050
  },
10042
10051
  [a, G]
10043
10052
  ), Z = S(
10044
10053
  (de) => {
10045
10054
  de.key === "Enter" ? (de.preventDefault(), M && L >= 0 ? G(V[L]) : a.includes("Enter") && E.trim() && G(E)) : de.key === "Backspace" && !E && Y.length > 0 ? $(Y.length - 1) : de.key === "ArrowDown" && M ? (de.preventDefault(), P(
10046
- (ne) => ne < V.length - 1 ? ne + 1 : 0
10055
+ (ae) => ae < V.length - 1 ? ae + 1 : 0
10047
10056
  )) : de.key === "ArrowUp" && M ? (de.preventDefault(), P(
10048
- (ne) => ne > 0 ? ne - 1 : V.length - 1
10057
+ (ae) => ae > 0 ? ae - 1 : V.length - 1
10049
10058
  )) : de.key === "Escape" && (x(""), P(-1));
10050
10059
  },
10051
10060
  [
@@ -10086,7 +10095,7 @@ const uu = q.forwardRef(
10086
10095
  /* @__PURE__ */ d("div", { className: be, onClick: te, children: [
10087
10096
  h && /* @__PURE__ */ e("input", { type: "hidden", name: h, value: Y.join(",") }),
10088
10097
  /* @__PURE__ */ d("div", { className: "gloss-tag-input__tags", children: [
10089
- Y.map((de, ne) => /* @__PURE__ */ d("span", { className: "gloss-tag-input__tag", children: [
10098
+ Y.map((de, ae) => /* @__PURE__ */ d("span", { className: "gloss-tag-input__tag", children: [
10090
10099
  /* @__PURE__ */ e("span", { className: "gloss-tag-input__tag-text", children: de }),
10091
10100
  !m && /* @__PURE__ */ e(
10092
10101
  "button",
@@ -10094,14 +10103,14 @@ const uu = q.forwardRef(
10094
10103
  type: "button",
10095
10104
  className: "gloss-tag-input__tag-remove",
10096
10105
  onClick: (ge) => {
10097
- ge.stopPropagation(), $(ne);
10106
+ ge.stopPropagation(), $(ae);
10098
10107
  },
10099
10108
  "aria-label": `Remove ${de}`,
10100
10109
  tabIndex: -1,
10101
10110
  children: /* @__PURE__ */ e(ve, { name: "x", size: "sm" })
10102
10111
  }
10103
10112
  )
10104
- ] }, `${de}-${ne}`)),
10113
+ ] }, `${de}-${ae}`)),
10105
10114
  W && /* @__PURE__ */ e(
10106
10115
  "input",
10107
10116
  {
@@ -10122,12 +10131,12 @@ const uu = q.forwardRef(
10122
10131
  }
10123
10132
  )
10124
10133
  ] }),
10125
- M && /* @__PURE__ */ e("ul", { className: "gloss-tag-input__suggestions", role: "listbox", children: V.map((de, ne) => /* @__PURE__ */ e(
10134
+ M && /* @__PURE__ */ e("ul", { className: "gloss-tag-input__suggestions", role: "listbox", children: V.map((de, ae) => /* @__PURE__ */ e(
10126
10135
  "li",
10127
10136
  {
10128
10137
  role: "option",
10129
- "aria-selected": ne === L,
10130
- className: `gloss-tag-input__suggestion ${ne === L ? "gloss-tag-input__suggestion--selected" : ""}`,
10138
+ "aria-selected": ae === L,
10139
+ className: `gloss-tag-input__suggestion ${ae === L ? "gloss-tag-input__suggestion--selected" : ""}`,
10131
10140
  onClick: () => pe(de),
10132
10141
  children: de
10133
10142
  },
@@ -10148,8 +10157,8 @@ const uu = q.forwardRef(
10148
10157
  ] });
10149
10158
  }
10150
10159
  );
10151
- uu.displayName = "TagInput";
10152
- const mu = [
10160
+ mu.displayName = "TagInput";
10161
+ const pu = [
10153
10162
  { code: "US", name: "United States", dialCode: "+1", format: "(###) ###-####" },
10154
10163
  { code: "CA", name: "Canada", dialCode: "+1", format: "(###) ###-####" },
10155
10164
  { code: "GB", name: "United Kingdom", dialCode: "+44", format: "#### ### ####" },
@@ -10177,7 +10186,7 @@ const mu = [
10177
10186
  nationalNumber: r.slice(a.dialCode.length)
10178
10187
  };
10179
10188
  return { country: null, nationalNumber: r.slice(1) };
10180
- }, pu = (r, t) => {
10189
+ }, fu = (r, t) => {
10181
10190
  if (!t) return r;
10182
10191
  const n = r.replace(/\D/g, "");
10183
10192
  let a = "", s = 0;
@@ -10186,13 +10195,13 @@ const mu = [
10186
10195
  o === "#" ? (a += n[s], s++) : a += o;
10187
10196
  }
10188
10197
  return s < n.length && (a += n.slice(s)), a;
10189
- }, Kn = (r) => r.replace(/\D/g, ""), fu = q.forwardRef(
10198
+ }, Kn = (r) => r.replace(/\D/g, ""), gu = q.forwardRef(
10190
10199
  ({
10191
10200
  value: r,
10192
10201
  defaultValue: t,
10193
10202
  onChange: n,
10194
10203
  defaultCountry: a = "US",
10195
- countries: s = mu,
10204
+ countries: s = pu,
10196
10205
  showCountrySelect: o = !0,
10197
10206
  format: i = "national",
10198
10207
  label: c,
@@ -10215,7 +10224,7 @@ const mu = [
10215
10224
  ), [x, D] = O(!1), N = r !== void 0, R = ee(
10216
10225
  () => N ? jn(r || "", s) : null,
10217
10226
  [N, r, s]
10218
- ), z = R?.country || k, L = R?.nationalNumber || g, P = pu(L, z.format), H = S(
10227
+ ), z = R?.country || k, L = R?.nationalNumber || g, P = fu(L, z.format), H = S(
10219
10228
  (G, $) => {
10220
10229
  const K = Kn($);
10221
10230
  return K ? `${G.dialCode}${K}` : "";
@@ -10309,7 +10318,7 @@ const mu = [
10309
10318
  ] });
10310
10319
  }
10311
10320
  );
10312
- fu.displayName = "PhoneInput";
10321
+ gu.displayName = "PhoneInput";
10313
10322
  const za = q.forwardRef(
10314
10323
  (r, t) => {
10315
10324
  const {
@@ -10377,8 +10386,8 @@ function Ur({
10377
10386
  );
10378
10387
  }
10379
10388
  Ur.displayName = "PresetPopover";
10380
- const gu = (r) => String(r), hu = /* @__PURE__ */ e("div", { className: "gloss-autocomplete__empty", children: "No matches found. Try a different search." });
10381
- function bu() {
10389
+ const hu = (r) => String(r), bu = /* @__PURE__ */ e("div", { className: "gloss-autocomplete__empty", children: "No matches found. Try a different search." });
10390
+ function yu() {
10382
10391
  return /* @__PURE__ */ d("div", { className: "gloss-autocomplete__loading", children: [
10383
10392
  /* @__PURE__ */ e(qe, { name: "loader" }),
10384
10393
  "Loading..."
@@ -10389,10 +10398,10 @@ function Aa(r) {
10389
10398
  options: t,
10390
10399
  value: n,
10391
10400
  onChange: a,
10392
- getOptionLabel: s = gu,
10401
+ getOptionLabel: s = hu,
10393
10402
  onSearch: o,
10394
10403
  resultSlot: i,
10395
- emptySlot: c = hu,
10404
+ emptySlot: c = bu,
10396
10405
  loadingSlot: l,
10397
10406
  placeholder: u,
10398
10407
  label: m,
@@ -10403,8 +10412,8 @@ function Aa(r) {
10403
10412
  disabled: _ = !1,
10404
10413
  size: v = "md",
10405
10414
  className: h
10406
- } = r, [C, T] = O(""), [w, k] = O(!1), [I, g] = O(-1), E = se(null), x = se(null), D = se(null);
10407
- ie(() => {
10415
+ } = r, [C, T] = O(""), [w, k] = O(!1), [I, g] = O(-1), E = ie(null), x = ie(null), D = ie(null);
10416
+ oe(() => {
10408
10417
  n != null && T(s(n));
10409
10418
  }, [n, s]);
10410
10419
  const N = ee(() => {
@@ -10453,9 +10462,9 @@ function Aa(r) {
10453
10462
  },
10454
10463
  [w, N, I, z]
10455
10464
  );
10456
- ie(() => {
10465
+ oe(() => {
10457
10466
  I >= 0 && D.current && D.current.querySelectorAll('[role="option"]')[I]?.scrollIntoView({ block: "nearest" });
10458
- }, [I]), ie(() => () => {
10467
+ }, [I]), oe(() => () => {
10459
10468
  x.current && clearTimeout(x.current);
10460
10469
  }, []);
10461
10470
  const P = S(() => {
@@ -10491,7 +10500,7 @@ function Aa(r) {
10491
10500
  onDismiss: H,
10492
10501
  anchorRef: E,
10493
10502
  placement: "bottom-start",
10494
- children: b ? l ?? /* @__PURE__ */ e(bu, {}) : N.length === 0 ? c : /* @__PURE__ */ e(
10503
+ children: b ? l ?? /* @__PURE__ */ e(yu, {}) : N.length === 0 ? c : /* @__PURE__ */ e(
10495
10504
  "ul",
10496
10505
  {
10497
10506
  ref: D,
@@ -10542,7 +10551,7 @@ function $a(r) {
10542
10551
  maxSelected: b,
10543
10552
  searchable: _ = !1,
10544
10553
  className: v
10545
- } = r, [h, C] = O(!1), [T, w] = O(""), [k, I] = O(-1), g = se(null), E = se(null), x = se(null), D = ee(
10554
+ } = r, [h, C] = O(!1), [T, w] = O(""), [k, I] = O(-1), g = ie(null), E = ie(null), x = ie(null), D = ee(
10546
10555
  () => t.filter((W) => n.includes(W.value)),
10547
10556
  [t, n]
10548
10557
  ), N = ee(() => {
@@ -10589,11 +10598,11 @@ function $a(r) {
10589
10598
  },
10590
10599
  [f, h, N, k, z, _, T, n, L]
10591
10600
  );
10592
- ie(() => {
10601
+ oe(() => {
10593
10602
  k >= 0 && x.current && x.current.querySelectorAll('[role="option"]')[k]?.scrollIntoView({ block: "nearest" });
10594
- }, [k]), ie(() => {
10603
+ }, [k]), oe(() => {
10595
10604
  h && _ && E.current && E.current.focus();
10596
- }, [h, _]), ie(() => {
10605
+ }, [h, _]), oe(() => {
10597
10606
  h || (w(""), I(-1));
10598
10607
  }, [h]);
10599
10608
  const H = S(() => {
@@ -10739,20 +10748,20 @@ function $a(r) {
10739
10748
  ] });
10740
10749
  }
10741
10750
  $a.displayName = "MultiSelect";
10742
- const yu = {
10751
+ const vu = {
10743
10752
  xs: { size: "24px", fontSize: "0.625rem" },
10744
10753
  sm: { size: "32px", fontSize: "0.75rem" },
10745
10754
  md: { size: "40px", fontSize: "0.875rem" },
10746
10755
  lg: { size: "48px", fontSize: "1rem" },
10747
10756
  xl: { size: "64px", fontSize: "1.25rem" }
10748
- }, vu = {
10757
+ }, _u = {
10749
10758
  bg: B.BgMuted,
10750
10759
  color: B.TextSecondary
10751
- }, _u = {
10760
+ }, xu = {
10752
10761
  circle: "50%",
10753
10762
  square: Se.Md
10754
10763
  };
10755
- function xu() {
10764
+ function Nu() {
10756
10765
  return /* @__PURE__ */ e(
10757
10766
  "svg",
10758
10767
  {
@@ -10777,14 +10786,14 @@ function Xr(r) {
10777
10786
  } = r, l = { ...c };
10778
10787
  delete l.className, delete l.style, delete l.definition;
10779
10788
  const u = {
10780
- ...vu,
10781
- ...yu[t],
10782
- radius: _u[n]
10789
+ ..._u,
10790
+ ...vu[t],
10791
+ radius: xu[n]
10783
10792
  }, m = [
10784
10793
  "gloss-preset-avatar",
10785
10794
  `gloss-preset-avatar--${t}`
10786
10795
  ].join(" ");
10787
- let p = /* @__PURE__ */ e(xu, {});
10796
+ let p = /* @__PURE__ */ e(Nu, {});
10788
10797
  return i ? p = i : o && (p = o), /* @__PURE__ */ e(
10789
10798
  ri,
10790
10799
  {
@@ -10798,7 +10807,7 @@ function Xr(r) {
10798
10807
  );
10799
10808
  }
10800
10809
  Xr.displayName = "PresetAvatar";
10801
- function Nu(r, t) {
10810
+ function Su(r, t) {
10802
10811
  return /* @__PURE__ */ d("div", { className: `gloss-entity-picker__result ${t ? "gloss-entity-picker__result--highlighted" : ""}`, children: [
10803
10812
  r.avatarUrl ? /* @__PURE__ */ e("div", { className: "gloss-entity-picker__result-avatar", children: /* @__PURE__ */ e(Xr, { src: r.avatarUrl, alt: r.label, size: "sm" }) }) : r.icon ? /* @__PURE__ */ e("div", { className: "gloss-entity-picker__result-icon", children: /* @__PURE__ */ e(qe, { name: r.icon, definition: { size: "sm" } }) }) : null,
10804
10813
  /* @__PURE__ */ d("div", { className: "gloss-entity-picker__result-info", children: [
@@ -10807,13 +10816,13 @@ function Nu(r, t) {
10807
10816
  ] })
10808
10817
  ] });
10809
10818
  }
10810
- const Su = /* @__PURE__ */ e("div", { className: "gloss-entity-picker__empty", children: "No entities found. No matching entities found." });
10811
- function Cu({
10819
+ const Cu = /* @__PURE__ */ e("div", { className: "gloss-entity-picker__empty", children: "No entities found. No matching entities found." });
10820
+ function wu({
10812
10821
  entities: r,
10813
10822
  value: t,
10814
10823
  onChange: n,
10815
10824
  onSearch: a,
10816
- resultSlot: s = Nu,
10825
+ resultSlot: s = Su,
10817
10826
  selectedSlot: o,
10818
10827
  placeholder: i = "Search entities...",
10819
10828
  label: c,
@@ -10832,7 +10841,7 @@ function Cu({
10832
10841
  getOptionLabel: (y) => y.label,
10833
10842
  onSearch: a,
10834
10843
  resultSlot: s,
10835
- emptySlot: Su,
10844
+ emptySlot: Cu,
10836
10845
  placeholder: i,
10837
10846
  label: c,
10838
10847
  isLoading: l,
@@ -10841,7 +10850,7 @@ function Cu({
10841
10850
  }
10842
10851
  ) });
10843
10852
  }
10844
- Cu.displayName = "EntityPicker";
10853
+ wu.displayName = "EntityPicker";
10845
10854
  function qr(r) {
10846
10855
  const {
10847
10856
  columns: t,
@@ -11031,12 +11040,12 @@ function qr(r) {
11031
11040
  ] });
11032
11041
  }
11033
11042
  qr.displayName = "DataTable";
11034
- const wu = [
11043
+ const ku = [
11035
11044
  { value: "count", label: "Count" },
11036
11045
  { value: "total", label: "Total" },
11037
11046
  { value: "average", label: "Average" }
11038
11047
  ];
11039
- function ku({
11048
+ function Du({
11040
11049
  filterDescription: r,
11041
11050
  filterPayload: t,
11042
11051
  onConfirm: n,
@@ -11045,7 +11054,7 @@ function ku({
11045
11054
  const [s, o] = O(!1), { refs: i, floatingStyles: c, context: l } = aa({
11046
11055
  open: s,
11047
11056
  onOpenChange: o
11048
- }), u = _o(l), m = sa(l), { getReferenceProps: p, getFloatingProps: f } = ia([u, m]);
11057
+ }), u = xo(l), m = sa(l), { getReferenceProps: p, getFloatingProps: f } = ia([u, m]);
11049
11058
  if (a)
11050
11059
  return null;
11051
11060
  const y = (_) => {
@@ -11066,7 +11075,7 @@ function ku({
11066
11075
  children: /* @__PURE__ */ e("span", { className: "pin-to-metric__icon", "aria-hidden": "true", children: "📌" })
11067
11076
  }
11068
11077
  ),
11069
- s && /* @__PURE__ */ e(oa, { children: /* @__PURE__ */ e(xo, { context: l, children: /* @__PURE__ */ d(
11078
+ s && /* @__PURE__ */ e(oa, { children: /* @__PURE__ */ e(No, { context: l, children: /* @__PURE__ */ d(
11070
11079
  "div",
11071
11080
  {
11072
11081
  ref: i.setFloating,
@@ -11077,7 +11086,7 @@ function ku({
11077
11086
  /* @__PURE__ */ e("div", { className: "pin-to-metric__popover-header", children: r }),
11078
11087
  /* @__PURE__ */ d("div", { className: "pin-to-metric__popover-body", children: [
11079
11088
  /* @__PURE__ */ e("p", { className: "pin-to-metric__popover-prompt", children: "Pin as metric card using:" }),
11080
- /* @__PURE__ */ e("div", { className: "pin-to-metric__agg-buttons", children: wu.map(({ value: _, label: v }) => /* @__PURE__ */ e(
11089
+ /* @__PURE__ */ e("div", { className: "pin-to-metric__agg-buttons", children: ku.map(({ value: _, label: v }) => /* @__PURE__ */ e(
11081
11090
  "button",
11082
11091
  {
11083
11092
  type: "button",
@@ -11093,13 +11102,13 @@ function ku({
11093
11102
  ) }) })
11094
11103
  ] });
11095
11104
  }
11096
- ku.displayName = "PinToMetric";
11097
- const Du = {
11105
+ Du.displayName = "PinToMetric";
11106
+ const Iu = {
11098
11107
  sm: "400px",
11099
11108
  md: "560px",
11100
11109
  lg: "720px",
11101
11110
  fullscreen: "100vw"
11102
- }, Iu = {
11111
+ }, Tu = {
11103
11112
  portal: !0,
11104
11113
  dismissOnClickOutside: !0,
11105
11114
  dismissOnEscape: !0,
@@ -11111,13 +11120,13 @@ const Du = {
11111
11120
  zIndex: Qn.Modal
11112
11121
  };
11113
11122
  function Zr({ open: r, onDismiss: t, size: n = "md", children: a }) {
11114
- const s = Du[n];
11123
+ const s = Iu[n];
11115
11124
  return /* @__PURE__ */ d(Ge, { children: [
11116
11125
  r && /* @__PURE__ */ e("div", { className: "gloss-container-dialog__backdrop", "data-density": "default" }),
11117
11126
  /* @__PURE__ */ e(
11118
11127
  ea,
11119
11128
  {
11120
- definition: Iu,
11129
+ definition: Tu,
11121
11130
  open: r,
11122
11131
  onDismiss: t,
11123
11132
  className: `gloss-container-dialog gloss-container-dialog--${n}`,
@@ -11143,7 +11152,7 @@ const en = q.forwardRef(({ children: r, ...t }, n) => {
11143
11152
  return delete a.className, delete a.style, /* @__PURE__ */ e("div", { ref: n, className: "gloss-container-dialog__actions", ...a, children: /* @__PURE__ */ e(bt, { region: "dialog-actions", children: r }) });
11144
11153
  });
11145
11154
  en.displayName = "ContainerDialogActions";
11146
- function Tu(r) {
11155
+ function Eu(r) {
11147
11156
  const {
11148
11157
  open: t,
11149
11158
  onClose: n,
@@ -11185,8 +11194,8 @@ function Tu(r) {
11185
11194
  ] }) })
11186
11195
  ] }) });
11187
11196
  }
11188
- Tu.displayName = "FormDialog";
11189
- const Eu = {
11197
+ Eu.displayName = "FormDialog";
11198
+ const Mu = {
11190
11199
  body: {
11191
11200
  fontFamily: Ae.FontBody,
11192
11201
  fontSize: Ae.TextBase,
@@ -11209,7 +11218,7 @@ const Eu = {
11209
11218
  letterSpacing: "0.08em",
11210
11219
  color: B.TextSecondary
11211
11220
  }
11212
- }, Mu = {
11221
+ }, Pu = {
11213
11222
  xs: { fontSize: Ae.TextXs },
11214
11223
  sm: { fontSize: Ae.TextSm },
11215
11224
  md: { fontSize: Ae.TextBase },
@@ -11224,8 +11233,8 @@ const Eu = {
11224
11233
  } = t, i = { ...o };
11225
11234
  delete i.className, delete i.style, delete i.definition;
11226
11235
  const c = {
11227
- ...Eu[n],
11228
- ...Mu[a]
11236
+ ...Mu[n],
11237
+ ...Pu[a]
11229
11238
  }, l = [
11230
11239
  "gloss-preset-text",
11231
11240
  `gloss-preset-text--${n}`
@@ -11242,7 +11251,7 @@ const Eu = {
11242
11251
  );
11243
11252
  };
11244
11253
  Lt.displayName = "PresetText";
11245
- function Pu({
11254
+ function Bu({
11246
11255
  open: r,
11247
11256
  cardA: t,
11248
11257
  cardB: n,
@@ -11367,7 +11376,7 @@ function Pu({
11367
11376
  }
11368
11377
  );
11369
11378
  }
11370
- Pu.displayName = "MergePrompt";
11379
+ Bu.displayName = "MergePrompt";
11371
11380
  function Fa(r) {
11372
11381
  const {
11373
11382
  steps: t,
@@ -11433,7 +11442,7 @@ const Yn = ye.object({
11433
11442
  email: ye.string().email("Please enter a valid email address"),
11434
11443
  password: ye.string().min(8, "Password must be at least 8 characters"),
11435
11444
  rememberMe: ye.boolean().optional()
11436
- }), sp = {
11445
+ }), ip = {
11437
11446
  slug: "login-form",
11438
11447
  displayName: "Login Form",
11439
11448
  description: "A standard authentication form with email, password, remember me checkbox, and forgot password link. Includes Zod validation.",
@@ -11491,7 +11500,7 @@ const Yn = ye.object({
11491
11500
  ],
11492
11501
  version: "1.0.0"
11493
11502
  };
11494
- function ip({
11503
+ function op({
11495
11504
  title: r = "Welcome Back",
11496
11505
  subtitle: t = "Sign in to your account",
11497
11506
  submitLabel: n = "Sign In",
@@ -11630,7 +11639,7 @@ function ip({
11630
11639
  ] })
11631
11640
  ] });
11632
11641
  }
11633
- const Bu = [
11642
+ const Ru = [
11634
11643
  { value: "AL", label: "Alabama" },
11635
11644
  { value: "AK", label: "Alaska" },
11636
11645
  { value: "AZ", label: "Arizona" },
@@ -11688,7 +11697,7 @@ const Bu = [
11688
11697
  state: ye.string().min(2, "Please select a state"),
11689
11698
  zip: ye.string().regex(/^\d{5}(-\d{4})?$/, "Please enter a valid ZIP code"),
11690
11699
  country: ye.string().default("US")
11691
- }), op = {
11700
+ }), lp = {
11692
11701
  slug: "address-group",
11693
11702
  displayName: "Address Group",
11694
11703
  description: "A complete address collection form with street, city, state, and ZIP fields. Includes US state select and ZIP code validation.",
@@ -11734,7 +11743,7 @@ const Bu = [
11734
11743
  ],
11735
11744
  version: "1.0.0"
11736
11745
  };
11737
- function Ru({
11746
+ function zu({
11738
11747
  legend: r = "Address",
11739
11748
  compact: t = !1,
11740
11749
  showStreet2: n = !0,
@@ -11882,7 +11891,7 @@ function Ru({
11882
11891
  w("state")(g), _((E) => ({ ...E, state: !0 }));
11883
11892
  },
11884
11893
  disabled: o,
11885
- options: Bu
11894
+ options: Ru
11886
11895
  }
11887
11896
  ),
11888
11897
  C.state && b.state && /* @__PURE__ */ e("span", { className: "gloss-pattern-address-group__error", children: C.state })
@@ -11923,9 +11932,9 @@ function Ru({
11923
11932
  )
11924
11933
  ] });
11925
11934
  }
11926
- const Oa = os(Ru);
11935
+ const Oa = os(zu);
11927
11936
  Oa.displayName = "AddressGroup";
11928
- const zu = (r) => {
11937
+ const Au = (r) => {
11929
11938
  const t = r.replace(/\s/g, "");
11930
11939
  if (!/^\d{13,19}$/.test(t)) return !1;
11931
11940
  let n = 0, a = !1;
@@ -11935,14 +11944,14 @@ const zu = (r) => {
11935
11944
  }
11936
11945
  return n % 10 === 0;
11937
11946
  }, mr = ye.object({
11938
- cardNumber: ye.string().min(13, "Card number is too short").refine((r) => zu(r), "Invalid card number"),
11947
+ cardNumber: ye.string().min(13, "Card number is too short").refine((r) => Au(r), "Invalid card number"),
11939
11948
  expiryDate: ye.string().regex(/^(0[1-9]|1[0-2])\s?\/\s?\d{2}$/, "Invalid expiry date (MM/YY)").refine((r) => {
11940
11949
  const [t, n] = r.split("/").map((o) => parseInt(o.trim(), 10)), a = /* @__PURE__ */ new Date();
11941
11950
  return new Date(2e3 + n, t - 1) > a;
11942
11951
  }, "Card has expired"),
11943
11952
  cvv: ye.string().regex(/^\d{3,4}$/, "CVV must be 3 or 4 digits"),
11944
11953
  cardholderName: ye.string().min(2, "Cardholder name is required")
11945
- }), lp = {
11954
+ }), cp = {
11946
11955
  slug: "credit-card-form",
11947
11956
  displayName: "Credit Card Form",
11948
11957
  description: "A secure payment form with card number masking, expiry date formatting, CVV input, and Luhn validation. Supports async BIN validation.",
@@ -12006,7 +12015,7 @@ const zu = (r) => {
12006
12015
  ],
12007
12016
  version: "1.0.0"
12008
12017
  };
12009
- function cp({
12018
+ function dp({
12010
12019
  title: r = "Payment Details",
12011
12020
  subtitle: t = "Enter your card information",
12012
12021
  submitLabel: n = "Pay",
@@ -12187,7 +12196,7 @@ const Un = ye.object({
12187
12196
  }).refine((r) => r.password === r.confirmPassword, {
12188
12197
  message: "Passwords must match",
12189
12198
  path: ["confirmPassword"]
12190
- }), dp = {
12199
+ }), up = {
12191
12200
  slug: "registration-form",
12192
12201
  displayName: "Registration Form",
12193
12202
  description: "A user registration form with name, email, password fields, terms acceptance, and Zod validation. Supports password strength indicator and confirmation matching.",
@@ -12239,7 +12248,7 @@ const Un = ye.object({
12239
12248
  ],
12240
12249
  version: "1.0.0"
12241
12250
  };
12242
- function up({
12251
+ function mp({
12243
12252
  onSubmit: r,
12244
12253
  onSubmitRaw: t,
12245
12254
  isLoading: n = !1,
@@ -12449,7 +12458,7 @@ const Xn = ye.object({
12449
12458
  email: ye.string().email("Please enter a valid email address"),
12450
12459
  subject: ye.string().min(1, "Subject is required"),
12451
12460
  message: ye.string().min(10, "Message must be at least 10 characters")
12452
- }), mp = {
12461
+ }), pp = {
12453
12462
  slug: "contact-form",
12454
12463
  displayName: "Contact Form",
12455
12464
  description: "A contact/support form with name, email, subject, and message fields. Supports optional subject dropdown and Zod validation.",
@@ -12489,7 +12498,7 @@ const Xn = ye.object({
12489
12498
  ],
12490
12499
  version: "1.0.0"
12491
12500
  };
12492
- function pp({
12501
+ function fp({
12493
12502
  onSubmit: r,
12494
12503
  onSubmitRaw: t,
12495
12504
  isLoading: n = !1,
@@ -12645,7 +12654,7 @@ function pp({
12645
12654
  ) })
12646
12655
  ] });
12647
12656
  }
12648
- const Au = ye.object({
12657
+ const $u = ye.object({
12649
12658
  paymentMethod: ye.enum(["credit_card", "debit_card", "bank_transfer"]),
12650
12659
  card: mr.optional(),
12651
12660
  billingAddress: Gr,
@@ -12656,7 +12665,7 @@ const Au = ye.object({
12656
12665
  message: "Card details are required for card payments",
12657
12666
  path: ["card"]
12658
12667
  }
12659
- ), fp = {
12668
+ ), gp = {
12660
12669
  slug: "payment-form",
12661
12670
  displayName: "Payment Form",
12662
12671
  description: "A comprehensive payment form orchestrating payment method selection, card fields, and billing address. Composes creditCardSchema and addressSchema with Zod.",
@@ -12696,7 +12705,7 @@ const Au = ye.object({
12696
12705
  ],
12697
12706
  version: "1.0.0"
12698
12707
  };
12699
- function gp({
12708
+ function hp({
12700
12709
  onSubmit: r,
12701
12710
  onSubmitRaw: t,
12702
12711
  isLoading: n = !1,
@@ -12717,7 +12726,7 @@ function gp({
12717
12726
  cardholderName: s.card?.cardholderName ?? ""
12718
12727
  }), [b, _] = O({}), [v, h] = O({}), [C, T] = O(
12719
12728
  s.savePaymentMethod ?? !1
12720
- ), [w, k] = O(), I = se(null), g = m === "credit_card" || m === "debit_card", E = S((z, L) => {
12729
+ ), [w, k] = O(), I = ie(null), g = m === "credit_card" || m === "debit_card", E = S((z, L) => {
12721
12730
  try {
12722
12731
  mr.shape[z].parse(L), _((H) => ({ ...H, [z]: void 0 }));
12723
12732
  } catch (P) {
@@ -12755,7 +12764,7 @@ function gp({
12755
12764
  savePaymentMethod: C
12756
12765
  };
12757
12766
  g && (H.card = f);
12758
- const Y = Au.safeParse(H);
12767
+ const Y = $u.safeParse(H);
12759
12768
  if (!Y.success) {
12760
12769
  const V = {};
12761
12770
  Y.error.issues.forEach((M) => {
@@ -12916,7 +12925,7 @@ function gp({
12916
12925
  ] })
12917
12926
  ] });
12918
12927
  }
12919
- const hp = {
12928
+ const bp = {
12920
12929
  slug: "destructive-modal",
12921
12930
  displayName: "Destructive Modal",
12922
12931
  description: "A confirmation dialog for dangerous actions like delete operations. Supports optional text confirmation for extra safety.",
@@ -12974,7 +12983,7 @@ const hp = {
12974
12983
  ],
12975
12984
  version: "1.0.0"
12976
12985
  };
12977
- function bp({
12986
+ function yp({
12978
12987
  isOpen: r,
12979
12988
  onClose: t,
12980
12989
  onConfirm: n,
@@ -12990,7 +12999,7 @@ function bp({
12990
12999
  icon: f = "alert-triangle"
12991
13000
  }) {
12992
13001
  const [y, b] = O("");
12993
- ie(() => {
13002
+ oe(() => {
12994
13003
  r || b("");
12995
13004
  }, [r]);
12996
13005
  const _ = S(async () => {
@@ -13043,7 +13052,7 @@ function bp({
13043
13052
  ] })
13044
13053
  ] });
13045
13054
  }
13046
- function $u(r) {
13055
+ function Fu(r) {
13047
13056
  const {
13048
13057
  onSearch: t,
13049
13058
  filters: n = [],
@@ -13101,8 +13110,8 @@ function $u(r) {
13101
13110
  )
13102
13111
  ] });
13103
13112
  }
13104
- $u.displayName = "EntitySearchPanel";
13105
- function Fu(r) {
13113
+ Fu.displayName = "EntitySearchPanel";
13114
+ function Ou(r) {
13106
13115
  const {
13107
13116
  name: t,
13108
13117
  subtitle: n,
@@ -13132,8 +13141,8 @@ function Fu(r) {
13132
13141
  ] }, m)) })
13133
13142
  ] }) });
13134
13143
  }
13135
- Fu.displayName = "ProfileCard";
13136
- function Ou(r) {
13144
+ Ou.displayName = "ProfileCard";
13145
+ function Lu(r) {
13137
13146
  const {
13138
13147
  value: t,
13139
13148
  onChange: n,
@@ -13192,8 +13201,8 @@ function Ou(r) {
13192
13201
  i && /* @__PURE__ */ e("div", { className: "gloss-order-filter-bar__reset", children: /* @__PURE__ */ e(De, { variant: "ghost", size: "sm", onClick: i, children: "Reset" }) })
13193
13202
  ] });
13194
13203
  }
13195
- Ou.displayName = "OrderFilterBar";
13196
- const Lu = {
13204
+ Lu.displayName = "OrderFilterBar";
13205
+ const Hu = {
13197
13206
  default: {
13198
13207
  fillBg: B.BrandPrimary,
13199
13208
  trackBg: B.Gray200,
@@ -13230,7 +13239,7 @@ function La(r) {
13230
13239
  ...c
13231
13240
  } = r, l = { ...c };
13232
13241
  delete l.className, delete l.style, delete l.definition;
13233
- const u = Lu[t], m = Math.round(n / (a || 100) * 100), p = [
13242
+ const u = Hu[t], m = Math.round(n / (a || 100) * 100), p = [
13234
13243
  "gloss-preset-progress-bar",
13235
13244
  `gloss-preset-progress-bar--${t}`,
13236
13245
  i !== "none" && `gloss-preset-progress-bar--label-${i}`
@@ -13262,12 +13271,12 @@ function La(r) {
13262
13271
  ] });
13263
13272
  }
13264
13273
  La.displayName = "PresetProgressBar";
13265
- const Hu = [
13274
+ const Wu = [
13266
13275
  { key: "upload", label: "Upload" },
13267
13276
  { key: "preview", label: "Preview" },
13268
13277
  { key: "confirm", label: "Confirm" }
13269
13278
  ];
13270
- function Wu(r) {
13279
+ function Gu(r) {
13271
13280
  const {
13272
13281
  acceptedTypes: t,
13273
13282
  onFileParsed: n,
@@ -13296,7 +13305,7 @@ function Wu(r) {
13296
13305
  /* @__PURE__ */ e(
13297
13306
  Fa,
13298
13307
  {
13299
- steps: Hu,
13308
+ steps: Wu,
13300
13309
  activeStep: u,
13301
13310
  onStepChange: m,
13302
13311
  onStepValidate: C,
@@ -13343,8 +13352,8 @@ function Wu(r) {
13343
13352
  _ && /* @__PURE__ */ e("p", { className: "gloss-import-wizard__error", children: _ })
13344
13353
  ] });
13345
13354
  }
13346
- Wu.displayName = "ImportWizard";
13347
- const Gu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: n, density: a = "default", children: s, ...o }, i) => {
13355
+ Gu.displayName = "ImportWizard";
13356
+ const Vu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: n, density: a = "default", children: s, ...o }, i) => {
13348
13357
  const c = { ...o };
13349
13358
  return delete c.className, delete c.style, /* @__PURE__ */ d(
13350
13359
  "div",
@@ -13375,7 +13384,7 @@ const Gu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: n, density: a
13375
13384
  }
13376
13385
  );
13377
13386
  });
13378
- Gu.displayName = "ContainerPanel";
13387
+ Vu.displayName = "ContainerPanel";
13379
13388
  function Xt(...r) {
13380
13389
  return (t) => {
13381
13390
  for (const n of r)
@@ -13388,7 +13397,7 @@ function pr(r, t) {
13388
13397
  r(n), t(n);
13389
13398
  } : r : t ?? void 0;
13390
13399
  }
13391
- const Vu = q.forwardRef(
13400
+ const ju = q.forwardRef(
13392
13401
  ({ onAction: r, disabled: t = !1, role: n = "button", children: a }, s) => {
13393
13402
  const o = q.Children.only(a), i = (u) => {
13394
13403
  t || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), r?.(u));
@@ -13405,8 +13414,8 @@ const Vu = q.forwardRef(
13405
13414
  });
13406
13415
  }
13407
13416
  );
13408
- Vu.displayName = "Actionable";
13409
- const ju = q.forwardRef(
13417
+ ju.displayName = "Actionable";
13418
+ const Ku = q.forwardRef(
13410
13419
  ({ selected: r = !1, onSelect: t, disabled: n = !1, showCheckbox: a = !1, children: s }, o) => {
13411
13420
  const i = q.Children.only(s), c = S((p) => {
13412
13421
  n || t?.(!r, p);
@@ -13446,17 +13455,17 @@ const ju = q.forwardRef(
13446
13455
  ] }) : m;
13447
13456
  }
13448
13457
  );
13449
- ju.displayName = "Selectable";
13450
- const Ku = q.forwardRef(
13458
+ Ku.displayName = "Selectable";
13459
+ const Yu = q.forwardRef(
13451
13460
  ({ onDismiss: r, dismissOnEscape: t = !0, dismissOnClickOutside: n = !0, showCloseButton: a = !1, disabled: s = !1, children: o }, i) => {
13452
- const c = q.Children.only(o), l = se(null);
13453
- ie(() => {
13461
+ const c = q.Children.only(o), l = ie(null);
13462
+ oe(() => {
13454
13463
  if (s || !t || !r) return;
13455
13464
  const p = (f) => {
13456
13465
  f.key === "Escape" && (f.stopPropagation(), r());
13457
13466
  };
13458
13467
  return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
13459
- }, [s, t, r]), ie(() => {
13468
+ }, [s, t, r]), oe(() => {
13460
13469
  if (s || !n || !r) return;
13461
13470
  const p = (y) => {
13462
13471
  l.current && !l.current.contains(y.target) && r();
@@ -13502,14 +13511,14 @@ const Ku = q.forwardRef(
13502
13511
  ] }) : m;
13503
13512
  }
13504
13513
  );
13505
- Ku.displayName = "Dismissible";
13514
+ Yu.displayName = "Dismissible";
13506
13515
  let tn = null, Ha = null;
13507
13516
  try {
13508
13517
  const r = require("@dnd-kit/sortable");
13509
13518
  tn = r.useSortable || r.default && r.default.useSortable, Ha = (r.CSS || r.default && r.default.CSS)?.Transform?.toString ?? null;
13510
13519
  } catch {
13511
13520
  }
13512
- const Yu = q.forwardRef(
13521
+ const Uu = q.forwardRef(
13513
13522
  ({ id: r, disabled: t = !1, children: n }, a) => {
13514
13523
  const s = q.Children.only(n);
13515
13524
  return tn ? /* @__PURE__ */ e(Wa, { id: r, disabled: t, outerRef: a, children: s }) : q.cloneElement(s, {
@@ -13517,7 +13526,7 @@ const Yu = q.forwardRef(
13517
13526
  });
13518
13527
  }
13519
13528
  );
13520
- Yu.displayName = "Sortable";
13529
+ Uu.displayName = "Sortable";
13521
13530
  function Wa({ id: r, disabled: t, outerRef: n, children: a }) {
13522
13531
  const {
13523
13532
  attributes: s,
@@ -13550,7 +13559,7 @@ try {
13550
13559
  Vr = r.motion?.div ?? null, jr = r.AnimatePresence ?? null;
13551
13560
  } catch {
13552
13561
  }
13553
- const Uu = q.forwardRef(
13562
+ const Xu = q.forwardRef(
13554
13563
  ({ expanded: r, trigger: t, onToggle: n, duration: a = 0.2, children: s }, o) => {
13555
13564
  const i = () => {
13556
13565
  n?.();
@@ -13574,181 +13583,181 @@ const Uu = q.forwardRef(
13574
13583
  ] });
13575
13584
  }
13576
13585
  );
13577
- Uu.displayName = "Expandable";
13586
+ Xu.displayName = "Expandable";
13578
13587
  export {
13579
- Cc as $,
13580
- Jl as A,
13588
+ wc as $,
13589
+ Ql as A,
13581
13590
  la as B,
13582
- Mo as C,
13583
- rc as D,
13584
- nc as E,
13585
- Ql as F,
13586
- Po as G,
13587
- ac as H,
13588
- Ll as I,
13589
- ec as J,
13591
+ Po as C,
13592
+ nc as D,
13593
+ ac as E,
13594
+ ec as F,
13595
+ Bo as G,
13596
+ sc as H,
13597
+ Hl as I,
13598
+ tc as J,
13590
13599
  ya as K,
13591
13600
  Yr as L,
13592
- Wl as M,
13593
- uc as N,
13594
- mc as O,
13601
+ Gl as M,
13602
+ mc as N,
13603
+ pc as O,
13595
13604
  De as P,
13596
- pc as Q,
13597
- $o as R,
13598
- kl as S,
13599
- fc as T,
13600
- bc as U,
13601
- yc as V,
13602
- _c as W,
13603
- xc as X,
13604
- Nc as Y,
13605
+ fc as Q,
13606
+ Fo as R,
13607
+ Dl as S,
13608
+ gc as T,
13609
+ yc as U,
13610
+ vc as V,
13611
+ xc as W,
13612
+ Nc as X,
13613
+ Sc as Y,
13605
13614
  va as Z,
13606
- Sc as _,
13607
- ko as a,
13615
+ Cc as _,
13616
+ Do as a,
13608
13617
  Zr as a$,
13609
- kc as a0,
13610
- wc as a1,
13611
- Dc as a2,
13618
+ Dc as a0,
13619
+ kc as a1,
13620
+ Ic as a2,
13612
13621
  Da as a3,
13613
- Zm as a4,
13614
- Jm as a5,
13615
- rd as a6,
13616
- Zd as a7,
13617
- Jd as a8,
13618
- Qd as a9,
13619
- op as aA,
13622
+ Jm as a4,
13623
+ Qm as a5,
13624
+ nd as a6,
13625
+ Jd as a7,
13626
+ Qd as a8,
13627
+ eu as a9,
13628
+ lp as aA,
13620
13629
  Gr as aB,
13621
- cp as aC,
13622
- lp as aD,
13630
+ dp as aC,
13631
+ cp as aD,
13623
13632
  mr as aE,
13624
- bp as aF,
13625
- hp as aG,
13626
- up as aH,
13627
- dp as aI,
13633
+ yp as aF,
13634
+ bp as aG,
13635
+ mp as aH,
13636
+ up as aI,
13628
13637
  Un as aJ,
13629
- gp as aK,
13630
- fp as aL,
13631
- Au as aM,
13632
- pp as aN,
13633
- mp as aO,
13638
+ hp as aK,
13639
+ gp as aL,
13640
+ $u as aM,
13641
+ fp as aN,
13642
+ pp as aO,
13634
13643
  Xn as aP,
13635
- $u as aQ,
13636
- Fu as aR,
13637
- Ou as aS,
13638
- Wu as aT,
13644
+ Fu as aQ,
13645
+ Ou as aR,
13646
+ Lu as aS,
13647
+ Gu as aT,
13639
13648
  ma as aU,
13640
13649
  Je as aV,
13641
13650
  Qe as aW,
13642
13651
  Dr as aX,
13643
- Um as aY,
13644
- Xm as aZ,
13645
- qm as a_,
13646
- eu as aa,
13647
- tu as ab,
13648
- ru as ac,
13649
- nu as ad,
13650
- au as ae,
13651
- su as af,
13652
+ Xm as aY,
13653
+ qm as aZ,
13654
+ Zm as a_,
13655
+ tu as aa,
13656
+ ru as ab,
13657
+ nu as ac,
13658
+ au as ad,
13659
+ su as ae,
13660
+ iu as af,
13652
13661
  Ba as ag,
13653
- ou as ah,
13662
+ lu as ah,
13654
13663
  Ra as ai,
13655
13664
  ur as aj,
13656
- uu as ak,
13657
- fu as al,
13665
+ mu as ak,
13666
+ gu as al,
13658
13667
  za as am,
13659
13668
  Aa as an,
13660
13669
  $a as ao,
13661
- Cu as ap,
13670
+ wu as ap,
13662
13671
  qr as aq,
13663
- Tu as ar,
13664
- Pu as as,
13665
- Wd as at,
13666
- ku as au,
13672
+ Eu as ar,
13673
+ Bu as as,
13674
+ Gd as at,
13675
+ Du as au,
13667
13676
  Fa as av,
13668
- ip as aw,
13669
- sp as ax,
13677
+ op as aw,
13678
+ ip as ax,
13670
13679
  Yn as ay,
13671
13680
  Oa as az,
13672
13681
  ot as b,
13673
13682
  Jr as b0,
13674
13683
  Qr as b1,
13675
13684
  en as b2,
13676
- Gu as b3,
13685
+ Vu as b3,
13677
13686
  Xt as b4,
13678
13687
  pr as b5,
13679
- Vu as b6,
13680
- ju as b7,
13681
- Ku as b8,
13682
- Yu as b9,
13688
+ ju as b6,
13689
+ Ku as b7,
13690
+ Yu as b8,
13691
+ Uu as b9,
13683
13692
  Hr as bA,
13684
13693
  Lr as bB,
13685
- Id as bC,
13686
- zd as bD,
13687
- Md as bE,
13688
- ap as bF,
13689
- tp as bG,
13690
- rp as bH,
13691
- np as bI,
13692
- Ld as bJ,
13693
- Hd as bK,
13694
+ Td as bC,
13695
+ Ad as bD,
13696
+ Pd as bE,
13697
+ sp as bF,
13698
+ rp as bG,
13699
+ np as bH,
13700
+ ap as bI,
13701
+ Hd as bJ,
13702
+ Wd as bK,
13694
13703
  Ma as bL,
13695
13704
  Wr as bM,
13696
13705
  Ot as bN,
13697
13706
  Pa as bO,
13698
- Xd as bP,
13699
- qd as bQ,
13707
+ qd as bP,
13708
+ Zd as bQ,
13700
13709
  Lt as bR,
13701
13710
  Xr as bS,
13702
13711
  La as bT,
13703
13712
  Ur as bU,
13704
- Uu as ba,
13713
+ Xu as ba,
13705
13714
  cr as bb,
13706
- Ic as bc,
13707
- Tc as bd,
13708
- Ec as be,
13709
- Mc as bf,
13715
+ Tc as bc,
13716
+ Ec as bd,
13717
+ Mc as be,
13718
+ Pc as bf,
13710
13719
  nt as bg,
13711
13720
  at as bh,
13712
13721
  Ia as bi,
13713
13722
  Ar as bj,
13714
- sd as bk,
13723
+ id as bk,
13715
13724
  ka as bl,
13716
- Ac as bm,
13725
+ $c as bm,
13717
13726
  fr as bn,
13718
13727
  Na as bo,
13719
13728
  Sa as bp,
13720
13729
  Ca as bq,
13721
- ld as br,
13722
- Qm as bs,
13723
- ep as bt,
13724
- cd as bu,
13725
- dd as bv,
13726
- _d as bw,
13727
- Td as bx,
13730
+ cd as br,
13731
+ ep as bs,
13732
+ tp as bt,
13733
+ dd as bu,
13734
+ ud as bv,
13735
+ xd as bw,
13736
+ Ed as bx,
13728
13737
  Ta as by,
13729
13738
  Ea as bz,
13730
13739
  dr as c,
13731
- Fo as d,
13732
- Ao as e,
13733
- Ho as f,
13740
+ Oo as d,
13741
+ $o as e,
13742
+ Wo as f,
13734
13743
  Vt as g,
13735
13744
  ua as h,
13736
- Xo as i,
13737
- Jo as j,
13738
- ol as k,
13739
- ul as l,
13745
+ qo as i,
13746
+ Qo as j,
13747
+ ll as k,
13748
+ ml as l,
13740
13749
  pa as m,
13741
13750
  fa as n,
13742
- xl as o,
13743
- Cl as p,
13744
- El as q,
13751
+ Nl as o,
13752
+ wl as p,
13753
+ Ml as q,
13745
13754
  Ee as r,
13746
13755
  ha as s,
13747
- Ol as t,
13748
- Eo as u,
13749
- Hl as v,
13756
+ Ll as t,
13757
+ Mo as u,
13758
+ Wl as v,
13750
13759
  jt as w,
13751
13760
  It as x,
13752
13761
  ba as y,
13753
- tc as z
13762
+ rc as z
13754
13763
  };