@tesouro/embedded-components-react 0.3.20 → 0.3.23

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 (243) hide show
  1. package/dist/index.css +9 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/monite-sdk.js +18 -18
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -15
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +31 -32
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +42 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +158 -43
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +33 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -16
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +45 -12
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +4 -64
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +13 -26
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +14 -62
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +56 -123
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +18 -3
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +15 -10
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +61 -40
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +130 -50
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +20 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +38 -69
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +48 -46
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +5 -93
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +71 -34
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +48 -139
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +91 -66
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -5
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +34 -22
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +144 -210
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +63 -209
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +21 -103
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +209 -12
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +211 -44
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +104 -30
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +12 -165
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +47 -35
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +29 -99
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +64 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +166 -12
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +34 -243
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +104 -4
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -27
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +259 -81
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +4 -145
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +33 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +82 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +155 -37
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +2 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +2 -6
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -6
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +43 -9
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +1 -94
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -3
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -5
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -13
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +3 -59
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +9 -3
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +19 -120
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +56 -8
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +3 -32
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -46
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +116 -15
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -28
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +43 -83
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +19 -47
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +27 -249
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -109
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +47 -206
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +253 -4
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +111 -6
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +6 -39
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +197 -102
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -0
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +6 -23
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +114 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +1 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +25 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -24
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +3 -162
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -6
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +10 -11
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +123 -8
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -170
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +18 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +7 -11
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +163 -82
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +89 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
  239. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
  240. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  241. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  242. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  243. package/package.json +1 -1
@@ -1,213 +1,147 @@
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 { VENDOR_INLINE_FORM_LABELS_EN as a } from "./index28.js";
10
- import { COUNTERPART_MESSAGE_LABELS_EN as o } from "../../../shared/counterpart-management/feature/dist/lib/labels.js";
11
- import { useCounterpartForm as s } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartForm.js";
12
- import "../../../shared/counterpart-management/feature/dist/index.js";
13
- import { useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
14
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
15
- import { Landmark as g, Plus as _, X as v } from "lucide-react";
1
+ import { PAY_BILL_FLOW_LABELS_EN as e, mergePayBillFlowLabels as t } from "./index11.js";
2
+ import { MARK_AS_PAID_FLOW_LABELS_EN as n, mergeMarkAsPaidFlowLabels as r } from "./index2.js";
3
+ import "./index5.js";
4
+ import { APPROVAL_POLICY_RULE_COPY_EN as i } from "./index15.js";
5
+ import { BILL_DETAIL_ACTIONS_LABELS_EN as a, SCHEDULED_SUMMARY_LABEL_EN as o, mergeBillDetailActionsLabels as s } from "./index29.js";
6
+ import { SOURCE_DOCUMENT_PREVIEW_LABELS_EN as c } from "./index30.js";
16
7
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js
17
- function y({ mode: y, counterpart: b, primaryAddress: x, bankAccounts: S, isBankAccountsLoading: C, isBankAccountsError: w, initialName: T, initialValues: E, onSaved: D, onCancel: O, onDirtyChange: k, labels: A }) {
18
- let j = {
19
- ...a,
20
- ...A
21
- }, [M, N] = f("none"), [P, F] = f(b?.id), [I, L] = f(!1), [R, z] = f(!1);
22
- l(() => {
23
- k?.(R);
24
- }, [R, k]);
25
- let B = u(() => t(), []), V = d(M), H = d(!1), U = s({
26
- view: M,
27
- setView: N,
28
- selectedId: P,
29
- setSelectedId: F,
30
- messages: o,
31
- counterpartType: "vendor",
32
- counterpart: b,
33
- primaryAddress: x,
34
- bankAccounts: S,
35
- isBankAccountsLoading: C,
36
- isBankAccountsError: w
37
- }), { openCreate: W, openEdit: G, setValues: K, expandAddress: q } = U, J = i(U.errors);
38
- l(() => {
39
- y === "edit" ? G() : W();
40
- }, [
41
- y,
42
- W,
43
- G
44
- ]), l(() => {
45
- V.current !== "none" && M === "none" && P && D(P), V.current = M;
46
- }, [
47
- M,
48
- P,
49
- D
50
- ]), l(() => {
51
- y !== "create" || H.current || (H.current = !0, K((e) => ({
52
- ...e,
53
- entityType: "organization",
54
- legalName: T?.trim() || E?.legalName || e.legalName,
55
- email: E?.email || e.email,
56
- phone: E?.phone || e.phone,
57
- address: E?.address ?? e.address
58
- })), E?.address && Object.values(E.address).some(Boolean) && q());
59
- }, [
60
- y,
61
- T,
62
- E,
63
- K,
64
- q
65
- ]), l(() => {
66
- y === "edit" && (U.values.bankAccount.routingNumber || U.values.bankAccount.accountNumber) && L(!0);
67
- }, [
68
- y,
69
- U.values.bankAccount.accountNumber,
70
- U.values.bankAccount.routingNumber
71
- ]), l(() => {
72
- U.sectionsToExpand.bankAccount && L(!0);
73
- }, [U.sectionsToExpand.bankAccount]);
74
- let Y = c((e) => {
75
- z(!0), K((t) => e.entityType === "individual" && t.entityType !== "individual" ? {
76
- ...t,
77
- ...e,
78
- firstName: t.firstName || t.legalName,
79
- legalName: t.legalName
80
- } : e.entityType === "organization" && t.entityType !== "organization" ? {
81
- ...t,
82
- ...e,
83
- legalName: t.legalName || [t.firstName, t.lastName].filter(Boolean).join(" ")
84
- } : {
85
- ...t,
86
- ...e
87
- });
88
- }, [K]);
89
- return /* @__PURE__ */ h("div", {
90
- ref: J,
91
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:p-4",
92
- children: [
93
- /* @__PURE__ */ h("div", {
94
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-2",
95
- children: [/* @__PURE__ */ m("p", {
96
- className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
97
- children: y === "edit" ? j.editTitle : j.createTitle
98
- }), /* @__PURE__ */ m(e, {
99
- type: "button",
100
- variant: "ghost",
101
- size: "icon",
102
- "aria-label": j.close,
103
- onClick: O,
104
- children: /* @__PURE__ */ m(v, { className: "ttw:size-4" })
105
- })]
106
- }),
107
- /* @__PURE__ */ m(r, {
108
- mode: y,
109
- counterpartMode: "vendor",
110
- values: U.values,
111
- errors: U.errors,
112
- stateOptions: B,
113
- onChange: Y,
114
- onAddressChange: (e) => {
115
- z(!0), K((t) => ({
116
- ...t,
117
- address: {
118
- ...t.address,
119
- ...e
120
- }
121
- }));
122
- },
123
- sections: {
124
- entityType: !0,
125
- profileHeading: !1,
126
- title: !1,
127
- taxId: !1,
128
- address: "collapsible",
129
- bankAccount: !1
130
- },
131
- sectionsToExpand: U.sectionsToExpand,
132
- onAddressExpand: U.expandAddress,
133
- labels: { businessNameLabel: j.nameLabel }
134
- }),
135
- /* @__PURE__ */ h("div", {
136
- className: "ttw:flex ttw:flex-col ttw:gap-1",
137
- children: [/* @__PURE__ */ m("p", {
138
- className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
139
- children: j.paymentMethodsHeading
140
- }), /* @__PURE__ */ m("p", {
141
- className: "ttw:text-sm ttw:text-muted-foreground",
142
- children: j.paymentMethodsDescription
143
- })]
144
- }),
145
- /* @__PURE__ */ h("div", {
146
- className: "ttw:flex ttw:gap-3 ttw:rounded-lg ttw:border ttw:border-border ttw:p-3",
147
- children: [/* @__PURE__ */ m("span", {
148
- className: "ttw:flex ttw:size-8 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-md ttw:bg-primary",
149
- children: /* @__PURE__ */ m(g, {
150
- "aria-hidden": !0,
151
- className: "ttw:size-4 ttw:text-white"
152
- })
153
- }), /* @__PURE__ */ h("div", {
154
- className: "ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-3",
155
- children: [/* @__PURE__ */ h("div", {
156
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
157
- children: [/* @__PURE__ */ m("p", {
158
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
159
- children: j.achTitle
160
- }), /* @__PURE__ */ m("p", {
161
- className: "ttw:text-sm ttw:text-muted-foreground",
162
- children: j.achDescription
163
- })]
164
- }), I ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m(n, {
165
- idPrefix: "vendor-inline-ach",
166
- values: U.values.bankAccount,
167
- errors: U.errors?.bankAccount,
168
- onChange: (e) => {
169
- z(!0), K((t) => ({
170
- ...t,
171
- bankAccount: {
172
- ...t.bankAccount,
173
- ...e
174
- }
175
- }));
176
- },
177
- labels: {
178
- accountHolderName: j.accountHolderNameLabel,
179
- routingNumber: j.routingNumberLabel,
180
- accountNumber: j.accountNumberLabel
181
- }
182
- }), /* @__PURE__ */ m("p", {
183
- className: "ttw:text-sm ttw:text-muted-foreground",
184
- children: j.achHelp
185
- })] }) : /* @__PURE__ */ h(e, {
186
- type: "button",
187
- variant: "link",
188
- className: "ttw:w-fit ttw:px-0",
189
- onClick: () => L(!0),
190
- children: [/* @__PURE__ */ m(_, { className: "ttw:size-4" }), j.addBankAccount]
191
- })]
192
- })]
193
- }),
194
- /* @__PURE__ */ h("div", {
195
- className: "ttw:flex ttw:justify-end ttw:gap-2",
196
- children: [/* @__PURE__ */ m(e, {
197
- type: "button",
198
- variant: "outline",
199
- onClick: O,
200
- children: j.cancel
201
- }), /* @__PURE__ */ m(e, {
202
- type: "button",
203
- onClick: U.submit,
204
- loading: U.isSubmitting,
205
- disabled: U.isSubmitting,
206
- children: j.save
207
- })]
208
- })
209
- ]
210
- });
8
+ var l = {
9
+ unmappedValidationError: (e, t) => `${e}: ${t}`,
10
+ unknownValidationField: "(unknown field)",
11
+ requiredField: "This field is required.",
12
+ saveFailed: "We could not save this bill. Try again.",
13
+ finalizeFailed: "We could not submit this bill. Try again.",
14
+ draftSaved: "Bill saved as a draft.",
15
+ billFinalized: "Bill submitted for approval.",
16
+ unreadableMoney: "Enter a valid amount.",
17
+ unusableQuantity: "Enter a quantity greater than 0.",
18
+ lineItemsNeedAttention: "Check the highlighted line items before saving.",
19
+ totalsNeedAttention: "Enter valid amounts for discount, tax, and total."
20
+ }, u = {
21
+ achMethod: "via ACH bank transfer",
22
+ noMethod: "No payment method on file",
23
+ accountHolder: "Account holder",
24
+ routingNumber: "Routing number",
25
+ accountNumber: "Account number",
26
+ paymentMethodLoading: "Loading payment method...",
27
+ paymentMethodUnavailable: "We could not load payment methods. Try again.",
28
+ searchFailed: "We could not load vendors. Try again.",
29
+ vendorDetailsFailed: "We could not load this vendor. Try again."
30
+ }, d = {
31
+ attachFailed: "We could not attach that file. Try again.",
32
+ noDocument: "No document attached to this bill.",
33
+ preview: c
34
+ }, f = {
35
+ notProvided: "Not provided",
36
+ paymentInstructionsValue: (e) => `Account ending in ${e}`,
37
+ invoiceDateRow: "Invoice date",
38
+ dueDateRow: "Due date",
39
+ invoiceNumberRow: "Invoice number",
40
+ glCodeMissing: "GL code not specified",
41
+ qtyPriceValue: (e, t) => `${e} x ${t}`,
42
+ subtotalRow: "Subtotal",
43
+ taxRow: "Tax",
44
+ discountRow: "Discounts",
45
+ totalRow: "Total",
46
+ paymentInstructionsSaveError: "Couldn't save payment instructions. Try again.",
47
+ paymentInstructionsLinkError: "Payment instructions were saved to the vendor, but couldn't be added to this bill. Try again."
48
+ }, p = {
49
+ dateLabel: (e) => new Date(e).toLocaleString("en-US", {
50
+ month: "short",
51
+ day: "numeric",
52
+ year: "numeric",
53
+ hour: "numeric",
54
+ minute: "2-digit"
55
+ }),
56
+ byActor: (e, t) => `${e} by ${t}`,
57
+ billAdded: "Bill added",
58
+ billUploaded: "Bill uploaded",
59
+ billUpdated: "Bill updated",
60
+ attachmentAdded: "Attachment added",
61
+ submittedForApproval: "Submitted for approval",
62
+ approvalRequested: "Approval requested",
63
+ approved: "Approved",
64
+ autoApproved: "Approved automatically",
65
+ rejected: "Rejected",
66
+ rejectedWithReason: (e) => `Rejected: ${e}`,
67
+ reopened: "Reopened",
68
+ markedAsPaid: "Marked as paid",
69
+ markedAsPartiallyPaid: "Marked as partially paid",
70
+ paymentReverted: "Payment reverted",
71
+ statusChanged: (e) => `Status changed to ${e}`
72
+ }, m = {
73
+ newTitle: "New bill",
74
+ extractedTitle: (e) => `Bill from ${e}`,
75
+ viewTitle: (e) => `Bill from ${e}`,
76
+ readOnlyTitle: "Bill details",
77
+ addedOn: (e) => `Added on ${e}`,
78
+ discardConfirm: "Discard your changes to this bill?",
79
+ scheduledSummary: o,
80
+ actions: a,
81
+ detail: f,
82
+ history: p,
83
+ payBill: e,
84
+ markAsPaid: n,
85
+ approvalPolicyCopy: i,
86
+ deleteDraft: {
87
+ menuItem: "Delete draft",
88
+ dialog: {
89
+ title: "Delete this draft?",
90
+ description: "The draft and anything entered on it are removed. This can't be undone.",
91
+ confirmButton: "Delete draft"
92
+ },
93
+ error: "Couldn't delete this draft. Try again."
94
+ }
95
+ };
96
+ function h(e) {
97
+ return {
98
+ ...m,
99
+ ...e,
100
+ actions: s(e?.actions),
101
+ detail: {
102
+ ...m.detail,
103
+ ...e?.detail
104
+ },
105
+ history: {
106
+ ...m.history,
107
+ ...e?.history
108
+ },
109
+ payBill: t(e?.payBill),
110
+ markAsPaid: r(e?.markAsPaid),
111
+ approvalPolicyCopy: {
112
+ ...m.approvalPolicyCopy,
113
+ ...e?.approvalPolicyCopy
114
+ },
115
+ deleteDraft: {
116
+ ...m.deleteDraft,
117
+ ...e?.deleteDraft,
118
+ dialog: (() => {
119
+ let t = {
120
+ ...m.deleteDraft.dialog,
121
+ ...e?.deleteDraft?.dialog
122
+ };
123
+ return delete t.reason, t;
124
+ })()
125
+ }
126
+ };
211
127
  }
128
+ var g = {
129
+ createTitle: "New vendor",
130
+ editTitle: "Edit vendor",
131
+ close: "Close the vendor form",
132
+ nameLabel: "Name",
133
+ addAddress: "Add address (optional)",
134
+ paymentMethodsHeading: "Accepted payment methods",
135
+ paymentMethodsDescription: "How and where will the money be sent. Don't have these yet? No problem. You can save this vendor and add their payment details later — you just won't be able to send payments until you do.",
136
+ achTitle: "ACH bank transfer",
137
+ achDescription: "Fast, direct deposit to the vendor's bank. Arrives in 1–3 business days.",
138
+ addBankAccount: "Add bank account",
139
+ accountHolderNameLabel: "Account holder name",
140
+ routingNumberLabel: "Routing number",
141
+ accountNumberLabel: "Account number",
142
+ achHelp: "Ask your vendor for this — it's usually on their invoice, W-9, or a payment instructions email they send you.",
143
+ cancel: "Cancel",
144
+ save: "Save vendor"
145
+ };
212
146
  //#endregion
213
- export { y as VendorInlineForm, y as default };
147
+ export { l as BILL_CREATE_MESSAGE_LABELS_EN, m as BILL_CREATE_SCREEN_LABELS_EN, f as BILL_DETAIL_VIEW_LABELS_EN, p as BILL_HISTORY_LABELS_EN, d as SOURCE_DOCUMENT_CONTAINER_LABELS_EN, g as VENDOR_INLINE_FORM_LABELS_EN, u as VENDOR_SECTION_PROPS_LABELS_EN, h as mergeBillCreateScreenCopy };
@@ -2,216 +2,70 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { maskAccountNumber as e } from "./index5.js";
6
- import { usePayableSuggestionsQuery as t } from "../../data-access/dist/index14.js";
5
+ import { SourceDocumentPanel as e } from "../../ui/dist/index90.js";
6
+ import "../../ui/dist/index.js";
7
+ import { useAttachPayableFileMutation as t, useDeletePayableFileMutation as n } from "../../data-access/dist/index10.js";
7
8
  import "../../data-access/dist/index.js";
8
- import { VENDOR_SECTION_PROPS_LABELS_EN as n } from "./index28.js";
9
- import { buildVendorPrefill as r } from "./index30.js";
10
- import { counterpartFormBankAccountToCreatePayload as i, counterpartFormBankAccountToUpdatePayload as ee, getAchInstructions as te, getCounterpartEmail as a, getCounterpartName as o, getPayableAchInstructions as s, hasAchFormValues as c, resolveCounterpartBankAccountWrite as ne, validateAchFormValues as re } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
11
- import { useCounterpartsQuery as ie } from "../../../shared/counterpart-management/data-access/dist/index3.js";
12
- import { useCreateCounterpartBankAccountMutation as ae, useUpdateCounterpartBankAccountMutation as l } from "../../../shared/counterpart-management/data-access/dist/index5.js";
13
- import { useCounterpartDetails as u } from "../../../shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js";
14
- import "../../../shared/counterpart-management/feature/dist/index.js";
15
- import { VendorInlineForm as oe } from "./index31.js";
16
- import { useCallback as d, useEffect as f, useMemo as p, useRef as m, useState as h } from "react";
17
- import { jsx as se } from "react/jsx-runtime";
9
+ import { createSourceDocumentPreview as r } from "./index30.js";
10
+ import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as i } from "./index31.js";
11
+ import { useEffect as a, useState as o } from "react";
12
+ import { jsx as s } from "react/jsx-runtime";
18
13
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js
19
- var ce = 10, le = 300, g = {
20
- accountHolderName: "",
21
- routingNumber: "",
22
- accountNumber: ""
23
- };
24
- function _({ payableId: _, counterpartId: v, payableCounterpartId: y, payableCounterpartBankAccountId: b, onCounterpartChange: x, requiredError: ue, extractedVendor: S, labels: de }) {
25
- let C = {
26
- ...n,
27
- ...de
28
- }, [w, T] = h(""), [E, fe] = h(""), [D, O] = h(), [k, A] = h(!1), [j, M] = h(g), N = m(j);
29
- N.current = j;
30
- let [pe, P] = h(!1), F = c(j) || pe, [I, L] = h(), [R, z] = h(), B = m(v), [V, me] = h(!1), H = d(() => {
31
- A(!1), M(g), L(void 0), z(void 0);
32
- }, []), U = d((e) => {
33
- me(!0), x(e);
34
- }, [x]), W = t(_, { enabled: !!_ && !v && !y }).data?.suggested_counterpart?.id;
35
- f(() => {
36
- !V && !v && !y && W && U(W);
37
- }, [
38
- v,
39
- y,
40
- V,
41
- W,
42
- U
43
- ]), f(() => {
44
- B.current !== v && (B.current = v, H());
45
- }, [v, H]), f(() => {
46
- let e = setTimeout(() => {
47
- fe(w.trim());
48
- }, le);
49
- return () => clearTimeout(e);
50
- }, [w]);
51
- let G = ie({
52
- sort: "counterpart_name",
53
- order: "asc",
54
- limit: ce,
55
- counterpart_name__icontains: E || void 0,
56
- is_vendor: !0,
57
- enabled: !!E
58
- }), K = u({ selectedId: v }), q = ae(), J = l(), Y = p(() => {
59
- let t = K.counterpart;
60
- if (!t) return;
61
- if (K.isBankAccountsLoading) return {
62
- name: o(t),
63
- email: a(t),
64
- methodLabel: C.paymentMethodLoading,
65
- fields: []
66
- };
67
- if (K.isBankAccountsError) return {
68
- name: o(t),
69
- email: a(t),
70
- methodLabel: C.paymentMethodUnavailable,
71
- fields: []
72
- };
73
- let n = s(K.bankAccounts);
74
- return {
75
- name: o(t),
76
- email: a(t),
77
- methodLabel: n ? C.achMethod : C.noMethod,
78
- fields: n ? [
79
- {
80
- label: C.accountHolder,
81
- value: n.account_holder_name ?? ""
82
- },
83
- {
84
- label: C.routingNumber,
85
- value: n.routing_number ?? ""
86
- },
87
- {
88
- label: C.accountNumber,
89
- value: n.account_number ?? "",
90
- maskedValue: n.account_number ? e(n.account_number) : ""
91
- }
92
- ] : []
93
- };
94
- }, [
95
- K.bankAccounts,
96
- K.counterpart,
97
- K.isBankAccountsError,
98
- K.isBankAccountsLoading,
99
- C
100
- ]), X = p(() => te(K.bankAccounts), [K.bankAccounts]), Z = p(() => s(K.bankAccounts)?.id, [K.bankAccounts]), Q = d(async () => {
101
- let e = N.current;
102
- if (!v) return { ok: !0 };
103
- if (!c(e)) return b && v === y ? {
104
- ok: !0,
105
- counterpartBankAccountId: b
106
- } : K.isBankAccountsLoading || K.isBankAccountsFetching || K.isBankAccountsError ? { ok: !1 } : {
107
- ok: !0,
108
- counterpartBankAccountId: Z
109
- };
110
- if (K.isBankAccountsLoading || K.isBankAccountsFetching || K.isBankAccountsError) return { ok: !1 };
111
- let t = re(e);
112
- if (Object.keys(t).length > 0) return L(t), A(!0), { ok: !1 };
113
- L(void 0);
114
- let n = ne(K.bankAccounts, R ?? X?.id);
115
- if (n.kind === "update") return await J.mutateAsync({
116
- path: {
117
- counterpart_id: v,
118
- bank_account_id: n.bankAccountId
119
- },
120
- body: ee(e, { includeAchDefaults: n.includeAchDefaults })
121
- }), z(n.bankAccountId), {
122
- ok: !0,
123
- counterpartBankAccountId: n.bankAccountId
124
- };
125
- let r = await q.mutateAsync({
126
- path: { counterpart_id: v },
127
- body: i(e, { isDefaultForCurrency: n.isDefaultForCurrency })
128
- });
129
- return z(r?.id), {
130
- ok: !0,
131
- counterpartBankAccountId: r?.id
132
- };
133
- }, [
134
- X,
135
- v,
136
- q,
137
- K.bankAccounts,
138
- K.isBankAccountsError,
139
- K.isBankAccountsFetching,
140
- K.isBankAccountsLoading,
141
- R,
142
- Z,
143
- b,
144
- y,
145
- J
146
- ]), he = p(() => (G.data?.data ?? []).map((e) => ({
147
- name: o(e),
148
- email: a(e),
149
- onSelect: () => U(e.id)
150
- })), [G.data, U]), ge = p(() => r(S), [S]), $ = d(() => {
151
- O(void 0), P(!1);
152
- }, []), _e = d((e) => {
153
- O(void 0), P(!1), U(e);
154
- }, [U]);
155
- if (D) return {
156
- mode: "creating",
157
- newVendorForm: /* @__PURE__ */ se(oe, {
158
- mode: D,
159
- counterpart: D === "edit" ? K.counterpart : void 0,
160
- primaryAddress: D === "edit" ? K.primaryAddress : void 0,
161
- bankAccounts: D === "edit" ? K.bankAccounts : void 0,
162
- isBankAccountsLoading: D === "edit" ? K.isBankAccountsLoading : void 0,
163
- isBankAccountsError: D === "edit" ? K.isBankAccountsError : void 0,
164
- initialName: D === "create" ? w : void 0,
165
- initialValues: D === "create" ? ge : void 0,
166
- onSaved: _e,
167
- onCancel: $,
168
- onDirtyChange: P
169
- }),
170
- onClear: $,
171
- hasUnsavedVendorChanges: F
172
- };
173
- if (Y) {
174
- let e = K.isBankAccountsLoading || K.isBankAccountsFetching || K.isBankAccountsError;
175
- return {
176
- mode: "resolved",
177
- summary: Y,
178
- onEdit: e ? void 0 : () => O("edit"),
179
- onClear: () => U(void 0),
180
- paymentInstructions: e ? void 0 : {
181
- isOpen: k,
182
- values: j,
183
- errors: I,
184
- onOpen: () => {
185
- A(!0), X && (M({
186
- accountHolderName: X.account_holder_name ?? "",
187
- routingNumber: X.routing_number ?? "",
188
- accountNumber: X.account_number ?? ""
189
- }), z(X.id));
190
- },
191
- onChange: (e) => {
192
- M((t) => ({
193
- ...t,
194
- ...e
195
- })), L(void 0);
196
- }
197
- },
198
- savePaymentInstructions: Q,
199
- hasUnsavedVendorChanges: F
200
- };
201
- }
202
- return {
203
- mode: "selecting",
204
- error: G.isError ? C.searchFailed : K.isError ? C.vendorDetailsFailed : ue,
205
- search: {
206
- query: w,
207
- onQueryChange: T,
208
- isLoading: G.isLoading,
209
- onAddVendor: () => O("create"),
210
- results: he
211
- },
212
- savePaymentInstructions: Q,
213
- hasUnsavedVendorChanges: F
214
- };
14
+ function c(e) {
15
+ let [t, n] = o();
16
+ return a(() => {
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 l({ payableId: a, file: o, isDocumentPending: l, pendingFileName: u, readOnly: d, staging: f, labels: p }) {
26
+ let { stagedFile: m, onFileStaged: h, onClearStagedFile: g, isSaving: _ } = f ?? {}, v = {
27
+ ...i,
28
+ ...p,
29
+ preview: {
30
+ ...i.preview,
31
+ ...p?.preview
32
+ }
33
+ }, y = t(), b = n(), x = c(m), S = !!(o || m);
34
+ if (!S && (l || y.isPending)) return /* @__PURE__ */ s(e, {
35
+ mode: "loading",
36
+ fileName: u
37
+ });
38
+ if (!S && d) return /* @__PURE__ */ s("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: v.noDocument
41
+ });
42
+ if (!S) return /* @__PURE__ */ s(e, {
43
+ mode: "upload",
44
+ uploadStatus: y.isPending ? "uploading" : "idle",
45
+ uploadErrorMessage: y.isError ? v.attachFailed : void 0,
46
+ onFilesSelected: (e) => {
47
+ let [t] = e;
48
+ t && (a ? y.mutate({
49
+ path: { payable_id: a },
50
+ file: t
51
+ }) : h?.(t));
52
+ }
53
+ });
54
+ let C = o?.name ?? m?.name ?? "", w = r(o || {
55
+ name: C,
56
+ url: x ?? "",
57
+ mimetype: m?.type ?? ""
58
+ }, v.preview);
59
+ return /* @__PURE__ */ s(e, {
60
+ mode: "document",
61
+ fileName: C,
62
+ preview: w,
63
+ onDownload: o ? () => window.open(o.url, "_blank", "noopener,noreferrer") : void 0,
64
+ onDelete: d ? void 0 : o && a ? () => b.mutate({
65
+ path: { file_id: o.id },
66
+ payableId: a
67
+ }) : _ ? void 0 : g
68
+ });
215
69
  }
216
70
  //#endregion
217
- export { _ as useVendorSectionProps };
71
+ export { l as SourceDocumentContainer, l as default };