@tesouro/embedded-components-react 0.11.169 → 0.11.172
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/README.md +10 -6
- package/dist/index.d.ts +15 -4
- package/dist/lib/BillPayWidget.d.ts +9 -4
- package/dist/lib/ReceivablesWidget.d.ts +6 -0
- package/dist/lib/WidgetSuite.d.ts +6 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +75 -66
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +62 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +44 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +331 -326
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +10 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +190 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +12 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +25 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +4 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +23 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +196 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +313 -324
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +46 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +45 -22
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveBillDueDate.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +116 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +15 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +59 -69
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dueDateDisplay.js +23 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
|
@@ -82,25 +82,43 @@ function h({ paymentReminder: e, overdueReminder: t, remindersConfigured: n, mes
|
|
|
82
82
|
].filter((e) => typeof e == "number"), a = (t?.terms ?? []).map((e) => e.days_after).filter((e) => typeof e == "number"), o = [];
|
|
83
83
|
return i.length > 0 && o.push(`${m(i, r)} ${r.detailsRemindersBefore}`), a.length > 0 && o.push(`${m(a, r)} ${r.detailsRemindersAfter}`), o.length > 0 ? o.join("\n") : n ? "-" : r.detailsRemindersNone;
|
|
84
84
|
}
|
|
85
|
-
function g(e, t) {
|
|
86
|
-
return {
|
|
85
|
+
function g(e, t, n) {
|
|
86
|
+
return ((e.interval > 1 ? n : t)[e.frequency] ?? "").replace("{interval}", String(e.interval));
|
|
87
|
+
}
|
|
88
|
+
function _(e, t) {
|
|
89
|
+
return g(e, {
|
|
87
90
|
day: t.detailsFrequencyDay,
|
|
88
91
|
week: t.detailsFrequencyWeek,
|
|
89
92
|
month: t.detailsFrequencyMonth,
|
|
90
93
|
quarter: t.detailsFrequencyQuarter,
|
|
91
94
|
year: t.detailsFrequencyYear
|
|
92
|
-
}
|
|
95
|
+
}, {
|
|
96
|
+
day: t.listSeriesEveryDays,
|
|
97
|
+
week: t.listSeriesEveryWeeks,
|
|
98
|
+
month: t.listSeriesEveryMonths,
|
|
99
|
+
quarter: t.listSeriesEveryQuarters,
|
|
100
|
+
year: t.listSeriesEveryYears
|
|
101
|
+
});
|
|
93
102
|
}
|
|
94
|
-
function
|
|
95
|
-
return {
|
|
103
|
+
function v(e, t) {
|
|
104
|
+
return g(e, {
|
|
96
105
|
day: t.detailsPeriodDay,
|
|
97
106
|
week: t.detailsPeriodWeek,
|
|
98
107
|
month: t.detailsPeriodMonth,
|
|
99
108
|
quarter: t.detailsPeriodQuarter,
|
|
100
109
|
year: t.detailsPeriodYear
|
|
101
|
-
}
|
|
110
|
+
}, {
|
|
111
|
+
day: t.detailsPeriodEveryDays,
|
|
112
|
+
week: t.detailsPeriodEveryWeeks,
|
|
113
|
+
month: t.detailsPeriodEveryMonths,
|
|
114
|
+
quarter: t.detailsPeriodEveryQuarters,
|
|
115
|
+
year: t.detailsPeriodEveryYears
|
|
116
|
+
});
|
|
102
117
|
}
|
|
103
|
-
function
|
|
118
|
+
function ee(e, t) {
|
|
119
|
+
return e.interval > 1 ? t.detailsScheduleTitleEvery.replace("{period}", v(e, t)) : t.detailsScheduleTitle.replace("{frequency}", _(e, t));
|
|
120
|
+
}
|
|
121
|
+
function y(e, t) {
|
|
104
122
|
return {
|
|
105
123
|
active: t.detailsSeriesStatusActive,
|
|
106
124
|
paused: t.detailsSeriesStatusPaused,
|
|
@@ -108,17 +126,17 @@ function v(e, t) {
|
|
|
108
126
|
completed: t.detailsSeriesStatusCompleted
|
|
109
127
|
}[e] ?? "";
|
|
110
128
|
}
|
|
111
|
-
var
|
|
129
|
+
var b = {
|
|
112
130
|
active: "info",
|
|
113
131
|
paused: "warning",
|
|
114
132
|
canceled: "danger",
|
|
115
133
|
completed: "success"
|
|
116
|
-
},
|
|
134
|
+
}, x = {
|
|
117
135
|
active: "forward",
|
|
118
136
|
paused: "pause",
|
|
119
137
|
canceled: "ban",
|
|
120
138
|
completed: "check"
|
|
121
|
-
},
|
|
139
|
+
}, S = {
|
|
122
140
|
pending: "neutral",
|
|
123
141
|
skipped: "warning",
|
|
124
142
|
canceled: "danger",
|
|
@@ -126,7 +144,7 @@ var ee = {
|
|
|
126
144
|
send_failed: "danger",
|
|
127
145
|
completed: "success"
|
|
128
146
|
};
|
|
129
|
-
function
|
|
147
|
+
function C(e, t) {
|
|
130
148
|
return {
|
|
131
149
|
pending: t.detailsIterationStatusPending,
|
|
132
150
|
skipped: t.detailsIterationStatusSkipped,
|
|
@@ -136,13 +154,13 @@ function b(e, t) {
|
|
|
136
154
|
completed: t.detailsIterationStatusCompleted
|
|
137
155
|
}[e] ?? "";
|
|
138
156
|
}
|
|
139
|
-
function
|
|
140
|
-
return n.detailsSeriesTitle.replace("{name}", e.counterpart_name ?? n.invoiceType).replace("{frequency}",
|
|
157
|
+
function w(e, t, n) {
|
|
158
|
+
return n.detailsSeriesTitle.replace("{name}", e.counterpart_name ?? n.invoiceType).replace("{frequency}", _(t, n));
|
|
141
159
|
}
|
|
142
|
-
function
|
|
160
|
+
function T(e, t) {
|
|
143
161
|
return t[e] ?? t.unknown;
|
|
144
162
|
}
|
|
145
|
-
function
|
|
163
|
+
function E({ invoice: e, recurrence: t, iterationInvoices: n, date: r, statusLabels: i, messages: a, onOpenReceivable: s }) {
|
|
146
164
|
return (t.iterations ?? []).map((t, c) => {
|
|
147
165
|
let l = t.issued_invoice_id, u = l ? n.get(l) : void 0, d = u ?? e;
|
|
148
166
|
return {
|
|
@@ -155,12 +173,12 @@ function ne({ invoice: e, recurrence: t, iterationInvoices: n, date: r, statusLa
|
|
|
155
173
|
}),
|
|
156
174
|
chip: u ? {
|
|
157
175
|
kind: "invoice",
|
|
158
|
-
label:
|
|
176
|
+
label: T(u.status, i),
|
|
159
177
|
status: u.status
|
|
160
178
|
} : {
|
|
161
179
|
kind: "iteration",
|
|
162
|
-
label:
|
|
163
|
-
tone:
|
|
180
|
+
label: C(t.status, a),
|
|
181
|
+
tone: S[t.status] ?? "neutral"
|
|
164
182
|
},
|
|
165
183
|
numberLabel: l ? u?.document_id ?? "" : a.detailsPending,
|
|
166
184
|
onOpen: u ? () => s(u.id) : void 0,
|
|
@@ -168,7 +186,7 @@ function ne({ invoice: e, recurrence: t, iterationInvoices: n, date: r, statusLa
|
|
|
168
186
|
};
|
|
169
187
|
});
|
|
170
188
|
}
|
|
171
|
-
function
|
|
189
|
+
function te(e) {
|
|
172
190
|
if (!e?.line1) return;
|
|
173
191
|
let t = [e.city, [e.state, e.postal_code].filter(Boolean).join(" ")].filter(Boolean).join(", ");
|
|
174
192
|
return [
|
|
@@ -177,7 +195,7 @@ function C(e) {
|
|
|
177
195
|
e.country ? l(e.country) : void 0
|
|
178
196
|
].filter(Boolean).join(", ");
|
|
179
197
|
}
|
|
180
|
-
function
|
|
198
|
+
function ne(e, t, n) {
|
|
181
199
|
let r = {
|
|
182
200
|
label: n.detailsAmountReceived,
|
|
183
201
|
value: t(e.amount_paid)
|
|
@@ -239,7 +257,7 @@ function re(e, t, n) {
|
|
|
239
257
|
};
|
|
240
258
|
}
|
|
241
259
|
}
|
|
242
|
-
function
|
|
260
|
+
function re(t, i, a) {
|
|
243
261
|
let o = t.line_items.reduce((t, n) => {
|
|
244
262
|
let r = n.total_before_tax ?? 0;
|
|
245
263
|
return e(n.tax_status) ? {
|
|
@@ -284,132 +302,132 @@ function ie(t, i, a) {
|
|
|
284
302
|
emphasis: !0
|
|
285
303
|
}), m;
|
|
286
304
|
}
|
|
287
|
-
var
|
|
305
|
+
var ie = {
|
|
288
306
|
primary: [],
|
|
289
307
|
overflow: []
|
|
290
308
|
};
|
|
291
|
-
function
|
|
309
|
+
function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: l, depositAccount: u, isAccountListIncomplete: m, recurrence: g, paymentRecords: S = [], isLoadingPaymentRecords: C = !1, iterationInvoices: T = /* @__PURE__ */ new Map(), auditHistory: D, statusLabels: O, messages: k, canRecordPayment: ae, hasBeenSent: oe = !1, canWrite: A = !0, onOpenReceivable: j, onOpenCustomer: M, now: se }) {
|
|
292
310
|
if (!e || e.type !== "invoice") return;
|
|
293
311
|
let N = e, P = (e) => o({
|
|
294
312
|
amount: e ?? 0,
|
|
295
313
|
currency: N.currency,
|
|
296
314
|
fallback: ""
|
|
297
|
-
}), F = (e) => a(e, "-"), I = (e) => e ? F(e) :
|
|
298
|
-
label:
|
|
315
|
+
}), F = (e) => a(e, "-"), I = (e) => e ? F(e) : k.detailsPending, { status: L } = N, R = L === "canceled", z = L === "recurring" ? g : void 0, B = N.recurrence_id && L !== "recurring" ? g : void 0, V = L === "overdue" ? s(N.due_date, se) : 0, { amountTone: H, amountRows: U } = ne(N, P, k), W = N.counterpart_contact, G = te(N.counterpart_billing_address), K = N.counterpart_id, ce = N.counterpart_name ? {
|
|
316
|
+
label: k.detailsCustomerName,
|
|
299
317
|
name: N.counterpart_name,
|
|
300
|
-
onOpen:
|
|
318
|
+
onOpen: M && K ? () => M(K) : void 0
|
|
301
319
|
} : void 0, le = [
|
|
302
|
-
...
|
|
303
|
-
label:
|
|
304
|
-
value:
|
|
320
|
+
...W?.email ? [{
|
|
321
|
+
label: k.detailsCustomerEmail,
|
|
322
|
+
value: W.email
|
|
305
323
|
}] : [],
|
|
306
|
-
...
|
|
307
|
-
label:
|
|
308
|
-
value:
|
|
324
|
+
...W?.phone ? [{
|
|
325
|
+
label: k.detailsCustomerPhone,
|
|
326
|
+
value: W.phone
|
|
309
327
|
}] : [],
|
|
310
|
-
...
|
|
311
|
-
label:
|
|
312
|
-
value:
|
|
328
|
+
...G ? [{
|
|
329
|
+
label: k.detailsCustomerAddress,
|
|
330
|
+
value: G
|
|
313
331
|
}] : []
|
|
314
|
-
],
|
|
315
|
-
label:
|
|
332
|
+
], q = {
|
|
333
|
+
label: k.detailsPaymentReminders,
|
|
316
334
|
value: h({
|
|
317
335
|
paymentReminder: r,
|
|
318
336
|
overdueReminder: l,
|
|
319
337
|
remindersConfigured: !!(N.payment_reminder_id || N.overdue_reminder_id),
|
|
320
|
-
messages:
|
|
338
|
+
messages: k
|
|
321
339
|
})
|
|
322
|
-
}, q = {
|
|
323
|
-
label: D.detailsDepositAccount,
|
|
324
|
-
value: u ? c(u, D) : m && N.bank_account_id ? "-" : D.detailsNotProvided
|
|
325
340
|
}, J = {
|
|
326
|
-
label:
|
|
327
|
-
value: N.
|
|
328
|
-
}, Y =
|
|
341
|
+
label: k.detailsDepositAccount,
|
|
342
|
+
value: u ? c(u, k) : m && N.bank_account_id ? "-" : k.detailsNotProvided
|
|
343
|
+
}, Y = {
|
|
344
|
+
label: k.detailsPaymentTerms,
|
|
345
|
+
value: N.payment_terms?.name ?? k.detailsPending
|
|
346
|
+
}, ue = z ? [
|
|
329
347
|
{
|
|
330
|
-
label:
|
|
331
|
-
value:
|
|
348
|
+
label: k.detailsFrequency,
|
|
349
|
+
value: _(z, k)
|
|
332
350
|
},
|
|
333
351
|
{
|
|
334
|
-
label:
|
|
352
|
+
label: k.detailsInvoiceAmount,
|
|
335
353
|
value: P(N.total_amount)
|
|
336
354
|
},
|
|
337
|
-
|
|
338
|
-
|
|
355
|
+
Y,
|
|
356
|
+
q,
|
|
339
357
|
{
|
|
340
|
-
label:
|
|
341
|
-
value: N.purchase_order ||
|
|
358
|
+
label: k.detailsPoNumber,
|
|
359
|
+
value: N.purchase_order || k.detailsNotProvided
|
|
342
360
|
},
|
|
343
|
-
|
|
361
|
+
J
|
|
344
362
|
] : [
|
|
345
363
|
...N.document_id ? [{
|
|
346
|
-
label:
|
|
364
|
+
label: k.detailsInvoiceNumber,
|
|
347
365
|
value: N.document_id
|
|
348
366
|
}] : [],
|
|
349
367
|
{
|
|
350
|
-
label:
|
|
368
|
+
label: k.detailsInvoiceAmount,
|
|
351
369
|
value: P(N.total_amount)
|
|
352
370
|
},
|
|
353
371
|
{
|
|
354
|
-
label:
|
|
372
|
+
label: k.detailsInvoiceDate,
|
|
355
373
|
value: I(N.issue_date)
|
|
356
374
|
},
|
|
357
375
|
{
|
|
358
|
-
label:
|
|
376
|
+
label: k.detailsDueDate,
|
|
359
377
|
value: I(N.due_date)
|
|
360
378
|
},
|
|
361
|
-
|
|
362
|
-
|
|
379
|
+
Y,
|
|
380
|
+
q,
|
|
363
381
|
...N.purchase_order ? [{
|
|
364
|
-
label:
|
|
382
|
+
label: k.detailsPoNumber,
|
|
365
383
|
value: N.purchase_order
|
|
366
384
|
}] : [],
|
|
367
|
-
|
|
368
|
-
], X = z ? void 0 : i(N), { primary: Z, overflow: Q } =
|
|
385
|
+
J
|
|
386
|
+
], X = z ? void 0 : i(N), { primary: Z, overflow: Q } = A ? d[L] ?? {
|
|
369
387
|
primary: [],
|
|
370
388
|
overflow: ["clone"]
|
|
371
|
-
} :
|
|
372
|
-
if (z &&
|
|
389
|
+
} : ie;
|
|
390
|
+
if (z && A) {
|
|
373
391
|
let e = z.status === "active" || z.status === "paused";
|
|
374
392
|
Q = z.status === "active" ? ["pauseRecurrence", "cancelRecurrence"] : z.status === "paused" ? ["resumeRecurrence", "cancelRecurrence"] : [], Z = e ? ["edit"] : [];
|
|
375
393
|
}
|
|
376
|
-
|
|
377
|
-
let
|
|
378
|
-
rows:
|
|
394
|
+
ae || (Z = Z.filter((e) => e !== "recordPayment"));
|
|
395
|
+
let de = f.has(L) ? {
|
|
396
|
+
rows: S.map((e) => ({
|
|
379
397
|
id: e.id,
|
|
380
398
|
dateLabel: F(e.paid_at),
|
|
381
399
|
amountLabel: P(e.amount)
|
|
382
400
|
})),
|
|
383
401
|
totalLabel: P(N.amount_paid),
|
|
384
402
|
emptyTone: L === "overdue" ? "danger" : "default",
|
|
385
|
-
isLoading:
|
|
386
|
-
} : void 0,
|
|
387
|
-
statusLabel:
|
|
388
|
-
statusTone:
|
|
389
|
-
statusIcon:
|
|
403
|
+
isLoading: C
|
|
404
|
+
} : void 0, fe = z ? {
|
|
405
|
+
statusLabel: y(z.status, k),
|
|
406
|
+
statusTone: b[z.status] ?? "neutral",
|
|
407
|
+
statusIcon: x[z.status],
|
|
390
408
|
amountLabel: P(N.total_amount),
|
|
391
|
-
amountPeriodLabel:
|
|
409
|
+
amountPeriodLabel: v(z, k),
|
|
392
410
|
startsOnLabel: I(z.start_date),
|
|
393
411
|
endsOnLabel: F(z.end_date ?? (z.max_occurrences ? z.iterations?.at(-1)?.issue_at : void 0)),
|
|
394
|
-
scheduleTitle:
|
|
395
|
-
schedule:
|
|
412
|
+
scheduleTitle: ee(z, k),
|
|
413
|
+
schedule: E({
|
|
396
414
|
invoice: N,
|
|
397
415
|
recurrence: z,
|
|
398
|
-
iterationInvoices:
|
|
416
|
+
iterationInvoices: T,
|
|
399
417
|
date: F,
|
|
400
|
-
statusLabels:
|
|
401
|
-
messages:
|
|
402
|
-
onOpenReceivable:
|
|
418
|
+
statusLabels: O,
|
|
419
|
+
messages: k,
|
|
420
|
+
onOpenReceivable: j
|
|
403
421
|
})
|
|
404
|
-
} : void 0, $ = B ?
|
|
422
|
+
} : void 0, $ = B ? w(N, B, k) : void 0, pe = B && $ ? {
|
|
405
423
|
title: $,
|
|
406
|
-
backLabel:
|
|
407
|
-
onOpen: () =>
|
|
424
|
+
backLabel: k.detailsSeriesBack.replace("{title}", $),
|
|
425
|
+
onOpen: () => j(B.invoice_id)
|
|
408
426
|
} : void 0;
|
|
409
427
|
return {
|
|
410
428
|
id: N.id,
|
|
411
429
|
type: N.type,
|
|
412
|
-
title:
|
|
430
|
+
title: N.counterpart_name ?? k.invoiceType,
|
|
413
431
|
status: L,
|
|
414
432
|
statusTone: p[L] ?? "neutral",
|
|
415
433
|
pdfUrl: n,
|
|
@@ -421,38 +439,38 @@ function w({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: l, d
|
|
|
421
439
|
totalLabel: P(e.total_before_tax ?? (e.product.price?.value ?? 0) * e.quantity)
|
|
422
440
|
})),
|
|
423
441
|
panel: {
|
|
424
|
-
subtitle: z ?
|
|
425
|
-
statusLabel: L === "partially_paid" ?
|
|
442
|
+
subtitle: z ? k.detailsSeriesSubtitle.replace("{frequency}", _(z, k)) : N.document_id ? k.detailsInvoiceSubtitle.replace("{number}", N.document_id) : void 0,
|
|
443
|
+
statusLabel: L === "partially_paid" ? O.issued : O[L] ?? O.unknown,
|
|
426
444
|
recurring: !!N.recurrence_id || L === "recurring",
|
|
427
|
-
overdueLabel: V > 0 ?
|
|
428
|
-
amountTone:
|
|
429
|
-
amountRows:
|
|
445
|
+
overdueLabel: V > 0 ? k.detailsDaysOverdue.replace("{days}", String(V)) : void 0,
|
|
446
|
+
amountTone: H,
|
|
447
|
+
amountRows: U,
|
|
430
448
|
issueDateLabel: I(N.issue_date),
|
|
431
449
|
dueDateLabel: R ? F(N.updated_at) : I(N.due_date),
|
|
432
|
-
dueDateCaption: R ?
|
|
433
|
-
paymentHistory:
|
|
450
|
+
dueDateCaption: R ? k.detailsCancelledOnCaption : k.detailsDueDate,
|
|
451
|
+
paymentHistory: de,
|
|
434
452
|
customerName: ce,
|
|
435
453
|
customerContact: le,
|
|
436
|
-
recurringSeries:
|
|
437
|
-
seriesLink:
|
|
438
|
-
billingItems:
|
|
454
|
+
recurringSeries: fe,
|
|
455
|
+
seriesLink: pe,
|
|
456
|
+
billingItems: ue,
|
|
439
457
|
lineItemsSection: z ? void 0 : {
|
|
440
458
|
countLabel: String(N.line_items.length),
|
|
441
|
-
totals:
|
|
459
|
+
totals: re(N, P, k)
|
|
442
460
|
},
|
|
443
461
|
notes: X && {
|
|
444
462
|
...X,
|
|
445
463
|
countLabel: String([X.opening, X.closing].filter(Boolean).length)
|
|
446
464
|
},
|
|
447
|
-
attachments: t(N,
|
|
448
|
-
auditHistory:
|
|
465
|
+
attachments: t(N, k),
|
|
466
|
+
auditHistory: D,
|
|
449
467
|
primaryActions: Z,
|
|
450
468
|
overflowActions: Q,
|
|
451
|
-
actionLabels: { send: oe ?
|
|
469
|
+
actionLabels: { send: oe ? k.detailsResendButton : k.detailsSendButton }
|
|
452
470
|
}
|
|
453
471
|
};
|
|
454
472
|
}
|
|
455
|
-
function
|
|
473
|
+
function O(e, t, n) {
|
|
456
474
|
if (!e) return {
|
|
457
475
|
title: n.detailsNotFoundTitle,
|
|
458
476
|
description: n.detailsNotFoundDescription.replace("{invoiceId}", t)
|
|
@@ -462,4 +480,4 @@ function T(e, t, n) {
|
|
|
462
480
|
description: n.detailsUnsupportedDescription.replace("{type}", e.type)
|
|
463
481
|
};
|
|
464
482
|
}
|
|
465
|
-
export {
|
|
483
|
+
export { O as buildDetailsMessageView, D as buildReceivableDetailsView, h as formatReminderSchedule, _ as frequencyLabel, y as seriesStatusLabel };
|