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