@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,84 +0,0 @@
1
- import { BillQueue as e } from "./index63.js";
2
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js
3
- var t = {
4
- [e.Drafts]: "Drafts",
5
- [e.Pending]: "Pending",
6
- [e.Scheduled]: "Scheduled",
7
- [e.Paid]: "Paid",
8
- [e.All]: "All bills"
9
- }, n = {
10
- [e.Drafts]: {
11
- title: "No drafts",
12
- description: "Bills wait here until someone submits them for approval."
13
- },
14
- [e.Pending]: {
15
- title: "Nothing to act on",
16
- description: "Every bill has been paid, scheduled, or is still a draft."
17
- },
18
- [e.Scheduled]: {
19
- title: "No scheduled bills",
20
- description: "Bills appear here once a payment date is set for them."
21
- },
22
- [e.Paid]: {
23
- title: "No paid bills",
24
- description: "Bills appear here once their payment has gone out."
25
- },
26
- [e.All]: {
27
- title: "No bills",
28
- description: "Bills appear here as soon as they are added."
29
- }
30
- }, r = {
31
- duplicateWarningOne: "1 possible duplicate found",
32
- duplicateWarningMany: (e, t) => `${e} possible duplicate bills found across ${t} original ${t === 1 ? "bill" : "bills"}`,
33
- duplicateWarningManyCapped: (e) => `${e}+ possible duplicate bills found`,
34
- duplicateWarningUnavailable: "Couldn't check for possible duplicates. Try again shortly.",
35
- duplicateRowNote: "Possible duplicate",
36
- duplicateReviewButton: "Review duplicates",
37
- duplicateReviewClearButton: "Show all bills",
38
- duplicateReviewingOne: "Reviewing 1 possible duplicate",
39
- duplicateReviewingMany: (e, t) => `Reviewing ${e} possible duplicate bills across ${t} original ${t === 1 ? "bill" : "bills"}`,
40
- duplicateFilterChip: "Possible duplicates",
41
- duplicateMenuTrigger: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `Open duplicate actions for ${e}, invoice ${t}` : `Open duplicate actions for ${e}`,
42
- duplicateNotDuplicateAction: "Not a duplicate",
43
- duplicateNotDuplicateConfirmTitle: "Mark as not a duplicate?",
44
- duplicateNotDuplicateConfirmDescription: "You can't undo this action.",
45
- duplicateNotDuplicateConfirmButton: "Not a duplicate",
46
- duplicateNotDuplicateConfirmBackButton: "Back",
47
- duplicateDeleteAction: "Remove bill",
48
- duplicateDeleteConfirmTitle: "Remove duplicate bill?",
49
- duplicateDeleteConfirmDescription: "You can't undo this action.",
50
- duplicateDeleteConfirmButton: "Remove bill",
51
- duplicateDeletedToast: "Duplicate removed",
52
- duplicateConfirmAction: "Confirm duplicate",
53
- duplicateConfirmDuplicateTitle: "Confirm duplicate?",
54
- duplicateConfirmDuplicateDescription: "This bill is already cancelled. This records it as a duplicate.",
55
- duplicateConfirmDuplicateButton: "Confirm duplicate",
56
- duplicateConfirmedToast: "Duplicate confirmed",
57
- duplicateCancelAction: "Cancel bill",
58
- duplicateCancelConfirmTitle: "Cancel duplicate bill?",
59
- duplicateCancelConfirmDescription: "You can't undo this action.",
60
- duplicateCancelConfirmButton: "Cancel bill",
61
- duplicateCancelConfirmBackButton: "Back",
62
- duplicateDismissedToast: "Marked as not a duplicate.",
63
- duplicateCancelledToast: "Duplicate cancelled",
64
- duplicateActionFailedToast: "Couldn't update this duplicate. Try again.",
65
- duplicateGroupHeader: ({ vendorLabel: e, invoiceNumberLabel: t }) => t ? `${e} - ${t}` : e,
66
- duplicateOriginalBillLabel: "Original bill",
67
- attachmentIndicator: "Has an attachment",
68
- scheduledRelativeDay: {
69
- today: "Today",
70
- tomorrow: "Tomorrow"
71
- },
72
- emptyHeading: "Add your first bill",
73
- nonEmptyHeading: "Add a bill",
74
- createButton: "Add bill",
75
- settingsButton: "Bill pay settings",
76
- emailCopiedToast: "Email address copied to clipboard",
77
- emailCopyFailedToast: "Could not copy the email address",
78
- queues: t,
79
- queueEmptyStates: n,
80
- filters: {},
81
- filterBar: {}
82
- };
83
- //#endregion
84
- export { r as BILLS_TAB_LABELS_EN, n as BILL_QUEUE_EMPTY_STATES_EN, t as BILL_QUEUE_LABELS_EN };
@@ -1,24 +0,0 @@
1
- import { BillColumn as e } from "../../ui/dist/index86.js";
2
- import "../../ui/dist/index.js";
3
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js
4
- var t = {
5
- root: "bill-pay-bills-tab",
6
- uploadTray: "bill-pay-upload-tray",
7
- detailsSheet: "bill-pay-details-sheet"
8
- }, n = {
9
- [e.Vendor]: "bill-pay-bills-cell-vendor",
10
- [e.InvoiceNumber]: "bill-pay-bills-cell-invoice-number",
11
- [e.Attachment]: "bill-pay-bills-cell-attachment",
12
- [e.IssueDate]: "bill-pay-bills-cell-issue-date",
13
- [e.DueDate]: "bill-pay-bills-cell-due-date",
14
- [e.ScheduledDate]: "bill-pay-bills-cell-scheduled-date",
15
- [e.PaidDate]: "bill-pay-bills-cell-paid-date",
16
- [e.Status]: "bill-pay-bills-cell-status",
17
- [e.AmountDue]: "bill-pay-bills-cell-amount-due",
18
- [e.AmountScheduled]: "bill-pay-bills-cell-amount-scheduled",
19
- [e.AmountPaid]: "bill-pay-bills-cell-amount-paid",
20
- [e.TotalAmount]: "bill-pay-bills-cell-total-amount",
21
- [e.AddedOn]: "bill-pay-bills-cell-added-on"
22
- };
23
- //#endregion
24
- export { t as billsTabTestIds, n as billsTableCellTestIds };
@@ -1,22 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { usePayablesCountQueries as e } from "../../data-access/dist/index43.js";
6
- import "../../data-access/dist/index.js";
7
- import { BILL_QUEUE_ORDER as t, billQueueHasScheduledPayment as n, billQueueStatuses as r } from "./index63.js";
8
- import { useMemo as i } from "react";
9
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.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 };
@@ -1,31 +0,0 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js
2
- var e = {
3
- Draft: "draft",
4
- ReadyToSubmit: "ready_to_submit",
5
- PendingApproval: "pending_approval",
6
- ReadyToPay: "ready_to_pay",
7
- Paid: "paid",
8
- Canceled: "canceled",
9
- Rejected: "rejected"
10
- }, t = [
11
- e.Draft,
12
- e.ReadyToSubmit,
13
- e.PendingApproval,
14
- e.ReadyToPay,
15
- e.Paid,
16
- e.Canceled,
17
- e.Rejected
18
- ], n = {
19
- [e.Draft]: ["draft"],
20
- [e.ReadyToSubmit]: ["new"],
21
- [e.PendingApproval]: ["approve_in_progress"],
22
- [e.ReadyToPay]: ["waiting_to_be_paid", "partially_paid"],
23
- [e.Paid]: ["paid"],
24
- [e.Canceled]: ["canceled"],
25
- [e.Rejected]: ["rejected"]
26
- };
27
- function r(e) {
28
- return e.flatMap((e) => n[e] ?? [e]);
29
- }
30
- //#endregion
31
- export { t as BILL_STATUS_FILTER_ORDER, e as BillStatusFilter, r as billStatusFilterApiValues };
@@ -1,86 +0,0 @@
1
- import { endOfDay as e, endOfMonth as t, endOfQuarter as n, endOfWeek as r, endOfYear as i, startOfDay as a, startOfMonth as o, startOfQuarter as s, startOfWeek as c, startOfYear as l, subDays as u, subMonths as d, subQuarters as f, subWeeks as p, subYears as m } from "date-fns";
2
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js
3
- var h = {
4
- Today: "today",
5
- ThisWeek: "this_week",
6
- ThisMonth: "this_month",
7
- ThisQuarter: "this_quarter",
8
- ThisYear: "this_year",
9
- Yesterday: "yesterday",
10
- LastWeek: "last_week",
11
- LastMonth: "last_month",
12
- Last30Days: "last_30_days",
13
- Last90Days: "last_90_days",
14
- LastQuarter: "last_quarter",
15
- LastYear: "last_year"
16
- };
17
- function g(g, _ = /* @__PURE__ */ new Date()) {
18
- let v = a(_);
19
- switch (g) {
20
- case h.Today: return {
21
- from: v,
22
- to: e(v)
23
- };
24
- case h.ThisWeek: return {
25
- from: c(v),
26
- to: r(v)
27
- };
28
- case h.ThisMonth: return {
29
- from: o(v),
30
- to: t(v)
31
- };
32
- case h.ThisQuarter: return {
33
- from: s(v),
34
- to: n(v)
35
- };
36
- case h.ThisYear: return {
37
- from: l(v),
38
- to: i(v)
39
- };
40
- case h.Yesterday: {
41
- let t = u(v, 1);
42
- return {
43
- from: t,
44
- to: e(t)
45
- };
46
- }
47
- case h.LastWeek: {
48
- let e = c(p(v, 1));
49
- return {
50
- from: e,
51
- to: r(e)
52
- };
53
- }
54
- case h.LastMonth: {
55
- let e = o(d(v, 1));
56
- return {
57
- from: e,
58
- to: t(e)
59
- };
60
- }
61
- case h.Last30Days: return {
62
- from: u(v, 29),
63
- to: e(v)
64
- };
65
- case h.Last90Days: return {
66
- from: u(v, 89),
67
- to: e(v)
68
- };
69
- case h.LastQuarter: {
70
- let e = s(f(v, 1));
71
- return {
72
- from: e,
73
- to: n(e)
74
- };
75
- }
76
- case h.LastYear: {
77
- let e = l(m(v, 1));
78
- return {
79
- from: e,
80
- to: i(e)
81
- };
82
- }
83
- }
84
- }
85
- //#endregion
86
- export { h as BillsDatePreset, g as resolveDatePreset };
@@ -1,50 +0,0 @@
1
- import { BillStatusFilter as e } from "./index69.js";
2
- import { BillsDatePreset as t } from "./index70.js";
3
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js
4
- var n = {
5
- presets: {
6
- [t.Today]: "Today",
7
- [t.ThisWeek]: "This week",
8
- [t.ThisMonth]: "This month",
9
- [t.ThisQuarter]: "This quarter",
10
- [t.ThisYear]: "This year",
11
- [t.Yesterday]: "Yesterday",
12
- [t.LastWeek]: "Last week",
13
- [t.LastMonth]: "Last month",
14
- [t.Last30Days]: "Last 30 days",
15
- [t.Last90Days]: "Last 90 days",
16
- [t.LastQuarter]: "Last quarter",
17
- [t.LastYear]: "Last year"
18
- },
19
- presetGroupCurrent: "Current",
20
- presetGroupPast: "Past",
21
- statuses: {
22
- [e.Draft]: "Draft",
23
- [e.ReadyToSubmit]: "Ready to submit",
24
- [e.PendingApproval]: "Pending review",
25
- [e.ReadyToPay]: "Ready to pay",
26
- [e.Paid]: "Paid",
27
- [e.Canceled]: "Cancelled",
28
- [e.Rejected]: "Rejected"
29
- },
30
- dateFieldNames: {
31
- issueDate: "Issue date",
32
- dueDate: "Due date",
33
- addedOn: "Added on"
34
- },
35
- dateChip: (e, t) => `${e}: ${t}`,
36
- statusChip: (e) => `Status: ${e}`,
37
- vendorChip: (e) => `Vendor: ${e}`,
38
- amountChip: (e) => `Total amount: ${e}`,
39
- attachmentChipHas: "Has attachment",
40
- attachmentChipNone: "No attachment",
41
- moreSelected: (e, t) => `${e} + ${t} more`,
42
- amountAtLeast: (e) => `${e} or more`,
43
- amountAtMost: (e) => `${e} or less`,
44
- amountBetween: (e, t) => `${e} - ${t}`,
45
- dateRange: (e, t) => `${e} - ${t}`,
46
- dateFrom: (e) => `From ${e}`,
47
- dateTo: (e) => `Until ${e}`
48
- };
49
- //#endregion
50
- export { n as BILLS_FILTER_LABELS_EN };
@@ -1,262 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { formatMoneyExact as e } from "../../../shared/util/dist/lib/formatMoneyExact.js";
6
- import { BillsFilterField as t } from "../../ui/dist/index76.js";
7
- import "../../ui/dist/index.js";
8
- import { getCounterpartName as n } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
9
- import { useCounterpartsQuery as r } from "../../../shared/counterpart-management/data-access/dist/index3.js";
10
- import "../../../shared/counterpart-management/feature/dist/index.js";
11
- import { BILL_STATUS_FILTER_ORDER as i, billStatusFilterApiValues as a } from "./index69.js";
12
- import { BillsDatePreset as o, resolveDatePreset as s } from "./index70.js";
13
- import { BILLS_FILTER_LABELS_EN as c } from "./index71.js";
14
- import { useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
15
- import { format as p, formatISO as m } from "date-fns";
16
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js
17
- var h = {
18
- Date: "date",
19
- Status: "status",
20
- Amount: "amount",
21
- Vendor: "vendor",
22
- Attachment: "attachment"
23
- }, g = 50, _ = 300, v = "MMM d, yyyy", y = 864e5, b = {
24
- [t.IssueDate]: "issued_at",
25
- [t.DueDate]: "due_date",
26
- [t.AddedOn]: "created_at"
27
- }, x = {
28
- [o.Today]: "current",
29
- [o.ThisWeek]: "current",
30
- [o.ThisMonth]: "current",
31
- [o.ThisQuarter]: "current",
32
- [o.ThisYear]: "current",
33
- [o.Yesterday]: "past",
34
- [o.LastWeek]: "past",
35
- [o.LastMonth]: "past",
36
- [o.Last30Days]: "past",
37
- [o.Last90Days]: "past",
38
- [o.LastQuarter]: "past",
39
- [o.LastYear]: "past"
40
- };
41
- function S() {
42
- return {
43
- dateField: t.DueDate,
44
- statuses: [],
45
- amountMode: "any",
46
- amountMin: "",
47
- amountMax: "",
48
- vendorIds: []
49
- };
50
- }
51
- function C(e) {
52
- let t = Number.parseFloat(e);
53
- return Number.isFinite(t) ? Math.round(t * 100) : void 0;
54
- }
55
- function w({ offersStatusFilter: o = !1, offersVendorFilter: w = !0, isVendorFilterPaused: T = !1, onFiltersChange: E, labels: D } = {}) {
56
- let O = d(() => ({
57
- ...c,
58
- ...D,
59
- presets: {
60
- ...c.presets,
61
- ...D?.presets
62
- },
63
- statuses: {
64
- ...c.statuses,
65
- ...D?.statuses
66
- },
67
- dateFieldNames: {
68
- ...c.dateFieldNames,
69
- ...D?.dateFieldNames
70
- }
71
- }), [D]), [k, A] = f(S), [j, M] = f({}), [N, P] = f(""), [F, I] = f(""), L = l((e) => {
72
- A((t) => ({
73
- ...t,
74
- ...e
75
- })), E?.();
76
- }, [E]);
77
- u(() => {
78
- w || A((e) => e.vendorIds.length === 0 ? e : (E?.(), {
79
- ...e,
80
- vendorIds: []
81
- }));
82
- }, [w, E]), u(() => {
83
- o || A((e) => e.statuses.length === 0 ? e : (E?.(), {
84
- ...e,
85
- statuses: []
86
- }));
87
- }, [o, E]), u(() => {
88
- let e = setTimeout(() => I(N.trim()), _);
89
- return () => clearTimeout(e);
90
- }, [N]);
91
- let R = r({
92
- enabled: w && !T,
93
- is_vendor: !0,
94
- sort: "counterpart_name",
95
- order: "asc",
96
- limit: g,
97
- counterpart_name__icontains: F || void 0
98
- }), z = d(() => (R.data?.data ?? []).map((e) => ({
99
- value: e.id,
100
- label: n(e)
101
- })), [R.data?.data]), B = d(() => i.map((e) => ({
102
- value: e,
103
- label: O.statuses[e]
104
- })), [O.statuses]), V = d(() => Object.entries(x).map(([e, t]) => ({
105
- value: e,
106
- label: O.presets[e],
107
- group: t === "current" ? O.presetGroupCurrent : O.presetGroupPast
108
- })), [
109
- O.presetGroupCurrent,
110
- O.presetGroupPast,
111
- O.presets
112
- ]), H = d(() => {
113
- let e = {}, t = b[k.dateField], n = (e) => Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
114
- if (k.dateFrom && (e[`${t}__gte`] = t === "created_at" ? new Date(n(k.dateFrom)).toISOString() : m(k.dateFrom, { representation: "date" })), k.dateTo && (t === "created_at" ? e.created_at__lt = new Date(n(k.dateTo) + y).toISOString() : e[`${t}__lte`] = m(k.dateTo, { representation: "date" })), k.statuses.length > 0 && (e.status__in = a(k.statuses)), k.amountMode !== "any") {
115
- let t = "total_amount__gte", n = "total_amount__lte", r = C(k.amountMin), i = C(k.amountMax);
116
- k.amountMode === "exact" ? r !== void 0 && (e[t] = r, e[n] = r) : (r !== void 0 && (e[t] = r), i !== void 0 && (e[n] = i));
117
- }
118
- return k.vendorIds.length > 0 && (e.counterpart_id__in = [...k.vendorIds]), k.hasFile !== void 0 && (e.has_file = k.hasFile), e;
119
- }, [k]), U = d(() => {
120
- let t = [], n = (e) => p(e, v), r = (e) => {
121
- let [t, ...n] = e;
122
- return t ? n.length === 0 ? t : O.moreSelected(t, n.length) : "";
123
- };
124
- if (k.dateFrom || k.dateTo) {
125
- let e = (k.datePreset ? O.presets[k.datePreset] : void 0) ?? (k.dateFrom && k.dateTo ? O.dateRange(n(k.dateFrom), n(k.dateTo)) : k.dateFrom ? O.dateFrom(n(k.dateFrom)) : O.dateTo(n(k.dateTo)));
126
- t.push({
127
- key: h.Date,
128
- label: O.dateChip(O.dateFieldNames[k.dateField], e)
129
- });
130
- }
131
- if (k.statuses.length > 0 && t.push({
132
- key: h.Status,
133
- label: O.statusChip(r(k.statuses.map((e) => O.statuses[e] ?? e)))
134
- }), k.vendorIds.length > 0 && t.push({
135
- key: h.Vendor,
136
- label: O.vendorChip(r(k.vendorIds.map((e) => j[e] ?? e)))
137
- }), k.amountMode !== "any") {
138
- let n = (t) => {
139
- let n = Number.parseFloat(t);
140
- return Number.isFinite(n) ? e(n, { currencyCode: "USD" }) : "";
141
- }, r = n(k.amountMin), i = n(k.amountMax), a = k.amountMode === "exact" ? r : r && i ? O.amountBetween(r, i) : r ? O.amountAtLeast(r) : i ? O.amountAtMost(i) : "";
142
- a && t.push({
143
- key: h.Amount,
144
- label: O.amountChip(a)
145
- });
146
- }
147
- return k.hasFile !== void 0 && t.push({
148
- key: h.Attachment,
149
- label: k.hasFile ? O.attachmentChipHas : O.attachmentChipNone
150
- }), t;
151
- }, [
152
- O,
153
- k,
154
- j
155
- ]), W = l((e) => {
156
- switch (e) {
157
- case h.Date:
158
- L({
159
- datePreset: void 0,
160
- dateFrom: void 0,
161
- dateTo: void 0
162
- });
163
- break;
164
- case h.Status:
165
- L({ statuses: [] });
166
- break;
167
- case h.Vendor:
168
- L({ vendorIds: [] });
169
- break;
170
- case h.Amount:
171
- L({
172
- amountMode: "any",
173
- amountMin: "",
174
- amountMax: ""
175
- });
176
- break;
177
- case h.Attachment: L({ hasFile: void 0 });
178
- }
179
- }, [L]), G = l(() => {
180
- A(S()), E?.();
181
- }, [E]), K = l((e) => {
182
- M((t) => ({
183
- ...t,
184
- [e.id]: e.name
185
- })), A({
186
- ...S(),
187
- vendorIds: [e.id]
188
- }), E?.();
189
- }, [E]), q = l((e) => {
190
- M((t) => {
191
- let n = { ...t };
192
- for (let t of z) e.includes(t.value) && (n[t.value] = t.label);
193
- return n;
194
- }), L({ vendorIds: e });
195
- }, [L, z]);
196
- return {
197
- filterBarProps: {
198
- fields: [...d(() => [
199
- ...w ? [t.Vendor] : [],
200
- t.IssueDate,
201
- t.DueDate,
202
- ...o ? [t.Status] : [],
203
- t.TotalAmount,
204
- t.AddedOn,
205
- t.Attachment
206
- ], [o, w])],
207
- activeFilterCount: U.length,
208
- chips: U,
209
- onRemoveChip: W,
210
- onClearAll: G,
211
- dateField: k.dateField,
212
- onDateFieldChange: (e) => {
213
- let t = !!(k.dateFrom || k.dateTo);
214
- A((t) => ({
215
- ...t,
216
- dateField: e
217
- })), t && E?.();
218
- },
219
- datePresets: V,
220
- selectedDatePreset: k.datePreset,
221
- dateFrom: k.dateFrom,
222
- dateTo: k.dateTo,
223
- onDateRangeChange: ({ from: e, to: t }) => L({
224
- datePreset: void 0,
225
- dateFrom: e,
226
- dateTo: t
227
- }),
228
- onDatePresetChange: (e) => {
229
- let n = /* @__PURE__ */ new Date(), r = k.dateField === t.AddedOn ? new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate()) : n, { from: i, to: a } = s(e, r);
230
- L({
231
- datePreset: e,
232
- dateFrom: i,
233
- dateTo: a
234
- });
235
- },
236
- statusOptions: B,
237
- selectedStatuses: k.statuses,
238
- onStatusChange: (e) => L({ statuses: e }),
239
- amountMode: k.amountMode,
240
- onAmountModeChange: (e) => L({ amountMode: e }),
241
- amountMin: k.amountMin,
242
- amountMax: k.amountMax,
243
- onAmountMinChange: (e) => L({ amountMin: e }),
244
- onAmountMaxChange: (e) => L({ amountMax: e }),
245
- vendorOptions: z,
246
- selectedVendors: k.vendorIds,
247
- onVendorChange: q,
248
- vendorSearchValue: N,
249
- onVendorSearchChange: P,
250
- isVendorLoading: R.isLoading || T,
251
- isVendorError: R.isError,
252
- hasAttachment: k.hasFile,
253
- onHasAttachmentChange: (e) => L({ hasFile: e })
254
- },
255
- query: H,
256
- isFilterActive: U.length > 0,
257
- clearAll: G,
258
- filterByVendor: K
259
- };
260
- }
261
- //#endregion
262
- export { h as BillsFilterChipKey, w as useBillsFilters };
@@ -1,35 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { resolveVendorName as e } from "../../util/dist/lib/resolveVendor.js";
6
- import { getCounterpartName as t } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
7
- import { useCounterpartsByIdsQuery as n } from "../../../shared/counterpart-management/data-access/dist/index3.js";
8
- import "../../../shared/counterpart-management/feature/dist/index.js";
9
- import { useMemo as r } from "react";
10
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js
11
- var i = {
12
- Resolving: "resolving",
13
- Unavailable: "unavailable",
14
- Settled: "settled"
15
- }, a = /* @__PURE__ */ new Map();
16
- function o({ payables: i, enabled: o, canReadVendors: c = !0, isPaused: l = !1 } = {}) {
17
- let u = r(() => (i ?? []).filter((t) => !e(t)).map((e) => e.counterpart_id).filter((e) => !!e), [i]), d = n({
18
- counterpartIds: u,
19
- enabled: o !== !1 && c && !l
20
- }), f = !c && !l;
21
- return {
22
- vendorNames: r(() => f ? a : new Map((d.data?.data ?? []).map((e) => [e.id, t(e)]).filter((e) => !!e[1])), [d.data?.data, f]),
23
- lookup: s({
24
- hasUnresolvedIds: u.length > 0,
25
- isScopeWithdrawn: f,
26
- isFetching: d.isFetching,
27
- isError: d.isError
28
- })
29
- };
30
- }
31
- function s({ hasUnresolvedIds: e, isScopeWithdrawn: t, isFetching: n, isError: r }) {
32
- return e ? t ? i.Unavailable : n ? i.Resolving : r ? i.Unavailable : i.Settled : i.Settled;
33
- }
34
- //#endregion
35
- export { i as BillVendorLookup, o as useBillVendorNames };