@tesouro/embedded-components-react 0.5.212 → 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
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { useWidgetToken as v } from "./libs/tesouro-embedded-components-react/sh
14
14
  import { RefreshingRootWidgetProvider as y } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
15
15
  import { useDisclosuresAcceptanceSurface as b, useOwnWidgetConfig as x, useRefetchWidget as S, useWidgetConfig as C, useWidgetError as w, useWidgetInitStaleForToken as T, useWidgetLoading as E } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
16
16
  import { BankAccountsWidget as D } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
17
- import { BillPayWidget as O } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js";
17
+ import { BillPayWidget as O } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js";
18
18
  import { CardDetailsWidget as k } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js";
19
19
  import { CreditCardsWidget as A } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index11.js";
20
20
  import { DebitCardsWidget as j } from "./libs/tesouro-embedded-components-react/cards-widget/feature/dist/index12.js";
@@ -1,3 +1,3 @@
1
- import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js";
1
+ import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js";
2
2
  import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
3
3
  export { e as BillPayWidget };
@@ -0,0 +1,3 @@
1
+ import { usePayableOcrQueries as e } from "./index2.js";
2
+ import { useUploadPayableFromFileMutation as t } from "./index4.js";
3
+ export { e as usePayableOcrQueries, t as useUploadPayableFromFileMutation };
@@ -2,13 +2,14 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { withAuthEpoch as e } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import "../../../shared/data-access/dist/index.js";
8
- import { suspectedPayableDuplicates as n } from "../../util/dist/lib/payableDuplicates.js";
9
- import { payableOcrQueryOptions as r } from "./index13.js";
5
+ import { withAuthEpoch as e } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
6
+ import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import "../../../../shared/data-access/dist/index.js";
8
+ import { suspectedPayableDuplicates as n } from "../../../util/dist/lib/payableDuplicates.js";
9
+ import { payableOcrQueryOptions as r } from "../../../data-access/dist/lib/payableOcrQueryOptions.js";
10
+ import "../../../data-access/dist/invalidation.js";
10
11
  import { useQueries as i } from "@tanstack/react-query";
11
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index38.js
12
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js
12
13
  function a({ payableIds: a, enabled: o }) {
13
14
  let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = t(), f = !!(c && l) && (o === !0 || o === void 0);
14
15
  return i({
@@ -0,0 +1,33 @@
1
+ import { getPayablesId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
+ import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
3
+ import "../../../../shared/data-access/dist/index.js";
4
+ import { invalidatePayableQueries as n } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
5
+ import { nextPollInterval as r } from "../../../data-access/dist/lib/invalidatePayableQueries/payableProjectionPolling.js";
6
+ import { OCR_POLL_INTERVAL_MS as i } from "../../../data-access/dist/lib/payableOcrQueryOptions.js";
7
+ import "../../../data-access/dist/invalidation.js";
8
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index3.js
9
+ var a = 9e4;
10
+ async function o({ client: o, organizationId: s, payableId: c }) {
11
+ let l = Date.now() + a, u = i, d = !1;
12
+ for (; !d && Date.now() < l;) {
13
+ await new Promise((e) => {
14
+ setTimeout(e, u);
15
+ }), u = r(u);
16
+ try {
17
+ let { data: n } = await e({
18
+ client: o,
19
+ headers: t(s),
20
+ path: { payable_id: c }
21
+ });
22
+ d = n?.ocr_status !== "processing";
23
+ } catch {}
24
+ }
25
+ return await n({
26
+ client: o,
27
+ organizationId: s,
28
+ payableId: c,
29
+ includeLineItems: !0
30
+ }), d;
31
+ }
32
+ //#endregion
33
+ export { o as reconcileUploadedPayableOcr };
@@ -2,14 +2,13 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { patchPayablesId as e, postPayablesUploadFromFile as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { reconcileUploadedPayableOcr as i } from "./index14.js";
10
- import "./index15.js";
5
+ import { patchPayablesId as e, postPayablesUploadFromFile as t } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
+ import "../../../../shared/data-access/dist/index.js";
9
+ import { reconcileUploadedPayableOcr as i } from "./index3.js";
11
10
  import { useMutation as a } from "@tanstack/react-query";
12
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index35.js
11
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index4.js
13
12
  function o() {
14
13
  let { client: o, organizationId: s } = n();
15
14
  return a({
@@ -0,0 +1,7 @@
1
+ import "./index2.js";
2
+ import "./index3.js";
3
+ import "./index4.js";
4
+ import "./index5.js";
5
+ import { BillUploadWidget as e } from "./index8.js";
6
+ import "./index9.js";
7
+ export { e as BillUploadWidget };
@@ -0,0 +1,8 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index2.js
2
+ var e = (e) => [
3
+ "bill-pay",
4
+ "upload-queue",
5
+ e ?? ""
6
+ ];
7
+ //#endregion
8
+ export { e as billPayUploadQueueKey };
@@ -0,0 +1,13 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index3.js
2
+ var e = {
3
+ uploadingSummary: (e) => `Uploading and scanning ${e} ${e === 1 ? "file" : "files"}`,
4
+ completeSummary: (e) => `${e} ${e === 1 ? "upload" : "uploads"} complete`,
5
+ readyCaption: (e) => `${e} new ${e === 1 ? "bill" : "bills"} ready`,
6
+ duplicateCaption: (e) => `${e} possible ${e === 1 ? "duplicate" : "duplicates"}`,
7
+ failedCaption: (e) => `${e} failed to upload`,
8
+ tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
9
+ remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`,
10
+ billDeletedError: "This bill was already deleted"
11
+ };
12
+ //#endregion
13
+ export { e as BILL_UPLOAD_QUEUE_LABELS_EN };
@@ -0,0 +1,133 @@
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 "../../../data-access/dist/index.js";
14
+ import { billPayUploadQueueKey as o } from "./index2.js";
15
+ import { BILL_UPLOAD_QUEUE_LABELS_EN as s } from "./index3.js";
16
+ import { usePayableOcrQueries as c } from "../../data-access/dist/index2.js";
17
+ import { useUploadPayableFromFileMutation as l } from "../../data-access/dist/index4.js";
18
+ import "../../data-access/dist/index.js";
19
+ import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
20
+ import { useQuery as m, useQueryClient as h } from "@tanstack/react-query";
21
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js
22
+ function g({ onOpenBill: g, labels: _ } = {}) {
23
+ let v = {
24
+ ...s,
25
+ ..._
26
+ }, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationPending: w } = r(), T = h(), E = f(() => o(S), [S]), D = l(), [O, k] = p(!1), { data: A = [] } = m({
27
+ queryKey: E,
28
+ queryFn: () => T.getQueryData(E) ?? [],
29
+ staleTime: Infinity,
30
+ gcTime: Infinity,
31
+ initialData: []
32
+ }), j = u((e, t) => {
33
+ T.setQueryData(E, (n) => (n ?? []).map((n) => n.localId === e ? {
34
+ ...n,
35
+ ...t
36
+ } : n));
37
+ }, [T, E]), M = u((e) => {
38
+ T.setQueryData(E, (t) => (t ?? []).filter((t) => t.localId !== e));
39
+ }, [T, E]), N = u((t) => {
40
+ let n = (T.getQueryData(E) ?? []).filter((e) => e.status === "uploading").length;
41
+ if (t.length + n > 10) {
42
+ e.error(n > 0 ? b(10 - n) : y(10));
43
+ return;
44
+ }
45
+ k(!1);
46
+ for (let e of t) {
47
+ let t = crypto.randomUUID();
48
+ T.setQueryData(E, (n) => [...n ?? [], {
49
+ localId: t,
50
+ fileName: e.name,
51
+ status: "uploading"
52
+ }]), D.mutateAsync({ file: e }).then((e) => j(t, { payableId: e?.id })).catch(() => j(t, { status: "failed" }));
53
+ }
54
+ }, [
55
+ j,
56
+ T,
57
+ E,
58
+ b,
59
+ y,
60
+ D
61
+ ]), P = c({ payableIds: A.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
62
+ d(() => {
63
+ let e = /* @__PURE__ */ new Set();
64
+ for (let t of P) if (t.suspectedDuplicateOf.length !== 0) {
65
+ e.add(t.payableId);
66
+ for (let n of t.suspectedDuplicateOf) e.add(n);
67
+ }
68
+ for (let { payableId: t, ocrStatus: n, isError: r } of P) {
69
+ let i = A.find((e) => e.payableId === t && e.status === "uploading");
70
+ i && (n === "success" ? j(i.localId, { status: e.has(t) ? "duplicate" : "ready" }) : (r || n === "error" || n === "canceled") && j(i.localId, { status: "failed" }));
71
+ }
72
+ for (let t of A) t.status === "ready" && t.payableId && e.has(t.payableId) && j(t.localId, { status: "duplicate" });
73
+ }, [
74
+ A,
75
+ P,
76
+ j
77
+ ]);
78
+ 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) => ({
79
+ id: r.localId,
80
+ fileName: r.fileName,
81
+ status: r.status,
82
+ onOpen: (r.status === "ready" || r.status === "duplicate") && r.payableId && g ? () => {
83
+ let o = r.payableId;
84
+ T.fetchQuery({
85
+ ...n(t({
86
+ client: x,
87
+ headers: i(S),
88
+ path: { payable_id: o }
89
+ }), {
90
+ authEpoch: C,
91
+ organizationPending: w
92
+ }),
93
+ retry: !1
94
+ }).catch((e) => {
95
+ if (a(e)) return "deleted";
96
+ }).then((t) => {
97
+ t === "deleted" ? e.error(v.billDeletedError) : g(o), M(r.localId);
98
+ });
99
+ } : void 0
100
+ }), B = F.length ? [{
101
+ id: "in-progress",
102
+ items: A.map(z)
103
+ }] : [
104
+ ...I.length ? [{
105
+ id: "ready",
106
+ caption: v.readyCaption(I.length),
107
+ items: I.map(z)
108
+ }] : [],
109
+ ...L.length ? [{
110
+ id: "duplicate",
111
+ caption: v.duplicateCaption(L.length),
112
+ items: L.map(z)
113
+ }] : [],
114
+ ...R.length ? [{
115
+ id: "failed",
116
+ caption: v.failedCaption(R.length),
117
+ items: R.map(z)
118
+ }] : []
119
+ ], V = I.length + L.length, H = F.length ? v.uploadingSummary(A.length) : V ? v.completeSummary(V) : v.failedCaption(R.length), U = u(() => {
120
+ T.setQueryData(E, []);
121
+ }, [T, E]);
122
+ return {
123
+ enqueue: N,
124
+ sections: B,
125
+ summaryLabel: H,
126
+ collapsed: O,
127
+ onToggleCollapsed: u(() => k((e) => !e), []),
128
+ onClose: U,
129
+ isVisible: A.length > 0
130
+ };
131
+ }
132
+ //#endregion
133
+ export { g as useBillUploadQueue };
@@ -0,0 +1,3 @@
1
+ import "./index2.js";
2
+ import "./index3.js";
3
+ import "./index4.js";
@@ -0,0 +1,5 @@
1
+ import { BILL_PAY_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index6.js
3
+ var t = `${e}.bill_upload`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as BillUploadWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -0,0 +1,4 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index7.js
2
+ var e = { tray: "bill-pay-upload-tray" };
3
+ //#endregion
4
+ export { e as billUploadWidgetTestIds };
@@ -0,0 +1,56 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
6
+ import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
7
+ import "../../../../shared/feature/dist/index.js";
8
+ import { useBillUploadQueue as n } from "./index4.js";
9
+ import "./index5.js";
10
+ import { BillUploadWidgetAnalyticsEvent as r, WIDGET_NAME as i } from "./index6.js";
11
+ import { billUploadWidgetTestIds as a } from "./index7.js";
12
+ import { BillUploadStatusTray as o } from "../../ui/dist/index4.js";
13
+ import "../../ui/dist/index.js";
14
+ import { useEffect as s, useImperativeHandle as c } from "react";
15
+ import { jsx as l } from "react/jsx-runtime";
16
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index8.js
17
+ function u({ onOpenBill: t, labels: i, ref: u }) {
18
+ let d = e();
19
+ s(() => {
20
+ d(r.Mounted);
21
+ }, [d]);
22
+ let f = n({
23
+ onOpenBill: t,
24
+ labels: i?.queue
25
+ });
26
+ return c(u, () => ({ enqueue: f.enqueue }), [f.enqueue]), f.isVisible ? /* @__PURE__ */ l(o, {
27
+ sections: f.sections,
28
+ summaryLabel: f.summaryLabel,
29
+ collapsed: f.collapsed,
30
+ onToggleCollapsed: f.onToggleCollapsed,
31
+ onClose: f.onClose,
32
+ labels: i?.tray,
33
+ testId: a.tray
34
+ }) : null;
35
+ }
36
+ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
37
+ return /* @__PURE__ */ l(t, {
38
+ widgetName: i,
39
+ baseUrl: e,
40
+ widgetToken: n,
41
+ organizationId: r,
42
+ configClient: a,
43
+ gatewayRouting: o,
44
+ linkComponent: s,
45
+ implementation: c,
46
+ uiFramework: d,
47
+ errorFallback: f,
48
+ onError: p,
49
+ analytics: m,
50
+ disclosuresAcceptance: h,
51
+ providerLabels: g,
52
+ children: /* @__PURE__ */ l(u, { ..._ })
53
+ });
54
+ }
55
+ //#endregion
56
+ export { d as BillUploadWidget, d as default };
@@ -0,0 +1,4 @@
1
+ import "./index2.js";
2
+ import { BillUploadStatusTray as e } from "./index4.js";
3
+ import "./index6.js";
4
+ export { e as BillUploadStatusTray };
@@ -0,0 +1,10 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index2.js
2
+ var e = {
3
+ collapse: "Collapse upload status",
4
+ expand: "Expand upload status",
5
+ close: "Close upload status",
6
+ statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : e === "duplicate" ? "Possible duplicate" : "Failed",
7
+ openItem: (e) => `Open ${e}`
8
+ };
9
+ //#endregion
10
+ export { e as BILL_UPLOAD_STATUS_TRAY_LABELS_EN };
@@ -0,0 +1,9 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js
2
+ var e = {
3
+ uploading: "ttw:text-muted-foreground",
4
+ ready: "ttw:text-emerald-600",
5
+ duplicate: "ttw:text-orange-600",
6
+ failed: "ttw:text-destructive"
7
+ };
8
+ //#endregion
9
+ export { e as UPLOAD_ITEM_ICON_TONE };
@@ -0,0 +1,93 @@
1
+ import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index2.js";
3
+ import { UPLOAD_ITEM_ICON_TONE as n } from "./index3.js";
4
+ import { useId as r } from "react";
5
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, CopyX as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js
8
+ function h({ status: t }) {
9
+ let r = e("ttw:size-4", n[t]);
10
+ return t === "uploading" ? /* @__PURE__ */ a(f, {
11
+ "aria-hidden": !0,
12
+ className: e(r, "ttw:animate-spin")
13
+ }) : a(t === "ready" ? s : t === "duplicate" ? d : m, {
14
+ "aria-hidden": !0,
15
+ className: r
16
+ });
17
+ }
18
+ function g({ item: t, labels: n }) {
19
+ let s = r(), c = /* @__PURE__ */ o(i, { children: [
20
+ /* @__PURE__ */ a(h, { status: t.status }),
21
+ /* @__PURE__ */ a("span", {
22
+ id: s,
23
+ className: "ttw:sr-only",
24
+ children: n.statusLabel(t.status)
25
+ }),
26
+ /* @__PURE__ */ a("span", {
27
+ className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
28
+ children: t.fileName
29
+ }),
30
+ t.onOpen ? /* @__PURE__ */ a(l, {
31
+ "aria-hidden": !0,
32
+ className: "ttw:size-4"
33
+ }) : null
34
+ ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
+ return t.onOpen ? /* @__PURE__ */ a("button", {
36
+ type: "button",
37
+ onClick: t.onOpen,
38
+ "aria-describedby": s,
39
+ "aria-label": n.openItem(t.fileName),
40
+ className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
41
+ children: c
42
+ }) : /* @__PURE__ */ a("div", {
43
+ "aria-describedby": s,
44
+ className: u,
45
+ children: c
46
+ });
47
+ }
48
+ function _({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
49
+ let f = {
50
+ ...t,
51
+ ...d
52
+ };
53
+ return /* @__PURE__ */ o("div", {
54
+ className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
55
+ "data-testid": l,
56
+ children: [/* @__PURE__ */ o("div", {
57
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
58
+ children: [
59
+ /* @__PURE__ */ a("span", {
60
+ "aria-live": "polite",
61
+ className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
62
+ children: n
63
+ }),
64
+ /* @__PURE__ */ a("button", {
65
+ type: "button",
66
+ onClick: i,
67
+ "aria-label": r ? f.expand : f.collapse,
68
+ "aria-expanded": !r,
69
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
70
+ children: a(r ? u : c, { className: "ttw:size-4" })
71
+ }),
72
+ /* @__PURE__ */ a("button", {
73
+ type: "button",
74
+ onClick: s,
75
+ "aria-label": f.close,
76
+ className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
+ children: /* @__PURE__ */ a(p, { className: "ttw:size-4" })
78
+ })
79
+ ]
80
+ }), r ? null : /* @__PURE__ */ a("div", {
81
+ className: "ttw:max-h-96 ttw:overflow-y-auto",
82
+ children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
83
+ className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
84
+ children: e.caption
85
+ }) : null, e.items.map((e) => /* @__PURE__ */ a(g, {
86
+ item: e,
87
+ labels: f
88
+ }, e.id))] }, e.id))
89
+ })]
90
+ });
91
+ }
92
+ //#endregion
93
+ export { _ as BillUploadStatusTray, _ as default };
@@ -0,0 +1,2 @@
1
+ import "./index2.js";
2
+ import "./index4.js";
@@ -1,35 +1,31 @@
1
1
  import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
2
2
  import "../../../shared/data-access/dist/index.js";
3
- import "./index2.js";
4
- import { useApprovePayableApprovalRequestMutation as t, usePayableApprovalRequestsQuery as n, useRejectPayableApprovalRequestMutation as r } from "./index16.js";
5
- import { usePayableHistoryQuery as i } from "./index17.js";
6
- import { useAllPayableLineItemsQuery as a, useReplacePayableLineItemsMutation as o } from "./index18.js";
7
- import { usePayablePaymentRecordsQuery as s } from "./index19.js";
8
- import { useSchedulePaymentMutation as c } from "./index20.js";
9
- import { DuplicateVerdict as l, useApplyDuplicateVerdictsMutation as u } from "./index21.js";
10
- import { useAttachPayableFileMutation as d } from "./index22.js";
11
- import { useCancelPayableMutation as f } from "./index23.js";
12
- import { useCancelScheduledPaymentMutation as p } from "./index24.js";
13
- import { useCreatePayableMutation as m } from "./index25.js";
14
- import { useDeletePayableFileMutation as h } from "./index26.js";
15
- import { useDeletePayableMutation as g } from "./index27.js";
16
- import { useForceApprovePayableMutation as _ } from "./index28.js";
17
- import { useForceRejectPayableMutation as v } from "./index29.js";
18
- import { useMarkPayableAsPaidMutation as y } from "./index30.js";
19
- import "./index31.js";
20
- import { useReopenPayableMutation as b } from "./index32.js";
21
- import { useSubmitPayableForApprovalMutation as x } from "./index33.js";
22
- import { useUpdatePayableMutation as S } from "./index34.js";
23
- import { useUploadPayableFromFileMutation as C } from "./index35.js";
24
- import { useValidatePayableMutation as w } from "./index36.js";
25
- import "./index37.js";
26
- import { usePayableOcrQueries as T } from "./index38.js";
27
- import { useFirstPayablesPagesQuery as E } from "./index39.js";
28
- import { usePayableQuery as D } from "./index41.js";
29
- import { usePayablesByIdsQueries as O } from "./index42.js";
30
- import { usePayablesCountQueries as k } from "./index43.js";
31
- import { usePayablesQuery as A } from "./index44.js";
32
- import { usePayablesTotalCountQuery as j } from "./index45.js";
33
- import "./index46.js";
34
- import { usePayableSuggestionsQuery as M } from "./index47.js";
35
- export { l as DuplicateVerdict, a as useAllPayableLineItemsQuery, u as useApplyDuplicateVerdictsMutation, t as useApprovePayableApprovalRequestMutation, d as useAttachPayableFileMutation, f as useCancelPayableMutation, p as useCancelScheduledPaymentMutation, m as useCreatePayableMutation, h as useDeletePayableFileMutation, g as useDeletePayableMutation, e as useEmbedApi, E as useFirstPayablesPagesQuery, _ as useForceApprovePayableMutation, v as useForceRejectPayableMutation, y as useMarkPayableAsPaidMutation, n as usePayableApprovalRequestsQuery, i as usePayableHistoryQuery, T as usePayableOcrQueries, s as usePayablePaymentRecordsQuery, D as usePayableQuery, M as usePayableSuggestionsQuery, O as usePayablesByIdsQueries, k as usePayablesCountQueries, A as usePayablesQuery, j as usePayablesTotalCountQuery, r as useRejectPayableApprovalRequestMutation, b as useReopenPayableMutation, o as useReplacePayableLineItemsMutation, c as useSchedulePaymentMutation, x as useSubmitPayableForApprovalMutation, S as useUpdatePayableMutation, C as useUploadPayableFromFileMutation, w as useValidatePayableMutation };
3
+ import { DuplicateVerdict as t } from "../../util/dist/lib/duplicateVerdict.js";
4
+ import "./lib/queryKeys.js";
5
+ import { useApprovePayableApprovalRequestMutation as n, usePayableApprovalRequestsQuery as r, useRejectPayableApprovalRequestMutation as i } from "./lib/usePayableApprovalRequests.js";
6
+ import { usePayableHistoryQuery as a } from "./lib/usePayableHistoryQuery.js";
7
+ import { useAllPayableLineItemsQuery as o, useReplacePayableLineItemsMutation as s } from "./lib/usePayableLineItems.js";
8
+ import { usePayablePaymentRecordsQuery as c } from "./lib/usePayablePaymentRecordsQuery.js";
9
+ import { useApplyDuplicateVerdictsMutation as l } from "./lib/useApplyDuplicateVerdictsMutation.js";
10
+ import { useAttachPayableFileMutation as u } from "./lib/usePayableMutations/useAttachPayableFileMutation.js";
11
+ import { useCancelPayableMutation as d } from "./lib/usePayableMutations/useCancelPayableMutation.js";
12
+ import { useCancelScheduledPaymentMutation as f } from "./lib/usePayableMutations/useCancelScheduledPaymentMutation.js";
13
+ import { useCreatePayableMutation as p } from "./lib/usePayableMutations/useCreatePayableMutation.js";
14
+ import { useDeletePayableFileMutation as m } from "./lib/usePayableMutations/useDeletePayableFileMutation.js";
15
+ import { useDeletePayableMutation as h } from "./lib/usePayableMutations/useDeletePayableMutation.js";
16
+ import { useForceApprovePayableMutation as g } from "./lib/usePayableMutations/useForceApprovePayableMutation.js";
17
+ import { useForceRejectPayableMutation as _ } from "./lib/usePayableMutations/useForceRejectPayableMutation.js";
18
+ import { useReopenPayableMutation as v } from "./lib/usePayableMutations/useReopenPayableMutation.js";
19
+ import { useSubmitPayableForApprovalMutation as y } from "./lib/usePayableMutations/useSubmitPayableForApprovalMutation.js";
20
+ import { useUpdatePayableMutation as b } from "./lib/usePayableMutations/useUpdatePayableMutation.js";
21
+ import { useValidatePayableMutation as x } from "./lib/usePayableMutations/useValidatePayableMutation.js";
22
+ import "./lib/usePayableMutations/index.js";
23
+ import { useFirstPayablesPagesQuery as S } from "./lib/usePayablesQueries/useFirstPayablesPagesQuery.js";
24
+ import { usePayableQuery as C } from "./lib/usePayablesQueries/usePayableQuery.js";
25
+ import { usePayablesByIdsQueries as w } from "./lib/usePayablesQueries/usePayablesByIdsQueries.js";
26
+ import { usePayablesCountQueries as T } from "./lib/usePayablesQueries/usePayablesCountQueries.js";
27
+ import { usePayablesQuery as E } from "./lib/usePayablesQueries/usePayablesQuery.js";
28
+ import { usePayablesTotalCountQuery as D } from "./lib/usePayablesQueries/usePayablesTotalCountQuery.js";
29
+ import "./lib/usePayablesQueries/index.js";
30
+ import { usePayableSuggestionsQuery as O } from "./lib/usePayableSuggestionsQuery.js";
31
+ export { t as DuplicateVerdict, o as useAllPayableLineItemsQuery, l as useApplyDuplicateVerdictsMutation, n as useApprovePayableApprovalRequestMutation, u as useAttachPayableFileMutation, d as useCancelPayableMutation, f as useCancelScheduledPaymentMutation, p as useCreatePayableMutation, m as useDeletePayableFileMutation, h as useDeletePayableMutation, e as useEmbedApi, S as useFirstPayablesPagesQuery, g as useForceApprovePayableMutation, _ as useForceRejectPayableMutation, r as usePayableApprovalRequestsQuery, a as usePayableHistoryQuery, c as usePayablePaymentRecordsQuery, C as usePayableQuery, O as usePayableSuggestionsQuery, w as usePayablesByIdsQueries, T as usePayablesCountQueries, E as usePayablesQuery, D as usePayablesTotalCountQuery, i as useRejectPayableApprovalRequestMutation, v as useReopenPayableMutation, s as useReplacePayableLineItemsMutation, y as useSubmitPayableForApprovalMutation, b as useUpdatePayableMutation, x as useValidatePayableMutation };
@@ -0,0 +1,11 @@
1
+ import { invalidatePayableQueries as e } from "./lib/invalidatePayableQueries/invalidatePayableQueries.js";
2
+ import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as t, PAYABLE_PROJECTION_POLL_TIMEOUT_MS as n, nextPollInterval as r } from "./lib/invalidatePayableQueries/payableProjectionPolling.js";
3
+ import "./lib/invalidatePayableQueries/approvalDecisionQueries.js";
4
+ import "./lib/invalidatePayableQueries/approvalRequestWatch.js";
5
+ import "./lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js";
6
+ import { hasLiveScheduledRecord as i } from "./lib/invalidatePayableQueries/hasLiveScheduledRecord.js";
7
+ import "./lib/invalidatePayableQueries/reconcileCancelledPaymentQueries.js";
8
+ import "./lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js";
9
+ import "./lib/invalidatePayableQueries/index.js";
10
+ import { OCR_POLL_INTERVAL_MS as a, payableOcrQueryOptions as o } from "./lib/payableOcrQueryOptions.js";
11
+ export { a as OCR_POLL_INTERVAL_MS, t as PAYABLE_PROJECTION_POLL_INTERVAL_MS, n as PAYABLE_PROJECTION_POLL_TIMEOUT_MS, i as hasLiveScheduledRecord, e as invalidatePayableQueries, r as nextPollInterval, o as payableOcrQueryOptions };
@@ -1,11 +1,11 @@
1
- import { getPayablesId as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
- import { invalidateAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
3
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
4
- import "../../../shared/data-access/dist/index.js";
5
- import { approvalRequestsInvalidationKey as r } from "./index2.js";
6
- import { invalidatePayableQueries as i } from "./index4.js";
7
- import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as a, nextPollInterval as o } from "./index5.js";
8
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js
1
+ import { getPayablesId as e } from "../../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
+ import { invalidateAllClients as t } from "../../../../../shared/data-access/dist/lib/clientRegistry.js";
3
+ import { organizationHeaders as n } from "../../../../../shared/data-access/dist/lib/organizationHeaders.js";
4
+ import "../../../../../shared/data-access/dist/index.js";
5
+ import { approvalRequestsInvalidationKey as r } from "../queryKeys.js";
6
+ import { invalidatePayableQueries as i } from "./invalidatePayableQueries.js";
7
+ import { PAYABLE_PROJECTION_POLL_INTERVAL_MS as a, nextPollInterval as o } from "./payableProjectionPolling.js";
8
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/approvalDecisionQueries.js
9
9
  var s = /* @__PURE__ */ new Set(["new", "approve_in_progress"]), c = 6e4;
10
10
  async function l({ client: e, organizationId: n, payableId: a }) {
11
11
  await t(r({
@@ -1,8 +1,8 @@
1
- import { getApprovalRequests as e, getPayablesIdHistory as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
3
- import "../../../shared/data-access/dist/index.js";
4
- import { NEWEST_REQUEST_FIRST as r, PAYABLE_OBJECT_TYPE as i } from "./index2.js";
5
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js
1
+ import { getApprovalRequests as e, getPayablesIdHistory as t } from "../../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
2
+ import { organizationHeaders as n } from "../../../../../shared/data-access/dist/lib/organizationHeaders.js";
3
+ import "../../../../../shared/data-access/dist/index.js";
4
+ import { NEWEST_REQUEST_FIRST as r, PAYABLE_OBJECT_TYPE as i } from "../queryKeys.js";
5
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/approvalRequestWatch.js
6
6
  var a = 100;
7
7
  async function o({ client: t, organizationId: o, payableId: s }) {
8
8
  try {
@@ -1,7 +1,7 @@
1
- import { cancelAllClients as e, removeInactiveFromAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
2
- import "../../../shared/data-access/dist/index.js";
3
- import { payableHistoryInvalidationKey as n, payableInvalidationKey as r, payableLineItemsInvalidationKey as i } from "./index2.js";
4
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js
1
+ import { cancelAllClients as e, removeInactiveFromAllClients as t } from "../../../../../shared/data-access/dist/lib/clientRegistry.js";
2
+ import "../../../../../shared/data-access/dist/index.js";
3
+ import { payableHistoryInvalidationKey as n, payableInvalidationKey as r, payableLineItemsInvalidationKey as i } from "../queryKeys.js";
4
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/cleanUpDeletedPayableQueries.js
5
5
  async function a({ client: a, organizationId: o, payableId: s }) {
6
6
  if (!s) return;
7
7
  let c = {