@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,144 +1,190 @@
1
1
  import { Button as e } from "./index56.js";
2
- import { Input as t } from "./index89.js";
3
- import { Typography as n } from "./index62.js";
4
- import { Field as r, FieldContent as i, FieldError as a, FieldLabel as o } from "./index88.js";
5
- import { getCreateBankAccountSchema as s } from "./index98.js";
6
- import { useCreateEntityBankAccount as c } from "./index118.js";
7
- import { prepareBankAccountCreatePayload as l } from "./index178.js";
8
- import "./index202.js";
9
- import { safeZodResolver as u } from "./index391.js";
10
- import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
11
- import { useLingui as p } from "@lingui/react";
12
- import { Controller as m, useForm as h } from "react-hook-form";
2
+ import { InputGroup as t, InputGroupAddon as n, InputGroupInput as r } from "./index107.js";
3
+ import { LoadingSpinner as i } from "./index51.js";
4
+ import "./index52.js";
5
+ import { Typography as a } from "./index62.js";
6
+ import { Separator as o } from "./index64.js";
7
+ import { Field as s, FieldContent as c, FieldLabel as l } from "./index88.js";
8
+ import { sanitizeTaxRateInput as u } from "./index97.js";
9
+ import { useLineItemManagement as d } from "./index218.js";
10
+ import { useGetMeasureUnits as f } from "./index458.js";
11
+ import { FormErrorDisplay as p, useFormErrors as m } from "./index474.js";
12
+ import "./index475.js";
13
+ import { InvoiceItemRow as ee } from "./index495.js";
14
+ import { InvoiceDiscountField as h } from "./index496.js";
15
+ import { InvoiceTotals as g } from "./index497.js";
16
+ import { useCallback as _, useEffect as v, useRef as y } from "react";
17
+ import { Plus as b } from "lucide-react";
18
+ import { jsx as x, jsxs as S } from "@emotion/react/jsx-runtime";
19
+ import { useLingui as C } from "@lingui/react";
20
+ import { Controller as w, useFormContext as T } from "react-hook-form";
13
21
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js
14
- var g = ({ bankAccountsLength: g, onCreate: _, onCancel: v }) => {
15
- let { i18n: y } = p(), { mutate: b, isPending: x } = c(_), { control: S, handleSubmit: C } = h({
16
- mode: "onSubmit",
17
- reValidateMode: "onSubmit",
18
- resolver: u(s(y)),
19
- defaultValues: {
20
- display_name: "",
21
- account_holder_name: "",
22
- account_number: "",
23
- routing_number: ""
22
+ var E = ({ defaultCurrency: E = "USD", registerLineItemCleanupFn: D }) => {
23
+ let { i18n: O } = C(), { control: k, formState: A, getValues: j, watch: M, trigger: N, clearErrors: P } = T(), F = M("tax_mode") === "inclusive", { data: I, isLoading: L } = f(), { fields: R, subtotalPrice: z, discountValue: te, nonTaxableSubtotal: B, taxableSubtotal: V, totalPrice: H, totalTaxes: U, lineItemErrors: W, autoFocusIndex: G, handleAddRow: K, handleRemoveItem: q, setValueWithValidationLocal: J, cleanUpLineItemsForSubmission: Y } = d({
24
+ defaultCurrency: E,
25
+ isInclusivePricing: F
26
+ }), X = _((e, t) => {
27
+ J(e, t, { shouldValidate: !1 });
28
+ }, [J]);
29
+ v(() => (D?.(Y), () => D?.(null)), [D, Y]);
30
+ let Z = y(null), { generalError: Q, fieldErrors: ne } = m(W), $ = _((e, t, n) => {
31
+ let r = t.measureUnit?.id, i = t.measureUnit?.name;
32
+ i && !r ? (X(`line_items.${e}.product.measure_unit_id`, ""), X(`line_items.${e}.product.measure_unit_name`, i), X(`line_items.${e}.measure_unit`, {
33
+ name: i,
34
+ id: null
35
+ })) : (r || n) && (X(`line_items.${e}.product.measure_unit_id`, r || n), X(`line_items.${e}.product.measure_unit_name`, void 0), X(`line_items.${e}.measure_unit`, void 0));
36
+ }, [X]), re = _((e, t, n) => {
37
+ let r = t.label ?? "";
38
+ X(`line_items.${e}.product.name`, r), r.trim() && P(`line_items.${e}.product.name`);
39
+ let i = t.id !== "" && t.id !== "custom" && n;
40
+ if (X(`line_items.${e}.product_id`, i ? t.id : ""), i) {
41
+ X(`line_items.${e}.product.price.value`, t.price?.value ?? 0), X(`line_items.${e}.product.price.currency`, E);
42
+ let n = j(`line_items.${e}.product.measure_unit_id`);
43
+ $(e, t, n), X(`line_items.${e}.quantity`, t.smallestAmount || 1), X(`line_items.${e}.product.smallest_amount`, t.smallestAmount), X(`line_items.${e}.product.type`, "product"), X(`line_items.${e}.product.description`, t.description ?? ""), N(`line_items.${e}`);
24
44
  }
25
- });
26
- return /* @__PURE__ */ f("div", {
27
- className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl",
45
+ }, [
46
+ E,
47
+ j,
48
+ X,
49
+ $,
50
+ N,
51
+ P
52
+ ]);
53
+ return /* @__PURE__ */ S("div", {
54
+ ref: Z,
55
+ className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
28
56
  children: [
29
- /* @__PURE__ */ d("div", {
30
- className: "ttw:flex ttw:flex-col ttw:gap-1",
31
- children: /* @__PURE__ */ d(n, {
57
+ /* @__PURE__ */ S("div", {
58
+ className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
59
+ children: [/* @__PURE__ */ x(a, {
60
+ variant: "h4",
61
+ children: O._("Products and services")
62
+ }), /* @__PURE__ */ x(a, {
32
63
  variant: "body2",
33
- children: y._("Add a bank account")
34
- })
64
+ color: "muted",
65
+ className: "ttw:font-medium",
66
+ children: O._("Add the products and services on this invoice. You'll have the option to save new items to your inventory.")
67
+ })]
35
68
  }),
36
- /* @__PURE__ */ f("div", {
37
- className: "ttw:flex ttw:gap-4",
38
- children: [/* @__PURE__ */ d(m, {
39
- name: "routing_number",
40
- control: S,
41
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
42
- /* @__PURE__ */ d(o, {
43
- htmlFor: "routing_number",
44
- children: y._("Routing number")
69
+ /* @__PURE__ */ x(p, {
70
+ generalError: A?.errors?.line_items?.root?.message ?? Q,
71
+ fieldErrors: ne
72
+ }),
73
+ /* @__PURE__ */ S("ul", {
74
+ className: "ttw:flex ttw:flex-col ttw:gap-2.5",
75
+ children: [/* @__PURE__ */ S("li", {
76
+ className: "ttw:flex ttw:items-center ttw:gap-2.5 ttw:h-5",
77
+ children: [
78
+ /* @__PURE__ */ x(a, {
79
+ variant: "body2",
80
+ className: "ttw:font-medium ttw:leading-5 ttw:min-w-30 ttw:whitespace-nowrap ttw:inline-flex ttw:flex-1",
81
+ children: O._("Item name")
45
82
  }),
46
- /* @__PURE__ */ d(t, {
47
- ...e,
48
- id: "routing_number",
49
- placeholder: y._("e.g. 123456789"),
50
- value: e.value ?? "",
51
- disabled: x,
52
- "aria-invalid": !!n
83
+ /* @__PURE__ */ x(a, {
84
+ variant: "body2",
85
+ className: "ttw:font-medium ttw:leading-5 ttw:w-24 ttw:min-w-24",
86
+ children: O._("Quantity")
53
87
  }),
54
- /* @__PURE__ */ d(a, { errors: n ? [n] : [] })
55
- ] }) })
56
- }), /* @__PURE__ */ d(m, {
57
- name: "account_number",
58
- control: S,
59
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
60
- /* @__PURE__ */ d(o, {
61
- htmlFor: "account_number",
62
- children: y._("Account number")
88
+ /* @__PURE__ */ x(a, {
89
+ variant: "body2",
90
+ className: "ttw:font-medium ttw:leading-5 ttw:w-20.5 ttw:min-w-20.5",
91
+ children: O._("Units")
63
92
  }),
64
- /* @__PURE__ */ d(t, {
65
- ...e,
66
- id: "account_number",
67
- placeholder: y._("e.g. 123456789"),
68
- value: e.value ?? "",
69
- disabled: x,
70
- "aria-invalid": !!n
93
+ /* @__PURE__ */ x(a, {
94
+ variant: "body2",
95
+ className: "ttw:font-medium ttw:leading-5 ttw:max-w-41 ttw:w-full ttw:min-w-29",
96
+ children: O._("Price")
71
97
  }),
72
- /* @__PURE__ */ d(a, { errors: n ? [n] : [] })
73
- ] }) })
74
- })]
75
- }),
76
- /* @__PURE__ */ f("div", {
77
- className: "ttw:flex ttw:gap-4",
78
- children: [/* @__PURE__ */ d(m, {
79
- name: "account_holder_name",
80
- control: S,
81
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
82
- /* @__PURE__ */ d(o, {
83
- htmlFor: "account_holder_name",
84
- children: y._("Account holder name")
98
+ /* @__PURE__ */ x(a, {
99
+ variant: "body2",
100
+ className: "ttw:font-medium ttw:leading-5 ttw:w-12 ttw:min-w-12",
101
+ children: O._("Taxable")
85
102
  }),
86
- /* @__PURE__ */ d(t, {
87
- ...e,
88
- id: "account_holder_name",
89
- placeholder: y._("e.g. James Smith"),
90
- value: e.value ?? "",
91
- disabled: x,
92
- "aria-invalid": !!n
93
- }),
94
- /* @__PURE__ */ d(a, { errors: n ? [n] : [] })
95
- ] }) })
96
- }), /* @__PURE__ */ d(m, {
97
- name: "display_name",
98
- control: S,
99
- render: ({ field: e, fieldState: { error: s } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
100
- /* @__PURE__ */ f(o, {
101
- htmlFor: "display_name",
102
- className: "ttw:gap-1",
103
- children: [y._("Account nickname"), /* @__PURE__ */ d(n, {
104
- variant: "body2",
105
- color: "muted",
106
- className: "ttw:leading-snug",
107
- children: y._("(optional)")
108
- })]
109
- }),
110
- /* @__PURE__ */ d(t, {
103
+ R.length > 1 && /* @__PURE__ */ x("div", { className: "ttw:w-10 ttw:min-w-10" })
104
+ ]
105
+ }), L ? /* @__PURE__ */ x("li", {
106
+ className: "ttw:flex ttw:items-center ttw:justify-center ttw:h-9",
107
+ children: /* @__PURE__ */ x(i, { className: "ttw:w-5 ttw:h-5" })
108
+ }) : R.map((e, t) => /* @__PURE__ */ x(ee, {
109
+ field: e,
110
+ index: t,
111
+ control: k,
112
+ errors: A.errors,
113
+ defaultCurrency: E,
114
+ measureUnitsData: I,
115
+ onRequestLineItemValue: (e) => j(`line_items.${t}.${e}`),
116
+ onLineItemValueChange: (e, n, r) => {
117
+ let i = `line_items.${t}.${e}`;
118
+ J(i, n, r);
119
+ },
120
+ canRemove: R.length > 1,
121
+ autoFocusName: t === G,
122
+ onUpdateItem: re,
123
+ onRemoveItem: q,
124
+ container: Z
125
+ }, e.id))]
126
+ }),
127
+ /* @__PURE__ */ S(e, {
128
+ type: "button",
129
+ variant: "ghost",
130
+ onClick: K,
131
+ className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit",
132
+ children: [/* @__PURE__ */ x(b, { className: "ttw:size-5 ttw:text-primary" }), O._("Add item")]
133
+ }),
134
+ /* @__PURE__ */ x(w, {
135
+ name: "discount",
136
+ control: k,
137
+ render: ({ field: e }) => /* @__PURE__ */ x(h, {
138
+ value: e.value,
139
+ onChange: e.onChange,
140
+ onBlur: e.onBlur,
141
+ currency: E,
142
+ errorMessage: A.errors.discount?.amount?.message
143
+ })
144
+ }),
145
+ /* @__PURE__ */ x(w, {
146
+ name: "tax_rate",
147
+ control: k,
148
+ render: ({ field: e }) => /* @__PURE__ */ x(s, { children: /* @__PURE__ */ S(c, {
149
+ className: "ttw:flex-row ttw:justify-end",
150
+ children: [/* @__PURE__ */ x(l, {
151
+ htmlFor: e.name,
152
+ children: O._("Tax rate")
153
+ }), /* @__PURE__ */ S(t, {
154
+ className: "ttw:w-40 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0",
155
+ children: [/* @__PURE__ */ x(r, {
111
156
  ...e,
112
- id: "display_name",
113
- placeholder: y._("e.g. Empire Bank Checking"),
114
157
  value: e.value ?? "",
115
- disabled: x,
116
- "aria-invalid": !!s
117
- }),
118
- /* @__PURE__ */ d(a, { errors: s ? [s] : [] })
119
- ] }) })
120
- })]
158
+ id: e.name,
159
+ className: "ttw:text-right",
160
+ placeholder: O._("e.g. 6.25"),
161
+ type: "text",
162
+ inputMode: "decimal",
163
+ onChange: (t) => {
164
+ e.onChange(u(t.target.value));
165
+ },
166
+ onBlur: (t) => {
167
+ let n = t.target.value;
168
+ e.onChange(n.endsWith(".") ? n.slice(0, -1) : n), e.onBlur();
169
+ }
170
+ }), /* @__PURE__ */ x(n, {
171
+ align: "inline-end",
172
+ children: "%"
173
+ })]
174
+ })]
175
+ }) })
121
176
  }),
122
- /* @__PURE__ */ f("div", {
123
- className: "ttw:flex ttw:gap-4",
124
- children: [g !== 0 && /* @__PURE__ */ d(e, {
125
- type: "button",
126
- variant: "outline",
127
- className: "ttw:border-border",
128
- disabled: x,
129
- onClick: v,
130
- children: y._("Cancel")
131
- }), /* @__PURE__ */ d(e, {
132
- type: "button",
133
- disabled: x,
134
- onClick: C((e) => {
135
- b({ body: l(e) });
136
- }),
137
- children: y._("Save account")
138
- })]
177
+ /* @__PURE__ */ x(o, {}),
178
+ /* @__PURE__ */ x(g, {
179
+ subtotalPrice: z,
180
+ discountValue: te,
181
+ nonTaxableSubtotal: B,
182
+ taxableSubtotal: V,
183
+ totalTaxes: U,
184
+ totalPrice: H
139
185
  })
140
186
  ]
141
187
  });
142
188
  };
143
189
  //#endregion
144
- export { g as BankAccountSectionForm };
190
+ export { E as ItemsSection };
@@ -1,133 +1,144 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { Skeleton as t } from "./index54.js";
1
+ import { Button as e } from "./index56.js";
2
+ import { Input as t } from "./index89.js";
4
3
  import { Typography as n } from "./index62.js";
5
- import { Field as r, FieldContent as i, FieldError as a } from "./index88.js";
6
- import { Select as o, SelectContent as s, SelectItem as c, SelectSeparator as l, SelectTrigger as u, SelectValue as d } from "./index105.js";
7
- import { useUserPermissions as f } from "./index116.js";
8
- import { getLineLabel as p, getSourceLabel as m } from "./index124.js";
9
- import { useSelectableBankAccounts as h } from "./index125.js";
10
- import "./index222.js";
11
- import { Badge as g } from "./index223.js";
12
- import { Alert as _, AlertDescription as v, AlertTitle as y } from "./index257.js";
13
- import { BankAccountSectionForm as b } from "./index498.js";
14
- import { useEffect as x, useRef as S, useState as C } from "react";
15
- import { Plus as w, TriangleAlert as T } from "lucide-react";
16
- import { Fragment as E, jsx as D, jsxs as O } from "@emotion/react/jsx-runtime";
17
- import { useLingui as k } from "@lingui/react";
18
- import { Controller as A, useFormContext as j } from "react-hook-form";
4
+ import { Field as r, FieldContent as i, FieldError as a, FieldLabel as o } from "./index88.js";
5
+ import { getCreateBankAccountSchema as s } from "./index98.js";
6
+ import { useCreateEntityBankAccount as c } from "./index118.js";
7
+ import { prepareBankAccountCreatePayload as l } from "./index178.js";
8
+ import "./index202.js";
9
+ import { safeZodResolver as u } from "./index391.js";
10
+ import { jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
11
+ import { useLingui as p } from "@lingui/react";
12
+ import { Controller as m, useForm as h } from "react-hook-form";
19
13
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js
20
- var M = ({ disabled: M, embeddedBankName: N }) => {
21
- let { i18n: P } = k(), F = S(!1), { control: I, setValue: L, getFieldState: R, clearErrors: z } = j(), [B, V] = C(!1), H = f().has(e.BankAccountWriteOrg), { bankAccounts: U, isLoading: W } = h(), G = R("bank_account_id");
22
- return x(() => {
23
- if (U.length === 1 && !W && !F.current) {
24
- let e = U[0];
25
- L("bank_account_id", e.id), L("bank_account_type", e.bank_account_type), F.current = !0;
14
+ var g = ({ bankAccountsLength: g, onCreate: _, onCancel: v }) => {
15
+ let { i18n: y } = p(), { mutate: b, isPending: x } = c(_), { control: S, handleSubmit: C } = h({
16
+ mode: "onSubmit",
17
+ reValidateMode: "onSubmit",
18
+ resolver: u(s(y)),
19
+ defaultValues: {
20
+ display_name: "",
21
+ account_holder_name: "",
22
+ account_number: "",
23
+ routing_number: ""
26
24
  }
27
- }, [
28
- L,
29
- U,
30
- W
31
- ]), /* @__PURE__ */ O("div", {
32
- className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
33
- children: [/* @__PURE__ */ O("div", {
34
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
35
- children: [/* @__PURE__ */ D(n, {
36
- variant: "h4",
37
- children: P._("Payment instructions")
38
- }), /* @__PURE__ */ D(n, {
39
- variant: "body2",
40
- color: "muted",
41
- className: "ttw:font-medium",
42
- children: P._("Tells the customer how they can pay you. We'll include the selected info on the invoice")
43
- })]
44
- }), W || U.length > 0 && !B ? /* @__PURE__ */ O("div", {
45
- className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl",
46
- children: [/* @__PURE__ */ O("div", {
25
+ });
26
+ return /* @__PURE__ */ f("div", {
27
+ className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl",
28
+ children: [
29
+ /* @__PURE__ */ d("div", {
47
30
  className: "ttw:flex ttw:flex-col ttw:gap-1",
48
- children: [/* @__PURE__ */ D(n, {
31
+ children: /* @__PURE__ */ d(n, {
49
32
  variant: "body2",
50
- children: P._("Bank account")
51
- }), /* @__PURE__ */ D(n, {
52
- variant: "caption",
53
- color: "muted",
54
- children: P._("Display your bank account number and routing number")
33
+ children: y._("Add a bank account")
34
+ })
35
+ }),
36
+ /* @__PURE__ */ f("div", {
37
+ className: "ttw:flex ttw:gap-4",
38
+ children: [/* @__PURE__ */ d(m, {
39
+ name: "routing_number",
40
+ control: S,
41
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
42
+ /* @__PURE__ */ d(o, {
43
+ htmlFor: "routing_number",
44
+ children: y._("Routing number")
45
+ }),
46
+ /* @__PURE__ */ d(t, {
47
+ ...e,
48
+ id: "routing_number",
49
+ placeholder: y._("e.g. 123456789"),
50
+ value: e.value ?? "",
51
+ disabled: x,
52
+ "aria-invalid": !!n
53
+ }),
54
+ /* @__PURE__ */ d(a, { errors: n ? [n] : [] })
55
+ ] }) })
56
+ }), /* @__PURE__ */ d(m, {
57
+ name: "account_number",
58
+ control: S,
59
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
60
+ /* @__PURE__ */ d(o, {
61
+ htmlFor: "account_number",
62
+ children: y._("Account number")
63
+ }),
64
+ /* @__PURE__ */ d(t, {
65
+ ...e,
66
+ id: "account_number",
67
+ placeholder: y._("e.g. 123456789"),
68
+ value: e.value ?? "",
69
+ disabled: x,
70
+ "aria-invalid": !!n
71
+ }),
72
+ /* @__PURE__ */ d(a, { errors: n ? [n] : [] })
73
+ ] }) })
55
74
  })]
56
- }), W ? /* @__PURE__ */ D(t, { className: "ttw:w-full ttw:h-9 ttw:rounded-md" }) : /* @__PURE__ */ D(A, {
57
- name: "bank_account_id",
58
- control: I,
59
- render: ({ field: e, fieldState: { error: t } }) => {
60
- let n = U.find((t) => t.id === e.value), f = n ? m(n.bank_account_type, N, P) : null;
61
- return /* @__PURE__ */ D(r, { children: /* @__PURE__ */ O(i, { children: [/* @__PURE__ */ D("div", {
62
- className: "ttw:relative",
63
- children: /* @__PURE__ */ O(o, {
75
+ }),
76
+ /* @__PURE__ */ f("div", {
77
+ className: "ttw:flex ttw:gap-4",
78
+ children: [/* @__PURE__ */ d(m, {
79
+ name: "account_holder_name",
80
+ control: S,
81
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
82
+ /* @__PURE__ */ d(o, {
83
+ htmlFor: "account_holder_name",
84
+ children: y._("Account holder name")
85
+ }),
86
+ /* @__PURE__ */ d(t, {
64
87
  ...e,
65
- disabled: M,
66
- value: e.value,
67
- onValueChange: (t) => {
68
- if (t === "add_new") V(!0);
69
- else {
70
- e.onChange(t);
71
- let n = U.find((e) => e.id === t);
72
- n && L("bank_account_type", n.bank_account_type), G?.invalid && z("bank_account_id");
73
- }
74
- },
75
- children: [/* @__PURE__ */ D(u, {
76
- id: "bank_account_id",
77
- className: "ttw:w-full",
78
- "aria-label": P._("Bank account selector"),
79
- "aria-invalid": !!t,
80
- children: /* @__PURE__ */ D(d, {
81
- placeholder: P._("Select bank account"),
82
- children: n && /* @__PURE__ */ O("span", {
83
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
84
- children: [/* @__PURE__ */ D("span", {
85
- className: "ttw:truncate",
86
- children: p(n, P)
87
- }), f && /* @__PURE__ */ D(g, {
88
- variant: "secondary",
89
- className: "ttw:shrink-0",
90
- children: f
91
- })]
92
- })
93
- })
94
- }), /* @__PURE__ */ O(s, { children: [U.map((e) => {
95
- let t = m(e.bank_account_type, N, P);
96
- return /* @__PURE__ */ D(c, {
97
- value: e.id,
98
- children: /* @__PURE__ */ O("span", {
99
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2",
100
- children: [/* @__PURE__ */ D("span", {
101
- className: "ttw:truncate",
102
- children: p(e, P)
103
- }), t && /* @__PURE__ */ D("span", {
104
- className: "ttw:shrink-0 ttw:text-muted-foreground",
105
- children: t
106
- })]
107
- })
108
- }, e.id);
109
- }), H && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(l, {}), /* @__PURE__ */ O(c, {
110
- value: "add_new",
111
- className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary",
112
- children: [/* @__PURE__ */ D(w, { className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary" }), P._("Add a new account")]
113
- })] })] })]
114
- })
115
- }), /* @__PURE__ */ D(a, { errors: t ? [t] : [] })] }) });
116
- }
117
- })]
118
- }) : /* @__PURE__ */ D(E, { children: H ? /* @__PURE__ */ D(b, {
119
- bankAccountsLength: U.length,
120
- onCreate: (e) => {
121
- V(!1), L("bank_account_id", e), L("bank_account_type", "BANK_DETAILS"), G?.invalid && z("bank_account_id");
122
- },
123
- onCancel: () => V(!1)
124
- }) : /* @__PURE__ */ O(_, {
125
- enableClose: !1,
126
- variant: "warning",
127
- icon: /* @__PURE__ */ D(T, {}),
128
- children: [/* @__PURE__ */ D(y, { children: P._("There are no bank accounts on file for this account") }), /* @__PURE__ */ D(v, { children: P._("A bank account is required in order to issue invoices. Contact your company admin to set one up.") })]
129
- }) })]
88
+ id: "account_holder_name",
89
+ placeholder: y._("e.g. James Smith"),
90
+ value: e.value ?? "",
91
+ disabled: x,
92
+ "aria-invalid": !!n
93
+ }),
94
+ /* @__PURE__ */ d(a, { errors: n ? [n] : [] })
95
+ ] }) })
96
+ }), /* @__PURE__ */ d(m, {
97
+ name: "display_name",
98
+ control: S,
99
+ render: ({ field: e, fieldState: { error: s } }) => /* @__PURE__ */ d(r, { children: /* @__PURE__ */ f(i, { children: [
100
+ /* @__PURE__ */ f(o, {
101
+ htmlFor: "display_name",
102
+ className: "ttw:gap-1",
103
+ children: [y._("Account nickname"), /* @__PURE__ */ d(n, {
104
+ variant: "body2",
105
+ color: "muted",
106
+ className: "ttw:leading-snug",
107
+ children: y._("(optional)")
108
+ })]
109
+ }),
110
+ /* @__PURE__ */ d(t, {
111
+ ...e,
112
+ id: "display_name",
113
+ placeholder: y._("e.g. Empire Bank Checking"),
114
+ value: e.value ?? "",
115
+ disabled: x,
116
+ "aria-invalid": !!s
117
+ }),
118
+ /* @__PURE__ */ d(a, { errors: s ? [s] : [] })
119
+ ] }) })
120
+ })]
121
+ }),
122
+ /* @__PURE__ */ f("div", {
123
+ className: "ttw:flex ttw:gap-4",
124
+ children: [g !== 0 && /* @__PURE__ */ d(e, {
125
+ type: "button",
126
+ variant: "outline",
127
+ className: "ttw:border-border",
128
+ disabled: x,
129
+ onClick: v,
130
+ children: y._("Cancel")
131
+ }), /* @__PURE__ */ d(e, {
132
+ type: "button",
133
+ disabled: x,
134
+ onClick: C((e) => {
135
+ b({ body: l(e) });
136
+ }),
137
+ children: y._("Save account")
138
+ })]
139
+ })
140
+ ]
130
141
  });
131
142
  };
132
143
  //#endregion
133
- export { M as BankAccountSection };
144
+ export { g as BankAccountSectionForm };