@tesouro/embedded-components-react 0.5.188 → 0.5.190

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 (290) 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/accept-disclosures-widget/feature/dist/index5.js +34 -34
  4. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +18 -18
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +263 -263
  7. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +89 -89
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +33 -14
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +29 -74
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +18 -55
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +24 -42
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +13 -327
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +31 -7
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +8 -35
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +92 -14
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +20 -137
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +69 -28
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index19.js +58 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index2.js +35 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index20.js +47 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index21.js +88 -0
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index22.js +36 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index23.js +35 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index24.js +40 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index25.js +34 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index26.js +34 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index27.js +34 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index28.js +36 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index29.js +36 -0
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +16 -4
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index30.js +36 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index31.js +8 -0
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index32.js +35 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index33.js +49 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index34.js +36 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index35.js +47 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index36.js +27 -0
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index37.js +15 -0
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index38.js +35 -0
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index39.js +55 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +27 -13
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index40.js +20 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index41.js +43 -0
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index42.js +27 -0
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index43.js +35 -0
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index44.js +29 -0
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index45.js +29 -0
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index46.js +6 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index47.js +39 -0
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +2 -33
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +35 -255
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +59 -123
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +13 -91
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +29 -29
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +19 -21
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +5 -62
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +15 -4
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +22 -5
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +51 -211
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -4
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +84 -15
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +5 -24
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +31 -62
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +41 -2
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +167 -81
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +56 -5
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +46 -3
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +1 -7
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +47 -3
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +13 -32
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +8 -38
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +7 -163
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +61 -41
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +24 -45
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +162 -13
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +4 -56
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +25 -8
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +16 -7
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +32 -57
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +96 -8
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +81 -24
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +3 -158
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +45 -10
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +111 -23
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +189 -21
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +69 -33
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +38 -5
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +29 -13
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +89 -8
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +412 -4
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -97
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +83 -82
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +80 -3
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +224 -134
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +44 -45
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +247 -109
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +22 -191
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +6 -38
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +614 -66
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -35
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +42 -89
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +243 -398
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -16
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -86
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +43 -80
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +1 -232
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -44
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +11 -252
  110. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +24 -5
  111. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +130 -23
  112. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -628
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +6 -4
  114. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +127 -40
  115. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +8 -257
  116. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +10 -3
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -2
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +22 -44
  119. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +22 -1
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +29 -6
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +12 -22
  122. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +83 -10
  123. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +48 -130
  124. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +262 -3
  125. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +32 -3
  126. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +387 -124
  127. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +307 -8
  128. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +4 -10
  129. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +4 -81
  130. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +111 -21
  131. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +1 -22
  132. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +37 -13
  133. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +24 -28
  134. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +222 -35
  135. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +46 -42
  136. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index100.js +10 -126
  137. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +105 -1
  138. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +2 -33
  139. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +28 -7
  140. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +73 -126
  141. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +1 -1
  142. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +30 -11
  143. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +8 -106
  144. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +181 -2
  145. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +2 -10
  146. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index110.js +12 -50
  147. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +108 -2
  148. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +2 -0
  149. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +10 -0
  150. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index114.js +52 -0
  151. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index115.js +2 -0
  152. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -14
  153. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +12 -16
  154. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +18 -2
  155. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -4
  156. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -28
  157. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +30 -2
  158. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -32
  159. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +32 -1
  160. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +1 -35
  161. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +32 -18
  162. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +19 -135
  163. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +137 -2
  164. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +2 -4
  165. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +78 -12
  166. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +278 -1
  167. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +2 -4
  168. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +16 -17
  169. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +56 -2
  170. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +1 -106
  171. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +15 -76
  172. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -275
  173. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +19 -5
  174. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +368 -50
  175. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +19 -14
  176. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +92 -50
  177. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +25 -28
  178. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +43 -363
  179. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +48 -15
  180. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +10 -93
  181. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +197 -2
  182. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +1 -31
  183. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -52
  184. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +41 -2
  185. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +1 -55
  186. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +16 -10
  187. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +75 -184
  188. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -1
  189. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +46 -2
  190. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +313 -36
  191. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +6 -16
  192. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +26 -81
  193. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +2 -317
  194. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +1 -9
  195. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +13 -31
  196. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +170 -2
  197. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -2
  198. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +4 -1
  199. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +34 -13
  200. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -170
  201. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +39 -2
  202. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +10 -2
  203. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +195 -30
  204. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +1 -0
  205. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -37
  206. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +14 -10
  207. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -201
  208. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +4 -3
  209. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +20 -16
  210. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +1 -508
  211. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +62 -7
  212. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -5
  213. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +493 -77
  214. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/{feature/dist/index87.js → ui/dist/index88.js} +1 -2
  215. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +10 -2
  216. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +5 -3
  217. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +88 -25
  218. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +2 -7
  219. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +5 -32
  220. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +30 -2
  221. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +2 -12
  222. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +5 -104
  223. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +34 -2
  224. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +2 -31
  225. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/billDetailLabels.js +146 -0
  226. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/derivePayableStatus.js +62 -0
  227. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatBillMoney.js +7 -0
  228. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/formatScheduledDateLabel.js +12 -0
  229. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/isEditablePayableStatus.js +7 -0
  230. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/isLiveScheduledPaymentRecord.js +7 -0
  231. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/maskAccountNumber.js +6 -0
  232. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableDuplicates.js +48 -0
  233. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/payableTotals.js +18 -0
  234. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveAmountDue.js +6 -0
  235. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveLineItemAmount.js +11 -0
  236. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveLineItemQuantity.js +7 -0
  237. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveVendor.js +9 -0
  238. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/widgetName.js +4 -0
  239. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +95 -95
  240. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +8 -8
  241. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +9 -9
  242. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +8 -5
  243. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +7 -0
  244. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -0
  245. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +31 -18
  246. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +1 -1
  247. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +2 -32
  248. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +23 -190
  249. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +163 -50
  250. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +1 -80
  251. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +101 -2
  252. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +85 -0
  253. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
  254. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +3 -3
  255. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +1 -1
  256. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +10 -10
  257. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +104 -104
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +55 -49
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +4 -4
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +24 -18
  261. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +47 -47
  262. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
  263. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +11 -11
  264. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +10 -10
  265. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +15 -15
  266. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useAddressForm.js +9 -9
  267. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +7 -7
  268. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +53 -53
  269. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +15 -15
  270. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js +4 -4
  271. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -35
  272. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js +4 -4
  273. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  274. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/mergeLabelTree.js +12 -0
  275. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js +1 -1
  276. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +46 -46
  277. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +5 -13
  278. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  279. package/package.json +3 -3
  280. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +0 -86
  281. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +0 -50
  282. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +0 -263
  283. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +0 -35
  284. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +0 -392
  285. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +0 -310
  286. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -7
  287. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -114
  288. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +0 -1
  289. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index91.js +0 -27
  290. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +0 -2
@@ -2,79 +2,627 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useAttachPayableFileMutation as e } from "../../data-access/dist/index13.js";
5
+ import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCalendarDate.js";
7
+ import { buildPayableAuditHistory as n, hasUnattributedAuditRows as r } from "../../../shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js";
8
+ import { hasAnyScope as i } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
9
+ import { Scope as a } from "../../../shared/data-access/dist/lib/scopes.js";
10
+ import { useAllLedgerAccountsQuery as ee } from "../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
11
+ import "../../../shared/data-access/dist/index.js";
12
+ import "../../../shared/ui/dist/index.js";
13
+ import { useWidgetConfig as te } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
14
+ import { useOrganizationUserNames as ne } from "../../../shared/feature/dist/lib/user/useOrganizationUserNames.js";
15
+ import "../../../shared/feature/dist/index.js";
16
+ import { hasUnpaidBalance as re } from "../../util/dist/lib/derivePayableStatus.js";
17
+ import { formatScheduledDateLabel as ie } from "../../util/dist/lib/formatScheduledDateLabel.js";
18
+ import { isEditablePayableStatus as ae } from "../../util/dist/lib/isEditablePayableStatus.js";
19
+ import { resolveAmountDueMinorUnits as oe } from "../../util/dist/lib/resolveAmountDue.js";
20
+ import { resolveVendor as se } from "../../util/dist/lib/resolveVendor.js";
21
+ import { usePayableApprovalRequestsQuery as ce } from "../../data-access/dist/index16.js";
22
+ import { usePayableHistoryQuery as le } from "../../data-access/dist/index17.js";
23
+ import { useAllPayableLineItemsQuery as ue } from "../../data-access/dist/index18.js";
24
+ import { useUpdatePayableMutation as de } from "../../data-access/dist/index34.js";
25
+ import { usePayableQuery as fe } from "../../data-access/dist/index41.js";
6
26
  import "../../data-access/dist/index.js";
7
- import { SourceDocumentPanel as t } from "../../ui/dist/index107.js";
27
+ import { usePayableDuplicateReview as pe } from "./index9.js";
28
+ import "./index10.js";
29
+ import { canOverrideApprovalPolicy as me, canReadCounterpartBankAccounts as he } from "./index15.js";
30
+ import { BillCreateScreen as ge } from "../../ui/dist/index53.js";
31
+ import { BillDecisionDialog as o } from "../../ui/dist/index59.js";
32
+ import { DiscardChangesDialog as _e } from "../../ui/dist/index65.js";
33
+ import { BillDuplicateNotice as ve } from "../../ui/dist/index70.js";
34
+ import { BillRejectedBanner as ye } from "../../ui/dist/index73.js";
35
+ import { ExtractionNotice as be } from "../../ui/dist/index95.js";
36
+ import { MarkAsPaidDialog as xe } from "../../ui/dist/index104.js";
37
+ import { UnsavedBillDialog as Se } from "../../ui/dist/index114.js";
8
38
  import "../../ui/dist/index.js";
9
- import { createSourceDocumentPreview as n } from "./index48.js";
10
- import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as r } from "./index49.js";
11
- import { useEffect as i, useState as a } from "react";
12
- import { jsx as o } from "react/jsx-runtime";
39
+ import { usePayableAchInstructions as Ce } from "../../../shared/counterpart-management/feature/dist/lib/usePayableAchInstructions.js";
40
+ import "../../../shared/counterpart-management/feature/dist/index.js";
41
+ import { PayBillFlow as we } from "./index20.js";
42
+ import "./index21.js";
43
+ import { useMarkAsPaidFlow as Te } from "./index13.js";
44
+ import "./index14.js";
45
+ import { BILL_CREATE_MESSAGE_LABELS_EN as Ee, mergeBillCreateScreenCopy as De } from "./index38.js";
46
+ import { useBillCreateController as Oe } from "./index46.js";
47
+ import { useBillForm as ke } from "./index48.js";
48
+ import { buildPaymentHistory as Ae } from "./index2.js";
49
+ import { currentApprovalRound as je } from "./index3.js";
50
+ import { usePayableApprovalRoundStart as Me } from "./index25.js";
51
+ import { useApprovalPolicyCardView as Ne } from "./index26.js";
52
+ import { resolveBillRejectionNotice as Pe } from "./index27.js";
53
+ import { useCurrentApprovalRequestId as Fe } from "./index28.js";
54
+ import { usePayableDetailActions as Ie } from "./index29.js";
55
+ import { useLocalCalendarDay as Le } from "./index30.js";
56
+ import { useScheduledPayment as Re } from "./index31.js";
57
+ import { useDraftDelete as ze } from "./index32.js";
58
+ import { buildBillDetailView as Be } from "./index34.js";
59
+ import { resolveEditorDismissal as Ve } from "./index35.js";
60
+ import { SourceDocumentContainer as He } from "./index39.js";
61
+ import { useVendorSectionProps as Ue } from "./index42.js";
62
+ import { billCreateTestIds as s } from "./index49.js";
63
+ import { cloneElement as We, isValidElement as Ge, useCallback as c, useEffect as Ke, useMemo as l, useRef as qe, useState as u } from "react";
64
+ import { Fragment as Je, jsx as d, jsxs as Ye } from "react/jsx-runtime";
65
+ import { Trash2Icon as Xe } from "lucide-react";
13
66
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js
14
- function s(e) {
15
- let [t, n] = a();
16
- return i(() => {
17
- if (!e) {
18
- n(void 0);
19
- return;
20
- }
21
- let t = URL.createObjectURL(e);
22
- return n(t), () => URL.revokeObjectURL(t);
23
- }, [e]), t;
67
+ function Ze(e) {
68
+ let t = [...new Set(e)];
69
+ return t.length > 0 ? t : void 0;
24
70
  }
25
- function c({ payableId: i, file: a, isDocumentPending: c, pendingFileName: l, readOnly: u, staging: d, deletion: f, labels: p }) {
26
- let { stagedFile: m, onFileStaged: h, onClearStagedFile: g, isSaving: _ } = d ?? {}, { isPending: v, onRequest: y, onDetachNow: b, isDeleting: x, hasFailed: S } = f ?? {}, C = {
27
- ...r,
28
- ...p,
29
- preview: {
30
- ...r.preview,
31
- ...p?.preview
32
- }
33
- }, w = e(), T = s(m), E = !!(a && !v || m);
34
- if (!E && (c || w.isPending)) return /* @__PURE__ */ o(t, {
35
- mode: "loading",
36
- fileName: l
37
- });
38
- if (!E && u) return /* @__PURE__ */ o("div", {
39
- className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-sm ttw:text-muted-foreground",
40
- children: C.noDocument
41
- });
42
- if (!E) return /* @__PURE__ */ o(t, {
43
- mode: "upload",
44
- uploadStatus: w.isPending || x ? "uploading" : "idle",
45
- uploadErrorMessage: w.isError ? C.attachFailed : S ? C.deleteFailed : void 0,
46
- noticeMessage: v && !S ? C.pendingDeletionNotice : void 0,
47
- onFilesSelected: (e) => {
48
- let [t] = e;
49
- if (t) {
50
- if (i) {
51
- let e = () => w.mutate({
52
- path: { payable_id: i },
53
- file: t
54
- });
55
- if (v && b) {
56
- b().then(e, () => void 0);
71
+ function Qe({ open: Qe, onOpenChange: f, payableId: p, initialCounterpartId: $e, readOnly: m = !1, copy: et, onCollapse: tt, onEdit: nt, onOpenBill: h, poweredByBankName: rt }) {
72
+ let g = l(() => De(et), [et]), it = p ? void 0 : $e, [at, ot] = u(it), [st, ct] = u(!!it), [lt, ut] = u(!1), [dt, _] = u(!1), [ft, v] = u(), y = c((e) => {
73
+ v(() => e);
74
+ }, []), [pt, mt] = u(), b = p ?? pt, x = fe(b, { pollWhileOcrProcessing: !0 }), S = ue(b), { initResponse: C } = te(), ht = !!C, gt = i(C?.scopes, [a.AccountingConfigReadOrg]), w = ee({ enabled: gt }), T = x.data, E = !b || !!T, D = !m && E && !!b && T?.status !== "draft", _t = !m && !!T && !ae(T?.status), O = m || _t, k = ke({
75
+ payable: T,
76
+ lineItems: S.lineItems
77
+ }), A = T?.counterpart_id;
78
+ Ke(() => {
79
+ st || A && (ot(A), ct(!0));
80
+ }, [st, A]);
81
+ let vt = c((e) => {
82
+ ct(!0), ot(e);
83
+ }, []), j = Re({
84
+ payableId: b,
85
+ scheduledPaymentDate: T?.scheduled_payment_date,
86
+ enabled: m || D
87
+ }), yt = Le(), M = l(() => j.hasScheduledPayment && j.scheduledDate ? ie(j.scheduledDate, g.scheduledRelativeDay, yt) : void 0, [
88
+ j.hasScheduledPayment,
89
+ j.scheduledDate,
90
+ g.scheduledRelativeDay,
91
+ yt
92
+ ]), N = he(C?.scopes), bt = i(C?.scopes, [a.PayableWriteOrg]), xt = i(C?.scopes, [a.CounterpartWriteOrg]) && bt, P = xt && re(T?.status) && !j.hasScheduledPayment && !j.isResolving, St = P && N, Ct = P || xt && T?.status === "rejected", wt = !m && E && (!b || T?.status === "draft") && !j.hasScheduledPayment && !j.isResolving, F = Ue({
93
+ payableId: b,
94
+ counterpartId: m ? A : at,
95
+ payableCounterpartId: A,
96
+ isVendorKnown: m ? !!T : E,
97
+ onCounterpartChange: vt,
98
+ requiredError: k.errors?.vendor,
99
+ payableCounterpartBankAccountId: T?.counterpart_bank_account_id ?? void 0,
100
+ extractedVendor: T?.counterpart_raw_data ?? void 0,
101
+ readOnly: m,
102
+ canEditVendor: !m || St,
103
+ canEditPaymentInstructions: !m || P,
104
+ canAddPaymentInstructions: !m || Ct,
105
+ confirmDiscard: y
106
+ }), I = F.activePayToOperation === "missingInstructions" ? wt || Ct : F.activePayToOperation === "existingInstructions" ? wt || P : F.activePayToOperation === "vendor" && m ? St : !1, Tt = !!(b && st) && !at, L = x.refetch, Et = c(async () => {
107
+ let { data: e } = await L();
108
+ return e?.status ?? void 0;
109
+ }, [L]), Dt = de(), [R, Ot] = u(!1), z = qe(void 0), kt = c(async () => {
110
+ if (z.current) return z.current;
111
+ let t = (async () => {
112
+ if (I) {
113
+ Ot(!0);
114
+ try {
115
+ let t;
116
+ try {
117
+ t = await F.prepareVendorForSave({ closeOnSuccess: !1 });
118
+ } catch {
119
+ e.error(g.detail.paymentInstructionsSaveError);
120
+ return;
121
+ }
122
+ if (!t.ok) return;
123
+ if (!b) {
124
+ F.finalizePayToSave();
57
125
  return;
58
126
  }
59
- e();
60
- } else h?.(t);
127
+ let n = t.counterpartId && t.counterpartId !== T?.counterpart_id ? t.counterpartId : void 0, r = t.counterpartBankAccountId && t.counterpartBankAccountId !== T?.counterpart_bank_account_id ? t.counterpartBankAccountId : void 0;
128
+ if (n || r) {
129
+ let t = {
130
+ path: { payable_id: b },
131
+ body: {
132
+ ...n ? { counterpart_id: n } : {},
133
+ ...r ? { counterpart_bank_account_id: r } : {}
134
+ }
135
+ };
136
+ try {
137
+ await Dt.mutateAsync(t);
138
+ } catch {
139
+ try {
140
+ await Dt.mutateAsync(t);
141
+ } catch {
142
+ e.error(g.detail.paymentInstructionsLinkError);
143
+ return;
144
+ }
145
+ }
146
+ F.finalizePayToSave();
147
+ return;
148
+ }
149
+ F.finalizePayToSave(), await L();
150
+ } finally {
151
+ Ot(!1);
152
+ }
61
153
  }
154
+ })();
155
+ z.current = t;
156
+ try {
157
+ await t;
158
+ } finally {
159
+ z.current = void 0;
160
+ }
161
+ }, [
162
+ I,
163
+ g.detail.paymentInstructionsLinkError,
164
+ g.detail.paymentInstructionsSaveError,
165
+ Dt,
166
+ T?.counterpart_bank_account_id,
167
+ T?.counterpart_id,
168
+ b,
169
+ L,
170
+ F
171
+ ]), B = l(() => I ? F.mode === "creating" && Ge(F.newVendorForm) ? {
172
+ ...F,
173
+ newVendorForm: We(F.newVendorForm, {
174
+ onSave: kt,
175
+ isSaving: R
176
+ })
177
+ } : F.mode === "resolved" && F.paymentInstructions ? {
178
+ ...F,
179
+ paymentInstructions: {
180
+ ...F.paymentInstructions,
181
+ onSave: kt,
182
+ isSaving: R
183
+ }
184
+ } : F : F, [
185
+ I,
186
+ R,
187
+ kt,
188
+ F
189
+ ]);
190
+ Ke(() => {
191
+ m && F.isEditingPayTo && !I && F.discardPayToEdits();
192
+ }, [
193
+ I,
194
+ m,
195
+ F.discardPayToEdits,
196
+ F.isEditingPayTo
197
+ ]);
198
+ let At = l(() => D ? { draftSaved: Ee.submittedSaved } : void 0, [D]), V = Oe({
199
+ payableId: p,
200
+ form: k,
201
+ labels: At,
202
+ counterpartId: at,
203
+ isVendorPending: F.mode === "creating" || F.isPendingVendor,
204
+ clearCounterpart: Tt,
205
+ prepareVendorForSave: F.prepareVendorForSave,
206
+ onPayableCreated: mt,
207
+ onSaved: mt,
208
+ onDraftSaved: () => f(!1),
209
+ onFinalized: () => f(!1),
210
+ readSavedStatus: D ? Et : void 0
211
+ }), jt = !!(V.isSavingDraft || V.isFinalizing || F.isVendorSavePending), H = m ? b : void 0, U = Fe({
212
+ payableId: H,
213
+ status: T?.status
214
+ }), Mt = qe(null), Nt = se(T), W = Ce({
215
+ counterpartId: m ? A : void 0,
216
+ currency: T?.currency,
217
+ currentBankAccountId: m ? T?.counterpart_bank_account_id ?? void 0 : void 0,
218
+ enabled: N && m
219
+ }), Pt = Te({
220
+ payableId: H,
221
+ amountDueMinorUnits: oe(T) ?? 0,
222
+ amountToPayMinorUnits: T?.amount_to_pay ?? void 0,
223
+ currencyCode: T?.currency ?? void 0,
224
+ dueDate: T?.due_date,
225
+ hasScheduledPayment: j.hasScheduledPayment,
226
+ labels: g.markAsPaid
227
+ }), G = Ne({
228
+ payableId: H,
229
+ approvalPolicyId: T?.approval_policy_id,
230
+ enabled: m,
231
+ copy: g.approvalPolicyCopy
232
+ }), Ft = me({
233
+ status: T?.status,
234
+ scopes: C?.scopes,
235
+ arePendingApproversUnknown: G.isLoading,
236
+ hasApprovalPolicy: !!T?.approval_policy_id,
237
+ hasWaitingRequest: U.hasWaitingRequest
238
+ }), It = !!U.id, Lt = U.isLoading || G.isLoading, Rt = l(() => Ze(G.pendingApprovers.flatMap((e) => e.names)), [G.pendingApprovers]), zt = m || D ? b : void 0, Bt = m ? nt : void 0, K = c((e) => {
239
+ let t = () => {
240
+ F.discardPayToEdits(), e?.();
241
+ };
242
+ F.hasUnsavedVendorChanges ? y(t) : t();
243
+ }, [y, F]), { actions: Vt, decisionDialog: Ht, isActionPending: Ut } = Ie({
244
+ payableId: zt,
245
+ status: T?.status,
246
+ currentApprovalRequestId: U.id,
247
+ arePendingApproversUnknown: G.isLoading,
248
+ hasScheduledPayment: j.hasScheduledPayment,
249
+ scheduledPaymentIntentId: j.scheduledPaymentIntentId,
250
+ isScheduledPaymentUnknown: j.isResolving,
251
+ isPayabilityUnknown: W.isLoading,
252
+ hasApprovalPolicy: !!T?.approval_policy_id,
253
+ hasWaitingRequest: U.hasWaitingRequest,
254
+ pendingApprovers: G.pendingApprovers,
255
+ labels: g.actions,
256
+ isMarkAsPaidPending: Pt.isPending,
257
+ onMarkAsPaidSelect: Pt.open,
258
+ onPayBillSelect: () => K(() => Mt.current?.open()),
259
+ onEditSelect: Bt,
260
+ onActionSucceeded: (e) => {
261
+ if (e === "reopen") {
262
+ Bt?.();
263
+ return;
264
+ }
265
+ D && f(!1);
266
+ }
267
+ }), Wt = ze({
268
+ payableId: b,
269
+ status: T?.status,
270
+ enabled: !m,
271
+ labels: g.deleteDraft,
272
+ onDeleted: () => f(!1)
273
+ }), Gt = jt || Ut, Kt = T?.ocr_status === "processing", qt = x.isLoading || S.isResolving || Kt, Jt = x.isLoading || S.isResolving || w.isResolving || W.isLoading, Yt = x.isError || S.isError || w.isError, Xt = l(() => [...Wt.menuItems, ...D || m && !Jt && !Yt ? Vt.menu.map((e) => ({
274
+ id: e.id,
275
+ label: e.label,
276
+ onSelect: e.onSelect,
277
+ disabled: e.disabled,
278
+ icon: e.icon,
279
+ sectionHeading: e.sectionHeading
280
+ })) : []], [
281
+ Vt.menu,
282
+ Wt.menuItems,
283
+ D,
284
+ m,
285
+ Jt,
286
+ Yt
287
+ ]), q = l(() => (w.data?.data ?? []).map((e) => ({
288
+ value: e.id,
289
+ label: [e.nominal_code, e.name].filter(Boolean).join(" — ")
290
+ })), [w.data]), J;
291
+ ht && (gt ? w.isError ? J = g.lineItemsGlCodeUnavailable.loadError : !w.isResolving && q.length === 0 && (J = g.lineItemsGlCodeUnavailable.empty) : J = g.lineItemsGlCodeUnavailable.noAccess);
292
+ let Zt = !ht || !!J || w.isResolving, Qt = gt && !w.isResolving && !w.isError, Y = le(H), $t = T?.status === "rejected" || !m && D, en = i(C?.scopes, [a.ApprovalRequestReadOrg]), tn = $t && en, nn = i(C?.scopes, [a.UserReadOrg]), { userNames: X, isError: rn, isResolving: an } = ne({ enabled: (m || $t) && nn }), on = l(() => n(Y.data?.data ?? [], X, g.history), [
293
+ Y.data,
294
+ X,
295
+ g.history
296
+ ]), sn = nn && rn && r(Y.data?.data ?? [], on, X), cn = Me({
297
+ payableId: b,
298
+ enabled: tn
299
+ }), ln = ce(b, { enabled: tn }), un = l(() => je(ln.data?.data, cn.roundStartedAt), [ln.data, cn.roundStartedAt]), Z = l(() => Pe({
300
+ payableStatus: T?.status,
301
+ approvalRequests: un,
302
+ userNames: X,
303
+ payableUpdatedAt: T?.updated_at,
304
+ labels: g.detail
305
+ }), [
306
+ T?.status,
307
+ T?.updated_at,
308
+ un,
309
+ X,
310
+ g.detail
311
+ ]), dn = l(() => Ae({
312
+ records: j.paymentRecords,
313
+ events: Y.data?.data ?? [],
314
+ currencyCode: T?.currency,
315
+ labels: g.detail
316
+ }), [
317
+ j.paymentRecords,
318
+ Y.data,
319
+ T?.currency,
320
+ g.detail
321
+ ]), fn = l(() => {
322
+ if (!m || !T) return;
323
+ let e = Be({
324
+ payable: T,
325
+ lineItems: S.lineItems,
326
+ glCodeOptions: q,
327
+ glCodeRosterAvailable: Qt,
328
+ history: on,
329
+ paymentHistory: dn,
330
+ approvalPolicy: G.view,
331
+ labels: g.detail,
332
+ hasScheduledPayment: j.hasScheduledPayment,
333
+ rejection: Z,
334
+ payableAchInstructions: W.achInstructions,
335
+ payableAchInstructionsReadable: N && !W.isError
336
+ });
337
+ return F.mode === "resolved" && F.summary ? {
338
+ ...e,
339
+ payTo: F.summary
340
+ } : e;
341
+ }, [
342
+ j.hasScheduledPayment,
343
+ G.view,
344
+ N,
345
+ g.detail,
346
+ q,
347
+ Qt,
348
+ on,
349
+ S.lineItems,
350
+ T,
351
+ W.achInstructions,
352
+ W.isError,
353
+ dn,
354
+ m,
355
+ Z,
356
+ F.mode,
357
+ F.summary
358
+ ]), pn = T?.source_of_payable_data === "ocr", Q = Nt?.name, mn = m ? Q ? g.viewTitle(Q) : g.readOnlyTitle : Q && (pn || D) ? g.extractedTitle(Q) : g.newTitle, hn = m && T?.created_at ? g.addedOn(t(T.created_at.slice(0, 10))) : void 0, gn = c(() => {
359
+ if (m && F.isEditingPayTo) {
360
+ K(() => f(!1));
361
+ return;
362
+ }
363
+ let e = k.isDirty || F.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending;
364
+ switch (Ve({
365
+ isUnsavedPromptOpen: dt,
366
+ isLocked: O,
367
+ isDirty: e
368
+ })) {
369
+ case "dismiss-prompt":
370
+ _(!1);
371
+ return;
372
+ case "prompt":
373
+ _(!0);
374
+ return;
375
+ default: f(!1);
376
+ }
377
+ }, [
378
+ V.isFileDeletionPending,
379
+ V.stagedFile,
380
+ k.isDirty,
381
+ O,
382
+ dt,
383
+ K,
384
+ f,
385
+ m,
386
+ F.hasUnsavedVendorChanges,
387
+ F.isEditingPayTo
388
+ ]), _n = c((e, t) => {
389
+ if (!h) return;
390
+ let n = () => h(e, t);
391
+ if (m && F.isEditingPayTo) {
392
+ K(n);
393
+ return;
394
+ }
395
+ let r = k.isDirty || F.hasUnsavedVendorChanges || !!V.stagedFile || V.isFileDeletionPending;
396
+ !O && r ? y(n) : n();
397
+ }, [
398
+ y,
399
+ V.isFileDeletionPending,
400
+ V.stagedFile,
401
+ k.isDirty,
402
+ O,
403
+ K,
404
+ h,
405
+ m,
406
+ F.hasUnsavedVendorChanges,
407
+ F.isEditingPayTo
408
+ ]), vn = c(() => {
409
+ if (F.isEditingPayTo) {
410
+ K(tt);
411
+ return;
62
412
  }
63
- });
64
- let D = a?.name ?? m?.name ?? "", O = n(a || {
65
- name: D,
66
- url: T ?? "",
67
- mimetype: m?.type ?? ""
68
- }, C.preview);
69
- return /* @__PURE__ */ o(t, {
70
- mode: "document",
71
- fileName: D,
72
- preview: O,
73
- isDeleting: x,
74
- deleteErrorMessage: S ? C.deleteFailed : void 0,
75
- onDownload: a ? () => window.open(a.url, "_blank", "noopener,noreferrer") : void 0,
76
- onDelete: u ? void 0 : a && i ? y : _ ? void 0 : g
77
- });
413
+ tt?.();
414
+ }, [
415
+ K,
416
+ tt,
417
+ F.isEditingPayTo
418
+ ]), yn = c(() => {
419
+ _(!1), f(!1);
420
+ }, [f]), bn = qt || F.mode === "creating", xn = c(async () => {
421
+ if (bn) return;
422
+ let e = await V.saveDraft();
423
+ _(!1), e && f(!1);
424
+ }, [
425
+ V,
426
+ bn,
427
+ f
428
+ ]), $ = pe({
429
+ payable: T,
430
+ onOpenPayable: h ? _n : void 0,
431
+ onRemoved: () => f(!1),
432
+ canManage: bt
433
+ }), Sn = c((e) => {
434
+ if (!(Gt || $.isBusy)) return e ? f(!0) : gn();
435
+ }, [
436
+ $.isBusy,
437
+ Gt,
438
+ gn,
439
+ f
440
+ ]), Cn = $.isPossibleDuplicate, wn = !m && pn && !lt, Tn = !m && !!Z, En = Tn || Cn || wn ? /* @__PURE__ */ Ye(Je, { children: [
441
+ Tn && Z ? /* @__PURE__ */ d(ye, {
442
+ ...Z,
443
+ labels: g.rejectedBanner
444
+ }) : null,
445
+ Cn ? /* @__PURE__ */ d(ve, {
446
+ onNotADuplicate: $.onNotADuplicate,
447
+ onRemoveBill: $.onRemoveBill,
448
+ isActionDisabled: $.isBusy,
449
+ rows: $.rows,
450
+ collapsedRowCount: $.collapsedRowCount,
451
+ showMoreLabel: $.showMoreLabel,
452
+ labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
453
+ testId: s.duplicateNotice
454
+ }) : null,
455
+ wn ? /* @__PURE__ */ d(be, { onDismiss: () => ut(!0) }) : null
456
+ ] }) : void 0;
457
+ return /* @__PURE__ */ Ye(Je, { children: [
458
+ /* @__PURE__ */ d(ge, {
459
+ open: Qe,
460
+ onOpenChange: Sn,
461
+ title: mn,
462
+ subtitle: hn,
463
+ notice: En,
464
+ vendor: {
465
+ ...B,
466
+ testId: s.vendorSection
467
+ },
468
+ values: k.values,
469
+ errors: k.errors,
470
+ onChange: k.onChange,
471
+ lineItems: {
472
+ items: k.lineItemRows,
473
+ glCodeOptions: q,
474
+ glCodeDisabled: Zt,
475
+ glCodeUnavailableMessage: J,
476
+ discount: k.discount,
477
+ onDiscountChange: k.onDiscountChange,
478
+ onDiscountBlur: k.onDiscountBlur,
479
+ tax: k.tax,
480
+ onTaxChange: k.onTaxChange,
481
+ onTaxBlur: k.onTaxBlur,
482
+ total: k.total,
483
+ onTotalChange: k.onTotalChange,
484
+ onTotalBlur: k.onTotalBlur,
485
+ onAddLineItem: k.onAddLineItem,
486
+ errors: k.lineItemErrors,
487
+ totalsErrors: k.totalsErrors,
488
+ testId: s.lineItems
489
+ },
490
+ documentPanel: /* @__PURE__ */ d(He, {
491
+ payableId: b,
492
+ readOnly: O,
493
+ isDocumentPending: !!b && !T?.file && (x.isLoading || T?.ocr_status === "processing"),
494
+ file: T?.file ? {
495
+ id: T.file.id,
496
+ name: T.file.name,
497
+ url: T.file.url,
498
+ mimetype: T.file.mimetype
499
+ } : void 0,
500
+ staging: {
501
+ stagedFile: V.stagedFile,
502
+ onFileStaged: V.stageFile,
503
+ onClearStagedFile: V.clearStagedFile,
504
+ isSaving: jt
505
+ },
506
+ deletion: {
507
+ isPending: V.isFileDeletionPending,
508
+ onRequest: V.requestFileDeletion,
509
+ onDetachNow: V.detachFileNow,
510
+ isDeleting: V.isDeletingFile,
511
+ hasFailed: V.hasFileDeletionFailed
512
+ }
513
+ }),
514
+ menuItems: Xt,
515
+ readOnly: O,
516
+ detail: m ? {
517
+ view: fn,
518
+ actions: Vt,
519
+ scheduledSummary: M ? g.scheduledSummary(M.label) : void 0,
520
+ scheduledSummaryDate: M?.absoluteLabel,
521
+ scheduledStatusLabel: M ? g.scheduledStatusBadge(M.label) : void 0,
522
+ showApprovalOverrideNotice: !Lt && Ft,
523
+ awaitingApprovalNotice: !Lt && !It && !Ft && T?.status === "approve_in_progress" && T?.approval_policy_id ? Rt ? g.awaitingApprovalNotice(Rt) : g.awaitingApprovalUnknownNotice : void 0,
524
+ payTo: {
525
+ onEdit: B.mode === "resolved" ? B.onEdit : void 0,
526
+ paymentInstructions: B.paymentInstructions,
527
+ detailsWarning: B.detailsWarning,
528
+ editForm: B.mode === "creating" ? B.newVendorForm : void 0
529
+ },
530
+ hideMissingPaymentInstructions: T?.status === "paid" || T?.status === "canceled",
531
+ isLoading: Jt,
532
+ isError: Yt,
533
+ paymentHistoryError: j.isError || Y.isError,
534
+ paymentHistoryLoading: j.isResolving || Y.isLoading,
535
+ historyError: Y.isError,
536
+ historyLoading: Y.isLoading || an,
537
+ historyNamesError: sn
538
+ } : void 0,
539
+ isLineItemsLoading: qt,
540
+ isSaving: Gt || R,
541
+ isSavingDraft: V.isSavingDraft,
542
+ isSubmitting: V.isFinalizing,
543
+ onCancel: gn,
544
+ onCollapse: m ? vn : void 0,
545
+ onSaveDraft: V.saveDraft,
546
+ onFinalize: V.finalize,
547
+ scrollToErrorToken: V.scrollToErrorToken,
548
+ showSubmit: !O && E,
549
+ testId: s.dialog
550
+ }),
551
+ /* @__PURE__ */ d(Se, {
552
+ open: dt,
553
+ onSaveDraft: xn,
554
+ onDiscard: yn,
555
+ onCancel: () => _(!1),
556
+ isSaving: V.isSavingDraft,
557
+ isSaveDraftDisabled: bn,
558
+ labels: g.unsavedChanges,
559
+ testId: s.unsavedDialog,
560
+ saveDraftTestId: s.unsavedSaveDraft,
561
+ discardTestId: s.unsavedDiscard,
562
+ closeTestId: s.unsavedClose
563
+ }),
564
+ /* @__PURE__ */ d(_e, {
565
+ open: !!ft,
566
+ onDiscard: () => {
567
+ let e = ft;
568
+ v(void 0), e?.();
569
+ },
570
+ onKeepEditing: () => v(void 0),
571
+ labels: g.discardChanges,
572
+ testId: s.discardDialog,
573
+ discardTestId: s.discardConfirm
574
+ }),
575
+ /* @__PURE__ */ d(o, {
576
+ ...Ht,
577
+ labels: { cancelButton: g.actions.decisionDialog.cancelButton },
578
+ testId: s.decisionDialog,
579
+ confirmTestId: s.decisionConfirm,
580
+ reasonTestId: s.decisionReason
581
+ }),
582
+ /* @__PURE__ */ d(o, {
583
+ ...Wt.dialog,
584
+ labels: { cancelButton: g.actions.decisionDialog.cancelButton },
585
+ testId: s.deleteDraftDialog,
586
+ confirmTestId: s.deleteDraftConfirm
587
+ }),
588
+ /* @__PURE__ */ d(o, {
589
+ open: $.removeConfirmation.open,
590
+ copy: $.removeConfirmation.copy,
591
+ onConfirm: $.removeConfirmation.onConfirm,
592
+ onCancel: $.removeConfirmation.onCancel,
593
+ isPending: $.removeConfirmation.isPending,
594
+ confirmIcon: /* @__PURE__ */ d(Xe, {}),
595
+ labels: { cancelButton: $.removeConfirmation.cancelButtonLabel },
596
+ testId: s.duplicateRemoveDialog,
597
+ confirmTestId: s.duplicateRemoveConfirm
598
+ }),
599
+ /* @__PURE__ */ d(o, {
600
+ open: $.cancelRowConfirmation.open,
601
+ copy: $.cancelRowConfirmation.copy,
602
+ onConfirm: $.cancelRowConfirmation.onConfirm,
603
+ onCancel: $.cancelRowConfirmation.onCancel,
604
+ isPending: $.cancelRowConfirmation.isPending,
605
+ labels: { cancelButton: $.cancelRowConfirmation.cancelButtonLabel },
606
+ testId: s.duplicateCancelRowDialog,
607
+ confirmTestId: s.duplicateCancelRowConfirm
608
+ }),
609
+ /* @__PURE__ */ d(o, {
610
+ open: $.keepRowConfirmation.open,
611
+ copy: $.keepRowConfirmation.copy,
612
+ onConfirm: $.keepRowConfirmation.onConfirm,
613
+ onCancel: $.keepRowConfirmation.onCancel,
614
+ isPending: $.keepRowConfirmation.isPending,
615
+ labels: { cancelButton: $.keepRowConfirmation.cancelButtonLabel }
616
+ }),
617
+ /* @__PURE__ */ d(xe, { ...Pt.dialogProps }),
618
+ m && T ? /* @__PURE__ */ d(we, {
619
+ ref: Mt,
620
+ payable: T,
621
+ onMissingAchInstructions: xt ? F.openPaymentInstructions : void 0,
622
+ poweredByBankName: rt,
623
+ labels: g.payBill
624
+ }) : null
625
+ ] });
78
626
  }
79
627
  //#endregion
80
- export { c as SourceDocumentContainer, c as default };
628
+ export { Qe as BillCreateDialog, Qe as default };