@mt-gloss/ui 0.0.38 → 0.0.40
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.
- package/{Expandable-B_YJ6Yio.js → Expandable-DRKNRSlL.js} +839 -826
- package/catalog.js +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
- package/ui.css +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
52
|
-
import
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
112
|
-
...
|
|
113
|
-
...
|
|
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
|
|
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(
|
|
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
|
|
170
|
+
const Io = {
|
|
171
171
|
default: { trackBorder: B.BorderDefault },
|
|
172
172
|
error: { trackBorder: B.BorderError }
|
|
173
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
206
|
-
...
|
|
207
|
-
...
|
|
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
|
|
242
|
+
function Mo() {
|
|
243
243
|
return Ut(ca);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
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
|
-
|
|
306
|
-
const
|
|
305
|
+
Po.displayName = "CheckboxGroup";
|
|
306
|
+
const Bo = q.forwardRef(
|
|
307
307
|
({ value: r, ...t }, n) => {
|
|
308
|
-
const a =
|
|
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
|
-
|
|
326
|
-
const
|
|
325
|
+
Bo.displayName = "GroupCheckbox";
|
|
326
|
+
const Ro = {
|
|
327
327
|
default: { trackBorder: B.BorderDefault },
|
|
328
328
|
error: { trackBorder: B.BorderError }
|
|
329
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
355
|
-
...
|
|
356
|
-
...
|
|
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
|
|
392
|
+
function $o() {
|
|
393
393
|
return Ut(da);
|
|
394
394
|
}
|
|
395
|
-
function
|
|
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
|
-
|
|
455
|
-
const
|
|
454
|
+
Fo.displayName = "RadioGroup";
|
|
455
|
+
const Oo = q.forwardRef(
|
|
456
456
|
({ value: r, ...t }, n) => {
|
|
457
|
-
const a =
|
|
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
|
-
|
|
475
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
507
|
+
trackBgActive: Lo[n],
|
|
508
508
|
thumbBg: B.White,
|
|
509
|
-
...
|
|
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
|
-
|
|
534
|
-
const
|
|
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
|
-
},
|
|
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
|
-
...
|
|
563
|
-
...
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
630
|
-
...
|
|
631
|
-
...
|
|
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
|
|
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
|
-
},
|
|
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
|
|
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
|
-
...
|
|
665
|
-
...
|
|
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
|
-
|
|
683
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
|
|
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 = { ...
|
|
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
|
-
|
|
782
|
-
const
|
|
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 =
|
|
799
|
+
} = r, c = ie(null), l = ie(null), u = S(() => {
|
|
800
800
|
if (!c.current) return [];
|
|
801
|
-
const y = c.current.querySelectorAll(
|
|
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
|
|
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]),
|
|
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]),
|
|
858
|
+
}, [t, p, f]), oe(() => () => {
|
|
859
859
|
a && l.current && l.current.focus?.();
|
|
860
860
|
}, [a]), c;
|
|
861
861
|
}
|
|
862
|
-
const
|
|
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,
|
|
866
|
-
const l = [], u = /* @__PURE__ */ new Date(), m = Dn(r, t), f = (
|
|
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
|
-
},
|
|
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
|
-
},
|
|
887
|
+
}, ol = {
|
|
888
888
|
default: B.BorderDefault,
|
|
889
889
|
error: B.BorderError,
|
|
890
890
|
success: B.BorderSuccess
|
|
891
|
-
},
|
|
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 =
|
|
914
|
-
|
|
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(() =>
|
|
918
|
-
const X = [...
|
|
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
|
-
|
|
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 ?
|
|
939
|
+
const G = z ? al(z, p) : "", $ = {
|
|
940
940
|
bg: B.BgSurface,
|
|
941
|
-
borderColor:
|
|
941
|
+
borderColor: ol[n],
|
|
942
942
|
radius: Se.Md,
|
|
943
943
|
elevation: Xe.Card,
|
|
944
|
-
...
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1019
|
+
}, ul = {
|
|
1020
1020
|
default: B.BorderDefault,
|
|
1021
1021
|
error: B.BorderError,
|
|
1022
1022
|
success: B.BorderSuccess
|
|
1023
|
-
},
|
|
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 =
|
|
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
|
-
|
|
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:
|
|
1057
|
+
borderColor: ul[n],
|
|
1058
1058
|
radius: Se.Md,
|
|
1059
1059
|
elevation: Xe.Card,
|
|
1060
|
-
...
|
|
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
|
-
|
|
1082
|
-
const
|
|
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 = (
|
|
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
|
-
},
|
|
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 =
|
|
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 = [...
|
|
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
|
-
|
|
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
|
-
...
|
|
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
|
-
|
|
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((
|
|
1188
|
-
/* @__PURE__ */ e(Zn, { children: be.map((
|
|
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
|
|
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
|
-
},
|
|
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 =
|
|
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:
|
|
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
|
-
...
|
|
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
|
|
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("")}`,
|
|
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 } =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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
|
-
...
|
|
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
|
-
|
|
1448
|
-
const
|
|
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
|
-
},
|
|
1454
|
+
}, Cl = {
|
|
1455
1455
|
activeColor: "#f59e0b",
|
|
1456
1456
|
inactiveColor: B.Gray300,
|
|
1457
1457
|
hoverColor: "#fbbf24"
|
|
1458
|
-
},
|
|
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
|
-
...
|
|
1464
|
-
...
|
|
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
|
-
|
|
1484
|
-
function
|
|
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
|
|
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 =
|
|
1499
|
-
|
|
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:
|
|
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
|
-
|
|
1550
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
1562
|
+
}, El = {
|
|
1563
1563
|
radius: Se.Sm,
|
|
1564
1564
|
arrowSize: "6px"
|
|
1565
1565
|
};
|
|
1566
|
-
function
|
|
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
|
-
...
|
|
1579
|
-
...
|
|
1580
|
-
...
|
|
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
|
-
|
|
1592
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
1627
|
-
...
|
|
1628
|
-
...
|
|
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
|
|
1674
|
+
const zl = {
|
|
1675
1675
|
default: { borderColor: B.BorderDefault },
|
|
1676
1676
|
error: { borderColor: B.BorderError },
|
|
1677
1677
|
success: { borderColor: B.BorderSuccess }
|
|
1678
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
1710
|
-
...
|
|
1711
|
-
...
|
|
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 =
|
|
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
|
|
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
|
-
},
|
|
1751
|
+
}, Ol = {
|
|
1752
1752
|
default: B.BorderDefault,
|
|
1753
1753
|
error: B.BorderError,
|
|
1754
1754
|
success: B.BorderSuccess
|
|
1755
|
-
},
|
|
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:
|
|
1790
|
+
borderColor: Ol[n],
|
|
1791
1791
|
radius: Se.Md,
|
|
1792
1792
|
buttonBg: B.BgMuted,
|
|
1793
|
-
|
|
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
|
-
|
|
1828
|
-
const
|
|
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
|
-
|
|
1838
|
-
const
|
|
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
|
-
|
|
1848
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
|
|
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]),
|
|
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:
|
|
1914
|
+
borderColor: jl[n],
|
|
1915
1915
|
radius: Se.Md,
|
|
1916
1916
|
placeholderColor: B.TextTertiary,
|
|
1917
|
-
...
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
1978
|
-
...
|
|
1979
|
-
...
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
2019
|
-
...
|
|
2020
|
-
...
|
|
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(
|
|
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
|
|
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
|
-
|
|
2039
|
-
const
|
|
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
|
-
|
|
2046
|
-
const
|
|
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
|
-
|
|
2053
|
-
const
|
|
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
|
-
|
|
2060
|
-
const
|
|
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
|
-
|
|
2067
|
-
const
|
|
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
|
-
|
|
2074
|
-
const
|
|
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
|
-
|
|
2081
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
...
|
|
2107
|
-
...
|
|
2108
|
-
...a ?
|
|
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
|
|
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
|
-
},
|
|
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
|
-
...
|
|
2177
|
-
...
|
|
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
|
|
2232
|
+
const uc = {
|
|
2233
2233
|
borderColor: B.BorderDefault,
|
|
2234
2234
|
radius: Se.None
|
|
2235
|
-
},
|
|
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:
|
|
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
|
-
|
|
2242
|
-
const
|
|
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
|
-
|
|
2249
|
-
const
|
|
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
|
-
|
|
2256
|
-
const
|
|
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
|
-
|
|
2263
|
-
const
|
|
2262
|
+
gc.displayName = "PresetAccordionContent";
|
|
2263
|
+
const hc = {
|
|
2264
2264
|
sm: { padding: J.Xs, minWidth: "140px" },
|
|
2265
2265
|
md: { padding: J.Sm, minWidth: "180px" }
|
|
2266
|
-
},
|
|
2266
|
+
}, bc = {
|
|
2267
2267
|
bg: B.BgSurface,
|
|
2268
2268
|
borderColor: B.BorderDefault,
|
|
2269
2269
|
radius: Se.Md,
|
|
2270
2270
|
elevation: Xe.Card
|
|
2271
|
-
},
|
|
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
|
-
...
|
|
2277
|
-
...
|
|
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
|
-
|
|
2286
|
-
function
|
|
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
|
-
|
|
2315
|
-
const
|
|
2314
|
+
vc.displayName = "PresetMenuGroup";
|
|
2315
|
+
const _c = {
|
|
2316
2316
|
padding: J.Sm,
|
|
2317
2317
|
hoverBg: B.BgHover
|
|
2318
|
-
},
|
|
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:
|
|
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
|
-
|
|
2340
|
-
function
|
|
2339
|
+
xc.displayName = "PresetMenuItem";
|
|
2340
|
+
function Nc() {
|
|
2341
2341
|
return /* @__PURE__ */ e(ei, { className: "gloss-preset-menu__divider" });
|
|
2342
2342
|
}
|
|
2343
|
-
|
|
2344
|
-
function
|
|
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 =
|
|
2348
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
2528
|
+
function qm(r, t, n) {
|
|
2529
2529
|
return r + (t - r) * n;
|
|
2530
2530
|
}
|
|
2531
|
-
function
|
|
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
|
|
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 =
|
|
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 (
|
|
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
|
-
|
|
2582
|
-
function
|
|
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
|
-
|
|
2585
|
+
wc.displayName = "TransitionGroup";
|
|
2586
2586
|
const _a = Yt(null);
|
|
2587
|
-
function
|
|
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
|
|
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
|
-
|
|
2664
|
-
function
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
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
|
-
|
|
2772
|
+
oe(() => {
|
|
2773
2773
|
const h = requestAnimationFrame(() => f(_(t)));
|
|
2774
2774
|
return () => cancelAnimationFrame(h);
|
|
2775
|
-
}, [t]),
|
|
2775
|
+
}, [t]), oe(() => {
|
|
2776
2776
|
u && b(_(u));
|
|
2777
|
-
}, [u]),
|
|
2777
|
+
}, [u]), oe(() => {
|
|
2778
2778
|
s && (s.current = c.current);
|
|
2779
|
-
}),
|
|
2779
|
+
}), oe(() => {
|
|
2780
2780
|
o && (o.current = l.current);
|
|
2781
|
-
}),
|
|
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
|
|
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
|
-
|
|
2938
|
-
const Bn = [60, 80, 45, 90, 65, 75, 55, 85, 70, 50],
|
|
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
|
-
|
|
2971
|
-
const
|
|
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
|
-
|
|
3031
|
-
const
|
|
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
|
-
|
|
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
|
|
3400
|
+
const Bc = { slot3: 200, slot5: 380 };
|
|
3401
3401
|
function wa(r, t) {
|
|
3402
|
-
const n =
|
|
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
|
-
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
),
|
|
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 ?
|
|
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(
|
|
3718
|
-
m === "critical" && /* @__PURE__ */ e("span", { className: "gloss-threshold-icon gloss-threshold-icon--critical", children: /* @__PURE__ */ e(
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
3908
|
+
function Oc(r, t, n) {
|
|
3909
3909
|
const a = Le(), s = t ?? a, o = ss(
|
|
3910
|
-
|
|
3910
|
+
Fc,
|
|
3911
3911
|
Tr,
|
|
3912
3912
|
// SSR fallback — no menu active on server render.
|
|
3913
3913
|
() => null
|
|
3914
|
-
), i =
|
|
3915
|
-
return
|
|
3914
|
+
), i = ie(n);
|
|
3915
|
+
return oe(() => {
|
|
3916
3916
|
i.current = n;
|
|
3917
|
-
}, [n]),
|
|
3917
|
+
}, [n]), oe(() => {
|
|
3918
3918
|
r && o !== null && o !== s && i.current(!1);
|
|
3919
|
-
}, [o, s, r]),
|
|
3919
|
+
}, [o, s, r]), oe(() => {
|
|
3920
3920
|
r ? Er(s) : Tr() === s && Er(null);
|
|
3921
|
-
}, [r, s]),
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
4024
|
+
function Vc(r) {
|
|
4025
4025
|
return r === "down" ? "top center" : "bottom center";
|
|
4026
4026
|
}
|
|
4027
|
-
function
|
|
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
|
|
4035
|
-
function
|
|
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
|
|
4039
|
-
const a = !!r.isActive, s = r.activeColor ??
|
|
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
|
-
|
|
4074
|
+
oe(() => {
|
|
4075
4075
|
if (i) {
|
|
4076
4076
|
v("collapsed");
|
|
4077
4077
|
return;
|
|
4078
4078
|
}
|
|
4079
|
-
const
|
|
4080
|
-
return () => clearTimeout(
|
|
4079
|
+
const ne = setTimeout(() => v("normal"), 200);
|
|
4080
|
+
return () => clearTimeout(ne);
|
|
4081
4081
|
}, [i]);
|
|
4082
|
-
const { style: h, handleTransitionEnd: C } =
|
|
4082
|
+
const { style: h, handleTransitionEnd: C } = $c(a, {
|
|
4083
4083
|
slideDirection: "down",
|
|
4084
4084
|
zBehind: 1,
|
|
4085
4085
|
zFront: 16
|
|
4086
|
-
}), { menuId: T } =
|
|
4086
|
+
}), { menuId: T } = Oc(
|
|
4087
4087
|
s,
|
|
4088
4088
|
m,
|
|
4089
4089
|
o
|
|
4090
|
-
), k = Zi() === !0, I = ee(() =>
|
|
4091
|
-
() =>
|
|
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((
|
|
4100
|
-
const
|
|
4101
|
-
return N.filter((xe) => !
|
|
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
|
-
() =>
|
|
4103
|
+
() => jc(N, R),
|
|
4104
4104
|
[N, R]
|
|
4105
4105
|
), H = b && s, [Y, V] = O(!1);
|
|
4106
|
-
|
|
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: (
|
|
4112
|
-
|
|
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,7 +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
|
-
|
|
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
|
+
],
|
|
4124
4137
|
whileElementsMounted: ho
|
|
4125
4138
|
}), K = sa($, {
|
|
4126
4139
|
outsidePress: !0,
|
|
@@ -4140,39 +4153,39 @@ const Da = (r) => {
|
|
|
4140
4153
|
...h,
|
|
4141
4154
|
transform: `translateX(-50%) ${h.transform}`,
|
|
4142
4155
|
transition: be ? [h.transition, `left ${Ke.ANCHOR_X_MS}ms ease-out`].filter(Boolean).join(", ") : h.transition
|
|
4143
|
-
},
|
|
4144
|
-
|
|
4145
|
-
|
|
4156
|
+
}, ae = ie(null);
|
|
4157
|
+
oe(() => () => {
|
|
4158
|
+
ae.current !== null && (clearTimeout(ae.current), ae.current = null);
|
|
4146
4159
|
}, []);
|
|
4147
4160
|
const ge = S(
|
|
4148
|
-
(
|
|
4161
|
+
(ne) => {
|
|
4149
4162
|
if (!H || Y) return;
|
|
4150
|
-
const xe =
|
|
4151
|
-
He && typeof He.closest == "function" && He.closest("[data-action-strip]") || (
|
|
4152
|
-
|
|
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);
|
|
4153
4166
|
}, Ke.GRACE_CLOSE_MS));
|
|
4154
4167
|
},
|
|
4155
4168
|
[H, Y, o]
|
|
4156
4169
|
), Me = S(() => {
|
|
4157
|
-
|
|
4170
|
+
ae.current !== null && (clearTimeout(ae.current), ae.current = null);
|
|
4158
4171
|
}, []), Ce = S(() => {
|
|
4159
|
-
const
|
|
4160
|
-
V(!!
|
|
4172
|
+
const ne = !s;
|
|
4173
|
+
V(!!ne), o(ne);
|
|
4161
4174
|
}, [s, o]), [we, Ye] = O(
|
|
4162
4175
|
{}
|
|
4163
|
-
), Te =
|
|
4176
|
+
), Te = ie(
|
|
4164
4177
|
{}
|
|
4165
4178
|
);
|
|
4166
|
-
|
|
4167
|
-
for (const
|
|
4168
|
-
for (const xe of
|
|
4179
|
+
oe(() => () => {
|
|
4180
|
+
for (const ne of Object.values(Te.current))
|
|
4181
|
+
for (const xe of ne) clearTimeout(xe);
|
|
4169
4182
|
Te.current = {};
|
|
4170
4183
|
}, []);
|
|
4171
|
-
const me = S((
|
|
4172
|
-
const xe =
|
|
4184
|
+
const me = S((ne) => {
|
|
4185
|
+
const xe = ne.id;
|
|
4173
4186
|
Te.current[xe] || (Te.current[xe] = []), Ye((He) => ({ ...He, [xe]: "pressed" }));
|
|
4174
4187
|
const Fe = setTimeout(() => {
|
|
4175
|
-
|
|
4188
|
+
ne.onClick(), Ye((ke) => ({ ...ke, [xe]: "check" }));
|
|
4176
4189
|
const He = setTimeout(() => {
|
|
4177
4190
|
Ye((ke) => {
|
|
4178
4191
|
const Be = { ...ke };
|
|
@@ -4183,12 +4196,12 @@ const Da = (r) => {
|
|
|
4183
4196
|
}, Ke.FEEDBACK_PRESS_MS);
|
|
4184
4197
|
Te.current[xe]?.push(Fe);
|
|
4185
4198
|
}, []), _e = S(
|
|
4186
|
-
(
|
|
4187
|
-
if (!
|
|
4188
|
-
|
|
4199
|
+
(ne) => {
|
|
4200
|
+
if (!ne.showFeedback) {
|
|
4201
|
+
ne.onClick();
|
|
4189
4202
|
return;
|
|
4190
4203
|
}
|
|
4191
|
-
me(
|
|
4204
|
+
me(ne);
|
|
4192
4205
|
},
|
|
4193
4206
|
[me]
|
|
4194
4207
|
), [Ve, Ne] = O(null);
|
|
@@ -4259,7 +4272,7 @@ const Da = (r) => {
|
|
|
4259
4272
|
},
|
|
4260
4273
|
title: "Done",
|
|
4261
4274
|
onClick: c,
|
|
4262
|
-
children: /* @__PURE__ */ e(
|
|
4275
|
+
children: /* @__PURE__ */ e(So, { style: { fontSize: 16 } })
|
|
4263
4276
|
}
|
|
4264
4277
|
) : null,
|
|
4265
4278
|
/* @__PURE__ */ d(
|
|
@@ -4269,25 +4282,25 @@ const Da = (r) => {
|
|
|
4269
4282
|
"data-pill-mode": _,
|
|
4270
4283
|
style: ce,
|
|
4271
4284
|
children: [
|
|
4272
|
-
D.map((
|
|
4273
|
-
const xe = we[
|
|
4285
|
+
D.map((ne) => {
|
|
4286
|
+
const xe = we[ne.id] ?? "none", Fe = Ve === ne.id, He = ne.isActive && ne.activeIcon || xe === "check";
|
|
4274
4287
|
return /* @__PURE__ */ e(
|
|
4275
4288
|
"button",
|
|
4276
4289
|
{
|
|
4277
4290
|
type: "button",
|
|
4278
4291
|
className: "gloss-action-strip__icon-slot",
|
|
4279
|
-
"data-action-id":
|
|
4292
|
+
"data-action-id": ne.id,
|
|
4280
4293
|
"data-action-kind": "primary",
|
|
4281
4294
|
"data-feedback-state": xe,
|
|
4282
|
-
"data-active":
|
|
4283
|
-
title:
|
|
4284
|
-
onClick: () => _e(
|
|
4285
|
-
onMouseEnter: () => Ne(
|
|
4286
|
-
onMouseLeave: () => Ne((ke) => ke ===
|
|
4287
|
-
style:
|
|
4288
|
-
children: He ? xe === "check" ?
|
|
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
|
|
4289
4302
|
},
|
|
4290
|
-
|
|
4303
|
+
ne.id
|
|
4291
4304
|
);
|
|
4292
4305
|
}),
|
|
4293
4306
|
/* @__PURE__ */ e(
|
|
@@ -4299,20 +4312,20 @@ const Da = (r) => {
|
|
|
4299
4312
|
variants: x,
|
|
4300
4313
|
animate: H ? "expanded" : "collapsed",
|
|
4301
4314
|
initial: "collapsed",
|
|
4302
|
-
children: /* @__PURE__ */ e(Rr, { mode: "popLayout", initial: !1, children: H ? z.map((
|
|
4315
|
+
children: /* @__PURE__ */ e(Rr, { mode: "popLayout", initial: !1, children: H ? z.map((ne) => /* @__PURE__ */ e(
|
|
4303
4316
|
Ct.span,
|
|
4304
4317
|
{
|
|
4305
4318
|
className: "gloss-action-strip__icon-slot",
|
|
4306
|
-
"data-action-id":
|
|
4319
|
+
"data-action-id": ne.id,
|
|
4307
4320
|
"data-action-kind": "promoted",
|
|
4308
|
-
title:
|
|
4321
|
+
title: ne.label,
|
|
4309
4322
|
variants: E,
|
|
4310
4323
|
initial: "initial",
|
|
4311
4324
|
animate: "animate",
|
|
4312
4325
|
exit: "exit",
|
|
4313
|
-
children:
|
|
4326
|
+
children: ne.icon ?? null
|
|
4314
4327
|
},
|
|
4315
|
-
|
|
4328
|
+
ne.id
|
|
4316
4329
|
)) : null })
|
|
4317
4330
|
}
|
|
4318
4331
|
),
|
|
@@ -4366,25 +4379,25 @@ const Da = (r) => {
|
|
|
4366
4379
|
animate: "animate",
|
|
4367
4380
|
exit: "exit",
|
|
4368
4381
|
style: {
|
|
4369
|
-
transformOrigin:
|
|
4382
|
+
transformOrigin: Vc(te)
|
|
4370
4383
|
},
|
|
4371
|
-
children: L.map((
|
|
4384
|
+
children: L.map((ne) => /* @__PURE__ */ d(
|
|
4372
4385
|
"button",
|
|
4373
4386
|
{
|
|
4374
4387
|
type: "button",
|
|
4375
4388
|
className: "gloss-action-strip__menu-item",
|
|
4376
|
-
"data-action-id":
|
|
4377
|
-
"data-action-kind":
|
|
4389
|
+
"data-action-id": ne.id,
|
|
4390
|
+
"data-action-kind": ne.isPromotable ? "overflow" : "footer",
|
|
4378
4391
|
role: "menuitem",
|
|
4379
4392
|
onClick: () => {
|
|
4380
|
-
|
|
4393
|
+
ne.onClick();
|
|
4381
4394
|
},
|
|
4382
4395
|
children: [
|
|
4383
|
-
|
|
4384
|
-
/* @__PURE__ */ e("span", { children:
|
|
4396
|
+
ne.icon ? /* @__PURE__ */ e("span", { className: "gloss-action-strip__menu-icon", children: ne.icon }) : null,
|
|
4397
|
+
/* @__PURE__ */ e("span", { children: ne.label })
|
|
4385
4398
|
]
|
|
4386
4399
|
},
|
|
4387
|
-
|
|
4400
|
+
ne.id
|
|
4388
4401
|
))
|
|
4389
4402
|
},
|
|
4390
4403
|
"action-strip-menu"
|
|
@@ -4399,12 +4412,12 @@ const Da = (r) => {
|
|
|
4399
4412
|
) });
|
|
4400
4413
|
};
|
|
4401
4414
|
Da.displayName = "ActionStrip";
|
|
4402
|
-
const
|
|
4415
|
+
const Jm = [
|
|
4403
4416
|
"settings",
|
|
4404
4417
|
"remove",
|
|
4405
4418
|
"replace"
|
|
4406
|
-
],
|
|
4407
|
-
function
|
|
4419
|
+
], Qm = ["whats-this"];
|
|
4420
|
+
function nd(r) {
|
|
4408
4421
|
const t = [];
|
|
4409
4422
|
let n = 0;
|
|
4410
4423
|
return r.onSettings && t.push({
|
|
@@ -4452,7 +4465,7 @@ function rd(r) {
|
|
|
4452
4465
|
order: n++
|
|
4453
4466
|
}), t;
|
|
4454
4467
|
}
|
|
4455
|
-
const
|
|
4468
|
+
const ad = [
|
|
4456
4469
|
{ id: "7D", label: "7D" },
|
|
4457
4470
|
{ id: "30D", label: "30D" },
|
|
4458
4471
|
{ id: "MTD", label: "MTD" },
|
|
@@ -4571,7 +4584,7 @@ const nd = [
|
|
|
4571
4584
|
{
|
|
4572
4585
|
definition: { display: "grid", gap: "6px" },
|
|
4573
4586
|
style: { gridTemplateColumns: "repeat(3, 1fr)", flex: 1, alignContent: "center" },
|
|
4574
|
-
children:
|
|
4587
|
+
children: ad.map((v) => {
|
|
4575
4588
|
const h = _ ? p.has(v.id) : u === v.id;
|
|
4576
4589
|
return /* @__PURE__ */ e(
|
|
4577
4590
|
"button",
|
|
@@ -4641,8 +4654,8 @@ const at = function({
|
|
|
4641
4654
|
extensionOverflow: j,
|
|
4642
4655
|
cardRef: G
|
|
4643
4656
|
}) {
|
|
4644
|
-
const [$, K] = O(!1), [Z, U] = O(!1), [X, te] = O(!1), pe =
|
|
4645
|
-
|
|
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);
|
|
4646
4659
|
}, []), we = S(() => {
|
|
4647
4660
|
if (z) {
|
|
4648
4661
|
const Ne = ge.current;
|
|
@@ -4650,13 +4663,13 @@ const at = function({
|
|
|
4650
4663
|
return;
|
|
4651
4664
|
te(!1), Ne && Ne.length >= 2 && L && L(Ne);
|
|
4652
4665
|
} else
|
|
4653
|
-
te(!1),
|
|
4666
|
+
te(!1), ae.current && g && g(ae.current);
|
|
4654
4667
|
}, [g, L, z]), Ye = S((Ne) => {
|
|
4655
|
-
|
|
4668
|
+
ae.current = Ne;
|
|
4656
4669
|
}, []);
|
|
4657
|
-
|
|
4670
|
+
oe(() => () => {
|
|
4658
4671
|
pe.current && clearTimeout(pe.current);
|
|
4659
|
-
}, []),
|
|
4672
|
+
}, []), oe(() => {
|
|
4660
4673
|
c && (K(!1), pe.current && (clearTimeout(pe.current), pe.current = null));
|
|
4661
4674
|
}, [c]);
|
|
4662
4675
|
const Te = S(() => {
|
|
@@ -4668,7 +4681,7 @@ const at = function({
|
|
|
4668
4681
|
}
|
|
4669
4682
|
ce.current = !1, pe.current = setTimeout(() => K(!1), 180);
|
|
4670
4683
|
}, [Z]);
|
|
4671
|
-
|
|
4684
|
+
oe(() => {
|
|
4672
4685
|
!Z && ce.current && (ce.current = !1, pe.current = setTimeout(() => K(!1), 180));
|
|
4673
4686
|
}, [Z]);
|
|
4674
4687
|
const _e = $ || Z, Ve = [
|
|
@@ -4802,13 +4815,13 @@ const at = function({
|
|
|
4802
4815
|
label: "Open details in new tab",
|
|
4803
4816
|
onClick: T
|
|
4804
4817
|
});
|
|
4805
|
-
const
|
|
4818
|
+
const ne = nd({
|
|
4806
4819
|
onSettings: I ? Ce : void 0,
|
|
4807
4820
|
onRemove: y,
|
|
4808
4821
|
onReplace: C,
|
|
4809
4822
|
onRefresh: k,
|
|
4810
4823
|
onWhatsThis: b
|
|
4811
|
-
}), xe =
|
|
4824
|
+
}), xe = ne.filter((Re) => Re.id === "whats-this"), Fe = ne.filter((Re) => Re.id !== "whats-this"), ke = (j ?? []).map((Re, lt) => ({
|
|
4812
4825
|
...Re,
|
|
4813
4826
|
order: Fe.length + lt
|
|
4814
4827
|
})), Be = xe.map((Re, lt) => ({
|
|
@@ -4844,10 +4857,10 @@ const at = function({
|
|
|
4844
4857
|
);
|
|
4845
4858
|
};
|
|
4846
4859
|
at.displayName = "CardShell";
|
|
4847
|
-
function
|
|
4860
|
+
function sd(r) {
|
|
4848
4861
|
return r === 1 ? 1 : r === 2 ? 3 : 5;
|
|
4849
4862
|
}
|
|
4850
|
-
const
|
|
4863
|
+
const id = function(t) {
|
|
4851
4864
|
const {
|
|
4852
4865
|
title: n,
|
|
4853
4866
|
prefix: a = "",
|
|
@@ -4865,8 +4878,8 @@ const sd = function(t) {
|
|
|
4865
4878
|
sparklineInset: _ = "padded",
|
|
4866
4879
|
slotToActionStripConfig: v,
|
|
4867
4880
|
onSlotActionStripConfigChange: h
|
|
4868
|
-
} = t, C = u || i[i.length - 1] || "YTD", T = p ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", w =
|
|
4869
|
-
|
|
4881
|
+
} = t, C = u || i[i.length - 1] || "YTD", T = p ? "gloss-metric-data-stale" : "gloss-metric-data-fresh", w = ie(!1);
|
|
4882
|
+
oe(() => {
|
|
4870
4883
|
if (w.current) return;
|
|
4871
4884
|
const M = "onTableAction" in t;
|
|
4872
4885
|
v && M && (console.warn(
|
|
@@ -4890,10 +4903,10 @@ const sd = function(t) {
|
|
|
4890
4903
|
h?.(M, j);
|
|
4891
4904
|
},
|
|
4892
4905
|
[y, v, h]
|
|
4893
|
-
), I =
|
|
4906
|
+
), I = ie(null), g = S(() => {
|
|
4894
4907
|
I.current !== null && (clearTimeout(I.current), I.current = null);
|
|
4895
4908
|
}, []);
|
|
4896
|
-
|
|
4909
|
+
oe(() => () => {
|
|
4897
4910
|
I.current !== null && (clearTimeout(I.current), I.current = null);
|
|
4898
4911
|
}, []);
|
|
4899
4912
|
const E = S(
|
|
@@ -4909,7 +4922,7 @@ const sd = function(t) {
|
|
|
4909
4922
|
g(), x(M, W);
|
|
4910
4923
|
},
|
|
4911
4924
|
[x, g]
|
|
4912
|
-
), N = !!y || !!v, R = !!b || !!v, z =
|
|
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) => {
|
|
4913
4926
|
const j = o.find((K) => K.timeframe === M) || o[W], G = j?.value ?? null, $ = or(G, { prefix: a, suffix: s, abbreviated: !0 });
|
|
4914
4927
|
return {
|
|
4915
4928
|
timeframe: M,
|
|
@@ -4995,7 +5008,7 @@ const sd = function(t) {
|
|
|
4995
5008
|
{
|
|
4996
5009
|
title: M.formatted.full,
|
|
4997
5010
|
style: {
|
|
4998
|
-
fontSize:
|
|
5011
|
+
fontSize: od(M.formatted.length),
|
|
4999
5012
|
fontWeight: 700,
|
|
5000
5013
|
color: "var(--color-text-primary, #111827)",
|
|
5001
5014
|
lineHeight: 1.1,
|
|
@@ -5035,8 +5048,8 @@ const sd = function(t) {
|
|
|
5035
5048
|
)
|
|
5036
5049
|
] });
|
|
5037
5050
|
};
|
|
5038
|
-
|
|
5039
|
-
function
|
|
5051
|
+
id.displayName = "StackedGroupCard";
|
|
5052
|
+
function od(r) {
|
|
5040
5053
|
return r <= 4 ? 22 : r <= 6 ? 18 : r <= 8 ? 15 : 13;
|
|
5041
5054
|
}
|
|
5042
5055
|
const Or = {
|
|
@@ -5047,7 +5060,7 @@ const Or = {
|
|
|
5047
5060
|
// Phase 17: backside-picker overlay section (null = no section open).
|
|
5048
5061
|
openSection: null
|
|
5049
5062
|
};
|
|
5050
|
-
function
|
|
5063
|
+
function ld(r, t) {
|
|
5051
5064
|
switch (t.type) {
|
|
5052
5065
|
case "BEGIN_CONFIG":
|
|
5053
5066
|
return r.activeCardId === t.cardId ? {
|
|
@@ -5084,8 +5097,8 @@ function od(r, t) {
|
|
|
5084
5097
|
return r;
|
|
5085
5098
|
}
|
|
5086
5099
|
}
|
|
5087
|
-
function
|
|
5088
|
-
const [t, n] = is(
|
|
5100
|
+
function cd(r) {
|
|
5101
|
+
const [t, n] = is(ld, Or), { onCommit: a } = r ?? {}, s = S((u, m) => {
|
|
5089
5102
|
if (!u) {
|
|
5090
5103
|
(typeof process > "u" || process.env.NODE_ENV !== "production") && console.warn(
|
|
5091
5104
|
"[useFlipAndStage] beginConfig called with null or empty cardId — ignoring."
|
|
@@ -5122,8 +5135,8 @@ function ld(r) {
|
|
|
5122
5135
|
}
|
|
5123
5136
|
const gr = Yt(null);
|
|
5124
5137
|
gr.displayName = "FlipAndStageContext";
|
|
5125
|
-
function
|
|
5126
|
-
const t =
|
|
5138
|
+
function ep({ children: r }) {
|
|
5139
|
+
const t = cd(), n = ee(
|
|
5127
5140
|
() => t,
|
|
5128
5141
|
[
|
|
5129
5142
|
t.state,
|
|
@@ -5142,16 +5155,16 @@ function Qm({ children: r }) {
|
|
|
5142
5155
|
);
|
|
5143
5156
|
return /* @__PURE__ */ e(gr.Provider, { value: n, children: r });
|
|
5144
5157
|
}
|
|
5145
|
-
function
|
|
5158
|
+
function tp() {
|
|
5146
5159
|
const r = Ut(gr);
|
|
5147
5160
|
if (r === null)
|
|
5148
5161
|
throw new Error("useFlipAndStageContext must be inside FlipAndStageProvider");
|
|
5149
5162
|
return r;
|
|
5150
5163
|
}
|
|
5151
|
-
function
|
|
5164
|
+
function dd() {
|
|
5152
5165
|
return Ut(gr);
|
|
5153
5166
|
}
|
|
5154
|
-
const
|
|
5167
|
+
const ud = {
|
|
5155
5168
|
/** Delay before flip animation begins (ms). */
|
|
5156
5169
|
flipStart: 50,
|
|
5157
5170
|
/** Duration of panel extrude animation (ms). */
|
|
@@ -5160,7 +5173,7 @@ const dd = {
|
|
|
5160
5173
|
settle: 100,
|
|
5161
5174
|
/** Total choreography duration (ms). */
|
|
5162
5175
|
total: 350
|
|
5163
|
-
},
|
|
5176
|
+
}, md = 130, pd = 45, fd = 45, gd = {
|
|
5164
5177
|
width: "100%",
|
|
5165
5178
|
height: "100%",
|
|
5166
5179
|
"& .MuiDataGrid-main": {
|
|
@@ -5347,16 +5360,16 @@ const dd = {
|
|
|
5347
5360
|
textAlign: "start"
|
|
5348
5361
|
}
|
|
5349
5362
|
};
|
|
5350
|
-
function
|
|
5363
|
+
function hd(r) {
|
|
5351
5364
|
return r.map((t) => {
|
|
5352
|
-
if ((t.width || t.minWidth || 150) <=
|
|
5365
|
+
if ((t.width || t.minWidth || 150) <= md && !String(t.headerClassName || "").includes("dropdown-header") && t.disableColumnMenu !== !0) {
|
|
5353
5366
|
const a = [t.headerClassName, "narrow-header"].filter(Boolean).join(" ").trim();
|
|
5354
5367
|
return { ...t, headerClassName: a };
|
|
5355
5368
|
}
|
|
5356
5369
|
return t;
|
|
5357
5370
|
});
|
|
5358
5371
|
}
|
|
5359
|
-
function
|
|
5372
|
+
function bd(r) {
|
|
5360
5373
|
const t = r.map((n) => {
|
|
5361
5374
|
const a = {
|
|
5362
5375
|
field: n.field,
|
|
@@ -5383,15 +5396,15 @@ function hd(r) {
|
|
|
5383
5396
|
}
|
|
5384
5397
|
return a;
|
|
5385
5398
|
});
|
|
5386
|
-
return
|
|
5399
|
+
return hd(t);
|
|
5387
5400
|
}
|
|
5388
|
-
function
|
|
5401
|
+
function yd(r) {
|
|
5389
5402
|
return r.map((t) => ({ field: t.field, sort: t.sort }));
|
|
5390
5403
|
}
|
|
5391
|
-
function
|
|
5404
|
+
function vd(r) {
|
|
5392
5405
|
return r.filter((t) => t.sort != null).map((t) => ({ field: t.field, sort: t.sort }));
|
|
5393
5406
|
}
|
|
5394
|
-
function
|
|
5407
|
+
function _d(r) {
|
|
5395
5408
|
const {
|
|
5396
5409
|
data: t,
|
|
5397
5410
|
columns: n,
|
|
@@ -5403,17 +5416,17 @@ function vd(r) {
|
|
|
5403
5416
|
pagination: l,
|
|
5404
5417
|
activeFilters: u,
|
|
5405
5418
|
onFilterRemove: m,
|
|
5406
|
-
rowHeight: p =
|
|
5407
|
-
headerHeight: f =
|
|
5419
|
+
rowHeight: p = pd,
|
|
5420
|
+
headerHeight: f = fd,
|
|
5408
5421
|
onCellClick: y,
|
|
5409
5422
|
onContextMenu: b,
|
|
5410
5423
|
getRowId: _
|
|
5411
|
-
} = r, v = ci(), h = ee(() =>
|
|
5412
|
-
() => i ?
|
|
5424
|
+
} = r, v = ci(), h = ee(() => bd(n), [n]), C = ee(
|
|
5425
|
+
() => i ? yd(i) : [],
|
|
5413
5426
|
[i]
|
|
5414
5427
|
), T = S(
|
|
5415
5428
|
(D) => {
|
|
5416
|
-
c?.(
|
|
5429
|
+
c?.(vd(D));
|
|
5417
5430
|
},
|
|
5418
5431
|
[c]
|
|
5419
5432
|
), w = ee(() => {
|
|
@@ -5458,7 +5471,7 @@ function vd(r) {
|
|
|
5458
5471
|
},
|
|
5459
5472
|
rowCount: l.total,
|
|
5460
5473
|
paginationMode: "server"
|
|
5461
|
-
} : { autoPageSize: !0 }, [l]), x = ee(() =>
|
|
5474
|
+
} : { autoPageSize: !0 }, [l]), x = ee(() => gd, []);
|
|
5462
5475
|
return s ? /* @__PURE__ */ e(
|
|
5463
5476
|
he,
|
|
5464
5477
|
{
|
|
@@ -5525,8 +5538,8 @@ function vd(r) {
|
|
|
5525
5538
|
) })
|
|
5526
5539
|
] });
|
|
5527
5540
|
}
|
|
5528
|
-
const
|
|
5529
|
-
|
|
5541
|
+
const xd = q.memo(_d);
|
|
5542
|
+
xd.displayName = "UnifiedBreakdownTable";
|
|
5530
5543
|
const Ta = q.memo(({
|
|
5531
5544
|
selections: r,
|
|
5532
5545
|
metricGroup: t,
|
|
@@ -5597,7 +5610,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5597
5610
|
/* @__PURE__ */ e("line", { x1: "10.2", y1: "10.2", x2: "13.5", y2: "13.5" })
|
|
5598
5611
|
]
|
|
5599
5612
|
}
|
|
5600
|
-
),
|
|
5613
|
+
), Nd = () => /* @__PURE__ */ d(
|
|
5601
5614
|
"svg",
|
|
5602
5615
|
{
|
|
5603
5616
|
width: "8",
|
|
@@ -5612,7 +5625,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5612
5625
|
/* @__PURE__ */ e("line", { x1: "10", y1: "2", x2: "2", y2: "10" })
|
|
5613
5626
|
]
|
|
5614
5627
|
}
|
|
5615
|
-
), On = 8,
|
|
5628
|
+
), On = 8, Sd = {
|
|
5616
5629
|
position: "absolute",
|
|
5617
5630
|
left: 0,
|
|
5618
5631
|
right: 0,
|
|
@@ -5625,7 +5638,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5625
5638
|
maxHeight: "240px",
|
|
5626
5639
|
overflowY: "auto",
|
|
5627
5640
|
zIndex: 10
|
|
5628
|
-
},
|
|
5641
|
+
}, Cd = {
|
|
5629
5642
|
padding: "8px 14px",
|
|
5630
5643
|
fontSize: "12px",
|
|
5631
5644
|
fontFamily: "'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
@@ -5644,15 +5657,15 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5644
5657
|
fading: i,
|
|
5645
5658
|
options: c
|
|
5646
5659
|
}) => {
|
|
5647
|
-
const [l, u] = O(!1), [m, p] = O(-1), f =
|
|
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(() => {
|
|
5648
5661
|
if (!c || c.length === 0) return [];
|
|
5649
5662
|
if (!r.trim()) return c.slice(0, On);
|
|
5650
5663
|
const g = r.toLowerCase();
|
|
5651
5664
|
return c.filter((E) => _(E).toLowerCase().includes(g)).slice(0, On);
|
|
5652
5665
|
}, [c, r, _]), h = l && v.length > 0 && !o;
|
|
5653
|
-
|
|
5666
|
+
oe(() => {
|
|
5654
5667
|
p(-1);
|
|
5655
|
-
}, [r]),
|
|
5668
|
+
}, [r]), oe(() => {
|
|
5656
5669
|
if (m >= 0 && b.current) {
|
|
5657
5670
|
const g = b.current.children;
|
|
5658
5671
|
g[m] && g[m].scrollIntoView({ block: "nearest" });
|
|
@@ -5673,7 +5686,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5673
5686
|
u(!1), p(-1);
|
|
5674
5687
|
}, 150);
|
|
5675
5688
|
}, []);
|
|
5676
|
-
|
|
5689
|
+
oe(() => () => {
|
|
5677
5690
|
y.current && clearTimeout(y.current);
|
|
5678
5691
|
}, []);
|
|
5679
5692
|
const I = {
|
|
@@ -5728,7 +5741,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5728
5741
|
onMouseLeave: (g) => {
|
|
5729
5742
|
g.currentTarget.style.background = "transparent", g.currentTarget.style.color = "rgba(0,0,0,0.22)";
|
|
5730
5743
|
},
|
|
5731
|
-
children: /* @__PURE__ */ e(
|
|
5744
|
+
children: /* @__PURE__ */ e(Nd, {})
|
|
5732
5745
|
}
|
|
5733
5746
|
)
|
|
5734
5747
|
] }) : /* @__PURE__ */ d(
|
|
@@ -5784,7 +5797,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5784
5797
|
animation: "blink 1s step-end infinite"
|
|
5785
5798
|
} }) })
|
|
5786
5799
|
] }),
|
|
5787
|
-
h && /* @__PURE__ */ e("div", { ref: b, style:
|
|
5800
|
+
h && /* @__PURE__ */ e("div", { ref: b, style: Sd, children: v.map((g, E) => /* @__PURE__ */ e(
|
|
5788
5801
|
"div",
|
|
5789
5802
|
{
|
|
5790
5803
|
onMouseDown: (x) => {
|
|
@@ -5792,7 +5805,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5792
5805
|
},
|
|
5793
5806
|
onMouseEnter: () => p(E),
|
|
5794
5807
|
style: {
|
|
5795
|
-
...
|
|
5808
|
+
...Cd,
|
|
5796
5809
|
background: E === m ? "rgba(79,70,229,0.08)" : "transparent"
|
|
5797
5810
|
},
|
|
5798
5811
|
children: _(g)
|
|
@@ -5804,7 +5817,7 @@ const Fn = () => /* @__PURE__ */ d(
|
|
|
5804
5817
|
);
|
|
5805
5818
|
});
|
|
5806
5819
|
Lr.displayName = "FilterInput";
|
|
5807
|
-
const
|
|
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(({
|
|
5808
5821
|
showRow2: r,
|
|
5809
5822
|
showItemFilter: t,
|
|
5810
5823
|
showEntityFilter: n,
|
|
@@ -5864,7 +5877,7 @@ const Cd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
|
|
|
5864
5877
|
width: s.width,
|
|
5865
5878
|
transform: n ? "translateY(0)" : "translateY(-100%)",
|
|
5866
5879
|
opacity: n ? 1 : 0,
|
|
5867
|
-
transition: `${
|
|
5880
|
+
transition: `${wd}, transform ${n ? Nt : St}, opacity ${n ? Nt : St}`,
|
|
5868
5881
|
pointerEvents: n ? "auto" : "none"
|
|
5869
5882
|
}, children: /* @__PURE__ */ e(
|
|
5870
5883
|
Lr,
|
|
@@ -5881,7 +5894,7 @@ const Cd = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
|
|
|
5881
5894
|
) })
|
|
5882
5895
|
] }) }));
|
|
5883
5896
|
Ea.displayName = "Row2FilterTray";
|
|
5884
|
-
const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
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(({
|
|
5885
5898
|
pillLeft: r,
|
|
5886
5899
|
pillWidth: t,
|
|
5887
5900
|
pillTop: n,
|
|
@@ -5909,7 +5922,7 @@ const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
|
|
|
5909
5922
|
height: l ? i - n + 1 : a,
|
|
5910
5923
|
background: "#fff",
|
|
5911
5924
|
borderRadius: l ? "8px 8px 0 0" : "8px",
|
|
5912
|
-
transition: `${sr}, height ${l ?
|
|
5925
|
+
transition: `${sr}, height ${l ? kd : Dd}, border-radius 0.15s ease`
|
|
5913
5926
|
} }),
|
|
5914
5927
|
l && /* @__PURE__ */ e("div", { style: {
|
|
5915
5928
|
position: "absolute",
|
|
@@ -5948,16 +5961,16 @@ const sr = "left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.
|
|
|
5948
5961
|
] });
|
|
5949
5962
|
});
|
|
5950
5963
|
Hr.displayName = "FusedShape";
|
|
5951
|
-
const
|
|
5964
|
+
const Id = {
|
|
5952
5965
|
itemPill: { left: 0, width: 0, top: 0, height: 0 },
|
|
5953
5966
|
itemFilter: { left: 0, width: 0, top: 0, height: 32 },
|
|
5954
5967
|
entityPill: { left: 0, width: 0, top: 0, height: 0 },
|
|
5955
5968
|
entityFilter: { left: 0, width: 0, top: 0, height: 32 },
|
|
5956
5969
|
tracks: []
|
|
5957
5970
|
};
|
|
5958
|
-
function
|
|
5959
|
-
const [m, p] = O(
|
|
5960
|
-
return
|
|
5971
|
+
function Td(r, t, n, a, s, o, i, c, l, u) {
|
|
5972
|
+
const [m, p] = O(Id);
|
|
5973
|
+
return oe(() => {
|
|
5961
5974
|
const f = () => {
|
|
5962
5975
|
const b = r.current, _ = t.current, v = n.current, h = a.current;
|
|
5963
5976
|
if (!b || !_ || !v || !h) return;
|
|
@@ -6002,7 +6015,7 @@ function Id(r, t, n, a, s, o, i, c, l, u) {
|
|
|
6002
6015
|
o
|
|
6003
6016
|
]), m;
|
|
6004
6017
|
}
|
|
6005
|
-
const
|
|
6018
|
+
const Ed = q.memo(({
|
|
6006
6019
|
vizState: r,
|
|
6007
6020
|
onTypeChange: t,
|
|
6008
6021
|
onQuantChange: n,
|
|
@@ -6041,7 +6054,7 @@ const Td = q.memo(({
|
|
|
6041
6054
|
id: me.id,
|
|
6042
6055
|
label: me.label || me.name || me.id
|
|
6043
6056
|
}))
|
|
6044
|
-
}), [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 =
|
|
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(
|
|
6045
6058
|
W,
|
|
6046
6059
|
j,
|
|
6047
6060
|
G,
|
|
@@ -6052,12 +6065,12 @@ const Td = q.memo(({
|
|
|
6052
6065
|
M,
|
|
6053
6066
|
g,
|
|
6054
6067
|
x
|
|
6055
|
-
), X =
|
|
6056
|
-
|
|
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, () => {
|
|
6057
6070
|
te.current && clearTimeout(te.current);
|
|
6058
6071
|
}), [_.dimension]);
|
|
6059
|
-
const pe =
|
|
6060
|
-
|
|
6072
|
+
const pe = ie({ id: null, name: null }), ce = ie({ id: null, name: null });
|
|
6073
|
+
oe(() => {
|
|
6061
6074
|
const me = r.entity?.id ?? null, _e = r.entity?.name ?? null, Ve = r.byItem?.id ?? null, Ne = r.byItem?.name ?? null;
|
|
6062
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));
|
|
6063
6076
|
}, [r.entity?.id, r.entity?.name, r.byItem?.id, r.byItem?.name]);
|
|
@@ -6065,7 +6078,7 @@ const Td = q.memo(({
|
|
|
6065
6078
|
me === "metric" ? n(_e) : me === "entity" ? (t(_e), _e !== "items" && w(!1)) : me === "dimension" && a(_e);
|
|
6066
6079
|
}, [n, t, a]), de = S(() => {
|
|
6067
6080
|
_.entity === "items" && w((me) => !me);
|
|
6068
|
-
}, [_.entity]),
|
|
6081
|
+
}, [_.entity]), ae = S(() => {
|
|
6069
6082
|
I((me) => !me);
|
|
6070
6083
|
}, []), ge = S((me) => {
|
|
6071
6084
|
E(me), R(""), o(me, me);
|
|
@@ -6130,7 +6143,7 @@ const Td = q.memo(({
|
|
|
6130
6143
|
dimensionGroup: C,
|
|
6131
6144
|
onSelect: be,
|
|
6132
6145
|
onEntityToggle: de,
|
|
6133
|
-
onDimensionToggle:
|
|
6146
|
+
onDimensionToggle: ae,
|
|
6134
6147
|
metricGroupRef: j,
|
|
6135
6148
|
entityGroupRef: G,
|
|
6136
6149
|
dimensionGroupRef: $,
|
|
@@ -6169,20 +6182,20 @@ const Td = q.memo(({
|
|
|
6169
6182
|
) })
|
|
6170
6183
|
] });
|
|
6171
6184
|
});
|
|
6172
|
-
|
|
6173
|
-
const
|
|
6185
|
+
Ed.displayName = "ChartControlBar";
|
|
6186
|
+
const rp = {
|
|
6174
6187
|
customer: { routeKey: "customer.profile", paramKey: "customerId", icon: "Person" },
|
|
6175
6188
|
manufacturer: { routeKey: "manufacturer.profile", paramKey: "manufacturerId", icon: "Business" },
|
|
6176
6189
|
salesperson: { routeKey: "salesperson.profile", paramKey: "salespersonId", icon: "Person" }
|
|
6177
|
-
},
|
|
6190
|
+
}, np = {
|
|
6178
6191
|
customer: "customerId",
|
|
6179
6192
|
manufacturer: "manufacturerId",
|
|
6180
6193
|
salesperson: "salespersonId"
|
|
6181
|
-
},
|
|
6194
|
+
}, ap = {
|
|
6182
6195
|
customer: "customers",
|
|
6183
6196
|
manufacturer: "manufacturers",
|
|
6184
6197
|
salesperson: "salespeople"
|
|
6185
|
-
},
|
|
6198
|
+
}, Md = [
|
|
6186
6199
|
// ════════════════════════════════════════════════════════════════════════════
|
|
6187
6200
|
// TAB ACTIONS SECTION
|
|
6188
6201
|
// ════════════════════════════════════════════════════════════════════════════
|
|
@@ -6588,10 +6601,10 @@ const tp = {
|
|
|
6588
6601
|
labelFn: (r) => `View ${r.manufacturerName || "Manufacturer"}`
|
|
6589
6602
|
}
|
|
6590
6603
|
];
|
|
6591
|
-
function
|
|
6592
|
-
return
|
|
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")));
|
|
6593
6606
|
}
|
|
6594
|
-
function
|
|
6607
|
+
function sp(r, t) {
|
|
6595
6608
|
switch (r) {
|
|
6596
6609
|
case "recent-orders":
|
|
6597
6610
|
case "show-orders":
|
|
@@ -6613,7 +6626,7 @@ function ap(r, t) {
|
|
|
6613
6626
|
return `${r}-${t.entityId || t.itemNumber || t.orderId || ""}`;
|
|
6614
6627
|
}
|
|
6615
6628
|
}
|
|
6616
|
-
const
|
|
6629
|
+
const Bd = {
|
|
6617
6630
|
Person: wi,
|
|
6618
6631
|
Business: ki,
|
|
6619
6632
|
BarChart: Di,
|
|
@@ -6635,11 +6648,11 @@ const Pd = {
|
|
|
6635
6648
|
OpenInNew: ta
|
|
6636
6649
|
};
|
|
6637
6650
|
function Ln(r) {
|
|
6638
|
-
const t =
|
|
6651
|
+
const t = Bd[r];
|
|
6639
6652
|
return t ? /* @__PURE__ */ e(t, { fontSize: "small" }) : null;
|
|
6640
6653
|
}
|
|
6641
|
-
const
|
|
6642
|
-
function
|
|
6654
|
+
const Rd = ["tab-actions", "graph-actions", "direct-nav", "related-nav"];
|
|
6655
|
+
function zd({
|
|
6643
6656
|
anchorEl: r,
|
|
6644
6657
|
open: t,
|
|
6645
6658
|
onClose: n,
|
|
@@ -6660,7 +6673,7 @@ function Rd({
|
|
|
6660
6673
|
onUpdateViz: h,
|
|
6661
6674
|
onActionClick: C
|
|
6662
6675
|
}) {
|
|
6663
|
-
const T = ee(() => a && a.length > 0 ? a : s ?
|
|
6676
|
+
const T = ee(() => a && a.length > 0 ? a : s ? Pd(s, {
|
|
6664
6677
|
entityType: i,
|
|
6665
6678
|
userType: m,
|
|
6666
6679
|
orderStatus: o?.status,
|
|
@@ -6737,7 +6750,7 @@ function Rd({
|
|
|
6737
6750
|
}, [o, i, I]), E = ee(() => {
|
|
6738
6751
|
const x = [];
|
|
6739
6752
|
let D = 0;
|
|
6740
|
-
for (const N of
|
|
6753
|
+
for (const N of Rd) {
|
|
6741
6754
|
const R = w.get(N);
|
|
6742
6755
|
if (!(!R || R.length === 0)) {
|
|
6743
6756
|
D > 0 && x.push(/* @__PURE__ */ e(Jn, { className: "gloss-unified-context-menu__divider" }, `divider-${N}`));
|
|
@@ -6779,8 +6792,8 @@ function Rd({
|
|
|
6779
6792
|
}
|
|
6780
6793
|
);
|
|
6781
6794
|
}
|
|
6782
|
-
const
|
|
6783
|
-
|
|
6795
|
+
const Ad = q.memo(zd);
|
|
6796
|
+
Ad.displayName = "UnifiedContextMenu";
|
|
6784
6797
|
const Wr = ({
|
|
6785
6798
|
groupId: r,
|
|
6786
6799
|
options: t,
|
|
@@ -6792,7 +6805,7 @@ const Wr = ({
|
|
|
6792
6805
|
isOpen: c = !1,
|
|
6793
6806
|
onOpenChange: l
|
|
6794
6807
|
}) => {
|
|
6795
|
-
const u =
|
|
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(() => {
|
|
6796
6809
|
if (!y || !["7d", "30d", "60d", "90d", "mtd", "qtd", "ytd", "lytd"].includes(y.id))
|
|
6797
6810
|
return "";
|
|
6798
6811
|
const { start: g, end: E } = je(y.id);
|
|
@@ -6810,7 +6823,7 @@ const Wr = ({
|
|
|
6810
6823
|
}, [s, h]), w = S((I, g) => {
|
|
6811
6824
|
I.stopPropagation(), i && i(g);
|
|
6812
6825
|
}, [i]), k = /* @__PURE__ */ d(
|
|
6813
|
-
|
|
6826
|
+
se,
|
|
6814
6827
|
{
|
|
6815
6828
|
ref: u,
|
|
6816
6829
|
onMouseEnter: _,
|
|
@@ -6886,7 +6899,7 @@ const Wr = ({
|
|
|
6886
6899
|
minHeight: 36
|
|
6887
6900
|
},
|
|
6888
6901
|
children: [
|
|
6889
|
-
/* @__PURE__ */ d(
|
|
6902
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
6890
6903
|
g && /* @__PURE__ */ e(Dt, { fontSize: "small", color: "primary", sx: { fontSize: 14 } }),
|
|
6891
6904
|
/* @__PURE__ */ e(
|
|
6892
6905
|
gi,
|
|
@@ -6944,7 +6957,7 @@ const Wr = ({
|
|
|
6944
6957
|
) : k;
|
|
6945
6958
|
};
|
|
6946
6959
|
Wr.displayName = "ExpandableChip";
|
|
6947
|
-
const
|
|
6960
|
+
const $d = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
6948
6961
|
small: {
|
|
6949
6962
|
cellSize: 32,
|
|
6950
6963
|
fontSize: 11,
|
|
@@ -6969,7 +6982,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
6969
6982
|
dotSize: 5,
|
|
6970
6983
|
dotOffset: 12
|
|
6971
6984
|
}
|
|
6972
|
-
},
|
|
6985
|
+
}, Fd = [
|
|
6973
6986
|
"January",
|
|
6974
6987
|
"February",
|
|
6975
6988
|
"March",
|
|
@@ -6982,7 +6995,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
6982
6995
|
"October",
|
|
6983
6996
|
"November",
|
|
6984
6997
|
"December"
|
|
6985
|
-
],
|
|
6998
|
+
], Od = (r) => {
|
|
6986
6999
|
const t = [];
|
|
6987
7000
|
for (let n = r - 10; n <= r + 2; n++)
|
|
6988
7001
|
t.push(n);
|
|
@@ -7003,14 +7016,14 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7003
7016
|
if (s !== void 0) return s;
|
|
7004
7017
|
const $ = /* @__PURE__ */ new Date();
|
|
7005
7018
|
return $.setHours(23, 59, 59, 999), $;
|
|
7006
|
-
}, [s]), [f, y] = O(() => r ? new Date(r.getFullYear(), r.getMonth(), 1) : /* @__PURE__ */ new Date()), [b, _] = O(!1), [v, h] = O(null), C =
|
|
7007
|
-
|
|
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(() => {
|
|
7008
7021
|
if (C.current) {
|
|
7009
7022
|
C.current = !1;
|
|
7010
7023
|
return;
|
|
7011
7024
|
}
|
|
7012
7025
|
_(!1), h(null);
|
|
7013
|
-
}, [r, t]),
|
|
7026
|
+
}, [r, t]), oe(() => {
|
|
7014
7027
|
l && y(new Date(l.getFullYear(), l.getMonth(), 1));
|
|
7015
7028
|
}, [l]);
|
|
7016
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(() => {
|
|
@@ -7051,7 +7064,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7051
7064
|
for (let Z = 0; Z < I; Z++)
|
|
7052
7065
|
$.push(
|
|
7053
7066
|
/* @__PURE__ */ e(
|
|
7054
|
-
|
|
7067
|
+
se,
|
|
7055
7068
|
{
|
|
7056
7069
|
className: "mini-calendar__day mini-calendar__day--empty"
|
|
7057
7070
|
},
|
|
@@ -7060,10 +7073,10 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7060
7073
|
);
|
|
7061
7074
|
const K = /* @__PURE__ */ new Date();
|
|
7062
7075
|
for (let Z = 1; Z <= k; Z++) {
|
|
7063
|
-
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),
|
|
7064
|
-
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")),
|
|
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"));
|
|
7065
7078
|
const Me = /* @__PURE__ */ e(
|
|
7066
|
-
|
|
7079
|
+
se,
|
|
7067
7080
|
{
|
|
7068
7081
|
component: "button",
|
|
7069
7082
|
onClick: be ? void 0 : () => M(Z),
|
|
@@ -7103,7 +7116,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7103
7116
|
return $;
|
|
7104
7117
|
}, [T, w, k, I, L, P, H, Y, V, R, z, M, W, u]);
|
|
7105
7118
|
return /* @__PURE__ */ d(
|
|
7106
|
-
|
|
7119
|
+
se,
|
|
7107
7120
|
{
|
|
7108
7121
|
className: "mini-calendar",
|
|
7109
7122
|
onMouseLeave: j,
|
|
@@ -7116,9 +7129,9 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7116
7129
|
"--dot-offset": `${m.dotOffset}px`
|
|
7117
7130
|
},
|
|
7118
7131
|
children: [
|
|
7119
|
-
/* @__PURE__ */ d(
|
|
7132
|
+
/* @__PURE__ */ d(se, { className: "mini-calendar__header", children: [
|
|
7120
7133
|
/* @__PURE__ */ e(Ue, { onClick: E, size: "small", sx: { p: 0.5 }, children: /* @__PURE__ */ e(Gi, { fontSize: "small" }) }),
|
|
7121
|
-
c ? /* @__PURE__ */ d(
|
|
7134
|
+
c ? /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
7122
7135
|
/* @__PURE__ */ e(
|
|
7123
7136
|
Nn,
|
|
7124
7137
|
{
|
|
@@ -7142,7 +7155,7 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7142
7155
|
sx: { maxHeight: 200 }
|
|
7143
7156
|
}
|
|
7144
7157
|
},
|
|
7145
|
-
children:
|
|
7158
|
+
children: Fd.map(($, K) => /* @__PURE__ */ e(Gt, { value: K, sx: { fontSize: 13 }, children: $ }, K))
|
|
7146
7159
|
}
|
|
7147
7160
|
),
|
|
7148
7161
|
/* @__PURE__ */ e(
|
|
@@ -7168,24 +7181,24 @@ const Ad = ["S", "M", "T", "W", "T", "F", "S"], Hn = {
|
|
|
7168
7181
|
sx: { maxHeight: 200 }
|
|
7169
7182
|
}
|
|
7170
7183
|
},
|
|
7171
|
-
children:
|
|
7184
|
+
children: Od((/* @__PURE__ */ new Date()).getFullYear()).map(($) => /* @__PURE__ */ e(Gt, { value: $, sx: { fontSize: 13 }, children: $ }, $))
|
|
7172
7185
|
}
|
|
7173
7186
|
)
|
|
7174
7187
|
] }) : /* @__PURE__ */ e(Ie, { variant: "body2", fontWeight: 500, children: g }),
|
|
7175
7188
|
/* @__PURE__ */ e(Ue, { onClick: x, size: "small", sx: { p: 0.5 }, children: /* @__PURE__ */ e(Vi, { fontSize: "small" }) })
|
|
7176
7189
|
] }),
|
|
7177
|
-
/* @__PURE__ */ e(
|
|
7178
|
-
|
|
7190
|
+
/* @__PURE__ */ e(se, { className: "mini-calendar__grid", children: $d.map(($, K) => /* @__PURE__ */ e(
|
|
7191
|
+
se,
|
|
7179
7192
|
{
|
|
7180
7193
|
className: "mini-calendar__day-header",
|
|
7181
7194
|
children: $
|
|
7182
7195
|
},
|
|
7183
7196
|
`header-${K}`
|
|
7184
7197
|
)) }),
|
|
7185
|
-
/* @__PURE__ */ e(
|
|
7186
|
-
(i || b) && /* @__PURE__ */ d(
|
|
7187
|
-
i && /* @__PURE__ */ d(
|
|
7188
|
-
/* @__PURE__ */ e(
|
|
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" }),
|
|
7189
7202
|
/* @__PURE__ */ e(Ie, { variant: "caption", color: "text.secondary", children: "Market event" })
|
|
7190
7203
|
] }),
|
|
7191
7204
|
b && /* @__PURE__ */ e(Ie, { variant: "caption", color: "primary", children: "Select end date" })
|
|
@@ -7208,7 +7221,7 @@ const Ot = ({
|
|
|
7208
7221
|
l.stopPropagation(), s && s(r);
|
|
7209
7222
|
};
|
|
7210
7223
|
return /* @__PURE__ */ d(
|
|
7211
|
-
|
|
7224
|
+
se,
|
|
7212
7225
|
{
|
|
7213
7226
|
onClick: i,
|
|
7214
7227
|
sx: {
|
|
@@ -7242,8 +7255,8 @@ const Ot = ({
|
|
|
7242
7255
|
}
|
|
7243
7256
|
}
|
|
7244
7257
|
),
|
|
7245
|
-
/* @__PURE__ */ d(
|
|
7246
|
-
/* @__PURE__ */ d(
|
|
7258
|
+
/* @__PURE__ */ d(se, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
7259
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7247
7260
|
/* @__PURE__ */ e(
|
|
7248
7261
|
Ie,
|
|
7249
7262
|
{
|
|
@@ -7309,7 +7322,7 @@ const Ot = ({
|
|
|
7309
7322
|
);
|
|
7310
7323
|
};
|
|
7311
7324
|
Ot.displayName = "MarketPresetRow";
|
|
7312
|
-
const
|
|
7325
|
+
const Ld = {
|
|
7313
7326
|
version: 4,
|
|
7314
7327
|
lastPreset: "mtd",
|
|
7315
7328
|
pinnedPreset: "mtd",
|
|
@@ -7317,7 +7330,7 @@ const Od = {
|
|
|
7317
7330
|
rangeCount: 1,
|
|
7318
7331
|
lastPresetB: null,
|
|
7319
7332
|
lastPresetC: null
|
|
7320
|
-
},
|
|
7333
|
+
}, Hd = ({
|
|
7321
7334
|
value: r,
|
|
7322
7335
|
onChange: t,
|
|
7323
7336
|
enableCompare: n = !1,
|
|
@@ -7338,18 +7351,18 @@ const Od = {
|
|
|
7338
7351
|
onCompareToggle: v
|
|
7339
7352
|
}) => {
|
|
7340
7353
|
const h = ee(() => ({
|
|
7341
|
-
...
|
|
7354
|
+
...Ld,
|
|
7342
7355
|
...u
|
|
7343
|
-
}), [u]), C =
|
|
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) => {
|
|
7344
7357
|
Z(A), v?.(A);
|
|
7345
|
-
}, [v]), [te, pe] = O("A"), [ce, be] = O(() => h.lastPresetB ?? null), [de,
|
|
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(() => {
|
|
7346
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) => ({
|
|
7347
7360
|
...ue,
|
|
7348
7361
|
active: xt(ue)
|
|
7349
7362
|
}));
|
|
7350
7363
|
return [...re, ...le].sort((ue, $e) => ue.startDate.getTime() - $e.startDate.getTime());
|
|
7351
7364
|
});
|
|
7352
|
-
|
|
7365
|
+
oe(() => {
|
|
7353
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) => ({
|
|
7354
7367
|
...ue,
|
|
7355
7368
|
active: xt(ue)
|
|
@@ -7377,7 +7390,7 @@ const Od = {
|
|
|
7377
7390
|
futureCustomRanges: yr.filter((Q) => Q.isCustom || !F.has(Q.id))
|
|
7378
7391
|
};
|
|
7379
7392
|
}, [br, yr, p]), ut = i || !!T;
|
|
7380
|
-
|
|
7393
|
+
oe(() => {
|
|
7381
7394
|
i && V === null && (M(R), j(L), $(H));
|
|
7382
7395
|
}, [i, V, R, L, H]);
|
|
7383
7396
|
const We = ee(
|
|
@@ -7392,9 +7405,9 @@ const Od = {
|
|
|
7392
7405
|
end: r[1],
|
|
7393
7406
|
rangeB: null
|
|
7394
7407
|
} : { start: null, end: null, rangeB: null } : { start: null, end: null, rangeB: null }, [r]);
|
|
7395
|
-
|
|
7408
|
+
oe(() => {
|
|
7396
7409
|
r && !Array.isArray(r) && "rangeA" in r && r.rangeB && X(!0);
|
|
7397
|
-
}, [r, X]),
|
|
7410
|
+
}, [r, X]), oe(() => {
|
|
7398
7411
|
if (!et.start || !et.end) return;
|
|
7399
7412
|
const A = /* @__PURE__ */ new Date(), F = new Date(et.start);
|
|
7400
7413
|
F.setHours(0, 0, 0, 0);
|
|
@@ -7501,8 +7514,8 @@ const Od = {
|
|
|
7501
7514
|
return Q.preset ? `${Q.preset.label} (${re})` : re;
|
|
7502
7515
|
}, [U, Pe, it, Pt, Bt, fe]);
|
|
7503
7516
|
const Ua = S((A) => {
|
|
7504
|
-
M(R), j(L), $(H), U && (we(ce), Te(de), _e(ge), Pe >= 3 && (Be(Ve), Re(
|
|
7505
|
-
}, [R, L, H, U, Pe, ce, de, ge, Ve,
|
|
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) => {
|
|
7506
7519
|
const re = [A, F];
|
|
7507
7520
|
Q && (re.shortcutId = rr(Q)), t(re);
|
|
7508
7521
|
}, [t]), Zt = S((A, F, Q) => {
|
|
@@ -7520,7 +7533,7 @@ const Od = {
|
|
|
7520
7533
|
z(V), P(W), Y(G);
|
|
7521
7534
|
const A = Zt(V, W, G);
|
|
7522
7535
|
if (U && Pe >= 2 && Ce !== null) {
|
|
7523
|
-
be(Ce),
|
|
7536
|
+
be(Ce), ae(Ye), Me(me);
|
|
7524
7537
|
const F = Zt(Ce, Ye, me), Q = {
|
|
7525
7538
|
rangeA: A,
|
|
7526
7539
|
rangeB: F,
|
|
@@ -7563,14 +7576,14 @@ const Od = {
|
|
|
7563
7576
|
const A = V !== null ? V : R;
|
|
7564
7577
|
Pe === 1 ? (X(!0), vt(2), we(A), pe("B"), ct(!0)) : Pe === 2 && (vt(3), Be(A), pe("C"));
|
|
7565
7578
|
}, [Pe, V, R, X]), pn = S((A) => {
|
|
7566
|
-
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),
|
|
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({
|
|
7567
7580
|
compareEnabled: !1,
|
|
7568
7581
|
rangeCount: 1,
|
|
7569
7582
|
lastPresetB: null,
|
|
7570
7583
|
lastPresetC: null
|
|
7571
7584
|
}));
|
|
7572
7585
|
}, [Pe, te, X, tt]), qa = S(() => {
|
|
7573
|
-
X(!1), vt(1), pe("A"), ct(!1), we(null), Te(null), _e(null), be(null),
|
|
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({
|
|
7574
7587
|
compareEnabled: !1,
|
|
7575
7588
|
rangeCount: 1,
|
|
7576
7589
|
lastPresetB: null,
|
|
@@ -7621,7 +7634,7 @@ const Od = {
|
|
|
7621
7634
|
}
|
|
7622
7635
|
I("calendar"), Va(new Date(A));
|
|
7623
7636
|
}, [ze, dt, fe]);
|
|
7624
|
-
|
|
7637
|
+
oe(() => {
|
|
7625
7638
|
g && zt({
|
|
7626
7639
|
label: g.label || "",
|
|
7627
7640
|
startDate: g.startDate?.toISOString().split("T")[0] || "",
|
|
@@ -7701,16 +7714,16 @@ const Od = {
|
|
|
7701
7714
|
}, [V, R, X]), xr = S(({ label: A, isActive: F, presetName: Q, dateRange: re, color: le, onSelect: ue, onRemove: $e }) => {
|
|
7702
7715
|
const vn = !Q || Q === "Select...";
|
|
7703
7716
|
return /* @__PURE__ */ d(
|
|
7704
|
-
|
|
7717
|
+
se,
|
|
7705
7718
|
{
|
|
7706
7719
|
className: `range-card range-card--${le} ${F ? "range-card--active" : ""} ${vn ? "range-card--empty" : ""}`,
|
|
7707
7720
|
onClick: ue,
|
|
7708
7721
|
children: [
|
|
7709
|
-
/* @__PURE__ */ e(
|
|
7710
|
-
/* @__PURE__ */ d(
|
|
7711
|
-
/* @__PURE__ */ d(
|
|
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: [
|
|
7712
7725
|
/* @__PURE__ */ e(Ie, { className: "range-card__label", children: A }),
|
|
7713
|
-
/* @__PURE__ */ e(
|
|
7726
|
+
/* @__PURE__ */ e(se, { className: `range-card__indicator ${F ? "range-card__indicator--active" : ""}` })
|
|
7714
7727
|
] }),
|
|
7715
7728
|
vn ? /* @__PURE__ */ e(Ie, { className: "range-card__preset", sx: { color: "#9ca3af", fontStyle: "italic" }, children: "Select a date range" }) : /* @__PURE__ */ d(Ge, { children: [
|
|
7716
7729
|
/* @__PURE__ */ e(Ie, { className: "range-card__preset", children: Q }),
|
|
@@ -7732,7 +7745,7 @@ const Od = {
|
|
|
7732
7745
|
]
|
|
7733
7746
|
}
|
|
7734
7747
|
);
|
|
7735
|
-
}, []), yn = /* @__PURE__ */ e(
|
|
7748
|
+
}, []), yn = /* @__PURE__ */ e(se, { sx: { position: "relative", display: "inline-flex" }, children: /* @__PURE__ */ e(
|
|
7736
7749
|
rt,
|
|
7737
7750
|
{
|
|
7738
7751
|
ref: C,
|
|
@@ -7771,13 +7784,13 @@ const Od = {
|
|
|
7771
7784
|
color: "secondary.main"
|
|
7772
7785
|
} : {}
|
|
7773
7786
|
},
|
|
7774
|
-
children: U && Ya ? /* @__PURE__ */ d(
|
|
7787
|
+
children: U && Ya ? /* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
7775
7788
|
/* @__PURE__ */ e(Wi, { sx: { fontSize: 14, color: "secondary.main" } }),
|
|
7776
7789
|
/* @__PURE__ */ e("span", { children: "Compare" })
|
|
7777
7790
|
] }) : Ka
|
|
7778
7791
|
}
|
|
7779
7792
|
) });
|
|
7780
|
-
return /* @__PURE__ */ d(
|
|
7793
|
+
return /* @__PURE__ */ d(se, { className: "hybrid-date-picker", sx: l, children: [
|
|
7781
7794
|
ln ? /* @__PURE__ */ e(
|
|
7782
7795
|
ft,
|
|
7783
7796
|
{
|
|
@@ -7794,7 +7807,7 @@ const Od = {
|
|
|
7794
7807
|
(() => {
|
|
7795
7808
|
const A = /* @__PURE__ */ d(Ge, { children: [
|
|
7796
7809
|
s && /* @__PURE__ */ d(
|
|
7797
|
-
|
|
7810
|
+
se,
|
|
7798
7811
|
{
|
|
7799
7812
|
sx: {
|
|
7800
7813
|
display: "flex",
|
|
@@ -7820,8 +7833,8 @@ const Od = {
|
|
|
7820
7833
|
]
|
|
7821
7834
|
}
|
|
7822
7835
|
),
|
|
7823
|
-
We && /* @__PURE__ */ e(
|
|
7824
|
-
|
|
7836
|
+
We && /* @__PURE__ */ e(se, { className: "hybrid-date-picker__active-banner", children: /* @__PURE__ */ d(
|
|
7837
|
+
se,
|
|
7825
7838
|
{
|
|
7826
7839
|
className: `hybrid-date-picker__active-banner-content ${gt(We.id) ? "hybrid-date-picker__active-banner-content--selected" : ""}`,
|
|
7827
7840
|
onClick: () => At(We.id),
|
|
@@ -7831,10 +7844,10 @@ const Od = {
|
|
|
7831
7844
|
}
|
|
7832
7845
|
},
|
|
7833
7846
|
children: [
|
|
7834
|
-
/* @__PURE__ */ d(
|
|
7847
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7835
7848
|
/* @__PURE__ */ e(Br, { fontSize: "small", sx: { color: "success.main" } }),
|
|
7836
|
-
/* @__PURE__ */ d(
|
|
7837
|
-
/* @__PURE__ */ d(
|
|
7849
|
+
/* @__PURE__ */ d(se, { children: [
|
|
7850
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
7838
7851
|
/* @__PURE__ */ e(Ie, { variant: "body2", fontWeight: 500, children: We.label }),
|
|
7839
7852
|
/* @__PURE__ */ e(
|
|
7840
7853
|
Wt,
|
|
@@ -7858,7 +7871,7 @@ const Od = {
|
|
|
7858
7871
|
] })
|
|
7859
7872
|
] })
|
|
7860
7873
|
] }),
|
|
7861
|
-
/* @__PURE__ */ d(
|
|
7874
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
7862
7875
|
gt(We.id) && /* @__PURE__ */ e(Dt, { fontSize: "small", sx: { color: "success.main" } }),
|
|
7863
7876
|
/* @__PURE__ */ e(
|
|
7864
7877
|
Ue,
|
|
@@ -7881,7 +7894,7 @@ const Od = {
|
|
|
7881
7894
|
]
|
|
7882
7895
|
}
|
|
7883
7896
|
) }),
|
|
7884
|
-
/* @__PURE__ */ d(
|
|
7897
|
+
/* @__PURE__ */ d(se, { className: "hybrid-date-picker__quick-bar", children: [
|
|
7885
7898
|
/* @__PURE__ */ e(
|
|
7886
7899
|
Wt,
|
|
7887
7900
|
{
|
|
@@ -7948,7 +7961,7 @@ const Od = {
|
|
|
7948
7961
|
children: [
|
|
7949
7962
|
/* @__PURE__ */ e(Br, { sx: { fontSize: 16 } }),
|
|
7950
7963
|
We && /* @__PURE__ */ e(
|
|
7951
|
-
|
|
7964
|
+
se,
|
|
7952
7965
|
{
|
|
7953
7966
|
sx: {
|
|
7954
7967
|
position: "absolute",
|
|
@@ -7966,7 +7979,7 @@ const Od = {
|
|
|
7966
7979
|
}
|
|
7967
7980
|
) })
|
|
7968
7981
|
] }),
|
|
7969
|
-
/* @__PURE__ */ d(
|
|
7982
|
+
/* @__PURE__ */ d(se, { className: "hybrid-date-picker__content", children: [
|
|
7970
7983
|
k === "calendar" && (() => {
|
|
7971
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;
|
|
7972
7985
|
return /* @__PURE__ */ e(
|
|
@@ -7982,7 +7995,7 @@ const Od = {
|
|
|
7982
7995
|
}
|
|
7983
7996
|
);
|
|
7984
7997
|
})(),
|
|
7985
|
-
k === "markets" && /* @__PURE__ */ d(
|
|
7998
|
+
k === "markets" && /* @__PURE__ */ d(se, { className: "hybrid-date-picker__markets-list", children: [
|
|
7986
7999
|
/* @__PURE__ */ e(Ie, { className: "hybrid-date-picker__events-section-header", children: "Market Events" }),
|
|
7987
8000
|
an.filter((F) => !We || F.id !== We.id).map((F) => /* @__PURE__ */ e(
|
|
7988
8001
|
Ot,
|
|
@@ -8066,7 +8079,7 @@ const Od = {
|
|
|
8066
8079
|
},
|
|
8067
8080
|
F.id
|
|
8068
8081
|
)),
|
|
8069
|
-
/* @__PURE__ */ e(
|
|
8082
|
+
/* @__PURE__ */ e(se, { className: "hybrid-date-picker__markets-list-add", children: /* @__PURE__ */ e(
|
|
8070
8083
|
rt,
|
|
8071
8084
|
{
|
|
8072
8085
|
fullWidth: !0,
|
|
@@ -8088,16 +8101,16 @@ const Od = {
|
|
|
8088
8101
|
) })
|
|
8089
8102
|
] })
|
|
8090
8103
|
] }),
|
|
8091
|
-
/* @__PURE__ */ e(
|
|
8104
|
+
/* @__PURE__ */ e(se, { className: "hybrid-date-picker__footer", children: U ? (
|
|
8092
8105
|
/* States 2, 3, 4: Comparing - show collapsible drawer */
|
|
8093
|
-
/* @__PURE__ */ d(
|
|
8106
|
+
/* @__PURE__ */ d(se, { sx: { width: "100%" }, children: [
|
|
8094
8107
|
/* @__PURE__ */ d(
|
|
8095
|
-
|
|
8108
|
+
se,
|
|
8096
8109
|
{
|
|
8097
8110
|
className: "hybrid-date-picker__footer-drawer-trigger",
|
|
8098
8111
|
onClick: rs,
|
|
8099
8112
|
children: [
|
|
8100
|
-
/* @__PURE__ */ d(
|
|
8113
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
8101
8114
|
/* @__PURE__ */ e(
|
|
8102
8115
|
lr,
|
|
8103
8116
|
{
|
|
@@ -8108,7 +8121,7 @@ const Od = {
|
|
|
8108
8121
|
/* @__PURE__ */ d(Ie, { variant: "body2", fontWeight: 500, color: "text.primary", component: "span", sx: { display: "flex", alignItems: "center", gap: 0.25, flexWrap: "nowrap" }, children: [
|
|
8109
8122
|
"Comparing:",
|
|
8110
8123
|
/* @__PURE__ */ d(
|
|
8111
|
-
|
|
8124
|
+
se,
|
|
8112
8125
|
{
|
|
8113
8126
|
component: "span",
|
|
8114
8127
|
className: "hybrid-date-picker__footer-drawer-range-label",
|
|
@@ -8117,14 +8130,14 @@ const Od = {
|
|
|
8117
8130
|
},
|
|
8118
8131
|
sx: { ml: 0.5 },
|
|
8119
8132
|
children: [
|
|
8120
|
-
/* @__PURE__ */ e(
|
|
8133
|
+
/* @__PURE__ */ e(se, { component: "span", sx: { color: "#2563EB", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
|
|
8121
8134
|
_t(ze)
|
|
8122
8135
|
]
|
|
8123
8136
|
}
|
|
8124
8137
|
),
|
|
8125
8138
|
" vs ",
|
|
8126
8139
|
/* @__PURE__ */ d(
|
|
8127
|
-
|
|
8140
|
+
se,
|
|
8128
8141
|
{
|
|
8129
8142
|
component: "span",
|
|
8130
8143
|
className: "hybrid-date-picker__footer-drawer-range-label",
|
|
@@ -8132,7 +8145,7 @@ const Od = {
|
|
|
8132
8145
|
F.stopPropagation(), ct(!0), pe("B");
|
|
8133
8146
|
},
|
|
8134
8147
|
children: [
|
|
8135
|
-
/* @__PURE__ */ e(
|
|
8148
|
+
/* @__PURE__ */ e(se, { component: "span", sx: { color: "#10B981", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
|
|
8136
8149
|
_t(st)
|
|
8137
8150
|
]
|
|
8138
8151
|
}
|
|
@@ -8140,7 +8153,7 @@ const Od = {
|
|
|
8140
8153
|
Pe === 3 && /* @__PURE__ */ d(Ge, { children: [
|
|
8141
8154
|
" vs ",
|
|
8142
8155
|
/* @__PURE__ */ d(
|
|
8143
|
-
|
|
8156
|
+
se,
|
|
8144
8157
|
{
|
|
8145
8158
|
component: "span",
|
|
8146
8159
|
className: "hybrid-date-picker__footer-drawer-range-label",
|
|
@@ -8148,7 +8161,7 @@ const Od = {
|
|
|
8148
8161
|
F.stopPropagation(), ct(!0), pe("C");
|
|
8149
8162
|
},
|
|
8150
8163
|
children: [
|
|
8151
|
-
/* @__PURE__ */ e(
|
|
8164
|
+
/* @__PURE__ */ e(se, { component: "span", sx: { color: "#F59E0B", fontSize: 10, mr: 0.25, lineHeight: 1 }, children: "●" }),
|
|
8152
8165
|
_t(it)
|
|
8153
8166
|
]
|
|
8154
8167
|
}
|
|
@@ -8156,7 +8169,7 @@ const Od = {
|
|
|
8156
8169
|
] })
|
|
8157
8170
|
] })
|
|
8158
8171
|
] }),
|
|
8159
|
-
/* @__PURE__ */ d(
|
|
8172
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 0.5 }, children: [
|
|
8160
8173
|
Pe < 3 && /* @__PURE__ */ e(
|
|
8161
8174
|
Ue,
|
|
8162
8175
|
{
|
|
@@ -8185,7 +8198,7 @@ const Od = {
|
|
|
8185
8198
|
]
|
|
8186
8199
|
}
|
|
8187
8200
|
),
|
|
8188
|
-
/* @__PURE__ */ e(bi, { in: rn, children: /* @__PURE__ */ d(
|
|
8201
|
+
/* @__PURE__ */ e(bi, { in: rn, children: /* @__PURE__ */ d(se, { className: "hybrid-date-picker__footer-drawer-content", children: [
|
|
8189
8202
|
/* @__PURE__ */ e(
|
|
8190
8203
|
xr,
|
|
8191
8204
|
{
|
|
@@ -8222,9 +8235,9 @@ const Od = {
|
|
|
8222
8235
|
onRemove: () => pn("C")
|
|
8223
8236
|
}
|
|
8224
8237
|
),
|
|
8225
|
-
Pe < 3 && /* @__PURE__ */ e(
|
|
8238
|
+
Pe < 3 && /* @__PURE__ */ e(se, { className: "range-card-add", onClick: mn, children: /* @__PURE__ */ e(Ft, { sx: { fontSize: 20, color: "grey.500" } }) })
|
|
8226
8239
|
] }) }),
|
|
8227
|
-
/* @__PURE__ */ e(
|
|
8240
|
+
/* @__PURE__ */ e(se, { className: "hybrid-date-picker__footer-row", sx: { justifyContent: "flex-end" }, children: /* @__PURE__ */ e(
|
|
8228
8241
|
rt,
|
|
8229
8242
|
{
|
|
8230
8243
|
variant: "contained",
|
|
@@ -8243,8 +8256,8 @@ const Od = {
|
|
|
8243
8256
|
] })
|
|
8244
8257
|
) : (
|
|
8245
8258
|
/* State 1: No comparison - show Close link or + TimeFrame button */
|
|
8246
|
-
/* @__PURE__ */ d(
|
|
8247
|
-
/* @__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(
|
|
8248
8261
|
rt,
|
|
8249
8262
|
{
|
|
8250
8263
|
size: "small",
|
|
@@ -8283,7 +8296,7 @@ const Od = {
|
|
|
8283
8296
|
children: "Close"
|
|
8284
8297
|
}
|
|
8285
8298
|
) }),
|
|
8286
|
-
/* @__PURE__ */ d(
|
|
8299
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", alignItems: "center", gap: 1.5 }, children: [
|
|
8287
8300
|
/* @__PURE__ */ e(
|
|
8288
8301
|
Ie,
|
|
8289
8302
|
{
|
|
@@ -8336,7 +8349,7 @@ const Od = {
|
|
|
8336
8349
|
) })
|
|
8337
8350
|
] });
|
|
8338
8351
|
return i ? /* @__PURE__ */ e(
|
|
8339
|
-
|
|
8352
|
+
se,
|
|
8340
8353
|
{
|
|
8341
8354
|
sx: {
|
|
8342
8355
|
width: bn,
|
|
@@ -8393,7 +8406,7 @@ const Od = {
|
|
|
8393
8406
|
/* @__PURE__ */ e(Ue, { size: "small", onClick: () => E(null), children: /* @__PURE__ */ e(wt, { fontSize: "small" }) })
|
|
8394
8407
|
] }),
|
|
8395
8408
|
/* @__PURE__ */ d(xi, { sx: { px: 2, py: 1.5 }, children: [
|
|
8396
|
-
/* @__PURE__ */ d(
|
|
8409
|
+
/* @__PURE__ */ d(se, { className: "market-edit-modal__field", children: [
|
|
8397
8410
|
/* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Name" }),
|
|
8398
8411
|
/* @__PURE__ */ e(
|
|
8399
8412
|
nr,
|
|
@@ -8407,8 +8420,8 @@ const Od = {
|
|
|
8407
8420
|
}
|
|
8408
8421
|
)
|
|
8409
8422
|
] }),
|
|
8410
|
-
/* @__PURE__ */ d(
|
|
8411
|
-
/* @__PURE__ */ d(
|
|
8423
|
+
/* @__PURE__ */ d(se, { className: "market-edit-modal__row", sx: { mt: 2 }, children: [
|
|
8424
|
+
/* @__PURE__ */ d(se, { children: [
|
|
8412
8425
|
/* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Start Date" }),
|
|
8413
8426
|
/* @__PURE__ */ e(
|
|
8414
8427
|
nr,
|
|
@@ -8422,7 +8435,7 @@ const Od = {
|
|
|
8422
8435
|
}
|
|
8423
8436
|
)
|
|
8424
8437
|
] }),
|
|
8425
|
-
/* @__PURE__ */ d(
|
|
8438
|
+
/* @__PURE__ */ d(se, { children: [
|
|
8426
8439
|
/* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "End Date" }),
|
|
8427
8440
|
/* @__PURE__ */ e(
|
|
8428
8441
|
nr,
|
|
@@ -8437,7 +8450,7 @@ const Od = {
|
|
|
8437
8450
|
)
|
|
8438
8451
|
] })
|
|
8439
8452
|
] }),
|
|
8440
|
-
/* @__PURE__ */ d(
|
|
8453
|
+
/* @__PURE__ */ d(se, { className: "market-edit-modal__field", sx: { mt: 2 }, children: [
|
|
8441
8454
|
/* @__PURE__ */ e(Ie, { variant: "caption", fontWeight: 500, color: "text.secondary", component: "label", children: "Location" }),
|
|
8442
8455
|
/* @__PURE__ */ e(
|
|
8443
8456
|
nr,
|
|
@@ -8453,7 +8466,7 @@ const Od = {
|
|
|
8453
8466
|
] })
|
|
8454
8467
|
] }),
|
|
8455
8468
|
/* @__PURE__ */ d(Ni, { sx: { px: 2, py: 1.5, justifyContent: "space-between", bgcolor: "grey.50" }, children: [
|
|
8456
|
-
g.isNew ? /* @__PURE__ */ e(
|
|
8469
|
+
g.isNew ? /* @__PURE__ */ e(se, {}) : /* @__PURE__ */ e(
|
|
8457
8470
|
rt,
|
|
8458
8471
|
{
|
|
8459
8472
|
size: "small",
|
|
@@ -8463,7 +8476,7 @@ const Od = {
|
|
|
8463
8476
|
children: "Delete"
|
|
8464
8477
|
}
|
|
8465
8478
|
),
|
|
8466
|
-
/* @__PURE__ */ d(
|
|
8479
|
+
/* @__PURE__ */ d(se, { sx: { display: "flex", gap: 1 }, children: [
|
|
8467
8480
|
/* @__PURE__ */ e(
|
|
8468
8481
|
rt,
|
|
8469
8482
|
{
|
|
@@ -8491,7 +8504,7 @@ const Od = {
|
|
|
8491
8504
|
)
|
|
8492
8505
|
] });
|
|
8493
8506
|
};
|
|
8494
|
-
|
|
8507
|
+
Hd.displayName = "HybridDatePicker";
|
|
8495
8508
|
const Wn = {
|
|
8496
8509
|
rolling: [
|
|
8497
8510
|
{ id: "7D", label: "7D" },
|
|
@@ -8663,7 +8676,7 @@ const Mr = [
|
|
|
8663
8676
|
a
|
|
8664
8677
|
] })
|
|
8665
8678
|
] }) });
|
|
8666
|
-
}, ir = (r) => r && typeof r == "object" && "rangeA" in r,
|
|
8679
|
+
}, ir = (r) => r && typeof r == "object" && "rangeA" in r, Wd = ({
|
|
8667
8680
|
value: r,
|
|
8668
8681
|
onChange: t,
|
|
8669
8682
|
preferences: n,
|
|
@@ -8694,15 +8707,15 @@ const Mr = [
|
|
|
8694
8707
|
}
|
|
8695
8708
|
}
|
|
8696
8709
|
}, [w, R, t, a, n]);
|
|
8697
|
-
|
|
8710
|
+
oe(() => {
|
|
8698
8711
|
_ && k(ir(r));
|
|
8699
|
-
}, [_, r]),
|
|
8712
|
+
}, [_, r]), oe(() => {
|
|
8700
8713
|
o !== void 0 && k(o);
|
|
8701
8714
|
}, [o]);
|
|
8702
8715
|
const L = S((G) => {
|
|
8703
8716
|
Promise.resolve().then(() => t(G));
|
|
8704
|
-
}, [t]), P =
|
|
8705
|
-
|
|
8717
|
+
}, [t]), P = ie(!1);
|
|
8718
|
+
oe(() => {
|
|
8706
8719
|
if (_) {
|
|
8707
8720
|
if (!P.current) {
|
|
8708
8721
|
P.current = !0;
|
|
@@ -8871,8 +8884,8 @@ const Mr = [
|
|
|
8871
8884
|
] })
|
|
8872
8885
|
] }) });
|
|
8873
8886
|
};
|
|
8874
|
-
|
|
8875
|
-
function
|
|
8887
|
+
Wd.displayName = "TimeFrame";
|
|
8888
|
+
function Gd({
|
|
8876
8889
|
sections: r,
|
|
8877
8890
|
onCommit: t,
|
|
8878
8891
|
onCancel: n,
|
|
@@ -8930,7 +8943,7 @@ function Wd({
|
|
|
8930
8943
|
}
|
|
8931
8944
|
);
|
|
8932
8945
|
}
|
|
8933
|
-
function
|
|
8946
|
+
function Vd(r, t, n) {
|
|
8934
8947
|
if (r < 0 || r >= t) return null;
|
|
8935
8948
|
const a = r % n, s = Math.floor(r / n), o = Math.ceil(t / n), i = [];
|
|
8936
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;
|
|
@@ -8938,7 +8951,7 @@ function Gd(r, t, n) {
|
|
|
8938
8951
|
if (c >= t) return c;
|
|
8939
8952
|
return i[0];
|
|
8940
8953
|
}
|
|
8941
|
-
function
|
|
8954
|
+
function jd({ id: r, colSpan: t, staggerDelay: n, children: a, dimCover: s }) {
|
|
8942
8955
|
const {
|
|
8943
8956
|
attributes: o,
|
|
8944
8957
|
listeners: i,
|
|
@@ -8967,7 +8980,7 @@ function Vd({ id: r, colSpan: t, staggerDelay: n, children: a, dimCover: s }) {
|
|
|
8967
8980
|
}
|
|
8968
8981
|
);
|
|
8969
8982
|
}
|
|
8970
|
-
function
|
|
8983
|
+
function Kd({ currentPage: r, totalPages: t, onPageChange: n }) {
|
|
8971
8984
|
if (t <= 1) return null;
|
|
8972
8985
|
const a = r > 0, s = r < t - 1;
|
|
8973
8986
|
return /* @__PURE__ */ d("div", { className: "gloss-grid__pagination", children: [
|
|
@@ -9003,15 +9016,15 @@ function jd({ currentPage: r, totalPages: t, onPageChange: n }) {
|
|
|
9003
9016
|
)
|
|
9004
9017
|
] });
|
|
9005
9018
|
}
|
|
9006
|
-
const
|
|
9019
|
+
const Yd = 30, Ud = {
|
|
9007
9020
|
initial: { opacity: 0, scale: 0.95 },
|
|
9008
9021
|
animate: { opacity: 1, scale: 1 },
|
|
9009
9022
|
exit: { opacity: 0, scale: 0.95 }
|
|
9010
|
-
},
|
|
9011
|
-
duration:
|
|
9023
|
+
}, Xd = {
|
|
9024
|
+
duration: ud.extrude / 1e3,
|
|
9012
9025
|
// seconds, per framer-motion contract
|
|
9013
9026
|
ease: [0.22, 1, 0.36, 1]
|
|
9014
|
-
},
|
|
9027
|
+
}, qd = q.memo(function({
|
|
9015
9028
|
cards: t,
|
|
9016
9029
|
cardOrder: n,
|
|
9017
9030
|
layout: a,
|
|
@@ -9021,7 +9034,7 @@ const Kd = 30, Yd = {
|
|
|
9021
9034
|
renderEmptySlot: c,
|
|
9022
9035
|
configSections: l = []
|
|
9023
9036
|
}) {
|
|
9024
|
-
const [u, m] = O(null), p =
|
|
9037
|
+
const [u, m] = O(null), p = dd(), f = p?.activeCardId ?? null, y = Qi(
|
|
9025
9038
|
kn(eo, { activationConstraint: { distance: 5 } }),
|
|
9026
9039
|
kn(to, { coordinateGetter: so })
|
|
9027
9040
|
), b = S((x) => {
|
|
@@ -9040,7 +9053,7 @@ const Kd = 30, Yd = {
|
|
|
9040
9053
|
if (!f) return null;
|
|
9041
9054
|
const x = C.findIndex((L) => L.id === f);
|
|
9042
9055
|
if (x === -1) return null;
|
|
9043
|
-
const D =
|
|
9056
|
+
const D = Vd(x, C.length, a.columns);
|
|
9044
9057
|
if (D === null) return null;
|
|
9045
9058
|
const N = D >= C.length, R = !N, z = R ? C[D]?.id ?? null : null;
|
|
9046
9059
|
return { activeIndex: x, extrudeIndex: D, isEmptySlot: N, isDimCover: R, dimCoverId: z };
|
|
@@ -9069,11 +9082,11 @@ const Kd = 30, Yd = {
|
|
|
9069
9082
|
C.map((x, D) => {
|
|
9070
9083
|
const N = I?.isDimCover === !0 && I.dimCoverId === x.id;
|
|
9071
9084
|
return /* @__PURE__ */ e(
|
|
9072
|
-
|
|
9085
|
+
jd,
|
|
9073
9086
|
{
|
|
9074
9087
|
id: x.id,
|
|
9075
9088
|
colSpan: x.colSpan,
|
|
9076
|
-
staggerDelay: `${D *
|
|
9089
|
+
staggerDelay: `${D * Yd}ms`,
|
|
9077
9090
|
dimCover: N,
|
|
9078
9091
|
children: i(x)
|
|
9079
9092
|
},
|
|
@@ -9086,11 +9099,11 @@ const Kd = 30, Yd = {
|
|
|
9086
9099
|
return /* @__PURE__ */ e(
|
|
9087
9100
|
Ct.div,
|
|
9088
9101
|
{
|
|
9089
|
-
variants:
|
|
9102
|
+
variants: Ud,
|
|
9090
9103
|
initial: "initial",
|
|
9091
9104
|
animate: "animate",
|
|
9092
9105
|
exit: "exit",
|
|
9093
|
-
transition:
|
|
9106
|
+
transition: Xd,
|
|
9094
9107
|
style: {
|
|
9095
9108
|
// Grid placement: pin to computed extrude slot. No
|
|
9096
9109
|
// width/height animation (AN-01 — transform+opacity only).
|
|
@@ -9099,7 +9112,7 @@ const Kd = 30, Yd = {
|
|
|
9099
9112
|
gridColumn: `${x} / span 1`
|
|
9100
9113
|
},
|
|
9101
9114
|
children: /* @__PURE__ */ e(
|
|
9102
|
-
|
|
9115
|
+
Gd,
|
|
9103
9116
|
{
|
|
9104
9117
|
sections: l,
|
|
9105
9118
|
onCommit: () => p?.commitConfig(),
|
|
@@ -9127,7 +9140,7 @@ const Kd = 30, Yd = {
|
|
|
9127
9140
|
}
|
|
9128
9141
|
),
|
|
9129
9142
|
/* @__PURE__ */ e(
|
|
9130
|
-
|
|
9143
|
+
Kd,
|
|
9131
9144
|
{
|
|
9132
9145
|
currentPage: a.currentPage,
|
|
9133
9146
|
totalPages: a.totalPages,
|
|
@@ -9136,8 +9149,8 @@ const Kd = 30, Yd = {
|
|
|
9136
9149
|
)
|
|
9137
9150
|
] });
|
|
9138
9151
|
});
|
|
9139
|
-
|
|
9140
|
-
const
|
|
9152
|
+
qd.displayName = "MetricCardGrid";
|
|
9153
|
+
const Zd = q.memo(function({
|
|
9141
9154
|
tabs: t,
|
|
9142
9155
|
activeTabId: n,
|
|
9143
9156
|
onTabChange: a,
|
|
@@ -9269,8 +9282,8 @@ const qd = q.memo(function({
|
|
|
9269
9282
|
)
|
|
9270
9283
|
] });
|
|
9271
9284
|
});
|
|
9272
|
-
|
|
9273
|
-
const
|
|
9285
|
+
Zd.displayName = "TabbedDataView";
|
|
9286
|
+
const Jd = function(t) {
|
|
9274
9287
|
const n = {
|
|
9275
9288
|
variant: "sparkline",
|
|
9276
9289
|
label: t.label,
|
|
@@ -9296,8 +9309,8 @@ const Zd = function(t) {
|
|
|
9296
9309
|
}
|
|
9297
9310
|
);
|
|
9298
9311
|
};
|
|
9299
|
-
|
|
9300
|
-
const
|
|
9312
|
+
Jd.displayName = "TrendCard";
|
|
9313
|
+
const Qd = function(t) {
|
|
9301
9314
|
const n = {
|
|
9302
9315
|
variant: "bars",
|
|
9303
9316
|
label: t.label,
|
|
@@ -9323,8 +9336,8 @@ const Jd = function(t) {
|
|
|
9323
9336
|
}
|
|
9324
9337
|
);
|
|
9325
9338
|
};
|
|
9326
|
-
|
|
9327
|
-
const
|
|
9339
|
+
Qd.displayName = "BarChartCard";
|
|
9340
|
+
const eu = function(t) {
|
|
9328
9341
|
const n = {
|
|
9329
9342
|
variant: "donut",
|
|
9330
9343
|
label: t.label,
|
|
@@ -9351,8 +9364,8 @@ const Qd = function(t) {
|
|
|
9351
9364
|
}
|
|
9352
9365
|
);
|
|
9353
9366
|
};
|
|
9354
|
-
|
|
9355
|
-
const
|
|
9367
|
+
eu.displayName = "DistributionCard";
|
|
9368
|
+
const tu = function(t) {
|
|
9356
9369
|
const n = {
|
|
9357
9370
|
variant: "highlight",
|
|
9358
9371
|
label: t.label,
|
|
@@ -9377,8 +9390,8 @@ const eu = function(t) {
|
|
|
9377
9390
|
}
|
|
9378
9391
|
);
|
|
9379
9392
|
};
|
|
9380
|
-
|
|
9381
|
-
const
|
|
9393
|
+
tu.displayName = "HighlightCard";
|
|
9394
|
+
const ru = function(t) {
|
|
9382
9395
|
const n = {
|
|
9383
9396
|
variant: "arrow",
|
|
9384
9397
|
label: t.label,
|
|
@@ -9404,8 +9417,8 @@ const tu = function(t) {
|
|
|
9404
9417
|
}
|
|
9405
9418
|
);
|
|
9406
9419
|
};
|
|
9407
|
-
|
|
9408
|
-
const
|
|
9420
|
+
ru.displayName = "DirectionCard";
|
|
9421
|
+
const nu = function(t) {
|
|
9409
9422
|
const n = {
|
|
9410
9423
|
variant: "object-arrow",
|
|
9411
9424
|
label: t.label,
|
|
@@ -9431,8 +9444,8 @@ const ru = function(t) {
|
|
|
9431
9444
|
}
|
|
9432
9445
|
);
|
|
9433
9446
|
};
|
|
9434
|
-
|
|
9435
|
-
const
|
|
9447
|
+
nu.displayName = "ProgressCard";
|
|
9448
|
+
const au = function(t) {
|
|
9436
9449
|
const n = {
|
|
9437
9450
|
variant: "versus",
|
|
9438
9451
|
label: t.label,
|
|
@@ -9457,8 +9470,8 @@ const nu = function(t) {
|
|
|
9457
9470
|
}
|
|
9458
9471
|
);
|
|
9459
9472
|
};
|
|
9460
|
-
|
|
9461
|
-
const
|
|
9473
|
+
au.displayName = "ComparisonCard";
|
|
9474
|
+
const su = function(t) {
|
|
9462
9475
|
const n = {
|
|
9463
9476
|
variant: "segmented",
|
|
9464
9477
|
label: t.label,
|
|
@@ -9483,8 +9496,8 @@ const au = function(t) {
|
|
|
9483
9496
|
}
|
|
9484
9497
|
);
|
|
9485
9498
|
};
|
|
9486
|
-
|
|
9487
|
-
const
|
|
9499
|
+
su.displayName = "SegmentCard";
|
|
9500
|
+
const iu = function(t) {
|
|
9488
9501
|
const n = {
|
|
9489
9502
|
variant: "standard",
|
|
9490
9503
|
label: t.label,
|
|
@@ -9508,7 +9521,7 @@ const su = function(t) {
|
|
|
9508
9521
|
}
|
|
9509
9522
|
);
|
|
9510
9523
|
};
|
|
9511
|
-
|
|
9524
|
+
iu.displayName = "SimpleMetricCard";
|
|
9512
9525
|
const Pr = ({
|
|
9513
9526
|
type: r,
|
|
9514
9527
|
className: t = ""
|
|
@@ -9585,7 +9598,7 @@ const Pr = ({
|
|
|
9585
9598
|
);
|
|
9586
9599
|
};
|
|
9587
9600
|
Ba.displayName = "PaymentMethodSelect";
|
|
9588
|
-
const
|
|
9601
|
+
const ou = (r) => `${r.label || r.street}, ${r.city}`, lu = ({
|
|
9589
9602
|
addresses: r,
|
|
9590
9603
|
value: t,
|
|
9591
9604
|
onChange: n,
|
|
@@ -9615,7 +9628,7 @@ const iu = (r) => `${r.label || r.street}, ${r.city}`, ou = ({
|
|
|
9615
9628
|
f.zip
|
|
9616
9629
|
] })
|
|
9617
9630
|
] }),
|
|
9618
|
-
triggerLabel: s === "short" ? /* @__PURE__ */ e("span", { children:
|
|
9631
|
+
triggerLabel: s === "short" ? /* @__PURE__ */ e("span", { children: ou(f) }) : /* @__PURE__ */ d("div", { className: "address-trigger-full", children: [
|
|
9619
9632
|
f.label && /* @__PURE__ */ e("strong", { children: f.label }),
|
|
9620
9633
|
/* @__PURE__ */ e("div", { className: "address-trigger-full__name", children: f.name }),
|
|
9621
9634
|
/* @__PURE__ */ e("div", { className: "address-trigger-full__street", children: f.street }),
|
|
@@ -9655,7 +9668,7 @@ const iu = (r) => `${r.label || r.street}, ${r.city}`, ou = ({
|
|
|
9655
9668
|
}
|
|
9656
9669
|
);
|
|
9657
9670
|
};
|
|
9658
|
-
|
|
9671
|
+
lu.displayName = "AddressSelect";
|
|
9659
9672
|
const Ra = q.forwardRef(
|
|
9660
9673
|
({
|
|
9661
9674
|
onSearch: r,
|
|
@@ -9684,7 +9697,7 @@ const Ra = q.forwardRef(
|
|
|
9684
9697
|
className: g,
|
|
9685
9698
|
autoComplete: E
|
|
9686
9699
|
}, x) => {
|
|
9687
|
-
const D =
|
|
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(
|
|
9688
9701
|
(X) => {
|
|
9689
9702
|
const te = X.target.value;
|
|
9690
9703
|
u === void 0 && R(te), t > 0 ? (Y.current && clearTimeout(Y.current), Y.current = setTimeout(() => {
|
|
@@ -9733,13 +9746,13 @@ const Ra = q.forwardRef(
|
|
|
9733
9746
|
},
|
|
9734
9747
|
[b]
|
|
9735
9748
|
);
|
|
9736
|
-
|
|
9749
|
+
oe(() => {
|
|
9737
9750
|
if (!i) return;
|
|
9738
9751
|
const X = (te) => {
|
|
9739
9752
|
(te.metaKey || te.ctrlKey) && te.key === c && (te.preventDefault(), D.current?.focus());
|
|
9740
9753
|
};
|
|
9741
9754
|
return document.addEventListener("keydown", X), () => document.removeEventListener("keydown", X);
|
|
9742
|
-
}, [i, c]),
|
|
9755
|
+
}, [i, c]), oe(() => () => {
|
|
9743
9756
|
Y.current && clearTimeout(Y.current);
|
|
9744
9757
|
}, []);
|
|
9745
9758
|
const U = /* @__PURE__ */ d("div", { className: "gloss-search-input__actions", children: [
|
|
@@ -9808,19 +9821,19 @@ const Ra = q.forwardRef(
|
|
|
9808
9821
|
}
|
|
9809
9822
|
);
|
|
9810
9823
|
Ra.displayName = "SearchInput";
|
|
9811
|
-
const
|
|
9824
|
+
const cu = [
|
|
9812
9825
|
{ id: "length", label: "At least 8 characters", validate: (r) => r.length >= 8 },
|
|
9813
9826
|
{ id: "lowercase", label: "Contains lowercase letter", validate: (r) => /[a-z]/.test(r) },
|
|
9814
9827
|
{ id: "uppercase", label: "Contains uppercase letter", validate: (r) => /[A-Z]/.test(r) },
|
|
9815
9828
|
{ id: "number", label: "Contains number", validate: (r) => /\d/.test(r) },
|
|
9816
9829
|
{ id: "special", label: "Contains special character", validate: (r) => /[!@#$%^&*(),.?":{}|<>]/.test(r) }
|
|
9817
|
-
],
|
|
9830
|
+
], du = (r) => {
|
|
9818
9831
|
const t = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*";
|
|
9819
9832
|
let n = "";
|
|
9820
9833
|
for (let a = 0; a < r; a++)
|
|
9821
9834
|
n += t.charAt(Math.floor(Math.random() * t.length));
|
|
9822
9835
|
return n;
|
|
9823
|
-
},
|
|
9836
|
+
}, uu = (r, t) => {
|
|
9824
9837
|
if (!r) return "weak";
|
|
9825
9838
|
const a = t.filter((s) => s.validate(r)).length / t.length;
|
|
9826
9839
|
return a < 0.4 ? "weak" : a < 0.6 ? "fair" : a < 0.8 ? "good" : "strong";
|
|
@@ -9829,7 +9842,7 @@ const lu = [
|
|
|
9829
9842
|
showToggle: r = !0,
|
|
9830
9843
|
showStrength: t = !1,
|
|
9831
9844
|
strength: n,
|
|
9832
|
-
strengthRules: a =
|
|
9845
|
+
strengthRules: a = cu,
|
|
9833
9846
|
showGenerate: s = !1,
|
|
9834
9847
|
onGenerate: o,
|
|
9835
9848
|
generateLength: i = 16,
|
|
@@ -9850,7 +9863,7 @@ const lu = [
|
|
|
9850
9863
|
autoComplete: k = "new-password"
|
|
9851
9864
|
}, I) => {
|
|
9852
9865
|
const [g, E] = O(!1), [x, D] = O(String(u ?? "")), N = l !== void 0 ? String(l) : x, R = ee(
|
|
9853
|
-
() =>
|
|
9866
|
+
() => uu(N, a),
|
|
9854
9867
|
[N, a]
|
|
9855
9868
|
), z = n ?? R, L = ee(
|
|
9856
9869
|
() => a.map((j) => ({
|
|
@@ -9866,7 +9879,7 @@ const lu = [
|
|
|
9866
9879
|
), H = S(() => {
|
|
9867
9880
|
E((j) => !j);
|
|
9868
9881
|
}, []), Y = S(() => {
|
|
9869
|
-
const j =
|
|
9882
|
+
const j = du(i);
|
|
9870
9883
|
o ? o(j) : (l === void 0 && D(j), m?.({
|
|
9871
9884
|
target: { value: j },
|
|
9872
9885
|
currentTarget: { value: j }
|
|
@@ -9962,7 +9975,7 @@ const lu = [
|
|
|
9962
9975
|
}
|
|
9963
9976
|
);
|
|
9964
9977
|
ur.displayName = "PasswordInput";
|
|
9965
|
-
const
|
|
9978
|
+
const mu = q.forwardRef(
|
|
9966
9979
|
({
|
|
9967
9980
|
value: r,
|
|
9968
9981
|
defaultValue: t = [],
|
|
@@ -9983,7 +9996,7 @@ const uu = q.forwardRef(
|
|
|
9983
9996
|
id: v,
|
|
9984
9997
|
name: h
|
|
9985
9998
|
}, C) => {
|
|
9986
|
-
const T = Le(), w = v || T, k =
|
|
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(
|
|
9987
10000
|
(de) => de.toLowerCase().includes(E.toLowerCase()) && (i || !Y.includes(de))
|
|
9988
10001
|
) : [], M = R && V.length > 0, W = s === void 0 || Y.length < s, j = S(
|
|
9989
10002
|
(de) => {
|
|
@@ -9992,56 +10005,56 @@ const uu = q.forwardRef(
|
|
|
9992
10005
|
[H, n]
|
|
9993
10006
|
), G = S(
|
|
9994
10007
|
(de) => {
|
|
9995
|
-
const
|
|
9996
|
-
if (
|
|
10008
|
+
const ae = de.trim();
|
|
10009
|
+
if (ae) {
|
|
9997
10010
|
if (!W) {
|
|
9998
10011
|
N(`Maximum of ${s} tags allowed`);
|
|
9999
10012
|
return;
|
|
10000
10013
|
}
|
|
10001
|
-
if (!i && Y.includes(
|
|
10014
|
+
if (!i && Y.includes(ae)) {
|
|
10002
10015
|
N("Duplicate tag");
|
|
10003
10016
|
return;
|
|
10004
10017
|
}
|
|
10005
|
-
if (o &&
|
|
10018
|
+
if (o && ae.length > o) {
|
|
10006
10019
|
N(`Tag must be ${o} characters or less`);
|
|
10007
10020
|
return;
|
|
10008
10021
|
}
|
|
10009
10022
|
if (c) {
|
|
10010
|
-
const ge = c(
|
|
10023
|
+
const ge = c(ae);
|
|
10011
10024
|
if (ge !== !0) {
|
|
10012
10025
|
N(typeof ge == "string" ? ge : "Invalid tag");
|
|
10013
10026
|
return;
|
|
10014
10027
|
}
|
|
10015
10028
|
}
|
|
10016
|
-
N(null), j([...Y,
|
|
10029
|
+
N(null), j([...Y, ae]), x(""), P(-1);
|
|
10017
10030
|
}
|
|
10018
10031
|
},
|
|
10019
10032
|
[Y, W, s, i, o, c, j]
|
|
10020
10033
|
), $ = S(
|
|
10021
10034
|
(de) => {
|
|
10022
|
-
const
|
|
10023
|
-
j(
|
|
10035
|
+
const ae = Y.filter((ge, Me) => Me !== de);
|
|
10036
|
+
j(ae), N(null);
|
|
10024
10037
|
},
|
|
10025
10038
|
[Y, j]
|
|
10026
10039
|
), K = S(
|
|
10027
10040
|
(de) => {
|
|
10028
|
-
const
|
|
10041
|
+
const ae = de.target.value, ge = a.filter((Me) => Me !== "Enter");
|
|
10029
10042
|
for (const Me of ge)
|
|
10030
|
-
if (
|
|
10031
|
-
|
|
10043
|
+
if (ae.includes(Me)) {
|
|
10044
|
+
ae.split(Me).forEach((we) => {
|
|
10032
10045
|
we.trim() && G(we);
|
|
10033
10046
|
});
|
|
10034
10047
|
return;
|
|
10035
10048
|
}
|
|
10036
|
-
x(
|
|
10049
|
+
x(ae), P(-1), N(null);
|
|
10037
10050
|
},
|
|
10038
10051
|
[a, G]
|
|
10039
10052
|
), Z = S(
|
|
10040
10053
|
(de) => {
|
|
10041
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(
|
|
10042
|
-
(
|
|
10055
|
+
(ae) => ae < V.length - 1 ? ae + 1 : 0
|
|
10043
10056
|
)) : de.key === "ArrowUp" && M ? (de.preventDefault(), P(
|
|
10044
|
-
(
|
|
10057
|
+
(ae) => ae > 0 ? ae - 1 : V.length - 1
|
|
10045
10058
|
)) : de.key === "Escape" && (x(""), P(-1));
|
|
10046
10059
|
},
|
|
10047
10060
|
[
|
|
@@ -10082,7 +10095,7 @@ const uu = q.forwardRef(
|
|
|
10082
10095
|
/* @__PURE__ */ d("div", { className: be, onClick: te, children: [
|
|
10083
10096
|
h && /* @__PURE__ */ e("input", { type: "hidden", name: h, value: Y.join(",") }),
|
|
10084
10097
|
/* @__PURE__ */ d("div", { className: "gloss-tag-input__tags", children: [
|
|
10085
|
-
Y.map((de,
|
|
10098
|
+
Y.map((de, ae) => /* @__PURE__ */ d("span", { className: "gloss-tag-input__tag", children: [
|
|
10086
10099
|
/* @__PURE__ */ e("span", { className: "gloss-tag-input__tag-text", children: de }),
|
|
10087
10100
|
!m && /* @__PURE__ */ e(
|
|
10088
10101
|
"button",
|
|
@@ -10090,14 +10103,14 @@ const uu = q.forwardRef(
|
|
|
10090
10103
|
type: "button",
|
|
10091
10104
|
className: "gloss-tag-input__tag-remove",
|
|
10092
10105
|
onClick: (ge) => {
|
|
10093
|
-
ge.stopPropagation(), $(
|
|
10106
|
+
ge.stopPropagation(), $(ae);
|
|
10094
10107
|
},
|
|
10095
10108
|
"aria-label": `Remove ${de}`,
|
|
10096
10109
|
tabIndex: -1,
|
|
10097
10110
|
children: /* @__PURE__ */ e(ve, { name: "x", size: "sm" })
|
|
10098
10111
|
}
|
|
10099
10112
|
)
|
|
10100
|
-
] }, `${de}-${
|
|
10113
|
+
] }, `${de}-${ae}`)),
|
|
10101
10114
|
W && /* @__PURE__ */ e(
|
|
10102
10115
|
"input",
|
|
10103
10116
|
{
|
|
@@ -10118,12 +10131,12 @@ const uu = q.forwardRef(
|
|
|
10118
10131
|
}
|
|
10119
10132
|
)
|
|
10120
10133
|
] }),
|
|
10121
|
-
M && /* @__PURE__ */ e("ul", { className: "gloss-tag-input__suggestions", role: "listbox", children: V.map((de,
|
|
10134
|
+
M && /* @__PURE__ */ e("ul", { className: "gloss-tag-input__suggestions", role: "listbox", children: V.map((de, ae) => /* @__PURE__ */ e(
|
|
10122
10135
|
"li",
|
|
10123
10136
|
{
|
|
10124
10137
|
role: "option",
|
|
10125
|
-
"aria-selected":
|
|
10126
|
-
className: `gloss-tag-input__suggestion ${
|
|
10138
|
+
"aria-selected": ae === L,
|
|
10139
|
+
className: `gloss-tag-input__suggestion ${ae === L ? "gloss-tag-input__suggestion--selected" : ""}`,
|
|
10127
10140
|
onClick: () => pe(de),
|
|
10128
10141
|
children: de
|
|
10129
10142
|
},
|
|
@@ -10144,8 +10157,8 @@ const uu = q.forwardRef(
|
|
|
10144
10157
|
] });
|
|
10145
10158
|
}
|
|
10146
10159
|
);
|
|
10147
|
-
|
|
10148
|
-
const
|
|
10160
|
+
mu.displayName = "TagInput";
|
|
10161
|
+
const pu = [
|
|
10149
10162
|
{ code: "US", name: "United States", dialCode: "+1", format: "(###) ###-####" },
|
|
10150
10163
|
{ code: "CA", name: "Canada", dialCode: "+1", format: "(###) ###-####" },
|
|
10151
10164
|
{ code: "GB", name: "United Kingdom", dialCode: "+44", format: "#### ### ####" },
|
|
@@ -10173,7 +10186,7 @@ const mu = [
|
|
|
10173
10186
|
nationalNumber: r.slice(a.dialCode.length)
|
|
10174
10187
|
};
|
|
10175
10188
|
return { country: null, nationalNumber: r.slice(1) };
|
|
10176
|
-
},
|
|
10189
|
+
}, fu = (r, t) => {
|
|
10177
10190
|
if (!t) return r;
|
|
10178
10191
|
const n = r.replace(/\D/g, "");
|
|
10179
10192
|
let a = "", s = 0;
|
|
@@ -10182,13 +10195,13 @@ const mu = [
|
|
|
10182
10195
|
o === "#" ? (a += n[s], s++) : a += o;
|
|
10183
10196
|
}
|
|
10184
10197
|
return s < n.length && (a += n.slice(s)), a;
|
|
10185
|
-
}, Kn = (r) => r.replace(/\D/g, ""),
|
|
10198
|
+
}, Kn = (r) => r.replace(/\D/g, ""), gu = q.forwardRef(
|
|
10186
10199
|
({
|
|
10187
10200
|
value: r,
|
|
10188
10201
|
defaultValue: t,
|
|
10189
10202
|
onChange: n,
|
|
10190
10203
|
defaultCountry: a = "US",
|
|
10191
|
-
countries: s =
|
|
10204
|
+
countries: s = pu,
|
|
10192
10205
|
showCountrySelect: o = !0,
|
|
10193
10206
|
format: i = "national",
|
|
10194
10207
|
label: c,
|
|
@@ -10211,7 +10224,7 @@ const mu = [
|
|
|
10211
10224
|
), [x, D] = O(!1), N = r !== void 0, R = ee(
|
|
10212
10225
|
() => N ? jn(r || "", s) : null,
|
|
10213
10226
|
[N, r, s]
|
|
10214
|
-
), z = R?.country || k, L = R?.nationalNumber || g, P =
|
|
10227
|
+
), z = R?.country || k, L = R?.nationalNumber || g, P = fu(L, z.format), H = S(
|
|
10215
10228
|
(G, $) => {
|
|
10216
10229
|
const K = Kn($);
|
|
10217
10230
|
return K ? `${G.dialCode}${K}` : "";
|
|
@@ -10305,7 +10318,7 @@ const mu = [
|
|
|
10305
10318
|
] });
|
|
10306
10319
|
}
|
|
10307
10320
|
);
|
|
10308
|
-
|
|
10321
|
+
gu.displayName = "PhoneInput";
|
|
10309
10322
|
const za = q.forwardRef(
|
|
10310
10323
|
(r, t) => {
|
|
10311
10324
|
const {
|
|
@@ -10373,8 +10386,8 @@ function Ur({
|
|
|
10373
10386
|
);
|
|
10374
10387
|
}
|
|
10375
10388
|
Ur.displayName = "PresetPopover";
|
|
10376
|
-
const
|
|
10377
|
-
function
|
|
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() {
|
|
10378
10391
|
return /* @__PURE__ */ d("div", { className: "gloss-autocomplete__loading", children: [
|
|
10379
10392
|
/* @__PURE__ */ e(qe, { name: "loader" }),
|
|
10380
10393
|
"Loading..."
|
|
@@ -10385,10 +10398,10 @@ function Aa(r) {
|
|
|
10385
10398
|
options: t,
|
|
10386
10399
|
value: n,
|
|
10387
10400
|
onChange: a,
|
|
10388
|
-
getOptionLabel: s =
|
|
10401
|
+
getOptionLabel: s = hu,
|
|
10389
10402
|
onSearch: o,
|
|
10390
10403
|
resultSlot: i,
|
|
10391
|
-
emptySlot: c =
|
|
10404
|
+
emptySlot: c = bu,
|
|
10392
10405
|
loadingSlot: l,
|
|
10393
10406
|
placeholder: u,
|
|
10394
10407
|
label: m,
|
|
@@ -10399,8 +10412,8 @@ function Aa(r) {
|
|
|
10399
10412
|
disabled: _ = !1,
|
|
10400
10413
|
size: v = "md",
|
|
10401
10414
|
className: h
|
|
10402
|
-
} = r, [C, T] = O(""), [w, k] = O(!1), [I, g] = O(-1), E =
|
|
10403
|
-
|
|
10415
|
+
} = r, [C, T] = O(""), [w, k] = O(!1), [I, g] = O(-1), E = ie(null), x = ie(null), D = ie(null);
|
|
10416
|
+
oe(() => {
|
|
10404
10417
|
n != null && T(s(n));
|
|
10405
10418
|
}, [n, s]);
|
|
10406
10419
|
const N = ee(() => {
|
|
@@ -10449,9 +10462,9 @@ function Aa(r) {
|
|
|
10449
10462
|
},
|
|
10450
10463
|
[w, N, I, z]
|
|
10451
10464
|
);
|
|
10452
|
-
|
|
10465
|
+
oe(() => {
|
|
10453
10466
|
I >= 0 && D.current && D.current.querySelectorAll('[role="option"]')[I]?.scrollIntoView({ block: "nearest" });
|
|
10454
|
-
}, [I]),
|
|
10467
|
+
}, [I]), oe(() => () => {
|
|
10455
10468
|
x.current && clearTimeout(x.current);
|
|
10456
10469
|
}, []);
|
|
10457
10470
|
const P = S(() => {
|
|
@@ -10487,7 +10500,7 @@ function Aa(r) {
|
|
|
10487
10500
|
onDismiss: H,
|
|
10488
10501
|
anchorRef: E,
|
|
10489
10502
|
placement: "bottom-start",
|
|
10490
|
-
children: b ? l ?? /* @__PURE__ */ e(
|
|
10503
|
+
children: b ? l ?? /* @__PURE__ */ e(yu, {}) : N.length === 0 ? c : /* @__PURE__ */ e(
|
|
10491
10504
|
"ul",
|
|
10492
10505
|
{
|
|
10493
10506
|
ref: D,
|
|
@@ -10538,7 +10551,7 @@ function $a(r) {
|
|
|
10538
10551
|
maxSelected: b,
|
|
10539
10552
|
searchable: _ = !1,
|
|
10540
10553
|
className: v
|
|
10541
|
-
} = r, [h, C] = O(!1), [T, w] = O(""), [k, I] = O(-1), g =
|
|
10554
|
+
} = r, [h, C] = O(!1), [T, w] = O(""), [k, I] = O(-1), g = ie(null), E = ie(null), x = ie(null), D = ee(
|
|
10542
10555
|
() => t.filter((W) => n.includes(W.value)),
|
|
10543
10556
|
[t, n]
|
|
10544
10557
|
), N = ee(() => {
|
|
@@ -10585,11 +10598,11 @@ function $a(r) {
|
|
|
10585
10598
|
},
|
|
10586
10599
|
[f, h, N, k, z, _, T, n, L]
|
|
10587
10600
|
);
|
|
10588
|
-
|
|
10601
|
+
oe(() => {
|
|
10589
10602
|
k >= 0 && x.current && x.current.querySelectorAll('[role="option"]')[k]?.scrollIntoView({ block: "nearest" });
|
|
10590
|
-
}, [k]),
|
|
10603
|
+
}, [k]), oe(() => {
|
|
10591
10604
|
h && _ && E.current && E.current.focus();
|
|
10592
|
-
}, [h, _]),
|
|
10605
|
+
}, [h, _]), oe(() => {
|
|
10593
10606
|
h || (w(""), I(-1));
|
|
10594
10607
|
}, [h]);
|
|
10595
10608
|
const H = S(() => {
|
|
@@ -10735,20 +10748,20 @@ function $a(r) {
|
|
|
10735
10748
|
] });
|
|
10736
10749
|
}
|
|
10737
10750
|
$a.displayName = "MultiSelect";
|
|
10738
|
-
const
|
|
10751
|
+
const vu = {
|
|
10739
10752
|
xs: { size: "24px", fontSize: "0.625rem" },
|
|
10740
10753
|
sm: { size: "32px", fontSize: "0.75rem" },
|
|
10741
10754
|
md: { size: "40px", fontSize: "0.875rem" },
|
|
10742
10755
|
lg: { size: "48px", fontSize: "1rem" },
|
|
10743
10756
|
xl: { size: "64px", fontSize: "1.25rem" }
|
|
10744
|
-
},
|
|
10757
|
+
}, _u = {
|
|
10745
10758
|
bg: B.BgMuted,
|
|
10746
10759
|
color: B.TextSecondary
|
|
10747
|
-
},
|
|
10760
|
+
}, xu = {
|
|
10748
10761
|
circle: "50%",
|
|
10749
10762
|
square: Se.Md
|
|
10750
10763
|
};
|
|
10751
|
-
function
|
|
10764
|
+
function Nu() {
|
|
10752
10765
|
return /* @__PURE__ */ e(
|
|
10753
10766
|
"svg",
|
|
10754
10767
|
{
|
|
@@ -10773,14 +10786,14 @@ function Xr(r) {
|
|
|
10773
10786
|
} = r, l = { ...c };
|
|
10774
10787
|
delete l.className, delete l.style, delete l.definition;
|
|
10775
10788
|
const u = {
|
|
10776
|
-
...
|
|
10777
|
-
...
|
|
10778
|
-
radius:
|
|
10789
|
+
..._u,
|
|
10790
|
+
...vu[t],
|
|
10791
|
+
radius: xu[n]
|
|
10779
10792
|
}, m = [
|
|
10780
10793
|
"gloss-preset-avatar",
|
|
10781
10794
|
`gloss-preset-avatar--${t}`
|
|
10782
10795
|
].join(" ");
|
|
10783
|
-
let p = /* @__PURE__ */ e(
|
|
10796
|
+
let p = /* @__PURE__ */ e(Nu, {});
|
|
10784
10797
|
return i ? p = i : o && (p = o), /* @__PURE__ */ e(
|
|
10785
10798
|
ri,
|
|
10786
10799
|
{
|
|
@@ -10794,7 +10807,7 @@ function Xr(r) {
|
|
|
10794
10807
|
);
|
|
10795
10808
|
}
|
|
10796
10809
|
Xr.displayName = "PresetAvatar";
|
|
10797
|
-
function
|
|
10810
|
+
function Su(r, t) {
|
|
10798
10811
|
return /* @__PURE__ */ d("div", { className: `gloss-entity-picker__result ${t ? "gloss-entity-picker__result--highlighted" : ""}`, children: [
|
|
10799
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,
|
|
10800
10813
|
/* @__PURE__ */ d("div", { className: "gloss-entity-picker__result-info", children: [
|
|
@@ -10803,13 +10816,13 @@ function Nu(r, t) {
|
|
|
10803
10816
|
] })
|
|
10804
10817
|
] });
|
|
10805
10818
|
}
|
|
10806
|
-
const
|
|
10807
|
-
function
|
|
10819
|
+
const Cu = /* @__PURE__ */ e("div", { className: "gloss-entity-picker__empty", children: "No entities found. No matching entities found." });
|
|
10820
|
+
function wu({
|
|
10808
10821
|
entities: r,
|
|
10809
10822
|
value: t,
|
|
10810
10823
|
onChange: n,
|
|
10811
10824
|
onSearch: a,
|
|
10812
|
-
resultSlot: s =
|
|
10825
|
+
resultSlot: s = Su,
|
|
10813
10826
|
selectedSlot: o,
|
|
10814
10827
|
placeholder: i = "Search entities...",
|
|
10815
10828
|
label: c,
|
|
@@ -10828,7 +10841,7 @@ function Cu({
|
|
|
10828
10841
|
getOptionLabel: (y) => y.label,
|
|
10829
10842
|
onSearch: a,
|
|
10830
10843
|
resultSlot: s,
|
|
10831
|
-
emptySlot:
|
|
10844
|
+
emptySlot: Cu,
|
|
10832
10845
|
placeholder: i,
|
|
10833
10846
|
label: c,
|
|
10834
10847
|
isLoading: l,
|
|
@@ -10837,7 +10850,7 @@ function Cu({
|
|
|
10837
10850
|
}
|
|
10838
10851
|
) });
|
|
10839
10852
|
}
|
|
10840
|
-
|
|
10853
|
+
wu.displayName = "EntityPicker";
|
|
10841
10854
|
function qr(r) {
|
|
10842
10855
|
const {
|
|
10843
10856
|
columns: t,
|
|
@@ -11027,12 +11040,12 @@ function qr(r) {
|
|
|
11027
11040
|
] });
|
|
11028
11041
|
}
|
|
11029
11042
|
qr.displayName = "DataTable";
|
|
11030
|
-
const
|
|
11043
|
+
const ku = [
|
|
11031
11044
|
{ value: "count", label: "Count" },
|
|
11032
11045
|
{ value: "total", label: "Total" },
|
|
11033
11046
|
{ value: "average", label: "Average" }
|
|
11034
11047
|
];
|
|
11035
|
-
function
|
|
11048
|
+
function Du({
|
|
11036
11049
|
filterDescription: r,
|
|
11037
11050
|
filterPayload: t,
|
|
11038
11051
|
onConfirm: n,
|
|
@@ -11041,7 +11054,7 @@ function ku({
|
|
|
11041
11054
|
const [s, o] = O(!1), { refs: i, floatingStyles: c, context: l } = aa({
|
|
11042
11055
|
open: s,
|
|
11043
11056
|
onOpenChange: o
|
|
11044
|
-
}), u =
|
|
11057
|
+
}), u = xo(l), m = sa(l), { getReferenceProps: p, getFloatingProps: f } = ia([u, m]);
|
|
11045
11058
|
if (a)
|
|
11046
11059
|
return null;
|
|
11047
11060
|
const y = (_) => {
|
|
@@ -11062,7 +11075,7 @@ function ku({
|
|
|
11062
11075
|
children: /* @__PURE__ */ e("span", { className: "pin-to-metric__icon", "aria-hidden": "true", children: "📌" })
|
|
11063
11076
|
}
|
|
11064
11077
|
),
|
|
11065
|
-
s && /* @__PURE__ */ e(oa, { children: /* @__PURE__ */ e(
|
|
11078
|
+
s && /* @__PURE__ */ e(oa, { children: /* @__PURE__ */ e(No, { context: l, children: /* @__PURE__ */ d(
|
|
11066
11079
|
"div",
|
|
11067
11080
|
{
|
|
11068
11081
|
ref: i.setFloating,
|
|
@@ -11073,7 +11086,7 @@ function ku({
|
|
|
11073
11086
|
/* @__PURE__ */ e("div", { className: "pin-to-metric__popover-header", children: r }),
|
|
11074
11087
|
/* @__PURE__ */ d("div", { className: "pin-to-metric__popover-body", children: [
|
|
11075
11088
|
/* @__PURE__ */ e("p", { className: "pin-to-metric__popover-prompt", children: "Pin as metric card using:" }),
|
|
11076
|
-
/* @__PURE__ */ e("div", { className: "pin-to-metric__agg-buttons", children:
|
|
11089
|
+
/* @__PURE__ */ e("div", { className: "pin-to-metric__agg-buttons", children: ku.map(({ value: _, label: v }) => /* @__PURE__ */ e(
|
|
11077
11090
|
"button",
|
|
11078
11091
|
{
|
|
11079
11092
|
type: "button",
|
|
@@ -11089,13 +11102,13 @@ function ku({
|
|
|
11089
11102
|
) }) })
|
|
11090
11103
|
] });
|
|
11091
11104
|
}
|
|
11092
|
-
|
|
11093
|
-
const
|
|
11105
|
+
Du.displayName = "PinToMetric";
|
|
11106
|
+
const Iu = {
|
|
11094
11107
|
sm: "400px",
|
|
11095
11108
|
md: "560px",
|
|
11096
11109
|
lg: "720px",
|
|
11097
11110
|
fullscreen: "100vw"
|
|
11098
|
-
},
|
|
11111
|
+
}, Tu = {
|
|
11099
11112
|
portal: !0,
|
|
11100
11113
|
dismissOnClickOutside: !0,
|
|
11101
11114
|
dismissOnEscape: !0,
|
|
@@ -11107,13 +11120,13 @@ const Du = {
|
|
|
11107
11120
|
zIndex: Qn.Modal
|
|
11108
11121
|
};
|
|
11109
11122
|
function Zr({ open: r, onDismiss: t, size: n = "md", children: a }) {
|
|
11110
|
-
const s =
|
|
11123
|
+
const s = Iu[n];
|
|
11111
11124
|
return /* @__PURE__ */ d(Ge, { children: [
|
|
11112
11125
|
r && /* @__PURE__ */ e("div", { className: "gloss-container-dialog__backdrop", "data-density": "default" }),
|
|
11113
11126
|
/* @__PURE__ */ e(
|
|
11114
11127
|
ea,
|
|
11115
11128
|
{
|
|
11116
|
-
definition:
|
|
11129
|
+
definition: Tu,
|
|
11117
11130
|
open: r,
|
|
11118
11131
|
onDismiss: t,
|
|
11119
11132
|
className: `gloss-container-dialog gloss-container-dialog--${n}`,
|
|
@@ -11139,7 +11152,7 @@ const en = q.forwardRef(({ children: r, ...t }, n) => {
|
|
|
11139
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 }) });
|
|
11140
11153
|
});
|
|
11141
11154
|
en.displayName = "ContainerDialogActions";
|
|
11142
|
-
function
|
|
11155
|
+
function Eu(r) {
|
|
11143
11156
|
const {
|
|
11144
11157
|
open: t,
|
|
11145
11158
|
onClose: n,
|
|
@@ -11181,8 +11194,8 @@ function Tu(r) {
|
|
|
11181
11194
|
] }) })
|
|
11182
11195
|
] }) });
|
|
11183
11196
|
}
|
|
11184
|
-
|
|
11185
|
-
const
|
|
11197
|
+
Eu.displayName = "FormDialog";
|
|
11198
|
+
const Mu = {
|
|
11186
11199
|
body: {
|
|
11187
11200
|
fontFamily: Ae.FontBody,
|
|
11188
11201
|
fontSize: Ae.TextBase,
|
|
@@ -11205,7 +11218,7 @@ const Eu = {
|
|
|
11205
11218
|
letterSpacing: "0.08em",
|
|
11206
11219
|
color: B.TextSecondary
|
|
11207
11220
|
}
|
|
11208
|
-
},
|
|
11221
|
+
}, Pu = {
|
|
11209
11222
|
xs: { fontSize: Ae.TextXs },
|
|
11210
11223
|
sm: { fontSize: Ae.TextSm },
|
|
11211
11224
|
md: { fontSize: Ae.TextBase },
|
|
@@ -11220,8 +11233,8 @@ const Eu = {
|
|
|
11220
11233
|
} = t, i = { ...o };
|
|
11221
11234
|
delete i.className, delete i.style, delete i.definition;
|
|
11222
11235
|
const c = {
|
|
11223
|
-
...
|
|
11224
|
-
...
|
|
11236
|
+
...Mu[n],
|
|
11237
|
+
...Pu[a]
|
|
11225
11238
|
}, l = [
|
|
11226
11239
|
"gloss-preset-text",
|
|
11227
11240
|
`gloss-preset-text--${n}`
|
|
@@ -11238,7 +11251,7 @@ const Eu = {
|
|
|
11238
11251
|
);
|
|
11239
11252
|
};
|
|
11240
11253
|
Lt.displayName = "PresetText";
|
|
11241
|
-
function
|
|
11254
|
+
function Bu({
|
|
11242
11255
|
open: r,
|
|
11243
11256
|
cardA: t,
|
|
11244
11257
|
cardB: n,
|
|
@@ -11363,7 +11376,7 @@ function Pu({
|
|
|
11363
11376
|
}
|
|
11364
11377
|
);
|
|
11365
11378
|
}
|
|
11366
|
-
|
|
11379
|
+
Bu.displayName = "MergePrompt";
|
|
11367
11380
|
function Fa(r) {
|
|
11368
11381
|
const {
|
|
11369
11382
|
steps: t,
|
|
@@ -11429,7 +11442,7 @@ const Yn = ye.object({
|
|
|
11429
11442
|
email: ye.string().email("Please enter a valid email address"),
|
|
11430
11443
|
password: ye.string().min(8, "Password must be at least 8 characters"),
|
|
11431
11444
|
rememberMe: ye.boolean().optional()
|
|
11432
|
-
}),
|
|
11445
|
+
}), ip = {
|
|
11433
11446
|
slug: "login-form",
|
|
11434
11447
|
displayName: "Login Form",
|
|
11435
11448
|
description: "A standard authentication form with email, password, remember me checkbox, and forgot password link. Includes Zod validation.",
|
|
@@ -11487,7 +11500,7 @@ const Yn = ye.object({
|
|
|
11487
11500
|
],
|
|
11488
11501
|
version: "1.0.0"
|
|
11489
11502
|
};
|
|
11490
|
-
function
|
|
11503
|
+
function op({
|
|
11491
11504
|
title: r = "Welcome Back",
|
|
11492
11505
|
subtitle: t = "Sign in to your account",
|
|
11493
11506
|
submitLabel: n = "Sign In",
|
|
@@ -11626,7 +11639,7 @@ function ip({
|
|
|
11626
11639
|
] })
|
|
11627
11640
|
] });
|
|
11628
11641
|
}
|
|
11629
|
-
const
|
|
11642
|
+
const Ru = [
|
|
11630
11643
|
{ value: "AL", label: "Alabama" },
|
|
11631
11644
|
{ value: "AK", label: "Alaska" },
|
|
11632
11645
|
{ value: "AZ", label: "Arizona" },
|
|
@@ -11684,7 +11697,7 @@ const Bu = [
|
|
|
11684
11697
|
state: ye.string().min(2, "Please select a state"),
|
|
11685
11698
|
zip: ye.string().regex(/^\d{5}(-\d{4})?$/, "Please enter a valid ZIP code"),
|
|
11686
11699
|
country: ye.string().default("US")
|
|
11687
|
-
}),
|
|
11700
|
+
}), lp = {
|
|
11688
11701
|
slug: "address-group",
|
|
11689
11702
|
displayName: "Address Group",
|
|
11690
11703
|
description: "A complete address collection form with street, city, state, and ZIP fields. Includes US state select and ZIP code validation.",
|
|
@@ -11730,7 +11743,7 @@ const Bu = [
|
|
|
11730
11743
|
],
|
|
11731
11744
|
version: "1.0.0"
|
|
11732
11745
|
};
|
|
11733
|
-
function
|
|
11746
|
+
function zu({
|
|
11734
11747
|
legend: r = "Address",
|
|
11735
11748
|
compact: t = !1,
|
|
11736
11749
|
showStreet2: n = !0,
|
|
@@ -11878,7 +11891,7 @@ function Ru({
|
|
|
11878
11891
|
w("state")(g), _((E) => ({ ...E, state: !0 }));
|
|
11879
11892
|
},
|
|
11880
11893
|
disabled: o,
|
|
11881
|
-
options:
|
|
11894
|
+
options: Ru
|
|
11882
11895
|
}
|
|
11883
11896
|
),
|
|
11884
11897
|
C.state && b.state && /* @__PURE__ */ e("span", { className: "gloss-pattern-address-group__error", children: C.state })
|
|
@@ -11919,9 +11932,9 @@ function Ru({
|
|
|
11919
11932
|
)
|
|
11920
11933
|
] });
|
|
11921
11934
|
}
|
|
11922
|
-
const Oa = os(
|
|
11935
|
+
const Oa = os(zu);
|
|
11923
11936
|
Oa.displayName = "AddressGroup";
|
|
11924
|
-
const
|
|
11937
|
+
const Au = (r) => {
|
|
11925
11938
|
const t = r.replace(/\s/g, "");
|
|
11926
11939
|
if (!/^\d{13,19}$/.test(t)) return !1;
|
|
11927
11940
|
let n = 0, a = !1;
|
|
@@ -11931,14 +11944,14 @@ const zu = (r) => {
|
|
|
11931
11944
|
}
|
|
11932
11945
|
return n % 10 === 0;
|
|
11933
11946
|
}, mr = ye.object({
|
|
11934
|
-
cardNumber: ye.string().min(13, "Card number is too short").refine((r) =>
|
|
11947
|
+
cardNumber: ye.string().min(13, "Card number is too short").refine((r) => Au(r), "Invalid card number"),
|
|
11935
11948
|
expiryDate: ye.string().regex(/^(0[1-9]|1[0-2])\s?\/\s?\d{2}$/, "Invalid expiry date (MM/YY)").refine((r) => {
|
|
11936
11949
|
const [t, n] = r.split("/").map((o) => parseInt(o.trim(), 10)), a = /* @__PURE__ */ new Date();
|
|
11937
11950
|
return new Date(2e3 + n, t - 1) > a;
|
|
11938
11951
|
}, "Card has expired"),
|
|
11939
11952
|
cvv: ye.string().regex(/^\d{3,4}$/, "CVV must be 3 or 4 digits"),
|
|
11940
11953
|
cardholderName: ye.string().min(2, "Cardholder name is required")
|
|
11941
|
-
}),
|
|
11954
|
+
}), cp = {
|
|
11942
11955
|
slug: "credit-card-form",
|
|
11943
11956
|
displayName: "Credit Card Form",
|
|
11944
11957
|
description: "A secure payment form with card number masking, expiry date formatting, CVV input, and Luhn validation. Supports async BIN validation.",
|
|
@@ -12002,7 +12015,7 @@ const zu = (r) => {
|
|
|
12002
12015
|
],
|
|
12003
12016
|
version: "1.0.0"
|
|
12004
12017
|
};
|
|
12005
|
-
function
|
|
12018
|
+
function dp({
|
|
12006
12019
|
title: r = "Payment Details",
|
|
12007
12020
|
subtitle: t = "Enter your card information",
|
|
12008
12021
|
submitLabel: n = "Pay",
|
|
@@ -12183,7 +12196,7 @@ const Un = ye.object({
|
|
|
12183
12196
|
}).refine((r) => r.password === r.confirmPassword, {
|
|
12184
12197
|
message: "Passwords must match",
|
|
12185
12198
|
path: ["confirmPassword"]
|
|
12186
|
-
}),
|
|
12199
|
+
}), up = {
|
|
12187
12200
|
slug: "registration-form",
|
|
12188
12201
|
displayName: "Registration Form",
|
|
12189
12202
|
description: "A user registration form with name, email, password fields, terms acceptance, and Zod validation. Supports password strength indicator and confirmation matching.",
|
|
@@ -12235,7 +12248,7 @@ const Un = ye.object({
|
|
|
12235
12248
|
],
|
|
12236
12249
|
version: "1.0.0"
|
|
12237
12250
|
};
|
|
12238
|
-
function
|
|
12251
|
+
function mp({
|
|
12239
12252
|
onSubmit: r,
|
|
12240
12253
|
onSubmitRaw: t,
|
|
12241
12254
|
isLoading: n = !1,
|
|
@@ -12445,7 +12458,7 @@ const Xn = ye.object({
|
|
|
12445
12458
|
email: ye.string().email("Please enter a valid email address"),
|
|
12446
12459
|
subject: ye.string().min(1, "Subject is required"),
|
|
12447
12460
|
message: ye.string().min(10, "Message must be at least 10 characters")
|
|
12448
|
-
}),
|
|
12461
|
+
}), pp = {
|
|
12449
12462
|
slug: "contact-form",
|
|
12450
12463
|
displayName: "Contact Form",
|
|
12451
12464
|
description: "A contact/support form with name, email, subject, and message fields. Supports optional subject dropdown and Zod validation.",
|
|
@@ -12485,7 +12498,7 @@ const Xn = ye.object({
|
|
|
12485
12498
|
],
|
|
12486
12499
|
version: "1.0.0"
|
|
12487
12500
|
};
|
|
12488
|
-
function
|
|
12501
|
+
function fp({
|
|
12489
12502
|
onSubmit: r,
|
|
12490
12503
|
onSubmitRaw: t,
|
|
12491
12504
|
isLoading: n = !1,
|
|
@@ -12641,7 +12654,7 @@ function pp({
|
|
|
12641
12654
|
) })
|
|
12642
12655
|
] });
|
|
12643
12656
|
}
|
|
12644
|
-
const
|
|
12657
|
+
const $u = ye.object({
|
|
12645
12658
|
paymentMethod: ye.enum(["credit_card", "debit_card", "bank_transfer"]),
|
|
12646
12659
|
card: mr.optional(),
|
|
12647
12660
|
billingAddress: Gr,
|
|
@@ -12652,7 +12665,7 @@ const Au = ye.object({
|
|
|
12652
12665
|
message: "Card details are required for card payments",
|
|
12653
12666
|
path: ["card"]
|
|
12654
12667
|
}
|
|
12655
|
-
),
|
|
12668
|
+
), gp = {
|
|
12656
12669
|
slug: "payment-form",
|
|
12657
12670
|
displayName: "Payment Form",
|
|
12658
12671
|
description: "A comprehensive payment form orchestrating payment method selection, card fields, and billing address. Composes creditCardSchema and addressSchema with Zod.",
|
|
@@ -12692,7 +12705,7 @@ const Au = ye.object({
|
|
|
12692
12705
|
],
|
|
12693
12706
|
version: "1.0.0"
|
|
12694
12707
|
};
|
|
12695
|
-
function
|
|
12708
|
+
function hp({
|
|
12696
12709
|
onSubmit: r,
|
|
12697
12710
|
onSubmitRaw: t,
|
|
12698
12711
|
isLoading: n = !1,
|
|
@@ -12713,7 +12726,7 @@ function gp({
|
|
|
12713
12726
|
cardholderName: s.card?.cardholderName ?? ""
|
|
12714
12727
|
}), [b, _] = O({}), [v, h] = O({}), [C, T] = O(
|
|
12715
12728
|
s.savePaymentMethod ?? !1
|
|
12716
|
-
), [w, k] = O(), I =
|
|
12729
|
+
), [w, k] = O(), I = ie(null), g = m === "credit_card" || m === "debit_card", E = S((z, L) => {
|
|
12717
12730
|
try {
|
|
12718
12731
|
mr.shape[z].parse(L), _((H) => ({ ...H, [z]: void 0 }));
|
|
12719
12732
|
} catch (P) {
|
|
@@ -12751,7 +12764,7 @@ function gp({
|
|
|
12751
12764
|
savePaymentMethod: C
|
|
12752
12765
|
};
|
|
12753
12766
|
g && (H.card = f);
|
|
12754
|
-
const Y =
|
|
12767
|
+
const Y = $u.safeParse(H);
|
|
12755
12768
|
if (!Y.success) {
|
|
12756
12769
|
const V = {};
|
|
12757
12770
|
Y.error.issues.forEach((M) => {
|
|
@@ -12912,7 +12925,7 @@ function gp({
|
|
|
12912
12925
|
] })
|
|
12913
12926
|
] });
|
|
12914
12927
|
}
|
|
12915
|
-
const
|
|
12928
|
+
const bp = {
|
|
12916
12929
|
slug: "destructive-modal",
|
|
12917
12930
|
displayName: "Destructive Modal",
|
|
12918
12931
|
description: "A confirmation dialog for dangerous actions like delete operations. Supports optional text confirmation for extra safety.",
|
|
@@ -12970,7 +12983,7 @@ const hp = {
|
|
|
12970
12983
|
],
|
|
12971
12984
|
version: "1.0.0"
|
|
12972
12985
|
};
|
|
12973
|
-
function
|
|
12986
|
+
function yp({
|
|
12974
12987
|
isOpen: r,
|
|
12975
12988
|
onClose: t,
|
|
12976
12989
|
onConfirm: n,
|
|
@@ -12986,7 +12999,7 @@ function bp({
|
|
|
12986
12999
|
icon: f = "alert-triangle"
|
|
12987
13000
|
}) {
|
|
12988
13001
|
const [y, b] = O("");
|
|
12989
|
-
|
|
13002
|
+
oe(() => {
|
|
12990
13003
|
r || b("");
|
|
12991
13004
|
}, [r]);
|
|
12992
13005
|
const _ = S(async () => {
|
|
@@ -13039,7 +13052,7 @@ function bp({
|
|
|
13039
13052
|
] })
|
|
13040
13053
|
] });
|
|
13041
13054
|
}
|
|
13042
|
-
function
|
|
13055
|
+
function Fu(r) {
|
|
13043
13056
|
const {
|
|
13044
13057
|
onSearch: t,
|
|
13045
13058
|
filters: n = [],
|
|
@@ -13097,8 +13110,8 @@ function $u(r) {
|
|
|
13097
13110
|
)
|
|
13098
13111
|
] });
|
|
13099
13112
|
}
|
|
13100
|
-
|
|
13101
|
-
function
|
|
13113
|
+
Fu.displayName = "EntitySearchPanel";
|
|
13114
|
+
function Ou(r) {
|
|
13102
13115
|
const {
|
|
13103
13116
|
name: t,
|
|
13104
13117
|
subtitle: n,
|
|
@@ -13128,8 +13141,8 @@ function Fu(r) {
|
|
|
13128
13141
|
] }, m)) })
|
|
13129
13142
|
] }) });
|
|
13130
13143
|
}
|
|
13131
|
-
|
|
13132
|
-
function
|
|
13144
|
+
Ou.displayName = "ProfileCard";
|
|
13145
|
+
function Lu(r) {
|
|
13133
13146
|
const {
|
|
13134
13147
|
value: t,
|
|
13135
13148
|
onChange: n,
|
|
@@ -13188,8 +13201,8 @@ function Ou(r) {
|
|
|
13188
13201
|
i && /* @__PURE__ */ e("div", { className: "gloss-order-filter-bar__reset", children: /* @__PURE__ */ e(De, { variant: "ghost", size: "sm", onClick: i, children: "Reset" }) })
|
|
13189
13202
|
] });
|
|
13190
13203
|
}
|
|
13191
|
-
|
|
13192
|
-
const
|
|
13204
|
+
Lu.displayName = "OrderFilterBar";
|
|
13205
|
+
const Hu = {
|
|
13193
13206
|
default: {
|
|
13194
13207
|
fillBg: B.BrandPrimary,
|
|
13195
13208
|
trackBg: B.Gray200,
|
|
@@ -13226,7 +13239,7 @@ function La(r) {
|
|
|
13226
13239
|
...c
|
|
13227
13240
|
} = r, l = { ...c };
|
|
13228
13241
|
delete l.className, delete l.style, delete l.definition;
|
|
13229
|
-
const u =
|
|
13242
|
+
const u = Hu[t], m = Math.round(n / (a || 100) * 100), p = [
|
|
13230
13243
|
"gloss-preset-progress-bar",
|
|
13231
13244
|
`gloss-preset-progress-bar--${t}`,
|
|
13232
13245
|
i !== "none" && `gloss-preset-progress-bar--label-${i}`
|
|
@@ -13258,12 +13271,12 @@ function La(r) {
|
|
|
13258
13271
|
] });
|
|
13259
13272
|
}
|
|
13260
13273
|
La.displayName = "PresetProgressBar";
|
|
13261
|
-
const
|
|
13274
|
+
const Wu = [
|
|
13262
13275
|
{ key: "upload", label: "Upload" },
|
|
13263
13276
|
{ key: "preview", label: "Preview" },
|
|
13264
13277
|
{ key: "confirm", label: "Confirm" }
|
|
13265
13278
|
];
|
|
13266
|
-
function
|
|
13279
|
+
function Gu(r) {
|
|
13267
13280
|
const {
|
|
13268
13281
|
acceptedTypes: t,
|
|
13269
13282
|
onFileParsed: n,
|
|
@@ -13292,7 +13305,7 @@ function Wu(r) {
|
|
|
13292
13305
|
/* @__PURE__ */ e(
|
|
13293
13306
|
Fa,
|
|
13294
13307
|
{
|
|
13295
|
-
steps:
|
|
13308
|
+
steps: Wu,
|
|
13296
13309
|
activeStep: u,
|
|
13297
13310
|
onStepChange: m,
|
|
13298
13311
|
onStepValidate: C,
|
|
@@ -13339,8 +13352,8 @@ function Wu(r) {
|
|
|
13339
13352
|
_ && /* @__PURE__ */ e("p", { className: "gloss-import-wizard__error", children: _ })
|
|
13340
13353
|
] });
|
|
13341
13354
|
}
|
|
13342
|
-
|
|
13343
|
-
const
|
|
13355
|
+
Gu.displayName = "ImportWizard";
|
|
13356
|
+
const Vu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: n, density: a = "default", children: s, ...o }, i) => {
|
|
13344
13357
|
const c = { ...o };
|
|
13345
13358
|
return delete c.className, delete c.style, /* @__PURE__ */ d(
|
|
13346
13359
|
"div",
|
|
@@ -13371,7 +13384,7 @@ const Gu = q.forwardRef(({ title: r, collapsed: t = !1, onToggle: n, density: a
|
|
|
13371
13384
|
}
|
|
13372
13385
|
);
|
|
13373
13386
|
});
|
|
13374
|
-
|
|
13387
|
+
Vu.displayName = "ContainerPanel";
|
|
13375
13388
|
function Xt(...r) {
|
|
13376
13389
|
return (t) => {
|
|
13377
13390
|
for (const n of r)
|
|
@@ -13384,7 +13397,7 @@ function pr(r, t) {
|
|
|
13384
13397
|
r(n), t(n);
|
|
13385
13398
|
} : r : t ?? void 0;
|
|
13386
13399
|
}
|
|
13387
|
-
const
|
|
13400
|
+
const ju = q.forwardRef(
|
|
13388
13401
|
({ onAction: r, disabled: t = !1, role: n = "button", children: a }, s) => {
|
|
13389
13402
|
const o = q.Children.only(a), i = (u) => {
|
|
13390
13403
|
t || (u.key === "Enter" || u.key === " ") && (u.preventDefault(), r?.(u));
|
|
@@ -13401,8 +13414,8 @@ const Vu = q.forwardRef(
|
|
|
13401
13414
|
});
|
|
13402
13415
|
}
|
|
13403
13416
|
);
|
|
13404
|
-
|
|
13405
|
-
const
|
|
13417
|
+
ju.displayName = "Actionable";
|
|
13418
|
+
const Ku = q.forwardRef(
|
|
13406
13419
|
({ selected: r = !1, onSelect: t, disabled: n = !1, showCheckbox: a = !1, children: s }, o) => {
|
|
13407
13420
|
const i = q.Children.only(s), c = S((p) => {
|
|
13408
13421
|
n || t?.(!r, p);
|
|
@@ -13442,17 +13455,17 @@ const ju = q.forwardRef(
|
|
|
13442
13455
|
] }) : m;
|
|
13443
13456
|
}
|
|
13444
13457
|
);
|
|
13445
|
-
|
|
13446
|
-
const
|
|
13458
|
+
Ku.displayName = "Selectable";
|
|
13459
|
+
const Yu = q.forwardRef(
|
|
13447
13460
|
({ onDismiss: r, dismissOnEscape: t = !0, dismissOnClickOutside: n = !0, showCloseButton: a = !1, disabled: s = !1, children: o }, i) => {
|
|
13448
|
-
const c = q.Children.only(o), l =
|
|
13449
|
-
|
|
13461
|
+
const c = q.Children.only(o), l = ie(null);
|
|
13462
|
+
oe(() => {
|
|
13450
13463
|
if (s || !t || !r) return;
|
|
13451
13464
|
const p = (f) => {
|
|
13452
13465
|
f.key === "Escape" && (f.stopPropagation(), r());
|
|
13453
13466
|
};
|
|
13454
13467
|
return document.addEventListener("keydown", p), () => document.removeEventListener("keydown", p);
|
|
13455
|
-
}, [s, t, r]),
|
|
13468
|
+
}, [s, t, r]), oe(() => {
|
|
13456
13469
|
if (s || !n || !r) return;
|
|
13457
13470
|
const p = (y) => {
|
|
13458
13471
|
l.current && !l.current.contains(y.target) && r();
|
|
@@ -13498,14 +13511,14 @@ const Ku = q.forwardRef(
|
|
|
13498
13511
|
] }) : m;
|
|
13499
13512
|
}
|
|
13500
13513
|
);
|
|
13501
|
-
|
|
13514
|
+
Yu.displayName = "Dismissible";
|
|
13502
13515
|
let tn = null, Ha = null;
|
|
13503
13516
|
try {
|
|
13504
13517
|
const r = require("@dnd-kit/sortable");
|
|
13505
13518
|
tn = r.useSortable || r.default && r.default.useSortable, Ha = (r.CSS || r.default && r.default.CSS)?.Transform?.toString ?? null;
|
|
13506
13519
|
} catch {
|
|
13507
13520
|
}
|
|
13508
|
-
const
|
|
13521
|
+
const Uu = q.forwardRef(
|
|
13509
13522
|
({ id: r, disabled: t = !1, children: n }, a) => {
|
|
13510
13523
|
const s = q.Children.only(n);
|
|
13511
13524
|
return tn ? /* @__PURE__ */ e(Wa, { id: r, disabled: t, outerRef: a, children: s }) : q.cloneElement(s, {
|
|
@@ -13513,7 +13526,7 @@ const Yu = q.forwardRef(
|
|
|
13513
13526
|
});
|
|
13514
13527
|
}
|
|
13515
13528
|
);
|
|
13516
|
-
|
|
13529
|
+
Uu.displayName = "Sortable";
|
|
13517
13530
|
function Wa({ id: r, disabled: t, outerRef: n, children: a }) {
|
|
13518
13531
|
const {
|
|
13519
13532
|
attributes: s,
|
|
@@ -13546,7 +13559,7 @@ try {
|
|
|
13546
13559
|
Vr = r.motion?.div ?? null, jr = r.AnimatePresence ?? null;
|
|
13547
13560
|
} catch {
|
|
13548
13561
|
}
|
|
13549
|
-
const
|
|
13562
|
+
const Xu = q.forwardRef(
|
|
13550
13563
|
({ expanded: r, trigger: t, onToggle: n, duration: a = 0.2, children: s }, o) => {
|
|
13551
13564
|
const i = () => {
|
|
13552
13565
|
n?.();
|
|
@@ -13570,181 +13583,181 @@ const Uu = q.forwardRef(
|
|
|
13570
13583
|
] });
|
|
13571
13584
|
}
|
|
13572
13585
|
);
|
|
13573
|
-
|
|
13586
|
+
Xu.displayName = "Expandable";
|
|
13574
13587
|
export {
|
|
13575
|
-
|
|
13576
|
-
|
|
13588
|
+
wc as $,
|
|
13589
|
+
Ql as A,
|
|
13577
13590
|
la as B,
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
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,
|
|
13586
13599
|
ya as K,
|
|
13587
13600
|
Yr as L,
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13601
|
+
Gl as M,
|
|
13602
|
+
mc as N,
|
|
13603
|
+
pc as O,
|
|
13591
13604
|
De as P,
|
|
13592
|
-
|
|
13593
|
-
|
|
13594
|
-
|
|
13595
|
-
|
|
13596
|
-
|
|
13597
|
-
|
|
13598
|
-
|
|
13599
|
-
|
|
13600
|
-
|
|
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,
|
|
13601
13614
|
va as Z,
|
|
13602
|
-
|
|
13603
|
-
|
|
13615
|
+
Cc as _,
|
|
13616
|
+
Do as a,
|
|
13604
13617
|
Zr as a$,
|
|
13605
|
-
|
|
13606
|
-
|
|
13607
|
-
|
|
13618
|
+
Dc as a0,
|
|
13619
|
+
kc as a1,
|
|
13620
|
+
Ic as a2,
|
|
13608
13621
|
Da as a3,
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
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,
|
|
13616
13629
|
Gr as aB,
|
|
13617
|
-
|
|
13618
|
-
|
|
13630
|
+
dp as aC,
|
|
13631
|
+
cp as aD,
|
|
13619
13632
|
mr as aE,
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13633
|
+
yp as aF,
|
|
13634
|
+
bp as aG,
|
|
13635
|
+
mp as aH,
|
|
13636
|
+
up as aI,
|
|
13624
13637
|
Un as aJ,
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13638
|
+
hp as aK,
|
|
13639
|
+
gp as aL,
|
|
13640
|
+
$u as aM,
|
|
13641
|
+
fp as aN,
|
|
13642
|
+
pp as aO,
|
|
13630
13643
|
Xn as aP,
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13644
|
+
Fu as aQ,
|
|
13645
|
+
Ou as aR,
|
|
13646
|
+
Lu as aS,
|
|
13647
|
+
Gu as aT,
|
|
13635
13648
|
ma as aU,
|
|
13636
13649
|
Je as aV,
|
|
13637
13650
|
Qe as aW,
|
|
13638
13651
|
Dr as aX,
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
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,
|
|
13648
13661
|
Ba as ag,
|
|
13649
|
-
|
|
13662
|
+
lu as ah,
|
|
13650
13663
|
Ra as ai,
|
|
13651
13664
|
ur as aj,
|
|
13652
|
-
|
|
13653
|
-
|
|
13665
|
+
mu as ak,
|
|
13666
|
+
gu as al,
|
|
13654
13667
|
za as am,
|
|
13655
13668
|
Aa as an,
|
|
13656
13669
|
$a as ao,
|
|
13657
|
-
|
|
13670
|
+
wu as ap,
|
|
13658
13671
|
qr as aq,
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13672
|
+
Eu as ar,
|
|
13673
|
+
Bu as as,
|
|
13674
|
+
Gd as at,
|
|
13675
|
+
Du as au,
|
|
13663
13676
|
Fa as av,
|
|
13664
|
-
|
|
13665
|
-
|
|
13677
|
+
op as aw,
|
|
13678
|
+
ip as ax,
|
|
13666
13679
|
Yn as ay,
|
|
13667
13680
|
Oa as az,
|
|
13668
13681
|
ot as b,
|
|
13669
13682
|
Jr as b0,
|
|
13670
13683
|
Qr as b1,
|
|
13671
13684
|
en as b2,
|
|
13672
|
-
|
|
13685
|
+
Vu as b3,
|
|
13673
13686
|
Xt as b4,
|
|
13674
13687
|
pr as b5,
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13688
|
+
ju as b6,
|
|
13689
|
+
Ku as b7,
|
|
13690
|
+
Yu as b8,
|
|
13691
|
+
Uu as b9,
|
|
13679
13692
|
Hr as bA,
|
|
13680
13693
|
Lr as bB,
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13686
|
-
|
|
13687
|
-
|
|
13688
|
-
|
|
13689
|
-
|
|
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,
|
|
13690
13703
|
Ma as bL,
|
|
13691
13704
|
Wr as bM,
|
|
13692
13705
|
Ot as bN,
|
|
13693
13706
|
Pa as bO,
|
|
13694
|
-
|
|
13695
|
-
|
|
13707
|
+
qd as bP,
|
|
13708
|
+
Zd as bQ,
|
|
13696
13709
|
Lt as bR,
|
|
13697
13710
|
Xr as bS,
|
|
13698
13711
|
La as bT,
|
|
13699
13712
|
Ur as bU,
|
|
13700
|
-
|
|
13713
|
+
Xu as ba,
|
|
13701
13714
|
cr as bb,
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13715
|
+
Tc as bc,
|
|
13716
|
+
Ec as bd,
|
|
13717
|
+
Mc as be,
|
|
13718
|
+
Pc as bf,
|
|
13706
13719
|
nt as bg,
|
|
13707
13720
|
at as bh,
|
|
13708
13721
|
Ia as bi,
|
|
13709
13722
|
Ar as bj,
|
|
13710
|
-
|
|
13723
|
+
id as bk,
|
|
13711
13724
|
ka as bl,
|
|
13712
|
-
|
|
13725
|
+
$c as bm,
|
|
13713
13726
|
fr as bn,
|
|
13714
13727
|
Na as bo,
|
|
13715
13728
|
Sa as bp,
|
|
13716
13729
|
Ca as bq,
|
|
13717
|
-
|
|
13718
|
-
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
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,
|
|
13724
13737
|
Ta as by,
|
|
13725
13738
|
Ea as bz,
|
|
13726
13739
|
dr as c,
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13740
|
+
Oo as d,
|
|
13741
|
+
$o as e,
|
|
13742
|
+
Wo as f,
|
|
13730
13743
|
Vt as g,
|
|
13731
13744
|
ua as h,
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13745
|
+
qo as i,
|
|
13746
|
+
Qo as j,
|
|
13747
|
+
ll as k,
|
|
13748
|
+
ml as l,
|
|
13736
13749
|
pa as m,
|
|
13737
13750
|
fa as n,
|
|
13738
|
-
|
|
13739
|
-
|
|
13740
|
-
|
|
13751
|
+
Nl as o,
|
|
13752
|
+
wl as p,
|
|
13753
|
+
Ml as q,
|
|
13741
13754
|
Ee as r,
|
|
13742
13755
|
ha as s,
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13756
|
+
Ll as t,
|
|
13757
|
+
Mo as u,
|
|
13758
|
+
Wl as v,
|
|
13746
13759
|
jt as w,
|
|
13747
13760
|
It as x,
|
|
13748
13761
|
ba as y,
|
|
13749
|
-
|
|
13762
|
+
rc as z
|
|
13750
13763
|
};
|