@veevarts/design-system 2.1.0-beta.15 → 2.1.0-beta.16
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.cjs +1 -1
- package/dist/index.js +232 -230
- package/dist/patterns/ModalPanels/focus.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -140,7 +140,7 @@ const _e = {
|
|
|
140
140
|
Object.fromEntries(
|
|
141
141
|
Object.entries(Ki).map(([e, t]) => [e.replace(/^--/, ""), t])
|
|
142
142
|
);
|
|
143
|
-
function
|
|
143
|
+
function vg({
|
|
144
144
|
scope: e = ".acct",
|
|
145
145
|
fontFamily: t = "'NeueMontreal', system-ui, sans-serif"
|
|
146
146
|
} = {}) {
|
|
@@ -183,17 +183,17 @@ const Re = {
|
|
|
183
183
|
destructive: "#A32D2D"
|
|
184
184
|
};
|
|
185
185
|
({ ...Re });
|
|
186
|
-
function
|
|
186
|
+
function wg({ children: e }) {
|
|
187
187
|
return /* @__PURE__ */ n(Rl, { children: e });
|
|
188
188
|
}
|
|
189
189
|
const Qi = ia("default");
|
|
190
190
|
function Kn() {
|
|
191
191
|
return pt(Qi);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ng(e) {
|
|
194
194
|
return Kn() === "touch" ? "lg" : e;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function kg({ density: e, children: t }) {
|
|
197
197
|
return /* @__PURE__ */ n(Qi.Provider, { value: e, children: t });
|
|
198
198
|
}
|
|
199
199
|
function rc(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(zl, { ref: a, ...t, popoverProps: d }) });
|
|
1968
1968
|
});
|
|
1969
1969
|
st.displayName = "Select";
|
|
1970
|
-
function
|
|
1970
|
+
function Cg({
|
|
1971
1971
|
state: e,
|
|
1972
1972
|
onSubmit: t,
|
|
1973
1973
|
onRemove: a,
|
|
@@ -2145,7 +2145,7 @@ function Ld({
|
|
|
2145
2145
|
}
|
|
2146
2146
|
);
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2148
|
+
function Sg({
|
|
2149
2149
|
logo: e,
|
|
2150
2150
|
languages: t = [],
|
|
2151
2151
|
selectedLanguage: a,
|
|
@@ -2193,7 +2193,7 @@ function Cg({
|
|
|
2193
2193
|
}
|
|
2194
2194
|
);
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function $g(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 Md = q.forwardRef(
|
|
|
2453
2453
|
}
|
|
2454
2454
|
);
|
|
2455
2455
|
Md.displayName = "Stepper";
|
|
2456
|
-
function
|
|
2456
|
+
function Ag(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
|
zd.displayName = "HorizontalSteps";
|
|
2696
|
-
function
|
|
2696
|
+
function Dg() {
|
|
2697
2697
|
return /* @__PURE__ */ u(
|
|
2698
2698
|
"footer",
|
|
2699
2699
|
{
|
|
@@ -2706,7 +2706,7 @@ function Ag() {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
);
|
|
2708
2708
|
}
|
|
2709
|
-
const
|
|
2709
|
+
const Eg = (e) => {
|
|
2710
2710
|
const t = oe(
|
|
2711
2711
|
() => JSON.stringify({ allItems: e.allItems, selected: e.selected }),
|
|
2712
2712
|
[e.allItems, e.selected]
|
|
@@ -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(I, { icon: e, width: 20, className: "text-default-500" }),
|
|
4749
4749
|
/* @__PURE__ */ n("span", { children: t })
|
|
4750
|
-
] }),
|
|
4750
|
+
] }), Fg = ({
|
|
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 Lg(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 Yu(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 = q.useMemo(() => Ts(r, s), [s, r]), t.current;
|
|
6705
6705
|
}
|
|
6706
|
-
function
|
|
6706
|
+
function _g(e, t = 3) {
|
|
6707
6707
|
return e % 1 === 0 ? e.toString() : e.toFixed(t).replace(/\.?0+$/, "");
|
|
6708
6708
|
}
|
|
6709
|
-
function
|
|
6709
|
+
function Mg(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 _g(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 Rg(e = "USD", t = "en-US") {
|
|
6722
6722
|
try {
|
|
6723
6723
|
return new Intl.NumberFormat(t, {
|
|
6724
6724
|
style: "currency",
|
|
@@ -6728,14 +6728,14 @@ function Mg(e = "USD", t = "en-US") {
|
|
|
6728
6728
|
return "$";
|
|
6729
6729
|
}
|
|
6730
6730
|
}
|
|
6731
|
-
function
|
|
6731
|
+
function Pg(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 Og(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 sm() {
|
|
|
7232
7232
|
);
|
|
7233
7233
|
}
|
|
7234
7234
|
const lm = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, Math.round(e * 100) / 100)) : 0, om = (e) => e.fund !== null;
|
|
7235
|
-
function
|
|
7235
|
+
function zg({
|
|
7236
7236
|
assignments: e,
|
|
7237
7237
|
funds: t,
|
|
7238
7238
|
labels: a,
|
|
@@ -7634,7 +7634,7 @@ function dm({
|
|
|
7634
7634
|
}
|
|
7635
7635
|
);
|
|
7636
7636
|
}
|
|
7637
|
-
function
|
|
7637
|
+
function Ig() {
|
|
7638
7638
|
return /* @__PURE__ */ u(
|
|
7639
7639
|
"section",
|
|
7640
7640
|
{
|
|
@@ -7663,7 +7663,7 @@ const um = {
|
|
|
7663
7663
|
remainingBalance: "Remaining Balance",
|
|
7664
7664
|
amountReceived: "Amount Received:"
|
|
7665
7665
|
};
|
|
7666
|
-
function
|
|
7666
|
+
function Tg({
|
|
7667
7667
|
totalAmount: e,
|
|
7668
7668
|
remainingBalance: t,
|
|
7669
7669
|
amountReceived: a,
|
|
@@ -7820,7 +7820,7 @@ const km = {
|
|
|
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 Bg({
|
|
7824
7824
|
mode: e,
|
|
7825
7825
|
donationAmount: t,
|
|
7826
7826
|
currency: a = "USD",
|
|
@@ -8306,7 +8306,7 @@ function zm({
|
|
|
8306
8306
|
}
|
|
8307
8307
|
);
|
|
8308
8308
|
}
|
|
8309
|
-
function
|
|
8309
|
+
function Vg() {
|
|
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
|
}, Bm = [];
|
|
8411
|
-
function
|
|
8411
|
+
function Ug({
|
|
8412
8412
|
installments: e,
|
|
8413
8413
|
currency: t,
|
|
8414
8414
|
locale: a = "en-US",
|
|
@@ -8799,7 +8799,7 @@ const Hm = {
|
|
|
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
|
+
}, jg = ({
|
|
8803
8803
|
cards: e,
|
|
8804
8804
|
locale: t,
|
|
8805
8805
|
currency: a,
|
|
@@ -9632,7 +9632,7 @@ const cf = ({ title: e, value: t, description: a, onValueChange: r, className: i
|
|
|
9632
9632
|
}
|
|
9633
9633
|
)
|
|
9634
9634
|
] });
|
|
9635
|
-
},
|
|
9635
|
+
}, Hg = ({
|
|
9636
9636
|
initialExpanded: e = !1,
|
|
9637
9637
|
userMaxLimit: t,
|
|
9638
9638
|
labels: a,
|
|
@@ -11356,7 +11356,7 @@ const ul = (e, t) => t <= 0 ? /^\d*$/.test(e) : new RegExp(`^\\d*(?:[.,]\\d{0,${
|
|
|
11356
11356
|
changeLabel: "Change",
|
|
11357
11357
|
changeMessageTemplate: "You have to give back the client {change} in change",
|
|
11358
11358
|
insufficientMessageTemplate: "Amount received must be at least {due}"
|
|
11359
|
-
}, bn = (e, t) => Object.entries(t).reduce((a, [r, i]) => a.replace(`{${r}}`, i), e),
|
|
11359
|
+
}, bn = (e, t) => Object.entries(t).reduce((a, [r, i]) => a.replace(`{${r}}`, i), e), Wg = ({
|
|
11360
11360
|
dueAmount: e,
|
|
11361
11361
|
received: t,
|
|
11362
11362
|
defaultReceived: a = null,
|
|
@@ -12865,13 +12865,13 @@ const dp = {
|
|
|
12865
12865
|
unreport: () => {
|
|
12866
12866
|
}
|
|
12867
12867
|
}, Ka = ia(dp), mr = ia(null);
|
|
12868
|
-
function
|
|
12868
|
+
function qg(e) {
|
|
12869
12869
|
const { report: t, unreport: a } = pt(Ka), r = pt(mr), i = Je();
|
|
12870
12870
|
we(() => {
|
|
12871
12871
|
t(i, { scope: r, isDirty: e });
|
|
12872
12872
|
}, [t, i, r, e]), we(() => () => a(i), [a, i]);
|
|
12873
12873
|
}
|
|
12874
|
-
function
|
|
12874
|
+
function Gg() {
|
|
12875
12875
|
const { guardScope: e, bypass: t } = pt(Ka);
|
|
12876
12876
|
return oe(() => ({ guard: (a) => e(null, a), bypass: t }), [e, t]);
|
|
12877
12877
|
}
|
|
@@ -12915,7 +12915,7 @@ const up = ({ scope: e, children: t }) => /* @__PURE__ */ n(mr.Provider, { value
|
|
|
12915
12915
|
};
|
|
12916
12916
|
mp.displayName = "DiscardGuard";
|
|
12917
12917
|
const fr = ia(null);
|
|
12918
|
-
function
|
|
12918
|
+
function Yg() {
|
|
12919
12919
|
const e = pt(fr), t = gl(), a = e?.back, r = X(() => {
|
|
12920
12920
|
a && t(a);
|
|
12921
12921
|
}, [t, a]);
|
|
@@ -12938,15 +12938,17 @@ function hp(e) {
|
|
|
12938
12938
|
function Si(e, t) {
|
|
12939
12939
|
return !e || !e.isConnected || !t.contains(e) || e.matches(":disabled") ? !1 : !e.closest("[hidden], [inert]");
|
|
12940
12940
|
}
|
|
12941
|
-
|
|
12941
|
+
const pp = /* @__PURE__ */ new Set(["menu", "listbox", "dialog", "grid", "tree"]);
|
|
12942
|
+
function gp(e) {
|
|
12942
12943
|
for (const t of e.querySelectorAll('[aria-expanded="true"][aria-controls]')) {
|
|
12943
12944
|
const a = t.ownerDocument.getElementById(t.getAttribute("aria-controls") ?? "");
|
|
12944
|
-
if (a?.isConnected)
|
|
12945
|
+
if (!a?.isConnected) continue;
|
|
12946
|
+
if ((t.getAttribute("aria-haspopup") ?? "false") !== "false" || pp.has(a.getAttribute("role") ?? "")) return a;
|
|
12945
12947
|
}
|
|
12946
12948
|
return null;
|
|
12947
12949
|
}
|
|
12948
12950
|
const $i = "react-aria-focus-scope-restore";
|
|
12949
|
-
class
|
|
12951
|
+
class bp {
|
|
12950
12952
|
panels = /* @__PURE__ */ new Map();
|
|
12951
12953
|
active = null;
|
|
12952
12954
|
setContainer(t, a) {
|
|
@@ -12981,18 +12983,18 @@ class gp {
|
|
|
12981
12983
|
* is where they are; otherwise it is the panel's own target.
|
|
12982
12984
|
*/
|
|
12983
12985
|
recoverFocus() {
|
|
12984
|
-
const t = this.active ? this.panels.get(this.active.key)?.container : null, a = t ?
|
|
12985
|
-
a
|
|
12986
|
+
const t = this.active ? this.panels.get(this.active.key)?.container : null, a = t ? gp(t) : null;
|
|
12987
|
+
a?.focus(), a?.contains(document.activeElement) || this.focusActive();
|
|
12986
12988
|
}
|
|
12987
12989
|
}
|
|
12988
|
-
const
|
|
12989
|
-
function
|
|
12990
|
-
const [a] = W(() => new
|
|
12990
|
+
const xp = "flex flex-initial items-center gap-2 py-4 pl-4 pr-12 text-large font-semibold", yp = "min-w-0 flex-1 truncate text-large font-semibold", vp = "flex shrink-0 items-center gap-2", wp = "size-5";
|
|
12991
|
+
function Kg({ panels: e, children: t }) {
|
|
12992
|
+
const [a] = W(() => new bp()), { entries: r, back: i } = e, s = r[r.length - 1].key, l = pe(null);
|
|
12991
12993
|
return Ba(() => {
|
|
12992
12994
|
const o = l.current;
|
|
12993
12995
|
l.current = { activeKey: s, keys: new Set(r.map((c) => c.key)) }, !(!o || o.activeKey === s) && (a.setActive(s, o.keys.has(s)), a.focusActive());
|
|
12994
12996
|
}, [s, r, a]), /* @__PURE__ */ n(fe, { children: r.map((o, c) => /* @__PURE__ */ n(
|
|
12995
|
-
|
|
12997
|
+
Np,
|
|
12996
12998
|
{
|
|
12997
12999
|
entryKey: o.key,
|
|
12998
13000
|
isActive: c === r.length - 1,
|
|
@@ -13004,7 +13006,7 @@ function Yg({ panels: e, children: t }) {
|
|
|
13004
13006
|
o.key
|
|
13005
13007
|
)) });
|
|
13006
13008
|
}
|
|
13007
|
-
const
|
|
13009
|
+
const Np = ({ entryKey: e, isActive: t, canGoBack: a, back: r, memory: i, children: s }) => {
|
|
13008
13010
|
const l = pe(null), o = X(
|
|
13009
13011
|
(d) => i.setEntry(e, d),
|
|
13010
13012
|
[i, e]
|
|
@@ -13035,7 +13037,7 @@ const wp = ({ entryKey: e, isActive: t, canGoBack: a, back: r, memory: i, childr
|
|
|
13035
13037
|
children: s
|
|
13036
13038
|
}
|
|
13037
13039
|
) }) });
|
|
13038
|
-
},
|
|
13040
|
+
}, kp = ({
|
|
13039
13041
|
title: e,
|
|
13040
13042
|
onBack: t,
|
|
13041
13043
|
backLabel: a = "Back",
|
|
@@ -13046,7 +13048,7 @@ const wp = ({ entryKey: e, isActive: t, canGoBack: a, back: r, memory: i, childr
|
|
|
13046
13048
|
"data-testid": o = "modal-panel-header"
|
|
13047
13049
|
}) => {
|
|
13048
13050
|
const c = pt(fr), d = gl(), f = Je(), m = t ?? (c?.canGoBack ? c.back : void 0);
|
|
13049
|
-
return /* @__PURE__ */ u("header", { className: p(
|
|
13051
|
+
return /* @__PURE__ */ u("header", { className: p(xp, l), "data-testid": o, children: [
|
|
13050
13052
|
m ? /* @__PURE__ */ n(
|
|
13051
13053
|
V,
|
|
13052
13054
|
{
|
|
@@ -13060,15 +13062,15 @@ const wp = ({ entryKey: e, isActive: t, canGoBack: a, back: r, memory: i, childr
|
|
|
13060
13062
|
isDisabled: r,
|
|
13061
13063
|
onPress: () => d(m),
|
|
13062
13064
|
"data-testid": `${o}-back`,
|
|
13063
|
-
children: /* @__PURE__ */ n(I, { icon: "solar:arrow-left-outline", className:
|
|
13065
|
+
children: /* @__PURE__ */ n(I, { icon: "solar:arrow-left-outline", className: wp, "aria-hidden": "true" })
|
|
13064
13066
|
}
|
|
13065
13067
|
) : null,
|
|
13066
|
-
/* @__PURE__ */ n("h2", { id: f, className:
|
|
13067
|
-
s ? /* @__PURE__ */ n("div", { className:
|
|
13068
|
+
/* @__PURE__ */ n("h2", { id: f, className: yp, "data-testid": `${o}-title`, children: e }),
|
|
13069
|
+
s ? /* @__PURE__ */ n("div", { className: vp, children: s }) : null
|
|
13068
13070
|
] });
|
|
13069
13071
|
};
|
|
13070
|
-
|
|
13071
|
-
function
|
|
13072
|
+
kp.displayName = "ModalPanelHeader";
|
|
13073
|
+
function Qg(e) {
|
|
13072
13074
|
const t = pe(1), [a] = W(e), [r, i] = W(() => [
|
|
13073
13075
|
{ key: "panel-0", panel: e }
|
|
13074
13076
|
]), s = X((f) => {
|
|
@@ -13096,7 +13098,7 @@ function Kg(e) {
|
|
|
13096
13098
|
);
|
|
13097
13099
|
return oe(() => ({ 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]);
|
|
13098
13100
|
}
|
|
13099
|
-
function
|
|
13101
|
+
function Zg() {
|
|
13100
13102
|
const e = pe(/* @__PURE__ */ new Map()), [t, a] = W(0), [r, i] = W(null), [s, l] = W(0), o = X(() => {
|
|
13101
13103
|
let b = 0;
|
|
13102
13104
|
for (const N of e.current.values()) N.isDirty && (b += 1);
|
|
@@ -13154,13 +13156,13 @@ function Qg() {
|
|
|
13154
13156
|
]
|
|
13155
13157
|
);
|
|
13156
13158
|
}
|
|
13157
|
-
const
|
|
13159
|
+
const Cp = 60, Sp = (e, t, a = Cp) => t ? e > a : e < -a, bl = (e, t) => Math.max(0, Math.min(e, t)), $p = 160, Ap = (e, t, a = $p) => Math.min(e, Math.max(0, t - a)), Dp = (e, t, a) => bl(e - t, a), Ep = (e, t, a) => e !== null ? bl(e, a) : t ? a : 0, Fp = (e) => e ? "" : "transition-[height] duration-300 ease-out", Lp = (e) => ({
|
|
13158
13160
|
onDrag: (t, a) => {
|
|
13159
13161
|
const r = e.open ? e.fullHeight : 0;
|
|
13160
|
-
e.setDragHeight(
|
|
13162
|
+
e.setDragHeight(Dp(r, a?.offset?.y ?? 0, e.fullHeight));
|
|
13161
13163
|
},
|
|
13162
13164
|
onDragEnd: (t, a) => {
|
|
13163
|
-
|
|
13165
|
+
Sp(a?.offset?.y ?? 0, e.open) && e.onToggleOpen?.(), e.setDragHeight(null);
|
|
13164
13166
|
}
|
|
13165
13167
|
}), Et = (e, t) => De(e.value, t, e.currency), hr = ({
|
|
13166
13168
|
item: e,
|
|
@@ -13713,14 +13715,14 @@ const Cl = ({
|
|
|
13713
13715
|
o && /* @__PURE__ */ n("div", { children: o })
|
|
13714
13716
|
] });
|
|
13715
13717
|
Cl.displayName = "SummaryActionBar";
|
|
13716
|
-
const
|
|
13717
|
-
const [t, a] = W(() =>
|
|
13718
|
+
const _p = "(max-width: 767px)", Mp = (e) => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(e).matches : !1, Rp = (e = _p) => {
|
|
13719
|
+
const [t, a] = W(() => Mp(e));
|
|
13718
13720
|
return we(() => {
|
|
13719
13721
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
13720
13722
|
const r = window.matchMedia(e), i = () => a(r.matches);
|
|
13721
13723
|
return i(), r.addEventListener("change", i), () => r.removeEventListener("change", i);
|
|
13722
13724
|
}, [e]), t;
|
|
13723
|
-
},
|
|
13725
|
+
}, Pp = ({
|
|
13724
13726
|
title: e = "Summary",
|
|
13725
13727
|
pricesInLabel: t = "Prices are in",
|
|
13726
13728
|
currency: a,
|
|
@@ -13752,11 +13754,11 @@ const Lp = "(max-width: 767px)", _p = (e) => typeof window < "u" && typeof windo
|
|
|
13752
13754
|
"data-testid": F = "summary",
|
|
13753
13755
|
className: P
|
|
13754
13756
|
}) => {
|
|
13755
|
-
const T = S?.removeAriaLabel ?? "Remove item", U = S?.removeTotalRowAriaLabel ?? "Remove discount", G = S?.removePostTotalRowAriaLabel ?? "Remove applied code", z = S?.toggleAriaLabel ?? "Toggle summary", te = S?.cartAriaLabel ?? "View cart", Y = L === "compact", re =
|
|
13757
|
+
const T = S?.removeAriaLabel ?? "Remove item", U = S?.removeTotalRowAriaLabel ?? "Remove discount", G = S?.removePostTotalRowAriaLabel ?? "Remove applied code", z = S?.toggleAriaLabel ?? "Toggle summary", te = S?.cartAriaLabel ?? "View cart", Y = L === "compact", re = Rp(), ee = g ?? (M ?? (re ? "mobile" : "main")) === "mobile", [J, K] = W(y), ce = h !== void 0, ae = !ee || (ce ? h : J), ge = X(() => {
|
|
13756
13758
|
ce || K((O) => !O), x?.();
|
|
13757
13759
|
}, [ce, x]), [le, Ge] = W(0), [Te, Ue] = W(null), Lt = pe(null), ot = pe(null), at = X(() => {
|
|
13758
13760
|
const O = Lt.current;
|
|
13759
|
-
O && Ge(
|
|
13761
|
+
O && Ge(Ap(O.scrollHeight, window.innerHeight));
|
|
13760
13762
|
}, []), Nt = X(
|
|
13761
13763
|
(O) => {
|
|
13762
13764
|
ot.current?.disconnect(), ot.current = null, Lt.current = O, O && (at(), typeof ResizeObserver < "u" && (ot.current = new ResizeObserver(at), ot.current.observe(O)));
|
|
@@ -13764,7 +13766,7 @@ const Lp = "(max-width: 767px)", _p = (e) => typeof window < "u" && typeof windo
|
|
|
13764
13766
|
[at]
|
|
13765
13767
|
);
|
|
13766
13768
|
we(() => (window.addEventListener("resize", at), () => window.removeEventListener("resize", at)), [at]);
|
|
13767
|
-
const gt =
|
|
13769
|
+
const gt = Lp({ open: ae, fullHeight: le, setDragHeight: Ue, onToggleOpen: ge }), Ye = Te !== null, me = Ep(Te, ae, le), Ee = le > 0 ? Math.min(1, Math.max(0, me / le)) : ae ? 1 : 0, nt = /* @__PURE__ */ n(vl, { total: o, locale: r, compact: Y, className: R.total }), v = c && c.length > 0 && /* @__PURE__ */ n("div", { "data-testid": "summary-post-total-rows", className: "flex flex-col gap-4", children: c.map((O) => /* @__PURE__ */ n(
|
|
13768
13770
|
pr,
|
|
13769
13771
|
{
|
|
13770
13772
|
row: O,
|
|
@@ -13864,7 +13866,7 @@ const Lp = "(max-width: 767px)", _p = (e) => typeof window < "u" && typeof windo
|
|
|
13864
13866
|
"min-h-0",
|
|
13865
13867
|
ae && !Ye ? "overflow-y-auto overscroll-contain [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" : "overflow-hidden",
|
|
13866
13868
|
!ae && "pointer-events-none",
|
|
13867
|
-
|
|
13869
|
+
Fp(Ye)
|
|
13868
13870
|
),
|
|
13869
13871
|
children: /* @__PURE__ */ u("div", { ref: Nt, className: Y ? "flex flex-col gap-3 pb-4" : "flex flex-col gap-4 pb-4", children: [
|
|
13870
13872
|
B,
|
|
@@ -13924,14 +13926,14 @@ const Lp = "(max-width: 767px)", _p = (e) => typeof window < "u" && typeof windo
|
|
|
13924
13926
|
}
|
|
13925
13927
|
);
|
|
13926
13928
|
};
|
|
13927
|
-
|
|
13928
|
-
const
|
|
13929
|
+
Pp.displayName = "Summary";
|
|
13930
|
+
const Op = {
|
|
13929
13931
|
back: "Back",
|
|
13930
13932
|
close: "Close",
|
|
13931
13933
|
cancel: "Cancel",
|
|
13932
13934
|
partialBadge: "Partial refund",
|
|
13933
13935
|
owesBadge: "Customer owes"
|
|
13934
|
-
},
|
|
13936
|
+
}, zp = { backgroundColor: Re.destructive, color: "#fff" }, Ai = "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", Ip = ({
|
|
13935
13937
|
onClose: e,
|
|
13936
13938
|
steps: t,
|
|
13937
13939
|
activeStepId: a,
|
|
@@ -13947,7 +13949,7 @@ const Pp = {
|
|
|
13947
13949
|
"data-testid": g = "wizard-shell",
|
|
13948
13950
|
children: h
|
|
13949
13951
|
}) => {
|
|
13950
|
-
const x = { ...
|
|
13952
|
+
const x = { ...Op, ...f }, y = t.filter((w) => w.state !== "skipped"), b = t.find((w) => w.id === a), N = Math.max(
|
|
13951
13953
|
0,
|
|
13952
13954
|
y.findIndex((w) => w.id === a)
|
|
13953
13955
|
), k = i ?? e, A = i ? x.back : x.cancel;
|
|
@@ -14057,7 +14059,7 @@ const Pp = {
|
|
|
14057
14059
|
"h-12 min-w-0 rounded-[14px] px-5 text-[15px] font-semibold",
|
|
14058
14060
|
s.tone === "destructive" && "bg-pos-destructive text-white"
|
|
14059
14061
|
),
|
|
14060
|
-
style: s.tone === "destructive" ?
|
|
14062
|
+
style: s.tone === "destructive" ? zp : void 0,
|
|
14061
14063
|
isLoading: s.loading,
|
|
14062
14064
|
isDisabled: s.disabled,
|
|
14063
14065
|
onPress: s.onClick,
|
|
@@ -14087,19 +14089,19 @@ const Pp = {
|
|
|
14087
14089
|
}
|
|
14088
14090
|
);
|
|
14089
14091
|
};
|
|
14090
|
-
|
|
14091
|
-
const
|
|
14092
|
+
Ip.displayName = "WizardShell";
|
|
14093
|
+
const Tp = (e, t, a) => Math.min(Math.max(e, t), a);
|
|
14092
14094
|
function zn(e, t, a) {
|
|
14093
|
-
const r = Math.max(1, Math.trunc(t)), i =
|
|
14095
|
+
const r = Math.max(1, Math.trunc(t)), i = Tp(Math.trunc(a), 0, r);
|
|
14094
14096
|
if (i === r) return { ...e };
|
|
14095
14097
|
if (i === 0) return { value: 0, currency: e.currency };
|
|
14096
14098
|
const s = Math.pow(10, Wa(e.currency)), l = Math.round(e.value * s), o = Math.floor(l / r), c = l - o * r;
|
|
14097
14099
|
return { value: (o * i + Math.min(i, c)) / s, currency: e.currency };
|
|
14098
14100
|
}
|
|
14099
|
-
function
|
|
14101
|
+
function Bp(e, t) {
|
|
14100
14102
|
return zn(e, t, 1);
|
|
14101
14103
|
}
|
|
14102
|
-
const
|
|
14104
|
+
const Vp = (e) => Number.isFinite(e) ? e.toFixed(2) : "", In = ({
|
|
14103
14105
|
value: e,
|
|
14104
14106
|
expected: t,
|
|
14105
14107
|
max: a,
|
|
@@ -14132,7 +14134,7 @@ const Bp = (e) => Number.isFinite(e) ? e.toFixed(2) : "", In = ({
|
|
|
14132
14134
|
"aria-label": i,
|
|
14133
14135
|
disabled: s,
|
|
14134
14136
|
className: "w-full border-none bg-transparent p-0 text-right text-sm font-semibold tabular-nums text-default-900 outline-none",
|
|
14135
|
-
value: d ??
|
|
14137
|
+
value: d ?? Vp(e),
|
|
14136
14138
|
onChange: (h) => {
|
|
14137
14139
|
const x = h.target.value, y = Number.parseFloat(x.replace(",", "."));
|
|
14138
14140
|
a !== void 0 && Number.isFinite(y) && y > a + 4e-3 || (f(x), Number.isFinite(y) && y >= 0 ? r(y) : x.trim() === "" && r(0));
|
|
@@ -14147,7 +14149,7 @@ const Bp = (e) => Number.isFinite(e) ? e.toFixed(2) : "", In = ({
|
|
|
14147
14149
|
);
|
|
14148
14150
|
};
|
|
14149
14151
|
In.displayName = "AmountCell";
|
|
14150
|
-
const
|
|
14152
|
+
const Up = {
|
|
14151
14153
|
refunded: "Refunded",
|
|
14152
14154
|
ineligible: "Ineligible",
|
|
14153
14155
|
partialLink: "Refund partial $ of this line",
|
|
@@ -14168,12 +14170,12 @@ const Vp = {
|
|
|
14168
14170
|
amountOnlyTitle: "Refund an amount",
|
|
14169
14171
|
amountOnlyDetail: "Not tied to an item · up to {amount} remaining",
|
|
14170
14172
|
amountOnlyRemove: "Remove amount refund"
|
|
14171
|
-
},
|
|
14173
|
+
}, jp = "inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowrap rounded-full border border-pos-line bg-default-100 px-[9px] text-xs font-medium leading-none text-default-600", Di = "flex h-11 flex-1 items-center justify-center bg-white text-lg text-default-900 outline-none transition-colors hover:bg-default-100 disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-primary", vn = "absolute h-5 w-5 opacity-0", Hp = (e) => {
|
|
14172
14174
|
const t = De(e.paidAmount.value, void 0, e.paidAmount.currency);
|
|
14173
14175
|
if (e.quantity <= 1) return t;
|
|
14174
|
-
const a =
|
|
14176
|
+
const a = Bp(e.paidAmount, e.quantity);
|
|
14175
14177
|
return `${e.quantity} × ${De(a.value, void 0, a.currency)} · ${t}`;
|
|
14176
|
-
},
|
|
14178
|
+
}, Wp = ({
|
|
14177
14179
|
items: e,
|
|
14178
14180
|
selections: t,
|
|
14179
14181
|
onSelectionChange: a,
|
|
@@ -14184,7 +14186,7 @@ const Vp = {
|
|
|
14184
14186
|
className: o,
|
|
14185
14187
|
"data-testid": c = "line-item-list"
|
|
14186
14188
|
}) => {
|
|
14187
|
-
const d = { ...
|
|
14189
|
+
const d = { ...Up, ...l }, f = [
|
|
14188
14190
|
{ key: "stock", label: d.dispositionStock },
|
|
14189
14191
|
{ key: "norestock", label: d.dispositionNoRestock },
|
|
14190
14192
|
{ key: "damaged", label: d.dispositionDamaged }
|
|
@@ -14220,7 +14222,7 @@ const Vp = {
|
|
|
14220
14222
|
/* @__PURE__ */ u("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
|
|
14221
14223
|
/* @__PURE__ */ u("div", { className: "min-w-0", children: [
|
|
14222
14224
|
/* @__PURE__ */ n("p", { className: "truncate text-sm font-semibold", children: m.name }),
|
|
14223
|
-
/* @__PURE__ */ n("p", { className: "text-[12.5px] text-default-500", "data-testid": `${x}-detail`, children: m.detail ??
|
|
14225
|
+
/* @__PURE__ */ n("p", { className: "text-[12.5px] text-default-500", "data-testid": `${x}-detail`, children: m.detail ?? Hp(m) }),
|
|
14224
14226
|
w && /* @__PURE__ */ n(
|
|
14225
14227
|
"p",
|
|
14226
14228
|
{
|
|
@@ -14249,7 +14251,7 @@ const Vp = {
|
|
|
14249
14251
|
inputTestId: `${x}-partial-input-field`
|
|
14250
14252
|
}
|
|
14251
14253
|
),
|
|
14252
|
-
h ? /* @__PURE__ */ n("span", { className:
|
|
14254
|
+
h ? /* @__PURE__ */ n("span", { className: jp, "data-testid": `${x}-blocked`, children: m.state === "already_refunded" ? d.refunded : d.ineligible }) : /* @__PURE__ */ u(
|
|
14253
14255
|
"div",
|
|
14254
14256
|
{
|
|
14255
14257
|
role: "group",
|
|
@@ -14437,7 +14439,7 @@ const Vp = {
|
|
|
14437
14439
|
))
|
|
14438
14440
|
] });
|
|
14439
14441
|
};
|
|
14440
|
-
|
|
14442
|
+
Wp.displayName = "LineItemList";
|
|
14441
14443
|
const Sl = ({
|
|
14442
14444
|
children: e,
|
|
14443
14445
|
className: t,
|
|
@@ -14472,7 +14474,7 @@ const Al = ({
|
|
|
14472
14474
|
}
|
|
14473
14475
|
);
|
|
14474
14476
|
Al.displayName = "MetaCard.Section";
|
|
14475
|
-
const
|
|
14477
|
+
const Xg = Object.assign(Sl, { Row: $l, Section: Al }), qp = ({
|
|
14476
14478
|
heading: e,
|
|
14477
14479
|
icon: t = "lucide:rotate-ccw",
|
|
14478
14480
|
action: a,
|
|
@@ -14513,8 +14515,8 @@ const Zg = Object.assign(Sl, { Row: $l, Section: Al }), Wp = ({
|
|
|
14513
14515
|
]
|
|
14514
14516
|
}
|
|
14515
14517
|
);
|
|
14516
|
-
|
|
14517
|
-
const
|
|
14518
|
+
qp.displayName = "SectionPanel";
|
|
14519
|
+
const Gp = ({
|
|
14518
14520
|
name: e,
|
|
14519
14521
|
detail: t,
|
|
14520
14522
|
icon: a = "lucide:users",
|
|
@@ -14536,11 +14538,11 @@ const qp = ({
|
|
|
14536
14538
|
]
|
|
14537
14539
|
}
|
|
14538
14540
|
);
|
|
14539
|
-
|
|
14540
|
-
const
|
|
14541
|
+
Gp.displayName = "CustomerCard";
|
|
14542
|
+
const Yp = {
|
|
14541
14543
|
label: "Reason for the return",
|
|
14542
14544
|
placeholder: "Select a reason…"
|
|
14543
|
-
},
|
|
14545
|
+
}, Kp = ({
|
|
14544
14546
|
options: e,
|
|
14545
14547
|
value: t,
|
|
14546
14548
|
onChange: a,
|
|
@@ -14549,7 +14551,7 @@ const Gp = {
|
|
|
14549
14551
|
className: s,
|
|
14550
14552
|
"data-testid": l = "reason-select"
|
|
14551
14553
|
}) => {
|
|
14552
|
-
const o = { ...
|
|
14554
|
+
const o = { ...Yp, ...i };
|
|
14553
14555
|
return /* @__PURE__ */ n(
|
|
14554
14556
|
st,
|
|
14555
14557
|
{
|
|
@@ -14570,13 +14572,13 @@ const Gp = {
|
|
|
14570
14572
|
}
|
|
14571
14573
|
);
|
|
14572
14574
|
};
|
|
14573
|
-
|
|
14574
|
-
const
|
|
14575
|
+
Kp.displayName = "ReasonSelect";
|
|
14576
|
+
const Qp = {
|
|
14575
14577
|
toggle: "Add a note",
|
|
14576
14578
|
optionalTag: "(optional)",
|
|
14577
14579
|
heading: "Additional note",
|
|
14578
14580
|
placeholder: "Add a note (optional)"
|
|
14579
|
-
},
|
|
14581
|
+
}, Zp = ({
|
|
14580
14582
|
value: e,
|
|
14581
14583
|
onChange: t,
|
|
14582
14584
|
maxLength: a,
|
|
@@ -14586,7 +14588,7 @@ const Kp = {
|
|
|
14586
14588
|
className: l,
|
|
14587
14589
|
"data-testid": o = "notes-field"
|
|
14588
14590
|
}) => {
|
|
14589
|
-
const c = { ...
|
|
14591
|
+
const c = { ...Qp, ...s }, [d, f] = W(e !== "");
|
|
14590
14592
|
return r ? /* @__PURE__ */ u("div", { className: p("flex flex-col gap-2", l), "data-testid": o, children: [
|
|
14591
14593
|
!i && /* @__PURE__ */ n("label", { htmlFor: `${o}-textarea`, className: "text-[13px] font-medium text-default-600", children: c.heading }),
|
|
14592
14594
|
/* @__PURE__ */ n(
|
|
@@ -14633,11 +14635,11 @@ const Kp = {
|
|
|
14633
14635
|
}
|
|
14634
14636
|
) });
|
|
14635
14637
|
};
|
|
14636
|
-
|
|
14637
|
-
const
|
|
14638
|
+
Zp.displayName = "NotesField";
|
|
14639
|
+
const Xp = {
|
|
14638
14640
|
danger: { surface: "bg-pos-danger-fill", disc: "bg-pos-danger-icon text-pos-danger", title: "text-pos-danger" },
|
|
14639
14641
|
warning: { surface: "bg-pos-warn-fill", disc: "bg-pos-warn-icon text-pos-warn", title: "text-pos-warn" }
|
|
14640
|
-
},
|
|
14642
|
+
}, Jp = {
|
|
14641
14643
|
danger: "gravity-ui:circle-exclamation-fill",
|
|
14642
14644
|
warning: "gravity-ui:triangle-exclamation-fill"
|
|
14643
14645
|
}, Ei = "h-8 min-w-0 rounded-[10px] px-3 text-[13px] font-semibold", gr = ({
|
|
@@ -14653,7 +14655,7 @@ const Zp = {
|
|
|
14653
14655
|
retryTestId: d,
|
|
14654
14656
|
chooseDifferentTestId: f
|
|
14655
14657
|
}) => {
|
|
14656
|
-
const m =
|
|
14658
|
+
const m = Xp[e];
|
|
14657
14659
|
return /* @__PURE__ */ u(
|
|
14658
14660
|
"div",
|
|
14659
14661
|
{
|
|
@@ -14666,7 +14668,7 @@ const Zp = {
|
|
|
14666
14668
|
{
|
|
14667
14669
|
className: p("flex h-10 w-10 shrink-0 items-center justify-center rounded-full", m.disc),
|
|
14668
14670
|
"aria-hidden": "true",
|
|
14669
|
-
children: /* @__PURE__ */ n(I, { icon:
|
|
14671
|
+
children: /* @__PURE__ */ n(I, { icon: Jp[e], width: 22, height: 22 })
|
|
14670
14672
|
}
|
|
14671
14673
|
),
|
|
14672
14674
|
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -14691,7 +14693,7 @@ const Zp = {
|
|
|
14691
14693
|
);
|
|
14692
14694
|
};
|
|
14693
14695
|
gr.displayName = "TenderBanner";
|
|
14694
|
-
const
|
|
14696
|
+
const e0 = {
|
|
14695
14697
|
split: "Split across multiple methods",
|
|
14696
14698
|
declinedTitle: "Refund declined",
|
|
14697
14699
|
declinedBody: "The processor declined this refund. Nothing was sent.",
|
|
@@ -14700,12 +14702,12 @@ const Jp = {
|
|
|
14700
14702
|
retry: "Try again",
|
|
14701
14703
|
chooseDifferent: "Choose different method",
|
|
14702
14704
|
destinationsHeading: "Money back to"
|
|
14703
|
-
},
|
|
14705
|
+
}, t0 = {
|
|
14704
14706
|
card: "lucide:credit-card",
|
|
14705
14707
|
cash: "lucide:dollar-sign",
|
|
14706
14708
|
check: "lucide:edit-3",
|
|
14707
14709
|
other: "lucide:more-horizontal"
|
|
14708
|
-
},
|
|
14710
|
+
}, a0 = ({
|
|
14709
14711
|
tenders: e,
|
|
14710
14712
|
selectedTenderId: t,
|
|
14711
14713
|
onSelect: a,
|
|
@@ -14715,7 +14717,7 @@ const Jp = {
|
|
|
14715
14717
|
className: l,
|
|
14716
14718
|
"data-testid": o = "tender-methods"
|
|
14717
14719
|
}) => {
|
|
14718
|
-
const c = { ...
|
|
14720
|
+
const c = { ...e0, ...s }, d = i?.kind === "processor_declined";
|
|
14719
14721
|
return /* @__PURE__ */ u("div", { className: p("flex flex-col text-default-900", l), "data-testid": o, children: [
|
|
14720
14722
|
i && /* @__PURE__ */ n(
|
|
14721
14723
|
gr,
|
|
@@ -14766,7 +14768,7 @@ const Jp = {
|
|
|
14766
14768
|
"flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-[10px]",
|
|
14767
14769
|
m ? "bg-primary text-white" : "bg-default-100 text-default-600"
|
|
14768
14770
|
),
|
|
14769
|
-
children: /* @__PURE__ */ n(I, { icon:
|
|
14771
|
+
children: /* @__PURE__ */ n(I, { icon: t0[f.kind], width: 18, height: 18, "aria-hidden": "true" })
|
|
14770
14772
|
}
|
|
14771
14773
|
),
|
|
14772
14774
|
/* @__PURE__ */ u("span", { className: "min-w-0", children: [
|
|
@@ -14800,8 +14802,8 @@ const Jp = {
|
|
|
14800
14802
|
)
|
|
14801
14803
|
] });
|
|
14802
14804
|
};
|
|
14803
|
-
|
|
14804
|
-
const
|
|
14805
|
+
a0.displayName = "TenderMethods";
|
|
14806
|
+
const n0 = (e) => e.refunded !== null, r0 = {
|
|
14805
14807
|
title: "Split refund",
|
|
14806
14808
|
refundedSoFar: "Refunded so far",
|
|
14807
14809
|
remaining: "Remaining",
|
|
@@ -14817,7 +14819,7 @@ const a0 = (e) => e.refunded !== null, n0 = {
|
|
|
14817
14819
|
chooseDifferent: "Choose different method",
|
|
14818
14820
|
pending: "Pending",
|
|
14819
14821
|
succeeded: "Refunded"
|
|
14820
|
-
},
|
|
14822
|
+
}, i0 = "mb-2 text-[11px] font-semibold uppercase tracking-[.08em] text-default-500", s0 = "inline-flex h-[22px] shrink-0 items-center gap-[5px] whitespace-nowrap rounded-full px-[9px] text-xs font-medium leading-none", l0 = ({
|
|
14821
14823
|
parts: e,
|
|
14822
14824
|
refundedSoFar: t,
|
|
14823
14825
|
remaining: a,
|
|
@@ -14832,7 +14834,7 @@ const a0 = (e) => e.refunded !== null, n0 = {
|
|
|
14832
14834
|
className: m,
|
|
14833
14835
|
"data-testid": g = "split-tender-panel"
|
|
14834
14836
|
}) => {
|
|
14835
|
-
const h = { ...
|
|
14837
|
+
const h = { ...r0, ...f }, x = e.filter(n0), y = e.find((C) => C.tenderId === r.tenderId)?.label, b = !!(i?.length && r.onTenderChange), N = Wa(a.currency), {
|
|
14836
14838
|
draft: k,
|
|
14837
14839
|
setDraft: A,
|
|
14838
14840
|
normalize: w
|
|
@@ -14871,7 +14873,7 @@ const a0 = (e) => e.refunded !== null, n0 = {
|
|
|
14871
14873
|
] })
|
|
14872
14874
|
] }),
|
|
14873
14875
|
x.length > 0 && /* @__PURE__ */ u("div", { children: [
|
|
14874
|
-
/* @__PURE__ */ n("p", { className:
|
|
14876
|
+
/* @__PURE__ */ n("p", { className: i0, children: h.refundedSoFar }),
|
|
14875
14877
|
x.map((C, D) => /* @__PURE__ */ u(
|
|
14876
14878
|
"div",
|
|
14877
14879
|
{
|
|
@@ -14900,7 +14902,7 @@ const a0 = (e) => e.refunded !== null, n0 = {
|
|
|
14900
14902
|
"span",
|
|
14901
14903
|
{
|
|
14902
14904
|
className: p(
|
|
14903
|
-
|
|
14905
|
+
s0,
|
|
14904
14906
|
C.status === "pending" ? "bg-pos-warn-fill text-pos-warn" : "bg-pos-ok-fill text-pos-ok"
|
|
14905
14907
|
),
|
|
14906
14908
|
children: C.status === "pending" ? h.pending : h.succeeded
|
|
@@ -14994,11 +14996,11 @@ const a0 = (e) => e.refunded !== null, n0 = {
|
|
|
14994
14996
|
] })
|
|
14995
14997
|
] });
|
|
14996
14998
|
};
|
|
14997
|
-
|
|
14998
|
-
const
|
|
14999
|
+
l0.displayName = "SplitTenderPanel";
|
|
15000
|
+
const o0 = {
|
|
14999
15001
|
label: "Supervisor authorization",
|
|
15000
15002
|
placeholder: "••••"
|
|
15001
|
-
},
|
|
15003
|
+
}, c0 = ({
|
|
15002
15004
|
pin: e,
|
|
15003
15005
|
onChange: t,
|
|
15004
15006
|
hint: a,
|
|
@@ -15007,7 +15009,7 @@ const l0 = {
|
|
|
15007
15009
|
className: s,
|
|
15008
15010
|
"data-testid": l = "pin-field"
|
|
15009
15011
|
}) => {
|
|
15010
|
-
const o = { ...
|
|
15012
|
+
const o = { ...o0, ...i };
|
|
15011
15013
|
return /* @__PURE__ */ u(
|
|
15012
15014
|
"div",
|
|
15013
15015
|
{
|
|
@@ -15046,8 +15048,8 @@ const l0 = {
|
|
|
15046
15048
|
}
|
|
15047
15049
|
);
|
|
15048
15050
|
};
|
|
15049
|
-
|
|
15050
|
-
const
|
|
15051
|
+
c0.displayName = "PinField";
|
|
15052
|
+
const d0 = {
|
|
15051
15053
|
processing: "Processing refund…",
|
|
15052
15054
|
title: "Refund complete",
|
|
15053
15055
|
destinationsTitle: "Refund destinations",
|
|
@@ -15059,10 +15061,10 @@ const c0 = {
|
|
|
15059
15061
|
succeeded: "Refunded",
|
|
15060
15062
|
reason: "Reason · {reason}",
|
|
15061
15063
|
authorizedBy: "Authorized by {name}"
|
|
15062
|
-
},
|
|
15064
|
+
}, u0 = {
|
|
15063
15065
|
succeeded: "bg-pos-ok-fill text-pos-ok",
|
|
15064
15066
|
pending: "bg-pos-warn-fill text-pos-warn"
|
|
15065
|
-
},
|
|
15067
|
+
}, m0 = "inline-flex h-[22px] items-center gap-[5px] whitespace-nowrap rounded-full px-[9px] text-xs font-medium leading-none", Fi = "mb-1.5 text-[11px] font-semibold uppercase tracking-[.05em] text-default-500", f0 = "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)]", h0 = ["email", "print"], p0 = ({
|
|
15066
15068
|
state: e,
|
|
15067
15069
|
total: t,
|
|
15068
15070
|
destinations: a,
|
|
@@ -15076,7 +15078,7 @@ const c0 = {
|
|
|
15076
15078
|
className: f,
|
|
15077
15079
|
"data-testid": m = "outcome-view"
|
|
15078
15080
|
}) => {
|
|
15079
|
-
const g = { ...
|
|
15081
|
+
const g = { ...d0, ...d }, h = t ? De(t.value, void 0, t.currency) : null;
|
|
15080
15082
|
return e === "processing" ? /* @__PURE__ */ n(
|
|
15081
15083
|
"div",
|
|
15082
15084
|
{
|
|
@@ -15105,7 +15107,7 @@ const c0 = {
|
|
|
15105
15107
|
) : /* @__PURE__ */ u(
|
|
15106
15108
|
"div",
|
|
15107
15109
|
{
|
|
15108
|
-
className: p("flex flex-col text-default-900", !c &&
|
|
15110
|
+
className: p("flex flex-col text-default-900", !c && f0, f),
|
|
15109
15111
|
"aria-live": "polite",
|
|
15110
15112
|
"data-testid": m,
|
|
15111
15113
|
children: [
|
|
@@ -15126,7 +15128,7 @@ const c0 = {
|
|
|
15126
15128
|
/* @__PURE__ */ n("span", { className: "font-semibold", children: x.label }),
|
|
15127
15129
|
/* @__PURE__ */ u("div", { className: "flex items-center gap-2.5", children: [
|
|
15128
15130
|
/* @__PURE__ */ n("span", { className: "tabular-nums text-default-600", children: De(x.amount.value, void 0, x.amount.currency) }),
|
|
15129
|
-
/* @__PURE__ */ n("span", { className: p(
|
|
15131
|
+
/* @__PURE__ */ n("span", { className: p(m0, u0[x.status]), children: x.status === "succeeded" ? g.succeeded : g.pending })
|
|
15130
15132
|
] })
|
|
15131
15133
|
]
|
|
15132
15134
|
},
|
|
@@ -15135,7 +15137,7 @@ const c0 = {
|
|
|
15135
15137
|
] }),
|
|
15136
15138
|
l && /* @__PURE__ */ u("div", { className: "mt-5 text-left", children: [
|
|
15137
15139
|
/* @__PURE__ */ n("p", { className: Fi, children: g.sendReceipt }),
|
|
15138
|
-
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children:
|
|
15140
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: h0.map((x) => {
|
|
15139
15141
|
const y = s?.includes(x) ?? !1;
|
|
15140
15142
|
return /* @__PURE__ */ u(
|
|
15141
15143
|
"button",
|
|
@@ -15170,7 +15172,7 @@ const c0 = {
|
|
|
15170
15172
|
}
|
|
15171
15173
|
);
|
|
15172
15174
|
};
|
|
15173
|
-
|
|
15175
|
+
p0.displayName = "OutcomeView";
|
|
15174
15176
|
const Be = {
|
|
15175
15177
|
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]",
|
|
15176
15178
|
baseActive: "[--filter-select-min:8rem]",
|
|
@@ -15185,7 +15187,7 @@ const Be = {
|
|
|
15185
15187
|
iconActive: "!text-primary-600",
|
|
15186
15188
|
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",
|
|
15187
15189
|
clearIcon: "size-[0.8125rem]"
|
|
15188
|
-
},
|
|
15190
|
+
}, g0 = ({
|
|
15189
15191
|
label: e,
|
|
15190
15192
|
value: t,
|
|
15191
15193
|
options: a,
|
|
@@ -15256,14 +15258,14 @@ const Be = {
|
|
|
15256
15258
|
}
|
|
15257
15259
|
);
|
|
15258
15260
|
};
|
|
15259
|
-
|
|
15261
|
+
g0.displayName = "FilterSelect";
|
|
15260
15262
|
const yt = {
|
|
15261
15263
|
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",
|
|
15262
15264
|
idle: "w-full",
|
|
15263
15265
|
sentinel: "h-px w-full",
|
|
15264
15266
|
spinner: "inline-flex",
|
|
15265
15267
|
error: "text-pos-danger"
|
|
15266
|
-
},
|
|
15268
|
+
}, b0 = ({
|
|
15267
15269
|
status: e,
|
|
15268
15270
|
onLoadMore: t,
|
|
15269
15271
|
loadingLabel: a,
|
|
@@ -15334,7 +15336,7 @@ const yt = {
|
|
|
15334
15336
|
}
|
|
15335
15337
|
);
|
|
15336
15338
|
};
|
|
15337
|
-
|
|
15339
|
+
b0.displayName = "LoadMoreFooter";
|
|
15338
15340
|
const Se = {
|
|
15339
15341
|
base: "w-full",
|
|
15340
15342
|
list: "m-0 list-none p-0",
|
|
@@ -15367,7 +15369,7 @@ const Se = {
|
|
|
15367
15369
|
/* @__PURE__ */ n("span", { className: Se.rowLabel, children: a.label }),
|
|
15368
15370
|
/* @__PURE__ */ n("span", { className: Se.rowValue, children: a.value })
|
|
15369
15371
|
] }, r)) })
|
|
15370
|
-
] }),
|
|
15372
|
+
] }), x0 = ({
|
|
15371
15373
|
items: e,
|
|
15372
15374
|
ariaLabel: t,
|
|
15373
15375
|
onSelect: a,
|
|
@@ -15400,8 +15402,8 @@ const Se = {
|
|
|
15400
15402
|
)
|
|
15401
15403
|
] }, l.id);
|
|
15402
15404
|
}) }) });
|
|
15403
|
-
|
|
15404
|
-
const
|
|
15405
|
+
x0.displayName = "CardList";
|
|
15406
|
+
const y0 = 48, ne = {
|
|
15405
15407
|
base: `mb-4 overflow-hidden rounded-2xl border border-pos-line bg-white ${Ya}`,
|
|
15406
15408
|
band: "flex items-center gap-2.5 border-b border-pos-hair bg-pos-page px-4 py-2.5",
|
|
15407
15409
|
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 ${da}`,
|
|
@@ -15444,7 +15446,7 @@ const x0 = 48, ne = {
|
|
|
15444
15446
|
statsNarrow: "px-4 pb-4"
|
|
15445
15447
|
}, Dl = Ft((e, t) => /* @__PURE__ */ n("li", { ref: t, ...Object.fromEntries(Object.entries(e).filter(([a]) => a !== "data-testid")) }));
|
|
15446
15448
|
Dl.displayName = "CrumbBase";
|
|
15447
|
-
const
|
|
15449
|
+
const v0 = ({
|
|
15448
15450
|
breadcrumb: e = [],
|
|
15449
15451
|
onBack: t,
|
|
15450
15452
|
backLabel: a,
|
|
@@ -15460,7 +15462,7 @@ const y0 = ({
|
|
|
15460
15462
|
banner: g,
|
|
15461
15463
|
"data-testid": h = "record-header"
|
|
15462
15464
|
}) => {
|
|
15463
|
-
const { ref: x, width: y } = Vt(), b = !oa(y,
|
|
15465
|
+
const { ref: x, width: y } = Vt(), b = !oa(y, y0), N = e.length > 0 || !!t, k = !!(f && f.length > 0), A = !!s || se(l) || se(o) || se(c) || se(d) || k;
|
|
15464
15466
|
return /* @__PURE__ */ u("div", { ref: x, "data-testid": h, "data-size": b ? "narrow" : "wide", className: ne.base, children: [
|
|
15465
15467
|
N && /* @__PURE__ */ u("div", { "data-testid": `${h}-band`, className: ne.band, children: [
|
|
15466
15468
|
t && /* @__PURE__ */ n(
|
|
@@ -15570,19 +15572,19 @@ const y0 = ({
|
|
|
15570
15572
|
se(g) && /* @__PURE__ */ n("div", { "data-testid": `${h}-banner`, children: g })
|
|
15571
15573
|
] });
|
|
15572
15574
|
};
|
|
15573
|
-
|
|
15574
|
-
const
|
|
15575
|
+
v0.displayName = "RecordHeader";
|
|
15576
|
+
const w0 = 50, Yt = {
|
|
15575
15577
|
base: "grid items-start gap-4",
|
|
15576
15578
|
split: "grid-cols-[minmax(0,1fr)_23.25rem]",
|
|
15577
15579
|
stacked: "grid-cols-[minmax(0,1fr)]",
|
|
15578
15580
|
column: "min-w-0",
|
|
15579
15581
|
aside: "flex min-w-0 flex-col gap-[0.875rem]"
|
|
15580
|
-
},
|
|
15582
|
+
}, N0 = ({
|
|
15581
15583
|
children: e,
|
|
15582
15584
|
aside: t,
|
|
15583
15585
|
"data-testid": a = "record-layout"
|
|
15584
15586
|
}) => {
|
|
15585
|
-
const { ref: r, width: i } = Vt(), s = se(t), l = s && i > 0 && oa(i,
|
|
15587
|
+
const { ref: r, width: i } = Vt(), s = se(t), l = s && i > 0 && oa(i, w0), o = /* @__PURE__ */ n("div", { "data-testid": `${a}-main`, className: Yt.column, children: e }, "main"), c = s ? /* @__PURE__ */ n("div", { "data-testid": `${a}-aside`, className: Yt.aside, children: t }, "aside") : null;
|
|
15586
15588
|
return /* @__PURE__ */ n(
|
|
15587
15589
|
"div",
|
|
15588
15590
|
{
|
|
@@ -15594,15 +15596,15 @@ const v0 = 50, Yt = {
|
|
|
15594
15596
|
}
|
|
15595
15597
|
);
|
|
15596
15598
|
};
|
|
15597
|
-
|
|
15598
|
-
const
|
|
15599
|
+
N0.displayName = "RecordLayout";
|
|
15600
|
+
const k0 = 560, Kt = {
|
|
15599
15601
|
base: "grid gap-3",
|
|
15600
15602
|
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)]",
|
|
15601
15603
|
value: "text-[23px] font-bold leading-[1.2] tracking-[-.02em] tabular-nums text-default-900 [overflow-wrap:anywhere]",
|
|
15602
15604
|
label: "mt-[5px] text-[13.5px] text-default-500",
|
|
15603
15605
|
caption: "mt-0.5 text-[12.5px] text-default-500"
|
|
15604
|
-
},
|
|
15605
|
-
const { ref: a, width: r } = Vt(), i = r >= Df ? Math.max(e.length, 1) : r >=
|
|
15606
|
+
}, C0 = ({ items: e, "data-testid": t = "stat-tiles" }) => {
|
|
15607
|
+
const { ref: a, width: r } = Vt(), i = r >= Df ? Math.max(e.length, 1) : r >= k0 ? 2 : 1;
|
|
15606
15608
|
return /* @__PURE__ */ n(
|
|
15607
15609
|
"div",
|
|
15608
15610
|
{
|
|
@@ -15627,7 +15629,7 @@ const N0 = 560, Kt = {
|
|
|
15627
15629
|
}
|
|
15628
15630
|
);
|
|
15629
15631
|
};
|
|
15630
|
-
|
|
15632
|
+
C0.displayName = "StatTiles";
|
|
15631
15633
|
const ut = {
|
|
15632
15634
|
base: "mb-3.5 w-full",
|
|
15633
15635
|
tabList: "w-full gap-1 rounded-full border border-pos-line bg-default-100 p-1",
|
|
@@ -15639,7 +15641,7 @@ const ut = {
|
|
|
15639
15641
|
title: "flex items-center whitespace-nowrap",
|
|
15640
15642
|
icon: "flex shrink-0",
|
|
15641
15643
|
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"
|
|
15642
|
-
},
|
|
15644
|
+
}, S0 = {
|
|
15643
15645
|
md: {
|
|
15644
15646
|
tab: "px-[0.875rem] py-[0.5625rem]",
|
|
15645
15647
|
tabContent: "text-[0.84375rem]",
|
|
@@ -15654,12 +15656,12 @@ const ut = {
|
|
|
15654
15656
|
icon: "[&_svg]:size-5",
|
|
15655
15657
|
count: "px-2 text-[0.8125rem]"
|
|
15656
15658
|
}
|
|
15657
|
-
}, br = "pill-tabs", El = (e, t = br) => `${t}-tab-${e}`, Fl = (e, t = br) => `${t}-panel-${e}`,
|
|
15659
|
+
}, br = "pill-tabs", El = (e, t = br) => `${t}-tab-${e}`, Fl = (e, t = br) => `${t}-panel-${e}`, Jg = (e, t = br) => ({
|
|
15658
15660
|
role: "tabpanel",
|
|
15659
15661
|
id: Fl(e, t),
|
|
15660
15662
|
"aria-labelledby": El(e, t),
|
|
15661
15663
|
tabIndex: 0
|
|
15662
|
-
}),
|
|
15664
|
+
}), $0 = ({
|
|
15663
15665
|
items: e,
|
|
15664
15666
|
value: t,
|
|
15665
15667
|
onChange: a,
|
|
@@ -15668,7 +15670,7 @@ const ut = {
|
|
|
15668
15670
|
size: s = "md",
|
|
15669
15671
|
"data-testid": l = "pill-tabs"
|
|
15670
15672
|
}) => {
|
|
15671
|
-
const o = Uf(), c = !!ao()?.disableAnimation, d = i ?? l, f =
|
|
15673
|
+
const o = Uf(), c = !!ao()?.disableAnimation, d = i ?? l, f = S0[s];
|
|
15672
15674
|
return /* @__PURE__ */ n(
|
|
15673
15675
|
qn,
|
|
15674
15676
|
{
|
|
@@ -15724,7 +15726,7 @@ const ut = {
|
|
|
15724
15726
|
}
|
|
15725
15727
|
);
|
|
15726
15728
|
};
|
|
15727
|
-
|
|
15729
|
+
$0.displayName = "PillTabs";
|
|
15728
15730
|
const ve = {
|
|
15729
15731
|
base: "w-full",
|
|
15730
15732
|
list: "m-0 list-none p-0",
|
|
@@ -15767,7 +15769,7 @@ const ve = {
|
|
|
15767
15769
|
children: e.note
|
|
15768
15770
|
}
|
|
15769
15771
|
) : null })
|
|
15770
|
-
] }),
|
|
15772
|
+
] }), A0 = ({
|
|
15771
15773
|
rows: e,
|
|
15772
15774
|
footer: t,
|
|
15773
15775
|
emptyContent: a,
|
|
@@ -15802,7 +15804,7 @@ const ve = {
|
|
|
15802
15804
|
t.note != null && /* @__PURE__ */ n("div", { "data-testid": `${i}-footer-note`, className: ve.footerNote, children: t.note })
|
|
15803
15805
|
] })
|
|
15804
15806
|
] });
|
|
15805
|
-
|
|
15807
|
+
A0.displayName = "AmountList";
|
|
15806
15808
|
const He = {
|
|
15807
15809
|
list: "m-0 list-none p-0 pl-0.5",
|
|
15808
15810
|
event: "flex gap-3.5",
|
|
@@ -15817,7 +15819,7 @@ const He = {
|
|
|
15817
15819
|
detail: "mt-[0.1875rem] min-w-0 text-[0.84375rem] leading-[1.5] text-default-500 [overflow-wrap:anywhere]",
|
|
15818
15820
|
actor: "mt-[0.1875rem] min-w-0 text-[0.78125rem] text-default-500 [overflow-wrap:anywhere]",
|
|
15819
15821
|
empty: "text-[0.875rem] text-default-500"
|
|
15820
|
-
},
|
|
15822
|
+
}, D0 = ({
|
|
15821
15823
|
events: e,
|
|
15822
15824
|
emptyContent: t,
|
|
15823
15825
|
"data-testid": a = "activity-timeline"
|
|
@@ -15838,7 +15840,7 @@ const He = {
|
|
|
15838
15840
|
] })
|
|
15839
15841
|
] }, r.id);
|
|
15840
15842
|
}) });
|
|
15841
|
-
|
|
15843
|
+
D0.displayName = "ActivityTimeline";
|
|
15842
15844
|
const Fe = {
|
|
15843
15845
|
base: `overflow-hidden rounded-2xl border border-pos-line bg-white ${Ya}`,
|
|
15844
15846
|
header: "flex flex-wrap items-center gap-2 px-5 pt-4",
|
|
@@ -15866,7 +15868,7 @@ const Fe = {
|
|
|
15866
15868
|
!!e.secondary && /* @__PURE__ */ n("span", { className: Fe.secondary, children: e.secondary })
|
|
15867
15869
|
] }),
|
|
15868
15870
|
!!e.amount && /* @__PURE__ */ n("span", { "data-testid": `${t}-amount`, className: Fe.amount, style: ca(e.amountTone), children: e.amount })
|
|
15869
|
-
] }),
|
|
15871
|
+
] }), E0 = ({
|
|
15870
15872
|
title: e,
|
|
15871
15873
|
count: t,
|
|
15872
15874
|
rows: a,
|
|
@@ -15920,8 +15922,8 @@ const Fe = {
|
|
|
15920
15922
|
}
|
|
15921
15923
|
);
|
|
15922
15924
|
};
|
|
15923
|
-
|
|
15924
|
-
const
|
|
15925
|
+
E0.displayName = "RelatedRecordList";
|
|
15926
|
+
const F0 = ({
|
|
15925
15927
|
title: e,
|
|
15926
15928
|
titleAs: t = "h2",
|
|
15927
15929
|
icon: a,
|
|
@@ -15974,27 +15976,27 @@ const E0 = ({
|
|
|
15974
15976
|
}
|
|
15975
15977
|
);
|
|
15976
15978
|
};
|
|
15977
|
-
|
|
15978
|
-
const
|
|
15979
|
+
F0.displayName = "RecordCard";
|
|
15980
|
+
const L0 = {
|
|
15979
15981
|
stack: "flex min-w-0 flex-col gap-[0.875rem]",
|
|
15980
15982
|
grid: "grid min-w-0 grid-cols-[repeat(auto-fit,minmax(min(100%,18.75rem),1fr))] items-start gap-[0.875rem]"
|
|
15981
|
-
},
|
|
15983
|
+
}, _0 = ({
|
|
15982
15984
|
layout: e = "stack",
|
|
15983
15985
|
className: t,
|
|
15984
15986
|
children: a,
|
|
15985
15987
|
"data-testid": r = "card-stack",
|
|
15986
15988
|
...i
|
|
15987
|
-
}) => /* @__PURE__ */ n("div", { ...i, "data-testid": r, "data-layout": e, className: p(
|
|
15988
|
-
|
|
15989
|
+
}) => /* @__PURE__ */ n("div", { ...i, "data-testid": r, "data-layout": e, className: p(L0[e], t), children: a });
|
|
15990
|
+
_0.displayName = "CardStack";
|
|
15989
15991
|
const ba = {
|
|
15990
15992
|
list: "m-0 divide-y divide-pos-hair",
|
|
15991
15993
|
row: "flex items-baseline gap-3",
|
|
15992
15994
|
label: "min-w-0 text-[0.84375rem] text-default-500",
|
|
15993
15995
|
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]"
|
|
15994
|
-
},
|
|
15996
|
+
}, M0 = {
|
|
15995
15997
|
regular: "py-[0.5625rem]",
|
|
15996
15998
|
compact: "py-2"
|
|
15997
|
-
},
|
|
15999
|
+
}, R0 = ({
|
|
15998
16000
|
rows: e,
|
|
15999
16001
|
density: t = "regular",
|
|
16000
16002
|
"data-testid": a = "key-value-rows"
|
|
@@ -16002,7 +16004,7 @@ const ba = {
|
|
|
16002
16004
|
"div",
|
|
16003
16005
|
{
|
|
16004
16006
|
"data-testid": `${a}-row-${r.id ?? i}`,
|
|
16005
|
-
className: p(ba.row,
|
|
16007
|
+
className: p(ba.row, M0[t]),
|
|
16006
16008
|
children: [
|
|
16007
16009
|
/* @__PURE__ */ n("dt", { className: ba.label, children: r.label }),
|
|
16008
16010
|
/* @__PURE__ */ n("dd", { className: ba.value, children: r.value })
|
|
@@ -16010,7 +16012,7 @@ const ba = {
|
|
|
16010
16012
|
},
|
|
16011
16013
|
r.id ?? i
|
|
16012
16014
|
)) });
|
|
16013
|
-
|
|
16015
|
+
R0.displayName = "KeyValueRows";
|
|
16014
16016
|
const Qe = {
|
|
16015
16017
|
list: "m-0 list-none p-0",
|
|
16016
16018
|
row: "flex items-start gap-[0.875rem] border-t border-pos-hair px-5 py-3",
|
|
@@ -16023,7 +16025,7 @@ const Qe = {
|
|
|
16023
16025
|
amounts: "inline-flex items-baseline gap-2",
|
|
16024
16026
|
original: "text-[0.8125rem] tabular-nums text-default-500 line-through",
|
|
16025
16027
|
amount: "whitespace-nowrap text-[0.9375rem] font-bold tabular-nums text-default-900"
|
|
16026
|
-
},
|
|
16028
|
+
}, P0 = ({
|
|
16027
16029
|
items: e,
|
|
16028
16030
|
ariaLabel: t,
|
|
16029
16031
|
originalAmountLabel: a,
|
|
@@ -16070,8 +16072,8 @@ const Qe = {
|
|
|
16070
16072
|
i.id
|
|
16071
16073
|
);
|
|
16072
16074
|
}) });
|
|
16073
|
-
|
|
16074
|
-
const
|
|
16075
|
+
P0.displayName = "LineItemRows";
|
|
16076
|
+
const O0 = 37.5, Me = {
|
|
16075
16077
|
base: "mx-5 border-t border-pos-hair pb-[1.125rem] pt-2.5",
|
|
16076
16078
|
rowWide: "flex items-baseline gap-4",
|
|
16077
16079
|
rowNarrow: "flex flex-wrap items-baseline gap-x-3",
|
|
@@ -16088,13 +16090,13 @@ const P0 = 37.5, Me = {
|
|
|
16088
16090
|
totalLabel: "text-[0.9375rem] font-bold text-default-900",
|
|
16089
16091
|
totalValue: "ml-auto shrink-0 whitespace-nowrap text-right text-[1.0625rem] font-bold tabular-nums text-default-900",
|
|
16090
16092
|
memo: "mt-2 text-[0.78125rem] leading-[1.6] text-default-500"
|
|
16091
|
-
},
|
|
16093
|
+
}, z0 = ({
|
|
16092
16094
|
rows: e,
|
|
16093
16095
|
total: t,
|
|
16094
16096
|
memo: a,
|
|
16095
16097
|
"data-testid": r = "record-totals"
|
|
16096
16098
|
}) => {
|
|
16097
|
-
const { ref: i, width: s } = Vt(), l = s > 0 && !oa(s,
|
|
16099
|
+
const { ref: i, width: s } = Vt(), l = s > 0 && !oa(s, O0), o = l ? Me.rowNarrow : Me.rowWide, c = l ? Me.labelNarrow : Me.labelWide, d = l ? Me.noteNarrow : Me.noteWide;
|
|
16098
16100
|
return /* @__PURE__ */ u(
|
|
16099
16101
|
"div",
|
|
16100
16102
|
{
|
|
@@ -16128,16 +16130,16 @@ const P0 = 37.5, Me = {
|
|
|
16128
16130
|
}
|
|
16129
16131
|
);
|
|
16130
16132
|
};
|
|
16131
|
-
|
|
16133
|
+
z0.displayName = "RecordTotals";
|
|
16132
16134
|
const Tn = {
|
|
16133
16135
|
base: "whitespace-nowrap text-[0.875rem]",
|
|
16134
16136
|
secondary: "text-default-500",
|
|
16135
16137
|
chipStack: "inline-flex flex-col items-start gap-[0.3125rem]"
|
|
16136
|
-
},
|
|
16138
|
+
}, I0 = {
|
|
16137
16139
|
text: "text-default-900",
|
|
16138
16140
|
reference: "font-normal text-primary",
|
|
16139
16141
|
amount: "font-semibold tabular-nums text-default-900"
|
|
16140
|
-
},
|
|
16142
|
+
}, T0 = ({
|
|
16141
16143
|
variant: e = "text",
|
|
16142
16144
|
tone: t,
|
|
16143
16145
|
secondary: a,
|
|
@@ -16147,7 +16149,7 @@ const Tn = {
|
|
|
16147
16149
|
"span",
|
|
16148
16150
|
{
|
|
16149
16151
|
"data-testid": i,
|
|
16150
|
-
className: p(Tn.base,
|
|
16152
|
+
className: p(Tn.base, I0[e]),
|
|
16151
16153
|
style: ca(t),
|
|
16152
16154
|
children: [
|
|
16153
16155
|
r,
|
|
@@ -16158,32 +16160,32 @@ const Tn = {
|
|
|
16158
16160
|
]
|
|
16159
16161
|
}
|
|
16160
16162
|
);
|
|
16161
|
-
|
|
16162
|
-
const
|
|
16163
|
-
|
|
16163
|
+
T0.displayName = "CellText";
|
|
16164
|
+
const B0 = ({ children: e, "data-testid": t = "chip-stack" }) => /* @__PURE__ */ n("span", { "data-testid": t, className: Tn.chipStack, children: e });
|
|
16165
|
+
B0.displayName = "ChipStack";
|
|
16164
16166
|
export {
|
|
16165
|
-
|
|
16167
|
+
D0 as ActivityTimeline,
|
|
16166
16168
|
dh as AdminFieldLabel,
|
|
16167
16169
|
Kf as AdminTable,
|
|
16168
16170
|
uh as AdminTextField,
|
|
16169
16171
|
Jf as AdminToolbar,
|
|
16170
|
-
|
|
16172
|
+
A0 as AmountList,
|
|
16171
16173
|
id as AppliedCodeCard,
|
|
16172
16174
|
V as Button,
|
|
16173
|
-
|
|
16174
|
-
|
|
16175
|
-
|
|
16175
|
+
x0 as CardList,
|
|
16176
|
+
_0 as CardStack,
|
|
16177
|
+
Wg as CashTenderForm,
|
|
16176
16178
|
qm as CatalogItemCard,
|
|
16177
|
-
|
|
16179
|
+
T0 as CellText,
|
|
16178
16180
|
Rh as CheckTenderForm,
|
|
16179
|
-
|
|
16180
|
-
|
|
16181
|
+
B0 as ChipStack,
|
|
16182
|
+
Tg as CommitmentDetails,
|
|
16181
16183
|
pl as ConfirmDialog,
|
|
16182
16184
|
Gs as ConfirmationModal,
|
|
16183
|
-
|
|
16184
|
-
|
|
16185
|
+
$g as ConfirmationPageTemplate,
|
|
16186
|
+
Gp as CustomerCard,
|
|
16185
16187
|
Ls as DatePicker,
|
|
16186
|
-
|
|
16188
|
+
kg as DensityProvider,
|
|
16187
16189
|
Tf as DimensionChip,
|
|
16188
16190
|
mp as DiscardGuard,
|
|
16189
16191
|
mu as DonationAmounts,
|
|
@@ -16192,47 +16194,47 @@ export {
|
|
|
16192
16194
|
Ch as EntityListSkeleton,
|
|
16193
16195
|
Nh as EntityRow,
|
|
16194
16196
|
Js as ErrorState,
|
|
16195
|
-
|
|
16196
|
-
|
|
16197
|
+
Fg as EventDetails,
|
|
16198
|
+
Ag as EventDetailsTemplate,
|
|
16197
16199
|
gu as ExpireCartTimer,
|
|
16198
16200
|
la as FeedbackState,
|
|
16199
16201
|
wf as FilterPopover,
|
|
16200
|
-
|
|
16201
|
-
|
|
16202
|
-
|
|
16202
|
+
g0 as FilterSelect,
|
|
16203
|
+
Dg as Footer,
|
|
16204
|
+
wg as HeroUIProvider,
|
|
16203
16205
|
zd as HorizontalSteps,
|
|
16204
16206
|
cp as InlineConfirm,
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
16208
|
-
|
|
16209
|
-
|
|
16207
|
+
zg as InstallmentFundAssignment,
|
|
16208
|
+
Ig as InstallmentFundAssignmentSkeleton,
|
|
16209
|
+
Bg as InstallmentSchedule,
|
|
16210
|
+
Vg as InstallmentScheduleSkeleton,
|
|
16211
|
+
Ug as InstallmentTable,
|
|
16210
16212
|
Wm as ItemCard,
|
|
16211
16213
|
Tf as KeyValueChip,
|
|
16212
|
-
|
|
16213
|
-
|
|
16214
|
-
|
|
16214
|
+
R0 as KeyValueRows,
|
|
16215
|
+
Wp as LineItemList,
|
|
16216
|
+
P0 as LineItemRows,
|
|
16215
16217
|
Fh as ListPanel,
|
|
16216
|
-
|
|
16218
|
+
b0 as LoadMoreFooter,
|
|
16217
16219
|
rp as LoadingOverlay,
|
|
16218
16220
|
el as LoadingState,
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16221
|
+
jg as MembershipSelectCards,
|
|
16222
|
+
Xg as MetaCard,
|
|
16223
|
+
kp as ModalPanelHeader,
|
|
16224
|
+
Kg as ModalPanels,
|
|
16223
16225
|
qh as ModalShell,
|
|
16224
16226
|
Yh as ModalShellFooter,
|
|
16225
16227
|
Gh as ModalShellHeader,
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16228
|
+
Eg as Multiselect,
|
|
16229
|
+
Sg as Navbar,
|
|
16230
|
+
Zp as NotesField,
|
|
16229
16231
|
Ln as OfferCard,
|
|
16230
16232
|
xu as OfferCardEmpty,
|
|
16231
16233
|
vu as OfferCardError,
|
|
16232
16234
|
$u as OfferCardList,
|
|
16233
16235
|
Nu as OfferCardSkeleton,
|
|
16234
16236
|
zh as OtherTenderForm,
|
|
16235
|
-
|
|
16237
|
+
p0 as OutcomeView,
|
|
16236
16238
|
_f as PageHeader,
|
|
16237
16239
|
$h as PaginationSummary,
|
|
16238
16240
|
fl as PaymentCashChangeBanner,
|
|
@@ -16240,41 +16242,41 @@ export {
|
|
|
16240
16242
|
ip as PaymentSuccessView,
|
|
16241
16243
|
ap as PaymentTotalBanner,
|
|
16242
16244
|
hh as PickerRow,
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
+
$0 as PillTabs,
|
|
16246
|
+
c0 as PinField,
|
|
16245
16247
|
Ym as ProgramListItem,
|
|
16246
16248
|
nu as RICH_TEXT_PRESETS,
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16249
|
+
Kp as ReasonSelect,
|
|
16250
|
+
F0 as RecordCard,
|
|
16251
|
+
v0 as RecordHeader,
|
|
16252
|
+
N0 as RecordLayout,
|
|
16253
|
+
z0 as RecordTotals,
|
|
16254
|
+
Cg as RedeemCodeInput,
|
|
16255
|
+
E0 as RelatedRecordList,
|
|
16254
16256
|
Qu as RevenueDistributionCard,
|
|
16255
16257
|
Zu as RevenueDistributionEmpty,
|
|
16256
16258
|
Ju as RevenueDistributionError,
|
|
16257
16259
|
em as RevenueDistributionSkeleton,
|
|
16258
16260
|
cu as RichTextArea,
|
|
16259
16261
|
fh as RowActions,
|
|
16260
|
-
|
|
16262
|
+
qp as SectionPanel,
|
|
16261
16263
|
st as Select,
|
|
16262
16264
|
$f as SessionTimeline,
|
|
16263
16265
|
jh as SplitPaymentSummary,
|
|
16264
|
-
|
|
16265
|
-
|
|
16266
|
+
l0 as SplitTenderPanel,
|
|
16267
|
+
C0 as StatTiles,
|
|
16266
16268
|
zf as StatusChip,
|
|
16267
16269
|
Md as Stepper,
|
|
16268
16270
|
of as SuccessState,
|
|
16269
|
-
|
|
16271
|
+
Pp as Summary,
|
|
16270
16272
|
jf as TableSkeleton,
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
+
a0 as TenderMethods,
|
|
16274
|
+
Hg as TicketSelection,
|
|
16273
16275
|
Jh as TileSelect,
|
|
16274
16276
|
cf as Toggle,
|
|
16275
16277
|
nh as ToolbarButton,
|
|
16276
16278
|
rh as UnderlineTabs,
|
|
16277
|
-
|
|
16279
|
+
Ip as WizardShell,
|
|
16278
16280
|
ch as adminFieldErrorClass,
|
|
16279
16281
|
oh as adminFieldHintClass,
|
|
16280
16282
|
sl as adminFieldLabelClass,
|
|
@@ -16283,38 +16285,38 @@ export {
|
|
|
16283
16285
|
lh as adminInputReadOnlyClass,
|
|
16284
16286
|
ih as adminInputWrapperClass,
|
|
16285
16287
|
qf as adminRowClass,
|
|
16286
|
-
|
|
16288
|
+
vg as adminSurfaceCss,
|
|
16287
16289
|
Ki as adminSurfaceTokens,
|
|
16288
16290
|
Gf as adminTableClass,
|
|
16289
16291
|
Yf as adminTableFooterClass,
|
|
16290
16292
|
Wf as adminTdClass,
|
|
16291
16293
|
Hf as adminThClass,
|
|
16292
|
-
|
|
16294
|
+
Og as calculateAllocationDifference,
|
|
16293
16295
|
Wr as computeChange,
|
|
16294
16296
|
Wa as currencyFractionDigits,
|
|
16295
16297
|
De as formatMoney,
|
|
16296
16298
|
Qr as formatOfferCurrency,
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
+
_g as formatRevenueAmount,
|
|
16300
|
+
Mg as formatRevenueCurrency,
|
|
16299
16301
|
bm as generateAutomaticInstallments,
|
|
16300
16302
|
qs as generateDistributionId,
|
|
16301
|
-
|
|
16303
|
+
Rg as getCurrencySymbol,
|
|
16302
16304
|
Cu as offerCardVariants,
|
|
16303
16305
|
ku as offerListVariants,
|
|
16304
16306
|
Sh as pageRange,
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
+
Lg as parseOfferCurrency,
|
|
16308
|
+
Pg as parseRevenueCurrency,
|
|
16307
16309
|
El as pillTabId,
|
|
16308
16310
|
Fl as pillTabPanelId,
|
|
16309
|
-
|
|
16311
|
+
Jg as pillTabPanelProps,
|
|
16310
16312
|
Re as posSurfaceTokens,
|
|
16311
16313
|
Rd as roundToCurrency,
|
|
16312
|
-
|
|
16314
|
+
Ng as useControlSize,
|
|
16313
16315
|
Kn as useDensity,
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16316
|
+
Zg as useDiscardGuard,
|
|
16317
|
+
Gg as useDiscardGuardActions,
|
|
16318
|
+
Yg as useModalPanel,
|
|
16319
|
+
Qg as useModalPanels,
|
|
16320
|
+
qg as useReportUnsavedChanges
|
|
16319
16321
|
};
|
|
16320
16322
|
(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)}})();
|