@tesouro/embedded-components-react 0.7.51 → 0.7.52

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 (306) hide show
  1. package/dist/index.css +0 -25
  2. package/dist/lib/monite-sdk.d.ts +2 -37
  3. package/dist/lib/monite-sdk.js +56 -59
  4. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +60 -63
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +36 -55
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +1 -12
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +102 -35
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +51 -101
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +25 -26
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +26 -26
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +150 -52
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +55 -1
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +2 -153
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +3 -55
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +1 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -2
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +10 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +56 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +38 -7
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +67 -49
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -38
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +11 -71
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +9 -37
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +65 -8
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +167 -8
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +6 -70
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -172
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +76 -7
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +0 -1
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +75 -72
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +32 -76
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +56 -33
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +44 -1
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +0 -57
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +564 -39
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +1 -569
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +159 -0
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +22 -155
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +10 -25
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +12 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +16 -10
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +19 -10
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +27 -16
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -21
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +23 -26
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +19 -1
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +68 -23
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +23 -15
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +6 -69
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +39 -23
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +48 -5
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +58 -39
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -51
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +27 -58
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +43 -1
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +78 -29
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -43
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +2 -80
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +52 -4
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +81 -2
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +119 -46
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +4 -78
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +10 -123
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +10 -5
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +18 -10
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +75 -10
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +1 -20
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +122 -70
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +11 -127
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +56 -1
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +5 -13
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +16 -53
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +0 -4
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +62 -18
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +122 -1
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +21 -62
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +6 -120
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +35 -21
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -6
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +54 -33
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +72 -7
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +25 -55
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -74
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +58 -25
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -1
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +19 -58
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +181 -17
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +1 -22
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +27 -180
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +2 -0
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +61 -29
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +34 -3
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +9 -61
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index20.js +0 -6
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +29 -29
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +42 -7
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -31
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +17 -44
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +3 -9
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +8 -16
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +10 -5
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +17 -9
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +9 -6
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -10
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index21.js +1 -1
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +2 -2
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +8 -6
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +34 -8
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +3 -3
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -32
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -4
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +19 -18
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +5 -16
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +111 -5
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +66 -20
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +1 -7
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +196 -110
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +1 -66
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +8 -1
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +9 -198
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +40 -1
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -4
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +8 -7
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +17 -38
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +7 -6
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +5 -10
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +358 -16
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -9
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +20 -5
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +85 -351
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +22 -1
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +16 -18
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +2 -93
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +179 -17
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +95 -13
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +1 -4
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +15 -181
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -97
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +53 -16
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +43 -38
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +1 -55
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +36 -43
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +21 -1
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +0 -38
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +161 -0
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +0 -20
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -1
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +56 -155
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +93 -1
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +45 -10
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +49 -61
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +82 -90
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +7 -45
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +304 -48
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +1 -85
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +30 -7
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -307
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -1
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +1 -32
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +22 -1
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +1 -29
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +159 -0
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +1 -22
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +37 -1
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +33 -157
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -1
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +101 -33
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +185 -32
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +132 -4
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +196 -90
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +11 -187
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +15 -132
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +29 -209
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -13
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +239 -14
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -31
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +36 -1
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +137 -237
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +164 -33
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +25 -142
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +19 -1
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +15 -162
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +8 -26
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +15 -16
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -9
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +21 -5
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +4 -14
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -18
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +8 -12
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +9 -8
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +0 -4
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +23 -13
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +11 -16
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +11 -9
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -23
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +14 -13
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +81 -9
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +14 -25
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +100 -14
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +42 -79
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +28 -14
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -102
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +101 -41
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +33 -24
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +173 -1
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +11 -103
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +4 -39
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +67 -170
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +21 -8
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +212 -4
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +89 -67
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +17 -25
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +147 -199
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +88 -76
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +44 -17
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +4 -160
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +20 -100
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +74 -43
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +19 -4
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +12 -14
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +5 -74
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +9 -16
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -20
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +129 -4
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +4 -8
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +6 -11
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +5 -133
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +219 -5
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +31 -5
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -5
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +33 -219
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +19 -31
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -10
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +180 -32
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +14 -20
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +202 -72
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +87 -169
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +64 -14
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +52 -201
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +84 -92
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +34 -57
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +74 -52
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +80 -87
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +12 -41
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +23 -76
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +17 -87
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +5 -14
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +22 -24
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +0 -16
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +43 -3
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +29 -21
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +4 -1
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +36 -46
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -29
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +31 -2
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +29 -34
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +2 -18
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +93 -29
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +8 -38
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +13 -8
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +6 -6
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +9 -15
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -8
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +3 -6
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +8 -1
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +1 -6
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +19 -6
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +32 -1
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +7 -16
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +69 -29
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +51 -9
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +1 -72
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +46 -51
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +13 -1
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +15 -46
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -13
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +45 -15
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +40 -1
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +63 -45
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +33 -37
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +36 -60
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +19 -31
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +12 -40
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +24 -21
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +53 -11
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +12 -27
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +23 -53
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +73 -11
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +79 -23
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -74
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +8 -80
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +29 -1
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +2 -8
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +16 -26
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +3 -2
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +2 -19
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +56 -3
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +12 -2
  302. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  303. package/package.json +1 -1
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +0 -31
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +0 -2
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +0 -97
@@ -1,93 +1,85 @@
1
- import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index94.js";
2
- import { isRoleApprovalCall as n } from "./index98.js";
3
- import "./index99.js";
1
+ import { User as e } from "./index72.js";
2
+ import "./index73.js";
3
+ import { PayableStatusChip as t } from "./index243.js";
4
+ import { useResolvedApprovalStepsWithPolicy as n } from "./index259.js";
5
+ import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
6
+ import { Box as a, CircularProgress as o, Paper as s, Stack as c, Table as l, TableBody as u, TableCell as d, TableRow as f, Typography as p } from "@mui/material";
7
+ import { useLingui as m } from "@lingui/react";
4
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js
5
- var r = {
6
- REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
7
- REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
8
- }, i = (e) => {
9
- switch (e) {
10
- case "approved": return "waiting_to_be_paid";
11
- case "rejected": return "rejected";
12
- case "canceled": return "canceled";
13
- default: return "approve_in_progress";
14
- }
15
- }, a = (e) => e.find((e) => e.call === r.REQUEST_APPROVAL_BY_USERS), o = (e) => e.find((e) => n(e.call)), s = (e, t, n = !1) => e.filter((e) => e.user_ids?.length ? n ? e.user_ids.some((e) => t.includes(e)) : t.every((t) => e.user_ids.includes(t)) : !1), c = (e, t) => e.filter((e) => e.role_ids?.some((e) => t.includes(e))), l = (n, r, i) => {
16
- if (n?.params) {
17
- let { user_ids: r, required_approval_count: a } = n.params;
18
- return r?.length === 1 ? e.singleUser(i) : t(i, a);
19
- }
20
- return r?.params ? e.anyUserWithRole(i) : "";
21
- }, u = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(u) : e.if ? u(e.if) : [] : [], d = (e) => e.flatMap(u), f = (e) => {
22
- let t = [];
23
- if (e.all) t.push(...e.all);
24
- else if (e.if) {
25
- let n = e.if;
26
- n.all ? t.push(...n.all) : t.push(n);
27
- }
28
- return t;
29
- }, p = (e) => e.length === 0 || e.some((e) => e.status === "waiting") ? "waiting" : e.every((e) => e.status === "approved") ? "approved" : e.some((e) => e.status === "rejected") ? "rejected" : "waiting", m = (e, t, n) => ({
30
- stepNumber: t,
31
- type: n,
32
- assignee: void 0,
33
- assignees: e.assignees,
34
- status: e.stepStatus,
35
- payableStatus: i(e.stepStatus),
36
- actualAssignees: e.actualAssignees,
37
- hasActiveRequests: e.relatedRequests.length > 0,
38
- requestIds: e.relatedRequests.map((e) => e.id),
39
- approvalRequestId: e.approvalRequestId,
40
- approvedBy: e.approvedBy,
41
- objectId: e.objectId,
42
- rejectedBy: e.rejectedBy,
43
- requiredApprovalCount: e.requiredApprovalCount
44
- }), h = (e, t, n, r) => {
45
- let a = p(t);
46
- return {
47
- stepNumber: n,
48
- type: r,
49
- assignee: void 0,
50
- assignees: e,
51
- status: a,
52
- payableStatus: i(a),
53
- actualAssignees: e,
54
- hasActiveRequests: t.length > 0,
55
- requestIds: t.map((e) => e.id),
56
- approvalRequestId: t[0]?.id,
57
- approvedBy: t.flatMap((e) => e.approved_by || []),
58
- objectId: t[0]?.object_id,
59
- rejectedBy: t.find((e) => e.rejected_by)?.rejected_by,
60
- requiredApprovalCount: t.reduce((e, t) => e + t.required_approval_count, 0)
61
- };
62
- }, g = (e, t) => {
63
- let n = e.flatMap((e) => e.params?.user_ids || []);
64
- return {
65
- allChainUserIds: n,
66
- allChainRequests: t.filter((e) => e.user_ids?.length && n.some((t) => e.user_ids.includes(t)))
67
- };
68
- }, _ = (e) => {
69
- let t = [];
70
- if (e.all) t.push(...e.all);
71
- else if (e.if) {
72
- let n = e.if;
73
- n.all ? t.push(...n.all) : t.push(n);
74
- }
75
- return t;
76
- }, v = (e, t) => {
77
- let i = e.call === r.REQUEST_APPROVAL_BY_USERS ? e : void 0, a = [];
78
- i?.params?.user_ids && (a = i.params.user_ids);
79
- let o = n(e.call) ? c(t, e.params?.role_ids ?? []) : s(t, a, !0), l = o.flatMap((e) => e.user_ids || []), u = [...new Set(l)], d = o.length ? o[0].status : "waiting", f = o.find((e) => e.status !== "waiting"), p = o.flatMap((e) => e.approved_by || []), m = [...new Set(p)];
80
- return {
81
- assignees: a,
82
- actualAssignees: u,
83
- relatedRequests: o,
84
- stepStatus: d,
85
- approvalRequestId: f?.id,
86
- approvedBy: m.length > 0 ? m : void 0,
87
- objectId: f?.object_id || e.params?.object_id,
88
- rejectedBy: f?.rejected_by,
89
- requiredApprovalCount: e.params?.required_approval_count || f?.required_approval_count || 1
90
- };
9
+ var h = ({ approvalPolicy: h, payableId: g, showUsersAsEmail: _ = !0 }) => {
10
+ let { i18n: v } = m(), { steps: y, isLoading: b } = n(g, h);
11
+ return b ? /* @__PURE__ */ r(a, {
12
+ sx: {
13
+ display: "flex",
14
+ justifyContent: "center",
15
+ p: 3
16
+ },
17
+ children: /* @__PURE__ */ r(o, { size: 20 })
18
+ }) : y.length ? /* @__PURE__ */ i(a, {
19
+ sx: { mt: 4 },
20
+ children: [/* @__PURE__ */ r(p, {
21
+ variant: "h6",
22
+ gutterBottom: !0,
23
+ sx: { fontWeight: 600 },
24
+ children: v._("Approval flow")
25
+ }), /* @__PURE__ */ r(s, {
26
+ variant: "outlined",
27
+ sx: { mt: 2 },
28
+ children: /* @__PURE__ */ r(l, {
29
+ sx: {
30
+ tableLayout: "fixed",
31
+ width: "100%"
32
+ },
33
+ children: /* @__PURE__ */ r(u, { children: y.map((n, a) => /* @__PURE__ */ i(f, { children: [
34
+ /* @__PURE__ */ r(d, {
35
+ sx: {
36
+ verticalAlign: "middle",
37
+ py: 2,
38
+ width: "160px"
39
+ },
40
+ children: /* @__PURE__ */ r(p, {
41
+ variant: "body2",
42
+ color: "text.primary",
43
+ sx: { fontWeight: "normal" },
44
+ children: n.type
45
+ })
46
+ }),
47
+ /* @__PURE__ */ r(d, {
48
+ sx: {
49
+ py: 2,
50
+ verticalAlign: "middle",
51
+ minWidth: "52px"
52
+ },
53
+ children: n.userNames.length > 0 ? /* @__PURE__ */ r(c, {
54
+ direction: "column",
55
+ spacing: .5,
56
+ sx: { overflow: "hidden" },
57
+ children: n.resolvedUsers.map((t) => t ? /* @__PURE__ */ r(e, {
58
+ user: t,
59
+ variant: "cell",
60
+ showUsersAsEmail: _,
61
+ showAvatar: !1
62
+ }, t.id) : null)
63
+ }) : /* @__PURE__ */ r(p, {
64
+ variant: "body2",
65
+ color: "text.secondary",
66
+ sx: { fontWeight: "medium" },
67
+ children: v._("No users assigned")
68
+ })
69
+ }),
70
+ /* @__PURE__ */ r(d, {
71
+ sx: {
72
+ py: 2,
73
+ textAlign: "right",
74
+ verticalAlign: "middle",
75
+ width: "140px"
76
+ },
77
+ children: /* @__PURE__ */ r(t, { status: n.payableStatus })
78
+ })
79
+ ] }, a)) })
80
+ })
81
+ })]
82
+ }) : null;
91
83
  };
92
84
  //#endregion
93
- export { r as APPROVAL_CALL_TYPES, p as calculateIntegralStatus, m as createBaseApprovalStep, h as createChainApprovalStep, u as extractApprovalCalls, _ as extractItemsFromScriptStep, f as extractStructureItemsFromScriptStep, c as filterRequestsByRoles, s as filterRequestsByUsers, o as findRoleApprovalCall, a as findUserApprovalCall, l as getApprovalRuleLabel, i as mapApprovalStatusToPayableStatus, d as processApprovalStructure, g as processChainApprovalCalls, v as resolveStepForCall };
85
+ export { h as PayableApprovalFlowSection };
@@ -1,47 +1,9 @@
1
- import { createBaseApprovalStep as e, createChainApprovalStep as t, extractApprovalCalls as n, extractItemsFromScriptStep as r, findRoleApprovalCall as i, findUserApprovalCall as a, getApprovalRuleLabel as o, processChainApprovalCalls as s, resolveStepForCall as c } from "./index260.js";
1
+ import { TableCell as e, styled as t } from "@mui/material";
2
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js
3
- var l = class {
4
- policyScript;
5
- requests;
6
- i18n;
7
- constructor(e, t, n) {
8
- this.policyScript = e, this.requests = t, this.i18n = n;
9
- }
10
- processApprovalItem(r, l) {
11
- let u = n(r), d = a(u), f = i(u), p = o(d, f, this.i18n);
12
- if (u.length > 1 && d) {
13
- let { allChainUserIds: e, allChainRequests: n } = s(u, this.requests), r = this.i18n._("All users from the list");
14
- return t(e, n, l, r);
15
- }
16
- {
17
- let t = u[0];
18
- if (t) {
19
- let n = c(t, this.requests);
20
- return e(n, l, p);
21
- }
22
- return e({
23
- assignees: [],
24
- actualAssignees: [],
25
- relatedRequests: [],
26
- stepStatus: "waiting",
27
- approvalRequestId: void 0,
28
- approvedBy: void 0,
29
- objectId: void 0,
30
- rejectedBy: void 0,
31
- requiredApprovalCount: 1
32
- }, l, p);
33
- }
34
- }
35
- buildCompleteSteps() {
36
- let e = [], t = 1;
37
- return this.policyScript.forEach((n) => {
38
- let i = r(n);
39
- i.length > 0 && (i.forEach((n) => {
40
- let r = this.processApprovalItem(n, t);
41
- e.push(r);
42
- }), t++);
43
- }), e;
44
- }
45
- };
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
+ }));
46
8
  //#endregion
47
- export { l as ApprovalStepResolver };
9
+ export { n as StyledLabelTableCell };
@@ -1,51 +1,307 @@
1
- import { useMoniteContext as e } from "./index45.js";
2
- import { extractStructureItemsFromScriptStep as t, findUserApprovalCall as n, processApprovalStructure as r } from "./index260.js";
3
- import { ApprovalStepResolver as i } from "./index261.js";
4
- import { useMemo as a } from "react";
5
- import { useLingui as o } from "@lingui/react";
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 "./index50.js";
5
+ import { useCounterpartContactList as i } from "./index51.js";
6
+ import { useEntityUserById as a } from "./index52.js";
7
+ import { useApprovalPolicyById as o } from "./index53.js";
8
+ import "./index61.js";
9
+ import { useCurrencies as s } from "./index74.js";
10
+ import { useOptionalFields as ee } from "./index75.js";
11
+ import { CenteredContentBox as c } from "./index63.js";
12
+ import "./index64.js";
13
+ import { MoniteScopedProviders as l } from "./index153.js";
14
+ import { classNames as u } from "./index183.js";
15
+ import { useGetPayableCounterpart as d } from "./index198.js";
16
+ import { usePayableDetailsThemeProps as te } from "./index199.js";
17
+ import { useLedgerAccounts as f } from "./index202.js";
18
+ import "./index217.js";
19
+ import { isFieldRequired as p } from "./index219.js";
20
+ import { isPayableInOCRProcessing as ne } from "./index238.js";
21
+ import { usePayableDetailsInfo as re } from "./index255.js";
22
+ import { UserDisplayCell as ie } from "./index256.js";
23
+ import { PayableApprovalFlowSection as ae } from "./index260.js";
24
+ import { StyledLabelTableCell as m } from "./index261.js";
25
+ import { useMemo as h } from "react";
26
+ import { Sparkles as g } from "lucide-react";
27
+ import { Fragment as _, jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
28
+ import { Box as b, Chip as oe, CircularProgress as x, Grid as S, Paper as C, Stack as w, Table as T, TableBody as E, TableCell as D, TableHead as O, 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";
6
33
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js
7
- function s(s, c, l = "desc") {
8
- let { i18n: u } = o(), { api: d } = e(), { data: f, isLoading: p } = d.finops.getApprovalRequests.useQuery({ query: {
9
- object_id: s,
10
- object_type: "payable",
11
- limit: 50,
12
- order: l
13
- } }), { data: m, isLoading: h } = d.finops.getApprovalPoliciesId.useQuery({ path: { approval_policy_id: c } }), g = a(() => f?.data || [], [f]), _ = a(() => m?.script || [], [m]), v = a(() => !_.length || !g ? [] : new i(_, g, u).buildCompleteSteps(), [
14
- _,
15
- g,
16
- u
17
- ]), y = a(() => {
18
- let e = /* @__PURE__ */ new Set();
19
- return _.forEach((i) => {
20
- let a = t(i), o = r(a), s = n(o);
21
- s?.params?.user_ids && s.params.user_ids.forEach((t) => e.add(t));
22
- }), v.forEach((t) => {
23
- t.actualAssignees.forEach((t) => e.add(t));
24
- }), Array.from(e);
25
- }, [_, v]), { data: b, isLoading: x } = d.finops.getEntityUsers.useQuery({ query: {
26
- id__in: y.length > 0 ? y : void 0,
27
- limit: 100
28
- } }, { enabled: y.length > 0 }), S = a(() => {
29
- let e = /* @__PURE__ */ new Map();
30
- return b?.data && b.data.forEach((t) => {
31
- e.set(t.id, t);
32
- }), e;
33
- }, [b]);
34
- return {
35
- steps: a(() => v.map((e) => ({
36
- ...e,
37
- resolvedUsers: e.actualAssignees.map((e) => S.get(e)),
38
- userNames: e.actualAssignees.map((e) => {
39
- let t = S.get(e);
40
- return t && (`${t.first_name || ""} ${t.last_name || ""}`.trim() || t.email || t.login) || e;
34
+ var F = N(b)(() => ({
35
+ pb: 6,
36
+ display: "flex",
37
+ flex: "1 1 auto",
38
+ overflow: "auto",
39
+ width: "100%",
40
+ height: 0
41
+ })), I = (e) => /* @__PURE__ */ v(l, { children: /* @__PURE__ */ v(L, { ...e }) }), L = ({ payable: r, enableGLCodes: l, ...g }) => {
42
+ let { i18n: x } = M(), { locale: A } = n(), { formatCurrencyToDisplay: N } = s(), { ocrRequiredFields: P, optionalFields: I } = te(g), { showInvoiceDate: L } = ee(I, { showInvoiceDate: !0 }), { counterpart: z, counterpartRawName: B, isCounterpartLoading: V, isCounterpartAIMatched: H, isCounterpartMatchingToOCRFound: U } = d({ payable: r }), { counterpartBankAccountQuery: W, lineItemsQuery: G } = re({
43
+ currentCounterpartId: z?.id,
44
+ payableId: r.id
45
+ }), { data: K } = f(l), 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 ? `${x._("GL code")}: ${n}` : void 0;
51
+ }, { data: le } = G, ue = le?.data, { data: q } = i(z?.id), { data: J } = a(r.was_created_by_user_id), { data: Y, isLoading: X } = o(r.approval_policy_id), de = !!Y?.id, Z = h(() => q?.find((e) => e.is_default), [q]), Q = h(() => W.data?.data.find((e) => e.id === r.counterpart_bank_account_id), [W, r]), $ = "Monite-PayableDetailsInfo";
52
+ return ne(r) ? /* @__PURE__ */ v(F, {
53
+ className: u(t, $, $ + "--ocr-processing"),
54
+ children: /* @__PURE__ */ v(c, { children: /* @__PURE__ */ y(b, {
55
+ textAlign: "center",
56
+ children: [
57
+ /* @__PURE__ */ v(se, {
58
+ color: "primary",
59
+ fontSize: "large"
60
+ }),
61
+ /* @__PURE__ */ v(j, {
62
+ variant: "h3",
63
+ mb: 2,
64
+ children: x._("File is being processed...")
65
+ }),
66
+ /* @__PURE__ */ v(j, {
67
+ variant: "body1",
68
+ children: x._("Hold on, we’re processing the file you’ve uploaded.")
69
+ }),
70
+ /* @__PURE__ */ v(j, {
71
+ variant: "body1",
72
+ children: x._("Usually it takes no more than 1–2 minutes.")
73
+ })
74
+ ]
75
+ }) })
76
+ }) : /* @__PURE__ */ v(F, {
77
+ className: u(t, $),
78
+ children: /* @__PURE__ */ y(S, {
79
+ container: !0,
80
+ spacing: 3,
81
+ children: [
82
+ /* @__PURE__ */ y(S, {
83
+ item: !0,
84
+ xs: 12,
85
+ className: $ + "-Details",
86
+ children: [/* @__PURE__ */ v(j, {
87
+ variant: "subtitle2",
88
+ mb: 2,
89
+ children: x._("Details")
90
+ }), /* @__PURE__ */ v(C, {
91
+ variant: "outlined",
92
+ children: /* @__PURE__ */ v(T, { children: /* @__PURE__ */ y(E, { children: [
93
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
94
+ isRequired: p("invoiceNumber", P, r?.document_id) && r?.ocr_status === null,
95
+ children: x._("Number")
96
+ }), /* @__PURE__ */ v(D, { children: r.document_id ?? "—" })] }),
97
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
98
+ isRequired: p("counterpartName", P) && r?.ocr_status === null,
99
+ children: x._("Vendor")
100
+ }), /* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(R, {
101
+ counterpart: z,
102
+ counterpartRawName: B,
103
+ isCounterpartAIMatched: H,
104
+ isCounterpartMatchingToOCRFound: U,
105
+ isCounterpartLoading: V
106
+ }) })] }),
107
+ Z && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
108
+ isRequired: p("contactPerson", P) && r?.ocr_status === null,
109
+ children: x._("Contact person")
110
+ }), /* @__PURE__ */ v(D, { children: `${Z.first_name} ${Z.last_name}` })] }),
111
+ Q && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
112
+ isRequired: p("counterpartBankAccount", P, Q?.name) && r?.ocr_status === null,
113
+ children: x._("Bank account")
114
+ }), /* @__PURE__ */ v(D, { children: Q.name })] }),
115
+ L && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
116
+ isRequired: p("issueDate", P) && r?.ocr_status === null,
117
+ children: x._("Issue date")
118
+ }), /* @__PURE__ */ v(D, { children: r.issued_at ? x.date(e(r.issued_at), A.dateFormat) : "—" })] }),
119
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
120
+ isRequired: p("dueDate", P, r.due_date) && r?.ocr_status === null,
121
+ children: x._("Due date")
122
+ }), /* @__PURE__ */ v(D, { children: r.due_date ? x.date(e(r.due_date), A.dateFormat) : "—" })] }),
123
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
124
+ isRequired: p("amount", P) && r?.ocr_status === null,
125
+ children: x._("Total")
126
+ }), /* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(b, {
127
+ sx: {
128
+ display: "flex",
129
+ justifyContent: "space-between"
130
+ },
131
+ children: /* @__PURE__ */ v(b, { children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—" })
132
+ }) })] }),
133
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
134
+ isRequired: p("appliedPolicy", P) && r?.ocr_status === null,
135
+ children: x._("Applied policy")
136
+ }), /* @__PURE__ */ v(D, { children: !X && Y?.name ? /* @__PURE__ */ y(b, {
137
+ sx: {
138
+ display: "flex",
139
+ alignItems: "center",
140
+ gap: 1
141
+ },
142
+ children: [/* @__PURE__ */ v("span", { children: Y.name }), (r.status === "waiting_to_be_paid" || r.status === "paid" || r.status === "partially_paid") && /* @__PURE__ */ v(oe, {
143
+ label: x._("Approved"),
144
+ color: "success",
145
+ size: "small"
146
+ })]
147
+ }) : !X && x._("no policy") })] })
148
+ ] }) })
149
+ })]
150
+ }),
151
+ de && Y && /* @__PURE__ */ v(S, {
152
+ item: !0,
153
+ xs: 12,
154
+ children: /* @__PURE__ */ v(ae, {
155
+ approvalPolicy: Y,
156
+ payableId: r.id,
157
+ currentStatus: r.status
158
+ })
159
+ }),
160
+ /* @__PURE__ */ y(S, {
161
+ item: !0,
162
+ xs: 12,
163
+ className: $ + "-Items",
164
+ children: [/* @__PURE__ */ v(j, {
165
+ variant: "subtitle2",
166
+ mb: 2,
167
+ children: x._("Items")
168
+ }), /* @__PURE__ */ v(C, {
169
+ variant: "outlined",
170
+ children: /* @__PURE__ */ y(T, { children: [/* @__PURE__ */ v(O, { children: /* @__PURE__ */ y(k, { children: [
171
+ /* @__PURE__ */ v(D, { children: x._("Name") }),
172
+ /* @__PURE__ */ v(D, { children: x._("Quantity") }),
173
+ /* @__PURE__ */ v(D, { children: x._("Price") }),
174
+ /* @__PURE__ */ v(D, {
175
+ align: "right",
176
+ children: x._("Total, tax")
177
+ })
178
+ ] }) }), /* @__PURE__ */ v(E, { children: ue?.map((e) => /* @__PURE__ */ y(k, { children: [
179
+ /* @__PURE__ */ v(D, { children: /* @__PURE__ */ y(w, { children: [/* @__PURE__ */ v(b, { children: e.name }), l && e.ledger_account_id && /* @__PURE__ */ v(j, {
180
+ variant: "body2",
181
+ color: "secondary.main",
182
+ children: ce(e.ledger_account_id)
183
+ })] }) }),
184
+ /* @__PURE__ */ v(D, { children: e.quantity }),
185
+ /* @__PURE__ */ v(D, { children: e.unit_price ? N(e.unit_price, r.currency ?? "USD") : "—" }),
186
+ /* @__PURE__ */ v(D, {
187
+ align: "right",
188
+ children: e.subtotal && r.currency ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(b, { children: N(e.subtotal ?? 0, r.currency) }), /* @__PURE__ */ y(b, {
189
+ sx: { color: "secondary.main" },
190
+ children: [
191
+ x._("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__ */ v(S, {
201
+ item: !0,
202
+ xs: 12,
203
+ className: $ + "-Totals",
204
+ children: /* @__PURE__ */ v(C, {
205
+ variant: "outlined",
206
+ children: /* @__PURE__ */ v(T, { children: /* @__PURE__ */ y(E, { children: [
207
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: x._("Subtotal") }), /* @__PURE__ */ v(D, {
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__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: x._("Discount") }), /* @__PURE__ */ v(D, {
212
+ align: "right",
213
+ children: N(r.discount ?? 0, r.currency)
214
+ })] }),
215
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: x._("Tax Total") }), /* @__PURE__ */ v(D, {
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__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(j, {
220
+ variant: "subtitle1",
221
+ children: x._("Total")
222
+ }) }), /* @__PURE__ */ v(D, {
223
+ align: "right",
224
+ children: /* @__PURE__ */ v(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__ */ y(S, {
233
+ item: !0,
234
+ xs: 12,
235
+ className: $ + "-History",
236
+ children: [/* @__PURE__ */ v(j, {
237
+ variant: "subtitle2",
238
+ mb: 2,
239
+ children: x._("History")
240
+ }), /* @__PURE__ */ v(C, {
241
+ variant: "outlined",
242
+ children: /* @__PURE__ */ v(T, { children: /* @__PURE__ */ y(E, { children: [
243
+ J && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
244
+ isRequired: p("addedByUser", P) && r?.ocr_status === null,
245
+ children: x._("Added by")
246
+ }), /* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(ie, {
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__ */ y(k, { children: [/* @__PURE__ */ v(m, {
258
+ isRequired: p("addedOn", P) && r?.ocr_status === null,
259
+ children: x._("Added on")
260
+ }), /* @__PURE__ */ v(D, { children: r.created_at ? x.date(r.created_at, {
261
+ dateStyle: "short",
262
+ timeStyle: "short"
263
+ }) : "—" })] }),
264
+ /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
265
+ isRequired: p("updatedOn", P) && r?.ocr_status === null,
266
+ children: x._("Last updated on")
267
+ }), /* @__PURE__ */ v(D, { children: r.updated_at ? x.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__ */ v(x, {
280
+ size: 14,
281
+ color: "secondary"
282
+ });
283
+ let s = r(e);
284
+ return s && !i ? /* @__PURE__ */ y(w, {
285
+ component: "span",
286
+ gap: 1,
287
+ direction: "row",
288
+ children: [s, n && /* @__PURE__ */ v(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__ */ v(g, { className: "ttw:text-blue-600" })
291
+ })]
292
+ }) : t ? /* @__PURE__ */ y(w, {
293
+ component: "span",
294
+ gap: 1,
295
+ direction: "row",
296
+ children: [t, /* @__PURE__ */ v(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__ */ v(P, {
299
+ color: "warning",
300
+ fontSize: "small",
301
+ sx: { alignSelf: "center" }
41
302
  })
42
- })), [v, S]),
43
- isLoading: p || h || x,
44
- error: null
45
- };
46
- }
47
- function c(e, t) {
48
- return s(e, t.id, "desc");
49
- }
303
+ })]
304
+ }) : /* @__PURE__ */ v(_, { children: "—" });
305
+ };
50
306
  //#endregion
51
- export { c as useResolvedApprovalStepsWithPolicy };
307
+ export { I as PayableDetailsInfo };