@tesouro/embedded-components-react 0.2.85 → 0.2.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/dist/lib/ReceivablesWidget.js +19 -19
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +19 -19
  3. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +17 -6
  4. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +6 -17
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +16 -16
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +22 -23
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -23
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +24 -2
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +8 -8
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +4 -4
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +2 -2
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +3 -3
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +3 -3
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -6
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +3 -3
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +4 -4
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +2 -2
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +4 -4
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +3 -3
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +28 -28
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +3 -3
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +6 -6
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +3 -3
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +2 -2
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +36 -35
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +46 -50
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +29 -34
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -54
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +75 -344
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +32 -2
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +18 -18
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +486 -9
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +162 -8
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +36 -14
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +50 -13
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +34 -21
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +54 -33
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +343 -34
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +2 -37
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +20 -15
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +14 -17
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +11 -247
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +10 -179
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +14 -12
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +21 -19
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +31 -24
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +35 -38
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +35 -56
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +15 -52
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +17 -30
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +244 -92
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +179 -43
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +12 -37
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +18 -46
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +24 -27
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +40 -5
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +54 -73
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +52 -32
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +30 -20
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +97 -72
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +47 -44
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +73 -42
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +44 -62
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +19 -30
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +29 -113
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +41 -21
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +60 -41
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +90 -51
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +104 -483
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +83 -163
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +41 -10
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +342 -21
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +296 -27
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +103 -14
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +155 -73
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +265 -75
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +24 -43
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +20 -2
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +2 -96
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +89 -90
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +90 -185
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +191 -19
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +39 -27
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +58 -38
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +29 -61
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +113 -95
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +21 -111
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +41 -85
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +51 -35
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +62 -344
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +27 -302
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +124 -100
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +10 -162
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +59 -259
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +22 -23
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +33 -19
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +149 -63
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +17 -157
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +21 -28
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +40 -26
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +13 -77
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +78 -20
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +158 -17
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +28 -19
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +27 -169
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +76 -132
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +59 -156
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +44 -12
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +24 -18
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +185 -59
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +106 -66
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +81 -59
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +283 -6
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +46 -8
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +15 -62
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +83 -21
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +220 -58
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +39 -14
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +74 -62
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +42 -42
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +20 -23
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +14 -185
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +17 -106
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +169 -80
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +119 -270
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +157 -44
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -15
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +18 -85
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +58 -220
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +63 -34
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +60 -149
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +8 -19
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +9 -26
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +61 -126
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +21 -93
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +62 -16
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -76
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +96 -17
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +16 -49
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +74 -10
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +17 -50
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +48 -19
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -40
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +46 -63
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +7 -28
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +255 -11
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -255
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +36 -12
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +25 -15
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +6 -48
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +104 -11
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +21 -46
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +20 -25
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +55 -32
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +33 -6
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +24 -100
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +43 -21
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +14 -24
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +70 -53
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +94 -32
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +27 -18
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +9 -42
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +10 -24
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +32 -74
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +13 -94
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -29
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +47 -120
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +10 -17
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +34 -16
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +54 -16
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +36 -16
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +26 -16
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +7 -10
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +53 -10
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +15 -70
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +96 -16
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +38 -16
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +35 -16
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +32 -11
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +5 -7
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +124 -51
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +120 -15
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +18 -32
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -5
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +16 -127
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +16 -34
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +16 -54
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +70 -33
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +16 -26
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +16 -96
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -38
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +11 -35
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -1
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +1 -1
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +10 -5
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +12 -75
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +5 -68
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +28 -38
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +24 -12
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +38 -32
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +75 -85
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +67 -23
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +33 -99
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +32 -111
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +85 -22
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +22 -26
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +102 -35
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +106 -23
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +21 -23
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +26 -37
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +38 -8
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +68 -9
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +44 -66
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +25 -44
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +8 -28
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +17 -71
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +55 -67
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +80 -49
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +32 -31
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +31 -32
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +54 -29
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +29 -56
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +54 -37
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +37 -44
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +46 -56
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +55 -70
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +72 -21
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +20 -52
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +51 -18
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +17 -29
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +29 -69
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +56 -28
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +39 -15
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +94 -81
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +15 -33
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +75 -40
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +20 -41
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +9 -37
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +41 -14
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +36 -18
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +14 -49
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +51 -56
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +81 -31
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +39 -53
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +16 -13
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +48 -93
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +5 -5
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +59 -16
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +33 -75
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +32 -20
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +16 -9
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +9 -64
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +64 -9
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +39 -47
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +47 -39
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -1
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +2 -2
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +2 -2
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +2 -2
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +1 -1
  312. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +19 -19
  313. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +5 -5
  314. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +19 -19
  315. package/package.json +1 -1
@@ -1,98 +1,116 @@
1
- import { jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
2
- import { useForm as y, FormProvider as B } from "react-hook-form";
3
- import { useLingui as v } from "@lingui/react";
4
- import { useId as F, useMemo as z, useCallback as H } from "react";
5
- import { zodResolver as P } from "@hookform/resolvers/zod";
6
- import { Button as w } from "./index84.js";
7
- import { getCounterpartBankValidationSchema as U } from "./index232.js";
8
- import "./index57.js";
9
- import { toast as l } from "react-hot-toast";
10
- import { useCreateCounterpartBank as A } from "./index233.js";
11
- import { useUpdateCounterpartBank as D } from "./index400.js";
12
- import "date-fns";
13
- import { getCounterpartName as L } from "./index7.js";
14
- import { LoadingSpinner as j } from "./index131.js";
15
- import { CounterpartBankFormContent as I } from "./index299.js";
16
- const $ = ({
17
- counterpartId: p,
18
- isStandalone: g,
19
- bankAccount: t,
20
- handleClose: b,
21
- onUpdate: c,
22
- onCreate: i
23
- }) => {
24
- const {
25
- i18n: e
26
- } = v(), h = `vendor-bank-form-${F()}`, N = !!t, {
27
- mutate: f,
28
- isPending: k
29
- } = D(), {
30
- mutate: _,
31
- isPending: C
32
- } = A(), o = k || C, S = z(() => ({
33
- accountHolderName: t?.account_holder_name ?? "",
34
- accountNumber: t?.account_number ?? "",
35
- routingNumber: t?.routing_number ?? ""
36
- }), [t]), {
37
- resetField: n,
38
- ...a
39
- } = y({
40
- resolver: P(U(e)),
41
- defaultValues: S
42
- }), x = H((m) => {
43
- m.preventDefault(), m.stopPropagation(), a.handleSubmit((r) => {
44
- if (t) {
45
- const s = {
46
- account_holder_name: r.accountHolderName,
47
- account_number: r.accountNumber,
48
- routing_number: r.routingNumber
49
- };
50
- return f({
51
- path: {
52
- counterpart_id: p,
53
- bank_account_id: t?.id
54
- },
55
- body: s
56
- }, {
57
- onSuccess: () => {
58
- l.success(e._("Bank account information has been updated.")), c && c();
59
- }
60
- });
61
- } else {
62
- const s = {
63
- account_holder_name: r.accountHolderName,
64
- account_number: r.accountNumber,
65
- routing_number: r.routingNumber,
66
- country: "US",
67
- currency: "USD",
68
- is_default_for_currency: !0
69
- };
70
- return _({
71
- path: {
72
- counterpart_id: p
73
- },
74
- body: s
75
- }, {
76
- onSuccess: () => {
77
- l.success(e._("Bank Account has been added.")), i && i();
78
- }
79
- });
80
- }
81
- })(m);
82
- }, [l, f, _, L, c, i, a.handleSubmit, e]);
83
- return /* @__PURE__ */ u(B, { resetField: n, ...a, children: /* @__PURE__ */ d("form", { id: h, onSubmit: x, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
84
- /* @__PURE__ */ u(I, { hasExistingBankAccount: N, handleCancel: b, isLoading: o, isStandalone: g }),
85
- /* @__PURE__ */ d("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
86
- /* @__PURE__ */ u(w, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
87
- n("accountHolderName"), n("accountNumber"), n("routingNumber"), b();
88
- }, children: e._("Cancel") }),
89
- /* @__PURE__ */ d(w, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
90
- o && /* @__PURE__ */ u(j, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
91
- e._("Save")
92
- ] })
93
- ] })
94
- ] }) });
1
+ import { getSharedApprovalRuleLabel as c, getUsersFromListLabel as R } from "./index406.js";
2
+ const d = {
3
+ REQUEST_APPROVAL_BY_USERS: "ApprovalRequests.request_approval_by_users",
4
+ REQUEST_APPROVAL_BY_ROLES: "ApprovalRequests.request_approval_by_roles"
5
+ }, v = (e) => {
6
+ switch (e) {
7
+ case "approved":
8
+ return "waiting_to_be_paid";
9
+ case "rejected":
10
+ return "rejected";
11
+ case "canceled":
12
+ return "canceled";
13
+ default:
14
+ return "approve_in_progress";
15
+ }
16
+ }, m = (e) => e.find((a) => a.call === d.REQUEST_APPROVAL_BY_USERS), q = (e) => e.find((a) => a.call === d.REQUEST_APPROVAL_BY_ROLES), f = (e, a, s = !1) => e.filter((r) => r.user_ids?.length ? s ? r.user_ids.some((t) => a.includes(t)) : a.every((t) => r.user_ids.includes(t)) : !1), b = (e, a, s) => {
17
+ if (e?.params) {
18
+ const {
19
+ user_ids: r,
20
+ required_approval_count: t
21
+ } = e.params;
22
+ return r?.length === 1 ? c.singleUser(s) : R(s, t);
23
+ }
24
+ return a?.params ? c.anyUserWithRole(s) : "";
25
+ }, o = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(o) : e.if ? o(e.if) : [] : [], h = (e) => e.flatMap(o), j = (e) => {
26
+ const a = [];
27
+ if (e.all)
28
+ a.push(...e.all);
29
+ else if (e.if) {
30
+ const s = e.if;
31
+ s.all ? a.push(...s.all) : a.push(s);
32
+ }
33
+ return a;
34
+ }, _ = (e) => e ? e.call && e.params ? [e] : Array.isArray(e.all) ? e.all.flatMap(_) : Array.isArray(e) ? e.flatMap(_) : [] : [], y = (e) => e.length === 0 || e.some((a) => a.status === "waiting") ? "waiting" : e.every((a) => a.status === "approved") ? "approved" : e.some((a) => a.status === "rejected") ? "rejected" : "waiting", E = (e, a, s) => ({
35
+ stepNumber: a,
36
+ type: s,
37
+ assignee: void 0,
38
+ assignees: e.assignees,
39
+ status: e.stepStatus,
40
+ payableStatus: v(e.stepStatus),
41
+ actualAssignees: e.actualAssignees,
42
+ hasActiveRequests: e.relatedRequests.length > 0,
43
+ requestIds: e.relatedRequests.map((r) => r.id),
44
+ approvalRequestId: e.approvalRequestId,
45
+ approvedBy: e.approvedBy,
46
+ objectId: e.objectId,
47
+ rejectedBy: e.rejectedBy,
48
+ requiredApprovalCount: e.requiredApprovalCount
49
+ }), B = (e, a, s, r) => {
50
+ const t = y(a);
51
+ return {
52
+ stepNumber: s,
53
+ type: r,
54
+ assignee: void 0,
55
+ assignees: e,
56
+ status: t,
57
+ payableStatus: v(t),
58
+ actualAssignees: e,
59
+ hasActiveRequests: a.length > 0,
60
+ requestIds: a.map((l) => l.id),
61
+ approvalRequestId: a[0]?.id,
62
+ approvedBy: a.flatMap((l) => l.approved_by || []),
63
+ objectId: a[0]?.object_id,
64
+ rejectedBy: a.find((l) => l.rejected_by)?.rejected_by,
65
+ requiredApprovalCount: a.reduce((l, i) => l + i.required_approval_count, 0)
66
+ };
67
+ }, C = (e, a) => {
68
+ const s = e.flatMap((t) => t.params?.user_ids || []), r = a.filter((t) => t.user_ids?.length && s.some((l) => t.user_ids.includes(l)));
69
+ return {
70
+ allChainUserIds: s,
71
+ allChainRequests: r
72
+ };
73
+ }, I = (e) => {
74
+ const a = [];
75
+ if (e.all)
76
+ a.push(...e.all);
77
+ else if (e.if) {
78
+ const s = e.if;
79
+ s.all ? a.push(...s.all) : a.push(s);
80
+ }
81
+ return a;
82
+ }, L = (e, a) => {
83
+ const s = e.call === d.REQUEST_APPROVAL_BY_USERS ? e : void 0;
84
+ let r = [];
85
+ s?.params?.user_ids && (r = s.params.user_ids);
86
+ const t = f(a, r, !0), l = t.flatMap((p) => p.user_ids || []), i = [...new Set(l)], A = t.length ? t[0].status : "waiting", u = t.find((p) => p.status !== "waiting"), S = t.flatMap((p) => p.approved_by || []), n = [...new Set(S)];
87
+ return {
88
+ assignees: r,
89
+ actualAssignees: i,
90
+ relatedRequests: t,
91
+ stepStatus: A,
92
+ approvalRequestId: u?.id,
93
+ approvedBy: n.length > 0 ? n : void 0,
94
+ objectId: u?.object_id || e.params?.object_id,
95
+ rejectedBy: u?.rejected_by,
96
+ requiredApprovalCount: e.params?.required_approval_count || u?.required_approval_count || 1
97
+ };
95
98
  };
96
99
  export {
97
- $ as CounterpartBankForm
100
+ d as APPROVAL_CALL_TYPES,
101
+ y as calculateIntegralStatus,
102
+ E as createBaseApprovalStep,
103
+ B as createChainApprovalStep,
104
+ o as extractApprovalCalls,
105
+ _ as extractApprovalCallsForTable,
106
+ I as extractItemsFromScriptStep,
107
+ j as extractStructureItemsFromScriptStep,
108
+ f as filterRequestsByUsers,
109
+ q as findRoleApprovalCall,
110
+ m as findUserApprovalCall,
111
+ b as getApprovalRuleLabel,
112
+ v as mapApprovalStatusToPayableStatus,
113
+ h as processApprovalStructure,
114
+ C as processChainApprovalCalls,
115
+ L as resolveStepForCall
98
116
  };
@@ -1,114 +1,24 @@
1
- import { jsxs as a, jsx as e, Fragment as y } from "@emotion/react/jsx-runtime";
2
- import { USStatesEnum as x } from "./index401.js";
3
- import { Field as o, FieldContent as s, FieldLabel as c, FieldError as m } from "./index153.js";
4
- import { Input as f } from "./index118.js";
5
- import { Select as F, SelectTrigger as _, SelectValue as j, SelectContent as A, SelectItem as E } from "./index269.js";
6
- import { Typography as b } from "./index85.js";
7
- import { MoniteCountryShadcn as L } from "./index402.js";
8
- import { useLingui as T } from "@lingui/react";
9
- import { useRef as U } from "react";
10
- import { useFormContext as B, Controller as w } from "react-hook-form";
11
- import { twMerge as g } from "tailwind-merge";
12
- const G = ({
13
- hasExistingAddress: v,
14
- isLoading: n,
15
- isStandalone: d,
16
- customerType: S
17
- }) => {
18
- const {
19
- i18n: l
20
- } = T(), {
21
- watch: N,
22
- control: h
23
- } = B(), u = U(null), i = S === "vendor";
24
- return /* @__PURE__ */ a("div", { className: g("ttw:flex ttw:flex-col ttw:gap-4"), ref: u, children: [
25
- d ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ e(b, { variant: "body1", className: "ttw:font-medium", children: v ? l._("Editing address") : l._("Adding address") }) }) : /* @__PURE__ */ e(y, { children: !i && /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border", children: /* @__PURE__ */ a(b, { variant: "body1", className: "ttw:font-medium", children: [
26
- l._("Address"),
27
- " ",
28
- /* @__PURE__ */ e("span", { className: "ttw:text-muted-foreground", children: l._("(optional)") })
29
- ] }) }) }),
30
- /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
31
- /* @__PURE__ */ e(w, { name: "line1", control: h, render: ({
32
- field: t,
33
- fieldState: {
34
- error: r
35
- }
36
- }) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
37
- /* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Street address") }),
38
- /* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
39
- /* @__PURE__ */ e(m, { errors: [r] })
40
- ] }) }) }),
41
- /* @__PURE__ */ e(w, { name: "line2", control: h, render: ({
42
- field: t,
43
- fieldState: {
44
- error: r
45
- }
46
- }) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
47
- /* @__PURE__ */ a(c, { htmlFor: t.name, className: "ttw:gap-1", children: [
48
- l._("Apt, suite, floor, etc."),
49
- i && /* @__PURE__ */ e(b, { variant: "body2", color: "muted", className: "ttw:leading-snug", children: l._("(optional)") })
50
- ] }),
51
- /* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
52
- /* @__PURE__ */ e(m, { errors: [r] })
53
- ] }) }) })
54
- ] }),
55
- /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
56
- /* @__PURE__ */ e(w, { name: "city", control: h, render: ({
57
- field: t,
58
- fieldState: {
59
- error: r
60
- }
61
- }) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
62
- /* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("City") }),
63
- /* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
64
- /* @__PURE__ */ e(m, { errors: [r] })
65
- ] }) }) }),
66
- /* @__PURE__ */ e(w, { name: "state", control: h, render: ({
67
- field: t,
68
- fieldState: {
69
- error: r
70
- }
71
- }) => N("country") === "US" ? /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
72
- /* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
73
- /* @__PURE__ */ a(F, { value: t.value ?? void 0, onValueChange: t.onChange, disabled: n, children: [
74
- /* @__PURE__ */ e(_, { ref: t.ref, onBlur: t.onBlur, "aria-invalid": !!r || void 0, className: g("ttw:w-full", (d || i) && "ttw:bg-white"), disabled: n, children: /* @__PURE__ */ e(j, { placeholder: l._("Select a state") }) }),
75
- /* @__PURE__ */ e(A, { children: Object.entries(x).map(([p, C]) => /* @__PURE__ */ a(E, { value: p, children: [
76
- C,
77
- " — ",
78
- p
79
- ] }, p)) })
80
- ] }),
81
- /* @__PURE__ */ e(m, { errors: [r] })
82
- ] }) }) : /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
83
- /* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("State") }),
84
- /* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
85
- /* @__PURE__ */ e(m, { errors: [r] })
86
- ] }) }) })
87
- ] }),
88
- /* @__PURE__ */ a("div", { className: "ttw:flex ttw:gap-4", children: [
89
- /* @__PURE__ */ e(w, { name: "postalCode", control: h, render: ({
90
- field: t,
91
- fieldState: {
92
- error: r
93
- }
94
- }) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
95
- /* @__PURE__ */ e(c, { htmlFor: t.name, children: l._("Postal code") }),
96
- /* @__PURE__ */ e(f, { id: t.name, ...t, className: d || i ? "ttw:bg-white" : "", disabled: n, "aria-invalid": !!r || void 0 }),
97
- /* @__PURE__ */ e(m, { errors: [r] })
98
- ] }) }) }),
99
- /* @__PURE__ */ e(w, { name: "country", control: h, render: ({
100
- field: t,
101
- fieldState: {
102
- error: r
103
- }
104
- }) => /* @__PURE__ */ e(o, { children: /* @__PURE__ */ a(s, { children: [
105
- /* @__PURE__ */ e(c, { children: l._("Country") }),
106
- /* @__PURE__ */ e(L, { value: t.value, className: d || i ? "ttw:bg-white" : "", onChange: t.onChange, invalid: !!r, disabled: n, container: u?.current, allowedCountries: ["US"] }),
107
- /* @__PURE__ */ e(m, { errors: [r] })
108
- ] }) }) })
109
- ] })
110
- ] });
1
+ import _ from "@mui/icons-material/Cancel";
2
+ import t from "@mui/icons-material/HourglassEmpty";
3
+ import a from "@mui/icons-material/PaidOutlined";
4
+ const i = "search", s = "created_at", A = "created_by", E = {
5
+ active: "success",
6
+ deleted: "error",
7
+ pending: "warning"
8
+ }, n = (e) => ({
9
+ active: e._("Active"),
10
+ deleted: e._("Deleted"),
11
+ pending: e._("Pending")
12
+ }), o = {
13
+ active: a,
14
+ deleted: _,
15
+ pending: t
111
16
  };
112
17
  export {
113
- G as CounterpartAddressFormContent
18
+ o as APPROVAL_STATUS_TO_MUI_ICON_MAP,
19
+ s as FILTER_TYPE_CREATED_AT,
20
+ A as FILTER_TYPE_CREATED_BY,
21
+ i as FILTER_TYPE_SEARCH,
22
+ E as ROW_TO_STATUS_MUI_MAP,
23
+ n as getRowToStatusTextMap
114
24
  };
@@ -1,90 +1,46 @@
1
- import { jsx as d, jsxs as m } from "@emotion/react/jsx-runtime";
2
- import { useForm as N, FormProvider as F } from "react-hook-form";
3
- import { useLingui as I } from "@lingui/react";
4
- import { useId as P, useMemo as z, useCallback as L } from "react";
5
- import { zodResolver as U } from "@hookform/resolvers/zod";
6
- import { Button as y } from "./index84.js";
7
- import { getAddressValidationSchema as j } from "./index232.js";
8
- import "./index57.js";
9
- import { toast as p } from "react-hot-toast";
10
- import "date-fns";
11
- import { getCounterpartName as k } from "./index7.js";
12
- import { useUpdateCounterpartAddress as D } from "./index298.js";
13
- import { useCreateCounterpartAddress as T } from "./index403.js";
14
- import { LoadingSpinner as V } from "./index131.js";
15
- import { CounterpartAddressFormContent as B } from "./index301.js";
16
- const tt = ({
17
- counterpartId: c,
18
- isStandalone: C,
19
- address: t,
20
- customerType: u,
21
- handleClose: h,
22
- onUpdate: i,
23
- onCreate: n
1
+ import { jsx as i, jsxs as t } from "@emotion/react/jsx-runtime";
2
+ import { useApprovalPolicyTrigger as l } from "./index396.js";
3
+ import { ColumnList as s } from "./index397.js";
4
+ import { UBuilding as n } from "./index398.js";
5
+ import { ULabel as c } from "./index399.js";
6
+ import { UMoneyBill as m } from "./index400.js";
7
+ import { UUserCircle as p } from "./index401.js";
8
+ const U = ({
9
+ approvalPolicy: o
24
10
  }) => {
25
11
  const {
26
- i18n: r
27
- } = I(), S = `counterpart-address-form-${P()}`, g = !!t, {
28
- mutate: f,
29
- isPending: x
30
- } = D({
31
- counterpartId: c,
32
- addressId: t?.id ?? ""
33
- }), {
34
- mutate: w,
35
- isPending: A
36
- } = T(), o = x || A, v = z(() => ({
37
- line1: t?.line1 ?? "",
38
- line2: t?.line2 ?? "",
39
- city: t?.city ?? "",
40
- state: t?.state ?? "",
41
- country: t?.country ?? "US",
42
- postalCode: t?.postal_code ?? ""
43
- }), [t]), {
44
- resetField: e,
45
- ...a
46
- } = N({
47
- resolver: U(j(r, u === "vendor")),
48
- defaultValues: v
49
- }), _ = L((l) => {
50
- l.preventDefault(), l.stopPropagation(), a.handleSubmit((s) => {
51
- const b = {
52
- line1: s.line1 ?? "",
53
- line2: s.line2,
54
- city: s.city ?? "",
55
- state: s.state ?? "",
56
- country: s.country,
57
- postal_code: s.postalCode ?? ""
58
- };
59
- return t ? f(b, {
60
- onSuccess: () => {
61
- p.success(r._("Address has been updated.")), i && i();
62
- }
63
- }) : w({
64
- path: {
65
- counterpart_id: c
66
- },
67
- body: b
68
- }, {
69
- onSuccess: () => {
70
- p.success(r._("Address has been added.")), n && n();
71
- }
72
- });
73
- })(l);
74
- }, [p, f, w, k, i, n, a.handleSubmit, r]);
75
- return /* @__PURE__ */ d(F, { resetField: e, ...a, children: /* @__PURE__ */ m("form", { id: S, onSubmit: _, className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-4 ttw:border ttw:border-primary ttw:rounded-[10px] ttw:bg-zinc-100", children: [
76
- /* @__PURE__ */ d(B, { hasExistingAddress: g, isLoading: o, isStandalone: C, customerType: u }),
77
- /* @__PURE__ */ m("div", { className: "ttw:flex ttw:gap-4 ttw:pt-6", children: [
78
- /* @__PURE__ */ d(y, { type: "button", variant: "outline", className: "ttw:border-border ttw:flex-1", disabled: o, onClick: () => {
79
- e("line1"), e("line2"), e("city"), e("state"), e("postalCode"), e("country"), h();
80
- }, children: r._("Cancel") }),
81
- /* @__PURE__ */ m(y, { type: "submit", className: "ttw:flex-1", disabled: o || !a.formState.isDirty, children: [
82
- o && /* @__PURE__ */ d(V, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }),
83
- r._("Save")
84
- ] })
85
- ] })
86
- ] }) });
12
+ triggers: a,
13
+ getTriggerName: e
14
+ } = l({
15
+ approvalPolicy: o
16
+ });
17
+ return o ? /* @__PURE__ */ i(s, { children: Object.keys(a).map((r) => {
18
+ switch (r) {
19
+ case "amount":
20
+ return /* @__PURE__ */ t("li", { children: [
21
+ /* @__PURE__ */ i(m, { width: 18 }),
22
+ e(r)
23
+ ] }, r);
24
+ case "was_created_by_user_id":
25
+ return /* @__PURE__ */ t("li", { children: [
26
+ /* @__PURE__ */ i(p, { width: 18 }),
27
+ e(r)
28
+ ] }, r);
29
+ case "counterpart_id":
30
+ return /* @__PURE__ */ t("li", { children: [
31
+ /* @__PURE__ */ i(n, { width: 18 }),
32
+ e(r)
33
+ ] }, r);
34
+ case "tags":
35
+ return /* @__PURE__ */ t("li", { children: [
36
+ /* @__PURE__ */ i(c, { width: 18 }),
37
+ e(r)
38
+ ] }, r);
39
+ default:
40
+ return null;
41
+ }
42
+ }) }) : null;
87
43
  };
88
44
  export {
89
- tt as CounterpartAddressForm
45
+ U as ApprovalPoliciesTriggers
90
46
  };
@@ -1,43 +1,59 @@
1
- import { jsxs as t, jsx as e } from "@emotion/react/jsx-runtime";
2
- import { useLingui as s } from "@lingui/react";
3
- import { Dialog as d, DialogTitle as h, Typography as n, DialogContent as x, DialogActions as g, Button as l } from "@mui/material";
4
- const v = ({
5
- open: a,
6
- type: p,
7
- onClose: i,
8
- onConfirm: c
1
+ import { jsxs as f, jsx as s } from "@emotion/react/jsx-runtime";
2
+ import { useState as c, useMemo as u } from "react";
3
+ import { useMoniteContext as y } from "./index57.js";
4
+ import { useRootElements as E } from "./index92.js";
5
+ import { useDebounceCallback as x, useDebounce as N } from "./index65.js";
6
+ import { useLingui as v } from "@lingui/react";
7
+ import { X as T } from "lucide-react";
8
+ import { SearchInput as A, DatePicker as R, Combobox as $ } from "../../../../packages/shared-ui-shadcn/dist/index.js";
9
+ import { FILTER_TYPE_SEARCH as k, FILTER_TYPE_CREATED_BY as D, FILTER_TYPE_CREATED_AT as _ } from "./index301.js";
10
+ const C = 500, F = (t) => {
11
+ const e = `${t.first_name ?? ""} ${t.last_name ?? ""}`.trim();
12
+ return e && t.email ? `${e} (${t.email})` : e || t.email || t.id;
13
+ }, L = ({
14
+ onChange: t
9
15
  }) => {
10
16
  const {
11
- i18n: o
12
- } = s(), r = p === "approve";
13
- return /* @__PURE__ */ t(d, { open: a, onClose: i, maxWidth: "sm", fullWidth: !0, container: () => document.body, PaperProps: {
14
- sx: {
15
- borderRadius: 3,
16
- padding: 2
17
+ i18n: e
18
+ } = v(), {
19
+ api: n
20
+ } = y(), [r, l] = c(null), [m, a] = c(""), b = N(m, C), {
21
+ data: d
22
+ } = n.finops.getEntityUsers.useQuery({
23
+ query: {
24
+ name__istartswith: b || void 0
17
25
  }
18
- }, children: [
19
- /* @__PURE__ */ e(h, { sx: {
20
- p: "16px !important"
21
- }, children: /* @__PURE__ */ e(n, { variant: "h5", fontWeight: 600, children: r ? o._("Force Approve bill?") : o._("Force Reject bill?") }) }),
22
- /* @__PURE__ */ e(x, { sx: {
23
- px: 2,
24
- pb: 3
25
- }, children: /* @__PURE__ */ e(n, { variant: "body1", color: "text.secondary", children: r ? o._("The bill status will change to Approved, skipping the approval flow.") : o._("The bill status will change to Rejected, skipping the approval flow.") }) }),
26
- /* @__PURE__ */ t(g, { sx: {
27
- px: 0,
28
- pt: 2,
29
- gap: 2
30
- }, children: [
31
- /* @__PURE__ */ e(l, { onClick: i, variant: "text", sx: {
32
- color: "primary.main",
33
- fontWeight: 500,
34
- textTransform: "none",
35
- fontSize: "16px"
36
- }, children: o._("Cancel") }),
37
- /* @__PURE__ */ e(l, { onClick: c, variant: "contained", color: r ? "primary" : "error", children: r ? o._("Force Approve") : o._("Force Reject") })
26
+ }), w = u(() => d?.data ?? [], [d]), i = u(() => w.map((o) => ({
27
+ value: o.id,
28
+ label: F(o)
29
+ })), [w]), p = u(() => !r || i.some((o) => o.value === r.value) ? i : [r, ...i], [i, r]);
30
+ return /* @__PURE__ */ s($, { items: p, value: r?.value ?? "", placeholder: e._("Added by"), emptyMessage: e._("No users found"), clearAriaLabel: e._("Clear selection"), onQueryChange: a, onValueChange: (o) => {
31
+ const h = Array.isArray(o) ? o[0] ?? "" : o ?? "";
32
+ l(p.find((g) => g.value === h) ?? null), t(h || void 0);
33
+ } });
34
+ }, q = ({
35
+ onChangeFilter: t
36
+ }) => {
37
+ const {
38
+ i18n: e
39
+ } = v(), {
40
+ root: n
41
+ } = E(), [r, l] = c(void 0), m = x((a) => {
42
+ t(k, a.trim() ? a : null);
43
+ }, C);
44
+ return /* @__PURE__ */ f("div", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:px-2 ttw:py-2", children: [
45
+ /* @__PURE__ */ s("div", { className: "ttw:flex-1", children: /* @__PURE__ */ s(A, { placeholder: e._("Search"), className: "ttw:h-9 ttw:w-full", onChange: (a) => m(a.target.value) }) }),
46
+ /* @__PURE__ */ s("div", { className: "ttw:w-48 ttw:shrink-0", children: /* @__PURE__ */ s(L, { onChange: (a) => t(D, a ?? null) }) }),
47
+ /* @__PURE__ */ f("div", { className: "ttw:relative ttw:w-44 ttw:shrink-0", children: [
48
+ /* @__PURE__ */ s(R, { value: r, placeholder: e._("Created at"), className: `ttw:h-9 ttw:border-border${r ? " ttw:pr-8" : ""}`, container: n, onChange: (a) => {
49
+ l(a), t(_, a ?? null);
50
+ } }),
51
+ r ? /* @__PURE__ */ s("button", { type: "button", "aria-label": e._("Clear created at filter"), className: "ttw:absolute ttw:right-2 ttw:top-1/2 ttw:inline-flex ttw:size-4 ttw:-translate-y-1/2 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:opacity-70 hover:ttw:opacity-100", onClick: () => {
52
+ l(void 0), t(_, null);
53
+ }, children: /* @__PURE__ */ s(T, { className: "ttw:size-3.5" }) }) : null
38
54
  ] })
39
55
  ] });
40
56
  };
41
57
  export {
42
- v as PayableDetailsForceActionDialog
58
+ q as Filters
43
59
  };