@tesouro/embedded-components-react 0.5.3 → 0.5.4

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 (90) 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/feature/dist/index.js +13 -13
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +70 -5
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +37 -64
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +110 -38
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +73 -104
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -87
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +21 -7
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +22 -17
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +63 -23
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -66
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +81 -2
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +3 -78
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +5 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +4 -5
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +32 -3
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +39 -30
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +166 -37
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +39 -164
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -48
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +50 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +11 -45
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +8 -13
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +14 -8
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +59 -7
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -64
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +24 -8
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +139 -18
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +16 -139
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -24
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +41 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +14 -39
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +8 -16
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +91 -8
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +86 -80
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -97
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +49 -3
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +135 -47
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +33 -135
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +186 -33
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +75 -186
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +21 -75
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -14
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +232 -22
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +210 -223
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +103 -202
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -121
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +31 -47
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +198 -27
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +31 -198
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -31
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +19 -240
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +24 -25
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +427 -19
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -433
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +38 -4
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +220 -35
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -224
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +10 -6
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +57 -21
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +110 -10
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -112
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -58
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +101 -239
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +202 -107
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -209
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +4 -5
  87. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  89. package/package.json +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
@@ -1,52 +1,140 @@
1
- import { derivePayableStatus as e } from "./index8.js";
2
- import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../ui/dist/index17.js";
3
- import "../../ui/dist/index.js";
4
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js
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;
23
- }
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;
2
+ var e = {
3
+ payBill: "Pay bill",
4
+ markAsPaid: "Mark as paid",
5
+ reject: "Reject",
6
+ approve: "Approve",
7
+ cancel: "Cancel bill",
8
+ cancelScheduledPayment: "Cancel scheduled payment",
9
+ reopen: "Reopen bill",
10
+ forceApprove: "Approve",
11
+ forceReject: "Reject",
12
+ policyOverridesHeading: "Policy overrides",
13
+ decisionDialog: {
14
+ reject: {
15
+ title: "Reject this bill?",
16
+ description: "The bill goes back as rejected and nobody else is asked to approve it.",
17
+ confirmButton: "Reject bill",
18
+ reason: {
19
+ label: "Reason",
20
+ placeholder: "Tell the submitter what needs to change",
21
+ optionalHint: "Optional"
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."
36
68
  }
69
+ }, t = (e) => `Payment scheduled for ${e}`, n = [
70
+ "reject",
71
+ "cancel",
72
+ "cancelScheduledPayment",
73
+ "forceApprove",
74
+ "forceReject"
75
+ ];
76
+ function r(e, t) {
77
+ let n = e.reason ? {
78
+ ...e.reason,
79
+ ...t?.reason
80
+ } : void 0, r = e.noApprovalPolicy ? {
81
+ ...e.noApprovalPolicy,
82
+ ...t?.noApprovalPolicy
83
+ } : void 0, i = {
84
+ ...e,
85
+ ...t,
86
+ reason: n,
87
+ noApprovalPolicy: r
88
+ };
89
+ return n || delete i.reason, r || delete i.noApprovalPolicy, i;
90
+ }
91
+ function i(e, t) {
92
+ let i = {
93
+ ...e,
94
+ ...t
95
+ };
96
+ for (let a of n) i[a] = r(e[a], t?.[a]);
97
+ return i;
37
98
  }
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);
99
+ function a(t) {
100
+ let n = e;
101
+ return {
102
+ ...n,
103
+ ...t,
104
+ decisionDialog: i(n.decisionDialog, t?.decisionDialog),
105
+ actionSuccess: {
106
+ ...n.actionSuccess,
107
+ ...t?.actionSuccess
108
+ }
109
+ };
110
+ }
111
+ var o = {
112
+ paymentHistorySentLabel: "Payment sent",
113
+ paymentHistoryScheduledLabel: "Payment scheduled",
114
+ paymentHistoryCanceledLabel: "Payment canceled",
115
+ paymentHistoryOtherLabel: "Payment",
116
+ paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
117
+ paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
118
+ paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
119
+ paymentHistoryMarkedPaidLabel: "Marked as paid",
120
+ paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
121
+ paymentHistoryPartiallyPaidLabel: "Partial payment",
122
+ paymentHistoryRevertedLabel: "Payment reverted",
123
+ paymentHistoryMethodLabels: {
124
+ ach: "ACH",
125
+ us_ach: "ACH",
126
+ wire: "Wire",
127
+ check: "Check",
128
+ paper_check: "Check",
129
+ bank_account: "Bank transfer",
130
+ card: "Card"
131
+ }
132
+ };
133
+ function s(e) {
134
+ return {
135
+ ...o.paymentHistoryMethodLabels,
136
+ ...e
137
+ };
50
138
  }
51
139
  //#endregion
52
- export { i as buildBillHistory };
140
+ 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,140 +1,38 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js
2
- var e = {
3
- payBill: "Pay bill",
4
- markAsPaid: "Mark as paid",
5
- reject: "Reject",
6
- approve: "Approve",
7
- cancel: "Cancel bill",
8
- cancelScheduledPayment: "Cancel scheduled payment",
9
- reopen: "Reopen bill",
10
- forceApprove: "Approve",
11
- forceReject: "Reject",
12
- policyOverridesHeading: "Policy overrides",
13
- decisionDialog: {
14
- reject: {
15
- title: "Reject this bill?",
16
- description: "The bill goes back as rejected and nobody else is asked to approve it.",
17
- confirmButton: "Reject bill",
18
- reason: {
19
- label: "Reason",
20
- placeholder: "Tell the submitter what needs to change",
21
- optionalHint: "Optional"
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 = [
70
- "reject",
71
- "cancel",
72
- "cancelScheduledPayment",
73
- "forceApprove",
74
- "forceReject"
75
- ];
76
- function r(e, t) {
77
- let n = e.reason ? {
78
- ...e.reason,
79
- ...t?.reason
80
- } : void 0, r = e.noApprovalPolicy ? {
81
- ...e.noApprovalPolicy,
82
- ...t?.noApprovalPolicy
83
- } : void 0, i = {
84
- ...e,
85
- ...t,
86
- reason: n,
87
- noApprovalPolicy: r
88
- };
89
- return n || delete i.reason, r || delete i.noApprovalPolicy, i;
90
- }
91
- function i(e, t) {
92
- let i = {
93
- ...e,
94
- ...t
95
- };
96
- for (let a of n) i[a] = r(e[a], t?.[a]);
97
- return i;
98
- }
99
- function a(t) {
100
- let n = e;
101
- return {
102
- ...n,
103
- ...t,
104
- decisionDialog: i(n.decisionDialog, t?.decisionDialog),
105
- actionSuccess: {
106
- ...n.actionSuccess,
107
- ...t?.actionSuccess
108
- }
109
- };
110
- }
111
- var o = {
112
- paymentHistorySentLabel: "Payment sent",
113
- paymentHistoryScheduledLabel: "Payment scheduled",
114
- paymentHistoryCanceledLabel: "Payment canceled",
115
- paymentHistoryOtherLabel: "Payment",
116
- paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
117
- paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
118
- paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
119
- paymentHistoryMarkedPaidLabel: "Marked as paid",
120
- paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
121
- paymentHistoryPartiallyPaidLabel: "Partial payment",
122
- paymentHistoryRevertedLabel: "Payment reverted",
123
- paymentHistoryMethodLabels: {
124
- ach: "ACH",
125
- us_ach: "ACH",
126
- wire: "Wire",
127
- check: "Check",
128
- paper_check: "Check",
129
- bank_account: "Bank transfer",
130
- card: "Card"
131
- }
3
+ var n = {
4
+ previewUnavailable: "Preview not available for this file type.",
5
+ openFile: "Open file"
132
6
  };
133
- function s(e) {
134
- return {
135
- ...o.paymentHistoryMethodLabels,
136
- ...e
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
137
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
+ });
138
36
  }
139
37
  //#endregion
140
- 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 };
38
+ export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };
@@ -1,38 +1,191 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { BILL_REJECTED_BANNER_LABELS_EN as e } from "../../ui/dist/index68.js";
2
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as t } from "../../ui/dist/index105.js";
3
+ import "../../ui/dist/index.js";
4
+ import { PAY_BILL_FLOW_LABELS_EN as n, mergePayBillFlowLabels as r } from "./index24.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 "./index28.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";
2
10
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js
3
- var n = {
4
- previewUnavailable: "Preview not available for this file type.",
5
- openFile: "Open file"
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
+ }, m = {
30
+ achMethod: "via ACH bank transfer",
31
+ noMethod: "No payment method on file",
32
+ accountHolder: "Account holder",
33
+ routingNumber: "Routing number",
34
+ accountNumber: "Account number",
35
+ paymentMethodLoading: "Loading payment method...",
36
+ paymentMethodUnavailable: "We could not load payment methods. Try again.",
37
+ searchFailed: "We could not load vendors. Try again.",
38
+ vendorDetailsFailed: "We could not load this vendor. Try again."
39
+ }, h = {
40
+ attachFailed: "We could not attach that file. Try again.",
41
+ deleteFailed: "We could not remove that document. Try again.",
42
+ noDocument: "No document attached to this bill.",
43
+ pendingDeletionNotice: "This document will be removed when you save this bill.",
44
+ preview: f
45
+ }, g = {
46
+ ...c,
47
+ notProvided: "Not provided",
48
+ paymentInstructionsValue: (e) => `Account ending in ${e}`,
49
+ paymentInstructionsNotSet: "Not set",
50
+ accountHolderFieldLabel: "Account holder",
51
+ routingNumberFieldLabel: "Routing number",
52
+ accountNumberFieldLabel: "Account number",
53
+ invoiceDateRow: "Invoice date",
54
+ dueDateRow: "Due date",
55
+ invoiceNumberRow: "Invoice number",
56
+ glCodeMissing: "GL code not specified",
57
+ glCodeUnavailable: "GL code unavailable",
58
+ qtyPriceValue: (e, t) => `${e} x ${t}`,
59
+ subtotalRow: "Subtotal",
60
+ taxRow: "Tax",
61
+ discountRow: "Discounts",
62
+ totalRow: "Total",
63
+ paidOnLabel: (e) => `Paid on ${e}`,
64
+ paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
65
+ paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again.",
66
+ rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
67
+ rejectedOn: (e) => `Rejected on ${e}`,
68
+ rejectionMessage: (e) => `"${e}"`
69
+ }, _ = {
70
+ dateLabel: (e) => new Date(e).toLocaleString("en-US", {
71
+ month: "short",
72
+ day: "numeric",
73
+ year: "numeric",
74
+ hour: "numeric",
75
+ minute: "2-digit"
76
+ }),
77
+ byActor: (e, t) => `${e} by ${t}`,
78
+ billAdded: "Bill added",
79
+ billUploaded: "Bill uploaded",
80
+ billUpdated: "Bill updated",
81
+ attachmentAdded: "Attachment added",
82
+ submittedForApproval: "Submitted for approval",
83
+ approvalRequested: "Approval requested",
84
+ approved: "Approved",
85
+ autoApproved: "Approved automatically",
86
+ rejected: "Rejected",
87
+ rejectedWithReason: (e) => `Rejected: ${e}`,
88
+ reopened: "Reopened",
89
+ markedAsPaid: "Marked as paid",
90
+ markedAsPartiallyPaid: "Marked as partially paid",
91
+ paymentReverted: "Payment reverted",
92
+ statusChanged: (e) => `Status changed to ${e}`
93
+ }, v = {
94
+ newTitle: "New bill",
95
+ extractedTitle: (e) => `Bill from ${e}`,
96
+ viewTitle: (e) => `Bill from ${e}`,
97
+ readOnlyTitle: "Bill details",
98
+ addedOn: (e) => `Added on ${e}`,
99
+ unsavedChanges: t,
100
+ scheduledSummary: l,
101
+ actions: s,
102
+ detail: g,
103
+ history: _,
104
+ payBill: n,
105
+ markAsPaid: i,
106
+ approvalPolicyCopy: o,
107
+ deleteDraft: {
108
+ menuItem: "Delete draft",
109
+ dialog: {
110
+ title: "Delete this draft?",
111
+ description: "The draft and anything entered on it are removed. This can't be undone.",
112
+ confirmButton: "Delete draft"
113
+ },
114
+ error: "Couldn't delete this draft. Try again."
115
+ },
116
+ lineItemsGlCodeUnavailable: {
117
+ loadError: "Couldn't load GL codes",
118
+ noAccess: "You don't have access to GL codes",
119
+ empty: "No GL codes set up yet"
120
+ },
121
+ rejectedBanner: e
6
122
  };
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
123
+ function y(e) {
124
+ return {
125
+ ...v,
126
+ ...e,
127
+ actions: u(e?.actions),
128
+ detail: {
129
+ ...v.detail,
130
+ ...e?.detail,
131
+ paymentHistoryMethodLabels: d(e?.detail?.paymentHistoryMethodLabels)
132
+ },
133
+ history: {
134
+ ...v.history,
135
+ ...e?.history
136
+ },
137
+ payBill: r(e?.payBill),
138
+ markAsPaid: a(e?.markAsPaid),
139
+ lineItemsGlCodeUnavailable: {
140
+ ...v.lineItemsGlCodeUnavailable,
141
+ ...e?.lineItemsGlCodeUnavailable
142
+ },
143
+ unsavedChanges: {
144
+ ...v.unsavedChanges,
145
+ ...e?.unsavedChanges
146
+ },
147
+ rejectedBanner: {
148
+ ...v.rejectedBanner,
149
+ ...e?.rejectedBanner
150
+ },
151
+ approvalPolicyCopy: {
152
+ ...v.approvalPolicyCopy,
153
+ ...e?.approvalPolicyCopy
154
+ },
155
+ deleteDraft: {
156
+ ...v.deleteDraft,
157
+ ...e?.deleteDraft,
158
+ dialog: (() => {
159
+ let t = {
160
+ ...v.deleteDraft.dialog,
161
+ ...e?.deleteDraft?.dialog
162
+ };
163
+ return delete t.reason, t;
164
+ })()
165
+ }
22
166
  };
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
167
  }
168
+ var b = {
169
+ createTitle: "New vendor",
170
+ editTitle: "Edit vendor",
171
+ close: "Close the vendor form",
172
+ nameLabel: "Name",
173
+ addAddress: "Add address (optional)",
174
+ paymentMethodsHeading: "Accepted payment methods",
175
+ 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.",
176
+ achTitle: "ACH bank transfer",
177
+ achDescription: "Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.",
178
+ addBankAccount: "Add bank account",
179
+ accountHolderNameLabel: "Account holder name",
180
+ routingNumberLabel: "Routing number",
181
+ accountNumberLabel: "Account number",
182
+ achHelp: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
183
+ cancel: "Cancel",
184
+ save: "Save vendor",
185
+ discardConfirmTitle: "Discard unsaved changes?",
186
+ discardConfirmDescription: "You've made changes to this vendor that haven't been saved. If you leave now, they'll be lost.",
187
+ keepEditingAction: "Keep editing",
188
+ discardChangesAction: "Discard changes"
189
+ };
37
190
  //#endregion
38
- export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };
191
+ 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 };