@tesouro/embedded-components-react 0.11.170 → 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.
Files changed (43) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/lib/ReceivablesWidget.d.ts +6 -0
  3. package/dist/lib/WidgetSuite.d.ts +6 -0
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +75 -66
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +62 -53
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +44 -38
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +331 -326
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +10 -8
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +190 -187
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +12 -19
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +25 -23
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +4 -7
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +23 -24
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +5 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +196 -187
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +6 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +20 -17
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +11 -14
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +157 -161
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -8
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -29
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +7 -6
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveBillDueDate.js +22 -0
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +116 -98
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -92
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +7 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +15 -24
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +59 -69
  33. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +7 -5
  35. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js +28 -0
  36. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +19 -0
  37. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +28 -27
  38. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dueDateDisplay.js +23 -0
  39. package/package.json +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -6
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -33
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
package/dist/index.d.ts CHANGED
@@ -4802,11 +4802,17 @@ interface ReceivableMessageLabels {
4802
4802
  detailsPeriodMonth: string;
4803
4803
  detailsPeriodQuarter: string;
4804
4804
  detailsPeriodYear: string;
4805
+ detailsPeriodEveryDays: string;
4806
+ detailsPeriodEveryWeeks: string;
4807
+ detailsPeriodEveryMonths: string;
4808
+ detailsPeriodEveryQuarters: string;
4809
+ detailsPeriodEveryYears: string;
4805
4810
  /** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
4806
4811
  detailsSeriesTitle: string;
4807
4812
  detailsSeriesSubtitle: string;
4808
4813
  /** `{frequency}` is replaced, e.g. "Monthly schedule". */
4809
4814
  detailsScheduleTitle: string;
4815
+ detailsScheduleTitleEvery: string;
4810
4816
  /** `{title}` is replaced with the series title. */
4811
4817
  detailsSeriesBack: string;
4812
4818
  /** `{number}` is replaced with the invoice number. */
@@ -1545,11 +1545,17 @@ interface ReceivableMessageLabels {
1545
1545
  detailsPeriodMonth: string;
1546
1546
  detailsPeriodQuarter: string;
1547
1547
  detailsPeriodYear: string;
1548
+ detailsPeriodEveryDays: string;
1549
+ detailsPeriodEveryWeeks: string;
1550
+ detailsPeriodEveryMonths: string;
1551
+ detailsPeriodEveryQuarters: string;
1552
+ detailsPeriodEveryYears: string;
1548
1553
  /** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
1549
1554
  detailsSeriesTitle: string;
1550
1555
  detailsSeriesSubtitle: string;
1551
1556
  /** `{frequency}` is replaced, e.g. "Monthly schedule". */
1552
1557
  detailsScheduleTitle: string;
1558
+ detailsScheduleTitleEvery: string;
1553
1559
  /** `{title}` is replaced with the series title. */
1554
1560
  detailsSeriesBack: string;
1555
1561
  /** `{number}` is replaced with the invoice number. */
@@ -3700,11 +3700,17 @@ interface ReceivableMessageLabels {
3700
3700
  detailsPeriodMonth: string;
3701
3701
  detailsPeriodQuarter: string;
3702
3702
  detailsPeriodYear: string;
3703
+ detailsPeriodEveryDays: string;
3704
+ detailsPeriodEveryWeeks: string;
3705
+ detailsPeriodEveryMonths: string;
3706
+ detailsPeriodEveryQuarters: string;
3707
+ detailsPeriodEveryYears: string;
3703
3708
  /** `{name}` and `{frequency}` are replaced, e.g. "Acme - Monthly". */
3704
3709
  detailsSeriesTitle: string;
3705
3710
  detailsSeriesSubtitle: string;
3706
3711
  /** `{frequency}` is replaced, e.g. "Monthly schedule". */
3707
3712
  detailsScheduleTitle: string;
3713
+ detailsScheduleTitleEvery: string;
3708
3714
  /** `{title}` is replaced with the series title. */
3709
3715
  detailsSeriesBack: string;
3710
3716
  /** `{number}` is replaced with the invoice number. */
@@ -1,103 +1,112 @@
1
1
  import { formatCalendarDate as e } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
2
2
  import "../../../../shared/util/dist/index.js";
3
3
  import { formatBillMoney as t } from "../../../util/dist/lib/formatBillMoney.js";
4
- import { resolveLineItemAmountMinorUnits as n } from "../../../util/dist/lib/resolveLineItemAmount.js";
5
- import { resolveLineItemQuantity as r } from "../../../util/dist/lib/resolveLineItemQuantity.js";
6
- import { resolveVendor as i, resolveVendorName as a } from "../../../util/dist/lib/resolveVendor.js";
4
+ import { resolveBillDueDate as n } from "../../../util/dist/lib/resolveBillDueDate.js";
5
+ import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/resolveLineItemAmount.js";
6
+ import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
7
+ import { resolveVendor as a, resolveVendorName as o } from "../../../util/dist/lib/resolveVendor.js";
7
8
  import "../../../util/dist/index.js";
8
- import { formatGlCodeLabel as o } from "./index15.js";
9
- import { derivePayableStatus as s } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
9
+ import { formatGlCodeLabel as s } from "./index15.js";
10
+ import { derivePayableStatus as c } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
10
11
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js
11
- function c(e) {
12
+ function l(e) {
12
13
  return e.total_amount ?? e.amount_due ?? void 0;
13
14
  }
14
- function l(e) {
15
+ function u(e) {
15
16
  return typeof e == "string" ? e : "";
16
17
  }
17
- function u({ payable: u, lineItems: f, ledgerAccounts: p, labels: m, hasScheduledPayment: h, now: g, rejection: _, achInstructions: v, achInstructionsReadable: y = !1 }) {
18
- let b = u.currency, x = (e) => t(e, b), S = s({
19
- apiStatus: u.status,
20
- dueDate: u.due_date,
21
- scheduledPaymentDate: u.scheduled_payment_date,
22
- hasScheduledPayment: h,
23
- now: g
24
- }), C = i(u), w = a(u), T = e(u.issued_at) || m.notProvided, E = e(u.due_date) || m.notProvided, D = [{
25
- label: m.vendorRow,
26
- value: w || m.notProvided,
27
- secondaryValue: C?.email ?? void 0
28
- }], O = y ? v?.account_number : void 0;
29
- O && D.push({
30
- label: m.bankAccountRow,
31
- value: m.bankAccountValue(O.slice(-4))
18
+ function d({ payable: d, lineItems: p, ledgerAccounts: m, labels: h, hasScheduledPayment: g, now: _, today: v, rejection: y, achInstructions: b, achInstructionsReadable: x = !1 }) {
19
+ let S = d.currency, C = (e) => t(e, S), w = c({
20
+ apiStatus: d.status,
21
+ dueDate: d.due_date,
22
+ scheduledPaymentDate: d.scheduled_payment_date,
23
+ hasScheduledPayment: g,
24
+ now: _
25
+ }), T = a(d), E = o(d), D = e(d.issued_at) || h.notProvided, O = e(d.due_date) || h.notProvided, k = n({
26
+ status: d.status,
27
+ dueDate: d.due_date,
28
+ today: v,
29
+ isScheduled: w.status === "scheduled",
30
+ labels: h.dueDate,
31
+ emptyLabel: h.notProvided
32
+ }), A = [{
33
+ label: h.vendorRow,
34
+ value: E || h.notProvided,
35
+ secondaryValue: T?.email ?? void 0
36
+ }], j = x ? b?.account_number : void 0;
37
+ j && A.push({
38
+ label: h.bankAccountRow,
39
+ value: h.bankAccountValue(j.slice(-4))
32
40
  });
33
- let k = [
41
+ let M = [
34
42
  {
35
- label: m.invoiceNumberRow,
36
- value: u.document_id || m.notProvided
43
+ label: h.invoiceNumberRow,
44
+ value: d.document_id || h.notProvided
37
45
  },
38
46
  {
39
- label: m.issueDateRow,
40
- value: T
47
+ label: h.issueDateRow,
48
+ value: D
41
49
  },
42
50
  {
43
- label: m.dueDateRow,
44
- value: E
51
+ label: h.dueDateRow,
52
+ value: O
45
53
  },
46
54
  {
47
- label: m.poNumberRow,
48
- value: l(u.purchase_order_number) || m.notProvided
55
+ label: h.poNumberRow,
56
+ value: u(d.purchase_order_number) || h.notProvided
49
57
  }
50
- ], A = new Map(p.map((e) => [e.id, o(e)])), j = f.map((e) => {
51
- let t = x(e.unit_price), i = String(r(e));
58
+ ], N = new Map(m.map((e) => [e.id, s(e)])), P = p.map((e) => {
59
+ let t = C(e.unit_price), n = String(i(e));
52
60
  return {
53
61
  id: e.id,
54
62
  description: e.name ?? e.description ?? "",
55
- glCodeLabel: (e.ledger_account_id ? A.get(e.ledger_account_id) : void 0) || m.glCodeMissing,
56
- quantityLabel: t ? m.quantityValue(i, t) : m.quantityOnlyValue(i),
57
- amountLabel: x(n(e)) ?? ""
63
+ glCodeLabel: (e.ledger_account_id ? N.get(e.ledger_account_id) : void 0) || h.glCodeMissing,
64
+ quantityLabel: t ? h.quantityValue(n, t) : h.quantityOnlyValue(n),
65
+ amountLabel: C(r(e)) ?? ""
58
66
  };
59
- }), M = [
67
+ }), F = [
60
68
  {
61
- label: m.subtotalRow,
62
- value: u.subtotal
69
+ label: h.subtotalRow,
70
+ value: d.subtotal
63
71
  },
64
72
  {
65
- label: m.discountsRow,
66
- value: u.discount
73
+ label: h.discountsRow,
74
+ value: d.discount
67
75
  },
68
76
  {
69
- label: m.taxRow,
70
- value: u.tax_amount
77
+ label: h.taxRow,
78
+ value: d.tax_amount
71
79
  }
72
80
  ].map(({ label: e, value: t }) => ({
73
81
  label: e,
74
- value: x(t)
75
- })).filter((e) => !!e.value), N = x(c(u));
76
- N && M.push({
77
- label: m.totalRow,
78
- value: N,
82
+ value: C(t)
83
+ })).filter((e) => !!e.value), I = C(l(d));
84
+ I && F.push({
85
+ label: h.totalRow,
86
+ value: I,
79
87
  emphasis: !0
80
88
  });
81
- let P = d(u);
89
+ let L = f(d);
82
90
  return {
83
- title: w,
84
- subtitle: m.subtitle,
85
- status: S.status,
86
- statusTone: S.tone,
87
- amountDueLabel: x(u.amount_due) ?? x(u.total_amount) ?? "",
88
- amountPaidLabel: P ? x(u.amount_paid) : void 0,
89
- paidOnLabel: P ? m.paidOnLabel(P) : void 0,
90
- invoiceDateLabel: T,
91
- dueDateLabel: E,
92
- dueDateTone: S.isOverdue ? "danger" : "default",
93
- payToItems: D,
94
- invoiceItems: k,
95
- lineItems: j,
96
- totals: M,
97
- rejection: _
91
+ title: E,
92
+ subtitle: h.subtitle,
93
+ status: w.status,
94
+ statusTone: w.tone,
95
+ amountDueLabel: C(d.amount_due) ?? C(d.total_amount) ?? "",
96
+ amountPaidLabel: L ? C(d.amount_paid) : void 0,
97
+ paidOnLabel: L ? h.paidOnLabel(L) : void 0,
98
+ invoiceDateLabel: D,
99
+ dueDateLabel: k.label,
100
+ dueDateOverdueLabel: k.overdueLabel,
101
+ dueDateAccessibleLabel: k.accessibleLabel,
102
+ payToItems: A,
103
+ invoiceItems: M,
104
+ lineItems: P,
105
+ totals: F,
106
+ rejection: y
98
107
  };
99
108
  }
100
- function d(t) {
109
+ function f(t) {
101
110
  return t.status === "paid" && t.paid_at ? e(t.paid_at.slice(0, 10)) : void 0;
102
111
  }
103
- export { d as getPaidAtLabel, u as mapPayableToBillDetails, c as resolveInvoiceTotalMinorUnits };
112
+ export { f as getPaidAtLabel, d as mapPayableToBillDetails, l as resolveInvoiceTotalMinorUnits };
@@ -2,86 +2,95 @@ import { formatCalendarDate as e } from "../../../../shared/util/dist/lib/format
2
2
  import "../../../../shared/util/dist/index.js";
3
3
  import { formatBillMoney as t } from "../../../util/dist/lib/formatBillMoney.js";
4
4
  import { resolveAmountDueMinorUnits as n } from "../../../util/dist/lib/resolveAmountDue.js";
5
- import { resolveLineItemAmountMinorUnits as r } from "../../../util/dist/lib/resolveLineItemAmount.js";
6
- import { resolveLineItemQuantity as i } from "../../../util/dist/lib/resolveLineItemQuantity.js";
7
- import { resolveVendor as a } from "../../../util/dist/lib/resolveVendor.js";
5
+ import { resolveBillDueDate as r } from "../../../util/dist/lib/resolveBillDueDate.js";
6
+ import { resolveLineItemAmountMinorUnits as i } from "../../../util/dist/lib/resolveLineItemAmount.js";
7
+ import { resolveLineItemQuantity as a } from "../../../util/dist/lib/resolveLineItemQuantity.js";
8
+ import { resolveVendor as o } from "../../../util/dist/lib/resolveVendor.js";
8
9
  import "../../../util/dist/index.js";
9
- import { derivePayableStatus as o } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
10
- import { getPaidAtLabel as s, resolveInvoiceTotalMinorUnits as c } from "./index26.js";
10
+ import { derivePayableStatus as s } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
11
+ import { getPaidAtLabel as c, resolveInvoiceTotalMinorUnits as l } from "./index26.js";
11
12
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js
12
- function l({ payable: l, lineItems: u, glCodeOptions: d, glCodeRosterAvailable: f = !0, history: p, paymentHistory: m, approvalPolicy: h, labels: g, hasScheduledPayment: _, rejection: v, payableAchInstructions: y, payableAchInstructionsReadable: b = !1 }) {
13
- let x = l.currency, S = o({
14
- apiStatus: l.status,
15
- dueDate: l.due_date,
16
- scheduledPaymentDate: l.scheduled_payment_date,
17
- hasScheduledPayment: _
18
- }), C = a(l), w = b ? y : void 0, T = w?.account_number, E = !!(w?.account_holder_name && w.routing_number && w.account_number), D = e(l.issued_at) || g.notProvided, O = e(l.due_date) || g.notProvided, k = new Map(d.map((e) => [e.value, e.label])), A = [
13
+ function u({ payable: u, lineItems: d, glCodeOptions: f, glCodeRosterAvailable: p = !0, history: m, paymentHistory: h, approvalPolicy: g, labels: _, dueDateLabels: v, today: y, hasScheduledPayment: b, rejection: x, payableAchInstructions: S, payableAchInstructionsReadable: C = !1 }) {
14
+ let w = u.currency, T = s({
15
+ apiStatus: u.status,
16
+ dueDate: u.due_date,
17
+ scheduledPaymentDate: u.scheduled_payment_date,
18
+ hasScheduledPayment: b
19
+ }), E = o(u), D = C ? S : void 0, O = D?.account_number, k = !!(D?.account_holder_name && D.routing_number && D.account_number), A = e(u.issued_at) || _.notProvided, j = e(u.due_date) || _.notProvided, M = r({
20
+ status: u.status,
21
+ dueDate: u.due_date,
22
+ today: y,
23
+ isScheduled: T.status === "scheduled",
24
+ labels: v,
25
+ emptyLabel: _.notProvided
26
+ }), N = new Map(f.map((e) => [e.value, e.label])), P = [
19
27
  {
20
- label: g.subtotalRow,
21
- minorUnits: l.subtotal
28
+ label: _.subtotalRow,
29
+ minorUnits: u.subtotal
22
30
  },
23
31
  {
24
- label: g.discountRow,
25
- minorUnits: l.discount
32
+ label: _.discountRow,
33
+ minorUnits: u.discount
26
34
  },
27
35
  {
28
- label: g.taxRow,
29
- minorUnits: l.tax_amount
36
+ label: _.taxRow,
37
+ minorUnits: u.tax_amount
30
38
  }
31
39
  ].map((e) => ({
32
40
  label: e.label,
33
- value: t(e.minorUnits, x)
34
- })).filter((e) => !!e.value), j = t(c(l), x);
35
- j && A.push({
36
- label: g.totalRow,
37
- value: j,
41
+ value: t(e.minorUnits, w)
42
+ })).filter((e) => !!e.value), F = t(l(u), w);
43
+ F && P.push({
44
+ label: _.totalRow,
45
+ value: F,
38
46
  emphasis: !0
39
47
  });
40
- let M = s(l);
48
+ let I = c(u);
41
49
  return {
42
- amountDue: t(n(l), x) ?? "",
43
- amountPaid: M ? t(l.amount_paid, x) : void 0,
44
- paidOnLabel: M ? g.paidOnLabel(M) : void 0,
45
- invoiceDateLabel: D,
46
- dueDateLabel: O,
47
- dueDateTone: S.isOverdue ? "danger" : "default",
48
- status: S.status,
49
- statusTone: S.tone,
50
+ amountDue: t(n(u), w) ?? "",
51
+ amountPaid: I ? t(u.amount_paid, w) : void 0,
52
+ paidOnLabel: I ? _.paidOnLabel(I) : void 0,
53
+ invoiceDateLabel: A,
54
+ dueDateLabel: M.label,
55
+ dueDateOverdueLabel: M.overdueLabel,
56
+ dueDateAccessibleLabel: M.accessibleLabel,
57
+ status: T.status,
58
+ statusTone: T.tone,
50
59
  payTo: {
51
- name: C?.name || g.notProvided,
52
- email: C?.email ?? "",
53
- methodLabel: E ? g.paymentInstructionsValue(T?.slice(-4) ?? "") : g.paymentInstructionsNotSet,
54
- hasPaymentInstructions: E
60
+ name: E?.name || _.notProvided,
61
+ email: E?.email ?? "",
62
+ methodLabel: k ? _.paymentInstructionsValue(O?.slice(-4) ?? "") : _.paymentInstructionsNotSet,
63
+ hasPaymentInstructions: k
55
64
  },
56
65
  invoiceFields: [
57
66
  {
58
- label: g.invoiceDateRow,
59
- value: D
67
+ label: _.invoiceDateRow,
68
+ value: A
60
69
  },
61
70
  {
62
- label: g.dueDateRow,
63
- value: O
71
+ label: _.dueDateRow,
72
+ value: j
64
73
  },
65
74
  {
66
- label: g.invoiceNumberRow,
67
- value: l.document_id || g.notProvided
75
+ label: _.invoiceNumberRow,
76
+ value: u.document_id || _.notProvided
68
77
  }
69
78
  ],
70
- lineItems: u.map((e) => {
71
- let n = t(e.unit_price, x), a = String(i(e));
79
+ lineItems: d.map((e) => {
80
+ let n = t(e.unit_price, w), r = String(a(e));
72
81
  return {
73
82
  id: e.id,
74
83
  description: e.name ?? e.description ?? "",
75
- glCodeLabel: e.ledger_account_id ? k.get(e.ledger_account_id) ?? (f ? g.glCodeMissing : g.glCodeUnavailable) : g.glCodeMissing,
76
- qtyPriceLabel: n ? g.qtyPriceValue(a, n) : g.qtyOnlyValue(a),
77
- amount: t(r(e), x) ?? ""
84
+ glCodeLabel: e.ledger_account_id ? N.get(e.ledger_account_id) ?? (p ? _.glCodeMissing : _.glCodeUnavailable) : _.glCodeMissing,
85
+ qtyPriceLabel: n ? _.qtyPriceValue(r, n) : _.qtyOnlyValue(r),
86
+ amount: t(i(e), w) ?? ""
78
87
  };
79
88
  }),
80
- amountRows: A,
81
- approvalPolicy: h,
82
- paymentHistory: m,
83
- history: p,
84
- rejection: v
89
+ amountRows: P,
90
+ approvalPolicy: g,
91
+ paymentHistory: h,
92
+ history: m,
93
+ rejection: x
85
94
  };
86
95
  }
87
- export { l as buildBillDetailView };
96
+ export { u as buildBillDetailView };
@@ -1,16 +1,17 @@
1
1
  import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s, mergePaymentHistoryMethodLabels as c } from "../../../util/dist/lib/billDetailLabels.js";
2
+ import { BILL_DUE_DATE_LABELS_EN as l } from "../../../util/dist/lib/resolveBillDueDate.js";
2
3
  import "../../../util/dist/index.js";
3
- import { APPROVAL_POLICY_RULE_COPY_EN as l } from "./index9.js";
4
- import { PAYABLE_AUDIT_HISTORY_LABELS_EN as u } from "./index29.js";
5
- import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as d } from "./index30.js";
6
- import { ACH_FIELD_GROUP_LABELS_EN as f } from "../../../../shared/counterpart-management/ui/dist/index2.js";
4
+ import { APPROVAL_POLICY_RULE_COPY_EN as u } from "./index9.js";
5
+ import { PAYABLE_AUDIT_HISTORY_LABELS_EN as d } from "./index29.js";
6
+ import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as f } from "./index30.js";
7
+ import { ACH_FIELD_GROUP_LABELS_EN as p } from "../../../../shared/counterpart-management/ui/dist/index2.js";
7
8
  import "../../../../shared/counterpart-management/ui/dist/index.js";
8
- import { BILL_REJECTED_BANNER_LABELS_EN as p } from "../../ui/dist/index39.js";
9
- import { DISCARD_CHANGES_DIALOG_LABELS_EN as m } from "../../ui/dist/index42.js";
10
- import { UNSAVED_BILL_DIALOG_LABELS_EN as h } from "../../ui/dist/index51.js";
9
+ import { BILL_REJECTED_BANNER_LABELS_EN as m } from "../../ui/dist/index39.js";
10
+ import { DISCARD_CHANGES_DIALOG_LABELS_EN as h } from "../../ui/dist/index42.js";
11
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as g } from "../../ui/dist/index51.js";
11
12
  import "../../ui/dist/index.js";
12
13
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js
13
- var g = {
14
+ var _ = {
14
15
  unmappedValidationError: (e, t) => `${e}: ${t}`,
15
16
  unknownValidationField: "(unknown field)",
16
17
  requiredField: "This field is required.",
@@ -35,7 +36,7 @@ var g = {
35
36
  implausibleInvoiceDate: "Enter an invoice date within the last 10 years, no more than 30 days from today.",
36
37
  implausibleDueDate: "Enter a due date within the last 10 years and next 5 years.",
37
38
  dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
38
- }, _ = {
39
+ }, v = {
39
40
  paymentInstructionsValue: (e) => `Account ending in ${e}`,
40
41
  noMethod: "No payment method on file",
41
42
  paymentMethodLoading: "Loading payment method...",
@@ -45,13 +46,13 @@ var g = {
45
46
  pendingVendorDescription: "Will be created when submitted",
46
47
  pendingVendorIncompleteDescription: "Add the missing vendor details before submitting",
47
48
  bankAccountSaveFailed: "We could not save these payment instructions. Try again."
48
- }, v = {
49
+ }, y = {
49
50
  attachFailed: "We could not attach that file. Try again.",
50
51
  deleteFailed: "We could not remove that document. Try again.",
51
52
  noDocument: "No document attached to this bill.",
52
53
  pendingDeletionNotice: "This document will be removed when you save this bill.",
53
- preview: d
54
- }, y = {
54
+ preview: f
55
+ }, b = {
55
56
  ...r,
56
57
  notProvided: "Not provided",
57
58
  paymentInstructionsValue: (e) => `Account ending in ${e}`,
@@ -73,23 +74,24 @@ var g = {
73
74
  rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
74
75
  rejectedOn: (e) => `Rejected on ${e}`,
75
76
  rejectionMessage: (e) => `"${e}"`
76
- }, b = {
77
+ }, x = {
77
78
  newTitle: "New bill",
78
79
  extractedTitle: (e) => `Bill from ${e}`,
79
80
  viewTitle: (e) => `Bill from ${e}`,
80
81
  readOnlyTitle: "Bill details",
81
82
  addedOn: (e) => `Added on ${e}`,
82
- unsavedChanges: h,
83
- discardChanges: m,
83
+ unsavedChanges: g,
84
+ discardChanges: h,
84
85
  scheduledRelativeDay: i,
86
+ dueDate: l,
85
87
  scheduledSummary: o,
86
88
  scheduledStatusBadge: a,
87
89
  awaitingApprovalNotice: e,
88
90
  awaitingApprovalUnknownNotice: t,
89
91
  actions: n,
90
- detail: y,
91
- history: u,
92
- approvalPolicyCopy: l,
92
+ detail: b,
93
+ history: d,
94
+ approvalPolicyCopy: u,
93
95
  deleteDraft: {
94
96
  menuItem: "Delete draft",
95
97
  dialog: {
@@ -104,52 +106,56 @@ var g = {
104
106
  noAccess: "You don't have access to GL codes",
105
107
  empty: "No GL codes set up yet"
106
108
  },
107
- rejectedBanner: p
109
+ rejectedBanner: m
108
110
  };
109
- function x(e) {
111
+ function S(e) {
110
112
  return {
111
- ...b,
113
+ ...x,
112
114
  ...e,
113
115
  actions: s(e?.actions),
114
116
  detail: {
115
- ...b.detail,
117
+ ...x.detail,
116
118
  ...e?.detail,
117
119
  paymentHistoryMethodLabels: c(e?.detail?.paymentHistoryMethodLabels)
118
120
  },
119
121
  history: {
120
- ...b.history,
122
+ ...x.history,
121
123
  ...e?.history
122
124
  },
123
125
  lineItemsGlCodeUnavailable: {
124
- ...b.lineItemsGlCodeUnavailable,
126
+ ...x.lineItemsGlCodeUnavailable,
125
127
  ...e?.lineItemsGlCodeUnavailable
126
128
  },
127
129
  unsavedChanges: {
128
- ...b.unsavedChanges,
130
+ ...x.unsavedChanges,
129
131
  ...e?.unsavedChanges
130
132
  },
131
133
  discardChanges: {
132
- ...b.discardChanges,
134
+ ...x.discardChanges,
133
135
  ...e?.discardChanges
134
136
  },
135
137
  rejectedBanner: {
136
- ...b.rejectedBanner,
138
+ ...x.rejectedBanner,
137
139
  ...e?.rejectedBanner
138
140
  },
139
141
  approvalPolicyCopy: {
140
- ...b.approvalPolicyCopy,
142
+ ...x.approvalPolicyCopy,
141
143
  ...e?.approvalPolicyCopy
142
144
  },
143
145
  scheduledRelativeDay: {
144
- ...b.scheduledRelativeDay,
146
+ ...x.scheduledRelativeDay,
145
147
  ...e?.scheduledRelativeDay
146
148
  },
149
+ dueDate: {
150
+ ...x.dueDate,
151
+ ...e?.dueDate
152
+ },
147
153
  deleteDraft: {
148
- ...b.deleteDraft,
154
+ ...x.deleteDraft,
149
155
  ...e?.deleteDraft,
150
156
  dialog: (() => {
151
157
  let t = {
152
- ...b.deleteDraft.dialog,
158
+ ...x.deleteDraft.dialog,
153
159
  ...e?.deleteDraft?.dialog
154
160
  };
155
161
  return delete t.reason, t;
@@ -157,7 +163,7 @@ function x(e) {
157
163
  }
158
164
  };
159
165
  }
160
- var S = {
166
+ var C = {
161
167
  createTitle: "New vendor details",
162
168
  editTitle: "Edit vendor",
163
169
  switchVendorFieldLabel: "Switch to a different vendor",
@@ -176,20 +182,20 @@ var S = {
176
182
  paymentInstructionsHeading: "Payment instructions",
177
183
  paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
178
184
  paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
179
- ach: f
185
+ ach: p
180
186
  };
181
- function C(e) {
187
+ function w(e) {
182
188
  return {
183
- ...S,
189
+ ...C,
184
190
  ...e,
185
191
  ach: {
186
- ...S.ach,
192
+ ...C.ach,
187
193
  ...e?.ach,
188
194
  fieldMarkers: {
189
- ...S.ach.fieldMarkers,
195
+ ...C.ach.fieldMarkers,
190
196
  ...e?.ach?.fieldMarkers
191
197
  }
192
198
  }
193
199
  };
194
200
  }
195
- export { g as BILL_CREATE_MESSAGE_LABELS_EN, y as BILL_DETAIL_VIEW_LABELS_EN, b as BILL_DIALOG_COPY_EN, v as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, S as VENDOR_INLINE_FORM_LABELS_EN, _ as VENDOR_SECTION_PROPS_LABELS_EN, x as mergeBillDialogCopy, C as mergeVendorInlineFormLabels };
201
+ export { _ as BILL_CREATE_MESSAGE_LABELS_EN, b as BILL_DETAIL_VIEW_LABELS_EN, x as BILL_DIALOG_COPY_EN, y as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, C as VENDOR_INLINE_FORM_LABELS_EN, v as VENDOR_SECTION_PROPS_LABELS_EN, S as mergeBillDialogCopy, w as mergeVendorInlineFormLabels };