@veevarts/design-system 1.17.0-beta.3 → 1.17.0-beta.5
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 +4 -4
- package/dist/index.js +180 -148
- package/dist/patterns/DimensionChip/DimensionChip.d.ts +12 -0
- package/dist/patterns/DimensionChip/index.d.ts +2 -0
- package/dist/patterns/InstallmentSchedule/index.d.ts +1 -1
- package/dist/patterns/InstallmentSchedule/types.d.ts +2 -1
- package/dist/patterns/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ import { Document as Xs } from "@tiptap/extension-document";
|
|
|
32
32
|
import { Text as el } from "@tiptap/extension-text";
|
|
33
33
|
import { Dropcursor as tl } from "@tiptap/extension-dropcursor";
|
|
34
34
|
import { Gapcursor as nl } from "@tiptap/extension-gapcursor";
|
|
35
|
-
function
|
|
35
|
+
function Pf({ children: e }) {
|
|
36
36
|
return /* @__PURE__ */ a(Ui, { children: e });
|
|
37
37
|
}
|
|
38
38
|
const Q = ft(
|
|
@@ -814,7 +814,7 @@ function Dl({
|
|
|
814
814
|
}
|
|
815
815
|
);
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function zf({
|
|
818
818
|
logo: e,
|
|
819
819
|
languages: t = [],
|
|
820
820
|
selectedLanguage: n,
|
|
@@ -862,7 +862,7 @@ function Of({
|
|
|
862
862
|
}
|
|
863
863
|
);
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function Rf(e) {
|
|
866
866
|
return /* @__PURE__ */ a("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ a("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ a(
|
|
867
867
|
ze,
|
|
868
868
|
{
|
|
@@ -1122,7 +1122,7 @@ const Ml = q.forwardRef(
|
|
|
1122
1122
|
}
|
|
1123
1123
|
);
|
|
1124
1124
|
Ml.displayName = "Stepper";
|
|
1125
|
-
function
|
|
1125
|
+
function Vf(e) {
|
|
1126
1126
|
return /* @__PURE__ */ a("div", { className: "min-h-screen flex flex-col", children: /* @__PURE__ */ a("div", { className: "flex-1 flex items-center justify-center p-12", children: /* @__PURE__ */ a(
|
|
1127
1127
|
ze,
|
|
1128
1128
|
{
|
|
@@ -1161,7 +1161,7 @@ function Fl(e, t, n = "en-US") {
|
|
|
1161
1161
|
function Cr(e, t, n, r) {
|
|
1162
1162
|
return Fl(e - t, n, r);
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Bf() {
|
|
1165
1165
|
return /* @__PURE__ */ f(
|
|
1166
1166
|
"footer",
|
|
1167
1167
|
{
|
|
@@ -1174,7 +1174,7 @@ function Rf() {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
1177
|
-
const
|
|
1177
|
+
const Uf = (e) => {
|
|
1178
1178
|
const t = ce(
|
|
1179
1179
|
() => JSON.stringify({ allItems: e.allItems, selected: e.selected }),
|
|
1180
1180
|
[e.allItems, e.selected]
|
|
@@ -4351,7 +4351,7 @@ const sn = ({
|
|
|
4351
4351
|
}) => /* @__PURE__ */ f("div", { className: "flex items-center gap-2 text-sm text-gray-600", "data-testid": n, children: [
|
|
4352
4352
|
/* @__PURE__ */ a(U, { icon: e, width: 20, className: "text-default-500" }),
|
|
4353
4353
|
/* @__PURE__ */ a("span", { children: t })
|
|
4354
|
-
] }),
|
|
4354
|
+
] }), jf = ({
|
|
4355
4355
|
classes: e = "",
|
|
4356
4356
|
name: t,
|
|
4357
4357
|
imageUrl: n,
|
|
@@ -4474,7 +4474,7 @@ function Rr(e, t = "en-US", n = "USD") {
|
|
|
4474
4474
|
return console.warn(`Invalid currency formatting: ${r}`), `${n} ${e.toFixed(2)}`;
|
|
4475
4475
|
}
|
|
4476
4476
|
}
|
|
4477
|
-
function
|
|
4477
|
+
function Hf(e) {
|
|
4478
4478
|
const t = e.replace(/[^\d.,-]/g, ""), n = t.match(/,\d{1,2}$/);
|
|
4479
4479
|
let r;
|
|
4480
4480
|
n ? r = t.replace(/\./g, "").replace(",", ".") : r = t.replace(/,/g, "");
|
|
@@ -6260,10 +6260,10 @@ function qc(e = {}) {
|
|
|
6260
6260
|
s._state.mount || (s._setValid(), s._state.mount = !0), s._state.watch && (s._state.watch = !1, s._subjects.state.next({ ...s._formState })), s._removeUnmounted();
|
|
6261
6261
|
}), t.current.formState = q.useMemo(() => di(r, s), [s, r]), t.current;
|
|
6262
6262
|
}
|
|
6263
|
-
function
|
|
6263
|
+
function qf(e, t = 3) {
|
|
6264
6264
|
return e % 1 === 0 ? e.toString() : e.toFixed(t).replace(/\.?0+$/, "");
|
|
6265
6265
|
}
|
|
6266
|
-
function
|
|
6266
|
+
function Wf(e, t = "en-US", n = "USD") {
|
|
6267
6267
|
try {
|
|
6268
6268
|
return new Intl.NumberFormat(t, {
|
|
6269
6269
|
style: "currency",
|
|
@@ -6275,7 +6275,7 @@ function Hf(e, t = "en-US", n = "USD") {
|
|
|
6275
6275
|
return console.warn(`Invalid currency formatting: ${r}`), `${n} ${e.toFixed(2)}`;
|
|
6276
6276
|
}
|
|
6277
6277
|
}
|
|
6278
|
-
function
|
|
6278
|
+
function Yf(e = "USD", t = "en-US") {
|
|
6279
6279
|
try {
|
|
6280
6280
|
return new Intl.NumberFormat(t, {
|
|
6281
6281
|
style: "currency",
|
|
@@ -6285,14 +6285,14 @@ function qf(e = "USD", t = "en-US") {
|
|
|
6285
6285
|
return "$";
|
|
6286
6286
|
}
|
|
6287
6287
|
}
|
|
6288
|
-
function
|
|
6288
|
+
function Gf(e) {
|
|
6289
6289
|
const t = e.replace(/[^\d.,-]/g, ""), n = t.match(/,\d{1,2}$/);
|
|
6290
6290
|
let r;
|
|
6291
6291
|
n ? r = t.replace(/\./g, "").replace(",", ".") : r = t.replace(/,/g, "");
|
|
6292
6292
|
const i = parseFloat(r);
|
|
6293
6293
|
return isNaN(i) ? null : i;
|
|
6294
6294
|
}
|
|
6295
|
-
function
|
|
6295
|
+
function Kf(e, t, n = 1e-3) {
|
|
6296
6296
|
const r = e - t, i = Math.abs(r) <= n;
|
|
6297
6297
|
return {
|
|
6298
6298
|
difference: r,
|
|
@@ -6788,7 +6788,7 @@ function rd() {
|
|
|
6788
6788
|
);
|
|
6789
6789
|
}
|
|
6790
6790
|
const ad = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, Math.round(e * 100) / 100)) : 0, id = (e) => e.fund !== null;
|
|
6791
|
-
function
|
|
6791
|
+
function Qf({
|
|
6792
6792
|
assignments: e,
|
|
6793
6793
|
funds: t,
|
|
6794
6794
|
labels: n,
|
|
@@ -7180,7 +7180,7 @@ function ld({
|
|
|
7180
7180
|
}
|
|
7181
7181
|
);
|
|
7182
7182
|
}
|
|
7183
|
-
function
|
|
7183
|
+
function Zf() {
|
|
7184
7184
|
return /* @__PURE__ */ f(
|
|
7185
7185
|
"section",
|
|
7186
7186
|
{
|
|
@@ -7209,7 +7209,7 @@ const od = {
|
|
|
7209
7209
|
remainingBalance: "Remaining Balance",
|
|
7210
7210
|
amountReceived: "Amount Received:"
|
|
7211
7211
|
};
|
|
7212
|
-
function
|
|
7212
|
+
function Jf({
|
|
7213
7213
|
totalAmount: e,
|
|
7214
7214
|
remainingBalance: t,
|
|
7215
7215
|
amountReceived: n,
|
|
@@ -7348,7 +7348,7 @@ const gd = {
|
|
|
7348
7348
|
const t = e % 100 >= 11 && e % 100 <= 13 ? "th" : e % 10 === 1 ? "st" : e % 10 === 2 ? "nd" : e % 10 === 3 ? "rd" : "th";
|
|
7349
7349
|
return `${e}${t}`;
|
|
7350
7350
|
};
|
|
7351
|
-
function
|
|
7351
|
+
function Xf({
|
|
7352
7352
|
mode: e,
|
|
7353
7353
|
donationAmount: t,
|
|
7354
7354
|
currency: n = "USD",
|
|
@@ -7389,13 +7389,13 @@ function Zf({
|
|
|
7389
7389
|
] }) : void 0, re = (le) => {
|
|
7390
7390
|
le !== z && (e || O(le), N?.(le), le === "manual" && i.length === 0 && $([Zr()]));
|
|
7391
7391
|
}, se = (le, Fe) => {
|
|
7392
|
-
i.find((Ne) => Ne.id === le)?.status !== "
|
|
7392
|
+
i.find((Ne) => Ne.id === le)?.status !== "paid" && $(
|
|
7393
7393
|
i.map((Ne) => Ne.id === le ? { ...Ne, ...Fe } : Ne)
|
|
7394
7394
|
);
|
|
7395
7395
|
}, G = () => {
|
|
7396
7396
|
$([...i, Zr()]);
|
|
7397
7397
|
}, B = (le) => {
|
|
7398
|
-
i.find((Ee) => Ee.id === le)?.status !== "
|
|
7398
|
+
i.find((Ee) => Ee.id === le)?.status !== "paid" && $(i.filter((Ee) => Ee.id !== le));
|
|
7399
7399
|
}, K = () => {
|
|
7400
7400
|
if (!S) {
|
|
7401
7401
|
if (Z) {
|
|
@@ -7717,7 +7717,7 @@ function Ad({
|
|
|
7717
7717
|
{
|
|
7718
7718
|
variant: "bordered",
|
|
7719
7719
|
"aria-label": `${n.dueDate} ${u + 1}`,
|
|
7720
|
-
isDisabled: d.status === "
|
|
7720
|
+
isDisabled: d.status === "paid",
|
|
7721
7721
|
isInvalid: h,
|
|
7722
7722
|
errorMessage: h ? n.dateOrderError : void 0,
|
|
7723
7723
|
value: Yt(d.dueDate),
|
|
@@ -7733,7 +7733,7 @@ function Ad({
|
|
|
7733
7733
|
type: "number",
|
|
7734
7734
|
min: 0,
|
|
7735
7735
|
step: 0.01,
|
|
7736
|
-
isDisabled: d.status === "
|
|
7736
|
+
isDisabled: d.status === "paid",
|
|
7737
7737
|
isInvalid: x,
|
|
7738
7738
|
errorMessage: x ? n.amountGreaterThanZeroError : void 0,
|
|
7739
7739
|
value: String(d.amount || ""),
|
|
@@ -7749,7 +7749,7 @@ function Ad({
|
|
|
7749
7749
|
Dd,
|
|
7750
7750
|
{
|
|
7751
7751
|
isDisabled: t.length <= 1,
|
|
7752
|
-
|
|
7752
|
+
isPaid: d.status === "paid",
|
|
7753
7753
|
label: n.deleteInstallment,
|
|
7754
7754
|
onRemove: () => o(d.id)
|
|
7755
7755
|
}
|
|
@@ -7759,7 +7759,7 @@ function Ad({
|
|
|
7759
7759
|
}
|
|
7760
7760
|
function Dd({
|
|
7761
7761
|
isDisabled: e,
|
|
7762
|
-
|
|
7762
|
+
isPaid: t,
|
|
7763
7763
|
label: n,
|
|
7764
7764
|
onRemove: r
|
|
7765
7765
|
}) {
|
|
@@ -7778,7 +7778,7 @@ function Dd({
|
|
|
7778
7778
|
children: /* @__PURE__ */ a(U, { icon: "solar:trash-bin-minimalistic-outline", className: "size-5" })
|
|
7779
7779
|
}
|
|
7780
7780
|
);
|
|
7781
|
-
return t ? /* @__PURE__ */ a(Oe, { content: "This payment cannot be edited or deleted because it has already been
|
|
7781
|
+
return t ? /* @__PURE__ */ a(Oe, { content: "This payment cannot be edited or deleted because it has already been paid.", placement: "top", children: /* @__PURE__ */ a("span", { className: "inline-flex", children: i }) }) : i;
|
|
7782
7782
|
}
|
|
7783
7783
|
function Ed({
|
|
7784
7784
|
total: e,
|
|
@@ -7828,7 +7828,7 @@ function Ed({
|
|
|
7828
7828
|
}
|
|
7829
7829
|
);
|
|
7830
7830
|
}
|
|
7831
|
-
function
|
|
7831
|
+
function em() {
|
|
7832
7832
|
return /* @__PURE__ */ f(
|
|
7833
7833
|
"section",
|
|
7834
7834
|
{
|
|
@@ -7866,17 +7866,23 @@ function Jf() {
|
|
|
7866
7866
|
);
|
|
7867
7867
|
}
|
|
7868
7868
|
const Xr = {
|
|
7869
|
-
|
|
7870
|
-
|
|
7869
|
+
paid: "bg-emerald-50 text-emerald-700",
|
|
7870
|
+
schedule: "bg-blue-50 text-blue-700",
|
|
7871
|
+
payment_due: "bg-amber-50 text-amber-700",
|
|
7872
|
+
overdue: "bg-orange-50 text-orange-700",
|
|
7871
7873
|
failed: "bg-red-50 text-red-700",
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
+
refunded: "bg-zinc-100 text-zinc-600",
|
|
7875
|
+
disputed: "bg-purple-50 text-purple-700",
|
|
7876
|
+
canceled: "bg-zinc-100 text-zinc-600"
|
|
7874
7877
|
}, wi = {
|
|
7875
|
-
|
|
7876
|
-
|
|
7878
|
+
paid: "Paid",
|
|
7879
|
+
schedule: "Schedule",
|
|
7880
|
+
payment_due: "Payment Due",
|
|
7881
|
+
overdue: "Overdue",
|
|
7877
7882
|
failed: "Failed",
|
|
7878
|
-
|
|
7879
|
-
|
|
7883
|
+
refunded: "Refunded",
|
|
7884
|
+
disputed: "Disputed",
|
|
7885
|
+
canceled: "Canceled"
|
|
7880
7886
|
}, Id = {
|
|
7881
7887
|
title: "Payments",
|
|
7882
7888
|
searchLabel: "Search a payment",
|
|
@@ -7905,7 +7911,7 @@ const Xr = {
|
|
|
7905
7911
|
wrapper: "!absolute !inset-0 !z-50 !items-center !justify-center !p-4",
|
|
7906
7912
|
backdrop: "!absolute !inset-0 !z-40 rounded-2xl"
|
|
7907
7913
|
};
|
|
7908
|
-
function
|
|
7914
|
+
function tm({
|
|
7909
7915
|
installments: e,
|
|
7910
7916
|
currency: t,
|
|
7911
7917
|
locale: n = "en-US",
|
|
@@ -7924,7 +7930,7 @@ function Xf({
|
|
|
7924
7930
|
] }) : void 0, k = ce(() => {
|
|
7925
7931
|
const y = w.trim().toLowerCase();
|
|
7926
7932
|
return y ? e.filter((v) => {
|
|
7927
|
-
const E = v.status ?? "
|
|
7933
|
+
const E = v.status ?? "schedule";
|
|
7928
7934
|
return [
|
|
7929
7935
|
v.id,
|
|
7930
7936
|
v.amount,
|
|
@@ -7980,7 +7986,7 @@ function Xf({
|
|
|
7980
7986
|
),
|
|
7981
7987
|
children: /* @__PURE__ */ f("div", { className: "flex flex-col gap-2", children: [
|
|
7982
7988
|
k.map((y, v) => {
|
|
7983
|
-
const E = y.status ?? "
|
|
7989
|
+
const E = y.status ?? "schedule";
|
|
7984
7990
|
return /* @__PURE__ */ a(ye, { radius: "lg", shadow: "none", className: "border border-default-200", children: /* @__PURE__ */ f(we, { className: "gap-3 p-3", children: [
|
|
7985
7991
|
/* @__PURE__ */ f("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7986
7992
|
/* @__PURE__ */ f("div", { className: "min-w-0", children: [
|
|
@@ -8045,7 +8051,7 @@ function Xf({
|
|
|
8045
8051
|
] }) }),
|
|
8046
8052
|
/* @__PURE__ */ f("tbody", { children: [
|
|
8047
8053
|
k.map((y, v) => {
|
|
8048
|
-
const E = y.status ?? "
|
|
8054
|
+
const E = y.status ?? "schedule";
|
|
8049
8055
|
return /* @__PURE__ */ f("tr", { className: "text-zinc-500", children: [
|
|
8050
8056
|
/* @__PURE__ */ a("td", { className: "px-2 py-3", children: v + 1 }),
|
|
8051
8057
|
/* @__PURE__ */ a("td", { className: "overflow-hidden px-2 py-3", children: /* @__PURE__ */ a("span", { className: "block w-full truncate", children: y.id || `PMT-${v + 1}` }) }),
|
|
@@ -8110,7 +8116,7 @@ function ea({ status: e }) {
|
|
|
8110
8116
|
radius: "lg",
|
|
8111
8117
|
className: g(
|
|
8112
8118
|
"justify-center px-4",
|
|
8113
|
-
Xr[e] ?? Xr.
|
|
8119
|
+
Xr[e] ?? Xr.schedule
|
|
8114
8120
|
),
|
|
8115
8121
|
startContent: /* @__PURE__ */ a(Ld, { status: e }),
|
|
8116
8122
|
children: wi[e] ?? e
|
|
@@ -8135,7 +8141,7 @@ function ta({
|
|
|
8135
8141
|
variant: "solid",
|
|
8136
8142
|
radius: "full",
|
|
8137
8143
|
className: "min-w-[104px] shrink-0",
|
|
8138
|
-
isDisabled: e === "
|
|
8144
|
+
isDisabled: e === "paid",
|
|
8139
8145
|
startContent: /* @__PURE__ */ a(
|
|
8140
8146
|
U,
|
|
8141
8147
|
{
|
|
@@ -8150,7 +8156,7 @@ function ta({
|
|
|
8150
8156
|
/* @__PURE__ */ a(
|
|
8151
8157
|
Fd,
|
|
8152
8158
|
{
|
|
8153
|
-
isFulfilled: e === "
|
|
8159
|
+
isFulfilled: e === "paid",
|
|
8154
8160
|
labels: n,
|
|
8155
8161
|
portalContainer: r,
|
|
8156
8162
|
onDelete: () => s(t.id)
|
|
@@ -8239,7 +8245,7 @@ function Fd({
|
|
|
8239
8245
|
] });
|
|
8240
8246
|
}
|
|
8241
8247
|
function Ld({ status: e }) {
|
|
8242
|
-
return e === "
|
|
8248
|
+
return e === "paid" ? /* @__PURE__ */ a(U, { icon: "solar:check-circle-bold", className: "size-3" }) : e === "failed" ? /* @__PURE__ */ a(U, { icon: "solar:close-circle-bold", className: "size-3" }) : /* @__PURE__ */ a(U, { icon: "solar:calendar-outline", className: "size-3" });
|
|
8243
8249
|
}
|
|
8244
8250
|
function dn(e, t) {
|
|
8245
8251
|
const n = /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
@@ -8253,7 +8259,7 @@ const Td = {
|
|
|
8253
8259
|
title: "Select Membership",
|
|
8254
8260
|
renewalTitle: "Automatic Renewal",
|
|
8255
8261
|
renewalDescription: "Membership will automatically renew at the end of each period"
|
|
8256
|
-
},
|
|
8262
|
+
}, nm = ({
|
|
8257
8263
|
cards: e,
|
|
8258
8264
|
locale: t,
|
|
8259
8265
|
currency: n,
|
|
@@ -9041,7 +9047,7 @@ const Hd = ({ title: e, value: t, description: n, onValueChange: r, className: i
|
|
|
9041
9047
|
}
|
|
9042
9048
|
)
|
|
9043
9049
|
] });
|
|
9044
|
-
},
|
|
9050
|
+
}, rm = ({
|
|
9045
9051
|
initialExpanded: e = !1,
|
|
9046
9052
|
userMaxLimit: t,
|
|
9047
9053
|
labels: n,
|
|
@@ -9464,6 +9470,31 @@ const du = {
|
|
|
9464
9470
|
}
|
|
9465
9471
|
);
|
|
9466
9472
|
uu.displayName = "StatusChip";
|
|
9473
|
+
const fu = {
|
|
9474
|
+
sm: "gap-1 rounded-md px-2 py-0.5 text-[11.5px] leading-normal",
|
|
9475
|
+
md: "gap-1.5 rounded-lg px-2.5 py-1 text-xs leading-normal"
|
|
9476
|
+
}, mu = ({
|
|
9477
|
+
label: e,
|
|
9478
|
+
value: t,
|
|
9479
|
+
size: n = "sm",
|
|
9480
|
+
className: r,
|
|
9481
|
+
"data-testid": i = "dimension-chip"
|
|
9482
|
+
}) => /* @__PURE__ */ f(
|
|
9483
|
+
"span",
|
|
9484
|
+
{
|
|
9485
|
+
"data-testid": i,
|
|
9486
|
+
className: g(
|
|
9487
|
+
"inline-flex items-baseline whitespace-nowrap border border-default-200 bg-default-100",
|
|
9488
|
+
fu[n],
|
|
9489
|
+
r
|
|
9490
|
+
),
|
|
9491
|
+
children: [
|
|
9492
|
+
/* @__PURE__ */ a("span", { className: "font-medium text-default-400", children: e }),
|
|
9493
|
+
/* @__PURE__ */ a("span", { className: "font-semibold text-default-700", children: t })
|
|
9494
|
+
]
|
|
9495
|
+
}
|
|
9496
|
+
);
|
|
9497
|
+
mu.displayName = "DimensionChip";
|
|
9467
9498
|
const $i = {
|
|
9468
9499
|
2: "sm:grid-cols-2",
|
|
9469
9500
|
3: "sm:grid-cols-3",
|
|
@@ -9471,7 +9502,7 @@ const $i = {
|
|
|
9471
9502
|
}, Ai = {
|
|
9472
9503
|
1: "grid-cols-1",
|
|
9473
9504
|
2: "grid-cols-2"
|
|
9474
|
-
},
|
|
9505
|
+
}, hu = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 16, height: 16, "aria-hidden": "true", className: "text-gray-400" }) : e, pu = ({
|
|
9475
9506
|
options: e,
|
|
9476
9507
|
selectedKeys: t,
|
|
9477
9508
|
onChange: n,
|
|
@@ -9549,7 +9580,7 @@ const $i = {
|
|
|
9549
9580
|
),
|
|
9550
9581
|
/* @__PURE__ */ f("span", { className: "flex min-w-0 flex-col", children: [
|
|
9551
9582
|
/* @__PURE__ */ f("span", { className: "flex items-center gap-1.5", children: [
|
|
9552
|
-
v.icon ?
|
|
9583
|
+
v.icon ? hu(v.icon) : null,
|
|
9553
9584
|
/* @__PURE__ */ a("span", { className: "text-sm font-medium text-gray-900", children: v.label })
|
|
9554
9585
|
] }),
|
|
9555
9586
|
v.description ? /* @__PURE__ */ a(
|
|
@@ -9585,8 +9616,8 @@ const $i = {
|
|
|
9585
9616
|
}
|
|
9586
9617
|
);
|
|
9587
9618
|
};
|
|
9588
|
-
|
|
9589
|
-
const
|
|
9619
|
+
pu.displayName = "CheckboxCardGroup";
|
|
9620
|
+
const gu = ({
|
|
9590
9621
|
isLoading: e = !1,
|
|
9591
9622
|
isError: t = !1,
|
|
9592
9623
|
isEmpty: n = !1,
|
|
@@ -9645,14 +9676,14 @@ const hu = ({
|
|
|
9645
9676
|
}
|
|
9646
9677
|
);
|
|
9647
9678
|
};
|
|
9648
|
-
|
|
9649
|
-
const
|
|
9679
|
+
gu.displayName = "ListPanel";
|
|
9680
|
+
const bu = 350, yu = {
|
|
9650
9681
|
receivedLabel: "Cash Received",
|
|
9651
9682
|
receivedPlaceholder: "$0.00",
|
|
9652
9683
|
changeLabel: "Change",
|
|
9653
9684
|
changeMessageTemplate: "You have to give back the client {change} in change",
|
|
9654
9685
|
insufficientMessageTemplate: "Amount received must be at least {due}"
|
|
9655
|
-
}, mn = (e, t) => Object.entries(t).reduce((n, [r, i]) => n.replace(`{${r}}`, i), e),
|
|
9686
|
+
}, mn = (e, t) => Object.entries(t).reduce((n, [r, i]) => n.replace(`{${r}}`, i), e), am = ({
|
|
9656
9687
|
dueAmount: e,
|
|
9657
9688
|
received: t,
|
|
9658
9689
|
defaultReceived: n = null,
|
|
@@ -9665,7 +9696,7 @@ const pu = 350, gu = {
|
|
|
9665
9696
|
className: d,
|
|
9666
9697
|
"data-testid": u = "cash-tender-form"
|
|
9667
9698
|
}) => {
|
|
9668
|
-
const h = { ...
|
|
9699
|
+
const h = { ...yu, ...s }, x = Ha(e.currency, i), m = t !== void 0, [w, S] = W(n ?? null), b = m ? t : w, N = ce(() => {
|
|
9669
9700
|
const L = typeof b == "number" && Number.isFinite(b) ? b : 0, _ = Cr(L, e.value, e.currency, i);
|
|
9670
9701
|
return {
|
|
9671
9702
|
received: L,
|
|
@@ -9695,7 +9726,7 @@ const pu = 350, gu = {
|
|
|
9695
9726
|
), y = b == null ? "" : String(b), v = N.isValid && N.change > 0, E = !N.isValid && N.received > 0, F = et(N.change, i, e.currency), O = et(e.value, i, e.currency), [A, z] = W(""), M = Pe(null);
|
|
9696
9727
|
De(() => {
|
|
9697
9728
|
M.current && clearTimeout(M.current);
|
|
9698
|
-
const L = v ? mn(h.changeMessageTemplate, { change: F }) : "", _ = v ?
|
|
9729
|
+
const L = v ? mn(h.changeMessageTemplate, { change: F }) : "", _ = v ? bu : 0;
|
|
9699
9730
|
return M.current = setTimeout(() => z(L), _), () => {
|
|
9700
9731
|
M.current && clearTimeout(M.current);
|
|
9701
9732
|
};
|
|
@@ -9763,7 +9794,7 @@ const pu = 350, gu = {
|
|
|
9763
9794
|
),
|
|
9764
9795
|
/* @__PURE__ */ a("span", { role: "status", "aria-live": "polite", className: "sr-only", children: A })
|
|
9765
9796
|
] });
|
|
9766
|
-
},
|
|
9797
|
+
}, xu = {
|
|
9767
9798
|
checkNumberLabel: "Check Number",
|
|
9768
9799
|
checkNumberPlaceholder: "e.g. 11234",
|
|
9769
9800
|
bankNameLabel: "Bank Name",
|
|
@@ -9773,7 +9804,7 @@ const pu = 350, gu = {
|
|
|
9773
9804
|
}, la = () => {
|
|
9774
9805
|
const e = /* @__PURE__ */ new Date(), t = (n) => String(n).padStart(2, "0");
|
|
9775
9806
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`;
|
|
9776
|
-
},
|
|
9807
|
+
}, vu = ({
|
|
9777
9808
|
dueAmount: e,
|
|
9778
9809
|
value: t,
|
|
9779
9810
|
defaultValue: n,
|
|
@@ -9791,7 +9822,7 @@ const pu = 350, gu = {
|
|
|
9791
9822
|
className: h,
|
|
9792
9823
|
"data-testid": x = "check-tender-form"
|
|
9793
9824
|
}) => {
|
|
9794
|
-
const m = { ...
|
|
9825
|
+
const m = { ...xu, ...i }, w = t !== void 0, [S, b] = W({
|
|
9795
9826
|
checkNumber: n?.checkNumber ?? "",
|
|
9796
9827
|
bankName: n?.bankName ?? "",
|
|
9797
9828
|
date: n?.date ?? la()
|
|
@@ -9883,8 +9914,8 @@ const pu = 350, gu = {
|
|
|
9883
9914
|
)
|
|
9884
9915
|
] });
|
|
9885
9916
|
};
|
|
9886
|
-
|
|
9887
|
-
const
|
|
9917
|
+
vu.displayName = "CheckTenderForm";
|
|
9918
|
+
const wu = {
|
|
9888
9919
|
// "Method" (not "Payment Method") because the orchestrator chrome
|
|
9889
9920
|
// typically renders a "Payment Method" heading right above this
|
|
9890
9921
|
// form's section — using the shorter label avoids the duplicate.
|
|
@@ -9893,15 +9924,15 @@ const xu = {
|
|
|
9893
9924
|
referenceLabel: "Reference",
|
|
9894
9925
|
referencePlaceholder: "e.g. Voucher #1234",
|
|
9895
9926
|
methodRequiredMessage: "Method is required"
|
|
9896
|
-
},
|
|
9927
|
+
}, Nu = [
|
|
9897
9928
|
{ value: "ach", label: "ACH" },
|
|
9898
9929
|
{ value: "wire", label: "Wire" },
|
|
9899
9930
|
{ value: "gift_card", label: "Gift Card" },
|
|
9900
9931
|
{ value: "voucher", label: "Voucher" },
|
|
9901
9932
|
{ value: "other", label: "Other" }
|
|
9902
|
-
],
|
|
9933
|
+
], ku = ({
|
|
9903
9934
|
dueAmount: e,
|
|
9904
|
-
methodOptions: t =
|
|
9935
|
+
methodOptions: t = Nu,
|
|
9905
9936
|
value: n,
|
|
9906
9937
|
defaultValue: r,
|
|
9907
9938
|
onChange: i,
|
|
@@ -9914,7 +9945,7 @@ const xu = {
|
|
|
9914
9945
|
className: c,
|
|
9915
9946
|
"data-testid": d = "other-tender-form"
|
|
9916
9947
|
}) => {
|
|
9917
|
-
const u = { ...
|
|
9948
|
+
const u = { ...wu, ...s }, h = n !== void 0, [x, m] = W({
|
|
9918
9949
|
method: r?.method ?? "",
|
|
9919
9950
|
reference: r?.reference ?? ""
|
|
9920
9951
|
}), w = ce(
|
|
@@ -10016,8 +10047,8 @@ const xu = {
|
|
|
10016
10047
|
)
|
|
10017
10048
|
] });
|
|
10018
10049
|
};
|
|
10019
|
-
|
|
10020
|
-
const
|
|
10050
|
+
ku.displayName = "OtherTenderForm";
|
|
10051
|
+
const Cu = {
|
|
10021
10052
|
collectedHeading: "Collected",
|
|
10022
10053
|
remainingLabel: "Remaining:",
|
|
10023
10054
|
completeLabel: "Complete",
|
|
@@ -10026,16 +10057,16 @@ const Nu = {
|
|
|
10026
10057
|
statusPending: "Pending",
|
|
10027
10058
|
statusRecorded: "Approved",
|
|
10028
10059
|
statusFailed: "Failed"
|
|
10029
|
-
},
|
|
10060
|
+
}, Su = {
|
|
10030
10061
|
card: "lucide:credit-card",
|
|
10031
10062
|
cash: "lucide:dollar-sign",
|
|
10032
10063
|
check: "lucide:edit-3",
|
|
10033
10064
|
other: "lucide:more-horizontal"
|
|
10034
|
-
},
|
|
10065
|
+
}, $u = {
|
|
10035
10066
|
pending: "warning",
|
|
10036
10067
|
recorded: "success",
|
|
10037
10068
|
failed: "danger"
|
|
10038
|
-
},
|
|
10069
|
+
}, Au = (e) => e === "pending" || e === "recorded", Du = (e) => `#${e + 1}`, Eu = ({
|
|
10039
10070
|
total: e,
|
|
10040
10071
|
tenders: t,
|
|
10041
10072
|
onRemove: n,
|
|
@@ -10045,8 +10076,8 @@ const Nu = {
|
|
|
10045
10076
|
className: o,
|
|
10046
10077
|
"data-testid": l = "split-payment-summary"
|
|
10047
10078
|
}) => {
|
|
10048
|
-
const c = { ...
|
|
10049
|
-
const m = t.reduce((S, b) =>
|
|
10079
|
+
const c = { ...Cu, ...i }, { collected: d, remaining: u, isComplete: h } = ce(() => {
|
|
10080
|
+
const m = t.reduce((S, b) => Au(b.status) ? S + b.amount : S, 0), w = Math.max(e.value - m, 0);
|
|
10050
10081
|
return {
|
|
10051
10082
|
collected: m,
|
|
10052
10083
|
remaining: w,
|
|
@@ -10075,7 +10106,7 @@ const Nu = {
|
|
|
10075
10106
|
!s && t.length > 0 && /* @__PURE__ */ f("div", { className: "flex flex-col gap-2", "data-testid": `${l}-collected-list`, children: [
|
|
10076
10107
|
/* @__PURE__ */ a("h3", { className: "text-base font-semibold", children: c.collectedHeading }),
|
|
10077
10108
|
t.map((m, w) => /* @__PURE__ */ a(
|
|
10078
|
-
|
|
10109
|
+
Iu,
|
|
10079
10110
|
{
|
|
10080
10111
|
index: w,
|
|
10081
10112
|
tender: m,
|
|
@@ -10093,8 +10124,8 @@ const Nu = {
|
|
|
10093
10124
|
] })
|
|
10094
10125
|
] });
|
|
10095
10126
|
};
|
|
10096
|
-
|
|
10097
|
-
const
|
|
10127
|
+
Eu.displayName = "SplitPaymentSummary";
|
|
10128
|
+
const Iu = ({
|
|
10098
10129
|
index: e,
|
|
10099
10130
|
tender: t,
|
|
10100
10131
|
locale: n,
|
|
@@ -10129,11 +10160,11 @@ const Du = ({
|
|
|
10129
10160
|
className: "flex items-center gap-3 rounded-xl bg-default-50 px-4 py-3 motion-safe:animate-[pp-row-in_200ms_ease-out]",
|
|
10130
10161
|
"data-testid": d,
|
|
10131
10162
|
children: [
|
|
10132
|
-
/* @__PURE__ */ a("span", { className: "text-sm font-medium text-default-500 w-6 shrink-0", children:
|
|
10163
|
+
/* @__PURE__ */ a("span", { className: "text-sm font-medium text-default-500 w-6 shrink-0", children: Du(e) }),
|
|
10133
10164
|
/* @__PURE__ */ a(
|
|
10134
10165
|
U,
|
|
10135
10166
|
{
|
|
10136
|
-
icon:
|
|
10167
|
+
icon: Su[t.type],
|
|
10137
10168
|
width: 20,
|
|
10138
10169
|
height: 20,
|
|
10139
10170
|
className: "text-default-700 shrink-0",
|
|
@@ -10148,7 +10179,7 @@ const Du = ({
|
|
|
10148
10179
|
size: "sm",
|
|
10149
10180
|
radius: "full",
|
|
10150
10181
|
variant: "flat",
|
|
10151
|
-
color:
|
|
10182
|
+
color: $u[t.status],
|
|
10152
10183
|
startContent: t.status === "recorded" ? /* @__PURE__ */ a(U, { icon: "lucide:check-circle", width: 14, height: 14, "aria-hidden": "true" }) : t.status === "failed" ? /* @__PURE__ */ a(U, { icon: "lucide:alert-circle", width: 14, height: 14, "aria-hidden": "true" }) : void 0,
|
|
10153
10184
|
"data-testid": `${d}-status`,
|
|
10154
10185
|
children: o
|
|
@@ -10158,7 +10189,7 @@ const Du = ({
|
|
|
10158
10189
|
]
|
|
10159
10190
|
}
|
|
10160
10191
|
);
|
|
10161
|
-
},
|
|
10192
|
+
}, Mu = `
|
|
10162
10193
|
@keyframes pp-modal-in {
|
|
10163
10194
|
from { opacity: 0; transform: scale(0.96); }
|
|
10164
10195
|
to { opacity: 1; transform: scale(1); }
|
|
@@ -10183,9 +10214,9 @@ const Du = ({
|
|
|
10183
10214
|
from { opacity: 0; transform: translateY(-6px); }
|
|
10184
10215
|
to { opacity: 1; transform: translateY(0); }
|
|
10185
10216
|
}
|
|
10186
|
-
`,
|
|
10217
|
+
`, Fu = q.forwardRef(
|
|
10187
10218
|
({ children: e, relativeOverlayRoot: t = !0, className: n, style: r, "data-testid": i = "modal-shell" }, s) => /* @__PURE__ */ f(be, { children: [
|
|
10188
|
-
/* @__PURE__ */ a("style", { children:
|
|
10219
|
+
/* @__PURE__ */ a("style", { children: Mu }),
|
|
10189
10220
|
/* @__PURE__ */ a(
|
|
10190
10221
|
"div",
|
|
10191
10222
|
{
|
|
@@ -10224,8 +10255,8 @@ const Du = ({
|
|
|
10224
10255
|
)
|
|
10225
10256
|
] })
|
|
10226
10257
|
);
|
|
10227
|
-
|
|
10228
|
-
const
|
|
10258
|
+
Fu.displayName = "ModalShell";
|
|
10259
|
+
const Lu = ({
|
|
10229
10260
|
title: e,
|
|
10230
10261
|
onClose: t,
|
|
10231
10262
|
closeLabel: n = "Close",
|
|
@@ -10251,8 +10282,8 @@ const Mu = ({
|
|
|
10251
10282
|
)
|
|
10252
10283
|
] })
|
|
10253
10284
|
] });
|
|
10254
|
-
|
|
10255
|
-
const
|
|
10285
|
+
Lu.displayName = "ModalShellHeader";
|
|
10286
|
+
const Tu = ({
|
|
10256
10287
|
children: e,
|
|
10257
10288
|
columns: t = 2,
|
|
10258
10289
|
className: n,
|
|
@@ -10286,8 +10317,8 @@ const Fu = ({
|
|
|
10286
10317
|
children: e
|
|
10287
10318
|
}
|
|
10288
10319
|
);
|
|
10289
|
-
|
|
10290
|
-
const hn = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 20, height: 20, "aria-hidden": "true" }) : e,
|
|
10320
|
+
Tu.displayName = "ModalShellFooter";
|
|
10321
|
+
const hn = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width: 20, height: 20, "aria-hidden": "true" }) : e, _u = ({
|
|
10291
10322
|
options: e,
|
|
10292
10323
|
selectedKey: t,
|
|
10293
10324
|
onSelect: n,
|
|
@@ -10406,8 +10437,8 @@ const hn = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, width:
|
|
|
10406
10437
|
)
|
|
10407
10438
|
] });
|
|
10408
10439
|
};
|
|
10409
|
-
|
|
10410
|
-
const
|
|
10440
|
+
_u.displayName = "TileSelect";
|
|
10441
|
+
const Ou = {
|
|
10411
10442
|
subtle: {
|
|
10412
10443
|
wrapper: "bg-default-100",
|
|
10413
10444
|
amount: "text-default-900"
|
|
@@ -10416,7 +10447,7 @@ const Tu = {
|
|
|
10416
10447
|
wrapper: "bg-success-50 text-success-700",
|
|
10417
10448
|
amount: "text-success-700"
|
|
10418
10449
|
}
|
|
10419
|
-
},
|
|
10450
|
+
}, Pu = ({
|
|
10420
10451
|
total: e,
|
|
10421
10452
|
label: t,
|
|
10422
10453
|
locale: n = "en-US",
|
|
@@ -10424,7 +10455,7 @@ const Tu = {
|
|
|
10424
10455
|
className: i,
|
|
10425
10456
|
"data-testid": s = "payment-total-banner"
|
|
10426
10457
|
}) => {
|
|
10427
|
-
const o =
|
|
10458
|
+
const o = Ou[r];
|
|
10428
10459
|
return /* @__PURE__ */ f(
|
|
10429
10460
|
"div",
|
|
10430
10461
|
{
|
|
@@ -10444,8 +10475,8 @@ const Tu = {
|
|
|
10444
10475
|
}
|
|
10445
10476
|
);
|
|
10446
10477
|
};
|
|
10447
|
-
|
|
10448
|
-
const
|
|
10478
|
+
Pu.displayName = "PaymentTotalBanner";
|
|
10479
|
+
const zu = {
|
|
10449
10480
|
// ~70% white + slight blur — matches Type=Processing.png design:
|
|
10450
10481
|
// the form behind (tabs, fields, totals) stays VISIBLY dimmed
|
|
10451
10482
|
// instead of being almost-fully-occluded. Gives the cashier a
|
|
@@ -10453,7 +10484,7 @@ const Ou = {
|
|
|
10453
10484
|
// clear the modal is busy.
|
|
10454
10485
|
white: "bg-white/70 backdrop-blur-sm",
|
|
10455
10486
|
transparent: "bg-transparent"
|
|
10456
|
-
},
|
|
10487
|
+
}, Ru = ({
|
|
10457
10488
|
title: e,
|
|
10458
10489
|
subtitle: t,
|
|
10459
10490
|
backdrop: n = "white",
|
|
@@ -10470,7 +10501,7 @@ const Ou = {
|
|
|
10470
10501
|
"data-state": r ? "exiting" : "visible",
|
|
10471
10502
|
className: g(
|
|
10472
10503
|
"absolute inset-0 z-10 flex flex-col items-center justify-center gap-4 rounded-3xl",
|
|
10473
|
-
|
|
10504
|
+
zu[n],
|
|
10474
10505
|
// Two animation modes:
|
|
10475
10506
|
// visible → fade-in entrance (150ms).
|
|
10476
10507
|
// exiting → fade-out + non-interactive; `forwards` fill
|
|
@@ -10496,7 +10527,7 @@ const Ou = {
|
|
|
10496
10527
|
]
|
|
10497
10528
|
}
|
|
10498
10529
|
);
|
|
10499
|
-
|
|
10530
|
+
Ru.displayName = "LoadingOverlay";
|
|
10500
10531
|
const Di = ({
|
|
10501
10532
|
cashChange: e,
|
|
10502
10533
|
label: t = "Cash to return",
|
|
@@ -10575,7 +10606,7 @@ const Di = ({
|
|
|
10575
10606
|
);
|
|
10576
10607
|
};
|
|
10577
10608
|
Di.displayName = "PaymentCashChangeBanner";
|
|
10578
|
-
const
|
|
10609
|
+
const Vu = ({
|
|
10579
10610
|
title: e,
|
|
10580
10611
|
subtitle: t,
|
|
10581
10612
|
emailLine: n,
|
|
@@ -10656,8 +10687,8 @@ const zu = ({
|
|
|
10656
10687
|
}
|
|
10657
10688
|
);
|
|
10658
10689
|
};
|
|
10659
|
-
|
|
10660
|
-
const
|
|
10690
|
+
Vu.displayName = "PaymentSuccessView";
|
|
10691
|
+
const Bu = ({
|
|
10661
10692
|
heading: e,
|
|
10662
10693
|
amountLabel: t,
|
|
10663
10694
|
value: n,
|
|
@@ -10722,8 +10753,8 @@ const Ru = ({
|
|
|
10722
10753
|
}
|
|
10723
10754
|
);
|
|
10724
10755
|
};
|
|
10725
|
-
|
|
10726
|
-
const
|
|
10756
|
+
Bu.displayName = "PaymentSubAmountInput";
|
|
10757
|
+
const Uu = {
|
|
10727
10758
|
danger: {
|
|
10728
10759
|
tile: "bg-danger-50 text-danger-600",
|
|
10729
10760
|
icon: "solar:danger-circle-outline",
|
|
@@ -10734,7 +10765,7 @@ const Vu = {
|
|
|
10734
10765
|
icon: "solar:danger-triangle-outline",
|
|
10735
10766
|
confirmColor: "warning"
|
|
10736
10767
|
}
|
|
10737
|
-
},
|
|
10768
|
+
}, ju = (e) => typeof e == "string" ? /* @__PURE__ */ a(U, { icon: e, className: "size-5", "aria-hidden": "true" }) : e, Hu = ({
|
|
10738
10769
|
isOpen: e,
|
|
10739
10770
|
title: t,
|
|
10740
10771
|
confirmLabel: n,
|
|
@@ -10751,7 +10782,7 @@ const Vu = {
|
|
|
10751
10782
|
icon: m,
|
|
10752
10783
|
"data-testid": w = "confirm-dialog"
|
|
10753
10784
|
}) => {
|
|
10754
|
-
const S = s ?? o ?? null, b =
|
|
10785
|
+
const S = s ?? o ?? null, b = Uu[c], N = x ? null : ju(m ?? b.icon);
|
|
10755
10786
|
return /* @__PURE__ */ a(
|
|
10756
10787
|
Tn,
|
|
10757
10788
|
{
|
|
@@ -10821,14 +10852,14 @@ const Vu = {
|
|
|
10821
10852
|
}
|
|
10822
10853
|
);
|
|
10823
10854
|
};
|
|
10824
|
-
|
|
10825
|
-
const
|
|
10855
|
+
Hu.displayName = "ConfirmDialog";
|
|
10856
|
+
const qu = 60, Wu = (e, t, n = qu) => t ? e > n : e < -n, Ei = (e, t) => Math.max(0, Math.min(e, t)), Yu = 160, Gu = (e, t, n = Yu) => Math.min(e, Math.max(0, t - n)), Ku = (e, t, n) => Ei(e - t, n), Qu = (e, t, n) => e !== null ? Ei(e, n) : t ? n : 0, Zu = (e) => e ? "" : "transition-[height] duration-300 ease-out", Ju = (e) => ({
|
|
10826
10857
|
onDrag: (t, n) => {
|
|
10827
10858
|
const r = e.open ? e.fullHeight : 0;
|
|
10828
|
-
e.setDragHeight(
|
|
10859
|
+
e.setDragHeight(Ku(r, n?.offset?.y ?? 0, e.fullHeight));
|
|
10829
10860
|
},
|
|
10830
10861
|
onDragEnd: (t, n) => {
|
|
10831
|
-
|
|
10862
|
+
Wu(n?.offset?.y ?? 0, e.open) && e.onToggleOpen?.(), e.setDragHeight(null);
|
|
10832
10863
|
}
|
|
10833
10864
|
}), tt = (e, t) => et(e.value, t, e.currency), sr = ({
|
|
10834
10865
|
item: e,
|
|
@@ -11264,14 +11295,14 @@ const Pi = ({
|
|
|
11264
11295
|
l && /* @__PURE__ */ a("div", { children: l })
|
|
11265
11296
|
] });
|
|
11266
11297
|
Pi.displayName = "SummaryActionBar";
|
|
11267
|
-
const
|
|
11268
|
-
const [t, n] = W(() =>
|
|
11298
|
+
const Xu = "(max-width: 767px)", ef = (e) => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(e).matches : !1, tf = (e = Xu) => {
|
|
11299
|
+
const [t, n] = W(() => ef(e));
|
|
11269
11300
|
return De(() => {
|
|
11270
11301
|
if (typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
11271
11302
|
const r = window.matchMedia(e), i = () => n(r.matches);
|
|
11272
11303
|
return i(), r.addEventListener("change", i), () => r.removeEventListener("change", i);
|
|
11273
11304
|
}, [e]), t;
|
|
11274
|
-
},
|
|
11305
|
+
}, nf = ({
|
|
11275
11306
|
title: e = "Summary",
|
|
11276
11307
|
pricesInLabel: t = "Prices are in",
|
|
11277
11308
|
currency: n,
|
|
@@ -11298,11 +11329,11 @@ const Zu = "(max-width: 767px)", Ju = (e) => typeof window < "u" && typeof windo
|
|
|
11298
11329
|
"data-testid": F = "summary",
|
|
11299
11330
|
className: O
|
|
11300
11331
|
}) => {
|
|
11301
|
-
const A = v?.removeAriaLabel ?? "Remove item", z = v?.toggleAriaLabel ?? "Toggle summary", M = v?.cartAriaLabel ?? "View cart", D =
|
|
11332
|
+
const A = v?.removeAriaLabel ?? "Remove item", z = v?.toggleAriaLabel ?? "Toggle summary", M = v?.cartAriaLabel ?? "View cart", D = tf(), _ = d ?? (k ?? (D ? "mobile" : "main")) === "mobile", [Z, j] = W(x), H = u !== void 0, X = !_ || (H ? u : Z), re = te(() => {
|
|
11302
11333
|
H || j((ee) => !ee), h?.();
|
|
11303
11334
|
}, [H, h]), [se, G] = W(0), [B, K] = W(null), J = Pe(null), de = Pe(null), le = te(() => {
|
|
11304
11335
|
const ee = J.current;
|
|
11305
|
-
ee && G(
|
|
11336
|
+
ee && G(Gu(ee.scrollHeight, window.innerHeight));
|
|
11306
11337
|
}, []), Fe = te(
|
|
11307
11338
|
(ee) => {
|
|
11308
11339
|
de.current?.disconnect(), de.current = null, J.current = ee, ee && (le(), typeof ResizeObserver < "u" && (de.current = new ResizeObserver(le), de.current.observe(ee)));
|
|
@@ -11310,7 +11341,7 @@ const Zu = "(max-width: 767px)", Ju = (e) => typeof window < "u" && typeof windo
|
|
|
11310
11341
|
[le]
|
|
11311
11342
|
);
|
|
11312
11343
|
De(() => (window.addEventListener("resize", le), () => window.removeEventListener("resize", le)), [le]);
|
|
11313
|
-
const Ee =
|
|
11344
|
+
const Ee = Ju({ open: X, fullHeight: se, setDragHeight: K, onToggleOpen: re }), Ne = B !== null, Be = Qu(B, X, se), Ue = se > 0 ? Math.min(1, Math.max(0, Be / se)) : X ? 1 : 0, rt = /* @__PURE__ */ a(Li, { total: l, locale: r, className: E.total }), je = c && /* @__PURE__ */ a(Ti, { secondaryTotal: c, locale: r, className: E.secondaryTotal }), Ge = N != null && /* @__PURE__ */ a(
|
|
11314
11345
|
"p",
|
|
11315
11346
|
{
|
|
11316
11347
|
"data-testid": "summary-cta-caption",
|
|
@@ -11387,7 +11418,7 @@ const Zu = "(max-width: 767px)", Ju = (e) => typeof window < "u" && typeof windo
|
|
|
11387
11418
|
"min-h-0",
|
|
11388
11419
|
X && !Ne ? "overflow-y-auto overscroll-contain [scrollbar-width:none] [&::-webkit-scrollbar]:hidden" : "overflow-hidden",
|
|
11389
11420
|
!X && "pointer-events-none",
|
|
11390
|
-
|
|
11421
|
+
Zu(Ne)
|
|
11391
11422
|
),
|
|
11392
11423
|
children: /* @__PURE__ */ f("div", { ref: Fe, className: "flex flex-col gap-4 pb-4", children: [
|
|
11393
11424
|
_e,
|
|
@@ -11443,54 +11474,55 @@ const Zu = "(max-width: 767px)", Ju = (e) => typeof window < "u" && typeof windo
|
|
|
11443
11474
|
}
|
|
11444
11475
|
);
|
|
11445
11476
|
};
|
|
11446
|
-
|
|
11477
|
+
nf.displayName = "Summary";
|
|
11447
11478
|
export {
|
|
11448
11479
|
Q as Button,
|
|
11449
|
-
|
|
11480
|
+
am as CashTenderForm,
|
|
11450
11481
|
Od as CatalogItemCard,
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11482
|
+
vu as CheckTenderForm,
|
|
11483
|
+
pu as CheckboxCardGroup,
|
|
11484
|
+
Jf as CommitmentDetails,
|
|
11485
|
+
Hu as ConfirmDialog,
|
|
11455
11486
|
ar as ConfirmationModal,
|
|
11456
|
-
|
|
11487
|
+
Rf as ConfirmationPageTemplate,
|
|
11457
11488
|
ja as DatePicker,
|
|
11489
|
+
mu as DimensionChip,
|
|
11458
11490
|
lo as DonationAmounts,
|
|
11459
11491
|
Ni as EmptyState,
|
|
11460
11492
|
ki as ErrorState,
|
|
11461
|
-
|
|
11462
|
-
|
|
11493
|
+
jf as EventDetails,
|
|
11494
|
+
Vf as EventDetailsTemplate,
|
|
11463
11495
|
fo as ExpireCartTimer,
|
|
11464
11496
|
$t as FeedbackState,
|
|
11465
11497
|
nu as FilterPopover,
|
|
11466
|
-
|
|
11467
|
-
|
|
11468
|
-
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11498
|
+
Bf as Footer,
|
|
11499
|
+
Pf as HeroUIProvider,
|
|
11500
|
+
Qf as InstallmentFundAssignment,
|
|
11501
|
+
Zf as InstallmentFundAssignmentSkeleton,
|
|
11502
|
+
Xf as InstallmentSchedule,
|
|
11503
|
+
em as InstallmentScheduleSkeleton,
|
|
11504
|
+
tm as InstallmentTable,
|
|
11473
11505
|
_d as ItemCard,
|
|
11474
|
-
|
|
11475
|
-
|
|
11506
|
+
gu as ListPanel,
|
|
11507
|
+
Ru as LoadingOverlay,
|
|
11476
11508
|
Ci as LoadingState,
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11509
|
+
nm as MembershipSelectCards,
|
|
11510
|
+
Fu as ModalShell,
|
|
11511
|
+
Tu as ModalShellFooter,
|
|
11512
|
+
Lu as ModalShellHeader,
|
|
11513
|
+
Uf as Multiselect,
|
|
11514
|
+
zf as Navbar,
|
|
11483
11515
|
$n as OfferCard,
|
|
11484
11516
|
pc as OfferCardEmpty,
|
|
11485
11517
|
bc as OfferCardError,
|
|
11486
11518
|
kc as OfferCardList,
|
|
11487
11519
|
xc as OfferCardSkeleton,
|
|
11488
|
-
|
|
11520
|
+
ku as OtherTenderForm,
|
|
11489
11521
|
cu as PageHeader,
|
|
11490
11522
|
Di as PaymentCashChangeBanner,
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11523
|
+
Bu as PaymentSubAmountInput,
|
|
11524
|
+
Vu as PaymentSuccessView,
|
|
11525
|
+
Pu as PaymentTotalBanner,
|
|
11494
11526
|
Jl as RICH_TEXT_PRESETS,
|
|
11495
11527
|
Yc as RevenueDistributionCard,
|
|
11496
11528
|
Gc as RevenueDistributionEmpty,
|
|
@@ -11499,28 +11531,28 @@ export {
|
|
|
11499
11531
|
ao as RichTextArea,
|
|
11500
11532
|
Xe as Select,
|
|
11501
11533
|
lu as SessionTimeline,
|
|
11502
|
-
|
|
11534
|
+
Eu as SplitPaymentSummary,
|
|
11503
11535
|
uu as StatusChip,
|
|
11504
11536
|
Ml as Stepper,
|
|
11505
11537
|
jd as SuccessState,
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11538
|
+
nf as Summary,
|
|
11539
|
+
rm as TicketSelection,
|
|
11540
|
+
_u as TileSelect,
|
|
11509
11541
|
Hd as Toggle,
|
|
11510
|
-
|
|
11542
|
+
Kf as calculateAllocationDifference,
|
|
11511
11543
|
Cr as computeChange,
|
|
11512
11544
|
Ha as currencyFractionDigits,
|
|
11513
11545
|
et as formatMoney,
|
|
11514
11546
|
Rr as formatOfferCurrency,
|
|
11515
|
-
|
|
11516
|
-
|
|
11547
|
+
qf as formatRevenueAmount,
|
|
11548
|
+
Wf as formatRevenueCurrency,
|
|
11517
11549
|
hd as generateAutomaticInstallments,
|
|
11518
11550
|
bi as generateDistributionId,
|
|
11519
|
-
|
|
11551
|
+
Yf as getCurrencySymbol,
|
|
11520
11552
|
wc as offerCardVariants,
|
|
11521
11553
|
vc as offerListVariants,
|
|
11522
|
-
|
|
11523
|
-
|
|
11554
|
+
Hf as parseOfferCurrency,
|
|
11555
|
+
Gf as parseRevenueCurrency,
|
|
11524
11556
|
Fl as roundToCurrency
|
|
11525
11557
|
};
|
|
11526
11558
|
(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)}})();
|