@tesouro/embedded-components-react 0.2.125 → 0.2.127

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 (418) hide show
  1. package/dist/lib/ReceivablesWidget.js +26 -26
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +26 -26
  3. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +23 -23
  4. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +22 -12
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +2 -24
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -23
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +24 -2
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +13 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +10 -35
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +9 -4
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +35 -2
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -25
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -1271
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +24 -9
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1270 -8
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +8 -60
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +25 -397
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +9 -69
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +46 -2
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +75 -406
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +57 -7
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +217 -25
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +12 -76
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +14 -6
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +39 -9
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +26 -33
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +80 -30
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +5 -8
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +80 -12
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +28 -25
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +62 -12
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +41 -11
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +7 -121
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +4 -217
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +116 -10
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +5 -5
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +69 -11
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +188 -47
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +30 -48
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +108 -11
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +130 -39
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +20 -15
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +21 -11
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +21 -150
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +25 -55
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +183 -71
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +12 -28
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +22 -3
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +47 -61
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +4 -39
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +5 -82
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +87 -4
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +32 -94
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +8 -57
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +45 -24
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +44 -90
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +198 -94
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +431 -14
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +22 -12
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +25 -12
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +10 -24
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +17 -10
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +19 -18
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +2 -21
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +12 -2
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +20 -10
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +76 -22
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +6 -22
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +22 -27
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +27 -117
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +109 -62
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +68 -12
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +33 -12
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +15 -9
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +12 -44
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +12 -76
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +29 -55
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +12 -14
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +12 -26
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +22 -76
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +13 -28
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +11 -41
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +121 -7
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +10 -116
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +47 -68
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +48 -189
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +21 -21
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +13 -30
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +40 -105
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -137
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +150 -18
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +55 -19
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +70 -22
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +26 -24
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +3 -183
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +97 -11
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +57 -22
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +59 -49
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +398 -4
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +69 -5
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +2 -88
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +406 -36
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +25 -7
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +89 -40
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +96 -45
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +14 -201
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +11 -424
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +12 -22
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +36 -491
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +48 -165
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +34 -42
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +66 -62
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +346 -31
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +2 -114
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +19 -21
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +11 -41
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +10 -53
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +12 -144
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +13 -85
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +17 -22
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +37 -73
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +37 -44
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +15 -20
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +28 -28
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +17 -42
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +244 -59
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +12 -96
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +18 -111
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +23 -85
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +40 -51
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +57 -62
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +52 -10
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +28 -45
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +95 -26
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +47 -5
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +139 -69
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +109 -32
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +144 -18
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +86 -36
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +26 -34
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +491 -66
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +162 -340
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +42 -2
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +59 -17
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +30 -13
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +113 -13
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +21 -13
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +41 -11
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +53 -17
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +22 -37
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +55 -35
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +29 -15
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +60 -17
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +15 -243
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +13 -11
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +80 -19
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +76 -25
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +42 -38
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +71 -56
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +62 -51
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +159 -29
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +28 -98
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +26 -44
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +78 -147
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +18 -106
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +43 -22
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +37 -53
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +344 -26
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +299 -56
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +100 -17
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +156 -35
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +248 -328
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +24 -302
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +18 -101
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +2 -162
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +92 -263
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +94 -22
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +213 -20
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +44 -2
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +22 -94
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +33 -96
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +64 -210
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +62 -18
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +42 -42
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +25 -14
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +132 -71
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +109 -74
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +80 -42
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +282 -25
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +48 -126
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +15 -67
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +86 -149
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +225 -19
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +37 -22
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +10 -159
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +10 -27
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +10 -28
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +12 -78
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +6 -21
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +2 -18
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +149 -19
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +90 -165
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +16 -133
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +78 -155
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +17 -12
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +49 -18
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +10 -61
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +46 -64
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +10 -60
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +19 -8
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +26 -9
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +126 -61
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +18 -22
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +28 -61
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +42 -14
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +60 -31
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +92 -61
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +110 -41
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +85 -22
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +43 -137
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +27 -110
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +4 -81
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +73 -281
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +32 -49
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +20 -15
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +20 -84
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +16 -223
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +17 -37
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +171 -11
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +132 -9
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +159 -8
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +11 -11
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +18 -6
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +63 -2
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +63 -91
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +59 -16
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +6 -83
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +11 -17
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +58 -46
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +22 -10
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +61 -48
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -123
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +31 -17
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +255 -16
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +46 -16
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +40 -16
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +34 -16
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +8 -255
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +33 -71
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +28 -16
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +43 -16
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +25 -16
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +74 -11
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +93 -30
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +36 -53
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +119 -32
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +18 -26
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +14 -30
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +16 -16
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +16 -24
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +16 -50
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +10 -11
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +10 -31
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +72 -4
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +16 -127
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -46
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +16 -40
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +11 -34
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +7 -8
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +49 -30
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +16 -26
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +5 -43
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +92 -21
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +36 -72
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +17 -17
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +32 -94
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +31 -36
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +4 -9
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +127 -11
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +66 -93
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +45 -36
  312. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +26 -33
  313. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +16 -16
  314. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +12 -67
  315. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +64 -16
  316. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
  317. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +66 -20
  318. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -15
  319. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +85 -21
  320. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +24 -14
  321. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +11 -67
  322. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +104 -20
  323. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +112 -2
  324. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +75 -7
  325. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +65 -51
  326. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +36 -15
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +2 -10
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +28 -21
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +23 -27
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +37 -36
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +8 -5
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +19 -66
  334. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +17 -45
  335. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +19 -26
  336. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -12
  337. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +19 -31
  338. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
  339. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +14 -85
  340. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +20 -23
  341. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +26 -103
  342. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +36 -110
  343. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +9 -28
  344. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +33 -23
  345. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +24 -37
  346. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +54 -8
  347. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +31 -70
  348. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +15 -67
  349. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
  350. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +22 -37
  351. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +46 -49
  352. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +29 -40
  353. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +68 -46
  354. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +52 -69
  355. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +37 -82
  356. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +48 -50
  357. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +36 -50
  358. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +44 -52
  359. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +73 -29
  360. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
  361. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +81 -52
  362. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +50 -52
  363. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +49 -67
  364. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +55 -21
  365. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +29 -82
  366. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -39
  367. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +70 -18
  368. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +21 -29
  369. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +81 -67
  370. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +39 -40
  371. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
  372. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +2 -2
  373. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +1 -1
  374. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +1 -1
  375. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +1 -1
  376. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +18 -42
  377. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +49 -35
  378. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +56 -13
  379. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +28 -49
  380. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
  381. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +53 -18
  382. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +40 -48
  383. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +35 -57
  384. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +12 -29
  385. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +19 -15
  386. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +14 -11
  387. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +9 -64
  388. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +66 -50
  389. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +18 -54
  390. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +50 -41
  391. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
  392. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +54 -18
  393. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +40 -37
  394. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +39 -47
  395. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +48 -8
  396. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +10 -0
  397. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
  398. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
  399. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
  400. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
  401. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
  402. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
  403. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
  404. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
  405. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
  406. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
  407. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
  408. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +1 -1
  409. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
  410. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
  411. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
  412. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
  413. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
  414. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
  415. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +25 -25
  416. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  417. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +26 -26
  418. package/package.json +1 -1
@@ -1,16 +1,113 @@
1
- import { useMoniteContext as n } from "./index57.js";
2
- const o = (t) => {
1
+ import { jsxs as a, jsx as t, Fragment as k } from "@emotion/react/jsx-runtime";
2
+ import { useRef as B, useState as T, useEffect as $ } from "react";
3
+ import { useFormContext as F, Controller as L } from "react-hook-form";
4
+ import { useUserPermissions as j } from "./index130.js";
5
+ import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
6
+ import "../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import "../../shared/data-access/dist/lib/rest/client.gen.js";
8
+ import "@tanstack/react-query";
9
+ import "../../shared/data-access/dist/lib/rest/zod.gen.js";
10
+ import { Scope as E } from "../../shared/data-access/dist/lib/scopes.js";
11
+ import { useLingui as D } from "@lingui/react";
12
+ import { Plus as P, TriangleAlert as V } from "lucide-react";
13
+ import "react-hot-toast";
14
+ import "./index57.js";
15
+ import { useSelectableBankAccounts as I } from "./index162.js";
16
+ import "date-fns";
17
+ import "clsx";
18
+ import "tailwind-merge";
19
+ import "@radix-ui/react-dropdown-menu";
20
+ import "./index84.js";
21
+ import "./index92.js";
22
+ import "react-dom";
23
+ import "@mui/x-data-grid";
24
+ import { Badge as W } from "./index235.js";
25
+ import { Field as q, FieldContent as z, FieldError as K } from "./index205.js";
26
+ import { Select as O, SelectTrigger as R, SelectValue as U, SelectContent as G, SelectItem as y, SelectSeparator as H } from "./index284.js";
27
+ import { Typography as d } from "./index85.js";
28
+ import { BankAccountSectionForm as J } from "./index327.js";
29
+ import { Alert as M, AlertTitle as Q, AlertDescription as X } from "./index204.js";
30
+ import { Skeleton as Y } from "./index142.js";
31
+ import { getSourceLabel as g, getLineLabel as x } from "./index328.js";
32
+ const $t = ({
33
+ disabled: v,
34
+ embeddedBankName: p
35
+ }) => {
3
36
  const {
4
- api: e
5
- } = n();
6
- return e.finops.getCounterpartsIdBankAccounts.useQuery({
7
- path: {
8
- counterpart_id: t ?? ""
37
+ i18n: e
38
+ } = D(), w = B(!1), {
39
+ control: N,
40
+ setValue: i,
41
+ getFieldState: S,
42
+ clearErrors: f
43
+ } = F(), [A, m] = T(!1), h = j().has(E.BankAccountWriteOrg), {
44
+ bankAccounts: o,
45
+ isLoading: l
46
+ } = I(), b = S("bank_account_id");
47
+ return $(() => {
48
+ if (o.length === 1 && !l && !w.current) {
49
+ const r = o[0];
50
+ i("bank_account_id", r.id), i("bank_account_type", r.bank_account_type), w.current = !0;
9
51
  }
10
- }, {
11
- enabled: !!t
12
- });
52
+ }, [i, o, l]), /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
53
+ /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
54
+ /* @__PURE__ */ t(d, { variant: "h4", children: e._("Payment instructions") }),
55
+ /* @__PURE__ */ t(d, { variant: "body2", color: "muted", className: "ttw:font-medium", children: e._("Tells the customer how they can pay you. We'll include the selected info on the invoice") })
56
+ ] }),
57
+ l || o.length > 0 && !A ? /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:p-3 ttw:gap-4 ttw:border ttw:border-border ttw:rounded-xl", children: [
58
+ /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
59
+ /* @__PURE__ */ t(d, { variant: "body2", children: e._("Bank account") }),
60
+ /* @__PURE__ */ t(d, { variant: "caption", color: "muted", children: e._("Display your bank account number and routing number") })
61
+ ] }),
62
+ l ? /* @__PURE__ */ t(Y, { className: "ttw:w-full ttw:h-9 ttw:rounded-md" }) : /* @__PURE__ */ t(L, { name: "bank_account_id", control: N, render: ({
63
+ field: r,
64
+ fieldState: {
65
+ error: u
66
+ }
67
+ }) => {
68
+ const s = o.find((n) => n.id === r.value), _ = s ? g(s.bank_account_type, p, e) : null;
69
+ return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ a(z, { children: [
70
+ /* @__PURE__ */ t("div", { className: "ttw:relative", children: /* @__PURE__ */ a(O, { ...r, disabled: v, value: r.value, onValueChange: (n) => {
71
+ if (n === "add_new")
72
+ m(!0);
73
+ else {
74
+ r.onChange(n);
75
+ const c = o.find((C) => C.id === n);
76
+ c && i("bank_account_type", c.bank_account_type), b?.invalid && f("bank_account_id");
77
+ }
78
+ }, children: [
79
+ /* @__PURE__ */ t(R, { id: "bank_account_id", className: "ttw:w-full", "aria-label": e._("Bank account selector"), "aria-invalid": !!u, children: /* @__PURE__ */ t(U, { placeholder: e._("Select bank account"), children: s && /* @__PURE__ */ a("span", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2", children: [
80
+ /* @__PURE__ */ t("span", { className: "ttw:truncate", children: x(s, e) }),
81
+ _ && /* @__PURE__ */ t(W, { variant: "secondary", className: "ttw:shrink-0", children: _ })
82
+ ] }) }) }),
83
+ /* @__PURE__ */ a(G, { children: [
84
+ o.map((n) => {
85
+ const c = g(n.bank_account_type, p, e);
86
+ return /* @__PURE__ */ t(y, { value: n.id, children: /* @__PURE__ */ a("span", { className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:justify-between ttw:gap-2", children: [
87
+ /* @__PURE__ */ t("span", { className: "ttw:truncate", children: x(n, e) }),
88
+ c && /* @__PURE__ */ t("span", { className: "ttw:shrink-0 ttw:text-muted-foreground", children: c })
89
+ ] }) }, n.id);
90
+ }),
91
+ h && /* @__PURE__ */ a(k, { children: [
92
+ /* @__PURE__ */ t(H, {}),
93
+ /* @__PURE__ */ a(y, { value: "add_new", className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary", children: [
94
+ /* @__PURE__ */ t(P, { className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary" }),
95
+ e._("Add a new account")
96
+ ] })
97
+ ] })
98
+ ] })
99
+ ] }) }),
100
+ /* @__PURE__ */ t(K, { errors: u ? [u] : [] })
101
+ ] }) });
102
+ } })
103
+ ] }) : /* @__PURE__ */ t(k, { children: h ? /* @__PURE__ */ t(J, { bankAccountsLength: o.length, onCreate: (r) => {
104
+ m(!1), i("bank_account_id", r), i("bank_account_type", "BANK_DETAILS"), b?.invalid && f("bank_account_id");
105
+ }, onCancel: () => m(!1) }) : /* @__PURE__ */ a(M, { enableClose: !1, variant: "warning", icon: /* @__PURE__ */ t(V, {}), children: [
106
+ /* @__PURE__ */ t(Q, { children: e._("There are no bank accounts on file for this account") }),
107
+ /* @__PURE__ */ t(X, { children: e._("A bank account is required in order to issue invoices. Contact your company admin to set one up.") })
108
+ ] }) })
109
+ ] });
13
110
  };
14
111
  export {
15
- o as useCounterpartsBankAccountsList
112
+ $t as BankAccountSection
16
113
  };
@@ -1,48 +1,139 @@
1
- import { jsx as t, Fragment as f, jsxs as r } from "@emotion/react/jsx-runtime";
2
- import { Button as h } from "./index84.js";
3
- import { Typography as a } from "./index85.js";
4
- import { useLingui as g } from "@lingui/react";
5
- import { Plus as b } from "lucide-react";
6
- import { useState as N } from "react";
7
- import { CounterpartAddressFormContent as C } from "./index253.js";
8
- import { CounterpartAddressForm as y } from "./index254.js";
9
- import { twMerge as A } from "tailwind-merge";
10
- const k = ({
11
- isStandalone: p,
12
- counterpartId: n,
13
- counterpartAddress: e,
14
- isUpdateAllowed: v,
15
- isLoading: u,
16
- customerType: d
1
+ import { jsxs as i, jsx as t, Fragment as z } from "@emotion/react/jsx-runtime";
2
+ import { CreateCounterpartDialog as B } from "./index203.js";
3
+ import { CounterpartSelector as U } from "./index329.js";
4
+ import { getCounterpartName as P, getCounterpartEmail as R } from "./index7.js";
5
+ import "./index57.js";
6
+ import "@tanstack/react-query";
7
+ import { useCounterpartAddresses as W } from "./index72.js";
8
+ import { useRef as q, useState as F, useCallback as G, useEffect as H } from "react";
9
+ import "react-hot-toast";
10
+ import { useLingui as J } from "@lingui/react";
11
+ import { useFormContext as K, Controller as Q } from "react-hook-form";
12
+ import { CounterpartDetails as X } from "./index2.js";
13
+ import { Typography as f } from "./index85.js";
14
+ import { Avatar as Y, AvatarFallback as Z } from "./index330.js";
15
+ import { Field as $, FieldContent as tt, FieldLabel as et, FieldError as rt } from "./index205.js";
16
+ import { Input as at } from "./index122.js";
17
+ import { Button as x } from "./index84.js";
18
+ import { Separator as it } from "./index191.js";
19
+ import { Plus as ot } from "lucide-react";
20
+ const Et = ({
21
+ disabled: l,
22
+ canCreateCounterpart: _,
23
+ isEditCustomerOpen: c,
24
+ handleOpenEditCustomer: k,
25
+ counterpart: r
17
26
  }) => {
18
27
  const {
19
28
  i18n: o
20
- } = g(), [x, i] = N(!p), l = !!e, m = e?.city || "", c = e?.state || "", w = e?.postal_code || "", s = () => {
21
- i(!1);
22
- };
23
- return x ? /* @__PURE__ */ t(f, { children: p && n ? /* @__PURE__ */ t(f, { children: e ? /* @__PURE__ */ t(y, { address: e, handleClose: s, counterpartId: n, onUpdate: s, isStandalone: !0, customerType: d }) : /* @__PURE__ */ t(y, { handleClose: s, counterpartId: n, onCreate: s, isStandalone: !0, customerType: d }) }) : /* @__PURE__ */ t(C, { hasExistingAddress: !1, isLoading: u, isStandalone: !1, customerType: d }) }) : /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
24
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7", children: [
25
- /* @__PURE__ */ r(a, { variant: "body1", className: "ttw:font-medium", children: [
26
- o._("Address"),
27
- " ",
28
- /* @__PURE__ */ t("span", { className: "ttw:text-muted-foreground", children: o._("(optional)") })
29
- ] }),
30
- l && v && /* @__PURE__ */ t(h, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:p-0 ttw:hover:text-primary ttw:hover:underline ttw:w-fit ttw:hover:bg-transparent", onClick: () => i(!0), children: o._("Edit") })
29
+ } = J(), {
30
+ watch: n,
31
+ setValue: a,
32
+ control: S,
33
+ clearErrors: A
34
+ } = K(), m = q(""), V = n("counterpart_id"), w = n("default_billing_address_id"), h = n("default_shipping_address_id"), {
35
+ data: s
36
+ } = W(r?.id), [y, v] = F(!1), [N, g] = F(!1), j = !!V, C = P(r), D = R(r), I = C ? Array.from(C)[0]?.toUpperCase() ?? "?" : "?", b = n("counterpart_name") ?? "", E = n("counterpart_email") ?? "", T = () => {
37
+ a("counterpart_id", ""), a("counterpart_name", ""), a("counterpart_email", "");
38
+ }, L = G((e) => {
39
+ const d = {
40
+ email: E,
41
+ phone: "",
42
+ isCustomer: !0,
43
+ isVendor: !1,
44
+ line1: "",
45
+ line2: "",
46
+ city: "",
47
+ state: "",
48
+ postalCode: "",
49
+ country: "US"
50
+ };
51
+ if (e === "individual") {
52
+ const p = b.trim(), u = p.indexOf(" "), M = u === -1 ? p : p.slice(0, u), O = u === -1 ? "" : p.slice(u + 1);
53
+ return {
54
+ tax_id: "",
55
+ counterpart: {
56
+ ...d,
57
+ firstName: M,
58
+ lastName: O
59
+ }
60
+ };
61
+ }
62
+ return {
63
+ tax_id: "",
64
+ counterpart: {
65
+ ...d,
66
+ companyName: b
67
+ }
68
+ };
69
+ }, [b, E]);
70
+ return H(() => {
71
+ if (s?.data?.length) {
72
+ if (!w) {
73
+ m.current = r?.id;
74
+ const e = r?.default_billing_address_id || (s.data.length === 1 ? s.data[0].id : "");
75
+ a("default_billing_address_id", e);
76
+ }
77
+ if (!h) {
78
+ const e = r?.default_shipping_address_id || "";
79
+ a("default_shipping_address_id", e);
80
+ }
81
+ if (w && m.current !== r?.id) {
82
+ m.current = r?.id;
83
+ const e = r?.default_billing_address_id || (s.data.length === 1 ? s.data[0].id : "");
84
+ a("default_billing_address_id", e);
85
+ }
86
+ if (h && m.current !== r?.id) {
87
+ m.current = r?.id;
88
+ const e = r?.default_shipping_address_id || "";
89
+ a("default_shipping_address_id", e);
90
+ }
91
+ }
92
+ }, [s, a, r, w, h]), /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl", children: [
93
+ /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4", children: [
94
+ /* @__PURE__ */ t(f, { variant: "h4", children: o._("Customer details") }),
95
+ /* @__PURE__ */ t(f, { variant: "body2", color: "muted", className: "ttw:font-medium", children: o._("Who are you billing?") })
31
96
  ] }),
32
- /* @__PURE__ */ t("div", { className: A("ttw:flex ttw:items-start ttw:rounded-lg", l ? "ttw:border-none" : "ttw:border ttw:border-border ttw:p-3"), children: l ? /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-1.5", children: [
33
- /* @__PURE__ */ t(a, { variant: "body2", className: "ttw:font-medium", children: e?.line1 }),
34
- e?.line2 && /* @__PURE__ */ t(a, { variant: "body2", className: "ttw:font-medium", children: e.line2 }),
35
- /* @__PURE__ */ t(a, { variant: "body2", className: "ttw:font-medium", children: `${m && m}${m && (c || w) && ","} ${c && c} ${w && w}` }),
36
- /* @__PURE__ */ t(a, { variant: "body2", className: "ttw:font-medium", children: e?.country })
37
- ] }) : /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
38
- /* @__PURE__ */ t(a, { variant: "body2", className: "ttw:leading-5", children: o._("No address on file") }),
39
- /* @__PURE__ */ r(h, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary/70 ttw:w-fit ttw:px-0 ttw:has-[>svg]:px-0 ttw:py-2 ttw:hover:bg-transparent", onClick: () => i(!0), disabled: u, children: [
40
- /* @__PURE__ */ t(b, {}),
41
- o._("Add address")
97
+ j ? /* @__PURE__ */ i("div", { className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-center ttw:border ttw:border-border ttw:p-3 ttw:rounded-xl", children: [
98
+ /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-5", children: [
99
+ /* @__PURE__ */ t(Y, { className: "ttw:size-16", children: /* @__PURE__ */ t(Z, { className: "ttw:text-sm ttw:font-normal", children: I }) }),
100
+ /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-1", children: [
101
+ /* @__PURE__ */ t(f, { variant: "body1", className: "ttw:font-medium", children: C }),
102
+ /* @__PURE__ */ t(f, { variant: "body2", color: "muted", children: D })
103
+ ] })
104
+ ] }),
105
+ /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center", children: [
106
+ /* @__PURE__ */ t(x, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", disabled: l, onClick: () => v(!0), children: o._("View details") }),
107
+ /* @__PURE__ */ t(it, { orientation: "vertical", className: "ttw:h-6!" }),
108
+ /* @__PURE__ */ t(x, { type: "button", variant: "ghost", className: "ttw:text-primary ttw:hover:text-primary", disabled: l, onClick: T, children: o._("Clear") })
42
109
  ] })
43
- ] }) })
110
+ ] }) : /* @__PURE__ */ i(z, { children: [
111
+ /* @__PURE__ */ t(U, { disabled: l, canCreateCounterpart: _ }),
112
+ _ && /* @__PURE__ */ t(Q, { name: "counterpart_email", control: S, render: ({
113
+ field: e,
114
+ fieldState: {
115
+ error: d
116
+ }
117
+ }) => /* @__PURE__ */ t($, { children: /* @__PURE__ */ i(tt, { children: [
118
+ /* @__PURE__ */ t(et, { htmlFor: e.name, children: o._("Email") }),
119
+ /* @__PURE__ */ t(at, { ...e, id: e.name, type: "email", disabled: l, "aria-invalid": !!d }),
120
+ /* @__PURE__ */ t(rt, { errors: d ? [d] : [] })
121
+ ] }) }) }),
122
+ _ && /* @__PURE__ */ i(x, { onClick: () => g(!0), type: "button", variant: "ghost", disabled: l, className: "ttw:text-primary ttw:hover:text-primary ttw:w-fit", children: [
123
+ /* @__PURE__ */ t(ot, {}),
124
+ o._("Add more details including address, phone, etc.")
125
+ ] })
126
+ ] }),
127
+ N && /* @__PURE__ */ t(B, { open: N, onClose: () => {
128
+ g(!1);
129
+ }, onCreate: (e) => {
130
+ g(!1), a("counterpart_id", e), a("counterpart_name", ""), a("counterpart_email", ""), A(["counterpart_id", "counterpart_email"]);
131
+ }, getCounterpartDefaultValues: L, customerType: "customer" }),
132
+ (c || y) && /* @__PURE__ */ t(X, { counterpartId: r?.id || "", open: c || y, onClose: () => {
133
+ c && k(!1), v(!1);
134
+ }, isEditMode: c, showActionsMenu: !1, customerType: "customer" })
44
135
  ] });
45
136
  };
46
137
  export {
47
- k as CounterpartAddressSection
138
+ Et as CustomerSection
48
139
  };
@@ -1,17 +1,22 @@
1
- import { jsx as t, jsxs as e } from "@emotion/react/jsx-runtime";
2
- import { CenteredContentBox as a } from "./index231.js";
3
- import { SearchX as o } from "lucide-react";
4
- import { Typography as r } from "./index85.js";
5
- const d = ({
6
- title: i,
7
- description: s
8
- }) => /* @__PURE__ */ t(a, { children: /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4", children: [
9
- /* @__PURE__ */ t(o, { className: "ttw:text-destructive ttw:size-8" }),
10
- /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2", children: [
11
- /* @__PURE__ */ t(r, { variant: "h4", children: i }),
12
- /* @__PURE__ */ t(r, { variant: "body1", className: "ttw:text-center", children: s })
13
- ] })
14
- ] }) });
1
+ import { useMoniteContext as s } from "./index57.js";
2
+ import { getAPIErrorMessage as i } from "./index118.js";
3
+ import { useLingui as a } from "@lingui/react";
4
+ import { toast as n } from "react-hot-toast";
5
+ const f = () => {
6
+ const {
7
+ i18n: e
8
+ } = a(), {
9
+ api: r
10
+ } = s();
11
+ return r.finops.postReceivables.useMutation({}, {
12
+ onError: (o) => {
13
+ const t = i(e, o);
14
+ n.error(e._("Failed to create invoice: {errorMessage}", {
15
+ errorMessage: t
16
+ }));
17
+ }
18
+ });
19
+ };
15
20
  export {
16
- d as NotFound
21
+ f as useCreateReceivable
17
22
  };
@@ -1,13 +1,23 @@
1
- const r = /* @__PURE__ */ new Set(["new", "approve_in_progress", "waiting_to_be_paid", "partially_paid"]);
2
- function i(s, e) {
3
- if (e && r.has(s)) {
4
- const t = /* @__PURE__ */ new Date();
5
- t.setUTCHours(0, 0, 0, 0);
6
- const n = new Date(e);
7
- return n.setUTCHours(0, 0, 0, 0), n.getTime() < t.getTime();
8
- }
9
- return !1;
10
- }
1
+ import { useMoniteContext as i } from "./index57.js";
2
+ import { getAPIErrorMessage as n } from "./index118.js";
3
+ import { useLingui as a } from "@lingui/react";
4
+ import { toast as t } from "react-hot-toast";
5
+ const f = () => {
6
+ const {
7
+ api: e,
8
+ queryClient: o
9
+ } = i(), {
10
+ i18n: r
11
+ } = a();
12
+ return e.finops.postRecurrences.useMutation(void 0, {
13
+ onError(s) {
14
+ t.error(n(r, s));
15
+ },
16
+ async onSuccess() {
17
+ await e.finops.getReceivables.invalidateQueries(o), t.success(r._("Recurring billing activated"));
18
+ }
19
+ });
20
+ };
11
21
  export {
12
- i as isBillOverdue
22
+ f as useCreateRecurrence
13
23
  };
@@ -1,154 +1,25 @@
1
- import { jsx as a, jsxs as p } from "@emotion/react/jsx-runtime";
2
- import { Button as g } from "./index84.js";
3
- import { useLingui as U } from "@lingui/react";
4
- import { Sheet as V, SheetContent as A, SheetHeader as H, SheetTitle as L, SheetDescription as j, SheetFooter as k, SheetClose as B } from "./index137.js";
5
- import { useState as E, useId as O, useMemo as R, useCallback as I } from "react";
6
- import { CounterpartFormContent as M } from "./index243.js";
7
- import { useForm as W, FormProvider as q } from "react-hook-form";
8
- import { zodResolver as G } from "@hookform/resolvers/zod";
9
- import { getCreateCounterpartValidationSchema as J } from "./index244.js";
10
- import { useUserPermissions as K } from "./index135.js";
11
- import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
12
- import "../../shared/data-access/dist/lib/EmbedApiContext.js";
13
- import "../../shared/data-access/dist/lib/rest/client.gen.js";
14
- import "@tanstack/react-query";
15
- import "../../shared/data-access/dist/lib/rest/zod.gen.js";
16
- import { Scope as Q } from "../../shared/data-access/dist/lib/scopes.js";
17
- import { AccessRestriction as X } from "./index136.js";
18
- import { useCreateCounterpart as Y } from "./index205.js";
19
- import { LanguageCodeEnum as Z } from "./index207.js";
20
- import "./index57.js";
21
- import "react-hot-toast";
22
- import { useCreateCounterpartBank as ee } from "./index245.js";
23
- import "date-fns";
24
- import { LoadingSpinner as te } from "./index138.js";
25
- const Te = ({
26
- open: w,
27
- onClose: _,
28
- onCreate: u,
29
- getCounterpartDefaultValues: S,
30
- customerType: r
31
- }) => {
1
+ import { useMoniteContext as s } from "./index57.js";
2
+ import { useLingui as n } from "@lingui/react";
3
+ import { toast as r } from "react-hot-toast";
4
+ import { getCounterpartName as i } from "./index7.js";
5
+ const c = () => {
32
6
  const {
33
- i18n: n
34
- } = U(), [s, v] = E(() => "organization"), f = `counterpart-form-${O()}`, {
35
- mutateAsync: d,
36
- isPending: x
37
- } = Y(), {
38
- mutate: y,
39
- isPending: T
40
- } = ee(), c = x || T, b = K().has(Q.CounterpartWriteOrg), t = S?.(s), $ = R(() => ({
41
- remindersEnabled: r === "customer",
42
- isCustomer: r === "customer",
43
- isVendor: r === "vendor",
44
- accountHolderName: "",
45
- routingNumber: "",
46
- accountNumber: "",
47
- tax_id: t?.tax_id ?? "",
48
- email: t?.counterpart?.email ?? "",
49
- phone: t?.counterpart?.phone ?? "",
50
- line1: t?.counterpart?.line1 ?? "",
51
- line2: t?.counterpart?.line2 ?? "",
52
- city: t?.counterpart?.city ?? "",
53
- state: t?.counterpart.state ?? "",
54
- country: t?.counterpart?.country ?? "US",
55
- postalCode: t?.counterpart?.postalCode ?? "",
56
- firstName: t && "firstName" in t.counterpart ? t.counterpart.firstName : "",
57
- lastName: t && "lastName" in t.counterpart ? t.counterpart.lastName : "",
58
- companyName: t && "companyName" in t.counterpart ? t.counterpart.companyName : ""
59
- }), [r, t]), {
60
- watch: o,
61
- ...h
62
- } = W({
63
- resolver: G(J(n, s ?? "organization", r)),
64
- defaultValues: $
65
- }), z = !!(o("companyName") || o("firstName") && o("lastName")) && !!o("email") && (r === "vendor" && !!o("line1") && !!o("city") && !!o("state") && !!o("postalCode") && !!o("country") || r === "customer"), D = I((m) => {
66
- m.preventDefault(), m.stopPropagation(), h.handleSubmit(async (e) => {
67
- const l = e.line1?.trim() && e.city?.trim() ? {
68
- city: e.city ?? "",
69
- country: e.country ?? "US",
70
- line1: e.line1 ?? "",
71
- line2: e.line2,
72
- postal_code: e.postalCode ?? "",
73
- state: e.state ?? ""
74
- } : void 0, P = {
75
- account_holder_name: e.accountHolderName,
76
- routing_number: e.routingNumber,
77
- account_number: e.accountNumber,
78
- is_default_for_currency: !0,
79
- country: "US",
80
- currency: "USD"
81
- }, F = !!e.accountHolderName || !!e.accountNumber || !!e.routingNumber, N = {
82
- tax_id: e.tax_id,
83
- is_customer: e.isCustomer,
84
- is_vendor: e.isVendor,
85
- language: Z.find((i) => i === n.locale.split("-")[0]) ?? "en",
86
- reminders_enabled: e.remindersEnabled
87
- }, C = s === "individual" ? {
88
- ...N,
89
- type: "individual",
90
- individual: {
91
- first_name: e.firstName ?? "",
92
- last_name: e.lastName ?? "",
93
- phone: e.phone ?? "",
94
- email: e.email ?? "",
95
- ...l ? {
96
- address: l
97
- } : {}
98
- }
99
- } : {
100
- ...N,
101
- type: "organization",
102
- organization: {
103
- legal_name: e.companyName ?? "",
104
- phone: e.phone ?? "",
105
- email: e.email ?? "",
106
- ...l ? {
107
- address: l
108
- } : {}
109
- }
110
- };
111
- if (F) {
112
- const i = await d(C);
113
- return y({
114
- path: {
115
- counterpart_id: i.id
116
- },
117
- body: P
118
- }, {
119
- onSuccess: () => {
120
- u && u(i.id);
121
- }
122
- });
123
- } else
124
- return d(C, {
125
- onSuccess: ({
126
- id: i
127
- }) => {
128
- u && u(i);
129
- }
130
- });
131
- })(m);
132
- }, [d, s, y, h.handleSubmit, n]);
133
- return /* @__PURE__ */ a(V, { open: w, onOpenChange: _, children: /* @__PURE__ */ p(A, { className: "ttw:gap-0", children: [
134
- /* @__PURE__ */ p(H, { className: "ttw:border-b ttw:border-border", children: [
135
- /* @__PURE__ */ a(L, { className: "ttw:text-2xl", children: n._("Add {customerType}", {
136
- customerType: r
137
- }) }),
138
- /* @__PURE__ */ a(j, { className: "ttw:max-w-130", children: r === "vendor" ? n._("Save the people and businesses you pay so you can send payments when bills come in.") : n._("Save the people and businesses you sell to.") })
139
- ] }),
140
- /* @__PURE__ */ a("div", { className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto", children: b ? /* @__PURE__ */ a(q, { ...h, watch: o, children: /* @__PURE__ */ a("form", { id: f, onSubmit: D, children: /* @__PURE__ */ a(M, { counterpartType: s ?? "organization", handleChangeCounterpartType: (m) => v(m), isLoading: c, customerType: r }) }) }) : /* @__PURE__ */ a(X, {}) }),
141
- /* @__PURE__ */ p(k, { className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end", children: [
142
- /* @__PURE__ */ a(B, { asChild: !0, children: /* @__PURE__ */ a(g, { variant: "outline", disabled: c, className: "ttw:flex-1 ttw:border-border", children: n._("Cancel") }) }),
143
- /* @__PURE__ */ p(g, { type: "submit", form: f, className: "ttw:flex-1", title: n._("Complete the form to continue"), disabled: !b || c || !z, children: [
144
- c && /* @__PURE__ */ a(te, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
145
- n._("Save {customerType}", {
146
- customerType: r
147
- })
148
- ] })
149
- ] })
150
- ] }) });
7
+ i18n: t
8
+ } = n(), {
9
+ api: e,
10
+ queryClient: o
11
+ } = s();
12
+ return e.finops.postCounterparts.useMutation({}, {
13
+ onSuccess: async (a) => {
14
+ await e.finops.getCounterparts.invalidateQueries(o), r.success(t._("{name} has been added to the list.", {
15
+ name: i(a)
16
+ }));
17
+ },
18
+ onError: () => {
19
+ r.error(t._("Failed to create Counterpart."));
20
+ }
21
+ });
151
22
  };
152
23
  export {
153
- Te as CreateCounterpartDialog
24
+ c as useCreateCounterpart
154
25
  };
@@ -1,59 +1,29 @@
1
- import { jsxs as c, jsx as e } from "@emotion/react/jsx-runtime";
2
- import { useState as g } from "react";
3
- import { Button as f } from "./index84.js";
4
- import { cn as l } from "./index100.js";
5
- import { cva as p } from "class-variance-authority";
6
- import { X as u } from "lucide-react";
7
- const b = p("ttw:relative ttw:w-full ttw:rounded-lg ttw:pl-4 ttw:pt-3 ttw:pr-3 ttw:pb-4 ttw:flex ttw:items-start ttw:gap-4", {
8
- variants: {
9
- variant: {
10
- default: "ttw:bg-background ttw:text-foreground",
11
- info: "ttw:bg-blue-50 ttw:text-blue-900 ttw:dark:bg-blue-950 ttw:dark:text-blue-100",
12
- warning: "ttw:bg-yellow-50 ttw:text-yellow-900 ttw:dark:bg-yellow-950 ttw:dark:text-yellow-100",
13
- error: "ttw:bg-red-50 ttw:text-red-900 ttw:dark:bg-red-950 ttw:dark:text-red-100",
14
- success: "ttw:bg-green-50 ttw:text-green-900 ttw:dark:bg-green-950 ttw:dark:text-green-100"
1
+ import { toast as a } from "react-hot-toast";
2
+ import { useMoniteContext as o } from "./index57.js";
3
+ import { useLingui as n } from "@lingui/react";
4
+ const p = () => {
5
+ const {
6
+ i18n: t
7
+ } = n(), {
8
+ api: e,
9
+ queryClient: s
10
+ } = o();
11
+ return e.finops.postReceivablesIdIssue.useMutation(void 0, {
12
+ onSuccess: async (i) => {
13
+ e.finops.getReceivablesId.setQueryData({
14
+ path: {
15
+ receivable_id: i.id
16
+ }
17
+ }, i, s), await Promise.all([e.finops.getReceivables.invalidateQueries(s), e.finops.getReceivablesIdPdfLink.resetQueries({
18
+ parameters: {
19
+ path: {
20
+ receivable_id: i.id
21
+ }
22
+ }
23
+ }, s)]), a.success(t._("Invoice has been issued"));
15
24
  }
16
- },
17
- defaultVariants: {
18
- variant: "default"
19
- }
20
- }), x = ({
21
- className: r,
22
- variant: a,
23
- icon: t,
24
- children: w,
25
- ref: n,
26
- onClose: s,
27
- enableClose: i = !0,
28
- ...o
29
- }) => {
30
- const [d, m] = g(!1);
31
- return d ? null : /* @__PURE__ */ c("div", { ref: n, role: "alert", className: l(b({
32
- variant: a
33
- }), r), ...o, children: [
34
- t && /* @__PURE__ */ e("div", { className: "ttw:shrink-0 ttw:h-8 ttw:w-8 ttw:mt-1", children: t }),
35
- /* @__PURE__ */ e("div", { className: "ttw:flex-1", children: w }),
36
- i && /* @__PURE__ */ e(f, { variant: "ghost", size: "icon", className: "ttw:h-8 ttw:w-8 ttw:rounded-md ttw:bg-transparent ttw:opacity-70 ttw:hover:opacity-100", onClick: () => {
37
- s && s(), m(!0);
38
- }, "aria-label": "Close alert", children: /* @__PURE__ */ e(u, {}) })
39
- ] });
25
+ });
40
26
  };
41
- x.displayName = "Alert";
42
- const h = ({
43
- className: r,
44
- ref: a,
45
- ...t
46
- }) => /* @__PURE__ */ e("h3", { ref: a, className: l("ttw:mb-1 ttw:font-medium ttw:leading-none ttw:tracking-tight", r), ...t });
47
- h.displayName = "AlertTitle";
48
- const k = ({
49
- className: r,
50
- ref: a,
51
- ...t
52
- }) => /* @__PURE__ */ e("p", { ref: a, className: l("ttw:text-sm ttw:[&_p]:leading-relaxed ttw:font-normal", r), ...t });
53
- k.displayName = "AlertDescription";
54
27
  export {
55
- x as Alert,
56
- k as AlertDescription,
57
- h as AlertTitle,
58
- b as alertVariants
28
+ p as useIssueReceivableById
59
29
  };