@tesouro/embedded-components-react 0.5.212 → 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,92 +1,5 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { getStateOptions as t } from "../../../shared/util/dist/lib/usStates.js";
7
- import { AchFieldGroup as n } from "../../../shared/counterpart-management/ui/dist/index5.js";
8
- import { CounterpartFormFields as r, useFocusFirstInvalidField as i } from "../../../shared/counterpart-management/ui/dist/index9.js";
9
- import "../../../shared/counterpart-management/ui/dist/index.js";
10
- import { VendorSearchCombobox as a } from "../../ui/dist/index46.js";
11
- import "../../ui/dist/index.js";
12
- import "../../../shared/counterpart-management/feature/dist/index.js";
13
- import { mergeVendorInlineFormLabels as o } from "./index38.js";
14
- import { useMemo as s } from "react";
15
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
1
+ import { BILL_PAY_WIDGET_NAME as e } from "../../util/dist/lib/widgetName.js";
16
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js
17
- function u({ mode: u, values: d, errors: f, onChange: p, onAddressChange: m, sectionsToExpand: h, onAddressExpand: g, onCancel: _, onSave: v, isSaving: y = !1, search: b, paymentInstructions: x, labels: S }) {
18
- let C = s(() => o(S), [S]), w = s(() => t(), []), T = i(f ?? {});
19
- return /* @__PURE__ */ l("div", {
20
- ref: T,
21
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
22
- children: [
23
- /* @__PURE__ */ c("p", {
24
- className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
25
- children: u === "edit" ? C.editTitle : C.createTitle
26
- }),
27
- u === "edit" && b ? /* @__PURE__ */ c(a, {
28
- ...b,
29
- labels: { fieldLabel: C.switchVendorFieldLabel }
30
- }) : null,
31
- /* @__PURE__ */ c(r, {
32
- mode: u,
33
- counterpartMode: "vendor",
34
- values: d,
35
- errors: f,
36
- stateOptions: w,
37
- onChange: p,
38
- onAddressChange: m,
39
- sections: {
40
- entityType: !0,
41
- profileHeading: !1,
42
- title: !1,
43
- taxId: !1,
44
- address: "collapsible",
45
- bankAccount: !1
46
- },
47
- sectionsToExpand: h,
48
- onAddressExpand: g,
49
- labels: { businessNameLabel: C.nameLabel }
50
- }),
51
- x ? /* @__PURE__ */ l("div", {
52
- className: "ttw:flex ttw:flex-col ttw:gap-3",
53
- children: [/* @__PURE__ */ l("div", {
54
- className: "ttw:flex ttw:flex-col ttw:gap-1",
55
- children: [/* @__PURE__ */ c("p", {
56
- className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
57
- children: C.paymentInstructionsHeading
58
- }), /* @__PURE__ */ c("p", {
59
- className: "ttw:text-sm ttw:text-muted-foreground",
60
- children: x.isExtracted ? C.paymentInstructionsExtracted : C.paymentInstructionsDescription
61
- })]
62
- }), /* @__PURE__ */ c(n, {
63
- idPrefix: "vendor-inline-ach",
64
- values: x.values,
65
- errors: x.errors,
66
- onChange: x.onChange,
67
- labels: C.ach
68
- })]
69
- }) : null,
70
- /* @__PURE__ */ l("div", {
71
- className: "ttw:flex ttw:justify-end ttw:gap-2",
72
- children: [/* @__PURE__ */ c(e, {
73
- type: "button",
74
- variant: "outline",
75
- onClick: _,
76
- "aria-label": C.cancelAriaLabel,
77
- disabled: y,
78
- children: C.cancel
79
- }), v ? /* @__PURE__ */ c(e, {
80
- type: "button",
81
- onClick: v,
82
- "aria-label": C.saveAriaLabel,
83
- loading: y,
84
- disabled: y,
85
- children: C.save
86
- }) : null]
87
- })
88
- ]
89
- });
90
- }
3
+ var t = { Mounted: `${e}.mounted` }, n = e;
91
4
  //#endregion
92
- export { u as VendorInlineForm, u as default };
5
+ export { t as BillPayWidgetAnalyticsEvent, n as WIDGET_NAME };
@@ -2,414 +2,45 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
7
- import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import "../../../shared/ui/dist/index.js";
10
- import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
5
+ import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
11
6
  import "../../../shared/feature/dist/index.js";
12
- import { usePayableSuggestionsQuery as i } from "../../data-access/dist/index47.js";
13
- import "../../data-access/dist/index.js";
14
- import { COUNTERPART_MESSAGE_LABELS_EN as a } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
15
- import { counterpartFormBankAccountToCreatePayload as ee, counterpartFormBankAccountToUpdatePayload as te, getAchInstructions as o, getCounterpartEmail as s, getCounterpartName as c, getPayableAchInstructions as ne, isAchCompatibleBankAccount as l, resolveCounterpartBankAccountWrite as re, validateAchFormValues as ie } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
16
- import { useCounterpartsQuery as ae } from "../../../shared/counterpart-management/data-access/dist/index3.js";
17
- import { useCreateCounterpartBankAccountMutation as oe, useUpdateCounterpartBankAccountMutation as se } from "../../../shared/counterpart-management/data-access/dist/index5.js";
18
- import { useCounterpartDetails as ce } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js";
19
- import { useCounterpartForm as le } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
20
- import "../../../shared/counterpart-management/feature/dist/index.js";
21
- import { VENDOR_SECTION_PROPS_LABELS_EN as ue } from "./index38.js";
22
- import { buildVendorPrefill as de } from "./index40.js";
23
- import { VendorInlineForm as fe } from "./index41.js";
24
- import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
25
- import { jsx as pe } from "react/jsx-runtime";
7
+ import { BillPayWidgetAnalyticsEvent as t, WIDGET_NAME as n } from "./index41.js";
8
+ import { Payables as r } from "../../../monite-sdk/dist/index436.js";
9
+ import "../../../monite-sdk/dist/index.js";
10
+ import { MoniteRegionProvider as i } from "../../../shared/monite-wrapper/feature/dist/lib/MoniteRegionProvider.js";
11
+ import "../../../shared/monite-wrapper/feature/dist/index.js";
12
+ import { useEffect as a } from "react";
13
+ import { jsx as o } from "react/jsx-runtime";
26
14
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js
27
- var me = 10, he = 300, h = {
28
- accountHolderName: "",
29
- routingNumber: "",
30
- accountNumber: ""
31
- };
32
- function ge(e) {
33
- return {
34
- accountHolderName: e.account_holder_name ?? "",
35
- routingNumber: e.routing_number ?? "",
36
- accountNumber: e.account_number ?? ""
37
- };
15
+ var s = (e) => e;
16
+ function c(n) {
17
+ let i = e();
18
+ return a(() => {
19
+ i(t.Mounted);
20
+ }, [i]), /* @__PURE__ */ o(r, { ...n });
38
21
  }
39
- function g(e, t) {
40
- return e.accountHolderName.trim() === t.accountHolderName.trim() && e.routingNumber.trim() === t.routingNumber.trim() && e.accountNumber.trim() === t.accountNumber.trim();
41
- }
42
- function _e(e, t) {
43
- return e?.find((e) => e.id === t && l(e)) ?? o(e);
44
- }
45
- function _({ payableId: o, counterpartId: l, payableCounterpartId: _, payableCounterpartBankAccountId: ve, isVendorKnown: ye = !0, onCounterpartChange: be, requiredError: xe, extractedVendor: v, readOnly: y = !1, canEditVendor: b = !0, canEditPaymentInstructions: Se = !0, canAddPaymentInstructions: x = !0, confirmDiscard: S = (e) => e(), labels: Ce }) {
46
- let C = {
47
- ...ue,
48
- ...Ce
49
- }, { initResponse: we } = r(), Te = t(we?.scopes, [n.CounterpartReadOrg]), [w, Ee] = m(""), [T, De] = m(""), Oe = p(T), [E, ke] = m(), [Ae, je] = m("none"), [Me, Ne] = m(), [Pe, D] = m(!1), [O, k] = m(!1), [A, j] = m(h), Fe = p(A);
50
- Fe.current = A;
51
- let M = p(h), [N, P] = m(), [Ie, Le] = m(), F = Ie?.bankAccountId, I = p(void 0), Re = p(l), [ze, Be] = m(!1), [Ve, He] = m(!1), L = p(void 0), Ue = (O || E === "create") && !g(A, M.current), R = u(() => {
52
- k(!1), j(h), M.current = h, P(void 0);
53
- }, []), z = u((e) => {
54
- Be(!0), be(e);
55
- }, [be]), We = i(o, { enabled: !y && !!o && !l && !_ }).data?.suggested_counterpart?.id, Ge = v?.name;
56
- d(() => {
57
- !y && !ze && !l && !_ && We && z(We);
58
- }, [
59
- l,
60
- _,
61
- y,
62
- ze,
63
- We,
64
- z
65
- ]), d(() => {
66
- Re.current !== l && (Re.current = l, R(), Le((e) => e?.counterpartId === l ? e : void 0));
67
- }, [l, R]), d(() => {
68
- let e = setTimeout(() => {
69
- De(w.trim());
70
- }, he);
71
- return () => clearTimeout(e);
72
- }, [w]);
73
- let B = ae({
74
- sort: "counterpart_name",
75
- order: "asc",
76
- limit: me,
77
- counterpart_name__icontains: T || void 0,
78
- is_vendor: !0,
79
- enabled: !y && (E === "edit" || !E && !l) && ye && Te
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, providerLabels: v, pageTitleComponent: y = s, ...b }) {
23
+ return /* @__PURE__ */ o(i, {
24
+ widgetName: n,
25
+ baseUrl: e,
26
+ widgetToken: t,
27
+ organizationId: r,
28
+ configClient: a,
29
+ gatewayRouting: l,
30
+ linkComponent: u,
31
+ implementation: d,
32
+ uiFramework: f,
33
+ errorFallback: p,
34
+ onError: m,
35
+ finopsThemeColors: h,
36
+ analytics: g,
37
+ disclosuresAcceptance: _,
38
+ providerLabels: v,
39
+ children: /* @__PURE__ */ o(c, {
40
+ ...b,
41
+ pageTitleComponent: y
42
+ })
80
43
  });
81
- d(() => {
82
- B.isPlaceholderData || (Oe.current = T);
83
- }, [T, B.isPlaceholderData]);
84
- let Ke = B.isPlaceholderData && Oe.current !== T, V = ce({
85
- selectedId: l,
86
- enabled: Te
87
- }), qe = oe(), Je = se(), H = le({
88
- view: Ae,
89
- setView: je,
90
- selectedId: Me,
91
- setSelectedId: Ne,
92
- messages: a,
93
- counterpartType: "vendor",
94
- counterpart: V.counterpart,
95
- primaryAddress: V.primaryAddress,
96
- includeBankAccount: !1
97
- }), { openCreate: Ye, openEdit: Xe, close: Ze, setValues: U, submit: Qe } = H, W = f(() => de(v), [v]), G = W?.bankAccount, K = f(() => {
98
- let e = V.counterpart;
99
- if (!e) return;
100
- if (V.isBankAccountsLoading) return {
101
- name: c(e),
102
- email: s(e),
103
- methodLabel: C.paymentMethodLoading,
104
- hasPaymentInstructions: !1
105
- };
106
- if (V.isBankAccountsError) return {
107
- name: c(e),
108
- email: s(e),
109
- methodLabel: C.paymentMethodUnavailable,
110
- hasPaymentInstructions: !1
111
- };
112
- let t = ne(V.bankAccounts);
113
- return {
114
- name: c(e),
115
- email: s(e),
116
- methodLabel: t ? C.paymentInstructionsValue(t.account_number?.slice(-4) ?? "") : C.noMethod,
117
- hasPaymentInstructions: !!t
118
- };
119
- }, [
120
- V.bankAccounts,
121
- V.counterpart,
122
- V.isBankAccountsError,
123
- V.isBankAccountsLoading,
124
- C
125
- ]), $e = f(() => {
126
- let e = Ge?.trim();
127
- if (!e || l || E) return;
128
- let t = G?.accountNumber;
129
- return {
130
- name: e,
131
- email: v?.email ?? "",
132
- description: C.pendingVendorDescription,
133
- methodLabel: t ? C.paymentInstructionsValue(t.slice(-4)) : "",
134
- hasPaymentInstructions: !!t
135
- };
136
- }, [
137
- l,
138
- G?.accountNumber,
139
- v?.email,
140
- Ge,
141
- E,
142
- C.paymentInstructionsValue,
143
- C.pendingVendorDescription
144
- ]), q = l === _ ? ve : void 0, J = f(() => _e(V.bankAccounts, q), [V.bankAccounts, q]), et = f(() => ne(V.bankAccounts)?.id, [V.bankAccounts]), tt = !V.counterpart || V.isLoading || V.isFetching || V.isError || V.isBankAccountsLoading || V.isBankAccountsFetching || V.isBankAccountsError, nt = tt || V.isAddressesLoading || V.isAddressesFetching || V.isAddressesError, rt = b && !tt && V.isAddressesError ? { onRetry: V.refetchAddresses } : void 0, Y = u(() => {
145
- Ze(), ke(void 0), D(!1), I.current = void 0;
146
- }, [Ze]), it = u((e) => {
147
- if (D(!1), I.current = void 0, e === "edit") Ne(l), Xe();
148
- else {
149
- Ye();
150
- let e = w.trim();
151
- U((t) => ({
152
- ...t,
153
- entityType: "organization",
154
- legalName: e || W?.legalName || t.legalName,
155
- email: W?.email || t.email,
156
- phone: W?.phone || t.phone,
157
- address: W?.address ?? t.address
158
- })), j(G ?? h), P(void 0), M.current = h;
159
- }
160
- ke(e);
161
- }, [
162
- l,
163
- G,
164
- Ye,
165
- Xe,
166
- w,
167
- U,
168
- W
169
- ]), at = u(() => {
170
- let e = J ? ge(J) : h;
171
- M.current = e, j(e), P(void 0), k(!0);
172
- }, [J]), ot = u((e) => {
173
- j((t) => ({
174
- ...t,
175
- ...e
176
- })), P(void 0);
177
- }, []), st = u(() => {
178
- Ue ? S(R) : R();
179
- }, [
180
- R,
181
- S,
182
- Ue
183
- ]), X = u(() => {
184
- Y(), R();
185
- }, [R, Y]), Z = Pe || Ue, Q = u((e) => {
186
- let t = () => {
187
- X(), e();
188
- };
189
- Z ? S(t) : t();
190
- }, [
191
- S,
192
- X,
193
- Z
194
- ]), ct = u(() => {
195
- Z ? S(X) : X();
196
- }, [
197
- S,
198
- X,
199
- Z
200
- ]), lt = u(async (t) => {
201
- let n = l, r = !1, i = Fe.current;
202
- if (!g(i, M.current)) {
203
- let e = ie(i);
204
- if (Object.keys(e).length > 0) return P(e), E !== "create" && k(!0), { ok: !1 };
205
- }
206
- if (E === "edit" && nt) return { ok: !1 };
207
- if (E) {
208
- if (E === "create" && I.current) n = I.current;
209
- else {
210
- let e = await Qe();
211
- if (!e.ok) return { ok: !1 };
212
- E === "create" ? (n = e.counterpartId, I.current = n) : n = e.counterpartId ?? n;
213
- }
214
- E === "create" && (r = !0);
215
- }
216
- if (!n) return { ok: !0 };
217
- let a = V.isBankAccountsLoading || V.isBankAccountsFetching || V.isBankAccountsError;
218
- if (g(i, M.current)) {
219
- let e = F ?? q;
220
- return e ? (t && (k(!1), E && Y()), r && z(n), {
221
- ok: !0,
222
- counterpartId: n,
223
- counterpartBankAccountId: e
224
- }) : r ? (t && Y(), z(n), {
225
- ok: !0,
226
- counterpartId: n
227
- }) : a ? { ok: !1 } : (t && (k(!1), E && Y()), {
228
- ok: !0,
229
- counterpartId: n,
230
- counterpartBankAccountId: et
231
- });
232
- }
233
- if (a) return { ok: !1 };
234
- P(void 0);
235
- let o = re(V.bankAccounts, F ?? J?.id), s;
236
- try {
237
- o.kind === "update" ? (await Je.mutateAsync({
238
- path: {
239
- counterpart_id: n,
240
- bank_account_id: o.bankAccountId
241
- },
242
- body: te(i, { includeAchDefaults: o.includeAchDefaults })
243
- }), s = o.bankAccountId) : s = (await qe.mutateAsync({
244
- path: { counterpart_id: n },
245
- body: ee(i, { isDefaultForCurrency: o.isDefaultForCurrency })
246
- }))?.id;
247
- } catch {
248
- return e.error(C.bankAccountSaveFailed), {
249
- ok: !1,
250
- counterpartId: n
251
- };
252
- }
253
- return M.current = i, Le(s ? {
254
- counterpartId: n,
255
- bankAccountId: s
256
- } : void 0), t && (k(!1), E && Y()), r && z(n), {
257
- ok: !0,
258
- counterpartId: n,
259
- counterpartBankAccountId: s
260
- };
261
- }, [
262
- Y,
263
- l,
264
- qe,
265
- V.bankAccounts,
266
- V.isBankAccountsError,
267
- V.isBankAccountsFetching,
268
- V.isBankAccountsLoading,
269
- E,
270
- nt,
271
- q,
272
- et,
273
- z,
274
- J,
275
- Qe,
276
- Je,
277
- F
278
- ]), ut = u((e) => {
279
- if (L.current) return L.current;
280
- let t = e?.closeOnSuccess ?? !0, n = (async () => {
281
- He(!0);
282
- try {
283
- return await lt(t);
284
- } finally {
285
- L.current = void 0, He(!1);
286
- }
287
- })();
288
- return L.current = n, n;
289
- }, [lt]), dt = u(() => {
290
- k(!1), E && Y();
291
- }, [E, Y]), ft = f(() => (B.data?.data ?? []).map((e) => ({
292
- name: c(e),
293
- email: s(e),
294
- onSelect: () => {
295
- Q(() => z(e.id));
296
- }
297
- })), [
298
- B.data,
299
- Q,
300
- z
301
- ]), pt = u((e) => {
302
- D(!0), U((t) => e.entityType === "individual" && t.entityType !== "individual" ? {
303
- ...t,
304
- ...e,
305
- firstName: t.firstName || t.legalName,
306
- legalName: t.legalName
307
- } : e.entityType === "organization" && t.entityType !== "organization" ? {
308
- ...t,
309
- ...e,
310
- legalName: t.legalName || [t.firstName, t.lastName].filter(Boolean).join(" ")
311
- } : {
312
- ...t,
313
- ...e
314
- });
315
- }, [U]), mt = u((e) => {
316
- D(!0), U((t) => ({
317
- ...t,
318
- address: {
319
- ...t.address,
320
- ...e
321
- }
322
- }));
323
- }, [U]), ht = {
324
- query: w,
325
- onQueryChange: Ee,
326
- isLoading: !ye || !we || !!l && V.isLoading || B.isLoading || B.isFetching && Ke,
327
- onAddVendor: () => {
328
- Q(() => it("create"));
329
- },
330
- results: ft
331
- }, gt = x && (E === "create" || !tt) ? {
332
- isOpen: O,
333
- values: A,
334
- errors: N,
335
- onOpen: at,
336
- onCancel: st,
337
- onChange: ot
338
- } : void 0, _t = E !== "create" && gt ? {
339
- ...gt,
340
- onOpen: E === "edit" ? () => Q(at) : gt.onOpen,
341
- canEditExisting: Se
342
- } : void 0, vt = H.isSubmitting || qe.isPending || Je.isPending, $ = {
343
- prepareVendorForSave: ut,
344
- isVendorSavePending: Ve || vt,
345
- hasUnsavedVendorChanges: Z,
346
- isPendingVendor: !!$e,
347
- isEditingPayTo: !!E || O,
348
- activePayToOperation: E ? "vendor" : O ? K?.hasPaymentInstructions ? "existingInstructions" : "missingInstructions" : void 0,
349
- discardPayToEdits: X,
350
- finalizePayToSave: dt,
351
- openPaymentInstructions: at,
352
- paymentInstructions: _t,
353
- detailsWarning: rt
354
- }, yt = E === "create" && x ? {
355
- values: A,
356
- errors: N,
357
- onChange: ot,
358
- isExtracted: !!(G && g(A, G))
359
- } : void 0;
360
- if (E) return {
361
- mode: "creating",
362
- summary: K,
363
- newVendorForm: /* @__PURE__ */ pe(fe, {
364
- mode: E,
365
- values: H.values,
366
- errors: H.errors,
367
- onChange: pt,
368
- onAddressChange: mt,
369
- sectionsToExpand: H.sectionsToExpand,
370
- onAddressExpand: H.expandAddress,
371
- onCancel: ct,
372
- onSave: ut,
373
- isSaving: vt,
374
- search: E === "edit" && !y ? ht : void 0,
375
- paymentInstructions: yt
376
- }),
377
- ...$
378
- };
379
- if (K) return {
380
- mode: "resolved",
381
- summary: K,
382
- onEdit: b && !nt ? () => Q(() => it("edit")) : void 0,
383
- ...$
384
- };
385
- if ($e) {
386
- let e = () => Q(() => {
387
- Be(!0), it("create");
388
- });
389
- return {
390
- mode: "resolved",
391
- summary: $e,
392
- onEdit: b ? e : void 0,
393
- error: xe,
394
- ...$,
395
- showPaymentInstructions: !0,
396
- paymentInstructions: b && x ? {
397
- isOpen: !1,
398
- values: A,
399
- errors: N,
400
- onOpen: e,
401
- onChange: ot,
402
- onCancel: st,
403
- canEditExisting: !0
404
- } : void 0
405
- };
406
- }
407
- return {
408
- mode: "selecting",
409
- error: B.isError ? C.searchFailed : V.isError ? C.vendorDetailsFailed : xe,
410
- search: ht,
411
- ...$
412
- };
413
44
  }
414
45
  //#endregion
415
- export { _ as useVendorSectionProps };
46
+ export { l as BillPayWidgetMonite, l as default };
@@ -1,16 +1 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js
2
- function e(e) {
3
- return new Promise((t, n) => {
4
- let r = new FileReader();
5
- r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("Failed to read file")), r.onload = () => {
6
- let e = r.result;
7
- if (typeof e != "string") {
8
- n(/* @__PURE__ */ Error("Failed to read file as a data URL"));
9
- return;
10
- }
11
- t(e.slice(e.indexOf(",") + 1));
12
- }, r.readAsDataURL(e);
13
- });
14
- }
15
- //#endregion
16
- export { e as encodeFileToBase64 };
1
+ import "./index42.js";
@@ -1,87 +1,27 @@
1
- import { parseDecimalAmountToMinorUnits as e } from "../../../shared/util/dist/lib/parseDecimalAmountToMinorUnits.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { countSuspectedPayableDuplicateGroups as e } from "../../util/dist/lib/payableDuplicates.js";
6
+ import { usePayablesQuery as t } from "../../data-access/dist/lib/usePayablesQueries/usePayablesQuery.js";
7
+ import "../../data-access/dist/index.js";
2
8
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js
3
- var t = "USD";
4
- function n(n) {
5
- return e(n, t);
6
- }
7
- function r(e) {
8
- let t = e.trim();
9
- if (!t) return null;
10
- let n = Number(t);
11
- return Number.isFinite(n) && n > 0 ? n : null;
12
- }
13
- function i(e) {
14
- return !!(e.description.trim() || e.glCode.trim() || n(e.price) !== null || n(e.amount) !== null);
15
- }
16
- function a(e) {
17
- return n(e) ?? 0;
18
- }
19
- function o(e) {
20
- let t = Number.parseFloat(e);
21
- return Number.isFinite(t) ? t : 0;
22
- }
23
- function s(e) {
24
- let t = n(e);
25
- return t === null ? e : c(t);
26
- }
27
- function c(e) {
28
- return (e / 100).toFixed(2);
29
- }
30
- function l({ values: e, initialLineItems: r, counterpartId: i, clearCounterpart: a, counterpartBankAccountId: o, editedTotals: s, currentTotals: c, lineItems: l, document: f, includeBlankPoNumber: p = !0 }) {
31
- let m = { currency: t };
32
- i ? m.counterpart_id = i : a && (m.counterpart_id = null), i ? m.counterpart_bank_account_id = o ?? null : a && (m.counterpart_bank_account_id = null), e.invoiceNumber && (m.document_id = e.invoiceNumber), e.invoiceDate && (m.issued_at = e.invoiceDate), e.dueDate && (m.due_date = e.dueDate);
33
- let h = e.poNumber.trim();
34
- if ((h || p) && (m.purchase_order_number = h || null), f && (m.base64_encoded_file = f.base64EncodedFile, m.file_name = f.fileName), s && (m.discount = n(s.discount) ?? 0, m.tax_amount = n(s.tax) ?? 0, s.total !== void 0 && (m.total_amount = n(s.total) ?? 0)), c && l) {
35
- let e = d(l), t = n(c.tax) ?? 0, r = n(c.discount) ?? 0, i = c.total === void 0 ? (e ?? 0) - r + t : n(c.total) ?? 0;
36
- e !== void 0 && (m.subtotal = e), m.discount = r, m.tax_amount = t, m.total_amount = i;
37
- } else if (r && !("total_amount" in m)) {
38
- let e = u(r, {
39
- tax: s?.tax,
40
- discount: s?.discount
41
- });
42
- e !== void 0 && (m.total_amount = e);
43
- }
44
- return m;
45
- }
46
- function u(e, { tax: t, discount: r }) {
47
- let i = d(e);
48
- if (i !== void 0) return i + (t ? n(t) ?? 0 : 0) - (r ? n(r) ?? 0 : 0);
49
- }
50
- function d(e) {
51
- let t = !1, r = e.reduce((e, r) => {
52
- if (!i(r)) return e;
53
- let a = n(r.amount);
54
- return a === null ? e : (t = !0, e + a);
55
- }, 0);
56
- if (t) return r;
57
- }
58
- function f({ lineItems: e, editedTotals: t }) {
59
- let r = d(e), i = n(t.tax) ?? 0, a = n(t.discount) ?? 0, o = {
60
- discount: a,
61
- tax_amount: i
62
- };
63
- return r !== void 0 && (o.subtotal = r), t.total === void 0 ? r !== void 0 && (o.total_amount = r - a + i) : o.total_amount = n(t.total) ?? 0, o;
64
- }
65
- function p(e) {
66
- return e.filter(i).map((e) => {
67
- let t = n(e.amount), i = r(e.quantity) ?? 1, a = n(e.price) ?? (t === null ? 0 : Math.round(t / i)), o = Math.round(i * a), s = t ?? o;
68
- return {
69
- name: e.description,
70
- quantity: i,
71
- unit_price: a,
72
- tax: 0,
73
- subtotal: s,
74
- tax_amount: 0,
75
- total: s,
76
- ...e.glCode ? { ledger_account_id: e.glCode } : {}
77
- };
9
+ function n(e) {
10
+ return e.isError && e.data === void 0;
11
+ }
12
+ function r({ enabled: r = !0 } = {}) {
13
+ let i = t({
14
+ duplicate_match_status: "suspected",
15
+ limit: 100,
16
+ enabled: r
78
17
  });
79
- }
80
- function m(e, t) {
81
- return c(Math.round(o(e) * a(t)));
82
- }
83
- function h(e, t, n) {
84
- return c(e.reduce((e, t) => e + a(t.amount), 0) + a(t) - a(n));
18
+ return {
19
+ count: i.data?.data?.length ?? 0,
20
+ groupCount: e(i.data?.data ?? []),
21
+ isCapped: !!i.data?.next_pagination_token,
22
+ isError: n(i),
23
+ isLoading: i.isLoading
24
+ };
85
25
  }
86
26
  //#endregion
87
- export { h as calculateTotal, m as displayLineAmount, i as isPersistableLineItem, l as mapBillFormToPayload, p as mapLineItemsToPayload, f as mapPayableAmountFieldsToPayload, s as normalizeMoneyOnBlur, n as parseMoneyToMinorUnits, r as parseQuantity };
27
+ export { r as useDuplicateBillsCount };