@tesouro/embedded-components-react 0.2.85 → 0.2.86

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 (315) hide show
  1. package/dist/lib/ReceivablesWidget.js +19 -19
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +19 -19
  3. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
  4. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +16 -16
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
  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/index120.js +22 -23
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -23
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -2
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +8 -8
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +4 -4
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +3 -3
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +3 -3
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -6
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +4 -4
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -2
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +4 -4
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +3 -3
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +28 -28
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +3 -3
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -6
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +3 -3
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -2
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +36 -35
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +46 -50
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +29 -34
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -54
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +75 -344
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +32 -2
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +18 -18
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +486 -9
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +162 -8
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -14
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +50 -13
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +34 -21
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +54 -33
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +343 -34
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -37
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +20 -15
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +14 -17
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +11 -247
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +10 -179
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -12
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +21 -19
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +31 -24
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +35 -38
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +35 -56
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +15 -52
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -30
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +244 -92
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +179 -43
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -37
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +18 -46
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +24 -27
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +40 -5
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +54 -73
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +52 -32
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +30 -20
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +97 -72
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +47 -44
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +73 -42
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +44 -62
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +19 -30
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +29 -113
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +41 -21
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +60 -41
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +90 -51
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +104 -483
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +83 -163
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +41 -10
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +342 -21
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +296 -27
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +103 -14
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +155 -73
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +265 -75
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +24 -43
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +20 -2
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +2 -96
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +89 -90
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +90 -185
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +191 -19
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +39 -27
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +58 -38
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +29 -61
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +113 -95
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +21 -111
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +41 -85
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +51 -35
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +62 -344
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +27 -302
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +124 -100
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +10 -162
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +59 -259
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +22 -23
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +33 -19
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +149 -63
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +17 -157
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +21 -28
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +40 -26
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +13 -77
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +78 -20
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +158 -17
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +28 -19
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +27 -169
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +76 -132
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +59 -156
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +44 -12
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +24 -18
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +185 -59
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +106 -66
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +81 -59
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +283 -6
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +46 -8
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +15 -62
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +83 -21
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +220 -58
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +39 -14
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +74 -62
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +42 -42
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +20 -23
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +14 -185
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +17 -106
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +169 -80
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +119 -270
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +157 -44
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -15
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -85
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +58 -220
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +63 -34
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +60 -149
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +8 -19
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +9 -26
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +61 -126
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +21 -93
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +62 -16
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -76
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +96 -17
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -49
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +74 -10
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +17 -50
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +48 -19
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -40
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +46 -63
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +7 -28
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +255 -11
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -255
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +36 -12
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +25 -15
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +6 -48
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +104 -11
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +21 -46
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +20 -25
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +55 -32
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +33 -6
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +24 -100
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +43 -21
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -24
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +70 -53
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +94 -32
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +27 -18
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +9 -42
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +10 -24
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +32 -74
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +13 -94
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -29
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +47 -120
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +10 -17
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +34 -16
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +54 -16
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +36 -16
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +26 -16
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +7 -10
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +53 -10
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +15 -70
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +96 -16
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +38 -16
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +35 -16
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +32 -11
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +5 -7
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +124 -51
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +120 -15
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +18 -32
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -5
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -127
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +16 -34
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -54
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +70 -33
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -26
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -96
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -38
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +11 -35
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -1
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -1
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +10 -5
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +12 -75
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +5 -68
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +28 -38
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +24 -12
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +38 -32
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +75 -85
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -23
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +33 -99
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +32 -111
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +85 -22
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +22 -26
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +102 -35
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +106 -23
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -23
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +26 -37
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +38 -8
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +68 -9
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +44 -66
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +25 -44
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -28
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +17 -71
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +55 -67
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +80 -49
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +32 -31
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +31 -32
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +54 -29
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +29 -56
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +54 -37
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +37 -44
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +46 -56
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +55 -70
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +72 -21
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +20 -52
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +51 -18
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +17 -29
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +29 -69
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -28
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +39 -15
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +94 -81
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +15 -33
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +75 -40
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +20 -41
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +9 -37
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +41 -14
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +36 -18
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +14 -49
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +51 -56
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +81 -31
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +39 -53
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +16 -13
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +48 -93
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +59 -16
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +33 -75
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +32 -20
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +16 -9
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +9 -64
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +64 -9
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +39 -47
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +47 -39
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +2 -2
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
  312. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +19 -19
  313. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
  314. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +19 -19
  315. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { useMoniteContext as s } from "./index57.js";
2
- import { getAPIErrorMessage as i } from "./index122.js";
2
+ import { getAPIErrorMessage as i } from "./index121.js";
3
3
  import { useLingui as n } from "@lingui/react";
4
4
  import { toast as p } from "react-hot-toast";
5
5
  const c = (t) => {
@@ -1,46 +1,49 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { cn as l } from "./index100.js";
3
- function r({
4
- className: t,
5
- ...a
6
- }) {
7
- return /* @__PURE__ */ e("div", { "data-slot": "table-container", className: "ttw:flex-1 ttw:relative ttw:w-0 ttw:min-w-full ttw:overflow-x-auto", children: /* @__PURE__ */ e("table", { "data-slot": "table", className: l("ttw:w-full ttw:caption-bottom ttw:text-sm", t), ...a }) });
8
- }
9
- function w({
10
- className: t,
11
- ...a
12
- }) {
13
- return /* @__PURE__ */ e("thead", { "data-slot": "table-header", className: l("ttw:[&_tr]:border-b", t), ...a });
14
- }
15
- function c({
16
- className: t,
17
- ...a
18
- }) {
19
- return /* @__PURE__ */ e("tbody", { "data-slot": "table-body", className: l("ttw:[&_tr:last-child]:border-0", t), ...a });
20
- }
21
- function n({
22
- className: t,
23
- ...a
24
- }) {
25
- return /* @__PURE__ */ e("tr", { "data-slot": "table-row", className: l("ttw:border-b ttw:transition-colors ttw:hover:bg-muted/50 ttw:data-[state=selected]:bg-muted", t), ...a });
26
- }
27
- function d({
28
- className: t,
29
- ...a
30
- }) {
31
- return /* @__PURE__ */ e("th", { "data-slot": "table-head", className: l("ttw:h-10 ttw:px-2 ttw:text-left ttw:align-middle ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
32
- }
33
- function b({
34
- className: t,
35
- ...a
36
- }) {
37
- return /* @__PURE__ */ e("td", { "data-slot": "table-cell", className: l("ttw:p-2 ttw:align-middle ttw:whitespace-nowrap ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
38
- }
1
+ import { jsxs as f, jsx as n } from "@emotion/react/jsx-runtime";
2
+ import { useCancelRecurrence as v } from "./index375.js";
3
+ import { useGetRecurrenceById as _ } from "./index253.js";
4
+ import { useCurrencies as C } from "./index58.js";
5
+ import "react";
6
+ import "./index92.js";
7
+ import { useLingui as g, Trans as h } from "@lingui/react";
8
+ import "react-dom";
9
+ import "./index57.js";
10
+ import "@mui/x-data-grid";
11
+ import { ConfirmationModal as b } from "./index234.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
18
+ }) => {
19
+ const {
20
+ i18n: e
21
+ } = g(), {
22
+ formatCurrencyToDisplay: l
23
+ } = C(), c = i?.recurrence_id ?? "", {
24
+ mutate: m,
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
+ ] });
46
+ };
39
47
  export {
40
- r as Table,
41
- c as TableBody,
42
- b as TableCell,
43
- d as TableHead,
44
- w as TableHeader,
45
- n as TableRow
48
+ $ as RecurrenceCancelModal
46
49
  };
@@ -1,44 +1,75 @@
1
- import { jsx as i, jsxs as e } from "@emotion/react/jsx-runtime";
2
- import { useApprovalPolicyScript as o } from "./index389.js";
3
- import { UListUiAlt as a } from "./index390.js";
4
- import { UUserCircle as c } from "./index386.js";
5
- import { UUsersAlt as m } from "./index391.js";
6
- import { UUserSquare as p } from "./index392.js";
7
- import { ColumnList as n } from "./index382.js";
8
- const v = ({
9
- approvalPolicy: l
10
- }) => {
11
- const {
12
- rules: t,
13
- getRuleName: s
14
- } = o({
15
- approvalPolicy: l
16
- });
17
- return l ? /* @__PURE__ */ i(n, { children: t && Object.keys(t).map((r) => {
18
- switch (r) {
19
- case "single_user":
20
- return /* @__PURE__ */ e("li", { children: [
21
- /* @__PURE__ */ i(c, { width: 18 }),
22
- s(r)
23
- ] }, r);
24
- case "users_from_list":
25
- return /* @__PURE__ */ e("li", { children: [
26
- /* @__PURE__ */ i(m, { width: 18 }),
27
- s(r)
28
- ] }, r);
29
- case "roles_from_list":
30
- return /* @__PURE__ */ e("li", { children: [
31
- /* @__PURE__ */ i(p, { width: 18 }),
32
- s(r)
33
- ] }, r);
34
- case "approval_chain":
35
- return /* @__PURE__ */ e("li", { children: [
36
- /* @__PURE__ */ i(a, { width: 18 }),
37
- s(r)
38
- ] }, r);
39
- }
40
- }) }) : null;
41
- };
1
+ import { jsx as t, jsxs as l } from "@emotion/react/jsx-runtime";
2
+ import { cn as n } from "./index100.js";
3
+ import * as a from "@radix-ui/react-select";
4
+ import { ChevronDownIcon as i, CheckIcon as w, ChevronUpIcon as d } from "lucide-react";
5
+ function g({
6
+ ...e
7
+ }) {
8
+ return /* @__PURE__ */ t(a.Root, { "data-slot": "select", ...e });
9
+ }
10
+ function h({
11
+ ...e
12
+ }) {
13
+ return /* @__PURE__ */ t(a.Value, { "data-slot": "select-value", ...e });
14
+ }
15
+ function v({
16
+ className: e,
17
+ size: s = "default",
18
+ children: o,
19
+ ...r
20
+ }) {
21
+ return /* @__PURE__ */ l(a.Trigger, { "data-slot": "select-trigger", "data-size": s, className: n("ttw:border-input ttw:data-[placeholder]:text-muted-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:dark:hover:bg-input/50 ttw:flex ttw:w-fit ttw:items-center ttw:justify-between ttw:gap-2 ttw:rounded-md ttw:border ttw:bg-transparent ttw:px-3 ttw:py-2 ttw:text-sm ttw:whitespace-nowrap ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:data-[size=default]:h-9 ttw:data-[size=sm]:h-8 ttw:*:data-[slot=select-value]:line-clamp-1 ttw:*:data-[slot=select-value]:flex ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1 ttw:*:data-[slot=select-value]:items-center ttw:*:data-[slot=select-value]:gap-2 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4", e), ...r, children: [
22
+ o,
23
+ /* @__PURE__ */ t(a.Icon, { asChild: !0, children: /* @__PURE__ */ t(i, { className: "ttw:size-4 ttw:opacity-50" }) })
24
+ ] });
25
+ }
26
+ function x({
27
+ className: e,
28
+ children: s,
29
+ position: o = "popper",
30
+ ...r
31
+ }) {
32
+ return /* @__PURE__ */ t(a.Portal, { children: /* @__PURE__ */ l(a.Content, { "data-slot": "select-content", className: n("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:relative ttw:z-1300 ttw:max-h-(--radix-select-content-available-height) ttw:min-w-[8rem] ttw:origin-(--radix-select-content-transform-origin) ttw:overflow-x-hidden ttw:overflow-y-auto ttw:rounded-md ttw:border-none ttw:shadow-md", o === "popper" && "ttw:data-[side=bottom]:translate-y-1 ttw:data-[side=left]:-translate-x-1 ttw:data-[side=right]:translate-x-1 ttw:data-[side=top]:-translate-y-1", e), position: o, ...r, children: [
33
+ /* @__PURE__ */ t(c, {}),
34
+ /* @__PURE__ */ t(a.Viewport, { className: n("ttw:p-1", o === "popper" && "ttw:h-[var(--radix-select-trigger-height)] ttw:w-full ttw:min-w-[var(--radix-select-trigger-width)] ttw:scroll-my-1"), children: s }),
35
+ /* @__PURE__ */ t(u, {})
36
+ ] }) });
37
+ }
38
+ function b({
39
+ className: e,
40
+ children: s,
41
+ ...o
42
+ }) {
43
+ return /* @__PURE__ */ l(a.Item, { "data-slot": "select-item", className: n("ttw:focus:bg-accent ttw:focus:text-accent-foreground ttw:[&_svg:not([class*=text-])]:text-muted-foreground ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:outline-hidden ttw:select-none ttw:data-[disabled]:pointer-events-none ttw:data-[disabled]:opacity-50 ttw:[&_svg]:pointer-events-none ttw:[&_svg]:shrink-0 ttw:[&_svg:not([class*=size-])]:size-4 ttw:*:[span]:last:flex ttw:*:[span]:last:min-w-0 ttw:*:[span]:last:flex-1 ttw:*:[span]:last:items-center ttw:*:[span]:last:gap-2", e), ...o, children: [
44
+ /* @__PURE__ */ t("span", { className: "ttw:absolute ttw:right-2 ttw:flex ttw:size-3.5 ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(a.ItemIndicator, { children: /* @__PURE__ */ t(w, { className: "ttw:size-4" }) }) }),
45
+ /* @__PURE__ */ t(a.ItemText, { children: s })
46
+ ] });
47
+ }
48
+ function N({
49
+ className: e,
50
+ ...s
51
+ }) {
52
+ return /* @__PURE__ */ t(a.Separator, { "data-slot": "select-separator", className: n("ttw:bg-border ttw:pointer-events-none ttw:-mx-1 ttw:my-1 ttw:h-px", e), ...s });
53
+ }
54
+ function c({
55
+ className: e,
56
+ ...s
57
+ }) {
58
+ return /* @__PURE__ */ t(a.ScrollUpButton, { "data-slot": "select-scroll-up-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(d, { className: "ttw:size-4" }) });
59
+ }
60
+ function u({
61
+ className: e,
62
+ ...s
63
+ }) {
64
+ return /* @__PURE__ */ t(a.ScrollDownButton, { "data-slot": "select-scroll-down-button", className: n("ttw:flex ttw:cursor-default ttw:items-center ttw:justify-center ttw:py-1", e), ...s, children: /* @__PURE__ */ t(i, { className: "ttw:size-4" }) });
65
+ }
42
66
  export {
43
- v as ApprovalPoliciesRules
67
+ g as Select,
68
+ x as SelectContent,
69
+ b as SelectItem,
70
+ u as SelectScrollDownButton,
71
+ c as SelectScrollUpButton,
72
+ N as SelectSeparator,
73
+ v as SelectTrigger,
74
+ h as SelectValue
44
75
  };
@@ -1,64 +1,46 @@
1
- import { jsx as s, jsxs as y } from "@emotion/react/jsx-runtime";
2
- import "./index57.js";
3
- import "@tanstack/react-query";
4
- import "date-fns";
5
- import { useEntityUserById as U } from "./index75.js";
6
- import "react";
7
- import "react-hot-toast";
8
- import "@lingui/react";
9
- import { Avatar as b, AvatarFallback as k } from "./index352.js";
10
- import { Badge as p } from "./index235.js";
11
- import { Skeleton as B } from "./index132.js";
12
- import { getVariantProps as d } from "./index457.js";
13
- const q = ({
14
- userId: t,
15
- user: e,
16
- variant: m = "text",
17
- showUsersAsEmail: i = !1,
18
- showAvatar: f = !1,
19
- className: o = ""
20
- }) => {
21
- const {
22
- data: u,
23
- isLoading: r,
24
- isError: N
25
- } = U(e ? void 0 : t), a = e || u;
26
- if (!a && !r && N && t) {
27
- const {
28
- useBadge: x,
29
- badgeVariant: E,
30
- className: c
31
- } = d({
32
- variant: m,
33
- isError: !0,
34
- componentType: "user",
35
- className: o
36
- });
37
- return x ? /* @__PURE__ */ s(p, { variant: E, className: c, children: "N/A" }) : /* @__PURE__ */ s("span", { className: c, children: "N/A" });
38
- }
39
- if (!a && !r)
40
- return null;
41
- const h = a ? `${a.first_name ?? ""} ${a.last_name ?? ""}`.trim() : "", w = a ? `${a.first_name?.[0] ?? ""}${a.last_name?.[0] ?? ""}`.toUpperCase() : "", n = i && a?.email ? a.email : h || a?.email || "";
42
- if (r)
43
- return /* @__PURE__ */ s(B, { className: "ttw:h-4 ttw:w-20" });
44
- const {
45
- useBadge: v,
46
- badgeVariant: A,
47
- className: l,
48
- showAvatar: g
49
- } = d({
50
- variant: m,
51
- isError: !1,
52
- componentType: "user",
53
- showAvatar: f,
54
- showUsersAsEmail: i,
55
- className: o
56
- });
57
- return v ? /* @__PURE__ */ y(p, { variant: A, className: l, children: [
58
- g && /* @__PURE__ */ s(b, { className: "ttw:w-4 ttw:h-4", children: /* @__PURE__ */ s(k, { className: "ttw:text-xs ttw:font-medium", children: w }) }),
59
- n
60
- ] }) : /* @__PURE__ */ s("span", { className: l, children: n });
61
- };
1
+ import { jsx as e } from "@emotion/react/jsx-runtime";
2
+ import { cn as l } from "./index100.js";
3
+ function r({
4
+ className: t,
5
+ ...a
6
+ }) {
7
+ return /* @__PURE__ */ e("div", { "data-slot": "table-container", className: "ttw:flex-1 ttw:relative ttw:w-0 ttw:min-w-full ttw:overflow-x-auto", children: /* @__PURE__ */ e("table", { "data-slot": "table", className: l("ttw:w-full ttw:caption-bottom ttw:text-sm", t), ...a }) });
8
+ }
9
+ function w({
10
+ className: t,
11
+ ...a
12
+ }) {
13
+ return /* @__PURE__ */ e("thead", { "data-slot": "table-header", className: l("ttw:[&_tr]:border-b", t), ...a });
14
+ }
15
+ function c({
16
+ className: t,
17
+ ...a
18
+ }) {
19
+ return /* @__PURE__ */ e("tbody", { "data-slot": "table-body", className: l("ttw:[&_tr:last-child]:border-0", t), ...a });
20
+ }
21
+ function n({
22
+ className: t,
23
+ ...a
24
+ }) {
25
+ return /* @__PURE__ */ e("tr", { "data-slot": "table-row", className: l("ttw:border-b ttw:transition-colors ttw:hover:bg-muted/50 ttw:data-[state=selected]:bg-muted", t), ...a });
26
+ }
27
+ function d({
28
+ className: t,
29
+ ...a
30
+ }) {
31
+ return /* @__PURE__ */ e("th", { "data-slot": "table-head", className: l("ttw:h-10 ttw:px-2 ttw:text-left ttw:align-middle ttw:font-medium ttw:whitespace-nowrap ttw:text-foreground ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
32
+ }
33
+ function b({
34
+ className: t,
35
+ ...a
36
+ }) {
37
+ return /* @__PURE__ */ e("td", { "data-slot": "table-cell", className: l("ttw:p-2 ttw:align-middle ttw:whitespace-nowrap ttw:[&:has([role=checkbox])]:pr-0 ttw:[&>[role=checkbox]]:translate-y-[2px]", t), ...a });
38
+ }
62
39
  export {
63
- q as User
40
+ r as Table,
41
+ c as TableBody,
42
+ b as TableCell,
43
+ d as TableHead,
44
+ w as TableHeader,
45
+ n as TableRow
64
46
  };
@@ -1,33 +1,22 @@
1
- import { jsx as t } from "@emotion/react/jsx-runtime";
2
- import { ROW_TO_STATUS_MUI_MAP as n, getRowToStatusTextMap as l, APPROVAL_STATUS_TO_MUI_ICON_MAP as u } from "./index275.js";
3
- import { useLingui as S } from "@lingui/react";
4
- import f from "@mui/icons-material/Circle";
5
- import { Chip as A } from "@mui/material";
6
- import { styled as _, useThemeProps as T } from "@mui/material/styles";
7
- const d = ({
8
- ref: s,
9
- ...a
10
- }) => {
1
+ import { useMoniteContext as n } from "./index57.js";
2
+ import { useLingui as s } from "@lingui/react";
3
+ import { toast as r } from "react-hot-toast";
4
+ const p = () => {
11
5
  const {
12
- status: o,
13
- icon: i,
14
- size: p,
15
- variant: e
16
- } = T({
17
- props: a,
18
- name: "MoniteApprovalStatusChip"
19
- }), {
20
- i18n: m
21
- } = S(), r = u[o];
22
- return /* @__PURE__ */ t(h, { className: "Monite-ApprovalStatusChip", ref: s, color: n[o], icon: i && r ? /* @__PURE__ */ t(r, { fontSize: "small" }) : /* @__PURE__ */ t(f, { sx: {
23
- fontSize: "10px"
24
- } }), label: l(m)[o], size: p, status: o, variant: e ?? "filled" });
25
- }, h = _(A, {
26
- name: "MoniteApprovalStatusChip",
27
- slot: "root",
28
- shouldForwardProp: () => !0
29
- })({});
6
+ i18n: e
7
+ } = s(), {
8
+ api: t,
9
+ queryClient: o
10
+ } = n();
11
+ return t.finops.deleteCounterpartsId.useMutation(void 0, {
12
+ onSuccess: async () => {
13
+ await t.finops.getCounterparts.invalidateQueries(o), r.success(e._("Counterpart has been deleted."));
14
+ },
15
+ onError: () => {
16
+ r.error(e._("Failed to delete Counterpart."));
17
+ }
18
+ });
19
+ };
30
20
  export {
31
- d as ApprovalStatusChip,
32
- h as StyledChip
21
+ p as useDeleteCounterpart
33
22
  };
@@ -1,116 +1,32 @@
1
- import { getSharedApprovalRuleLabel as c, getUsersFromListLabel as R } from "./index393.js";
2
- const d = {
3
- REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
4
- REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
5
- }, v = (e) => {
6
- switch (e) {
7
- case "approved":
8
- return "waiting_to_be_paid";
9
- case "rejected":
10
- return "rejected";
11
- case "canceled":
12
- return "canceled";
13
- default:
14
- return "approve_in_progress";
15
- }
16
- }, m = (e) => e.find((a) => a.call === d.REQUEST_APPROVAL_BY_USERS), q = (e) => e.find((a) => a.call === d.REQUEST_APPROVAL_BY_ROLES), f = (e, a, s = !1) => e.filter((r) => r.user_ids?.length ? s ? r.user_ids.some((t) => a.includes(t)) : a.every((t) => r.user_ids.includes(t)) : !1), b = (e, a, s) => {
17
- if (e?.params) {
18
- const {
19
- user_ids: r,
20
- required_approval_count: t
21
- } = e.params;
22
- return r?.length === 1 ? c.singleUser(s) : R(s, t);
23
- }
24
- return a?.params ? c.anyUserWithRole(s) : "";
25
- }, o = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(o) : e.if ? o(e.if) : [] : [], h = (e) => e.flatMap(o), j = (e) => {
26
- const a = [];
27
- if (e.all)
28
- a.push(...e.all);
29
- else if (e.if) {
30
- const s = e.if;
31
- s.all ? a.push(...s.all) : a.push(s);
32
- }
33
- return a;
34
- }, _ = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(_) : Array.isArray(e) ? e.flatMap(_) : [] : [], y = (e) => e.length === 0 || e.some((a) => a.status === "waiting") ? "waiting" : e.every((a) => a.status === "approved") ? "approved" : e.some((a) => a.status === "rejected") ? "rejected" : "waiting", E = (e, a, s) => ({
35
- stepNumber: a,
36
- type: s,
37
- assignee: void 0,
38
- assignees: e.assignees,
39
- status: e.stepStatus,
40
- payableStatus: v(e.stepStatus),
41
- actualAssignees: e.actualAssignees,
42
- hasActiveRequests: e.relatedRequests.length > 0,
43
- requestIds: e.relatedRequests.map((r) => r.id),
44
- approvalRequestId: e.approvalRequestId,
45
- approvedBy: e.approvedBy,
46
- objectId: e.objectId,
47
- rejectedBy: e.rejectedBy,
48
- requiredApprovalCount: e.requiredApprovalCount
49
- }), B = (e, a, s, r) => {
50
- const t = y(a);
51
- return {
52
- stepNumber: s,
53
- type: r,
54
- assignee: void 0,
55
- assignees: e,
56
- status: t,
57
- payableStatus: v(t),
58
- actualAssignees: e,
59
- hasActiveRequests: a.length > 0,
60
- requestIds: a.map((l) => l.id),
61
- approvalRequestId: a[0]?.id,
62
- approvedBy: a.flatMap((l) => l.approved_by || []),
63
- objectId: a[0]?.object_id,
64
- rejectedBy: a.find((l) => l.rejected_by)?.rejected_by,
65
- requiredApprovalCount: a.reduce((l, i) => l + i.required_approval_count, 0)
66
- };
67
- }, C = (e, a) => {
68
- const s = e.flatMap((t) => t.params?.user_ids || []), r = a.filter((t) => t.user_ids?.length && s.some((l) => t.user_ids.includes(l)));
69
- return {
70
- allChainUserIds: s,
71
- allChainRequests: r
72
- };
73
- }, I = (e) => {
74
- const a = [];
75
- if (e.all)
76
- a.push(...e.all);
77
- else if (e.if) {
78
- const s = e.if;
79
- s.all ? a.push(...s.all) : a.push(s);
80
- }
81
- return a;
82
- }, L = (e, a) => {
83
- const s = e.call === d.REQUEST_APPROVAL_BY_USERS ? e : void 0;
84
- let r = [];
85
- s?.params?.user_ids && (r = s.params.user_ids);
86
- const t = f(a, r, !0), l = t.flatMap((p) => p.user_ids || []), i = [...new Set(l)], A = t.length ? t[0].status : "waiting", u = t.find((p) => p.status !== "waiting"), S = t.flatMap((p) => p.approved_by || []), n = [...new Set(S)];
87
- return {
88
- assignees: r,
89
- actualAssignees: i,
90
- relatedRequests: t,
91
- stepStatus: A,
92
- approvalRequestId: u?.id,
93
- approvedBy: n.length > 0 ? n : void 0,
94
- objectId: u?.object_id || e.params?.object_id,
95
- rejectedBy: u?.rejected_by,
96
- requiredApprovalCount: e.params?.required_approval_count || u?.required_approval_count || 1
97
- };
1
+ import { useMoniteContext as s } from "./index57.js";
2
+ import { useLingui as i } from "@lingui/react";
3
+ import { toast as a } from "react-hot-toast";
4
+ import { getCounterpartName as p } from "./index7.js";
5
+ const f = () => {
6
+ const {
7
+ i18n: r
8
+ } = i(), {
9
+ api: t,
10
+ queryClient: o
11
+ } = s();
12
+ return t.finops.patchCounterpartsId.useMutation(void 0, {
13
+ onSuccess: async (e) => {
14
+ t.finops.getCounterpartsId.setQueryData({
15
+ path: {
16
+ counterpart_id: e.id
17
+ }
18
+ }, (n) => ({
19
+ ...n,
20
+ ...e
21
+ }), o), await t.finops.getCounterparts.invalidateQueries(o), a.success(r._("{name} has been updated.", {
22
+ name: p(e)
23
+ }));
24
+ },
25
+ onError: () => {
26
+ a.error(r._("Failed to update counterpart."));
27
+ }
28
+ });
98
29
  };
99
30
  export {
100
- d as APPROVAL_CALL_TYPES,
101
- y as calculateIntegralStatus,
102
- E as createBaseApprovalStep,
103
- B as createChainApprovalStep,
104
- o as extractApprovalCalls,
105
- _ as extractApprovalCallsForTable,
106
- I as extractItemsFromScriptStep,
107
- j as extractStructureItemsFromScriptStep,
108
- f as filterRequestsByUsers,
109
- q as findRoleApprovalCall,
110
- m as findUserApprovalCall,
111
- b as getApprovalRuleLabel,
112
- v as mapApprovalStatusToPayableStatus,
113
- h as processApprovalStructure,
114
- C as processChainApprovalCalls,
115
- L as resolveStepForCall
31
+ f as useUpdateCounterpart
116
32
  };
@@ -1,24 +1,44 @@
1
- import _ from "@mui/icons-material/Cancel";
2
- import t from "@mui/icons-material/HourglassEmpty";
3
- import a from "@mui/icons-material/PaidOutlined";
4
- const i = "search", s = "created_at", A = "created_by", E = {
5
- active: "success",
6
- deleted: "error",
7
- pending: "warning"
8
- }, n = (e) => ({
9
- active: e._("Active"),
10
- deleted: e._("Deleted"),
11
- pending: e._("Pending")
12
- }), o = {
13
- active: a,
14
- deleted: _,
15
- pending: t
1
+ import { useMoniteContext as n } from "./index57.js";
2
+ import { useLingui as i } from "@lingui/react";
3
+ import { toast as p } from "react-hot-toast";
4
+ const m = ({
5
+ counterpartId: e,
6
+ addressId: t
7
+ }) => {
8
+ const {
9
+ i18n: a
10
+ } = i(), {
11
+ api: r,
12
+ queryClient: s
13
+ } = n();
14
+ return r.finops.patchCounterpartsIdAddressesId.useMutation({
15
+ path: {
16
+ counterpart_id: e,
17
+ address_id: t
18
+ }
19
+ }, {
20
+ onSuccess: async (d) => {
21
+ r.finops.getCounterpartsIdAddressesId.setQueryData({
22
+ path: {
23
+ counterpart_id: e,
24
+ address_id: t
25
+ }
26
+ }, (o) => ({
27
+ ...o,
28
+ ...d
29
+ }), s), await r.finops.getCounterpartsIdAddresses.invalidateQueries({
30
+ parameters: {
31
+ path: {
32
+ counterpart_id: e
33
+ }
34
+ }
35
+ }, s);
36
+ },
37
+ onError: () => {
38
+ p.error(a._("Failed to update address."));
39
+ }
40
+ });
16
41
  };
17
42
  export {
18
- o as APPROVAL_STATUS_TO_MUI_ICON_MAP,
19
- s as FILTER_TYPE_CREATED_AT,
20
- A as FILTER_TYPE_CREATED_BY,
21
- i as FILTER_TYPE_SEARCH,
22
- E as ROW_TO_STATUS_MUI_MAP,
23
- n as getRowToStatusTextMap
43
+ m as useUpdateCounterpartAddress
24
44
  };