@veevarts/design-system 2.18.0 → 2.20.0
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/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import { Document as ac } from "@tiptap/extension-document";
|
|
|
32
32
|
import { Text as nc } from "@tiptap/extension-text";
|
|
33
33
|
import { Dropcursor as rc } from "@tiptap/extension-dropcursor";
|
|
34
34
|
import { Gapcursor as ic } from "@tiptap/extension-gapcursor";
|
|
35
|
-
const
|
|
35
|
+
const Me = {
|
|
36
36
|
brand: {
|
|
37
37
|
primary: {
|
|
38
38
|
500: "#C14615",
|
|
@@ -103,7 +103,7 @@ const _e = {
|
|
|
103
103
|
tight: "1.25",
|
|
104
104
|
normal: "1.5"
|
|
105
105
|
}
|
|
106
|
-
}, { gray: fa } =
|
|
106
|
+
}, { gray: fa } = Me.neutral, sc = Me.palettes.warning[700], lc = Me.palettes.warning[100], xt = {
|
|
107
107
|
rustFill: "#FBEBE4",
|
|
108
108
|
rustBorder: "#EBC3B1",
|
|
109
109
|
page: "#F6F7F8",
|
|
@@ -114,12 +114,12 @@ const _e = {
|
|
|
114
114
|
infoFill: "#E8EEFC"
|
|
115
115
|
}, Qi = {
|
|
116
116
|
// Brand — the 500 already matches the scale exactly.
|
|
117
|
-
"--rust":
|
|
117
|
+
"--rust": Me.brand.primary[500],
|
|
118
118
|
"--rust-fill": xt.rustFill,
|
|
119
119
|
"--rust-border": xt.rustBorder,
|
|
120
120
|
// Chrome
|
|
121
121
|
"--page": xt.page,
|
|
122
|
-
"--surface":
|
|
122
|
+
"--surface": Me.neutral.white,
|
|
123
123
|
"--border": xt.border,
|
|
124
124
|
"--hair": xt.hair,
|
|
125
125
|
// Text — all four match the scale's grays exactly.
|
|
@@ -128,19 +128,19 @@ const _e = {
|
|
|
128
128
|
"--sub": fa[500],
|
|
129
129
|
"--muted": fa[400],
|
|
130
130
|
// Semantic — text tone paired with the tint it sits on.
|
|
131
|
-
"--ok":
|
|
131
|
+
"--ok": Me.semantic.success,
|
|
132
132
|
"--ok-fill": xt.okFill,
|
|
133
133
|
"--warn": sc,
|
|
134
134
|
"--warn-fill": lc,
|
|
135
|
-
"--danger":
|
|
135
|
+
"--danger": Me.semantic.danger,
|
|
136
136
|
"--danger-fill": xt.dangerFill,
|
|
137
|
-
"--info":
|
|
137
|
+
"--info": Me.semantic.info,
|
|
138
138
|
"--info-fill": xt.infoFill
|
|
139
139
|
};
|
|
140
140
|
Object.fromEntries(
|
|
141
141
|
Object.entries(Qi).map(([e, t]) => [e.replace(/^--/, ""), t])
|
|
142
142
|
);
|
|
143
|
-
function
|
|
143
|
+
function _g({
|
|
144
144
|
scope: e = ".acct",
|
|
145
145
|
fontFamily: t = "'NeueMontreal', system-ui, sans-serif"
|
|
146
146
|
} = {}) {
|
|
@@ -153,7 +153,7 @@ ${a}${r}
|
|
|
153
153
|
}
|
|
154
154
|
`;
|
|
155
155
|
}
|
|
156
|
-
const
|
|
156
|
+
const _e = {
|
|
157
157
|
/** `--line`: row, card and divider hairline. */
|
|
158
158
|
line: "#E7E7E9",
|
|
159
159
|
/** `--line2`: the lighter hairline under list rows and above the role bar. */
|
|
@@ -170,7 +170,7 @@ const Re = {
|
|
|
170
170
|
"warn-icon": "#EFD9B2",
|
|
171
171
|
/** `--eb` / `--ef`, plus the banner icon disc `.banner.err .bic`. */
|
|
172
172
|
"danger-fill": "#FCEBEB",
|
|
173
|
-
danger:
|
|
173
|
+
danger: Me.semantic.danger,
|
|
174
174
|
"danger-icon": "#F3D3CF",
|
|
175
175
|
/** `--ib` / `--if` */
|
|
176
176
|
"info-fill": "#EAF1FC",
|
|
@@ -182,18 +182,18 @@ const Re = {
|
|
|
182
182
|
/** `.btn-dstr` — the fill behind an irreversible confirmation. */
|
|
183
183
|
destructive: "#A32D2D"
|
|
184
184
|
};
|
|
185
|
-
({ ...
|
|
186
|
-
function
|
|
185
|
+
({ ..._e });
|
|
186
|
+
function Mg({ children: e }) {
|
|
187
187
|
return /* @__PURE__ */ n(Tl, { children: e });
|
|
188
188
|
}
|
|
189
189
|
const Zi = la("default");
|
|
190
190
|
function Yn() {
|
|
191
191
|
return pt(Zi);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Rg(e) {
|
|
194
194
|
return Yn() === "touch" ? "lg" : e;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Pg({ density: e, children: t }) {
|
|
197
197
|
return /* @__PURE__ */ n(Zi.Provider, { value: e, children: t });
|
|
198
198
|
}
|
|
199
199
|
function oc(e, t) {
|
|
@@ -1967,7 +1967,7 @@ const st = Ft(({ popoverProps: e, ...t }, a) => {
|
|
|
1967
1967
|
}, []), /* @__PURE__ */ n("span", { ref: r, className: "contents", children: /* @__PURE__ */ n(Vl, { ref: a, ...t, popoverProps: d }) });
|
|
1968
1968
|
});
|
|
1969
1969
|
st.displayName = "Select";
|
|
1970
|
-
function
|
|
1970
|
+
function Og({
|
|
1971
1971
|
state: e,
|
|
1972
1972
|
onSubmit: t,
|
|
1973
1973
|
onRemove: a,
|
|
@@ -2145,7 +2145,7 @@ function Pd({
|
|
|
2145
2145
|
}
|
|
2146
2146
|
);
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function zg({
|
|
2149
2149
|
logo: e,
|
|
2150
2150
|
languages: t = [],
|
|
2151
2151
|
selectedLanguage: a,
|
|
@@ -2193,7 +2193,7 @@ function Og({
|
|
|
2193
2193
|
}
|
|
2194
2194
|
);
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function Tg(e) {
|
|
2197
2197
|
return /* @__PURE__ */ n("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ n("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ n(
|
|
2198
2198
|
lt,
|
|
2199
2199
|
{
|
|
@@ -2453,7 +2453,7 @@ const zd = G.forwardRef(
|
|
|
2453
2453
|
}
|
|
2454
2454
|
);
|
|
2455
2455
|
zd.displayName = "Stepper";
|
|
2456
|
-
function
|
|
2456
|
+
function Ig(e) {
|
|
2457
2457
|
return /* @__PURE__ */ n("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ n("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ n(
|
|
2458
2458
|
lt,
|
|
2459
2459
|
{
|
|
@@ -2693,7 +2693,7 @@ const qr = {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
);
|
|
2695
2695
|
Bd.displayName = "HorizontalSteps";
|
|
2696
|
-
function
|
|
2696
|
+
function Bg() {
|
|
2697
2697
|
return /* @__PURE__ */ u(
|
|
2698
2698
|
"footer",
|
|
2699
2699
|
{
|
|
@@ -2706,7 +2706,7 @@ function Ig() {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
);
|
|
2708
2708
|
}
|
|
2709
|
-
const
|
|
2709
|
+
const Vg = (e) => {
|
|
2710
2710
|
const t = ce(
|
|
2711
2711
|
() => JSON.stringify({ allItems: e.allItems, selected: e.selected }),
|
|
2712
2712
|
[e.allItems, e.selected]
|
|
@@ -4272,16 +4272,16 @@ const su = {
|
|
|
4272
4272
|
s: "text-decoration: line-through;",
|
|
4273
4273
|
u: "text-decoration: underline;",
|
|
4274
4274
|
// Code - using mono font family and token colors
|
|
4275
|
-
code: `background-color: ${
|
|
4276
|
-
pre: `background: ${
|
|
4275
|
+
code: `background-color: ${Me.neutral.gray[100]}; border-radius: 0.4rem; font-size: ${ye.fontSize.sm}; padding: 0.25em 0.3em; font-family: ${ye.fontFamily.mono};`,
|
|
4276
|
+
pre: `background: ${Me.neutral.gray[800]}; border-radius: ${be.sm}; color: ${Me.neutral.gray[100]}; font-family: ${ye.fontFamily.mono}; margin: ${be.lg} 0; padding: 0.75rem ${be.md}; overflow-x: auto;`,
|
|
4277
4277
|
// Blockquote
|
|
4278
|
-
blockquote: `border-left: 3px solid ${
|
|
4278
|
+
blockquote: `border-left: 3px solid ${Me.neutral.gray[300]}; margin: ${be.lg} 0; padding-left: ${be.md}; color: ${Me.neutral.gray[500]};`,
|
|
4279
4279
|
// Horizontal rule
|
|
4280
|
-
hr: `border: none; border-top: 1px solid ${
|
|
4280
|
+
hr: `border: none; border-top: 1px solid ${Me.neutral.gray[200]}; margin: ${be.xl} 0;`,
|
|
4281
4281
|
// Links - using brand primary color
|
|
4282
|
-
a: `color: ${
|
|
4282
|
+
a: `color: ${Me.brand.primary.DEFAULT}; text-decoration: underline; cursor: pointer;`,
|
|
4283
4283
|
// Mark/Highlight - using warning palette
|
|
4284
|
-
mark: `background-color: ${
|
|
4284
|
+
mark: `background-color: ${Me.palettes.warning[200]}; border-radius: ${be.xs}; padding: 0 0.125rem;`,
|
|
4285
4285
|
// Task list checkbox label
|
|
4286
4286
|
label: `display: flex; align-items: center; gap: ${be.sm}; cursor: pointer;`,
|
|
4287
4287
|
// Input checkbox (task items)
|
|
@@ -4747,7 +4747,7 @@ const _t = ({
|
|
|
4747
4747
|
}) => /* @__PURE__ */ u("div", { className: "flex items-center gap-2 text-sm text-gray-600", "data-testid": a, children: [
|
|
4748
4748
|
/* @__PURE__ */ n(T, { icon: e, width: 20, className: "text-default-500" }),
|
|
4749
4749
|
/* @__PURE__ */ n("span", { children: t })
|
|
4750
|
-
] }),
|
|
4750
|
+
] }), Ug = ({
|
|
4751
4751
|
classes: e = "",
|
|
4752
4752
|
name: t,
|
|
4753
4753
|
imageUrl: a,
|
|
@@ -4914,7 +4914,7 @@ function Qr(e, t = "en-US", a = "USD") {
|
|
|
4914
4914
|
return console.warn(`Invalid currency formatting: ${r}`), `${a} ${e.toFixed(2)}`;
|
|
4915
4915
|
}
|
|
4916
4916
|
}
|
|
4917
|
-
function
|
|
4917
|
+
function jg(e) {
|
|
4918
4918
|
const t = e.replace(/[^\d.,-]/g, ""), a = t.match(/,\d{1,2}$/);
|
|
4919
4919
|
let r;
|
|
4920
4920
|
a ? r = t.replace(/\./g, "").replace(",", ".") : r = t.replace(/,/g, "");
|
|
@@ -6703,10 +6703,10 @@ function Zu(e = {}) {
|
|
|
6703
6703
|
s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
|
|
6704
6704
|
}), t.current.formState = G.useMemo(() => Vs(r, s), [s, r]), t.current;
|
|
6705
6705
|
}
|
|
6706
|
-
function
|
|
6706
|
+
function Hg(e, t = 3) {
|
|
6707
6707
|
return e % 1 === 0 ? e.toString() : e.toFixed(t).replace(/\.?0+$/, "");
|
|
6708
6708
|
}
|
|
6709
|
-
function
|
|
6709
|
+
function Wg(e, t = "en-US", a = "USD") {
|
|
6710
6710
|
try {
|
|
6711
6711
|
return new Intl.NumberFormat(t, {
|
|
6712
6712
|
style: "currency",
|
|
@@ -6718,7 +6718,7 @@ function Hg(e, t = "en-US", a = "USD") {
|
|
|
6718
6718
|
return console.warn(`Invalid currency formatting: ${r}`), `${a} ${e.toFixed(2)}`;
|
|
6719
6719
|
}
|
|
6720
6720
|
}
|
|
6721
|
-
function
|
|
6721
|
+
function qg(e = "USD", t = "en-US") {
|
|
6722
6722
|
try {
|
|
6723
6723
|
return new Intl.NumberFormat(t, {
|
|
6724
6724
|
style: "currency",
|
|
@@ -6728,14 +6728,14 @@ function Wg(e = "USD", t = "en-US") {
|
|
|
6728
6728
|
return "$";
|
|
6729
6729
|
}
|
|
6730
6730
|
}
|
|
6731
|
-
function
|
|
6731
|
+
function Gg(e) {
|
|
6732
6732
|
const t = e.replace(/[^\d.,-]/g, ""), a = t.match(/,\d{1,2}$/);
|
|
6733
6733
|
let r;
|
|
6734
6734
|
a ? r = t.replace(/\./g, "").replace(",", ".") : r = t.replace(/,/g, "");
|
|
6735
6735
|
const i = parseFloat(r);
|
|
6736
6736
|
return isNaN(i) ? null : i;
|
|
6737
6737
|
}
|
|
6738
|
-
function
|
|
6738
|
+
function Kg(e, t, a = 1e-3) {
|
|
6739
6739
|
const r = e - t, i = Math.abs(r) <= a;
|
|
6740
6740
|
return {
|
|
6741
6741
|
difference: r,
|
|
@@ -7232,7 +7232,7 @@ function cm() {
|
|
|
7232
7232
|
);
|
|
7233
7233
|
}
|
|
7234
7234
|
const dm = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, Math.round(e * 100) / 100)) : 0, um = (e) => e.fund !== null;
|
|
7235
|
-
function
|
|
7235
|
+
function Yg({
|
|
7236
7236
|
assignments: e,
|
|
7237
7237
|
funds: t,
|
|
7238
7238
|
labels: a,
|
|
@@ -7634,7 +7634,7 @@ function fm({
|
|
|
7634
7634
|
}
|
|
7635
7635
|
);
|
|
7636
7636
|
}
|
|
7637
|
-
function
|
|
7637
|
+
function Qg() {
|
|
7638
7638
|
return /* @__PURE__ */ u(
|
|
7639
7639
|
"section",
|
|
7640
7640
|
{
|
|
@@ -7663,7 +7663,7 @@ const hm = {
|
|
|
7663
7663
|
remainingBalance: "Remaining Balance",
|
|
7664
7664
|
amountReceived: "Amount Received:"
|
|
7665
7665
|
};
|
|
7666
|
-
function
|
|
7666
|
+
function Zg({
|
|
7667
7667
|
totalAmount: e,
|
|
7668
7668
|
remainingBalance: t,
|
|
7669
7669
|
amountReceived: a,
|
|
@@ -7820,7 +7820,7 @@ const $m = {
|
|
|
7820
7820
|
const t = e % 100 >= 11 && e % 100 <= 13 ? "th" : e % 10 === 1 ? "st" : e % 10 === 2 ? "nd" : e % 10 === 3 ? "rd" : "th";
|
|
7821
7821
|
return `${e}${t}`;
|
|
7822
7822
|
};
|
|
7823
|
-
function
|
|
7823
|
+
function Xg({
|
|
7824
7824
|
mode: e,
|
|
7825
7825
|
donationAmount: t,
|
|
7826
7826
|
currency: a = "USD",
|
|
@@ -8306,7 +8306,7 @@ function Bm({
|
|
|
8306
8306
|
}
|
|
8307
8307
|
);
|
|
8308
8308
|
}
|
|
8309
|
-
function
|
|
8309
|
+
function Jg() {
|
|
8310
8310
|
return /* @__PURE__ */ u(
|
|
8311
8311
|
"section",
|
|
8312
8312
|
{
|
|
@@ -8408,7 +8408,7 @@ const ui = {
|
|
|
8408
8408
|
wrapper: "!absolute !inset-0 !z-50 !items-center !justify-center !p-4",
|
|
8409
8409
|
backdrop: "!absolute !inset-0 !z-40 rounded-2xl"
|
|
8410
8410
|
}, jm = [];
|
|
8411
|
-
function
|
|
8411
|
+
function eb({
|
|
8412
8412
|
installments: e,
|
|
8413
8413
|
currency: t,
|
|
8414
8414
|
locale: a = "en-US",
|
|
@@ -8799,7 +8799,7 @@ const Gm = {
|
|
|
8799
8799
|
title: "Select Membership",
|
|
8800
8800
|
renewalTitle: "Automatic Renewal",
|
|
8801
8801
|
renewalDescription: "Membership will automatically renew at the end of each period"
|
|
8802
|
-
},
|
|
8802
|
+
}, tb = ({
|
|
8803
8803
|
cards: e,
|
|
8804
8804
|
locale: t,
|
|
8805
8805
|
currency: a,
|
|
@@ -9632,7 +9632,7 @@ const mf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9632
9632
|
}
|
|
9633
9633
|
)
|
|
9634
9634
|
] });
|
|
9635
|
-
},
|
|
9635
|
+
}, ab = ({
|
|
9636
9636
|
initialExpanded: e = !1,
|
|
9637
9637
|
userMaxLimit: t,
|
|
9638
9638
|
labels: a,
|
|
@@ -10076,16 +10076,16 @@ const _f = 48, Ye = {
|
|
|
10076
10076
|
}, Pf = (e) => e.variant === "list" ? /* @__PURE__ */ n(Rf, { ...e }) : /* @__PURE__ */ n(rl, { ...e, list: !1, narrow: !1 });
|
|
10077
10077
|
Pf.displayName = "PageHeader";
|
|
10078
10078
|
const et = {
|
|
10079
|
-
ok: { fg:
|
|
10080
|
-
warn: { fg:
|
|
10081
|
-
danger: { fg:
|
|
10082
|
-
info: { fg:
|
|
10083
|
-
violet: { fg:
|
|
10084
|
-
neutral: { fg:
|
|
10079
|
+
ok: { fg: _e.ok, bg: _e["ok-fill"] },
|
|
10080
|
+
warn: { fg: _e.warn, bg: _e["warn-fill"] },
|
|
10081
|
+
danger: { fg: _e.danger, bg: _e["danger-fill"] },
|
|
10082
|
+
info: { fg: _e.info, bg: _e["info-fill"] },
|
|
10083
|
+
violet: { fg: _e.violet, bg: _e["violet-fill"] },
|
|
10084
|
+
neutral: { fg: _e.neutral, bg: _e["neutral-fill"] }
|
|
10085
10085
|
};
|
|
10086
10086
|
function ua(e) {
|
|
10087
|
-
if (e === "positive") return { color:
|
|
10088
|
-
if (e === "negative") return { color:
|
|
10087
|
+
if (e === "positive") return { color: _e.ok };
|
|
10088
|
+
if (e === "negative") return { color: _e.danger };
|
|
10089
10089
|
}
|
|
10090
10090
|
const Of = {
|
|
10091
10091
|
active: "success",
|
|
@@ -11399,7 +11399,7 @@ const fl = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11399
11399
|
} catch {
|
|
11400
11400
|
return Ne(e, t, a);
|
|
11401
11401
|
}
|
|
11402
|
-
}, Bh = (e, t) => (e ?? 0) === (t ?? 0), Yt = (e, t) => Object.entries(t).reduce((a, [r, i]) => a.replace(`{${r}}`, i), e),
|
|
11402
|
+
}, Bh = (e, t) => (e ?? 0) === (t ?? 0), Yt = (e, t) => Object.entries(t).reduce((a, [r, i]) => a.replace(`{${r}}`, i), e), nb = ({
|
|
11403
11403
|
dueAmount: e,
|
|
11404
11404
|
received: t,
|
|
11405
11405
|
defaultReceived: a = null,
|
|
@@ -12959,13 +12959,13 @@ const xp = {
|
|
|
12959
12959
|
unreport: () => {
|
|
12960
12960
|
}
|
|
12961
12961
|
}, Qa = la(xp), mr = la(null);
|
|
12962
|
-
function
|
|
12962
|
+
function rb(e) {
|
|
12963
12963
|
const { report: t, unreport: a } = pt(Qa), r = pt(mr), i = Je();
|
|
12964
12964
|
we(() => {
|
|
12965
12965
|
t(i, { scope: r, isDirty: e });
|
|
12966
12966
|
}, [t, i, r, e]), we(() => () => a(i), [a, i]);
|
|
12967
12967
|
}
|
|
12968
|
-
function
|
|
12968
|
+
function ib() {
|
|
12969
12969
|
const { guardScope: e, bypass: t } = pt(Qa);
|
|
12970
12970
|
return ce(() => ({ guard: (a) => e(null, a), bypass: t }), [e, t]);
|
|
12971
12971
|
}
|
|
@@ -13009,7 +13009,7 @@ const yp = ({ scope: e, children: t }) => /* @__PURE__ */ n(mr.Provider, { value
|
|
|
13009
13009
|
};
|
|
13010
13010
|
vp.displayName = "DiscardGuard";
|
|
13011
13011
|
const fr = la(null);
|
|
13012
|
-
function
|
|
13012
|
+
function sb() {
|
|
13013
13013
|
const e = pt(fr), t = vl(), a = e?.back, r = Z(() => {
|
|
13014
13014
|
a && t(a);
|
|
13015
13015
|
}, [t, a]);
|
|
@@ -13082,7 +13082,7 @@ class Sp {
|
|
|
13082
13082
|
}
|
|
13083
13083
|
}
|
|
13084
13084
|
const $p = "flex flex-initial items-center gap-2 py-4 pl-4 pr-12 text-large font-semibold", Ap = "min-w-0 flex-1 truncate text-large font-semibold", Dp = "flex shrink-0 items-center gap-2", Ep = "size-5";
|
|
13085
|
-
function
|
|
13085
|
+
function lb({ panels: e, children: t }) {
|
|
13086
13086
|
const [a] = W(() => new Sp()), { entries: r, back: i } = e, s = r[r.length - 1].key, l = ue(null);
|
|
13087
13087
|
return Vt(() => {
|
|
13088
13088
|
const o = l.current;
|
|
@@ -13164,7 +13164,7 @@ const Fp = ({ entryKey: e, isActive: t, canGoBack: a, back: r, memory: i, childr
|
|
|
13164
13164
|
] });
|
|
13165
13165
|
};
|
|
13166
13166
|
Lp.displayName = "ModalPanelHeader";
|
|
13167
|
-
function
|
|
13167
|
+
function ob(e) {
|
|
13168
13168
|
const t = ue(1), [a] = W(e), [r, i] = W(() => [
|
|
13169
13169
|
{ key: "panel-0", panel: e }
|
|
13170
13170
|
]), s = Z((f) => {
|
|
@@ -13192,7 +13192,7 @@ function lb(e) {
|
|
|
13192
13192
|
);
|
|
13193
13193
|
return ce(() => ({ current: r[r.length - 1].panel, entries: r, canGoBack: r.length > 1, push: l, back: o, replace: c, reset: d }), [r, l, o, c, d]);
|
|
13194
13194
|
}
|
|
13195
|
-
function
|
|
13195
|
+
function cb() {
|
|
13196
13196
|
const e = ue(/* @__PURE__ */ new Map()), [t, a] = W(0), [r, i] = W(null), [s, l] = W(0), o = Z(() => {
|
|
13197
13197
|
let b = 0;
|
|
13198
13198
|
for (const N of e.current.values()) N.isDirty && (b += 1);
|
|
@@ -13471,9 +13471,9 @@ const pr = ({
|
|
|
13471
13471
|
const o = !!r && s && !!e.id, c = /* @__PURE__ */ n(
|
|
13472
13472
|
"span",
|
|
13473
13473
|
{
|
|
13474
|
-
"data-testid": `summary-row-
|
|
13475
|
-
className: l ? "
|
|
13476
|
-
children:
|
|
13474
|
+
"data-testid": `summary-row-label-${e.key}`,
|
|
13475
|
+
className: l ? void 0 : p(a ? "text-xl font-semibold leading-7" : "text-base"),
|
|
13476
|
+
children: e.label
|
|
13477
13477
|
}
|
|
13478
13478
|
);
|
|
13479
13479
|
return /* @__PURE__ */ u(
|
|
@@ -13482,15 +13482,7 @@ const pr = ({
|
|
|
13482
13482
|
"data-testid": `summary-row-${e.key}`,
|
|
13483
13483
|
className: l ? "flex items-center justify-between text-sm text-default-500" : "flex items-center justify-between text-foreground",
|
|
13484
13484
|
children: [
|
|
13485
|
-
/* @__PURE__ */
|
|
13486
|
-
"span",
|
|
13487
|
-
{
|
|
13488
|
-
"data-testid": `summary-row-label-${e.key}`,
|
|
13489
|
-
className: l ? void 0 : p(a ? "text-xl font-semibold leading-7" : "text-base"),
|
|
13490
|
-
children: e.label
|
|
13491
|
-
}
|
|
13492
|
-
),
|
|
13493
|
-
o ? /* @__PURE__ */ u("div", { className: "flex shrink-0 items-center", children: [
|
|
13485
|
+
o ? /* @__PURE__ */ u("div", { className: "flex min-w-0 items-center", children: [
|
|
13494
13486
|
c,
|
|
13495
13487
|
/* @__PURE__ */ n(
|
|
13496
13488
|
B,
|
|
@@ -13499,14 +13491,26 @@ const pr = ({
|
|
|
13499
13491
|
size: "sm",
|
|
13500
13492
|
variant: "light",
|
|
13501
13493
|
radius: "full",
|
|
13502
|
-
className: p("ml-1 size-8 min-w-8 p-2 text-danger", l && "-my-1.5"),
|
|
13494
|
+
className: p("ml-1 size-8 min-w-8 shrink-0 p-2 text-danger", l && "-my-1.5"),
|
|
13503
13495
|
"aria-label": i,
|
|
13504
13496
|
"data-testid": `summary-remove-row-${e.id}`,
|
|
13505
13497
|
onPress: () => r(e.id),
|
|
13506
13498
|
children: /* @__PURE__ */ n(T, { icon: "lucide:trash-2", width: 16, height: 16, className: "text-danger" })
|
|
13507
13499
|
}
|
|
13508
13500
|
)
|
|
13509
|
-
] }) : c
|
|
13501
|
+
] }) : c,
|
|
13502
|
+
/* @__PURE__ */ n(
|
|
13503
|
+
"span",
|
|
13504
|
+
{
|
|
13505
|
+
"data-testid": `summary-row-amount-${e.key}`,
|
|
13506
|
+
className: p(
|
|
13507
|
+
"whitespace-nowrap",
|
|
13508
|
+
!l && "text-base",
|
|
13509
|
+
e.amountTone === "success" && "text-success"
|
|
13510
|
+
),
|
|
13511
|
+
children: Et(e.amount, t)
|
|
13512
|
+
}
|
|
13513
|
+
)
|
|
13510
13514
|
]
|
|
13511
13515
|
}
|
|
13512
13516
|
);
|
|
@@ -14034,7 +14038,7 @@ const Hp = {
|
|
|
14034
14038
|
cancel: "Cancel",
|
|
14035
14039
|
partialBadge: "Partial refund",
|
|
14036
14040
|
owesBadge: "Customer owes"
|
|
14037
|
-
}, Wp = { backgroundColor:
|
|
14041
|
+
}, Wp = { backgroundColor: _e.destructive, color: "#fff" }, Di = "inline-flex h-[22px] items-center gap-[5px] whitespace-nowrap rounded-full px-[9px] text-xs font-medium leading-none", yn = "absolute top-0 h-5 w-5 opacity-0", qp = ({
|
|
14038
14042
|
onClose: e,
|
|
14039
14043
|
steps: t,
|
|
14040
14044
|
activeStepId: a,
|
|
@@ -14541,7 +14545,7 @@ const Qp = {
|
|
|
14541
14545
|
] });
|
|
14542
14546
|
};
|
|
14543
14547
|
Jp.displayName = "LineItemList";
|
|
14544
|
-
const El = ({
|
|
14548
|
+
const e0 = { color: _e.danger }, El = ({
|
|
14545
14549
|
children: e,
|
|
14546
14550
|
className: t,
|
|
14547
14551
|
"data-testid": a = "meta-card"
|
|
@@ -14550,12 +14554,25 @@ El.displayName = "MetaCard";
|
|
|
14550
14554
|
const Fl = ({
|
|
14551
14555
|
label: e,
|
|
14552
14556
|
htmlFor: t,
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
/* @__PURE__ */
|
|
14557
|
+
required: a,
|
|
14558
|
+
children: r,
|
|
14559
|
+
className: i,
|
|
14560
|
+
"data-testid": s = "meta-card-row"
|
|
14561
|
+
}) => /* @__PURE__ */ u("div", { className: p("flex flex-wrap items-center justify-between gap-4", i), "data-testid": s, children: [
|
|
14562
|
+
/* @__PURE__ */ u("label", { htmlFor: t, className: "text-[13px] font-medium text-default-600", children: [
|
|
14563
|
+
e,
|
|
14564
|
+
a && /* @__PURE__ */ n(
|
|
14565
|
+
"span",
|
|
14566
|
+
{
|
|
14567
|
+
"aria-hidden": "true",
|
|
14568
|
+
className: "ms-0.5 text-danger",
|
|
14569
|
+
style: e0,
|
|
14570
|
+
"data-testid": `${s}-required`,
|
|
14571
|
+
children: "*"
|
|
14572
|
+
}
|
|
14573
|
+
)
|
|
14574
|
+
] }),
|
|
14575
|
+
/* @__PURE__ */ n("div", { className: "w-full sm:w-[290px] sm:shrink-0", children: r })
|
|
14559
14576
|
] });
|
|
14560
14577
|
Fl.displayName = "MetaCard.Row";
|
|
14561
14578
|
const Ll = ({
|
|
@@ -14575,7 +14592,7 @@ const Ll = ({
|
|
|
14575
14592
|
}
|
|
14576
14593
|
);
|
|
14577
14594
|
Ll.displayName = "MetaCard.Section";
|
|
14578
|
-
const
|
|
14595
|
+
const db = Object.assign(El, { Row: Fl, Section: Ll }), t0 = ({
|
|
14579
14596
|
heading: e,
|
|
14580
14597
|
icon: t = "lucide:rotate-ccw",
|
|
14581
14598
|
action: a,
|
|
@@ -14616,8 +14633,8 @@ const cb = Object.assign(El, { Row: Fl, Section: Ll }), e0 = ({
|
|
|
14616
14633
|
]
|
|
14617
14634
|
}
|
|
14618
14635
|
);
|
|
14619
|
-
|
|
14620
|
-
const
|
|
14636
|
+
t0.displayName = "SectionPanel";
|
|
14637
|
+
const a0 = ({
|
|
14621
14638
|
name: e,
|
|
14622
14639
|
detail: t,
|
|
14623
14640
|
icon: a = "lucide:users",
|
|
@@ -14639,47 +14656,49 @@ const t0 = ({
|
|
|
14639
14656
|
]
|
|
14640
14657
|
}
|
|
14641
14658
|
);
|
|
14642
|
-
|
|
14643
|
-
const
|
|
14659
|
+
a0.displayName = "CustomerCard";
|
|
14660
|
+
const n0 = {
|
|
14644
14661
|
label: "Reason for the return",
|
|
14645
14662
|
placeholder: "Select a reason…"
|
|
14646
|
-
},
|
|
14663
|
+
}, r0 = ({
|
|
14647
14664
|
options: e,
|
|
14648
14665
|
value: t,
|
|
14649
14666
|
onChange: a,
|
|
14650
14667
|
error: r,
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14668
|
+
isRequired: i,
|
|
14669
|
+
labels: s,
|
|
14670
|
+
className: l,
|
|
14671
|
+
"data-testid": o = "reason-select"
|
|
14654
14672
|
}) => {
|
|
14655
|
-
const
|
|
14673
|
+
const c = { ...n0, ...s };
|
|
14656
14674
|
return /* @__PURE__ */ n(
|
|
14657
14675
|
st,
|
|
14658
14676
|
{
|
|
14659
|
-
label:
|
|
14677
|
+
label: c.label,
|
|
14660
14678
|
labelPlacement: "outside",
|
|
14661
|
-
placeholder:
|
|
14679
|
+
placeholder: c.placeholder,
|
|
14662
14680
|
selectedKeys: t ? [t] : [],
|
|
14681
|
+
isRequired: i,
|
|
14663
14682
|
isInvalid: !!r,
|
|
14664
14683
|
errorMessage: r,
|
|
14665
|
-
className: p(
|
|
14666
|
-
"data-testid":
|
|
14667
|
-
onSelectionChange: (
|
|
14668
|
-
if (
|
|
14669
|
-
const
|
|
14670
|
-
|
|
14684
|
+
className: p(l),
|
|
14685
|
+
"data-testid": o,
|
|
14686
|
+
onSelectionChange: (d) => {
|
|
14687
|
+
if (d === "all") return;
|
|
14688
|
+
const f = [...d][0];
|
|
14689
|
+
f && a(String(f));
|
|
14671
14690
|
},
|
|
14672
|
-
children: e.map((
|
|
14691
|
+
children: e.map((d) => /* @__PURE__ */ n(ht, { children: d.label }, d.id))
|
|
14673
14692
|
}
|
|
14674
14693
|
);
|
|
14675
14694
|
};
|
|
14676
|
-
|
|
14677
|
-
const
|
|
14695
|
+
r0.displayName = "ReasonSelect";
|
|
14696
|
+
const i0 = {
|
|
14678
14697
|
toggle: "Add a note",
|
|
14679
14698
|
optionalTag: "(optional)",
|
|
14680
14699
|
heading: "Additional note",
|
|
14681
14700
|
placeholder: "Add a note (optional)"
|
|
14682
|
-
},
|
|
14701
|
+
}, s0 = ({
|
|
14683
14702
|
value: e,
|
|
14684
14703
|
onChange: t,
|
|
14685
14704
|
maxLength: a,
|
|
@@ -14689,7 +14708,7 @@ const r0 = {
|
|
|
14689
14708
|
className: l,
|
|
14690
14709
|
"data-testid": o = "notes-field"
|
|
14691
14710
|
}) => {
|
|
14692
|
-
const c = { ...
|
|
14711
|
+
const c = { ...i0, ...s }, [d, f] = W(e !== "");
|
|
14693
14712
|
return r ? /* @__PURE__ */ u("div", { className: p("flex flex-col gap-2", l), "data-testid": o, children: [
|
|
14694
14713
|
!i && /* @__PURE__ */ n("label", { htmlFor: `${o}-textarea`, className: "text-[13px] font-medium text-default-600", children: c.heading }),
|
|
14695
14714
|
/* @__PURE__ */ n(
|
|
@@ -14736,11 +14755,11 @@ const r0 = {
|
|
|
14736
14755
|
}
|
|
14737
14756
|
) });
|
|
14738
14757
|
};
|
|
14739
|
-
|
|
14740
|
-
const
|
|
14758
|
+
s0.displayName = "NotesField";
|
|
14759
|
+
const l0 = {
|
|
14741
14760
|
danger: { surface: "bg-pos-danger-fill", disc: "bg-pos-danger-icon text-pos-danger", title: "text-pos-danger" },
|
|
14742
14761
|
warning: { surface: "bg-pos-warn-fill", disc: "bg-pos-warn-icon text-pos-warn", title: "text-pos-warn" }
|
|
14743
|
-
},
|
|
14762
|
+
}, o0 = {
|
|
14744
14763
|
danger: "gravity-ui:circle-exclamation-fill",
|
|
14745
14764
|
warning: "gravity-ui:triangle-exclamation-fill"
|
|
14746
14765
|
}, Fi = "h-8 min-w-0 rounded-[10px] px-3 text-[13px] font-semibold", gr = ({
|
|
@@ -14756,7 +14775,7 @@ const s0 = {
|
|
|
14756
14775
|
retryTestId: d,
|
|
14757
14776
|
chooseDifferentTestId: f
|
|
14758
14777
|
}) => {
|
|
14759
|
-
const m =
|
|
14778
|
+
const m = l0[e];
|
|
14760
14779
|
return /* @__PURE__ */ u(
|
|
14761
14780
|
"div",
|
|
14762
14781
|
{
|
|
@@ -14769,7 +14788,7 @@ const s0 = {
|
|
|
14769
14788
|
{
|
|
14770
14789
|
className: p("flex h-10 w-10 shrink-0 items-center justify-center rounded-full", m.disc),
|
|
14771
14790
|
"aria-hidden": "true",
|
|
14772
|
-
children: /* @__PURE__ */ n(T, { icon:
|
|
14791
|
+
children: /* @__PURE__ */ n(T, { icon: o0[e], width: 22, height: 22 })
|
|
14773
14792
|
}
|
|
14774
14793
|
),
|
|
14775
14794
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -14794,7 +14813,7 @@ const s0 = {
|
|
|
14794
14813
|
);
|
|
14795
14814
|
};
|
|
14796
14815
|
gr.displayName = "TenderBanner";
|
|
14797
|
-
const
|
|
14816
|
+
const c0 = {
|
|
14798
14817
|
split: "Split across multiple methods",
|
|
14799
14818
|
declinedTitle: "Refund declined",
|
|
14800
14819
|
declinedBody: "The processor declined this refund. Nothing was sent.",
|
|
@@ -14803,12 +14822,12 @@ const o0 = {
|
|
|
14803
14822
|
retry: "Try again",
|
|
14804
14823
|
chooseDifferent: "Choose different method",
|
|
14805
14824
|
destinationsHeading: "Money back to"
|
|
14806
|
-
},
|
|
14825
|
+
}, d0 = {
|
|
14807
14826
|
card: "lucide:credit-card",
|
|
14808
14827
|
cash: "lucide:dollar-sign",
|
|
14809
14828
|
check: "lucide:edit-3",
|
|
14810
14829
|
other: "lucide:more-horizontal"
|
|
14811
|
-
},
|
|
14830
|
+
}, u0 = ({
|
|
14812
14831
|
tenders: e,
|
|
14813
14832
|
selectedTenderId: t,
|
|
14814
14833
|
onSelect: a,
|
|
@@ -14818,7 +14837,7 @@ const o0 = {
|
|
|
14818
14837
|
className: l,
|
|
14819
14838
|
"data-testid": o = "tender-methods"
|
|
14820
14839
|
}) => {
|
|
14821
|
-
const c = { ...
|
|
14840
|
+
const c = { ...c0, ...s }, d = i?.kind === "processor_declined";
|
|
14822
14841
|
return /* @__PURE__ */ u("div", { className: p("flex flex-col text-default-900", l), "data-testid": o, children: [
|
|
14823
14842
|
i && /* @__PURE__ */ n(
|
|
14824
14843
|
gr,
|
|
@@ -14869,7 +14888,7 @@ const o0 = {
|
|
|
14869
14888
|
"flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px]",
|
|
14870
14889
|
m ? "bg-primary text-white" : "bg-default-100 text-default-600"
|
|
14871
14890
|
),
|
|
14872
|
-
children: /* @__PURE__ */ n(T, { icon:
|
|
14891
|
+
children: /* @__PURE__ */ n(T, { icon: d0[f.kind], width: 18, height: 18, "aria-hidden": "true" })
|
|
14873
14892
|
}
|
|
14874
14893
|
),
|
|
14875
14894
|
/* @__PURE__ */ u("span", { className: "min-w-0", children: [
|
|
@@ -14903,8 +14922,8 @@ const o0 = {
|
|
|
14903
14922
|
)
|
|
14904
14923
|
] });
|
|
14905
14924
|
};
|
|
14906
|
-
|
|
14907
|
-
const
|
|
14925
|
+
u0.displayName = "TenderMethods";
|
|
14926
|
+
const m0 = (e) => e.refunded !== null, f0 = {
|
|
14908
14927
|
title: "Split refund",
|
|
14909
14928
|
refundedSoFar: "Refunded so far",
|
|
14910
14929
|
remaining: "Remaining",
|
|
@@ -14920,7 +14939,7 @@ const u0 = (e) => e.refunded !== null, m0 = {
|
|
|
14920
14939
|
chooseDifferent: "Choose different method",
|
|
14921
14940
|
pending: "Pending",
|
|
14922
14941
|
succeeded: "Refunded"
|
|
14923
|
-
},
|
|
14942
|
+
}, h0 = "mb-2 text-[11px] font-semibold uppercase tracking-[.08em] text-default-500", p0 = "inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowrap rounded-full px-[9px] text-xs font-medium leading-none", g0 = ({
|
|
14924
14943
|
parts: e,
|
|
14925
14944
|
refundedSoFar: t,
|
|
14926
14945
|
remaining: a,
|
|
@@ -14935,7 +14954,7 @@ const u0 = (e) => e.refunded !== null, m0 = {
|
|
|
14935
14954
|
className: m,
|
|
14936
14955
|
"data-testid": g = "split-tender-panel"
|
|
14937
14956
|
}) => {
|
|
14938
|
-
const h = { ...
|
|
14957
|
+
const h = { ...f0, ...f }, x = e.filter(m0), y = e.find((C) => C.tenderId === r.tenderId)?.label, b = !!(i?.length && r.onTenderChange), N = qa(a.currency), {
|
|
14939
14958
|
draft: k,
|
|
14940
14959
|
setDraft: E,
|
|
14941
14960
|
normalize: w
|
|
@@ -14974,7 +14993,7 @@ const u0 = (e) => e.refunded !== null, m0 = {
|
|
|
14974
14993
|
] })
|
|
14975
14994
|
] }),
|
|
14976
14995
|
x.length > 0 && /* @__PURE__ */ u("div", { children: [
|
|
14977
|
-
/* @__PURE__ */ n("p", { className:
|
|
14996
|
+
/* @__PURE__ */ n("p", { className: h0, children: h.refundedSoFar }),
|
|
14978
14997
|
x.map((C, A) => /* @__PURE__ */ u(
|
|
14979
14998
|
"div",
|
|
14980
14999
|
{
|
|
@@ -15003,7 +15022,7 @@ const u0 = (e) => e.refunded !== null, m0 = {
|
|
|
15003
15022
|
"span",
|
|
15004
15023
|
{
|
|
15005
15024
|
className: p(
|
|
15006
|
-
|
|
15025
|
+
p0,
|
|
15007
15026
|
C.status === "pending" ? "bg-pos-warn-fill text-pos-warn" : "bg-pos-ok-fill text-pos-ok"
|
|
15008
15027
|
),
|
|
15009
15028
|
children: C.status === "pending" ? h.pending : h.succeeded
|
|
@@ -15097,11 +15116,11 @@ const u0 = (e) => e.refunded !== null, m0 = {
|
|
|
15097
15116
|
] })
|
|
15098
15117
|
] });
|
|
15099
15118
|
};
|
|
15100
|
-
|
|
15101
|
-
const
|
|
15119
|
+
g0.displayName = "SplitTenderPanel";
|
|
15120
|
+
const b0 = {
|
|
15102
15121
|
label: "Supervisor authorization",
|
|
15103
15122
|
placeholder: "••••"
|
|
15104
|
-
},
|
|
15123
|
+
}, x0 = ({
|
|
15105
15124
|
pin: e,
|
|
15106
15125
|
onChange: t,
|
|
15107
15126
|
hint: a,
|
|
@@ -15110,7 +15129,7 @@ const g0 = {
|
|
|
15110
15129
|
className: s,
|
|
15111
15130
|
"data-testid": l = "pin-field"
|
|
15112
15131
|
}) => {
|
|
15113
|
-
const o = { ...
|
|
15132
|
+
const o = { ...b0, ...i };
|
|
15114
15133
|
return /* @__PURE__ */ u(
|
|
15115
15134
|
"div",
|
|
15116
15135
|
{
|
|
@@ -15149,8 +15168,8 @@ const g0 = {
|
|
|
15149
15168
|
}
|
|
15150
15169
|
);
|
|
15151
15170
|
};
|
|
15152
|
-
|
|
15153
|
-
const
|
|
15171
|
+
x0.displayName = "PinField";
|
|
15172
|
+
const y0 = {
|
|
15154
15173
|
processing: "Processing refund…",
|
|
15155
15174
|
title: "Refund complete",
|
|
15156
15175
|
destinationsTitle: "Refund destinations",
|
|
@@ -15162,10 +15181,10 @@ const x0 = {
|
|
|
15162
15181
|
succeeded: "Refunded",
|
|
15163
15182
|
reason: "Reason · {reason}",
|
|
15164
15183
|
authorizedBy: "Authorized by {name}"
|
|
15165
|
-
},
|
|
15184
|
+
}, v0 = {
|
|
15166
15185
|
succeeded: "bg-pos-ok-fill text-pos-ok",
|
|
15167
15186
|
pending: "bg-pos-warn-fill text-pos-warn"
|
|
15168
|
-
},
|
|
15187
|
+
}, w0 = "inline-flex h-[22px] items-center gap-[5px] whitespace-nowrap rounded-full px-[9px] text-xs font-medium leading-none", Li = "mb-1.5 text-[11px] font-semibold uppercase tracking-[.05em] text-default-500", N0 = "mx-auto max-w-[1040px] rounded-[20px] border border-pos-line bg-white px-7 py-[26px] shadow-[0_1px_2px_rgba(0,0,0,0.05)]", k0 = ["email", "print"], C0 = ({
|
|
15169
15188
|
state: e,
|
|
15170
15189
|
total: t,
|
|
15171
15190
|
destinations: a,
|
|
@@ -15179,7 +15198,7 @@ const x0 = {
|
|
|
15179
15198
|
className: f,
|
|
15180
15199
|
"data-testid": m = "outcome-view"
|
|
15181
15200
|
}) => {
|
|
15182
|
-
const g = { ...
|
|
15201
|
+
const g = { ...y0, ...d }, h = t ? Ne(t.value, void 0, t.currency) : null;
|
|
15183
15202
|
return e === "processing" ? /* @__PURE__ */ n(
|
|
15184
15203
|
"div",
|
|
15185
15204
|
{
|
|
@@ -15208,7 +15227,7 @@ const x0 = {
|
|
|
15208
15227
|
) : /* @__PURE__ */ u(
|
|
15209
15228
|
"div",
|
|
15210
15229
|
{
|
|
15211
|
-
className: p("flex flex-col text-default-900", !c &&
|
|
15230
|
+
className: p("flex flex-col text-default-900", !c && N0, f),
|
|
15212
15231
|
"aria-live": "polite",
|
|
15213
15232
|
"data-testid": m,
|
|
15214
15233
|
children: [
|
|
@@ -15229,7 +15248,7 @@ const x0 = {
|
|
|
15229
15248
|
/* @__PURE__ */ n("span", { className: "font-semibold", children: x.label }),
|
|
15230
15249
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2.5", children: [
|
|
15231
15250
|
/* @__PURE__ */ n("span", { className: "tabular-nums text-default-600", children: Ne(x.amount.value, void 0, x.amount.currency) }),
|
|
15232
|
-
/* @__PURE__ */ n("span", { className: p(
|
|
15251
|
+
/* @__PURE__ */ n("span", { className: p(w0, v0[x.status]), children: x.status === "succeeded" ? g.succeeded : g.pending })
|
|
15233
15252
|
] })
|
|
15234
15253
|
]
|
|
15235
15254
|
},
|
|
@@ -15238,7 +15257,7 @@ const x0 = {
|
|
|
15238
15257
|
] }),
|
|
15239
15258
|
l && /* @__PURE__ */ u("div", { className: "mt-5 text-left", children: [
|
|
15240
15259
|
/* @__PURE__ */ n("p", { className: Li, children: g.sendReceipt }),
|
|
15241
|
-
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children:
|
|
15260
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: k0.map((x) => {
|
|
15242
15261
|
const y = s?.includes(x) ?? !1;
|
|
15243
15262
|
return /* @__PURE__ */ u(
|
|
15244
15263
|
"button",
|
|
@@ -15273,7 +15292,7 @@ const x0 = {
|
|
|
15273
15292
|
}
|
|
15274
15293
|
);
|
|
15275
15294
|
};
|
|
15276
|
-
|
|
15295
|
+
C0.displayName = "OutcomeView";
|
|
15277
15296
|
const ze = {
|
|
15278
15297
|
base: "relative inline-grid min-w-[var(--filter-select-min)] max-w-max shrink grow basis-[var(--filter-select-min)] grid-cols-[minmax(0,1fr)] [--filter-select-min:6rem]",
|
|
15279
15298
|
baseActive: "[--filter-select-min:8rem]",
|
|
@@ -15289,7 +15308,7 @@ const ze = {
|
|
|
15289
15308
|
clear: "absolute right-[1.875rem] top-1/2 z-20 inline-flex size-[1.25rem] -translate-y-1/2 items-center justify-center rounded-md text-primary-600 outline-none hover:bg-white/70 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary",
|
|
15290
15309
|
clearIcon: "size-[0.8125rem]",
|
|
15291
15310
|
optionTitle: "whitespace-normal break-words"
|
|
15292
|
-
},
|
|
15311
|
+
}, S0 = "grid shrink grow basis-0 grid-flow-col auto-cols-auto gap-2.5 [--filter-select-cap:16rem] max-w-[calc(var(--filter-select-count)*var(--filter-select-cap)+(var(--filter-select-count)-1)*0.625rem)] [&>[data-slot=filter-select]]:max-w-none", $0 = "calc(100vw - 1.5rem)", A0 = ({
|
|
15293
15312
|
label: e,
|
|
15294
15313
|
value: t,
|
|
15295
15314
|
options: a,
|
|
@@ -15331,7 +15350,7 @@ const ze = {
|
|
|
15331
15350
|
// Taking over HeroUI's popover ref skips its effect that pins the list to the trigger width.
|
|
15332
15351
|
ref: f,
|
|
15333
15352
|
placement: "bottom-start",
|
|
15334
|
-
style: { minWidth: m, maxWidth:
|
|
15353
|
+
style: { minWidth: m, maxWidth: $0 }
|
|
15335
15354
|
},
|
|
15336
15355
|
"data-testid": `${l}-trigger`,
|
|
15337
15356
|
classNames: {
|
|
@@ -15369,8 +15388,8 @@ const ze = {
|
|
|
15369
15388
|
}
|
|
15370
15389
|
);
|
|
15371
15390
|
};
|
|
15372
|
-
|
|
15373
|
-
const
|
|
15391
|
+
A0.displayName = "FilterSelect";
|
|
15392
|
+
const D0 = ({
|
|
15374
15393
|
children: e,
|
|
15375
15394
|
className: t,
|
|
15376
15395
|
"data-testid": a = "filter-select-group"
|
|
@@ -15379,19 +15398,19 @@ const A0 = ({
|
|
|
15379
15398
|
{
|
|
15380
15399
|
"data-testid": a,
|
|
15381
15400
|
"data-slot": "filter-select-group",
|
|
15382
|
-
className: p(
|
|
15401
|
+
className: p(S0, t),
|
|
15383
15402
|
style: { "--filter-select-count": G.Children.toArray(e).length },
|
|
15384
15403
|
children: e
|
|
15385
15404
|
}
|
|
15386
15405
|
);
|
|
15387
|
-
|
|
15406
|
+
D0.displayName = "FilterSelectGroup";
|
|
15388
15407
|
const yt = {
|
|
15389
15408
|
base: "flex flex-wrap items-center justify-center gap-2.5 border-t border-pos-hair px-5 py-[0.875rem] text-[0.84375rem] text-default-500",
|
|
15390
15409
|
idle: "w-full",
|
|
15391
15410
|
sentinel: "h-px w-full",
|
|
15392
15411
|
spinner: "inline-flex",
|
|
15393
15412
|
error: "text-pos-danger"
|
|
15394
|
-
},
|
|
15413
|
+
}, E0 = ({
|
|
15395
15414
|
status: e,
|
|
15396
15415
|
onLoadMore: t,
|
|
15397
15416
|
loadingLabel: a,
|
|
@@ -15462,7 +15481,7 @@ const yt = {
|
|
|
15462
15481
|
}
|
|
15463
15482
|
);
|
|
15464
15483
|
};
|
|
15465
|
-
|
|
15484
|
+
E0.displayName = "LoadMoreFooter";
|
|
15466
15485
|
const $e = {
|
|
15467
15486
|
base: "w-full",
|
|
15468
15487
|
list: "m-0 list-none p-0",
|
|
@@ -15495,7 +15514,7 @@ const $e = {
|
|
|
15495
15514
|
/* @__PURE__ */ n("span", { className: $e.rowLabel, children: a.label }),
|
|
15496
15515
|
/* @__PURE__ */ n("span", { className: $e.rowValue, children: a.value })
|
|
15497
15516
|
] }, r)) })
|
|
15498
|
-
] }),
|
|
15517
|
+
] }), F0 = ({
|
|
15499
15518
|
items: e,
|
|
15500
15519
|
ariaLabel: t,
|
|
15501
15520
|
onSelect: a,
|
|
@@ -15528,8 +15547,8 @@ const $e = {
|
|
|
15528
15547
|
)
|
|
15529
15548
|
] }, l.id);
|
|
15530
15549
|
}) }) });
|
|
15531
|
-
|
|
15532
|
-
const
|
|
15550
|
+
F0.displayName = "CardList";
|
|
15551
|
+
const L0 = 48, se = {
|
|
15533
15552
|
base: `mb-4 overflow-hidden rounded-2xl border border-pos-line bg-white ${Ya}`,
|
|
15534
15553
|
band: "flex items-center gap-2.5 border-b border-pos-hair bg-pos-page px-4 py-2.5",
|
|
15535
15554
|
back: `inline-flex size-[1.625rem] shrink-0 items-center justify-center rounded-[0.625rem] text-default-500 outline-none transition-colors hover:bg-default-100 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary ${ma}`,
|
|
@@ -15572,7 +15591,7 @@ const F0 = 48, se = {
|
|
|
15572
15591
|
statsNarrow: "px-4 pb-4"
|
|
15573
15592
|
}, _l = Ft((e, t) => /* @__PURE__ */ n("li", { ref: t, ...Object.fromEntries(Object.entries(e).filter(([a]) => a !== "data-testid")) }));
|
|
15574
15593
|
_l.displayName = "CrumbBase";
|
|
15575
|
-
const
|
|
15594
|
+
const _0 = ({
|
|
15576
15595
|
breadcrumb: e = [],
|
|
15577
15596
|
onBack: t,
|
|
15578
15597
|
backLabel: a,
|
|
@@ -15588,7 +15607,7 @@ const L0 = ({
|
|
|
15588
15607
|
banner: g,
|
|
15589
15608
|
"data-testid": h = "record-header"
|
|
15590
15609
|
}) => {
|
|
15591
|
-
const { ref: x, width: y } = Ut(), b = !da(y,
|
|
15610
|
+
const { ref: x, width: y } = Ut(), b = !da(y, L0), N = e.length > 0 || !!t, k = !!(f && f.length > 0), E = !!s || oe(l) || oe(o) || oe(c) || oe(d) || k;
|
|
15592
15611
|
return /* @__PURE__ */ u("div", { ref: x, "data-testid": h, "data-size": b ? "narrow" : "wide", className: se.base, children: [
|
|
15593
15612
|
N && /* @__PURE__ */ u("div", { "data-testid": `${h}-band`, className: se.band, children: [
|
|
15594
15613
|
t && /* @__PURE__ */ n(
|
|
@@ -15698,19 +15717,19 @@ const L0 = ({
|
|
|
15698
15717
|
oe(g) && /* @__PURE__ */ n("div", { "data-testid": `${h}-banner`, children: g })
|
|
15699
15718
|
] });
|
|
15700
15719
|
};
|
|
15701
|
-
|
|
15702
|
-
const
|
|
15720
|
+
_0.displayName = "RecordHeader";
|
|
15721
|
+
const M0 = 50, Qt = {
|
|
15703
15722
|
base: "grid items-start gap-4",
|
|
15704
15723
|
split: "grid-cols-[minmax(0,1fr)_23.25rem]",
|
|
15705
15724
|
stacked: "grid-cols-[minmax(0,1fr)]",
|
|
15706
15725
|
column: "min-w-0",
|
|
15707
15726
|
aside: "flex min-w-0 flex-col gap-[0.875rem]"
|
|
15708
|
-
},
|
|
15727
|
+
}, R0 = ({
|
|
15709
15728
|
children: e,
|
|
15710
15729
|
aside: t,
|
|
15711
15730
|
"data-testid": a = "record-layout"
|
|
15712
15731
|
}) => {
|
|
15713
|
-
const { ref: r, width: i } = Ut(), s = oe(t), l = s && i > 0 && da(i,
|
|
15732
|
+
const { ref: r, width: i } = Ut(), s = oe(t), l = s && i > 0 && da(i, M0), o = /* @__PURE__ */ n("div", { "data-testid": `${a}-main`, className: Qt.column, children: e }, "main"), c = s ? /* @__PURE__ */ n("div", { "data-testid": `${a}-aside`, className: Qt.aside, children: t }, "aside") : null;
|
|
15714
15733
|
return /* @__PURE__ */ n(
|
|
15715
15734
|
"div",
|
|
15716
15735
|
{
|
|
@@ -15722,15 +15741,15 @@ const _0 = 50, Qt = {
|
|
|
15722
15741
|
}
|
|
15723
15742
|
);
|
|
15724
15743
|
};
|
|
15725
|
-
|
|
15726
|
-
const
|
|
15744
|
+
R0.displayName = "RecordLayout";
|
|
15745
|
+
const P0 = 560, Zt = {
|
|
15727
15746
|
base: "grid gap-3",
|
|
15728
15747
|
tile: "min-w-0 rounded-[14px] border border-pos-line bg-white px-[18px] py-4 shadow-[0_1px_4px_rgba(0,0,0,.06),0_4px_12px_rgba(0,0,0,.06)]",
|
|
15729
15748
|
value: "text-[23px] font-bold leading-[1.2] tracking-[-.02em] tabular-nums text-default-900 [overflow-wrap:anywhere]",
|
|
15730
15749
|
label: "mt-[5px] text-[13.5px] text-default-500",
|
|
15731
15750
|
caption: "mt-0.5 text-[12.5px] text-default-500"
|
|
15732
|
-
},
|
|
15733
|
-
const { ref: a, width: r } = Ut(), i = r >= Lf ? Math.max(e.length, 1) : r >=
|
|
15751
|
+
}, O0 = ({ items: e, "data-testid": t = "stat-tiles" }) => {
|
|
15752
|
+
const { ref: a, width: r } = Ut(), i = r >= Lf ? Math.max(e.length, 1) : r >= P0 ? 2 : 1;
|
|
15734
15753
|
return /* @__PURE__ */ n(
|
|
15735
15754
|
"div",
|
|
15736
15755
|
{
|
|
@@ -15755,7 +15774,7 @@ const R0 = 560, Zt = {
|
|
|
15755
15774
|
}
|
|
15756
15775
|
);
|
|
15757
15776
|
};
|
|
15758
|
-
|
|
15777
|
+
O0.displayName = "StatTiles";
|
|
15759
15778
|
const ut = {
|
|
15760
15779
|
base: "mb-3.5 w-full",
|
|
15761
15780
|
tabList: "w-full gap-1 rounded-full border border-pos-line bg-default-100 p-1",
|
|
@@ -15767,7 +15786,7 @@ const ut = {
|
|
|
15767
15786
|
title: "flex items-center whitespace-nowrap",
|
|
15768
15787
|
icon: "flex shrink-0",
|
|
15769
15788
|
count: "rounded-full bg-default-200 py-px leading-[1.5] font-semibold text-default-600 group-data-[selected=true]:bg-acct-rust-fill group-data-[selected=true]:text-primary-600"
|
|
15770
|
-
},
|
|
15789
|
+
}, z0 = {
|
|
15771
15790
|
md: {
|
|
15772
15791
|
tab: "px-[0.875rem] py-[0.5625rem]",
|
|
15773
15792
|
tabContent: "text-[0.84375rem]",
|
|
@@ -15782,12 +15801,12 @@ const ut = {
|
|
|
15782
15801
|
icon: "[&_svg]:size-5",
|
|
15783
15802
|
count: "px-2 text-[0.8125rem]"
|
|
15784
15803
|
}
|
|
15785
|
-
}, br = "pill-tabs", Ml = (e, t = br) => `${t}-tab-${e}`, Rl = (e, t = br) => `${t}-panel-${e}`,
|
|
15804
|
+
}, br = "pill-tabs", Ml = (e, t = br) => `${t}-tab-${e}`, Rl = (e, t = br) => `${t}-panel-${e}`, ub = (e, t = br) => ({
|
|
15786
15805
|
role: "tabpanel",
|
|
15787
15806
|
id: Rl(e, t),
|
|
15788
15807
|
"aria-labelledby": Ml(e, t),
|
|
15789
15808
|
tabIndex: 0
|
|
15790
|
-
}),
|
|
15809
|
+
}), T0 = ({
|
|
15791
15810
|
items: e,
|
|
15792
15811
|
value: t,
|
|
15793
15812
|
onChange: a,
|
|
@@ -15796,7 +15815,7 @@ const ut = {
|
|
|
15796
15815
|
size: s = "md",
|
|
15797
15816
|
"data-testid": l = "pill-tabs"
|
|
15798
15817
|
}) => {
|
|
15799
|
-
const o = Wf(), c = !!so()?.disableAnimation, d = i ?? l, f =
|
|
15818
|
+
const o = Wf(), c = !!so()?.disableAnimation, d = i ?? l, f = z0[s];
|
|
15800
15819
|
return /* @__PURE__ */ n(
|
|
15801
15820
|
qn,
|
|
15802
15821
|
{
|
|
@@ -15852,7 +15871,7 @@ const ut = {
|
|
|
15852
15871
|
}
|
|
15853
15872
|
);
|
|
15854
15873
|
};
|
|
15855
|
-
|
|
15874
|
+
T0.displayName = "PillTabs";
|
|
15856
15875
|
const ve = {
|
|
15857
15876
|
base: "w-full",
|
|
15858
15877
|
list: "m-0 list-none p-0",
|
|
@@ -15895,7 +15914,7 @@ const ve = {
|
|
|
15895
15914
|
children: e.note
|
|
15896
15915
|
}
|
|
15897
15916
|
) : null })
|
|
15898
|
-
] }),
|
|
15917
|
+
] }), I0 = ({
|
|
15899
15918
|
rows: e,
|
|
15900
15919
|
footer: t,
|
|
15901
15920
|
emptyContent: a,
|
|
@@ -15930,7 +15949,7 @@ const ve = {
|
|
|
15930
15949
|
t.note != null && /* @__PURE__ */ n("div", { "data-testid": `${i}-footer-note`, className: ve.footerNote, children: t.note })
|
|
15931
15950
|
] })
|
|
15932
15951
|
] });
|
|
15933
|
-
|
|
15952
|
+
I0.displayName = "AmountList";
|
|
15934
15953
|
const He = {
|
|
15935
15954
|
list: "m-0 list-none p-0 pl-0.5",
|
|
15936
15955
|
event: "flex gap-3.5",
|
|
@@ -15945,7 +15964,7 @@ const He = {
|
|
|
15945
15964
|
detail: "mt-[0.1875rem] min-w-0 text-[0.84375rem] leading-[1.5] text-default-500 [overflow-wrap:anywhere]",
|
|
15946
15965
|
actor: "mt-[0.1875rem] min-w-0 text-[0.78125rem] text-default-500 [overflow-wrap:anywhere]",
|
|
15947
15966
|
empty: "text-[0.875rem] text-default-500"
|
|
15948
|
-
},
|
|
15967
|
+
}, B0 = ({
|
|
15949
15968
|
events: e,
|
|
15950
15969
|
emptyContent: t,
|
|
15951
15970
|
"data-testid": a = "activity-timeline"
|
|
@@ -15966,7 +15985,7 @@ const He = {
|
|
|
15966
15985
|
] })
|
|
15967
15986
|
] }, r.id);
|
|
15968
15987
|
}) });
|
|
15969
|
-
|
|
15988
|
+
B0.displayName = "ActivityTimeline";
|
|
15970
15989
|
const Fe = {
|
|
15971
15990
|
base: `overflow-hidden rounded-2xl border border-pos-line bg-white ${Ya}`,
|
|
15972
15991
|
header: "flex flex-wrap items-center gap-2 px-5 pt-4",
|
|
@@ -15994,7 +16013,7 @@ const Fe = {
|
|
|
15994
16013
|
!!e.secondary && /* @__PURE__ */ n("span", { className: Fe.secondary, children: e.secondary })
|
|
15995
16014
|
] }),
|
|
15996
16015
|
!!e.amount && /* @__PURE__ */ n("span", { "data-testid": `${t}-amount`, className: Fe.amount, style: ua(e.amountTone), children: e.amount })
|
|
15997
|
-
] }),
|
|
16016
|
+
] }), V0 = ({
|
|
15998
16017
|
title: e,
|
|
15999
16018
|
count: t,
|
|
16000
16019
|
rows: a,
|
|
@@ -16048,8 +16067,8 @@ const Fe = {
|
|
|
16048
16067
|
}
|
|
16049
16068
|
);
|
|
16050
16069
|
};
|
|
16051
|
-
|
|
16052
|
-
const
|
|
16070
|
+
V0.displayName = "RelatedRecordList";
|
|
16071
|
+
const U0 = ({
|
|
16053
16072
|
title: e,
|
|
16054
16073
|
titleAs: t = "h2",
|
|
16055
16074
|
icon: a,
|
|
@@ -16102,27 +16121,27 @@ const V0 = ({
|
|
|
16102
16121
|
}
|
|
16103
16122
|
);
|
|
16104
16123
|
};
|
|
16105
|
-
|
|
16106
|
-
const
|
|
16124
|
+
U0.displayName = "RecordCard";
|
|
16125
|
+
const j0 = {
|
|
16107
16126
|
stack: "flex min-w-0 flex-col gap-[0.875rem]",
|
|
16108
16127
|
grid: "grid min-w-0 grid-cols-[repeat(auto-fit,minmax(min(100%,18.75rem),1fr))] items-start gap-[0.875rem]"
|
|
16109
|
-
},
|
|
16128
|
+
}, H0 = ({
|
|
16110
16129
|
layout: e = "stack",
|
|
16111
16130
|
className: t,
|
|
16112
16131
|
children: a,
|
|
16113
16132
|
"data-testid": r = "card-stack",
|
|
16114
16133
|
...i
|
|
16115
|
-
}) => /* @__PURE__ */ n("div", { ...i, "data-testid": r, "data-layout": e, className: p(
|
|
16116
|
-
|
|
16134
|
+
}) => /* @__PURE__ */ n("div", { ...i, "data-testid": r, "data-layout": e, className: p(j0[e], t), children: a });
|
|
16135
|
+
H0.displayName = "CardStack";
|
|
16117
16136
|
const ya = {
|
|
16118
16137
|
list: "m-0 divide-y divide-pos-hair",
|
|
16119
16138
|
row: "flex items-baseline gap-3",
|
|
16120
16139
|
label: "min-w-0 text-[0.84375rem] text-default-500",
|
|
16121
16140
|
value: "m-0 ml-auto flex min-w-0 flex-wrap justify-end gap-[0.3125rem] text-right text-[0.875rem] text-default-900 [overflow-wrap:anywhere]"
|
|
16122
|
-
},
|
|
16141
|
+
}, W0 = {
|
|
16123
16142
|
regular: "py-[0.5625rem]",
|
|
16124
16143
|
compact: "py-2"
|
|
16125
|
-
},
|
|
16144
|
+
}, q0 = ({
|
|
16126
16145
|
rows: e,
|
|
16127
16146
|
density: t = "regular",
|
|
16128
16147
|
"data-testid": a = "key-value-rows"
|
|
@@ -16130,7 +16149,7 @@ const ya = {
|
|
|
16130
16149
|
"div",
|
|
16131
16150
|
{
|
|
16132
16151
|
"data-testid": `${a}-row-${r.id ?? i}`,
|
|
16133
|
-
className: p(ya.row,
|
|
16152
|
+
className: p(ya.row, W0[t]),
|
|
16134
16153
|
children: [
|
|
16135
16154
|
/* @__PURE__ */ n("dt", { className: ya.label, children: r.label }),
|
|
16136
16155
|
/* @__PURE__ */ n("dd", { className: ya.value, children: r.value })
|
|
@@ -16138,7 +16157,7 @@ const ya = {
|
|
|
16138
16157
|
},
|
|
16139
16158
|
r.id ?? i
|
|
16140
16159
|
)) });
|
|
16141
|
-
|
|
16160
|
+
q0.displayName = "KeyValueRows";
|
|
16142
16161
|
const Qe = {
|
|
16143
16162
|
list: "m-0 list-none p-0",
|
|
16144
16163
|
row: "flex items-start gap-[0.875rem] border-t border-pos-hair px-5 py-3",
|
|
@@ -16151,7 +16170,7 @@ const Qe = {
|
|
|
16151
16170
|
amounts: "inline-flex items-baseline gap-2",
|
|
16152
16171
|
original: "text-[0.8125rem] tabular-nums text-default-500 line-through",
|
|
16153
16172
|
amount: "whitespace-nowrap text-[0.9375rem] font-bold tabular-nums text-default-900"
|
|
16154
|
-
},
|
|
16173
|
+
}, G0 = ({
|
|
16155
16174
|
items: e,
|
|
16156
16175
|
ariaLabel: t,
|
|
16157
16176
|
originalAmountLabel: a,
|
|
@@ -16198,8 +16217,8 @@ const Qe = {
|
|
|
16198
16217
|
i.id
|
|
16199
16218
|
);
|
|
16200
16219
|
}) });
|
|
16201
|
-
|
|
16202
|
-
const
|
|
16220
|
+
G0.displayName = "LineItemRows";
|
|
16221
|
+
const K0 = 37.5, Re = {
|
|
16203
16222
|
base: "mx-5 border-t border-pos-hair pb-[1.125rem] pt-2.5",
|
|
16204
16223
|
rowWide: "flex items-baseline gap-4",
|
|
16205
16224
|
rowNarrow: "flex flex-wrap items-baseline gap-x-3",
|
|
@@ -16216,56 +16235,56 @@ const G0 = 37.5, Me = {
|
|
|
16216
16235
|
totalLabel: "text-[0.9375rem] font-bold text-default-900",
|
|
16217
16236
|
totalValue: "ml-auto shrink-0 whitespace-nowrap text-right text-[1.0625rem] font-bold tabular-nums text-default-900",
|
|
16218
16237
|
memo: "mt-2 text-[0.78125rem] leading-[1.6] text-default-500"
|
|
16219
|
-
},
|
|
16238
|
+
}, Y0 = ({
|
|
16220
16239
|
rows: e,
|
|
16221
16240
|
total: t,
|
|
16222
16241
|
memo: a,
|
|
16223
16242
|
"data-testid": r = "record-totals"
|
|
16224
16243
|
}) => {
|
|
16225
|
-
const { ref: i, width: s } = Ut(), l = s > 0 && !da(s,
|
|
16244
|
+
const { ref: i, width: s } = Ut(), l = s > 0 && !da(s, K0), o = l ? Re.rowNarrow : Re.rowWide, c = l ? Re.labelNarrow : Re.labelWide, d = l ? Re.noteNarrow : Re.noteWide;
|
|
16226
16245
|
return /* @__PURE__ */ u(
|
|
16227
16246
|
"div",
|
|
16228
16247
|
{
|
|
16229
16248
|
ref: i,
|
|
16230
16249
|
"data-testid": r,
|
|
16231
16250
|
"data-size": l ? "narrow" : "wide",
|
|
16232
|
-
className:
|
|
16251
|
+
className: Re.base,
|
|
16233
16252
|
children: [
|
|
16234
16253
|
e.map((f) => {
|
|
16235
16254
|
const m = `${r}-row-${f.id}`;
|
|
16236
|
-
return /* @__PURE__ */ u("div", { "data-testid": m, className: p(o,
|
|
16237
|
-
/* @__PURE__ */ n("span", { "data-testid": `${m}-label`, className: p(c,
|
|
16238
|
-
/* @__PURE__ */ n("span", { "data-testid": `${m}-note`, className: p(d,
|
|
16255
|
+
return /* @__PURE__ */ u("div", { "data-testid": m, className: p(o, Re.row), children: [
|
|
16256
|
+
/* @__PURE__ */ n("span", { "data-testid": `${m}-label`, className: p(c, Re.label), children: f.label }),
|
|
16257
|
+
/* @__PURE__ */ n("span", { "data-testid": `${m}-note`, className: p(d, Re.note), children: f.note }),
|
|
16239
16258
|
/* @__PURE__ */ n(
|
|
16240
16259
|
"span",
|
|
16241
16260
|
{
|
|
16242
16261
|
"data-testid": `${m}-value`,
|
|
16243
|
-
className:
|
|
16262
|
+
className: Re.value,
|
|
16244
16263
|
style: ua(f.tone),
|
|
16245
16264
|
children: f.value
|
|
16246
16265
|
}
|
|
16247
16266
|
)
|
|
16248
16267
|
] }, f.id);
|
|
16249
16268
|
}),
|
|
16250
|
-
/* @__PURE__ */ n("div", { className:
|
|
16251
|
-
/* @__PURE__ */ n("span", { className: p(c,
|
|
16252
|
-
/* @__PURE__ */ n("span", { "data-testid": `${r}-total-value`, className:
|
|
16269
|
+
/* @__PURE__ */ n("div", { className: Re.totalRule, children: /* @__PURE__ */ u("div", { "data-testid": `${r}-total`, className: p(o, Re.totalRow), children: [
|
|
16270
|
+
/* @__PURE__ */ n("span", { className: p(c, Re.totalLabel), children: t.label }),
|
|
16271
|
+
/* @__PURE__ */ n("span", { "data-testid": `${r}-total-value`, className: Re.totalValue, children: t.value })
|
|
16253
16272
|
] }) }),
|
|
16254
|
-
oe(a) && /* @__PURE__ */ n("div", { "data-testid": `${r}-memo`, className:
|
|
16273
|
+
oe(a) && /* @__PURE__ */ n("div", { "data-testid": `${r}-memo`, className: Re.memo, children: a })
|
|
16255
16274
|
]
|
|
16256
16275
|
}
|
|
16257
16276
|
);
|
|
16258
16277
|
};
|
|
16259
|
-
|
|
16278
|
+
Y0.displayName = "RecordTotals";
|
|
16260
16279
|
const In = {
|
|
16261
16280
|
base: "whitespace-nowrap text-[0.875rem]",
|
|
16262
16281
|
secondary: "text-default-500",
|
|
16263
16282
|
chipStack: "inline-flex flex-col items-start gap-[0.3125rem]"
|
|
16264
|
-
},
|
|
16283
|
+
}, Q0 = {
|
|
16265
16284
|
text: "text-default-900",
|
|
16266
16285
|
reference: "font-normal text-primary",
|
|
16267
16286
|
amount: "font-semibold tabular-nums text-default-900"
|
|
16268
|
-
},
|
|
16287
|
+
}, Z0 = ({
|
|
16269
16288
|
variant: e = "text",
|
|
16270
16289
|
tone: t,
|
|
16271
16290
|
secondary: a,
|
|
@@ -16275,7 +16294,7 @@ const In = {
|
|
|
16275
16294
|
"span",
|
|
16276
16295
|
{
|
|
16277
16296
|
"data-testid": i,
|
|
16278
|
-
className: p(In.base,
|
|
16297
|
+
className: p(In.base, Q0[e]),
|
|
16279
16298
|
style: ua(t),
|
|
16280
16299
|
children: [
|
|
16281
16300
|
r,
|
|
@@ -16286,32 +16305,32 @@ const In = {
|
|
|
16286
16305
|
]
|
|
16287
16306
|
}
|
|
16288
16307
|
);
|
|
16289
|
-
|
|
16290
|
-
const
|
|
16291
|
-
|
|
16308
|
+
Z0.displayName = "CellText";
|
|
16309
|
+
const X0 = ({ children: e, "data-testid": t = "chip-stack" }) => /* @__PURE__ */ n("span", { "data-testid": t, className: In.chipStack, children: e });
|
|
16310
|
+
X0.displayName = "ChipStack";
|
|
16292
16311
|
export {
|
|
16293
|
-
|
|
16312
|
+
B0 as ActivityTimeline,
|
|
16294
16313
|
fh as AdminFieldLabel,
|
|
16295
16314
|
Xf as AdminTable,
|
|
16296
16315
|
hh as AdminTextField,
|
|
16297
16316
|
ah as AdminToolbar,
|
|
16298
|
-
|
|
16317
|
+
I0 as AmountList,
|
|
16299
16318
|
cd as AppliedCodeCard,
|
|
16300
16319
|
B as Button,
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16320
|
+
F0 as CardList,
|
|
16321
|
+
H0 as CardStack,
|
|
16322
|
+
nb as CashTenderForm,
|
|
16304
16323
|
Ym as CatalogItemCard,
|
|
16305
|
-
|
|
16324
|
+
Z0 as CellText,
|
|
16306
16325
|
Uh as CheckTenderForm,
|
|
16307
|
-
|
|
16308
|
-
|
|
16326
|
+
X0 as ChipStack,
|
|
16327
|
+
Zg as CommitmentDetails,
|
|
16309
16328
|
yl as ConfirmDialog,
|
|
16310
16329
|
Ys as ConfirmationModal,
|
|
16311
|
-
|
|
16312
|
-
|
|
16330
|
+
Tg as ConfirmationPageTemplate,
|
|
16331
|
+
a0 as CustomerCard,
|
|
16313
16332
|
_s as DatePicker,
|
|
16314
|
-
|
|
16333
|
+
Pg as DensityProvider,
|
|
16315
16334
|
Uf as DimensionChip,
|
|
16316
16335
|
vp as DiscardGuard,
|
|
16317
16336
|
pu as DonationAmounts,
|
|
@@ -16320,48 +16339,48 @@ export {
|
|
|
16320
16339
|
Ah as EntityListSkeleton,
|
|
16321
16340
|
Sh as EntityRow,
|
|
16322
16341
|
tl as ErrorState,
|
|
16323
|
-
|
|
16324
|
-
|
|
16342
|
+
Ug as EventDetails,
|
|
16343
|
+
Ig as EventDetailsTemplate,
|
|
16325
16344
|
yu as ExpireCartTimer,
|
|
16326
16345
|
ca as FeedbackState,
|
|
16327
16346
|
Cf as FilterPopover,
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16347
|
+
A0 as FilterSelect,
|
|
16348
|
+
D0 as FilterSelectGroup,
|
|
16349
|
+
Bg as Footer,
|
|
16350
|
+
Mg as HeroUIProvider,
|
|
16332
16351
|
Bd as HorizontalSteps,
|
|
16333
16352
|
bp as InlineConfirm,
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16353
|
+
Yg as InstallmentFundAssignment,
|
|
16354
|
+
Qg as InstallmentFundAssignmentSkeleton,
|
|
16355
|
+
Xg as InstallmentSchedule,
|
|
16356
|
+
Jg as InstallmentScheduleSkeleton,
|
|
16357
|
+
eb as InstallmentTable,
|
|
16339
16358
|
Km as ItemCard,
|
|
16340
16359
|
Uf as KeyValueChip,
|
|
16341
|
-
|
|
16360
|
+
q0 as KeyValueRows,
|
|
16342
16361
|
Jp as LineItemList,
|
|
16343
|
-
|
|
16362
|
+
G0 as LineItemRows,
|
|
16344
16363
|
Mh as ListPanel,
|
|
16345
|
-
|
|
16364
|
+
E0 as LoadMoreFooter,
|
|
16346
16365
|
mp as LoadingOverlay,
|
|
16347
16366
|
al as LoadingState,
|
|
16348
|
-
|
|
16349
|
-
|
|
16367
|
+
tb as MembershipSelectCards,
|
|
16368
|
+
db as MetaCard,
|
|
16350
16369
|
Lp as ModalPanelHeader,
|
|
16351
|
-
|
|
16370
|
+
lb as ModalPanels,
|
|
16352
16371
|
ep as ModalShell,
|
|
16353
16372
|
ap as ModalShellFooter,
|
|
16354
16373
|
tp as ModalShellHeader,
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16374
|
+
Vg as Multiselect,
|
|
16375
|
+
zg as Navbar,
|
|
16376
|
+
s0 as NotesField,
|
|
16358
16377
|
Ln as OfferCard,
|
|
16359
16378
|
wu as OfferCardEmpty,
|
|
16360
16379
|
ku as OfferCardError,
|
|
16361
16380
|
Eu as OfferCardList,
|
|
16362
16381
|
Su as OfferCardSkeleton,
|
|
16363
16382
|
Wh as OtherTenderForm,
|
|
16364
|
-
|
|
16383
|
+
C0 as OutcomeView,
|
|
16365
16384
|
Pf as PageHeader,
|
|
16366
16385
|
Eh as PaginationSummary,
|
|
16367
16386
|
bl as PaymentCashChangeBanner,
|
|
@@ -16369,36 +16388,36 @@ export {
|
|
|
16369
16388
|
fp as PaymentSuccessView,
|
|
16370
16389
|
dp as PaymentTotalBanner,
|
|
16371
16390
|
bh as PickerRow,
|
|
16372
|
-
|
|
16373
|
-
|
|
16391
|
+
T0 as PillTabs,
|
|
16392
|
+
x0 as PinField,
|
|
16374
16393
|
Zm as ProgramListItem,
|
|
16375
16394
|
su as RICH_TEXT_PRESETS,
|
|
16376
|
-
|
|
16377
|
-
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16382
|
-
|
|
16395
|
+
r0 as ReasonSelect,
|
|
16396
|
+
U0 as RecordCard,
|
|
16397
|
+
_0 as RecordHeader,
|
|
16398
|
+
R0 as RecordLayout,
|
|
16399
|
+
Y0 as RecordTotals,
|
|
16400
|
+
Og as RedeemCodeInput,
|
|
16401
|
+
V0 as RelatedRecordList,
|
|
16383
16402
|
Ju as RevenueDistributionCard,
|
|
16384
16403
|
em as RevenueDistributionEmpty,
|
|
16385
16404
|
am as RevenueDistributionError,
|
|
16386
16405
|
nm as RevenueDistributionSkeleton,
|
|
16387
16406
|
mu as RichTextArea,
|
|
16388
16407
|
gh as RowActions,
|
|
16389
|
-
|
|
16408
|
+
t0 as SectionPanel,
|
|
16390
16409
|
st as Select,
|
|
16391
16410
|
Ef as SessionTimeline,
|
|
16392
16411
|
Zh as SplitPaymentSummary,
|
|
16393
|
-
|
|
16394
|
-
|
|
16412
|
+
g0 as SplitTenderPanel,
|
|
16413
|
+
O0 as StatTiles,
|
|
16395
16414
|
Bf as StatusChip,
|
|
16396
16415
|
zd as Stepper,
|
|
16397
16416
|
uf as SuccessState,
|
|
16398
16417
|
jp as Summary,
|
|
16399
16418
|
qf as TableSkeleton,
|
|
16400
|
-
|
|
16401
|
-
|
|
16419
|
+
u0 as TenderMethods,
|
|
16420
|
+
ab as TicketSelection,
|
|
16402
16421
|
lp as TileSelect,
|
|
16403
16422
|
mf as Toggle,
|
|
16404
16423
|
sh as ToolbarButton,
|
|
@@ -16412,38 +16431,38 @@ export {
|
|
|
16412
16431
|
dh as adminInputReadOnlyClass,
|
|
16413
16432
|
oh as adminInputWrapperClass,
|
|
16414
16433
|
Yf as adminRowClass,
|
|
16415
|
-
|
|
16434
|
+
_g as adminSurfaceCss,
|
|
16416
16435
|
Qi as adminSurfaceTokens,
|
|
16417
16436
|
Qf as adminTableClass,
|
|
16418
16437
|
Zf as adminTableFooterClass,
|
|
16419
16438
|
Kf as adminTdClass,
|
|
16420
16439
|
Gf as adminThClass,
|
|
16421
|
-
|
|
16440
|
+
Kg as calculateAllocationDifference,
|
|
16422
16441
|
Wr as computeChange,
|
|
16423
16442
|
qa as currencyFractionDigits,
|
|
16424
16443
|
Ne as formatMoney,
|
|
16425
16444
|
Qr as formatOfferCurrency,
|
|
16426
|
-
|
|
16427
|
-
|
|
16445
|
+
Hg as formatRevenueAmount,
|
|
16446
|
+
Wg as formatRevenueCurrency,
|
|
16428
16447
|
vm as generateAutomaticInstallments,
|
|
16429
16448
|
Ks as generateDistributionId,
|
|
16430
|
-
|
|
16449
|
+
qg as getCurrencySymbol,
|
|
16431
16450
|
Au as offerCardVariants,
|
|
16432
16451
|
$u as offerListVariants,
|
|
16433
16452
|
Dh as pageRange,
|
|
16434
|
-
|
|
16435
|
-
|
|
16453
|
+
jg as parseOfferCurrency,
|
|
16454
|
+
Gg as parseRevenueCurrency,
|
|
16436
16455
|
Ml as pillTabId,
|
|
16437
16456
|
Rl as pillTabPanelId,
|
|
16438
|
-
|
|
16439
|
-
|
|
16457
|
+
ub as pillTabPanelProps,
|
|
16458
|
+
_e as posSurfaceTokens,
|
|
16440
16459
|
Rs as roundToCurrency,
|
|
16441
|
-
|
|
16460
|
+
Rg as useControlSize,
|
|
16442
16461
|
Yn as useDensity,
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16446
|
-
|
|
16447
|
-
|
|
16462
|
+
cb as useDiscardGuard,
|
|
16463
|
+
ib as useDiscardGuardActions,
|
|
16464
|
+
sb as useModalPanel,
|
|
16465
|
+
ob as useModalPanels,
|
|
16466
|
+
rb as useReportUnsavedChanges
|
|
16448
16467
|
};
|
|
16449
16468
|
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('.ProseMirror{flex:1;width:100%;min-height:100%;height:100%;cursor:text;background-color:#fff;padding:1rem;overflow-y:auto;box-sizing:border-box}.ProseMirror p{min-height:1.5em}.dark .ProseMirror{background-color:rgb(var(--nextui-background))}.ProseMirror ul{list-style-type:disc!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ol{list-style-type:decimal!important;list-style-position:outside!important;padding-left:2rem!important;margin:1rem 0!important;display:block!important}.ProseMirror ul li,.ProseMirror ol li{display:list-item!important;list-style:inherit!important;margin:.25rem 0!important}.ProseMirror ul li p,.ProseMirror ol li p{margin:0!important;display:inline!important}.ProseMirror ul[data-type=taskList]{list-style:none!important;padding-left:0!important;margin:1rem 0!important}.ProseMirror ul[data-type=taskList] li{display:flex!important;align-items:flex-start!important;margin:.5rem 0!important}.ProseMirror ul[data-type=taskList] li label{margin-right:.5rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ProseMirror ul[data-type=taskList] li input[type=checkbox]{cursor:pointer;margin-top:.25rem}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6{line-height:1.2!important;margin:1rem 0 .5rem!important;font-weight:600!important}.ProseMirror h1{font-size:2rem!important}.ProseMirror h2{font-size:1.5rem!important}.ProseMirror h3{font-size:1.25rem!important}.ProseMirror h4{font-size:1.1rem!important}.ProseMirror h5{font-size:1rem!important;font-weight:600!important}.ProseMirror h6{font-size:.9rem!important;font-weight:600!important}.ProseMirror code{background-color:rgb(var(--nextui-default-100));border-radius:.4rem;color:rgb(var(--nextui-default-800));font-size:.85rem;padding:.25em .3em}.ProseMirror pre{background:rgb(var(--nextui-default-900));border-radius:.5rem;color:rgb(var(--nextui-default-50));font-family:JetBrainsMono,monospace;margin:1.5rem 0;padding:.75rem 1rem;overflow-x:auto}.ProseMirror pre code{background:none;color:inherit;font-size:.8rem;padding:0}.ProseMirror mark{background-color:#faf594;border-radius:.4rem;-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:.1rem .3rem}.ProseMirror blockquote{border-left:3px solid rgb(var(--nextui-default-300));margin:1.5rem 0;padding-left:1rem;color:rgb(var(--nextui-default-600))}.ProseMirror hr{border:none;border-top:1px solid rgb(var(--nextui-divider));margin:2rem 0}.ProseMirror a{color:rgb(var(--nextui-primary));text-decoration:underline;cursor:pointer}.ProseMirror a:hover{text-decoration:underline}.ProseMirror strong{font-weight:700!important}.ProseMirror em{font-style:italic!important}.ProseMirror s{text-decoration:line-through!important}.ProseMirror u{text-decoration:underline!important}.ProseMirror .has-text-align-left,.ProseMirror [style*="text-align: left"]{text-align:left!important}.ProseMirror .has-text-align-center,.ProseMirror [style*="text-align: center"]{text-align:center!important}.ProseMirror .has-text-align-right,.ProseMirror [style*="text-align: right"]{text-align:right!important}.ProseMirror .has-text-align-justify,.ProseMirror [style*="text-align: justify"]{text-align:justify!important}.ProseMirror ul li[style*="text-align: left"],.ProseMirror ol li[style*="text-align: left"]{text-align:left!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: center"],.ProseMirror ol li[style*="text-align: center"]{text-align:center!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: right"],.ProseMirror ol li[style*="text-align: right"]{text-align:right!important;list-style-position:inside!important}.ProseMirror ul li[style*="text-align: justify"],.ProseMirror ol li[style*="text-align: justify"]{text-align:justify!important;list-style-position:inside!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: left"]{justify-content:flex-start!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: center"]{justify-content:center!important}.ProseMirror ul[data-type=taskList] li[style*="text-align: right"]{justify-content:flex-end!important}.ProseMirror p.is-editor-empty:first-child:before{color:rgb(var(--nextui-default-400));content:attr(data-placeholder);float:left;height:0;pointer-events:none}')),document.head.appendChild(r)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|