@tesouro/embedded-components-react 0.3.20 → 0.3.23

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 (243) hide show
  1. package/dist/index.css +9 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/monite-sdk.js +18 -18
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +15 -15
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +31 -32
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +42 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +158 -43
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +33 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +1 -16
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +45 -12
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +4 -64
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +13 -26
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +14 -62
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +56 -123
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +18 -3
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +15 -10
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +61 -40
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +130 -50
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +20 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +38 -69
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +48 -46
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +5 -93
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +71 -34
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +48 -139
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +91 -66
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -5
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +34 -22
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +144 -210
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +63 -209
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +21 -103
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +209 -12
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +211 -44
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +104 -30
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +12 -165
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +47 -35
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +29 -99
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +64 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +166 -12
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +34 -243
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +104 -4
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +12 -27
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +259 -81
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +4 -145
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +33 -3
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +82 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +155 -37
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +2 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +2 -6
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +2 -6
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +43 -9
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +1 -94
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +8 -3
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +7 -5
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +85 -13
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +3 -59
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +9 -3
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +19 -120
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +56 -8
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +3 -32
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +3 -46
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +116 -15
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -28
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +43 -83
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +19 -47
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +27 -249
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +82 -109
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +47 -206
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +253 -4
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +111 -6
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +6 -39
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +197 -102
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -0
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +6 -23
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +114 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +1 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +25 -0
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +5 -24
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +3 -162
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -6
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +10 -11
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +123 -8
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -170
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +18 -2
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +7 -11
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +163 -82
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -0
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +89 -0
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
  239. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
  240. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  241. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  242. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  243. package/package.json +1 -1
@@ -1,105 +1,92 @@
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 "./index56.js";
4
- import { useComponentSettings as n } from "./index215.js";
5
- import "./index217.js";
6
- import { MoniteScopedProviders as r } from "./index237.js";
7
- import { useUserPermissions as i } from "./index116.js";
8
- import { AccessRestriction as a } from "./index247.js";
9
- import "./index249.js";
10
- import { CreateReceivables as o } from "./index512.js";
11
- import { ReceivablesTable as s, ReceivablesTableTabEnum as c } from "./index542.js";
12
- import { ActionsModal as l } from "./index522.js";
13
- import { InvoiceDetailsPanel as u } from "./index541.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";
1
+ import { ScopedCssBaselineContainerClassName as e } from "./index31.js";
2
+ import { useMoniteContext as t } from "./index47.js";
3
+ import { MoniteScopedProviders as n } from "./index237.js";
4
+ import { classNames as r } from "./index344.js";
5
+ import { InvoicesTable as i } from "./index449.js";
6
+ import { QuotesTable as a } from "./index454.js";
7
+ import { CreditNotesTable as o } from "./index455.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";
17
12
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index543.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);
47
- }, [
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
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)
32
+ })
75
33
  }),
76
- !!T && /* @__PURE__ */ g(u, {
77
- open: !0,
78
- invoiceId: T,
79
- onCloseInvoiceDetails: R,
80
- onDuplicate: I,
81
- openInvoiceDetails: I,
82
- embeddedBankName: y
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)
83
49
  }),
84
- D && /* @__PURE__ */ g(o, {
85
- open: !0,
86
- type: "invoice",
87
- embeddedBankName: y,
88
- initialCounterpartId: j,
89
- onCreate: B,
90
- onOpenChange: z
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)
91
66
  }),
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)
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)
101
82
  })
102
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
+ };
103
90
  };
104
91
  //#endregion
105
- export { y as Receivables };
92
+ export { g as ReceivablesTable, h as ReceivablesTableTabEnum, v as useReceivablesTableProps };
@@ -1,6 +1,105 @@
1
- import "./index449.js";
2
- import "./index454.js";
3
- import "./index455.js";
4
- import "./index512.js";
5
- import "./index542.js";
6
- import "./index543.js";
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 "./index56.js";
4
+ import { useComponentSettings as n } from "./index215.js";
5
+ import "./index217.js";
6
+ import { MoniteScopedProviders as r } from "./index237.js";
7
+ import { useUserPermissions as i } from "./index116.js";
8
+ import { AccessRestriction as a } from "./index247.js";
9
+ import "./index249.js";
10
+ import { CreateReceivables as o } from "./index513.js";
11
+ import { ReceivablesTable as s, ReceivablesTableTabEnum as c } from "./index543.js";
12
+ import { ActionsModal as l } from "./index523.js";
13
+ import { InvoiceDetailsPanel as u } from "./index542.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";
17
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index544.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);
47
+ }, [
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)
101
+ })
102
+ ] });
103
+ };
104
+ //#endregion
105
+ export { y as Receivables };
@@ -1,27 +1,6 @@
1
- import { ConfirmationModal as e } from "./index59.js";
2
- import "./index60.js";
3
- import { useGetProductById as t } from "./index487.js";
4
- import { useDeleteProduct as n } from "./index488.js";
5
- import "./index490.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/index545.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 "./index449.js";
2
+ import "./index454.js";
3
+ import "./index455.js";
4
+ import "./index513.js";
5
+ import "./index543.js";
6
+ import "./index544.js";
@@ -1,15 +1,27 @@
1
- import { Badge as e } from "./index223.js";
2
- 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";
1
+ import { ConfirmationModal as e } from "./index59.js";
2
+ import "./index60.js";
3
+ import { useGetProductById as t } from "./index488.js";
4
+ import { useDeleteProduct as n } from "./index489.js";
5
+ import "./index491.js";
6
+ import { jsx as r } from "@emotion/react/jsx-runtime";
7
+ import { useLingui as i } from "@lingui/react";
5
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index546.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
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
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;
13
25
  };
14
26
  //#endregion
15
- export { i as ProductType };
27
+ export { a as ProductDeleteModal };
@@ -1,4 +1,15 @@
1
+ import { Badge as e } from "./index223.js";
2
+ 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";
1
5
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js
2
- var e = "search";
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
+ });
13
+ };
3
14
  //#endregion
4
- export { e as FILTER_TYPE_SEARCH };
15
+ export { i as ProductType };
@@ -1,27 +1,4 @@
1
- import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "./index107.js";
2
- import { useDebounceCallback as r } from "./index213.js";
3
- import { FILTER_TYPE_SEARCH as i } from "./index547.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
1
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index548.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
- };
2
+ var e = "search";
26
3
  //#endregion
27
- export { l as Filters };
4
+ export { e as FILTER_TYPE_SEARCH };
@@ -1,16 +1,27 @@
1
- import { useMoniteContext as e } from "./index47.js";
2
- import { Skeleton as t } from "./index54.js";
3
- import { Typography as n } from "./index62.js";
4
- import { memo as r } from "react";
5
- import { jsx as i } from "@emotion/react/jsx-runtime";
1
+ import { InputGroup as e, InputGroupAddon as t, InputGroupInput as n } from "./index107.js";
2
+ import { useDebounceCallback as r } from "./index213.js";
3
+ import { FILTER_TYPE_SEARCH as i } from "./index548.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";
6
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js
7
- var a = r(({ unitId: r }) => {
8
- let { api: a } = e(), { data: o, isLoading: s } = a.finops.getMeasureUnitsId.useQuery({ path: { unit_id: r } });
9
- return s ? /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4" }) : o ? /* @__PURE__ */ i(n, {
10
- color: "muted",
11
- variant: "body2",
12
- children: o.name
13
- }) : null;
14
- });
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
+ };
15
26
  //#endregion
16
- export { a as MeasureUnit };
27
+ export { l as Filters };
@@ -1,173 +1,16 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { useMoniteContext as t } from "./index47.js";
4
- import { useCurrencies as n } from "./index63.js";
5
- import { Button as r } from "./index56.js";
6
- import "./index217.js";
7
- import { MoniteScopedProviders as i } from "./index237.js";
8
- import { useUserPermissions as a } from "./index116.js";
9
- import { GetNoRowsOverlay as o } from "./index246.js";
10
- import { AccessRestriction as s } from "./index247.js";
11
- import "./index249.js";
12
- import { DataTable as c } from "./index251.js";
13
- import { hasSelectedText as l } from "./index252.js";
14
- import { useGetProducts as u } from "./index387.js";
15
- import "./index490.js";
16
- import { ManageMeasureUnits as d } from "./index492.js";
17
- import { ProductDeleteModal as f } from "./index545.js";
18
- import { ProductType as p } from "./index546.js";
19
- import { FILTER_TYPE_SEARCH as m } from "./index547.js";
20
- import { Filters as ee } from "./index548.js";
21
- import { MeasureUnit as h } from "./index549.js";
22
- import { useCallback as g, useMemo as _, useState as v } from "react";
23
- import { ArrowDown as y, ArrowUp as b, ArrowUpDown as x, Plus as S } from "lucide-react";
24
- import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
25
- import { useLingui as E } from "@lingui/react";
1
+ import { useMoniteContext as e } from "./index47.js";
2
+ import { Skeleton as t } from "./index54.js";
3
+ import { Typography as n } from "./index62.js";
4
+ import { memo as r } from "react";
5
+ import { jsx as i } from "@emotion/react/jsx-runtime";
26
6
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js
27
- var D = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(O, { ...e }) }), O = ({ onFilterChanged: i, onSortChanged: D, onRowClick: O, onDeleted: k, openCreateModal: A }) => {
28
- let { i18n: j } = E(), { componentSettings: M } = t(), { formatCurrencyToDisplay: N } = n(), [P, F] = v(!1), [I, L] = v(void 0), [R, z] = v(M.products.pageSizeOptions[0]), [B, te] = v({}), [V, H] = v(), [U, W] = v({
29
- open: !1,
30
- id: null
31
- }), G = a(), K = G.has(e.InvoiceWriteOrg), q = G.has(e.InvoiceReadOrg), { data: J, isLoading: Y, isError: X, refetch: Z } = u({
32
- sort: V?.field,
33
- order: V?.sort,
34
- limit: R,
35
- pagination_token: I,
36
- name__icontains: B.search || void 0
37
- }), Q = (e, t) => {
38
- L(void 0), te((n) => ({
39
- ...n,
40
- [e]: t === "all" ? null : t
41
- })), i?.({
42
- field: e,
43
- value: t
44
- });
45
- }, $ = _(() => V ? [{
46
- id: V.field,
47
- desc: V.sort === "desc"
48
- }] : [], [V]), ne = g((e) => {
49
- let t = typeof e == "function" ? e($) : e;
50
- if (t.length > 0) {
51
- let e = {
52
- field: t[0].id,
53
- sort: t[0].desc ? "desc" : "asc"
54
- };
55
- H(e), D?.(e);
56
- } else H(void 0);
57
- L(void 0);
58
- }, [$, D]), re = _(() => [
59
- {
60
- accessorKey: "name",
61
- header: ({ column: e }) => {
62
- let t = e.getIsSorted();
63
- return /* @__PURE__ */ T("div", {
64
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
65
- children: [j._("Name"), /* @__PURE__ */ w(r, {
66
- variant: "ghost",
67
- onClick: () => e.toggleSorting(t === "asc"),
68
- children: w(t === "asc" ? b : t === "desc" ? y : x, { className: "ttw:size-4" })
69
- })]
70
- });
71
- },
72
- cell: ({ row: e }) => /* @__PURE__ */ w("span", { children: e.original.name })
73
- },
74
- {
75
- accessorKey: "type",
76
- header: j._("Type"),
77
- cell: ({ row: e }) => e.original.type ? /* @__PURE__ */ w(p, { type: e.original.type }) : null
78
- },
79
- {
80
- accessorKey: "description",
81
- header: j._("Description"),
82
- cell: ({ row: e }) => /* @__PURE__ */ w("div", {
83
- className: "ttw:w-120",
84
- children: /* @__PURE__ */ w("span", {
85
- className: "ttw:w-full ttw:inline-block ttw:truncate",
86
- children: e.original?.description
87
- })
88
- })
89
- },
90
- {
91
- accessorKey: "price",
92
- header: () => /* @__PURE__ */ w("div", {
93
- className: "ttw:text-right",
94
- children: j._("Price per unit")
95
- }),
96
- cell: ({ row: e }) => {
97
- let t = e.original.price;
98
- return /* @__PURE__ */ T("div", {
99
- className: "ttw:justify-end ttw:flex ttw:gap-1 ttw:items-center",
100
- children: [t ? N(t.value, t.currency) : "", /* @__PURE__ */ w(h, { unitId: e.original.measure_unit_id ?? "" })]
101
- });
102
- }
103
- }
104
- ], [j, N]), ie = Object.keys(B).some((e) => B[e] !== null && B[e] !== void 0), ae = !!B[m];
105
- return q ? /* @__PURE__ */ T(C, { children: [
106
- /* @__PURE__ */ w("div", {
107
- className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
108
- children: /* @__PURE__ */ w(c, {
109
- columns: re,
110
- data: J?.data ?? [],
111
- sorting: $,
112
- onSortingChange: ne,
113
- pageSize: R,
114
- onPageSizeChange: z,
115
- nextPaginationToken: J?.next_pagination_token ?? void 0,
116
- prevPaginationToken: J?.prev_pagination_token ?? void 0,
117
- onPaginationTokenChange: L,
118
- onRowClick: (e) => {
119
- l() || O?.(e.id);
120
- },
121
- filterComponent: /* @__PURE__ */ T("div", {
122
- className: "ttw:flex ttw:items-center ttw:justify-between ttw:px-4",
123
- children: [/* @__PURE__ */ w(ee, { onChangeFilter: Q }), /* @__PURE__ */ T("div", {
124
- className: "ttw:flex ttw:gap-2",
125
- children: [/* @__PURE__ */ w(r, {
126
- variant: "ghost",
127
- onClick: () => F(!0),
128
- className: "ttw:py-0 ttw:text-primary ttw:hover:text-primary",
129
- children: j._("Manage units of measure")
130
- }), /* @__PURE__ */ T(r, {
131
- disabled: !K,
132
- onClick: A,
133
- className: "ttw:py-0",
134
- children: [/* @__PURE__ */ w(S, {}), j._("Add product or service")]
135
- })]
136
- })]
137
- }),
138
- children: /* @__PURE__ */ w(o, {
139
- isLoading: Y,
140
- dataLength: J?.data.length || 0,
141
- isFiltering: ie,
142
- isSearching: ae,
143
- isError: X,
144
- onCreate: A,
145
- refetch: Z,
146
- filterTitle: j._("No product or service found"),
147
- filterDescription1: j._("Try adjusting your search or filter criteria"),
148
- entityName: j._("products or services"),
149
- actionButtonLabel: j._("Add your first product or service"),
150
- actionOptions: [j._("Product")],
151
- noDataTitle: j._("Build your products & services list."),
152
- noDataDescription1: j._("Save the products and services you sell so you can quickly add them as line items on invoices."),
153
- type: "no-data"
154
- })
155
- })
156
- }),
157
- U.id && /* @__PURE__ */ w(f, {
158
- id: U.id,
159
- open: U.open,
160
- onDeleted: k,
161
- onClose: () => W((e) => ({
162
- ...e,
163
- open: !1
164
- }))
165
- }),
166
- P && /* @__PURE__ */ w(d, {
167
- open: P,
168
- handleClose: () => F(!1)
169
- })
170
- ] }) : /* @__PURE__ */ w(s, {});
171
- };
7
+ var a = r(({ unitId: r }) => {
8
+ let { api: a } = e(), { data: o, isLoading: s } = a.finops.getMeasureUnitsId.useQuery({ path: { unit_id: r } });
9
+ return s ? /* @__PURE__ */ i(t, { className: "ttw:h-4 ttw:w-4" }) : o ? /* @__PURE__ */ i(n, {
10
+ color: "muted",
11
+ variant: "body2",
12
+ children: o.name
13
+ }) : null;
14
+ });
172
15
  //#endregion
173
- export { D as ProductsTable };
16
+ export { a as MeasureUnit };