@tesouro/embedded-components-react 0.5.213 → 0.5.215

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 (278) hide show
  1. package/dist/index.d.ts +88 -1
  2. package/dist/index.js +2 -2
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +88 -1
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/shared/util-validation/dist/index5.js +7 -0
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index.js +3 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index38.js → bill-upload/data-access/dist/index2.js} +7 -6
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index3.js +33 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index35.js → bill-upload/data-access/dist/index4.js} +6 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index.js +7 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index2.js +8 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index3.js +13 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +133 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index5.js +3 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js +5 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index7.js +4 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +56 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index9.js +1 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index.js +4 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index2.js +10 -0
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +9 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +93 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index6.js +2 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +29 -33
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +11 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index6.js → lib/invalidatePayableQueries/approvalDecisionQueries.js} +8 -8
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index7.js → lib/invalidatePayableQueries/approvalRequestWatch.js} +5 -5
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index3.js → lib/invalidatePayableQueries/cleanUpDeletedPayableQueries.js} +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index9.js → lib/invalidatePayableQueries/hasLiveScheduledRecord.js} +5 -5
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/index.js +6 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index8.js → lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js} +5 -5
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index4.js → lib/invalidatePayableQueries/invalidatePayableQueries.js} +5 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index5.js → lib/invalidatePayableQueries/payableProjectionPolling.js} +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index10.js → lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js} +7 -7
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index12.js → lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js} +3 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index13.js → lib/payableOcrQueryOptions.js} +4 -4
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index40.js → lib/payablePolicyAssignmentQueryOptions.js} +4 -4
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index2.js → lib/queryKeys.js} +4 -4
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index21.js → lib/useApplyDuplicateVerdictsMutation.js} +23 -25
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index16.js → lib/usePayableApprovalRequests.js} +11 -11
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index17.js → lib/usePayableHistoryQuery.js} +6 -6
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index18.js → lib/usePayableLineItems.js} +10 -10
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +12 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index22.js → lib/usePayableMutations/useAttachPayableFileMutation.js} +7 -7
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index23.js → lib/usePayableMutations/useCancelPayableMutation.js} +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +40 -0
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +34 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +34 -0
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +34 -0
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index28.js → lib/usePayableMutations/useForceApprovePayableMutation.js} +7 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index29.js → lib/usePayableMutations/useForceRejectPayableMutation.js} +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index32.js → lib/usePayableMutations/useReopenPayableMutation.js} +7 -7
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index33.js → lib/usePayableMutations/useSubmitPayableForApprovalMutation.js} +9 -9
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index34.js → lib/usePayableMutations/useUpdatePayableMutation.js} +7 -7
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index36.js → lib/usePayableMutations/useValidatePayableMutation.js} +5 -5
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index19.js → lib/usePayablePaymentRecordsQuery.js} +8 -8
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index47.js → lib/usePayableSuggestionsQuery.js} +7 -7
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +6 -0
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index39.js → lib/usePayablesQueries/useFirstPayablesPagesQuery.js} +8 -8
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index41.js → lib/usePayablesQueries/usePayableQuery.js} +8 -8
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index42.js → lib/usePayablesQueries/usePayablesByIdsQueries.js} +6 -6
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index43.js → lib/usePayablesQueries/usePayablesCountQueries.js} +7 -7
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index44.js → lib/usePayablesQueries/usePayablesQuery.js} +7 -7
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +29 -0
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -23
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +11 -5
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +12 -13
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +66 -23
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +9 -62
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +29 -2
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +160 -82
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +26 -5
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +22 -31
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +38 -35
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +92 -164
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +82 -45
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +6 -1
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +44 -47
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +112 -12
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +184 -8
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +72 -9
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +31 -65
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +89 -10
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +401 -15
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +12 -161
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +83 -24
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +79 -22
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +222 -30
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +38 -93
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +247 -79
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +23 -4
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +612 -45
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -116
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +27 -179
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +232 -70
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +15 -38
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +3 -35
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -90
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +36 -405
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -16
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +23 -83
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -80
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +124 -228
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -43
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +6 -251
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +81 -22
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +38 -6
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +20 -625
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +22 -4
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +28 -42
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +82 -256
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +50 -3
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +260 -3
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +27 -38
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +396 -1
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +332 -6
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -13
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +217 -16
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -130
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +107 -2
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -6
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +24 -129
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +84 -14
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +46 -37
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +12 -223
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index.js +4 -0
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index30.js → pay-bill/data-access/dist/index2.js} +7 -7
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index3.js +7 -0
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index11.js → pay-bill/data-access/dist/index4.js} +5 -4
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index20.js → pay-bill/data-access/dist/index5.js} +8 -8
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index.js +3 -0
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +179 -0
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +51 -0
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index12.js +1 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js +5 -0
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +73 -0
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index15.js +1 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +18 -0
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index3.js +26 -0
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +72 -0
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index5.js +2 -0
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index6.js +9 -0
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index7.js +7 -0
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +35 -0
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +41 -0
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +10 -0
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index108.js → pay-bill/ui/dist/index10.js} +4 -4
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +2 -0
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index103.js → pay-bill/ui/dist/index2.js} +2 -2
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index104.js → pay-bill/ui/dist/index3.js} +3 -3
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +2 -0
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +13 -0
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index101.js → pay-bill/ui/dist/index6.js} +5 -5
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +2 -0
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index106.js → pay-bill/ui/dist/index8.js} +2 -2
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index107.js → pay-bill/ui/dist/index9.js} +1 -1
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -22
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -12
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -6
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +28 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -93
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -0
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +34 -2
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -7
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +12 -28
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -7
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -32
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/duplicateVerdict.js +7 -0
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupDuplicates.js +40 -0
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableRemoval.js +8 -0
  174. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +7 -7
  175. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
  176. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
  177. package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget/data-access/dist/index31.js → invoicing-widget/data-access/dist/index12.js} +0 -2
  178. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
  179. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
  180. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
  181. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
  182. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
  183. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  184. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
  185. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
  186. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
  187. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
  188. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
  189. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
  190. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
  191. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
  192. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
  193. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
  194. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
  195. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
  196. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
  197. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
  198. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
  199. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
  200. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
  201. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
  202. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
  203. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
  204. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
  205. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
  206. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
  207. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
  208. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
  209. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
  210. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
  211. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
  212. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
  213. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
  214. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
  215. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
  216. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
  217. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
  218. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
  219. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
  220. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
  221. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
  222. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
  223. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
  224. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
  225. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
  226. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
  227. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
  228. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
  229. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
  230. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
  231. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
  232. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
  233. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
  234. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
  235. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
  236. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
  237. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
  238. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
  239. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
  240. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  241. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  242. package/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
  243. package/package.json +1 -1
  244. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +0 -32
  245. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +0 -8
  246. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +0 -40
  247. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +0 -34
  248. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +0 -34
  249. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +0 -34
  250. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +0 -15
  251. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +0 -29
  252. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +0 -6
  253. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -11
  254. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +0 -10
  255. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +0 -84
  256. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
  257. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +0 -22
  258. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +0 -31
  259. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +0 -86
  260. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +0 -50
  261. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +0 -262
  262. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +0 -35
  263. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +0 -395
  264. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +0 -310
  265. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +0 -4
  266. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +0 -7
  267. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +0 -114
  268. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +0 -1
  269. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +0 -27
  270. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +0 -2
  271. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +0 -2
  272. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +0 -2
  273. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +0 -14
  274. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +0 -108
  275. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  276. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  277. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  278. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,194 +1,42 @@
1
- import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s, mergePaymentHistoryMethodLabels as c } from "../../util/dist/lib/billDetailLabels.js";
2
- import { ACH_FIELD_GROUP_LABELS_EN as l } from "../../../shared/counterpart-management/ui/dist/index2.js";
3
- import "../../../shared/counterpart-management/ui/dist/index.js";
4
- import { DISCARD_CHANGES_DIALOG_LABELS_EN as u } from "../../ui/dist/index64.js";
5
- import { BILL_REJECTED_BANNER_LABELS_EN as d } from "../../ui/dist/index72.js";
6
- import { UNSAVED_BILL_DIALOG_LABELS_EN as f } from "../../ui/dist/index113.js";
1
+ import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o } from "../../util/dist/lib/billDetailLabels.js";
2
+ import { APPROVAL_POLICY_RULE_COPY_EN as s } from "./index8.js";
3
+ import { PAYABLE_AUDIT_HISTORY_LABELS_EN as c } from "./index22.js";
4
+ import { BILL_DETAILS_SHEET_LABELS_EN as l } from "../../ui/dist/index61.js";
7
5
  import "../../ui/dist/index.js";
8
- import { PAY_BILL_FLOW_LABELS_EN as p, mergePayBillFlowLabels as m } from "./index18.js";
9
- import { MARK_AS_PAID_FLOW_LABELS_EN as h, mergeMarkAsPaidFlowLabels as g } from "./index11.js";
10
- import "./index14.js";
11
- import { APPROVAL_POLICY_RULE_COPY_EN as _ } from "./index22.js";
12
- import { PAYABLE_AUDIT_HISTORY_LABELS_EN as v } from "./index36.js";
13
- import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as y } from "./index37.js";
14
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js
15
- var b = {
16
- unmappedValidationError: (e, t) => `${e}: ${t}`,
17
- unknownValidationField: "(unknown field)",
18
- requiredField: "This field is required.",
19
- saveFailed: "We could not save this bill. Try again.",
20
- discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
21
- vendorResolutionFailed: "We couldn't create this vendor automatically. Select or add a vendor before submitting.",
22
- finalizeFailed: "We could not submit this bill. Try again.",
23
- draftSaved: "Bill saved as a draft.",
24
- submittedSaved: "Bill updated.",
25
- submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
26
- billFinalized: "Bill submitted for approval.",
27
- numbersOnly: "Enter numbers only.",
28
- unreadableMoney: "Enter a valid amount.",
29
- unusableQuantity: "Enter a quantity greater than 0.",
30
- lineItemsNeedAttention: "Check the highlighted line items before saving.",
31
- unreadableDiscount: "Enter a valid discount amount.",
32
- unreadableTax: "Enter a valid tax amount.",
33
- unreadableTotal: "Enter a valid total amount.",
34
- totalNotGreaterThanZero: "Total amount must be greater than $0.",
35
- poNumberTooLong: "PO number must be 255 characters or fewer.",
36
- implausibleInvoiceDate: "Enter an invoice date within the last 10 years, no more than 30 days from today.",
37
- implausibleDueDate: "Enter a due date within the last 10 years and next 5 years.",
38
- dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
39
- }, x = {
40
- paymentInstructionsValue: (e) => `Account ending in ${e}`,
41
- noMethod: "No payment method on file",
42
- paymentMethodLoading: "Loading payment method...",
43
- paymentMethodUnavailable: "We could not load payment methods. Try again.",
44
- searchFailed: "We could not load vendors. Try again.",
45
- vendorDetailsFailed: "We could not load this vendor. Try again.",
46
- pendingVendorDescription: "Will be created when submitted",
47
- bankAccountSaveFailed: "We could not save these payment instructions. Try again."
48
- }, S = {
49
- attachFailed: "We could not attach that file. Try again.",
50
- deleteFailed: "We could not remove that document. Try again.",
51
- noDocument: "No document attached to this bill.",
52
- pendingDeletionNotice: "This document will be removed when you save this bill.",
53
- preview: y
54
- }, C = {
7
+ var u = {
8
+ subtitle: "Accounts payable",
9
+ vendorRow: "Vendor",
10
+ bankAccountRow: "ACH bank account",
11
+ bankAccountValue: (e) => `Account ending in ${e}`,
55
12
  ...r,
56
- notProvided: "Not provided",
57
- paymentInstructionsValue: (e) => `Account ending in ${e}`,
58
- paymentInstructionsNotSet: "Not set",
59
- invoiceDateRow: "Invoice date",
13
+ invoiceNumberRow: "Number",
14
+ issueDateRow: "Issue date",
60
15
  dueDateRow: "Due date",
61
- invoiceNumberRow: "Invoice number",
16
+ poNumberRow: "PO number",
17
+ notProvided: "Not provided",
62
18
  glCodeMissing: "GL code not specified",
63
- glCodeUnavailable: "GL code unavailable",
64
- qtyPriceValue: (e, t) => `${e} x ${t}`,
65
- qtyOnlyValue: (e) => e,
19
+ quantityValue: (e, t) => `${e} x ${t}`,
20
+ quantityOnlyValue: (e) => e,
66
21
  subtotalRow: "Subtotal",
22
+ discountsRow: "Discounts",
67
23
  taxRow: "Tax",
68
- discountRow: "Discounts",
69
24
  totalRow: "Total",
70
- paidOnLabel: (e) => `Paid on ${e}`,
71
- paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
72
- paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again.",
73
- rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
74
- rejectedOn: (e) => `Rejected on ${e}`,
75
- rejectionMessage: (e) => `"${e}"`
76
- }, w = {
77
- newTitle: "New bill",
78
- extractedTitle: (e) => `Bill from ${e}`,
79
- viewTitle: (e) => `Bill from ${e}`,
80
- readOnlyTitle: "Bill details",
81
- addedOn: (e) => `Added on ${e}`,
82
- unsavedChanges: f,
83
- discardChanges: u,
25
+ actionError: n.actionError,
26
+ actionSuccess: n.actionSuccess,
84
27
  scheduledRelativeDay: i,
85
28
  scheduledSummary: o,
86
29
  scheduledStatusBadge: a,
87
30
  awaitingApprovalNotice: e,
88
31
  awaitingApprovalUnknownNotice: t,
89
- actions: n,
90
- detail: C,
91
- history: v,
92
- payBill: p,
93
- markAsPaid: h,
94
- approvalPolicyCopy: _,
95
- deleteDraft: {
96
- menuItem: "Delete draft",
97
- dialog: {
98
- title: "Delete this draft?",
99
- description: "The draft and anything entered on it are removed. This can't be undone.",
100
- confirmButton: "Delete draft"
101
- },
102
- error: "Couldn't delete this draft. Try again."
103
- },
104
- lineItemsGlCodeUnavailable: {
105
- loadError: "Couldn't load GL codes",
106
- noAccess: "You don't have access to GL codes",
107
- empty: "No GL codes set up yet"
108
- },
109
- rejectedBanner: d
110
- };
111
- function T(e) {
112
- return {
113
- ...w,
114
- ...e,
115
- actions: s(e?.actions),
116
- detail: {
117
- ...w.detail,
118
- ...e?.detail,
119
- paymentHistoryMethodLabels: c(e?.detail?.paymentHistoryMethodLabels)
120
- },
121
- history: {
122
- ...w.history,
123
- ...e?.history
124
- },
125
- payBill: m(e?.payBill),
126
- markAsPaid: g(e?.markAsPaid),
127
- lineItemsGlCodeUnavailable: {
128
- ...w.lineItemsGlCodeUnavailable,
129
- ...e?.lineItemsGlCodeUnavailable
130
- },
131
- unsavedChanges: {
132
- ...w.unsavedChanges,
133
- ...e?.unsavedChanges
134
- },
135
- discardChanges: {
136
- ...w.discardChanges,
137
- ...e?.discardChanges
138
- },
139
- rejectedBanner: {
140
- ...w.rejectedBanner,
141
- ...e?.rejectedBanner
142
- },
143
- approvalPolicyCopy: {
144
- ...w.approvalPolicyCopy,
145
- ...e?.approvalPolicyCopy
146
- },
147
- scheduledRelativeDay: {
148
- ...w.scheduledRelativeDay,
149
- ...e?.scheduledRelativeDay
150
- },
151
- deleteDraft: {
152
- ...w.deleteDraft,
153
- ...e?.deleteDraft,
154
- dialog: (() => {
155
- let t = {
156
- ...w.deleteDraft.dialog,
157
- ...e?.deleteDraft?.dialog
158
- };
159
- return delete t.reason, t;
160
- })()
161
- }
162
- };
163
- }
164
- var E = {
165
- createTitle: "New vendor",
166
- editTitle: "Edit vendor",
167
- switchVendorFieldLabel: "Switch to a different vendor",
168
- nameLabel: "Business name",
169
- addAddress: "Add address (optional)",
170
- cancel: "Cancel",
171
- save: "Save",
172
- cancelAriaLabel: "Cancel vendor",
173
- saveAriaLabel: "Save vendor",
174
- paymentInstructionsHeading: "Payment instructions",
175
- paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
176
- paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
177
- ach: l
32
+ paidOnLabel: (e) => `Paid on ${e}`,
33
+ rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
34
+ rejectedOn: (e) => `Rejected on ${e}`,
35
+ rejectionMessage: (e) => `"${e}"`,
36
+ sheet: l,
37
+ history: c,
38
+ decisionDialog: n.decisionDialog,
39
+ approvalPolicyCopy: s
178
40
  };
179
- function D(e) {
180
- return {
181
- ...E,
182
- ...e,
183
- ach: {
184
- ...E.ach,
185
- ...e?.ach,
186
- fieldMarkers: {
187
- ...E.ach.fieldMarkers,
188
- ...e?.ach?.fieldMarkers
189
- }
190
- }
191
- };
192
- }
193
41
  //#endregion
194
- export { b as BILL_CREATE_MESSAGE_LABELS_EN, w as BILL_CREATE_SCREEN_LABELS_EN, C as BILL_DETAIL_VIEW_LABELS_EN, S as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, E as VENDOR_INLINE_FORM_LABELS_EN, x as VENDOR_SECTION_PROPS_LABELS_EN, T as mergeBillCreateScreenCopy, D as mergeVendorInlineFormLabels };
42
+ export { u as BILL_DETAILS_LABELS_EN };
@@ -2,79 +2,241 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useAttachPayableFileMutation as e } from "../../data-access/dist/index22.js";
6
- import "../../data-access/dist/index.js";
7
- import { SourceDocumentPanel as t } from "../../ui/dist/index111.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 "../../../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";
8
20
  import "../../ui/dist/index.js";
9
- import { createSourceDocumentPreview as n } from "./index37.js";
10
- import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as r } from "./index38.js";
11
- import { useEffect as i, useState as a } from "react";
12
- import { jsx as o } from "react/jsx-runtime";
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";
25
+ 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";
39
+ import { useMemo as h, useRef as _e, useState as ve } from "react";
40
+ import { Fragment as ye, jsx as g, jsxs as be } from "react/jsx-runtime";
13
41
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js
14
- function s(e) {
15
- let [t, n] = a();
16
- return i(() => {
17
- if (!e) {
18
- n(void 0);
19
- return;
20
- }
21
- let t = URL.createObjectURL(e);
22
- return n(t), () => URL.revokeObjectURL(t);
23
- }, [e]), t;
24
- }
25
- function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, readOnly: u, staging: d, deletion: f, labels: p }) {
26
- let { stagedFile: m, onFileStaged: h, onClearStagedFile: g, isSaving: _ } = d ?? {}, { isPending: v, onRequest: y, onDetachNow: b, isDeleting: x, hasFailed: S } = f ?? {}, C = {
27
- ...r,
28
- ...p,
29
- preview: {
30
- ...r.preview,
31
- ...p?.preview
32
- }
33
- }, w = e(), T = s(m), E = !!(a && !v || m);
34
- if (!E && (c || w.isPending)) return /* @__PURE__ */ o(t, {
35
- mode: "loading",
36
- fileName: l
37
- });
38
- if (!E && u) return /* @__PURE__ */ o("div", {
39
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-sm ttw:text-muted-foreground",
40
- children: C.noDocument
41
- });
42
- if (!E) return /* @__PURE__ */ o(t, {
43
- mode: "upload",
44
- uploadStatus: w.isPending || x ? "uploading" : "idle",
45
- uploadErrorMessage: w.isError ? C.attachFailed : S ? C.deleteFailed : void 0,
46
- noticeMessage: v && !S ? C.pendingDeletionNotice : void 0,
47
- onFilesSelected: (e) => {
48
- let [t] = e;
49
- if (t) {
50
- if (i) {
51
- let e = () => w.mutate({
52
- path: { payable_id: i },
53
- file: t
54
- });
55
- if (v && b) {
56
- b().then(e, () => void 0);
57
- return;
58
- }
59
- e();
60
- } else h?.(t);
42
+ function _({ open: _, onOpenChange: xe, payableId: v, onClose: y, onExpand: b, onEdit: x, testId: S, labels: C, renderPaymentFlows: w }) {
43
+ let T = h(() => ({
44
+ ...m,
45
+ ...C,
46
+ sheet: {
47
+ ...m.sheet,
48
+ ...C?.sheet,
49
+ statusBadge: {
50
+ ...m.sheet.statusBadge,
51
+ ...C?.sheet?.statusBadge
52
+ },
53
+ approvalPolicy: {
54
+ ...m.sheet.approvalPolicy,
55
+ ...C?.sheet?.approvalPolicy
56
+ },
57
+ dueDate: {
58
+ ...m.sheet.dueDate,
59
+ ...C?.sheet?.dueDate
60
+ },
61
+ auditHistory: {
62
+ ...m.sheet.auditHistory,
63
+ ...C?.sheet?.auditHistory
61
64
  }
65
+ },
66
+ decisionDialog: ie(m.decisionDialog, C?.decisionDialog),
67
+ approvalPolicyCopy: {
68
+ ...m.approvalPolicyCopy,
69
+ ...C?.approvalPolicyCopy
70
+ },
71
+ history: {
72
+ ...m.history,
73
+ ...C?.history
74
+ },
75
+ scheduledRelativeDay: {
76
+ ...m.scheduledRelativeDay,
77
+ ...C?.scheduledRelativeDay
78
+ },
79
+ actionSuccess: {
80
+ ...m.actionSuccess,
81
+ ...C?.actionSuccess
82
+ },
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({
85
+ payableId: v,
86
+ status: A?.status
87
+ }), Ce = A?.status === "rejected", we = t(k?.scopes, [n.ApprovalRequestReadOrg]), P = Ce && we, F = le({
88
+ payableId: v,
89
+ 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
+ payableStatus: A?.status,
92
+ approvalRequests: z,
93
+ userNames: R,
94
+ payableUpdatedAt: A?.updated_at,
95
+ labels: T
96
+ }), [
97
+ A?.status,
98
+ A?.updated_at,
99
+ z,
100
+ R,
101
+ T
102
+ ]), V = ue({
103
+ payableId: v,
104
+ approvalPolicyId: A?.approval_policy_id,
105
+ copy: T.approvalPolicyCopy
106
+ }), H = se({
107
+ status: A?.status,
108
+ scopes: k?.scopes,
109
+ arePendingApproversUnknown: V.isLoading,
110
+ hasApprovalPolicy: !!A?.approval_policy_id,
111
+ hasWaitingRequest: N.hasWaitingRequest
112
+ }), 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
+ payableId: v,
114
+ scheduledPaymentDate: A?.scheduled_payment_date
115
+ }), q = ce(k?.scopes), J = ge({
116
+ counterpartId: A?.counterpart_id,
117
+ currency: A?.currency,
118
+ currentBankAccountId: A?.counterpart_bank_account_id,
119
+ enabled: q
120
+ }), { actions: De, decisionDialog: Oe } = pe({
121
+ payableId: A ? v : void 0,
122
+ status: A?.status,
123
+ currentApprovalRequestId: N.id,
124
+ hasScheduledPayment: K.hasScheduledPayment,
125
+ scheduledPaymentIntentId: K.scheduledPaymentIntentId,
126
+ isScheduledPaymentUnknown: K.isResolving,
127
+ isPayabilityUnknown: J.isLoading,
128
+ hasApprovalPolicy: !!A?.approval_policy_id,
129
+ hasWaitingRequest: N.hasWaitingRequest,
130
+ pendingApprovers: V.pendingApprovers,
131
+ arePendingApproversUnknown: V.isLoading,
132
+ labels: {
133
+ edit: T.sheet.editButton,
134
+ payBill: T.sheet.payButton,
135
+ markAsPaid: T.sheet.markAsPaidButton,
136
+ reject: T.sheet.rejectButton,
137
+ approve: T.sheet.approveButton,
138
+ cancel: T.sheet.cancelButton,
139
+ cancelScheduledPayment: T.sheet.cancelScheduledPaymentButton,
140
+ reopen: T.sheet.reopenButton,
141
+ forceApprove: T.sheet.forceApproveButton,
142
+ forceReject: T.sheet.forceRejectButton,
143
+ policyOverridesHeading: T.sheet.policyOverridesGroup,
144
+ decisionDialog: T.decisionDialog,
145
+ actionError: T.actionError,
146
+ actionSuccess: T.actionSuccess
147
+ },
148
+ isMarkAsPaidPending: M,
149
+ onMarkAsPaidSelect: () => j.current?.openMarkAsPaid(),
150
+ onPayBillSelect: () => j.current?.openPayBill(),
151
+ onEditSelect: x,
152
+ onActionSucceeded: (e) => {
153
+ e === "reopen" && x?.();
62
154
  }
63
- });
64
- let D = a?.name ?? m?.name ?? "", O = n(a || {
65
- name: D,
66
- url: T ?? "",
67
- mimetype: m?.type ?? ""
68
- }, C.preview);
69
- return /* @__PURE__ */ o(t, {
70
- mode: "document",
71
- fileName: D,
72
- preview: O,
73
- isDeleting: x,
74
- deleteErrorMessage: S ? C.deleteFailed : void 0,
75
- onDownload: a ? () => window.open(a.url, "_blank", "noopener,noreferrer") : void 0,
76
- onDelete: u ? void 0 : a && i ? y : _ ? void 0 : g
77
- });
155
+ }), Y = me(), X = h(() => K.hasScheduledPayment && K.scheduledDate ? r(K.scheduledDate, T.scheduledRelativeDay, Y) : void 0, [
156
+ K.hasScheduledPayment,
157
+ K.scheduledDate,
158
+ T.scheduledRelativeDay,
159
+ 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
+ Q.data,
162
+ R,
163
+ T.history
164
+ ]), Ae = L && Te && ee(Q.data?.data ?? [], $, R), je = h(() => p({
165
+ records: K.paymentRecords,
166
+ events: Q.data?.data ?? [],
167
+ currencyCode: A?.currency,
168
+ labels: T
169
+ }), [
170
+ K.paymentRecords,
171
+ Q.data,
172
+ A?.currency,
173
+ T
174
+ ]), Me = h(() => A ? a({
175
+ payable: A,
176
+ lineItems: D.lineItems,
177
+ ledgerAccounts: O.data?.data ?? [],
178
+ labels: T,
179
+ hasScheduledPayment: K.hasScheduledPayment,
180
+ rejection: B,
181
+ achInstructions: J.achInstructions,
182
+ achInstructionsReadable: q && !J.isLoading && !J.isError
183
+ }) : void 0, [
184
+ A,
185
+ D.lineItems,
186
+ O.data,
187
+ T,
188
+ K.hasScheduledPayment,
189
+ B,
190
+ J.achInstructions,
191
+ J.isError,
192
+ J.isLoading,
193
+ q
194
+ ]), Ne = E.isLoading || D.isResolving || O.isResolving || J.isLoading, Pe = E.isError || D.isError || O.isError;
195
+ return /* @__PURE__ */ be(ye, { children: [
196
+ /* @__PURE__ */ g(s, {
197
+ open: _,
198
+ onOpenChange: xe,
199
+ details: Me,
200
+ actions: De,
201
+ approvalPolicy: V.view,
202
+ showApprovalOverrideNotice: !W && H && !U,
203
+ awaitingApprovalNotice: !W && !U && !H && A?.status === "approve_in_progress" && A?.approval_policy_id ? G ? T.awaitingApprovalNotice(G) : T.awaitingApprovalUnknownNotice : void 0,
204
+ scheduledSummary: ke,
205
+ scheduledSummaryDate: X?.absoluteLabel,
206
+ auditHistory: $,
207
+ auditHistoryError: Q.isError,
208
+ auditHistoryLoading: Q.isLoading || Ee,
209
+ auditHistoryNamesError: Ae,
210
+ paymentHistory: je,
211
+ paymentHistoryError: K.isError || Q.isError,
212
+ paymentHistoryLoading: K.isResolving || Q.isLoading,
213
+ isLoading: Ne,
214
+ isError: Pe,
215
+ notice: Z,
216
+ onClose: y,
217
+ onExpand: b,
218
+ testId: S,
219
+ labels: T.sheet
220
+ }),
221
+ /* @__PURE__ */ g(o, {
222
+ ...Oe,
223
+ labels: { cancelButton: T.decisionDialog.cancelButton },
224
+ testId: S ? `${S}-decision-dialog` : void 0,
225
+ confirmTestId: S ? `${S}-decision-confirm` : void 0,
226
+ reasonTestId: S ? `${S}-decision-reason` : void 0,
227
+ reasonFieldId: S ? `${S}-decision-reason-field` : void 0
228
+ }),
229
+ w?.({
230
+ ref: j,
231
+ payable: A,
232
+ payableId: v,
233
+ isPayBillEnabled: !0,
234
+ hasScheduledPayment: K.hasScheduledPayment,
235
+ onMissingAchInstructions: b,
236
+ onMarkAsPaidPendingChange: Se,
237
+ testId: S
238
+ })
239
+ ] });
78
240
  }
79
241
  //#endregion
80
- export { c as SourceDocumentContainer, c as default };
242
+ export { _ as BillDetailsContainer, _ as default };
@@ -1,40 +1,17 @@
1
+ import { BanIcon as e, Trash2Icon as t } from "lucide-react";
1
2
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.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
- };
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
+ }
39
16
  //#endregion
40
- export { e as DUPLICATE_BILLS_LABELS_EN };
17
+ export { n as duplicateRemovalPrompt };
@@ -1,35 +1,3 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js
2
- function e(e) {
3
- return e?.trim() ?? "";
4
- }
5
- function t(t) {
6
- let n = e(t);
7
- return n.length === 2 ? n.toUpperCase() : "";
8
- }
9
- function n(t) {
10
- let n = e(t.bank_account?.routing_number), r = e(t.bank_account?.account_number);
11
- if (n || r) return {
12
- accountHolderName: e(t.bank_account?.account_holder_name) || e(t.name),
13
- routingNumber: n,
14
- accountNumber: r
15
- };
16
- }
17
- function r(r) {
18
- if (!r) return;
19
- let i = {
20
- legalName: e(r.name),
21
- email: e(r.email),
22
- phone: e(r.phone),
23
- address: {
24
- line1: e(r.address?.line1),
25
- line2: e(r.address?.line2),
26
- city: e(r.address?.city),
27
- state: t(r.address?.state),
28
- postalCode: e(r.address?.postal_code)
29
- },
30
- bankAccount: n(r)
31
- };
32
- return i.legalName || i.email || i.phone || Object.values(i.address).some(Boolean) || i.bankAccount ? i : void 0;
33
- }
34
- //#endregion
35
- export { r as buildVendorPrefill };
1
+ import "./index19.js";
2
+ import "./index38.js";
3
+ import "./index39.js";