@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,628 +1,23 @@
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 { buildPayableAuditHistory as n, hasUnattributedAuditRows as r } from "../../../shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js";
8
- import { hasAnyScope as i } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
9
- import { Scope as a } from "../../../shared/data-access/dist/lib/scopes.js";
10
- import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
11
- import "../../../shared/data-access/dist/index.js";
12
- import "../../../shared/ui/dist/index.js";
13
- import { useWidgetConfig as te } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
14
- import { useOrganizationUserNames as ne } from "../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
15
- import "../../../shared/feature/dist/index.js";
16
- import { hasUnpaidBalance as re } from "../../util/dist/lib/derivePayableStatus.js";
17
- import { formatScheduledDateLabel as ie } from "../../util/dist/lib/formatScheduledDateLabel.js";
18
- import { isEditablePayableStatus as ae } from "../../util/dist/lib/isEditablePayableStatus.js";
19
- import { resolveAmountDueMinorUnits as oe } from "../../util/dist/lib/resolveAmountDue.js";
20
- import { resolveVendor as se } from "../../util/dist/lib/resolveVendor.js";
21
- import { usePayableApprovalRequestsQuery as ce } from "../../data-access/dist/index16.js";
22
- import { usePayableHistoryQuery as le } from "../../data-access/dist/index17.js";
23
- import { useAllPayableLineItemsQuery as ue } from "../../data-access/dist/index18.js";
24
- import { useUpdatePayableMutation as de } from "../../data-access/dist/index34.js";
25
- import { usePayableQuery as fe } from "../../data-access/dist/index41.js";
26
- import "../../data-access/dist/index.js";
27
- import { usePayableDuplicateReview as pe } from "./index9.js";
28
- import "./index10.js";
29
- import { canOverrideApprovalPolicy as me, canReadCounterpartBankAccounts as he } from "./index15.js";
30
- import { BillCreateScreen as ge } from "../../ui/dist/index53.js";
31
- import { BillDecisionDialog as o } from "../../ui/dist/index59.js";
32
- import { DiscardChangesDialog as _e } from "../../ui/dist/index65.js";
33
- import { BillDuplicateNotice as ve } from "../../ui/dist/index70.js";
34
- import { BillRejectedBanner as ye } from "../../ui/dist/index73.js";
35
- import { ExtractionNotice as be } from "../../ui/dist/index95.js";
36
- import { MarkAsPaidDialog as xe } from "../../ui/dist/index104.js";
37
- import { UnsavedBillDialog as Se } from "../../ui/dist/index114.js";
1
+ import { BillColumn as e } from "../../ui/dist/index86.js";
38
2
  import "../../ui/dist/index.js";
39
- import { usePayableAchInstructions as Ce } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
40
- import "../../../shared/counterpart-management/feature/dist/index.js";
41
- import { PayBillFlow as we } from "./index20.js";
42
- import "./index21.js";
43
- import { useMarkAsPaidFlow as Te } from "./index13.js";
44
- import "./index14.js";
45
- import { BILL_CREATE_MESSAGE_LABELS_EN as Ee, mergeBillCreateScreenCopy as De } from "./index38.js";
46
- import { useBillCreateController as Oe } from "./index46.js";
47
- import { useBillForm as ke } from "./index48.js";
48
- import { buildPaymentHistory as Ae } from "./index2.js";
49
- import { currentApprovalRound as je } from "./index3.js";
50
- import { usePayableApprovalRoundStart as Me } from "./index25.js";
51
- import { useApprovalPolicyCardView as Ne } from "./index26.js";
52
- import { resolveBillRejectionNotice as Pe } from "./index27.js";
53
- import { useCurrentApprovalRequestId as Fe } from "./index28.js";
54
- import { usePayableDetailActions as Ie } from "./index29.js";
55
- import { useLocalCalendarDay as Le } from "./index30.js";
56
- import { useScheduledPayment as Re } from "./index31.js";
57
- import { useDraftDelete as ze } from "./index32.js";
58
- import { buildBillDetailView as Be } from "./index34.js";
59
- import { resolveEditorDismissal as Ve } from "./index35.js";
60
- import { SourceDocumentContainer as He } from "./index39.js";
61
- import { useVendorSectionProps as Ue } from "./index42.js";
62
- import { billCreateTestIds as s } from "./index49.js";
63
- import { cloneElement as We, isValidElement as Ge, useCallback as c, useEffect as Ke, useMemo as l, useRef as qe, useState as u } from "react";
64
- import { Fragment as Je, jsx as d, jsxs as Ye } from "react/jsx-runtime";
65
- import { Trash2Icon as Xe } from "lucide-react";
66
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js
67
- function Ze(e) {
68
- let t = [...new Set(e)];
69
- return t.length > 0 ? t : void 0;
70
- }
71
- function Qe({ open: Qe, onOpenChange: f, payableId: p, initialCounterpartId: $e, readOnly: m = !1, copy: et, onCollapse: tt, onEdit: nt, onOpenBill: h, poweredByBankName: rt }) {
72
- let g = l(() => De(et), [et]), it = p ? void 0 : $e, [at, ot] = u(it), [st, ct] = u(!!it), [lt, ut] = u(!1), [dt, _] = u(!1), [ft, v] = u(), y = c((e) => {
73
- v(() => e);
74
- }, []), [pt, mt] = u(), b = p ?? pt, x = fe(b, { pollWhileOcrProcessing: !0 }), S = ue(b), { initResponse: C } = te(), ht = !!C, gt = i(C?.scopes, [a.AccountingConfigReadOrg]), w = ee({ enabled: gt }), T = x.data, E = !b || !!T, D = !m && E && !!b && T?.status !== "draft", _t = !m && !!T && !ae(T?.status), O = m || _t, k = ke({
75
- payable: T,
76
- lineItems: S.lineItems
77
- }), A = T?.counterpart_id;
78
- Ke(() => {
79
- st || A && (ot(A), ct(!0));
80
- }, [st, A]);
81
- let vt = c((e) => {
82
- ct(!0), ot(e);
83
- }, []), j = Re({
84
- payableId: b,
85
- scheduledPaymentDate: T?.scheduled_payment_date,
86
- enabled: m || D
87
- }), yt = Le(), M = l(() => j.hasScheduledPayment && j.scheduledDate ? ie(j.scheduledDate, g.scheduledRelativeDay, yt) : void 0, [
88
- j.hasScheduledPayment,
89
- j.scheduledDate,
90
- g.scheduledRelativeDay,
91
- yt
92
- ]), N = he(C?.scopes), bt = i(C?.scopes, [a.PayableWriteOrg]), xt = i(C?.scopes, [a.CounterpartWriteOrg]) && bt, P = xt && re(T?.status) && !j.hasScheduledPayment && !j.isResolving, St = P && N, Ct = P || xt && T?.status === "rejected", wt = !m && E && (!b || T?.status === "draft") && !j.hasScheduledPayment && !j.isResolving, F = Ue({
93
- payableId: b,
94
- counterpartId: m ? A : at,
95
- payableCounterpartId: A,
96
- isVendorKnown: m ? !!T : E,
97
- onCounterpartChange: vt,
98
- requiredError: k.errors?.vendor,
99
- payableCounterpartBankAccountId: T?.counterpart_bank_account_id ?? void 0,
100
- extractedVendor: T?.counterpart_raw_data ?? void 0,
101
- readOnly: m,
102
- canEditVendor: !m || St,
103
- canEditPaymentInstructions: !m || P,
104
- canAddPaymentInstructions: !m || Ct,
105
- confirmDiscard: y
106
- }), I = F.activePayToOperation === "missingInstructions" ? wt || Ct : F.activePayToOperation === "existingInstructions" ? wt || P : F.activePayToOperation === "vendor" && m ? St : !1, Tt = !!(b && st) && !at, L = x.refetch, Et = c(async () => {
107
- let { data: e } = await L();
108
- return e?.status ?? void 0;
109
- }, [L]), Dt = de(), [R, Ot] = u(!1), z = qe(void 0), kt = c(async () => {
110
- if (z.current) return z.current;
111
- let t = (async () => {
112
- if (I) {
113
- Ot(!0);
114
- try {
115
- let t;
116
- try {
117
- t = await F.prepareVendorForSave({ closeOnSuccess: !1 });
118
- } catch {
119
- e.error(g.detail.paymentInstructionsSaveError);
120
- return;
121
- }
122
- if (!t.ok) return;
123
- if (!b) {
124
- F.finalizePayToSave();
125
- return;
126
- }
127
- let n = t.counterpartId && t.counterpartId !== T?.counterpart_id ? t.counterpartId : void 0, r = t.counterpartBankAccountId && t.counterpartBankAccountId !== T?.counterpart_bank_account_id ? t.counterpartBankAccountId : void 0;
128
- if (n || r) {
129
- let t = {
130
- path: { payable_id: b },
131
- body: {
132
- ...n ? { counterpart_id: n } : {},
133
- ...r ? { counterpart_bank_account_id: r } : {}
134
- }
135
- };
136
- try {
137
- await Dt.mutateAsync(t);
138
- } catch {
139
- try {
140
- await Dt.mutateAsync(t);
141
- } catch {
142
- e.error(g.detail.paymentInstructionsLinkError);
143
- return;
144
- }
145
- }
146
- F.finalizePayToSave();
147
- return;
148
- }
149
- F.finalizePayToSave(), await L();
150
- } finally {
151
- Ot(!1);
152
- }
153
- }
154
- })();
155
- z.current = t;
156
- try {
157
- await t;
158
- } finally {
159
- z.current = void 0;
160
- }
161
- }, [
162
- I,
163
- g.detail.paymentInstructionsLinkError,
164
- g.detail.paymentInstructionsSaveError,
165
- Dt,
166
- T?.counterpart_bank_account_id,
167
- T?.counterpart_id,
168
- b,
169
- L,
170
- F
171
- ]), B = l(() => I ? F.mode === "creating" && Ge(F.newVendorForm) ? {
172
- ...F,
173
- newVendorForm: We(F.newVendorForm, {
174
- onSave: kt,
175
- isSaving: R
176
- })
177
- } : F.mode === "resolved" && F.paymentInstructions ? {
178
- ...F,
179
- paymentInstructions: {
180
- ...F.paymentInstructions,
181
- onSave: kt,
182
- isSaving: R
183
- }
184
- } : F : F, [
185
- I,
186
- R,
187
- kt,
188
- F
189
- ]);
190
- Ke(() => {
191
- m && F.isEditingPayTo && !I && F.discardPayToEdits();
192
- }, [
193
- I,
194
- m,
195
- F.discardPayToEdits,
196
- F.isEditingPayTo
197
- ]);
198
- let At = l(() => D ? { draftSaved: Ee.submittedSaved } : void 0, [D]), V = Oe({
199
- payableId: p,
200
- form: k,
201
- labels: At,
202
- counterpartId: at,
203
- isVendorPending: F.mode === "creating" || F.isPendingVendor,
204
- clearCounterpart: Tt,
205
- prepareVendorForSave: F.prepareVendorForSave,
206
- onPayableCreated: mt,
207
- onSaved: mt,
208
- onDraftSaved: () => f(!1),
209
- onFinalized: () => f(!1),
210
- readSavedStatus: D ? Et : void 0
211
- }), jt = !!(V.isSavingDraft || V.isFinalizing || F.isVendorSavePending), H = m ? b : void 0, U = Fe({
212
- payableId: H,
213
- status: T?.status
214
- }), Mt = qe(null), Nt = se(T), W = Ce({
215
- counterpartId: m ? A : void 0,
216
- currency: T?.currency,
217
- currentBankAccountId: m ? T?.counterpart_bank_account_id ?? void 0 : void 0,
218
- enabled: N && m
219
- }), Pt = Te({
220
- payableId: H,
221
- amountDueMinorUnits: oe(T) ?? 0,
222
- amountToPayMinorUnits: T?.amount_to_pay ?? void 0,
223
- currencyCode: T?.currency ?? void 0,
224
- dueDate: T?.due_date,
225
- hasScheduledPayment: j.hasScheduledPayment,
226
- labels: g.markAsPaid
227
- }), G = Ne({
228
- payableId: H,
229
- approvalPolicyId: T?.approval_policy_id,
230
- enabled: m,
231
- copy: g.approvalPolicyCopy
232
- }), Ft = me({
233
- status: T?.status,
234
- scopes: C?.scopes,
235
- arePendingApproversUnknown: G.isLoading,
236
- hasApprovalPolicy: !!T?.approval_policy_id,
237
- hasWaitingRequest: U.hasWaitingRequest
238
- }), It = !!U.id, Lt = U.isLoading || G.isLoading, Rt = l(() => Ze(G.pendingApprovers.flatMap((e) => e.names)), [G.pendingApprovers]), zt = m || D ? b : void 0, Bt = m ? nt : void 0, K = c((e) => {
239
- let t = () => {
240
- F.discardPayToEdits(), e?.();
241
- };
242
- F.hasUnsavedVendorChanges ? y(t) : t();
243
- }, [y, F]), { actions: Vt, decisionDialog: Ht, isActionPending: Ut } = Ie({
244
- payableId: zt,
245
- status: T?.status,
246
- currentApprovalRequestId: U.id,
247
- arePendingApproversUnknown: G.isLoading,
248
- hasScheduledPayment: j.hasScheduledPayment,
249
- scheduledPaymentIntentId: j.scheduledPaymentIntentId,
250
- isScheduledPaymentUnknown: j.isResolving,
251
- isPayabilityUnknown: W.isLoading,
252
- hasApprovalPolicy: !!T?.approval_policy_id,
253
- hasWaitingRequest: U.hasWaitingRequest,
254
- pendingApprovers: G.pendingApprovers,
255
- labels: g.actions,
256
- isMarkAsPaidPending: Pt.isPending,
257
- onMarkAsPaidSelect: Pt.open,
258
- onPayBillSelect: () => K(() => Mt.current?.open()),
259
- onEditSelect: Bt,
260
- onActionSucceeded: (e) => {
261
- if (e === "reopen") {
262
- Bt?.();
263
- return;
264
- }
265
- D && f(!1);
266
- }
267
- }), Wt = ze({
268
- payableId: b,
269
- status: T?.status,
270
- enabled: !m,
271
- labels: g.deleteDraft,
272
- onDeleted: () => f(!1)
273
- }), Gt = jt || Ut, Kt = T?.ocr_status === "processing", qt = x.isLoading || S.isResolving || Kt, Jt = x.isLoading || S.isResolving || w.isResolving || W.isLoading, Yt = x.isError || S.isError || w.isError, Xt = l(() => [...Wt.menuItems, ...D || m && !Jt && !Yt ? Vt.menu.map((e) => ({
274
- id: e.id,
275
- label: e.label,
276
- onSelect: e.onSelect,
277
- disabled: e.disabled,
278
- icon: e.icon,
279
- sectionHeading: e.sectionHeading
280
- })) : []], [
281
- Vt.menu,
282
- Wt.menuItems,
283
- D,
284
- m,
285
- Jt,
286
- Yt
287
- ]), q = l(() => (w.data?.data ?? []).map((e) => ({
288
- value: e.id,
289
- label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
290
- })), [w.data]), J;
291
- ht && (gt ? w.isError ? J = g.lineItemsGlCodeUnavailable.loadError : !w.isResolving && q.length === 0 && (J = g.lineItemsGlCodeUnavailable.empty) : J = g.lineItemsGlCodeUnavailable.noAccess);
292
- let Zt = !ht || !!J || w.isResolving, Qt = gt && !w.isResolving && !w.isError, Y = le(H), $t = T?.status === "rejected" || !m && D, en = i(C?.scopes, [a.ApprovalRequestReadOrg]), tn = $t && en, nn = i(C?.scopes, [a.UserReadOrg]), { userNames: X, isError: rn, isResolving: an } = ne({ enabled: (m || $t) && nn }), on = l(() => n(Y.data?.data ?? [], X, g.history), [
293
- Y.data,
294
- X,
295
- g.history
296
- ]), sn = nn && rn && r(Y.data?.data ?? [], on, X), cn = Me({
297
- payableId: b,
298
- enabled: tn
299
- }), ln = ce(b, { enabled: tn }), un = l(() => je(ln.data?.data, cn.roundStartedAt), [ln.data, cn.roundStartedAt]), Z = l(() => Pe({
300
- payableStatus: T?.status,
301
- approvalRequests: un,
302
- userNames: X,
303
- payableUpdatedAt: T?.updated_at,
304
- labels: g.detail
305
- }), [
306
- T?.status,
307
- T?.updated_at,
308
- un,
309
- X,
310
- g.detail
311
- ]), dn = l(() => Ae({
312
- records: j.paymentRecords,
313
- events: Y.data?.data ?? [],
314
- currencyCode: T?.currency,
315
- labels: g.detail
316
- }), [
317
- j.paymentRecords,
318
- Y.data,
319
- T?.currency,
320
- g.detail
321
- ]), fn = l(() => {
322
- if (!m || !T) return;
323
- let e = Be({
324
- payable: T,
325
- lineItems: S.lineItems,
326
- glCodeOptions: q,
327
- glCodeRosterAvailable: Qt,
328
- history: on,
329
- paymentHistory: dn,
330
- approvalPolicy: G.view,
331
- labels: g.detail,
332
- hasScheduledPayment: j.hasScheduledPayment,
333
- rejection: Z,
334
- payableAchInstructions: W.achInstructions,
335
- payableAchInstructionsReadable: N && !W.isError
336
- });
337
- return F.mode === "resolved" && F.summary ? {
338
- ...e,
339
- payTo: F.summary
340
- } : e;
341
- }, [
342
- j.hasScheduledPayment,
343
- G.view,
344
- N,
345
- g.detail,
346
- q,
347
- Qt,
348
- on,
349
- S.lineItems,
350
- T,
351
- W.achInstructions,
352
- W.isError,
353
- dn,
354
- m,
355
- Z,
356
- F.mode,
357
- F.summary
358
- ]), pn = T?.source_of_payable_data === "ocr", Q = Nt?.name, mn = m ? Q ? g.viewTitle(Q) : g.readOnlyTitle : Q && (pn || D) ? g.extractedTitle(Q) : g.newTitle, hn = m && T?.created_at ? g.addedOn(t(T.created_at.slice(0, 10))) : void 0, gn = c(() => {
359
- if (m && F.isEditingPayTo) {
360
- K(() => f(!1));
361
- return;
362
- }
363
- let e = k.isDirty || F.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending;
364
- switch (Ve({
365
- isUnsavedPromptOpen: dt,
366
- isLocked: O,
367
- isDirty: e
368
- })) {
369
- case "dismiss-prompt":
370
- _(!1);
371
- return;
372
- case "prompt":
373
- _(!0);
374
- return;
375
- default: f(!1);
376
- }
377
- }, [
378
- V.isFileDeletionPending,
379
- V.stagedFile,
380
- k.isDirty,
381
- O,
382
- dt,
383
- K,
384
- f,
385
- m,
386
- F.hasUnsavedVendorChanges,
387
- F.isEditingPayTo
388
- ]), _n = c((e, t) => {
389
- if (!h) return;
390
- let n = () => h(e, t);
391
- if (m && F.isEditingPayTo) {
392
- K(n);
393
- return;
394
- }
395
- let r = k.isDirty || F.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending;
396
- !O && r ? y(n) : n();
397
- }, [
398
- y,
399
- V.isFileDeletionPending,
400
- V.stagedFile,
401
- k.isDirty,
402
- O,
403
- K,
404
- h,
405
- m,
406
- F.hasUnsavedVendorChanges,
407
- F.isEditingPayTo
408
- ]), vn = c(() => {
409
- if (F.isEditingPayTo) {
410
- K(tt);
411
- return;
412
- }
413
- tt?.();
414
- }, [
415
- K,
416
- tt,
417
- F.isEditingPayTo
418
- ]), yn = c(() => {
419
- _(!1), f(!1);
420
- }, [f]), bn = qt || F.mode === "creating", xn = c(async () => {
421
- if (bn) return;
422
- let e = await V.saveDraft();
423
- _(!1), e && f(!1);
424
- }, [
425
- V,
426
- bn,
427
- f
428
- ]), $ = pe({
429
- payable: T,
430
- onOpenPayable: h ? _n : void 0,
431
- onRemoved: () => f(!1),
432
- canManage: bt
433
- }), Sn = c((e) => {
434
- if (!(Gt || $.isBusy)) return e ? f(!0) : gn();
435
- }, [
436
- $.isBusy,
437
- Gt,
438
- gn,
439
- f
440
- ]), Cn = $.isPossibleDuplicate, wn = !m && pn && !lt, Tn = !m && !!Z, En = Tn || Cn || wn ? /* @__PURE__ */ Ye(Je, { children: [
441
- Tn && Z ? /* @__PURE__ */ d(ye, {
442
- ...Z,
443
- labels: g.rejectedBanner
444
- }) : null,
445
- Cn ? /* @__PURE__ */ d(ve, {
446
- onNotADuplicate: $.onNotADuplicate,
447
- onRemoveBill: $.onRemoveBill,
448
- isActionDisabled: $.isBusy,
449
- rows: $.rows,
450
- collapsedRowCount: $.collapsedRowCount,
451
- showMoreLabel: $.showMoreLabel,
452
- labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
453
- testId: s.duplicateNotice
454
- }) : null,
455
- wn ? /* @__PURE__ */ d(be, { onDismiss: () => ut(!0) }) : null
456
- ] }) : void 0;
457
- return /* @__PURE__ */ Ye(Je, { children: [
458
- /* @__PURE__ */ d(ge, {
459
- open: Qe,
460
- onOpenChange: Sn,
461
- title: mn,
462
- subtitle: hn,
463
- notice: En,
464
- vendor: {
465
- ...B,
466
- testId: s.vendorSection
467
- },
468
- values: k.values,
469
- errors: k.errors,
470
- onChange: k.onChange,
471
- lineItems: {
472
- items: k.lineItemRows,
473
- glCodeOptions: q,
474
- glCodeDisabled: Zt,
475
- glCodeUnavailableMessage: J,
476
- discount: k.discount,
477
- onDiscountChange: k.onDiscountChange,
478
- onDiscountBlur: k.onDiscountBlur,
479
- tax: k.tax,
480
- onTaxChange: k.onTaxChange,
481
- onTaxBlur: k.onTaxBlur,
482
- total: k.total,
483
- onTotalChange: k.onTotalChange,
484
- onTotalBlur: k.onTotalBlur,
485
- onAddLineItem: k.onAddLineItem,
486
- errors: k.lineItemErrors,
487
- totalsErrors: k.totalsErrors,
488
- testId: s.lineItems
489
- },
490
- documentPanel: /* @__PURE__ */ d(He, {
491
- payableId: b,
492
- readOnly: O,
493
- isDocumentPending: !!b && !T?.file && (x.isLoading || T?.ocr_status === "processing"),
494
- file: T?.file ? {
495
- id: T.file.id,
496
- name: T.file.name,
497
- url: T.file.url,
498
- mimetype: T.file.mimetype
499
- } : void 0,
500
- staging: {
501
- stagedFile: V.stagedFile,
502
- onFileStaged: V.stageFile,
503
- onClearStagedFile: V.clearStagedFile,
504
- isSaving: jt
505
- },
506
- deletion: {
507
- isPending: V.isFileDeletionPending,
508
- onRequest: V.requestFileDeletion,
509
- onDetachNow: V.detachFileNow,
510
- isDeleting: V.isDeletingFile,
511
- hasFailed: V.hasFileDeletionFailed
512
- }
513
- }),
514
- menuItems: Xt,
515
- readOnly: O,
516
- detail: m ? {
517
- view: fn,
518
- actions: Vt,
519
- scheduledSummary: M ? g.scheduledSummary(M.label) : void 0,
520
- scheduledSummaryDate: M?.absoluteLabel,
521
- scheduledStatusLabel: M ? g.scheduledStatusBadge(M.label) : void 0,
522
- showApprovalOverrideNotice: !Lt && Ft,
523
- awaitingApprovalNotice: !Lt && !It && !Ft && T?.status === "approve_in_progress" && T?.approval_policy_id ? Rt ? g.awaitingApprovalNotice(Rt) : g.awaitingApprovalUnknownNotice : void 0,
524
- payTo: {
525
- onEdit: B.mode === "resolved" ? B.onEdit : void 0,
526
- paymentInstructions: B.paymentInstructions,
527
- detailsWarning: B.detailsWarning,
528
- editForm: B.mode === "creating" ? B.newVendorForm : void 0
529
- },
530
- hideMissingPaymentInstructions: T?.status === "paid" || T?.status === "canceled",
531
- isLoading: Jt,
532
- isError: Yt,
533
- paymentHistoryError: j.isError || Y.isError,
534
- paymentHistoryLoading: j.isResolving || Y.isLoading,
535
- historyError: Y.isError,
536
- historyLoading: Y.isLoading || an,
537
- historyNamesError: sn
538
- } : void 0,
539
- isLineItemsLoading: qt,
540
- isSaving: Gt || R,
541
- isSavingDraft: V.isSavingDraft,
542
- isSubmitting: V.isFinalizing,
543
- onCancel: gn,
544
- onCollapse: m ? vn : void 0,
545
- onSaveDraft: V.saveDraft,
546
- onFinalize: V.finalize,
547
- scrollToErrorToken: V.scrollToErrorToken,
548
- showSubmit: !O && E,
549
- testId: s.dialog
550
- }),
551
- /* @__PURE__ */ d(Se, {
552
- open: dt,
553
- onSaveDraft: xn,
554
- onDiscard: yn,
555
- onCancel: () => _(!1),
556
- isSaving: V.isSavingDraft,
557
- isSaveDraftDisabled: bn,
558
- labels: g.unsavedChanges,
559
- testId: s.unsavedDialog,
560
- saveDraftTestId: s.unsavedSaveDraft,
561
- discardTestId: s.unsavedDiscard,
562
- closeTestId: s.unsavedClose
563
- }),
564
- /* @__PURE__ */ d(_e, {
565
- open: !!ft,
566
- onDiscard: () => {
567
- let e = ft;
568
- v(void 0), e?.();
569
- },
570
- onKeepEditing: () => v(void 0),
571
- labels: g.discardChanges,
572
- testId: s.discardDialog,
573
- discardTestId: s.discardConfirm
574
- }),
575
- /* @__PURE__ */ d(o, {
576
- ...Ht,
577
- labels: { cancelButton: g.actions.decisionDialog.cancelButton },
578
- testId: s.decisionDialog,
579
- confirmTestId: s.decisionConfirm,
580
- reasonTestId: s.decisionReason
581
- }),
582
- /* @__PURE__ */ d(o, {
583
- ...Wt.dialog,
584
- labels: { cancelButton: g.actions.decisionDialog.cancelButton },
585
- testId: s.deleteDraftDialog,
586
- confirmTestId: s.deleteDraftConfirm
587
- }),
588
- /* @__PURE__ */ d(o, {
589
- open: $.removeConfirmation.open,
590
- copy: $.removeConfirmation.copy,
591
- onConfirm: $.removeConfirmation.onConfirm,
592
- onCancel: $.removeConfirmation.onCancel,
593
- isPending: $.removeConfirmation.isPending,
594
- confirmIcon: /* @__PURE__ */ d(Xe, {}),
595
- labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
596
- testId: s.duplicateRemoveDialog,
597
- confirmTestId: s.duplicateRemoveConfirm
598
- }),
599
- /* @__PURE__ */ d(o, {
600
- open: $.cancelRowConfirmation.open,
601
- copy: $.cancelRowConfirmation.copy,
602
- onConfirm: $.cancelRowConfirmation.onConfirm,
603
- onCancel: $.cancelRowConfirmation.onCancel,
604
- isPending: $.cancelRowConfirmation.isPending,
605
- labels: { cancelButton: $.cancelRowConfirmation.cancelButtonLabel },
606
- testId: s.duplicateCancelRowDialog,
607
- confirmTestId: s.duplicateCancelRowConfirm
608
- }),
609
- /* @__PURE__ */ d(o, {
610
- open: $.keepRowConfirmation.open,
611
- copy: $.keepRowConfirmation.copy,
612
- onConfirm: $.keepRowConfirmation.onConfirm,
613
- onCancel: $.keepRowConfirmation.onCancel,
614
- isPending: $.keepRowConfirmation.isPending,
615
- labels: { cancelButton: $.keepRowConfirmation.cancelButtonLabel }
616
- }),
617
- /* @__PURE__ */ d(xe, { ...Pt.dialogProps }),
618
- m && T ? /* @__PURE__ */ d(we, {
619
- ref: Mt,
620
- payable: T,
621
- onMissingAchInstructions: xt ? F.openPaymentInstructions : void 0,
622
- poweredByBankName: rt,
623
- labels: g.payBill
624
- }) : null
625
- ] });
626
- }
4
+ var t = {
5
+ root: "bill-pay-bills-tab",
6
+ detailsSheet: "bill-pay-details-sheet"
7
+ }, n = {
8
+ [e.Vendor]: "bill-pay-bills-cell-vendor",
9
+ [e.InvoiceNumber]: "bill-pay-bills-cell-invoice-number",
10
+ [e.Attachment]: "bill-pay-bills-cell-attachment",
11
+ [e.IssueDate]: "bill-pay-bills-cell-issue-date",
12
+ [e.DueDate]: "bill-pay-bills-cell-due-date",
13
+ [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
14
+ [e.PaidDate]: "bill-pay-bills-cell-paid-date",
15
+ [e.Status]: "bill-pay-bills-cell-status",
16
+ [e.AmountDue]: "bill-pay-bills-cell-amount-due",
17
+ [e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
18
+ [e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
19
+ [e.TotalAmount]: "bill-pay-bills-cell-total-amount",
20
+ [e.AddedOn]: "bill-pay-bills-cell-added-on"
21
+ };
627
22
  //#endregion
628
- export { Qe as BillCreateDialog, Qe as default };
23
+ export { t as billsTabTestIds, n as billsTableCellTestIds };
@@ -1,4 +1,22 @@
1
- import "./index38.js";
2
- import "./index46.js";
3
- import "./index48.js";
4
- import "./index50.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { usePayablesCountQueries as e } from "../../data-access/dist/lib/usePayablesQueries/usePayablesCountQueries.js";
6
+ import "../../data-access/dist/index.js";
7
+ import { BILL_QUEUE_ORDER as t, billQueueHasScheduledPayment as n, billQueueStatuses as r } from "./index46.js";
8
+ import { useMemo as i } from "react";
9
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js
10
+ var a = t.map((e) => ({
11
+ status__in: r(e),
12
+ has_scheduled_payment: n(e)
13
+ }));
14
+ function o({ enabled: n = !0 } = {}) {
15
+ let r = e({
16
+ filters: a,
17
+ enabled: n
18
+ });
19
+ return i(() => Object.fromEntries(t.map((e, t) => [e, r[t]?.count])), [r]);
20
+ }
21
+ //#endregion
22
+ export { o as useBillQueueCounts };