@tesouro/embedded-components-react 0.5.136 → 0.5.139

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 (365) hide show
  1. package/dist/index.css +0 -6
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/monite-sdk.js +50 -50
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +26 -129
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +145 -204
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +214 -4
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +4 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +5 -111
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +113 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index89.js +0 -26
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +27 -0
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +2 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +93 -79
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +51 -51
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -1
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -5
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -9
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +575 -8
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -23
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -54
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +157 -63
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -60
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +24 -166
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -84
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -27
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +12 -2
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -597
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -1
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +29 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +93 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -25
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -10
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +75 -10
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -12
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +126 -16
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -21
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +11 -27
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -1
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -93
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -12
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -10
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +120 -10
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +21 -20
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -75
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -1
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +7 -126
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +58 -1
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -11
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +26 -54
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -4
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +61 -1
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -62
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -120
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +183 -21
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +1 -8
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +29 -34
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +3 -9
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +59 -53
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -71
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -26
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +34 -1
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +43 -57
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +10 -17
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -19
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -182
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -1
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -28
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -3
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +12 -60
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -31
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +13 -10
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +15 -31
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -42
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -10
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -16
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -5
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +15 -9
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -13
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -18
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +119 -12
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -12
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -16
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +196 -14
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -42
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -16
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -15
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -15
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +9 -15
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -20
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -5
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -119
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +407 -61
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -196
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +95 -1
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -9
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -41
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +2 -6
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +180 -8
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +98 -15
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -9
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -7
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -419
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +46 -1
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -22
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -92
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -22
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +158 -16
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -4
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -188
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +55 -94
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -1
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +51 -1
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +80 -50
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +21 -44
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +307 -1
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -1
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -12
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -63
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +158 -44
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -51
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -82
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -21
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +3 -42
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +105 -1
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +181 -340
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +134 -1
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -30
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -26
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -1
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +229 -149
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -35
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +135 -29
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -6
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +163 -101
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -189
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -132
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -207
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +154 -11
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -13
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +217 -28
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +42 -1
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +83 -0
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +14 -34
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +184 -135
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +169 -1
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +15 -162
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +19 -26
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +6 -8
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +383 -36
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +88 -151
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +198 -67
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +30 -217
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +84 -38
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +136 -1
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +35 -78
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +58 -14
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -184
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +135 -163
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +552 -17
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -17
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +145 -5
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +142 -382
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +36 -89
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -195
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -28
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +147 -84
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +57 -129
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -35
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +14 -59
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +16 -138
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -552
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -16
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +89 -135
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +41 -142
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +27 -37
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -66
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -68
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -145
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +5 -61
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -84
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -14
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -19
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +102 -20
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +35 -20
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +43 -97
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +71 -42
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +99 -26
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +47 -1
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +186 -15
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +139 -13
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +130 -5
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +77 -13
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +245 -15
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +10 -9
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +6 -104
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +398 -34
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +22 -45
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +18 -73
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +44 -99
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +45 -44
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +14 -189
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +39 -139
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +140 -124
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +112 -75
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -246
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +33 -8
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +24 -6
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -399
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +22 -23
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +73 -17
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -44
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +18 -46
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +179 -14
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +138 -38
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +28 -142
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +93 -92
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +17 -38
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +44 -31
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +15 -22
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -21
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +27 -21
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -72
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +76 -70
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -16
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +33 -177
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +82 -134
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +50 -31
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -119
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +37 -19
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -48
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +133 -16
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -23
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -25
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +787 -36
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +88 -77
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -50
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -37
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -88
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -50
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +11 -1
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -36
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +16 -1
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +165 -128
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +208 -108
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +87 -49
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -789
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +154 -86
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +98 -99
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +46 -6
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -27
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +12 -11
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -27
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -13
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +47 -166
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +63 -209
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +164 -87
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +1 -19
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +175 -148
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +1 -104
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +34 -37
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +2 -1
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +21 -13
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +72 -22
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +19 -1
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +18 -183
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +8 -1
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +9 -40
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +13 -5
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +130 -21
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +5 -74
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +5 -16
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -22
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +219 -5
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -9
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +34 -11
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +179 -128
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +203 -5
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +98 -4
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +66 -5
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +51 -216
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +91 -11
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +40 -33
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +69 -174
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +80 -199
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +12 -100
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -61
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +16 -56
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +4 -93
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +22 -41
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +1 -79
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +64 -87
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +30 -12
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +2 -24
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +36 -17
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +18 -5
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +31 -22
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +31 -1
  312. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +2 -64
  313. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +93 -28
  314. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +10 -6
  315. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
  316. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +13 -8
  317. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +10 -19
  318. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +31 -6
  319. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +22 -13
  320. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +22 -14
  321. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
  322. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
  323. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
  324. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +2 -3
  325. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +8 -9
  326. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +16 -58
  327. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +95 -3
  328. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +4 -4
  329. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +7 -8
  330. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +18 -21
  331. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +8 -8
  332. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +2 -1
  333. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +14 -1
  334. package/dist/libs/tesouro-embedded-components-react/{shared/tag-selection/ui/dist/index3.js → settings-widget/tags/ui/dist/index5.js} +2 -1
  335. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +4 -4
  336. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +21 -12
  337. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  338. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  339. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  340. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  341. package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
  342. package/package.json +1 -1
  343. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
  344. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
  345. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
  346. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
  347. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
  348. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
  349. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
  350. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
  351. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
  352. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
  353. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
  354. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
  355. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
  356. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
  357. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
  358. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
  359. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
  360. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
  361. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
  362. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
  363. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
  364. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
  365. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
@@ -1,148 +1,102 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { calculateDueDate as t } from "./index52.js";
4
- import { Button as n } from "./index55.js";
5
- import { Input as r } from "./index88.js";
6
- import { Typography as i } from "./index61.js";
7
- import { RadioGroup as a, RadioGroupItem as o } from "./index89.js";
8
- import { useUserPermissions as s } from "./index118.js";
9
- import { useGetPaymentReminderById as c } from "./index148.js";
10
- import { useGetPaymentReminders as l } from "./index149.js";
11
- import { useCreatePaymentReminder as u } from "./index150.js";
12
- import { CUSTOM_DATE_PAYMENT_TERM as d, RECEIPT_DUE_PAYMENT_TERM as f } from "./index176.js";
13
- import { useGetPaymentTermById as p } from "./index204.js";
14
- import "./index227.js";
15
- import { useState as m } from "react";
16
- import { Loader2 as h } from "lucide-react";
17
- import { differenceInCalendarDays as g, format as _ } from "date-fns";
18
- import { jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
19
- import { useLingui as b } from "@lingui/react";
20
- import { useFormContext as x } from "react-hook-form";
1
+ import { Button as e } from "./index55.js";
2
+ import { Input as t } from "./index88.js";
3
+ import { TableCell as n, TableRow as r } from "./index254.js";
4
+ import { getMeasureUnitValidationSchema as i } from "./index470.js";
5
+ import { useCreateMeasureUnit as a } from "./index472.js";
6
+ import { useUpdateMeasureUnit as o } from "./index473.js";
7
+ import { Check as s, X as c } from "lucide-react";
8
+ import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
9
+ import { useLingui as d } from "@lingui/react";
10
+ import { Controller as f, useForm as p } from "react-hook-form";
11
+ import { zodResolver as m } from "@hookform/resolvers/zod";
21
12
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js
22
- var S = "MMM d, yyyy", C = 1, w = 1e4, T = ({ disabled: T }) => {
23
- let { data: E } = l(), [D, O] = m(""), { i18n: k } = b(), A = s().has(e.InvoiceWriteOrg), { watch: j, setValue: M } = x(), N = j("payment_reminder_id"), P = j("payment_terms_id"), F = j("payment_terms_custom_date"), I = P === d, L = P === f, { data: R } = p(P && !I && !L ? P : void 0), z = I ? F ?? void 0 : L ? /* @__PURE__ */ new Date() : R && t(R) || void 0, { mutate: B, isPending: V } = u(), H = Number(D), U = D !== "" && H >= C && H <= w, W = D !== "" && !U, G = I && F ? g(F, /* @__PURE__ */ new Date()) : void 0, { data: K } = c(N), q = K ? [
24
- K.term_1_reminder?.days_before,
25
- K.term_2_reminder?.days_before,
26
- K.term_final_reminder?.days_before
27
- ].filter((e) => typeof e == "number") : [], J = G !== void 0 && (D !== "" && Number(D) > G || q.some((e) => e > G));
28
- return /* @__PURE__ */ y("div", {
29
- 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",
30
- children: [
31
- /* @__PURE__ */ y(i, {
32
- variant: "body2",
13
+ var h = {
14
+ name: "",
15
+ description: ""
16
+ }, g = ({ id: g, isEditMode: _, initialValues: v = h, onCancel: y, onEdit: b }) => {
17
+ let { i18n: x } = d(), S = i(x), { handleSubmit: C, control: w, reset: T, setError: E } = p({
18
+ defaultValues: v,
19
+ resolver: m(S)
20
+ }), D = a(() => T(), (e) => E("name", {
21
+ type: "custom",
22
+ message: e
23
+ })), O = o(g ?? "", () => b?.(), (e) => E("name", {
24
+ type: "custom",
25
+ message: e
26
+ })), k = (e) => {
27
+ if (!_ || !g) {
28
+ console.error("handleEdit called without valid id or edit mode");
29
+ return;
30
+ }
31
+ O.mutate(e);
32
+ }, A = (e) => {
33
+ D.mutate(e);
34
+ }, j = D.isPending || O.isPending;
35
+ return /* @__PURE__ */ l(r, {
36
+ className: "ttw:border-border ttw:hover:bg-transparent",
37
+ children: /* @__PURE__ */ l(n, {
38
+ colSpan: 3,
39
+ className: "ttw:w-full ttw:whitespace-normal",
40
+ children: /* @__PURE__ */ u("div", {
41
+ className: "ttw:flex ttw:gap-2 ttw:justify-between ttw:items-start",
33
42
  children: [
34
- k._("Number of days"),
35
- " ",
36
- /* @__PURE__ */ v("span", {
37
- className: "ttw:text-green-700 ttw:font-bold",
38
- children: k._("BEFORE")
39
- }),
40
- " ",
41
- k._("due date")
42
- ]
43
- }),
44
- /* @__PURE__ */ v(a, {
45
- className: "ttw:contents",
46
- value: N ?? "",
47
- onValueChange: (e) => M("payment_reminder_id", e),
48
- children: /* @__PURE__ */ y("ul", {
49
- className: "ttw:flex ttw:flex-col ttw:gap-3",
50
- children: [/* @__PURE__ */ v("li", {
51
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between",
52
- children: /* @__PURE__ */ y("div", {
53
- className: "ttw:flex ttw:items-center ttw:gap-2",
54
- children: [/* @__PURE__ */ v(o, {
55
- value: "",
56
- id: "no-payment-reminder"
57
- }), /* @__PURE__ */ v(i, {
58
- variant: "body2",
59
- className: "ttw:leading-snug",
60
- children: k._("No reminder")
61
- })]
62
- })
63
- }), E?.map((e) => /* @__PURE__ */ v("li", {
64
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between",
65
- children: /* @__PURE__ */ y("div", {
66
- className: "ttw:flex ttw:items-center ttw:gap-2",
67
- children: [/* @__PURE__ */ v(o, {
68
- value: e.value,
69
- id: e.value
70
- }), /* @__PURE__ */ v(i, {
71
- variant: "body2",
72
- className: "ttw:leading-snug",
73
- children: e.label
43
+ /* @__PURE__ */ l(f, {
44
+ name: "name",
45
+ control: w,
46
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ u("div", {
47
+ className: "ttw:w-[35%]",
48
+ children: [/* @__PURE__ */ l(t, {
49
+ ...e,
50
+ disabled: j,
51
+ "aria-invalid": !!n || void 0,
52
+ className: "ttw:h-8"
53
+ }), n && /* @__PURE__ */ l("p", {
54
+ className: "ttw:text-xs ttw:text-destructive ttw:mt-1",
55
+ children: n.message
74
56
  })]
75
57
  })
76
- }, e.value))]
77
- })
78
- }),
79
- A && /* @__PURE__ */ y("div", {
80
- className: "ttw:flex ttw:flex-col ttw:gap-2.5",
81
- children: [
82
- !!(E && E?.length > 0) && /* @__PURE__ */ v(i, {
83
- variant: "caption",
84
- color: "muted",
85
- children: k._("Add schedule")
86
58
  }),
87
- /* @__PURE__ */ y("div", {
88
- className: "ttw:flex ttw:items-center ttw:gap-2.5",
89
- children: [
90
- /* @__PURE__ */ v(r, {
91
- type: "text",
92
- inputMode: "numeric",
93
- value: D,
94
- onChange: (e) => O(e.target.value.replace(/\D/g, "")),
95
- disabled: T || V,
96
- name: "new_reminders",
97
- className: "ttw:text-right ttw:w-full ttw:p-1.5 ttw:max-w-56",
98
- placeholder: k._("e.g., 3"),
99
- "aria-invalid": W,
100
- "aria-describedby": W ? "new-reminder-error" : void 0
101
- }),
102
- /* @__PURE__ */ v(i, {
103
- variant: "body2",
104
- children: Number(D) === 1 ? k._("day") : k._("days")
105
- }),
106
- /* @__PURE__ */ v(n, {
107
- type: "button",
108
- variant: "secondary",
109
- className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs",
110
- disabled: !U || V,
111
- onClick: () => {
112
- let e = Number(D);
113
- B({ body: {
114
- name: e === 1 ? k._("{daysBefore} day", { daysBefore: e }) : k._("{daysBefore} days", { daysBefore: e }),
115
- term_final_reminder: {
116
- days_before: e,
117
- subject: k._("Payment is due soon"),
118
- body: z ? k._("Payment is due on {dueDate}.", { dueDate: _(z, S) }) : k._("Payment is due soon.")
119
- }
120
- } }, { onSuccess: (e) => {
121
- O(""), M("payment_reminder_id", e.id);
122
- } });
123
- },
124
- children: V ? /* @__PURE__ */ v(h, { className: "ttw:size-4 ttw:animate-spin" }) : k._("Save")
59
+ /* @__PURE__ */ l(f, {
60
+ name: "description",
61
+ control: w,
62
+ render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ l("div", {
63
+ className: "ttw:w-[55%]",
64
+ children: /* @__PURE__ */ l(t, {
65
+ ...e,
66
+ id: e.name,
67
+ disabled: j,
68
+ "aria-invalid": !!n || void 0,
69
+ className: "ttw:h-8"
125
70
  })
126
- ]
127
- }),
128
- W && /* @__PURE__ */ v(i, {
129
- id: "new-reminder-error",
130
- variant: "caption",
131
- color: "destructive",
132
- children: k._("Enter a number of days between {min} and {max}.", {
133
- min: C,
134
- max: w
135
71
  })
72
+ }),
73
+ _ ? /* @__PURE__ */ u("div", {
74
+ className: "ttw:flex ttw:justify-center ttw:gap-1",
75
+ children: [/* @__PURE__ */ l(e, {
76
+ variant: "outline",
77
+ size: "icon",
78
+ className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
79
+ disabled: O.isPending,
80
+ onClick: C(k),
81
+ children: /* @__PURE__ */ l(s, { className: "ttw:size-4" })
82
+ }), /* @__PURE__ */ l(e, {
83
+ variant: "outline",
84
+ size: "icon",
85
+ className: "ttw:size-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
86
+ onClick: y,
87
+ children: /* @__PURE__ */ l(c, { className: "ttw:size-4" })
88
+ })]
89
+ }) : /* @__PURE__ */ l(e, {
90
+ variant: "outline",
91
+ size: "sm",
92
+ className: "ttw:h-8 ttw:bg-primary-foreground ttw:text-primary ttw:hover:text-primary ttw:hover:bg-primary-foreground/80 ttw:border-0",
93
+ onClick: C(A),
94
+ children: x._("Add")
136
95
  })
137
96
  ]
138
- }),
139
- J && /* @__PURE__ */ v(i, {
140
- variant: "body2",
141
- className: "ttw:text-amber-700",
142
- children: k._("This reminder would be sent after the due date has already passed.")
143
97
  })
144
- ]
98
+ })
145
99
  });
146
100
  };
147
101
  //#endregion
148
- export { T as ReminderBeforeDueDate };
102
+ export { g as MeasureUnitsFormRow };
@@ -1,147 +1,46 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { calculateDueDate as t } from "./index52.js";
4
- import { Button as n } from "./index55.js";
5
- import { Input as r } from "./index88.js";
6
- import { Typography as i } from "./index61.js";
7
- import { RadioGroup as a, RadioGroupItem as o } from "./index89.js";
8
- import { useUserPermissions as s } from "./index118.js";
9
- import { useGetOverdueReminders as c } from "./index152.js";
10
- import { useCreateOverdueReminder as l } from "./index153.js";
11
- import { CUSTOM_DATE_PAYMENT_TERM as u, RECEIPT_DUE_PAYMENT_TERM as d } from "./index176.js";
12
- import { useGetPaymentTermById as f } from "./index204.js";
13
- import "./index227.js";
14
- import { Fragment as p, useState as m } from "react";
15
- import { Loader2 as h, Plus as g } from "lucide-react";
16
- import { format as _ } from "date-fns";
17
- import { jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
18
- import { useLingui as b } from "@lingui/react";
19
- import { useFormContext as x } from "react-hook-form";
1
+ import { useCurrencies as e } from "./index62.js";
2
+ import "./index222.js";
3
+ import { ConfirmationModal as t } from "./index58.js";
4
+ import "./index59.js";
5
+ import { Typography as n } from "./index61.js";
6
+ import { Table as r, TableBody as i, TableCell as a, TableRow as o } from "./index254.js";
7
+ import { useGetProducts as s } from "./index380.js";
8
+ import { Loader2 as c } from "lucide-react";
9
+ import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
10
+ import { useLingui as f } from "@lingui/react";
20
11
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js
21
- var S = "MMM d, yyyy", C = 3, w = ({ disabled: w }) => {
22
- let { data: T } = c(), [E, D] = m([""]), { i18n: O } = b(), k = s().has(e.InvoiceWriteOrg), { watch: A, setValue: j } = x(), M = A("overdue_reminder_id"), N = A("payment_terms_id"), P = A("payment_terms_custom_date"), F = N === u, I = N === d, { data: L } = f(N && !F && !I ? N : void 0), R = F ? P ?? void 0 : I ? /* @__PURE__ */ new Date() : L && t(L) || void 0, { mutate: z, isPending: B } = l(), V = (e, t) => {
23
- D((n) => n.map((n, r) => r === e ? t : n));
24
- }, H = () => {
25
- D((e) => e.length < C ? [...e, ""] : e);
26
- }, U = () => {
27
- D([""]);
28
- }, W = E.every((e) => Number(e) >= 1);
29
- return /* @__PURE__ */ y("div", {
30
- 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",
31
- children: [
32
- /* @__PURE__ */ y(i, {
33
- variant: "body2",
34
- children: [
35
- O._("Number of days"),
36
- " ",
37
- /* @__PURE__ */ v("span", {
38
- className: "ttw:text-destructive ttw:font-bold",
39
- children: O._("AFTER")
40
- }),
41
- " ",
42
- O._("due date")
43
- ]
12
+ var p = ({ onClose: p, onDelete: m, name: h, isLoading: g, open: _, id: v }) => {
13
+ let { i18n: y } = f(), { formatCurrencyToDisplay: b } = e(), { data: x, isLoading: S } = s({ measure_unit_id: v ?? "" }, !!v), C = x?.data.length === 0;
14
+ return /* @__PURE__ */ u(t, {
15
+ open: _,
16
+ title: y._("Delete \"{name}\"?", { name: h }),
17
+ confirmLabel: y._("Delete"),
18
+ cancelLabel: y._("Cancel"),
19
+ onClose: p,
20
+ onConfirm: m,
21
+ isLoading: g || S,
22
+ children: C ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(n, { children: y._("There are no items created with this measure unit.") }), /* @__PURE__ */ u(n, {
23
+ color: "muted",
24
+ children: y._("Deleting it won't affect your items.")
25
+ })] }) : /* @__PURE__ */ d(l, { children: [
26
+ /* @__PURE__ */ u(n, { children: y._("Any products or services referencing this unit will update to use a blank unit of measure.") }),
27
+ /* @__PURE__ */ u(n, {
28
+ color: "muted",
29
+ children: y._("Previously issued invoices will not be impacted.")
44
30
  }),
45
- /* @__PURE__ */ v(a, {
46
- className: "ttw:contents",
47
- value: M ?? "",
48
- onValueChange: (e) => j("overdue_reminder_id", e),
49
- children: /* @__PURE__ */ y("ul", {
50
- className: "ttw:flex ttw:flex-col ttw:gap-3",
51
- children: [/* @__PURE__ */ v("li", {
52
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between",
53
- children: /* @__PURE__ */ y("div", {
54
- className: "ttw:flex ttw:items-center ttw:gap-2",
55
- children: [/* @__PURE__ */ v(o, {
56
- value: "",
57
- id: "no-overdue-reminder"
58
- }), /* @__PURE__ */ v(i, {
59
- variant: "body2",
60
- className: "ttw:leading-snug",
61
- children: O._("No reminder")
62
- })]
63
- })
64
- }), T?.map((e) => /* @__PURE__ */ v("li", {
65
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:justify-between",
66
- children: /* @__PURE__ */ y("div", {
67
- className: "ttw:flex ttw:items-center ttw:gap-2",
68
- children: [/* @__PURE__ */ v(o, {
69
- value: e.value,
70
- id: e.value
71
- }), /* @__PURE__ */ v(i, {
72
- variant: "body2",
73
- className: "ttw:leading-snug",
74
- children: e.label
75
- })]
76
- })
77
- }, e.value))]
78
- })
79
- }),
80
- k && /* @__PURE__ */ y("div", {
81
- className: "ttw:flex ttw:flex-col ttw:gap-2.5",
82
- children: [
83
- /* @__PURE__ */ v(i, {
84
- variant: "caption",
85
- color: "muted",
86
- children: T && T.length > 0 ? O._("Add schedule (Specify up to 3 terms)") : O._("Send up to three reminders")
87
- }),
88
- /* @__PURE__ */ y("div", {
89
- className: "ttw:flex ttw:items-center ttw:gap-2.5",
90
- children: [E.map((e, t, n) => /* @__PURE__ */ y(p, { children: [/* @__PURE__ */ v(r, {
91
- type: "text",
92
- inputMode: "numeric",
93
- value: e,
94
- onChange: (e) => V(t, e.target.value.replace(/\D/g, "")),
95
- disabled: w || B,
96
- name: `new_reminders_${t}`,
97
- className: "ttw:text-right ttw:w-15 ttw:p-1.5",
98
- placeholder: n.length === 1 ? O._("e.g., 3") : void 0
99
- }), /* @__PURE__ */ v(i, {
100
- variant: "body2",
101
- children: Number(e) === 1 ? O._("day") : O._("days")
102
- })] }, t)), E.length < C && /* @__PURE__ */ y(n, {
103
- type: "button",
104
- variant: "ghost",
105
- className: "ttw:text-xs ttw:text-primary ttw:hover:text-primary",
106
- disabled: w || B || !E[E.length - 1],
107
- onClick: H,
108
- children: [/* @__PURE__ */ v(g, {}), O._("Add")]
109
- })]
110
- }),
111
- /* @__PURE__ */ y("div", {
112
- className: "ttw:flex ttw:items-center ttw:gap-2.5",
113
- children: [/* @__PURE__ */ v(n, {
114
- type: "button",
115
- variant: "ghost",
116
- className: "ttw:text-xs",
117
- disabled: w || B,
118
- onClick: U,
119
- children: O._("Clear")
120
- }), /* @__PURE__ */ v(n, {
121
- type: "button",
122
- variant: "secondary",
123
- className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs",
124
- disabled: w || B || !W,
125
- onClick: () => {
126
- let e = E.map((e) => Number(e)).sort((e, t) => e - t), t = e.map((e) => e === 1 ? O._("{daysAfter} day", { daysAfter: e }) : O._("{daysAfter} days", { daysAfter: e })), n = t.length === 1 ? t[0] : `${t.slice(0, -1).join(", ")} ${O._("and")} ${t[t.length - 1]}`;
127
- z({ body: {
128
- name: n,
129
- terms: e.map((e) => ({
130
- days_after: e,
131
- subject: O._("Payment is overdue"),
132
- body: R ? O._("Payment was due on {dueDate}.", { dueDate: _(R, S) }) : O._("Payment is overdue.")
133
- }))
134
- } }, { onSuccess: (e) => {
135
- D([""]), j("overdue_reminder_id", e.id);
136
- } });
137
- },
138
- children: B ? /* @__PURE__ */ v(h, { className: "ttw:size-4 ttw:animate-spin" }) : O._("Save")
139
- })]
140
- })
141
- ]
142
- })
143
- ]
31
+ S && /* @__PURE__ */ u(c, { className: "ttw:mx-auto ttw:size-6 ttw:animate-spin" }),
32
+ !S && /* @__PURE__ */ u(r, { children: /* @__PURE__ */ u(i, { children: x?.data.map((e) => /* @__PURE__ */ d(o, {
33
+ className: "ttw:border-border ttw:hover:bg-transparent",
34
+ children: [/* @__PURE__ */ u(a, {
35
+ className: "ttw:pl-0 ttw:whitespace-normal ttw:text-text ttw:font-medium",
36
+ children: e.name
37
+ }), /* @__PURE__ */ u(a, {
38
+ className: "ttw:pr-0 ttw:text-right ttw:text-text ttw:font-medium",
39
+ children: e.price && b(e.price?.value, e.price?.currency)
40
+ })]
41
+ }, e.id)) }) })
42
+ ] })
144
43
  });
145
44
  };
146
45
  //#endregion
147
- export { w as ReminderOverdue };
46
+ export { p as ConfirmDeleteMeasureUnitDialog };
@@ -1,40 +1,30 @@
1
- import { Typography as e } from "./index61.js";
2
- import { RECEIPT_DUE_PAYMENT_TERM as t } from "./index176.js";
3
- import { Switch as n } from "./index473.js";
4
- import { ReminderBeforeDueDate as r } from "./index474.js";
5
- import { ReminderOverdue as i } from "./index475.js";
6
- import { useState as a } from "react";
7
- import { Fragment as o, jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
8
- import { useLingui as l } from "@lingui/react";
9
- import { useFormContext as u } from "react-hook-form";
1
+ import { Button as e } from "./index55.js";
2
+ import { DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i } from "./index54.js";
3
+ import { MoreVertical as a, Pencil as o, Trash2 as s } from "lucide-react";
4
+ import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
5
+ import { useLingui as u } from "@lingui/react";
10
6
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js
11
- var d = ({ disabled: d }) => {
12
- let { i18n: f } = l(), { watch: p, setValue: m } = u(), h = p("payment_terms_id"), g = p("payment_terms_custom_date"), _ = p("payment_reminder_id"), v = p("overdue_reminder_id"), y = !!(h || g), b = !!(_ || v), x = h !== t, [S, C] = a(y || b);
13
- return /* @__PURE__ */ c("section", {
14
- className: "ttw:flex ttw:flex-col ttw:gap-6",
15
- children: [/* @__PURE__ */ c("div", {
16
- className: "ttw:flex ttw:items-center ttw:gap-3",
17
- children: [/* @__PURE__ */ s(n, {
18
- checked: S,
19
- disabled: !y,
20
- onCheckedChange: (e) => {
21
- e || (m("payment_reminder_id", "", { shouldDirty: !0 }), m("overdue_reminder_id", "", { shouldDirty: !0 })), C(e);
22
- },
23
- "aria-label": f._("Payment reminders")
24
- }), /* @__PURE__ */ s(e, {
25
- variant: "body2",
26
- children: f._("Send reminders when an invoice is approaching its due date or past due.")
27
- })]
28
- }), S && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ c("div", {
29
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:w-full ttw:xl:flex-row",
30
- children: [x && /* @__PURE__ */ s(r, { disabled: d }), /* @__PURE__ */ s(i, { disabled: d })]
31
- }), /* @__PURE__ */ s(e, {
32
- variant: "body2",
33
- color: "muted",
34
- className: "ttw:font-medium",
35
- children: f._("New reminders will be saved to your organization's library and can be managed via Invoice settings")
36
- })] })]
37
- });
7
+ var d = ({ onEdit: d, onDelete: f, permissions: p }) => {
8
+ let { i18n: m } = u();
9
+ return p.isUpdateAllowed || p.isDeleteAllowed ? /* @__PURE__ */ l(t, { children: [/* @__PURE__ */ c(i, {
10
+ asChild: !0,
11
+ children: /* @__PURE__ */ c(e, {
12
+ variant: "ghost",
13
+ size: "icon",
14
+ "aria-label": "actions-menu-button",
15
+ children: /* @__PURE__ */ c(a, {})
16
+ })
17
+ }), /* @__PURE__ */ l(n, {
18
+ align: "end",
19
+ children: [p.isUpdateAllowed && /* @__PURE__ */ l(r, {
20
+ onClick: d,
21
+ children: [/* @__PURE__ */ c(o, {}), m._("Edit")]
22
+ }), p.isDeleteAllowed && /* @__PURE__ */ l(r, {
23
+ onClick: f,
24
+ variant: "destructive",
25
+ children: [/* @__PURE__ */ c(s, {}), m._("Delete")]
26
+ })]
27
+ })] }) : null;
38
28
  };
39
29
  //#endregion
40
- export { d as RemindersSection };
30
+ export { d as TableActions };
@@ -1,66 +1 @@
1
- import { Input as e } from "./index88.js";
2
- import { Typography as t } from "./index61.js";
3
- import { Field as n, FieldContent as r, FieldError as i, FieldLabel as a } from "./index87.js";
4
- import { PaymentSection as o } from "./index468.js";
5
- import { RecurrenceSection as s } from "./index472.js";
6
- import { RemindersSection as c } from "./index476.js";
7
- import { jsx as l, jsxs as u } from "@emotion/react/jsx-runtime";
8
- import { useLingui as d } from "@lingui/react";
9
- import { Controller as f, useFormContext as p } from "react-hook-form";
10
- //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js
11
- var m = ({ paymentTerms: m, disabled: h, isPaymentTermsLoading: g, showPurchaseOrder: _ = !0, lockRecurrenceSchedule: v = !1 }) => {
12
- let { i18n: y } = d(), { control: b } = p();
13
- return /* @__PURE__ */ u("div", {
14
- className: "ttw:flex ttw:flex-col ttw:p-6 ttw:gap-2.5 ttw:border ttw:border-border ttw:rounded-xl",
15
- children: [/* @__PURE__ */ u("div", {
16
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
17
- children: [/* @__PURE__ */ l(t, {
18
- variant: "h4",
19
- children: y._("Billing details")
20
- }), /* @__PURE__ */ l(t, {
21
- variant: "body2",
22
- color: "muted",
23
- className: "ttw:font-medium",
24
- children: y._("What are the billing terms?")
25
- })]
26
- }), /* @__PURE__ */ u("div", {
27
- className: "ttw:flex ttw:flex-col ttw:gap-6",
28
- children: [
29
- /* @__PURE__ */ l(s, { lockSchedule: v }),
30
- /* @__PURE__ */ u("div", {
31
- className: "ttw:flex ttw:items-start ttw:gap-2.5 ttw:w-full",
32
- children: [/* @__PURE__ */ l(o, {
33
- paymentTerms: m,
34
- disabled: h,
35
- isLoading: g
36
- }), _ && /* @__PURE__ */ l(f, {
37
- name: "purchase_order",
38
- control: b,
39
- render: ({ field: o, fieldState: { error: s } }) => /* @__PURE__ */ l(n, { children: /* @__PURE__ */ u(r, { children: [
40
- /* @__PURE__ */ u(a, {
41
- htmlFor: o.name,
42
- className: "ttw:text-nowrap",
43
- children: [y._("PO Number"), /* @__PURE__ */ l(t, {
44
- variant: "body2",
45
- color: "muted",
46
- className: "ttw:leading-snug",
47
- children: y._("(optional)")
48
- })]
49
- }),
50
- /* @__PURE__ */ l(e, {
51
- ...o,
52
- id: o.name,
53
- disabled: h,
54
- "aria-invalid": !!s
55
- }),
56
- /* @__PURE__ */ l(i, { errors: s ? [s] : [] })
57
- ] }) })
58
- })]
59
- }),
60
- /* @__PURE__ */ l(c, { disabled: h })
61
- ]
62
- })]
63
- });
64
- };
65
- //#endregion
66
- export { m as BillingSection };
1
+ import "./index476.js";