@mt-gloss/ui 0.1.64 → 0.1.65

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,8 +1,8 @@
1
1
  import { jsxs as d, jsx as e, Fragment as We } from "react/jsx-runtime";
2
2
  import * as mr from "react";
3
3
  import q, { useId as Le, useState as H, useCallback as N, createContext as Ut, useContext as Xt, useRef as ce, useEffect as se, useMemo as ee, useSyncExternalStore as is, useReducer as ls, forwardRef as cs, useImperativeHandle as ds } from "react";
4
- import { S as J, E as Ze, C as R, i as us, R as Ce, l as ms, m as ps, n as fs, aj as gs, Q as hs, t as bs, ad as ys, ak as ve, V as vs, W as Za, X as Ja, Y as _s, _ as xs, $ as Ns, a0 as Ss, a1 as Cs, a2 as ws, a5 as ks, a6 as Ds, a7 as Is, ac as Ts, a8 as Es, a9 as Ms, P as Ps, O as Rs, j as Bs, k as As, a3 as zs, a4 as $s, o as Fs, v as Os, z as Ls, w as Hs, U as vt, A as Ws, D as Gs, x as Vs, F as js, y as Ks, ah as Ys, ai as Us, G as Xs, H as qs, I as Zs, J as Js, K as Qs, L as eo, M as to, N as ro, a as he, b as Wt, f as Qa, e as kt, h as Je, Z as en, B as ao, af as no, d as tn, T as Be, ae as so, ag as xa } from "./UIContext-DP6JGCto.js";
5
- import { formatTrend as oo, isStatusModeEnabled as io, formatValue as cr, getValueFontSize as Na, getDateRangeForPreset as Ke, formatDateRangeSmart as pt, isInRange as lo, isSameDay as tr, formatMarketDates as co, DEFAULT_MARKET_PRESETS as rr, isMarketActive as xt, detectPreset as ar, getDateRangeDisplayInfo as Ft, toUppercasePresetId as nr, generateMarketId as uo, ROLLING_OPTIONS as wr, PERIOD_OPTIONS as kr } from "@mt-gloss/utils";
4
+ import { S as J, E as Ze, C as R, i as us, R as Ce, l as ms, m as ps, n as fs, aj as gs, Q as hs, t as bs, ad as ys, ak as ve, V as vs, W as Za, X as Ja, Y as _s, _ as xs, $ as Ns, a0 as Ss, a1 as Cs, a2 as ws, a5 as ks, a6 as Ds, a7 as Is, ac as Ts, a8 as Es, a9 as Ms, P as Ps, O as Rs, j as Bs, k as As, a3 as zs, a4 as $s, o as Fs, v as Os, z as Ls, w as Hs, U as _t, A as Ws, D as Gs, x as Vs, F as js, y as Ks, ah as Ys, ai as Us, G as Xs, H as qs, I as Zs, J as Js, K as Qs, L as eo, M as to, N as ro, a as he, b as Wt, f as Qa, e as kt, h as Je, Z as en, B as ao, af as no, d as tn, T as Be, ae as so, ag as xa } from "./UIContext-DP6JGCto.js";
5
+ import { formatTrend as oo, isStatusModeEnabled as io, formatValue as cr, getValueFontSize as Na, getDateRangeForPreset as Ke, formatDateRangeSmart as pt, isInRange as lo, isSameDay as tr, formatMarketDates as co, DEFAULT_MARKET_PRESETS as rr, isMarketActive as Nt, detectPreset as ar, getDateRangeDisplayInfo as Ft, toUppercasePresetId as nr, generateMarketId as uo, ROLLING_OPTIONS as kr, PERIOD_OPTIONS as Dr } from "@mt-gloss/utils";
6
6
  import { useGridApiRef as mo, DataGridPro as po } from "@mui/x-data-grid-pro";
7
7
  import { Chip as Gt, Tooltip as gt, MenuItem as Vt, Menu as fo, Box as ne, Popper as go, Paper as ho, MenuList as bo, ListItemText as yo, IconButton as qe, Select as Sa, Typography as Ee, Divider as vo, Button as at, Collapse as _o, Popover as xo, Dialog as No, DialogTitle as So, DialogContent as Co, TextField as sr, DialogActions as wo, Tabs as ko, Tab as Do } from "@mui/material";
8
8
  import Io from "@mui/icons-material/Person";
@@ -26,7 +26,7 @@ import Vo from "@mui/icons-material/AttachMoney";
26
26
  import rn from "@mui/icons-material/OpenInNew";
27
27
  import Ca from "@mui/icons-material/CalendarToday";
28
28
  import dr from "@mui/icons-material/ExpandMore";
29
- import zr from "@mui/icons-material/Place";
29
+ import $r from "@mui/icons-material/Place";
30
30
  import Ot from "@mui/icons-material/Add";
31
31
  import Dt from "@mui/icons-material/Check";
32
32
  import wt from "@mui/icons-material/Close";
@@ -45,7 +45,7 @@ import { useSensors as ei, useSensor as Da, PointerSensor as ti, KeyboardSensor
45
45
  import { sortableKeyboardCoordinates as oi, arrayMove as ii, SortableContext as li, rectSortingStrategy as ci, useSortable as di } from "@dnd-kit/sortable";
46
46
  import { CSS as ui } from "@dnd-kit/utilities";
47
47
  import { restrictToParentElement as mi } from "@dnd-kit/modifiers";
48
- import { useReducedMotion as pi, LayoutGroup as fi, motion as Ct, AnimatePresence as $r } from "framer-motion";
48
+ import { useReducedMotion as pi, LayoutGroup as fi, motion as vt, AnimatePresence as pr } from "framer-motion";
49
49
  import gi from "@mui/icons-material/ShowChart";
50
50
  import hi from "@mui/icons-material/TableChart";
51
51
  import bi from "@mui/icons-material/Refresh";
@@ -336,7 +336,7 @@ const zi = {
336
336
  }, Fi = {
337
337
  trackBg: R.BgSurface,
338
338
  dotColor: R.BrandPrimary
339
- }, pr = q.forwardRef(
339
+ }, fr = q.forwardRef(
340
340
  (r, t) => {
341
341
  const {
342
342
  variant: a = "default",
@@ -388,7 +388,7 @@ const zi = {
388
388
  ] });
389
389
  }
390
390
  );
391
- pr.displayName = "PresetRadio";
391
+ fr.displayName = "PresetRadio";
392
392
  const mn = Ut(null);
393
393
  function Oi() {
394
394
  return Xt(mn);
@@ -435,7 +435,7 @@ function Li({
435
435
  p && /* @__PURE__ */ e("span", { className: "gloss-radio-group__required", children: " *" })
436
436
  ] }),
437
437
  /* @__PURE__ */ e("div", { className: "gloss-radio-group__items", role: "radiogroup", "aria-required": p, children: n ? n.map((C) => /* @__PURE__ */ e(
438
- pr,
438
+ fr,
439
439
  {
440
440
  name: f,
441
441
  value: String(C.value),
@@ -457,7 +457,7 @@ const Hi = q.forwardRef(
457
457
  ({ value: r, ...t }, a) => {
458
458
  const n = Oi();
459
459
  return n ? /* @__PURE__ */ e(
460
- pr,
460
+ fr,
461
461
  {
462
462
  ref: a,
463
463
  name: n.groupProps.name,
@@ -469,7 +469,7 @@ const Hi = q.forwardRef(
469
469
  disabled: n.groupProps.disabled || t.disabled,
470
470
  ...t
471
471
  }
472
- ) : /* @__PURE__ */ e(pr, { ref: a, value: r, name: "", ...t });
472
+ ) : /* @__PURE__ */ e(fr, { ref: a, value: r, name: "", ...t });
473
473
  }
474
474
  );
475
475
  Hi.displayName = "GroupRadio";
@@ -863,20 +863,20 @@ function fn(r = {}) {
863
863
  const al = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], nl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], yt = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Ia = (r, t) => new Date(r, t + 1, 0).getDate(), sl = (r, t) => new Date(r, t, 1).getDay(), ol = (r, t) => {
864
864
  const a = r.getDate(), n = r.getMonth() + 1, s = r.getFullYear();
865
865
  return t.replace("DD", String(a).padStart(2, "0")).replace("D", String(a)).replace("MM", String(n).padStart(2, "0")).replace("M", String(n)).replace("YYYY", String(s)).replace("YY", String(s).slice(-2));
866
- }, Dr = (r, t, a, n, s) => t && r < t || a && r > a || n?.some((i) => yt(i, r)) ? !0 : s?.(r) ?? !1, il = (r, t, a, n, s, i, o, c) => {
866
+ }, Ir = (r, t, a, n, s) => t && r < t || a && r > a || n?.some((i) => yt(i, r)) ? !0 : s?.(r) ?? !1, il = (r, t, a, n, s, i, o, c) => {
867
867
  const l = [], u = /* @__PURE__ */ new Date(), p = Ia(r, t), f = (sl(r, t) - n + 7) % 7, y = t === 0 ? 11 : t - 1, b = t === 0 ? r - 1 : r, _ = Ia(b, y);
868
868
  for (let E = f - 1; E >= 0; E--) {
869
869
  const S = new Date(b, y, _ - E);
870
- l.push({ date: S, isCurrentMonth: !1, isToday: yt(S, u), isSelected: a ? yt(S, a) : !1, isDisabled: Dr(S, s, i, o, c) });
870
+ l.push({ date: S, isCurrentMonth: !1, isToday: yt(S, u), isSelected: a ? yt(S, a) : !1, isDisabled: Ir(S, s, i, o, c) });
871
871
  }
872
872
  for (let E = 1; E <= p; E++) {
873
873
  const S = new Date(r, t, E);
874
- l.push({ date: S, isCurrentMonth: !0, isToday: yt(S, u), isSelected: a ? yt(S, a) : !1, isDisabled: Dr(S, s, i, o, c) });
874
+ l.push({ date: S, isCurrentMonth: !0, isToday: yt(S, u), isSelected: a ? yt(S, a) : !1, isDisabled: Ir(S, s, i, o, c) });
875
875
  }
876
876
  const v = t === 11 ? 0 : t + 1, h = t === 11 ? r + 1 : r, k = 42 - l.length;
877
877
  for (let E = 1; E <= k; E++) {
878
878
  const S = new Date(h, v, E);
879
- l.push({ date: S, isCurrentMonth: !1, isToday: yt(S, u), isSelected: a ? yt(S, a) : !1, isDisabled: Dr(S, s, i, o, c) });
879
+ l.push({ date: S, isCurrentMonth: !1, isToday: yt(S, u), isSelected: a ? yt(S, a) : !1, isDisabled: Ir(S, s, i, o, c) });
880
880
  }
881
881
  return l;
882
882
  }, ll = {
@@ -1080,16 +1080,16 @@ const Fr = (r) => {
1080
1080
  }
1081
1081
  );
1082
1082
  fl.displayName = "PresetTimePicker";
1083
- const gl = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], hl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Ir = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Ea = (r, t) => new Date(r, t + 1, 0).getDate(), bl = (r, t) => new Date(r, t, 1).getDay(), Tr = (r, t) => {
1083
+ const gl = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], hl = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], Tr = (r, t) => r.getFullYear() === t.getFullYear() && r.getMonth() === t.getMonth() && r.getDate() === t.getDate(), Ea = (r, t) => new Date(r, t + 1, 0).getDate(), bl = (r, t) => new Date(r, t, 1).getDay(), Er = (r, t) => {
1084
1084
  const a = r.getDate(), n = r.getMonth() + 1, s = r.getFullYear();
1085
1085
  return t.replace("DD", String(a).padStart(2, "0")).replace("D", String(a)).replace("MM", String(n).padStart(2, "0")).replace("M", String(n)).replace("YYYY", String(s)).replace("YY", String(s).slice(-2));
1086
1086
  }, Ma = (r, t, a, n, s, i) => {
1087
1087
  const o = [], c = /* @__PURE__ */ new Date(), l = Ea(r, t), p = (bl(r, t) - n + 7) % 7, m = t === 0 ? 11 : t - 1, f = t === 0 ? r - 1 : r, y = Ea(f, m), b = (h, k) => {
1088
- const E = a.start ? Ir(h, a.start) : !1, S = a.end ? Ir(h, a.end) : !1;
1088
+ const E = a.start ? Tr(h, a.start) : !1, S = a.end ? Tr(h, a.end) : !1;
1089
1089
  return {
1090
1090
  date: h,
1091
1091
  isCurrentMonth: k,
1092
- isToday: Ir(h, c),
1092
+ isToday: Tr(h, c),
1093
1093
  isSelected: E || S,
1094
1094
  isDisabled: !!(s && h < s || i && h > i),
1095
1095
  isRangeStart: E,
@@ -1164,7 +1164,7 @@ const gl = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], hl = ["January", "
1164
1164
  };
1165
1165
  return document.addEventListener("mousedown", de), () => document.removeEventListener("mousedown", de);
1166
1166
  }, [P]);
1167
- const K = ee(() => !M.start && !M.end ? "" : M.start && !M.end ? `${Tr(M.start, f)} - ...` : M.start && M.end ? `${Tr(M.start, f)} - ${Tr(M.end, f)}` : "", [M, f]), X = {
1167
+ const K = ee(() => !M.start && !M.end ? "" : M.start && !M.end ? `${Er(M.start, f)} - ...` : M.start && M.end ? `${Er(M.start, f)} - ${Er(M.end, f)}` : "", [M, f]), X = {
1168
1168
  bg: R.BgSurface,
1169
1169
  borderColor: a === "error" ? R.BorderError : a === "success" ? R.BorderSuccess : R.BorderDefault,
1170
1170
  radius: Ce.Md,
@@ -2033,21 +2033,21 @@ vn.displayName = "PresetCard";
2033
2033
  const tc = q.forwardRef(
2034
2034
  ({ children: r, ...t }, a) => {
2035
2035
  const n = { ...t };
2036
- return delete n.className, delete n.style, /* @__PURE__ */ e(Hs, { ref: a, className: "gloss-preset-card__header", ...n, children: /* @__PURE__ */ e(vt, { region: "card-header", children: r }) });
2036
+ return delete n.className, delete n.style, /* @__PURE__ */ e(Hs, { ref: a, className: "gloss-preset-card__header", ...n, children: /* @__PURE__ */ e(_t, { region: "card-header", children: r }) });
2037
2037
  }
2038
2038
  );
2039
2039
  tc.displayName = "PresetCardHeader";
2040
2040
  const rc = q.forwardRef(
2041
2041
  ({ children: r, ...t }, a) => {
2042
2042
  const n = { ...t };
2043
- return delete n.className, delete n.style, /* @__PURE__ */ e(Vs, { ref: a, className: "gloss-preset-card__body", ...n, children: /* @__PURE__ */ e(vt, { region: "card-body", children: r }) });
2043
+ return delete n.className, delete n.style, /* @__PURE__ */ e(Vs, { ref: a, className: "gloss-preset-card__body", ...n, children: /* @__PURE__ */ e(_t, { region: "card-body", children: r }) });
2044
2044
  }
2045
2045
  );
2046
2046
  rc.displayName = "PresetCardBody";
2047
2047
  const ac = q.forwardRef(
2048
2048
  ({ children: r, ...t }, a) => {
2049
2049
  const n = { ...t };
2050
- return delete n.className, delete n.style, /* @__PURE__ */ e(Ks, { ref: a, className: "gloss-preset-card__footer", ...n, children: /* @__PURE__ */ e(vt, { region: "card-footer", children: r }) });
2050
+ return delete n.className, delete n.style, /* @__PURE__ */ e(Ks, { ref: a, className: "gloss-preset-card__footer", ...n, children: /* @__PURE__ */ e(_t, { region: "card-footer", children: r }) });
2051
2051
  }
2052
2052
  );
2053
2053
  ac.displayName = "PresetCardFooter";
@@ -2425,7 +2425,7 @@ const Qe = {
2425
2425
  easeOut: "cubic-bezier(0, 0, 0.2, 1)",
2426
2426
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2427
2427
  spring: "cubic-bezier(0.175, 0.885, 0.32, 1.275)"
2428
- }, Er = {
2428
+ }, Mr = {
2429
2429
  fade: {
2430
2430
  enter: {
2431
2431
  from: { opacity: 0 },
@@ -2523,13 +2523,13 @@ const Qe = {
2523
2523
  easing: et.easeInOut
2524
2524
  }
2525
2525
  };
2526
- function rp(r, t = Qe.normal, a = et.easeOut) {
2526
+ function op(r, t = Qe.normal, a = et.easeOut) {
2527
2527
  return r.map((n) => `${n} ${t}ms ${a}`).join(", ");
2528
2528
  }
2529
- function ap(r, t, a) {
2529
+ function ip(r, t, a) {
2530
2530
  return r + (t - r) * a;
2531
2531
  }
2532
- function np(r) {
2532
+ function lp(r) {
2533
2533
  const t = r.match(/^([-\d.]+)(.*)$/);
2534
2534
  return t ? { value: parseFloat(t[1]), unit: t[2] || "" } : { value: 0, unit: "" };
2535
2535
  }
@@ -2548,7 +2548,7 @@ function kc({
2548
2548
  ...m
2549
2549
  }) {
2550
2550
  delete m.className, delete m.style;
2551
- const [f, y] = H(r ? "entered" : "exited"), [b, _] = H(r), v = ce(null), h = ce(null), k = typeof t == "string" ? Er[t] : t, E = a ?? (typeof t == "string" ? Er[t]?.duration : Qe.normal) ?? Qe.normal, S = n ?? (typeof t == "string" ? Er[t]?.easing : et.easeOut) ?? et.easeOut, C = N(() => {
2551
+ const [f, y] = H(r ? "entered" : "exited"), [b, _] = H(r), v = ce(null), h = ce(null), k = typeof t == "string" ? Mr[t] : t, E = a ?? (typeof t == "string" ? Mr[t]?.duration : Qe.normal) ?? Qe.normal, S = n ?? (typeof t == "string" ? Mr[t]?.easing : et.easeOut) ?? et.easeOut, C = N(() => {
2552
2552
  v.current && (clearTimeout(v.current), v.current = null), h.current && (cancelAnimationFrame(h.current), h.current = null);
2553
2553
  }, []);
2554
2554
  if (se(() => (C(), r ? (_(!0), o?.(), h.current = requestAnimationFrame(() => {
@@ -3165,7 +3165,7 @@ const Aa = {
3165
3165
  );
3166
3166
  };
3167
3167
  Or.displayName = "TrendIndicator";
3168
- const br = ({ data: r, color: t, isStale: a }) => {
3168
+ const yr = ({ data: r, color: t, isStale: a }) => {
3169
3169
  const s = "sparkbg-" + Le().replace(/:/g, ""), i = t || "#4f46e5", o = ee(() => {
3170
3170
  if (!r || r.length < 2) return null;
3171
3171
  const c = 300, l = 55, u = 2, p = Math.min(...r), f = Math.max(...r) - p || 1, b = r.map((v, h) => ({
@@ -3225,7 +3225,7 @@ const br = ({ data: r, color: t, isStale: a }) => {
3225
3225
  }
3226
3226
  ) : null;
3227
3227
  };
3228
- br.displayName = "SparklineBg";
3228
+ yr.displayName = "SparklineBg";
3229
3229
  const Cn = ({ data: r, color: t, isStale: a }) => {
3230
3230
  const n = t || "#4f46e5", s = ee(() => {
3231
3231
  if (!r || r.length < 1) return null;
@@ -3461,7 +3461,7 @@ function In(r) {
3461
3461
  children: [
3462
3462
  /* @__PURE__ */ e("span", { className: "gloss-metric-card__label", children: l.label }),
3463
3463
  /* @__PURE__ */ e("span", { children: String(l.value) }),
3464
- p != null && p.length > 0 ? /* @__PURE__ */ e(br, { data: [...p], color: l.accentColor }) : null
3464
+ p != null && p.length > 0 ? /* @__PURE__ */ e(yr, { data: [...p], color: l.accentColor }) : null
3465
3465
  ]
3466
3466
  },
3467
3467
  l.id
@@ -3485,7 +3485,7 @@ function $a(r, t) {
3485
3485
  const n = parseInt(a.substring(0, 2), 16), s = parseInt(a.substring(2, 4), 16), i = parseInt(a.substring(4, 6), 16);
3486
3486
  return `rgba(${n},${s},${i},${t})`;
3487
3487
  }
3488
- const Mr = {
3488
+ const Pr = {
3489
3489
  up: "var(--color-positive)",
3490
3490
  down: "var(--color-negative)",
3491
3491
  flat: "var(--color-text-secondary)"
@@ -3560,7 +3560,7 @@ const Mr = {
3560
3560
  prefix: i?.prefix || "",
3561
3561
  suffix: i?.suffix || "",
3562
3562
  abbreviated: i?.abbreviated
3563
- }), [s, i?.prefix, i?.suffix, i?.abbreviated]), D = Na(x.length, l), w = o?.direction && Mr[o.direction] || Mr.flat, $ = u ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", T = {
3563
+ }), [s, i?.prefix, i?.suffix, i?.abbreviated]), D = Na(x.length, l), w = o?.direction && Pr[o.direction] || Pr.flat, $ = u ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", T = {
3564
3564
  fontWeight: 700,
3565
3565
  letterSpacing: "-0.03em",
3566
3566
  color: a === "highlight" ? P : "rgba(0,0,0,0.87)",
@@ -3743,7 +3743,7 @@ const Mr = {
3743
3743
  }
3744
3744
  }
3745
3745
  ),
3746
- a === "sparkline" && /* @__PURE__ */ e(br, { data: y, color: m, isStale: u }),
3746
+ a === "sparkline" && /* @__PURE__ */ e(yr, { data: y, color: m, isStale: u }),
3747
3747
  a === "bars" && /* @__PURE__ */ e(Cn, { data: b, color: m, isStale: u }),
3748
3748
  /* @__PURE__ */ e(
3749
3749
  he,
@@ -3809,16 +3809,16 @@ function Lc(r) {
3809
3809
  Hr.delete(r);
3810
3810
  };
3811
3811
  }
3812
- function Pr() {
3812
+ function Rr() {
3813
3813
  return Lr;
3814
3814
  }
3815
- function Rr(r) {
3815
+ function Br(r) {
3816
3816
  Lr !== r && (Lr = r, Hr.forEach((t) => t()));
3817
3817
  }
3818
3818
  function Hc(r, t, a) {
3819
3819
  const n = Le(), s = t ?? n, i = is(
3820
3820
  Lc,
3821
- Pr,
3821
+ Rr,
3822
3822
  // SSR fallback — no menu active on server render.
3823
3823
  () => null
3824
3824
  ), o = ce(a);
@@ -3827,9 +3827,9 @@ function Hc(r, t, a) {
3827
3827
  }, [a]), se(() => {
3828
3828
  r && i !== null && i !== s && o.current(!1);
3829
3829
  }, [i, s, r]), se(() => {
3830
- r ? Rr(s) : Pr() === s && Rr(null);
3830
+ r ? Br(s) : Rr() === s && Br(null);
3831
3831
  }, [r, s]), se(() => () => {
3832
- Pr() === s && Rr(null);
3832
+ Rr() === s && Br(null);
3833
3833
  }, [s]), { menuId: s, activeMenuId: i };
3834
3834
  }
3835
3835
  const Ye = {
@@ -4127,7 +4127,7 @@ const Tn = (r) => {
4127
4127
  [me]
4128
4128
  ), [Ge, Ve] = H(null);
4129
4129
  return /* @__PURE__ */ e(fi, { children: /* @__PURE__ */ e(
4130
- Ct.div,
4130
+ vt.div,
4131
4131
  {
4132
4132
  className: "gloss-action-strip",
4133
4133
  "data-action-strip": !0,
@@ -4152,7 +4152,7 @@ const Tn = (r) => {
4152
4152
  ref: W.setReference,
4153
4153
  children: [
4154
4154
  /* @__PURE__ */ d(
4155
- Ct.div,
4155
+ vt.div,
4156
4156
  {
4157
4157
  layout: !0,
4158
4158
  className: `gloss-action-strip__pill${O ? " gloss-action-strip__pill--expanded" : ""}${te === "up" ? " gloss-action-strip__pill--flip-up" : ""}`,
@@ -4226,7 +4226,7 @@ const Tn = (r) => {
4226
4226
  );
4227
4227
  }),
4228
4228
  /* @__PURE__ */ e(
4229
- Ct.div,
4229
+ vt.div,
4230
4230
  {
4231
4231
  "data-action-strip-promoted": !0,
4232
4232
  "data-count": T.length,
@@ -4234,8 +4234,8 @@ const Tn = (r) => {
4234
4234
  variants: x,
4235
4235
  animate: O ? "expanded" : "collapsed",
4236
4236
  initial: "collapsed",
4237
- children: /* @__PURE__ */ e($r, { mode: "popLayout", initial: !1, children: O ? T.map((ae) => /* @__PURE__ */ e(
4238
- Ct.span,
4237
+ children: /* @__PURE__ */ e(pr, { mode: "popLayout", initial: !1, children: O ? T.map((ae) => /* @__PURE__ */ e(
4238
+ vt.span,
4239
4239
  {
4240
4240
  className: "gloss-action-strip__icon-slot",
4241
4241
  "data-action-id": ae.id,
@@ -4270,7 +4270,7 @@ const Tn = (r) => {
4270
4270
  ]
4271
4271
  }
4272
4272
  ),
4273
- /* @__PURE__ */ e($r, { children: O && !M ? (
4273
+ /* @__PURE__ */ e(pr, { children: O && !M ? (
4274
4274
  // quick-260418-k7k-fix-6: FloatingPortal is required because
4275
4275
  // dnd-kit's SortableContext wraps each card in a div with
4276
4276
  // inline `transform`. Per CSS spec, `transform !== none`
@@ -4288,7 +4288,7 @@ const Tn = (r) => {
4288
4288
  style: { ...V, zIndex: 9999 },
4289
4289
  ...Z(),
4290
4290
  children: /* @__PURE__ */ e(
4291
- Ct.div,
4291
+ vt.div,
4292
4292
  {
4293
4293
  className: `gloss-action-strip__menu gloss-action-strip__menu--flip-${te}`,
4294
4294
  "data-action-strip-menu": !0,
@@ -4334,11 +4334,11 @@ const Tn = (r) => {
4334
4334
  ) });
4335
4335
  };
4336
4336
  Tn.displayName = "ActionStrip";
4337
- const sp = [
4337
+ const cp = [
4338
4338
  "settings",
4339
4339
  "remove",
4340
4340
  "replace"
4341
- ], op = ["whats-this"];
4341
+ ], dp = ["whats-this"];
4342
4342
  function sd(r) {
4343
4343
  const t = [];
4344
4344
  let a = 0;
@@ -4541,7 +4541,7 @@ const id = {
4541
4541
  type: null,
4542
4542
  lifecycle: "idle"
4543
4543
  }, Mn = mr.createContext(id);
4544
- function ip({ value: r, children: t }) {
4544
+ function up({ value: r, children: t }) {
4545
4545
  return /* @__PURE__ */ e(Mn.Provider, { value: r, children: t });
4546
4546
  }
4547
4547
  function ld() {
@@ -4895,7 +4895,7 @@ const md = function(t) {
4895
4895
  [O, M]
4896
4896
  ), j = c?.[k];
4897
4897
  return /* @__PURE__ */ d(We, { children: [
4898
- j && j.length >= 2 && /* @__PURE__ */ e(br, { data: j, color: l, isStale: m }),
4898
+ j && j.length >= 2 && /* @__PURE__ */ e(yr, { data: j, color: l, isStale: m }),
4899
4899
  /* @__PURE__ */ e(
4900
4900
  "div",
4901
4901
  {
@@ -5094,9 +5094,9 @@ function gd(r) {
5094
5094
  setOpenSection: l
5095
5095
  };
5096
5096
  }
5097
- const yr = Ut(null);
5098
- yr.displayName = "FlipAndStageContext";
5099
- function lp({ children: r }) {
5097
+ const vr = Ut(null);
5098
+ vr.displayName = "FlipAndStageContext";
5099
+ function mp({ children: r }) {
5100
5100
  const t = gd(), a = ee(
5101
5101
  () => t,
5102
5102
  [
@@ -5114,16 +5114,16 @@ function lp({ children: r }) {
5114
5114
  t.setOpenSection
5115
5115
  ]
5116
5116
  );
5117
- return /* @__PURE__ */ e(yr.Provider, { value: a, children: r });
5117
+ return /* @__PURE__ */ e(vr.Provider, { value: a, children: r });
5118
5118
  }
5119
- function cp() {
5120
- const r = Xt(yr);
5119
+ function pp() {
5120
+ const r = Xt(vr);
5121
5121
  if (r === null)
5122
5122
  throw new Error("useFlipAndStageContext must be inside FlipAndStageProvider");
5123
5123
  return r;
5124
5124
  }
5125
5125
  function hd() {
5126
- return Xt(yr);
5126
+ return Xt(vr);
5127
5127
  }
5128
5128
  const bd = {
5129
5129
  /** Delay before flip animation begins (ms). */
@@ -5778,7 +5778,7 @@ const Oa = () => /* @__PURE__ */ d(
5778
5778
  );
5779
5779
  });
5780
5780
  Gr.displayName = "FilterInput";
5781
- const Md = "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)", Rn = q.memo(({
5781
+ const Md = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)", St = "0.35s cubic-bezier(0.16, 1, 0.3, 1)", Ct = "0.25s cubic-bezier(0.4, 0, 1, 1)", Rn = q.memo(({
5782
5782
  showRow2: r,
5783
5783
  showItemFilter: t,
5784
5784
  showEntityFilter: a,
@@ -5802,13 +5802,13 @@ const Md = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5802
5802
  }) => /* @__PURE__ */ e("div", { style: {
5803
5803
  overflow: r ? "visible" : "hidden",
5804
5804
  height: r ? "40px" : "0px",
5805
- transition: `height ${r ? Nt : St}`
5805
+ transition: `height ${r ? St : Ct}`
5806
5806
  }, children: /* @__PURE__ */ d("div", { style: {
5807
5807
  position: "relative",
5808
5808
  height: "40px",
5809
5809
  paddingTop: "2px",
5810
5810
  transform: r ? "translateY(0)" : "translateY(-100%)",
5811
- transition: `transform ${r ? Nt : St}`
5811
+ transition: `transform ${r ? St : Ct}`
5812
5812
  }, children: [
5813
5813
  /* @__PURE__ */ e("div", { style: {
5814
5814
  position: "absolute",
@@ -5817,7 +5817,7 @@ const Md = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5817
5817
  width: n.width,
5818
5818
  transform: t ? "translateY(0)" : "translateY(-100%)",
5819
5819
  opacity: t ? 1 : 0,
5820
- transition: `transform ${t ? Nt : St}, opacity ${t ? Nt : St}`,
5820
+ transition: `transform ${t ? St : Ct}, opacity ${t ? St : Ct}`,
5821
5821
  pointerEvents: t ? "auto" : "none"
5822
5822
  }, children: /* @__PURE__ */ e(
5823
5823
  Gr,
@@ -5838,7 +5838,7 @@ const Md = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
5838
5838
  width: s.width,
5839
5839
  transform: a ? "translateY(0)" : "translateY(-100%)",
5840
5840
  opacity: a ? 1 : 0,
5841
- transition: `${Md}, transform ${a ? Nt : St}, opacity ${a ? Nt : St}`,
5841
+ transition: `${Md}, transform ${a ? St : Ct}, opacity ${a ? St : Ct}`,
5842
5842
  pointerEvents: a ? "auto" : "none"
5843
5843
  }, children: /* @__PURE__ */ e(
5844
5844
  Gr,
@@ -6141,15 +6141,15 @@ const zd = q.memo(({
6141
6141
  ] });
6142
6142
  });
6143
6143
  zd.displayName = "ChartControlBar";
6144
- const dp = {
6144
+ const fp = {
6145
6145
  customer: { routeKey: "customer.profile", paramKey: "customerId", icon: "Person" },
6146
6146
  manufacturer: { routeKey: "manufacturer.profile", paramKey: "manufacturerId", icon: "Business" },
6147
6147
  salesperson: { routeKey: "salesperson.profile", paramKey: "salespersonId", icon: "Person" }
6148
- }, up = {
6148
+ }, gp = {
6149
6149
  customer: "customerId",
6150
6150
  manufacturer: "manufacturerId",
6151
6151
  salesperson: "salespersonId"
6152
- }, mp = {
6152
+ }, hp = {
6153
6153
  customer: "customers",
6154
6154
  manufacturer: "manufacturers",
6155
6155
  salesperson: "salespeople"
@@ -6562,7 +6562,7 @@ const dp = {
6562
6562
  function Fd(r, t = {}) {
6563
6563
  return $d.filter((a) => !(!a.cellKinds.includes(r) || a.entityTypes && t.entityType && !a.entityTypes.includes(t.entityType) || a.roleVisibility && t.userType && !a.roleVisibility.includes(t.userType) || a.statusFilter && t.orderStatus && !a.statusFilter.includes(t.orderStatus) || a.tableTypes && t.tableType && !a.tableTypes.includes(t.tableType) || a.fields && t.field && !a.fields.includes(t.field) || a.id === "who-purchased" && r === "numeric" && (t.tableType !== "items" || t.field !== "sold")));
6564
6564
  }
6565
- function pp(r, t) {
6565
+ function bp(r, t) {
6566
6566
  switch (r) {
6567
6567
  case "recent-orders":
6568
6568
  case "show-orders":
@@ -7204,7 +7204,7 @@ const Lt = ({
7204
7204
  },
7205
7205
  children: [
7206
7206
  /* @__PURE__ */ e(
7207
- zr,
7207
+ $r,
7208
7208
  {
7209
7209
  fontSize: "small",
7210
7210
  sx: {
@@ -7313,26 +7313,26 @@ const Kd = {
7313
7313
  ...u
7314
7314
  }), [u]), k = ce(null), [E, S] = H(null), [C, I] = H("calendar"), [g, P] = H(null), [x, D] = H(null), w = ce(null), [$, T] = H(() => h.lastPreset || "mtd"), [A, M] = H(null), [O, Y] = H(null), [j, B] = H(null), [W, V] = H(null), [G, z] = H(null), [U, Z] = H(() => a ? _ ?? h.compareEnabled ?? !1 : !1), K = _ ?? U, X = N((F) => {
7315
7315
  Z(F), v?.(F);
7316
- }, [v]), [te, fe] = H("A"), [de, be] = H(() => h.lastPresetB ?? null), [oe, ie] = H(null), [pe, Pe] = H(null), [Se, we] = H(null), [Fe, ke] = H(null), [me, _e] = H(null), [Ge, Ve] = H(null), [ae, xe] = H(null), [je, Ae] = H(null), [Te, Ne] = H(null), [ht, Ue] = H(null), [ct, Xe] = H(null), [De, dt] = H(1), [Zt, ze] = H(!1), [Tt, Kn] = H(void 0), Re = j !== null ? j : $, Et = j !== null ? W : A, ut = j !== null ? G : O, ot = Se !== null ? Se : de, Mt = Se !== null ? Fe : oe, Pt = Se !== null ? me : pe, it = Te !== null ? Te : Ge, Rt = Te !== null ? ht : ae, Bt = Te !== null ? ct : je, sa = j !== null && (j !== $ || W !== A || G !== O), [ge, vr] = H(() => {
7317
- const F = m || rr, L = f || [], Q = new Set(L.map((ue) => ue.id)), re = F.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = L.map((ue) => ({
7316
+ }, [v]), [te, fe] = H("A"), [de, be] = H(() => h.lastPresetB ?? null), [oe, ie] = H(null), [pe, Pe] = H(null), [Se, we] = H(null), [Fe, ke] = H(null), [me, _e] = H(null), [Ge, Ve] = H(null), [ae, xe] = H(null), [je, Ae] = H(null), [Te, Ne] = H(null), [ht, Ue] = H(null), [ct, Xe] = H(null), [De, dt] = H(1), [Zt, ze] = H(!1), [Tt, Kn] = H(void 0), Re = j !== null ? j : $, Et = j !== null ? W : A, ut = j !== null ? G : O, ot = Se !== null ? Se : de, Mt = Se !== null ? Fe : oe, Pt = Se !== null ? me : pe, it = Te !== null ? Te : Ge, Rt = Te !== null ? ht : ae, Bt = Te !== null ? ct : je, sa = j !== null && (j !== $ || W !== A || G !== O), [ge, _r] = H(() => {
7317
+ const F = m || rr, L = f || [], Q = new Set(L.map((ue) => ue.id)), re = F.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: Nt(ue) })), le = L.map((ue) => ({
7318
7318
  ...ue,
7319
- active: xt(ue)
7319
+ active: Nt(ue)
7320
7320
  }));
7321
7321
  return [...re, ...le].sort((ue, $e) => ue.startDate.getTime() - $e.startDate.getTime());
7322
7322
  });
7323
7323
  se(() => {
7324
- const F = m || rr, L = f || [], Q = new Set(L.map((ue) => ue.id)), re = F.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: xt(ue) })), le = L.map((ue) => ({
7324
+ const F = m || rr, L = f || [], Q = new Set(L.map((ue) => ue.id)), re = F.filter((ue) => !Q.has(ue.id)).map((ue) => ({ ...ue, active: Nt(ue) })), le = L.map((ue) => ({
7325
7325
  ...ue,
7326
- active: xt(ue)
7326
+ active: Nt(ue)
7327
7327
  }));
7328
- vr([...re, ...le].sort((ue, $e) => ue.startDate.getTime() - $e.startDate.getTime()));
7328
+ _r([...re, ...le].sort((ue, $e) => ue.startDate.getTime() - $e.startDate.getTime()));
7329
7329
  }, [m, f]);
7330
7330
  const [At, Yn] = H(!1), [Oe, zt] = H({
7331
7331
  label: "",
7332
7332
  startDate: "",
7333
7333
  endDate: "",
7334
7334
  location: ""
7335
- }), { pastAndCurrentEvents: _r, futureEvents: xr } = ee(() => {
7335
+ }), { pastAndCurrentEvents: xr, futureEvents: Nr } = ee(() => {
7336
7336
  const F = /* @__PURE__ */ new Date();
7337
7337
  F.setHours(0, 0, 0, 0);
7338
7338
  const L = [], Q = [];
@@ -7342,12 +7342,12 @@ const Kd = {
7342
7342
  }, [ge]), { defaultMarketEvents: oa, customRanges: ia, futureDefaultEvents: Jt, futureCustomRanges: la } = ee(() => {
7343
7343
  const F = m || rr, L = new Set(F.map((Q) => Q.id));
7344
7344
  return {
7345
- defaultMarketEvents: _r.filter((Q) => !Q.isCustom && L.has(Q.id)),
7346
- customRanges: _r.filter((Q) => Q.isCustom || !L.has(Q.id)),
7347
- futureDefaultEvents: xr.filter((Q) => !Q.isCustom && L.has(Q.id)),
7348
- futureCustomRanges: xr.filter((Q) => Q.isCustom || !L.has(Q.id))
7345
+ defaultMarketEvents: xr.filter((Q) => !Q.isCustom && L.has(Q.id)),
7346
+ customRanges: xr.filter((Q) => Q.isCustom || !L.has(Q.id)),
7347
+ futureDefaultEvents: Nr.filter((Q) => !Q.isCustom && L.has(Q.id)),
7348
+ futureCustomRanges: Nr.filter((Q) => Q.isCustom || !L.has(Q.id))
7349
7349
  };
7350
- }, [_r, xr, m]), mt = o || !!E;
7350
+ }, [xr, Nr, m]), mt = o || !!E;
7351
7351
  se(() => {
7352
7352
  o && j === null && (B($), V(A), z(O));
7353
7353
  }, [o, j, $, A, O]);
@@ -7547,7 +7547,7 @@ const Kd = {
7547
7547
  lastPresetB: null,
7548
7548
  lastPresetC: null
7549
7549
  });
7550
- }, [X, rt]), Nr = N((F) => {
7550
+ }, [X, rt]), Sr = N((F) => {
7551
7551
  w.current && (clearTimeout(w.current), w.current = null), D(null), K && te === "C" ? (Ne(F), Ue(null), Xe(null)) : K && te === "B" ? (we(F), ke(null), _e(null)) : (B(F), V(null), z(null));
7552
7552
  }, [K, te]), $t = N((F) => {
7553
7553
  if (!ge.find((re) => re.id === F)) return;
@@ -7623,7 +7623,7 @@ const Kd = {
7623
7623
  location: Oe.location,
7624
7624
  isCustom: !0
7625
7625
  };
7626
- y?.(F), vr((L) => [...L.filter((le) => le.id !== F.id), { ...F, active: xt(F) }].sort((le, ue) => le.startDate.getTime() - ue.startDate.getTime())), P(null);
7626
+ y?.(F), _r((L) => [...L.filter((le) => le.id !== F.id), { ...F, active: Nt(F) }].sort((le, ue) => le.startDate.getTime() - ue.startDate.getTime())), P(null);
7627
7627
  }, [g, Oe, y]), as = N(() => {
7628
7628
  if (!g || g.isNew) {
7629
7629
  P(null);
@@ -7631,26 +7631,26 @@ const Kd = {
7631
7631
  }
7632
7632
  g.isCustom && b?.(g.id);
7633
7633
  const F = m || rr;
7634
- vr((L) => {
7634
+ _r((L) => {
7635
7635
  const Q = L.filter((le) => le.id !== g.id), re = F.find((le) => le.id === g.id);
7636
- return re && !g.isCustom ? [...Q, { ...re, active: xt(re) }].sort((le, ue) => le.startDate.getTime() - ue.startDate.getTime()) : Q;
7636
+ return re && !g.isCustom ? [...Q, { ...re, active: Nt(re) }].sort((le, ue) => le.startDate.getTime() - ue.startDate.getTime()) : Q;
7637
7637
  }), P(null);
7638
7638
  }, [g, b, m]), bt = (F) => Re === F;
7639
- wr.some((F) => F.id === Re), kr.some((F) => F.id === Re), ge.some((F) => F.id === Re);
7639
+ kr.some((F) => F.id === Re), Dr.some((F) => F.id === Re), ge.some((F) => F.id === Re);
7640
7640
  const ya = ee(() => {
7641
7641
  const F = { small: 280, medium: 340, large: 400 };
7642
7642
  return F[n] || F.medium;
7643
- }, [n]), _t = N((F) => {
7643
+ }, [n]), xt = N((F) => {
7644
7644
  if (!F) return "Select...";
7645
7645
  if (F === "custom") return "Custom";
7646
7646
  if (F === "today") return "Today";
7647
- const L = wr.find((le) => le.id === F);
7647
+ const L = kr.find((le) => le.id === F);
7648
7648
  if (L) return L.label;
7649
- const Q = kr.find((le) => le.id === F);
7649
+ const Q = Dr.find((le) => le.id === F);
7650
7650
  if (Q) return Q.label;
7651
7651
  const re = ge.find((le) => le.id === F);
7652
7652
  return re ? re.label : F;
7653
- }, [ge]), Sr = N((F, L, Q) => {
7653
+ }, [ge]), Cr = N((F, L, Q) => {
7654
7654
  let re, le;
7655
7655
  if (F === "custom" && L && Q)
7656
7656
  re = L, le = Q;
@@ -7669,7 +7669,7 @@ const Kd = {
7669
7669
  }, []), ss = N(() => {
7670
7670
  const F = j !== null ? j : $;
7671
7671
  X(!0), dt(2), we(F), fe("B"), ze(!0);
7672
- }, [j, $, X]), Cr = N(({ label: F, isActive: L, presetName: Q, dateRange: re, color: le, onSelect: ue, onRemove: $e }) => {
7672
+ }, [j, $, X]), wr = N(({ label: F, isActive: L, presetName: Q, dateRange: re, color: le, onSelect: ue, onRemove: $e }) => {
7673
7673
  const _a = !Q || Q === "Select...";
7674
7674
  return /* @__PURE__ */ d(
7675
7675
  ne,
@@ -7803,7 +7803,7 @@ const Kd = {
7803
7803
  },
7804
7804
  children: [
7805
7805
  /* @__PURE__ */ d(ne, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7806
- /* @__PURE__ */ e(zr, { fontSize: "small", sx: { color: "success.main" } }),
7806
+ /* @__PURE__ */ e($r, { fontSize: "small", sx: { color: "success.main" } }),
7807
7807
  /* @__PURE__ */ d(ne, { children: [
7808
7808
  /* @__PURE__ */ d(ne, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
7809
7809
  /* @__PURE__ */ e(Ee, { variant: "body2", fontWeight: 500, children: He.label }),
@@ -7860,7 +7860,7 @@ const Kd = {
7860
7860
  size: "small",
7861
7861
  variant: bt("today") ? "filled" : "outlined",
7862
7862
  color: bt("today") ? "primary" : "default",
7863
- onClick: () => Nr("today"),
7863
+ onClick: () => Sr("today"),
7864
7864
  sx: {
7865
7865
  fontWeight: bt("today") ? 600 : 400,
7866
7866
  cursor: "pointer"
@@ -7871,10 +7871,10 @@ const Kd = {
7871
7871
  jr,
7872
7872
  {
7873
7873
  groupId: "rolling",
7874
- options: wr,
7874
+ options: kr,
7875
7875
  selectedId: Re,
7876
7876
  defaultId: h.pinnedPreset,
7877
- onSelect: Nr,
7877
+ onSelect: Sr,
7878
7878
  pinnedId: h.pinnedPreset,
7879
7879
  onPin: ga,
7880
7880
  isOpen: x === "rolling",
@@ -7885,10 +7885,10 @@ const Kd = {
7885
7885
  jr,
7886
7886
  {
7887
7887
  groupId: "period",
7888
- options: kr,
7888
+ options: Dr,
7889
7889
  selectedId: Re,
7890
7890
  defaultId: h.pinnedPreset,
7891
- onSelect: Nr,
7891
+ onSelect: Sr,
7892
7892
  pinnedId: h.pinnedPreset,
7893
7893
  onPin: ga,
7894
7894
  isOpen: x === "period",
@@ -7917,7 +7917,7 @@ const Kd = {
7917
7917
  position: "relative"
7918
7918
  },
7919
7919
  children: [
7920
- /* @__PURE__ */ e(zr, { sx: { fontSize: 16 } }),
7920
+ /* @__PURE__ */ e($r, { sx: { fontSize: 16 } }),
7921
7921
  He && /* @__PURE__ */ e(
7922
7922
  ne,
7923
7923
  {
@@ -8089,7 +8089,7 @@ const Kd = {
8089
8089
  sx: { ml: 0.5 },
8090
8090
  children: [
8091
8091
  /* @__PURE__ */ e(ne, { component: "span", sx: { color: "#2563EB", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8092
- _t(Re)
8092
+ xt(Re)
8093
8093
  ]
8094
8094
  }
8095
8095
  ),
@@ -8104,7 +8104,7 @@ const Kd = {
8104
8104
  },
8105
8105
  children: [
8106
8106
  /* @__PURE__ */ e(ne, { component: "span", sx: { color: "#10B981", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8107
- _t(ot)
8107
+ xt(ot)
8108
8108
  ]
8109
8109
  }
8110
8110
  ),
@@ -8120,7 +8120,7 @@ const Kd = {
8120
8120
  },
8121
8121
  children: [
8122
8122
  /* @__PURE__ */ e(ne, { component: "span", sx: { color: "#F59E0B", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
8123
- _t(it)
8123
+ xt(it)
8124
8124
  ]
8125
8125
  }
8126
8126
  )
@@ -8158,36 +8158,36 @@ const Kd = {
8158
8158
  ),
8159
8159
  /* @__PURE__ */ e(_o, { in: Zt, children: /* @__PURE__ */ d(ne, { className: "hybrid-date-picker__footer-drawer-content", children: [
8160
8160
  /* @__PURE__ */ e(
8161
- Cr,
8161
+ wr,
8162
8162
  {
8163
8163
  label: "A",
8164
8164
  isActive: te === "A",
8165
- presetName: _t(Re),
8166
- dateRange: Sr(Re, Et, ut),
8165
+ presetName: xt(Re),
8166
+ dateRange: Cr(Re, Et, ut),
8167
8167
  color: "blue",
8168
8168
  onSelect: () => fe("A"),
8169
8169
  onRemove: null
8170
8170
  }
8171
8171
  ),
8172
8172
  De >= 2 && /* @__PURE__ */ e(
8173
- Cr,
8173
+ wr,
8174
8174
  {
8175
8175
  label: "B",
8176
8176
  isActive: te === "B",
8177
- presetName: _t(ot),
8178
- dateRange: Sr(ot, Mt, Pt),
8177
+ presetName: xt(ot),
8178
+ dateRange: Cr(ot, Mt, Pt),
8179
8179
  color: "green",
8180
8180
  onSelect: () => fe("B"),
8181
8181
  onRemove: () => fa("B")
8182
8182
  }
8183
8183
  ),
8184
8184
  De === 3 && /* @__PURE__ */ e(
8185
- Cr,
8185
+ wr,
8186
8186
  {
8187
8187
  label: "C",
8188
8188
  isActive: te === "C",
8189
- presetName: _t(it),
8190
- dateRange: Sr(it, Rt, Bt),
8189
+ presetName: xt(it),
8190
+ dateRange: Cr(it, Rt, Bt),
8191
8191
  color: "amber",
8192
8192
  onSelect: () => fe("C"),
8193
8193
  onRemove: () => fa("C")
@@ -8515,7 +8515,7 @@ const Ga = {
8515
8515
  ] });
8516
8516
  };
8517
8517
  An.displayName = "SimpleSelector";
8518
- const Br = [
8518
+ const Ar = [
8519
8519
  // Today - at the top
8520
8520
  { label: "Today", id: "TODAY", value: () => {
8521
8521
  const r = ft("TODAY");
@@ -8654,7 +8654,7 @@ const Br = [
8654
8654
  const _ = o !== void 0, [v, h] = H(!1), [k, E] = H(!1), [S, C] = H(i ?? !1), I = a?.pinnedPreset || "MTD", [g, P] = H(() => a?.lastPreset?.toUpperCase() || "MTD"), [x, D] = H(null), w = ee(() => lr(r) ? r.rangeA : r, [r]), $ = ee(() => lr(r) ? r.rangeB : null, [r]), T = N((G) => {
8655
8655
  const z = G || "MTD";
8656
8656
  n && a && n({ ...a, pinnedPreset: z.toLowerCase() });
8657
- const U = Br.find((Z) => Z.id === z && !Z.disabled);
8657
+ const U = Ar.find((Z) => Z.id === z && !Z.disabled);
8658
8658
  if (U) {
8659
8659
  const Z = U.value();
8660
8660
  if (P(z), S)
@@ -8705,7 +8705,7 @@ const Br = [
8705
8705
  D(z), Y(G, z), E(!1);
8706
8706
  }, [Y]), W = ee(() => ({
8707
8707
  shortcuts: {
8708
- items: Br.map((G) => ({
8708
+ items: Ar.map((G) => ({
8709
8709
  label: G.label,
8710
8710
  id: G.id,
8711
8711
  getValue: G.value,
@@ -8745,7 +8745,7 @@ const Br = [
8745
8745
  }
8746
8746
  }), [w, O, j, _, S, I, T, g, o]), V = ee(() => ({
8747
8747
  shortcuts: {
8748
- items: Br.map((G) => ({
8748
+ items: Ar.map((G) => ({
8749
8749
  label: G.label,
8750
8750
  id: G.id,
8751
8751
  getValue: G.value,
@@ -8982,7 +8982,10 @@ const Qd = 30, eu = { distance: 5 }, tu = {
8982
8982
  duration: bd.extrude / 1e3,
8983
8983
  // seconds, per framer-motion contract
8984
8984
  ease: [0.22, 1, 0.36, 1]
8985
- }, au = q.memo(function({
8985
+ }, au = { opacity: 0, scale: 0.96 }, nu = { opacity: 1, scale: 1 }, su = { opacity: 0, scale: 0.96 }, ou = {
8986
+ duration: 0.22,
8987
+ ease: [0.34, 1.56, 0.64, 1]
8988
+ }, iu = q.memo(function({
8986
8989
  cards: t,
8987
8990
  cardOrder: a,
8988
8991
  layout: n,
@@ -9063,25 +9066,38 @@ const Qd = 30, eu = { distance: 5 }, tu = {
9063
9066
  items: I.map((T) => T.id),
9064
9067
  strategy: ci,
9065
9068
  children: /* @__PURE__ */ d("div", { className: "gloss-grid__container", style: w, children: [
9066
- I.map((T, A) => {
9069
+ /* @__PURE__ */ e(pr, { mode: "popLayout", children: I.map((T, A) => {
9067
9070
  const M = D?.isDimCover === !0 && D.dimCoverId === T.id;
9068
9071
  return /* @__PURE__ */ e(
9069
- Zd,
9072
+ vt.div,
9070
9073
  {
9071
- id: T.id,
9072
- colSpan: T.colSpan,
9073
- staggerDelay: `${A * Qd}ms`,
9074
- dimCover: M,
9075
- children: o(T)
9074
+ layout: "position",
9075
+ initial: au,
9076
+ animate: nu,
9077
+ exit: su,
9078
+ transition: {
9079
+ ...ou,
9080
+ delay: A * 0.03
9081
+ },
9082
+ children: /* @__PURE__ */ e(
9083
+ Zd,
9084
+ {
9085
+ id: T.id,
9086
+ colSpan: T.colSpan,
9087
+ staggerDelay: `${A * Qd}ms`,
9088
+ dimCover: M,
9089
+ children: o(T)
9090
+ }
9091
+ )
9076
9092
  },
9077
9093
  T.id
9078
9094
  );
9079
- }),
9095
+ }) }),
9080
9096
  c && Array.from({ length: P }, (T, A) => /* @__PURE__ */ e("div", { className: "gloss-grid__empty-slot", children: c(g + A) }, `empty-${A}`)),
9081
- /* @__PURE__ */ e($r, { children: $ && D && (() => {
9097
+ /* @__PURE__ */ e(pr, { children: $ && D && (() => {
9082
9098
  const T = D.extrudeIndex % n.columns + 1, A = Math.floor(D.extrudeIndex / n.columns) + 1;
9083
9099
  return /* @__PURE__ */ e(
9084
- Ct.div,
9100
+ vt.div,
9085
9101
  {
9086
9102
  variants: tu,
9087
9103
  initial: "initial",
@@ -9133,8 +9149,8 @@ const Qd = 30, eu = { distance: 5 }, tu = {
9133
9149
  )
9134
9150
  ] });
9135
9151
  });
9136
- au.displayName = "MetricCardGrid";
9137
- const nu = q.memo(function({
9152
+ iu.displayName = "MetricCardGrid";
9153
+ const lu = q.memo(function({
9138
9154
  tabs: t,
9139
9155
  activeTabId: a,
9140
9156
  onTabChange: n,
@@ -9266,8 +9282,8 @@ const nu = q.memo(function({
9266
9282
  )
9267
9283
  ] });
9268
9284
  });
9269
- nu.displayName = "TabbedDataView";
9270
- const su = function(t) {
9285
+ lu.displayName = "TabbedDataView";
9286
+ const cu = function(t) {
9271
9287
  const a = {
9272
9288
  variant: "sparkline",
9273
9289
  label: t.label,
@@ -9293,8 +9309,8 @@ const su = function(t) {
9293
9309
  }
9294
9310
  );
9295
9311
  };
9296
- su.displayName = "TrendCard";
9297
- const ou = function(t) {
9312
+ cu.displayName = "TrendCard";
9313
+ const du = function(t) {
9298
9314
  const a = {
9299
9315
  variant: "bars",
9300
9316
  label: t.label,
@@ -9320,8 +9336,8 @@ const ou = function(t) {
9320
9336
  }
9321
9337
  );
9322
9338
  };
9323
- ou.displayName = "BarChartCard";
9324
- const iu = function(t) {
9339
+ du.displayName = "BarChartCard";
9340
+ const uu = function(t) {
9325
9341
  const a = {
9326
9342
  variant: "donut",
9327
9343
  label: t.label,
@@ -9348,8 +9364,8 @@ const iu = function(t) {
9348
9364
  }
9349
9365
  );
9350
9366
  };
9351
- iu.displayName = "DistributionCard";
9352
- const lu = function(t) {
9367
+ uu.displayName = "DistributionCard";
9368
+ const mu = function(t) {
9353
9369
  const a = {
9354
9370
  variant: "highlight",
9355
9371
  label: t.label,
@@ -9374,8 +9390,8 @@ const lu = function(t) {
9374
9390
  }
9375
9391
  );
9376
9392
  };
9377
- lu.displayName = "HighlightCard";
9378
- const cu = function(t) {
9393
+ mu.displayName = "HighlightCard";
9394
+ const pu = function(t) {
9379
9395
  const a = {
9380
9396
  variant: "arrow",
9381
9397
  label: t.label,
@@ -9401,8 +9417,8 @@ const cu = function(t) {
9401
9417
  }
9402
9418
  );
9403
9419
  };
9404
- cu.displayName = "DirectionCard";
9405
- const du = function(t) {
9420
+ pu.displayName = "DirectionCard";
9421
+ const fu = function(t) {
9406
9422
  const a = {
9407
9423
  variant: "object-arrow",
9408
9424
  label: t.label,
@@ -9428,8 +9444,8 @@ const du = function(t) {
9428
9444
  }
9429
9445
  );
9430
9446
  };
9431
- du.displayName = "ProgressCard";
9432
- const uu = function(t) {
9447
+ fu.displayName = "ProgressCard";
9448
+ const gu = function(t) {
9433
9449
  const a = {
9434
9450
  variant: "versus",
9435
9451
  label: t.label,
@@ -9454,8 +9470,8 @@ const uu = function(t) {
9454
9470
  }
9455
9471
  );
9456
9472
  };
9457
- uu.displayName = "ComparisonCard";
9458
- const mu = function(t) {
9473
+ gu.displayName = "ComparisonCard";
9474
+ const hu = function(t) {
9459
9475
  const a = {
9460
9476
  variant: "segmented",
9461
9477
  label: t.label,
@@ -9480,8 +9496,8 @@ const mu = function(t) {
9480
9496
  }
9481
9497
  );
9482
9498
  };
9483
- mu.displayName = "SegmentCard";
9484
- const pu = function(t) {
9499
+ hu.displayName = "SegmentCard";
9500
+ const bu = function(t) {
9485
9501
  const a = {
9486
9502
  variant: "standard",
9487
9503
  label: t.label,
@@ -9505,8 +9521,8 @@ const pu = function(t) {
9505
9521
  }
9506
9522
  );
9507
9523
  };
9508
- pu.displayName = "SimpleMetricCard";
9509
- const Ar = ({
9524
+ bu.displayName = "SimpleMetricCard";
9525
+ const zr = ({
9510
9526
  type: r,
9511
9527
  className: t = ""
9512
9528
  }) => {
@@ -9531,7 +9547,7 @@ const Ar = ({
9531
9547
  const u = r.map((m) => ({
9532
9548
  value: m.id,
9533
9549
  label: /* @__PURE__ */ d("div", { className: "payment-method-option", children: [
9534
- /* @__PURE__ */ e(Ar, { type: m.type }),
9550
+ /* @__PURE__ */ e(zr, { type: m.type }),
9535
9551
  /* @__PURE__ */ d("div", { className: "payment-method-option__details", children: [
9536
9552
  /* @__PURE__ */ d("span", { className: "payment-method-option__number", children: [
9537
9553
  "**** ",
@@ -9545,13 +9561,13 @@ const Ar = ({
9545
9561
  m.isDefault && /* @__PURE__ */ e("span", { className: "payment-method-option__badge", children: "Default" })
9546
9562
  ] }),
9547
9563
  triggerLabel: /* @__PURE__ */ d("div", { className: "payment-method-trigger", children: [
9548
- /* @__PURE__ */ e(Ar, { type: m.type }),
9564
+ /* @__PURE__ */ e(zr, { type: m.type }),
9549
9565
  /* @__PURE__ */ d("span", { children: [
9550
9566
  "**** ",
9551
9567
  m.last4
9552
9568
  ] })
9553
9569
  ] }),
9554
- icon: /* @__PURE__ */ e(Ar, { type: m.type })
9570
+ icon: /* @__PURE__ */ e(zr, { type: m.type })
9555
9571
  }));
9556
9572
  s && u.push({
9557
9573
  value: "__add_new__",
@@ -9582,7 +9598,7 @@ const Ar = ({
9582
9598
  );
9583
9599
  };
9584
9600
  zn.displayName = "PaymentMethodSelect";
9585
- const fu = (r) => `${r.label || r.street}, ${r.city}`, gu = ({
9601
+ const yu = (r) => `${r.label || r.street}, ${r.city}`, vu = ({
9586
9602
  addresses: r,
9587
9603
  value: t,
9588
9604
  onChange: a,
@@ -9612,7 +9628,7 @@ const fu = (r) => `${r.label || r.street}, ${r.city}`, gu = ({
9612
9628
  f.zip
9613
9629
  ] })
9614
9630
  ] }),
9615
- triggerLabel: s === "short" ? /* @__PURE__ */ e("span", { children: fu(f) }) : /* @__PURE__ */ d("div", { className: "address-trigger-full", children: [
9631
+ triggerLabel: s === "short" ? /* @__PURE__ */ e("span", { children: yu(f) }) : /* @__PURE__ */ d("div", { className: "address-trigger-full", children: [
9616
9632
  f.label && /* @__PURE__ */ e("strong", { children: f.label }),
9617
9633
  /* @__PURE__ */ e("div", { className: "address-trigger-full__name", children: f.name }),
9618
9634
  /* @__PURE__ */ e("div", { className: "address-trigger-full__street", children: f.street }),
@@ -9652,7 +9668,7 @@ const fu = (r) => `${r.label || r.street}, ${r.city}`, gu = ({
9652
9668
  }
9653
9669
  );
9654
9670
  };
9655
- gu.displayName = "AddressSelect";
9671
+ vu.displayName = "AddressSelect";
9656
9672
  const $n = q.forwardRef(
9657
9673
  ({
9658
9674
  onSearch: r,
@@ -9805,28 +9821,28 @@ const $n = q.forwardRef(
9805
9821
  }
9806
9822
  );
9807
9823
  $n.displayName = "SearchInput";
9808
- const hu = [
9824
+ const _u = [
9809
9825
  { id: "length", label: "At least 8 characters", validate: (r) => r.length >= 8 },
9810
9826
  { id: "lowercase", label: "Contains lowercase letter", validate: (r) => /[a-z]/.test(r) },
9811
9827
  { id: "uppercase", label: "Contains uppercase letter", validate: (r) => /[A-Z]/.test(r) },
9812
9828
  { id: "number", label: "Contains number", validate: (r) => /\d/.test(r) },
9813
9829
  { id: "special", label: "Contains special character", validate: (r) => /[!@#$%^&*(),.?":{}|<>]/.test(r) }
9814
- ], bu = (r) => {
9830
+ ], xu = (r) => {
9815
9831
  const t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*";
9816
9832
  let a = "";
9817
9833
  for (let n = 0; n < r; n++)
9818
9834
  a += t.charAt(Math.floor(Math.random() * t.length));
9819
9835
  return a;
9820
- }, yu = (r, t) => {
9836
+ }, Nu = (r, t) => {
9821
9837
  if (!r) return "weak";
9822
9838
  const n = t.filter((s) => s.validate(r)).length / t.length;
9823
9839
  return n < 0.4 ? "weak" : n < 0.6 ? "fair" : n < 0.8 ? "good" : "strong";
9824
- }, fr = q.forwardRef(
9840
+ }, gr = q.forwardRef(
9825
9841
  ({
9826
9842
  showToggle: r = !0,
9827
9843
  showStrength: t = !1,
9828
9844
  strength: a,
9829
- strengthRules: n = hu,
9845
+ strengthRules: n = _u,
9830
9846
  showGenerate: s = !1,
9831
9847
  onGenerate: i,
9832
9848
  generateLength: o = 16,
@@ -9847,7 +9863,7 @@ const hu = [
9847
9863
  autoComplete: C = "new-password"
9848
9864
  }, I) => {
9849
9865
  const [g, P] = H(!1), [x, D] = H(String(u ?? "")), w = l !== void 0 ? String(l) : x, $ = ee(
9850
- () => yu(w, n),
9866
+ () => Nu(w, n),
9851
9867
  [w, n]
9852
9868
  ), T = a ?? $, A = ee(
9853
9869
  () => n.map((V) => ({
@@ -9863,7 +9879,7 @@ const hu = [
9863
9879
  ), O = N(() => {
9864
9880
  P((V) => !V);
9865
9881
  }, []), Y = N(() => {
9866
- const V = bu(o);
9882
+ const V = xu(o);
9867
9883
  i ? i(V) : (l === void 0 && D(V), p?.({
9868
9884
  target: { value: V },
9869
9885
  currentTarget: { value: V }
@@ -9958,8 +9974,8 @@ const hu = [
9958
9974
  ] });
9959
9975
  }
9960
9976
  );
9961
- fr.displayName = "PasswordInput";
9962
- const vu = q.forwardRef(
9977
+ gr.displayName = "PasswordInput";
9978
+ const Su = q.forwardRef(
9963
9979
  ({
9964
9980
  value: r,
9965
9981
  defaultValue: t = [],
@@ -10141,8 +10157,8 @@ const vu = q.forwardRef(
10141
10157
  ] });
10142
10158
  }
10143
10159
  );
10144
- vu.displayName = "TagInput";
10145
- const _u = [
10160
+ Su.displayName = "TagInput";
10161
+ const Cu = [
10146
10162
  { code: "US", name: "United States", dialCode: "+1", format: "(###) ###-####" },
10147
10163
  { code: "CA", name: "Canada", dialCode: "+1", format: "(###) ###-####" },
10148
10164
  { code: "GB", name: "United Kingdom", dialCode: "+44", format: "#### ### ####" },
@@ -10170,7 +10186,7 @@ const _u = [
10170
10186
  nationalNumber: r.slice(n.dialCode.length)
10171
10187
  };
10172
10188
  return { country: null, nationalNumber: r.slice(1) };
10173
- }, xu = (r, t) => {
10189
+ }, wu = (r, t) => {
10174
10190
  if (!t) return r;
10175
10191
  const a = r.replace(/\D/g, "");
10176
10192
  let n = "", s = 0;
@@ -10179,13 +10195,13 @@ const _u = [
10179
10195
  i === "#" ? (n += a[s], s++) : n += i;
10180
10196
  }
10181
10197
  return s < a.length && (n += a.slice(s)), n;
10182
- }, Ya = (r) => r.replace(/\D/g, ""), Nu = q.forwardRef(
10198
+ }, Ya = (r) => r.replace(/\D/g, ""), ku = q.forwardRef(
10183
10199
  ({
10184
10200
  value: r,
10185
10201
  defaultValue: t,
10186
10202
  onChange: a,
10187
10203
  defaultCountry: n = "US",
10188
- countries: s = _u,
10204
+ countries: s = Cu,
10189
10205
  showCountrySelect: i = !0,
10190
10206
  format: o = "national",
10191
10207
  label: c,
@@ -10208,7 +10224,7 @@ const _u = [
10208
10224
  ), [x, D] = H(!1), w = r !== void 0, $ = ee(
10209
10225
  () => w ? Ka(r || "", s) : null,
10210
10226
  [w, r, s]
10211
- ), T = $?.country || C, A = $?.nationalNumber || g, M = xu(A, T.format), O = N(
10227
+ ), T = $?.country || C, A = $?.nationalNumber || g, M = wu(A, T.format), O = N(
10212
10228
  (G, z) => {
10213
10229
  const U = Ya(z);
10214
10230
  return U ? `${G.dialCode}${U}` : "";
@@ -10302,7 +10318,7 @@ const _u = [
10302
10318
  ] });
10303
10319
  }
10304
10320
  );
10305
- Nu.displayName = "PhoneInput";
10321
+ ku.displayName = "PhoneInput";
10306
10322
  const Fn = q.forwardRef(
10307
10323
  (r, t) => {
10308
10324
  const {
@@ -10370,8 +10386,8 @@ function Zr({
10370
10386
  );
10371
10387
  }
10372
10388
  Zr.displayName = "PresetPopover";
10373
- const Su = (r) => String(r), Cu = /* @__PURE__ */ e("div", { className: "gloss-autocomplete__empty", children: "No matches found. Try a different search." });
10374
- function wu() {
10389
+ const Du = (r) => String(r), Iu = /* @__PURE__ */ e("div", { className: "gloss-autocomplete__empty", children: "No matches found. Try a different search." });
10390
+ function Tu() {
10375
10391
  return /* @__PURE__ */ d("div", { className: "gloss-autocomplete__loading", children: [
10376
10392
  /* @__PURE__ */ e(Je, { name: "loader" }),
10377
10393
  "Loading..."
@@ -10382,10 +10398,10 @@ function On(r) {
10382
10398
  options: t,
10383
10399
  value: a,
10384
10400
  onChange: n,
10385
- getOptionLabel: s = Su,
10401
+ getOptionLabel: s = Du,
10386
10402
  onSearch: i,
10387
10403
  resultSlot: o,
10388
- emptySlot: c = Cu,
10404
+ emptySlot: c = Iu,
10389
10405
  loadingSlot: l,
10390
10406
  placeholder: u,
10391
10407
  label: p,
@@ -10484,7 +10500,7 @@ function On(r) {
10484
10500
  onDismiss: O,
10485
10501
  anchorRef: P,
10486
10502
  placement: "bottom-start",
10487
- children: b ? l ?? /* @__PURE__ */ e(wu, {}) : w.length === 0 ? c : /* @__PURE__ */ e(
10503
+ children: b ? l ?? /* @__PURE__ */ e(Tu, {}) : w.length === 0 ? c : /* @__PURE__ */ e(
10488
10504
  "ul",
10489
10505
  {
10490
10506
  ref: D,
@@ -10732,20 +10748,20 @@ function Ln(r) {
10732
10748
  ] });
10733
10749
  }
10734
10750
  Ln.displayName = "MultiSelect";
10735
- const ku = {
10751
+ const Eu = {
10736
10752
  xs: { size: "24px", fontSize: "0.625rem" },
10737
10753
  sm: { size: "32px", fontSize: "0.75rem" },
10738
10754
  md: { size: "40px", fontSize: "0.875rem" },
10739
10755
  lg: { size: "48px", fontSize: "1rem" },
10740
10756
  xl: { size: "64px", fontSize: "1.25rem" }
10741
- }, Du = {
10757
+ }, Mu = {
10742
10758
  bg: R.BgMuted,
10743
10759
  color: R.TextSecondary
10744
- }, Iu = {
10760
+ }, Pu = {
10745
10761
  circle: "50%",
10746
10762
  square: Ce.Md
10747
10763
  };
10748
- function Tu() {
10764
+ function Ru() {
10749
10765
  return /* @__PURE__ */ e(
10750
10766
  "svg",
10751
10767
  {
@@ -10770,14 +10786,14 @@ function Jr(r) {
10770
10786
  } = r, l = { ...c };
10771
10787
  delete l.className, delete l.style, delete l.definition;
10772
10788
  const u = {
10773
- ...Du,
10774
- ...ku[t],
10775
- radius: Iu[a]
10789
+ ...Mu,
10790
+ ...Eu[t],
10791
+ radius: Pu[a]
10776
10792
  }, p = [
10777
10793
  "gloss-preset-avatar",
10778
10794
  `gloss-preset-avatar--${t}`
10779
10795
  ].join(" ");
10780
- let m = /* @__PURE__ */ e(Tu, {});
10796
+ let m = /* @__PURE__ */ e(Ru, {});
10781
10797
  return o ? m = o : i && (m = i), /* @__PURE__ */ e(
10782
10798
  no,
10783
10799
  {
@@ -10791,7 +10807,7 @@ function Jr(r) {
10791
10807
  );
10792
10808
  }
10793
10809
  Jr.displayName = "PresetAvatar";
10794
- function Eu(r, t) {
10810
+ function Bu(r, t) {
10795
10811
  return /* @__PURE__ */ d("div", { className: `gloss-entity-picker__result ${t ? "gloss-entity-picker__result--highlighted" : ""}`, children: [
10796
10812
  r.avatarUrl ? /* @__PURE__ */ e("div", { className: "gloss-entity-picker__result-avatar", children: /* @__PURE__ */ e(Jr, { src: r.avatarUrl, alt: r.label, size: "sm" }) }) : r.icon ? /* @__PURE__ */ e("div", { className: "gloss-entity-picker__result-icon", children: /* @__PURE__ */ e(Je, { name: r.icon, definition: { size: "sm" } }) }) : null,
10797
10813
  /* @__PURE__ */ d("div", { className: "gloss-entity-picker__result-info", children: [
@@ -10800,13 +10816,13 @@ function Eu(r, t) {
10800
10816
  ] })
10801
10817
  ] });
10802
10818
  }
10803
- const Mu = /* @__PURE__ */ e("div", { className: "gloss-entity-picker__empty", children: "No entities found. No matching entities found." });
10804
- function Pu({
10819
+ const Au = /* @__PURE__ */ e("div", { className: "gloss-entity-picker__empty", children: "No entities found. No matching entities found." });
10820
+ function zu({
10805
10821
  entities: r,
10806
10822
  value: t,
10807
10823
  onChange: a,
10808
10824
  onSearch: n,
10809
- resultSlot: s = Eu,
10825
+ resultSlot: s = Bu,
10810
10826
  selectedSlot: i,
10811
10827
  placeholder: o = "Search entities...",
10812
10828
  label: c,
@@ -10825,7 +10841,7 @@ function Pu({
10825
10841
  getOptionLabel: (y) => y.label,
10826
10842
  onSearch: n,
10827
10843
  resultSlot: s,
10828
- emptySlot: Mu,
10844
+ emptySlot: Au,
10829
10845
  placeholder: o,
10830
10846
  label: c,
10831
10847
  isLoading: l,
@@ -10834,7 +10850,7 @@ function Pu({
10834
10850
  }
10835
10851
  ) });
10836
10852
  }
10837
- Pu.displayName = "EntityPicker";
10853
+ zu.displayName = "EntityPicker";
10838
10854
  function Qr(r) {
10839
10855
  const {
10840
10856
  columns: t,
@@ -11024,12 +11040,12 @@ function Qr(r) {
11024
11040
  ] });
11025
11041
  }
11026
11042
  Qr.displayName = "DataTable";
11027
- const Ru = [
11043
+ const $u = [
11028
11044
  { value: "count", label: "Count" },
11029
11045
  { value: "total", label: "Total" },
11030
11046
  { value: "average", label: "Average" }
11031
11047
  ];
11032
- function Bu({
11048
+ function Fu({
11033
11049
  filterDescription: r,
11034
11050
  filterPayload: t,
11035
11051
  onConfirm: a,
@@ -11070,7 +11086,7 @@ function Bu({
11070
11086
  /* @__PURE__ */ e("div", { className: "pin-to-metric__popover-header", children: r }),
11071
11087
  /* @__PURE__ */ d("div", { className: "pin-to-metric__popover-body", children: [
11072
11088
  /* @__PURE__ */ e("p", { className: "pin-to-metric__popover-prompt", children: "Pin as metric card using:" }),
11073
- /* @__PURE__ */ e("div", { className: "pin-to-metric__agg-buttons", children: Ru.map(({ value: _, label: v }) => /* @__PURE__ */ e(
11089
+ /* @__PURE__ */ e("div", { className: "pin-to-metric__agg-buttons", children: $u.map(({ value: _, label: v }) => /* @__PURE__ */ e(
11074
11090
  "button",
11075
11091
  {
11076
11092
  type: "button",
@@ -11086,13 +11102,13 @@ function Bu({
11086
11102
  ) }) })
11087
11103
  ] });
11088
11104
  }
11089
- Bu.displayName = "PinToMetric";
11090
- const Au = {
11105
+ Fu.displayName = "PinToMetric";
11106
+ const Ou = {
11091
11107
  sm: "400px",
11092
11108
  md: "560px",
11093
11109
  lg: "720px",
11094
11110
  fullscreen: "100vw"
11095
- }, zu = {
11111
+ }, Lu = {
11096
11112
  portal: !0,
11097
11113
  dismissOnClickOutside: !0,
11098
11114
  dismissOnEscape: !0,
@@ -11104,13 +11120,13 @@ const Au = {
11104
11120
  zIndex: en.Modal
11105
11121
  };
11106
11122
  function ea({ open: r, onDismiss: t, size: a = "md", children: n }) {
11107
- const s = Au[a];
11123
+ const s = Ou[a];
11108
11124
  return /* @__PURE__ */ d(We, { children: [
11109
11125
  r && /* @__PURE__ */ e("div", { className: "gloss-container-dialog__backdrop", "data-density": "default" }),
11110
11126
  /* @__PURE__ */ e(
11111
11127
  tn,
11112
11128
  {
11113
- definition: zu,
11129
+ definition: Lu,
11114
11130
  open: r,
11115
11131
  onDismiss: t,
11116
11132
  className: `gloss-container-dialog gloss-container-dialog--${a}`,
@@ -11123,20 +11139,20 @@ function ea({ open: r, onDismiss: t, size: a = "md", children: n }) {
11123
11139
  ea.displayName = "ContainerDialog";
11124
11140
  const ta = q.forwardRef(({ children: r, ...t }, a) => {
11125
11141
  const n = { ...t };
11126
- return delete n.className, delete n.style, /* @__PURE__ */ e("div", { ref: a, className: "gloss-container-dialog__header", ...n, children: /* @__PURE__ */ e(vt, { region: "dialog-header", children: r }) });
11142
+ return delete n.className, delete n.style, /* @__PURE__ */ e("div", { ref: a, className: "gloss-container-dialog__header", ...n, children: /* @__PURE__ */ e(_t, { region: "dialog-header", children: r }) });
11127
11143
  });
11128
11144
  ta.displayName = "ContainerDialogHeader";
11129
11145
  const ra = q.forwardRef(({ children: r, ...t }, a) => {
11130
11146
  const n = { ...t };
11131
- return delete n.className, delete n.style, /* @__PURE__ */ e("div", { ref: a, className: "gloss-container-dialog__body", ...n, children: /* @__PURE__ */ e(vt, { region: "dialog-body", children: r }) });
11147
+ return delete n.className, delete n.style, /* @__PURE__ */ e("div", { ref: a, className: "gloss-container-dialog__body", ...n, children: /* @__PURE__ */ e(_t, { region: "dialog-body", children: r }) });
11132
11148
  });
11133
11149
  ra.displayName = "ContainerDialogBody";
11134
11150
  const aa = q.forwardRef(({ children: r, ...t }, a) => {
11135
11151
  const n = { ...t };
11136
- return delete n.className, delete n.style, /* @__PURE__ */ e("div", { ref: a, className: "gloss-container-dialog__actions", ...n, children: /* @__PURE__ */ e(vt, { region: "dialog-actions", children: r }) });
11152
+ return delete n.className, delete n.style, /* @__PURE__ */ e("div", { ref: a, className: "gloss-container-dialog__actions", ...n, children: /* @__PURE__ */ e(_t, { region: "dialog-actions", children: r }) });
11137
11153
  });
11138
11154
  aa.displayName = "ContainerDialogActions";
11139
- function $u(r) {
11155
+ function Hu(r) {
11140
11156
  const {
11141
11157
  open: t,
11142
11158
  onClose: a,
@@ -11178,8 +11194,8 @@ function $u(r) {
11178
11194
  ] }) })
11179
11195
  ] }) });
11180
11196
  }
11181
- $u.displayName = "FormDialog";
11182
- const Fu = {
11197
+ Hu.displayName = "FormDialog";
11198
+ const Wu = {
11183
11199
  body: {
11184
11200
  fontFamily: Be.FontBody,
11185
11201
  fontSize: Be.TextBase,
@@ -11202,7 +11218,7 @@ const Fu = {
11202
11218
  letterSpacing: "0.08em",
11203
11219
  color: R.TextSecondary
11204
11220
  }
11205
- }, Ou = {
11221
+ }, Gu = {
11206
11222
  xs: { fontSize: Be.TextXs },
11207
11223
  sm: { fontSize: Be.TextSm },
11208
11224
  md: { fontSize: Be.TextBase },
@@ -11217,8 +11233,8 @@ const Fu = {
11217
11233
  } = t, o = { ...i };
11218
11234
  delete o.className, delete o.style, delete o.definition;
11219
11235
  const c = {
11220
- ...Fu[a],
11221
- ...Ou[n]
11236
+ ...Wu[a],
11237
+ ...Gu[n]
11222
11238
  }, l = [
11223
11239
  "gloss-preset-text",
11224
11240
  `gloss-preset-text--${a}`
@@ -11235,7 +11251,7 @@ const Fu = {
11235
11251
  );
11236
11252
  };
11237
11253
  Ht.displayName = "PresetText";
11238
- function Lu({
11254
+ function Vu({
11239
11255
  open: r,
11240
11256
  cardA: t,
11241
11257
  cardB: a,
@@ -11360,7 +11376,7 @@ function Lu({
11360
11376
  }
11361
11377
  );
11362
11378
  }
11363
- Lu.displayName = "MergePrompt";
11379
+ Vu.displayName = "MergePrompt";
11364
11380
  function Hn(r) {
11365
11381
  const {
11366
11382
  steps: t,
@@ -11426,7 +11442,7 @@ const Ua = ye.object({
11426
11442
  email: ye.string().email("Please enter a valid email address"),
11427
11443
  password: ye.string().min(8, "Password must be at least 8 characters"),
11428
11444
  rememberMe: ye.boolean().optional()
11429
- }), fp = {
11445
+ }), yp = {
11430
11446
  slug: "login-form",
11431
11447
  displayName: "Login Form",
11432
11448
  description: "A standard authentication form with email, password, remember me checkbox, and forgot password link. Includes Zod validation.",
@@ -11484,7 +11500,7 @@ const Ua = ye.object({
11484
11500
  ],
11485
11501
  version: "1.0.0"
11486
11502
  };
11487
- function gp({
11503
+ function vp({
11488
11504
  title: r = "Welcome Back",
11489
11505
  subtitle: t = "Sign in to your account",
11490
11506
  submitLabel: a = "Sign In",
@@ -11580,7 +11596,7 @@ function gp({
11580
11596
  )
11581
11597
  ] }),
11582
11598
  /* @__PURE__ */ e(
11583
- fr,
11599
+ gr,
11584
11600
  {
11585
11601
  showToggle: !0,
11586
11602
  placeholder: "Enter your password",
@@ -11623,7 +11639,7 @@ function gp({
11623
11639
  ] })
11624
11640
  ] });
11625
11641
  }
11626
- const Hu = [
11642
+ const ju = [
11627
11643
  { value: "AL", label: "Alabama" },
11628
11644
  { value: "AK", label: "Alaska" },
11629
11645
  { value: "AZ", label: "Arizona" },
@@ -11681,7 +11697,7 @@ const Hu = [
11681
11697
  state: ye.string().min(2, "Please select a state"),
11682
11698
  zip: ye.string().regex(/^\d{5}(-\d{4})?$/, "Please enter a valid ZIP code"),
11683
11699
  country: ye.string().default("US")
11684
- }), hp = {
11700
+ }), _p = {
11685
11701
  slug: "address-group",
11686
11702
  displayName: "Address Group",
11687
11703
  description: "A complete address collection form with street, city, state, and ZIP fields. Includes US state select and ZIP code validation.",
@@ -11727,7 +11743,7 @@ const Hu = [
11727
11743
  ],
11728
11744
  version: "1.0.0"
11729
11745
  };
11730
- function Wu({
11746
+ function Ku({
11731
11747
  legend: r = "Address",
11732
11748
  compact: t = !1,
11733
11749
  showStreet2: a = !0,
@@ -11875,7 +11891,7 @@ function Wu({
11875
11891
  S("state")(g), _((P) => ({ ...P, state: !0 }));
11876
11892
  },
11877
11893
  disabled: i,
11878
- options: Hu
11894
+ options: ju
11879
11895
  }
11880
11896
  ),
11881
11897
  k.state && b.state && /* @__PURE__ */ e("span", { className: "gloss-pattern-address-group__error", children: k.state })
@@ -11916,9 +11932,9 @@ function Wu({
11916
11932
  )
11917
11933
  ] });
11918
11934
  }
11919
- const Wn = cs(Wu);
11935
+ const Wn = cs(Ku);
11920
11936
  Wn.displayName = "AddressGroup";
11921
- const Gu = (r) => {
11937
+ const Yu = (r) => {
11922
11938
  const t = r.replace(/\s/g, "");
11923
11939
  if (!/^\d{13,19}$/.test(t)) return !1;
11924
11940
  let a = 0, n = !1;
@@ -11927,15 +11943,15 @@ const Gu = (r) => {
11927
11943
  n && (i *= 2, i > 9 && (i -= 9)), a += i, n = !n;
11928
11944
  }
11929
11945
  return a % 10 === 0;
11930
- }, gr = ye.object({
11931
- cardNumber: ye.string().min(13, "Card number is too short").refine((r) => Gu(r), "Invalid card number"),
11946
+ }, hr = ye.object({
11947
+ cardNumber: ye.string().min(13, "Card number is too short").refine((r) => Yu(r), "Invalid card number"),
11932
11948
  expiryDate: ye.string().regex(/^(0[1-9]|1[0-2])\s?\/\s?\d{2}$/, "Invalid expiry date (MM/YY)").refine((r) => {
11933
11949
  const [t, a] = r.split("/").map((i) => parseInt(i.trim(), 10)), n = /* @__PURE__ */ new Date();
11934
11950
  return new Date(2e3 + a, t - 1) > n;
11935
11951
  }, "Card has expired"),
11936
11952
  cvv: ye.string().regex(/^\d{3,4}$/, "CVV must be 3 or 4 digits"),
11937
11953
  cardholderName: ye.string().min(2, "Cardholder name is required")
11938
- }), bp = {
11954
+ }), xp = {
11939
11955
  slug: "credit-card-form",
11940
11956
  displayName: "Credit Card Form",
11941
11957
  description: "A secure payment form with card number masking, expiry date formatting, CVV input, and Luhn validation. Supports async BIN validation.",
@@ -11999,7 +12015,7 @@ const Gu = (r) => {
11999
12015
  ],
12000
12016
  version: "1.0.0"
12001
12017
  };
12002
- function yp({
12018
+ function Np({
12003
12019
  title: r = "Payment Details",
12004
12020
  subtitle: t = "Enter your card information",
12005
12021
  submitLabel: a = "Pay",
@@ -12023,7 +12039,7 @@ function yp({
12023
12039
  cardholderName: p.cardholderName ?? ""
12024
12040
  }), [h, k] = H({}), [E, S] = H({}), C = ee(() => n ? `${a} ${n}` : a, [a, n]), I = N((w, $) => {
12025
12041
  try {
12026
- gr.shape[w].parse($), k((A) => ({ ...A, [w]: void 0 }));
12042
+ hr.shape[w].parse($), k((A) => ({ ...A, [w]: void 0 }));
12027
12043
  } catch (T) {
12028
12044
  T instanceof ye.ZodError && k((A) => ({ ...A, [w]: T.issues[0]?.message }));
12029
12045
  }
@@ -12043,7 +12059,7 @@ function yp({
12043
12059
  f(new FormData(w.currentTarget));
12044
12060
  return;
12045
12061
  }
12046
- const $ = gr.safeParse(_);
12062
+ const $ = hr.safeParse(_);
12047
12063
  if (!$.success) {
12048
12064
  const T = {};
12049
12065
  $.error.issues.forEach((A) => {
@@ -12180,7 +12196,7 @@ const Xa = ye.object({
12180
12196
  }).refine((r) => r.password === r.confirmPassword, {
12181
12197
  message: "Passwords must match",
12182
12198
  path: ["confirmPassword"]
12183
- }), vp = {
12199
+ }), Sp = {
12184
12200
  slug: "registration-form",
12185
12201
  displayName: "Registration Form",
12186
12202
  description: "A user registration form with name, email, password fields, terms acceptance, and Zod validation. Supports password strength indicator and confirmation matching.",
@@ -12232,7 +12248,7 @@ const Xa = ye.object({
12232
12248
  ],
12233
12249
  version: "1.0.0"
12234
12250
  };
12235
- function _p({
12251
+ function Cp({
12236
12252
  onSubmit: r,
12237
12253
  onSubmitRaw: t,
12238
12254
  isLoading: a = !1,
@@ -12368,7 +12384,7 @@ function _p({
12368
12384
  /* @__PURE__ */ d("div", { className: "gloss-registration-form__field", children: [
12369
12385
  /* @__PURE__ */ e("label", { className: "gloss-registration-form__label", children: "Password" }),
12370
12386
  /* @__PURE__ */ e(
12371
- fr,
12387
+ gr,
12372
12388
  {
12373
12389
  showToggle: !0,
12374
12390
  showStrength: !0,
@@ -12388,7 +12404,7 @@ function _p({
12388
12404
  /* @__PURE__ */ d("div", { className: "gloss-registration-form__field", children: [
12389
12405
  /* @__PURE__ */ e("label", { className: "gloss-registration-form__label", children: "Confirm Password" }),
12390
12406
  /* @__PURE__ */ e(
12391
- fr,
12407
+ gr,
12392
12408
  {
12393
12409
  showToggle: !0,
12394
12410
  placeholder: "Confirm your password",
@@ -12442,7 +12458,7 @@ const qa = ye.object({
12442
12458
  email: ye.string().email("Please enter a valid email address"),
12443
12459
  subject: ye.string().min(1, "Subject is required"),
12444
12460
  message: ye.string().min(10, "Message must be at least 10 characters")
12445
- }), xp = {
12461
+ }), wp = {
12446
12462
  slug: "contact-form",
12447
12463
  displayName: "Contact Form",
12448
12464
  description: "A contact/support form with name, email, subject, and message fields. Supports optional subject dropdown and Zod validation.",
@@ -12482,7 +12498,7 @@ const qa = ye.object({
12482
12498
  ],
12483
12499
  version: "1.0.0"
12484
12500
  };
12485
- function Np({
12501
+ function kp({
12486
12502
  onSubmit: r,
12487
12503
  onSubmitRaw: t,
12488
12504
  isLoading: a = !1,
@@ -12638,9 +12654,9 @@ function Np({
12638
12654
  ) })
12639
12655
  ] });
12640
12656
  }
12641
- const Vu = ye.object({
12657
+ const Uu = ye.object({
12642
12658
  paymentMethod: ye.enum(["credit_card", "debit_card", "bank_transfer"]),
12643
- card: gr.optional(),
12659
+ card: hr.optional(),
12644
12660
  billingAddress: Kr,
12645
12661
  savePaymentMethod: ye.boolean().optional()
12646
12662
  }).refine(
@@ -12649,7 +12665,7 @@ const Vu = ye.object({
12649
12665
  message: "Card details are required for card payments",
12650
12666
  path: ["card"]
12651
12667
  }
12652
- ), Sp = {
12668
+ ), Dp = {
12653
12669
  slug: "payment-form",
12654
12670
  displayName: "Payment Form",
12655
12671
  description: "A comprehensive payment form orchestrating payment method selection, card fields, and billing address. Composes creditCardSchema and addressSchema with Zod.",
@@ -12689,7 +12705,7 @@ const Vu = ye.object({
12689
12705
  ],
12690
12706
  version: "1.0.0"
12691
12707
  };
12692
- function Cp({
12708
+ function Ip({
12693
12709
  onSubmit: r,
12694
12710
  onSubmitRaw: t,
12695
12711
  isLoading: a = !1,
@@ -12712,7 +12728,7 @@ function Cp({
12712
12728
  s.savePaymentMethod ?? !1
12713
12729
  ), [S, C] = H(), I = ce(null), g = p === "credit_card" || p === "debit_card", P = N((T, A) => {
12714
12730
  try {
12715
- gr.shape[T].parse(A), _((O) => ({ ...O, [T]: void 0 }));
12731
+ hr.shape[T].parse(A), _((O) => ({ ...O, [T]: void 0 }));
12716
12732
  } catch (M) {
12717
12733
  M instanceof ye.ZodError && _((O) => ({ ...O, [T]: M.issues[0]?.message }));
12718
12734
  }
@@ -12748,7 +12764,7 @@ function Cp({
12748
12764
  savePaymentMethod: k
12749
12765
  };
12750
12766
  g && (O.card = f);
12751
- const Y = Vu.safeParse(O);
12767
+ const Y = Uu.safeParse(O);
12752
12768
  if (!Y.success) {
12753
12769
  const j = {};
12754
12770
  Y.error.issues.forEach((B) => {
@@ -12909,7 +12925,7 @@ function Cp({
12909
12925
  ] })
12910
12926
  ] });
12911
12927
  }
12912
- const wp = {
12928
+ const Tp = {
12913
12929
  slug: "destructive-modal",
12914
12930
  displayName: "Destructive Modal",
12915
12931
  description: "A confirmation dialog for dangerous actions like delete operations. Supports optional text confirmation for extra safety.",
@@ -12967,7 +12983,7 @@ const wp = {
12967
12983
  ],
12968
12984
  version: "1.0.0"
12969
12985
  };
12970
- function kp({
12986
+ function Ep({
12971
12987
  isOpen: r,
12972
12988
  onClose: t,
12973
12989
  onConfirm: a,
@@ -13036,7 +13052,7 @@ function kp({
13036
13052
  ] })
13037
13053
  ] });
13038
13054
  }
13039
- function ju(r) {
13055
+ function Xu(r) {
13040
13056
  const {
13041
13057
  onSearch: t,
13042
13058
  filters: a = [],
@@ -13094,8 +13110,8 @@ function ju(r) {
13094
13110
  )
13095
13111
  ] });
13096
13112
  }
13097
- ju.displayName = "EntitySearchPanel";
13098
- function Ku(r) {
13113
+ Xu.displayName = "EntitySearchPanel";
13114
+ function qu(r) {
13099
13115
  const {
13100
13116
  name: t,
13101
13117
  subtitle: a,
@@ -13125,8 +13141,8 @@ function Ku(r) {
13125
13141
  ] }, p)) })
13126
13142
  ] }) });
13127
13143
  }
13128
- Ku.displayName = "ProfileCard";
13129
- function Yu(r) {
13144
+ qu.displayName = "ProfileCard";
13145
+ function Zu(r) {
13130
13146
  const {
13131
13147
  value: t,
13132
13148
  onChange: a,
@@ -13185,8 +13201,8 @@ function Yu(r) {
13185
13201
  o && /* @__PURE__ */ e("div", { className: "gloss-order-filter-bar__reset", children: /* @__PURE__ */ e(Ie, { variant: "ghost", size: "sm", onClick: o, children: "Reset" }) })
13186
13202
  ] });
13187
13203
  }
13188
- Yu.displayName = "OrderFilterBar";
13189
- const Uu = {
13204
+ Zu.displayName = "OrderFilterBar";
13205
+ const Ju = {
13190
13206
  default: {
13191
13207
  fillBg: R.BrandPrimary,
13192
13208
  trackBg: R.Gray200,
@@ -13223,7 +13239,7 @@ function Gn(r) {
13223
13239
  ...c
13224
13240
  } = r, l = { ...c };
13225
13241
  delete l.className, delete l.style, delete l.definition;
13226
- const u = Uu[t], p = Math.round(a / (n || 100) * 100), m = [
13242
+ const u = Ju[t], p = Math.round(a / (n || 100) * 100), m = [
13227
13243
  "gloss-preset-progress-bar",
13228
13244
  `gloss-preset-progress-bar--${t}`,
13229
13245
  o !== "none" && `gloss-preset-progress-bar--label-${o}`
@@ -13255,12 +13271,12 @@ function Gn(r) {
13255
13271
  ] });
13256
13272
  }
13257
13273
  Gn.displayName = "PresetProgressBar";
13258
- const Xu = [
13274
+ const Qu = [
13259
13275
  { key: "upload", label: "Upload" },
13260
13276
  { key: "preview", label: "Preview" },
13261
13277
  { key: "confirm", label: "Confirm" }
13262
13278
  ];
13263
- function qu(r) {
13279
+ function em(r) {
13264
13280
  const {
13265
13281
  acceptedTypes: t,
13266
13282
  onFileParsed: a,
@@ -13289,7 +13305,7 @@ function qu(r) {
13289
13305
  /* @__PURE__ */ e(
13290
13306
  Hn,
13291
13307
  {
13292
- steps: Xu,
13308
+ steps: Qu,
13293
13309
  activeStep: u,
13294
13310
  onStepChange: p,
13295
13311
  onStepValidate: k,
@@ -13336,8 +13352,8 @@ function qu(r) {
13336
13352
  _ && /* @__PURE__ */ e("p", { className: "gloss-import-wizard__error", children: _ })
13337
13353
  ] });
13338
13354
  }
13339
- qu.displayName = "ImportWizard";
13340
- const Zu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: a, density: n = "default", children: s, ...i }, o) => {
13355
+ em.displayName = "ImportWizard";
13356
+ const tm = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: a, density: n = "default", children: s, ...i }, o) => {
13341
13357
  const c = { ...i };
13342
13358
  return delete c.className, delete c.style, /* @__PURE__ */ d(
13343
13359
  "div",
@@ -13363,25 +13379,25 @@ const Zu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: a, density: n
13363
13379
  ]
13364
13380
  }
13365
13381
  ),
13366
- !t && /* @__PURE__ */ e(vt, { region: "panel", density: n, children: /* @__PURE__ */ e("div", { className: "gloss-container-panel__content", children: s }) })
13382
+ !t && /* @__PURE__ */ e(_t, { region: "panel", density: n, children: /* @__PURE__ */ e("div", { className: "gloss-container-panel__content", children: s }) })
13367
13383
  ]
13368
13384
  }
13369
13385
  );
13370
13386
  });
13371
- Zu.displayName = "ContainerPanel";
13387
+ tm.displayName = "ContainerPanel";
13372
13388
  function qt(...r) {
13373
13389
  return (t) => {
13374
13390
  for (const a of r)
13375
13391
  typeof a == "function" ? a(t) : a && typeof a == "object" && (a.current = t);
13376
13392
  };
13377
13393
  }
13378
- function hr(r, t) {
13394
+ function br(r, t) {
13379
13395
  if (!(!r && !t))
13380
13396
  return r ? t ? (a) => {
13381
13397
  r(a), t(a);
13382
13398
  } : r : t ?? void 0;
13383
13399
  }
13384
- const Ju = q.forwardRef(
13400
+ const rm = q.forwardRef(
13385
13401
  ({ onAction: r, disabled: t = !1, role: a = "button", children: n }, s) => {
13386
13402
  const i = q.Children.only(n), o = (u) => {
13387
13403
  t || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), r?.(u));
@@ -13389,8 +13405,8 @@ const Ju = q.forwardRef(
13389
13405
  t || r?.(u);
13390
13406
  }, l = i.props;
13391
13407
  return q.cloneElement(i, {
13392
- onClick: hr(l.onClick, c),
13393
- onKeyDown: hr(l.onKeyDown, o),
13408
+ onClick: br(l.onClick, c),
13409
+ onKeyDown: br(l.onKeyDown, o),
13394
13410
  tabIndex: l.tabIndex ?? (t ? -1 : 0),
13395
13411
  role: l.role ?? a,
13396
13412
  "aria-disabled": t || void 0,
@@ -13398,16 +13414,16 @@ const Ju = q.forwardRef(
13398
13414
  });
13399
13415
  }
13400
13416
  );
13401
- Ju.displayName = "Actionable";
13402
- const Qu = q.forwardRef(
13417
+ rm.displayName = "Actionable";
13418
+ const am = q.forwardRef(
13403
13419
  ({ selected: r = !1, onSelect: t, disabled: a = !1, showCheckbox: n = !1, children: s }, i) => {
13404
13420
  const o = q.Children.only(s), c = N((m) => {
13405
13421
  a || t?.(!r, m);
13406
13422
  }, [a, t, r]), l = N((m) => {
13407
13423
  a || (m.key === "Enter" || m.key === " ") && (m.preventDefault(), t?.(!r, m));
13408
13424
  }, [a, t, r]), u = o.props, p = q.cloneElement(o, {
13409
- onClick: hr(u.onClick, c),
13410
- onKeyDown: hr(u.onKeyDown, l),
13425
+ onClick: br(u.onClick, c),
13426
+ onKeyDown: br(u.onKeyDown, l),
13411
13427
  tabIndex: u.tabIndex ?? (a ? -1 : 0),
13412
13428
  role: u.role ?? "option",
13413
13429
  "aria-selected": r,
@@ -13439,8 +13455,8 @@ const Qu = q.forwardRef(
13439
13455
  ] }) : p;
13440
13456
  }
13441
13457
  );
13442
- Qu.displayName = "Selectable";
13443
- const em = q.forwardRef(
13458
+ am.displayName = "Selectable";
13459
+ const nm = q.forwardRef(
13444
13460
  ({ onDismiss: r, dismissOnEscape: t = !0, dismissOnClickOutside: a = !0, showCloseButton: n = !1, disabled: s = !1, children: i }, o) => {
13445
13461
  const c = q.Children.only(i), l = ce(null);
13446
13462
  se(() => {
@@ -13495,14 +13511,14 @@ const em = q.forwardRef(
13495
13511
  ] }) : p;
13496
13512
  }
13497
13513
  );
13498
- em.displayName = "Dismissible";
13514
+ nm.displayName = "Dismissible";
13499
13515
  let na = null, Vn = null;
13500
13516
  try {
13501
13517
  const r = require("@dnd-kit/sortable");
13502
13518
  na = r.useSortable || r.default && r.default.useSortable, Vn = (r.CSS || r.default && r.default.CSS)?.Transform?.toString ?? null;
13503
13519
  } catch {
13504
13520
  }
13505
- const tm = q.forwardRef(
13521
+ const sm = q.forwardRef(
13506
13522
  ({ id: r, disabled: t = !1, children: a }, n) => {
13507
13523
  const s = q.Children.only(a);
13508
13524
  return na ? /* @__PURE__ */ e(jn, { id: r, disabled: t, outerRef: n, children: s }) : q.cloneElement(s, {
@@ -13510,7 +13526,7 @@ const tm = q.forwardRef(
13510
13526
  });
13511
13527
  }
13512
13528
  );
13513
- tm.displayName = "Sortable";
13529
+ sm.displayName = "Sortable";
13514
13530
  function jn({ id: r, disabled: t, outerRef: a, children: n }) {
13515
13531
  const {
13516
13532
  attributes: s,
@@ -13543,7 +13559,7 @@ try {
13543
13559
  Yr = r.motion?.div ?? null, Ur = r.AnimatePresence ?? null;
13544
13560
  } catch {
13545
13561
  }
13546
- const rm = q.forwardRef(
13562
+ const om = q.forwardRef(
13547
13563
  ({ expanded: r, trigger: t, onToggle: a, duration: n = 0.2, children: s }, i) => {
13548
13564
  const o = () => {
13549
13565
  a?.();
@@ -13567,7 +13583,7 @@ const rm = q.forwardRef(
13567
13583
  ] });
13568
13584
  }
13569
13585
  );
13570
- rm.displayName = "Expandable";
13586
+ om.displayName = "Expandable";
13571
13587
  export {
13572
13588
  xn as $,
13573
13589
  vn as A,
@@ -13598,108 +13614,108 @@ export {
13598
13614
  Cc as Z,
13599
13615
  wc as _,
13600
13616
  Ti as a,
13601
- ap as a$,
13617
+ ip as a$,
13602
13618
  kc as a0,
13603
13619
  Dc as a1,
13604
13620
  Tc as a2,
13605
13621
  Ic as a3,
13606
13622
  Ec as a4,
13607
13623
  Tn as a5,
13608
- sp as a6,
13609
- op as a7,
13624
+ cp as a6,
13625
+ dp as a7,
13610
13626
  sd as a8,
13611
- su as a9,
13627
+ cu as a9,
13612
13628
  Ua as aA,
13613
13629
  Wn as aB,
13614
- hp as aC,
13630
+ _p as aC,
13615
13631
  Kr as aD,
13616
- yp as aE,
13617
- bp as aF,
13618
- gr as aG,
13619
- kp as aH,
13620
- wp as aI,
13621
- _p as aJ,
13622
- vp as aK,
13632
+ Np as aE,
13633
+ xp as aF,
13634
+ hr as aG,
13635
+ Ep as aH,
13636
+ Tp as aI,
13637
+ Cp as aJ,
13638
+ Sp as aK,
13623
13639
  Xa as aL,
13624
- Cp as aM,
13625
- Sp as aN,
13626
- Vu as aO,
13627
- Np as aP,
13628
- xp as aQ,
13640
+ Ip as aM,
13641
+ Dp as aN,
13642
+ Uu as aO,
13643
+ kp as aP,
13644
+ wp as aQ,
13629
13645
  qa as aR,
13630
- ju as aS,
13631
- Ku as aT,
13632
- Yu as aU,
13633
- qu as aV,
13646
+ Xu as aS,
13647
+ qu as aT,
13648
+ Zu as aU,
13649
+ em as aV,
13634
13650
  fn as aW,
13635
13651
  Qe as aX,
13636
13652
  et as aY,
13637
- Er as aZ,
13638
- rp as a_,
13639
- ou as aa,
13640
- iu as ab,
13641
- lu as ac,
13642
- cu as ad,
13643
- du as ae,
13644
- uu as af,
13645
- mu as ag,
13646
- pu as ah,
13653
+ Mr as aZ,
13654
+ op as a_,
13655
+ du as aa,
13656
+ uu as ab,
13657
+ mu as ac,
13658
+ pu as ad,
13659
+ fu as ae,
13660
+ gu as af,
13661
+ hu as ag,
13662
+ bu as ah,
13647
13663
  zn as ai,
13648
- gu as aj,
13664
+ vu as aj,
13649
13665
  $n as ak,
13650
- fr as al,
13651
- vu as am,
13652
- Nu as an,
13666
+ gr as al,
13667
+ Su as am,
13668
+ ku as an,
13653
13669
  Fn as ao,
13654
13670
  On as ap,
13655
13671
  Ln as aq,
13656
- Pu as ar,
13672
+ zu as ar,
13657
13673
  Qr as as,
13658
- $u as at,
13659
- Lu as au,
13674
+ Hu as at,
13675
+ Vu as au,
13660
13676
  Xd as av,
13661
- Bu as aw,
13677
+ Fu as aw,
13662
13678
  Hn as ax,
13663
- gp as ay,
13664
- fp as az,
13679
+ vp as ay,
13680
+ yp as az,
13665
13681
  lt as b,
13666
- np as b0,
13682
+ lp as b0,
13667
13683
  ea as b1,
13668
13684
  ta as b2,
13669
13685
  ra as b3,
13670
13686
  aa as b4,
13671
- Zu as b5,
13687
+ tm as b5,
13672
13688
  qt as b6,
13673
- hr as b7,
13674
- Ju as b8,
13675
- Qu as b9,
13689
+ br as b7,
13690
+ rm as b8,
13691
+ am as b9,
13676
13692
  Rn as bA,
13677
13693
  Vr as bB,
13678
13694
  Gr as bC,
13679
13695
  Ad as bD,
13680
13696
  Wd as bE,
13681
13697
  Fd as bF,
13682
- pp as bG,
13683
- dp as bH,
13684
- up as bI,
13685
- mp as bJ,
13698
+ bp as bG,
13699
+ fp as bH,
13700
+ gp as bI,
13701
+ hp as bJ,
13686
13702
  Yd as bK,
13687
13703
  Ud as bL,
13688
13704
  Bn as bM,
13689
13705
  jr as bN,
13690
13706
  Lt as bO,
13691
13707
  An as bP,
13692
- au as bQ,
13693
- nu as bR,
13694
- ip as bS,
13708
+ iu as bQ,
13709
+ lu as bR,
13710
+ up as bS,
13695
13711
  ld as bT,
13696
13712
  Ht as bU,
13697
13713
  Jr as bV,
13698
13714
  Gn as bW,
13699
13715
  Zr as bX,
13700
- em as ba,
13701
- tm as bb,
13702
- rm as bc,
13716
+ nm as ba,
13717
+ sm as bb,
13718
+ om as bc,
13703
13719
  ur as bd,
13704
13720
  Mc as be,
13705
13721
  Pc as bf,
@@ -13710,14 +13726,14 @@ export {
13710
13726
  Or as bk,
13711
13727
  md as bl,
13712
13728
  In as bm,
13713
- br as bn,
13729
+ yr as bn,
13714
13730
  Cn as bo,
13715
13731
  wn as bp,
13716
13732
  kn as bq,
13717
13733
  zc as br,
13718
13734
  gd as bs,
13719
- lp as bt,
13720
- cp as bu,
13735
+ mp as bt,
13736
+ pp as bu,
13721
13737
  hd as bv,
13722
13738
  bd as bw,
13723
13739
  Dd as bx,
@@ -13725,7 +13741,7 @@ export {
13725
13741
  Pn as bz,
13726
13742
  Bi as c,
13727
13743
  Ri as d,
13728
- pr as e,
13744
+ fr as e,
13729
13745
  Hi as f,
13730
13746
  Oi as g,
13731
13747
  Vi as h,