@tesouro/embedded-components-react 0.2.30 → 0.2.32

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 (355) hide show
  1. package/dist/lib/ReceivablesWidget.js +18 -18
  2. package/dist/libs/shared/util-validation/dist/index22.js +12 -0
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +18 -18
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +17 -17
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +2 -10
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +5 -5
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -9
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +23 -22
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +23 -2
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +33 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +10 -24
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +9 -33
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +12 -34
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +35 -4
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +4 -2
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +2 -25
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +8 -8
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +23 -1269
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +1270 -12
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +4 -4
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +5 -5
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +2 -2
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +5 -5
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +3 -3
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +3 -3
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +7 -7
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -7
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +9 -9
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -2
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +4 -4
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +3 -3
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +6 -6
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +3 -3
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +2 -2
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +3 -3
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +1 -1
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +1 -1
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +4 -4
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +21 -21
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +3 -3
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +1 -1
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +1 -1
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +3 -3
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +7 -26
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +33 -94
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +58 -99
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +397 -17
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +68 -13
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -14
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +407 -7
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +24 -33
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +93 -57
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +100 -397
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +17 -68
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +14 -2
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +13 -406
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +22 -42
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +54 -59
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -23
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +59 -113
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +19 -21
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +143 -41
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +86 -57
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +19 -487
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +183 -168
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +22 -142
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +36 -86
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +50 -22
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +34 -183
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +54 -26
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +344 -35
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +2 -51
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +20 -34
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +14 -54
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +20 -344
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +33 -2
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +32 -15
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +30 -7
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +15 -21
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +17 -33
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +12 -37
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +24 -35
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +40 -15
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +52 -17
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +27 -9
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +95 -23
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +41 -34
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +2 -52
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +96 -30
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +97 -98
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +192 -47
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +36 -34
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +343 -44
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +294 -31
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +96 -27
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +159 -34
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +265 -6
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +22 -101
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +20 -21
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +480 -24
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +165 -54
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +37 -40
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +46 -17
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +38 -59
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +33 -12
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +32 -89
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +6 -126
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +104 -16
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -39
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +33 -41
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +55 -18
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +40 -61
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +17 -159
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +61 -28
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -28
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +94 -78
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +128 -2
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +16 -96
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +39 -97
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +42 -191
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +63 -22
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +72 -56
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +44 -29
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +153 -54
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +28 -20
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +26 -38
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +78 -345
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +39 -300
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +58 -99
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +29 -160
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +113 -266
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +21 -24
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +44 -73
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +57 -44
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +10 -20
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +12 -22
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +20 -32
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +37 -58
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +59 -92
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +92 -108
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +106 -82
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +88 -12
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +12 -5
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +5 -28
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -124
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +43 -64
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +23 -42
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +185 -21
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +98 -179
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +81 -107
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +289 -81
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +43 -284
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +15 -49
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +86 -15
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +218 -79
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +149 -225
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +50 -10
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +50 -149
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +106 -45
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +26 -48
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +123 -107
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -47
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +72 -21
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +76 -76
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +44 -32
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +20 -19
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +40 -18
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +62 -38
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +18 -13
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +18 -74
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +46 -76
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +27 -42
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +75 -20
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +32 -18
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +19 -18
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +30 -167
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +20 -132
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +15 -159
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +18 -11
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +170 -18
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +129 -58
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +156 -62
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +10 -58
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +18 -7
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +61 -9
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +60 -54
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +57 -21
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +6 -61
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +11 -14
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +57 -62
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +24 -19
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +61 -22
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +14 -34
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -123
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +54 -18
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +18 -16
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +11 -16
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +255 -16
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +35 -16
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +28 -11
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +25 -255
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +71 -70
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +97 -16
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +37 -16
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +10 -16
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +32 -11
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +4 -34
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +125 -26
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +92 -21
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +36 -72
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +1 -1
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +32 -94
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +15 -35
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +11 -9
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +5 -5
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +5 -5
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +1 -1
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +3 -3
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +5 -17
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +63 -8
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +19 -5
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +18 -93
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +12 -34
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +14 -28
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +13 -53
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +65 -34
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +21 -26
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +2 -32
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +32 -10
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +117 -61
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +18 -19
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +16 -21
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +16 -16
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +16 -21
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +16 -14
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +69 -63
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +16 -21
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +16 -2
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +16 -32
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +11 -5
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +33 -126
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +54 -7
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +33 -51
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +24 -16
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +31 -32
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +83 -31
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +23 -84
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +74 -23
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +68 -12
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +38 -28
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +12 -24
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +28 -38
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +19 -70
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +38 -67
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +9 -38
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +66 -19
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +45 -26
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +26 -36
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +16 -10
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +22 -18
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +36 -48
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +13 -66
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +22 -45
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +45 -23
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +2 -2
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +3 -3
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +1 -1
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +53 -17
  312. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +33 -82
  313. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +92 -49
  314. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +16 -40
  315. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +75 -43
  316. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +21 -36
  317. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +9 -16
  318. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +40 -51
  319. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +34 -93
  320. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +4 -4
  321. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +16 -16
  322. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +18 -74
  323. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +50 -21
  324. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +59 -9
  325. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +31 -32
  326. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +53 -18
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +39 -50
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +17 -59
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +81 -31
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +19 -15
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +15 -19
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +1 -1
  334. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +1 -1
  335. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +6 -6
  336. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +4 -4
  337. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +2 -2
  338. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +2 -2
  339. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +2 -2
  340. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +2 -2
  341. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +1 -1
  342. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +1 -1
  343. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +1 -1
  344. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +2 -2
  345. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
  346. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +6 -6
  347. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +4 -4
  348. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +1 -1
  349. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +17 -17
  350. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +18 -18
  351. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index10.js +31 -31
  352. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index12.js +46 -44
  353. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +18 -18
  354. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index7.js +7 -7
  355. package/package.json +1 -1
@@ -1,39 +1,28 @@
1
- import { useMoniteContext as o } from "./index59.js";
2
- import { getAPIErrorMessage as u } from "./index122.js";
3
- import { useLingui as c } from "@lingui/react";
4
- import { toast as t } from "react-hot-toast";
5
- const f = (s, a) => {
1
+ import { jsx as s } from "@emotion/react/jsx-runtime";
2
+ import { useGetReceivableById as r } from "./index84.js";
3
+ import { useCancelReceivableById as m } from "./index388.js";
4
+ import { ConfirmationModal as d } from "./index295.js";
5
+ import { useLingui as u } from "@lingui/react";
6
+ const v = ({
7
+ invoiceId: o,
8
+ open: c,
9
+ onClose: i
10
+ }) => {
6
11
  const {
7
- i18n: i
8
- } = c(), {
9
- api: e,
10
- queryClient: r
11
- } = o();
12
- return e.finops.postRecurrencesIdResume.useMutation({
13
- path: {
14
- recurrence_id: s
15
- }
16
- }, {
17
- onError: (n) => {
18
- t.error(u(i, n));
19
- },
20
- onSuccess: async () => {
21
- await Promise.all([e.finops.getReceivables.invalidateQueries(r), e.finops.getReceivablesId.invalidateQueries({
22
- parameters: {
23
- path: {
24
- receivable_id: a
25
- }
26
- }
27
- }, r), e.finops.getRecurrencesId.invalidateQueries({
28
- parameters: {
29
- path: {
30
- recurrence_id: s
31
- }
32
- }
33
- }, r)]), t.success(i._("Series has been resumed"));
34
- }
35
- });
12
+ i18n: e
13
+ } = u(), {
14
+ data: n,
15
+ isLoading: t
16
+ } = r(o), a = m(o);
17
+ if (!n)
18
+ return null;
19
+ const l = n.document_id ? e._("Cancel receivable") + ` "${n?.document_id}"?` : e._("Cancel receivable?");
20
+ return /* @__PURE__ */ s(d, { open: c && !!o, title: l, message: e._("This action can't be undone."), confirmLabel: e._("Cancel"), cancelLabel: e._("Close"), onClose: i, onConfirm: () => {
21
+ a.mutate(void 0, {
22
+ onSuccess: i
23
+ });
24
+ }, isLoading: a.isPending || t });
36
25
  };
37
26
  export {
38
- f as useResumeRecurrence
27
+ v as InvoiceCancelModal
39
28
  };
@@ -1,17 +1,42 @@
1
- import { jsxs as s, jsx as e } from "@emotion/react/jsx-runtime";
2
- import { amountValueToneClass as m } from "./index263.js";
3
- import { Typography as o } from "./index87.js";
4
- import { cn as l } from "./index102.js";
5
- function f({
6
- row: a,
7
- defaultTone: t
8
- }) {
9
- const n = a.tone ?? (a.emphasis ? t : "default");
10
- return /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
11
- /* @__PURE__ */ e(o, { variant: "caption", color: "muted", className: "ttw:font-medium", children: a.label }),
12
- /* @__PURE__ */ e(o, { component: "span", variant: a.emphasis ? "h3" : "body1", className: l(!a.emphasis && "ttw:font-medium", m[n]), children: a.value })
13
- ] });
14
- }
1
+ import { jsx as d } from "@emotion/react/jsx-runtime";
2
+ import { useDeleteReceivableById as u } from "./index389.js";
3
+ import { useComponentSettings as f } from "./index69.js";
4
+ import { useUserPermissions as v } from "./index132.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 b } from "../../shared/data-access/dist/lib/scopes.js";
11
+ import "react";
12
+ import { ConfirmationModal as C } from "./index295.js";
13
+ import { useLingui as D } from "@lingui/react";
14
+ import { toast as I } from "react-hot-toast";
15
+ const H = ({
16
+ open: r,
17
+ onClose: o,
18
+ invoiceId: t,
19
+ onDelete: n,
20
+ documentId: i
21
+ }) => {
22
+ const {
23
+ i18n: e
24
+ } = D(), {
25
+ receivablesCallbacks: s
26
+ } = f(), {
27
+ mutate: m,
28
+ isPending: a
29
+ } = u(t), l = v().has(b.InvoiceWriteOrg), c = () => {
30
+ l ? m(void 0, {
31
+ onSuccess: () => {
32
+ s?.onDelete?.(t), n?.(), o();
33
+ }
34
+ }) : I.error(e._("You don't have permission to delete this document. Please, contact your system administrator for details."));
35
+ }, p = i ? e._("Delete receivable “{documentId}”?", {
36
+ documentId: i
37
+ }) : e._("Delete receivable?");
38
+ return /* @__PURE__ */ d(C, { open: r, title: p, message: e._("This action can't be undone."), confirmLabel: e._("Delete"), cancelLabel: e._("Cancel"), onClose: o, onConfirm: c, isLoading: a });
39
+ };
15
40
  export {
16
- f as InvoiceDetailsAmountCell
41
+ H as InvoiceDeleteModal
17
42
  };
@@ -1,19 +1,54 @@
1
- import { jsx as o } from "@emotion/react/jsx-runtime";
2
- import { Button as c } from "./index86.js";
3
- import { XIcon as m } from "lucide-react";
4
- import { forwardRef as f } from "react";
5
- const v = f(function({
6
- label: r,
7
- onClose: t,
8
- variant: i = "ghost",
9
- size: e = "icon",
10
- onClick: n,
11
- ...a
12
- }, s) {
13
- return /* @__PURE__ */ o(c, { ref: s, variant: i, size: e, ...a, "aria-label": r, onClick: (l) => {
14
- n?.(l), t();
15
- }, children: /* @__PURE__ */ o(m, { className: "ttw:size-4" }) });
16
- });
1
+ import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
2
+ import { Button as l } from "./index86.js";
3
+ import { Dialog as u, DialogContent as g, DialogHeader as b, DialogTitle as f, DialogDescription as w, DialogFooter as k } from "./index183.js";
4
+ import { useLingui as v } from "@lingui/react";
5
+ import { useMarkAsUncollectibleReceivableById as C } from "./index390.js";
6
+ import { useState as x } from "react";
7
+ import { Textarea as D } from "./index125.js";
8
+ import { Label as _ } from "./index324.js";
9
+ import { LoadingSpinner as M } from "./index135.js";
10
+ const U = ({
11
+ invoiceId: r,
12
+ open: s,
13
+ onClose: i,
14
+ onMarkAsUncollectible: c
15
+ }) => {
16
+ const {
17
+ i18n: o
18
+ } = v(), [n, m] = x(""), {
19
+ mutate: d,
20
+ isPending: a
21
+ } = C(r, c), p = () => {
22
+ d({
23
+ comment: n.trim()
24
+ }, {
25
+ onSuccess: () => {
26
+ i();
27
+ }
28
+ });
29
+ };
30
+ return /* @__PURE__ */ e(u, { open: s, onOpenChange: i, children: /* @__PURE__ */ t(g, { showCloseButton: !1, children: [
31
+ /* @__PURE__ */ t(b, { children: [
32
+ /* @__PURE__ */ e(f, { children: o._("Mark invoice as uncollectible?") }),
33
+ /* @__PURE__ */ t(w, { children: [
34
+ /* @__PURE__ */ e("p", { children: o._("This invoice will change its status, and you won't be able to receive or log any payment against it.") }),
35
+ /* @__PURE__ */ e("br", {}),
36
+ /* @__PURE__ */ e("p", { children: o._("For bookkeeping purposes, this is a write-off and has tax implications.") })
37
+ ] })
38
+ ] }),
39
+ /* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
40
+ /* @__PURE__ */ e(_, { htmlFor: "comment", children: o._("Comment (optional)") }),
41
+ /* @__PURE__ */ e(D, { id: "comment", placeholder: o._("Add a comment"), value: n, onChange: (h) => m(h.target.value) })
42
+ ] }),
43
+ /* @__PURE__ */ t(k, { children: [
44
+ /* @__PURE__ */ e(l, { variant: "outline", onClick: i, children: o._("Cancel") }),
45
+ /* @__PURE__ */ t(l, { onClick: p, disabled: a, children: [
46
+ a && /* @__PURE__ */ e(M, { className: "ttw:w-5 ttw:h-5 ttw:border-inherit ttw:border-t-transparent" }),
47
+ o._("Mark as uncollectible")
48
+ ] })
49
+ ] })
50
+ ] }) });
51
+ };
17
52
  export {
18
- v as InvoiceDetailsCloseButton
53
+ U as MarkAsUncollectibleModal
19
54
  };
@@ -1,14 +1,32 @@
1
- import { jsxs as a, jsx as t } from "@emotion/react/jsx-runtime";
2
- import { Typography as r } from "./index87.js";
3
- function i({
4
- label: o,
5
- value: e
1
+ import { jsxs as t, jsx as e } from "@emotion/react/jsx-runtime";
2
+ import { Button as m } from "./index86.js";
3
+ import { DropdownMenu as d, DropdownMenuTrigger as p, DropdownMenuContent as u, DropdownMenuItem as f } from "./index137.js";
4
+ import { Tooltip as h, TooltipTrigger as g, TooltipContent as w } from "./index258.js";
5
+ import { ACTION_ICON as C } from "./index259.js";
6
+ import { preventTooltipFocusOpen as T } from "./index261.js";
7
+ import { MoreVerticalIcon as v } from "lucide-react";
8
+ function x({
9
+ actions: r,
10
+ triggerLabel: i,
11
+ getActionLabel: n,
12
+ onSelect: a,
13
+ isActionDisabled: s,
14
+ className: l
6
15
  }) {
7
- return /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
8
- /* @__PURE__ */ t(r, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: o }),
9
- /* @__PURE__ */ t(r, { component: "span", variant: "body2", children: e })
16
+ return /* @__PURE__ */ t(d, { children: [
17
+ /* @__PURE__ */ t(h, { children: [
18
+ /* @__PURE__ */ e(g, { asChild: !0, onFocus: T, children: /* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(m, { variant: "ghost", size: "icon", className: l, "aria-label": i, children: /* @__PURE__ */ e(v, { className: "ttw:size-4" }) }) }) }),
19
+ /* @__PURE__ */ e(w, { children: i })
20
+ ] }),
21
+ /* @__PURE__ */ e(u, { align: "end", children: r.map((o) => {
22
+ const c = C[o];
23
+ return /* @__PURE__ */ t(f, { variant: o === "delete" ? "destructive" : "default", disabled: s?.(o), onClick: () => a(o), children: [
24
+ /* @__PURE__ */ e(c, { className: "ttw:size-4" }),
25
+ n(o)
26
+ ] }, o);
27
+ }) })
10
28
  ] });
11
29
  }
12
30
  export {
13
- i as InvoiceDetailsInfoRow
31
+ x as InvoiceDetailsOverflowMenu
14
32
  };
@@ -1,28 +1,100 @@
1
- import { jsx as s } from "@emotion/react/jsx-runtime";
2
- import { useGetReceivableById as r } from "./index84.js";
3
- import { useCancelReceivableById as m } from "./index396.js";
4
- import { ConfirmationModal as d } from "./index285.js";
5
- import { useLingui as u } from "@lingui/react";
6
- const v = ({
7
- invoiceId: o,
8
- open: c,
9
- onClose: i
1
+ import { jsxs as o, Fragment as _, jsx as i } from "@emotion/react/jsx-runtime";
2
+ import { ManualPaymentRecordDetails as k } from "./index391.js";
3
+ import { PaymentRecordForm as E } from "./index392.js";
4
+ import { useMoniteContext as $ } from "./index59.js";
5
+ import { useRootElements as B } from "./index94.js";
6
+ import "@tanstack/react-query";
7
+ import { fromMinorUnits as F, toMinorUnits as H } from "./index122.js";
8
+ import "date-fns";
9
+ import { useEntityUserByAuthToken as L } from "./index77.js";
10
+ import { useCreatePaymentRecord as U } from "./index81.js";
11
+ import { useLingui as A } from "@lingui/react";
12
+ import { Dialog as I, DialogContent as Q, DialogActions as W, Button as m, Box as q } from "@mui/material";
13
+ import { useState as l } from "react";
14
+ const g = {
15
+ amount: 0,
16
+ payment_date: /* @__PURE__ */ new Date(),
17
+ payment_time: /* @__PURE__ */ new Date(),
18
+ created_by: ""
19
+ }, ie = ({
20
+ children: b,
21
+ invoice: t
10
22
  }) => {
11
- const {
12
- i18n: e
13
- } = u(), {
14
- data: n,
15
- isLoading: t
16
- } = r(o), a = m(o);
17
- if (!n)
18
- return null;
19
- const l = n.document_id ? e._("Cancel receivable") + ` "${n?.document_id}"?` : e._("Cancel receivable?");
20
- return /* @__PURE__ */ s(d, { open: c && !!o, title: l, message: e._("This action can't be undone."), confirmLabel: e._("Cancel"), cancelLabel: e._("Close"), onClose: i, onConfirm: () => {
21
- a.mutate(void 0, {
22
- onSuccess: i
23
+ const [h, c] = l(!1), [C, r] = l(!1), [e, u] = l(g), {
24
+ i18n: s
25
+ } = A(), {
26
+ root: x
27
+ } = B(), v = () => c(!0), n = () => c(!1), {
28
+ api: p,
29
+ queryClient: y
30
+ } = $(), {
31
+ mutate: D,
32
+ isPending: M
33
+ } = U(), {
34
+ data: f,
35
+ isLoading: R
36
+ } = L(), w = (a) => {
37
+ u({
38
+ ...a,
39
+ amount: H(a?.amount ?? 0),
40
+ created_by: f?.id ?? ""
41
+ }), r(!0);
42
+ }, P = () => {
43
+ r(!1), u(g);
44
+ }, S = () => {
45
+ const a = new Date(e.payment_date).setHours(e.payment_time.getHours(), e.payment_time.getMinutes()), j = new Date(a);
46
+ D({
47
+ amount: e?.amount ?? 0,
48
+ currency: t.currency,
49
+ paid_at: j.toISOString(),
50
+ object: {
51
+ id: t.id,
52
+ type: "receivable"
53
+ },
54
+ payment_intent_id: t.id,
55
+ entity_user_id: f?.id,
56
+ status: "succeeded"
57
+ }, {
58
+ onSuccess: () => {
59
+ p.finops.getReceivablesId.invalidateQueries({
60
+ parameters: {
61
+ path: {
62
+ receivable_id: t.id
63
+ }
64
+ }
65
+ }, y), p.finops.getReceivables.invalidateQueries(y), n(), P();
66
+ }
23
67
  });
24
- }, isLoading: a.isPending || t });
68
+ }, d = M || R;
69
+ return ["draft", "paid", "canceled", "deleted", "accepted", "recurring", "expired", "declined", "uncollectible"].includes(t.status) ? null : /* @__PURE__ */ o(_, { children: [
70
+ b({
71
+ openModal: v
72
+ }),
73
+ /* @__PURE__ */ i(I, { open: h, onClose: n, container: x, "aria-labelledby": "dialog-title", fullWidth: !0, maxWidth: "sm", children: C ? /* @__PURE__ */ o(_, { children: [
74
+ /* @__PURE__ */ i(Q, { sx: {
75
+ p: 4
76
+ }, children: /* @__PURE__ */ i(k, { invoice: t, paymentRecords: e }) }),
77
+ /* @__PURE__ */ o(W, { sx: {
78
+ px: 4,
79
+ pb: 4,
80
+ justifyContent: "space-between"
81
+ }, children: [
82
+ /* @__PURE__ */ i(m, { onClick: n, children: s._("Cancel") }),
83
+ /* @__PURE__ */ o(q, { sx: {
84
+ display: "flex",
85
+ gap: 2
86
+ }, children: [
87
+ /* @__PURE__ */ i(m, { variant: "outlined", disabled: d, onClick: () => r(!1), children: s._("Edit record") }),
88
+ /* @__PURE__ */ i(m, { variant: "contained", disabled: d, onClick: S, children: s._("Confirm") })
89
+ ] })
90
+ ] })
91
+ ] }) : /* @__PURE__ */ i(E, { invoice: t, initialValues: {
92
+ amount: e.amount ? F(e.amount) : 0,
93
+ payment_date: e.payment_date,
94
+ payment_time: e.payment_time
95
+ }, isLoading: d, onCancel: n, onSubmit: w }) })
96
+ ] });
25
97
  };
26
98
  export {
27
- v as InvoiceCancelModal
99
+ ie as RecordManualPaymentModal
28
100
  };
@@ -1,42 +1,49 @@
1
- import { jsx as d } from "@emotion/react/jsx-runtime";
2
- import { useDeleteReceivableById as u } from "./index397.js";
3
- import { useComponentSettings as f } from "./index69.js";
4
- import { useUserPermissions as v } from "./index132.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 b } from "../../shared/data-access/dist/lib/scopes.js";
1
+ import { jsxs as f, jsx as n } from "@emotion/react/jsx-runtime";
2
+ import { useCancelRecurrence as v } from "./index393.js";
3
+ import { useGetRecurrenceById as _ } from "./index176.js";
4
+ import { useCurrencies as C } from "./index60.js";
11
5
  import "react";
12
- import { ConfirmationModal as C } from "./index285.js";
13
- import { useLingui as D } from "@lingui/react";
14
- import { toast as I } from "react-hot-toast";
15
- const H = ({
16
- open: r,
17
- onClose: o,
18
- invoiceId: t,
19
- onDelete: n,
20
- documentId: i
6
+ import "./index94.js";
7
+ import { useLingui as g, Trans as h } from "@lingui/react";
8
+ import "react-dom";
9
+ import "./index59.js";
10
+ import "@mui/x-data-grid";
11
+ import { ConfirmationModal as b } from "./index295.js";
12
+ import w from "deep-eql";
13
+ import { usePreviousDistinct as y } from "react-use";
14
+ const $ = ({
15
+ invoice: i,
16
+ open: a,
17
+ onClose: r
21
18
  }) => {
22
19
  const {
23
20
  i18n: e
24
- } = D(), {
25
- receivablesCallbacks: s
26
- } = f(), {
21
+ } = g(), {
22
+ formatCurrencyToDisplay: l
23
+ } = C(), c = i?.recurrence_id ?? "", {
27
24
  mutate: m,
28
- isPending: a
29
- } = u(t), l = v().has(b.InvoiceWriteOrg), c = () => {
30
- l ? m(void 0, {
31
- onSuccess: () => {
32
- s?.onDelete?.(t), n?.(), o();
33
- }
34
- }) : I.error(e._("You don't have permission to delete this document. Please, contact your system administrator for details."));
35
- }, p = i ? e._("Delete receivable “{documentId}”?", {
36
- documentId: i
37
- }) : e._("Delete receivable?");
38
- return /* @__PURE__ */ d(C, { open: r, title: p, message: e._("This action can't be undone."), confirmLabel: e._("Delete"), cancelLabel: e._("Cancel"), onClose: o, onConfirm: c, isLoading: a });
25
+ isPending: u
26
+ } = v(c, i.id), {
27
+ data: t
28
+ } = _(c), s = y(t, w), o = (s?.status === "active" && t?.status === "canceled" ? s : t)?.iterations?.filter(({
29
+ status: p
30
+ }) => p === "pending")?.length ?? 0, d = i && o !== void 0 ? l(i.total_amount_with_credit_notes * o, i.currency) : void 0;
31
+ return /* @__PURE__ */ f(b, { open: a && !!i.id, title: e._("Cancel Recurring Invoice"), confirmLabel: e._("Cancel recurrence"), cancelLabel: e._("Close"), onClose: r, onConfirm: () => m(void 0, {
32
+ onSuccess: r
33
+ }), isLoading: u, children: [
34
+ /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("Are you sure you want to cancel this recurring invoice?") }),
35
+ /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("All future iterations of this invoice will be canceled.") }),
36
+ i && o !== void 0 && /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: /* @__PURE__ */ n(h, { id: "ZYrFPL", values: {
37
+ 0: o === 1 ? e._("invoice") : e._("invoices"),
38
+ totalPendingInvoices: o,
39
+ pendingInvoicesTotalAmountWithCreditNotes: d
40
+ }, components: {
41
+ 0: /* @__PURE__ */ n("strong", {}),
42
+ 1: /* @__PURE__ */ n("strong", {})
43
+ } }) }),
44
+ /* @__PURE__ */ n("span", { className: "ttw:inline-block", children: e._("This action can't be undone.") })
45
+ ] });
39
46
  };
40
47
  export {
41
- H as InvoiceDeleteModal
48
+ $ as RecurrenceCancelModal
42
49
  };
@@ -1,54 +1,4 @@
1
- import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
2
- import { Button as l } from "./index86.js";
3
- import { Dialog as u, DialogContent as g, DialogHeader as b, DialogTitle as f, DialogDescription as w, DialogFooter as k } from "./index183.js";
4
- import { useLingui as v } from "@lingui/react";
5
- import { useMarkAsUncollectibleReceivableById as C } from "./index398.js";
6
- import { useState as x } from "react";
7
- import { Textarea as D } from "./index120.js";
8
- import { Label as _ } from "./index346.js";
9
- import { LoadingSpinner as M } from "./index135.js";
10
- const U = ({
11
- invoiceId: r,
12
- open: s,
13
- onClose: i,
14
- onMarkAsUncollectible: c
15
- }) => {
16
- const {
17
- i18n: o
18
- } = v(), [n, m] = x(""), {
19
- mutate: d,
20
- isPending: a
21
- } = C(r, c), p = () => {
22
- d({
23
- comment: n.trim()
24
- }, {
25
- onSuccess: () => {
26
- i();
27
- }
28
- });
29
- };
30
- return /* @__PURE__ */ e(u, { open: s, onOpenChange: i, children: /* @__PURE__ */ t(g, { showCloseButton: !1, children: [
31
- /* @__PURE__ */ t(b, { children: [
32
- /* @__PURE__ */ e(f, { children: o._("Mark invoice as uncollectible?") }),
33
- /* @__PURE__ */ t(w, { children: [
34
- /* @__PURE__ */ e("p", { children: o._("This invoice will change its status, and you won't be able to receive or log any payment against it.") }),
35
- /* @__PURE__ */ e("br", {}),
36
- /* @__PURE__ */ e("p", { children: o._("For bookkeeping purposes, this is a write-off and has tax implications.") })
37
- ] })
38
- ] }),
39
- /* @__PURE__ */ t("div", { className: "ttw:flex ttw:flex-col ttw:gap-2", children: [
40
- /* @__PURE__ */ e(_, { htmlFor: "comment", children: o._("Comment (optional)") }),
41
- /* @__PURE__ */ e(D, { id: "comment", placeholder: o._("Add a comment"), value: n, onChange: (h) => m(h.target.value) })
42
- ] }),
43
- /* @__PURE__ */ t(k, { children: [
44
- /* @__PURE__ */ e(l, { variant: "outline", onClick: i, children: o._("Cancel") }),
45
- /* @__PURE__ */ t(l, { onClick: p, disabled: a, children: [
46
- a && /* @__PURE__ */ e(M, { className: "ttw:w-5 ttw:h-5 ttw:border-inherit ttw:border-t-transparent" }),
47
- o._("Mark as uncollectible")
48
- ] })
49
- ] })
50
- ] }) });
51
- };
1
+ const s = (o) => o.source_of_payable_data === "ocr" && o.ocr_status === "processing";
52
2
  export {
53
- U as MarkAsUncollectibleModal
3
+ s as isPayableInOCRProcessing
54
4
  };
@@ -1,32 +1,98 @@
1
- import { jsxs as t, jsx as e } from "@emotion/react/jsx-runtime";
2
- import { Button as m } from "./index86.js";
3
- import { DropdownMenu as d, DropdownMenuTrigger as p, DropdownMenuContent as u, DropdownMenuItem as f } from "./index137.js";
4
- import { Tooltip as h, TooltipTrigger as g, TooltipContent as w } from "./index262.js";
5
- import { ACTION_ICON as C } from "./index263.js";
6
- import { preventTooltipFocusOpen as T } from "./index265.js";
7
- import { MoreVerticalIcon as v } from "lucide-react";
8
- function x({
9
- actions: r,
10
- triggerLabel: i,
11
- getActionLabel: n,
12
- onSelect: a,
13
- isActionDisabled: s,
14
- className: l
15
- }) {
16
- return /* @__PURE__ */ t(d, { children: [
17
- /* @__PURE__ */ t(h, { children: [
18
- /* @__PURE__ */ e(g, { asChild: !0, onFocus: T, children: /* @__PURE__ */ e(p, { asChild: !0, children: /* @__PURE__ */ e(m, { variant: "ghost", size: "icon", className: l, "aria-label": i, children: /* @__PURE__ */ e(v, { className: "ttw:size-4" }) }) }) }),
19
- /* @__PURE__ */ e(w, { children: i })
20
- ] }),
21
- /* @__PURE__ */ e(u, { align: "end", children: r.map((o) => {
22
- const c = C[o];
23
- return /* @__PURE__ */ t(f, { variant: o === "delete" ? "destructive" : "default", disabled: s?.(o), onClick: () => a(o), children: [
24
- /* @__PURE__ */ e(c, { className: "ttw:size-4" }),
25
- n(o)
26
- ] }, o);
27
- }) })
28
- ] });
29
- }
1
+ import { jsx as i } from "@emotion/react/jsx-runtime";
2
+ import { useDragScroll as b } from "./index395.js";
3
+ import { PayableStatusChip as C } from "./index147.js";
4
+ import { useMoniteContext as M } from "./index59.js";
5
+ import { useCurrencies as x } from "./index60.js";
6
+ import { Skeleton as A } from "./index136.js";
7
+ import { StatusCard as D } from "./index349.js";
8
+ import { useLingui as j } from "@lingui/react";
9
+ import { useRef as L, useEffect as P } from "react";
10
+ import { getPayablesAnalyticsSnapshot as U } from "./index396.js";
11
+ const c = [{
12
+ groupStatus: "all",
13
+ apiStatuses: [],
14
+ representativeStatus: null
15
+ }, {
16
+ groupStatus: "draft",
17
+ apiStatuses: ["draft", "new"],
18
+ representativeStatus: "draft"
19
+ }, {
20
+ groupStatus: "pending_approval",
21
+ apiStatuses: ["approve_in_progress"],
22
+ representativeStatus: "approve_in_progress"
23
+ }, {
24
+ groupStatus: "rejected",
25
+ apiStatuses: ["rejected"],
26
+ representativeStatus: "rejected"
27
+ }, {
28
+ groupStatus: "ready_to_pay",
29
+ apiStatuses: ["waiting_to_be_paid", "partially_paid"],
30
+ representativeStatus: "waiting_to_be_paid"
31
+ }, {
32
+ groupStatus: "paid",
33
+ apiStatuses: ["paid"],
34
+ representativeStatus: "paid"
35
+ }, {
36
+ groupStatus: "cancelled",
37
+ apiStatuses: ["canceled"],
38
+ representativeStatus: "canceled"
39
+ }], O = ({
40
+ onChangeFilter: o,
41
+ selectedStatus: s
42
+ }) => {
43
+ const {
44
+ i18n: l
45
+ } = j(), {
46
+ data: r,
47
+ isLoading: n
48
+ } = k(), {
49
+ formatCurrencyToDisplay: m
50
+ } = x(), {
51
+ containerRef: S,
52
+ handleMouseDown: f,
53
+ handleMouseLeave: v,
54
+ handleMouseUp: _,
55
+ handleMouseMove: g
56
+ } = b();
57
+ if (n)
58
+ return /* @__PURE__ */ i("div", { className: "ttw:flex ttw:gap-2", children: Array.from({
59
+ length: 6
60
+ }).map((t, u) => /* @__PURE__ */ i(A, { className: "ttw:h-16.5 ttw:w-42 ttw:rounded-xl ttw:animate-pulse" }, u)) });
61
+ const d = r?.data ?? [], w = c.map(({
62
+ groupStatus: t,
63
+ apiStatuses: u
64
+ }) => {
65
+ if (t === "all")
66
+ return {
67
+ status: "all",
68
+ count: d.reduce((e, a) => e + a.count, 0),
69
+ sum_total_amount: d.reduce((e, a) => e + (a.sum_total_amount ?? 0), 0)
70
+ };
71
+ const p = d.filter((e) => u.includes(e.status));
72
+ return {
73
+ status: t,
74
+ count: p.reduce((e, a) => e + a.count, 0),
75
+ sum_total_amount: p.reduce((e, a) => e + (a.sum_total_amount ?? 0), 0)
76
+ };
77
+ }).filter((t) => t.status === "all" || t.count > 0), h = (t) => {
78
+ o("status", t === "all" ? null : t);
79
+ }, y = (t) => m(t, "USD") ?? "—";
80
+ return /* @__PURE__ */ i("div", { ref: S, className: "ttw:flex ttw:gap-2 ttw:mb-6 ttw:overflow-x-auto ttw:[scrollbar-width:none] ttw:[&::-webkit-scrollbar]:hidden ttw:cursor-grab ttw:select-none", onMouseDown: f, onMouseLeave: v, onMouseUp: _, onMouseMove: g, children: w.map((t) => {
81
+ const u = c.find((p) => p.groupStatus === t.status);
82
+ return /* @__PURE__ */ i(D, { allItemsText: l._("All bills"), isAllStatus: t.status === "all", data: t.status === "all" ? t.count ?? 0 : t.sum_total_amount ?? 0, amountOfItems: t.status !== "all" ? t.count ?? 0 : void 0, selected: s === t.status, onClick: () => h(t.status), formatAmount: y, statusChip: u?.representativeStatus ? /* @__PURE__ */ i(C, { status: u.representativeStatus }) : void 0 }, t.status);
83
+ }) });
84
+ }, k = () => {
85
+ const {
86
+ api: o,
87
+ queryClient: s
88
+ } = M(), l = o.finops.getPayablesAnalytics.useQuery({}, {
89
+ enabled: !!s,
90
+ refetchInterval: 3e3
91
+ }), r = U(l.data?.data), n = L(void 0);
92
+ return P(() => {
93
+ r !== void 0 && n.current !== void 0 && r !== n.current && s && o.finops.getPayables.invalidateQueries(s), n.current = r;
94
+ }, [r, o, s]), l;
95
+ };
30
96
  export {
31
- x as InvoiceDetailsOverflowMenu
97
+ O as SummaryCardsFilters
32
98
  };