@tesouro/embedded-components-react 0.4.21 → 0.4.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 (185) 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 +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 +136 -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 +3 -121
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +49 -35
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +113 -171
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +32 -74
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +186 -21
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +70 -226
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +22 -219
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +221 -109
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +220 -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 +119 -46
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +13 -32
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +43 -198
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +29 -32
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +186 -222
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +36 -19
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +230 -375
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +21 -4
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +424 -32
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -192
  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 +38 -3
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +219 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +3 -46
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +4 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +44 -6
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -12
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +6 -110
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +12 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +109 -124
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +3 -11
  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 +124 -7
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +8 -45
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +8 -21
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +45 -28
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +20 -83
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +28 -47
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +76 -243
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +48 -113
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +239 -196
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -4
  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 +207 -5
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +3 -114
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +8 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +106 -16
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -0
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +25 -0
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +5 -70
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +44 -40
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +170 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +2 -10
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +12 -50
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +108 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +2 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +10 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +52 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +21 -12
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +10 -9
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +11 -16
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +18 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +2 -4
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -28
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +30 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -32
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +32 -1
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +1 -29
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +26 -19
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +20 -152
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +154 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -64
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +61 -253
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +258 -1
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -9
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +7 -47
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +49 -2
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -18
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +15 -47
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +50 -2
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +2 -23
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +21 -338
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +340 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +2 -11
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +96 -2
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +1 -12
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +11 -57
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +58 -1
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -54
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +52 -10
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +10 -179
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +181 -1
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +2 -4
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -39
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +41 -2
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -7
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +5 -90
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +92 -2
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +2 -4
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -14
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +16 -2
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -88
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +86 -298
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +299 -9
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +13 -1
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -8
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +6 -37
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +39 -2
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -39
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -10
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +30 -195
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +36 -14
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +10 -345
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +199 -8
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +3 -9
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +15 -91
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +347 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +10 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +7 -123
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +91 -26
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +123 -5
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +26 -28
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +94 -2
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +5 -32
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +30 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -12
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +5 -104
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +34 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -17
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +10 -123
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +105 -1
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -18
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +13 -6
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +74 -119
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +1 -1
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +15 -11
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +8 -106
  176. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +1 -1
  177. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/client.config.js +2 -2
  178. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/finopsApiVersion.js +4 -0
  179. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  180. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +11 -0
  181. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  182. package/package.json +33 -1
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +0 -94
  184. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.js +0 -3
  185. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/api-version.json.js +0 -4
@@ -1,62 +1,26 @@
1
+ import { suspectedPayableDuplicates as e } from "../../data-access/dist/index7.js";
2
+ import "../../data-access/dist/index.js";
1
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js
2
- var e = /* @__PURE__ */ new Set([
3
- "new",
4
- "approve_in_progress",
5
- "waiting_to_be_paid",
6
- "partially_paid"
7
- ]);
8
4
  function t(t) {
9
- return !!(t && e.has(t));
10
- }
11
- function n(e, t) {
12
- let n = /* @__PURE__ */ new Date(`${e.slice(0, 10)}T00:00:00Z`), r = Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate());
13
- return n.getTime() < r;
14
- }
15
- function r({ apiStatus: t, dueDate: r, scheduledPaymentDate: i, hasScheduledPayment: a = !!i, now: o = /* @__PURE__ */ new Date() }) {
16
- if (e.has(t) && a) return {
17
- status: "scheduled",
18
- tone: "committed",
19
- isOverdue: !1
5
+ let n = new Map(t.map((e) => [e.id, e])), r = /* @__PURE__ */ new Map(), i = (e) => {
6
+ let t = r.get(e);
7
+ if (t === void 0 || t === e) return e;
8
+ let n = i(t);
9
+ return r.set(e, n), n;
10
+ }, a = (e, t) => {
11
+ let n = i(e), a = i(t);
12
+ n !== a && r.set(n, a);
20
13
  };
21
- let s = !!(e.has(t) && r && n(r, o));
22
- switch (t) {
23
- case "draft": return {
24
- status: "draft",
25
- tone: "neutral",
26
- isOverdue: s
27
- };
28
- case "new": return {
29
- status: "ready_to_submit",
30
- tone: "accent",
31
- isOverdue: s
32
- };
33
- case "approve_in_progress": return {
34
- status: "pending_approval",
35
- tone: "info",
36
- isOverdue: s
37
- };
38
- case "waiting_to_be_paid":
39
- case "partially_paid": return {
40
- status: "ready_to_pay",
41
- tone: "success",
42
- isOverdue: s
43
- };
44
- case "paid": return {
45
- status: "paid",
46
- tone: "settled",
47
- isOverdue: s
48
- };
49
- case "canceled": return {
50
- status: "canceled",
51
- tone: "neutral",
52
- isOverdue: s
53
- };
54
- case "rejected": return {
55
- status: "rejected",
56
- tone: "danger",
57
- isOverdue: s
58
- };
59
- }
14
+ t.forEach((t) => {
15
+ r.set(t.id, r.get(t.id) ?? t.id), e(t).forEach((e) => {
16
+ n.has(e.matched_payable_id) && a(t.id, e.matched_payable_id);
17
+ });
18
+ });
19
+ let o = /* @__PURE__ */ new Map();
20
+ return t.forEach((e) => {
21
+ let t = i(e.id);
22
+ o.set(t, [...o.get(t) ?? [], e]);
23
+ }), [...o.values()].map((e) => ({ members: [...e].sort((e, t) => (e.created_at ?? "").localeCompare(t.created_at ?? "")) }));
60
24
  }
61
25
  //#endregion
62
- export { r as derivePayableStatus, t as hasUnpaidBalance };
26
+ export { t as groupSuspectedDuplicates };
@@ -1,3 +1,38 @@
1
- import "./index38.js";
2
- import "./index58.js";
3
- import "./index59.js";
1
+ import { BILL_DETAILS_SHEET_LABELS_EN as e } from "../../ui/dist/index61.js";
2
+ import "../../ui/dist/index.js";
3
+ import { MARK_AS_PAID_FLOW_LABELS_EN as t } from "./index15.js";
4
+ import "./index18.js";
5
+ import { APPROVAL_POLICY_RULE_COPY_EN as n } from "./index28.js";
6
+ import { BILL_DETAIL_ACTIONS_LABELS_EN as r, PAYMENT_HISTORY_LABELS_EN as i, SCHEDULED_SUMMARY_LABEL_EN as a } from "./index43.js";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js
8
+ var o = {
9
+ subtitle: "Accounts payable",
10
+ vendorRow: "Vendor",
11
+ bankAccountRow: "ACH bank account",
12
+ bankAccountValue: (e) => `Account ending in ${e}`,
13
+ ...i,
14
+ invoiceNumberRow: "Number",
15
+ issueDateRow: "Issue date",
16
+ dueDateRow: "Due date",
17
+ poNumberRow: "PO number",
18
+ notProvided: "Not provided",
19
+ glCodeMissing: "GL code not specified",
20
+ quantityValue: (e, t) => `${e} x ${t}`,
21
+ subtotalRow: "Subtotal",
22
+ discountsRow: "Discounts",
23
+ taxRow: "Tax",
24
+ totalRow: "Total",
25
+ actionError: r.actionError,
26
+ actionSuccess: r.actionSuccess,
27
+ scheduledSummary: a,
28
+ paidOnLabel: (e) => `Paid on ${e}`,
29
+ rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
30
+ rejectedOn: (e) => `Rejected on ${e}`,
31
+ rejectionMessage: (e) => `"${e}"`,
32
+ sheet: e,
33
+ decisionDialog: r.decisionDialog,
34
+ approvalPolicyCopy: n,
35
+ markAsPaid: t
36
+ };
37
+ //#endregion
38
+ export { o as BILL_DETAILS_LABELS_EN };
@@ -1,4 +1,221 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
+ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
+ import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
8
+ import { useAllOrganizationUsersQuery as te } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
9
+ import "../../../shared/data-access/dist/index.js";
10
+ import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
+ import "../../../shared/feature/dist/index.js";
12
+ import { usePayableApprovalRequestsQuery as r } from "../../data-access/dist/index8.js";
13
+ import { usePayableHistoryQuery as i } from "../../data-access/dist/index9.js";
14
+ import { useAllPayableLineItemsQuery as a } from "../../data-access/dist/index10.js";
15
+ import { usePayableQuery as o } from "../../data-access/dist/index16.js";
16
+ import "../../data-access/dist/index.js";
17
+ import { BillDecisionDialog as s } from "../../ui/dist/index56.js";
18
+ import { BillDetailsSheet as c } from "../../ui/dist/index62.js";
19
+ import { BillDuplicateNotice as l } from "../../ui/dist/index66.js";
20
+ import { MarkAsPaidDialog as u } from "../../ui/dist/index96.js";
21
+ import "../../ui/dist/index.js";
22
+ import { usePayableDuplicateReview as ne } from "./index13.js";
23
+ import "./index14.js";
24
+ import { canOverrideApprovalPolicy as re, canReadCounterpartBankAccounts as ie } from "./index19.js";
25
+ import { resolveAmountDueMinorUnits as ae } from "./index20.js";
26
+ import { usePayableAchInstructions as oe } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
27
+ import "../../../shared/counterpart-management/feature/dist/index.js";
28
+ import { PayBillFlow as d } from "./index26.js";
29
+ import "./index27.js";
30
+ import { mapPayableToBillDetails as f } from "./index39.js";
31
+ import { mergeMarkAsPaidFlowLabels as p } from "./index15.js";
32
+ import { useMarkAsPaidFlow as m } from "./index17.js";
33
+ import "./index18.js";
34
+ import { mergeDecisionDialogCopy as h, mergePaymentHistoryMethodLabels as g } from "./index43.js";
35
+ import { buildPaymentHistory as _ } from "./index3.js";
36
+ import { currentApprovalRound as se } from "./index4.js";
37
+ import { usePayableApprovalRoundStart as ce } from "./index31.js";
38
+ import { useApprovalPolicyCardView as le } from "./index32.js";
39
+ import { resolveBillRejectionNotice as ue } from "./index33.js";
40
+ import { useCurrentApprovalRequestId as de } from "./index34.js";
41
+ import { usePayableDetailActions as fe } from "./index35.js";
42
+ import { useScheduledPayment as pe } from "./index36.js";
43
+ import { BILL_DETAILS_LABELS_EN as v } from "./index60.js";
44
+ import { useMemo as y, useRef as me } from "react";
45
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
1
46
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js
2
- var e = { Mounted: "bill_pay_widget.mounted" }, t = "bill_pay_widget";
47
+ function C({ open: C, onOpenChange: w, payableId: T, onClose: E, onExpand: D, testId: O, labels: k, poweredByBankName: A }) {
48
+ let j = y(() => ({
49
+ ...v,
50
+ ...k,
51
+ sheet: {
52
+ ...v.sheet,
53
+ ...k?.sheet,
54
+ statusBadge: {
55
+ ...v.sheet.statusBadge,
56
+ ...k?.sheet?.statusBadge
57
+ },
58
+ approvalPolicy: {
59
+ ...v.sheet.approvalPolicy,
60
+ ...k?.sheet?.approvalPolicy
61
+ },
62
+ dueDate: {
63
+ ...v.sheet.dueDate,
64
+ ...k?.sheet?.dueDate
65
+ }
66
+ },
67
+ decisionDialog: h(v.decisionDialog, k?.decisionDialog),
68
+ approvalPolicyCopy: {
69
+ ...v.approvalPolicyCopy,
70
+ ...k?.approvalPolicyCopy
71
+ },
72
+ markAsPaid: p(k?.markAsPaid),
73
+ actionSuccess: {
74
+ ...v.actionSuccess,
75
+ ...k?.actionSuccess
76
+ },
77
+ paymentHistoryMethodLabels: g(k?.paymentHistoryMethodLabels)
78
+ }), [k]), M = o(T), N = a(T), P = ee(), { initResponse: F } = n(), I = M.data, L = me(null), R = de({
79
+ payableId: T,
80
+ status: I?.status
81
+ }), z = I?.status === "rejected", he = e(F?.scopes, [t.ApprovalRequestReadOrg]), B = z && he, V = ce({
82
+ payableId: T,
83
+ enabled: B
84
+ }), H = r(T, { enabled: B }), ge = e(F?.scopes, [t.UserReadOrg]), U = te({ enabled: z && ge }), W = y(() => se(H.data?.data, V.roundStartedAt), [H.data, V.roundStartedAt]), G = y(() => ue({
85
+ payableStatus: I?.status,
86
+ approvalRequests: W,
87
+ users: U.data?.data ?? [],
88
+ payableUpdatedAt: I?.updated_at,
89
+ labels: j
90
+ }), [
91
+ I?.status,
92
+ I?.updated_at,
93
+ W,
94
+ U.data,
95
+ j
96
+ ]), K = le({
97
+ payableId: T,
98
+ approvalPolicyId: I?.approval_policy_id,
99
+ copy: j.approvalPolicyCopy
100
+ }), _e = re({
101
+ status: I?.status,
102
+ scopes: F?.scopes,
103
+ hasWaitingRequest: R.hasWaitingRequest,
104
+ arePendingApproversUnknown: K.isLoading
105
+ }), q = pe({
106
+ payableId: T,
107
+ scheduledPaymentDate: I?.scheduled_payment_date
108
+ }), ve = oe({
109
+ counterpartId: I?.counterpart_id,
110
+ currency: I?.currency,
111
+ enabled: ie(F?.scopes)
112
+ }), J = m({
113
+ payableId: T,
114
+ amountDueMinorUnits: ae(I) ?? 0,
115
+ amountToPayMinorUnits: I?.amount_to_pay ?? void 0,
116
+ currencyCode: I?.currency ?? void 0,
117
+ dueDate: I?.due_date,
118
+ hasScheduledPayment: q.hasScheduledPayment,
119
+ testId: O,
120
+ labels: j.markAsPaid
121
+ }), { actions: ye, decisionDialog: be } = fe({
122
+ payableId: I ? T : void 0,
123
+ status: I?.status,
124
+ currentApprovalRequestId: R.id,
125
+ hasWaitingRequest: R.hasWaitingRequest,
126
+ hasScheduledPayment: q.hasScheduledPayment,
127
+ scheduledPaymentIntentId: q.scheduledPaymentIntentId,
128
+ isScheduledPaymentUnknown: q.isResolving,
129
+ isPayabilityUnknown: ve.isLoading,
130
+ pendingApprovers: K.pendingApprovers,
131
+ arePendingApproversUnknown: K.isLoading,
132
+ labels: {
133
+ payBill: j.sheet.payButton,
134
+ markAsPaid: j.sheet.markAsPaidButton,
135
+ reject: j.sheet.rejectButton,
136
+ approve: j.sheet.approveButton,
137
+ cancel: j.sheet.cancelButton,
138
+ cancelScheduledPayment: j.sheet.cancelScheduledPaymentButton,
139
+ reopen: j.sheet.reopenButton,
140
+ forceApprove: j.sheet.forceApproveButton,
141
+ forceReject: j.sheet.forceRejectButton,
142
+ policyOverridesHeading: j.sheet.policyOverridesGroup,
143
+ decisionDialog: j.decisionDialog,
144
+ actionError: j.actionError,
145
+ actionSuccess: j.actionSuccess
146
+ },
147
+ isMarkAsPaidPending: J.isPending,
148
+ onMarkAsPaidSelect: J.open,
149
+ onPayBillSelect: () => L.current?.open()
150
+ }), Y = q.hasScheduledPayment && q.scheduledDateLabel ? /* @__PURE__ */ x("p", {
151
+ className: "ttw:text-sm ttw:text-muted-foreground",
152
+ children: j.scheduledSummary(q.scheduledDateLabel)
153
+ }) : void 0, X = ne({
154
+ payable: I,
155
+ canManage: e(F?.scopes, [t.PayableWriteOrg])
156
+ }), Z = X.isPossibleDuplicate ? /* @__PURE__ */ x(l, {
157
+ onNotADuplicate: X.onNotADuplicate,
158
+ isActionDisabled: X.isBusy
159
+ }) : void 0, xe = Z || Y ? /* @__PURE__ */ S(b, { children: [Z, Y] }) : void 0, Q = i(T), Se = y(() => _({
160
+ records: q.paymentRecords,
161
+ events: Q.data?.data ?? [],
162
+ currencyCode: I?.currency,
163
+ labels: j
164
+ }), [
165
+ q.paymentRecords,
166
+ Q.data,
167
+ I?.currency,
168
+ j
169
+ ]), Ce = y(() => I ? f({
170
+ payable: I,
171
+ lineItems: N.lineItems,
172
+ ledgerAccounts: P.data?.data ?? [],
173
+ labels: j,
174
+ hasScheduledPayment: q.hasScheduledPayment,
175
+ rejection: G
176
+ }) : void 0, [
177
+ I,
178
+ N.lineItems,
179
+ P.data,
180
+ j,
181
+ q.hasScheduledPayment,
182
+ G
183
+ ]), we = M.isLoading || N.isResolving || P.isResolving, $ = M.isError || N.isError || P.isError;
184
+ return /* @__PURE__ */ S(b, { children: [
185
+ /* @__PURE__ */ x(c, {
186
+ open: C,
187
+ onOpenChange: w,
188
+ details: Ce,
189
+ actions: ye,
190
+ approvalPolicy: K.view,
191
+ showApprovalOverrideNotice: _e,
192
+ paymentHistory: Se,
193
+ paymentHistoryError: q.isError || Q.isError,
194
+ paymentHistoryLoading: q.isResolving || Q.isLoading,
195
+ isLoading: we,
196
+ isError: $,
197
+ notice: xe,
198
+ onClose: E,
199
+ onExpand: D,
200
+ testId: O,
201
+ labels: j.sheet
202
+ }),
203
+ /* @__PURE__ */ x(s, {
204
+ ...be,
205
+ labels: { cancelButton: j.decisionDialog.cancelButton },
206
+ testId: O ? `${O}-decision-dialog` : void 0,
207
+ confirmTestId: O ? `${O}-decision-confirm` : void 0,
208
+ reasonTestId: O ? `${O}-decision-reason` : void 0,
209
+ reasonFieldId: O ? `${O}-decision-reason-field` : void 0
210
+ }),
211
+ /* @__PURE__ */ x(u, { ...J.dialogProps }),
212
+ I ? /* @__PURE__ */ x(d, {
213
+ ref: L,
214
+ payable: I,
215
+ onMissingAchInstructions: D,
216
+ poweredByBankName: A
217
+ }) : null
218
+ ] });
219
+ }
3
220
  //#endregion
4
- export { e as BillPayWidgetAnalyticsEvent, t as WIDGET_NAME };
221
+ export { C as BillDetailsContainer, C as default };
@@ -1,46 +1,3 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
6
- import "../../../shared/feature/dist/index.js";
7
- import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index61.js";
8
- import { Payables as r } from "../../../monite-sdk/dist/index444.js";
9
- import "../../../monite-sdk/dist/index.js";
10
- import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
11
- import "../../../shared/monite-wrapper/feature/dist/index.js";
12
- import { useEffect as a } from "react";
13
- import { jsx as o } from "react/jsx-runtime";
14
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js
15
- var s = (e) => e;
16
- function c(n) {
17
- let i = e();
18
- return a(() => {
19
- i(t.Mounted);
20
- }, [i]), /* @__PURE__ */ o(r, { ...n });
21
- }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
23
- return /* @__PURE__ */ o(i, {
24
- widgetName: n,
25
- baseUrl: e,
26
- widgetToken: t,
27
- organizationId: r,
28
- configClient: a,
29
- gatewayRouting: l,
30
- linkComponent: u,
31
- implementation: d,
32
- uiFramework: f,
33
- errorFallback: p,
34
- onError: m,
35
- finopsThemeColors: h,
36
- analytics: g,
37
- disclosuresAcceptance: _,
38
- providerLabels: v,
39
- children: /* @__PURE__ */ o(c, {
40
- ...b,
41
- pageTitleComponent: y
42
- })
43
- });
44
- }
45
- //#endregion
46
- export { l as BillPayWidgetMonite, l as default };
1
+ import "./index39.js";
2
+ import "./index60.js";
3
+ import "./index61.js";
@@ -1 +1,4 @@
1
- import "./index62.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js
2
+ var e = { Mounted: "bill_pay_widget.mounted" }, t = "bill_pay_widget";
3
+ //#endregion
4
+ export { e as BillPayWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -1,8 +1,46 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
6
+ import "../../../shared/feature/dist/index.js";
7
+ import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index63.js";
8
+ import { Payables as r } from "../../../monite-sdk/dist/index444.js";
9
+ import "../../../monite-sdk/dist/index.js";
10
+ import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
11
+ import "../../../shared/monite-wrapper/feature/dist/index.js";
12
+ import { useEffect as a } from "react";
13
+ import { jsx as o } from "react/jsx-runtime";
1
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js
2
- var e = (e) => [
3
- "bill-pay",
4
- "upload-queue",
5
- e ?? ""
6
- ];
15
+ var s = (e) => e;
16
+ function c(n) {
17
+ let i = e();
18
+ return a(() => {
19
+ i(t.Mounted);
20
+ }, [i]), /* @__PURE__ */ o(r, { ...n });
21
+ }
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
23
+ return /* @__PURE__ */ o(i, {
24
+ widgetName: n,
25
+ baseUrl: e,
26
+ widgetToken: t,
27
+ organizationId: r,
28
+ configClient: a,
29
+ gatewayRouting: l,
30
+ linkComponent: u,
31
+ implementation: d,
32
+ uiFramework: f,
33
+ errorFallback: p,
34
+ onError: m,
35
+ finopsThemeColors: h,
36
+ analytics: g,
37
+ disclosuresAcceptance: _,
38
+ providerLabels: v,
39
+ children: /* @__PURE__ */ o(c, {
40
+ ...b,
41
+ pageTitleComponent: y
42
+ })
43
+ });
44
+ }
7
45
  //#endregion
8
- export { e as billPayUploadQueueKey };
46
+ export { l as BillPayWidgetMonite, l as default };
@@ -1,12 +1 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js
2
- var e = {
3
- uploadingSummary: (e) => `Uploading and scanning ${e} ${e === 1 ? "file" : "files"}`,
4
- completeSummary: (e) => `${e} ${e === 1 ? "upload" : "uploads"} complete`,
5
- readyCaption: (e) => `${e} new ${e === 1 ? "bill" : "bills"} ready`,
6
- duplicateCaption: (e) => `${e} possible ${e === 1 ? "duplicate" : "duplicates"}`,
7
- failedCaption: (e) => `${e} failed to upload`,
8
- tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
9
- remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`
10
- };
11
- //#endregion
12
- export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
1
+ import "./index64.js";
@@ -1,112 +1,8 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import "../../../shared/ui/dist/index.js";
8
- import { useUploadPayableFromFileMutation as n } from "../../data-access/dist/index13.js";
9
- import { usePayableOcrQueries as r } from "../../data-access/dist/index15.js";
10
- import "../../data-access/dist/index.js";
11
- import { billPayUploadQueueKey as i } from "./index64.js";
12
- import { BILL_UPLOAD_QUEUE_LABELS_EN as a } from "./index65.js";
13
- import { useCallback as o, useEffect as s, useMemo as c, useState as l } from "react";
14
- import { useQuery as u, useQueryClient as d } from "@tanstack/react-query";
15
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js
16
- function f({ onOpenBill: f, labels: p } = {}) {
17
- let m = {
18
- ...a,
19
- ...p
20
- }, h = p?.tooManyFilesError ?? a.tooManyFilesError, g = p?.remainingCapacityError ?? a.remainingCapacityError, { organizationId: _ } = t(), v = d(), y = c(() => i(_), [_]), b = n(), [x, S] = l(!1), { data: C = [] } = u({
21
- queryKey: y,
22
- queryFn: () => v.getQueryData(y) ?? [],
23
- staleTime: Infinity,
24
- gcTime: Infinity,
25
- initialData: []
26
- }), w = o((e, t) => {
27
- v.setQueryData(y, (n) => (n ?? []).map((n) => n.localId === e ? {
28
- ...n,
29
- ...t
30
- } : n));
31
- }, [v, y]), T = o((e) => {
32
- v.setQueryData(y, (t) => (t ?? []).filter((t) => t.localId !== e));
33
- }, [v, y]), E = o((t) => {
34
- let n = (v.getQueryData(y) ?? []).filter((e) => e.status === "uploading").length;
35
- if (t.length + n > 10) {
36
- e.error(n > 0 ? g(10 - n) : h(10));
37
- return;
38
- }
39
- S(!1);
40
- for (let e of t) {
41
- let t = crypto.randomUUID();
42
- v.setQueryData(y, (n) => [...n ?? [], {
43
- localId: t,
44
- fileName: e.name,
45
- status: "uploading"
46
- }]), b.mutateAsync({ file: e }).then((e) => w(t, { payableId: e?.id })).catch(() => w(t, { status: "failed" }));
47
- }
48
- }, [
49
- w,
50
- v,
51
- y,
52
- g,
53
- h,
54
- b
55
- ]), D = r({ payableIds: C.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
56
- s(() => {
57
- let e = /* @__PURE__ */ new Set();
58
- for (let t of D) if (t.suspectedDuplicateOf.length !== 0) {
59
- e.add(t.payableId);
60
- for (let n of t.suspectedDuplicateOf) e.add(n);
61
- }
62
- for (let { payableId: t, ocrStatus: n, isError: r } of D) {
63
- let i = C.find((e) => e.payableId === t && e.status === "uploading");
64
- i && (n === "success" ? w(i.localId, { status: e.has(t) ? "duplicate" : "ready" }) : (r || n === "error" || n === "canceled") && w(i.localId, { status: "failed" }));
65
- }
66
- for (let t of C) t.status === "ready" && t.payableId && e.has(t.payableId) && w(t.localId, { status: "duplicate" });
67
- }, [
68
- C,
69
- D,
70
- w
71
- ]);
72
- let O = C.filter((e) => e.status === "uploading"), k = C.filter((e) => e.status === "ready"), A = C.filter((e) => e.status === "duplicate"), j = C.filter((e) => e.status === "failed"), M = (e) => ({
73
- id: e.localId,
74
- fileName: e.fileName,
75
- status: e.status,
76
- onOpen: (e.status === "ready" || e.status === "duplicate") && e.payableId && f ? () => {
77
- f(e.payableId), T(e.localId);
78
- } : void 0
79
- }), N = O.length ? [{
80
- id: "in-progress",
81
- items: C.map(M)
82
- }] : [
83
- ...k.length ? [{
84
- id: "ready",
85
- caption: m.readyCaption(k.length),
86
- items: k.map(M)
87
- }] : [],
88
- ...A.length ? [{
89
- id: "duplicate",
90
- caption: m.duplicateCaption(A.length),
91
- items: A.map(M)
92
- }] : [],
93
- ...j.length ? [{
94
- id: "failed",
95
- caption: m.failedCaption(j.length),
96
- items: j.map(M)
97
- }] : []
98
- ], P = k.length + A.length, F = O.length ? m.uploadingSummary(C.length) : P ? m.completeSummary(P) : m.failedCaption(j.length), I = o(() => {
99
- v.setQueryData(y, []);
100
- }, [v, y]);
101
- return {
102
- enqueue: E,
103
- sections: N,
104
- summaryLabel: F,
105
- collapsed: x,
106
- onToggleCollapsed: o(() => S((e) => !e), []),
107
- onClose: I,
108
- isVisible: C.length > 0
109
- };
110
- }
2
+ var e = (e) => [
3
+ "bill-pay",
4
+ "upload-queue",
5
+ e ?? ""
6
+ ];
111
7
  //#endregion
112
- export { f as useBillUploadQueue };
8
+ export { e as billPayUploadQueueKey };
@@ -1,3 +1,12 @@
1
- import "./index64.js";
2
- import "./index65.js";
3
- import "./index66.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js
2
+ var e = {
3
+ uploadingSummary: (e) => `Uploading and scanning ${e} ${e === 1 ? "file" : "files"}`,
4
+ completeSummary: (e) => `${e} ${e === 1 ? "upload" : "uploads"} complete`,
5
+ readyCaption: (e) => `${e} new ${e === 1 ? "bill" : "bills"} ready`,
6
+ duplicateCaption: (e) => `${e} possible ${e === 1 ? "duplicate" : "duplicates"}`,
7
+ failedCaption: (e) => `${e} failed to upload`,
8
+ tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
9
+ remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`
10
+ };
11
+ //#endregion
12
+ export { e as BILL_UPLOAD_QUEUE_LABELS_EN };