@tesouro/embedded-components-react 0.5.75 → 0.5.76

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 (88) hide show
  1. package/dist/index.css +0 -8
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +140 -7
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +46 -140
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +114 -47
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +163 -112
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -164
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +21 -75
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +71 -23
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +376 -65
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +12 -381
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +84 -12
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +54 -79
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +223 -54
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +37 -223
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +245 -37
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -252
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +571 -21
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -572
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +44 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +247 -38
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -234
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +47 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -44
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +123 -241
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +211 -126
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -219
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +7 -4
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +98 -5
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -100
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +26 -0
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -10
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -72
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +12 -269
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -19
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +16 -50
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +97 -15
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +76 -47
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +277 -2
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +2 -35
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +16 -369
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +56 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -23
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +15 -93
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +50 -2
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +1 -31
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +32 -49
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +374 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -55
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +20 -10
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +87 -188
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +30 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +48 -37
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +47 -10
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +10 -85
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +197 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -4
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +2 -14
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +41 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -4
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +14 -17
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +88 -2
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -94
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +167 -161
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +5 -5
  83. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  84. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js +5 -1
  85. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  86. package/dist/packages/shared-ui-shadcn/dist/index.js +1391 -1369
  87. package/package.json +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -27
package/dist/index.css CHANGED
@@ -4790,14 +4790,6 @@
4790
4790
  .ttw\:focus-visible\:ring-offset-background:focus-visible {
4791
4791
  --tw-ring-offset-color: var(--ttw-background);
4792
4792
  }
4793
- .ttw\:focus-visible\:outline-hidden:focus-visible {
4794
- --tw-outline-style: none;
4795
- outline-style: none;
4796
- @media (forced-colors: active) {
4797
- outline: 2px solid transparent;
4798
- outline-offset: 2px;
4799
- }
4800
- }
4801
4793
  .ttw\:focus-visible\:outline-1:focus-visible {
4802
4794
  outline-style: var(--tw-outline-style);
4803
4795
  outline-width: 1px;
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
14
14
  import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetInitStaleForToken as C, useWidgetLoading as w } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
15
15
  import { BankAccountsWidget as T } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
16
16
  import { CounterpartsWidget as E } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
17
- import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js";
17
+ import { BillPayWidget as D } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
18
18
  import { CardDetailsWidget as O } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
19
19
  import { CreditCardsWidget as k } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index10.js";
20
20
  import { DebitCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -11,22 +11,22 @@ import "./index27.js";
11
11
  import "./index28.js";
12
12
  import "./index39.js";
13
13
  import "./index42.js";
14
- import "./index49.js";
15
- import "./index57.js";
16
- import "./index59.js";
14
+ import "./index48.js";
15
+ import "./index56.js";
16
+ import "./index58.js";
17
+ import "./index60.js";
17
18
  import "./index61.js";
18
19
  import "./index62.js";
19
20
  import "./index63.js";
20
21
  import "./index64.js";
21
- import "./index65.js";
22
+ import "./index68.js";
22
23
  import "./index69.js";
23
24
  import "./index70.js";
24
25
  import "./index71.js";
25
26
  import "./index72.js";
26
- import "./index73.js";
27
- import "./index76.js";
27
+ import "./index75.js";
28
+ import "./index81.js";
28
29
  import "./index82.js";
29
30
  import "./index83.js";
30
- import "./index84.js";
31
- import { BillPayWidget as e } from "./index88.js";
31
+ import { BillPayWidget as e } from "./index87.js";
32
32
  export { e as BillPayWidget };
@@ -1,10 +1,143 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js
2
- function e(e, t) {
3
- return e.map((e) => ({
4
- id: e.id,
5
- dateLabel: t.historyDateTime(e.dateLabel, e.timeLabel),
6
- description: e.meta ? t.historyWithMeta(e.title, e.meta) : e.title
7
- }));
2
+ var e = {
3
+ edit: "Edit bill",
4
+ payBill: "Pay bill",
5
+ markAsPaid: "Mark as paid",
6
+ reject: "Reject",
7
+ approve: "Approve",
8
+ cancel: "Cancel bill",
9
+ cancelScheduledPayment: "Cancel scheduled payment",
10
+ reopen: "Reopen bill",
11
+ forceApprove: "Approve",
12
+ forceReject: "Reject",
13
+ policyOverridesHeading: "Policy overrides",
14
+ decisionDialog: {
15
+ reject: {
16
+ title: "Reject this bill?",
17
+ description: "The bill goes back as rejected and nobody else is asked to approve it.",
18
+ confirmButton: "Reject bill",
19
+ reason: {
20
+ label: "Reason",
21
+ placeholder: "Tell the submitter what needs to change"
22
+ }
23
+ },
24
+ cancel: {
25
+ title: "Cancel this bill?",
26
+ description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
27
+ confirmButton: "Cancel bill"
28
+ },
29
+ cancelScheduledPayment: {
30
+ title: "Cancel this scheduled payment?",
31
+ description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
32
+ confirmButton: "Cancel payment"
33
+ },
34
+ forceApprove: {
35
+ title: "Override approval policy?",
36
+ description: "The below people haven't approved this bill yet. Approving now will bypass their required review. This will be recorded in the audit history and can't be undone.",
37
+ confirmButton: "Override and approve",
38
+ noApprovalPolicy: {
39
+ title: "Approve this bill?",
40
+ description: "This bill has no approval policy applied. Approving now will be recorded in the audit history and can't be undone.",
41
+ confirmButton: "Approve bill"
42
+ }
43
+ },
44
+ forceReject: {
45
+ title: "Override approval policy?",
46
+ description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
47
+ confirmButton: "Override and reject",
48
+ noApprovalPolicy: {
49
+ title: "Reject this bill?",
50
+ description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
51
+ confirmButton: "Reject bill"
52
+ }
53
+ },
54
+ cancelButton: "Cancel"
55
+ },
56
+ actionError: "Couldn't update this bill. Try again.",
57
+ actionSuccess: {
58
+ approve: "Bill approved.",
59
+ reject: "Bill rejected.",
60
+ markAsPaid: "Bill marked as paid.",
61
+ cancel: "Bill canceled.",
62
+ cancelScheduledPayment: "Scheduled payment canceled.",
63
+ reopen: "Bill reopened.",
64
+ forceApprove: "Bill approved, overriding the approval policy.",
65
+ forceReject: "Bill rejected, overriding the approval policy.",
66
+ forceApproveNoApprovalPolicy: "Bill approved.",
67
+ forceRejectNoApprovalPolicy: "Bill rejected."
68
+ }
69
+ }, t = (e) => `Payment scheduled for ${e}`, n = (e) => `Scheduled - ${e}`, r = (e) => `Awaiting approval from ${new Intl.ListFormat("en", {
70
+ style: "long",
71
+ type: "conjunction"
72
+ }).format(e)}.`, i = "Awaiting approval.", a = [
73
+ "reject",
74
+ "cancel",
75
+ "cancelScheduledPayment",
76
+ "forceApprove",
77
+ "forceReject"
78
+ ];
79
+ function o(e, t) {
80
+ let n = e.reason ? {
81
+ ...e.reason,
82
+ ...t?.reason
83
+ } : void 0, r = e.noApprovalPolicy ? {
84
+ ...e.noApprovalPolicy,
85
+ ...t?.noApprovalPolicy
86
+ } : void 0, i = {
87
+ ...e,
88
+ ...t,
89
+ reason: n,
90
+ noApprovalPolicy: r
91
+ };
92
+ return n || delete i.reason, r || delete i.noApprovalPolicy, i;
93
+ }
94
+ function s(e, t) {
95
+ let n = {
96
+ ...e,
97
+ ...t
98
+ };
99
+ for (let r of a) n[r] = o(e[r], t?.[r]);
100
+ return n;
101
+ }
102
+ function c(t) {
103
+ let n = e;
104
+ return {
105
+ ...n,
106
+ ...t,
107
+ decisionDialog: s(n.decisionDialog, t?.decisionDialog),
108
+ actionSuccess: {
109
+ ...n.actionSuccess,
110
+ ...t?.actionSuccess
111
+ }
112
+ };
113
+ }
114
+ var l = {
115
+ paymentHistorySentLabel: "Payment sent",
116
+ paymentHistoryScheduledLabel: "Payment scheduled",
117
+ paymentHistoryCanceledLabel: "Payment canceled",
118
+ paymentHistoryOtherLabel: "Payment",
119
+ paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
120
+ paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
121
+ paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
122
+ paymentHistoryMarkedPaidLabel: "Marked as paid",
123
+ paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
124
+ paymentHistoryPartiallyPaidLabel: "Partial payment",
125
+ paymentHistoryRevertedLabel: "Payment reverted",
126
+ paymentHistoryMethodLabels: {
127
+ ach: "ACH",
128
+ us_ach: "ACH",
129
+ wire: "Wire",
130
+ check: "Check",
131
+ paper_check: "Check",
132
+ bank_account: "Bank transfer",
133
+ card: "Card"
134
+ }
135
+ };
136
+ function u(e) {
137
+ return {
138
+ ...l.paymentHistoryMethodLabels,
139
+ ...e
140
+ };
8
141
  }
9
142
  //#endregion
10
- export { e as toBillDetailBodyHistory };
143
+ export { r as AWAITING_APPROVAL_LABEL_EN, i as AWAITING_APPROVAL_UNKNOWN_LABEL_EN, e as BILL_DETAIL_ACTIONS_LABELS_EN, l as PAYMENT_HISTORY_LABELS_EN, n as SCHEDULED_STATUS_BADGE_LABEL_EN, t as SCHEDULED_SUMMARY_LABEL_EN, c as mergeBillDetailActionsLabels, s as mergeDecisionDialogCopy, u as mergePaymentHistoryMethodLabels };
@@ -1,143 +1,49 @@
1
+ import { formatBillMoney as e } from "./index2.js";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js
2
- var e = {
3
- edit: "Edit bill",
4
- payBill: "Pay bill",
5
- markAsPaid: "Mark as paid",
6
- reject: "Reject",
7
- approve: "Approve",
8
- cancel: "Cancel bill",
9
- cancelScheduledPayment: "Cancel scheduled payment",
10
- reopen: "Reopen bill",
11
- forceApprove: "Approve",
12
- forceReject: "Reject",
13
- policyOverridesHeading: "Policy overrides",
14
- decisionDialog: {
15
- reject: {
16
- title: "Reject this bill?",
17
- description: "The bill goes back as rejected and nobody else is asked to approve it.",
18
- confirmButton: "Reject bill",
19
- reason: {
20
- label: "Reason",
21
- placeholder: "Tell the submitter what needs to change"
22
- }
23
- },
24
- cancel: {
25
- title: "Cancel this bill?",
26
- description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
27
- confirmButton: "Cancel bill"
28
- },
29
- cancelScheduledPayment: {
30
- title: "Cancel this scheduled payment?",
31
- description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
32
- confirmButton: "Cancel payment"
33
- },
34
- forceApprove: {
35
- title: "Override approval policy?",
36
- description: "The below people haven't approved this bill yet. Approving now will bypass their required review. This will be recorded in the audit history and can't be undone.",
37
- confirmButton: "Override and approve",
38
- noApprovalPolicy: {
39
- title: "Approve this bill?",
40
- description: "This bill has no approval policy applied. Approving now will be recorded in the audit history and can't be undone.",
41
- confirmButton: "Approve bill"
42
- }
43
- },
44
- forceReject: {
45
- title: "Override approval policy?",
46
- description: "The below people haven't approved this bill yet. Rejecting now will bypass their required review. This will be recorded in the audit history and can't be undone.",
47
- confirmButton: "Override and reject",
48
- noApprovalPolicy: {
49
- title: "Reject this bill?",
50
- description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
51
- confirmButton: "Reject bill"
52
- }
53
- },
54
- cancelButton: "Cancel"
55
- },
56
- actionError: "Couldn't update this bill. Try again.",
57
- actionSuccess: {
58
- approve: "Bill approved.",
59
- reject: "Bill rejected.",
60
- markAsPaid: "Bill marked as paid.",
61
- cancel: "Bill canceled.",
62
- cancelScheduledPayment: "Scheduled payment canceled.",
63
- reopen: "Bill reopened.",
64
- forceApprove: "Bill approved, overriding the approval policy.",
65
- forceReject: "Bill rejected, overriding the approval policy.",
66
- forceApproveNoApprovalPolicy: "Bill approved.",
67
- forceRejectNoApprovalPolicy: "Bill rejected."
68
- }
69
- }, t = (e) => `Payment scheduled for ${e}`, n = (e) => `Scheduled - ${e}`, r = (e) => `Awaiting approval from ${new Intl.ListFormat("en", {
70
- style: "long",
71
- type: "conjunction"
72
- }).format(e)}.`, i = "Awaiting approval.", a = [
73
- "reject",
74
- "cancel",
75
- "cancelScheduledPayment",
76
- "forceApprove",
77
- "forceReject"
78
- ];
79
- function o(e, t) {
80
- let n = e.reason ? {
81
- ...e.reason,
82
- ...t?.reason
83
- } : void 0, r = e.noApprovalPolicy ? {
84
- ...e.noApprovalPolicy,
85
- ...t?.noApprovalPolicy
86
- } : void 0, i = {
87
- ...e,
88
- ...t,
89
- reason: n,
90
- noApprovalPolicy: r
91
- };
92
- return n || delete i.reason, r || delete i.noApprovalPolicy, i;
93
- }
94
- function s(e, t) {
95
- let n = {
96
- ...e,
97
- ...t
98
- };
99
- for (let r of a) n[r] = o(e[r], t?.[r]);
100
- return n;
101
- }
102
- function c(t) {
103
- let n = e;
104
- return {
105
- ...n,
106
- ...t,
107
- decisionDialog: s(n.decisionDialog, t?.decisionDialog),
108
- actionSuccess: {
109
- ...n.actionSuccess,
110
- ...t?.actionSuccess
111
- }
112
- };
113
- }
114
- var l = {
115
- paymentHistorySentLabel: "Payment sent",
116
- paymentHistoryScheduledLabel: "Payment scheduled",
117
- paymentHistoryCanceledLabel: "Payment canceled",
118
- paymentHistoryOtherLabel: "Payment",
119
- paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
120
- paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
121
- paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
122
- paymentHistoryMarkedPaidLabel: "Marked as paid",
123
- paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
124
- paymentHistoryPartiallyPaidLabel: "Partial payment",
125
- paymentHistoryRevertedLabel: "Payment reverted",
126
- paymentHistoryMethodLabels: {
127
- ach: "ACH",
128
- us_ach: "ACH",
129
- wire: "Wire",
130
- check: "Check",
131
- paper_check: "Check",
132
- bank_account: "Bank transfer",
133
- card: "Card"
134
- }
3
+ var t = {
4
+ dateLabel: (e) => new Date(e).toLocaleDateString("en-US", {
5
+ month: "short",
6
+ day: "numeric",
7
+ year: "numeric"
8
+ }),
9
+ timeLabel: (e) => new Date(e).toLocaleTimeString(void 0, {
10
+ hour: "numeric",
11
+ minute: "2-digit",
12
+ timeZoneName: "short"
13
+ }),
14
+ byActor: (e, t) => `${e} by ${t}`,
15
+ formatAmount: (t) => e(t) ?? "",
16
+ billCreated: "Bill created",
17
+ createdManually: "Data entered manually",
18
+ createdFromUpload: "File uploaded and scanned automatically",
19
+ createdFromEmail: "File emailed and scanned automatically",
20
+ billDetailsUpdated: "Bill details updated",
21
+ submittedForReview: "Finalized and submitted for review",
22
+ approvalRequested: "Approval requested",
23
+ approved: "Approved",
24
+ approvedCount: (e, t) => `Approved (${e} of ${t})`,
25
+ approvedAutomatically: "Approved automatically",
26
+ rejected: "Rejected",
27
+ policyOverrideApproved: "Policy override: Approved",
28
+ policyOverrideRejected: "Policy override: Rejected",
29
+ actorWithReason: (e, t) => `${e}: "${t}"`,
30
+ quotedReason: (e) => `"${e}"`,
31
+ cancelled: "Cancelled",
32
+ reopened: "Re-opened for edit",
33
+ paymentReleased: "Payment released",
34
+ paid: (e) => `Paid ${e}`,
35
+ paymentReverted: "Payment reverted",
36
+ billMarkedAsFullyPaid: "Bill marked as fully paid",
37
+ billMarkedAsPartiallyPaid: "Bill marked as partially paid",
38
+ draftDeleted: "Draft deleted",
39
+ fileAttached: "File attached",
40
+ fileRemoved: "File removed",
41
+ creditNoteLinked: "Credit note linked",
42
+ creditNoteUnlinked: "Credit note unlinked",
43
+ lineItemsUpdated: "Line items updated",
44
+ lineItemAdded: "Line item added",
45
+ lineItemUpdated: "Line item updated",
46
+ lineItemRemoved: "Line item removed"
135
47
  };
136
- function u(e) {
137
- return {
138
- ...l.paymentHistoryMethodLabels,
139
- ...e
140
- };
141
- }
142
48
  //#endregion
143
- export { r as AWAITING_APPROVAL_LABEL_EN, i as AWAITING_APPROVAL_UNKNOWN_LABEL_EN, e as BILL_DETAIL_ACTIONS_LABELS_EN, l as PAYMENT_HISTORY_LABELS_EN, n as SCHEDULED_STATUS_BADGE_LABEL_EN, t as SCHEDULED_SUMMARY_LABEL_EN, c as mergeBillDetailActionsLabels, s as mergeDecisionDialogCopy, u as mergePaymentHistoryMethodLabels };
49
+ export { t as PAYABLE_AUDIT_HISTORY_LABELS_EN };