@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,227 +2,117 @@
2
2
  "use client";
3
3
  "use client";
4
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 { usePayablesByIdsQueries as p } from "../../data-access/dist/lib/usePayablesQueries/usePayablesByIdsQueries.js";
18
- import "../../data-access/dist/index.js";
19
- import { duplicateRemovalPrompt as m } from "./index4.js";
20
- import { DUPLICATE_BILLS_LABELS_EN as h } from "./index5.js";
21
- import { useCallback as g, useMemo as _, useState as v } from "react";
22
- import { BanIcon as y, FileCheckIcon as b, Trash2Icon as x } from "lucide-react";
5
+ import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
+ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
+ import "../../../shared/data-access/dist/index.js";
8
+ import { useWidgetConfig as n } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
+ import "../../../shared/feature/dist/index.js";
10
+ import { billsTabTestIds as r } from "./index5.js";
11
+ import { BillCreateWidget as i, BillDetailsWidget as a } from "../../bill-detail/feature/dist/index41.js";
12
+ import "../../bill-detail/feature/dist/index.js";
13
+ import "../../bill-upload/feature/dist/index.js";
14
+ import { BillsListWidget as o } from "../../bills-list/feature/dist/index20.js";
15
+ import "../../bills-list/feature/dist/index.js";
16
+ import { PayBillWidget as s } from "../../pay-bill/feature/dist/index14.js";
17
+ import "../../pay-bill/feature/dist/index.js";
18
+ import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
19
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
23
20
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js
24
- var S = 5;
25
- function C(e, t) {
26
- return t ? s(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
27
- }
28
- function w({ payable: s, canManage: w = !0, onRemoved: T, onOpenPayable: E, labels: D }) {
29
- let O = _(() => ({
30
- ...h,
31
- ...D
32
- }), [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) => {
33
- let s = o(t, n, a);
34
- if (s.length && t?.id) try {
35
- await P.mutateAsync({
36
- verdict: n,
37
- targets: s.map((e) => ({
38
- payableId: t.id,
39
- duplicateId: e.id,
40
- matchedPayableId: e.matched_payable_id,
41
- removeBy: u(t.status)
42
- }))
43
- }), e.success(r), i?.();
44
- } catch {
45
- e.error(O.verdictFailedToast);
46
- }
47
- }, [P, O]), U = g((e, t, n) => H(s, e, t, n), [H, s]), W = V === "delete" ? {
48
- button: O.deleteBillButton,
49
- title: O.deleteConfirmTitle,
50
- description: O.deleteConfirmDescription,
51
- confirmButton: O.deleteConfirmButton,
52
- backButton: O.deleteConfirmBackButton,
53
- toast: O.deletedToast
54
- } : V === "confirm" ? {
55
- button: O.confirmBillButton,
56
- title: O.confirmDuplicateTitle,
57
- description: O.confirmDuplicateDescription,
58
- confirmButton: O.confirmBillButton,
59
- backButton: O.cancelConfirmBackButton,
60
- toast: O.confirmedToast
61
- } : {
62
- button: O.cancelBillButton,
63
- title: O.cancelConfirmTitle,
64
- description: O.cancelConfirmDescription,
65
- confirmButton: O.cancelConfirmButton,
66
- backButton: O.cancelConfirmBackButton,
67
- toast: O.cancelledToast
68
- }, G = g(async () => {
69
- await U(i.Remove, W.toast, T), I(!1);
70
- }, [
71
- U,
72
- T,
73
- W.toast
74
- ]), K = _(() => ({
75
- delete: {
76
- action: O.deleteAction,
77
- title: O.deleteConfirmTitle,
78
- description: O.deleteConfirmDescription,
79
- confirmButton: O.deleteConfirmButton,
80
- backButton: O.deleteConfirmBackButton,
81
- toast: O.deletedToast
82
- },
83
- cancel: {
84
- action: O.cancelAction,
85
- title: O.cancelConfirmTitle,
86
- description: O.cancelConfirmDescription,
87
- confirmButton: O.cancelConfirmButton,
88
- backButton: O.cancelConfirmBackButton,
89
- toast: O.cancelledToast
90
- },
91
- confirm: {
92
- action: O.confirmAction,
93
- title: O.confirmDuplicateTitle,
94
- description: O.confirmDuplicateDescription,
95
- confirmButton: O.confirmBillButton,
96
- backButton: O.cancelConfirmBackButton,
97
- toast: O.confirmedToast
98
- }
99
- }), [O]), q = K[L?.removeBy ?? "cancel"], J = g(async () => {
100
- L && (await H(L.payable, i.Remove, K[L.removeBy].toast, L.payable.id === j ? T : void 0), R(void 0));
101
- }, [
102
- H,
103
- T,
104
- j,
105
- L,
106
- K
107
- ]), Y = g(async () => {
108
- z && (await H(z.payable, i.Keep, O.dismissedToast, void 0, z.originalPayableId), B(void 0));
109
- }, [
110
- H,
111
- O.dismissedToast,
112
- z
113
- ]), X = w && !!(A && j), Z = X && !!V, Q = _(() => {
114
- let e = new Map(N.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
115
- s?.id && e.set(s.id, s);
116
- let i = C([...e.values()], j);
117
- if (i.length < 2) return [];
118
- let o = c(i), f = (e) => {
119
- let t = e.total_amount ?? e.amount_due;
120
- return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
121
- };
122
- return i.map((e) => {
123
- let n = e.status ? r({
124
- apiStatus: e.status,
125
- dueDate: e.due_date,
126
- scheduledPaymentDate: e.scheduled_payment_date
127
- }) : void 0, i = e.id === o, s = e.id === j, c = w && a(e).length > 0, p = d(e), m = u(e.status);
128
- return {
129
- id: e.id,
130
- roleLabel: p,
131
- badges: [...i ? [O.originalBillBadge] : [], ...s ? [O.currentBillBadge] : []],
132
- invoiceNumberLabel: e.document_id ?? "",
133
- roleTone: i ? void 0 : "warning",
134
- amountLabel: f(e),
135
- addedOnLabel: t(e.created_at?.slice(0, 10)),
136
- dueDateLabel: t(e.due_date),
137
- status: n?.status,
138
- statusTone: n?.tone,
139
- onOpen: !s && E ? () => E(e.id, l(e.status ?? void 0)) : void 0,
140
- menu: c ? {
141
- triggerLabel: O.openRow({
142
- vendorLabel: p,
143
- invoiceNumberLabel: "",
144
- addedOnLabel: t(e.created_at?.slice(0, 10))
145
- }),
146
- items: [{
147
- id: "not-duplicate",
148
- label: O.notDuplicateAction,
149
- icon: b,
150
- disabled: P.isPending,
151
- onSelect: () => B({
152
- payable: e,
153
- originalPayableId: i ? void 0 : o
154
- })
155
- }, ...m ? [{
156
- id: "cancel-duplicate",
157
- label: K[m].action,
158
- icon: m === "delete" ? x : y,
159
- disabled: P.isPending,
160
- onSelect: () => R({
161
- payable: e,
162
- removeBy: m
163
- })
164
- }] : []]
165
- } : void 0
166
- };
21
+ function h({ labels: h, onEnqueueFiles: g, openPayableId: _, onOpenPayableHandled: v, vendorIntent: y, onVendorIntentHandled: b, poweredByBankName: x, onSettingsClick: S }) {
22
+ let C = d(null), [w, T] = f(), [E, D] = f(), [O, k] = f(!1), [A, j] = f(), [M, N] = f(!1), [P, F] = f(!1), [I, L] = f(null), R = !I || {
23
+ create: O,
24
+ details: M,
25
+ view: P
26
+ }[I.surface];
27
+ l(() => {
28
+ R || L(null);
29
+ }, [R]);
30
+ let z = u(() => {
31
+ let e = (e) => (t) => /* @__PURE__ */ p(s, {
32
+ ...t,
33
+ poweredByBankName: x,
34
+ openFlow: I?.surface === e ? I.flow : null,
35
+ onOpenFlowChange: (t) => L(t ? {
36
+ surface: e,
37
+ flow: t
38
+ } : null)
167
39
  });
40
+ return {
41
+ create: e("create"),
42
+ details: e("details"),
43
+ view: e("view")
44
+ };
45
+ }, [I, x]), { initResponse: B } = n(), V = !B || e(B.scopes, [t.PayableWriteOrg]), H = c((e, t) => {
46
+ if (t && V) {
47
+ T(e), D(void 0), k(!0);
48
+ return;
49
+ }
50
+ j(e), F(!0);
51
+ }, [V]), U = (e, t) => {
52
+ k(!1), F(!1), H(e, t);
53
+ }, W = () => {
54
+ N(!1), F(!0);
55
+ }, G = () => {
56
+ F(!1), N(!0);
57
+ }, K = () => {
58
+ N(!1), F(!1), T(A), D(void 0), k(!0);
59
+ }, q = c((e) => {
60
+ T(void 0), D(e), k(!0);
61
+ }, []);
62
+ return l(() => {
63
+ _ && (T(_), D(void 0), k(!0), v?.());
64
+ }, [v, _]), l(() => {
65
+ y && (y.action === "createBill" ? V && q(y.vendorId) : C.current?.showVendorBills({
66
+ id: y.vendorId,
67
+ name: y.vendorName
68
+ }), b?.());
168
69
  }, [
169
- P.isPending,
170
- w,
171
- N,
172
- O,
173
- E,
174
- s,
175
- j,
176
- K
177
- ]);
178
- return {
179
- isPossibleDuplicate: !!A,
180
- onNotADuplicate: X ? () => B({ payable: s }) : void 0,
181
- onRemoveBill: Z ? () => I(!0) : void 0,
182
- removeBillLabel: Z ? W.button : void 0,
183
- removeConfirmation: {
184
- open: F,
185
- copy: {
186
- title: W.title,
187
- description: W.description,
188
- confirmButton: W.confirmButton,
189
- presentation: { tone: "destructive" }
190
- },
191
- onConfirm: () => void G(),
192
- onCancel: () => I(!1),
193
- isPending: P.isPending,
194
- cancelButtonLabel: W.backButton
195
- },
196
- cancelRowConfirmation: {
197
- open: !!L,
198
- copy: m(q, L?.removeBy ?? "cancel"),
199
- onConfirm: () => void J(),
200
- onCancel: () => R(void 0),
201
- isPending: P.isPending,
202
- cancelButtonLabel: q.backButton
203
- },
204
- keepRowConfirmation: {
205
- open: !!z,
206
- copy: {
207
- title: O.notDuplicateConfirmTitle,
208
- description: O.notDuplicateConfirmDescription,
209
- confirmButton: O.notDuplicateConfirmButton,
210
- presentation: {
211
- alignment: "center",
212
- icon: b,
213
- actionWidth: "equal"
214
- }
215
- },
216
- onConfirm: () => void Y(),
217
- onCancel: () => B(void 0),
218
- isPending: P.isPending,
219
- cancelButtonLabel: O.notDuplicateConfirmBackButton
220
- },
221
- isBusy: P.isPending,
222
- rows: Q,
223
- collapsedRowCount: S,
224
- showMoreLabel: Q.length > S ? O.showMoreRows(Q.length - S) : void 0
225
- };
70
+ V,
71
+ b,
72
+ q,
73
+ y
74
+ ]), /* @__PURE__ */ m("div", {
75
+ "data-testid": r.root,
76
+ children: [
77
+ /* @__PURE__ */ p(o, {
78
+ ref: C,
79
+ labels: h,
80
+ onOpenBill: H,
81
+ onEnterManually: () => q(),
82
+ onFilesSelected: g,
83
+ maxFiles: 10,
84
+ onSettingsClick: S
85
+ }),
86
+ O ? /* @__PURE__ */ p(i, {
87
+ open: O,
88
+ onOpenChange: k,
89
+ payableId: w,
90
+ initialCounterpartId: E,
91
+ onOpenBill: U,
92
+ renderPaymentFlows: z.create
93
+ }, w) : null,
94
+ M ? /* @__PURE__ */ p(a, {
95
+ open: M,
96
+ onOpenChange: N,
97
+ payableId: A,
98
+ onClose: () => N(!1),
99
+ onExpand: W,
100
+ onEdit: K,
101
+ testId: r.detailsSheet,
102
+ renderPaymentFlows: z.details
103
+ }) : null,
104
+ P ? /* @__PURE__ */ p(i, {
105
+ open: P,
106
+ onOpenChange: F,
107
+ payableId: A,
108
+ readOnly: !0,
109
+ onCollapse: G,
110
+ onEdit: K,
111
+ onOpenBill: U,
112
+ renderPaymentFlows: z.view
113
+ }, A) : null
114
+ ]
115
+ });
226
116
  }
227
117
  //#endregion
228
- export { w as usePayableDuplicateReview };
118
+ export { h as BillsTab, h as default };
@@ -1,87 +1,7 @@
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
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/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
- }
2
+ var e = {
3
+ bills: "Bills",
4
+ vendors: "Vendors"
5
+ };
86
6
  //#endregion
87
- export { l as canOverrideApprovalPolicy, c as canReadCounterpartBankAccounts, u as getBillDetailActions };
7
+ export { e as DEFAULT_TABS_LABELS };
@@ -1,50 +1,107 @@
1
- import { ApprovalPoliciesSettingsDefaultLabels as e } from "../../../shared/approval-policy/feature/dist/lib/labels.js";
2
- import { parseApprovalPolicyScript as t } from "../../../shared/approval-policy/util/dist/lib/policyScript.js";
3
- import { parseApprovalPolicyTrigger as n } from "../../../shared/approval-policy/util/dist/lib/policyTrigger.js";
4
- import { buildPolicySentence as r, buildPolicyTitle as i } from "../../../shared/approval-policy/feature/dist/lib/policyViewModel.js";
5
- import "../../../shared/approval-policy/feature/dist/index.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
6
+ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
7
+ import "../../../shared/data-access/dist/index.js";
8
+ import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
9
+ import "../../../shared/ui/dist/index.js";
10
+ import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
11
+ import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
12
+ import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
13
+ import "../../../shared/feature/dist/index.js";
14
+ import { BillPayWidgetAnalyticsEvent as o, WIDGET_NAME as s } from "./index2.js";
15
+ import { BillPayWidgetUi as c } from "../../ui/dist/index13.js";
16
+ import "../../ui/dist/index.js";
17
+ import { BillUploadWidget as l } from "../../bill-upload/feature/dist/index8.js";
18
+ import "../../bill-upload/feature/dist/index.js";
19
+ import { BillsTab as u } from "./index6.js";
20
+ import { DEFAULT_TABS_LABELS as d } from "./index7.js";
21
+ import { CounterpartsWidget as f } from "../../../counterparts-widget/feature/dist/index8.js";
22
+ import "../../../counterparts-widget/feature/dist/index.js";
23
+ import { useCallback as p, useEffect as m, useRef as h, useState as g } from "react";
24
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
6
25
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js
7
- var a = {
8
- ruleTitleRange: e.ruleTitleRange,
9
- ruleTitleUpTo: e.ruleTitleUpTo,
10
- ruleTitleFrom: e.ruleTitleFrom,
11
- ruleTitleAny: e.ruleTitleAny,
12
- ruleSentenceRange: e.ruleSentenceRange,
13
- ruleSentenceUpTo: e.ruleSentenceUpTo,
14
- ruleSentenceFrom: e.ruleSentenceFrom,
15
- ruleSentenceAny: e.ruleSentenceAny
16
- };
17
- function o({ policy: a, lookup: o, approvedUserIds: s, approvedRoleIds: c, copy: l }) {
18
- let u = t(a.script);
19
- if (!u.groups.length || !u.isSupported) return;
20
- let d = [];
21
- for (let [e, t] of u.groups.entries()) {
22
- let n = [];
23
- for (let e of [...t.roleIds, ...t.userIds]) {
24
- let t = o.get(e);
25
- t && n.push({
26
- id: e,
27
- label: t.label,
28
- approved: t.kind === "user" ? s.has(e) : !!c?.has(e)
29
- });
30
- }
31
- n.length && d.push({
32
- id: `group-${e + 1}`,
33
- chips: n
34
- });
35
- }
36
- if (!d.length) return;
37
- let { condition: f, hasKnownAmountBounds: p } = n(a.trigger);
38
- if (!p) return;
39
- let m = {
40
- ...e,
41
- ...l
42
- };
43
- return {
44
- title: i(f, m),
45
- sentence: r(f, m),
46
- steps: d
47
- };
26
+ var b = {
27
+ Bills: "bills",
28
+ Vendors: "vendors"
29
+ }, x = [b.Bills, b.Vendors];
30
+ function S({ labels: i, initialTab: s = b.Bills, tabsLabels: S, vendorLabels: C, poweredByBankName: w, onSettingsClick: T }) {
31
+ let E = r();
32
+ m(() => {
33
+ E(o.Mounted);
34
+ }, [E]);
35
+ let D = {
36
+ ...d,
37
+ ...S
38
+ }, { initResponse: O } = a(), k = e(O?.scopes, [t.PayableReadOrg]), A = e(O?.scopes, [t.PayableWriteOrg]), j = e(O?.scopes, [t.ApprovalPolicyWriteOrg]) && e(O?.scopes, [t.PayableWriteOrg]) && e(O?.scopes, [t.RoleReadOrg]) && e(O?.scopes, [t.UserReadOrg]), [M, N] = g(s), [P, F] = g(), I = p((e) => {
39
+ N(b.Bills), F(e);
40
+ }, []), L = h(null), R = p((e) => L.current?.enqueue(e), []), [z, B] = g(), V = p((e) => {
41
+ N(b.Bills), B(e);
42
+ }, []), H = [{
43
+ id: b.Bills,
44
+ label: D.bills,
45
+ content: /* @__PURE__ */ v(u, {
46
+ onEnqueueFiles: R,
47
+ openPayableId: P,
48
+ onOpenPayableHandled: () => F(void 0),
49
+ vendorIntent: z,
50
+ onVendorIntentHandled: () => B(void 0),
51
+ poweredByBankName: w,
52
+ onSettingsClick: T && j ? T : void 0
53
+ })
54
+ }, {
55
+ id: b.Vendors,
56
+ label: D.vendors,
57
+ content: /* @__PURE__ */ v(f, {
58
+ ...C,
59
+ counterpartType: "vendor",
60
+ passThrough: !0,
61
+ onViewAllDocuments: k ? (e) => V({
62
+ vendorId: e.id,
63
+ vendorName: e.name,
64
+ action: "viewBills"
65
+ }) : void 0,
66
+ onCreateDocument: A ? (e) => V({
67
+ vendorId: e.id,
68
+ vendorName: e.name,
69
+ action: "createBill"
70
+ }) : void 0
71
+ })
72
+ }], U = H.some((e) => e.id === M) ? M : x.find((e) => H.some((t) => t.id === e)) ?? H[0]?.id ?? "";
73
+ return /* @__PURE__ */ y(_, { children: [
74
+ /* @__PURE__ */ v(n, {}),
75
+ /* @__PURE__ */ v(c, {
76
+ labels: i,
77
+ tabs: H,
78
+ selectedTabId: U,
79
+ onTabChange: N
80
+ }),
81
+ /* @__PURE__ */ v(l, {
82
+ ref: L,
83
+ onOpenBill: I
84
+ })
85
+ ] });
86
+ }
87
+ function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
88
+ return /* @__PURE__ */ v(i, {
89
+ widgetName: s,
90
+ baseUrl: e,
91
+ widgetToken: t,
92
+ organizationId: n,
93
+ configClient: r,
94
+ gatewayRouting: a,
95
+ linkComponent: o,
96
+ implementation: c,
97
+ uiFramework: l,
98
+ errorFallback: u,
99
+ onError: d,
100
+ analytics: f,
101
+ disclosuresAcceptance: p,
102
+ providerLabels: m,
103
+ children: /* @__PURE__ */ v(S, { ...h })
104
+ });
48
105
  }
49
106
  //#endregion
50
- export { a as APPROVAL_POLICY_RULE_COPY_EN, o as buildApprovalPolicyCardView };
107
+ export { C as BillPayWidgetNative, C as default };
@@ -1,16 +1 @@
1
- import { currentApprovalRound as e } from "./index3.js";
2
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js
3
- function t({ requestsNewestFirst: t, roundStartedAt: n, lookup: r }) {
4
- let i = e(t, n), a = [];
5
- for (let e of i) {
6
- if (e.status !== "waiting") continue;
7
- let t = [...e.role_ids ?? [], ...e.user_ids ?? []].map((e) => r.get(e)?.label).filter((e) => !!e);
8
- t.length && a.push({
9
- id: e.id,
10
- names: t
11
- });
12
- }
13
- return a;
14
- }
15
- //#endregion
16
- export { t as buildPendingApproverGroups };
1
+ import "./index8.js";
@@ -1,4 +1,4 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index92.js";
1
+ import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index26.js";
2
2
  import "../../../ui/dist/index.js";
3
3
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
4
4
  var t = {
@@ -1,5 +1,5 @@
1
1
  import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RevealableField as c } from "../../../ui/dist/index93.js";
2
+ import { RevealableField as c } from "../../../ui/dist/index27.js";
3
3
  import "../../../ui/dist/index.js";
4
4
  import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index5.js";
5
5
  import { jsx as u, jsxs as d } from "react/jsx-runtime";