@tesouro/embedded-components-react 0.5.138 → 0.5.141

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 (349) hide show
  1. package/dist/index.css +0 -6
  2. package/dist/lib/monite-sdk.js +50 -50
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +51 -51
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -1
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -5
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -9
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +575 -8
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -23
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -54
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +157 -63
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -60
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +24 -166
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -84
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -27
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +12 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -597
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -1
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +29 -1
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +93 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -25
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -10
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +75 -10
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -12
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +126 -16
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -21
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +11 -27
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -1
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -93
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -12
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -10
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +120 -10
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +21 -20
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -75
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +7 -126
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +58 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -11
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +26 -54
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -4
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +61 -1
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -62
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -120
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +183 -21
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +1 -8
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +29 -34
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +3 -9
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +59 -53
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -71
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -26
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +34 -1
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +43 -57
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +10 -17
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -19
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -182
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -1
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -28
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -3
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +12 -60
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -31
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +13 -10
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +15 -31
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -42
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -10
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -16
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -5
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +15 -9
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -13
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -18
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +119 -12
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -12
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -16
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +196 -14
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -42
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -16
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -15
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -15
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +9 -15
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -20
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -5
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -119
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +407 -61
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -196
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +95 -1
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -9
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -41
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +2 -6
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +180 -8
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +98 -15
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -9
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -7
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -419
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +46 -1
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -22
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -92
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -22
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +158 -16
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -188
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +55 -94
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +51 -1
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +80 -50
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +21 -44
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +307 -1
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -1
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -12
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -63
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +158 -44
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -51
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -82
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -21
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +3 -42
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +105 -1
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +181 -340
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +134 -1
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -30
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -26
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -1
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +229 -149
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -35
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +135 -29
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -6
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +163 -101
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -189
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -132
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -207
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +154 -11
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -13
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +217 -28
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +42 -1
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +83 -0
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +14 -34
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +184 -135
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +169 -1
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +15 -162
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +19 -26
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +6 -8
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +383 -36
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +88 -151
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +198 -67
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +30 -217
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +84 -38
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +136 -1
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +35 -78
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +58 -14
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -184
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +135 -163
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +552 -17
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -17
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +145 -5
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +142 -382
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +36 -89
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -195
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -28
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +147 -84
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +57 -129
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -35
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +14 -59
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +16 -138
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -552
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -16
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +89 -135
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +41 -142
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +27 -37
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -66
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -68
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -145
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +5 -61
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -84
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -14
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -19
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +102 -20
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +35 -20
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +43 -97
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +71 -42
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +99 -26
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +47 -1
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +186 -15
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +139 -13
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +130 -5
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +77 -13
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +245 -15
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +10 -9
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +6 -104
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +398 -34
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +22 -45
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +18 -73
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +44 -99
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +45 -44
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +14 -189
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +39 -139
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +140 -124
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +112 -75
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -246
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +33 -8
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +24 -6
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -399
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +22 -23
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +73 -17
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -44
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +18 -46
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +179 -14
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +138 -38
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +28 -142
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +93 -92
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +17 -38
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +44 -31
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +15 -22
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -21
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +27 -21
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -72
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +76 -70
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -16
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +33 -177
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +82 -134
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +50 -31
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -119
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +37 -19
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -48
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +133 -16
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -23
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -25
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +787 -36
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +88 -77
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -50
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -37
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -88
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -50
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +11 -1
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -36
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +16 -1
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +165 -128
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +208 -108
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +87 -49
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -789
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +154 -86
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +98 -99
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +46 -6
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -27
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +12 -11
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -27
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -13
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +47 -166
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +63 -209
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +164 -87
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +1 -19
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +175 -148
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +1 -104
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +34 -37
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +2 -1
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +21 -13
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +72 -22
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +19 -1
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +18 -183
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +8 -1
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +9 -40
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +13 -5
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +130 -21
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +5 -74
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +5 -16
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -22
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +219 -5
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -9
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +34 -11
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +179 -128
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +203 -5
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +98 -4
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +66 -5
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +51 -216
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +91 -11
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +40 -33
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +69 -174
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +80 -199
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +12 -100
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -61
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +16 -56
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +4 -93
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +22 -41
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +1 -79
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +64 -87
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +30 -12
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +2 -24
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +36 -17
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +18 -5
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +31 -22
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +31 -1
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +2 -64
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +93 -28
  301. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +10 -6
  302. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
  303. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +13 -8
  304. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +10 -19
  305. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +31 -6
  306. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +22 -13
  307. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +22 -14
  308. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
  309. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
  310. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
  311. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +2 -3
  312. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +8 -9
  313. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +16 -58
  314. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +95 -3
  315. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +4 -4
  316. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +7 -8
  317. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +18 -21
  318. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +8 -8
  319. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +2 -1
  320. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +14 -1
  321. package/dist/libs/tesouro-embedded-components-react/{shared/tag-selection/ui/dist/index3.js → settings-widget/tags/ui/dist/index5.js} +2 -1
  322. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
  323. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  324. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  325. package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
  326. package/package.json +1 -1
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
  334. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
  335. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
  336. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
  337. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
  338. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
  339. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
  340. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
  341. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
  342. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
  343. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
  344. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
  345. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
  346. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
  347. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
  348. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
  349. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
@@ -1,92 +1,160 @@
1
- import { ScopedCssBaselineContainerClassName as e } from "./index30.js";
1
+ import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
+ import "../../shared/data-access/dist/index.js";
2
3
  import { useMoniteContext as t } from "./index46.js";
3
- import { MoniteScopedProviders as n } from "./index241.js";
4
- import { classNames as r } from "./index348.js";
5
- import { InvoicesTable as i } from "./index453.js";
6
- import { QuotesTable as a } from "./index458.js";
7
- import { CreditNotesTable as o } from "./index459.js";
8
- import { useId as s, useState as c } from "react";
9
- import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
10
- import { Box as f, Tabs as p } from "@mui/material";
11
- import { useLingui as m } from "@lingui/react";
4
+ import { useCurrencies as n } from "./index62.js";
5
+ import { Button as r } from "./index55.js";
6
+ import { MoniteScopedProviders as i } from "./index241.js";
7
+ import { Sheet as a, SheetClose as o, SheetContent as s, SheetDescription as c, SheetHeader as l, SheetTitle as u } from "./index49.js";
8
+ import { LoadingSpinner as d } from "./index50.js";
9
+ import "./index51.js";
10
+ import { Skeleton as f } from "./index53.js";
11
+ import { DropdownMenu as p, DropdownMenuContent as m, DropdownMenuItem as h, DropdownMenuTrigger as g } from "./index54.js";
12
+ import { Typography as _ } from "./index61.js";
13
+ import { useUserPermissions as v } from "./index118.js";
14
+ import { NotFound as y } from "./index243.js";
15
+ import { AccessRestriction as b } from "./index251.js";
16
+ import "./index415.js";
17
+ import { useGetProductById as x } from "./index480.js";
18
+ import { ProductDeleteModal as S } from "./index539.js";
19
+ import { ProductEditForm as C } from "./index546.js";
20
+ import { ProductDetailLine as w } from "./index547.js";
21
+ import { useState as T } from "react";
22
+ import { MoreVerticalIcon as E, Trash2 as D, X as O } from "lucide-react";
23
+ import { Fragment as k, jsx as A, jsxs as j } from "@emotion/react/jsx-runtime";
24
+ import { useLingui as M } from "@lingui/react";
12
25
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js
13
- var h = {
14
- Invoices: 0,
15
- Quotes: 1,
16
- CreditNotes: 2,
17
- Financing: 3
18
- }, g = (e) => /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(_, { ...e }) }), _ = ({ initialCounterpartId: t, onRowClick: n, onTabChange: g, setIsCreateInvoiceDialogOpen: _, ...y }) => {
19
- let { tab: b, tabs: x } = v(y), { i18n: S } = m(), [C, w] = c(b ?? h.Invoices), T = `Monite-ReceivablesTable-Tabs-${s()}-`, E = x?.[C], D = (e) => {
20
- w(e), g?.(e);
21
- };
22
- return /* @__PURE__ */ d(l, { children: [
23
- /* @__PURE__ */ u(f, {
24
- className: r(e, "Monite-ReceivablesTable-Tabs"),
25
- children: /* @__PURE__ */ u(p, {
26
- value: C,
27
- variant: "standard",
28
- "aria-label": S._("Receivables tabs"),
29
- sx: { border: "none" },
30
- onChange: (e, t) => D(Number(t)),
31
- children: x?.map(({ label: e, query: t }, n) => null)
26
+ var N = (e) => /* @__PURE__ */ A(i, { children: /* @__PURE__ */ A(P, { ...e }) }), P = ({ id: i, open: N, onClose: P, onUpdated: F, onDeleted: I, showActionsMenu: L = !0 }) => {
27
+ let { i18n: R } = M(), { locale: z } = t(), { formatCurrencyToDisplay: B } = n(), [V, H] = T(!1), [U, W] = T(!1), { data: G, isLoading: K, isFetching: q } = x(i), J = G?.type === "product", Y = v(), X = Y.has(e.InvoiceReadOrg), Z = Y.has(e.InvoiceWriteOrg), Q = Y.has(e.InvoiceWriteOrg);
28
+ return X ? !K && !q && !G ? /* @__PURE__ */ A(a, {
29
+ open: N,
30
+ onOpenChange: P,
31
+ children: /* @__PURE__ */ A(s, {
32
+ showCloseButton: !0,
33
+ className: "ttw:gap-0",
34
+ children: /* @__PURE__ */ A("div", {
35
+ className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
36
+ children: /* @__PURE__ */ A(y, {
37
+ title: R._("Product not found"),
38
+ description: R._("There is no product by provided id: {id}", { id: i })
39
+ })
32
40
  })
33
- }),
34
- E?.query?.type === "quote" && /* @__PURE__ */ u(f, {
35
- role: "tabpanel",
36
- id: `${T}-${C}-tabpanel`,
37
- "aria-labelledby": `${T}-${C}-tab`,
38
- sx: {
39
- display: "flex",
40
- flexDirection: "column",
41
- height: "inherit",
42
- minHeight: "0"
43
- },
44
- children: /* @__PURE__ */ u(a, {
45
- onRowClick: n,
46
- setIsCreateInvoiceDialogOpen: _,
47
- query: E?.query
48
- }, C)
49
- }),
50
- E?.query?.type === "invoice" && /* @__PURE__ */ u(f, {
51
- role: "tabpanel",
52
- id: `${T}-${C}-tabpanel`,
53
- "aria-labelledby": `${T}-${C}-tab`,
54
- sx: {
55
- display: "flex",
56
- flexDirection: "column",
57
- height: "inherit",
58
- minHeight: "0"
59
- },
60
- children: /* @__PURE__ */ u(i, {
61
- initialCounterpartId: t,
62
- onRowClick: n,
63
- setIsCreateInvoiceDialogOpen: _,
64
- query: E?.query
65
- }, C)
66
- }),
67
- E?.query?.type === "credit_note" && /* @__PURE__ */ u(f, {
68
- role: "tabpanel",
69
- id: `${T}-${C}-tabpanel`,
70
- "aria-labelledby": `${T}-${C}-tab`,
71
- sx: {
72
- display: "flex",
73
- flexDirection: "column",
74
- height: "inherit",
75
- minHeight: "0"
76
- },
77
- children: /* @__PURE__ */ u(o, {
78
- onRowClick: n,
79
- setIsCreateInvoiceDialogOpen: _,
80
- query: E?.query
81
- }, C)
82
41
  })
83
- ] });
84
- }, v = (e) => {
85
- let { componentSettings: n } = t();
86
- return {
87
- tab: e?.tab ?? n?.receivables?.tab,
88
- tabs: e?.tabs ?? n?.receivables?.tabs
89
- };
42
+ }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(a, {
43
+ open: N,
44
+ onOpenChange: P,
45
+ children: /* @__PURE__ */ j(s, {
46
+ showCloseButton: !1,
47
+ className: "ttw:gap-0",
48
+ children: [/* @__PURE__ */ j(l, {
49
+ className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
50
+ children: [/* @__PURE__ */ j("div", {
51
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
52
+ children: [/* @__PURE__ */ A(u, {
53
+ asChild: K,
54
+ className: "ttw:text-2xl",
55
+ children: K ? /* @__PURE__ */ A(f, { className: "ttw:w-40" }) : G?.name ?? ""
56
+ }), /* @__PURE__ */ A(c, {
57
+ asChild: K,
58
+ children: K ? /* @__PURE__ */ A(f, { className: "ttw:w-60" }) : R._("{type} · Added {createdAt}", {
59
+ createdAt: R.date(G?.created_at, z.dateFormat),
60
+ type: G?.type === "product" ? "Product" : "Service"
61
+ })
62
+ })]
63
+ }), /* @__PURE__ */ j("div", {
64
+ className: "ttw:flex ttw:gap-2",
65
+ children: [L && Q && /* @__PURE__ */ j(p, { children: [/* @__PURE__ */ A(g, {
66
+ asChild: !0,
67
+ children: /* @__PURE__ */ A(r, {
68
+ type: "button",
69
+ variant: "outline",
70
+ className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
71
+ children: /* @__PURE__ */ A(E, {})
72
+ })
73
+ }), /* @__PURE__ */ A(m, {
74
+ align: "end",
75
+ children: /* @__PURE__ */ j(h, {
76
+ onClick: () => W(!0),
77
+ variant: "destructive",
78
+ children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
79
+ })
80
+ })] }), /* @__PURE__ */ A(o, {
81
+ className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
82
+ children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
83
+ })]
84
+ })]
85
+ }), K ? /* @__PURE__ */ A("div", {
86
+ className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
87
+ children: /* @__PURE__ */ A(d, {})
88
+ }) : /* @__PURE__ */ A("main", {
89
+ className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
90
+ children: /* @__PURE__ */ j("div", {
91
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
92
+ children: [/* @__PURE__ */ j("div", {
93
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
94
+ children: [/* @__PURE__ */ j("div", {
95
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
96
+ children: [/* @__PURE__ */ A(_, {
97
+ variant: "body1",
98
+ className: "ttw:font-medium",
99
+ children: R._("{type} details", { type: J ? "Product" : "Service" })
100
+ }), /* @__PURE__ */ A(_, {
101
+ variant: "body2",
102
+ color: "muted",
103
+ children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
104
+ })]
105
+ }), !V && Z && /* @__PURE__ */ A(r, {
106
+ type: "button",
107
+ variant: "ghost",
108
+ className: "ttw:text-primary ttw:hover:text-primary",
109
+ onClick: () => H(!0),
110
+ children: R._("Edit")
111
+ })]
112
+ }), V && G ? /* @__PURE__ */ A(C, {
113
+ product: G,
114
+ handleClose: () => H(!1),
115
+ onUpdate: (e) => {
116
+ F?.(e), H(!1);
117
+ }
118
+ }) : /* @__PURE__ */ j("ul", {
119
+ className: "ttw:list-none",
120
+ children: [
121
+ /* @__PURE__ */ A(w, {
122
+ label: R._("{type} name", { type: J ? "Product" : "Service" }),
123
+ value: G?.name ?? "-"
124
+ }),
125
+ /* @__PURE__ */ A(w, {
126
+ label: R._("Price per unit"),
127
+ value: G?.price ? B(G.price.value, G.price.currency) : "-"
128
+ }),
129
+ /* @__PURE__ */ A(w, {
130
+ label: R._("Description"),
131
+ value: G?.description || "-",
132
+ isLast: !0
133
+ })
134
+ ]
135
+ })]
136
+ })
137
+ })]
138
+ })
139
+ }), i && U && /* @__PURE__ */ A(S, {
140
+ id: i,
141
+ open: U,
142
+ onClose: () => W(!1),
143
+ onDeleted: (e) => {
144
+ P?.(), I?.(e), W(!1);
145
+ }
146
+ })] }) : /* @__PURE__ */ A(a, {
147
+ open: N,
148
+ onOpenChange: P,
149
+ children: /* @__PURE__ */ A(s, {
150
+ showCloseButton: !0,
151
+ className: "ttw:gap-0",
152
+ children: /* @__PURE__ */ A("div", {
153
+ className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
154
+ children: /* @__PURE__ */ A(b, {})
155
+ })
156
+ })
157
+ });
90
158
  };
91
159
  //#endregion
92
- export { g as ReceivablesTable, h as ReceivablesTableTabEnum, v as useReceivablesTableProps };
160
+ export { N as ProductDetails };
@@ -1,105 +1,104 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { Button as t } from "./index55.js";
4
- import { useComponentSettings as n } from "./index220.js";
1
+ import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index26.js";
2
+ import { useCurrencies as n } from "./index62.js";
3
+ import { Button as r } from "./index55.js";
5
4
  import "./index222.js";
6
- import { MoniteScopedProviders as r } from "./index241.js";
7
- import { useUserPermissions as i } from "./index118.js";
8
- import { AccessRestriction as a } from "./index251.js";
9
- import "./index253.js";
10
- import { CreateReceivables as o } from "./index517.js";
11
- import { ReceivablesTable as s, ReceivablesTableTabEnum as c } from "./index548.js";
12
- import { ActionsModal as l } from "./index528.js";
13
- import { InvoiceDetailsPanel as u } from "./index547.js";
14
- import { useCallback as d, useEffect as f, useRef as p, useState as m } from "react";
15
- import { Fragment as h, jsx as g, jsxs as _ } from "@emotion/react/jsx-runtime";
16
- import { useLingui as v } from "@lingui/react";
5
+ import { MoniteScopedProviders as i } from "./index241.js";
6
+ import { Sheet as a, SheetClose as o, SheetContent as s, SheetDescription as c, SheetFooter as l, SheetHeader as u, SheetTitle as d } from "./index49.js";
7
+ import { LoadingSpinner as f } from "./index50.js";
8
+ import "./index51.js";
9
+ import { getProductValidationSchema as p } from "./index470.js";
10
+ import { useCreateProduct as m } from "./index478.js";
11
+ import "./index483.js";
12
+ import { PRODUCT_API_FIELD_MAP as h } from "./index541.js";
13
+ import { ProductFormContent as g } from "./index545.js";
14
+ import { useCallback as _, useId as v, useMemo as y } from "react";
15
+ import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
16
+ import { useLingui as S } from "@lingui/react";
17
+ import { FormProvider as C, useForm as w } from "react-hook-form";
18
+ import { zodResolver as T } from "@hookform/resolvers/zod";
17
19
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js
18
- var y = (e) => /* @__PURE__ */ g(r, { children: /* @__PURE__ */ g(b, { ...e }) }), b = ({ pageTitleComponent: r, embeddedBankName: y, initialView: b, initialCounterpartId: x }) => {
19
- let { i18n: S } = v(), { componentSettings: C, receivablesCallbacks: w } = n(), [T, E] = m(""), [D, O] = m(!1), [k, A] = m(null), [j, M] = m(void 0), N = p(!1), [P, F] = m(C.receivables.tab ?? c.Invoices), I = d((e) => {
20
- E(e);
21
- }, []), L = d((e) => {
22
- I(e);
23
- }, [I]), R = d(() => {
24
- E("");
25
- }, []), z = d(() => {
26
- O(!1), M(void 0);
27
- }, []), B = d((e, t) => {
28
- z(), F(c.Invoices), t.mode === "issue" ? t.hasCustomerEmail ? A({
29
- action: "issue",
30
- showEmailStep: !0,
31
- receivableId: e,
32
- counterpartId: t.counterpartId,
33
- inlineLineItems: t.inlineLineItems
34
- }) : t.inlineLineItems.length > 0 && A({
35
- action: "issue",
36
- showEmailStep: !1,
37
- receivableId: e,
38
- counterpartId: t.counterpartId,
39
- inlineLineItems: t.inlineLineItems
40
- }) : (t.mode === "draft" || t.mode === "recurrence") && (E(e), t.inlineLineItems.length > 0 && A({
41
- action: t.mode,
42
- showEmailStep: !1,
43
- receivableId: e,
44
- counterpartId: t.counterpartId,
45
- inlineLineItems: t.inlineLineItems
46
- })), w.onCreate?.(e);
20
+ var E = (e) => /* @__PURE__ */ b(i, { children: /* @__PURE__ */ b(D, { ...e }) }), D = ({ onClose: i, open: E, onCreated: D }) => {
21
+ let { i18n: O } = S(), { formatToMinorUnits: k } = n(), A = `product-form-${v()}`, { mutate: j, isPending: M } = m(D), N = y(() => ({
22
+ name: "",
23
+ type: "product",
24
+ measureUnitId: "",
25
+ pricePerUnit: void 0,
26
+ currency: "USD",
27
+ description: void 0
28
+ }), []), { watch: P, ...F } = w({
29
+ resolver: T(p(O)),
30
+ defaultValues: N
31
+ }), I = P("type"), L = !!P("name")?.trim() && P("pricePerUnit") !== void 0, R = _((n) => {
32
+ n.preventDefault(), n.stopPropagation(), F.handleSubmit((n) => {
33
+ j({ body: {
34
+ name: n.name,
35
+ type: n.type,
36
+ price: {
37
+ value: k(n.pricePerUnit, n.currency) ?? 0,
38
+ currency: n.currency
39
+ },
40
+ description: n.description,
41
+ ...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
42
+ } }, { onError: (n) => {
43
+ e(F.setError, t(n), { fieldMap: h });
44
+ } });
45
+ })(n);
47
46
  }, [
48
- w,
49
- F,
50
- z
51
- ]), V = i(), H = V.has(e.InvoiceWriteOrg), U = V.has(e.InvoiceReadOrg);
52
- return f(() => {
53
- N.current || b === "create" && H && (N.current = !0, M(x), O(!0));
54
- }, [
55
- b,
56
- H,
57
- x
58
- ]), /* @__PURE__ */ _(h, { children: [
59
- r(/* @__PURE__ */ g(h, { children: /* @__PURE__ */ g(t, {
60
- id: "actions",
61
- size: "lg",
62
- disabled: !H,
63
- onClick: () => {
64
- M(void 0), O(!0);
65
- },
66
- children: S._("Create Invoice")
67
- }) })),
68
- !U && /* @__PURE__ */ g(a, {}),
69
- U && /* @__PURE__ */ g(s, {
70
- initialCounterpartId: b === "create" ? void 0 : x,
71
- tab: P,
72
- onTabChange: F,
73
- onRowClick: L,
74
- setIsCreateInvoiceDialogOpen: O
75
- }),
76
- !!T && /* @__PURE__ */ g(u, {
77
- open: !0,
78
- invoiceId: T,
79
- onCloseInvoiceDetails: R,
80
- onDuplicate: I,
81
- openInvoiceDetails: I,
82
- embeddedBankName: y
83
- }),
84
- D && /* @__PURE__ */ g(o, {
85
- open: !0,
86
- type: "invoice",
87
- embeddedBankName: y,
88
- initialCounterpartId: j,
89
- onCreate: B,
90
- onOpenChange: z
91
- }),
92
- k && /* @__PURE__ */ g(l, {
93
- open: !0,
94
- action: k.action,
95
- inlineLineItems: k.inlineLineItems,
96
- issue: k.showEmailStep ? {
97
- receivableId: k.receivableId,
98
- counterpartId: k.counterpartId
99
- } : void 0,
100
- onClose: () => A(null)
47
+ j,
48
+ k,
49
+ F.handleSubmit,
50
+ F.setError
51
+ ]);
52
+ return /* @__PURE__ */ b(a, {
53
+ open: E,
54
+ onOpenChange: i,
55
+ children: /* @__PURE__ */ x(s, {
56
+ className: "ttw:gap-0",
57
+ children: [
58
+ /* @__PURE__ */ x(u, {
59
+ className: "ttw:border-b ttw:border-border",
60
+ children: [/* @__PURE__ */ b(d, {
61
+ className: "ttw:text-2xl",
62
+ children: O._("Add a product or service")
63
+ }), /* @__PURE__ */ b(c, {
64
+ className: "ttw:max-w-130",
65
+ children: O._("Save the products and services you sell so you can quickly add them as line items on invoices.")
66
+ })]
67
+ }),
68
+ /* @__PURE__ */ b("div", {
69
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto",
70
+ children: /* @__PURE__ */ b(C, {
71
+ ...F,
72
+ watch: P,
73
+ children: /* @__PURE__ */ b("form", {
74
+ id: A,
75
+ onSubmit: R,
76
+ children: /* @__PURE__ */ b(g, { isLoading: M })
77
+ })
78
+ })
79
+ }),
80
+ /* @__PURE__ */ x(l, {
81
+ className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
82
+ children: [/* @__PURE__ */ b(o, {
83
+ asChild: !0,
84
+ children: /* @__PURE__ */ b(r, {
85
+ variant: "outline",
86
+ disabled: M,
87
+ className: "ttw:flex-1 ttw:border-border",
88
+ children: O._("Cancel")
89
+ })
90
+ }), /* @__PURE__ */ x(r, {
91
+ type: "submit",
92
+ form: A,
93
+ className: "ttw:flex-1",
94
+ title: O._("Complete the form to continue"),
95
+ disabled: M || !L,
96
+ children: [M && /* @__PURE__ */ b(f, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
97
+ })]
98
+ })
99
+ ]
101
100
  })
102
- ] });
101
+ });
103
102
  };
104
103
  //#endregion
105
- export { y as Receivables };
104
+ export { E as CreateProduct };
@@ -1,6 +1,46 @@
1
- import "./index453.js";
2
- import "./index458.js";
3
- import "./index459.js";
4
- import "./index517.js";
5
- import "./index548.js";
6
- import "./index549.js";
1
+ import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
+ import "../../shared/data-access/dist/index.js";
3
+ import { MoniteScopedProviders as t } from "./index241.js";
4
+ import { useUserPermissions as n } from "./index118.js";
5
+ import { AccessRestriction as r } from "./index251.js";
6
+ import "./index253.js";
7
+ import { ProductsTable as i } from "./index544.js";
8
+ import { ProductDetails as a } from "./index548.js";
9
+ import { CreateProduct as o } from "./index549.js";
10
+ import { useCallback as s, useState as c } from "react";
11
+ import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
12
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js
13
+ var f = (e) => /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(p, { ...e }) }), p = ({ pageTitleComponent: t }) => {
14
+ let f = n().has(e.InvoiceReadOrg), [p, m] = c(void 0), [h, g] = c(!1), _ = s((e) => {
15
+ m(e);
16
+ }, []), v = s(() => {
17
+ m(void 0);
18
+ }, []), y = s(() => {
19
+ g(!1);
20
+ }, []), b = s(() => {
21
+ g(!0);
22
+ }, []), x = s((e) => {
23
+ m(e);
24
+ }, []);
25
+ return /* @__PURE__ */ d(l, { children: [
26
+ t(/* @__PURE__ */ u(l, {})),
27
+ !f && /* @__PURE__ */ u(r, {}),
28
+ f && /* @__PURE__ */ u(i, {
29
+ onRowClick: _,
30
+ onDeleted: x,
31
+ openCreateModal: b
32
+ }),
33
+ h && /* @__PURE__ */ u(o, {
34
+ open: !0,
35
+ onClose: y,
36
+ onCreated: y
37
+ }),
38
+ !!p && p && /* @__PURE__ */ u(a, {
39
+ id: p,
40
+ open: !0,
41
+ onClose: v
42
+ })
43
+ ] });
44
+ };
45
+ //#endregion
46
+ export { f as Products };
@@ -1,27 +1,4 @@
1
- import { ConfirmationModal as e } from "./index58.js";
2
- import "./index59.js";
3
- import { useGetProductById as t } from "./index492.js";
4
- import { useDeleteProduct as n } from "./index493.js";
5
- import "./index495.js";
6
- import { jsx as r } from "@emotion/react/jsx-runtime";
7
- import { useLingui as i } from "@lingui/react";
8
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js
9
- var a = ({ id: a, open: o, onClose: s, onDeleted: c }) => {
10
- let { i18n: l } = i(), { data: u } = t(a), d = n(a, () => {
11
- s(), c?.(a);
12
- });
13
- return u ? /* @__PURE__ */ r(e, {
14
- open: o && !!a,
15
- title: l._("Delete \"{name}\"?", { name: u.name }),
16
- message: l._("It will remain in all the documents where it is added. You can't undo this action."),
17
- confirmLabel: l._("Delete"),
18
- cancelLabel: l._("Cancel"),
19
- onClose: s,
20
- onConfirm: () => {
21
- d.mutate(void 0);
22
- },
23
- isLoading: d.isPending
24
- }) : null;
25
- };
26
- //#endregion
27
- export { a as ProductDeleteModal };
1
+ import "./index544.js";
2
+ import "./index548.js";
3
+ import "./index549.js";
4
+ import "./index550.js";
@@ -1,15 +1,16 @@
1
- import { Badge as e } from "./index228.js";
1
+ import { useEntityUserById as e } from "./index135.js";
2
+ import "./index144.js";
2
3
  import { jsx as t } from "@emotion/react/jsx-runtime";
3
- import { useLingui as n } from "@lingui/react";
4
- import { twMerge as r } from "tailwind-merge";
4
+ import { Skeleton as n } from "@mui/material";
5
5
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js
6
- var i = ({ type: i }) => {
7
- let { i18n: a } = n(), o = i === "product", s = o ? a._("Product") : a._("Service");
8
- return /* @__PURE__ */ t(e, {
9
- variant: "secondary",
10
- className: r(o ? "ttw:bg-blue-100 ttw:text-blue-700" : "ttw:bg-pink-100 ttw:text-pink-700"),
11
- children: s
12
- });
6
+ var r = ({ id: r }) => {
7
+ let { data: i, isLoading: a } = e(r);
8
+ return /* @__PURE__ */ t("span", { children: a ? /* @__PURE__ */ t(n, {
9
+ animation: "wave",
10
+ height: 10,
11
+ width: "100%",
12
+ sx: { minWidth: "4em" }
13
+ }) : !!i && `${i?.first_name || ""} ${i?.last_name || ""}` });
13
14
  };
14
15
  //#endregion
15
- export { i as ProductType };
16
+ export { r as UserCell };
@@ -1,11 +1,27 @@
1
+ import { useMoniteContext as e } from "./index46.js";
2
+ import { MoniteScopedProviders as t } from "./index241.js";
3
+ import { ConfirmationModal as n } from "./index58.js";
4
+ import "./index59.js";
5
+ import { jsx as r } from "@emotion/react/jsx-runtime";
6
+ import { toast as i } from "react-hot-toast";
7
+ import { useLingui as a } from "@lingui/react";
1
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js
2
- var e = "search", t = {
3
- name: "name",
4
- type: "type",
5
- description: "description",
6
- "price.value": "pricePerUnit",
7
- "price.currency": "currency",
8
- measure_unit_id: "measureUnitId"
9
+ var o = (e) => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(s, { ...e }) }), s = ({ tag: t, onClose: o, onDelete: s, modalOpened: c }) => {
10
+ let { i18n: l } = a(), u = t?.id, { api: d, queryClient: f } = e(), p = d.finops.deleteTagsId.useMutation({ path: { tag_id: u ?? "" } }, { onSuccess: () => (d.finops.getTagsId.removeQueries({ parameters: { path: { tag_id: u } } }, f), d.finops.getTags.invalidateQueries(f)) });
11
+ return /* @__PURE__ */ r(n, {
12
+ open: c,
13
+ title: l._("Delete “{tagName}” tag?", { tagName: t.name }),
14
+ message: l._("This action can’t be undone."),
15
+ confirmLabel: l._("Delete"),
16
+ cancelLabel: l._("Cancel"),
17
+ onClose: o,
18
+ onConfirm: () => {
19
+ p.mutate(void 0, { onSuccess: () => {
20
+ i.success(l._("Tag “{tagName}” was deleted", { tagName: t.name })), o?.(), s?.(t.id);
21
+ } });
22
+ },
23
+ isLoading: p.isPending
24
+ });
9
25
  };
10
26
  //#endregion
11
- export { e as FILTER_TYPE_SEARCH, t as PRODUCT_API_FIELD_MAP };
27
+ export { o as ConfirmDeleteModal };
@@ -1,27 +1 @@
1
- import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "./index109.js";
2
- import { useDebounceCallback as r } from "./index218.js";
3
- import { FILTER_TYPE_SEARCH as i } from "./index553.js";
4
- import { Search as a } from "lucide-react";
5
- import { jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
6
- import { useLingui as c } from "@lingui/react";
7
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js
8
- var l = ({ onChangeFilter: l }) => {
9
- let { i18n: u } = c(), d = r((e) => {
10
- l(i, e);
11
- }, 500);
12
- return /* @__PURE__ */ o("div", {
13
- className: "ttw:flex ttw:justify-between ttw:items-center ttw:gap-4",
14
- children: /* @__PURE__ */ s(e, {
15
- className: "ttw:w-80",
16
- children: [/* @__PURE__ */ o(t, {
17
- align: "inline-start",
18
- children: /* @__PURE__ */ o(a, {})
19
- }), /* @__PURE__ */ o(n, {
20
- placeholder: u._("Search by name"),
21
- onChange: (e) => d(e.target.value)
22
- })]
23
- })
24
- });
25
- };
26
- //#endregion
27
- export { l as Filters };
1
+ import "./index553.js";