@tesouro/embedded-components-react 0.4.20 → 0.4.22

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 (179) 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 +12 -12
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +64 -37
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +38 -110
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +104 -73
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +87 -7
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +7 -21
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +17 -22
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +23 -63
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +66 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +2 -77
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +74 -3
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +4 -5
  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 +3 -32
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +30 -39
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +37 -166
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +164 -39
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +48 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -50
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +47 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +7 -7
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -24
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +18 -125
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +135 -16
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +24 -4
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -41
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +39 -87
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +79 -84
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +5 -25
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +95 -48
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +47 -119
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +119 -33
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +33 -177
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +186 -75
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +75 -21
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +22 -232
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +223 -204
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +202 -103
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +121 -13
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +25 -24
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +12 -47
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +47 -31
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +27 -198
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +198 -30
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +30 -234
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +240 -19
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +19 -383
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +416 -4
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +4 -35
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +35 -189
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +21 -57
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +214 -3
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -4
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +2 -44
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +46 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -8
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +6 -10
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +10 -110
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +112 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -127
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +124 -8
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +58 -5
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +8 -7
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -46
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +43 -18
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +20 -28
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +27 -82
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +83 -47
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +47 -250
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +239 -101
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +107 -202
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +209 -3
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +4 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +6 -113
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +115 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -24
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +25 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -12
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -97
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
  175. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  176. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
  177. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  178. package/package.json +1 -1
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
@@ -1,38 +1,124 @@
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/index42.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
+ 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
+ },
39
+ forceReject: {
40
+ title: "Override approval policy?",
41
+ 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.",
42
+ confirmButton: "Override and reject"
43
+ },
44
+ cancelButton: "Cancel"
45
+ },
46
+ actionError: "Couldn't update this bill. Try again.",
47
+ actionSuccess: {
48
+ approve: "Bill approved.",
49
+ reject: "Bill rejected.",
50
+ markAsPaid: "Bill marked as paid.",
51
+ cancel: "Bill canceled.",
52
+ cancelScheduledPayment: "Scheduled payment canceled.",
53
+ reopen: "Bill reopened.",
54
+ forceApprove: "Bill approved, overriding the approval policy.",
55
+ forceReject: "Bill rejected, overriding the approval policy."
56
+ }
57
+ }, t = (e) => `Payment scheduled for ${e}`, n = [
58
+ "reject",
59
+ "cancel",
60
+ "cancelScheduledPayment",
61
+ "forceApprove",
62
+ "forceReject"
63
+ ];
64
+ function r(e, t) {
65
+ let n = e.reason ? {
66
+ ...e.reason,
67
+ ...t?.reason
68
+ } : void 0, r = {
69
+ ...e,
70
+ ...t,
71
+ reason: n
72
+ };
73
+ return n || delete r.reason, r;
74
+ }
75
+ function i(e, t) {
76
+ let i = {
77
+ ...e,
78
+ ...t
79
+ };
80
+ for (let a of n) i[a] = r(e[a], t?.[a]);
81
+ return i;
82
+ }
83
+ function a(t) {
84
+ let n = e;
85
+ return {
20
86
  ...n,
21
- ...i
87
+ ...t,
88
+ decisionDialog: i(n.decisionDialog, t?.decisionDialog),
89
+ actionSuccess: {
90
+ ...n.actionSuccess,
91
+ ...t?.actionSuccess
92
+ }
93
+ };
94
+ }
95
+ var o = {
96
+ paymentHistorySentLabel: "Payment sent",
97
+ paymentHistoryScheduledLabel: "Payment scheduled",
98
+ paymentHistoryCanceledLabel: "Payment canceled",
99
+ paymentHistoryOtherLabel: "Payment",
100
+ paymentHistoryMethodSuffix: (e, t) => `${e} via ${t}`,
101
+ paymentHistoryOverpaidLabel: (e) => `+${e} overpaid`,
102
+ paymentHistoryMarkedPaidExternalLabel: "Marked as paid manually",
103
+ paymentHistoryMarkedPaidLabel: "Marked as paid",
104
+ paymentHistoryPartiallyPaidExternalLabel: "Partial payment marked manually",
105
+ paymentHistoryPartiallyPaidLabel: "Partial payment",
106
+ paymentHistoryRevertedLabel: "Payment reverted",
107
+ paymentHistoryMethodLabels: {
108
+ ach: "ACH",
109
+ us_ach: "ACH",
110
+ wire: "Wire",
111
+ check: "Check",
112
+ paper_check: "Check",
113
+ bank_account: "Bank transfer",
114
+ card: "Card"
115
+ }
116
+ };
117
+ function s(e) {
118
+ return {
119
+ ...o.paymentHistoryMethodLabels,
120
+ ...e
22
121
  };
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
122
  }
37
123
  //#endregion
38
- export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };
124
+ 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,182 +1,38 @@
1
- import { UNSAVED_BILL_DIALOG_LABELS_EN as e } from "../../ui/dist/index101.js";
2
- import "../../ui/dist/index.js";
3
- import { PAY_BILL_FLOW_LABELS_EN as t, mergePayBillFlowLabels as n } from "./index23.js";
4
- import { MARK_AS_PAID_FLOW_LABELS_EN as r, mergeMarkAsPaidFlowLabels as i } from "./index14.js";
5
- import "./index17.js";
6
- import { APPROVAL_POLICY_RULE_COPY_EN as a } from "./index27.js";
7
- import { BILL_DETAIL_ACTIONS_LABELS_EN as o, PAYMENT_HISTORY_LABELS_EN as s, SCHEDULED_SUMMARY_LABEL_EN as c, mergeBillDetailActionsLabels as l, mergePaymentHistoryMethodLabels as u } from "./index41.js";
8
- import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as d } from "./index42.js";
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
9
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
10
- var f = {
11
- unmappedValidationError: (e, t) => `${e}: ${t}`,
12
- unknownValidationField: "(unknown field)",
13
- requiredField: "This field is required.",
14
- saveFailed: "We could not save this bill. Try again.",
15
- discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
16
- finalizeFailed: "We could not submit this bill. Try again.",
17
- draftSaved: "Bill saved as a draft.",
18
- submittedSaved: "Bill updated.",
19
- submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
20
- billFinalized: "Bill submitted for approval.",
21
- numbersOnly: "Enter numbers only.",
22
- unreadableMoney: "Enter a valid amount.",
23
- unusableQuantity: "Enter a quantity greater than 0.",
24
- lineItemsNeedAttention: "Check the highlighted line items before saving.",
25
- unreadableDiscount: "Enter a valid discount amount.",
26
- unreadableTax: "Enter a valid tax amount.",
27
- unreadableTotal: "Enter a valid total amount."
28
- }, p = {
29
- achMethod: "via ACH bank transfer",
30
- noMethod: "No payment method on file",
31
- accountHolder: "Account holder",
32
- routingNumber: "Routing number",
33
- accountNumber: "Account number",
34
- paymentMethodLoading: "Loading payment method...",
35
- paymentMethodUnavailable: "We could not load payment methods. Try again.",
36
- searchFailed: "We could not load vendors. Try again.",
37
- vendorDetailsFailed: "We could not load this vendor. Try again."
38
- }, m = {
39
- attachFailed: "We could not attach that file. Try again.",
40
- deleteFailed: "We could not remove that document. Try again.",
41
- noDocument: "No document attached to this bill.",
42
- pendingDeletionNotice: "This document will be removed when you save this bill.",
43
- preview: d
44
- }, h = {
45
- ...s,
46
- notProvided: "Not provided",
47
- paymentInstructionsValue: (e) => `Account ending in ${e}`,
48
- paymentInstructionsNotSet: "Not set",
49
- accountHolderFieldLabel: "Account holder",
50
- routingNumberFieldLabel: "Routing number",
51
- accountNumberFieldLabel: "Account number",
52
- invoiceDateRow: "Invoice date",
53
- dueDateRow: "Due date",
54
- invoiceNumberRow: "Invoice number",
55
- glCodeMissing: "GL code not specified",
56
- glCodeUnavailable: "GL code unavailable",
57
- qtyPriceValue: (e, t) => `${e} x ${t}`,
58
- subtotalRow: "Subtotal",
59
- taxRow: "Tax",
60
- discountRow: "Discounts",
61
- totalRow: "Total",
62
- paidOnLabel: (e) => `Paid on ${e}`,
63
- paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
64
- paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again."
65
- }, g = {
66
- dateLabel: (e) => new Date(e).toLocaleString("en-US", {
67
- month: "short",
68
- day: "numeric",
69
- year: "numeric",
70
- hour: "numeric",
71
- minute: "2-digit"
72
- }),
73
- byActor: (e, t) => `${e} by ${t}`,
74
- billAdded: "Bill added",
75
- billUploaded: "Bill uploaded",
76
- billUpdated: "Bill updated",
77
- attachmentAdded: "Attachment added",
78
- submittedForApproval: "Submitted for approval",
79
- approvalRequested: "Approval requested",
80
- approved: "Approved",
81
- autoApproved: "Approved automatically",
82
- rejected: "Rejected",
83
- rejectedWithReason: (e) => `Rejected: ${e}`,
84
- reopened: "Reopened",
85
- markedAsPaid: "Marked as paid",
86
- markedAsPartiallyPaid: "Marked as partially paid",
87
- paymentReverted: "Payment reverted",
88
- statusChanged: (e) => `Status changed to ${e}`
89
- }, _ = {
90
- newTitle: "New bill",
91
- extractedTitle: (e) => `Bill from ${e}`,
92
- viewTitle: (e) => `Bill from ${e}`,
93
- readOnlyTitle: "Bill details",
94
- addedOn: (e) => `Added on ${e}`,
95
- unsavedChanges: e,
96
- scheduledSummary: c,
97
- actions: o,
98
- detail: h,
99
- history: g,
100
- payBill: t,
101
- markAsPaid: r,
102
- approvalPolicyCopy: a,
103
- deleteDraft: {
104
- menuItem: "Delete draft",
105
- dialog: {
106
- title: "Delete this draft?",
107
- description: "The draft and anything entered on it are removed. This can't be undone.",
108
- confirmButton: "Delete draft"
109
- },
110
- error: "Couldn't delete this draft. Try again."
111
- },
112
- lineItemsGlCodeUnavailable: {
113
- loadError: "Couldn't load GL codes",
114
- noAccess: "You don't have access to GL codes",
115
- empty: "No GL codes set up yet"
116
- }
3
+ var n = {
4
+ previewUnavailable: "Preview not available for this file type.",
5
+ openFile: "Open file"
117
6
  };
118
- function v(e) {
119
- return {
120
- ..._,
121
- ...e,
122
- actions: l(e?.actions),
123
- detail: {
124
- ..._.detail,
125
- ...e?.detail,
126
- paymentHistoryMethodLabels: u(e?.detail?.paymentHistoryMethodLabels)
127
- },
128
- history: {
129
- ..._.history,
130
- ...e?.history
131
- },
132
- payBill: n(e?.payBill),
133
- markAsPaid: i(e?.markAsPaid),
134
- lineItemsGlCodeUnavailable: {
135
- ..._.lineItemsGlCodeUnavailable,
136
- ...e?.lineItemsGlCodeUnavailable
137
- },
138
- unsavedChanges: {
139
- ..._.unsavedChanges,
140
- ...e?.unsavedChanges
141
- },
142
- approvalPolicyCopy: {
143
- ..._.approvalPolicyCopy,
144
- ...e?.approvalPolicyCopy
145
- },
146
- deleteDraft: {
147
- ..._.deleteDraft,
148
- ...e?.deleteDraft,
149
- dialog: (() => {
150
- let t = {
151
- ..._.deleteDraft.dialog,
152
- ...e?.deleteDraft?.dialog
153
- };
154
- return delete t.reason, t;
155
- })()
156
- }
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
157
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
+ });
158
36
  }
159
- var y = {
160
- createTitle: "New vendor",
161
- editTitle: "Edit vendor",
162
- close: "Close the vendor form",
163
- nameLabel: "Name",
164
- addAddress: "Add address (optional)",
165
- paymentMethodsHeading: "Accepted payment methods",
166
- 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.",
167
- achTitle: "ACH bank transfer",
168
- achDescription: "Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.",
169
- addBankAccount: "Add bank account",
170
- accountHolderNameLabel: "Account holder name",
171
- routingNumberLabel: "Routing number",
172
- accountNumberLabel: "Account number",
173
- achHelp: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
174
- cancel: "Cancel",
175
- save: "Save vendor",
176
- discardConfirmTitle: "Discard unsaved changes?",
177
- discardConfirmDescription: "You've made changes to this vendor that haven't been saved. If you leave now, they'll be lost.",
178
- keepEditingAction: "Keep editing",
179
- discardChangesAction: "Discard changes"
180
- };
181
37
  //#endregion
182
- export { f as BILL_CREATE_MESSAGE_LABELS_EN, _ as BILL_CREATE_SCREEN_LABELS_EN, h as BILL_DETAIL_VIEW_LABELS_EN, g as BILL_HISTORY_LABELS_EN, m as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, y as VENDOR_INLINE_FORM_LABELS_EN, p as VENDOR_SECTION_PROPS_LABELS_EN, v as mergeBillCreateScreenCopy };
38
+ export { n as SOURCE_DOCUMENT_PREVIEW_LABELS_EN, r as createSourceDocumentPreview };
@@ -1,80 +1,191 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useAttachPayableFileMutation as e } from "../../data-access/dist/index13.js";
6
- import "../../data-access/dist/index.js";
7
- import { SourceDocumentPanel as t } from "../../ui/dist/index99.js";
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";
8
3
  import "../../ui/dist/index.js";
9
- import { createSourceDocumentPreview as n } from "./index42.js";
10
- import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as r } from "./index43.js";
11
- import { useEffect as i, useState as a } from "react";
12
- import { jsx as o } from "react/jsx-runtime";
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 "./index42.js";
9
+ import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as f } from "./index43.js";
13
10
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js
14
- function s(e) {
15
- let [t, n] = a();
16
- return i(() => {
17
- if (!e) {
18
- n(void 0);
19
- return;
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
122
+ };
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
+ })()
20
165
  }
21
- let t = URL.createObjectURL(e);
22
- return n(t), () => URL.revokeObjectURL(t);
23
- }, [e]), t;
24
- }
25
- function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, readOnly: u, staging: d, deletion: f, labels: p }) {
26
- let { stagedFile: m, onFileStaged: h, onClearStagedFile: g, isSaving: _ } = d ?? {}, { isPending: v, onRequest: y, onDetachNow: b, isDeleting: x, hasFailed: S } = f ?? {}, C = {
27
- ...r,
28
- ...p,
29
- preview: {
30
- ...r.preview,
31
- ...p?.preview
32
- }
33
- }, w = e(), T = s(m), E = !!(a && !v || m);
34
- if (!E && (c || w.isPending)) return /* @__PURE__ */ o(t, {
35
- mode: "loading",
36
- fileName: l
37
- });
38
- if (!E && u) return /* @__PURE__ */ o("div", {
39
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-sm ttw:text-muted-foreground",
40
- children: C.noDocument
41
- });
42
- if (!E) return /* @__PURE__ */ o(t, {
43
- mode: "upload",
44
- uploadStatus: w.isPending || x ? "uploading" : "idle",
45
- uploadErrorMessage: w.isError ? C.attachFailed : S ? C.deleteFailed : void 0,
46
- noticeMessage: v && !S ? C.pendingDeletionNotice : void 0,
47
- onFilesSelected: (e) => {
48
- let [t] = e;
49
- if (t) {
50
- if (i) {
51
- let e = () => w.mutate({
52
- path: { payable_id: i },
53
- file: t
54
- });
55
- if (v && b) {
56
- b().then(e, () => void 0);
57
- return;
58
- }
59
- e();
60
- } else h?.(t);
61
- }
62
- }
63
- });
64
- let D = a?.name ?? m?.name ?? "", O = n(a || {
65
- name: D,
66
- url: T ?? "",
67
- mimetype: m?.type ?? ""
68
- }, C.preview);
69
- return /* @__PURE__ */ o(t, {
70
- mode: "document",
71
- fileName: D,
72
- preview: O,
73
- isDeleting: x,
74
- deleteErrorMessage: S ? C.deleteFailed : void 0,
75
- onDownload: a ? () => window.open(a.url, "_blank", "noopener,noreferrer") : void 0,
76
- onDelete: u ? void 0 : a && i ? y : _ ? void 0 : g
77
- });
166
+ };
78
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
+ };
79
190
  //#endregion
80
- export { c as SourceDocumentContainer, c as default };
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 };