@tesouro/embedded-components-react 0.7.30 → 0.7.31

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 (220) hide show
  1. package/dist/lib/monite-sdk.d.ts +0 -1
  2. package/dist/lib/monite-sdk.js +40 -40
  3. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +41 -41
  4. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +55 -13
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -55
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -0
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -2
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +1 -0
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -2
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +53 -7
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +36 -51
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +71 -38
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -73
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -7
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +79 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -79
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +58 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +42 -56
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -44
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +568 -0
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -577
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +160 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -159
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +26 -0
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -26
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -1
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +16 -10
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +19 -16
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +27 -19
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -29
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +93 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +10 -91
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +2 -2
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +18 -10
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +73 -16
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -77
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +127 -0
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -127
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -1
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +54 -11
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -56
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -5
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +64 -1
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +120 -62
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -120
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +6 -21
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +35 -6
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -34
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +56 -7
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +69 -53
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +25 -71
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -28
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -1
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -57
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +19 -18
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +181 -18
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -185
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +31 -0
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -31
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +64 -3
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +31 -61
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -28
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -7
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +42 -29
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +11 -44
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +15 -9
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +4 -16
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +8 -4
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -9
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +12 -5
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -10
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -2
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -2
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +8 -6
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +32 -8
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +8 -32
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +3 -3
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +4 -4
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +20 -18
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -20
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +111 -4
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -110
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -66
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +199 -0
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -199
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +11 -1
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +38 -9
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +6 -38
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -5
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -6
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -17
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +5 -7
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +359 -5
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +1 -412
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -1
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +91 -18
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +18 -91
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +7 -9
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -18
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +182 -2
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -178
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -102
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +1 -1
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +55 -1
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +44 -53
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -46
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -1
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -21
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +161 -0
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -161
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +12 -1
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +61 -10
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -60
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +48 -44
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +82 -48
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +7 -83
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +305 -7
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -307
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -1
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +1 -32
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +29 -1
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +1 -29
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -1
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +160 -1
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -160
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +37 -1
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +33 -34
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +3 -33
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +102 -3
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +172 -88
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +116 -171
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +191 -114
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -209
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -11
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +28 -14
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +1 -31
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +241 -0
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -241
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -1
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +138 -32
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -142
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +166 -0
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +25 -166
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +19 -26
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +17 -16
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +5 -17
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -4
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +18 -12
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +9 -9
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +5 -21
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +13 -4
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -11
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -20
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +26 -8
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -23
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +8 -12
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -8
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -25
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -13
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +100 -14
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -98
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +27 -43
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +1 -30
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +105 -0
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +35 -102
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +166 -32
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +202 -163
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +87 -207
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +17 -90
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +158 -17
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +87 -143
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +42 -100
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -46
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +24 -4
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +73 -20
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -74
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -16
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -19
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +8 -4
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +11 -10
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +131 -11
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +4 -129
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +4 -4
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +5 -8
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +221 -4
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +31 -219
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +11 -31
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +34 -12
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +180 -32
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +14 -182
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +204 -14
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +88 -192
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +61 -97
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +54 -63
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +83 -46
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +40 -91
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +75 -39
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +71 -63
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +12 -85
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +24 -12
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -25
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -14
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -4
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -23
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +52 -0
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +32 -53
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +2 -30
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +34 -2
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -33
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +29 -14
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +27 -29
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +2 -31
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +97 -2
  218. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  219. package/package.json +1 -1
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +0 -97
@@ -1,9 +1,307 @@
1
- import { TableCell as e, styled as t } from "@mui/material";
1
+ import { dateStringToLocalDate as e } from "./index16.js";
2
+ import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
3
+ import { useMoniteContext as n } from "./index45.js";
4
+ import { getCounterpartName as r } from "./index53.js";
5
+ import { useCurrencies as i } from "./index63.js";
6
+ import { CenteredContentBox as a } from "./index124.js";
7
+ import "./index125.js";
8
+ import { MoniteScopedProviders as o } from "./index129.js";
9
+ import { useCounterpartContactList as s } from "./index138.js";
10
+ import { useEntityUserById as c } from "./index139.js";
11
+ import { useApprovalPolicyById as l } from "./index140.js";
12
+ import "./index148.js";
13
+ import { useOptionalFields as ee } from "./index163.js";
14
+ import { classNames as u } from "./index249.js";
15
+ import { useGetPayableCounterpart as te } from "./index264.js";
16
+ import { usePayableDetailsThemeProps as d } from "./index265.js";
17
+ import { useLedgerAccounts as ne } from "./index268.js";
18
+ import "./index283.js";
19
+ import { isFieldRequired as f } from "./index285.js";
20
+ import { isPayableInOCRProcessing as p } from "./index303.js";
21
+ import { usePayableDetailsInfo as m } from "./index315.js";
22
+ import { UserDisplayCell as re } from "./index316.js";
23
+ import { PayableApprovalFlowSection as ie } from "./index319.js";
24
+ import { StyledLabelTableCell as h } from "./index320.js";
25
+ import { useMemo as g } from "react";
26
+ import { Sparkles as _ } from "lucide-react";
27
+ import { Fragment as v, jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
28
+ import { Box as x, Chip as ae, CircularProgress as S, Grid as C, Paper as w, Stack as T, Table as E, TableBody as D, TableCell as O, TableHead as oe, TableRow as k, Tooltip as A, Typography as j } from "@mui/material";
29
+ import { useLingui as M } from "@lingui/react";
30
+ import { styled as N } from "@mui/material/styles";
31
+ import se from "@mui/icons-material/CachedOutlined";
32
+ import P from "@mui/icons-material/WarningAmberRounded";
2
33
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js
3
- var n = t(e)(({ theme: e, isRequired: t }) => ({
4
- color: t ? e.palette.error.main : e.palette.text.secondary,
5
- minWidth: 120,
6
- width: "35%"
7
- }));
34
+ var F = N(x)(() => ({
35
+ pb: 6,
36
+ display: "flex",
37
+ flex: "1 1 auto",
38
+ overflow: "auto",
39
+ width: "100%",
40
+ height: 0
41
+ })), I = (e) => /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y(L, { ...e }) }), L = ({ payable: r, enableGLCodes: o, ..._ }) => {
42
+ let { i18n: S } = M(), { locale: A } = n(), { formatCurrencyToDisplay: N } = i(), { ocrRequiredFields: P, optionalFields: I } = d(_), { showInvoiceDate: L } = ee(I, { showInvoiceDate: !0 }), { counterpart: z, counterpartRawName: B, isCounterpartLoading: V, isCounterpartAIMatched: H, isCounterpartMatchingToOCRFound: U } = te({ payable: r }), { counterpartBankAccountQuery: W, lineItemsQuery: G } = m({
43
+ currentCounterpartId: z?.id,
44
+ payableId: r.id
45
+ }), { data: K } = ne(o), ce = (e) => {
46
+ if (!e || !K?.data) return;
47
+ let t = K.data.find((t) => t.id === e);
48
+ if (!t) return;
49
+ let n = t.nominal_code && t.type ? `${t.nominal_code} — ${t.type}` : t.nominal_code ?? t.type ?? "";
50
+ return n ? `${S._("GL code")}: ${n}` : void 0;
51
+ }, { data: le } = G, ue = le?.data, { data: q } = s(z?.id), { data: J } = c(r.was_created_by_user_id), { data: Y, isLoading: X } = l(r.approval_policy_id), de = !!Y?.id, Z = g(() => q?.find((e) => e.is_default), [q]), Q = g(() => W.data?.data.find((e) => e.id === r.counterpart_bank_account_id), [W, r]), $ = "Monite-PayableDetailsInfo";
52
+ return p(r) ? /* @__PURE__ */ y(F, {
53
+ className: u(t, $, $ + "--ocr-processing"),
54
+ children: /* @__PURE__ */ y(a, { children: /* @__PURE__ */ b(x, {
55
+ textAlign: "center",
56
+ children: [
57
+ /* @__PURE__ */ y(se, {
58
+ color: "primary",
59
+ fontSize: "large"
60
+ }),
61
+ /* @__PURE__ */ y(j, {
62
+ variant: "h3",
63
+ mb: 2,
64
+ children: S._("File is being processed...")
65
+ }),
66
+ /* @__PURE__ */ y(j, {
67
+ variant: "body1",
68
+ children: S._("Hold on, we’re processing the file you’ve uploaded.")
69
+ }),
70
+ /* @__PURE__ */ y(j, {
71
+ variant: "body1",
72
+ children: S._("Usually it takes no more than 1–2 minutes.")
73
+ })
74
+ ]
75
+ }) })
76
+ }) : /* @__PURE__ */ y(F, {
77
+ className: u(t, $),
78
+ children: /* @__PURE__ */ b(C, {
79
+ container: !0,
80
+ spacing: 3,
81
+ children: [
82
+ /* @__PURE__ */ b(C, {
83
+ item: !0,
84
+ xs: 12,
85
+ className: $ + "-Details",
86
+ children: [/* @__PURE__ */ y(j, {
87
+ variant: "subtitle2",
88
+ mb: 2,
89
+ children: S._("Details")
90
+ }), /* @__PURE__ */ y(w, {
91
+ variant: "outlined",
92
+ children: /* @__PURE__ */ y(E, { children: /* @__PURE__ */ b(D, { children: [
93
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
94
+ isRequired: f("invoiceNumber", P, r?.document_id) && r?.ocr_status === null,
95
+ children: S._("Number")
96
+ }), /* @__PURE__ */ y(O, { children: r.document_id ?? "—" })] }),
97
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
98
+ isRequired: f("counterpartName", P) && r?.ocr_status === null,
99
+ children: S._("Vendor")
100
+ }), /* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(R, {
101
+ counterpart: z,
102
+ counterpartRawName: B,
103
+ isCounterpartAIMatched: H,
104
+ isCounterpartMatchingToOCRFound: U,
105
+ isCounterpartLoading: V
106
+ }) })] }),
107
+ Z && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
108
+ isRequired: f("contactPerson", P) && r?.ocr_status === null,
109
+ children: S._("Contact person")
110
+ }), /* @__PURE__ */ y(O, { children: `${Z.first_name} ${Z.last_name}` })] }),
111
+ Q && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
112
+ isRequired: f("counterpartBankAccount", P, Q?.name) && r?.ocr_status === null,
113
+ children: S._("Bank account")
114
+ }), /* @__PURE__ */ y(O, { children: Q.name })] }),
115
+ L && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
116
+ isRequired: f("issueDate", P) && r?.ocr_status === null,
117
+ children: S._("Issue date")
118
+ }), /* @__PURE__ */ y(O, { children: r.issued_at ? S.date(e(r.issued_at), A.dateFormat) : "—" })] }),
119
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
120
+ isRequired: f("dueDate", P, r.due_date) && r?.ocr_status === null,
121
+ children: S._("Due date")
122
+ }), /* @__PURE__ */ y(O, { children: r.due_date ? S.date(e(r.due_date), A.dateFormat) : "—" })] }),
123
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
124
+ isRequired: f("amount", P) && r?.ocr_status === null,
125
+ children: S._("Total")
126
+ }), /* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(x, {
127
+ sx: {
128
+ display: "flex",
129
+ justifyContent: "space-between"
130
+ },
131
+ children: /* @__PURE__ */ y(x, { children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—" })
132
+ }) })] }),
133
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
134
+ isRequired: f("appliedPolicy", P) && r?.ocr_status === null,
135
+ children: S._("Applied policy")
136
+ }), /* @__PURE__ */ y(O, { children: !X && Y?.name ? /* @__PURE__ */ b(x, {
137
+ sx: {
138
+ display: "flex",
139
+ alignItems: "center",
140
+ gap: 1
141
+ },
142
+ children: [/* @__PURE__ */ y("span", { children: Y.name }), (r.status === "waiting_to_be_paid" || r.status === "paid" || r.status === "partially_paid") && /* @__PURE__ */ y(ae, {
143
+ label: S._("Approved"),
144
+ color: "success",
145
+ size: "small"
146
+ })]
147
+ }) : !X && S._("no policy") })] })
148
+ ] }) })
149
+ })]
150
+ }),
151
+ de && Y && /* @__PURE__ */ y(C, {
152
+ item: !0,
153
+ xs: 12,
154
+ children: /* @__PURE__ */ y(ie, {
155
+ approvalPolicy: Y,
156
+ payableId: r.id,
157
+ currentStatus: r.status
158
+ })
159
+ }),
160
+ /* @__PURE__ */ b(C, {
161
+ item: !0,
162
+ xs: 12,
163
+ className: $ + "-Items",
164
+ children: [/* @__PURE__ */ y(j, {
165
+ variant: "subtitle2",
166
+ mb: 2,
167
+ children: S._("Items")
168
+ }), /* @__PURE__ */ y(w, {
169
+ variant: "outlined",
170
+ children: /* @__PURE__ */ b(E, { children: [/* @__PURE__ */ y(oe, { children: /* @__PURE__ */ b(k, { children: [
171
+ /* @__PURE__ */ y(O, { children: S._("Name") }),
172
+ /* @__PURE__ */ y(O, { children: S._("Quantity") }),
173
+ /* @__PURE__ */ y(O, { children: S._("Price") }),
174
+ /* @__PURE__ */ y(O, {
175
+ align: "right",
176
+ children: S._("Total, tax")
177
+ })
178
+ ] }) }), /* @__PURE__ */ y(D, { children: ue?.map((e) => /* @__PURE__ */ b(k, { children: [
179
+ /* @__PURE__ */ y(O, { children: /* @__PURE__ */ b(T, { children: [/* @__PURE__ */ y(x, { children: e.name }), o && e.ledger_account_id && /* @__PURE__ */ y(j, {
180
+ variant: "body2",
181
+ color: "secondary.main",
182
+ children: ce(e.ledger_account_id)
183
+ })] }) }),
184
+ /* @__PURE__ */ y(O, { children: e.quantity }),
185
+ /* @__PURE__ */ y(O, { children: e.unit_price ? N(e.unit_price, r.currency ?? "USD") : "—" }),
186
+ /* @__PURE__ */ y(O, {
187
+ align: "right",
188
+ children: e.subtotal && r.currency ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(x, { children: N(e.subtotal ?? 0, r.currency) }), /* @__PURE__ */ b(x, {
189
+ sx: { color: "secondary.main" },
190
+ children: [
191
+ S._("excl. Tax"),
192
+ " ",
193
+ `${e.tax ? (e.tax / 100).toFixed(0) : 0}%`
194
+ ]
195
+ })] }) : r.currency ? N(0, r.currency) : "—"
196
+ })
197
+ ] }, e.id)) })] })
198
+ })]
199
+ }),
200
+ /* @__PURE__ */ y(C, {
201
+ item: !0,
202
+ xs: 12,
203
+ className: $ + "-Totals",
204
+ children: /* @__PURE__ */ y(w, {
205
+ variant: "outlined",
206
+ children: /* @__PURE__ */ y(E, { children: /* @__PURE__ */ b(D, { children: [
207
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: S._("Subtotal") }), /* @__PURE__ */ y(O, {
208
+ align: "right",
209
+ children: r.subtotal && r.currency ? N(r.subtotal, r.currency) : r.currency ? N(0, r.currency) : "—"
210
+ })] }),
211
+ !!r.discount && r.currency && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: S._("Discount") }), /* @__PURE__ */ y(O, {
212
+ align: "right",
213
+ children: N(r.discount ?? 0, r.currency)
214
+ })] }),
215
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: S._("Tax Total") }), /* @__PURE__ */ y(O, {
216
+ align: "right",
217
+ children: r.tax_amount && r.currency ? N(r.tax_amount, r.currency) : r.currency ? N(0, r.currency) : "—"
218
+ })] }),
219
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(j, {
220
+ variant: "subtitle1",
221
+ children: S._("Total")
222
+ }) }), /* @__PURE__ */ y(O, {
223
+ align: "right",
224
+ children: /* @__PURE__ */ y(j, {
225
+ variant: "subtitle1",
226
+ children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—"
227
+ })
228
+ })] })
229
+ ] }) })
230
+ })
231
+ }),
232
+ /* @__PURE__ */ b(C, {
233
+ item: !0,
234
+ xs: 12,
235
+ className: $ + "-History",
236
+ children: [/* @__PURE__ */ y(j, {
237
+ variant: "subtitle2",
238
+ mb: 2,
239
+ children: S._("History")
240
+ }), /* @__PURE__ */ y(w, {
241
+ variant: "outlined",
242
+ children: /* @__PURE__ */ y(E, { children: /* @__PURE__ */ b(D, { children: [
243
+ J && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
244
+ isRequired: f("addedByUser", P) && r?.ocr_status === null,
245
+ children: S._("Added by")
246
+ }), /* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(re, {
247
+ user: {
248
+ id: J.id,
249
+ first_name: J.first_name,
250
+ last_name: J.last_name,
251
+ userpic_file_id: J.userpic_file_id
252
+ },
253
+ showAvatar: !0,
254
+ avatarSize: 24,
255
+ typographyVariant: "body2"
256
+ }) })] }),
257
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
258
+ isRequired: f("addedOn", P) && r?.ocr_status === null,
259
+ children: S._("Added on")
260
+ }), /* @__PURE__ */ y(O, { children: r.created_at ? S.date(r.created_at, {
261
+ dateStyle: "short",
262
+ timeStyle: "short"
263
+ }) : "—" })] }),
264
+ /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
265
+ isRequired: f("updatedOn", P) && r?.ocr_status === null,
266
+ children: S._("Last updated on")
267
+ }), /* @__PURE__ */ y(O, { children: r.updated_at ? S.date(r.updated_at, {
268
+ dateStyle: "short",
269
+ timeStyle: "short"
270
+ }) : "—" })] })
271
+ ] }) })
272
+ })]
273
+ })
274
+ ]
275
+ })
276
+ });
277
+ }, R = ({ counterpart: e, counterpartRawName: t, isCounterpartAIMatched: n, isCounterpartMatchingToOCRFound: i, isCounterpartLoading: a }) => {
278
+ let { i18n: o } = M();
279
+ if (a) return /* @__PURE__ */ y(S, {
280
+ size: 14,
281
+ color: "secondary"
282
+ });
283
+ let s = r(e);
284
+ return s && !i ? /* @__PURE__ */ b(T, {
285
+ component: "span",
286
+ gap: 1,
287
+ direction: "row",
288
+ children: [s, n && /* @__PURE__ */ y(A, {
289
+ title: o._("Vendor auto-matched by AI. The vendor name on the bill doesn’t exactly match the saved vendor, so AI selected the closest option."),
290
+ children: /* @__PURE__ */ y(_, { className: "ttw:text-blue-600" })
291
+ })]
292
+ }) : t ? /* @__PURE__ */ b(T, {
293
+ component: "span",
294
+ gap: 1,
295
+ direction: "row",
296
+ children: [t, /* @__PURE__ */ y(A, {
297
+ title: i ? o._("The vendor details in the bill don’t fully match the saved vendor.") : o._("The specified vendor has not been saved yet."),
298
+ children: /* @__PURE__ */ y(P, {
299
+ color: "warning",
300
+ fontSize: "small",
301
+ sx: { alignSelf: "center" }
302
+ })
303
+ })]
304
+ }) : /* @__PURE__ */ y(v, { children: "—" });
305
+ };
8
306
  //#endregion
9
- export { n as StyledLabelTableCell };
307
+ export { I as PayableDetailsInfo };
@@ -1,307 +1 @@
1
- import { dateStringToLocalDate as e } from "./index16.js";
2
- import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
3
- import { useMoniteContext as n } from "./index45.js";
4
- import { getCounterpartName as r } from "./index53.js";
5
- import { useCurrencies as i } from "./index63.js";
6
- import { CenteredContentBox as a } from "./index124.js";
7
- import "./index125.js";
8
- import { MoniteScopedProviders as o } from "./index129.js";
9
- import { useCounterpartContactList as s } from "./index138.js";
10
- import { useEntityUserById as c } from "./index139.js";
11
- import { useApprovalPolicyById as l } from "./index140.js";
12
- import "./index148.js";
13
- import { useOptionalFields as ee } from "./index163.js";
14
- import { classNames as u } from "./index250.js";
15
- import { useGetPayableCounterpart as te } from "./index265.js";
16
- import { usePayableDetailsThemeProps as d } from "./index266.js";
17
- import { useLedgerAccounts as ne } from "./index269.js";
18
- import "./index284.js";
19
- import { isFieldRequired as f } from "./index286.js";
20
- import { isPayableInOCRProcessing as p } from "./index304.js";
21
- import { usePayableDetailsInfo as m } from "./index316.js";
22
- import { UserDisplayCell as re } from "./index317.js";
23
- import { PayableApprovalFlowSection as ie } from "./index320.js";
24
- import { StyledLabelTableCell as h } from "./index321.js";
25
- import { useMemo as g } from "react";
26
- import { Sparkles as _ } from "lucide-react";
27
- import { Fragment as v, jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
28
- import { Box as x, Chip as ae, CircularProgress as S, Grid as C, Paper as w, Stack as T, Table as E, TableBody as D, TableCell as O, TableHead as oe, TableRow as k, Tooltip as A, Typography as j } from "@mui/material";
29
- import { useLingui as M } from "@lingui/react";
30
- import { styled as N } from "@mui/material/styles";
31
- import se from "@mui/icons-material/CachedOutlined";
32
- import P from "@mui/icons-material/WarningAmberRounded";
33
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js
34
- var F = N(x)(() => ({
35
- pb: 6,
36
- display: "flex",
37
- flex: "1 1 auto",
38
- overflow: "auto",
39
- width: "100%",
40
- height: 0
41
- })), I = (e) => /* @__PURE__ */ y(o, { children: /* @__PURE__ */ y(L, { ...e }) }), L = ({ payable: r, enableGLCodes: o, ..._ }) => {
42
- let { i18n: S } = M(), { locale: A } = n(), { formatCurrencyToDisplay: N } = i(), { ocrRequiredFields: P, optionalFields: I } = d(_), { showInvoiceDate: L } = ee(I, { showInvoiceDate: !0 }), { counterpart: z, counterpartRawName: B, isCounterpartLoading: V, isCounterpartAIMatched: H, isCounterpartMatchingToOCRFound: U } = te({ payable: r }), { counterpartBankAccountQuery: W, lineItemsQuery: G } = m({
43
- currentCounterpartId: z?.id,
44
- payableId: r.id
45
- }), { data: K } = ne(o), ce = (e) => {
46
- if (!e || !K?.data) return;
47
- let t = K.data.find((t) => t.id === e);
48
- if (!t) return;
49
- let n = t.nominal_code && t.type ? `${t.nominal_code} — ${t.type}` : t.nominal_code ?? t.type ?? "";
50
- return n ? `${S._("GL code")}: ${n}` : void 0;
51
- }, { data: le } = G, ue = le?.data, { data: q } = s(z?.id), { data: J } = c(r.was_created_by_user_id), { data: Y, isLoading: X } = l(r.approval_policy_id), de = !!Y?.id, Z = g(() => q?.find((e) => e.is_default), [q]), Q = g(() => W.data?.data.find((e) => e.id === r.counterpart_bank_account_id), [W, r]), $ = "Monite-PayableDetailsInfo";
52
- return p(r) ? /* @__PURE__ */ y(F, {
53
- className: u(t, $, $ + "--ocr-processing"),
54
- children: /* @__PURE__ */ y(a, { children: /* @__PURE__ */ b(x, {
55
- textAlign: "center",
56
- children: [
57
- /* @__PURE__ */ y(se, {
58
- color: "primary",
59
- fontSize: "large"
60
- }),
61
- /* @__PURE__ */ y(j, {
62
- variant: "h3",
63
- mb: 2,
64
- children: S._("File is being processed...")
65
- }),
66
- /* @__PURE__ */ y(j, {
67
- variant: "body1",
68
- children: S._("Hold on, we’re processing the file you’ve uploaded.")
69
- }),
70
- /* @__PURE__ */ y(j, {
71
- variant: "body1",
72
- children: S._("Usually it takes no more than 1–2 minutes.")
73
- })
74
- ]
75
- }) })
76
- }) : /* @__PURE__ */ y(F, {
77
- className: u(t, $),
78
- children: /* @__PURE__ */ b(C, {
79
- container: !0,
80
- spacing: 3,
81
- children: [
82
- /* @__PURE__ */ b(C, {
83
- item: !0,
84
- xs: 12,
85
- className: $ + "-Details",
86
- children: [/* @__PURE__ */ y(j, {
87
- variant: "subtitle2",
88
- mb: 2,
89
- children: S._("Details")
90
- }), /* @__PURE__ */ y(w, {
91
- variant: "outlined",
92
- children: /* @__PURE__ */ y(E, { children: /* @__PURE__ */ b(D, { children: [
93
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
94
- isRequired: f("invoiceNumber", P, r?.document_id) && r?.ocr_status === null,
95
- children: S._("Number")
96
- }), /* @__PURE__ */ y(O, { children: r.document_id ?? "—" })] }),
97
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
98
- isRequired: f("counterpartName", P) && r?.ocr_status === null,
99
- children: S._("Vendor")
100
- }), /* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(R, {
101
- counterpart: z,
102
- counterpartRawName: B,
103
- isCounterpartAIMatched: H,
104
- isCounterpartMatchingToOCRFound: U,
105
- isCounterpartLoading: V
106
- }) })] }),
107
- Z && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
108
- isRequired: f("contactPerson", P) && r?.ocr_status === null,
109
- children: S._("Contact person")
110
- }), /* @__PURE__ */ y(O, { children: `${Z.first_name} ${Z.last_name}` })] }),
111
- Q && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
112
- isRequired: f("counterpartBankAccount", P, Q?.name) && r?.ocr_status === null,
113
- children: S._("Bank account")
114
- }), /* @__PURE__ */ y(O, { children: Q.name })] }),
115
- L && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
116
- isRequired: f("issueDate", P) && r?.ocr_status === null,
117
- children: S._("Issue date")
118
- }), /* @__PURE__ */ y(O, { children: r.issued_at ? S.date(e(r.issued_at), A.dateFormat) : "—" })] }),
119
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
120
- isRequired: f("dueDate", P, r.due_date) && r?.ocr_status === null,
121
- children: S._("Due date")
122
- }), /* @__PURE__ */ y(O, { children: r.due_date ? S.date(e(r.due_date), A.dateFormat) : "—" })] }),
123
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
124
- isRequired: f("amount", P) && r?.ocr_status === null,
125
- children: S._("Total")
126
- }), /* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(x, {
127
- sx: {
128
- display: "flex",
129
- justifyContent: "space-between"
130
- },
131
- children: /* @__PURE__ */ y(x, { children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—" })
132
- }) })] }),
133
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
134
- isRequired: f("appliedPolicy", P) && r?.ocr_status === null,
135
- children: S._("Applied policy")
136
- }), /* @__PURE__ */ y(O, { children: !X && Y?.name ? /* @__PURE__ */ b(x, {
137
- sx: {
138
- display: "flex",
139
- alignItems: "center",
140
- gap: 1
141
- },
142
- children: [/* @__PURE__ */ y("span", { children: Y.name }), (r.status === "waiting_to_be_paid" || r.status === "paid" || r.status === "partially_paid") && /* @__PURE__ */ y(ae, {
143
- label: S._("Approved"),
144
- color: "success",
145
- size: "small"
146
- })]
147
- }) : !X && S._("no policy") })] })
148
- ] }) })
149
- })]
150
- }),
151
- de && Y && /* @__PURE__ */ y(C, {
152
- item: !0,
153
- xs: 12,
154
- children: /* @__PURE__ */ y(ie, {
155
- approvalPolicy: Y,
156
- payableId: r.id,
157
- currentStatus: r.status
158
- })
159
- }),
160
- /* @__PURE__ */ b(C, {
161
- item: !0,
162
- xs: 12,
163
- className: $ + "-Items",
164
- children: [/* @__PURE__ */ y(j, {
165
- variant: "subtitle2",
166
- mb: 2,
167
- children: S._("Items")
168
- }), /* @__PURE__ */ y(w, {
169
- variant: "outlined",
170
- children: /* @__PURE__ */ b(E, { children: [/* @__PURE__ */ y(oe, { children: /* @__PURE__ */ b(k, { children: [
171
- /* @__PURE__ */ y(O, { children: S._("Name") }),
172
- /* @__PURE__ */ y(O, { children: S._("Quantity") }),
173
- /* @__PURE__ */ y(O, { children: S._("Price") }),
174
- /* @__PURE__ */ y(O, {
175
- align: "right",
176
- children: S._("Total, tax")
177
- })
178
- ] }) }), /* @__PURE__ */ y(D, { children: ue?.map((e) => /* @__PURE__ */ b(k, { children: [
179
- /* @__PURE__ */ y(O, { children: /* @__PURE__ */ b(T, { children: [/* @__PURE__ */ y(x, { children: e.name }), o && e.ledger_account_id && /* @__PURE__ */ y(j, {
180
- variant: "body2",
181
- color: "secondary.main",
182
- children: ce(e.ledger_account_id)
183
- })] }) }),
184
- /* @__PURE__ */ y(O, { children: e.quantity }),
185
- /* @__PURE__ */ y(O, { children: e.unit_price ? N(e.unit_price, r.currency ?? "USD") : "—" }),
186
- /* @__PURE__ */ y(O, {
187
- align: "right",
188
- children: e.subtotal && r.currency ? /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(x, { children: N(e.subtotal ?? 0, r.currency) }), /* @__PURE__ */ b(x, {
189
- sx: { color: "secondary.main" },
190
- children: [
191
- S._("excl. Tax"),
192
- " ",
193
- `${e.tax ? (e.tax / 100).toFixed(0) : 0}%`
194
- ]
195
- })] }) : r.currency ? N(0, r.currency) : "—"
196
- })
197
- ] }, e.id)) })] })
198
- })]
199
- }),
200
- /* @__PURE__ */ y(C, {
201
- item: !0,
202
- xs: 12,
203
- className: $ + "-Totals",
204
- children: /* @__PURE__ */ y(w, {
205
- variant: "outlined",
206
- children: /* @__PURE__ */ y(E, { children: /* @__PURE__ */ b(D, { children: [
207
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: S._("Subtotal") }), /* @__PURE__ */ y(O, {
208
- align: "right",
209
- children: r.subtotal && r.currency ? N(r.subtotal, r.currency) : r.currency ? N(0, r.currency) : "—"
210
- })] }),
211
- !!r.discount && r.currency && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: S._("Discount") }), /* @__PURE__ */ y(O, {
212
- align: "right",
213
- children: N(r.discount ?? 0, r.currency)
214
- })] }),
215
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: S._("Tax Total") }), /* @__PURE__ */ y(O, {
216
- align: "right",
217
- children: r.tax_amount && r.currency ? N(r.tax_amount, r.currency) : r.currency ? N(0, r.currency) : "—"
218
- })] }),
219
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(j, {
220
- variant: "subtitle1",
221
- children: S._("Total")
222
- }) }), /* @__PURE__ */ y(O, {
223
- align: "right",
224
- children: /* @__PURE__ */ y(j, {
225
- variant: "subtitle1",
226
- children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—"
227
- })
228
- })] })
229
- ] }) })
230
- })
231
- }),
232
- /* @__PURE__ */ b(C, {
233
- item: !0,
234
- xs: 12,
235
- className: $ + "-History",
236
- children: [/* @__PURE__ */ y(j, {
237
- variant: "subtitle2",
238
- mb: 2,
239
- children: S._("History")
240
- }), /* @__PURE__ */ y(w, {
241
- variant: "outlined",
242
- children: /* @__PURE__ */ y(E, { children: /* @__PURE__ */ b(D, { children: [
243
- J && /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
244
- isRequired: f("addedByUser", P) && r?.ocr_status === null,
245
- children: S._("Added by")
246
- }), /* @__PURE__ */ y(O, { children: /* @__PURE__ */ y(re, {
247
- user: {
248
- id: J.id,
249
- first_name: J.first_name,
250
- last_name: J.last_name,
251
- userpic_file_id: J.userpic_file_id
252
- },
253
- showAvatar: !0,
254
- avatarSize: 24,
255
- typographyVariant: "body2"
256
- }) })] }),
257
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
258
- isRequired: f("addedOn", P) && r?.ocr_status === null,
259
- children: S._("Added on")
260
- }), /* @__PURE__ */ y(O, { children: r.created_at ? S.date(r.created_at, {
261
- dateStyle: "short",
262
- timeStyle: "short"
263
- }) : "—" })] }),
264
- /* @__PURE__ */ b(k, { children: [/* @__PURE__ */ y(h, {
265
- isRequired: f("updatedOn", P) && r?.ocr_status === null,
266
- children: S._("Last updated on")
267
- }), /* @__PURE__ */ y(O, { children: r.updated_at ? S.date(r.updated_at, {
268
- dateStyle: "short",
269
- timeStyle: "short"
270
- }) : "—" })] })
271
- ] }) })
272
- })]
273
- })
274
- ]
275
- })
276
- });
277
- }, R = ({ counterpart: e, counterpartRawName: t, isCounterpartAIMatched: n, isCounterpartMatchingToOCRFound: i, isCounterpartLoading: a }) => {
278
- let { i18n: o } = M();
279
- if (a) return /* @__PURE__ */ y(S, {
280
- size: 14,
281
- color: "secondary"
282
- });
283
- let s = r(e);
284
- return s && !i ? /* @__PURE__ */ b(T, {
285
- component: "span",
286
- gap: 1,
287
- direction: "row",
288
- children: [s, n && /* @__PURE__ */ y(A, {
289
- title: o._("Vendor auto-matched by AI. The vendor name on the bill doesn’t exactly match the saved vendor, so AI selected the closest option."),
290
- children: /* @__PURE__ */ y(_, { className: "ttw:text-blue-600" })
291
- })]
292
- }) : t ? /* @__PURE__ */ b(T, {
293
- component: "span",
294
- gap: 1,
295
- direction: "row",
296
- children: [t, /* @__PURE__ */ y(A, {
297
- title: i ? o._("The vendor details in the bill don’t fully match the saved vendor.") : o._("The specified vendor has not been saved yet."),
298
- children: /* @__PURE__ */ y(P, {
299
- color: "warning",
300
- fontSize: "small",
301
- sx: { alignSelf: "center" }
302
- })
303
- })]
304
- }) : /* @__PURE__ */ y(v, { children: "—" });
305
- };
306
- //#endregion
307
- export { I as PayableDetailsInfo };
1
+ import "./index321.js";
@@ -1 +1,32 @@
1
- import "./index322.js";
1
+ import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
2
+ import { Box as n, Typography as r } from "@mui/material";
3
+ import { useLingui as i } from "@lingui/react";
4
+ import a from "@mui/icons-material/AttachFile";
5
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js
6
+ var o = () => {
7
+ let { i18n: o } = i();
8
+ return /* @__PURE__ */ e(n, {
9
+ className: "Monite-PayableDetailsNoAttachedFile",
10
+ sx: {
11
+ width: "100%",
12
+ height: "100%",
13
+ display: "flex",
14
+ flexDirection: "column",
15
+ justifyContent: "center",
16
+ textAlign: "center"
17
+ },
18
+ children: /* @__PURE__ */ t(n, {
19
+ sx: { margin: "auto" },
20
+ children: [/* @__PURE__ */ e(a, {
21
+ color: "primary",
22
+ fontSize: "large",
23
+ sx: { marginBottom: 2 }
24
+ }), /* @__PURE__ */ e(r, {
25
+ color: "secondary",
26
+ children: o._("This invoice doesn’t have a file attached.")
27
+ })]
28
+ })
29
+ });
30
+ };
31
+ //#endregion
32
+ export { o as PayableDetailsNoAttachedFile };