@tesouro/embedded-components-react 0.5.198 → 0.5.201
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.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +4 -0
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/data-access/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +78 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +258 -257
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +267 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +66 -105
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +103 -214
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +226 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +67 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +83 -79
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +207 -172
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/collectDisclosureDocuments.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/personDisclosure.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access-mocks/dist/lib/fixtures.js +27 -11
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { minorExponentForCurrency as e } from "../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
|
|
2
2
|
import { parseDateOrTimestamp as t } from "../../../shared/util/dist/lib/parseCalendarDate.js";
|
|
3
|
-
import { createLineItem as n, isBlankLineItem as r, lineItemToCreatePayload as i, lineItemToUpdatePayload as a, responseLineItemToFormValues as o, summarizeLineItemErrors as s,
|
|
3
|
+
import { createLineItem as n, isBlankLineItem as r, lineItemToCreatePayload as i, lineItemToUpdatePayload as a, responseLineItemToFormValues as o, summarizeLineItemErrors as s, taxRateFromLineItems as c, validateLineItems as l } from "./index5.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js
|
|
5
|
-
var
|
|
5
|
+
var u = {
|
|
6
6
|
to: "",
|
|
7
7
|
cc: "",
|
|
8
8
|
bcc: "",
|
|
9
9
|
subject: "",
|
|
10
10
|
body: ""
|
|
11
|
-
},
|
|
11
|
+
}, d = {
|
|
12
12
|
mode: "full",
|
|
13
13
|
amountPaid: "",
|
|
14
14
|
paidAt: "",
|
|
15
15
|
comment: ""
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function f() {
|
|
18
18
|
return {
|
|
19
19
|
type: "invoice",
|
|
20
20
|
customerId: "",
|
|
@@ -24,16 +24,17 @@ function d() {
|
|
|
24
24
|
openingNote: "",
|
|
25
25
|
closingNote: "",
|
|
26
26
|
paymentTermsId: "",
|
|
27
|
+
taxRate: "",
|
|
27
28
|
lineItems: [n()]
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function p(e) {
|
|
31
32
|
return e === "quotes" ? "quote" : e === "credit_notes" ? "credit_note" : "invoice";
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
+
function m(e) {
|
|
34
35
|
return e === "quote" ? "quotes" : e === "credit_note" ? "credit_notes" : "invoices";
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function h(e) {
|
|
37
38
|
return (e?.length ? e : [
|
|
38
39
|
"invoices",
|
|
39
40
|
"quotes",
|
|
@@ -44,10 +45,10 @@ function m(e) {
|
|
|
44
45
|
"credit_notes"
|
|
45
46
|
].includes(e) && n.indexOf(e) === t);
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function g({ defaultTab: e, enabledTabs: t }) {
|
|
48
49
|
return e && t.includes(e) ? e : t[0] ?? "invoices";
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function _(e, n) {
|
|
51
52
|
let r = t(e);
|
|
52
53
|
return r ? new Intl.DateTimeFormat(void 0, {
|
|
53
54
|
day: "numeric",
|
|
@@ -55,28 +56,28 @@ function g(e, n) {
|
|
|
55
56
|
year: "numeric"
|
|
56
57
|
}).format(r) : n;
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
+
function v({ amount: t, currency: n, fallback: r }) {
|
|
59
60
|
return t == null || !n ? r : new Intl.NumberFormat(void 0, {
|
|
60
61
|
currency: n,
|
|
61
62
|
style: "currency"
|
|
62
63
|
}).format(t / 10 ** e(n));
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function y(t, n) {
|
|
65
66
|
let r = Number(t);
|
|
66
67
|
if (!Number.isFinite(r)) return;
|
|
67
68
|
let i = n ? e(n) : 2;
|
|
68
69
|
return Math.round(r * 10 ** i);
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function b(e, t) {
|
|
71
72
|
return e.document_id || t.untitledDocument;
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function x(e, t) {
|
|
74
75
|
return e === "quote" ? t.quoteType : e === "credit_note" ? t.creditNoteType : t.invoiceType;
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function S(e) {
|
|
77
78
|
return e === "paid" || e === "accepted" || e === "issued" || e === "recurring" ? "success" : e === "draft" || e === "issuing" ? "neutral" : e === "overdue" || e === "partially_paid" ? "warning" : e === "failed" || e === "declined" || e === "expired" || e === "uncollectible" || e === "canceled" || e === "deleted" ? "danger" : "info";
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function C(e) {
|
|
80
81
|
let t = e.status === "draft", n = e.status === "issued", r = e.type === "invoice", i = e.type === "quote", a = e.type === "credit_note", o = r && [
|
|
81
82
|
"issued",
|
|
82
83
|
"overdue",
|
|
@@ -106,48 +107,48 @@ function S(e) {
|
|
|
106
107
|
].includes(e.status) && !a
|
|
107
108
|
};
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function w({ receivables: e, messages: t }) {
|
|
110
111
|
return e.map((e) => {
|
|
111
112
|
let n = e.type === "invoice" ? e.amount_due : void 0;
|
|
112
113
|
return {
|
|
113
114
|
id: e.id,
|
|
114
115
|
type: e.type,
|
|
115
|
-
documentLabel:
|
|
116
|
+
documentLabel: b(e, t),
|
|
116
117
|
customerLabel: e.counterpart_name || t.unknownCustomer,
|
|
117
118
|
status: e.status,
|
|
118
|
-
statusTone:
|
|
119
|
-
issueDateLabel:
|
|
120
|
-
dueDateLabel:
|
|
121
|
-
totalLabel:
|
|
119
|
+
statusTone: S(e.status),
|
|
120
|
+
issueDateLabel: _(e.issue_date, t.notAvailable),
|
|
121
|
+
dueDateLabel: _(e.type === "quote" ? e.expiry_date : e.due_date, t.notAvailable),
|
|
122
|
+
totalLabel: v({
|
|
122
123
|
amount: e.total_amount,
|
|
123
124
|
currency: e.currency,
|
|
124
125
|
fallback: t.notAvailable
|
|
125
126
|
}),
|
|
126
|
-
amountDueLabel:
|
|
127
|
+
amountDueLabel: v({
|
|
127
128
|
amount: n,
|
|
128
129
|
currency: e.currency,
|
|
129
130
|
fallback: t.notAvailable
|
|
130
131
|
}),
|
|
131
|
-
actions:
|
|
132
|
+
actions: C(e)
|
|
132
133
|
};
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
|
-
function
|
|
136
|
+
function T({ receivable: e, history: t, mails: n, pdfUrl: r, messages: i }) {
|
|
136
137
|
if (!e) return;
|
|
137
138
|
let a = e.type === "invoice" ? e.amount_due : void 0, o = e.type === "quote" ? e.expiry_date : e.due_date;
|
|
138
139
|
return {
|
|
139
140
|
id: e.id,
|
|
140
141
|
type: e.type,
|
|
141
|
-
title:
|
|
142
|
+
title: b(e, i),
|
|
142
143
|
customerLabel: e.counterpart_name || i.unknownCustomer,
|
|
143
144
|
status: e.status,
|
|
144
|
-
statusTone:
|
|
145
|
-
totalLabel:
|
|
145
|
+
statusTone: S(e.status),
|
|
146
|
+
totalLabel: v({
|
|
146
147
|
amount: e.total_amount,
|
|
147
148
|
currency: e.currency,
|
|
148
149
|
fallback: i.notAvailable
|
|
149
150
|
}),
|
|
150
|
-
amountDueLabel:
|
|
151
|
+
amountDueLabel: v({
|
|
151
152
|
amount: a,
|
|
152
153
|
currency: e.currency,
|
|
153
154
|
fallback: i.notAvailable
|
|
@@ -156,11 +157,11 @@ function w({ receivable: e, history: t, mails: n, pdfUrl: r, messages: i }) {
|
|
|
156
157
|
summaryItems: [
|
|
157
158
|
{
|
|
158
159
|
label: i.summaryDocumentType,
|
|
159
|
-
value:
|
|
160
|
+
value: x(e.type, i)
|
|
160
161
|
},
|
|
161
162
|
{
|
|
162
163
|
label: i.summaryDocumentNumber,
|
|
163
|
-
value:
|
|
164
|
+
value: b(e, i)
|
|
164
165
|
},
|
|
165
166
|
{
|
|
166
167
|
label: i.summaryCustomer,
|
|
@@ -168,23 +169,23 @@ function w({ receivable: e, history: t, mails: n, pdfUrl: r, messages: i }) {
|
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
171
|
label: i.summaryIssued,
|
|
171
|
-
value:
|
|
172
|
+
value: _(e.issue_date, i.notAvailable)
|
|
172
173
|
},
|
|
173
174
|
{
|
|
174
175
|
label: i.summaryDue,
|
|
175
|
-
value:
|
|
176
|
+
value: _(o, i.notAvailable)
|
|
176
177
|
},
|
|
177
178
|
{
|
|
178
179
|
label: i.summaryCreated,
|
|
179
|
-
value:
|
|
180
|
+
value: _(e.created_at, i.notAvailable)
|
|
180
181
|
},
|
|
181
182
|
{
|
|
182
183
|
label: i.summaryUpdated,
|
|
183
|
-
value:
|
|
184
|
+
value: _(e.updated_at, i.notAvailable)
|
|
184
185
|
},
|
|
185
186
|
{
|
|
186
187
|
label: i.summaryTotal,
|
|
187
|
-
value:
|
|
188
|
+
value: v({
|
|
188
189
|
amount: e.total_amount,
|
|
189
190
|
currency: e.currency,
|
|
190
191
|
fallback: i.notAvailable
|
|
@@ -192,7 +193,7 @@ function w({ receivable: e, history: t, mails: n, pdfUrl: r, messages: i }) {
|
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
195
|
label: i.summaryAmountDue,
|
|
195
|
-
value:
|
|
196
|
+
value: v({
|
|
196
197
|
amount: a,
|
|
197
198
|
currency: e.currency,
|
|
198
199
|
fallback: i.notAvailable
|
|
@@ -203,12 +204,12 @@ function w({ receivable: e, history: t, mails: n, pdfUrl: r, messages: i }) {
|
|
|
203
204
|
id: t.product.id || String(n),
|
|
204
205
|
name: t.product.name,
|
|
205
206
|
quantityLabel: String(t.quantity),
|
|
206
|
-
unitPriceLabel:
|
|
207
|
+
unitPriceLabel: v({
|
|
207
208
|
amount: t.product.price?.value,
|
|
208
209
|
currency: t.product.price?.currency || e.currency,
|
|
209
210
|
fallback: i.notAvailable
|
|
210
211
|
}),
|
|
211
|
-
totalLabel:
|
|
212
|
+
totalLabel: v({
|
|
212
213
|
amount: t.total_after_tax ?? t.total_before_tax,
|
|
213
214
|
currency: e.currency,
|
|
214
215
|
fallback: i.notAvailable
|
|
@@ -216,23 +217,23 @@ function w({ receivable: e, history: t, mails: n, pdfUrl: r, messages: i }) {
|
|
|
216
217
|
})),
|
|
217
218
|
activityItems: t.map((e) => ({
|
|
218
219
|
id: e.id,
|
|
219
|
-
title:
|
|
220
|
+
title: E(e.event_type, i),
|
|
220
221
|
description: e.event_type,
|
|
221
|
-
timestampLabel:
|
|
222
|
+
timestampLabel: _(e.timestamp, i.notAvailable)
|
|
222
223
|
})),
|
|
223
224
|
mailItems: n.map((e) => ({
|
|
224
225
|
id: e.id,
|
|
225
226
|
statusLabel: e.status,
|
|
226
|
-
recipientsLabel:
|
|
227
|
-
sentAtLabel:
|
|
227
|
+
recipientsLabel: D(e, i),
|
|
228
|
+
sentAtLabel: _(e.created_at, i.notAvailable)
|
|
228
229
|
})),
|
|
229
|
-
actions:
|
|
230
|
+
actions: C(e)
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
+
function E(e, t) {
|
|
233
234
|
return e === "status_changed" ? t.activityStatusChanged : e === "receivable_created" ? t.activityReceivableCreated : e === "receivable_updated" ? t.activityReceivableUpdated : e === "payment_received" ? t.activityPaymentReceived : e === "mail_sent" ? t.activityMailSent : t.activityUnknown;
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function D(e, t) {
|
|
236
237
|
let n = [
|
|
237
238
|
...e.recipients?.to ?? [],
|
|
238
239
|
...e.recipients?.cc ?? [],
|
|
@@ -240,22 +241,23 @@ function E(e, t) {
|
|
|
240
241
|
].map((e) => e.email).filter(Boolean);
|
|
241
242
|
return n.length > 0 ? n.join(", ") : t.recipientsNone;
|
|
242
243
|
}
|
|
243
|
-
function
|
|
244
|
+
function O({ values: e, billingAddressId: t, messages: n }) {
|
|
244
245
|
let r = {};
|
|
245
246
|
e.customerId ? t || (r.customerId = n.customerAddressRequired) : r.customerId = n.customerRequired, e.currency || (r.currency = n.currencyRequired);
|
|
246
|
-
let i =
|
|
247
|
+
let i = l(e.lineItems, {
|
|
247
248
|
currency: e.currency,
|
|
248
249
|
messages: n
|
|
249
250
|
});
|
|
250
251
|
return i && (r.lineItems = i, r.lineItemsSummary = s(i)), r;
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
+
function k(e) {
|
|
253
254
|
return Object.keys(e).length > 0;
|
|
254
255
|
}
|
|
255
|
-
function
|
|
256
|
+
function A({ values: e, billingAddressId: t, unitNamesById: n }) {
|
|
256
257
|
let a = e.lineItems.filter((e) => !r(e)).map((t) => i({
|
|
257
258
|
lineItem: t,
|
|
258
259
|
currency: e.currency,
|
|
260
|
+
taxRate: e.taxRate,
|
|
259
261
|
unitNamesById: n
|
|
260
262
|
})), o = {
|
|
261
263
|
counterpart_billing_address_id: t,
|
|
@@ -276,26 +278,27 @@ function k({ values: e, billingAddressId: t, unitNamesById: n }) {
|
|
|
276
278
|
type: "invoice"
|
|
277
279
|
};
|
|
278
280
|
}
|
|
279
|
-
function
|
|
281
|
+
function j(e, t) {
|
|
280
282
|
let r = e.type === "quote" ? "quote" : "invoice", i = e.type === "invoice" ? e.payment_terms?.id ?? "" : "", a = e.line_items.map((n) => o({
|
|
281
283
|
lineItem: n,
|
|
282
284
|
currency: e.currency,
|
|
283
285
|
units: t
|
|
284
286
|
}));
|
|
285
287
|
return {
|
|
286
|
-
...
|
|
288
|
+
...f(),
|
|
287
289
|
type: r,
|
|
288
290
|
customerId: e.counterpart_id,
|
|
289
291
|
currency: e.currency,
|
|
290
|
-
issueDate:
|
|
291
|
-
dueDate:
|
|
292
|
+
issueDate: P(e.issue_date),
|
|
293
|
+
dueDate: P(e.type === "quote" ? e.expiry_date : e.due_date),
|
|
292
294
|
openingNote: e.memo ?? "",
|
|
293
295
|
closingNote: e.footer ?? "",
|
|
294
296
|
paymentTermsId: i,
|
|
297
|
+
taxRate: c(e.line_items),
|
|
295
298
|
lineItems: a.length > 0 ? a : [n(e.currency)]
|
|
296
299
|
};
|
|
297
300
|
}
|
|
298
|
-
function
|
|
301
|
+
function M({ values: e, billingAddressId: t, lineItemChanges: n }) {
|
|
299
302
|
let r = {
|
|
300
303
|
counterpart_billing_address_id: t,
|
|
301
304
|
counterpart_id: e.customerId,
|
|
@@ -317,75 +320,76 @@ function j({ values: e, billingAddressId: t, lineItemChanges: n }) {
|
|
|
317
320
|
payment_terms: !e.paymentTermsId && e.dueDate ? { term_final: { end_date: e.dueDate } } : void 0
|
|
318
321
|
} };
|
|
319
322
|
}
|
|
320
|
-
function
|
|
321
|
-
let
|
|
323
|
+
function N({ values: e, originalLineItems: t, originalCurrency: n, unitNamesById: i, units: s }) {
|
|
324
|
+
let l = (e, t, n) => a({
|
|
322
325
|
lineItem: e,
|
|
323
326
|
currency: t,
|
|
327
|
+
taxRate: n,
|
|
324
328
|
unitNamesById: i
|
|
325
|
-
}),
|
|
329
|
+
}), u = c(t), d = new Map(t.map((e) => [e.id, JSON.stringify(l(o({
|
|
326
330
|
lineItem: e,
|
|
327
331
|
currency: n,
|
|
328
332
|
units: s
|
|
329
|
-
}), n))])),
|
|
330
|
-
let n =
|
|
333
|
+
}), n, u))])), f = e.lineItems.filter((e) => !r(e)), p = new Set(f.map((e) => e.id)), m = f.filter((e) => !d.has(e.id)).map((t) => l(t, e.currency, e.taxRate)), h = f.flatMap((t) => {
|
|
334
|
+
let n = d.get(t.id);
|
|
331
335
|
if (n === void 0) return [];
|
|
332
|
-
let r =
|
|
336
|
+
let r = l(t, e.currency, e.taxRate);
|
|
333
337
|
return n === JSON.stringify(r) ? [] : [{
|
|
334
338
|
id: t.id,
|
|
335
339
|
data: r
|
|
336
340
|
}];
|
|
337
|
-
}),
|
|
338
|
-
if (
|
|
339
|
-
...
|
|
340
|
-
...
|
|
341
|
-
...
|
|
341
|
+
}), g = t.filter((e) => !p.has(e.id)).map((e) => e.id);
|
|
342
|
+
if (m.length || h.length || g.length) return {
|
|
343
|
+
...m.length ? { add: m } : {},
|
|
344
|
+
...h.length ? { replace: h } : {},
|
|
345
|
+
...g.length ? { remove: g } : {}
|
|
342
346
|
};
|
|
343
347
|
}
|
|
344
|
-
function
|
|
348
|
+
function P(e) {
|
|
345
349
|
return e?.slice(0, 10) ?? "";
|
|
346
350
|
}
|
|
347
|
-
function
|
|
351
|
+
function F(e) {
|
|
348
352
|
return (e ?? []).map((e) => ({
|
|
349
353
|
value: e.id,
|
|
350
354
|
label: e.name
|
|
351
355
|
}));
|
|
352
356
|
}
|
|
353
|
-
function
|
|
357
|
+
function I(e, t) {
|
|
354
358
|
let n = {};
|
|
355
359
|
return e.to.trim() || (n.to = t.sendToRequired), e.subject.trim() || (n.subject = t.sendSubjectRequired), e.body.trim() || (n.body = t.sendBodyRequired), n;
|
|
356
360
|
}
|
|
357
|
-
function
|
|
361
|
+
function L(e) {
|
|
358
362
|
return Object.keys(e).length > 0;
|
|
359
363
|
}
|
|
360
|
-
function
|
|
364
|
+
function R(e) {
|
|
361
365
|
return e.split(",").map((e) => e.trim()).filter(Boolean);
|
|
362
366
|
}
|
|
363
|
-
function
|
|
367
|
+
function z(e, t, n) {
|
|
364
368
|
let r = {};
|
|
365
369
|
if (e.mode === "partial") {
|
|
366
|
-
let i =
|
|
370
|
+
let i = y(e.amountPaid, n);
|
|
367
371
|
(!i || i <= 0) && (r.amountPaid = t.paymentAmountInvalid);
|
|
368
372
|
}
|
|
369
373
|
return r;
|
|
370
374
|
}
|
|
371
|
-
function
|
|
375
|
+
function B(e) {
|
|
372
376
|
return Object.keys(e).length > 0;
|
|
373
377
|
}
|
|
374
|
-
function
|
|
378
|
+
function V(e, t) {
|
|
375
379
|
return {
|
|
376
|
-
...
|
|
380
|
+
...u,
|
|
377
381
|
to: e?.counterpart_contact?.email ?? "",
|
|
378
382
|
subject: e?.document_id ? `${t.sendSubjectDefault} ${e.document_id}` : t.sendSubjectDefault,
|
|
379
383
|
body: t.sendBodyDefault
|
|
380
384
|
};
|
|
381
385
|
}
|
|
382
|
-
function
|
|
386
|
+
function H() {
|
|
383
387
|
return {
|
|
384
|
-
...
|
|
388
|
+
...d,
|
|
385
389
|
paidAt: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10)
|
|
386
390
|
};
|
|
387
391
|
}
|
|
388
|
-
function
|
|
392
|
+
function U() {
|
|
389
393
|
return [
|
|
390
394
|
"draft",
|
|
391
395
|
"issued",
|
|
@@ -405,4 +409,4 @@ function H() {
|
|
|
405
409
|
}));
|
|
406
410
|
}
|
|
407
411
|
//#endregion
|
|
408
|
-
export {
|
|
412
|
+
export { d as EMPTY_RECEIVABLE_PAYMENT_VALUES, u as EMPTY_RECEIVABLE_SEND_VALUES, C as buildReceivableActions, T as buildReceivableDetailsView, w as buildReceivableRows, h as coerceEnabledTabs, f as createEmptyReceivableFormValues, n as createLineItem, H as defaultPaymentValues, V as defaultSendValues, _ as formatDate, v as formatMoney, y as fromMajorUnits, b as getDocumentTitle, x as getDocumentTypeLabel, F as getPaymentTermOptions, S as getStatusTone, B as hasPaymentErrors, k as hasReceivableFormErrors, L as hasSendErrors, A as receivableFormValuesToCreatePayload, N as receivableFormValuesToLineItemChanges, M as receivableFormValuesToUpdatePayload, j as receivableToFormValues, g as resolveInitialTab, R as splitEmailList, U as statusFilterOptions, m as tabForType, p as typeForTab, z as validatePaymentValues, O as validateReceivableForm, I as validateSendValues };
|