@tesouro/embedded-components-react 0.5.213 → 0.5.214

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 (208) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index.js +3 -0
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index38.js → bill-upload/data-access/dist/index2.js} +7 -6
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index3.js +33 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index35.js → bill-upload/data-access/dist/index4.js} +6 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index.js +7 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index2.js +8 -0
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index3.js +13 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +133 -0
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index5.js +3 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js +5 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index7.js +4 -0
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js +56 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index9.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index.js +4 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index2.js +10 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +9 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +93 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index6.js +2 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +29 -33
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +11 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index6.js → lib/invalidatePayableQueries/approvalDecisionQueries.js} +8 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index7.js → lib/invalidatePayableQueries/approvalRequestWatch.js} +5 -5
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index3.js → lib/invalidatePayableQueries/cleanUpDeletedPayableQueries.js} +4 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index9.js → lib/invalidatePayableQueries/hasLiveScheduledRecord.js} +5 -5
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/index.js +6 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index8.js → lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js} +5 -5
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index4.js → lib/invalidatePayableQueries/invalidatePayableQueries.js} +5 -5
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index5.js → lib/invalidatePayableQueries/payableProjectionPolling.js} +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index10.js → lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js} +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index12.js → lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js} +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index13.js → lib/payableOcrQueryOptions.js} +4 -4
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index40.js → lib/payablePolicyAssignmentQueryOptions.js} +4 -4
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index2.js → lib/queryKeys.js} +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index21.js → lib/useApplyDuplicateVerdictsMutation.js} +23 -25
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index16.js → lib/usePayableApprovalRequests.js} +11 -11
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index17.js → lib/usePayableHistoryQuery.js} +6 -6
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index18.js → lib/usePayableLineItems.js} +10 -10
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/index.js +12 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index22.js → lib/usePayableMutations/useAttachPayableFileMutation.js} +7 -7
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index23.js → lib/usePayableMutations/useCancelPayableMutation.js} +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCancelScheduledPaymentMutation.js +40 -0
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useCreatePayableMutation.js +34 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableFileMutation.js +34 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayableMutations/useDeletePayableMutation.js +34 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index28.js → lib/usePayableMutations/useForceApprovePayableMutation.js} +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index29.js → lib/usePayableMutations/useForceRejectPayableMutation.js} +7 -7
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index32.js → lib/usePayableMutations/useReopenPayableMutation.js} +7 -7
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index33.js → lib/usePayableMutations/useSubmitPayableForApprovalMutation.js} +9 -9
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index34.js → lib/usePayableMutations/useUpdatePayableMutation.js} +7 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index36.js → lib/usePayableMutations/useValidatePayableMutation.js} +5 -5
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index19.js → lib/usePayablePaymentRecordsQuery.js} +8 -8
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index47.js → lib/usePayableSuggestionsQuery.js} +7 -7
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/index.js +6 -0
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index39.js → lib/usePayablesQueries/useFirstPayablesPagesQuery.js} +8 -8
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index41.js → lib/usePayablesQueries/usePayableQuery.js} +8 -8
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index42.js → lib/usePayablesQueries/usePayablesByIdsQueries.js} +6 -6
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index43.js → lib/usePayablesQueries/usePayablesCountQueries.js} +7 -7
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/{index44.js → lib/usePayablesQueries/usePayablesQuery.js} +7 -7
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/usePayablesQueries/usePayablesTotalCountQuery.js +29 -0
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +11 -23
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +11 -5
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +12 -13
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +66 -23
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +9 -62
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +29 -2
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +160 -82
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +26 -5
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +22 -31
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +38 -35
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +92 -164
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +82 -45
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +6 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +44 -47
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +112 -12
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +184 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +72 -9
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +31 -65
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +89 -10
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +401 -15
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +12 -161
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +83 -24
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +79 -22
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +222 -30
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +38 -93
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +247 -79
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +23 -4
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +612 -45
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +4 -116
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +27 -179
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +232 -70
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +15 -38
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +3 -35
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +3 -90
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +36 -405
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +1 -16
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +23 -83
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +3 -80
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +124 -228
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +8 -43
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +6 -251
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +81 -22
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +38 -6
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +20 -625
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +22 -4
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +28 -42
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +82 -256
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +50 -3
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +260 -3
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +27 -38
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +396 -1
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +332 -6
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +4 -13
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +217 -16
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +5 -130
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +107 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +1 -6
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +24 -129
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +84 -14
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +46 -37
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +12 -223
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index.js +4 -0
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index30.js → pay-bill/data-access/dist/index2.js} +7 -7
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/data-access/dist/index3.js +7 -0
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index11.js → pay-bill/data-access/dist/index4.js} +5 -4
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{data-access/dist/index20.js → pay-bill/data-access/dist/index5.js} +8 -8
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index.js +3 -0
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +179 -0
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index11.js +51 -0
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index12.js +1 -0
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index13.js +5 -0
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index14.js +73 -0
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index15.js +1 -0
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index2.js +18 -0
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index3.js +26 -0
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +72 -0
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index5.js +2 -0
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index6.js +9 -0
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index7.js +7 -0
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +35 -0
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index9.js +41 -0
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index.js +10 -0
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index108.js → pay-bill/ui/dist/index10.js} +4 -4
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index11.js +2 -0
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index103.js → pay-bill/ui/dist/index2.js} +2 -2
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index104.js → pay-bill/ui/dist/index3.js} +3 -3
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index4.js +2 -0
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +13 -0
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index101.js → pay-bill/ui/dist/index6.js} +5 -5
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index7.js +2 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index106.js → pay-bill/ui/dist/index8.js} +2 -2
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{ui/dist/index107.js → pay-bill/ui/dist/index9.js} +1 -1
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +10 -22
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +2 -12
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +3 -6
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +28 -7
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -93
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +7 -0
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +34 -2
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -7
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +12 -28
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +108 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +2 -7
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +8 -32
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +52 -2
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/duplicateVerdict.js +7 -0
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupDuplicates.js +40 -0
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableRemoval.js +8 -0
  170. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  171. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +0 -32
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +0 -8
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +0 -40
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +0 -34
  177. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +0 -34
  178. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +0 -34
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index31.js +0 -8
  180. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +0 -15
  181. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +0 -29
  182. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +0 -6
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +0 -11
  184. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +0 -10
  185. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +0 -84
  186. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +0 -24
  187. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +0 -22
  188. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +0 -31
  189. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +0 -86
  190. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +0 -50
  191. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +0 -262
  192. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +0 -35
  193. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +0 -395
  194. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +0 -310
  195. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +0 -4
  196. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +0 -7
  197. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +0 -114
  198. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +0 -1
  199. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +0 -27
  200. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +0 -2
  201. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +0 -2
  202. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +0 -2
  203. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +0 -14
  204. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +0 -108
  205. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +0 -2
  206. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +0 -10
  207. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +0 -52
  208. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +0 -2
@@ -1,132 +1,7 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
- import { getPayablesIdOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
10
- import { isApiNotFoundError as a } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
11
- import "../../../shared/data-access/dist/index.js";
12
- import "../../../shared/ui/dist/index.js";
13
- import { useUploadPayableFromFileMutation as o } from "../../data-access/dist/index35.js";
14
- import { usePayableOcrQueries as s } from "../../data-access/dist/index38.js";
15
- import "../../data-access/dist/index.js";
16
- import { billPayUploadQueueKey as c } from "./index58.js";
17
- import { BILL_UPLOAD_QUEUE_LABELS_EN as l } from "./index59.js";
18
- import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
19
- import { useQuery as m, useQueryClient as h } from "@tanstack/react-query";
20
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js
21
- function g({ onOpenBill: g, labels: _ } = {}) {
22
- let v = {
23
- ...l,
24
- ..._
25
- }, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationPending: w } = r(), T = h(), E = f(() => c(S), [S]), D = o(), [O, k] = p(!1), { data: A = [] } = m({
26
- queryKey: E,
27
- queryFn: () => T.getQueryData(E) ?? [],
28
- staleTime: Infinity,
29
- gcTime: Infinity,
30
- initialData: []
31
- }), j = u((e, t) => {
32
- T.setQueryData(E, (n) => (n ?? []).map((n) => n.localId === e ? {
33
- ...n,
34
- ...t
35
- } : n));
36
- }, [T, E]), M = u((e) => {
37
- T.setQueryData(E, (t) => (t ?? []).filter((t) => t.localId !== e));
38
- }, [T, E]), N = u((t) => {
39
- let n = (T.getQueryData(E) ?? []).filter((e) => e.status === "uploading").length;
40
- if (t.length + n > 10) {
41
- e.error(n > 0 ? b(10 - n) : y(10));
42
- return;
43
- }
44
- k(!1);
45
- for (let e of t) {
46
- let t = crypto.randomUUID();
47
- T.setQueryData(E, (n) => [...n ?? [], {
48
- localId: t,
49
- fileName: e.name,
50
- status: "uploading"
51
- }]), D.mutateAsync({ file: e }).then((e) => j(t, { payableId: e?.id })).catch(() => j(t, { status: "failed" }));
52
- }
53
- }, [
54
- j,
55
- T,
56
- E,
57
- b,
58
- y,
59
- D
60
- ]), P = s({ payableIds: A.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
61
- d(() => {
62
- let e = /* @__PURE__ */ new Set();
63
- for (let t of P) if (t.suspectedDuplicateOf.length !== 0) {
64
- e.add(t.payableId);
65
- for (let n of t.suspectedDuplicateOf) e.add(n);
66
- }
67
- for (let { payableId: t, ocrStatus: n, isError: r } of P) {
68
- let i = A.find((e) => e.payableId === t && e.status === "uploading");
69
- i && (n === "success" ? j(i.localId, { status: e.has(t) ? "duplicate" : "ready" }) : (r || n === "error" || n === "canceled") && j(i.localId, { status: "failed" }));
70
- }
71
- for (let t of A) t.status === "ready" && t.payableId && e.has(t.payableId) && j(t.localId, { status: "duplicate" });
72
- }, [
73
- A,
74
- P,
75
- j
76
- ]);
77
- let F = A.filter((e) => e.status === "uploading"), I = A.filter((e) => e.status === "ready"), L = A.filter((e) => e.status === "duplicate"), R = A.filter((e) => e.status === "failed"), z = (r) => ({
78
- id: r.localId,
79
- fileName: r.fileName,
80
- status: r.status,
81
- onOpen: (r.status === "ready" || r.status === "duplicate") && r.payableId && g ? () => {
82
- let o = r.payableId;
83
- T.fetchQuery({
84
- ...n(t({
85
- client: x,
86
- headers: i(S),
87
- path: { payable_id: o }
88
- }), {
89
- authEpoch: C,
90
- organizationPending: w
91
- }),
92
- retry: !1
93
- }).catch((e) => {
94
- if (a(e)) return "deleted";
95
- }).then((t) => {
96
- t === "deleted" ? e.error(v.billDeletedError) : g(o), M(r.localId);
97
- });
98
- } : void 0
99
- }), B = F.length ? [{
100
- id: "in-progress",
101
- items: A.map(z)
102
- }] : [
103
- ...I.length ? [{
104
- id: "ready",
105
- caption: v.readyCaption(I.length),
106
- items: I.map(z)
107
- }] : [],
108
- ...L.length ? [{
109
- id: "duplicate",
110
- caption: v.duplicateCaption(L.length),
111
- items: L.map(z)
112
- }] : [],
113
- ...R.length ? [{
114
- id: "failed",
115
- caption: v.failedCaption(R.length),
116
- items: R.map(z)
117
- }] : []
118
- ], V = I.length + L.length, H = F.length ? v.uploadingSummary(A.length) : V ? v.completeSummary(V) : v.failedCaption(R.length), U = u(() => {
119
- T.setQueryData(E, []);
120
- }, [T, E]);
121
- return {
122
- enqueue: N,
123
- sections: B,
124
- summaryLabel: H,
125
- collapsed: O,
126
- onToggleCollapsed: u(() => k((e) => !e), []),
127
- onClose: U,
128
- isVisible: A.length > 0
129
- };
130
- }
2
+ var e = {
3
+ bills: "Bills",
4
+ vendors: "Vendors"
5
+ };
131
6
  //#endregion
132
- export { g as useBillUploadQueue };
7
+ export { e as DEFAULT_TABS_LABELS };
@@ -1,3 +1,108 @@
1
- import "./index58.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 { BillPayWidgetUi as o } from "../../ui/dist/index56.js";
15
+ import "../../ui/dist/index.js";
16
+ import { BillUploadWidget as s } from "../../bill-upload/feature/dist/index8.js";
17
+ import "../../bill-upload/feature/dist/index.js";
18
+ import { BillsTab as c } from "./index58.js";
2
19
  import "./index59.js";
3
- import "./index60.js";
20
+ import { BillPayWidgetAnalyticsEvent as l, WIDGET_NAME as u } from "./index41.js";
21
+ import { DEFAULT_TABS_LABELS as d } from "./index60.js";
22
+ import { CounterpartsWidget as f } from "../../../counterparts-widget/feature/dist/index8.js";
23
+ import "../../../counterparts-widget/feature/dist/index.js";
24
+ import { useCallback as p, useEffect as m, useRef as h, useState as g } from "react";
25
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
26
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js
27
+ var b = {
28
+ Bills: "bills",
29
+ Vendors: "vendors"
30
+ }, x = [b.Bills, b.Vendors];
31
+ function S({ labels: i, initialTab: u = b.Bills, tabsLabels: S, vendorLabels: C, poweredByBankName: w, onSettingsClick: T }) {
32
+ let E = r();
33
+ m(() => {
34
+ E(l.Mounted);
35
+ }, [E]);
36
+ let D = {
37
+ ...d,
38
+ ...S
39
+ }, { 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(u), [P, F] = g(), I = p((e) => {
40
+ N(b.Bills), F(e);
41
+ }, []), L = h(null), R = p((e) => L.current?.enqueue(e), []), [z, B] = g(), V = p((e) => {
42
+ N(b.Bills), B(e);
43
+ }, []), H = [{
44
+ id: b.Bills,
45
+ label: D.bills,
46
+ content: /* @__PURE__ */ v(c, {
47
+ onEnqueueFiles: R,
48
+ openPayableId: P,
49
+ onOpenPayableHandled: () => F(void 0),
50
+ vendorIntent: z,
51
+ onVendorIntentHandled: () => B(void 0),
52
+ poweredByBankName: w,
53
+ onSettingsClick: T && j ? T : void 0
54
+ })
55
+ }, {
56
+ id: b.Vendors,
57
+ label: D.vendors,
58
+ content: /* @__PURE__ */ v(f, {
59
+ ...C,
60
+ counterpartType: "vendor",
61
+ passThrough: !0,
62
+ onViewAllDocuments: k ? (e) => V({
63
+ vendorId: e.id,
64
+ vendorName: e.name,
65
+ action: "viewBills"
66
+ }) : void 0,
67
+ onCreateDocument: A ? (e) => V({
68
+ vendorId: e.id,
69
+ vendorName: e.name,
70
+ action: "createBill"
71
+ }) : void 0
72
+ })
73
+ }], U = H.some((e) => e.id === M) ? M : x.find((e) => H.some((t) => t.id === e)) ?? H[0]?.id ?? "";
74
+ return /* @__PURE__ */ y(_, { children: [
75
+ /* @__PURE__ */ v(n, {}),
76
+ /* @__PURE__ */ v(o, {
77
+ labels: i,
78
+ tabs: H,
79
+ selectedTabId: U,
80
+ onTabChange: N
81
+ }),
82
+ /* @__PURE__ */ v(s, {
83
+ ref: L,
84
+ onOpenBill: I
85
+ })
86
+ ] });
87
+ }
88
+ function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
89
+ return /* @__PURE__ */ v(i, {
90
+ widgetName: u,
91
+ baseUrl: e,
92
+ widgetToken: t,
93
+ organizationId: n,
94
+ configClient: r,
95
+ gatewayRouting: a,
96
+ linkComponent: o,
97
+ implementation: s,
98
+ uiFramework: c,
99
+ errorFallback: l,
100
+ onError: d,
101
+ analytics: f,
102
+ disclosuresAcceptance: p,
103
+ providerLabels: m,
104
+ children: /* @__PURE__ */ v(S, { ...h })
105
+ });
106
+ }
107
+ //#endregion
108
+ export { C as BillPayWidgetNative, C as default };
@@ -1,6 +1 @@
1
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js
2
- function e(e) {
3
- return e === void 0 ? "0" : e > 99 ? "99+" : String(e);
4
- }
5
- //#endregion
6
- export { e as formatBillQueueBadge };
1
+ import "./index61.js";
@@ -1,132 +1,27 @@
1
- import { BillColumn as e } from "../../ui/dist/index86.js";
2
- import "../../ui/dist/index.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
6
+ import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
7
+ import "../../../shared/feature/dist/index.js";
8
+ import { BillPayWidgetMonite as n } from "./index42.js";
9
+ import "./index43.js";
10
+ import { BillPayWidgetNative as r } from "./index61.js";
11
+ import "./index62.js";
12
+ import { jsx as i } from "react/jsx-runtime";
3
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js
4
- var t = {
5
- Drafts: "drafts",
6
- Pending: "pending",
7
- Scheduled: "scheduled",
8
- Paid: "paid",
9
- All: "all"
10
- }, n = {
11
- [t.Drafts]: ["draft", "new"],
12
- [t.Pending]: [
13
- "approve_in_progress",
14
- "waiting_to_be_paid",
15
- "partially_paid"
16
- ],
17
- [t.Scheduled]: [
18
- "new",
19
- "approve_in_progress",
20
- "waiting_to_be_paid",
21
- "partially_paid"
22
- ],
23
- [t.Paid]: ["paid"],
24
- [t.All]: void 0
25
- }, r = {
26
- [t.Drafts]: void 0,
27
- [t.Pending]: !1,
28
- [t.Scheduled]: !0,
29
- [t.Paid]: void 0,
30
- [t.All]: void 0
31
- };
32
- function i(e) {
33
- return e === t.Pending || e === t.Drafts;
34
- }
35
- var a = t.Drafts, o = [
36
- t.Drafts,
37
- t.Pending,
38
- t.Scheduled,
39
- t.Paid,
40
- t.All
41
- ], s = {
42
- [t.Drafts]: [
43
- e.Vendor,
44
- e.InvoiceNumber,
45
- e.Attachment,
46
- e.IssueDate,
47
- e.DueDate,
48
- e.Status,
49
- e.AmountDue,
50
- e.TotalAmount,
51
- e.AddedOn
52
- ],
53
- [t.Pending]: [
54
- e.Vendor,
55
- e.InvoiceNumber,
56
- e.Attachment,
57
- e.IssueDate,
58
- e.DueDate,
59
- e.Status,
60
- e.AmountDue,
61
- e.TotalAmount,
62
- e.AddedOn
63
- ],
64
- [t.Scheduled]: [
65
- e.Vendor,
66
- e.InvoiceNumber,
67
- e.Attachment,
68
- e.IssueDate,
69
- e.DueDate,
70
- e.ScheduledDate,
71
- e.Status,
72
- e.AmountScheduled,
73
- e.TotalAmount,
74
- e.AddedOn
75
- ],
76
- [t.Paid]: [
77
- e.Vendor,
78
- e.InvoiceNumber,
79
- e.Attachment,
80
- e.IssueDate,
81
- e.DueDate,
82
- e.PaidDate,
83
- e.Status,
84
- e.AmountPaid,
85
- e.TotalAmount,
86
- e.AddedOn
87
- ],
88
- [t.All]: [
89
- e.Vendor,
90
- e.InvoiceNumber,
91
- e.Attachment,
92
- e.IssueDate,
93
- e.DueDate,
94
- e.ScheduledDate,
95
- e.Status,
96
- e.AmountDue,
97
- e.AmountPaid,
98
- e.TotalAmount,
99
- e.AddedOn
100
- ]
101
- };
102
- function c(e) {
103
- return s[e];
104
- }
105
- function l(e) {
106
- let t = n[e];
107
- return t ? [...t] : void 0;
108
- }
109
- function u(e) {
110
- return r[e];
111
- }
112
- var d = {
113
- vendorLabel: "counterpart_name",
114
- issueDateLabel: "issued_at",
115
- dueDateLabel: "due_date",
116
- scheduledDateLabel: "scheduled_payment_date",
117
- addedOnLabel: "created_at"
118
- }, f = {
119
- [e.Vendor]: "vendorLabel",
120
- [e.IssueDate]: "issueDateLabel",
121
- [e.DueDate]: "dueDateLabel",
122
- [e.ScheduledDate]: "scheduledDateLabel",
123
- [e.AddedOn]: "addedOnLabel"
124
- };
125
- function p(e) {
126
- return f[e];
127
- }
128
- function m(e) {
129
- if (e) return d[e];
14
+ function a({ implementation: a, initialTab: o, onSettingsClick: s, ...c }) {
15
+ let l = t().implementation, u = a ?? l ?? e.Monite;
16
+ return u === e.Native ? /* @__PURE__ */ i(r, {
17
+ implementation: u,
18
+ initialTab: o,
19
+ onSettingsClick: s,
20
+ ...c
21
+ }) : /* @__PURE__ */ i(n, {
22
+ implementation: u,
23
+ ...c
24
+ });
130
25
  }
131
26
  //#endregion
132
- export { s as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, o as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, d as BILL_SORT_FIELDS, t as BillQueue, a as DEFAULT_BILL_QUEUE, c as billQueueColumns, u as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, l as billQueueStatuses, p as billSortColumnId, m as billSortField };
27
+ export { a as BillPayWidget, a as default };
@@ -1,17 +1,87 @@
1
- import { BanIcon as e, Trash2Icon as t } from "lucide-react";
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";
2
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js
3
- function n(n, r) {
4
- return {
5
- title: n.title,
6
- description: n.description,
7
- confirmButton: n.confirmButton,
8
- presentation: {
9
- alignment: "center",
10
- icon: r === "delete" ? t : e,
11
- tone: r === "confirm" ? "default" : "destructive",
12
- actionWidth: "equal"
13
- }
14
- };
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;
15
85
  }
16
86
  //#endregion
17
- export { n as duplicateRemovalPrompt };
87
+ export { l as canOverrideApprovalPolicy, c as canReadCounterpartBankAccounts, u as getBillDetailActions };
@@ -1,41 +1,50 @@
1
- import { suspectedPayableDuplicates as e } from "../../util/dist/lib/payableDuplicates.js";
2
- import { DuplicateVerdict as t } from "../../data-access/dist/index21.js";
3
- import "../../data-access/dist/index.js";
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";
4
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js
5
- function n(t) {
6
- let n = new Map(t.map((e) => [e.id, e])), i = /* @__PURE__ */ new Map(), a = (e) => {
7
- let t = i.get(e);
8
- if (t === void 0 || t === e) return e;
9
- let n = a(t);
10
- return i.set(e, n), n;
11
- }, o = (e, t) => {
12
- let n = a(e), r = a(t);
13
- n !== r && i.set(n, r);
14
- };
15
- t.forEach((t) => {
16
- i.set(t.id, i.get(t.id) ?? t.id), e(t).forEach((e) => {
17
- n.has(e.matched_payable_id) && o(t.id, e.matched_payable_id);
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
18
34
  });
19
- });
20
- let s = /* @__PURE__ */ new Map();
21
- return t.forEach((e) => {
22
- let t = a(e.id);
23
- s.set(t, [...s.get(t) ?? [], e]);
24
- }), [...s.values()].map((e) => ({ members: [...e].sort(r) }));
25
- }
26
- function r(e, t) {
27
- return (e.created_at ?? "").localeCompare(t.created_at ?? "") || e.id.localeCompare(t.id);
28
- }
29
- function i(t) {
30
- if (t.length < 2) return;
31
- let n = new Set(t.map((e) => e.id));
32
- if (t.every((t) => e(t).every((e) => n.has(e.matched_payable_id)))) return [...t].sort(r)[0].id;
33
- }
34
- function a(n, r, i) {
35
- let a = e(n);
36
- if (r !== t.Keep || !i) return a;
37
- let o = a.find((e) => e.matched_payable_id === i);
38
- return o ? [o] : a;
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
+ };
39
48
  }
40
49
  //#endregion
41
- export { r as compareByArrival, a as duplicateVerdictMatches, n as groupSuspectedDuplicates, i as resolveDuplicateOriginalId };
50
+ export { a as APPROVAL_POLICY_RULE_COPY_EN, o as buildApprovalPolicyCardView };