@tesouro/embedded-components-react 0.7.59 → 0.7.60

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 (236) hide show
  1. package/README.md +2 -3
  2. package/dist/index.css +0 -15
  3. package/dist/lib/monite-sdk.d.ts +2 -163
  4. package/dist/lib/monite-sdk.js +41 -47
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +45 -52
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +174 -53
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +55 -1
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +2 -153
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +3 -1224
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +1 -176
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +2 -8
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +8 -15
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +55 -5
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +36 -50
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +73 -2
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +41 -3
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +14 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +13 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +69 -8
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +168 -52
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +6 -41
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +2 -74
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +65 -37
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +1 -14
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +77 -11
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +1 -71
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +33 -170
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +0 -6
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +57 -1
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +39 -64
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +562 -72
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1 -35
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +159 -0
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -57
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +23 -40
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +10 -567
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +12 -1
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +12 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +16 -158
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +21 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +26 -24
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +24 -10
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +17 -10
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +69 -10
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +25 -16
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +6 -19
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +40 -26
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +51 -1
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +58 -22
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +1 -19
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +28 -68
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +40 -24
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +77 -5
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +4 -43
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index153.js +2 -51
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +48 -58
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +81 -1
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index156.js +111 -29
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index157.js +5 -41
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +10 -78
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +12 -4
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index160.js +20 -2
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +73 -48
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +1 -81
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +124 -108
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -7
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +11 -10
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +54 -10
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +5 -20
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +15 -73
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +62 -127
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +122 -1
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +22 -11
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +6 -54
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +31 -5
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +7 -17
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +58 -1
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +73 -62
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +22 -116
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +1 -24
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +59 -6
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +19 -35
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +20 -7
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +181 -53
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +1 -75
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +30 -26
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +2 -0
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +0 -60
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +35 -17
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +1 -22
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +16 -183
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +20 -1
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +5 -29
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +18 -3
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +24 -1
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +20 -35
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +8 -1
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +6 -17
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index198.js +11 -14
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index199.js +17 -5
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index200.js +9 -18
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index201.js +22 -19
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +11 -20
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +8 -5
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +24 -5
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +13 -14
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +81 -18
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +16 -9
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +98 -23
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +42 -11
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +27 -8
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +1 -27
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +104 -14
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +37 -81
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +171 -14
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +11 -99
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +4 -46
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +67 -27
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +27 -1
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +203 -97
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +87 -34
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +20 -171
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -14
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +19 -4
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +157 -67
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +100 -23
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +43 -209
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +4 -92
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +22 -20
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +77 -1
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +17 -17
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +18 -156
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +5 -101
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +9 -43
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +13 -4
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +130 -21
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +5 -74
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +5 -16
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +5 -22
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +219 -5
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +31 -9
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +12 -11
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +34 -131
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +19 -5
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +73 -5
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +184 -5
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +14 -220
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +203 -31
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +99 -11
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +64 -34
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +54 -19
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +91 -73
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +33 -174
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +77 -14
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +80 -199
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +12 -100
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +21 -61
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +16 -56
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +5 -94
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +22 -41
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -79
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +22 -87
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +30 -12
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +2 -24
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +23 -17
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +18 -5
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +31 -22
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +31 -1
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +2 -22
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +0 -5
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +23 -13
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index42.js +6 -15
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +4 -42
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +2 -24
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +31 -4
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +7 -4
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -2
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index48.js +10 -35
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index49.js +6 -6
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +7 -9
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index51.js +1 -8
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +6 -12
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +6 -6
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +1 -9
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +21 -1
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index56.js +30 -4
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index57.js +10 -6
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +72 -1
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index59.js +50 -17
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index60.js +1 -32
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index61.js +19 -10
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index62.js +46 -69
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index63.js +14 -50
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index65.js +45 -18
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index66.js +63 -46
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index67.js +34 -11
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index68.js +38 -14
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index69.js +24 -1
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index70.js +12 -46
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index71.js +12 -35
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index72.js +50 -60
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index73.js +10 -36
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index74.js +23 -39
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index75.js +71 -21
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index76.js +79 -11
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index77.js +1 -17
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +8 -54
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +29 -12
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index80.js +2 -24
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index81.js +16 -71
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index82.js +3 -80
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index83.js +1 -0
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index84.js +56 -8
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index85.js +10 -27
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +37 -2
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +1 -19
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +104 -3
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +0 -1
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index90.js +53 -55
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index91.js +1 -12
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index92.js +50 -34
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index94.js +49 -100
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +14 -54
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -1
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +150 -52
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1224 -1
  228. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  229. package/package.json +1 -1
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +0 -32
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -4
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -23
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -18
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +0 -33
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +0 -31
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +0 -2
@@ -1,4 +1,19 @@
1
- import "./index53.js";
2
- import "react";
3
- import "@emotion/react/jsx-runtime";
4
- import "radix-ui";
1
+ import { Typography as e } from "./index146.js";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
+ //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js
5
+ var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ r("li", {
6
+ className: t("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
7
+ children: [/* @__PURE__ */ n(e, {
8
+ variant: "body2",
9
+ color: "muted",
10
+ className: "ttw:w-35 ttw:min-w-35 ttw:font-medium",
11
+ children: i
12
+ }), typeof a == "string" ? /* @__PURE__ */ n(e, {
13
+ variant: "body2",
14
+ className: "ttw:font-medium",
15
+ children: a
16
+ }) : a]
17
+ });
18
+ //#endregion
19
+ export { i as ProductDetailLine };
@@ -1,70 +1,160 @@
1
- import { cn as e } from "./index53.js";
2
- import { Label as t } from "./index222.js";
3
- import "./index223.js";
4
- import { useMemo as n } from "react";
5
- import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
6
- import { cva as a } from "class-variance-authority";
1
+ import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
+ import "../../shared/data-access/dist/index.js";
3
+ import { useMoniteContext as t } from "./index36.js";
4
+ import { useCurrencies as n } from "./index62.js";
5
+ import { Button as r } from "./index110.js";
6
+ import { LoadingSpinner as i } from "./index52.js";
7
+ import { Skeleton as a } from "./index57.js";
8
+ import { MoniteScopedProviders as o } from "./index143.js";
9
+ import { useUserPermissions as s } from "./index144.js";
10
+ import { DropdownMenu as c, DropdownMenuContent as l, DropdownMenuItem as u, DropdownMenuTrigger as d } from "./index145.js";
11
+ import { Typography as f } from "./index146.js";
12
+ import { AccessRestriction as p } from "./index150.js";
13
+ import { useGetProductById as m } from "./index197.js";
14
+ import "./index187.js";
15
+ import { ProductDeleteModal as h } from "./index201.js";
16
+ import { Sheet as g, SheetClose as _, SheetContent as v, SheetDescription as y, SheetHeader as b, SheetTitle as x } from "./index206.js";
17
+ import { ProductEditForm as S } from "./index220.js";
18
+ import { NotFound as C } from "./index221.js";
19
+ import "./index222.js";
20
+ import { ProductDetailLine as w } from "./index223.js";
21
+ import { useState as T } from "react";
22
+ import { MoreVerticalIcon as E, Trash2 as D, X as O } from "lucide-react";
23
+ import { Fragment as k, jsx as A, jsxs as j } from "@emotion/react/jsx-runtime";
24
+ import { useLingui as M } from "@lingui/react";
7
25
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js
8
- var o = a("ttw:group/field ttw:flex ttw:w-full ttw:gap-3 ttw:data-[invalid=true]:text-destructive", {
9
- variants: { orientation: {
10
- vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
11
- horizontal: [
12
- "flex-row items-center",
13
- "[&>[data-slot=field-label]]:flex-auto",
14
- "has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
15
- ],
16
- responsive: [
17
- "flex-col @md/field-group:flex-row @md/field-group:items-center [&>*]:w-full @md/field-group:[&>*]:w-auto [&>.sr-only]:w-auto",
18
- "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
19
- "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
20
- ]
21
- } },
22
- defaultVariants: { orientation: "vertical" }
23
- });
24
- function s({ className: t, orientation: n = "vertical", ...i }) {
25
- return /* @__PURE__ */ r("div", {
26
- role: "group",
27
- "data-slot": "field",
28
- "data-orientation": n,
29
- className: e(o({ orientation: n }), t),
30
- ...i
26
+ var N = (e) => /* @__PURE__ */ A(o, { children: /* @__PURE__ */ A(P, { ...e }) }), P = ({ id: o, open: N, onClose: P, onUpdated: F, onDeleted: I, showActionsMenu: L = !0 }) => {
27
+ let { i18n: R } = M(), { locale: z } = t(), { formatCurrencyToDisplay: B } = n(), [V, H] = T(!1), [U, W] = T(!1), { data: G, isLoading: K, isFetching: q } = m(o), J = G?.type === "product", Y = s(), X = Y.has(e.InvoiceReadOrg), Z = Y.has(e.InvoiceWriteOrg), Q = Y.has(e.InvoiceWriteOrg);
28
+ return X ? !K && !q && !G ? /* @__PURE__ */ A(g, {
29
+ open: N,
30
+ onOpenChange: P,
31
+ children: /* @__PURE__ */ A(v, {
32
+ showCloseButton: !0,
33
+ className: "ttw:gap-0",
34
+ children: /* @__PURE__ */ A("div", {
35
+ className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
36
+ children: /* @__PURE__ */ A(C, {
37
+ title: R._("Product not found"),
38
+ description: R._("There is no product by provided id: {id}", { id: o })
39
+ })
40
+ })
41
+ })
42
+ }) : /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(g, {
43
+ open: N,
44
+ onOpenChange: P,
45
+ children: /* @__PURE__ */ j(v, {
46
+ showCloseButton: !1,
47
+ className: "ttw:gap-0",
48
+ children: [/* @__PURE__ */ j(b, {
49
+ className: "ttw:pt-6 ttw:pl-6 ttw:pb-7 ttw:flex-row ttw:gap-3 ttw:border-b ttw:border-border",
50
+ children: [/* @__PURE__ */ j("div", {
51
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5 ttw:w-[85%]",
52
+ children: [/* @__PURE__ */ A(x, {
53
+ asChild: K,
54
+ className: "ttw:text-2xl",
55
+ children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-40" }) : G?.name ?? ""
56
+ }), /* @__PURE__ */ A(y, {
57
+ asChild: K,
58
+ children: K ? /* @__PURE__ */ A(a, { className: "ttw:w-60" }) : R._("{type} · Added {createdAt}", {
59
+ createdAt: R.date(G?.created_at, z.dateFormat),
60
+ type: G?.type === "product" ? "Product" : "Service"
61
+ })
62
+ })]
63
+ }), /* @__PURE__ */ j("div", {
64
+ className: "ttw:flex ttw:gap-2",
65
+ children: [L && Q && /* @__PURE__ */ j(c, { children: [/* @__PURE__ */ A(d, {
66
+ asChild: !0,
67
+ children: /* @__PURE__ */ A(r, {
68
+ type: "button",
69
+ variant: "outline",
70
+ className: "ttw:p-2 ttw:size-9 ttw:border-none ttw:bg-muted",
71
+ children: /* @__PURE__ */ A(E, {})
72
+ })
73
+ }), /* @__PURE__ */ A(l, {
74
+ align: "end",
75
+ children: /* @__PURE__ */ j(u, {
76
+ onClick: () => W(!0),
77
+ variant: "destructive",
78
+ children: [/* @__PURE__ */ A(D, {}), R._("Delete product")]
79
+ })
80
+ })] }), /* @__PURE__ */ A(_, {
81
+ className: "ttw:size-9 ttw:bg-muted ttw:p-2 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-md ttw:cursor-pointer",
82
+ children: /* @__PURE__ */ A(O, { className: "ttw:size-4" })
83
+ })]
84
+ })]
85
+ }), K ? /* @__PURE__ */ A("div", {
86
+ className: "ttw:flex ttw:w-full ttw:h-full ttw:items-center ttw:justify-center",
87
+ children: /* @__PURE__ */ A(i, {})
88
+ }) : /* @__PURE__ */ A("main", {
89
+ className: "ttw:p-6 ttw:overflow-auto ttw:flex ttw:flex-col ttw:gap-4",
90
+ children: /* @__PURE__ */ j("div", {
91
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
92
+ children: [/* @__PURE__ */ j("div", {
93
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
94
+ children: [/* @__PURE__ */ j("div", {
95
+ className: "ttw:flex ttw:flex-col ttw:gap-1.5",
96
+ children: [/* @__PURE__ */ A(f, {
97
+ variant: "body1",
98
+ className: "ttw:font-medium",
99
+ children: R._("{type} details", { type: J ? "Product" : "Service" })
100
+ }), /* @__PURE__ */ A(f, {
101
+ variant: "body2",
102
+ color: "muted",
103
+ children: J ? R._("A physical or digital item") : R._("Work or labor you provide")
104
+ })]
105
+ }), !V && Z && /* @__PURE__ */ A(r, {
106
+ type: "button",
107
+ variant: "ghost",
108
+ className: "ttw:text-primary ttw:hover:text-primary",
109
+ onClick: () => H(!0),
110
+ children: R._("Edit")
111
+ })]
112
+ }), V && G ? /* @__PURE__ */ A(S, {
113
+ product: G,
114
+ handleClose: () => H(!1),
115
+ onUpdate: (e) => {
116
+ F?.(e), H(!1);
117
+ }
118
+ }) : /* @__PURE__ */ j("ul", {
119
+ className: "ttw:list-none",
120
+ children: [
121
+ /* @__PURE__ */ A(w, {
122
+ label: R._("{type} name", { type: J ? "Product" : "Service" }),
123
+ value: G?.name ?? "-"
124
+ }),
125
+ /* @__PURE__ */ A(w, {
126
+ label: R._("Price per unit"),
127
+ value: G?.price ? B(G.price.value, G.price.currency) : "-"
128
+ }),
129
+ /* @__PURE__ */ A(w, {
130
+ label: R._("Description"),
131
+ value: G?.description || "-",
132
+ isLast: !0
133
+ })
134
+ ]
135
+ })]
136
+ })
137
+ })]
138
+ })
139
+ }), o && U && /* @__PURE__ */ A(h, {
140
+ id: o,
141
+ open: U,
142
+ onClose: () => W(!1),
143
+ onDeleted: (e) => {
144
+ P?.(), I?.(e), W(!1);
145
+ }
146
+ })] }) : /* @__PURE__ */ A(g, {
147
+ open: N,
148
+ onOpenChange: P,
149
+ children: /* @__PURE__ */ A(v, {
150
+ showCloseButton: !0,
151
+ className: "ttw:gap-0",
152
+ children: /* @__PURE__ */ A("div", {
153
+ className: "ttw:w-3/4 ttw:m-auto ttw:p-4",
154
+ children: /* @__PURE__ */ A(p, {})
155
+ })
156
+ })
31
157
  });
32
- }
33
- function c({ className: t, ...n }) {
34
- return /* @__PURE__ */ r("div", {
35
- "data-slot": "field-content",
36
- className: e("ttw:group/field-content ttw:flex ttw:flex-1 ttw:flex-col ttw:gap-1.5 ttw:leading-snug", t),
37
- ...n
38
- });
39
- }
40
- function l({ className: n, required: a, children: o, ...s }) {
41
- return /* @__PURE__ */ i(t, {
42
- "data-slot": "field-label",
43
- className: e("ttw:group/field-label ttw:peer/field-label ttw:flex ttw:w-fit ttw:items-center ttw:gap-2 ttw:leading-snug ttw:group-data-[disabled=true]/field:opacity-50", "ttw:has-[>[data-slot=field]]:w-full ttw:has-[>[data-slot=field]]:flex-col ttw:has-[>[data-slot=field]]:rounded-md ttw:has-[>[data-slot=field]]:border ttw:[&>*]:data-[slot=field]:p-4", "ttw:has-data-[state=checked]:border-primary ttw:has-data-[state=checked]:bg-primary/5 ttw:dark:has-data-[state=checked]:bg-primary/10", n),
44
- ...s,
45
- children: [o, a && /* @__PURE__ */ r("span", {
46
- "aria-hidden": "true",
47
- className: "ttw:size-2 ttw:-ml-1 ttw:block ttw:-mt-1 ttw:rounded-full ttw:bg-destructive ttw:shrink-0"
48
- })]
49
- });
50
- }
51
- function u({ className: t, children: i, errors: a, ...o }) {
52
- let s = n(() => {
53
- if (i) return i;
54
- if (!a?.length) return null;
55
- let e = [...new Map(a.map((e) => [e?.message, e])).values()];
56
- return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ r("ul", {
57
- className: "ttw:ml-4 ttw:flex ttw:list-disc ttw:flex-col ttw:gap-1",
58
- children: e.map((e, t) => e?.message && /* @__PURE__ */ r("li", { children: e.message }, t))
59
- });
60
- }, [i, a]);
61
- return s ? /* @__PURE__ */ r("div", {
62
- role: "alert",
63
- "data-slot": "field-error",
64
- className: e("ttw:text-sm ttw:font-normal ttw:text-destructive", t),
65
- ...o,
66
- children: s
67
- }) : null;
68
- }
158
+ };
69
159
  //#endregion
70
- export { s as Field, c as FieldContent, u as FieldError, l as FieldLabel };
160
+ export { N as ProductDetails };
@@ -1,27 +1,104 @@
1
- import { cn as e } from "./index53.js";
2
- import "react";
3
- import { CircleIcon as t } from "lucide-react";
4
- import { jsx as n } from "@emotion/react/jsx-runtime";
5
- import * as r from "@radix-ui/react-radio-group";
1
+ import { applyAPIValidationErrors as e, parseAPIValidationErrors as t } from "./index17.js";
2
+ import { useCurrencies as n } from "./index62.js";
3
+ import "./index73.js";
4
+ import { Button as r } from "./index110.js";
5
+ import { LoadingSpinner as i } from "./index52.js";
6
+ import { MoniteScopedProviders as a } from "./index143.js";
7
+ import { useCreateProduct as o } from "./index191.js";
8
+ import "./index200.js";
9
+ import "./index187.js";
10
+ import { PRODUCT_API_FIELD_MAP as s } from "./index203.js";
11
+ import { Sheet as c, SheetClose as l, SheetContent as u, SheetDescription as d, SheetFooter as f, SheetHeader as p, SheetTitle as m } from "./index206.js";
12
+ import { getProductValidationSchema as h } from "./index207.js";
13
+ import { ProductFormContent as g } from "./index219.js";
14
+ import { useCallback as _, useId as v, useMemo as y } from "react";
15
+ import { jsx as b, jsxs as x } from "@emotion/react/jsx-runtime";
16
+ import { useLingui as S } from "@lingui/react";
17
+ import { FormProvider as C, useForm as w } from "react-hook-form";
18
+ import { zodResolver as T } from "@hookform/resolvers/zod";
6
19
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js
7
- function i({ className: t, ...i }) {
8
- return /* @__PURE__ */ n(r.Root, {
9
- "data-slot": "radio-group",
10
- className: e("ttw:grid ttw:gap-3", t),
11
- ...i
12
- });
13
- }
14
- function a({ className: i, dotClassName: a, ...o }) {
15
- return /* @__PURE__ */ n(r.Item, {
16
- "data-slot": "radio-group-item",
17
- className: e("ttw:border-input ttw:text-primary ttw:focus-visible:border-ring ttw:focus-visible:ring-ring/50 ttw:aria-invalid:ring-destructive/20 ttw:dark:aria-invalid:ring-destructive/40 ttw:aria-invalid:border-destructive ttw:dark:bg-input/30 ttw:aspect-square ttw:size-4 ttw:shrink-0 ttw:rounded-full ttw:border ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:outline-none ttw:focus-visible:ring-[3px] ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50", i),
18
- ...o,
19
- children: /* @__PURE__ */ n(r.Indicator, {
20
- "data-slot": "radio-group-indicator",
21
- className: "ttw:relative ttw:flex ttw:items-center ttw:justify-center",
22
- children: /* @__PURE__ */ n(t, { className: e("ttw:fill-primary ttw:absolute ttw:top-1/2 ttw:left-1/2 ttw:size-2 ttw:-translate-x-1/2 ttw:-translate-y-1/2", a) })
20
+ var E = (e) => /* @__PURE__ */ b(a, { children: /* @__PURE__ */ b(D, { ...e }) }), D = ({ onClose: a, open: E, onCreated: D }) => {
21
+ let { i18n: O } = S(), { formatToMinorUnits: k } = n(), A = `product-form-${v()}`, { mutate: j, isPending: M } = o(D), N = y(() => ({
22
+ name: "",
23
+ type: "product",
24
+ measureUnitId: "",
25
+ pricePerUnit: void 0,
26
+ currency: "USD",
27
+ description: void 0
28
+ }), []), { watch: P, ...F } = w({
29
+ resolver: T(h(O)),
30
+ defaultValues: N
31
+ }), I = P("type"), L = !!P("name")?.trim() && P("pricePerUnit") !== void 0, R = _((n) => {
32
+ n.preventDefault(), n.stopPropagation(), F.handleSubmit((n) => {
33
+ j({ body: {
34
+ name: n.name,
35
+ type: n.type,
36
+ price: {
37
+ value: k(n.pricePerUnit, n.currency) ?? 0,
38
+ currency: n.currency
39
+ },
40
+ description: n.description,
41
+ ...n.measureUnitId ? { measure_unit_id: n.measureUnitId } : {}
42
+ } }, { onError: (n) => {
43
+ e(F.setError, t(n), { fieldMap: s });
44
+ } });
45
+ })(n);
46
+ }, [
47
+ j,
48
+ k,
49
+ F.handleSubmit,
50
+ F.setError
51
+ ]);
52
+ return /* @__PURE__ */ b(c, {
53
+ open: E,
54
+ onOpenChange: a,
55
+ children: /* @__PURE__ */ x(u, {
56
+ className: "ttw:gap-0",
57
+ children: [
58
+ /* @__PURE__ */ x(p, {
59
+ className: "ttw:border-b ttw:border-border",
60
+ children: [/* @__PURE__ */ b(m, {
61
+ className: "ttw:text-2xl",
62
+ children: O._("Add a product or service")
63
+ }), /* @__PURE__ */ b(d, {
64
+ className: "ttw:max-w-130",
65
+ children: O._("Save the products and services you sell so you can quickly add them as line items on invoices.")
66
+ })]
67
+ }),
68
+ /* @__PURE__ */ b("div", {
69
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-8 ttw:overflow-auto",
70
+ children: /* @__PURE__ */ b(C, {
71
+ ...F,
72
+ watch: P,
73
+ children: /* @__PURE__ */ b("form", {
74
+ id: A,
75
+ onSubmit: R,
76
+ children: /* @__PURE__ */ b(g, { isLoading: M })
77
+ })
78
+ })
79
+ }),
80
+ /* @__PURE__ */ x(f, {
81
+ className: "ttw:border-t ttw:border-border ttw:flex-row ttw:justify-end",
82
+ children: [/* @__PURE__ */ b(l, {
83
+ asChild: !0,
84
+ children: /* @__PURE__ */ b(r, {
85
+ variant: "outline",
86
+ disabled: M,
87
+ className: "ttw:flex-1 ttw:border-border",
88
+ children: O._("Cancel")
89
+ })
90
+ }), /* @__PURE__ */ x(r, {
91
+ type: "submit",
92
+ form: A,
93
+ className: "ttw:flex-1",
94
+ title: O._("Complete the form to continue"),
95
+ disabled: M || !L,
96
+ children: [M && /* @__PURE__ */ b(i, { className: "ttw:border-white ttw:border-t-transparent ttw:size-4" }), O._("Save {type}", { type: I })]
97
+ })]
98
+ })
99
+ ]
23
100
  })
24
101
  });
25
- }
102
+ };
26
103
  //#endregion
27
- export { i as RadioGroup, a as RadioGroupItem };
104
+ export { E as CreateProduct };
@@ -1,212 +1,46 @@
1
- import { useCurrencies as e } from "./index66.js";
2
- import "./index79.js";
3
- import { Input as t } from "./index118.js";
4
- import { InputGroup as n, InputGroupAddon as r, InputGroupInput as i, InputGroupTextarea as a } from "./index120.js";
5
- import { Combobox as o, ComboboxCollection as s, ComboboxContent as c, ComboboxEmpty as l, ComboboxInput as u, ComboboxItem as d, ComboboxList as f } from "./index121.js";
6
- import { Typography as p } from "./index153.js";
7
- import { useGetMeasureUnits as m } from "./index199.js";
8
- import "./index207.js";
9
- import "./index214.js";
10
- import { Label as h } from "./index222.js";
11
- import { Field as g, FieldContent as _, FieldError as v, FieldLabel as y } from "./index224.js";
12
- import { RadioGroup as b, RadioGroupItem as x } from "./index225.js";
13
- import { useCallback as S, useMemo as C, useRef as w } from "react";
14
- import { twMerge as T } from "tailwind-merge";
15
- import { jsx as E, jsxs as D } from "@emotion/react/jsx-runtime";
16
- import { useLingui as O } from "@lingui/react";
17
- import { Controller as k, useFormContext as A } from "react-hook-form";
1
+ import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
+ import "../../shared/data-access/dist/index.js";
3
+ import { MoniteScopedProviders as t } from "./index143.js";
4
+ import { useUserPermissions as n } from "./index144.js";
5
+ import { AccessRestriction as r } from "./index150.js";
6
+ import "./index153.js";
7
+ import { ProductsTable as i } from "./index214.js";
8
+ import { ProductDetails as a } from "./index224.js";
9
+ import { CreateProduct as o } from "./index225.js";
10
+ import { useCallback as s, useState as c } from "react";
11
+ import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
18
12
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js
19
- var j = ({ isLoading: j, isEditMode: M, isProduct: N }) => {
20
- let { i18n: P } = O(), { getSymbolFromCurrency: F } = e(), I = w(null), { data: L } = m(), R = L?.data ?? [], { control: z, formState: { errors: B } } = A(), V = C(() => R.map((e) => e.id), [R]), H = C(() => new Map(R.map((e) => [e.id, e.name])), [R]), U = S((e) => H.get(e) ?? e, [H]);
21
- return /* @__PURE__ */ D("div", {
22
- className: "ttw:flex ttw:flex-col ttw:gap-4",
23
- children: [
24
- M && /* @__PURE__ */ E("div", {
25
- className: "ttw:flex ttw:items-center ttw:gap-3 ttw:pt-6 ttw:pb-7 ttw:border-b ttw:border-border",
26
- children: /* @__PURE__ */ E(p, {
27
- variant: "body1",
28
- className: "ttw:font-medium",
29
- children: P._("Editing {type} details", { type: N ? "product" : "service" })
30
- })
31
- }),
32
- /* @__PURE__ */ E(k, {
33
- name: "type",
34
- control: z,
35
- render: ({ field: e }) => /* @__PURE__ */ D("div", {
36
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
37
- children: [/* @__PURE__ */ E(y, { children: P._("Type") }), /* @__PURE__ */ D(b, {
38
- className: "ttw:flex",
39
- value: e.value,
40
- disabled: j,
41
- onValueChange: e.onChange,
42
- children: [/* @__PURE__ */ D("div", {
43
- className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "product" && "ttw:bg-primary/10 ttw:border-primary/30"),
44
- children: [/* @__PURE__ */ E(x, {
45
- value: "product",
46
- id: "type-product",
47
- className: T(e.value === "product" ? "ttw:bg-primary" : "ttw:bg-white"),
48
- dotClassName: T(e.value === "product" && "ttw:fill-white"),
49
- disabled: j
50
- }), /* @__PURE__ */ D(h, {
51
- htmlFor: "type-product",
52
- className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
53
- children: [/* @__PURE__ */ E(p, {
54
- variant: "body2",
55
- className: "ttw:leading-3.5",
56
- children: P._("Product")
57
- }), /* @__PURE__ */ E(p, {
58
- variant: "caption",
59
- color: "muted",
60
- children: P._("A physical or digital item")
61
- })]
62
- })]
63
- }), /* @__PURE__ */ D("div", {
64
- className: T("ttw:flex ttw:p-4 ttw:flex-1 ttw:gap-2 ttw:border ttw:rounded-xl ttw:border-border ttw:hover:bg-primary/10 ttw:hover:border-primary/30", e.value === "service" && "ttw:bg-primary/10 ttw:border-primary/30"),
65
- children: [/* @__PURE__ */ E(x, {
66
- value: "service",
67
- id: "type-service",
68
- className: T(e.value === "service" ? "ttw:bg-primary" : "ttw:bg-white"),
69
- dotClassName: T(e.value === "service" && "ttw:fill-white"),
70
- disabled: j
71
- }), /* @__PURE__ */ D(h, {
72
- htmlFor: "type-service",
73
- className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1.5",
74
- children: [/* @__PURE__ */ E(p, {
75
- variant: "body2",
76
- className: "ttw:leading-3.5",
77
- children: P._("Service")
78
- }), /* @__PURE__ */ E(p, {
79
- variant: "caption",
80
- color: "muted",
81
- children: P._("Work or labor you provide")
82
- })]
83
- })]
84
- })]
85
- })]
86
- })
87
- }),
88
- /* @__PURE__ */ E(k, {
89
- name: "name",
90
- control: z,
91
- render: ({ field: e, fieldState: { error: n } }) => /* @__PURE__ */ E(g, { children: /* @__PURE__ */ D(_, { children: [
92
- /* @__PURE__ */ E(y, {
93
- htmlFor: e.name,
94
- children: P._("Name")
95
- }),
96
- /* @__PURE__ */ E(t, {
97
- ...e,
98
- id: e.name,
99
- placeholder: P._("e.g. House blend espresso beans"),
100
- className: M ? "ttw:bg-white" : "",
101
- disabled: j,
102
- "aria-invalid": !!n || void 0
103
- }),
104
- /* @__PURE__ */ E(v, { errors: [n] })
105
- ] }) })
106
- }),
107
- /* @__PURE__ */ D("div", {
108
- className: "ttw:w-1/2 ttw:flex ttw:flex-col ttw:gap-1.5",
109
- children: [
110
- /* @__PURE__ */ E(y, { children: P._("Price per unit") }),
111
- /* @__PURE__ */ D("div", {
112
- className: T("ttw:flex ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow]", "ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50", "ttw:has-[[data-slot][aria-invalid=true]]:border-destructive ttw:has-[[data-slot][aria-invalid=true]]:ring-[3px] ttw:has-[[data-slot][aria-invalid=true]]:ring-destructive/20", M && "ttw:bg-white"),
113
- ref: I,
114
- children: [
115
- /* @__PURE__ */ E(k, {
116
- name: "pricePerUnit",
117
- control: z,
118
- render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(n, {
119
- className: "ttw:flex-1 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0",
120
- children: [/* @__PURE__ */ E(r, {
121
- align: "inline-start",
122
- children: F("USD")
123
- }), /* @__PURE__ */ E(i, {
124
- type: "number",
125
- name: e.name,
126
- ref: e.ref,
127
- value: e.value ?? "",
128
- onChange: (t) => e.onChange(t.target.value === "" ? void 0 : Number(t.target.value)),
129
- className: "ttw:text-end",
130
- onBlur: e.onBlur,
131
- placeholder: "0.00",
132
- "aria-invalid": !!t || void 0,
133
- disabled: j
134
- })]
135
- })
136
- }),
137
- /* @__PURE__ */ E("div", { className: "ttw:w-px ttw:shrink-0 ttw:bg-border" }),
138
- /* @__PURE__ */ E(k, {
139
- name: "measureUnitId",
140
- control: z,
141
- render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ D(o, {
142
- value: e.value ?? null,
143
- onValueChange: (t) => e.onChange(t ?? void 0),
144
- items: V,
145
- itemToStringLabel: U,
146
- disabled: j,
147
- children: [/* @__PURE__ */ E(u, {
148
- showClear: !!e.value,
149
- placeholder: "-",
150
- disabled: j,
151
- "aria-invalid": !!t || void 0,
152
- className: "ttw:w-28 ttw:border-0 ttw:shadow-none ttw:rounded-none ttw:has-[[data-slot=input-group-control]:focus-visible]:border-transparent ttw:has-[[data-slot=input-group-control]:focus-visible]:ring-0"
153
- }), /* @__PURE__ */ E(c, {
154
- container: I.current,
155
- children: /* @__PURE__ */ D(f, { children: [/* @__PURE__ */ E(l, { children: P._("No units found") }), /* @__PURE__ */ E(s, { children: (e) => /* @__PURE__ */ E(d, {
156
- value: e,
157
- children: U(e)
158
- }, e) })] })
159
- })]
160
- })
161
- })
162
- ]
163
- }),
164
- /* @__PURE__ */ E(v, { errors: [B.pricePerUnit, B.measureUnitId] })
165
- ]
166
- }),
167
- /* @__PURE__ */ E(k, {
168
- name: "description",
169
- control: z,
170
- render: ({ field: e, fieldState: { error: t } }) => /* @__PURE__ */ E(g, {
171
- className: "ttw:block",
172
- children: /* @__PURE__ */ D(_, { children: [
173
- /* @__PURE__ */ D(y, {
174
- htmlFor: e.name,
175
- className: "ttw:gap-1",
176
- children: [P._("Description"), /* @__PURE__ */ E(p, {
177
- variant: "body2",
178
- color: "muted",
179
- className: "ttw:leading-snug",
180
- children: P._("(optional)")
181
- })]
182
- }),
183
- /* @__PURE__ */ D(n, {
184
- className: T(M && "ttw:bg-white"),
185
- children: [/* @__PURE__ */ E(a, {
186
- ...e,
187
- id: e.name,
188
- placeholder: P._("e.g. 16oz whole bean, medium-dark roast, ground to order"),
189
- rows: 4,
190
- maxLength: 255,
191
- disabled: j,
192
- "aria-invalid": !!t || void 0
193
- }), /* @__PURE__ */ E(r, {
194
- align: "block-end",
195
- className: "ttw:cursor-default",
196
- children: /* @__PURE__ */ E(p, {
197
- variant: "caption",
198
- color: "muted",
199
- className: "ttw:leading-none",
200
- children: P._("{count}/255 characters", { count: (e.value ?? "").length })
201
- })
202
- })]
203
- }),
204
- /* @__PURE__ */ E(v, { errors: [t] })
205
- ] })
206
- })
207
- })
208
- ]
209
- });
13
+ var f = (e) => /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(p, { ...e }) }), p = ({ pageTitleComponent: t }) => {
14
+ let f = n().has(e.InvoiceReadOrg), [p, m] = c(void 0), [h, g] = c(!1), _ = s((e) => {
15
+ m(e);
16
+ }, []), v = s(() => {
17
+ m(void 0);
18
+ }, []), y = s(() => {
19
+ g(!1);
20
+ }, []), b = s(() => {
21
+ g(!0);
22
+ }, []), x = s((e) => {
23
+ m(e);
24
+ }, []);
25
+ return /* @__PURE__ */ d(l, { children: [
26
+ t(/* @__PURE__ */ u(l, {})),
27
+ !f && /* @__PURE__ */ u(r, {}),
28
+ f && /* @__PURE__ */ u(i, {
29
+ onRowClick: _,
30
+ onDeleted: x,
31
+ openCreateModal: b
32
+ }),
33
+ h && /* @__PURE__ */ u(o, {
34
+ open: !0,
35
+ onClose: y,
36
+ onCreated: y
37
+ }),
38
+ !!p && p && /* @__PURE__ */ u(a, {
39
+ id: p,
40
+ open: !0,
41
+ onClose: v
42
+ })
43
+ ] });
210
44
  };
211
45
  //#endregion
212
- export { j as ProductFormContent };
46
+ export { f as Products };