@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
@@ -2,43 +2,44 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { buildPayableAuditHistory as e, hasUnattributedAuditRows as ee } from "../../../shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js";
6
- import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
7
- import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
8
- import { useAllLedgerAccountsQuery as te } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
9
- import "../../../shared/data-access/dist/index.js";
10
- import { useWidgetConfig as ne } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
- import { useOrganizationUserNames as re } from "../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
12
- import "../../../shared/feature/dist/index.js";
13
- import { mergeDecisionDialogCopy as ie, mergePaymentHistoryMethodLabels as ae } from "../../util/dist/lib/billDetailLabels.js";
14
- import { formatScheduledDateLabel as r } from "../../util/dist/lib/formatScheduledDateLabel.js";
15
- import { hasSuspectedPayableDuplicate as i } from "../../util/dist/lib/payableDuplicates.js";
16
- import { mapPayableToBillDetails as a } from "./index19.js";
17
- import { BillDecisionDialog as o } from "../../ui/dist/index59.js";
18
- import { BillDetailsSheet as s } from "../../ui/dist/index62.js";
19
- import { BillDuplicateNotice as c } from "../../ui/dist/index70.js";
5
+ import { buildPayableAuditHistory as e, hasUnattributedAuditRows as ee } from "../../../../shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js";
6
+ import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
7
+ import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
8
+ import { useAllLedgerAccountsQuery as te } from "../../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
9
+ import "../../../../shared/data-access/dist/index.js";
10
+ import { useWidgetConfig as ne } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
+ import { useOrganizationUserNames as re } from "../../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
12
+ import { useLocalCalendarDay as ie } from "../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
13
+ import "../../../../shared/feature/dist/index.js";
14
+ import { mergeDecisionDialogCopy as ae, mergePaymentHistoryMethodLabels as r } from "../../../util/dist/lib/billDetailLabels.js";
15
+ import { formatScheduledDateLabel as i } from "../../../util/dist/lib/formatScheduledDateLabel.js";
16
+ import { hasSuspectedPayableDuplicate as a } from "../../../util/dist/lib/payableDuplicates.js";
17
+ import { mapPayableToBillDetails as o } from "./index18.js";
18
+ import { BillDecisionDialog as s } from "../../../ui/dist/index4.js";
19
+ import "../../../ui/dist/index.js";
20
+ import { BillDetailsSheet as c } from "../../ui/dist/index34.js";
21
+ import { BillDuplicateNotice as l } from "../../ui/dist/index37.js";
20
22
  import "../../ui/dist/index.js";
21
- import { usePayableApprovalRequestsQuery as l } from "../../data-access/dist/lib/usePayableApprovalRequests.js";
22
- import { usePayableHistoryQuery as u } from "../../data-access/dist/lib/usePayableHistoryQuery.js";
23
- import { useAllPayableLineItemsQuery as d } from "../../data-access/dist/lib/usePayableLineItems.js";
24
- import { usePayableQuery as f } from "../../data-access/dist/lib/usePayablesQueries/usePayableQuery.js";
23
+ import { usePayableApprovalRequestsQuery as u } from "../../data-access/dist/index2.js";
24
+ import { usePayableHistoryQuery as d } from "../../data-access/dist/index3.js";
25
+ import { useAllPayableLineItemsQuery as f } from "../../data-access/dist/index4.js";
26
+ import { usePayableQuery as p } from "../../data-access/dist/index21.js";
25
27
  import "../../data-access/dist/index.js";
26
- import { buildPaymentHistory as p } from "./index2.js";
27
- import { currentApprovalRound as oe } from "./index3.js";
28
- import { canOverrideApprovalPolicy as se, canReadCounterpartBankAccounts as ce } from "./index7.js";
29
- import { usePayableApprovalRoundStart as le } from "./index11.js";
30
- import { useApprovalPolicyCardView as ue } from "./index12.js";
31
- import { resolveBillRejectionNotice as de } from "./index13.js";
32
- import { useCurrentApprovalRequestId as fe } from "./index14.js";
33
- import { usePayableDetailActions as pe } from "./index15.js";
34
- import { useLocalCalendarDay as me } from "./index16.js";
35
- import { useScheduledPayment as he } from "./index17.js";
36
- import { usePayableAchInstructions as ge } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
37
- import "../../../shared/counterpart-management/feature/dist/index.js";
38
- import { BILL_DETAILS_LABELS_EN as m } from "./index38.js";
28
+ import { buildPaymentHistory as oe } from "./index2.js";
29
+ import { currentApprovalRound as se } from "./index3.js";
30
+ import { canOverrideApprovalPolicy as ce, canReadCounterpartBankAccounts as le } from "./index7.js";
31
+ import { usePayableApprovalRoundStart as ue } from "./index11.js";
32
+ import { useApprovalPolicyCardView as de } from "./index12.js";
33
+ import { resolveBillRejectionNotice as fe } from "./index13.js";
34
+ import { useCurrentApprovalRequestId as pe } from "./index14.js";
35
+ import { usePayableDetailActions as me } from "./index15.js";
36
+ import { useScheduledPayment as he } from "./index16.js";
37
+ import { usePayableAchInstructions as ge } from "../../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
38
+ import "../../../../shared/counterpart-management/feature/dist/index.js";
39
+ import { BILL_DETAILS_LABELS_EN as m } from "./index37.js";
39
40
  import { useMemo as h, useRef as _e, useState as ve } from "react";
40
41
  import { Fragment as ye, jsx as g, jsxs as be } from "react/jsx-runtime";
41
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
42
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js
42
43
  function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, onEdit: x, testId: S, labels: C, renderPaymentFlows: w }) {
43
44
  let T = h(() => ({
44
45
  ...m,
@@ -63,7 +64,7 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
63
64
  ...C?.sheet?.auditHistory
64
65
  }
65
66
  },
66
- decisionDialog: ie(m.decisionDialog, C?.decisionDialog),
67
+ decisionDialog: ae(m.decisionDialog, C?.decisionDialog),
67
68
  approvalPolicyCopy: {
68
69
  ...m.approvalPolicyCopy,
69
70
  ...C?.approvalPolicyCopy
@@ -80,14 +81,14 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
80
81
  ...m.actionSuccess,
81
82
  ...C?.actionSuccess
82
83
  },
83
- paymentHistoryMethodLabels: ae(C?.paymentHistoryMethodLabels)
84
- }), [C]), E = f(v), D = d(v), O = te(), { initResponse: k } = ne(), A = E.data, j = _e(null), [M, Se] = ve(!1), N = fe({
84
+ paymentHistoryMethodLabels: r(C?.paymentHistoryMethodLabels)
85
+ }), [C]), E = p(v), D = f(v), O = te(), { initResponse: k } = ne(), A = E.data, j = _e(null), [M, Se] = ve(!1), N = pe({
85
86
  payableId: v,
86
87
  status: A?.status
87
- }), Ce = A?.status === "rejected", we = t(k?.scopes, [n.ApprovalRequestReadOrg]), P = Ce && we, F = le({
88
+ }), Ce = A?.status === "rejected", we = t(k?.scopes, [n.ApprovalRequestReadOrg]), P = Ce && we, F = ue({
88
89
  payableId: v,
89
90
  enabled: P
90
- }), I = l(v, { enabled: P }), L = t(k?.scopes, [n.UserReadOrg]), { userNames: R, isError: Te, isResolving: Ee } = re({ enabled: L }), z = h(() => oe(I.data?.data, F.roundStartedAt), [I.data, F.roundStartedAt]), B = h(() => de({
91
+ }), I = u(v, { enabled: P }), L = t(k?.scopes, [n.UserReadOrg]), { userNames: R, isError: Te, isResolving: Ee } = re({ enabled: L }), z = h(() => se(I.data?.data, F.roundStartedAt), [I.data, F.roundStartedAt]), B = h(() => fe({
91
92
  payableStatus: A?.status,
92
93
  approvalRequests: z,
93
94
  userNames: R,
@@ -99,11 +100,11 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
99
100
  z,
100
101
  R,
101
102
  T
102
- ]), V = ue({
103
+ ]), V = de({
103
104
  payableId: v,
104
105
  approvalPolicyId: A?.approval_policy_id,
105
106
  copy: T.approvalPolicyCopy
106
- }), H = se({
107
+ }), H = ce({
107
108
  status: A?.status,
108
109
  scopes: k?.scopes,
109
110
  arePendingApproversUnknown: V.isLoading,
@@ -112,12 +113,12 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
112
113
  }), U = !!N.id, W = N.isLoading || V.isLoading, G = h(() => V.pendingApprovers.length ? V.pendingApprovers.flatMap((e) => e.names) : void 0, [V.pendingApprovers]), K = he({
113
114
  payableId: v,
114
115
  scheduledPaymentDate: A?.scheduled_payment_date
115
- }), q = ce(k?.scopes), J = ge({
116
+ }), q = le(k?.scopes), J = ge({
116
117
  counterpartId: A?.counterpart_id,
117
118
  currency: A?.currency,
118
119
  currentBankAccountId: A?.counterpart_bank_account_id,
119
120
  enabled: q
120
- }), { actions: De, decisionDialog: Oe } = pe({
121
+ }), { actions: De, decisionDialog: Oe } = me({
121
122
  payableId: A ? v : void 0,
122
123
  status: A?.status,
123
124
  currentApprovalRequestId: N.id,
@@ -152,16 +153,16 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
152
153
  onActionSucceeded: (e) => {
153
154
  e === "reopen" && x?.();
154
155
  }
155
- }), Y = me(), X = h(() => K.hasScheduledPayment && K.scheduledDate ? r(K.scheduledDate, T.scheduledRelativeDay, Y) : void 0, [
156
+ }), Y = ie(), X = h(() => K.hasScheduledPayment && K.scheduledDate ? i(K.scheduledDate, T.scheduledRelativeDay, Y) : void 0, [
156
157
  K.hasScheduledPayment,
157
158
  K.scheduledDate,
158
159
  T.scheduledRelativeDay,
159
160
  Y
160
- ]), ke = X ? T.scheduledSummary(X.label) : void 0, Z = i(A) ? /* @__PURE__ */ g(c, { onOpenFullScreen: b }) : void 0, Q = u(v), $ = h(() => e(Q.data?.data ?? [], R, T.history), [
161
+ ]), ke = X ? T.scheduledSummary(X.label) : void 0, Z = a(A) ? /* @__PURE__ */ g(l, { onOpenFullScreen: b }) : void 0, Q = d(v), $ = h(() => e(Q.data?.data ?? [], R, T.history), [
161
162
  Q.data,
162
163
  R,
163
164
  T.history
164
- ]), Ae = L && Te && ee(Q.data?.data ?? [], $, R), je = h(() => p({
165
+ ]), Ae = L && Te && ee(Q.data?.data ?? [], $, R), je = h(() => oe({
165
166
  records: K.paymentRecords,
166
167
  events: Q.data?.data ?? [],
167
168
  currencyCode: A?.currency,
@@ -171,7 +172,7 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
171
172
  Q.data,
172
173
  A?.currency,
173
174
  T
174
- ]), Me = h(() => A ? a({
175
+ ]), Me = h(() => A ? o({
175
176
  payable: A,
176
177
  lineItems: D.lineItems,
177
178
  ledgerAccounts: O.data?.data ?? [],
@@ -193,7 +194,7 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
193
194
  q
194
195
  ]), Ne = E.isLoading || D.isResolving || O.isResolving || J.isLoading, Pe = E.isError || D.isError || O.isError;
195
196
  return /* @__PURE__ */ be(ye, { children: [
196
- /* @__PURE__ */ g(s, {
197
+ /* @__PURE__ */ g(c, {
197
198
  open: _,
198
199
  onOpenChange: xe,
199
200
  details: Me,
@@ -218,7 +219,7 @@ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, o
218
219
  testId: S,
219
220
  labels: T.sheet
220
221
  }),
221
- /* @__PURE__ */ g(o, {
222
+ /* @__PURE__ */ g(s, {
222
223
  ...Oe,
223
224
  labels: { cancelButton: T.decisionDialog.cancelButton },
224
225
  testId: S ? `${S}-decision-dialog` : void 0,
@@ -0,0 +1,3 @@
1
+ import "./index18.js";
2
+ import "./index37.js";
3
+ import "./index38.js";
@@ -0,0 +1,17 @@
1
+ import { BanIcon as e, Trash2Icon as t } from "lucide-react";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js
3
+ function n(n, r) {
4
+ return {
5
+ title: n.title,
6
+ description: n.description,
7
+ confirmButton: n.confirmButton,
8
+ presentation: {
9
+ alignment: "center",
10
+ icon: r === "delete" ? t : e,
11
+ tone: r === "confirm" ? "default" : "destructive",
12
+ actionWidth: "equal"
13
+ }
14
+ };
15
+ }
16
+ //#endregion
17
+ export { n as duplicateRemovalPrompt };
@@ -0,0 +1,5 @@
1
+ import { BILL_PAY_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js
3
+ var t = `${e}.bill_detail`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as BillDetailWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -0,0 +1,67 @@
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 { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
7
+ import "../../../../shared/feature/dist/index.js";
8
+ import { BillCreateDialog as n } from "./index35.js";
9
+ import "./index36.js";
10
+ import { BillDetailsContainer as r } from "./index38.js";
11
+ import "./index39.js";
12
+ import { BillDetailWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index40.js";
13
+ import { useEffect as o } from "react";
14
+ import { jsx as s } from "react/jsx-runtime";
15
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js
16
+ function c() {
17
+ let t = e();
18
+ o(() => {
19
+ t(i.Mounted);
20
+ }, [t]);
21
+ }
22
+ function l(e) {
23
+ return c(), /* @__PURE__ */ s(n, { ...e });
24
+ }
25
+ function u(e) {
26
+ return c(), /* @__PURE__ */ s(r, { ...e });
27
+ }
28
+ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
29
+ return /* @__PURE__ */ s(t, {
30
+ widgetName: a,
31
+ baseUrl: e,
32
+ widgetToken: n,
33
+ organizationId: r,
34
+ configClient: i,
35
+ gatewayRouting: o,
36
+ linkComponent: c,
37
+ implementation: u,
38
+ uiFramework: d,
39
+ errorFallback: f,
40
+ onError: p,
41
+ analytics: m,
42
+ disclosuresAcceptance: h,
43
+ providerLabels: g,
44
+ children: /* @__PURE__ */ s(l, { ..._ })
45
+ });
46
+ }
47
+ function f({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: c, implementation: l, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
48
+ return /* @__PURE__ */ s(t, {
49
+ widgetName: a,
50
+ baseUrl: e,
51
+ widgetToken: n,
52
+ organizationId: r,
53
+ configClient: i,
54
+ gatewayRouting: o,
55
+ linkComponent: c,
56
+ implementation: l,
57
+ uiFramework: d,
58
+ errorFallback: f,
59
+ onError: p,
60
+ analytics: m,
61
+ disclosuresAcceptance: h,
62
+ providerLabels: g,
63
+ children: /* @__PURE__ */ s(u, { ..._ })
64
+ });
65
+ }
66
+ //#endregion
67
+ export { d as BillCreateWidget, f as BillDetailsWidget };
@@ -0,0 +1,40 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js
2
+ var e = {
3
+ selectRow: ({ vendorLabel: e, invoiceNumberLabel: t, addedOnLabel: n }) => `Select bill — ${e}, invoice ${t}, added ${n}`,
4
+ openRow: ({ vendorLabel: e, invoiceNumberLabel: t, addedOnLabel: n }) => `View bill — ${e}, invoice ${t}, added ${n}`,
5
+ reviewGroup: ({ vendorLabel: e, count: t }) => `${e} — ${t} possible duplicate bills`,
6
+ selectGroup: ({ vendorLabel: e }) => `Select every bill from ${e}`,
7
+ deleteBillButton: "Remove this bill",
8
+ deleteConfirmTitle: "Remove duplicate bill?",
9
+ deleteConfirmDescription: "You can't undo this action.",
10
+ deleteConfirmButton: "Remove duplicate bill",
11
+ deleteConfirmBackButton: "Cancel",
12
+ cancelBillButton: "Cancel this bill",
13
+ confirmBillButton: "Confirm duplicate",
14
+ cancelConfirmTitle: "Cancel duplicate bill?",
15
+ cancelConfirmDescription: "You can't undo this action.",
16
+ cancelConfirmButton: "Cancel this bill",
17
+ cancelConfirmBackButton: "Back",
18
+ confirmDuplicateTitle: "Confirm duplicate?",
19
+ confirmDuplicateDescription: "This bill is already cancelled. This records it as a duplicate.",
20
+ notDuplicateAction: "Not a duplicate",
21
+ notDuplicateConfirmTitle: "Mark as not a duplicate?",
22
+ notDuplicateConfirmDescription: "You can't undo this action.",
23
+ notDuplicateConfirmButton: "Not a duplicate",
24
+ notDuplicateConfirmBackButton: "Back",
25
+ deleteAction: "Remove bill",
26
+ cancelAction: "Cancel bill",
27
+ confirmAction: "Confirm duplicate",
28
+ currentBillBadge: "This bill",
29
+ originalBillBadge: "Original bill",
30
+ showMoreRows: (e) => `Show ${e} more`,
31
+ deletedToast: "Duplicate removed",
32
+ cancelledToast: "Duplicate cancelled",
33
+ confirmedToast: "Duplicate confirmed",
34
+ dismissedToast: "Marked as “not a duplicate”.",
35
+ removedToast: "Duplicate removed",
36
+ verdictFailedToast: "Couldn't update this duplicate. Try again.",
37
+ allResolvedToast: "All possible duplicates resolved"
38
+ };
39
+ //#endregion
40
+ export { e as DUPLICATE_BILLS_LABELS_EN };
@@ -0,0 +1,229 @@
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 "../../../../shared/ui/dist/index.js";
9
+ import { derivePayableStatus as r } from "../../../util/dist/lib/derivePayableStatus.js";
10
+ import { DuplicateVerdict as i } from "../../../util/dist/lib/duplicateVerdict.js";
11
+ import { suspectedPayableDuplicates as a } from "../../../util/dist/lib/payableDuplicates.js";
12
+ import { duplicateVerdictMatches as o, groupSuspectedDuplicates as s, resolveDuplicateOriginalId as c } from "../../../util/dist/lib/groupDuplicates.js";
13
+ import { isEditablePayableStatus as l } from "../../../util/dist/lib/isEditablePayableStatus.js";
14
+ import { payableRemoval as u } from "../../../util/dist/lib/payableRemoval.js";
15
+ import { resolveVendorName as d } from "../../../util/dist/lib/resolveVendor.js";
16
+ import { useApplyDuplicateVerdictsMutation as f } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
17
+ import "../../../data-access/dist/index.js";
18
+ import { usePayablesByIdsQueries as p } from "../../data-access/dist/index22.js";
19
+ import "../../data-access/dist/index.js";
20
+ import { duplicateRemovalPrompt as m } from "./index4.js";
21
+ import { DUPLICATE_BILLS_LABELS_EN as h } from "./index5.js";
22
+ import { useCallback as g, useMemo as _, useState as v } from "react";
23
+ import { BanIcon as y, FileCheckIcon as b, Trash2Icon as x } from "lucide-react";
24
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js
25
+ var S = 5;
26
+ function C(e, t) {
27
+ return t ? s(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
28
+ }
29
+ function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labels: D }) {
30
+ let O = _(() => ({
31
+ ...h,
32
+ ...D
33
+ }), [D]), k = a(s), [A] = k, j = s?.id, M = _(() => [...new Set(k.map((e) => e.matched_payable_id))], [k]), N = p(M, { enabled: !!(A && j) }), P = f(), [F, I] = v(!1), [L, R] = v(), [z, B] = v(), V = u(s?.status), H = g(async (t, n, r, i, a) => {
34
+ let s = o(t, n, a);
35
+ if (s.length && t?.id) try {
36
+ await P.mutateAsync({
37
+ verdict: n,
38
+ targets: s.map((e) => ({
39
+ payableId: t.id,
40
+ duplicateId: e.id,
41
+ matchedPayableId: e.matched_payable_id,
42
+ removeBy: u(t.status)
43
+ }))
44
+ }), e.success(r), i?.();
45
+ } catch {
46
+ e.error(O.verdictFailedToast);
47
+ }
48
+ }, [P, O]), U = g((e, t, n) => H(s, e, t, n), [H, s]), W = V === "delete" ? {
49
+ button: O.deleteBillButton,
50
+ title: O.deleteConfirmTitle,
51
+ description: O.deleteConfirmDescription,
52
+ confirmButton: O.deleteConfirmButton,
53
+ backButton: O.deleteConfirmBackButton,
54
+ toast: O.deletedToast
55
+ } : V === "confirm" ? {
56
+ button: O.confirmBillButton,
57
+ title: O.confirmDuplicateTitle,
58
+ description: O.confirmDuplicateDescription,
59
+ confirmButton: O.confirmBillButton,
60
+ backButton: O.cancelConfirmBackButton,
61
+ toast: O.confirmedToast
62
+ } : {
63
+ button: O.cancelBillButton,
64
+ title: O.cancelConfirmTitle,
65
+ description: O.cancelConfirmDescription,
66
+ confirmButton: O.cancelConfirmButton,
67
+ backButton: O.cancelConfirmBackButton,
68
+ toast: O.cancelledToast
69
+ }, G = g(async () => {
70
+ await U(i.Remove, W.toast, T), I(!1);
71
+ }, [
72
+ U,
73
+ T,
74
+ W.toast
75
+ ]), K = _(() => ({
76
+ delete: {
77
+ action: O.deleteAction,
78
+ title: O.deleteConfirmTitle,
79
+ description: O.deleteConfirmDescription,
80
+ confirmButton: O.deleteConfirmButton,
81
+ backButton: O.deleteConfirmBackButton,
82
+ toast: O.deletedToast
83
+ },
84
+ cancel: {
85
+ action: O.cancelAction,
86
+ title: O.cancelConfirmTitle,
87
+ description: O.cancelConfirmDescription,
88
+ confirmButton: O.cancelConfirmButton,
89
+ backButton: O.cancelConfirmBackButton,
90
+ toast: O.cancelledToast
91
+ },
92
+ confirm: {
93
+ action: O.confirmAction,
94
+ title: O.confirmDuplicateTitle,
95
+ description: O.confirmDuplicateDescription,
96
+ confirmButton: O.confirmBillButton,
97
+ backButton: O.cancelConfirmBackButton,
98
+ toast: O.confirmedToast
99
+ }
100
+ }), [O]), q = K[L?.removeBy ?? "cancel"], J = g(async () => {
101
+ L && (await H(L.payable, i.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
102
+ }, [
103
+ H,
104
+ T,
105
+ j,
106
+ L,
107
+ K
108
+ ]), Y = g(async () => {
109
+ z && (await H(z.payable, i.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
110
+ }, [
111
+ H,
112
+ O.dismissedToast,
113
+ z
114
+ ]), X = w && !!(A && j), Z = X && !!V, Q = _(() => {
115
+ let e = new Map(N.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
116
+ s?.id && e.set(s.id, s);
117
+ let i = C([...e.values()], j);
118
+ if (i.length < 2) return [];
119
+ let o = c(i), f = (e) => {
120
+ let t = e.total_amount ?? e.amount_due;
121
+ return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
122
+ };
123
+ return i.map((e) => {
124
+ let n = e.status ? r({
125
+ apiStatus: e.status,
126
+ dueDate: e.due_date,
127
+ scheduledPaymentDate: e.scheduled_payment_date
128
+ }) : void 0, i = e.id === o, s = e.id === j, c = w && a(e).length > 0, p = d(e), m = u(e.status);
129
+ return {
130
+ id: e.id,
131
+ roleLabel: p,
132
+ badges: [...i ? [O.originalBillBadge] : [], ...s ? [O.currentBillBadge] : []],
133
+ invoiceNumberLabel: e.document_id ?? "",
134
+ roleTone: i ? void 0 : "warning",
135
+ amountLabel: f(e),
136
+ addedOnLabel: t(e.created_at?.slice(0, 10)),
137
+ dueDateLabel: t(e.due_date),
138
+ status: n?.status,
139
+ statusTone: n?.tone,
140
+ onOpen: !s && E ? () => E(e.id, l(e.status ?? void 0)) : void 0,
141
+ menu: c ? {
142
+ triggerLabel: O.openRow({
143
+ vendorLabel: p,
144
+ invoiceNumberLabel: "",
145
+ addedOnLabel: t(e.created_at?.slice(0, 10))
146
+ }),
147
+ items: [{
148
+ id: "not-duplicate",
149
+ label: O.notDuplicateAction,
150
+ icon: b,
151
+ disabled: P.isPending,
152
+ onSelect: () => B({
153
+ payable: e,
154
+ originalPayableId: i ? void 0 : o
155
+ })
156
+ }, ...m ? [{
157
+ id: "cancel-duplicate",
158
+ label: K[m].action,
159
+ icon: m === "delete" ? x : y,
160
+ disabled: P.isPending,
161
+ onSelect: () => R({
162
+ payable: e,
163
+ removeBy: m
164
+ })
165
+ }] : []]
166
+ } : void 0
167
+ };
168
+ });
169
+ }, [
170
+ P.isPending,
171
+ w,
172
+ N,
173
+ O,
174
+ E,
175
+ s,
176
+ j,
177
+ K
178
+ ]);
179
+ return {
180
+ isPossibleDuplicate: !!A,
181
+ onNotADuplicate: X ? () => B({ payable: s }) : void 0,
182
+ onRemoveBill: Z ? () => I(!0) : void 0,
183
+ removeBillLabel: Z ? W.button : void 0,
184
+ removeConfirmation: {
185
+ open: F,
186
+ copy: {
187
+ title: W.title,
188
+ description: W.description,
189
+ confirmButton: W.confirmButton,
190
+ presentation: { tone: "destructive" }
191
+ },
192
+ onConfirm: () => void G(),
193
+ onCancel: () => I(!1),
194
+ isPending: P.isPending,
195
+ cancelButtonLabel: W.backButton
196
+ },
197
+ cancelRowConfirmation: {
198
+ open: !!L,
199
+ copy: m(q, L?.removeBy ?? "cancel"),
200
+ onConfirm: () => void J(),
201
+ onCancel: () => R(void 0),
202
+ isPending: P.isPending,
203
+ cancelButtonLabel: q.backButton
204
+ },
205
+ keepRowConfirmation: {
206
+ open: !!z,
207
+ copy: {
208
+ title: O.notDuplicateConfirmTitle,
209
+ description: O.notDuplicateConfirmDescription,
210
+ confirmButton: O.notDuplicateConfirmButton,
211
+ presentation: {
212
+ alignment: "center",
213
+ icon: b,
214
+ actionWidth: "equal"
215
+ }
216
+ },
217
+ onConfirm: () => void Y(),
218
+ onCancel: () => B(void 0),
219
+ isPending: P.isPending,
220
+ cancelButtonLabel: O.notDuplicateConfirmBackButton
221
+ },
222
+ isBusy: P.isPending,
223
+ rows: Q,
224
+ collapsedRowCount: S,
225
+ showMoreLabel: Q.length > S ? O.showMoreRows(Q.length - S) : void 0
226
+ };
227
+ }
228
+ //#endregion
229
+ export { w as usePayableDuplicateReview };
@@ -0,0 +1,87 @@
1
+ import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
2
+ import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
3
+ import "../../../../shared/data-access/dist/index.js";
4
+ import { isEditablePayableStatus as n } from "../../../util/dist/lib/isEditablePayableStatus.js";
5
+ import { BanIcon as r, CalendarXIcon as i, RotateCcwIcon as a, ThumbsDownIcon as o, ThumbsUpIcon as s } from "lucide-react";
6
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js
7
+ function c(n) {
8
+ return e(n, [t.CounterpartReadOrg]);
9
+ }
10
+ function l({ status: n, scopes: r, arePendingApproversUnknown: i, hasApprovalPolicy: a = !0, hasWaitingRequest: o }) {
11
+ let s = e(r, [t.PayableApproveOrg]);
12
+ return !!(n === "approve_in_progress" && s);
13
+ }
14
+ function u({ status: u, scopes: d, canDecideApprovalRequest: f, hasScheduledPayment: p, scheduledPaymentIntentId: m, arePendingApproversUnknown: h, hasApprovalPolicy: g, hasWaitingRequest: _, isPayabilityUnknown: v, canEdit: y, labels: b }) {
15
+ let x = e(d, [t.PayablePayOrg]), S = e(d, [t.BankAccountReadOrg]), C = c(d), w = e(d, [t.PaymentRailAch]), T = e(d, [t.PayableWriteOrg]), E = x, D = [];
16
+ if (y && n(u) && T && D.push({
17
+ id: "edit",
18
+ label: b.edit,
19
+ variant: "default",
20
+ surface: "row"
21
+ }), u === "approve_in_progress" && f && (D.push({
22
+ id: "approve",
23
+ label: b.approve,
24
+ variant: "default",
25
+ surface: "row"
26
+ }), D.push({
27
+ id: "reject",
28
+ label: b.reject,
29
+ variant: "ghost",
30
+ surface: "row"
31
+ })), l({
32
+ status: u,
33
+ scopes: d,
34
+ arePendingApproversUnknown: h,
35
+ hasApprovalPolicy: g,
36
+ hasWaitingRequest: _
37
+ })) {
38
+ let e = g === !1 ? void 0 : b.policyOverridesHeading;
39
+ D.push({
40
+ id: "forceApprove",
41
+ label: b.forceApprove,
42
+ variant: "ghost",
43
+ surface: "menu",
44
+ icon: s,
45
+ sectionHeading: e
46
+ }), D.push({
47
+ id: "forceReject",
48
+ label: b.forceReject,
49
+ variant: "ghost",
50
+ surface: "menu",
51
+ icon: o,
52
+ sectionHeading: e
53
+ });
54
+ }
55
+ let O = u === "waiting_to_be_paid" && x && !p, k = u === "waiting_to_be_paid" && x && S && C && w && !p && !v;
56
+ return O && D.push({
57
+ id: "markAsPaid",
58
+ label: b.markAsPaid,
59
+ variant: "outline",
60
+ surface: "row"
61
+ }), k && D.push({
62
+ id: "payBill",
63
+ label: b.payBill,
64
+ variant: "default",
65
+ surface: "row"
66
+ }), u === "new" && T && D.push({
67
+ id: "cancel",
68
+ label: b.cancel,
69
+ variant: "ghost",
70
+ surface: "menu",
71
+ icon: r
72
+ }), (u === "rejected" || u === "waiting_to_be_paid" && !p) && T && D.push({
73
+ id: "reopen",
74
+ label: b.reopen,
75
+ variant: "ghost",
76
+ surface: "menu",
77
+ icon: a
78
+ }), u === "waiting_to_be_paid" && p && m && E && D.push({
79
+ id: "cancelScheduledPayment",
80
+ label: b.cancelScheduledPayment,
81
+ variant: "ghost",
82
+ surface: "menu",
83
+ icon: i
84
+ }), D;
85
+ }
86
+ //#endregion
87
+ export { l as canOverrideApprovalPolicy, c as canReadCounterpartBankAccounts, u as getBillDetailActions };