@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,11 +1,187 @@
1
+ import { AWAITING_APPROVAL_LABEL_EN as e, AWAITING_APPROVAL_UNKNOWN_LABEL_EN as t, BILL_DETAIL_ACTIONS_LABELS_EN as n, PAYMENT_HISTORY_LABELS_EN as r, SCHEDULED_RELATIVE_DAY_LABELS_EN as i, SCHEDULED_STATUS_BADGE_LABEL_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s, mergePaymentHistoryMethodLabels as c } from "../../util/dist/lib/billDetailLabels.js";
2
+ import { APPROVAL_POLICY_RULE_COPY_EN as l } from "./index8.js";
3
+ import { PAYABLE_AUDIT_HISTORY_LABELS_EN as u } from "./index22.js";
4
+ import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as d } from "./index23.js";
5
+ import { ACH_FIELD_GROUP_LABELS_EN as f } from "../../../shared/counterpart-management/ui/dist/index2.js";
6
+ import "../../../shared/counterpart-management/ui/dist/index.js";
7
+ import { DISCARD_CHANGES_DIALOG_LABELS_EN as p } from "../../ui/dist/index64.js";
8
+ import { BILL_REJECTED_BANNER_LABELS_EN as m } from "../../ui/dist/index72.js";
9
+ import { UNSAVED_BILL_DIALOG_LABELS_EN as h } from "../../ui/dist/index98.js";
10
+ import "../../ui/dist/index.js";
1
11
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js
2
- function e(e) {
3
- let t = [];
4
- for (let n of e.steps) n.chips.some((e) => e.approved) || t.push({
5
- id: n.id,
6
- names: n.chips.map((e) => e.label)
7
- });
8
- return t;
12
+ var g = {
13
+ unmappedValidationError: (e, t) => `${e}: ${t}`,
14
+ unknownValidationField: "(unknown field)",
15
+ requiredField: "This field is required.",
16
+ saveFailed: "We could not save this bill. Try again.",
17
+ discountTaxBlockedByLineItems: "Discount and Tax can't be saved on a bill with line items. Remove them, then save again.",
18
+ vendorResolutionFailed: "We couldn't create this vendor automatically. Select or add a vendor before submitting.",
19
+ finalizeFailed: "We could not submit this bill. Try again.",
20
+ draftSaved: "Bill saved as a draft.",
21
+ submittedSaved: "Bill updated.",
22
+ submittedDemoted: "Bill updated. It moved back to Drafts because some required details are missing.",
23
+ billFinalized: "Bill submitted for approval.",
24
+ numbersOnly: "Enter numbers only.",
25
+ unreadableMoney: "Enter a valid amount.",
26
+ unusableQuantity: "Enter a quantity greater than 0.",
27
+ lineItemsNeedAttention: "Check the highlighted line items before saving.",
28
+ unreadableDiscount: "Enter a valid discount amount.",
29
+ unreadableTax: "Enter a valid tax amount.",
30
+ unreadableTotal: "Enter a valid total amount.",
31
+ totalNotGreaterThanZero: "Total amount must be greater than $0.",
32
+ poNumberTooLong: "PO number must be 255 characters or fewer.",
33
+ implausibleInvoiceDate: "Enter an invoice date within the last 10 years, no more than 30 days from today.",
34
+ implausibleDueDate: "Enter a due date within the last 10 years and next 5 years.",
35
+ dueBeforeInvoiceDate: "Due date must be on or after the invoice date."
36
+ }, _ = {
37
+ paymentInstructionsValue: (e) => `Account ending in ${e}`,
38
+ noMethod: "No payment method on file",
39
+ paymentMethodLoading: "Loading payment method...",
40
+ paymentMethodUnavailable: "We could not load payment methods. Try again.",
41
+ searchFailed: "We could not load vendors. Try again.",
42
+ vendorDetailsFailed: "We could not load this vendor. Try again.",
43
+ pendingVendorDescription: "Will be created when submitted",
44
+ bankAccountSaveFailed: "We could not save these payment instructions. Try again."
45
+ }, v = {
46
+ attachFailed: "We could not attach that file. Try again.",
47
+ deleteFailed: "We could not remove that document. Try again.",
48
+ noDocument: "No document attached to this bill.",
49
+ pendingDeletionNotice: "This document will be removed when you save this bill.",
50
+ preview: d
51
+ }, y = {
52
+ ...r,
53
+ notProvided: "Not provided",
54
+ paymentInstructionsValue: (e) => `Account ending in ${e}`,
55
+ paymentInstructionsNotSet: "Not set",
56
+ invoiceDateRow: "Invoice date",
57
+ dueDateRow: "Due date",
58
+ invoiceNumberRow: "Invoice number",
59
+ glCodeMissing: "GL code not specified",
60
+ glCodeUnavailable: "GL code unavailable",
61
+ qtyPriceValue: (e, t) => `${e} x ${t}`,
62
+ qtyOnlyValue: (e) => e,
63
+ subtotalRow: "Subtotal",
64
+ taxRow: "Tax",
65
+ discountRow: "Discounts",
66
+ totalRow: "Total",
67
+ paidOnLabel: (e) => `Paid on ${e}`,
68
+ paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
69
+ paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again.",
70
+ rejectedByOn: (e, t) => `Rejected by ${e} on ${t}`,
71
+ rejectedOn: (e) => `Rejected on ${e}`,
72
+ rejectionMessage: (e) => `"${e}"`
73
+ }, b = {
74
+ newTitle: "New bill",
75
+ extractedTitle: (e) => `Bill from ${e}`,
76
+ viewTitle: (e) => `Bill from ${e}`,
77
+ readOnlyTitle: "Bill details",
78
+ addedOn: (e) => `Added on ${e}`,
79
+ unsavedChanges: h,
80
+ discardChanges: p,
81
+ scheduledRelativeDay: i,
82
+ scheduledSummary: o,
83
+ scheduledStatusBadge: a,
84
+ awaitingApprovalNotice: e,
85
+ awaitingApprovalUnknownNotice: t,
86
+ actions: n,
87
+ detail: y,
88
+ history: u,
89
+ approvalPolicyCopy: l,
90
+ deleteDraft: {
91
+ menuItem: "Delete draft",
92
+ dialog: {
93
+ title: "Delete this draft?",
94
+ description: "The draft and anything entered on it are removed. This can't be undone.",
95
+ confirmButton: "Delete draft"
96
+ },
97
+ error: "Couldn't delete this draft. Try again."
98
+ },
99
+ lineItemsGlCodeUnavailable: {
100
+ loadError: "Couldn't load GL codes",
101
+ noAccess: "You don't have access to GL codes",
102
+ empty: "No GL codes set up yet"
103
+ },
104
+ rejectedBanner: m
105
+ };
106
+ function x(e) {
107
+ return {
108
+ ...b,
109
+ ...e,
110
+ actions: s(e?.actions),
111
+ detail: {
112
+ ...b.detail,
113
+ ...e?.detail,
114
+ paymentHistoryMethodLabels: c(e?.detail?.paymentHistoryMethodLabels)
115
+ },
116
+ history: {
117
+ ...b.history,
118
+ ...e?.history
119
+ },
120
+ lineItemsGlCodeUnavailable: {
121
+ ...b.lineItemsGlCodeUnavailable,
122
+ ...e?.lineItemsGlCodeUnavailable
123
+ },
124
+ unsavedChanges: {
125
+ ...b.unsavedChanges,
126
+ ...e?.unsavedChanges
127
+ },
128
+ discardChanges: {
129
+ ...b.discardChanges,
130
+ ...e?.discardChanges
131
+ },
132
+ rejectedBanner: {
133
+ ...b.rejectedBanner,
134
+ ...e?.rejectedBanner
135
+ },
136
+ approvalPolicyCopy: {
137
+ ...b.approvalPolicyCopy,
138
+ ...e?.approvalPolicyCopy
139
+ },
140
+ scheduledRelativeDay: {
141
+ ...b.scheduledRelativeDay,
142
+ ...e?.scheduledRelativeDay
143
+ },
144
+ deleteDraft: {
145
+ ...b.deleteDraft,
146
+ ...e?.deleteDraft,
147
+ dialog: (() => {
148
+ let t = {
149
+ ...b.deleteDraft.dialog,
150
+ ...e?.deleteDraft?.dialog
151
+ };
152
+ return delete t.reason, t;
153
+ })()
154
+ }
155
+ };
156
+ }
157
+ var S = {
158
+ createTitle: "New vendor",
159
+ editTitle: "Edit vendor",
160
+ switchVendorFieldLabel: "Switch to a different vendor",
161
+ nameLabel: "Business name",
162
+ addAddress: "Add address (optional)",
163
+ cancel: "Cancel",
164
+ save: "Save",
165
+ cancelAriaLabel: "Cancel vendor",
166
+ saveAriaLabel: "Save vendor",
167
+ paymentInstructionsHeading: "Payment instructions",
168
+ paymentInstructionsDescription: "How and where will the money be sent. This information is required to send a payment.",
169
+ paymentInstructionsExtracted: "We read these from the bill. Check them before saving.",
170
+ ach: f
171
+ };
172
+ function C(e) {
173
+ return {
174
+ ...S,
175
+ ...e,
176
+ ach: {
177
+ ...S.ach,
178
+ ...e?.ach,
179
+ fieldMarkers: {
180
+ ...S.ach.fieldMarkers,
181
+ ...e?.ach?.fieldMarkers
182
+ }
183
+ }
184
+ };
9
185
  }
10
186
  //#endregion
11
- export { e as buildPendingApproverGroupsFromCardView };
187
+ export { g as BILL_CREATE_MESSAGE_LABELS_EN, b as BILL_CREATE_SCREEN_LABELS_EN, y as BILL_DETAIL_VIEW_LABELS_EN, v as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, S as VENDOR_INLINE_FORM_LABELS_EN, _ as VENDOR_SECTION_PROPS_LABELS_EN, x as mergeBillCreateScreenCopy, C as mergeVendorInlineFormLabels };
@@ -2,16 +2,79 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { usePayableHistoryQuery as e } from "../../data-access/dist/index17.js";
5
+ import { createSourceDocumentPreview as e } from "./index23.js";
6
+ import { SourceDocumentPanel as t } from "../../ui/dist/index96.js";
7
+ import "../../ui/dist/index.js";
8
+ import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as n } from "./index24.js";
9
+ import { useAttachPayableFileMutation as r } from "../../data-access/dist/lib/usePayableMutations/useAttachPayableFileMutation.js";
6
10
  import "../../data-access/dist/index.js";
11
+ import { useEffect as i, useState as a } from "react";
12
+ import { jsx as o } from "react/jsx-runtime";
7
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js
8
- var t = "submitted_for_approval";
9
- function n({ payableId: n, enabled: r = !0 }) {
10
- let i = e(n, { enabled: r });
11
- return {
12
- roundStartedAt: (i.data?.data ?? []).reduce((e, n) => n.event_type === t ? n.timestamp : e, void 0),
13
- isLoading: i.isLoading
14
- };
14
+ function s(e) {
15
+ let [t, n] = a();
16
+ return i(() => {
17
+ if (!e) {
18
+ n(void 0);
19
+ return;
20
+ }
21
+ let t = URL.createObjectURL(e);
22
+ return n(t), () => URL.revokeObjectURL(t);
23
+ }, [e]), t;
24
+ }
25
+ function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, readOnly: u, staging: d, deletion: f, labels: p }) {
26
+ let { stagedFile: m, onFileStaged: h, onClearStagedFile: g, isSaving: _ } = d ?? {}, { isPending: v, onRequest: y, onDetachNow: b, isDeleting: x, hasFailed: S } = f ?? {}, C = {
27
+ ...n,
28
+ ...p,
29
+ preview: {
30
+ ...n.preview,
31
+ ...p?.preview
32
+ }
33
+ }, w = r(), T = s(m), E = !!(a && !v || m);
34
+ if (!E && (c || w.isPending)) return /* @__PURE__ */ o(t, {
35
+ mode: "loading",
36
+ fileName: l
37
+ });
38
+ if (!E && u) return /* @__PURE__ */ o("div", {
39
+ className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-sm ttw:text-muted-foreground",
40
+ children: C.noDocument
41
+ });
42
+ if (!E) return /* @__PURE__ */ o(t, {
43
+ mode: "upload",
44
+ uploadStatus: w.isPending || x ? "uploading" : "idle",
45
+ uploadErrorMessage: w.isError ? C.attachFailed : S ? C.deleteFailed : void 0,
46
+ noticeMessage: v && !S ? C.pendingDeletionNotice : void 0,
47
+ onFilesSelected: (e) => {
48
+ let [t] = e;
49
+ if (t) {
50
+ if (i) {
51
+ let e = () => w.mutate({
52
+ path: { payable_id: i },
53
+ file: t
54
+ });
55
+ if (v && b) {
56
+ b().then(e, () => void 0);
57
+ return;
58
+ }
59
+ e();
60
+ } else h?.(t);
61
+ }
62
+ }
63
+ });
64
+ let D = a?.name ?? m?.name ?? "", O = e(a || {
65
+ name: D,
66
+ url: T ?? "",
67
+ mimetype: m?.type ?? ""
68
+ }, C.preview);
69
+ return /* @__PURE__ */ o(t, {
70
+ mode: "document",
71
+ fileName: D,
72
+ preview: O,
73
+ isDeleting: x,
74
+ deleteErrorMessage: S ? C.deleteFailed : void 0,
75
+ onDownload: a ? () => window.open(a.url, "_blank", "noopener,noreferrer") : void 0,
76
+ onDelete: u ? void 0 : a && i ? y : _ ? void 0 : g
77
+ });
15
78
  }
16
79
  //#endregion
17
- export { n as usePayableApprovalRoundStart };
80
+ export { c as SourceDocumentContainer, c as default };
@@ -1,69 +1,35 @@
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 { useAllOrganizationRolesQuery as n } from "../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
8
- import { useAllOrganizationUsersQuery as r } from "../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
9
- import "../../../shared/data-access/dist/index.js";
10
- import { useWidgetConfig as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
- import "../../../shared/feature/dist/index.js";
12
- import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/index16.js";
13
- import "../../data-access/dist/index.js";
14
- import { useGetApprovalPoliciesQuery as o } from "../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
15
- import "../../../shared/approval-policy/data-access/dist/index.js";
16
- import { buildApprovalPolicyCardView as s } from "./index22.js";
17
- import { currentApprovalRound as c } from "./index3.js";
18
- import { usePayableApprovalRoundStart as l } from "./index25.js";
19
- import { buildPendingApproverGroups as u } from "./index23.js";
20
- import { buildPendingApproverGroupsFromCardView as d } from "./index24.js";
21
- import { useMemo as f } from "react";
22
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js
23
- function p({ payableId: p, approvalPolicyId: m, enabled: h = !0, copy: g }) {
24
- let _ = h && !!m, { initResponse: v } = i(), y = e(v?.scopes, [t.ApprovalPolicyReadOrg]), b = e(v?.scopes, [t.ApprovalRequestReadOrg]), x = e(v?.scopes, [t.RoleReadOrg]), S = e(v?.scopes, [t.UserReadOrg]), C = o({ enabled: _ && y }), w = n({ enabled: _ && x }), T = r({ enabled: _ && S }), E = a(p, { enabled: _ && b }), { roundStartedAt: D } = l({
25
- payableId: p,
26
- enabled: _ && b
27
- }), O = f(() => {
28
- let e = /* @__PURE__ */ new Map();
29
- for (let t of w.data?.data ?? []) e.set(t.id, {
30
- label: t.name,
31
- kind: "role"
32
- });
33
- for (let t of T.data?.data ?? []) e.set(t.id, {
34
- label: t.name,
35
- kind: "user"
36
- });
37
- return e;
38
- }, [w.data, T.data]), k = f(() => c(E.data?.data, D), [E.data, D]), A = f(() => new Set(k.flatMap((e) => e.approved_by ?? [])), [k]), j = f(() => new Set(k.filter((e) => (e.approved_by ?? []).length > 0).flatMap((e) => e.role_ids ?? [])), [k]), M = f(() => m ? C.data?.data.find((e) => e.id === m) : void 0, [C.data, m]), N = f(() => _ && M ? s({
39
- policy: M,
40
- lookup: O,
41
- approvedUserIds: A,
42
- approvedRoleIds: j,
43
- copy: g
44
- }) : void 0, [
45
- _,
46
- M,
47
- O,
48
- A,
49
- j,
50
- g
51
- ]);
52
- return {
53
- view: N,
54
- pendingApprovers: f(() => _ ? N ? d(N) : u({
55
- requestsNewestFirst: E.data?.data,
56
- roundStartedAt: D,
57
- lookup: O
58
- }) : [], [
59
- _,
60
- N,
61
- E.data,
62
- D,
63
- O
64
- ]),
65
- isLoading: !!m && (!h || C.isResolving || w.isResolving || T.isResolving || E.isLoading || E.isError || !b)
2
+ function e(e) {
3
+ return e?.trim() ?? "";
4
+ }
5
+ function t(t) {
6
+ let n = e(t);
7
+ return n.length === 2 ? n.toUpperCase() : "";
8
+ }
9
+ function n(t) {
10
+ let n = e(t.bank_account?.routing_number), r = e(t.bank_account?.account_number);
11
+ if (n || r) return {
12
+ accountHolderName: e(t.bank_account?.account_holder_name) || e(t.name),
13
+ routingNumber: n,
14
+ accountNumber: r
15
+ };
16
+ }
17
+ function r(r) {
18
+ if (!r) return;
19
+ let i = {
20
+ legalName: e(r.name),
21
+ email: e(r.email),
22
+ phone: e(r.phone),
23
+ address: {
24
+ line1: e(r.address?.line1),
25
+ line2: e(r.address?.line2),
26
+ city: e(r.address?.city),
27
+ state: t(r.address?.state),
28
+ postalCode: e(r.address?.postal_code)
29
+ },
30
+ bankAccount: n(r)
66
31
  };
32
+ return i.legalName || i.email || i.phone || Object.values(i.address).some(Boolean) || i.bankAccount ? i : void 0;
67
33
  }
68
34
  //#endregion
69
- export { p as useApprovalPolicyCardView };
35
+ export { r as buildVendorPrefill };
@@ -1,13 +1,92 @@
1
- import { formatRejectionDate as e } from "../../../shared/util/dist/lib/formatRejectionDate.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { getStateOptions as t } from "../../../shared/util/dist/lib/usStates.js";
7
+ import { AchFieldGroup as n } from "../../../shared/counterpart-management/ui/dist/index5.js";
8
+ import { CounterpartFormFields as r, useFocusFirstInvalidField as i } from "../../../shared/counterpart-management/ui/dist/index9.js";
9
+ import "../../../shared/counterpart-management/ui/dist/index.js";
10
+ import { VendorSearchCombobox as a } from "../../ui/dist/index46.js";
11
+ import "../../ui/dist/index.js";
12
+ import { mergeVendorInlineFormLabels as o } from "./index24.js";
13
+ import "../../../shared/counterpart-management/feature/dist/index.js";
14
+ import { useMemo as s } from "react";
15
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
16
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js
3
- function t({ payableStatus: t, approvalRequests: n, userNames: r, payableUpdatedAt: i, labels: a, now: o }) {
4
- let s = n.find((e) => e.status === "rejected");
5
- if (!s) return t !== "rejected" || !i ? void 0 : { actorLabel: a.rejectedOn(e(i, o)) };
6
- let c = s.rejected_by ? r.get(s.rejected_by) : void 0, l = e(s.updated_at, o);
7
- return {
8
- actorLabel: c ? a.rejectedByOn(c, l) : a.rejectedOn(l),
9
- message: s.reject_reason ? a.rejectionMessage(s.reject_reason) : void 0
10
- };
17
+ function u({ mode: u, values: d, errors: f, onChange: p, onAddressChange: m, sectionsToExpand: h, onAddressExpand: g, onCancel: _, onSave: v, isSaving: y = !1, search: b, paymentInstructions: x, labels: S }) {
18
+ let C = s(() => o(S), [S]), w = s(() => t(), []), T = i(f ?? {});
19
+ return /* @__PURE__ */ l("div", {
20
+ ref: T,
21
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
22
+ children: [
23
+ /* @__PURE__ */ c("p", {
24
+ className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
25
+ children: u === "edit" ? C.editTitle : C.createTitle
26
+ }),
27
+ u === "edit" && b ? /* @__PURE__ */ c(a, {
28
+ ...b,
29
+ labels: { fieldLabel: C.switchVendorFieldLabel }
30
+ }) : null,
31
+ /* @__PURE__ */ c(r, {
32
+ mode: u,
33
+ counterpartMode: "vendor",
34
+ values: d,
35
+ errors: f,
36
+ stateOptions: w,
37
+ onChange: p,
38
+ onAddressChange: m,
39
+ sections: {
40
+ entityType: !0,
41
+ profileHeading: !1,
42
+ title: !1,
43
+ taxId: !1,
44
+ address: "collapsible",
45
+ bankAccount: !1
46
+ },
47
+ sectionsToExpand: h,
48
+ onAddressExpand: g,
49
+ labels: { businessNameLabel: C.nameLabel }
50
+ }),
51
+ x ? /* @__PURE__ */ l("div", {
52
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
53
+ children: [/* @__PURE__ */ l("div", {
54
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
55
+ children: [/* @__PURE__ */ c("p", {
56
+ className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
57
+ children: C.paymentInstructionsHeading
58
+ }), /* @__PURE__ */ c("p", {
59
+ className: "ttw:text-sm ttw:text-muted-foreground",
60
+ children: x.isExtracted ? C.paymentInstructionsExtracted : C.paymentInstructionsDescription
61
+ })]
62
+ }), /* @__PURE__ */ c(n, {
63
+ idPrefix: "vendor-inline-ach",
64
+ values: x.values,
65
+ errors: x.errors,
66
+ onChange: x.onChange,
67
+ labels: C.ach
68
+ })]
69
+ }) : null,
70
+ /* @__PURE__ */ l("div", {
71
+ className: "ttw:flex ttw:justify-end ttw:gap-2",
72
+ children: [/* @__PURE__ */ c(e, {
73
+ type: "button",
74
+ variant: "outline",
75
+ onClick: _,
76
+ "aria-label": C.cancelAriaLabel,
77
+ disabled: y,
78
+ children: C.cancel
79
+ }), v ? /* @__PURE__ */ c(e, {
80
+ type: "button",
81
+ onClick: v,
82
+ "aria-label": C.saveAriaLabel,
83
+ loading: y,
84
+ disabled: y,
85
+ children: C.save
86
+ }) : null]
87
+ })
88
+ ]
89
+ });
11
90
  }
12
91
  //#endregion
13
- export { t as resolveBillRejectionNotice };
92
+ export { u as VendorInlineForm, u as default };