@leatcom/portal-sessions 0.0.63 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
3
|
|
|
4
|
+
export declare type Attribute = {
|
|
5
|
+
attribute: {
|
|
6
|
+
field_type: string;
|
|
7
|
+
id: number;
|
|
8
|
+
is_hard_read_only: boolean;
|
|
9
|
+
is_soft_read_only: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
name: string;
|
|
12
|
+
options: [];
|
|
13
|
+
type: any;
|
|
14
|
+
};
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
4
18
|
declare type Column = {
|
|
5
19
|
align?: "left" | "center" | "right";
|
|
6
20
|
value: ColumnValue;
|
|
@@ -48,10 +62,17 @@ export declare type ContactAttributeFormElement = {
|
|
|
48
62
|
};
|
|
49
63
|
|
|
50
64
|
export declare type ContactResource = {
|
|
65
|
+
id: number;
|
|
51
66
|
uuid: string;
|
|
52
67
|
email: string;
|
|
68
|
+
attributes: Array<Attribute>;
|
|
69
|
+
tier: Tier | null;
|
|
70
|
+
subscriptions: Array<Subscription>;
|
|
53
71
|
credit_balance: CreditBalance;
|
|
54
72
|
prepaid_balance: PrepaidBalance;
|
|
73
|
+
current_values: {
|
|
74
|
+
[key: string]: string | number;
|
|
75
|
+
};
|
|
55
76
|
current_display_values: {
|
|
56
77
|
[key: string]: string;
|
|
57
78
|
};
|
|
@@ -63,7 +84,20 @@ export declare type CreditBalance = {
|
|
|
63
84
|
};
|
|
64
85
|
|
|
65
86
|
export declare type CreditReceptionTransactionResource = {
|
|
87
|
+
type: string;
|
|
66
88
|
credits: number;
|
|
89
|
+
contact: {
|
|
90
|
+
uuid: string;
|
|
91
|
+
};
|
|
92
|
+
shop: {
|
|
93
|
+
name: string;
|
|
94
|
+
uuid: string;
|
|
95
|
+
};
|
|
96
|
+
contact_identifier: string;
|
|
97
|
+
created_at: string;
|
|
98
|
+
uuid: string;
|
|
99
|
+
unit_value: string;
|
|
100
|
+
unit: string;
|
|
67
101
|
};
|
|
68
102
|
|
|
69
103
|
export declare function DefaultSession({ uuid, host }: DefaultSessionProps): JSX_2.Element;
|
|
@@ -99,10 +133,36 @@ export declare enum FacingMode {
|
|
|
99
133
|
ENVIRONMENT = "environment"
|
|
100
134
|
}
|
|
101
135
|
|
|
136
|
+
export declare type GiftcardProgram = {
|
|
137
|
+
id: number;
|
|
138
|
+
name: string;
|
|
139
|
+
uuid: string;
|
|
140
|
+
max_amount_in_cents: number;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export declare type GiftcardRecipient = {
|
|
144
|
+
id: number;
|
|
145
|
+
email: string;
|
|
146
|
+
status: number;
|
|
147
|
+
opens: number;
|
|
148
|
+
clicks: number;
|
|
149
|
+
};
|
|
150
|
+
|
|
102
151
|
export declare type GiftcardResource = {
|
|
152
|
+
id: number;
|
|
103
153
|
uuid: string;
|
|
154
|
+
type: string;
|
|
104
155
|
hash: string;
|
|
105
156
|
amount_in_cents: number;
|
|
157
|
+
upgradeable: boolean;
|
|
158
|
+
active: boolean;
|
|
159
|
+
expiration_date: string;
|
|
160
|
+
amount: number;
|
|
161
|
+
url: string;
|
|
162
|
+
display_amount: string;
|
|
163
|
+
formatted_expiration_date: string;
|
|
164
|
+
giftcard_program: GiftcardProgram;
|
|
165
|
+
giftcard_recipients: Array<GiftcardRecipient>;
|
|
106
166
|
};
|
|
107
167
|
|
|
108
168
|
export declare type GiftcardTransactionResource = {
|
|
@@ -317,7 +377,6 @@ export declare type SubscriptionType = {
|
|
|
317
377
|
uuid: string;
|
|
318
378
|
name: string;
|
|
319
379
|
description: string;
|
|
320
|
-
is_piggy_defined: boolean;
|
|
321
380
|
strategy: string;
|
|
322
381
|
active: boolean;
|
|
323
382
|
};
|
|
@@ -328,6 +387,13 @@ export declare type TableResponse = {
|
|
|
328
387
|
empty_state_url: string;
|
|
329
388
|
};
|
|
330
389
|
|
|
390
|
+
export declare type Tier = {
|
|
391
|
+
description: string;
|
|
392
|
+
name: string;
|
|
393
|
+
position: number;
|
|
394
|
+
uuid: string;
|
|
395
|
+
};
|
|
396
|
+
|
|
331
397
|
export declare type VoucherResource = {
|
|
332
398
|
uuid: string;
|
|
333
399
|
code: string;
|
|
@@ -6199,7 +6199,7 @@ const kp = be.use || ((e) => {
|
|
|
6199
6199
|
email: t
|
|
6200
6200
|
});
|
|
6201
6201
|
return {
|
|
6202
|
-
contact: n == null ? void 0 : n.data,
|
|
6202
|
+
contact: n == null ? void 0 : n.data.data,
|
|
6203
6203
|
data: n,
|
|
6204
6204
|
error: r,
|
|
6205
6205
|
isLoading: i,
|
|
@@ -6348,7 +6348,9 @@ const Is = (e, t = "EUR") => new Intl.NumberFormat(en.language, {
|
|
|
6348
6348
|
}).format(e / 100), oa = (e) => {
|
|
6349
6349
|
window.parent.postMessage(e, "*");
|
|
6350
6350
|
}, Dp = (e, t) => Math.abs(Math.round((t.getTime() - e.getTime()) / (1e3 * 3600 * 24))), Mp = (e, t) => Math.abs(Math.round((t.getTime() - e.getTime()) / (1e3 * 3600 * 24 * 7))), Pp = (e, t) => Math.abs(Math.round((t.getTime() - e.getTime()) / (1e3 * 3600 * 24 * 365.25))), bA = async (e, t) => {
|
|
6351
|
-
const {
|
|
6351
|
+
const {
|
|
6352
|
+
data: { data: n }
|
|
6353
|
+
} = await or.get(e);
|
|
6352
6354
|
n && t(n);
|
|
6353
6355
|
}, Mo = async (e, t, n, r) => {
|
|
6354
6356
|
const i = await Do.setContact(e, {
|
|
@@ -10642,7 +10644,9 @@ function iT({ value: e, max: t, label: n }) {
|
|
|
10642
10644
|
function pu({ state: e }) {
|
|
10643
10645
|
const t = Mn(), { t: n } = ot(), r = Pt(), [i, s] = Ce(""), [o, c] = Ce(!1), { session: u, mutate: d } = Et(), [f, p] = Ce(!1), l = async (a) => {
|
|
10644
10646
|
if (t.onContactLink) {
|
|
10645
|
-
const {
|
|
10647
|
+
const {
|
|
10648
|
+
data: { data: h }
|
|
10649
|
+
} = await or.get(a);
|
|
10646
10650
|
h && t.onContactLink(h);
|
|
10647
10651
|
}
|
|
10648
10652
|
}, b = zt(() => {
|
|
@@ -16325,7 +16329,7 @@ function uR({ contact: e }) {
|
|
|
16325
16329
|
const { t } = ot(), {
|
|
16326
16330
|
session: { loyalty_program: n }
|
|
16327
16331
|
} = Et(), r = (s, o) => Pp(s, o) ? `${Pp(s, o)} ${t("yearsAgo")}` : Mp(s, o) ? `${Mp(s, o)} ${t("weeksAgo")}` : Dp(s, o) ? `${Dp(s, o)} ${t("daysAgo")}` : t("today"), i = () => {
|
|
16328
|
-
const s = /* @__PURE__ */ new Date(), o = new Date(e.current_display_values
|
|
16332
|
+
const s = /* @__PURE__ */ new Date(), o = new Date(e.current_display_values.birthdate);
|
|
16329
16333
|
return o.setFullYear(s.getFullYear()), s.getTime() > o.getTime() && o.setFullYear(o.getFullYear() + 1), Math.floor((o.getTime() - s.getTime()) / (1e3 * 60 * 60 * 24));
|
|
16330
16334
|
};
|
|
16331
16335
|
return /* @__PURE__ */ m.jsxs("div", { className: "h-full justify-between", children: [
|
|
@@ -16336,7 +16340,7 @@ function uR({ contact: e }) {
|
|
|
16336
16340
|
/* @__PURE__ */ m.jsxs("div", { children: [
|
|
16337
16341
|
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: r(
|
|
16338
16342
|
/* @__PURE__ */ new Date(),
|
|
16339
|
-
new Date(e.current_display_values
|
|
16343
|
+
new Date(e.current_display_values.loyalty_last_transaction_date)
|
|
16340
16344
|
) }),
|
|
16341
16345
|
/* @__PURE__ */ m.jsx("p", { className: "text-xs text-core-gray-500", children: t("lastVisit") })
|
|
16342
16346
|
] })
|
|
@@ -16344,27 +16348,24 @@ function uR({ contact: e }) {
|
|
|
16344
16348
|
/* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16345
16349
|
/* @__PURE__ */ m.jsx(an, { icon: "shopping-bag" }),
|
|
16346
16350
|
/* @__PURE__ */ m.jsxs("div", { children: [
|
|
16347
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: `${e.current_display_values
|
|
16351
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: `${e.current_display_values.loyalty_number_of_transactions} ${t("visits")}` }),
|
|
16348
16352
|
/* @__PURE__ */ m.jsx("p", { className: "text-xs text-core-gray-500", children: t("totalVisits") })
|
|
16349
16353
|
] })
|
|
16350
16354
|
] }),
|
|
16351
16355
|
/* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16352
16356
|
/* @__PURE__ */ m.jsx(an, { icon: "dollar" }),
|
|
16353
16357
|
/* @__PURE__ */ m.jsxs("div", { children: [
|
|
16354
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: `${e.current_display_values
|
|
16358
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: `${e.current_display_values.loyalty_total_credits_received} ${n.custom_credit_name ? n.custom_credit_name : t("points")}` }),
|
|
16355
16359
|
/* @__PURE__ */ m.jsx("p", { className: "text-xs text-core-gray-500", children: t("totalCredits") })
|
|
16356
16360
|
] })
|
|
16357
16361
|
] }),
|
|
16358
|
-
e.
|
|
16362
|
+
e.current_values.birthdate && /* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
16359
16363
|
/* @__PURE__ */ m.jsx(an, { icon: "star" }),
|
|
16360
16364
|
/* @__PURE__ */ m.jsxs("div", { children: [
|
|
16361
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: new Date(e.current_display_values
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
month: "long"
|
|
16366
|
-
}
|
|
16367
|
-
) }),
|
|
16365
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-xs font-semibold", children: new Date(e.current_display_values.birthdate).toLocaleDateString(en.language, {
|
|
16366
|
+
day: "numeric",
|
|
16367
|
+
month: "long"
|
|
16368
|
+
}) }),
|
|
16368
16369
|
/* @__PURE__ */ m.jsx("p", { className: "text-xs text-core-gray-500", children: t("birthdayInDays", { number: i() }) })
|
|
16369
16370
|
] })
|
|
16370
16371
|
] })
|
|
@@ -16401,24 +16402,21 @@ function Fv({ subscription: e, onChange: t, editable: n = !1 }) {
|
|
|
16401
16402
|
}
|
|
16402
16403
|
function lR({ contact: e }) {
|
|
16403
16404
|
const t = Pt(), { t: n } = ot();
|
|
16404
|
-
return
|
|
16405
|
+
return /* @__PURE__ */ m.jsxs("div", { className: "inline-grid w-full items-center gap-4 py-4 lg:grid-cols-2", children: [
|
|
16405
16406
|
/* @__PURE__ */ m.jsxs("div", { className: "flex items-center gap-4", children: [
|
|
16406
|
-
/* @__PURE__ */ m.jsx(Af, { src: e.current_display_values
|
|
16407
|
+
/* @__PURE__ */ m.jsx(Af, { src: e.current_display_values.avatar, size: "2xl" }),
|
|
16407
16408
|
/* @__PURE__ */ m.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
16408
16409
|
/* @__PURE__ */ m.jsxs("div", { className: "flex gap-2", children: [
|
|
16409
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-lg", children: e.current_display_values
|
|
16410
|
-
e.current_display_values
|
|
16410
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-lg", children: e.current_display_values.firstname || e.current_display_values.lastname ? `${e.current_display_values.firstname} ${e.current_display_values.lastname}` : e.current_display_values.email }),
|
|
16411
|
+
e.current_display_values.tier && /* @__PURE__ */ m.jsx(Tf, { label: e.current_display_values.tier, size: "sm", stroke: !0 })
|
|
16411
16412
|
] }),
|
|
16412
16413
|
/* @__PURE__ */ m.jsxs("p", { className: "text-sm text-core-gray-500 ", children: [
|
|
16413
16414
|
n("joined"),
|
|
16414
16415
|
" ",
|
|
16415
|
-
new Date(e.
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
year: "numeric"
|
|
16420
|
-
}
|
|
16421
|
-
)
|
|
16416
|
+
new Date(e.current_values.created_at).toLocaleDateString(en.language, {
|
|
16417
|
+
month: "long",
|
|
16418
|
+
year: "numeric"
|
|
16419
|
+
})
|
|
16422
16420
|
] })
|
|
16423
16421
|
] })
|
|
16424
16422
|
] }),
|
|
@@ -16454,7 +16452,7 @@ function dR() {
|
|
|
16454
16452
|
/* @__PURE__ */ m.jsx(Dt, { children: /* @__PURE__ */ m.jsxs("div", { className: "grid grid-cols-1 gap-x-2 gap-y-2 lg:grid-cols-4", children: [
|
|
16455
16453
|
/* @__PURE__ */ m.jsxs("div", { className: "flex gap-2 lg:flex-col", children: [
|
|
16456
16454
|
/* @__PURE__ */ m.jsx(eo, { children: /* @__PURE__ */ m.jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
16457
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-2xl leading-8", children: e.current_display_values
|
|
16455
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-2xl leading-8", children: e.current_display_values.loyalty_balance }),
|
|
16458
16456
|
/* @__PURE__ */ m.jsx("p", { className: "text-sm text-core-gray-500", children: n.custom_credit_name ? n.custom_credit_name : i("points") })
|
|
16459
16457
|
] }) }),
|
|
16460
16458
|
/* @__PURE__ */ m.jsx(eo, { children: /* @__PURE__ */ m.jsxs("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
|
@@ -16524,9 +16522,7 @@ function fR() {
|
|
|
16524
16522
|
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsx(da, { label: e("back"), path: "../" }) }),
|
|
16525
16523
|
/* @__PURE__ */ m.jsx(Dt, { children: /* @__PURE__ */ m.jsxs("div", { className: "md:max-h-[528px]", children: [
|
|
16526
16524
|
/* @__PURE__ */ m.jsx("p", { className: "text-sm font-medium", children: e("allActivities") }),
|
|
16527
|
-
/* @__PURE__ */ m.jsx("p", { className: "mb-4 text-sm text-core-gray-500", children: e("checkOutAllActivitiesOfName", {
|
|
16528
|
-
name: n.current_display_values["contact.firstname"]
|
|
16529
|
-
}) }),
|
|
16525
|
+
/* @__PURE__ */ m.jsx("p", { className: "mb-4 text-sm text-core-gray-500", children: e("checkOutAllActivitiesOfName", { name: n.current_display_values.firstname }) }),
|
|
16530
16526
|
/* @__PURE__ */ m.jsx("div", { className: "overflow-auto", children: t == null ? void 0 : t.map((r) => /* @__PURE__ */ m.jsx(Lv, { loyaltyTransaction: r }, r.uuid)) })
|
|
16531
16527
|
] }) })
|
|
16532
16528
|
] }) });
|
|
@@ -16686,7 +16682,7 @@ function yR() {
|
|
|
16686
16682
|
}, f = async () => {
|
|
16687
16683
|
o && (await Op.update(o), await r(), Ve.success(e("contactAttributesUpdated")), c(void 0));
|
|
16688
16684
|
};
|
|
16689
|
-
return
|
|
16685
|
+
return /* @__PURE__ */ m.jsx("div", { className: "h-full md:container", children: /* @__PURE__ */ m.jsxs(Gt, { children: [
|
|
16690
16686
|
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsx(da, { label: e("back"), path: "../" }) }),
|
|
16691
16687
|
/* @__PURE__ */ m.jsx(Dt, { children: /* @__PURE__ */ m.jsxs("div", { className: "md:max-h-[528px]", children: [
|
|
16692
16688
|
!n && /* @__PURE__ */ m.jsxs(
|
|
@@ -16694,14 +16690,14 @@ function yR() {
|
|
|
16694
16690
|
{
|
|
16695
16691
|
className: "mb-4 flex flex-row items-center gap-4 border-b border-b-core-gray-200 px-1 pb-4",
|
|
16696
16692
|
children: [
|
|
16697
|
-
/* @__PURE__ */ m.jsx(Af, { src: t.current_display_values
|
|
16693
|
+
/* @__PURE__ */ m.jsx(Af, { src: t.current_display_values.avatar, size: "2xl" }),
|
|
16698
16694
|
/* @__PURE__ */ m.jsxs("div", { children: [
|
|
16699
16695
|
/* @__PURE__ */ m.jsx("div", { className: "flex flex-row items-center gap-2 ", children: /* @__PURE__ */ m.jsxs("h1", { className: "text-lg text-core-gray-900", children: [
|
|
16700
|
-
t.current_display_values
|
|
16696
|
+
t.current_display_values.firstname,
|
|
16701
16697
|
" ",
|
|
16702
|
-
t.current_display_values
|
|
16698
|
+
t.current_display_values.lastname
|
|
16703
16699
|
] }) }),
|
|
16704
|
-
/* @__PURE__ */ m.jsx("p", { className: "text-sm text-core-gray-500", children: t.current_display_values
|
|
16700
|
+
/* @__PURE__ */ m.jsx("p", { className: "text-sm text-core-gray-500", children: t.current_display_values.email })
|
|
16705
16701
|
] })
|
|
16706
16702
|
]
|
|
16707
16703
|
}
|
|
@@ -16715,8 +16711,8 @@ function yR() {
|
|
|
16715
16711
|
{
|
|
16716
16712
|
name: p.name,
|
|
16717
16713
|
label: p.label,
|
|
16718
|
-
value: o && o[p.name] ? o[p.name] : t.current_display_values[
|
|
16719
|
-
onChange: (l) => d(
|
|
16714
|
+
value: o && o[p.name] ? o[p.name] : t.current_display_values[p.name],
|
|
16715
|
+
onChange: (l) => d(p.name, l),
|
|
16720
16716
|
disabled: p.disabled,
|
|
16721
16717
|
children: p.options.map((l) => /* @__PURE__ */ m.jsx(
|
|
16722
16718
|
ld,
|
|
@@ -16732,7 +16728,7 @@ function yR() {
|
|
|
16732
16728
|
rT,
|
|
16733
16729
|
{
|
|
16734
16730
|
name: p.name,
|
|
16735
|
-
value: o && o[
|
|
16731
|
+
value: o && o[p.name] ? o[p.name] : p.defaultValue,
|
|
16736
16732
|
label: p.label,
|
|
16737
16733
|
onChange: d,
|
|
16738
16734
|
disabled: p.disabled,
|
|
@@ -16746,7 +16742,7 @@ function yR() {
|
|
|
16746
16742
|
name: p.name,
|
|
16747
16743
|
label: p.label,
|
|
16748
16744
|
type: p.type === "date_time" ? "date_time" : "date",
|
|
16749
|
-
value: o && o[
|
|
16745
|
+
value: o && o[p.name] ? o[p.name] : t.current_display_values[p.name],
|
|
16750
16746
|
disabled: p.disabled,
|
|
16751
16747
|
onChange: u
|
|
16752
16748
|
},
|
|
@@ -16757,7 +16753,7 @@ function yR() {
|
|
|
16757
16753
|
disabled: p.disabled,
|
|
16758
16754
|
label: p.label,
|
|
16759
16755
|
name: p.name,
|
|
16760
|
-
value: o && o[
|
|
16756
|
+
value: o && o[p.name] !== "undefined" ? o[p.name] : t.current_display_values[p.name],
|
|
16761
16757
|
onChange: u
|
|
16762
16758
|
},
|
|
16763
16759
|
p.id
|
|
@@ -17303,7 +17299,9 @@ function fa() {
|
|
|
17303
17299
|
function AR() {
|
|
17304
17300
|
const e = Pt(), { t } = ot(), { session: n, mutate: r } = Et(), { onContactLink: i } = Mn(), [s, o] = Ce(""), [c, u] = Ce(!1), [d, f] = Ce(!1), [p, l] = Ce(!1), [b, a] = Ce(), h = async (g) => {
|
|
17305
17301
|
if (i) {
|
|
17306
|
-
const {
|
|
17302
|
+
const {
|
|
17303
|
+
data: { data: v }
|
|
17304
|
+
} = await or.get(g);
|
|
17307
17305
|
v && i(v);
|
|
17308
17306
|
}
|
|
17309
17307
|
}, y = zt(async () => {
|
|
@@ -17556,7 +17554,7 @@ function MR() {
|
|
|
17556
17554
|
return De(() => {
|
|
17557
17555
|
!c && !s && !d && (async () => await p())();
|
|
17558
17556
|
}, []), r ? /* @__PURE__ */ m.jsx(m.Fragment, {}) : n ? /* @__PURE__ */ m.jsx(hn, { children: /* @__PURE__ */ m.jsxs(Gt, { children: [
|
|
17559
|
-
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsx("div", { className: "flex h-16 items-center", children: /* @__PURE__ */ m.jsx("p", { children: n.current_display_values
|
|
17557
|
+
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsx("div", { className: "flex h-16 items-center", children: /* @__PURE__ */ m.jsx("p", { children: n.current_display_values.firstname || n.current_display_values.lastname ? `${n.current_display_values.firstname} ${n.current_display_values.lastname}` : n.current_display_values.email }) }) }),
|
|
17560
17558
|
/* @__PURE__ */ m.jsx(Dt, { children: /* @__PURE__ */ m.jsxs("div", { className: "flex h-full flex-col justify-between gap-4", children: [
|
|
17561
17559
|
/* @__PURE__ */ m.jsx("div", { className: "flex h-full flex-col items-center gap-2 p-6", children: d ? /* @__PURE__ */ m.jsx("p", { className: "text-core-red-500", children: d }) : /* @__PURE__ */ m.jsx("div", { className: "flex h-full items-center justify-center gap-1 text-4xl font-bold", children: s ? /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
17562
17560
|
"+",
|
|
@@ -17604,7 +17602,7 @@ function jR() {
|
|
|
17604
17602
|
return !t || !i ? /* @__PURE__ */ m.jsx(m.Fragment, {}) : /* @__PURE__ */ m.jsx(hn, { children: /* @__PURE__ */ m.jsx(
|
|
17605
17603
|
A0,
|
|
17606
17604
|
{
|
|
17607
|
-
title: `${i.current_display_values
|
|
17605
|
+
title: `${i.current_display_values.firstname} ${i.current_display_values.lastname}`,
|
|
17608
17606
|
balance: (t == null ? void 0 : t.balance_in_cents) ?? 0,
|
|
17609
17607
|
transaction: s
|
|
17610
17608
|
}
|
|
@@ -17628,7 +17626,7 @@ function BR() {
|
|
|
17628
17626
|
}), l;
|
|
17629
17627
|
}, p = () => Math.min(u + f(), t == null ? void 0 : t.balance_in_cents);
|
|
17630
17628
|
return /* @__PURE__ */ m.jsx(hn, { children: /* @__PURE__ */ m.jsxs(Gt, { children: [
|
|
17631
|
-
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsx("div", { className: "flex h-16 items-center", children: /* @__PURE__ */ m.jsx("p", { children: `${r.current_display_values
|
|
17629
|
+
/* @__PURE__ */ m.jsx(Mt, { children: /* @__PURE__ */ m.jsx("div", { className: "flex h-16 items-center", children: /* @__PURE__ */ m.jsx("p", { children: `${r.current_display_values.firstname} ${r.current_display_values.lastname}` }) }) }),
|
|
17632
17630
|
/* @__PURE__ */ m.jsx(Dt, { children: /* @__PURE__ */ m.jsxs("div", { className: "flex h-full flex-col gap-4", children: [
|
|
17633
17631
|
/* @__PURE__ */ m.jsx("div", { className: "rounded-lg bg-core-primary-50 p-4", children: /* @__PURE__ */ m.jsxs("div", { className: "flex justify-between", children: [
|
|
17634
17632
|
/* @__PURE__ */ m.jsx("p", { className: "font-light text-gray-500", children: e("prepaidBalance") }),
|