@tesouro/embedded-components-react 0.5.19 → 0.5.23

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 (134) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +2 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -91
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +78 -83
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -3
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -49
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +47 -136
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +136 -33
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +33 -187
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +188 -75
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -21
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +22 -232
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +223 -210
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +202 -108
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +126 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -47
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +47 -53
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +49 -202
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +202 -31
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -234
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -19
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +19 -434
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +436 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -38
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +35 -231
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +233 -3
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -10
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +10 -110
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +112 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -46
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +43 -18
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +239 -104
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +110 -206
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +213 -3
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -8
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +6 -113
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +115 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -24
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +25 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +2 -2
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -16
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +16 -20
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +21 -12
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -9
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +140 -139
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +139 -134
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -1
  65. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
  66. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index10.js +6 -6
  68. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index11.js +3 -0
  69. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index12.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +24 -0
  71. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index14.js +7 -7
  72. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index15.js +7 -7
  73. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index16.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index17.js +7 -7
  75. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index18.js +6 -6
  76. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index19.js +7 -7
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +10 -0
  78. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index20.js +1 -1
  79. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index21.js +7 -7
  80. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index22.js +6 -6
  81. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index23.js +7 -7
  82. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index3.js +4 -4
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +29 -0
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +10 -0
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +10 -0
  86. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index7.js +7 -7
  87. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index8.js +6 -6
  88. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index9.js +6 -6
  89. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index10.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index11.js +4 -4
  91. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index12.js +9 -9
  92. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index13.js +1 -1
  93. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index14.js +6 -6
  94. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index15.js +8 -8
  95. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index16.js +5 -5
  96. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index17.js +11 -11
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js +10 -0
  98. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index3.js +1 -1
  99. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index4.js +2 -2
  100. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index5.js +1 -1
  101. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index6.js +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index7.js +3 -3
  103. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index8.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index9.js +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index10.js +5 -5
  106. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index11.js +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index12.js +4 -4
  108. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index13.js +1 -1
  109. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index14.js +2 -2
  110. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index15.js +4 -4
  111. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index16.js +5 -5
  112. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index17.js +4 -4
  113. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index18.js +2 -2
  114. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index2.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index3.js +2 -2
  116. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index4.js +2 -2
  117. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index5.js +3 -3
  118. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index6.js +1 -1
  119. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index7.js +2 -2
  120. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index8.js +4 -4
  121. package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index9.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +12 -1
  123. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  125. package/package.json +1 -1
  126. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +0 -3
  127. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +0 -24
  128. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index2.js +0 -10
  129. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +0 -29
  130. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +0 -10
  131. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +0 -10
  132. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +0 -9
  133. /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index.js +0 -0
  134. /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index.js +0 -0
@@ -1,141 +1,52 @@
1
+ import { derivePayableStatus as e } from "./index7.js";
2
+ import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../ui/dist/index18.js";
3
+ import "../../ui/dist/index.js";
1
4
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.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
- optionalHint: "Optional"
23
- }
24
- },
25
- cancel: {
26
- title: "Cancel this bill?",
27
- description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
28
- confirmButton: "Cancel bill"
29
- },
30
- cancelScheduledPayment: {
31
- title: "Cancel this scheduled payment?",
32
- description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
33
- confirmButton: "Cancel payment"
34
- },
35
- forceApprove: {
36
- title: "Override approval policy?",
37
- 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.",
38
- confirmButton: "Override and approve",
39
- noApprovalPolicy: {
40
- title: "Approve this bill?",
41
- description: "This bill has no approval policy applied. Approving now will be recorded in the audit history and can't be undone.",
42
- confirmButton: "Approve bill"
43
- }
44
- },
45
- forceReject: {
46
- title: "Override approval policy?",
47
- 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.",
48
- confirmButton: "Override and reject",
49
- noApprovalPolicy: {
50
- title: "Reject this bill?",
51
- description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
52
- confirmButton: "Reject bill"
53
- }
54
- },
55
- cancelButton: "Cancel"
56
- },
57
- actionError: "Couldn't update this bill. Try again.",
58
- actionSuccess: {
59
- approve: "Bill approved.",
60
- reject: "Bill rejected.",
61
- markAsPaid: "Bill marked as paid.",
62
- cancel: "Bill canceled.",
63
- cancelScheduledPayment: "Scheduled payment canceled.",
64
- reopen: "Bill reopened.",
65
- forceApprove: "Bill approved, overriding the approval policy.",
66
- forceReject: "Bill rejected, overriding the approval policy.",
67
- forceApproveNoApprovalPolicy: "Bill approved.",
68
- forceRejectNoApprovalPolicy: "Bill rejected."
69
- }
70
- }, t = (e) => `Payment scheduled for ${e}`, n = [
71
- "reject",
72
- "cancel",
73
- "cancelScheduledPayment",
74
- "forceApprove",
75
- "forceReject"
76
- ];
77
- function r(e, t) {
78
- let n = e.reason ? {
79
- ...e.reason,
80
- ...t?.reason
81
- } : void 0, r = e.noApprovalPolicy ? {
82
- ...e.noApprovalPolicy,
83
- ...t?.noApprovalPolicy
84
- } : void 0, i = {
85
- ...e,
86
- ...t,
87
- reason: n,
88
- noApprovalPolicy: r
89
- };
90
- return n || delete i.reason, r || delete i.noApprovalPolicy, i;
91
- }
92
- function i(e, t) {
93
- let i = {
94
- ...e,
95
- ...t
96
- };
97
- for (let a of n) i[a] = r(e[a], t?.[a]);
98
- return i;
99
- }
100
- function a(t) {
101
- let n = e;
102
- return {
103
- ...n,
104
- ...t,
105
- decisionDialog: i(n.decisionDialog, t?.decisionDialog),
106
- actionSuccess: {
107
- ...n.actionSuccess,
108
- ...t?.actionSuccess
5
+ var n = /* @__PURE__ */ new Set([
6
+ "credit_note_linked",
7
+ "credit_note_unlinked",
8
+ "line_item_added",
9
+ "line_item_updated",
10
+ "line_item_removed",
11
+ "deleted"
12
+ ]);
13
+ function r(n, r, i) {
14
+ switch (n) {
15
+ case "payable_created": return r?.source_of_payable_data === "ocr" ? i.billUploaded : i.billAdded;
16
+ case "payable_updated": return i.billUpdated;
17
+ case "file_attached": return i.attachmentAdded;
18
+ case "submitted_for_approval": return i.submittedForApproval;
19
+ case "approval_requested": return i.approvalRequested;
20
+ case "approval_action": {
21
+ let e = r?.action, t = r?.reject_reason;
22
+ return e === "approve" ? i.approved : e === "reject" ? typeof t == "string" && t ? i.rejectedWithReason(t) : i.rejected : void 0;
109
23
  }
110
- };
111
- }
112
- var o = {
113
- paymentHistorySentLabel: "Payment sent",
114
- paymentHistoryScheduledLabel: "Payment scheduled",
115
- paymentHistoryCanceledLabel: "Payment canceled",
116
- paymentHistoryOtherLabel: "Payment",
117
- paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
118
- paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
119
- paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
120
- paymentHistoryMarkedPaidLabel: "Marked as paid",
121
- paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
122
- paymentHistoryPartiallyPaidLabel: "Partial payment",
123
- paymentHistoryRevertedLabel: "Payment reverted",
124
- paymentHistoryMethodLabels: {
125
- ach: "ACH",
126
- us_ach: "ACH",
127
- wire: "Wire",
128
- check: "Check",
129
- paper_check: "Check",
130
- bank_account: "Bank transfer",
131
- card: "Card"
24
+ case "auto_approved": return i.autoApproved;
25
+ case "reopened": return i.reopened;
26
+ case "marked_as_paid": return i.markedAsPaid;
27
+ case "marked_as_partially_paid": return i.markedAsPartiallyPaid;
28
+ case "payment_reverted": return i.paymentReverted;
29
+ case "status_changed": {
30
+ let n = r?.new_status;
31
+ if (typeof n != "string") return;
32
+ let a = e({ apiStatus: n }).status;
33
+ return i.statusChanged(t[a] ?? t.unknown);
34
+ }
35
+ default: return;
132
36
  }
133
- };
134
- function s(e) {
135
- return {
136
- ...o.paymentHistoryMethodLabels,
137
- ...e
138
- };
37
+ }
38
+ function i(e, t, i) {
39
+ let a = new Map(t.map((e) => [e.id, e.name]));
40
+ return e.filter((e) => !n.has(e.event_type)).map((e) => {
41
+ let t = r(e.event_type, e.event_data, i);
42
+ if (!t) return;
43
+ let n = e.entity_user_id ? a.get(e.entity_user_id) : void 0;
44
+ return {
45
+ id: e.id,
46
+ dateLabel: i.dateLabel(e.timestamp),
47
+ description: n ? i.byActor(t, n) : t
48
+ };
49
+ }).filter((e) => !!e);
139
50
  }
140
51
  //#endregion
141
- export { e as BILL_DETAIL_ACTIONS_LABELS_EN, o as PAYMENT_HISTORY_LABELS_EN, t as SCHEDULED_SUMMARY_LABEL_EN, a as mergeBillDetailActionsLabels, i as mergeDecisionDialogCopy, s as mergePaymentHistoryMethodLabels };
52
+ export { i as buildBillHistory };
@@ -1,38 +1,141 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js
3
- var n = {
4
- previewUnavailable: "Preview not available for this file type.",
5
- openFile: "Open file"
6
- };
7
- function r(r, i = {}) {
8
- if (r.mimetype === "application/pdf") return /* @__PURE__ */ e("iframe", {
9
- src: `${r.url}#toolbar=0&navpanes=0`,
10
- title: r.name,
11
- referrerPolicy: "no-referrer",
12
- className: "ttw:h-full ttw:w-full ttw:border-0"
13
- });
14
- if (r.mimetype.startsWith("image/")) return /* @__PURE__ */ e("img", {
15
- src: r.url,
16
- alt: r.name,
17
- className: "ttw:max-h-full ttw:max-w-full ttw:object-contain"
18
- });
19
- let a = {
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
+ optionalHint: "Optional"
23
+ }
24
+ },
25
+ cancel: {
26
+ title: "Cancel this bill?",
27
+ description: "Cancelling is permanent. The bill can't be reopened, edited, or paid afterwards.",
28
+ confirmButton: "Cancel bill"
29
+ },
30
+ cancelScheduledPayment: {
31
+ title: "Cancel this scheduled payment?",
32
+ description: "The payment will not be sent. The bill stays ready to pay, so you can schedule it again for another date.",
33
+ confirmButton: "Cancel payment"
34
+ },
35
+ forceApprove: {
36
+ title: "Override approval policy?",
37
+ 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.",
38
+ confirmButton: "Override and approve",
39
+ noApprovalPolicy: {
40
+ title: "Approve this bill?",
41
+ description: "This bill has no approval policy applied. Approving now will be recorded in the audit history and can't be undone.",
42
+ confirmButton: "Approve bill"
43
+ }
44
+ },
45
+ forceReject: {
46
+ title: "Override approval policy?",
47
+ 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.",
48
+ confirmButton: "Override and reject",
49
+ noApprovalPolicy: {
50
+ title: "Reject this bill?",
51
+ description: "This bill has no approval policy applied. Rejecting now will be recorded in the audit history and can't be undone.",
52
+ confirmButton: "Reject bill"
53
+ }
54
+ },
55
+ cancelButton: "Cancel"
56
+ },
57
+ actionError: "Couldn't update this bill. Try again.",
58
+ actionSuccess: {
59
+ approve: "Bill approved.",
60
+ reject: "Bill rejected.",
61
+ markAsPaid: "Bill marked as paid.",
62
+ cancel: "Bill canceled.",
63
+ cancelScheduledPayment: "Scheduled payment canceled.",
64
+ reopen: "Bill reopened.",
65
+ forceApprove: "Bill approved, overriding the approval policy.",
66
+ forceReject: "Bill rejected, overriding the approval policy.",
67
+ forceApproveNoApprovalPolicy: "Bill approved.",
68
+ forceRejectNoApprovalPolicy: "Bill rejected."
69
+ }
70
+ }, t = (e) => `Payment scheduled for ${e}`, n = [
71
+ "reject",
72
+ "cancel",
73
+ "cancelScheduledPayment",
74
+ "forceApprove",
75
+ "forceReject"
76
+ ];
77
+ function r(e, t) {
78
+ let n = e.reason ? {
79
+ ...e.reason,
80
+ ...t?.reason
81
+ } : void 0, r = e.noApprovalPolicy ? {
82
+ ...e.noApprovalPolicy,
83
+ ...t?.noApprovalPolicy
84
+ } : void 0, i = {
85
+ ...e,
86
+ ...t,
87
+ reason: n,
88
+ noApprovalPolicy: r
89
+ };
90
+ return n || delete i.reason, r || delete i.noApprovalPolicy, i;
91
+ }
92
+ function i(e, t) {
93
+ let i = {
94
+ ...e,
95
+ ...t
96
+ };
97
+ for (let a of n) i[a] = r(e[a], t?.[a]);
98
+ return i;
99
+ }
100
+ function a(t) {
101
+ let n = e;
102
+ return {
20
103
  ...n,
21
- ...i
104
+ ...t,
105
+ decisionDialog: i(n.decisionDialog, t?.decisionDialog),
106
+ actionSuccess: {
107
+ ...n.actionSuccess,
108
+ ...t?.actionSuccess
109
+ }
110
+ };
111
+ }
112
+ var o = {
113
+ paymentHistorySentLabel: "Payment sent",
114
+ paymentHistoryScheduledLabel: "Payment scheduled",
115
+ paymentHistoryCanceledLabel: "Payment canceled",
116
+ paymentHistoryOtherLabel: "Payment",
117
+ paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
118
+ paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
119
+ paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
120
+ paymentHistoryMarkedPaidLabel: "Marked as paid",
121
+ paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
122
+ paymentHistoryPartiallyPaidLabel: "Partial payment",
123
+ paymentHistoryRevertedLabel: "Payment reverted",
124
+ paymentHistoryMethodLabels: {
125
+ ach: "ACH",
126
+ us_ach: "ACH",
127
+ wire: "Wire",
128
+ check: "Check",
129
+ paper_check: "Check",
130
+ bank_account: "Bank transfer",
131
+ card: "Card"
132
+ }
133
+ };
134
+ function s(e) {
135
+ return {
136
+ ...o.paymentHistoryMethodLabels,
137
+ ...e
22
138
  };
23
- return /* @__PURE__ */ t("div", {
24
- className: "ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:p-4 ttw:text-center",
25
- children: [/* @__PURE__ */ e("p", {
26
- className: "ttw:text-sm ttw:text-muted-foreground",
27
- children: a.previewUnavailable
28
- }), /* @__PURE__ */ e("a", {
29
- href: r.url,
30
- target: "_blank",
31
- rel: "noreferrer",
32
- className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:underline ttw:underline-offset-2",
33
- children: a.openFile
34
- })]
35
- });
36
139
  }
37
140
  //#endregion
38
- export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };
141
+ export { e as BILL_DETAIL_ACTIONS_LABELS_EN, o as PAYMENT_HISTORY_LABELS_EN, t as SCHEDULED_SUMMARY_LABEL_EN, a as mergeBillDetailActionsLabels, i as mergeDecisionDialogCopy, s as mergePaymentHistoryMethodLabels };
@@ -1,192 +1,38 @@
1
- import { BILL_REJECTED_BANNER_LABELS_EN as e } from "../../ui/dist/index71.js";
2
- import { UNSAVED_BILL_DIALOG_LABELS_EN as t } from "../../ui/dist/index108.js";
3
- import "../../ui/dist/index.js";
4
- import { PAY_BILL_FLOW_LABELS_EN as n, mergePayBillFlowLabels as r } from "./index25.js";
5
- import { MARK_AS_PAID_FLOW_LABELS_EN as i, mergeMarkAsPaidFlowLabels as a } from "./index15.js";
6
- import "./index18.js";
7
- import { APPROVAL_POLICY_RULE_COPY_EN as o } from "./index29.js";
8
- import { BILL_DETAIL_ACTIONS_LABELS_EN as s, PAYMENT_HISTORY_LABELS_EN as c, SCHEDULED_SUMMARY_LABEL_EN as l, mergeBillDetailActionsLabels as u, mergePaymentHistoryMethodLabels as d } from "./index45.js";
9
- import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as f } from "./index46.js";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
10
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js
11
- var p = {
12
- unmappedValidationError: (e, t) => `${e}: ${t}`,
13
- unknownValidationField: "(unknown field)",
14
- requiredField: "This field is required.",
15
- saveFailed: "We could not save this bill. Try again.",
16
- discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
17
- finalizeFailed: "We could not submit this bill. Try again.",
18
- draftSaved: "Bill saved as a draft.",
19
- submittedSaved: "Bill updated.",
20
- submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
21
- billFinalized: "Bill submitted for approval.",
22
- numbersOnly: "Enter numbers only.",
23
- unreadableMoney: "Enter a valid amount.",
24
- unusableQuantity: "Enter a quantity greater than 0.",
25
- lineItemsNeedAttention: "Check the highlighted line items before saving.",
26
- unreadableDiscount: "Enter a valid discount amount.",
27
- unreadableTax: "Enter a valid tax amount.",
28
- unreadableTotal: "Enter a valid total amount.",
29
- totalNotGreaterThanZero: "Total amount must be greater than $0."
30
- }, m = {
31
- achMethod: "via ACH bank transfer",
32
- noMethod: "No payment method on file",
33
- accountHolder: "Account holder",
34
- routingNumber: "Routing number",
35
- accountNumber: "Account number",
36
- paymentMethodLoading: "Loading payment method...",
37
- paymentMethodUnavailable: "We could not load payment methods. Try again.",
38
- searchFailed: "We could not load vendors. Try again.",
39
- vendorDetailsFailed: "We could not load this vendor. Try again."
40
- }, h = {
41
- attachFailed: "We could not attach that file. Try again.",
42
- deleteFailed: "We could not remove that document. Try again.",
43
- noDocument: "No document attached to this bill.",
44
- pendingDeletionNotice: "This document will be removed when you save this bill.",
45
- preview: f
46
- }, g = {
47
- ...c,
48
- notProvided: "Not provided",
49
- paymentInstructionsValue: (e) => `Account ending in ${e}`,
50
- paymentInstructionsNotSet: "Not set",
51
- accountHolderFieldLabel: "Account holder",
52
- routingNumberFieldLabel: "Routing number",
53
- accountNumberFieldLabel: "Account number",
54
- invoiceDateRow: "Invoice date",
55
- dueDateRow: "Due date",
56
- invoiceNumberRow: "Invoice number",
57
- glCodeMissing: "GL code not specified",
58
- glCodeUnavailable: "GL code unavailable",
59
- qtyPriceValue: (e, t) => `${e} x ${t}`,
60
- subtotalRow: "Subtotal",
61
- taxRow: "Tax",
62
- discountRow: "Discounts",
63
- totalRow: "Total",
64
- paidOnLabel: (e) => `Paid on ${e}`,
65
- paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
66
- paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again.",
67
- rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
68
- rejectedOn: (e) => `Rejected on ${e}`,
69
- rejectionMessage: (e) => `"${e}"`
70
- }, _ = {
71
- dateLabel: (e) => new Date(e).toLocaleString("en-US", {
72
- month: "short",
73
- day: "numeric",
74
- year: "numeric",
75
- hour: "numeric",
76
- minute: "2-digit"
77
- }),
78
- byActor: (e, t) => `${e} by ${t}`,
79
- billAdded: "Bill added",
80
- billUploaded: "Bill uploaded",
81
- billUpdated: "Bill updated",
82
- attachmentAdded: "Attachment added",
83
- submittedForApproval: "Submitted for approval",
84
- approvalRequested: "Approval requested",
85
- approved: "Approved",
86
- autoApproved: "Approved automatically",
87
- rejected: "Rejected",
88
- rejectedWithReason: (e) => `Rejected: ${e}`,
89
- reopened: "Reopened",
90
- markedAsPaid: "Marked as paid",
91
- markedAsPartiallyPaid: "Marked as partially paid",
92
- paymentReverted: "Payment reverted",
93
- statusChanged: (e) => `Status changed to ${e}`
94
- }, v = {
95
- newTitle: "New bill",
96
- extractedTitle: (e) => `Bill from ${e}`,
97
- viewTitle: (e) => `Bill from ${e}`,
98
- readOnlyTitle: "Bill details",
99
- addedOn: (e) => `Added on ${e}`,
100
- unsavedChanges: t,
101
- scheduledSummary: l,
102
- actions: s,
103
- detail: g,
104
- history: _,
105
- payBill: n,
106
- markAsPaid: i,
107
- approvalPolicyCopy: o,
108
- deleteDraft: {
109
- menuItem: "Delete draft",
110
- dialog: {
111
- title: "Delete this draft?",
112
- description: "The draft and anything entered on it are removed. This can't be undone.",
113
- confirmButton: "Delete draft"
114
- },
115
- error: "Couldn't delete this draft. Try again."
116
- },
117
- lineItemsGlCodeUnavailable: {
118
- loadError: "Couldn't load GL codes",
119
- noAccess: "You don't have access to GL codes",
120
- empty: "No GL codes set up yet"
121
- },
122
- rejectedBanner: e
3
+ var n = {
4
+ previewUnavailable: "Preview not available for this file type.",
5
+ openFile: "Open file"
123
6
  };
124
- function y(e) {
125
- return {
126
- ...v,
127
- ...e,
128
- actions: u(e?.actions),
129
- detail: {
130
- ...v.detail,
131
- ...e?.detail,
132
- paymentHistoryMethodLabels: d(e?.detail?.paymentHistoryMethodLabels)
133
- },
134
- history: {
135
- ...v.history,
136
- ...e?.history
137
- },
138
- payBill: r(e?.payBill),
139
- markAsPaid: a(e?.markAsPaid),
140
- lineItemsGlCodeUnavailable: {
141
- ...v.lineItemsGlCodeUnavailable,
142
- ...e?.lineItemsGlCodeUnavailable
143
- },
144
- unsavedChanges: {
145
- ...v.unsavedChanges,
146
- ...e?.unsavedChanges
147
- },
148
- rejectedBanner: {
149
- ...v.rejectedBanner,
150
- ...e?.rejectedBanner
151
- },
152
- approvalPolicyCopy: {
153
- ...v.approvalPolicyCopy,
154
- ...e?.approvalPolicyCopy
155
- },
156
- deleteDraft: {
157
- ...v.deleteDraft,
158
- ...e?.deleteDraft,
159
- dialog: (() => {
160
- let t = {
161
- ...v.deleteDraft.dialog,
162
- ...e?.deleteDraft?.dialog
163
- };
164
- return delete t.reason, t;
165
- })()
166
- }
7
+ function r(r, i = {}) {
8
+ if (r.mimetype === "application/pdf") return /* @__PURE__ */ e("iframe", {
9
+ src: `${r.url}#toolbar=0&navpanes=0`,
10
+ title: r.name,
11
+ referrerPolicy: "no-referrer",
12
+ className: "ttw:h-full ttw:w-full ttw:border-0"
13
+ });
14
+ if (r.mimetype.startsWith("image/")) return /* @__PURE__ */ e("img", {
15
+ src: r.url,
16
+ alt: r.name,
17
+ className: "ttw:max-h-full ttw:max-w-full ttw:object-contain"
18
+ });
19
+ let a = {
20
+ ...n,
21
+ ...i
167
22
  };
23
+ return /* @__PURE__ */ t("div", {
24
+ className: "ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:p-4 ttw:text-center",
25
+ children: [/* @__PURE__ */ e("p", {
26
+ className: "ttw:text-sm ttw:text-muted-foreground",
27
+ children: a.previewUnavailable
28
+ }), /* @__PURE__ */ e("a", {
29
+ href: r.url,
30
+ target: "_blank",
31
+ rel: "noreferrer",
32
+ className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:underline ttw:underline-offset-2",
33
+ children: a.openFile
34
+ })]
35
+ });
168
36
  }
169
- var b = {
170
- createTitle: "New vendor",
171
- editTitle: "Edit vendor",
172
- close: "Close the vendor form",
173
- nameLabel: "Name",
174
- addAddress: "Add address (optional)",
175
- paymentMethodsHeading: "Accepted payment methods",
176
- paymentMethodsDescription: "How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later — you just won't be able to send payments until you do.",
177
- achTitle: "ACH bank transfer",
178
- achDescription: "Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.",
179
- addBankAccount: "Add bank account",
180
- accountHolderNameLabel: "Account holder name",
181
- routingNumberLabel: "Routing number",
182
- accountNumberLabel: "Account number",
183
- achHelp: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
184
- cancel: "Cancel",
185
- save: "Save vendor",
186
- discardConfirmTitle: "Discard unsaved changes?",
187
- discardConfirmDescription: "You've made changes to this vendor that haven't been saved. If you leave now, they'll be lost.",
188
- keepEditingAction: "Keep editing",
189
- discardChangesAction: "Discard changes"
190
- };
191
37
  //#endregion
192
- export { p as BILL_CREATE_MESSAGE_LABELS_EN, v as BILL_CREATE_SCREEN_LABELS_EN, g as BILL_DETAIL_VIEW_LABELS_EN, _ as BILL_HISTORY_LABELS_EN, h as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, b as VENDOR_INLINE_FORM_LABELS_EN, m as VENDOR_SECTION_PROPS_LABELS_EN, y as mergeBillCreateScreenCopy };
38
+ export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };