@tesouro/embedded-components-react 0.2.97 → 0.2.98

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 (358) hide show
  1. package/dist/index.css +0 -16
  2. package/dist/lib/ReceivablesWidget.js +22 -22
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +22 -22
  4. package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/ui/dist/index8.js +17 -17
  5. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/ui/dist/index4.js +15 -15
  6. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/ui/dist/index5.js +39 -39
  7. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +7 -7
  8. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/ui/dist/index2.js +33 -33
  9. package/dist/libs/tesouro-embedded-components-react/expense-upload-receipt-widget/ui/dist/index3.js +49 -49
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +22 -22
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +12 -12
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +8 -8
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index10.js +2 -2
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index11.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +10 -13
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +9 -24
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +10 -10
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -33
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +24 -10
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +13 -9
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +32 -34
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +35 -4
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +4 -2
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +2 -25
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +23 -1269
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +1271 -2
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +14 -14
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +97 -58
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +8 -398
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +57 -69
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +26 -2
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +76 -407
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +6 -7
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +9 -35
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +21 -64
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +32 -6
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +8 -5
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +12 -12
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +12 -33
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +23 -29
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +14 -12
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +12 -12
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +117 -22
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +8 -10
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +46 -118
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +48 -7
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +10 -8
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +4 -4
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +44 -10
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +15 -49
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +11 -49
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +150 -12
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +54 -43
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +71 -15
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +29 -11
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +3 -152
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +61 -23
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +37 -55
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +79 -68
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +5 -29
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +27 -3
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +10 -61
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +17 -36
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +18 -79
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +2 -5
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +10 -25
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +18 -9
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +20 -18
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +26 -20
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +117 -2
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +68 -10
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +12 -20
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +12 -22
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +9 -27
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +42 -113
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +72 -66
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +55 -11
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +197 -12
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +14 -99
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +26 -57
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +80 -9
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +28 -45
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +41 -75
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +7 -58
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +114 -195
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +70 -14
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +200 -25
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +29 -78
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index19.js +1 -1
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +110 -28
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +134 -39
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +23 -7
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +26 -113
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +20 -69
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +21 -199
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +183 -31
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +12 -110
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +18 -133
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +48 -21
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index2.js +20 -20
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +4 -29
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +5 -21
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +88 -23
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +8 -183
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +46 -12
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +47 -19
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +201 -48
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +11 -4
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +394 -5
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +26 -88
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +94 -6
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +98 -44
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +13 -45
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +11 -200
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +8 -5
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +56 -390
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +397 -25
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +66 -93
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +2 -101
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +406 -17
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +7 -14
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +33 -12
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +7 -7
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +3 -3
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +10 -10
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +3 -3
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +1 -1
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +4 -4
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +1 -1
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +1 -1
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +3 -3
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +37 -16
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +344 -27
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +294 -33
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +99 -59
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +158 -92
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +260 -105
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +22 -85
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +18 -20
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +487 -14
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +166 -17
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +2 -171
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +93 -131
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +96 -161
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +192 -12
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +21 -18
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +16 -61
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +18 -67
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +162 -51
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +132 -6
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +159 -8
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +10 -60
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +18 -23
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +60 -60
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +68 -14
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +55 -16
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +6 -41
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +11 -14
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +55 -73
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +23 -76
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index3.js +3 -3
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +60 -41
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +14 -73
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +26 -22
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +125 -32
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +44 -2
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +73 -96
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +9 -96
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +19 -191
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +30 -10
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +42 -44
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +57 -485
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +87 -159
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +109 -39
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +83 -57
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +149 -31
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +19 -114
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +159 -21
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +27 -43
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +26 -54
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +78 -149
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +22 -19
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +57 -22
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +27 -55
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +58 -27
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +13 -53
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +39 -17
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +58 -156
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +31 -28
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +113 -28
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +22 -78
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +41 -25
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +56 -126
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +14 -65
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +78 -42
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +76 -24
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +39 -184
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +21 -105
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +31 -79
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +60 -278
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +17 -45
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +43 -15
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +61 -82
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +43 -224
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +21 -35
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +189 -11
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +106 -9
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +81 -11
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +284 -6
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +49 -2
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +15 -41
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +79 -340
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +219 -297
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +36 -100
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +11 -162
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +9 -265
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +11 -24
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +6 -19
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +2 -67
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +5 -5
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +11 -11
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +1 -1
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +10 -10
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +4 -4
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +9 -9
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +1 -1
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +32 -10
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +9 -10
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +11 -32
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +95 -53
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +36 -34
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +30 -21
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +31 -21
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +4 -27
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +24 -24
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +125 -36
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +16 -7
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +19 -49
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +47 -15
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +11 -34
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +17 -11
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +61 -18
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +17 -48
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +21 -11
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +13 -19
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +5 -5
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +3 -3
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +18 -64
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +9 -16
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +9 -16
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +66 -15
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +21 -21
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +2 -12
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +7 -14
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +52 -65
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +18 -21
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +123 -2
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +18 -123
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +16 -18
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +9 -9
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +13 -13
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +13 -13
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +10 -16
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +1 -1
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +2 -2
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +34 -5
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +53 -31
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +35 -4
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +25 -126
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +4 -32
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +69 -85
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +46 -23
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +24 -101
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +20 -110
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +12 -12
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +27 -9
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -71
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +8 -68
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +12 -39
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +29 -12
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +15 -20
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +35 -20
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +73 -37
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +67 -95
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +37 -36
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +5 -5
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +32 -34
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +85 -69
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +23 -46
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +101 -24
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +112 -8
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +11 -11
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +42 -15
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +36 -19
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +15 -39
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +53 -29
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +71 -80
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +81 -48
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +51 -36
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +51 -44
  312. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +50 -69
  313. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +29 -85
  314. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +9 -9
  315. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +53 -51
  316. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +36 -50
  317. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +44 -52
  318. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +68 -53
  319. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +21 -72
  320. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +52 -20
  321. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +1 -1
  322. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +1 -1
  323. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +1 -1
  324. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +7 -7
  325. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +12 -30
  326. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +18 -42
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +49 -35
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +56 -13
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +31 -17
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +33 -50
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +18 -57
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +81 -31
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +39 -53
  334. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +2 -2
  335. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +1 -1
  336. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +1 -1
  337. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +51 -19
  338. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +53 -49
  339. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +35 -48
  340. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +17 -40
  341. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +1 -1
  342. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index5.js +9 -9
  343. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
  344. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +9 -9
  345. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
  346. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
  347. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index6.js +10 -10
  348. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
  349. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
  350. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
  351. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
  352. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
  353. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
  354. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +12 -12
  355. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +21 -21
  356. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +6 -6
  357. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +22 -22
  358. package/package.json +1 -1
@@ -1,107 +1,30 @@
1
- import { jsxs as i, jsx as r } from "@emotion/react/jsx-runtime";
2
- import "react-hot-toast";
3
- import "./index57.js";
4
- import { useLingui as j } from "@lingui/react";
5
- import { useState as A } from "react";
6
- import { useUserPermissions as G } from "./index148.js";
7
- import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
8
- import "../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import "../../shared/data-access/dist/lib/rest/client.gen.js";
10
- import "@tanstack/react-query";
11
- import "../../shared/data-access/dist/lib/rest/zod.gen.js";
12
- import { Scope as S } from "../../shared/data-access/dist/lib/scopes.js";
13
- import { differenceInCalendarDays as O, format as U } from "date-fns";
14
- import "clsx";
15
- import "tailwind-merge";
16
- import "@radix-ui/react-dropdown-menu";
17
- import { Loader2 as F } from "lucide-react";
18
- import { Button as L } from "./index84.js";
19
- import { useGetPaymentReminderById as V } from "./index245.js";
20
- import { useGetPaymentReminders as Y } from "./index401.js";
21
- import { useCreatePaymentReminder as k } from "./index402.js";
22
- import { useGetPaymentTermById as z } from "./index406.js";
23
- import "./index92.js";
24
- import "react-dom";
25
- import "@mui/x-data-grid";
26
- import { useFormContext as W } from "react-hook-form";
27
- import { calculateDueDate as Z } from "./index7.js";
28
- import { CUSTOM_DATE_PAYMENT_TERM as q, RECEIPT_DUE_PAYMENT_TERM as H } from "./index196.js";
29
- import { RadioGroup as J, RadioGroupItem as N } from "./index321.js";
30
- import { Typography as m } from "./index85.js";
31
- import { Input as K } from "./index122.js";
32
- const Q = "MMM d, yyyy", D = 1, P = 1e4, Re = ({
33
- disabled: E
1
+ import { jsxs as i, jsx as e } from "@emotion/react/jsx-runtime";
2
+ import { DropdownMenu as s, DropdownMenuTrigger as a, DropdownMenuContent as d, DropdownMenuItem as r } from "./index137.js";
3
+ import { Button as c } from "./index84.js";
4
+ import { useLingui as u } from "@lingui/react";
5
+ import { MoreVertical as m, Pencil as p, Trash2 as h } from "lucide-react";
6
+ const A = ({
7
+ onEdit: t,
8
+ onDelete: l,
9
+ permissions: o
34
10
  }) => {
35
11
  const {
36
- data: d
37
- } = Y(), [a, f] = A(""), {
38
- i18n: t
39
- } = j(), T = G().has(S.InvoiceWriteOrg), {
40
- watch: s,
41
- setValue: y
42
- } = W(), _ = s("payment_reminder_id"), o = s("payment_terms_id"), l = s("payment_terms_custom_date"), c = o === q, b = o === H, $ = o && !c && !b ? o : void 0, {
43
- data: h
44
- } = z($), v = c ? l ?? void 0 : b ? /* @__PURE__ */ new Date() : h && Z(h) || void 0, {
45
- mutate: M,
46
- isPending: p
47
- } = k(), g = Number(a), x = a !== "" && g >= D && g <= P, u = a !== "" && !x, w = c && l ? O(l, /* @__PURE__ */ new Date()) : void 0, {
48
- data: n
49
- } = V(_), R = n ? [n.term_1_reminder?.days_before, n.term_2_reminder?.days_before, n.term_final_reminder?.days_before].filter((e) => typeof e == "number") : [], B = w !== void 0 && (a !== "" && Number(a) > w || R.some((e) => e > w)), C = () => {
50
- const e = Number(a);
51
- M({
52
- body: {
53
- name: e === 1 ? t._("{daysBefore} day", {
54
- daysBefore: e
55
- }) : t._("{daysBefore} days", {
56
- daysBefore: e
57
- }),
58
- term_final_reminder: {
59
- days_before: e,
60
- subject: t._("Payment is due soon"),
61
- body: v ? t._("Payment is due on {dueDate}.", {
62
- dueDate: U(v, Q)
63
- }) : t._("Payment is due soon.")
64
- }
65
- }
66
- }, {
67
- onSuccess: (I) => {
68
- f(""), y("payment_reminder_id", I.id);
69
- }
70
- });
71
- };
72
- return /* @__PURE__ */ i("div", { className: "ttw:border ttw:border-border ttw:rounded-lg ttw:min-h-28 ttw:p-2.5 ttw:flex ttw:w-full ttw:flex-col ttw:gap-4 ttw:xl:w-1/2", children: [
73
- /* @__PURE__ */ i(m, { variant: "body2", children: [
74
- t._("Number of days"),
75
- " ",
76
- /* @__PURE__ */ r("span", { className: "ttw:text-green-700 ttw:font-bold", children: t._("BEFORE") }),
77
- " ",
78
- t._("due date")
79
- ] }),
80
- /* @__PURE__ */ r(J, { className: "ttw:contents", value: _ ?? "", onValueChange: (e) => y("payment_reminder_id", e), children: /* @__PURE__ */ i("ul", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [
81
- /* @__PURE__ */ r("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
82
- /* @__PURE__ */ r(N, { value: "", id: "no-payment-reminder" }),
83
- /* @__PURE__ */ r(m, { variant: "body2", className: "ttw:leading-snug", children: t._("No reminder") })
84
- ] }) }),
85
- d?.map((e) => /* @__PURE__ */ r("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
86
- /* @__PURE__ */ r(N, { value: e.value, id: e.value }),
87
- /* @__PURE__ */ r(m, { variant: "body2", className: "ttw:leading-snug", children: e.label })
88
- ] }) }, e.value))
89
- ] }) }),
90
- T && /* @__PURE__ */ i("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
91
- !!(d && d?.length > 0) && /* @__PURE__ */ r(m, { variant: "caption", color: "muted", children: t._("Add schedule") }),
92
- /* @__PURE__ */ i("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
93
- /* @__PURE__ */ r(K, { type: "text", inputMode: "numeric", value: a, onChange: (e) => f(e.target.value.replace(/\D/g, "")), disabled: E || p, name: "new_reminders", className: "ttw:text-right ttw:w-full ttw:p-1.5 ttw:max-w-56", placeholder: t._("e.g., 3"), "aria-invalid": u, "aria-describedby": u ? "new-reminder-error" : void 0 }),
94
- /* @__PURE__ */ r(m, { variant: "body2", children: Number(a) === 1 ? t._("day") : t._("days") }),
95
- /* @__PURE__ */ r(L, { type: "button", variant: "secondary", className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs", disabled: !x || p, onClick: C, children: p ? /* @__PURE__ */ r(F, { className: "ttw:size-4 ttw:animate-spin" }) : t._("Save") })
12
+ i18n: n
13
+ } = u();
14
+ return o.isUpdateAllowed || o.isDeleteAllowed ? /* @__PURE__ */ i(s, { children: [
15
+ /* @__PURE__ */ e(a, { asChild: !0, children: /* @__PURE__ */ e(c, { variant: "ghost", size: "icon", "aria-label": "actions-menu-button", children: /* @__PURE__ */ e(m, {}) }) }),
16
+ /* @__PURE__ */ i(d, { align: "end", children: [
17
+ o.isUpdateAllowed && /* @__PURE__ */ i(r, { onClick: t, children: [
18
+ /* @__PURE__ */ e(p, {}),
19
+ n._("Edit")
96
20
  ] }),
97
- u && /* @__PURE__ */ r(m, { id: "new-reminder-error", variant: "caption", color: "destructive", children: t._("Enter a number of days between {min} and {max}.", {
98
- min: D,
99
- max: P
100
- }) })
101
- ] }),
102
- B && /* @__PURE__ */ r(m, { variant: "body2", className: "ttw:text-amber-700", children: t._("This reminder would be sent after the due date has already passed.") })
103
- ] });
21
+ o.isDeleteAllowed && /* @__PURE__ */ i(r, { onClick: l, variant: "destructive", children: [
22
+ /* @__PURE__ */ e(h, {}),
23
+ n._("Delete")
24
+ ] })
25
+ ] })
26
+ ] }) : null;
104
27
  };
105
28
  export {
106
- Re as ReminderBeforeDueDate
29
+ A as TableActions
107
30
  };
@@ -1,114 +1,24 @@
1
- import { jsxs as s, jsx as a } from "@emotion/react/jsx-runtime";
2
- import "react-hot-toast";
3
- import "./index57.js";
4
- import { useLingui as j } from "@lingui/react";
5
- import { useState as I, Fragment as O } from "react";
6
- import { useUserPermissions as G } from "./index148.js";
7
- import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
8
- import "../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import "../../shared/data-access/dist/lib/rest/client.gen.js";
10
- import "@tanstack/react-query";
11
- import "../../shared/data-access/dist/lib/rest/zod.gen.js";
12
- import { Scope as k } from "../../shared/data-access/dist/lib/scopes.js";
13
- import { format as F } from "date-fns";
14
- import "clsx";
15
- import "tailwind-merge";
16
- import "@radix-ui/react-dropdown-menu";
17
- import { Plus as U, Loader2 as B } from "lucide-react";
18
- import { Button as h } from "./index84.js";
19
- import { useGetOverdueReminders as L } from "./index403.js";
20
- import { useCreateOverdueReminder as V } from "./index404.js";
21
- import { useGetPaymentTermById as Y } from "./index406.js";
22
- import "./index92.js";
23
- import "react-dom";
24
- import "@mui/x-data-grid";
25
- import { useFormContext as z } from "react-hook-form";
26
- import { calculateDueDate as K } from "./index7.js";
27
- import { CUSTOM_DATE_PAYMENT_TERM as W, RECEIPT_DUE_PAYMENT_TERM as q } from "./index196.js";
28
- import { RadioGroup as H, RadioGroupItem as b } from "./index321.js";
29
- import { Typography as n } from "./index85.js";
30
- import { Input as J } from "./index122.js";
31
- const Q = "MMM d, yyyy", N = 3, Et = ({
32
- disabled: l
33
- }) => {
1
+ import { useMoniteContext as n } from "./index57.js";
2
+ import { useLingui as a } from "@lingui/react";
3
+ import { toast as s } from "react-hot-toast";
4
+ const m = (e) => {
34
5
  const {
35
- data: u
36
- } = L(), [o, c] = I([""]), {
37
- i18n: e
38
- } = j(), T = G().has(k.InvoiceWriteOrg), {
39
- watch: w,
40
- setValue: y
41
- } = z(), A = w("overdue_reminder_id"), p = w("payment_terms_id"), C = w("payment_terms_custom_date"), v = p === W, _ = p === q, P = p && !v && !_ ? p : void 0, {
42
- data: g
43
- } = Y(P), x = v ? C ?? void 0 : _ ? /* @__PURE__ */ new Date() : g && K(g) || void 0, {
44
- mutate: E,
45
- isPending: d
46
- } = V(), M = (t, i) => {
47
- c((m) => m.map((r, f) => f === t ? i : r));
48
- }, R = () => {
49
- c((t) => t.length < N ? [...t, ""] : t);
50
- }, D = () => {
51
- c([""]);
52
- }, $ = o.every((t) => Number(t) >= 1), S = () => {
53
- const t = o.map((r) => Number(r)).sort((r, f) => r - f), i = t.map((r) => r === 1 ? e._("{daysAfter} day", {
54
- daysAfter: r
55
- }) : e._("{daysAfter} days", {
56
- daysAfter: r
57
- })), m = i.length === 1 ? i[0] : `${i.slice(0, -1).join(", ")} ${e._("and")} ${i[i.length - 1]}`;
58
- E({
59
- body: {
60
- name: m,
61
- terms: t.map((r) => ({
62
- days_after: r,
63
- subject: e._("Payment is overdue"),
64
- body: x ? e._("Payment was due on {dueDate}.", {
65
- dueDate: F(x, Q)
66
- }) : e._("Payment is overdue.")
67
- }))
68
- }
69
- }, {
70
- onSuccess: (r) => {
71
- c([""]), y("overdue_reminder_id", r.id);
72
- }
73
- });
74
- };
75
- return /* @__PURE__ */ s("div", { className: "ttw:border ttw:border-border ttw:rounded-lg ttw:min-h-28 ttw:p-2.5 ttw:flex ttw:w-full ttw:flex-col ttw:gap-4 ttw:xl:w-1/2", children: [
76
- /* @__PURE__ */ s(n, { variant: "body2", children: [
77
- e._("Number of days"),
78
- " ",
79
- /* @__PURE__ */ a("span", { className: "ttw:text-destructive ttw:font-bold", children: e._("AFTER") }),
80
- " ",
81
- e._("due date")
82
- ] }),
83
- /* @__PURE__ */ a(H, { className: "ttw:contents", value: A ?? "", onValueChange: (t) => y("overdue_reminder_id", t), children: /* @__PURE__ */ s("ul", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [
84
- /* @__PURE__ */ a("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
85
- /* @__PURE__ */ a(b, { value: "", id: "no-overdue-reminder" }),
86
- /* @__PURE__ */ a(n, { variant: "body2", className: "ttw:leading-snug", children: e._("No reminder") })
87
- ] }) }),
88
- u?.map((t) => /* @__PURE__ */ a("li", { className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between", children: /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
89
- /* @__PURE__ */ a(b, { value: t.value, id: t.value }),
90
- /* @__PURE__ */ a(n, { variant: "body2", className: "ttw:leading-snug", children: t.label })
91
- ] }) }, t.value))
92
- ] }) }),
93
- T && /* @__PURE__ */ s("div", { className: "ttw:flex ttw:flex-col ttw:gap-2.5", children: [
94
- /* @__PURE__ */ a(n, { variant: "caption", color: "muted", children: u && u.length > 0 ? e._("Add schedule (Specify up to 3 terms)") : e._("Send up to three reminders") }),
95
- /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
96
- o.map((t, i, m) => /* @__PURE__ */ s(O, { children: [
97
- /* @__PURE__ */ a(J, { type: "text", inputMode: "numeric", value: t, onChange: (r) => M(i, r.target.value.replace(/\D/g, "")), disabled: l || d, name: `new_reminders_${i}`, className: "ttw:text-right ttw:w-15 ttw:p-1.5", placeholder: m.length === 1 ? e._("e.g., 3") : void 0 }),
98
- /* @__PURE__ */ a(n, { variant: "body2", children: Number(t) === 1 ? e._("day") : e._("days") })
99
- ] }, i)),
100
- o.length < N && /* @__PURE__ */ s(h, { type: "button", variant: "ghost", className: "ttw:text-xs ttw:text-primary ttw:hover:text-primary", disabled: l || d || !o[o.length - 1], onClick: R, children: [
101
- /* @__PURE__ */ a(U, {}),
102
- e._("Add")
103
- ] })
104
- ] }),
105
- /* @__PURE__ */ s("div", { className: "ttw:flex ttw:items-center ttw:gap-2.5", children: [
106
- /* @__PURE__ */ a(h, { type: "button", variant: "ghost", className: "ttw:text-xs", disabled: l || d, onClick: D, children: e._("Clear") }),
107
- /* @__PURE__ */ a(h, { type: "button", variant: "secondary", className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs", disabled: l || d || !$, onClick: S, children: d ? /* @__PURE__ */ a(B, { className: "ttw:size-4 ttw:animate-spin" }) : e._("Save") })
108
- ] })
109
- ] })
110
- ] });
6
+ api: t,
7
+ queryClient: i
8
+ } = n(), {
9
+ i18n: o
10
+ } = a();
11
+ return t.finops.deleteMeasureUnitsId.useMutation(void 0, {
12
+ onSuccess: async () => {
13
+ e && (await t.finops.getMeasureUnits.invalidateQueries(i), s.success(o._("Unit {name} was deleted from the list.", {
14
+ name: e
15
+ })));
16
+ },
17
+ onError: (r) => {
18
+ console.error(r), s.error(o._("Failed to delete Unit."));
19
+ }
20
+ });
111
21
  };
112
22
  export {
113
- Et as ReminderOverdue
23
+ m as useDeleteMeasureUnit
114
24
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as a, Fragment as B } from "@emotion/react/jsx-runtime";
2
2
  import { useState as s, useMemo as N, useCallback as G } from "react";
3
- import { ProductDeleteModal as W } from "./index167.js";
4
- import { ProductType as q } from "./index168.js";
5
- import { Filters as H } from "./index169.js";
3
+ import { ProductDeleteModal as W } from "./index162.js";
4
+ import { ProductType as q } from "./index163.js";
5
+ import { Filters as H } from "./index164.js";
6
6
  import { useMoniteContext as Y } from "./index57.js";
7
7
  import { MoniteScopedProviders as J } from "./index83.js";
8
8
  import { useCurrencies as Q } from "./index58.js";
@@ -10,27 +10,27 @@ import "./index92.js";
10
10
  import { useLingui as V } from "@lingui/react";
11
11
  import "react-dom";
12
12
  import "@mui/x-data-grid";
13
- import { useUserPermissions as X } from "./index148.js";
13
+ import { useUserPermissions as X } from "./index131.js";
14
14
  import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
15
15
  import "../../shared/data-access/dist/lib/EmbedApiContext.js";
16
16
  import "../../shared/data-access/dist/lib/rest/client.gen.js";
17
17
  import "@tanstack/react-query";
18
18
  import "../../shared/data-access/dist/lib/rest/zod.gen.js";
19
19
  import { Scope as k } from "../../shared/data-access/dist/lib/scopes.js";
20
- import { AccessRestriction as Z } from "./index158.js";
20
+ import { AccessRestriction as Z } from "./index133.js";
21
21
  import { Button as f } from "./index84.js";
22
22
  import "clsx";
23
23
  import "tailwind-merge";
24
24
  import "@radix-ui/react-dialog";
25
25
  import { ArrowUp as ee, ArrowDown as te, ArrowUpDown as oe, Plus as ie } from "lucide-react";
26
- import { DataTable as re } from "./index165.js";
27
- import { GetNoRowsOverlay as ae } from "./index164.js";
28
- import { MeasureUnit as se } from "./index170.js";
29
- import { hasSelectedText as ne } from "./index166.js";
30
- import { FILTER_TYPE_SEARCH as S } from "./index171.js";
26
+ import { DataTable as re } from "./index160.js";
27
+ import { GetNoRowsOverlay as ae } from "./index159.js";
28
+ import { MeasureUnit as se } from "./index165.js";
29
+ import { hasSelectedText as ne } from "./index161.js";
30
+ import { FILTER_TYPE_SEARCH as S } from "./index166.js";
31
31
  import "react-hot-toast";
32
- import { useGetProducts as le } from "./index172.js";
33
- import { ManageMeasureUnits as ce } from "./index173.js";
32
+ import { useGetProducts as le } from "./index167.js";
33
+ import { ManageMeasureUnits as ce } from "./index168.js";
34
34
  const Ge = (d) => /* @__PURE__ */ t(J, { children: /* @__PURE__ */ t(de, { ...d }) }), de = ({
35
35
  onFilterChanged: d,
36
36
  onSortChanged: g,
@@ -1,12 +1,30 @@
1
- const o = ["draft", "new", "waiting_to_be_paid", "approve_in_progress"], s = (n) => {
2
- if (!n.due_date) return 0;
3
- const e = /* @__PURE__ */ new Date();
4
- e.setUTCHours(0, 0, 0, 0);
5
- const t = new Date(n.due_date);
6
- if (t.setUTCHours(0, 0, 0, 0), t.getTime() === e.getTime()) return 0;
7
- const r = o.includes(n.status), i = t.getTime() < e.getTime();
8
- return !r || !i ? 0 : Math.floor((e.getTime() - t.getTime()) / 864e5);
1
+ import { useMoniteContext as u } from "./index57.js";
2
+ import { getAPIErrorMessage as m } from "./index120.js";
3
+ import { useLingui as c } from "@lingui/react";
4
+ import { toast as n } from "react-hot-toast";
5
+ const M = (a, i) => {
6
+ const {
7
+ api: t,
8
+ queryClient: o
9
+ } = u(), {
10
+ i18n: r
11
+ } = c();
12
+ return t.finops.postMeasureUnits.useMutation({}, {
13
+ onSuccess: async (e) => {
14
+ await t.finops.getMeasureUnits.invalidateQueries(o), n.success(r._("Unit {name} was added to the list", {
15
+ name: e.name
16
+ })), a?.();
17
+ },
18
+ onError: async (e) => {
19
+ const s = m(r, e);
20
+ if (s.includes("already exists")) {
21
+ i?.(s);
22
+ return;
23
+ } else
24
+ n.error(s);
25
+ }
26
+ });
9
27
  };
10
28
  export {
11
- s as getInvoiceOverdueDays
29
+ M as useCreateMeasureUnit
12
30
  };
@@ -1,77 +1,40 @@
1
- import { jsxs as I, jsx as f } from "@emotion/react/jsx-runtime";
2
- import { useMemo as d, useState as g, useEffect as j } from "react";
3
- import { useCurrencies as N } from "./index58.js";
4
- import "./index92.js";
5
- import { useLingui as G } from "@lingui/react";
6
- import "react-dom";
7
- import "./index57.js";
8
- import "@mui/x-data-grid";
9
- import { InputGroup as T, InputGroupAddon as $, InputGroupInput as D } from "./index101.js";
10
- import { formatMinorToMajorCurrency as n, parseMajorToMinorCurrency as P } from "./index338.js";
11
- const J = ({
12
- value: i,
13
- error: v = !1,
14
- currency: m,
15
- disabled: w = !1,
16
- onChange: u,
17
- locale: x
18
- }) => {
1
+ import { useMoniteContext as p } from "./index57.js";
2
+ import { getAPIErrorMessage as m } from "./index120.js";
3
+ import { useLingui as d } from "@lingui/react";
4
+ import { toast as n } from "react-hot-toast";
5
+ const g = (i, o, u) => {
19
6
  const {
20
- getSymbolFromCurrency: y
21
- } = N(), {
22
- i18n: M
23
- } = G(), e = x ?? M.locale, o = d(() => new Intl.NumberFormat(e, {
24
- minimumFractionDigits: 2,
25
- maximumFractionDigits: 2
26
- }), [e]), {
27
- decimalSeparator: F,
28
- groupSeparator: S
29
- } = d(() => {
30
- const r = new Intl.NumberFormat(e).formatToParts(12345.67);
31
- return {
32
- decimalSeparator: r.find((t) => t.type === "decimal")?.value || ".",
33
- groupSeparator: r.find((t) => t.type === "group")?.value || ""
34
- };
35
- }, [e]), [s, a] = g(n(i, o)), [l, p] = g(!1);
36
- j(() => {
37
- if (!l) {
38
- const r = n(i, o);
39
- r !== s && a(r);
7
+ api: e,
8
+ queryClient: r
9
+ } = p(), {
10
+ i18n: a
11
+ } = d();
12
+ return e.finops.patchMeasureUnitsId.useMutation({
13
+ path: {
14
+ unit_id: i
40
15
  }
41
- }, [i, l, e, o, s]);
42
- const b = (r) => {
43
- const t = r.target.value;
44
- a(t);
45
- }, h = () => {
46
- p(!0);
47
- }, C = (r) => {
48
- p(!1);
49
- const t = r.target.value.trim();
50
- if (t === "") {
51
- a(n(0, o)), u(0);
52
- return;
16
+ }, {
17
+ onSuccess: async (s) => {
18
+ await Promise.all([e.finops.getMeasureUnits.invalidateQueries(r), e.finops.getMeasureUnitsId.invalidateQueries({
19
+ parameters: {
20
+ path: {
21
+ unit_id: i
22
+ }
23
+ }
24
+ }, r)]), n.success(a._("Unit {name} was updated", {
25
+ name: s.name
26
+ })), o?.();
27
+ },
28
+ onError: (s) => {
29
+ const t = m(a, s);
30
+ if (t.includes("already exists")) {
31
+ u?.(t);
32
+ return;
33
+ } else
34
+ n.error(t);
53
35
  }
54
- const c = P(t, F, S);
55
- a(n(c, o)), u(c);
56
- };
57
- return /* @__PURE__ */ I(T, { className: "ttw:max-w-41 ttw:w-full ttw:min-w-29", children: [
58
- /* @__PURE__ */ f($, { align: "inline-start", children: y(m) || m }),
59
- /* @__PURE__ */ f(
60
- D,
61
- {
62
- type: "text",
63
- inputMode: "decimal",
64
- className: "ttw:text-right",
65
- "aria-invalid": v || void 0,
66
- disabled: w,
67
- value: s,
68
- onChange: b,
69
- onFocus: h,
70
- onBlur: C
71
- }
72
- )
73
- ] });
36
+ });
74
37
  };
75
38
  export {
76
- J as PriceField
39
+ g as useUpdateMeasureUnit
77
40
  };
@@ -1,70 +1,10 @@
1
- import { jsx as o, jsxs as V } from "@emotion/react/jsx-runtime";
2
- import { useState as x, useEffect as q } from "react";
3
- import { Controller as C } from "react-hook-form";
4
- import { Minus as R, Plus as M } from "lucide-react";
5
- import { InputGroup as N, InputGroupAddon as v, InputGroupButton as y, InputGroupInput as B } from "./index101.js";
6
- const I = (e) => Math.round(e * 100) / 100, b = (e) => {
7
- let t = e.replace(/[^0-9.]/g, "");
8
- const n = t.indexOf(".");
9
- return n !== -1 && (t = t.slice(0, n + 1) + t.slice(n + 1).replace(/\./g, ""), t = t.slice(0, n + 3)), t;
10
- }, E = ({
11
- field: e,
12
- index: t,
13
- canRemove: n,
14
- hasProduct: s,
15
- hasQuantityError: m,
16
- onLineItemValueChange: l,
17
- onRemoveItem: d
18
- }) => {
19
- const i = Math.max(0, Number(e.value) || 0), w = n ? 0 : 1, [p, c] = x(i === 0 ? "" : String(i)), [h, f] = x(!1);
20
- q(() => {
21
- if (!h) {
22
- const r = i === 0 ? "" : String(i);
23
- r !== p && c(r);
24
- }
25
- }, [i, h, p]);
26
- const g = (r) => {
27
- const a = I(r);
28
- if (a <= 0 && n) {
29
- d(t);
30
- return;
31
- }
32
- const u = Math.max(w, a);
33
- l("quantity", u, {
34
- shouldValidate: !0
35
- });
36
- };
37
- return /* @__PURE__ */ V(N, { className: "ttw:w-26 ttw:min-w-26 ttw:has-[>[data-align=inline-start]]:[&>input]:pl-0 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0", children: [
38
- /* @__PURE__ */ o(v, { align: "inline-start", children: /* @__PURE__ */ o(y, { type: "button", size: "icon-xs", disabled: !s || !n && i <= 1, onClick: () => g(i - 1), children: /* @__PURE__ */ o(R, {}) }) }),
39
- /* @__PURE__ */ o(B, { ref: e.ref, name: e.name, type: "text", inputMode: "decimal", "aria-invalid": m || void 0, value: p, className: "ttw:text-center ttw:px-0", onFocus: () => f(!0), onChange: (r) => {
40
- const a = b(r.target.value);
41
- c(a);
42
- const u = a === "" || a === "." ? 0 : Number(a);
43
- l("quantity", u, {
44
- shouldValidate: !1
45
- });
46
- }, onBlur: (r) => {
47
- f(!1);
48
- const a = b(r.target.value), u = a === "" || a === "." ? 0 : I(Number(a));
49
- u <= 0 ? n ? d(t) : (c("1"), l("quantity", 1, {
50
- shouldValidate: !0
51
- })) : (c(String(u)), l("quantity", u, {
52
- shouldValidate: !0
53
- })), e.onBlur();
54
- } }),
55
- /* @__PURE__ */ o(v, { align: "inline-end", children: /* @__PURE__ */ o(y, { type: "button", size: "icon-xs", disabled: !s, onClick: () => g(i + 1), children: /* @__PURE__ */ o(M, {}) }) })
56
- ] });
57
- }, z = ({
58
- index: e,
59
- control: t,
60
- quantityError: n,
61
- canRemove: s,
62
- hasProduct: m,
63
- onLineItemValueChange: l,
64
- onRemoveItem: d
65
- }) => /* @__PURE__ */ o(C, { name: `line_items.${e}.quantity`, control: t, render: ({
66
- field: i
67
- }) => /* @__PURE__ */ o(E, { field: i, index: e, canRemove: s, hasProduct: m, hasQuantityError: n, onLineItemValueChange: l, onRemoveItem: d }) });
1
+ const e = (a) => ({
2
+ bank_name: a?.bank_name || void 0,
3
+ display_name: a?.display_name || void 0,
4
+ account_holder_name: a?.account_holder_name || void 0,
5
+ account_number: a?.account_number || void 0,
6
+ routing_number: a?.routing_number || void 0
7
+ });
68
8
  export {
69
- z as QuantityField
9
+ e as prepareBankAccountCreatePayload
70
10
  };
@@ -1,41 +1,14 @@
1
- import { jsxs as t, Fragment as f, jsx as a } from "@emotion/react/jsx-runtime";
2
- import { useState as h } from "react";
3
- import { ManageMeasureUnits as v } from "./index173.js";
4
- import { Select as g, SelectTrigger as x, SelectValue as w, SelectContent as S, SelectItem as l } from "./index301.js";
5
- import { useLingui as _ } from "@lingui/react";
6
- import { Plus as b } from "lucide-react";
7
- const s = "__none__", E = ({
8
- value: n,
9
- availableMeasureUnits: o,
10
- error: m,
11
- fieldError: c,
12
- disabled: u = !1,
13
- onChange: d
14
- }) => {
15
- const {
16
- i18n: r
17
- } = _(), [p, i] = h(!1);
18
- return /* @__PURE__ */ t(f, { children: [
19
- /* @__PURE__ */ t(g, { value: n || s, onValueChange: (e) => {
20
- if (e === "create") {
21
- i(!0);
22
- return;
23
- }
24
- d(e === s ? "" : e);
25
- }, disabled: u, children: [
26
- /* @__PURE__ */ a(x, { "aria-invalid": m || !!c || void 0, className: "ttw:w-22", children: /* @__PURE__ */ a(w, { className: "ttw:truncate", placeholder: r._("Select") }) }),
27
- /* @__PURE__ */ t(S, { children: [
28
- /* @__PURE__ */ t(l, { value: "create", className: "ttw:text-primary ttw:hover:text-primary ttw:font-semibold ttw:focus:text-primary", children: [
29
- /* @__PURE__ */ a(b, { className: "ttw:text-primary" }),
30
- r._("Manage measure units")
31
- ] }),
32
- /* @__PURE__ */ a(l, { value: s, children: r._("None") }),
33
- o?.map((e) => /* @__PURE__ */ a(l, { value: e.id, children: e.name }, e.id))
34
- ] })
35
- ] }),
36
- p && /* @__PURE__ */ a(v, { open: !0, handleClose: () => i(!1) })
37
- ] });
38
- };
1
+ import { getCountries as i } from "./index93.js";
2
+ const o = (n, e) => e.find((a) => a.id === n)?.name ?? null, r = (n) => {
3
+ if (n) {
4
+ if ("organization" in n)
5
+ return n.organization.phone;
6
+ if ("individual" in n)
7
+ return n.individual.phone;
8
+ }
9
+ }, u = (n, e) => e ? i(n)[e] ?? e : "";
39
10
  export {
40
- E as MeasureUnitField
11
+ r as getCounterpartPhone,
12
+ u as getCountryName,
13
+ o as getMeasureUnitName
41
14
  };