@tesouro/embedded-components-react 0.5.221 → 0.5.223

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 (287) hide show
  1. package/dist/index.css +84 -0
  2. package/dist/index.d.ts +239 -214
  3. package/dist/index.js +2 -2
  4. package/dist/lib/BillPayWidget.d.ts +151 -151
  5. package/dist/lib/BillPayWidget.js +1 -1
  6. package/dist/lib/ReceivablesWidget.d.ts +25 -0
  7. package/dist/lib/ReceivablesWidget.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index.js +22 -0
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index10.js +34 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useForceApprovePayableMutation.js → bill-detail/data-access/dist/index11.js} +7 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useForceRejectPayableMutation.js → bill-detail/data-access/dist/index12.js} +7 -7
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useReopenPayableMutation.js → bill-detail/data-access/dist/index13.js} +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useSubmitPayableForApprovalMutation.js → bill-detail/data-access/dist/index14.js} +9 -9
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useUpdatePayableMutation.js → bill-detail/data-access/dist/index15.js} +7 -7
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useValidatePayableMutation.js → bill-detail/data-access/dist/index16.js} +5 -5
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index17.js +12 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablePaymentRecordsQuery.js → bill-detail/data-access/dist/index18.js} +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableSuggestionsQuery.js → bill-detail/data-access/dist/index19.js} +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableApprovalRequests.js → bill-detail/data-access/dist/index2.js} +6 -5
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/payablePolicyAssignmentQueryOptions.js → bill-detail/data-access/dist/index20.js} +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayableQuery.js → bill-detail/data-access/dist/index21.js} +9 -8
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesByIdsQueries.js → bill-detail/data-access/dist/index22.js} +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index23.js +2 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableHistoryQuery.js → bill-detail/data-access/dist/index3.js} +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableLineItems.js → bill-detail/data-access/dist/index4.js} +3 -3
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useAttachPayableFileMutation.js → bill-detail/data-access/dist/index5.js} +7 -7
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayableMutations/useCancelPayableMutation.js → bill-detail/data-access/dist/index6.js} +7 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index7.js +40 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index8.js +34 -0
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index9.js +34 -0
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +12 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +11 -0
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index11.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index12.js +11 -11
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index13.js +2 -2
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index14.js +8 -8
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature → bill-detail/feature}/dist/index15.js +11 -11
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index17.js → bill-detail/feature/dist/index16.js} +8 -8
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index18.js → bill-detail/feature/dist/index17.js} +9 -9
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index19.js → bill-detail/feature/dist/index18.js} +7 -7
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index20.js → bill-detail/feature/dist/index19.js} +9 -9
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index2.js +59 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index21.js → bill-detail/feature/dist/index20.js} +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index22.js → bill-detail/feature/dist/index21.js} +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index23.js → bill-detail/feature/dist/index22.js} +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index24.js → bill-detail/feature/dist/index23.js} +11 -11
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index25.js → bill-detail/feature/dist/index24.js} +5 -5
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index26.js → bill-detail/feature/dist/index25.js} +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index27.js → bill-detail/feature/dist/index26.js} +9 -9
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index28.js → bill-detail/feature/dist/index27.js} +19 -19
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index29.js → bill-detail/feature/dist/index28.js} +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index30.js → bill-detail/feature/dist/index29.js} +2 -2
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +7 -0
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index31.js → bill-detail/feature/dist/index30.js} +3 -3
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index32.js → bill-detail/feature/dist/index31.js} +14 -14
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index33.js → bill-detail/feature/dist/index32.js} +3 -3
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index34.js → bill-detail/feature/dist/index33.js} +5 -5
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index35.js → bill-detail/feature/dist/index34.js} +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index36.js → bill-detail/feature/dist/index35.js} +71 -70
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +4 -0
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index38.js → bill-detail/feature/dist/index37.js} +4 -4
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index39.js → bill-detail/feature/dist/index38.js} +49 -48
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +3 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +17 -0
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +5 -0
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +67 -0
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +1 -0
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +40 -0
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +229 -0
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +87 -0
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +50 -0
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +16 -0
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index.js +50 -0
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index29.js → bill-detail/ui/dist/index10.js} +4 -4
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index30.js → bill-detail/ui/dist/index11.js} +3 -3
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index31.js → bill-detail/ui/dist/index12.js} +4 -4
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index13.js +2 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index33.js → bill-detail/ui/dist/index14.js} +12 -13
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index34.js → bill-detail/ui/dist/index15.js} +27 -28
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index16.js +2 -0
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index36.js → bill-detail/ui/dist/index17.js} +2 -2
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index37.js → bill-detail/ui/dist/index18.js} +3 -3
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index19.js +2 -0
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index2.js +15 -0
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index42.js → bill-detail/ui/dist/index20.js} +2 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index43.js → bill-detail/ui/dist/index21.js} +3 -3
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index22.js +2 -0
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index45.js → bill-detail/ui/dist/index23.js} +2 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index46.js → bill-detail/ui/dist/index24.js} +3 -3
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index25.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index48.js → bill-detail/ui/dist/index26.js} +5 -5
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index49.js → bill-detail/ui/dist/index27.js} +7 -7
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index28.js +2 -0
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index51.js → bill-detail/ui/dist/index29.js} +10 -10
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +55 -0
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index52.js → bill-detail/ui/dist/index30.js} +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index53.js → bill-detail/ui/dist/index31.js} +19 -19
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index32.js +1 -1
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index61.js → bill-detail/ui/dist/index33.js} +8 -9
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index62.js → bill-detail/ui/dist/index34.js} +22 -24
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index69.js → bill-detail/ui/dist/index36.js} +1 -1
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index70.js → bill-detail/ui/dist/index37.js} +8 -9
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index72.js → bill-detail/ui/dist/index39.js} +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index4.js +2 -0
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index73.js → bill-detail/ui/dist/index40.js} +2 -2
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index64.js → bill-detail/ui/dist/index42.js} +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index65.js → bill-detail/ui/dist/index43.js} +3 -3
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index89.js → bill-detail/ui/dist/index45.js} +1 -1
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index90.js → bill-detail/ui/dist/index46.js} +2 -2
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index95.js → bill-detail/ui/dist/index48.js} +3 -3
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index96.js → bill-detail/ui/dist/index49.js} +5 -5
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +19 -0
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index98.js → bill-detail/ui/dist/index51.js} +1 -1
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index99.js → bill-detail/ui/dist/index52.js} +3 -3
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index54.js → bill-detail/ui/dist/index53.js} +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index6.js +23 -0
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index7.js +1 -0
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index8.js +32 -0
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index9.js +1 -0
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +6 -0
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/useFirstPayablesPagesQuery.js → bills-list/data-access/dist/index2.js} +8 -8
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesCountQueries.js → bills-list/data-access/dist/index3.js} +8 -7
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/lib/usePayablesQueries/usePayablesQuery.js → bills-list/data-access/dist/index4.js} +8 -7
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +30 -0
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +4 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +8 -0
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +17 -0
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index52.js → bills-list/feature/dist/index11.js} +1 -1
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index53.js → bills-list/feature/dist/index12.js} +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index54.js → bills-list/feature/dist/index13.js} +3 -3
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index55.js → bills-list/feature/dist/index14.js} +23 -23
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index56.js → bills-list/feature/dist/index15.js} +5 -5
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +398 -0
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +246 -0
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +4 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +5 -0
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index44.js → bills-list/feature/dist/index2.js} +3 -3
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +40 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +1 -0
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index45.js → bills-list/feature/dist/index3.js} +1 -1
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index46.js → bills-list/feature/dist/index4.js} +2 -2
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index47.js → bills-list/feature/dist/index5.js} +1 -1
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index48.js → bills-list/feature/dist/index6.js} +2 -2
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index49.js → bills-list/feature/dist/index7.js} +2 -2
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index50.js → bills-list/feature/dist/index8.js} +3 -6
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +22 -0
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +21 -0
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index77.js → bills-list/ui/dist/index10.js} +4 -4
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +3 -0
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index79.js → bills-list/ui/dist/index12.js} +1 -1
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index80.js → bills-list/ui/dist/index13.js} +3 -3
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +2 -0
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index82.js → bills-list/ui/dist/index15.js} +1 -1
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index83.js → bills-list/ui/dist/index16.js} +3 -3
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +2 -0
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index85.js → bills-list/ui/dist/index18.js} +15 -16
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index86.js → bills-list/ui/dist/index19.js} +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +14 -0
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index87.js → bills-list/ui/dist/index20.js} +24 -27
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +3 -0
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +64 -0
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index4.js +2 -0
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index5.js +8 -0
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index6.js +35 -0
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index7.js +2 -0
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index75.js → bills-list/ui/dist/index8.js} +2 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index76.js → bills-list/ui/dist/index9.js} +1 -1
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +3 -28
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +8 -8
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -15
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +23 -7
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +3 -57
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +43 -4
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +1 -17
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +3 -36
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +109 -219
  177. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +5 -85
  178. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +104 -47
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -16
  180. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  181. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  182. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +17 -83
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +50 -31
  184. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -13
  185. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +36 -50
  186. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -9
  187. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +14 -25
  188. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -18
  189. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +8 -16
  190. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +74 -19
  191. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index2.js +16 -8
  192. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -14
  193. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +25 -14
  194. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +4 -2
  195. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +28 -2
  196. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +2 -30
  197. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +7 -2
  198. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +30 -28
  199. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +1 -0
  200. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +16 -75
  201. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/{index59.js → index4.js} +2 -2
  202. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index5.js +1 -1
  203. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +10 -11
  204. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +2 -64
  205. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +0 -1
  206. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +16 -6
  207. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  208. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +18 -1
  209. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +219 -453
  210. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +34 -41
  211. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +463 -32
  212. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -77
  213. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +34 -112
  214. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +75 -310
  215. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +121 -0
  216. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +317 -0
  217. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +30 -27
  218. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +7 -5
  219. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -28
  220. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +4 -236
  221. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +0 -2
  222. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +90 -239
  223. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +24 -89
  224. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +231 -54
  225. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +3 -353
  226. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +249 -0
  227. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +93 -0
  228. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +59 -0
  229. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +353 -0
  230. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +9 -9
  231. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +8 -8
  232. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -4
  233. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  234. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/feature/dist/index16.js → shared/feature/dist/lib/calendar/useLocalCalendarDay.js} +1 -1
  235. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  236. package/package.json +1 -1
  237. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +0 -12
  238. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +0 -40
  239. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +0 -34
  240. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +0 -34
  241. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +0 -34
  242. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +0 -6
  243. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +0 -29
  244. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +0 -4
  245. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +0 -3
  246. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +0 -5
  247. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +0 -46
  248. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +0 -1
  249. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +0 -22
  250. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +0 -396
  251. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +0 -334
  252. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +0 -4
  253. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +0 -7
  254. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +0 -108
  255. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +0 -1
  256. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +0 -27
  257. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +0 -2
  258. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -1
  259. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +0 -18
  260. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +0 -54
  261. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +0 -4
  262. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +0 -41
  263. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +0 -2
  264. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -19
  265. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +0 -2
  266. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +0 -2
  267. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +0 -2
  268. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +0 -2
  269. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -1
  270. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -2
  271. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +0 -2
  272. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +0 -3
  273. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +0 -2
  274. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +0 -2
  275. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +0 -3
  276. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +0 -2
  277. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +0 -7
  278. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +0 -34
  279. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +0 -2
  280. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +0 -2
  281. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +0 -100
  282. /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index35.js +0 -0
  283. /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index38.js +0 -0
  284. /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index41.js +0 -0
  285. /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index44.js +0 -0
  286. /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index47.js +0 -0
  287. /package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui → bill-detail/ui}/dist/index50.js +0 -0
@@ -2,18 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
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";
5
+ import { formatMoneyExact as e } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
6
+ import { getCounterpartName as t } from "../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
7
+ import { useCounterpartsQuery as n } from "../../../../shared/counterpart-management/data-access/dist/index3.js";
8
+ import "../../../../shared/counterpart-management/feature/dist/index.js";
9
+ import { BillsFilterField as r } from "../../ui/dist/index9.js";
7
10
  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 "./index52.js";
12
- import { BillsDatePreset as o, resolveDatePreset as s } from "./index53.js";
13
- import { BILLS_FILTER_LABELS_EN as c } from "./index54.js";
11
+ import { BILL_STATUS_FILTER_ORDER as i, billStatusFilterApiValues as a } from "./index11.js";
12
+ import { BillsDatePreset as o, resolveDatePreset as s } from "./index12.js";
13
+ import { BILLS_FILTER_LABELS_EN as c } from "./index13.js";
14
14
  import { useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
15
15
  import { format as p, formatISO as m } from "date-fns";
16
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js
16
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js
17
17
  var h = {
18
18
  Date: "date",
19
19
  Status: "status",
@@ -21,9 +21,9 @@ var h = {
21
21
  Vendor: "vendor",
22
22
  Attachment: "attachment"
23
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"
24
+ [r.IssueDate]: "issued_at",
25
+ [r.DueDate]: "due_date",
26
+ [r.AddedOn]: "created_at"
27
27
  }, x = {
28
28
  [o.Today]: "current",
29
29
  [o.ThisWeek]: "current",
@@ -40,7 +40,7 @@ var h = {
40
40
  };
41
41
  function S() {
42
42
  return {
43
- dateField: t.DueDate,
43
+ dateField: r.DueDate,
44
44
  statuses: [],
45
45
  amountMode: "any",
46
46
  amountMin: "",
@@ -88,7 +88,7 @@ function w({ offersStatusFilter: o = !1, offersVendorFilter: w = !0, isVendorFil
88
88
  let e = setTimeout(() => I(N.trim()), _);
89
89
  return () => clearTimeout(e);
90
90
  }, [N]);
91
- let R = r({
91
+ let R = n({
92
92
  enabled: w && !T,
93
93
  is_vendor: !0,
94
94
  sort: "counterpart_name",
@@ -97,7 +97,7 @@ function w({ offersStatusFilter: o = !1, offersVendorFilter: w = !0, isVendorFil
97
97
  counterpart_name__icontains: F || void 0
98
98
  }), z = d(() => (R.data?.data ?? []).map((e) => ({
99
99
  value: e.id,
100
- label: n(e)
100
+ label: t(e)
101
101
  })), [R.data?.data]), B = d(() => i.map((e) => ({
102
102
  value: e,
103
103
  label: O.statuses[e]
@@ -196,13 +196,13 @@ function w({ offersStatusFilter: o = !1, offersVendorFilter: w = !0, isVendorFil
196
196
  return {
197
197
  filterBarProps: {
198
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
199
+ ...w ? [r.Vendor] : [],
200
+ r.IssueDate,
201
+ r.DueDate,
202
+ ...o ? [r.Status] : [],
203
+ r.TotalAmount,
204
+ r.AddedOn,
205
+ r.Attachment
206
206
  ], [o, w])],
207
207
  activeFilterCount: U.length,
208
208
  chips: U,
@@ -226,7 +226,7 @@ function w({ offersStatusFilter: o = !1, offersVendorFilter: w = !0, isVendorFil
226
226
  dateTo: t
227
227
  }),
228
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);
229
+ let t = /* @__PURE__ */ new Date(), n = k.dateField === r.AddedOn ? new Date(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()) : t, { from: i, to: a } = s(e, n);
230
230
  L({
231
231
  datePreset: e,
232
232
  dateFrom: i,
@@ -2,12 +2,12 @@
2
2
  "use client";
3
3
  "use client";
4
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";
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
9
  import { useMemo as r } from "react";
10
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js
10
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js
11
11
  var i = {
12
12
  Resolving: "resolving",
13
13
  Unavailable: "unavailable",
@@ -0,0 +1,398 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { formatCalendarDate as t } from "../../../../shared/util/dist/lib/formatCalendarDate.js";
7
+ import { formatMoneyExact as n } from "../../../../shared/util/dist/lib/formatMoneyExact.js";
8
+ import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import "../../../../shared/ui/dist/index.js";
10
+ import { useLocalCalendarDay as i } from "../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
11
+ import "../../../../shared/feature/dist/index.js";
12
+ import { derivePayableStatus as a } from "../../../util/dist/lib/derivePayableStatus.js";
13
+ import { DuplicateVerdict as o } from "../../../util/dist/lib/duplicateVerdict.js";
14
+ import { formatScheduledDateLabel as s } from "../../../util/dist/lib/formatScheduledDateLabel.js";
15
+ import { hasSuspectedPayableDuplicate as c, suspectedPayableDuplicates as l } from "../../../util/dist/lib/payableDuplicates.js";
16
+ import { compareByArrival as u, duplicateVerdictMatches as d, resolveDuplicateOriginalId as f } from "../../../util/dist/lib/groupDuplicates.js";
17
+ import { isEditablePayableStatus as ee } from "../../../util/dist/lib/isEditablePayableStatus.js";
18
+ import { payableRemoval as te } from "../../../util/dist/lib/payableRemoval.js";
19
+ import { resolveVendorName as ne } from "../../../util/dist/lib/resolveVendor.js";
20
+ import { useApplyDuplicateVerdictsMutation as p } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
21
+ import "../../../data-access/dist/index.js";
22
+ import { BillColumn as m } from "../../ui/dist/index19.js";
23
+ import "../../ui/dist/index.js";
24
+ import { BillQueue as h, DEFAULT_BILL_QUEUE as g, billQueueColumns as _, billQueueHasScheduledPayment as re, billQueueOffersAddPanel as ie, billQueueStatuses as ae, billSortColumnId as oe, billSortField as se } from "./index4.js";
25
+ import { duplicateRemovalPrompt as ce } from "./index10.js";
26
+ import { useBillsFilters as le } from "./index14.js";
27
+ import { BillVendorLookup as ue, useBillVendorNames as de } from "./index15.js";
28
+ import { useFirstPayablesPagesQuery as fe } from "../../data-access/dist/index2.js";
29
+ import { usePayablesQuery as pe } from "../../data-access/dist/index4.js";
30
+ import { usePayablesTotalCountQuery as me } from "../../data-access/dist/index5.js";
31
+ import "../../data-access/dist/index.js";
32
+ import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
33
+ import { BanIcon as he, FileCheckIcon as ge, Trash2Icon as _e } from "lucide-react";
34
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js
35
+ var ve = 10, S = 100, ye = 3, be = [{
36
+ id: "addedOnLabel",
37
+ desc: !0
38
+ }], C = {
39
+ AllBills: "allBills",
40
+ PossibleDuplicates: "possibleDuplicates"
41
+ };
42
+ function xe(e, t) {
43
+ let n = new Map(e.map((e) => [e.id, e])), r = /* @__PURE__ */ new Map(), i = (e) => {
44
+ r.has(e) || r.set(e, /* @__PURE__ */ new Set());
45
+ }, a = (e, t) => {
46
+ i(e), i(t), r.get(e)?.add(t), r.get(t)?.add(e);
47
+ };
48
+ for (let t of e) {
49
+ let e = l(t);
50
+ if (e.length !== 0) {
51
+ i(t.id);
52
+ for (let n of e) a(t.id, n.matched_payable_id);
53
+ }
54
+ }
55
+ let o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set();
56
+ for (let e of r.keys()) {
57
+ if (s.has(e)) continue;
58
+ let i = [], a = [e];
59
+ for (s.add(e); a.length > 0;) {
60
+ let e = a.pop();
61
+ n.has(e) && i.push(e);
62
+ for (let t of r.get(e) ?? []) s.has(t) || (s.add(t), a.push(t));
63
+ }
64
+ if (i.length === 0) continue;
65
+ let c = i.map((e) => n.get(e)).filter((e) => !!e).sort(u), l = f(c), [d] = c, ee = {
66
+ key: `duplicate-group:${[...i].sort().join(":")}`,
67
+ headerLabel: t.groupHeader({
68
+ vendorLabel: ne(d),
69
+ invoiceNumberLabel: d?.document_id ?? ""
70
+ }),
71
+ memberCount: i.length,
72
+ originalPayableId: l
73
+ };
74
+ for (let e of i) o.set(e, ee);
75
+ }
76
+ return o;
77
+ }
78
+ function w({ enabled: l = !0, canReadVendors: u = !0, isVendorFilterPaused: f = !1, filterLabels: ue, onOpenBill: w, duplicateRowNote: we, attachmentLabel: Te, duplicateGroupLabels: T, canManageDuplicates: Ee = !1, duplicateView: E = C.AllBills, scheduledRelativeDayLabels: De }) {
79
+ let Oe = i(), [D, ke] = x(g), [Ae, je] = x(be), [O, Me] = x(ve), [Ne, k] = x(), [Pe, A] = x(0), [j, M] = x(""), [N, Fe] = x(""), [P, F] = x(), [I, L] = x(), R = v(() => {
80
+ k(void 0), A(0);
81
+ }, []);
82
+ y(() => {
83
+ if (j === N) return;
84
+ let e = setTimeout(() => {
85
+ Fe(j), R();
86
+ }, 300);
87
+ return () => clearTimeout(e);
88
+ }, [
89
+ j,
90
+ N,
91
+ R
92
+ ]), y(() => {
93
+ R();
94
+ }, [E, R]);
95
+ let z = le({
96
+ offersStatusFilter: D === h.All,
97
+ offersVendorFilter: u,
98
+ isVendorFilterPaused: f,
99
+ labels: ue,
100
+ onFiltersChange: R
101
+ }), { clearAll: Ie, filterByVendor: Le } = z, Re = Ae[0], B = se(Re?.id), ze = B ? Re?.desc ? "desc" : "asc" : void 0, V = E === C.PossibleDuplicates, H = V ? h.All : D, U = b(() => ({
102
+ ...z.query,
103
+ limit: V ? S : O,
104
+ pagination_token: V ? void 0 : Ne,
105
+ status__in: V ? void 0 : ae(H) ?? z.query.status__in,
106
+ has_scheduled_payment: V ? void 0 : re(H),
107
+ duplicate_match_status: V ? "suspected" : void 0,
108
+ counterpart_name__icontains: N || void 0,
109
+ sort: B,
110
+ order: ze
111
+ }), [
112
+ z.query,
113
+ O,
114
+ Ne,
115
+ V,
116
+ H,
117
+ N,
118
+ B,
119
+ ze
120
+ ]), { organizationId: Be } = r(), W = JSON.stringify([Be, U]), G = pe({
121
+ ...U,
122
+ enabled: l && !V,
123
+ pollWhileOcrProcessing: !0
124
+ }), K = fe({
125
+ ...U,
126
+ enabled: l && V,
127
+ maxPages: ye
128
+ }), q = V ? {
129
+ ...K,
130
+ data: { data: K.payables },
131
+ isLoading: K.isResolving,
132
+ isFetching: K.isFetching || K.isResolving
133
+ } : G, J = (q.data?.data ?? []).filter((e) => e.ocr_status !== "processing"), Y = p(), X = v(async (t, n, r, i) => {
134
+ let a = d(t, n, i);
135
+ if (a.length) try {
136
+ await Y.mutateAsync({
137
+ verdict: n,
138
+ targets: a.map((e) => ({
139
+ payableId: t.id,
140
+ duplicateId: e.id,
141
+ matchedPayableId: e.matched_payable_id,
142
+ removeBy: te(t.status)
143
+ }))
144
+ }), e.success(r);
145
+ } catch {
146
+ e.error(T.actionFailedToast);
147
+ }
148
+ }, [Y, T.actionFailedToast]), Z = b(() => ({
149
+ delete: {
150
+ action: T.deleteAction,
151
+ title: T.deleteConfirmTitle,
152
+ description: T.deleteConfirmDescription,
153
+ confirmButton: T.deleteConfirmButton,
154
+ backButton: T.cancelConfirmBackButton,
155
+ toast: T.deletedToast
156
+ },
157
+ cancel: {
158
+ action: T.cancelAction,
159
+ title: T.cancelConfirmTitle,
160
+ description: T.cancelConfirmDescription,
161
+ confirmButton: T.cancelConfirmButton,
162
+ backButton: T.cancelConfirmBackButton,
163
+ toast: T.cancelledToast
164
+ },
165
+ confirm: {
166
+ action: T.confirmAction,
167
+ title: T.confirmDuplicateTitle,
168
+ description: T.confirmDuplicateDescription,
169
+ confirmButton: T.confirmDuplicateButton,
170
+ backButton: T.cancelConfirmBackButton,
171
+ toast: T.confirmedToast
172
+ }
173
+ }), [T]), Ve = P?.removeBy ?? "cancel", He = v(async () => {
174
+ P && (await X(P.payable, o.Remove, Z[P.removeBy].toast), F(void 0));
175
+ }, [
176
+ X,
177
+ P,
178
+ Z
179
+ ]), Ue = v(async () => {
180
+ I && (await X(I.payable, o.Keep, T.dismissedToast, I.originalPayableId), L(void 0));
181
+ }, [
182
+ X,
183
+ T.dismissedToast,
184
+ I
185
+ ]), [We, Ge] = x(W);
186
+ y(() => {
187
+ q.isFetching || Ge(W);
188
+ }, [q.isFetching, W]);
189
+ let Ke = q.data?.data.length, qe = Ke === 0, Je = me({ enabled: l && qe }), Ye = !qe || (Je.data?.count ?? 1) > 0, Q = b(() => E === C.PossibleDuplicates ? xe(J, T) : /* @__PURE__ */ new Map(), [
190
+ E,
191
+ J,
192
+ T
193
+ ]), Xe = b(() => {
194
+ if (Q.size === 0) return J;
195
+ let e = /* @__PURE__ */ new Map();
196
+ return J.forEach((t, n) => {
197
+ let r = Q.get(t.id)?.key;
198
+ r !== void 0 && !e.has(r) && e.set(r, n);
199
+ }), J.map((t, n) => ({
200
+ payable: t,
201
+ order: e.get(Q.get(t.id)?.key ?? "") ?? n
202
+ })).sort((e, t) => e.order - t.order).map(({ payable: e }) => e);
203
+ }, [J, Q]), { vendorNames: Ze, lookup: Qe } = de({
204
+ payables: q.data?.data,
205
+ enabled: l,
206
+ canReadVendors: u,
207
+ isPaused: f
208
+ }), $e = b(() => Xe.map((e) => {
209
+ let r = a({
210
+ apiStatus: e.status,
211
+ dueDate: e.due_date,
212
+ scheduledPaymentDate: e.scheduled_payment_date
213
+ }), i = e.amount_due ?? e.total_amount, o = e.status === "partially_paid" || e.status === "paid", l = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), u = s(e.scheduled_payment_date, De, Oe), d = Q.get(e.id), f = c(e), p = ne(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = te(e.status), _ = d?.originalPayableId !== void 0 && d.originalPayableId === e.id, re = V && f && Ee && d ? {
214
+ triggerLabel: T.menuTrigger({
215
+ vendorLabel: p,
216
+ invoiceNumberLabel: m
217
+ }),
218
+ items: [{
219
+ id: "not-duplicate",
220
+ label: T.notDuplicateAction,
221
+ icon: ge,
222
+ disabled: Y.isPending,
223
+ onSelect: () => L({
224
+ payable: e,
225
+ originalPayableId: _ ? void 0 : d.originalPayableId
226
+ })
227
+ }, ...g ? [{
228
+ id: "cancel-duplicate",
229
+ label: Z[g].action,
230
+ icon: g === "delete" ? _e : he,
231
+ disabled: Y.isPending,
232
+ onSelect: () => F({
233
+ payable: e,
234
+ removeBy: g
235
+ })
236
+ }] : []]
237
+ } : void 0;
238
+ return {
239
+ rowKey: e.id,
240
+ vendorLabel: p,
241
+ vendorLookup: p || !e.counterpart_id ? void 0 : Ce(Qe),
242
+ invoiceNumberLabel: m,
243
+ issueDateLabel: t(e.issued_at),
244
+ dueDateLabel: t(e.due_date),
245
+ dueDateTone: r.isOverdue ? "danger" : "default",
246
+ scheduledDateLabel: u.label,
247
+ scheduledDateExact: u.absoluteLabel,
248
+ scheduledDateIsGap: H === h.Scheduled,
249
+ paidDateLabel: t(e.paid_at?.slice(0, 10)),
250
+ amountDueLabel: l(i),
251
+ amountPaidLabel: o ? l(e.amount_paid) : "",
252
+ amountPaidIsGap: H === h.Paid,
253
+ amountScheduledLabel: l(e.amount_to_pay ?? i),
254
+ totalAmountLabel: l(e.total_amount),
255
+ attachment: e.file_id ? { label: Te } : void 0,
256
+ status: r.status,
257
+ statusTone: r.tone,
258
+ addedOnLabel: t(e.created_at?.slice(0, 10)),
259
+ ...d ? {
260
+ group: {
261
+ key: d.key,
262
+ headerLabel: d.headerLabel,
263
+ memberCount: d.memberCount
264
+ },
265
+ groupedRowLabel: p,
266
+ groupedRowLabelTone: void 0,
267
+ groupedRowBadge: _ ? T.originalBill : void 0
268
+ } : {},
269
+ ...re ? { menu: re } : {},
270
+ ...!V && !d && f ? {
271
+ rowTone: "warning",
272
+ rowNote: we
273
+ } : {},
274
+ onOpen: () => w(e.id, ee(e.status))
275
+ };
276
+ }), [
277
+ Xe,
278
+ Q,
279
+ T,
280
+ Z,
281
+ Y.isPending,
282
+ Ee,
283
+ V,
284
+ we,
285
+ Te,
286
+ De,
287
+ Oe,
288
+ w,
289
+ H,
290
+ Ze,
291
+ Qe
292
+ ]), et = b(() => V ? Se($e, S) : [], [$e, V]), $ = Math.min(Pe, Math.max(0, et.length - 1)), tt = V ? et[$] ?? [] : $e, nt = v((e) => {
293
+ let t = e;
294
+ ke(t), je((e) => {
295
+ let n = e[0]?.id;
296
+ return n ? _(t).some((e) => oe(e) === n) ? e : be : e;
297
+ }), R();
298
+ }, [R]), rt = v((e) => {
299
+ nt(h.All), M(""), Le(e);
300
+ }, [Le, nt]), it = v(() => {
301
+ M(""), Fe(""), Ie(), R();
302
+ }, [Ie, R]), at = v((e) => {
303
+ je((t) => typeof e == "function" ? e(t) : e), R();
304
+ }, [R]), ot = v((e) => {
305
+ Me(e), R();
306
+ }, [R]), st = v(() => {
307
+ if (V) {
308
+ A($ + 1);
309
+ return;
310
+ }
311
+ k(G.data?.next_pagination_token ?? void 0);
312
+ }, [
313
+ $,
314
+ V,
315
+ G.data?.next_pagination_token
316
+ ]), ct = v(() => {
317
+ if (V) {
318
+ A(Math.max(0, $ - 1));
319
+ return;
320
+ }
321
+ k(G.data?.prev_pagination_token ?? void 0);
322
+ }, [
323
+ $,
324
+ V,
325
+ G.data?.prev_pagination_token
326
+ ]), lt = v(() => {
327
+ q.refetch();
328
+ }, [q.refetch]);
329
+ return {
330
+ rows: tt,
331
+ isLoading: q.isLoading || W !== We || qe && Je.isLoading || (Ke ?? 0) > 0 && tt.length === 0,
332
+ isError: q.isError,
333
+ onRetry: lt,
334
+ selectedFilterTabId: D,
335
+ onFilterTabChange: nt,
336
+ showVendorBills: rt,
337
+ clearQueryConstraints: it,
338
+ searchValue: j,
339
+ onSearchChange: M,
340
+ hasAnyBills: Ye,
341
+ isSearchActive: N.length > 0 || z.isFilterActive || V,
342
+ filterBarProps: z.filterBarProps,
343
+ visibleColumns: V ? [
344
+ m.Vendor,
345
+ m.AmountDue,
346
+ m.DueDate,
347
+ m.AddedOn,
348
+ m.Status
349
+ ] : _(D),
350
+ showAddPanelWhenEmpty: !V && ie(D),
351
+ sorting: Ae,
352
+ onSortingChange: at,
353
+ pageSize: V ? S : O,
354
+ pageSizeOptions: V ? [S] : void 0,
355
+ onPageSizeChange: ot,
356
+ hasNextPage: V ? $ < et.length - 1 : !!G.data?.next_pagination_token,
357
+ hasPrevPage: V ? $ > 0 : !!G.data?.prev_pagination_token,
358
+ onNextPage: st,
359
+ onPrevPage: ct,
360
+ cancelConfirmation: {
361
+ open: !!P,
362
+ copy: ce(Z[Ve], Ve),
363
+ onConfirm: () => void He(),
364
+ onCancel: () => F(void 0),
365
+ isPending: Y.isPending,
366
+ cancelButtonLabel: Z[Ve].backButton
367
+ },
368
+ keepConfirmation: {
369
+ open: !!I,
370
+ copy: {
371
+ title: T.notDuplicateConfirmTitle,
372
+ description: T.notDuplicateConfirmDescription,
373
+ confirmButton: T.notDuplicateConfirmButton,
374
+ presentation: {
375
+ alignment: "center",
376
+ icon: ge,
377
+ actionWidth: "equal"
378
+ }
379
+ },
380
+ onConfirm: () => void Ue(),
381
+ onCancel: () => L(void 0),
382
+ isPending: Y.isPending,
383
+ cancelButtonLabel: T.notDuplicateConfirmBackButton
384
+ }
385
+ };
386
+ }
387
+ function Se(e, t) {
388
+ let n = [], r = [];
389
+ return e.forEach((i, a) => {
390
+ let o = i.group !== void 0 && i.group.key === e[a - 1]?.group?.key;
391
+ r.length >= t && !o && (n.push(r), r = []), r.push(i);
392
+ }), r.length && n.push(r), n;
393
+ }
394
+ function Ce(e) {
395
+ return e === ue.Settled ? void 0 : e;
396
+ }
397
+ //#endregion
398
+ export { C as BillDuplicateView, w as useBillsTable };