@tesouro/embedded-components-react 0.5.213 → 0.5.214

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 (208) 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/bill-upload/data-access/dist/index.js +3 -0
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index38.js → bill-upload/data-access/dist/index2.js} +7 -6
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index3.js +33 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index35.js → bill-upload/data-access/dist/index4.js} +6 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index.js +7 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index2.js +8 -0
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index3.js +13 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +133 -0
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index5.js +3 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js +5 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index7.js +4 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +56 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index9.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index.js +4 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index2.js +10 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +9 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +93 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index6.js +2 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +29 -33
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +11 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index6.js → lib/invalidatePayableQueries/approvalDecisionQueries.js} +8 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index7.js → lib/invalidatePayableQueries/approvalRequestWatch.js} +5 -5
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index3.js → lib/invalidatePayableQueries/cleanUpDeletedPayableQueries.js} +4 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index9.js → lib/invalidatePayableQueries/hasLiveScheduledRecord.js} +5 -5
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/index.js +6 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index8.js → lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js} +5 -5
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index4.js → lib/invalidatePayableQueries/invalidatePayableQueries.js} +5 -5
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index5.js → lib/invalidatePayableQueries/payableProjectionPolling.js} +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index10.js → lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js} +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index12.js → lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js} +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index13.js → lib/payableOcrQueryOptions.js} +4 -4
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index40.js → lib/payablePolicyAssignmentQueryOptions.js} +4 -4
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index2.js → lib/queryKeys.js} +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index21.js → lib/useApplyDuplicateVerdictsMutation.js} +23 -25
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index16.js → lib/usePayableApprovalRequests.js} +11 -11
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index17.js → lib/usePayableHistoryQuery.js} +6 -6
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index18.js → lib/usePayableLineItems.js} +10 -10
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +12 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index22.js → lib/usePayableMutations/useAttachPayableFileMutation.js} +7 -7
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index23.js → lib/usePayableMutations/useCancelPayableMutation.js} +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +40 -0
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +34 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +34 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +34 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index28.js → lib/usePayableMutations/useForceApprovePayableMutation.js} +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index29.js → lib/usePayableMutations/useForceRejectPayableMutation.js} +7 -7
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index32.js → lib/usePayableMutations/useReopenPayableMutation.js} +7 -7
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index33.js → lib/usePayableMutations/useSubmitPayableForApprovalMutation.js} +9 -9
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index34.js → lib/usePayableMutations/useUpdatePayableMutation.js} +7 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index36.js → lib/usePayableMutations/useValidatePayableMutation.js} +5 -5
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index19.js → lib/usePayablePaymentRecordsQuery.js} +8 -8
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index47.js → lib/usePayableSuggestionsQuery.js} +7 -7
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +6 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index39.js → lib/usePayablesQueries/useFirstPayablesPagesQuery.js} +8 -8
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index41.js → lib/usePayablesQueries/usePayableQuery.js} +8 -8
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index42.js → lib/usePayablesQueries/usePayablesByIdsQueries.js} +6 -6
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index43.js → lib/usePayablesQueries/usePayablesCountQueries.js} +7 -7
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index44.js → lib/usePayablesQueries/usePayablesQuery.js} +7 -7
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +29 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -23
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +11 -5
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +12 -13
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +66 -23
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +9 -62
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +29 -2
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +160 -82
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +26 -5
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +22 -31
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +38 -35
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +92 -164
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +82 -45
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +6 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +44 -47
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +112 -12
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +184 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +72 -9
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +31 -65
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +89 -10
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +401 -15
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +12 -161
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +83 -24
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +79 -22
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +222 -30
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +38 -93
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +247 -79
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +23 -4
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +612 -45
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -116
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +27 -179
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +232 -70
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +15 -38
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +3 -35
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -90
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +36 -405
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -16
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +23 -83
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -80
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +124 -228
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -43
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +6 -251
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +81 -22
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +38 -6
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +20 -625
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +22 -4
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +28 -42
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +82 -256
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +50 -3
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +260 -3
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +27 -38
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +396 -1
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +332 -6
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -13
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +217 -16
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -130
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +107 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -6
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +24 -129
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +84 -14
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +46 -37
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +12 -223
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index.js +4 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index30.js → pay-bill/data-access/dist/index2.js} +7 -7
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index3.js +7 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index11.js → pay-bill/data-access/dist/index4.js} +5 -4
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index20.js → pay-bill/data-access/dist/index5.js} +8 -8
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index.js +3 -0
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +179 -0
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +51 -0
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index12.js +1 -0
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js +5 -0
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +73 -0
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index15.js +1 -0
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +18 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index3.js +26 -0
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +72 -0
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index5.js +2 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index6.js +9 -0
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index7.js +7 -0
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +35 -0
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +41 -0
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +10 -0
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index108.js → pay-bill/ui/dist/index10.js} +4 -4
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +2 -0
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index103.js → pay-bill/ui/dist/index2.js} +2 -2
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index104.js → pay-bill/ui/dist/index3.js} +3 -3
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +2 -0
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +13 -0
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index101.js → pay-bill/ui/dist/index6.js} +5 -5
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +2 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index106.js → pay-bill/ui/dist/index8.js} +2 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index107.js → pay-bill/ui/dist/index9.js} +1 -1
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -22
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -12
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -6
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +28 -7
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -93
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -0
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +34 -2
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +12 -28
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -7
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -32
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/duplicateVerdict.js +7 -0
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupDuplicates.js +40 -0
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableRemoval.js +8 -0
  170. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  171. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +0 -32
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +0 -8
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +0 -40
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +0 -34
  177. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +0 -34
  178. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +0 -34
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index31.js +0 -8
  180. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +0 -15
  181. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +0 -29
  182. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +0 -6
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -11
  184. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +0 -10
  185. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +0 -84
  186. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
  187. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +0 -22
  188. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +0 -31
  189. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +0 -86
  190. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +0 -50
  191. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +0 -262
  192. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +0 -35
  193. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +0 -395
  194. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +0 -310
  195. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +0 -4
  196. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +0 -7
  197. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +0 -114
  198. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +0 -1
  199. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +0 -27
  200. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +0 -2
  201. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +0 -2
  202. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +0 -2
  203. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +0 -14
  204. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +0 -108
  205. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  206. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  207. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  208. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,227 +1,16 @@
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 { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCalendarDate.js";
7
- import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
8
- import "../../../shared/ui/dist/index.js";
9
- import { DUPLICATE_BILLS_LABELS_EN as r } from "./index4.js";
10
- import { payableRemoval as i } from "./index5.js";
11
- import { derivePayableStatus as a } from "../../util/dist/lib/derivePayableStatus.js";
12
- import { isEditablePayableStatus as o } from "../../util/dist/lib/isEditablePayableStatus.js";
13
- import { suspectedPayableDuplicates as s } from "../../util/dist/lib/payableDuplicates.js";
14
- import { resolveVendorName as c } from "../../util/dist/lib/resolveVendor.js";
15
- import { DuplicateVerdict as l, useApplyDuplicateVerdictsMutation as u } from "../../data-access/dist/index21.js";
16
- import { usePayablesByIdsQueries as d } from "../../data-access/dist/index42.js";
17
- import "../../data-access/dist/index.js";
18
- import { duplicateRemovalPrompt as f } from "./index7.js";
19
- import { duplicateVerdictMatches as p, groupSuspectedDuplicates as m, resolveDuplicateOriginalId as h } from "./index8.js";
20
- import { useCallback as g, useMemo as _, useState as v } from "react";
21
- import { BanIcon as y, FileCheckIcon as b, Trash2Icon as x } from "lucide-react";
1
+ import { currentApprovalRound as e } from "./index3.js";
22
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js
23
- var S = 5;
24
- function C(e, t) {
25
- return t ? m(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
26
- }
27
- function w({ payable: m, canManage: w = !0, onRemoved: T, onOpenPayable: E, labels: D }) {
28
- let O = _(() => ({
29
- ...r,
30
- ...D
31
- }), [D]), k = s(m), [A] = k, j = m?.id, M = _(() => [...new Set(k.map((e) => e.matched_payable_id))], [k]), N = d(M, { enabled: !!(A && j) }), P = u(), [F, I] = v(!1), [L, R] = v(), [z, B] = v(), V = i(m?.status), H = g(async (t, n, r, a, o) => {
32
- let s = p(t, n, o);
33
- if (s.length && t?.id) try {
34
- await P.mutateAsync({
35
- verdict: n,
36
- targets: s.map((e) => ({
37
- payableId: t.id,
38
- duplicateId: e.id,
39
- matchedPayableId: e.matched_payable_id,
40
- removeBy: i(t.status)
41
- }))
42
- }), e.success(r), a?.();
43
- } catch {
44
- e.error(O.verdictFailedToast);
45
- }
46
- }, [P, O]), U = g((e, t, n) => H(m, e, t, n), [H, m]), W = V === "delete" ? {
47
- button: O.deleteBillButton,
48
- title: O.deleteConfirmTitle,
49
- description: O.deleteConfirmDescription,
50
- confirmButton: O.deleteConfirmButton,
51
- backButton: O.deleteConfirmBackButton,
52
- toast: O.deletedToast
53
- } : V === "confirm" ? {
54
- button: O.confirmBillButton,
55
- title: O.confirmDuplicateTitle,
56
- description: O.confirmDuplicateDescription,
57
- confirmButton: O.confirmBillButton,
58
- backButton: O.cancelConfirmBackButton,
59
- toast: O.confirmedToast
60
- } : {
61
- button: O.cancelBillButton,
62
- title: O.cancelConfirmTitle,
63
- description: O.cancelConfirmDescription,
64
- confirmButton: O.cancelConfirmButton,
65
- backButton: O.cancelConfirmBackButton,
66
- toast: O.cancelledToast
67
- }, G = g(async () => {
68
- await U(l.Remove, W.toast, T), I(!1);
69
- }, [
70
- U,
71
- T,
72
- W.toast
73
- ]), K = _(() => ({
74
- delete: {
75
- action: O.deleteAction,
76
- title: O.deleteConfirmTitle,
77
- description: O.deleteConfirmDescription,
78
- confirmButton: O.deleteConfirmButton,
79
- backButton: O.deleteConfirmBackButton,
80
- toast: O.deletedToast
81
- },
82
- cancel: {
83
- action: O.cancelAction,
84
- title: O.cancelConfirmTitle,
85
- description: O.cancelConfirmDescription,
86
- confirmButton: O.cancelConfirmButton,
87
- backButton: O.cancelConfirmBackButton,
88
- toast: O.cancelledToast
89
- },
90
- confirm: {
91
- action: O.confirmAction,
92
- title: O.confirmDuplicateTitle,
93
- description: O.confirmDuplicateDescription,
94
- confirmButton: O.confirmBillButton,
95
- backButton: O.cancelConfirmBackButton,
96
- toast: O.confirmedToast
97
- }
98
- }), [O]), q = K[L?.removeBy ?? "cancel"], J = g(async () => {
99
- L && (await H(L.payable, l.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
100
- }, [
101
- H,
102
- T,
103
- j,
104
- L,
105
- K
106
- ]), Y = g(async () => {
107
- z && (await H(z.payable, l.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
108
- }, [
109
- H,
110
- O.dismissedToast,
111
- z
112
- ]), X = w && !!(A && j), Z = X && !!V, Q = _(() => {
113
- let e = new Map(N.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
114
- m?.id && e.set(m.id, m);
115
- let r = C([...e.values()], j);
116
- if (r.length < 2) return [];
117
- let l = h(r), u = (e) => {
118
- let t = e.total_amount ?? e.amount_due;
119
- return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
120
- };
121
- return r.map((e) => {
122
- let n = e.status ? a({
123
- apiStatus: e.status,
124
- dueDate: e.due_date,
125
- scheduledPaymentDate: e.scheduled_payment_date
126
- }) : void 0, r = e.id === l, d = e.id === j, f = w && s(e).length > 0, p = c(e), m = i(e.status);
127
- return {
128
- id: e.id,
129
- roleLabel: p,
130
- badges: [...r ? [O.originalBillBadge] : [], ...d ? [O.currentBillBadge] : []],
131
- invoiceNumberLabel: e.document_id ?? "",
132
- roleTone: r ? void 0 : "warning",
133
- amountLabel: u(e),
134
- addedOnLabel: t(e.created_at?.slice(0, 10)),
135
- dueDateLabel: t(e.due_date),
136
- status: n?.status,
137
- statusTone: n?.tone,
138
- onOpen: !d && E ? () => E(e.id, o(e.status ?? void 0)) : void 0,
139
- menu: f ? {
140
- triggerLabel: O.openRow({
141
- vendorLabel: p,
142
- invoiceNumberLabel: "",
143
- addedOnLabel: t(e.created_at?.slice(0, 10))
144
- }),
145
- items: [{
146
- id: "not-duplicate",
147
- label: O.notDuplicateAction,
148
- icon: b,
149
- disabled: P.isPending,
150
- onSelect: () => B({
151
- payable: e,
152
- originalPayableId: r ? void 0 : l
153
- })
154
- }, ...m ? [{
155
- id: "cancel-duplicate",
156
- label: K[m].action,
157
- icon: m === "delete" ? x : y,
158
- disabled: P.isPending,
159
- onSelect: () => R({
160
- payable: e,
161
- removeBy: m
162
- })
163
- }] : []]
164
- } : void 0
165
- };
3
+ function t({ requestsNewestFirst: t, roundStartedAt: n, lookup: r }) {
4
+ let i = e(t, n), a = [];
5
+ for (let e of i) {
6
+ if (e.status !== "waiting") continue;
7
+ let t = [...e.role_ids ?? [], ...e.user_ids ?? []].map((e) => r.get(e)?.label).filter((e) => !!e);
8
+ t.length && a.push({
9
+ id: e.id,
10
+ names: t
166
11
  });
167
- }, [
168
- P.isPending,
169
- w,
170
- N,
171
- O,
172
- E,
173
- m,
174
- j,
175
- K
176
- ]);
177
- return {
178
- isPossibleDuplicate: !!A,
179
- onNotADuplicate: X ? () => B({ payable: m }) : void 0,
180
- onRemoveBill: Z ? () => I(!0) : void 0,
181
- removeBillLabel: Z ? W.button : void 0,
182
- removeConfirmation: {
183
- open: F,
184
- copy: {
185
- title: W.title,
186
- description: W.description,
187
- confirmButton: W.confirmButton,
188
- presentation: { tone: "destructive" }
189
- },
190
- onConfirm: () => void G(),
191
- onCancel: () => I(!1),
192
- isPending: P.isPending,
193
- cancelButtonLabel: W.backButton
194
- },
195
- cancelRowConfirmation: {
196
- open: !!L,
197
- copy: f(q, L?.removeBy ?? "cancel"),
198
- onConfirm: () => void J(),
199
- onCancel: () => R(void 0),
200
- isPending: P.isPending,
201
- cancelButtonLabel: q.backButton
202
- },
203
- keepRowConfirmation: {
204
- open: !!z,
205
- copy: {
206
- title: O.notDuplicateConfirmTitle,
207
- description: O.notDuplicateConfirmDescription,
208
- confirmButton: O.notDuplicateConfirmButton,
209
- presentation: {
210
- alignment: "center",
211
- icon: b,
212
- actionWidth: "equal"
213
- }
214
- },
215
- onConfirm: () => void Y(),
216
- onCancel: () => B(void 0),
217
- isPending: P.isPending,
218
- cancelButtonLabel: O.notDuplicateConfirmBackButton
219
- },
220
- isBusy: P.isPending,
221
- rows: Q,
222
- collapsedRowCount: S,
223
- showMoreLabel: Q.length > S ? O.showMoreRows(Q.length - S) : void 0
224
- };
12
+ }
13
+ return a;
225
14
  }
226
15
  //#endregion
227
- export { w as usePayableDuplicateReview };
16
+ export { t as buildPendingApproverGroups };
@@ -0,0 +1,4 @@
1
+ import { useMarkPayableAsPaidMutation as e } from "./index2.js";
2
+ import "./index3.js";
3
+ import { useSchedulePaymentMutation as t } from "./index5.js";
4
+ export { e as useMarkPayableAsPaidMutation, t as useSchedulePaymentMutation };
@@ -2,14 +2,14 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdMarkAsPaid as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { invalidatePayableQueries as r } from "./index4.js";
10
- import "./index15.js";
5
+ import { postPayablesIdMarkAsPaid as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
+ import "../../../../shared/data-access/dist/index.js";
9
+ import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
10
+ import "../../../data-access/dist/invalidation.js";
11
11
  import { useMutation as i } from "@tanstack/react-query";
12
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index30.js
12
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index2.js
13
13
  function a() {
14
14
  let { client: a, organizationId: o } = t();
15
15
  return i({
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import "../../../../shared/data-access/dist/index.js";
6
+ import "../../../data-access/dist/invalidation.js";
7
+ import "@tanstack/react-query";
@@ -1,7 +1,8 @@
1
- import { invalidatePayableQueries as e } from "./index4.js";
2
- import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as t, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as n } from "./index5.js";
3
- import { hasLiveScheduledRecord as r } from "./index9.js";
4
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js
1
+ import { invalidatePayableQueries as e } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
2
+ import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as t, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as n } from "../../../data-access/dist/lib/invalidatePayableQueries/payableProjectionPolling.js";
3
+ import { hasLiveScheduledRecord as r } from "../../../data-access/dist/lib/invalidatePayableQueries/hasLiveScheduledRecord.js";
4
+ import "../../../data-access/dist/invalidation.js";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index4.js
5
6
  async function i({ client: i, organizationId: a, payableId: o }) {
6
7
  let s = Date.now() + n, c = !1;
7
8
  for (; !c && Date.now() < s;) await new Promise((e) => {
@@ -2,15 +2,15 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdSchedulePayment as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { invalidatePayableQueries as r } from "./index4.js";
10
- import { reconcileScheduledPaymentQueries as i } from "./index11.js";
11
- import "./index15.js";
5
+ import { postPayablesIdSchedulePayment as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
+ import "../../../../shared/data-access/dist/index.js";
9
+ import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
10
+ import "../../../data-access/dist/invalidation.js";
11
+ import { reconcileScheduledPaymentQueries as i } from "./index4.js";
12
12
  import { useMutation as a } from "@tanstack/react-query";
13
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index20.js
13
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index5.js
14
14
  function o() {
15
15
  let { client: o, organizationId: s } = t();
16
16
  return a({
@@ -0,0 +1,3 @@
1
+ import { PayBillWidget as e } from "./index14.js";
2
+ import "./index15.js";
3
+ export { e as PayBillWidget };
@@ -0,0 +1,179 @@
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 { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
7
+ import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
8
+ import { extractApiErrorMessage as r } from "../../../../shared/util/dist/lib/apiErrors.js";
9
+ import { useAllBankAccountsQuery as i } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
10
+ import "../../../../shared/data-access/dist/index.js";
11
+ import "../../../../shared/ui/dist/index.js";
12
+ import { useAnalyticsCaptureException as ee } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
13
+ import "../../../../shared/feature/dist/index.js";
14
+ import { maskAccountNumber as a } from "../../../util/dist/lib/maskAccountNumber.js";
15
+ import { dateToCalendarKey as o, getDefaultPaymentDate as s, isPastEasternDate as c, isTodayInEastern as l } from "./index3.js";
16
+ import { useSchedulePaymentMutation as u } from "../../data-access/dist/index5.js";
17
+ import "../../data-access/dist/index.js";
18
+ import { deriveSourceAccountFunds as d, mapSourceAccountOptions as f } from "./index8.js";
19
+ import { mergePayBillFlowLabels as p } from "./index9.js";
20
+ import { useMemo as m, useState as h } from "react";
21
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js
22
+ function g(e) {
23
+ return !!(e?.account_holder_name && e.routing_number && e.account_number);
24
+ }
25
+ function _({ selectedDate: e, selectedAccount: t, amountDueMinorUnits: n, labels: r }) {
26
+ if (!e) return {
27
+ ok: !1,
28
+ error: r.selectDateError
29
+ };
30
+ if (c(e)) return {
31
+ ok: !1,
32
+ error: r.staleDateError
33
+ };
34
+ if (!t) return {
35
+ ok: !1,
36
+ error: r.selectAccountError
37
+ };
38
+ let i = d({
39
+ selectedAccount: t,
40
+ amountDueMinorUnits: n,
41
+ isToday: l(e),
42
+ labels: r
43
+ });
44
+ return i.state === "error" ? {
45
+ ok: !1,
46
+ error: i.message ?? r.todayInsufficientFunds
47
+ } : {
48
+ ok: !0,
49
+ date: e,
50
+ account: t
51
+ };
52
+ }
53
+ function v({ payableId: c, amountDueMinorUnits: v, currencyCode: y = "USD", dueDate: b, vendorName: te, vendorEmail: x, vendorBankAccount: S, isVendorBankAccountLoading: C, isVendorBankAccountError: ne, onMissingAchInstructions: w, poweredByBankName: re, isOpen: T, onOpenChange: E, labels: D }) {
54
+ let O = m(() => p(D), [D]), k = te ?? O.missingVendorName, [A, j] = h(!1), M = T ?? A, N = (e) => {
55
+ T === void 0 && j(e), E?.(e);
56
+ }, [P, F] = h("schedule"), I = M && P === "schedule", L = M && P === "review", [R, z] = h(() => s()), [B, V] = h(), H = i({ enabled: I || L }), U = u(), W = ee(), G = m(() => f(H.data?.data ?? [], O), [H.data?.data, O]), K = G.find((e) => e.id === B), q = R ? l(R) : !1, J = { before: s() }, Y = d({
57
+ selectedAccount: K,
58
+ amountDueMinorUnits: v,
59
+ isToday: q,
60
+ labels: O
61
+ }), X = n(v / 100, { currencyCode: y }), Z = R ? t(o(R)) : void 0, ie = b ? O.dueDateSuffix(t(b)) : void 0, Q = () => _({
62
+ selectedDate: R,
63
+ selectedAccount: K,
64
+ amountDueMinorUnits: v,
65
+ labels: O
66
+ }), ae = () => {
67
+ if (C) {
68
+ e.error(O.checkingPaymentInstructionsError);
69
+ return;
70
+ }
71
+ if (ne) {
72
+ e.error(O.paymentInstructionsUnavailableError);
73
+ return;
74
+ }
75
+ if (!g(S)) {
76
+ w ? w() : e.error(O.missingPaymentInstructionsError);
77
+ return;
78
+ }
79
+ F("schedule"), N(!0);
80
+ }, $ = () => {
81
+ N(!1);
82
+ };
83
+ return {
84
+ open: ae,
85
+ dialogProps: {
86
+ open: I,
87
+ onOpenChange: (e) => {
88
+ e && F("schedule"), N(e);
89
+ },
90
+ amountDueLabel: O.amountDue,
91
+ amountDue: X,
92
+ dueDateSuffix: ie,
93
+ paymentAmountLabel: O.paymentAmount,
94
+ paymentAmount: X,
95
+ selectedDate: R,
96
+ selectedDateLabel: Z,
97
+ calendarDisabled: J,
98
+ isToday: q,
99
+ selectedAccountId: B,
100
+ accounts: G,
101
+ poweredByBankName: re,
102
+ funds: Y,
103
+ isAccountsLoading: H.isLoading,
104
+ isAccountsError: H.isError,
105
+ isSubmitting: U.isPending,
106
+ onDateChange: z,
107
+ onAccountChange: V,
108
+ onReview: () => {
109
+ let t = Q();
110
+ if (!t.ok) {
111
+ e.error(t.error);
112
+ return;
113
+ }
114
+ F("review");
115
+ },
116
+ onCancel: $,
117
+ labels: O.scheduleDialog
118
+ },
119
+ reviewProps: {
120
+ open: L,
121
+ onOpenChange: (e) => {
122
+ e || N(!1);
123
+ },
124
+ amountLabel: O.paymentAmount,
125
+ amount: X,
126
+ rows: [{
127
+ label: O.sourceAccount,
128
+ value: K?.primaryLabel ?? ""
129
+ }, {
130
+ label: O.paymentDate,
131
+ value: Z ?? ""
132
+ }],
133
+ payTo: {
134
+ name: k,
135
+ email: x,
136
+ methodLabel: O.achMethod,
137
+ fields: g(S) ? [
138
+ {
139
+ label: O.routingNumber,
140
+ value: S.routing_number
141
+ },
142
+ {
143
+ label: O.accountNumber,
144
+ value: S.account_number,
145
+ maskedValue: a(S.account_number)
146
+ },
147
+ {
148
+ label: O.accountHolder,
149
+ value: S.account_holder_name
150
+ }
151
+ ] : []
152
+ },
153
+ isSubmitting: U.isPending,
154
+ onBack: () => {
155
+ F("schedule");
156
+ },
157
+ onCancel: $,
158
+ onSubmit: async () => {
159
+ let t = Q();
160
+ if (!t.ok) {
161
+ e.error(t.error), F("schedule");
162
+ return;
163
+ }
164
+ try {
165
+ await U.mutateAsync({
166
+ payableId: c,
167
+ paymentDate: o(t.date),
168
+ sourceBankAccountId: t.account.id
169
+ }), $(), e.success(O.scheduledToast);
170
+ } catch (t) {
171
+ W(t, { payable_id: c }), e.error(r(t) ?? O.submitError);
172
+ }
173
+ },
174
+ labels: O.reviewDialog
175
+ }
176
+ };
177
+ }
178
+ //#endregion
179
+ export { v as usePayBillFlow };
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useWidgetConfig as e } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
6
+ import "../../../../shared/feature/dist/index.js";
7
+ import { resolveAmountDueMinorUnits as t } from "../../../util/dist/lib/resolveAmountDue.js";
8
+ import { resolveVendor as n } from "../../../util/dist/lib/resolveVendor.js";
9
+ import { usePayableAchInstructions as r } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
10
+ import "../../../../shared/counterpart-management/feature/dist/index.js";
11
+ import { ReviewTransactionDialog as i } from "../../ui/dist/index6.js";
12
+ import { SchedulePaymentDialog as a } from "../../ui/dist/index10.js";
13
+ import "../../ui/dist/index.js";
14
+ import { canReadCounterpartBankAccounts as o } from "./index6.js";
15
+ import { payBillFlowTestIds as s } from "./index7.js";
16
+ import { usePayBillFlow as c } from "./index10.js";
17
+ import { useImperativeHandle as l } from "react";
18
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
19
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js
20
+ function p({ ref: p, payable: m, onMissingAchInstructions: h, poweredByBankName: g, isOpen: _, onOpenChange: v, labels: y }) {
21
+ let b = n(m), { initResponse: x } = e(), S = o(x?.scopes), { achInstructions: C, isLoading: w, isError: T } = r({
22
+ counterpartId: m.counterpart_id,
23
+ currency: m.currency,
24
+ currentBankAccountId: m.counterpart_bank_account_id,
25
+ enabled: S
26
+ }), E = c({
27
+ payableId: m.id,
28
+ amountDueMinorUnits: t(m) ?? 0,
29
+ currencyCode: m.currency ?? void 0,
30
+ dueDate: m.due_date,
31
+ vendorName: b?.name ?? void 0,
32
+ vendorEmail: b?.email ?? void 0,
33
+ vendorBankAccount: C,
34
+ isVendorBankAccountLoading: w,
35
+ isVendorBankAccountError: T,
36
+ onMissingAchInstructions: h,
37
+ poweredByBankName: g,
38
+ isOpen: _,
39
+ onOpenChange: v,
40
+ labels: y
41
+ });
42
+ return l(p, () => ({ open: E.open }), [E.open]), /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(a, {
43
+ ...E.dialogProps,
44
+ testId: s.scheduleDialog
45
+ }), /* @__PURE__ */ d(i, {
46
+ ...E.reviewProps,
47
+ testId: s.reviewDialog
48
+ })] });
49
+ }
50
+ //#endregion
51
+ export { p as PayBillFlow, p as default };
@@ -0,0 +1,5 @@
1
+ import { BILL_PAY_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js
3
+ var t = `${e}.pay_bill`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as PayBillWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -0,0 +1,73 @@
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 { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
7
+ import "../../../../shared/feature/dist/index.js";
8
+ import { resolveAmountDueMinorUnits as n } from "../../../util/dist/lib/resolveAmountDue.js";
9
+ import { MarkAsPaidDialog as r } from "../../ui/dist/index3.js";
10
+ import "../../ui/dist/index.js";
11
+ import { useMarkAsPaidFlow as i } from "./index4.js";
12
+ import "./index5.js";
13
+ import { PayBillFlow as a } from "./index11.js";
14
+ import "./index12.js";
15
+ import { PayBillWidgetAnalyticsEvent as o, WIDGET_NAME as s } from "./index13.js";
16
+ import { useCallback as c, useEffect as l, useImperativeHandle as u, useRef as d, useState as f } from "react";
17
+ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
18
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js
19
+ function g({ payable: t, payableId: s, isPayBillEnabled: g = !0, hasScheduledPayment: _, onMissingAchInstructions: v, poweredByBankName: y, onMarkAsPaidPendingChange: b, openFlow: x, onOpenFlowChange: S, testId: C, labels: w, ref: T }) {
20
+ let E = e();
21
+ l(() => {
22
+ E(o.Mounted);
23
+ }, [E]);
24
+ let [D, O] = f(null), k = x !== void 0, A = k ? x : D, j = c((e) => {
25
+ k || O(e), S?.(e);
26
+ }, [k, S]), M = c((e) => j(e ? "markAsPaid" : null), [j]), N = d(null), P = i({
27
+ payableId: s,
28
+ amountDueMinorUnits: n(t) ?? 0,
29
+ amountToPayMinorUnits: t?.amount_to_pay ?? void 0,
30
+ currencyCode: t?.currency ?? void 0,
31
+ dueDate: t?.due_date,
32
+ hasScheduledPayment: _,
33
+ isOpen: A === "markAsPaid",
34
+ onOpenChange: M,
35
+ testId: C,
36
+ labels: w?.markAsPaid
37
+ });
38
+ return l(() => {
39
+ b?.(P.isPending);
40
+ }, [P.isPending, b]), u(T, () => ({
41
+ openPayBill: () => N.current?.open(),
42
+ openMarkAsPaid: P.open
43
+ }), [P.open]), /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(r, { ...P.dialogProps }), g && t ? /* @__PURE__ */ m(a, {
44
+ ref: N,
45
+ payable: t,
46
+ onMissingAchInstructions: v,
47
+ poweredByBankName: y,
48
+ isOpen: A === "payBill",
49
+ onOpenChange: (e) => j(e ? "payBill" : null),
50
+ labels: w?.payBill
51
+ }) : null] });
52
+ }
53
+ function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ..._ }) {
54
+ return /* @__PURE__ */ m(t, {
55
+ widgetName: s,
56
+ baseUrl: e,
57
+ widgetToken: n,
58
+ organizationId: r,
59
+ configClient: i,
60
+ gatewayRouting: a,
61
+ linkComponent: o,
62
+ implementation: c,
63
+ uiFramework: l,
64
+ errorFallback: u,
65
+ onError: d,
66
+ analytics: f,
67
+ disclosuresAcceptance: p,
68
+ providerLabels: h,
69
+ children: /* @__PURE__ */ m(g, { ..._ })
70
+ });
71
+ }
72
+ //#endregion
73
+ export { _ as PayBillWidget, _ as default };
@@ -0,0 +1,18 @@
1
+ import { MARK_AS_PAID_DIALOG_LABELS_EN as e, mergeMarkAsPaidDialogLabels as t } from "../../ui/dist/index2.js";
2
+ import "../../ui/dist/index.js";
3
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js
4
+ var n = {
5
+ dueDateSuffix: (e) => `by ${e}`,
6
+ paidToast: "Bill marked as paid",
7
+ submitError: "Couldn't mark this bill as paid. Try again.",
8
+ dialog: e
9
+ };
10
+ function r(e) {
11
+ return {
12
+ ...n,
13
+ ...e,
14
+ dialog: t(e?.dialog)
15
+ };
16
+ }
17
+ //#endregion
18
+ export { n as MARK_AS_PAID_FLOW_LABELS_EN, r as mergeMarkAsPaidFlowLabels };