@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,73 +1,8 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { formatCalendarDate as e } from "../../../shared/util/dist/lib/formatCalendarDate.js";
6
- import { formatMoneyExact as t } from "../../../shared/util/dist/lib/formatMoneyExact.js";
7
- import { suspectedPayableDuplicates as n } from "../../data-access/dist/index7.js";
8
- import { useAllSuspectedDuplicatePayablesQuery as r, usePayablesQuery as i } from "../../data-access/dist/index16.js";
9
- import "../../data-access/dist/index.js";
10
- import { groupSuspectedDuplicates as a } from "./index5.js";
11
- import { derivePayableStatus as o } from "./index6.js";
12
- import { payableRemoval as s } from "./index8.js";
13
- import { resolveVendorName as c } from "./index7.js";
14
- import { useMemo as l } from "react";
15
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js
16
- function u(e) {
17
- return e.isError && e.data === void 0;
18
- }
19
- function d(e, n) {
20
- return e == null ? "" : t(e / 100, { currencyCode: n ?? "USD" });
21
- }
22
- function f(t) {
23
- let r = t.status ? o({
24
- apiStatus: t.status,
25
- dueDate: t.due_date,
26
- scheduledPaymentDate: t.scheduled_payment_date
27
- }) : void 0;
28
- return {
29
- id: t.id,
30
- status: r?.status,
31
- statusTone: r?.tone,
32
- matches: n(t).map((e) => ({
33
- matchId: e.id,
34
- matchedPayableId: e.matched_payable_id
35
- })),
36
- removeBy: s(t.status),
37
- vendorLabel: c(t),
38
- invoiceNumberLabel: t.document_id ?? "",
39
- amountLabel: d(t.total_amount ?? t.amount_due, t.currency),
40
- dueDateLabel: e(t.due_date),
41
- addedOnLabel: e(t.created_at?.slice(0, 10))
42
- };
43
- }
44
- function p(e) {
45
- return a(e).map(({ members: e }) => e).filter((e) => e.length > 1).map((e) => ({
46
- id: e[0].id,
47
- vendorLabel: e.map(c).find(Boolean) ?? "",
48
- bills: e.map(f)
49
- }));
50
- }
51
- function m({ enabled: e = !0 } = {}) {
52
- let t = r({ enabled: e }), n = t.data?.data;
53
- return {
54
- groups: l(() => p(n ?? []), [n]),
55
- isLoading: t.isLoading,
56
- isError: u(t)
57
- };
58
- }
59
- function h({ enabled: e = !0 } = {}) {
60
- let t = i({
61
- duplicate_match_status: "suspected",
62
- limit: 100,
63
- enabled: e
64
- });
65
- return {
66
- count: t.data?.data?.length ?? 0,
67
- isCapped: !!t.data?.next_pagination_token,
68
- isError: u(t),
69
- isLoading: t.isLoading
70
- };
2
+ function e(e) {
3
+ if (e === "draft") return "delete";
4
+ if (e === "new") return "cancel";
5
+ if (e === "canceled") return "confirm";
71
6
  }
72
7
  //#endregion
73
- export { m as useDuplicateBills, h as useDuplicateBillsCount };
8
+ export { e as payableRemoval };
@@ -10,15 +10,15 @@ import "./index11.js";
10
10
  import "./index12.js";
11
11
  import "./index13.js";
12
12
  import "./index14.js";
13
- import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index16.js";
14
- import "./index18.js";
13
+ import "./index16.js";
14
+ import { BILL_STATUS_BADGE_LABELS_EN as t } from "./index17.js";
15
15
  import "./index19.js";
16
16
  import "./index20.js";
17
17
  import "./index21.js";
18
18
  import "./index22.js";
19
19
  import "./index23.js";
20
20
  import "./index24.js";
21
- import "./index26.js";
21
+ import "./index25.js";
22
22
  import "./index27.js";
23
23
  import "./index28.js";
24
24
  import "./index29.js";
@@ -33,59 +33,63 @@ import "./index37.js";
33
33
  import "./index38.js";
34
34
  import "./index39.js";
35
35
  import "./index40.js";
36
- import "./index44.js";
36
+ import "./index41.js";
37
37
  import "./index45.js";
38
38
  import "./index46.js";
39
39
  import "./index47.js";
40
- import { BillCreateScreen as n } from "./index49.js";
41
- import "./index50.js";
40
+ import "./index48.js";
41
+ import { BillCreateScreen as n } from "./index50.js";
42
42
  import "./index51.js";
43
- import { BillPayWidgetUi as r } from "./index52.js";
44
- import "./index53.js";
43
+ import "./index52.js";
44
+ import { BillPayWidgetUi as r } from "./index53.js";
45
45
  import "./index54.js";
46
- import { BillDecisionDialog as i } from "./index55.js";
47
- import "./index56.js";
46
+ import "./index55.js";
47
+ import { BillDecisionDialog as i } from "./index56.js";
48
48
  import "./index57.js";
49
49
  import "./index58.js";
50
50
  import "./index59.js";
51
- import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index60.js";
52
- import { BillDetailsSheet as o } from "./index61.js";
53
- import "./index62.js";
51
+ import "./index60.js";
52
+ import { BILL_DETAILS_SHEET_LABELS_EN as a } from "./index61.js";
53
+ import { BillDetailsSheet as o } from "./index62.js";
54
54
  import "./index63.js";
55
55
  import "./index64.js";
56
- import { BillDuplicateNotice as s } from "./index65.js";
57
- import "./index66.js";
56
+ import "./index65.js";
57
+ import { BillDuplicateNotice as s } from "./index66.js";
58
58
  import "./index67.js";
59
- import { BillsFilterField as c } from "./index68.js";
60
- import "./index69.js";
59
+ import { BILL_REJECTED_BANNER_LABELS_EN as c } from "./index68.js";
60
+ import { BillRejectedBanner as l } from "./index69.js";
61
61
  import "./index70.js";
62
- import { BillColumn as l } from "./index71.js";
63
- import { BillsScreen as u } from "./index72.js";
62
+ import "./index71.js";
63
+ import { BillsFilterField as u } from "./index72.js";
64
64
  import "./index73.js";
65
- import { BillUploadStatusTray as d } from "./index75.js";
65
+ import "./index74.js";
66
+ import { BillColumn as d } from "./index75.js";
67
+ import { BillsScreen as f } from "./index76.js";
66
68
  import "./index77.js";
67
- import "./index79.js";
68
- import { DuplicateBillsDialog as f } from "./index80.js";
69
+ import { BillUploadStatusTray as p } from "./index79.js";
69
70
  import "./index81.js";
70
- import "./index82.js";
71
- import { ExtractionNotice as p } from "./index83.js";
72
- import "./index84.js";
71
+ import "./index83.js";
72
+ import { DuplicateBillsDialog as m } from "./index84.js";
73
73
  import "./index85.js";
74
74
  import "./index86.js";
75
- import "./index87.js";
76
- import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as m } from "./index88.js";
77
- import { ReviewTransactionDialog as h } from "./index89.js";
75
+ import { ExtractionNotice as h } from "./index87.js";
76
+ import "./index88.js";
77
+ import "./index89.js";
78
78
  import "./index90.js";
79
- import { MARK_AS_PAID_DIALOG_LABELS_EN as g } from "./index91.js";
80
- import { MarkAsPaidDialog as _ } from "./index92.js";
81
- import "./index93.js";
82
- import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index94.js";
83
- import { SchedulePaymentDialog as y } from "./index96.js";
79
+ import "./index91.js";
80
+ import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as g } from "./index92.js";
81
+ import { ReviewTransactionDialog as _ } from "./index93.js";
82
+ import "./index94.js";
83
+ import { MARK_AS_PAID_DIALOG_LABELS_EN as v } from "./index95.js";
84
+ import { MarkAsPaidDialog as y } from "./index96.js";
84
85
  import "./index97.js";
85
- import "./index98.js";
86
- import { SourceDocumentPanel as b } from "./index99.js";
87
- import "./index100.js";
88
- import { UNSAVED_BILL_DIALOG_LABELS_EN as x } from "./index101.js";
89
- import { UnsavedBillDialog as S } from "./index102.js";
90
- import "./index103.js";
91
- export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, l as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, d as BillUploadStatusTray, c as BillsFilterField, u as BillsScreen, f as DuplicateBillsDialog, p as ExtractionNotice, g as MARK_AS_PAID_DIALOG_LABELS_EN, _ as MarkAsPaidDialog, m as REVIEW_TRANSACTION_DIALOG_LABELS_EN, h as ReviewTransactionDialog, v as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, y as SchedulePaymentDialog, b as SourceDocumentPanel, x as UNSAVED_BILL_DIALOG_LABELS_EN, S as UnsavedBillDialog };
86
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as b } from "./index98.js";
87
+ import { SchedulePaymentDialog as x } from "./index100.js";
88
+ import "./index101.js";
89
+ import "./index102.js";
90
+ import { SourceDocumentPanel as S } from "./index103.js";
91
+ import "./index104.js";
92
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as C } from "./index105.js";
93
+ import { UnsavedBillDialog as w } from "./index106.js";
94
+ import "./index107.js";
95
+ export { e as AddBillDialog, a as BILL_DETAILS_SHEET_LABELS_EN, c as BILL_REJECTED_BANNER_LABELS_EN, t as BILL_STATUS_BADGE_LABELS_EN, d as BillColumn, n as BillCreateScreen, i as BillDecisionDialog, o as BillDetailsSheet, s as BillDuplicateNotice, r as BillPayWidgetUi, l as BillRejectedBanner, p as BillUploadStatusTray, u as BillsFilterField, f as BillsScreen, m as DuplicateBillsDialog, h as ExtractionNotice, v as MARK_AS_PAID_DIALOG_LABELS_EN, y as MarkAsPaidDialog, g as REVIEW_TRANSACTION_DIALOG_LABELS_EN, _ as ReviewTransactionDialog, b as SCHEDULE_PAYMENT_DIALOG_LABELS_EN, x as SchedulePaymentDialog, S as SourceDocumentPanel, C as UNSAVED_BILL_DIALOG_LABELS_EN, w as UnsavedBillDialog };
@@ -1,2 +1,170 @@
1
- import "./index98.js";
2
- import "./index99.js";
1
+ import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as a, DialogFooter as ee, DialogHeader as o, DialogTitle as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { SCHEDULE_PAYMENT_DIALOG_LABELS_EN as v } from "./index98.js";
3
+ import { TONE_TEXT_CLASS as y } from "./index99.js";
4
+ import { useId as b } from "react";
5
+ import { Fragment as te, jsx as x, jsxs as S } from "react/jsx-runtime";
6
+ import { CalendarIcon as C } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js
8
+ var w = {
9
+ sufficient: y.muted,
10
+ warning: y.warning,
11
+ error: y.error
12
+ };
13
+ function T({ open: y, onOpenChange: T, amountDueLabel: E, amountDue: D, dueDateSuffix: O, paymentAmountLabel: k, paymentAmount: A, selectedDate: j, selectedDateLabel: M, calendarDisabled: N, isToday: P, selectedAccountId: F, accounts: I, poweredByBankName: L, funds: R, isAccountsLoading: z, isAccountsError: B, isSubmitting: V, onDateChange: H, onAccountChange: U, onReview: W, onCancel: G, testId: K, labels: q }) {
14
+ let J = {
15
+ ...v,
16
+ ...q
17
+ }, Y = b(), X = b(), Z = b(), Q = z || B || I.length === 0, $ = I.find((e) => e.id === F);
18
+ return /* @__PURE__ */ x(r, {
19
+ open: y,
20
+ onOpenChange: (e) => e ? T(e) : G(),
21
+ children: /* @__PURE__ */ S(i, {
22
+ "data-testid": K,
23
+ className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
24
+ children: [
25
+ /* @__PURE__ */ S(o, { children: [/* @__PURE__ */ x(s, { children: J.title }), /* @__PURE__ */ x(a, {
26
+ className: "ttw:sr-only",
27
+ children: J.hiddenDescription
28
+ })] }),
29
+ /* @__PURE__ */ S("div", {
30
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
31
+ children: [
32
+ /* @__PURE__ */ S("div", {
33
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
34
+ children: [/* @__PURE__ */ x("p", {
35
+ className: "ttw:text-base ttw:text-muted-foreground",
36
+ children: E
37
+ }), /* @__PURE__ */ S("div", {
38
+ className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
39
+ children: [/* @__PURE__ */ x("p", {
40
+ className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
41
+ children: D
42
+ }), O ? /* @__PURE__ */ x("p", {
43
+ className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
44
+ children: O
45
+ }) : null]
46
+ })]
47
+ }),
48
+ /* @__PURE__ */ S("div", {
49
+ className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
50
+ children: [/* @__PURE__ */ S("div", {
51
+ className: "ttw:grid ttw:gap-2.5",
52
+ children: [/* @__PURE__ */ x(c, { children: k }), /* @__PURE__ */ x("div", {
53
+ "aria-disabled": !0,
54
+ className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
55
+ children: A
56
+ })]
57
+ }), /* @__PURE__ */ S("div", {
58
+ className: "ttw:grid ttw:gap-2.5",
59
+ children: [/* @__PURE__ */ x(c, {
60
+ id: Y,
61
+ children: J.paymentDate
62
+ }), /* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(d, {
63
+ asChild: !0,
64
+ children: /* @__PURE__ */ S(t, {
65
+ type: "button",
66
+ variant: "outline",
67
+ className: "ttw:justify-start ttw:gap-2",
68
+ "aria-labelledby": `${Y} ${X}`,
69
+ children: [
70
+ /* @__PURE__ */ x(C, { className: "ttw:size-4" }),
71
+ /* @__PURE__ */ x("span", {
72
+ id: X,
73
+ children: M ?? J.paymentDatePlaceholder
74
+ }),
75
+ P ? /* @__PURE__ */ x(e, {
76
+ variant: "secondary",
77
+ children: J.today
78
+ }) : null
79
+ ]
80
+ })
81
+ }), /* @__PURE__ */ x(u, {
82
+ align: "start",
83
+ className: "ttw:w-auto ttw:p-0",
84
+ children: /* @__PURE__ */ x(n, {
85
+ mode: "single",
86
+ selected: j,
87
+ onSelect: H,
88
+ disabled: N
89
+ })
90
+ })] })]
91
+ })]
92
+ }),
93
+ /* @__PURE__ */ S("div", {
94
+ className: "ttw:grid ttw:gap-2.5",
95
+ children: [
96
+ /* @__PURE__ */ x(c, {
97
+ id: Z,
98
+ children: J.payFrom
99
+ }),
100
+ /* @__PURE__ */ S(f, {
101
+ value: F,
102
+ disabled: Q,
103
+ onValueChange: U,
104
+ children: [/* @__PURE__ */ x(h, {
105
+ className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
106
+ "aria-labelledby": Z,
107
+ children: /* @__PURE__ */ x(g, {
108
+ placeholder: J.payFromPlaceholder,
109
+ children: $ ? /* @__PURE__ */ S(te, { children: [/* @__PURE__ */ S("span", {
110
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
111
+ children: [/* @__PURE__ */ x("span", {
112
+ className: "ttw:truncate",
113
+ children: $.primaryLabel
114
+ }), $.secondaryLabel ? /* @__PURE__ */ x("span", {
115
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
116
+ children: $.secondaryLabel
117
+ }) : null]
118
+ }), L ? /* @__PURE__ */ x(e, {
119
+ variant: "secondary",
120
+ className: "ttw:shrink-0",
121
+ children: J.poweredByBank(L)
122
+ }) : null] }) : null
123
+ })
124
+ }), /* @__PURE__ */ x(p, { children: I.map((e) => /* @__PURE__ */ x(m, {
125
+ value: e.id,
126
+ children: /* @__PURE__ */ S("span", {
127
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
128
+ children: [/* @__PURE__ */ x("span", {
129
+ className: "ttw:truncate",
130
+ children: e.primaryLabel
131
+ }), e.secondaryLabel ? /* @__PURE__ */ x("span", {
132
+ className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
133
+ children: e.secondaryLabel
134
+ }) : null]
135
+ })
136
+ }, e.id)) })]
137
+ }),
138
+ Q ? /* @__PURE__ */ x("p", {
139
+ className: _("ttw:text-sm", B ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
140
+ role: B ? "alert" : void 0,
141
+ children: z ? J.loadingAccounts : B ? J.accountsError : J.noAccounts
142
+ }) : null
143
+ ]
144
+ }),
145
+ R.message ? /* @__PURE__ */ x("p", {
146
+ className: _("ttw:text-sm", w[R.state]),
147
+ children: R.message
148
+ }) : null
149
+ ]
150
+ }),
151
+ /* @__PURE__ */ S(ee, {
152
+ className: "ttw:pt-4 ttw:sm:gap-3",
153
+ children: [/* @__PURE__ */ x(t, {
154
+ type: "button",
155
+ variant: "outline",
156
+ onClick: G,
157
+ children: J.cancelButton
158
+ }), /* @__PURE__ */ x(t, {
159
+ type: "button",
160
+ loading: V,
161
+ onClick: W,
162
+ children: J.reviewButton
163
+ })]
164
+ })
165
+ ]
166
+ })
167
+ });
168
+ }
169
+ //#endregion
170
+ export { T as SchedulePaymentDialog, T as default };
@@ -1,10 +1,2 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js
2
- var e = {
3
- title: "Save this bill as a draft?",
4
- description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
5
- saveDraftButton: "Save as draft",
6
- discardButton: "Discard changes",
7
- closeButton: "Close"
8
- };
9
- //#endregion
10
- export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
1
+ import "./index98.js";
2
+ import "./index100.js";
@@ -1,52 +1,14 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index101.js";
3
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
- import { XIcon as u } from "lucide-react";
1
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "./index2.js";
2
+ import "./index5.js";
5
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js
6
- function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
7
- let S = {
8
- ...s,
9
- ..._
10
- };
11
- return /* @__PURE__ */ c(e, {
12
- open: d,
13
- onOpenChange: (e) => {
14
- !e && !h && m();
15
- },
16
- children: /* @__PURE__ */ l(t, {
17
- "data-testid": v,
18
- children: [
19
- /* @__PURE__ */ l("button", {
20
- type: "button",
21
- onClick: m,
22
- disabled: h,
23
- "data-testid": x,
24
- className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
25
- children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
26
- className: "ttw:sr-only",
27
- children: S.closeButton
28
- })]
29
- }),
30
- /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
31
- /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
32
- type: "button",
33
- variant: "outline",
34
- onClick: p,
35
- disabled: h,
36
- "data-testid": b,
37
- children: S.discardButton
38
- }), /* @__PURE__ */ c(o, {
39
- type: "button",
40
- variant: "default",
41
- loading: h,
42
- disabled: h || g,
43
- onClick: f,
44
- "data-testid": y,
45
- children: S.saveDraftButton
46
- })] })
47
- ]
48
- })
49
- });
50
- }
4
+ var t = {
5
+ uploadHeading: "Attach an invoice (optional)",
6
+ scannedAttachment: (e) => `Scanned attachment: ${e}`,
7
+ scanning: "Scanning attachment…",
8
+ scanningAttachment: (e) => `Scanning attachment: ${e}`,
9
+ download: "Download the scanned attachment",
10
+ delete: "Delete the scanned attachment",
11
+ dropzone: e
12
+ };
51
13
  //#endregion
52
- export { d as UnsavedBillDialog, d as default };
14
+ export { t as SOURCE_DOCUMENT_PANEL_LABELS_EN };
@@ -1,2 +1,108 @@
1
- import "./index101.js";
2
- import "./index102.js";
1
+ import { Button as e, Skeleton as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BillUploadDropzone as n } from "./index3.js";
3
+ import "./index5.js";
4
+ import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index102.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Download as o, Trash2 as s } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js
8
+ function c(c) {
9
+ let { mode: l, testId: u, labels: d } = c, f = {
10
+ ...r,
11
+ ...d,
12
+ dropzone: {
13
+ ...r.dropzone,
14
+ ...d?.dropzone
15
+ }
16
+ };
17
+ if (l === "loading") return /* @__PURE__ */ a("div", {
18
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
19
+ "data-testid": u,
20
+ children: [/* @__PURE__ */ i("div", {
21
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
22
+ children: /* @__PURE__ */ i("span", {
23
+ "aria-live": "polite",
24
+ className: "ttw:text-sm ttw:text-muted-foreground",
25
+ children: c.fileName ? f.scanningAttachment(c.fileName) : f.scanning
26
+ })
27
+ }), /* @__PURE__ */ a("div", {
28
+ className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
29
+ children: [
30
+ /* @__PURE__ */ i(t, { className: "ttw:h-6 ttw:w-2/5" }),
31
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-3/5" }),
32
+ /* @__PURE__ */ i(t, { className: "ttw:mt-4 ttw:h-4 ttw:w-full" }),
33
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-full" }),
34
+ /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4/5" }),
35
+ /* @__PURE__ */ i(t, { className: "ttw:mt-auto ttw:h-24 ttw:w-full" })
36
+ ]
37
+ })]
38
+ });
39
+ if (l === "document") {
40
+ let { fileName: t, preview: n, onDownload: r, onDelete: l, isDeleting: d, deleteErrorMessage: p } = c;
41
+ return /* @__PURE__ */ a("div", {
42
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
43
+ "data-testid": u,
44
+ children: [
45
+ /* @__PURE__ */ a("div", {
46
+ className: "ttw:flex ttw:items-center ttw:justify-end ttw:gap-1",
47
+ children: [
48
+ /* @__PURE__ */ i("span", {
49
+ className: "ttw:text-sm ttw:text-muted-foreground",
50
+ children: f.scannedAttachment(t ?? "")
51
+ }),
52
+ r ? /* @__PURE__ */ i(e, {
53
+ type: "button",
54
+ variant: "ghost",
55
+ size: "icon",
56
+ "aria-label": f.download,
57
+ onClick: r,
58
+ children: /* @__PURE__ */ i(o, { className: "ttw:size-4" })
59
+ }) : null,
60
+ l ? /* @__PURE__ */ i(e, {
61
+ type: "button",
62
+ variant: "ghost",
63
+ size: "icon",
64
+ "aria-label": f.delete,
65
+ disabled: d,
66
+ onClick: l,
67
+ children: /* @__PURE__ */ i(s, { className: "ttw:size-4" })
68
+ }) : null
69
+ ]
70
+ }),
71
+ p ? /* @__PURE__ */ i("p", {
72
+ role: "alert",
73
+ className: "ttw:text-sm ttw:text-destructive",
74
+ "data-testid": u ? `${u}-delete-error` : void 0,
75
+ children: p
76
+ }) : null,
77
+ /* @__PURE__ */ i("div", {
78
+ className: "ttw:flex ttw:h-[min(70vh,44rem)] ttw:items-start ttw:justify-center ttw:overflow-auto ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
79
+ children: n
80
+ })
81
+ ]
82
+ });
83
+ }
84
+ return /* @__PURE__ */ a("div", {
85
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
86
+ "data-testid": u,
87
+ children: [
88
+ /* @__PURE__ */ i("p", {
89
+ className: "ttw:mb-3 ttw:text-sm ttw:font-medium ttw:text-foreground",
90
+ children: f.uploadHeading
91
+ }),
92
+ c.noticeMessage ? /* @__PURE__ */ i("p", {
93
+ "aria-live": "polite",
94
+ className: "ttw:mb-3 ttw:text-sm ttw:text-muted-foreground",
95
+ "data-testid": u ? `${u}-notice` : void 0,
96
+ children: c.noticeMessage
97
+ }) : null,
98
+ /* @__PURE__ */ i(n, {
99
+ status: c.uploadStatus,
100
+ errorMessage: c.uploadErrorMessage,
101
+ onFilesSelected: c.onFilesSelected,
102
+ labels: f.dropzone
103
+ })
104
+ ]
105
+ });
106
+ }
107
+ //#endregion
108
+ export { c as SourceDocumentPanel, c as default };
@@ -0,0 +1,2 @@
1
+ import "./index102.js";
2
+ import "./index103.js";
@@ -0,0 +1,10 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js
2
+ var e = {
3
+ title: "Save this bill as a draft?",
4
+ description: "This bill has changes that have not been saved. Save it as a draft to finish later, or discard the changes.",
5
+ saveDraftButton: "Save as draft",
6
+ discardButton: "Discard changes",
7
+ closeButton: "Close"
8
+ };
9
+ //#endregion
10
+ export { e as UNSAVED_BILL_DIALOG_LABELS_EN };
@@ -0,0 +1,52 @@
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as s } from "./index105.js";
3
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { XIcon as u } from "lucide-react";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js
6
+ function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _, testId: v, saveDraftTestId: y, discardTestId: b, closeTestId: x }) {
7
+ let S = {
8
+ ...s,
9
+ ..._
10
+ };
11
+ return /* @__PURE__ */ c(e, {
12
+ open: d,
13
+ onOpenChange: (e) => {
14
+ !e && !h && m();
15
+ },
16
+ children: /* @__PURE__ */ l(t, {
17
+ "data-testid": v,
18
+ children: [
19
+ /* @__PURE__ */ l("button", {
20
+ type: "button",
21
+ onClick: m,
22
+ disabled: h,
23
+ "data-testid": x,
24
+ className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
25
+ children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
26
+ className: "ttw:sr-only",
27
+ children: S.closeButton
28
+ })]
29
+ }),
30
+ /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: S.title }), /* @__PURE__ */ c(n, { children: S.description })] }),
31
+ /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
32
+ type: "button",
33
+ variant: "outline",
34
+ onClick: p,
35
+ disabled: h,
36
+ "data-testid": b,
37
+ children: S.discardButton
38
+ }), /* @__PURE__ */ c(o, {
39
+ type: "button",
40
+ variant: "default",
41
+ loading: h,
42
+ disabled: h || g,
43
+ onClick: f,
44
+ "data-testid": y,
45
+ children: S.saveDraftButton
46
+ })] })
47
+ ]
48
+ })
49
+ });
50
+ }
51
+ //#endregion
52
+ export { d as UnsavedBillDialog, d as default };
@@ -0,0 +1,2 @@
1
+ import "./index105.js";
2
+ import "./index106.js";