@tesouro/embedded-components-react 0.7.58 → 0.7.60

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 (252) hide show
  1. package/README.md +2 -3
  2. package/dist/index.css +0 -15
  3. package/dist/lib/monite-sdk.d.ts +5 -261
  4. package/dist/lib/monite-sdk.js +46 -52
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +50 -57
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +176 -1
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +48 -48
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -1
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +3 -153
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -1224
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +2 -176
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +7 -5
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +53 -15
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +41 -5
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +69 -51
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +41 -2
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +14 -3
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +13 -1
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +71 -2
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +170 -8
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +6 -56
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -41
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +65 -70
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +1 -41
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +77 -12
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +1 -13
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +32 -68
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +1 -172
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +57 -6
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +44 -2
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +1 -76
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +568 -0
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +0 -78
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +156 -31
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +24 -55
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -44
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +12 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +10 -567
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +12 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +18 -1
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +16 -155
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +29 -1
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +0 -26
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +26 -1
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +17 -10
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +69 -10
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +25 -10
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +4 -14
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +41 -19
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +49 -27
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +62 -1
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +1 -26
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +27 -15
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +40 -68
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +78 -25
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +4 -8
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -43
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +49 -48
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +75 -56
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +113 -1
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +5 -29
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -41
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +10 -78
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +20 -4
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +77 -2
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +1 -52
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +125 -77
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -113
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +11 -5
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +54 -10
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +5 -12
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +16 -17
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +1 -77
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +64 -1
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +117 -124
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +24 -1
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -11
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +29 -54
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -5
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +54 -15
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +75 -1
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +26 -62
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +1 -122
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +59 -22
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +19 -6
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -35
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +184 -7
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +1 -58
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +29 -72
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +3 -28
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +35 -57
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -21
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +17 -20
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +16 -182
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +8 -1
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +15 -29
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +24 -3
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +24 -1
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +5 -36
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +8 -1
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +14 -16
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +8 -8
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +9 -8
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +23 -14
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -20
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +8 -21
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +24 -5
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +14 -6
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +81 -15
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +14 -18
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +102 -9
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +42 -23
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -12
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +1 -11
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +101 -22
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +37 -14
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +171 -81
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +12 -14
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -102
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +67 -43
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +24 -27
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +212 -1
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -8
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +87 -101
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -37
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -173
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +17 -12
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +160 -4
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +101 -67
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +43 -24
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -212
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +20 -88
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +75 -20
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +19 -1
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +20 -17
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +5 -157
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -101
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +11 -44
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +133 -4
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -21
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -74
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +5 -19
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +217 -17
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +31 -5
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +11 -9
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +34 -11
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +19 -130
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +73 -5
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +181 -5
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +16 -5
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +196 -212
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +99 -31
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +63 -11
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +53 -32
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +91 -19
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +39 -72
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +72 -177
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +85 -14
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -204
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +22 -98
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -66
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -57
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +20 -90
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -43
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +22 -79
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +28 -83
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -12
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +20 -23
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +18 -17
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +33 -5
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +29 -22
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +2 -1
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +0 -5
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +825 -55
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index35.js +20 -930
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +68 -26
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +5 -68
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +6 -5
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +5 -6
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +22 -4
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +6 -14
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +6 -15
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -44
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +23 -14
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +8 -5
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +10 -4
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -33
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +7 -6
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -11
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +4 -6
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +7 -11
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -8
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +18 -6
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +32 -1
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +9 -3
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +70 -6
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +54 -1
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +1 -21
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +19 -30
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +47 -10
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +15 -69
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index64.js +1 -54
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +47 -0
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +64 -19
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +31 -44
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +40 -11
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +21 -15
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +14 -1
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +12 -43
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +53 -37
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +10 -66
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +23 -33
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +69 -37
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +78 -20
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -14
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +8 -15
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +25 -52
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +4 -12
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +16 -23
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +3 -72
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +2 -82
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +57 -0
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +10 -8
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +35 -25
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +1 -4
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +103 -16
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +1 -5
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +56 -2
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +0 -57
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +53 -10
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index93.js +1 -39
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +55 -1
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index95.js +0 -105
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +16 -1
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +15 -54
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +153 -1
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1222 -53
  243. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  244. package/package.json +1 -1
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +0 -22
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -32
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -4
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -36
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +0 -18
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +0 -33
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +0 -31
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +0 -2
@@ -1,56 +1,29 @@
1
- import { useEffect as e, useState as t } from "react";
1
+ import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index78.js";
2
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js
3
3
  var n = {
4
- sm: 640,
5
- md: 768,
6
- lg: 1024,
7
- xl: 1280,
8
- "2xl": 1536
4
+ SINGLE_USER: "single_user",
5
+ USERS_FROM_LIST: "users_from_list",
6
+ ROLES_FROM_LIST: "roles_from_list",
7
+ APPROVAL_CHAIN: "approval_chain"
8
+ }, r = {
9
+ REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
10
+ REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
11
+ }, i = (e, t) => {
12
+ switch (e) {
13
+ case n.SINGLE_USER: return t._("Single user");
14
+ case n.USERS_FROM_LIST: return t._("Users from the list");
15
+ case n.ROLES_FROM_LIST: return t._("Roles from the list");
16
+ case n.APPROVAL_CHAIN: return t._("Approval chain");
17
+ default: return;
18
+ }
19
+ }, a = (r, i, a) => {
20
+ switch (r) {
21
+ case n.SINGLE_USER: return e.singleUser(i);
22
+ case n.USERS_FROM_LIST: return t(i, a);
23
+ case n.ROLES_FROM_LIST: return e.anyUserWithRole(i);
24
+ case n.APPROVAL_CHAIN: return e.allUsersFromList(i);
25
+ default: return;
26
+ }
9
27
  };
10
- function r(r) {
11
- let [i, a] = t(!1);
12
- return e(() => {
13
- let e;
14
- e = r in n ? `(min-width: ${n[r]}px)` : r;
15
- let t = window.matchMedia(e);
16
- a(t.matches);
17
- let i = (e) => {
18
- a(e.matches);
19
- };
20
- return t.addEventListener("change", i), () => {
21
- t.removeEventListener("change", i);
22
- };
23
- }, [r]), i;
24
- }
25
- var i = () => l("md"), a = () => {
26
- let e = r("md"), t = r("lg");
27
- return e && !t;
28
- }, o = () => r("lg"), s = () => r("xl"), c = () => r("2xl");
29
- function l(r) {
30
- let [i, a] = t(!1);
31
- return e(() => {
32
- let e = `(max-width: ${n[r] - 1}px)`, t = window.matchMedia(e);
33
- a(t.matches);
34
- let i = (e) => {
35
- a(e.matches);
36
- };
37
- return t.addEventListener("change", i), () => {
38
- t.removeEventListener("change", i);
39
- };
40
- }, [r]), i;
41
- }
42
- function u(r) {
43
- let [i, a] = t(!1);
44
- return e(() => {
45
- let e = `(min-width: ${n[r] + 1}px)`, t = window.matchMedia(e);
46
- a(t.matches);
47
- let i = (e) => {
48
- a(e.matches);
49
- };
50
- return t.addEventListener("change", i), () => {
51
- t.removeEventListener("change", i);
52
- };
53
- }, [r]), i;
54
- }
55
28
  //#endregion
56
- export { n as breakpoints, o as useIsDesktopScreen, c as useIsExtraLargeDesktopScreen, s as useIsLargeDesktopScreen, u as useIsLargerThan, i as useIsMobileScreen, l as useIsSmallerThan, a as useIsTabletScreen, r as useMediaQuery };
29
+ export { n as APPROVAL_POLICY_RULE_TYPES, r as APPROVAL_REQUEST_CALLS, a as getRuleLabel, i as getRuleName };
@@ -1,12 +1,4 @@
1
- import "./index20.js";
2
- import "./index67.js";
3
- import "./index68.js";
4
- import "./index71.js";
5
- import "./index72.js";
6
- import "./index73.js";
7
- import "./index74.js";
8
- import "./index75.js";
9
- import "./index76.js";
10
- import "./index77.js";
11
- import "./index78.js";
12
- import "./index79.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js
2
+ var e = (e) => typeof e == "object" && !!e, t = (n) => Array.isArray(n) ? n.flatMap(t) : e(n) ? n.call && e(n.params) ? [n] : Array.isArray(n.all) ? n.all.flatMap(t) : [] : [];
3
+ //#endregion
4
+ export { t as extractApprovalCallsForTable };
@@ -1,26 +1,19 @@
1
+ import e from "@mui/icons-material/Cancel";
2
+ import t from "@mui/icons-material/HourglassEmpty";
3
+ import n from "@mui/icons-material/PaidOutlined";
1
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js
2
- var e = {
3
- WAS_CREATED_BY_USER_ID: "was_created_by_user_id",
4
- COUNTERPART_ID: "counterpart_id",
5
- AMOUNT: "amount",
6
- CURRENCY: "currency"
7
- }, t = (t) => Object.values(e).includes(t), n = {
8
- IN: "in",
9
- EQUALS: "==",
10
- GREATER_THAN: ">",
11
- LESS_THAN: "<",
12
- GREATER_THAN_OR_EQUAL: ">=",
13
- LESS_THAN_OR_EQUAL: "<=",
14
- RANGE: "range"
15
- }, r = (e) => Object.values(n).includes(e), i = (e) => e.replace("invoice.", ""), a = (e) => e.operator === n.IN && typeof e.left_operand == "string" && typeof e.right_operand == "object" && e.right_operand && "name" in e.right_operand, o = (e) => !!e.left_operand && typeof e.left_operand == "object" && "name" in e.left_operand, s = (e) => a(e) ? {
16
- key: i(e.right_operand.name),
17
- value: e.left_operand
18
- } : o(e) ? {
19
- key: i(e.left_operand?.name),
20
- value: e.right_operand
21
- } : {
22
- key: null,
23
- value: null
5
+ var r = "search", i = "created_at", a = "created_by", o = ["ApprovalRequests.request_approval_by_roles", "ApprovalRequests.request_approval_by_role"], s = {
6
+ active: "success",
7
+ deleted: "error",
8
+ pending: "warning"
9
+ }, c = (e) => ({
10
+ active: e._("Active"),
11
+ deleted: e._("Deleted"),
12
+ pending: e._("Pending")
13
+ }), l = {
14
+ active: n,
15
+ deleted: e,
16
+ pending: t
24
17
  };
25
18
  //#endregion
26
- export { e as NAMED_VALUES, n as OPERATOR_OPERATIONS, i as extractFieldName, s as getTriggerKeyAndValue, r as isValidOperation, t as isValidTriggerKey };
19
+ export { l as APPROVAL_STATUS_TO_MUI_ICON_MAP, i as FILTER_TYPE_CREATED_AT, a as FILTER_TYPE_CREATED_BY, r as FILTER_TYPE_SEARCH, o as ROLE_APPROVAL_CALLS, s as ROW_TO_STATUS_MUI_MAP, c as getRowToStatusTextMap };
@@ -1,74 +1,5 @@
1
- import { useCurrencies as e } from "./index67.js";
2
- import "./index80.js";
3
- import { OPERATOR_OPERATIONS as t, getTriggerKeyAndValue as n, isValidOperation as r, isValidTriggerKey as i } from "./index81.js";
4
- import { useLingui as a } from "@lingui/react";
1
+ import { ROLE_APPROVAL_CALLS as e } from "./index81.js";
5
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js
6
- var o = ({ approvalPolicy: o }) => {
7
- let { i18n: s } = a(), { formatCurrencyToDisplay: c } = e(), l = (e) => {
8
- switch (e) {
9
- case "amount": return s._("Amount");
10
- case "was_created_by_user_id": return s._("Created by user");
11
- case "counterpart_id": return s._("Vendors");
12
- default: return e;
13
- }
14
- }, u = (e) => {
15
- switch (e) {
16
- case "amount": return s._("Amount");
17
- case "was_created_by_user_id": return s._("Created by");
18
- case "counterpart_id": return s._("Vendors");
19
- default: return e;
20
- }
21
- }, d = (e, n) => {
22
- let r = c(e[0][1], n);
23
- if (e.length === 1) switch (e[0][0]) {
24
- case t.GREATER_THAN: return s._("Greater than {formattedValue}", { formattedValue: r });
25
- case t.GREATER_THAN_OR_EQUAL: return s._("Greater than or equal to {formattedValue}", { formattedValue: r });
26
- case t.LESS_THAN: return s._("Less than {formattedValue}", { formattedValue: r });
27
- case t.LESS_THAN_OR_EQUAL: return s._("Less than or equal to {formattedValue}", { formattedValue: r });
28
- case t.EQUALS: return s._("Equal to {formattedValue}", { formattedValue: r });
29
- default: return r;
30
- }
31
- if (e.length === 2) {
32
- let r = e.find((e) => e[0] === t.GREATER_THAN_OR_EQUAL), i = e.find((e) => e[0] === t.LESS_THAN_OR_EQUAL);
33
- if (r && i) return s._("{from} - {to}", {
34
- from: c(r[1], n),
35
- to: c(i[1], n)
36
- });
37
- }
38
- return r;
39
- };
40
- return ((e) => !!(e && typeof e == "object" && "all" in e && Array.isArray(e.all)))(o?.trigger) ? {
41
- triggers: o.trigger?.all?.reduce((e, t) => {
42
- if (typeof t == "string" || !t.operator || !t.left_operand || t.right_operand == null) return e;
43
- let { key: a, value: o } = n(t);
44
- if (!a || o == null || !i(a)) return e;
45
- switch (a) {
46
- case "amount":
47
- (typeof o == "string" || typeof o == "number") && r(t.operator) && (e.amount ||= {
48
- currency: "EUR",
49
- value: []
50
- }, e.amount.value.push([t.operator, o]));
51
- break;
52
- case "currency":
53
- e.amount ? e.amount.currency = o : e.amount = {
54
- value: [],
55
- currency: o
56
- };
57
- break;
58
- case "counterpart_id":
59
- case "was_created_by_user_id": Array.isArray(o) && (e[a] = o);
60
- }
61
- return e;
62
- }, {}),
63
- getTriggerName: l,
64
- getTriggerLabel: u,
65
- getAmountLabel: d
66
- } : {
67
- triggers: {},
68
- getTriggerName: l,
69
- getTriggerLabel: u,
70
- getAmountLabel: d
71
- };
72
- };
3
+ var t = (t) => typeof t == "string" && e.includes(t);
73
4
  //#endregion
74
- export { o as useApprovalPolicyTrigger };
5
+ export { t as isRoleApprovalCall };
@@ -1,82 +1,2 @@
1
- import { useApprovalPolicyTrigger as e } from "./index82.js";
2
- import { User as t } from "./index64.js";
3
- import "./index65.js";
4
- import { useMemo as n } from "react";
5
- import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
6
- import { Button as a, Chip as o, IconButton as s, Paper as c, Stack as l, Table as u, TableBody as d, TableCell as f, TableHead as p, TableRow as m } from "@mui/material";
7
- import { useLingui as h } from "@lingui/react";
8
- import g from "@mui/icons-material/AddCircleOutline";
9
- import _ from "@mui/icons-material/Delete";
10
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js
11
- var v = ({ triggers: v, onAddTrigger: y, onEditTrigger: b, onDeleteTrigger: x }) => {
12
- let { i18n: S } = h(), { getTriggerLabel: C, getAmountLabel: w } = e({}), T = n(() => Object.keys(v).map((e) => {
13
- let n = C(e), i;
14
- switch (e) {
15
- case "was_created_by_user_id":
16
- i = /* @__PURE__ */ r(l, {
17
- direction: "row",
18
- gap: 1,
19
- sx: { flexWrap: "wrap" },
20
- children: v.was_created_by_user_id?.map((e) => /* @__PURE__ */ r(t, { userId: e.id }, e.id))
21
- });
22
- break;
23
- case "counterpart_id":
24
- i = /* @__PURE__ */ r(l, {
25
- direction: "row",
26
- gap: 1,
27
- sx: { flexWrap: "wrap" },
28
- children: v.counterpart_id?.map((e) => /* @__PURE__ */ r(o, { label: e.label }, e.id))
29
- });
30
- break;
31
- case "amount":
32
- i = /* @__PURE__ */ r("p", { children: w(v.amount?.value ?? [], v.amount?.currency ?? "EUR") });
33
- break;
34
- default: i = e;
35
- }
36
- return {
37
- key: e,
38
- label: n,
39
- value: i
40
- };
41
- }), [
42
- v,
43
- C,
44
- w
45
- ]);
46
- return /* @__PURE__ */ r(c, {
47
- variant: "outlined",
48
- children: /* @__PURE__ */ i(u, { children: [/* @__PURE__ */ r(p, { children: /* @__PURE__ */ i(m, { children: [
49
- /* @__PURE__ */ r(f, { children: S._("Condition") }),
50
- /* @__PURE__ */ r(f, { children: S._("Criteria") }),
51
- /* @__PURE__ */ r(f, {})
52
- ] }) }), /* @__PURE__ */ i(d, { children: [T.length > 0 ? T.map((e) => /* @__PURE__ */ i(m, {
53
- hover: !0,
54
- sx: { "&.MuiTableRow-root": { cursor: "pointer" } },
55
- onClick: () => b(e.key),
56
- children: [
57
- /* @__PURE__ */ r(f, { children: e.label }),
58
- /* @__PURE__ */ r(f, { children: e.value }),
59
- /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(s, {
60
- "aria-label": S._("Delete trigger"),
61
- onClick: (t) => {
62
- t.stopPropagation(), x(e.key);
63
- },
64
- children: /* @__PURE__ */ r(_, {})
65
- }) })
66
- ]
67
- }, e.label)) : /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
68
- colSpan: 3,
69
- children: S._("No conditions")
70
- }) }), /* @__PURE__ */ r(m, { children: /* @__PURE__ */ r(f, {
71
- colSpan: 3,
72
- children: /* @__PURE__ */ r(a, {
73
- startIcon: /* @__PURE__ */ r(g, {}),
74
- onClick: y,
75
- disabled: !!(v?.was_created_by_user_id?.length && v?.counterpart_id?.length && v?.amount?.value?.length),
76
- children: S._("Add new condition")
77
- })
78
- }) })] })] })
79
- });
80
- };
81
- //#endregion
82
- export { v as ConditionsTable };
1
+ import "./index82.js";
2
+ import "./index80.js";
@@ -1 +1,58 @@
1
+ import { APPROVAL_REQUEST_CALLS as e, getRuleLabel as t, getRuleName as n } from "./index79.js";
2
+ import { isRoleApprovalCall as r } from "./index82.js";
1
3
  import "./index83.js";
4
+ import { useLingui as i } from "@lingui/react";
5
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js
6
+ var a = ({ approvalPolicy: a }) => {
7
+ let { i18n: o } = i(), s = (t) => {
8
+ if (typeof t != "object" || !t || !("call" in t) || typeof t.call != "string" || t.call !== e.REQUEST_APPROVAL_BY_USERS && !r(t.call) || !("params" in t) || typeof t.params != "object" || t.params === null) return !1;
9
+ let n = t.params;
10
+ return !("user_ids" in n && !Array.isArray(n.user_ids) || "role_ids" in n && !Array.isArray(n.role_ids) || !("required_approval_count" in n) || typeof n.required_approval_count != "number");
11
+ }, c = (e) => typeof e != "object" || !e || !("run_concurrently" in e) || typeof e.run_concurrently != "boolean" || !("all" in e) || !Array.isArray(e.all) ? !1 : e.all.every((e) => s(e) || c(e)), l = (e) => {
12
+ if (!Array.isArray(e) || e.length !== 1) return !1;
13
+ let [t] = e;
14
+ if (typeof t != "object" || !t || !("if" in t) || !("then" in t) || !("else" in t)) return !1;
15
+ let { if: n, then: r, else: i } = t;
16
+ if (typeof n != "object" || !n || !("run_concurrently" in n) || !("all" in n)) return !1;
17
+ let { run_concurrently: a, all: o } = n;
18
+ return typeof a != "boolean" || !Array.isArray(o) || !Array.isArray(r) || !Array.isArray(i) ? !1 : o.every((e) => s(e) || c(e));
19
+ }, u = (t) => t.call === e.REQUEST_APPROVAL_BY_USERS && Array.isArray(t.params.user_ids) && t.params.user_ids.length === 1 && t.params.required_approval_count === 1, d = (t) => t.call === e.REQUEST_APPROVAL_BY_USERS && Array.isArray(t.params.user_ids) && t.params.user_ids.length > 1 && t.params.required_approval_count > 0, f = (e) => r(e.call) && Array.isArray(e.params.role_ids) && e.params.role_ids.length >= 1 && e.params.required_approval_count > 0, p = (e) => !e.run_concurrently && e.all.length > 1 && e.all.every((e) => s(e) && u(e)), m = (e) => n(e, o), h = (e, n) => t(e, o, n);
20
+ return l(a?.script) ? {
21
+ rules: a?.script[0].if.all.reduce((e, t) => {
22
+ if (c(t)) {
23
+ if (p(t)) return {
24
+ ...e,
25
+ approval_chain: { chainUserIds: t.all.reduce((e, t) => s(t) && u(t) && t.params.user_ids[0] && t.params.user_ids[0] ? [...e, t.params.user_ids[0]] : e, []) }
26
+ };
27
+ } else if (s(t)) {
28
+ if (u(t)) return {
29
+ ...e,
30
+ single_user: { userId: t.params.user_ids[0] }
31
+ };
32
+ if (d(t)) return {
33
+ ...e,
34
+ users_from_list: {
35
+ userIds: t.params.user_ids,
36
+ count: t.params.required_approval_count
37
+ }
38
+ };
39
+ if (f(t)) return {
40
+ ...e,
41
+ roles_from_list: {
42
+ roleIds: t.params.role_ids,
43
+ count: t.params.required_approval_count
44
+ }
45
+ };
46
+ }
47
+ return e;
48
+ }, {}),
49
+ getRuleName: m,
50
+ getRuleLabel: h
51
+ } : {
52
+ rules: void 0,
53
+ getRuleName: m,
54
+ getRuleLabel: h
55
+ };
56
+ };
57
+ //#endregion
58
+ export { a as useApprovalPolicyScript };
@@ -1,10 +1,12 @@
1
+ import { createElement as e } from "react";
1
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js
2
- var e = {
3
- singleUser: (e) => e._("Single user"),
4
- anyUserFromList: (e) => e._("Any user from the list"),
5
- anyUsersFromList: (e, t) => e._("Any {count} users from the list", { count: t.toString() }),
6
- anyUserWithRole: (e) => e._("Any user with role"),
7
- allUsersFromList: (e) => e._("All users from list, one by one")
8
- }, t = (t, n = 0) => n === 1 ? e.anyUserFromList(t) : e.anyUsersFromList(t, n);
3
+ var t = ({ color: t = "currentColor", size: n, ...r }) => e("svg", {
4
+ xmlns: "http://www.w3.org/2000/svg",
5
+ width: n,
6
+ height: n,
7
+ viewBox: "0 0 24 24",
8
+ fill: t,
9
+ ...r
10
+ }, e("path", { d: "M14.81,12.28a3.73,3.73,0,0,0,1-2.5,3.78,3.78,0,0,0-7.56,0,3.73,3.73,0,0,0,1,2.5A5.94,5.94,0,0,0,6,16.89a1,1,0,0,0,2,.22,4,4,0,0,1,7.94,0A1,1,0,0,0,17,18h.11a1,1,0,0,0,.88-1.1A5.94,5.94,0,0,0,14.81,12.28ZM12,11.56a1.78,1.78,0,1,1,1.78-1.78A1.78,1.78,0,0,1,12,11.56ZM19,2H5A3,3,0,0,0,2,5V19a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2Zm1,17a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V5A1,1,0,0,1,5,4H19a1,1,0,0,1,1,1Z" }));
9
11
  //#endregion
10
- export { e as getSharedApprovalRuleLabel, t as getUsersFromListLabel };
12
+ export { t as UUserSquare };
@@ -1,29 +1,39 @@
1
- import { getSharedApprovalRuleLabel as e, getUsersFromListLabel as t } from "./index85.js";
1
+ import { useMoniteContext as e } from "./index36.js";
2
+ import { Badge as t } from "./index56.js";
3
+ import { Skeleton as n } from "./index57.js";
4
+ import { getVariantProps as r } from "./index58.js";
5
+ import { UUserSquare as i } from "./index85.js";
6
+ import { jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
2
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js
3
- var n = {
4
- SINGLE_USER: "single_user",
5
- USERS_FROM_LIST: "users_from_list",
6
- ROLES_FROM_LIST: "roles_from_list",
7
- APPROVAL_CHAIN: "approval_chain"
8
- }, r = {
9
- REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
10
- REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
11
- }, i = (e, t) => {
12
- switch (e) {
13
- case n.SINGLE_USER: return t._("Single user");
14
- case n.USERS_FROM_LIST: return t._("Users from the list");
15
- case n.ROLES_FROM_LIST: return t._("Roles from the list");
16
- case n.APPROVAL_CHAIN: return t._("Approval chain");
17
- default: return;
18
- }
19
- }, a = (r, i, a) => {
20
- switch (r) {
21
- case n.SINGLE_USER: return e.singleUser(i);
22
- case n.USERS_FROM_LIST: return t(i, a);
23
- case n.ROLES_FROM_LIST: return e.anyUserWithRole(i);
24
- case n.APPROVAL_CHAIN: return e.allUsersFromList(i);
25
- default: return;
8
+ var s = ({ roleId: s, variant: c = "default", quoted: l = !1, roleData: u }) => {
9
+ let { api: d } = e(), { data: f, isLoading: p, isError: m } = d.finops.getRolesId.useQuery({ path: { role_id: s } }, { enabled: !u }), h = u ?? f, g = !u && p;
10
+ if (!h && !g && m && s) {
11
+ let { badgeVariant: e, className: n } = r({
12
+ variant: c,
13
+ isError: !0,
14
+ componentType: "role"
15
+ });
16
+ return /* @__PURE__ */ a(t, {
17
+ variant: e,
18
+ className: n,
19
+ children: "N/A"
20
+ });
26
21
  }
22
+ if (!h && !g || !h) return null;
23
+ let { badgeVariant: _, className: v, showIcon: y } = r({
24
+ variant: c,
25
+ isError: !1,
26
+ componentType: "role"
27
+ });
28
+ return /* @__PURE__ */ o(t, {
29
+ variant: _,
30
+ className: v,
31
+ children: [y && /* @__PURE__ */ a(i, {
32
+ width: 24,
33
+ height: 24,
34
+ className: c === "default" ? "ttw:text-[rgb(97,97,97)] ttw:!w-6 ttw:!h-6 ttw:flex-shrink-0" : "ttw:!w-6 ttw:!h-6 ttw:flex-shrink-0"
35
+ }), g ? /* @__PURE__ */ a(n, { className: "ttw:h-4 ttw:w-20" }) : l ? `"${h.name}"` : h.name]
36
+ });
27
37
  };
28
38
  //#endregion
29
- export { n as APPROVAL_POLICY_RULE_TYPES, r as APPROVAL_REQUEST_CALLS, a as getRuleLabel, i as getRuleName };
39
+ export { s as Role };
@@ -1,4 +1 @@
1
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js
2
- var e = (e) => typeof e == "object" && !!e, t = (n) => Array.isArray(n) ? n.flatMap(t) : e(n) ? n.call && e(n.params) ? [n] : Array.isArray(n.all) ? n.all.flatMap(t) : [] : [];
3
- //#endregion
4
- export { t as extractApprovalCallsForTable };
1
+ import "./index86.js";
@@ -1,19 +1,106 @@
1
- import e from "@mui/icons-material/Cancel";
2
- import t from "@mui/icons-material/HourglassEmpty";
3
- import n from "@mui/icons-material/PaidOutlined";
1
+ import { User as e } from "./index59.js";
2
+ import "./index60.js";
3
+ import { useApprovalPolicyScript as t } from "./index84.js";
4
+ import { Role as n } from "./index86.js";
5
+ import "./index87.js";
6
+ import { useMemo as r } from "react";
7
+ import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
8
+ import { Button as o, IconButton as s, Paper as c, Stack as l, Table as u, TableBody as d, TableCell as f, TableHead as p, TableRow as m } from "@mui/material";
9
+ import { useLingui as h } from "@lingui/react";
10
+ import g from "@mui/icons-material/AddCircleOutline";
11
+ import _ from "@mui/icons-material/Delete";
4
12
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js
5
- var r = "search", i = "created_at", a = "created_by", o = ["ApprovalRequests.request_approval_by_roles", "ApprovalRequests.request_approval_by_role"], s = {
6
- active: "success",
7
- deleted: "error",
8
- pending: "warning"
9
- }, c = (e) => ({
10
- active: e._("Active"),
11
- deleted: e._("Deleted"),
12
- pending: e._("Pending")
13
- }), l = {
14
- active: n,
15
- deleted: e,
16
- pending: t
13
+ var v = ({ rules: v, usersFromListCount: y, rolesFromListCount: b, onAddRule: x, onEditRule: S, onDeleteRule: C }) => {
14
+ let { i18n: w } = h(), { getRuleLabel: T } = t({}), E = r(() => Object.keys(v).map((t) => {
15
+ let r, a;
16
+ switch (t) {
17
+ case "users_from_list":
18
+ r = T(t, (typeof y == "string" ? parseInt(y) : y) || 0);
19
+ break;
20
+ case "roles_from_list":
21
+ r = T(t, typeof b == "string" ? parseInt(b) : b || 0);
22
+ break;
23
+ default: r = T(t);
24
+ }
25
+ switch (t) {
26
+ case "single_user":
27
+ a = /* @__PURE__ */ i(l, {
28
+ direction: "column",
29
+ spacing: .5,
30
+ sx: { overflow: "hidden" },
31
+ children: v.single_user?.id && /* @__PURE__ */ i(e, { userId: v.single_user?.id }, v.single_user?.id)
32
+ });
33
+ break;
34
+ case "users_from_list":
35
+ a = /* @__PURE__ */ i(l, {
36
+ direction: "column",
37
+ spacing: .5,
38
+ sx: { overflow: "hidden" },
39
+ children: v?.users_from_list?.map((t) => /* @__PURE__ */ i(e, { userId: t.id }, t.id))
40
+ });
41
+ break;
42
+ case "roles_from_list":
43
+ a = /* @__PURE__ */ i(l, {
44
+ direction: "row",
45
+ gap: 1,
46
+ flexWrap: "wrap",
47
+ useFlexGap: !0,
48
+ sx: { "& > *": { flexShrink: 0 } },
49
+ children: v.roles_from_list?.map((e) => /* @__PURE__ */ i(n, { roleId: e.id }, e.id))
50
+ });
51
+ break;
52
+ case "approval_chain": a = /* @__PURE__ */ i(l, {
53
+ direction: "column",
54
+ spacing: .5,
55
+ sx: { overflow: "hidden" },
56
+ children: v?.approval_chain?.map((t) => /* @__PURE__ */ i(e, { userId: t.id }, t.id))
57
+ });
58
+ }
59
+ return {
60
+ key: t,
61
+ label: r,
62
+ value: a
63
+ };
64
+ }), [
65
+ v,
66
+ y,
67
+ T,
68
+ b
69
+ ]);
70
+ return /* @__PURE__ */ i(c, {
71
+ variant: "outlined",
72
+ children: /* @__PURE__ */ a(u, { children: [/* @__PURE__ */ i(p, { children: /* @__PURE__ */ a(m, { children: [
73
+ /* @__PURE__ */ i(f, { children: w._("Condition") }),
74
+ /* @__PURE__ */ i(f, { children: w._("Criteria") }),
75
+ /* @__PURE__ */ i(f, {})
76
+ ] }) }), /* @__PURE__ */ a(d, { children: [E.length > 0 ? E.map((e) => /* @__PURE__ */ a(m, {
77
+ hover: !0,
78
+ sx: { "&.MuiTableRow-root": { cursor: "pointer" } },
79
+ onClick: () => S(e.key),
80
+ children: [
81
+ /* @__PURE__ */ i(f, { children: e.label }),
82
+ /* @__PURE__ */ i(f, { children: e.value }),
83
+ /* @__PURE__ */ i(f, { children: /* @__PURE__ */ i(s, {
84
+ "aria-label": w._("Delete trigger"),
85
+ onClick: (t) => {
86
+ t.stopPropagation(), C(e.key);
87
+ },
88
+ children: /* @__PURE__ */ i(_, {})
89
+ }) })
90
+ ]
91
+ }, e.label)) : /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(f, {
92
+ colSpan: 3,
93
+ children: w._("No rules")
94
+ }) }), /* @__PURE__ */ i(m, { children: /* @__PURE__ */ i(f, {
95
+ colSpan: 3,
96
+ children: /* @__PURE__ */ i(o, {
97
+ startIcon: /* @__PURE__ */ i(g, {}),
98
+ onClick: x,
99
+ disabled: !!v.single_user && (v.users_from_list?.length ?? 0) > 0 && (v.roles_from_list?.length ?? 0) > 0 && (v.approval_chain?.length ?? 0) > 0,
100
+ children: w._("Add new rule")
101
+ })
102
+ }) })] })] })
103
+ });
17
104
  };
18
105
  //#endregion
19
- export { l as APPROVAL_STATUS_TO_MUI_ICON_MAP, i as FILTER_TYPE_CREATED_AT, a as FILTER_TYPE_CREATED_BY, r as FILTER_TYPE_SEARCH, o as ROLE_APPROVAL_CALLS, s as ROW_TO_STATUS_MUI_MAP, c as getRowToStatusTextMap };
106
+ export { v as RulesTable };
@@ -1,5 +1 @@
1
- import { ROLE_APPROVAL_CALLS as e } from "./index88.js";
2
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js
3
- var t = (t) => typeof t == "string" && e.includes(t);
4
- //#endregion
5
- export { t as isRoleApprovalCall };
1
+ import "./index88.js";
@@ -1,2 +1,56 @@
1
- import "./index89.js";
2
- import "./index87.js";
1
+ import { useMoniteContext as e } from "./index36.js";
2
+ import { useRootElements as t } from "./index63.js";
3
+ import "./index64.js";
4
+ import { useDebounce as n } from "./index69.js";
5
+ import { useState as r } from "react";
6
+ import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
7
+ import { Autocomplete as s, CircularProgress as c, FormHelperText as l, TextField as u } from "@mui/material";
8
+ import { useLingui as d } from "@lingui/react";
9
+ import { Controller as f, useFormContext as p } from "react-hook-form";
10
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js
11
+ var m = ({ control: m, name: h, label: g }) => {
12
+ let { i18n: _ } = d(), { api: v } = e(), { root: y } = t(), { setValue: b } = p(), [x, S] = r(""), C = n(x, 300), { data: w, isLoading: T, refetch: E } = v.finops.getEntityUsers.useQuery({ query: { name__istartswith: C || void 0 } });
13
+ return /* @__PURE__ */ a(f, {
14
+ control: m,
15
+ name: h,
16
+ render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a(s, {
17
+ ...e,
18
+ id: e.name,
19
+ multiple: !0,
20
+ autoComplete: !0,
21
+ includeInputInList: !0,
22
+ filterSelectedOptions: !0,
23
+ noOptionsText: _._("No users found"),
24
+ slotProps: { popper: { container: y } },
25
+ loading: T,
26
+ options: w?.data || [],
27
+ getOptionKey: (e) => e.id,
28
+ getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(),
29
+ isOptionEqualToValue: (e, t) => e.id === t.id,
30
+ filterOptions: (e) => e,
31
+ onInputChange: (e, t) => {
32
+ S(t);
33
+ },
34
+ onChange: (e, t) => {
35
+ b(h, t), E();
36
+ },
37
+ renderInput: (e) => /* @__PURE__ */ a(u, {
38
+ ...e,
39
+ label: g,
40
+ error: !!t,
41
+ InputProps: {
42
+ ...e.InputProps,
43
+ endAdornment: /* @__PURE__ */ o(i, { children: [T ? /* @__PURE__ */ a(c, {
44
+ color: "inherit",
45
+ size: 20
46
+ }) : null, e.InputProps.endAdornment] })
47
+ }
48
+ })
49
+ }), t && /* @__PURE__ */ a(l, {
50
+ error: !0,
51
+ children: t.message
52
+ })] })
53
+ });
54
+ };
55
+ //#endregion
56
+ export { m as AutocompleteUsers };