@tesouro/embedded-components-react 0.4.21 → 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 -210
  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 -385
  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 -11
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +9 -94
  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,387 +1,21 @@
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 { formatCalendarDate as ne } from "../../../shared/util/dist/lib/formatCalendarDate.js";
11
- import { useWidgetConfig as re } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
12
- import "../../../shared/feature/dist/index.js";
13
- import { usePayableHistoryQuery as ie } from "../../data-access/dist/index9.js";
14
- import { useAllPayableLineItemsQuery as ae } from "../../data-access/dist/index10.js";
15
- import { usePayableQuery as oe } from "../../data-access/dist/index16.js";
16
- import "../../data-access/dist/index.js";
17
- import { hasUnpaidBalance as se } from "./index6.js";
18
- import { resolveVendor as ce } from "./index7.js";
19
- import { BillCreateScreen as le } from "../../ui/dist/index49.js";
20
- import { BillDecisionDialog as n } from "../../ui/dist/index55.js";
21
- import { BillDuplicateNotice as ue } from "../../ui/dist/index65.js";
22
- import { ExtractionNotice as de } from "../../ui/dist/index83.js";
23
- import { MarkAsPaidDialog as fe } from "../../ui/dist/index92.js";
24
- import { UnsavedBillDialog as pe } from "../../ui/dist/index102.js";
25
- import "../../ui/dist/index.js";
26
- import { usePayableDuplicateReview as me } from "./index12.js";
27
- import "./index13.js";
28
- import { canOverrideApprovalPolicy as he, canReadCounterpartBankAccounts as ge } from "./index18.js";
29
- import { resolveAmountDueMinorUnits as _e } from "./index19.js";
30
- import { usePayableAchInstructions as ve } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
31
- import "../../../shared/counterpart-management/feature/dist/index.js";
32
- import { PayBillFlow as ye } from "./index25.js";
33
- import "./index26.js";
34
- import { useMarkAsPaidFlow as be } from "./index16.js";
35
- import "./index17.js";
36
- import { BILL_CREATE_MESSAGE_LABELS_EN as xe, mergeBillCreateScreenCopy as Se } from "./index43.js";
37
- import { useBillCreateController as Ce } from "./index52.js";
38
- import { useBillForm as we } from "./index54.js";
39
- import { buildPaymentHistory as Te } from "./index3.js";
40
- import { useApprovalPolicyCardView as Ee } from "./index32.js";
41
- import { useCurrentApprovalRequestId as De } from "./index33.js";
42
- import { usePayableDetailActions as Oe } from "./index34.js";
43
- import { useScheduledPayment as ke } from "./index35.js";
44
- import { isEditablePayableStatus as Ae } from "./index36.js";
45
- import { useDraftDelete as je } from "./index37.js";
46
- import { buildBillDetailView as Me } from "./index39.js";
47
- import { buildBillHistory as Ne } from "./index40.js";
48
- import { SourceDocumentContainer as Pe } from "./index44.js";
49
- import { useVendorSectionProps as Fe } from "./index47.js";
50
- import { usePaymentInstructionsForm as Ie } from "./index48.js";
51
- import { billCreateTestIds as r } from "./index55.js";
52
- import { useCallback as i, useEffect as Le, useMemo as a, useRef as Re, useState as o } from "react";
53
- import { Fragment as ze, jsx as s, jsxs as c } from "react/jsx-runtime";
54
- import { Trash2Icon as Be } from "lucide-react";
55
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js
56
- function l({ open: l, onOpenChange: u, payableId: Ve, readOnly: d = !1, copy: He, onCollapse: Ue, poweredByBankName: We }) {
57
- let f = a(() => Se(He), [He]), [p, Ge] = o(), [m, Ke] = o(!1), [qe, Je] = o(!1), [Ye, h] = o(!1), [Xe, Ze] = o(), g = Ve ?? Xe, _ = oe(g, { pollWhileOcrProcessing: !0 }), v = ae(g), { initResponse: y } = re(), Qe = !!y, b = e(y?.scopes, [t.AccountingConfigReadOrg]), x = ee({ enabled: b }), S = _.data, C = !g || !!S, w = !d && C && !!g && S?.status !== "draft", $e = !d && !!S && !Ae(S?.status), T = d || $e, E = we({
58
- payable: S,
59
- lineItems: v.lineItems
60
- }), D = S?.counterpart_id;
61
- Le(() => {
62
- m || D && (Ge(D), Ke(!0));
63
- }, [m, D]);
64
- let et = i((e) => {
65
- Ke(!0), Ge(e);
66
- }, []), O = Fe({
67
- payableId: d ? void 0 : g,
68
- counterpartId: d ? void 0 : p,
69
- payableCounterpartId: D,
70
- isVendorKnown: !d && C,
71
- onCounterpartChange: et,
72
- requiredError: E.errors?.vendor,
73
- payableCounterpartBankAccountId: S?.counterpart_bank_account_id ?? void 0,
74
- extractedVendor: S?.counterpart_raw_data ?? void 0
75
- }), tt = !!(g && m) && !p, k = _.refetch, nt = i(async () => {
76
- let { data: e } = await k();
77
- return e?.status ?? void 0;
78
- }, [k]), rt = a(() => w ? { draftSaved: xe.submittedSaved } : void 0, [w]), A = Ce({
79
- payableId: Ve,
80
- form: E,
81
- labels: rt,
82
- counterpartId: p,
83
- clearCounterpart: tt,
84
- prepareVendorForSave: O.savePaymentInstructions,
85
- onPayableCreated: Ze,
86
- onSaved: Ze,
87
- onDraftSaved: () => u(!1),
88
- onFinalized: () => u(!1),
89
- readSavedStatus: w ? nt : void 0
90
- }), j = !!(A.isSavingDraft || A.isFinalizing), M = d ? g : void 0, N = De({
91
- payableId: M,
92
- status: S?.status
93
- }), it = Re(null), P = ke({
94
- payableId: g,
95
- scheduledPaymentDate: S?.scheduled_payment_date,
96
- enabled: d || w
97
- }), at = ce(S), F = ge(y?.scopes), I = ve({
98
- counterpartId: d ? D : void 0,
99
- currency: S?.currency,
100
- currentBankAccountId: d ? S?.counterpart_bank_account_id ?? void 0 : void 0,
101
- enabled: F && d
102
- }), L = Ie({
103
- payableId: M,
104
- counterpartId: d ? D : void 0,
105
- currentBankAccountId: S?.counterpart_bank_account_id ?? void 0,
106
- canReadCounterpartBankAccounts: F,
107
- saveErrorMessage: f.detail.paymentInstructionsSaveError,
108
- linkErrorMessage: f.detail.paymentInstructionsLinkError
109
- }), ot = e(y?.scopes, [t.PayableWriteOrg]), R = e(y?.scopes, [t.CounterpartWriteOrg]) && ot, st = R && se(S?.status) && !P.hasScheduledPayment && !P.isResolving, z = be({
110
- payableId: M,
111
- amountDueMinorUnits: _e(S) ?? 0,
112
- amountToPayMinorUnits: S?.amount_to_pay ?? void 0,
113
- currencyCode: S?.currency ?? void 0,
114
- dueDate: S?.due_date,
115
- hasScheduledPayment: P.hasScheduledPayment,
116
- labels: f.markAsPaid
117
- }), B = Ee({
118
- payableId: M,
119
- approvalPolicyId: S?.approval_policy_id,
120
- enabled: d,
121
- copy: f.approvalPolicyCopy
122
- }), ct = he({
123
- status: S?.status,
124
- scopes: y?.scopes,
125
- hasWaitingRequest: N.hasWaitingRequest,
126
- arePendingApproversUnknown: B.isLoading
127
- }), { actions: V, decisionDialog: lt, isActionPending: ut } = Oe({
128
- payableId: d || w ? g : void 0,
129
- status: S?.status,
130
- currentApprovalRequestId: N.id,
131
- hasWaitingRequest: N.hasWaitingRequest,
132
- arePendingApproversUnknown: B.isLoading,
133
- hasScheduledPayment: P.hasScheduledPayment,
134
- scheduledPaymentIntentId: P.scheduledPaymentIntentId,
135
- isScheduledPaymentUnknown: P.isResolving,
136
- pendingApprovers: B.pendingApprovers,
137
- labels: f.actions,
138
- isMarkAsPaidPending: z.isPending,
139
- onMarkAsPaidSelect: z.open,
140
- onPayBillSelect: () => it.current?.open(),
141
- onActionSucceeded: w ? () => u(!1) : void 0
142
- }), H = je({
143
- payableId: g,
144
- status: S?.status,
145
- enabled: !d,
146
- labels: f.deleteDraft,
147
- onDeleted: () => u(!1)
148
- }), U = j || ut, W = _.isLoading || v.isResolving || x.isResolving || I.isLoading, G = _.isError || v.isError || x.isError, dt = a(() => [...H.menuItems, ...w || d && !W && !G ? V.menu.map((e) => ({
149
- id: e.id,
150
- label: e.label,
151
- onSelect: e.onSelect,
152
- disabled: e.disabled,
153
- icon: e.icon,
154
- sectionHeading: e.sectionHeading
155
- })) : []], [
156
- V.menu,
157
- H.menuItems,
158
- w,
159
- d,
160
- W,
161
- G
162
- ]), K = a(() => (x.data?.data ?? []).map((e) => ({
163
- value: e.id,
164
- label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
165
- })), [x.data]), q;
166
- Qe && (b ? x.isError ? q = f.lineItemsGlCodeUnavailable.loadError : !x.isResolving && K.length === 0 && (q = f.lineItemsGlCodeUnavailable.empty) : q = f.lineItemsGlCodeUnavailable.noAccess);
167
- let ft = !Qe || !!q || x.isResolving, pt = b && !x.isResolving && !x.isError, J = ie(M), mt = e(y?.scopes, [t.UserReadOrg]), ht = te({ enabled: d && mt }), gt = a(() => Ne(J.data?.data ?? [], ht.data?.data ?? [], f.history), [
168
- J.data,
169
- ht.data,
170
- f.history
171
- ]), _t = a(() => Te({
172
- records: P.paymentRecords,
173
- events: J.data?.data ?? [],
174
- currencyCode: S?.currency,
175
- labels: f.detail
176
- }), [
177
- P.paymentRecords,
178
- J.data,
179
- S?.currency,
180
- f.detail
181
- ]), vt = a(() => d && S ? Me({
182
- payable: S,
183
- lineItems: v.lineItems,
184
- glCodeOptions: K,
185
- glCodeRosterAvailable: pt,
186
- history: gt,
187
- paymentHistory: _t,
188
- approvalPolicy: B.view,
189
- labels: f.detail,
190
- hasScheduledPayment: P.hasScheduledPayment,
191
- payableAchInstructions: I.achInstructions,
192
- payableAchInstructionsReadable: F && !I.isError
193
- }) : void 0, [
194
- P.hasScheduledPayment,
195
- B.view,
196
- F,
197
- f.detail,
198
- K,
199
- pt,
200
- gt,
201
- v.lineItems,
202
- S,
203
- I.achInstructions,
204
- I.isError,
205
- _t,
206
- d
207
- ]), Y = S?.source_of_payable_data === "ocr", X = at?.name, yt = d ? X ? f.viewTitle(X) : f.readOnlyTitle : X && (Y || w) ? f.extractedTitle(X) : f.newTitle, bt = d && S?.created_at ? f.addedOn(ne(S.created_at.slice(0, 10))) : void 0, Z = i(() => {
208
- let e = E.isDirty || O.hasUnsavedVendorChanges || !!A.stagedFile || A.isFileDeletionPending;
209
- if (!T && e) {
210
- h(!0);
211
- return;
212
- }
213
- u(!1);
214
- }, [
215
- A.isFileDeletionPending,
216
- A.stagedFile,
217
- E.isDirty,
218
- T,
219
- u,
220
- O.hasUnsavedVendorChanges
221
- ]), xt = i(() => {
222
- h(!1), u(!1);
223
- }, [u]), Q = v.isResolving || O.mode === "creating", St = i(async () => {
224
- if (Q) return;
225
- let e = await A.saveDraft();
226
- h(!1), e && u(!1);
227
- }, [
228
- A,
229
- Q,
230
- u
231
- ]), $ = me({
232
- payable: S,
233
- onRemoved: () => u(!1),
234
- canManage: ot
235
- }), Ct = i((e) => {
236
- if (!(U || $.isBusy)) return e ? u(!0) : Z();
237
- }, [
238
- $.isBusy,
239
- U,
240
- Z,
241
- u
242
- ]), wt = $.isPossibleDuplicate, Tt = !d && Y && !qe, Et = wt || Tt ? /* @__PURE__ */ c(ze, { children: [wt ? /* @__PURE__ */ s(ue, {
243
- onNotADuplicate: $.onNotADuplicate,
244
- onRemoveBill: $.onRemoveBill,
245
- isActionDisabled: $.isBusy,
246
- labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
247
- testId: r.duplicateNotice
248
- }) : null, Tt ? /* @__PURE__ */ s(de, { onDismiss: () => Je(!0) }) : null] }) : void 0;
249
- return /* @__PURE__ */ c(ze, { children: [
250
- /* @__PURE__ */ s(le, {
251
- open: l,
252
- onOpenChange: Ct,
253
- title: yt,
254
- subtitle: bt,
255
- notice: Et,
256
- vendor: {
257
- ...O,
258
- testId: r.vendorSection
259
- },
260
- values: E.values,
261
- errors: E.errors,
262
- onChange: E.onChange,
263
- lineItems: {
264
- items: E.lineItemRows,
265
- glCodeOptions: K,
266
- glCodeDisabled: ft,
267
- glCodeUnavailableMessage: q,
268
- discount: E.discount,
269
- onDiscountChange: E.onDiscountChange,
270
- tax: E.tax,
271
- onTaxChange: E.onTaxChange,
272
- total: E.total,
273
- onTotalChange: E.onTotalChange,
274
- onAddLineItem: E.onAddLineItem,
275
- errors: E.lineItemErrors,
276
- totalsErrors: E.totalsErrors,
277
- testId: r.lineItems
278
- },
279
- documentPanel: /* @__PURE__ */ s(Pe, {
280
- payableId: g,
281
- readOnly: T,
282
- isDocumentPending: !!g && !S?.file && (_.isLoading || S?.ocr_status === "processing"),
283
- file: S?.file ? {
284
- id: S.file.id,
285
- name: S.file.name,
286
- url: S.file.url,
287
- mimetype: S.file.mimetype
288
- } : void 0,
289
- staging: {
290
- stagedFile: A.stagedFile,
291
- onFileStaged: A.stageFile,
292
- onClearStagedFile: A.clearStagedFile,
293
- isSaving: j
294
- },
295
- deletion: {
296
- isPending: A.isFileDeletionPending,
297
- onRequest: A.requestFileDeletion,
298
- onDetachNow: A.detachFileNow,
299
- isDeleting: A.isDeletingFile,
300
- hasFailed: A.hasFileDeletionFailed
301
- }
302
- }),
303
- menuItems: dt,
304
- readOnly: T,
305
- detail: d ? {
306
- view: vt,
307
- actions: V,
308
- scheduledSummary: P.hasScheduledPayment && P.scheduledDateLabel ? f.scheduledSummary(P.scheduledDateLabel) : void 0,
309
- showApprovalOverrideNotice: ct,
310
- onEditPaymentInstructions: D && st ? L.open : void 0,
311
- paymentInstructionsForm: D && (st || R && S?.status === "rejected") ? {
312
- isOpen: L.isOpen,
313
- values: L.values,
314
- errors: L.errors,
315
- isSaving: L.isSaving,
316
- onOpen: L.open,
317
- onCancel: L.close,
318
- onChange: L.onChange,
319
- onSave: L.save
320
- } : void 0,
321
- hideMissingPaymentInstructions: S?.status === "paid" || S?.status === "canceled",
322
- isLoading: W,
323
- isError: G,
324
- paymentHistoryError: P.isError || J.isError,
325
- paymentHistoryLoading: P.isResolving || J.isLoading
326
- } : void 0,
327
- isLineItemsLoading: v.isResolving,
328
- isSaving: U,
329
- isSavingDraft: A.isSavingDraft,
330
- isSubmitting: A.isFinalizing,
331
- onCancel: Z,
332
- onCollapse: d ? Ue : void 0,
333
- onSaveDraft: A.saveDraft,
334
- onFinalize: A.finalize,
335
- scrollToErrorToken: A.scrollToErrorToken,
336
- showSubmit: !T && C,
337
- testId: r.dialog
338
- }),
339
- /* @__PURE__ */ s(pe, {
340
- open: Ye,
341
- onSaveDraft: St,
342
- onDiscard: xt,
343
- onCancel: () => h(!1),
344
- isSaving: A.isSavingDraft,
345
- isSaveDraftDisabled: Q,
346
- labels: f.unsavedChanges,
347
- testId: r.unsavedDialog,
348
- saveDraftTestId: r.unsavedSaveDraft,
349
- discardTestId: r.unsavedDiscard,
350
- closeTestId: r.unsavedClose
351
- }),
352
- /* @__PURE__ */ s(n, {
353
- ...lt,
354
- labels: { cancelButton: f.actions.decisionDialog.cancelButton },
355
- testId: r.decisionDialog,
356
- confirmTestId: r.decisionConfirm,
357
- reasonTestId: r.decisionReason
358
- }),
359
- /* @__PURE__ */ s(n, {
360
- ...H.dialog,
361
- labels: { cancelButton: f.actions.decisionDialog.cancelButton },
362
- testId: r.deleteDraftDialog,
363
- confirmTestId: r.deleteDraftConfirm
364
- }),
365
- /* @__PURE__ */ s(n, {
366
- open: $.removeConfirmation.open,
367
- copy: $.removeConfirmation.copy,
368
- onConfirm: $.removeConfirmation.onConfirm,
369
- onCancel: $.removeConfirmation.onCancel,
370
- isPending: $.removeConfirmation.isPending,
371
- confirmIcon: /* @__PURE__ */ s(Be, {}),
372
- labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
373
- testId: r.duplicateRemoveDialog,
374
- confirmTestId: r.duplicateRemoveConfirm
375
- }),
376
- /* @__PURE__ */ s(fe, { ...z.dialogProps }),
377
- d && S ? /* @__PURE__ */ s(ye, {
378
- ref: it,
379
- payable: S,
380
- onMissingAchInstructions: R ? L.open : void 0,
381
- poweredByBankName: We,
382
- labels: f.payBill
383
- }) : null
384
- ] });
385
- }
2
+ var e = {
3
+ dialog: "bill-pay-bill-create-dialog",
4
+ vendorSection: "bill-pay-bill-create-vendor",
5
+ lineItems: "bill-pay-bill-create-line-items",
6
+ documentPanel: "bill-pay-bill-create-document",
7
+ duplicateNotice: "bill-pay-bill-create-duplicate-notice",
8
+ duplicateRemoveDialog: "bill-pay-bill-create-duplicate-remove-dialog",
9
+ duplicateRemoveConfirm: "bill-pay-bill-create-duplicate-remove-confirm",
10
+ decisionDialog: "bill-pay-bill-decision-dialog",
11
+ decisionConfirm: "bill-pay-bill-decision-confirm",
12
+ decisionReason: "bill-pay-bill-decision-reason",
13
+ deleteDraftDialog: "bill-pay-bill-delete-draft-dialog",
14
+ deleteDraftConfirm: "bill-pay-bill-delete-draft-confirm",
15
+ unsavedDialog: "bill-pay-bill-unsaved-dialog",
16
+ unsavedSaveDraft: "bill-pay-bill-unsaved-save-draft",
17
+ unsavedDiscard: "bill-pay-bill-unsaved-discard",
18
+ unsavedClose: "bill-pay-bill-unsaved-close"
19
+ };
386
20
  //#endregion
387
- export { l as BillCreateDialog, l as default };
21
+ export { e as billCreateTestIds };